UNPKG

@aurigma/ui-framework

Version:

A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.

5 lines 613 kB
<script>
!function(e){function r(r){for(var n,l,f=r[0],i=r[1],p=r[2],c=0,s=[];c<f.length;c++)l=f[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n]);for(a&&a(r);s.length;)s.shift()();return u.push.apply(u,p||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,f=1;f<t.length;f++)0!==o[t[f]]&&(n=!1);n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={0:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,(function(r){return e[r]}).bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="";var f=window.webpackJsonp=window.webpackJsonp||[],i=f.push.bind(f);f.push=r,f=f.slice();for(var p=0;p<f.length;p++)r(f[p]);var a=i;t()}([]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{2:function(e,t,n){e.exports=n("hN/g")},"hN/g":function(e,t,n){"use strict";n.r(t),n("nf2o")},nf2o:function(e,t,n){var o,r;void 0===(r="function"==typeof(o=function(){"use strict";!function(e){const t=e.performance;function n(e){t&&t.mark&&t.mark(e)}function o(e,n){t&&t.measure&&t.measure(e,n)}n("Zone");const r=e.__Zone_symbol_prefix||"__zone_symbol__";function s(e){return r+e}const a=!0===e[s("forceDuplicateZoneCheck")];if(e.Zone){if(a||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}class i{constructor(e,t){this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new l(this,this._parent&&this._parent._zoneDelegate,t)}static assertZonePatched(){if(e.Promise!==C.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 e=i.current;for(;e.parent;)e=e.parent;return e}static get current(){return z.zone}static get currentTask(){return j}static __load_patch(t,r){if(C.hasOwnProperty(t)){if(a)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const s="Zone:"+t;n(s),C[t]=r(e,i,O),o(s,s)}}get parent(){return this._parent}get name(){return this._name}get(e){const t=this.getZoneWith(e);if(t)return t._properties[e]}getZoneWith(e){let t=this;for(;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const n=this._zoneDelegate.intercept(this,e,t),o=this;return function(){return o.runGuarded(n,this,arguments,t)}}run(e,t,n,o){z={parent:z,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,o)}finally{z=z.parent}}runGuarded(e,t=null,n,o){z={parent:z,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,o)}catch(r){if(this._zoneDelegate.handleError(this,r))throw r}}finally{z=z.parent}}runTask(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");if(e.state===v&&(e.type===P||e.type===D))return;const o=e.state!=E;o&&e._transitionTo(E,T),e.runCount++;const r=j;j=e,z={parent:z,zone:this};try{e.type==D&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{e.state!==v&&e.state!==Z&&(e.type==P||e.data&&e.data.isPeriodic?o&&e._transitionTo(T,E):(e.runCount=0,this._updateTaskCount(e,-1),o&&e._transitionTo(v,E,v))),z=z.parent,j=r}}scheduleTask(e){if(e.zone&&e.zone!==this){let t=this;for(;t;){if(t===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);t=t.parent}}e._transitionTo(b,v);const t=[];e._zoneDelegates=t,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(n){throw e._transitionTo(Z,b,v),this._zoneDelegate.handleError(this,n),n}return e._zoneDelegates===t&&this._updateTaskCount(e,1),e.state==b&&e._transitionTo(T,b),e}scheduleMicroTask(e,t,n,o){return this.scheduleTask(new u(S,e,t,n,o,void 0))}scheduleMacroTask(e,t,n,o,r){return this.scheduleTask(new u(D,e,t,n,o,r))}scheduleEventTask(e,t,n,o,r){return this.scheduleTask(new u(P,e,t,n,o,r))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||y).name+"; Execution: "+this.name+")");e._transitionTo(w,T,E);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(Z,w),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(v,w),e.runCount=0,e}_updateTaskCount(e,t){const n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(let o=0;o<n.length;o++)n[o]._updateTaskCount(e.type,t)}}i.__symbol__=s;const c={name:"",onHasTask:(e,t,n,o)=>e.hasTask(n,o),onScheduleTask:(e,t,n,o)=>e.scheduleTask(n,o),onInvokeTask:(e,t,n,o,r,s)=>e.invokeTask(n,o,r,s),onCancelTask:(e,t,n,o)=>e.cancelTask(n,o)};class l{constructor(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._forkCurrZone=n&&(n.onFork?this.zone:t._forkCurrZone),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=n&&(n.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=n&&(n.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=n&&(n.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const o=n&&n.onHasTask;(o||t&&t._hasTaskZS)&&(this._hasTaskZS=o?n:c,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=e,n.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),n.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),n.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new i(e,t)}intercept(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,e,t,n):t}invoke(e,t,n,o,r){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,e,t,n,o,r):t.apply(n,o)}handleError(e,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,e,t)}scheduleTask(e,t){let n=t;if(this._scheduleTaskZS)this._hasTaskZS&&n._zoneDelegates.push(this._hasTaskDlgtOwner),n=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,e,t),n||(n=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=S)throw new Error("Task is missing scheduleFn.");k(t)}return n}invokeTask(e,t,n,o){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,e,t,n,o):t.callback.apply(n,o)}cancelTask(e,t){let n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,e,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");n=t.cancelFn(t)}return n}hasTask(e,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,e,t)}catch(n){this.handleError(e,n)}}_updateTaskCount(e,t){const n=this._taskCounts,o=n[e],r=n[e]=o+t;if(r<0)throw new Error("More tasks executed then were scheduled.");0!=o&&0!=r||this.hasTask(this.zone,{microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})}}class u{constructor(t,n,o,r,s,a){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=n,this.data=r,this.scheduleFn=s,this.cancelFn=a,!o)throw new Error("callback is not defined");this.callback=o;const i=this;this.invoke=t===P&&r&&r.useG?u.invokeTask:function(){return u.invokeTask.call(e,i,this,arguments)}}static invokeTask(e,t,n){e||(e=this),I++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==I&&m(),I--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(v,b)}_transitionTo(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(`${this.type} '${this.source}': can not transition to '${e}', expecting state '${t}'${n?" or '"+n+"'":""}, was '${this._state}'.`);this._state=e,e==v&&(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 h=s("setTimeout"),p=s("Promise"),f=s("then");let d,g=[],_=!1;function k(t){if(0===I&&0===g.length)if(d||e[p]&&(d=e[p].resolve(0)),d){let e=d[f];e||(e=d.then),e.call(d,m)}else e[h](m,0);t&&g.push(t)}function m(){if(!_){for(_=!0;g.length;){const t=g;g=[];for(let n=0;n<t.length;n++){const o=t[n];try{o.zone.runTask(o,null,null)}catch(e){O.onUnhandledError(e)}}}O.microtaskDrainDone(),_=!1}}const y={name:"NO ZONE"},v="notScheduled",b="scheduling",T="scheduled",E="running",w="canceling",Z="unknown",S="microTask",D="macroTask",P="eventTask",C={},O={symbol:s,currentZoneFrame:()=>z,onUnhandledError:R,microtaskDrainDone:R,scheduleMicroTask:k,showUncaughtError:()=>!i[s("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:R,patchMethod:()=>R,bindArguments:()=>[],patchThen:()=>R,patchMacroTask:()=>R,setNativePromise:e=>{e&&"function"==typeof e.resolve&&(d=e.resolve(0))},patchEventPrototype:()=>R,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>R,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>R,wrapWithCurrentZone:()=>R,filterProperties:()=>[],attachOriginToPatched:()=>R,_redefineProperty:()=>R,patchCallbacks:()=>R};let z={parent:null,zone:new i(null,null)},j=null,I=0;function R(){}o("Zone","Zone"),e.Zone=i}("undefined"!=typeof window&&window||"undefined"!=typeof self&&self||global),Zone.__load_patch("ZoneAwarePromise",(e,t,n)=>{const o=Object.getOwnPropertyDescriptor,r=Object.defineProperty,s=n.symbol,a=[],i=!0===e[s("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],c=s("Promise"),l=s("then");n.onUnhandledError=e=>{if(n.showUncaughtError()){const t=e&&e.rejection;t?console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t,t instanceof Error?t.stack:void 0):console.error(e)}},n.microtaskDrainDone=()=>{for(;a.length;){const t=a.shift();try{t.zone.runGuarded(()=>{throw t})}catch(e){h(e)}}};const u=s("unhandledPromiseRejectionHandler");function h(e){n.onUnhandledError(e);try{const n=t[u];"function"==typeof n&&n.call(this,e)}catch(o){}}function p(e){return e&&e.then}function f(e){return e}function d(e){return D.reject(e)}const g=s("state"),_=s("value"),k=s("finally"),m=s("parentPromiseValue"),y=s("parentPromiseState");function v(e,t){return n=>{try{T(e,t,n)}catch(o){T(e,!1,o)}}}const b=s("currentTaskTrace");function T(e,o,s){const c=function(){let e=!1;return function(t){return function(){e||(e=!0,t.apply(null,arguments))}}}();if(e===s)throw new TypeError("Promise resolved with itself");if(null===e[g]){let h=null;try{"object"!=typeof s&&"function"!=typeof s||(h=s&&s.then)}catch(u){return c(()=>{T(e,!1,u)})(),e}if(!1!==o&&s instanceof D&&s.hasOwnProperty(g)&&s.hasOwnProperty(_)&&null!==s[g])w(s),T(e,s[g],s[_]);else if(!1!==o&&"function"==typeof h)try{h.call(s,c(v(e,o)),c(v(e,!1)))}catch(u){c(()=>{T(e,!1,u)})()}else{e[g]=o;const c=e[_];if(e[_]=s,e[k]===k&&!0===o&&(e[g]=e[y],e[_]=e[m]),!1===o&&s instanceof Error){const e=t.currentTask&&t.currentTask.data&&t.currentTask.data.__creationTrace__;e&&r(s,b,{configurable:!0,enumerable:!1,writable:!0,value:e})}for(let t=0;t<c.length;)Z(e,c[t++],c[t++],c[t++],c[t++]);if(0==c.length&&0==o){e[g]=0;let o=s;if(!i)try{throw new Error("Uncaught (in promise): "+((l=s)&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l))+(s&&s.stack?"\n"+s.stack:""))}catch(u){o=u}o.rejection=s,o.promise=e,o.zone=t.current,o.task=t.currentTask,a.push(o),n.scheduleMicroTask()}}}var l;return e}const E=s("rejectionHandledHandler");function w(e){if(0===e[g]){try{const n=t[E];n&&"function"==typeof n&&n.call(this,{rejection:e[_],promise:e})}catch(n){}e[g]=!1;for(let t=0;t<a.length;t++)e===a[t].promise&&a.splice(t,1)}}function Z(e,t,n,o,r){w(e);const s=e[g],a=s?"function"==typeof o?o:f:"function"==typeof r?r:d;t.scheduleMicroTask("Promise.then",()=>{try{const o=e[_],r=!!n&&k===n[k];r&&(n[m]=o,n[y]=s);const i=t.run(a,void 0,r&&a!==d&&a!==f?[]:[o]);T(n,!0,i)}catch(o){T(n,!1,o)}},n)}const S=function(){};class D{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return T(new this(null),!0,e)}static reject(e){return T(new this(null),!1,e)}static race(e){let t,n,o=new this((e,o)=>{t=e,n=o});function r(e){t(e)}function s(e){n(e)}for(let a of e)p(a)||(a=this.resolve(a)),a.then(r,s);return o}static all(e){return D.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof D?this:D).allWithCallback(e,{thenCallback:e=>({status:"fulfilled",value:e}),errorCallback:e=>({status:"rejected",reason:e})})}static allWithCallback(e,t){let n,o,r=new this((e,t)=>{n=e,o=t}),s=2,a=0;const i=[];for(let l of e){p(l)||(l=this.resolve(l));const e=a;try{l.then(o=>{i[e]=t?t.thenCallback(o):o,s--,0===s&&n(i)},r=>{t?(i[e]=t.errorCallback(r),s--,0===s&&n(i)):o(r)})}catch(c){o(c)}s++,a++}return s-=2,0===s&&n(i),r}constructor(e){const t=this;if(!(t instanceof D))throw new Error("Must be an instanceof Promise.");t[g]=null,t[_]=[];try{e&&e(v(t,!0),v(t,!1))}catch(n){T(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return D}then(e,n){let o=this.constructor[Symbol.species];o&&"function"==typeof o||(o=this.constructor||D);const r=new o(S),s=t.current;return null==this[g]?this[_].push(s,r,e,n):Z(this,s,r,e,n),r}catch(e){return this.then(null,e)}finally(e){let n=this.constructor[Symbol.species];n&&"function"==typeof n||(n=D);const o=new n(S);o[k]=k;const r=t.current;return null==this[g]?this[_].push(r,o,e,e):Z(this,r,o,e,e),o}}D.resolve=D.resolve,D.reject=D.reject,D.race=D.race,D.all=D.all;const P=e[c]=e.Promise,C=t.__symbol__("ZoneAwarePromise");let O=o(e,"Promise");O&&!O.configurable||(O&&delete O.writable,O&&delete O.value,O||(O={configurable:!0,enumerable:!0}),O.get=function(){return e[C]?e[C]:e[c]},O.set=function(t){t===D?e[C]=t:(e[c]=t,t.prototype[l]||j(t),n.setNativePromise(t))},r(e,"Promise",O)),e.Promise=D;const z=s("thenPatched");function j(e){const t=e.prototype,n=o(t,"then");if(n&&(!1===n.writable||!n.configurable))return;const r=t.then;t[l]=r,e.prototype.then=function(e,t){return new D((e,t)=>{r.call(this,e,t)}).then(e,t)},e[z]=!0}if(n.patchThen=j,P){j(P);const t=e.fetch;"function"==typeof t&&(e[n.symbol("fetch")]=t,e.fetch=(I=t,function(){let e=I.apply(this,arguments);if(e instanceof D)return e;let t=e.constructor;return t[z]||j(t),e}))}var I;return Promise[t.__symbol__("uncaughtPromiseErrors")]=a,D});const e=Object.getOwnPropertyDescriptor,t=Object.defineProperty,n=Object.getPrototypeOf,o=Object.create,r=Array.prototype.slice,s=Zone.__symbol__("addEventListener"),a=Zone.__symbol__("removeEventListener"),i=Zone.__symbol__("");function c(e,t){return Zone.current.wrap(e,t)}function l(e,t,n,o,r){return Zone.current.scheduleMacroTask(e,t,n,o,r)}const u=Zone.__symbol__,h="undefined"!=typeof window,p=h?window:void 0,f=h&&p||"object"==typeof self&&self||global,d=[null];function g(e,t){for(let n=e.length-1;n>=0;n--)"function"==typeof e[n]&&(e[n]=c(e[n],t+"_"+n));return e}function _(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}const k="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,m=!("nw"in f)&&void 0!==f.process&&"[object process]"==={}.toString.call(f.process),y=!m&&!k&&!(!h||!p.HTMLElement),v=void 0!==f.process&&"[object process]"==={}.toString.call(f.process)&&!k&&!(!h||!p.HTMLElement),b={},T=function(e){if(!(e=e||f.event))return;let t=b[e.type];t||(t=b[e.type]=u("ON_PROPERTY"+e.type));const n=this||e.target||f,o=n[t];let r;if(y&&n===p&&"error"===e.type){const t=e;r=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===r&&e.preventDefault()}else r=o&&o.apply(this,arguments),null==r||r||e.preventDefault();return r};function E(n,o,r){let s=e(n,o);if(!s&&r&&e(r,o)&&(s={enumerable:!0,configurable:!0}),!s||!s.configurable)return;const a=u("on"+o+"patched");if(n.hasOwnProperty(a)&&n[a])return;delete s.writable,delete s.value;const i=s.get,c=s.set,l=o.substr(2);let h=b[l];h||(h=b[l]=u("ON_PROPERTY"+l)),s.set=function(e){let t=this;t||n!==f||(t=f),t&&(t[h]&&t.removeEventListener(l,T),c&&c.apply(t,d),"function"==typeof e?(t[h]=e,t.addEventListener(l,T,!1)):t[h]=null)},s.get=function(){let e=this;if(e||n!==f||(e=f),!e)return null;const t=e[h];if(t)return t;if(i){let t=i&&i.call(this);if(t)return s.set.call(this,t),"function"==typeof e.removeAttribute&&e.removeAttribute(o),t}return null},t(n,o,s),n[a]=!0}function w(e,t,n){if(t)for(let o=0;o<t.length;o++)E(e,"on"+t[o],n);else{const t=[];for(const n in e)"on"==n.substr(0,2)&&t.push(n);for(let o=0;o<t.length;o++)E(e,t[o],n)}}const Z=u("originalInstance");function S(e){const n=f[e];if(!n)return;f[u(e)]=n,f[e]=function(){const t=g(arguments,e);switch(t.length){case 0:this[Z]=new n;break;case 1:this[Z]=new n(t[0]);break;case 2:this[Z]=new n(t[0],t[1]);break;case 3:this[Z]=new n(t[0],t[1],t[2]);break;case 4:this[Z]=new n(t[0],t[1],t[2],t[3]);break;default:throw new Error("Arg list too long.")}},C(f[e],n);const o=new n((function(){}));let r;for(r in o)"XMLHttpRequest"===e&&"responseBlob"===r||function(n){"function"==typeof o[n]?f[e].prototype[n]=function(){return this[Z][n].apply(this[Z],arguments)}:t(f[e].prototype,n,{set:function(t){"function"==typeof t?(this[Z][n]=c(t,e+"."+n),C(this[Z][n],t)):this[Z][n]=t},get:function(){return this[Z][n]}})}(r);for(r in n)"prototype"!==r&&n.hasOwnProperty(r)&&(f[e][r]=n[r])}function D(t,o,r){let s=t;for(;s&&!s.hasOwnProperty(o);)s=n(s);!s&&t[o]&&(s=t);const a=u(o);let i=null;if(s&&!(i=s[a])&&(i=s[a]=s[o],_(s&&e(s,o)))){const e=r(i,a,o);s[o]=function(){return e(this,arguments)},C(s[o],i)}return i}function P(e,t,n){let o=null;function r(e){const t=e.data;return t.args[t.cbIdx]=function(){e.invoke.apply(this,arguments)},o.apply(t.target,t.args),e}o=D(e,t,e=>function(t,o){const s=n(t,o);return s.cbIdx>=0&&"function"==typeof o[s.cbIdx]?l(s.name,o[s.cbIdx],s,r):e.apply(t,o)})}function C(e,t){e[u("OriginalDelegate")]=t}let O=!1,z=!1;function j(){try{const e=p.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch(e){}return!1}function I(){if(O)return z;O=!0;try{const e=p.navigator.userAgent;-1===e.indexOf("MSIE ")&&-1===e.indexOf("Trident/")&&-1===e.indexOf("Edge/")||(z=!0)}catch(e){}return z}Zone.__load_patch("toString",e=>{const t=Function.prototype.toString,n=u("OriginalDelegate"),o=u("Promise"),r=u("Error"),s=function(){if("function"==typeof this){const s=this[n];if(s)return"function"==typeof s?t.call(s):Object.prototype.toString.call(s);if(this===Promise){const n=e[o];if(n)return t.call(n)}if(this===Error){const n=e[r];if(n)return t.call(n)}}return t.call(this)};s[n]=t,Function.prototype.toString=s;const a=Object.prototype.toString;Object.prototype.toString=function(){return this instanceof Promise?"[object Promise]":a.call(this)}});let R=!1;if("undefined"!=typeof window)try{const e=Object.defineProperty({},"passive",{get:function(){R=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(ie){R=!1}const N={useG:!0},x={},L={},M=new RegExp("^"+i+"(\\w+)(true|false)$"),A=u("propagationStopped");function H(e,t){const n=(t?t(e):e)+"false",o=(t?t(e):e)+"true",r=i+n,s=i+o;x[e]={},x[e].false=r,x[e].true=s}function F(e,t,o){const r=o&&o.add||"addEventListener",s=o&&o.rm||"removeEventListener",a=o&&o.listeners||"eventListeners",c=o&&o.rmAll||"removeAllListeners",l=u(r),h="."+r+":",p=function(e,t,n){if(e.isRemoved)return;const o=e.callback;"object"==typeof o&&o.handleEvent&&(e.callback=e=>o.handleEvent(e),e.originalDelegate=o),e.invoke(e,t,[n]);const r=e.options;r&&"object"==typeof r&&r.once&&t[s].call(t,n.type,e.originalDelegate?e.originalDelegate:e.callback,r)},f=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[x[t.type].false];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[A]);o++)p(e[o],n,t)}},d=function(t){if(!(t=t||e.event))return;const n=this||t.target||e,o=n[x[t.type].true];if(o)if(1===o.length)p(o[0],n,t);else{const e=o.slice();for(let o=0;o<e.length&&(!t||!0!==t[A]);o++)p(e[o],n,t)}};function g(t,o){if(!t)return!1;let p=!0;o&&void 0!==o.useG&&(p=o.useG);const g=o&&o.vh;let _=!0;o&&void 0!==o.chkDup&&(_=o.chkDup);let k=!1;o&&void 0!==o.rt&&(k=o.rt);let y=t;for(;y&&!y.hasOwnProperty(r);)y=n(y);if(!y&&t[r]&&(y=t),!y)return!1;if(y[l])return!1;const v=o&&o.eventNameToString,b={},T=y[l]=y[r],E=y[u(s)]=y[s],w=y[u(a)]=y[a],Z=y[u(c)]=y[c];let S;function D(e,t){return!R&&"object"==typeof e&&e?!!e.capture:R&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?Object.assign(Object.assign({},e),{passive:!0}):e:{passive:!0}:e}o&&o.prepend&&(S=y[u(o.prepend)]=y[o.prepend]);const P=p?function(e){if(!b.isExisting)return T.call(b.target,b.eventName,b.capture?d:f,b.options)}:function(e){return T.call(b.target,b.eventName,e.invoke,b.options)},O=p?function(e){if(!e.isRemoved){const t=x[e.eventName];let n;t&&(n=t[e.capture?"true":"false"]);const o=n&&e.target[n];if(o)for(let r=0;r<o.length;r++)if(o[r]===e){o.splice(r,1),e.isRemoved=!0,0===o.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return E.call(e.target,e.eventName,e.capture?d:f,e.options)}:function(e){return E.call(e.target,e.eventName,e.invoke,e.options)},z=o&&o.diff?o.diff:function(e,t){const n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},j=Zone[u("BLACK_LISTED_EVENTS")],I=e[u("PASSIVE_EVENTS")],A=function(t,n,r,s,a=!1,i=!1){return function(){const c=this||e;let l=arguments[0];o&&o.transferEventName&&(l=o.transferEventName(l));let u=arguments[1];if(!u)return t.apply(this,arguments);if(m&&"uncaughtException"===l)return t.apply(this,arguments);let h=!1;if("function"!=typeof u){if(!u.handleEvent)return t.apply(this,arguments);h=!0}if(g&&!g(t,u,c,arguments))return;const f=R&&!!I&&-1!==I.indexOf(l),d=D(arguments[2],f);if(j)for(let e=0;e<j.length;e++)if(l===j[e])return f?t.call(c,l,u,d):t.apply(this,arguments);const k=!!d&&("boolean"==typeof d||d.capture),y=!(!d||"object"!=typeof d)&&d.once,T=Zone.current;let E=x[l];E||(H(l,v),E=x[l]);const w=E[k?"true":"false"];let Z,S=c[w],P=!1;if(S){if(P=!0,_)for(let e=0;e<S.length;e++)if(z(S[e],u))return}else S=c[w]=[];const C=c.constructor.name,O=L[C];O&&(Z=O[l]),Z||(Z=C+n+(v?v(l):l)),b.options=d,y&&(b.options.once=!1),b.target=c,b.capture=k,b.eventName=l,b.isExisting=P;const M=p?N:void 0;M&&(M.taskData=b);const A=T.scheduleEventTask(Z,u,M,r,s);return b.target=null,M&&(M.taskData=null),y&&(d.once=!0),(R||"boolean"!=typeof A.options)&&(A.options=d),A.target=c,A.capture=k,A.eventName=l,h&&(A.originalDelegate=u),i?S.unshift(A):S.push(A),a?c:void 0}};return y[r]=A(T,h,P,O,k),S&&(y.prependListener=A(S,".prependListener:",(function(e){return S.call(b.target,b.eventName,e.invoke,b.options)}),O,k,!0)),y[s]=function(){const t=this||e;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=arguments[2],s=!!r&&("boolean"==typeof r||r.capture),a=arguments[1];if(!a)return E.apply(this,arguments);if(g&&!g(E,a,t,arguments))return;const c=x[n];let l;c&&(l=c[s?"true":"false"]);const u=l&&t[l];if(u)for(let e=0;e<u.length;e++){const o=u[e];if(z(o,a))return u.splice(e,1),o.isRemoved=!0,0===u.length&&(o.allRemoved=!0,t[l]=null,"string"==typeof n)&&(t[i+"ON_PROPERTY"+n]=null),o.zone.cancelTask(o),k?t:void 0}return E.apply(this,arguments)},y[a]=function(){const t=this||e;let n=arguments[0];o&&o.transferEventName&&(n=o.transferEventName(n));const r=[],s=G(t,v?v(n):n);for(let e=0;e<s.length;e++){const t=s[e];r.push(t.originalDelegate?t.originalDelegate:t.callback)}return r},y[c]=function(){const t=this||e;let n=arguments[0];if(n){o&&o.transferEventName&&(n=o.transferEventName(n));const e=x[n];if(e){const o=t[e.false],r=t[e.true];if(o){const e=o.slice();for(let t=0;t<e.length;t++){const o=e[t];this[s].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}if(r){const e=r.slice();for(let t=0;t<e.length;t++){const o=e[t];this[s].call(this,n,o.originalDelegate?o.originalDelegate:o.callback,o.options)}}}}else{const e=Object.keys(t);for(let t=0;t<e.length;t++){const n=M.exec(e[t]);let o=n&&n[1];o&&"removeListener"!==o&&this[c].call(this,o)}this[c].call(this,"removeListener")}if(k)return this},C(y[r],T),C(y[s],E),Z&&C(y[c],Z),w&&C(y[a],w),!0}let _=[];for(let n=0;n<t.length;n++)_[n]=g(t[n],o);return _}function G(e,t){if(!t){const n=[];for(let o in e){const r=M.exec(o);let s=r&&r[1];if(s&&(!t||s===t)){const t=e[o];if(t)for(let e=0;e<t.length;e++)n.push(t[e])}}return n}let n=x[t];n||(H(t),n=x[t]);const o=e[n.false],r=e[n.true];return o?r?o.concat(r):o.slice():r?r.slice():[]}function B(e,t){const n=e.Event;n&&n.prototype&&t.patchMethod(n.prototype,"stopImmediatePropagation",e=>function(t,n){t[A]=!0,e&&e.apply(t,n)})}function q(e,t,n,o,r){const s=Zone.__symbol__(o);if(t[s])return;const a=t[s]=t[o];t[o]=function(s,i,c){return i&&i.prototype&&r.forEach((function(t){const r=`${n}.${o}::`+t,s=i.prototype;if(s.hasOwnProperty(t)){const n=e.ObjectGetOwnPropertyDescriptor(s,t);n&&n.value?(n.value=e.wrapWithCurrentZone(n.value,r),e._redefineProperty(i.prototype,t,n)):s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))}else s[t]&&(s[t]=e.wrapWithCurrentZone(s[t],r))})),a.call(t,s,i,c)},e.attachOriginToPatched(t[o],a)}const W=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],U=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],V=["load"],$=["blur","error","focus","load","resize","scroll","messageerror"],X=["bounce","finish","start"],J=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Y=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],K=["close","error","open","message"],Q=["error","message"],ee=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],W,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function te(e,t,n){if(!n||0===n.length)return t;const o=n.filter(t=>t.target===e);if(!o||0===o.length)return t;const r=o[0].ignoreProperties;return t.filter(e=>-1===r.indexOf(e))}function ne(e,t,n,o){e&&w(e,te(e,t,n),o)}function oe(e,t){if(m&&!v)return;if(Zone[e.symbol("patchEvents")])return;const o="undefined"!=typeof WebSocket,r=t.__Zone_ignore_on_properties;if(y){const e=window,t=j?[{target:e,ignoreProperties:["error"]}]:[];ne(e,ee.concat(["messageerror"]),r?r.concat(t):r,n(e)),ne(Document.prototype,ee,r),void 0!==e.SVGElement&&ne(e.SVGElement.prototype,ee,r),ne(Element.prototype,ee,r),ne(HTMLElement.prototype,ee,r),ne(HTMLMediaElement.prototype,U,r),ne(HTMLFrameSetElement.prototype,W.concat($),r),ne(HTMLBodyElement.prototype,W.concat($),r),ne(HTMLFrameElement.prototype,V,r),ne(HTMLIFrameElement.prototype,V,r);const o=e.HTMLMarqueeElement;o&&ne(o.prototype,X,r);const s=e.Worker;s&&ne(s.prototype,Q,r)}const s=t.XMLHttpRequest;s&&ne(s.prototype,J,r);const a=t.XMLHttpRequestEventTarget;a&&ne(a&&a.prototype,J,r),"undefined"!=typeof IDBIndex&&(ne(IDBIndex.prototype,Y,r),ne(IDBRequest.prototype,Y,r),ne(IDBOpenDBRequest.prototype,Y,r),ne(IDBDatabase.prototype,Y,r),ne(IDBTransaction.prototype,Y,r),ne(IDBCursor.prototype,Y,r)),o&&ne(WebSocket.prototype,K,r)}Zone.__load_patch("util",(n,s,a)=>{a.patchOnProperties=w,a.patchMethod=D,a.bindArguments=g,a.patchMacroTask=P;const l=s.__symbol__("BLACK_LISTED_EVENTS"),u=s.__symbol__("UNPATCHED_EVENTS");n[u]&&(n[l]=n[u]),n[l]&&(s[l]=s[u]=n[l]),a.patchEventPrototype=B,a.patchEventTarget=F,a.isIEOrEdge=I,a.ObjectDefineProperty=t,a.ObjectGetOwnPropertyDescriptor=e,a.ObjectCreate=o,a.ArraySlice=r,a.patchClass=S,a.wrapWithCurrentZone=c,a.filterProperties=te,a.attachOriginToPatched=C,a._redefineProperty=Object.defineProperty,a.patchCallbacks=q,a.getGlobalObjects=()=>({globalSources:L,zoneSymbolEventNames:x,eventNames:ee,isBrowser:y,isMix:v,isNode:m,TRUE_STR:"true",FALSE_STR:"false",ZONE_SYMBOL_PREFIX:i,ADD_EVENT_LISTENER_STR:"addEventListener",REMOVE_EVENT_LISTENER_STR:"removeEventListener"})});const re=u("zoneTask");function se(e,t,n,o){let r=null,s=null;n+=o;const a={};function i(t){const n=t.data;return n.args[0]=function(){try{t.invoke.apply(this,arguments)}finally{t.data&&t.data.isPeriodic||("number"==typeof n.handleId?delete a[n.handleId]:n.handleId&&(n.handleId[re]=null))}},n.handleId=r.apply(e,n.args),t}function c(e){return s(e.data.handleId)}r=D(e,t+=o,n=>function(r,s){if("function"==typeof s[0]){const e=l(t,s[0],{isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?s[1]||0:void 0,args:s},i,c);if(!e)return e;const n=e.data.handleId;return"number"==typeof n?a[n]=e:n&&(n[re]=e),n&&n.ref&&n.unref&&"function"==typeof n.ref&&"function"==typeof n.unref&&(e.ref=n.ref.bind(n),e.unref=n.unref.bind(n)),"number"==typeof n||n?n:e}return n.apply(e,s)}),s=D(e,n,t=>function(n,o){const r=o[0];let s;"number"==typeof r?s=a[r]:(s=r&&r[re],s||(s=r)),s&&"string"==typeof s.type?"notScheduled"!==s.state&&(s.cancelFn&&s.data.isPeriodic||0===s.runCount)&&("number"==typeof r?delete a[r]:r&&(r[re]=null),s.zone.cancelTask(s)):t.apply(e,o)})}function ae(e,t){if(Zone[t.symbol("patchEventTarget")])return;const{eventNames:n,zoneSymbolEventNames:o,TRUE_STR:r,FALSE_STR:s,ZONE_SYMBOL_PREFIX:a}=t.getGlobalObjects();for(let c=0;c<n.length;c++){const e=n[c],t=a+(e+s),i=a+(e+r);o[e]={},o[e][s]=t,o[e][r]=i}const i=e.EventTarget;return i&&i.prototype?(t.patchEventTarget(e,[i&&i.prototype]),!0):void 0}Zone.__load_patch("legacy",e=>{const t=e[Zone.__symbol__("legacyPatch")];t&&t()}),Zone.__load_patch("timers",e=>{se(e,"set","clear","Timeout"),se(e,"set","clear","Interval"),se(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{se(e,"request","cancel","AnimationFrame"),se(e,"mozRequest","mozCancel","AnimationFrame"),se(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,t)=>{const n=["alert","prompt","confirm"];for(let o=0;o<n.length;o++)D(e,n[o],(n,o,r)=>function(o,s){return t.current.run(n,e,s,r)})}),Zone.__load_patch("EventTarget",(e,t,n)=>{!function(e,t){t.patchEventPrototype(e,t)}(e,n),ae(e,n);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&n.patchEventTarget(e,[o.prototype]),S("MutationObserver"),S("WebKitMutationObserver"),S("IntersectionObserver"),S("FileReader")}),Zone.__load_patch("on_property",(e,t,n)=>{oe(n,e)}),Zone.__load_patch("customElements",(e,t,n)=>{!function(e,t){const{isBrowser:n,isMix:o}=t.getGlobalObjects();(n||o)&&e.customElements&&"customElements"in e&&t.patchCallbacks(t,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,n)}),Zone.__load_patch("XHR",(e,t)=>{!function(e){const p=e.XMLHttpRequest;if(!p)return;const f=p.prototype;let d=f[s],g=f[a];if(!d){const t=e.XMLHttpRequestEventTarget;if(t){const e=t.prototype;d=e[s],g=e[a]}}function _(e){const o=e.data,c=o.target;c[i]=!1,c[h]=!1;const l=c[r];d||(d=c[s],g=c[a]),l&&g.call(c,"readystatechange",l);const u=c[r]=()=>{if(c.readyState===c.DONE)if(!o.aborted&&c[i]&&"scheduled"===e.state){const n=c[t.__symbol__("loadfalse")];if(n&&n.length>0){const r=e.invoke;e.invoke=function(){const n=c[t.__symbol__("loadfalse")];for(let t=0;t<n.length;t++)n[t]===e&&n.splice(t,1);o.aborted||"scheduled"!==e.state||r.call(e)},n.push(e)}else e.invoke()}else o.aborted||!1!==c[i]||(c[h]=!0)};return d.call(c,"readystatechange",u),c[n]||(c[n]=e),T.apply(c,o.args),c[i]=!0,e}function k(){}function m(e){const t=e.data;return t.aborted=!0,E.apply(t.target,t.args)}const y=D(f,"open",()=>function(e,t){return e[o]=0==t[2],e[c]=t[1],y.apply(e,t)}),v=u("fetchTaskAborting"),b=u("fetchTaskScheduling"),T=D(f,"send",()=>function(e,n){if(!0===t.current[b])return T.apply(e,n);if(e[o])return T.apply(e,n);{const t={target:e,url:e[c],isPeriodic:!1,args:n,aborted:!1},o=l("XMLHttpRequest.send",k,t,_,m);e&&!0===e[h]&&!t.aborted&&"scheduled"===o.state&&o.invoke()}}),E=D(f,"abort",()=>function(e,o){const r=e[n];if(r&&"string"==typeof r.type){if(null==r.cancelFn||r.data&&r.data.aborted)return;r.zone.cancelTask(r)}else if(!0===t.current[v])return E.apply(e,o)})}(e);const n=u("xhrTask"),o=u("xhrSync"),r=u("xhrListener"),i=u("xhrScheduled"),c=u("xhrURL"),h=u("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function(t,n){const o=t.constructor.name;for(let r=0;r<n.length;r++){const s=n[r],a=t[s];if(a){if(!_(e(t,s)))continue;t[s]=(e=>{const t=function(){return e.apply(this,g(arguments,o+"."+s))};return C(t,e),t})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,t)=>{function n(t){return function(n){G(e,t).forEach(o=>{const r=e.PromiseRejectionEvent;if(r){const e=new r(t,{promise:n.promise,reason:n.rejection});o.invoke(e)}})}}e.PromiseRejectionEvent&&(t[u("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),t[u("rejectionHandledHandler")]=n("rejectionhandled"))})})?o.call(t,n,t,e):o)||(e.exports=r)}},[[2,0]]]);
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+Y6j":function(t,e,n){var r;(function(){var n=this,o=n._,i=Array.prototype,s=Object.prototype,a=Function.prototype,l=i.push,u=i.slice,c=s.toString,h=s.hasOwnProperty,p=Array.isArray,f=Object.keys,d=a.bind,g=Object.create,y=function(){},m=function(t){return t instanceof m?t:this instanceof m?void(this._wrapped=t):new m(t)};t.exports&&(e=t.exports=m),e._=m,m.VERSION="1.8.3";var _=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)};case 4:return function(n,r,o,i){return t.call(e,n,r,o,i)}}return function(){return t.apply(e,arguments)}},b=function(t,e,n){return null==t?m.identity:m.isFunction(t)?_(t,e,n):m.isObject(t)?m.matcher(t):m.property(t)};m.iteratee=function(t,e){return b(t,e,1/0)};var v=function(t,e){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],s=t(i),a=s.length,l=0;l<a;l++){var u=s[l];e&&void 0!==n[u]||(n[u]=i[u])}return n}},w=function(t){if(!m.isObject(t))return{};if(g)return g(t);y.prototype=t;var e=new y;return y.prototype=null,e},C=function(t){return function(e){return null==e?void 0:e[t]}},P=Math.pow(2,53)-1,O=C("length"),x=function(t){var e=O(t);return"number"==typeof e&&e>=0&&e<=P};function S(t){function e(e,n,r,o,i,s){for(;i>=0&&i<s;i+=t){var a=o?o[i]:i;r=n(r,e[a],a,e)}return r}return function(n,r,o,i){r=_(r,i,4);var s=!x(n)&&m.keys(n),a=(s||n).length,l=t>0?0:a-1;return arguments.length<3&&(o=n[s?s[l]:l],l+=t),e(n,r,o,s,l,a)}}m.each=m.forEach=function(t,e,n){var r,o;if(e=_(e,n),x(t))for(r=0,o=t.length;r<o;r++)e(t[r],r,t);else{var i=m.keys(t);for(r=0,o=i.length;r<o;r++)e(t[i[r]],i[r],t)}return t},m.map=m.collect=function(t,e,n){e=b(e,n);for(var r=!x(t)&&m.keys(t),o=(r||t).length,i=Array(o),s=0;s<o;s++){var a=r?r[s]:s;i[s]=e(t[a],a,t)}return i},m.reduce=m.foldl=m.inject=S(1),m.reduceRight=m.foldr=S(-1),m.find=m.detect=function(t,e,n){var r;if(void 0!==(r=x(t)?m.findIndex(t,e,n):m.findKey(t,e,n))&&-1!==r)return t[r]},m.filter=m.select=function(t,e,n){var r=[];return e=b(e,n),m.each(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r},m.reject=function(t,e,n){return m.filter(t,m.negate(b(e)),n)},m.every=m.all=function(t,e,n){e=b(e,n);for(var r=!x(t)&&m.keys(t),o=(r||t).length,i=0;i<o;i++){var s=r?r[i]:i;if(!e(t[s],s,t))return!1}return!0},m.some=m.any=function(t,e,n){e=b(e,n);for(var r=!x(t)&&m.keys(t),o=(r||t).length,i=0;i<o;i++){var s=r?r[i]:i;if(e(t[s],s,t))return!0}return!1},m.contains=m.includes=m.include=function(t,e,n,r){return x(t)||(t=m.values(t)),("number"!=typeof n||r)&&(n=0),m.indexOf(t,e,n)>=0},m.invoke=function(t,e){var n=u.call(arguments,2),r=m.isFunction(e);return m.map(t,(function(t){var o=r?e:t[e];return null==o?o:o.apply(t,n)}))},m.pluck=function(t,e){return m.map(t,m.property(e))},m.where=function(t,e){return m.filter(t,m.matcher(e))},m.findWhere=function(t,e){return m.find(t,m.matcher(e))},m.max=function(t,e,n){var r,o,i=-1/0,s=-1/0;if(null==e&&null!=t)for(var a=0,l=(t=x(t)?t:m.values(t)).length;a<l;a++)(r=t[a])>i&&(i=r);else e=b(e,n),m.each(t,(function(t,n,r){((o=e(t,n,r))>s||o===-1/0&&i===-1/0)&&(i=t,s=o)}));return i},m.min=function(t,e,n){var r,o,i=1/0,s=1/0;if(null==e&&null!=t)for(var a=0,l=(t=x(t)?t:m.values(t)).length;a<l;a++)(r=t[a])<i&&(i=r);else e=b(e,n),m.each(t,(function(t,n,r){((o=e(t,n,r))<s||o===1/0&&i===1/0)&&(i=t,s=o)}));return i},m.shuffle=function(t){for(var e,n=x(t)?t:m.values(t),r=n.length,o=Array(r),i=0;i<r;i++)(e=m.random(0,i))!==i&&(o[i]=o[e]),o[e]=n[i];return o},m.sample=function(t,e,n){return null==e||n?(x(t)||(t=m.values(t)),t[m.random(t.length-1)]):m.shuffle(t).slice(0,Math.max(0,e))},m.sortBy=function(t,e,n){return e=b(e,n),m.pluck(m.map(t,(function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}})).sort((function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index})),"value")};var E=function(t){return function(e,n,r){var o={};return n=b(n,r),m.each(e,(function(r,i){var s=n(r,i,e);t(o,r,s)})),o}};m.groupBy=E((function(t,e,n){m.has(t,n)?t[n].push(e):t[n]=[e]})),m.indexBy=E((function(t,e,n){t[n]=e})),m.countBy=E((function(t,e,n){m.has(t,n)?t[n]++:t[n]=1})),m.toArray=function(t){return t?m.isArray(t)?u.call(t):x(t)?m.map(t,m.identity):m.values(t):[]},m.size=function(t){return null==t?0:x(t)?t.length:m.keys(t).length},m.partition=function(t,e,n){e=b(e,n);var r=[],o=[];return m.each(t,(function(t,n,i){(e(t,n,i)?r:o).push(t)})),[r,o]},m.first=m.head=m.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:m.initial(t,t.length-e)},m.initial=function(t,e,n){return u.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},m.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:m.rest(t,Math.max(0,t.length-e))},m.rest=m.tail=m.drop=function(t,e,n){return u.call(t,null==e||n?1:e)},m.compact=function(t){return m.filter(t,m.identity)};var k=function(t,e,n,r){for(var o=[],i=0,s=r||0,a=O(t);s<a;s++){var l=t[s];if(x(l)&&(m.isArray(l)||m.isArguments(l))){e||(l=k(l,e,n));var u=0,c=l.length;for(o.length+=c;u<c;)o[i++]=l[u++]}else n||(o[i++]=l)}return o};function T(t){return function(e,n,r){n=b(n,r);for(var o=O(e),i=t>0?0:o-1;i>=0&&i<o;i+=t)if(n(e[i],i,e))return i;return-1}}function j(t,e,n){return function(r,o,i){var s=0,a=O(r);if("number"==typeof i)t>0?s=i>=0?i:Math.max(i+a,s):a=i>=0?Math.min(i+1,a):i+a+1;else if(n&&i&&a)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=e(u.call(r,s,a),m.isNaN))>=0?i+s:-1;for(i=t>0?s:a-1;i>=0&&i<a;i+=t)if(r[i]===o)return i;return-1}}m.flatten=function(t,e){return k(t,e,!1)},m.without=function(t){return m.difference(t,u.call(arguments,1))},m.uniq=m.unique=function(t,e,n,r){m.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=b(n,r));for(var o=[],i=[],s=0,a=O(t);s<a;s++){var l=t[s],u=n?n(l,s,t):l;e?(s&&i===u||o.push(l),i=u):n?m.contains(i,u)||(i.push(u),o.push(l)):m.contains(o,l)||o.push(l)}return o},m.union=function(){return m.uniq(k(arguments,!0,!0))},m.intersection=function(t){for(var e=[],n=arguments.length,r=0,o=O(t);r<o;r++){var i=t[r];if(!m.contains(e,i)){for(var s=1;s<n&&m.contains(arguments[s],i);s++);s===n&&e.push(i)}}return e},m.difference=function(t){var e=k(arguments,!0,!0,1);return m.filter(t,(function(t){return!m.contains(e,t)}))},m.zip=function(){return m.unzip(arguments)},m.unzip=function(t){for(var e=t&&m.max(t,O).length||0,n=Array(e),r=0;r<e;r++)n[r]=m.pluck(t,r);return n},m.object=function(t,e){for(var n={},r=0,o=O(t);r<o;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},m.findIndex=T(1),m.findLastIndex=T(-1),m.sortedIndex=function(t,e,n,r){for(var o=(n=b(n,r,1))(e),i=0,s=O(t);i<s;){var a=Math.floor((i+s)/2);n(t[a])<o?i=a+1:s=a}return i},m.indexOf=j(1,m.findIndex,m.sortedIndex),m.lastIndexOf=j(-1,m.findLastIndex),m.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),o=Array(r),i=0;i<r;i++,t+=n)o[i]=t;return o};var I=function(t,e,n,r,o){if(!(r instanceof e))return t.apply(n,o);var i=w(t.prototype),s=t.apply(i,o);return m.isObject(s)?s:i};m.bind=function(t,e){if(d&&t.bind===d)return d.apply(t,u.call(arguments,1));if(!m.isFunction(t))throw new TypeError("Bind must be called on a function");var n=u.call(arguments,2),r=function(){return I(t,r,e,this,n.concat(u.call(arguments)))};return r},m.partial=function(t){var e=u.call(arguments,1),n=function(){for(var r=0,o=e.length,i=Array(o),s=0;s<o;s++)i[s]=e[s]===m?arguments[r++]:e[s];for(;r<arguments.length;)i.push(arguments[r++]);return I(t,n,this,this,i)};return n},m.bindAll=function(t){var e,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(e=1;e<r;e++)t[n=arguments[e]]=m.bind(t[n],t);return t},m.memoize=function(t,e){var n=function(r){var o=n.cache,i=""+(e?e.apply(this,arguments):r);return m.has(o,i)||(o[i]=t.apply(this,arguments)),o[i]};return n.cache={},n},m.delay=function(t,e){var n=u.call(arguments,2);return setTimeout((function(){return t.apply(null,n)}),e)},m.defer=m.partial(m.delay,m,1),m.throttle=function(t,e,n){var r,o,i,s=null,a=0;n||(n={});var l=function(){a=!1===n.leading?0:m.now(),s=null,i=t.apply(r,o),s||(r=o=null)};return function(){var u=m.now();a||!1!==n.leading||(a=u);var c=e-(u-a);return r=this,o=arguments,c<=0||c>e?(s&&(clearTimeout(s),s=null),a=u,i=t.apply(r,o),s||(r=o=null)):s||!1===n.trailing||(s=setTimeout(l,c)),i}},m.debounce=function(t,e,n){var r,o,i,s,a,l=function(){var u=m.now()-s;u<e&&u>=0?r=setTimeout(l,e-u):(r=null,n||(a=t.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,s=m.now();var u=n&&!r;return r||(r=setTimeout(l,e)),u&&(a=t.apply(i,o),i=o=null),a}},m.wrap=function(t,e){return m.partial(e,t)},m.negate=function(t){return function(){return!t.apply(this,arguments)}},m.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},m.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},m.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},m.once=m.partial(m.before,2);var R=!{toString:null}.propertyIsEnumerable("toString"),A=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function M(t,e){var n=A.length,r=t.constructor,o=m.isFunction(r)&&r.prototype||s,i="constructor";for(m.has(t,i)&&!m.contains(e,i)&&e.push(i);n--;)(i=A[n])in t&&t[i]!==o[i]&&!m.contains(e,i)&&e.push(i)}m.keys=function(t){if(!m.isObject(t))return[];if(f)return f(t);var e=[];for(var n in t)m.has(t,n)&&e.push(n);return R&&M(t,e),e},m.allKeys=function(t){if(!m.isObject(t))return[];var e=[];for(var n in t)e.push(n);return R&&M(t,e),e},m.values=function(t){for(var e=m.keys(t),n=e.length,r=Array(n),o=0;o<n;o++)r[o]=t[e[o]];return r},m.mapObject=function(t,e,n){e=b(e,n);for(var r,o=m.keys(t),i=o.length,s={},a=0;a<i;a++)s[r=o[a]]=e(t[r],r,t);return s},m.pairs=function(t){for(var e=m.keys(t),n=e.length,r=Array(n),o=0;o<n;o++)r[o]=[e[o],t[e[o]]];return r},m.invert=function(t){for(var e={},n=m.keys(t),r=0,o=n.length;r<o;r++)e[t[n[r]]]=n[r];return e},m.functions=m.methods=function(t){var e=[];for(var n in t)m.isFunction(t[n])&&e.push(n);return e.sort()},m.extend=v(m.allKeys),m.extendOwn=m.assign=v(m.keys),m.findKey=function(t,e,n){e=b(e,n);for(var r,o=m.keys(t),i=0,s=o.length;i<s;i++)if(e(t[r=o[i]],r,t))return r},m.pick=function(t,e,n){var r,o,i={},s=t;if(null==s)return i;m.isFunction(e)?(o=m.allKeys(s),r=_(e,n)):(o=k(arguments,!1,!1,1),r=function(t,e,n){return e in n},s=Object(s));for(var a=0,l=o.length;a<l;a++){var u=o[a],c=s[u];r(c,u,s)&&(i[u]=c)}return i},m.omit=function(t,e,n){if(m.isFunction(e))e=m.negate(e);else{var r=m.map(k(arguments,!1,!1,1),String);e=function(t,e){return!m.contains(r,e)}}return m.pick(t,e,n)},m.defaults=v(m.allKeys,!0),m.create=function(t,e){var n=w(t);return e&&m.extendOwn(n,e),n},m.clone=function(t){return m.isObject(t)?m.isArray(t)?t.slice():m.extend({},t):t},m.tap=function(t,e){return e(t),t},m.isMatch=function(t,e){var n=m.keys(e),r=n.length;if(null==t)return!r;for(var o=Object(t),i=0;i<r;i++){var s=n[i];if(e[s]!==o[s]||!(s in o))return!1}return!0};var N=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof m&&(t=t._wrapped),e instanceof m&&(e=e._wrapped);var o=c.call(t);if(o!==c.call(e))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}var i="[object Array]"===o;if(!i){if("object"!=typeof t||"object"!=typeof e)return!1;var s=t.constructor,a=e.constructor;if(s!==a&&!(m.isFunction(s)&&s instanceof s&&m.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];for(var l=(n=n||[]).length;l--;)if(n[l]===t)return r[l]===e;if(n.push(t),r.push(e),i){if((l=t.length)!==e.length)return!1;for(;l--;)if(!N(t[l],e[l],n,r))return!1}else{var u,h=m.keys(t);if(l=h.length,m.keys(e).length!==l)return!1;for(;l--;)if(!m.has(e,u=h[l])||!N(t[u],e[u],n,r))return!1}return n.pop(),r.pop(),!0};m.isEqual=function(t,e){return N(t,e)},m.isEmpty=function(t){return null==t||(x(t)&&(m.isArray(t)||m.isString(t)||m.isArguments(t))?0===t.length:0===m.keys(t).length)},m.isElement=function(t){return!(!t||1!==t.nodeType)},m.isArray=p||function(t){return"[object Array]"===c.call(t)},m.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},m.each(["Arguments","Function","String","Number","Date","RegExp","Error"],(function(t){m["is"+t]=function(e){return c.call(e)==="[object "+t+"]"}})),m.isArguments(arguments)||(m.isArguments=function(t){return m.has(t,"callee")}),"object"!=typeof Int8Array&&(m.isFunction=function(t){return"function"==typeof t||!1}),m.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},m.isNaN=function(t){return m.isNumber(t)&&t!==+t},m.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===c.call(t)},m.isNull=function(t){return null===t},m.isUndefined=function(t){return void 0===t},m.has=function(t,e){return null!=t&&h.call(t,e)},m.noConflict=function(){return n._=o,this},m.identity=function(t){return t},m.constant=function(t){return function(){return t}},m.noop=function(){},m.property=C,m.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},m.matcher=m.matches=function(t){return t=m.extendOwn({},t),function(e){return m.isMatch(e,t)}},m.times=function(t,e,n){var r=Array(Math.max(0,t));e=_(e,n,1);for(var o=0;o<t;o++)r[o]=e(o);return r},m.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},m.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},L=m.invert(B),F=function(t){var e=function(e){return t[e]},n="(?:"+m.keys(t).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(t){return r.test(t=null==t?"":""+t)?t.replace(o,e):t}};m.escape=F(B),m.unescape=F(L),m.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),m.isFunction(r)?r.call(t):r};var D=0;m.uniqueId=function(t){var e=++D+"";return t?t+e:e},m.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var V=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},q=/\\|'|\r|\n|\u2028|\u2029/g,U=function(t){return"\\"+z[t]};m.template=function(t,e,n){!e&&n&&(e=n),e=m.defaults({},e,m.templateSettings);var r=RegExp([(e.escape||V).source,(e.interpolate||V).source,(e.evaluate||V).source].join("|")+"|$","g"),o=0,i="__p+='";t.replace(r,(function(e,n,r,s,a){return i+=t.slice(o,a).replace(q,U),o=a+e.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(i+="';\n"+s+"\n__p+='"),e})),i+="';\n",e.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var s=new Function(e.variable||"obj","_",i)}catch(l){throw l.source=i,l}var a=function(t){return s.call(this,t,m)};return a.source="function("+(e.variable||"obj")+"){\n"+i+"}",a},m.chain=function(t){var e=m(t);return e._chain=!0,e};var H=function(t,e){return t._chain?m(e).chain():e};m.mixin=function(t){m.each(m.functions(t),(function(e){var n=m[e]=t[e];m.prototype[e]=function(){var t=[this._wrapped];return l.apply(t,arguments),H(this,n.apply(m,t))}}))},m.mixin(m),m.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=i[t];m.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],H(this,n)}})),m.each(["concat","join","slice"],(function(t){var e=i[t];m.prototype[t]=function(){return H(this,e.apply(this._wrapped,arguments))}})),m.prototype.value=function(){return this._wrapped},m.prototype.valueOf=m.prototype.toJSON=m.prototype.value,m.prototype.toString=function(){return""+this._wrapped},void 0===(r=(function(){return m}).apply(e,[]))||(t.exports=r)}).call(this)},0:function(t,e,n){t.exports=n("zUnb")},"1vCq":function(t,e,n){"use strict";(function(t){var r=n("fw2E"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=i&&i.exports===o?r.a.Buffer:void 0,a=s?s.allocUnsafe:void 0;e.a=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}).call(this,n("cyaT")(t))},"8ef1":function(t){t.exports=JSON.parse('{"PantonePicker":{"SEARCH_TEXT":"S\xf6k efter Pantone-nummer eller kod","COLOR":"F\xe4rg","NO_FILTER_SELECTED":"Alla","NO_RESULT_TITLE":"Inga resultat hittades","NO_RESULT_TEXT":"Kontrollera dina valda filter eller anv\xe4nd ett annat s\xf6kord.","RESET":"\xc5terst\xe4ll"}}')},Af8m:function(t,e,n){"use strict";(function(t){var r=n("kq48"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=i&&i.exports===o&&r.a.process,a=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();e.a=a}).call(this,n("cyaT")(t))},SGR7:function(t){t.exports=JSON.parse('{"PantonePicker":{"SEARCH_TEXT":"\u041f\u043e\u0438\u0441\u043a \u043f\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044e \u0438\u043b\u0438 \u043d\u043e\u043c\u0435\u0440\u0443 Pantone","COLOR":"\u0426\u0432\u0435\u0442","NO_FILTER_SELECTED":"\u0412\u0441\u0435","NO_RESULT_TITLE":"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e","NO_RESULT_TEXT":"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u0438\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u043c\u0443 \u0441\u043b\u043e\u0432\u0443.","RESET":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c"}}')},SRVR:function(t,e){var n=/[^\\];|^;/,r=/[^\\],|^,/;function o(t){return t.match(n)?i(t=t.replace(/\\,/g,","),";"):t.match(r)?i(t=t.replace(/\\;/g,";"),","):t.replace(/\\,/g,",").replace(/\\;/g,";")}function i(t,e){var n=new RegExp(e),r=new RegExp("\\\\"+e,"g");return(t=t.replace(r,"\u03a9\u03a9\u03a9")).match(n)?(t=t.split(e)).map((function(t){return t.replace(/\u03a9\u03a9\u03a9/g,e)})):t.replace(/\u03a9\u03a9\u03a9/g,e)}var s=function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}}(),a=["nickname","related","categories","pid"],l=["fn"];t.exports={parse:function(t){for(var e,n,r,i,s,a={},l=t.split(/\r\n|\r|\n/),u=l.length,c=0;c<u;c++)if(""!==l[c]&&"BEGIN:VCARD"!==l[c].toUpperCase()&&"END:VCARD"!==l[c].toUpperCase()){var h=l[c],p=function(t){return t+1<u&&(" "===l[t+1][0]||"\t"===l[t+1][0])};if(p(c))for(;p(c);)h+=l[c+1].trim(),c++;if(n=(e=h.split(":")).shift(),r=e.join(":"),s=!1,i={},n.match(/;/)){var f=(n=n.replace(/\\;/g,"\u03a9\u03a9\u03a9").replace(/\\,/,",")).split(";").map((function(t){return t.replace(/\u03a9\u03a9\u03a9/g,";")}));n=f.shift(),f.forEach((function(t){var e=t.split("=");e[0]=e[0].toLowerCase(),0!==e[0].length&&(i[e[0]]?i[e[0]].push(e[1]):i[e[0]]=[e[1]])}))}if(r=o(r=r.replace(/\\n/g,"\n")),n.match(/\./)){var d=n.split(".");n=d[1],s=d[0]}var g={value:r};Object.keys(i).length&&(g.meta=i),s&&(g.namespace=s),0!==n.indexOf("X-")&&(n=n.toLowerCase()),void 0===a[n]?a[n]=[g]:a[n].push(g)}return a},generate:function(t,e){var n=["BEGIN:VCARD"],r="";e&&!t.version&&(t.version=[{value:"3.0"}]),e&&!t.uid&&(t.uid=[{value:s()}]);var o=function(t){return void 0===t?"":t.replace(/\n/g,"\\n").replace(/;/g,"\\;").replace(/,/g,"\\,")};return Object.keys(t).forEach((function(e){t[e]&&"function"==typeof t[e].forEach&&t[e].forEach((function(t){if(void 0!==t.value&&(""!==t.value||-1!==l.indexOf(e))){if(t.value instanceof Array){for(var i=!0,s=0;s<t.value.length;s++)if(void 0!==t.value[s]&&""!==t.value[s]){i=!1;break}if(i)return}if(r="",t.namespace&&(r+=t.namespace+"."),r+=0===e.indexOf("X-")?e:e.toUpperCase(),"object"==typeof t.meta&&Object.keys(t.meta).forEach((function(e){"function"==typeof t.meta[e].forEach&&t.meta[e].forEach((function(t){var n;e.length>0&&("TYPE"===e.toUpperCase()?r+=";"+o(e.toUpperCase())+"="+(void 0===(n=t)?"":n.replace(/\n/g,"\\n").replace(/;/g,"\\;")):r+=";"+o(e.toUpperCase())+"="+o(t))}))})),r+=":","string"==typeof t.value)r+=o(t.value);else{var u=-1!==a.indexOf(e)?",":";";r+=t.value.map((function(t){return o(t)})).join(u)}if(r.length>75){var c=r.substr(0,75),h=r.substr(75).match(/.{1,74}/g);n.push(c),h.forEach((function(t){n.push(" "+t)}))}else n.push(r)}}))})),n.push("END:VCARD"),n.join("\r\n")}}},"TPB+":function(t,e,n){"use strict";(function(t){var r=n("fw2E"),o=n("VxF/"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,s=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=s&&s.exports===i?r.a.Buffer:void 0;e.a=(a?a.isBuffer:void 0)||o.a}).call(this,n("cyaT")(t))},"VxF/":function(t,e,n){"use strict";e.a=function(){return!1}},cyaT:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},fw2E:function(t,e,n){"use strict";var r=n("kq48"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();e.a=i},iGQJ:function(t,e,n){var r=n("nuWL");r.prototype[Symbol.iterator]||(r.prototype[Symbol.iterator]=function(){var t=this.getEnumerator();return{next:function(){return t.moveNext()?{done:!1,value:t.current()}:{done:!0}}}});var o=!0;r.extendArray=function(){o&&(o=!1,Object.keys(r.prototype).forEach((function(t){Array.prototype[t]||(Array.prototype[t]=function(){var e=r.from(this);return e[t].apply(e,arguments)})})))},t.exports=r},jPSd:function(t,e){(function(e){t.exports=e}).call(this,{})},kq48:function(t,e,n){"use strict";var r="object"==typeof global&&global&&global.Object===Object&&global;e.a=r},nuWL:function(t,e,n){var r;!function(o,i){var s={Identity:function(t){return t},True:function(){return!0},Blank:function(){}},a=typeof{},l={"":s.Identity},u={createLambda:function(t){if(null==t)return s.Identity;if("string"==typeof t){var e=l[t];if(null!=e)return e;if(-1===t.indexOf("=>")){for(var n,r=new RegExp("[$]+","g"),o=0;null!=(n=r.exec(t));){var i=n[0].length;i>o&&(o=i)}for(var a=[],u=1;u<=o;u++){for(var c="",h=0;h<u;h++)c+="$";a.push(c)}var p=Array.prototype.join.call(a,",");return e=new Function(p,"return "+t),l[t]=e,e}var f=t.match(/^[(\s]*([^()]*?)[)\s]*=>(.*)/);return e=new Function(f[1],"return "+f[2]),l[t]=e,e}return t},isIEnumerable:function(t){if("undefined"!=typeof Enumerator)try{return new Enumerator(t),!0}catch(e){}return!1},defineProperty:null!=Object.defineProperties?function(t,e,n){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,writable:!0,value:n})}:function(t,e,n){t[e]=n},compare:function(t,e){return t===e?0:t>e?1:-1},dispose:function(t){null!=t&&t.dispose()},hasNativeIteratorSupport:function(){return"undefined"!=typeof Symbol&&void 0!==Symbol.iterator}},c=function(t,e,n){var r=new h,o=0;this.current=r.current,this.moveNext=function(){try{switch(o){case 0:o=1,t();case 1:return!!e.apply(r)||(this.dispose(),!1);case 2:return!1}}catch(n){throw this.dispose(),n}},this.dispose=function(){if(1==o)try{n()}finally{o=2}}},h=function(){var t=null;this.current=function(){return t},this.yieldReturn=function(e){return t=e,!0},this.yieldBreak=function(){return!1}},p=function(t){this.getEnumerator=t};(p.Utils={}).createLambda=function(t){return u.createLambda(t)},p.Utils.createEnumerable=function(t){return new p(t)},p.Utils.createEnumerator=function(t,e,n){return new c(t,e,n)},p.Utils.extendTo=function(t){var e,n=t.prototype;for(var r in t===Array?(e=y.prototype,u.defineProperty(n,"getSource",(function(){return this}))):(e=p.prototype,u.defineProperty(n,"getEnumerator",(function(){return p.from(this).getEnumerator()}))),e){var o=e[r];n[r]!=o&&(null!=n[r]&&n[r+="ByLinq"]==o||o instanceof Function&&u.defineProperty(n,r,o))}},p.choice=function(){var t=arguments;return new p((function(){return new c((function(){t=t[0]instanceof Array?t[0]:null!=t[0].getEnumerator?t[0].toArray():t}),(function(){return this.yieldReturn(t[Math.floor(Math.random()*t.length)])}),s.Blank)}))},p.cycle=function(){var t=arguments;return new p((function(){var e=0;return new c((function(){t=t[0]instanceof Array?t[0]:null!=t[0].getEnumerator?t[0].toArray():t}),(function(){return e>=t.length&&(e=0),this.yieldReturn(t[e++])}),s.Blank)}))},p.empty=function(){return new p((function(){return new c(s.Blank,(function(){return!1}),s.Blank)}))},p.from=function(t){if(null==t)return p.empty();if(t instanceof p)return t;if("number"==typeof t||"boolean"==typeof t)return p.repeat(t,1);if("string"==typeof t)return new p((function(){var e=0;return new c(s.Blank,(function(){return e<t.length&&this.yieldReturn(t.charAt(e++))}),s.Blank)}));if("function"!=typeof t){if("number"==typeof t.length)return new y(t);if("undefined"!=typeof Symbol&&void 0!==t[Symbol.iterator])return new p((function(){return new c(s.Blank,(function(){var e=t.next();return!e.done&&this.yieldReturn(e.value)}),s.Blank)}));if(!(t instanceof Object)&&u.isIEnumerable(t))return new p((function(){var e,n=!0;return new c((function(){e=new Enumerator(t)}),(function(){return n?n=!1:e.moveNext(),!e.atEnd()&&this.yieldReturn(e.item())}),s.Blank)}));if(typeof Windows===a&&"function"==typeof t.first)return new p((function(){var e,n=!0;return new c((function(){e=t.first()}),(function(){return n?n=!1:e.moveNext(),e.hasCurrent?this.yieldReturn(e.current):this.yieldBreak()}),s.Blank)}))}return new p((function(){var e=[],n=0;return new c((function(){for(var n in t){var r=t[n];r instanceof Function||!Object.prototype.hasOwnProperty.call(t,n)||e.push({key:n,value:r})}}),(function(){return n<e.length&&this.yieldReturn(e[n++])}),s.Blank)}))},p.make=function(t){return p.repeat(t,1)},p.matches=function(t,e,n){return null==n&&(n=""),e instanceof RegExp&&(n+=e.ignoreCase?"i":"",n+=e.multiline?"m":"",e=e.source),-1===n.indexOf("g")&&(n+="g"),new p((function(){var r;return new c((function(){r=new RegExp(e,n)}),(function(){var e=r.exec(t);return!!e&&this.yieldReturn(e)}),s.Blank)}))},p.range=function(t,e,n){return null==n&&(n=1),new p((function(){var r,o=0;return new c((function(){r=t-n}),(function(){return o++<e?this.yieldReturn(r+=n):this.yieldBreak()}),s.Blank)}))},p.rangeDown=function(t,e,n){return null==n&&(n=1),new p((function(){var r,o=0;return new c((function(){r=t+n}),(function(){return o++<e?this.yieldReturn(r-=n):this.yieldBreak()}),s.Blank)}))},p.rangeTo=function(t,e,n){return null==n&&(n=1),new p(t<e?function(){var r;return new c((function(){r=t-n}),(function(){var t=r+=n;return t<=e?this.yieldReturn(t):this.yieldBreak()}),s.Blank)}:function(){var r;return new c((function(){r=t+n}),(function(){var t=r-=n;return t>=e?this.yieldReturn(t):this.yieldBreak()}),s.Blank)})},p.repeat=function(t,e){return null!=e?p.repeat(t).take(e):new p((function(){return new c(s.Blank,(function(){return this.yieldReturn(t)}),s.Blank)}))},p.repeatWithFinalize=function(t,e){return t=u.createLambda(t),e=u.createLambda(e),new p((function(){var n;return new c((function(){n=t()}),(function(){return this.yieldReturn(n)}),(function(){null!=n&&(e(n),n=null)}))}))},p.generate=function(t,e){return null!=e?p.generate(t).take(e):(t=u.createLambda(t),new p((function(){return new c(s.Blank,(function(){return this.yieldReturn(t())}),s.Blank)})))},p.toInfinity=function(t,e){return null==t&&(t=0),null==e&&(e=1),new p((function(){var n;return new c((function(){n=t-e}),(function(){return this.yieldReturn(n+=e)}),s.Blank)}))},p.toNegativeInfinity=function(t,e){return null==t&&(t=0),null==e&&(e=1),new p((function(){var n;return new c((function(){n=t+e}),(function(){return this.yieldReturn(n-=e)}),s.Blank)}))},p.unfold=function(t,e){return e=u.createLambda(e),new p((function(){var n,r=!0;return new c(s.Blank,(function(){return r?(r=!1,this.yieldReturn(n=t)):(n=e(n),this.yieldReturn(n))}),s.Blank)}))},p.defer=function(t){return new p((function(){var e;return new c((function(){e=p.from(t()).getEnumerator()}),(function(){return e.moveNext()?this.yieldReturn(e.current()):this.yieldBreak()}),(function(){u.dispose(e)}))}))},p.prototype.traverseBreadthFirst=function(t,e){var n=this;return t=u.createLambda(t),e=u.createLambda(e),new p((function(){var r,o=0,i=[];return new c((function(){r=n.getEnumerator()}),(function(){for(;;){if(r.moveNext())return i.push(r.current()),this.yieldReturn(e(r.current(),o));var n=p.from(i).selectMany((function(e){return t(e)}));if(!n.any())return!1;o++,i=[],u.dispose(r),r=n.getEnumerator()}}),(function(){u.dispose(r)}))}))},p.prototype.traverseDepthFirst=function(t,e){var n=this;return t=u.createLambda(t),e=u.createLambda(e),new p((function(){var r,o=[];return new c((function(){r=n.getEnumerator()}),(function(){for(;;){if(r.moveNext()){var n=e(r.current(),o.length);return o.push(r),r=p.from(t(r.current())).getEnumerator(),this.yieldReturn(n)}if(o.length<=0)return!1;u.dispose(r),r=o.pop()}}),(function(){try{u.dispose(r)}finally{p.from(o).forEach((function(t){t.dispose()}))}}))}))},p.prototype.flatten=function(){var t=this;return new p((function(){var e,n=null;return new c((function(){e=t.getEnumerator()}),(function(){for(;;){if(null!=n){if(n.moveNext())return this.yieldReturn(n.current());n=null}if(e.moveNext()){if(e.current()instanceof Array){u.dispose(n),n=p.from(e.current()).selectMany(s.Identity).flatten().getEnumerator();continue}return this.yieldReturn(e.current())}return!1}}),(function(){try{u.dispose(e)}finally{u.dispose(n)}}))}))},p.prototype.pairwise=function(t){var e=this;return t=u.createLambda(t),new p((function(){var n;return new c((function(){(n=e.getEnumerator()).moveNext()}),(function(){var e=n.current();return!!n.moveNext()&&this.yieldReturn(t(e,n.current()))}),(function(){u.dispose(n)}))}))},p.prototype.scan=function(t,e){var n;null==e?(e=u.createLambda(t),n=!1):(e=u.createLambda(e),n=!0);var r=this;return new p((function(){var o,i,s=!0;return new c((function(){o=r.getEnumerator()}),(function(){if(s){if(s=!1,n)return this.yieldReturn(i=t);if(o.moveNext())return this.yieldReturn(i=o.current())}return!!o.moveNext()&&this.yieldReturn(i=e(i,o.current()))}),(function(){u.dispose(o)}))}))},p.prototype.select=function(t){if((t=u.createLambda(t)).length<=1)return new _(this,null,t);var e=this;return new p((function(){var n,r=0;return new c((function(){n=e.getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(t(n.current(),r++))}),(function(){u.dispose(n)}))}))},p.prototype.selectMany=function(t,e){var n=this;return t=u.createLambda(t),null==e&&(e=function(t,e){return e}),e=u.createLambda(e),new p((function(){var r,o=void 0,i=0;return new c((function(){r=n.getEnumerator()}),(function(){if(void 0===o&&!r.moveNext())return!1;do{if(null==o){var n=t(r.current(),i++);o=p.from(n).getEnumerator()}if(o.moveNext())return this.yieldReturn(e(r.current(),o.current()));u.dispose(o),o=null}while(r.moveNext());return!1}),(function(){try{u.dispose(r)}finally{u.dispose(o)}}))}))},p.prototype.where=function(t){if((t=u.createLambda(t)).length<=1)return new m(this,t);var e=this;return new p((function(){var n,r=0;return new c((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();)if(t(n.current(),r++))return this.yieldReturn(n.current());return!1}),(function(){u.dispose(n)}))}))},p.prototype.choose=function(t){t=u.createLambda(t);var e=this;return new p((function(){var n,r=0;return new c((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();){var e=t(n.current(),r++);if(null!=e)return this.yieldReturn(e)}return this.yieldBreak()}),(function(){u.dispose(n)}))}))},p.prototype.ofType=function(t){var e;switch(t){case Number:e="number";break;case String:e="string";break;case Boolean:e="boolean";break;case Function:e="function";break;default:e=null}return this.where(null===e?function(e){return e instanceof t}:function(t){return typeof t===e})},p.prototype.zip=function(){var t=arguments,e=u.createLambda(arguments[arguments.length-1]),n=this;if(2==arguments.length){var r=arguments[0];return new p((function(){var t,o,i=0;return new c((function(){t=n.getEnumerator(),o=p.from(r).getEnumerator()}),(function(){return!(!t.moveNext()||!o.moveNext())&&this.yieldReturn(e(t.current(),o.current(),i++))}),(function(){try{u.dispose(t)}finally{u.dispose(o)}}))}))}return new p((function(){var r,o=0;return new c((function(){var e=p.make(n).concat(p.from(t).takeExceptLast().select(p.from)).select((function(t){return t.getEnumerator()})).toArray();r=p.from(e)}),(function(){if(r.all((function(t){return t.moveNext()}))){var t=r.select((function(t){return t.current()})).toArray();return t.push(o++),this.yieldReturn(e.apply(null,t))}return this.yieldBreak()}),(function(){p.from(r).forEach(u.dispose)}))}))},p.prototype.merge=function(){var t=arguments,e=this;return new p((function(){var n,r=-1;return new c((function(){n=p.make(e).concat(p.from(t).select(p.from)).select((function(t){return t.getEnumerator()})).toArray()}),(function(){for(;n.length>0;){var t=n[r=r>=n.length-1?0:r+1];if(t.moveNext())return this.yieldReturn(t.current());t.dispose(),n.splice(r--,1)}return this.yieldBreak()}),(function(){p.from(n).forEach(u.dispose)}))}))},p.prototype.join=function(t,e,n,r,o){e=u.createLambda(e),n=u.createLambda(n),r=u.createLambda(r),o=u.createLambda(o);var i=this;return new p((function(){var a,l,h=null,f=0;return new c((function(){a=i.getEnumerator(),l=p.from(t).toLookup(n,s.Identity,o)}),(function(){for(;;){if(null!=h){var t=h[f++];if(void 0!==t)return this.yieldReturn(r(a.current(),t));t=null,f=0}if(!a.moveNext())return!1;var n=e(a.current());h=l.get(n).toArray()}}),(function(){u.dispose(a)}))}))},p.prototype.groupJoin=function(t,e,n,r,o){e=u.createLambda(e),n=u.createLambda(n),r=u.createLambda(r),o=u.createLambda(o);var i=this;return new p((function(){var a=i.getEnumerator(),l=null;return new c((function(){a=i.getEnumerator(),l=p.from(t).toLookup(n,s.Identity,o)}),(function(){if(a.moveNext()){var t=l.get(e(a.current()));return this.yieldReturn(r(a.current(),t))}return!1}),(function(){u.dispose(a)}))}))},p.prototype.all=function(t){t=u.createLambda(t);var e=!0;return this.forEach((function(n){if(!t(n))return e=!1,!1})),e},p.prototype.any=function(t){t=u.createLambda(t);var e=this.getEnumerator();try{if(0==arguments.length)return e.moveNext();for(;e.moveNext();)if(t(e.current()))return!0;return!1}finally{u.dispose(e)}},p.prototype.isEmpty=function(){return!this.any()},p.prototype.concat=function(){var t=this;if(1==arguments.length){var e=arguments[0];return new p((function(){var n,r;return new c((function(){n=t.getEnumerator()}),(function(){if(null==r){if(n.moveNext())return this.yieldReturn(n.current());r=p.from(e).getEnumerator()}return!!r.moveNext()&&this.yieldReturn(r.current())}),(function(){try{u.dispose(n)}finally{u.dispose(r)}}))}))}var n=arguments;return new p((function(){var e;return new c((function(){e=p.make(t).concat(p.from(n).select(p.from)).select((function(t){return t.getEnumerator()})).toArray()}),(function(){for(;e.length>0;){var t=e[0];if(t.moveNext())return this.yieldReturn(t.current());t.dispose(),e.splice(0,1)}return this.yieldBreak()}),(function(){p.from(e).forEach(u.dispose)}))}))},p.prototype.insert=function(t,e){var n=this;return new p((function(){var r,o,i=0,s=!1;return new c((function(){r=n.getEnumerator(),o=p.from(e).getEnumerator()}),(function(){return i==t&&o.moveNext()?(s=!0,this.yieldReturn(o.current())):r.moveNext()?(i++,this.yieldReturn(r.current())):!(s||!o.moveNext())&&this.yieldReturn(o.current())}),(function(){try{u.dispose(r)}finally{u.dispose(o)}}))}))},p.prototype.alternate=function(t){var e=this;return new p((function(){var n,r,o,i;return new c((function(){o=t instanceof Array||null!=t.getEnumerator?p.from(p.from(t).toArray()):p.make(t),(r=e.getEnumerator()).moveNext()&&(n=r.current())}),(function(){for(;;){if(null!=i){if(i.moveNext())return this.yieldReturn(i.current());i=null}if(null!=n||!r.moveNext()){if(null!=n){var t=n;return n=null,this.yieldReturn(t)}return this.yieldBreak()}n=r.current(),i=o.getEnumerator()}}),(function(){try{u.dispose(r)}finally{u.dispose(i)}}))}))},p.prototype.contains=function(t,e){e=u.createLambda(e);var n=this.getEnumerator();try{for(;n.moveNext();)if(e(n.current())===t)return!0;return!1}finally{u.dispose(n)}},p.prototype.defaultIfEmpty=function(t){var e=this;return void 0===t&&(t=null),new p((function(){var n,r=!0;return new c((function(){n=e.getEnumerator()}),(function(){return n.moveNext()?(r=!1,this.yieldReturn(n.current())):!!r&&(r=!1,this.yieldReturn(t))}),(function(){u.dispose(n)}))}))},p.prototype.distinct=function(t){return this.except(p.empty(),t)},p.prototype.distinctUntilChanged=function(t){t=u.createLambda(t);var e=this;return new p((function(){var n,r,o;return new c((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();){var e=t(n.current());if(o)return o=!1,r=e,this.yieldReturn(n.current());if(r!==e)return r=e,this.yieldReturn(n.current())}return this.yieldBreak()}),(function(){u.dispose(n)}))}))},p.prototype.except=function(t,e){e=u.createLambda(e);var n=this;return new p((function(){var r,o;return new c((function(){r=n.getEnumerator(),o=new b(e),p.from(t).forEach((function(t){o.add(t)}))}),(function(){for(;r.moveNext();){var t=r.current();if(!o.contains(t))return o.add(t),this.yieldReturn(t)}return!1}),(function(){u.dispose(r)}))}))},p.prototype.intersect=function(t,e){e=u.createLambda(e);var n=this;return new p((function(){var r,o,i;return new c((function(){r=n.getEnumerator(),o=new b(e),p.from(t).forEach((function(t){o.add(t)})),i=new b(e)}),(function(){for(;r.moveNext();){var t=r.current();if(!i.contains(t)&&o.contains(t))return i.add(t),this.yieldReturn(t)}return!1}),(function(){u.dispose(r)}))}))},p.prototype.sequenceEqual=function(t,e){e=u.createLambda(e);var n=this.getEnumerator();try{var r=p.from(t).getEnumerator();try{for(;n.moveNext();)if(!r.moveNext()||e(n.current())!==e(r.current()))return!1;return!r.moveNext()}finally{u.dispose(r)}}finally{u.dispose(n)}},p.prototype.union=function(t,e){e=u.createLambda(e);var n=this;return new p((function(){var r,o,i;return new c((function(){r=n.getEnumerator(),i=new b(e)}),(function(){var e;if(void 0===o){for(;r.moveNext();)if(e=r.current(),!i.contains(e))return i.add(e),this.yieldReturn(e);o=p.from(t).getEnumerator()}for(;o.moveNext();)if(e=o.current(),!i.contains(e))return i.add(e),this.yieldReturn(e);return!1}),(function(){try{u.dispose(r)}finally{u.dispose(o)}}))}))},p.prototype.orderBy=function(t){return new f(this,t,!1)},p.prototype.orderByDescending=function(t){return new f(this,t,!0)},p.prototype.reverse=function(){var t=this;return new p((function(){var e,n;return new c((function(){e=t.toArray(),n=e.length}),(function(){return n>0&&this.yieldReturn(e[--n])}),s.Blank)}))},p.prototype.shuffle=function(){var t=this;return new p((function(){var e;return new c((function(){e=t.toArray()}),(function(){if(e.length>0){var t=Math.floor(Math.random()*e.length);return this.yieldReturn(e.splice(t,1)[0])}return!1}),s.Blank)}))},p.prototype.weightedSample=function(t){t=u.createLambda(t);var e=this;return new p((function(){var n,r=0;return new c((function(){n=e.choose((function(e){var n=t(e);return n<=0?null:{value:e,bound:r+=n}})).toArray()}),(function(){if(n.length>0){for(var t=Math.floor(Math.random()*r)+1,e=-1,o=n.length;o-e>1;){var i=Math.floor((e+o)/2);n[i].bound>=t?o=i:e=i}return this.yieldReturn(n[o].value)}return this.yieldBreak()}),s.Blank)}))},p.prototype.groupBy=function(t,e,n,r){var o=this;return t=u.createLambda(t),e=u.createLambda(e),null!=n&&(n=u.createLambda(n)),r=u.createLambda(r),new p((function(){var i;return new c((function(){i=o.toLookup(t,e,r).toEnumerable().getEnumerator()}),(function(){for(;i.moveNext();)return this.yieldReturn(null==n?i.current():n(i.current().key(),i.current()));return!1}),(function(){u.dispose(i)}))}))},p.prototype.partitionBy=function(t,e,n,r){var o,i=this;return t=u.createLambda(t),e=u.createLambda(e),r=u.createLambda(r),null==n?(o=!1,n=function(t,e){return new w(t,e)}):(o=!0,n=u.createLambda(n)),new p((function(){var s,a,l,h=[];return new c((function(){(s=i.getEnumerator()).moveNext()&&(a=t(s.current()),l=r(a),h.push(e(s.current())))}),(function(){for(var i;1==(i=s.moveNext())&&l===r(t(s.current()));)h.push(e(s.current()));if(h.length>0){var u=n(a,o?p.from(h):h);return i?(a=t(s.current()),l=r(a),h=[e(s.current())]):h=[],this.yieldReturn(u)}return!1}),(function(){u.dispose(s)}))}))},p.prototype.buffer=function(t){var e=this;return new p((function(){var n;return new c((function(){n=e.getEnumerator()}),(function(){for(var e=[],r=0;n.moveNext();)if(e.push(n.current()),++r>=t)return this.yieldReturn(e);return e.length>0&&this.yieldReturn(e)}),(function(){u.dispose(n)}))}))},p.prototype.aggregate=function(t,e,n){return(n=u.createLambda(n))(this.scan(t,e,n).last())},p.prototype.average=function(t){t=u.createLambda(t);var e=0,n=0;return this.forEach((function(r){e+=t(r),++n})),e/n},p.prototype.count=function(t){t=null==t?s.True:u.createLambda(t);var e=0;return this.forEach((function(n,r){t(n,r)&&++e})),e},p.prototype.max=function(t){return null==t&&(t=s.Identity),this.select(t).aggregate((function(t,e){return t>e?t:e}))},p.prototype.min=function(t){return null==t&&(t=s.Identity),this.select(t).aggregate((function(t,e){return t<e?t:e}))},p.prototype.maxBy=function(t){return t=u.createLambda(t),this.aggregate((function(e,n){return t(e)>t(n)?e:n}))},p.prototype.minBy=function(t){return t=u.createLambda(t),this.aggregate((function(e,n){return t(e)<t(n)?e:n}))},p.prototype.sum=function(t){return null==t&&(t=s.Identity),this.select(t).aggregate(0,(function(t,e){return t+e}))},p.prototype.elementAt=function(t){var e,n=!1;if(this.forEach((function(r,o){if(o==t)return e=r,n=!0,!1})),!n)throw new Error("index is less than 0 or greater than or equal to the number of elements in source.");return e},p.prototype.elementAtOrDefault=function(t,e){var n;void 0===e&&(e=null);var r=!1;return this.forEach((function(e,o){if(o==t)return n=e,r=!0,!1})),r?n:e},p.prototype.first=function(t){if(null!=t)return this.where(t).first();var e,n=!1;if(this.forEach((function(t){return e=t,n=!0,!1})),!n)throw new Error("first:No element satisfies the condition.");return e},p.prototype.firstOrDefault=function(t,e){if(void 0!==t){if("function"==typeof t||"function"==typeof u.createLambda(t))return this.where(t).firstOrDefault(void 0,e);e=t}var n,r=!1;return this.forEach((function(t){return n=t,r=!0,!1})),r?n:e},p.prototype.last=function(t){if(null!=t)return this.where(t).last();var e,n=!1;if(this.forEach((function(t){n=!0,e=t})),!n)throw new Error("last:No element satisfies the condition.");return e},p.prototype.lastOrDefault=function(t,e){if(void 0!==t){if("function"==typeof t||"function"==typeof u.createLambda(t))return this.where(t).lastOrDefault(void 0,e);e=t}var n,r=!1;return this.forEach((function(t){r=!0,n=t})),r?n:e},p.prototype.single=function(t){if(null!=t)return this.where(t).single();var e,n=!1;if(this.forEach((function(t){if(n)throw new Error("single:sequence contains more than one element.");n=!0,e=t})),!n)throw new Error("single:No element satisfies the condition.");return e},p.prototype.singleOrDefault=function(t,e){if(void 0===e&&(e=null),null!=t)return this.where(t).singleOrDefault(null,e);var n,r=!1;return this.forEach((function(t){if(r)throw new Error("single:sequence contains more than one element.");r=!0,n=t})),r?n:e},p.prototype.skip=function(t){var e=this;return new p((function(){var n,r=0;return new c((function(){for(n=e.getEnumerator();r++<t&&n.moveNext(););}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){u.dispose(n)}))}))},p.prototype.skipWhile=function(t){t=u.createLambda(t);var e=this;return new p((function(){var n,r=0,o=!1;return new c((function(){n=e.getEnumerator()}),(function(){for(;!o;){if(!n.moveNext())return!1;if(!t(n.current(),r++))return o=!0,this.yieldReturn(n.current())}return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){u.dispose(n)}))}))},p.prototype.take=function(t){var e=this;return new p((function(){var n,r=0;return new c((function(){n=e.getEnumerator()}),(function(){return!!(r++<t&&n.moveNext())&&this.yieldReturn(n.current())}),(function(){u.dispose(n)}))}))},p.prototype.takeWhile=function(t){t=u.createLambda(t);var e=this;return new p((function(){var n,r=0;return new c((function(){n=e.getEnumerator()}),(function(){return!(!n.moveNext()||!t(n.current(),r++))&&this.yieldReturn(n.current())}),(function(){u.dispose(n)}))}))},p.prototype.takeExceptLast=function(t){null==t&&(t=1);var e=this;return new p((function(){if(t<=0)return e.getEnumerator();var n,r=[];return new c((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();){if(r.length==t)return r.push(n.current()),this.yieldReturn(r.shift());r.push(n.current())}return!1}),(function(){u.dispose(n)}))}))},p.prototype.takeFromLast=function(t){if(t<=0||null==t)return p.empty();var e=this;return new p((function(){var n,r,o=[];return new c((function(){n=e.getEnumerator()}),(function(){for(;n.moveNext();)o.length==t&&o.shift(),o.push(n.current());return null==r&&(r=p.from(o).getEnumerator()),!!r.moveNext()&&this.yieldReturn(r.current())}),(function(){u.dispose(r)}))}))},p.prototype.indexOf=function(t){var e=null;return this.forEach("function"==typeof t?function(n,r){if(t(n,r))return e=r,!1}:function(n,r){if(n===t)return e=r,!1}),null!==e?e:-1},p.prototype.lastIndexOf=function(t){var e=-1;return this.forEach("function"==typeof t?function(n,r){t(n,r)&&(e=r)}:function(n,r){n===t&&(e=r)}),e},p.prototype.cast=function(){return this},p.prototype.asEnumerable=function(){return p.from(this)},p.prototype.toArray=function(){var t=[];return this.forEach((function(e){t.push(e)})),t},p.prototype.toLookup=function(t,e,n){t=u.createLambda(t),e=u.createLambda(e),n=u.createLambda(n);var r=new b(n);return this.forEach((function(n){var o=t(n),i=e(n),s=r.get(o);void 0!==s?s.push(i):r.add(o,[i])})),new v(r)},p.prototype.toObject=function(t,e){t=u.createLambda(t),e=u.createLambda(e);var n={};return this.forEach((function(r){n[t(r)]=e(r)})),n},p.prototype.toDictionary=function(t,e,n){t=u.createLambda(t),e=u.createLambda(e),n=u.createLambda(n);var r=new b(n);return this.forEach((function(n){r.add(t(n),e(n))})),r},p.prototype.toJSONString=function(t,e){if("undefined"==typeof JSON||null==JSON.stringify)throw new Error("toJSONString can't find JSON.stringify. This works native JSON support Browser or include json2.js");return JSON.stringify(this.toArray(),t,e)},p.prototype.toJoinedString=function(t,e){return null==t&&(t=""),null==e&&(e=s.Identity),this.select(e).toArray().join(t)},p.prototype.doAction=function(t){var e=this;return t=u.createLambda(t),new p((function(){var n,r=0;return new c((function(){n=e.getEnumerator()}),(function(){return!!n.moveNext()&&(t(n.current(),r++),this.yieldReturn(n.current()))}),(function(){u.dispose(n)}))}))},p.prototype.forEach=function(t){t=u.createLambda(t);var e=0,n=this.getEnumerator();try{for(;n.moveNext()&&!1!==t(n.current(),e++););}finally{u.dispose(n)}},p.prototype.write=function(t,e){null==t&&(t=""),e=u.createLambda(e);var n=!0;this.forEach((function(r){n?n=!1:document.write(t),document.write(e(r))}))},p.prototype.writeLine=function(t){t=u.createLambda(t),this.forEach((function(e){document.writeln(t(e)+"<br />")}))},p.prototype.force=function(){var t=this.getEnumerator();try{for(;t.moveNext(););}finally{u.dispose(t)}},p.prototype.letBind=function(t){t=u.createLambda(t);var e=this;return new p((function(){var n;return new c((function(){n=p.from(t(e)).getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){u.dispose(n)}))}))},p.prototype.share=function(){var t,e=this,n=!1;return new g((function(){return new c((function(){null==t&&(t=e.getEnumerator())}),(function(){if(n)throw new Error("enumerator is disposed");return!!t.moveNext()&&this.yieldReturn(t.current())}),s.Blank)}),(function(){n=!0,u.dispose(t)}))},p.prototype.memoize=function(){var t,e,n=this,r=!1;return new g((function(){var o=-1;return new c((function(){null==e&&(e=n.getEnumerator(),t=[])}),(function(){if(r)throw new Error("enumerator is disposed");return o++,t.length<=o?!!e.moveNext()&&this.yieldReturn(t[o]=e.current()):this.yieldReturn(t[o])}),s.Blank)}),(function(){r=!0,u.dispose(e),t=null}))},u.hasNativeIteratorSupport()&&(p.prototype[Symbol.iterator]=function(){return{enumerator:this.getEnumerator(),next:function(){return this.enumerator.moveNext()?{done:!1,value:this.enumerator.current()}:{done:!0}}}}),p.prototype.catchError=function(t){t=u.createLambda(t);var e=this;return new p((function(){var n;return new c((function(){n=e.getEnumerator()}),(function(){try{return!!n.moveNext()&&this.yieldReturn(n.current())}catch(e){return t(e),!1}}),(function(){u.dispose(n)}))}))},p.prototype.finallyAction=function(t){t=u.createLambda(t);var e=this;return new p((function(){var n;return new c((function(){n=e.getEnumerator()}),(function(){return!!n.moveNext()&&this.yieldReturn(n.current())}),(function(){try{u.dispose(n)}finally{t()}}))}))},p.prototype.log=function(t){return t=u.createLambda(t),this.doAction((function(e){"undefined"!=typeof console&&console.log(t(e))}))},p.prototype.trace=function(t,e){return null==t&&(t="Trace"),e=u.createLambda(e),this.doAction((function(n){"undefined"!=typeof console&&console.log(t,e(n))}))};var f=function(t,e,n,r){this.source=t,this.keySelector=u.createLambda(e),this.descending=n,this.parent=r};f.prototype=new p,f.prototype.createOrderedEnumerable=function(t,e){return new f(this.source,t,e,this)},f.prototype.thenBy=function(t){return this.createOrderedEnumerable(t,!1)},f.prototype.thenByDescending=function(t){return this.createOrderedEnumerable(t,!0)},f.prototype.getEnumerator=function(){var t,e,n=this,r=0;return new c((function(){t=[],e=[],n.source.forEach((function(n,r){t.push(n),e.push(r)}));var r=d.create(n,null);r.GenerateKeys(t),e.sort((function(t,e){return r.compare(t,e)}))}),(function(){return r<e.length&&this.yieldReturn(t[e[r++]])}),s.Blank)};var d=function(t,e,n){this.keySelector=t,this.descending=e,this.child=n,this.keys=null};d.create=function(t,e){var n=new d(t.keySelector,t.descending,e);return null!=t.parent?d.create(t.parent,n):n},d.prototype.GenerateKeys=function(t){for(var e=t.length,n=this.keySelector,r=new Array(e),o=0;o<e;o++)r[o]=n(t[o]);this.keys=r,null!=this.child&&this.child.GenerateKeys(t)},d.prototype.compare=function(t,e){var n=u.compare(this.keys[t],this.keys[e]);return 0==n?null!=this.child?this.child.compare(t,e):u.compare(t,e):this.descending?-n:n};var g=function(t,e){this.dispose=e,p.call(this,t)};g.prototype=new p;var y=function(t){this.getSource=function(){return t}};y.prototype=new p,y.prototype.any=function(t){return null==t?this.getSource().length>0:p.prototype.any.apply(this,arguments)},y.prototype.count=function(t){return null==t?this.getSource().length:p.prototype.count.apply(this,arguments)},y.prototype.elementAt=function(t){var e=this.getSource();return 0<=t&&t<e.length?e[t]:p.prototype.elementAt.apply(this,arguments)},y.prototype.elementAtOrDefault=function(t,e){void 0===e&&(e=null);var n=this.getSource();return 0<=t&&t<n.length?n[t]:e},y.prototype.first=function(t){var e=this.getSource();return null==t&&e.length>0?e[0]:p.prototype.first.apply(this,arguments)},y.prototype.firstOrDefault=function(t,e){if(void 0!==t)return p.prototype.firstOrDefault.apply(this,arguments);e=t;var n=this.getSource();return n.length>0?n[0]:e},y.prototype.last=function(t){var e=this.getSource();return null==t&&e.length>0?e[e.length-1]:p.prototype.last.apply(this,arguments)},y.prototype.lastOrDefault=function(t,e){if(void 0!==t)return p.prototype.lastOrDefault.apply(this,arguments);e=t;var n=this.getSource();return n.length>0?n[n.length-1]:e},y.prototype.skip=function(t){var e=this.getSource();return new p((function(){var n;return new c((function(){n=t<0?0:t}),(function(){return n<e.length&&this.yieldReturn(e[n++])}),s.Blank)}))},y.prototype.takeExceptLast=function(t){return null==t&&(t=1),this.take(this.getSource().length-t)},y.prototype.takeFromLast=function(t){return this.skip(this.getSource().length-t)},y.prototype.reverse=function(){var t=this.getSource();return new p((function(){var e;return new c((function(){e=t.length}),(function(){return e>0&&this.yieldReturn(t[--e])}),s.Blank)}))},y.prototype.sequenceEqual=function(t,e){return(!(t instanceof y||t instanceof Array)||null!=e||p.from(t).count()==this.count())&&p.prototype.sequenceEqual.apply(this,arguments)},y.prototype.toJoinedString=function(t,e){var n=this.getSource();return null==e&&n instanceof Array?(null==t&&(t=""),n.join(t)):p.prototype.toJoinedString.apply(this,arguments)},y.prototype.getEnumerator=function(){var t=this.getSource(),e=-1;return{current:function(){return t[e]},moveNext:function(){return++e<t.length},dispose:s.Blank}};var m=function(t,e){this.prevSource=t,this.prevPredicate=e};m.prototype=new p,m.prototype.where=function(t){if((t=u.createLambda(t)).length<=1){var e=this.prevPredicate;return new m(this.prevSource,(function(n){return e(n)&&t(n)}))}return p.prototype.where.call(this,t)},m.prototype.select=function(t){return(t=u.createLambda(t)).length<=1?new _(this.prevSource,this.prevPredicate,t):p.prototype.select.call(this,t)},m.prototype.getEnumerator=function(){var t,e=this.prevPredicate,n=this.prevSource;return new c((function(){t=n.getEnumerator()}),(function(){for(;t.moveNext();)if(e(t.current()))return this.yieldReturn(t.current());return!1}),(function(){u.dispose(t)}))};var _=function(t,e,n){this.prevSource=t,this.prevPredicate=e,this.prevSelector=n};_.prototype=new p,_.prototype.where=function(t){return(t=u.createLambda(t)).length<=1?new m(this,t):p.prototype.where.call(this,t)},_.prototype.select=function(t){if((t=u.createLambda(t)).length<=1){var e=this.prevSelector;return new _(this.prevSource,this.prevPredicate,(function(n){return t(e(n))}))}return p.prototype.select.call(this,t)},_.prototype.getEnumerator=function(){var t,e=this.prevPredicate,n=this.prevSelector,r=this.prevSource;return new c((function(){t=r.getEnumerator()}),(function(){for(;t.moveNext();)if(null==e||e(t.current()))return this.yieldReturn(n(t.current()));return!1}),(function(){u.dispose(t)}))};var b=function(){var t=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e=function(t){return null===t?"null":void 0===t?"undefined":"function"==typeof t.toString?t.toString():Object.prototype.toString.call(t)},n=function(t,e){this.key=t,this.value=e,this.prev=null,this.next=null},r=function(){this.first=null,this.last=null};r.prototype={addLast:function(t){null!=this.last?(this.last.next=t,t.prev=this.last,this.last=t):this.first=this.last=t},replace:function(t,e){null!=t.prev?(t.prev.next=e,e.prev=t.prev):this.first=e,null!=t.next?(t.next.prev=e,e.next=t.next):this.last=e},remove:function(t){null!=t.prev?t.prev.next=t.next:this.first=t.next,null!=t.next?t.next.prev=t.prev:this.last=t.prev}};var o=function(t){this.countField=0,this.entryList=new r,this.buckets={},this.compareSelector=null==t?s.Identity:t};return o.prototype={add:function(r,o){var i=this.compareSelector(r),s=e(i),a=new n(r,o);if(t(this.buckets,s)){for(var l=this.buckets[s],u=0;u<l.length;u++)if(this.compareSelector(l[u].key)===i)return this.entryList.replace(l[u],a),void(l[u]=a);l.push(a)}else this.buckets[s]=[a];this.countField++,this.entryList.addLast(a)},get:function(n){var r=this.compareSelector(n),o=e(r);if(t(this.buckets,o))for(var i=this.buckets[o],s=0;s<i.length;s++){var a=i[s];if(this.compareSelector(a.key)===r)return a.value}},set:function(r,o){var i=this.compareSelector(r),s=e(i);if(t(this.buckets,s))for(var a=this.buckets[s],l=0;l<a.length;l++)if(this.compareSelector(a[l].key)===i){var u=new n(r,o);return this.entryList.replace(a[l],u),a[l]=u,!0}return!1},contains:function(n){var r=this.compareSelector(n),o=e(r);if(!t(this.buckets,o))return!1;for(var i=this.buckets[o],s=0;s<i.length;s++)if(this.compareSelector(i[s].key)===r)return!0;return!1},clear:function(){this.countField=0,this.buckets={},this.entryList=new r},remove:function(n){var r=this.compareSelector(n),o=e(r);if(t(this.buckets,o))for(var i=this.buckets[o],s=0;s<i.length;s++)if(this.compareSelector(i[s].key)===r)return this.entryList.remove(i[s]),i.splice(s,1),0==i.length&&delete this.buckets[o],void this.countField--},count:function(){return this.countField},toEnumerable:function(){var t=this;return new p((function(){var e;return new c((function(){e=t.entryList.first}),(function(){if(null!=e){var t={key:e.key,value:e.value};return e=e.next,this.yieldReturn(t)}return!1}),s.Blank)}))}},o}(),v=function(t){this.count=function(){return t.count()},this.get=function(e){return p.from(t.get(e))},this.contains=function(e){return t.contains(e)},this.toEnumerable=function(){return t.toEnumerable().select((function(t){return new w(t.key,t.value)}))}},w=function(t,e){this.key=function(){return t},y.call(this,e)};w.prototype=new y,n("jPSd")?void 0===(r=(function(){return p}).apply(e,[]))||(t.exports=r):void 0!==t&&t.exports?t.exports=p:o.Enumerable=p}(this)},oXSN:function(t){t.exports=JSON.parse('{"PantonePicker":{"SEARCH_TEXT":"Search by Pantone name or number","COLOR":"Color","NO_FILTER_SELECTED":"All","NO_RESULT_TITLE":"No results found","NO_RESULT_TEXT":"Check your filter options, or search for a different keyword.","RESET":"Reset"}}')},zUnb:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.r(e);let o=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=t},get useDeprecatedSynchronousErrorHandling(){return o}};function s(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(i.useDeprecatedSynchronousErrorHandling)throw t;s(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function u(t){return null!==t&&"object"==typeof t}const c=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let h=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(r(o))try{o.call(this)}catch(s){e=s instanceof c?p(s.errors):[s]}if(l(i)){let t=-1,n=i.length;for(;++t<n;){const n=i[t];if(u(n))try{n.unsubscribe()}catch(s){e=e||[],s instanceof c?e=e.concat(p(s.errors)):e.push(s)}}}if(e)throw new c(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof t){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function p(t){return t.reduce((t,e)=>t.concat(e instanceof c?e.errors:e),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class d extends h{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof d?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,n)}}[f](){return this}static create(t,e,n){const r=new d(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends d{constructor(t,e,n,o){let i;super(),this._parentSubscriber=t;let s=this;r(e)?i=e:e&&(i=e.next,n=e.error,o=e.complete,e!==a&&(s=Object.create(e),r(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=n,this._complete=o}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;i.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=i;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):s(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;s(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);i.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),i.useDeprecatedSynchronousErrorHandling)throw n;s(n)}}__tryOrSetError(t,e,n){if(!i.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return i.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(s(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const y=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function m(t){return t}let _=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:r}=this,o=function(t,e,n){if(t){if(t instanceof d)return t;if(t[f])return t[f]()}return t||e||n?new d(t,e,n):new d(a)}(t,e,n);if(o.add(r?r.call(o,this.source):this.source||i.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),i.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(e){i.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof d?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(o){n(o),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[y](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?m:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=i.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends h{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends d{constructor(t){super(t),this.destination=t}}let P=(()=>{class t extends _{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new C(this)}lift(t){const e=new O(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let o=0;o<n;o++)r[o].next(t)}}error(t){if(this.closed)throw new v;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,r=e.slice();for(let o=0;o<n;o++)r[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let r=0;r<e;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new v;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new v;return this.hasError?(t.error(this.thrownError),h.EMPTY):this.isStopped?(t.complete(),h.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new _;return t.source=this,t}}return t.create=(t,e)=>new O(t,e),t})();class O extends P{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):h.EMPTY}}function x(t){return t&&"function"==typeof t.schedule}class S extends d{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const E=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()};function k(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const T=k(),j=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function I(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const R=t=>{if(t&&"function"==typeof t[y])return r=t,t=>{const e=r[y]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(j(t))return E(t);if(I(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s),t);if(t&&"function"==typeof t[T])return e=t,t=>{const n=e[T]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=u(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,r};function A(t,e,n,r,o=new S(t,n,r)){if(!o.closed)return e instanceof _?e.subscribe(o):R(e)(o)}class M extends d{notifyNext(t,e,n,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}function N(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new B(t,e))}}class B{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new L(t,this.project,this.thisArg))}}class L extends d{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}function F(t,e){return new _(n=>{const r=new h;let o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}function D(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[y]}(t))return function(t,e){return new _(n=>{const r=new h;return r.add(e.schedule(()=>{const o=t[y]();r.add(o.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(I(t))return function(t,e){return new _(n=>{const r=new h;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(j(t))return F(t,e);if(function(t){return t&&"function"==typeof t[T]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new _(n=>{const r=new h;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(e.schedule(()=>{o=t[T](),r.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=o.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())})))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof _?t:new _(R(t))}function V(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(V((n,r)=>D(t(n,r)).pipe(N((t,o)=>e(n,t,r,o))),n)):("number"==typeof e&&(n=e),e=>e.lift(new z(t,n)))}class z{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new q(t,this.project,this.concurrent))}}class q extends M{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)}_innerSub(t,e,n){const r=new S(this,e,n),o=this.destination;o.add(r);const i=A(this,t,void 0,void 0,r);i!==r&&o.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t,e,n,r,o){this.destination.next(e)}notifyComplete(t){const e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function U(t=Number.POSITIVE_INFINITY){return V(m,t)}function H(t,e){return e?F(t,e):new _(E(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return x(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof _?t[0]:U(e)(H(t,n))}function G(){return function(t){return t.lift(new $(t))}}class ${constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new Y(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o}}class Y extends d{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class X extends _{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new h,t.add(this.source.subscribe(new J(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t}refCount(){return G()(this)}}const Z=(()=>{const t=X.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class J extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function K(){return new P}function Q(t,e,n){return(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function o(...t){if(this instanceof o)return r.apply(this,t),this;const e=new o(...t);return n.annotation=e,n;function n(t,n,r){const o=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;o.length<=r;)o.push(null);return(o[r]=o[r]||[]).push(e),t}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})()}const tt=Q("Inject",t=>({token:t})),et=Q("Optional"),nt=Q("Self"),rt=Q("SkipSelf");var ot=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function it(t){for(let e in t)if(t[e]===it)return e;throw Error("Could not find renamed property on target object.")}function st(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function at(t){return lt(t,t[ut])||lt(t,t[ct])}function lt(t,e){return e&&e.token===t?e:null}const ut=it({"\u0275prov":it}),ct=it({ngInjectableDef:it});function ht(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ht).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}const pt=it({__forward_ref__:it});function ft(t){return t.__forward_ref__=ft,t.toString=function(){return ht(this())},t}function dt(t){return"function"==typeof(e=t)&&e.hasOwnProperty(pt)&&e.__forward_ref__===ft?t():t;var e}const gt="undefined"!=typeof globalThis&&globalThis,yt="undefined"!=typeof window&&window,mt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,_t="undefined"!=typeof global&&global,bt=gt||_t||yt||mt;class vt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=st({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const wt=new vt("INJECTOR",-1),Ct={},Pt=/\n/gm,Ot=it({provide:String,useValue:it});let xt=void 0;function St(t){const e=xt;return xt=t,e}function Et(t,e=ot.Default){return function(t,e=ot.Default){if(void 0===xt)throw new Error("inject() must be called from an injection context");return null===xt?function(t,e,n){const r=at(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ot.Optional)return null;throw new Error(`Injector: NOT_FOUND [${ht(t)}]`)}(t,0,e):xt.get(t,e&ot.Optional?null:void 0,e)}(dt(t),e)}class kt{get(t,e=Ct){if(e===Ct){const e=new Error(`NullInjectorError: No provider for ${ht(t)}!`);throw e.name="NullInjectorError",e}return e}}function Tt(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=ht(e);if(Array.isArray(e))o=e.map(ht).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):ht(r)))}o=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(Pt,"\n  ")}`}class jt{}function It(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Rt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function At(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}const Mt=function(){var t={Emulated:0,Native:1,None:2,ShadowDom:3};return t[t.Emulated]="Emulated",t[t.Native]="Native",t[t.None]="None",t[t.ShadowDom]="ShadowDom",t}();let Nt=void 0;const Bt=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(bt))();function Lt(t){return t.ngDebugContext}function Ft(t){return t.ngOriginalError}function Dt(t,...e){t.error(...e)}class Vt{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||Dt}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?Lt(t)?Lt(t):this._findContext(Ft(t)):null}_findOriginalError(t){let e=Ft(t);for(;e&&Ft(e);)e=Ft(e);return e}}class zt{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class qt extends zt{getTypeName(){return"HTML"}}class Ut extends zt{getTypeName(){return"Style"}}class Ht extends zt{getTypeName(){return"Script"}}class Wt extends zt{getTypeName(){return"URL"}}class Gt extends zt{getTypeName(){return"ResourceURL"}}function $t(t){return t instanceof zt?t.changingThisBreaksApplicationSecurity:t}function Yt(t,e){const n=Xt(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Xt(t){return t instanceof zt&&t.getTypeName()||null}let Zt=!0,Jt=!1;function Kt(){return Jt=!0,Zt}class Qt{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");let e=this.inertDocument.body;if(null==e){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),e=this.inertDocument.createElement("body"),t.appendChild(e)}e.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!e.querySelector||e.querySelector("svg")?(e.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=e.querySelector&&e.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}getInertBodyElement_XHR(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(r){return null}const e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);const n=e.response.body;return n.removeChild(n.firstChild),n}getInertBodyElement_DOMParser(t){t="<body><remove></remove>"+t+"</body>";try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}getInertBodyElement_InertDocument(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const n=e.item(r).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const te=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ee=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function ne(t){return(t=String(t)).match(te)||t.match(ee)?t:(Kt()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function re(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function oe(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const ie=re("area,br,col,hr,img,wbr"),se=re("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ae=re("rp,rt"),le=oe(ae,se),ue=oe(ie,oe(se,re("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),oe(ae,re("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),le),ce=re("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),he=re("srcset"),pe=oe(ce,he,re("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),re("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),fe=re("script,style,template");class de{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!ue.hasOwnProperty(e))return this.sanitizedSomething=!0,!fe.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let o=0;o<n.length;o++){const t=n.item(o),e=t.name,i=e.toLowerCase();if(!pe.hasOwnProperty(i)){this.sanitizedSomething=!0;continue}let s=t.value;ce[i]&&(s=ne(s)),he[i]&&(r=s,s=(r=String(r)).split(",").map(t=>ne(t.trim())).join(", ")),this.buf.push(" ",e,'="',me(s),'"')}var r;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ue.hasOwnProperty(e)&&!ie.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(me(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const ge=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ye=/([^\#-~ |!])/g;function me(t){return t.replace(/&/g,"&amp;").replace(ge,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(ye,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let _e;function be(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const ve=function(){var t={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return t[t.NONE]="NONE",t[t.HTML]="HTML",t[t.STYLE]="STYLE",t[t.SCRIPT]="SCRIPT",t[t.URL]="URL",t[t.RESOURCE_URL]="RESOURCE_URL",t}(),we=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Ce=/^url\(([^)]+)\)$/,Pe=/([A-Z])/g;function Oe(t){try{return null!=t?t.toString().slice(0,30):t}catch(e){return"[ERROR] Exception while trying to serialize the value"}}let xe=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Se(),t})();const Se=(...t)=>{},Ee=new vt("Set Injector scope."),ke=function(t,e,n){return new Me(t,e,n)};let Te=(()=>{class t{static create(t,e){return Array.isArray(t)?ke(t,e,""):ke(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ct,t.NULL=new kt,t.\u0275prov=st({token:t,providedIn:"any",factory:()=>Et(wt)}),t.__NG_ELEMENT_ID__=-1,t})();const je=function(t){return t},Ie=[],Re=je,Ae=function(){return Array.prototype.slice.call(arguments)};class Me{constructor(t,e=Te.NULL,n=null){this.parent=e,this.source=n;const r=this._records=new Map;r.set(Te,{token:Te,fn:je,deps:Ie,value:this,useNew:!1}),r.set(wt,{token:wt,fn:je,deps:Ie,value:this,useNew:!1}),this.scope=function t(e,n){let r=null;if(n)if(n=dt(n),Array.isArray(n))for(let o=0;o<n.length;o++)r=t(e,n[o])||r;else{if("function"==typeof n)throw Le("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Le("Unexpected provider",n);{let t=dt(n.provide);const o=Ne(n);if(!0===n.multi){let r=e.get(t);if(r){if(r.fn!==Ae)throw Be(t)}else e.set(t,r={token:n.provide,deps:[],useNew:!1,fn:Ae,value:Ie});t=n,r.deps.push({token:t,options:6})}const i=e.get(t);if(i&&i.fn==Ae)throw Be(t);t===Ee&&(r=o.value),e.set(t,o)}}return r}(r,t)}get(t,e,n=ot.Default){const r=this._records;let o=r.get(t);if(void 0===o){const e=at(t);if(e){const n=e&&e.providedIn;("any"===n||null!=n&&n===this.scope)&&r.set(t,o=Ne({provide:t,useFactory:e.factory,deps:Ie}))}void 0===o&&r.set(t,null)}let i=St(this);try{return function t(e,n,r,o,i,s){try{return function(e,n,r,o,i,s){let a;if(!n||s&ot.SkipSelf)a=s&ot.Self?Te.NULL.get(e,s&ot.Optional?void 0!==i?i:null:i):o.get(e,i,ot.Default);else{if(a=n.value,a==Re)throw Error("\u0275Circular dependency");if(a===Ie){n.value=Re;let e=void 0,i=n.useNew,s=n.fn,l=n.deps,u=Ie;if(l.length){u=[];for(let e=0;e<l.length;e++){const n=l[e],i=n.options,s=2&i?r.get(n.token):void 0;u.push(t(n.token,s,r,s||4&i?o:Te.NULL,1&i?null:Te.THROW_IF_NOT_FOUND,ot.Default))}}n.value=a=i?new s(...u):s.apply(e,u)}}return a}(e,n,r,o,i,s)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(e),n&&n.value==Re&&(n.value=Ie),a}}(t,o,r,this.parent,e,n)}catch(s){return function(t,e,n,r){const o=t.ngTempTokenPath;throw e.__source&&o.unshift(e.__source),t.message=Tt("\n"+t.message,o,"StaticInjectorError",r),t.ngTokenPath=o,t.ngTempTokenPath=null,t}(s,t,0,this.source)}finally{St(i)}}toString(){const t=[];return this._records.forEach((e,n)=>t.push(ht(n))),`StaticInjector[${t.join(", ")}]`}}function Ne(t){const e=function(t){let e=Ie;const n=t.deps;if(n&&n.length){e=[];for(let t=0;t<n.length;t++){let r=6,o=dt(n[t]);if(Array.isArray(o))for(let t=0,e=o;t<e.length;t++){const n=e[t];n instanceof et||n==et?r|=1:n instanceof rt||n==rt?r&=-3:n instanceof nt||n==nt?r&=-5:o=n instanceof tt?n.token:dt(n)}e.push({token:o,options:r})}}else if(t.useExisting)e=[{token:dt(t.useExisting),options:6}];else if(!n&&!(Ot in t))throw Le("'deps' required",t);return e}(t);let n=je,r=Ie,o=!1,i=dt(t.provide);if(Ot in t)r=t.useValue;else if(t.useFactory)n=t.useFactory;else if(t.useExisting);else if(t.useClass)o=!0,n=dt(t.useClass);else{if("function"!=typeof i)throw Le("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);o=!0,n=i}return{deps:e,fn:n,useNew:o,value:r}}function Be(t){return Le("Cannot mix multi providers and regular providers",t)}function Le(t,e){return new Error(Tt(t,e,"StaticInjectorError"))}let Fe=null;function De(){if(!Fe){const t=bt.Symbol;if(t&&t.iterator)Fe=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Fe=n)}}}return Fe}function Ve(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function ze(t,e){const n=Ue(t),r=Ue(e);if(n&&r)return function(t,e,n){const r=t[De()](),o=e[De()]();for(;;){const t=r.next(),e=o.next();if(t.done&&e.done)return!0;if(t.done||e.done)return!1;if(!n(t.value,e.value))return!1}}(t,e,ze);{const o=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!(n||!o||r||!i)||Ve(t,e)}}class qe{constructor(t){this.wrapped=t}static wrap(t){return new qe(t)}static unwrap(t){return qe.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof qe}}function Ue(t){return!!He(t)&&(Array.isArray(t)||!(t instanceof Map)&&De()in t)}function He(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function We(t){return!!t&&"function"==typeof t.then}function Ge(t){return!!t&&"function"==typeof t.subscribe}class $e{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}class Ye{}function Xe(t){const e=Error(`No component factory found for ${ht(t)}. Did you add it to @NgModule.entryComponents?`);return e[Ze]=t,e}const Ze="ngComponent";class Je{resolveComponentFactory(t){throw Xe(t)}}let Ke=(()=>{class t{}return t.NULL=new Je,t})();class Qe{constructor(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(let r=0;r<t.length;r++){const e=t[r];this._factories.set(e.componentType,e)}}resolveComponentFactory(t){let e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Xe(t);return new tn(e,this._ngModule)}}class tn extends Ye{constructor(t,e){super(),this.factory=t,this.ngModule=e,this.selector=t.selector,this.componentType=t.componentType,this.ngContentSelectors=t.ngContentSelectors,this.inputs=t.inputs,this.outputs=t.outputs}create(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)}}function en(...t){}let nn=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>rn(t),t})();const rn=en;class on{}const sn=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}();let an=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ln(),t})();const ln=en;let un=(()=>{class t{}return t.\u0275prov=st({token:t,providedIn:"root",factory:()=>null}),t})();class cn{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const hn=new cn("9.1.12");class pn{constructor(){}supports(t){return Ue(t)}create(t){return new dn(t)}}const fn=(t,e)=>e;class dn{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||fn}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,o=null;for(;e||n;){const i=!n||e&&e.currentIndex<_n(n,r,o)?e:n,s=_n(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{o||(o=[]);const t=s-r,e=a-r;if(t!=e){for(let n=0;n<t;n++){const r=n<o.length?o[n]:o[n]=0,i=r+n;e<=i&&i<t&&(o[n]=r+1)}o[i.previousIndex]=e-t}}s!==a&&t(i,s,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!Ue(t))throw new Error(`Error trying to diff '${ht(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,r,o=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],r=this._trackByFn(e,n),null!==o&&Ve(o.trackById,r)?(i&&(o=this._verifyReinsertion(o,n,r,e)),Ve(o.item,n)||this._addIdentityChange(o,n)):(o=this._mismatch(o,n,r,e),i=!0),o=o._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[De()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(t,t=>{r=this._trackByFn(e,t),null!==o&&Ve(o.trackById,r)?(i&&(o=this._verifyReinsertion(o,t,r,e)),Ve(o.item,t)||this._addIdentityChange(o,t)):(o=this._mismatch(o,t,r,e),i=!0),o=o._next,e++}),this.length=e;return this._truncate(o),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Ve(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ve(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):t=this._addAfter(new gn(e,n),o,r),t}_verifyReinsertion(t,e,n,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new mn),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new mn),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class gn{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class yn{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Ve(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class mn{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new yn,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _n(t,e,n){const r=t.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+e+o}class bn{constructor(){}supports(t){return t instanceof Map||He(t)}create(){return new vn}}class vn{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||He(t)))throw new Error(`Error trying to diff '${ht(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}const n=new wn(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Ve(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class wn{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Cn=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new rt,new et]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=st({token:t,providedIn:"root",factory:()=>new t([new pn])}),t})(),Pn=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new rt,new et]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=st({token:t,providedIn:"root",factory:()=>new t([new bn])}),t})();const On=[new bn],xn=new Cn([new pn]),Sn=new Pn(On);let En=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>kn(t,nn),t})();const kn=en;let Tn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>jn(t,nn),t})();const jn=en;function In(t,e,n,r){let o=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${e}'. Current value: '${n}'.`;return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){const n=new Error(t);return Rn(n,e),n}(o,t)}function Rn(t,e){t.ngDebugContext=e,t.ngErrorLogger=e.logError.bind(e)}function An(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Mn(t,e,n){const r=t.state,o=1792&r;return o===e?(t.state=-1793&r|n,t.initIndex=-1,!0):o===n}function Nn(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Bn(t,e){return t.nodes[e]}function Ln(t,e){return t.nodes[e]}function Fn(t,e){return t.nodes[e]}function Dn(t,e){return t.nodes[e]}function Vn(t,e){return t.nodes[e]}const zn={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},qn=()=>{},Un=new Map;function Hn(t){let e=Un.get(t);return e||(e=ht(t)+"_"+Un.size,Un.set(t,e)),e}function Wn(t,e,n,r){if(qe.isWrapped(r)){r=qe.unwrap(r);const o=t.def.nodes[e].bindingIndex+n,i=qe.unwrap(t.oldValues[o]);t.oldValues[o]=new qe(i)}return r}function Gn(t){return{id:"$$undefined",styles:t.styles,encapsulation:t.encapsulation,data:t.data}}let $n=0;function Yn(t,e,n,r){return!(!(2&t.state)&&Ve(t.oldValues[e.bindingIndex+n],r))}function Xn(t,e,n,r){return!!Yn(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Zn(t,e,n,r){const o=t.oldValues[e.bindingIndex+n];if(1&t.state||!ze(o,r)){const i=e.bindings[n].name;throw In(zn.createDebugContext(t,e.nodeIndex),`${i}: ${o}`,`${i}: ${r}`,0!=(1&t.state))}}function Jn(t){let e=t;for(;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Kn(t,e){let n=t;for(;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Qn(t,e,n,r){try{return Jn(33554432&t.def.nodes[e].flags?Ln(t,e).componentView:t),zn.handleEvent(t,e,n,r)}catch(o){t.root.errorHandler.handleError(o)}}function tr(t){return t.parent?Ln(t.parent,t.parentNodeDef.nodeIndex):null}function er(t){return t.parent?t.parentNodeDef.parent:null}function nr(t,e){switch(201347067&e.flags){case 1:return Ln(t,e.nodeIndex).renderElement;case 2:return Bn(t,e.nodeIndex).renderText}}function rr(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function or(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function ir(t){return 1<<t%32}function sr(t){const e={};let n=0;const r={};return t&&t.forEach(([t,o])=>{"number"==typeof t?(e[t]=o,n|=ir(t)):r[t]=o}),{matchedQueries:e,references:r,matchedQueryIds:n}}function ar(t,e){return t.map(t=>{let n,r;return Array.isArray(t)?[r,n]=t:(r=0,n=t),n&&("function"==typeof n||"object"==typeof n)&&e&&Object.defineProperty(n,"__source",{value:e,configurable:!0}),{flags:r,token:n,tokenKey:Hn(n)}})}function lr(t,e,n){let r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Mt.Native?Ln(t,n.renderParent.nodeIndex).renderElement:void 0:e}const ur=new WeakMap;function cr(t){let e=ur.get(t);return e||(e=t(()=>qn),e.factory=t,ur.set(t,e)),e}function hr(t,e,n,r,o){3===e&&(n=t.renderer.parentNode(nr(t,t.def.lastRenderRootNode))),pr(t,e,0,t.def.nodes.length-1,n,r,o)}function pr(t,e,n,r,o,i,s){for(let a=n;a<=r;a++){const n=t.def.nodes[a];11&n.flags&&dr(t,n,e,o,i,s),a+=n.childCount}}function fr(t,e,n,r,o,i){let s=t;for(;s&&!rr(s);)s=s.parent;const a=s.parent,l=er(s),u=l.nodeIndex+l.childCount;for(let c=l.nodeIndex+1;c<=u;c++){const t=a.def.nodes[c];t.ngContentIndex===e&&dr(a,t,n,r,o,i),c+=t.childCount}if(!a.parent){const s=t.root.projectableNodes[e];if(s)for(let e=0;e<s.length;e++)gr(t,s[e],n,r,o,i)}}function dr(t,e,n,r,o,i){if(8&e.flags)fr(t,e.ngContent.index,n,r,o,i);else{const s=nr(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&gr(t,s,n,r,o,i),32&e.bindingFlags&&gr(Ln(t,e.nodeIndex).componentView,s,n,r,o,i)):gr(t,s,n,r,o,i),16777216&e.flags){const s=Ln(t,e.nodeIndex).viewContainer._embeddedViews;for(let t=0;t<s.length;t++)hr(s[t],n,r,o,i)}1&e.flags&&!e.element.name&&pr(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,o,i)}}function gr(t,e,n,r,o,i){const s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,o);break;case 3:s.removeChild(r,e);break;case 0:i.push(e)}}const yr=/^:([^:]+):(.+)$/;function mr(t){if(":"===t[0]){const e=t.match(yr);return[e[1],e[2]]}return["",t]}function _r(t){let e=0;for(let n=0;n<t.length;n++)e|=t[n].flags;return e}function br(t,e,n,r,o,i,s,a,l,u,c,h,p,f,d,g,y,m,_,b){switch(t){case 1:return e+vr(n)+r;case 2:return e+vr(n)+r+vr(o)+i;case 3:return e+vr(n)+r+vr(o)+i+vr(s)+a;case 4:return e+vr(n)+r+vr(o)+i+vr(s)+a+vr(l)+u;case 5:return e+vr(n)+r+vr(o)+i+vr(s)+a+vr(l)+u+vr(c)+h;case 6:return e+vr(n)+r+vr(o)+i+vr(s)+a+vr(l)+u+vr(c)+h+vr(p)+f;case 7:return e+vr(n)+r+vr(o)+i+vr(s)+a+vr(l)+u+vr(c)+h+vr(p)+f+vr(d)+g;case 8:return e+vr(n)+r+vr(o)+i+vr(s)+a+vr(l)+u+vr(c)+h+vr(p)+f+vr(d)+g+vr(y)+m;case 9:return e+vr(n)+r+vr(o)+i+vr(s)+a+vr(l)+u+vr(c)+h+vr(p)+f+vr(d)+g+vr(y)+m+vr(_)+b;default:throw new Error("Does not support more than 9 expressions")}}function vr(t){return null!=t?t.toString():""}const wr={},Cr=Hn(Te),Pr=Hn(wt),Or=Hn(jt);function xr(t,e,n,r){return n=dt(n),{index:-1,deps:ar(r,ht(e)),flags:t,token:e,value:n}}function Sr(t,e,n=Te.THROW_IF_NOT_FOUND){const r=St(t);try{if(8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);const o=e.tokenKey;switch(o){case Cr:case Pr:case Or:return t}const i=t._def.providersByKey[o];let s;if(i){let e=t._providers[i.index];return void 0===e&&(e=t._providers[i.index]=Er(t,i)),e===wr?void 0:e}if((s=at(e.token))&&function(t,e){const n=e.providedIn;return null!=n&&("any"===n||n===t._def.scope||function(t,e){return t._def.modules.indexOf(e)>-1}(t,n))}(t,s)){const n=t._providers.length;return t._def.providers[n]=t._def.providersByKey[e.tokenKey]={flags:5120,value:s.factory,deps:[],index:n,token:e.token},t._providers[n]=wr,t._providers[n]=Er(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{St(r)}}function Er(t,e){let n;switch(201347067&e.flags){case 512:n=function(t,e,n){const r=n.length;switch(r){case 0:return new e;case 1:return new e(Sr(t,n[0]));case 2:return new e(Sr(t,n[0]),Sr(t,n[1]));case 3:return new e(Sr(t,n[0]),Sr(t,n[1]),Sr(t,n[2]));default:const o=[];for(let e=0;e<r;e++)o[e]=Sr(t,n[e]);return new e(...o)}}(t,e.value,e.deps);break;case 1024:n=function(t,e,n){const r=n.length;switch(r){case 0:return e();case 1:return e(Sr(t,n[0]));case 2:return e(Sr(t,n[0]),Sr(t,n[1]));case 3:return e(Sr(t,n[0]),Sr(t,n[1]),Sr(t,n[2]));default:const o=[];for(let e=0;e<r;e++)o[e]=Sr(t,n[e]);return e(...o)}}(t,e.value,e.deps);break;case 2048:n=Sr(t,e.deps[0]);break;case 256:n=e.value}return n===wr||null===n||"object"!=typeof n||131072&e.flags||"function"!=typeof n.ngOnDestroy||(e.flags|=131072),void 0===n?wr:n}function kr(t,e){const n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;const r=n[e];return r.viewContainerParent=null,Rt(n,e),zn.dirtyParentQueries(r),jr(r),r}function Tr(t,e,n){const r=e?nr(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);hr(n,2,o,i,void 0)}function jr(t){hr(t,3,null,null,void 0)}const Ir={};function Rr(t,e,n,r,o,i){return new Ar(t,e,n,r,o,i)}class Ar extends Ye{constructor(t,e,n,r,o,i){super(),this.selector=t,this.componentType=e,this._inputs=r,this._outputs=o,this.ngContentSelectors=i,this.viewDefFactory=n}get inputs(){const t=[],e=this._inputs;for(let n in e)t.push({propName:n,templateName:e[n]});return t}get outputs(){const t=[];for(let e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t}create(t,e,n,r){if(!r)throw new Error("ngModule should be provided");const o=cr(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=zn.createRootView(t,e||[],n,o,r,Ir),a=Fn(s,i).instance;return n&&s.renderer.setAttribute(Ln(s,0).renderElement,"ng-version",hn.full),new Mr(s,new Fr(s),a)}}class Mr extends class{}{constructor(t,e,n){super(),this._view=t,this._viewRef=e,this._component=n,this._elDef=this._view.def.nodes[0],this.hostView=e,this.changeDetectorRef=e,this.instance=n}get location(){return new nn(Ln(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new qr(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function Nr(t,e,n){return new Br(t,e,n)}class Br{constructor(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}get element(){return new nn(this._data.renderElement)}get injector(){return new qr(this._view,this._elDef)}get parentInjector(){let t=this._view,e=this._elDef.parent;for(;!e&&t;)e=er(t),t=t.parent;return t?new qr(t,e):new qr(this._view,null)}clear(){for(let t=this._embeddedViews.length-1;t>=0;t--){const e=kr(this._data,t);zn.destroyView(e)}}get(t){const e=this._embeddedViews[t];if(e){const t=new Fr(e);return t.attachToViewContainerRef(this),t}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,o){const i=n||this.parentInjector;o||t instanceof tn||(o=i.get(jt));const s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s}insert(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const n=t;return function(t,e,n,r){let o=e.viewContainer._embeddedViews;null==n&&(n=o.length),r.viewContainerParent=t,It(o,n,r),function(t,e){const n=tr(e);if(!n||n===t||16&e.state)return;e.state|=16;let r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,e){if(4&e.flags)return;t.nodeFlags|=4,e.flags|=4;let n=e.parent;for(;n;)n.childFlags|=4,n=n.parent}(e.parent.def,e.parentNodeDef)}(e,r),zn.dirtyParentQueries(r),Tr(e,n>0?o[n-1]:null,r)}(this._view,this._data,e,n._view),n.attachToViewContainerRef(this),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const n=this._embeddedViews.indexOf(t._view);return function(t,e,n){const r=t.viewContainer._embeddedViews,o=r[e];Rt(r,e),null==n&&(n=r.length),It(r,n,o),zn.dirtyParentQueries(o),jr(o),Tr(t,n>0?r[n-1]:null,o)}(this._data,n,e),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const e=kr(this._data,t);e&&zn.destroyView(e)}detach(t){const e=kr(this._data,t);return e?new Fr(e):null}}function Lr(t){return new Fr(t)}class Fr{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(t){const e=[];return hr(t,0,void 0,void 0,e),e}(this._view)}get context(){return this._view.context}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){Jn(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{zn.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){zn.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),zn.destroyView(this._view)}detachFromAppRef(){this._appRef=null,jr(this._view),zn.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function Dr(t,e){return new Vr(t,e)}class Vr extends En{constructor(t,e){super(),this._parentView=t,this._def=e}createEmbeddedView(t){return new Fr(zn.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new nn(Ln(this._parentView,this._def.nodeIndex).renderElement)}}function zr(t,e){return new qr(t,e)}class qr{constructor(t,e){this.view=t,this.elDef=e}get(t,e=Te.THROW_IF_NOT_FOUND){return zn.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Hn(t)},e)}}function Ur(t,e){const n=t.def.nodes[e];if(1&n.flags){const e=Ln(t,n.nodeIndex);return n.element.template?e.template:e.renderElement}if(2&n.flags)return Bn(t,n.nodeIndex).renderText;if(20240&n.flags)return Fn(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Hr(t,e,n,r){return new Wr(t,e,n,r)}class Wr{constructor(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){const e=t._def,n=t._providers=At(e.providers.length);for(let r=0;r<e.providers.length;r++){const o=e.providers[r];4096&o.flags||void 0===n[r]&&(n[r]=Er(t,o))}}(this)}get(t,e=Te.THROW_IF_NOT_FOUND,n=ot.Default){let r=0;return n&ot.SkipSelf?r|=1:n&ot.Self&&(r|=4),Sr(this,{token:t,tokenKey:Hn(t),flags:r},e)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Ke)}destroy(){if(this._destroyed)throw new Error(`The ng module ${ht(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(t,e){const n=t._def,r=new Set;for(let o=0;o<n.providers.length;o++)if(131072&n.providers[o].flags){const e=t._providers[o];if(e&&e!==wr){const t=e.ngOnDestroy;"function"!=typeof t||r.has(e)||(t.apply(e),r.add(e))}}}(this),this._destroyListeners.forEach(t=>t())}onDestroy(t){this._destroyListeners.push(t)}}const Gr=Hn(an),$r=Hn(nn),Yr=Hn(Tn),Xr=Hn(En),Zr=Hn(xe),Jr=Hn(Te),Kr=Hn(wt);function Qr(t,e,n,r,o,i,s,a){const l=[];if(s)for(let c in s){const[t,e]=s[c];l[t]={flags:8,name:c,nonMinifiedName:e,ns:null,securityContext:null,suffix:null}}const u=[];if(a)for(let c in a)u.push({type:1,propName:c,target:null,eventName:a[c]});return no(t,e|=16384,n,r,o,o,i,l,u)}function to(t,e,n){return no(-1,t|=16,null,0,e,e,n)}function eo(t,e,n,r,o){return no(-1,t,e,0,n,r,o)}function no(t,e,n,r,o,i,s,a,l){const{matchedQueries:u,references:c,matchedQueryIds:h}=sr(n);l||(l=[]),a||(a=[]),i=dt(i);const p=ar(s,ht(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:u,matchedQueryIds:h,references:c,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:_r(a),outputs:l,element:null,provider:{token:o,value:i,deps:p},text:null,query:null,ngContent:null}}function ro(t,e){return ao(t,e)}function oo(t,e){let n=t;for(;n.parent&&!rr(n);)n=n.parent;return lo(n.parent,er(n),!0,e.provider.value,e.provider.deps)}function io(t,e){const n=lo(t,e.parent,(32768&e.flags)>0,e.provider.value,e.provider.deps);if(e.outputs.length)for(let r=0;r<e.outputs.length;r++){const o=e.outputs[r],i=n[o.propName];if(!Ge(i))throw new Error(`@Output ${o.propName} not initialized in '${n.constructor.name}'.`);{const n=i.subscribe(so(t,e.parent.nodeIndex,o.eventName));t.disposables[e.outputIndex+r]=n.unsubscribe.bind(n)}}return n}function so(t,e,n){return r=>Qn(t,e,n,r)}function ao(t,e){const n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return lo(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){const i=o.length;switch(i){case 0:return r();case 1:return r(co(t,e,n,o[0]));case 2:return r(co(t,e,n,o[0]),co(t,e,n,o[1]));case 3:return r(co(t,e,n,o[0]),co(t,e,n,o[1]),co(t,e,n,o[2]));default:const s=[];for(let r=0;r<i;r++)s.push(co(t,e,n,o[r]));return r(...s)}}(t,e.parent,n,r.value,r.deps);case 2048:return co(t,e.parent,n,r.deps[0]);case 256:return r.value}}function lo(t,e,n,r,o){const i=o.length;switch(i){case 0:return new r;case 1:return new r(co(t,e,n,o[0]));case 2:return new r(co(t,e,n,o[0]),co(t,e,n,o[1]));case 3:return new r(co(t,e,n,o[0]),co(t,e,n,o[1]),co(t,e,n,o[2]));default:const s=[];for(let r=0;r<i;r++)s.push(co(t,e,n,o[r]));return new r(...s)}}const uo={};function co(t,e,n,r,o=Te.THROW_IF_NOT_FOUND){if(8&r.flags)return r.token;const i=t;2&r.flags&&(o=null);const s=r.tokenKey;s===Zr&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);let a=t;for(;a;){if(e)switch(s){case Gr:return ho(a,e,n).renderer;case $r:return new nn(Ln(a,e.nodeIndex).renderElement);case Yr:return Ln(a,e.nodeIndex).viewContainer;case Xr:if(e.element.template)return Ln(a,e.nodeIndex).template;break;case Zr:return Lr(ho(a,e,n));case Jr:case Kr:return zr(a,e);default:const t=(n?e.element.allProviders:e.element.publicProviders)[s];if(t){let e=Fn(a,t.nodeIndex);return e||(e={instance:ao(a,t)},a.nodes[t.nodeIndex]=e),e.instance}}n=rr(a),e=er(a),a=a.parent,4&r.flags&&(a=null)}const l=i.root.injector.get(r.token,uo);return l!==uo||o===uo?l:i.root.ngModule.injector.get(r.token,o)}function ho(t,e,n){let r;if(n)r=Ln(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!rr(r);)r=r.parent;return r}function po(t,e,n,r,o,i){if(32768&n.flags){const e=Ln(t,n.parent.nodeIndex).componentView;2&e.def.flags&&(e.state|=8)}if(e.instance[n.bindings[r].name]=o,524288&n.flags){i=i||{};const e=qe.unwrap(t.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new $e(e,o,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=o,i}function fo(t,e){if(!(t.def.nodeFlags&e))return;const n=t.def.nodes;let r=0;for(let o=0;o<n.length;o++){const i=n[o];let s=i.parent;for(!s&&i.flags&e&&yo(t,o,i.flags&e,r++),0==(i.childFlags&e)&&(o+=i.childCount);s&&1&s.flags&&o===s.nodeIndex+s.childCount;)s.directChildFlags&e&&(r=go(t,s,e,r)),s=s.parent}}function go(t,e,n,r){for(let o=e.nodeIndex+1;o<=e.nodeIndex+e.childCount;o++){const e=t.def.nodes[o];e.flags&n&&yo(t,o,e.flags&n,r++),o+=e.childCount}return r}function yo(t,e,n,r){const o=Fn(t,e);if(!o)return;const i=o.instance;i&&(zn.setCurrentNode(t,e),1048576&n&&Nn(t,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&Nn(t,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}const mo=new vt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Bt}),_o=void 0;var bo=["en",[["a","p"],["AM","PM"],_o],[["AM","PM"],_o,_o],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],_o,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],_o,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",_o,"{1} 'at' {0}",_o],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let vo={};function wo(t){return t in vo||(vo[t]=bt.ng&&bt.ng.common&&bt.ng.common.locales&&bt.ng.common.locales[t]),vo[t]}const Co=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();class Po extends P{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,o=t=>null,i=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(o=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(i=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(o=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(i=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const s=super.subscribe(r,o,i);return t instanceof h&&t.add(s),s}}function Oo(){return this._results[De()]()}class xo{constructor(){this.dirty=!0,this._results=[],this.changes=new Po,this.length=0;const t=De(),e=xo.prototype;e[t]||(e[t]=Oo)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let r=0;r<e.length;r++){let o=e[r];Array.isArray(o)?(n===e&&(n=e.slice(0,r)),t(o,n)):n!==e&&n.push(o)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}const So=new vt("Application Initializer");class Eo{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();We(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}const ko=new vt("AppId");function To(){return`${jo()}${jo()}${jo()}`}function jo(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Io=new vt("Platform Initializer"),Ro=new vt("Platform ID"),Ao=new vt("appBootstrapListener");class Mo{log(t){console.log(t)}warn(t){console.warn(t)}}const No=new vt("LocaleId"),Bo=new vt("DefaultCurrencyCode");function Lo(){throw new Error("Runtime compiler is not loaded")}const Fo=Lo,Do=Lo,Vo=Lo,zo=Lo;class qo{constructor(){this.compileModuleSync=Fo,this.compileModuleAsync=Do,this.compileModuleAndAllComponentsSync=Vo,this.compileModuleAndAllComponentsAsync=zo}clearCache(){}clearCacheFor(t){}getModuleId(t){}}class Uo{}const Ho=(()=>Promise.resolve(0))();function Wo(t){"undefined"==typeof Zone?Ho.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Go{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Po(!1),this.onMicrotaskEmpty=new Po(!1),this.onStable=new Po(!1),this.onError=new Po(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=e,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){let t=bt.requestAnimationFrame,e=bt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(bt,()=>{t.lastRequestAnimationFrameId=-1,Zo(t),Xo(t)}),Zo(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,o,i,s,a)=>{try{return Jo(t),n.invokeTask(o,i,s,a)}finally{e&&"eventTask"===i.type&&e(),Ko(t)}},onInvoke:(e,n,r,o,i,s,a)=>{try{return Jo(t),e.invoke(r,o,i,s,a)}finally{Ko(t)}},onHasTask:(e,n,r,o)=>{e.hasTask(r,o),n===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Zo(t),Xo(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,n,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Go.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Go.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,t,Yo,$o,$o);try{return o.runTask(i,e,n)}finally{o.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function $o(){}const Yo={};function Xo(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Zo(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Jo(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ko(t){t._nesting--,Xo(t)}class Qo{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Po,this.onMicrotaskEmpty=new Po,this.onStable=new Po,this.onError=new Po}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}class ti{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{Go.assertNotInAngularZone(),Wo(()=>{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())Wo(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}class ei{constructor(){this._applications=new Map,oi.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return oi.findTestabilityInTree(this,t,e)}}class ni{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let ri,oi=new ni;const ii=new vt("AllowMultipleToken");class si{constructor(t,e){this.name=t,this.token=e}}function ai(t,e,n=[]){const r="Platform: "+e,o=new vt(r);return(e=[])=>{let i=li();if(!i||i.injector.get(ii,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{const t=n.concat(e).concat({provide:o,useValue:!0},{provide:Ee,useValue:"platform"});!function(t){if(ri&&!ri.destroyed&&!ri.injector.get(ii,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ri=t.get(ui);const e=t.get(Io,null);e&&e.forEach(t=>t())}(Te.create({providers:t,name:r}))}return function(t){const e=li();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function li(){return ri&&!ri.destroyed?ri:null}class ui{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Qo:("zone.js"===t?void 0:t)||new Go({enableLongStackTrace:Kt(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:Go,useValue:n}];return n.run(()=>{const e=Te.create({providers:r,parent:this.injector,name:t.moduleType.name}),o=t.create(e),i=o.injector.get(Vt,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(()=>pi(this._modules,o)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return We(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=o.injector.get(Eo);return t.runInitializers(),t.donePromise.then(()=>(this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,e=[]){const n=ci({},e);return function(t,e,n){return t.get(Uo).createCompiler([e]).compileModuleAsync(n)}(this.injector,n,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(hi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${ht(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}function ci(t,e){return Array.isArray(e)?e.reduce(ci,t):Object.assign(Object.assign({},t),e)}class hi{constructor(t,e,n,r,o,i){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Kt(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new _(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new _(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Go.assertNotInAngularZone(),Wo(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Go.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(s,a.pipe(t=>{return G()((e=K,function(t){let n;n="function"==typeof e?e:function(){return e};const r=Object.create(t,Z);return r.source=t,r.subjectFactory=n,r})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof Ye?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n instanceof tn?void 0:this._injector.get(jt),o=n.create(Te.NULL,[],e||n.selector,r);o.onDestroy(()=>{this._unloadComponent(o)});const i=o.injector.get(ti,null);return i&&o.injector.get(ei).registerApplication(o.location.nativeElement,i),this._loadComponent(o),Kt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;pi(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ao,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),pi(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}function pi(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class fi{constructor(t,e){this.name=t,this.callback=e}}class di{constructor(t,e,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=t,e&&e instanceof gi&&e.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class gi extends di{constructor(t,e,n){super(t,e,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))}insertChildrenAfter(t,e){const n=this.childNodes.indexOf(t);-1!==n&&(this.childNodes.splice(n+1,0,...e),e.forEach(e=>{e.parent&&e.parent.removeChild(e),t.parent=this}))}insertBefore(t,e){const n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const e=[];return function t(e,n,r){e.childNodes.forEach(e=>{e instanceof gi&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e}queryAllNodes(t){const e=[];return function t(e,n,r){e instanceof gi&&e.childNodes.forEach(e=>{n(e)&&r.push(e),e instanceof gi&&t(e,n,r)})}(this,t,e),e}get children(){return this.childNodes.filter(t=>t instanceof gi)}triggerEventHandler(t,e){this.listeners.forEach(n=>{n.name==t&&n.callback(e)})}}const yi=new Map;function mi(t){return yi.get(t)||null}const _i=mi;function bi(t){yi.set(t.nativeNode,t)}const vi=ai(null,"core",[{provide:Ro,useValue:"unknown"},{provide:ui,deps:[Te]},{provide:ei,deps:[]},{provide:Mo,deps:[]}]);function wi(){return xn}function Ci(){return Sn}function Pi(t){return t||"en-US"}function Oi(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}class xi{constructor(t){}}function Si(t,e,n,r,o,i){t|=1;const{matchedQueries:s,references:a,matchedQueryIds:l}=sr(e);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s,matchedQueryIds:l,references:a,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?cr(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||qn},provider:null,text:null,query:null,ngContent:null}}function Ei(t,e,n,r,o,i,s=[],a,l,u,c,h){u||(u=qn);const{matchedQueries:p,references:f,matchedQueryIds:d}=sr(n);let g=null,y=null;i&&([g,y]=mr(i)),a=a||[];const m=[];for(let v=0;v<a.length;v++){const[t,e,n]=a[v],[r,o]=mr(e);let i=void 0,s=void 0;switch(15&t){case 4:s=n;break;case 1:case 8:i=n}m[v]={flags:t,ns:r,name:o,nonMinifiedName:o,securityContext:i,suffix:s}}l=l||[];const _=[];for(let v=0;v<l.length;v++){const[t,e]=l[v];_[v]={type:0,target:t,eventName:e,propName:null}}const b=(s=s||[]).map(([t,e])=>{const[n,r]=mr(t);return[n,r,e]});return h=function(t){if(t&&"$$undefined"===t.id){const e=null!=t.encapsulation&&t.encapsulation!==Mt.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+$n++:"$$empty"}return t&&"$$empty"===t.id&&(t=null),t||null}(h),c&&(e|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:p,matchedQueryIds:d,references:f,ngContentIndex:r,childCount:o,bindings:m,bindingFlags:_r(m),outputs:_,element:{ns:g,name:y,attrs:b,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||qn},provider:null,text:null,query:null,ngContent:null}}function ki(t,e,n){const r=n.element,o=t.root.selectorOrNode,i=t.renderer;let s;if(t.parent||!o){s=r.name?i.createElement(r.name,r.ns):i.createComment("");const o=lr(t,e,n);o&&i.appendChild(o,s)}else s=i.selectRootElement(o,!!r.componentRendererType&&r.componentRendererType.encapsulation===Mt.ShadowDom);if(r.attrs)for(let a=0;a<r.attrs.length;a++){const[t,e,n]=r.attrs[a];i.setAttribute(s,e,n,t)}return s}function Ti(t,e,n,r){for(let s=0;s<n.outputs.length;s++){const a=n.outputs[s],l=ji(t,n.nodeIndex,(i=a.eventName,(o=a.target)?`${o}:${i}`:i));let u=a.target,c=t;"component"===a.target&&(u=null,c=e);const h=c.renderer.listen(u||r,a.eventName,l);t.disposables[n.outputIndex+s]=h}var o,i}function ji(t,e,n){return r=>Qn(t,e,n,r)}function Ii(t,e,n,r){if(!Xn(t,e,n,r))return!1;const o=e.bindings[n],i=Ln(t,e.nodeIndex),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:!function(t,e,n,r,o,i){const s=e.securityContext;let a=s?t.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;const l=t.renderer;null!=i?l.setAttribute(n,o,a,r):l.removeAttribute(n,o,r)}(t,o,s,o.ns,a,r);break;case 2:!function(t,e,n,r){const o=t.renderer;r?o.addClass(e,n):o.removeClass(e,n)}(t,s,a,r);break;case 4:!function(t,e,n,r,o){let i=t.root.sanitizer.sanitize(ve.STYLE,o);if(null!=i){i=i.toString();const t=e.suffix;null!=t&&(i+=t)}else i=null;const s=t.renderer;null!=i?s.setStyle(n,r,i):s.removeStyle(n,r)}(t,o,s,a,r);break;case 8:!function(t,e,n,r,o){const i=e.securityContext;let s=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(n,r,s)}(33554432&e.flags&&32&o.flags?i.componentView:t,o,s,a,r)}return!0}function Ri(t,e,n){let r=[];for(let o in n)r.push({propName:o,bindingType:n[o]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ir(e),bindings:r},ngContent:null}}function Ai(t){const e=t.def.nodeMatchedQueries;for(;t.parent&&or(t);){let n=t.parentNodeDef;t=t.parent;const r=n.nodeIndex+n.childCount;for(let o=0;o<=r;o++){const r=t.def.nodes[o];67108864&r.flags&&536870912&r.flags&&(r.query.filterId&e)===r.query.filterId&&Vn(t,o).setDirty(),!(1&r.flags&&o+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(o+=r.childCount)}}if(134217728&t.def.nodeFlags)for(let n=0;n<t.def.nodes.length;n++){const e=t.def.nodes[n];134217728&e.flags&&536870912&e.flags&&Vn(t,n).setDirty(),n+=e.childCount}}function Mi(t,e){const n=Vn(t,e.nodeIndex);if(!n.dirty)return;let r,o=void 0;if(67108864&e.flags){const n=e.parent.parent;o=Ni(t,n.nodeIndex,n.nodeIndex+n.childCount,e.query,[]),r=Fn(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(o=Ni(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(o);const i=e.query.bindings;let s=!1;for(let a=0;a<i.length;a++){const t=i[a];let e;switch(t.bindingType){case 0:e=n.first;break;case 1:e=n,s=!0}r[t.propName]=e}s&&n.notifyOnChanges()}function Ni(t,e,n,r,o){for(let i=e;i<=n;i++){const e=t.def.nodes[i],n=e.matchedQueries[r.id];if(null!=n&&o.push(Bi(t,e,n)),1&e.flags&&e.element.template&&(e.element.template.nodeMatchedQueries&r.filterId)===r.filterId){const n=Ln(t,i);if((e.childMatchedQueries&r.filterId)===r.filterId&&(Ni(t,i+1,i+e.childCount,r,o),i+=e.childCount),16777216&e.flags){const t=n.viewContainer._embeddedViews;for(let e=0;e<t.length;e++){const i=t[e],s=tr(i);s&&s===n&&Ni(i,0,i.def.nodes.length-1,r,o)}}const s=n.template._projectedViews;if(s)for(let t=0;t<s.length;t++){const e=s[t];Ni(e,0,e.def.nodes.length-1,r,o)}}(e.childMatchedQueries&r.filterId)!==r.filterId&&(i+=e.childCount)}return o}function Bi(t,e,n){if(null!=n)switch(n){case 1:return Ln(t,e.nodeIndex).renderElement;case 0:return new nn(Ln(t,e.nodeIndex).renderElement);case 2:return Ln(t,e.nodeIndex).template;case 3:return Ln(t,e.nodeIndex).viewContainer;case 4:return Fn(t,e.nodeIndex).instance}}function Li(t,e,n){const r=lr(t,e,n);r&&fr(t,n.ngContent.index,1,r,null,void 0)}function Fi(t,e,n){const r=[];for(let o=0;o<n.length;o++){const t=n[o];r.push({flags:8,name:t,ns:null,nonMinifiedName:t,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:_r(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Di(t,e,n){const r=[];for(let o=1;o<n.length;o++)r[o-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[o]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Vi(t,e,n){let r;const o=t.renderer;r=o.createText(n.text.prefix);const i=lr(t,e,n);return i&&o.appendChild(i,r),{renderText:r}}function zi(t,e){return(null!=t?t.toString():"")+e.suffix}function qi(t,e,n,r){let o=0,i=0,s=0,a=0,l=0,u=null,c=null,h=!1,p=!1,f=null;for(let d=0;d<e.length;d++){const t=e[d];if(t.nodeIndex=d,t.parent=u,t.bindingIndex=o,t.outputIndex=i,t.renderParent=c,s|=t.flags,l|=t.matchedQueryIds,t.element){const e=t.element;e.publicProviders=u?u.element.publicProviders:Object.create(null),e.allProviders=e.publicProviders,h=!1,p=!1,t.element.template&&(l|=t.element.template.nodeMatchedQueries)}if(Hi(u,t,e.length),o+=t.bindings.length,i+=t.outputs.length,!c&&3&t.flags&&(f=t),20224&t.flags){h||(h=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);const e=0!=(32768&t.flags);0==(8192&t.flags)||e?u.element.publicProviders[Hn(t.provider.token)]=t:(p||(p=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Hn(t.provider.token)]=t),e&&(u.element.componentProvider=t)}if(u?(u.childFlags|=t.flags,u.directChildFlags|=t.flags,u.childMatchedQueries|=t.matchedQueryIds,t.element&&t.element.template&&(u.childMatchedQueries|=t.element.template.nodeMatchedQueries)):a|=t.flags,t.childCount>0)u=t,Ui(t)||(c=t);else for(;u&&d===u.nodeIndex+u.childCount;){const t=u.parent;t&&(t.childFlags|=u.childFlags,t.childMatchedQueries|=u.childMatchedQueries),u=t,c=u&&Ui(u)?u.renderParent:u}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||qn,updateRenderer:r||qn,handleEvent:(t,n,r,o)=>e[n].element.handleEvent(t,r,o),bindingCount:o,outputCount:i,lastRenderRootNode:f}}function Ui(t){return 0!=(1&t.flags)&&null===t.element.name}function Hi(t,e,n){const r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${e.nodeIndex}!`)}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${e.nodeIndex}!`);if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${e.nodeIndex}!`);if(134217728&e.flags&&t)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${e.nodeIndex}!`)}if(e.childCount){const r=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=r&&e.nodeIndex+e.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${e.nodeIndex}!`)}}function Wi(t,e,n,r){const o=Yi(t.root,t.renderer,t,e,n);return Xi(o,t.component,r),Zi(o),o}function Gi(t,e,n){const r=Yi(t,t.renderer,null,null,e);return Xi(r,n,n),Zi(r),r}function $i(t,e,n,r){const o=e.element.componentRendererType;let i;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,Yi(t.root,i,t,e.element.componentProvider,n)}function Yi(t,e,n,r,o){const i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function Xi(t,e,n){t.component=e,t.context=n}function Zi(t){let e;rr(t)&&(e=Ln(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);const n=t.def,r=t.nodes;for(let o=0;o<n.nodes.length;o++){const i=n.nodes[o];let s;switch(zn.setCurrentNode(t,o),201347067&i.flags){case 1:const n=ki(t,e,i);let a=void 0;if(33554432&i.flags){const e=cr(i.element.componentView);a=zn.createComponentView(t,i,e,n)}Ti(t,a,i,n),s={renderElement:n,componentView:a,viewContainer:null,template:i.element.template?Dr(t,i):void 0},16777216&i.flags&&(s.viewContainer=Nr(t,i,s));break;case 2:s=Vi(t,e,i);break;case 512:case 1024:case 2048:case 256:s=r[o],s||4096&i.flags||(s={instance:ro(t,i)});break;case 16:s={instance:oo(t,i)};break;case 16384:s=r[o],s||(s={instance:io(t,i)}),32768&i.flags&&Xi(Ln(t,i.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new xo;break;case 8:Li(t,e,i),s=void 0}r[o]=s}is(t,os.CreateViewNodes),us(t,201326592,268435456,0)}function Ji(t){ts(t),zn.updateDirectives(t,1),ss(t,os.CheckNoChanges),zn.updateRenderer(t,1),is(t,os.CheckNoChanges),t.state&=-97}function Ki(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Mn(t,0,256),ts(t),zn.updateDirectives(t,0),ss(t,os.CheckAndUpdate),us(t,67108864,536870912,0);let e=Mn(t,256,512);fo(t,2097152|(e?1048576:0)),zn.updateRenderer(t,0),is(t,os.CheckAndUpdate),us(t,134217728,536870912,0),e=Mn(t,512,768),fo(t,8388608|(e?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Mn(t,768,1024)}function Qi(t,e,n,r,o,i,s,a,l,u,c,h,p){return 0===n?function(t,e,n,r,o,i,s,a,l,u,c,h){switch(201347067&e.flags){case 1:return function(t,e,n,r,o,i,s,a,l,u,c,h){const p=e.bindings.length;let f=!1;return p>0&&Ii(t,e,0,n)&&(f=!0),p>1&&Ii(t,e,1,r)&&(f=!0),p>2&&Ii(t,e,2,o)&&(f=!0),p>3&&Ii(t,e,3,i)&&(f=!0),p>4&&Ii(t,e,4,s)&&(f=!0),p>5&&Ii(t,e,5,a)&&(f=!0),p>6&&Ii(t,e,6,l)&&(f=!0),p>7&&Ii(t,e,7,u)&&(f=!0),p>8&&Ii(t,e,8,c)&&(f=!0),p>9&&Ii(t,e,9,h)&&(f=!0),f}(t,e,n,r,o,i,s,a,l,u,c,h);case 2:return function(t,e,n,r,o,i,s,a,l,u,c,h){let p=!1;const f=e.bindings,d=f.length;if(d>0&&Xn(t,e,0,n)&&(p=!0),d>1&&Xn(t,e,1,r)&&(p=!0),d>2&&Xn(t,e,2,o)&&(p=!0),d>3&&Xn(t,e,3,i)&&(p=!0),d>4&&Xn(t,e,4,s)&&(p=!0),d>5&&Xn(t,e,5,a)&&(p=!0),d>6&&Xn(t,e,6,l)&&(p=!0),d>7&&Xn(t,e,7,u)&&(p=!0),d>8&&Xn(t,e,8,c)&&(p=!0),d>9&&Xn(t,e,9,h)&&(p=!0),p){let p=e.text.prefix;d>0&&(p+=zi(n,f[0])),d>1&&(p+=zi(r,f[1])),d>2&&(p+=zi(o,f[2])),d>3&&(p+=zi(i,f[3])),d>4&&(p+=zi(s,f[4])),d>5&&(p+=zi(a,f[5])),d>6&&(p+=zi(l,f[6])),d>7&&(p+=zi(u,f[7])),d>8&&(p+=zi(c,f[8])),d>9&&(p+=zi(h,f[9]));const g=Bn(t,e.nodeIndex).renderText;t.renderer.setValue(g,p)}return p}(t,e,n,r,o,i,s,a,l,u,c,h);case 16384:return function(t,e,n,r,o,i,s,a,l,u,c,h){const p=Fn(t,e.nodeIndex),f=p.instance;let d=!1,g=void 0;const y=e.bindings.length;return y>0&&Yn(t,e,0,n)&&(d=!0,g=po(t,p,e,0,n,g)),y>1&&Yn(t,e,1,r)&&(d=!0,g=po(t,p,e,1,r,g)),y>2&&Yn(t,e,2,o)&&(d=!0,g=po(t,p,e,2,o,g)),y>3&&Yn(t,e,3,i)&&(d=!0,g=po(t,p,e,3,i,g)),y>4&&Yn(t,e,4,s)&&(d=!0,g=po(t,p,e,4,s,g)),y>5&&Yn(t,e,5,a)&&(d=!0,g=po(t,p,e,5,a,g)),y>6&&Yn(t,e,6,l)&&(d=!0,g=po(t,p,e,6,l,g)),y>7&&Yn(t,e,7,u)&&(d=!0,g=po(t,p,e,7,u,g)),y>8&&Yn(t,e,8,c)&&(d=!0,g=po(t,p,e,8,c,g)),y>9&&Yn(t,e,9,h)&&(d=!0,g=po(t,p,e,9,h,g)),g&&f.ngOnChanges(g),65536&e.flags&&Nn(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,s,a,l,u,c,h);case 32:case 64:case 128:return function(t,e,n,r,o,i,s,a,l,u,c,h){const p=e.bindings;let f=!1;const d=p.length;if(d>0&&Xn(t,e,0,n)&&(f=!0),d>1&&Xn(t,e,1,r)&&(f=!0),d>2&&Xn(t,e,2,o)&&(f=!0),d>3&&Xn(t,e,3,i)&&(f=!0),d>4&&Xn(t,e,4,s)&&(f=!0),d>5&&Xn(t,e,5,a)&&(f=!0),d>6&&Xn(t,e,6,l)&&(f=!0),d>7&&Xn(t,e,7,u)&&(f=!0),d>8&&Xn(t,e,8,c)&&(f=!0),d>9&&Xn(t,e,9,h)&&(f=!0),f){const f=Dn(t,e.nodeIndex);let g;switch(201347067&e.flags){case 32:g=[],d>0&&g.push(n),d>1&&g.push(r),d>2&&g.push(o),d>3&&g.push(i),d>4&&g.push(s),d>5&&g.push(a),d>6&&g.push(l),d>7&&g.push(u),d>8&&g.push(c),d>9&&g.push(h);break;case 64:g={},d>0&&(g[p[0].name]=n),d>1&&(g[p[1].name]=r),d>2&&(g[p[2].name]=o),d>3&&(g[p[3].name]=i),d>4&&(g[p[4].name]=s),d>5&&(g[p[5].name]=a),d>6&&(g[p[6].name]=l),d>7&&(g[p[7].name]=u),d>8&&(g[p[8].name]=c),d>9&&(g[p[9].name]=h);break;case 128:const t=n;switch(d){case 1:g=t.transform(n);break;case 2:g=t.transform(r);break;case 3:g=t.transform(r,o);break;case 4:g=t.transform(r,o,i);break;case 5:g=t.transform(r,o,i,s);break;case 6:g=t.transform(r,o,i,s,a);break;case 7:g=t.transform(r,o,i,s,a,l);break;case 8:g=t.transform(r,o,i,s,a,l,u);break;case 9:g=t.transform(r,o,i,s,a,l,u,c);break;case 10:g=t.transform(r,o,i,s,a,l,u,c,h)}}f.value=g}return f}(t,e,n,r,o,i,s,a,l,u,c,h);default:throw"unreachable"}}(t,e,r,o,i,s,a,l,u,c,h,p):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){let r=!1;for(let o=0;o<n.length;o++)Ii(t,e,o,n[o])&&(r=!0);return r}(t,e,n);case 2:return function(t,e,n){const r=e.bindings;let o=!1;for(let i=0;i<n.length;i++)Xn(t,e,i,n[i])&&(o=!0);if(o){let o="";for(let t=0;t<n.length;t++)o+=zi(n[t],r[t]);o=e.text.prefix+o;const i=Bn(t,e.nodeIndex).renderText;t.renderer.setValue(i,o)}return o}(t,e,n);case 16384:return function(t,e,n){const r=Fn(t,e.nodeIndex),o=r.instance;let i=!1,s=void 0;for(let a=0;a<n.length;a++)Yn(t,e,a,n[a])&&(i=!0,s=po(t,r,e,a,n[a],s));return s&&o.ngOnChanges(s),65536&e.flags&&Nn(t,256,e.nodeIndex)&&o.ngOnInit(),262144&e.flags&&o.ngDoCheck(),i}(t,e,n);case 32:case 64:case 128:return function(t,e,n){const r=e.bindings;let o=!1;for(let i=0;i<n.length;i++)Xn(t,e,i,n[i])&&(o=!0);if(o){const o=Dn(t,e.nodeIndex);let i;switch(201347067&e.flags){case 32:i=n;break;case 64:i={};for(let o=0;o<n.length;o++)i[r[o].name]=n[o];break;case 128:const t=n[0],e=n.slice(1);i=t.transform(...e)}o.value=i}return o}(t,e,n);default:throw"unreachable"}}(t,e,r)}function ts(t){const e=t.def;if(4&e.nodeFlags)for(let n=0;n<e.nodes.length;n++){const r=e.nodes[n];if(4&r.flags){const e=Ln(t,n).template._projectedViews;if(e)for(let n=0;n<e.length;n++){const r=e[n];r.state|=32,Kn(r,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function es(t,e,n,r,o,i,s,a,l,u,c,h,p){return 0===n?function(t,e,n,r,o,i,s,a,l,u,c,h){const p=e.bindings.length;p>0&&Zn(t,e,0,n),p>1&&Zn(t,e,1,r),p>2&&Zn(t,e,2,o),p>3&&Zn(t,e,3,i),p>4&&Zn(t,e,4,s),p>5&&Zn(t,e,5,a),p>6&&Zn(t,e,6,l),p>7&&Zn(t,e,7,u),p>8&&Zn(t,e,8,c),p>9&&Zn(t,e,9,h)}(t,e,r,o,i,s,a,l,u,c,h,p):function(t,e,n){for(let r=0;r<n.length;r++)Zn(t,e,r,n[r])}(t,e,r),!1}function ns(t,e){if(Vn(t,e.nodeIndex).dirty)throw In(zn.createDebugContext(t,e.nodeIndex),`Query ${e.query.id} not dirty`,`Query ${e.query.id} dirty`,0!=(1&t.state))}function rs(t){if(!(128&t.state)){if(ss(t,os.Destroy),is(t,os.Destroy),fo(t,131072),t.disposables)for(let e=0;e<t.disposables.length;e++)t.disposables[e]();!function(t){if(!(16&t.state))return;const e=tr(t);if(e){const n=e.template._projectedViews;n&&(Rt(n,n.indexOf(t)),zn.dirtyParentQueries(t))}}(t),t.renderer.destroyNode&&function(t){const e=t.def.nodes.length;for(let n=0;n<e;n++){const e=t.def.nodes[n];1&e.flags?t.renderer.destroyNode(Ln(t,n).renderElement):2&e.flags?t.renderer.destroyNode(Bn(t,n).renderText):(67108864&e.flags||134217728&e.flags)&&Vn(t,n).destroy()}}(t),rr(t)&&t.renderer.destroy(),t.state|=128}}const os=function(){var t={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return t[t.CreateViewNodes]="CreateViewNodes",t[t.CheckNoChanges]="CheckNoChanges",t[t.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",t[t.Destroy]="Destroy",t}();function is(t,e){const n=t.def;if(33554432&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const o=n.nodes[r];33554432&o.flags?as(Ln(t,r).componentView,e):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function ss(t,e){const n=t.def;if(16777216&n.nodeFlags)for(let r=0;r<n.nodes.length;r++){const o=n.nodes[r];if(16777216&o.flags){const n=Ln(t,r).viewContainer._embeddedViews;for(let t=0;t<n.length;t++)as(n[t],e)}else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function as(t,e){const n=t.state;switch(e){case os.CheckNoChanges:0==(128&n)&&(12==(12&n)?Ji(t):64&n&&ls(t,os.CheckNoChangesProjectedViews));break;case os.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Ji(t):64&n&&ls(t,e));break;case os.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Ki(t):64&n&&ls(t,os.CheckAndUpdateProjectedViews));break;case os.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Ki(t):64&n&&ls(t,e));break;case os.Destroy:rs(t);break;case os.CreateViewNodes:Zi(t)}}function ls(t,e){ss(t,e),is(t,e)}function us(t,e,n,r){if(!(t.def.nodeFlags&e&&t.def.nodeFlags&n))return;const o=t.def.nodes.length;for(let i=0;i<o;i++){const o=t.def.nodes[i];if(o.flags&e&&o.flags&n)switch(zn.setCurrentNode(t,o.nodeIndex),r){case 0:Mi(t,o);break;case 1:ns(t,o)}o.childFlags&e&&o.childFlags&n||(i+=o.childCount)}}let cs=!1;function hs(t,e,n,r,o,i){const s=o.injector.get(on);return Gi(fs(t,o,s,e,n),r,i)}function ps(t,e,n,r,o,i){const s=o.injector.get(on),a=fs(t,o,new Ws(s),e,n),l=Ps(r);return Us(Ts.create,Gi,null,[a,l,i])}function fs(t,e,n,r,o){const i=e.injector.get(un),s=e.injector.get(Vt),a=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:a,errorHandler:s}}function ds(t,e,n,r){const o=Ps(n);return Us(Ts.create,Wi,null,[t,e,o,r])}function gs(t,e,n,r){return n=bs.get(e.element.componentProvider.provider.token)||Ps(n),Us(Ts.create,$i,null,[t,e,n,r])}function ys(t,e,n,r){return Hr(t,e,n,function(t){const{hasOverrides:e,hasDeprecatedOverrides:n}=function(t){let e=!1,n=!1;return 0===ms.size||(t.providers.forEach(t=>{const r=ms.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),t.modules.forEach(t=>{_s.forEach((r,o)=>{at(o).providedIn===t&&(e=!0,n=n||r.deprecatedBehavior)})})),{hasOverrides:e,hasDeprecatedOverrides:n}}(t);return e?(function(t){for(let e=0;e<t.providers.length;e++){const r=t.providers[e];n&&(r.flags|=4096);const o=ms.get(r.token);o&&(r.flags=-3841&r.flags|o.flags,r.deps=ar(o.deps),r.value=o.value)}if(_s.size>0){let e=new Set(t.modules);_s.forEach((r,o)=>{if(e.has(at(o).providedIn)){let e={token:o,flags:r.flags|(n?4096:0),deps:ar(r.deps),value:r.value,index:t.providers.length};t.providers.push(e),t.providersByKey[Hn(o)]=e}})}}(t=t.factory(()=>qn)),t):t}(r))}const ms=new Map,_s=new Map,bs=new Map;function vs(t){let e;ms.set(t.token,t),"function"==typeof t.token&&(e=at(t.token))&&"function"==typeof e.providedIn&&_s.set(t.token,t)}function ws(t,e){const n=cr(e.viewDefFactory),r=cr(n.nodes[0].element.componentView);bs.set(t,r)}function Cs(){ms.clear(),_s.clear(),bs.clear()}function Ps(t){if(0===ms.size)return t;const e=function(t){const e=[];let n=null;for(let r=0;r<t.nodes.length;r++){const o=t.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&ms.has(o.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(()=>qn);for(let r=0;r<e.length;r++)n(t,e[r]);return t;function n(t,e){for(let n=e+1;n<t.nodes.length;n++){const e=t.nodes[n];if(1&e.flags)return;if(3840&e.flags){const t=e.provider,n=ms.get(t.token);n&&(e.flags=-3841&e.flags|n.flags,t.deps=ar(n.deps),t.value=n.value)}}}}function Os(t,e,n,r,o,i,s,a,l,u,c,h,p){const f=t.def.nodes[e];return Qi(t,f,n,r,o,i,s,a,l,u,c,h,p),224&f.flags?Dn(t,e).value:void 0}function xs(t,e,n,r,o,i,s,a,l,u,c,h,p){const f=t.def.nodes[e];return es(t,f,n,r,o,i,s,a,l,u,c,h,p),224&f.flags?Dn(t,e).value:void 0}function Ss(t){return Us(Ts.detectChanges,Ki,null,[t])}function Es(t){return Us(Ts.checkNoChanges,Ji,null,[t])}function ks(t){return Us(Ts.destroy,rs,null,[t])}const Ts=function(){var t={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return t[t.create]="create",t[t.detectChanges]="detectChanges",t[t.checkNoChanges]="checkNoChanges",t[t.destroy]="destroy",t[t.handleEvent]="handleEvent",t}();let js,Is,Rs;function As(t,e){Is=t,Rs=e}function Ms(t,e,n,r){return As(t,e),Us(Ts.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Ns(t,e){if(128&t.state)throw An(Ts[js]);return As(t,Ds(t,0)),t.def.updateDirectives((function(t,n,r,...o){const i=t.def.nodes[n];return 0===e?Ls(t,i,r,o):Fs(t,i,r,o),16384&i.flags&&As(t,Ds(t,n)),224&i.flags?Dn(t,i.nodeIndex).value:void 0}),t)}function Bs(t,e){if(128&t.state)throw An(Ts[js]);return As(t,Vs(t,0)),t.def.updateRenderer((function(t,n,r,...o){const i=t.def.nodes[n];return 0===e?Ls(t,i,r,o):Fs(t,i,r,o),3&i.flags&&As(t,Vs(t,n)),224&i.flags?Dn(t,i.nodeIndex).value:void 0}),t)}function Ls(t,e,n,r){if(Qi(t,e,n,...r)){const i=1===n?r[0]:r;if(16384&e.flags){const n={};for(let t=0;t<e.bindings.length;t++){const r=e.bindings[t],s=i[t];8&r.flags&&(n[(o=r.nonMinifiedName,"ng-reflect-"+o.replace(/[$@]/g,"_").replace(Pe,(...t)=>"-"+t[1].toLowerCase()))]=Oe(s))}const r=e.parent,s=Ln(t,r.nodeIndex).renderElement;if(r.element.name)for(let e in n){const r=n[e];null!=r?t.renderer.setAttribute(s,e,r):t.renderer.removeAttribute(s,e)}else t.renderer.setValue(s,"bindings="+JSON.stringify(n,null,2))}}var o}function Fs(t,e,n,r){es(t,e,n,...r)}function Ds(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(16384&e.flags&&e.bindings&&e.bindings.length)return n}return null}function Vs(t,e){for(let n=e;n<t.def.nodes.length;n++){const e=t.def.nodes[n];if(3&e.flags&&e.bindings&&e.bindings.length)return n}return null}class zs{constructor(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];let n=this.nodeDef,r=t;for(;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=er(r),r=r.parent;this.elDef=n,this.elView=r}get elOrCompView(){return Ln(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return zr(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const t=[];if(this.elDef)for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t}get references(){const t={};if(this.elDef){qs(this.elView,this.elDef,t);for(let e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){const n=this.elView.def.nodes[e];20224&n.flags&&qs(this.elView,n,t),e+=n.childCount}}return t}get componentRenderElement(){const t=function(t){for(;t&&!rr(t);)t=t.parent;return t.parent?Ln(t.parent,er(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?nr(this.view,this.nodeDef):nr(this.elView,this.elDef)}logError(t,...e){let n,r;2&this.nodeDef.flags?(n=this.view.def,r=this.nodeDef.nodeIndex):(n=this.elView.def,r=this.elDef.nodeIndex);const o=function(t,e){let n=-1;for(let r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}(n,r);let i=-1;n.factory(()=>(i++,i===o?t.error.bind(t,...e):qn)),i<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error(...e))}}function qs(t,e,n){for(let r in e.references)n[r]=Bi(t,e,e.references[r])}function Us(t,e,n,r){const o=js,i=Is,s=Rs;try{js=t;const a=e.apply(n,r);return Is=i,Rs=s,js=o,a}catch(a){if(Lt(a)||!Is)throw a;throw function(t,e){return t instanceof Error||(t=new Error(t.toString())),Rn(t,e),t}(a,Hs())}}function Hs(){return Is?new zs(Is,Rs):null}class Ws{constructor(t){this.delegate=t}createRenderer(t,e){return new Gs(this.delegate.createRenderer(t,e))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class Gs{constructor(t){this.delegate=t,this.debugContextFactory=Hs,this.data=this.delegate.data}createDebugContext(t){return this.debugContextFactory(t)}destroyNode(t){const e=_i(t);!function(t){yi.delete(t.nativeNode)}(e),e instanceof di&&(e.listeners.length=0),this.delegate.destroyNode&&this.delegate.destroyNode(t)}destroy(){this.delegate.destroy()}createElement(t,e){const n=this.delegate.createElement(t,e),r=this.createDebugContext(n);if(r){const e=new gi(n,null,r);e.name=t,bi(e)}return n}createComment(t){const e=this.delegate.createComment(t),n=this.createDebugContext(e);return n&&bi(new di(e,null,n)),e}createText(t){const e=this.delegate.createText(t),n=this.createDebugContext(e);return n&&bi(new di(e,null,n)),e}appendChild(t,e){const n=_i(t),r=_i(e);n&&r&&n instanceof gi&&n.addChild(r),this.delegate.appendChild(t,e)}insertBefore(t,e,n){const r=_i(t),o=_i(e),i=_i(n);r&&o&&r instanceof gi&&r.insertBefore(i,o),this.delegate.insertBefore(t,e,n)}removeChild(t,e){const n=_i(t),r=_i(e);n&&r&&n instanceof gi&&n.removeChild(r),this.delegate.removeChild(t,e)}selectRootElement(t,e){const n=this.delegate.selectRootElement(t,e),r=Hs();return r&&bi(new gi(n,null,r)),n}setAttribute(t,e,n,r){const o=_i(t);o&&o instanceof gi&&(o.attributes[r?r+":"+e:e]=n),this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){const r=_i(t);r&&r instanceof gi&&(r.attributes[n?n+":"+e:e]=null),this.delegate.removeAttribute(t,e,n)}addClass(t,e){const n=_i(t);n&&n instanceof gi&&(n.classes[e]=!0),this.delegate.addClass(t,e)}removeClass(t,e){const n=_i(t);n&&n instanceof gi&&(n.classes[e]=!1),this.delegate.removeClass(t,e)}setStyle(t,e,n,r){const o=_i(t);o&&o instanceof gi&&(o.styles[e]=n),this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){const r=_i(t);r&&r instanceof gi&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){const r=_i(t);r&&r instanceof gi&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)}listen(t,e,n){if("string"!=typeof t){const r=_i(t);r&&r.listeners.push(new fi(e,n))}return this.delegate.listen(t,e,n)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setValue(t,e){return this.delegate.setValue(t,e)}}function $s(t,e,n){return new Ys(t,e,n)}class Ys extends class{}{constructor(t,e,n){super(),this.moduleType=t,this._bootstrapComponents=e,this._ngModuleDefFactory=n}create(t){!function(){if(cs)return;cs=!0;const t=Kt()?{setCurrentNode:As,createRootView:ps,createEmbeddedView:ds,createComponentView:gs,createNgModuleRef:ys,overrideProvider:vs,overrideComponentView:ws,clearOverrides:Cs,checkAndUpdateView:Ss,checkNoChangesView:Es,destroyView:ks,createDebugContext:(t,e)=>new zs(t,e),handleEvent:Ms,updateDirectives:Ns,updateRenderer:Bs}:{setCurrentNode:()=>{},createRootView:hs,createEmbeddedView:Wi,createComponentView:$i,createNgModuleRef:Hr,overrideProvider:qn,overrideComponentView:qn,clearOverrides:qn,checkAndUpdateView:Ki,checkNoChangesView:Ji,destroyView:rs,createDebugContext:(t,e)=>new zs(t,e),handleEvent:(t,e,n,r)=>t.def.handleEvent(t,e,n,r),updateDirectives:(t,e)=>t.def.updateDirectives(0===e?Os:xs,t),updateRenderer:(t,e)=>t.def.updateRenderer(0===e?Os:xs,t)};zn.setCurrentNode=t.setCurrentNode,zn.createRootView=t.createRootView,zn.createEmbeddedView=t.createEmbeddedView,zn.createComponentView=t.createComponentView,zn.createNgModuleRef=t.createNgModuleRef,zn.overrideProvider=t.overrideProvider,zn.overrideComponentView=t.overrideComponentView,zn.clearOverrides=t.clearOverrides,zn.checkAndUpdateView=t.checkAndUpdateView,zn.checkNoChangesView=t.checkNoChangesView,zn.destroyView=t.destroyView,zn.resolveDep=co,zn.createDebugContext=t.createDebugContext,zn.handleEvent=t.handleEvent,zn.updateDirectives=t.updateDirectives,zn.updateRenderer=t.updateRenderer,zn.dirtyParentQueries=Ai}();const e=function(t){const e=Array.from(t.providers),n=Array.from(t.modules),r={};for(const o in t.providersByKey)r[o]=t.providersByKey[o];return{factory:t.factory,scope:t.scope,providers:e,modules:n,providersByKey:r}}(cr(this._ngModuleDefFactory));return zn.createNgModuleRef(this.moduleType,t||Te.NULL,this._bootstrapComponents,e)}}class Xs{constructor(t){this.cdr=t,this.title="au-pantone-picker-build",this.changed=new P}get setPrevColor(){return t=>{this.prevColor=t,this.cdr.detectChanges()}}get setPantoneConfig(){return t=>{this.pantoneConfig=t,this.cdr.detectChanges()}}get setTranslation(){return t=>{this.translations=t,this.cdr.detectChanges()}}get changed$(){return()=>this.changed}}const Zs=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Js={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Js.schedule(t,0);if(void 0===window.requestAnimationFrame)return Js.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function Ks(t,e,n){let r=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Zs.call(t,e)}(t,e)||(r=n,0))),r}class Qs{constructor(t,e){this.componentFactory=e.get(Ke).resolveComponentFactory(t)}create(t){return new ta(this.componentFactory,t)}}class ta{constructor(t,e){this.componentFactory=t,this.injector=e,this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set}connect(t){if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)}disconnect(){null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Js.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))}getInputValue(t){return null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t]}setInputValue(t,e){var n,r;null!==this.componentRef?((n=e)!==(r=this.getInputValue(t))&&(n==n||r==r)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)}initializeComponent(t){const e=Te.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,r=e.map(()=>[]);let o=-1;e.some((t,e)=>"*"===t&&(o=e,!0));for(let i=0,s=n.length;i<s;++i){const t=n[i],s=Ks(t,e,o);-1!==s&&r[s].push(t)}return r}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(hi).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(N(t=>({name:n,value:t}))));this.events=W(...e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Js.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const r=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const o=r?void 0:this.getInputValue(t);this.inputChanges[t]=new $e(o,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}}class ea extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function na(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}class ra{constructor(t){this._injector=t}ngDoBootstrap(){const t=function(t,e){const n=function(t,e){return e.get(Ke).resolveComponentFactory(t).inputs}(t,e.injector),r=e.strategyFactory||new Qs(t,e.injector),o=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var r;e[(r=n,r.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class i extends ea{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=r.create(this.injector||e.injector),o=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof i?o.forEach(([t])=>delete this[t]):na(n,this),o.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,r){this.ngElementStrategy.setInputValue(o[t],n)}connectedCallback(){this.ngElementStrategy.connect(this),this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const r=t.createEvent("CustomEvent");return r.initCustomEvent(e,!1,!1,n),r}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}}return i.observedAttributes=Object.keys(o),na(n,i.prototype),i}(Xs,{injector:this._injector});customElements.define("au-pantone-color-picker",t)}}let oa=null;function ia(){return oa}const sa=new vt("DocumentToken"),aa=function(){var t={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return t[t.Zero]="Zero",t[t.One]="One",t[t.Two]="Two",t[t.Few]="Few",t[t.Many]="Many",t[t.Other]="Other",t}();class la{}class ua extends la{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=wo(e);if(n)return n;const r=e.split("-")[0];if(n=wo(r),n)return n;if("en"===r)return bo;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Co.PluralCase]}(e||this.locale)(t)){case aa.Zero:return"zero";case aa.One:return"one";case aa.Two:return"two";case aa.Few:return"few";case aa.Many:return"many";default:return"other"}}}class ca{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Ue(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ht(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}class ha{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}class pa{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Kt()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ha(null,this._ngForOf,-1,-1),null===r?void 0:r),o=new fa(t,n);e.push(o)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const o=this._viewContainer.get(n);this._viewContainer.move(o,r);const i=new fa(t,o);e.push(i)}});for(let n=0;n<e.length;n++)this._perViewChange(e[n].view,e[n].record);for(let n=0,r=this._viewContainer.length;n<r;n++){const t=this._viewContainer.get(n);t.context.index=n,t.context.count=r,t.context.ngForOf=this._ngForOf}t.forEachIdentityChange(t=>{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}class fa{constructor(t,e){this.record=t,this.view=e}}class da{constructor(t,e){this._viewContainer=t,this._context=new ga,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ya("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ya("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}class ga{constructor(){this.$implicit=null,this.ngIf=null}}function ya(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${ht(e)}'.`)}class ma{}function _a(...t){if(1===t.length){const e=t[0];if(l(e))return ba(e,null);if(u(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return ba(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return ba(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(N(t=>e(...t)))}return ba(t,null)}function ba(t,e){return new _(n=>{const r=t.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a<r;a++){const l=D(t[a]);let u=!1;n.add(l.subscribe({next:t=>{u||(u=!0,s++),o[a]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&u||(s===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=o[n],t),{}):o),n.complete())}}))}})}const va=new vt("NgValueAccessor"),wa=new vt("CompositionEventMode");class Ca{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=ia()?ia().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}class Pa{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class Oa extends Pa{get formDirective(){return null}get path(){return null}}function xa(){throw new Error("unimplemented")}class Sa extends Pa{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return xa()}get asyncValidator(){return xa()}}class Ea extends class{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(t){super(t)}}function ka(t){return null==t||0===t.length}const Ta=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ja{static min(t){return e=>{if(ka(e.value)||ka(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(ka(e.value)||ka(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return ka(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return ka(t.value)||Ta.test(t.value)?null:{email:!0}}static minLength(t){return e=>{if(ka(e.value))return null;const n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}static maxLength(t){return e=>{const n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}static pattern(t){if(!t)return ja.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(ka(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(Ia);return 0==e.length?null:function(t){return Aa(function(t,e){return e.map(e=>e(t))}(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(Ia);return 0==e.length?null:function(t){return _a(function(t,e){return e.map(e=>e(t))}(t,e).map(Ra)).pipe(N(Aa))}}}function Ia(t){return null!=t}function Ra(t){const e=We(t)?D(t):t;if(!Ge(e))throw new Error("Expected validator to return Promise or Observable.");return e}function Aa(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Ma(t){return t.validate?e=>t.validate(e):t}function Na(t){return t.validate?e=>t.validate(e):t}class Ba{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}const La='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',Fa='\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>';function Da(t,e){return[...e.path,t]}function Va(t,e){t||qa(e,"Cannot find control with"),e.valueAccessor||qa(e,"No value accessor for form control with"),t.validator=ja.compose([t.validator,e.validator]),t.asyncValidator=ja.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&za(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&za(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function za(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function qa(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function Ua(t){return null!=t?ja.compose(t.map(Ma)):null}function Ha(t){return null!=t?ja.composeAsync(t.map(Na)):null}const Wa=[class{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},class{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},class{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},class{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Ve}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}},class{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Ve}set compareWith(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(e.hasOwnProperty("selectedOptions")){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const r=t.item(e),o=this._getOptionValue(r.value);n.push(o)}}else{const t=e.options;for(let e=0;e<t.length;e++){const r=t.item(e);if(r.selected){const t=this._getOptionValue(r.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}},class{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Sa),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}];function Ga(t){const e=Ya(t)?t.validators:t;return Array.isArray(e)?Ua(e):e||null}function $a(t,e){const n=Ya(e)?e.asyncValidators:t;return Array.isArray(n)?Ha(n):n||null}function Ya(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Xa{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}get parent(){return this._parent}get valid(){return"VALID"===this.status}get invalid(){return"INVALID"===this.status}get pending(){return"PENDING"==this.status}get disabled(){return"DISABLED"===this.status}get enabled(){return"DISABLED"!==this.status}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this.validator=Ga(t)}setAsyncValidators(t){this.asyncValidator=$a(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status="PENDING";const e=Ra(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof Ja?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof Ka&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Po,this.statusChanges=new Po}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ya(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Za extends Xa{constructor(t=null,e,n){super(Ga(e),$a(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Ja extends Xa{constructor(t,e,n){super(Ga(e),$a(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Za?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n        There are no form controls registered with this group yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){let e=!1;return this._forEachChild((n,r)=>{e=e||this.contains(r)&&t(n)}),e}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class Ka extends Xa{constructor(t,e,n){super(Ga(e),$a(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Za?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n        There are no form controls registered with this array yet.  If you're using ngModel,\n        you may want to check next tick (e.g. use setTimeout).\n      ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const Qa=(()=>Promise.resolve(null))();class tl extends Oa{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Po,this.form=new Ja({},Ua(t),Ha(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Qa.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Va(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Qa.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this._directives,t)})}addFormGroup(t){Qa.then(()=>{const e=this._findContainer(t.path),n=new Ja({});(function(t,e){null==t&&qa(e,"Cannot find control with"),t.validator=ja.compose([t.validator,e.validator]),t.asyncValidator=ja.composeAsync([t.asyncValidator,e.asyncValidator])})(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Qa.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Qa.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}class el extends Oa{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Da(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Ua(this._validators)}get asyncValidator(){return Ha(this._asyncValidators)}_checkParentType(){}}class nl{static modelParentException(){throw new Error('\n      ngModel cannot be used to register form controls with a parent formGroup directive.  Try using\n      formGroup\'s partner directive "formControlName" instead.  Example:\n\n      \n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });\n\n      Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n      Example:\n\n      \n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  ')}static formGroupNameException(){throw new Error(`\n      ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n      Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n      ${La}\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      ${Fa}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n      control must be defined as \'standalone\' in ngModelOptions.\n\n      Example 1: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}static modelGroupParentException(){throw new Error(`\n      ngModelGroup cannot be used with a parent formGroup directive.\n\n      Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n      ${La}\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      ${Fa}`)}}class rl extends el{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof rl||this._parent instanceof tl||nl.modelGroupParentException()}}const ol=(()=>Promise.resolve(null))();class il extends Sa{constructor(t,e,n,r){super(),this.control=new Za,this._registered=!1,this.update=new Po,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||qa(t,"Value accessor was not provided as an array for form control with");let n=void 0,r=void 0,o=void 0;return e.forEach(e=>{var i;e.constructor===Ca?n=e:(i=e,Wa.some(t=>i.constructor===t)?(r&&qa(t,"More than one built-in value accessor matches form control with"),r=e):(o&&qa(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(qa(t,"No valid value accessor for form control with"),null)}(this,r)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Ve(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Da(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Ua(this._rawValidators)}get asyncValidator(){return Ha(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Va(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof rl)&&this._parent instanceof el?nl.formGroupNameException():this._parent instanceof rl||this._parent instanceof tl||nl.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||nl.missingNameException()}_updateValue(t){ol.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;ol.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}class sl{}class al{}function ll(...t){let e=t[t.length-1];return x(e)?(t.pop(),F(t,e)):H(t)}function ul(t){return!!t&&(t instanceof _||"function"==typeof t.lift&&"function"==typeof t.subscribe)}function cl(...t){return U(1)(ll(...t))}const hl=new _(t=>t.complete());function pl(t){return t?function(t){return new _(e=>t.schedule(()=>e.complete()))}(t):hl}function fl(t){return new _(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?D(n):pl()).subscribe(e)})}const dl=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function gl(t){return e=>0===t?pl():e.lift(new yl(t))}class yl{constructor(t){if(this.total=t,this.total<0)throw new dl}call(t,e){return e.subscribe(new ml(t,this.total))}}class ml extends d{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}class _l extends h{constructor(t,e){super()}schedule(t,e=0){return this}}class bl extends _l{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(o){n=!0,r=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}class vl extends bl{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}let wl=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Cl extends wl{constructor(t,e=wl.now){super(t,()=>Cl.delegate&&Cl.delegate!==this?Cl.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Cl.delegate&&Cl.delegate!==this?Cl.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}class Pl extends Cl{}const Ol=new Pl(vl);let xl=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return ll(this.value);case"E":return t=this.error,new _(e=>e.error(t));case"C":return pl()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Sl extends d{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Sl.dispatch,this.delay,new El(t,this.destination)))}_next(t){this.scheduleMessage(xl.createNext(t))}_error(t){this.scheduleMessage(xl.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(xl.createComplete()),this.unsubscribe()}}class El{constructor(t,e){this.notification=t,this.destination=e}}class kl extends P{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Tl(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=n.length;let i;if(this.closed)throw new v;if(this.isStopped||this.hasError?i=h.EMPTY:(this.observers.push(t),i=new w(this,t)),r&&t.add(t=new Sl(t,r)),e)for(let s=0;s<o&&!t.closed;s++)t.next(n[s]);else for(let s=0;s<o&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),i}_getNow(){return(this.scheduler||Ol).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,o=r.length;let i=0;for(;i<o&&!(t-r[i].time<n);)i++;return o>e&&(i=Math.max(i,o-e)),i>0&&r.splice(0,i),r}}class Tl{constructor(t,e){this.time=t,this.value=e}}function jl(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let o,i,s=0,a=!1,l=!1;return function(u){s++,o&&!a||(a=!1,o=new kl(t,e,r),i=u.subscribe({next(t){o.next(t)},error(t){a=!0,o.error(t)},complete(){l=!0,i=void 0,o.complete()}}));const c=o.subscribe(this);this.add(()=>{s--,c.unsubscribe(),i&&!l&&n&&0===s&&(i.unsubscribe(),i=void 0,o=void 0)})}}(r))}function Il(t,e){return"function"==typeof e?n=>n.pipe(Il((n,r)=>D(t(n,r)).pipe(N((t,o)=>e(n,t,r,o))))):e=>e.lift(new Rl(t))}class Rl{constructor(t){this.project=t}call(t,e){return e.subscribe(new Al(t,this.project))}}class Al extends M{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)}_innerSub(t,e,n){const r=this.innerSubscription;r&&r.unsubscribe();const o=new S(this,e,n),i=this.destination;i.add(o),this.innerSubscription=A(this,t,void 0,void 0,o),this.innerSubscription!==o&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,r,o){this.destination.next(e)}}class Ml{}class Nl extends Ml{getTranslation(t){return ll({})}}class Bl{}class Ll{handle(t){return t.key}}function Fl(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,r,o,i=typeof t;if(i==typeof e&&"object"==i){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(r in o=Object.create(null),t){if(!Fl(t[r],e[r]))return!1;o[r]=!0}for(r in e)if(!(r in o)&&void 0!==e[r])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!Fl(t[r],e[r]))return!1;return!0}}return!1}function Dl(t){return null!=t}function Vl(t){return t&&"object"==typeof t&&!Array.isArray(t)}class zl{}class ql extends zl{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n="string"==typeof e?e.split("."):[e];e="";do{e+=n.shift(),!Dl(t)||!Dl(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let r=this.getValue(e,n);return Dl(r)?r:t}):t}}class Ul{}class Hl extends Ul{compile(t,e){return t}compileTranslations(t,e){return t}}class Wl{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Po,this.onLangChange=new Po,this.onDefaultLangChange=new Po}}const Gl=new vt("USE_STORE"),$l=new vt("USE_DEFAULT_LANG"),Yl=new vt("DEFAULT_LANGUAGE"),Xl=new vt("USE_EXTEND");class Zl{constructor(t,e,n,r,o,i=!0,s=!1,a=!1,l){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=r,this.missingTranslationHandler=o,this.useDefaultLang=i,this.isolate=s,this.extend=a,this.pending=!1,this._onTranslationChange=new Po,this._onLangChange=new Po,this._onDefaultLangChange=new Po,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(gl(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return ll(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(gl(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),ll(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(jl(1),gl(1));return this.loadingTranslations=e.pipe(N(e=>this.compiler.compileTranslations(e,t)),jl(1),gl(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(n||this.extend)&&this.translations[t]?function t(e,n){let r=Object.assign({},e);return Vl(e)&&Vl(n)&&Object.keys(n).forEach(o=>{Vl(n[o])?o in e?r[o]=t(e[o],n[o]):Object.assign(r,{[o]:n[o]}):Object.assign(r,{[o]:n[o]})}),r}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let r;if(e instanceof Array){let r={},o=!1;for(let i of e)r[i]=this.getParsedResult(t,i,n),ul(r[i])&&(o=!0);return o?_a(e.map(t=>ul(r[t])?r[t]:ll(r[t]))).pipe(N(t=>{let n={};return t.forEach((t,r)=>{n[e[r]]=t}),n})):r}if(t&&(r=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===r&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===r){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),r=this.missingTranslationHandler.handle(t)}return void 0!==r?r:e}get(t,e){if(!Dl(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(V(n=>ul(n=this.getParsedResult(n,t,e))?n:ll(n),void 0,1));{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return ul(n)?n:ll(n)}}getStreamOnTranslationChange(t,e){if(!Dl(t)||!t.length)throw new Error('Parameter "key" required');return cl(fl(()=>this.get(t,e)),this.onTranslationChange.pipe(Il(n=>{const r=this.getParsedResult(n.translations,t,e);return"function"==typeof r.subscribe?r:ll(r)})))}stream(t,e){if(!Dl(t)||!t.length)throw new Error('Parameter "key" required');return cl(fl(()=>this.get(t,e)),this.onLangChange.pipe(Il(n=>{const r=this.getParsedResult(n.translations,t,e);return ul(r)?r:ll(r)})))}instant(t,e){if(!Dl(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(ul(n)){if(t instanceof Array){let e={};return t.forEach((n,r)=>{e[t[r]]=t[r]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}class Jl{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let r=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let o=this.translate.getParsedResult(n,t,e);ul(o.subscribe)?o.subscribe(r):r(o)}this.translate.get(t,e).subscribe(r)}transform(t,...e){if(!t||!t.length)return t;if(Fl(t,this.lastKey)&&Fl(e,this.lastParams))return this.value;let n;if(Dl(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(r){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+e[0])}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}class Kl{static forRoot(t={}){return{ngModule:Kl,providers:[t.loader||{provide:Ml,useClass:Nl},t.compiler||{provide:Ul,useClass:Hl},t.parser||{provide:zl,useClass:ql},t.missingTranslationHandler||{provide:Bl,useClass:Ll},Wl,{provide:Gl,useValue:t.isolate},{provide:$l,useValue:t.useDefaultLang},{provide:Xl,useValue:t.extend},{provide:Yl,useValue:t.defaultLanguage},Zl]}}static forChild(t={}){return{ngModule:Kl,providers:[t.loader||{provide:Ml,useClass:Nl},t.compiler||{provide:Ul,useClass:Hl},t.parser||{provide:zl,useClass:ql},t.missingTranslationHandler||{provide:Bl,useClass:Ll},{provide:Gl,useValue:t.isolate},{provide:$l,useValue:t.useDefaultLang},{provide:Xl,useValue:t.extend},{provide:Yl,useValue:t.defaultLanguage},Zl]}}}class Ql{constructor(t){this.prefix=t,this.isInputFocused=!1,this.textChanged=new Po}set inputSearchText(t){this._searchText=t}set searchText(t){this._searchText=t,this.textChanged.emit(t)}get searchText(){return this._searchText}clearText(){this.searchText=""}ngOnInit(){}}var tu=Gn({encapsulation:0,styles:[[".au-pantone-picker__search[_ngcontent-%COMP%]{display:flex;color:#686868;padding:8px 12px 8px 8px;margin-bottom:8px;border:1px solid #ccc;border-radius:2px;align-items:center;cursor:text}.au-pantone-picker__search_selected[_ngcontent-%COMP%]{border:1px solid #0090ff}.au-pantone-picker__search-icon[_ngcontent-%COMP%]{margin-right:4px;flex:0 0 24px}.au-pantone-picker__search-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:block}.au-pantone-picker__search-input[_ngcontent-%COMP%]{width:100%;margin-right:4px;flex:1 1 50%;padding:0;display:block;font-family:Roboto,Helvetica Neue,sans-serif}.au-pantone-picker__search-input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#989898}.au-pantone-picker__search-input[_ngcontent-%COMP%]::-moz-placeholder{color:#989898}.au-pantone-picker__search-input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#989898}.au-pantone-picker__search-input[_ngcontent-%COMP%]::-ms-input-placeholder{color:#989898}.au-pantone-picker__search-input[_ngcontent-%COMP%]::placeholder{color:#989898}.au-pantone-picker__search-input[_ngcontent-%COMP%], .au-pantone-picker__search-input[_ngcontent-%COMP%]:focus{border:none;outline:none}.au-pantone-picker__search-clear[_ngcontent-%COMP%]{flex:0 0 24px;cursor:pointer}.au-pantone-picker__search-clear[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:block}"]],data:{}});function eu(t){return qi(0,[(t()(),Ei(0,0,null,null,2,"div",[],[[8,"className",0]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.clearText()&&r),r}),null,null)),(t()(),Ei(1,0,null,null,1,":svg:svg",[["fill","none"],["height","24"],["viewBox","0 0 24 24"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),Ei(2,0,null,null,0,":svg:path",[["d","M12.0009 12L17.2435 17.2426M6.7583 17.2426L12.0009 12L6.7583 17.2426ZM17.2435 6.75732L12.0009 12L17.2435 6.75732ZM12.0009 12L6.7583 6.75732L12.0009 12Z"],["stroke","#686868"],["stroke-linecap","round"],["stroke-linejoin","round"],["stroke-width","1.5"]],null,null,null,null,null))],null,(function(t,e){t(e,0,0,br(1,"",e.component.prefix,"-pantone-picker__search-clear"))}))}function nu(t){return qi(0,[(t()(),Ei(0,0,null,null,14,"div",[],null,[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Ur(t,6).focus()&&r),r}),null,null)),Qr(1,278528,null,0,ca,[Cn,Pn,nn,an],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Ei(2,0,null,null,3,"div",[],[[8,"className",0]],null,null,null,null)),(t()(),Ei(3,0,null,null,2,":svg:svg",[["fill","none"],["height","24"],["viewBox","0 0 24 24"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),Ei(4,0,null,null,0,":svg:path",[["d","M15.5 15.5L19 19"],["stroke","#989898"],["stroke-linecap","round"],["stroke-linejoin","round"],["stroke-width","1.5"]],null,null,null,null,null)),(t()(),Ei(5,0,null,null,0,":svg:path",[["d","M5 11C5 14.3137 7.68629 17 11 17C12.6597 17 14.1621 16.3261 15.2483 15.237C16.3308 14.1517 17 12.654 17 11C17 7.68629 14.3137 5 11 5C7.68629 5 5 7.68629 5 11Z"],["stroke","#989898"],["stroke-linecap","round"],["stroke-linejoin","round"],["stroke-width","1.5"]],null,null,null,null,null)),(t()(),Ei(6,0,[["searchInput",1]],null,6,"input",[["type","text"]],[[8,"className",0],[8,"placeholder",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"focus"],[null,"blur"],[null,"input"],[null,"compositionstart"],[null,"compositionend"]],(function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Ur(t,7)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Ur(t,7).onTouched()&&r),"compositionstart"===e&&(r=!1!==Ur(t,7)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Ur(t,7)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.searchText=n)&&r),"focus"===e&&(r=0!=(o.isInputFocused=!0)&&r),"blur"===e&&(r=0!=(o.isInputFocused=!1)&&r),r}),null,null)),Qr(7,16384,null,0,Ca,[an,nn,[2,wa]],null,null),eo(1024,null,va,(function(t){return[t]}),[Ca]),Qr(9,671744,null,0,il,[[8,null],[8,null],[8,null],[6,va]],{model:[0,"model"]},{update:"ngModelChange"}),eo(2048,null,Sa,null,[il]),Qr(11,16384,null,0,Ea,[[4,Sa]],null,null),to(131072,Jl,[Zl,xe]),(t()(),Si(16777216,null,null,1,null,eu)),Qr(14,16384,null,0,da,[Tn,En],{ngIf:[0,"ngIf"]},null)],(function(t,e){var n=e.component;t(e,1,0,br(1,"",n.prefix,"-pantone-picker__search"),n.isInputFocused?n.prefix+"-pantone-picker__search_selected":""),t(e,9,0,n.searchText),t(e,14,0,n.searchText.length>0)}),(function(t,e){var n=e.component;t(e,2,0,br(1,"",n.prefix,"-pantone-picker__search-icon")),t(e,6,0,br(1,"",n.prefix,"-pantone-picker__search-input"),Wn(e,6,1,Ur(e,12).transform("PantonePicker.SEARCH_TEXT")),Ur(e,11).ngClassUntouched,Ur(e,11).ngClassTouched,Ur(e,11).ngClassPristine,Ur(e,11).ngClassDirty,Ur(e,11).ngClassValid,Ur(e,11).ngClassInvalid,Ur(e,11).ngClassPending)}))}var ru,ou,iu=function(){function t(){}return t.MAIN_CONTAINER_NAME="Main",t.BG_CONTAINER_NAME="Background",t.FG_CONTAINER_NAME="Foreground",t.BG_SOLIDCOLOR="solidColor",t.SPINE_AND_FOLDING_CONTAINER_NAME="Spine&Folding",t}(),su=(ru=function(t,e){return(ru=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}ru(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),au=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},lu=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},uu=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(lu(arguments[e]));return t},cu=function(){function t(){this._listeners=[]}return t.prototype.add=function(t){this._listeners.includes(t)||this._listeners.push(t)},t.prototype.remove=function(t){this._listeners=this._listeners.filter((function(e){return e!==t}))},t.prototype.listenersCount=function(){return this._listeners.length},t.prototype.notify=function(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{for(var o=au(this._listeners),i=o.next();!i.done;i=o.next()){var s=i.value;s.apply(void 0,uu(n))}}catch(a){t={error:a}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t}(),hu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return su(e,t),e.prototype.add=function(e){t.prototype.add.call(this,e)},e.prototype.remove=function(e){t.prototype.remove.call(this,e)},e.prototype.notify=function(e){t.prototype.notify.call(this,e)},e.prototype.fire=function(t){this.notify(t)},e}(cu),pu=function(t){function e(e){var n=t.call(this)||this;return n._sender=e,n}return su(e,t),e.prototype.add=function(e){t.prototype.add.call(this,e)},e.prototype.remove=function(e){t.prototype.remove.call(this,e)},e.prototype.notify=function(e){t.prototype.notify.call(this,this._sender,e)},e.prototype.fire=function(t){this.notify(t)},e}(cu),fu=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n._sender=e,n}return su(e,t),e.prototype.add=function(e){t.prototype.add.call(this,e)},e.prototype.remove=function(e){t.prototype.remove.call(this,e)},e.prototype.notify=function(e,n){t.prototype.notify.call(this,e,n)},e}(cu),du=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gu=function(t){function e(n){var r=t.call(this,n)||this;return r.name="CustomersCanvasException",Object.setPrototypeOf(r,e.prototype),r}return du(e,t),e.prototype.toString=function(){return this.name+": "+this.message},e.prototype.toJSON=function(){return{name:this.name,innerException:this.innerException,message:this.message}},e}(Error),yu=function(t){function e(n){var r=t.call(this,n)||this;return r.name="NotImplementedException",Object.setPrototypeOf(r,e.prototype),r}return du(e,t),e}(gu),mu=function(t){function e(n){var r=t.call(this,n)||this;return r.name="ArgumentException",Object.setPrototypeOf(r,e.prototype),r}return du(e,t),e}(gu),_u=function(t){function e(n){var r=t.call(this,n)||this;return r.name="ArgumentNullException",Object.setPrototypeOf(r,e.prototype),r}return du(e,t),e}(mu),bu=function(t){function e(n){var r=t.call(this,n)||this;return r.name="OutOfRangeException",Object.setPrototypeOf(r,e.prototype),r}return du(e,t),e}(gu),vu=function(t){function e(n){var r=t.call(this,n)||this;return r.name="InvalidOperationException",Object.setPrototypeOf(r,e.prototype),r}return du(e,t),e}(gu),wu=(du((function t(e){var n=ou.call(this,e)||this;return n.name="UnexpectedDataException",Object.setPrototypeOf(n,t.prototype),n}),ou=gu),function(){function t(t){this._value="00000000-0000-0000-0000-000000000000",null!=t?this.set(t):this.generateNewGuid()}return t.prototype.set=function(t){if(!this.isValid(t))throw new gu(t+"is incorrect uuid!");this._value=t},Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.isValid=function(t){return t=t.toUpperCase(),null!=new RegExp("\\b(?:[A-F0-9]{8})(?:-[A-F0-9]{4}){3}-(?:[A-F0-9]{12})\\b").exec(t)},t.prototype.generateNewGuid=function(){var t=(new Date).getTime(),e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:7&n|8).toString(16)}));this.set(e)},t.prototype.toString=function(){return this._value},t.prototype.equals=function(t){return t._value===this._value},t}()),Cu=n("+Y6j"),Pu=function(t,e){for(var n=t.length;n--;)if((r=t[n][0])===(o=e)||r!=r&&o!=o)return n;var r,o;return-1},Ou=Array.prototype.splice;function xu(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}xu.prototype.clear=function(){this.__data__=[],this.size=0},xu.prototype.delete=function(t){var e=this.__data__,n=Pu(e,t);return!(n<0||(n==e.length-1?e.pop():Ou.call(e,n,1),--this.size,0))},xu.prototype.get=function(t){var e=this.__data__,n=Pu(e,t);return n<0?void 0:e[n][1]},xu.prototype.has=function(t){return Pu(this.__data__,t)>-1},xu.prototype.set=function(t,e){var n=this.__data__,r=Pu(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Su,Eu=xu,ku=n("fw2E"),Tu=ku.a.Symbol,ju=Object.prototype,Iu=ju.hasOwnProperty,Ru=ju.toString,Au=Tu?Tu.toStringTag:void 0,Mu=Object.prototype.toString,Nu=Tu?Tu.toStringTag:void 0,Bu=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Nu&&Nu in Object(t)?function(t){var e=Iu.call(t,Au),n=t[Au];try{t[Au]=void 0;var r=!0}catch(i){}var o=Ru.call(t);return r&&(e?t[Au]=n:delete t[Au]),o}(t):function(t){return Mu.call(t)}(t)},Lu=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Fu=ku.a["__core-js_shared__"],Du=(Su=/[^.]+$/.exec(Fu&&Fu.keys&&Fu.keys.IE_PROTO||""))?"Symbol(src)_1."+Su:"",Vu=Function.prototype.toString,zu=function(t){if(null!=t){try{return Vu.call(t)}catch(e){}try{return t+""}catch(e){}}return""},qu=/^\[object .+?Constructor\]$/,Uu=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hu=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!Lu(t)||(e=t,Du&&Du in e))&&(function(t){if(!Lu(t))return!1;var e=Bu(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}(t)?Uu:qu).test(zu(t));var e}(n)?n:void 0},Wu=Hu(ku.a,"Map"),Gu=Hu(Object,"create"),$u=Object.prototype.hasOwnProperty,Yu=Object.prototype.hasOwnProperty;function Xu(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Xu.prototype.clear=function(){this.__data__=Gu?Gu(null):{},this.size=0},Xu.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Xu.prototype.get=function(t){var e=this.__data__;if(Gu){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return $u.call(e,t)?e[t]:void 0},Xu.prototype.has=function(t){var e=this.__data__;return Gu?void 0!==e[t]:Yu.call(e,t)},Xu.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Gu&&void 0===e?"__lodash_hash_undefined__":e,this};var Zu=Xu,Ju=function(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map};function Ku(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ku.prototype.clear=function(){this.size=0,this.__data__={hash:new Zu,map:new(Wu||Eu),string:new Zu}},Ku.prototype.delete=function(t){var e=Ju(this,t).delete(t);return this.size-=e?1:0,e},Ku.prototype.get=function(t){return Ju(this,t).get(t)},Ku.prototype.has=function(t){return Ju(this,t).has(t)},Ku.prototype.set=function(t,e){var n=Ju(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Qu=Ku;function tc(t){var e=this.__data__=new Eu(t);this.size=e.size}tc.prototype.clear=function(){this.__data__=new Eu,this.size=0},tc.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},tc.prototype.get=function(t){return this.__data__.get(t)},tc.prototype.has=function(t){return this.__data__.has(t)},tc.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Eu){var r=n.__data__;if(!Wu||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qu(r)}return n.set(t,e),this.size=n.size,this},function(){try{Hu(Object,"defineProperty")({},"",{})}catch(t){}}();var ec;(function(t){return null!=t&&"object"==typeof t})(ec=function(){return arguments}())&&Bu(ec),n("TPB+");var nc={};nc["[object Float32Array]"]=nc["[object Float64Array]"]=nc["[object Int8Array]"]=nc["[object Int16Array]"]=nc["[object Int32Array]"]=nc["[object Uint8Array]"]=nc["[object Uint8ClampedArray]"]=nc["[object Uint16Array]"]=nc["[object Uint32Array]"]=!0,nc["[object Arguments]"]=nc["[object Array]"]=nc["[object ArrayBuffer]"]=nc["[object Boolean]"]=nc["[object DataView]"]=nc["[object Date]"]=nc["[object Error]"]=nc["[object Function]"]=nc["[object Map]"]=nc["[object Number]"]=nc["[object Object]"]=nc["[object RegExp]"]=nc["[object Set]"]=nc["[object String]"]=nc["[object WeakMap]"]=!1;var rc=function(t){return function(e){return t(e)}},oc=n("Af8m"),ic=oc.a&&oc.a.isTypedArray;ic&&rc(ic);var sc=function(t,e){return function(n){return t(e(n))}};sc(Object.keys,Object),n("1vCq"),sc(Object.getPrototypeOf,Object);var ac=Hu(ku.a,"DataView"),lc=Hu(ku.a,"Promise"),uc=Hu(ku.a,"Set"),cc=Hu(ku.a,"WeakMap"),hc=zu(ac),pc=zu(Wu),fc=zu(lc),dc=zu(uc),gc=zu(cc),yc=Bu;(ac&&"[object DataView]"!=yc(new ac(new ArrayBuffer(1)))||Wu&&"[object Map]"!=yc(new Wu)||lc&&"[object Promise]"!=yc(lc.resolve())||uc&&"[object Set]"!=yc(new uc)||cc&&"[object WeakMap]"!=yc(new cc))&&(yc=function(t){var e=Bu(t),n="[object Object]"==e?t.constructor:void 0,r=n?zu(n):"";if(r)switch(r){case hc:return"[object DataView]";case pc:return"[object Map]";case fc:return"[object Promise]";case dc:return"[object Set]";case gc:return"[object WeakMap]"}return e});var mc=oc.a&&oc.a.isMap;mc&&rc(mc);var _c=oc.a&&oc.a.isSet,bc=(_c&&rc(_c),{});bc["[object Arguments]"]=bc["[object Array]"]=bc["[object ArrayBuffer]"]=bc["[object DataView]"]=bc["[object Boolean]"]=bc["[object Date]"]=bc["[object Float32Array]"]=bc["[object Float64Array]"]=bc["[object Int8Array]"]=bc["[object Int16Array]"]=bc["[object Int32Array]"]=bc["[object Map]"]=bc["[object Number]"]=bc["[object Object]"]=bc["[object RegExp]"]=bc["[object Set]"]=bc["[object String]"]=bc["[object Symbol]"]=bc["[object Uint8Array]"]=bc["[object Uint8ClampedArray]"]=bc["[object Uint16Array]"]=bc["[object Uint32Array]"]=!0,bc["[object Error]"]=bc["[object Function]"]=bc["[object WeakMap]"]=!1;var vc=function(){function t(t,e){this.x=0,this.y=0,this.x=t||0,this.y=e||0}return t.prototype.rotate=function(e){return this.rotateAt(e,new t(0,0))},t.prototype.rotateAt=function(e,n){n||(n=new t(0,0));var r=Oc(e),o=Math.cos(r)*(this.x-n.x)-Math.sin(r)*(this.y-n.y)+n.x,i=Math.sin(r)*(this.x-n.x)+Math.cos(r)*(this.y-n.y)+n.y;return this.x=o,this.y=i,this},t.prototype.translate=function(t,e){return this.x=this.x+t,this.y=this.y+e,this},t.prototype.scale=function(t,e){return this.x=this.x*t,this.y=this.y*e,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.equals=function(t,e){return null!=t&&Ec(this.x,t.x,e)&&Ec(this.y,t.y,e)},t.isEqual=function(t,e,n){return void 0===n&&(n=1e-4),null==t&&null==e||null!=t&&null!=e&&t.equals(e)},t.prototype.distance=function(t){return Math.sqrt((this.x-t.x)*(this.x-t.x)+(this.y-t.y)*(this.y-t.y))},t.prototype.transform=function(e,n){return null==n&&(n=new t),this.translate(-n.x,-n.y),this.scale(e.scaleX,e.scaleY),this.rotate(e.angle),this.translate(e.translateX,e.translateY),this.translate(n.x,n.y),this},t.prototype.toString=function(){return[this.x.toFixed(2),this.y.toFixed(2)].join(",")},t.prototype.toIPoint=function(){return{x:this.x,y:this.y}},t.fromIPoint=function(e){return new t(e.x,e.y)},t.prototype.round=function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},t.prototype.isOrigin=function(){return 0===this.x&&0===this.y},t}(),wc=function(){function t(t,e,n,r,o,i){if(6==arguments.length)this.setTransform(t,e,n,r,o,i);else{if(0!=arguments.length)throw new Error("Arguments error");this.setTransform(1,0,0,1,0,0)}}return t.prototype.setTransform=function(t,e,n,r,o,i){this.m00=t,this.m10=e,this.m01=n,this.m11=r,this.m02=o,this.m12=i},t.prototype.transformPoint=function(t,e){void 0===e&&(e=!1);var n=e?new vc:t,r=t.x,o=t.y;return n.x=r*this.m00+o*this.m01+this.m02,n.y=r*this.m10+o*this.m11+this.m12,n},t.prototype.concatenate=function(t){var e=this.m00,n=this.m01;this.m00=e*t.m00+n*t.m10,this.m01=e*t.m01+n*t.m11,this.m02=e*t.m02+n*t.m12+this.m02;var r=this.m10,o=this.m11;return this.m10=r*t.m00+o*t.m10,this.m11=r*t.m01+o*t.m11,this.m12=r*t.m02+o*t.m12+this.m12,this},t.prototype.rotate=function(e){e=Oc(e);var n=Math.cos(e),r=Math.sin(e);return this.concatenate(new t(n,r,-r,n,0,0))},t.prototype.rotateAt=function(t,e,n){return this.translate(e,n),this.rotate(t),this.translate(-e,-n),this},t.prototype.scale=function(e,n){return this.concatenate(new t(e,0,0,n,0,0))},t.prototype.scaleRelativeToPoint=function(e,n,r){return this.concatenate(new t(e,0,0,n,r.x*(1-e),r.y*(1-n)))},t.prototype.translate=function(e,n){return this.concatenate(new t(1,0,0,1,e,n))},Object.defineProperty(t.prototype,"angle",{get:function(){return xc(Math.atan(-this.m01/this.m00))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scaleX",{get:function(){return Math.sqrt(this.m00*this.m00+this.m10*this.m10)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scaleY",{get:function(){return Math.sqrt(this.m01*this.m01+this.m11*this.m11)},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.m00,this.m10,this.m01,this.m11,this.m02,this.m12)},t.prototype.updateObjectByMatrix=function(t,e,n){if(null==t)throw new mu("object cannot be null");if(!Cu.isNumber(t[e])||!Cu.isNumber(t[e]))throw new mu("object members by given keys nust be a numbers!");var r=this.transformPoint(new vc(t[e],t[n]));return t[e]=r.x,t[n]=r.y,t},Object.defineProperty(t.prototype,"isIdentity",{get:function(){return 1===this.m00&&0===this.m01&&0===this.m02&&0===this.m10&&1===this.m11&&0===this.m12},enumerable:!0,configurable:!0}),t.prototype.getInversed=function(){var e=1/this._determinant;return new t(this.m11*e,-this.m10*e,-this.m01*e,this.m00*e,this.m01*this.m12-this.m11*this.m02*e,(this.m10*this.m02-this.m00*this.m12)*e)},Object.defineProperty(t.prototype,"_determinant",{get:function(){return this.m00*this.m11-this.m01*this.m10},enumerable:!0,configurable:!0}),t.prototype.equals=function(t){return this.m00===t.m00&&this.m01===t.m01&&this.m02===t.m02&&this.m10===t.m10&&this.m11===t.m11&&this.m12===t.m12},t}(),Cc=function(){function t(t,e,n,r){this._propertyChanged=new fu,this._left="number"==typeof t?t:0,this._top="number"==typeof e?e:0,this._width="number"==typeof n?n:2,this._height="number"==typeof r?r:2,this._id=Math.random().toString()}return t.prototype.toJSON=function(){return{left:this.left,top:this.top,width:this.width,height:this.height,id:this._id}},Object.defineProperty(t.prototype,"left",{get:function(){return this._left},set:function(e){Ec(e,this._left,t._tolerance)||(this._left=e,this._propertyChanged.notify(this,"left"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this._top},set:function(e){Ec(e,this._top,t._tolerance)||(this._top=e,this._propertyChanged.notify(this,"top"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(e){Ec(e,this._width,t._tolerance)||(this._width=e,this._propertyChanged.notify(this,"width"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(e){Ec(e,this._height,t._tolerance)||(this._height=e,this._propertyChanged.notify(this,"height"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),t.FromLTRB=function(e,n,r,o){var i=Math.abs(r-e),s=Math.abs(o-n);return new t(Math.min(e,r),Math.min(n,o),i,s)},t.fromLtrbObject=function(e){return t.FromLTRB(e.left,e.top,e.right,e.bottom)},t.FromObject=function(e){return new t(e.left,e.top,e.width,e.height)},t.intersect=function(e,n){var r=Math.max(e.left,n.left),o=Math.min(e.right,n.right),i=Math.max(e.top,n.top),s=Math.min(e.bottom,n.bottom);return o>=r&&s>=i?new t(r,i,o-r,s-i):t.empty},t.union=function(e,n){var r=Math.min(e.left,n.left),o=Math.max(e.left+e.width,n.left+n.width),i=Math.min(e.top,n.top);return new t(r,i,o-r,Math.max(e.top+e.height,n.top+n.height)-i)},Object.defineProperty(t,"empty",{get:function(){return new t(0,0,-1,-1)},enumerable:!0,configurable:!0}),t.prototype.equals=function(e){return t.isEqual(this,e)},t.isEqual=function(t,e,n){return void 0===n&&(n=1e-4),null==t&&null==e||null!=t&&null!=e&&Ec(t.left,e.left,n)&&Ec(t.top,e.top,n)&&Ec(t.width,e.width,n)&&Ec(t.height,e.height,n)},t.prototype.contains=function(t,e,n){if(null==e&&(e=!1),e){"number"!=typeof n&&(n=1e-4);var r=this.left,o=this.top,i=this.left+this.width,s=this.top+this.height;return(t.x>r||Ec(t.x,r,n))&&(t.y>o||Ec(t.y,o,n))&&(t.x<i||Ec(t.x,i,n))&&(t.y<s||Ec(t.y,s,n))}return t.x>this.left&&t.y>this.top&&t.x<this.left+this.width&&t.y<this.top+this.height},t.prototype.containsRectangle=function(t){var e=new vc(t.left,t.top),n=new vc(t.right,t.bottom);return this.contains(e,!0)&&this.contains(n,!0)},t.prototype.clone=function(){return new t(this.left,this.top,this.width,this.height)},t.prototype.isEmpty=function(){return this.width<=0||this.height<=0},t.prototype.inflate=function(t){this.left-=t,this.top-=t,this.width+=2*t,this.height+=2*t},t.prototype.intersectsWith=function(t){return t.left<this.right&&this.left<t.right&&t.top<this.bottom&&this.top<t.bottom},t.prototype.updateByMatrix=function(t){var e=Math.abs(t.angle%90);if(!Ec(e,0)&&!Ec(e,90))throw new mu("RectangleF cannot be transformed by angle ("+t.angle+"!");var n=new vc(this.left,this.top),r=new vc(this.right,this.bottom),o=t.transformPoint(n),i=t.transformPoint(r),s=this.clone();return this._left=o.x,this._top=o.y,this._width=i.x-this._left,this._height=i.y-this._top,s.equals(this)||this._propertyChanged.notify(this),this},t.prototype.getExpanded=function(e){return t.FromLTRB(this.left-e.left,this.top-e.top,this.right+e.right,this.bottom+e.bottom)},t.prototype.toString=function(){return[this.left,this.top,this.width,this.height].join(",")},t.fromString=function(e){var n=e.replace(", ",",").split(",");return new t(parseFloat(n[0]),parseFloat(n[1]),parseFloat(n[2]),parseFloat(n[3]))},t.fromPoints=function(e,n){return t.FromLTRB(Math.min(e.x,n.x),Math.min(e.y,n.y),Math.max(e.x,n.x),Math.max(e.y,n.y))},t.getMatrix=function(t,e){var n=new wc,r=t.center,o=e.center;return n.scaleRelativeToPoint(e.width/t.width,e.height/t.height,r),n.translate((o.x-r.x)/n.scaleX,(o.y-r.y)/n.scaleY),n},t.getOverallBounds=function(e){return Cu.isEmpty(e)?t.empty:e.reduce((function(e,n){return null==e?n.clone():t.union(e,n)}))},Object.defineProperty(t.prototype,"right",{get:function(){return this.left+this.width},set:function(t){this.width=t-this.left},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.top+this.height},set:function(t){this.height=t-this.top},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return new vc(this.left+this.width/2,this.top+this.height/2)},enumerable:!0,configurable:!0}),t.prototype.addPropertyChanged=function(t){this._propertyChanged.add(t)},t.prototype.removePropertyChanged=function(t){this._propertyChanged.remove(t)},t._tolerance=1e-6,t}(),Pc=function(t){return(t%=360)<0&&(t+=360),t},Oc=function(t){return Math.PI*t/180},xc=function(t){return 180*t/Math.PI},Sc=function(t,e,n){return Math.max(t,Math.min(n,e))},Ec=function(t,e,n){return"number"==typeof t&&"number"==typeof e&&("number"!=typeof n&&(n=1e-4),0!=n?Math.abs(t-e)<=n:t==e)},kc=function(){function t(t,e){this._name="",this._points=[],this._name=t?t.toUpperCase():"",this._points=e||[]}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.getPoint=function(t){return this._points[t]},Object.defineProperty(t.prototype,"length",{get:function(){return this._points.length},enumerable:!0,configurable:!0}),t.prototype.transform=function(t,e){for(var n=0;n<this.length;n++)this.getPoint(n).transform(t,e)},t.prototype.rotateAt=function(t,e){for(var n=0;n<this.length;n++)this.getPoint(n).rotateAt(t,e)},t.prototype.translate=function(t,e){for(var n=0;n<this.length;n++)this.getPoint(n).translate(t,e)},t.prototype.scale=function(t,e){for(var n=0;n<this.length;n++)this.getPoint(n).scale(t,e)},t.prototype.draw=function(t){switch(this.name){case"Z":t.closePath();break;case"M":t.moveTo(this.getPoint(0).x,this.getPoint(0).y);break;case"L":t.lineTo(this.getPoint(0).x,this.getPoint(0).y);break;case"Q":t.quadraticCurveTo(this.getPoint(0).x,this.getPoint(0).y,this.getPoint(1).x,this.getPoint(1).y);break;case"C":t.bezierCurveTo(this.getPoint(0).x,this.getPoint(0).y,this.getPoint(1).x,this.getPoint(1).y,this.getPoint(2).x,this.getPoint(2).y)}},t.prototype.toString=function(){for(var t=this.name,e=0;e<this.length;e++)t+=" "+this.getPoint(e).x+" "+this.getPoint(e).y;return t},t.prototype.clone=function(){return new t(this.name,this._points.map((function(t){return t.clone()})))},t}(),Tc=function(){function t(t){this._pathChangedEvent=new hu,this._segments=[],null!=t&&this._fromString(t)}return Object.defineProperty(t.prototype,"length",{get:function(){return this._segments.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"segments",{get:function(){return this._segments},enumerable:!0,configurable:!0}),t.prototype.addPathChanged=function(t){this._pathChangedEvent.add(t)},t.prototype.removePathChanged=function(t){this._pathChangedEvent.remove(t)},t.prototype.moveTo=function(t,e){this._segments.push(new kc("M",[new vc(t,e)])),this._onPathChanged()},t.prototype.lineTo=function(t,e){this._segments.push(new kc("L",[new vc(t,e)])),this._onPathChanged()},t.prototype.quadraticTo=function(t,e,n,r){this._segments.push(new kc("Q",[new vc(t,e),new vc(n,r)])),this._onPathChanged()},t.prototype.cubicTo=function(t,e,n,r,o,i){this._segments.push(new kc("C",[new vc(t,e),new vc(n,r),new vc(o,i)])),this._onPathChanged()},t.prototype.close=function(){this._segments.push(new kc("Z")),this._onPathChanged()},t.prototype._onPathChanged=function(){this._pathChangedEvent.notify()},t.prototype.transform=function(t,e){for(var n=0;n<this.length;n++)this._segments[n].transform(t,e)},t.prototype.rotateAt=function(t,e){for(var n=0;n<this.length;n++)this._segments[n].rotateAt(t,e)},t.prototype.translate=function(t,e){for(var n=0;n<this.length;n++)this._segments[n].translate(t,e)},t.prototype.scale=function(t,e){for(var n=0;n<this.length;n++)this._segments[n].scale(t,e)},t.prototype.draw=function(t){if(t){t.beginPath();for(var e=0;e<this.length;e++)this._segments[e].draw(t)}},t.prototype.toString=function(){for(var t="",e=0;e<this.length;e++)t+=this._segments[e].toString(),e<this._segments.length-1&&(t+=" ");return t},t.prototype.clone=function(){return new t(this.toString())},t.prototype.equals=function(t){return this.isEqual(t)},t.prototype.isEqual=function(t){return null!=t&&this.toString()===t.toString()},t.prototype.addPath=function(t){var e,n;try{for(var r=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t._segments),o=r.next();!o.done;o=r.next())this._segments.push(o.value.clone())}catch(i){e={error:i}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},t.prototype._fromString=function(t){for(var e=t.split(" "),n=0;n<e.length;){for(var r=e[n],o=n+1,i=[];o<e.length;){var s=parseFloat(e[o]);if(isNaN(s)||!isFinite(s))break;i.push(s),o++}for(var a=0,l=[];a<i.length;)l.push(new vc(i[a],i[a+1])),a+=2;var u=new kc(r,l);this._segments.push(u),n=o}},t.rectangle=function(e,n,r,o){var i=new t;return i.moveTo(e,n),i.lineTo(e+r,n),i.lineTo(e+r,n+o),i.lineTo(e,n+o),i.lineTo(e,n),i.close(),i},t.ellipse=function(e,n,r,o){var i=r/2,s=o/2,a=new t;return a.moveTo(e,n+s),a.cubicTo(e,n+s-.5517*s,e+i-.5517*i,n,e+i,n),a.cubicTo(e+i+.5517*i,n,e+r,n+s-.5517*s,e+r,n+s),a.cubicTo(e+r,n+s+.5517*s,e+i+.5517*i,n+o,e+i,n+o),a.cubicTo(e+i-.5517*i,n+o,e,n+s+.5517*s,e,n+s),a.close(),a},t.roundedRectangle=function(e,n,r,o,i){if(null==i)return t.rectangle(e,n,r,o);var s=new t,a=e,l=n,u=i[0].width,c=i[0].height,h=i[1].width,p=i[1].height,f=i[2].width,d=i[2].height,g=i[3].width,y=i[3].height;return(Ec(u,0)||Ec(c,0))&&(u=c=0),(Ec(h,0)||Ec(p,0))&&(h=p=0),(Ec(f,0)||Ec(d,0))&&(f=d=0),(Ec(g,0)||Ec(y,0))&&(g=y=0),s.moveTo(a+u,l),Ec(u+h,r)||s.lineTo(a+r-h,l),Ec(h,0)||Ec(p,0)||s.cubicTo(a+r-h*(1-.5517),l,a+r,l+p*(1-.5517),a+r,l+p),Ec(p+d,o)||s.lineTo(a+r,l+o-d),Ec(f,0)||Ec(d,0)||s.cubicTo(a+r,l+o-d*(1-.5517),a+r-f*(1-.5517),l+o,a+r-f,l+o),Ec(f+g,r)||s.lineTo(a+g,l+o),Ec(g,0)||Ec(y,0)||s.cubicTo(a+g*(1-.5517),l+o,a,l+o-y*(1-.5517),a,l+o-y),Ec(y+c,o)||s.lineTo(a,l+c),Ec(u,0)||Ec(c,0)||s.cubicTo(a,l+c*(1-.5517),a+u*(1-.5517),l,a+u,l),s.close(),s},t.rotatedRectangle=function(e){var n=e.getUpperLeftCorner(),r=e.getUpperRightCorner(),o=e.getBottomRightCorner(),i=e.getBottomLeftCorner(),s=new t;return s.moveTo(n.x,n.y),s.lineTo(r.x,r.y),s.lineTo(o.x,o.y),s.lineTo(i.x,i.y),s.lineTo(n.x,n.y),s.close(),s},t}(),jc=function(){function t(t,e,n,r,o){this._angle=0,this._scaleX=0,this._scaleY=0,this._translateX=0,this._translateY=0,this._transformChangedEvent=new hu,this._angle=o||0,this._scaleX=t||0===t?t:1,this._scaleY=e||0===t?e:1,this._translateX=n||0,this._translateY=r||0}return t.prototype.addTransformChanged=function(t){this._transformChangedEvent.add(t)},t.prototype.removeTransformChanged=function(t){this._transformChangedEvent.remove(t)},t.prototype._setProperty=function(t,e,n){void 0===n&&(n=!1);var r="_"+t;this[r]!==e&&(this[r]=e,n||this._transformChangedEvent.notify())},Object.defineProperty(t.prototype,"angle",{get:function(){return this._angle},enumerable:!0,configurable:!0}),t.prototype.setAngle=function(t,e){this._setProperty("angle",t,e)},Object.defineProperty(t.prototype,"scaleX",{get:function(){return this._scaleX},enumerable:!0,configurable:!0}),t.prototype.setScaleX=function(t,e){this._setProperty("scaleX",t,e)},Object.defineProperty(t.prototype,"scaleY",{get:function(){return this._scaleY},enumerable:!0,configurable:!0}),t.prototype.setScaleY=function(t,e){this._setProperty("scaleY",t,e)},Object.defineProperty(t.prototype,"translateX",{get:function(){return this._translateX},enumerable:!0,configurable:!0}),t.prototype.setTranslateX=function(t,e){this._setProperty("translateX",t,e)},Object.defineProperty(t.prototype,"translateY",{get:function(){return this._translateY},enumerable:!0,configurable:!0}),t.prototype.setTranslateY=function(t,e){this._setProperty("translateY",t,e)},t.prototype.move=function(t,e){var n=this.clone();null!=t&&this.setTranslateX(this._translateX+t,!0),null!=e&&this.setTranslateY(this._translateY+e,!0),n.equals(this)||this._transformChangedEvent.notify()},t.prototype.rotate=function(t){null==t||Ec(t,0)||(this._angle+=t,this._transformChangedEvent.notify())},t.prototype.clone=function(){return new t(this._scaleX,this._scaleY,this._translateX,this._translateY,this._angle)},t.prototype.equals=function(t,e){return null!=t&&Ec(this._scaleX,t._scaleX,e)&&Ec(this._scaleY,t._scaleY,e)&&Ec(this._translateX,t._translateX,e)&&Ec(this._translateY,t._translateY,e)&&Ec(this._angle,t._angle,e)},t.isEqual=function(t,e,n){return void 0===n&&(n=1e-4),null==t&&null==e||null!=t&&null!=e&&t.equals(e,n)},t.prototype.toMatrix=function(){var t=this._angle,e=Math.sin(Oc(t)),n=Math.cos(Oc(t));return new wc(n*this._scaleX,e*this._scaleX,-e*this._scaleY,n*this._scaleY,this._translateX,this._translateY)},t.prototype.clear=function(t){var e=void 0===t?{}:t,n=e.keepAngle,r=void 0!==n&&n,o=e.supressOnChanged,i=void 0!==o&&o;this._scaleX=1,this._scaleY=1,this._translateX=0,this._translateY=0,r||(this._angle=0),i||this._transformChangedEvent.notify()},t.prototype.applyMatrix=function(t,e){if(void 0===e&&(e=!1),!t.isIdentity){var n=this.toMatrix().concatenate(t);this._angle=n.angle,this._scaleX=n.scaleX,this._scaleY=n.scaleY,this._translateX=n.m02,this._translateY=n.m12,e||this._transformChangedEvent.notify()}},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return Ec(this._scaleX,1)&&Ec(this._scaleY,1)&&Ec(this._translateX,0)&&Ec(this._translateY,0)&&Ec(this._angle,0)},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=[this.translateX,this.translateY,this.scaleX,this.scaleY,this.angle].map((function(t){return t.toFixed(2)}));return"{ tx: "+t[0]+", ty: "+t[1]+", sx: "+t[2]+", sy: "+t[3]+", a: "+t[4]+"}"},t}(),Ic=(function(){function t(t,e,n,r,o){this.centerX=t||0,this.centerY=e||0,this.width=n||0===n?n:2,this.height=r||0===r?r:2,this.angle=o||0}t.prototype.getSimplifiedObject=function(){return{centerX:this.centerX,centerY:this.centerY,width:this.width,height:this.height,angle:this.angle}},t.prototype.clone=function(){return new t(this.centerX,this.centerY,this.width,this.height,this.angle)},Object.defineProperty(t.prototype,"bounds",{get:function(){for(var t=new vc(this.centerX,this.centerY),e=this.width,n=this.height,r=[new vc(-e/2,-n/2),new vc(-e/2,n/2),new vc(e/2,-n/2),new vc(e/2,n/2)],o=0,i=0,s=0,a=0,l=0;l<4;l++)r[l].rotate(this.angle),(r[l].x<o||0===l)&&(o=r[l].x),(r[l].y<i||0===l)&&(i=r[l].y),(r[l].x>s||0===l)&&(s=r[l].x),(r[l].y>a||0===l)&&(a=r[l].y);return new Cc(o+t.x,i+t.y,s-o,a-i)},enumerable:!0,configurable:!0}),t.prototype.equals=function(t,e){return null!=t&&Ec(this.centerX,t.centerX,e)&&Ec(this.centerY,t.centerY,e)&&Ec(this.width,t.width,e)&&Ec(this.height,t.height,e)&&Ec(this.angle,t.angle,e)},t.prototype.getUpperLeftCorner=function(){var t=new vc(-this.width/2,-this.height/2);return(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},t.prototype.getUpperCenterPoint=function(){var t=new vc(0,-this.height/2);return(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},t.prototype.getLeftCenterPoint=function(){var t=new vc(-this.width/2,0);return(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},t.prototype.getRightCenterPoint=function(){var t=new vc(this.width/2,0);return(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},t.prototype.getUpperRightCorner=function(){var t=new vc(this.width/2,-this.height/2);return(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},t.prototype.getBottomRightCorner=function(){var t=new vc(this.width/2,this.height/2);return(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},t.prototype.getBottomLeftCorner=function(){var t=new vc(-this.width/2,this.height/2);return(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},t.prototype.getBottomCenterPoint=function(){var t=new vc(0,this.height/2);return(t=t.rotate(this.angle)).translate(this.centerX,this.centerY)},t.prototype._checkProjectionIntersection=function(t,e){var n=this._getProjections(t),r=this._getProjections(e);return n.left<=r.right&&n.right>=r.left&&n.top<=r.bottom&&n.bottom>=r.top},t.prototype._getProjections=function(t){var e,n,r,o;e=n=t[0].x,r=o=t[0].y;for(var i=1;i<t.length;i++)e=Math.min(e,t[i].x),n=Math.max(n,t[i].x),r=Math.min(r,t[i].y),o=Math.max(o,t[i].y);return{left:e,right:n,top:r,bottom:o}},t.prototype.intersectsWith=function(t){var e=this.clone(),n=t.clone();if(!Ec(this.angle,0)){var r=e.angle;e.angle=0,(o=n.center).rotateAt(-r,e.center),n.center=o,n.angle-=r}var o,i=[e.getUpperLeftCorner(),e.getUpperRightCorner(),e.getBottomRightCorner(),e.getBottomLeftCorner()],s=[n.getUpperLeftCorner(),n.getUpperRightCorner(),n.getBottomRightCorner(),n.getBottomLeftCorner()],a=this._checkProjectionIntersection(i,s),l=!0;return a&&!Ec(this.angle,t.angle)&&(e=this.clone(),r=(n=t.clone()).angle,n.angle=0,(o=e.center).rotateAt(-r,n.center),e.center=o,e.angle-=r,i=[e.getUpperLeftCorner(),e.getUpperRightCorner(),e.getBottomRightCorner(),e.getBottomLeftCorner()],s=[n.getUpperLeftCorner(),n.getUpperRightCorner(),n.getBottomRightCorner(),n.getBottomLeftCorner()],l=this._checkProjectionIntersection(i,s)),a&&l},Object.defineProperty(t.prototype,"location",{get:function(){return this.getUpperLeftCorner()},set:function(t){var e=this.getUpperLeftCorner();this.centerX=this.centerX+(t.x-e.x),this.centerY=this.centerY+(t.y-e.y)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return new vc(this.centerX,this.centerY)},set:function(t){this.centerX=t.x,this.centerY=t.y},enumerable:!0,configurable:!0}),t.prototype.rotateAt=function(t,e){var n=this.center;return n.rotateAt(t,e),this.center=n,this.angle+=t,this},t.prototype.translate=function(t,e){this.centerX+=t,this.centerY+=e},t.prototype.setTransform=function(t){null==t||t.equals(new jc)||(this.width*=t.scaleX,this.height*=t.scaleY,this.angle+=t.angle,this.centerX+=t.translateX,this.centerY+=t.translateY)},t.prototype.getTransform=function(t){if(null==t||this.equals(t))return new jc;var e=t.center;return new jc(0===t.width?0:this.width/t.width,0===t.height?0:this.height/t.height,this.centerX-e.x,this.centerY-e.y,this.angle-t.angle)},t.prototype.transform=function(t,e){this.rotateAt(t.angle,e),t.setAngle(0),this.setTransform(t)},t.prototype.toString=function(){return[this.centerX,this.centerY,this.width,this.height,this.angle].join(",")},t.prototype.toRectangleF=function(){return new Cc(this.centerX-this.width/2,this.centerY-this.height/2,this.width,this.height)},t.prototype.contains=function(t){var e=this.clone();e.angle=0;var n=t.clone();return n.rotateAt(-this.angle,this.center),e.bounds.contains(n)},t.prototype.getCornerByIndex=function(t){switch(t){case 0:return this.getUpperLeftCorner();case 1:return this.getUpperRightCorner();case 2:return this.getBottomRightCorner();case 3:return this.getBottomLeftCorner();default:return null}},t.prototype.transformByMatrix=function(e,n){void 0===n&&(n=null);var r=[this.center.clone(),this.getUpperLeftCorner(),this.getUpperRightCorner(),this.getBottomRightCorner(),this.getBottomLeftCorner()].map((function(t){return e.transformPoint(t)})),o=Pc(null!=n?this.angle+n:this.angle),i=r[0],s=r.slice(1,5).map((function(t){return t.rotateAt(-o,i)}));if(!Ec(s[0].x,s[3].x,.01)||!Ec(s[0].y,s[1].y,.01))throw new mu("RotatedRectangle: Scew is not supported");var a=Math.abs(s[1].x-s[0].x),l=Math.abs(s[2].y-s[1].y);return new t(i.x,i.y,a,l,o)},t.union=function(e,n){var r=e.clone(),o=n.clone(),i=r.angle,s=r.center;r.angle=0,o.rotateAt(-i,s);var a=Cc.union(r.bounds,o.bounds),l=new vc(a.left+a.width/2,a.top+a.height/2),u=new t;u.center=l;var c=-1===Math.sign(e.width)||-1===Math.sign(e.width)?-1:1,h=-1===Math.sign(e.height)||-1===Math.sign(n.height)?-1:1;return u.width=a.width*c,u.height=a.height*h,u.rotateAt(i,s),u},t.fromRectangleF=function(e,n){return new t(e.left+e.width/2,e.top+e.height/2,e.width,e.height,"number"==typeof n?n:0)},t.FromLTRB=function(e,n,r,o){return t.fromRectangleF(Cc.FromLTRB(e,n,r,o))},t.getRectWithOffset=function(t,e){if(null==t)throw new mu("RotatedRectangleF.getRectWithOffset: rectangle cannot be null!");return null==e||e.isOrigin()?t.clone():t.transformByMatrix((new wc).translate(e.x,e.y))}}(),function(){function t(t,e){this.width=0,this.height=0,this.width=t,this.height=e}return t.prototype.clone=function(){return new t(this.width,this.height)},t.prototype.toString=function(){return[this.width,this.height].join(",")},t.prototype.updateByMatrix=function(t){return t.updateObjectByMatrix(this,"width","height"),this},t}()),Rc=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Ac(t,e){if(null==t&&null==e)return!0;if(null==t&&null!=e||null!=t&&null==e)return!1;var n=typeof t;return n===typeof e&&("string"===n||"boolean"===n?t===e:"number"===n?Ec(t,e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&Mc(t,e):("function"==typeof t.equals&&"function"==typeof e.equals?function(t,e){return t.equals(e)}:function(t,e){return t==e})(t,e))}function Mc(t,e){return null==t&&null==e||null!=t&&null!=e&&t.length===e.length&&t.reduce((function(t,n,r){return t&&Ac(n,e[r])}),!0)}function Nc(t,e){return(null==t?void 0:t.length)===(null==e?void 0:e.length)&&t.reduce((function(t,n,r){return t&&n==e[r]}),!0)}function Bc(t){return null==t||""===t.trim()}function Lc(t,e){return void 0===e&&(e=!0),!(Bc(t)||!t.startsWith("<"))&&(e&&(t=Fc(t)),null==(new DOMParser).parseFromString("<root>"+t+"</root>","application/xml").querySelector("parsererror"))}function Fc(t){if(Bc(t)||!t.startsWith("<"))return t;for(var e=[t];;){var n=e.pop(),r=n.indexOf("&");if(-1===r){e.push(n);break}e.push(n.substring(0,r));var o=Dc(n,r);null!=o?(e.push(o.entity),e.push(n.substring(r+o.length))):(e.push("&amp;"),e.push(n.substring(r+1)))}return e.join("")}function Dc(t,e){var n=t.substring(e,e+4).toLowerCase();if("&lt;"==n)return{entity:"&lt;",length:4};if("&gt;"==n)return{entity:"&gt;",length:4};if("&amp;"==t.substring(e,e+5).toLowerCase())return{entity:"&amp;",length:5};var r=t.substring(e,e+6).toLowerCase();if("&apos;"==r)return{entity:"&apos;",length:6};if("&quot;"==r)return{entity:"&quot;",length:6};var o=t.substring(e,e+7).toLowerCase();if(o.match(/^&#[\\d]{4};$$/))return{entity:o,length:7};var i=t.substring(e,e+8);return i.toLowerCase().match(/^&#x[\\dabcdef]{4};$/)?{entity:i,length:8}:null}new Map;var Vc,zc=function(){function t(t){this._previewFromServer=!1,this.preview=null,this.profileId=null,null!=t&&(Bc(t.preview)||(this._previewFromServer=!0),"string"!=typeof t&&this._init(t))}return Object.defineProperty(t.prototype,"previewFromServer",{get:function(){return this._previewFromServer},enumerable:!0,configurable:!0}),t.prototype.needUpdate=function(t){var e="RgbColor"===this.type;return(!e||e&&null!=this.profileId&&this.profileId!==t)&&!this.previewFromServer},t.prototype.equals=function(t,e){return void 0===e&&(e=!1),t.profileId===this.profileId&&(e||t.preview===this.preview)},t.prototype.getData=function(){return{preview:this.preview,profileId:this.profileId,type:this.type}},t.prototype._init=function(t){Bc(t.preview)||(this.preview=t.preview),Bc(t.profileId)||(this.profileId=t.profileId)},t.prototype._validateString=function(t){if(Bc(t))throw new mu("Value must be a non-empty string")},t.prototype._validateNumber=function(t,e,n){if(void 0===e&&(e=0),void 0===n&&(n=255),"number"!=typeof t)throw new mu("Value must be a number");if(t<e||t>n)throw new mu("Value must be in range ["+e+", "+n+"]")},t.equals=function(t,e){return null==t&&null==e||null!=t&&t.equals(e)},t}(),qc=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uc=function(t){function e(e){var n=t.call(this,e)||this;if(n._r=0,n._g=0,n._b=0,n._a=0,null==e)return n;var r="Incorrect RgbColor format: "+JSON.stringify(e);if("string"==typeof e){var o=e;if(0!==e.indexOf("#")&&0!==e.indexOf("rgb")&&null==(o=n._parseNamedColor(e))&&console.warn("Unknown rgb color name: "+e),n._tryInitFromRgba(o))return n;if(n._tryInitFromRgb(o))return n;n._tryInitFromHex(o)||console.warn(r)}else try{n._init(e)}catch(i){console.warn(r)}return n}return qc(e,t),e.prototype._parseNamedColor=function(t){if(window.getComputedStyle){var e=document.createElement("div");e.style.color=t,document.body.appendChild(e);var n=window.getComputedStyle(e).color;return document.body.removeChild(e),n}return console.warn("Unable to parse rgb color string "+t),null},e.prototype._tryInitFromRgba=function(t){var n=e.matchRgba(t);if(null!=n&&6===n.length){var r=parseInt((255*parseFloat(n[4])).toFixed(0));return r=Math.max(r,0),r=Math.min(r,255),this._init({r:+n[1],g:+n[2],b:+n[3],a:r}),!0}return!1},e.prototype._tryInitFromRgb=function(t){var n=e.matchRgb(t);return null!=n&&4===n.length&&(this._init({r:+n[1],g:+n[2],b:+n[3],a:255}),!0)},e.prototype._tryInitFromHex=function(t){t=t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(t,e,n,r){return e+e+n+n+r+r}));var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return null!=e&&4===e.length&&(this._init({r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16),a:255}),!0)},Object.defineProperty(e.prototype,"type",{get:function(){return"RgbColor"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"r",{get:function(){return this._r},set:function(t){this._r=t,this._updatePreview()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this._g},set:function(t){this._g=t,this._updatePreview()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this._b},set:function(t){this._b=t,this._updatePreview()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this._a},set:function(t){this._a=t,this._updatePreview()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.a},enumerable:!0,configurable:!0}),e.matchRgba=function(t){return e._rgba.lastIndex=0,e._rgba.exec(t)},e.matchRgb=function(t){return e._rgb.lastIndex=0,e._rgb.exec(t)},e.prototype.getData=function(){var e=t.prototype.getData.call(this);return e.r=this.r,e.g=this.g,e.b=this.b,e.a=this.a,e},e.prototype.clone=function(){return new e(this)},e.prototype.toString=function(){return this._getPreview()},e.prototype.equals=function(n){return n instanceof e&&t.prototype.equals.call(this,n)},e.prototype._getPreview=function(){if(255===this.a)return"rgb("+this.r+","+this.g+","+this.b+")";var t=(this.a/255).toFixed(7);return"rgba("+this.r+","+this.g+","+this.b+","+t+")"},e.prototype._init=function(e){t.prototype._init.call(this,e),e.a=null!=e.a?e.a:255,this._validateNumber(e.r),this._validateNumber(e.g),this._validateNumber(e.b),this._validateNumber(e.a),this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._updatePreview()},e.prototype._updatePreview=function(){this.preview=this._getPreview()},e._rgba=/^\s*rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\,\s*(\d{1,}(\.\d{1,})?)\s*\)\s*;{0,1}\s*$/g,e._rgb=/^\s*rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)\s*;{0,1}\s*$/g,e}(zc),Hc=function(){function t(){}return t.isValidRgbColor=function(t){return!Bc(t)&&(null!=Uc.matchRgb(t)||null!=Uc.matchRgba(t))},t.convertPercentToByte=function(t){return Sc(0,parseInt((255*parseFloat(t)/100).toFixed(0)),255)},t.convertByteToPercent=function(t){return(t/255*100).toFixed(0)+"%"},t}(),Wc=function(){function t(t,e,n){this._sourceString=t,this._regexArray=e,this._maxValue=n}return t.prototype.validate=function(){var t=function(t,e){return"ComponentName - "+t+", Value - "+e+"; "},e="";this._validate(this._regexArray[1])||(e=e.concat(t("C",this._regexArray[1]))),this._validate(this._regexArray[2])||(e=e.concat(t("M",this._regexArray[2]))),this._validate(this._regexArray[3])||(e=e.concat(t("Y",this._regexArray[3]))),this._validate(this._regexArray[4])||(e=e.concat(t("K",this._regexArray[4]))),null==this._regexArray[5]||this._validate(this._regexArray[5])||(e=e.concat(t("A",this._regexArray[5]))),e.length>0&&(e=e.substring(0,e.length-2),console.warn("Invalid value of CMYK components. SourceString: "+this._sourceString+"; InvalidComponents: "+e+"."))},t.prototype._validate=function(t){var e=parseFloat(t);return e>=0&&e<=this._maxValue},t}(),Gc=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$c=function(t){function e(e){var n=t.call(this,e)||this;if(n.c=255,n.m=255,n.y=255,n.k=255,n.a=255,null==e)return n;var r="Incorrect CmykColor format: "+JSON.stringify(e);if("string"==typeof e)n._tryInitFromPercentCmyk(e)||n._tryInitFromRelativeCmyk(e)||n._tryInitFromDeviceCmyk(e)?n._previewFromServer=Hc.isValidRgbColor(n.preview):console.warn(r);else try{n._init(e)}catch(o){console.warn(r)}return n}return Gc(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return"CmykColor"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.a},enumerable:!0,configurable:!0}),e.prototype._tryInitFromDeviceCmyk=function(t){var e=/^\s*device-cmyk\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\,\s*(\d{1,3})\s*(\,\s*(\d{1,}(\.\d{1,})?))?\s*(\,\s*(.*)\s*)?\)\s*;{0,1}\s*$/g.exec(t);if(null!=e&&10===e.length){var n={c:+e[1],m:+e[2],y:+e[3],k:+e[4],preview:e[9]};return null!=e[6]&&(n.a=this._convertRelativeToByte(e[6])),this._init(n),!0}return!1},e.prototype._tryInitFromPercentCmyk=function(t){var e=/^\s*cmyk\(\s*(\d{1,3}(?:\.\d{1,})?)%\s*,\s*(\d{1,3}(?:\.\d{1,})?)%\s*,\s*(\d{1,3}(?:\.\d{1,})?)%\s*,\s*(\d{1,3}(?:\.\d{1,})?)%\s*(?:\,\s*(\d{1,3}(?:\.\d{1,})?)%)?\s*(?:\,\s*(.*)\s*)?\);{0,1}\s*$/g.exec(t);if(null!=e&&7===e.length){new Wc(t,e,100).validate();var n={c:Hc.convertPercentToByte(e[1]),m:Hc.convertPercentToByte(e[2]),y:Hc.convertPercentToByte(e[3]),k:Hc.convertPercentToByte(e[4]),preview:e[6]};return null!=e[5]&&(n.a=Hc.convertPercentToByte(e[5])),this._init(n),!0}return!1},e.prototype._tryInitFromRelativeCmyk=function(t){var e=/^\s*cmyk\(\s*(\d{1,3}(?:\.\d{1,})?)\s*,\s*(\d{1,3}(?:\.\d{1,})?)\s*,\s*(\d{1,3}(?:\.\d{1,})?)\s*,\s*(\d{1,3}(?:\.\d{1,})?)\s*(?:\,\s*(\d{1,3}(?:\.\d{1,})?))?\s*(?:\,\s*(.*)\s*)?\);{0,1}\s*$/g.exec(t);if(null!=e&&7===e.length){new Wc(t,e,1).validate();var n={c:this._convertRelativeToByte(e[1]),m:this._convertRelativeToByte(e[2]),y:this._convertRelativeToByte(e[3]),k:this._convertRelativeToByte(e[4]),preview:e[6]};return null!=e[5]&&(n.a=this._convertAlpha(e[5])),this._init(n),!0}return!1},e.prototype._convertRelativeToByte=function(t){return Sc(0,parseInt((255*parseFloat(t)).toFixed(0)),255)},e.prototype._convertAlpha=function(t){return Sc(parseInt((255*parseFloat(t)).toFixed(0)),0,255)},e.prototype.clone=function(){return new e(this)},e.prototype.getData=function(){var e=t.prototype.getData.call(this);return e.c=this.c,e.m=this.m,e.y=this.y,e.k=this.k,e.a=this.a,e},e.prototype.equals=function(n,r){return void 0===r&&(r=!1),n instanceof e&&t.prototype.equals.call(this,n,r)&&n instanceof e&&this.c===n.c&&this.m===n.m&&this.y===n.y&&this.k===n.k&&this.a===n.a},e.prototype.toString=function(){var t="cmyk("+this._toRelative(this.c)+","+this._toRelative(this.m)+","+this._toRelative(this.y)+","+this._toRelative(this.k)+","+this._toRelative(this.a);return null!=this.preview&&(t+=","+this.preview),t+")"},e.prototype._toRelative=function(t){return(t/255).toFixed(7)},e.prototype._getPreview=function(){return this.preview},e.prototype._init=function(e){t.prototype._init.call(this,e),e.a=null!=e.a?e.a:255,this._validateNumber(e.c),this._validateNumber(e.m),this._validateNumber(e.y),this._validateNumber(e.k),this._validateNumber(e.a),this.c=e.c,this.m=e.m,this.y=e.y,this.k=e.k,this.a=e.a},e}(zc),Yc=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xc=function(t){function e(e){var n=t.call(this,e)||this;if(n.l=0,n.a=255,null==e)return n;try{n._init(e)}catch(r){console.warn("Incorrect GrayscaleColor format: "+JSON.stringify(e))}return n}return Yc(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return"GrayscaleColor"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.a},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e(this)},e.prototype.equals=function(n){return n instanceof e&&t.prototype.equals.call(this,n)&&n instanceof e&&this.l===n.l&&this.a===n.a},e.prototype.toString=function(){return this._getPreview()},e.prototype.getData=function(){var e=t.prototype.getData.call(this);return e.l=this.l,e.a=this.a,e},e.prototype._getPreview=function(){if(255===this.a)return"rgb("+this.l+","+this.l+","+this.l+")";var t=(this.a/255).toFixed(7);return"rgba("+this.l+","+this.l+","+this.l+","+t+")"},e.prototype._init=function(e){t.prototype._init.call(this,e),e.a=null!=e.a?e.a:255,this._validateNumber(e.l),this._validateNumber(e.a),this.l=e.l,this.a=e.a,null==this.preview&&(this.preview=this._getPreview())},e}(zc),Zc=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jc=function(t){function e(e){var n=t.call(this,e)||this;if(n.l=0,n.a=-128,n.b=-128,n.alpha=0,null==e)return n;var r="Incorrect LabColor format: "+JSON.stringify(e);if("string"==typeof e)n._tryInitFromString(e)?n._previewFromServer=Hc.isValidRgbColor(n.preview):console.warn(r);else try{n._init(e)}catch(o){console.warn(r)}return n}return Zc(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return"LabColor"},enumerable:!0,configurable:!0}),e.prototype._tryInitFromString=function(t){e._lab.lastIndex=0;var n=e._lab.exec(t);return null!=n&&8===n.length&&(this._init({l:+n[1],a:+n[2],b:+n[3],alpha:null!=n[5]?Hc.convertPercentToByte(n[5]):255,preview:null!=n[7]?n[7]:null}),!0)},e.prototype.clone=function(){return new e(this)},e.prototype.equals=function(n){return n instanceof e&&t.prototype.equals.call(this,n)&&n instanceof e&&this.l===n.l&&this.a===n.a&&this.b===n.b&&this.alpha===n.alpha},e.prototype.toString=function(){var t="lab("+this.l+","+this.a+","+this.b+","+Hc.convertByteToPercent(this.alpha);return null!=this.preview&&(t+=","+this.preview),t+")"},e.prototype.getData=function(){var e=t.prototype.getData.call(this);return e.l=this.l,e.a=this.a,e.b=this.b,e.alpha=this.alpha,e},e.prototype._getPreview=function(){return this.preview},e.prototype._init=function(e){t.prototype._init.call(this,e),e.alpha=null!=e.alpha?e.alpha:255,this._validateNumber(e.l),this._validateNumber(e.a,-128,127),this._validateNumber(e.b,-128,127),this._validateNumber(e.alpha),this.l=e.l,this.a=e.a,this.b=e.b,this.alpha=e.alpha},e._lab=/^\s*lab\(\s*(\d{1,3})\s*,\s*(-*\d{1,3})\s*,\s*(-*\d{1,3})\s*(,\s*(\d{1,3})%)?\s*(\,\s*(.*)\s*)?\)\s*;{0,1}\s*$/g,e}(zc),Kc=function(){function t(){}return t.registerColor=function(e,n,r){e&&(t._createFunctionByType[e]=r),n&&(t._createFunctionByName[n]=r)},Object.defineProperty(t,"rgbColorProfileId",{set:function(e){t._rgbColorProfileId=e},enumerable:!0,configurable:!0}),t._updateRgbColor=function(e){return Cu.isEmpty(null==e?void 0:e.profileId)&&(e.profileId=t._rgbColorProfileId),e},t.createColor=function(e,n,r){void 0===n&&(n=!1),void 0===r&&(r=!1);try{return e instanceof zc?e:"string"==typeof e?0===e.indexOf("device-cmyk")||0===e.indexOf("cmyk")?new $c(e):0===e.indexOf("lab")?new Jc(e):0===e.indexOf("spot")?t._createColorByName("spot",e):r?t._updateRgbColor(new Uc(e)):new Uc(e):t._fromData(e,r)}catch(o){if(!1!==n)throw o;return console.warn("Unable to create color from value "+JSON.stringify(e)+". Error: "+o),new Uc("rgba(0,0,0,1)")}},t._createColorByName=function(e,n){if(!t._createFunctionByName[e])throw"Color with name '"+e+"' was not registered in ColorFactory";return new(0,t._createFunctionByName[e])(n)},t._createColorByType=function(e,n){if(!t._createFunctionByType[e])throw"Color with type name '"+e+"' was not registered in ColorFactory";return new(0,t._createFunctionByType[e])(n)},t._fromData=function(e,n){if(void 0===n&&(n=!1),null==e)throw"Value cannot be null";var r=e.type;if("RgbColor"===r)return n?t._updateRgbColor(new Uc(e)):new Uc(e);if("CmykColor"===r)return new $c(e);if("GrayscaleColor"===r)return new Xc(e);if("LabColor"===r)return new Jc(e);if("SpotColor"===r)return t._createColorByType("SpotColor",e);throw"Unsupported color type "+r},t._createFunctionByType={},t._createFunctionByName={},t}(),Qc=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),th=function(t){function e(e){var n=t.call(this,e)||this;if(null==e)return n;var r="Incorrect SpotColor format: "+JSON.stringify(e);if("string"==typeof e)n._tryInitFromString(e)?n._previewFromServer=Hc.isValidRgbColor(n.preview):console.warn(r);else try{n._init(e)}catch(o){console.warn(r)}return n}return Qc(e,t),Object.defineProperty(e.prototype,"type",{get:function(){return"SpotColor"},enumerable:!0,configurable:!0}),e.prototype._tryInitFromString=function(t){e._spot.lastIndex=0;var n=e._spot.exec(t);return null!=n&&10===n.length&&(this._init({inkName:n[1].replace(/'/g,"").replace(/\"/g,""),inkColor:Kc.createColor(n[2]),inkSolidity:null!=n[4]?+n[4]:1,tint:null!=n[7]?Hc.convertPercentToByte(n[7]):255,preview:null!=n[9]?n[9]:null}),!0)},e.prototype.toString=function(){var t=this.inkColor.clone();return t.preview=null,"spot('"+this.inkName+"',"+t.toString()+","+this.inkSolidity+","+Hc.convertByteToPercent(this.tint)+","+this.preview+")"},e.prototype.clone=function(){return new e(this)},e.prototype.equals=function(n){return n instanceof e&&t.prototype.equals.call(this,n)&&n instanceof e&&this.inkName===n.inkName&&this.inkColor.equals(n.inkColor)&&this.inkSolidity===n.inkSolidity&&this.alpha===n.alpha&&this.tint===n.tint},e.prototype.getData=function(){var e=t.prototype.getData.call(this);return e.inkName=this.inkName,e.inkColor=this.inkColor.getData(),e.inkSolidity=this.inkSolidity,e.alpha=this.alpha,e.tint=this.tint,e},e.prototype._getPreview=function(){return this.preview},e.prototype._init=function(e){t.prototype._init.call(this,e),e.alpha=null!=e.alpha?e.alpha:255,e.tint=null!=e.tint?e.tint:255;var n=Kc.createColor(e.inkColor,!0);this._validateString(e.inkName),this._validateNumber(e.inkSolidity,0,1),this._validateNumber(e.alpha),this._validateNumber(e.tint),this.inkName=e.inkName,this.inkColor=n,this.inkSolidity=e.inkSolidity,this.alpha=e.alpha,this.tint=e.tint},e._spot=/^\s*spot\(\s*([^()]*)\s*,\s*(.{3,4}\([^()]*\))\s*(,\s*(\d{1}(\.\d{1,})?))?\s*(,\s*(\d{1,3})%)?\s*(,\s*(.*)\s*)?\)\s*;{0,1}\s*$/g,e}(zc);function eh(t,e){return t/e*72}Kc.registerColor("SpotColor","spot",th),function(t){t[t.Point=0]="Point",t[t.Percent=1]="Percent",t[t.Pixel=2]="Pixel"}(Vc||(Vc={}));var nh=function(){function t(t,e){this._rectangle=t,this._dpi=e}return t.prototype.convert=function(t){if(-1===t.indexOf("/"))return this._normalize(this._combineRadiuses(this._getRadiuses(t,!0),this._getRadiuses(t,!1)));var e=t.split("/");return this._normalize(this._combineRadiuses(this._getRadiuses(e[0].trim(),!0),this._getRadiuses(e[1].trim(),!1)))},t.prototype._normalize=function(t){if(null==t)return t;var e=t,n=(e[0].width+e[1].width)/this._rectangle.width,r=(e[2].width+e[3].width)/this._rectangle.width,o=(e[0].height+e[3].height)/this._rectangle.height,i=(e[1].height+e[2].height)/this._rectangle.height;return n>1&&(e[0].width=e[0].width/n,e[1].width=e[1].width/n),r>1&&(e[2].width=e[2].width/r,e[3].width=e[3].width/r),i>1&&(e[1].height=e[1].height/i,e[2].height=e[2].height/i),o>1&&(e[3].height=e[3].height/o,e[0].height=e[0].height/o),t},t.prototype._combineRadiuses=function(t,e){return null==t||4!==t.length||null==e||4!==e.length?null:[new Ic(t[0],e[0]),new Ic(t[1],e[1]),new Ic(t[2],e[2]),new Ic(t[3],e[3])]},t.prototype._getRadiuses=function(t,e){if(null==t)return null;var n=t.split(" ").filter((function(t){return null!=t&&t.length>0}));if(n.length<1)return null;if(n.length>4)return null;for(var r=[],o=0;o<n.length;o++){var i=this._tryParseNumberPart(n[o]);if(null==i)return null;r.push(this._toPoints(i,e))}switch(r.length){case 1:return[r[0],r[0],r[0],r[0]];case 2:return[r[0],r[1],r[0],r[1]];case 3:return[r[0],r[1],r[2],r[1]];default:return r}},t.prototype._tryParseNumberPart=function(t){if(t.endsWith("%")){var e=parseFloat(t);return NaN!==e?{value:e,measureType:Vc.Percent}:null}if(t.toLowerCase().endsWith("px")){var n=parseFloat(t);return NaN!==n?{value:n,measureType:Vc.Pixel}:null}var r=parseFloat(t);return isNaN(r)?null:{value:r,measureType:Vc.Point}},t.prototype._toPoints=function(t,e){switch(t.measureType){case Vc.Percent:return(e?this._rectangle.width:this._rectangle.height)*t.value/100;case Vc.Pixel:return eh(t.value,this._dpi);default:return t.value}},t}(),rh=new(function(){function t(){this.data={},this._typeDictionary={}}return t.prototype.getPropertyMetadata=function(t,e){var n=t.type;if(null==n)return null;if(null==this._typeDictionary[n]){this._typeDictionary[n]=[];for(var r=t;null!=r.constructor.type;)this._typeDictionary[n].push(r.constructor.type),r=Object.getPrototypeOf(r)}for(var o=0;o<this._typeDictionary[n].length;o++){var i=this._typeDictionary[n][o];if(null!=this.data[i]){var s=this.data[i][e];if(null!=s)return s}}return null},t}());function oh(t){return function(e,n){var r=e.constructor.type;null==rh.data[r]&&(rh.data[r]={});var o=rh.data[r];null==o[n]&&(o[n]={type:null!=t.enumObject?"enum":typeof e[n],displayName:null!=t&&null!=t.displayName?t.displayName:n,propertyFactory:t.factory,values:null!=t.enumObject?Object.keys(t.enumObject).map((function(e){return t.enumObject[e]})).filter((function(t){return"string"==typeof t})):null,ignore:null==t.ignore||t.ignore})}}function ih(){return function(t,e){var n="_"+e;Object.defineProperty(t,e,{get:function(){return this[n]},set:function(t){var r,o=typeof t;if(null!=t&&"boolean"!==o&&"number"!==o&&"string"!==o&&("object"!==o||"function"!=typeof t.equals))throw new mu("PropertyChanged decorator works only for simple types or objects with equals method");Ac(this[n],t)||(this[n]=t,(null!==(r=this._propertyChanged)&&void 0!==r?r:this.propertyChanged).notify(this,e))},configurable:!0,enumerable:!0})}}var sh,ah=function(){function t(t,e){void 0===e&&(e=""),this._name="",this._propertyChanged=new fu,this.id=null!=t?t:(new wu).toString(),this.name=e,null==this._tags&&(this._tags={})}return Object.defineProperty(t.prototype,"version",{get:function(){return"6.5.34"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name!==t&&(this._name=t,this._propertyChanged.notify(this,"name"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tags",{get:function(){return this._tags},set:function(t){if(null==t)throw new mu("value is null!");this._tags=t},enumerable:!0,configurable:!0}),t.prototype._copy=function(t,e,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!1),e.name=t.name,n?e.generateNewIds():e.id=t.id,null!=t.tags)for(var o in e.tags={},t.tags)e.tags[o]=Cu.clone(t.tags[o])},t.prototype.getSimplifiedObject=function(t){var e=function(t,e){null==e?e=[]:"string"==typeof e&&(e=[e]);var n=[];for(var r in t)n.push(r);return n.filter((function(n){var r,o;try{for(var i=Rc(["_","$$"]),s=i.next();!s.done;s=i.next())if(n.startsWith(s.value))return!1}catch(a){r={error:a}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return!e.some((function(t){return t===n}))&&"function"!=typeof t[n]})).reduce((function(e,n){return e[n]=t[n],e}),{})}(this,t);return e.tags=this.tags,e.id=this.id.toString(),e},t.prototype.generateNewIds=function(){this._generateNewId()},t.prototype._generateNewId=function(){this.id=(new wu).toString()},t.prototype.toString=function(){return this.name},t.prototype.addPropertyChanged=function(t){this._propertyChanged.add(t)},t.prototype.removePropertyChanged=function(t){this._propertyChanged.remove(t)},t.prototype.equals=function(t){return this.name===t.name&&this.version===t.version},t}(),lh=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uh=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return lh(e,t),Object.defineProperty(e.prototype,"parentContainer",{get:function(){return this._parentContainer},set:function(t){this._parentContainer=t,this._onContainerChanged()},enumerable:!0,configurable:!0}),e.prototype._onContainerChanged=function(){},e.prototype._copy=function(e,n,r,o){t.prototype._copy.call(this,e,n,r),o&&(n.parentContainer=e.parentContainer)},e.prototype.clone=function(t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.type!==e.type)throw new yu(".clone() method must be overridden in "+this.type+" class");var r=new e;return this._copy(this,r,t,n),r},e.prototype.copyTo=function(t){this._copy(this,t,!0,!0)},e.prototype.update=function(t){this._copy(t,this,!0,!1)},e.prototype.getSimplifiedObject=function(e){Cu.isArray(e)||Cu.isString(e)||(e=[]);var n=t.prototype.getSimplifiedObject.call(this,["parentContainer"].concat(e));return n.$type=this.type,n},e.type="base",e}(ah),ch=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hh=(function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n}ch(e,t),e.prototype._copy=function(e,n,r,o){return t.prototype._copy.call(this,e,n,r,o),n.sourceDpi=e.sourceDpi,n.smartObjectDpi=e.smartObjectDpi,n.smartObjectRectangle=e.smartObjectRectangle,n.smartObjectSize=e.smartObjectSize,n.smartObjectStorageId=e.smartObjectStorageId,null!=e.warpControlPoints&&(n.warpControlPoints=e.warpControlPoints.map((function(t){return t}))),null!=e.projectiveTransform&&(n.projectiveTransform=e.projectiveTransform.map((function(t){return t}))),null!=e.vectorMask&&(n.vectorMask=e.vectorMask.map((function(t){return t}))),n},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this.sourceDpi,e.sourceDpi)&&Ac(this.smartObjectDpi,e.smartObjectDpi)&&Cu.isEqual(this.smartObjectRectangle,e.smartObjectRectangle)&&Cu.isEqual(this.smartObjectSize,e.smartObjectSize)&&Ac(this.smartObjectStorageId,e.smartObjectStorageId)&&Nc(this.warpControlPoints,e.warpControlPoints)&&Nc(this.projectiveTransform,e.projectiveTransform)&&Nc(this.vectorMask,e.vectorMask)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="SmartItem"}(uh),n("nuWL")),ph=n.n(hh);n("iGQJ"),function(t){t.Move="Move",t.Add="Add",t.Remove="Remove"}(sh||(sh={}));var fh=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},dh=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},gh=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(dh(arguments[e]));return t},yh=null;!function(t){yh=ph.a.from;try{t.from=function(t){return t instanceof _h?t:yh(t)}}catch(e){console.error("unable to patch Enumerable",e)}}(ph.a);var mh,_h=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._collection=[],this.constructor=function(t){throw new yu},this._itemAddedEvent=new hu,this._itemRemovedEvent=new hu,this._itemMovedEvent=new hu,this._enumerable=bh(this._collection),0!==t.length&&this.setRange(t)}return t.prototype.setRange=function(t){this.clear(),this.addRange(t)},t.prototype.addRange=function(e){var n;e instanceof t&&(e=e._collection),"getEnumerator"in(n=e)&&"toArray"in n&&(e=e.toArray());for(var r=0;r<e.length;r++)this.add(e[r])},t.prototype.add=function(){for(var t,e,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{for(var o=fh(n),i=o.next();!i.done;i=o.next()){var s=i.value;this.insertAt(this._collection.length,s)}}catch(a){t={error:a}}finally{try{i&&!i.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}},t.prototype.push=function(t){return this.add(t),this.length},t.prototype.insertAt=function(t,e){var n,r,o;Array.isArray(e)||(e=[e]);try{for(var i=fh(e),s=i.next();!s.done;s=i.next())this._checkIfItemExists(l=s.value)}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}if(t<0||t>this._collection.length)throw new bu;(o=this._collection).splice.apply(o,gh([t,0],e));for(var a=0;a<e.length;a++){var l;this._onItemAdded(this._collection.indexOf(l=e[a]),l)}},t.prototype.remove=function(t){if(!this.contains(t))throw new mu("The item was not found in this collection.");return this.removeAt(this.indexOf(t))},t.prototype.removeAt=function(t){if(t<0||t>this._collection.length-1)throw new bu;var e=this._collection[t];return this._collection.splice(t,1),this._onItemRemoved(t,e),e},t.prototype.removeRange=function(t,e){for(var n=this._collection.slice(),r=this._collection.splice(t,e-t+1),o=0;o<r.length;o++){var i=r[o];this._onItemRemoved(n.indexOf(i),i)}return r},t.prototype.move=function(t,e,n){"boolean"!=typeof n&&(n=!1);var r=this._collection[t];return r&&t>=0&&e>=0&&t!=e&&(this._collection.splice(t,1),this._collection.splice(e,0,r),n||this._onItemMoved(t,e)),r},t.prototype.clear=function(){for(var t=this.length-1;t>=0;t--)this.removeAt(t)},t.prototype.replaceAt=function(t,e){if(e<0||e>this._collection.length-1)throw new bu;this._onItemRemoved(e,this._collection[e]),this._collection[e]=t,this._onItemAdded(e,this._collection[e])},Object.defineProperty(t.prototype,"length",{get:function(){return this._collection.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return this.getItem(t)},t.prototype.set=function(t,e){throw new yu},t.prototype.getItem=function(t){return this._collection[t]},t.prototype._checkIfItemExists=function(t){if(this.contains(t))throw new mu("The item already belongs to this collection, or to another collection.")},t.prototype._onItemAdded=function(t,e){this._itemAddedEvent.notify({item:e,index:t,type:sh.Add})},t.prototype.add_itemAdded=function(t){this._itemAddedEvent.add(t)},t.prototype.remove_itemAdded=function(t){this._itemAddedEvent.remove(t)},t.prototype._onItemRemoved=function(t,e){this._itemRemovedEvent.notify({item:e,index:t,type:sh.Remove})},t.prototype.add_itemRemoved=function(t){this._itemRemovedEvent.add(t)},t.prototype.remove_itemRemoved=function(t){this._itemRemovedEvent.remove(t)},t.prototype._onItemMoved=function(t,e){this._itemMovedEvent.notify({oldIndex:t,newIndex:e,type:sh.Move})},t.prototype.add_itemMoved=function(t){this._itemMovedEvent.add(t)},t.prototype.remove_itemMoved=function(t){this._itemMovedEvent.remove(t)},t.prototype.add_collectionChanged=function(t){this.add_itemMoved(t),this.add_itemRemoved(t),this.add_itemAdded(t)},t.prototype.remove_collectionChanged=function(t){this.remove_itemMoved(t),this.remove_itemRemoved(t),this.remove_itemAdded(t)},t.prototype[Symbol.iterator]=function(){return this._collection.values()},t.prototype.toArray=function(){return this._collection.slice()},t.prototype.getEnumerator=function(){return this._enumerable.getEnumerator()},t.prototype.traverseBreadthFirst=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).traverseBreadthFirst.apply(t,gh(e))},t.prototype.traverseDepthFirst=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).traverseDepthFirst.apply(t,gh(e))},t.prototype.flatten=function(){return this._enumerable.flatten()},t.prototype.pairwise=function(t){return this._enumerable.pairwise(t)},t.prototype.scan=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).scan.apply(t,gh(e))},t.prototype.select=function(t){return this._enumerable.select(t)},t.prototype.selectMany=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).selectMany.apply(t,gh(e))},t.prototype.where=function(t){return this._enumerable.where(t)},t.prototype.choose=function(t){return this._enumerable.choose(t)},t.prototype.ofType=function(t){return this._enumerable.ofType(t)},t.prototype.zip=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).zip.apply(t,gh(e))},t.prototype.merge=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).merge.apply(t,gh(e))},t.prototype.join=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).join.apply(t,gh(e))},t.prototype.groupJoin=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).groupJoin.apply(t,gh(e))},t.prototype.all=function(t){return this._enumerable.all(t)},t.prototype.any=function(t){return this._enumerable.any(t)},t.prototype.isEmpty=function(){return this._enumerable.isEmpty()},t.prototype.concat=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).concat.apply(t,gh(e))},t.prototype.alternate=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).alternate.apply(t,gh(e))},t.prototype.defaultIfEmpty=function(t){return this._enumerable.defaultIfEmpty(t)},t.prototype.distinct=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).distinct.apply(t,gh(e))},t.prototype.distinctUntilChanged=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).distinctUntilChanged.apply(t,gh(e))},t.prototype.except=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).except.apply(t,gh(e))},t.prototype.intersect=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).intersect.apply(t,gh(e))},t.prototype.union=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).union.apply(t,gh(e))},t.prototype.sequenceEqual=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).sequenceEqual.apply(t,gh(e))},t.prototype.orderBy=function(t){return this._enumerable.orderBy(t)},t.prototype.orderByDescending=function(t){return this._enumerable.orderByDescending(t)},t.prototype.reverse=function(){return this._enumerable.reverse()},t.prototype.shuffle=function(){return this._enumerable.shuffle()},t.prototype.weightedSample=function(t){return this._enumerable.weightedSample(t)},t.prototype.groupBy=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).groupBy.apply(t,gh(e))},t.prototype.partitionBy=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).partitionBy.apply(t,gh(e))},t.prototype.buffer=function(t){return this._enumerable.buffer(t)},t.prototype.aggregate=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).aggregate.apply(t,gh(e))},t.prototype.average=function(t){return this._enumerable.average(t)},t.prototype.count=function(t){return this._enumerable.count(t)},t.prototype.max=function(t){return this._enumerable.max(t)},t.prototype.min=function(t){return this._enumerable.min(t)},t.prototype.maxBy=function(t){return this._enumerable.maxBy(t)},t.prototype.minBy=function(t){return this._enumerable.minBy(t)},t.prototype.sum=function(t){return this._enumerable.sum(t)},t.prototype.elementAt=function(t){return this._enumerable.elementAt(t)},t.prototype.elementAtOrDefault=function(t,e){return this._enumerable.elementAtOrDefault(t,e)},t.prototype.first=function(t){return this._enumerable.first(t)},t.prototype.firstOrDefault=function(t,e){return"function"==typeof t?this._enumerable.firstOrDefault(t,e):this._enumerable.firstOrDefault(e)},t.prototype.last=function(t){return this._enumerable.last(t)},t.prototype.lastOrDefault=function(t,e){return"function"==typeof t?this._enumerable.lastOrDefault(t,e):this._enumerable.lastOrDefault(e)},t.prototype.single=function(t){return this._enumerable.single(t)},t.prototype.singleOrDefault=function(t,e){return this._enumerable.singleOrDefault(t,e)},t.prototype.skip=function(t){return this._enumerable.skip(t)},t.prototype.skipWhile=function(t){return this._enumerable.skipWhile(t)},t.prototype.take=function(t){return this._enumerable.take(t)},t.prototype.takeWhile=function(t){return this._enumerable.takeWhile(t)},t.prototype.takeExceptLast=function(t){return this._enumerable.takeExceptLast(t)},t.prototype.takeFromLast=function(t){return this._enumerable.takeFromLast(t)},t.prototype.indexOf=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).indexOf.apply(t,gh(e))},t.prototype.lastIndexOf=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).lastIndexOf.apply(t,gh(e))},t.prototype.asEnumerable=function(){return this._enumerable},t.prototype.cast=function(){return this._enumerable.cast()},t.prototype.toLookup=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).toLookup.apply(t,gh(e))},t.prototype.toObject=function(t,e){return this._enumerable.toObject(t,e)},t.prototype.toDictionary=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).toDictionary.apply(t,gh(e))},t.prototype.toJSONString=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).toJSONString.apply(t,gh(e))},t.prototype.toJoinedString=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).toJoinedString.apply(t,gh(e))},t.prototype.doAction=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).doAction.apply(t,gh(e))},t.prototype.forEach=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).forEach.apply(t,gh(e))},t.prototype.write=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).write.apply(t,gh(e))},t.prototype.writeLine=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).writeLine.apply(t,gh(e))},t.prototype.force=function(){return this._enumerable.force()},t.prototype.letBind=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).letBind.apply(t,gh(e))},t.prototype.share=function(){return this._enumerable.share()},t.prototype.memoize=function(){return this._enumerable.memoize()},t.prototype.catchError=function(t){return this._enumerable.catchError(t)},t.prototype.finallyAction=function(t){return this._enumerable.finallyAction(t)},t.prototype.log=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).log.apply(t,gh(e))},t.prototype.trace=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).trace.apply(t,gh(e))},t.prototype.insert=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).insert.apply(t,gh(e))},t.prototype.contains=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._enumerable).contains.apply(t,gh(e))},t}();function bh(t){return t instanceof _h?t:yh?yh(t):ph.a.from(t)}!function(t){t[t.Normal=0]="Normal",t[t.Grayscale=1]="Grayscale",t[t.Solid=2]="Solid"}(mh||(mh={}));var vh,wh=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ch=function(t){function e(e,n){var r=t.call(this)||this;return r._items=new _h,r._visible=!0,r._locked=!1,r._region=null,r.parentComponent=null,r.renderingType=mh.Normal,r.type="Container",r._onItemAdded=function(t){t.item.parentContainer=r},r._onItemRemoved=function(t){var e=t.item;e.parentContainer==r&&(e.parentContainer=null)},r._onRegionChanged=function(t,e){"left"!==e&&"top"!==e&&"width"!==e&&"height"!==e||r._propertyChanged.notify(r,"region")},r._items=new _h,r._items.add_itemAdded(r._onItemAdded),r._items.add_itemRemoved(r._onItemRemoved),null!=e&&r.items.setRange(e),null!=n&&(r.name=n),r}return wh(e,t),Object.defineProperty(e.prototype,"region",{get:function(){return this._region},set:function(t){this._region!==t&&(null!=this._region&&this._region.removePropertyChanged(this._onRegionChanged),this._region=t,this._propertyChanged.notify(this,"region"),null!=this._region&&this._region.addPropertyChanged(this._onRegionChanged))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._visible=t,this._propertyChanged.notify(this,"visible"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locked",{get:function(){return this._locked},set:function(t){this._locked!==t&&(this._locked=t,this._propertyChanged.notify(this,"locked"))},enumerable:!0,configurable:!0}),e.prototype.getSimplifiedObject=function(){var e=t.prototype.getSimplifiedObject.call(this,["parentComponent","version"]);return e.version=this.version,e},e.prototype.generateNewIds=function(){this._generateNewId(),this._items.forEach((function(t){return t.generateNewIds()}))},e.prototype._copy=function(e,n,r){t.prototype._copy.call(this,e,n,r),n.items.addRange(e.items.toArray().map((function(t){return t.clone(r)}))),n.locked=e.locked,n.visible=e.visible,n.renderingType=e.renderingType,n.translationKey=e.translationKey,n.region=null!=e.region?e.region.clone():null},e.prototype.clone=function(t){void 0===t&&(t=!1);var n=new e;return this._copy(this,n,t),n},e}(ah),Ph=(function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.noPrint=!1,r.noShow=!1,r.size=null,r._locked=!0,r}wh(e,t),e.prototype._copy=function(e,n,r){t.prototype._copy.call(this,e,n,r),n.noPrint=e.noPrint,n.noShow=e.noShow,n.size=null!=e.size?e.size.clone():null},e.prototype.clone=function(t){void 0===t&&(t=!1);var n=new e;return this._copy(this,n,t),n}}(Ch),function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="SurfaceContainer",r._locked=!1,r}return wh(e,t),e.prototype.clone=function(t){void 0===t&&(t=!1);var n=new e;return this._copy(this,n,t),n},e}(Ch)),Oh=(function(t){function e(){var e=t.call(this)||this;return e.type="SpotColorContainer",e.renderingType=mh.Grayscale,e}wh(e,t),e.prototype._copy=function(e,n,r){t.prototype._copy.call(this,e,n,r),n.previewColor=e.previewColor},e.prototype.clone=function(t){void 0===t&&(t=!1);var n=new e;return this._copy(this,n,t),n}}(Ph),function(t){function e(){var e=t.call(this)||this;return e.type="TextureContainer",e.renderingType=mh.Solid,e}wh(e,t),Object.defineProperty(e.prototype,"previewTextureSource",{get:function(){return this._previewTextureSource},set:function(t){t!==this._previewTextureSource&&(this._previewTextureSource=t,this._propertyChanged.notify(this,"previewTextureSource"))},enumerable:!0,configurable:!0}),e.prototype._copy=function(e,n,r){return t.prototype._copy.call(this,e,n,r),n.previewTextureSource=null!=e.previewTextureSource?e.previewTextureSource.clone():null,n.previewTextureName=e.previewTextureName,n},e.prototype.clone=function(t){void 0===t&&(t=!1);var n=new e;return this._copy(this,n,t),n},e.prototype.getSimplifiedObject=function(e){Cu.isArray(e)||Cu.isString(e)||(e=[]);var n=t.prototype.getSimplifiedObject.call(this);return n.previewTextureSource={id:this.previewTextureSource.id,width:this.previewTextureSource.width,height:this.previewTextureSource.height,isVector:this.previewTextureSource.isVector,pageIndex:this.previewTextureSource.pageIndex,url:this.previewTextureSource.url,actualSize:this.previewTextureSource.actualSize,saveAspectRatio:this.previewTextureSource.saveAspectRatio,origin:this.previewTextureSource.origin},n}}(Ph),function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),xh=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Sh=function(){function t(e,n,r){void 0===r&&(r=!0),this._edgeConstraint=null,this._cornerArbitraryConstraint=null,this.propertyChanged=new hu,this.type=t.type,this.edge=n,this._setCornerValues(e,n,r)}return Object.defineProperty(t.prototype,"edgeConstraint",{set:function(t){var e=this.edge;this._edgeConstraint=t,this.edge!==e&&this.propertyChanged.notify()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"edge",{get:function(){return null!=this._edgeConstraint?this._edgeConstraint:this._edge},set:function(t){this._edge!==t&&(this._edge=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"corner",{get:function(){return this._corner},set:function(t){if(null==t)throw new _u("corner cannot be null");this._corner!==t&&(this._corner=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),t.prototype._setCornerValues=function(e,n,r){this.corner=e&&n?r?[t.arbitrary,t.proportional]:[t.proportional,t.arbitrary]:e?[t.proportional]:n?[t.arbitrary]:[]},t.prototype.getCornerProportional=function(){return this.corner.includes(t.proportional)},t.prototype.getCornerArbitrary=function(){return null!=this._cornerArbitraryConstraint?this._cornerArbitraryConstraint:this.corner.includes(t.arbitrary)},t.prototype.setCornerProportional=function(t){var e=this.getCornerArbitrary();this._setCornerValues(t,e,!0)},t.prototype.setCornerArbitrary=function(t){var e=this.getCornerProportional();this._setCornerValues(e,t,!0)},t.prototype.setCornerArbitraryConstraint=function(t){var e=this.getCornerArbitrary();this._cornerArbitraryConstraint=t,this.getCornerArbitrary()!==e&&this.propertyChanged.notify()},t.prototype.clone=function(){var e=new t(!0,!0);return e.edge=this.edge,e.corner=this.corner.slice(),e},t.prototype.equals=function(t){return this.edge===t.edge&&Cu.isEqual(this.corner,t.corner)},Object.defineProperty(t.prototype,"data",{get:function(){return{Edge:this.edge,Corner:this.corner}},enumerable:!0,configurable:!0}),t._fromData=function(e){if(null==e)return new t(!1,!1);var n=new t(!0,!0);return n.corner=e.Corner,n.edge=e.Edge,n},t.prototype.getSimplifiedObject=function(){var t={};return t.edge=this.edge,t.corner=this.corner,t},t.arbitrary="Arbitrary",t.proportional="Proportional",t.type="ResizeGripsPermissions",Oh([oh({ignore:!0}),xh("design:type",Boolean),xh("design:paramtypes",[Boolean])],t.prototype,"edgeConstraint",null),t}(),Eh=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},kh=function(){function t(e){var n=this;void 0===e&&(e=!0),this._allowRotateConstraint=null,this.propertyChanged=new hu,this._firePropertyChanged=function(){return n.propertyChanged.notify()},this.type=t.type,this.allowDelete=e,this.allowMoveHorizontal=e,this.allowMoveVertical=e,this.allowRotate=e,this.allowDragAndDrop=e,this.resizeGrips=new Sh(e,e)}return Object.defineProperty(t.prototype,"allowDelete",{get:function(){return this._allowDelete},set:function(t){this._allowDelete!==t&&(this._allowDelete=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowMoveHorizontal",{get:function(){return this._allowMoveHorizontal},set:function(t){this._allowMoveHorizontal!==t&&(this._allowMoveHorizontal=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowMoveVertical",{get:function(){return this._allowMoveVertical},set:function(t){this._allowMoveVertical!==t&&(this._allowMoveVertical=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowMove",{get:function(){return this.allowMoveVertical||this.allowMoveHorizontal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRotateConstraint",{set:function(t){var e=this.allowRotate;this._allowRotateConstraint=t,this.allowRotate!==e&&this.propertyChanged.notify()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRotate",{get:function(){return null!=this._allowRotateConstraint?this._allowRotateConstraint:this._allowRotate},set:function(t){this._allowRotate!==t&&(this._allowRotate=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowDragAndDrop",{get:function(){return this._allowDragAndDrop},set:function(t){this._allowDragAndDrop!==t&&(this._allowDragAndDrop=t,this.propertyChanged.fire())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resizeGrips",{get:function(){return this._resizeGrips},set:function(t){null!=this.resizeGrips&&null!=this.resizeGrips.propertyChanged&&this.resizeGrips.propertyChanged.remove(this._firePropertyChanged),this._resizeGrips=t,null!=this.resizeGrips.propertyChanged&&this.resizeGrips.propertyChanged.add(this._firePropertyChanged),this.propertyChanged.notify()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.resizeGrips.edge||this.resizeGrips.corner.length>0},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t;return e.allowDelete=this.allowDelete,e.allowDragAndDrop=this.allowDragAndDrop,e.allowMoveHorizontal=this.allowMoveHorizontal,e.allowMoveVertical=this.allowMoveVertical,e.allowRotate=this.allowRotate,e.allowRotateConstraint=this.allowRotateConstraint,e.resizeGrips=this.resizeGrips.clone(),e},t.prototype.equals=function(t){return this.allowDelete===t.allowDelete&&this.allowDragAndDrop===t.allowDragAndDrop&&this.allowMoveHorizontal===t.allowMoveHorizontal&&this.allowMoveVertical===t.allowMoveVertical&&this.allowRotate===t.allowRotate&&this.allowRotateConstraint===t.allowRotateConstraint&&Ac(this.resizeGrips,t.resizeGrips)},t.prototype.getSimplifiedObject=function(){var t={};return t.allowDelete=this.allowDelete,t.resizeGrips=this.resizeGrips.getSimplifiedObject(),t.allowMoveHorizontal=this.allowMoveHorizontal,t.allowMoveVertical=this.allowMoveVertical,t.allowRotate=this.allowRotate,t.allowDragAndDrop=this.allowDragAndDrop,t},t.CreateFromRaw=function(e){var n=Cu.extend(new Sh(!0,!0),e.resizeGrips),r=Cu.extend(new t,e);return r.resizeGrips=n,r},t.type="ManipulationPermissions",function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);i>3&&s&&Object.defineProperty(e,n,s)}([oh({ignore:!0}),Eh("design:type",Boolean),Eh("design:paramtypes",[Boolean])],t.prototype,"allowRotateConstraint",null),t}(),Th=function(){function t(){this._noPrint=!1,this._noShow=!1,this.propertyChanged=new hu}return Object.defineProperty(t.prototype,"noPrint",{get:function(){return this._noPrint},set:function(t){this._noPrint!==t&&(this._noPrint=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noShow",{get:function(){return this._noShow},set:function(t){this._noShow!==t&&(this._noShow=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t;return e.noShow=this.noShow,e.noPrint=this.noPrint,e},t.prototype.equals=function(t){return this.noShow===t.noShow&&this.noPrint===t.noPrint},t.prototype.getSimplifiedObject=function(){var t={};return t.noPrint=this.noPrint,t.noShow=this.noShow,t},t}(),jh=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},Ih=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Rh=function(){function t(e){void 0===e&&(e=!0),this._showDeleteButton=!0,this._showEditButton=!0,this._showSelectButton=!0,this._showEditButtonConstraint=null,this._showHandleButton=!0,this.propertyChanged=new hu,this.showSelectButtonConstraint=null,this.type=t.type,this.showDeleteButton=e,this.showEditButton=e,this.showSelectButton=e,this.showHandleButton=e}return Object.defineProperty(t.prototype,"showDeleteButton",{get:function(){return this._showDeleteButton},set:function(t){this._showDeleteButton!==t&&(this._showDeleteButton=t,this.propertyChanged.fire())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showEditButton",{get:function(){return null!=this.showEditButtonConstraint?this.showEditButtonConstraint:this._showEditButton},set:function(t){this._showEditButton!==t&&(this._showEditButton=t,this.propertyChanged.fire())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showEditButtonConstraint",{get:function(){return this._showEditButtonConstraint},set:function(t){this.showEditButtonConstraint!==t&&(this._showEditButtonConstraint=t,this.propertyChanged.fire())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showSelectButton",{get:function(){return null!=this.showSelectButtonConstraint?this.showSelectButtonConstraint:this._showSelectButton},set:function(t){this._showSelectButton!==t&&(this._showSelectButton=t,this.propertyChanged.fire())},enumerable:!0,configurable:!0}),t.prototype.getSimplifiedObject=function(){var t={};return t.showDeleteButton=this.showDeleteButton,t.showEditButton=this.showEditButton,t.showSelectButton=this.showSelectButton,t.showEditButtonConstraint=this.showEditButtonConstraint,t.showSelectButtonConstraint=this.showSelectButtonConstraint,t.showHandleButton=this.showHandleButton,t},t.prototype.clone=function(){var e=new t;return e.showDeleteButton=this._showDeleteButton,e.showEditButton=this._showEditButton,e.showEditButtonConstraint=this.showEditButtonConstraint,e.showSelectButton=this._showSelectButton,e.showSelectButtonConstraint=this.showSelectButtonConstraint,e.showHandleButton=this._showHandleButton,e},t.prototype.equals=function(t){return this.showDeleteButton==t.showDeleteButton&&this.showEditButton===t.showEditButton&&this.showEditButtonConstraint===t.showEditButtonConstraint&&this.showSelectButton===t.showSelectButton&&this.showSelectButtonConstraint===t.showSelectButtonConstraint&&this.showHandleButton===t.showHandleButton},t.type="ItemToolbarPermissions",jh([oh({ignore:!0,type:"boolean"}),Ih("design:type",Boolean)],t.prototype,"showSelectButtonConstraint",void 0),jh([oh({ignore:!0}),Ih("design:type",Boolean),Ih("design:paramtypes",[Boolean])],t.prototype,"showEditButtonConstraint",null),jh([ih(),Ih("design:type",Boolean)],t.prototype,"showHandleButton",void 0),t}(),Ah=function(){function t(t){var e=this;this._allowZOrderChange=!0,this._allowOpacityChange=!0,this._allowRemoveOnLayoutChange=!0,this._firePropertyChanged=function(){return e.propertyChanged.fire()},this.propertyChanged=new hu,null==t&&(t=!0),this.allowZOrderChange=t,this.allowOpacityChange=t,this.allowRemoveOnLayoutChange=t,this.itemToolbarPermissions=new Rh(t)}return Object.defineProperty(t.prototype,"allowZOrderChange",{get:function(){return this._allowZOrderChange},set:function(t){this._allowZOrderChange!==t&&(this._allowZOrderChange=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowOpacityChange",{get:function(){return this._allowOpacityChange},set:function(t){this._allowOpacityChange!==t&&(this._allowOpacityChange=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveOnLayoutChange",{get:function(){return this._allowRemoveOnLayoutChange},set:function(t){this._allowRemoveOnLayoutChange!==t&&(this._allowRemoveOnLayoutChange=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemToolbarPermissions",{get:function(){return this._itemToolbarPermissions},set:function(t){Ac(this,t)||(null!=this.itemToolbarPermissions&&null!=this.itemToolbarPermissions.propertyChanged&&this.itemToolbarPermissions.propertyChanged.remove(this._firePropertyChanged),this._itemToolbarPermissions=t,null!=this.itemToolbarPermissions.propertyChanged&&this.itemToolbarPermissions.propertyChanged.add(this._firePropertyChanged),this.propertyChanged.fire())},enumerable:!0,configurable:!0}),t.prototype.getSimplifiedObject=function(){var t={};return t.allowZOrderChange=this.allowZOrderChange,t.allowOpacityChange=this.allowOpacityChange,t.allowRemoveOnLayoutChange=this.allowRemoveOnLayoutChange,t.itemToolbarPermissions=this.itemToolbarPermissions.getSimplifiedObject(),t},t.prototype.clone=function(){var e=new t;return e.allowZOrderChange=this.allowZOrderChange,e.allowOpacityChange=this.allowOpacityChange,e.allowRemoveOnLayoutChange=this.allowRemoveOnLayoutChange,e.itemToolbarPermissions=this.itemToolbarPermissions.clone(),e},t.prototype.equals=function(t){return this.allowZOrderChange===t.allowZOrderChange&&this.allowOpacityChange===t.allowOpacityChange&&this.allowRemoveOnLayoutChange===t.allowRemoveOnLayoutChange&&Ac(this.itemToolbarPermissions,t.itemToolbarPermissions)},t}(),Mh=function(){function t(){this._displayInObjectInspector=!0,this.propertyChanged=new hu}return Object.defineProperty(t.prototype,"displayInObjectInspector",{get:function(){return this._displayInObjectInspector},set:function(t){this._displayInObjectInspector!==t&&(this._displayInObjectInspector=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),t.prototype.getSimplifiedObject=function(){var t={};return t.displayInObjectInspector=this.displayInObjectInspector,t},t.prototype.clone=function(){var e=new t;return e.displayInObjectInspector=this.displayInObjectInspector,e},t.prototype.equals=function(t){return this.displayInObjectInspector===t.displayInObjectInspector},t}();!function(t){t[t.None=0]="None",t[t.Square=1]="Square",t[t.Tight=2]="Tight"}(vh||(vh={}));var Nh,Bh=function(){function t(){this.styles=[],this.clipartColors=[]}return t.fromRaw=function(e){var n=new t;return n.text=e.text,n.stroke=e.stroke,n.shadow=e.shadow,n.img=e.img,n.border=e.border,n.fill=e.fill,n.textFill=e.textFill,n.line=e.line,n.altline=e.altline,n.horizontal=e.horizontal,n.vertical=e.vertical,n.barcode=e.barcode,n.styles=null!=e.styles?e.styles.slice(0):null,n.clipartColors=null!=e.clipartColors?e.clipartColors.slice(0):null,n},t.prototype.clone=function(){var e=new t;return e.text=this.text,e.stroke=this.stroke,e.shadow=this.shadow,e.img=this.img,e.border=this.border,e.fill=this.fill,e.textFill=this.textFill,e.line=this.line,e.altline=this.altline,e.horizontal=this.horizontal,e.vertical=this.vertical,e.barcode=this.barcode,e.styles=null!=this.styles?this.styles.slice(0):null,e.clipartColors=null!=this.clipartColors?this.clipartColors.slice(0):null,e},t.prototype.equals=function(t){return this.text===t.text&&this.stroke===t.stroke&&this.shadow===t.shadow&&this.img===t.img&&this.border===t.border&&this.fill===t.fill&&this.textFill===t.textFill&&this.line===t.line&&this.altline===t.altline&&this.horizontal===t.horizontal&&this.vertical===t.vertical&&this.barcode===t.barcode&&Mc(this.styles,t.styles)&&Mc(this.clipartColors,t.clipartColors)},t}();!function(t){t.Normal="Normal",t.Multiply="Multiply",t.Screen="Screen",t.Overlay="Overlay",t.Darken="Darken",t.Lighten="Lighten",t.ColorDodge="ColorDodge",t.ColorBurn="ColorBurn",t.HardLight="HardLight",t.SoftLight="SoftLight",t.Difference="Difference",t.Exclusion="Exclusion",t.None="None"}(Nh||(Nh={}));var Lh,Fh=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dh=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},Vh=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},zh=function(t){function e(n){var r=t.call(this)||this;return r.type=e.type,null==n&&(n=!0),r._allowSafetyLines=n,r._allowRegion=n,r._allowBleedArea=n,r}return Fh(e,t),e.prototype.clone=function(t){void 0===t&&(t=null);var n=null!=t?t:new e;return n.allowSafetyLines=this.allowSafetyLines,n.allowRegion=this.allowRegion,n.allowBleedArea=this.allowBleedArea,n},e.prototype.equals=function(t){return this.type===t.type&&this.allowSafetyLines===t.allowSafetyLines&&this.allowRegion===t.allowRegion&&this.allowBleedArea===t.allowBleedArea},e.type="ViolationSettings",Dh([ih(),Vh("design:type",Boolean)],e.prototype,"allowSafetyLines",void 0),Dh([ih(),Vh("design:type",Boolean)],e.prototype,"allowRegion",void 0),Dh([ih(),Vh("design:type",Boolean)],e.prototype,"allowBleedArea",void 0),e}(ah),qh=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uh=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},Hh=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Wh=function(t){function e(){var n=t.call(this)||this;n._visible=!0,n._locked=!1,n._opacity=1,n._fromLayout=!1,n._textWrappingMode=vh.None,n._isVariable=!1,n._blendMode=Nh.Normal,n._ignorePermissionsChange=!1,n._mask=null,n._onPermissionsChanged=function(){n._ignorePermissionsChange||(n._ignorePermissionsChange=!0,n.applyPermissionsConstrain(),n._ignorePermissionsChange=!1,n._propertyChanged.notify(n,"permissions"))},n._parentGroupItem=null,n.themeBinding=new Bh,n._onTransformChanged=function(t){n._propertyChanged.notify(n,"transform")},n._onMaskChanged=function(t){n._propertyChanged.notify(n,"mask")},n._changedEvent=new pu(n),n._changingEvent=new hu,n.type=e.type;var r=new Ah;return r.allowRemoveOnLayoutChange=!1,n.itemPermissions=r,n.setManipulationPermissions(new kh),n.visualizationPermissions=new Th,n.frontendPermissions=new Mh,n._setViolationSettings(new zh,!0),n.setTransform(new jc),n}return qh(e,t),e.prototype._copy=function(e,n,r,o){t.prototype._copy.call(this,e,n,r,o),n.itemPermissions=e._itemPermissions.clone(),n.visible=e._visible,n.locked=e._locked,n.opacity=e._opacity,n.isVariable=e._isVariable,n.textWrappingMode=e._textWrappingMode,n.setManipulationPermissions(e._manipulationPermissions.clone()),n.visualizationPermissions=e._visualizationPermissions.clone(),n.frontendPermissions=e._frontendPermissions.clone(),n.violationSettings=e._violationSettings.clone(),n.transform=e._transform.clone(),n.containerName=e.containerName,n.themeBinding=e.themeBinding.clone(),n.mask=null!=e.mask?e.mask.clone():null,n.blendMode=e.blendMode},e.prototype.equals=function(e){var n=t.prototype.equals.call(this,e),r=Ac(this._itemPermissions,e._itemPermissions),o=Ac(this._visible,e._visible),i=Ac(this._locked,e._locked),s=Ac(this._opacity,e._opacity),a=Ac(this._isVariable,e._isVariable),l=Ac(this._textWrappingMode,e._textWrappingMode),u=Ac(this._manipulationPermissions,e._manipulationPermissions),c=Ac(this._visualizationPermissions,e._visualizationPermissions),h=Ac(this._frontendPermissions,e._frontendPermissions),p=Ac(this._transform,e._transform),f=Ac(this._violationSettings,e._violationSettings),d=Ac(this.containerName,e.containerName),g=Ac(this.themeBinding,e.themeBinding),y=Ac(this._mask,e._mask),m=Ac(this.blendMode,e.blendMode);return n&&r&&o&&i&&s&&a&&l&&u&&c&&h&&p&&f&&d&&g&&y&&m},Object.defineProperty(e.prototype,"manipulationPermissions",{get:function(){return this.getManipulationPermissions()},set:function(t){this.setManipulationPermissions(t)},enumerable:!0,configurable:!0}),e.prototype.getManipulationPermissions=function(){return this._manipulationPermissions},e.prototype.setManipulationPermissions=function(t){if(null==t)throw new mu("manipulationPermissions cannot be null");Ac(this._manipulationPermissions,t)||(null!=this._manipulationPermissions&&this._manipulationPermissions.propertyChanged.remove(this._onPermissionsChanged),this._manipulationPermissions=t,this.applyPermissionsConstrain(),this._manipulationPermissions.propertyChanged.add(this._onPermissionsChanged),this._propertyChanged.notify(this,"manipulationPermissions"))},Object.defineProperty(e.prototype,"visualizationPermissions",{get:function(){return this._visualizationPermissions},set:function(t){if(null==t)throw new mu("visualizationPermissions cannot be null");Ac(this._visualizationPermissions,t)||(null!=this._visualizationPermissions&&this._visualizationPermissions.propertyChanged.remove(this._onPermissionsChanged),this._visualizationPermissions=t,this.applyPermissionsConstrain(),this._visualizationPermissions.propertyChanged.add(this._onPermissionsChanged),this._propertyChanged.notify(this,"visualizationPermissions"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemPermissions",{get:function(){return this._itemPermissions},set:function(t){if(null==t)throw new mu("itemPermissions cannot be null");Ac(this._itemPermissions,t)||(null!=this._itemPermissions&&this._itemPermissions.propertyChanged.remove(this._onPermissionsChanged),this._itemPermissions=t,this.applyPermissionsConstrain(),this._itemPermissions.propertyChanged.add(this._onPermissionsChanged),this._propertyChanged.notify(this,"itemPermissions"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"frontendPermissions",{get:function(){return this._frontendPermissions},set:function(t){if(null==t)throw new mu("frontendPermissions cannot be null");Ac(this._frontendPermissions,t)||(null!=this._frontendPermissions&&this._frontendPermissions.propertyChanged.remove(this._onPermissionsChanged),this._frontendPermissions=t,this.applyPermissionsConstrain(),this._frontendPermissions.propertyChanged.add(this._onPermissionsChanged),this._propertyChanged.notify(this,"frontendPermissions"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"violationSettings",{get:function(){return this._violationSettings},set:function(t){this._setViolationSettings(t)},enumerable:!0,configurable:!0}),e.prototype._setViolationSettings=function(t,e){if(void 0===e&&(e=!1),null==t)throw new mu("violationSettings cannot be null");Ac(this._violationSettings,t)||(null!=this._violationSettings&&this._violationSettings.removePropertyChanged(this._onPermissionsChanged),this._violationSettings=t,this.applyPermissionsConstrain(),this._violationSettings.addPropertyChanged(this._onPermissionsChanged),this._propertyChanged.notify(this,"violationSettings"))},e.prototype.applyPermissionsConstrain=function(){this.isRenderTypeIsNormal||(this.itemPermissions.allowOpacityChange=!1)},e.prototype._onContainerChanged=function(){t.prototype._onContainerChanged.call(this),this.applyPermissionsConstrain()},Object.defineProperty(e.prototype,"parentGroupItem",{get:function(){return this._parentGroupItem},set:function(t){this._parentGroupItem=t,null!=t&&(this.parentContainer=this._parentGroupItem.parentContainer)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"blendMode",{get:function(){return this._blendMode},set:function(t){this._blendMode!==t&&(this._blendMode=t,this._propertyChanged.notify(this,"blendMode"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transform",{get:function(){return this._transform},set:function(t){this.setTransform(t)},enumerable:!0,configurable:!0}),e.prototype.setTransform=function(t,e){void 0===e&&(e=!1),this._transform&&this._transform.removeTransformChanged(this._onTransformChanged);var n=!1;jc.isEqual(this._transform,t)||(this._transform=t,n=!0),this._transform&&this._transform.addTransformChanged(this._onTransformChanged),!e&&n&&this._propertyChanged.notify(this,"transform")},Object.defineProperty(e.prototype,"textWrappingMode",{get:function(){return this._textWrappingMode},set:function(t){this._textWrappingMode!==t&&(this._textWrappingMode=t,this._propertyChanged.notify(this,"textWrappingMode"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locked",{get:function(){return this._locked},set:function(t){this._locked!==t&&(this._locked=t,this._propertyChanged.notify(this,"locked"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},set:function(t){Ac(this.mask,t)||(null!=this._mask&&this._mask.removeMaskChanged(this._onMaskChanged),this._mask=t,null!=this._mask&&this._mask.addMaskChanged(this._onMaskChanged),this._propertyChanged.notify(this,"mask"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(t){this._visible!==t&&(this._visible=t,this._propertyChanged.notify(this,"visible"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"opacity",{get:function(){return this._opacity},set:function(t){Ec(this._opacity,t)||(this._opacity=t,this._propertyChanged.notify(this,"opacity"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVariable",{get:function(){return this._isVariable},set:function(t){if(this._isVariable!==t){if(!this._canSetIsVariable())throw new vu("Unable to set isVariable on item of type '"+this.type+"'");this._isVariable=t,this._propertyChanged.notify(this,"isVariable")}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fromLayout",{get:function(){return this._fromLayout},set:function(t){this._fromLayout!==t&&(this._fromLayout=t,this._propertyChanged.notify(this,"fromLayout"))},enumerable:!0,configurable:!0}),e.prototype.canSetIsVariable=function(){return this._canSetIsVariable()},e.prototype._canSetIsVariable=function(){return!1},e.prototype._getParentContainer=function(){return null!=this.parentContainer?this.parentContainer:null},e.prototype.getSimplifiedObject=function(e){Cu.isArray(e)||Cu.isString(e)||(e=[]);var n=t.prototype.getSimplifiedObject.call(this,["_changedEvent","_changingEvent","manipulationPermissions","itemPermissions","visualizationPermissions","frontendPermissions","renderingType","isRenderTypeIsNormal","parentGroupItem"].concat(e));return n.manipulationPermissions=this.manipulationPermissions.getSimplifiedObject(),n.itemPermissions=this.itemPermissions.getSimplifiedObject(),n.visualizationPermissions=this.visualizationPermissions.getSimplifiedObject(),n.frontendPermissions=this.frontendPermissions.getSimplifiedObject(),n.mask=null!=this.mask?this.mask.getSimplifiedObject():null,n},e.prototype.getItemChangedEvent=function(){return this._changedEvent},e.prototype.getItemChangingEvent=function(){return this._changingEvent},e.prototype._getThemeBinding=function(t){return null!=t?t:this.themeBinding},e.prototype._applyThemeColor=function(t,e,n){if(null!=t&&null!=e[t]){var r=Kc.createColor(e[t]);if(r)return n(r),!0}return!1},Object.defineProperty(e.prototype,"isRenderTypeIsNormal",{get:function(){return this.renderingType===mh.Normal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderingType",{get:function(){return this.parentContainer instanceof Ph?this.parentContainer.renderingType:mh.Normal},enumerable:!0,configurable:!0}),e.type="item",Uh([oh({enumObject:Nh,displayName:"Blend mode"}),Hh("design:type",String),Hh("design:paramtypes",[String])],e.prototype,"blendMode",null),Uh([oh({enumObject:vh}),Hh("design:type",Number),Hh("design:paramtypes",[Number])],e.prototype,"textWrappingMode",null),Uh([oh({displayName:"Locked"}),Hh("design:type",Boolean),Hh("design:paramtypes",[Boolean])],e.prototype,"locked",null),e}(uh),Gh=function(){function t(t){this._allowChangeBorderWidth=!0,this._allowChangeFillColor=!0,this._allowChangeBorderColor=!0,this.propertyChanged=new hu,null==t&&(t=!0),this.allowChangeBorderWidth=t,this.allowChangeFillColor=t,this.allowChangeBorderColor=t}return Object.defineProperty(t.prototype,"allowChangeBorderWidth",{get:function(){return this._allowChangeBorderWidth},set:function(t){this._allowChangeBorderWidth!==t&&(this._allowChangeBorderWidth=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowChangeFillColor",{get:function(){return this._allowChangeFillColor},set:function(t){this._allowChangeFillColor!==t&&(this._allowChangeFillColor=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowChangeBorderColor",{get:function(){return this._allowChangeBorderColor},set:function(t){this._allowChangeBorderColor!==t&&(this._allowChangeBorderColor=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t;return e.allowChangeBorderColor=this.allowChangeBorderColor,e.allowChangeBorderWidth=this.allowChangeBorderWidth,e.allowChangeFillColor=this.allowChangeFillColor,e},t.prototype.getSimplifiedObject=function(){var t={};return t.allowChangeBorderWidth=this.allowChangeBorderWidth,t.allowChangeFillColor=this.allowChangeFillColor,t.allowChangeBorderColor=this.allowChangeBorderColor,t},t.prototype.equals=function(t){return this.allowChangeBorderColor===t.allowChangeBorderColor&&this.allowChangeFillColor===t.allowChangeFillColor&&this.allowChangeBorderWidth===t.allowChangeBorderWidth},t}(),$h=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Xh=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Yh(arguments[e]));return t},Zh=function(){function t(t){this._defaultValue=t}return t.prototype.getDefaultValue=function(){return this._defaultValue},Object.defineProperty(t.prototype,"type",{get:function(){return typeof this._defaultValue},enumerable:!0,configurable:!0}),t}(),Jh=function(){function t(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this._collectionConstructor=t,this._args=e}return t.prototype.getDefaultValue=function(){var t;return new((t=this._collectionConstructor).bind.apply(t,Xh([void 0],this._args)))},Object.defineProperty(t.prototype,"type",{get:function(){return"collection"},enumerable:!0,configurable:!0}),t}(),Kh=function(){function t(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this._objectConstructor=t,this._args=e}return t.prototype.getDefaultValue=function(){var t;return new((t=this._objectConstructor).bind.apply(t,Xh([void 0],this._args)))},Object.defineProperty(t.prototype,"type",{get:function(){return typeof this._objectConstructor},enumerable:!0,configurable:!0}),t}(),Qh=function(t){function e(){return t.call(this,zc,[{type:"cmyk",getDefaultValue:function(){return new $c({c:0,m:0,y:0,k:100})}},{type:"rgb",getDefaultValue:function(){return new Uc({r:0,g:0,b:0,a:255})}},{type:"spot",getDefaultValue:function(){return new th({inkName:"inkName",inkColor:new $c({c:0,m:0,y:0,k:100}),inkSolidity:100})}},{type:"grayscale",getDefaultValue:function(){return new Xc({l:0})}},{type:"lab",getDefaultValue:function(){return new Jc({l:0,a:0,b:0})}}])||this}return $h(e,t),e}(function(){function t(t,e){this._abstractObjectClass=t,this._derivedClassesData=e}return t.prototype.getDefaultValue=function(t){var e=this._derivedClassesData.find((function(e){return e.type===t}));if(null==e)throw new gu("Type "+t+" is not defined! Try on of these values: "+this.derivedTypes.join(", ")+".");return e.getDefaultValue()},Object.defineProperty(t.prototype,"type",{get:function(){return this._abstractObjectClass},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"derivedTypes",{get:function(){return this._derivedClassesData.map((function(t){return t.type}))},enumerable:!0,configurable:!0}),t}()),tp=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ep=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},np=function(t){function e(n){var r=t.call(this,n)||this;return r.type=e.type,null==n&&(n=!0),r._allowShape=n,r}return tp(e,t),e.prototype.clone=function(n){void 0===n&&(n=null);var r=null!=n?n:new e;return r.allowShape=this.allowShape,t.prototype.clone.call(this,r)},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&this.allowShape===e.allowShape},e.type="ShapeViolationSettings",function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);i>3&&s&&Object.defineProperty(e,n,s)}([ih(),ep("design:type",Boolean)],e.prototype,"allowShape",void 0),e}(zh),rp=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),op=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ip=function(t){function e(n){var r=t.call(this)||this;return r._borderWidth=1,r._fillColor=new Uc("rgba(112,112,112,1)"),r._borderColor=new Uc("rgba(0,0,0,1)"),r._altBorderColor=null,r._dash=[],r._fixedBorderWidth=!1,r._overprintStroke=!1,r._overprintFill=!1,r.sourcePathId=null,r.sourcePathLoaded=!1,r._stubPath=null,r._pathLoadedEvent=new hu,r.type=e.type,r.sourcePath=null!=n?n:new Tc(""),r.sourceRectangle=new Cc(0,0,10,10),r.shapePermissions=new Gh,r._setViolationSettings(new np,!0),r._ignorePermissionsChange=!0,r.manipulationPermissions.resizeGrips=new Sh(!0,!0),r.itemPermissions.itemToolbarPermissions.showEditButton=!1,r.itemPermissions.itemToolbarPermissions.showSelectButton=!1,r._ignorePermissionsChange=!1,r}return rp(e,t),Object.defineProperty(e.prototype,"fixedBorderWidth",{get:function(){return this._fixedBorderWidth},set:function(t){this._fixedBorderWidth!==t&&(this._fixedBorderWidth=t,this._propertyChanged.notify(this,"fixedBorderWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderWidth",{get:function(){return this._borderWidth},set:function(t){this._borderWidth!==t&&(this._borderWidth=t,this._propertyChanged.notify(this,"borderWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourcePath",{get:function(){return this._sourcePath},set:function(t){Ac(this._sourcePath,t)||(this._sourcePath=t,!0!==this.sourcePathLoaded&&this._propertyChanged.notify(this,"sourcePath"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourceRectangle",{get:function(){return this._sourceRectangle},set:function(t){Cc.isEqual(this._sourceRectangle,t)||(this._sourceRectangle=t,this._propertyChanged.notify(this,"sourceRectangle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._borderColor},set:function(t){zc.equals(this._borderColor,t)||(this._borderColor=t,this._propertyChanged.notify(this,"borderColor"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overprintStroke",{get:function(){return this._overprintStroke},set:function(t){this._overprintStroke!==t&&(this._overprintStroke=t,this._propertyChanged.notify(this,"overprintStroke"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fillColor",{get:function(){return this._fillColor},set:function(t){zc.equals(this._fillColor,t)||(this._fillColor=t,this._propertyChanged.notify(this,"fillColor"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overprintFill",{get:function(){return this._overprintFill},set:function(t){this._overprintFill!==t&&(this._overprintFill=t,this._propertyChanged.notify(this,"overprintFill"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"altBorderColor",{get:function(){return this._altBorderColor},set:function(t){zc.equals(this._altBorderColor,t)||(this._altBorderColor=t,this._propertyChanged.notify(this,"altBorderColor"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dash",{get:function(){return this._dash},set:function(t){Cu.isEqual(this._dash,t)||(this._dash=t,this._propertyChanged.notify(this,"dash"))},enumerable:!0,configurable:!0}),e.prototype.applyPermissionsConstrain=function(){t.prototype.applyPermissionsConstrain.call(this),this.itemPermissions.itemToolbarPermissions.showEditButtonConstraint=!1,this.itemPermissions.itemToolbarPermissions.showSelectButtonConstraint=!1,this.isRenderTypeIsNormal||(this.shapePermissions.allowChangeBorderColor=!1,this.shapePermissions.allowChangeFillColor=!1)},Object.defineProperty(e.prototype,"shapePermissions",{get:function(){return this._shapePermissions},set:function(t){if(null==t)throw new mu("shapePermissions cannot be null");Ac(this._shapePermissions,t)||(null!=this._shapePermissions&&this._shapePermissions.propertyChanged.remove(this._onPermissionsChanged),this._shapePermissions=t,this.applyPermissionsConstrain(),this._shapePermissions.propertyChanged.add(this._onPermissionsChanged),this._propertyChanged.notify(this,"shapePermissions"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"violationSettings",{get:function(){return this._violationSettings},set:function(t){this._setViolationSettings(t)},enumerable:!0,configurable:!0}),e.prototype._setViolationSettings=function(e,n){if(void 0===n&&(n=!1),!(n||e instanceof np))throw new mu("Shape ViolationSettings property must has ShapeViolationSettings type!");t.prototype._setViolationSettings.call(this,e,n)},e.prototype._copy=function(e,n,r,o){t.prototype._copy.call(this,e,n,r,o),n.shapePermissions=null!=e._shapePermissions?e._shapePermissions.clone():null,n._stubPath=null!=e._stubPath?e._stubPath.clone():null,n.dash=Cu.clone(e._dash),n.altBorderColor=null!=e._altBorderColor?e._altBorderColor.clone():null,n.fillColor=null!=e._fillColor?e._fillColor.clone():null,n.borderColor=null!=e._borderColor?e._borderColor.clone():null,n.sourceRectangle=null!=e._sourceRectangle?e._sourceRectangle.clone():null,null!=e.sourcePathId?n.sourcePathId=e.sourcePathId:n.sourcePath=null!=e._sourcePath?e._sourcePath.clone():null,n.borderWidth=e._borderWidth,n.fixedBorderWidth=e.fixedBorderWidth,n.overprintStroke=e.overprintStroke,n.overprintFill=e.overprintFill},e.prototype.equals=function(e){var n=t.prototype.equals.call(this,e),r=Ac(this._shapePermissions,e._shapePermissions),o=Ac(this._stubPath,e._stubPath),i=Ac(this._dash,e._dash),s=Ac(this._altBorderColor,e._altBorderColor),a=Ac(this._fillColor,e._fillColor),l=Ac(this._borderColor,e._borderColor),u=Ac(this._sourceRectangle,e._sourceRectangle),c=Ac(this.sourcePathId,e.sourcePathId),h=Ac(this._sourcePath,e._sourcePath),p=Ac(this._borderWidth,e._borderWidth),f=Ac(this._fixedBorderWidth,e._fixedBorderWidth),d=Ac(this._overprintStroke,e._overprintStroke),g=Ac(this._overprintFill,e._overprintFill);return n&&r&&o&&i&&s&&a&&l&&u&&c&&h&&p&&f&&d&&g},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.prototype.getSimplifiedObject=function(e){var n=t.prototype.getSimplifiedObject.call(this,["shapePermissions"].concat(e));return n.shapePermissions=this.shapePermissions.getSimplifiedObject(),n.sourcePath=null==this.sourcePathId&&null!=this.sourcePath?this.sourcePath.toString():null,n},e.prototype._onPathLoaded=function(){this._pathLoadedEvent.notify(this)},e.prototype.getPathLoadedEvent=function(){return this._pathLoadedEvent},e.type="ShapeItem",function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);i>3&&s&&Object.defineProperty(e,n,s)}([oh({factory:new Qh,displayName:"Alternative border color"}),op("design:type",zc),op("design:paramtypes",[zc])],e.prototype,"altBorderColor",null),e}(Wh),sp=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ap=function(t){function e(n){void 0===n&&(n=new Cc(0,0,10,10));var r=t.call(this,Tc.rectangle(n.left,n.top,n.width,n.height))||this;return r.type=e.type,r.sourceRectangle=n,r}return sp(e,t),e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="RectangleItem",e}(ip),lp=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),up=function(t){function e(){var n=t.call(this)||this;return n._maskOpacity=.45,n._parentPlaceholder=null,n.type=e.type,n.borderWidth=0,n.fillColor=new Uc("rgba(0, 0, 0, 0)"),n._ignorePermissionsChange=!0,n.itemPermissions.itemToolbarPermissions.showEditButton=!0,n._ignorePermissionsChange=!1,n}return lp(e,t),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._maskOpacity},set:function(t){Ec(this._maskOpacity,t)||(this._maskOpacity=t,this._propertyChanged.notify(this,"maskOpacity"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentPlaceholder",{get:function(){return this._parentPlaceholder},set:function(t){this._parentPlaceholder=t,this._propertyChanged.notify(this,"parentPlaceholder")},enumerable:!0,configurable:!0}),e.prototype.applyPermissionsConstrain=function(){null!=this.parentPlaceholder&&(this.parentPlaceholder.isCoverMode?(this.manipulationPermissions.resizeGrips.edgeConstraint=!1,this.manipulationPermissions.resizeGrips.setCornerArbitraryConstraint(!1),this.manipulationPermissions.allowRotateConstraint=!1):(this.manipulationPermissions.resizeGrips.edgeConstraint=null,this.manipulationPermissions.resizeGrips.setCornerArbitraryConstraint(null),this.manipulationPermissions.allowRotateConstraint=null),this.parentPlaceholder.applyPermissionsConstrain()),this.isRenderTypeIsNormal||(this.itemPermissions.allowOpacityChange=!1,this.shapePermissions.allowChangeBorderColor=!1,this.shapePermissions.allowChangeFillColor=!1)},e.prototype.getSimplifiedObject=function(e){return Cu.isArray(e)||Cu.isString(e)||(e=[]),t.prototype.getSimplifiedObject.call(this,["parentPlaceholder"].concat(e))},e.prototype._canSetIsVariable=function(){return!0},e.prototype._getPrintAreaBounds=function(){var t=null!=this.parentContainer?this.parentContainer:null!=this.parentPlaceholder?this.parentPlaceholder.parentContainer:null;return t instanceof Ph?t.parentComponent.bounds:null},e.prototype._getParentContainer=function(){return null!=this.parentPlaceholder?this.parentPlaceholder.parentContainer:null},e.prototype._copy=function(e,n,r,o){t.prototype._copy.call(this,e,n,r,o),n._maskOpacity=e._maskOpacity,n.isVariable=e.isVariable},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._maskOpacity,e._maskOpacity)&&Ac(this.isVariable,e.isVariable)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="ContentItem",e}(ap),cp=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};!function(t){t.Miter="Miter",t.Round="Round",t.Bevel="Bevel"}(Lh||(Lh={}));var hp,pp,fp,dp,gp,yp,mp,_p,bp=function(){function t(e){this._color=new Uc("rgb(0,0,0)"),this._size=0,this._lineJoin=Lh.Miter,this.type=t.type,this._propertyChanged=new fu,null!=e&&(this.color=null!=e.color?e.color:new Uc("rgb(0,0,0)"),this.size=null!=e.size?e.size:0,this.lineJoin=null!=e.lineJoin?e.lineJoin:Lh.Miter)}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){zc.equals(this._color,t)||(this._color=t,this._propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this._size!==t&&(this._size=t,this._propertyChanged.notify(this,"size"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lineJoin",{get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this._propertyChanged.notify(this,"lineJoin"))},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this)},t._from_data=function(e){return null==e?null:new t({color:Kc.createColor(e.color),size:"number"==typeof e.size?e.size:0,lineJoin:"string"==typeof e.lineJoin?e.lineJoin:Lh.Miter})},t.prototype.equals=function(e){return e instanceof t&&this.color.equals(e.color)&&Ec(this.size,e.size)&&this.lineJoin==e.lineJoin},t.equals=function(t,e){return null==t&&null==e||null!=t&&null!=e&&t.equals(e)},t.prototype.getSimplifiedObject=function(){return{color:this.color.toString(),size:this.size,lineJoin:this.lineJoin}},t.prototype.addPropertyChanged=function(t){this._propertyChanged.add(t)},t.prototype.removePropertyChanged=function(t){this._propertyChanged.remove(t)},t.type="StrokeSettings",function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);i>3&&s&&Object.defineProperty(e,n,s)}([oh({enumObject:Lh}),cp("design:type",String),cp("design:paramtypes",[String])],t.prototype,"lineJoin",null),t}(),vp=function(){function t(t){this._color=new Uc("rgb(0,0,0)"),this._angle=0,this._distance=0,this._size=0,this._propertyChanged=new fu,null!=t&&(this.color=null!=t.color?t.color:new Uc("rgb(0,0,0)"),this.angle=null!=t.angle?t.angle:0,this.distance=null!=t.distance?t.distance:0,this.size=null!=t.size?t.size:0)}return Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){zc.equals(this._color,t)||(this._color=t,this._propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle!==t&&(this._angle=t,this._propertyChanged.notify(this,"angle"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"distance",{get:function(){return this._distance},set:function(t){this._distance!==t&&(this._distance=t,this._propertyChanged.notify(this,"distance"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._size},set:function(t){this._size!==t&&(this._size=t,this._propertyChanged.notify(this,"size"))},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this)},t._from_data=function(e){return null==e?null:new t({color:Kc.createColor(e.color),angle:"number"==typeof e.angle?e.angle:0,distance:"number"==typeof e.distance?e.distance:0,size:"number"==typeof e.size?e.size:0})},t.prototype.equals=function(e){return e instanceof t&&this.color.equals(e.color)&&Ec(this.angle,e.angle)&&Ec(this.distance,e.distance)&&Ec(this.size,e.size)},t.equals=function(t,e){return null==t&&null==e||null!=t&&null!=e&&t.equals(e)},t.prototype.getSimplifiedObject=function(){return{color:this.color.toString(),angle:this.angle,distance:this.distance,size:this.size}},t.prototype.addPropertyChanged=function(t){this._propertyChanged.add(t)},t.prototype.removePropertyChanged=function(t){this._propertyChanged.remove(t)},t}(),wp=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},Cp=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Pp=function(){function t(t){this.propertyChanged=new hu,null==t&&(t=!0),this.allowChangeText=t,this.allowChangeFont=t,this.allowChangeFontSize=t,this.allowChangeFontColor=t,this.allowChangeTextAlignment=t,this.allowChangeTextBIU=t,this.allowChangeShadow=t,this.allowChangeStroke=t,this.allowChangeLeading=t,this.allowTextFormatting=null,this.allowChangeStrokeColor=t}return t.prototype.clone=function(){var e=new t;return e.allowChangeFont=this.allowChangeFont,e.allowChangeFontColor=this.allowChangeFontColor,e.allowChangeFontSize=this.allowChangeFontSize,e.allowChangeShadow=this.allowChangeShadow,e.allowChangeStroke=this.allowChangeStroke,e.allowChangeText=this.allowChangeText,e.allowChangeTextAlignment=this.allowChangeTextAlignment,e.allowChangeTextBIU=this.allowChangeTextBIU,e.allowChangeLeading=this.allowChangeLeading,e.allowTextFormatting=this.allowTextFormatting,e.allowChangeStrokeColor=this.allowChangeStrokeColor,e},t.prototype.equals=function(t){return this.allowChangeFont===t.allowChangeFont&&this.allowChangeFontColor===t.allowChangeFontColor&&this.allowChangeFontSize===t.allowChangeFontSize&&this.allowChangeShadow===t.allowChangeShadow&&this.allowChangeStroke===t.allowChangeStroke&&this.allowChangeText===t.allowChangeText&&this.allowChangeTextAlignment===t.allowChangeTextAlignment&&this.allowChangeTextBIU===t.allowChangeTextBIU&&this.allowChangeLeading===t.allowChangeLeading&&this.allowTextFormatting===t.allowTextFormatting&&this.allowChangeStrokeColor===t.allowChangeStrokeColor},t.prototype.getSimplifiedObject=function(){var t={};return t.allowChangeText=this.allowChangeText,t.allowChangeFont=this.allowChangeFont,t.allowChangeFontSize=this.allowChangeFontSize,t.allowChangeFontColor=this.allowChangeFontColor,t.allowChangeTextAlignment=this.allowChangeTextAlignment,t.allowChangeTextBIU=this.allowChangeTextBIU,t.allowChangeShadow=this.allowChangeShadow,t.allowChangeStroke=this.allowChangeStroke,t.allowChangeLeading=this.allowChangeLeading,t.allowTextFormatting=this.allowTextFormatting,t.allowChangeStrokeColor=this.allowChangeStrokeColor,t},wp([ih(),Cp("design:type",Boolean)],t.prototype,"allowChangeText",void 0),wp([ih(),Cp("design:type",Boolean)],t.prototype,"allowChangeFont",void 0),wp([ih(),Cp("design:type",Boolean)],t.prototype,"allowChangeFontSize",void 0),wp([ih(),Cp("design:type",Boolean)],t.prototype,"allowChangeFontColor",void 0),wp([ih(),Cp("design:type",Boolean)],t.prototype,"allowChangeTextAlignment",void 0),wp([ih(),Cp("design:type",Boolean)],t.prototype,"allowChangeTextBIU",void 0),wp([ih(),Cp("design:type",Boolean)],t.prototype,"allowChangeShadow",void 0),wp([ih(),Cp("design:type",Boolean)],t.prototype,"allowChangeStroke",void 0),wp([ih(),Cp("design:type",Boolean)],t.prototype,"allowChangeStrokeColor",void 0),wp([ih(),Cp("design:type",Boolean)],t.prototype,"allowChangeLeading",void 0),wp([ih(),oh({type:"boolean"}),Cp("design:type",Boolean)],t.prototype,"allowTextFormatting",void 0),t}();!function(t){t[t.ShrinkToContentWidth=0]="ShrinkToContentWidth",t[t.StretchToContentWidth=1]="StretchToContentWidth",t[t.ShrinkOrStretchToContentWidth=2]="ShrinkOrStretchToContentWidth",t[t.ShrinkToContentHeight=3]="ShrinkToContentHeight",t[t.StretchToContentHeight=4]="StretchToContentHeight",t[t.ShrinkOrStretchToContentHeight=5]="ShrinkOrStretchToContentHeight",t[t.ShrinkToContent=6]="ShrinkToContent",t[t.StretchToContent=7]="StretchToContent",t[t.ShrinkOrStretchToContent=8]="ShrinkOrStretchToContent"}(hp||(hp={})),function(t){t[t.Size=0]="Size",t[t.Scale=1]="Scale"}(pp||(pp={})),function(t){t[t.Clip=0]="Clip",t[t.FitToWidth=1]="FitToWidth",t[t.FitToBox=2]="FitToBox",t[t.ExpandBox=3]="ExpandBox"}(fp||(fp={})),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Justify=3]="Justify",t[t.LastLeft=4]="LastLeft",t[t.LastRight=5]="LastRight",t[t.LastCenter=6]="LastCenter"}(dp||(dp={})),function(t){t[t.Top=0]="Top",t[t.Center=1]="Center",t[t.Bottom=2]="Bottom"}(gp||(gp={})),function(t){t[t.Ascent=0]="Ascent",t[t.CapHeight=1]="CapHeight",t[t.Leading=2]="Leading",t[t.XHeight=3]="XHeight",t[t.Fixed=4]="Fixed",t[t.EmboxHeight=5]="EmboxHeight"}(yp||(yp={})),function(t){t[t.Off=0]="Off",t[t.WidthOnly=1]="WidthOnly",t[t.HeightOnly=2]="HeightOnly",t[t.WidthHeight=3]="WidthHeight"}(mp||(mp={})),function(t){t[t.Off=0]="Off",t[t.FitToBox=1]="FitToBox",t[t.FitToWidth=2]="FitToWidth",t[t.Fill=3]="Fill"}(_p||(_p={}));var Op=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xp=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},Sp=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ep=function(t){function e(n){var r=t.call(this,n)||this;return r.type=e.type,null==n&&(n=!0),r._allowTextCrop=n,r._allowInPlaceText=n,r}return Op(e,t),e.prototype.clone=function(){var n=new e;return n.allowTextCrop=this.allowTextCrop,n.allowInPlaceText=this.allowInPlaceText,t.prototype.clone.call(this,n)},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&this.allowTextCrop===e.allowTextCrop&&this.allowInPlaceText===e.allowInPlaceText},e.type="TextViolationSettings",xp([ih(),Sp("design:type",Boolean)],e.prototype,"allowTextCrop",void 0),xp([ih(),Sp("design:type",Boolean)],e.prototype,"allowInPlaceText",void 0),e}(np),kp=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tp=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},jp=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ip=function(t){function e(n,r,o){var i=t.call(this)||this;i._text="",i._originalText="",i._underline=!1,i._color=new Uc("rgb(0,0,0)"),i._alignment=dp.Left,i._tracking=0,i._leading=0,i._checkTextCrop=!0,i._overlapLinesEnabled=!1,i._verticalScale=1,i._horizontalScale=1,i._stroke=null,i._shadow=null,i._previewScale=1,i._placeholders=new _h,i._displayText=null,i._colorPalette=new _h,i._baselineShift=0,i._overprintText=!1,i.values=[],i._maxLineLength=null,i._maxLineCount=null,i.isTextPlaceholder=!1,i.textColorForAbnormalRendering=new Uc("rgb(0,0,0)"),i.type=e.type,i._onFontPropertyChanged=function(t,e){i._propertyChanged.notify(i,"font")},i._onShadowPropertyChanged=function(t,e){i._propertyChanged.notify(i,"shadow")},i._onStrokePropertyChanged=function(t,e){i._propertyChanged.notify(i,"stroke")},i.borderWidth=0,i.fillColor=new Uc("rgba(0, 0, 0, 0)"),i.text=null!=n?n:"",i._font=new e.FontSettings(r,null!=o?o:10),i._subscribeFontPropertyChanged(),i.textPermissions=new Pp,i._setViolationSettings(new Ep,!0);var s=function(){i._displayText=null,i._propertyChanged.notify(i,"text")};return i._placeholders.add_itemAdded((function(t){return t.item.addPropertyChanged(s)})),i._placeholders.add_itemRemoved((function(t){return t.item.removePropertyChanged(s)})),i._ignorePermissionsChange=!0,i.itemPermissions.allowRemoveOnLayoutChange=!0,i.itemPermissions.itemToolbarPermissions.showEditButton=!0,i._ignorePermissionsChange=!1,i}return kp(e,t),Object.defineProperty(e.prototype,"maxLineCount",{get:function(){return this._maxLineCount},set:function(t){this._maxLineCount!==t&&(this._maxLineCount=t,this._displayText=null,this._propertyChanged.notify(this,"maxLineCount"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxLineLength",{get:function(){return this._maxLineLength},set:function(t){this._maxLineLength!==t&&(this._maxLineLength=t,this._displayText=null,this._propertyChanged.notify(this,"maxLineLength"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previewScale",{get:function(){return this._previewScale},set:function(t){Ec(this._previewScale,t)||(this._previewScale=t,this._propertyChanged.notify(this,"previewScale"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stroke",{get:function(){return this._stroke},set:function(t){bp.equals(this._stroke,t)||(this._unsubscribeStrokePropertyChanged(),this._stroke=t,this._subscribeStrokePropertyChanged(),this._propertyChanged.notify(this,"stroke"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shadow",{get:function(){return this._shadow},set:function(t){null==this._shadow&&null==t||null!=t&&t.equals(this._shadow)||(this._unsubscribeShadowPropertyChanged(),this._shadow=t,this._subscribeShadowPropertyChanged(),this._propertyChanged.notify(this,"shadow"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalScale",{get:function(){return this._horizontalScale},set:function(t){Ec(this._horizontalScale,t)||(this._horizontalScale=t,this._propertyChanged.notify(this,"horizontalScale"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalScale",{get:function(){return this._verticalScale},set:function(t){Ec(this._verticalScale,t)||(this._verticalScale=t,this._propertyChanged.notify(this,"verticalScale"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checkTextCrop",{get:function(){return this._checkTextCrop},set:function(t){this._checkTextCrop!==t&&(this._checkTextCrop=t,this._propertyChanged.notify(this,"checkTextCrop"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlapLinesEnabled",{get:function(){return this._overlapLinesEnabled},set:function(t){this._overlapLinesEnabled!==t&&(this._overlapLinesEnabled=t,this._propertyChanged.notify(this,"overlapLinesEnabled"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this._alignment},set:function(t){this._alignment!==t&&(this._alignment=t,this._propertyChanged.notify(this,"alignment"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tracking",{get:function(){return this._tracking},set:function(t){Ec(this._tracking,t)||(this._tracking=t,this._propertyChanged.notify(this,"tracking"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leading",{get:function(){return this._leading},set:function(t){Ec(this._leading,t)||(this._leading=t,this._propertyChanged.notify(this,"leading"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalText",{get:function(){return null!=this._originalText?this._originalText:""},set:function(t){this._originalText=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"underline",{get:function(){return this._underline},set:function(t){this._underline!==t&&(this._underline=t,this._propertyChanged.notify(this,"underline"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"font",{get:function(){return this._font},set:function(t){e.FontSettings.equals(this._font,t)||(this._unsubscribeFontPropertyChanged(),this._font=t,this._subscribeFontPropertyChanged(),this._propertyChanged.notify(this,"font"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return null==this._displayText&&(this._displayText=this.getUpdatedText(this._text)),this._text=this._displayText,this._text},set:function(t){this._text!==t&&(this._text=t,this._displayText=null,this._propertyChanged.notify(this,"text"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){zc.equals(this._color,t)||(this._color=t,this._propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baselineShift",{get:function(){return this._baselineShift},set:function(t){Ec(this._baselineShift,t)||(this._baselineShift=t,this._propertyChanged.notify(this,"baselineShift"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overprintText",{get:function(){return this._overprintText},set:function(t){t!=this._overprintText&&(this._overprintText=t,this._propertyChanged.notify(this,"overprintText"))},enumerable:!0,configurable:!0}),e.prototype.getUpdatedText=function(t){var e,n,r=t;this.placeholders.length>0&&(r=this._replaceInStringPlaceholders());var o=null!==(e=this._maxLineCount)&&void 0!==e?e:0,i=null!==(n=this._maxLineLength)&&void 0!==n?n:0;if(o>0||i>0){Lc(r)&&(r=function(t,e){var n,r,o,i;void 0===e&&(e=" ");var s=new DOMParser;t=Fc(t);var a,l,u=s.parseFromString("<root>"+t+"</root>","application/xml"),c=u.querySelector("parsererror");if(null==c){try{for(var h=Rc(Array.from(u.querySelectorAll("br"))),p=h.next();!p.done;p=h.next())p.value.textContent=e}catch(b){n={error:b}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}var f=Array.from(u.querySelectorAll("p, li"));if(f.length>1){var d=Cu.without(f,f[f.length-1]);try{for(var g=Rc(d),y=g.next();!y.done;y=g.next()){var m=y.value,_=document.createElementNS("application/xml","span");_.textContent=e,m.appendChild(_)}}catch(v){o={error:v}}finally{try{y&&!y.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}}return u.querySelector("root").textContent}return console.warn("Bad value xmlObject",u,c.innerHTML),a=t,(l=(new DOMParser).parseFromString("<span></span>","application/xml")).querySelector("span").textContent=a,(new XMLSerializer).serializeToString(l).replace("<span>","").replace("</span>","").replace("<span/>","").replace("<span />","")}(t,"\n"));var s=r.split("\n");if(o>0&&s.length>o&&(s=s.splice(0,o)),i>0)for(var a=0;a<s.length;a++)s[a].length>i&&(s[a]=s[a].substr(0,i));return s.join("\n")}return r},Object.defineProperty(e.prototype,"placeholders",{get:function(){return this._placeholders},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorPalette",{get:function(){return this._colorPalette},enumerable:!0,configurable:!0}),e.prototype._canSetIsVariable=function(){return!0},Object.defineProperty(e.prototype,"previewFontSize",{get:function(){return this.font.size*this.previewScale},set:function(t){this.font.size=t/this.previewScale},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previewLeading",{get:function(){return this.leading*this.previewScale},set:function(t){this.leading=t/this.previewScale},enumerable:!0,configurable:!0}),e.prototype.applyPermissionsConstrain=function(){t.prototype.applyPermissionsConstrain.call(this),this.itemPermissions.itemToolbarPermissions.showSelectButton=!1,this.itemPermissions.itemToolbarPermissions.showEditButtonConstraint=!(null!=this.textPermissions&&!this.textPermissions.allowChangeText)&&null,this.isRenderTypeIsNormal||(this.textPermissions.allowChangeFontColor=!1,this.textPermissions.allowChangeShadow=!1,this.textPermissions.allowChangeStroke=!1)},Object.defineProperty(e.prototype,"textPermissions",{get:function(){return this._textPermissions},set:function(t){if(null==t)throw new mu("textPermissions cannot be null");Ac(this._textPermissions,t)||(null!=this._textPermissions&&this._textPermissions.propertyChanged.remove(this._onPermissionsChanged),this._textPermissions=t,this.applyPermissionsConstrain(),this._textPermissions.propertyChanged.add(this._onPermissionsChanged),this._propertyChanged.notify(this,"textPermissions"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"violationSettings",{get:function(){return this._violationSettings},set:function(t){this._setViolationSettings(t)},enumerable:!0,configurable:!0}),e.prototype._setViolationSettings=function(e,n){if(void 0===n&&(n=!1),!(n||e instanceof Ep))throw new mu("Shape ViolationSettings property must has TextViolationSettings type!");t.prototype._setViolationSettings.call(this,e,n)},e.prototype._subscribeFontPropertyChanged=function(){null!=this._font&&this._font.addPropertyChanged(this._onFontPropertyChanged)},e.prototype._unsubscribeFontPropertyChanged=function(){null!=this._font&&this._font.removePropertyChanged(this._onFontPropertyChanged)},e.prototype._subscribeShadowPropertyChanged=function(){null!=this._shadow&&this._shadow.addPropertyChanged(this._onShadowPropertyChanged)},e.prototype._unsubscribeShadowPropertyChanged=function(){null!=this._shadow&&this._shadow.removePropertyChanged(this._onShadowPropertyChanged)},e.prototype._subscribeStrokePropertyChanged=function(){null!=this._stroke&&this._stroke.addPropertyChanged(this._onStrokePropertyChanged)},e.prototype._unsubscribeStrokePropertyChanged=function(){null!=this._stroke&&this._stroke.removePropertyChanged(this._onStrokePropertyChanged)},e.prototype.getSimplifiedObject=function(e){var n=t.prototype.getSimplifiedObject.call(this,["_placeholders","currentTextImage","textPermissions","textForTextWhizz","shadow","stroke"].concat(e));return n.placeholders=this.placeholders.toArray(),n.textPermissions=this.textPermissions.getSimplifiedObject(),n.font=this.font.getSimplifiedObject(),n.shadow=null!=this.shadow?this.shadow.getSimplifiedObject():null,n.stroke=null!=this.stroke?this.stroke.getSimplifiedObject():null,n},e.prototype._replaceInStringPlaceholders=function(){return Lc(this.originalText)?this._replaceInStringPlaceholdersValueInRichText():this._replaceInStringPlaceholdersValueInPlainText()},e.prototype._replaceInStringPlaceholdersValueInPlainText=function(){var t=this.originalText;return this.placeholders.forEach((function(e){t=t.replace(e.id,e.value)})),t},e.prototype._replaceInStringPlaceholdersValueInRichText=function(){if(null==this._originalTextDom){var t=new DOMParser;this._originalTextDom=t.parseFromString("<xml>"+this.originalText+"</xml>","text/xml")}var e=this._originalTextDom.cloneNode(!0),n=e.getElementsByTagName("span");this.placeholders.forEach((function(t){if(null!=n&&n.length)for(var e=0;e<n.length;e++){var r=n[e];null!=r.textContent&&(r.textContent=r.textContent.replace(t.id,t.value))}}));var r=(new XMLSerializer).serializeToString(e);return r.substr(0,r.length-6).substr(5)},e.prototype._copy=function(e,n,r,o){var i,s;if(t.prototype._copy.call(this,e,n,r,o),n.textPermissions=e._textPermissions.clone(),n.placeholders.setRange(e.placeholders.toArray().map((function(t){return t.clone()}))),n.color=e._color.clone(),n.text=e._text,n.font=e._font.clone(),n.underline=e._underline,n.originalText=e._originalText,n.leading=e._leading,n.tracking=e._tracking,n.alignment=e._alignment,n.checkTextCrop=e._checkTextCrop,n.verticalScale=e._verticalScale,n.horizontalScale=e._horizontalScale,n.shadow=null!=e._shadow?e._shadow.clone():null,n.stroke=null!=e._stroke?e._stroke.clone():null,n.previewScale=e._previewScale,n._maxLineCount=e._maxLineCount,n.isTextPlaceholder=e.isTextPlaceholder,n.maxLineLength=e.maxLineLength,n.overlapLinesEnabled=e.overlapLinesEnabled,n.colorPalette.setRange(e.colorPalette.toArray().map((function(t){return t.clone()}))),n.baselineShift=e.baselineShift,n.overprintText=e.overprintText,n.listStyles=e.listStyles,null!=e.values){n.values=[];try{for(var a=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(e.values),l=a.next();!l.done;l=a.next())n.values.push(l.value.clone())}catch(u){i={error:u}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(i)throw i.error}}}},e.prototype.equals=function(e){var n=t.prototype.equals.call(this,e),r=Ac(this._textPermissions,e._textPermissions),o=Mc(this._placeholders.toArray(),e._placeholders.toArray()),i=Ac(this._color,e._color),s=Ac(this._text,e._text),a=Ac(this._font,e._font),l=Ac(this._underline,e._underline),u=Ac(this._originalText,e._originalText),c=Ac(this._leading,e._leading),h=Ac(this._tracking,e._tracking),p=Ac(this._alignment,e._alignment),f=Ac(this._checkTextCrop,e._checkTextCrop),d=Ac(this._verticalScale,e._verticalScale),g=Ac(this._previewScale,e._previewScale),y=Ac(this._maxLineCount,e._maxLineCount),m=Ac(this.isTextPlaceholder,e.isTextPlaceholder),_=Ac(this._maxLineLength,e._maxLineLength),b=Ac(this._overlapLinesEnabled,e._overlapLinesEnabled),v=Ac(this._stroke,e._stroke),w=Mc(this.values,e.values),C=Mc(this._colorPalette.toArray(),e._colorPalette.toArray()),P=Ac(this._baselineShift,e._baselineShift),O=Ac(this._overprintText,e._overprintText),x=Ac(this.listStyles,e.listStyles);return n&&r&&o&&i&&s&&a&&l&&u&&c&&h&&p&&f&&d&&g&&y&&m&&_&&b&&v&&w&&C&&P&&O&&x},e.prototype.isEmptyText=function(){return""===this.text},e.prototype.isEmptyXmlText=function(){return"<p></p>"===this.text||"<p><span></span></p>"===this.text},e.prototype.isEmpty=function(){return!this.isTextPlaceholder&&(this.isEmptyText()||this.isEmptyXmlText())},e.type="baseText",Tp([oh({factory:new Zh(1),displayName:"Max line count"}),jp("design:type",Number),jp("design:paramtypes",[Number])],e.prototype,"maxLineCount",null),Tp([oh({factory:new Zh(50),displayName:"Max line length"}),jp("design:type",Number),jp("design:paramtypes",[Number])],e.prototype,"maxLineLength",null),Tp([oh({factory:new Kh(bp),displayName:"Stroke"}),jp("design:type",bp),jp("design:paramtypes",[bp])],e.prototype,"stroke",null),Tp([oh({factory:new Kh(vp),displayName:"Shadow"}),jp("design:type",vp),jp("design:paramtypes",[vp])],e.prototype,"shadow",null),Tp([oh({enumObject:dp}),jp("design:type",Number),jp("design:paramtypes",[Number])],e.prototype,"alignment",null),e}(ap);!function(t){var e=function(t){function e(e,n){void 0===n&&(n=10);var r=t.call(this)||this;return r._fauxBold=!1,r._fauxItalic=!1,r._allCaps=!1,r._openTypeFeatures=[],r.$_propertyChanged=new fu,r._postScriptName=e,r._size=n,r}return kp(e,t),e.prototype.clone=function(){var t=new e(this._postScriptName,this._size);return t._openTypeFeatures=Cu.clone(this._openTypeFeatures),t.allCaps=this._allCaps,t.fauxItalic=this._fauxItalic,t.fauxBold=this._fauxBold,t},Object.defineProperty(e.prototype,"fauxBold",{get:function(){return this._fauxBold},set:function(t){this._fauxBold!==t&&(this._fauxBold=t,this.$_propertyChanged.notify(this,"fauxBold"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fauxItalic",{get:function(){return this._fauxItalic},set:function(t){this._fauxItalic!==t&&(this._fauxItalic=t,this.$_propertyChanged.notify(this,"fauxItalic"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allCaps",{get:function(){return this._allCaps},set:function(t){this._allCaps!==t&&(this._allCaps=t,this.$_propertyChanged.notify(this,"allCaps"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"openTypeFeatures",{get:function(){return this._openTypeFeatures},set:function(t){this._openTypeFeatures!==t&&(this._openTypeFeatures=t,this.$_propertyChanged.notify(this,"openTypeFeatures"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"postScriptName",{get:function(){return this._postScriptName},set:function(t){this._postScriptName!==t&&(this._postScriptName=t,this.$_propertyChanged.notify(this,"postScriptName"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},set:function(t){Ec(this._size,t)||(this._size=t,this.$_propertyChanged.notify(this,"size"))},enumerable:!0,configurable:!0}),e.prototype.addPropertyChanged=function(t){this.$_propertyChanged.add(t)},e.prototype.removePropertyChanged=function(t){this.$_propertyChanged.remove(t)},e.equals=function(t,e){return null==t&&null==e||null!=t&&null!=e&&t.equals(e)},e.prototype.equals=function(t){return this.postScriptName===t.postScriptName&&this.size===t.size&&this.fauxBold===t.fauxBold&&this.fauxItalic===t.fauxItalic&&this.allCaps===t.allCaps&&Cu.isEqual(this.openTypeFeatures,t.openTypeFeatures)},e.prototype.getSimplifiedObject=function(){return{allCaps:this.allCaps,fauxBold:this.fauxBold,fauxItalic:this.fauxItalic,openTypeFeatures:this.openTypeFeatures,postScriptName:this.postScriptName,size:this.size}},e}(ah);t.FontSettings=e;var n=function(){function t(t,e){this.name=t,this.text=e}return t.prototype.equals=function(t){return null!=t&&Ac(this.name,t.name)&&Ac(this.text,t.text)},t.prototype.clone=function(){return new t(this.name,this.text)},t}();t.BaseTextValue=n}(Ip||(Ip={}));var Rp,Ap,Mp=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Np=(function(t){function e(n,r,o,i){var s=t.call(this,n,o,i)||this;return s._isVertical=!1,s.type=e.type,s._textRectangle=null!=r?r:new Cc,s}Mp(e,t),Object.defineProperty(e.prototype,"textRectangle",{get:function(){return this._textRectangle},set:function(t){Cc.isEqual(this._textRectangle,t)||(this._textRectangle=t,this._propertyChanged.notify(this,"textRectangle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVertical",{get:function(){return this._isVertical},set:function(t){this._isVertical!==t&&(this._isVertical=t,this._propertyChanged.notify(this,"isVertical"))},enumerable:!0,configurable:!0}),e.prototype._copy=function(n,r,o,i){t.prototype._copy.call(this,n,r,o,i),"AutoScaledTextItem"!=r.type&&"BoundedTextItem"!=r.type&&"PathBoundedTextItem"!=r.type&&"PlainTextItem"!=r.type||(r.isVertical=n.isVertical),r instanceof e&&(r.textRectangle=n.textRectangle)},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._isVertical,e._isVertical)&&Ac(this._textRectangle,e._textRectangle)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="AutoScaledTextItem"}(Ip),function(){function t(){this._allowChangeBarcodeType=!0,this._allowChangeBarcodeContent=!0,this._allowChangeBarcodeColor=!0,this.propertyChanged=new hu}return Object.defineProperty(t.prototype,"allowChangeBarcodeType",{get:function(){return this._allowChangeBarcodeType},set:function(t){this._allowChangeBarcodeType!==t&&(this._allowChangeBarcodeType=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowChangeBarcodeContent",{get:function(){return this._allowChangeBarcodeContent},set:function(t){this._allowChangeBarcodeContent!==t&&(this._allowChangeBarcodeContent=t,this.propertyChanged.fire())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowChangeBarcodeColor",{get:function(){return this._allowChangeBarcodeColor},set:function(t){this._allowChangeBarcodeColor!==t&&(this._allowChangeBarcodeColor=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),t.prototype.getSimplifiedObject=function(){var t={};return t.allowChangeBarcodeType=this.allowChangeBarcodeType,t.allowChangeBarcodeContent=this.allowChangeBarcodeContent,t.allowChangeBarcodeColor=this.allowChangeBarcodeColor,t},t.prototype.clone=function(){var e=new t;return e.allowChangeBarcodeType=this.allowChangeBarcodeType,e.allowChangeBarcodeContent=this.allowChangeBarcodeContent,e.allowChangeBarcodeColor=this.allowChangeBarcodeColor,e},t.prototype.equals=function(t){return this.allowChangeBarcodeColor===t.allowChangeBarcodeColor&&this.allowChangeBarcodeContent===t.allowChangeBarcodeContent&&this.allowChangeBarcodeType===t.allowChangeBarcodeType},t}());!function(t){t.AZTEC="AZTEC",t.CODABAR="CODABAR",t.CODE_39="CODE_39",t.CODE_93="CODE_93",t.CODE_128="CODE_128",t.DATA_MATRIX="DATA_MATRIX",t.EAN_8="EAN_8",t.EAN_13="EAN_13",t.ITF="ITF",t.PDF_417="PDF_417",t.QR_CODE="QR_CODE",t.UPC_A="UPC_A",t.UPC_E="UPC_E",t.MSI="MSI",t.PLESSEY="PLESSEY",t.IMB="IMB",t.DATABAR_EXPANDED_STACKED="DATABAR_EXPANDED_STACKED"}(Rp||(Rp={})),function(t){t.None="None",t.VCard="VCard",t.Phone="Phone",t.Url="Url",t.Data="Data"}(Ap||(Ap={}));var Bp,Lp=n("SRVR"),Fp=function(){function t(t){if(this.barcodeFormat=Rp.QR_CODE,this.barcodeSubType=Ap.None,Cu.isString(t))try{t=JSON.parse(t)}catch(e){console.warn("Unable to parse BarcodeData from string ",t,e),t=null}Cu.isObject(t)&&Cu.extend(this,t)}return Object.defineProperty(t.prototype,"isEmpty",{get:function(){return Cu.isEmpty(this.firstName)&&Cu.isEmpty(this.lastName)&&Cu.isEmpty(this.organization)&&Cu.isEmpty(this.position)&&Cu.isEmpty(this.email)&&Cu.isEmpty(this.mobilePhone)&&Cu.isEmpty(this.url)&&Cu.isEmpty(this.phone)&&Cu.isEmpty(this.data)&&Cu.isEmpty(this.barcodeValue)},enumerable:!0,configurable:!0}),t.prototype.equals=function(t){return null!=t&&this.barcodeFormat===t.barcodeFormat&&this.barcodeSubType===t.barcodeSubType&&this.firstName===t.firstName&&this.lastName===t.lastName&&this.organization===t.organization&&this.position===t.position&&this.email===t.email&&this.mobilePhone===t.mobilePhone&&this.url===t.url&&this.data===t.data&&this.phone===t.phone&&this.barcodeValue===t.barcodeValue},t.prototype._isEmpty=function(t){return Cu.isEmpty(null!=t?t.trim():null)},t.prototype.toVCardString=function(){return Lp.generate({n:[{value:[this.lastName,this.firstName,"","",""]}],"email;internet":[{value:this.email}],org:[{value:this.organization}],"tel;cell":[{value:this.mobilePhone}],"tel;work":[{value:this.phone}],title:[{value:this.position}],url:[{value:this.url}]})},t.fromVCardString=function(e){var n=null!=e?Lp.parse(e):{},r=new t;return r.barcodeFormat=Rp.QR_CODE,r.barcodeSubType=Ap.VCard,r.email=n.email&&n.email[0]&&n.email[0].value,r.lastName=n.n&&n.n[0]&&n.n[0].value[0],r.firstName=n.n&&n.n[0]&&n.n[0].value[1],r.organization=n.org&&n.org[0]&&n.org[0].value,r.mobilePhone=n.tel&&n.tel[0]&&n.tel[0].value,r.phone=n.tel&&n.tel[1]&&n.tel[1].value,r.position=n.title&&n.title[0]&&n.title[0].value,r.url=n.url&&n.url[0]&&n.url[0].value,r},t}(),Dp=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vp=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},zp=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},qp=(function(t){function e(n,r,o,i){var s=t.call(this)||this;return s._barcodeContent="",s._barcodeFormat=Rp.QR_CODE,s._barcodeOptions=new qp,s._barcodeSubType=Ap.Url,s._color=new Uc("rgb(0,0,0)"),s.type=e.type,s._onOptionsPropertyChanged=function(t,e){s._propertyChanged.notify(s,"barcodeOptions")},s._barcodePermissions=new Np,s._barcodeOptions.pureBarcode=!0,s._ignorePermissionsChange=!1,s.manipulationPermissions.resizeGrips=new Sh(!0,!1),s.itemPermissions.itemToolbarPermissions.showEditButton=!0,s.shapePermissions.allowChangeFillColor=!0,s.barcodePermissions.allowChangeBarcodeType=!1,s.barcodePermissions.allowChangeBarcodeColor=!0,s.barcodePermissions.allowChangeBarcodeContent=!0,s._ignorePermissionsChange=!0,s.fillColor=new Uc("rgba(255,255,255,1)"),null!=n&&(s._barcodeFormat=n),null!=r&&(s._barcodeContent=r),null!=o&&(s._barcodeOptions=o),s._subscribeOptionsPropertyChanged(),null!=i&&(s.sourceRectangle=i),s.applyPermissionsConstrain(),s}Dp(e,t),Object.defineProperty(e.prototype,"barcodePermissions",{get:function(){return this._barcodePermissions},set:function(t){if(null==t)throw new mu("barcodePermissions cannot be null");Ac(this._barcodePermissions,t)||(this._barcodePermissions.propertyChanged.remove(this._onPermissionsChanged),this._barcodePermissions=t,this._barcodePermissions.propertyChanged.add(this._onPermissionsChanged),this._onPermissionsChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"barcodeContent",{get:function(){return this._barcodeContent},set:function(t){this._barcodeContent!==t&&(this._barcodeContent=t,this._propertyChanged.notify(this,"barcodeContent"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"barcodeFormat",{get:function(){return this._barcodeFormat},set:function(t){this._barcodeFormat!==t&&(this._barcodeFormat=t,this._propertyChanged.notify(this,"barcodeFormat"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"barcodeSubType",{get:function(){return this._barcodeSubType},set:function(t){this._barcodeSubType!==t&&(this._barcodeSubType=t,this._propertyChanged.notify(this,"barcodeSubType"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){this._color.equals(t)||(this._color=t,this._propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"barcodeOptions",{get:function(){return this._barcodeOptions},set:function(t){JSON.stringify(this._barcodeOptions)!==JSON.stringify(t)&&(this._unsubscribeOptionsPropertyChanged(),this._barcodeOptions=t,this._subscribeOptionsPropertyChanged(),this._propertyChanged.notify(this,"barcodeOptions"))},enumerable:!0,configurable:!0}),e.prototype._subscribeOptionsPropertyChanged=function(){null!=this._barcodeOptions&&this._barcodeOptions.addPropertyChanged(this._onOptionsPropertyChanged)},e.prototype._unsubscribeOptionsPropertyChanged=function(){null!=this._barcodeOptions&&this._barcodeOptions.removePropertyChanged(this._onOptionsPropertyChanged)},Object.defineProperty(e.prototype,"isQrCode",{get:function(){return this.barcodeFormat===Rp.QR_CODE},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSquareCode",{get:function(){return this.barcodeFormat===Rp.QR_CODE||this.barcodeFormat===Rp.DATA_MATRIX},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLinearBarcode",{get:function(){return this.barcodeFormat===Rp.EAN_13||this.barcodeFormat===Rp.EAN_8||this.barcodeFormat==Rp.CODE_128||this.barcodeFormat===Rp.UPC_A||this.barcodeFormat===Rp.UPC_E},enumerable:!0,configurable:!0}),e.prototype._copy=function(e,n,r,o){t.prototype._copy.call(this,e,n,r,o),n.barcodePermissions=e.barcodePermissions.clone(),n.barcodeContent=e.barcodeContent,n.barcodeFormat=e.barcodeFormat,n.barcodeSubType=e.barcodeSubType,n.color=e.color.clone(),n.barcodeOptions=new qp,n.barcodeOptions.width=e.barcodeOptions.width,n.barcodeOptions.height=e.barcodeOptions.height,n.barcodeOptions.margin=e.barcodeOptions.margin,n.barcodeOptions.pureBarcode=e.barcodeOptions.pureBarcode,n.barcodeOptions.errorCorrection=e.barcodeOptions.errorCorrection,n.barcodeOptions.characterSet=e.barcodeOptions.characterSet,n.barcodeOptions.pdf417Compact=e.barcodeOptions.pdf417Compact,n.barcodeOptions.pdf417Compaction=e.barcodeOptions.pdf417Compaction,n.barcodeOptions.pdf417Dimensions=e.barcodeOptions.pdf417Dimensions,n.barcodeOptions.disableEci=e.barcodeOptions.disableEci,n.barcodeOptions.code128ForceCodesetB=e.barcodeOptions.code128ForceCodesetB,n.barcodeOptions.aztecLayers=e.barcodeOptions.aztecLayers,n.barcodeOptions.qrVersion=e.barcodeOptions.qrVersion,n.barcodeOptions.xDimension=e.barcodeOptions.xDimension,n.barcodeOptions.databarExpandedSegments=e.barcodeOptions.databarExpandedSegments},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._barcodePermissions,e._barcodePermissions)&&Ac(this._barcodeContent,e._barcodeContent)&&Ac(this._barcodeFormat,e._barcodeFormat)&&Ac(this._barcodeSubType,e._barcodeSubType)&&Ac(this._color,e._color)&&Ac(this._barcodeOptions,e._barcodeOptions)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.prototype.getSimplifiedObject=function(e){Cu.isArray(e)||Cu.isString(e)||(e=[]);var n=t.prototype.getSimplifiedObject.call(this,["barcodePermissions","isQrCode","isLinearBarcode","isSquareCode","barcodeData"].concat(e));return n.barcodePermissions=this.barcodePermissions.getSimplifiedObject(),n},e.prototype.applyPermissionsConstrain=function(){null!=this.itemPermissions&&null!=this.itemPermissions.itemToolbarPermissions&&(this.itemPermissions.itemToolbarPermissions.showEditButtonConstraint=null==this.barcodePermissions||this.barcodePermissions.allowChangeBarcodeContent?null:this.barcodePermissions.allowChangeBarcodeContent,this.itemPermissions.itemToolbarPermissions.showSelectButton=!1)},Object.defineProperty(e.prototype,"barcodeData",{get:function(){var t=new Fp;switch(t.barcodeSubType=this.barcodeSubType,t.barcodeFormat=this.barcodeFormat,t.barcodeFormat){default:t.barcodeValue=this.barcodeContent;break;case Rp.QR_CODE:switch(this.barcodeSubType){case Ap.Phone:t.phone=this.barcodeContent;break;case Ap.Url:t.url=this.barcodeContent;break;case Ap.Data:t.data=this.barcodeContent;break;case Ap.VCard:return Fp.fromVCardString(this.barcodeContent)}}return t},enumerable:!0,configurable:!0}),e.prototype.applyBarcodeData=function(t){this.barcodeFormat=t.barcodeFormat,this.barcodeSubType=null!=t.barcodeSubType?t.barcodeSubType:this.barcodeFormat===Rp.QR_CODE?Ap.Phone:Ap.None;var e="";switch(this.barcodeFormat){case Rp.QR_CODE:switch(this.barcodeSubType){case Ap.Phone:e=t.phone;break;case Ap.Data:e=t.data;break;case Ap.None:case Ap.Url:e=t.url;break;case Ap.VCard:e=t.toVCardString()}break;default:e=t.barcodeValue}this.barcodeContent=e},e.type="BarcodeItem",Vp([oh({enumObject:Rp}),zp("design:type",String),zp("design:paramtypes",[String])],e.prototype,"barcodeFormat",null),Vp([oh({enumObject:Ap}),zp("design:type",String),zp("design:paramtypes",[String])],e.prototype,"barcodeSubType",null)}(up),function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Dp(e,t),e.prototype.equals=function(t){return null!=t&&Ac(this.width,t.width)&&Ac(this.height,t.height)&&Ac(this.margin,t.margin)&&Ac(this.pureBarcode,t.pureBarcode)&&Ac(this.errorCorrection,t.errorCorrection)&&Ac(this.characterSet,t.characterSet)&&Ac(this.pdf417Compact,t.pdf417Compact)&&Ac(this.pdf417Compaction,t.pdf417Compaction)&&Cu.isEqual(this.pdf417Dimensions,t.pdf417Dimensions)&&Ac(this.disableEci,t.disableEci)&&Ac(this.code128ForceCodesetB,t.code128ForceCodesetB)&&Ac(this.aztecLayers,t.aztecLayers)&&Ac(this.qrVersion,t.qrVersion)&&Ac(this.xDimension,t.xDimension&&Ac(this.databarExpandedSegments,t.databarExpandedSegments))},e.type="EncodingOptions",Vp([ih(),oh({factory:new Zh(0)}),zp("design:type",Number)],e.prototype,"width",void 0),Vp([ih(),oh({factory:new Zh(0)}),zp("design:type",Number)],e.prototype,"height",void 0),Vp([ih(),oh({factory:new Zh(0)}),zp("design:type",Number)],e.prototype,"margin",void 0),Vp([ih(),oh({factory:new Zh(!0)}),zp("design:type",Boolean)],e.prototype,"pureBarcode",void 0),Vp([ih(),oh({factory:new Zh("")}),zp("design:type",String)],e.prototype,"errorCorrection",void 0),Vp([ih(),oh({factory:new Zh("")}),zp("design:type",String)],e.prototype,"characterSet",void 0),Vp([ih(),oh({factory:new Zh(!1)}),zp("design:type",Boolean)],e.prototype,"pdf417Compact",void 0),Vp([ih(),oh({factory:new Zh("")}),zp("design:type",String)],e.prototype,"pdf417Compaction",void 0),Vp([ih(),zp("design:type",Object)],e.prototype,"pdf417Dimensions",void 0),Vp([ih(),oh({factory:new Zh(!1)}),zp("design:type",Boolean)],e.prototype,"disableEci",void 0),Vp([ih(),oh({factory:new Zh(!1)}),zp("design:type",Boolean)],e.prototype,"code128ForceCodesetB",void 0),Vp([ih(),oh({factory:new Zh(0)}),zp("design:type",Number)],e.prototype,"aztecLayers",void 0),Vp([ih(),oh({factory:new Zh(0)}),zp("design:type",Number)],e.prototype,"qrVersion",void 0),Vp([ih(),oh({factory:new Zh(0)}),zp("design:type",Number)],e.prototype,"xDimension",void 0),Vp([ih(),oh({factory:new Zh(0)}),zp("design:type",Number)],e.prototype,"databarExpandedSegments",void 0),e}(ah)),Up=function(){function t(t){this.FirstLineIndent=0,this.SpaceAfter=0,this.SpaceBefore=0,this.LeftIndent=0,this.RightIndent=0,null!=t&&(this.FirstLineIndent="number"==typeof t.FirstLineIndent?t.FirstLineIndent:0,this.SpaceAfter="number"==typeof t.SpaceAfter?t.SpaceAfter:0,this.SpaceBefore="number"==typeof t.SpaceBefore?t.SpaceBefore:0,this.LeftIndent="number"==typeof t.LeftIndent?t.LeftIndent:0,this.RightIndent="number"==typeof t.RightIndent?t.RightIndent:0)}return t.prototype.equals=function(e){return e instanceof t&&Ec(this.FirstLineIndent,e.FirstLineIndent)&&Ec(this.SpaceAfter,e.SpaceAfter)&&Ec(this.SpaceBefore,e.SpaceBefore)&&Ec(this.LeftIndent,e.LeftIndent)&&Ec(this.RightIndent,e.RightIndent)},t.equals=function(t,e){return null==t&&null==e||null!=t&&null!=e&&t.equals(e)},t.prototype.clone=function(){return new t(this)},t}(),Hp=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wp=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},Gp=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},$p=(function(t){function e(n,r,o,i){var s=t.call(this,n,o,i)||this;return s._textRectangle=new Cc,s._verticalAlignment=gp.Top,s._isVertical=!1,s._paragraphSettings=new Up,s._wrappingPath=null,s._wrappingMargin=7,s._scheduledFitMode=null,s._shrinkMode=pp.Size,s._overflowStrategy=fp.Clip,s._originalVerticalScale=1,s._originalHorizontalScale=1,s._characterLimit=null,s._firstBaselineOffset=yp.Ascent,s._firstBaselineMinOffset=0,s.type=e.type,null!=r&&(s.textRectangle=r,s.sourcePath=Tc.rectangle(r.left,r.top,r.width,r.height)),s}Hp(e,t),Object.defineProperty(e.prototype,"textRectangle",{get:function(){return this._textRectangle},set:function(t){Cc.isEqual(this._textRectangle,t)||(this._textRectangle=t,this._propertyChanged.notify(this,"textRectangle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalAlignment",{get:function(){return this._verticalAlignment},set:function(t){this._verticalAlignment!==t&&(this._verticalAlignment=t,this._propertyChanged.notify(this,"verticalAlignment"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVertical",{get:function(){return this._isVertical},set:function(t){this._isVertical!==t&&(this._isVertical=t,this._propertyChanged.notify(this,"isVertical"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paragraphSettings",{get:function(){return this._paragraphSettings},set:function(t){this._paragraphSettings.equals(t)||(this._paragraphSettings=t,this._propertyChanged.notify(this,"paragraphSettings"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrappingPath",{get:function(){return this._wrappingPath},set:function(t){null==this._wrappingPath&&null==t||null!=this._wrappingPath&&this._wrappingPath.isEqual(t)||(this._wrappingPath=t,this._propertyChanged.notify(this,"wrappingPath"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrappingMargin",{get:function(){return this._wrappingMargin},set:function(t){this._wrappingMargin!==t&&(this._wrappingMargin=t,this._propertyChanged.notify(this,"wrappingMargin"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scheduledFitMode",{get:function(){return this._scheduledFitMode},set:function(t){this._scheduledFitMode!==t&&(this._scheduledFitMode=t,null!=t&&this._propertyChanged.notify(this,"scheduledFitMode"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shrinkMode",{get:function(){return this._shrinkMode},set:function(t){this._shrinkMode!==t&&(this._shrinkMode=t,null!=t&&this._propertyChanged.notify(this,"shrinkMode"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overflowStrategy",{get:function(){return this._overflowStrategy},set:function(t){this._overflowStrategy!==t&&(this._overflowStrategy=t,null!=t&&this._propertyChanged.notify(this,"overflowStrategy"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalVerticalScale",{get:function(){return this._originalVerticalScale},set:function(t){this._originalVerticalScale!==t&&(this._originalVerticalScale=t,null!=t&&this._propertyChanged.notify(this,"originalVerticalScale"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalHorizontalScale",{get:function(){return this._originalHorizontalScale},set:function(t){this._originalHorizontalScale!==t&&(this._originalHorizontalScale=t,null!=t&&this._propertyChanged.notify(this,"originalHorizontalScale"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"characterLimit",{get:function(){return this._characterLimit},set:function(t){Ec(this._characterLimit,t)||(this._characterLimit=t,null!=t&&this._propertyChanged.notify(this,"characterLimit"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstBaselineOffset",{get:function(){return this._firstBaselineOffset},set:function(t){this._firstBaselineOffset!==t&&(this._firstBaselineOffset=t,null!=t&&this._propertyChanged.notify(this,"firstBaselineOffset"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstBaselineMinOffset",{get:function(){return this._firstBaselineMinOffset},set:function(t){Ec(this._firstBaselineMinOffset,t)||(this._firstBaselineMinOffset=t,null!=t&&this._propertyChanged.notify(this,"firstBaselineMinOffset"))},enumerable:!0,configurable:!0}),e.prototype._copy=function(n,r,o,i){t.prototype._copy.call(this,n,r,o,i),"AutoScaledTextItem"!=r.type&&"BoundedTextItem"!=r.type&&"PathBoundedTextItem"!=r.type&&"PlainTextItem"!=r.type||(r.isVertical=n.isVertical),"BoundedTextItem"!=r.type&&"PathBoundedTextItem"!=r.type||(r.paragraphSettings=n.paragraphSettings.clone(),r.wrappingPath=null!=n.wrappingPath?n.wrappingPath.clone():null,r.wrappingMargin=n.wrappingMargin,r.characterLimit=n.characterLimit,r.firstBaselineOffset=n.firstBaselineOffset,r.firstBaselineMinOffset=n.firstBaselineMinOffset),r instanceof e&&(r.textRectangle=n.textRectangle.clone(),r.verticalAlignment=n.verticalAlignment,r.scheduledFitMode=n.scheduledFitMode,r.shrinkMode=n.shrinkMode,r.overflowStrategy=n.overflowStrategy,r.originalVerticalScale=n.originalVerticalScale,r.originalHorizontalScale=n.originalHorizontalScale)},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._isVertical,e._isVertical)&&Ac(this._textRectangle,e._textRectangle)&&Ac(this._verticalAlignment,e._verticalAlignment)&&Ac(this._paragraphSettings,e._paragraphSettings)&&Ac(this._wrappingPath,e._wrappingPath)&&Ac(this._wrappingMargin,e._wrappingMargin)&&Ac(this._scheduledFitMode,e._scheduledFitMode)&&Ac(this._shrinkMode,e._shrinkMode)&&Ac(this._overflowStrategy,e._overflowStrategy)&&Ac(this._originalVerticalScale,e._originalVerticalScale)&&Ac(this._originalHorizontalScale,e._originalHorizontalScale)&&Ac(this.characterLimit,e.characterLimit)&&Ac(this.firstBaselineOffset,e.firstBaselineOffset)&&Ac(this.firstBaselineMinOffset,e.firstBaselineMinOffset)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="BoundedTextItem",Wp([oh({enumObject:gp}),Gp("design:type",Number),Gp("design:paramtypes",[Number])],e.prototype,"verticalAlignment",null),Wp([oh({factory:new Kh(Tc),displayName:"Wrapping path"}),Gp("design:type",Tc),Gp("design:paramtypes",[Tc])],e.prototype,"wrappingPath",null),Wp([oh({enumObject:hp}),Gp("design:type",Number),Gp("design:paramtypes",[Number])],e.prototype,"scheduledFitMode",null),Wp([oh({enumObject:pp}),Gp("design:type",Number),Gp("design:paramtypes",[Number])],e.prototype,"shrinkMode",null),Wp([oh({enumObject:fp}),Gp("design:type",Number),Gp("design:paramtypes",[Number])],e.prototype,"overflowStrategy",null),Wp([oh({factory:new Zh(50),displayName:"Character Limit"}),Gp("design:type",Number),Gp("design:paramtypes",[Number])],e.prototype,"characterLimit",null),Wp([oh({enumObject:yp}),Gp("design:type",Number),Gp("design:paramtypes",[Number])],e.prototype,"firstBaselineOffset",null)}(Ip),function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),Yp=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Xp=function(){function t(){this.propertyChanged=new hu,this.allowReplaceContentConstraint=null,this._allowReplaceContent=!0,this.allowUngroupContraint=null,this._allowUngroup=!0,this.allowSelectNestedItemsContraint=null,this._allowSelectNestedItems=!0}return Object.defineProperty(t.prototype,"allowReplaceContent",{get:function(){return null!=this.allowReplaceContentConstraint?this.allowReplaceContentConstraint:this._allowReplaceContent},set:function(t){this._allowReplaceContent!==t&&(this._allowReplaceContent=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowUngroup",{get:function(){return null!=this.allowUngroupContraint?this.allowUngroupContraint:this._allowUngroup},set:function(t){this._allowUngroup!==t&&(this._allowUngroup=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowSelectNestedItems",{get:function(){return null!=this.allowSelectNestedItemsContraint?this.allowSelectNestedItemsContraint:this._allowSelectNestedItems},set:function(t){this._allowSelectNestedItems!==t&&(this._allowSelectNestedItems=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),t.prototype.getSimplifiedObject=function(){return{allowReplaceContent:this._allowReplaceContent,allowSelectNestedItems:this._allowSelectNestedItems,allowUngroup:this._allowUngroup}},t.prototype.clone=function(){var e=new t;return e.allowReplaceContent=this._allowReplaceContent,e.allowReplaceContentConstraint=this.allowReplaceContentConstraint,e.allowSelectNestedItems=this._allowSelectNestedItems,e.allowSelectNestedItemsContraint=this.allowSelectNestedItemsContraint,e.allowUngroup=this._allowUngroup,e.allowUngroupContraint=this.allowUngroupContraint,e},t.prototype.equals=function(t){return this.allowReplaceContent===t.allowReplaceContent&&this.allowReplaceContentConstraint===t.allowReplaceContentConstraint&&this.allowSelectNestedItems===t.allowSelectNestedItems&&this.allowSelectNestedItemsContraint===t.allowSelectNestedItemsContraint&&this.allowUngroup===t.allowUngroup&&this.allowUngroupContraint===t.allowUngroupContraint},$p([oh({ignore:!0}),Yp("design:type",Boolean)],t.prototype,"allowReplaceContentConstraint",void 0),t}(),Zp=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jp=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Kp=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Jp(arguments[e]));return t},Qp=function(t){function e(n){var r=t.call(this)||this;return r.items=new _h,r.type=e.type,r.groupItemPermissions=new Xp,r._ignorePermissionsChange=!0,r._groupItemPermissions.allowReplaceContent=!1,r._ignorePermissionsChange=!1,r.items.add_itemAdded((function(t){t.item.parentGroupItem=r,r._propertyChanged.notify(r,"items")})),r.items.add_itemRemoved((function(t){t.item.parentGroupItem=null,r._propertyChanged.notify(r,"items")})),null!=n&&r.items.addRange(n),r}return Zp(e,t),Object.defineProperty(e.prototype,"groupItemPermissions",{get:function(){return this._groupItemPermissions},set:function(t){if(null==t)throw new mu("groupItemPermissions cannot be null");Ac(this._groupItemPermissions,t)||(null!=this._groupItemPermissions&&this._groupItemPermissions.propertyChanged.remove(this._onPermissionsChanged),this._groupItemPermissions=t,this._groupItemPermissions.propertyChanged.add(this._onPermissionsChanged),this._onPermissionsChanged())},enumerable:!0,configurable:!0}),e.prototype.addItems=function(t,e){var n;null!=e&&(t=t.reverse()),null!=t&&0!==t.length&&(null!=e&&e>-1?this.items.insertAt(e,t):(n=this.items).add.apply(n,Kp(t)))},e.prototype._onContainerChanged=function(){var t=this;this.applyToItems((function(e){e.parentContainer=t.parentContainer}))},e.prototype.addItem=function(t,e){null!=e&&e>-1?this.items.insertAt(e,t):this.items.add(t)},e.prototype.removeItems=function(t){var e,n;if(null!=t&&t.length>0)try{for(var r=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),o=r.next();!o.done;o=r.next())this.items.remove(o.value)}catch(i){e={error:i}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}},e.prototype.getNestedItems=function(t){void 0===t&&(t=!1);for(var n=[],r=Kp(this.items);r.length>0;){var o=r.shift();o instanceof e&&(r.splice.apply(r,Kp([r.indexOf(o),0],o.items)),t)||n.push(o)}return n},e.prototype.getSimplifiedObject=function(e){void 0===e&&(e=[]);var n=t.prototype.getSimplifiedObject.call(this,["groupManipulationPermissions","itemRemovedEvent","groupItemPermissions","items"].concat(e));return n.items=this.items.toArray().map((function(t){return t.getSimplifiedObject()})),n.groupItemPermissions=this.groupItemPermissions.getSimplifiedObject(),n},e.prototype._copy=function(e,n,r,o){if(t.prototype._copy.call(this,e,n,r,o),!(e.items.length<=0)){var i=e.items.toArray().map((function(t){return t.clone(r,o)}));n.items.clear(),n.items.addRange(i),n.groupItemPermissions=e.groupItemPermissions.clone()}},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.prototype.applyPermissionsConstrain=function(){t.prototype.applyPermissionsConstrain.call(this),this.itemPermissions.itemToolbarPermissions.showEditButton=!1,this.itemPermissions.itemToolbarPermissions.showSelectButton=!1},e.prototype.applyToItems=function(t){this.items.forEach(t)},Object.defineProperty(e.prototype,"manipulationPermissions",{get:function(){if(0===this.items.length)return this.groupManipulationPermissions;var t=this.groupManipulationPermissions.clone();return this.getNestedItems(!0).forEach((function(e){t.allowDelete=t.allowDelete&&e.manipulationPermissions.allowDelete})),Object.freeze(t),t},set:function(t){throw new Error("You cannot use ManipulationPermissions setter with GroupItem. Use groupManipulationPermissions setter instead")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"groupManipulationPermissions",{get:function(){return t.prototype.getManipulationPermissions.call(this)},set:function(e){t.prototype.setManipulationPermissions.call(this,e)},enumerable:!0,configurable:!0}),e.prototype.isChildVisible=function(t){return!0},e.prototype.equals=function(e){var n=t.prototype.equals.call(this,e),r=Ac(this.groupItemPermissions,e.groupItemPermissions),o=Mc(Kp(this.items),Kp(e.items));return n&&r&&o},e.type="GroupItem",e}(Wh),tf=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ef=function(){return(ef=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},nf=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},rf=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(nf(arguments[e]));return t},of=(function(t){function e(n,r){void 0===r&&(r=null);var o=t.call(this,n)||this;return o.type=e.type,o._colorGroups=[],o._onItemAdded=function(t){e._generateColorGroups([t.item]).forEach((function(t){var e;if(t.targets=t.targets.filter((function(t){return!o.colorGroups.some((function(e){return e.targets.some((function(e){return e.itemId===t.itemId&&e.prop===t.prop}))}))})),!(t.targets.length<1)){var n=o.colorGroups.find((function(e){return e.color.equals(t.color)}));null!=n?(e=n.targets).push.apply(e,rf(t.targets)):(null==o.themeBinding.clipartColors&&(o.themeBinding.clipartColors=new Array(o.colorGroups.length).fill(null)),o.colorGroups.push(t),o.themeBinding.clipartColors.push(null))}}))},o._onItemRemoved=function(t){var e=t.item.id;o.colorGroups.forEach((function(t){t.targets.some((function(t){return t.itemId===e}))&&(t.targets=t.targets.filter((function(t){return t.itemId!==e})))})),o.colorGroups.some((function(t){return 0===t.targets.length}))&&o.colorGroups.filter((function(t){return 0===t.targets.length})).map((function(t){return o.colorGroups.indexOf(t)})).forEach((function(t){o.colorGroups.splice(t,1),null!=o.themeBinding.clipartColors&&o.themeBinding.clipartColors.splice(t,1)}))},o._ignorePermissionsChange=!0,o.groupItemPermissions.allowSelectNestedItems=!1,o.groupItemPermissions.allowUngroup=!1,o._ignorePermissionsChange=!1,o.colorGroups=null!=r?r:e._generateColorGroups(o.items.toArray()),o.items.add_itemAdded(o._onItemAdded),o.items.add_itemRemoved(o._onItemRemoved),o}tf(e,t),e.prototype.getSimplifiedObject=function(e){return void 0===e&&(e=[]),t.prototype.getSimplifiedObject.call(this,e)},e.prototype._copy=function(e,n,r,o){t.prototype._copy.call(this,e,n,r,o);var i=e.colorGroups.map((function(t){return t.clone()}));if(r){var s=n.items.toArray().map((function(t){return t.id})),a=e.items.toArray().map((function(t){return t.id})),l=i.reduce((function(t,e){return rf(t,e.targets)}),[]);s.forEach((function(t,e){return l.filter((function(t){return t.itemId===a[e]})).forEach((function(e){return e.itemId=t}))}))}n.colorGroups=i},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.prototype.applyPermissionsConstrain=function(){t.prototype.applyPermissionsConstrain.call(this),null!=this.groupItemPermissions&&(this.groupItemPermissions.allowSelectNestedItemsContraint=!1,this.groupItemPermissions.allowUngroupContraint=!1)},Object.defineProperty(e.prototype,"colorGroups",{get:function(){return this._colorGroups},set:function(t){this._colorGroups=t},enumerable:!0,configurable:!0}),e.prototype.setColor=function(t,e){var n=this;if(!this.colorGroups.includes(t))throw Error("Unexpected colorgroup");var r=e instanceof zc?e:e.color;t.color.equals(r)||(e instanceof zc||(null==this.themeBinding.clipartColors&&(this.themeBinding.clipartColors=new Array(this.colorGroups.length).fill(null)),this.themeBinding.clipartColors[this.colorGroups.indexOf(t)]=e.title),t.targets.forEach((function(t){var e=t.prop,o=t.itemId,i=n.items.first((function(t){return t.id===o}));if(!(i instanceof ip))throw new Error("Unexpected item in colorgroup");n._setShapeItemColor(e,i,r.clone())})),t.color=r.clone(),this._propertyChanged.notify(this,"colorGroups"))},e._generateColorGroups=function(t){return t.filter((function(t){return t instanceof ip})).reduce((function(t,e){var n=t.find((function(t){return t.color.equals(e.fillColor)}));if(null==n&&(n=new of(e.fillColor),t.push(n)),n.targets.push({itemId:e.id,prop:Bp.FillColor}),e.borderWidth>0){var r=t.find((function(t){return t.color.equals(e.borderColor)}));null==r&&(r=new of(e.borderColor),t.push(r)),r.targets.push({itemId:e.id,prop:Bp.BorderColor})}return t}),[])},e.prototype._setShapeItemColor=function(t,e,n){switch(t){case Bp.BorderColor:e.borderColor=n;break;case Bp.FillColor:e.fillColor=n}},e.type="ClipartItem"}(Qp),function(){function t(t,e){void 0===e&&(e=[]),this.color=t,this.targets=e}return t.prototype.clone=function(){return new t(this.color.clone(),rf(this.targets.map((function(t){return ef({},t)}))))},t}());!function(t){t[t.BorderColor=0]="BorderColor",t[t.FillColor=1]="FillColor"}(Bp||(Bp={}));var sf,af=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},lf=function(){function t(t){this._allowChangeImage=!0,this.allowEditImageConstraint=null,this._allowEditImage=!0,this._allowKeepOverlayColor=!1,this.propertyChanged=new hu,null==t&&(t=!0),this.allowChangeImage=t,this.allowEditImage=t,this.allowKeepOverlayColor=t}return Object.defineProperty(t.prototype,"allowChangeImage",{get:function(){return this._allowChangeImage},set:function(t){this._allowChangeImage!==t&&(this._allowChangeImage=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowEditImage",{get:function(){return null!=this.allowEditImageConstraint?this.allowEditImageConstraint:this._allowEditImage},set:function(t){this._allowEditImage!==t&&(this._allowEditImage=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowKeepOverlayColor",{get:function(){return this._allowKeepOverlayColor},set:function(t){this._allowKeepOverlayColor!==t&&(this._allowKeepOverlayColor=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t;return e.allowChangeImage=this.allowChangeImage,e.allowEditImage=this.allowEditImage,e.allowKeepOverlayColor=this.allowKeepOverlayColor,e},t.prototype.equals=function(t){return this.allowChangeImage===t.allowChangeImage&&this.allowEditImage===t.allowEditImage&&this.allowKeepOverlayColor===t.allowKeepOverlayColor},t.prototype.getSimplifiedObject=function(){var t={};return t.allowChangeImage=this.allowChangeImage,t.allowEditImage=this.allowEditImage,t.allowKeepOverlayColor=this.allowKeepOverlayColor,t},function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);i>3&&s&&Object.defineProperty(e,n,s)}([oh({ignore:!0}),af("design:type",Boolean)],t.prototype,"allowEditImageConstraint",void 0),t}(),uf=function(){function t(){var t=this;this._onPermissionsChanged=function(){t.propertyChanged.notify()},this.propertyChanged=new hu,this._imagePermissions=new lf,this._barcodePermissions=new Np,this._imagePermissions.propertyChanged.add(this._onPermissionsChanged),this._barcodePermissions.propertyChanged.add(this._onPermissionsChanged)}return Object.defineProperty(t.prototype,"barcodePermissions",{get:function(){return this._barcodePermissions},set:function(t){if(null==t)throw new mu("barcodePermissions cannot be null");this._barcodePermissions.propertyChanged.remove(this._onPermissionsChanged),this._barcodePermissions=t,this._barcodePermissions.propertyChanged.add(this._onPermissionsChanged),this._onPermissionsChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imagePermissions",{get:function(){return this._imagePermissions},set:function(t){if(null==t)throw new mu("imagePermissions cannot be null");this._imagePermissions.propertyChanged.remove(this._onPermissionsChanged),this._imagePermissions=t,this._imagePermissions.propertyChanged.add(this._onPermissionsChanged),this._onPermissionsChanged()},enumerable:!0,configurable:!0}),t.prototype.getSimplifiedObject=function(){return{imagePermissions:this.imagePermissions.getSimplifiedObject(),barcodePermissions:this.barcodePermissions.getSimplifiedObject()}},t.prototype.clone=function(){var e=new t;return e.barcodePermissions=this.barcodePermissions.clone(),e.imagePermissions=this.imagePermissions.clone(),e},t.prototype.equals=function(t){return Ac(this.barcodePermissions,t.barcodePermissions)&&Ac(this.imagePermissions,t.imagePermissions)},t}(),cf=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hf=(function(t){function e(n,r,o,i){var s=t.call(this,n,o,i)||this;return s._textPath=new Tc,s._fitToPath=!1,s._stretch=!1,s._originalFontSize=0,s._fitToPathStep=1,s._start=0,s.type=e.type,null!=r&&(s.textPath=r),s._ignorePermissionsChange=!0,s.manipulationPermissions.resizeGrips.setCornerArbitrary(!1),s.manipulationPermissions.resizeGrips.edge=!1,s._ignorePermissionsChange=!1,s}cf(e,t),Object.defineProperty(e.prototype,"textPath",{get:function(){return this._textPath},set:function(t){this._textPath.equals(t)||(this._textPath=t,this._propertyChanged.notify(this,"textPath"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitToPath",{get:function(){return this._fitToPath},set:function(t){this._fitToPath!==t&&(this._fitToPath=t,this._propertyChanged.notify(this,"fitToPath"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stretch",{get:function(){return this._stretch},set:function(t){this._stretch!==t&&(this._stretch=t,this._propertyChanged.notify(this,"stretch"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(t){this._start!==t&&(this._start=t,this._propertyChanged.notify(this,"start"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},set:function(t){this._end!==t&&(this._end=t,this._propertyChanged.notify(this,"end"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"originalFontSize",{get:function(){return this._originalFontSize},set:function(t){Ec(this._originalFontSize,t)||(this._originalFontSize=t,this._propertyChanged.notify(this,"originalFontSize"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitToPathStep",{get:function(){return this._fitToPathStep},set:function(t){Ec(this._fitToPathStep,t)||(this._fitToPathStep=t,this._propertyChanged.notify(this,"fitToPathStep"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxLineCount",{get:function(){return 1},set:function(t){throw new vu("Max Line Count of Curved Text can not be redefined!")},enumerable:!0,configurable:!0}),e.prototype.getSimplifiedObject=function(e){return t.prototype.getSimplifiedObject.call(this,["maxLineCount"].concat(e))},e.prototype.applyPermissionsConstrain=function(){t.prototype.applyPermissionsConstrain.call(this),null!=this.manipulationPermissions&&(this.manipulationPermissions.resizeGrips.setCornerArbitrary(!1),this.manipulationPermissions.resizeGrips.edge=!1)},e.prototype._copy=function(n,r,o,i){t.prototype._copy.call(this,n,r,o,i),r instanceof e&&(r.textPath=n.textPath.clone(),r.fitToPath=n.fitToPath,r.stretch=n.stretch,r.originalFontSize=n.originalFontSize,r.fitToPathStep=n.fitToPathStep,r.start=n.start,r.end=n.end)},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._textPath,e._textPath)&&Ac(this._fitToPath,e._fitToPath)&&Ac(this._stretch,e._stretch)&&Ac(this._originalFontSize,e._originalFontSize)&&Ac(this._fitToPathStep,e._fitToPathStep)&&Ac(this._start,e._start)&&Ac(this._end,e._end)&&Ac(this._textPath,e._textPath)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="CurvedTextItem"}(Ip),function(){function t(t){this._allowChangeLineWidth=!0,this._allowChangeLineColor=!0,this.propertyChanged=new hu,null==t&&(t=!0),this.allowChangeLineWidth=t,this.allowChangeLineColor=t}return Object.defineProperty(t.prototype,"allowChangeLineWidth",{get:function(){return this._allowChangeLineWidth},set:function(t){this._allowChangeLineWidth!==t&&(this._allowChangeLineWidth=t,this.propertyChanged.notify("allowChangeLineWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowChangeLineColor",{get:function(){return this._allowChangeLineColor},set:function(t){this._allowChangeLineColor!==t&&(this._allowChangeLineColor=t,this.propertyChanged.notify("allowChangeLineColor"))},enumerable:!0,configurable:!0}),t.prototype.getSimplifiedObject=function(){var t={};return t.allowChangeLineWidth=this.allowChangeLineWidth,t.allowChangeLineColor=this.allowChangeLineColor,t},t.prototype.clone=function(){var e=new t;return e.allowChangeLineWidth=this.allowChangeLineWidth,e.allowChangeLineColor=this.allowChangeLineColor,e},t.prototype.equals=function(t){return this.allowChangeLineColor===t.allowChangeLineColor&&this.allowChangeLineWidth===t.allowChangeLineWidth},t}()),pf=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ff=function(t){function e(n,r){var o=t.call(this)||this;return o._width=4,o._color=new Uc("rgba(0, 0, 0, 1)"),o._sourcePoint0=new vc,o._sourcePoint1=new vc,o._fixedWidth=!1,o._overprintStroke=!1,o.lineColorForAbnormalRendering=new Uc("rgb(0,0,0)"),o.type=e.type,o._sourcePoint0=null!=n?n:new vc,o._sourcePoint1=null!=r?r:new vc,o._linePermissions=new hf,o._linePermissions.propertyChanged.add(o._onPermissionsChanged),o._ignorePermissionsChange=!0,o.itemPermissions.itemToolbarPermissions.showEditButton=!1,o.itemPermissions.itemToolbarPermissions.showSelectButton=!1,o._ignorePermissionsChange=!1,o}return pf(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){Ec(this._width,t)||(this._width=t,this._propertyChanged.notify(this,"width"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){zc.equals(this._color,t)||(this._color=t,this._propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourcePoint0",{get:function(){return this._sourcePoint0},set:function(t){vc.isEqual(this._sourcePoint0,t)||(this._sourcePoint0=t,this._propertyChanged.notify(this,"sourcePoint0"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourcePoint1",{get:function(){return this._sourcePoint1},set:function(t){vc.isEqual(this._sourcePoint1,t)||(this._sourcePoint1=t,this._propertyChanged.notify(this,"sourcePoint1"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedWidth",{get:function(){return this._fixedWidth},set:function(t){this._fixedWidth!==t&&(this._fixedWidth=t,this._propertyChanged.notify(this,"fixedWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"linePermissions",{get:function(){return this._linePermissions},set:function(t){if(null==t)throw new mu("linePermissions cannot be null");Ac(this._linePermissions,t)||(this._linePermissions.propertyChanged.remove(this._onPermissionsChanged),this._linePermissions=t,this._linePermissions.propertyChanged.add(this._onPermissionsChanged),this._onPermissionsChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overprintStroke",{get:function(){return this._overprintStroke},set:function(t){t!=this._overprintStroke&&(this._overprintStroke=t,this._propertyChanged.notify(this,"overprintStroke"))},enumerable:!0,configurable:!0}),e.prototype._subscribeToPermissionChanged=function(){this._linePermissions.propertyChanged.add(this._onPermissionsChanged)},e.prototype._unsubscribeFromPermissionChanged=function(){this._linePermissions.propertyChanged.remove(this._onPermissionsChanged)},e.prototype.applyPermissionsConstrain=function(){t.prototype.applyPermissionsConstrain.call(this),this.itemPermissions.itemToolbarPermissions.showEditButton=!1,this.itemPermissions.itemToolbarPermissions.showSelectButton=!1,this.isRenderTypeIsNormal||(this.linePermissions.allowChangeLineColor=!1)},e.prototype.getSimplifiedObject=function(e){var n=t.prototype.getSimplifiedObject.call(this,["linePermissions"].concat(e));return n.linePermissions=this.linePermissions.getSimplifiedObject(),n},e.prototype._copy=function(e,n,r,o){t.prototype._copy.call(this,e,n,r,o),n.width=e.width,n.color=e.color.clone(),n.sourcePoint0=e.sourcePoint0.clone(),n.sourcePoint1=e.sourcePoint1.clone(),n.fixedWidth=e.fixedWidth,n.linePermissions=null!=e._linePermissions?e._linePermissions.clone():null,n.overprintStroke=e.overprintStroke},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._width,e._width)&&Ac(this._color,e._color)&&Ac(this._sourcePoint0,e._sourcePoint0)&&Ac(this._sourcePoint1,e._sourcePoint1)&&Ac(this._fixedWidth,e._fixedWidth)&&Ac(this._linePermissions,e._linePermissions)&&Ac(this._overprintStroke,e._overprintStroke)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="LineItem",e}(Wh),df=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gf=(function(t){function e(n,r){var o=t.call(this,n,r)||this;return o._dashWidth=3,o._altDashWidth=3,o._altColor=new Uc("rgba(0,0,0,0)"),o.type=e.type,o}df(e,t),Object.defineProperty(e.prototype,"dashWidth",{get:function(){return this._dashWidth},set:function(t){Ec(this._dashWidth,t)||(this._dashWidth=t,this._propertyChanged.notify(this,"dashWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"altDashWidth",{get:function(){return this._altDashWidth},set:function(t){Ec(this._altDashWidth,t)||(this._altDashWidth=t,this._propertyChanged.notify(this,"altDashWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"altColor",{get:function(){return this._altColor},set:function(t){zc.equals(this._altColor,t)||(this._altColor=t,this._propertyChanged.notify(this,"altColor"))},enumerable:!0,configurable:!0}),e.prototype._copy=function(e,n,r,o){t.prototype._copy.call(this,e,n,r,o),n.dashWidth=e.dashWidth,n.altDashWidth=e.altDashWidth,n.altColor=e.altColor.clone()},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._dashWidth,e._dashWidth)&&Ac(this._altDashWidth,e._altDashWidth)&&Ac(this._altColor,e._altColor)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="DashedLineItem"}(ff),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),yf=(function(t){function e(n){void 0===n&&(n=new Cc(0,0,10,10));var r=t.call(this,Tc.ellipse(n.left,n.top,n.width,n.height))||this;return r.type=e.type,r.sourceRectangle=n,r.manipulationPermissions.resizeGrips=new Sh(!0,!0),r}gf(e,t),e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="EllipseItem"}(ip),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());!function(t){function e(n,r,o,i,s,a){var l=t.call(this)||this;return l.type=e.type,l._location=new vc(n,r),l._cols=o,l._rows=i,l._stepX=s,l._stepY=a,l._horizontalLineColor=new Uc("rgba(0,0,0,1)"),l._verticalLineColor=new Uc("rgba(0,0,0,1)"),l._lineWidth=1,l._fixedLineWidth=!0,l.textWrappingMode=vh.None,l}yf(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return this._location},set:function(t){vc.isEqual(this._location,t)||(this._location=t,this._propertyChanged.notify(this,"location"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){return this._cols},set:function(t){Ec(this._cols,t)||(this._cols=t,this._propertyChanged.notify(this,"cols"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},set:function(t){Ec(this._rows,t)||(this._rows=t,this._propertyChanged.notify(this,"rows"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stepX",{get:function(){return this._stepX},set:function(t){Ec(this._stepX,t)||(this._stepX=t,this._propertyChanged.notify(this,"stepX"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"stepY",{get:function(){return this._stepY},set:function(t){Ec(this._stepY,t)||(this._stepY=t,this._propertyChanged.notify(this,"stepY"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(t){Ec(this._lineWidth,t)||(this._lineWidth=t,this._propertyChanged.notify(this,"lineWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fixedLineWidth",{get:function(){return this._fixedLineWidth},set:function(t){this._fixedLineWidth!==t&&(this._fixedLineWidth=t,this._propertyChanged.notify(this,"fixedLineWidth"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"verticalLineColor",{get:function(){return this._verticalLineColor},set:function(t){zc.equals(this._verticalLineColor,t)||(this._verticalLineColor=t,this._propertyChanged.notify(this,"verticalLineColor"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"horizontalLineColor",{get:function(){return this._horizontalLineColor},set:function(t){zc.equals(this._horizontalLineColor,t)||(this._horizontalLineColor=t,this._propertyChanged.notify(this,"horizontalLineColor"))},enumerable:!0,configurable:!0}),e.prototype._copy=function(e,n,r,o){t.prototype._copy.call(this,e,n,r,o),n.location=e.location.clone(),n.cols=e.cols,n.rows=e.rows,n.stepX=e.stepX,n.stepY=e.stepY,n.lineWidth=e.lineWidth,n.fixedLineWidth=e.fixedLineWidth,n.verticalLineColor=e.verticalLineColor.clone(),n.horizontalLineColor=e.horizontalLineColor.clone()},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._location,e._location)&&Ac(this._rows,e._rows)&&Ac(this._cols,e._cols)&&Ac(this._stepX,e._stepX)&&Ac(this._stepY,e._stepY)&&Ac(this._lineWidth,e._lineWidth)&&Ac(this._fixedLineWidth,e._fixedLineWidth)&&Ac(this._verticalLineColor,e._verticalLineColor)&&Ac(this._horizontalLineColor,e._horizontalLineColor)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e(this.location.x,this.location.y,this.cols,this.rows,this.stepX,this.stepY);return this._copy(this,r,t,n),r},e.type="GridItem"}(Wh),function(t){t[t.None=0]="None",t[t.BlackAndWhite=1]="BlackAndWhite",t[t.FlipVertical=2]="FlipVertical",t[t.FlipHorizontal=3]="FlipHorizontal",t[t.Colorize=4]="Colorize",t[t.Grayscale=5]="Grayscale"}(sf||(sf={}));var mf=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},_f=function(){function t(e){if(this._color=null,this._opacity=null,this._blendMode=null,this.$_propertyChanged=new fu,this.type=t.type,null!=e){var n=e.color,r=e.opacity,o=e.blendMode;this.color=n instanceof zc?n:null,this.blendMode="string"==typeof o?o:null,this.opacity="number"==typeof r?r:null}}return t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e.opacity,r=e.blendMode;return zc.equals(e.color,this.color)&&(null==n&&null==this.opacity||Ec(n,this.opacity))&&(null==r&&null==this.blendMode||r===this.blendMode)},t.prototype.getSimplifiedObject=function(){return{color:this.color,blendMode:this.blendMode,opacity:this.opacity}},t.equals=function(t,e){return null==t&&null==e||null!=t&&t.equals(e)},t.prototype.clone=function(){return new t({blendMode:this.blendMode,color:null!=this.color?this.color.clone():null,opacity:this.opacity})},Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){zc.equals(this.color,t)||(this._color=t,this.$_propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"blendMode",{get:function(){return this._blendMode},set:function(t){this.blendMode!==t&&(this._blendMode=t,this.$_propertyChanged.notify(this,"blendMode"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this._opacity},set:function(t){this.opacity!==t&&(this._opacity=t,this.$_propertyChanged.notify(this,"opacity"))},enumerable:!0,configurable:!0}),t.prototype.addPropertyChanged=function(t){this.$_propertyChanged.add(t)},t.prototype.removePropertyChanged=function(t){this.$_propertyChanged.remove(t)},t.type="OverlayEffect",function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);i>3&&s&&Object.defineProperty(e,n,s)}([oh({enumObject:Nh}),mf("design:type",Object),mf("design:paramtypes",[Object])],t.prototype,"blendMode",null),t}(),bf=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.width=t,this.height=e}return t.prototype.equals=function(t){return null!=t&&Ac(this.width,t.width)&&Ac(this.height,t.height)},t.prototype.clone=function(){return new t(this.width,this.height)},t}(),vf=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wf=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Cf=function(t){function e(n){var r=t.call(this,n)||this;return r.type=e.type,null==n&&(n=!0),r._allowImageQuality=n,r}return vf(e,t),e.prototype.clone=function(){var n=new e;return n.allowImageQuality=this.allowImageQuality,t.prototype.clone.call(this,n)},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&this.allowImageQuality===e.allowImageQuality},e.type="ImageViolationSettings",function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);i>3&&s&&Object.defineProperty(e,n,s)}([ih(),wf("design:type",Boolean)],e.prototype,"allowImageQuality",void 0),e}(np),Pf=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Of=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},xf=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Sf=function(t){function e(n,r,o,i,s){var a=t.call(this)||this;return a._effect=sf.None,a._overlayEffect=null,a.type=e.type,a.mviKeepTemplateTransform=!1,a.values=[],a.allowedSubfolder=null,a.allowedTabs=null,a.ratioWidthToHeight=null,a.isUserImage=!1,a._onSourcePropertyChanged=function(t,e){switch(e){case"url":case"id":case"pageIndex":a._propertyChanged.notify(a,"source");break;case"isVector":a.applyPermissionsConstrain(),a._propertyChanged.notify(a,"source")}},a._onOverlayEffectPropertyChanged=function(t,e){a._propertyChanged.notify(a,"overlayEffect")},a.imagePermissions=new lf,a._setViolationSettings(new Cf,!0),a.manipulationPermissions.resizeGrips=new Sh(!0,!1),a.shapePermissions.allowChangeFillColor=!1,a.imagePermissions.allowKeepOverlayColor=!1,a.itemPermissions.itemToolbarPermissions.showSelectButton=!0,a.source=null!=n?new e.ImageSource(n):new e.ImageSource,null!=s&&(a.ratioWidthToHeight=s),null!=o&&null!=i?a.sourceRectangle=new Cc(0,0,o,i):(null!=o&&a.SetWidth(o),null!=i&&a.SetHeight(i)),null!=r&&(a.sourceRectangle.left=r.x,a.sourceRectangle.top=r.y),a}return Pf(e,t),e.prototype._copy=function(e,n,r,o){var i,s;if(t.prototype._copy.call(this,e,n,r,o),n.imagePermissions=null!=e._imagePermissions?e._imagePermissions.clone():null,n.effect=e._effect,n.overlayEffect=null!=e.overlayEffect?e.overlayEffect.clone():null,n.source=e._source.clone(),n.mviKeepTemplateTransform=e.mviKeepTemplateTransform,null!=e.values){n.values=[];try{for(var a=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(e.values),l=a.next();!l.done;l=a.next())n.values.push(l.value.clone())}catch(u){i={error:u}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(i)throw i.error}}}n.allowedSubfolder=e.allowedSubfolder,n.allowedTabs=Cu.clone(e.allowedTabs),n.ratioWidthToHeight=e.ratioWidthToHeight,n.isUserImage=e.isUserImage},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._imagePermissions,e._imagePermissions)&&Ac(this._effect,e._effect)&&Ac(this._source,e._source)&&Ac(this.mviKeepTemplateTransform,e.mviKeepTemplateTransform)&&Ac(this.overlayEffect,e.overlayEffect)&&Mc(this.values,e.values)&&Ac(this.allowedSubfolder,e.allowedSubfolder)&&Mc(this.allowedTabs,e.allowedTabs)&&Ac(this.ratioWidthToHeight,e.ratioWidthToHeight)&&Ac(this.isUserImage,e.isUserImage)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},Object.defineProperty(e.prototype,"imagePermissions",{get:function(){return this._imagePermissions},set:function(t){if(null==t)throw new mu("imagePermissions cannot be null");Ac(this._imagePermissions,t)||(null!=this._imagePermissions&&this._imagePermissions.propertyChanged.remove(this._onPermissionsChanged),this._imagePermissions=t,this.applyPermissionsConstrain(),this._imagePermissions.propertyChanged.add(this._onPermissionsChanged),this._propertyChanged.notify(this,"imagePermissions"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"violationSettings",{get:function(){return this._violationSettings},set:function(t){this._setViolationSettings(t)},enumerable:!0,configurable:!0}),e.prototype._setViolationSettings=function(e,n){if(void 0===n&&(n=!1),!(n||e instanceof Cf))throw new mu("Shape ViolationSettings property must has ImageViolationSettings type!");t.prototype._setViolationSettings.call(this,e,n)},e.prototype.applyPermissionsConstrain=function(){t.prototype.applyPermissionsConstrain.call(this),this.itemPermissions.itemToolbarPermissions.showEditButtonConstraint=!(null!=this.imagePermissions&&!this.imagePermissions.allowEditImage)&&(null==this.source||!this.source.isVector)&&null,this.itemPermissions.itemToolbarPermissions.showSelectButtonConstraint=!(null!=this.imagePermissions&&!this.imagePermissions.allowChangeImage)&&null},Object.defineProperty(e.prototype,"displayName",{get:function(){var t=this;if(null==this._displayName&&null!=this.values&&this.values.length>0){var e=this.values.find((function(e){return e.value.id===t.source.id}));null!=e&&(this.displayName=e.name)}return this._displayName},set:function(t){t!=this._displayName&&(this._displayName=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return this._source},set:function(t){this._source===t||null!=this._source&&this._source.equals(t)||(null!=this._source&&this._source.removePropertyChanged(this._onSourcePropertyChanged),this._source=t,null!=this._source&&this._source.addPropertyChanged(this._onSourcePropertyChanged),this._propertyChanged.notify(this,"source"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"effect",{get:function(){return this._effect},set:function(t){this._effect!==t&&(this._effect=t,this._propertyChanged.notify(this,"effect"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overlayEffect",{get:function(){return this._overlayEffect},set:function(t){_f.equals(this.overlayEffect,t)||(this._unsubscribeOverlayEffectPropertyChanged(),this._overlayEffect=t,this._subscribeOverlayEffectPropertyChanged(),this._propertyChanged.notify(this,"overlayEffect"))},enumerable:!0,configurable:!0}),e.prototype._subscribeOverlayEffectPropertyChanged=function(){null!=this.overlayEffect&&this.overlayEffect.addPropertyChanged(this._onOverlayEffectPropertyChanged)},e.prototype._unsubscribeOverlayEffectPropertyChanged=function(){null!=this.overlayEffect&&this.overlayEffect.removePropertyChanged(this._onOverlayEffectPropertyChanged)},e.prototype.SetWidth=function(t,e){this.sourceRectangle.width=t,null!=e&&(e=!0),null!=this.source.id&&e&&(this.sourceRectangle.height=this._calculateHeight(t))},e.prototype.SetHeight=function(t,e){this.sourceRectangle.height=t,null!=e&&(e=!0),null!=this.source.id&&e&&(this.sourceRectangle.width=this._calculateWidth(t))},e.prototype.getSrc=function(){throw new yu},e.prototype._calculateHeight=function(t){if(null==this.ratioWidthToHeight)throw new gu("Field ratioWidthToHeight is not set!");return t/this.ratioWidthToHeight},e.prototype._calculateWidth=function(t){if(null==this.ratioWidthToHeight)throw new gu("Field ratioWidthToHeight is not set!");return t*this.ratioWidthToHeight},e.prototype.getSimplifiedObject=function(e){Cu.isArray(e)||Cu.isString(e)||(e=[]);var n=t.prototype.getSimplifiedObject.call(this,["imagePermissions"].concat(e));return n.source={id:this.source.id,width:this.source.width,height:this.source.height,isVector:this.source.isVector,pageIndex:this.source.pageIndex,url:this.source.url,actualSize:this.source.actualSize,saveAspectRatio:this.source.saveAspectRatio,origin:this.source.origin},n.imagePermissions=this.imagePermissions.getSimplifiedObject(),n},e.prototype.getOriginalImageSize=function(){return{width:eh(this.source.width,this.source.dpiX||72),height:eh(this.source.height,this.source.dpiY||72)}},e.type="ImageItem",Of([oh({factory:new Zh("subfolder"),displayName:"Allowed subfolder"}),xf("design:type",String)],e.prototype,"allowedSubfolder",void 0),Of([oh({factory:new Jh(Array),displayName:"Allowed tabs",type:"collection"}),xf("design:type",Array)],e.prototype,"allowedTabs",void 0),Of([oh({factory:new Zh("Image"),displayName:"Display name"}),xf("design:type",Object),xf("design:paramtypes",[Object])],e.prototype,"displayName",null),Of([oh({enumObject:sf}),xf("design:type",Number),xf("design:paramtypes",[Number])],e.prototype,"effect",null),Of([oh({factory:new Kh(_f,{color:new $c({c:0,m:0,y:0,k:0}),opacity:1,blendMode:Nh.Normal}),displayName:"Overlay effect"}),xf("design:type",_f),xf("design:paramtypes",[_f])],e.prototype,"overlayEffect",null),e}(up);!function(t){var e=function(){function t(t){Cu.extend(this,t)}return t.prototype.clone=function(){return new t(this)},t.prototype.equals=function(t){return null!=t&&Ac(this.id,t.id)&&Ac(this.width,t.width)&&Ac(this.height,t.height)&&Ac(this.isVector,t.isVector)},t}();t.ImageMetaData=e;var n,r=function(){function t(t,e,n){this.name=t,this.value=e,this.transformedRectangle=n}return t.prototype.clone=function(){return new t(this.name,this.value.clone(),this.transformedRectangle.clone())},t.prototype.equals=function(t){return null!=t&&Ac(this.name,t.name)&&Ac(this.value,t.value)&&Ac(this.transformedRectangle,t.transformedRectangle)},t}();t.ImageItemValue=r,function(t){t[t.None=0]="None",t[t.StorageId=3]="StorageId",t[t.Url=4]="Url"}(n=t.ImageSourceType||(t.ImageSourceType={}));var o=function(){function t(t,e,r,o,i,s){void 0===r&&(r=0),void 0===o&&(o=!1),void 0===i&&(i=!0),this._storageId=null,this._url=null,this._type=n.None,this._isVector=!1,this._pageIndex=0,this._origin=null,this._actualSize=!1,this._saveAspectRatio=!0,this._dpiX=72,this._dpiY=72,this._propertyChanged=new fu,this._storageId=t,null!=t&&(this._type=n.StorageId,this._origin=s),this._url=e,null!=e&&(this._type=n.Url,this._actualSize=o,this._saveAspectRatio=i)}return t.prototype.clone=function(){var e=new t;return e.id=this.id,e.url=this.url,e._type=this._type,e._width=this._width,e._height=this._height,e._isVector=this._isVector,e._pageIndex=this._pageIndex,e._origin=null!=this._origin?this._origin.clone():null,e._actualSize=this._actualSize,e._saveAspectRatio=this._saveAspectRatio,e},t.prototype.equals=function(t){return Ac(this.id,t.id)&&Ac(this.url,t.url)&&Ac(this._type,t._type)&&Ac(this._width,t._width)&&Ac(this._height,t._height)&&Ac(this._origin,t._origin)&&Ac(this._saveAspectRatio,t._saveAspectRatio)&&t._pageIndex===this._pageIndex&&JSON.stringify(t._origin)===JSON.stringify(this._origin)&&t._actualSize===this._actualSize&&t._saveAspectRatio===this._saveAspectRatio},Object.defineProperty(t.prototype,"id",{get:function(){return this._storageId},set:function(t){this._storageId!==t&&(this._storageId=t,this._propertyChanged.notify(this,"id"))},enumerable:!0,configurable:!0}),t.prototype.setIdWithOrigin=function(t,e){this.id=t,this._setOrigin(e)},Object.defineProperty(t.prototype,"url",{get:function(){return this._url},set:function(t){this._url!==t&&(this._url=t,this._propertyChanged.notify(this,"url"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this._width},set:function(t){this._width!==t&&(this._width=t,this._propertyChanged.notify(this,"width"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this._height},set:function(t){this._height!==t&&(this._height=t,this._propertyChanged.notify(this,"height"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVector",{get:function(){return this._isVector},set:function(t){this._isVector!==t&&(this._isVector=t,this._propertyChanged.notify(this,"isVector"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(t){t!==this._pageIndex&&(this._pageIndex=t,this._propertyChanged.notify(this,"pageIndex"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{get:function(){return this._origin},enumerable:!0,configurable:!0}),t.prototype._setOrigin=function(t){t!==this._origin&&(this._origin=t,this._propertyChanged.notify(this,"origin"))},Object.defineProperty(t.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualSize",{get:function(){return this._actualSize},set:function(t){this._actualSize=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"saveAspectRatio",{get:function(){return this._saveAspectRatio},set:function(t){this._saveAspectRatio=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dpiX",{get:function(){return this._dpiX},set:function(t){t>0&&(this._dpiX=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dpiY",{get:function(){return this._dpiY},set:function(t){t>0&&(this._dpiY=t)},enumerable:!0,configurable:!0}),t.prototype.addPropertyChanged=function(t){this._propertyChanged.add(t)},t.prototype.removePropertyChanged=function(t){this._propertyChanged.remove(t)},t}();t.ImageSource=o,function(t){var e=function(){function t(t){Cu.extend(this,t||{}),null!=t&&null!=t.originalSize&&(this.originalSize=new bf(t.originalSize.width,t.originalSize.height))}return t.prototype.equals=function(t){return null==t&&Ac(this.type,t.type)&&Ac(this.data,t.data)&&Ac(this.originalSize,t.originalSize)},t.prototype.clone=function(){return new t(this)},t}();t.Origin=e}(o=t.ImageSource||(t.ImageSource={}))}(Sf||(Sf={}));var Ef,kf,Tf,jf,If,Rf=function(){function t(t){if(this.storageId=null,this.size=new bf,this.name=null,this.isUserImage=!1,this.isVector=!1,this.pageIndex=0,"string"==typeof t)try{t=JSON.parse(t)}catch(e){console.warn("Unable to parse ImageMetaData from string ",t,e),t=null}Cu.isObject(t)&&Cu.extend(this,t)}return t.fromInterface=function(e,n){var r=new t;return r.storageId=e.id,r.size=new bf(e.width,e.height),r.name=void 0!==n?n:null,null!=e.isVector&&(r.isVector=e.isVector),r},t.prototype.clone=function(){return new t(this)},t.prototype.equals=function(t){return this.storageId===t.storageId&&Ac(this.size,t.size)&&Ac(this.name,t.name)&&Ac(this.isUserImage,t.isUserImage)&&Ac(this.isVector,t.isVector)&&Ac(this.pageIndex,t.pageIndex)},t}(),Af=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mf=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Nf=(function(t){function e(e,n,r,o,i){var s=t.call(this)||this;return s.id=e,s._name=n,s._mask=r,s._value=o,s._values=i,s}Af(e,t),Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},set:function(t){t!=this._mask&&(this._mask=t,this._propertyChanged.notify(this,"mask"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t!=this._value&&(this._value=t,this._propertyChanged.notify(this,"value"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this._values},set:function(t){t!=this._values&&(this._values=t,this._propertyChanged.notify(this,"values"))},enumerable:!0,configurable:!0}),e.prototype.generateNewIds=function(){this._generateNewId()},e.prototype._copy=function(e,n,r){return t.prototype._copy.call(this,e,n,!1),n.mask=e.mask,n.value=e.value,n.values=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Mf(arguments[e]));return t}(e.values),n},e.prototype.clone=function(t){void 0===t&&(t=!1);var n=new e;return this._copy(this,n,t),n},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this.mask,e.mask)&&Ac(this.value,e.value)&&Mc(this.values,e.values)},e.prototype.getSimplifiedObject=function(){return{id:this.id,mask:this.mask,value:this.value,values:this.values,name:this.name}}}(ah),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Bf=function(){return(Bf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},Lf=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},Ff=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Df=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},Vf=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Df(arguments[e]));return t};!function(t){function e(n,r){var o=t.call(this,n)||this;return o.type=e.type,o._onLayoutSettingsChanged=function(t){o._propertyChanged.notify(o,t)},o.layoutSettings=null!=r?r:new Hf,o}Nf(e,t),e.prototype.getSimplifiedObject=function(e){var n,r;void 0===e&&(e=[]);var o=t.prototype.getSimplifiedObject.call(this,["layoutSettings"].concat(e));return o.layoutSettings=null===(n=this.layoutSettings)||void 0===n?void 0:n.getSimplifiedObject(),o.sourceRectangle=null===(r=this.sourceRectangle)||void 0===r?void 0:r.toJSON(),o},e.prototype._copy=function(e,n,r,o){var i;t.prototype._copy.call(this,e,n,r,o),r&&this._copyItemsOrder(e,n),n.layoutSettings=e.layoutSettings.clone(),n.sourceRectangle=null===(i=e.sourceRectangle)||void 0===i?void 0:i.clone()},e.prototype._copyItemsOrder=function(t,e){var n=t.getItemsOrder();if(n){var r=n.map((function(n){var r=t.items.indexOf((function(t){return t.id==n}));return e.items.get(r).id}));e.setItemsOrder(r)}},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},Object.defineProperty(e.prototype,"layoutSettings",{get:function(){return this._layoutSettings},set:function(t){if(null==t)throw new Error("LayoutSettings can't be null");null!=this._layoutSettings&&this._layoutSettings.propertyChanged.remove(this._onLayoutSettingsChanged),this._layoutSettings=t,this._layoutSettings.propertyChanged.add(this._onLayoutSettingsChanged),this._onLayoutSettingsChanged("layoutSettings")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourceRectangle",{get:function(){return this._sourceRectangle},set:function(t){if(null!=this._sourceRectangle&&null==t)throw new Error("LayoutItem.sourceRectangle can't be null");null!=t&&t.equals(this._sourceRectangle)||(this._unsubscribeSourceRectangle(),this._sourceRectangle=t,this._subscribeSourceRectangle(),this._propertyChanged.notify(this,"sourceRectangle"))},enumerable:!0,configurable:!0}),e.prototype._subscribeSourceRectangle=function(){},e.prototype._unsubscribeSourceRectangle=function(){},e.prototype.addItems=function(n,r,o){var i=this.getItemsOrder();if(i){if(!Number.isInteger(o))throw new Error("orderIndex must not be null");i=e._insertToOrder(i,n.map((function(t){return t.id})),o),this.setItemsOrder(i)}t.prototype.addItems.call(this,n,r)},e.prototype.removeItems=function(e){var n=this.getItemsOrder();n&&(e.forEach((function(t){return n=n.filter((function(e){return e!==t.id}))})),this.setItemsOrder(n)),t.prototype.removeItems.call(this,e)},e.prototype.addItem=function(n,r,o){var i=this.getItemsOrder();null!=i&&(i=e._insertToOrder(i,[n.id],o),this.setItemsOrder(i)),t.prototype.addItem.call(this,n,r)},e._insertToOrder=function(t,e,n){var r=t.slice(0,n),o=t.slice(n);return r.concat(e,o)},e.prototype.setItemsOrder=function(t){this.tags[e._layoutItemsOrderTagKey]=t},e.prototype.getItemsOrder=function(){var t=this.tags[e._layoutItemsOrderTagKey];return null==t?null:t instanceof Array?t:null},e.prototype.getSortedItems=function(){var t=this.getItemsOrder(),e=this.getNestedItems(!0);return null!=t&&null!=e?t.map((function(t){return e.find((function(e){return e.id===t}))})):null},e.prototype.getItemOrderIndex=function(t){if(this.items.indexOf(t)<0)return-1;var e=this.getItemsOrder();return null==e?void 0:e.indexOf(t.id)},e.generateAutoLayoutSettings=function(t,e,n,r,o){var i=new Wf,s=t.map((function(t){return t.left})),a=t.map((function(t){return t.right})),l=t.map((function(t){return t.top})),u=t.map((function(t){return t.bottom})),c=t.map((function(t){return t.center.x})),h=t.map((function(t){return t.center.y}));if(null==n&&(n=Math.max.apply(Math,Vf(c))-Math.min.apply(Math,Vf(c))>Math.max.apply(Math,Vf(h))-Math.min.apply(Math,Vf(h))?Tf.horizontal:Tf.vertical),i.orientation=n,null==e)switch(i.orientation){case Tf.horizontal:e=Ec(Math.max.apply(Math,Vf(l)),Math.min.apply(Math,Vf(l)),5)?kf.start:Ec(Math.max.apply(Math,Vf(h)),Math.min.apply(Math,Vf(h)),5)?kf.center:Ec(Math.max.apply(Math,Vf(u)),Math.min.apply(Math,Vf(u)),5)?kf.end:kf.none;break;case Tf.vertical:e=Ec(Math.max.apply(Math,Vf(s)),Math.min.apply(Math,Vf(s)),5)?kf.start:Ec(Math.max.apply(Math,Vf(c)),Math.min.apply(Math,Vf(c)),5)?kf.center:Ec(Math.max.apply(Math,Vf(a)),Math.min.apply(Math,Vf(a)),5)?kf.end:kf.none}i.alignItems=e;for(var p=t.sort(i.orientation===Tf.horizontal?function(t,e){return t.left-e.left}:function(t,e){return t.top-e.top}),f=[],d=1;d<p.length;d++){var g=p[d-1],y=p[d];f.push(i.orientation===Tf.horizontal?y.left-g.right:y.top-g.bottom)}return null==r&&(r=Math.max(0,Math.min.apply(Math,Vf(f.map(Math.round))))),i.margin=r,null==o&&(o=Ec(Math.max.apply(Math,Vf(f)),Math.min.apply(Math,Vf(f)),2)?jf.stretch:jf.spaceBetween),i.justifyContent=o,i},e.prototype.isChildVisible=function(t){return!(t instanceof Ip&&t.isEmpty())},e.prototype.equals=function(e){var n=t.prototype.equals.call(this,e),r=Ac(this.sourceRectangle,e.sourceRectangle),o=Ac(this.layoutSettings,e.layoutSettings);return n&&r&&o},e._layoutItemsOrderTagKey="$layoutItemsOrder",e.type="LayoutItem"}(Qp),function(t){t[t.default=0]="default",t[t.auto=1]="auto"}(Ef||(Ef={})),function(t){t[t.none=0]="none",t[t.center=1]="center",t[t.start=2]="start",t[t.end=3]="end"}(kf||(kf={})),function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal"}(Tf||(Tf={})),function(t){t[t.stretch=0]="stretch",t[t.spaceBetween=1]="spaceBetween"}(jf||(jf={})),function(t){t[t.start=0]="start",t[t.center=1]="center",t[t.end=2]="end"}(If||(If={}));var zf,qf,Uf,Hf=function(){function t(){this.type=t.type,this.propertyChanged=new hu}return t.prototype.clone=function(){return new t},t.prototype.getSimplifiedObject=function(){var e={};return e.type=t.type,e},t.prototype.equals=function(t){return Ac(this.type,t.type)},t.type="DefaultLayoutSettings",t}(),Wf=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._margin=0,n._orientation=Tf.vertical,n._alignItems=kf.none,n._anchorPoint=If.start,n._justifyContent=jf.stretch,n}return Nf(e,t),Object.defineProperty(e.prototype,"margin",{get:function(){return this._margin},set:function(t){if(null==t)throw new Error("Margin can't be null");t!==this.margin&&(this._margin=t,this.propertyChanged.notify("margin"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"orientation",{get:function(){return this._orientation},set:function(t){if(null==t)throw Error("Orientation can't be null");t!==this.orientation&&(this._orientation=t,this.propertyChanged.notify("orientation"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignItems",{get:function(){return this._alignItems},set:function(t){if(null==t)throw new Error("alignItems can't be null");t!==this.alignItems&&(this._alignItems=t,this.propertyChanged.notify("alignItems"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"justifyContent",{get:function(){return this._justifyContent},set:function(t){if(null==t)throw new Error("JustifyContent can't be null");t!==this.justifyContent&&(this._justifyContent=t,this.propertyChanged.notify("justifyContent"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"anchorPoint",{get:function(){return this._anchorPoint},set:function(t){if(null==t)throw new Error("anchorPoint can't be null");t!==this._anchorPoint&&(this._anchorPoint=t,this.propertyChanged.notify("anchorPoint"))},enumerable:!0,configurable:!0}),e.prototype.clone=function(){var t=new e;return t.orientation=this.orientation,t.alignItems=this.alignItems,t.justifyContent=this.justifyContent,t.margin=this.margin,t.anchorPoint=this.anchorPoint,t},e.prototype.getSimplifiedObject=function(){var n=t.prototype.getSimplifiedObject.call(this);return n.type=e.type,n.orientation=this.orientation,n.alignItems=this.alignItems,n.justifyContent=this.justifyContent,n.margin=this.margin,n.anchorPoint=this.anchorPoint,n},e.prototype.equals=function(e){var n=t.prototype.equals.call(this,e),r=Ac(this.orientation,e.orientation),o=Ac(this.alignItems,e.alignItems),i=Ac(this.margin,e.margin),s=Ac(this.anchorPoint,e.anchorPoint);return n&&r&&o&&i&&s},e.type="AutoLayoutSettings",Lf([oh({ignore:!0}),Ff("design:type",Object)],e.prototype,"type",void 0),Lf([oh({enumObject:Bf({},Tf)}),Ff("design:type",Object),Ff("design:paramtypes",[Object])],e.prototype,"orientation",null),Lf([oh({enumObject:kf}),Ff("design:type",Object),Ff("design:paramtypes",[Object])],e.prototype,"alignItems",null),Lf([oh({enumObject:jf}),Ff("design:type",Object),Ff("design:paramtypes",[Object])],e.prototype,"justifyContent",null),Lf([oh({enumObject:If}),Ff("design:type",Number),Ff("design:paramtypes",[Number])],e.prototype,"anchorPoint",null),e}(Hf),Gf=function(){function t(t){this.propertyChanged=new hu,null==t&&(t=!0),this.allowChangeColumnCount=t}return Object.defineProperty(t.prototype,"allowChangeColumnCount",{get:function(){return this._allowChangeColumnCount},set:function(t){this._allowChangeColumnCount!==t&&(this._allowChangeColumnCount=t,this.propertyChanged.notify("allowChangeColumnCount"))},enumerable:!0,configurable:!0}),t.prototype.getSimplifiedObject=function(){var t={};return t.allowChangeColumnCount=this.allowChangeColumnCount,t},t.prototype.clone=function(){var e=new t;return e.allowChangeColumnCount=this.allowChangeColumnCount,e},t.prototype.equals=function(t){return this.allowChangeColumnCount===t.allowChangeColumnCount},t}(),$f=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yf=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Xf=(function(t){function e(n,r,o,i){var s=t.call(this,n,o,i)||this;return s._boundingPaths=[],s._wrappingMargin=7,s._wrappingPath=null,s._paragraphSettings=new Up,s._characterLimit=null,s._isVertical=!1,s._firstBaselineOffset=yp.Ascent,s._firstBaselineMinOffset=0,s.type=e.type,null!=r&&(s.boundingPaths=r),s._pathBoundedTextPermissions=new Gf,s._pathBoundedTextPermissions.propertyChanged.add(s._onPermissionsChanged),s}$f(e,t),Object.defineProperty(e.prototype,"characterLimit",{get:function(){return this._characterLimit},set:function(t){null===this._characterLimit&&null===t||Ec(this._characterLimit,t)||(this._characterLimit=t,this._propertyChanged.notify(this,"characterLimit"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"boundingPaths",{get:function(){return this._boundingPaths},set:function(t){t.length===this.boundingPaths.length&&this.boundingPaths.every((function(e,n){return e.isEqual(t[n])}))||(this._boundingPaths=t,this._propertyChanged.notify(this,"boundingPaths"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrappingPath",{get:function(){return this._wrappingPath},set:function(t){null==this._wrappingPath&&null==t||null!=this._wrappingPath&&this._wrappingPath.isEqual(t)||(this._wrappingPath=t,this._propertyChanged.notify(this,"wrappingPath"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrappingMargin",{get:function(){return this._wrappingMargin},set:function(t){Ec(this._wrappingMargin,t)||(this._wrappingMargin=t,this._propertyChanged.notify(this,"wrappingMargin"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paragraphSettings",{get:function(){return this._paragraphSettings},set:function(t){Up.equals(this._paragraphSettings,t)||(this._paragraphSettings=t,this._propertyChanged.notify(this,"paragraphSettings"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVertical",{get:function(){return this._isVertical},set:function(t){this._isVertical!==t&&(this._isVertical=t,this._propertyChanged.notify(this,"isVertical"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathBoundedTextPermissions",{get:function(){return this._pathBoundedTextPermissions},set:function(t){if(null==t)throw new mu("pathBoundedTextPermissions cannot be null");Ac(this._pathBoundedTextPermissions,t)||(this._pathBoundedTextPermissions.propertyChanged.remove(this._onPermissionsChanged),this._pathBoundedTextPermissions=t,this._pathBoundedTextPermissions.propertyChanged.add(this._onPermissionsChanged),this._onPermissionsChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstBaselineOffset",{get:function(){return this._firstBaselineOffset},set:function(t){this._firstBaselineOffset!==t&&(this._firstBaselineOffset=t,null!=t&&this._propertyChanged.notify(this,"firstBaselineOffset"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstBaselineMinOffset",{get:function(){return this._firstBaselineMinOffset},set:function(t){Ec(this._firstBaselineMinOffset,t)||(this._firstBaselineMinOffset=t,null!=t&&this._propertyChanged.notify(this,"firstBaselineMinOffset"))},enumerable:!0,configurable:!0}),e.prototype.getSimplifiedObject=function(e){var n=t.prototype.getSimplifiedObject.call(this,["pathBoundedTextPermissions"].concat(e));return n.pathBoundedTextPermissions=this.pathBoundedTextPermissions.getSimplifiedObject(),n},e.prototype._copy=function(n,r,o,i){t.prototype._copy.call(this,n,r,o,i),"AutoScaledTextItem"!=r.type&&"BoundedTextItem"!=r.type&&"PathBoundedTextItem"!=r.type&&"PlainTextItem"!=r.type||(r.isVertical=n.isVertical),"PathBoundedTextItem"!=r.type&&"BoundedTextItem"!=r.type||(r.characterLimit=n.characterLimit,r.wrappingMargin=n.wrappingMargin,r.paragraphSettings=n.paragraphSettings.clone(),r.wrappingPath=null!=n.wrappingPath?n.wrappingPath.clone():null,r.firstBaselineOffset=n.firstBaselineOffset,r.firstBaselineMinOffset=n.firstBaselineMinOffset),r instanceof e&&(r.boundingPaths=n.boundingPaths.map((function(t){return t.clone()})),r.pathBoundedTextPermissions=n.pathBoundedTextPermissions.clone())},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._characterLimit,e._characterLimit)&&Mc(this._boundingPaths,e._boundingPaths)&&Ac(this._wrappingMargin,e._wrappingMargin)&&Ac(this._paragraphSettings,e._paragraphSettings)&&Ac(this._isVertical,e._isVertical)&&Ac(this._pathBoundedTextPermissions,e._pathBoundedTextPermissions)&&Ac(this._wrappingPath,e._wrappingPath)&&Ac(this.firstBaselineOffset,e.firstBaselineOffset)&&Ac(this.firstBaselineMinOffset,e.firstBaselineMinOffset)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="PathBoundedTextItem",function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);i>3&&s&&Object.defineProperty(e,n,s)}([oh({enumObject:yp}),Yf("design:type",Number),Yf("design:paramtypes",[Number])],e.prototype,"firstBaselineOffset",null)}(Ip),function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),Zf=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Jf=function(){function t(){this._allowEditContent=!0,this.showSelectButtonConstraint=null,this._showSelectButton=!0,this.propertyChanged=new hu}return Object.defineProperty(t.prototype,"allowEditContent",{get:function(){return this._allowEditContent},set:function(t){this._allowEditContent!==t&&(this._allowEditContent=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showSelectButton",{get:function(){return null!=this.showSelectButtonConstraint?this.showSelectButtonConstraint:this._showSelectButton},set:function(t){this._showSelectButton!==t&&(this._showSelectButton=t,this.propertyChanged.notify())},enumerable:!0,configurable:!0}),t.prototype.getSimplifiedObject=function(){var t={};return t.allowEditContent=this.allowEditContent,t.showSelectButton=this.showSelectButton,t.showHandleButton=this.showHandleButton,t.showSelectButtonConstraint=this.showSelectButtonConstraint,t},t.prototype.clone=function(){var e=new t;return e.allowEditContent=this._allowEditContent,e.showSelectButton=this._showSelectButton,e.showSelectButtonConstraint=this.showSelectButtonConstraint,e.showHandleButton=this.showHandleButton,e},t.prototype.equals=function(t){return this.allowEditContent===t.allowEditContent&&this.showSelectButton===t.showSelectButton&&this.showSelectButtonConstraint===t.showSelectButtonConstraint&&this.showHandleButton===t.showHandleButton},Xf([oh({ignore:!0}),Zf("design:type",Boolean)],t.prototype,"showSelectButtonConstraint",void 0),Xf([ih(),Zf("design:type",Boolean)],t.prototype,"showHandleButton",void 0),t}(),Kf=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qf=function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},td=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ed=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s},nd=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(ed(arguments[e]));return t};!function(t){t[t.None=0]="None",t[t.Center=1]="Center",t[t.Top=2]="Top",t[t.Bottom=3]="Bottom"}(zf||(zf={})),function(t){t[t.None=0]="None",t[t.Center=1]="Center",t[t.Right=2]="Right",t[t.Left=3]="Left"}(qf||(qf={})),function(t){t[t.Fit=0]="Fit",t[t.Fill=1]="Fill",t[t.Original=2]="Original"}(Uf||(Uf={}));var rd,od=function(t){function e(n){var r=t.call(this,null!=n?Tc.rectangle(n.left,n.top,n.width,n.height):null)||this;return r._isStubContent=!1,r._isCoverMode=!1,r._contentResizeMode=Uf.Fill,r._contentEffect=sf.None,r._contentFillColor=null,r._contentOverlayEffect=null,r.stubStorageMeta=null,r.linkId=null,r.allowedSubfolder=null,r.allowedTabs=null,r.contentVerticalAlignment=zf.None,r.contentHorizontalAlignment=qf.None,r.type=e.type,r._content=null,r._topFrames=[],r._bottomFrames=[],r._onContentOverlayEffectPropertyChanged=function(t,e){r._propertyChanged.notify(r,"contentOverlayEffect")},r.fixedStubContentSize=!1,r.sourceRectangle=null!=n?n:new Cc(0,0,10,10),r.fillColor=new Uc("rgba(0, 0, 0, 0)"),r.borderWidth=0,r.placeholderPermissions=new Jf,r._contentPermissions=new uf,r._contentPermissions.propertyChanged.add(r._onPermissionsChanged),r._setViolationSettings(new Cf,!0),r._ignorePermissionsChange=!0,r.manipulationPermissions.resizeGrips=new Sh(!0,!0,!1),r.shapePermissions.allowChangeFillColor=!1,r.itemPermissions.allowRemoveOnLayoutChange=!0,r.itemPermissions.itemToolbarPermissions.showEditButton=!0,r.itemPermissions.itemToolbarPermissions.showSelectButtonConstraint=null,r.itemPermissions.itemToolbarPermissions.showSelectButton=!0,r.contentPermissions.imagePermissions.allowKeepOverlayColor=!1,r._ignorePermissionsChange=!1,r}return Kf(e,t),Object.defineProperty(e.prototype,"contentEffect",{get:function(){return this._contentEffect},set:function(t){this._contentEffect!==t&&(this._contentEffect=t,this._propertyChanged.notify(this,"contentEffect"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentFillColor",{get:function(){return this._contentFillColor},set:function(t){this._contentFillColor!==t&&(this._contentFillColor=t,this._propertyChanged.notify(this,"contentFillColor"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStubContent",{get:function(){return this._isStubContent},set:function(t){this._isStubContent!==t&&(this._isStubContent=t,this._setStubStorageMeta(),this.applyPermissionsConstrain(),this._propertyChanged.notify(this,"isStubContent"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentResizeMode",{get:function(){return this.isCoverMode?Uf.Fill:this.isBarcodePlaceholder?Uf.Fit:this._contentResizeMode},set:function(t){this._contentResizeMode!==t&&(this._contentResizeMode=t,this._propertyChanged.notify(this,"contentResizeMode"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentOverlayEffect",{get:function(){return this._contentOverlayEffect},set:function(t){_f.equals(this.contentOverlayEffect,t)||(this._unsubscribeContentOverlayEffectPropertyChanged(),this._contentOverlayEffect=t,this._subscribeContentOverlayEffectPropertyChanged(),this._propertyChanged.notify(this,"contentOverlayEffect"))},enumerable:!0,configurable:!0}),e.prototype._subscribeContentOverlayEffectPropertyChanged=function(){null!=this.contentOverlayEffect&&this.contentOverlayEffect.addPropertyChanged(this._onContentOverlayEffectPropertyChanged)},e.prototype._unsubscribeContentOverlayEffectPropertyChanged=function(){null!=this.contentOverlayEffect&&this.contentOverlayEffect.removePropertyChanged(this._onContentOverlayEffectPropertyChanged)},Object.defineProperty(e.prototype,"isCoverMode",{get:function(){return null==this.barcodeFormat&&this._isCoverMode},set:function(t){this._isCoverMode!==t&&(this._isCoverMode=t,this.isEmptyContent||this.content.applyPermissionsConstrain(),this._propertyChanged.notify(this,"isCoverMode"))},enumerable:!0,configurable:!0}),e.prototype.getImagePermissions=function(){return null!=this.contentPermissions?this.contentPermissions.imagePermissions:this.content instanceof Sf?this.content.imagePermissions:null},e.prototype.applyPermissionsConstrain=function(){var t=this.itemPermissions.itemToolbarPermissions,e=this.getImagePermissions(),n=null==e||e.allowChangeImage;t.showEditButtonConstraint=!(this.isStubOrEmpty||null==e||!e.allowEditImage||null!=this.content&&this.content instanceof Sf&&null!=this.content.source&&this.content.source.isVector)&&null,t.showSelectButtonConstraint=!(!n||this.isStubOrEmpty)&&null,null!=this.placeholderPermissions&&(this.placeholderPermissions.showSelectButtonConstraint=!!n&&null),null!=this.contentPermissions&&null!=this.contentPermissions.imagePermissions&&(this.contentPermissions.imagePermissions.allowEditImageConstraint=null==this.barcodeFormat&&null),this.isBarcodePlaceholder&&(null!=this.manipulationPermissions&&(this.manipulationPermissions.resizeGrips.edge=!1,this.manipulationPermissions.resizeGrips.setCornerArbitrary(!1)),null!=this.itemPermissions&&null!=t&&(t.showSelectButton=!1,t.showEditButtonConstraint=null),null!=this.placeholderPermissions&&(this.placeholderPermissions.allowEditContent=!1,this.placeholderPermissions.showHandleButton=!1),null!=this.contentPermissions&&null!=this.contentPermissions.barcodePermissions&&(this.contentPermissions.barcodePermissions.allowChangeBarcodeContent?this.placeholderPermissions.showSelectButtonConstraint=null:(this.placeholderPermissions.showSelectButtonConstraint=!1,t.showEditButtonConstraint=this.contentPermissions.barcodePermissions.allowChangeBarcodeContent)))},Object.defineProperty(e.prototype,"contentPermissions",{get:function(){return this._contentPermissions},set:function(t){if(null==t)throw new mu("ContentPermissions cannot be null");Ac(this._contentPermissions,t)||(this._contentPermissions.propertyChanged.remove(this._onPermissionsChanged),this._contentPermissions=t,this._contentPermissions.propertyChanged.add(this._onPermissionsChanged),this._onPermissionsChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholderPermissions",{get:function(){return this._placeholderPermissions},set:function(t){if(null==t)throw new mu("placeholderPermissions cannot be null");Ac(this._placeholderPermissions,t)||(null!=this._placeholderPermissions&&this._placeholderPermissions.propertyChanged.remove(this._onPermissionsChanged),this._placeholderPermissions=t,this.applyPermissionsConstrain(),this._placeholderPermissions.propertyChanged.add(this._onPermissionsChanged),this._propertyChanged.notify(this,"placeholderPermissions"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"violationSettings",{get:function(){return this._violationSettings},set:function(t){this._setViolationSettings(t)},enumerable:!0,configurable:!0}),e.prototype._setViolationSettings=function(e,n){if(void 0===n&&(n=!1),!(n||e instanceof Cf))throw new mu("Shape ViolationSettings property must has ImageViolationSettings type!");t.prototype._setViolationSettings.call(this,e,n)},Object.defineProperty(e.prototype,"isFrame",{get:function(){return null!=this._topFrames&&this._topFrames.length>0||null!=this._bottomFrames&&this._bottomFrames.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this._content},set:function(t){this._content=t,this.isEmptyContent||(this._content.parentPlaceholder=this,this._content.parentContainer=null,this._content.applyPermissionsConstrain()),this.applyPermissionsConstrain(),this._setStubStorageMeta(),this._propertyChanged.notify(this,"content")},enumerable:!0,configurable:!0}),e.prototype._setStubStorageMeta=function(){this.stubStorageMeta=this.isStubContent&&this._content instanceof Sf?new Rf({isUserImage:this._content.isUserImage,isVector:this._content.source.isVector,name:"Stub content",size:{width:this._content.source.width,height:this._content.source.height},storageId:this._content.source.id,origin:this._content.source.origin}):null},Object.defineProperty(e.prototype,"topFrames",{get:function(){return this._topFrames},set:function(t){var e=this;if(null==t)throw new mu;this._topFrames=t,this._topFrames.forEach((function(t){t.parentPlaceholder=e,t.parentContainer=null}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomFrames",{get:function(){return this._bottomFrames},set:function(t){var e=this;if(null==t)throw new mu;this._bottomFrames=t,this._bottomFrames.forEach((function(t){t.parentPlaceholder=e,t.parentContainer=null}))},enumerable:!0,configurable:!0}),e.prototype.updateContentAndFrames=function(t){null!=this.content&&t(this.content),null!=this.topFrames&&this.topFrames.forEach((function(e){t(e)})),null!=this.bottomFrames&&this.bottomFrames.forEach((function(e){t(e)}))},Object.defineProperty(e.prototype,"imageContent",{get:function(){if(null!=this._content&&!(this._content instanceof Sf))throw new gu("Not image content!");return this._content},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmptyContent",{get:function(){return null==this._content},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStubOrEmpty",{get:function(){return this.isStubContent||this.isEmptyContent},enumerable:!0,configurable:!0}),e.prototype._canSetIsVariable=function(){return!0},Object.defineProperty(e.prototype,"isBarcodePlaceholder",{get:function(){return null!=this.barcodeFormat},enumerable:!0,configurable:!0}),e.prototype.getSimplifiedObject=function(){var e=t.prototype.getSimplifiedObject.call(this,["_content","imageContent","placeholderPermissions","contentPermissions","isFrame","isEmptyContent","isStubOrEmpty","isBarcodePlaceholder"]);return e.content=null!=this.content?this.content.getSimplifiedObject():null,e.placeholderPermissions=this.placeholderPermissions.getSimplifiedObject(),e.contentPermissions=this.contentPermissions.getSimplifiedObject(),e},e.prototype._copy=function(e,n,r,o){if(t.prototype._copy.call(this,e,n,r,o),n.linkId=e.linkId,n.allowedSubfolder=e.allowedSubfolder,n.allowedTabs=null!=e.allowedTabs?e.allowedTabs.map((function(t){return t})):null,n.contentVerticalAlignment=e.contentVerticalAlignment,n.contentHorizontalAlignment=e.contentHorizontalAlignment,n.placeholderPermissions=e.placeholderPermissions.clone(),null!=e.content?(null==n.content?n.content=e.content.clone(r,o):n.content.update(e.content),n.content.parentPlaceholder=n):n.content=null,e.topFrames.length===n.topFrames.length)for(var i=0;i<e.topFrames.length;i++)n.topFrames[i].update(e.topFrames[i]),n.topFrames[i].parentPlaceholder=n;else n.topFrames=e.topFrames.map((function(t){var e=t.clone(r,o);return e.parentPlaceholder=n,e}));if(e.bottomFrames.length===n.bottomFrames.length)for(i=0;i<e.bottomFrames.length;i++)n.bottomFrames[i].update(e.bottomFrames[i]),n.bottomFrames[i].parentPlaceholder=n;else n.bottomFrames=e.bottomFrames.map((function(t){var e=t.clone(r,o);return e.parentPlaceholder=n,e}));n.stubStorageMeta=null!=e.stubStorageMeta?e.stubStorageMeta.clone():null,n.isStubContent=e.isStubContent,n.isCoverMode=e.isCoverMode,n.contentResizeMode=e.contentResizeMode,n.contentEffect=e.contentEffect,n.contentFillColor=null!=e._contentFillColor?e._contentFillColor.clone():null,n.contentOverlayEffect=null!=e.contentOverlayEffect?e.contentOverlayEffect.clone():null,n.barcodeFormat=e.barcodeFormat,n.contentPermissions=e.contentPermissions.clone(),n.isVariable=e.isVariable},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Mc(nd([this._content],this._topFrames,this._bottomFrames),nd([e._content],e._topFrames,e._bottomFrames))&&Ac(this.linkId,e.linkId)&&Ac(this.allowedSubfolder,e.allowedSubfolder)&&Mc(this.allowedTabs,e.allowedTabs)&&Ac(this.contentVerticalAlignment,e.contentVerticalAlignment)&&Ac(this.contentHorizontalAlignment,e.contentHorizontalAlignment)&&Ac(this._placeholderPermissions,e._placeholderPermissions)&&Ac(this.stubStorageMeta,e.stubStorageMeta)&&Ac(this._isStubContent,e._isStubContent)&&Ac(this._isCoverMode,e._isCoverMode)&&Ac(this._contentResizeMode,e._contentResizeMode)&&Ac(this._contentEffect,e._contentEffect)&&Ac(this.barcodeFormat,e.barcodeFormat)&&Ac(this._contentPermissions,e._contentPermissions)&&Ac(this.isVariable,e.isVariable)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="PlaceholderItem",Qf([oh({factory:new Kh(Rf),displayName:"Stub storage meta"}),td("design:type",Rf)],e.prototype,"stubStorageMeta",void 0),Qf([oh({type:"string"}),td("design:type",String)],e.prototype,"linkId",void 0),Qf([oh({factory:new Zh("subfolder"),displayName:"Allowed subfolder"}),td("design:type",String)],e.prototype,"allowedSubfolder",void 0),Qf([oh({factory:new Jh(Array),displayName:"Allowed tabs",type:"collection"}),td("design:type",Array)],e.prototype,"allowedTabs",void 0),Qf([oh({enumObject:zf}),td("design:type",Object)],e.prototype,"contentVerticalAlignment",void 0),Qf([oh({enumObject:qf}),td("design:type",Object)],e.prototype,"contentHorizontalAlignment",void 0),Qf([oh({enumObject:sf}),td("design:type",Number),td("design:paramtypes",[Number])],e.prototype,"contentEffect",null),Qf([oh({factory:new Qh,displayName:"Content fill color"}),td("design:type",zc),td("design:paramtypes",[zc])],e.prototype,"contentFillColor",null),Qf([oh({enumObject:Uf}),td("design:type",Object),td("design:paramtypes",[Object])],e.prototype,"contentResizeMode",null),Qf([oh({enumObject:Rp,factory:new Zh(Rp.QR_CODE),displayName:"Barcode format"}),td("design:type",String)],e.prototype,"barcodeFormat",void 0),Qf([oh({factory:new Kh(_f,{color:new $c({c:0,m:0,y:0,k:0}),opacity:1,blendMode:Nh.Normal}),displayName:"Content overlay effect"}),td("design:type",Object),td("design:paramtypes",[Object])],e.prototype,"contentOverlayEffect",null),e}(ip),id=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sd=(function(t){function e(n,r,o,i){var s=t.call(this,n,o,i)||this;return s._baselineLocation=new vc,s._isVertical=!1,s.type=e.type,null!=r&&(s.baselineLocation=r),s._ignorePermissionsChange=!0,s.manipulationPermissions.resizeGrips.setCornerArbitrary(!1),s.manipulationPermissions.resizeGrips.edge=!1,s._ignorePermissionsChange=!1,s}id(e,t),Object.defineProperty(e.prototype,"isVertical",{get:function(){return this._isVertical},set:function(t){this._isVertical!==t&&(this._isVertical=t,this._propertyChanged.notify(this,"isVertical"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baselineLocation",{get:function(){return this._baselineLocation},set:function(t){vc.isEqual(this._baselineLocation,t)||(this._baselineLocation=t,this._propertyChanged.notify(this,"baselineLocation"))},enumerable:!0,configurable:!0}),e.prototype.applyPermissionsConstrain=function(){t.prototype.applyPermissionsConstrain.call(this),null!=this.manipulationPermissions&&null!=this.manipulationPermissions.resizeGrips&&(this.manipulationPermissions.resizeGrips.setCornerArbitrary(!1),this.manipulationPermissions.resizeGrips.edgeConstraint=!1)},e.prototype.getSimplifiedObject=function(e){void 0===e&&(e=[]);var n=t.prototype.getSimplifiedObject.call(this,["_placeholders","currentTextImage","sourcePath","sourceRectangle"].concat(e));return n.placeholders=this.placeholders.toArray(),n},e.prototype._copy=function(n,r,o,i){return t.prototype._copy.call(this,n,r,o,i),"AutoScaledTextItem"!=r.type&&"BoundedTextItem"!=r.type&&"PathBoundedTextItem"!=r.type&&"PlainTextItem"!=r.type||(r.isVertical=n.isVertical),r instanceof e&&(r.baselineLocation=n.baselineLocation),r},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._isVertical,e._isVertical)&&Ac(this._baselineLocation,e._baselineLocation)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="PlainTextItem"}(Ip),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ad=(function(t){function e(n){var r=t.call(this)||this;if(r._width=20,r._color=new Uc("rgba(255,255,61,1)"),r._points=[],r.type=e.type,r._points=[],n&&n.length&&n.length>0)for(var o=0;o<n.length;o++)n[o]instanceof vc&&r._points.push(n[o]);return r.textWrappingMode=vh.None,r}sd(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){Ec(this._width,t)||(this._width=t,this._propertyChanged.notify(this,"width"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){zc.equals(this._color,t)||(this._color=t,this._propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourcePoints",{get:function(){return this._points},set:function(t){this._points=t,this._propertyChanged.notify(this,"sourcePoints")},enumerable:!0,configurable:!0}),e.prototype._copy=function(e,n,r,o){t.prototype._copy.call(this,e,n,r,o),n.width=e.width,n.color=e.color.clone(),n.sourcePoints=e.sourcePoints.map((function(t){return t.clone()}))},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._width,e._width)&&Ac(this._color,e._color)&&Mc(this._points,e._points)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="PolylineItem"}(Wh),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}());(function(t){function e(n,r,o,i){var s=t.call(this,n,o,i)||this;return s.type=e.type,s._center=r,s._ignorePermissionsChange=!0,s.manipulationPermissions.resizeGrips.setCornerArbitrary(!1),s.manipulationPermissions.resizeGrips.edge=!1,s.textPermissions.allowChangeTextAlignment=!1,s.textPermissions.allowChangeLeading=!1,s._ignorePermissionsChange=!1,s}ad(e,t),e.prototype.applyPermissionsConstrain=function(){t.prototype.applyPermissionsConstrain.call(this),null!=this.manipulationPermissions&&null!=this.manipulationPermissions.resizeGrips&&(this.manipulationPermissions.resizeGrips.setCornerArbitraryConstraint(!1),this.manipulationPermissions.resizeGrips.edgeConstraint=!1),null!=this.textPermissions&&(this.textPermissions.allowChangeLeading=!1,this.textPermissions.allowChangeTextAlignment=!1)},Object.defineProperty(e.prototype,"center",{get:function(){return this._center},set:function(t){vc.isEqual(this._center,t)||(this._center=t,this._propertyChanged.notify(this,"center"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bend",{get:function(){return this._bend},set:function(t){Ec(this._bend,t)||(this._bend=t,this._propertyChanged.notify(this,"bend"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"warp",{get:function(){return this._warp},set:function(t){this._warp!==t&&(this._warp=t,this._propertyChanged.notify(this,"warp"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxLineCount",{get:function(){return 1},set:function(t){throw console.error("ArchedText set maxLineCount",t),new vu("Max Line Count of ArchedTextItem can not be redefined!")},enumerable:!0,configurable:!0}),e.prototype.getSimplifiedObject=function(e){return t.prototype.getSimplifiedObject.call(this,["maxLineCount"].concat(e))},e.prototype._copy=function(n,r,o,i){t.prototype._copy.call(this,n,r,o,i),r instanceof e&&(r.center=n.center,r.bend=n.bend,r.warp=n.warp)},e.prototype.equals=function(e){return t.prototype.equals.call(this,e)&&Ac(this._center,e._center)&&Ac(this._bend,e._bend)&&Ac(this._warp,e._warp)},e.prototype.clone=function(t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=new e;return this._copy(this,r,t,n),r},e.type="ArchedTextItem"})(Ip),function(){function t(){this.name="cropmark",this.margin=10,this.color=new Uc({r:0,g:0,b:0,a:255}),this.widthPx=1,this.length=8,this.leftNotes=null,this.topNotes=null,this.rightNotes=null,this.bottomNotes=null}Object.defineProperty(t.prototype,"margins",{get:function(){return"number"==typeof this.margin?{horizontal:this.margin,vertical:this.margin}:this.margin},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lengths",{get:function(){return"number"==typeof this.length?{horizontal:this.length,vertical:this.length}:this.length},enumerable:!0,configurable:!0}),t.prototype.clone=function(){var e=new t;return e.name=this.name,e.margin=this.margin,e.color=this.color,e.widthPx=this.widthPx,e.length=this.length,e.leftNotes=null!=this.leftNotes?this.leftNotes.map((function(t){return t.clone()})):null,e.topNotes=null!=this.topNotes?this.topNotes.map((function(t){return t.clone()})):null,e.rightNotes=null!=this.rightNotes?this.rightNotes.map((function(t){return t.clone()})):null,e.bottomNotes=null!=this.bottomNotes?this.bottomNotes.map((function(t){return t.clone()})):null,e}}(),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center",t[t.Right=2]="Right"}(rd||(rd={})),function(){function t(){this.alignment=rd.Left,this.fontSize=3,this.edgeMargin=.3,this.markMargin=.3}t.prototype.clone=function(){var e=new t;return e.alignment=this.alignment,e.fontSize=this.fontSize,e.text=this.text,e.edgeMargin=this.edgeMargin,e.markMargin=this.markMargin,e}}(),function(){function t(){this._vectorMask=null,this._maskChangedEvent=new hu}Object.defineProperty(t.prototype,"vectorMask",{get:function(){return this._vectorMask},set:function(t){this._vectorMask=t,this._maskChangedEvent.notify(this)},enumerable:!0,configurable:!0}),t.prototype.addMaskChanged=function(t){this._maskChangedEvent.add(t)},t.prototype.removeMaskChanged=function(t){this._maskChangedEvent.remove(t)},t.prototype.clone=function(){var e=new t;return e.vectorMask=null!=this.vectorMask?this.vectorMask.clone():null,e},t.prototype.equals=function(t){return Ac(this.vectorMask,t.vectorMask)},t.prototype.getSimplifiedObject=function(){var t={};return t.vectorMask=null!=this.vectorMask?this.vectorMask.toString():null,t}}();var ld,ud=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cd=function(t){function e(e){var n,r,o,i,s,a,l,u,c,h,p,f,d=t.call(this)||this;d._propertyChanged=new fu;var g=e;return d._left=null!==(o=null!==(r=null!==(n=null==g?void 0:g.left)&&void 0!==n?n:null==g?void 0:g.horizontal)&&void 0!==r?r:g)&&void 0!==o?o:0,d._top=null!==(a=null!==(s=null!==(i=null==g?void 0:g.top)&&void 0!==i?i:null==g?void 0:g.vertical)&&void 0!==s?s:g)&&void 0!==a?a:0,d._right=null!==(c=null!==(u=null!==(l=null==g?void 0:g.right)&&void 0!==l?l:null==g?void 0:g.horizontal)&&void 0!==u?u:g)&&void 0!==c?c:0,d._bottom=null!==(f=null!==(p=null!==(h=null==g?void 0:g.bottom)&&void 0!==h?h:null==g?void 0:g.vertical)&&void 0!==p?p:g)&&void 0!==f?f:0,d}return ud(e,t),Object.defineProperty(e.prototype,"left",{get:function(){return this._left},set:function(t){Ec(t,this._left)||(this._left=t,this._propertyChanged.notify(this,"left"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this._top},set:function(t){Ec(t,this._top)||(this._top=t,this._propertyChanged.notify(this,"top"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this._right},set:function(t){Ec(t,this._right)||(this._right=t,this._propertyChanged.notify(this,"right"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this._bottom},set:function(t){Ec(t,this._bottom)||(this._bottom=t,this._propertyChanged.notify(this,"bottom"))},enumerable:!0,configurable:!0}),e.prototype.clone=function(){return new e({left:this.left,top:this.top,right:this.right,bottom:this.bottom})},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this._left&&0===this._top&&0===this._right&&0===this._bottom},enumerable:!0,configurable:!0}),e.prototype.equals=function(t){return this.left===t.left&&this.top===t.top&&this.right===t.right&&this.bottom===t.bottom},e.prototype.getSimplifiedObject=function(){return{left:this.left,top:this.top,right:this.right,bottom:this.bottom}},e.prototype.addPropertyChanged=function(t){this._propertyChanged.add(t)},e.prototype.removePropertyChanged=function(t){this._propertyChanged.remove(t)},e}(ah);!function(t){t[t.Trim=0]="Trim",t[t.Bleed=1]="Bleed",t[t.Total=2]="Total"}(ld||(ld={}));var hd,pd=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fd=(function(t){function e(e,n,r){var o=t.call(this)||this;return o.parentSurface=null,o._safetyLines=new _h,o._cropMarks=new _h,o._onBoundsPropertyChanged=function(t,e){o._propertyChanged.notify(o,"bounds")},o._onBleedPropertyChanged=function(t,e){o._validateMargin(o.bleed,"bleed"),o._propertyChanged.notify(o,"bleed")},o._onSlugPropertyChanged=function(t,e){o._validateMargin(o.slug,"slug"),o._propertyChanged.notify(o,"slug")},o._validateMargin(n,"bleed"),o._validateMargin(r,"slug"),o._bounds=null!=e?e:new Cc,o.bleed=null!=n?n:new cd,o.slug=null!=r?r:new cd,o}pd(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this._bounds},set:function(t){this._bounds.equals(t)||(this._unsubscribeBoundsPropertyChanged(),this._bounds=t,this._subscribeBoundsPropertyChanged(),this._propertyChanged.notify(this,"bounds"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"safetyLines",{get:function(){return this._safetyLines},set:function(t){this._safetyLines!==t&&(this._safetyLines=t,this._propertyChanged.notify(this,"safetyLines"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cropMarks",{get:function(){return this._cropMarks},set:function(t){this._cropMarks!==t&&(this._cropMarks=t,this._propertyChanged.notify(this,"cropMarks"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bleed",{get:function(){return this._bleed},set:function(t){Ac(t,this._bleed)||(this._validateMargin(t,"bleed"),this._unsubscribeBleedPropertyChanged(),this._bleed=t,this._subscribeBleedPropertyChanged(),this._propertyChanged.notify(this,"bleed"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"slug",{get:function(){return this._slug},set:function(t){Ac(t,this._slug)||(this._validateMargin(t,"slug"),this._unsubscribeSlugPropertyChanged(),this._slug=t,this._subscribeSlugPropertyChanged(),this._propertyChanged.notify(this,"slug"))},enumerable:!0,configurable:!0}),e.prototype.getBounds=function(t){switch(t){case ld.Bleed:return this.bounds.getExpanded(this.bleed);case ld.Total:return this.bounds.getExpanded(new cd({left:this.bleed.left+this.slug.left,top:this.bleed.top+this.slug.top,right:this.bleed.right+this.slug.right,bottom:this.bleed.bottom+this.slug.bottom}));default:return this.bounds.clone()}},e.prototype._subscribeBoundsPropertyChanged=function(){null!=this._bounds&&this._bounds.addPropertyChanged(this._onBoundsPropertyChanged)},e.prototype._unsubscribeBoundsPropertyChanged=function(){null!=this._bounds&&this._bounds.removePropertyChanged(this._onBoundsPropertyChanged)},e.prototype._subscribeBleedPropertyChanged=function(){null!=this._bleed&&this._bleed.addPropertyChanged(this._onBleedPropertyChanged)},e.prototype._unsubscribeBleedPropertyChanged=function(){null!=this._bleed&&this._bleed.removePropertyChanged(this._onBleedPropertyChanged)},e.prototype._subscribeSlugPropertyChanged=function(){null!=this._slug&&this._slug.addPropertyChanged(this._onSlugPropertyChanged)},e.prototype._unsubscribeSlugPropertyChanged=function(){null!=this._slug&&this._slug.removePropertyChanged(this._onSlugPropertyChanged)},e.prototype._validateMargin=function(t,e){if(null!=t&&(t.left<0||t.top<0||t.right<0||t.bottom<0))throw new mu("PrintArea.ts: "+e+" margin members cannot be negative!")},e.prototype.getSimplifiedObject=function(){return t.prototype.getSimplifiedObject.call(this,["parentSurface","boundsWithMargins","boundsWithBleed"])},e.prototype._copy=function(e,n,r){var o,i;t.prototype._copy.call(this,e,n,r),n.bounds=null!=e.bounds?e.bounds.clone():null,n.safetyLines.addRange(e.safetyLines.toArray().map((function(t){return t.clone()}))),n.cropMarks.addRange(e.cropMarks.toArray().map((function(t){return t.clone()}))),n.bleed=null===(o=e.bleed)||void 0===o?void 0:o.clone(),n.slug=null===(i=e.slug)||void 0===i?void 0:i.clone()},e.prototype.clone=function(t){void 0===t&&(t=!1);var n=new e;return this._copy(this,n,t),n},e.prototype.generateNewIds=function(){this._generateNewId()}}(ah),function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),dd=function(t){function e(e,n){void 0===e&&(e=[]),void 0===n&&(n=[]);var r=t.call(this)||this;return r.parentSurface=null,r._underContainers=new _h,r._overContainers=new _h,r._onContainerAdded=function(t){t.item.parentComponent=r},r.underContainers.add_itemAdded(r._onContainerAdded),r.underContainers.setRange(e),r.overContainers.add_itemAdded(r._onContainerAdded),r.overContainers.setRange(n),r}return fd(e,t),e.prototype.isEmpty=function(){return this.underContainers.concat(this.overContainers).all((function(t){return t.items.empty}))},Object.defineProperty(e.prototype,"underContainers",{get:function(){return this._underContainers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overContainers",{get:function(){return this._overContainers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allContainers",{get:function(){return this._overContainers.concat(this._underContainers)},enumerable:!0,configurable:!0}),e.prototype.getSimplifiedObject=function(){return t.prototype.getSimplifiedObject.call(this,["parentSurface","allContainers"])},e.prototype._copy=function(e,n,r){t.prototype._copy.call(this,e,n,r),n.underContainers.addRange(e.underContainers.toArray().map((function(t){return t.clone(r)}))),n.overContainers.addRange(e.overContainers.toArray().map((function(t){return t.clone(r)})))},e.prototype.clone=function(t){void 0===t&&(t=!1);var n=new e;return this._copy(this,n,t),n},e.prototype.generateNewIds=function(){this._generateNewId(),this._underContainers.forEach((function(t){return t.generateNewIds()})),this._overContainers.forEach((function(t){return t.generateNewIds()}))},e}(ah),gd=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yd=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},md=function(t){function e(e,n,r,o,i,s,a){void 0===o&&(o=[]);var l=t.call(this,i,s)||this;if(l._rotateAngle=0,l._mockup=new dd,l._printAreas=new _h,l._previewMockups=new _h,l._printAreasCollectionChangedEvent=new fu,l._printAreaAddedEvent=new fu,l._printAreaRemovedEvent=new fu,l._onContainersItemAdded=function(t){t.item.parentComponent=l},l._onContainersItemRemoved=function(t){t.item.parentComponent=null},l.watermark=null,l._containers=new _h,l._onPrintAreaAdded=function(t){var e=t.item;e.parentSurface=l,l._printAreaAddedEvent.notify(l,e)},l._onPrintAreaRemoved=function(t){var e=t.item;e.parentSurface=null,l._printAreaRemovedEvent.notify(l,e)},l.width=null!=e?e:100,l.height=null!=n?n:100,l.parentProduct=null,l.mockup=null!=r?r:new dd,l.printAreas.add_itemAdded(l._onPrintAreaAdded),l.printAreas.add_itemRemoved(l._onPrintAreaRemoved),l.printAreas.setRange(o),l._containers.add_itemAdded(l._onContainersItemAdded),l._containers.add_itemRemoved(l._onContainersItemRemoved),a){var u=new Ph;u.name=iu.BG_CONTAINER_NAME,l.containers.push(u);var c=new Ph;c.name=iu.MAIN_CONTAINER_NAME,l.containers.push(c);var h=new Ph;h.name=iu.FG_CONTAINER_NAME,l.containers.push(h)}return l}return gd(e,t),Object.defineProperty(e.prototype,"rotateAngle",{get:function(){return this._rotateAngle},set:function(t){var e=Pc(t);e!==this._rotateAngle&&(this._rotateAngle=e,this._propertyChanged.notify(this,"rotateAngle"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){t!==this._width&&(this._width=t,this._propertyChanged.notify(this,"width"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){t!==this._height&&(this._height=t,this._propertyChanged.notify(this,"height"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mockup",{get:function(){return this._mockup},set:function(t){if(null==t)throw new mu("mockup can`t be null");t!==this._mockup&&(this._mockup=t,null!=this._mockup&&(this._mockup.parentSurface=this),this._propertyChanged.notify(this,"mockup"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previewMockups",{get:function(){return this._previewMockups},set:function(t){var e,n;if(null!=this._previewMockups)try{for(var r=yd(this._previewMockups),o=r.next();!o.done;o=r.next())o.value.parentSurface=null}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}if(this._previewMockups=t,null!=this._previewMockups)for(var i=0;i<this._previewMockups.length;++i)this._previewMockups.get(i).parentSurface=this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"containers",{get:function(){return this._containers},set:function(t){if(null!=t&&t!==this._containers){null!=this._containers&&(this._containers.clear(),this._containers.remove_itemAdded(this._onContainersItemAdded),this._containers.remove_itemRemoved(this._onContainersItemRemoved)),this._containers=t;for(var e=0;e<this._containers.length;e++)this._onContainersItemAdded({index:e,item:this._containers.get(e)});this._containers.add_itemAdded(this._onContainersItemAdded),this._containers.add_itemRemoved(this._onContainersItemRemoved)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"printAreas",{get:function(){return this._printAreas},set:function(t){var e,n;if(null!=t&&t!==this._printAreas){null!=this._printAreas&&(this._printAreas.clear(),this._printAreas.remove_itemAdded(this._onPrintAreaAdded),this._printAreas.remove_itemRemoved(this._onPrintAreaRemoved)),this._printAreas=t;try{for(var r=yd(this._printAreas),o=r.next();!o.done;o=r.next())this._onPrintAreaAdded({item:o.value})}catch(i){e={error:i}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}this._printAreas.add_itemAdded(this._onPrintAreaAdded),this._printAreas.add_itemRemoved(this._onPrintAreaRemoved)}},enumerable:!0,configurable:!0}),e.prototype.add_printAreaAdded=function(t){this._printAreaAddedEvent.add(t)},e.prototype.remove_printAreaAdded=function(t){this._printAreaAddedEvent.remove(t)},e.prototype.add_printAreaRemoved=function(t){this._printAreaRemovedEvent.add(t)},e.prototype.remove_printAreaRemoved=function(t){this._printAreaRemovedEvent.remove(t)},e.prototype.getSimplifiedObject=function(){return t.prototype.getSimplifiedObject.call(this,["parentProduct","nonChannelContainerItems"])},e.prototype.getAllItems=function(t){void 0===t&&(t={ignoreMockups:!1});var e=t.ignoreMockups?this.containers:hh.empty().concat(this.mockup.underContainers.cast(),this.containers,this.mockup.overContainers.cast());null!=t.containerFilterFunc&&(e=e.where(t.containerFilterFunc));var n=e.selectMany((function(t){return t.items.cast()}));return(t.flatGroupItems||t.includePlaceholderContents)&&(n=n.aggregate(new _h,(function(e,n){return n instanceof Qp?(e.addRange(n.getNestedItems()),t.excludeGroupItems||e.add(n)):e.add(n),t.includePlaceholderContents&&n instanceof od&&(null!=n.content&&e.add(n.content),n.topFrames.concat(n.bottomFrames).forEach((function(t){return e.add(t)}))),e}))),n},e.getItems=function(t,e){return t instanceof Array&&(t=hh.from(t)),t.selectMany((function(t){return t.getAllItems(e)})).toArray()},e.prototype.getBackgroundItem=function(){var t=this.containers.firstOrDefault((function(t){return t.name===iu.BG_CONTAINER_NAME}));return null!=t?t.items.get(0):null},e.prototype._copy=function(e,n,r){t.prototype._copy.call(this,e,n,r),n.width=e.width,n.height=e.height,n.rotateAngle=e.rotateAngle,n.mockup=e.mockup.clone(r),n.previewMockups.addRange(e.previewMockups.toArray().map((function(t){return t.clone(r)}))),n.printAreas.addRange(e.printAreas.toArray().map((function(t){return t.clone(r)}))),n.containers.addRange(e.containers.toArray().map((function(t){return t.clone(r)}))),n.watermark=null!=e.watermark?e.watermark.clone():null},e.prototype.clone=function(t){void 0===t&&(t=!1);var n=new e;return this._copy(this,n,t),n},e.prototype.generateNewIds=function(){this._generateNewId(),this._mockup.generateNewIds(),this._previewMockups.forEach((function(t){return t.generateNewIds()})),this._printAreas.forEach((function(t){return t.generateNewIds()})),this._containers.forEach((function(t){return t.generateNewIds()}))},e.getAllItems=function(t,e){return void 0===e&&(e={ignoreMockups:!1}),t instanceof Array&&(t=hh.from(t)),t.selectMany((function(t){return t.getAllItems(e)}))},Object.defineProperty(e.prototype,"nonChannelContainerItems",{get:function(){return Cu.flatten(this._containers.toArray().filter((function(t){return t.renderingType===mh.Normal})).map((function(t){return t.items.toArray()})))},enumerable:!0,configurable:!0}),e}(ah),_d=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _d(e,t),e}(_h),vd=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function wd(t){return"string"==typeof t?t:t instanceof th&&t.inkColor instanceof Uc?t.inkColor:t instanceof th&&t.inkColor instanceof $c?null:void 0}!function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n._defaultSafetyLines=new _h,n._defaultCropMarks=new _h,n.defaultDesignLocation=new vc,n._onSurfacesAdd=function(t){t.item.parentProduct=n},n._surfaces=new _h,n.surfaces.add_collectionChanged(n._onSurfacesAdd),n.surfaces.setRange(e),n.palette=new bd,n}vd(e,t),Object.defineProperty(e.prototype,"surfaces",{get:function(){return this._surfaces},set:function(t){this.surfaces.setRange(t)},enumerable:!0,configurable:!0}),e.prototype.serialize=function(t,e){return t.serialize(this,e)},Object.defineProperty(e.prototype,"defaultSafetyLines",{get:function(){return this._defaultSafetyLines},set:function(t){this._defaultSafetyLines!==t&&(this._defaultSafetyLines=t,this._propertyChanged.notify(this,"defaultSafetyLines"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultCropMarks",{get:function(){return this._defaultCropMarks},set:function(t){this._defaultCropMarks!==t&&(this._defaultCropMarks=t,this._propertyChanged.notify(this,"defaultCropMarks"))},enumerable:!0,configurable:!0}),e.prototype._copy=function(e,n,r){t.prototype._copy.call(this,e,n,r),n.surfaces.addRange(e.surfaces.toArray().map((function(t){return t.clone(r)}))),n.watermarkConfig=null!=e.watermarkConfig?e.watermarkConfig.clone():null,n.defaultCropMarks.addRange(e.defaultCropMarks.toArray().map((function(t){return t.clone()}))),n.defaultSafetyLines.addRange(e.defaultSafetyLines.toArray().map((function(t){return t.clone()}))),n.defaultDesignLocation=e.defaultDesignLocation.clone(),n.palette.addRange(e.palette.select((function(t){return t.clone(r)})))},e.prototype.clone=function(t){void 0===t&&(t=!1);var n=new e;return this._copy(this,n,t),n},e.prototype.getAllItems=function(t){return void 0===t&&(t={ignoreMockups:!1}),md.getItems(this.surfaces,t)},e.prototype.generateNewIds=function(){this._generateNewId(),this._surfaces.forEach((function(t){return t.generateNewIds()}))},e.prototype.getSurface=function(t){var e=this.surfaces.toArray(),n=parseInt(t);return NaN!=n&&n>=0&&e.length>n?e[n]:Object(Cu.find)(e,(function(e){return e.name===t}))}}(ah),function(t){t.Crop="Crop",t.Trim="Trim",t.Bleed="Bleed"}(hd||(hd={})),function(){function t(t){this._propertyChanged=new fu,this._name="bleed",this._widthPx=1,this._color=new Uc({r:255,g:255,b:255,a:255}),this._altColor=new Uc({r:0,g:0,b:0,a:255}),this._stepPx=10,this._margin=new cd(10),this._borderRadius=null,this._pdfBox=null,null!=t&&Object.assign(this,t)}Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){this._name!==t&&(this._name=t,this._propertyChanged.notify(this,"name"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widthPx",{get:function(){return this._widthPx},set:function(t){Ec(this._widthPx,t)||(this._widthPx=t,this._propertyChanged.notify(this,"widthPx"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color},set:function(t){zc.equals(this._color,t)||(this._color=t,this._propertyChanged.notify(this,"color"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"altColor",{get:function(){return this._altColor},set:function(t){zc.equals(this._altColor,t)||(this._altColor=t,this._propertyChanged.notify(this,"altColor"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"margin",{get:function(){return this._margin},set:function(t){"number"==typeof t&&(t=new cd(t)),this._margin=t,this._propertyChanged.notify(this,"margin")},enumerable:!0,configurable:!0}),t.prototype.getMargin=function(){return this._margin},Object.defineProperty(t.prototype,"stepPx",{get:function(){return this._stepPx},set:function(t){Ec(this._stepPx,t)||(this._stepPx=t,this._propertyChanged.notify(this,"stepPx"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"borderRadius",{get:function(){return this._borderRadius},set:function(t){this._borderRadius!==t&&(this._borderRadius=t,this._propertyChanged.notify(this,"borderRadius"))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pdfBox",{get:function(){return this._pdfBox},set:function(t){this._pdfBox!==t&&(this._pdfBox=t,this._propertyChanged.notify(this,"pdfBox"))},enumerable:!0,configurable:!0}),t.prototype.getRectangle=function(t){var e=this.getMargin();return Cc.FromLTRB(t.left+e.left,t.top+e.top,t.right-e.right,t.bottom-e.bottom)},t.prototype.getCornerRadiuses=function(t){return null==this.borderRadius?null:new nh(this.getRectangle(t),72).convert(this.borderRadius)},t.prototype.addPropertyChanged=function(t){this._propertyChanged.add(t)},t.prototype.removePropertyChanged=function(t){this._propertyChanged.remove(t)},t.prototype.clone=function(){var e,n=new t;return n.name=this.name,n.widthPx=this.widthPx,n.color=this.color.clone(),n.altColor=this.altColor.clone(),n.stepPx=this.stepPx,n.borderRadius=this.borderRadius,n.pdfBox=this.pdfBox,n.margin=null===(e=this._margin)||void 0===e?void 0:e.clone(),n}}(),function(){function t(){}t.prototype.clone=function(){var e=new t;return e.storageId=this.storageId,e.width=this.width,e.height=this.height,e}}();class Cd{constructor(t,e,n=Pd.Color){this.color=n!==Pd.None?t:Kc.createColor("rgba(0, 0, 0, 0)",!1,!0),this.title=null!=e?e:Cd.getColorTitle(t),this.type=n}get isAddItem(){return this.type===Pd.AddItem}get isNone(){return this.type===Pd.None}static getColorTitle(t){const e=Cd.toPercent;return t instanceof $c?255===t.a?`C:${e(t.c)} M:${e(t.m)} Y:${e(t.y)} K:${e(t.k)}`:`C:${e(t.c)} M:${e(t.m)} Y:${e(t.y)} K:${e(t.k)} A:${e(t.a)}`:t instanceof Uc?255===t.a?`R:${t.r} G:${t.g} B:${t.b}`:`R:${t.r} G:${t.g} B:${t.b} A:${e(t.a)}`:t instanceof Jc?255===t.a?`L:(${t.l},${t.a},${t.b}`:`L:(${t.l},${t.a},${t.b},${e(t.alpha)}`:t instanceof th?t.inkName:""}get preview(){return this.color.preview}clone(){return new Cd(this.color.clone(),this.title,this.type)}equals(t){return null!=t&&Ac(this.color,t.color)&&Ac(this.title,t.title)&&Ac(this.type,t.type)}static toPercent(t){return Math.round(t/255*100).toString()}}var Pd=function(t){return t[t.Color=0]="Color",t[t.ThemeColor=1]="ThemeColor",t[t.AddItem=2]="AddItem",t[t.None=3]="None",t}({});const Od="rgba(0, 0, 0, 255)";function xd(t){const e=t instanceof Cd?t.color:t;if(null==e)return Od;const n=e instanceof Uc?e:new Uc(e.preview),r=1-n.a/255,o=[(n.r+(255-n.r)*r)/255,(n.g+(255-n.g)*r)/255,(n.b+(255-n.b)*r)/255];for(let i=0;i<o.length;i++)o[i]=o[i]<=.03928?o[i]/12.92:Math.pow((o[i]+.055)/1.055,2.4);return.2126*o[0]+.7152*o[1]+.0722*o[2]>.179?Od:"rgba(255, 255, 255, 255)"}class Sd{constructor(t){this.prefix=t,this.showFilters=!1,this.filterChanged=new Po,this.filterCleared=new Po,this.contrastColor=xd,this.getBackground=wd}ngOnInit(){}toggleFilters(t){this.showFilters=!this.showFilters,t.stopPropagation()}setFilter(t){this.filterChanged.emit(t),this.showFilters=!1}onClick(t){const e=t.target.classList,n=e.contains("au-pantone-picker__filters-dropdown"),r=e.contains("au-pantone-picker__filters-item");n||r||(this.showFilters=!1)}clearFilters(){this.filterCleared.emit()}getGridTemplateColumn(){const t=this.filters.length;if(null==t)return;if(t>5)return"1fr 1fr 1fr 1fr 1fr 1fr ";let e="";for(let n=1;n<=t&&(e+="1fr ",6!==n);n++);return e}}var Ed=Gn({encapsulation:0,styles:[[".au-pantone-picker__filters[_ngcontent-%COMP%]{justify-content:space-between;position:relative}.au-pantone-picker__filters[_ngcontent-%COMP%], .au-pantone-picker__filters-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}.au-pantone-picker__filters-arrow[_ngcontent-%COMP%]{background:transparent;border:none;display:inline-block;padding:0;cursor:pointer}.au-pantone-picker__filters-arrow_up[_ngcontent-%COMP%]{transform:rotate(180deg)}.au-pantone-picker__filters-arrow[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:block}.au-pantone-picker__filters-info[_ngcontent-%COMP%]{padding:8px 0;display:flex;cursor:pointer}.au-pantone-picker__filters-text[_ngcontent-%COMP%]{margin:0 4px 0 0}.au-pantone-picker__filters-dropdown[_ngcontent-%COMP%]{width:-webkit-min-content;width:-moz-min-content;width:min-content;background:#fff;position:absolute;top:calc(100% - 8px);display:grid;grid-gap:8px;padding:20px;box-shadow:0 1px 4px rgba(0,0,0,.08),0 2px 16px rgba(0,0,0,.16);border-radius:4px;z-index:2;margin-right:8px}.au-pantone-picker__filters-item[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:32px;height:32px;border:1px solid rgba(0,0,0,.12);border-radius:2px;cursor:pointer}.au-pantone-picker__filters-reset[_ngcontent-%COMP%]{display:flex;background:transparent;border:none;align-items:center;cursor:pointer;padding:0}.au-pantone-picker__filters-reset[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .au-pantone-picker__filters-reset[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:block;font-size:14px;font-family:Roboto,Helvetica Neue,sans-serif;color:#686868}.au-pantone-picker__filters-reset[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{margin-right:4px}"]],data:{}});function kd(t){return qi(0,[(t()(),Ei(0,0,null,null,5,"button",[],[[8,"className",0]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.clearFilters()&&r),r}),null,null)),(t()(),Ei(1,0,null,null,1,":svg:svg",[["fill","none"],["height","24"],["viewBox","0 0 24 24"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),Ei(2,0,null,null,0,":svg:path",[["d","M12.0009 12L17.2435 17.2426M6.7583 17.2426L12.0009 12L6.7583 17.2426ZM17.2435 6.75732L12.0009 12L17.2435 6.75732ZM12.0009 12L6.7583 6.75732L12.0009 12Z"],["stroke","#686868"],["stroke-linecap","round"],["stroke-linejoin","round"],["stroke-width","1.5"]],null,null,null,null,null)),(t()(),Ei(3,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),Di(4,null,["",""])),to(131072,Jl,[Zl,xe])],null,(function(t,e){t(e,0,0,br(1,"",e.component.prefix,"-pantone-picker__filters-reset")),t(e,4,0,Wn(e,4,0,Ur(e,5).transform("PantonePicker.RESET")))}))}function Td(t){return qi(0,[(t()(),Ei(0,0,null,null,1,":svg:svg",[["fill","none"],["height","24"],["viewBox","0 0 24 24"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),Ei(1,0,null,null,0,":svg:path",[["d","M5 13L9 17L19 7"],["stroke-linecap","round"],["stroke-linejoin","round"],["stroke-width","2"]],[[1,"stroke",0]],null,null,null,null))],null,(function(t,e){t(e,1,0,e.component.contrastColor(e.parent.context.$implicit.displayColor))}))}function jd(t){return qi(0,[(t()(),Ei(0,0,null,null,2,"div",[],[[8,"className",0],[4,"background",null]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.setFilter(t.context.$implicit)&&r),r}),null,null)),(t()(),Si(16777216,null,null,1,null,Td)),Qr(2,16384,null,0,da,[Tn,En],{ngIf:[0,"ngIf"]},null)],(function(t,e){t(e,2,0,e.context.$implicit===e.component.currentFilter)}),(function(t,e){t(e,0,0,br(1,"",e.component.prefix,"-pantone-picker__filters-item"),e.context.$implicit.displayColor.preview)}))}function Id(t){return qi(0,[(t()(),Ei(0,0,[[1,0],["dropdown",1]],null,2,"div",[],[[8,"className",0],[4,"grid-template-columns",null]],null,null,null,null)),(t()(),Si(16777216,null,null,1,null,jd)),Qr(2,278528,null,0,pa,[Tn,En,Cn],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){t(e,2,0,e.component.filters)}),(function(t,e){var n=e.component;t(e,0,0,br(1,"",n.prefix,"-pantone-picker__filters-dropdown"),n.getGridTemplateColumn())}))}function Rd(t){return qi(0,[Ri(671088640,1,{dropdown:0}),(t()(),Ei(1,0,null,null,15,"div",[],[[8,"className",0]],null,null,null,null)),(t()(),Ei(2,0,null,null,10,"div",[],[[8,"className",0]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggleFilters(n)&&r),r}),null,null)),(t()(),Ei(3,0,null,null,2,"p",[],[[8,"className",0]],null,null,null,null)),(t()(),Di(4,null,["",":"])),to(131072,Jl,[Zl,xe]),(t()(),Ei(6,0,null,null,2,"p",[],[[8,"className",0]],null,null,null,null)),(t()(),Di(7,null,[" "," "])),to(131072,Jl,[Zl,xe]),(t()(),Ei(9,0,null,null,3,"button",[],null,null,null,null,null)),Qr(10,278528,null,0,ca,[Cn,Pn,nn,an],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Ei(11,0,null,null,1,":svg:svg",[["fill","none"],["height","16"],["viewBox","0 0 16 16"],["width","16"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),Ei(12,0,null,null,0,":svg:path",[["d","M4 6L8 10L12 6"],["stroke","#686868"],["stroke-linecap","round"],["stroke-linejoin","round"],["stroke-width","1.5"]],null,null,null,null,null)),(t()(),Si(16777216,null,null,1,null,kd)),Qr(14,16384,null,0,da,[Tn,En],{ngIf:[0,"ngIf"]},null),(t()(),Si(16777216,null,null,1,null,Id)),Qr(16,16384,null,0,da,[Tn,En],{ngIf:[0,"ngIf"]},null)],(function(t,e){var n=e.component;t(e,10,0,br(1,"",n.prefix,"-pantone-picker__filters-arrow"),n.showFilters?n.prefix+"-pantone-picker__filters-arrow_up":""),t(e,14,0,null!=n.currentFilter),t(e,16,0,n.showFilters)}),(function(t,e){var n=e.component;t(e,1,0,br(1,"",n.prefix,"-pantone-picker__filters")),t(e,2,0,br(1,"",n.prefix,"-pantone-picker__filters-info")),t(e,3,0,br(1,"",n.prefix,"-pantone-picker__filters-text")),t(e,4,0,Wn(e,4,0,Ur(e,5).transform("PantonePicker.COLOR"))),t(e,6,0,br(1,"",n.prefix,"-pantone-picker__filters-text")),t(e,7,0,null!=n.currentFilter?n.currentFilter.title:Wn(e,7,0,Ur(e,8).transform("PantonePicker.NO_FILTER_SELECTED")))}))}class Ad{transform(t){return t.replace(/pantone/gi,"").trim()}}class Md{constructor(t){this.prefix=t,this.colorPicked=new Po,this.contrastColor=xd,this.getBackground=wd}ngOnInit(){}pickColor(t){this.colorPicked.emit(t)}}var Nd=Gn({encapsulation:0,styles:[['[_nghost-%COMP%]{overflow-y:auto}.au-pantone-picker__colors[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center}.au-pantone-picker__colors-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,minmax(48px,1fr));justify-content:flex-start;grid-gap:16px 8px;overflow-y:auto;overflow-x:hidden;padding-right:7px}.au-pantone-picker__colors-group[_ngcontent-%COMP%]{cursor:pointer}.au-pantone-picker__colors-sample[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:center;align-items:center;border-radius:20px;width:40px;height:40px;margin:0 auto;box-sizing:border-box;text-align:center}.au-pantone-picker__colors-sample[_ngcontent-%COMP%]:before{position:absolute;content:"";border:1px solid rgba(0,0,0,.12);border-radius:20px;top:0;left:0;right:0;bottom:0}.au-pantone-picker__colors-sample_active[_ngcontent-%COMP%]:before{border:2px solid #fff;outline:2px solid #000;border-radius:20px;top:2px;left:2px;right:2px;bottom:2px}.au-pantone-picker__colors-name[_ngcontent-%COMP%]{font-size:12px;text-overflow:ellipsis;text-transform:capitalize;text-align:center;overflow:hidden;white-space:nowrap;max-width:100%}.au-pantone-picker__colors-empty-title[_ngcontent-%COMP%]{font-weight:500;font-size:16px;line-height:24px;color:#282828;text-align:center;padding:0 20px;margin:0 0 4px}.au-pantone-picker__colors-empty-text[_ngcontent-%COMP%]{margin:0;text-align:center;padding:0 20px}']],data:{}});function Bd(t){return qi(0,[(t()(),Ei(0,0,null,null,1,":svg:svg",[["fill","none"],["height","24"],["viewBox","0 0 24 24"],["width","24"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),Ei(1,0,null,null,0,":svg:path",[["d","M5 13L9 17L19 7"],["stroke-linecap","round"],["stroke-linejoin","round"],["stroke-width","2"]],[[1,"stroke",0]],null,null,null,null))],null,(function(t,e){var n=e.component;t(e,1,0,n.contrastColor(n.getBackground(e.parent.context.$implicit.value)))}))}function Ld(t){return qi(0,[(t()(),Ei(0,0,null,null,7,"div",[],[[8,"className",0]],[[null,"click"]],(function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.pickColor(t.context.$implicit)&&r),r}),null,null)),(t()(),Ei(1,0,null,null,3,"div",[],[[4,"background",null]],null,null,null,null)),Qr(2,278528,null,0,ca,[Cn,Pn,nn,an],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),Si(16777216,null,null,1,null,Bd)),Qr(4,16384,null,0,da,[Tn,En],{ngIf:[0,"ngIf"]},null),(t()(),Ei(5,0,null,null,2,"div",[],[[8,"className",0],[8,"title",0]],null,null,null,null)),(t()(),Di(6,null,["",""])),Fi(128,7,At(2))],(function(t,e){var n=e.component;t(e,2,0,br(1,"",n.prefix,"-pantone-picker__colors-sample"),n.currentColor===e.context.$implicit?n.prefix+"-pantone-picker__colors-sample_active":""),t(e,4,0,n.currentColor===e.context.$implicit)}),(function(t,e){var n=e.component;t(e,0,0,br(1,"",n.prefix,"-pantone-picker__colors-group")),t(e,1,0,n.getBackground(e.context.$implicit.value)),t(e,5,0,br(1,"",n.prefix,"-pantone-picker__colors-name"),e.context.$implicit.value.inkName);var r=Wn(e,6,0,t(e,7,0,Ur(e.parent.parent,0),e.context.$implicit.value.inkName));t(e,6,0,r)}))}function Fd(t){return qi(0,[(t()(),Ei(0,0,null,null,2,"div",[],[[8,"className",0]],null,null,null,null)),(t()(),Si(16777216,null,null,1,null,Ld)),Qr(2,278528,null,0,pa,[Tn,En,Cn],{ngForOf:[0,"ngForOf"]},null)],(function(t,e){t(e,2,0,e.component.visibleColors)}),(function(t,e){t(e,0,0,br(1,"",e.component.prefix,"-pantone-picker__colors-wrapper"))}))}function Dd(t){return qi(0,[(t()(),Ei(0,0,null,null,6,"div",[],[[8,"className",0]],null,null,null,null)),(t()(),Ei(1,0,null,null,2,"p",[],[[8,"className",0]],null,null,null,null)),(t()(),Di(2,null,["",""])),to(131072,Jl,[Zl,xe]),(t()(),Ei(4,0,null,null,2,"p",[],[[8,"className",0]],null,null,null,null)),(t()(),Di(5,null,["",""])),to(131072,Jl,[Zl,xe])],null,(function(t,e){var n=e.component;t(e,0,0,br(1,"",n.prefix,"-pantone-picker__colors-empty")),t(e,1,0,br(1,"",n.prefix,"-pantone-picker__colors-empty-title")),t(e,2,0,Wn(e,2,0,Ur(e,3).transform("PantonePicker.NO_RESULT_TITLE"))),t(e,4,0,br(1,"",n.prefix,"-pantone-picker__colors-empty-text")),t(e,5,0,Wn(e,5,0,Ur(e,6).transform("PantonePicker.NO_RESULT_TEXT")))}))}function Vd(t){return qi(0,[to(0,Ad,[]),(t()(),Ei(1,0,null,null,3,"div",[],[[8,"className",0]],null,null,null,null)),(t()(),Si(16777216,null,null,1,null,Fd)),Qr(3,16384,null,0,da,[Tn,En],{ngIf:[0,"ngIf"],ngIfElse:[1,"ngIfElse"]},null),(t()(),Si(0,[["emptyState",2]],null,0,null,Dd))],(function(t,e){var n=e.component;t(e,3,0,(null==n.visibleColors?null:n.visibleColors.length)>0,Ur(e,4))}),(function(t,e){t(e,1,0,br(1,"",e.component.prefix,"-pantone-picker__colors"))}))}class zd{static getDescendantProperty(t,e,n=[]){let r,o,i,s,a,l;if(e){if(i=e.indexOf("."),-1===i?r=e:(r=e.slice(0,i),o=e.slice(i+1)),s=t[r],null!=s)if(o||"string"!=typeof s&&"number"!=typeof s)if("[object Array]"===Object.prototype.toString.call(s))for(a=0,l=s.length;a<l;a++)zd.getDescendantProperty(s[a],o,n);else o&&zd.getDescendantProperty(s,o,n);else n.push(s)}else n.push(t);return n}}class qd{constructor(t=[],e=[],n={}){Array.isArray(e)||(n=e,e=[]),this.haystack=t,this.keys=e,this.options=Object.assign({caseSensitive:!1,sort:!1},n)}search(t=""){if(""===t)return this.haystack;const e=[];for(let n=0;n<this.haystack.length;n++){const r=this.haystack[n];if(0===this.keys.length){const n=qd.isMatch(r,t,this.options.caseSensitive);n&&e.push({item:r,score:n})}else for(let n=0;n<this.keys.length;n++){const o=zd.getDescendantProperty(r,this.keys[n]);let i=!1;for(let n=0;n<o.length;n++){const s=qd.isMatch(o[n],t,this.options.caseSensitive);if(s){i=!0,e.push({item:r,score:s});break}}if(i)break}}return this.options.sort&&e.sort((t,e)=>t.score-e.score),e.map(t=>t.item)}static isMatch(t,e,n){t=String(t),e=String(e),n||(t=t.toLocaleLowerCase(),e=e.toLocaleLowerCase());const r=qd.nearestIndexesFor(t,e);return!!r&&(t===e?1:r.length>1?r[r.length-1]-r[0]+2:2+r[0])}static nearestIndexesFor(t,e){const n=e.split("");let r=[];return qd.indexesOfFirstLetter(t,e).forEach((e,o)=>{let i=e+1;r[o]=[e];for(let s=1;s<n.length;s++){if(i=t.indexOf(n[s],i),-1===i){r[o]=!1;break}r[o].push(i),i++}}),r=r.filter(t=>!1!==t),!!r.length&&r.sort((t,e)=>1===t.length?t[0]-e[0]:(t=t[t.length-1]-t[0])-(e=e[e.length-1]-e[0]))[0]}static indexesOfFirstLetter(t,e){const n=e[0];return t.split("").map((t,e)=>t===n&&e).filter(t=>!1!==t)}}class Ud{constructor(t){this.title=t.title,this.displayColor=new Uc(t.displayColor),this.tag=t.tag}filter(t){return t.filter(t=>t.tags.includes(this.tag))}}class Hd{constructor(t,e,n){this.prefix=t,this._translateService=e,this._pantoneRemoverPipe=n,this.searchCollection=[],this.colors=[],this.filters=[],this.searchText="",this.colorPicked=new Po,this._translateService.setDefaultLang("en")}set config(t){null!=this.translations&&this.setTranslations(this.translations),null!=t&&(null!=t.lang&&this._translateService.use(t.lang),this.colors=t.colors.map(t=>({value:Kc.createColor(t.value),tags:t.tags})),this.searchCollection=[],this.colors.forEach(t=>{this.searchCollection.push({key:this._pantoneRemoverPipe.transform(t.value.inkName),color:t})}),this.filters=t.filters.map(t=>new Ud(t)),this.fuzzySearcher=new qd(this.searchCollection,["key"]),this.updateVisibleColors(),null==this.currentColor&&(this.currentColor=null==this.prevColor?this.visibleColors[0]:this.prevColor))}setTranslations(t){"object"==typeof t&&Object.keys(t).forEach(e=>{this._translateService.setTranslation(e,t[e],!0)})}pickColor(t){this.currentColor=t,this.colorPicked.emit(t)}setFilter(t){if(this.currentFilter===t)return this.clearFilters(),void(this.currentFilter=null);this.currentFilter=t,this.colorsByFilter=t.filter(this.colors),this.updateVisibleColors()}clearFilters(){this.currentFilter=null,this.colorsByFilter=null,this.updateVisibleColors()}searchColors(t){var e;if(null!=t&&(this.searchText=t),0===this.searchText.length)return this.colorsBySearch=null,void this.updateVisibleColors();this.colorsBySearch=null===(e=this.fuzzySearcher)||void 0===e?void 0:e.search(this.searchText).map(t=>t.color),this.updateVisibleColors()}updateVisibleColors(){this.visibleColors=null!=this.colorsByFilter||null!=this.colorsBySearch?null!=this.colorsByFilter?null!=this.colorsBySearch?this.colorsByFilter.filter(t=>this.colorsBySearch.some(e=>e.value.equals(t.value))):this.colorsByFilter:this.colorsBySearch:this.colors}}var Wd=Gn({encapsulation:0,styles:[['@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap")[_ngcontent-%COMP%];a[_ngcontent-%COMP%], abbr[_ngcontent-%COMP%], acronym[_ngcontent-%COMP%], address[_ngcontent-%COMP%], applet[_ngcontent-%COMP%], article[_ngcontent-%COMP%], aside[_ngcontent-%COMP%], audio[_ngcontent-%COMP%], b[_ngcontent-%COMP%], big[_ngcontent-%COMP%], blockquote[_ngcontent-%COMP%], body[_ngcontent-%COMP%], canvas[_ngcontent-%COMP%], caption[_ngcontent-%COMP%], center[_ngcontent-%COMP%], cite[_ngcontent-%COMP%], code[_ngcontent-%COMP%], dd[_ngcontent-%COMP%], del[_ngcontent-%COMP%], details[_ngcontent-%COMP%], dfn[_ngcontent-%COMP%], div[_ngcontent-%COMP%], dl[_ngcontent-%COMP%], dt[_ngcontent-%COMP%], em[_ngcontent-%COMP%], embed[_ngcontent-%COMP%], fieldset[_ngcontent-%COMP%], figcaption[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], footer[_ngcontent-%COMP%], form[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%], header[_ngcontent-%COMP%], hgroup[_ngcontent-%COMP%], html[_ngcontent-%COMP%], i[_ngcontent-%COMP%], iframe[_ngcontent-%COMP%], img[_ngcontent-%COMP%], ins[_ngcontent-%COMP%], kbd[_ngcontent-%COMP%], label[_ngcontent-%COMP%], legend[_ngcontent-%COMP%], li[_ngcontent-%COMP%], main[_ngcontent-%COMP%], mark[_ngcontent-%COMP%], menu[_ngcontent-%COMP%], nav[_ngcontent-%COMP%], object[_ngcontent-%COMP%], ol[_ngcontent-%COMP%], output[_ngcontent-%COMP%], p[_ngcontent-%COMP%], pre[_ngcontent-%COMP%], q[_ngcontent-%COMP%], ruby[_ngcontent-%COMP%], s[_ngcontent-%COMP%], samp[_ngcontent-%COMP%], section[_ngcontent-%COMP%], small[_ngcontent-%COMP%], span[_ngcontent-%COMP%], strike[_ngcontent-%COMP%], strong[_ngcontent-%COMP%], sub[_ngcontent-%COMP%], summary[_ngcontent-%COMP%], sup[_ngcontent-%COMP%], table[_ngcontent-%COMP%], tbody[_ngcontent-%COMP%], td[_ngcontent-%COMP%], tfoot[_ngcontent-%COMP%], th[_ngcontent-%COMP%], thead[_ngcontent-%COMP%], time[_ngcontent-%COMP%], tr[_ngcontent-%COMP%], tt[_ngcontent-%COMP%], u[_ngcontent-%COMP%], ul[_ngcontent-%COMP%], var[_ngcontent-%COMP%], video[_ngcontent-%COMP%]{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article[_ngcontent-%COMP%], aside[_ngcontent-%COMP%], details[_ngcontent-%COMP%], figcaption[_ngcontent-%COMP%], figure[_ngcontent-%COMP%], footer[_ngcontent-%COMP%], header[_ngcontent-%COMP%], hgroup[_ngcontent-%COMP%], main[_ngcontent-%COMP%], menu[_ngcontent-%COMP%], nav[_ngcontent-%COMP%], section[_ngcontent-%COMP%]{display:block}[hidden][_ngcontent-%COMP%]{display:none}body[_ngcontent-%COMP%]{line-height:1}menu[_ngcontent-%COMP%], ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{list-style:none}blockquote[_ngcontent-%COMP%], q[_ngcontent-%COMP%]{quotes:none}blockquote[_ngcontent-%COMP%]:after, blockquote[_ngcontent-%COMP%]:before, q[_ngcontent-%COMP%]:after, q[_ngcontent-%COMP%]:before{content:"";content:none}table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0}[_nghost-%COMP%]{height:100%}.au-pantone-picker[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-style:normal;font-weight:400;font-size:14px;line-height:20px;background:#fff;color:#686868;height:100%;display:flex;flex-direction:column;overflow:hidden}.au-pantone-picker__header[_ngcontent-%COMP%]{margin-bottom:16px}'],[".au-pantone-picker[_ngcontent-%COMP%]{box-sizing:border-box}.au-pantone-picker[_ngcontent-%COMP%]   *[_ngcontent-%COMP%], .au-pantone-picker[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:after, .au-pantone-picker[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:before{box-sizing:inherit}"]],data:{}});function Gd(t){return qi(0,[Ri(671088640,1,{filtersComp:0}),(t()(),Ei(1,0,null,null,7,"div",[],[[8,"className",0]],null,null,null,null)),(t()(),Ei(2,0,null,null,4,"div",[],[[8,"className",0]],null,null,null,null)),(t()(),Ei(3,0,null,null,1,"au-pantone-search",[],null,[[null,"textChanged"]],(function(t,e,n){var r=!0;return"textChanged"===e&&(r=!1!==t.component.searchColors(n)&&r),r}),nu,tu)),Qr(4,114688,null,0,Ql,["AU_PREFIX"],{inputSearchText:[0,"inputSearchText"]},{textChanged:"textChanged"}),(t()(),Ei(5,0,null,null,1,"au-pantone-filters",[],null,[[null,"filterChanged"],[null,"filterCleared"],["window","click"]],(function(t,e,n){var r=!0,o=t.component;return"window:click"===e&&(r=!1!==Ur(t,6).onClick(n)&&r),"filterChanged"===e&&(r=!1!==o.setFilter(n)&&r),"filterCleared"===e&&(r=!1!==o.clearFilters()&&r),r}),Rd,Ed)),Qr(6,114688,[[1,4]],0,Sd,["AU_PREFIX"],{filters:[0,"filters"],currentFilter:[1,"currentFilter"]},{filterChanged:"filterChanged",filterCleared:"filterCleared"}),(t()(),Ei(7,0,null,null,1,"au-pantone-colors",[],null,[[null,"colorPicked"]],(function(t,e,n){var r=!0;return"colorPicked"===e&&(r=!1!==t.component.pickColor(n)&&r),r}),Vd,Nd)),Qr(8,114688,null,0,Md,["AU_PREFIX"],{visibleColors:[0,"visibleColors"],currentColor:[1,"currentColor"]},{colorPicked:"colorPicked"})],(function(t,e){var n=e.component;t(e,4,0,n.searchText),t(e,6,0,n.filters,n.currentFilter),t(e,8,0,n.visibleColors,n.currentColor)}),(function(t,e){var n=e.component;t(e,1,0,br(1,"",n.prefix,"-pantone-picker")),t(e,2,0,br(1,"",n.prefix,"-pantone-picker__header"))}))}var $d=Gn({encapsulation:0,styles:[[""]],data:{}});function Yd(t){return qi(0,[(t()(),Ei(0,0,null,null,1,"au-pantone-picker",[],null,[[null,"colorPicked"]],(function(t,e,n){var r=!0;return"colorPicked"===e&&(r=!1!==t.component.changed.next(n)&&r),r}),Gd,Wd)),Qr(1,49152,null,0,Hd,["AU_PREFIX",Zl,Ad],{prevColor:[0,"prevColor"],translations:[1,"translations"],config:[2,"config"]},{colorPicked:"colorPicked"})],(function(t,e){var n=e.component;t(e,1,0,n.prevColor,n.translations,n.pantoneConfig)}),null)}function Xd(t){return qi(0,[(t()(),Ei(0,0,null,null,1,"au-pantone-color-picker",[],null,null,null,Yd,$d)),Qr(1,49152,null,0,Xs,[xe],null,null)],null,null)}var Zd=Rr("au-pantone-color-picker",Xs,Xd,{setPrevColor:"setPrevColor",setPantoneConfig:"setPantoneConfig",setTranslation:"setTranslation",changed$:"changed$"},{},[]);class Jd extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Jd,oa||(oa=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Qd||(Qd=document.querySelector("base"),Qd)?Qd.getAttribute("href"):null;return null==e?null:(n=e,Kd||(Kd=document.createElement("a")),Kd.setAttribute("href",n),"/"===Kd.pathname.charAt(0)?Kd.pathname:"/"+Kd.pathname);var n}resetBaseElement(){Qd=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,o]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,t)}}let Kd,Qd=null;const tg=new vt("TRANSITION_ID"),eg=[{provide:So,useFactory:function(t,e,n){return()=>{n.get(Eo).donePromise.then(()=>{const n=ia();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[tg,sa,Te],multi:!0}];class ng{static init(){var t;t=new ng,oi=t}addToWindow(t){bt.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},bt.getAllAngularTestabilities=()=>t.getAllTestabilities(),bt.getAllAngularRootElements=()=>t.getAllRootElements(),bt.frameworkStabilizers||(bt.frameworkStabilizers=[]),bt.frameworkStabilizers.push(t=>{const e=bt.getAllAngularTestabilities();let n=e.length,r=!1;const o=function(e){r=r||e,n--,0==n&&t(r)};e.forEach((function(t){t.whenStable(o)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const r=t.getTestability(e);return null!=r?r:n?ia().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}function rg(t,e){"undefined"!=typeof COMPILED&&COMPILED||((bt.ng=bt.ng||{})[t]=e)}const og=(()=>({ApplicationRef:hi,NgZone:Go}))();function ig(t){return mi(t)}const sg=new vt("EventManagerPlugins");class ag{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r<n.length;r++){const e=n[r];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}class lg{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const r=ia().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,n)}}class ug{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}class cg extends ug{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>ia().remove(t))}}const hg={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/"},pg=/%COMP%/g;function fg(t,e,n){for(let r=0;r<e.length;r++){let o=e[r];Array.isArray(o)?fg(t,o,n):(o=o.replace(pg,t),n.push(o))}return n}function dg(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}class gg{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new yg(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case Mt.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new mg(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case Mt.Native:case Mt.ShadowDom:return new _g(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=fg(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}class yg{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(hg[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const o=hg[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=hg[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&sn.DashCase?t.style.setProperty(e,n,r&sn.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&sn.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,dg(n)):this.eventManager.addEventListener(t,e,dg(n))}}class mg extends yg{constructor(t,e,n,r){super(t),this.component=n;const o=fg(r+"-"+n.id,n.styles,[]);e.addStyles(o),this.contentAttr="_ngcontent-%COMP%".replace(pg,r+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(pg,t)}(r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class _g extends yg{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===Mt.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const o=fg(r.id,r.styles,[]);for(let i=0;i<o.length;i++){const t=document.createElement("style");t.textContent=o[i],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}class bg extends lg{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}const vg={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},wg=new vt("HammerGestureConfig"),Cg=new vt("HammerLoader");class Pg{constructor(){this.events=[],this.overrides={}}buildHammer(t){const e=new Hammer(t,this.options);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(const n in this.overrides)e.get(n).set(this.overrides[n]);return e}}class Og extends lg{constructor(t,e,n,r){super(t),this._config=e,this.console=n,this.loader=r}supports(t){return!(!vg.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn(`The "${t}" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.`),1))}addEventListener(t,e,n){const r=this.manager.getZone();if(e=e.toLowerCase(),!window.Hammer&&this.loader){let r=!1,o=()=>{r=!0};return this.loader().then(()=>{if(!window.Hammer)return this.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(o=()=>{});r||(o=this.addEventListener(t,e,n))}).catch(()=>{this.console.warn(`The "${e}" event cannot be bound because the custom Hammer.JS loader failed.`),o=()=>{}}),()=>{o()}}return r.runOutsideAngular(()=>{const o=this._config.buildHammer(t),i=function(t){r.runGuarded((function(){n(t)}))};return o.on(e,i),()=>{o.off(e,i),"function"==typeof o.destroy&&o.destroy()}})}isCustomEvent(t){return this._config.events.indexOf(t)>-1}}const xg=["alt","control","meta","shift"],Sg={"\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"},Eg={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"},kg={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};class Tg extends lg{constructor(t){super(t)}supports(t){return null!=Tg.parseEventName(t)}addEventListener(t,e,n){const r=Tg.parseEventName(e),o=Tg.eventCallback(r.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ia().onAndCancel(t,r.domEventName,o))}static parseEventName(t){const e=t.toLowerCase().split("."),n=e.shift();if(0===e.length||"keydown"!==n&&"keyup"!==n)return null;const r=Tg._normalizeKey(e.pop());let o="";if(xg.forEach(t=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o+=t+".")}),o+=r,0!=e.length||0===r.length)return null;const i={};return i.domEventName=n,i.fullKey=o,i}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Eg.hasOwnProperty(e)&&(e=Eg[e]))}return Sg[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),xg.forEach(r=>{r!=n&&(0,kg[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(t,e,n){return r=>{Tg.getEventFullKey(r)===t&&n.runGuarded(()=>e(r))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}let jg=(()=>{class t{}return t.\u0275prov=st({factory:function(){return Et(Ig)},token:t,providedIn:"root"}),t})(),Ig=(()=>{class t extends jg{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case ve.NONE:return e;case ve.HTML:return Yt(e,"HTML")?$t(e):function(t,e){let n=null;try{_e=_e||new Qt(t);let r=e?String(e):"";n=_e.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=_e.getInertBodyElement(r)}while(r!==i);const s=new de,a=s.sanitizeChildren(be(n)||n);return Kt()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=be(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case ve.STYLE:return Yt(e,"Style")?$t(e):function(t){if(!(t=String(t).trim()))return"";const e=t.match(Ce);return e&&ne(e[1])===e[1]||t.match(we)&&function(t){let e=!0,n=!0;for(let r=0;r<t.length;r++){const o=t.charAt(r);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}(t)?t:(Kt()&&console.warn(`WARNING: sanitizing unsafe style value ${t} (see http://g.co/ng/security#xss).`),"unsafe")}(e);case ve.SCRIPT:if(Yt(e,"Script"))return $t(e);throw new Error("unsafe value used in a script context");case ve.URL:return Xt(e),Yt(e,"URL")?$t(e):ne(String(e));case ve.RESOURCE_URL:if(Yt(e,"ResourceURL"))return $t(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new qt(t)}bypassSecurityTrustStyle(t){return new Ut(t)}bypassSecurityTrustScript(t){return new Ht(t)}bypassSecurityTrustUrl(t){return new Wt(t)}bypassSecurityTrustResourceUrl(t){return new Gt(t)}}return t.\u0275prov=st({factory:function(){return t=Et(wt),new Ig(t.get(sa));var t},token:t,providedIn:"root"}),t})();function Rg(){return new Vt}const Ag=ai(vi,"browser",[{provide:Ro,useValue:"browser"},{provide:Io,useValue:function(){Jd.makeCurrent(),ng.init()},multi:!0},{provide:sa,useFactory:function(){return function(t){Nt=t}(document),document},deps:[]}]);class Mg{constructor(t){if(t)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(t){return{ngModule:Mg,providers:[{provide:ko,useValue:t.appId},{provide:tg,useExisting:ko},eg]}}}"undefined"!=typeof window&&window;var Ng=n("oXSN"),Bg=n("SGR7"),Lg=n("8ef1");class Fg{getTranslation(t){switch(t.toLowerCase()){case"ru":return ll(Bg);case"sv":return ll(Lg);default:return ll(Ng)}}}class Dg{}var Vg=$s(ra,[],(function(t){return function(t){const e={},n=[];let r=null;for(let o=0;o<t.length;o++){const i=t[o];i.token===Ee&&(r=i.value),1073741824&i.flags&&n.push(i.token),i.index=o,e[Hn(i.token)]=i}return{factory:null,providersByKey:e,providers:t,modules:n,scope:r}}([xr(512,Ke,Qe,[[8,[Zd]],[3,Ke],jt]),xr(5120,No,Pi,[[3,No]]),xr(4608,la,ua,[No]),xr(5120,mo,Oi,[Go]),xr(4608,qo,qo,[]),xr(5120,ko,To,[]),xr(5120,Cn,wi,[]),xr(5120,Pn,Ci,[]),xr(4608,jg,Ig,[sa]),xr(6144,un,null,[jg]),xr(4608,wg,Pg,[]),xr(5120,sg,(function(t,e,n,r,o,i,s,a){return[new bg(t,e,n),new Tg(r),new Og(o,i,s,a)]}),[sa,Go,Ro,sa,sa,wg,Mo,[2,Cg]]),xr(4608,ag,ag,[sg,Go]),xr(135680,cg,cg,[sa]),xr(4608,gg,gg,[ag,cg,ko]),xr(6144,on,null,[gg]),xr(6144,ug,null,[cg]),xr(4608,ti,ti,[Go]),xr(4608,Ba,Ba,[]),xr(4608,Ad,Ad,[]),xr(4608,Ml,Fg,[]),xr(4608,Ul,Hl,[]),xr(4608,zl,ql,[]),xr(4608,Bl,Ll,[]),xr(4608,Wl,Wl,[]),xr(4608,Zl,Zl,[Wl,Ml,Ul,zl,Bl,$l,Gl,Xl,Yl]),xr(1073742336,ma,ma,[]),xr(1024,Vt,Rg,[]),xr(1024,So,(function(t){return[(e=t,rg("probe",ig),rg("coreTokens",Object.assign(Object.assign({},og),(e||[]).reduce((t,e)=>(t[e.name]=e.token,t),{}))),()=>ig)];var e}),[[2,si]]),xr(512,Eo,Eo,[[2,So]]),xr(131584,hi,hi,[Go,Mo,Te,Vt,Ke,Eo]),xr(1073742336,xi,xi,[hi]),xr(1073742336,Mg,Mg,[[3,Mg]]),xr(1073742336,sl,sl,[]),xr(1073742336,al,al,[]),xr(1073742336,Kl,Kl,[]),xr(1073742336,Dg,Dg,[]),xr(1073742336,ra,ra,[Te]),xr(256,Bo,"USD",[]),xr(256,Ee,"root",[]),xr(256,"AU_PREFIX","au",[]),xr(256,Gl,void 0,[]),xr(256,$l,void 0,[]),xr(256,Xl,void 0,[]),xr(256,Yl,void 0,[])])}));(function(){if(Jt)throw new Error("Cannot enable prod mode after platform setup.");Zt=!1})(),Ag().bootstrapModuleFactory(Vg).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);
</script>