(()=>{"use strict";var e,v={},p={};function a(e){var n=p[e];if(void 0!==n)return n.exports;var r=p[e]={exports:{}};return v[e].call(r.exports,r,r.exports,a),r.exports}a.m=v,e=[],a.O=(n,r,o,l)=>{if(!r){var c=1/0;for(t=0;t<e.length;t++){for(var[r,o,l]=e[t],i=!0,f=0;f<r.length;f++)(!1&l||c>=l)&&Object.keys(a.O).every(_=>a.O[_](r[f]))?r.splice(f--,1):(i=!1,l<c&&(c=l));if(i){e.splice(t--,1);var u=o();void 0!==u&&(n=u)}}return n}l=l||0;for(var t=e.length;t>0&&e[t-1][2]>l;t--)e[t]=e[t-1];e[t]=[r,o,l]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={666:0};a.O.j=o=>0===e[o];var n=(o,l)=>{var f,u,[t,c,i]=l,s=0;if(t.some(b=>0!==e[b])){for(f in c)a.o(c,f)&&(a.m[f]=c[f]);if(i)var d=i(a)}for(o&&o(l);s<t.length;s++)a.o(e,u=t[s])&&e[u]&&e[u][0](),e[u]=0;return a.O(d)},r=self.webpackChunkClientApp=self.webpackChunkClientApp||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})()})();
"use strict";(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([[429],{277:()=>{!function(t){const n=t.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,T){n&&n.measure&&n.measure(M,T)}i("Zone");const c=t.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const p=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(p||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let d=(()=>{class M{constructor(e,r){this._parent=e,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(t.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=M.current;for(;e.parent;)e=e.parent;return e}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(e,r,k=!1){if(oe.hasOwnProperty(e)){if(!k&&p)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const C="Zone:"+e;i(C),oe[e]=r(t,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(e){const r=this.getZoneWith(e);if(r)return r._properties[e]}getZoneWith(e){let r=this;for(;r;){if(r._properties.hasOwnProperty(e))return r;r=r._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,r){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const k=this._zoneDelegate.intercept(this,e,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(e,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,e,r,k,C)}finally{U=U.parent}}runGuarded(e,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,e,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(e,r,k){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===Q||e.type===w))return;const C=e.state!=E;C&&e._transitionTo(E,A),e.runCount++;const $=re;re=e,U={parent:U,zone:this};try{e.type==w&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{e.state!==x&&e.state!==h&&(e.type==Q||e.data&&e.data.isPeriodic?C&&e._transitionTo(A,E):(e.runCount=0,this._updateTaskCount(e,-1),C&&e._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(e){if(e.zone&&e.zone!==this){let k=this;for(;k;){if(k===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);k=k.parent}}e._transitionTo(X,x);const r=[];e._zoneDelegates=r,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(k){throw e._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return e._zoneDelegates===r&&this._updateTaskCount(e,1),e.state==X&&e._transitionTo(A,X),e}scheduleMicroTask(e,r,k,C){return this.scheduleTask(new m(I,e,r,k,C,void 0))}scheduleMacroTask(e,r,k,C,$){return this.scheduleTask(new m(w,e,r,k,C,$))}scheduleEventTask(e,r,k,C,$){return this.scheduleTask(new m(Q,e,r,k,C,$))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");if(e.state===A||e.state===E){e._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,e)}catch(r){throw e._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(e,-1),e._transitionTo(x,G),e.runCount=0,e}}_updateTaskCount(e,r){const k=e._zoneDelegates;-1==r&&(e._zoneDelegates=null);for(let C=0;C<k.length;C++)k[C]._updateTaskCount(e.type,r)}}return M.__symbol__=a,M})();const P={name:"",onHasTask:(M,T,e,r)=>M.hasTask(e,r),onScheduleTask:(M,T,e,r)=>M.scheduleTask(e,r),onInvokeTask:(M,T,e,r,k,C)=>M.invokeTask(e,r,k,C),onCancelTask:(M,T,e,r)=>M.cancelTask(e,r)};class v{constructor(T,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||e&&e._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(T,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,e):new d(T,e)}intercept(T,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,e,r):e}invoke(T,e,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,e,r,k,C):e.apply(r,k)}handleError(T,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,e)}scheduleTask(T,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,e),r||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=I)throw new Error("Task is missing scheduleFn.");R(e)}return r}invokeTask(T,e,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,e,r,k):e.callback.apply(r,k)}cancelTask(T,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(T,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,e)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,e){const r=this._taskCounts,k=r[T],C=r[T]=k+e;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class m{constructor(T,e,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=e,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(t,l,this,arguments)}}static invokeTask(T,e,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,e,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,e,r){if(this._state!==e&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||t[Z]&&(J=t[Z].resolve(0)),J){let T=J[N];T||(T=J.then),T.call(J,M)}else t[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let T=0;T<M.length;T++){const e=M[T];try{e.zone.runTask(e,null,null)}catch(r){z.onUnhandledError(r)}}}z.microtaskDrainDone(),H=!1}}const K={name:"NO ZONE"},x="notScheduled",X="scheduling",A="scheduled",E="running",G="canceling",h="unknown",I="microTask",w="macroTask",Q="eventTask",oe={},z={symbol:a,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),t.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(t,n){return Zone.current.wrap(t,n)}function Me(t,n,i,o,c){return Zone.current.scheduleMacroTask(t,n,i,o,c)}const j=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(t,n){for(let i=t.length-1;i>=0;i--)"function"==typeof t[i]&&(t[i]=Ie(t[i],n+"_"+i));return t}function Fe(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(t){if(!(t=t||Y.event))return;let n=Re[t.type];n||(n=Re[t.type]=j("ON_PROPERTY"+t.type));const i=this||t.target||Y,o=i[n];let c;return Ae&&i===Te&&"error"===t.type?(c=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===c&&t.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&t.preventDefault()),c};function qe(t,n,i){let o=ie(t,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete o.writable,delete o.value;const a=o.get,p=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=j("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&t===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),p&&p.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&t===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(t,n,o),t[c]=!0}function Xe(t,n,i){if(n)for(let o=0;o<n.length;o++)qe(t,"on"+n[o],i);else{const o=[];for(const c in t)"on"==c.slice(0,2)&&o.push(c);for(let c=0;c<o.length;c++)qe(t,o[c],i)}}const ne=j("originalInstance");function ve(t){const n=Y[t];if(!n)return;Y[j(t)]=n,Y[t]=function(){const c=Le(arguments,t);switch(c.length){case 0:this[ne]=new n;break;case 1:this[ne]=new n(c[0]);break;case 2:this[ne]=new n(c[0],c[1]);break;case 3:this[ne]=new n(c[0],c[1],c[2]);break;case 4:this[ne]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},ue(Y[t],n);const i=new n(function(){});let o;for(o in i)"XMLHttpRequest"===t&&"responseBlob"===o||function(c){"function"==typeof i[c]?Y[t].prototype[c]=function(){return this[ne][c].apply(this[ne],arguments)}:Ee(Y[t].prototype,c,{set:function(a){"function"==typeof a?(this[ne][c]=Ie(a,t+"."+c),ue(this[ne][c],a)):this[ne][c]=a},get:function(){return this[ne][c]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&(Y[t][o]=n[o])}function le(t,n,i){let o=t;for(;o&&!o.hasOwnProperty(n);)o=de(o);!o&&t[n]&&(o=t);const c=j(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Fe(o&&ie(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},ue(o[n],a)}return a}function lt(t,n,i){let o=null;function c(a){const p=a.data;return p.args[p.cbIdx]=function(){a.invoke.apply(this,arguments)},o.apply(p.target,p.args),a}o=le(t,n,a=>function(p,d){const P=i(p,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(p,d)})}function ue(t,n){t[j("OriginalDelegate")]=n}let ze=!1,je=!1;function ft(){if(ze)return je;ze=!0;try{const t=Te.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(t,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,p=i.symbol,d=[],P=!0===t[p("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=p("Promise"),m=p("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=p("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return e.reject(l)}const q=p("state"),R=p("value"),_=p("finally"),K=p("parentPromiseValue"),x=p("parentPromiseState"),A=null,E=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=p("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof e&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const y=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;y&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y<b.length;)ee(l,b[y++],b[y++],b[y++],b[y++]);if(0==b.length&&u==G){l[q]=0;let y=s;try{throw new Error("Uncaught (in promise): "+function a(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(D){y=D}P&&(y.throwOriginal=!0),y.rejection=s,y.promise=l,y.zone=n.current,y.task=n.currentTask,d.push(y),i.scheduleMicroTask()}}}return l}const U=p("rejectionHandledHandler");function re(l){if(0===l[q]){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch{}l[q]=G;for(let u=0;u<d.length;u++)l===d[u].promise&&d.splice(u,1)}}function ee(l,u,s,f,g){re(l);const b=l[q],y=b?"function"==typeof f?f:H:"function"==typeof g?g:J;u.scheduleMicroTask("Promise.then",()=>{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(y,void 0,O&&y!==J&&y!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},T=t.AggregateError;class e{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let y of u)f++,s.push(e.resolve(y))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const b=[];return new e((y,D)=>{for(let O=0;O<s.length;O++)s[O].then(S=>{g||(g=!0,y(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new T(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function y(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,y);return g}static all(u){return e.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof e?this:e).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),y=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,y--,0===y&&f(O)},F=>{s?(O[V]=s.errorCallback(F),y--,0===y&&f(O)):g(F)})}catch(F){g(F)}y++,D++}return y-=2,0===y&&f(O),b}constructor(u){const s=this;if(!(s instanceof e))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=w();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return e}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||e);const b=new g(M),y=n.current;return this[q]==A?this[R].push(y,b,u,s):ee(this,y,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=e);const g=new f(M);g[_]=_;const b=n.current;return this[q]==A?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}e.resolve=e.resolve,e.reject=e.reject,e.race=e.race,e.all=e.all;const r=t[v]=t.Promise;t.Promise=e;const k=p("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new e((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(t,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof e)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,e}),Zone.__load_patch("toString",t=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=t[o];if(m)return n.call(m)}if(this===Error){const m=t[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const p=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":p.call(this)}});let ye=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=j("propagationStopped");function Je(t,n){const i=(n?n(t):t)+ae,o=(n?n(t):t)+ce,c=ke+i,a=ke+o;te[t]={},te[t][ae]=c,te[t][ce]=a}function dt(t,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,p=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=j(c),v="."+c+":",m="prependListener",L="."+m+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,K){if(!(_=_||t.event))return;const x=R||_.target||t,X=x[te[_.type][K?ce:ae]];if(X){const A=[];if(1===X.length){const E=Z(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G<E.length&&(!_||!0!==_[Ke]);G++){const h=Z(E[G],x,_);h&&A.push(h)}}if(1===A.length)throw A[0];for(let E=0;E<A.length;E++){const G=A[E];n.nativeScheduleMicroTask(()=>{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=de(E);if(!E&&R[c]&&(E=R),!E||E[P])return!1;const G=_&&_.eventNameToString,h={},I=E[P]=E[c],w=E[j(a)]=E[a],Q=E[j(p)]=E[p],oe=E[j(d)]=E[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const e=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let y=0;y<b.length;y++)if(b[y]===s){b.splice(y,1),s.isRemoved=!0,0===b.length&&(s.allRemoved=!0,s.target[g]=null);break}}if(s.allRemoved)return w.call(s.target,s.eventName,s.capture?H:B,s.options)}:function(s){return w.call(s.target,s.eventName,s.invoke,s.options)},C=_&&_.diff?_.diff:function(s,f){const g=typeof f;return"function"===g&&s.callback===f||"object"===g&&s.originalDelegate===f},$=Zone[j("UNPATCHED_EVENTS")],l=t[j("PASSIVE_EVENTS")],u=function(s,f,g,b,y=!1,D=!1){return function(){const O=this||t;let S=arguments[0];_&&_.transferEventName&&(S=_.transferEventName(S));let V=arguments[1];if(!V)return s.apply(this,arguments);if(we&&"uncaughtException"===S)return s.apply(this,arguments);let F=!1;if("function"!=typeof V){if(!V.handleEvent)return s.apply(this,arguments);F=!0}if(x&&!x(s,V,O,arguments))return;const fe=ye&&!!l&&-1!==l.indexOf(S),se=U(arguments[2],fe);if($)for(let _e=0;_e<$.length;_e++)if(S===$[_e])return fe?s.call(O,S,V,se):s.apply(this,arguments);const xe=!!se&&("boolean"==typeof se||se.capture),nt=!(!se||"object"!=typeof se)&&se.once,gt=Zone.current;let Ge=te[S];Ge||(Je(S,G),Ge=te[S]);const rt=Ge[xe?ce:ae];let De,me=O[rt],ot=!1;if(me){if(ot=!0,X)for(let _e=0;_e<me.length;_e++)if(C(me[_e],V))return}else me=O[rt]=[];const st=O.constructor.name,it=Ye[st];it&&(De=it[S]),De||(De=st+f+(G?G(S):S)),h.options=se,nt&&(h.options.once=!1),h.target=O,h.capture=xe,h.eventName=S,h.isExisting=ot;const be=K?ht:void 0;be&&(be.taskData=h);const he=gt.scheduleEventTask(De,V,be,g,b);return h.target=null,be&&(be.taskData=null),nt&&(se.once=!0),!ye&&"boolean"==typeof he.options||(he.options=se),he.target=O,he.capture=xe,he.eventName=S,F&&(he.originalDelegate=V),D?me.unshift(he):me.push(he),y?O:void 0}};return E[c]=u(I,v,e,r,A),z&&(E[m]=u(z,L,function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,A,!0)),E[a]=function(){const s=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],b=!!g&&("boolean"==typeof g||g.capture),y=arguments[1];if(!y)return w.apply(this,arguments);if(x&&!x(w,y,s,arguments))return;const D=te[f];let O;D&&(O=D[b?ce:ae]);const S=O&&s[O];if(S)for(let V=0;V<S.length;V++){const F=S[V];if(C(F,y))return S.splice(V,1),F.isRemoved=!0,0===S.length&&(F.allRemoved=!0,s[O]=null,"string"==typeof f)&&(s[ke+"ON_PROPERTY"+f]=null),F.zone.cancelTask(F),A?s:void 0}return w.apply(this,arguments)},E[p]=function(){const s=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],b=Qe(s,G?G(f):f);for(let y=0;y<b.length;y++){const D=b[y];g.push(D.originalDelegate?D.originalDelegate:D.callback)}return g},E[d]=function(){const s=this||t;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=te[f];if(g){const D=s[g[ae]],O=s[g[ce]];if(D){const S=D.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(O){const S=O.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const g=Object.keys(s);for(let b=0;b<g.length;b++){const D=$e.exec(g[b]);let O=D&&D[1];O&&"removeListener"!==O&&this[d].call(this,O)}this[d].call(this,"removeListener")}if(A)return this},ue(E[c],I),ue(E[a],w),oe&&ue(E[d],oe),Q&&ue(E[p],Q),!0}let q=[];for(let R=0;R<i.length;R++)q[R]=J(i[R],o);return q}function Qe(t,n){if(!n){const a=[];for(let p in t){const d=$e.exec(p);let P=d&&d[1];if(P&&(!n||P===n)){const v=t[p];if(v)for(let m=0;m<v.length;m++)a.push(v[m])}}return a}let i=te[n];i||(Je(n),i=te[n]);const o=t[i[ae]],c=t[i[ce]];return o?c?o.concat(c):o.slice():c?c.slice():[]}function _t(t,n){const i=t.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",o=>function(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(t,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const p=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=t.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=t.wrapWithCurrentZone(N.value,L),t._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=t.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=t.wrapWithCurrentZone(Z[m],L))}catch{}}),p.call(n,d,P,v)},t.attachOriginToPatched(n[o],p)}function et(t,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===t);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(t,n,i,o){t&&Xe(t,et(t,n,i),o)}function He(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(t,n,i)=>{const o=He(t);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");t[a]&&(t[c]=t[a]),t[c]&&(n[c]=n[a]=t[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=j("zoneTask");function pe(t,n,i,o){let c=null,a=null;i+=o;const p={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(t,m.args),v}function P(v){return a.call(t,v.data.handleId)}c=le(t,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete p[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?p[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(t,L)}),a=le(t,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=p[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete p[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(t,L)})}Zone.__load_patch("legacy",t=>{const n=t[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(t,n,i)=>{i.patchMethod(t,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",t=>{const n="set",i="clear";pe(t,n,i,"Timeout"),pe(t,n,i,"Interval"),pe(t,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{pe(t,"request","cancel","AnimationFrame"),pe(t,"mozRequest","mozCancel","AnimationFrame"),pe(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)le(t,i[o],(a,p,d)=>function(P,v){return n.current.run(a,t,v,d)})}),Zone.__load_patch("EventTarget",(t,n,i)=>{(function mt(t,n){n.patchEventPrototype(t,n)})(t,i),function pt(t,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:p}=n.getGlobalObjects();for(let P=0;P<i.length;P++){const v=i[P],Z=p+(v+a),N=p+(v+c);o[v]={},o[v][a]=Z,o[v][c]=N}const d=t.EventTarget;d&&d.prototype&&n.patchEventTarget(t,n,[d&&d.prototype])}(t,i);const o=t.XMLHttpRequestEventTarget;o&&o.prototype&&i.patchEventTarget(t,i,[o.prototype])}),Zone.__load_patch("MutationObserver",(t,n,i)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(t,n,i)=>{!function Tt(t,n){if(we&&!Ue||Zone[t.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const t=Te.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<o.length;c++){const a=n[o[c]];a&&a.prototype&&tt(a.prototype,He(a.prototype),i)}}(i,t)}),Zone.__load_patch("customElements",(t,n,i)=>{!function yt(t,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&t.customElements&&"customElements"in t&&n.patchCallbacks(n,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,i)}),Zone.__load_patch("XHR",(t,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;W<ee.length;W++)ee[W]===h&&ee.splice(W,1);!I.aborted&&h.state===J&&re.call(h)},U.push(h)}else h.invoke()}else!I.aborted&&!1===w[a]&&(w[d]=!0)};return N.call(w,H,oe),w[i]||(w[i]=h),E.apply(w,I.args),w[a]=!0,h}function R(){}function _(h){const I=h.data;return I.aborted=!0,G.apply(I.target,I.args)}const K=le(L,"open",()=>function(h,I){return h[o]=0==I[2],h[p]=I[1],K.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=le(L,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const w={target:h,url:h[p],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(t);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),p=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function at(t,n){const i=t.constructor.name;for(let o=0;o<n.length;o++){const c=n[o],a=t[c];if(a){if(!Fe(ie(t,c)))continue;t[c]=(d=>{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,n)=>{function i(o){return function(c){Qe(t,o).forEach(p=>{const d=t.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});p.invoke(P)}})}}t.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))})},435:(ie,Ee,de)=>{de(277)}},ie=>{ie(ie.s=435)}]);
var app=angular.module("app",["angular.css.injector","ui.router","angulartics","angulartics.piwik","angulartics.google.analytics","ngSanitize","ui.bootstrap","angular-loading-bar","vjs.video","angularLazyImg","ct.ui.router.extras","angular.bind.notifier","ngFileUpload","mm.iban","ngTagsInput","angular-inview","dx"]);function spliceIntoChunks(e,t){for(var a=[];e.length>0;){var n=e.splice(0,t);a.push(n)}return a}function getDocHeight(e){var t=(e=e||document).body,a=e.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight)}function MetaArticleDirective(e){return{restrict:"E",link:function(a,n,s){var h=new MetaArticleInfo(a.$eval(s.metaElement));e.generalPush(h),n.remove()}}}function MetaSnipDirective(e){return{restrict:"E",link:function(a,n,s){var h=new MetaSnipInfo(a.$eval(s.metaElement));e.generalPush(h),n.remove()}}}function MetaSponsoredArticleDirective(e){return{restrict:"E",link:function(a,n,s){var h=new MetaSponsoredArticleInfo(a.$eval(s.metaElement));e.generalPush(h),n.remove()}}}function MetaStaticArticleDirective(e){return{restrict:"E",link:function(a,n,s){var h=new MetaStaticArticleInfo(a.$eval(s.metaElement));e.generalPush(h),n.remove()}}}function ScopeSettings(e){var t=this;this.network=e.network,this.chapters=e.chapters||[],this.chapterGroups=e.chapterGroups||[],this.globalSettings=e.globalSettings,this.staticArticles=e.staticArticles||[],this.network.chaptersDictionary={},this.network.chapters=[],this.network.chaptersSlugs.forEach(function(n){var s=t.chapters.filter(function(p){return p.slug===n})[0];s&&(t.network.chapters.push(s),t.network.chaptersDictionary[n]=s)}),function(){var n={};t.chapters.forEach(function(r){n[r.slug]=r});var s={};t.chapters.forEach(function(r){2===r.managementState&&(s[r.slug]=r)});var p={};t.chapterGroups.forEach(function(r){p[r.slug]||(p[r.slug]=[]),p[r.slug].push(r)});var h={};t.staticArticles.forEach(function(r){var i=r.path;h[i]||(h[i]=[]),h[i].push(r)}),t.chapters.forEach(function(r){0!==r.managementState&&(r.managingParent=n[r.managingParentSlug],2!==r.managementState&&(r.settings=s[r.managingParentSlug]),p[r.managingParentSlug]&&(r.chapterGroups=p[r.managingParentSlug].slice(0)),r.chapterGroups&&r.chapterGroups.forEach(function(i,c){i.chapters.forEach(function(d){d.slug===r.slug&&r.chapterGroups.splice(c,1)})}),r.scopeStaticArticlesDictionary={},r.staticArticles.forEach(function(i){var c=h[i.path];if(c){var d=c.filter(function(o){return o.chapterId===r.id});r.scopeStaticArticlesDictionary[i.path]=d[0]}}))}),t.network.chapters=[],t.network.chaptersSlugs.forEach(function(r){var i=t.getChapter(r);i&&t.network.chapters.push(i)}),t.network.staticArticles.forEach(function(r){t.network.chapters.forEach(function(i){2===i.managementState&&(i.scopeStaticArticlesDictionary[r.path]=r)})})}()}function MetaInformationBase(e){this.title=e.title,this.description=e.description||e.title,this.author=e.author,this.date=e.date,this.imageUrl=e.imageUrl||scope.globalSettings.serverCdnUrl+"/Content/images/logo-big.png",this.twitterSite=e.twitterSite,this.facebookSite=e.facebookSite,this.path=e.path,this.type=e.type||"website",this.removeAttributes=e.removeAttributes,this.canonicalLink=e.canonicalLink}function MetaArticleInfo(e){MetaInformationBase.call(this,{title:e.text,description:e.summary,author:e.user,date:e.published,imageUrl:e.coverAssetReference.assetImage.assetImageUrl+"?preset=cover&cache="+e.coverAssetReference.assetImage.cache,path:e.path,type:"article",canonicalLink:e.canonicalLink})}function MetaSnipInfo(e){MetaInformationBase.call(this,{title:e.text,description:e.text,author:e.user,date:e.published,path:e.path,removeAttributes:["author","article:publisher","article:published_time","article:section"]})}function MetaSponsoredArticleInfo(e){MetaInformationBase.call(this,{title:e.text,description:e.summary,author:e.user,date:e.published,type:"article",imageUrl:e.coverAssetReference.assetImage.assetImageUrl+"?preset=cover&cache="+e.coverAssetReference.assetImage.cache,path:e.path,canonicalLink:e.canonicalLink})}function MetaStaticArticleInfo(e){MetaInformationBase.call(this,{title:e.title,description:e.summary,date:e.published,type:"article",imageUrl:e.coverAssetReference.assetImage.assetImageUrl+"?preset=cover&cache="+e.coverAssetReference.assetImage.cache,path:e.path})}function exponentialBackoff(e,t,a,n){self.isDebugging&&console.log("max",t,"next delay",a);var s=!1;try{e()&&(s=!0)}catch{s=!1}s?(self.isDebugging&&console.log("Stroer ads bound to page"),n(s)):t>0?(setTimeout(function(){exponentialBackoff(e,--t,2*a,n)},a),self.isDebugging&&console.log("Exp backoff try remaining: "+t)):self.isDebugging&&console.log("we give up")}function MessageHolder(e){this.id=e.id}app.run([function(){var e=navigator.userAgent||navigator.vendor||window.opera;-1===e.indexOf("FBAN")&&-1===e.indexOf("FBAV")&&viewportUnitsBuggyfill.init()}]),app.run(["$http","$rootScope","$window","localStorageService","$urlMatcherFactory",function(e,t,a,n,s){e.defaults.withCredentials=!0,s.caseInsensitive(!0);var p=a.scope;t.scope=a.scope;var h={chapterSlug:p.currentScope.chapter?p.currentScope.chapter.slug:null,networkSlug:p.currentScope.network.slug,threshold:p.globalSettings.oculusImpressionThreshold,trackArticleWordReading:p.globalSettings.oculusTrackArticleWordReading,idleTimeout:p.globalSettings.oculusIdleTimeout,impressionThreshold:p.globalSettings.oculusImpressionThreshold,impressionViewportThreshold:p.globalSettings.oculusImpressionViewportThreshold,shipmentImpressionThreshold:p.globalSettings.oculusShipmentImpressionThreshold,shipmentImpressionViewportThreshold:p.globalSettings.oculusShipmentImpressionViewportThreshold,readingSpeed:p.globalSettings.oculusReadingSpeed,readingThreshold:p.globalSettings.oculusReadingThreshold,readingViewportThreshold:p.globalSettings.oculusReadingViewportThreshold,trackArticleScrolling:p.globalSettings.oculusTrackArticleScrolling,locationRequestEnable:p.currentScope.network.settings.oculusLocationRequestEnable,locationRequestSuccessThrottleDays:p.globalSettings.oculusLocationRequestSuccessThrottleDays,locationRequestFailedThrottleDays:p.globalSettings.oculusLocationRequestFailedThrottleDays};p.oculus=h,n.enableOculusFeedback&&(h.feedback=!0),a.Oculus=new Oculus(h)}]),app.run(["$state","$rootScope","$previousState","$window","localStorageService","profileService","$analytics","$uibModal","$timeout","notificationService","$interval","$location","scopeService","clickService",function(e,t,a,n,s,p,h,r,i,c,d,o,l,g){t.$state=e,t.app=navigator.userAgent&&-1!==navigator.userAgent.indexOf("Merkurist_IAB"),t.app&&(t.appVersion=navigator.userAgent.replace(/.*\[Merkurist_IAB\/(.*)\]/gi,function(f,F){return F}),t.appPlatform=-1!==navigator.userAgent.indexOf("Android")?"Android":"iOS"),t.navigateUp=function(){i(function(){e.params.back&&!e.params.back.abstract?e.go(e.params.back,e.params.backParams):e.go("app.root")})},t.openChapterSwitch=function(){var f=r.open({templateUrl:"/ClientApp/src/legacy-app/index/chapterSwitchDialog.html",controller:"ChapterSwitchDialog",size:"lg",resolve:{}});h.eventTrack("ShowChapterSwitchDialog",{category:"Navigation",label:scope.currentChapter.slug}),f.result.then(function(F){t.switchChapter(F)})},t.switchChapter=function(f){var F=null;scope.chapters.some(function(T){return T.slug===f&&(F=T,!0)}),F&&p.updateFavoriteChapter(F.slug).then(function(){var T=F.path;scope.currentScope.networkPath.length>1&&(T=scope.currentScope.networkPath+F.path),window.location.href=T})},t.notification=c;var u=function(f){p.getProfile().then(function(F){F.isRegistered?c.update(f):c.updateUnseenCount()})};if(t.$on("authenticationStateChanged",function(){u(!0)}),!t.app){var b=document.hasFocus();$(window).on("focus",function(){b=!0,u()}).on("blur",function(){b=!1}),d(function(){b&&u()},2e4)}if(t.app){var I=function(){FCMPlugin.getToken(function(f){f?c.updateToken({token:f}):i(function(){FCMPlugin.getToken(function(F){F&&c.updateToken({token:F})},function(){})},1e4)},function(){i(function(){FCMPlugin.getToken(function(f){f&&c.updateToken({token:f})},function(){})},1e4)})};t.$on("authenticationStateChanged",function(){I()});var m="app.root",D="",w=0,v="",C={initialize:function(){this.bindEvents()},bindEvents:function(){document.addEventListener("deviceready",this.onDeviceReady,!1),document.addEventListener("offline",this.onOffline,!1)},didLaunchAppFromLink:function(f){-1==f.url.indexOf("/document/")&&-1==f.url.indexOf("/pdf/")&&-1==f.url.indexOf("/file/")&&(window.location.href=f.url)},onOffline:function(){m=e.current.name,v=window.location.href,w=setTimeout(function(){w=0,D="offline",e.go("app.offline")},5e3)},onOnline:function(){w>0?(clearTimeout(w),v="",w=0):"offline"===D&&("app.root"!==m&&(window.location.href=v),e.go(m),v=D="")},onBackKeyDown:function(){console.log("backKey",history.length,history),history.back()},statusBarDarkMode:function(){var f=window.matchMedia("(prefers-color-scheme:dark)");"android"==cordova.platformId?f.matches?(StatusBar.styleLightContent(),backcolor=getComputedStyle(document.body).getPropertyValue("--color1Dark"),StatusBar.backgroundColorByHexString(backcolor)):(StatusBar.styleDefault(),backcolor=getComputedStyle(document.body).getPropertyValue("--color1"),StatusBar.backgroundColorByHexString(backcolor)):f.matches?(StatusBar.styleLightContent(),StatusBar.backgroundColorByHexString("#000")):(StatusBar.styleDefault(),StatusBar.backgroundColorByHexString("#fff"))},onDeviceReady:function(){document.addEventListener("online",C.onOnline,!1),document.addEventListener("backbutton",C.onBackKeyDown,!1),navigator&&navigator.splashscreen&&navigator.splashscreen.hide(),universalLinks.subscribe("launchedAppFromLink",C.didLaunchAppFromLink),p.getProfile().then(function(){u()});var f=new Date,F=new Date;document.addEventListener("resume",function(){setTimeout(function(){currentDate=new Date,Math.round((currentDate-f)/864e5)>1&&(window.location.href="/"),Math.round((currentDate-F)/6e4)>30&&(t.$emit("invalidateLists"),F=new Date)},0)},!1),window.matchMedia&&(C.statusBarDarkMode(),window.matchMedia("(prefers-color-scheme: dark)").addListener(function(S){C.statusBarDarkMode()})),I(),FCMPlugin.onNotification(function(S){console.log("FcmOnNotification",S),S.wasTapped?S.untrackedUri?t.$state.go("app.untrackedNotification",{untrackedUri:S.untrackedUri}):t.$state.go("clickNotification",{id:S.notificationId}):u()},function(){u()});var T=0,x=!1;document.body.ontouchstart=function(S){window.visualViewport.pageTop>10?x=!1:(x=!0,T=S.targetTouches[0].pageY)},document.body.ontouchend=function(S){!x||window.visualViewport.pageTop>10||S.changedTouches[0].pageY-T>150&&setTimeout(function(){console.log("pulled to refresh! Reloading..."),e.includes("app.root")&&location.reload()},500)}}};C.initialize()}else p.getProfile().then(function(){i(function(){u()},2e3)})}]),app.run(["stroerService",function(e){}]),app.config(["lazyImgConfigProvider",function(e){e.setOptions({offset:1334})}]),app.config(["$urlRouterProvider","$stateProvider","$locationProvider","$compileProvider","$qProvider",function(e,t,a,n,s){a.html5Mode({enabled:!0,requireBase:!1}),n.debugInfoEnabled(!1),s.errorOnUnhandledRejections(!1),n.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob|whatsapp):/);var p=["$stateParams","sponsoredArticleService","parserService","$location",function(o,l,g,u){var b=o.id;return b||u.path("/").replace(),l.getSponsoredArticle(b).then(function(I){return g.postProcessHtml(I),I},function(){console.log("Error on the SponsoredDetail")})}];t.state("app.imprint",{url:"imprint",templateUrl:"/ClientApp/src/legacy-app/content/imprint.html"}).state("app.privacyPolicy",{url:"pp",controller:"DataPrivacyPolicyController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy.html"}).state("app.privacyPolicy-merkurist-gmbh",{url:"pp-merkurist-gmbh",controller:"DataPrivacyPolicyController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-merkurist-gmbh.html"}).state("app.tos",{url:"tos",controller:"TermsOfUseController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/termsOfUse.html"}).state("app.optOut",{url:"optout",controller:"OptOutController",templateUrl:"/ClientApp/src/legacy-app/optOut/optOut.html"}),scope.currentChapter.name?(t.state("app",{url:"/",sticky:!0,abstract:!0,controller:"RootController",templateUrl:"/ClientApp/src/legacy-app/root/root.html"}).state("app.root",{url:"",translatable:!0}).state("app.root.snips",{url:"snips",translatable:!0}).state("app.root.login",{url:"login?closedToken"}).state("app.root.notifications",{url:"notifications"}).state("app.root.menu",{url:"menu"}).state("app.articleStatistic",{url:"{slug}_{id}/legacy-report",controller:"ArticleReportController",templateUrl:"/ClientApp/src/legacy-app/article/articleReport.html",resolve:{chapterReport:["$stateParams","articleService","$location",function(o,l,g){return l.getReport(o.id).then(function(u){return u},function(){g.path("/")})}],article:["$stateParams","articleService","parserService",function(o,l,g){return l.getArticleFromCache(o.id).then(function(u){return l.getArticleDetails(o.id).then(function(){}),u},function(){return l.getArticleDetails(o.id).then(function(u){return u})})}]}}).state("app.articleElasticStatistic",{url:"{slug}_{id}/report",controller:"ArticleElasticReportController",templateUrl:"/ClientApp/src/legacy-app/article/articleElasticReport.html",resolve:{chapterReport:["$stateParams","articleService","$location",function(o,l,g){return l.getElasticReport(o.id).then(function(u){return u},function(){g.path("/")})}],article:["$stateParams","articleService","parserService",function(o,l,g){return l.getArticleFromCache(o.id).then(function(u){return l.getArticleDetails(o.id).then(function(){}),u},function(){return l.getArticleDetails(o.id).then(function(u){return u})})}]}}).state("app.snipStatistic",{url:"snips/{slug}_{id}/legacy-report",controller:"SnipReportController",templateUrl:"/ClientApp/src/legacy-app/snip/snipReport.html",resolve:{chapterReport:["$stateParams","snipService","parserService",function(o,l){return l.getReport(o.id)}],snip:["$stateParams","snipService","parserService",function(o,l,g){return l.getSnipDetails(o.id).then(function(u){return u})}]}}).state("app.snipElasticStatistic",{url:"snips/{slug}_{id}/report",controller:"SnipElasticReportController",templateUrl:"/ClientApp/src/legacy-app/snip/snipElasticReport.html"}).state("app.snipDetail",{url:"snips/{slug}_{id}",controller:"SnipDetailController",templateUrl:"/ClientApp/src/legacy-app/snip/snipDetail.html",resolve:{snip:["$stateParams","snipService","profileService","parserService","$location",function(o,l,g,u,b){var I=o.id;return I||b.path("/").replace(),g.getProfile().then(function(){return l.getSnipDetailsFromCache(I).then(function(m){return l.getSnipDetails(I).then(function(){}),m},function(){return l.getSnipDetails(I).then(function(m){return m},function(){b.path("/").replace()})})})}]},translatable:!0}).state("app.articleDetail",{url:"{slug}_{id}",controller:"ArticleDetailController",templateUrl:"/ClientApp/src/legacy-app/article/articleDetail.html",resolve:{article:["$stateParams","articleService","profileService","parserService","$location",function(o,l,g,u,b){var I=o.id;return I||b.path("/").replace(),g.getProfile().then(function(){return l.getArticleFromCache(I).then(function(m){return m.detailsLoaded=!1,l.getArticleDetails(I).then(function(){u.postProcessHtml(m)}),m},function(){return l.getArticleDetails(I).then(function(m){return u.postProcessHtml(m),m},function(){b.path("/").replace()})})})}]},translatable:!0}).state("app.sponsoredArticleDetail",{url:"sparticles/{slug}_{id}",controller:"SponsoredArticleDetailController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleDetail.html",resolve:{sponsoredArticle:p}}).state("app.sponsoredArticleEdit",{disableNavigation:!0,url:"sparticles/{slug}_{id}/edit",controller:"SponsoredArticleEditController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleEdit.html"}).state("app.articleEdit",{disableNavigation:!0,url:"{slug}_{id}/edit",controller:"ArticleEditController",templateUrl:"/ClientApp/src/legacy-app/article/articleEdit.html"}).state("app.adminsettings",{url:"adminsettings",controller:"AdminSettingsController",templateUrl:"/ClientApp/src/legacy-app/admin/adminSettings.html"}).state("app.notificationsettings",{url:"notifications/settings/{privateUserGuid}?optOutAll",controller:"NotificationSettingsController",templateUrl:"/ClientApp/src/legacy-app/notification/notificationSettings.html"}).state("app.my-profile",{url:"profile",controller:"ProfileController",templateUrl:"/ClientApp/src/legacy-app/user/profile.html"}).state("app.public-profile",{url:"profile/{id}",controller:"PublicProfileController",templateUrl:"/ClientApp/src/legacy-app/user/publicProfile.html"}).state("app.loginSaml2",{url:"login/saml2",controller:"LoginSaml2Controller",templateUrl:"/ClientApp/src/legacy-app/authentication/loginSaml2.html"}).state("app.register",{url:"register?closedToken",controller:"RegisterController",templateUrl:"/ClientApp/src/legacy-app/authentication/register.html",resolve:{registerForNewsletter:function(){return!1}}}).state("app.registerNewsletter",{url:"newsletter-subscribe",controller:"RegisterController",templateUrl:"/ClientApp/src/legacy-app/authentication/register.html",resolve:{registerForNewsletter:function(){return!0}}}).state("app.registrationcomplete",{url:"account/registration-complete",templateUrl:"/ClientApp/src/legacy-app/content/registrationcomplete.html"}).state("app.requestPassword",{url:"account/request-password",controller:"RequestPasswordController",templateUrl:"/ClientApp/src/legacy-app/authentication/requestPassword.html"}).state("app.passwordResetComplete",{url:"account/password-resetted",templateUrl:"/ClientApp/src/legacy-app/content/passwordresetcomplete.html"}).state("app.requestPasswordComplete",{url:"account/password-requested",templateUrl:"/ClientApp/src/legacy-app/content/requestpasswordcomplete.html"}).state("app.unsubscribeNewsletter",{url:"account/newsletter-unsubscribe/{id}",controller:"UnsubscribeController",templateUrl:"/ClientApp/src/legacy-app/user/unsubscribe.html"}).state("app.accountsettings",{url:"settings",controller:"AuthenticationSettingsController",templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationSettings.html"}).state("app.special",{url:"specials/{id}",controller:"SpecialDetailController",templateUrl:"/ClientApp/src/legacy-app/special/specialDetail.html",resolve:{special:["$stateParams","specialService",function(o,l){return l.getSpecial(o.id)}]}}).state("app.specialStatistics",{url:"campaigns/specials/{id}/legacy-report",controller:"SpecialReportController",templateUrl:"/ClientApp/src/legacy-app/special/specialReport.html"}).state("app.surveyDetails",{url:"surveys/{id}?preview",controller:"SurveyDetailController",templateUrl:"/ClientApp/src/legacy-app/survey/surveyDetail.html"}).state("app.workflow",{url:"workflow/{id}?preview",controller:"workflowController",templateUrl:"/ClientApp/src/legacy-app/workflow/workflowTemplate.html"}).state("app.videoplay",{url:scope.currentScope.prefixAppRoutes+"apicodo-video/{id}",controller:"apicodoMediaPlayPageController",templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaPlayPage.html"}).state("app.specialElasticStatistic",{url:"campaigns/specials/{id}/report",controller:"SpecialElasticReportController",templateUrl:"/ClientApp/src/legacy-app/special/specialElasticReport.html"}).state("app.search",{url:"search?q&chapterIds",controller:"SearchController",templateUrl:"/ClientApp/src/legacy-app/search/search.html",reloadOnSearch:!1}).state("app.campaignStatistic",{url:"campaigns/{pin}/report",controller:"CampaignReportController",templateUrl:"/ClientApp/src/legacy-app/campaign/campaignReport.html"}).state("app.campaignDetail",{url:"campaigns/{pin}",controller:"AdvertisementController",templateUrl:"/ClientApp/src/legacy-app/campaign/shipments.html"}).state("app.authorDashboard",{url:"dashboard",controller:"DashboardController",templateUrl:"/ClientApp/src/legacy-app/author/dashboard.html"}).state("app.snipApply",{url:"snips/{slug}_{id}/apply",controller:"SnipApplyController",templateUrl:"/ClientApp/src/legacy-app/snip/snipApply.html"}).state("app.marketResearchStatistic",{url:"campaigns/marketresearch/{id}/legacy-report",controller:"MarketResearchReportController",templateUrl:"/ClientApp/src/legacy-app/marketResearch/MarketResearchReport.html"}).state("app.marketResearchElasticStatistic",{url:"campaigns/marketresearch/{id}/report",controller:"MarketResearchElasticReportController",templateUrl:"/ClientApp/src/legacy-app/marketResearch/MarketResearchElasticReport.html"}).state("app.brochureStatistic",{url:"campaigns/brochures/{id}/legacy-report",controller:"BrochureReportController",templateUrl:"/ClientApp/src/legacy-app/brochure/BrochureReport.html"}).state("app.brochureElasticStatistic",{url:"campaigns/brochures/{id}/report",controller:"BrochureElasticReportController",templateUrl:"/ClientApp/src/legacy-app/brochure/BrochureElasticReport.html"}).state("app.bannerCampaignStatistic",{url:"campaigns/banners/{pin}/legacy-report",controller:"bannerCampaignReportController",templateUrl:"/ClientApp/src/legacy-app/bannerCampaign/bannerCampaignReport.html"}).state("app.bannerCampaignElasticStatistic",{url:"campaigns/banners/{pin}/report",controller:"BannerCampaignElasticReportController",templateUrl:"/ClientApp/src/legacy-app/bannerCampaign/bannerCampaignElasticReport.html"}).state("app.sponsoredArticleCampaignStatistic",{url:"campaigns/sparticles/{pin}/legacy-report",controller:"sponsoredArticleCampaignReportController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticleCampaign/sponsoredArticleCampaignReport.html"}).state("app.sponsoredArticleCampaignElasticStatistic",{url:"campaigns/sparticles/{pin}/report",controller:"SponsoredArticleCampaignElasticReportController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticleCampaign/sponsoredArticleCampaignElasticReport.html"}).state("app.premiumStatistic",{url:"campaigns/premiums/{pin}/legacy-report",controller:"premiumReportController",templateUrl:"/ClientApp/src/legacy-app/premium/premiumReport.html"}).state("app.premiumElasticStatistic",{url:"campaigns/premiums/{pin}/report",controller:"PremiumElasticReportController",templateUrl:"/ClientApp/src/legacy-app/premium/premiumElasticReport.html"}).state("app.superStatistic",{url:"campaigns/super/{pin}/legacy-report",controller:"superCampaignReportController",templateUrl:"/ClientApp/src/legacy-app/superCampaign/superCampaignReport.html"}).state("app.superElasticStatistic",{url:"campaigns/super/{pin}/report",controller:"SuperCampaignElasticReportController",templateUrl:"/ClientApp/src/legacy-app/superCampaign/superCampaignElasticReport.html"}).state("app.staticArticleEditAdmin",{url:"staticarticles/{id}/edit",controller:"StaticArticleEditController",disableNavigation:!0,templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleEdit.html",resolve:{staticArticleId:["$stateParams",function(o){return o.id}]}}).state("app.companyNews",{url:"companyNews/{id}",controller:"StaticArticleDetailController",disableNavigation:!0,forceShowNavigationBranding:!0,templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleDetail.html",resolve:{staticArticle:["companyNewsService","parserService","$stateParams",function(o,l,g){return o.getCompanyNewsDetail(g.id).then(function(u){return l.postProcessHtml(u),u})}]}}),scope.currentChapter.settings.featureFeedback&&t.state("app.feedback",{url:"feedback",controller:"FeedbackController",templateUrl:"/ClientApp/src/legacy-app/user/feedback.html"}),!1!==scope.currentScope.network.settings.configurations.enableCalendar&&t.state("app.eventCalendar",{url:"events",controller:"EventCalendarController",templateUrl:"/ClientApp/src/legacy-app/event/eventCalendar.html"}),!1!==scope.currentScope.network.settings.configurations.enableCalendar&&scope.currentScope.chapter.settings.configurations.enableEventCalendar&&t.state("app.eventCalendarDetail",{url:"events/{guid}",controller:"EventCalendarDetailController",templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarDetail.html",translatable:!0,resolve:{event:["eventCalendarService","$stateParams","$state",function(o,l,g){return o.getEvent(l.guid).then(function(u){return u},function(){g.go("app.root")})}]}}),!1!==scope.currentScope.network.settings.configurations.enableCalendar&&scope.currentScope.chapter.settings.configurations.enableEventCalendar&&t.state("app.eventCalendarEdit",{disableNavigation:!0,url:"events/{guid}/edit",controller:"EventCalendarEditController",templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarEdit.html",resolve:{event:["eventCalendarService","$stateParams","$state",function(o,l,g){return o.getEventForEdit(l.guid).then(function(u){return u},function(){g.go("app.root")})}]}}),scope.currentChapter.settings.featureSales&&t.state("app.sponsoredArticleList",{url:"sparticles",controller:"SponsoredArticleListController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleList.html"}).state("app.campaigns",{url:"campaigns",controller:"CampaignController",templateUrl:"/ClientApp/src/legacy-app/campaign/campaigns.html"}).state("app.advertiserBillingInfo",{url:"advertisers/billinginfo",controller:"AdvertiserBillingInfoController",templateUrl:"/ClientApp/src/legacy-app/advertiser/advertiserBillingInfo.html"}).state("app.consumeAdvertiserToken",{url:"advertisers/connect",controller:"AdvertiserConsumeController",templateUrl:"/ClientApp/src/legacy-app/advertiser/advertiserConsume.html"}).state("app.advertiserConsumtionComplete",{url:"advertisers/connected",templateUrl:"/ClientApp/src/legacy-app/advertiser/advertiserConsumationComplete.html"}),scope.currentChapter.settings.featureAuthorBilling&&t.state("app.authorBillingInfo",{url:"author/billinginfo",controller:"AuthorBillingInfoController",templateUrl:"/ClientApp/src/legacy-app/author/authorBillingInfo.html"}),scope.currentChapter.managingParent.closed&&t.state("app.closedChapter",{url:"closed?token=",controller:"ClosedChapterController",templateUrl:"/ClientApp/src/legacy-app/closedChapter/closedChapter.html"}).state("app.ikUpLanding",{url:"landing",controller:"IkUpLandingPageController",templateUrl:"/ClientApp/src/legacy-app/ikUpLandingPage/ikUpLandingPage.html"}),t.state("app.authors",{url:"authors",controller:"AuthorListController",templateUrl:"/ClientApp/src/legacy-app/author/authorList.html"}).state("app.imagelicensing",{url:"imagelicensing",templateUrl:"/ClientApp/src/legacy-app/content/imagelicensing.html"}),scope.currentScope.network.staticArticles.concat(scope.currentScope.chapter.staticArticles).forEach(function(o){o.path&&t.state("app.staticArticles_"+o.id,{url:o.path.substring(1),templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleDetail.html",controller:"StaticArticleDetailController",resolve:{staticArticle:["staticArticleService","parserService",function(l,g){return l.getStaticArticle(o.id).then(function(u){return g.postProcessHtml(u),u})}]}}).state("app.staticArticles_"+o.id+".edit",{disableNavigation:!0,url:"/edit",controller:"StaticArticleEditController",templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleEdit.html",resolve:{staticArticleId:function(){return o.id}}})}),(scope.currentScope.network.settings.appLinkAndroid||scope.currentScope.network.settings.appLinkITunes)&&t.state("app.appStore",{url:"app",controller:"AppStoreController",templateUrl:"/ClientApp/src/legacy-app/appStore/appStore.html"})):t.state("app",{url:"/",abstract:!0,template:"<div ui-view></div>"}),navigator.userAgent&&-1!==navigator.userAgent.indexOf("Merkurist_IAB")?(t.state("clickNotification",{url:"/click/notification/{id}"}).state("clickSpecial",{url:"/click/special/{guid}/{id}"}).state("clickPremiumBanner",{url:"/click/premiumBanner/{guid}/{pin}"}).state("clickSuperBanner",{url:"/click/superBanner/{guid}/{pin}"}).state("clickBanner",{url:"/click/banner/{guid}/{pin}"}).state("clickSurveyBanner",{url:"/click/surveyBanner/{guid}/{pin}"}).state("app.untrackedNotification",{url:"/untracked/{untrackedUri}"}).state("app.documentDownload",{url:"{route:pdf|document}/{id}"}).state("app.fileDownload",{url:"file/{id}"}).state("app.offline",{url:"appOffline",templateUrl:"/ClientApp/src/legacy-app/content/appOffline.html"}),scope.currentChapter.name||t.state("home",{url:"/",controller:"AppLandingController",templateUrl:"/ClientApp/src/legacy-app/landing/appLanding.html"})):scope.currentChapter.name||t.state("home",{url:"/",controller:"LandingController",templateUrl:"/ClientApp/src/legacy-app/landing/landing.html"}),e.otherwise("/")}]),app.run(["$rootScope","clickService","profileService","$location","$timeout","$state","scopeService","redirectService",function(e,t,a,n,s,p,h,r){var i=["app.closedChapter","app.loginSaml2","app.register","app.registrationcomplete","app.requestPassword","app.passwordResetComplete","app.requestPasswordComplete","app.unsubscribeNewsletter","app.root.login","app.root.loginToken","app.imprint","app.privacyPolicy","app.tos","app.companyNews","app.ikUpLanding","app.documentDownload","app.untrackedNotification","app.offline","app.fileDownload","app.appStore"],c=r.redirectNotificationUrl;e.$on("$stateChangeStart",function(d,o,l){switch(scope.network.landingSwitch&&"app.ikUpLanding"!==o.name&&"app.offline"!==o.name&&(d.preventDefault(),window.sessionStorage.setItem("returnUrl",n.path()),p.go("app.ikUpLanding",{},{location:"replace"})),a.getProfile().then(function(b){if(b.hasChapterAccess||-1!==i.indexOf(o.name)){if(b.adminSetPassword&&"app.requestPassword"!==o.name)window.sessionStorage.setItem("returnUrl",n.path()),p.go("app.requestPassword",{},{location:"replace"});else if(b.hasChapterAccess){var I=window.sessionStorage.getItem("returnUrl");I&&(d.preventDefault(),window.sessionStorage.removeItem("returnUrl"),n.path(I))}}else window.sessionStorage.setItem("returnUrl",n.path()),d.preventDefault(),p.go("app.closedChapter",{},{location:"replace"})}),o.name){case"app.root.snips":e.showSnipSlide||(p.go("app.root",{},{location:"replace"}),d.preventDefault());break;case"clickPremiumBanner":t.clickPremium(l.guid,l.pin).then(function(b){c(b.uri)}),d.preventDefault();break;case"clickSuperBanner":t.clickSuper(l.guid,l.pin).then(function(b){c(b.uri)}),d.preventDefault();break;case"clickBanner":console.log("clickBanner toParams",l),t.clickBanner(l.guid,l.pin).then(function(b){console.log("clickBanner result from api",b),c(b.uri)}),d.preventDefault();break;case"clickSurveyBanner":t.clickSurveyBanner(l.guid,l.pin).then(function(b){c(b.uri)}),d.preventDefault();break;case"clickSpecial":t.clickSpecial(l.guid,l.id).then(function(b){c(b.uri)}),d.preventDefault();break;case"clickNotification":t.clickNotification(l.id).then(function(b){c(b.uri)}),d.preventDefault();break;case"app.untrackedNotification":c(l.untrackedUri),d.preventDefault();break;case"app.documentDownload":t.clickDocument(l.id).then(u),d.preventDefault();break;case"app.fileDownload":t.clickFile(l.id).then(u),d.preventDefault()}function u(b){"android"===cordova.platformId&&b.isPdf?cordova.InAppBrowser.open("/Content/pdfview/web/?file="+b.uri,"_blank","location=yes,hidenavigationbuttons=yes,hideurlbar=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")):cordova.InAppBrowser.open(b.uri,"_system","location=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"))}})}]),app.run(["$rootScope","$window","$location","$uibModalStack","$timeout","$state","metaService","profileService",function(e,t,a,n,s,p,h,r){e.profile=r.profile,window.scope.profile=r.profile,e.$on("$stateChangeStart",function(i){var c=n.getTop();c&&(n.dismiss(c.key),i.preventDefault())}),e.$on("$locationChangeStart",function(i,c,d){c.endsWith("?top")&&(i.preventDefault(),a.url(c.replace(/^(?:\/\/|[^\/]+)*\//,"").replace(/\?top$/g,"")))}),e.$on("$stateChangeSuccess",function(i,c,d,o,l){function g(u){if(null===u||"object"!=typeof u)return u;var b=u.constructor();for(var I in u)u.hasOwnProperty(I)&&"object"!=typeof u[I]&&(b[I]=u[I]);return b}p.includes("app.root")||t.scrollTo(0,0),document.dispatchEvent(new CustomEvent("angularCustomEvent",{detail:{source:"stateChangeSuccess",toState:c}})),o&&o!==c&&!d.back?(d.back=o,d.backParams=l):o.name===c.name&&l.back&&(d.back=l.back,d.backParams=l.backParams),l&&l.backParams&&JSON.stringify(g(d))===JSON.stringify(g(l.backParams))&&(d.back=l.backParams.back,d.backParams=l.backParams.backParams),h.stateChanged(c)}),e.$on("$locationChangeSuccess",function(i,c,d){c!==d&&(Oculus.push(),Oculus.navigate(d))})}]),app.directive("resolve",["$controller",function(e){return{scope:!0,link:function(t,a,n){var s=t.$eval(n.resolve);angular.extend(s,{$scope:t}),e(n.resolveController,s)}}}]),objectFitImages(),app.controller("AdminSettingsController",["$scope","$state","localStorageService","profileService","$location",function(e,t,a,n,s){n.getProfile().then(function(p){!p.isSales&&!p.isMerkuristJournalist&&s.path("/").replace();var h=p.guid;e.$watch("profile.guid",function(){h!==p.guid&&s.path("/")})},function(p){s.path("/").replace()}),e.storage=a,e.toggleOculusFeedback=function(){a.enableOculusFeedback=!a.enableOculusFeedback},e.toggleArticleExitRates=function(){a.enableArticleExitRates=!a.enableArticleExitRates},e.toggleApp=function(){a.app=!a.app}}]),app.controller("AdvertiserBillingInfoController",["$scope","advertiserService","profileService","$location",function(e,t,a,n){e.advertisers=[],e.success=!1,e.fromApply=n.search().fromApply,a.getProfile().then(function(h){h.isRegistered||n.path("/").replace(),t.getAdvertisersByUser().then(function(r){$.each(r,function(i,c){e.advertisers.push({accountHolder:"",costCenter:"",phone:"",gender:"",email:"",country:"",iban:"",guid:"",title:"",bic:"",firstName:"",lastName:"",companyName:"",address:"",city:"",postalCode:null,chapter:c.chapter}),c.title&&(e.advertisers[i].title=c.title),c.gender&&(e.advertisers[i].gender=c.gender),c.country&&(e.advertisers[i].country=c.country),c.phone&&(e.advertisers[i].phone=c.phone),c.email&&(e.advertisers[i].email=c.email),c.costCenter&&(e.advertisers[i].costcenter=c.costCenter),c.guid&&(e.advertisers[i].guid=c.guid),c.firstName&&(e.advertisers[i].firstname=c.firstName),c.accountHolder&&(e.advertisers[i].accountholder=c.accountHolder),c.bic&&(e.advertisers[i].bic=c.bic),c.lastName&&(e.advertisers[i].lastname=c.lastName),c.companyName&&(e.advertisers[i].companyname=c.companyName),c.address&&(e.advertisers[i].address=c.address),c.city&&(e.advertisers[i].city=c.city),c.postalCode&&(e.advertisers[i].postalcode=c.postalCode),c.iban&&(e.advertisers[i].iban=c.iban),c.iban&&(e.advertisers[i].ibanshow=c.iban.substr(0,7)+c.iban.substr(7).replace(/.(?=.{4,}$)/g,"*"))}),e.currentAdvertiser=e.advertisers[0]})},function(h){n.path("/").replace()}),e.resetValue=function(h){e.currentAdvertiser.iban=""},e.signUp=function(h,r){h&&(0==r.gender&&(r.gender=!1),1==r.gender&&(r.gender=!0),t.updateBillingInfo(r).then(function(i){e.success=!0},function(){e.success=!1}))}}]),app.controller("AdvertiserConsumeController",["$scope","$location","profileService","advertiserService","$timeout","$uibModal","$state",function(e,t,a,n,s,p,h){e.working=!0,t.search().token?n.getAdvertiserByToken(t.search().token).then(function(r){e.advertiser=r,s(function(){e.working=!1},1e3)}):e.working=!1,e.login=function(){p.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return function(){}},facebookSignUpData:function(){return null},login:!0}})},e.consume=function(){n.consumeAdvertiserToken(t.search().token).then(function(){e.consumeError=!1,a.getProfile(!0).then(function(){h.go("app.advertiserConsumtionComplete")})},function(){e.consumeError=!0})}}]),app.factory("advertiserService",["$http","$q","$location",function(e,t){return{getAdvertiserByToken:function(h){var r=t.defer();return e.get(scope.apiEndpoint+"advertis0rs/"+h).then(function(i){r.resolve(i.data)},function(){r.reject()}),r.promise},getAdvertisersByUser:function(){var h=t.defer();return e.get(scope.apiEndpoint+"advertis0rs/getbyuser").then(function(r){h.resolve(r.data)},function(){h.reject()}),h.promise},updateBillingInfo:function(h){var r=t.defer();return e.put(scope.apiEndpoint+"advertis0rs/billingInfo",h).then(function(i){r.resolve(i.data)},function(){r.reject()}),r.promise},consumeAdvertiserToken:function(h){var r=t.defer();return e.put(scope.apiEndpoint+"advertis0rs/"+h).then(function(i){r.resolve(i)},function(){r.reject()}),r.promise}}}]),app.controller("AppStoreController",["$scope",function(e){e.appLinkAndroid=scope.currentScope.network.settings.appLinkAndroid,e.appLinkITunes=scope.currentScope.network.settings.appLinkITunes;let t=navigator.userAgent,a=t.includes("Macintosh")&&"ontouchend"in document;e.isIOS=/iPhone|iPad|iPod/i.test(t)||a,e.isAndroid=/Android/i.test(t),e.isOther=!e.isIOS&&!e.isAndroid,e.showIos=e.appLinkITunes&&(e.isIOS||e.isOther),e.showAndroid=e.appLinkAndroid&&(e.isAndroid||e.isOther)}]),app.controller("articleCancelScheduledPublish",["$Scope","article",function(e,t){}]),app.controller("ArticleCreatePublishDialog",["$scope","profileService","article","markdown","heading","htmlDocument","publishService","resultCallback","$rootScope","notificationService","articleService",function(e,t,a,n,s,p,h,r,i,c,d){e.working=!1,e.error=!1,e.dateOptions={minDate:new Date,showWeeks:!0},e.isJournalistOnly=i.profile.isJournalist&&!i.profile.isMerkuristJournalist,e.publishButtonLabel=i.scope.currentScope.network.getResourceOrKeyName(i.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly?"web_common_submit":"web_common_publish"),e.showContentConnectTagBox=!1,e.words=!1,e.sentences=!1,e.paragraphs=!1,e.alreadyNotified=!1,e.datepickerPlaceholder=moment.localeData(i.scope.currentScope.network.settings.languageCode).longDateFormat("L"),e.allowCriticalContent=i.scope.currentScope.chapter.settings.enableCriticalContent,t.getProfile().then(function(u){e.firstPublish=u.isMerkuristJournalist&&!a.published,e.allowBreakingNews=u.isMerkuristJournalist}),e.alreadyNotified=a.alreadyNotified;var o=new Date(Date.now());o.setMilliseconds(0),o.setSeconds(0),e.minDate=o,e.minDateString=new Date(o).toISOString().slice(0,-1),c.getNotifiedUsersCount().then(function(u){e.NumberOfNotifiedUsers=u});var l=new Date(a.scheduledPublish);a.scheduledPublish||(l=new Date(Date.now())),l.setMilliseconds(0),l.setSeconds(0);var g=new Date(a.scheduledArchive);a.scheduledArchive||(g=l),g.setMilliseconds(0),g.setSeconds(0),e.publishArticle={id:a.id,criticalContent:!1,enableInteraction:!0!==i.scope.currentScope.chapter.settings.configurations.disableInteractionsByDefault,inactive:a.inactive,chapterSlugs:[],breakingNews:!1,heading:s,calendarDate:null,cbCalendarDate:!1,scheduledPublish:l,scheduledArchive:g,scheduledPublishDo:!!a.scheduledPublish,scheduledArchiveDo:!!a.scheduledArchive,externalContent:!!a.externalContent,externalContentNotifyAdminsNewContent:a.externalContentNotifyAdminsNewContent,externalContentNotifyAdminsChangedContent:a.externalContentNotifyAdminsChangedContent,externalContentNotifyAllChangedContent:a.externalContentNotifyAllChangedContent,externalContentUpdateCronSelection:a.externalContentUpdateCronSelection,externalContentConfluenceSourceId:a.externalContentConfluenceSourceId,firstPublish:!!e.firstPublish},e.publishArticle.scheduledPublishString=e.publishArticle.scheduledPublish,e.scheduledDate=l,e.networkChapters=[],$.each(i.scope.currentScope.network.chapters,function(u,b){2===b.managementState&&b.id!==scope.currentChapter.id&&e.networkChapters.push({name:b.name,slug:b.slug})}),e.showContentConnectTagBox=e.networkChapters.length>0,e.contentConnectTagBox={selectionOptions:{width:"90%",dataSource:e.networkChapters,showSelectionControls:!0,searchEnabled:!0,displayExpr:"name",valueExpr:"slug",selectAllText:i.scope.currentScope.network.getResourceOrKeyName("web_rubric_choice_check_all"),placeholder:i.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_contentConnectPlaceholder"),onInitialized:function(u){e.dxTagBoxInstance=u.component}}},d.getContentConnectNetworks().then(function(u){u.length>0&&(e.showContentConnectTagBox=!0),u.forEach(function(b){b.networkChapters.forEach(function(I){e.dxTagBoxInstance.getDataSource().store().insert({name:b.name+": "+I.name,slug:I.slug})})}),e.dxTagBoxInstance.load()}),e.formIsValid=function(){return!e.publishArticle.scheduledArchiveDo||e.publishArticle.scheduledArchive>=e.publishArticle.scheduledPublish},e.words=h.checkWords(p),e.sentences=h.checkSentences(p),e.paragraphs=h.checkParagraphs(p),e.publish=function(){e.working||(e.working=!0,e.publishArticle.cbCalendarDate||(e.publishArticle.calendarDate=null),e.publishArticle.scheduledPublishDo||(e.publishArticle.scheduledPublish=null),e.publishArticle.scheduledArchiveDo||(e.publishArticle.scheduledArchive=null),e.publishArticle.firstPublish=e.firstPublish,e.firstPublish&&(e.publishArticle.chapterSlugs=e.dxTagBoxInstance.option("selectedItems").map(function(u){return u.slug})),r&&r(e.publishArticle),e.$dismiss())}}]),app.controller("ArticleDetailController",["$scope","$rootScope","$previousState","articleService","snipService","articleQuestionService","scopeService","parserService","$location","article","$timeout","shipmentService","$uibModal","betterPlaceService","translationService","profileService","assetService",function(e,t,a,n,s,p,h,r,i,c,d,o,l,g,u,b,I){if(e.snip=void 0,e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,e.readOnlyMode=t.profile.readOnlyMode,e.hideUserInteraction=1==scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==t.scope.profile.isRegistered&&0==t.app,(!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history&&window.allowRedirect){var m=t.scope.currentChapter.path+i.url();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",m)}function D(k){e.articleQuestions=k,$.each(k,function(y,M){M.normalAnswers=[],M.freeTextAnswers=[],$.each(M.items,function(A,R){R.isFreeTextAnswer?M.freeTextAnswers.push(R):M.normalAnswers.push(R)}),p.getAnswerId(M.id).then(function(A){e.articleQuestionAnswerIds[M.id]=[],$.each(A,function(R,U){if(e.articleQuestionAnswerIds[M.id].push(U.itemId),U.freeText){var V=M.freeTextAnswers.find(function(q){return q.id===U.itemId});V.freeText=U.freeText,V.synchedFreeText=U.freeText}})})})}c&&(h.getNetworkChapter(c.originChapterSlug,c.originNetworkSlug).then(function(k){e.crossNetworkInfo=k}),t.scope.currentScope.chapter.settings.enableArticleQuestions&&(e.articleQuestionAnswerIds={},p.getArticleQuestions(c.id).then(D))),e.answering=function(k,y){var M=e.articleQuestions.find(function(_){return _.id===k}),A=M.items.find(function(_){return _.id==y});if(!M.locked){var R=e.articleQuestionAnswerIds[k].includes(y),U=e.articleQuestionAnswerIds[k],V=R&&(!A.isFreeTextAnswer||!A.freeText);if(!M.allowMultipleChoice||V){var q=R?y:U[0];(A.id!==q||!A.isFreeTextAnswer||!A.freeText)&&p.deleteArticleQuestionAnswersByUser(q).then(function(){U.splice(U.indexOf(q),1);var _=M.items.find(function(B){return B.id==q});_.freeText=null,_.synchedFreeText=null})}V||p.postArticleQuestionAnswer(y,A.freeText).then(function(){A.synchedFreeText=A.freeText,R||U.push(y)})}};var w,k,v=function(){w=e.article.assetReferences.reduce(function(k,y){return k[y.guid]=y,k},{})};if(e.resolveAsset=function(k){return w[k]},e.socialMediaShareEnable=t.scope.currentScope.network.settings.socialMediaShareEnable,$(window).scroll(function(k){$(k.target).scrollTop()>100?$(".articleDetail-mobileNavigation-wrapper").addClass("articleDetail-mobileNavigation-wrapper-scrolled"):$(".articleDetail-mobileNavigation-wrapper").removeClass("articleDetail-mobileNavigation-wrapper-scrolled")}),e.recommendedArticles=[],e.recommendedArticlePairs=[],e.recommendedSnips=[],e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],e.articleUpdater)(e.$parent.articleUpdater?e.$parent:e.$parent.$parent).$on("articleUpdate",function(k,y){e.article=y,r.postProcessHtml(e.article),e.article.detailsLoaded=!0,v(),e.$broadcast("$$rebind::refresh")});else{e.$watch(function(){return"article.detailsLoaded"},function(k){k&&v()});var f=c.id,F=function(){e.$watch("article.shipmentsPlaced",function(k){(k||0===k)&&o.resolve(c.shipmentsPlaced,f,e.currentLanguage).then(function(){t.scope.currentScope.chapter.settings.enableArticleRecommendations&&n.getRecommendedArticles(f).then(function(y){if(y.length){[].push.apply(e.recommendedArticles,y);for(var M=0;M<e.recommendedArticles.length;M+=2){var A=[];A.push(e.recommendedArticles[M]),e.recommendedArticles.length>M+1&&A.push(e.recommendedArticles[M+1]),e.recommendedArticlePairs.push(A)}}})})})};if(F(),e.article=c,e.availableTargetLanguages=null,u.getAvailableTargetLanguages().then(function(k){e.availableTargetLanguages=k}),t.scope.currentScope.chapter.settings.enableSnipRecommendations&&t.showSnipSlide&&s.getRecommendedSnips(f).then(function(k){e.recommendedSnips=k}),c.snipId&&t.showSnipSlide&&s.getSnipDetails(c.snipId).then(function(k){e.currentPath=t.scope.currentScope.network.path,e.snip=k}),(k=window.navigator.userAgent).indexOf(" Android ")>-1&&k.indexOf("Version/")>-1&&parseFloat((k.match("Android ([0-9.]+)")||[])[1])<=4.4){var x=$(window).height();$(".app-mobile .articleDetail-wrapper").css("height",x+"px"),$(".app-desktop .articleDetail-wrapper").css("height",x+"px")}e.projectDetails=null,e.projectPictures=null,c.betterPlaceProjectId&&t.scope.currentScope.chapter.settings.enableBetterPlaceProjects&&g.getProjectDetails(c.betterPlaceProjectId).then(function(k){e.projectDetails=k,g.getApiResult(e.projectDetails.links[3].href).then(function(y){e.projectPictures=y})})}var S=function(k){e.article.assetReferences.unshift(k)};e.selectedTargetLanguage=t.profile.favoriteLanguage,e.$on("apicodo.translate",function(k,y){e.translateArticleDetail(y)}),e.translateArticleDetail=function(k){k&&(e.selectedTargetLanguage=k),e.currentLanguage=e.selectedTargetLanguage,null===e.selectedTargetLanguage?(n.getArticleDetails(e.article.id).then(function(y){c.assetReferences=y.assetReferences,e.article=y,r.postProcessHtml(e.article),e.article.detailsLoaded=!0,v(),F(),e.$broadcast("$$rebind::refresh")}),p.getArticleQuestions(e.article.id).then(D)):(n.getTranslatedArticleDetails(e.article.id,e.selectedTargetLanguage).then(function(y){c.assetReferences=y.assetReferences,e.article=y,r.postProcessHtml(e.article),e.article.detailsLoaded=!0,v(),F(),e.$broadcast("$$rebind::refresh"),b.updateFavoriteLanguage(e.selectedTargetLanguage).then(function(){t.profile.favoriteLanguage=e.selectedTargetLanguage})}),p.getTranslatedArticleQuestions(e.article.id,e.selectedTargetLanguage).then(D))},e.assetCreateOpinionDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateOpinionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return S},createAssetAsync:function(){return function(k){return I.insertAssetTextToArticle(k,e.article.id)}}}})},e.assetCreateFactDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return S},createAssetAsync:function(){return function(k){return I.insertAssetTextToArticle(k,e.article.id)}}}})},e.assetCreateQuestionDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return S},createAssetAsync:function(){return function(k){return I.insertAssetTextToArticle(k,e.article.id)}}}})},e.assetCreateImageDialog=function(k,y,M){k&&0!==k.length?y.length||l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return k},resultCallback:function(){return S},createAssetAsync:function(){return function(A){return I.insertAssetImageToArticle(A,e.article.id)}}}}):y||M.$setPristine()},e.assetCreateVideoDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return S},createAssetAsync:function(){return function(k){return I.insertAssetTextToArticle(k,e.article.id)}}}})},e.assetCreateGifDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return S},createAssetAsync:function(){return function(k){return I.insertAssetTextToArticle(k,e.article.id)}}}})},e.assetSearchDialog=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return S},articleId:function(){return e.article.id},assetReferences:function(){return e.article.assetReferences}}})},e.assetImageFocuspointDialog=function(k){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return k}}})},e.scrollTo=function(k){$("body,html").animate({scrollTop:$(k).offset().top-120},1e3)},e.$watchCollection("article.assetReferences",function(){c&&(e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],angular.isDefined(c.assetReferences)&&c.assetReferences.forEach(function(k){null!==k.assetImage||null!==k.assetText&&(5===k.assetText.type||6===k.assetText.type||7===k.assetText.type||10===k.assetText.type||13===k.assetText.type)?e.assetsMedia.push(k):null!==k.assetText&&(8===k.assetText.type?e.assetsFacts.push(k):9===k.assetText.type?e.assetsQuestions.push(k):0===k.assetText.type&&e.assetsComments.push(k))}))}),e.share=function(){!window.plugins||!window.plugins.socialsharing||(window._paq&&_paq.push(["trackEvent","Conversion","StartShareArticle","ArticleDetail"]),window.plugins.socialsharing.shareWithOptions({message:(e.article.heading?e.article.heading+": ":"")+e.article.text+" "+i.absUrl()},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessShareArticle","ArticleDetail"])}))}}]),app.component("articleDisplayable",{templateUrl:"/ClientApp/src/legacy-app/article/articleDisplayable.html",bindings:{data:"<",article:"<"},controller:["$rootScope","scopeService","betterPlaceService",function(e,t,a){var n=this;n.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,this.$onInit=function(){n.data.originNetworkSlug&&n.data.originChapterSlug&&e.scope.currentScope.network.slug!==n.data.originNetworkSlug&&t.getNetworkChapter(n.data.originChapterSlug,n.data.originNetworkSlug).then(function(s){n.crossNetworkInfo=s}),n.projectDetails={},n.data.betterPlaceProjectId&&e.scope.currentScope.chapter.settings.enableBetterPlaceProjects&&a.getProjectDetails(n.data.betterPlaceProjectId).then(function(s){n.projectDetails=s})}}]}),app.component("articleDisplayableSnip",{templateUrl:"/ClientApp/src/legacy-app/article/articleDisplayableSnip.html",bindings:{data:"<",horizontal:"<"},controller:["$rootScope",function(e){var t=this;t.hideComponent=!1,this.$onInit=function(){t.hideComponent=2==e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig}}]}),app.controller("ArticleEditController",["$scope","scopeService","articleService","publishService","metaService","$state","authService","fileUploadService","formatterService","$location","$timeout","$uibModal","$rootScope","$interpolate","proseMirrorEditorService","editorAssetsService","backendHubProxy","spellingService","editorCommentService",function(e,t,a,n,s,p,h,r,i,c,d,o,l,g,u,b,I,m,D){e.initializedMobile=e.mobile,e.isPublishWorking=!1,e.isJournalistOnly=l.profile.isJournalist&&!l.profile.isMerkuristJournalist,e.publishButtonLabel=l.scope.currentScope.network.getResourceOrKeyName(l.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly?"web_common_submit":"web_common_publish"),e.enableHighQualityImage=l.scope.network.settings.configurations.enableHighQualityImage;var f,w=I("editorHub"),v=p.params.id,C="article_"+v+"_"+l.scope.currentScope.chapter.id,F=!1;w.on("broadcastSummary",function(O){e.revision.summary=O}),w.on("broadcastHeading",function(O){e.revision.texts[O.indexPosition].heading=O.heading}),w.on("broadcastAddVariant",function(){e.addTextVariant(!1)}),w.on("broadcastDeleteVariant",function(O){e.delTextVariant(!1,O.indexPosition)}),w.on("broadcastTitle",function(O){e.revision.texts[O.indexPosition].text=O.title}),w.start(function(){w.invoke("joinGroup",C)}),e.leaveEditor=function(){F=!0},e.blurHeading=function(O){w.invoke("updatingHeading",{groupName:C,heading:e.revision.texts[O].heading,indexPosition:O})},e.blurTitle=function(O){w.invoke("updatingTitle",{groupName:C,title:e.revision.texts[O].text,indexPosition:O})},e.blurSummary=function(){w.invoke("updatingSummary",{groupName:C,summary:e.revision.summary})};var S={coverAssetImages:[],texts:[{heading:"",text:""}],ChapterSlug:scope.currentChapter.slug};e.$on("$destroy",function(){s.setFavicon(),d.cancel(f)}),e.chapterHasTags=!!scope.currentChapter.chapterGroups&&scope.currentChapter.chapterGroups.length>0;var y,k=[];function M(){for(var O=e.article.revisions[0],H=O.published,J=0;J<e.article.revisions.length;J++)(e.article.revisions[J].published>O.published||!O.published)&&(H=(O=e.article.revisions[J]).published);if(l.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly)for(var Z=0;Z<e.article.revisions.length;Z++)(e.article.revisions[Z].publishRequested>O.published||null===H)&&(H=e.article.revisions[Z].publishRequested);var ee=new Date(H);e.article.scheduledPublish&&(ee=new Date(e.article.scheduledPublish)),e.timeSincePublished=g(scope.currentScope.network.resources.web_article_edit_timeSincePublished)({timeSincePublished:i.momentFromNowAsString(ee)}),f=d(function(){M()},i.momentFromNowTimeout(ee),!1)}scope.currentChapter.chapterGroups&&scope.currentChapter.chapterGroups.forEach(function(O){O.chapters.forEach(function(H){k.push({text:H.shortName,slug:H.slug})})}),e.articleUpdater=!0,e.article={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0,e.wordCount=0,e.words=!1,e.paragraphs=!1,e.sentences=!1;var A=l.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return A};var R=!1;l.$on("$stateChangeStart",function(O,H){R?O.preventDefault():e.changed&&!confirm(A)?(R=!0,O.preventDefault(),F=!1,d(function(){R=!1},1e3)):(e.changed=!1,F&&(w.invoke("leaveGroup",C),u.closeConnection(),w.stop(),F=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0,e.rubricMultiSelectModel=[],e.rubricMultiSelectModelfordx=[];var U=function(O){e.revision=null,e.article=O,e.rubricMultiSelectModel.length=0,O.chapterSlugs.forEach(function(J){var Z=V(J),ee={text:Z,slug:J};null!==Z&&(e.rubricMultiSelectModel.push(ee),e.rubricMultiSelectModelfordx.push(ee.slug))}),e.rubricTagBoxEntered=!1,e.rubricTagBox={selectionOptions:{width:"auto",dataSource:k,value:e.rubricMultiSelectModelfordx,showSelectionControls:!0,searchEnabled:!0,displayExpr:"text",valueExpr:"slug",selectAllText:l.scope.currentScope.network.getResourceOrKeyName("web_rubric_choice_check_all"),placeholder:l.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_chapterTagsPlaceholder"),onInitialized:function(J){e.dxTagBoxInstance=J.component},onContentReady:function(J){e.rubricTagBoxEntered=!0},onValueChanged:function(J){e.rubricTagBoxEntered&&(e.changed=!0)}}};var H=L(O);H?e.revision=H:(e.revision=S,O.revisions.push(S)),e.revision.texts.length||(H.texts=[{heading:"",text:""}]),y=E(O),d(function(){e.textCarousel||(e.textCarousel=$("#articleEdit-text-wrapper").find(".articleEdit-text-carousel"),e.textCarousel.on("afterChange",function(J,Z){e.textSlickIndex=Z.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#articleEdit-cover-wrapper").find(".articleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(J,Z){e.coverAssetSlickIndex=Z.currentSlide})),e.revision.texts.push({}),d(function(){e.revision.texts.splice(e.revision.texts.length-1,1),d(function(){e.textSlick=e.textCarousel.slick({dots:!0,initialSlide:e.textSlickIndex})},100)}),e.revision.coverAssetImages.push({}),d(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),d(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0,initialSlide:e.coverAssetSlickIndex})},100)}),M()}),e.loading=!1},V=function(O){for(var H=0;H<scope.currentScope.network.chapters.length;H++)if(scope.currentScope.network.chapters[H].slug===O)return scope.currentScope.network.chapters[H].shortName;return null};e.addTextVariant=function(O){e.textSlick=e.textCarousel.slick("unslick"),d(function(){e.revision.texts.push({heading:"",text:""}),d(function(){e.textSlick=e.textCarousel.slick({dots:!0}),e.textSlick.slick("slickGoTo",e.revision.texts.length-1)})}),O&&w.invoke("addVariant",{groupName:C})},e.delTextVariant=function(O,H){var J=H||e.textSlick.slick("slickCurrentSlide");e.textSlick.slick("unslick"),e.revision.texts.splice(J,1),e.revision.texts.push({}),d(function(){e.revision.texts.splice(e.revision.texts.length-1,1),d(function(){e.textSlick=e.textCarousel.slick({dots:!0}),J>0&&(e.textSlick.slick("slickGoTo",J-1),e.textSlickIndex=J-1)},100)}),O&&w.invoke("deleteVariant",{groupName:C,indexPosition:J})},e.mobileEditorFocused=!1,e.focusMobileEditor=function(){e.mobileEditorFocused=!0},e.blurMobileEditor=function(){e.mobileEditorFocused=!1},e.coverAssetCarousel=null,e.coverAssetSlick=null,e.delCoverAssetVariant=function(){if(e.revision.coverAssetImages.length>1){var O=e.coverAssetSlick.slick("slickCurrentSlide");e.coverAssetSlick.slick("slickRemove",O-1),e.revision.coverAssetImages.splice(O,1),e.coverAssetSlick.slick("unslick"),e.revision.coverAssetImages.push({}),d(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),d(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),O>0&&(e.coverAssetSlick.slick("slickGoTo",O-1),e.coverAssetSlickIndex=O-1)})})}},e.pickCoverAsset=function(O){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},resultCallback:function(){return function(H){e.coverAssetSlick.slick("unslick"),O&&e.revision.coverAssetImages.length?e.revision.coverAssetImages[0]=H.assetImage:e.revision.coverAssetImages.push(H.assetImage),d(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),e.coverAssetSlick.slick("slickGoTo",e.revision.coverAssetImages.length-1)})}},article:function(){return e.article}}})};var q=function(O,H){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},resultCallback:function(){return function(J){if(H&&J.length>0){u.setFocus();var Z=[];$.each(J,function(ee,X){var te=null;X.assetImage&&(te=X.assetImage.type),X.assetText&&(te=X.assetText.type),X.assetArticle&&(te=X.assetArticle.type),X.assetFile&&(te=X.assetFile.type),Z.push({guid:X.guid,type:te})}),H(Z)}}},article:function(){return e.article}}})};e.save=function(){e.rubricMultiSelectModel=e.dxTagBoxInstance.option("selectedItems");for(var O=angular.copy(e.article),H=e.revision.coverAssetImages.map(function(Z){return Z.id}),J=0;J<H.length;J++)if(H.lastIndexOf(H[J])>J)return void o.open({templateUrl:"/ClientApp/src/legacy-app/article/noDuplicateCoverAssetDialog.html"});O.texts=e.revision.texts,O.coverAssetImages=e.revision.coverAssetImages,O.markdown=e.revision.markdown,O.summary=e.revision.summary,O.chapterSlugs=e.rubricMultiSelectModel.map(function(Z){return Z.slug}),O.googleNewsCheck=n.checkGoogleNewsRecommendation(u.getHtmlDocument()),O.jsonDocument=u.getDocument(),O.HtmlDocument=u.getHtmlDocument(),a.updateArticle(O).then(function(Z){e.changed=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),U(Z.data)},function(){o.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})})},e.submit=function(){e.editForm.$submitted=!0};var _=function(O){e.editForm.$submitted=!0,e.isPublishWorking=!0,l.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly?a.publishArticleRequest(O).then(function(H){e.changed=!1,e.isPublishWorking=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),U(H.data)},function(){}):a.publishArticle(O).then(function(H){e.changed=!1,e.isPublishWorking=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),U(H.data)},function(){})};e.publish=function(){a.checkNotification(e.article.id).then(function(O){e.article.alreadyNotified=O,o.open({templateUrl:"/ClientApp/src/legacy-app/article/articleCreatePublishDialog.html",controller:"ArticleCreatePublishDialog",size:"lg",resolve:{resultCallback:function(){return _},article:function(){return e.article},markdown:function(){return e.revision.markdown},heading:function(){return e.revision.texts[0].text},htmlDocument:function(){return e.revision.htmlDocument}}})})},e.cancelScheduledPublish=function(){var O=new Date(e.article.scheduledPublish);e.article.scheduledPublishAsString=O.toLocaleString(),o.open({scope:e,templateUrl:"/ClientApp/src/legacy-app/article/articleCancelScheduledPublish.html",controler:"articleCancelScheduledPublish",resolve:{article:function(){return e.article}},size:"lg"}).result.then(function(){a.deleteScheduledPublish(e.article.id).then(function(){e.article.scheduledPublish=null,e.article.scheduledArchive=null})})},e.preview=!1,e.togglePreview=function(){if(e.preview=!e.preview,e.preview){var O=angular.copy(e.article);O.content=u.getHtmlDocument(),O.assetReferences=O.assetReferences,O.text=e.revision.texts[0].text,O.heading=e.revision.texts[0].heading,O.summary=e.revision.summary,e.revision.coverAssetImages.length&&(O.coverAssetReference=O.assetReferences.filter(function(H){return H.assetImage&&H.assetImage.id===e.revision.coverAssetImages[0].id})[0]),d(function(){e.$broadcast("articleUpdate",O)},500)}};var E=function(O){var H=L(O);return angular.toJson(H.texts)+angular.toJson(H.coverAssetImages)+H.summary+H.jsonDocument+angular.toJson(e.rubricMultiSelectModel)},L=function(O){if(e.revision)return e.revision;var H=O.revisions.filter(function(Z){return Z.chapterSlug===scope.currentChapter.slug});if(H.length)return H[0];if(O.chapterSlug!==scope.currentChapter.managingParent.slug){o.open({templateUrl:"/ClientApp/src/legacy-app/article/articleEditForeignDisclaimerDialog.html",size:"lg"}).result.then(function(){},function(){c.path("/")});var J=O.revisions.filter(function(Z){return Z.chapterSlug===O.chapterSlug});if(J.length)return J[0]}},z=function(O,H){o.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return H},messageHolder:function(){return new MessageHolder(e.article)},sourceService:function(){return D}}})};s.setFavicon(!0);var Y=function(O){o.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return O}}})},j=function(O,H){o.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return H}}})},W=function(O,H){o.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/addMetaInfoDialog.html",controller:"AddMetaInfoDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return H}}})},N=function(O,H,J){o.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return J},onAddedCallback:function(){return H},messageHolder:function(){return new MessageHolder(e.article)},chainComments:function(){return O},sourceService:function(){return D}}})},K=function(O){return b.getAsset(O,e.article.assetReferences)},G=function(O){d(function(){L(e.article).jsonDocument=O,e.numberOfWords=m.countWords(u.getHtmlDocument())})};$(".articleEdit-wrapper").scroll(function(){!function O(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),a.getArticleEdit(v).then(function(O){U(O),u.init({docID:"article_"+O.id+"_"+scope.currentChapter.slug,assetDlgFactory:q,commentCreationDlgFactory:z,commentMgmtDlgFactory:N,initialDocument:L(O).jsonDocument,initialAssetReferences:O.assetReferences,createLinkFactory:Y,callToActionDlgFactory:j,metadataCreationDlgFactory:W,assetResolver:K,onNewStateFactory:G,onLoadTransactionCallback:G,languageCode:l.scope.currentScope.network.settings.languageCode}),e.$watch(function(){return E(e.article)},function(O){e.changed=y!==O,e.wordCount=e.revision.markdown?e.revision.markdown.replace(/[^\w-_ ]/g," ").trim().split(/\s+/).length:0})},function(){c.path("/")})}]),app.controller("ArticleElasticReportController",["$scope","$rootScope","article","chapterReport","articleService","formatterService","scopeService","$timeout",function(e,t,a,n,s,p,h,r){AmCharts.isReady=!0;var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";e.dateFormatString=p.getShortDateFormatString(),e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage;var c=[],d=[],o=[{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_unknownReferrer"),color:"#cccccc",regEx:["^$"]},{name:t.scope.currentScope.network.domain.charAt(0).toUpperCase()+t.scope.currentScope.network.domain.slice(1),color:i,regEx:["^https?:\\/\\/"+t.scope.currentScope.network.domain]},{name:"Facebook",color:"#3B5998",regEx:["^https?:\\/\\/(\\w*\\.)?facebook\\.com","^android-app:\\/\\/m.facebook."]},{name:"Google",color:"#F44336",regEx:["^https?:\\/\\/((www\\.)|(images\\.))?google\\.","^android-app:\\/\\/com\\.google\\.android\\.googlequicksearchbox"]},{name:"Twitter",color:"#4099FF",regEx:["^https?:\\/\\/t\\.co\\/","^https?:\\/\\/twitter\\.com\\/"]},{name:"Webmail",color:"#ff66ff",regEx:["^https?:\\/\\/.*\\.mail\\.live\\.com","^https?:\\/\\/mail\\.google\\.com","^https?:\\/\\/3c\\.gmx\\.net","^https?:\\/\\/3c\\.web\\.de","^https?:\\/\\/email\\.t-online\\.de","^https?:\\/\\/3c-bap\\.web\\.de","^https?:\\/\\/email\\.1und1\\.de","^https?:\\/\\/www\\.arcor\\.de\\/home\\/link\\.php"]},{name:"WhatsApp",color:"#43d854",regEx:["^https?:\\/\\/web.whatsapp.com"]},{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_articleSuggestionReferrer"),color:"#F44336",regEx:["^https?:\\/\\/www\\.googleapis\\.com\\/auth\\/chrome-content-suggestions","^https?:\\/\\/play\\.google\\.(com|de){1}\\/newsstand"]},{name:"Google News",color:"#F44336",regEx:["^https?:\\/\\/((www\\.news\\.)|(news\\.))?(url\\.)?google\\."]},{name:"Instagram",color:"#cd486b",regEx:["^https?:\\/\\/(\\w*\\.)?instagram\\."]}],l=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];e.chapterReport=n,e.article=a,r(function(){var g,u,b,I,m;$.each(n,function(k,y){y.active=!0,y.variants.length&&$.each(y.variants,function(M,A){A.viewableImpressions>0&&(n.hasVariants=!0,A.hasViews=!0)})}),n.length>1&&(n.multiChapterShipment=!0);for(var D=[],w=[],v=[],C=new Date(a.published);C<=moment(new Date).startOf("day").add(1,"d").toDate();C.setDate(C.getDate()+1)){var f={start:new Date(C),viewableImpressions:0,readings:0};D.push(f),v[f.start.toDateString()]=f,w.push(f)}var F={impressions:0,readings:0,uniqueImpressions:0,uniqueReadings:0,uniqueReadingPercentageReads:0,uniqueViewableImpressions:0,activeTimeSeconds:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0};e.summary=F;var T=function(k){var y=!1;if(k?(F.start=moment(a.published).startOf("day").toDate(),F.end=moment(new Date).startOf("day").toDate()):n.hasVariants=!1,$.each(w,function(A,R){R.readings=0,R.viewableImpressions=0}),c.length=0,d=[],F.impressions=0,F.readings=0,F.uniqueImpressions=0,F.uniqueReadings=0,F.uniqueReadingPercentageReads=0,F.uniqueViewableImpressions=0,F.activeTimeSeconds=0,F.uniqueReadingsHavingViewableImpressions=0,F.uniqueReadingPercentage24Reads=0,F.uniqueReadingPercentage2549Reads=0,F.uniqueReadingPercentage5074Reads=0,F.uniqueReadingPercentage75100Reads=0,l[0].value=0,l[1].value=0,l[2].value=0,$.each(n,function(A,R){if(R.active){R.report.referrers.length&&$.each(R.report.referrers,function(V,q){y=!1,$.each(o,function(_,B){$.each(B.regEx,function(P,E){q.referrer.match(E)&&(d[B.name]?(d[B.name].readings+=q.readings,y=!0):(d[B.name]={readings:q.readings,referrer:B.name,color:B.color},c.push(d[B.name]),y=!0))})}),y||(d.others?d.others.readings+=q.readings:d.others={readings:q.readings,referrer:"Andere"})}),R.report.impressionCalendar.length&&$.each(R.report.impressionCalendar,function(V,q){v[new Date(q.day).toDateString()].viewableImpressions+=q.data}),R.report.readingCalendar.length&&$.each(R.report.readingCalendar,function(V,q){v[new Date(q.day).toDateString()].readings+=q.data}),R.variants.length&&$.each(R.variants,function(V,q){q.viewableImpressions>0&&(n.hasVariants=!0,q.hasViews=!0)}),F.impressions+=R.report.impressions,F.readings+=R.report.readings,F.uniqueReadings+=R.report.uniqueReadings,F.uniqueReadingsHavingViewableImpressions+=R.report.uniqueReadingsHavingViewableImpressions,F.uniqueImpressions+=R.report.uniqueImpressions,F.uniqueReadingPercentageReads+=R.report.uniqueReadingPercentageReads,F.activeTimeSeconds+=R.report.activeTimeSeconds,F.uniqueReadingPercentage24Reads+=R.report.uniqueReadingPercentage24Reads,F.uniqueReadingPercentage2549Reads+=R.report.uniqueReadingPercentage2549Reads,F.uniqueReadingPercentage5074Reads+=R.report.uniqueReadingPercentage5074Reads,F.uniqueReadingPercentage75100Reads+=R.report.uniqueReadingPercentage75100Reads;var U=R.report.desktopReadingCalendar+R.report.mobileReadingCalendar+R.report.tabletReadingCalendar;l[0].value+=Math.round(100/(U/R.report.desktopReadingCalendar)),l[1].value+=Math.round(100/(U/R.report.mobileReadingCalendar)),l[2].value+=Math.round(100/(U/R.report.tabletReadingCalendar))}}),n.length>1){var M=n.filter(function(A){return A.active}).length;l[0].value=Math.round(l[0].value/M),l[1].value=Math.round(l[1].value/M),l[2].value=Math.round(l[2].value/M)}d.others&&c.push(d.others),k&&(D.length=0,$.each(w,function(A,R){D.push({start:R.start,viewableImpressions:R.viewableImpressions})})),g.validateData(),u.validateData(),b.validateData(),I.validateData(),m.validateData()};g=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",marginRight:80,autoMarginOffset:20,marginTop:7,path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:D,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),u=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:"Gesamt",color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"readings",toField:"readings"}],dataProvider:w,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:t.scope.currentScope.network.getResourceOrKeyName("web_reportArticle_articleCallsHeading"),percentHeight:30,stockGraphs:[{valueField:"readings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_views")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),(b=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:c,valueField:"readings",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[referrer]]: [[value]]"})).legend.addListener("clickLabel",function(k){k.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(t.scope.currentScope.network.getResourceOrKeyName("web_report_copyReferrerLink"),k.dataItem.dataContext.referrer)}),I=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),m=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[F],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:i,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:i,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:i,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:i,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var x=function(k,y,M){$.each(n,function(A,R){s.getChapterReport(R.chapter.id,a,y,M).then(function(U){R.report=U,T(k)}),g.validateData(),u.validateData(),b.validateData(),I.validateData(),m.validateData()})};g.addListener("zoomed",function(){F.start=moment(g.startDate).startOf("day").toDate(),F.end=moment(g.endDate).startOf("day").toDate(),u.zoom(F.start,moment(F.end).startOf("day").add(1,"d").toDate()),x(!1,moment(F.start).startOf("day").add(1,"d").toDate(),moment(F.end).startOf("day").add(2,"d").toDate())}),e.toggleChapter=function(k){$.each(n,function(y,M){null!==M.chapter&&M.chapter.name===k&&(M.active=!M.active)}),T(!1)},x(!0,a.published,moment(new Date).startOf("day").add(2,"d").toDate())})}]),app.component("articleListDisplayablesList",{templateUrl:"/ClientApp/src/legacy-app/article/articleListDisplayablesList.html",bindings:{data:"<",mobile:"<"},controller:["$rootScope","skipThirdSnipService","shipmentService",function(e,t,a){var n=this;n.hideSnips=!1,n.hideSnips=scope.currentChapter.settings.configurations.hideSnipsInArticleFeed||!e.showSnipSlide,a.getShipmentSuper().then(function(p){n.superShipment=p}),n.$onChanges=function(p){p.data&&function s(){var p=[];n.counterOverdue=0,n.data.forEach(function(h,r){var i=0===r?null:n.data[r-1];(!i||4===i.articleListDisplayableType&&4!==h.articleListDisplayableType)&&(p.push({displayables:[],snips:[]}),n.counterOverdue=0),n.counterOverdue>3&&4!==h.articleListDisplayableType&&(p.push({displayables:[],snips:[]}),n.counterOverdue=0),n.counterOverdue++;var c=p[p.length-1];4===h.articleListDisplayableType?(n.counterOverdue=0,t.skipSnip(p.length,c.snip?c.snip.length+1:1)||c.snips.push(h)):c.displayables.push(h)}),n.groups=p}()}}]}),app.component("articleListDisplayablesListMore",{templateUrl:"/ClientApp/src/legacy-app/article/articleListDisplayablesListMore.html",bindings:{data:"<",mobile:"<"},controller:["$scope","scopeService",function(e,t){var a=this;a.groups=[],a.hideSnips=!1,this.$onInit=function(){a.hideSnips=scope.currentChapter.settings.configurations.hideSnipsInArticleFeed,a.data.forEach(function(n,s){var p=0===s?null:a.data[s-1];(!p||4===p.articleListDisplayableType&&4!==n.articleListDisplayableType)&&a.groups.push({displayables:[],snips:[]});var h=a.groups[a.groups.length-1];4===n.articleListDisplayableType?h.snips.push(n):h.displayables.push(n)})}}]}),app.factory("articleQuestionService",["$http","$q",function(e,t){return{getArticleQuestions:function(r){var i=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/"+r).then(function(c){i.resolve(c.data)},function(){i.reject()}),i.promise},getTranslatedArticleQuestions:function(r,i){var c=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/"+r+"/translate?targetLanguage="+i).then(function(d){c.resolve(d.data)},function(){c.reject()}),c.promise},postArticleQuestionAnswer:function(r,i){var c=t.defer(),d=i?'"'+i.replace(/\\/gm,"\\\\").replace(/"/gm,'\\"')+'"':null;return e.post(scope.apiEndpoint+"articleQuestions/articleQuestionItems/"+r,d).then(function(o){c.resolve(o.data)},function(){c.reject()}),c.promise},getAnswerId:function(r){var i=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/answers/"+r).then(function(c){i.resolve(c.data)},function(){i.reject()}),i.promise},deleteArticleQuestionAnswersByUser:function(r){var i=t.defer();return e.delete(scope.apiEndpoint+"articleQuestions/"+r).then(function(c){i.resolve(c.data)},function(){i.reject()}),i.promise}}}]),app.controller("ArticleReportController",["$scope","$rootScope","article","chapterReport","articleService","scopeService","$timeout",function(e,t,a,n,s,p,h){AmCharts.isReady=!0,e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage;var r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:t.scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:r,value:0},{title:t.scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],c=[],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];e.chapterReport=n,e.article=a,h(function(){n.forEach(function(k){k.report.calendar.forEach(function(y){y.start=moment(y.start.replace("Z","")).toDate(),y.end=moment(y.end.replace("Z","")).toDate()})});var l,g,u,b,I,m,D,w=new Set;$.each(n,function(k,y){y.active=!0,2===y.chapter.managementState&&w.add(y.chapter.name)}),n.uniqueChapters=[],w.forEach(function(k){n.uniqueChapters.push(k)}),w.size>1&&(n.multiChapterShipment=!0);var v=[],C=function(){v.length=0,n.hasVariants=!1,$.each(n[0].report.calendar,function(k,y){v.push({start:y.start,end:y.end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]})}),$.each(n,function(k,y){if(y.active){y.report.variants.length&&$.each(y.report.variants,function(A,R){R.viewableImpressions>0&&(n.hasVariants=!0,R.hasViews=!0)});var M=a.id;$.each(y.report.calendar,function(A,R){R.id=M,v[A].viewableImpressions+=R.viewableImpressions,v[A].uniqueViewableImpressions+=R.uniqueViewableImpressions,v[A].billableViewableImpressions+=R.billableViewableImpressions,v[A].activeTimeSeconds+=R.activeTimeSeconds,v[A].readings+=R.readings,v[A].uniqueReadings+=R.uniqueReadings,v[A].uniqueReadingsHavingViewableImpressions+=R.uniqueReadingsHavingViewableImpressions,v[A].uniqueReadingPercentageReads+=R.uniqueReadingPercentageReads,v[A].maleUniqueReadings+=R.maleUniqueReadings,v[A].femaleUniqueReadings+=R.femaleUniqueReadings,v[A].desktopReadings+=R.desktopReadings,v[A].mobileReadings+=R.mobileReadings,v[A].tabletReadings+=R.tabletReadings,v[A].age1617MaleUniqueReadings+=R.age1617MaleUniqueReadings,v[A].age1824MaleUniqueReadings+=R.age1824MaleUniqueReadings,v[A].age2534MaleUniqueReadings+=R.age2534MaleUniqueReadings,v[A].age3544MaleUniqueReadings+=R.age3544MaleUniqueReadings,v[A].age4554MaleUniqueReadings+=R.age4554MaleUniqueReadings,v[A].age55MaleUniqueReadings+=R.age55MaleUniqueReadings,v[A].age1617FemaleUniqueReadings+=R.age1617FemaleUniqueReadings,v[A].age1824FemaleUniqueReadings+=R.age1824FemaleUniqueReadings,v[A].age2534FemaleUniqueReadings+=R.age2534FemaleUniqueReadings,v[A].age3544FemaleUniqueReadings+=R.age3544FemaleUniqueReadings,v[A].age4554FemaleUniqueReadings+=R.age4554FemaleUniqueReadings,v[A].age55FemaleUniqueReadings+=R.age55FemaleUniqueReadings,v[A].uniqueReadingPercentage24Reads+=R.uniqueReadingPercentage24Reads,v[A].uniqueReadingPercentage2549Reads+=R.uniqueReadingPercentage2549Reads,v[A].uniqueReadingPercentage5074Reads+=R.uniqueReadingPercentage5074Reads,v[A].uniqueReadingPercentage75100Reads+=R.uniqueReadingPercentage75100Reads,R.referrers.length&&R.referrers.forEach(function(U){v[A].referrers.push(U)})})}}),l.validateData(),g.validateData(),u.validateData(),b.validateData(),I.validateData(),m.validateData(),D.validateData()},f=n.summary={referrers:[]},F=function(k,y){f.viewableImpressions=0,f.uniqueViewableImpressions=0,f.billableViewableImpressions=0,f.activeTimeSeconds=0,f.readings=0,f.uniqueReadings=0,f.uniqueReadingsHavingViewableImpressions=0,f.uniqueReadingPercentageReads=0,f.maleUniqueReadings=0,f.femaleUniqueReadings=0,f.desktopReadings=0,f.mobileReadings=0,f.tabletReadings=0,f.age1617MaleUniqueReadings=0,f.age1824MaleUniqueReadings=0,f.age2534MaleUniqueReadings=0,f.age3544MaleUniqueReadings=0,f.age4554MaleUniqueReadings=0,f.age55MaleUniqueReadings=0,f.age1617FemaleUniqueReadings=0,f.age1824FemaleUniqueReadings=0,f.age2534FemaleUniqueReadings=0,f.age3544FemaleUniqueReadings=0,f.age4554FemaleUniqueReadings=0,f.age55FemaleUniqueReadings=0,f.uniqueReadingPercentage24Reads=0,f.uniqueReadingPercentage2549Reads=0,f.uniqueReadingPercentage5074Reads=0,f.uniqueReadingPercentage75100Reads=0;var M=0,A=0,R=0,U=0,V=0,q=0,_=0,B=0,P=0,E=0,L=0,z=0,Y=0,j=0,W=0;f.start=k,f.end=y,f.referrers.length=0,$.each(v,function(O,H){var J=new Date(H.start);J<k||J>y||(f.viewableImpressions+=H.viewableImpressions,f.uniqueViewableImpressions+=H.uniqueViewableImpressions,f.billableViewableImpressions+=H.billableViewableImpressions,f.activeTimeSeconds+=H.activeTimeSeconds,f.readings+=H.readings,f.uniqueReadingPercentageReads+=H.uniqueReadingPercentageReads,f.maleUniqueReadings+=H.maleUniqueReadings,f.femaleUniqueReadings+=H.femaleUniqueReadings,f.uniqueReadings+=H.uniqueReadings,f.uniqueReadingsHavingViewableImpressions+=H.uniqueReadingsHavingViewableImpressions,f.uniqueReadingPercentage24Reads+=H.uniqueReadingPercentage24Reads,f.uniqueReadingPercentage2549Reads+=H.uniqueReadingPercentage2549Reads,f.uniqueReadingPercentage5074Reads+=H.uniqueReadingPercentage5074Reads,f.uniqueReadingPercentage75100Reads+=H.uniqueReadingPercentage75100Reads,M+=H.desktopReadings,A+=H.mobileReadings,R+=H.tabletReadings,U+=H.age1617MaleUniqueReadings,V+=H.age1824MaleUniqueReadings,q+=H.age2534MaleUniqueReadings,_+=H.age3544MaleUniqueReadings,B+=H.age4554MaleUniqueReadings,P+=H.age55MaleUniqueReadings,E+=H.age1617FemaleUniqueReadings,L+=H.age1824FemaleUniqueReadings,z+=H.age2534FemaleUniqueReadings,Y+=H.age3544FemaleUniqueReadings,j+=H.age4554FemaleUniqueReadings,W+=H.age55FemaleUniqueReadings,H.referrers.forEach(function(Z){var ee=f.referrers.filter(function(X){return X.referrer===Z.referrer});ee.length?ee[0].readings+=Z.readings:f.referrers.push({referrer:Z.referrer,readings:Z.readings,color:Z.color})}))}),f.referrers.sort(function(O,H){return H.readings-O.readings}),f.referrers.forEach(function(O){O.name=O.referrer?O.referrer.substring(0,30):O.referrer}),c.length=0,[].push.apply(c,f.referrers.slice(0,8)),c.filter(function(O){return!O.color}).forEach(function(O,H){O.color=b.colors[H]});var N=f.referrers.slice(9,-1),K={referrer:t.scope.currentScope.network.getResourceOrKeyName("web_report_others"),name:t.scope.currentScope.network.getResourceOrKeyName("web_report_others"),readings:0,color:b.colors[10]};N.forEach(function(O){K.readings+=O.readings}),K.readings>0&&c.push(K);var Q=M+A+R;f.desktopReadings=Math.round(100/(Q/M)),f.mobileReadings=Math.round(100/(Q/A)),f.tabletReadings=Math.round(100/(Q/R)),f.maleUniqueReadings=Math.round(f.maleUniqueReadings),f.femaleUniqueReadings=Math.round(f.femaleUniqueReadings),i[0].value=f.femaleUniqueReadings,i[1].value=f.maleUniqueReadings;var G=U+V+q+_+B+P+E+L+z+Y+j+W;f.age1617MaleUniqueReadings=Math.round(100/(G/U)),f.age1824MaleUniqueReadings=Math.round(100/(G/V)),f.age2534MaleUniqueReadings=Math.round(100/(G/q)),f.age3544MaleUniqueReadings=Math.round(100/(G/_)),f.age4554MaleUniqueReadings=Math.round(100/(G/B)),f.age55MaleUniqueReadings=Math.round(100/(G/P)),f.age1617FemaleUniqueReadings=Math.round(100/(G/E)),f.age1824FemaleUniqueReadings=Math.round(100/(G/L)),f.age2534FemaleUniqueReadings=Math.round(100/(G/z)),f.age3544FemaleUniqueReadings=Math.round(100/(G/Y)),f.age4554FemaleUniqueReadings=Math.round(100/(G/j)),f.age55FemaleUniqueReadings=Math.round(100/(G/W)),d[0].male=Math.round(-1*f.age1617MaleUniqueReadings),d[1].male=Math.round(-1*f.age1824MaleUniqueReadings),d[2].male=Math.round(-1*f.age2534MaleUniqueReadings),d[3].male=Math.round(-1*f.age3544MaleUniqueReadings),d[4].male=Math.round(-1*f.age4554MaleUniqueReadings),d[5].male=Math.round(-1*f.age55MaleUniqueReadings),d[0].female=Math.round(f.age1617FemaleUniqueReadings),d[1].female=Math.round(f.age1824FemaleUniqueReadings),d[2].female=Math.round(f.age2534FemaleUniqueReadings),d[3].female=Math.round(f.age3544FemaleUniqueReadings),d[4].female=Math.round(f.age4554FemaleUniqueReadings),d[5].female=Math.round(f.age55FemaleUniqueReadings),o[0].value=f.desktopReadings,o[1].value=f.mobileReadings,o[2].value=f.tabletReadings,u.validateData(),I.validateData(),m.validateData(),D.validateData(),b.validateData(),e.$$phase||e.$apply()};l=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:v,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+t.scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+t.scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+t.scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:t.scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),g=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:t.scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:v,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:t.scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:t.scope.currentScope.network.getResourceOrKeyName("web_reportArticle_uniqueReadersAmount"),percentHeight:30,stockGraphs:[{title:t.scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),u=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!1,marginLeft:2,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),(b=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:c,valueField:"readings",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[name]]: [[value]]"})).legend.addListener("clickLabel",function(k){k.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(t.scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),k.dataItem.dataContext.referrer)}),I=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:t.scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:r,balloonText:"[[value]]%"},{fillAlphas:1,title:t.scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(k){return-1*k.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(k){return k<0?-1*k+"":k+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),m=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),D=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[f],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:r,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:r,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:r,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:r,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var T=function(){var k=moment(l.startDate).startOf("day").toDate(),y=moment(l.endDate).startOf("day").add(-1,"d").toDate();F(k,y),g.zoom(k,moment(y).add(1,"d").toDate())};l.addListener("zoomed",function(){T()}),e.toggleChapter=function(k){$.each(n,function(y,M){null!==M.chapter&&M.chapter.name===k&&(M.active=!M.active)}),C(),T()},T(),C();var S=!1;setInterval(function(){"visible"!==document.visibilityState||0===v.length||S||(S=!0,s.getLatestReport(a.id).then(function(k){if(k){k[0].start=moment(k[0].start.replace("Z","")).toDate(),k[0].end=moment(k[0].end.replace("Z","")).toDate();var y={start:k[0].start,end:k[0].end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]};$.each(k,function(R,U){n[R].active&&(y.viewableImpressions+=U.viewableImpressions,y.uniqueViewableImpressions+=U.uniqueViewableImpressions,y.billableViewableImpressions+=U.billableViewableImpressions,y.activeTimeSeconds+=U.activeTimeSeconds,y.readings+=U.readings,y.uniqueReadings+=U.uniqueReadings,y.uniqueReadingsHavingViewableImpressions+=U.uniqueReadingsHavingViewableImpressions,y.uniqueReadingPercentageReads+=U.uniqueReadingPercentageReads,y.maleUniqueReadings+=U.maleUniqueReadings,y.femaleUniqueReadings+=U.femaleUniqueReadings,y.desktopReadings+=U.desktopReadings,y.mobileReadings+=U.mobileReadings,y.tabletReadings+=U.tabletReadings,y.age1617MaleUniqueReadings+=U.age1617MaleUniqueReadings,y.age1824MaleUniqueReadings+=U.age1824MaleUniqueReadings,y.age2534MaleUniqueReadings+=U.age2534MaleUniqueReadings,y.age3544MaleUniqueReadings+=U.age3544MaleUniqueReadings,y.age4554MaleUniqueReadings+=U.age4554MaleUniqueReadings,y.age55MaleUniqueReadings+=U.age55MaleUniqueReadings,y.age1617FemaleUniqueReadings+=U.age1617FemaleUniqueReadings,y.age1824FemaleUniqueReadings+=U.age1824FemaleUniqueReadings,y.age2534FemaleUniqueReadings+=U.age2534FemaleUniqueReadings,y.age3544FemaleUniqueReadings+=U.age3544FemaleUniqueReadings,y.age4554FemaleUniqueReadings+=U.age4554FemaleUniqueReadings,y.age55FemaleUniqueReadings+=U.age55FemaleUniqueReadings,y.uniqueReadingPercentage24Reads+=U.uniqueReadingPercentage24Reads,y.uniqueReadingPercentage2549Reads+=U.uniqueReadingPercentage2549Reads,y.uniqueReadingPercentage5074Reads+=U.uniqueReadingPercentage5074Reads,y.uniqueReadingPercentage75100Reads+=U.uniqueReadingPercentage75100Reads,U.referrers.length&&U.referrers.forEach(function(V){y.referrers.push(V)}))}),v[v.length-1].start-k[0].start==0?v[v.length-1]=y:v.push(y),l.validateData(),g.validateData();var M=moment(l.startDate).startOf("day").toDate(),A=moment(l.endDate).startOf("day").add(-1,"d").toDate();M<=k[0].start&&A>=k[0].start&&F(M,A),S=!1}}))},1e4)},function(){$location.path("/")})}]),app.factory("articleService",["$http","$q",function(e,t){var a={},s=function(R){if(!R.articleListDisplayableType||1!==R.articleListDisplayableType)return R;if(R.coverAssetReference||(R.coverAssetReference={assetImage:{assetImageUrl:scope.globalSettings.blobStorageCdnUrl+"/"+scope.globalSettings.blobStorageContainerNameImage+"/dummy.jpg",source:scope.currentScope.network.name,text:"Symbolbild",cache:0}}),a[R.id]){var U=a[R.id],V=function(R){return R&&a[R]?{revisionTestId:a[R].revisionTestId,heading:a[R].heading,text:a[R].text,coverAsset:angular.copy(a[R].coverAsset)}:{}}(U.id);return!U.detailsLoaded||R.detailsLoaded?angular.copy(R,U):angular.extend(U,R),angular.extend(U,V),R.assets&&R.coverAsset&&R.coverAsset.guid&&R.assets.forEach(function(q){if(q.guid===R.coverAsset.guid)return U.coverAsset=q,!1}),U}return a[R.id]=R,R};return{createArticle:function(){var R=t.defer();return e.post(scope.apiEndpoint+"articles").then(function(U){R.resolve(U.data)},function(){R.reject()}),R.promise},getArticles:function(){var R=t.defer();return e.get(scope.apiEndpoint+"articles").then(function(U){var V=U.data;V.forEach(function(q,_){V[_]=s(q)}),R.resolve(V)},function(){R.reject()}),R.promise},getTranslatedArticles:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/translate/"+R).then(function(V){U.resolve(V.data)},function(){U.reject()}),U.promise},getArticlesForEventCalendar:function(){var R=t.defer();return e.get(scope.apiEndpoint+"articles/events").then(function(U){var V=U.data;V.forEach(function(q,_){V[_]=s(q)}),R.resolve(V)},function(){R.reject()}),R.promise},getArticleIds:function(){var R=t.defer();return e.get(scope.apiEndpoint+"articles/ids").then(function(U){R.resolve(U.data)},function(){R.reject()}),R.promise},getArticlesByAuthor:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/author/"+R).then(function(V){var q=V.data;q.forEach(function(_,B){q[B]=s(_)}),U.resolve(q)},function(){U.reject()}),U.promise},getArticleDetails:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/"+R).then(function(V){V.data.detailsLoaded=!0,U.resolve(s(V.data))},function(){U.reject()}),U.promise},getTranslatedArticleDetails:function(R,U){var V=t.defer();return e.post(scope.apiEndpoint+"articles/"+R+"/translate/"+U).then(function(q){q.data.detailsLoaded=!0,V.resolve(q.data)},function(){V.reject()}),V.promise},getArticleFromCache:function(R){var U=t.defer();return a[R]?U.resolve(a[R]):U.reject(),U.promise},getArticleEdit:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/"+R+"/edit").then(function(V){U.resolve(V.data)},function(V){U.reject()}),U.promise},updateArticle:function(R){var U=t.defer();return e.put(scope.apiEndpoint+"articles",R).then(function(V){angular.copy(V.data,R),U.resolve(V)},function(){U.reject()}),U.promise},publishArticle:function(R){var U=t.defer();return e.put(scope.apiEndpoint+"articles/"+R.id+"/publish",R).then(function(V){U.resolve(V)},function(){U.reject()}),U.promise},publishArticleRequest:function(R){var U=t.defer();return e.put(scope.apiEndpoint+"articles/"+R.id+"/publishRequest").then(function(V){U.resolve(V)},function(){U.reject()}),U.promise},like:function(R){var U=t.defer();return e.put(scope.apiEndpoint+"articles/"+R+"/like").then(function(V){U.resolve(V.data)},function(){U.reject()}),U.promise},getRecommendedArticles:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/"+R+"/recommendedarticles").then(function(V){var q=V.data;q.forEach(function(_,B){q[B]=s(_)}),U.resolve(q)},function(){U.reject()}),U.promise},getSearch:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/search?searchText="+R).then(function(V){var q=V.data;q.forEach(function(_,B){q[B]=s(_)}),U.resolve(q)},function(){U.reject()}),U.promise},getExitRates:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/"+R+"/exitrates").then(function(V){U.resolve(V.data)},function(){U.reject()}),U.promise},getReport:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/"+R+"/report").then(function(V){U.resolve(V.data)},function(){U.reject()}),U.promise},getLatestReport:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/"+R+"/report/latest",{ignoreLoadingBar:!0}).then(function(V){U.resolve(V.data)},function(){U.reject()}),U.promise},deleteArticle:function(R){var U=t.defer();return e.delete(scope.apiEndpoint+"articles/"+R).then(function(V){U.resolve(V)},function(){U.reject()}),U.promise},checkNotification:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/"+R+"/checknotification").then(function(V){U.resolve(V.data)},function(V){U.reject()}),U.promise},getArticlesByIds:function(R){var U=t.defer();return e.post(scope.apiEndpoint+"articles/loadMore",R).then(function(V){var q=V.data;q.forEach(function(_,B){q[B]=s(_)}),U.resolve(q)},function(){U.reject()}),U.promise},getChapterReport:function(R,U,V,q){var _=t.defer();return e.get(scope.apiEndpoint+"articles/chapterreport?chapterId="+R+"&articleId="+U.id+"&start="+new Date(V).getTime()+"&end="+new Date(q).getTime()).then(function(B){_.resolve(B.data)},function(){_.reject()}),_.promise},getElasticReport:function(R){var U=t.defer();return e.get(scope.apiEndpoint+"articles/"+R+"/elastic").then(function(V){U.resolve(V.data)},function(){U.reject()}),U.promise},deleteScheduledPublish:function(R){var U=t.defer();return e.delete(scope.apiEndpoint+"articles/ScheduledPublish/"+R).then(function(V){U.resolve(V)},function(){U.reject()}),U.promise},getContentConnectNetworks:function(){var R=t.defer();return e.get(scope.apiEndpoint+"ccNetworks").then(function(U){R.resolve(U.data)},function(){R.reject()}),R.promise}}}]),app.component("imageInfo",{templateUrl:"/ClientApp/src/legacy-app/article/imageInfo.html",bindings:{assetImage:"<",text:"<",source:"<",showByDefault:"<"},controller:["$element","$timeout","$rootScope",function(e,t,a){var n=this;this.$onInit=function(){n.showByDefault=!1,this.assetImage&&((7===this.assetImage.imageSourceType||this.assetImage.imageProperties&&7===this.assetImage.imageProperties.imageSourceType||this.assetImage.alwaysShowImageDescription)&&(this.showByDefault=!0),n.text=this.assetImage.text,n.source=this.assetImage.source),t(function(){$(e.find(".imageInfo-view")[0]).css("height",e.find(".imageInfo-contentView")[0].offsetHeight)}),n.showinfo=function(){$(e.find(".imageInfo").toggleClass("imageInfo-collapsed"))}}}]}),app.controller("AddAssetArticleDialogController",["$rootScope","$scope","articleService","assetArticleService","ownerId","onAddSuccessful","ownerType",function(e,t,a,n,s,p,h){var r=this;t.url=null,t.assetArticle=null,t.errorMessage=null,t.articleRegex=new RegExp("^https?://"+escape(e.scope.currentScope.network.domain)+"/(.*)_(.*)"),r.searchArticles=function(i){if(!t.searchArticleForm.$invalid){var d=t.articleRegex.exec(i)[2];t.assetArticle=null,a.getArticleDetails(d).then(function(o){t.assetArticle={coverAssetImageUrl:o.coverAssetReference.assetImage.assetImageUrl,coverAssetImageCache:o.coverAssetReference.assetImage.cache,path:o.path,chapterSlugs:o.chapterSlugs,heading:o.heading,text:o.text,attachedArticleId:o.id}})}},r.close=function(){t.$dismiss()},r.reset=function(){t.assetArticle=null,t.url=null,t.searchArticleForm.$setPristine()},r.addAssetArticle=function(){n.addAssetArticle(s,t.assetArticle.attachedArticleId,h).then(function(i){p(i),t.$dismiss()})}}]),app.component("assetArticleItem",{templateUrl:"/ClientApp/src/legacy-app/asset/assetArticleItem.html",bindings:{assetArticle:"<"},controller:["$rootScope",function(e){this.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage}]}),app.service("assetArticleService",["$http","$q","$rootScope",function(e,t,a){var s=a.scope.apiEndpoint+"assetArticles";return this.addAssetArticle=function(p,h,r){var i=t.defer();return e.post(s,{ownerId:p,articleId:h,assetArticleType:r}).then(function(d){i.resolve(d.data)},function(){i.reject()}),i.promise},this}]),app.controller("AssetChildListDialog",["$rootScope","$scope","$q","$interval","$timeout","archived","parentAssetReference","assetService","reportAsset","deleteAsset",function(e,t,a,n,s,p,h,r,i,c){t.working=!1,t.error=!1,t.parentAssetReference=h,t.archived=p;var d={type:0,text:"",attachment:"",source:"",parentGuid:h.guid};t.assetText={},t.assetReferences=[],angular.copy(d,t.assetText);var o,l=function(){var b=t.parentAssetReference;t.parentAssetReference.childAssets&&t.parentAssetReference.childAssets.length&&(b=t.parentAssetReference.childAssets.sort(function(D,w){return new Date(D.created)>new Date(w.created)?-1:1})[0]);var m=a.defer();o=m.promise,r.getChildren(h.guid,b.created).then(function(D){return h.childAssets||(h.childAssets=[]),Array.prototype.push.apply(h.childAssets,D),!0},function(){return!0}).then(function(){m.resolve(),o=null})};o&&o();var u=n(function(){l()},1e4);t.$on("$destroy",function(){l(),n.cancel(u)}),t.focusInput=function(){/(android)/i.test(navigator.userAgent)&&setTimeout(function(){var b=$(".modal");b.scrollTop(b.height()+b.offset().top)},500)},t.post=function(){t.assetText.text.length<e.scope.currentScope.chapter.settings.assetTextMinLength||t.assetText.text.length>e.scope.currentScope.chapter.settings.assetTextMaxLength||(t.working=!0,r.insertChild(h.guid,t.assetText).then(function(b){angular.copy(d,t.assetText),s(function(){var I=document.createEvent("Event");I.initEvent("autosize.update",!0,!1),$(".assetChildListDialog").find("textarea")[0].dispatchEvent(I)}),l(),t.working=!1}))},t.deleteAsset=c,t.reportAsset=i,t.isAssetTextValid=function(){return e.scope.currentScope.chapter.settings.assetTextMinLength<=t.assetText.text.length},t.isAddDisable=function(){return!t.isAssetTextValid()||t.working}}]),app.component("asset",{templateUrl:"/ClientApp/src/legacy-app/asset/asset.html",bindings:{assetReference:"<",snip:"<",article:"<",sponsoredArticle:"<",staticArticle:"<",imageGalleryItemIndex:"<"},controller:["$uibModal","$rootScope","clickService","$element","$state","authService","apicodoMediaService",function(e,t,a,n,s,p,h){var r=this;r.profile=t.profile,this.assetImageFocuspointDialog=function(o){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return o}}})},r.clickAssetReference=function(){r.assetReference.oculus.click(),a.clickAssetReference(r.assetReference.oculus.guid,r.assetReference.id)},this.$onInit=function(){if(r.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,r.assetReference){var o=t.scope.currentScope.network;r.article&&(r.assetReference.oculus=Oculus.trackAssetReferenceImpression(n.find(".asset"),{ia:r.article.id,iar:r.article.revisionId,iav:r.article.variantId,c:r.article.chapterSlug,n:o.slug,ari:r.assetReference.id}),r.assetReference.oculus.persistent=s.includes("app.root")),r.sponsoredArticle&&(r.assetReference.oculus=Oculus.trackAssetReferenceImpression(n.find(".asset"),{isa:r.sponsoredArticle.id,isar:r.sponsoredArticle.revisionId,isav:r.sponsoredArticle.variantId,c:r.sponsoredArticle.chapterSlug,n:o.slug,ari:r.assetReference.id}),r.assetReference.oculus.persistent=s.includes("app.root")),r.showCookieExternalMediaInfo=!!t.scope.globalSettings.configurations.global_module_configuration.ConsentManagementModuleEnabled&&function i(){var o=0;switch(t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&(o=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),o){case 0:return function c(){const u=t.scope.currentScope.chapter.settings.obtainCookiesConsent&&!r.profile.hasCookiesConsented&&!r.profile.isRegistered,I=[5,6,7,10].some(m=>r.assetReference.assetText.type===m);return u&&I}();case 1:return function d(){const{twitter:o,youTube:l,facebook:g,vimeo:u,giphy:b}=t.scope.profile.settings.externalMediaPermissions;switch(r.assetReference.assetText.type){case 4:return!o?.granted;case 5:return!l?.granted;case 6:return!g?.granted;case 7:return!u?.granted;case 10:return!b?.granted;default:return!1}}();default:return!1}}()}}}]}),app.controller("AssetCreateCommonDialog",["$interpolate","$rootScope","$scope","assetType","createAssetAsync","resultCallback",function(e,t,a,n,s,p){a.working=!1,a.error=!1,a.web_assetDialog_description=e(t.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:t.scope.currentScope.network.name}),a.asset={type:n,text:"",attachment:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},a.createAsset=function(){a.working||!a.asset.text||a.asset.text.length<t.scope.currentScope.chapter.settings.assetTextMinLength||a.asset.text.length>t.scope.currentScope.chapter.settings.assetTextMaxLength||(a.working=!0,s(a.asset).then(function(h){p&&p(h),a.$dismiss()},function(){a.error=!0,a.working=!1}))}}]),app.controller("AssetCreateFileDialog",["$interpolate","$scope","files","createAssetAsync","resultCallback","Upload",function(e,t,a,n,s,p){t.web_assetDialog_description=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:scope.currentScope.network.name});var h={type:11,text:"",fileName:"",attachment:"",fileSource:"",guid:"",uploadError:"",source:"",sourceType:null,author:"",title:"",sourceUrl:"",mimeType:null};t.form={},t.files=a,t.workingFiles=a.length,angular.forEach(a,function(r,i){r.assetFile=angular.copy(h),r.assetFile.fileName=r.fileName,r.prefix="file"+i,r.uploadAssetProgress=0,r.uploadAsset=p.upload({url:scope.apiEndpoint+"upload",data:{file:r}}).then(function(c){r.assetFile.guid=c.data},function(c){r.uploadError="Error: "+c.data,t.$dismiss()},function(c){r.uploadAssetProgress=parseInt(100*c.loaded/c.total)}).finally(function(){r.uploadAsset=null,t.workingFiles--})}),t.copyFileData=function(){var r=a[0];angular.forEach(a,function(i,c){if(c>0){var d=i.assetFile.guid;i.assetFile=angular.copy(r.assetFile),i.assetFile.guid=d}})},t.createFiles=function(r){r&&angular.forEach(a,function(i){t.working=!0,i.assetFile.mimeType=i.type,i.assetFile.fileName=i.name,n(i.assetFile).then(function(c){s&&s(c),t.working=!1,t.$dismiss()},function(){t.error=!0,t.working=!1})})},t.cancel=function(){t.$dismiss()}}]),app.controller("AssetCreateGifDialog",["$scope","$rootScope","createAssetAsync","resultCallback","$http","$q",function(e,t,a,n,s,p){e.working=!1,e.error=!1,e.query="",e.gifHits=null,e.assetText={type:10,text:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},e.offset=0,e.limit=t.mobile?90:6,e.clear=function(){e.gifHits=null,e.offset=0},e.showMoreGifs=function(){var r,i,c,d;(r=e.query,i=e.offset,c=e.limit,d=p.defer(),s.get("https://api.giphy.com/v1/gifs/search?api_key=gF576MzYtgG2BZmhA2xRDU9DSPG6o96i&q="+encodeURIComponent(r)+"&limit="+c+"&offset="+i,{withCredentials:!1}).then(function(o){e.gifHits=null===e.gifHits?o.data.data:e.gifHits.concat(o.data.data),d.resolve(o.data)},function(){d.reject()}),d.promise).then(function(r){e.offset=e.offset+e.limit})},e.searchGifs=function(){e.clear(),e.showMoreGifs()},e.createAsset=function(r){e.working||(e.working=!0,e.assetText.text=r.images.original.url,a(e.assetText).then(function(i){n&&n(i),e.$dismiss()},function(){e.error=!0,e.working=!1}))}}]),app.controller("AssetCreateImageDialog",["$interpolate","$rootScope","$scope","files","createAssetAsync","resultCallback","Upload",function(e,t,a,n,s,p,h){a.web_assetDialog_createImage_canBeUsedElsewhere=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_canBeUsedElsewhere"))({networkName:scope.currentScope.network.name}),a.web_assetDialog_description=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:scope.currentScope.network.name}),a.defaultSourceTypes={1:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType1,sourceType:1,riskLevel:1,expirationDays:0,checkRequired:!1},2:{name:scope.currentScope.network.name,sourceType:2,riskLevel:1,expirationDays:0,checkRequired:!1},3:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType3,sourceType:3,riskLevel:1,expirationDays:0,checkRequired:!1},4:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType4,sourceType:4,riskLevel:2,expirationDays:30,checkRequired:!1},5:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType5,sourceType:5,riskLevel:1,expirationDays:0,checkRequired:!1},7:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7,sourceType:7,riskLevel:2,expirationDays:30,checkRequired:!0},8:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType8,sourceType:8,riskLevel:2,expirationDays:30,checkRequired:!1},9:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType9,sourceType:9,riskLevel:3,expirationDays:14,checkRequired:!0},12:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType12,sourceType:12,riskLevel:3,expirationDays:14,checkRequired:!0},14:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType14,sourceType:14,riskLevel:3,expirationDays:14,checkRequired:!0},15:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType15,sourceType:15,riskLevel:1,expirationDays:0,checkRequired:!1}},a.profile.isMerkuristJournalist||delete a.defaultSourceTypes[2],a.creativeCommonsLicenses={1:{name:"CC0 1.0",value:"[CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/deed.de)",validity:!0},2:{name:"BY 1.0",value:"[BY 1.0](https://creativecommons.org/licenses/by/1.0/legalcode)",validity:!0},3:{name:"BY 2.0",value:"[BY 2.0](https://creativecommons.org/licenses/by/2.0/de/legalcode)",validity:!0},4:{name:"BY 2.5",value:"[BY 2.5](https://creativecommons.org/licenses/by/2.5/legalcode)",validity:!0},5:{name:"BY 3.0",value:"[BY 3.0](https://creativecommons.org/licenses/by/3.0/de/legalcode)",validity:!0},6:{name:"BY 4.0",value:"[BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode)",validity:!0},7:{name:"BY-SA 1.0",value:"[BY-SA 1.0](https://creativecommons.org/licenses/by-sa/1.0/legalcode)",validity:!0},8:{name:"BY-SA 2.0",value:"[BY-SA 2.0](https://creativecommons.org/licenses/by-sa/2.0/de/legalcode)",validity:!0},9:{name:"BY-SA 2.5",value:"[BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/legalcode)",validity:!0},10:{name:"BY-SA 3.0",value:"[BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/de/legalcode)",validity:!0},11:{name:"BY-SA 4.0",value:"[BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/legalcode)",validity:!0},12:{name:"BY-ND",value:"",validity:!1},13:{name:"BY-NC",value:"",validity:!1},14:{name:"BY-NC-SA",value:"",validity:!1},15:{name:"BY-ND-NC",value:"",validity:!1},16:{name:"BY-NC-ND",value:"",validity:!1}};var r={type:2,text:"",attachment:"",imageSource:"",uploadGuid:"",pdfUploadGuid:"",uploadError:"",source:"",expirationDate:"",expirationDays:0,canBeUsedElsewhere:t.scope.currentScope.network.settings.simpleImageSource||!(a.profile.isJournalist||a.profile.isMerkuristJournalist),sourceType:null,author:"",title:"",dateOfPermission:"",descriptionOfPermission:"",permissionGivenBy:"",pressServiceUrl:"",sourceUrl:"",agency:"",creativeCommonsLicense:"",dateOfScreenshot:"",canBeUsedEditorial:!0,canBeUsedAdvertising:!1,imageId:"",mimeType:null,alwaysShowImageDescription:!!t.scope.currentScope.network.settings.configurations.alwaysShowImageDescriptionDefaultValue};a.form={},a.files=n,a.workingFiles=n.length,angular.forEach(n,function(c,d){c.assetImage=angular.copy(r),c.ccLicense=null,c.ccLicenseError="",c.visibleImageSource="",c.prefix="file"+d,c.overrideSource=null,t.scope.currentScope.network.settings.simpleImageSource&&(c.assetImage.sourceType=16),c.uploadAssetProgress=0,c.uploadAsset=h.upload({url:scope.apiEndpoint+"upload",data:{file:c}}).then(function(o){c.assetImage.uploadGuid=o.data},function(o){c.uploadError="Error: "+o.data,a.$dismiss()},function(o){c.uploadAssetProgress=parseInt(100*o.loaded/o.total)}).finally(function(){c.uploadAsset=null,a.workingFiles--}),c.uploadPdf=function(o){o&&(a.workingFiles++,h.upload({url:scope.apiEndpoint+"upload",data:{file:o}}).then(function(l){c.assetImage.pdfUploadGuid=l.data,c.uploadedPdfName=o.name},function(l){c.uploadPdfError="Error: "+l.data,c.uploadedPdfName=null},function(l){}).finally(function(){a.workingFiles--}))},c.removePdf=function(){c.assetImage.pdfUploadGuid=null,c.uploadPdfName=null},c.sourceTypeSelected=function(){var o=c.assetImage.sourceType,l=c.assetImage.uploadGuid,g=c.assetImage.text;c.assetImage=angular.copy(r),c.assetImage.sourceType=o,c.assetImage.uploadGuid=l,c.assetImage.text=g,o&&(a.profile.isJournalist||a.profile.isMerkuristJournalist?a.form.$setPristine():a.formNonAuthor.$setPristine(),(2===o||1===o&&(a.profile.isJournalist||a.profile.isMerkuristJournalist))&&(c.assetImage.canBeUsedAdvertising=!0),8===o&&(c.assetImage.canBeUsedEditorial=!1),(4===o||16===o||3!==o.riskLevel)&&(c.assetImage.canBeUsedElsewhere=!0),c.assetImage.expirationDays=o.expirationDays,a.copyImageData())},c.creativeCommonsLicenseSelected=function(){var o=c.ccLicense;if(a.form[c.prefix+"_selectCreativeCommonsLicense"].$setValidity("validateCreativeCommons",!1),o&&!o.validity)c.ccLicenseError=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicensePlatformError_0+" "+o.name+" "+scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicensePlatformError_1;else{if(!o)return void(c.ccLicenseError=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectLicenseError);a.form[c.prefix+"_selectCreativeCommonsLicense"].$setValidity("validateCreativeCommons",!0),c.ccLicenseError=null}c.assetImage.creativeCommonsLicense=o.name,a.copyImageData()},c.generateImageSource=function(){var o=c.assetImage.author,l=c.assetImage.author;switch(c.assetImage.sourceType){case 2:c.assetImage.author||(o=l=scope.currentScope.network.name);break;case 5:c.assetImage.pressServiceUrl&&(o+=", [source]("+c.assetImage.pressServiceUrl+")");break;case 7:c.ccLicense&&!c.ccLicense.validity?o=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicenseError:c.ccLicense&&o&&(c.assetImage.title&&(o+=", ["+c.assetImage.title+"]",l=l+", "+c.assetImage.title),c.assetImage.sourceUrl&&(o+="("+c.assetImage.sourceUrl+")"),c.assetImage.creativeCommonsLicense&&(o+=", "+c.ccLicense.value,l+=", "+c.ccLicense.name));break;case 8:c.assetImage.agency&&(o=l="\xa9 "+o+" / "+c.assetImage.agency)}c.assetImage.source=o,c.visibleImageSource=l,a.copyImageData()},c.hasExpirationChanged=function(){c.hasExpirationDays||(c.assetImage.expirationDays=0)},c.overrideSourceChanged=function(){c.overrideSource?(c.assetImage.sourceType=null,c.sourceTypeSelected(),c.generateImageSource()):a.copyImageData()}}),a.$watch("files[0].assetImage.text",function(c,d,o){for(var l=1;l<n.length;l++){var g=n[l].assetImage.text;n[l].assetImage.text=g===d?c:g}}),a.copyImageData=function(){var c=n[0];angular.forEach(n,function(d,o){if(o>0&&!d.overrideSource){var l=d.assetImage.uploadGuid;d.assetImage=angular.copy(c.assetImage),d.assetImage.uploadGuid=l,d.visibleImageSource=c.visibleImageSource}})};var i=function(c){if(c&&c.indexOf(!1)){var d=c.split(".");return d[2]+"-"+d[1]+"-"+d[0]}return c};a.createImages=function(c){c&&angular.forEach(n,function(d){a.working=!0,d.assetImage.dateOfScreenshot=i(d.assetImage.dateOfScreenshot),d.assetImage.dateOfPermission=i(d.assetImage.dateOfPermission),d.assetImage.mimeType=d.type,s(d.assetImage).then(function(o){console.log(o),p&&p(o),a.working=!1,a.$dismiss()},function(){a.error=!0,a.working=!1})})},a.cancel=function(){a.$dismiss()}}]),app.controller("AssetCreateVideoDialog",["$interpolate","$scope","createAssetAsync","resultCallback","$http","authService","vimeoService","profileService",function(e,t,a,n,s,p,h,r){t.web_assetDialog_description=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:scope.currentScope.network.name}),t.title="",t.thumbnailUrl="",t.valid=!1,t.working=!1,t.error=!1,t.displayMediaManager=!1,t.assetText={type:-1,text:"",thumbnail:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},t.externalData=null,scope.currentScope.network.settings.configurations.apicodoMediaServicesEnabled&&r.getProfile().then(function(d){(d.isJournalist||d.isMerkuristJournalist)&&(t.displayMediaManager=!0)}),t.assetTextExternalCallback=function(d){t.working=!1,t.assetText.title=d.title,t.assetText.thumbnailUrl=d.thumbnailUrl,t.externalData=d,t.assetText.type=13,t.assetText.attachment=d.attachment,t.assetText.text=d.attachment,t.valid=!0,a(t.assetText).then(function(o){n&&n(o),t.$dismiss()},function(){t.error=!0,t.working=!1})};var i=[{type:5,regEx:/(youtu\.be\/|youtube\.com\/watch\?(?:.*&)?v=)([a-z|0-9|_|-]+)/i,regExGroup:2},{type:5,regEx:/(youtu\.be\/|youtube\.com\/shorts\/)([a-z|0-9|_|-]+)(\?(.*))?/i,regExGroup:2},{type:6,regEx:/(facebook\.com\/(.*)\/videos\/)(vb\.[0-9]+\/)?([0-9]+)(.*)?/i,regExGroup:4},{type:7,regEx:/vimeo\.com\/([a-z|0-9|\/]+)/i,regExGroup:1},{type:13,regEx:/(?:media\.apicodo\.dev|media\.platform-services\.io)\/play\/([a-z|0-9|-]{36})\?guiMode\=iframe/i,regExGroup:1}];t.$watch("inputText",function(){if(t.valid=!1,t.inputText){if(t.assetText.text=t.inputText,t.showVimeoEmbed=!1,null!=t.externalData)return t.working=!1,t.assetText.title=callbackData.title,t.assetText.thumbnailUrl=callbackData.thumbnailUrl,t.externalData=callbackData,t.assetText.type=13,t.assetText.attachment=callbackData.attachment,t.assetText.text=callbackData.attachment,t.valid=!0,void(t.externalData=null);for(var d=0;d<i.length;d++)if(t.assetText.text.match(i[d].regEx)){t.assetText.type=i[d].type,t.assetText.attachment=i[d].regEx.exec(t.assetText.text)[i[d].regExGroup],t.assetText.attachment2=i[d].regEx.exec(t.assetText.text)[i[d].regExGroup-2],t.working=!0,5===t.assetText.type?s.get("https://www.googleapis.com/youtube/v3/videos?part=snippet&key=AIzaSyAk2ySSOTI2-ayM8g0gMpaanjQ6B-7NbXU&id="+t.assetText.attachment,{withCredentials:!1}).then(function(o){if(!o.data.items.length)return t.working=t.valid=!1,void(t.title=t.thumbnailUrl="");t.working=!1,t.valid=!0,t.title=o.data.items[0].snippet.title,t.thumbnailUrl=o.data.items[0].snippet.thumbnails.default.url},function(o){t.working=t.valid=!1,t.title=t.thumbnailUrl=""}):6===t.assetText.type?(t.working=!1,t.valid=!0,t.title="",t.thumbnailUrl="https://graph.facebook.com/"+t.assetText.attachment+"/picture"):7===t.assetText.type?h.getVideo(t.assetText.attachment).then(function(o){t.title=o.name,t.thumbnailUrl=o.thumbnailUrl,t.working=!1,t.valid=!0},function(){t.valid=!0,t.showVimeoEmbed=!0,t.working=!1,t.title=t.thumbnailUrl=""}):13===t.assetText.type&&(t.externalData?(t.title=t.externalData.title,t.thumbnailUrl=t.externalData.thumbnailUrl,t.valid=!0,t.working=!1,t.externalData=null):p.getApicodoMediaToken().then(function(o){s.get(o.apiBase+"/api/Thumbnail/GetWebFrontendData?fileId="+t.assetText.attachment,{withCredentials:!1,headers:{Authorization:"bearer "+o.token}}).then(function(g){if(!g.data)return t.working=t.valid=!1,t.title=t.thumbnailUrl="",t.title=t.assetText.attachment,t.thumbnailUrl=o.apiBase+"/api/Thumbnail/GetWebFrontendData?fileId="+t.assetText.attachment,void(t.valid=!0);t.working=!1,t.valid=!0,t.title=g.data.title,t.thumbnailUrl=g.data.thumbnailUrl},function(g){t.working=t.valid=!1,t.title=t.thumbnailUrl="",t.externalData&&(t.title=t.externalData.title,t.thumbnailUrl=t.externalData.thumbnailUrl,t.valid=!0),console.log(g)})}));break}t.working||(t.title=t.description=t.thumbnailUrl="")}}),t.createAsset=function(){if(!t.working&&t.valid){switch(t.working=!0,t.assetText.type){case 6:t.assetText.text=t.assetText.attachment2+"/videos/"+t.assetText.attachment;break;case 7:t.assetText.text=t.assetText.attachment+"|"+t.thumbnailUrl;break;default:t.assetText.text=t.assetText.attachment}a(t.assetText).then(function(d){n&&n(d),t.$dismiss()},function(){t.error=!0,t.working=!1})}}}]),app.controller("AssetCreateWorkflowDialog",["$scope","$rootScope","createAssetAsync","resultCallback","workflowService",function(e,t,a,n,s){e.working=!1,e.error=!1,e.query="",e.assetText={type:14,text:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},e.offset=0,e.limit=t.mobile?90:6,e.searchWorkflow=function(){e.working=!0;var p=e.workflowUrl.lastIndexOf("/"),h=e.workflowUrl.lastIndexOf("?");h<p&&(h=e.workflowUrl.length);var r=e.workflowUrl.substring(p+1,h);s.getWorkflowTemplate(r).then(function(i){e.workflow=i,e.working=!1,e.error=!1},function(){e.workflow=null,e.working=!1,e.error=!0})},e.createAsset=function(){e.working||(e.working=!0,e.assetText.text=e.workflow.workflowTemplateId,a(e.assetText).then(function(p){n&&n(p),e.$dismiss()},function(){e.error=!0,e.working=!1}))}}]),app.controller("AssetDeleteDialog",["$scope","assetReference","assetService","isSponsored","profile",function(e,t,a,n,s){e.working=!1,e.error=!1,e.myArticle={},e.isSponsored=n,e.myAsset=t.assetImage?t.assetImage.user.guid===s.guid:t.assetText?t.assetText.user.guid===s.guid:t.assetFile.user,e.myAssetReference=t.user.guid===s.guid,e.isChildAsset=null!==t.parentGuid,e.deleteAsset=function(){e.working=!0,a.remove(t).then(function(){t.deleted=new Date,e.$dismiss()},function(){e.error=!0,e.working=!1})},e.deleteAssetReference=function(){e.working=!0,a.removeReference(t).then(function(){t.deleted=new Date,e.$dismiss()},function(){e.error=!0,e.working=!1})}}]),app.controller("AssetDialog",["$rootScope","$scope","article","sponsoredArticle","staticArticle","event","assetType","resultCallback","single","$timeout","$uibModal","assetService",function(e,t,a,n,s,p,h,r,i,c,d,o){t.working=!1,t.error=!1,t.article=a,t.sponsoredArticle=n,t.staticArticle=s,t.event=p,t.assetType=h,t.entity=a||n||s||p||null,t.assetReferencesWithAssetArticle=t.entity.assetReferences.filter(function(m){return null!==m.assetArticle});var l=e.scope.currentScope.network.settings.configurations.workflowConfiguration;t.canUseWorkflows=l?e.profile.isNewsroomAdmin||6===l.MinReferenceAsAssetRole&&e.profile.isHeadSales||5===l.MinReferenceAsAssetRole&&e.profile.isSales||4===l.MinReferenceAsAssetRole&&e.profile.isHeadJournalist||3===l.MinReferenceAsAssetRole&&e.profile.isMerkuristJournalist||2===l.MinReferenceAsAssetRole&&e.profile.isJournalist:e.profile.isNewsroomAdmin;var u=function(m){t.entity.assetReferences.unshift(m),c(function(){var w=$("#asset-list-assetReference-"+m.guid).parent();$(w).animate({scrollLeft:0},1e3)},500)};t.assetCreateImageDialog=function(m,D,w){m&&0!==m.length?D.length||d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return m},resultCallback:function(){return u},createAssetAsync:function(){return a?function(v){return o.insertAssetImageToArticle(v,a.id)}:n?function(v){return o.insertAssetImageToSponsoredArticle(v,n.id)}:s?function(v){return o.insertAssetImageToStaticArticle(v,s.id)}:p?function(v){return o.insertAssetImageToEvent(v,p.id)}:void 0}}}):D||w.$setPristine()},t.assetCreateFileDialog=function(m,D,w){m&&0!==m.length?d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFileDialog.html",controller:"AssetCreateFileDialog",size:"lg",resolve:{files:function(){return m},resultCallback:function(){return u},createAssetAsync:function(){return a?function(v){return o.insertAssetFileToArticle(v,a.id)}:n?function(v){return o.insertAssetFileToSponsoredArticle(v,n.id)}:s?function(v){return o.insertAssetFileToStaticArticle(v,s.id)}:p?function(v){return o.insertAssetFileToEvent(v,p.id)}:void 0}}}):D||w.$setPristine()},t.assetCreateVideoDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return u},createAssetAsync:function(){return a?function(m){return o.insertAssetTextToArticle(m,a.id)}:n?function(m){return o.insertAssetTextToSponsoredArticle(m,n.id)}:s?function(m){return o.insertAssetTextToStaticArticle(m,s.id)}:p?function(m){return o.insertAssetTextToEvent(m,p.id)}:void 0}}})},t.assetCreateWorkflowDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateWorkflowDialog.html",controller:"AssetCreateWorkflowDialog",size:"lg",resolve:{resultCallback:function(){return u},createAssetAsync:function(){return a?function(m){return o.insertAssetTextToArticle(m,a.id)}:n?function(m){return o.insertAssetTextToSponsoredArticle(m,n.id)}:s?function(m){return o.insertAssetTextToStaticArticle(m,s.id)}:p?function(m){return o.insertAssetTextToEvent(m,p.id)}:void 0}}})},t.assetCreateGifDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return u},createAssetAsync:function(){return a?function(m){return o.insertAssetTextToArticle(m,a.id)}:n?function(m){return o.insertAssetTextToSponsoredArticle(m,n.id)}:s?function(m){return o.insertAssetTextToStaticArticle(m,s.id)}:p?function(m){return o.insertAssetTextToEvent(m,p.id)}:void 0}}})},t.assetPixabaySearchDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/pixabay/pixabaySearchDialog.html",controller:"pixabaySearchDialog",size:"lg",resolve:{resultCallback:function(){return u},assetContainer:{articleId:a?a.id:null,sponsoredArticleId:n?n.id:null,staticArticleId:s?s.id:null,eventId:p?p.id:null},createAssetAsync:function(){return a?function(m){return o.insertAssetTextToArticle(m,a.id)}:n?function(m){return o.insertAssetTextToSponsoredArticle(m,n.id)}:s?function(m){return o.insertAssetTextToStaticArticle(m,s.id)}:p?function(m){return o.insertAssetTextToEvent(m,p.id)}:void 0}}})},t.assetCreateFactDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return u},createAssetAsync:function(){return a?function(m){return o.insertAssetTextToArticle(m,a.id)}:n?function(m){return o.insertAssetTextToSponsoredArticle(m,n.id)}:s?function(m){return o.insertAssetTextToStaticArticle(m,s.id)}:p?function(m){return o.insertAssetTextToEvent(m,p.id)}:void 0}}})},t.assetCreateQuestionDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return u},createAssetAsync:function(){return a?function(m){return o.insertAssetTextToArticle(m,a.id)}:n?function(m){return o.insertAssetTextToSponsoredArticle(m,n.id)}:s?function(m){return o.insertAssetTextToStaticArticle(m,s.id)}:p?function(m){return o.insertAssetTextToEvent(m,p.id)}:void 0}}})},t.assetSearchDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return u},snipId:function(){return t.snip?t.snip.id:null},articleId:function(){return t.article?t.article.id:null},sponsoredArticleId:function(){return t.sponsoredArticle?t.sponsoredArticle.id:null},staticArticleId:function(){return t.staticArticle?t.staticArticle.id:null},eventId:function(){return t.event?t.event.id:null},assetReferences:function(){return t.entity.assetReferences}}})};var b=function(m){t.entity.assetReferences.push(m),t.assetReferencesWithAssetArticle.push(m)};t.showAddArticleDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/addAssetArticleDialog.html",controller:"AddAssetArticleDialogController",controllerAs:"$ctrl",size:"lg",resolve:{ownerId:function(){return t.entity.id},ownerType:function(){return t.article?"article":t.sponsoredArticle?"sponsoredArticle":t.staticArticle?"staticArticle":null},onAddSuccessful:function(){return b}}})},t.$watchCollection("entity.assetReferences",function(m){if(t.assetsMedia=[],t.assetsFacts=[],t.assetsQuestions=[],t.assetsComments=[],t.assetsImages=[],t.assetsFiles=[],t.assetsWorkflows=[],m&&angular.isDefined(m)){var D=[];m.forEach(function(w){w.deleted||(w.childAssets=[],w.parentGuid||D.push(w))}),D.forEach(function(w){m.forEach(function(v){v.parentGuid&&w.guid===v.parentGuid&&w.childAssets.push(v)}),null!==w.assetFile&&t.assetsFiles.push(w),null!==w.assetImage||null!==w.assetText&&(5===w.assetText.type||6===w.assetText.type||7===w.assetText.type||10===w.assetText.type||13===w.assetText.type)?(t.assetsMedia.push(w),null!==w.assetImage&&t.assetsImages.push(w)):null!==w.assetText&&(8===w.assetText.type?t.assetsFacts.push(w):9===w.assetText.type?t.assetsQuestions.push(w):0===w.assetText.type?t.assetsComments.push(w):14===w.assetText.type&&t.assetsWorkflows.push(w))})}});var I=new Map;t.toggleAssetAdded=function(m,D){i?(r(m),t.$dismiss()):D?I.set(m.guid,m):I.delete(m.guid)},t.cancel=function(){i||r(Array.from(I.values())),t.$dismiss()},t.articleAssetToggle={},t.toggleAssetArticleAdded=function(m){i?(r(m),t.$dismiss()):(t.articleAssetToggle[m.guid]=!t.articleAssetToggle[m.guid],t.articleAssetToggle[m.guid]?I.set(m.guid,m):I.delete(m.guid))}}]).value("article",null).value("sponsoredArticle",null).value("staticArticle",null).value("event",null),app.controller("AssetEditDialog",["$scope","assetReference","assetService","$rootScope",function(e,t,a,n){e.working=!1,e.error=!1,e.assetReference=t,e.updateImageText=function(){e.working=!0,a.updateImageText(t).then(function(){e.$dismiss(),n.$broadcast("$$rebind::refresh")},function(){e.error=!0,e.working=!1})}}]),app.controller("AssetImageFocuspointDialog",["$scope","assetReference","assetService","$timeout","$rootScope",function(e,t,a,n,s){e.working=!1,e.error=!1,e.assetReference=t;var p,h,r,i=function(c){if(c){var d=h.width(),o=h.height();p.x1=Math.round(p.width/d*c.x),p.x2=Math.round(p.width/d*c.x2),p.y1=Math.round(p.height/o*c.y),p.y2=Math.round(p.height/o*c.y2)}else p.x1=p.x2=p.y1=p.y2=null};e.imageLoad=function(){a.getAssetImageProcessing(t.assetImage.guid).then(function(c){p=c,(h=$(".assetImageFocuspointDialog-asset")).Jcrop({onSelect:i,onRelease:i},function(){r=this});var d=h.width(),o=h.height();null!==p.x1&&null!==p.x2&&null!==p.y1&&null!==p.y2&&r.animateTo([Math.round(d/p.width*p.x1),Math.round(o/p.height*p.y1),Math.round(d/p.width*p.x2),Math.round(o/p.height*p.y2)])},function(){e.error=!0})},e.save=function(){a.updateAssetImageProcessingFocuspoint(t.assetImage.guid,p).then(function(){t.assetImage.cache++,n(function(){s.$emit("lazyImg:refresh")}),e.$dismiss()},function(){e.error=!0})}}]),app.component("assetList",{templateUrl:"/ClientApp/src/legacy-app/asset/assetList.html",bindings:{sponsored:"<?",archived:"<?",assetImages:"<",assetFiles:"<",assetTexts:"<",assetReferences:"=",assetLimitStart:"<",loanCallback:"&"},controller:["$uibModal","$rootScope",function(e,t){var a=this;a.mobile=t.mobile,a.profile=t.profile,a.order=t.scope.currentScope.chapter.settings.assetOrderByPublished?"-created":"-likes",a.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,a.cookieManager=0,t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&(a.cookieManager=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),a.isBuiltInCookieManager=1===a.cookieManager,console.log("img",a.cookieManager,a.isBuiltInCookieManager),this.$onInit=function(){a.assetLimitStart=a.assetLimitStart||12,a.assetLimit=a.assetLimitStart,a.loanCallback&&(a.loanCallback=a.loanCallback())},a.assetToggle={},a.toggleAssetAdded=function(n){a.assetToggle[n.guid]=!a.assetToggle[n.guid],a.loanCallback(n,a.assetToggle[n.guid]),null!=n.assetImage&&((new Image).src=n.assetImage.assetImageUrl+"?preset=asset-embed{{ ::($ctrl.enableHighQualityImage ? '-hq' : '') }}&cache=0",(new Image).src=n.assetImage.assetImageUrl+"?preset=asset-image-large&cache=0")},a.getAssets=function(){var n=a.assetReferences||[];return a.assetFiles&&(a.assetFiles.forEach(function(s){s.assetFile=s,s.fake=!0}),n=n.concat(a.assetFiles)),a.assetImages&&(a.assetImages.forEach(function(s){s.assetImage=s,s.fake=!0}),n=n.concat(a.assetImages)),a.assetTexts&&(a.assetTexts.forEach(function(s){s.assetText=s,s.fake=!0}),n=n.concat(a.assetTexts)),n},a.deleteAsset=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDeleteDialog.html",controller:"AssetDeleteDialog",size:"lg",resolve:{assetReference:function(){return n},isSponsored:function(){return a.sponsored},profile:function(){return a.profile}}})},a.openApicodoVideo=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaPlayDialog.html",controller:"apicodoMediaPlayDialog",size:"lg",resolve:{videoId:function(){return n.assetText.text}}})},a.reportAsset=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetReportDialog.html",controller:"AssetReportDialog",size:"lg",resolve:{assetReference:function(){return n}}})},a.listChildAssets=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetChildListDialog.html",controller:"AssetChildListDialog",size:"lg",resolve:{parentAssetReference:function(){return n},archived:function(){return a.archived},reportAsset:function(){return a.reportAsset},deleteAsset:function(){return a.deleteAsset}}})},a.calcLimit=function(n){a.assetLimit=a.assetReferences.length-n.length>a.assetLimitStart?n.length+a.assetLimitStart:a.assetReferences.length},a.assetImageFocuspointDialog=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return n}}})},a.assetEditDialog=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetEditDialog.html",controller:"AssetEditDialog",size:"lg",resolve:{assetReference:function(){return n}}})},a.toggleMenu=function(n){n.menuVisible=!!angular.isUndefined(n.menuVisible)||!n.menuVisible},a.showCookieInfo=function(n){if(!a.isBuiltInCookieManager)return!1;const{twitter:s,youTube:p,facebook:h,vimeo:r,giphy:i}=t.scope.profile.settings.externalMediaPermissions;switch(n.assetText.type){case 4:return!s?.granted;case 5:return!p?.granted;case 6:return!h?.granted;case 7:return!r?.granted;case 10:return!i?.granted;default:return!1}}}]}),app.component("assetListWorkflowItem",{templateUrl:"/ClientApp/src/legacy-app/asset/assetListWorkflowItem.html",bindings:{workflowId:"<"},controller:["workflowService",function(e){var t=this;this.$onInit=function(){e.getWorkflowTemplate(t.workflowId).then(function(a){t.workflow=a})}}]}),app.directive("assetpreview",[function(){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/asset/assetpreview.html",replace:!0,scope:{article:"=article"},link:function(e,t,a){e.$watch(a.article,function(){e.assetReference=$.grep(e.article.assetReferences,function(n){return n.guid===a.assetGuid})[0]})}}}]),app.controller("AssetReportDialog",["$scope","assetReference","assetService",function(e,t,a){e.working=!1,e.error=!1,e.type=-1,e.reportAsset=function(){e.working=!0,a.report(t,e.type).then(function(){e.working=!1,e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})}}]),app.controller("AssetSearchDialog",["$scope","$state","snipId","articleId","sponsoredArticleId","staticArticleId","eventId","assetReferences","resultCallback","assetService","searchService","profileService",function(e,t,a,n,s,p,h,r,i,c,d,o){e.valid=!1,e.thumbnailUrl="",e.activePage=1,e.searchPage=0,e.assetReferences=[],e.selectedAssetReferences=[],e.isSponsoredArticle=!!s,o.getProfile().then(function(v){guid=v.guid}),this.query=function l(){return t.includes("app.search")?$location.getArticles().q:""}(),e.clear=function(){this.query="",hits=null};var u=function(v){var C=!1;return angular.forEach(r,function(f){(null!==f.assetImage&&f.assetImage.guid===v||null!==f.assetText&&f.assetText.guid===v||null!==f.assetFile&&f.assetFile.guid===v)&&(C=!0)}),C};function m(v){e.showAssetImages=!1,e.showAssetFiles=!1,e.showArticles=!1,e.show=!0,angular.forEach(v,function(C){C&&(C.disabled=u(C.guid),e.assetImageHits=e.assetImageHits.concat(C))})}function w(v){e.showAssetImages=!1,e.showAssetFiles=!1,e.showArticles=!1,e.show=!0,angular.forEach(v,function(C){C&&(C.disabled=u(C.guid),e.assetFileHits.push(C))})}e.showMoreArticles=function(){e.searchPage++,e.isSponsoredArticle?d.getAssetSponsoredArticles(this.query,e.searchPage=e.searchPage).then(function(v){e.show=!1,e.showArticles=!0,angular.forEach(v,function(C){C.assetReferences.length&&(e.articleHits=e.articleHits.concat(C))})}):d.getAssetArticles(this.query,e.searchPage=e.searchPage).then(function(v){e.show=!1,e.showArticles=!0,e.totalArticles=v.total,angular.forEach(v.articles,function(C){C.assetReferences.length&&(e.articleHits=e.articleHits.concat(C))})})},e.showMoreAssetImages=function(){e.searchPage++,e.isSponsoredArticle?d.getSponsoredAssetImages(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(v){e.show=!1,e.showAssetImages=!0,angular.forEach(v,function(C){C&&(C.disabled=u(C.guid),e.assetImageHits=e.assetImageHits.concat(C))})}):d.getAssetImages(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(v){e.show=!1,e.showAssetImages=!0,angular.forEach(v,function(C){C&&(C.disabled=u(C.guid),e.assetImageHits=e.assetImageHits.concat(C))})})},e.showMoreAssetFiles=function(){e.searchPage++,e.isSponsoredArticle?d.getSponsoredAssetFiles(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(v){e.show=!1,e.showAssetFiles=!0,angular.forEach(v,function(C){C&&(C.disabled=u(C.guid),e.assetFileHits=e.assetFileHits.concat(C))})}):d.getAssetFiles(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(v){e.show=!1,e.showAssetFiles=!0,angular.forEach(v,function(C){C&&(C.disabled=u(C.guid),e.assetFileHits=e.assetFileHits.concat(C))})})},e.goBack=function(){e.activePage=1,e.show=!0,e.showAssetImages=!1,e.showAssetFiles=!1,e.showArticles=!1,!this.mobile&&e.assetImageHits&&e.assetImageHits.length>6&&(e.assetImageHits.splice(6),e.searchPage=0)},e.clickArticle=function(v){e.selectedArticle=v,angular.forEach(v.assetReferences,function(C){null!==C.assetImage?C.assetImage.isAdded=u(C.assetImage.guid):null!==C.assetText&&(C.assetText.isAdded=u(C.assetText.guid))}),e.assetReferences=v.assetReferences,e.activePage=2},e.addAssetImage=function(v){v&&(e.createAssetReference({assetImageGuid:v.guid}),v.disabled=!0)},e.addAssetFile=function(v){v&&(e.createAssetReference({assetFileGuid:v.guid}),v.disabled=!0)},e.addAssetText=function(v){v&&(e.createAssetReference({assetTextGuid:v.guid}),v.isAdded=!0)},e.search=function(){(function b(){t.includes("app.search")?$location.getArticles("q",e.query):(e.articleHits=[],""===e.query?e.articleHits=null:e.isSponsoredArticle?d.getAssetSponsoredArticles(e.query,e.searchPage=0).then(function(v){e.show=!0,angular.forEach(v,function(C){C.assetReferences.length&&(e.articleHits=e.articleHits.concat(C))})}):d.getAssetArticles(e.query,e.searchPage=0).then(function(v){e.show=!0,e.totalArticles=v.total,angular.forEach(v.articles,function(C){C.assetReferences.length&&(e.articleHits=e.articleHits.concat(C))})}))})(),function I(){t.includes("app.search")?$location.getArticles("q",e.query):(e.assetImageHits=[],""===e.query?e.assetImageHits=null:e.isSponsoredArticle?d.getSponsoredAssetImages(e.query,e.searchPage=0,e.mobile?90:6).then(m):d.getAssetImages(e.query,e.searchPage=0,e.mobile?90:6).then(m))}(),function D(){t.includes("app.search")?$location.getArticles("q",e.query):(e.assetFileHits=[],""===e.query?e.assetFileHits=null:e.isSponsoredArticle?d.getSponsoredAssetFiles(e.query,e.searchPage=0,e.mobile?90:6).then(w):d.getAssetFiles(e.query,e.searchPage=0,e.mobile?90:6).then(w))}()},e.createAssetReferences=function(){e.working||e.selectedAssetReferences===[]||angular.forEach(e.selectedAssetReferences,function(v){null!==v.assetImage?e.createAssetReference({assetImageId:v.assetImage.id}):null!==v.assetText&&e.createAssetReference({assetImageId:null})})},e.createAssetReference=function(v){e.working=!0,v.snipId=a,v.articleId=n,v.sponsoredArticleId=s,v.staticArticleId=p,v.eventId=h,c.insertReference(v).then(function(C){i&&i(C),e.working=!1},function(){e.error=!0,e.working=!1})}}]).value("articleId",null).value("snipId",null).value("sponsoredArticleId",null).value("staticArticleId",null).value("eventId",null),app.factory("assetService",["$http","$q",function(e,t){return{getChildren:function(S,k){var y=t.defer();return e.get(scope.apiEndpoint+"assets/"+S+"/children"+(k?"?start="+k:"")).then(function(M){y.resolve(M.data)},function(M){y.reject()}),y.promise},getAssetImageProcessing:function(S){var k=t.defer();return e.get(scope.apiEndpoint+"assets/"+S+"/imageprocessing").then(function(y){k.resolve(y.data)},function(){k.reject()}),k.promise},insertAssetImageToArticle:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/image/article/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetImageToSnip:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/image/snip/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetImageToSponsoredArticle:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/image/sponsoredArticle/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetImageToStaticArticle:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/image/staticArticle/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetImageToEvent:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/image/event/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetTextToArticle:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/text/article/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetTextToSnip:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/text/snip/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetTextToSponsoredArticle:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/text/sponsoredArticle/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetTextToStaticArticle:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/text/staticArticle/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetTextToEvent:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/text/event/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetFileToArticle:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/file/article/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetFileToStaticArticle:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/file/staticArticle/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetFileToSponsoredArticle:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/file/sponsoredArticle/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertAssetFileToEvent:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/file/event/"+k,S).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertChild:function(S,k){var y=t.defer();return e.post(scope.apiEndpoint+"assets/"+S+"/children",k).then(function(M){var A=M.data;A.myAsset=!0,new Date(A.created)>new Date&&(A.created=(new Date).toISOString()),y.resolve(M.data)},function(){y.reject()}),y.promise},insertReference:function(S){var k=t.defer();return e.post(scope.apiEndpoint+"assets/reference",S).then(function(y){var M=y.data;M.myAsset=!0,new Date(M.created)>new Date&&(M.created=(new Date).toISOString()),k.resolve(y.data)},function(){k.reject()}),k.promise},report:function(S,k){var y=t.defer();return e.put(scope.apiEndpoint+"assets/"+S.guid+"/report/"+k).then(function(M){y.resolve(M.data)},function(){y.reject()}),y.promise},like:function(S){var k=t.defer();return e.put(scope.apiEndpoint+"assets/"+S+"/like",{ignoreLoadingBar:!0}).then(function(y){k.resolve(y.data)},function(){k.reject()}),k.promise},updateAssetImageProcessingFocuspoint:function(S,k){var y=t.defer();return e.put(scope.apiEndpoint+"assets/"+S+"/imageprocessing/focuspoint",k).then(function(M){y.resolve()},function(){y.reject()}),y.promise},updateImageText:function(S){var k=t.defer();return e.put(scope.apiEndpoint+"assets/image/"+S.assetImage.guid,S.assetImage).then(function(y){k.resolve(y.data)},function(){k.reject()}),k.promise},remove:function(S){var k=t.defer();return e.delete(scope.apiEndpoint+"assets/"+S.guid).then(function(y){k.resolve(y.data)},function(){k.reject()}),k.promise},removeReference:function(S){var k=t.defer();return e.delete(scope.apiEndpoint+"assets/reference/"+S.guid).then(function(y){k.resolve(y.data)},function(){k.reject()}),k.promise}}}]),app.component("assetUserBadge",{templateUrl:"/ClientApp/src/legacy-app/asset/assetUserBadge.html",bindings:{assetText:"<?",assetImage:"<?",assetFile:"<?"},controller:["$state","$scope",function(e,t){this.isEditorState=e.includes("app.articleEdit")||e.includes("app.staticArticleEditAdmin")||e.includes("app.sponsoredArticleEdit")}]}),app.component("pixabaySearch",{templateUrl:"/ClientApp/src/legacy-app/asset/pixabay/pixabaySearchComponent.html",bindings:{callback:"<",callerdata:"<",dismiss:"<"},controller:["$scope","$element","$stateParams","$location","$rootScope","profileService","pixabayService","authService",function(e,t,a,n,s,p,h,r){var i=this;i.imageData=null,i.searchTerm="",i.data={},i.delay=2e3,i.pageSize=12,i.totalPages=1,i.currentPage=1,i.visiblePopup=!1,i.alwaysShowImageDescription=s.scope.currentScope.network.settings.configurations.alwaysShowImageDescriptionDefaultValue,DevExpress.localization.locale(s.scope.currentScope.network.settings.languageCode),i.timerId=null,i.searchBox={valueChangeEvent:"keyup",placeholder:s.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_search_placeholder"),onValueChanged:function(d){i.timerId&&clearTimeout(i.timerId),i.timerId=setTimeout(function(){i.searchTerm!=d.value&&(i.currentPage=1),i.searchTerm=d.value,i.search(i.searchTerm)},i.delay)}},i.search=function(d){h.search(d,i.currentPage,i.pageSize).then(function(o){i.data=o,i.totalPages=o.total/i.pageSize,i.data=JSON.parse(JSON.stringify(o));var l=Math.ceil(i.pageSize/4);o.hits.length<i.pageSize&&(l=Math.ceil(o.hits.length/4)),i.chunks=spliceIntoChunks(o.hits,l),i.totalPages=Math.ceil(i.totalPages)})},i.search(i.searchTerm),i.selectImage=function(d){i.imageData?(i.imageData=null,i.visiblePopup=!1):(i.imageData=d,i.visiblePopup=!0)},i.submitAndClose=function(){i.submitRequest(),i.dismiss&&i.dismiss()},i.goNext=function(){i.currentPage<i.totalPages&&(i.currentPage++,i.search(i.searchTerm))},i.goPrev=function(){1!=i.currentPage&&(i.currentPage--,i.search(i.searchTerm))},i.submitRequest=function(){i.visiblePopup=!1;var d=1280,o={articleId:i.callerdata.articleId,blobId:new DevExpress.data.Guid,staticArticleId:i.callerdata.staticArticleId,snipId:i.callerdata.snipId,sponsoredArticleId:i.callerdata.sponsoredArticleId,networkId:0,chapterId:0,eventId:i.callerdata.eventId,author:i.imageData.user,source:i.imageData.pageURL,sourceUrl:i.imageData.largeImageURL,text:i.imageData.tags,title:i.imageData.tags,width:i.imageData.imageWidth>i.imageData.imageHeight?d:Math.ceil(d/i.imageData.imageHeight*i.imageData.imageWidth),height:i.imageData.imageHeight>i.imageData.imageWidth?d:Math.ceil(d/i.imageData.imageWidth*i.imageData.imageHeight),alwaysShowImageDescription:!!i.alwaysShowImageDescription};h.create(o).then(function(l){DevExpress.ui.notify({message:i.imageData.tags,position:{my:"center top",at:"center top"}},"success",3e3),i.callback&&(l.assetImage.assetImageUrl=i.imageData.largeImageURL,i.callback(l),i.visiblePopup=!1,i.imageData=null)},function(){i.error=!0,i.working=!1})},e.popupOptions={width:"100%",height:"95vh",container:".modal-content",contentTemplate:"info",showTitle:!1,title:"Information",dragEnabled:!1,closeOnOutsideClick:!0,showCloseButton:!1,position:{at:"center",my:"center"},bindingOptions:{visible:"$ctrl.visiblePopup","position.of":"positionOf"},toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"before",options:{icon:"add",text:"",onClick:function(){i.submitRequest()}}},{widget:"dxButton",toolbar:"bottom",location:"before",options:{icon:"fa fa-check",text:"",onClick:function(){i.submitAndClose()}}},{widget:"dxButton",toolbar:"bottom",location:"after",options:{icon:"back",text:"",onClick:function(){i.visiblePopup=!1,i.imageData=null}}}]},i.tagEditorOptions={bindingOptions:{value:"$ctrl.imageData.tags"}}}]}),app.controller("pixabaySearchDialog",["$scope","assetContainer","resultCallback",function(e,t,a){e.working=!1,e.error=!1,e.assetContainer=t,e.resultCallback=a,e.dismiss=e.$dismiss()}]),app.factory("pixabayService",["$rootScope","$http","$q","authService",function(e,t,a,n){return{search:function(i,c,d){c||(c=1),d||(d=20);var o=a.defer();return t.post(scope.apiEndpoint+"pixabay/search",{query:i,language:2,page:c,perPage:d}).then(function(l){o.resolve(l.data)},function(){o.reject()}),o.promise},defaultModel:{articleId:0,blobId:new DevExpress.data.Guid,staticArticleId:0,snipId:0,networkId:0,eventId:new DevExpress.data.Guid,author:"",source:"",sourceUrl:"",text:"",title:""},create:function(i){var c=a.defer();return t.post(scope.apiEndpoint+"pixabay/create",i).then(function(d){c.resolve(d.data)},function(){c.reject()}),c.promise}}}]),app.factory("vimeoService",["$http","$q",function(e,t){return{getVideo:function(n){var s=t.defer();return e.get(scope.apiEndpoint+"vimeo/"+n).then(function(p){s.resolve(p.data)},function(p){s.reject()}),s.promise}}}]),app.controller("AllowPartnerAccessDialog",["$interpolate","$scope","$rootScope","$timeout","profileService","authenticationCallback","formatterService",function(e,t,a,n,s,p,h){t.allowData={hasPartnerAccessAllowed:!1,hasAgb:!1},s.getProfile().then(function(){s.getPartnerAccessAllowData().then(function(r){t.formData={originRegisteredDomain:r.originRegisteredDomain,originRegisteredChapter:r.originRegisteredChapter,originRegisteredPartner:r.originRegisteredPartner,originRegisterdDate:moment(r.registered).format(h.getShortDateFormatString())},t.web_partnerAccessDialog_description=e(scope.currentScope.network.resources.web_partnerAccessDialog_description)({originRegisteredDomain:r.originRegisteredDomain,originRegisteredChapter:r.originRegisteredChapter,originRegisterdDate:moment(r.registered).format(h.getShortDateFormatString())}),t.web_partnerAccessDialog_accessCheckboxDescription_0=e(scope.currentScope.network.resources.web_partnerAccessDialog_accessCheckboxDescription_0)({originRegisteredPartner:r.originRegisteredPartner,partnerCompanyName:scope.currentScope.chapter.partner.companyName}),t.allowPartnerAccess=function(){t.allowData.hasPartnerAccessAllowed&&t.allowData.hasAgb&&s.updatePartnerAccessAllow().then(function(){t.$close(),s.getProfile(!0),p()})}})})}]),app.controller("AuthenticationDialog",["$scope","$rootScope","$location","instagramService","$timeout","authService","profileService","authenticationCallback","facebookSignUpData","login",function(e,t,a,n,s,p,h,r,i,c){e.dialogState={none:0,facebookSignUp:1,login:2},e.changeState=function(d){e.state=d,d===e.dialogState.login&&s(function(){$(".modal").find("input[name='email']").focus()})},e.hasHowto=t.scope.staticArticles.filter(function(d){return"/howto"===d.path}).length>0,e.changeState(i?1:c?2:0),e.signUpData=i||{},e.loginData={userName:"",password:""},e.facebookLogin=function(){p.facebookLogin(t.app).then(function(d){d.token?(angular.extend(e.signUpData,d),e.state=e.dialogState.facebookSignUp):(e.$dismiss(),r())})},e.playVideoTracked=!1,e.playVideo=function(){e.playVideoTracked||window._paq&&(_paq.push(["trackEvent","Conversion","PlayVideo","AuthenticationRequiredDialog"]),e.playVideoTracked=!0)},e.facebookRegister=function(d){d&&p.externalRegister(e.signUpData).then(function(){h.fetchExternalAvatar({providerName:"Facebook"}).then(function(){e.$dismiss(),r()})},function(o){e.error=o.data||scope.currentScope.network.getResourceOrKeyName("web_common_errorOccurred")})},e.instagramLogin=function(){n.getGrant(t.app)},e.showInstagram=n.isAvailable(),e.login=function(d){d&&p.login(e.loginData).then(function(){e.$dismiss(),r()},function(o){e.loginError=o.data})}}]),app.controller("AuthenticationSettingsController",["$scope","$rootScope","$location","$state","$timeout","$uibModal","authService","profileService","instagramService",function(e,t,a,n,s,p,h,r,i){r.getProfile().then(function(o){o.isRegistered||a.path("/").replace()},function(o){a.path("/").replace()}),e.emailValidationState=0,e.emailValidationStates={none:0,inProgress:1,failure:2,success:3},r.getProfile().then(function(o){o.isRegistered&&a.search().token&&(e.emailValidationState=e.emailValidationStates.inProgress,h.validateEmail(a.search().token).then(function(){s(function(){e.emailValidationState=e.emailValidationStates.success},2e3)},function(){s(function(){e.emailValidationState=e.emailValidationStates.failure},2e3)}))});var c={password:"",newPassword:"",confirmPassword:""},d=function(o){e.changePasswordData=angular.copy(c),e.changePasswordMessage=scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_changePasswordSuccess"),o.$setUntouched(),o.$setPristine()};e.compileErros=function(o){if(o.modelState){var l=[];for(var g in o.modelState)if(o.modelState.hasOwnProperty(g))for(var u=0;u<o.modelState[g].length;u++){var b=o.modelState[g][u];-1===l.indexOf(b)&&l.push(b)}return l.join(" ")}return o},e.cleanChangesMessages=function(){e.changePasswordMessage=null,e.changePasswordError=null},e.changePasswordData=angular.copy(c),e.changePassword=function(o){o.$invalid||(e.cleanChangesMessages(),e.changePasswordData.password?h.changePassword(e.changePasswordData).then(function(){d(o)},function(l){e.changePasswordError=e.compileErros(l.data)}):h.setPassword(e.changePasswordData).then(function(){d(o)},function(l){e.changePasswordError=e.compileErros(l.data)}))},e.facebookLogin=function(){e.linkFacebookError=null,h.facebookLogin(t.app).then(function(o){},function(o){e.linkFacebookError=e.compileErros(o.data)})},e.instagramLogin=function(){i.getGrant()},e.showInstagram=i.isAvailable(),e.deleteAccount=function(){h.deleteAccount().then(function(){Oculus.push(!1,function(){h.logout().then(function(){Oculus.navigate(""),a.path(scope.currentChapter.path+"/login")})})})}}]),app.factory("authService",["$rootScope","$window","$location","$http","$q","$timeout",function(e,t,a,n,s,p){var h={externalAuthData:{}},r=null,i=function(){if(null===r){var k=s.defer();n.get(scope.apiEndpoint+"account/noop").then(function(y){k.resolve(y)},function(y){k.reject(y)}).finally(function(){r=null}),r=k.promise}return r};i();var g=function(){var k=s.defer();return i().then(function(){n.get(scope.apiEndpoint+"account/logout").then(function(y){e.$emit("authenticationStateChanged"),k.resolve(y)},function(y){k.reject(y)})}).catch(function(y){k.reject(y)}),k.promise},x=function(){var k=s.defer();return n.get(scope.apiEndpoint+"media/token").then(function(y){k.resolve(y.data)},function(){k.reject()}),k.promise},S={url:scope.globalSettings.configurations.apicodoMediaBaseUrl};return x(),h.noop=i,h.register=function(k){var y=s.defer();return i().then(function(){n.post(scope.apiEndpoint+"account/register",k).then(function(M){p(function(){y.resolve(M)})},function(M){y.reject(M)})}).catch(function(M){y.reject(M)}),y.promise},h.externalRegister=function(k){g();var y=s.defer();return i().then(function(){n.post(scope.apiEndpoint+"account/registerexternal",k).then(function(M){e.$emit("authenticationStateChanged"),y.resolve(M)},function(M){y.reject(M)})}).catch(function(M){y.reject(M)}),y.promise},h.login=function(k){var y=s.defer();return i().then(function(){n.post(scope.apiEndpoint+"account/login",k).then(function(M){e.$emit("authenticationStateChanged"),y.resolve(M)},function(M){y.reject(M)})}).catch(function(M){y.reject(M)}),y.promise},h.loginSaml2=function(k){var y=s.defer();return i().then(function(){n.post(scope.apiEndpoint+"account/loginSaml2",k).then(function(M){e.$emit("authenticationStateChanged"),y.resolve(M)},function(M){y.reject(M)})}).catch(function(M){y.reject(M)}),y.promise},h.logout=g,h.facebookLogin=function(k){var y=s.defer(),M=function(A){var R;A&&A.authResponse&&A.authResponse.accessToken?R=A.authResponse.accessToken:y.reject("authentication canceled.");var U={loginProvider:"Facebook",token:R},V=function(q){var _=null;"male"===q.gender?_=1:"female"===q.gender&&(_=0);var B=null;q.birthday&&q.birthday.replace(/\d\d\/\d\d\/(\d\d\d\d)/g,function(E,L){moment().year(),moment(L,"YYYY").year(),B=L});var P=q.email&&q.email.match(/[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/)?q.email:null;y.resolve({loginProvider:"Facebook",token:R,email:P,emailConfirmed:P,firstName:q.first_name,lastName:q.last_name,gender:_,genderConfirmed:_,yearOfBirth:B,yearOfBirthConfirmed:B})};i().then(function(){n.post(scope.apiEndpoint+"account/loginexternal",U).then(function(q){e.$emit("authenticationStateChanged"),y.resolve(q)},function(q){404===q.status?k?facebookConnectPlugin.api("me?fields=email,first_name,last_name,gender,birthday",["public_profile","email","user_birthday"],function(_){V(_)},function(_){}):FB.api("/me",{fields:"first_name,email,last_name,gender,birthday"},function(_){V(_)}):y.reject(q)})}).catch(function(q){y.reject(q)})};return k?facebookConnectPlugin.login(["public_profile"],function(A){M(A)},function(R){y.reject("authentication canceled.")}):(FB.init({appId:scope.globalSettings.authenticationFacebookAppId,xfbml:!0,version:"v3.2",status:!0}),FB.login(function(A){M(A)},{scope:"email,public_profile"})),y.promise},h.validateEmail=function(k){var y=s.defer();return n.put(scope.apiEndpoint+"account/email/"+k).then(function(M){y.resolve(M)},function(M){y.reject(M)}),y.promise},h.requestPassword=function(k){var y=s.defer();return n.put(scope.apiEndpoint+"account/RequestPassword",k).then(function(M){y.resolve(M)},function(M){y.reject(M)}),y.promise},h.setPassword=function(k){var y=s.defer();return n.post(scope.apiEndpoint+"account/password",k).then(function(M){y.resolve(M)},function(M){y.reject(M)}),y.promise},h.changePassword=function(k){var y=s.defer();return n.put(scope.apiEndpoint+"account/Password",k).then(function(M){y.resolve(M)},function(M){y.reject(M)}),y.promise},h.deleteAccount=function(){var k=s.defer();return i().then(function(){n.get(scope.apiEndpoint+"account/delete").then(function(y){k.resolve(y)},function(y){k.reject(y)})}).catch(function(y){k.reject(y)}),k.promise},h.changeEmail=function(k){var y=s.defer();return n.post(scope.apiEndpoint+"account/email",k).then(function(M){y.resolve(M)},function(M){y.reject(M.data)}),y.promise},h.getEmails=function(){var k=s.defer();return n.get(scope.apiEndpoint+"account/emails/").then(function(y){k.resolve(y.data)},function(){k.reject()}),k.promise},h.deleteEmail=function(k){var y=s.defer();return n.post(scope.apiEndpoint+"account/email/"+k+"/delete").then(function(M){y.resolve(M.data)},function(){y.reject()}),y.promise},h.sendEmailVerification=function(k){var y=s.defer();return n.post(scope.apiEndpoint+"account/email/"+k+"/sendVerification").then(function(M){y.resolve(M)},function(M){y.reject(M.data)}),y.promise},h.updateActiveEmail=function(k){var y=s.defer();return n.post(scope.apiEndpoint+"account/email/"+k+"/updateActive").then(function(M){y.resolve(M.data)},function(){y.reject()}),y.promise},h.getApicodoMediaToken=x,h.mediaApiBase=S,h}]),app.component("changeEmailForm",{templateUrl:"/ClientApp/src/legacy-app/authentication/changeEmailForm.html",controller:["$rootScope","authService",function(e,t){var a=this,n={email:"",confirmEmail:""},s=function(){a.newEmail=angular.copy(n)};s(),a.changeEmail=function(p,h){p||a.newEmail.confirmEmail!==a.newEmail.email||t.changeEmail(a.newEmail).then(function(r){a.changeEmailError=null,a.changeEmailSuccess=e.scope.currentScope.network.resources.web_authentication_changeEmailForm_changeEmailSuccessful,s(),h.$setPristine(),h.$setUntouched()},function(r){a.changeEmailError=r,a.changeEmailSuccess=null})}}]}),app.component("emailManagementForm",{templateUrl:"/ClientApp/src/legacy-app/authentication/emailManagementForm.html",controller:["$rootScope","authService","$uibModal",function(e,t,a){var n=this;n.active=!0;var s=function(){t.getEmails().then(function(p){n.emails=p,n.confirmedEmails=[],n.unConfirmedEmails=[],$.each(p,function(h,r){r.active&&(n.activeEmail=r),r.emailConfirmed&&!r.active&&n.confirmedEmails.push(r),!r.emailConfirmed&&r.email&&n.unConfirmedEmails.push(r)})})};n.toggleDropdown=function(){n.active=!n.active},n.sendVerificationDialog=function(p){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/sendVerificationDialog.html",size:"lg"}).result.then(function(){t.sendEmailVerification(p)})},n.updateActiveEmailDialog=function(p){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/updateActiveEmailDialog.html",size:"lg"}).result.then(function(){t.updateActiveEmail(p).then(function(){s()})})},n.emailDeleteDialog=function(p){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/emailDeleteDialog.html",size:"lg"}).result.then(function(){t.deleteEmail(p).then(function(h){s()})})},s()}]}),app.controller("InstagramRegisterFormController",["$scope","authenticationCallback","instagramUserData","instagramService","profileService",function(e,t,a,n,s){e.signUpData=a;var p=function(r,i){return r?r.split(" ")[0]:i},h=function(r){if(r){var i=p(r);return r.replace(i,"")||i}return null};e.instagramRegister=function(r){if(r){var i=p(e.signUpData.data.full_name,e.signUpData.data.username),c={token:e.signUpData.token,loginProvider:"Instagram",Email:e.signUpData.email,Gender:e.signUpData.gender,YearOfBirth:e.signUpData.yearOfBirth,FirstName:i,LastName:h(i)};n.register(c).then(function(){s.fetchExternalAvatar({providerName:"Instagram",token:e.signUpData.token}).then(function(){e.$dismiss(),t()})},function(d){e.error=d.data||scope.currentScope.network.getResourceOrKeyName("web_common_errorOccurred")})}}}]),app.factory("instagramService",["$rootScope","$location","$http","$q","$uibModal",function(e,t,a,n,s){var p=this;p.accessToken=null;var h=function(u){return angular.isDefined(u)&&(p.accessToken=u),p.accessToken},i=function(){var u=n.defer(),b=scope.apiEndpoint+"Account/LoginExternal";return a.post(b,{LoginProvider:"Instagram",Token:p.accessToken}).then(function(){u.resolve({isUserRegister:!0})},function(m){404===m.status?u.resolve({isUserRegister:!1,token:p.accessToken}):u.reject(m)}),u.promise},c=function(){var u=n.defer();return a.get("https://api.instagram.com/v1/users/self/?access_token="+p.accessToken,{withCredentials:!1}).then(function(I){u.resolve(I.data)},function(I){console.error("error",I)}),u.promise};return $.oauthpopup=function(u){u.windowName=u.windowName||"ConnectWithOAuth",u.windowOptions=u.windowOptions||"location=0,status=0,width=800,height=400",u.callback=u.callback||function(){window.location.reload()};var b=this;b._oauthWindow=window.open(u.path,u.windowName,u.windowOptions),b._oauthInterval=window.setInterval(function(){if(b._oauthWindow.closed){var I=localStorage.token;window.clearInterval(b._oauthInterval),u.callback(I)}},1e3)},{getGrant:function(){var b=e.scope.currentScope.isNative?"https://"+e.scope.currentScope.network.domain+e.scope.currentScope.chapter.path:"http://localhost:52392"+e.scope.currentScope.chapter.path;$.oauthpopup({path:"https://instagram.com/oauth/authorize/?client_id="+e.scope.globalSettings.authenticationInstagramAppId+"&redirect_uri="+(b+="/instagram-callback/")+"&response_type=code",windowName:"ConnectToInstagram",callback:function(){var u;u=localStorage.token,h(u),c().then(function(b){i().then(function(I){I.isUserRegister?(e.$emit("authenticationStateChanged"),t.path("/").search("")):s.open({templateUrl:"/ClientApp/src/legacy-app/authentication/instagramRegisterForm.html",controller:"InstagramRegisterFormController",size:"lg",resolve:{instagramUserData:function(){return b.token=I.token,b},authenticationCallback:function(){return function(){e.$emit("authenticationStateChanged"),t.path("/").search("")}}}})},function(I){$scope.error=I.data||"Es ist ein Fehler aufgetreten."})}),localStorage.token=""}})},setToken:h,getUserData:c,login:i,isAvailable:function(){return e.scope.currentScope.network.settings.availableInstagramLogin&&!e.app},register:function(u){var b=n.defer(),I=scope.apiEndpoint+"Account/RegisterExternal";return a.post(I,u).then(function(m){b.resolve(m)},function(m){b.reject(m)}),b.promise}}}]),app.controller("LoginSaml2Controller",["$scope","$rootScope","$location","$state","authService",function(e,t,a,n,s){e.isApp=t.app,e.title="Mit Unternehmenskonto anmelden",e.login=function(){n.go("app.root.login",{closedToken:a.search().token})},e.signUpData={gender:null,yearOfBirth:null,staffNumber:null,isApp:t.app},e.loginError=null,s.loginSaml2(e.signUpData).then(function(p){a.path(scope.currentChapter.path+"/")},function(p){e.loginError=p.data})}]),app.controller("RegisterController",["$interpolate","$scope","$rootScope","$location","$window","authService","$timeout","profileService","$state","registerForNewsletter",function(e,t,a,n,s,p,h,r,i,c){t.registerForNewsletter=c,r.getProfile(!0).then(function(o){t.isRegistered=o.isRegistered,t.newsletterSubscribed=!o.unsubscribe,o.isRegistered&&!t.registerForNewsletter&&n.path("/").replace()},function(){n.path("/").replace()}),t.web_register_newsletterIsSubscribedDescription_0=e(scope.currentScope.network.resources.web_register_newsletterIsSubscribedDescription_0)({chapterName:scope.currentScope.chapter.name}),t.web_register_newsletterIsNotSubscribedDescription_0=e(scope.currentScope.network.resources.web_register_newsletterIsNotSubscribedDescription_0)({chapterName:scope.currentScope.chapter.name}),t.web_register_newsletterCheckboxDescription_0=e(scope.currentScope.network.resources.web_register_newsletterCheckboxDescription_0)({chapterName:scope.currentScope.chapter.name}),t.isApp=a.app,t.title=t.registerForNewsletter?scope.currentScope.network.getResourceOrKeyName("web_register_subscribeNewsletter"):scope.currentScope.network.getResourceOrKeyName("web_common_register"),t.signUpData={token:null,email:"",password:"",confirmPassword:"",gender:a.scope.currentScope.chapter.settings.featureRegistrationAgeGender?1:null,yearOfBirth:null,firstName:"",lastName:"",locations:[],isNewsletterSubscribe:!1,closedChapterToken:null},t.signupError=null,t.signUp=function(o){o&&t.signUpData.password===t.signUpData.confirmPassword?(n.search().closedToken&&(t.signUpData.closedChapterToken=n.search().closedToken),p.register(t.signUpData).then(function(){n.path(scope.currentChapter.path+"/account/registration-complete")},function(l){!function(o){if(o.modelState){var l=[];for(var g in o.modelState)if(o.modelState.hasOwnProperty(g))for(var u=0;u<o.modelState[g].length;u++){var b=o.modelState[g][u];-1===l.indexOf(b)&&l.push(b)}t.signupError="Fehler bei der Registrierung: "+l.join(" ")}else t.signupError=o.data;h(function(){var I=$("form[name='signUpForm']").find("div[name='signupError']").not(".ng-hide").first(),m=null;I.length&&!I.visible(!1,!0)?m=I:t.signUpError&&(m=$("form[name='signUpForm']")),m&&$(document.body).animate({scrollTop:m.offset().top-150},1e3)})}(l)})):h(function(){var l=$("form[name='signUpForm']").find(".input-error").not(".ng-hide").first();l.length&&!l.visible(!1,!0)&&$(document.body).animate({scrollTop:l.offset().top-150},1e3)})}}]),app.controller("RequestPasswordController",["$rootScope","$scope","$location","authService",function(e,t,a,n){e.profile.isRegistered&&!e.profile.adminSetPassword&&a.path("/").replace(),t.setPasswordData={newPassword:"",confirmPassword:"",passwordRequestToken:null,acceptPrivacyPolicy:!1,title:e.scope.currentScope.network.getResourceOrKeyName("web_requestPassword_pageTitle")},t.requestPasswordData={email:""},a.search().token&&(t.setPasswordData.passwordRequestToken=a.search().token),t.isInvitation=void 0!==a.search().invitation,t.isInitialPasswordChange=void 0!==a.search().initial|e.profile.adminSetPassword,t.isInvitation&&e.scope.currentScope.network.resources.web_requestPassword_pageTitle_Invitation&&(t.setPasswordData.title=e.scope.currentScope.network.resources.web_requestPassword_pageTitle_Invitation),t.showPrivacyPolicy=(t.isInvitation||t.isInitialPasswordChange)&&e.scope.currentChapter.settings.configurations.requirePrivacyPolicyInvitation,t.requestPassword=function(s){s&&n.requestPassword(t.requestPasswordData).then(function(p){a.path(scope.currentChapter.path+"/account/password-requested")},function(p){if(p.modelState){var h=[];for(var r in p.modelState)for(var i=0;i<p.modelState[r].length;i++){var c=p.modelState[r][i];-1==h.indexOf(c)&&h.push(c)}t.error=h.join(" ")}else t.error=p.data})},t.setPassword=function(s){!s||t.setPasswordData.newPassword!==t.setPasswordData.confirmPassword||n.changePassword(t.setPasswordData).then(function(p){e.profile.adminSetPassword&&(e.profile.adminSetPassword=!1),a.path(scope.currentChapter.path+"/account/password-resetted").search("")},function(p){if(p.modelState){var h=[];for(var r in p.modelState)for(var i=0;i<p.modelState[r].length;i++){var c=p.modelState[r][i];-1==h.indexOf(c)&&h.push(c)}t.error=h.join(" ")}else t.error=p.data})}}]),app.controller("AuthorBillingInfoController",["$scope","authorService","profileService","$location",function(e,t,a,n){e.author={authorId:null,taxNumber:"",taxIdNumber:"",accountHolder:"",iban:"",bic:"",tax:!1,billingFirstName:"",billingLastName:"",billingCompanyName:"",address:"",city:"",postalCode:null,chapter:null,imprint:{value:""}},e.success=!1,e.fromApply=n.search().fromApply,a.getProfile().then(function(s){s.isRegistered||n.path("/").replace(),t.getAuthor(s.chapter,s.guid).then(function(p){p.billingFirstName&&(e.author.billingfirstname=p.billingFirstName),p.taxNumber&&(e.author.taxnumber=p.taxNumber),p.taxIdNumber&&(e.author.taxidnumber=p.taxIdNumber),p.accountHolder&&(e.author.accountholder=p.accountHolder),p.bic&&(e.author.bic=p.bic),p.tax&&(e.author.tax=p.tax),p.billingLastName&&(e.author.billinglastname=p.billingLastName),p.billingCompanyName&&(e.author.billingcompanyname=p.billingCompanyName),p.address&&(e.author.address=p.address),p.city&&(e.author.city=p.city),p.postalCode&&(e.author.postalcode=p.postalCode),p.imprint&&(e.author.imprint=p.imprint),p.iban&&(e.author.iban=p.iban),p.iban&&(e.author.ibanshow=p.iban.substr(0,7)+p.iban.substr(7).replace(/.(?=.{4,}$)/g,"*"))})},function(s){n.path("/").replace()}),e.resetValue=function(){e.author.iban=""},e.signUp=function(s){s&&t.updateAuthorBillingInfo(e.author.chapter,e.author).then(function(p){e.success=!0},function(){e.success=!1})}}]),app.controller("AuthorListController",["$scope","authorService",function(e,t){t.getAuthors().then(function(a){e.authors=a}),e.level9Filter=function(){return function(a){return 9==a.levelId}},e.level8Filter=function(){return function(a){return 8==a.levelId}},e.level7Filter=function(){return function(a){return 7==a.levelId}},e.level6Filter=function(){return function(a){return 6==a.levelId}},e.level5Filter=function(){return function(a){return 5==a.levelId}},e.level4Filter=function(){return function(a){return 4==a.levelId}},e.level3Filter=function(){return function(a){return 3==a.levelId}},e.level2Filter=function(){return function(a){return 2==a.levelId}},e.level1Filter=function(){return function(a){return 1==a.levelId}}}]),app.directive("authorListItem",[function(){return{restrict:"E",require:"ngModel",templateUrl:"/ClientApp/src/legacy-app/author/authorListItem.html",replace:!0,scope:!0,link:function(e,t,a){e.$watch(a.ngModel,function(){e.author=e.$eval(a.ngModel)})}}}]),app.factory("authorService",["$http","$q",function(e,t){return{getAuthors:function(){var l=t.defer();return e.get(scope.apiEndpoint+"authors").then(function(g){l.resolve(g.data)},function(){l.reject()}),l.promise},getMyArticles:function(){var l=t.defer();return e.get(scope.apiEndpoint+"authors/MyArticles").then(function(g){l.resolve(g.data)},function(){l.reject()}),l.promise},checkApply:function(l){var g=t.defer();return e.get(scope.apiEndpoint+"snips/"+l+"/checkApply").then(function(u){g.resolve(u.data)},function(){g.reject()}),g.promise},applySnip:function(l){var g=t.defer();return e.get(scope.apiEndpoint+"snips/"+l+"/apply").then(function(u){g.resolve(u.data)},function(){g.reject()}),g.promise},noApplySnip:function(l){var g=t.defer();return e.get(scope.apiEndpoint+"snips/"+l.snipId+"/noapply/"+l.id).then(function(u){g.resolve(u.data)},function(){g.reject()}),g.promise},allocateSnip:function(l){var g=t.defer();return e.get(scope.apiEndpoint+"snips/"+l.snipId+"/allocate/"+l.id).then(function(u){g.resolve(u.data)},function(){g.reject()}),g.promise},rejectSnip:function(l){var g=t.defer();return e.get(scope.apiEndpoint+"snips/"+l.snipId+"/reject/"+l.id).then(function(u){g.resolve(u.data)},function(){g.reject()}),g.promise},getAuthor:function(l,g){var u=t.defer();return e.get(scope.apiEndpoint+"authors/"+g).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},updateAuthorBillingInfo:function(l,g){var u=t.defer();return e.put(scope.apiEndpoint+"authors/updateauthorbillinginfo",g).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getAuthorImprint:function(l){var g=t.defer();return e.get(scope.apiEndpoint+"authors/"+l+"/imprint").then(function(u){g.resolve(u.data)},function(){g.reject()}),g.promise}}}]),app.controller("DashboardController",["$scope","$rootScope","authorService","articleService","$uibModal","profileService","$location","eventCalendarService",function(e,t,a,n,s,p,h,r){var i=function(){a.getMyArticles().then(function(d){d.applications.forEach(function(g){g.fullPath=t.scope.currentScope.chapter.path+g.path}),d.publishedArticles.forEach(function(g){g.fullPath=t.scope.currentScope.chapter.path+g.path});var o=d.applications,l=d.publishedArticles;!1!==t.scope.currentScope.network.settings.configurations.enableCalendar&&t.scope.currentScope.chapter.settings.configurations.enableEventCalendar?r.getEventsForAuthorDashboard().then(function(g){g.forEach(function(u){u.fullPath=t.scope.currentScope.chapter.path+"/events/"+u.id,u.isEvent=!0,u.published?l.push(u):(u.accepted=u.created,u.assigned=u.created,o.push(u))}),e.articles=l,e.applications=o}):(e.articles=l,e.applications=o)})},c=t.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration;e.canCreateEvents=t.profile.isNewsroomAdmin||!c&&t.profile.isMerkuristJournalist||c&&(6===c.MinEventCreationRole&&t.profile.isHeadSales||5===c.MinEventCreationRole&&t.profile.isSales||4===c.MinEventCreationRole&&t.profile.isHeadJournalist||3===c.MinEventCreationRole&&t.profile.isMerkuristJournalist||2===c.MinEventCreationRole&&t.profile.isJournalist),p.getProfile().then(function(d){d.isJournalist||h.path("/").replace();var o=d.guid;e.$watch("profile.guid",function(){o!=d.guid&&h.path("/")}),i(),$(window).bind("focus",function(){i()})},function(d){h.path("/").replace()}),e.noApply=function(d){a.noApplySnip(d).then(function(o){i()})},e.allocate=function(d){a.allocateSnip(d).then(function(o){i()})},e.reject=function(d){a.rejectSnip(d).then(function(o){i()})},e.articleDeleteDialog=function(d){s.open({templateUrl:"/ClientApp/src/legacy-app/author/articleDeleteDialog.html",size:"lg"}).result.then(function(){n.deleteArticle(d).then(function(){i()})})},e.eventDeleteDialog=function(d){s.open({templateUrl:"/ClientApp/src/legacy-app/author/eventDeleteDialog.html",size:"lg"}).result.then(function(){r.deleteEvent(d).then(function(){i()})})},e.createArticle=function(){n.createArticle().then(function(d){h.path(d.path+"/edit")})},e.createEvent=function(){r.createEvent().then(function(d){h.path("/events/"+d+"/edit")})}}]),app.controller("BannerCampaignElasticReportController",["$scope","$rootScope","bannerCampaignService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,s,p,h){AmCharts.isReady=!0;var r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getbannerCampaignByPin(s.pin).then(function(i){e.bannerCampaign=i,e.loaded=!1,a.getElasticReportBannerCalendar(i.pin).then(function(c){i.report=c,i.banners.forEach(function(o){o.imageUrl=n.getGlobalSettings().blobStorageCdnUrl+"/"+n.getGlobalSettings().blobStorageContainerNameShipment+"/"+o.pin+"?preset=shipment"});var d=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];p(function(){var o,l,g;$.each(c,function(F,T){T.active=!0}),$.each(i.banners,function(F,T){T.active=!0}),c.length>1&&(c.multiChapterShipment=!0);for(var u=[],b=[],I=[],m=new Date(i.start);m<=moment(new Date).startOf("day").add(1,"d").toDate();m.setDate(m.getDate()+1)){var D={start:new Date(m),billableImpressions:0,clicks:0};u.push(D),I[D.start.toDateString()]=D,b.push(D)}var w={impressions:0,billableImpressions:0,viewableImpressionTimeSeconds:0,clicks:0,desktopImpressions:0,mobileImpressions:0,tabletImpressions:0,start:moment(i.start).startOf("day").toDate(),end:moment(new Date).startOf("day").toDate()};e.summary=w;var v=function(){$.each(b,function(F,T){T.clicks=0,T.billableImpressions=0}),w.impressions=0,w.billableImpressions=0,w.viewableImpressionTimeSeconds=0,w.clicks=0,w.desktopImpressions=0,w.mobileImpressions=0,w.tabletImpressions=0,d[0].value=0,d[1].value=0,d[2].value=0,o.validateData(),l.validateData(),g.validateData(),$.each(c,function(F,T){T.active&&$.each(T.reports,function(x,S){var k=!1;$.each(i.banners,function(y,M){M.id===S.bannerId&&M.active&&(k=!0)}),k&&(S.billableImpressionsCalendar.length&&$.each(S.billableImpressionsCalendar,function(y,M){I[new Date(M.day).toDateString()]&&(I[new Date(M.day).toDateString()].billableImpressions+=M.data)}),S.clickCalendar.length&&$.each(S.clickCalendar,function(y,M){I[new Date(M.day).toDateString()]&&(I[new Date(M.day).toDateString()].clicks+=M.data)}),w.impressions+=S.impressions,w.billableImpressions+=S.billableImpressions,w.viewableImpressionTimeSeconds+=S.viewableImpressionTimeSeconds/1e3,w.clicks+=S.clicks,w.desktopImpressions+=S.desktopImpressions,w.mobileImpressions+=S.mobileImpressions,w.tabletImpressions+=S.tabletImpressions)})}),d[0].value=Math.round(100/(w.impressions/w.desktopImpressions)),d[1].value=Math.round(100/(w.impressions/w.mobileImpressions)),d[2].value=Math.round(100/(w.impressions/w.tabletImpressions)),o.validateData(),l.validateData(),g.validateData()};o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"billableImpressions",toField:"billableImpressions"}],dataProvider:u,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"billableImpressions",valueField:"billableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"billableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),l=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"billableImpressions",toField:"billableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:b,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"billableImpressions",type:"smoothedLine",valueField:"billableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),g=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var C=function(F,T,x){$.each(c,function(S,k){k.chapter=n.getChapter(k.chapterSlug),a.getChapterReport(k.chapter.id,i,T,x).then(function(y){k.reports=y,e.loaded=!0,v(),F&&($.each(k.reports,function(M,A){A.active=!0}),u.length=0,$.each(b,function(M,A){u.push({start:A.start,billableImpressions:A.billableImpressions})}))}),o.validateData(),l.validateData(),g.validateData()})};o.addListener("zoomed",function(F){w.start=moment(o.startDate).startOf("day").toDate(),w.end=moment(o.endDate).startOf("day").toDate(),C(!1,moment(w.start).startOf("day").add(1,"d").toDate(),moment(w.end).startOf("day").add(2,"d").toDate()),l.zoom(w.start,moment(w.end).startOf("day").add(1,"d").toDate())}),e.toggleReport=function(F){$.each(i.banners,function(T,x){x.id===F.id&&(x.active=!x.active)}),v()},e.toggleChapter=function(F){$.each(c,function(T,x){x.chapter.name===F&&(x.active=!x.active)}),v()},C(!0,moment(i.start).startOf("day").toDate(),moment(new Date).startOf("day").add(2,"d").toDate())},function(){e.error=!0})})},function(){h.path("/")})}]),app.controller("bannerCampaignReportController",["$scope","$rootScope","bannerCampaignService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,p,h,r){AmCharts.isReady=!0;var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getbannerCampaignByPin(s.pin).then(function(l){e.bannerCampaign=l,a.getreportBannerCalendar(l.pin).then(function(g){g.forEach(function(u){u.chapter=n.getChapter(u.chapterSlug),u.reports.forEach(function(b){b.calendar.forEach(function(I){I.start=moment(I.start.replace("Z","")).toDate(),I.end=moment(I.end.replace("Z","")).toDate()})})}),l.report=g,l.banners.forEach(function(u){u.imageUrl=n.getGlobalSettings().blobStorageCdnUrl+"/"+n.getGlobalSettings().blobStorageContainerNameShipment+"/"+u.pin+"?preset=shipment"}),h(function(){var u,b,I,m,D,w=new Set;$.each(g,function(x,S){S.active=!0,w.add(S.chapter.name)}),g.uniqueChapters=[],w.forEach(function(x){g.uniqueChapters.push(x)}),$.each(l.banners,function(x,S){S.reportActive=!0});var v=[],C=function(){v.length=0,$.each(g[0].reports[0].calendar,function(x,S){v.push({start:S.start,end:S.end,impressions:0,viewableImpressions:0,billableViewableImpressions:0,viewableImpressionTimeSeconds:0,desktopViewableImpressions:0,mobileViewableImpressions:0,tabletViewableImpressions:0,clicks:0,maleViewableImpressions:0,femaleViewableImpressions:0,age1617MaleViewableImpressions:0,age1824MaleViewableImpressions:0,age2534MaleViewableImpressions:0,age3544MaleViewableImpressions:0,age4554MaleViewableImpressions:0,age55MaleViewableImpressions:0,age1617FemaleViewableImpressions:0,age1824FemaleViewableImpressions:0,age2534FemaleViewableImpressions:0,age3544FemaleViewableImpressions:0,age4554FemaleViewableImpressions:0,age55FemaleViewableImpressions:0})}),$.each(g,function(x,S){S.active&&(g[x-1]&&2===g[x-1].chapter.managementState&&2===S.chapter.managementState&&g[x-1].chapter.name!==S.chapter.name&&(g.multiChapterShipment=!0),$.each(S.reports,function(k,y){if(l.banners[k].reportActive){var M=y.banner.pin;$.each(y.calendar,function(A,R){R.pin=M,v[A].impressions+=R.impressions,v[A].viewableImpressions+=R.viewableImpressions,v[A].billableViewableImpressions+=R.billableViewableImpressions,v[A].viewableImpressionTimeSeconds+=R.viewableImpressionTimeSeconds,v[A].desktopViewableImpressions+=R.desktopViewableImpressions,v[A].mobileViewableImpressions+=R.mobileViewableImpressions,v[A].tabletViewableImpressions+=R.tabletViewableImpressions,v[A].clicks+=R.clicks,v[A].maleViewableImpressions+=R.maleViewableImpressions,v[A].femaleViewableImpressions+=R.femaleViewableImpressions,v[A].age1617MaleViewableImpressions+=R.age1617MaleViewableImpressions,v[A].age1824MaleViewableImpressions+=R.age1824MaleViewableImpressions,v[A].age2534MaleViewableImpressions+=R.age2534MaleViewableImpressions,v[A].age3544MaleViewableImpressions+=R.age3544MaleViewableImpressions,v[A].age4554MaleViewableImpressions+=R.age4554MaleViewableImpressions,v[A].age55MaleViewableImpressions+=R.age55MaleViewableImpressions,v[A].age1617FemaleViewableImpressions+=R.age1617FemaleViewableImpressions,v[A].age1824FemaleViewableImpressions+=R.age1824FemaleViewableImpressions,v[A].age2534FemaleViewableImpressions+=R.age2534FemaleViewableImpressions,v[A].age3544FemaleViewableImpressions+=R.age3544FemaleViewableImpressions,v[A].age4554FemaleViewableImpressions+=R.age4554FemaleViewableImpressions,v[A].age55FemaleViewableImpressions+=R.age55FemaleViewableImpressions})}}))}),b.validateData(),u.validateData()},f=g.summary={};u=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:v,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"billableViewableImpressions",toField:"billableViewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:v,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"billableViewableImpressions",type:"smoothedLine",valueField:"billableViewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),I=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:c,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),m=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:i,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(x,S){return-1*x.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(x){return x<0?-1*x+"":x+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),D=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var T=function(){var x=moment(u.startDate).startOf("day").toDate(),S=moment(u.endDate).startOf("day").add(-1,"d").toDate();(function(x,S){f.maleViewableImpressions=0,f.femaleViewableImpressions=0,f.viewableImpressions=0,f.billableViewableImpressions=0,f.viewableImpressionTimeSeconds=0,f.impressions=0,f.clicks=0,f.desktopViewableImpressions=0,f.mobileViewableImpressions=0,f.tabletViewableImpressions=0,f.age1617MaleViewableImpressions=0,f.age1824MaleViewableImpressions=0,f.age2534MaleViewableImpressions=0,f.age3544MaleViewableImpressions=0,f.age4554MaleViewableImpressions=0,f.age55MaleViewableImpressions=0,f.age1617FemaleViewableImpressions=0,f.age1824FemaleViewableImpressions=0,f.age2534FemaleViewableImpressions=0,f.age3544FemaleViewableImpressions=0,f.age4554FemaleViewableImpressions=0,f.age55FemaleViewableImpressions=0;var k=0,y=0,M=0,A=0,R=0,U=0,V=0,q=0,_=0,B=0,P=0,E=0,L=0,z=0,Y=0;f.start=x,f.end=S,$.each(v,function(W,N){var K=new Date(N.start);K<x||K>S||(f.maleViewableImpressions+=N.maleViewableImpressions,f.femaleViewableImpressions+=N.femaleViewableImpressions,f.viewableImpressions+=N.viewableImpressions,f.billableViewableImpressions+=N.billableViewableImpressions,f.viewableImpressionTimeSeconds+=N.viewableImpressionTimeSeconds,f.impressions+=N.impressions,f.clicks+=N.clicks,k+=N.desktopViewableImpressions,y+=N.mobileViewableImpressions,M+=N.tabletViewableImpressions,A+=N.age1617MaleViewableImpressions,R+=N.age1824MaleViewableImpressions,U+=N.age2534MaleViewableImpressions,V+=N.age3544MaleViewableImpressions,q+=N.age4554MaleViewableImpressions,_+=N.age55MaleViewableImpressions,B+=N.age1617FemaleViewableImpressions,P+=N.age1824FemaleViewableImpressions,E+=N.age2534FemaleViewableImpressions,L+=N.age3544FemaleViewableImpressions,z+=N.age4554FemaleViewableImpressions,Y+=N.age55FemaleViewableImpressions)}),f.desktopViewableImpressions=Math.round(100/(f.viewableImpressions/k)),f.mobileViewableImpressions=Math.round(100/(f.viewableImpressions/y)),f.tabletViewableImpressions=Math.round(100/(f.viewableImpressions/M));var j=f.viewableImpressions-(A+R+U+V+q+_+B+P+E+L+z+Y);j>100&&(A+=j*t.scope.globalSettings.reportAverageAge1617Male,R+=j*t.scope.globalSettings.reportAverageAge1824Male,U+=j*t.scope.globalSettings.reportAverageAge2534Male,V+=j*t.scope.globalSettings.reportAverageAge3544Male,q+=j*t.scope.globalSettings.reportAverageAge4554Male,_+=j*t.scope.globalSettings.reportAverageAge55Male,B+=j*t.scope.globalSettings.reportAverageAge1617Female,P+=j*t.scope.globalSettings.reportAverageAge1824Female,E+=j*t.scope.globalSettings.reportAverageAge2534Female,L+=j*t.scope.globalSettings.reportAverageAge3544Female,z+=j*t.scope.globalSettings.reportAverageAge4554Female,Y+=j*t.scope.globalSettings.reportAverageAge55Female),f.age1617MaleViewableImpressions=Math.round(100/(f.viewableImpressions/A)),f.age1824MaleViewableImpressions=Math.round(100/(f.viewableImpressions/R)),f.age2534MaleViewableImpressions=Math.round(100/(f.viewableImpressions/U)),f.age3544MaleViewableImpressions=Math.round(100/(f.viewableImpressions/V)),f.age4554MaleViewableImpressions=Math.round(100/(f.viewableImpressions/q)),f.age55MaleViewableImpressions=Math.round(100/(f.viewableImpressions/_)),f.age1617FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/B)),f.age1824FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/P)),f.age2534FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/E)),f.age3544FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/L)),f.age4554FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/z)),f.age55FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/Y)),f.maleViewableImpressions=Math.round(f.maleViewableImpressions),f.femaleViewableImpressions=Math.round(f.femaleViewableImpressions),c[0].value=f.femaleViewableImpressions,c[1].value=f.maleViewableImpressions,d[0].male=Math.round(-1*f.age1617MaleViewableImpressions),d[1].male=Math.round(-1*f.age1824MaleViewableImpressions),d[2].male=Math.round(-1*f.age2534MaleViewableImpressions),d[3].male=Math.round(-1*f.age3544MaleViewableImpressions),d[4].male=Math.round(-1*f.age4554MaleViewableImpressions),d[5].male=Math.round(-1*f.age55MaleViewableImpressions),d[0].female=Math.round(f.age1617FemaleViewableImpressions),d[1].female=Math.round(f.age1824FemaleViewableImpressions),d[2].female=Math.round(f.age2534FemaleViewableImpressions),d[3].female=Math.round(f.age3544FemaleViewableImpressions),d[4].female=Math.round(f.age4554FemaleViewableImpressions),d[5].female=Math.round(f.age55FemaleViewableImpressions),o[0].value=f.desktopViewableImpressions,o[1].value=f.mobileViewableImpressions,o[2].value=f.tabletViewableImpressions,I.validateData(),m.validateData(),D.validateData(),e.$apply()})(x,S),b.zoom(x,moment(S).add(1,"d").toDate())};u.addListener("zoomed",function(x){T()}),e.toggleReport=function(x){$.each(l.banners,function(S,k){k.pin===x.pin&&(k.reportActive=!k.reportActive)}),h(function(){C(),T()},50)},e.toggleChapter=function(x){$.each(g,function(S,k){k.chapter.name===x&&(k.active=!k.active)}),h(function(){C(),T()},50)},C(),b.validateData(),u.validateNow(),u.setDefaultPeriod()},function(){e.error=!0})})},function(){r.path("/")});var c=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:i,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("bannerCampaignService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,s,p){var h=[],d=function(){var g=t.defer();return h.length>0?g.resolve(h):e.get(scope.apiEndpoint+"bannerCampaigns").then(function(u){angular.copy(u.data,h),g.resolve(h)},function(){g.reject()}),g.promise};function o(g){var u=null;return $.each(h,function(b,I){if(I.pin===g)return u=I,!1}),u}return{bannerCampaigns:h,getbannerCampaigns:d,getreportBannerCalendar:function(g){var u=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/"+g+"/ReportBannerCalendar").then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getbannerCampaignByPin:function(g){var u=t.defer();if(h.length>0){var b=o(g);b?u.resolve(b):e.get(scope.apiEndpoint+"/bannerCampaigns"+g).then(function(I){u.resolve(I.data)},function(){u.reject()})}else d().then(function(){var I=o(g);I?u.resolve(I):e.get(scope.apiEndpoint+"bannerCampaigns/"+g).then(function(m){u.resolve(m.data)},function(){u.reject()})},function(){u.reject()});return u.promise},getElasticReportBannerCalendar:function(g){var u=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/"+g+"/Elastic").then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getChapterReport:function(g,u,b,I){var m=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/chapterReport?chapterId="+g+"&bannerCampaignId="+u.id+"&start="+new Date(b).getTime()+"&end="+new Date(I).getTime()).then(function(D){m.resolve(D.data)},function(){m.reject()}),m.promise}}}]),app.component("betterPlaceProjectAttribution",{templateUrl:"/ClientApp/src/legacy-app/betterPlace/betterPlaceProjectAttribution.html",bindings:{projectDetails:"<"},controller:["$state","$rootScope","scopeService","formatterService","$uibModal","betterPlaceService",function(e,t,a,n,s,p){var h=this;h.carrierDetails=null,this.$onInit=function(){p.getApiResult(h.projectDetails.carrier.links[0].href).then(function(r){h.carrierDetails=r})}}]}),app.component("betterPlaceProjectCover",{templateUrl:"/ClientApp/src/legacy-app/betterPlace/betterPlaceProjectCover.html",bindings:{article:"<"},controller:["$state","$rootScope","scopeService","formatterService","$uibModal","betterPlaceService",function(e,t,a,n,s,p){var h=this;h.projectDetails={},this.$onInit=function(){h.article.betterPlaceProjectId&&t.scope.currentScope.chapter.settings.enableBetterPlaceProjects&&p.getProjectDetails(h.article.betterPlaceProjectId).then(function(r){h.projectDetails=r})}}]}),app.service("betterPlaceService",["$http","$q",function(e,t){var a={withCredentials:!1};return{getProjectDetails:function(p){var h=t.defer();return e.get(scope.globalSettings.betterPlaceApiUrl+"/projects/"+p,a).then(function(r){h.resolve(r.data)},function(){h.reject()}),h.promise},getApiResult:function(p){var h=t.defer();return e.get(p,a).then(function(r){h.resolve(r.data)},function(){h.reject()}),h.promise}}}]),app.controller("BrochureElasticReportController",["$scope","$rootScope","brochureService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,s,p,h){AmCharts.isReady=!0;var d,o,l,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],c=[];e.report=null,e.totalUniqueViewCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var g=function(m){var D=0,w=0,v=0,C=0,f=0,F=0;$.each(m,function(T,x){D+=x.desktopImpressionCount,w+=x.tabletImpressionCount,v+=x.mobileImpressionCount,C+=x.uniqueViews,f+=x.impressionTime,F+=x.impressionCount}),e.$apply(function(){e.totalUniqueViewCount=C,e.totalImpressionTime=f,e.totalImpressionCount=F}),i[0].value=Math.round(100/(F/D)),i[1].value=Math.round(100/(F/v)),i[2].value=Math.round(100/(F/w)),d.validateData()},u=function(){var m=moment(o.startDate).startOf("day").toDate(),D=moment(o.endDate).startOf("day").toDate(),w=e.report.filter(function(v){return v.day>=m&&v.day<=D});g(w),l.zoom(m,moment(D).add(1,"d").toDate()),e.$apply(function(){e.startDay=m,e.endDay=D})};e.filterChapter=function(m){m.filtered=!m.filtered,function(){var m=e.chapters.filter(function(D){return!D.filtered}).map(function(D){return D.id});e.filterDisabled=!0,a.getBrochureReport({specialId:s.id,chapterIds:m}).then(function(D){D.forEach(function(w){w.day=moment(w.day.replace("Z","")).toDate()}),e.report=D,p(function(){(function(m){c.length=0,$.each(m,function(D,w){c.push(w)}),o.validateData(),l.validateData()})(D),u(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(m){return e.filterDisabled||1===e.chapters.filter(function(D){return!D.filtered}).length&&!m.filtered},a.getBrochureInfo(s.id).then(function(m){e.brochure=m,a.getBrochureReport({specialId:s.id}).then(function(D){D.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=D,e.startDay=D[0].day,e.endDay=D[D.length-1].day;var w=[];$.each(m.chapterSlugs,function(v,C){w.push(n.getChapter(C))}),w=w.filter(function(v){return 2===v.managementState}),e.chapters=w,$.each(D,function(v,C){c.push(C)}),p(function(){d=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:c,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){u()}),l=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"uniqueViews",toField:"uniqueViews"}],dataProvider:c,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"uniqueViews",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),g(D)})},function(){e.error=!0})})}]),app.controller("BrochureReportController",["$scope","$rootScope","brochureService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,p,h,r){AmCharts.isReady=!0,a.getBrochureInfo(s.id).then(function(o){e.brochure=o,a.getBrochureCalendar(s.id).then(function(l){l.forEach(function(g){g.chapter=n.getChapter(g.chapterSlug),g.report.calendar.forEach(function(u){u.start=moment(u.start.replace("Z","")).toDate(),u.end=moment(u.end.replace("Z","")).toDate()})}),o.chapterReport=l,h(function(){var g,u,b,I,m,D,w=new Set;$.each(l,function(x,S){S.active=!0,w.add(S.chapter.name)}),l.uniqueChapters=[],w.forEach(function(x){l.uniqueChapters.push(x)});var v=[],C=function(){v.length=0,$.each(l[0].report.calendar,function(x,S){v.push({start:S.start,end:S.end,viewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueViewableImpressions:0,femaleUniqueViewableImpressions:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueViewableImpressions:0,age1824MaleUniqueViewableImpressions:0,age2534MaleUniqueViewableImpressions:0,age3544MaleUniqueViewableImpressions:0,age4554MaleUniqueViewableImpressions:0,age55MaleUniqueViewableImpressions:0,age1617FemaleUniqueViewableImpressions:0,age1824FemaleUniqueViewableImpressions:0,age2534FemaleUniqueViewableImpressions:0,age3544FemaleUniqueViewableImpressions:0,age4554FemaleUniqueViewableImpressions:0,age55FemaleUniqueViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0})}),$.each(l,function(x,S){if(S.active){l[x-1]&&2===l[x-1].chapter.managementState&&2===S.chapter.managementState&&l[x-1].chapter.name!==S.chapter.name&&(l.multiChapterShipment=!0);var k=S.report.brochure.Id;$.each(S.report.calendar,function(y,M){M.brochureId=k;var A=v[y];A.viewableImpressions+=M.viewableImpressions,A.activeTimeSeconds+=M.activeTimeSeconds,A.readings+=M.views,A.maleUniqueViewableImpressions+=M.maleViewableImpressions,A.femaleUniqueViewableImpressions+=M.femaleViewableImpressions,A.uniqueReadings+=M.uniqueViews,A.desktopReadings+=M.desktopViews,A.mobileReadings+=M.mobileViews,A.tabletReadings+=M.tabletViews,A.age1617MaleUniqueViewableImpressions+=M.age1617MaleViewableImpressions,A.age1824MaleUniqueViewableImpressions+=M.age1824MaleViewableImpressions,A.age2534MaleUniqueViewableImpressions+=M.age2534MaleViewableImpressions,A.age3544MaleUniqueViewableImpressions+=M.age3544MaleViewableImpressions,A.age4554MaleUniqueViewableImpressions+=M.age4554MaleViewableImpressions,A.age55MaleUniqueViewableImpressions+=M.age55MaleViewableImpressions,A.age1617FemaleUniqueViewableImpressions+=M.age1617FemaleViewableImpressions,A.age1824FemaleUniqueViewableImpressions+=M.age1824FemaleViewableImpressions,A.age2534FemaleUniqueViewableImpressions+=M.age2534FemaleViewableImpressions,A.age3544FemaleUniqueViewableImpressions+=M.age3544FemaleViewableImpressions,A.age4554FemaleUniqueViewableImpressions+=M.age4554FemaleViewableImpressions,A.age55FemaleUniqueViewableImpressions+=M.age55FemaleViewableImpressions})}}),b.validateData(),I.validateData(),m.validateData(),D.validateData()},f=l.summary={};g=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:v,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),u=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:"#00cdbd",fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:v,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:"Wie oft wurde die Prospektseite aufgerufen?",percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_reportBrochure_amountOfViews"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),b=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),I=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:c,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:"#00cdbd",balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(x,S){return-1*x.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(x){return x<0?-1*x+"":x+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),m=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:"#00cdbd",balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),D=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[f],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:"#00cdbd",fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:"#00cdbd",fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:"#00cdbd",fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:"#00cdbd",fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var T=function(){var x=moment(g.startDate).startOf("day").toDate(),S=moment(g.endDate).startOf("day").add(-1,"d").toDate();u.zoom(x,moment(S).add(1,"d").toDate()),function(x,S){f.viewableImpressions=0,f.billableViewableImpressions=0,f.activeTimeSeconds=0,f.readings=0,f.uniqueReadings=0,f.uniqueReadingsHavingViewableImpressions=0,f.uniqueReadingPercentageReads=0,f.maleUniqueViewableImpressions=0,f.femaleUniqueViewableImpressions=0,f.desktopReadings=0,f.mobileReadings=0,f.tabletReadings=0,f.age1617MaleUniqueViewableImpressions=0,f.age1824MaleUniqueViewableImpressions=0,f.age2534MaleUniqueViewableImpressions=0,f.age3544MaleUniqueViewableImpressions=0,f.age4554MaleUniqueViewableImpressions=0,f.age55MaleUniqueViewableImpressions=0,f.age1617FemaleUniqueViewableImpressions=0,f.age1824FemaleUniqueViewableImpressions=0,f.age2534FemaleUniqueViewableImpressions=0,f.age3544FemaleUniqueViewableImpressions=0,f.age4554FemaleUniqueViewableImpressions=0,f.age55FemaleUniqueViewableImpressions=0,f.uniqueReadingPercentage24Reads=0,f.uniqueReadingPercentage2549Reads=0,f.uniqueReadingPercentage5074Reads=0,f.uniqueReadingPercentage75100Reads=0;var k=0,y=0,M=0,A=0,R=0,U=0,V=0,q=0,_=0,B=0,P=0,E=0,L=0,z=0,Y=0;f.start=x,f.end=S,$.each(v,function(N,K){var Q=new Date(K.start);Q<x||Q>S||(f.viewableImpressions+=K.viewableImpressions,f.activeTimeSeconds+=K.activeTimeSeconds,f.readings+=K.readings,f.maleUniqueViewableImpressions+=K.maleUniqueViewableImpressions,f.femaleUniqueViewableImpressions+=K.femaleUniqueViewableImpressions,f.uniqueReadings+=K.uniqueReadings,k+=K.desktopReadings,y+=K.mobileReadings,M+=K.tabletReadings,A+=K.age1617MaleUniqueViewableImpressions,R+=K.age1824MaleUniqueViewableImpressions,U+=K.age2534MaleUniqueViewableImpressions,V+=K.age3544MaleUniqueViewableImpressions,q+=K.age4554MaleUniqueViewableImpressions,_+=K.age55MalUniqueeViewableImpressions,B+=K.age1617FemaleUniqueViewableImpressions,P+=K.age1824FemaleUniqueViewableImpressions,E+=K.age2534FemaleUniqueViewableImpressions,L+=K.age3544FemaleUniqueViewableImpressions,z+=K.age4554FemaleUniqueViewableImpressions,Y+=K.age55FemaleUniqueViewableImpressions)});var j=k+y+M;f.desktopReadings=Math.round(100/(j/k)),f.mobileReadings=Math.round(100/(j/y)),f.tabletReadings=Math.round(100/(j/M)),f.maleUniqueViewableImpressions=Math.round(f.maleUniqueViewableImpressions),f.femaleUniqueViewableImpressions=Math.round(f.femaleUniqueViewableImpressions),i[0].value=f.femaleUniqueViewableImpressions,i[1].value=f.maleUniqueViewableImpressions;var W=f.viewableImpressions-(A+R+U+V+q+_+B+P+E+L+z+Y);W>100&&(A+=W*t.scope.globalSettings.reportAverageAge1617Male,R+=W*t.scope.globalSettings.reportAverageAge1824Male,U+=W*t.scope.globalSettings.reportAverageAge2534Male,V+=W*t.scope.globalSettings.reportAverageAge3544Male,q+=W*t.scope.globalSettings.reportAverageAge4554Male,_+=W*t.scope.globalSettings.reportAverageAge55Male,B+=W*t.scope.globalSettings.reportAverageAge1617Female,P+=W*t.scope.globalSettings.reportAverageAge1824Female,E+=W*t.scope.globalSettings.reportAverageAge2534Female,L+=W*t.scope.globalSettings.reportAverageAge3544Female,z+=W*t.scope.globalSettings.reportAverageAge4554Female,Y+=W*t.scope.globalSettings.reportAverageAge55Female),f.age1617MaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/A)),f.age1824MaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/R)),f.age2534MaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/U)),f.age3544MaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/V)),f.age4554MaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/q)),f.age55MaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/_)),f.age1617FemaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/B)),f.age1824FemaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/P)),f.age2534FemaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/E)),f.age3544FemaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/L)),f.age4554FemaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/z)),f.age55FemaleUniqueViewableImpressions=Math.round(100/(f.viewableImpressions/Y)),c[0].male=Math.round(-1*f.age1617MaleUniqueViewableImpressions),c[1].male=Math.round(-1*f.age1824MaleUniqueViewableImpressions),c[2].male=Math.round(-1*f.age2534MaleUniqueViewableImpressions),c[3].male=Math.round(-1*f.age3544MaleUniqueViewableImpressions),c[4].male=Math.round(-1*f.age4554MaleUniqueViewableImpressions),c[5].male=Math.round(-1*f.age55MaleUniqueViewableImpressions),c[0].female=Math.round(f.age1617FemaleUniqueViewableImpressions),c[1].female=Math.round(f.age1824FemaleUniqueViewableImpressions),c[2].female=Math.round(f.age2534FemaleUniqueViewableImpressions),c[3].female=Math.round(f.age3544FemaleUniqueViewableImpressions),c[4].female=Math.round(f.age4554FemaleUniqueViewableImpressions),c[5].female=Math.round(f.age55FemaleUniqueViewableImpressions),d[0].value=f.desktopReadings,d[1].value=f.mobileReadings,d[2].value=f.tabletReadings,b.validateData(),I.validateData(),m.validateData(),D.validateData(),e.$apply()}(x,S)};g.addListener("zoomed",function(x){T()}),e.toggleChapter=function(x){$.each(l,function(S,k){k.chapter.name===x&&(k.active=!k.active)}),h(function(){C(),T()},50)},C(),u.validateNow(),g.validateNow(),g.setDefaultPeriod(),T()},function(){e.error=!0})})},function(){r.path("/")});var i=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:"#00cdbd",value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],c=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],d=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("brochureService",["$http","$q","$rootScope",function(e,t,a){var n=[],s=[];return a.$on("$locationChangeSuccess",function(){n.length=0,s.length=0}),{getBrochure:function(d){var o=t.defer();return d?e.get(scope.apiEndpoint+"brochures/"+d).then(function(l){o.resolve(l.data)},function(){o.reject()}):n.length>0?o.resolve(n.splice(0,1)[0]):s.push(o),o.promise},getBrochureInfo:function(d){var o=t.defer();return e.get(scope.apiEndpoint+"brochures/"+d+"/ReportInfo").then(function(l){o.resolve(l.data)},function(){o.reject()}),o.promise},getBrochureCalendar:function(d){var o=t.defer();return e.get(scope.apiEndpoint+"brochures/"+d+"/ReportCalendar").then(function(l){o.resolve(l.data)},function(){o.reject()}),o.promise},getBrochureReport:function(d){var o=t.defer();return e.post(scope.apiEndpoint+"brochures/report",d).then(function(l){o.resolve(l.data)},function(){o.reject()}),o.promise},resolve:function(d,o){var l=t.defer();return s.length>d&&(d=s.length),e.get(scope.apiEndpoint+"brochures/"+d+"/"+o).then(function(g){l.resolve(g.data),n.length=0,n.push.apply(n,g.data),s.forEach(function(u){n.length>0?u.resolve(n.splice(0,1)[0]):u.reject()}),s.length=0},function(){l.reject()}),l.promise}}}]),app.controller("CampaignController",["$rootScope","$scope","campaignService","profileService","$timeout","$location","$q",function(e,t,a,n,s,p,h){e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,n.getProfile().then(function(r){r.isAdvertiser||p.path("/").replace();var i=r.guid;e.$watch("profile.guid",function(){i!==r.guid&&p.path("/")})},function(){p.path("/").replace()}),e.data=a,e.isBusy=!0,e.articleFilter=function(r){return r.coverAssetReference},e.advertisementFilter=function(r){return!r.deleted&&!r.hidden},h.all([a.getBannerCampaigns(),a.getMarketResearchs(),a.getSparticleCampaigns(),a.getSpecials(),a.getBrochures(),a.getPremiums(),a.getSupers()]).then(function(){e.isBusy=!1})}]),app.factory("campaignService",["$http","$q",function(e,t){var a=[],n=[],s=[],p=[],h=[],r=[],i=[],c=[],l=function(){var x=t.defer();return a.length>0?x.resolve(a):e.get(scope.apiEndpoint+"campaigns").then(function(S){angular.copy(S.data,a),x.resolve(a)},function(){x.reject()}),x.promise};function F(x){var S=null;return $.each(a,function(k,y){if(y.pin==x)return S=y,!1}),S}return{campaigns:a,specials:r,brochures:i,bannerCampaigns:n,premiums:p,supers:c,marketResearchs:s,sparticleCampaigns:h,getCampaigns:l,getSpecials:function(){var x=t.defer();return r.length>0?x.resolve(r):e.get(scope.apiEndpoint+"specials").then(function(S){angular.copy(S.data,r),x.resolve(r)},function(){x.reject()}),x.promise},getBrochures:function(){var x=t.defer();return i.length>0?x.resolve(i):e.get(scope.apiEndpoint+"brochures").then(function(S){angular.copy(S.data,i),x.resolve(i)},function(){x.reject()}),x.promise},getBannerCampaigns:function(){var x=t.defer();return n.length>0?x.resolve(n):e.get(scope.apiEndpoint+"bannerCampaigns").then(function(S){angular.copy(S.data,n),x.resolve(n)},function(){x.reject()}),x.promise},getMarketResearchs:function(){var x=t.defer();return s.length>0?x.resolve(s):e.get(scope.apiEndpoint+"marketResearch").then(function(S){angular.copy(S.data,s),x.resolve(s)},function(){x.reject()}),x.promise},getPremiums:function(){var x=t.defer();return p.length>0?x.resolve(p):e.get(scope.apiEndpoint+"premiums").then(function(S){angular.copy(S.data,p),x.resolve(p)},function(){x.reject()}),x.promise},getSupers:function(){var x=t.defer();return c.length>0?x.resolve(c):e.get(scope.apiEndpoint+"super").then(function(S){angular.copy(S.data,c),x.resolve(c)},function(){x.reject()}),x.promise},getCampaignByPin:function(x){var S=t.defer();if(a.length>0){var k=F(x);k?S.resolve(k):e.get(scope.apiEndpoint+"campaigns/"+x).then(function(y){S.resolve(y.data)},function(){S.reject()})}else l().then(function(){var y=F(x);y?S.resolve(y):e.get(scope.apiEndpoint+"campaigns/"+x).then(function(M){S.resolve(M.data)},function(){S.reject()})},function(){S.reject()});return S.promise},createAdvertisement:function(x,S){var k=t.defer();return e.post(scope.apiEndpoint+"advertisements",S).then(function(y){x.advertisements.push(y.data),k.resolve(y.data)},function(y){k.reject(y)}),k.promise},deleteAdvertisement:function(x,S){var k=t.defer();return S.deleted=(new Date).getUTCDate(),e.delete(scope.apiEndpoint+"advertisements/"+S.pin).then(function(y){angular.copy(y.data,S),k.resolve(y)},function(){x.deleted=null,k.reject()}),k.promise},updateAdvertisement:function(x){var S=t.defer();return e.put(scope.apiEndpoint+"advertisements",x).then(function(k){angular.copy(k.data,x),S.resolve(k.data)},function(){S.reject()}),S.promise},getReportAdvertisementCalendar:function(x){var S=t.defer();return e.get(scope.apiEndpoint+"campaigns/"+x+"/ReportAdvertisementCalendar").then(function(k){S.resolve(k.data)},function(){S.reject()}),S.promise},getReportContentMarketingCalendar:function(x){var S=t.defer();return e.get(scope.apiEndpoint+"campaigns/"+x+"/ReportContentMarketingCalendar").then(function(k){S.resolve(k.data)},function(){S.reject()}),S.promise},getSparticleCampaigns:function(){var x=t.defer();return h.length>0?x.resolve(h):e.get(scope.apiEndpoint+"sponsoredArticleCampaigns").then(function(S){angular.copy(S.data,h),x.resolve(h)},function(){x.reject()}),x.promise}}}]),app.factory("shipmentService",["$http","$q","$rootScope",function(e,t,a){var n={},s={};return a.$on("$locationChangeSuccess",function(){n.length={},s.length={}}),{getShipment:function(l){var g=t.defer();return n[l]&&n[l].length>0?g.resolve(n[l].splice(0,1)[0]):(s[l]||(s[l]=[]),s[l].push(g)),g.promise},getShipmentPremium:function(){var l=t.defer(),g=function(){var u=ResponsiveBootstrapToolkit.is("xs");e.get(scope.apiEndpoint+"shipment/premium/"+u).then(function(b){b.data&&(b.data.mobile=u),l.resolve(b.data)},function(){l.reject()})};return"complete"!==document.readyState?$(document).ready(g,!1):g(),l.promise},getShipmentSuper:function(){var l=t.defer(),g=function(){var u=ResponsiveBootstrapToolkit.is("xs");e.get(scope.apiEndpoint+"shipment/superCampaign/"+u).then(function(b){b.data&&(b.data.mobile=u),l.resolve(b.data)},function(){l.reject()})};return"complete"!==document.readyState?$(document).ready(g,!1):g(),l.promise},getSurveyForDeeplink:function(l,g){var u=t.defer();return e.get(scope.apiEndpoint+"shipment/survey/"+l+(g?"/true":"/false")).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getTranslatedSurveyForDeeplink:function(l,g,u){var b=t.defer();return e.get(scope.apiEndpoint+"shipment/survey/translate/"+l+(g?"/true/":"/false/")+u).then(function(I){b.resolve(I.data)},function(){b.reject()}),b.promise},resolve:function(l,g,u){var b=t.defer();return s[g]&&s[g].length>l&&(l=s[g].length),e.get(scope.apiEndpoint+"shipment/"+l+"/"+g+(u?"?targetLanguage="+u:"")).then(function(I){n[g]=I.data,s[g]&&s[g].forEach(function(m){n[g].length>0?m.resolve(n[g].splice(0,1)[0]):m.reject()}),s[g]=[],b.resolve(I.data)},function(){b.reject()}),b.promise},clickSurvey:function(l){var g=t.defer();return e.post(scope.apiEndpoint+"shipment/survey/"+l+"/click").then(function(u){g.resolve(u.data)},function(){g.reject()}),g.promise}}}]),app.factory("clickService",["$http","$q",function(e,t){var a=function(f,F,T){var x=t.defer();return e.get(scope.apiEndpoint+f+F+"/"+T).then(function(S){x.resolve(S.data)},function(){x.reject()}),x.promise},n=function(f,F,T){var x=t.defer();return e.post(scope.apiEndpoint+f+F+"/"+T).then(function(S){x.resolve(S.data)},function(){x.reject()}),x.promise};return{clickArticle:function(f,F){return a("click/article/",f,F)},clickBanner:function(f,F){return a("click/banner/",f,F)},clickBannerPost:function(f,F){return n("click/banner/",f,F)},clickDocument:function(f){var F=t.defer();return e.get(scope.apiEndpoint+"click/document/"+f).then(function(T){F.resolve(T.data)},function(){F.reject()}),F.promise},clickFile:function(f){var F=t.defer();return e.get(scope.apiEndpoint+"click/file/"+f).then(function(T){F.resolve(T.data)},function(){F.reject()}),F.promise},clickPremium:function(f,F){return a("click/premiumBanner/",f,F)},clickPremiumPost:function(f,F){return n("click/premiumBanner/",f,F)},clickSnip:function(f,F){return a("click/snip/",f,F)},clickSpecial:function(f,F){return a("click/special/",f,F)},clickSpecialPost:function(f,F){return n("click/special/",f,F)},clickSponsoredArticle:function(f,F){return a("click/sponsoredarticle/",f,F)},clickSuper:function(f,F){return a("click/superBanner/",f,F)},clickSuperPost:function(f,F){return n("click/superBanner/",f,F)},clickSurveyBanner:function(f){return a("click/surveyBanner/",f)},clickSurveyBannerPost:function(f,F){return n("click/surveyBanner/",f,F)},clickNotification:function(f){var F=t.defer();return e.get(scope.apiEndpoint+"click/notification/"+f).then(function(T){F.resolve(T.data)},function(){F.reject()}),F.promise},clickBreaking:function(f){var F=t.defer();return e.get(scope.apiEndpoint+"click/breaking/"+f).then(function(T){F.resolve(T.data)},function(){F.reject()}),F},clickAssetReference:function(f,F){return a("click/assetReference/",f,F)}}}]),app.controller("ClosedChapterController",["$scope","$rootScope","$timeout","profileService","companyNewsService","$window","$location","$uibModal","$state","closedChapterService",function(e,t,a,n,s,p,h,r,i,c){e.working=!1,e.success=!1,e.title=t.scope.currentScope.chapter.name,e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage;var d=h.search().returnUrl;d&&window.sessionStorage.setItem("returnUrl",d),e.login=function(){i.go("app.root.login",{closedToken:h.search().token})},e.register=function(){i.go("app.register",{closedToken:h.search().token})},e.hasRequest=!1,c.hasChapterRequest().then(function(o){e.hasRequest=o}),c.getRSS().then(function(o){e.feedArticles=o}),s.getCompanyNews().then(function(o){e.companyNews=o}),e.reload=function(){p.location.reload()},e.request=function(){c.getChapterRequest().then(function(){e.hasRequest=!0})},n.getProfile().then(function(o){o.hasChapterAccess&&h.path("/").replace(),h.search().token&&o.isRegistered?(e.working=!0,c.consumeChapterUserToken(h.search().token).then(function(){e.consumeError=!1,a(function(){e.working=!1,e.success=!0,p.location.reload()},1e3)},function(){e.working=!1,e.consumeError=!0})):o.hasChapterAccess&&h.path("/").replace()})}]),app.factory("closedChapterService",["$http","$q",function(e,t){return{getChapterRequest:function(){var h=t.defer();return e.get(scope.apiEndpoint+"closedChapter/request").then(function(r){h.resolve()}),h.promise},hasChapterRequest:function(){var h=t.defer();return e.get(scope.apiEndpoint+"closedChapter/hasRequest").then(function(r){h.resolve(r.data)}),h.promise},consumeChapterUserToken:function(h){var r=t.defer();return e.put(scope.apiEndpoint+"closedChapter/"+h).then(function(i){r.resolve(i)},function(){r.reject()}),r.promise},getRSS:function(){var h=t.defer();return e.get(scope.apiEndpoint+"closedChapter/RSS").then(function(r){h.resolve(r.data)}),h.promise}}}]),app.directive("a",["$state","$rootScope","$location","$timeout",function(e,t,a,n){return{restrict:"E",link:function(s,p){t.app&&$(p).click(function(h){if("_blank"===$(p).attr("target")){h.preventDefault();var r=$(p).attr("href");!r.match("^(?:https?:)?//.*")||r.match("https?://(.*/)?"+location.hostname+".*")?r.startsWith("/click/")?n(function(){a.url(r)}):-1!==r.indexOf("/document/")||-1!==r.indexOf("/pdf/")?e.go("app.documentDownload",{id:/[^/]*$/.exec(r)[0]}):-1!==r.indexOf("/file/")?e.go("app.fileDownload",{id:/[^/]*$/.exec(r)[0]}):t.scope.currentChapter.path.length>1?r.startsWith(t.scope.currentScope.network.path+t.scope.currentChapter.path)?n(function(){a.url(r.replace(t.scope.currentScope.network.path+t.scope.currentChapter.path,""))}):window.location.href=r:(chapters=t.scope.chapters.filter(function(i){return 2===i.managementState&&i.path!=t.scope.currentChapter.path}),chapters.forEach(function(i){r.startsWith(t.scope.currentScope.network.path+i.path)&&(window.location.href=r)}),n(function(){a.url(r.replace("https://"+location.hostname,""))})):typeof cordova<"u"?cordova.InAppBrowser.open(r,"_system","location=yes,closebuttoncaption=X"):(console.log("external link: error while calling in app browser"),window.open(r,"_blank"))}})}}}]),app.directive("amchart",function(){var e=!1;return{restrict:"A",scope:{config:"="},link:function(t,a,n){e&&e.destroy(),(e=new AmCharts.makeChart(a[0],t.config||{})).pathToImages="/content/amcharts/images/",n.chart&&(t.$parent[n.chart]=e)}}}),function(){"use strict";angular.module("angular-loading-bar",["cfp.loadingBarInterceptor"]),angular.module("chieffancypants.loadingBar",["cfp.loadingBarInterceptor"]),angular.module("cfp.loadingBarInterceptor",["cfp.loadingBar"]).config(["$httpProvider",function(e){e.interceptors.push(["$q","$cacheFactory","$timeout","$rootScope","$log","cfpLoadingBar",function(a,n,s,p,h,r){var o,i=0,c=0,d=r.latencyThreshold;function l(){s.cancel(o),r.complete(),c=0,i=0}function g(u){var b,I=n.get("$http"),m=e.defaults;(u.cache||m.cache)&&!1!==u.cache&&("GET"===u.method||"JSONP"===u.method)&&(b=angular.isObject(u.cache)?u.cache:angular.isObject(m.cache)?m.cache:I);var D=void 0!==b&&void 0!==b.get(u.url);return void 0!==u.cached&&D!==u.cached?u.cached:(u.cached=D,D)}return{request:function(u){return!u.ignoreLoadingBar&&!g(u)&&(p.$broadcast("cfpLoadingBar:loading",{url:u.url}),0===i&&(o=s(function(){r.start()},d)),i++,r.set(c/i)),u},response:function(u){return u&&u.config?(!u.config.ignoreLoadingBar&&!g(u.config)&&(c++,p.$broadcast("cfpLoadingBar:loaded",{url:u.config.url,result:u}),c>=i?l():r.set(c/i)),u):(h.error("Broken interceptor detected: Config object not supplied in response:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),u)},responseError:function(u){return u&&u.config?(!u.config.ignoreLoadingBar&&!g(u.config)&&(c++,p.$broadcast("cfpLoadingBar:loaded",{url:u.config.url,result:u}),c>=i?l():r.set(c/i)),a.reject(u)):(h.error("Broken interceptor detected: Config object not supplied in rejection:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),a.reject(u))}}}])}]),angular.module("cfp.loadingBar",[]).provider("cfpLoadingBar",function(){this.includeSpinner=!0,this.includeBar=!0,this.latencyThreshold=100,this.startSize=.02,this.parentSelector="body",this.spinnerTemplate='<div id="loading-bar-spinner"><div class="spinner-icon"></div></div>',this.loadingBarTemplate='<div id="loading-bar"><div class="bar"><div class="peg"></div></div></div>',this.$get=["$injector","$document","$timeout","$rootScope",function(e,t,a,n){var s,c,d,p=this.parentSelector,h=angular.element(this.loadingBarTemplate),r=h.find("div").eq(0),i=angular.element(this.spinnerTemplate),o=!1,l=0,g=this.includeSpinner,u=this.includeBar,b=this.startSize;function m(f){o&&(r.css("width",100*f+"%"),l=f,a.cancel(c),c=a(function(){D()},250))}function D(){if(!(w()>=1)){var f,F=w();f=F>=0&&F<.25?(3*Math.random()+3)/100:F>=.25&&F<.65?3*Math.random()/100:F>=.65&&F<.9?2*Math.random()/100:F>=.9&&F<.99?.005:0,m(w()+f)}}function w(){return l}function v(){l=0,o=!1}return{start:function I(){s||(s=e.get("$animate"));var f=t.find(p).eq(0);a.cancel(d),!o&&(n.$broadcast("cfpLoadingBar:started"),o=!0,u&&s.enter(h,f,angular.element(f[0].lastChild)),g&&s.enter(i,f,angular.element(f[0].lastChild)),m(b))},set:m,status:w,inc:D,complete:function C(){s||(s=e.get("$animate")),n.$broadcast("cfpLoadingBar:completed"),m(1),a.cancel(d),d=a(function(){var f=s.leave(h,v);f&&f.then&&f.then(v),s.leave(i)},500)},includeSpinner:this.includeSpinner,latencyThreshold:this.latencyThreshold,parentSelector:this.parentSelector,startSize:this.startSize}}]})}(),app.component("apicodoChapterGroups",{templateUrl:"/ClientApp/src/legacy-app/common/apicodoChapterGroups.html",bindings:{},controller:["$scope","$rootScope","$state","$timeout",function(e,t,a,n){if((e=this).show=!1,e.chapterPath="",e.chapterGroupChapters=[],e.showEvent=!1,e.swiperInitialized=!1,t.scope.currentScope.chapter.settings.configurations.enableChapterGroupsDisplay){if(e.chapterPath=t.scope.currentScope.chapter.path,e.chapterPath.endsWith("/")&&(e.chapterPath=e.chapterPath.substring(0,e.chapterPath.length-1)),t.scope.currentScope.chapter.chapterGroups)for(var s=t.scope.currentScope.chapter.chapterGroups.sort(function(h,r){return h.order-r.order}),p=0;p<s.length;p++)s[p].isFrontpageMenuStrip&&(e.chapterGroupChapters=e.chapterGroupChapters.concat(s[p].chapters.sort(function(h,r){return h.order-r.order})));e.shouldShowIcon=t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration&&1===t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration.CalendarLocation,e.shouldShowIcon&&(t.scope.currentChapter.settings.configurations.enableBirthdayCalendar||t.scope.currentChapter.settings.configurations.enableEventCalendar||t.scope.currentChapter.settings.configurations.enableEventArticles)&&(e.showEvent=!0),e.show=e.chapterGroupChapters.length>0,e.swiperInitialized||n(function(){e.swiperInitialized=new Swiper(".swiper-container",{slidesPerView:"auto",direction:"horizontal",navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})})}}]}),app.component("apicodoHeader",{templateUrl:"/ClientApp/src/legacy-app/common/apicodoHeader.html",bindings:{mobile:"<",searchGuid:"=?"},controller:["$scope","$rootScope","$state","$window","$location","$timeout","searchService","profileService","logoService","translationService","notificationService",function(e,t,a,n,s,p,h,r,i,c,d){function l(g){t.$apply(function(){angular.element(g.target).hasClass("searchbar")||(e.show=!1,n.removeEventListener("click",l))})}(e=this).guid="",e.focusIndex=-1,e.focusIndexMax=0,e.displayedItems=null,e.emptyResult=!1,e.searchGuid="",e.networkIconBigUrl=i.getNetworkIconBigUrl(),e.notification=d,e.showSnipMenuItem=t.showSnipSlide,e.small=ResponsiveBootstrapToolkit.is("<=xs"),$(window).resize(function(){e.small=ResponsiveBootstrapToolkit.is("<=xs")}),0!==t.scope.currentScope.chapter.settings.featureTranslationProvider&&(angular.element(document).ready(function(){e.availableTargetLanguages=[],$(".search-container"),$(".header-language-switch"),$(".header-language-icon"),c.getAvailableTargetLanguages().then(function(I){for(var m in I)e.availableTargetLanguages.push({languageCode:m})}),e.selectedTargetLanguage=t.profile.favoriteLanguage,t.$on("$stateChangeSuccess",function(){e.selectedTargetLanguage=t.profile.favoriteLanguage})}),e.translate=function(){t.$broadcast("apicodo.translate",e.selectedTargetLanguage)}),e.showCalendarIcon=!1,e.shouldShowIcon=t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration&&0===t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration.CalendarLocation,e.shouldShowIcon&&(t.scope.currentChapter.settings.configurations.enableBirthdayCalendar||t.scope.currentChapter.settings.configurations.enableEventCalendar||t.scope.currentChapter.settings.configurations.enableEventArticles)&&(e.showCalendarIcon=!0),r.getProfile().then(function(g){e.guid=g.guid}),e.switchChapter=t.switchChapter,e.scope=t.scope,e.query=function o(){return a.includes("app.search")?s.search().q:""}(),e.hits=null,e.show=!1,e.search=function(){a.includes("app.search")?s.search("q",e.query):""===e.query?e.hits=null:h.search(e.query).then(function(g){e.show=!0,e.focusIndexMax=0,e.focusIndex=-1,e.emptyResult=!1,e.displayedItems=[],angular.forEach(g.articles,function(u,b){b<5&&(u.article.focusIndex=e.focusIndexMax,e.focusIndexMax++,e.displayedItems.push(u))}),0===e.focusIndexMax&&(e.focusIndexMax=1,e.emptyResult=!0),e.hits=g,t.scope.currentScope.network.settings.isStaffDirectoryEnabled&&h.getStaffDirectoryUsers(e.query).then(function(u){angular.forEach(u,function(b,I){I<5&&(b.focusIndex=e.focusIndexMax,e.focusIndexMax++,e.displayedItems.push(b))}),0===e.focusIndexMax&&(e.focusIndexMax=1),e.staffDirectoryUserHits=u})})},t.$on("keydown",function(g,u,b){if(!a.includes("app.search")&&(27===u&&(e.show&&(e.show=!1,b.preventDefault(),t.$apply()),b.preventDefault()),40===u&&(e.focusIndex===e.focusIndexMax&&(e.focusIndex=-1),e.focusIndex=e.focusIndex+1,b.preventDefault(),t.$apply()),38===u&&(e.focusIndex>-1&&(e.focusIndex=e.focusIndex-1,t.$apply()),b.preventDefault()),13===u&&-1!==e.focusIndex)){if(0===e.focusIndex&&e.emptyResult)return a.go("app.root.snips"),e.clear(),void b.preventDefault();if(e.focusIndex===e.focusIndexMax)return a.go("app.search",{q:e.query}),e.clear(),void b.preventDefault();var I=e.displayedItems[e.focusIndex];if(I.slug)return t.switchChapter(I.slug),e.clear(),void b.preventDefault();if(I.levelId)return a.go("app.public-profile",{id:I.guid}),e.clear(),void b.preventDefault();if(I.articleListDisplayableType){switch(I.articleListDisplayableType){case 4:a.go("app.snipDetail",{id:I.id});break;case 1:a.go("app.articleDetail",{id:I.id});break;default:a.go("app.sponsoredArticleDetail",{id:I.id})}return e.clear(),void b.preventDefault()}}}),e.focusItem=function(g){e.focusIndex=g.focusIndex},e.focusShowmore=function(){e.focusIndex=e.focusIndexMax},e.focusNewSnip=function(){e.focusIndex=0},e.clear=function(){e.query="",e.hits=null,e.focusIndexMax=0,e.focusIndex=-1,e.emptyResult=!1,e.displayedItems=[]},e.openSearch=function(){e.show=!0,e.show&&p(function(){n.addEventListener("click",l)})},e.details=function(){a.includes("app.search")||(a.go("app.search",{q:e.query}),e.query="",e.hits=null)},e.goSnips=function(){a.go("app.root.snips")}}]}),app.directive("authorizedClick",["profileService","$uibModal","$analytics","$timeout",function(e,t,a,n){return{restrict:"A",link:function(s,p,h){var r=null;s.$watch("element[0].onclick",function(){p[0].onclick&&(r=p[0].onclick,p[0].onclick=null)});var i=$._data($(p)[0]).events;i&&i.click&&i.click.reverse(),p.on("click",function(c){if(!e.profile.isRegistered){c.stopImmediatePropagation();var d=function(){n(function(){e.profile.isRegistered&&$(p).click()},900,!1)};return t.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return d},facebookSignUpData:!1,login:!1}}),a.eventTrack("ShowAuthenticationRequiredDialog",{category:"Conversion",label:h.authorizedClickSource}),!1}if(!e.profile.hasPartnerAccessAllowed){c.stopImmediatePropagation();var o=function(){n(function(){e.profile.hasPartnerAccessAllowed&&$(p).click()},900,!1)};return t.open({templateUrl:"/ClientApp/src/legacy-app/authentication/allowPartnerAccessDialog.html",controller:"AllowPartnerAccessDialog",size:"lg",resolve:{authenticationCallback:function(){return o}}}),!1}r&&r.call(p,c)}),i&&i.click&&i.click.reverse()}}}]),app.directive("automaticFocus",["$timeout",function(e){return{restrict:"A",link:function(t,a){/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||e(function(){$(a).focus()})}}}]),app.directive("autosize",["$timeout",function(e){return{restrict:"A",link:function(t,a,n,s){var p;e(function(){autosize(a),p&&p()}),$(a).parents(".modal").on("shown.bs.modal",function(h){var r=document.createEvent("Event");r.initEvent("autosize.update",!0,!1),a[0].dispatchEvent(r)}),/firefox/i.test(navigator.userAgent)&&(p=function(h){if(!a.val()){a.val(a.prop("placeholder")),a.css("color","#7F7F7F");var r=document.createEvent("Event");r.initEvent("autosize.update",!0,!1),a[0].dispatchEvent(r),e(function(){a.val(""),a.css("color","")})}},$(a).on("input",p),$(window).on("resize",p))}}}]),app.directive("birthYearValidation",function(){return{require:"ngModel",link:function(e,t,a,n){n.$parsers.unshift(function(s){if(null==s)return"";var p=s.replace(/[^0-9]/g,"");return p!=s&&(n.$setViewValue(p),n.$render()),p}),n.$parsers.push(function(s){if(!s)return null;var p=parseInt(s.toString().replace(/[^0-9]/g,""));return p!=s&&(n.$setViewValue(p),n.$render()),parseInt(p)}),n.$parsers.push(function(s){if(!s||4!=s.toString().length||0!==s.toString().lastIndexOf("20",0)&&0!==s.toString().lastIndexOf("19",0))return n.$setValidity("year",!1),s;n.$setValidity("year",!0);var p=moment().year()-moment(s.toString(),"YYYY").year();return n.$setValidity("age",!(p<0)),p>120&&n.$setValidity("year",!1),s})}}}),app.component("chapterLogo",{templateUrl:"/ClientApp/src/legacy-app/common/chapterLogo.html",bindings:{},controller:["$rootScope","logoService",function(e,t){var a=this;a.showChapterSwitch=e.scope.currentScope.network.chapters.filter(function(n){return 2===n.managementState}).length>1,a.hasChapterLogo=t.hasChapterLogo(e.scope.currentScope.chapter),a.hasChapterLogoDark=t.hasChapterLogoDark(e.scope.currentScope.chapter),a.networkLogoUrl=t.getNetworkLogoUrl(),a.networkLogoDarkUrl=t.getNetworkLogoDarkUrl(),a.chapterLogoUrl=t.getChapterLogoUrl(),a.chapterLogoDarkUrl=t.getChapterLogoDarkUrl()}]}),app.directive("chart",function(){return{restrict:"E",template:"<canvas></canvas>",scope:{chartObject:"=value"},link:function(a,n,s){var r,p=n.find("canvas")[0],h=p.getContext("2d"),i={type:s.type||"Line",width:s.width||600,height:s.height||400};p.width=i.width,p.height=i.height,r=new Chart(h),a.$watch(function(){return n.attr("type")},function(d){d&&(i.type=d,r[i.type](a.chartObject.data,a.chartObject.options))}),a.$watch(function(){return a.chartObject},function(d){d&&r[i.type](a.chartObject.data,a.chartObject.options)})}}}),app.directive("compile",["$compile",function(e){return{scope:!0,link:function(t,a,n){var s;n.$observe("template",function(p){s=e(p)(t),a.html(""),a.append(s)})}}}]),app.component("cookiesConsent",{templateUrl:"/ClientApp/src/legacy-app/common/cookiesConsent.html",controller:["profileService",function(e){var t=this;t.closeCookiesConsent=!1,t.consentCookies=function(){t.closeCookiesConsent=!0,e.consentCookies().then(function(){window.location.reload()},function(){t.closeCookiesConsent=!1,console.error("Could not obtain Cookies Consent.")})}}]}),app.component("customChapterLogo",{templateUrl:"/ClientApp/src/legacy-app/common/customChapterLogo.html",bindings:{},controller:["$scope","$rootScope","scopeService","logoService",function(e,t,a,n){var s=this;s.isManagedAlone=1===t.scope.currentScope.network.chapters.filter(function(){return 2===this.managementState}).length,s.chapterLogoUrl=n.getChapterLogoUrl(t.scope.currentScope.chapter),s.hasChapterLogo=n.hasChapterLogo()}]}),app.directive("ellipsis",["$timeout",function(e){return{restrict:"A",link:function(t,a){e(function(){$(a).ellipsis({responsive:!0})})}}}]),app.directive("emailValidation",function(){var e=/[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/;return{require:"ngModel",link:function(t,a,n,s){s.$parsers.unshift(function(p){if(e.test(p))return s.$setValidity("email",!0),p;s.$setValidity("email",!1)})}}}),app.service("fileUploadService",["$http","$q",function(e,t){this.uploadFileToUrl=function(a,n){var s=t.defer(),p=new FormData;return p.append("file",a),e.post(n,p,{transformRequest:angular.identity,headers:{"Content-Type":void 0}}).then(function(h){s.resolve(h)}).error(function(){s.reject()}),s.promise}}]),app.factory("formatterService",["$location","scopeService","$rootScope",function(e,t,a){return{getShortDateFormatString:function(){return moment.localeData(a.scope.currentScope.network.settings.languageCode).longDateFormat("L")},getShortDateTimeFormatString:function(){return moment.localeData(a.scope.currentScope.network.settings.languageCode).longDateFormat("L")+" "+moment.localeData(a.scope.currentScope.network.settings.languageCode).longDateFormat("LT")},momentFromNowAsString:function(r){var i=new moment(r,"YYYY-MM-DD HH:mm:ss","en");return moment.locale(a.scope.currentScope.network.settings.languageCode),(r=i.locale(a.scope.currentScope.network.settings.languageCode?a.scope.currentScope.network.settings.languageCode:"de")).fromNow()},momentFromNowTimeout:function(r){var i=moment.duration(moment().diff(r)).asMinutes(),c=1e4;return i>10?c=3e5:i>1&&(c=6e4),c}}}]),app.directive("iframeSetDimensionsOnload",[function(){return{restrict:"A",link:function(e,t,a){t.on("load",function(){var n=t[0],s=n.contentDocument?n.contentDocument:n.contentWindow.document;n.style.visibility="hidden",n.style.height="10px";var p=getDocHeight(s);p<200&&(p=250,console.log("Unable to determine iframe height. Fallback to 250 px.")),n.style.height=p+4+"px",n.style.visibility="visible"})}}}]),app.directive("imageLoad",function(){return{restrict:"A",link:function(e,t,a){t.on("load",function(){e.$apply(a.imageLoad)})}}}),app.service("imageUrlBuilderService",["$rootScope",function(e){return this.createCdnImageUrl=function(a,n){return a?e.scope.globalSettings.blobStorageCdnUrl+"/"+e.scope.globalSettings.blobStorageContainerNameImage+"/"+a+"?"+n:null},this}]),app.directive("integer",function(){return{require:"ngModel",link:function(e,t,a,n){n.$parsers.unshift(function(s){return parseInt(s)})}}}),app.directive("keyTrap",["$rootScope",function(e){return function(t,a){a.bind("keydown",function(n){e.$broadcast("keydown",n.keyCode,n)})}}]),function(){function e(t){return["$rootScope","$window","$log",function(a,n,s){var p;try{p=n[t]}catch{p={}}for(var i,c,o,h=p,r={$default:function(l){for(var g in l)angular.isDefined(r[g])||(r[g]=l[g]);return r},$reset:function(l){for(var g in r)"$"===g[0]||delete r[g];return r.$default(l)}},d=0;d<h.length;d++)try{(o=h.key(d))===o&&(r[o]=angular.fromJson(h.getItem(o)))}catch{}return i=angular.copy(r),a.$watch(function(){c||(c=setTimeout(function(){if(c=null,!angular.equals(r,i)){for(var l in angular.forEach(r,function(g,u){angular.isDefined(g)&&"$"!==u[0]&&h.setItem(u,angular.toJson(g)),delete i[u]}),i)h.removeItem(l);i=angular.copy(r)}},100))}),"localStorage"===t&&n.addEventListener&&n.addEventListener("storage",function(l){if(l.newValue)try{r[l.key]=angular.fromJson(l.newValue)}catch{r[l.key]=l.newValue}else delete r[l.key];i=angular.copy(r),a.$apply()}),r}]}app.factory("localStorageService",e("localStorage")).factory("sessionStorageService",e("sessionStorage"))}(),app.factory("logoService",["$location","scopeService","$rootScope",function(e,t,a){var n=t.getGlobalSettings().blobStorageCdnUrl+"/"+t.getGlobalSettings().blobStorageContainerNameLogo,u=function(m){return m||(m=a.scope.currentScope.chapter),!!m.settings.chapterLogoCache};return{getEditorIconUrl:function(){return n+"/default/icon/editor.ico"},getPartnerLogoUrl:function(m){return m||(m=a.scope.currentScope.chapter),null==m||null==m.partner.settings.partnerLogoCache?n+"/default/partner/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/partner/"+m.partnerId+".png?cache="+m.partner.settings.partnerLogoCache},getNetworkIconSmallUrl:function(m){return m||(m=a.scope.currentScope.network),null==m||null==m.settings.networkIconSmallCache?n+"/default/icon/small.ico":n+"/"+m.slug+"/icon/small.ico"},getNetworkIconBigUrl:function(m){return m||(m=a.scope.currentScope.network),null==m||null==m.settings.networkIconBigCache?n+"/default/icon/big.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/"+m.slug+"/icon/big.png?cache="+m.settings.networkIconBigCache},getNetworkLogoUrl:function(m){return m||(m=a.scope.currentScope.network),null==m||null==m.settings.networkLogoCache?n+"/default/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/"+m.slug+".png?cache="+m.settings.networkLogoCache},getNetworkLogoDarkUrl:function(m){return m||(m=a.scope.currentScope.network),null==m?n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoCache:null==m.settings.networkLogoDarkCache?null!=m.settings.networkLogoCache?n+"/"+m.slug+".png?cache="+m.settings.networkLogoCache:n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/"+m.slug+"-dark.png?cache="+m.settings.networkLogoDarkCache},getChapterLogoUrl:function(m){return m||(m=a.scope.currentScope.chapter),null==m||null==m.settings.chapterLogoCache?n+"/default/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/chapter/logo/"+m.slug+"?cache="+m.settings.chapterLogoCache},getChapterLogoDarkUrl:function(m){return m||(m=a.scope.currentScope.chapter),null==m?n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoDarkCache:null==m.settings.chapterLogoDarkCache?null!=m.settings.chapterLogoCache?n+"/chapter/logo/"+m.slug+"?cache="+m.settings.chapterLogoCache:n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoDarkCache:n+"/chapter/logo/"+m.slug+"-dark?cache="+m.settings.chapterLogoDarkCache},getChapterPictureUrl:function(m){return m||(m=a.scope.currentScope.chapter),null==m||null==m.settings.chapterPictureCache?n+"/default/chapter/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/chapter/picture/"+m.slug+"?cache="+m.settings.chapterPictureCache},getChapterEventPictureUrl:function(m){return m||(m=a.scope.currentScope.chapter),null==m||null==m.settings.configurations.chapterEventPictureCache?n+"/default/event/1.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/chapter/event/"+m.slug+"?cache="+m.settings.configurations.chapterEventPictureCache},hasChapterLogo:u,hasChapterLogoDark:function(m){return m||(m=a.scope.currentScope.chapter),!!m.settings.chapterLogoDarkCache||u(m)},getLogoContainerUrl:function(){return n}}}]),app.factory("markdownConverterService",["$rootScope","$http","$q","authService",function(e,t,a,n){var s=TurndownService;s.addRule&&s.addRule("emptyLine",{filter:function(i){return"p"===i.nodeName.toLowerCase()&&"<br>"===i.innerHTML},replacement:function(){return"<br>"}}),showdown.setOption("simpleLineBreaks",!0),showdown.setOption("strikethrough",!0);var p=new showdown.Converter({simpleLineBreaks:!0,strikethrough:!0});return{toMarkdown:function(i){return s.turndown(i||"")},toHtml:function(i){var c=p.makeHtml(i);return c&&(c=c.replace(new RegExp("\\r?\\n","g"),"")),c}}}]),app.directive("metaArticle",MetaArticleDirective),MetaArticleDirective.$inject=["metaService"],app.directive("metaHead",["metaService",function(e){return{restrict:"E",link:function(t,a,n){t.$watch(function(){return n.title+n.description+t.$eval(n.article)+n.article},function(){(n.title||n.description)&&e.push(n.title,n.description)}),a.remove()}}}]),app.factory("metaService",["$location","scopeService","logoService","$rootScope",function(e,t,a,n){var s=function(l,g){var u=l.replace(":","\\:");g||(g=""),$("head").find("meta[name='"+u+"']").length?$("meta[name='"+u+"']").attr("content")!==g&&$("meta[name='"+u+"']").attr("content",g):$("head").append('<meta name="'+l+'" content="'+g.replace('"',"$quot;")+'">')},p=function(l,g){var u=l.replace(":","\\:");g||(g=""),$("head").find("meta[property='"+u+"']").length?$("meta[property='"+u+"']").attr("content")!==g&&$("meta[property='"+u+"']").attr("content",g):$("head").append('<meta property="'+l+'" content="'+g.replace('"',"$quot;")+'">')},r=function(l){var g=l.replace(":","\\:");$("head").find("meta[name='"+g+"']").remove(),$("head").find("meta[property='"+g+"']").remove(),$("head").find("link[rel='canonical']").remove()},i=function(){s("author",scope.currentScope.network.name),s("date",(new Date).toISOString()),p("og:type","website"),p("og:image",a.getNetworkLogoUrl()+"&preset=social-media"),s("twitter:image:src",a.getNetworkLogoUrl()+"&preset=social-media"),r("article:publisher"),r("article:published_time"),r("article:section")};return{stateChanged:function(l){l&&i()},push:function(l,g){i();var u=t.getNetworkUrl();p("og:url",u+e.path()),document.title=l,p("og:title",l),s("twitter:title",l),s("description",g),p("og:description",g),s("twitter:description",g)},setFavicon:function(l){var g=$("head").find('link[rel="shortcut icon"]');g.length&&g.attr("href",l?a.getEditorIconUrl():a.getNetworkIconSmallUrl())},generalPush:function(l){if(l instanceof MetaInformationBase){document.title=l.title;var g=t.getNetworkUrl();l.canonicalLink&&($("head").find("link[rel='canonical']").length?$("link[rel='canonical']").attr("href")!==l.canonicalLink&&$("link[rel='canonical']").attr("href",l.canonicalLink):$("head").append('<link rel="canonical" href="'+l.canonicalLink.replace('"',"$quot;")+'">')),p("og:type",l.type),p("og:title",l.title),p("og:url",g+l.path),p("og:description",l.description),p("og:image",l.imageUrl),s("twitter:title",l.title),s("description",l.description),s("twitter:description",l.description),s("author",l.getFullAuthorName()),s("date",l.getMetaDate()),s("twitter:site",scope.currentScope.chapter.settings.seoTwitterSite),s("twitter:image:src",l.imageUrl),l.removeAttributes&&l.removeAttributes.forEach(function(u){r(u)}),"article"===l.type?($("head").attr("prefix","og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"),p("article:publisher",scope.currentScope.chapter.settings.seoFacebookPublisher),p("article:published_time",l.getMetaDate())):$("head").attr("prefix","og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#")}}}}]),app.directive("metaSnip",MetaSnipDirective),MetaSnipDirective.$inject=["metaService"],app.directive("metaSponsoredArticle",MetaSponsoredArticleDirective),MetaSponsoredArticleDirective.$inject=["metaService"],app.directive("metaStaticArticle",MetaStaticArticleDirective),MetaStaticArticleDirective.$inject=["metaService"],app.directive("minCapitals",function(){return{restrict:"A",require:"ngModel",link:function(e,t,a,n){n.$validators.minCapitals=function(s){return!!(n.$isEmpty(s)||(s.match(/[A-Z]/g)||[]).length>=a.minCapitals)}}}}),app.directive("minNumbers",function(){return{restrict:"A",require:"ngModel",link:function(e,t,a,n){n.$validators.minNumbers=function(s){return!!(n.$isEmpty(s)||(s.match(/[0-9]/g)||[]).length>=a.minNumbers)}}}}),app.directive("minSpecialChars",function(){return{restrict:"A",require:"ngModel",link:function(e,t,a,n){n.$validators.minSpecialChars=function(s){return!!(n.$isEmpty(s)||(s.match(/[^A-Za-z0-9]/g)||[]).length>=a.minSpecialChars)}}}}),app.directive("momentFromNow",["$interval","$timeout",function(e,t){return{restrict:"A",scope:!1,link:function(a,n,s){var p,h;function r(){if(!h){var i=new moment(s.momentFromNow,"ddd MMM DD YYYY HH:mm:ss","en");moment.locale(a.$root.scope.currentScope.network.settings.languageCode),h=i.locale(a.$root.scope.currentScope.network.settings.languageCode?a.$root.scope.currentScope.network.settings.languageCode:"de")}var c=h.fromNow();n[0].innerText=c,n[0].textContent=c;var d=moment.duration(moment().diff(h)).asMinutes(),o=1e4;d>10?o=3e5:d>1&&(o=6e4),p=t(function(){r()},o,!1)}t(function(){r()}),n.on("$destroy",function(){t.cancel(p)})}}}]),app.directive("noReturn",function(){return{require:"ngModel",link:function(e,t,a,n){t.keypress(function(s){return"13"!=s.which}),n.$parsers.unshift(function(s){if(null==s)return"";var p=s.replace("\r","").replace("\n"," ");return p!=s&&(n.$setViewValue(p),n.$render()),p})}}}),app.component("oha",{templateUrl:"/ClientApp/src/legacy-app/common/oha.html",bindings:{snip:"<",article:"<",assetReference:"<",size:"@",source:"@"},controller:["$rootScope","$element","$timeout","$analytics","snipService","articleService","assetService",function(e,t,a,n,s,p,h){var r=this;r.profile=e.profile;var c,d,i=t,o=i.find(".oha-text"),l=i.find(".oha-score-tspan");r.isArticle=!1,r.isSnip=!1,r.isAssetReference=!1,r.isDisabled=!1,r.isPreview=!1,r.isLoading=!1,r.showLikes=!1,r.showScore=!0,r.showComponent=!0,r.ohaAdditionalClass="",r.ohaName=e.scope.currentScope.network.getResourceOrKeyName("web_common_oha"),this.$onInit=function(){r.article?(r.isArticle=!0,r.showLikes=e.scope.currentScope.chapter.settings.enableOhaLikes,r.showScore=!e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig<1,r.showComponent=!e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig<2,c=r.article,d=p):r.snip?(r.isSnip=!0,r.showLikes=e.scope.currentScope.chapter.settings.enableOhaLikes,r.showScore=!e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig<1,r.showComponent=!e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig<2,c=r.snip,d=s):r.assetReference&&(r.isAssetReference=!0,c=r.assetReference,r.showScore=!e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig<1,r.showComponent=!e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig<2),e.scope.network.settings.configurations.ohaConfigurationModel&&e.scope.network.settings.configurations.ohaConfigurationModel.useIcon&&(r.ohaAdditionalClass=e.scope.network.settings.configurations.ohaConfigurationModel.additionalClass,r.ohaName=String.fromCharCode(e.scope.network.settings.configurations.ohaConfigurationModel.charCode)),r.isAnimated=!r.isAssetReference&&!r.showLikes&&"ArticleDisplayable"!==r.source&&"xs"!==r.size,r.isTransitioned=!r.isAssetReference&&"ArticleDisplayable"!==r.source,r.isDisabled=!r.isAssetReference&&(c.archived||c.deleted),r.isPreview=r.isArticle&&c.isPreview,r.size=r.size?r.size:"md"},r.getReferenceScore=function(){return c?r.isAssetReference||r.showLikes?c.likes:c.score<1?c.score:1:0},r.getScore=function(){if(r.isDisabled||!c||typeof c.likes>"u")return"...";if(!r.isAssetReference&&!r.showLikes){var u=c.score;return(u<1?100*u:100).toFixed(u<1?1:0).replace(/\./g,",")}return c.likes.toString()},r.iLike=function(){return c?c.iLike:null},r.oha=function(){if(!(r.isDisabled||e.profile.readOnlyMode||r.isPreview||r.isLoading)&&c)if(r.isTransitioned||(r.isTransitioned=!0),r.isLoading=!0,o.addClass("oha-loading").removeClass("oha-liked"),c.iLike=!c.iLike,r.isAssetReference)h.like(c.guid).then(function(I){r.animateOhaButton(I.likes)},function(){c.iLike=!c.iLike,r.animateOhaButton(c.score)});else{var u=c.score,b=c.likes;c.iLike&&a(function(){r.animateOhaPlanet(0)}),d.like(c.id).then(function(I){var m=I.score,D=I.likes;n.eventTrack("o-ha!",{category:"Interaction",label:r.source,value:c.iLike?1:0}),r.showLikes?((c.iLike&&b>D||!c.iLike&&b<D)&&(D=b),r.animateOhaButton(D)):((c.iLike&&u>m||!c.iLike&&u<m)&&(m=u),r.animateOhaButton(m<1?m:1))},function(){c.iLike=!c.iLike,r.animateOhaButton(r.showLikes?b:u)})}},r.animateOhaButton=function(u){if(c){var b=!r.isAssetReference&&c.iLike?750:0,I=!r.isAssetReference&&c.iLike?500:0;a(function(){r.showLikes?c.likes=u:c.score=u,b?(l.text(r.showLikes?u:(100*u).toFixed(u<1?1:0)),o.addClass("oha-liked"),l.counterUp({delay:25,time:I,formatter:function(m){return m.replace(/\./g,",")},callback:function(){r.isLoading=!1,a(function(){o.removeClass("oha-liked")},500)}})):(r.isAssetReference||r.showLikes?c.likes=u:c.score=u,r.isLoading=!1),o.removeClass("oha-loading")},b)}},r.getStrokeDashoffset=function(u){return 102.1-(102.1*u).toFixed(0)},r.getRotateDegrees=function(u){return 360*u},r.animateOhaPlanet=function(u){if(c){i.find(".oha-outer").css("stroke-dashoffset",r.getStrokeDashoffset(u));var I=i.find(".oha-rotate");I.css("transform","rotateZ("+r.getRotateDegrees(u)+"deg)"),I.attr("transform","rotate("+r.getRotateDegrees(u)+")"),a(function(){c.score=u},500)}}}]}),app.directive("onReturn",["$parse",function(e){return{scope:!1,link:function(t,a,n,s){var p;n.onReturn&&(p=e(n.onReturn)),a.keypress(function(h){return"13"!=h.which||!(h.ctrlKey||""!==n.onReturnRequireCtrl&&"true"!==n.onReturnRequireCtrl)||(p&&p(t),!1)}),s&&s.$parsers&&s.$parsers.unshift(function(h){if(null==h)return"";var r=h.replace("\r","").replace("\n"," ");return r!=h&&(s.$setViewValue(r),s.$render()),r})}}}]),app.directive("page",["$interpolate","$rootScope",function(e,t){return{templateUrl:"/ClientApp/src/legacy-app/common/page.html",restrict:"E",transclude:!0,link:function(a,n,s){var r;if(s.pageTitle&&(a.title=e(s.pageTitle)()),a.isApp=t.app,(r=window.navigator.userAgent).indexOf(" Android ")>-1&&r.indexOf("Version/")>-1&&parseFloat((r.match("Android ([0-9.]+)")||[])[1])<=4.4){var h=$(window).height()-51;$(".app-mobile .pageWrapper").css("height",h+"px")}}}}]),app.factory("parserService",["$location","profileService","localStorageService","articleService","$rootScope","$timeout",function(e,t,a,n,s,p){return{postProcessHtml:function(r){if(r&&r.content){r.processedContent=r.content.replace(/(<p>)?!\[(.+?)\](<\/p>)?/gi,function(b,I,m,D){return"<asset asset-reference=\"resolveAsset('"+m+'\')" data-guid="'+m+'" article="article" snip="snip" sponsored-article="sponsoredArticle" static-article="staticArticle"></asset>'}),r.processedContent=r.processedContent.replace(/(<p><\/p>)+/gi,function(){return"<p></p>"});var i=document.createElement("div");i.innerHTML=r.processedContent;var c=0;$(i).children("blockquote").each(function(b,I){if(!($(I).children("blockquote").length>0)){var m=0;if($(I).nextAll().each(function(w,v){if("p"!==$(v).prop("tagName").toLowerCase())return!1;m+=$(v).text().length}),1.5*$(I).text().length<m){var D=++c%2>0;$(I).addClass("allow-float"),D?$(I).addClass("allow-float-right"):$(I).addClass("allow-float-left")}}});for(var d=0;d<r.assetReferences.length;d++)null!==r.assetReferences[d].assetImage&&2===r.assetReferences[d].assetImage.type&&$(i).find("asset[data-guid='"+r.assetReferences[d].guid+"']").attr("data-type","2");$(i).find(":not(asset[data-type='2']) + asset[data-type='2'], asset[data-type='2']:first-of-type").each(function(){$(this).nextUntil(":not(asset[data-type='2'])").addBack().wrapAll('<div class="asset-image-gallery asset-image-gallery-article" />')}),$(i).find(".asset-image-gallery asset").each(function(){$(this).attr("image-gallery-item-index",$(this).index())});var o=/^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i;if($(i).find(".call-to-action").each(function(){var b=$.trim($(this).text());null!==o.exec(b)&&$(this).html('<img ng-src="'+s.scope.globalSettings.blobStorageCdnUrl+"/"+s.scope.globalSettings.blobStorageContainerNameImage+"/"+b+'?preset=focus&amp;cache=0">').addClass("call-to-action-assetImage")}),r.sponsored||navigator.userAgent&&-1!==navigator.userAgent.toLowerCase().indexOf("googlebot")||scope.currentChapter.scopeStaticArticlesDictionary[e.$$path.replace(scope.currentChapter.path,"")])r.shipmentsPlaced=0;else{var l=$(i).children("p");r.shipmentsPlaced=0;var g=0;(function(){var b=[],I=[],m=1,D=3;l.length<=3&&(m=0,D=2);for(var w=m;w<l.length;w++)0===$(l[w]).next().length||"div"!==$(l[w]).next().prop("tagName").toLowerCase()&&"asset"!==$(l[w]).next().prop("tagName").toLowerCase()&&!$(l[w]).text().trim().endsWith(":")&&!$(l[w]).next().hasClass("allow-float")||"h3"===$(l[w]).next().prop("tagName").toLowerCase()?b.push(w):"div"!==$(l[w]).next().prop("tagName").toLowerCase()&&!$(l[w]).text().trim().endsWith(":")&&!$(l[w]).next().hasClass("allow-float")&&I.push(w);if(0===b.length&&0===I.length)return 0;if(0===b.length)$(l[I[0]]).next().after("<shipment article='article' />"),r.shipmentsPlaced++,g=I[0];else if(1===b.length)if(I.length>0)if(b[0]+1>=l.length/2&&I[0]<b[0])$(l[I[0]]).next().after("<shipment article='article' />"),r.shipmentsPlaced++,g=I[0],b[0]-I[0]>=D&&($(l[b[0]]).after("<shipment article='article' />"),r.shipmentsPlaced++,g=b[0]);else{$(l[b[0]]).after("<shipment article='article' />"),r.shipmentsPlaced++,g=b[0];for(var v=b[0],C=0;C<I.length;C++)if(!(Math.abs(I[C]-v)<D)){$(l[I[C]]).next().after("<shipment article='article' />"),r.shipmentsPlaced++,g=I[C];break}}else $(l[b[0]]).after("<shipment article='article' />"),r.shipmentsPlaced++,g=b[0];else{g=m-D,b[0]+1>=l.length/2&&I[0]<b[0]&&I[0]>=m&&($(l[I[0]]).next().after("<shipment article='article' />"),r.shipmentsPlaced++,g=I[0]);for(var f=0;f<b.length;f++)if(!(b[f]-g<D)){if(s.scope.currentScope.chapter.settings.criteoPublisherId&&1===r.shipmentsPlaced&&!s.app?$(l[b[f]]).after("<external-ad-shipment propose-id='externalAdShipmentArticle' allow-intern-ad/>"):$(l[b[f]]).after("<shipment article='article' />"),r.shipmentsPlaced++,3===r.shipmentsPlaced)break;g=b[f]}}})(),r.shipmentsPlaced<2&&g<l.length-1&&(s.scope.currentScope.chapter.settings.criteoPublisherId&&!s.app?$(i).append("<external-ad-shipment propose-id='externalAdShipmentArticle' allow-intern-ad/>"):$(i).append("<shipment article='article' />"),r.shipmentsPlaced++)}4!==r.articleListDisplayableType&&a.enableArticleExitRates&&t.getProfile().then(function(b){b.isAdmin&&n.getExitRates(r.articleId).then(function(I){I.forEach(function(m,D){var w=0===D?1:I[D-1].word+1,v=I[D+1]?m.word:-1,C=$(i).find(":not(iframe)").contents().filter(function(){return 3===this.nodeType}).sort(function(F,T){return F===T?0:F.compareDocumentPosition?2&F.compareDocumentPosition(T)?1:-1:F.sourceIndex-T.sourceIndex}).toArray(),f=0;C.forEach(function(F){var T=$(F).text().split(/(\s)/),x=[],S=[];if(T.forEach(function(y){y.trim()?++f<w||v-f<0&&-1!==v?S.push(y):x.push(y):f<w||v-f<0&&-1!==v?S.push(y):x.push(y)}),x.length){var k='<span class="exit-rate" style="background-color: rgba(204, 0, 0, '+m.rate/100+');" uib-tooltip="Absprungrate: '+m.rate+'%">'+x.join("")+"</span>";S.length&&(k+=S.join("")),$(F).replaceWith(k),r.processedContent=i.innerHTML}})})})}),$(i).find("a:not([target])").attr("target","_blank"),r.processedContent=i.innerHTML,r.postProcessed=!0}}}}]),app.directive("photoswipe",["$timeout","$location","$rootScope","$window",function(e,t,a,n){return{link:function(s,p,h){var r;a.$watch(function(){return t.search().zoom},function(i){!i&&r&&r.close()}),$(p).parents("asset").wrap('<div class="asset-image-gallery-item"/>'),e(function(){var i=$(p).parents(".asset-image-gallery"),c=i.find("[photoSwipe]"),o=c.index(p);if(0===o&&i.addClass("asset-image-gallery-"+c.length),-1!==o&&($(p).on("click",function(g){g.preventDefault();var u=[];c.each(function(m,D){if(!0===$(D).data("gallery-item")){var w=$(D).parent().find(".imageInfo-title"),v=$(D).parent().find(".imageInfo-source"),C=[w.html(),v.html()].filter(Boolean).join(" - "),f=$(D).parentsUntil(".asset-image-gallery").find("asset-user-badge");f.length>0&&(C+="<br>"+$("<div />").append(f.clone()).html()),u.push({src:$(D).data("image"),w:$(D).data("width"),h:$(D).data("height"),title:C})}});var b={index:o%=u.length,history:!1,closeOnScroll:!1,preload:[2,2],isClickableElement:function(){return!0}},I=document.querySelectorAll(".pswp")[0];(r=new PhotoSwipe(I,PhotoSwipeUI_Default,u,b)).listen("gettingData",function(m,D){if(D.w<1||D.h<1){var w=new Image;w.onload=function(){D.w=this.width,D.h=this.height,r.updateSize(!0)},w.src=D.src}}),r.listen("initialZoomIn",function(){bodyScrollLock.disableBodyScroll($(".pswp")),$("button.oha").css("pointer-events","none")}),r.listen("destroy",function(){bodyScrollLock.clearAllBodyScrollLocks(),e(function(){$("button.oha").css("pointer-events","all"),t.search().zoom&&n.history.back()},200)}),r.init(),e(function(){t.search("zoom",!0)})}),3===o&&c.length>4)){var l=c.length-4;p.find(".asset-image-gallery-overlay").text("+"+l).addClass("asset-image-gallery-overlay-visible")}})}}}]),app.run(["$rootScope","$window","profileService","$location","$analytics",function(e,t,a,n,s){e.$on("$viewContentLoaded",function(){t._paq&&a.getProfile().then(function(p){t._paq.push(["setCustomVariable",1,"guid",p.guid,"visit"]),t._paq.push(["setCustomVariable",2,"isRegistered",p.isRegistered,"visit"]),t._paq.push(["setCustomVariable",3,"isJournalist",p.isJournalist,"visit"]),t._paq.push(["setCustomVariable",4,"isMerkuristJournalist",p.isMerkuristJournalist,"visit"]),t._paq.push(["setCustomVariable",5,"isAdvertiser",p.isAdvertiser,"visit"]),s.pageTrack(s.settings.pageTracking.basePath+e.scope.currentChapter.path+n.url(),n)})})}]),app.component("propertyGrid",{bindings:{staffdata:"=",isReadonly:"<",userId:"<",api:"=",loadFunction:"<",saveFunction:"<",gridOnInit:"&",noGroups:"<",noHelp:"<"},templateUrl:"/ClientApp/src/legacy-app/common/propertyGrid.html",controller:["$location","$element","$scope",function(e,t,a){var n=this;function s(){var o=$(t).jqPropertyGrid("get");n.saveFunction(n.userId,o).then(function(l){n.staffDirectoryData=l,i=n.staffDirectoryData.data,d=n.staffDirectoryData.metaData,$(t).jqPropertyGrid(i,{isReadonly:n.isReadonly,meta:d,customTypes:r,postCreateInitFuncs:[]})},function(l){alert("Staff dir NOT saved")})}function p(){alert("Staff dir loaded")}this.$onInit=function(){n.api={},n.api.save=s,n.api.load=p,n.api.getData=function(){return $(t).jqPropertyGrid("get")},0==n.isReadonly&&(a.$parent.$parent.$parent.gridApi=n.api),n.loadFunction(n.userId).then(function(o){n.staffDirectoryData=o,i=n.staffDirectoryData.data;var l={isReadonly:n.isReadonly,meta:d=n.staffDirectoryData.metaData,customTypes:r,postCreateInitFuncs:[],noGroups:n.noGroups};l.helpHtml=1==n.noHelp?" ":'<i class="fa fa-question-circle"></i>',$(t).jqPropertyGrid(i,l)},function(o){console.log(o)})},n.chapterGroups=scope.currentScope.chapter.chapterGroups,n.chapterGroups=scope.currentScope.chapter.chapterGroups,n.chapterGroupSelections={},n.filtered=!1;var r={icon:{html:function(o,l,g,u){return'<i class="fa fa-'+g+'"></i>'},valueFn:function(){return"Icon field value"}},textarea:{html:function(o,l,g,u){var b='<textarea id="'+o+'" rows=6 style="overflow-x: auto; width:100%">';return g instanceof Array&&(b+=g.join("\n")),b+"</textarea>"},makeValueFn:function(o,l,g,u){return function(){return $("#"+o).val().split("\n")}}},datePicker:{html:function(o,l,g,u){return'<input id="'+o+'">'+"</input>"},makePostCreateFn:function(o,l,g,u,b,I){return o?function(){var D=$("#"+o);D.datepicker({changeMonth:!0,changeYear:!0,yearRange:"-100:+1",gotoCurrent:!0,numberOfMonths:1,firstDay:1,defaultDate:null,prevText:'<i class="fa fa-chevron-left"></i>',nextText:'<i class="fa fa-chevron-right"></i>',dateFormat:"dd.mm.yy",closeText:"Schlie\xdfen",prevText:'<i class="fa fa-chevron-left"></i>',nextText:'<i class="fa fa-chevron-right"></i>',currentText:"Heute",monthNames:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",showButtonPanel:!1});var w=new Date(g);w.setMinutes(w.getMinutes()-w.getTimezoneOffset()),g?D.datepicker("setDate",w):D.datepicker()}:null},makeValueFn:function(o,l,g,u){return function(){return $("#"+o).datepicker("getDate")?new Date($("#"+o).datepicker("getDate")):null}}},tagArea:{html:function(o,l,g,u){var b='<textarea id="'+o+'">';return g instanceof Array&&(b+=g.join(",")),b+"</textarea>"},makePostCreateFn:function(o,l,g,u,b,I){return o?($.extend({},l),function(){var w=$("#"+o);w.tagEditor({placeholder:"Enter tags ..."},g),b&&w.on("spin change keyup paste input",function(f,F){b(I,u,F?F.value:$(f.target).val())})}):null},makeValueFn:function(o,l,g,u){return function(){return $("#"+o).val().split(",")}},colSpan2:!0},tagAutocomplete:{html:function(o,l,g,u){var b='<textarea id="'+o+'">';return g instanceof Array&&(b+=g.join(",")),b+"</textarea>"},makePostCreateFn:function(o,l,g,u,b,I){if(!o)return null;var m={};if(l){for(var D=[],w=0;w<l.length;w++)D.push(l[w].text);m.autocomplete={delay:0,position:{collision:"flip"},source:D},m.forceLowercase=!1}return $.extend(m,l),function(){var C=$("#"+o);C.tagEditor(m,g),b&&C.on("spin change keyup paste input",function(F,T){b(I,u,T?T.value:$(F.target).val())})}},makeValueFn:function(o,l,g,u){return function(){return $("#"+o).val().split(",")}},colSpan2:!0},phonecall:{html:function(o,l,g,u){if(0==u.isReadonlyMode)return'<input type="text" class="form-control" id="'+o+'" value="'+g+'"</input>';if(g){var b='<a class="btn btn-green btn-block" role="button" id="'+o+'" href="tel:'+g+'">';return b+='<i class="fa fa-phone" aria-hidden="true"></i> ',(b+=g)+"</a>"}return""}},emailsend:{html:function(o,l,g,u){if(0==u.isReadonlyMode)return'<input type="text" class="form-control" id="'+o+'" value="'+g+'"</input>';if(g){var b='<a class="btn btn-green btn-block" role="button" id="'+o+'" href="mailto:'+g+'">';return b+='<i class="fa fa-envelope" aria-hidden="true"></i> ',(b+=g)+"</a>"}return""}}},i={accumulateTicks:!0,filter:!1,filterSize:200,buyColor:"#00ff00",sellColor:"#ff0000",someOption:"Maybe",noGroup:"I have no group",dontShowMe:"please",tagArea:null},d={dontShowMe:{browsable:!1},filter:{group:"Behavior",name:"Filter",type:"boolean"},filterSize:{group:"Behavior",name:"Filter size",type:"number",options:{min:0,max:500,step:10}},accumulateTicks:{group:"Behavior",name:"Accumulate ticks",type:"boolean"},buyColor:{group:"Appearance",name:"Buy color",type:"color",options:{preferredFormat:"hex",showInput:!0,showInitial:!0}},sellColor:{group:"Appearance",name:"Sell color",type:"color",options:{preferredFormat:"hex",showInput:!0,showInitial:!0}},someOption:{name:"Some option",type:"options",options:["Yes","No",{text:"Not sure",value:"Maybe"}]},tagArea:{name:"Tags",type:"tagArea",description:"This is a tager",showHelp:!1,options:{delimiter:","}}}}]}),function(e){var t="Other",a="pg.getValues",n=0;function s(d,o){return'<tr class="pgGroupRow '+(o?"pgCollapsible":"")+'"><td colspan="2" class="pgGroupCell">'+(o?"- ":"")+d+"</td></tr>"}function c(){var d=e(this);if(null!==d.spinner("value")||"string"!=typeof d.val()){var l=d.spinner("option","min"),g=d.spinner("option","max");"number"==typeof l&&this.value<l?this.value=l:"number"==typeof g&&this.value>g&&(this.value=g)}else d.val("")}e.fn.jqPropertyGrid=function(d,o){if("string"==typeof d&&"get"===d)return"function"==typeof this.data(a)?this.data(a)():null;if("string"!=typeof d)if("object"==typeof d&&null!==d){(o=o&&"object"==typeof o?o:{}).meta=o.meta&&"object"==typeof o.meta?o.meta:{},o.customTypes=o.customTypes||{},o.helpHtml=o.helpHtml||"[?]",o.sort=!(typeof o.sort>"u")&&o.sort,o.isCollapsible=!(typeof o.isCollapsible>"u"||!o.isCollapsible),o.callback="function"==typeof o.callback?o.callback:null,o.isReadonly=o.isReadonly||!1;var w,l=o.meta,g={OTHER_GROUP_NAME:""},u={},b=[],I={},m="pg"+n++,D=this,v=Object.keys(d);o.sort&&("boolean"==typeof o.sort?v=v.sort():"function"==typeof o.sort&&(v=v.sort(o.sort))),v.forEach(function(S){"function"==typeof d[S]||l[S]&&!1===l[S].browsable||(l[S].isReadonlyMode=o.isReadonly,(w=l[S]&&l[S].group||t)!==t&&!u[w]&&(u[w]=s(w,o.isCollapsible)),g[w]=g[w]||"",g[w]+=function p(d,o,l,g,u,b,I,m){if(!o)return"";var f,T,D=I.callback,w=(g=g||{}).name||o,v=g.type||"",C=d+o,F=I.customTypes;for(var x in F)if(v===x){T=F[x];break}return T?(f=T.html(C,o,l,g),b&&(b[o]=T.hasOwnProperty("makeValueFn")?T.makeValueFn(C,o,l,g):T.hasOwnProperty("valueFn")?T.valueFn:function(){return e("#"+C).val()}),u&&T.hasOwnProperty("makePostCreateFn")&&u.push(T.makePostCreateFn(C,g.options,l,o,D,m))):"boolean"===v||""===v&&"boolean"==typeof l?(f=(f='<label class="switch"><input class="form-control" type="checkbox" id="'+C+'" value="'+o+'"'+(l?" checked":"")+" /><span></span></label>")+'<label class="elipsis" for"'+C+" />",b&&(b[o]=function(){return e("#"+C).prop("checked")}),D&&e(m).on("change","#"+C,function(){D(this,o,e("#"+C).is(":checked"))})):"options"===v&&Array.isArray(g.options)?(f=function h(d,o,l){o=o||"",l=l||[];var b,g='<select class="form-control"';(d=d||"")&&(g+=' id="'+d+'"'),g+=">",g+='<option value="" selected disabled style="display:none;">. . .</option>';for(var I=0;I<l.length;I++)g+='<option value="'+(b="object"==typeof l[I]?l[I].value:l[I])+'"'+(o===b?" selected>":">"),g+=("object"==typeof l[I]?l[I].text:l[I])+"</option>";return g+="</select>"}(C,l,g.options),b&&(b[o]=function(){return e("#"+C).val()}),D&&e(m).on("change","#"+C,function(){D(this,o,e("#"+C).val())})):"function"==typeof e.fn.spinner&&("number"===v||""===v&&"number"==typeof l)?(f='<input type="text" id="'+C+'" value="'+l+'" class="form-control" style="width:50px" />',u&&u.push(function r(d,o,l,g,u){if(!d)return null;var b={};return e.extend(b,o),b.change=typeof b.change>"u"?c:b.change,function(){var m=e("#"+d);m.spinner(b),g&&m.on("spin change keyup paste input",function(w,v){g(u,l,v?v.value:e(w.target).val())})}}(C,g.options,o,D,m)),b&&(b[o]=function(){return e("#"+C).spinner("value")})):"color"===v&&"function"==typeof e.fn.spectrum?(f='<input type="text" class="form-control" id="'+C+'" />',u&&u.push(function i(d,o,l,g,u,b){if(!d)return null;var I={};return e.extend(I,l),"string"==typeof o&&(I.color=o),function(){var D=e("#"+d);D.spectrum(I),void 0!==u&&D.on("change",function(v,C){u(b,g,C.toHexString())})}}(C,l,g.options,o,D,m)),b&&(b[o]=function(){return e("#"+C).spectrum("get").toHexString()})):"label"===v?f="string"==typeof g.description&&g.description?'<label for="'+C+'" title="'+g.description+'">'+l+"</label>":'<label for="'+C+'">'+l+"</label>":(f='<input type="text" class="form-control" id="'+C+'" value="'+l+'"</input>',b&&(b[o]=function(){return e("#"+C).val()}),D&&e(m).on("propertychange change keyup paste input","#"+C,function(){D(this,o,e("#"+C).val())})),"string"==typeof g.description&&g.description&&(typeof g.showHelp>"u"||g.showHelp)&&(w+='<div class="pgTooltip">&nbsp '+I.helpHtml+' <span class="pgTooltiptext">'+g.description+"</span>"),g.colspan2?'<tr class="pgRow"><td colspan="2" class="pgCell">'+f+"</td></tr>":I.isReadonly?'<tr class="pgRow"><td class="pgLabelCell">'+w+'</td><td class="pgReadOnlyCell">'+f+"</td></tr>":'<tr class="pgRow"><td class="pgLabelCell">'+w+'</td><td class="pgValueCell">'+f+"</td></tr>"}(m,S,d[S],l[S],b,I,o,D))});var C='<table class="pgTable">';for(var f in u)o.noGroups||(C+=u[f]),C+=g[f];g[t]&&(C+=s(t,o.isCollapsible),C+=g[t]),this.html(C+="</table>"),this.data(a,function(){var x={};for(var S in I)"function"==typeof I[S]&&(x[S]=I[S]());return x}),o.isCollapsible?e(D).find(".pgGroupRow").click(function(){var S=e(this).html(),k=e(S).text(),y="+"===k[0],M=k.substring(1),R=S.replace(k,y?"-"+M:"+"+M);e(this).html(R),e(this).nextUntil("tr.pgGroupRow").slideToggle(1)}):e("tr.pgGroupRow").each(function(S){var k=e(this).html(),y=e(k).text();if(e(this).css("cursor","default"),"-"===y[0]&&" "===y[1]){var R=y.substring(2),U=k.replace(y,R);e(this).html(U)}});for(var T=0;T<b.length;++T)"function"==typeof b[T]&&(b[T](),b[T]=null);o.isReadonly&&(e(D).find("*").prop("disabled",!0),e(D).find("div.tag-editor-delete").hide(),e(D).find("ul.tag-editor.ui-sortable").off("click"))}else console.error("jqPropertyGrid must get an object in order to initialize the grid.");else console.error("jqPropertyGrid got invalid option:",d)}}(window.$),app.factory("redirectService",["$window","$location","$timeout","$rootScope",function(e,t,a,n){var s=n.scope,p=function(r){var c=r.startsWith(s.currentScope.network.path+(""!=s.currentScope.chapter.regEx?"/"+s.currentScope.chapter.regEx:"")+"/");return""===s.currentScope.chapter.regEx&&c&&s.chapters.forEach(function(d){2===d.managementState&&d.id!==s.currentChapter.id&&r.startsWith(s.currentScope.network.path+"/"+d.regEx+"/")&&(c=!1)}),c};return{redirectNotificationUrl:function(r){var i=new URL("https://"+s.currentScope.network.domain),c=s.currentScope.network.path+(""!=s.currentScope.chapter.regEx?"/"+s.currentScope.chapter.regEx:"");p(r)?a(function(){var o=r.substring(c.length);console.log("internal",o),t.url(o).replace()}):r.startsWith(i.origin)?(console.log("network",r),e.location.href=r):e.cordova&&e.cordova.InAppBrowser?cordova.InAppBrowser.open(r,"_system","location=yes,closebuttoncaption="+s.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")):(console.log("external",r),e.location.href=r)},isSameChapterUrl:p}}]),app.factory("scopeService",["$http","$q","$window",function(e,t,a){var n=this,s={};n.settings=a.scope.scopeSettings;var p={};return this.getNetworkChapter=function(h,r){var i=t.defer();if(s[r+"_"+h])i.resolve(s[r+"_"+h]);else{if(p[r+"_"+h])return p[r+"_"+h].promise;p[r+"_"+h]=i,e.get(scope.apiEndpoint+"networks/"+h+"/"+r).then(function(c){s[r+"_"+h]=c.data,i.resolve(c.data),delete p[r+"_"+h]},function(){i.reject(),delete p[r+"_"+h]})}return i.promise},this.getGlobalSettings=function(){return n.settings.getGlobalSettings()},this.getChapter=function(h){return n.settings.getChapter(h)},this.resolveUrl=function(h){return n.settings.resolveUrl(h)},this.getNetworkUrl=function(){return"https://"+scope.currentScope.network.domain},{getGlobalSettings:this.getGlobalSettings,getChapter:this.getChapter,getNetworkUrl:this.getNetworkUrl,getNetworkChapter:this.getNetworkChapter}}]),ScopeSettings.prototype.getGlobalSettings=function(){return this.globalSettings},ScopeSettings.prototype.getChapter=function(e){return this.network.chaptersDictionary[e]},ScopeSettings.prototype.getChapters=function(){return this.chapters},ScopeSettings.prototype.resolveUrl=function(e){for(var t={},a=this.network,s=e.match("https?://(.*/)?"+a.domain+":?\\d{0,5}(\\/|\\?|$)")[1],p=a.domain,h=document.location.pathname.indexOf(p);-1==h;)p=p.substring(p.indexOf("/")),h=document.location.pathname.indexOf(p),-1==p.indexOf("/")&&(h=0,p="");h+=p.length;var r=document.location.pathname.substring(h);-1!=r.indexOf("/",1)&&(r=r.substring(0,r.indexOf("/",1)));var i=a.chapters.filter(function(l){return function n(l,g){return"string"==typeof l&&"string"==typeof g?0===l.localeCompare(g,void 0,{sensitivity:"accent"}):l===g}(l.path,r)&&0!==l.managementState})[0];i||(i=a.chapters.filter(function(l){return"/"==l.path})[0]),i||(i={path:"/",closed:!1,slug:"-"});var c=a.domain.match("\\/(.*)"),d="",o="/";return c&&(d="/"+c[1],o+=c[1]),t.appRoute=s?"/"+a.domain+i.path:d+i.path,t.isNative=!s,t.networkPath=s?"/"+a.domain:o,t.network=a,i.path=i.path.endsWith("/")?t.appRoute.slice(0,-1):t.appRoute,t.chapter=i,t},ScopeSettings.prototype.espace=function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},app.component("shareButton",{templateUrl:"/ClientApp/src/legacy-app/common/shareButton.html",bindings:{text:"<",image:"<"},controller:["$rootScope","$location","$window",function(e,t,a){var n=this;n.getUrl=function(){return encodeURIComponent(t.absUrl())},n.getImageUrl=function(){return encodeURIComponent(n.image.assetImageUrl)},n.shareFacebook=function(){a.open("https://www.facebook.com/sharer/sharer.php?u="+n.getUrl()+"&t="+encodeURIComponent(n.text),"_blank","width=600,height=460")},n.showWhatsappShare=new window.MobileDetect(window.navigator.userAgent).phone(),n.shareTwitter=function(){var r="https://twitter.com/intent/tweet?url="+n.getUrl()+"&text="+n.text;e.scope.currentScope.chapter.settings.seoTwitterSite&&(r=r+"&via="+e.scope.currentScope.chapter.settings.seoTwitterSite.substring(1)),a.open(r,"_blank","width=600,height=460")},n.sharePinterest=function(){a.open("https://www.pinterest.com/pin/create/link/?url="+n.getUrl()+"?media="+n.getImageUrl()+"?description="+encodeURIComponent(n.text),"_blank","width=600,height=460")}}]}),app.directive("smartQuotes",[function(){return{scope:!0,link:function(e,t,a){t.keypress(function(n){if(34===n.charCode){var s=t[0].selectionStart;if(s!==t[0].selectionEnd)return;n.preventDefault(),0===s||t.val().substring(s-1,s).match(/\s/g)?t.val(t.val().substring(0,s)+"\u201e"+t.val().substring(s)):t.val(t.val().substring(0,s)+"\u201c"+t.val().substring(s)),t[0].setSelectionRange(s+1,s+1)}})}}}]),app.filter("szAwareUppercase",function(){return function(e){return(e=e||"").replace(/\xdf/g,"\u1e9e").toUpperCase()}}),app.directive("timedUpdate",["$interval","$timeout",function(e,t){return{restrict:"A",scope:!1,link:function(a,n,s){function p(){var r=a.$eval(s.timedUpdate);n[0].innerText=r,n[0].textContent=r}var h=e(function(){p()},s.milliseconds?s.milliseconds:3e4);t(function(){p()}),n.on("$destroy",function(){e.cancel(h)})}}}]),app.factory("companyNewsService",["$http","$q",function(e,t){return{getCompanyNews:function(){var s=t.defer();return e.get(scope.apiEndpoint+"companyNews").then(function(p){s.resolve(p.data)}),s.promise},getCompanyNewsDetail:function(s){var p=t.defer();return e.get(scope.apiEndpoint+"companyNews/"+s).then(function(h){p.resolve(h.data)}),p.promise}}}]),MetaInformationBase.prototype.getFullAuthorName=function(){var e=scope.currentScope.network.name;return this.author&&(e=this.author.firstName+" "+this.author.lastName),e},MetaInformationBase.prototype.getMetaDate=function(){var e=moment().format();return moment(this.date).isValid()?moment(this.date).format():e},MetaArticleInfo.prototype=Object.create(MetaInformationBase.prototype),MetaSnipInfo.prototype=Object.create(MetaInformationBase.prototype),MetaSponsoredArticleInfo.prototype=Object.create(MetaInformationBase.prototype),MetaStaticArticleInfo.prototype=Object.create(MetaInformationBase.prototype),app.service("pageMetaInfoService",["$interpolate","metaService",function(e,t){var a=this;function n(d,o){this.title=d,this.description=o}this.statesInfo={},this.statesInfo["app.root"]=new n(scope.currentScope.network.getResourceOrKeyName("web_newsMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_newsMeta_description")),this.statesInfo["app.root.login"]=new n(scope.currentScope.network.getResourceOrKeyName("web_loginMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_loginMeta_description")),this.statesInfo["app.root.menu"]=new n(scope.currentScope.network.getResourceOrKeyName("web_menuMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_menuMeta_description")),this.statesInfo.home=new n(scope.currentScope.network.getResourceOrKeyName("web_landingMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_landingMeta_description")),this.statesInfo["app.root.snips"]=new n(scope.currentScope.network.getResourceOrKeyName("web_snipMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_snipMeta_description")),this.statesInfo["app.search"]=new n(scope.currentScope.network.getResourceOrKeyName("web_searchMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_searchMeta_description")),this.statesInfo["app.imprint"]=new n(scope.currentScope.network.getResourceOrKeyName("web_imprintMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_imprintMeta_description")),this.statesInfo["app.sponsoredArticleList"]=new n(scope.currentScope.network.getResourceOrKeyName("web_sponsoredArticleMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_sponsoredArticleMeta_description")),this.statesInfo["app.privacyPolicy"]=new n(scope.currentScope.network.getResourceOrKeyName("web_privacyPolicyMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_privacyPolicyMeta_description")),this.statesInfo["app.tos"]=new n(scope.currentScope.network.getResourceOrKeyName("web_termsOfUseMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_termsOfUseMeta_description")),this.statesInfo["app.imagelicensing"]=new n(scope.currentScope.network.getResourceOrKeyName("web_asset_imageLicensingMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_asset_imageLicensingMeta_description")),this.statesInfo["app.register"]=new n(scope.currentScope.network.getResourceOrKeyName("web_registerMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_registerMeta_description")),this.statesInfo["app.feedback"]=new n(scope.currentScope.network.getResourceOrKeyName("web_feedbackMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_feedbackMeta_description")),this.statesInfo["app.authorRegister"]=new n(scope.currentScope.network.getResourceOrKeyName("web_authorRegisterMeta_title"),""),this.statesInfo["app.authors"]=new n(scope.currentScope.network.getResourceOrKeyName("web_authorMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_authorMeta_description"));var r=function(d){if(!d)return"";var o=function(d){return d.replace("{{{networkName}}}",scope.currentScope.network.name)}(d);return o=function(d){return d.replace("{{{chapterName}}}",scope.currentScope.chapter.name)}(o),o};return{run:function(d){if(d){var o=a.statesInfo[d];o&&function(d,o){var l=r(d),g=r(o);t.push(l,g)}(o.title,o.description)}}}}]),app.component("articleEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/articleEventCalendarDisplayable.html",bindings:{article:"<"},controller:["$rootScope",function(e){var t=this;this.$onInit=function(){var a=new Date(t.article.calendarDate).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"});t.formattedCalendarDate=e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:a}),t.article.isToday=t.isToday}}]}),app.component("birthdayEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/birthdayEventCalendarDisplayable.html",bindings:{event:"<"},controller:["$rootScope","eventCalendarService",function(e,t){var a=this,n="";this.$onInit=function(){n=new Date(a.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"}),a.formattedCalendarDate=e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:n}),a.congratulatable=a.event.isToday||new Date>new Date(a.event.start),a.hasCongratulated=!1,a.event.ownReactions.forEach(function(s){1===s.type&&s.occurance==a.event.start&&(a.hasCongratulated=!0)})},a.congratulate=function(){t.congratulateToBirthday(a.event.id,a.event.start).then(function(){a.hasCongratulated=!0})}}]}),app.controller("EventCalendarController",["$scope","$rootScope","articleService","snipService","sponsoredArticleService","profileService","eventCalendarService",function(e,t,a,n,s,p,h){a.getArticlesForEventCalendar().then(function(r){var i=[],c=[],d=[],o=[];$.each(r,function(l,g){if(null!==g.calendarDate){var u=new Date(g.calendarDate).getMonth(),b=new Date(g.calendarDate).getDate(),I=new Date(g.calendarDate).getFullYear(),m=moment(g.calendarDate).locale(t.scope.currentScope.network.settings.languageCode),D=m.format("L");if(g.isToday=D===moment(new Date).locale(t.scope.currentScope.network.settings.languageCode).format("L"),typeof i[u+""+I]>"u"){d[D]=[],d[D]={Day:m.format("dddd")+", der "+b+". "+m.format("MMMM"),Articles:[g],Snips:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(g.calendarDate)},o[u+""+I]=[],o[u+""+I].push(d[D]);var w={Month:m.format("MMMM")+" "+I,Dates:o[u+""+I]};i[u+""+I]=w,c.push(w)}else typeof d[D]>"u"?(d[D]=[],d[D]={Day:m.format("dddd")+", der "+b+". "+m.format("MMMM"),Articles:[g],Snips:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(g.calendarDate)},o[u+""+I].push(d[D]),o[u+""+I].sort(function(v,C){return v.CalendarDate.getTime()-C.CalendarDate.getTime()})):d[D].Articles.push(g)}}),n.getSnipsForEventCalendar().then(function(l){$.each(l,function(g,u){if(null!==u.calendarDate){var b=new Date(u.calendarDate).getMonth(),I=new Date(u.calendarDate).getDate(),m=new Date(u.calendarDate).getFullYear(),D=moment(u.calendarDate).locale(t.scope.currentScope.network.settings.languageCode),w=D.format("L");if(u.isToday=w===moment(new Date).locale(t.scope.currentScope.network.settings.languageCode).format("L"),typeof i[b+""+m]>"u"){d[w]=[],d[w]={Day:D.format("dddd")+", der "+I+". "+D.format("MMMM"),Snips:[u],Articles:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(u.calendarDate)},o[b+""+m]=[],o[b+""+m].push(d[w]);var v={Month:D.format("MMMM")+" "+m,Dates:o[b+""+m]};i[b+""+m]=v,c.push(v)}else typeof d[w]>"u"?(d[w]=[],d[w]={Day:D.format("dddd")+", der "+I+". "+D.format("MMMM"),Snips:[u],Articles:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(u.calendarDate)},o[b+""+m].push(d[w]),o[b+""+m].sort(function(C,f){return C.CalendarDate.getTime()-f.CalendarDate.getTime()})):d[w].Snips.push(u)}}),e.calendar=c.sort(function(g,u){return g.Dates[0].CalendarDate-u.Dates[0].CalendarDate})}),s.getSponsoredArticlesForEventCalendar().then(function(l){$.each(l,function(g,u){if(null!==u.calendarDate){var b=new Date(u.calendarDate).getMonth(),I=new Date(u.calendarDate).getDate(),m=new Date(u.calendarDate).getFullYear(),D=moment(u.calendarDate).locale(t.scope.currentScope.network.settings.languageCode),w=D.format("L");if(u.isToday=w===moment(new Date).locale(t.scope.currentScope.network.settings.languageCode).format("L"),typeof i[b+""+m]>"u"){d[w]=[],d[w]={Day:D.format("dddd")+", der "+I+". "+D.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[u],Birthdays:[],Events:[],CalendarDate:new Date(u.calendarDate)},o[b+""+m]=[],o[b+""+m].push(d[w]);var v={Month:D.format("MMMM")+" "+m,Dates:o[b+""+m]};i[b+""+m]=v,c.push(v)}else typeof d[w]>"u"?(d[w]=[],d[w]={Day:D.format("dddd")+", der "+I+". "+D.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[u],Birthdays:[],Events:[],CalendarDate:new Date(u.calendarDate)},o[b+""+m].push(d[w]),o[b+""+m].sort(function(C,f){return C.CalendarDate.getTime()-f.CalendarDate.getTime()})):d[w].SponsoredArticles.push(u)}}),e.calendar=c.sort(function(g,u){return g.Dates[0].CalendarDate-u.Dates[0].CalendarDate})}),h.getEventCalendarEventData().then(function(l){$.each(l,function(g,u){if(null!==u.start){var b=new Date(u.start).getMonth(),I=new Date(u.start).getDate(),m=new Date(u.start).getFullYear(),D=moment(u.start).locale(t.scope.currentScope.network.settings.languageCode),w=D.format("L");if(u.isToday=w===moment(new Date).locale(t.scope.currentScope.network.settings.languageCode).format("L"),typeof i[b+""+m]>"u"){d[w]=[],d[w]={Day:D.format("dddd")+", der "+I+". "+D.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[],Birthdays:1===u.type?[u]:[],Events:1!==u.type?[u]:[],CalendarDate:new Date(u.start)},o[b+""+m]=[],o[b+""+m].push(d[w]);var v={Month:D.format("MMMM")+" "+m,Dates:o[b+""+m]};i[b+""+m]=v,c.push(v)}else typeof d[w]>"u"?(d[w]=[],d[w]={Day:D.format("dddd")+", der "+I+". "+D.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[],Birthdays:1===u.type?[u]:[],Events:1!==u.type?[u]:[],CalendarDate:new Date(u.start)},o[b+""+m].push(d[w]),o[b+""+m].sort(function(C,f){return C.CalendarDate.getTime()-f.CalendarDate.getTime()})):1===u.type?d[w].Birthdays.push(u):d[w].Events.push(u)}}),e.calendar=c.sort(function(g,u){return g.Dates[0].CalendarDate-u.Dates[0].CalendarDate})})})}]),app.controller("EventCalendarDetailController",["$scope","$rootScope","$previousState","event","eventCalendarService","parserService","$location","$uibModal","translationService","profileService","assetService","logoService",function(e,t,a,n,s,p,h,r,i,c,d,o){e.event=n,e.defaultEventPicture=o.getChapterEventPictureUrl(),e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,e.loadMoreParticipantsPending=!0;var l=t.scope.currentScope.network.getResourceOrKeyName;function g(){var v=new Date(e.event.start),C=new Date(e.event.end),f=new Date(e.event.recurrenceRule.until);if(0===e.event.recurrenceRule.frequency)e.ocurranceString=e.event.isAllDay?v.toLocaleDateString()==C.toLocaleDateString()?l("web_eventDetail_dateAllDay_singleDay",{date:v.toLocaleDateString()}):l("web_eventDetail_dateAllDay",{start:v.toLocaleDateString(),end:C.toLocaleDateString()}):l("web_eventDetail_date",{start:v.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),end:C.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})});else{var F=e.event.durationInSeconds,T="web_eventDetail_duration_seconds";switch(F>0&&F%60==0&&(T="web_eventDetail_duration_minutes",(F/=60)%60==0&&(T="web_eventDetail_duration_hours",(F/=60)%24==0&&(T="web_eventDetail_duration_days",(F/=24)%7==0&&(F/=7,T="web_eventDetail_duration_weeks")))),e.ocurranceString=!e.event.recurrenceRule.until||f.getUTCFullYear()<=1?l("web_eventDetail_recurringEvent",{start:v.toLocaleDateString(),startTime:v.toLocaleString([],{hour:"2-digit",minute:"2-digit"}),duration:l(T,{duration:F})}):l("web_eventDetail_recurringEvent_until",{start:v.toLocaleDateString(),startTime:v.toLocaleString([],{hour:"2-digit",minute:"2-digit"}),until:f.toLocaleDateString(),duration:l(T,{duration:F})}),e.event.recurrenceRule.frequency){case 4:e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+l("web_eventDetail_dailyIntervalOne"):" "+l("web_eventDetail_daily",{interval:e.event.recurrenceRule.interval});break;case 5:var x="";0===e.event.recurrenceRule.byDay[0].dayOfWeek&&(e.event.recurrenceRule.byDay.push(e.event.recurrenceRule.byDay[0]),e.event.recurrenceRule.byDay.splice(0,1)),e.event.recurrenceRule.byDay.forEach(function(U,V){x+=u(U.dayOfWeek),V<e.event.recurrenceRule.byDay.length-2?x+=", ":V===e.event.recurrenceRule.byDay.length-2&&(x+=" "+l("web_common_and")+" ")}),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+l("web_eventDetail_weeklyIntervalOne",{weekDays:x}):" "+l("web_eventDetail_weekly",{interval:e.event.recurrenceRule.interval,weekDays:x});break;case 6:if(e.event.recurrenceRule.byDay.length){var y=[{ocurrances:[],weekDay:l("web_common_sunday")},{ocurrances:[],weekDay:l("web_common_monday")},{ocurrances:[],weekDay:l("web_common_tuesday")},{ocurrances:[],weekDay:l("web_common_wednesday")},{ocurrances:[],weekDay:l("web_common_thursday")},{ocurrances:[],weekDay:l("web_common_friday")},{ocurrances:[],weekDay:l("web_common_saturday")}],M=[{occurance:l("web_eventDetail_recurrence_byWeekDay_first"),weekDays:[]},{occurance:l("web_eventDetail_recurrence_byWeekDay_second"),weekDays:[]},{occurance:l("web_eventDetail_recurrence_byWeekDay_third"),weekDays:[]},{occurance:l("web_eventDetail_recurrence_byWeekDay_fourth"),weekDays:[]},{occurance:l("web_eventDetail_recurrence_byWeekDay_last"),weekDays:[]},{occurance:l("web_eventDetail_recurrence_byWeekDay_secondToLast"),weekDays:[]},{occurance:l("web_eventDetail_recurrence_byWeekDay_thirdToLast"),weekDays:[]},{occurance:l("web_eventDetail_recurrence_byWeekDay_fourthToLast"),weekDays:[]}];e.event.recurrenceRule.byDay.forEach(function(U){y[U.dayOfWeek].ocurrances.push(b(U.offset));var V=U.offset;V<0&&(V=4-V),M[V-=1].weekDays.push(u(U.dayOfWeek))}),y.push(y[0]),y.splice(0,1),y=y.filter(function(U){return U.ocurrances.length>0}),M=M.filter(function(U){return U.weekDays.length>0}),weekDayString="",y.length<=M.length?y.forEach(function(U,V){U.ocurrances.forEach(function(q,_){weekDayString+=q,_<U.ocurrances.length-2?weekDayString+=", ":_===U.ocurrances.length-2&&(weekDayString+=" "+l("web_common_and")+" ")}),weekDayString+=" "+U.weekDay,V<y.length-2?weekDayString+=", ":V===y.length-2&&(weekDayString+=" "+l("web_common_and")+" ")}):M.forEach(function(U,V){weekDayString+=" "+U.occurance+" ",U.weekDays.forEach(function(q,_){weekDayString+=q,_<U.weekDays.length-2?weekDayString+=", ":_===U.weekDays.length-2&&(weekDayString+=" "+l("web_common_and")+" ")}),V<M.length-2?weekDayString+=", ":V===M.length-2&&(weekDayString+=" "+l("web_common_and")+" ")}),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+l("web_eventDetail_monthlyIntervalOne_byWeekDay",{weekDays:weekDayString}):" "+l("web_eventDetail_monthly_byWeekDay",{interval:e.event.recurrenceRule.interval,weekDays:weekDayString})}else{var S=e.event.recurrenceRule.byMonthDay.join(", "),k=S.lastIndexOf(",");-1!==k&&(S=S.substring(0,k)+" "+l("web_common_and")+S.substring(k+1,S.length)),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+l("web_eventDetail_monthlyIntervalOne_byMonthDay",{monthDays:S}):" "+l("web_eventDetail_monthly_byMonthDay",{interval:e.event.recurrenceRule.interval,monthDays:S})}break;case 7:var A="";switch(e.event.recurrenceRule.byMonth[0]){case 1:A=l("web_common_january");break;case 2:A=l("web_common_february");break;case 3:A=l("web_common_march");break;case 4:A=l("web_common_april");break;case 5:A=l("web_common_may");break;case 6:A=l("web_common_june");break;case 7:A=l("web_common_july");break;case 8:A=l("web_common_august");break;case 9:A=l("web_common_september");break;case 10:A=l("web_common_october");break;case 11:A=l("web_common_november");break;case 12:A=l("web_common_december")}if(e.event.recurrenceRule.byDay.length){var R=e.event.recurrenceRule.byDay[0];e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+l("web_eventDetail_yearlyIntervalOne_byWeekDay",{weekDay:b(R.offset)+" "+u(R.dayOfWeek),month:A}):" "+l("web_eventDetail_yearly_byWeekDay",{interval:e.event.recurrenceRule.interval,weekDay:b(R.offset)+" "+u(R.dayOfWeek),month:A})}else e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+l("web_eventDetail_yearlyIntervalOne_byMonthDay",{monthDay:e.event.recurrenceRule.byMonthDay[0],month:A}):" "+l("web_eventDetail_yearly_byMonthDay",{interval:e.event.recurrenceRule.interval,monthDay:e.event.recurrenceRule.byMonthDay[0],month:A})}}e.event.content=e.event.htmlDescription,p.postProcessHtml(e.event),e.event.participantsPublic&&s.getParticipants(n.id,0).then(function(U){e.participants=U,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")})}function u(v){switch(v){case 1:return l("web_common_monday");case 2:return l("web_common_tuesday");case 3:return l("web_common_wednesday");case 4:return l("web_common_thursday");case 5:return l("web_common_friday");case 6:return l("web_common_saturday");case 0:return l("web_common_sunday")}}function b(v){switch(v){case 1:return l("web_eventDetail_recurrence_byWeekDay_first");case 2:return l("web_eventDetail_recurrence_byWeekDay_second");case 3:return l("web_eventDetail_recurrence_byWeekDay_third");case 4:return l("web_eventDetail_recurrence_byWeekDay_fourth");case-1:return l("web_eventDetail_recurrence_byWeekDay_last");case-2:return l("web_eventDetail_recurrence_byWeekDay_secondToLast");case-3:return l("web_eventDetail_recurrence_byWeekDay_thirdToLast");case-4:return l("web_eventDetail_recurrence_byWeekDay_fourthToLast")}}if(e.hideUserInteraction=1==scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==t.scope.profile.isRegistered&&0==t.app,null===e.event&&e.$parent.$parent.event&&e.$parent.$parent.$on("eventUpdate",function(v,C){e.event=C,g(),D(),e.$broadcast("$$rebind::refresh")}),n&&g(),e.acceptJoin=function(){e.loadMoreParticipantsPending=!0,s.acceptJoinEvent(e.event.id).then(function(v){e.event.ownParticipationStatus=v.ownStatus,e.event.participantsAcceptedCount=v.acceptedCount,e.event.participantsDeclinedCount=v.declinedCount,e.event.participantsQueuedCount=v.queuedCount,e.notifyToast(v),n.participantsPublic?s.getParticipants(n.id,0).then(function(C){e.participants=C,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")}):e.$broadcast("$$rebind::refreshParticipants")})},e.declineJoin=function(){e.loadMoreParticipantsPending=!0,s.declineJoinEvent(e.event.id).then(function(v){e.event.ownParticipationStatus=v.ownStatus,e.event.participantsAcceptedCount=v.acceptedCount,e.event.participantsDeclinedCount=v.declinedCount,e.event.participantsQueuedCount=v.queuedCount,e.notifyToast(v),e.event.ownParticipationStatus="DECLINED",n.participantsPublic?s.getParticipants(n.id,0).then(function(C){e.participants=C,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")}):e.$broadcast("$$rebind::refreshParticipants")})},e.queueJoin=function(){e.loadMoreParticipantsPending=!0,s.queueJoinEvent(e.event.id).then(function(v){e.event.ownParticipationStatus=v.ownStatus,e.event.participantsAcceptedCount=v.acceptedCount,e.event.participantsDeclinedCount=v.declinedCount,e.event.participantsQueuedCount=v.queuedCount,e.notifyToast(v),n.participantsPublic?s.getParticipants(n.id,0).then(function(C){e.participants=C,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")}):e.$broadcast("$$rebind::refreshParticipants")},v=>{e.notifyToast({changeOutcome:"web_events_reason_server_error",changeSuccess:!1,error:v})})},e.notifyToast=function(v){v.changeSuccess?DevExpress.ui.notify({message:t.scope.currentScope.network.getResourceOrKeyName(v.changeOutcome),position:{my:"center center",at:"center center"},maxWidth:"540px"},"success",3e3):(DevExpress.ui.notify({message:t.scope.currentScope.network.getResourceOrKeyName(v.changeOutcome),position:{my:"center center",at:"center center"},maxWidth:"540px"},"error",3e3),console.log(v.error))},e.loadMoreParticipants=function(){e.loadMoreParticipantsPending=!0,s.getParticipants(n.id,e.participantPage+1).then(function(v){Array.prototype.push.apply(e.participants,v),e.participantPage+=1,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")})},(!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history&&window.allowRedirect){var I=t.scope.currentChapter.path+h.url();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",I)}var m,D=function(){e.event.assetReferences&&(m=e.event.assetReferences.reduce(function(v,C){return v[C.guid]=C,v},{}))};e.resolveAsset=function(v){return m[v]},$(window).scroll(function(v){$(v.target).scrollTop()>100?$(".articleDetail-mobileNavigation-wrapper").addClass("articleDetail-mobileNavigation-wrapper-scrolled"):$(".articleDetail-mobileNavigation-wrapper").removeClass("articleDetail-mobileNavigation-wrapper-scrolled")}),e.recommendedArticles=[],e.recommendedArticlePairs=[],e.recommendedSnips=[],e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],e.$watch(function(){return"event.detailsLoaded"},function(v){v&&D()});var w=function(v){e.event.assetReferences.unshift(v)};e.availableTargetLanguages=null,i.getAvailableTargetLanguages().then(function(v){e.availableTargetLanguages=v}),e.selectedTargetLanguage=t.profile.favoriteLanguage,e.$on("apicodo.translate",function(v,C){e.translateEventDetail(C)}),e.isParticipationLocked=function(){const v=e.event;return!!v.lockParticipation||!!v.lockParticipationAuto&&new Date(v.lockParticipationAutoDate)<new Date},e.translateEventDetail=function(v){v&&(e.selectedTargetLanguage=v),e.currentLanguage=e.selectedTargetLanguage,null===e.selectedTargetLanguage?s.getEvent(e.event.id).then(function(C){e.event=C,e.event.assetReferences=C.assetReferences,g(),D(),e.$broadcast("$$rebind::refresh")}):s.translateEventDetail(e.event.id,e.selectedTargetLanguage).then(function(C){e.event=C,e.event.assetReferences=C.assetReferences,g(),D(),e.$broadcast("$$rebind::refresh"),c.updateFavoriteLanguage(e.selectedTargetLanguage).then(function(){t.profile.favoriteLanguage=e.selectedTargetLanguage})})},e.assetCreateOpinionDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateOpinionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return w},createAssetAsync:function(){return function(v){return d.insertAssetTextToEvent(v,e.event.id)}}}})},e.assetCreateFactDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return w},createAssetAsync:function(){return function(v){return d.insertAssetTextToEvent(v,e.event.id)}}}})},e.assetCreateQuestionDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return w},createAssetAsync:function(){return function(v){return d.insertAssetTextToEvent(v,e.event.id)}}}})},e.assetCreateImageDialog=function(v,C,f){v&&0!==v.length?C.length||r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return v},resultCallback:function(){return w},createAssetAsync:function(){return function(F){return d.insertAssetImageToEvent(F,e.event.id)}}}}):C||f.$setPristine()},e.assetCreateVideoDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return w},createAssetAsync:function(){return function(v){return d.insertAssetTextToEvent(v,e.event.id)}}}})},e.assetCreateGifDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return w},createAssetAsync:function(){return function(v){return d.insertAssetTextToEvent(v,e.event.id)}}}})},e.assetSearchDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return w},eventId:function(){return e.event.id},assetReferences:function(){return e.event.assetReferences}}})},e.assetImageFocuspointDialog=function(v){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){var C=null;return e.event.assetReferences.forEach(function(f){f.assetImage?.guid===e.event.coverImage.guid&&(e.event.coverImage=(C=f).assetImage)}),C}}})},e.scrollTo=function(v){$("body,html").animate({scrollTop:$(v).offset().top-120},1e3)},e.$watchCollection("event.assetReferences",function(){e.event&&(e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],angular.isDefined(e.event.assetReferences)&&e.event.assetReferences.forEach(function(v){null!==v.assetImage||null!==v.assetText&&(5===v.assetText.type||6===v.assetText.type||7===v.assetText.type||10===v.assetText.type||13===v.assetText.type)?e.assetsMedia.push(v):null!==v.assetText&&(8===v.assetText.type?e.assetsFacts.push(v):9===v.assetText.type?e.assetsQuestions.push(v):0===v.assetText.type&&e.assetsComments.push(v))}))})}]),app.component("eventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarDisplayable.html",bindings:{event:"<"},controller:["$rootScope",function(e){var t=this;this.$onInit=function(){var a=new Date(t.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"}),n=new Date(t.event.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"});t.formattedCalendarDate=a!==n?e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_dateRange",{start:a,end:n}):e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:a})}}]}),app.controller("EventCalendarEditController",["$scope","event","metaService","$timeout","$uibModal","$rootScope","proseMirrorEditorService","editorAssetsService","spellingService","eventCalendarService","logoService","editorCommentService",function(e,t,a,n,s,p,h,r,i,c,d,o){e.event=t,e.event.breakingEvent=!1,e.enableHighQualityImage=p.scope.network.settings.configurations.enableHighQualityImage;var l=p.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration;e.canPublish=!l||!0!==l.EnableApproval||p.profile.isNewsroomAdmin||6===l.MinApprovalRole&&p.profile.isHeadSales||5===l.MinApprovalRole&&p.profile.isSales||4===l.MinApprovalRole&&p.profile.isHeadJournalist||3===l.MinApprovalRole&&p.profile.isMerkuristJournalist||2===l.MinApprovalRole&&p.profile.isJournalist;var g=new Date;if(t.start||(t.start=g),t.showStartDateCalendar=!1,t.showEndDateCalendar=!1,t.recurrenceRule.hasUntil=!1,t.recurrenceRule.showStartDateCalendar=!1,t.showAutoLockParticipationDatePicker=!1,"string"==typeof t.start&&(t.start=new Date(t.start)),t.end||(t.end=new Date(t.start.setMinutes(t.start.getMinutes()+30))),"string"==typeof t.end&&(t.end=new Date(t.end)),e.endOptions={minDate:t.start,showWeeks:!1},e.toggleStartDateCalendar=function(){t.showStartDateCalendar=!t.showStartDateCalendar},e.toggleEndDateCalendar=function(){t.showEndDateCalendar=!t.showEndDateCalendar},e.toggleRecurrenceRuleHasUntilCalendar=function(){t.recurrenceRule.hasUntil=!t.recurrenceRule.hasUntil},e.toggleReccurenceStartDateCalendar=function(){t.recurrenceRule.showStartDateCalendar=!t.recurrenceRule.showStartDateCalendar},e.toggleAutoLockParticipationDatePicker=function(){t.showAutoLockParticipationDatePicker=!t.showAutoLockParticipationDatePicker},e.onChangeEventIsAllDay=function(){t.isAllDay&&(t.start&&(t.start=new Date(t.start.setHours(0,0,0,0))),t.end&&(t.end=new Date(t.end.setHours(23,59,59,999))))},e.defaultEventPicture=d.getChapterEventPictureUrl(),e.togglePreview=function(){e.preview=!e.preview,e.$broadcast("eventUpdate",I())},e.toggleBreakingEvent=function(){e.breakingEvent=!e.breakingEvent},e.event.recurrenceRule.hasUntil=new Date(e.event.recurrenceRule.until).getFullYear()>1,e.event.recurrenceRule.hasUntil||(e.event.recurrenceRule.until=new Date(e.event.start.valueOf()).setDate(e.event.start.getDate()+1)),"string"==typeof e.event.recurrenceRule.until&&(e.event.recurrenceRule.until=new Date(e.event.recurrenceRule.until)),0===e.event.durationInSeconds?(e.event.durationValue=30,e.event.durationType=1):(e.event.durationValue=e.event.durationInSeconds,e.event.durationType=0,e.event.durationValue%60==0&&(e.event.durationValue/=60,e.event.durationType=1,e.event.durationValue%60==0&&(e.event.durationValue/=60,e.event.durationType=2,e.event.durationValue%24==0&&(e.event.durationValue/=24,e.event.durationType=3,e.event.durationValue%7==0&&(e.event.durationValue/=7,e.event.durationType=4))))),e.event.recurrenceRule.weekDays=[!1,!1,!1,!1,!1,!1,!1],5===e.event.recurrenceRule.frequency?(e.event.recurrenceRule.byDay.forEach(function(x){e.event.recurrenceRule.weekDays[x.dayOfWeek]=!0}),e.event.recurrenceRule.byDay=[]):e.event.recurrenceRule.weekDays[g.getDay()]=!0,e.event.recurrenceRule.dayType=1,!e.event.recurrenceRule.byDay.length){var u=Math.floor(g.getDate()/7)+1;5==u&&(u=-1),e.event.recurrenceRule.byDay.push({dayOfWeek:g.getDay(),offset:u}),e.event.recurrenceRule.dayType=0}e.event.recurrenceRule.byMonthDay.length||e.event.recurrenceRule.byMonthDay.push(g.getDate()),e.event.recurrenceRule.byMonth.length||e.event.recurrenceRule.byMonth.push(g.getMonth()+1),e.addWeekDayRule=function(){e.event.recurrenceRule.byDay.push({dayOfWeek:1,offset:1})},e.deleteWeekDayRule=function(x){e.event.recurrenceRule.byDay.splice(x,1)},e.$on("$destroy",function(){a.setFavicon(),n.cancel(interpolateRefreshTimeout)}),e.changed=!1;var b=p.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");function I(){var x=JSON.parse(JSON.stringify(e.event));switch(x.jsonDescription=h.getDocument(),x.htmlDescription=h.getHtmlDocument(),x.durationInSeconds=x.durationValue,x.durationType){case 0:break;case 1:x.durationInSeconds*=60;break;case 2:x.durationInSeconds*=3600;break;case 3:x.durationInSeconds*=86400;break;case 4:x.durationInSeconds*=604800}if(0!==x.recurrenceRule.frequency&&(x.end=null,x.isAllDay=!1),x.recurrenceRule.frequency<=5&&(x.recurrenceRule.byDay=[],x.recurrenceRule.byMonthDay=[]),x.recurrenceRule.frequency<=6&&(x.recurrenceRule.byMonth=[]),5===x.recurrenceRule.frequency?x.recurrenceRule.weekDays.forEach(function(y,M){y&&x.recurrenceRule.byDay.push({dayOfWeek:M})}):1===x.recurrenceRule.dayType?x.recurrenceRule.byMonthDay=[]:x.recurrenceRule.byDay=[],7===x.recurrenceRule.frequency&&(x.recurrenceRule.byMonthDay.splice(1),x.recurrenceRule.byDay.splice(1)),x.isAllDay){var S=new Date(x.start);x.start=S.getFullYear()+"-"+(S.getMonth()+1)+"-"+ +S.getDate();var k=new Date(x.end);x.end=k.getFullYear()+"-"+(k.getMonth()+1)+"-"+ +k.getDate()}return x.recurrenceRule&&!x.recurrenceRule.hasUntil&&(x.recurrenceRule.until=null),x.allowJoin||(x.showParticipants=!1,x.maxParticipants=null),x.maxParticipants<1&&(x.maxParticipants=null),x.lockParticipation&&(x.lockParticipationAuto=!1,x.lockParticipationAutoDate=null),x}window.onbeforeunload=function(){if(e.changed)return b},preventNavigation=!1,p.$on("$stateChangeStart",function(x,S){if(preventNavigation)x.preventDefault();else if(e.changed&&!confirm(b)){preventNavigation=!0,x.preventDefault();var k=!1;n(function(){preventNavigation=!1},1e3)}else e.changed=!1,k&&(closeConnection(),k=!1)}),e.$watch("event.lockParticipation",function(x){}),e.$watch("event.start",function(x){if(e.endOptions.minDate=x,e.event.end<x&&((S=new Date(x.valueOf())).setHours(e.event.end.getHours()),S.setMinutes(e.event.end.getMinutes()),S<x&&S.setDate(S.getDate()+1),e.event.end=S),e.event.recurrenceRule.until<x){var S=new Date(x.valueOf());e.event.recurrenceRule.until=S}}),e.save=function(){c.updateEvent(e.event.id,I()).then(function(x){e.editForm.$dirty=!1,e.event.unpublishedRevisionGuid=x})},e.publish=function(){c.publishEvent(e.event.unpublishedRevisionGuid,e.event.breakingEvent).then(function(){e.event.unpublishedRevisionGuid=null})},e.requestPublish=function(){c.requestEventPublish(e.event.id).then(function(){e.event.publishRequested=!0})},e.onChangeLockParticipationAuto=function(){if(t.lockParticipationAuto){if(t.lockParticipationAutoDate)return;t.lockParticipationAutoDate=g}else t.lockParticipationAutoDate=null},e.pickCoverAsset=function(){s.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},resultCallback:function(){return function(x){e.event.coverImage=x.assetImage,e.editForm.$dirty=!0}},event:function(){return e.event}}})},$(".articleEdit-wrapper").scroll(function(){!function F(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),e.numberOfWords=i.countWords(e.event.htmlDescription);var T=function(x){n(function(){e.event.jsonDescription!==x&&(e.event.jsonDescription=x,e.numberOfWords=i.countWords(h.getHtmlDocument()),e.editForm.$dirty=!0)})};h.init({docID:"event_"+t.id,assetDlgFactory:function(x,S){s.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},resultCallback:function(){return function(k){if(S&&k.length>0){h.setFocus();var y=[];$.each(k,function(M,A){var R=null;A.assetImage&&(R=A.assetImage.type),A.assetText&&(R=A.assetText.type),A.assetArticle&&(R=A.assetArticle.type),A.assetFile&&(R=A.assetFile.type),y.push({guid:A.guid,type:R})}),S(y)}}},event:function(){return e.event}}})},initialDocument:t.jsonDescription,initialAssetReferences:t.assetReferences,assetResolver:function(x){return r.getAsset(x,e.event.assetReferences)},commentCreationDlgFactory:function(x,S){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return S},messageHolder:function(){return new MessageHolder(e.event)},sourceService:function(){return o}}})},commentMgmtDlgFactory:function(x,S,k){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return k},onAddedCallback:function(){return S},messageHolder:function(){return new MessageHolder(e.event)},chainComments:function(){return x},sourceService:function(){return o}}})},createLinkFactory:function(x){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return x}}})},callToActionDlgFactory:function(x,S){s.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return S}}})},onNewStateFactory:T,onLoadTransactionCallback:T,languageCode:p.scope.currentScope.network.settings.languageCode}),p.$on("$stateChangeStart",function(x,S){h.closeConnection()})}]),app.factory("eventCalendarService",["$rootScope","$http","$q","authService",function(e,t,a,n){return{getEventCalendarEventData:function(){var w=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/eventList").then(function(v){w.resolve(v.data)},function(){w.reject()}),w.promise},createEvent:function(){var w=a.defer();return t.post(scope.apiEndpoint+"eventcalendar").then(function(v){w.resolve(v.data)},function(){w.reject()}),w.promise},updateEvent:function(w,v){var C=a.defer();return t.put(scope.apiEndpoint+"eventcalendar/"+w,v).then(function(f){C.resolve(f.data)},function(){C.reject()}),C.promise},deleteEvent:function(w){var v=a.defer();return t.delete(scope.apiEndpoint+"eventcalendar/"+w).then(function(C){v.resolve(C.data)},function(){v.reject()}),v.promise},publishEvent:function(w,v){var C=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+w+"/publish?breaking="+(v?"true":"false")).then(function(F){C.resolve(F.data)},function(){C.reject()}),C.promise},requestEventPublish:function(w){var v=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+w+"/requestPublish").then(function(C){v.resolve(C.data)},function(){v.reject()}),v.promise},getEvent:function(w){var v=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+w+"?forEdit=false").then(function(C){v.resolve(C.data)},function(){v.reject()}),v.promise},getEventForEdit:function(w){var v=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+w+"?forEdit=true").then(function(C){v.resolve(C.data)},function(){v.reject()}),v.promise},getEventsForAuthorDashboard:function(){var w=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/authorDasboardList").then(function(v){w.resolve(v.data)},function(){w.reject()}),w.promise},getParticipants:function(w,v,C){var f=a.defer(),F=scope.apiEndpoint+"eventcalendar/"+w+"/participants?page="+v;return C&&C>0&&(F+="&elementsPerPage="+C),t.get(F).then(function(T){f.resolve(T.data)},function(){f.reject()}),f.promise},acceptJoinEvent:function(w){var v=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+w+"/join/accept").then(function(C){v.resolve(C.data)},function(){v.reject()}),v.promise},declineJoinEvent:function(w){var v=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+w+"/join/decline").then(function(C){v.resolve(C.data)},function(){v.reject()}),v.promise},translateEventDetail:function(w,v){var C=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+w+"/translate/"+v).then(function(f){C.resolve(f.data)},function(){C.reject()}),C.promise},congratulateToBirthday:function(w,v){var C=a.defer(),f=JSON.stringify(v);return f=f.substring(1,f.length-1),t.post(scope.apiEndpoint+"eventcalendar/"+w+"/congratulateForBirthday?occurance="+f).then(function(F){C.resolve(F.data)},function(){C.reject()}),C.promise},queueJoinEvent:function(w){var v=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+w+"/join/queue").then(function(C){v.resolve(C.data)},function(){v.reject()}),v.promise}}}]),app.component("snipEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/snipEventCalendarDisplayable.html",bindings:{snip:"<",horizontal:"<"},controller:function(){var e=this;this.$onInit=function(){e.formatedCalendarDate=moment(e.snip.calendarDate).format("dddd")+", der "+new Date(e.snip.calendarDate).getDate()+". "+moment(e.snip.calendarDate).format("MMMM")}}}),app.component("sponsoredArticleEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/sponsoredArticleEventCalendarDisplayable.html",bindings:{sparticle:"<"},controller:function(){var e=this;this.$onInit=function(){e.formatedCalendarDate=moment(e.sparticle.calendarDate).format("dddd")+", der "+new Date(e.sparticle.calendarDate).getDate()+". "+moment(e.sparticle.calendarDate).format("MMMM")}}}),app.directive("allowInternAd",["$rootScope",function(e){return{restrict:"A",link:function(t,a){e.scope.currentScope.chapter.settings.criteoPublisherId?a.show():a.hide()}}}]),app.directive("articleAdDynamic",["stroerService",function(e){return{restrict:"A",link:function(t,a,n){var s=a[0],p=angular.element('<div id="articleAdvertisement"></div>')[0],h=t.$ctrl.isMobile;s.appendChild(p);var r=function(){return SDG.Publisher.setZone("localnews"),h?(SDG.Publisher.registerSlot("topmobile2",p).load(),e.isDebugging&&console.log("loading articleAdvertisement")):(SDG.Publisher.registerSlot("rectangle",p).load(),e.isDebugging&&console.log("loading articleAdvertisement")),"Loaded SDG"};"article"==e.svc.siteArea&&r(),t.$on("stroer:updated",function(c,d){e.isDebugging&&console.log("Recived update from service"),"article"==d.siteArea&&function(){try{exponentialBackoff(r,5,1e3,function(d){e.isDebugging&&console.log("External Ad Dynamic Directive binding is ",d)})}catch(d){e.isDebugging&&console.error("Failure: "+d)}}()})}}}]),app.directive("articleAdDynamicSecond",["stroerService",function(e){return{restrict:"A",link:function(t,a,n){var s=a[0],p=angular.element('<div id="secondHomeAdvertisement" style="text-align: center"></div>')[0],h=t.$ctrl.isMobile;s.appendChild(p);var r=function(){return h?SDG.Publisher.registerSlot("topmobile2",p).load():SDG.Publisher.registerSlot("rectangle",p).load(),e.isDebugging&&console.log("loading secondHomeAdvertisement"),"SDG loaded"},i=function(){try{exponentialBackoff(r,5,1e3,function(d){e.isDebugging&&console.log("External Ad Second Directive binding is ",d)})}catch(d){e.isDebugging&&console.error("Failure: "+d)}};"homepage"==e.svc.siteArea&&i(),t.$on("stroer:updated",function(c,d){e.isDebugging&&console.log("Recived update from service"),"homepage"==d.siteArea&&i()})}}}]),app.provider("criteoService",function(){window.Criteo=window.Criteo||{events:[]};var e=!1;this.initialize=function(a){if(!e){var n=document.createElement("script");n.type="text/javascript",n.src="https://static.criteo.net/js/ld/publishertag.js",n.async=!0,document.body.appendChild(n),Criteo.events.push(function(){Criteo.Passback.RequestBids({placements:[{slotid:"externalAdArticle",publishersubid:a,zoneid:1283196},{slotid:"externalAdSnip-1",publishersubid:a,zoneid:1283192},{slotid:"externalAdShipmentSnips",publishersubid:a,zoneid:1283194},{slotid:"externalAdShipmentArticle",publishersubid:a,zoneid:1283195}]},3e3)}),e=!0}};var t={renderAdArticle:function(a){Criteo.events.push(function(){Criteo.Passback.RenderAd("externalAdArticle",a)})},renderAdSnip:function(a,n){Criteo.events.push(function(){Criteo.Passback.RenderAd("externalAdSnip-"+a,n)})},renderShipment:function(a,n){Criteo.events.push(function(){Criteo.Passback.RenderAd(a,n)})}};this.$get=function(){return t}}),app.component("externalAdArticle",{templateUrl:"/ClientApp/src/legacy-app/externalAd/externalAdArticle.html",controller:["$rootScope","$scope","profileService","stroerService",function(e,t,a,n){var s=this;t.profile=a.profile,t.chapter=e.scope.currentScope.chapter,s.isExternalAdEmpty=!1,s.isMobile=e.mobile;var p=function(){s.isMobile?("snips"==n.svc.siteArea?SDG.Publisher.registerSlot("topmobile2","externalAdArticleStroer").load():SDG.Publisher.registerSlot("topmobile","externalAdArticleStroer").load(),n.isDebugging&&console.log("loading externalAdArticleStroer")):(SDG.Publisher.registerSlot("rectangle","externalAdArticleStroer").load(),n.isDebugging&&console.log("loading externalAdArticleStroer"))},h=function(){try{exponentialBackoff(p,5,1e3,function(i){n.isDebugging&&console.log("Article Ad Article Component binding is ",i)})}catch(i){n.isDebugging&&console.error("Failure: "+i)}};"snips"==n.svc.siteArea&&(h(),n.isDebugging&&console.log("Registering snips")),t.$on("stroer:updated",function(r,i){n.isDebugging&&console.log("Recived update from service"),"snips"==i.siteArea?h():n.isDebugging&&console.log("not snips")})}]}),app.component("externalAdShipment",{templateUrl:"/ClientApp/src/legacy-app/externalAd/externalAdShipment.html",bindings:{proposeId:"@"},controller:["$rootScope","$scope","imageUrlBuilderService","profileService","$timeout",function(e,t,a,n,s){var p=this;t.profile=n.profile,t.chapter=e.scope.currentScope.chapter,p.isExternalAdEmpty=!1,p.isMobile=e.mobile,s(function(){p.adSlot=p.isMobile?"topmobile3":"rectangle"})}]}),app.component("externalAdSnip",{templateUrl:"/ClientApp/src/legacy-app/externalAd/externalAdSnip.html",bindings:{displayableGroup:"@",adPosition:"@"},controller:["$rootScope","$scope","stroerService","skipThirdSnipService","profileService",function(e,t,a,n,s){var p=this;e.$on("$routeChangeSuccess",function(){console.log("route changed")}),t.profile=s.profile,t.chapter=e.scope.currentScope.chapter,p.isMobile=e.mobile,this.enable=function(){return n.skipSnip(parseInt(p.displayableGroup),parseInt(p.adPosition))},this.isSecondAd=function(){return n.useSecondPosition(parseInt(p.displayableGroup),parseInt(p.adPosition))};var h=this.isSecondAd();p.isExternalAdEmpty=!1,this.$onInit=function(){if(n.skipSnip(parseInt(p.displayableGroup),parseInt(p.adPosition))){a.isDebugging&&console.log(a);var i=function(){return p.isMobile?(p.adSlot="topmobile",h&&(SDG.Publisher.registerSlot("topmobile","startPageRectangle").load(),a.isDebugging&&console.log("loading startPageRectangle"))):(h&&(SDG.Publisher.registerSlot("rectangle2","startPageRectangle").load(),a.isDebugging&&console.log("loading startPageRectangle")),p.adSlot="rectangle"),"SDG pos snips loaded"},c=function(){try{exponentialBackoff(i,5,1e3,function(o){a.isDebugging&&console.log("External Ad Snip Component binding is ",o)})}catch(o){a.isDebugging&&console.error("Failure: "+o)}};"homepage"==a.svc.siteArea&&c(),t.$on("stroer:updated",function(d,o){a.isDebugging&&console.log("Recived update from service"),"homepage"==o.siteArea&&c()})}}}]}),app.service("skipThirdSnipService",["$rootScope",function(e){this.skipSnip=function(a,n){return!(!n||!e.scope.currentScope.chapter.settings.criteoPublisherId||1!==a&&2!==a||3!==n)},this.useSecondPosition=function(a,n){return!(!n||!e.scope.currentScope.chapter.settings.criteoPublisherId)&&2===a&&3===n}}]),app.service("stroerService",["$http","$q","$rootScope","$location",function(e,t,a,n){var s=this;if(s.svc={},s.svc.path="Home",s.svc.siteArea="homepage",s.svc.isActive=!1,void 0!==a.scope.currentScope.chapter.settings&&(s.svc.isActive=!!a.scope.currentScope.chapter.settings.criteoPublisherId),s.svc.initialized=!1,a.app&&(s.svc.isActive=!1),s.isDebugging=!1,s.updatePublisherZone=function(o){switch(o){case"homepage":SDG.Publisher.setZone("homepage");break;case"article":case"snips":case"a_snip":SDG.Publisher.setZone("localnews")}},n.search().stdbgsvc&&(s.isDebugging=!0),s.svc.isActive){let o=function(){var g=n.path().split("/");String.prototype.includes||(String.prototype.includes=function(I,m){return"number"!=typeof m&&(m=0),!(m+I.length>this.length)&&-1!==this.indexOf(I,m)}),s.isLocal=n.host().includes("localhost"),s.isDebugging&&console.log(g);var u=g.length,b="article";return s.isLocal?("snips"==g[3]&&(b="snips",u>4&&(b="a_snip")),3==u&&(b="homepage"),"snips"!=g[3]&&u>4&&(b="administration")):("snips"==g[2]&&(b="snips",u>3&&(b="a_snip")),2==u&&(b="homepage"),"snips"!=g[2]&&u>3&&(b="administration")),b};try{SDG,SDG.Publisher.unregisterSlot("topmobile",!0)}catch{if(!$("stroerScriptFallback").length){var r=document.createElement("script");r.type="text/javascript",r.id="stroerScriptFallback",document.getElementsByTagName("head")[0].appendChild(r),s.isDebugging&&console.log("added script")}}s.svc.siteArea=o();var i=function(){try{return s.svc.siteArea=o(),s.updatePublisherZone(s.svc.siteArea),SDG.Publisher.finalizeSlots(),SDG.Publisher.loadAllSlots(!1),s.svc.initialized=!0,!0}catch{return!1}};s.fallbackInit=i,s.svc.isActive&&function(){try{exponentialBackoff(i,5,2e3,function(u){s.isDebugging&&console.log("Stroer JS from CDN binding is ",u)})}catch(u){s.isDebugging&&console.error("Failure binding Stroer CDN JS: "+u)}}(),a.$on("$locationChangeSuccess",function(){s.svc.path=n.path(),s.svc.url=a.scope.currentChapter.path+n.url();var g=n.path().split("/");s.isDebugging&&console.log(g),s.svc.siteArea=o(),s.updatePublisherZone(s.svc.siteArea),SDG.Publisher.unregisterSlot("topmobile",!0),SDG.Publisher.unregisterSlot("topmobile2",!0),SDG.Publisher.unregisterSlot("rectangle",!0),SDG.Publisher.unregisterSlot("rectangle2",!0),s.isDebugging&&console.log(s),a.$broadcast("stroer:updated",s.svc)}),a.$broadcast("stroer:updated",s.svc)}s.isDebugging&&console.log(s)}]),app.filter("absoluteUrl",function(){return function(e){return e?0!=e.indexOf("http://")&&0!=e.indexOf("https://")?"http://"+e:e:""}}),app.filter("apicodoMediaServiceEmbed",["$sce","authService",function(e,t){return function(a){return e.trustAsResourceUrl(t.mediaApiBase.url+"/play/"+a.split("|")[0]+"?guiMode=iframe&token="+a.split("|")[1]+"&platform=external")}}]),app.filter("apicodoMediaServiceWatch",["$sce","authService",function(e,t){return function(a){return e.trustAsResourceUrl(t.mediaApiBase.url+"/play/"+a.split("|")[0]+"?guiMode=iframe&token="+a.split("|")[1]+"&platform=external")}}]),app.filter("apicodoMediaServiceImage",["$sce","authService",function(e,t){return function(a){return e.trustAsResourceUrl(t.mediaApiBase.url+"/api/Asset/"+a+"/Thumbnail000001.jpg")}}]),app.filter("dailymotionEmbed",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//www.dailymotion.com/embed/video/"+t+"?logo=0&related=0&highlight=00a9fd")}}]),app.filter("datePastOrNow",function(){return function(e){return moment()<moment(e)?moment():moment(e)}}),app.filter("encodeURIComponent",function(){return window.encodeURIComponent}),app.filter("escapeHtml",[function(){return function(e){return e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):""}}]),app.filter("facebookEmbed",["$sce","$rootScope",function(e,t){return function(a){return e.trustAsResourceUrl("//www.facebook.com/plugins/video.php?href="+window.encodeURIComponent("https://www.facebook.com/".concat(a))+"%2F&show_text=0&width=600&height=338")}}]),app.filter("facebookWatch",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//www.facebook.com/"+t+"/")}}]),app.filter("facebookImage",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//graph.facebook.com/"+t.split("/")[2]+"/picture")}}]),app.filter("includeMyUnpublishedSnips",function(){return function(e,t){var a=function(r,i){return r.user.guid.toLowerCase()===i.toLowerCase()},s=e.filter(function(r){return a(r,t)&&!function(r){return null!==r.deleted}(r)}),p=e.filter(function(r){return!a(r,t)&&r.published});return s.concat(p)}}),app.filter("moment",function(){return function(e,t){var a=Array.prototype.slice.call(arguments,2),n=moment(e);return n[t].apply(n,a)}}),app.filter("momentShortDateFormat",["$rootScope",function(e){return function(){var t=moment(arguments[0]);return t.locale(e.scope.currentScope.network.settings.languageCode).format("L")}}]),app.filter("momentShortDateTimeFormat",["$rootScope",function(e){return function(){var t=moment(arguments[0]),a=e.scope.currentScope.network.settings.languageCode;return t.locale(a).format("L")+" "+t.locale(a).format("LT")}}]),app.filter("parseUrl",function(){"use strict";return function(t){return function e(t){if(t)return t.replace(/(?:https?\:\/\/|www\.)+(?![^\s]*?")([\w.,@?!^=%&amp;:\/~+#-]*[\w@?!^=%&amp;\/~+#-])?/gi,function(n){var s=document.createElement("div"),p=document.createElement("a");return 0!=n.indexOf("http://")&&0!=n.indexOf("https://")&&(n="http://"+n),p.href=n,p.target="_blank",p.innerHTML=n.replace(/.*?:\/\/(www\.)?/g,""),s.appendChild(p),s.innerHTML})||""}(t)}}),app.filter("readableMilliseconds",function(){return function(e){var t,a,s,p,h,r,i,c,d,o,l,g,u,b,I,m;switch(b=parseInt(e)<0,I=parseInt(e)/1e3,I=Math.abs(I),p=7*(t=24*(a=3600)),s=(h=365*t)/12,m={years:null,months:null,weeks:null,days:null,hours:null,minutes:null,seconds:null},r=function(){return("        "+(b?"-":"")+"        "+(m.years?" "+m.years+"yr":"")+"        "+(m.months?" "+m.months+"mth":"")+"        "+(m.weeks?" "+m.weeks+"w":"")+"        "+(m.days?" "+m.days+"d":"")+"        "+(m.hours?" "+m.hours+"h":"")+"        "+(m.minutes?" "+m.minutes+"m":"")+"        "+(m.seconds?" "+m.seconds+"s":"")+"        ").trim()},l=function(D,w){return null==w&&(w=0),m.seconds=1===w?D.toFixed(1):Math.floor(D),r()},d=function(D){return m.minutes=Math.floor(D/60),l(D-60*m.minutes)},c=function(D){return m.hours=Math.floor(D/a),d(D-m.hours*a)},i=function(D){return m.days=Math.floor(D/t),c(D-m.days*t)},g=function(D){return m.weeks=Math.floor(D/p),i(D-m.weeks*p)},o=function(D){return m.months=Math.floor(D/s),g(D-m.months*s)},u=function(D){return m.years=Math.floor(D/h),o(D-m.years*h)},!1){case!(I<60):return l(I,1);case!(I<a):return d(I);case!(I<t):return c(I);case!(I<p):return i(I);case!(I<s):return g(I);case!(I<h):return o(I);default:return u(I)}}}),app.filter("trustUrl",["$sce",function(e){return function(t){return e.trustAsResourceUrl(t)}}]),app.filter("vimeoEmbed",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//player.vimeo.com/video/"+t.split("|")[0].split("/")[0]+"?badge=0&portrait=0&byline=0")}}]),app.filter("vimeoWatch",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//vimeo.com/"+t.split("|")[0])}}]),app.filter("vimeoImage",["$sce",function(e){return function(t){var a=t.split("|")[1];return a||(a="/Content/images/vimeo_logo.jpg"),e.trustAsResourceUrl(a)}}]),app.filter("youtubeEmbed",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//www.youtube.com/embed/"+t+"?modestbranding=1&amp;rel=0")}}]),app.filter("youtubeWatch",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//youtu.be/"+t)}}]),app.filter("youtubeImage",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//img.youtube.com/vi/"+t+"/0.jpg")}}]),app.factory("backendHubProxy",["$rootScope",function(e){return function t(a){var n=$.hubConnection(),s=n.createHubProxy(a);return s.connection.logging=!0,{on:function(p,h){s.on(p,function(r){e.$apply(function(){h&&h(r)})})},invoke:function(p,h,r){s.invoke(p,h).done(function(i){e.$apply(function(){r&&r(i)})})},start:function(p){n.start().done(function(){p&&p()}).catch(function(h){console.log(h.toString())})},stop:function(p){n.stop(),p&&p()}}}}]),app.controller("IkUpLandingPageController",["$scope","$rootScope","ikUpLandingPageService","$location","$timeout","$window",function(e,t,a,n,s,p){switch(e.input={},e.description=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description"),e.placeholder=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey"),e.loginbutton=t.scope.currentScope.network.getResourceOrKeyName("web_common_login"),(p.navigator.language||p.navigator.userLanguage).substring(0,2).toLowerCase()){case"en":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_en")&&(e.description=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_en")),t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_en")&&(e.placeholder=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_en")),t.scope.currentScope.network.getResourceOrKeyName("web_common_login_en")&&(e.loginbutton=t.scope.currentScope.network.getResourceOrKeyName("web_common_login_en"));break;case"fr":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_fr")&&(e.description=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_fr")),t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_fr")&&(e.placeholder=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_fr")),t.scope.currentScope.network.getResourceOrKeyName("web_common_login_fr")&&(e.loginbutton=t.scope.currentScope.network.getResourceOrKeyName("web_common_login_fr"))}e.request=function(){a.getCompanyKey(e.input.companyKey).then(function(r){var i=n.absUrl();if(r)window.location.href=i+"?id="+r.landingSwitchRedirectId;else{var c=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches");switch((p.navigator.language||p.navigator.userLanguage).substring(0,2).toLowerCase()){case"en":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_en")&&(c=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_en"));break;case"fr":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_fr")&&(c=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_fr"))}e.input.noMatches=c,s(function(){e.input.noMatches=""},2e3)}})}}]),app.factory("ikUpLandingPageService",["$http","$q",function(e,t){return{getCompanyKey:function(n){var s=t.defer();return e.post(scope.apiEndpoint+"companyKeys",{Key:n}).then(function(p){s.resolve(p.data)}),s.promise}}}]),app.controller("ChapterSwitchDialog",["$scope","$rootScope","profileService","scopeService","$stateParams",function(e,t,a,n,s){scope.network.settings.configurations.chapterSwitchGrantedChaptersOnly?a.getProfile().then(function(p){e.aprofile=p;for(var h=[],r=0;r<scope.network.chapters.length;r++)p.closedChapterSlugs.includes(scope.network.chapters[r].slug)&&h.push(scope.network.chapters[r]);e.chapterList=h}):e.chapterList=scope.network.chapters}]),app.controller("IndexController",["$scope","$rootScope","$location","authService","$uibModal","$window","profileService","$timeout",function(e,t,a,n,s,p,h,r){var i=function(){"unrecognized"!==ResponsiveBootstrapToolkit.current()?t.mobile=ResponsiveBootstrapToolkit.is("<=sm"):r(i)};i(),$(window).resize(function(){e.$apply(function(){t.mobile=ResponsiveBootstrapToolkit.is("<=sm")})}),e.login=function(){s.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return function(){}},facebookSignUpData:!1,login:!0}})},e.profile=h.profile,e.authentication=n,h.getProfile().then(function(){r(function(){e.loaded=!0})}),e.openSnip=function(){var c=s.open({templateUrl:"/ClientApp/src/legacy-app/article/articleCreate.html",controller:"ArticleCreateController",size:"lg",resolve:{}});c.result.then(function(d){},function(){}),c.opened.then(function(){})},e.isActive=function(c){return c===a.path()}}]),app.controller("AppLandingController",["$rootScope","$scope","profileService",function(e,t,a){t.chapterClick=function(n){e.switchChapter(n)}}]),app.controller("LandingController",["$rootScope","$scope","profileService","scopeService","logoService","pageMetaInfoService","$state",function(e,t,a,n,s,p,h){t.success=!1,t.networkLogoUrl=s.getNetworkLogoUrl(),t.logoService=s,p.run("home"),t.switchChapter=function(r,i){i.preventDefault(),e.switchChapter(r)},t.submitForm=function(r){r&&a.insertProposedCity(t.proposedCity).then(function(i){t.success=!0},function(){}).then(function(){})},t.updatePageMetaInfo=function(r){p.run(r)}}]),app.controller("MarketResearchElasticReportController",["$scope","$rootScope","marketResearchService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,p,h,r){AmCharts.isReady=!0;var o,l,g,i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",c=[{color:i},{color:"#cccccc"},{color:"#b53967"},{color:"#00a9fd"},{color:"#9d4f9f"},{color:"#8e6fff"},{color:"#00ffeb"},{color:"#63223a"},{color:"#00496d"},{color:"#d4aad5"},{color:"#160066"},{color:"#e5cce6"}],d=[],u=[];e.report=null,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null,e.totalClickCount=0;var b=function(w){var v=0,C=0,f=0;u.forEach(function(F,T){u[T].value=0}),$.each(w,function(F,T){v+=T.impressionTime,C+=T.impressionCount,$.each(T.answers,function(x,S){$.each(u,function(k,y){if(y.id===S.id)return y.value+=S.clicks,void(f+=S.clicks)})})}),e.$apply(function(){e.totalImpressionTime=v,e.totalImpressionCount=C,e.totalClickCount=f}),g.validateData(),o.validateData(),l.validateData()},I=function(){var w=moment(o.startDate).startOf("day").toDate(),v=moment(o.endDate).startOf("day").toDate(),C=e.report.filter(function(f){return f.day>=w&&f.day<=v});b(C),l.zoom(w,moment(v).add(1,"d").toDate()),e.$apply(function(){e.startDay=w,e.endDay=v})};e.filterChapter=function(w){w.filtered=!w.filtered,function(){var w=e.chapters.filter(function(v){return!v.filtered}).map(function(v){return v.id});e.filterDisabled=!0,a.getReport({marketResearchId:e.marketResearch.id,marketResearchQuestionId:e.marketResearch.questionId,chapterIds:w}).then(function(v){v.forEach(function(C){C.day=moment(C.day.replace("Z","")).toDate()}),e.report=v,h(function(){(function(w){d.length=0,$.each(w,function(v,C){d.push(C)}),o.validateData(),l.validateData()})(v),I(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(w){return e.filterDisabled||1===e.chapters.filter(function(v){return!v.filtered}).length&&!w.filtered},a.getMarketResearch(s.id).then(function(w){e.marketResearch=w,w.questions[0].answers.forEach(function(v,C){u.push({title:v.text,value:0,id:v.intId,color:u.length<=c.length?c[u.length].color:"#000000"})}),a.getReport({marketResearchId:s.id,marketResearchQuestionId:w.questionId}).then(function(v){v.forEach(function(f){f.day=moment(f.day.replace("Z","")).toDate()}),e.report=v,e.startDay=v[0].day,e.endDay=v[v.length-1].day;var C=[];$.each(w.chapterSlugs,function(f,F){C.push(n.getChapter(F))}),C=C.filter(function(f){return 2===f.managementState}),e.chapters=C,$.each(v,function(f,F){d.push(F)}),h(function(){(o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:d,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){I()}),l=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:d,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clickCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),g=AmCharts.makeChart("chartAnswers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:u,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%\nClicks: [[value]]"}),b(v)})},function(){e.error=!0})})}]),app.controller("MarketResearchReportController",["$scope","$rootScope","marketResearchService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,p,h,r){AmCharts.isReady=!0;var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getMarketResearch(s.id).then(function(d){e.marketResearch=d,a.getReportMarketResearchCalendar(s.id).then(function(o){o.forEach(function(l){l.chapter=n.getChapter(l.chapterSlug),l.reports.forEach(function(g){g.calendar.forEach(function(u){u.start=moment(u.start.replace("Z","")).toDate(),u.end=moment(u.end.replace("Z","")).toDate()})})}),d.report=o,h(function(){var l,g,u,b=[],I=new Set;$.each(o,function(T,x){x.active=!0,I.add(x.chapter.name)}),o.uniqueChapters=[],I.forEach(function(T){o.uniqueChapters.push(T)});var m=[],D=function(){m.length=0,$.each(o[0].reports[0].calendar,function(T,x){m.push({start:x.start,end:x.end,impressions:0,viewableImpressions:0,clicks:0,impressionTime:0})}),$.each(o,function(T,x){x.active&&(o[T-1]&&2===o[T-1].chapter.managementState&&2===x.chapter.managementState&&o[T-1].chapter.name!==x.chapter.name&&(o.multiChapterShipment=!0),$.each(x.reports,function(S,k){var y=k.marketResearch.id;$.each(k.calendar,function(M,A){A.id=y,m[M].impressions+=A.impressions,m[M].viewableImpressions+=A.viewableImpressions,m[M].impressionTime+=A.impressionTime,null!==A.marketResearchAnswerId&&(m[M].clicks+=A.impressions)})}))}),g.validateData(),l.validateData()},C=o.summary={};l=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:m,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),g=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"impressions",toField:"impressions"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:m,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_impressions"),type:"smoothedLine",valueField:"impressions",periodValue:"Sum",comparable:!0,balloonText:"Einblendungen: <i class='fa fa-eye-slash'></i> [[value]]",lineAlpha:.5,fillAlphas:.05,periodValueText:"[[value.sum]]",visibleInLegend:!1},{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"viewableImpressions",type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),u=AmCharts.makeChart("chartAnswers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:b,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%\nClicks: [[value]]"});var T,F=function(){var T=moment(l.startDate).startOf("day").toDate(),x=moment(l.endDate).startOf("day").add(-1,"d").toDate();(function(T,x){C.viewableImpressions=0,C.impressions=0,C.clicks=0,C.impressionTime=0,C.start=T,C.end=x,$.each(m,function(S,k){var y=new Date(k.start);y<T||y>x||(C.viewableImpressions+=k.viewableImpressions,C.impressions+=k.impressions,C.clicks+=k.clicks,C.impressionTime+=k.impressionTime)}),u.validateData(),g.validateData(),e.$apply()})(T,x),function(T,x){b.forEach(function(S,k){b[k].value=0}),$.each(o,function(S,k){k.active&&$.each(k.reports,function(y,M){$.each(M.calendar,function(A,R){var U=new Date(R.start);U<T||U>x||R.impressions>0&&null!==R.marketResearchAnswerId&&R.start>=T&&R.end<=x&&b.forEach(function(V,q){b[q].answerId!==R.marketResearchAnswerId||(b[q].value+=R.impressions)})})})}),u.validateData(),e.$apply()}(T,x),g.zoom(T,moment(x).add(1,"d").toDate())};l.addListener("zoomed",function(T){F()}),e.toggleReport=function(T){$.each(o,function(x,S){S.chapter.name===T&&(S.active=!S.active)}),h(function(){D(),F()},50)},D(),(T=d.questions[0].answers).sort(function(x,S){return(x.id>S.id)-(x.id<S.id)}),T.forEach(function(x,S){b.push({title:x.text,value:0,answerId:x.id,color:b.length<=c.length?c[b.length].color:"#000000"})}),F()},function(){e.error=!0})})},function(){r.path("/")});var c=[{color:i},{color:"#cccccc"},{color:"#b53967"},{color:"#00a9fd"},{color:"#9d4f9f"},{color:"#8e6fff"},{color:"#00ffeb"},{color:"#63223a"},{color:"#00496d"},{color:"#d4aad5"},{color:"#160066"},{color:"#e5cce6"}]}]),app.factory("marketResearchService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,s,p){return{getMarketResearch:function(d){var o=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+d).then(function(l){o.resolve(l.data)},function(){o.reject()}),o.promise},getReportMarketResearchCalendar:function(d){var o=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+d+"/ReportMarketResearchCalendar").then(function(l){o.resolve(l.data)},function(){o.reject()}),o.promise},getReportMarketResearchAnswers:function(d){var o=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+d+"/ReportMarketResearchAnswers").then(function(l){o.resolve(l.data)},function(){o.reject()}),o.promise},getReport:function(d){var o=t.defer();return e.post(scope.apiEndpoint+"marketResearch/report",d).then(function(l){o.resolve(l.data)},function(){o.reject()}),o.promise}}}]),app.component("apicodoMediaManager",{templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaManagerComponent.html",bindings:{callback:"<"},controller:["$scope","$element","$stateParams","$location","$rootScope","profileService","apicodoMediaService","authService",function(e,t,a,n,s,p,h,r){var i=this;i.uploading=!1,i.isInitialized=!1,i.apicodoBaseUrl=r.mediaApiBase.url,i.odataBaseUrl=i.apicodoBaseUrl+"/api/odata/",i.apiBaseUrl=i.apicodoBaseUrl+"/api/",DevExpress.localization.locale(s.scope.currentScope.network.settings.languageCode),i.refreshGrid=function(){i.gridInstance.refresh()},i.executeClickCallback=function(d){i.callback&&i.callback({text:i.apicodoBaseUrl+"/play/"+d.row.data.id+"?guiMode=iframe",title:d.row.data.title,attachment:d.row.data.id,thumbnailUrl:i.apicodoBaseUrl+"/api/Asset/"+d.row.data.id+"/Thumbnail000001.jpg"})},h.getConnectionData().then(function(d){i.token=d.token,i.odataBaseUrl=d.apiBase+"/api/odata/",i.gridInstance=$("#mediaGridContainer").dxDataGrid({dataSource:{store:new DevExpress.data.ODataStore({url:i.getGridUrl(),key:"id",keyType:"Guid",version:4,withCredentials:!0,beforeSend:function(o){o.headers=i.getHeaders()}})},paging:{pageSize:5},pager:{showPageSizeSelector:!0,allowedPageSizes:[5,10,25,50,100]},remoteOperations:!0,searchPanel:{visible:!0,highlightCaseSensitive:!0},showColumnHeaders:!1,showColumnLines:!1,showRowLines:!1,columns:[{width:75,allowFiltering:!1,allowSorting:!1,dataField:"id",cellTemplate:function(o,l){$("<div>").append($("<button>",{class:"btn btn-green action-button",click:function(){i.callback&&i.callback({text:i.apicodoBaseUrl+"/play/"+l.data.id+"?guiMode=iframe",title:l.data.title,attachment:l.data.id,thumbnailUrl:i.apicodoBaseUrl+"/api/Asset/"+l.data.id+"/Thumbnail000001.jpg"})}}).append($("<img>",{src:i.apicodoBaseUrl+"/api/Asset/"+l.data.id+"/Thumbnail000001.jpg",height:20}))).appendTo(o)}},{dataField:"title",caption:"Name"},{dataField:"description",caption:"Description",visible:!1},{dataField:"createdOn",sortIndex:0,sortOrder:"desc",visible:!1}]}).dxDataGrid("instance"),i.uploaderInstance=$("#mediaFileUploader").dxFileUploader({name:"file",multiple:!1,accept:"video/*",value:[],chunkSize:5e5,uploadMode:"instantly",labelText:s.scope.currentScope.network.getResourceOrKeyName("web_upload_drag_drop_here"),selectButtonText:s.scope.currentScope.network.getResourceOrKeyName("web_upload_video_button"),uploadHeaders:i.getHeaders(),uploadUrl:i.getFileUploaderUrl(),onValueChanged:function(o){var l=o.value;l.length>0&&$.each(l,function(g,u){var b=(new DevExpress.data.Guid)._value;u.guid=b})},onUploadStarted:function(o){i.uploading=!0},onUploadAborted:function(o){i.uploading=!1},onUploadError:function(o){i.uploading=!1},onUploaded:function(o){i.refreshGrid(),i.uploading=!1}}).dxFileUploader("instance"),i.isInitialized=!0,$(".dx-fileuploader-button").addClass("btn btn-green action-button")}),i.getGridUrl=function(){return i.odataBaseUrl+"MediaFiles"},i.getFileUploaderUrl=function(){return i.apiBaseUrl+"Upload"},i.getHeaders=function(){return{Authorization:"Bearer "+i.token,withCredentials:!1}}}]}),app.component("apicodoMediaPlay",{templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaPlayComponent.html",bindings:{fileid:"<"},controller:["$scope","$element","$stateParams","$location","$rootScope","profileService","apicodoMediaService","$sce","authService",function(e,t,a,n,s,p,h,r,i){var c=this;c.isVerticalVideo=!0,this.$onInit=function(){h.getConnectionData().then(function(d){c.getVideoUrl=function(o){return r.trustAsResourceUrl(i.mediaApiBase.url+"/play/"+o+"?guiMode=iframe&token="+d.token+"&platform=external")},h.getVideoData(c.fileid).then(function(o){try{var l=o.metaData.assetMetadata.assetFile[0].videoTracks[0].height,g=o.metaData.assetMetadata.assetFile[0].videoTracks[0].width,u=void 0!==o.metaData.assetMetadata.assetFile[0].videoTracks[0].metadata.find(function(b){return"rotate"===b.key});c.isVerticalVideo=u,u?console.log(parseInt(l),"x",parseInt(g),"rotation"):(console.log(parseInt(l),"x",parseInt(g),"no rotation"),parseInt(l)>parseInt(g)&&(c.isVerticalVideo=!0))}catch{console.log("ERROR META ROTATION"),console.log(o)}}),c.videoUrl=c.getVideoUrl(c.fileid)})}}]}),app.controller("apicodoMediaPlayDialog",["$scope","videoId",function(e,t){e.working=!1,e.error=!1,e.videoid=t}]),app.controller("apicodoMediaPlayPageController",["$scope","$stateParams","$location",function(e,t,a){e.videoid=t.id}]),app.factory("apicodoMediaService",["$rootScope","$http","$q","authService",function(e,t,a,n){var s=scope.globalSettings.configurations.apicodoMediaBaseUrl,p=function(){var r=a.defer();return e.apicodoMediaConnectionData&&e.apicodoMediaConnectionData.expiresOn>Date.now()?r.resolve(e.apicodoMediaConnectionData):t.get(scope.apiEndpoint+"media/token").then(function(i){var c=i.data;console.log(e.apicodoMediaConnectionData),e.apicodoMediaConnectionData=i.data,e.apicodoMediaConnectionData.isInitialized=!0,e.apicodoMediaConnectionData.expiresOn=new Date(Date.now()+36e5),r.resolve(c)},function(){r.reject()}),r.promise};return{apicodoMediaUrl:scope.globalSettings.configurations.apicodoMediaBaseUrl,getConnectionData:p,getVideoData:function(r){console.log("Video id: "+r);var i=a.defer();return p().then(function(c){t.get(s+"/api/Thumbnail/GetWebFrontendData?fileId="+r,{headers:{Authorization:"Bearer "+c.token}}).then(function(o){i.resolve(o.data)},function(){i.reject()})}),i.promise}}}]),app.component("collapsableMenu",{templateUrl:"/ClientApp/src/legacy-app/menu/collapsableMenu.html",bindings:{menuitems:"<"},controller:["$element","$timeout",function(e,t){}]}),app.directive("menuTarget",["$rootScope",function(e){return{restrict:"A",link:function(t,a,n){var s=n.href;(!s.match("https?://(.*/)?"+location.hostname+".*")&&!s.startsWith("/")||-1!==s.indexOf("/pdf/")||-1!==s.indexOf("/document/")||-1!==s.indexOf("/file/"))&&a.attr("target","_blank")}}}]),app.factory("notificationService",["$http","$q","$rootScope",function(e,t,a){var n={unseenCount:0},s=null,p=null,h=function(b){if(p)p.finally(function(){h(!0)});else{b&&(s=null,n.unseenCount=0);var I=t.defer();e.get(scope.apiEndpoint+"notifications/unseenCount?date="+s,{ignoreLoadingBar:!0}).then(function(m){s||(n.unseenCount=0),n.unseenCount=m.data.unseenCount,s=m.data.date,m.data.unseenCount>0&&a.$emit("notificationUnseenCountChanged"),a.app&&cordova.plugins.notification.badge.set(n.unseenCount),I.resolve(m.data)},function(){I.reject()}).finally(function(){p=null}),p=I.promise}return p};return n.getNotifications=function(){var b=t.defer();return e.get(scope.apiEndpoint+"notifications",{ignoreLoadingBar:!0}).then(function(I){b.resolve(I.data)},function(){b.reject()}),b.promise},n.updateUnseenCount=function(){var b=t.defer();return e.put(scope.apiEndpoint+"notifications/unseenCount").then(function(I){n.unseenCount=0,a.app&&cordova.plugins.notification.badge.set(0),b.resolve(I.data)},function(){b.reject()}),b.promise},n.update=h,n.updateToken=function(b){var I=t.defer();return e.post(scope.apiEndpoint+"Notifications/Token",b).then(function(){I.resolve()},function(){I.reject()}),I.promise},n.getNotificationGroups=function(b){var I=t.defer();return e.get(scope.apiEndpoint+"Notifications/Groups/"+b).then(function(m){I.resolve(m.data)},function(){I.reject()}),I.promise},n.updateNotificationGroups=function(b,I){var m=t.defer();return e.post(scope.apiEndpoint+"Notifications/Groups",{notificationGroups:b,privateUserGuid:I}).then(function(){m.resolve()},function(){m.reject()}),m.promise},n.click=function(b){var I=t.defer();return e.get(scope.apiEndpoint+"notifications/"+b.id+"/Click").then(function(){b.clicked=new Date,I.resolve()},function(){I.reject()}),I.promise},n.getNotifiedUsersCount=function(){var b=t.defer();return e.get(scope.apiEndpoint+"notifications/NotifiedUserCount").then(function(I){b.resolve(I.data)},function(){b.reject()}),b.promise},n.getUserEmail=function(b){var I=t.defer();return e.get(scope.apiEndpoint+"Notifications/"+b+"/email").then(function(m){I.resolve(m.data)},function(){I.reject()}),I.promise},n}]),app.controller("NotificationSettingsController",["$rootScope","$scope","notificationService","$stateParams","$timeout","$location",function(e,t,a,n,s,p){t.working=!1,t.success=!1,t.error=!1;var h=n.privateUserGuid||null;a.getNotificationGroups(h).then(function(r){if(t.notificationGroups=r,p.search().optOutAll){for(var i=0;i<r.length;i++)6===t.notificationGroups[i].order&&e.scope.currentScope.chapter.settings.featureBreakingNewsToAll||(t.notificationGroups[i].enabled=!1);t.working=!0,a.updateNotificationGroups(t.notificationGroups,h).then(function(){s(function(){t.working=!1,t.success=!0},2e3)},function(){t.error=!0})}}),a.getUserEmail(h).then(function(r){t.userEmail=r}),t.toggleNotificationGroup=function(r){r.enabled=!r.enabled,t.success=!1,t.working=!0,a.updateNotificationGroups(t.notificationGroups,n.privateUserGuid).then(function(){s(function(){t.working=!1,t.success=!0},2e3)},function(){t.error=!0,r.enabled=!r.enabled})}}]),app.directive("articleImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(n,s,p){var h=n.$eval(p.articleImpression),r=n.$eval(p.searchGuid),c=Oculus.trackArticleImpression(s,{ia:h.id,iar:h.revisionId,iav:h.variantId,c:h.chapterSlug,n:t.scope.currentScope.network.slug,seg:r});c.persistent=e.includes("app.root"),s.on("click",function(){c.click(),a.clickArticle(c.guid,h.id)})}}}]),app.directive("articleReading",["$rootScope",function(e){return{restrict:"A",link:function(t,a,n){var s=$(a).children().map(function(){for(var r=$(this),i=r;i.length;){if(i.parent().hasClass("allow-float"))return i[0];i=(r=i).children()}return this}),p=e.scope.currentScope.network,h=t.$eval(n.articleReading);Oculus.trackArticleReading(s,{ia:h.id,iar:h.revisionId,iav:h.variantId,c:h.chapterSlug,n:p.slug})}}}]),app.directive("marketResearchQuestion",["$timeout","$state","$rootScope",function(e,t,a){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/marketResearchQuestion.html",scope:{marketResearch:"=",article:"=",question:"=",nextQuestion:"="},link:function(n,s){var p=a.scope.currentScope.network;n.isInView=!1,n.oculus=Oculus.trackMarketResearch(s.children().first(),{mq:n.question.id,ia:n.article?n.article.id:null,iar:n.article?n.article.revisionId:null,iav:n.article?n.article.variantId:null,c:n.marketResearch.chapterSlug,n:p.slug}),n.oculus.persistent=t.includes("app.root"),n.answering=function(h){n.oculus.bundle.ma=h,n.oculus.push(),n.oculus.stop(0),n.nextQuestion()}}}}]),app.directive("marketResearchShipment",[function(){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/marketResearchShipment.html",scope:{marketResearch:"=",article:"="},link:function(e){e.actQuestionIndex=0,e.actQuestion=e.marketResearch.questions[e.actQuestionIndex],e.actQuestion.isVisible=!0,e.nextQuestion=function(){e.actQuestion.nextQuestionId?(e.actQuestion.isVisible=!1,e.actQuestionIndex++,e.actQuestion=e.marketResearch.questions[e.actQuestionIndex],e.actQuestion.isVisible=!0):(e.actQuestion.isVisible=!1,e.answered=!0)}}}}]),app.directive("oculusContainer",[function(){return{restrict:"A",link:function(e,t,a){Oculus.addScrollContainer(t)}}}]),app.directive("searchImpression",["$state","$rootScope",function(e){return{restrict:"A",scope:{query:"<searchQuery",guid:"=searchGuid"},link:function(t,a){t.$watch(function(){return t.query},function(n){if(n){var s=Oculus.trackSearch(a,{q:n});t.guid=s.guid,s.persistent=e.includes("app.root")}})}}}]),app.directive("shipment",["shipmentService","profileService","localStorageService","$rootScope","$timeout","$state","redirectService","clickService",function(e,t,a,n,s,p,h,r){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/shipment.html",scope:!0,link:function(i,c,d){var o=i.$eval(d.article),l=o?o.id:void 0;t.getProfile().then(function(g){e.getShipment(l).then(function(u){i.shipment=u;var b=n.scope.globalSettings.blobStorageCdnUrl,I=n.scope.globalSettings.blobStorageContainerNameShipment;i.imageUrl="",u.pin&&(i.imageUrl=b+"/"+I+"/"+u.pin+"?preset=shipment"),u.uri&&(i.inSameChapter=h.isSameChapterUrl(u.uri),i.uriIsDocument=-1!==u.uri.indexOf("/pdf/")||-1!==u.uri.indexOf("/document/")||-1!==u.uri.indexOf("/file/"));var m=angular.copy(i.scope.oculus),D=n.scope.currentScope.network;m.impressionThreshold=m.shipmentImpressionThreshold,m.impressionViewportThreshold=m.shipmentImpressionViewportThreshold,1===u.articleDetailDisplayableType&&s(function(){u.oculus=Oculus.trackBanner(c.children().first(),{c:u.chapterSlug,n:D.slug,ia:o?o.id:null,iar:o?o.revisionId:null,iav:o?o.variantId:null,ibc:u.bannerCampaignId,ib:u.bannerId}),u.oculus.persistent=p.includes("app.root")}),i.clickBanner=function(){i.shipment.oculus.click(),r.clickBannerPost(i.shipment.oculus.guid,i.shipment.pin)}})})}}}]),app.component("shipmentPremium",{templateUrl:"/ClientApp/src/legacy-app/oculus/shipmentPremium.html",bindings:{shipment:"="},controller:["$interpolate","$scope","shipmentService","profileService","localStorageService","scopeService","$timeout","$element","$state","$rootScope","redirectService","clickService",function(e,t,a,n,s,p,h,r,i,c,d,o){var l=this,g=p.getGlobalSettings().blobStorageCdnUrl,u=p.getGlobalSettings().blobStorageContainerNameShipment;l.web_shipment_premium_title=e(scope.currentScope.network.resources.web_shipment_premium_title)({chapterName:scope.currentScope.chapter.name}),this.$onInit=function(){if(l.shipment){l.imageUrl="",l.shipment.pin&&(l.imageUrl=g+"/"+u+"/"+l.shipment.pin+(l.shipment.mobile?"?preset=premium-shipment-xs":"?preset=premium-shipment")),l.shipment.uri&&(l.inSameChapter=d.isSameChapterUrl(l.shipment.uri),l.uriIsDocument=-1!==l.shipment.uri.indexOf("/pdf/")||-1!==l.shipment.uri.indexOf("/document/")||-1!==l.shipment.uri.indexOf("/file/"));var b=c.scope.currentScope.network,I=angular.copy(c.scope.oculus);I.impressionThreshold=I.shipmentImpressionThreshold,I.impressionViewportThreshold=I.shipmentImpressionViewportThreshold,l.shipment.oculus=Oculus.trackPremiumBanner(r.find(".shipmentPremium-image-wrapper"),{c:l.shipment.chapterSlug,n:b.slug,ip:l.shipment.premiumId,ipb:l.shipment.premiumBannerId}),l.clickBanner=function(){l.shipment.oculus.click(),o.clickPremiumPost(l.shipment.oculus.guid,l.shipment.pin)},l.shipment.oculus.persistent=i.includes("app.root")}}}]}),app.component("shipmentSuper",{templateUrl:"/ClientApp/src/legacy-app/oculus/shipmentSuper.html",bindings:{shipment:"<"},controller:["scopeService","$element","$state","$rootScope","$timeout","redirectService","clickService",function(e,t,a,n,s,p,h){var r=this,i=e.getGlobalSettings().blobStorageCdnUrl,c=e.getGlobalSettings().blobStorageContainerNameShipment;this.$onInit=function(){if(r.shipment){r.imageUrl="",r.shipment.pin&&(r.imageUrl=i+"/"+c+"/"+r.shipment.pin+(r.shipment.mobile?"?preset=premium-shipment-xs":"?preset=premium-shipment")),r.shipment.uri&&(r.inSameChapter=p.isSameChapterUrl(r.shipment.uri),r.uriIsDocument=-1!==r.shipment.uri.indexOf("/pdf/")||-1!==r.shipment.uri.indexOf("/document/")||-1!==r.shipment.uri.indexOf("/file/"));var d=n.scope.currentScope.network,o=angular.copy(n.scope.oculus);o.impressionThreshold=o.shipmentImpressionThreshold,o.impressionViewportThreshold=o.shipmentImpressionViewportThreshold,r.shipment.oculus=Oculus.trackSuperBanner(t.find(".shipmentSuper-image-wrapper"),{c:r.shipment.chapterSlug,n:d.slug,isu:r.shipment.superCampaignId,isub:r.shipment.superBannerId}),r.clickBanner=function(){r.shipment.oculus.click(),h.clickSuperPost(r.shipment.oculus.guid,r.shipment.pin)},r.shipment.oculus.persistent=a.includes("app.root")}}}]}),app.directive("snipImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(n,s,p){var h=n.$eval(p.snipImpression),r=n.$eval(p.searchGuid),c=Oculus.trackSnipImpression(s,{is:h.id,isr:h.revisionId,seg:r,c:h.chapterSlug,n:t.scope.currentScope.network.slug});c.persistent=e.includes("app.root"),s.on("click",function(){c.click(),a.clickSnip(c.guid,h.id)})}}}]),app.directive("snipReading",["$rootScope",function(e){return{restrict:"A",link:function(t,a,n){var s=$(a).children().map(function(){for(var r=$(this),i=r;i.length;){if(i.parent().hasClass("allow-float"))return i[0];i=(r=i).children()}return this}),p=e.scope.currentScope.network,h=t.$eval(n.snipReading);Oculus.trackSnipReading(s,{is:h.id,isr:h.revisionId,c:h.chapterSlug,n:p.slug})}}}]),app.directive("sparticleImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(n,s,p){var h=n.$eval(p.sparticleImpression),r=n.$eval(p.sparticleImpressionArticle),i=t.scope.currentScope.network,c=n.$eval(p.searchGuid),d=Oculus.trackSponsoredArticleImpression(s,{isac:h.sponsoredArticleCampaignId,isa:h.id,isar:h.revisionId,isav:h.variantId,c:h.chapterSlug,n:i.slug,seg:c,iar:r?r.revisionId:null,iav:r?r.variantId:null});d.persistent=e.includes("app.root"),s.on("click",function(){d.click(),a.clickSponsoredArticle(d.guid,h.sponsoredArticleCampaignId)})}}}]),app.directive("sparticleReading",["$rootScope",function(e){return{restrict:"A",link:function(t,a,n){var s=$(a).children().map(function(){for(var r=$(this),i=r;i.length;){if(i.parent().hasClass("allow-float"))return i[0];i=(r=i).children()}return this}),p=e.scope.currentScope.network,h=t.$eval(n.sparticleReading);Oculus.trackSponsoredArticleReading(s,{isa:h.id,isac:h.sponsoredArticleCampaignId,isar:h.revisionId,isav:h.variantId,c:h.chapterSlug,n:p.slug})}}}]),app.directive("specialImpression",["$state","$rootScope",function(e,t){return{restrict:"A",link:function(a,n,s){var p=a.$eval(s.specialImpression),h=t.scope.currentScope.network,r=a.$eval(s.article);Oculus.trackSpecialImpression(n,{isp:p.id,c:p.chapterSlug,n:h.slug,ia:r?r.id:null,iar:r?r.revisionId:null,iav:r?r.variantId:null}).persistent=e.includes("app.root")}}}]),app.directive("specialItemImpression",["$rootScope","redirectService","clickService",function(e,t,a){return{restrict:"A",link:function(n,s,p){var h=n.$eval(p.specialItemImpression),r=e.scope.currentScope.chapter,i=e.scope.currentScope.network,c=p.specialItemSpecialViewOculus?n.$eval(p.specialItemSpecialViewOculus):null;n.imageUrl=e.scope.globalSettings.blobStorageCdnUrl+"/"+e.scope.globalSettings.blobStorageContainerNameSpecial+"/"+h.values.image+"?preset=shipment",h.uri&&(n.inSameChapter=t.isSameChapterUrl(h.uri),n.uriIsDocument=-1!==h.uri.indexOf("/pdf/")||-1!==h.uri.indexOf("/document/")||-1!==h.uri.indexOf("/file/")),h.oculus=Oculus.trackSpecialItemImpression(s,{ispi:h.id,c:r.slug,n:i.slug,spg:c?c.guid:null}),h.oculusGuid=h.oculus.guid,n.clickBanner=function(){a.clickSpecialPost(h.oculusGuid,h.id),h.oculus.click()}}}}]),app.directive("survey",["$state","$rootScope","redirectService","clickService",function(e,t,a,n){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/survey.html",scope:{survey:"<",article:"<",preview:"<"},link:function(s,p,h){var r=s.survey;s.actQuestionId=r.firstQuestionId,s.$watch("survey",function(){r=s.survey,s.finalBannerId=null,r.preview=s.preview,r.questionDict={},r.questions.forEach(function(d){r.questionDict[d.id]=d});var i=t.scope.globalSettings.blobStorageCdnUrl,c=t.scope.globalSettings.blobStorageContainerNameShipment;r.bannerDict={},r.banners.forEach(function(d){d.imageUrl="",d.pin&&(d.imageUrl=i+"/"+c+"/"+d.pin+"?preset=shipment"),d.uri&&(d.inSameChapter=a.isSameChapterUrl(d.uri),d.uriIsDocument=-1!==d.uri.indexOf("/pdf/")||-1!==d.uri.indexOf("/document/")||-1!==d.uri.indexOf("/file/")),r.bannerDict[d.id]=d}),r.answers.forEach(function(d){null!==d.finalBannerId&&(d.finalBanner=r.bannerDict[d.finalBannerId]),null===r.questionDict[d.questionId].answers&&(r.questionDict[d.questionId].answers={}),r.questionDict[d.questionId].answers[d.id]=d}),s.actQuestion=r.questionDict[s.actQuestionId]}),s.processAnswer=function(i){if(i.nextQuestionId)s.actQuestionId=i.nextQuestionId,s.actQuestion=r.questionDict[s.actQuestionId];else if(s.actQuestionId=null,i.finalBannerId){s.finalBannerId=i.finalBannerId;var c=r.bannerDict[s.finalBannerId],d=$(p).find(".survey-banner-wrapper-"+s.finalBannerId);r.preview||(s.oculus=Oculus.trackSurveyBannerImpression(d,{sv:r.id,sb:s.finalBannerId,ia:s.article?s.article.id:null,iar:s.article?s.article.revisionId:null,iav:s.article?s.article.variantId:null}),s.oculus.persistent=e.includes("app.root"),s.oculus.impressionThreshold=0,s.clickBanner=function(){console.log("clickSurveyBanner",s.oculus.guid,s.finalBannerId,r.id),n.clickSurveyBannerPost(s.oculus.guid,c.guid),s.oculus.click()},s.oculus.push())}}}}}]),app.directive("surveyQuestion",["$state","shipmentService",function(e,t){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/surveyQuestion.html",scope:{survey:"<",article:"<",question:"<",processAnswer:"<"},link:function(a,n){a.isInView=!1,a.$watch("survey",function(){a.answerArray=Object.keys(a.question.answers).map(function(s){return a.question.answers[s]}),a.fixedAnswers=a.answerArray.filter(function(s){return!s.isFreeTextAnswer}),a.freeTextAnswers=a.answerArray.filter(function(s){return s.isFreeTextAnswer})}),a.survey.preview||(a.oculus=Oculus.trackSurveyImpression(n.children().first(),{sv:a.survey.id,sq:a.question.id,ia:a.article?a.article.id:null,iar:a.article?a.article.revisionId:null,iav:a.article?a.article.variantId:null}),a.oculus.persistent=e.includes("app.root"),a.survey.firstQuestionId!==a.question.id&&(a.oculus.impressionThreshold=0)),a.answerQuestion=function(s,p){if(!a.survey.preview){if(a.question.answers[s].isFreeTextAnswer){if(!p||p.match(/^\s*$/))return;a.oculus.bundle.sft=p}a.oculus.bundle.sa=s,a.oculus.ignoreImpressionThreshold=!0,a.oculus.push(),a.oculus.stop(0),t.clickSurvey(a.survey.id)}a.processAnswer(a.question.answers[s])}}}}]),app.controller("OptOutController",["$rootScope","$scope","localStorageService",function(e,t,a){t.oculusOptOut=a.oculusOptOut,t.toggleOptOut=function(){t.oculusOptOut=!t.oculusOptOut,t.oculusOptOut?a.oculusOptOut=!0:delete a.oculusOptOut}}]),app.controller("PremiumElasticReportController",["$scope","$rootScope","premiumService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,s,p,h){AmCharts.isReady=!0;var d,o,l,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],c=[];e.report=null,e.totalClickCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var g=function(m){var D=0,w=0,v=0,C=0,f=0,F=0;$.each(m,function(T,x){D+=x.desktopImpressionCount,w+=x.tabletImpressionCount,v+=x.mobileImpressionCount,C+=x.clickCount,f+=x.impressionTime,F+=x.impressionCount}),e.$apply(function(){e.totalClickCount=C,e.totalImpressionTime=f,e.totalImpressionCount=F}),i[0].value=Math.round(100/(F/D)),i[1].value=Math.round(100/(F/v)),i[2].value=Math.round(100/(F/w)),d.validateData()},u=function(){var m=moment(o.startDate).startOf("day").toDate(),D=moment(o.endDate).startOf("day").toDate(),w=e.report.filter(function(v){return v.day>=m&&v.day<=D});g(w),l.zoom(m,moment(D).add(1,"d").toDate()),e.$apply(function(){e.startDay=m,e.endDay=D})},I=function(){var m=e.premium.premiumBanners.filter(function(w){return!w.filtered}).map(function(w){return w.id}),D=e.chapters.filter(function(w){return!w.filtered}).map(function(w){return w.id});e.filterDisabled=!0,a.getPremiumReport(e.premium.pin,{premiumId:e.premium.id,premiumbannerIds:m,chapterIds:D}).then(function(w){w.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=w,p(function(){(function(m){c.length=0,$.each(m,function(D,w){c.push(w)}),o.validateData(),l.validateData()})(w),u(),e.filterDisabled=!1},50)})};e.filterChapter=function(m){m.filtered=!m.filtered,I()},e.chapterFilterDisabled=function(m){return e.filterDisabled||1===e.chapters.filter(function(D){return!D.filtered}).length&&!m.filtered},e.filterBanner=function(m){e.filterDisabled||1===e.premium.premiumBanners.filter(function(D){return!D.filtered}).length&&!m.filtered||(m.filtered=!m.filtered,I())},a.getPremiumByPin(s.pin).then(function(m){e.premium=m,a.getPremiumReport(m.pin,{premiumId:m.id}).then(function(D){D.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=D,e.startDay=D[0].day,e.endDay=D[D.length-1].day;var w=[];$.each(m.chapterSlugs,function(v,C){w.push(n.getChapter(C))}),w=w.filter(function(v){return 2===v.managementState}),e.chapters=w,$.each(D,function(v,C){c.push(C)}),p(function(){d=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:c,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){u()}),l=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:c,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clickCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),g(D)})},function(){e.error=!0})})}]),app.controller("premiumReportController",["$scope","$rootScope","premiumService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,p,h,r){AmCharts.isReady=!0;var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getPremiumByPin(s.pin).then(function(l){e.premium=l,a.getReportPremiumBannerCalendar(l.pin).then(function(g){g.forEach(function(u){u.chapter=n.getChapter(u.chapterSlug),u.reports.forEach(function(b){b.calendar.forEach(function(I){I.start=moment(I.start.replace("Z","")).toDate(),I.end=moment(I.end.replace("Z","")).toDate()})})}),l.report=g,h(function(){var u,b,I,m,D,w=new Set;$.each(g,function(x,S){S.active=!0,w.add(S.chapter.name)}),g.uniqueChapters=[],w.forEach(function(x){g.uniqueChapters.push(x)}),$.each(l.premiumBanners,function(x,S){S.reportActive=!0});var v=[],C=function(){v.length=0,$.each(g[0].reports[0].calendar,function(x,S){v.push({start:S.start,end:S.end,impressions:0,viewableImpressions:0,viewableImpressionTimeSeconds:0,desktopViewableImpressions:0,mobileViewableImpressions:0,tabletViewableImpressions:0,clicks:0,maleViewableImpressions:0,femaleViewableImpressions:0,age1617MaleViewableImpressions:0,age1824MaleViewableImpressions:0,age2534MaleViewableImpressions:0,age3544MaleViewableImpressions:0,age4554MaleViewableImpressions:0,age55MaleViewableImpressions:0,age1617FemaleViewableImpressions:0,age1824FemaleViewableImpressions:0,age2534FemaleViewableImpressions:0,age3544FemaleViewableImpressions:0,age4554FemaleViewableImpressions:0,age55FemaleViewableImpressions:0})}),$.each(g,function(x,S){S.active&&(g[x-1]&&2===g[x-1].chapter.managementState&&2===S.chapter.managementState&&g[x-1].chapter.name!==S.chapter.name&&(g.multiChapterShipment=!0),$.each(S.reports,function(k,y){if(l.premiumBanners[k].reportActive){var M=y.premiumBanner.pin;$.each(y.calendar,function(A,R){R.pin=M,v[A].impressions+=R.impressions,v[A].viewableImpressions+=R.viewableImpressions,v[A].viewableImpressionTimeSeconds+=R.viewableImpressionTimeSeconds,v[A].desktopViewableImpressions+=R.desktopViewableImpressions,v[A].mobileViewableImpressions+=R.mobileViewableImpressions,v[A].tabletViewableImpressions+=R.tabletViewableImpressions,v[A].clicks+=R.clicks,v[A].maleViewableImpressions+=R.maleViewableImpressions,v[A].femaleViewableImpressions+=R.femaleViewableImpressions,v[A].age1617MaleViewableImpressions+=R.age1617MaleViewableImpressions,v[A].age1824MaleViewableImpressions+=R.age1824MaleViewableImpressions,v[A].age2534MaleViewableImpressions+=R.age2534MaleViewableImpressions,v[A].age3544MaleViewableImpressions+=R.age3544MaleViewableImpressions,v[A].age4554MaleViewableImpressions+=R.age4554MaleViewableImpressions,v[A].age55MaleViewableImpressions+=R.age55MaleViewableImpressions,v[A].age1617FemaleViewableImpressions+=R.age1617FemaleViewableImpressions,v[A].age1824FemaleViewableImpressions+=R.age1824FemaleViewableImpressions,v[A].age2534FemaleViewableImpressions+=R.age2534FemaleViewableImpressions,v[A].age3544FemaleViewableImpressions+=R.age3544FemaleViewableImpressions,v[A].age4554FemaleViewableImpressions+=R.age4554FemaleViewableImpressions,v[A].age55FemaleViewableImpressions+=R.age55FemaleViewableImpressions})}}))}),b.validateData(),u.validateData()},f=g.summary={};u=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:v,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:v,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"viewableImpressions",type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),I=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:c,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),m=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:i,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(x,S){return-1*x.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(x){return x<0?-1*x+"":x+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),D=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var T=function(){var x=moment(u.startDate).startOf("day").toDate(),S=moment(u.endDate).startOf("day").add(-1,"d").toDate();(function(x,S){f.maleViewableImpressions=0,f.femaleViewableImpressions=0,f.viewableImpressions=0,f.viewableImpressionTimeSeconds=0,f.impressions=0,f.clicks=0,f.desktopViewableImpressions=0,f.mobileViewableImpressions=0,f.tabletViewableImpressions=0,f.age1617MaleViewableImpressions=0,f.age1824MaleViewableImpressions=0,f.age2534MaleViewableImpressions=0,f.age3544MaleViewableImpressions=0,f.age4554MaleViewableImpressions=0,f.age55MaleViewableImpressions=0,f.age1617FemaleViewableImpressions=0,f.age1824FemaleViewableImpressions=0,f.age2534FemaleViewableImpressions=0,f.age3544FemaleViewableImpressions=0,f.age4554FemaleViewableImpressions=0,f.age55FemaleViewableImpressions=0;var k=0,y=0,M=0,A=0,R=0,U=0,V=0,q=0,_=0,B=0,P=0,E=0,L=0,z=0,Y=0;f.start=x,f.end=S,$.each(v,function(W,N){var K=new Date(N.start);K<x||K>S||(f.maleViewableImpressions+=N.maleViewableImpressions,f.femaleViewableImpressions+=N.femaleViewableImpressions,f.viewableImpressions+=N.viewableImpressions,f.viewableImpressionTimeSeconds+=N.viewableImpressionTimeSeconds,f.impressions+=N.impressions,f.clicks+=N.clicks,k+=N.desktopViewableImpressions,y+=N.mobileViewableImpressions,M+=N.tabletViewableImpressions,A+=N.age1617MaleViewableImpressions,R+=N.age1824MaleViewableImpressions,U+=N.age2534MaleViewableImpressions,V+=N.age3544MaleViewableImpressions,q+=N.age4554MaleViewableImpressions,_+=N.age55MaleViewableImpressions,B+=N.age1617FemaleViewableImpressions,P+=N.age1824FemaleViewableImpressions,E+=N.age2534FemaleViewableImpressions,L+=N.age3544FemaleViewableImpressions,z+=N.age4554FemaleViewableImpressions,Y+=N.age55FemaleViewableImpressions)}),f.desktopViewableImpressions=Math.round(100/(f.viewableImpressions/k)),f.mobileViewableImpressions=Math.round(100/(f.viewableImpressions/y)),f.tabletViewableImpressions=Math.round(100/(f.viewableImpressions/M));var j=f.viewableImpressions-(A+R+U+V+q+_+B+P+E+L+z+Y);j>100&&(A+=j*t.scope.globalSettings.reportAverageAge1617Male,R+=j*t.scope.globalSettings.reportAverageAge1824Male,U+=j*t.scope.globalSettings.reportAverageAge2534Male,V+=j*t.scope.globalSettings.reportAverageAge3544Male,q+=j*t.scope.globalSettings.reportAverageAge4554Male,_+=j*t.scope.globalSettings.reportAverageAge55Male,B+=j*t.scope.globalSettings.reportAverageAge1617Female,P+=j*t.scope.globalSettings.reportAverageAge1824Female,E+=j*t.scope.globalSettings.reportAverageAge2534Female,L+=j*t.scope.globalSettings.reportAverageAge3544Female,z+=j*t.scope.globalSettings.reportAverageAge4554Female,Y+=j*t.scope.globalSettings.reportAverageAge55Female),f.age1617MaleViewableImpressions=Math.round(100/(f.viewableImpressions/A)),f.age1824MaleViewableImpressions=Math.round(100/(f.viewableImpressions/R)),f.age2534MaleViewableImpressions=Math.round(100/(f.viewableImpressions/U)),f.age3544MaleViewableImpressions=Math.round(100/(f.viewableImpressions/V)),f.age4554MaleViewableImpressions=Math.round(100/(f.viewableImpressions/q)),f.age55MaleViewableImpressions=Math.round(100/(f.viewableImpressions/_)),f.age1617FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/B)),f.age1824FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/P)),f.age2534FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/E)),f.age3544FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/L)),f.age4554FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/z)),f.age55FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/Y)),f.maleViewableImpressions=Math.round(f.maleViewableImpressions),f.femaleViewableImpressions=Math.round(f.femaleViewableImpressions),c[0].value=f.femaleViewableImpressions,c[1].value=f.maleViewableImpressions,d[0].male=Math.round(-1*f.age1617MaleViewableImpressions),d[1].male=Math.round(-1*f.age1824MaleViewableImpressions),d[2].male=Math.round(-1*f.age2534MaleViewableImpressions),d[3].male=Math.round(-1*f.age3544MaleViewableImpressions),d[4].male=Math.round(-1*f.age4554MaleViewableImpressions),d[5].male=Math.round(-1*f.age55MaleViewableImpressions),d[0].female=Math.round(f.age1617FemaleViewableImpressions),d[1].female=Math.round(f.age1824FemaleViewableImpressions),d[2].female=Math.round(f.age2534FemaleViewableImpressions),d[3].female=Math.round(f.age3544FemaleViewableImpressions),d[4].female=Math.round(f.age4554FemaleViewableImpressions),d[5].female=Math.round(f.age55FemaleViewableImpressions),o[0].value=f.desktopViewableImpressions,o[1].value=f.mobileViewableImpressions,o[2].value=f.tabletViewableImpressions,I.validateData(),m.validateData(),D.validateData(),e.$apply()})(x,S),b.zoom(x,moment(S).add(1,"d").toDate())};u.addListener("zoomed",function(x){T()}),e.toggleReport=function(x){$.each(l.premiumBanners,function(S,k){k.pin===x.pin&&(k.reportActive=!k.reportActive)}),h(function(){C(),T()},50)},e.toggleChapter=function(x){$.each(g,function(S,k){k.chapter.name===x&&(k.active=!k.active)}),h(function(){C(),T()},50)},C(),b.validateData(),u.validateNow(),u.setDefaultPeriod()},function(){e.error=!0})})},function(){r.path("/")});var c=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:i,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("premiumService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,s,p){var h=[],c=function(){var l=t.defer();return h.length>0?l.resolve(h):e.get(scope.apiEndpoint+"premiums").then(function(g){angular.copy(g.data,h),l.resolve(h)},function(){l.reject()}),l.promise};function d(l){var g=null;return $.each(h,function(u,b){if(b.pin===l)return g=b,!1}),g}return{premiums:h,getPremiums:c,getReportPremiumBannerCalendar:function(l){var g=t.defer();return e.get(scope.apiEndpoint+"premiums/"+l+"/ReportPremiumBannerCalendar").then(function(u){g.resolve(u.data)},function(){g.reject()}),g.promise},getPremiumReport:function(l,g){var u=t.defer();return e.post(scope.apiEndpoint+"premiums/"+l+"/report",g).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getPremiumByPin:function(l){var g=t.defer();if(h.length>0){var u=d(l);u?g.resolve(u):e.get(scope.apiEndpoint+"/premiums"+l).then(function(b){g.resolve(b.data)},function(){g.reject()})}else c().then(function(){var b=d(l);b?g.resolve(b):e.get(scope.apiEndpoint+"premiums/"+l).then(function(I){g.resolve(I.data)},function(){g.reject()})},function(){g.reject()});return g.promise}}}]),app.controller("AddMetaInfoDialogController",["$scope","onSuccessfulCallback",function(e,t){var a=this;function n(s,p){this.tagValue=s,this.displayName=p}e.availableMetaTags=[new n("person","Personen"),new n("location","Stadt"),new n("event","Veranstaltung")],this.cancel=function(){e.$dismiss()},this.addMetaInfo=function(s){s&&e.selectedMetaTag.tagValue&&(t(e.selectedMetaTag.tagValue),a.cancel())}}]),app.controller("CreateCallToActionDialogController",["$scope","onSuccessfulCallback",function(e,t){var a=this;this.cancel=function(){e.$dismiss()},this.createCallToAction=function(n){n&&(t({href:e.linkUrl,description:e.linkDescription}),a.cancel())}}]),app.controller("CreateEditorCommentDialogController",["$scope","editorCommentCallback","sourceService","messageHolder",function(e,t,a,n){var s=this;e.messageText=null,this.cancel=function(){e.$dismiss()},this.saveComment=function(){a.save({messageText:e.messageText,holderId:n.id,parentId:null}).then(function(p){t(p.guid),s.cancel()})}}]),app.controller("CreateLinkDialogController",["$scope","onSuccessfulCallback",function(e,t){var a=this;this.cancel=function(){e.$dismiss()},this.createLink=function(n){n&&(t({href:e.linkUrl,title:""}),a.cancel())}}]),app.service("editorAssetsService",["$filter","$sce","$q","workflowService",function(e,t,a,n){var s=this;function p(i){this.name=i.firstName+" "+i.lastName,this.profileURL=i.avatarImageUrl||"",this.avatarURL=i.avatarImageUrl+"?preset=article-detail-badge"}function h(i){this.guid=i.guid||"",this.imgContent=i.imgContent||"",this.textContent=i.textContent||"",this.videoThumbnail=i.videoThumbnail||"",this.type=i.type||0,this.author=i.author||new p}return this.url=scope.apiEndpoint+"editorAssets",this.getImageContent=function(i){var c=null;return i.assetImage&&(c=i.assetImage.assetImageUrl+"?maxheight=50"),i.assetArticle&&(c=i.assetArticle.coverAssetImageUrl+"?maxheight=50"),i.assetFile&&(c=i.assetFile.fileName),c},this.getTextContent=function(i){var c=null;return i.assetText&&(c=i.assetText.text),i.assetFile&&(c=i.assetFile.text),c},this.getAssetType=function(i){var c=null;return i.assetImage&&(c=i.assetImage.type),i.assetText&&(c=i.assetText.type),i.assetArticle&&(c=i.assetArticle.type),i.assetFile&&(c=i.assetFile.type),c},this.getUser=function(i){var c=null;return i.assetImage&&(c=i.assetImage.user),i.assetText&&(c=i.assetText.user),i.assetArticle&&(c=i.assetArticle.user),i.assetFile&&(c=i.assetFile.user),c},this.getThumbnail=function(i){var c=null;return i.assetText&&(c=i.thumbnailUrl),c},{getAsset:function(i,c){var o=c.filter(function(m){return m.guid===i})[0];if(o.assetText){var l=null,g=o.assetText.type;if(5===g)l=e("youtubeImage")(o.assetText.text);else if(6===g)l=e("facebookImage")(o.assetText.text);else if(7===g)l=e("vimeoImage")(o.assetText.text);else if(13===g)l=e("apicodoMediaServiceImage")(o.assetText.text);else if(14===g){var u=a.defer();return n.getWorkflowTemplate(o.assetText.text).then(function(m){if(o){var D=new h({guid:o.guid,imgContent:m.name,textContent:m.description,type:14,author:new p(s.getUser(o))});u.resolve(D)}else u.resolve({guid:i})},function(){u.resolve({guid:i})}),u.promise}if(l){var b=t.valueOf(l);o.thumbnailUrl=b}}return new Promise(function(m,D){m(o?new h({guid:o.guid,imgContent:s.getImageContent(o),textContent:s.getTextContent(o),videoThumbnail:s.getThumbnail(o),type:s.getAssetType(o),author:new p(s.getUser(o))}):{guid:i})})}}}]),app.component("editorCommentItem",{templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/editorCommentItem.html",bindings:{authorName:"@",messageText:"@",messageDate:"@",profileImage:"@",enableDelete:"<",onDelete:"&"}}),app.service("editorCommentService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsArticle",{save:function(h){var r=t.defer();return e.put(a.url,h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},getChain:function(h){var r=t.defer();return e.get(a.url+"/chain/"+h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},deleteComment:function(h){var r=t.defer();return e.delete(a.url,{data:h,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise}}}]),app.service("editorCommentSponsoredArticleService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsSponsoredArticle",{save:function(h){var r=t.defer();return e.put(a.url,h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},getChain:function(h){var r=t.defer();return e.get(a.url+"/chain/"+h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},deleteComment:function(h){var r=t.defer();return e.delete(a.url,{data:h,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise}}}]),app.service("editorCommentStaticArticleService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsStaticArticle",{save:function(h){var r=t.defer();return e.put(a.url,h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},getChain:function(h){var r=t.defer();return e.get(a.url+"/chain/"+h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},deleteComment:function(h){var r=t.defer();return e.delete(a.url,{data:h,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise}}}]),app.controller("ListEditorCommentDialogController",["$scope","onDeletedCallback","onAddedCallback","messageHolder","chainComments","profileService","sourceService",function(e,t,a,n,s,p,h){var r=this;function i(o){this.guid=o.guid,this.contentText=o.contentText,this.displayMessages=[]}e.messageText=null,e.master={holderId:n.id},e.newComment=window.angular.copy(e.master),e.availableParentMessages=[],e.selectedParentMessage=null,this.close=function(){e.$dismiss()},this.saveChildComment=function(o){o.parentId=e.selectedParentMessage.guid,h.save(o).then(function(l){e.selectedParentMessage.displayMessages.push(l),e.availableParentMessages.filter(function(g){return g.guid===e.selectedParentMessage.guid})[0].displayMessages.push(l),r.reset()})},this.deleteComment=function(o){h.deleteComment({holderId:n.id,deleteMessageGuid:o,parentGuid:e.selectedParentMessage.guid}).then(function(g){e.selectedParentMessage.displayMessages=g,t(e.selectedParentMessage.guid,o),e.selectedParentMessage.guid===o&&r.close(),r.reset()})},this.reset=function(){e.newComment=window.angular.copy(e.master),e.deleteComment=null},s.chains.forEach(function(o){var l=new i({guid:o.id,contentText:s.textContents[o.id]});h.getChain(l.guid).then(function(g){l.displayMessages=g,e.availableParentMessages.push(l),e.selectedParentMessage||(e.selectedParentMessage=angular.copy(e.availableParentMessages[0]))})}),p.getProfile().then(function(o){e.myProfile=o})}]),app.service("proseMirrorEditorService",["$window",function(e){var t=this;return this.connection=null,{init:function(i){i||(i={docId:"unknown"}),t.connection=e.initializeEditor({docID:i.docID,assetDlgFactory:i.assetDlgFactory,commentCreationDlgFactory:i.commentCreationDlgFactory,createLinkFactory:i.createLinkFactory,callToActionDlgFactory:i.callToActionDlgFactory,commentMgmtDlgFactory:i.commentMgmtDlgFactory,metadataCreationDlgFactory:i.metadataCreationDlgFactory,initialDocument:i.initialDocument,initialAssetReferences:i.initialAssetReferences,assetResolver:i.assetResolver,onNewStateFactory:i.onNewStateFactory,transformHtmlFactory:function(c){var d=$("<div>").html(c).find("img").remove().end().html();return $("<div>").html(d).find("br").remove().end().html().replace(/<\/word><word/gi,"</word><span>&nbsp;</span><word").replace(/&nbsp\;/gi," ")},onLoadTransactionCallback:i.onLoadTransactionCallback||null,languageCode:i.languageCode}),e.editorConnection=t.connection},getDocument:function(){try{return t.connection.exportModel()}catch(i){console.error("getting JSON Document threw an error",i)}},setDocument:function(i){try{t.connection.importModel(i,!0)}catch(c){console.error("loading error with proseMirror",c)}},getHtmlDocument:function(){return t.connection.getDbDoc()},setFocus:function(){t.connection.view.focus()},closeConnection:function(){t.connection.report.success(),t.connection.request.abort()}}}]),app.factory("publishService",["$http","$q","$window","spellingService",function(e,t,a,n){var p=150;return this.checkWords=function(o){if(!o)return 0;var l=n.countWords(o);return l>=p&&l<=750},this.checkSentences=function(o){return o?n.countSentences(o)>=8:0},this.checkParagraphs=function(o){return o?n.countParagraphs(o)>=4:0},this.checkGoogleNewsRecommendation=function(o){return(function(o){if(!o)return 0;var l=n.countParagraphs(o);return l>=4?1:l/4}(o)+function(o){if(!o)return 0;var l=n.countSentences(o);return l>=8?1:l/8}(o)+function(o){if(!o)return 0;var l=n.countWords(o);return l>=p&&l<=750?1:l<p?l/p:750/l}(o))/3},{checkWords:this.checkWords,checkSentences:this.checkSentences,checkParagraphs:this.checkParagraphs,checkGoogleNewsRecommendation:this.checkGoogleNewsRecommendation}}]),app.service("spellingService",[function(){var e=function(s){return"<div>"+s+"</div>"};return{countWords:function(s){var p=e(s);return $(p).find("p:not(:empty)").text().split(/\s+/).filter(function(h){return h}).length},countParagraphs:function(s){var p=e(s);return $(p).find("p:not(:empty)").length},countSentences:function(s){var p=e(s);return $(p).find("p:not(:empty)").text().split(/[!.?]/g).length}}}]),app.service("resourceService",["$http","$q",function(e,t){return{GetResources:function(){var n=t.defer();return e.get(scope.apiEndpoint+"resources").then(function(s){n.resolve(s.data)},function(){n.reject()}),n.promise}}}]),app.controller("RootController",["$scope","$rootScope","instagramService","metaService","$state","$previousState","articleService","snipService","authService","profileService","notificationService","specialService","$location","$interpolate","$timeout","shipmentService","$uibModal","$interval","$filter","$q","pageMetaInfoService","logoService","skipThirdSnipService","translationService","redirectService",function(e,t,a,n,s,p,h,r,i,c,d,o,l,g,u,b,I,m,D,w,v,C,f,F,T){if(e.shipmentSnipDistribution=4,e.doWork=!1,e.snip={},e.cookieManager=0,t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&(e.cookieManager=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),t.showSnipSlide=-1!=t.scope.currentScope.chapter.settings.configurations.showSnipsForUserRoleId,t.showSnipSlide){var x=t.scope.currentScope.chapter.settings.configurations.showSnipsForUserRoleId;"number"==typeof x&&x>0&&(t.showSnipSlide=!!t.scope.profile.chapterRoles&&t.scope.profile.chapterRoles.includes(x))}e.showSnipSlide=t.showSnipSlide,e.getChapterLogoUrl=function(){return C.getChapterLogoUrl()},e.getChapterLogoDarkUrl=function(){return C.getChapterLogoDarkUrl()};var S={scrollPositions:[],elements:{wrapper:$(".root-slides-wrapper"),slider:$(".root-slides"),slides:$(".root-slides-slide")},slideWidth:$(".root-slides-slide").width(),touchstartx:void 0,touchmovex:void 0,movex:void 0,touchstarty:void 0,touchmovey:void 0,movey:void 0,index:0,longTouch:void 0,movingx:!1,movingy:!1,refreshDimensions:function(){var _=$(S.elements.slides.filter(":visible")[S.index]).height();_&&S.elements.wrapper.height(Math.round(_)),S.slideWidth=$(".root-slides-slide").width(),S.elements.slider.css("transform","translate3d(-"+S.index*S.slideWidth+"px,0,0)")},moveTo:function(_,B){B?this.elements.slider.addClass("root-slides-transition"):this.elements.slider.removeClass("root-slides-transition"),S.slideWidth=$(".root-slides-slide").width();var P=this.index;this.index=_,this.scrollPositions[P]=$(window).scrollTop(),S.elements.slider.css("transform","translate3d(-"+S.index*S.slideWidth+"px,0,0)"),P!==S.index&&u(function(){S.refreshDimensions(),S.scrollPositions[S.index]?window.scroll(0,S.scrollPositions[S.index]):window.scroll(0,0),S.updateScrollPositions()},350)},updateScrollPositions:function(){var _=$(window).scrollTop(),B=this.elements.slides.filter(":visible");B.each(function(P,E){if(P!==S.index){var L=_;S.scrollPositions[P]&&(L-=S.scrollPositions[P]),E.style.transform="translate3d(0,"+L+"px,0)"}else $(B[P]).css("transform","translate3d(0,0,0)")})},init:function(){this.bindUIEvents()},bindUIEvents:function(){this.elements.slider.on("touchstart",function(_){S.start(_)}),this.elements.slider.on("touchmove",function(_){S.move(_)}),this.elements.slider.on("touchend",function(_){S.end(_)}),$(window).resize(function(){s.includes("app.root")&&(S.slideWidth=$(".root-slides-slide").width(),S.moveTo(S.index))}),e.$watch(function(){return $(S.elements.slides.filter(":visible")[S.index]).height()},function(){s.includes("app.root")&&u(function(){S.refreshDimensions()},500)})},start:function(_){this.longTouch=!1,setTimeout(function(){S.longTouch=!0},250),this.touchmovex=this.touchstartx=_.originalEvent.touches[0].pageX,this.movex=this.index*this.slideWidth+(this.touchstartx-this.touchmovex),this.touchmovey=this.touchstarty=_.originalEvent.touches[0].pageY,$(".root-slides-transition").removeClass("root-slides-transition")},move:function(_){this.touchmovex=_.originalEvent.touches[0].pageX,this.touchmovey=_.originalEvent.touches[0].pageY,this.movex=this.index*this.slideWidth+(this.touchstartx-this.touchmovex),(this.movingx||!this.movingy)&&(Math.abs(this.touchstartx-this.touchmovex)>Math.abs(this.touchstarty-this.touchmovey)?(this.movingx=!0,this.updateScrollPositions()):this.movingy=!0),!this.movingy&&(this.movex<(this.elements.slides.filter(":visible").length-1)*this.slideWidth&&this.elements.slider.css("transform","translate3d(-"+this.movex+"px,0,0)"),_.preventDefault())},end:function(){if(this.movingx){this.movingx=this.movingy=!1;var _=Math.abs(this.index*this.slideWidth-this.movex),B=this.index;if((_>this.slideWidth/2||_>40&&!1===this.longTouch)&&(this.movex>this.index*this.slideWidth&&this.index<this.elements.slides.filter(":visible").length?B++:this.movex<this.index*this.slideWidth&&this.index>0&&B--),B!==this.index){var P=$(this.elements.slides.filter(":visible")[B]).data("state");P&&s.go(P)}else S.moveTo(B,!0)}else this.movingx=this.movingy=!1}};S.init();var k=null,y=function(){e.premiumShipment||b.getShipmentPremium().then(function(_){e.premiumShipment=_}),s.includes("app.root")?A(h.getArticles,r.getSnips):u(function(){A(h.getArticles,r.getSnips)}),k&&m.cancel(k),s.is("app.root.notifications")?(n.push("Benachrichtigung","Benachrichtigung"),k=m(function(){d.getNotifications().then(function(_){e.notifications=_})},1e4),d.getNotifications().then(function(_){e.notifications=_}),d.updateUnseenCount()):s.is("app.root.menu")?(c.getProfile().then(function(_){e.isJournalist=_.isJournalist,e.isInternalJournalist=_.isMerkuristJournalist,e.isHeadJournalist=_.isHeadJournalist,e.isSales=_.isSales,e.isHeadSales=_.isHeadSales,e.isNewsroomAdmin=_.isNewsroomAdmin}),e.activeSpecials||o.getActiveSpecials().then(function(_){e.activeSpecials=_})):s.is("app.root.snips")&&(e.$broadcast("$$rebind::refreshSnips"),u(function(){var _=document.createEvent("Event");_.initEvent("autosize.update",!0,!1);var B=document.getElementsByClassName("root-newSnip-textbox")[0];B&&B.dispatchEvent(_)})),s.includes("app.root")&&u(function(){var _=$(S.elements.slides).filter(":visible").index($(S.elements.slides).filter(function(){return $(this).data("state")===s.current.name})[0]);S.moveTo(_,e.mobile),t.$emit("lazyImg:refresh"),u(function(){t.$emit("lazyImg:refresh")},350),u(function(){t.$emit("lazyImg:refresh")},500)})};function A(_,B,P){(P||!e.articleListDisplayables||!e.articleListDisplayableSnips)&&w.all([c.getProfile(),_(),B()]).then(function(E){var L=E[0],z=E[1],Y=E[2],j=D("includeMyUnpublishedSnips");e.articleListDisplayableSnips=Y,e.articleListDisplayables=function M(_,B){for(var z=[],Y=_.slice(),j=B.slice(),W=1;j.length>0||Y.length>0&&W<7;){for(var N=0;N<4;N++){var K=j.shift();K&&z.push(K)}for(var Q=0;Q<3;Q++)if(!f.skipSnip(W,Q+1)){var G=Y.shift();G&&z.push(G)}W++}return z}(j(Y,L.guid),z),e.alreadyLoadedArticleIds=e.articleListDisplayables.filter(function(W){return 1===W.articleListDisplayableType}).map(function(W){return W.id}),e.alreadyLoadedSnipIds=e.articleListDisplayables.filter(function(W){return 4===W.articleListDisplayableType}).map(function(W){return W.id}),e.amountOfArticles=e.articleListDisplayables.filter(function(W){return 4!==W.articleListDisplayableType}).length,e.articleListDisplayablesMore=[],u(function(){h.getArticleIds().then(function(W){e.articleListIds=W,e.loadMoreAvailable=e.articleListDisplayables&&e.alreadyLoadedArticleIds.length<e.articleListIds.length}),e.snipListIds=e.articleListDisplayableSnips.map(function(W){return W.id}),e.loadMorePending=!1,t.$emit("lazyImg:refresh"),u(function(){u(function(){b.resolve(Math.round(Y.length/e.shipmentSnipDistribution))}),!e.notifications&&L.isRegistered&&d.getNotifications().then(function(W){e.notifications=W})})})})}e.$on("apicodo.translate",function(_,B){s.is("app.root.snips")?null===B?r.getSnips().then(function(P){e.articleListDisplayableSnips=P,t.$broadcast("$$rebind::refreshSnips")}):r.getTranslatedSnipList(B).then(function(P){e.articleListDisplayableSnips=P,c.updateFavoriteLanguage(B).then(function(){t.profile.favoriteLanguage=B}),t.$broadcast("$$rebind::refreshSnips")}):s.is("app.root")&&(null===B?A(h.getArticles,r.getSnips,!0):(A(function(){return h.getTranslatedArticles(B)},function(){return r.getTranslatedSnipList(B)},!0),c.updateFavoriteLanguage(B).then(function(){t.profile.favoriteLanguage=B})))}),t.$on("$stateChangeStart",function(){s.includes("app.root")&&(S.scrollPositions[S.index]=$(window).scrollTop(),S.index=-1)}),t.$on("$stateChangeSuccess",function(){y(),v.run(s.$current.name)}),y(),t.$on("notificationUnseenCountChanged",function(){e.notifications&&d.getNotifications().then(function(_){e.notifications=_})}),e.menuClicked=function(_){var B=$(_.currentTarget).attr("ui-sref"),P=p.get();if(s.current.name===B&&"app.root.menu"===B&&P&&P.name!==B)return _.preventDefault(),void p.go();e.mobile&&s.current.name===B&&(_.preventDefault(),$("html, body").animate({scrollTop:0}))},e.emailValidationState=0,e.emailValidationStates={none:0,inProgress:1,failure:2,success:3},s.is("app.root.login")&&c.getProfile().then(function(_){!_.isRegistered&&l.search().token?(e.emailValidationState=e.emailValidationStates.inProgress,i.validateEmail(l.search().token).then(function(){u(function(){e.emailValidationState=e.emailValidationStates.success},2e3)},function(){u(function(){e.emailValidationState=e.emailValidationStates.failure},2e3)})):_.isRegistered&&l.search().token?l.path("/settings").replace():_.isRegistered&&s.go("app.root")});var R={userName:"",password:""};e.loginData=angular.copy(R),e.loginError=null,t.$on("authenticationStateChanged",function(){e.loginError=null,angular.copy(R,e.loginData),S.scrollPositions=[]});var U=function(){e.articleListDisplayables=null,e.articleListDisplayableSnips=null,e.notifications=null};t.$on("invalidateLists",function(){U(),y()}),e.login=function(_){_&&i.login(e.loginData).then(function(){U(),e.loginForm.$setPristine(),l.search().closedToken&&scope.currentChapter.closed?s.go("app.closedChapter",{action:"Get",token:l.search().closedToken}):s.go("app.root")},function(B){e.loginError=B.data})},e.loginSaml2=function(){var _="/authentication/saml2?authenticationType="+scope.currentScope.network.settings.saml2ModulePath+"&referrerUri="+encodeURIComponent(window.location.origin+scope.currentScope.appRoute+"login/saml2");if(t.app){var B=cordova.InAppBrowser.open(_,"_blank","location=yes,zoom=no,hidenavigationbuttons=yes,fullscreen=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));B.addEventListener("loadstart",function(P){P.url.endsWith("login/saml2")&&(B.close(),s.go("app.loginSaml2"))})}else window.location.href=_},e.logout=function(){Oculus.push(!1,function(){i.logout().then(function(){Oculus.navigate(""),U(),null!==t.scope.currentScope.network.settings.sharedAppLogoutUrl&&(window.location.href=t.scope.currentScope.network.settings.sharedAppLogoutUrl),t.app?window.location.href="/":c.getProfile().then(function(){s.go("app.root.login")})})})},e.register=function(){s.go("app.register",{closedToken:l.search().closedToken})},e.facebookLogin=function(){i.facebookLogin(t.app).then(function(_){_.token?I.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return function(){U(),s.go("app.root")}},facebookSignUpData:function(){return _},login:!1}}):l.path("/").search("")})},e.instagramLogin=function(){a.getGrant(t.app)},e.searchQuery="",e.search=function(){s.go("app.search",{action:"Get",q:e.searchQuery}),e.searchQuery=""},e.submitNewSnip=function(){e.snip.chapterGroupSelections&&(e.snip.chapterSlugs=Object.keys(e.snip.chapterGroupSelections).map(function(_){return e.snip.chapterGroupSelections[_]})),e.doWork=!0,r.createSnip(e.snip).then(function(_){e.doWork=!1,e.snip={},e.articleListDisplayableSnips.push(_);var B=scope.currentChapter.path+_.path;l.path(B)},function(){e.doWork=!1,e.error=!0})},e.clickNotification=function(_){d.click(_),_.openSeparate?window.open(_.uri):T.redirectNotificationUrl(_.uri)},e.showInstagram=a.isAvailable(),e.loadMore=function(){e.remainingArticleIds=e.articleListIds.filter(function(_){return e.alreadyLoadedArticleIds.indexOf(_)<0}),e.remainingSnipIds=e.snipListIds.filter(function(_){return e.alreadyLoadedSnipIds.indexOf(_)<0}),e.amountOfArticles=e.articleListDisplayables.filter(function(_){return 4!==_.articleListDisplayableType}).length,e.loadMorePending=!0,w.all([c.getProfile(),h.getArticlesByIds(e.remainingArticleIds.splice(0,e.amountOfArticles))]).then(function(_){var j,W,Q,G,O,H,J,B=_[0],P=_[1],E=D("includeMyUnpublishedSnips"),z=e.articleListDisplayableSnips.filter(function(j){return e.remainingSnipIds.indexOf(j.id)>=0}),Y=(j=E(z,B.guid),W=P,Q=[],G=j.slice(),O=W.slice(),H=function(){for(;O.length>0;){for(var Z=0;Z<4;Z++){var ee=O.shift();ee&&Q.push(ee)}for(var X=0;X<3;X++){var te=G.shift();te&&Q.push(te)}}},J=function(){for(;G.length>0||O.length>0;){for(var Z=0;Z<3;Z++){var ee=G.shift();ee&&Q.push(ee)}for(var X=0;X<4;X++){var te=O.shift();te&&Q.push(te)}}},e.articleListDisplayablesMore.length>0?4===e.articleListDisplayablesMore[e.articleListDisplayablesMore.length-1].articleListDisplayableType?H():J():4===e.articleListDisplayables[e.articleListDisplayables.length-1].articleListDisplayableType?H():J(),Q);angular.forEach(Y,function(j){e.articleListDisplayablesMore.push(j),4===j.articleListDisplayableType?e.alreadyLoadedSnipIds.push(j.id):e.alreadyLoadedArticleIds.push(j.id)}),e.articleListDisplayablesMoreShow=!1,e.loadMoreAvailable=e.alreadyLoadedArticleIds.length<e.articleListIds.length,u(function(){e.loadMorePending=!1,e.articleListDisplayablesMoreShow=!0})})},e.allowInternAd=function(_,B){var P=(_+1)%B==0;return 7===_&&t.scope.currentScope.chapter.settings.criteoPublisherId&&(P=!1),P},e.chapterGroupChoose=function(_){return g(scope.currentScope.network.resources.web_root_snip_chapterGroupChoose)({chapterGroupName:_.toUpperCase()})},e.defaultCollapsed=2!==scope.currentChapter.settings.featureMenuContainerCollapsable,e.isAuthorCollapsed=e.defaultCollapsed,e.isAdvertiserCollapsed=e.defaultCollapsed,e.isSpecialsCollapsed=e.defaultCollapsed,e.isSocialCollapsed=e.defaultCollapsed,e.isChapterCollapsed=[];for(var V=0;V<scope.currentScope.chapter.containers.length;V++)e.isChapterCollapsed[V]=e.defaultCollapsed;e.isNetworkCollapsed=[];for(var q=0;q<scope.currentScope.network.containers.length;q++)e.isNetworkCollapsed[q]=e.defaultCollapsed;e.toggleAuthorContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isAuthorCollapsed=!e.isAuthorCollapsed)},e.toggleAdvertiserContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isAdvertiserCollapsed=!e.isAdvertiserCollapsed)},e.toggleSpecialsContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isSpecialsCollapsed=!e.isSpecialsCollapsed)},e.toggleSocialContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isSocialCollapsed=!e.isSocialCollapsed)},e.toggleChapterContainer=function(_){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isChapterCollapsed[_]=!e.isChapterCollapsed[_])},e.toggleNetworkContainer=function(_){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isNetworkCollapsed[_]=!e.isNetworkCollapsed[_])}}]),app.controller("SearchController",["$scope","$rootScope","searchService","$state","$location","$uibModal","$timeout",function(e,t,a,n,s,p,h){e.hits=null,e.staffDirectoryUserHits=null,e.model={},e.model.query=s.search().q,e.filter=null,e.searching=!1,e.isMobileView=t.mobile,e.hasChapterGroups=scope.currentScope.chapter.chapterGroups.length>0,e.isStaffDirectoryEnabled=t.scope.currentScope.network.settings.isStaffDirectoryEnabled,e.state=s.search().searchFilter||"all";var r=function(c){if(angular.isArray(c))return c;var d=[];return c&&d.push(c),d};e.search=function(c,d){e.state=c||s.search().searchFilter;var o=s.search().chapterIds,l=s.search().showAll;if(o=r(o),!d&&(d={},s.search().staffDirFilter)){var g=JSON.parse(decodeURIComponent(s.search().staffDirFilter));g&&(g.datePickers&&(angular.forEach(Object.entries(g.datePickers),function(u){if(u[1].from){var b=new Date(u[1].from);u[1].from=b}if(u[1].until){var I=new Date(u[1].until);u[1].until=I}}),g.attributeRanges=function(c){return Object.keys(c).map(function(d){return{attribute_Id:d,from:c[d].from,until:c[d].until,ignoreYear:c[d].ignoreYear}})}(g.datePickers)),d=g)}if(e.filtered=o.length>0,!0===e.isStaffDirectoryEnabled)switch(e.state){case"all":default:(o.length>0||e.model.query||l)&&(e.searching=!0,a.search(e.model.query,o).then(function(u){e.hits=u,e.searching=!1})),a.getStaffDirectoryUsers(e.model.query,d.optionIds,d.booleanIds,d.attributeRanges,e.state).then(function(u){e.staffDirectoryUserHits=u});break;case"staffs":e.hits=null,a.getStaffDirectoryUsers(e.model.query,d.optionIds,d.booleanIds,d.attributeRanges,e.state).then(function(u){e.staffDirectoryUserHits=u});break;case"articles":(o.length>0||e.model.query||l)&&(e.searching=!0,a.search(e.model.query,o).then(function(u){e.hits=u,u||(e.hits=[]),e.searching=!1})),e.staffDirectoryUserHits=null}else o.length>0||e.model.query||l?(e.searching=!0,a.search(e.model.query,o).then(function(u){e.hits=u,e.searching=!1}),e.staffDirectoryUserHits=[]):(e.hits=null,e.staffDirectoryUserHits=null);s.search("q",e.model.query)},e.filtering=function(c){e.state=c.state,1==c.shouldResetSearch&&(e.model.query=null)},e.navigateUp=function(){h(function(){n.go("app.root")})},e.loadArticles=function(){var c=s.search().chapterIds;c=r(c),a.getArticles(e.model.query,e.hits.articles.length/10,c).then(function(d){e.hits.articles=e.hits.articles.concat(d)})},e.filterModal=function(){p.open({templateUrl:"/ClientApp/src/legacy-app/search/searchFilterDialog.html",controller:"SearchFilterDialog",size:"lg",resolve:{searchCallback:function(){return e.search}}})},e.isMobileView?$("#app-search-input-mobile").focus():$("#app-search-input-desktop").focus(),e.search()}]),app.component("searchFilter",{bindings:{searchCallback:"<",filterStateCallback:"<"},templateUrl:"/ClientApp/src/legacy-app/search/searchFilter.html",controller:["$location","$rootScope","searchService","$scope",function(e,t,a,n){var s=this;if(s.filtered=!1,s.isMobileView=t.mobile,s.countChanges=0,s.filterInitialized=!1,s.filterTypes=[{id:-1,display:t.scope.currentScope.network.resources.web_filter_mode_staff_dir||"!RES[web_filter_mode_staff_dir]"},{id:0,display:t.scope.currentScope.network.resources.web_filter_mode_both||"!RES[web_filter_mode_both]"},{id:1,display:t.scope.currentScope.network.resources.web_filter_mode_articles||"!RES[web_filter_mode_articles]"}],n.noSelectionStyle={"background-color":"cadetblue"},s.searchFilter=e.search().searchFilter||"all",s.$onInit=function(){a.getStaffDirectoryAttributes().then(function(o){s.attributes=o}),s.staffDirEnabled=t.scope.currentScope.network.settings.isStaffDirectoryEnabled;var c=e.search().searchFilter;if(c){switch(c){case"staffs":s.rangeSelection=-1;break;case"all":default:s.rangeSelection=0;break;case"articles":s.rangeSelection=1}s.filtered=!0}if(e.search().staffDirFilter){var d=JSON.parse(decodeURIComponent(e.search().staffDirFilter));d&&(d.datePickers&&(angular.forEach(Object.entries(d.datePickers),function(o){if(o[1].from){var l=new Date(o[1].from);o[1].from=l}if(o[1].until){var g=new Date(o[1].until);o[1].until=g}}),d.attributeRanges=i(d.datePickers)),s.staffDirFilter=d,s.filtered=!0)}s.filterInitialized=!0},s.chapterGroups=scope.currentScope.chapter.chapterGroups,s.chapterGroupSelections={},s.staffDirFilter={},s.changeFilter=function(c){c=s.rangeSelection,s.countChanges++,-1==c&&(s.searchFilter="staffs"),0==c&&(s.searchFilter="all"),1==c&&(s.searchFilter="articles"),e.search("searchFilter",s.searchFilter),s.updateQuery()},e.search().chapterIds){var p=[],h=e.search().chapterIds;angular.isArray(h)?p=h:p.push(h),angular.forEach(p,function(c){angular.forEach(s.chapterGroups,function(d,o){d.chapters.filter(function(l){return l.id===c}).length>0&&(s.chapterGroupSelections[o]=c,s.filtered=!0)})})}var r=function(c){return Object.keys(c).map(function(d){return c[d]})},i=function(c){return Object.keys(c).map(function(d){return{attribute_Id:d,from:c[d].from,until:c[d].until,ignoreYear:c[d].ignoreYear}})};s.updateQuery=function(){if(s.chapterGroupSelections){var c=r(s.chapterGroupSelections);e.search("chapterIds",c)}if(s.staffDirFilter.optionSelections){var d=r(s.staffDirFilter.optionSelections);s.staffDirFilter.optionIds=d}if(s.staffDirFilter.datePickers&&(s.staffDirFilter.attributeRanges=i(s.staffDirFilter.datePickers)),s.staffDirFilter.booleanSelections){var o=r(s.staffDirFilter.booleanSelections);o=o.filter(function(g){return void 0!==g}),s.staffDirFilter.booleanIds=o}if(s.staffDirFilter.optionSelections||s.chapterGroupSelections||s.booleanSelections||s.datePickers){var l=encodeURIComponent(JSON.stringify(s.staffDirFilter));e.search("staffDirFilter",l),s.filtered=!0,s.searchCallback(s.searchFilter,s.staffDirFilter)}},s.resetFilter=function(){e.search("chapterIds",null),s.chapterGroupSelections={},s.staffDirFilter={},e.search("staffDirFilter",null),s.filtered=!1,s.searchCallback(s.searchFilter,s.staffDirFilter)}}]}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),a=t.length,n=new Array(a);a--;)n[a]=[t[a],e[t[a]]];return n}),Object.keys||(Object.keys=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=a.length;return function(s){if("function"!=typeof s&&("object"!=typeof s||null===s))throw new TypeError("Object.keys called on non-object");var h,r,p=[];for(h in s)e.call(s,h)&&p.push(h);if(t)for(r=0;r<n;r++)e.call(s,a[r])&&p.push(a[r]);return p}}()),app.controller("SearchFilterDialog",["searchCallback","$location","$scope",function(e,t,a){if(a.chapterGroups=scope.currentScope.chapter.chapterGroups,a.chapterGroupSelections={},a.filtered=!1,a.searchCallback=e,t.search().chapterIds){var n=[],s=t.search().chapterIds;angular.isArray(s)?n=s:n.push(s),angular.forEach(n,function(h){angular.forEach(a.chapterGroups,function(r,i){r.chapters.filter(function(c){return c.id===h}).length>0&&(a.chapterGroupSelections[i]=h,a.filtered=!0)})})}a.updateQuery=function(){a.chapterGroupSelections&&(a.filtered=!0)},a.resetFilter=function(){a.chapterGroupSelections={},a.filtered=!1},a.save=function(){var h=Object.keys(a.chapterGroupSelections).map(function(h){return a.chapterGroupSelections[h]});t.search("chapterIds",h),e(),a.$dismiss()}}]),app.factory("searchService",["$http","$q",function(e,t){var a=function(u,b,I){var m={};return u&&(m.query=u),b&&(m.page=b),I&&(m.chapterIds=I),m};function g(u,b,I){var m=t.defer();return e.post(scope.apiEndpoint+I,a(u,b)).then(function(D){m.resolve(D.data)},function(){m.reject()}),m.promise}return{search:function(u,b){var I=t.defer();return e.post(scope.apiEndpoint+"search",a(u,0,b)).then(function(m){I.resolve(m.data)},function(){I.reject()}),I.promise},getArticles:function(u,b,I){var m=t.defer();return e.post(scope.apiEndpoint+"search/articles",a(u,b,I)).then(function(D){m.resolve(D.data)},function(){m.reject()}),m.promise},getAssetArticles:function(u,b){var I=t.defer();return e.post(scope.apiEndpoint+"search/assets/articles",a(u,b)).then(function(m){I.resolve(m.data)},function(){I.reject()}),I.promise},getAssetSponsoredArticles:function(u,b){var I=t.defer();return e.post(scope.apiEndpoint+"search/assets/articles/sponsored?q=",a(u,b)).then(function(m){I.resolve(m.data)},function(){I.reject()}),I.promise},getAssetImages:function(u,b){return g(u,b,"search/assets/images")},getSponsoredAssetImages:function(u,b){return g(u,b,"search/assets/images/sponsored")},getAssetFiles:function(u,b){return g(u,b,"search/assets/files")},getSponsoredAssetFiles:function(u,b){return g(u,b,"search/assets/files/sponsored")},getStaffDirectoryUsers:function(u,b,I,m,D){var w=t.defer();return e.post(scope.apiEndpoint+"search/staffDirectory",{query:u,optionIds:b,booleanIds:I,attributeDateTimeRanges:m,filterState:D}).then(function(v){w.resolve(v.data)},function(){w.reject()}),w.promise},getStaffDirectoryAttributes:function(){var u=t.defer();return e.get(scope.apiEndpoint+"staffDirectory/attributes").then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise}}}]),app.controller("SnipApplyController",["$interpolate","$scope","snipService","authorService","profileService","$stateParams","$location",function(e,t,a,n,s,p,h){t.snip=null;var r=p.id;t.web_snipApply_notAppliedDescription=e(scope.currentScope.network.resources.web_snipApply_notAppliedDescription)({web_common_author_custom:scope.currentScope.network.getResourceOrKeyName("web_common_author_custom")}),s.getProfile().then(function(i){i.isJournalist?(a.getSnipDetails(r).then(function(c){t.snip=c}),n.checkApply(r).then(function(c){t.hasApplied=c})):h.path("/author/register").search("fromApply","1")},function(i){h.path("/author/register")}),t.apply=function(){n.applySnip(r).then(function(i){h.path("/dashboard")})}}]),app.controller("SnipDeleteDialog",["$scope","snipService","snip",function(e,t,a){e.delete=function(){t.deleteSnip(a.id).then(function(){a.deleted=new Date,e.$dismiss()},function(){e.error=!0})}}]),app.controller("SnipDetailController",["$rootScope","$scope","$previousState","snipService","$location","snip","$timeout","articleService","profileService","$uibModal","translationService","assetService",function(e,t,a,n,s,p,h,r,i,c,d,o){if((!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history){var l=s.path();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",scope.currentChapter.path+l)}var m;if(t.$on("$viewContentLoaded",function(){h(function(){t.viewContentLoaded=!0})}),t.hasHowto=e.scope.staticArticles.filter(function(m){return"/howto"===m.path}).length>0,t.hideUserInteraction=1==scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==e.scope.profile.isRegistered&&0==e.app,$(window).scroll(function(m){$(m.target).scrollTop()>100?$(".snipDetail-mobileNavigation-wrapper").addClass("snipDetail-mobileNavigation-wrapper-scrolled"):$(".snipDetail-mobileNavigation-wrapper").removeClass("snipDetail-mobileNavigation-wrapper-scrolled")}),t.recommendedSnips=[],t.snip=p,t.availableTargetLanguages=null,d.getAvailableTargetLanguages().then(function(m){t.availableTargetLanguages=m}),t.selectedTargetLanguage=e.profile.favoriteLanguage,t.$on("apicodo.translate",function(m,D){t.translateSnip(D)}),t.translateSnip=function(m){m&&(t.selectedTargetLanguage=m),null===t.selectedTargetLanguage?n.getSnipDetails(t.snip.id).then(function(D){t.snip.text=D.text,t.snip.formattedText=D.formattedText,t.snip.assetReferences=D.assetReferences,I()}):n.getTranslatedSnipDetails(t.snip.id,t.selectedTargetLanguage).then(function(D){t.snip.text=D.text,t.snip.formattedText=D.formattedText,t.snip.assetReferences=D.assetReferences,I(),i.updateFavoriteLanguage(t.selectedTargetLanguage).then(function(){e.profile.favoriteLanguage=t.selectedTargetLanguage})})},e.scope.currentScope.chapter.settings.enableSnipRecommendations&&n.getRecommendedSnips(t.snip.id).then(function(m){t.recommendedSnips=m}),p.articleId&&r.getArticleDetails(p.articleId).then(function(m){t.article=m}),t.deleteSnip=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/snip/snipDeleteDialog.html",controller:"SnipDeleteDialog",size:"lg",resolve:{snip:function(){return t.snip}}})},t.contactSnipUser=function(){i.getProfile().then(function(m){m.isRegistered&&c.open({templateUrl:"/ClientApp/src/legacy-app/user/userContactDialog.html",controller:"UserContactDialog",size:"lg",resolve:{snip:function(){return t.snip}}})})},(m=window.navigator.userAgent).indexOf(" Android ")>-1&&m.indexOf("Version/")>-1&&parseFloat((m.match("Android ([0-9.]+)")||[])[1])<=4.4){var u=$(window).height();$(".app-mobile .snipDetail-wrapper").css("height",u+"px"),$(".app-desktop .snipDetail-wrapper").css("height",u+"px")}var b=function(m){t.snip.assetReferences.unshift(m),I()};function I(){t.snip.assetsMedia=[],t.snip.assetsFacts=[],t.snip.assetsQuestions=[],t.snip.assetsComments=[],angular.isDefined(p.assetReferences)&&p.assetReferences.forEach(function(m){null!==m.assetImage||null!==m.assetText&&(5===m.assetText.type||6===m.assetText.type||7===m.assetText.type||10===m.assetText.type||13===m.assetText.type)?t.snip.assetsMedia.push(m):null!==m.assetText&&(8===m.assetText.type?t.snip.assetsFacts.push(m):9===m.assetText.type?t.snip.assetsQuestions.push(m):0===m.assetText.type&&t.snip.assetsComments.push(m))})}t.assetCreateOpinionDialog=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateOpinionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return b},createAssetAsync:function(){return function(m){return o.insertAssetTextToSnip(m,t.snip.id)}}}})},t.assetCreateFactDialog=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return b},createAssetAsync:function(){return function(m){return o.insertAssetTextToSnip(m,t.snip.id)}}}})},t.assetCreateQuestionDialog=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return b},createAssetAsync:function(){return function(m){return o.insertAssetTextToSnip(m,t.snip.id)}}}})},t.assetCreateImageDialog=function(m,D,w){m&&0!==m.length?D.length||c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return m},resultCallback:function(){return b},createAssetAsync:function(){return function(v){return o.insertAssetImageToSnip(v,t.snip.id)}}}}):D||w.$setPristine()},t.assetCreateVideoDialog=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return b},createAssetAsync:function(){return function(m){return o.insertAssetTextToSnip(m,t.snip.id)}}}})},t.assetCreateGifDialog=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return b},createAssetAsync:function(){return function(m){return o.insertAssetTextToSnip(m,t.snip.id)}}}})},t.assetSearchDialog=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return b},snipId:function(){return t.snip.id},assetReferences:function(){return t.snip.assetReferences}}})},t.assetImageFocuspointDialog=function(m){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return m}}})},t.scrollTo=function(m){$("body,html").animate({scrollTop:$(m).offset().top-120},1e3)},I(),t.share=function(){!window.plugins||!window.plugins.socialsharing||(window._paq&&_paq.push(["trackEvent","Conversion","StartShareSnip","SnipDetail"]),window.plugins.socialsharing.shareWithOptions({message:t.snip.text+" "+s.absUrl()},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessShareSnip","SnipDetail"])}))}}]),app.controller("SnipElasticReportController",["$scope","$rootScope","snipService","scopeService","$timeout","$location","$stateParams",function(e,t,a,n,s,p,h){AmCharts.isReady=!0;var l,g,u,b,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_unknownReferrer"),color:"#cccccc",regEx:["^$"]},{name:t.scope.currentScope.network.domain.charAt(0).toUpperCase()+t.scope.currentScope.network.domain.slice(1),color:r,regEx:["^https?:\\/\\/"+t.scope.currentScope.network.domain]},{name:"Facebook",color:"#3B5998",regEx:["^https?:\\/\\/(\\w*\\.)?facebook\\.com","^android-app:\\/\\/m.facebook."]},{name:"Google",color:"#F44336",regEx:["^https?:\\/\\/((www\\.)|(images\\.))?google\\.","^android-app:\\/\\/com\\.google\\.android\\.googlequicksearchbox"]},{name:"Twitter",color:"#4099FF",regEx:["^https?:\\/\\/t\\.co\\/","^https?:\\/\\/twitter\\.com\\/"]},{name:"Webmail",color:"#ff66ff",regEx:["^https?:\\/\\/.*\\.mail\\.live\\.com","^https?:\\/\\/mail\\.google\\.com","^https?:\\/\\/3c\\.gmx\\.net","^https?:\\/\\/3c\\.web\\.de","^https?:\\/\\/email\\.t-online\\.de","^https?:\\/\\/3c-bap\\.web\\.de","^https?:\\/\\/email\\.1und1\\.de","^https?:\\/\\/www\\.arcor\\.de\\/home\\/link\\.php"]},{name:"WhatsApp",color:"#43d854",regEx:["^https?:\\/\\/web.whatsapp.com"]},{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_articleSuggestionReferrer"),color:"#F44336",regEx:["^https?:\\/\\/www\\.googleapis\\.com\\/auth\\/chrome-content-suggestions","^https?:\\/\\/play\\.google\\.(com|de){1}\\/newsstand"]},{name:"Google News",color:"#F44336",regEx:["^https?:\\/\\/((www\\.news\\.)|(news\\.))?(url\\.)?google\\."]},{name:"Instagram",color:"#cd486b",regEx:["^https?:\\/\\/(\\w*\\.)?instagram\\."]}],c=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],d=[],o=[];e.report=null,e.totalReadingTime=0,e.totalReadingCount=0,e.totalImpressionCount=0,e.totalUniqueImpressionCount=0,e.totalUniqueReadingCount=0,e.totalUniqueReadingHavingImpressionsCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var I=function(v){var C=0,f=0,F=0,T=0,x=0,S=0,k=0,y=0,M=0,A=[];d.length=0,$.each(v,function(R,U){C+=U.desktopReadingCount,f+=U.tabletReadingCount,F+=U.mobileReadingCount,k+=U.uniqueReadingCount,S+=U.uniqueImpressionCount,y+=U.uniqueReadingHavingImpressionsCount,T+=U.readingTime,M+=U.impressionCount,x+=U.readingCount,U.referrers&&$.each(U.referrers,function(V,q){var _=!1;$.each(i,function(B,P){if($.each(P.regEx,function(E,L){if(q.uri.match(L))return A[P.name]?(A[P.name].count+=q.count,_=!0,!1):(A[P.name]={count:q.count,referrer:P.name,color:P.color},d.push(A[P.name]),_=!0,!1)}),_)return!1}),_||(A.others?A.others.count+=q.count:(A.others={count:q.count,referrer:"Andere"},d.push(A.others)))})}),e.$apply(function(){e.totalUniqueReadingCount=k,e.totalUniqueReadingHavingImpressionsCount=y,e.totalReadingTime=T,e.totalImpressionCount=M,e.totalReadingCount=x,e.totalUniqueImpressionCount=S}),c[0].value=Math.round(100/(x/C)),c[1].value=Math.round(100/(x/f)),c[2].value=Math.round(100/(x/F)),b.validateData(),l.validateData()},m=function(){var v=moment(g.startDate).startOf("day").toDate(),C=moment(g.endDate).startOf("day").toDate(),f=e.report.filter(function(F){return F.day>=v&&F.day<=C});I(f),u.zoom(v,moment(C).add(1,"d").toDate()),e.$apply(function(){e.startDay=v,e.endDay=C})};e.filterChapter=function(v){v.filtered=!v.filtered,function(){var v=e.chapters.filter(function(C){return!C.filtered}).map(function(C){return C.id});e.filterDisabled=!0,a.getSnipReport(e.snip.id,{chapterIds:v}).then(function(C){C.forEach(function(f){f.day=moment(f.day.replace("Z","")).toDate()}),e.report=C,s(function(){(function(v){o.length=0,$.each(v,function(C,f){o.push(f)}),g.validateData(),u.validateData()})(C),m(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(v){return e.filterDisabled||1===e.chapters.filter(function(C){return!C.filtered}).length&&!v.filtered},a.getSnipDetails(h.id).then(function(v){e.snip=v,a.getSnipReport({snipId:v.id}).then(function(C){C.forEach(function(F){F.day=moment(F.day.replace("Z","")).toDate()}),e.report=C,e.startDay=C[0].day,e.endDay=C[C.length-1].day;var f=[];$.each(v.chapterSlugs,function(F,T){f.push(n.getChapter(T))}),f=f.filter(function(F){return 2===F.managementState}),e.chapters=f,$.each(C,function(F,T){o.push(T)}),s(function(){l=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:c,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(g=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:o,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){m()}),u=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"readingCount",toField:"readingCount"}],dataProvider:o,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_reportSnip_uniqueReadersAmount,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSnip_callsAmount"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_calls"),valueField:"readingCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_calls")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),(b=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,valueField:"count",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[title]]: [[value]]"})).legend.addListener("clickLabel",function(F){F.dataItem.dataContext.name.startsWith("http")&&window.prompt(scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),F.dataItem.dataContext.referrer)}),I(C)})},function(){e.error=!0})})}]),app.controller("SnipReportController",["$scope","$rootScope","snip","chapterReport","snipService","scopeService","$timeout",function(e,t,a,n,s,p,h){AmCharts.isReady=!0;var r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:r,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],c=[],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];n.forEach(function(l){l.chapter=p.getChapter(l.chapterSlug),l.report.calendar.forEach(function(g){g.start=moment(g.start.replace("Z","")).toDate(),g.end=moment(g.end.replace("Z","")).toDate()})}),e.chapterReport=n,e.snip=a,h(function(){var l,g,u,b,I,m,D;$.each(n,function(x,S){S.active=!0});var w=[],v=function(){w.length=0,n.hasVariants=!1,$.each(n[0].report.calendar,function(x,S){w.push({start:S.start,end:S.end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]})}),$.each(n,function(x,S){if(S.active){n[x-1]&&2===n[x-1].chapter.managementState&&2===S.chapter.managementState&&n[x-1].chapter.name!==S.chapter.name&&(n.multiChapterShipment=!0);var k=a.id;$.each(S.report.calendar,function(y,M){M.id=k,w[y].viewableImpressions+=M.viewableImpressions,w[y].uniqueViewableImpressions+=M.uniqueViewableImpressions,w[y].billableViewableImpressions+=M.billableViewableImpressions,w[y].activeTimeSeconds+=M.activeTimeSeconds,w[y].readings+=M.readings,w[y].uniqueReadings+=M.uniqueReadings,w[y].uniqueReadingsHavingViewableImpressions+=M.uniqueReadingsHavingViewableImpressions,w[y].uniqueReadingPercentageReads+=M.uniqueReadingPercentageReads,w[y].maleUniqueReadings+=M.maleUniqueReadings,w[y].femaleUniqueReadings+=M.femaleUniqueReadings,w[y].desktopReadings+=M.desktopReadings,w[y].mobileReadings+=M.mobileReadings,w[y].tabletReadings+=M.tabletReadings,w[y].age1617MaleUniqueReadings+=M.age1617MaleUniqueReadings,w[y].age1824MaleUniqueReadings+=M.age1824MaleUniqueReadings,w[y].age2534MaleUniqueReadings+=M.age2534MaleUniqueReadings,w[y].age3544MaleUniqueReadings+=M.age3544MaleUniqueReadings,w[y].age4554MaleUniqueReadings+=M.age4554MaleUniqueReadings,w[y].age55MaleUniqueReadings+=M.age55MaleUniqueReadings,w[y].age1617FemaleUniqueReadings+=M.age1617FemaleUniqueReadings,w[y].age1824FemaleUniqueReadings+=M.age1824FemaleUniqueReadings,w[y].age2534FemaleUniqueReadings+=M.age2534FemaleUniqueReadings,w[y].age3544FemaleUniqueReadings+=M.age3544FemaleUniqueReadings,w[y].age4554FemaleUniqueReadings+=M.age4554FemaleUniqueReadings,w[y].age55FemaleUniqueReadings+=M.age55FemaleUniqueReadings,w[y].uniqueReadingPercentage24Reads+=M.uniqueReadingPercentage24Reads,w[y].uniqueReadingPercentage2549Reads+=M.uniqueReadingPercentage2549Reads,w[y].uniqueReadingPercentage5074Reads+=M.uniqueReadingPercentage5074Reads,w[y].uniqueReadingPercentage75100Reads+=M.uniqueReadingPercentage75100Reads,M.referrers.length&&M.referrers.forEach(function(A){w[y].referrers.push(A)})})}}),l.validateData(),g.validateData(),u.validateData(),b.validateData(),I.validateData(),m.validateData(),D.validateData()},C=n.summary={referrers:[]},f=function(x,S){C.viewableImpressions=0,C.uniqueViewableImpressions=0,C.billableViewableImpressions=0,C.activeTimeSeconds=0,C.readings=0,C.uniqueReadings=0,C.uniqueReadingsHavingViewableImpressions=0,C.uniqueReadingPercentageReads=0,C.maleUniqueReadings=0,C.femaleUniqueReadings=0,C.desktopReadings=0,C.mobileReadings=0,C.tabletReadings=0,C.age1617MaleUniqueReadings=0,C.age1824MaleUniqueReadings=0,C.age2534MaleUniqueReadings=0,C.age3544MaleUniqueReadings=0,C.age4554MaleUniqueReadings=0,C.age55MaleUniqueReadings=0,C.age1617FemaleUniqueReadings=0,C.age1824FemaleUniqueReadings=0,C.age2534FemaleUniqueReadings=0,C.age3544FemaleUniqueReadings=0,C.age4554FemaleUniqueReadings=0,C.age55FemaleUniqueReadings=0,C.uniqueReadingPercentage24Reads=0,C.uniqueReadingPercentage2549Reads=0,C.uniqueReadingPercentage5074Reads=0,C.uniqueReadingPercentage75100Reads=0;var k=0,y=0,M=0,A=0,R=0,U=0,V=0,q=0,_=0,B=0,P=0,E=0,L=0,z=0,Y=0;C.start=x,C.end=S,C.referrers.length=0,$.each(w,function(Q,G){var O=new Date(G.start);O<x||O>S||(C.viewableImpressions+=G.viewableImpressions,C.uniqueViewableImpressions+=G.uniqueViewableImpressions,C.billableViewableImpressions+=G.billableViewableImpressions,C.activeTimeSeconds+=G.activeTimeSeconds,C.readings+=G.readings,C.uniqueReadingPercentageReads+=G.uniqueReadingPercentageReads,C.maleUniqueReadings+=G.maleUniqueReadings,C.femaleUniqueReadings+=G.femaleUniqueReadings,C.uniqueReadings+=G.uniqueReadings,C.uniqueReadingsHavingViewableImpressions+=G.uniqueReadingsHavingViewableImpressions,C.uniqueReadingPercentage24Reads+=G.uniqueReadingPercentage24Reads,C.uniqueReadingPercentage2549Reads+=G.uniqueReadingPercentage2549Reads,C.uniqueReadingPercentage5074Reads+=G.uniqueReadingPercentage5074Reads,C.uniqueReadingPercentage75100Reads+=G.uniqueReadingPercentage75100Reads,k+=G.desktopReadings,y+=G.mobileReadings,M+=G.tabletReadings,A+=G.age1617MaleUniqueReadings,R+=G.age1824MaleUniqueReadings,U+=G.age2534MaleUniqueReadings,V+=G.age3544MaleUniqueReadings,q+=G.age4554MaleUniqueReadings,_+=G.age55MaleUniqueReadings,B+=G.age1617FemaleUniqueReadings,P+=G.age1824FemaleUniqueReadings,E+=G.age2534FemaleUniqueReadings,L+=G.age3544FemaleUniqueReadings,z+=G.age4554FemaleUniqueReadings,Y+=G.age55FemaleUniqueReadings,G.referrers.forEach(function(H){var J=C.referrers.filter(function(Z){return Z.referrer===H.referrer});J.length?J[0].readings+=H.readings:C.referrers.push({referrer:H.referrer,readings:H.readings,color:H.color})}))}),C.referrers.sort(function(Q,G){return G.readings-Q.readings}),C.referrers.forEach(function(Q){Q.name=Q.referrer?Q.referrer.substring(0,30):Q.referrer}),c.length=0,[].push.apply(c,C.referrers.slice(0,8)),c.filter(function(Q){return!Q.color}).forEach(function(Q,G){Q.color=b.colors[G]});var j=C.referrers.slice(9,-1),W={referrer:scope.currentScope.network.getResourceOrKeyName("web_report_others"),name:scope.currentScope.network.getResourceOrKeyName("web_report_others"),readings:0,color:b.colors[10]};j.forEach(function(Q){W.readings+=Q.readings}),W.readings>0&&c.push(W);var N=k+y+M;C.desktopReadings=Math.round(100/(N/k)),C.mobileReadings=Math.round(100/(N/y)),C.tabletReadings=Math.round(100/(N/M)),C.maleUniqueReadings=Math.round(C.maleUniqueReadings),C.femaleUniqueReadings=Math.round(C.femaleUniqueReadings),i[0].value=C.femaleUniqueReadings,i[1].value=C.maleUniqueReadings;var K=A+R+U+V+q+_+B+P+E+L+z+Y;C.age1617MaleUniqueReadings=Math.round(100/(K/A)),C.age1824MaleUniqueReadings=Math.round(100/(K/R)),C.age2534MaleUniqueReadings=Math.round(100/(K/U)),C.age3544MaleUniqueReadings=Math.round(100/(K/V)),C.age4554MaleUniqueReadings=Math.round(100/(K/q)),C.age55MaleUniqueReadings=Math.round(100/(K/_)),C.age1617FemaleUniqueReadings=Math.round(100/(K/B)),C.age1824FemaleUniqueReadings=Math.round(100/(K/P)),C.age2534FemaleUniqueReadings=Math.round(100/(K/E)),C.age3544FemaleUniqueReadings=Math.round(100/(K/L)),C.age4554FemaleUniqueReadings=Math.round(100/(K/z)),C.age55FemaleUniqueReadings=Math.round(100/(K/Y)),d[0].male=Math.round(-1*C.age1617MaleUniqueReadings),d[1].male=Math.round(-1*C.age1824MaleUniqueReadings),d[2].male=Math.round(-1*C.age2534MaleUniqueReadings),d[3].male=Math.round(-1*C.age3544MaleUniqueReadings),d[4].male=Math.round(-1*C.age4554MaleUniqueReadings),d[5].male=Math.round(-1*C.age55MaleUniqueReadings),d[0].female=Math.round(C.age1617FemaleUniqueReadings),d[1].female=Math.round(C.age1824FemaleUniqueReadings),d[2].female=Math.round(C.age2534FemaleUniqueReadings),d[3].female=Math.round(C.age3544FemaleUniqueReadings),d[4].female=Math.round(C.age4554FemaleUniqueReadings),d[5].female=Math.round(C.age55FemaleUniqueReadings),o[0].value=C.desktopReadings,o[1].value=C.mobileReadings,o[2].value=C.tabletReadings,u.validateData(),I.validateData(),m.validateData(),D.validateData(),b.validateData(),e.$$phase||e.$apply()};l=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:w,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),g=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:w,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSnip_uniqueReadersAmount"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),u=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),(b=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:c,valueField:"readings",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[name]]: [[value]]"})).legend.addListener("clickLabel",function(x){x.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),x.dataItem.dataContext.referrer)}),I=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:r,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(x){return-1*x.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(x){return x<0?-1*x+"":x+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),m=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),D=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[C],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:r,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:r,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:r,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:r,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var x=moment(l.startDate).startOf("day").toDate(),S=moment(l.endDate).startOf("day").add(-1,"d").toDate();f(x,S),g.zoom(x,moment(S).add(1,"d").toDate())};l.addListener("zoomed",function(){F()}),e.toggleChapter=function(x){$.each(n,function(S,k){null!==k.chapter&&k.chapter.name===x.name&&(k.active=!k.active)}),v(),F()},F(),v();var T=!1;setInterval(function(){"visible"!==document.visibilityState||0===w.length||T||(T=!0,s.getLatestReport(a.id).then(function(x){if(x){x[0].start=moment(x[0].start.replace("Z","")).toDate(),x[0].end=moment(x[0].end.replace("Z","")).toDate();var S={start:x[0].start,end:x[0].end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]};$.each(x,function(M,A){n[M].active&&(S.viewableImpressions+=A.viewableImpressions,S.uniqueViewableImpressions+=A.uniqueViewableImpressions,S.billableViewableImpressions+=A.billableViewableImpressions,S.activeTimeSeconds+=A.activeTimeSeconds,S.readings+=A.readings,S.uniqueReadings+=A.uniqueReadings,S.uniqueReadingsHavingViewableImpressions+=A.uniqueReadingsHavingViewableImpressions,S.uniqueReadingPercentageReads+=A.uniqueReadingPercentageReads,S.maleUniqueReadings+=A.maleUniqueReadings,S.femaleUniqueReadings+=A.femaleUniqueReadings,S.desktopReadings+=A.desktopReadings,S.mobileReadings+=A.mobileReadings,S.tabletReadings+=A.tabletReadings,S.age1617MaleUniqueReadings+=A.age1617MaleUniqueReadings,S.age1824MaleUniqueReadings+=A.age1824MaleUniqueReadings,S.age2534MaleUniqueReadings+=A.age2534MaleUniqueReadings,S.age3544MaleUniqueReadings+=A.age3544MaleUniqueReadings,S.age4554MaleUniqueReadings+=A.age4554MaleUniqueReadings,S.age55MaleUniqueReadings+=A.age55MaleUniqueReadings,S.age1617FemaleUniqueReadings+=A.age1617FemaleUniqueReadings,S.age1824FemaleUniqueReadings+=A.age1824FemaleUniqueReadings,S.age2534FemaleUniqueReadings+=A.age2534FemaleUniqueReadings,S.age3544FemaleUniqueReadings+=A.age3544FemaleUniqueReadings,S.age4554FemaleUniqueReadings+=A.age4554FemaleUniqueReadings,S.age55FemaleUniqueReadings+=A.age55FemaleUniqueReadings,S.uniqueReadingPercentage24Reads+=A.uniqueReadingPercentage24Reads,S.uniqueReadingPercentage2549Reads+=A.uniqueReadingPercentage2549Reads,S.uniqueReadingPercentage5074Reads+=A.uniqueReadingPercentage5074Reads,S.uniqueReadingPercentage75100Reads+=A.uniqueReadingPercentage75100Reads,A.referrers.length&&A.referrers.forEach(function(R){S.referrers.push(R)}))}),w[w.length-1].start-x[0].start==0?w[w.length-1]=S:w.push(S),l.validateData(),g.validateData();var k=moment(l.startDate).startOf("day").toDate(),y=moment(l.endDate).startOf("day").add(-1,"d").toDate();k<=x[0].start&&y>=x[0].start&&f(k,y),T=!1}}))},1e4)},function(){e.error=!0},function(){$location.path("/")})}]),app.factory("snipService",["$http","$q","$location",function(e,t){var a={},n=function(D,w){return D.id?(D.assetsMedia=[],D.assetsFacts=[],D.assetsQuestions=[],D.assetsComments=[],D.assetReferences.forEach(function(v){null!==v.assetImage||null!==v.assetText&&(5===v.assetText.type||6===v.assetText.type||7===v.assetText.type||10===v.assetText.type||13===v.assetText.type)?D.assetsMedia.push(v):null!==v.assetText&&(8===v.assetText.type?D.assetsFacts.push(v):9===v.assetText.type?D.assetsQuestions.push(v):0===v.assetText.type&&D.assetsComments.push(v))}),a[D.id+(w||"")]?(angular.copy(D,a[D.id+(w||"")]),a[D.id]):(a[D.id+(w||"")]=D,D)):D};return{getSnips:function(){var D=t.defer();return e.get(scope.apiEndpoint+"snips").then(function(w){var v=w.data;return v.forEach(function(C,f){v[f]=n(C)}),D.resolve(v),D.promise},function(){D.reject()}),D.promise},getTranslatedSnipList:function(D){var w=t.defer();return e.post(scope.apiEndpoint+"snips/translate/"+D).then(function(v){var C=v.data;C.forEach(function(f,F){C[F]=n(f,D)}),w.resolve(C)},function(){w.reject()}),w.promise},getSnipReport:function(D){var w=t.defer();return e.post(scope.apiEndpoint+"snips/report",D).then(function(v){w.resolve(v.data)},function(){w.reject()}),w.promise},getSnipsForEventCalendar:function(){var D=t.defer();return e.get(scope.apiEndpoint+"snips/events").then(function(w){var v=w.data;return v.forEach(function(C,f){v[f]=n(C)}),D.resolve(v),D.promise},function(){D.reject()}),D.promise},getSnipDetails:function(D){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+D).then(function(v){w.resolve(n(v.data))},function(){w.reject()}),w.promise},getTranslatedSnipDetails:function(D,w){var v=t.defer();return e.post(scope.apiEndpoint+"snips/"+D+"/translate/"+w).then(function(C){v.resolve(C.data)},function(){v.reject()}),v.promise},getSnipDetailsFromCache:function(D){var w=t.defer();return n[D]?w.resolve(a[D]):w.reject(),w.promise},createSnip:function(D){var w=t.defer();return e.post(scope.apiEndpoint+"snips",D).then(function(v){w.resolve(n(v.data))},function(){w.reject()}),w.promise},like:function(D){var w=t.defer();return e.put(scope.apiEndpoint+"snips/"+D+"/like").then(function(v){w.resolve(v.data)},function(){w.reject()}),w.promise},deleteSnip:function(D){var w=t.defer();return e.delete(scope.apiEndpoint+"snips/"+D).then(function(v){w.resolve()},function(){w.reject()}),w.promise},getRecommendedSnips:function(D){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+D+"/recommended").then(function(v){var C=v.data;C.forEach(function(f,F){C[F]=n(f)}),w.resolve(C)},function(){w.reject()}),w.promise},getReport:function(D){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+D+"/report").then(function(v){w.resolve(v.data)},function(){w.reject()}),w.promise},getLatestReport:function(D){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+D+"/report/latest",{ignoreLoadingBar:!0}).then(function(v){w.resolve(v.data)},function(){w.reject()}),w.promise}}}]),app.component("snipStatusHeader",{templateUrl:"/ClientApp/src/legacy-app/snip/snipStatusHeader.html",bindings:{data:"<"},controller:["$rootScope","$interpolate",function(e,t){this.web_snipStatus_lookingForAuthor=t(scope.currentScope.network.resources.web_snipStatus_lookingForAuthor)({web_common_author:scope.currentScope.network.getResourceOrKeyName("web_common_author")}),this.getSnipStatus=function(){if(!this.data.published)return 1;if(this.data.archived)return 2;if(this.data.assignedUser&&this.data.score>e.scope.globalSettings.snipShowAuthorEditStatusScoreThreshold)return 3;if(moment().diff(this.data.published,"hours")<3)return 0;if(!e.scope.currentChapter.settings.enableOhaLikes&&this.data.score>=1)return 4;if(this.data.assetReferences.length){var n=this.data.assetReferences.reduce(function(s,p){return new Date(s.published)<new Date(p.published)?s:p});if(moment().diff(n.created,"hours")<3)switch(n.type){case 2:case 5:case 6:case 7:return 5;case 8:return 6;case 9:return 7;case 0:case 1:case 10:return 8}}}}]}),app.controller("SpecialDetailController",["$scope","special","$rootScope",function(e,t,a){e.special=t,e.getTemplateUri=function(n){return"/ClientApp/src/legacy-app/template/"+n+".html"},e.specialViewOculus=Oculus.trackSpecialView({isp:t.id,n:a.scope.currentScope.network.slug,c:t.chapterSlug}),$(window).scroll(function(n){$(n.target).scrollTop()>100?$(".specialDetail-mobileNavigation-wrapper").addClass("specialDetail-mobileNavigation-wrapper-scrolled"):$(".specialDetail-mobileNavigation-wrapper").removeClass("specialDetail-mobileNavigation-wrapper-scrolled")})}]),app.directive("special",[function(){return{restrict:"E",require:"ngModel",templateUrl:"/ClientApp/src/legacy-app/special/special.html",replace:!1,scope:!0,link:function(e,t,a,n){e.getTemplateUri=function(s){return"/ClientApp/src/legacy-app/template/"+s+".html"},e.article=e.$eval(a.article),e.$watch(a.ngModel,function(){e.special=n.$viewValue})}}}]),app.controller("SpecialElasticReportController",["$scope","$rootScope","specialService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,s,p,h){AmCharts.isReady=!0;var d,o,l,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],c=[];e.report=null,e.totalUniqueViewCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var g=function(m){var D=0,w=0,v=0,C=0,f=0,F=0,T=0;$.each(m,function(S,k){D+=k.desktopImpressionCount,w+=k.tabletImpressionCount,v+=k.mobileImpressionCount,C+=k.uniqueViews,f+=k.impressionTime,F+=k.totalViewTime,T+=k.impressionCount}),e.$apply(function(){e.totalUniqueViewCount=C,e.totalImpressionTime=f,e.totalViewTime=F,e.totalImpressionCount=T});var x=D+v+w;i[0].value=Math.round(100/(x/D)),i[1].value=Math.round(100/(x/v)),i[2].value=Math.round(100/(x/w)),d.validateData()},u=function(){var m=moment(o.startDate).startOf("day").toDate(),D=moment(o.endDate).startOf("day").toDate(),w=e.report.filter(function(v){return v.day>=m&&v.day<=D});g(w),l.zoom(m,moment(D).add(1,"d").toDate()),e.$apply(function(){e.startDay=m,e.endDay=D})};e.filterChapter=function(m){m.filtered=!m.filtered,function(){var m=e.chapters.filter(function(D){return!D.filtered}).map(function(D){return D.id});e.filterDisabled=!0,a.getSpecialReport({specialId:s.id,chapterIds:m}).then(function(D){D.forEach(function(w){w.day=moment(w.day.replace("Z","")).toDate()}),e.report=D,p(function(){(function(m){c.length=0,$.each(m,function(D,w){c.push(w)}),o.validateData(),l.validateData()})(D),u(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(m){return e.filterDisabled||1===e.chapters.filter(function(D){return!D.filtered}).length&&!m.filtered},a.getSpecialInfo(s.id).then(function(m){e.special=m,a.getSpecialReport({specialId:s.id}).then(function(D){D.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=D,e.startDay=D[0].day,e.endDay=D[D.length-1].day;var w=[];$.each(m.chapterSlugs,function(v,C){w.push(n.getChapter(C))}),w=w.filter(function(v){return 2===v.managementState}),e.chapters=w,$.each(D,function(v,C){c.push(C)}),p(function(){d=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:c,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){u()}),l=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"uniqueViews",toField:"uniqueViews"}],dataProvider:c,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"uniqueViews",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),g(D)})},function(){e.error=!0})})}]),app.controller("SpecialReportController",["$scope","$rootScope","specialService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,p,h,r){AmCharts.isReady=!0;var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getSpecialInfo(s.id).then(function(l){e.special=l,a.getSpecialCalendar(s.id).then(function(g){g.forEach(function(u){u.chapter=n.getChapter(u.chapterSlug),u.report.calendar.forEach(function(b){b.start=moment(b.start.replace("Z","")).toDate(),b.end=moment(b.end.replace("Z","")).toDate()})}),l.chapterReport=g,h(function(){var u,b,I,m,D,w,v=new Set;$.each(g,function(S,k){k.active=!0,v.add(k.chapter.name)}),g.uniqueChapters=[],v.forEach(function(S){g.uniqueChapters.push(S)});var C=[],f=function(){C.length=0,$.each(g[0].report.calendar,function(S,k){C.push({start:k.start,end:k.end,viewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueViewableImpressions:0,femaleUniqueViewableImpressions:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueViewableImpressions:0,age1824MaleUniqueViewableImpressions:0,age2534MaleUniqueViewableImpressions:0,age3544MaleUniqueViewableImpressions:0,age4554MaleUniqueViewableImpressions:0,age55MaleUniqueViewableImpressions:0,age1617FemaleUniqueViewableImpressions:0,age1824FemaleUniqueViewableImpressions:0,age2534FemaleUniqueViewableImpressions:0,age3544FemaleUniqueViewableImpressions:0,age4554FemaleUniqueViewableImpressions:0,age55FemaleUniqueViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0})}),$.each(g,function(S,k){if(k.active){g[S-1]&&2===g[S-1].chapter.managementState&&2===k.chapter.managementState&&g[S-1].chapter.name!==k.chapter.name&&(g.multiChapterShipment=!0);var y=k.report.special.Id;$.each(k.report.calendar,function(M,A){A.specialId=y;var R=C[M];R.viewableImpressions+=A.viewableImpressions,R.activeTimeSeconds+=A.activeTimeSeconds,R.readings+=A.views,R.maleUniqueViewableImpressions+=A.maleViewableImpressions,R.femaleUniqueViewableImpressions+=A.femaleViewableImpressions,R.uniqueReadings+=A.uniqueViews,R.desktopReadings+=A.desktopViews,R.mobileReadings+=A.mobileViews,R.tabletReadings+=A.tabletViews,R.age1617MaleUniqueViewableImpressions+=A.age1617MaleViewableImpressions,R.age1824MaleUniqueViewableImpressions+=A.age1824MaleViewableImpressions,R.age2534MaleUniqueViewableImpressions+=A.age2534MaleViewableImpressions,R.age3544MaleUniqueViewableImpressions+=A.age3544MaleViewableImpressions,R.age4554MaleUniqueViewableImpressions+=A.age4554MaleViewableImpressions,R.age55MaleUniqueViewableImpressions+=A.age55MaleViewableImpressions,R.age1617FemaleUniqueViewableImpressions+=A.age1617FemaleViewableImpressions,R.age1824FemaleUniqueViewableImpressions+=A.age1824FemaleViewableImpressions,R.age2534FemaleUniqueViewableImpressions+=A.age2534FemaleViewableImpressions,R.age3544FemaleUniqueViewableImpressions+=A.age3544FemaleViewableImpressions,R.age4554FemaleUniqueViewableImpressions+=A.age4554FemaleViewableImpressions,R.age55FemaleUniqueViewableImpressions+=A.age55FemaleViewableImpressions})}}),I.validateData(),m.validateData(),D.validateData(),w.validateData()},F=g.summary={};u=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:C,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:C,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSpecial_amountOfViews"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),I=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:c,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),m=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:i,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(S,k){return-1*S.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(S){return S<0?-1*S+"":S+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),D=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),w=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[F],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:i,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:i,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:i,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:i,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var x=function(){var S=moment(u.startDate).startOf("day").toDate(),k=moment(u.endDate).startOf("day").add(-1,"d").toDate();b.zoom(S,moment(k).add(1,"d").toDate()),function(S,k){F.viewableImpressions=0,F.billableViewableImpressions=0,F.activeTimeSeconds=0,F.readings=0,F.uniqueReadings=0,F.uniqueReadingsHavingViewableImpressions=0,F.uniqueReadingPercentageReads=0,F.maleUniqueViewableImpressions=0,F.femaleUniqueViewableImpressions=0,F.desktopReadings=0,F.mobileReadings=0,F.tabletReadings=0,F.age1617MaleUniqueViewableImpressions=0,F.age1824MaleUniqueViewableImpressions=0,F.age2534MaleUniqueViewableImpressions=0,F.age3544MaleUniqueViewableImpressions=0,F.age4554MaleUniqueViewableImpressions=0,F.age55MaleUniqueViewableImpressions=0,F.age1617FemaleUniqueViewableImpressions=0,F.age1824FemaleUniqueViewableImpressions=0,F.age2534FemaleUniqueViewableImpressions=0,F.age3544FemaleUniqueViewableImpressions=0,F.age4554FemaleUniqueViewableImpressions=0,F.age55FemaleUniqueViewableImpressions=0,F.uniqueReadingPercentage24Reads=0,F.uniqueReadingPercentage2549Reads=0,F.uniqueReadingPercentage5074Reads=0,F.uniqueReadingPercentage75100Reads=0;var y=0,M=0,A=0,R=0,U=0,V=0,q=0,_=0,B=0,P=0,E=0,L=0,z=0,Y=0,j=0;F.start=S,F.end=k,$.each(C,function(K,Q){var G=new Date(Q.start);G<S||G>k||(F.viewableImpressions+=Q.viewableImpressions,F.activeTimeSeconds+=Q.activeTimeSeconds,F.readings+=Q.readings,F.maleUniqueViewableImpressions+=Q.maleUniqueViewableImpressions,F.femaleUniqueViewableImpressions+=Q.femaleUniqueViewableImpressions,F.uniqueReadings+=Q.uniqueReadings,y+=Q.desktopReadings,M+=Q.mobileReadings,A+=Q.tabletReadings,R+=Q.age1617MaleUniqueViewableImpressions,U+=Q.age1824MaleUniqueViewableImpressions,V+=Q.age2534MaleUniqueViewableImpressions,q+=Q.age3544MaleUniqueViewableImpressions,_+=Q.age4554MaleUniqueViewableImpressions,B+=Q.age55MalUniqueeViewableImpressions,P+=Q.age1617FemaleUniqueViewableImpressions,E+=Q.age1824FemaleUniqueViewableImpressions,L+=Q.age2534FemaleUniqueViewableImpressions,z+=Q.age3544FemaleUniqueViewableImpressions,Y+=Q.age4554FemaleUniqueViewableImpressions,j+=Q.age55FemaleUniqueViewableImpressions)});var W=y+M+A;F.desktopReadings=Math.round(100/(W/y)),F.mobileReadings=Math.round(100/(W/M)),F.tabletReadings=Math.round(100/(W/A)),F.maleUniqueViewableImpressions=Math.round(F.maleUniqueViewableImpressions),F.femaleUniqueViewableImpressions=Math.round(F.femaleUniqueViewableImpressions),c[0].value=F.femaleUniqueViewableImpressions,c[1].value=F.maleUniqueViewableImpressions;var N=F.viewableImpressions-(R+U+V+q+_+B+P+E+L+z+Y+j);N>100&&(R+=N*t.scope.globalSettings.reportAverageAge1617Male,U+=N*t.scope.globalSettings.reportAverageAge1824Male,V+=N*t.scope.globalSettings.reportAverageAge2534Male,q+=N*t.scope.globalSettings.reportAverageAge3544Male,_+=N*t.scope.globalSettings.reportAverageAge4554Male,B+=N*t.scope.globalSettings.reportAverageAge55Male,P+=N*t.scope.globalSettings.reportAverageAge1617Female,E+=N*t.scope.globalSettings.reportAverageAge1824Female,L+=N*t.scope.globalSettings.reportAverageAge2534Female,z+=N*t.scope.globalSettings.reportAverageAge3544Female,Y+=N*t.scope.globalSettings.reportAverageAge4554Female,j+=N*t.scope.globalSettings.reportAverageAge55Female),F.age1617MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/R)),F.age1824MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/U)),F.age2534MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/V)),F.age3544MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/q)),F.age4554MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/_)),F.age55MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/B)),F.age1617FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/P)),F.age1824FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/E)),F.age2534FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/L)),F.age3544FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/z)),F.age4554FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/Y)),F.age55FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/j)),d[0].male=Math.round(-1*F.age1617MaleUniqueViewableImpressions),d[1].male=Math.round(-1*F.age1824MaleUniqueViewableImpressions),d[2].male=Math.round(-1*F.age2534MaleUniqueViewableImpressions),d[3].male=Math.round(-1*F.age3544MaleUniqueViewableImpressions),d[4].male=Math.round(-1*F.age4554MaleUniqueViewableImpressions),d[5].male=Math.round(-1*F.age55MaleUniqueViewableImpressions),d[0].female=Math.round(F.age1617FemaleUniqueViewableImpressions),d[1].female=Math.round(F.age1824FemaleUniqueViewableImpressions),d[2].female=Math.round(F.age2534FemaleUniqueViewableImpressions),d[3].female=Math.round(F.age3544FemaleUniqueViewableImpressions),d[4].female=Math.round(F.age4554FemaleUniqueViewableImpressions),d[5].female=Math.round(F.age55FemaleUniqueViewableImpressions),o[0].value=F.desktopReadings,o[1].value=F.mobileReadings,o[2].value=F.tabletReadings,I.validateData(),m.validateData(),D.validateData(),w.validateData(),e.$apply()}(S,k)};u.addListener("zoomed",function(S){x()}),e.toggleChapter=function(S){$.each(g,function(k,y){y.chapter.name===S&&(y.active=!y.active)}),h(function(){f(),x()},50)},f(),b.validateNow(),u.validateNow(),u.setDefaultPeriod(),x(),u.zoom(new Date(l.start),new Date)},function(){e.error=!0})})},function(){r.path("/")});var c=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:i,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("specialService",["$http","$q","$rootScope",function(e,t,a){var n=[],s=[];return a.$on("$locationChangeSuccess",function(){n.length=0,s.length=0}),{getSpecial:function(o){var l=t.defer();return o?e.get(scope.apiEndpoint+"specials/"+o).then(function(g){l.resolve(g.data)},function(){l.reject()}):n.length>0?l.resolve(n.splice(0,1)[0]):s.push(l),l.promise},getSpecialInfo:function(o){var l=t.defer();return e.get(scope.apiEndpoint+"specials/"+o+"/ReportInfo").then(function(g){l.resolve(g.data)},function(){l.reject()}),l.promise},getSpecialCalendar:function(o){var l=t.defer();return e.get(scope.apiEndpoint+"specials/"+o+"/ReportCalendar").then(function(g){l.resolve(g.data)},function(){l.reject()}),l.promise},resolve:function(o,l){var g=t.defer();return s.length>o&&(o=s.length),e.get(scope.apiEndpoint+"specials/"+o+"/"+l).then(function(u){g.resolve(u.data),n.length=0,n.push.apply(n,u.data),s.forEach(function(b){n.length>0?b.resolve(n.splice(0,1)[0]):b.reject()}),s.length=0},function(){g.reject()}),g.promise},getActiveSpecials:function(){var o=t.defer();return e.get(scope.apiEndpoint+"specials/sections").then(function(l){o.resolve(l.data)},function(){o.reject()}),o.promise},getSpecialReport:function(o){var l=t.defer();return e.post(scope.apiEndpoint+"specials/report",o).then(function(g){l.resolve(g.data)},function(){l.reject()}),l.promise}}}]),app.controller("SponsoredArticleDetailController",["$rootScope","$scope","snipService","sponsoredArticleService","parserService","$location","sponsoredArticle","$timeout","$uibModal",function(e,t,a,n,s,p,h,r,i){t.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,t.$on("$viewContentLoaded",function(){r(function(){t.viewContentLoaded=!0})});var c,b,d=function(){c=t.sponsoredArticle.assetReferences.reduce(function(b,I,m){return b[I.guid]=I,b},{})};if(t.resolveAsset=function(b){return c[b]},$(window).scroll(function(b){$(b.target).scrollTop()>100?$(".sponsoredArticleDetail-mobileNavigation-wrapper").addClass("sponsoredArticleDetail-mobileNavigation-wrapper-scrolled"):$(".sponsoredArticleDetail-mobileNavigation-wrapper").removeClass("sponsoredArticleDetail-mobileNavigation-wrapper-scrolled")}),t.recommendedArticles=[],t.recommendedArticlePairs=[],t.recommendedSnips=[],t.assetsMedia=[],t.assetsFacts=[],t.assetsQuestions=[],t.assetsComments=[],t.$parent&&(t.$parent.sponsoredArticleUpdater||t.$parent.$parent.sponsoredArticleUpdater))t.sponsoredArticleUpdater=!0,(t.$parent.sponsoredArticleUpdater?t.$parent:t.$parent.$parent).$on("articleUpdate",function(b,I){t.sponsoredArticle=I,s.postProcessHtml(t.sponsoredArticle),t.sponsoredArticle.detailsLoaded=!0,d(),t.$broadcast("$$rebind::refresh")});else{t.$watch(function(){return"sponsoredArticle.detailsLoaded"},function(b){b&&d()});var l=h.id;if(n.getRecommendedArticles(l).then(function(b){if(b.length){[].push.apply(t.recommendedArticles,b);for(var I=0;I<t.recommendedArticles.length;I+=2){var m=[];m.push(t.recommendedArticles[I]),t.recommendedArticles.length>I+1&&m.push(t.recommendedArticles[I+1]),t.recommendedArticlePairs.push(m)}}}),t.sponsoredArticle=h,s.postProcessHtml(t.sponsoredArticle),a.getRecommendedSnips(l).then(function(b){t.recommendedSnips=b}),(b=window.navigator.userAgent).indexOf(" Android ")>-1&&b.indexOf("Version/")>-1&&parseFloat((b.match("Android ([0-9.]+)")||[])[1])<=4.4){var u=$(window).height();$(".app-mobile .sponsoredArticleDetail-wrapper").css("height",u+"px"),$(".app-desktop .sponsoredArticleDetail-wrapper").css("height",u+"px")}}t.assetImageFocuspointDialog=function(b){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return b}}})},t.share=function(){!window.plugins||!window.plugins.socialsharing||(window._paq&&_paq.push(["trackEvent","Conversion","StartShareSponsoredArticle","SponsoredArticleDetail"]),window.plugins.socialsharing.shareWithOptions({message:(t.sponsoredArticle.heading?t.sponsoredArticle.heading+": ":"")+t.sponsoredArticle.text+" "+p.absUrl()},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessShareSponsoredArticle","SponsoredArticleDetail"])}))}}]),app.controller("SponsoredArticleEditController",["$scope","sponsoredArticleService","metaService","$state","authService","fileUploadService","$location","$timeout","$uibModal","$rootScope","proseMirrorEditorService","editorCommentSponsoredArticleService","editorAssetsService","spellingService","backendHubProxy",function(e,t,a,n,s,p,h,r,i,c,d,o,l,g,u){e.initializedMobile=e.mobile,e.enableHighQualityImage=c.scope.network.settings.configurations.enableHighQualityImage,e.revision={coverAssetImages:[],texts:[{heading:"",text:""}],chapterSlug:null},e.$on("$destroy",function(){a.setFavicon()}),e.sponsoredArticleUpdater=!0;var D,b=n.params.id,I="sp_"+b+"_"+c.scope.currentScope.chapter.id,m=u("editorHub"),w=!1;e.sponsoredArticle={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0;var v=c.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return v};var C=!1;c.$on("$stateChangeStart",function(P,E){C?P.preventDefault():e.changed&&!confirm(v)?(C=!0,P.preventDefault(),w=!1,r(function(){C=!1},1e3)):(e.changed=!1,w&&(m.invoke("leaveGroup",I),d.closeConnection(),m.stop(),w=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0;var F=function(P){e.sponsoredArticle=P;var E=k(P);E?e.revision=E:P.revisions.push(e.revision),e.revision.texts.length||(E.texts=[{heading:"",text:""}]),D=S(P),r(function(){e.textCarousel||(e.textCarousel=$("#sponsoredArticleEdit-text-wrapper").find(".sponsoredArticleEdit-text-carousel"),e.textCarousel.on("afterChange",function(L,z){e.textSlickIndex=z.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#sponsoredArticleEdit-cover-wrapper").find(".sponsoredArticleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(L,z){e.coverAssetSlickIndex=z.currentSlide})),e.revision.texts.push({}),r(function(){e.revision.texts.splice(e.revision.texts.length-1,1),r(function(){e.textSlick=e.textCarousel.slick({dots:!0,initialSlide:e.textSlickIndex})},100)}),e.revision.coverAssetImages.push({}),r(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),r(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0,initialSlide:e.coverAssetSlickIndex})},100)})})};e.addTextVariant=function(){e.textSlick=e.textCarousel.slick("unslick"),r(function(){e.revision.texts.push({heading:"",text:""}),r(function(){e.textSlick=e.textCarousel.slick({dots:!0}),e.textSlick.slick("slickGoTo",e.revision.texts.length-1)})})},e.delTextVariant=function(){var P=e.textSlick.slick("slickCurrentSlide");e.textSlick.slick("slickRemove",P-1),e.revision.texts.splice(P,1),e.textSlick.slick("unslick"),e.revision.texts.push({}),r(function(){e.revision.texts.splice(e.revision.texts.length-1,1),r(function(){e.textSlick=e.textCarousel.slick({dots:!0}),P>0&&(e.textSlick.slick("slickGoTo",P-1),e.textSlickIndex=P-1)},100)})},e.mobileEditorFocused=!1,e.focusMobileEditor=function(){e.mobileEditorFocused=!0},e.blurMobileEditor=function(){e.mobileEditorFocused=!1},e.coverAssetCarousel=null,e.coverAssetSlick=null,e.delCoverAssetVariant=function(){if(e.revision.coverAssetImages.length>1){var P=e.coverAssetSlick.slick("slickCurrentSlide");e.coverAssetSlick.slick("slickRemove",P-1),e.revision.coverAssetImages.splice(P,1),e.coverAssetSlick.slick("unslick"),e.revision.coverAssetImages.push({}),r(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),r(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),P>0&&(e.coverAssetSlick.slick("slickGoTo",P-1),e.coverAssetSlickIndex=P-1)})})}},e.pickCoverAsset=function(P){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},resultCallback:function(){return function(E){e.coverAssetSlick.slick("unslick"),P&&e.revision.coverAssetImages.length?e.revision.coverAssetImages[0]=E.assetImage:e.revision.coverAssetImages.push(E.assetImage),r(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),e.coverAssetSlick.slick("slickGoTo",e.revision.coverAssetImages.length-1)})}},sponsoredArticle:function(){return e.sponsoredArticle}}})},e.assetDialog=function(){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return T},sponsoredArticle:function(){return e.sponsoredArticle}}})};var T=function(P){r(function(){e.insertAsset(P)},500)};e.insertAsset=function(P){if($("#assetModal").modal("hide"),e.initializedMobile){if(e.initializedMobile){var E=$("#sponsoredArticleEdit-editor-mobile")[0],L=E.selectionStart,z=E.selectionEnd,Y=E.value,j=Y.substring(0,L),W=Y.substring(z,Y.length),N="\n!["+P.guid+"]\n";E.value=j+N+W,r(function(){E.selectionStart=E.selectionEnd=L+N.length,E.focus()})}}else{if(!e.editor)return;e.editor.replaceSelection("\n!["+P.guid+"]\n"),setTimeout(function(){e.editor.focus()},600)}},e.save=function(){for(var P=angular.copy(e.sponsoredArticle),E=e.revision.coverAssetImages.map(function(z){return z.id}),L=0;L<E.length;L++)if(E.lastIndexOf(E[L])>L)return void i.open({templateUrl:"/ClientApp/src/legacy-app/article/noDuplicateCoverAssetDialog.html"});P.texts=e.revision.texts,P.coverAssetImages=e.revision.coverAssetImages,P.summary=P.revisions[0].summary,P.jsonDocument=d.getDocument(),P.HtmlDocument=d.getHtmlDocument(),t.updateSponsoredArticle(P).then(function(z){e.changed=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),F(z.data)},function(){i.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})})},e.submit=function(){e.editForm.$submitted=!0},e.publish=function(P){if(e.editForm.$submitted=!0,P){var E=angular.copy(e.sponsoredArticle);t.publishSponsoredArticle(E).then(function(L){e.changed=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),F(L.data)},function(){})}},e.preview=!1,e.togglePreview=function(){if(e.preview=!e.preview,e.preview){var P=angular.copy(e.sponsoredArticle);P.content=d.getHtmlDocument(),P.assetReferences=P.assetReferences,P.text=e.revision.texts[0].text,P.heading=e.revision.texts[0].heading,P.summary=e.revision.summary,P.sponsored=!0,e.revision.coverAssetImages.length&&(P.coverAssetReference=P.assetReferences.filter(function(E){return E.assetImage&&E.assetImage.id===e.revision.coverAssetImages[0].id})[0]),r(function(){e.$broadcast("articleUpdate",P)},500)}};var S=function(P){var E=k(P);return angular.toJson(E.texts)+angular.toJson(E.coverAssetImages)+E.summary+E.jsonDocument},k=function(P){var E=e.scope.currentScope.chapter.slug,L=P.revisions.filter(function(Y){return Y.chapterSlug===E});if(L.length)return L[0];var z=P.revisions.filter(function(Y){return null===Y.chapterSlug});return z.length?z[0]:void 0},y=function(P,E){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},resultCallback:function(){return function(L){if(E){d.setFocus();var z=[];$.each(L,function(Y,j){z.push({guid:j.guid,type:j.assetImage?j.assetImage.type:j.assetText.type})}),E(z)}}},sponsoredArticle:function(){return e.sponsoredArticle}}})},M=function(P,E){i.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return E},messageHolder:function(){return new MessageHolder(e.sponsoredArticle)},sourceService:function(){return o}}})},A=function(P,E,L){i.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return L},onAddedCallback:function(){return E},messageHolder:function(){return new MessageHolder(e.sponsoredArticle)},chainComments:function(){return P},sourceService:function(){return o}}})},R=function(P){i.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return P}}})},U=function(P,E){i.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return E}}})},V=function(P){return l.getAsset(P,e.sponsoredArticle.assetReferences)},q=function(P){r(function(){k(e.sponsoredArticle).jsonDocument=P,e.numberOfWords=g.countWords(d.getHtmlDocument())})};$(".sponsoredArticleEdit-wrapper").scroll(function(){!function P(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),m.on("broadcastSummary",function(P){e.revision.summary=P}),m.on("broadcastHeading",function(P){e.revision.texts[P.indexPosition].heading=P.heading}),m.on("broadcastAddVariant",function(){e.addTextVariant(!1)}),m.on("broadcastDeleteVariant",function(P){e.delTextVariant(!1,P.indexPosition)}),m.on("broadcastTitle",function(P){e.revision.texts[P.indexPosition].text=P.title}),m.start(function(){m.invoke("joinGroup",I)}),e.leaveEditor=function(){w=!0},e.blurHeading=function(P){m.invoke("updatingHeading",{groupName:I,heading:e.revision.texts[P].heading,indexPosition:P})},e.blurTitle=function(P){m.invoke("updatingTitle",{groupName:I,title:e.revision.texts[P].text,indexPosition:P})},e.blurSummary=function(){m.invoke("updatingSummary",{groupName:I,summary:e.revision.summary})},t.getSponsoredArticleEdit(b).then(function(P){e.loading=!1,F(P),d.init({docID:"sparticle_"+P.id+"_"+scope.currentChapter.slug,assetDlgFactory:y,commentCreationDlgFactory:M,commentMgmtDlgFactory:A,initialDocument:k(P).jsonDocument,initialAssetReferences:P.assetReferences,createLinkFactory:R,callToActionDlgFactory:U,assetResolver:V,onNewStateFactory:q,onLoadTransactionCallback:q,languageCode:c.scope.currentScope.network.settings.languageCode}),a.setFavicon(!0),e.$watch(function(){return S(e.sponsoredArticle)},function(P){e.changed=D!==P})},function(){h.path("/")})}]),app.controller("SponsoredArticleListController",["$scope","$timeout","$rootScope","sponsoredArticleService",function(e,t,a,n){n.getSponsoredArticles().then(function(s){e.sponsoredArticles=s,t(function(){a.$emit("lazyImg:refresh")})})}]),app.factory("sponsoredArticleService",["$http","$q",function(e,t){var a={};return{getSponsoredArticles:function(){var g=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles").then(function(u){g.resolve(u.data)}),g.promise},getSponsoredArticle:function(g){var u=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+g).then(function(b){u.resolve(b.data)}),u.promise},getSponsoredArticlesForEventCalendar:function(){var g=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/events").then(function(u){var b=u.data;b.forEach(function(I,m){b[m]=function(g){if(!g.articleListDisplayableType||2!==g.articleListDisplayableType)return g;if(g.coverAssetReference||(g.coverAssetReference={assetImage:{assetImageUrl:scope.globalSettings.blobStorageCdnUrl+"/"+scope.globalSettings.blobStorageContainerNameImage+"/dummy.jpg",source:scope.currentScope.network.name,text:"Symbolbild",cache:0}}),a[g.id]){var u=a[g.id],b=function(g){return g&&a[g]?{revisionTestId:a[g].revisionTestId,heading:a[g].heading,text:a[g].text,coverAsset:angular.copy(a[g].coverAsset)}:{}}(u.id);return!u.detailsLoaded||g.detailsLoaded?angular.copy(g,u):angular.extend(u,g),angular.extend(u,b),g.assets&&g.coverAsset&&g.coverAsset.guid&&g.assets.forEach(function(I){if(I.guid===g.coverAsset.guid)return u.coverAsset=I,!1}),u}return a[g.id]=g,g}(I)}),g.resolve(b)},function(){g.reject()}),g.promise},getSponsoredArticleEdit:function(g){var u=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+g+"/edit").then(function(b){u.resolve(b.data)},function(b){u.reject()}),u.promise},getRecommendedArticles:function(g){var u=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+g+"/recommendedarticles").then(function(b){u.resolve(b.data)}),u.promise},getSponsoredArticleParse:function(g,u){var b=t.defer();return e.post(scope.apiEndpoint+"sponsoredArticles/"+g+"/parse",u).then(function(I){b.resolve(I.data)},function(){b.reject()}),b.promise},updateSponsoredArticle:function(g){var u=t.defer();return e.put(scope.apiEndpoint+"sponsoredArticles",g).then(function(b){angular.copy(b.data,g),u.resolve(b)},function(){u.reject()}),u.promise},publishSponsoredArticle:function(g){var u=t.defer();return e.put(scope.apiEndpoint+"sponsoredArticles/"+g.id+"/publish",g).then(function(b){u.resolve(b)},function(){u.reject()}),u.promise}}}]),app.controller("SponsoredArticleCampaignElasticReportController",["$scope","$rootScope","sponsoredArticleCampaignService","formatterService","scopeService","$timeout","$location","$stateParams",function(e,t,a,n,s,p,h,r){var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";e.dateFormatString=n.getShortDateFormatString();var d,o,l,g,c=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],u={impressions:0,readings:0,billableImpressions:0,uniqueImpressions:0,uniqueReadings:0,uniqueReadingPercentageReads:0,uniqueViewableImpressions:0,activeTimeSeconds:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,end:moment(new Date).startOf("day").toDate()},b=[],I=[],m=[];a.GetSponsoredArticleReport(r.pin).then(function(D){var w=D.chapterReports,f=function(){(d=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",marginRight:80,marginTop:7,path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:b,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).validateData(),d.addListener("zoomed",function(){var S,k;u.start=moment(d.startDate).startOf("day").toDate(),u.end=moment(d.endDate).startOf("day").toDate(),o.zoom(u.start,moment(u.end).startOf("day").add(1,"d").toDate()),S=moment(u.start).startOf("day").add(1,"d").toDate(),k=moment(u.end).startOf("day").add(2,"d").toDate(),$.each(w,function(y,M){M.chapter=s.getChapter(M.chapterSlug),a.getChapterReport({chapterId:M.chapter.id,start:S,end:k,pin:D.sponsoredArticleCampaign.pin,sponsoredArticleCampaignId:D.sponsoredArticleCampaign.id}).then(function(A){M.reports=A,x()}),d.validateData(),o.validateData(),l.validateData(),g.validateData()})}),o=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:"Gesamt",color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"readings",toField:"readings"}],dataProvider:I,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:t.scope.currentScope.network.resources.web_report_viewableImpressions+": <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:t.scope.currentScope.network.resources.web_reportArticle_articleCallsHeading,percentHeight:30,stockGraphs:[{valueField:"readings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:t.scope.currentScope.network.resources.web_report_views+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),l=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:c,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),g=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[u],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:i,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:i,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:i,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:i,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}})};AmCharts.isReady?f():AmCharts.ready(f),e.sponsoredArticleCampaign=D.sponsoredArticleCampaign,e.sponsoredArticleCampaign.report=w,$.each(w,function(S,k){k.active=!0,k.variants.length&&$.each(k.variants,function(y,M){M.viewableImpressions>0&&(w.hasVariants=!0,M.hasViews=!0)})});for(var F=new Date(D.sponsoredArticleCampaign.start);F<=moment(new Date).startOf("day").add(1,"d").toDate();F.setDate(F.getDate()+1)){var T={start:new Date(F),viewableImpressions:0,readings:0};m[T.start.toDateString()]=T,I.push(T)}u.start=moment(D.sponsoredArticleCampaign.start).startOf("day").toDate(),e.summary=u;var x=function(){if(w.hasVariants=!1,$.each(I,function(k,y){y.readings=0,y.viewableImpressions=0}),u.impressions=0,u.billableImpressions=0,u.readings=0,u.billableReadings=0,u.uniqueImpressions=0,u.uniqueReadings=0,u.uniqueReadingPercentageReads=0,u.uniqueViewableImpressions=0,u.activeTimeSeconds=0,u.uniqueReadingsHavingViewableImpressions=0,u.uniqueReadingPercentage24Reads=0,u.uniqueReadingPercentage2549Reads=0,u.uniqueReadingPercentage5074Reads=0,u.uniqueReadingPercentage75100Reads=0,c[0].value=0,c[1].value=0,c[2].value=0,$.each(w,function(k,y){if(y.active){var M=0;$.each(y.reports,function(A,R){var U=!1;$.each(D.sponsoredArticleCampaign.sponsoredArticles,function(V,q){q.id===R.sponsoredArticleId&&q.active&&(U=!0)}),U&&(R.billableImpressionCalendar.length&&$.each(R.billableImpressionCalendar,function(V,q){m[new Date(q.day).toDateString()].viewableImpressions+=q.data}),R.readingCalendar.length&&$.each(R.readingCalendar,function(V,q){m[new Date(q.day).toDateString()].readings+=q.data}),u.impressions+=R.impressions,u.billableImpressions+=R.billableImpressions,u.readings+=R.readings,u.billableReadings+=R.billableReadings,u.uniqueReadings+=R.uniqueReadings,u.uniqueReadingsHavingViewableImpressions+=R.uniqueReadingsHavingViewableImpressions,u.uniqueImpressions+=R.uniqueImpressions,u.uniqueReadingPercentageReads+=R.uniqueReadingPercentageReads,u.activeTimeSeconds+=R.activeTimeSeconds,u.uniqueReadingPercentage24Reads+=R.uniqueReadingPercentage24Reads,u.uniqueReadingPercentage2549Reads+=R.uniqueReadingPercentage2549Reads,u.uniqueReadingPercentage5074Reads+=R.uniqueReadingPercentage5074Reads,u.uniqueReadingPercentage75100Reads+=R.uniqueReadingPercentage75100Reads,M+=R.desktopCount+R.mobileCount+R.tabletCount,c[0].value+=R.desktopCount,c[1].value+=R.mobileCount,c[2].value+=R.tabletCount)}),c[0].value=Math.round(c[0].value/M*100),c[1].value=Math.round(c[1].value/M*100),c[2].value=Math.round(c[2].value/M*100),y.variants.length&&$.each(y.variants,function(A,R){R.viewableImpressions>0&&(w.hasVariants=!0,R.hasViews=!0)})}}),w.length>1){var S=w.filter(function(k){return k.active}).length;c[0].value=Math.round(c[0].value/S),c[1].value=Math.round(c[1].value/S),c[2].value=Math.round(c[2].value/S)}d.validateData(),o.validateData(),l.validateData(),g.validateData()};e.toggleChapter=function(S){$.each(w,function(k,y){null!==y.chapter&&y.chapter.name===S&&(y.active=!y.active)}),x()},e.toggleReport=function(S){$.each(D.sponsoredArticleCampaign.sponsoredArticles,function(k,y){y.guid===S.guid&&(y.active=!y.active)}),x()},$.each(w,function(S,k){k.chapter=s.getChapter(k.chapterSlug),a.getChapterReport({chapterId:k.chapter.id,start:D.sponsoredArticleCampaign.start,end:moment(new Date).startOf("day").add(2,"d").toDate(),pin:D.sponsoredArticleCampaign.pin,sponsoredArticleCampaignId:D.sponsoredArticleCampaign.id}).then(function(y){k.reports=y,x(),$.each(D.sponsoredArticleCampaign.sponsoredArticles,function(M,A){A.active=!0}),$.each(I,function(M,A){b.push({start:A.start,viewableImpressions:A.viewableImpressions})})}),d.validateData(),o.validateData(),l.validateData(),g.validateData()})})}]),app.factory("sponsoredArticleCampaignService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,s,p){var h=[],i=function(){var g=t.defer();return h.length>0?g.resolve(h):e.get(scope.apiEndpoint+"SponsoredArticleCampaigns").then(function(u){angular.copy(u.data,h),g.resolve(h)},function(){g.reject()}),g.promise};function c(g){var u=null;return $.each(h,function(b,I){if(I.pin===g)return u=I,!1}),u}return{sponsoredArticleCampaigns:h,getsponsoredArticleCampaigns:i,getreportSponsoredArticleCalendar:function(g){var u=t.defer();return e.get(scope.apiEndpoint+"SponsoredArticleCampaigns/"+g+"/ReportSponsoredArticleCalendar").then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getsponsoredArticleCampaignByPin:function(g){var u=t.defer();if(h.length>0){var b=c(g);b?u.resolve(b):e.get(scope.apiEndpoint+"/SponsoredArticleCampaigns"+g).then(function(I){u.resolve(I.data)},function(){u.reject()})}else i().then(function(){var I=c(g);I?u.resolve(I):e.get(scope.apiEndpoint+"sponsoredArticleCampaigns/"+g).then(function(m){u.resolve(m.data)},function(){u.reject()})},function(){u.reject()});return u.promise},GetSponsoredArticleReport:function(g){var u=t.defer();return e.get(scope.apiEndpoint+"SponsoredArticleCampaigns/"+g+"/Elastic").then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getChapterReport:function(g){var u=t.defer();return e.post(scope.apiEndpoint+"SponsoredArticleCampaigns/chapterReport",g).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise}}}]),app.controller("sponsoredArticleCampaignReportController",["$scope","$rootScope","sponsoredArticleCampaignService","articleService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,p,h,r,i){AmCharts.isReady=!0;var c=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getsponsoredArticleCampaignByPin(p.pin).then(function(g){e.sponsoredArticleCampaign=g,a.getreportSponsoredArticleCalendar(g.pin).then(function(u){u.forEach(function(b){b.chapter=s.getChapter(b.chapterSlug),b.reports.forEach(function(I){I.calendar.forEach(function(m){m.start=moment(m.start.replace("Z","")).toDate(),m.end=moment(m.end.replace("Z","")).toDate()})})}),g.report=u,r(function(){var b,I,m,D,w,v,C=new Set;$.each(u,function(k,y){y.active=!0,C.add(y.chapter.name)}),u.uniqueChapters=[],C.forEach(function(k){u.uniqueChapters.push(k)}),$.each(g.sponsoredArticles,function(k,y){y.reportActive=!0});var f=[],F=function(){f.length=0,u.hasVariants=!1,$.each(u[0].reports[0].calendar,function(k,y){f.push({start:y.start,end:y.end,viewableImpressions:0,billableViewableImpressions:0,uniqueViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueViewableImpressions:0,femaleUniqueViewableImpressions:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueViewableImpressions:0,age1824MaleUniqueViewableImpressions:0,age2534MaleUniqueViewableImpressions:0,age3544MaleUniqueViewableImpressions:0,age4554MaleUniqueViewableImpressions:0,age55MaleUniqueViewableImpressions:0,age1617FemaleUniqueViewableImpressions:0,age1824FemaleUniqueViewableImpressions:0,age2534FemaleUniqueViewableImpressions:0,age3544FemaleUniqueViewableImpressions:0,age4554FemaleUniqueViewableImpressions:0,age55FemaleUniqueViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0})}),$.each(u,function(k,y){y.active&&(u[k-1]&&2===u[k-1].chapter.managementState&&2===y.chapter.managementState&&u[k-1].chapter.name!==y.chapter.name&&(u.multiChapterShipment=!0),$.each(y.reports,function(M,A){A.variants&&(g.report.hasVariants=!0,$.each(A.variants,function(R,U){U.viewableImpressions>0&&(U.hasViews=!0)}))}),$.each(y.reports,function(M,A){if(g.sponsoredArticles[M].reportActive){var R=A.sponsoredArticle.Id;$.each(A.calendar,function(U,V){V.sponsoredArticleId=R,f[U].uniqueViewableImpressions+=V.uniqueViewableImpressions,f[U].viewableImpressions+=V.viewableImpressions,f[U].billableViewableImpressions+=V.billableViewableImpressions,f[U].activeTimeSeconds+=V.activeTimeSeconds,f[U].readings+=V.readings,f[U].uniqueReadingPercentageReads+=V.uniqueReadingPercentageReads,f[U].maleUniqueViewableImpressions+=V.maleUniqueViewableImpressions,f[U].femaleUniqueViewableImpressions+=V.femaleUniqueViewableImpressions,f[U].uniqueReadings+=V.uniqueReadings,f[U].uniqueReadingsHavingViewableImpressions+=V.uniqueReadingsHavingViewableImpressions,f[U].uniqueReadingPercentage24Reads+=V.uniqueReadingPercentage24Reads,f[U].uniqueReadingPercentage2549Reads+=V.uniqueReadingPercentage2549Reads,f[U].uniqueReadingPercentage5074Reads+=V.uniqueReadingPercentage5074Reads,f[U].uniqueReadingPercentage75100Reads+=V.uniqueReadingPercentage75100Reads,f[U].desktopReadings+=V.desktopReadings,f[U].mobileReadings+=V.mobileReadings,f[U].tabletReadings+=V.tabletReadings,f[U].age1617MaleUniqueViewableImpressions+=V.age1617MaleUniqueViewableImpressions,f[U].age1824MaleUniqueViewableImpressions+=V.age1824MaleUniqueViewableImpressions,f[U].age2534MaleUniqueViewableImpressions+=V.age2534MaleUniqueViewableImpressions,f[U].age3544MaleUniqueViewableImpressions+=V.age3544MaleUniqueViewableImpressions,f[U].age4554MaleUniqueViewableImpressions+=V.age4554MaleUniqueViewableImpressions,f[U].age55MaleUniqueViewableImpressions+=V.age55MaleUniqueViewableImpressions,f[U].age1617FemaleUniqueViewableImpressions+=V.age1617FemaleUniqueViewableImpressions,f[U].age1824FemaleUniqueViewableImpressions+=V.age1824FemaleUniqueViewableImpressions,f[U].age2534FemaleUniqueViewableImpressions+=V.age2534FemaleUniqueViewableImpressions,f[U].age3544FemaleUniqueViewableImpressions+=V.age3544FemaleUniqueViewableImpressions,f[U].age4554FemaleUniqueViewableImpressions+=V.age4554FemaleUniqueViewableImpressions,f[U].age55FemaleUniqueViewableImpressions+=V.age55FemaleUniqueViewableImpressions})}}))}),I.validateData(),b.validateData()},T=u.summary={};b=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:f,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),I=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:c,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:f,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSponsoredArticle_uniqueReadersAmount"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),m=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,marginLeft:2,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),D=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:c,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(k){return-1*k.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(k){return k<0?-1*k+"":k+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),w=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:l,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:c,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),v=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[T],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:c,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:c,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:c,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:c,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var S=function(){var k=moment(b.startDate).startOf("day").toDate(),y=moment(b.endDate).startOf("day").add(-1,"d").toDate();I.zoom(k,moment(y).add(1,"d").toDate()),function(k,y){T.viewableImpressions=0,T.billableViewableImpressions=0,T.uniqueViewableImpressions=0,T.activeTimeSeconds=0,T.readings=0,T.uniqueReadings=0,T.uniqueReadingsHavingViewableImpressions=0,T.uniqueReadingPercentageReads=0,T.maleUniqueViewableImpressions=0,T.femaleUniqueViewableImpressions=0,T.desktopReadings=0,T.mobileReadings=0,T.tabletReadings=0,T.age1617MaleUniqueViewableImpressions=0,T.age1824MaleUniqueViewableImpressions=0,T.age2534MaleUniqueViewableImpressions=0,T.age3544MaleUniqueViewableImpressions=0,T.age4554MaleUniqueViewableImpressions=0,T.age55MaleUniqueViewableImpressions=0,T.age1617FemaleUniqueViewableImpressions=0,T.age1824FemaleUniqueViewableImpressions=0,T.age2534FemaleUniqueViewableImpressions=0,T.age3544FemaleUniqueViewableImpressions=0,T.age4554FemaleUniqueViewableImpressions=0,T.age55FemaleUniqueViewableImpressions=0,T.uniqueReadingPercentage24Reads=0,T.uniqueReadingPercentage2549Reads=0,T.uniqueReadingPercentage5074Reads=0,T.uniqueReadingPercentage75100Reads=0;var M=0,A=0,R=0,U=0,V=0,q=0,_=0,B=0,P=0,E=0,L=0,z=0,Y=0,j=0,W=0;T.start=k,T.end=y,$.each(f,function(Q,G){var O=new Date(G.start);O<k||O>y||(T.viewableImpressions+=G.viewableImpressions,T.billableViewableImpressions+=G.billableViewableImpressions,T.uniqueViewableImpressions+=G.uniqueViewableImpressions,T.activeTimeSeconds+=G.activeTimeSeconds,T.readings+=G.readings,T.uniqueReadingPercentageReads+=G.uniqueReadingPercentageReads,T.maleUniqueViewableImpressions+=G.maleUniqueViewableImpressions,T.femaleUniqueViewableImpressions+=G.femaleUniqueViewableImpressions,T.uniqueReadings+=G.uniqueReadings,T.uniqueReadingsHavingViewableImpressions+=G.uniqueReadingsHavingViewableImpressions,T.uniqueReadingPercentage24Reads+=G.uniqueReadingPercentage24Reads,T.uniqueReadingPercentage2549Reads+=G.uniqueReadingPercentage2549Reads,T.uniqueReadingPercentage5074Reads+=G.uniqueReadingPercentage5074Reads,T.uniqueReadingPercentage75100Reads+=G.uniqueReadingPercentage75100Reads,M+=G.desktopReadings,A+=G.mobileReadings,R+=G.tabletReadings,U+=G.age1617MaleUniqueViewableImpressions,V+=G.age1824MaleUniqueViewableImpressions,q+=G.age2534MaleUniqueViewableImpressions,_+=G.age3544MaleUniqueViewableImpressions,B+=G.age4554MaleUniqueViewableImpressions,P+=G.age55MaleUniqueViewableImpressions,E+=G.age1617FemaleUniqueViewableImpressions,L+=G.age1824FemaleUniqueViewableImpressions,z+=G.age2534FemaleUniqueViewableImpressions,Y+=G.age3544FemaleUniqueViewableImpressions,j+=G.age4554FemaleUniqueViewableImpressions,W+=G.age55FemaleUniqueViewableImpressions)});var N=M+A+R;T.desktopReadings=Math.round(100/(N/M)),T.mobileReadings=Math.round(100/(N/A)),T.tabletReadings=Math.round(100/(N/R)),T.maleUniqueViewableImpressions=Math.round(T.maleUniqueViewableImpressions),T.femaleUniqueViewableImpressions=Math.round(T.femaleUniqueViewableImpressions),d[0].value=T.femaleUniqueViewableImpressions,d[1].value=T.maleUniqueViewableImpressions;var K=T.viewableImpressions-(U+V+q+_+B+P+E+L+z+Y+j+W);K>100&&(U+=K*t.scope.globalSettings.reportAverageAge1617Male,V+=K*t.scope.globalSettings.reportAverageAge1824Male,q+=K*t.scope.globalSettings.reportAverageAge2534Male,_+=K*t.scope.globalSettings.reportAverageAge3544Male,B+=K*t.scope.globalSettings.reportAverageAge4554Male,P+=K*t.scope.globalSettings.reportAverageAge55Male,E+=K*t.scope.globalSettings.reportAverageAge1617Female,L+=K*t.scope.globalSettings.reportAverageAge1824Female,z+=K*t.scope.globalSettings.reportAverageAge2534Female,Y+=K*t.scope.globalSettings.reportAverageAge3544Female,j+=K*t.scope.globalSettings.reportAverageAge4554Female,W+=K*t.scope.globalSettings.reportAverageAge55Female),T.age1617MaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/U)),T.age1824MaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/V)),T.age2534MaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/q)),T.age3544MaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/_)),T.age4554MaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/B)),T.age55MaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/P)),T.age1617FemaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/E)),T.age1824FemaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/L)),T.age2534FemaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/z)),T.age3544FemaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/Y)),T.age4554FemaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/j)),T.age55FemaleUniqueViewableImpressions=Math.round(100/(T.viewableImpressions/W)),o[0].male=Math.round(-1*T.age1617MaleUniqueViewableImpressions),o[1].male=Math.round(-1*T.age1824MaleUniqueViewableImpressions),o[2].male=Math.round(-1*T.age2534MaleUniqueViewableImpressions),o[3].male=Math.round(-1*T.age3544MaleUniqueViewableImpressions),o[4].male=Math.round(-1*T.age4554MaleUniqueViewableImpressions),o[5].male=Math.round(-1*T.age55MaleUniqueViewableImpressions),o[0].female=Math.round(T.age1617FemaleUniqueViewableImpressions),o[1].female=Math.round(T.age1824FemaleUniqueViewableImpressions),o[2].female=Math.round(T.age2534FemaleUniqueViewableImpressions),o[3].female=Math.round(T.age3544FemaleUniqueViewableImpressions),o[4].female=Math.round(T.age4554FemaleUniqueViewableImpressions),o[5].female=Math.round(T.age55FemaleUniqueViewableImpressions),l[0].value=T.desktopReadings,l[1].value=T.mobileReadings,l[2].value=T.tabletReadings,m.validateData(),D.validateData(),w.validateData(),v.validateData(),e.$apply()}(k,y)};b.addListener("zoomed",function(){S()}),e.toggleReport=function(k){$.each(g.sponsoredArticles,function(y,M){M.guid===k.guid&&(M.reportActive=!M.reportActive)}),r(function(){F(),S()},50)},e.toggleChapter=function(k){$.each(u,function(y,M){M.chapter.name===k&&(M.active=!M.active)}),r(function(){F(),S()},50)},F(),I.validateNow(),b.validateNow(),b.setDefaultPeriod(),S()},function(){e.error=!0})})},function(){i.path("/")});var d=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:c,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],o=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],l=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.controller("StaticArticleDetailController",["$rootScope","$scope","snipService","parserService","$location","staticArticle","$timeout","$uibModal",function(e,t,a,n,s,p,h,r){t.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,t.$on("$viewContentLoaded",function(){h(function(){t.viewContentLoaded=!0})});var i,u,c=function(){i=t.staticArticle.assetReferences.reduce(function(u,b,I){return u[b.guid]=b,u},{})};if(t.resolveAsset=function(u){return i[u]},$(window).scroll(function(u){$(u.target).scrollTop()>100?$(".staticArticleDetail-mobileNavigation-wrapper").addClass("staticArticleDetail-mobileNavigation-wrapper-scrolled"):$(".staticArticleDetail-mobileNavigation-wrapper").removeClass("staticArticleDetail-mobileNavigation-wrapper-scrolled")}),t.recommendedArticles=[],t.recommendedArticlePairs=[],t.recommendedSnips=[],t.assetsMedia=[],t.assetsFacts=[],t.assetsQuestions=[],t.assetsComments=[],t.staticArticleUpdater)(t.$parent.staticArticleUpdater?t.$parent:t.$parent.$parent).$on("staticArticleUpdater",function(u,b){t.staticArticle=b,n.postProcessHtml(t.staticArticle),t.staticArticle.detailsLoaded=!0,c(),t.$broadcast("$$rebind::refresh")});else{t.$watch(function(){return"staticArticle.detailsLoaded"},function(u){u&&c()});var o=p.id;if(t.staticArticle=p,n.postProcessHtml(t.staticArticle),a.getRecommendedSnips(o).then(function(u){t.recommendedSnips=u}),(u=window.navigator.userAgent).indexOf(" Android ")>-1&&u.indexOf("Version/")>-1&&parseFloat((u.match("Android ([0-9.]+)")||[])[1])<=4.4){var g=$(window).height();$(".app-mobile .staticArticleDetail-wrapper").css("height",g+"px"),$(".app-desktop .staticArticleDetail-wrapper").css("height",g+"px")}}t.assetImageFocuspointDialog=function(u){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return u}}})},t.share=function(){!window.plugins||!window.plugins.socialsharing||(window._paq&&_paq.push(["trackEvent","Conversion","StartSharestaticArticle","staticArticleDetail"]),window.plugins.socialsharing.shareWithOptions({message:(t.staticArticle.heading?t.staticArticle.heading+": ":"")+t.staticArticle.text+" "+s.absUrl()},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessSharestaticArticle","staticArticleDetail"])}))}}]),app.controller("StaticArticleEditController",["$scope","$window","staticArticleService","metaService","$state","authService","fileUploadService","$location","$timeout","$uibModal","$rootScope","staticArticleId","proseMirrorEditorService","editorCommentStaticArticleService","editorAssetsService","spellingService","backendHubProxy",function(e,t,a,n,s,p,h,r,i,c,d,o,l,g,u,b,I){var m=I("editorHub");e.revision={coverAssetImages:[],texts:[{heading:"",text:""}],chapterSlug:null};var D="static_"+o+"_"+d.scope.currentScope.chapter.id;e.enableHighQualityImage=d.scope.network.settings.configurations.enableHighQualityImage,e.$on("$destroy",function(){n.setFavicon()}),e.staticArticleUpdater=!0;var v,w=!1;e.staticArticle={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0;var C=d.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return C};var f=!1;d.$on("$stateChangeStart",function(E,L){f?E.preventDefault():e.changed&&!confirm(C)?(f=!0,E.preventDefault(),w=!1,i(function(){f=!1},1e3)):(e.changed=!1,w&&(m.invoke("leaveGroup",D),l.closeConnection(),m.stop(),w=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0;var T=function(E){e.staticArticle=E;var L=y(E);L?e.revision=L:E.revisions.push(e.revision),v=k(E),i(function(){e.textCarousel||(e.textCarousel=$("#staticArticleEdit-text-wrapper").find(".staticArticleEdit-text-carousel"),e.textCarousel.on("afterChange",function(z,Y){e.textSlickIndex=Y.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#staticArticleEdit-cover-wrapper").find(".staticArticleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(z,Y){e.coverAssetSlickIndex=Y.currentSlide})),i(function(){})})};e.coverAssetCarousel=null,e.coverAssetSlick=null,e.delCoverAssetVariant=function(){e.revision.coverAssetImages=[],e.revision.coverAssetImageId=null},e.pickCoverAsset=function(E){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},resultCallback:function(){return function(L){E&&e.revision.coverAssetImages.length?e.revision.coverAssetImages[0]=L.assetImage:e.revision.coverAssetImages.push(L.assetImage)}},staticArticle:function(){return e.staticArticle}}})},e.assetDialog=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return x},staticArticle:function(){return e.staticArticle}}})};var x=function(E){i(function(){e.insertAsset(E)},500)};e.insertAsset=function(E){if($("#assetModal").modal("hide"),e.initializedMobile){if(e.initializedMobile){var L=$("#staticArticleEdit-editor-mobile")[0],z=L.selectionStart,Y=L.selectionEnd,j=L.value,W=j.substring(0,z),N=j.substring(Y,j.length),K="\n!["+E.guid+"]\n";L.value=W+K+N,i(function(){L.selectionStart=L.selectionEnd=z+K.length,L.focus()})}}else{if(!e.editor)return;e.editor.replaceSelection("\n!["+E.guid+"]\n"),setTimeout(function(){e.editor.focus()},600)}},e.save=function(){var E={id:e.staticArticle.id,title:e.revision.title,heading:e.revision.heading,summary:e.revision.summary,htmlDocument:l.getHtmlDocument(),jsonDocument:l.getDocument()};null!==e.staticArticle.revisions[0].coverAssetImages&&e.staticArticle.revisions[0].coverAssetImages.length>0&&(E.coverAssetImageId=e.revision.coverAssetImages[0].id),a.updateStaticArticle(E).then(function(L){e.changed=!1,T(L.data)},function(){c.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})})},e.submit=function(){e.editForm.$submitted=!0},e.publish=function(E){e.editForm.$submitted=!0,E&&a.publishStaticArticle(e.staticArticle).then(function(L){e.changed=!1,T(L.data)},function(){})},e.preview=!1,e.togglePreview=function(){if(e.preview=!e.preview,e.preview){var E=angular.copy(e.staticArticle);E.content=l.getHtmlDocument(),E.assetReferences=E.assetReferences,E.title=e.revision.title,E.heading=e.revision.heading,E.summary=e.revision.summary,e.revision.coverAssetImages.length&&(E.coverAssetReference=E.assetReferences.filter(function(L){return L.assetImage&&L.assetImage.id===e.revision.coverAssetImages[0].id})[0]),i(function(){e.$broadcast("staticArticleUpdater",E)},500)}};var k=function(E){var L=y(E);return angular.toJson(L.coverAssetImages)+L.summary+L.jsonDocument+L.title+L.heading},y=function(E){return E.revisions[0]},M=function(E,L){c.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},resultCallback:function(){return function(z){if(L){l.setFocus();var Y=[];$.each(z,function(j,W){var N=null;W.assetImage&&(N=W.assetImage.type),W.assetText&&(N=W.assetText.type),W.assetArticle&&(N=W.assetArticle.type),W.assetFile&&(N=W.assetFile.type),Y.push({guid:W.guid,type:N})}),L(Y)}}},staticArticle:function(){return e.staticArticle}}})},A=function(E,L){c.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return L},messageHolder:function(){return new MessageHolder(e.staticArticle)},sourceService:function(){return g}}})},R=function(E,L,z){c.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return z},onAddedCallback:function(){return L},messageHolder:function(){return new MessageHolder(e.staticArticle)},chainComments:function(){return E},sourceService:function(){return g}}})},U=function(E){c.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return E}}})},V=function(E,L){c.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return L}}})},q=function(E){return u.getAsset(E,e.staticArticle.assetReferences)},_=function(E){i(function(){y(e.staticArticle).jsonDocument=E,e.numberOfWords=b.countWords(l.getHtmlDocument())})};$(".staticArticleEdit-wrapper").scroll(function(){!function E(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),m.on("broadcastSummary",function(E){e.revision.summary=E}),m.on("broadcastHeading",function(E){e.revision.heading=E.heading}),m.on("broadcastTitle",function(E){e.revision.title=E.title}),m.start(function(){m.invoke("joinGroup",D)}),e.leaveEditor=function(){w=!0},e.blurHeading=function(){m.invoke("updatingHeading",{groupName:D,heading:e.revision.heading})},e.blurTitle=function(){m.invoke("updatingTitle",{groupName:D,title:e.revision.title})},e.blurSummary=function(){m.invoke("updatingSummary",{groupName:D,summary:e.revision.summary})},a.getStaticArticleEdit(o).then(function(E){e.loading=!1,T(E),n.setFavicon(!0),l.init({docID:"staticArticle_"+E.id+"_"+E.chapterId,assetDlgFactory:M,commentCreationDlgFactory:A,commentMgmtDlgFactory:R,initialDocument:y(E).jsonDocument,initialAssetReferences:E.assetReferences,createLinkFactory:U,callToActionDlgFactory:V,assetResolver:q,onNewStateFactory:_,onLoadTransactionCallback:_,languageCode:d.scope.currentScope.network.settings.languageCode}),e.$watch(function(){return k(e.staticArticle)},function(E){e.changed=v!==E})},function(){r.path("/")})}]),app.factory("staticArticleService",["$http","$q",function(e,t){return{getStaticArticles:function(){var i=t.defer();return e.get(scope.apiEndpoint+"staticArticles").then(function(c){i.resolve(c.data)}),i.promise},getStaticArticle:function(i){var c=t.defer();return e.get(scope.apiEndpoint+"staticArticles/"+i).then(function(d){c.resolve(d.data)}),c.promise},getStaticArticleEdit:function(i){var c=t.defer();return e.get(scope.apiEndpoint+"staticArticles/"+i+"/edit").then(function(d){c.resolve(d.data)},function(d){c.reject()}),c.promise},getStaticArticleParse:function(i,c){var d=t.defer();return e.post(scope.apiEndpoint+"staticArticles/"+i+"/parse",c).then(function(o){d.resolve(o.data)},function(){d.reject()}),d.promise},updateStaticArticle:function(i){var c=t.defer();return e.put(scope.apiEndpoint+"staticArticles",i).then(function(d){angular.copy(d.data,i),c.resolve(d)},function(){c.reject()}),c.promise},publishStaticArticle:function(i){var c=t.defer();return e.put(scope.apiEndpoint+"staticArticles/"+i.id+"/publish",i).then(function(d){c.resolve(d)},function(){c.reject()}),c.promise}}}]),app.controller("SuperCampaignElasticReportController",["$scope","$rootScope","superService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,s,p,h){AmCharts.isReady=!0;var d,o,l,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],c=[];e.report=null,e.totalClickCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var g=function(m){var D=0,w=0,v=0,C=0,f=0,F=0;$.each(m,function(T,x){D+=x.desktopImpressionCount,w+=x.tabletImpressionCount,v+=x.mobileImpressionCount,C+=x.clickCount,f+=x.impressionTime,F+=x.impressionCount}),e.$apply(function(){e.totalClickCount=C,e.totalImpressionTime=f,e.totalImpressionCount=F}),i[0].value=Math.round(100/(F/D)),i[1].value=Math.round(100/(F/v)),i[2].value=Math.round(100/(F/w)),d.validateData()},u=function(){var m=moment(o.startDate).startOf("day").toDate(),D=moment(o.endDate).startOf("day").toDate(),w=e.report.filter(function(v){return v.day>=m&&v.day<=D});g(w),l.zoom(m,moment(D).add(1,"d").toDate())},I=function(){var m=e.superCampaign.superBanners.filter(function(w){return!w.filtered}).map(function(w){return w.id}),D=e.chapters.filter(function(w){return!w.filtered}).map(function(w){return w.id});e.filterDisabled=!0,a.getSuperReport(e.superCampaign.pin,{superCampaignId:e.superCampaign.id,superBannerIds:m,chapterIds:D}).then(function(w){w.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=w,p(function(){(function(m){c.length=0,$.each(m,function(D,w){c.push(w)}),o.validateData(),l.validateData(),e.$apply(function(){e.startDay=start,e.endDay=end})})(w),u(),e.filterDisabled=!1},50)})};e.filterChapter=function(m){m.filtered=!m.filtered,I()},e.chapterFilterDisabled=function(m){return e.filterDisabled||1===e.chapters.filter(function(D){return!D.filtered}).length&&!m.filtered},e.filterBanner=function(m){e.filterDisabled||1===e.superCampaign.superBanners.filter(function(D){return!D.filtered}).length&&!m.filtered||(m.filtered=!m.filtered,I())},a.getSuperByPin(s.pin).then(function(m){e.superCampaign=m,a.getSuperReport(m.pin,{superCampaignId:m.id}).then(function(D){D.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=D,e.startDay=D[0].day,e.endDay=D[D.length-1].day;var w=[];$.each(m.chapterSlugs,function(v,C){w.push(n.getChapter(C))}),w=w.filter(function(v){return 2===v.managementState}),e.chapters=w,$.each(D,function(v,C){c.push(C)}),p(function(){d=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:c,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){u()}),l=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:c,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clickCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),g(D)})})},function(){h.path("/")})}]),app.controller("superCampaignReportController",["$scope","$rootScope","superService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,s,p,h,r){AmCharts.isReady=!0;var i="#00cdbd",c=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:i,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];a.getSuperByPin(s.pin).then(function(l){e.superCampaign=l,a.getReportSuperBannerCalendar(l.pin).then(function(g){g.forEach(function(u){u.chapter=n.getChapter(u.chapterSlug),u.reports.forEach(function(b){b.calendar.forEach(function(I){I.start=moment(I.start.replace("Z","")).toDate(),I.end=moment(I.end.replace("Z","")).toDate()})})}),l.report=g,h(function(){var u,b,I,m,D,w=new Set;$.each(g,function(x,S){S.active=!0,w.add(S.chapter.name)}),g.uniqueChapters=[],w.forEach(function(x){g.uniqueChapters.push(x)}),$.each(l.superBanners,function(x,S){S.reportActive=!0});var v=[],C=function(){v.length=0,$.each(g[0].reports[0].calendar,function(x,S){v.push({start:S.start,end:S.end,impressions:0,viewableImpressions:0,viewableImpressionTimeSeconds:0,desktopViewableImpressions:0,mobileViewableImpressions:0,tabletViewableImpressions:0,clicks:0,maleViewableImpressions:0,femaleViewableImpressions:0,age1617MaleViewableImpressions:0,age1824MaleViewableImpressions:0,age2534MaleViewableImpressions:0,age3544MaleViewableImpressions:0,age4554MaleViewableImpressions:0,age55MaleViewableImpressions:0,age1617FemaleViewableImpressions:0,age1824FemaleViewableImpressions:0,age2534FemaleViewableImpressions:0,age3544FemaleViewableImpressions:0,age4554FemaleViewableImpressions:0,age55FemaleViewableImpressions:0})}),$.each(g,function(x,S){S.active&&(g[x-1]&&2===g[x-1].chapter.managementState&&2===S.chapter.managementState&&g[x-1].chapter.name!==S.chapter.name&&(g.multiChapterShipment=!0),$.each(S.reports,function(k,y){if(l.superBanners[k].reportActive){var M=y.superBanner.pin;$.each(y.calendar,function(A,R){R.pin=M,v[A].impressions+=R.impressions,v[A].viewableImpressions+=R.viewableImpressions,v[A].viewableImpressionTimeSeconds+=R.viewableImpressionTimeSeconds,v[A].desktopViewableImpressions+=R.desktopViewableImpressions,v[A].mobileViewableImpressions+=R.mobileViewableImpressions,v[A].tabletViewableImpressions+=R.tabletViewableImpressions,v[A].clicks+=R.clicks,v[A].maleViewableImpressions+=R.maleViewableImpressions,v[A].femaleViewableImpressions+=R.femaleViewableImpressions,v[A].age1617MaleViewableImpressions+=R.age1617MaleViewableImpressions,v[A].age1824MaleViewableImpressions+=R.age1824MaleViewableImpressions,v[A].age2534MaleViewableImpressions+=R.age2534MaleViewableImpressions,v[A].age3544MaleViewableImpressions+=R.age3544MaleViewableImpressions,v[A].age4554MaleViewableImpressions+=R.age4554MaleViewableImpressions,v[A].age55MaleViewableImpressions+=R.age55MaleViewableImpressions,v[A].age1617FemaleViewableImpressions+=R.age1617FemaleViewableImpressions,v[A].age1824FemaleViewableImpressions+=R.age1824FemaleViewableImpressions,v[A].age2534FemaleViewableImpressions+=R.age2534FemaleViewableImpressions,v[A].age3544FemaleViewableImpressions+=R.age3544FemaleViewableImpressions,v[A].age4554FemaleViewableImpressions+=R.age4554FemaleViewableImpressions,v[A].age55FemaleViewableImpressions+=R.age55FemaleViewableImpressions})}}))}),b.validateData(),u.validateData()},f=g.summary={};u=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:v,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:v,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"viewableImpressions",type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),I=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:c,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),m=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:i,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(x,S){return-1*x.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(x){return x<0?-1*x+"":x+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),D=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var T=function(){var x=moment(u.startDate).startOf("day").toDate(),S=moment(u.endDate).startOf("day").add(-1,"d").toDate();(function(x,S){f.maleViewableImpressions=0,f.femaleViewableImpressions=0,f.viewableImpressions=0,f.viewableImpressionTimeSeconds=0,f.impressions=0,f.clicks=0,f.desktopViewableImpressions=0,f.mobileViewableImpressions=0,f.tabletViewableImpressions=0,f.age1617MaleViewableImpressions=0,f.age1824MaleViewableImpressions=0,f.age2534MaleViewableImpressions=0,f.age3544MaleViewableImpressions=0,f.age4554MaleViewableImpressions=0,f.age55MaleViewableImpressions=0,f.age1617FemaleViewableImpressions=0,f.age1824FemaleViewableImpressions=0,f.age2534FemaleViewableImpressions=0,f.age3544FemaleViewableImpressions=0,f.age4554FemaleViewableImpressions=0,f.age55FemaleViewableImpressions=0;var k=0,y=0,M=0,A=0,R=0,U=0,V=0,q=0,_=0,B=0,P=0,E=0,L=0,z=0,Y=0;f.start=x,f.end=S,$.each(v,function(W,N){var K=new Date(N.start);K<x||K>S||(f.maleViewableImpressions+=N.maleViewableImpressions,f.femaleViewableImpressions+=N.femaleViewableImpressions,f.viewableImpressions+=N.viewableImpressions,f.viewableImpressionTimeSeconds+=N.viewableImpressionTimeSeconds,f.impressions+=N.impressions,f.clicks+=N.clicks,k+=N.desktopViewableImpressions,y+=N.mobileViewableImpressions,M+=N.tabletViewableImpressions,A+=N.age1617MaleViewableImpressions,R+=N.age1824MaleViewableImpressions,U+=N.age2534MaleViewableImpressions,V+=N.age3544MaleViewableImpressions,q+=N.age4554MaleViewableImpressions,_+=N.age55MaleViewableImpressions,B+=N.age1617FemaleViewableImpressions,P+=N.age1824FemaleViewableImpressions,E+=N.age2534FemaleViewableImpressions,L+=N.age3544FemaleViewableImpressions,z+=N.age4554FemaleViewableImpressions,Y+=N.age55FemaleViewableImpressions)}),f.desktopViewableImpressions=Math.round(100/(f.viewableImpressions/k)),f.mobileViewableImpressions=Math.round(100/(f.viewableImpressions/y)),f.tabletViewableImpressions=Math.round(100/(f.viewableImpressions/M));var j=f.viewableImpressions-(A+R+U+V+q+_+B+P+E+L+z+Y);j>100&&(A+=j*t.scope.globalSettings.reportAverageAge1617Male,R+=j*t.scope.globalSettings.reportAverageAge1824Male,U+=j*t.scope.globalSettings.reportAverageAge2534Male,V+=j*t.scope.globalSettings.reportAverageAge3544Male,q+=j*t.scope.globalSettings.reportAverageAge4554Male,_+=j*t.scope.globalSettings.reportAverageAge55Male,B+=j*t.scope.globalSettings.reportAverageAge1617Female,P+=j*t.scope.globalSettings.reportAverageAge1824Female,E+=j*t.scope.globalSettings.reportAverageAge2534Female,L+=j*t.scope.globalSettings.reportAverageAge3544Female,z+=j*t.scope.globalSettings.reportAverageAge4554Female,Y+=j*t.scope.globalSettings.reportAverageAge55Female),f.age1617MaleViewableImpressions=Math.round(100/(f.viewableImpressions/A)),f.age1824MaleViewableImpressions=Math.round(100/(f.viewableImpressions/R)),f.age2534MaleViewableImpressions=Math.round(100/(f.viewableImpressions/U)),f.age3544MaleViewableImpressions=Math.round(100/(f.viewableImpressions/V)),f.age4554MaleViewableImpressions=Math.round(100/(f.viewableImpressions/q)),f.age55MaleViewableImpressions=Math.round(100/(f.viewableImpressions/_)),f.age1617FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/B)),f.age1824FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/P)),f.age2534FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/E)),f.age3544FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/L)),f.age4554FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/z)),f.age55FemaleViewableImpressions=Math.round(100/(f.viewableImpressions/Y)),f.maleViewableImpressions=Math.round(f.maleViewableImpressions),f.femaleViewableImpressions=Math.round(f.femaleViewableImpressions),c[0].value=f.femaleViewableImpressions,c[1].value=f.maleViewableImpressions,d[0].male=Math.round(-1*f.age1617MaleViewableImpressions),d[1].male=Math.round(-1*f.age1824MaleViewableImpressions),d[2].male=Math.round(-1*f.age2534MaleViewableImpressions),d[3].male=Math.round(-1*f.age3544MaleViewableImpressions),d[4].male=Math.round(-1*f.age4554MaleViewableImpressions),d[5].male=Math.round(-1*f.age55MaleViewableImpressions),d[0].female=Math.round(f.age1617FemaleViewableImpressions),d[1].female=Math.round(f.age1824FemaleViewableImpressions),d[2].female=Math.round(f.age2534FemaleViewableImpressions),d[3].female=Math.round(f.age3544FemaleViewableImpressions),d[4].female=Math.round(f.age4554FemaleViewableImpressions),d[5].female=Math.round(f.age55FemaleViewableImpressions),o[0].value=f.desktopViewableImpressions,o[1].value=f.mobileViewableImpressions,o[2].value=f.tabletViewableImpressions,I.validateData(),m.validateData(),D.validateData(),e.$apply()})(x,S),b.zoom(x,moment(S).add(1,"d").toDate())};u.addListener("zoomed",function(x){T()}),e.toggleReport=function(x){$.each(l.superBanners,function(S,k){k.pin===x.pin&&(k.reportActive=!k.reportActive)}),h(function(){C(),T()},50)},e.toggleChapter=function(x){$.each(g,function(S,k){k.chapter.name===x&&(k.active=!k.active)}),h(function(){C(),T()},50)},C(),b.validateData(),u.validateNow(),u.setDefaultPeriod()},function(){e.error=!0})})},function(){r.path("/")})}]),app.factory("superService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,s,p){var h=[],i=function(){var l=t.defer();return h.length>0?l.resolve(h):e.get(scope.apiEndpoint+"super").then(function(g){angular.copy(g.data,h),l.resolve(h)},function(){l.reject()}),l.promise};function c(l){var g=null;return $.each(h,function(u,b){if(b.pin===l)return g=b,!1}),g}return{supers:h,getSuperReport:function(l,g){var u=t.defer();return e.post(scope.apiEndpoint+"super/"+l+"/report",g).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getSupers:i,getReportSuperBannerCalendar:function(l){var g=t.defer();return e.get(scope.apiEndpoint+"super/"+l+"/ReportSuperBannerCalendar").then(function(u){g.resolve(u.data)},function(){g.reject()}),g.promise},getSuperByPin:function(l){var g=t.defer();if(h.length>0){var u=c(l);u?g.resolve(u):e.get(scope.apiEndpoint+"super/"+l).then(function(b){g.resolve(b.data)},function(){g.reject()})}else i().then(function(){var b=c(l);b?g.resolve(b):e.get(scope.apiEndpoint+"super/"+l).then(function(I){g.resolve(I.data)},function(){g.reject()})},function(){g.reject()});return g.promise}}}]),app.controller("SurveyDetailController",["$scope","$stateParams","shipmentService","$location","$rootScope","translationService","profileService",function(e,t,a,n,s,p,h){e.surveyId=t.id,e.preview=void 0!==n.search().preview,e.requestInProgress=!0,a.getSurveyForDeeplink(e.surveyId,e.preview).then(function(r){e.requestInProgress=!1,e.shipment=r},function(){e.requestInProgress=!1,n.path("/")}),e.availableTargetLanguages=null,p.getAvailableTargetLanguages().then(function(r){e.availableTargetLanguages=r}),e.selectedTargetLanguage=s.profile.favoriteLanguage,e.translateSurvey=function(){null===e.selectedTargetLanguage?a.getSurveyForDeeplink(e.surveyId,e.preview).then(function(r){e.shipment=r}):a.getTranslatedSurveyForDeeplink(e.surveyId,e.preview,e.selectedTargetLanguage).then(function(r){e.shipment=r,h.updateFavoriteLanguage(e.selectedTargetLanguage).then(function(){s.profile.favoriteLanguage=e.selectedTargetLanguage})})}}]),app.factory("configurationsService",["$rootScope","$http","$q","authService",function(e,t,a,n){return{getConfigurationsData:function(p){var h=a.defer(),r=scope.apiEndpoint+"configurations";return p&&(r=r+"?key="+p),t.get(r).then(function(i){h.resolve(i.data)},function(){h.reject()}),h.promise}}}]),app.controller("DataPrivacyPolicyController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$templateRequest","$interpolate",function(e,t,a,n,s,p,h,r){e.updatePolicyHtml=function(){var c="{{resource:",o=new RegExp(c+"[a-z]*}}","i"),l=e.policyHtml.match(o);l&&l.forEach(function(g,u,b){var I=g.substring(c.length,g.length-"}}".length);e.policyHtml=e.policyHtml.replaceAll(g,scope.network.resources[I])}),e.policyHtml=e.policyHtml.replaceAll("{{Matomo}}",scope.currentScope.chapter.settings.piwikBaseUrl?'<iframe style="border: 0; height: 200px; width: 600px; " src="'+e.matomoOptOutUrl+'"></iframe>':""),e.policyHtml=e.policyHtml.replaceAll("{{TrackingLink}}",e.trackingLink),e.policyHtml=r(e.policyHtml)(e),e.policyHtml=a.trustAsHtml(e.policyHtml)},e.partner=scope.currentScope.chapter.partner?scope.currentScope.chapter.partner:scope.currentScope.network.partner,e.network=scope.currentScope.network,e.chapter=scope.currentScope.chapter,e.partner.settings.dataPrivacyUrl&&(n.location.href=e.partner.settings.dataPrivacyUrl),scope.currentScope.chapter&&scope.currentScope.chapter.settings&&scope.currentScope.chapter.settings.piwikBaseUrl&&(e.matomoOptOutUrl=a.trustAsResourceUrl(scope.currentScope.chapter.settings.piwikBaseUrl+"index.php?module=CoreAdminHome&action=optOut&language=de")),e.trackingLink="",e.trackingLink="/optout",e.cookieManager=0,scope.currentScope.chapter.settings.configurations.externalMediaConsentConfiguration&&(e.cookieManager=scope.currentScope.chapter.settings.configurations.externalMediaConsentConfiguration.Manager),s.getConfigurationsData("privacy_policy_markdown").then(function(i){if(i.chapterConfiguration.privacy_policy_markdown)e.policyHtml=p.toHtml(i.chapterConfiguration.privacy_policy_markdown),e.updatePolicyHtml();else if(i.networkConfiguration.privacy_policy_markdown)e.policyHtml=p.toHtml(i.networkConfiguration.privacy_policy_markdown),e.updatePolicyHtml();else{if("de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1){var c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-ik-up-de.html");h(c).then(function(d){e.policyHtml=d,e.updatePolicyHtml()})}"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1&&(c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-ik-up-en.html"),h(c).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-location-de.html"),h(c).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-location-en.html"),h(c).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-common-de.html"),h(c).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-common-en.html"),h(c).then(function(o){e.policyHtml=o,e.updatePolicyHtml()}))}}),e.newsrooms=t("filter")(scope.network.chapters,{managementState:2}),e.scrollTo=function(i){$("body,html").animate({scrollTop:$(i).offset().top-120},1e3)}}]),app.controller("TermsOfUseController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$interpolate","$templateRequest",function(e,t,a,n,s,p,h,r){e.updatePolicyHtml=function(){var c="{{resource:",o=new RegExp(c+"[a-z]*}}","i"),l=e.policyHtml.match(o);l&&l.forEach(function(g,u,b){var I=g.substring(c.length,g.length-"}}".length);e.policyHtml=e.policyHtml.replaceAll(g,scope.network.resources[I])}),e.policyHtml=e.policyHtml.replaceAll("{{Matomo}}",scope.currentScope.chapter.settings.piwikBaseUrl?'<iframe style="border: 0; height: 200px; width: 600px; " src="'+e.matomoOptOutUrl+'"></iframe>':""),e.policyHtml=e.policyHtml.replaceAll("{{TrackingLink}}",e.trackingLink),e.policyHtml=h(e.policyHtml)(e),e.policyHtml=a.trustAsHtml(e.policyHtml)},e.newsrooms=t("filter")(scope.network.chapters,{managementState:2}),e.network=scope.currentScope.network,e.chapter=scope.currentScope.chapter,scope.currentScope.chapter&&scope.currentScope.chapter.settings&&scope.currentScope.chapter.settings.piwikBaseUrl&&(e.matomoOptOutUrl=a.trustAsResourceUrl(scope.currentScope.chapter.settings.piwikBaseUrl+"index.php?module=CoreAdminHome&action=optOut&language=de")),e.trackingLink="/optout",s.getConfigurationsData("terms_of_service_markdown").then(function(i){if(i.chapterConfiguration.terms_of_service_markdown)e.policyHtml=p.toHtml(i.chapterConfiguration.terms_of_service_markdown),e.updatePolicyHtml();else if(i.networkConfiguration.terms_of_service_markdown)e.policyHtml=p.toHtml(i.networkConfiguration.terms_of_service_markdown),e.updatePolicyHtml();else{if("de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1){var c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-ik-up-de.html");r(c).then(function(d){e.policyHtml=d,e.updatePolicyHtml()})}"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1&&(c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-ik-up-en.html"),r(c).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-location-de.html"),r(c).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-location-en.html"),r(c).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-common-de.html"),r(c).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(c=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-common-en.html"),r(c).then(function(o){e.policyHtml=o,e.updatePolicyHtml()}))}})}]),app.factory("translationService",["$http","$q",function(e,t){return{getAvailableTargetLanguages:function(){var n=t.defer();return e.get(scope.apiEndpoint+"translations/targetLanguages").then(function(s){n.resolve(s.data)},function(){n.reject()}),n.promise}}}]),app.controller("FeedbackController",["$scope","profileService","authService",function(e,t,a){e.data=t,e.success=!1,e.feedback={description:""},e.showEmail=!1,t.getProfile(!0).then(function(n){n.isRegistered||(e.showEmail=!0)}),e.submitForm=function(n){n&&t.insertFeedback(e.feedback).then(function(s){e.success=!0},function(){}).then(function(){})}}]),app.controller("ProfileController",["$interpolate","$scope","profileService","fileUploadService","$location","Upload",function(e,t,a,n,s,p){if(a.getProfile().then(function(i){i.isRegistered||s.path("/").replace();var c=i.guid,d=new Date(t.profile.birthdayCalendarData.birthday);t.birthdayDisplayString=d.setMinutes(d.getMinutes()-d.getTimezoneOffset()).toLocaleDateString("de-DE"),t.$watch("profile.guid",function(){c!==i.guid&&s.path("/")})},function(i){s.path("/").replace()}),t.web_profile_newsletter=e(scope.currentScope.network.resources.web_profile_newsletter)({chapterName:scope.currentScope.chapter.name}),t.birthdayCalendarVisible=!1,t.profile=a.profile,t.staffDirectoryLoad=a.getStaffDirectoryOwned,t.staffDirectorySave=a.updateStaffDirectory,t.staffDirectoryLoadAdminEditable=a.getOwnPrivateStaffDirData,t.profileSaved=!1,t.loadingAvatar=!1,t.loadingCover=!1,t.showNewsListOrder=t.profile.isMerkuristJournalist,t.profile.birthdayCalendarData){var r=new Date(t.profile.birthdayCalendarData.birthday);t.profile.birthdayCalendarData.convertedDate=new Date(r.getFullYear(),r.getMonth(),r.getDate()),t.profile.birthdayCalendarData.convertedDate.setMinutes(t.profile.birthdayCalendarData.convertedDate.getMinutes()-t.profile.birthdayCalendarData.convertedDate.getTimezoneOffset())}t.deleteAvatar=function(){a.updateAvatar(null)},t.deleteCover=function(){a.updateCover(null)},t.uploadCover=function(i,c){i||!c?i&&(t.loadingCover=!0,p.upload({url:scope.apiEndpoint+"upload",data:{file:i}}).then(function(d){a.updateCover(d.data).then(function(){})},function(d){alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},function(d){t.fileUploadProgress=parseInt(100*d.loaded/d.total)}).finally(function(){t.loadingCover=!1})):alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},t.uploadAvatar=function(i,c){i||!c?i&&(t.loadingAvatar=!0,p.upload({url:scope.apiEndpoint+"upload",data:{file:i}}).then(function(d){a.updateAvatar(d.data).then(function(){})},function(d){alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},function(d){t.fileUploadProgress=parseInt(100*d.loaded/d.total)}).finally(function(){t.loadingAvatar=!1})):alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},t.toggleLocationSelection=function(i){-1===t.profile.locations.indexOf(i)?t.profile.locations.push(i):t.profile.locations.splice(t.profile.locations.indexOf(i),1)},t.toggleUnsubscribe=function(){t.profile.unsubscribe=null===t.profile.unsubscribe?new Date:null},t.submitForm=function(i){if(t.profileSaved=!1,i){if(t.profile.birthdayCalendarData){var c=new Date(t.profile.birthdayCalendarData.convertedDate.getFullYear(),t.profile.birthdayCalendarData.convertedDate.getMonth(),t.profile.birthdayCalendarData.convertedDate.getDate());c.setMilliseconds(0),c.setSeconds(0),c.setMinutes(c.getMinutes()-c.getTimezoneOffset()),t.profile.birthdayCalendarData.birthday=c}t.gridApi&&(t.profile.StaffDirectoryData=t.gridApi.getData()),a.updateProfile(t.profile).then(function(){t.profileSaved=!0,t.birthdayCalendarVisible=!1,t.profile.birthdayCalendarData&&(t.profile.birthdayCalendarData.convertedDate=new Date(t.profile.birthdayCalendarData.birthday))})}},t.toggleBirthdayCalendar=function(){t.birthdayCalendarVisible=!t.birthdayCalendarVisible}}]),app.factory("profileService",["$rootScope","$http","$q","authService",function(e,t,a,n){var s={};e.$on("authenticationStateChanged",function(){h(!0)});var p=null,h=function(M){if(p||angular.equals({},s)||M){if(p)return p;var R=a.defer();return n.noop().then(function(){t.get(scope.apiEndpoint+"Profiles").then(function(V){angular.copy(V.data,s),R.resolve(s)}).catch(function(){R.reject()}).finally(function(){p=null})}).catch(function(){R.reject()}),p=R.promise}var A=a.defer();return A.resolve(s),A.promise};return{updateProfile:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"Profiles",M).then(function(R){angular.copy(R.data,s),A.resolve(s)},function(){A.reject()}),A.promise},updateAvatar:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"Profiles/Avatar",{guid:M}).then(function(R){s?(s.avatarGuid=R.data.avatarGuid,s.avatarImageUrl=R.data.avatarImageUrl+"?preset=profile-avatar"):angular.copy(R.data,s),A.resolve(s)},function(){A.reject()}),A.promise},updatePartnerAccessAllow:function(){var M=a.defer();return t.post(scope.apiEndpoint+"Profiles/PartnerAccessAllow").then(function(A){angular.copy(A.data,s),M.resolve(s)},function(){M.reject()}),M.promise},fetchExternalAvatar:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"Profiles/Avatar/FetchExternal",M).then(function(R){s?(s.avatarGuid=R.data.avatarGuid,s.avatarImageUrl=R.data.avatarImageUrl+"?preset=profile-avatar"):angular.copy(R.data,s),A.resolve(s)},function(){A.reject()}),A.promise},updateCover:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"Profiles/Cover",{guid:M}).then(function(R){s?(s.coverGuid=R.data.coverGuid,s.coverImageUrl=R.data.coverImageUrl):angular.copy(R.data,s),A.resolve(s)},function(){A.reject()}),A.promise},getProfile:h,insertFeedback:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"Sendmail/Feedback",M).then(function(R){A.resolve(R.data)},function(){A.reject()}),A.promise},insertProposedCity:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"Sendmail/ProposedCity",M).then(function(R){A.resolve(R.data)},function(){A.reject()}),A.promise},profile:s,getPublicProfile:function(M){var A=a.defer();return t.get(scope.apiEndpoint+"profiles/public/"+M).then(function(R){A.resolve(R.data)},function(){A.reject()}),A.promise},unsubscribe:function(M){var A=a.defer();return t.put(scope.apiEndpoint+"profiles/unsubscribe/"+M).then(function(R){A.resolve(R.data)},function(){A.reject()}),A.promise},updateFavoriteChapter:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"Profiles/FavoriteChapter/"+M).then(function(){A.resolve()},function(){A.reject()}),A.promise},updateFavoriteLanguage:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"Profiles/favoriteLanguage/"+M).then(function(){A.resolve()},function(){A.reject()}),A.promise},getPartnerAccessAllowData:function(){var M=a.defer();return t.get(scope.apiEndpoint+"Profiles/PartnerAccessAllowData").then(function(A){M.resolve(A.data)},function(){M.reject()}),M.promise},consentCookies:function(){var M=a.defer();return t.post(scope.apiEndpoint+"profiles/cookiesConsent").then(function(A){M.resolve(A.data)},function(){M.reject()}),M.promise},consentExternalMediaCookies:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"profiles/externalMediaCookiesConsent",M).then(function(R){A.resolve(R.data)},function(){A.reject()}),A.promise},contactSnipCreator:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"profiles/contactSnipCreator",M).then(function(R){A.resolve()},function(){A.reject()}),A.promise},getStaffDirectoryPublic:function(M){var A=a.defer();return t.get(scope.apiEndpoint+"profiles/publicstaffdirdata/"+M).then(function(R){A.resolve(R.data)},function(){A.reject()}),A.promise},getStaffDirectoryOwned:function(M){var A=a.defer();return t.get(scope.apiEndpoint+"profiles/ownstaffdirdata/"+M).then(function(R){A.resolve(R.data)},function(){A.reject()}),A.promise},updateStaffDirectory:function(M,A){var R=a.defer();return t.post(scope.apiEndpoint+"Profiles/staffdirdata/?userId="+M,A).then(function(U){angular.copy(U.data,s),R.resolve(s)},function(){R.reject()}),R.promise},getOwnPrivateStaffDirData:function(M){var A=a.defer();return t.get(scope.apiEndpoint+"profiles/ownnoneditablestaffdirdata/"+M).then(function(R){A.resolve(R.data)},function(){A.reject()}),A.promise},report:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"profiles/report",M).then(function(R){A.resolve(s)},function(){A.reject()}),A.promise},block:function(M){var A=a.defer();return t.post(scope.apiEndpoint+"profiles/block",M).then(function(R){A.resolve(s)},function(){A.reject()}),A.promise}}}]),app.controller("PublicProfileController",["$scope","$rootScope","profileService","articleService","scopeService","$stateParams","$uibModal",function(e,t,a,n,s,p,h){e.articleLimit=12,e.articleIncrement=12,e.enableUserReports=t.scope.currentScope.chapter.settings.configurations.enableUserReports,e.enableBlockUsers=t.scope.currentScope.chapter.settings.configurations.enableBlockUsers,e.enableUserReportsOrBlockForAll=t.scope.currentScope.chapter.settings.configurations.enableUserReportsOrBlockForAll,e.showReportUser=e.enableUserReports,e.showBlockUser=e.enableBlockUsers,e.loadProfile=function(){a.getPublicProfile(p.id).then(function(r){e.aprofile=r,e.aprofile.callback=e.loadProfile,e.staffDirectoryLoad=a.getStaffDirectoryPublic,e.imageContainer=s.getGlobalSettings().blobStorageCdnUrl+"/"+s.getGlobalSettings().blobStorageContainerNameImage+"/",r.isJournalist&&n.getArticlesByAuthor(p.id).then(function(i){e.articles=i}),e.showReportUser=e.enableUserReports&&(!!e.enableUserReportsOrBlockForAll||!e.aprofile.isJournalist),e.showBlockUser=e.enableBlockUsers&&(!!e.enableUserReportsOrBlockForAll||!e.aprofile.isJournalist)})},e.loadProfile(),e.reportUser=function(r){h.open({templateUrl:"/ClientApp/src/legacy-app/user/profileReportDialog.html",controller:"ProfileReportDialog",size:"lg",resolve:{profile:function(){return r}}})},e.blockUser=function(r){h.open({templateUrl:"/ClientApp/src/legacy-app/user/profileBlockDialog.html",controller:"ProfileBlockDialog",size:"lg",resolve:{profile:function(){return r}}})}}]),app.controller("ProfileReportDialog",["$scope","profile","profileService",function(e,t,a){e.working=!1,e.error=!1,e.type=-1,e.reportUser=function(){e.working=!0,a.report({reportedUserGuid:t.guid,reportingReason:e.type}).then(function(){e.working=!1,t.callback&&t.callback(),e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})}}]),app.controller("ProfileBlockDialog",["$scope","profile","profileService",function(e,t,a){e.working=!1,e.error=!1,e.type=-1,e.isBlocked=t.isBlockedByCurrentUser,e.blockUser=function(){e.working=!0,a.block({blockedUserGuid:t.guid,blockingReason:e.type}).then(function(){e.working=!1,t.callback&&t.callback(),e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})},e.unblockUser=function(){e.working=!0,a.block({blockedUserGuid:t.guid,blockingReason:e.type,performUnblock:!0}).then(function(){e.working=!1,t.callback&&t.callback(),e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})}}]),app.controller("UnsubscribeController",["$scope","profileService","$location","$stateParams",function(e,t,a,n){e.unsubscribed=!1,e.email="",a.search().email&&(e.email=a.search().email),e.unsubscribe=function(){t.unsubscribe(n.id).then(function(s){e.unsubscribed=!0,e.success=s},function(){e.unsubscribed=!0,e.success=!1}).then(function(){})}}]),app.component("userBadge",{templateUrl:"/ClientApp/src/legacy-app/user/userBadge.html",bindings:{user:"<",article:"<",snip:"<"},controller:["$state","$rootScope","scopeService","formatterService","$uibModal",function(e,t,a,n,s){var p=this;p.shortDateTimeFormatString=n.getShortDateTimeFormatString(),this.$onInit=function(){p.article&&p.article.originChapterSlug&&p.article.originNetworkSlug?a.getNetworkChapter(p.article.originChapterSlug,p.article.originNetworkSlug).then(function(h){p.crossNetworkInfo=h,p.userProfileUrl=h.network.path+("/"===h.chapter.path?"/profile/"+p.user.guid:h.chapter.path+"/profile/"+p.user.guid)}):p.userProfileUrl=t.scope.currentScope.chapter.path+"/profile/"+p.user.guid,p.article&&p.article.originArticle&&(p.originArticlePath=t.scope.currentScope.network.path+a.getChapter(p.article.originChapterSlug).path+p.article.originArticle.path)},p.userBadgeImprintDialog=function(){s.open({templateUrl:"/ClientApp/src/legacy-app/user/userBadgeImprintDialog.html",controller:"UserBadgeImprintDialog",size:"lg",resolve:{user:function(){return p.user},article:function(){return p.article}}})}}]}),app.controller("UserBadgeImprintDialog",["$scope","user","article","scopeService","authorService",function(e,t,a,n,s){e.user=t,t.freelance?s.getAuthorImprint(t.guid).then(function(p){e.impressum=p.html}):a&&a.originChapterSlug&&a.originNetworkSlug&&n.getNetworkChapter(a.originChapterSlug,a.originNetworkSlug).then(function(p){e.impressum=p.chapter.partner.settings.frontendImpressum.html})}]),app.controller("UserContactDialog",["$scope","$timeout","snip","profileService",function(e,t,a,n){e.user=a.user,e.content={snipId:a.id,message:""},e.successful=!1,e.contactFailed=!1,e.send=function(){e.content.message&&n.contactSnipCreator(e.content).then(function(){e.successful=!0,t(function(){e.$dismiss()},3e3)},function(){e.successful=!1,e.contactFailed=!0})}}]),app.controller("workflowController",["$scope","$stateParams","$location",function(e,t,a){e.workflowId=t.id,e.preview=void 0!==a.search().preview,1!=a.search().preview&&(e.revisionId=a.search().preview)}]),app.component("workflowRender",{templateUrl:"/ClientApp/src/legacy-app/workflow/workflowRenderComponent.html",bindings:{workflowid:"<",ispreview:"<",articleid:"<",revisionid:"<"},controller:["$scope","$element","$stateParams","$location","workflowService","$rootScope","profileService",function(e,t,a,n,s,p,h){var r=this;DevExpress.localization.locale(p.scope.currentScope.network.settings.languageCode),r.isOneTimeCompleted=!1,r.workflowName="",r.workflowType="",r.attachmentData=[],r.templateDefiniton={},r.reloadComplete=!1,r.uploaderStore={},r.readOnly=p.profile.readOnlyMode;var c=new Map;this.$onInit=function(){r.initializeForm=function(l){r.formInstance=l.component,o()},r.formOptions={onInitialized:r.initializeForm,labelLocation:"top"}},r.sendForm=function(){!r.formInstance.validate().isValid||r.templateDefiniton.withAttachments&&!r.fileUploader.option("isValid")?DevExpress.ui.notify({message:p.scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_error"),position:{my:"center center",at:"center center"},maxWidth:"540px"},"error",3e3):(r.templateDefiniton.submissionDataJSON=JSON.stringify(r.formInstance.option("formData")),r.ispreview||(r.isSaving=!0,r.reloadComplete=!1,r.templateDefiniton.withAttachments&&r.fileUploader.option("value").length?r.fileUploader.upload():d()))};var d=function(){r.templateDefiniton.oculusGuid=r.oculus?r.oculus.guid:null,r.templateDefiniton.attachments=[],c.forEach(function(l,g){r.templateDefiniton.attachments.push({id:g,fileName:l.name})}),s.saveWorkflowData(r.templateDefiniton).then(function(){r.oculus.click(),r.fileUploader&&(r.fileUploader.reset(),c.clear()),o(),DevExpress.ui.notify({message:p.scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_success"),position:{my:"center center",at:"center center"},onShown:function(){r.initializeForm({component:r.formInstance}),r.isSaving=!1},maxWidth:"540px"},"success",3e3)},function(l){c.size&&(r.fileUploader.reset(),r.fileUploader.option("value",Array.from(c.values())),c.forEach(function(g,u){s.deleteSubmittedFile(u)}),c.clear()),DevExpress.ui.notify({message:p.scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_error"),position:{my:"center center",at:"center center"},maxWidth:"540px"},"error",3e3),console.log(l)})},o=function(){s.getWorkflowTemplate(r.workflowid,r.ispreview,r.articleid,r.revisionid).then(function(l){if(l){r.workflowType=l.workflowType,r.templateDefiniton=l,r.templateDefiniton.articleid=r.articleid,r.isOneTimeCompleted=l.isOneTimeCompleted,r.version=l.version,r.instructions=l.fillInstructions,r.preview=r.ispreview||l.isDraft,r.workflowName=l.name;var g=JSON.parse(r.templateDefiniton.formDefinitionJSON);if(g){g.items.forEach(function(b){"dxTextArea"===b.editorType&&(b.editorOptions.minHeight=25,b.editorOptions.maxHeight=500,b.editorOptions.autoResizeEnabled=!0)}),r.formInstance.option(g);var u=JSON.parse(r.templateDefiniton.submissionDataJSON);r.formInstance.option("formData",u),r.preview&&r.formInstance.validate()}r.reloadComplete=!0,!r.preview&&(r.templateDefiniton.multipleUse||!l.isOneTimeCompleted)&&(r.oculus=Oculus.trackWorkflowImpression(t,{c:p.scope.currentScope.chapter.slug,n:p.scope.currentScope.network.slug,iw:l.id,iwt:l.workflowTemplateId})),r.templateDefiniton.withAttachments&&(r.fileUploaderOptions={multiple:!0,accept:"*",value:[],maxFileSize:p.scope.globalSettings.uploadMaxFileSizeInBytes,uploadMode:"useButtons",uploadUrl:s.getWorkflowUploadBaseUrl(),onValueChanged:function(b){b.element.find(".dx-fileuploader-upload-button").hide(),b.value.forEach(function(I){b.component.option("isValid",!0),I.size>p.scope.globalSettings.uploadMaxFileSizeInBytes&&b.component.option("isValid",!1)})},onInitialized:function(b){r.fileUploader=b.component},onFilesUploaded:function(b){d()},onUploaded:function(b){var I=JSON.parse(b.request.responseText);c.set(I,b.file)}})}else r.error=p.scope.currentScope.network.getResourceOrKeyName("web_workflow_does_not_exist")},function(l){r.error=p.scope.currentScope.network.getResourceOrKeyName("web_workflow_error_loading")})};r.sendWorkflowButtonOptions={text:p.scope.currentScope.network.getResourceOrKeyName("web_common_workflow_submit"),type:"default",onClick:r.sendForm}}]}),app.factory("workflowService",["$rootScope","$http","$q","authService",function(e,t,a,n){var h=function(){return scope.apiEndpoint+"workflow/attachment/"};return{getWorkflowTemplate:function(c,d,o,l){var g=a.defer(),u=d?"?preview=true":"";return u?(o&&(u=u+"&articleId="+o),l&&(u=u+"&revisionId="+l)):o&&(u="?articleId="+o),t.get(scope.apiEndpoint+"workflow/template/"+c+u).then(function(b){g.resolve(b.data)},function(){g.reject()}),g.promise},saveWorkflowData:function(c){var d=a.defer();return t.post(scope.apiEndpoint+"workflow/submission",JSON.stringify(c)).then(function(o){d.resolve(o.data)},function(){d.reject()}),d.promise},getWorkflowUploadBaseUrl:h,getEmbeddableWorkflowList:function(){var c=a.defer();return t.get(scope.apiEndpoint+"workflow/list/").then(function(d){c.resolve(d.data)},function(){c.reject()}),c.promise},deleteSubmittedFile:function(c){var d=a.defer();return t.delete(h()+c).then(function(o){d.resolve(!1)},function(o){d.reject("Can not delete file: "+o)}),d}}}]);
(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([[179],{96:function(fu){fu.exports=function(X){function D(E){if(w[E])return w[E].exports;var I=w[E]={exports:{},id:E,loaded:!1};return X[E].call(I.exports,I,I.exports,D),I.loaded=!0,I.exports}var w={};return D.m=X,D.c=w,D.p="dist/",D(0)}([function(X,D,w){"use strict";function E(G){return G&&G.__esModule?G:{default:G}}var I=Object.assign||function(G){for(var J=1;J<arguments.length;J++){var ne=arguments[J];for(var ae in ne)Object.prototype.hasOwnProperty.call(ne,ae)&&(G[ae]=ne[ae])}return G},y=(E(w(1)),w(6)),g=E(y),d=E(w(7)),h=E(w(8)),v=E(w(9)),x=E(w(10)),k=E(w(11)),A=E(w(14)),F=[],P=!1,N={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},B=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(P=!0),P)return F=(0,k.default)(F,N),(0,x.default)(F,N.once),F},V=function(){F=(0,A.default)(),B()};X.exports={init:function(G){N=I(N,G),F=(0,A.default)();var J=document.all&&!window.atob;return function(G){return!0===G||"mobile"===G&&v.default.mobile()||"phone"===G&&v.default.phone()||"tablet"===G&&v.default.tablet()||"function"==typeof G&&!0===G()}(N.disable)||J?void F.forEach(function(G,J){G.node.removeAttribute("data-aos"),G.node.removeAttribute("data-aos-easing"),G.node.removeAttribute("data-aos-duration"),G.node.removeAttribute("data-aos-delay")}):(N.disableMutationObserver||h.default.isSupported()||(console.info('\n      aos: MutationObserver is not supported on this browser,\n      code mutations observing has been disabled.\n      You may have to call "refreshHard()" by yourself.\n    '),N.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",N.easing),document.querySelector("body").setAttribute("data-aos-duration",N.duration),document.querySelector("body").setAttribute("data-aos-delay",N.delay),"DOMContentLoaded"===N.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?B(!0):"load"===N.startEvent?window.addEventListener(N.startEvent,function(){B(!0)}):document.addEventListener(N.startEvent,function(){B(!0)}),window.addEventListener("resize",(0,d.default)(B,N.debounceDelay,!0)),window.addEventListener("orientationchange",(0,d.default)(B,N.debounceDelay,!0)),window.addEventListener("scroll",(0,g.default)(function(){(0,x.default)(F,N.once)},N.throttleDelay)),N.disableMutationObserver||h.default.ready("[data-aos]",V),F)},refresh:B,refreshHard:V}},function(X,D){},,,,,function(X,D){(function(w){"use strict";function E(W,q,G){function J(ee){var Ce=Q,De=de;return Q=de=void 0,$e=ee,Ae=W.apply(De,Ce)}function ne(ee){return $e=ee,Ne=setTimeout(pe,q),_e?J(ee):Ae}function ge(ee){var Ce=ee-Qe;return void 0===Qe||Ce>=q||Ce<0||xe&&ee-$e>=Oe}function pe(){var ee=H();return ge(ee)?le(ee):void(Ne=setTimeout(pe,function ae(ee){var ke=q-(ee-Qe);return xe?V(ke,Oe-(ee-$e)):ke}(ee)))}function le(ee){return Ne=void 0,ve&&Q?J(ee):(Q=de=void 0,Ae)}function K(){var ee=H(),Ce=ge(ee);if(Q=arguments,de=this,Qe=ee,Ce){if(void 0===Ne)return ne(Qe);if(xe)return Ne=setTimeout(pe,q),J(Qe)}return void 0===Ne&&(Ne=setTimeout(pe,q)),Ae}var Q,de,Oe,Ae,Ne,Qe,$e=0,_e=!1,xe=!1,ve=!0;if("function"!=typeof W)throw new TypeError(c);return q=p(q)||0,C(G)&&(_e=!!G.leading,Oe=(xe="maxWait"in G)?B(p(G.maxWait)||0,q):Oe,ve="trailing"in G?!!G.trailing:ve),K.cancel=function ce(){void 0!==Ne&&clearTimeout(Ne),$e=0,Q=Qe=de=Ne=void 0},K.flush=function oe(){return void 0===Ne?Ae:le(H())},K}function C(W){var q=typeof W>"u"?"undefined":d(W);return!!W&&("object"==q||"function"==q)}function g(W){return"symbol"==(typeof W>"u"?"undefined":d(W))||function y(W){return!!W&&"object"==(typeof W>"u"?"undefined":d(W))}(W)&&N.call(W)==m}function p(W){if("number"==typeof W)return W;if(g(W))return h;if(C(W)){var q="function"==typeof W.valueOf?W.valueOf():W;W=C(q)?q+"":q}if("string"!=typeof W)return 0===W?W:+W;W=W.replace(v,"");var G=x.test(W);return G||O.test(W)?k(W.slice(2),G?2:8):b.test(W)?h:+W}var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(W){return typeof W}:function(W){return W&&"function"==typeof Symbol&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},c="Expected a function",h=NaN,m="[object Symbol]",v=/^\s+|\s+$/g,b=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,O=/^0o[0-7]+$/i,k=parseInt,M="object"==(typeof w>"u"?"undefined":d(w))&&w&&w.Object===Object&&w,A="object"==(typeof self>"u"?"undefined":d(self))&&self&&self.Object===Object&&self,F=M||A||Function("return this")(),N=Object.prototype.toString,B=Math.max,V=Math.min,H=function(){return F.Date.now()};X.exports=function I(W,q,G){var J=!0,ne=!0;if("function"!=typeof W)throw new TypeError(c);return C(G)&&(J="leading"in G?!!G.leading:J,ne="trailing"in G?!!G.trailing:ne),E(W,q,{leading:J,maxWait:q,trailing:ne})}}).call(D,function(){return this}())},function(X,D){(function(w){"use strict";function I(H){var W=typeof H>"u"?"undefined":p(H);return!!H&&("object"==W||"function"==W)}function y(H){return"symbol"==(typeof H>"u"?"undefined":p(H))||function C(H){return!!H&&"object"==(typeof H>"u"?"undefined":p(H))}(H)&&P.call(H)==h}function g(H){if("number"==typeof H)return H;if(y(H))return c;if(I(H)){var W="function"==typeof H.valueOf?H.valueOf():H;H=I(W)?W+"":W}if("string"!=typeof H)return 0===H?H:+H;H=H.replace(m,"");var q=b.test(H);return q||x.test(H)?O(H.slice(2),q?2:8):v.test(H)?c:+H}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(H){return typeof H}:function(H){return H&&"function"==typeof Symbol&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},d="Expected a function",c=NaN,h="[object Symbol]",m=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,x=/^0o[0-7]+$/i,O=parseInt,k="object"==(typeof w>"u"?"undefined":p(w))&&w&&w.Object===Object&&w,M="object"==(typeof self>"u"?"undefined":p(self))&&self&&self.Object===Object&&self,A=k||M||Function("return this")(),P=Object.prototype.toString,N=Math.max,B=Math.min,V=function(){return A.Date.now()};X.exports=function E(H,W,q){function G(ve){var ee=K,Ce=Q;return K=Q=void 0,Qe=ve,Oe=H.apply(Ce,ee)}function J(ve){return Qe=ve,Ae=setTimeout(ge,W),$e?G(ve):Oe}function ae(ve){var ee=ve-Ne;return void 0===Ne||ee>=W||ee<0||_e&&ve-Qe>=de}function ge(){var ve=V();return ae(ve)?pe(ve):void(Ae=setTimeout(ge,function ne(ve){var De=W-(ve-Ne);return _e?B(De,de-(ve-Qe)):De}(ve)))}function pe(ve){return Ae=void 0,xe&&K?G(ve):(K=Q=void 0,Oe)}function oe(){var ve=V(),ee=ae(ve);if(K=arguments,Q=this,Ne=ve,ee){if(void 0===Ae)return J(Ne);if(_e)return Ae=setTimeout(ge,W),G(Ne)}return void 0===Ae&&(Ae=setTimeout(ge,W)),Oe}var K,Q,de,Oe,Ae,Ne,Qe=0,$e=!1,_e=!1,xe=!0;if("function"!=typeof H)throw new TypeError(d);return W=g(W)||0,I(q)&&($e=!!q.leading,de=(_e="maxWait"in q)?N(g(q.maxWait)||0,W):de,xe="trailing"in q?!!q.trailing:xe),oe.cancel=function le(){void 0!==Ae&&clearTimeout(Ae),Qe=0,K=Ne=Q=Ae=void 0},oe.flush=function ce(){return void 0===Ae?Oe:pe(V())},oe}}).call(D,function(){return this}())},function(X,D){"use strict";function w(p){var d=void 0,c=void 0;for(d=0;d<p.length;d+=1)if((c=p[d]).dataset&&c.dataset.aos||c.children&&w(c.children))return!0;return!1}function E(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function y(p){p&&p.forEach(function(d){var c=Array.prototype.slice.call(d.addedNodes),h=Array.prototype.slice.call(d.removedNodes);if(w(c.concat(h)))return g()})}Object.defineProperty(D,"__esModule",{value:!0});var g=function(){};D.default={isSupported:function I(){return!!E()},ready:function C(p,d){var c=window.document,m=new(E())(y);g=d,m.observe(c.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}}},function(X,D){"use strict";function E(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(D,"__esModule",{value:!0});var I=function(){function c(h,m){for(var v=0;v<m.length;v++){var b=m[v];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(h,b.key,b)}}return function(h,m,v){return m&&c(h.prototype,m),v&&c(h,v),h}}(),C=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,y=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,g=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,p=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,d=function(){function c(){!function w(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}(this,c)}return I(c,[{key:"phone",value:function(){var h=E();return!(!C.test(h)&&!y.test(h.substr(0,4)))}},{key:"mobile",value:function(){var h=E();return!(!g.test(h)&&!p.test(h.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),c}();D.default=new d},function(X,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0});D.default=function(I,C){var y=window.pageYOffset,g=window.innerHeight;I.forEach(function(p,d){!function(I,C,y){var g=I.node.getAttribute("data-aos-once");C>I.position?I.node.classList.add("aos-animate"):typeof g<"u"&&("false"===g||!y&&"true"!==g)&&I.node.classList.remove("aos-animate")}(p,g+y,C)})}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var C=function E(g){return g&&g.__esModule?g:{default:g}}(w(12));D.default=function(g,p){return g.forEach(function(d,c){d.node.classList.add("aos-init"),d.position=(0,C.default)(d.node,p.offset)}),g}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var C=function E(g){return g&&g.__esModule?g:{default:g}}(w(13));D.default=function(g,p){var d=0,c=0,h=window.innerHeight,m={offset:g.getAttribute("data-aos-offset"),anchor:g.getAttribute("data-aos-anchor"),anchorPlacement:g.getAttribute("data-aos-anchor-placement")};switch(m.offset&&!isNaN(m.offset)&&(c=parseInt(m.offset)),m.anchor&&document.querySelectorAll(m.anchor)&&(g=document.querySelectorAll(m.anchor)[0]),d=(0,C.default)(g).top,m.anchorPlacement){case"top-bottom":break;case"center-bottom":d+=g.offsetHeight/2;break;case"bottom-bottom":d+=g.offsetHeight;break;case"top-center":d+=h/2;break;case"bottom-center":d+=h/2+g.offsetHeight;break;case"center-center":d+=h/2+g.offsetHeight/2;break;case"top-top":d+=h;break;case"bottom-top":d+=g.offsetHeight+h;break;case"center-top":d+=g.offsetHeight/2+h}return m.anchorPlacement||m.offset||isNaN(p)||(c=p),d+c}},function(X,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=function(E){for(var I=0,C=0;E&&!isNaN(E.offsetLeft)&&!isNaN(E.offsetTop);)I+=E.offsetLeft-("BODY"!=E.tagName?E.scrollLeft:0),C+=E.offsetTop-("BODY"!=E.tagName?E.scrollTop:0),E=E.offsetParent;return{top:C,left:I}}},function(X,D){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=function(E){return E=E||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(E,function(I){return{node:I}})}}])},991:function(fu){fu.exports=function(X){var D={};function w(E){if(D[E])return D[E].exports;var I=D[E]={i:E,l:!1,exports:{}};return X[E].call(I.exports,I,I.exports,w),I.l=!0,I.exports}return w.m=X,w.c=D,w.d=function(E,I,C){w.o(E,I)||Object.defineProperty(E,I,{enumerable:!0,get:C})},w.r=function(E){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},w.t=function(E,I){if(1&I&&(E=w(E)),8&I||4&I&&"object"==typeof E&&E&&E.__esModule)return E;var C=Object.create(null);if(w.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:E}),2&I&&"string"!=typeof E)for(var y in E)w.d(C,y,function(g){return E[g]}.bind(null,y));return C},w.n=function(E){var I=E&&E.__esModule?function(){return E.default}:function(){return E};return w.d(I,"a",I),I},w.o=function(E,I){return Object.prototype.hasOwnProperty.call(E,I)},w.p="",w(w.s=58)}([function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(C,y){this.x=C,this.y=y}return I.zero=function(){return new I(0,0)},I.fromNumber=function(C){return new I(C,C)},I.prototype.isZero=function(){return 0===this.x&&0===this.y},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.copyFrom=function(C){this.x=C.x,this.y=C.y},I.prototype.clone=function(){return new I(this.x,this.y)},I.prototype.equals=function(C){return this.x===C.x&&this.y===C.y},I.prototype.offset=function(C,y){return this.x+=C,this.y+=y,this},I.prototype.offsetByPoint=function(C){return this.x+=C.x,this.y+=C.y,this},I.prototype.multiply=function(C,y){return this.x*=C,this.y*=y,this},I.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},I.prototype.applyConverter=function(C){return this.x=C(this.x),this.y=C(this.y),this},I.plus=function(C,y){return new I(C.x+y.x,C.y+y.y)},I.minus=function(C,y){return new I(C.x-y.x,C.y-y.y)},I.xComparer=function(C,y){return C.x-y.x},I.yComparer=function(C,y){return C.y-y.y},I.equals=function(C,y){return C.x===y.x&&C.y===y.y},I}();D.Point=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ShapeType=D.ShapeTypes=D.ShapeCategories=void 0;var E=function(){function C(){}return C.General="general",C.Flowchart="flowchart",C.OrgChart="orgChart",C.Containers="containers",C.Custom="custom",C}();D.ShapeCategories=E;var C,I=function(){function C(){}return C.Text="text",C.Rectangle="rectangle",C.Ellipse="ellipse",C.Cross="cross",C.Triangle="triangle",C.Diamond="diamond",C.Heart="heart",C.Pentagon="pentagon",C.Hexagon="hexagon",C.Octagon="octagon",C.Star="star",C.ArrowLeft="arrowLeft",C.ArrowUp="arrowTop",C.ArrowRight="arrowRight",C.ArrowDown="arrowBottom",C.ArrowUpDown="arrowNorthSouth",C.ArrowLeftRight="arrowEastWest",C.Process="process",C.Decision="decision",C.Terminator="terminator",C.PredefinedProcess="predefinedProcess",C.Document="document",C.MultipleDocuments="multipleDocuments",C.ManualInput="manualInput",C.Preparation="preparation",C.Data="data",C.Database="database",C.HardDisk="hardDisk",C.InternalStorage="internalStorage",C.PaperTape="paperTape",C.ManualOperation="manualOperation",C.Delay="delay",C.StoredData="storedData",C.Display="display",C.Merge="merge",C.Connector="connector",C.Or="or",C.SummingJunction="summingJunction",C.Container="container",C.VerticalContainer="verticalContainer",C.HorizontalContainer="horizontalContainer",C.Card="card",C.CardWithImageOnLeft="cardWithImageOnLeft",C.CardWithImageOnTop="cardWithImageOnTop",C.CardWithImageOnRight="cardWithImageOnRight",C}();D.ShapeTypes=I,(C=D.ShapeType||(D.ShapeType={}))[C.text=0]="text",C[C.rectangle=1]="rectangle",C[C.ellipse=2]="ellipse",C[C.cross=3]="cross",C[C.triangle=4]="triangle",C[C.diamond=5]="diamond",C[C.heart=6]="heart",C[C.pentagon=7]="pentagon",C[C.hexagon=8]="hexagon",C[C.octagon=9]="octagon",C[C.star=10]="star",C[C.arrowLeft=11]="arrowLeft",C[C.arrowTop=12]="arrowTop",C[C.arrowRight=13]="arrowRight",C[C.arrowBottom=14]="arrowBottom",C[C.arrowNorthSouth=15]="arrowNorthSouth",C[C.arrowEastWest=16]="arrowEastWest",C[C.process=17]="process",C[C.decision=18]="decision",C[C.terminator=19]="terminator",C[C.predefinedProcess=20]="predefinedProcess",C[C.document=21]="document",C[C.multipleDocuments=22]="multipleDocuments",C[C.manualInput=23]="manualInput",C[C.preparation=24]="preparation",C[C.data=25]="data",C[C.database=26]="database",C[C.hardDisk=27]="hardDisk",C[C.internalStorage=28]="internalStorage",C[C.paperTape=29]="paperTape",C[C.manualOperation=30]="manualOperation",C[C.delay=31]="delay",C[C.storedData=32]="storedData",C[C.display=33]="display",C[C.merge=34]="merge",C[C.connector=35]="connector",C[C.or=36]="or",C[C.summingJunction=37]="summingJunction",C[C.verticalContainer=38]="verticalContainer",C[C.horizontalContainer=39]="horizontalContainer",C[C.cardWithImageOnLeft=40]="cardWithImageOnLeft",C[C.cardWithImageOnTop=41]="cardWithImageOnTop",C[C.cardWithImageOnRight=42]="cardWithImageOnRight"},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(C,y){this.width=C,this.height=y}return I.empty=function(){return new I(0,0)},I.fromNumber=function(C){return new I(C,C)},I.initByCommonAction=function(C){var y=function(p){return p.width},g=function(p){return p.height};return new I(C(y,g),C(g,y))},I.prototype.isEmpty=function(){return 0===this.width&&0===this.height},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},I.prototype.offset=function(C,y){return this.width=this.width+C,this.height=this.height+y,this},I.prototype.multiply=function(C,y){return this.width*=C,this.height*=y,this},I.prototype.equals=function(C){return this.width===C.width&&this.height===C.height},I.prototype.clone=function(){return new I(this.width,this.height)},I.prototype.copyFrom=function(C){this.width=C.width,this.height=C.height},I.prototype.applyConverter=function(C){return this.width=C(this.width),this.height=C(this.height),this},I.equals=function(C,y){return C.width===y.width&&C.height===y.height},I}();D.Size=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.EventUtils=D.HtmlFocusUtils=D.ObjectUtils=D.GeometryUtils=D.Utils=D.EventDispatcher=D.Range=D.LineEquation=void 0,w(174);var E=w(2),I=w(0),C=w(13),y=w(41),g=w(35),p=w(31),d=w(60),c=w(33),h=w(26),m=w(18),v=w(65),b=function(){function N(B,V,H){this.aParam=B,this.bParam=V,this.cParam=H}return N.fromPoints=function(B,V,H){return void 0===H&&(H=1e-5),M.areDuplicatedPoints(B,V,H)?void 0:new N(V.y-B.y,B.x-V.x,V.x*B.y-B.x*V.y)},N.prototype.getPointIntersection=function(B,V){void 0===V&&(V=1e-5);var H=this.aParam,W=this.bParam,q=this.cParam,G=B.aParam,J=B.bParam,ne=B.cParam,ae=G*W-H*J;if(p.MathUtils.numberCloseTo(ae,0,V))return null;if(0===H)return this.createPoint((J*q-ne*W)/(W*G),-q/W);var pe=(ne*H-q*G)/ae;return this.createPoint((-W*pe-q)/H,pe)},N.prototype.containsPoint=function(B,V){return void 0===V&&(V=1e-5),p.MathUtils.numberCloseTo(this.aParam*B.x+this.bParam*B.y+this.cParam,0,V)},N.prototype.createPoint=function(B,V,H){return void 0===H&&(H=1e-5),new I.Point(p.MathUtils.numberCloseTo(B,0,H)?0:B,p.MathUtils.numberCloseTo(V,0,H)?0:V)},N}();D.LineEquation=b;var x=function(){function N(B,V){this.from=B,this.to=void 0!==V?V:B}return Object.defineProperty(N.prototype,"length",{get:function(){return Math.abs(this.to-this.from)},enumerable:!1,configurable:!0}),N.prototype.extend=function(B){this.from=Math.min(B.from,this.from),this.to=Math.max(B.to,this.to)},N.prototype.includes=function(B){return B>=this.from&&B<=this.to},N.fromLength=function(B,V){return new N(B,B+V)},N}();D.Range=x;var O=function(){function N(){this.listeners=[]}return N.prototype.add=function(B){if(!B)throw new Error("Not Implemented");this.hasEventListener(B)||this.listeners.push(B)},N.prototype.remove=function(B){for(var V=0,H=void 0;H=this.listeners[V];V++)if(H===B){this.listeners.splice(V,1);break}},N.prototype.raise=function(B){for(var V=[],H=1;H<arguments.length;H++)V[H-1]=arguments[H];for(var W=0,q=void 0;q=this.listeners[W];W++){var G=q[B];G&&G.apply(q,V)}},N.prototype.raise1=function(B){for(var V=0,H=void 0;H=this.listeners[V];V++)B(H)},N.prototype.hasEventListener=function(B){for(var V=0,H=this.listeners.length;V<H;V++)if(this.listeners[V]===B)return!0;return!1},N}();D.EventDispatcher=O;var k=function(){function N(){}return N.flatten=function(B){return[].concat.apply([],B)},N}();D.Utils=k;var M=function(){function N(){}return N.getCommonRectangle=function(B){if(!B.length)return new C.Rectangle(0,0,0,0);var V=Number.MAX_VALUE,H=-Number.MAX_VALUE,W=Number.MAX_VALUE,q=-Number.MAX_VALUE;return B.forEach(function(G){V=Math.min(V,G.x),H=Math.max(H,G.right),W=Math.min(W,G.y),q=Math.max(q,G.bottom)}),new C.Rectangle(V,W,H-V,q-W)},N.findFreeSpace=function(B,V,H,W){var q=[W?W.x:0],G=[W?W.y:0];B.forEach(function(oe){q.push(oe.x),q.push(oe.right),G.push(oe.y),G.push(oe.bottom)}),q=q.sort(function(oe,K){return oe-K}).reduce(function(oe,K,Q){return q[Q-1]!==K&&oe.push(K)&&oe||oe},[]);for(var J=(G=G.sort(function(oe,K){return oe-K}).reduce(function(oe,K,Q){return G[Q-1]!==K&&oe.push(K)&&oe||oe},[])).map(function(oe){return q.map(function(K,Q){return q[Q+1]-K})}),ne=function(oe,K){for(var Q=y.SearchUtils.binaryIndexOf(q,function($e){return $e-K.x}),de=y.SearchUtils.binaryIndexOf(q,function($e){return $e-K.right}),Oe=y.SearchUtils.binaryIndexOf(G,function($e){return $e-K.y}),Ae=y.SearchUtils.binaryIndexOf(G,function($e){return $e-K.bottom}),Ne=Oe;Ne<Ae;Ne++)for(var Qe=Q;Qe<de;Qe++)J[Ne][Qe]*=-1},ae=0,ge=void 0;ge=B[ae];ae++)ne(0,ge);for(var pe=0;pe<G.length;pe++)for(var le=0;le<q.length-1;le++){var ce=this.checkRect(J,G,q,pe,le,V,H);if(ce>0)le=ce;else if(0===ce)return new I.Point(q[le],G[pe])}return null},N.checkRect=function(B,V,H,W,q,G,J){for(var ne=0,ae=0,ge=H.length-2,pe=W;pe<V.length;pe++){ne=V[pe+1]-V[W];for(var le=q;le<=ge;le++){if(B[pe][le]<0)return 0===le?-1:le;if(G.width<=(ae=H[le+1]-H[q])||!J&&le===H.length-2&&G.width/2<=ae){if(G.height<=ne||!J&&pe===V.length-2&&G.height/2<=ne)return 0;ge=le}}}},N.getArrowPoints=function(B,V,H,W){if(B.x===V.x&&B.y===V.y)return{point1:B.clone(),point2:B.clone(),point3:B.clone()};var q=V.x-B.x,G=V.y-B.y,J=Math.sqrt(Math.pow(q,2)+Math.pow(G,2)),ne=q/J,ae=G/J,le=B.x+H*ne-W*ae,ce=B.y+H*ae+W*ne,oe=B.x+H*ne,K=B.y+H*ae;return{point1:new I.Point(B.x+H*ne+W*ae,B.y+H*ae-W*ne),point2:new I.Point(le,ce),point3:new I.Point(oe,K)}},N.createSegments=function(B){for(var V=[],H=1;H<B.length;H++)V.push(new c.Segment(B[H-1],B[H]));return V},N.createRectagle=function(B){var V=B.map(function(ne){return ne.x}),H=B.map(function(ne){return ne.y}),W=V.reduce(function(ne,ae){return Math.min(ne,ae)},Number.MAX_VALUE),q=V.reduce(function(ne,ae){return Math.max(ne,ae)},-Number.MAX_VALUE),G=H.reduce(function(ne,ae){return Math.min(ne,ae)},Number.MAX_VALUE),J=H.reduce(function(ne,ae){return Math.max(ne,ae)},-Number.MAX_VALUE);return new C.Rectangle(W,G,q-W,J-G)},N.createSegmentsFromRectangle=function(B){var V=[],H=new I.Point(B.x,B.y),W=new I.Point(B.right,B.y),q=new I.Point(B.right,B.bottom),G=new I.Point(B.x,B.bottom);return V.push(new c.Segment(H,W)),V.push(new c.Segment(W,q)),V.push(new c.Segment(q,G)),V.push(new c.Segment(G,H)),V},N.areSegmentsCutRectangle=function(B,V){if(!V)return!1;for(var H=N.createSegmentsFromRectangle(V),W=!1,q=!1,G=function(ae){if(W&&q)return{value:!0};var ge=B[ae];if(ge.isIntersectedByRect(V)){var pe=ge.startPoint,le=ge.endPoint,ce=V.containsPoint(pe),oe=V.containsPoint(le);if(!ce&&!oe)return{value:!0};if(ce&&!oe){var K=H.filter(function(Ae){return Ae.containsPoint(pe)});return K.length>0&&H.filter(function(Ae){return 1===K.length?!Ae.containsPoint(K[0].startPoint)&&!Ae.containsPoint(K[0].endPoint):Ae!==K[0]&&Ae!==K[1]}).some(function(Ae){return ge.isIntersected(Ae)})&&!W&&(W=!0),q||(q=!0),"continue"}if(!ce&&oe){W||(W=!0,q&&(q=!1));var Q=H.filter(function(Ae){return Ae.containsPoint(le)});return Q.length>0&&H.filter(function(Ae){return 1===Q.length?!Ae.containsPoint(Q[0].startPoint)&&!Ae.containsPoint(Q[0].endPoint):Ae!==Q[0]&&Ae!==Q[1]}).some(function(Ae){return ge.isIntersected(Ae)})&&!q&&(q=!0),"continue"}var de=H.filter(function(Ae){return Ae.containsPoint(pe)}),Oe=H.filter(function(Ae){return Ae.containsPoint(le)});if(2===de.length&&2===Oe.length)return{value:!0};if(1===de.length&&1===Oe.length&&de[0]!==Oe[0])return{value:!0};q||1!==Oe.length||de.length||(q=!0),W||1!==de.length||Oe.length||(W=!0,q&&(q=!1))}},J=0;J<B.length;J++){var ne=G(J);if("object"==typeof ne)return ne.value}return W&&q},N.areIntersectedSegments=function(B,V){if(!V)return!1;for(var H,W=0;H=B[W];){for(var q=0,G=void 0;G=V[q];){if(G.isIntersected(H))return!0;q++}W++}return!1},N.isLineIntersected=function(B,V,H,W,q){var G=b.fromPoints(B,V),J=H.startPoint,ne=H.endPoint;if(G.containsPoint(J)&&G.containsPoint(ne))return!W&&!q;var ae=b.fromPoints(J,ne).getPointIntersection(G);return!(!ae||!H.containsPoint(ae)||(W?N.areDuplicatedPoints(J,ae):q&&N.areDuplicatedPoints(ne,ae)))},N.removeUnnecessaryPoints=function(B,V,H,W){void 0===H&&(H=function(q){return void 0!==q}),void 0===W&&(W=1e-5),this.removeUnnecessaryPointsCore(B,V,H,W),this.removeBackwardPoints(B,V,H,W),this.removeUnnecessaryPointsCore(B,V,H,W)},N.removeUnnecessaryRightAnglePoints=function(B,V,H,W){void 0===H&&(H=function(q){return void 0!==q}),void 0===W&&(W=1e-5),this.removeUnnecessaryPointsCore(B,V,H,W),this.removeBackwardPoints(B,V,H,W),this.removeNotRightAnglePoints(B,V,H,W),this.removeUnnecessaryPointsCore(B,V,H,W)},N.removeUnnecessaryPointsCore=function(B,V,H,W){void 0===H&&(H=function(q){return void 0!==q}),void 0===W&&(W=1e-5),this.removeDuplicatedPoints(B,V,H,W),this.removeNotCornersPoints(B,V,H,W)},N.removeNotRightAnglePoints=function(B,V,H,W){void 0===H&&(H=function(ae){return void 0!==ae}),void 0===W&&(W=1e-5);for(var q,G=0;(q=B[G])&&B.length>2;){var J=this.getNextPoint(B,G,1,H),ne=this.getNextPoint(B,G,-1,H);ne&&J&&!N.isRightAngleCorner(ne,q,J,W)&&V(q,G)||G++}},N.removeDuplicatedPoints=function(B,V,H,W){void 0===H&&(H=function(ae){return void 0!==ae}),void 0===W&&(W=1e-5);for(var q,G=0;(q=B[G])&&B.length>2;){var J=this.getNextPoint(B,G,1,H);if(J&&N.areDuplicatedPoints(q,J,W)){var ne=G===B.length-2?G:G+1;if(V(B[ne],ne))continue}G++}},N.removeNotCornersPoints=function(B,V,H,W){void 0===H&&(H=function(ae){return void 0!==ae}),void 0===W&&(W=1e-5);for(var q,G=0;(q=B[G])&&B.length>2;){var J=this.getNextPoint(B,G,1,H),ne=this.getNextPoint(B,G,-1,H);ne&&J&&!N.isCorner(ne,q,J,W)&&V(q,G)||G++}},N.removeBackwardPoints=function(B,V,H,W){void 0===H&&(H=function(ae){return void 0!==ae}),void 0===W&&(W=1e-5);for(var q,G=0;(q=B[G])&&B.length>2;){var J=this.getNextPoint(B,G,1,H),ne=this.getNextPoint(B,G,-1,H);ne&&J&&N.isBackwardPoint(ne,q,J,W)&&V(q,G)||G++}},N.isRightAngleCorner=function(B,V,H,W){return void 0===W&&(W=1e-5),p.MathUtils.numberCloseTo(N.createAngle(B,V,H),Math.PI/2,W)||p.MathUtils.numberCloseTo(N.createAngle(B,V,H),Math.PI,W)||p.MathUtils.numberCloseTo(N.createAngle(B,V,H),3*Math.PI/2,W)},N.isCorner=function(B,V,H,W){return void 0===W&&(W=1e-5),!p.MathUtils.numberCloseTo(N.createAngle(B,V,H),0,W)},N.areDuplicatedPoints=function(B,V,H){return void 0===H&&(H=1e-5),p.MathUtils.numberCloseTo(B.x,V.x,H)&&p.MathUtils.numberCloseTo(B.y,V.y,H)},N.isBackwardPoint=function(B,V,H,W){return void 0===W&&(W=1e-5),p.MathUtils.numberCloseTo(N.createAngle(B,V,H),Math.PI,W)},N.createAngle=function(B,V,H){var W=d.Vector.fromPoints(V,H),q=d.Vector.fromPoints(B,V),G=W.x,J=W.y,ne=q.x,ae=q.y,ge=Math.atan2(G*ae-ne*J,G*ne+J*ae);return ge<0?2*Math.PI+ge:ge},N.getNextPoint=function(B,V,H,W){for(var q,G=V+H;q=B[G];){if(W(q))return q;G+=H}},N.addSelectedLinesTo=function(B,V,H,W,q,G,J,ne,ae,ge,pe,le,ce,oe){void 0===oe&&(oe=1e-5);var K=V.y-B.y,Q=H.y-V.y,de=B.x-V.x,Oe=V.x-H.x,Ae=K*Oe-Q*de;if(!p.MathUtils.numberCloseTo(Ae,0,oe)){var Ne=K*(B.x+W)+de*(B.y+q),Qe=Q*(V.x+ne)+Oe*(V.y+ae);le((Oe*Ne-de*Qe)/Ae,(K*Qe-Q*Ne)/Ae);var $e=K*(B.x+G)+de*(B.y+J),_e=Q*(V.x+ge)+Oe*(V.y+pe);ce((Oe*$e-de*_e)/Ae,(K*_e-Q*$e)/Ae)}},N.getSelectionOffsetPoint=function(B,V,H){return new I.Point((B.y-V.y)/H,(V.x-B.x)/H)},N.getSelectionTextStartEndPoints=function(B,V,H,W,q,G){var J=(V.x-B.x)/H,ne=(V.y-B.y)/H,ae=q.width*J+q.height*ne;switch(G){case h.TextAlignment.Left:return[W,new I.Point(W.x+J*ae,W.y+ne*ae)];case h.TextAlignment.Right:return[new I.Point(W.x-J*ae,W.y-ne*ae),W];default:return[new I.Point(W.x-.5*J*ae,W.y-.5*ne*ae),new I.Point(W.x+.5*J*ae,W.y+.5*ne*ae)]}},N.getPathLength=function(B){var V,H=0;return B.forEach(function(W){void 0!==V&&(H+=g.Metrics.euclideanDistance(W,V)),V=W}),H},N.getPathPointByPosition=function(B,V){if(!B.length)throw new Error("Invalid points");if(0>V||V>1)throw new Error("Invalid relative position");var H=this.getPathLength(B);if(B.length<=2&&0===H||0===V)return[B[0],0];for(var W=H*V,q=0,G=1;G<B.length;G++){var J=g.Metrics.euclideanDistance(B[G],B[G-1]);if(q+J>=W){var ne=W-q;return[new I.Point(B[G-1].x+(B[G].x-B[G-1].x)/J*ne,B[G-1].y+(B[G].y-B[G-1].y)/J*ne),G]}q+=J}return[B[B.length-1],B.length-1]},N.getLineAngle=function(B,V){return Math.atan2(V.y-B.y,V.x-B.x)},N.getTriangleBeginAngle=function(B,V,H){var W=this.getLineAngle(B,V),q=this.getLineAngle(B,H);return Math.abs(q-W)},N.getTriangleEndAngle=function(B,V,H){var W=this.getLineAngle(B,V),q=this.getLineAngle(H,V);return Math.abs(W-q)},N.getPathPointByPoint=function(B,V){if(!B.length)throw new Error("Invalid points");if(1===B.length)return B[0];for(var H,W=Number.MAX_VALUE,q=1;q<B.length;q++){var G=B[q-1],J=B[q];if(V.equals(G)){H=G.clone();break}if(V.equals(J)){H=J.clone();break}var ce,ne=this.getTriangleBeginAngle(G,J,V),ae=this.getTriangleEndAngle(G,J,V),ge=g.Metrics.euclideanDistance(V,G),pe=g.Metrics.euclideanDistance(V,J),le=ge*Math.sin(ne);if((ce=Math.PI/2<=ne&&ne<=3*Math.PI/2?ge:Math.PI/2<=ae&&ae<=3*Math.PI/2?pe:Math.abs(le))<W)if(W=ce,Math.PI/2<=ne&&ne<=3*Math.PI/2)H=G.clone();else if(Math.PI/2<=ae&&ae<=3*Math.PI/2)H=J.clone();else{var oe=Math.fround||Math.round,K=this.getLineAngle(G,J),Q=oe(Math.abs(le*Math.sin(K))),de=oe(Math.abs(le*Math.cos(K))),Oe=V.y-G.y<oe((V.x-G.x)*Math.tan(K));0<=K&&K<=Math.PI/2?(Q*=Oe?-1:1,de*=Oe?1:-1):Math.PI/2<=K&&K<=Math.PI||0>=K&&K>=-Math.PI/2?(Q*=Oe?1:-1,de*=Oe?1:-1):-Math.PI/2>=K&&K>=-Math.PI&&(Q*=Oe?-1:1,de*=Oe?1:-1),H=V.clone().offset(Q,de)}}return H},N.getPathPositionByPoint=function(B,V,H){void 0===H&&(H=100),V=this.getPathPointByPoint(B,V);for(var W=this.getPathLength(B),q=0,G=1;G<B.length;G++){var J=B[G-1],ne=B[G],ae=g.Metrics.euclideanDistance(ne,J),ge=Math.atan((ne.y-J.y)/(ne.x-J.x)),pe=Math.fround||Math.round;if(V.x===ne.x&&V.x===J.x||V.y===ne.y&&V.y===J.y||pe(V.y-J.y)===pe((V.x-J.x)*Math.tan(ge)))return 0!==Math.sin(ge)?q+=Math.abs((V.y-J.y)/Math.sin(ge)):q+=Math.abs(V.x-J.x),Math.round(q*H/W)/H;q+=ae}return 1},N.arePointsEqual=function(B,V){var H=B.length;if(H!==V.length)return!1;for(var W=0;W<H;W++)if(!B[W].equals(V[W]))return!1;return!0},N.getMaxRectangleEnscribedInEllipse=function(B){var V=B.width*Math.sqrt(2)/2,H=B.height*Math.sqrt(2)/2;return new E.Size(V,H)},N.getEllipseByEnscribedRectangle=function(B){return new E.Size(2*B.width/Math.sqrt(2),2*B.height/Math.sqrt(2))},N}();D.GeometryUtils=M;var A=function(){function N(){}return N.cloneObject=function(B){return B&&Object.assign({},B)},N.compareObjects=function(B,V){return B===V||"object"==typeof B&&"object"==typeof V&&this.isDeepEqual(B,V)},N.isDeepEqual=function(B,V){var H=B?Object.getOwnPropertyNames(B):[],W=V?Object.getOwnPropertyNames(V):[];if(H.length!==W.length)return!1;for(var q=0;q<H.length;q++){var G=H[q];switch(typeof B[G]){case"object":if(!this.isDeepEqual(B[G],V[G]))return!1;break;case"number":if(!(isNaN(B[G])&&isNaN(V[G])||B[G]===V[G]))return!1;break;default:if(B[G]!==V[G])return!1}}return!0},N}();D.ObjectUtils=A;var F=function(){function N(){}return N.focusWithPreventScroll=function(B){try{var V=m.Browser.Safari,H=V&&this.getHtmlScrollPosition();if(V){var W=B.parentElement&&B.parentElement.getBoundingClientRect();if(W){var q=W.left<0?1-W.left:0,G=W.top<0?1-W.top:0,J=window.frameElement&&window.frameElement.getBoundingClientRect();J&&(J.top<0&&-J.top>W.top&&(G=-J.top-W.top+1),J.left<0&&-J.left>W.left&&(q=-J.left-W.left+1)),B.style.setProperty("left",q+"px","important"),B.style.setProperty("top",G+"px","important")}}if(B.focus({preventScroll:!0}),V){var ne=this.getHtmlScrollPosition();A.compareObjects(H,ne)||this.setHtmlScrollPosition(H),B.style.setProperty("left","-1000px","important"),B.style.setProperty("top","-1000px","important")}}catch{}},N.getHtmlScrollPosition=function(){return{pos:this.getDocumentScrollPosition(window,document),iframePos:window.top!==window&&this.getDocumentScrollPosition(window.top,window.top.document)}},N.getDocumentScrollPosition=function(B,V){return{left:B.pageXOffset||V.documentElement.scrollLeft||V.body.scrollLeft,top:B.pageYOffset||V.documentElement.scrollTop||V.body.scrollTop}},N.setHtmlScrollPosition=function(B){this.setDocumentScrollPosition(document,B.pos),window.top!==window&&B.iframePos&&this.setDocumentScrollPosition(window.top.document,B.iframePos)},N.setDocumentScrollPosition=function(B,V){B.documentElement.scrollTop=V.top,B.documentElement.scrollLeft=V.left,B.body.scrollTop=V.top,B.body.scrollLeft=V.left},N}();D.HtmlFocusUtils=F;var P=function(){function N(){}return N.isLeftButtonPressed=function(B){return v.EvtUtils.isLeftButtonPressed(B)},N.isPointerEvents=function(){return window.PointerEvent},N.isMousePointer=function(B){return this.isPointerEvents()&&B.pointerType&&"mouse"===B.pointerType},N.isTouchMode=function(){return m.Browser.TouchUI||window.navigator&&window.navigator.maxTouchPoints>0},N.isTouchEvent=function(B){return m.Browser.TouchUI||!N.isMousePointer(B)},N}();D.EventUtils=P},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ModelUtils=void 0;var E=w(12),I=w(35),C=w(0),y=w(13),g=w(2),p=w(60),d=w(31),c=w(47),h=w(48),m=w(66),v=w(188),b=w(53),x=w(86),O=w(112),k=w(67),M=w(113),A=w(114),F=w(189),P=w(190),N=w(191),B=w(192),V=w(115),H=w(68),W=w(193),q=w(194),G=w(88),J=w(69),ne=w(116),ae=w(117),ge=w(89),pe=w(70),le=w(54),ce=w(195),oe=w(38),K=w(3),Q=w(6),de=w(32),Oe=w(29),Ae=w(85),Ne=w(14),Qe=function(){function $e(){}return $e.setShapePosition=function(_e,xe,ve,ee,Ce){if(void 0===Ce&&(Ce=!0),!ve.position.equals(ee)){var De=ee.clone().offset(-ve.position.x,-ve.position.y);_e.addAndRedo(new N.MoveShapeHistoryItem(ve.key,ee)),Ce&&ve.children.forEach(function(ke){if(ke instanceof Ne.Shape){var Fe=ke.position.clone().offset(De.x,De.y);$e.setShapePosition(_e,xe,ke,Fe)}})}},$e.setShapeSize=function(_e,xe,ve,ee,Ce){ve.size.equals(Ce)&&ve.position.equals(ee)||_e.addAndRedo(new V.ResizeShapeHistoryItem(ve.key,ee,Ce))},$e.addConnectorPoint=function(_e,xe,ve,ee){_e.addAndRedo(new v.AddConnectorPointHistoryItem(xe,ve,ee))},$e.deleteConnectorCustomPoints=function(_e,xe){if(xe.points.length>2){var ve=xe.tryCreateRenderPointsContext();if(xe.properties.lineOption!==de.ConnectorLineOption.Straight&&ve){var ee=xe.points[0].clone(),Ce=xe.points[xe.points.length-1].clone();_e.addAndRedo(new x.ChangeConnectorPointsHistoryItem(xe.key,[ee,Ce],new Ae.ConnectorRenderPointsContext([new Oe.ConnectorRenderPoint(ee.x,ee.y,0),new Oe.ConnectorRenderPoint(Ce.x,Ce.y,1)],!1,ve.actualRoutingMode)))}else _e.addAndRedo(new x.ReplaceConnectorPointsHistoryItem(xe.key,[xe.points[0].clone(),xe.points[xe.points.length-1].clone()]))}},$e.deleteConnectorUnnecessaryPoints=function(_e,xe){var ve=xe.getRenderPoints(!0).map(function(ze){return ze.clone()});if(xe.properties.lineOption===de.ConnectorLineOption.Straight){var ee=$e.createUnnecessaryRenderPoints(ve.filter(function(ze){return!ze.skipped}).map(function(ze){return ze.clone()}),xe.skippedRenderPoints,function(ze){return $e.findFirstPointIndex(ve,function(Pe){return Pe.equals(ze)})});Object.keys(ee).length&&_e.addAndRedo(new x.ReplaceConnectorPointsHistoryItem(xe.key,$e.createNecessaryPoints(xe.points.map(function(ze){return ze.clone()}),ee)))}else{var Ce=xe.tryCreateRenderPointsContext(!0),De=ve.filter(function(ze){return!ze.skipped}).map(function(ze){return ze.clone()});if(ee=$e.createUnnecessaryRightAngleRenderPoints(De,xe.skippedRenderPoints,function(ze){return $e.findFirstPointIndex(ve,function(Pe){return Pe.equals(ze)})}),Object.keys(ee).length){var ke=$e.createNecessaryPoints(xe.points.map(function(ze){return ze.clone()}),ee),Fe=new Ae.ConnectorRenderPointsContext($e.validateRenderPointIndexes(ke,De,0),Ce.lockCreateRenderPoints,Ce.actualRoutingMode);_e.addAndRedo(new x.ChangeConnectorPointsHistoryItem(xe.key,ke,Fe))}}},$e.fixConnectorBeginEndConnectionIndex=function(_e,xe){if(xe.beginItem&&-1===xe.beginConnectionPointIndex){var ve=xe.beginItem.getNearestConnectionPoint(xe.points[0]);_e.addAndRedo(new h.SetConnectionPointIndexHistoryItem(xe,ve,Q.ConnectorPosition.Begin))}if(xe.endItem&&-1===xe.endConnectionPointIndex){var ee=xe.endItem.getNearestConnectionPoint(xe.points[xe.points.length-1]);_e.addAndRedo(new h.SetConnectionPointIndexHistoryItem(xe,ee,Q.ConnectorPosition.End))}},$e.skipUnnecessaryRenderPoints=function(_e){var xe=_e.map(function(ve){return ve.clone()});$e.removeUnnecessaryRenderPoints(xe),_e.forEach(function(ve){return ve.skipped=xe.some(function(ee){return ee.skipped&&ee.equals(ve)})}),_e[0].skipped=!1,_e[_e.length-1].skipped=!1},$e.skipUnnecessaryRightAngleRenderPoints=function(_e){var xe=_e.map(function(ve){return ve.clone()});$e.removeUnnecessaryRightAngleRenderPoints(xe),_e.forEach(function(ve){return ve.skipped=xe.some(function(ee){return ee.skipped&&ee.equals(ve)})}),_e[0].skipped=!1,_e[_e.length-1].skipped=!1},$e.removeUnnecessaryRenderPoints=function(_e){K.GeometryUtils.removeUnnecessaryPoints(_e,function(xe,ve){return $e.removeUnnecessaryPoint(_e,xe,ve)},function(xe){return void 0!==xe&&!xe.skipped}),_e[0].skipped=!1,_e[_e.length-1].skipped=!1},$e.removeUnnecessaryRightAngleRenderPoints=function(_e){K.GeometryUtils.removeUnnecessaryRightAnglePoints(_e,function(xe,ve){return $e.removeUnnecessaryPoint(_e,xe,ve)},function(xe){return void 0!==xe&&!xe.skipped}),_e[0].skipped=!1,_e[_e.length-1].skipped=!1},$e.createUnnecessaryRenderPoints=function(_e,xe,ve,ee){void 0===ee&&(ee=function(De){return!0});var Ce={};return K.GeometryUtils.removeUnnecessaryPoints(_e,function(De,ke){return $e.collectNotSkippedRenderPoints(Ce,_e,De,ke,ve,ee)}),$e.collectSkippedRenderPoints(Ce,xe,ve,ee),Ce},$e.createUnnecessaryRightAngleRenderPoints=function(_e,xe,ve,ee){void 0===ee&&(ee=function(De){return!0});var Ce={};return K.GeometryUtils.removeUnnecessaryRightAnglePoints(_e,function(De,ke){return $e.collectNotSkippedRenderPoints(Ce,_e,De,ke,ve,ee)}),$e.collectSkippedRenderPoints(Ce,xe,ve,ee),Ce},$e.createNecessaryPoints=function(_e,xe){var ve=this,ee=[],Ce=_e.length-1;return _e.forEach(function(De,ke){(0===ke||ke===Ce||ve.isNecessaryPoint(De,ke,xe))&&ee.push(De.clone())}),ee},$e.isNecessaryPoint=function(_e,xe,ve){return!Object.keys(ve).some(function(ee){var Ce=ve[ee];return Ce.pointIndex===xe&&K.GeometryUtils.areDuplicatedPoints(_e,Ce)})},$e.collectSkippedRenderPoints=function(_e,xe,ve,ee){void 0===ee&&(ee=function(Ce){return!0}),xe&&xe.forEach(function(Ce){if(ee(Ce)){var De=ve(Ce);void 0===_e[De]&&(_e[De]=Ce)}})},$e.collectNotSkippedRenderPoints=function(_e,xe,ve,ee,Ce,De){if(void 0===De&&(De=function(Fe){return!0}),!De(ve))return!1;var ke=Ce(ve);return void 0===_e[ke]&&(_e[ke]=ve,ve.skipped=!0,xe.splice(ee,1)),!0},$e.removeUnnecessaryPoint=function(_e,xe,ve){return-1===xe.pointIndex?(_e.splice(ve,1),!0):(xe.skipped=!0,!1)},$e.validateRenderPointIndexes=function(_e,xe,ve){var ee=this,Ce=xe.map(function(De,ke){return new Oe.ConnectorRenderPoint(De.x,De.y,ke>=ve&&De.pointIndex>=0?ee.findFirstPointIndex(_e,function(Fe){return Fe.equals(De)}):De.pointIndex,De.skipped)});return Ce[0].skipped=!1,Ce[Ce.length-1].skipped=!1,Ce},$e.findFirstPointIndex=function(_e,xe){if(!_e||!xe)return-1;for(var ve=0;ve<_e.length;ve++)if(xe(_e[ve]))return ve;return-1},$e.moveConnectorRightAnglePoints=function(_e,xe,ve,ee,Ce,De){K.GeometryUtils.areDuplicatedPoints(xe.points[ee],ve)&&K.GeometryUtils.areDuplicatedPoints(xe.points[De],Ce)||_e.addAndRedo(new P.MoveConnectorRightAnglePointsHistoryItem(xe.key,ee,ve,De,Ce))},$e.moveConnectorPoint=function(_e,xe,ve,ee){return!xe.points[ve].equals(ee)&&(_e.addAndRedo(new P.MoveConnectorPointHistoryItem(xe.key,ve,ee)),!0)},$e.updateConnectorAttachedPoints=function(_e,xe,ve){_e.beginTransaction();var ee=ve.beginItem&&xe.findItemCollapsedContainer(ve.beginItem),Ce=ee&&(!ve.endItem||!xe.isContainerItem(ee,ve.endItem)),De=ve.endItem&&xe.findItemCollapsedContainer(ve.endItem),ke=De&&(!ve.beginItem||!xe.isContainerItem(De,ve.beginItem)),Fe=!1;return Fe=Ce?this.updateConnectorBeginPoint(_e,ve,ee,ke&&De||ve.endItem,function(ze){return ee.getConnectionPointIndexForItem(ve.beginItem,ze)})||Fe:this.updateConnectorBeginPoint(_e,ve,ve.beginItem,ke&&De||ve.endItem)||Fe,Fe=ke?this.updateConnectorEndPoint(_e,ve,De,function(ze){return De.getConnectionPointIndexForItem(ve.beginItem,ze)})||Fe:this.updateConnectorEndPoint(_e,ve,ve.endItem)||Fe,_e.endTransaction(),Fe},$e.updateConnectorBeginPoint=function(_e,xe,ve,ee,Ce){if(ve){var De=void 0!==Ce?Ce(xe.beginConnectionPointIndex):xe.beginConnectionPointIndex,ke=xe.points[1];ee&&2===xe.points.length&&(ke=-1!==xe.endConnectionPointIndex?ee.getConnectionPointPosition(xe.endConnectionPointIndex,C.Point.zero()):ee.rectangle.center);var Fe=ve.getConnectionPointPosition(De,ke);return this.moveConnectorPoint(_e,xe,0,Fe.clone())}},$e.updateConnectorEndPoint=function(_e,xe,ve,ee){if(ve){var Ce=void 0!==ee?ee(xe.endConnectionPointIndex):xe.endConnectionPointIndex,De=ve.getConnectionPointPosition(Ce,xe.points[xe.points.length-2]);return this.moveConnectorPoint(_e,xe,xe.points.length-1,De)}},$e.updateContainerConnectorsAttachedPoints=function(_e,xe,ve,ee){var Ce=this;void 0===ee&&(ee=ve),_e.beginTransaction(),xe.getChildren(ee).forEach(function(De){De instanceof Ne.Shape&&(De.attachedConnectors.forEach(function(ke){var Fe=ke.beginItem&&xe.isContainerItem(ee,ke.beginItem),ze=ke.endItem&&xe.isContainerItem(ee,ke.endItem);if(Fe&&!ze){var Pe=xe.findItemTopCollapsedContainer(ke.beginItem),be=ke.endItem&&xe.findItemTopCollapsedContainer(ke.endItem);Pe?Ce.updateConnectorBeginPoint(_e,ke,Pe,be||ke.endItem,function(me){return ve.getConnectionPointIndexForItem(ke.beginItem,me)}):Ce.updateConnectorBeginPoint(_e,ke,ke.beginItem,be||ke.endItem)}ze&&!Fe&&((Pe=xe.findItemTopCollapsedContainer(ke.endItem))?Ce.updateConnectorEndPoint(_e,ke,Pe,function(me){return ve.getConnectionPointIndexForItem(ke.endItem,me)}):Ce.updateConnectorEndPoint(_e,ke,ke.endItem))}),Ce.updateContainerConnectorsAttachedPoints(_e,xe,ve,De))}),_e.endTransaction()},$e.getConnectorsWithoutBeginItemInfo=function(_e){return _e.findConnectorsWithoutBeginItem().map(function(xe){return{connector:xe,point:xe.points[0].clone()}})},$e.getConnectorsWithoutEndItemInfo=function(_e){return _e.findConnectorsWithoutEndItem().map(function(xe){return{connector:xe,point:xe.points[xe.points.length-1].clone()}})},$e.updateShapeAttachedConnectors=function(_e,xe,ve){var ee=this;ve.attachedConnectors.forEach(function(Ce){ee.tryRemoveConnectorIntermediatePoints(_e,Ce),ee.updateConnectorAttachedPoints(_e,xe,Ce)})},$e.updateMovingShapeConnections=function(_e,xe,ve,ee,Ce,De,ke){var Fe=this;Ce(),ve.forEach(function(ze){var Pe=Fe.getMovingShapeConnectionPointIndex(xe,ze.point);xe.rectangle.containsPoint(ze.point)||Pe>-1?(De(xe,Pe),Pe!==ze.connector.beginConnectionPointIndex&&ze.connector.beginItem&&_e.addAndRedo(new k.DeleteConnectionHistoryItem(ze.connector,Q.ConnectorPosition.Begin)),ke(ze.connector),_e.addAndRedo(new h.AddConnectionHistoryItem(ze.connector,xe,Pe,Q.ConnectorPosition.Begin))):ze.connector.beginItem&&(_e.addAndRedo(new k.DeleteConnectionHistoryItem(ze.connector,Q.ConnectorPosition.Begin)),_e.addAndRedo(new P.MoveConnectorPointHistoryItem(ze.connector.key,0,ze.point)))}),ee.forEach(function(ze){var Pe=Fe.getMovingShapeConnectionPointIndex(xe,ze.point);xe.rectangle.containsPoint(ze.point)||Pe>-1?(De(xe,Pe),Pe!==ze.connector.endConnectionPointIndex&&ze.connector.endItem&&_e.addAndRedo(new k.DeleteConnectionHistoryItem(ze.connector,Q.ConnectorPosition.End)),ke(ze.connector),_e.addAndRedo(new h.AddConnectionHistoryItem(ze.connector,xe,Pe,Q.ConnectorPosition.End))):ze.connector.endItem&&(_e.addAndRedo(new k.DeleteConnectionHistoryItem(ze.connector,Q.ConnectorPosition.End)),_e.addAndRedo(new P.MoveConnectorPointHistoryItem(ze.connector.key,ze.connector.points.length-1,ze.point)))})},$e.getMovingShapeConnectionPointIndex=function(_e,xe){var ve=this,ee=-1;return _e.getConnectionPoints().forEach(function(Ce,De){I.Metrics.euclideanDistance(xe,Ce)<ve.connectionPointActionSize&&(ee=De)}),ee},$e.shouldRemoveConnectorIntermediatePoints=function(_e,xe){if(_e.properties.lineOption!==de.ConnectorLineOption.Orthogonal||2===_e.points.length||!xe||!xe.length)return!1;for(var ve,ee=0;ve=xe[ee];){if(this.isShapeIntersectConnectorCustomPoints(ve,_e))return!0;ee++}return!1},$e.tryRemoveConnectorIntermediatePoints=function(_e,xe){this.shouldRemoveConnectorIntermediatePoints(xe,[xe.beginItem,xe.endItem])&&this.deleteConnectorCustomPoints(_e,xe)},$e.isShapeIntersectConnectorCustomPoints=function(_e,xe){if(!_e)return!1;var ve=xe.getCustomRenderPoints(!0);if(!ve.length)return!1;var ee=Q.Connector.minOffset-E.UnitConverter.pixelsToTwips(1);return K.GeometryUtils.areIntersectedSegments(K.GeometryUtils.createSegments(ve),K.GeometryUtils.createSegmentsFromRectangle(_e.rectangle.clone().inflate(ee,ee)))},$e.getSnappedPos=function(_e,xe,ve,ee){var Ce=ee?_e.snapStartPoint.x:_e.snapStartPoint.y;return Math.round((ve-Ce)/xe)*xe+Ce},$e.tryUpdateModelRectangle=function(_e,xe){var ve=_e.modelManipulator.getModelSizeUpdateOffset();ve.isEmpty()||(_e.addAndRedo(new W.ModelResizeHistoryItem(ve)),(ve.left||ve.top)&&(_e.addAndRedo(new q.UpdatePositionsOnPageResizeHistoryItem(new p.Vector(ve.left,ve.top))),void 0!==xe&&xe(ve.left,ve.top)),_e.modelManipulator.raiseModelRectangleChanged(_e.modelManipulator.model.getRectangle(!0)))},$e.deleteItems=function(_e,xe,ve,ee,Ce){_e.beginTransaction();var De={};ee.forEach(function(Fe){return De[Fe.key]=Fe});var ke=ve.getKeys().filter(function(Fe){return!De[Fe]});_e.addAndRedo(new H.SetSelectionHistoryItem(ve,ke)),this.deleteItemsCore(_e,xe,ee,Ce),this.tryUpdateModelRectangle(_e),_e.endTransaction()},$e.deleteItemsCore=function(_e,xe,ve,ee){var Ce=this;ve.sort(function(De,ke){return(De instanceof Q.Connector?0:1)-(ke instanceof Q.Connector?0:1)}),ve.forEach(function(De){if(De.container&&Ce.removeFromContainer(_e,xe,De),De instanceof Ne.Shape){var ke=xe.getChildren(De);ke.length&&(ke.forEach(function(Fe){_e.addAndRedo(new B.RemoveFromContainerHistoryItem(Fe)),Ce.updateAttachedConnectorsContainer(_e,xe,Fe)}),Ce.deleteItemsCore(_e,xe,ke.filter(function(Fe){return!Fe.locked||ee}),ee)),xe.findItem(De.key)&&Ce.deleteShape(_e,De)}De instanceof Q.Connector&&xe.findItem(De.key)&&Ce.deleteConnector(_e,De)})},$e.detachConnectors=function(_e,xe){for(_e.beginTransaction();xe.attachedConnectors.length>0;){var ve=xe.attachedConnectors[0];_e.addAndRedo(new k.DeleteConnectionHistoryItem(ve,ve.beginItem===xe?Q.ConnectorPosition.Begin:Q.ConnectorPosition.End))}_e.endTransaction()},$e.deleteShape=function(_e,xe){var ve=_e.modelManipulator.permissionsProvider.canDeleteItems([xe]);_e.beginTransaction(),this.detachConnectors(_e,xe),_e.addAndRedo(new A.DeleteShapeHistoryItem(xe.key,ve)),_e.endTransaction()},$e.deleteConnector=function(_e,xe){_e.beginTransaction(),xe.beginItem&&_e.addAndRedo(new k.DeleteConnectionHistoryItem(xe,Q.ConnectorPosition.Begin)),xe.endItem&&_e.addAndRedo(new k.DeleteConnectionHistoryItem(xe,Q.ConnectorPosition.End)),_e.addAndRedo(new M.DeleteConnectorHistoryItem(xe.key)),_e.endTransaction()},$e.deleteAllItems=function(_e,xe,ve){this.deleteItems(_e,xe,ve,xe.items.slice(),!0)},$e.deleteSelection=function(_e,xe,ve){this.deleteItems(_e,xe,ve,ve.getSelectedItems())},$e.changeSelectionLocked=function(_e,xe,ve,ee){_e.beginTransaction(),ve.getSelectedItems(!0).forEach(function(Ce){_e.addAndRedo(new ae.ChangeLockedHistoryItem(Ce,ee))}),$e.updateSelection(_e,ve),_e.endTransaction()},$e.copyStylesToItem=function(_e,xe,ve,ee){var Ce=xe.findItem(ee);ve.styleText.forEach(function(De){ve.styleText[De]!==Ce.styleText[De]&&_e.addAndRedo(new pe.ChangeStyleTextHistoryItem(ee,De,ve.styleText[De]))}),ve.style.forEach(function(De){ve.style[De]!==Ce.style[De]&&_e.addAndRedo(new ge.ChangeStyleHistoryItem(ee,De,ve.style[De]))})},$e.updateSelection=function(_e,xe){_e.addAndRedo(new H.SetSelectionHistoryItem(xe,xe.getKeys(),!0))},$e.cloneShapeToOffset=function(_e,xe,ve,ee,Ce){_e.beginTransaction();var De=ve.position.clone().offset(ee,Ce),ke=new b.AddShapeHistoryItem(ve.description,De,ve.text);_e.addAndRedo(ke);var Fe=ke.shapeKey;return _e.addAndRedo(new V.ResizeShapeHistoryItem(Fe,De,ve.size.clone())),_e.addAndRedo(new ne.ChangeCustomDataHistoryItem(Fe,K.ObjectUtils.cloneObject(ve.customData))),_e.addAndRedo(new O.ChangeShapeParametersHistoryItem(Fe,ve.parameters.clone())),this.copyStylesToItem(_e,xe,ve,Fe),_e.endTransaction(),Fe},$e.applyOffsetToConnectorRenderPointsContext=function(_e,xe,ve){return _e&&_e.renderPoints?new Ae.ConnectorRenderPointsContext(_e.renderPoints.map(function(ee){return ee.clone().offset(xe,ve)}),!0,_e.actualRoutingMode):void 0},$e.cloneConnectorToOffset=function(_e,xe,ve,ee,Ce,De,ke){_e.beginTransaction();var Fe=ve.points.map(function(Ue){return Ue.clone().offset(De,ke)}),ze=new m.AddConnectorHistoryItem(Fe,void 0,this.applyOffsetToConnectorRenderPointsContext(ve.tryCreateRenderPointsContext(),De,ke));_e.addAndRedo(ze);var Pe=ze.connectorKey,be=xe.findConnector(Pe);if(ve.properties.forEach(function(Ue){ve.properties[Ue]!==be.properties[Ue]&&_e.addAndRedo(new G.ChangeConnectorPropertyHistoryItem(Pe,Ue,ve.properties[Ue]))}),ee){var me=xe.findShape(ee);_e.addAndRedo(new h.AddConnectionHistoryItem(be,me,ve.beginConnectionPointIndex,Q.ConnectorPosition.Begin))}if(Ce){var Me=xe.findShape(Ce);_e.addAndRedo(new h.AddConnectionHistoryItem(be,Me,ve.endConnectionPointIndex,Q.ConnectorPosition.End))}return ve.texts.clone().forEach(function(Ue){_e.addAndRedo(new J.ChangeConnectorTextHistoryItem(be,Ue.position,Ue.value))}),this.copyStylesToItem(_e,xe,ve,Pe),_e.endTransaction(),Pe},$e.cloneSelectionToOffset=function(_e,xe,ve,ee,Ce,De){var ke=this;_e.beginTransaction();var Fe={},ze=[];ee.getSelectedShapes().forEach(function(Pe){var be=ke.cloneShapeToOffset(_e,xe,Pe,Ce,De);Fe[Pe.key]=be,ze.push(be),ve&&ve(be)}),ee.getSelectedConnectors().forEach(function(Pe){var Me=ke.cloneConnectorToOffset(_e,xe,Pe,Pe.beginItem?Fe[Pe.beginItem.key]:null,Pe.endItem?Fe[Pe.endItem.key]:null,Ce,De);ze.push(Me),ve&&ve(Me)}),_e.addAndRedo(new H.SetSelectionHistoryItem(ee,ze)),$e.tryUpdateModelRectangle(_e),_e.endTransaction()},$e.findContainerByEventKey=function(_e,xe,ve){var ee=_e.findContainer(ve);if(ee&&!ee.isLocked)return ee;var Ce=_e.findShape(ve);return Ce&&Ce.container&&!xe.hasKey(Ce.key)?$e.findContainerByEventKey(_e,xe,Ce.container.key):void 0},$e.canInsertToContainer=function(_e,xe,ve){return xe!==ve&&!(xe instanceof Ne.Shape&&_e.findChild(xe,ve.key))},$e.canInsertSelectionToContainer=function(_e,xe,ve){var ee=!0;return xe.getSelectedItems().forEach(function(Ce){Ce!==ve?Ce instanceof Ne.Shape&&_e.findChild(Ce,ve.key)&&(ee=!1):ee=!1}),ee},$e.insertToContainer=function(_e,xe,ve,ee){if(!ee.enableChildren)throw Error("Inpossible to add children to non-container shape.");if(this.canInsertToContainer(xe,ve,ee)){var Ce=ve.container;Ce!==ee&&(_e.beginTransaction(),Ce&&(_e.addAndRedo(new B.RemoveFromContainerHistoryItem(ve)),ve.attachedConnectors.forEach(function(De){De.container&&_e.addAndRedo(new B.RemoveFromContainerHistoryItem(De))})),_e.addAndRedo(new F.InsertToContainerHistoryItem(ve,ee)),this.updateAttachedConnectorsContainer(_e,xe,ve),_e.endTransaction())}},$e.removeFromContainer=function(_e,xe,ve){ve.container&&(_e.beginTransaction(),_e.addAndRedo(new B.RemoveFromContainerHistoryItem(ve)),this.updateAttachedConnectorsContainer(_e,xe,ve),_e.endTransaction())},$e.insertSelectionToContainer=function(_e,xe,ve,ee){var Ce=this;_e.beginTransaction();var De=ve.getSelectedItems();De.filter(function(ke){return!ke.container||-1===De.indexOf(ke.container)}).forEach(function(ke){Ce.insertToContainer(_e,xe,ke,ee)}),_e.endTransaction()},$e.removeSelectionFromContainer=function(_e,xe,ve){var ee=this;_e.beginTransaction(),ve.getSelectedItems().forEach(function(Ce){Ce.container&&!ve.hasKey(Ce.container.key)&&(_e.addAndRedo(new B.RemoveFromContainerHistoryItem(Ce)),ee.updateAttachedConnectorsContainer(_e,xe,Ce))}),_e.endTransaction()},$e.getConnectorContainer=function(_e){if(_e.beginItem&&_e.endItem){for(var xe={},ve=_e.beginItem.container;ve;)xe[ve.key]=!0,ve=ve.container;for(var ee=_e.endItem.container;ee;){if(void 0!==xe[ee.key])return ee;ee=ee.container}}},$e.updateAttachedConnectorsContainer=function(_e,xe,ve){var ee=this;_e.beginTransaction(),ve.attachedConnectors.forEach(function(Ce){ee.updateConnectorContainer(_e,xe,Ce)}),_e.endTransaction()},$e.updateConnectorContainer=function(_e,xe,ve){var ee=this.getConnectorContainer(ve);ee?_e.addAndRedo(new F.InsertToContainerHistoryItem(ve,ee)):ve.container&&_e.addAndRedo(new B.RemoveFromContainerHistoryItem(ve))},$e.updateNewShapeProperties=function(_e,xe,ve){xe.inputPosition.getDefaultStyle().forEach(function(ee){_e.addAndRedo(new ge.ChangeStyleHistoryItem(ve,ee,xe.inputPosition.getDefaultStylePropertyValue(ee)))}),xe.inputPosition.getDefaultTextStyle().forEach(function(ee){_e.addAndRedo(new pe.ChangeStyleTextHistoryItem(ve,ee,xe.inputPosition.getDefaultTextStylePropertyValue(ee)))})},$e.updateNewConnectorProperties=function(_e,xe,ve){xe.inputPosition.getDefaultConnectorProperties().forEach(function(ee){_e.addAndRedo(new G.ChangeConnectorPropertyHistoryItem(ve,ee,xe.inputPosition.getDefaultConnectorPropertyValue(ee)))}),xe.inputPosition.getDefaultStyle().forEach(function(ee){_e.addAndRedo(new ge.ChangeStyleHistoryItem(ve,ee,xe.inputPosition.getDefaultStylePropertyValue(ee)))}),xe.inputPosition.getDefaultTextStyle().forEach(function(ee){_e.addAndRedo(new pe.ChangeStyleTextHistoryItem(ve,ee,xe.inputPosition.getDefaultTextStylePropertyValue(ee)))})},$e.applyLayout=function(_e,xe,ve,ee,Ce,De,ke,Fe,ze,Pe){_e.beginTransaction();var be=this.getOccupiedRectangles(De,ve);return Ce=this.offsetLayoutToFreeSpace(Ce,ve&&ve.clientRectangle,be,ke.containerPadding),Fe&&this.adjustLayoutToSnapGrid(xe,Ce,ze),ve&&this.resizeContainerOnLayout(_e,xe,Ce,ve,ke.containerPadding),this.applyLayoutToNodes(_e,xe,Ce,ee.edges.map(function(me){return xe.findConnector(me.key)})),this.applyLayoutToConnectors(_e,xe,Ce,ee.edges.map(function(me){return xe.findConnector(me.key)}),Pe),_e.endTransaction(),Ce.getRectangle(!0)},$e.getNonGraphItems=function(_e,xe,ve,ee,Ce){return(xe?_e.getChildren(xe):_e.items.filter(function(De){return!De.container})).filter(function(De){return De instanceof Q.Connector?!(De.beginItem&&ve[De.beginItem.key]||De.endItem&&ve[De.endItem.key]||-1!==Ce.indexOf(De)):De instanceof Ne.Shape?!ve[De.key]&&-1===ee.indexOf(De):void 0})},$e.getOccupiedRectangles=function(_e,xe){var ve=_e.map(function(Ce){return Ce.rectangle});if(xe&&ve.length){var ee=xe.clientRectangle;ve.push(new y.Rectangle(ee.right,ee.y,1,1)),ve.push(new y.Rectangle(ee.right,ee.bottom,1,1))}return ve},$e.offsetLayoutToFreeSpace=function(_e,xe,ve,ee){var Ce=_e.getRectangle(!0),De=K.GeometryUtils.findFreeSpace(ve,Ce.createSize().offset(ee,ee).nonNegativeSize(),!1,xe);if(De)return _e.offsetNodes(De.x+ee,De.y+ee);var ze=ve&&ve.length?ve.reduce(function(be,me){return me.right>be?me.right:be},0):xe?xe.x:0,Pe=xe?xe.y:Math.max(0,Ce.y);return _e.offsetNodes(ze+ee,Pe+ee)},$e.resizeContainerOnLayout=function(_e,xe,ve,ee,Ce){var De=ve.getRectangle(!0),ke=ee.children.filter(function(me){return me instanceof Ne.Shape?-1===ve.nodeKeys.indexOf(me.key):!!(me instanceof Q.Connector&&me.beginItem&&me.endItem)&&-1===ve.nodeKeys.indexOf(me.beginItem.key)&&-1===ve.nodeKeys.indexOf(me.endItem.key)}).map(function(me){return me.rectangle}),Fe=ke.map(function(me){return me.right}).reduce(function(me,Me){return Math.max(me,Me)},De.right),ze=ke.map(function(me){return me.bottom}).reduce(function(me,Me){return Math.max(me,Me)},De.bottom);$e.setShapeSize(_e,xe,ee,ee.position,new g.Size(ee.rectangle.width+Fe+Ce-ee.rectangle.right,ee.rectangle.height+ze+Ce-ee.rectangle.bottom)),$e.updateShapeAttachedConnectors(_e,xe,ee)},$e.applyLayoutToNodes=function(_e,xe,ve,ee){var Ce=this,De=ee.reduce(function(ke,Fe){return ke[Fe.key]=ke},{});ve.forEachNode(function(ke,Fe){var ze=xe.findShape(Fe);Ce.applyLayoutToNode(_e,xe,ze,ke.position,De)})},$e.applyLayoutToNode=function(_e,xe,ve,ee,Ce){var De=this,ke=ee.clone().offset(-ve.position.x,-ve.position.y);$e.setShapePosition(_e,xe,ve,ee,!1),0===ke.x&&0===ke.y||(ve.attachedConnectors.filter(function(Fe){return!Ce[Fe.key]}).forEach(function(Fe){De.updateConnectorAttachedPoints(_e,xe,Fe);for(var Pe=Fe.endItem?Fe.points.length-2:Fe.points.length-1,be=Fe.beginItem?1:0;be<=Pe;be++)De.moveConnectorPoint(_e,Fe,be,Fe.points[be].offset(ke.x,ke.y))}),xe.getChildren(ve).forEach(function(Fe){if(Fe instanceof Ne.Shape){var ze=Fe.position.clone().offset(ke.x,ke.y);De.applyLayoutToNode(_e,xe,Fe,ze,Ce)}}))},$e.applyLayoutToConnectors=function(_e,xe,ve,ee,Ce){var De=this;ee.filter(function(ke){return ke.beginItem||ke.endItem}).forEach(function(ke){var Fe=ve.edgeToPosition[ke.key];if(ke.beginItem&&ke.endItem&&!Ce&&Fe){var ze=ke.beginItem.getConnectionPointIndexForSide(Fe.beginIndex);ze!==ke.beginConnectionPointIndex&&_e.addAndRedo(new h.SetConnectionPointIndexHistoryItem(ke,ze,Q.ConnectorPosition.Begin));var Pe=ke.endItem.getConnectionPointIndexForSide(Fe.endIndex);Pe!==ke.endConnectionPointIndex&&_e.addAndRedo(new h.SetConnectionPointIndexHistoryItem(ke,Pe,Q.ConnectorPosition.End))}De.updateConnectorAttachedPoints(_e,xe,ke),Fe&&De.deleteConnectorCustomPoints(_e,ke)})},$e.adjustLayoutToSnapGrid=function(_e,xe,ve){var ee=this;xe.nodeKeys.forEach(function(Ce){xe.nodeToLayout[Ce].position.x=ee.getSnappedPos(_e,ve,xe.nodeToLayout[Ce].position.x,!0),xe.nodeToLayout[Ce].position.y=ee.getSnappedPos(_e,ve,xe.nodeToLayout[Ce].position.y,!1)})},$e.getGraphInfoByItems=function(_e,xe,ve,ee){void 0===ee&&(ee=!0);var Ce={};[].concat(xe).concat(ve).forEach(function(me){var Me=me.container&&me.container.key;Ce[Me]||(Ce[Me]=[]),Ce[Me].push(me)});var De=[];for(var ke in Ce)if(Object.prototype.hasOwnProperty.call(Ce,ke)){var Fe=ke&&_e.findContainer(ke);if(!Fe||Fe.expanded&&!_e.findItemCollapsedContainer(Fe)){var Pe=this.getGraphByItems(_e,Ce[ke],Fe&&Fe.key,!ee),be=!1;(Pe.nodes.length>1||Pe.nodes.length&&(ee||Fe&&Ce[Fe.container&&Fe.container.key]))&&(be=!0),be&&De.push(new ce.GraphInfo(Fe,Pe))}}return De.sort(function(me,Me){return Me.level-me.level})},$e.getGraphByItems=function(_e,xe,ve,ee){var Ce=this,De=new le.Graph([],[]),ke={};return xe.forEach(function(Fe){Ce.extendByConnectedComponents(Fe,De,ve,ke,ee)}),De.nodes.sort(function(Fe,ze){return _e.getItemIndex(_e.findItem(Fe))-_e.getItemIndex(_e.findItem(ze))}),De.edges.sort(function(Fe,ze){return _e.getItemIndex(_e.findItem(Fe.key))-_e.getItemIndex(_e.findItem(ze.key))}),De.edges=De.edges.filter(function(Fe){return De.getNode(Fe.from)&&De.getNode(Fe.to)}),De},$e.extendByConnectedComponents=function(_e,xe,ve,ee,Ce){var De=this;!_e||Ce&&_e.locked||ee[_e.key]||(ee[_e.key]=!0,!(_e instanceof Q.Connector&&(_e.container&&_e.container.key)===ve&&_e.beginItem)||_e.beginItem.locked&&Ce||!_e.endItem||_e.endItem.locked&&Ce||_e.beginItem===_e.endItem?_e instanceof Ne.Shape&&(_e.container&&_e.container.key)===ve&&(xe.addNode(_e),_e.attachedConnectors.forEach(function(ke){return De.extendByConnectedComponents(ke,xe,ve,ee,Ce)})):(xe.addEdge(new oe.Edge(_e.key,_e.beginItem&&_e.beginItem.key,_e.endItem&&_e.endItem.key)),this.extendByConnectedComponents(_e.beginItem,xe,ve,ee,Ce),this.extendByConnectedComponents(_e.endItem,xe,ve,ee,Ce)))},$e.getlUnitValue=function(_e,xe){switch(_e){case c.DiagramUnit.Cm:return E.UnitConverter.twipsToCentimeters(xe);case c.DiagramUnit.In:return E.UnitConverter.twipsToInches(xe);case c.DiagramUnit.Px:return E.UnitConverter.twipsToPixels(xe)}},$e.getUnitText=function(_e,xe,ve,ee,Ce){void 0===Ce&&(Ce=2);var De=xe[_e]?" "+xe[_e]:"",ke=this.getlUnitValue(_e,ee);switch(_e){case c.DiagramUnit.Cm:case c.DiagramUnit.In:return ve(+ke.toFixed(Ce))+De;case c.DiagramUnit.Px:return ve(+ke.toFixed(0))+De}},$e.getTwipsValue=function(_e,xe){switch(_e){case c.DiagramUnit.Cm:return E.UnitConverter.centimetersToTwips(xe);case c.DiagramUnit.In:return E.UnitConverter.inchesToTwips(xe);case c.DiagramUnit.Px:return E.UnitConverter.pixelsToTwips(xe)}},$e.getGuidItemKey=function(){return d.MathUtils.generateGuid()},$e.createSelectedItems=function(_e){var xe={};return _e.getSelectedItems(!0).forEach(function(ve){return xe[ve.key]=ve}),xe},$e.canMoveConnector=function(_e,xe){var ve=xe.beginItem,ee=xe.endItem;return ve||ee?!(!_e[xe.key]||!(ve===ee?_e[ve.key]:ve?ee?_e[ve.key]&&_e[ee.key]:_e[ve.key]:_e[ee.key])):!xe.isLocked},$e.createRectangle=function(_e){return K.GeometryUtils.getCommonRectangle(_e.map(function(xe){return xe.rectangle}))},$e.connectionPointActionSize=E.UnitConverter.pixelsToTwips(8),$e}();D.ModelUtils=Qe},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(O,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,A){M.__proto__=A}||function(M,A){for(var F in A)A.hasOwnProperty(F)&&(M[F]=A[F])})(O,k)},function(O,k){function M(){this.constructor=O}E(O,k),O.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)});Object.defineProperty(D,"__esModule",{value:!0}),D.PathPrimitiveClosePathCommand=D.PathPrimitiveArcToCommand=D.PathPrimitiveQuadraticCurveToCommand=D.PathPrimitiveCubicCurveToCommand=D.PathPrimitiveLineToCommand=D.PathPrimitiveMoveToCommand=D.PathPrimitiveCommand=D.PathPrimitive=void 0;var C=w(15),y=w(24),g=w(109),p=function(O){function k(M,A,F,P,N){var B=O.call(this,A,F,P,N)||this;return B.commands=M.map(function(V){return V.style=A,V}),B}return I(k,O),k.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"path")},k.prototype.applyElementProperties=function(M,A){M.setAttribute("d",this.commands.map(function(F){return F.toString()}).join(" ")),this.setPositionCorrectionAttribute(M),O.prototype.applyElementProperties.call(this,M,A)},k}(y.SvgPrimitive);D.PathPrimitive=p;var d=function(O){function k(){return null!==O&&O.apply(this,arguments)||this}return I(k,O),k}(g.PrimitiveObject);D.PathPrimitiveCommand=d;var c=function(O){function k(M,A){var F=O.call(this)||this;return F.x=M,F.y=A,F}return I(k,O),k.prototype.toString=function(){return"M "+this.getUnitVaue(this.x)+" "+this.getUnitVaue(this.y)},k.fromPoint=function(M){return new k(M.x,M.y)},k}(d);D.PathPrimitiveMoveToCommand=c;var h=function(O){function k(M,A){var F=O.call(this)||this;return F.x=M,F.y=A,F}return I(k,O),k.prototype.toString=function(){return"L "+this.getUnitVaue(this.x)+" "+this.getUnitVaue(this.y)},k.fromPoint=function(M){return new k(M.x,M.y)},k}(d);D.PathPrimitiveLineToCommand=h;var m=function(O){function k(M,A,F,P,N,B){var V=O.call(this)||this;return V.x1=M,V.y1=A,V.x2=F,V.y2=P,V.x3=N,V.y3=B,V}return I(k,O),k.prototype.toString=function(){return"C "+this.getUnitVaue(this.x1)+" "+this.getUnitVaue(this.y1)+","+this.getUnitVaue(this.x2)+" "+this.getUnitVaue(this.y2)+","+this.getUnitVaue(this.x3)+" "+this.getUnitVaue(this.y3)},k}(d);D.PathPrimitiveCubicCurveToCommand=m;var v=function(O){function k(M,A,F,P){var N=O.call(this)||this;return N.x1=M,N.y1=A,N.x2=F,N.y2=P,N}return I(k,O),k.prototype.toString=function(){return"Q "+this.getUnitVaue(this.x1)+" "+this.getUnitVaue(this.y1)+","+this.getUnitVaue(this.x2)+" "+this.getUnitVaue(this.y2)},k}(d);D.PathPrimitiveQuadraticCurveToCommand=v;var b=function(O){function k(M,A,F,P,N,B,V){var H=O.call(this)||this;return H.rx=M,H.ry=A,H.xAxisRotation=F,H.largeArcFlag=P,H.sweepFag=N,H.x=B,H.y=V,H}return I(k,O),k.prototype.toString=function(){return"A "+this.getUnitVaue(this.rx)+" "+this.getUnitVaue(this.ry)+" "+this.getUnitVaue(this.xAxisRotation)+" "+(this.largeArcFlag?"1":"0")+" "+(this.sweepFag?"1":"0")+this.getUnitVaue(this.x)+","+this.getUnitVaue(this.y)},k}(d);D.PathPrimitiveArcToCommand=b;var x=function(O){function k(){return O.call(this)||this}return I(k,O),k.prototype.toString=function(){return"z"},k}(d);D.PathPrimitiveClosePathCommand=x},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(G,J){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,ae){ne.__proto__=ae}||function(ne,ae){for(var ge in ae)ae.hasOwnProperty(ge)&&(ne[ge]=ae[ge])})(G,J)},function(G,J){function ne(){this.constructor=G}E(G,J),G.prototype=null===J?Object.create(J):(ne.prototype=J.prototype,new ne)});Object.defineProperty(D,"__esModule",{value:!0}),D.Connector=D.CONNECTOR_DEFAULT_TEXT_POSITION=D.ConnectorPosition=void 0;var C,G,y=w(12),g=w(13),p=w(33),d=w(2),c=w(42),h=w(84),m=w(11),v=w(43),b=w(5),x=w(63),O=w(17),k=w(28),M=w(3),A=w(9),F=w(4),P=w(179),N=w(180),B=w(186),V=w(32),H=w(187),W=w(85);(G=C=D.ConnectorPosition||(D.ConnectorPosition={}))[G.Begin=0]="Begin",G[G.End=1]="End",D.CONNECTOR_DEFAULT_TEXT_POSITION=.5;var q=function(G){function J(ne){var ae=G.call(this)||this;if(ae.beginConnectionPointIndex=-1,ae.endConnectionPointIndex=-1,ae.properties=new V.ConnectorProperties,ae.points=ne.map(function(ge){return ge.clone()}),ne.length<2)throw Error("Points count should be greater than 1");return ae.texts=new H.ConnectorTexts,ae}return I(J,G),Object.defineProperty(J.prototype,"rectangle",{get:function(){return M.GeometryUtils.createRectagle(this.getRenderPoints(!0))},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"skippedRenderPoints",{get:function(){return this.renderPoints?this.renderPoints.filter(function(ne){return ne.skipped}):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"shouldChangeRenderPoints",{get:function(){return void 0!==this.renderPoints&&void 0!==this.routingStrategy},enumerable:!1,configurable:!0}),J.prototype.assign=function(ne){G.prototype.assign.call(this,ne),ne.beginItem=this.beginItem,ne.beginConnectionPointIndex=this.beginConnectionPointIndex,ne.endItem=this.endItem,ne.endConnectionPointIndex=this.endConnectionPointIndex,ne.properties=this.properties.clone(),ne.texts=this.texts.clone(),void 0!==this.routingStrategy&&(ne.routingStrategy=this.routingStrategy.clone()),void 0!==this.renderPoints&&(ne.renderPoints=this.renderPoints.map(function(ae){return ae.clone()})),void 0!==this.renderPointsWithoutSkipped&&(ne.renderPointsWithoutSkipped=this.renderPointsWithoutSkipped.map(function(ae){return ae.clone()})),void 0!==this.actualRoutingMode&&(ne.actualRoutingMode=this.actualRoutingMode),void 0!==this.lockCreateRenderPoints&&(ne.lockCreateRenderPoints=this.lockCreateRenderPoints),void 0!==this.shouldInvalidateRenderPoints&&(ne.shouldInvalidateRenderPoints=this.shouldInvalidateRenderPoints)},J.prototype.clone=function(){var ne=new J(this.points);return this.assign(ne),ne},J.prototype.getTextCount=function(){return this.texts.count()},J.prototype.getText=function(ne){void 0===ne&&(ne=D.CONNECTOR_DEFAULT_TEXT_POSITION);var ae=this.texts.get(ne);return ae?ae.value:""},J.prototype.setText=function(ne,ae){void 0===ae&&(ae=D.CONNECTOR_DEFAULT_TEXT_POSITION),ne&&""!==ne?this.texts.set(ae,new H.ConnectorText(ae,ne)):this.texts.remove(ae)},J.prototype.getTextPoint=function(ne){var ae=this.getRenderPoints();return M.GeometryUtils.getPathPointByPosition(ae,ne)[0]},J.prototype.getTextPositionByPoint=function(ne){var ae=this.getRenderPoints(),ge=M.GeometryUtils.getPathLength(ae),pe=M.GeometryUtils.getPathPositionByPoint(ae,ne),le=y.UnitConverter.pointsToTwips(parseInt(this.styleText["font-size"]));return le>pe*ge?le/ge:le>ge-pe*ge?(ge-le)/ge:pe},J.prototype.getTextRectangle=function(ne){return g.Rectangle.fromGeometry(this.getTextPoint(ne),new d.Size(0,0))},J.prototype.changeRoutingStrategy=function(ne){this.routingStrategy=ne,this.invalidateRenderPoints()},J.prototype.clearRoutingStrategy=function(){delete this.routingStrategy,delete this.renderPoints,delete this.renderPointsWithoutSkipped,delete this.lockCreateRenderPoints,delete this.actualRoutingMode,delete this.shouldInvalidateRenderPoints,this.invalidateRenderPoints()},J.prototype.getCustomRenderPoints=function(ne){void 0===ne&&(ne=!1);var ae=this.getRenderPoints(ne),ge=[];return ae.forEach(function(pe,le){le>0&&le<ae.length-1&&ge.push(pe)}),ge},J.prototype.getRenderPoints=function(ne){if(void 0===ne&&(ne=!1),void 0===this.shouldInvalidateRenderPoints||this.shouldInvalidateRenderPoints)if(this.shouldInvalidateRenderPoints=!1,this.routingStrategy){if(!this.lockCreateRenderPoints&&(this.changeRenderPoints(new N.ConnectorPointsOrthogonalCalculator(this).getPoints()),this.actualRoutingMode!==k.ConnectorRoutingMode.None&&this.points&&this.renderPoints)&&!this.points[0].equals(this.points[this.points.length-1])){var pe=this.routingStrategy.createRenderPoints(this.points,this.renderPoints,this.beginItem,this.endItem,this.beginConnectionPointIndex,this.endConnectionPointIndex,F.ModelUtils.getConnectorContainer(this));pe?(this.changeRenderPoints(pe),this.actualRoutingMode=k.ConnectorRoutingMode.AllShapesOnly):this.actualRoutingMode=k.ConnectorRoutingMode.None}}else this.changeRenderPoints(this.getCalculator().getPoints());return ne?this.renderPoints:this.renderPointsWithoutSkipped},J.prototype.tryCreateRenderPointsContext=function(ne){return ne||this.shouldChangeRenderPoints?new W.ConnectorRenderPointsContext(this.renderPoints.map(function(ae){return ae.clone()}),this.lockCreateRenderPoints,this.actualRoutingMode):void 0},J.prototype.updatePointsOnPageResize=function(ne,ae){this.points=this.points.map(function(ge){return ge.clone().offset(ne,ae)}),this.renderPoints&&this.changeRenderPoints(this.renderPoints.map(function(ge){var pe=ge.clone().offset(ne,ae);return pe.pointIndex=ge.pointIndex,pe.skipped=ge.skipped,pe}))},J.prototype.addPoint=function(ne,ae){this.points.splice(ne,0,ae)},J.prototype.deletePoint=function(ne){this.points.splice(ne,1)},J.prototype.movePoint=function(ne,ae){this.points[ne]=ae},J.prototype.onAddPoint=function(ne,ae){this.shouldChangeRenderPoints?this.replaceRenderPointsCore(this.routingStrategy.onAddPoint(this.points,ne,ae,this.renderPoints),!0,k.ConnectorRoutingMode.AllShapesOnly):this.invalidateRenderPoints()},J.prototype.onDeletePoint=function(ne){this.shouldChangeRenderPoints?this.replaceRenderPointsCore(this.routingStrategy.onDeletePoint(this.points,ne,this.renderPoints),this.points.length>2,k.ConnectorRoutingMode.AllShapesOnly):this.invalidateRenderPoints()},J.prototype.onMovePoint=function(ne,ae){this.shouldChangeRenderPoints?(0!==ne&&ne!==this.points.length-1||(this.lockCreateRenderPoints=!1),this.replaceRenderPointsCore(this.routingStrategy.onMovePoint(this.points,ne,ae,this.renderPoints),this.lockCreateRenderPoints,k.ConnectorRoutingMode.AllShapesOnly)):this.invalidateRenderPoints()},J.prototype.onMovePoints=function(ne,ae,ge,pe){this.shouldChangeRenderPoints?(0!==ne&&ge!==this.points.length-1||(this.lockCreateRenderPoints=!1),this.replaceRenderPointsCore(this.routingStrategy.onMovePoints(this.points,ne,ae,ge,pe,this.renderPoints),this.lockCreateRenderPoints,k.ConnectorRoutingMode.AllShapesOnly)):this.invalidateRenderPoints()},J.prototype.replaceRenderPoints=function(ne){void 0!==ne?this.replaceRenderPointsCore(ne.renderPoints,ne.lockCreateRenderPoints,ne.actualRoutingMode):this.invalidateRenderPoints()},J.prototype.clearRenderPoints=function(){this.changeRenderPoints(void 0),this.lockCreateRenderPoints=!1,this.actualRoutingMode=void 0,this.invalidateRenderPoints()},J.prototype.replaceRenderPointsCore=function(ne,ae,ge){this.changeRenderPoints(ne),this.lockCreateRenderPoints=ae,this.actualRoutingMode=ge,this.invalidateRenderPoints()},J.prototype.changeRenderPoints=function(ne){this.renderPoints=ne,this.renderPointsWithoutSkipped=ne?this.renderPoints.filter(function(ae){return!ae.skipped}):void 0},J.prototype.getCalculator=function(){return this.properties.lineOption===V.ConnectorLineOption.Straight?new P.ConnectorPointsCalculator(this):new N.ConnectorPointsOrthogonalCalculator(this)},J.prototype.invalidateRenderPoints=function(){this.shouldInvalidateRenderPoints=!0},J.prototype.createPrimitives=function(){var ne=[],ae=this.getRenderPoints(),ge=new b.PathPrimitive(ae.map(function(pe,le){return 0===le?new b.PathPrimitiveMoveToCommand(pe.x,pe.y):new b.PathPrimitiveLineToCommand(pe.x,pe.y)}),this.style);return ne.push(ge),(ne=ne.concat(this.createLineEndingPrimitives(ae,ge))).concat(this.createTextPrimitives())},J.prototype.createLineEndingPrimitives=function(ne,ae){var ge=[];return ne.length>1&&[{strategy:this.createLineEndingStrategy(this.properties.startLineEnding),point1:ne[0],point2:ne[1]},{strategy:this.createLineEndingStrategy(this.properties.endLineEnding),point1:ne[ne.length-1],point2:ne[ne.length-2]}].forEach(function(pe){var le=pe.strategy;if(le.hasCommands()){var ce=ae;le.needCreateSeparatePrimitive()&&ge.push(ce=le.createPrimitive()),ce.commands=ce.commands.concat(le.createCommands(pe.point1,pe.point2))}}),ge},J.prototype.createLineEndingStrategy=function(ne){switch(ne){case V.ConnectorLineEnding.None:return new B.ConnectorLineEndingNoneStrategy(this.style);case V.ConnectorLineEnding.Arrow:return new B.ConnectorLineEndingArrowStrategy(this.style);case V.ConnectorLineEnding.OutlinedTriangle:return new B.ConnectorLineEndingOutlinedTriangleStrategy(this.style);case V.ConnectorLineEnding.FilledTriangle:return new B.ConnectorLineEndingFilledTriangleStrategy(this.style);default:return new B.ConnectorLineEndingStrategy(this.style)}},J.prototype.createSelectorPrimitives=function(){var ne=[],ae=this.getRenderPoints();return ne.push(new b.PathPrimitive(ae.map(function(ge,pe){return 0===pe?new b.PathPrimitiveMoveToCommand(ge.x,ge.y):new b.PathPrimitiveLineToCommand(ge.x,ge.y)}),null,"selector")),ne},J.prototype.createTextPrimitives=function(){var ne=this;if(!this.enableText)return[];var ae=[];return this.texts.forEach(function(ge){var pe=ne.getText(ge.position);if(pe&&""!==pe){var le=ne.getTextPoint(ge.position);ae=ae.concat([new x.TextPrimitive(le.x,le.y,pe,v.TextOwner.Connector,void 0,void 0,void 0,ne.styleText,!0,null,c.PAGE_BG_TEXTFLOOR_FILTER_ID,void 0,function(ce){O.RenderUtils.setElementEventData(ce,m.MouseEventElementType.ConnectorText,ne.key,ge.position)})])}}),ae},J.prototype.getExtremeItem=function(ne){return ne===C.Begin?this.beginItem:ne===C.End?this.endItem:null},J.prototype.getExtremeConnectionPointIndex=function(ne){return ne===C.Begin?this.beginConnectionPointIndex:ne===C.End?this.endConnectionPointIndex:-1},J.prototype.getMinX=function(){return this.getRenderPoints().map(function(ne){return ne.x}).reduce(function(ne,ae){return Math.min(ne,ae)},Number.MAX_VALUE)},J.prototype.getMinY=function(){return this.getRenderPoints().map(function(ne){return ne.y}).reduce(function(ne,ae){return Math.min(ne,ae)},Number.MAX_VALUE)},J.prototype.getConnectionPoints=function(){return[]},J.prototype.getConnectionPointSide=function(ne,ae){return A.ConnectionPointSide.Undefined},J.prototype.getSegments=function(){var ne=[],ae=this.getRenderPoints();return ae.forEach(function(ge,pe){pe>0&&ne.push(new p.Segment(ae[pe-1],ge))}),ne},J.prototype.intersectedByRect=function(ne){return this.getSegments().some(function(ae){return ae.isIntersectedByRect(ne)})},J.prototype.toNative=function(ne){var ae=new h.NativeConnector(this.key,this.dataKey);return ae.fromKey=this.beginItem&&this.beginItem.dataKey,ae.toKey=this.endItem&&this.endItem.dataKey,ae.texts=this.texts.map(function(ge){return ge}).sort(function(ge,pe){return ge.position-pe.position}).map(function(ge){return ge.value}),ae.fromId=this.beginItem&&this.beginItem.key,ae.fromPointIndex=this.beginConnectionPointIndex,ae.toId=this.endItem&&this.endItem.key,ae.toPointIndex=this.endConnectionPointIndex,ae.points=this.points.map(function(ge){return ge.clone()}),ae.applyUnits(ne),ae},J.minOffset=y.UnitConverter.pixelsToTwips(24),J.minTextHeight=y.UnitConverter.pixelsToTwips(12),J}(A.DiagramItem);D.Connector=q},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ShapeDescription=D.ShapeTextPadding=D.ShapeDefaultSize=D.ShapeMinDimension=D.ShapeDefaultDimension=void 0;var E=w(12),I=w(2),C=w(36),y=w(43),g=w(21),p=w(63),d=w(3),c=w(45),h=w(9);D.ShapeDefaultDimension=1440,D.ShapeMinDimension=360,D.ShapeDefaultSize=new I.Size(D.ShapeDefaultDimension,D.ShapeDefaultDimension),D.ShapeTextPadding=E.UnitConverter.pixelsToTwips(10);var m=function(){function v(b,x){void 0===b&&(b=D.ShapeDefaultSize.clone()),this.defaultSize=b,this.hasDefaultText=x,this.onChanged=new d.EventDispatcher,this.connectionPoints=this.createConnectionPoints()}return Object.defineProperty(v.prototype,"enableText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"allowEditText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"enableImage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"allowEditImage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"hasTemplate",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"enableChildren",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"minWidth",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"minHeight",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"maxWidth",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"maxHeight",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"toolboxSize",{get:function(){return this.defaultSize},enumerable:!1,configurable:!0}),v.prototype.getTitle=function(){return C.DiagramLocalizationService.shapeTexts[this.key]},v.prototype.getDefaultText=function(){return this.hasDefaultText?C.DiagramLocalizationService.shapeTexts[this.key]:""},v.prototype.getDefaultImageUrl=function(){return""},v.prototype.getConnectionPoints=function(){return this.connectionPoints},v.prototype.createConnectionPoints=function(){return[new c.ConnectionPoint(.5,0,h.ConnectionPointSide.North),new c.ConnectionPoint(1,.5,h.ConnectionPointSide.East),new c.ConnectionPoint(.5,1,h.ConnectionPointSide.South),new c.ConnectionPoint(0,.5,h.ConnectionPointSide.West)]},v.prototype.processConnectionPoint=function(b,x){},v.prototype.getConnectionPointIndexForItem=function(b,x){return x},v.prototype.getConnectionPointIndexForSide=function(b){return b},v.getConnectionPointSideByGeometry=function(b){return b.x>=b.y&&(b.x>0||b.y>0)?b.x<.5||1-b.x>=b.y?h.ConnectionPointSide.North:h.ConnectionPointSide.East:b.x>.5||1-b.x<=b.y?h.ConnectionPointSide.South:h.ConnectionPointSide.West},v.prototype.createParameters=function(b){},v.prototype.normalizeParameters=function(b,x){},v.prototype.modifyParameters=function(b,x,O,k){throw Error("Not implemented")},v.prototype.changeParameterValue=function(b,x,O){var k=b.get(x);k.value=O(k)},v.prototype.getParameterPoints=function(b){return[]},v.prototype.getExpandedSize=function(b){return b.size},v.prototype.getCollapsedSize=function(b){return b.size},v.prototype.getToolboxHeightToWidthRatio=function(b,x){return x/b},v.prototype.allowResizeHorizontally=function(b){return!0},v.prototype.allowResizeVertically=function(b){return!0},v.prototype.createPrimitives=function(b,x){var O=[];return O=O.concat(this.createShapePrimitives(b,x)),this.enableImage&&(O=O.concat(this.createImagePrimitives(b,x))),this.enableText&&(O=O.concat(this.createTextPrimitives(b,x))),O},v.prototype.createImagePrimitives=function(b,x){return[]},v.prototype.createTextPrimitives=function(b,x){if(void 0===b.text||""===b.text)return[];var O=this.getTextRectangle(b);return[new p.TextPrimitive(O.x,O.y,b.text,y.TextOwner.Shape,O.width,O.height,v.textSpacing,b.styleText,!1,this.getTextClipPathId(x),void 0,this.getTextAngle())]},v.prototype.getTextClipPathId=function(b){},v.prototype.getTextAngle=function(){return p.TextAngle.Angle0deg},v.prototype.getClientRectangle=function(b){return b.rectangle},v.prototype.getTextEditRectangle=function(b){return this.getTextRectangle(b)},v.prototype.createSelectorPrimitives=function(b){return[new g.RectanglePrimitive(b.position.x,b.position.y,b.size.width,b.size.height,null,"selector")]},v.prototype.raiseShapeDescriptionChanged=function(b){this.onChanged.raise1(function(x){return x.notifyShapeDescriptionChanged(b)})},v.textSpacing=E.UnitConverter.pixelsToTwips(2),v}();D.ShapeDescription=m},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.CompositionHistoryItem=D.HistoryItem=void 0;var C=function(){function g(){this.uniqueId=-1}return g.prototype.changeModified=function(){return!0},g.prototype.getName=function(){return this.constructor.name},g}();D.HistoryItem=C;var y=function(g){function p(){var d=null!==g&&g.apply(this,arguments)||this;return d.historyItems=[],d.dataSyncItems=[],d}return I(p,g),p.prototype.changeModified=function(){for(var d,c=0;d=this.historyItems[c];c++)if(d.changeModified())return!0;return!1},p.prototype.redo=function(d){for(var c,h=0;c=this.historyItems[h];h++)c.redo(d)},p.prototype.undo=function(d){for(var c,h=this.dataSyncItems.length-1;c=this.dataSyncItems[h];h--)c.undo(d);for(this.dataSyncItems=[],h=this.historyItems.length-1;c=this.historyItems[h];h--)c.undo(d)},p.prototype.add=function(d){if(null==d)throw new Error("cannot be null");this.historyItems.push(d)},p}(C);D.CompositionHistoryItem=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DiagramItem=D.DEFAULT_ZINDEX=D.ConnectionPointSide=void 0;var E,d,I=w(13),C=w(35),y=w(3),g=w(26);(d=E=D.ConnectionPointSide||(D.ConnectionPointSide={}))[d.Undefined=-1]="Undefined",d[d.North=0]="North",d[d.East=1]="East",d[d.South=2]="South",d[d.West=3]="West",D.DEFAULT_ZINDEX=0;var p=function(){function d(){this.key=void 0,this.dataKey=void 0,this.customData=void 0,this.attachedConnectors=[],this.zIndex=D.DEFAULT_ZINDEX,this.locked=!1,this.container=void 0,this.style=new g.Style,this.styleText=new g.TextStyle}return d.prototype.assign=function(c){c.key=this.key,c.dataKey=this.dataKey,c.customData=y.ObjectUtils.cloneObject(this.customData),c.locked=this.locked,c.attachedConnectors=this.attachedConnectors.slice(),c.style=this.style.clone(),c.styleText=this.styleText.clone(),c.zIndex=this.zIndex,c.container=this.container},d.prototype.getConnectionPointPosition=function(c,h){return this.getConnectionPoint(c,h).toPoint()},d.prototype.getConnectionPoint=function(c,h){c<0&&h&&(c=this.getNearestConnectionPoint(h));var m=this.getConnectionPoints();return m[c]||m[0]},d.prototype.getNearestConnectionPoint=function(c){var h,m=Number.MAX_VALUE;return this.getConnectionPoints().forEach(function(v,b){var x=C.Metrics.euclideanDistance(v,c);x<m&&(m=x,h=b)}),h},d.prototype.getConnectionPointIndex=function(c){var h=this.getConnectionPoints();return h.reduce(function(m,v,b){return c===E.North&&v.y<h[m].y||c===E.South&&v.y>h[m].y||c===E.West&&v.x<h[m].x||c===E.East&&v.x>h[m].x?b:m},0)},d.prototype.getConnectionPointSideByIndex=function(c,h){var m=this.getConnectionPoint(c,h);return this.getConnectionPointSide(m,h)},d.prototype.getConnectionPointIndexForSide=function(c){return c},Object.defineProperty(d.prototype,"enableText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"allowEditText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"hasTemplate",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"enableChildren",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"isLocked",{get:function(){return this.locked||this.container&&this.container.isLocked},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"allowResizeHorizontally",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"allowResizeVertically",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"strokeWidth",{get:function(){return this.style.strokeWidth},enumerable:!1,configurable:!0}),d.prototype.intersectedByRect=function(c){return I.Rectangle.areIntersected(this.rectangle,c)},d}();D.DiagramItem=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.SimpleCommandBase=void 0;var C=w(197),y=w(198),g=w(4),p=w(36),d=function(c){function h(){return null!==c&&c.apply(this,arguments)||this}return I(h,c),h.prototype.getState=function(){return new y.SimpleCommandState(this.isEnabled(),this.getValue(),this.getDefaultValue(),this.getItems(),this.isVisible())},h.prototype.isVisible=function(){return!0},h.prototype.isEnabled=function(){return!this.control.settings.readOnly||this.isEnabledInReadOnlyMode()},h.prototype.isEnabledInReadOnlyMode=function(){return!1},h.prototype.getValue=function(){},h.prototype.getDefaultValue=function(){},h.prototype.getItems=function(){},h.prototype.getModelUnit=function(m){return g.ModelUtils.getlUnitValue(this.control.model.units,m)},h.prototype.getModelUnitText=function(m){return g.ModelUtils.getUnitText(this.control.model.units,p.DiagramLocalizationService.unitItems,p.DiagramLocalizationService.formatUnit,m)},h.prototype.getModelUnitTwipsValue=function(m){return g.ModelUtils.getTwipsValue(this.control.model.units,m)},h.prototype.getViewUnit=function(m){return g.ModelUtils.getlUnitValue(this.control.settings.viewUnits,m)},h.prototype.getViewUnitText=function(m){return g.ModelUtils.getUnitText(this.control.settings.viewUnits,p.DiagramLocalizationService.unitItems,p.DiagramLocalizationService.formatUnit,m)},h.prototype.getViewUnitTwipsValue=function(m){return g.ModelUtils.getTwipsValue(this.control.settings.viewUnits,m)},h}(C.CommandBase);D.SimpleCommandBase=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(O,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,A){M.__proto__=A}||function(M,A){for(var F in A)A.hasOwnProperty(F)&&(M[F]=A[F])})(O,k)},function(O,k){function M(){this.constructor=O}E(O,k),O.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)});Object.defineProperty(D,"__esModule",{value:!0}),D.DiagramClipboardEvent=D.DiagramKeyboardEvent=D.DiagramContextMenuEvent=D.DiagramWheelEvent=D.DiagramMouseEvent=D.DiagramMouseEventBase=D.DiagramMouseEventTouch=D.DiagramFocusEvent=D.DiagramEvent=D.ResizeEventSource=D.MouseEventSource=D.MouseEventElementType=D.MouseButton=void 0;var O,C=w(25);(O=D.MouseButton||(D.MouseButton={}))[O.None=0]="None",O[O.Left=1]="Left",O[O.Right=2]="Right",O[O.Middle=4]="Middle",function(O){O[O.Undefined=0]="Undefined",O[O.Background=1]="Background",O[O.Document=2]="Document",O[O.Connector=3]="Connector",O[O.ConnectorPoint=4]="ConnectorPoint",O[O.ConnectorSide=5]="ConnectorSide",O[O.ConnectorOrthogonalSide=6]="ConnectorOrthogonalSide",O[O.ConnectorText=7]="ConnectorText",O[O.Shape=8]="Shape",O[O.ShapeResizeBox=9]="ShapeResizeBox",O[O.ShapeParameterBox=10]="ShapeParameterBox",O[O.SelectionRect=11]="SelectionRect",O[O.ShapeConnectionPoint=12]="ShapeConnectionPoint",O[O.ShapeExpandButton=13]="ShapeExpandButton"}(D.MouseEventElementType||(D.MouseEventElementType={}));D.MouseEventSource=function(O,k,M){this.type=O,this.key=k,this.value=M},function(O){O[O.Undefined=0]="Undefined",O[O.ResizeBox_NW=1]="ResizeBox_NW",O[O.ResizeBox_NE=2]="ResizeBox_NE",O[O.ResizeBox_SE=3]="ResizeBox_SE",O[O.ResizeBox_SW=4]="ResizeBox_SW",O[O.ResizeBox_N=5]="ResizeBox_N",O[O.ResizeBox_E=6]="ResizeBox_E",O[O.ResizeBox_S=7]="ResizeBox_S",O[O.ResizeBox_W=8]="ResizeBox_W"}(D.ResizeEventSource||(D.ResizeEventSource={}));var g=function(O){this.modifiers=O};D.DiagramEvent=g;var p=function(O){function k(M){var A=O.call(this,C.ModifierKey.None)||this;return A.inputText=M,A}return I(k,O),k}(g);D.DiagramFocusEvent=p;D.DiagramMouseEventTouch=function(O,k){this.offsetPoint=O,this.modelPoint=k};var c=function(O){function k(M,A,F,P){var N=O.call(this,M)||this;return N.offsetPoint=A,N.modelPoint=F,N.source=P,N}return I(k,O),k}(g);D.DiagramMouseEventBase=c;var h=function(O){function k(M,A,F,P,N,B,V){void 0===B&&(B=[]);var H=O.call(this,M,F,P,N)||this;return H.button=A,H.touches=B,H.isTouchMode=V,H.scrollX=0,H.scrollY=0,H}return I(k,O),k}(c);D.DiagramMouseEvent=h;var m=function(O){function k(M,A,F,P,N,B){var V=O.call(this,M,P,N,B)||this;return V.deltaX=A,V.deltaY=F,V}return I(k,O),k}(c);D.DiagramWheelEvent=m;var v=function(O){function k(M,A,F){var P=O.call(this,M)||this;return P.eventPoint=A,P.modelPoint=F,P}return I(k,O),k}(g);D.DiagramContextMenuEvent=v;var b=function(O){function k(M,A,F){var P=O.call(this,M)||this;return P.keyCode=A,P.inputText=F,P}return I(k,O),k.prototype.getShortcutCode=function(){return this.modifiers|this.keyCode},k}(g);D.DiagramKeyboardEvent=b;var x=function(O){function k(M){var A=O.call(this,C.ModifierKey.None)||this;return A.clipboardData=M,A}return I(k,O),k}(g);D.DiagramClipboardEvent=x},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(){}return I.hundredthsOfMillimeterToTwipsRound=function(C){return Math.round(1440*C/2540)},I.documentsToTwips=function(C){return 24*C/5},I.pixelsToTwips=function(C){return Math.round(I.pixelsToTwipsF(C))},I.pixelsToTwipsCustomDpi=function(C,y){return Math.round(I.pixelsToTwipsFCustomDpi(C,y))},I.inchesToTwips=function(C){return Math.round(I.inchesToTwipsF(C))},I.pointsToTwips=function(C){return Math.round(I.pointsToTwipsF(C))},I.picasToTwips=function(C){return Math.round(1440*C/I.PICAS_PER_INCH)},I.centimetersToTwips=function(C){return Math.round(I.centimetersToTwipsF(C))},I.pixelsToTwipsF=function(C){return 1440*C/I.DPI},I.pixelsToTwipsFCustomDpi=function(C,y){return 1440*C/y},I.inchesToTwipsF=function(C){return 1440*C},I.pointsToTwipsF=function(C){return 20*C},I.centimetersToTwipsF=function(C){return 1440*C/I.CENTIMETERS_PER_INCH},I.twipsToDegrees=function(C){return C/6e4},I.twipsToRadians=function(C){return C/6e4*Math.PI/180},I.degreesToTwips=function(C){return 6e4*C},I.radiansToTwips=function(C){return 6e4*C/Math.PI*180},I.radiansToDegrees=function(C){return C/Math.PI*180},I.twipsToFD=function(C){return Math.round(2048*C/1875)},I.fdToTwips=function(C){return Math.round(1875*C/2048)},I.emuToTwips=function(C){return C/635},I.twipsToPixels=function(C){return Math.round(I.twipsToPixelsF(C))},I.inchesToPixels=function(C){return Math.round(I.DPI*C)},I.centimeterToPixel=function(C){return Math.round(this.centimeterToPixelF(C))},I.centimeterToPixelF=function(C){return C*I.DPI/I.CENTIMETERS_PER_INCH},I.millimetersToPixel=function(C){return Math.round(C/(I.CENTIMETERS_PER_INCH/I.DPI)/10)},I.pointsToPixels=function(C){return Math.round(C*I.DPI/72)},I.pointsToPixelsF=function(C){return C*I.DPI/72},I.twipsToPixelsF=function(C){return C*I.DPI/1440},I.pixelsToPoints=function(C){return Math.round(72*C/I.DPI)},I.pixelsToPointsF=function(C){return 72*C/I.DPI},I.twipsToPoints=function(C){return Math.round(this.twipsToPointsF(C))},I.twipsToPointsF=function(C){return C/20},I.twipsToInches=function(C){return C/1440},I.pixelsToInches=function(C){return C/I.DPI},I.twipsToCentimeters=function(C){return C*I.CENTIMETERS_PER_INCH/1440},I.pixelToCentimeters=function(C){return C*I.CENTIMETERS_PER_INCH/I.DPI},I.twipsToHundredthsOfMillimeter=function(C){return Math.round(127*C/72)},I.pixelsToHundredthsOfMillimeter=function(C){return Math.round(2540*C/I.DPI)},I.hundredthsOfMillimeterToTwips=function(C){return 15*C/127},I.twipsToEmu=function(C){return 635*C},I.twipsToDegree=function(C){return C/6e4},I.DPI=96,I.CENTIMETERS_PER_INCH=2.54,I.PICAS_PER_INCH=6,I}();D.UnitConverter=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E,h,I=w(163),C=w(164),y=w(106),g=w(0),p=w(2),d=function(){function h(m,v,b,x){this.x=m,this.y=v,this.width=b,this.height=x}return Object.defineProperty(h.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(h.prototype,"center",{get:function(){return h.center(this)},enumerable:!0,configurable:!0}),h.prototype.createRectangle=function(){return new h(this.x,this.y,this.width,this.height)},h.prototype.createSize=function(){return new p.Size(this.width,this.height)},h.prototype.createPosition=function(){return new g.Point(this.x,this.y)},h.prototype.createVerticalInterval=function(){return new y.FixedInterval(this.y,this.height)},h.prototype.createHorizontalInterval=function(){return new y.FixedInterval(this.x,this.width)},h.fromGeometry=function(m,v){return new h(m.x,m.y,v.width,v.height)},h.fromPoints=function(m,v){return new h(Math.min(m.x,v.x),Math.min(m.y,v.y),Math.abs(m.x-v.x),Math.abs(m.y-v.y))},h.fromPositions=function(m,v,b,x){return new h(Math.min(m,b),Math.min(v,x),Math.abs(b-m),Math.abs(x-v))},h.fromCenter=function(m,v){return new h(m.x-v,m.y-v,2*v,2*v)},h.prototype.isCollapsed=function(){return 0===this.width||0===this.height},h.prototype.isEmpty=function(){return 0===this.x&&0===this.y&&0===this.width&&0===this.height},h.prototype.toString=function(){return JSON.stringify(this)},h.prototype.setPosition=function(m){return this.x=m.x,this.y=m.y,this},h.prototype.setSize=function(m){return this.width=m.width,this.height=m.height,this},h.prototype.setGeomerty=function(m){return this.x=m.x,this.y=m.y,this.width=m.width,this.height=m.height,this},h.prototype.moveRectangle=function(m,v){return this.x+=m,this.y+=v,this},h.prototype.moveRectangleByPoint=function(m){return this.x+=m.x,this.y+=m.y,this},h.prototype.resize=function(m,v){return this.width+=m,this.height+=v,this},h.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},h.prototype.multiply=function(m,v){return this.x*=m,this.y*=v,this.width*=m,this.height*=v,this},h.prototype.equals=function(m){return h.equals(this,m)},h.prototype.clone=function(){var m=new h(0,0,0,0);return m.copyFrom(this),m},h.prototype.copyFrom=function(m){this.x=m.x,this.y=m.y,this.width=m.width,this.height=m.height},h.prototype.containsPoint=function(m){return h.containsPoint(this,m)},h.prototype.containsRectangle=function(m){return this.x<=m.x&&this.right>=m.right&&this.y<=m.y&&this.bottom>=m.bottom},h.prototype.inflate=function(m,v){return void 0===v&&(v=m),this.x-=m,this.y-=v,this.width+=2*m,this.height+=2*v,this},h.prototype.applyOffsetsInside=function(m){return this.x+=m.left,this.y+=m.top,this.width-=m.left+m.right,this.height-=m.top+m.bottom,this},h.prototype.applyNormalizedOffsetsInside=function(m){var v=Math.max(0,m.left),b=v+Math.max(0,m.right);0!==b&&(b<=this.width?(this.x+=v,this.width-=b):(this.x+=this.width*(v/b),this.width=0));var x=Math.max(0,m.top),O=x+Math.max(0,m.bottom);return 0!==O&&(O<=this.height?(this.y+=x,this.height-=O):(this.y+=this.height*(x/O),this.height=0)),this},h.prototype.applyOffsetsOutside=function(m){return this.x-=m.left,this.y-=m.top,this.width+=m.left+m.right,this.height+=m.top+m.bottom,this},h.prototype.applyConverter=function(m){return this.x=m(this.x),this.y=m(this.y),this.width=m(this.width),this.height=m(this.height),this},h.getHorizIntersection=function(m,v){return C.IntervalAlgorithms.getIntersection(new y.FixedInterval(m.x,m.width),new y.FixedInterval(v.x,v.width))},h.getVertIntersection=function(m,v){return C.IntervalAlgorithms.getIntersection(new y.FixedInterval(m.y,m.height),new y.FixedInterval(v.y,v.height))},h.getIntersection=function(m,v){var b=C.IntervalAlgorithms.getIntersection(new y.FixedInterval(m.x,m.width),new y.FixedInterval(v.x,v.width));if(!b)return null;var x=C.IntervalAlgorithms.getIntersection(new y.FixedInterval(m.y,m.height),new y.FixedInterval(v.y,v.height));return x?new h(b.start,x.start,b.length,x.length):null},h.getHorNonCollapsedIntersection=function(m,v){var b=h.getHorizIntersection(m,v);return b&&!b.isCollapsed()?b:null},h.getVertNonCollapsedIntersection=function(m,v){var b=h.getVertIntersection(m,v);return b&&!b.isCollapsed()?b:null},h.getNonCollapsedIntersection=function(m,v){var b=h.getIntersection(m,v);return b&&!b.isCollapsed()?b:null},h.areIntersected=function(m,v){return!(m.x>v.x+v.width||v.x>m.x+m.width||m.y>v.y+v.height||v.y>m.y+m.height)},h.union=function(m,v){var b=Math.max(m.x+m.width,v.x+v.width),x=Math.max(m.y+m.height,v.y+v.height),O=Math.min(m.x,v.x),k=Math.min(m.y,v.y);return new h(O,k,b-O,x-k)},h.equals=function(m,v){return m.x===v.x&&m.y===v.y&&m.width===v.width&&m.height===v.height},h.center=function(m){return new g.Point(m.x+m.width/2,m.y+m.height/2)},h.containsPoint=function(m,v){return v.y>=m.y&&m.y+m.height>=v.y&&v.x>=m.x&&m.x+m.width>=v.x},h}();D.Rectangle=d,(h=E=D.HitTestDeviation||(D.HitTestDeviation={}))[h.None=0]="None",h[h.Top=1]="Top",h[h.Bottom=2]="Bottom",h[h.Left=4]="Left",h[h.Right=8]="Right";var c=function(){function h(m,v){this.initRectangle=m,this.initPoint=v,this.deviation=new I.Flag(E.None)}return h.prototype.calcDeviation=function(){return this.initPoint.x<this.initRectangle.x?this.deviation.set(E.Left,!0):this.initPoint.x>this.initRectangle.right&&this.deviation.set(E.Right,!0),this.initPoint.y<this.initRectangle.y?this.deviation.set(E.Top,!0):this.initPoint.y>this.initRectangle.bottom&&this.deviation.set(E.Bottom,!0),this},h.prototype.calcAdditionalParams=function(){return this.insidePoint=this.initPoint.clone(),this.offsetToInside=new g.Point(0,0),this.deviation.get(E.Left)?(this.insidePoint.x=this.initRectangle.x,this.offsetToInside.x=this.insidePoint.x-this.initPoint.x):this.deviation.get(E.Right)&&(this.insidePoint.x=this.initRectangle.right,this.offsetToInside.x=this.initPoint.x-this.insidePoint.x),this.deviation.get(E.Top)?(this.insidePoint.y=this.initRectangle.y,this.offsetToInside.y=this.insidePoint.y-this.initPoint.y):this.deviation.get(E.Bottom)&&(this.insidePoint.y=this.initRectangle.bottom,this.offsetToInside.y=this.initPoint.y-this.insidePoint.y),this},h}();D.RectangleDeviation=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(v,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var k in O)O.hasOwnProperty(k)&&(x[k]=O[k])})(v,b)},function(v,b){function x(){this.constructor=v}E(v,b),v.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Object.defineProperty(D,"__esModule",{value:!0}),D.Shape=void 0;var C=w(13),y=w(7),g=w(37),p=w(9),d=w(45),c=w(51),h=w(84),m=function(v){function b(x,O,k){var M=v.call(this)||this;if(M.description=x,M.children=[],M.expanded=!0,M.expandedSize=void 0,!x)throw Error("Shape type is incorrect");return M.position=O.clone(),M.size=(k?x.toolboxSize:x.defaultSize).clone(),M.text=x.getDefaultText(),M.image=new c.ImageInfo(x.getDefaultImageUrl()),M.parameters=new g.ShapeParameters,x.createParameters(M.parameters),M}return I(b,v),b.prototype.assign=function(x){v.prototype.assign.call(this,x),x.size=this.size.clone(),x.text=this.text,x.image=this.image.clone(),x.parameters=this.parameters.clone(),x.children=this.children.slice(),x.expanded=this.expanded,this.expandedSize&&(x.expandedSize=this.expandedSize.clone())},b.prototype.clone=function(){var x=new b(this.description,this.position.clone());return this.assign(x),x},Object.defineProperty(b.prototype,"enableText",{get:function(){return this.description.enableText},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"allowEditText",{get:function(){return this.description.allowEditText},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"hasTemplate",{get:function(){return this.description.hasTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"enableChildren",{get:function(){return this.description.enableChildren},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"enableImage",{get:function(){return this.description.enableImage},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"allowEditImage",{get:function(){return this.description.allowEditImage},enumerable:!1,configurable:!0}),b.prototype.getMinWidth=function(x){return"number"==typeof this.description.minWidth?this.description.minWidth:"number"==typeof x?x:y.ShapeMinDimension},b.prototype.getMinHeight=function(x){return"number"==typeof this.description.minHeight?this.description.minHeight:"number"==typeof x?x:y.ShapeMinDimension},b.prototype.getMaxWidth=function(x){return"number"==typeof this.description.maxWidth?this.description.maxWidth:"number"==typeof x?x:void 0},b.prototype.getMaxHeight=function(x){return"number"==typeof this.description.maxHeight?this.description.maxHeight:"number"==typeof x?x:void 0},b.prototype.createPrimitives=function(){return this.description.createPrimitives(this)},b.prototype.createSelectorPrimitives=function(){return this.description.createSelectorPrimitives(this)},b.prototype.normalizeX=function(x){return Math.max(this.position.x,Math.min(x,this.position.x+this.size.width))},b.prototype.normalizeY=function(x){return Math.max(this.position.y,Math.min(x,this.position.y+this.size.height))},b.prototype.getConnectionPoints=function(){var x=this;return this.description.getConnectionPoints().map(function(O){var k=new d.ConnectionPoint(x.position.x+O.x*x.size.width,x.position.y+O.y*x.size.height,O.side);return x.description.processConnectionPoint(x,k),k})},b.prototype.getConnectionPointSide=function(x,O){return x.side!==p.ConnectionPointSide.Undefined?x.side:this.getConnectionPointSideByGeometry(x)},b.prototype.getConnectionPointSideByGeometry=function(x){var O=x.clone().offset(-this.position.x,-this.position.y).multiply(1/this.size.width,1/this.size.height);return y.ShapeDescription.getConnectionPointSideByGeometry(O)},b.prototype.getConnectionPointIndexForItem=function(x,O){return this.description.getConnectionPointIndexForItem(x,O)},b.prototype.getConnectionPointIndexForSide=function(x){return this.description.getConnectionPointIndexForSide(x)},b.prototype.toggleExpandedSize=function(){this.expanded?(this.size=this.getExpandedSize(),this.expandedSize=void 0):(this.expandedSize=this.size.clone(),this.size=this.getCollapsedSize())},b.prototype.getExpandedSize=function(){return this.description.getExpandedSize(this)},b.prototype.getCollapsedSize=function(){return this.description.getCollapsedSize(this)},b.prototype.getToolboxHeightToWidthRatio=function(){return this.description.getToolboxHeightToWidthRatio(this.size.width,this.size.height)},Object.defineProperty(b.prototype,"allowResizeHorizontally",{get:function(){return this.description.allowResizeHorizontally(this)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"allowResizeVertically",{get:function(){return this.description.allowResizeVertically(this)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"rectangle",{get:function(){return C.Rectangle.fromGeometry(this.position,this.size)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"clientRectangle",{get:function(){return this.description.getClientRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"textRectangle",{get:function(){return this.description.getTextRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"textEditRectangle",{get:function(){return this.description.getTextEditRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"textAngle",{get:function(){return this.description.getTextAngle()},enumerable:!1,configurable:!0}),b.prototype.toNative=function(x){var O=new h.NativeShape(this.key,this.dataKey);return O.type=this.description.key,O.text=this.text,O.position=this.position.clone(),O.size=this.size.clone(),O.attachedConnectorIds=this.attachedConnectors.map(function(k){return k.key}),O.applyUnits(x),O.containerId=this.container?this.container.key:null,O.containerChildItemIds=this.children.map(function(k){return k.key}),O.containerExpanded=this.expanded,O},b}(p.DiagramItem);D.Shape=m},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RenderHelper=D.svgNS=void 0;var E=w(61);D.svgNS="http://www.w3.org/2000/svg";var I=function(){function C(){}return C.createSvgElement=function(y,g){void 0===g&&(g=!1);var p=document.createElementNS(D.svgNS,"svg");return p.className.baseVal="dxdi-canvas"+(g?" export":""),y&&y.appendChild(p),p},C.createMainElement=function(y,g){void 0===g&&(g=!1);var p=document.createElement("div");return p.setAttribute("class","dxdi-control"+(g?" measurer":"")),E.Diagnostics.optimizeLayers&&(p.style.transform="translateZ(0)"),y&&y.appendChild(p),p},C.addEventListener=function(y,g,p){y.addEventListener(g,p)},C.removeEventListener=function(y,g,p){y.removeEventListener(g,p)},C}();D.RenderHelper=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DiagramModelOperation=D.ModelOperationSettings=void 0;var I,E=function(){function I(){this._addShape=!0,this._addShapeFromToolbox=!0,this._deleteShape=!0,this._deleteConnector=!0,this._changeConnection=!0,this._changeConnectorPoints=!0,this._changeShapeText=!0,this._changeConnectorText=!0,this._resizeShape=!0,this._moveShape=!0}return Object.defineProperty(I.prototype,"addShape",{get:function(){return this._addShape},set:function(C){C!==this._addShape&&(this._addShape=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"addShapeFromToolbox",{get:function(){return this._addShapeFromToolbox},set:function(C){C!==this._addShapeFromToolbox&&(this._addShapeFromToolbox=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"deleteShape",{get:function(){return this._deleteShape},set:function(C){C!==this._deleteShape&&(this._deleteShape=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"deleteConnector",{get:function(){return this._deleteConnector},set:function(C){C!==this._deleteConnector&&(this._deleteConnector=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"changeConnection",{get:function(){return this._changeConnection},set:function(C){C!==this._changeConnection&&(this._changeConnection=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"changeConnectorPoints",{get:function(){return this._changeConnectorPoints},set:function(C){C!==this._changeConnectorPoints&&(this._changeConnectorPoints=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"changeShapeText",{get:function(){return this._changeShapeText},set:function(C){C!==this._changeShapeText&&(this._changeShapeText=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"changeConnectorText",{get:function(){return this._changeConnectorText},set:function(C){C!==this._changeConnectorText&&(this._changeConnectorText=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"resizeShape",{get:function(){return this._resizeShape},set:function(C){C!==this._resizeShape&&(this._resizeShape=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"moveShape",{get:function(){return this._moveShape},set:function(C){C!==this._moveShape&&(this._moveShape=C)},enumerable:!1,configurable:!0}),I.prototype.applySettings=function(C){C&&("boolean"==typeof C.addShape&&(this.addShape=C.addShape),"boolean"==typeof C.addShapeFromToolbox&&(this.addShapeFromToolbox=C.addShapeFromToolbox),"boolean"==typeof C.deleteShape&&(this.deleteShape=C.deleteShape),"boolean"==typeof C.deleteConnector&&(this.deleteConnector=C.deleteConnector),"boolean"==typeof C.changeConnection&&(this.changeConnection=C.changeConnection),"boolean"==typeof C.changeConnectorPoints&&(this.changeConnectorPoints=C.changeConnectorPoints),"boolean"==typeof C.changeShapeText&&(this.changeShapeText=C.changeShapeText),"boolean"==typeof C.changeConnectorText&&(this.changeConnectorText=C.changeConnectorText),"boolean"==typeof C.resizeShape&&(this.resizeShape=C.resizeShape),"boolean"==typeof C.moveShape&&(this.moveShape=C.moveShape))},I}();D.ModelOperationSettings=E,(I=D.DiagramModelOperation||(D.DiagramModelOperation={}))[I.AddShape=0]="AddShape",I[I.AddShapeFromToolbox=1]="AddShapeFromToolbox",I[I.DeleteShape=2]="DeleteShape",I[I.DeleteConnector=3]="DeleteConnector",I[I.ChangeConnection=4]="ChangeConnection",I[I.ChangeConnectorPoints=5]="ChangeConnectorPoints",I[I.BeforeChangeShapeText=6]="BeforeChangeShapeText",I[I.ChangeShapeText=7]="ChangeShapeText",I[I.BeforeChangeConnectorText=8]="BeforeChangeConnectorText",I[I.ChangeConnectorText=9]="ChangeConnectorText",I[I.ResizeShape=10]="ResizeShape",I[I.MoveShape=11]="MoveShape"},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.raiseEvent=D.RenderUtils=void 0;var E=w(11),I=w(31),C=function(){function y(){}return y.updateSvgElementSize=function(g,p,d,c){g.style.width=p+"px",g.style.height=d+"px",g.setAttribute("viewBox","0 0 "+p+" "+d),c&&(g.setAttribute("width",p.toString()),g.setAttribute("height",d.toString()))},y.removeElement=function(g){g&&g.parentNode&&g.parentNode.removeChild(g)},y.removeContent=function(g){for(;g&&g.firstChild;)g.removeChild(g.firstChild)},y.setElementEventData=function(g,p,d,c){p!==E.MouseEventElementType.Undefined&&(g.setAttribute("data-type",p.toString()),void 0!==d&&g.setAttribute("data-key",d.toString()),void 0!==c&&g.setAttribute("data-value",c.toString()))},y.getElementEventData=function(g){if(g.getAttribute&&g.getAttribute("data-type"))return new E.MouseEventSource(parseInt(g.getAttribute("data-type")),g.getAttribute("data-key"),g.getAttribute("data-value"));var p=g.getAttribute&&g.getAttribute("class");return"dxdi-page"===p||"dxdi-main"===p?new E.MouseEventSource(E.MouseEventElementType.Document):void 0},y.getHtmlElementStylePropertyName=function(g){switch(g){case"fill":return"color";case"text-anchor":return"text-align"}return g},y.getTextAnchorValue=function(g,p){if(void 0===p&&(p=!1),p){if("start"===g)return"end";if("end"===g)return"start"}return g},y.getStrokeDasharrayValue=function(g,p){if(p){var d=g&&g.toString();return(d?d.split(/[\s,]+/):[]).map(function(c){return parseInt(c)/2*p}).join(",")}return g},y.applyStyleToElement=function(g,p,d){var c=this;void 0===d&&(d=!1);var h=g.getDefaultInstance();g.forEach(function(m){var v=g[m],b=p instanceof HTMLElement?c.getHtmlElementStylePropertyName(m):m;if(void 0!==v&&""!==v&&v!==h[m]){switch(m){case"text-anchor":v=c.getTextAnchorValue(v,d);break;case"stroke-dasharray":v=c.getStrokeDasharrayValue(v,parseInt(g["stroke-width"]))}p.style.setProperty(b,v)}else p.style.setProperty(b,"")})},y.generateSvgElementId=function(g){return g+"_"+I.MathUtils.generateGuid()},y.getUrlPathById=function(g){return"url(#"+g+")"},y}();D.RenderUtils=C,D.raiseEvent=function(y,g,p){p(g),g.preventDefault&&y.preventDefault()}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(){}return I.IdentUserAgent=function(C,y){void 0===y&&(y=!1);var g=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],p={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(C&&0!==C.length){C=C.toLowerCase(),I.indentPlatformMajorVersion(C);try{for(var d={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"},c="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",h={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+c,Mozilla:"mozilla(?:.*rv:"+c+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+c,Firefox:"firefox(?:/|\\s*)?"+c,Opera:"(?:opera|\\sopr)(?:/|\\s*)?"+c,Opera10:"opera.*\\s*version(?:/|\\s*)?"+c,IE:"msie\\s*"+c,Edge:"edge(?:/|\\s*)?"+c},m=null,v=-1,b=0;b<g.length;b++){var x=g[b],O=new RegExp(h[x],"i").exec(C);if(O&&O.index>=0){if("IE"===m&&v>=11&&"Safari"===x)continue;"Opera10"===(m=x)&&(m="Opera"),v=I.GetBrowserVersion(C,O,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",I.getIECompatibleVersionString()),"Mozilla"===m&&v>=11&&(m="IE")}}m||(m="IE");var k=-1!==v;k||(v=p[m]);var M=null,A=Number.MAX_VALUE;for(var F in d)if(Object.prototype.hasOwnProperty.call(d,F)){var P="!"===F.substr(0,1),N=C.indexOf((P?F.substr(1):F).toLowerCase());N>=0&&(N<A||P)&&(A=P?0:N,M=d[F])}var B=C.toUpperCase().match("SM-[A-Z]"),V=B&&B.length>0;"WinPhone"===M&&v<9&&(v=Math.floor(I.getVersionFromTrident(C,"trident(?:/|\\s*)?"+c))),!y&&"IE"===m&&v>7&&document.documentMode<v&&(v=document.documentMode),"WinPhone"===M&&(v=Math.max(9,v)),M||(M="Win"),M!==d["cpu os"]||k||(v=4),I.fillUserAgentInfo(g,m,v,M,V)}catch{I.fillUserAgentInfo(g,"IE",p.IE,"Win")}}else I.fillUserAgentInfo(g,"IE",p.IE,"Win")},I.GetBrowserVersion=function(C,y,g,p){var d=I.getVersionFromMatches(y);if(p){var c=I.getVersionFromTrident(C,g);if("edge"===p||parseInt(p)===c)return c}return d},I.getIECompatibleVersionString=function(){if(document.compatible)for(var C=0;C<document.compatible.length;C++)if("IE"===document.compatible[C].userAgent&&document.compatible[C].version)return document.compatible[C].version.toLowerCase();return""},I.isTouchEnabled=function(){return I.hasTouchStart()||I.hasMaxTouchPoints()||I.hasMsMaxTouchPoints()},I.hasTouchStart=function(){return"ontouchstart"in window},I.hasMaxTouchPoints=function(){return navigator.maxTouchPoints>0},I.hasMsMaxTouchPoints=function(){return navigator.msMaxTouchPoints>0},I.hasNavigator=function(){return typeof navigator<"u"},I.fillUserAgentInfo=function(C,y,g,p,d){void 0===d&&(d=!1);for(var c=0;c<C.length;c++){var h=C[c];I[h]=h===y}I.Version=Math.floor(10*g)/10,I.MajorVersion=Math.floor(I.Version),I.WindowsPlatform="Win"===p||"WinPhone"===p,I.MacOSMobilePlatform="MacMobile"===p||"Mac"===p&&I.isTouchEnabled(),I.MacOSPlatform="Mac"===p&&!I.MacOSMobilePlatform,I.AndroidMobilePlatform="Android"===p,I.WindowsPhonePlatform="WinPhone"===p,I.WebKitFamily=I.Safari||I.Chrome||I.Opera&&I.MajorVersion>=15,I.NetscapeFamily=I.Netscape||I.Mozilla||I.Firefox,I.WebKitTouchUI=I.MacOSMobilePlatform||I.AndroidMobilePlatform;var m=I.IE&&I.MajorVersion>9&&I.WindowsPlatform&&I.UserAgent.toLowerCase().indexOf("touch")>=0;if(I.MSTouchUI=m||I.Edge&&!!window.navigator.maxTouchPoints,I.TouchUI=I.WebKitTouchUI||I.MSTouchUI,I.MobileUI=I.WebKitTouchUI||I.WindowsPhonePlatform,I.AndroidDefaultBrowser=I.AndroidMobilePlatform&&!I.Chrome,I.AndroidChromeBrowser=I.AndroidMobilePlatform&&I.Chrome,d&&(I.SamsungAndroidDevice=d),I.MSTouchUI){var v=I.UserAgent.toLowerCase().indexOf("arm;")>-1;I.VirtualKeyboardSupported=v||I.WindowsPhonePlatform}else I.VirtualKeyboardSupported=I.WebKitTouchUI;I.fillDocumentElementBrowserTypeClassNames(C)},I.indentPlatformMajorVersion=function(C){var y=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(C);y&&(I.PlaformMajorVersion=y[1])},I.getVersionFromMatches=function(C){var y=-1,g="";return C&&(C[1]&&(g+=C[1],C[2]&&(g+="."+C[2])),""!==g&&(y=parseFloat(g),isNaN(y)&&(y=-1))),y},I.getVersionFromTrident=function(C,y){var g=new RegExp(y,"i").exec(C);return I.getVersionFromMatches(g)+4},I.fillDocumentElementBrowserTypeClassNames=function(C){for(var y="",g=C.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),p=0;p<g.length;p++){var d=g[p];I[d]&&(y+="dx"+d+" ")}y+="dxBrowserVersion-"+I.MajorVersion,typeof document<"u"&&document&&document.documentElement&&(""!==document.documentElement.className&&(y=" "+y),document.documentElement.className+=y,I.Info=y)},I.getUserAgent=function(){return I.hasNavigator()&&navigator.userAgent?navigator.userAgent.toLowerCase():""},I.UserAgent=I.getUserAgent(),I._foo=I.IdentUserAgent(I.UserAgent),I}();D.Browser=E},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.RectangleShapeDescription=void 0;var C=w(7),y=w(2),g=w(21),p=w(1),d=function(c){function h(m,v){return void 0===m&&(m=new y.Size(C.ShapeDefaultDimension,.75*C.ShapeDefaultDimension)),c.call(this,m,v)||this}return I(h,c),Object.defineProperty(h.prototype,"key",{get:function(){return p.ShapeTypes.Rectangle},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(m){var v=m.rectangle;return[new g.RectanglePrimitive(v.x,v.y,v.width,v.height,m.style)]},h.prototype.getTextRectangle=function(m){return m.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},h.prototype.getSizeByText=function(m,v){return m.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},h}(C.ShapeDescription);D.RectangleShapeDescription=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.Alignment=D.DataLayoutOrientation=D.LogicalDirectionKind=D.TreeLayoutSettings=D.LayoutSettings=void 0;var C=w(6),y=function(h){this.orientation=p.Vertical,this.direction=g.Forward;var m=h&&2*h>C.Connector.minOffset?2*h:C.Connector.minOffset;this.columnSpacing=m,this.layerSpacing=2*m,this.containerPadding=2*m,this.componentSpacing=2*m};D.LayoutSettings=y;var g,p,d,h,c=function(h){function m(v){var b=h.call(this,v)||this;return b.alignment=d.Center,b.subTreeColumnSpacing=b.componentSpacing/2,b}return I(m,h),m}(y);D.TreeLayoutSettings=c,(h=g=D.LogicalDirectionKind||(D.LogicalDirectionKind={}))[h.Backward=0]="Backward",h[h.Forward=1]="Forward",function(h){h[h.Horizontal=0]="Horizontal",h[h.Vertical=1]="Vertical"}(p=D.DataLayoutOrientation||(D.DataLayoutOrientation={})),function(h){h[h.Left=0]="Left",h[h.Center=1]="Center"}(d=D.Alignment||(D.Alignment={}))},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.RectanglePrimitive=void 0;var C=w(15),y=function(g){function p(d,c,h,m,v,b,x,O){var k=g.call(this,v,b,x,O)||this;return k.x=d,k.y=c,k.width=h,k.height=m,k}return I(p,g),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"rect")},p.prototype.applyElementProperties=function(d,c){this.setUnitAttribute(d,"x",this.x),this.setUnitAttribute(d,"y",this.y),this.setUnitAttribute(d,"width",this.width),this.setUnitAttribute(d,"height",this.height),this.setPositionCorrectionAttribute(d),g.prototype.applyElementProperties.call(this,d,c)},p}(w(24).SvgPrimitive);D.RectanglePrimitive=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(49),I=function(){function C(){}return C.getAlpha=function(y){return y>>24&255},C.getRed=function(y){return y>>16&255},C.getGreen=function(y){return y>>8&255},C.getBlue=function(y){return 255&y},C.redPartToString=function(y){var g=C.getRed(y).toString(16);return g.length>1?g:"0"+g},C.greenPartToString=function(y){var g=C.getGreen(y).toString(16);return g.length>1?g:"0"+g},C.bluePartToString=function(y){var g=C.getBlue(y).toString(16);return g.length>1?g:"0"+g},C.fromArgbNumber=function(y,g,p,d){return y<<24|g<<16|p<<8|d},C.fromRgbaString=function(y,g){void 0===g&&(g=255);var p=y.replace(/ +/g,"").match(/(rgba?)|(\d+(\.\d+)?%?)|(\.\d+)/g);if(p&&p.length>3){for(var d=[],c=1,h=void 0;h=p[c];c++){var m=-1!==h.indexOf("%")?Math.round(2.55*parseFloat(h)):parseInt(h);if(m<0||m>255)return null;d.push(m)}if(0===y.indexOf("rgba")){if(isNaN(d[3])||d[3]<0||d[3]>1)return null;d[3]<=1&&(d[3]=Math.round(255*d[3]))}else if(d[3])return null;return(255&d[0])<<16|(255&d[1])<<8|255&d[2]|(255&(d.length>3?d[3]:g))<<24}return null},C.fromHashString=function(y,g){return void 0===g&&(g=255),C.isHashColorString(y)?("#"===y.charAt(0)&&(y=y.substr(1)),3===y.length&&(y=E.StringUtils.repeat(y.charAt(0),2)+E.StringUtils.repeat(y.charAt(1),2)+E.StringUtils.repeat(y.charAt(2),2)),parseInt(y,16)|g<<24):null},C.fromColorName=function(y,g){void 0===g&&(g=255);var p=C.colorNames[y.toLowerCase()];return p?C.fromHashString(p,g):null},C.fromString=function(y,g){void 0===g&&(g=255);var p=C.fromRgbaString(y,g);if(null!==p)return p;var d=C.fromHashString(y,g);return null!==d?d:C.fromColorName(y,g)},C.colorToHash=function(y){return"#"+C.redPartToString(y)+C.greenPartToString(y)+C.bluePartToString(y)},C.stringToHash=function(y){var g=this.fromString(y);return null!==g?this.colorToHash(g):null},C.isHashColorString=function(y){return/^#?([0-9a-f]{6})$/i.test(y)||/^#?([0-9a-f]{3})$/i.test(y)},C.isKnownColorName=function(y){return!!C.colorNames[y.toLowerCase()]},C.isGray=function(y){var g=C.getRed(y);return g===C.getGreen(y)&&g===C.getBlue(y)},C.DARK_COLOR=-16777216,C.LIGHT_COLOR=-1,C.colorNames={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#00ff00",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",windowtext:"#000000"},C}();D.ColorUtils=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PermissionRequestEventArgs=D.RequestedEntity=void 0;var E=function(){function C(y){this.apiController=y}return Object.defineProperty(C.prototype,"allowed",{get:function(){return this.eventArgs.allowed},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"updateUI",{get:function(){return this.eventArgs.updateUI},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"eventArgs",{get:function(){return this._eventArgs||(this._eventArgs=this.createEventArgs()),this._eventArgs},enumerable:!1,configurable:!0}),C}();D.RequestedEntity=E,D.PermissionRequestEventArgs=function(){this.allowed=!0,this.updateUI=!1}},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.SvgPrimitive=void 0;var C=w(17),y=function(g){function p(d,c,h,m){var v=g.call(this,d)||this;return v.className=c,v.clipPathId=h,v.onApplyProperties=m,v.children=[],v}return I(p,g),p.prototype.createElement=function(d){var c=this.createMainElement();return this.createChildElements(c),d(c),this.createCustomContent(c),c},p.prototype.createChildElements=function(d){for(var c=0;c<this.children.length;c++)this.children[c].createElement(function(h){return d.appendChild(h)})},p.prototype.applyElementProperties=function(d,c){this.applyElementStyleProperties(d),this.className&&d.setAttribute("class",this.className),"string"==typeof this.clipPathId&&(this.clipPathId?d.setAttribute("clip-path",C.RenderUtils.getUrlPathById(this.clipPathId)):d.removeAttribute("clip-path")),this.onApplyProperties&&this.onApplyProperties(d),this.applyChildrenProperties(d,c)},p.prototype.applyChildrenProperties=function(d,c){for(var h=0;h<this.children.length;h++)this.children[h].applyElementProperties(d.childNodes[h],c)},p.prototype.applyElementStyleProperties=function(d){this.applyElementStylePropertiesCore(d)},p.prototype.applyElementStylePropertiesCore=function(d,c){void 0===c&&(c=!1),this.style&&C.RenderUtils.applyStyleToElement(this.style,d,c)},p.prototype.createCustomContent=function(d){},p.prototype.destroyCustomContent=function(d){},p.prototype.dispose=function(){this.children&&this.children.forEach(function(d){return d.dispose()})},p}(w(109).PrimitiveObject);D.SvgPrimitive=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E,I,d,C=w(18),y=w(173),g=w(49),p=function(){function d(){}return d.getKeyModifiers=function(c){var h=0;return c.altKey&&(h|=E.Alt),c.ctrlKey&&(h|=E.Ctrl),c.shiftKey&&(h|=E.Shift),c.metaKey&&(h|=E.Meta),h},d.getShortcutCode=function(c,h,m,v,b){var x=c;return x|=h?E.Ctrl:0,x|=m?E.Shift:0,(x|=v?E.Alt:0)|(b?E.Meta:0)},d.getShortcutCodeByEvent=function(c){return d.getShortcutCode(d.getEventKeyCode(c),c.ctrlKey,c.shiftKey,c.altKey,!!C.Browser.MacOSPlatform&&c.metaKey)},d.getEventKeyCode=function(c){return C.Browser.NetscapeFamily||C.Browser.Opera?c.which:c.keyCode},d.parseShortcutString=function(c){if(!c)return 0;var h=!1,m=!1,v=!1,b=!1,x=null,O=c.toString().split("+");if(O.length>0)for(var k=0;k<O.length;k++){var M=g.StringUtils.trim(O[k].toUpperCase());switch(M){case"CONTROL":case"CONTROLKEY":case"CTRL":h=!0;break;case"SHIFT":case"SHIFTKEY":m=!0;break;case"ALT":v=!0;break;case"CMD":b=!0;break;case"F1":x=I.F1;break;case"F2":x=I.F2;break;case"F3":x=I.F3;break;case"F4":x=I.F4;break;case"F5":x=I.F5;break;case"F6":x=I.F6;break;case"F7":x=I.F7;break;case"F8":x=I.F8;break;case"F9":x=I.F9;break;case"F10":x=I.F10;break;case"F11":x=I.F11;break;case"F12":x=I.F12;break;case"RETURN":case"ENTER":x=I.Enter;break;case"HOME":x=I.Home;break;case"END":x=I.End;break;case"LEFT":x=I.Left;break;case"RIGHT":x=I.Right;break;case"UP":x=I.Up;break;case"DOWN":x=I.Down;break;case"PAGEUP":x=I.PageUp;break;case"PAGEDOWN":x=I.PageDown;break;case"SPACE":x=I.Space;break;case"TAB":x=I.Tab;break;case"BACKSPACE":case"BACK":x=I.Backspace;break;case"CONTEXT":x=I.ContextMenu;break;case"ESCAPE":case"ESC":x=I.Esc;break;case"DELETE":case"DEL":x=I.Delete;break;case"INSERT":case"INS":x=I.Insert;break;case"PLUS":x="+".charCodeAt(0);break;default:x=M.charCodeAt(0)}}else alert(y.EncodeUtils.decodeViaTextArea("Invalid shortcut"));return d.getShortcutCode(x,h,m,v,b)},d}();D.KeyUtils=p,(d=E=D.ModifierKey||(D.ModifierKey={}))[d.None=0]="None",d[d.Ctrl=65536]="Ctrl",d[d.Shift=262144]="Shift",d[d.Alt=1048576]="Alt",d[d.Meta=16777216]="Meta",function(d){d[d.Backspace=8]="Backspace",d[d.Tab=9]="Tab",d[d.Enter=13]="Enter",d[d.Pause=19]="Pause",d[d.CapsLock=20]="CapsLock",d[d.Esc=27]="Esc",d[d.Space=32]="Space",d[d.PageUp=33]="PageUp",d[d.PageDown=34]="PageDown",d[d.End=35]="End",d[d.Home=36]="Home",d[d.Left=37]="Left",d[d.Up=38]="Up",d[d.Right=39]="Right",d[d.Down=40]="Down",d[d.Insert=45]="Insert",d[d.Delete=46]="Delete",d[d.Key_0=48]="Key_0",d[d.Key_1=49]="Key_1",d[d.Key_2=50]="Key_2",d[d.Key_3=51]="Key_3",d[d.Key_4=52]="Key_4",d[d.Key_5=53]="Key_5",d[d.Key_6=54]="Key_6",d[d.Key_7=55]="Key_7",d[d.Key_8=56]="Key_8",d[d.Key_9=57]="Key_9",d[d.Key_a=65]="Key_a",d[d.Key_b=66]="Key_b",d[d.Key_c=67]="Key_c",d[d.Key_d=68]="Key_d",d[d.Key_e=69]="Key_e",d[d.Key_f=70]="Key_f",d[d.Key_g=71]="Key_g",d[d.Key_h=72]="Key_h",d[d.Key_i=73]="Key_i",d[d.Key_j=74]="Key_j",d[d.Key_k=75]="Key_k",d[d.Key_l=76]="Key_l",d[d.Key_m=77]="Key_m",d[d.Key_n=78]="Key_n",d[d.Key_o=79]="Key_o",d[d.Key_p=80]="Key_p",d[d.Key_q=81]="Key_q",d[d.Key_r=82]="Key_r",d[d.Key_s=83]="Key_s",d[d.Key_t=84]="Key_t",d[d.Key_u=85]="Key_u",d[d.Key_v=86]="Key_v",d[d.Key_w=87]="Key_w",d[d.Key_x=88]="Key_x",d[d.Key_y=89]="Key_y",d[d.Key_z=90]="Key_z",d[d.Windows=91]="Windows",d[d.ContextMenu=93]="ContextMenu",d[d.Numpad_0=96]="Numpad_0",d[d.Numpad_1=97]="Numpad_1",d[d.Numpad_2=98]="Numpad_2",d[d.Numpad_3=99]="Numpad_3",d[d.Numpad_4=100]="Numpad_4",d[d.Numpad_5=101]="Numpad_5",d[d.Numpad_6=102]="Numpad_6",d[d.Numpad_7=103]="Numpad_7",d[d.Numpad_8=104]="Numpad_8",d[d.Numpad_9=105]="Numpad_9",d[d.Multiply=106]="Multiply",d[d.Add=107]="Add",d[d.Subtract=109]="Subtract",d[d.Decimal=110]="Decimal",d[d.Divide=111]="Divide",d[d.F1=112]="F1",d[d.F2=113]="F2",d[d.F3=114]="F3",d[d.F4=115]="F4",d[d.F5=116]="F5",d[d.F6=117]="F6",d[d.F7=118]="F7",d[d.F8=119]="F8",d[d.F9=120]="F9",d[d.F10=121]="F10",d[d.F11=122]="F11",d[d.F12=123]="F12",d[d.NumLock=144]="NumLock",d[d.ScrollLock=145]="ScrollLock",d[d.Semicolon=186]="Semicolon",d[d.Equals=187]="Equals",d[d.Comma=188]="Comma",d[d.Dash=189]="Dash",d[d.Period=190]="Period",d[d.ForwardSlash=191]="ForwardSlash",d[d.GraveAccent=192]="GraveAccent",d[d.OpenBracket=219]="OpenBracket",d[d.BackSlash=220]="BackSlash",d[d.CloseBracket=221]="CloseBracket",d[d.SingleQuote=222]="SingleQuote"}(I=D.KeyCode||(D.KeyCode={}))},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(b,x){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,k){O.__proto__=k}||function(O,k){for(var M in k)k.hasOwnProperty(M)&&(O[M]=k[M])})(b,x)},function(b,x){function O(){this.constructor=b}E(b,x),b.prototype=null===x?Object.create(x):(O.prototype=x.prototype,new O)});Object.defineProperty(D,"__esModule",{value:!0}),D.EmptyStyle=D.StrokeStyle=D.TextAlignment=D.TextStyle=D.Style=D.DEFAULT_STROKE_DASHARRAY=D.DEFAULT_STROKE_WIDTH=D.StyleBase=void 0;var C=w(22),y=w(110),g=w(12),p=function(){function b(){this.createDefaultProperties()}return b.prototype.clone=function(){var x=this,O=this.createInstance();return this.forEach(function(k){O[k]=x[k]}),O},b.prototype.forEach=function(x){for(var O in this)Object.prototype.hasOwnProperty.call(this,O)&&x(O)},Object.defineProperty(b.prototype,"strokeWidthPx",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"strokeWidth",{get:function(){return g.UnitConverter.pixelsToTwips(this.strokeWidthPx)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"strokeOffset",{get:function(){return.5},enumerable:!1,configurable:!0}),b.prototype.toHash=function(){var x=this.toObject();return x?Object.keys(x).map(function(O){return O+"|"+x[O]}).join(""):""},b.prototype.toObject=function(){var x=this,O={},k=!1,M=this.getDefaultInstance();return this.forEach(function(A){x[A]!==M[A]&&(O[A]=x[A],k=!0)}),k?O:null},b.prototype.fromObject=function(x){for(var O in x)if(Object.prototype.hasOwnProperty.call(x,O)){var k=y.isColorProperty(O)?C.ColorUtils.stringToHash(x[O]):x[O];this[O]=k}},b}();D.StyleBase=p,D.DEFAULT_STROKE_WIDTH=2,D.DEFAULT_STROKE_DASHARRAY="";var d=function(b){function x(){return null!==b&&b.apply(this,arguments)||this}return I(x,b),x.prototype.createInstance=function(){return new x},x.prototype.createDefaultProperties=function(){this.fill="#ffffff",this.stroke="#000000",this["stroke-width"]=D.DEFAULT_STROKE_WIDTH.toString(),this["stroke-dasharray"]=D.DEFAULT_STROKE_DASHARRAY},x.prototype.getDefaultInstance=function(){return x.defaultInstance},x.prototype.isDefaultStrokeDashArray=function(){return this["stroke-dasharray"]===D.DEFAULT_STROKE_DASHARRAY},x.prototype.resetStrokeDashArray=function(){this["stroke-dasharray"]=D.DEFAULT_STROKE_DASHARRAY},Object.defineProperty(x.prototype,"strokeWidthPx",{get:function(){return parseInt(this["stroke-width"])},enumerable:!1,configurable:!0}),x.defaultInstance=new x,x}(p);D.Style=d;var c,b,h=function(b){function x(){return null!==b&&b.apply(this,arguments)||this}return I(x,b),x.prototype.createInstance=function(){return new x},x.prototype.createDefaultProperties=function(){this.fill="#000000",this["font-family"]="Arial",this["font-size"]="10pt",this["font-weight"]="",this["font-style"]="",this["text-decoration"]="",this["text-anchor"]="middle"},x.prototype.getDefaultInstance=function(){return x.defaultInstance},x.prototype.getAlignment=function(){switch(this["text-anchor"]){case"left":return c.Left;case"right":return c.Right;default:return c.Center}},x.defaultInstance=new x,x}(p);D.TextStyle=h,(b=c=D.TextAlignment||(D.TextAlignment={}))[b.Left=0]="Left",b[b.Right=1]="Right",b[b.Center=2]="Center";var m=function(b){function x(O,k){var M=b.call(this)||this;return M._strokeWidthPx=O,M._strokeOffset=k,M}return I(x,b),x.prototype.createInstance=function(){return new x},x.prototype.createDefaultProperties=function(){},x.prototype.getDefaultInstance=function(){return h.defaultInstance},Object.defineProperty(x.prototype,"strokeWidthPx",{get:function(){return this._strokeWidthPx||0},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"strokeOffset",{get:function(){return this._strokeOffset||0},enumerable:!1,configurable:!0}),x.default1pxInstance=new x(1,.5),x.default1pxNegativeOffsetInstance=new x(1,-.5),x.default2pxInstance=new x(2),x}(d);D.StrokeStyle=m;var v=function(b){function x(O){var k=b.call(this)||this;return O&&Object.keys(O).forEach(function(M){return k[M]=O[M]}),k}return I(x,b),x.prototype.createInstance=function(){return new x},x.prototype.createDefaultProperties=function(){},x.prototype.getDefaultInstance=function(){return h.defaultInstance},x.defaultInstance=new x,x}(d);D.EmptyStyle=v},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(18),I=w(50),C=w(31),y=w(49),g=function(){function c(){}return c.clearInnerHtml=function(h){for(;h.firstChild;)h.removeChild(h.firstChild)},c.setStylePosition=function(h,m){h.left=C.MathUtils.round(m.x,3)+"px",h.top=C.MathUtils.round(m.y,3)+"px"},c.setStyleSize=function(h,m){h.width=C.MathUtils.round(m.width,3)+"px",h.height=C.MathUtils.round(m.height,3)+"px"},c.setStyleSizeAndPosition=function(h,m){c.setStylePosition(h,m),c.setStyleSize(h,m)},c.hideNode=function(h){if(h){var m=h.parentNode;m&&m.removeChild(h)}},c.isHTMLElementNode=function(h){return h.nodeType===Node.ELEMENT_NODE},c.isTextNode=function(h){return h.nodeType===Node.TEXT_NODE},c.isElementNode=function(h){return h.nodeType===Node.ELEMENT_NODE},c.isHTMLTableRowElement=function(h){return"TR"===h.tagName},c.isItParent=function(h,m){if(!h||!m)return!1;for(;m;){if(m===h)return!0;if("BODY"===m.tagName)return!1;m=m.parentNode}return!1},c.getParentByTagName=function(h,m){for(m=m.toUpperCase();h;){if("BODY"===h.tagName)return null;if(h.tagName===m)return h;h=h.parentNode}return null},c.getDocumentScrollTop=function(){var h=E.Browser.IE&&"hidden"===c.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return E.Browser.WebKitFamily||E.Browser.Edge||h?E.Browser.MacOSMobilePlatform?window.pageYOffset:E.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},c.getDocumentScrollLeft=function(){var h=E.Browser.IE&&"hidden"===c.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return E.Browser.Edge||h?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:E.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},c.getCurrentStyle=function(h){if(h.currentStyle)return h.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var m=document.defaultView.getComputedStyle(h,null);if(!m&&E.Browser.Firefox&&window.frameElement){for(var v=[],b=window.frameElement;!(m=document.defaultView.getComputedStyle(h,null));)v.push([b,b.style.display]),b.style.setProperty("display","block","important"),b="BODY"===b.tagName?b.ownerDocument.defaultView.frameElement:b.parentNode;m=function(k){if("object"!=typeof k||!I.isDefined(k))return k;var M={};for(var A in k)M[A]=k[A];return M}(m);for(var x=void 0,O=0;x=v[O];O++)x[0].style.display=x[1];document}return m}return window.getComputedStyle(h,null)},c.setFocus=function(h){function m(){try{h.focus(),E.Browser.IE&&document.activeElement!==h&&h.focus()}catch{}}E.Browser.MacOSMobilePlatform?m():setTimeout(function(){m()},100)},c.hasClassName=function(h,m){try{var v=m.split(" "),b=h.classList;if(b){for(var x=v.length-1;x>=0;x--)if(!b.contains(v[x]))return!1}else{var O=h.getAttribute&&h.getAttribute("class");if(!O)return!1;var k=O.split(" ");for(x=v.length-1;x>=0;x--)if(k.indexOf(v[x])<0)return!1}return!0}catch{return!1}},c.addClassName=function(h,m){if(!c.hasClassName(h,m)){var v=h.getAttribute&&h.getAttribute("class");h.setAttribute("class",""===v?m:v+" "+m)}},c.removeClassName=function(h,m){var v=" "+(h.getAttribute&&h.getAttribute("class"))+" ",b=v.replace(" "+m+" "," ");v.length!==b.length&&h.setAttribute("class",y.StringUtils.trim(b))},c.toggleClassName=function(h,m,v){void 0===v?c.hasClassName(h,m)?c.removeClassName(h,m):c.addClassName(h,m):v?c.addClassName(h,m):c.removeClassName(h,m)},c.pxToInt=function(h){return p(h,parseInt)},c.pxToFloat=function(h){return p(h,parseFloat)},c.getAbsolutePositionY=function(h){function m(v){return Math.round(v.getBoundingClientRect().top+c.getDocumentScrollTop())}return h?E.Browser.IE?(v=h,E.Browser.IE&&null===v.parentNode?0:v.getBoundingClientRect().top+c.getDocumentScrollTop()):E.Browser.Firefox&&E.Browser.Version>=3?m(h):E.Browser.Opera?function(v){var b=!0;v&&c.isHTMLTableRowElement(v)&&v.cells.length>0&&(v=v.cells[0]);for(var x=d(v,!1);null!=v;)x+=v.offsetTop,b||(x-=v.scrollTop),v=v.offsetParent,b=!1;return x+document.body.scrollTop}(h):E.Browser.NetscapeFamily&&(!E.Browser.Firefox||E.Browser.Version<3)?function(v){for(var b=d(v,!1),x=!0;null!=v;){if(b+=v.offsetTop,x||null==v.offsetParent||(b-=v.scrollTop),!x&&E.Browser.Firefox){var O=c.getCurrentStyle(v);"DIV"===v.tagName&&"visible"!==O.overflow&&(b+=c.pxToInt(O.borderTopWidth))}x=!1,v=v.offsetParent}return b}(h):E.Browser.WebKitFamily||E.Browser.Edge?m(h):function(v){for(var b=0,x=!0;null!=v;)b+=v.offsetTop,x||null==v.offsetParent||(b-=v.scrollTop),x=!1,v=v.offsetParent;return b}(h):0;var v},c.getAbsolutePositionX=function(h){function m(v){return Math.round(v.getBoundingClientRect().left+c.getDocumentScrollLeft())}return h?E.Browser.IE?(v=h,E.Browser.IE&&null===v.parentNode?0:v.getBoundingClientRect().left+c.getDocumentScrollLeft()):E.Browser.Firefox&&E.Browser.Version>=3?m(h):E.Browser.Opera&&E.Browser.Version<=12?function(v){for(var b=!0,x=d(v,!0);null!=v;)x+=v.offsetLeft,b||(x-=v.scrollLeft),v=v.offsetParent,b=!1;return x+document.body.scrollLeft}(h):E.Browser.NetscapeFamily&&(!E.Browser.Firefox||E.Browser.Version<3)?function(v){for(var b=d(v,!0),x=!0;null!=v;){if(b+=v.offsetLeft,x||null==v.offsetParent||(b-=v.scrollLeft),!x&&E.Browser.Firefox){var O=c.getCurrentStyle(v);"DIV"===v.tagName&&"visible"!==O.overflow&&(b+=c.pxToInt(O.borderLeftWidth))}x=!1,v=v.offsetParent}return b}(h):E.Browser.WebKitFamily||E.Browser.Edge?m(h):function(v){for(var b=0,x=!0;null!=v;)b+=v.offsetLeft,x||null==v.offsetParent||(b-=v.scrollLeft),x=!1,v=v.offsetParent;return b}(h):0;var v},c.isInteractiveControl=function(h){return["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"].indexOf(h.tagName)>-1},c.getClearClientHeight=function(h){return h.offsetHeight-(c.getTopBottomPaddings(h)+c.getVerticalBordersWidth(h))},c.getTopBottomPaddings=function(h,m){var v=m||c.getCurrentStyle(h);return c.pxToInt(v.paddingTop)+c.pxToInt(v.paddingBottom)},c.getVerticalBordersWidth=function(h,m){I.isDefined(m)||(m=E.Browser.IE&&9!==E.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(h):c.getCurrentStyle(h));var v=0;return"none"!==m.borderTopStyle&&(v+=c.pxToFloat(m.borderTopWidth)),"none"!==m.borderBottomStyle&&(v+=c.pxToFloat(m.borderBottomWidth)),v},c.getNodes=function(h,m){for(var v=h.all||h.getElementsByTagName("*"),b=[],x=0;x<v.length;x++){var O=v[x];m(O)&&b.push(O)}return b},c.getChildNodes=function(h,m){for(var v=h.childNodes,b=[],x=0;x<v.length;x++){var O=v[x];m(O)&&b.push(O)}return b},c.getNodesByClassName=function(h,m){if(h.querySelectorAll){var v=h.querySelectorAll("."+m),b=[];return v.forEach(function(x){return b.push(x)}),b}return c.getNodes(h,function(x){return c.hasClassName(x,m)})},c.getChildNodesByClassName=function(h,m){return h.querySelectorAll?function(v,b){for(var x=[],O=0;O<v.length;O++){var k=v[O];b(k)&&x.push(k)}return x}(h.querySelectorAll("."+m),function(v){return v.parentNode===h}):c.getChildNodes(h,function(v){return!!c.isElementNode(v)&&I.isNonNullString(v.className)&&c.hasClassName(v,v.className)})},c.getVerticalScrollBarWidth=function(){if(void 0===c.verticalScrollBarWidth){var h=document.createElement("DIV");h.style.cssText="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 200px; height: 150px; overflow: hidden; box-sizing: content-box",document.body.appendChild(h);var m=document.createElement("P");h.appendChild(m),m.style.cssText="width: 100%; height: 200px;";var v=m.offsetWidth;h.style.overflow="scroll";var b=m.offsetWidth;v===b&&(b=h.clientWidth),c.verticalScrollBarWidth=v-b,document.body.removeChild(h)}return c.verticalScrollBarWidth},c.getHorizontalBordersWidth=function(h,m){I.isDefined(m)||(m=E.Browser.IE&&window.getComputedStyle?window.getComputedStyle(h):c.getCurrentStyle(h));var v=0;return"none"!==m.borderLeftStyle&&(v+=c.pxToFloat(m.borderLeftWidth)),"none"!==m.borderRightStyle&&(v+=c.pxToFloat(m.borderRightWidth)),v},c.getFontFamiliesFromCssString=function(h){return h.split(",").map(function(m){return y.StringUtils.trim(m.replace(/'|"/gi,""))})},c.getInnerText=function(h){if(E.Browser.Safari&&E.Browser.MajorVersion<=5){null===c.html2PlainTextFilter&&((c.html2PlainTextFilter=document.createElement("DIV")).style.width="0",c.html2PlainTextFilter.style.height="0",c.html2PlainTextFilter.style.overflow="visible",c.html2PlainTextFilter.style.display="none",document.body.appendChild(c.html2PlainTextFilter));var m=c.html2PlainTextFilter;m.innerHTML=h.innerHTML,m.style.display="";var v=m.innerText;return m.style.display="none",v}return E.Browser.NetscapeFamily||E.Browser.WebKitFamily||E.Browser.IE&&E.Browser.Version>=9||E.Browser.Edge?h.textContent:h.innerText},c.html2PlainTextFilter=null,c.verticalScrollBarWidth=void 0,c}();function p(c,h){var m=0;if(I.isDefined(c)&&""!==c)try{var v=c.indexOf("px");v>-1&&(m=h(c.substr(0,v)))}catch{}return m}function d(c,h){for(var m=0,v=!0;null!=c&&"BODY"!==c.tagName;){var b=g.getCurrentStyle(c);if("absolute"===b.position)break;v||"DIV"!==c.tagName||""!==b.position&&"static"!==b.position||(m-=h?c.scrollLeft:c.scrollTop),c=c.parentNode,v=!1}return m}D.DomUtils=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorRoutingMode=D.AutoZoomMode=D.DiagramSettings=void 0;var E,I,c,C=w(3),y=w(2),g=w(47),p=w(4),d=function(){function c(){this.onZoomChanged=new C.EventDispatcher,this.onViewChanged=new C.EventDispatcher,this.onReadOnlyChanged=new C.EventDispatcher,this.onConnectorRoutingModeChanged=new C.EventDispatcher,this._zoomLevel=1,this._zoomLevelWasChanged=!1,this._zoomLevelItems=[.5,.75,1,1.25,1.5,2,3],this._simpleView=!1,this._fullscreen=!1,this._readOnly=!1,this._autoZoom=E.Disabled,this._snapToGrid=!0,this._showGrid=!0,this._contextMenuEnabled=!0,this._gridSize=180,this._gridSizeItems=[90,180,360,720],this._pageSizeItems=[{size:new y.Size(12240,15840),text:"US-Letter ({width} x {height})"},{size:new y.Size(12240,20160),text:"US-Legal ({width} x {height})"},{size:new y.Size(15817,24491),text:"US-Tabloid ({width} x {height})"},{size:new y.Size(47679,67408),text:"A0 ({width} x {height})"},{size:new y.Size(33676,47679),text:"A1 ({width} x {height})"},{size:new y.Size(23811,33676),text:"A2 ({width} x {height})"},{size:new y.Size(16838,23811),text:"A3 ({width} x {height})"},{size:new y.Size(11906,16838),text:"A4 ({width} x {height})"},{size:new y.Size(8391,11906),text:"A5 ({width} x {height})"},{size:new y.Size(5953,8391),text:"A6 ({width} x {height})"},{size:new y.Size(4195,5953),text:"A7 ({width} x {height})"}],this._viewUnits=g.DiagramUnit.In,this._connectorRoutingMode=I.AllShapesOnly,this._reloadInsertedItemRequired=!1,this._useCanvgForExportToImage=!0}return Object.defineProperty(c.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(h){var m=this;(h=c.correctZoomLevel(h))!==this._zoomLevel&&(this._zoomLevel=h,this._zoomLevelWasChanged=!0,this.onZoomChanged.raise1(function(v){return v.notifyZoomChanged(h,m._autoZoom)}))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"zoomLevelWasChanged",{get:function(){return this._zoomLevelWasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"zoomLevelItems",{get:function(){return this._zoomLevelItems},set:function(h){(h=h.map(function(m){return c.correctZoomLevel(m)}))!==this._zoomLevelItems&&(this._zoomLevelItems=h)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"autoZoom",{get:function(){return this._autoZoom},set:function(h){var m=this;h!==this._autoZoom&&(this._autoZoom=h,this.onZoomChanged.raise1(function(v){return v.notifyZoomChanged(m._zoomLevel,h)}))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"simpleView",{get:function(){return this._simpleView},set:function(h){h!==this._simpleView&&(this._simpleView=h,this.notifyViewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"readOnly",{get:function(){return this._readOnly},set:function(h){h!==this._readOnly&&(this._readOnly=h,this.onReadOnlyChanged.raise1(function(m){return m.notifyReadOnlyChanged(h)}))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"fullscreen",{get:function(){return this._fullscreen},set:function(h){this._fullscreen=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"snapToGrid",{get:function(){return this._snapToGrid},set:function(h){this._snapToGrid=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"showGrid",{get:function(){return this._showGrid},set:function(h){var m=this;h!==this._showGrid&&(this._showGrid=h,this.onViewChanged.raise1(function(v){return v.notifyGridChanged(m.showGrid,m.gridSize)}))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"contextMenuEnabled",{get:function(){return this._contextMenuEnabled},set:function(h){this._contextMenuEnabled=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"gridSize",{get:function(){return this._gridSize},set:function(h){var m=this;h!==this._gridSize&&(this._gridSize=h,this.onViewChanged.raise1(function(v){return v.notifyGridChanged(m.showGrid,m.gridSize)}))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"gridSizeItems",{get:function(){return this._gridSizeItems},set:function(h){h!==this._gridSizeItems&&(this._gridSizeItems=h)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"pageSizeItems",{get:function(){return this._pageSizeItems},set:function(h){h!==this._pageSizeItems&&(this._pageSizeItems=h)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"viewUnits",{get:function(){return this._viewUnits},set:function(h){this._viewUnits=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"connectorRoutingMode",{get:function(){return this._connectorRoutingMode},set:function(h){h!==this._connectorRoutingMode&&(this._connectorRoutingMode=h,this.onConnectorRoutingModeChanged.raise1(function(m){return m.notifyConnectorRoutingModeChanged(h)}))},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"reloadInsertedItemRequired",{get:function(){return this._reloadInsertedItemRequired},set:function(h){this._reloadInsertedItemRequired=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"useCanvgForExportToImage",{get:function(){return this._useCanvgForExportToImage},set:function(h){this._useCanvgForExportToImage=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"shapeMinWidth",{get:function(){return this._shapeMinWidth},set:function(h){this._shapeMinWidth=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"shapeMinHeight",{get:function(){return this._shapeMinHeight},set:function(h){this._shapeMinHeight=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"shapeMaxWidth",{get:function(){return this._shapeMaxWidth},set:function(h){this._shapeMaxWidth=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"shapeMaxHeight",{get:function(){return this._shapeMaxHeight},set:function(h){this._shapeMaxHeight=h},enumerable:!1,configurable:!0}),c.prototype.applyShapeSizeSettings=function(h,m){h&&("number"==typeof h.shapeMaxHeight&&(this.shapeMaxHeight=p.ModelUtils.getTwipsValue(m,h.shapeMaxHeight)),"number"==typeof h.shapeMinHeight&&(this.shapeMinHeight=p.ModelUtils.getTwipsValue(m,h.shapeMinHeight)),"number"==typeof h.shapeMaxWidth&&(this.shapeMaxWidth=p.ModelUtils.getTwipsValue(m,h.shapeMaxWidth)),"number"==typeof h.shapeMinWidth&&(this.shapeMinWidth=p.ModelUtils.getTwipsValue(m,h.shapeMinWidth)))},c.prototype.notifyViewChanged=function(){var h=this;this.onViewChanged.raise1(function(m){return m.notifyViewChanged(h._simpleView)})},c.correctZoomLevel=function(h){return Math.min(10,Math.max(h,.01))},c}();D.DiagramSettings=d,(c=E=D.AutoZoomMode||(D.AutoZoomMode={}))[c.Disabled=0]="Disabled",c[c.FitContent=1]="FitContent",c[c.FitToWidth=2]="FitToWidth",function(c){c[c.None=0]="None",c[c.ConnectorShapesOnly=1]="ConnectorShapesOnly",c[c.AllShapesOnly=2]="AllShapesOnly"}(I=D.ConnectorRoutingMode||(D.ConnectorRoutingMode={}))},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorRenderPoint=void 0;var C=function(y){function g(p,d,c,h){void 0===c&&(c=-1),void 0===h&&(h=!1);var m=y.call(this,p,d)||this;return m.pointIndex=c,m.skipped=h,m}return I(g,y),g.prototype.offset=function(p,d){return y.prototype.offset.call(this,p,d),this.pointIndex=-1,this.skipped=!1,this},g.prototype.multiply=function(p,d){return y.prototype.multiply.call(this,p,d),this.pointIndex=-1,this.skipped=!1,this},g.prototype.clone=function(){return new g(this.x,this.y,this.pointIndex,this.skipped)},g}(w(0).Point);D.ConnectorRenderPoint=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ShapeParameterPoint=void 0,D.ShapeParameterPoint=function(I,C){this.key=I,this.point=C}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(105),I=function(){function C(){}return C.round=function(y,g){void 0===g&&(g=0);var p=C.powFactor[g];return Math.round(y*p)/p},C.numberCloseTo=function(y,g,p){return void 0===p&&(p=1e-5),Math.abs(y-g)<p},C.restrictValue=function(y,g,p){return p<g&&(p=g),y>p?p:y<g?g:y},C.getRandomInt=function(y,g){return Math.floor(Math.random()*(g-y+1))+y},C.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){var g=16*Math.random()|0;return("x"===y?g:3&g|8).toString(16)})},C.powFactor=E.ListUtils.initByCallback(20,function(y){return Math.pow(10,y)}),C.somePrimes=[1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003],C}();D.MathUtils=I},function(X,D,w){"use strict";var E,I,y;Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorProperties=D.DEFAULT_CONNECTOR_ENDLINEENDING=D.DEFAULT_CONNECTOR_STARTLINEENDING=D.DEFAULT_CONNECTOR_LINEOPTION=D.ConnectorLineEnding=D.ConnectorLineOption=void 0,(y=E=D.ConnectorLineOption||(D.ConnectorLineOption={}))[y.Straight=0]="Straight",y[y.Orthogonal=1]="Orthogonal",function(y){y[y.None=0]="None",y[y.Arrow=1]="Arrow",y[y.OutlinedTriangle=2]="OutlinedTriangle",y[y.FilledTriangle=3]="FilledTriangle"}(I=D.ConnectorLineEnding||(D.ConnectorLineEnding={})),D.DEFAULT_CONNECTOR_LINEOPTION=E.Orthogonal,D.DEFAULT_CONNECTOR_STARTLINEENDING=I.None,D.DEFAULT_CONNECTOR_ENDLINEENDING=I.Arrow;var C=function(){function y(){this.lineOption=D.DEFAULT_CONNECTOR_LINEOPTION,this.startLineEnding=D.DEFAULT_CONNECTOR_STARTLINEENDING,this.endLineEnding=D.DEFAULT_CONNECTOR_ENDLINEENDING}return y.prototype.clone=function(){var g=new y;return g.lineOption=this.lineOption,g.startLineEnding=this.startLineEnding,g.endLineEnding=this.endLineEnding,g},y.prototype.forEach=function(g){for(var p in this)Object.prototype.hasOwnProperty.call(this,p)&&g(p)},y.prototype.toObject=function(){var g={},p=!1;return this.lineOption!==D.DEFAULT_CONNECTOR_LINEOPTION&&(g.lineOption=this.lineOption,p=!0),this.startLineEnding!==D.DEFAULT_CONNECTOR_STARTLINEENDING&&(g.startLineEnding=this.startLineEnding,p=!0),this.endLineEnding!==D.DEFAULT_CONNECTOR_ENDLINEENDING&&(g.endLineEnding=this.endLineEnding,p=!0),p?g:null},y.prototype.fromObject=function(g){"number"==typeof g.lineOption&&(this.lineOption=g.lineOption),"number"==typeof g.startLineEnding&&(this.startLineEnding=g.startLineEnding),"number"==typeof g.endLineEnding&&(this.endLineEnding=g.endLineEnding)},y}();D.ConnectorProperties=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(31),I=w(35),C=w(0),y=w(13),g=function(){function p(d,c){this.startPoint=d,this.endPoint=c}return Object.defineProperty(p.prototype,"length",{get:function(){return I.Metrics.euclideanDistance(this.startPoint,this.endPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"xLength",{get:function(){return Math.abs(this.endPoint.x-this.startPoint.x)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"yLength",{get:function(){return Math.abs(this.endPoint.y-this.startPoint.y)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"center",{get:function(){return new C.Point(this.startPoint.x+(this.endPoint.x-this.startPoint.x)/2,this.startPoint.y+(this.endPoint.y-this.startPoint.y)/2)},enumerable:!0,configurable:!0}),p.prototype.isIntersected=function(d){return this.startPoint.equals(d.startPoint)||this.endPoint.equals(d.startPoint)||this.startPoint.equals(d.endPoint)||this.endPoint.equals(d.endPoint)||this.intersectCore(d)&&d.intersectCore(this)},p.prototype.containsPoint=function(d,c){return void 0===c&&(c=1e-7),this.startPoint.equals(d)||this.endPoint.equals(d)||E.MathUtils.numberCloseTo(this.length,I.Metrics.euclideanDistance(this.startPoint,d)+I.Metrics.euclideanDistance(this.endPoint,d),c)},p.prototype.isIntersectedByRect=function(d){if(y.Rectangle.containsPoint(d,this.startPoint)||y.Rectangle.containsPoint(d,this.endPoint))return!0;var c=d.x,h=d.x+d.width,m=d.y,v=d.y+d.height;return this.isIntersected(new p(new C.Point(c,m),new C.Point(c,v)))||this.isIntersected(new p(new C.Point(h,m),new C.Point(h,v)))||this.isIntersected(new p(new C.Point(c,m),new C.Point(h,m)))||this.isIntersected(new p(new C.Point(c,v),new C.Point(h,v)))},p.prototype.intersectCore=function(d){if(this.startPoint.x===this.endPoint.x){if(this.startPoint.x-d.endPoint.x!=0)return(this.startPoint.x-d.startPoint.x)/(this.startPoint.x-d.endPoint.x)<=0;if(d.endPoint.y-this.endPoint.y!=0)return(d.endPoint.y-this.startPoint.y)/(d.endPoint.y-this.endPoint.y)<=0}if(this.startPoint.y===this.endPoint.y){if(this.startPoint.y-d.endPoint.y!=0)return(this.startPoint.y-d.startPoint.y)/(this.startPoint.y-d.endPoint.y)<=0;if(d.endPoint.x-this.endPoint.x!=0)return(d.endPoint.x-this.startPoint.x)/(d.endPoint.x-this.endPoint.x)<=0}var c=(this.endPoint.y-this.startPoint.y)/(this.endPoint.x-this.startPoint.x),h=this.startPoint.y+(d.startPoint.x-this.startPoint.x)*c,m=this.startPoint.y+(d.endPoint.x-this.startPoint.x)*c,v=d.startPoint.y-h,b=d.endPoint.y-m;return 0===v&&0===b?(this.startPoint.y-h)/(this.endPoint.y-h)<=0||(this.startPoint.y-m)/(this.endPoint.y-m)<=0:0===v||0===b||v/b<0},p}();D.Segment=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerDraggingState=void 0;var C=w(40),y=w(11),g=w(12),p=function(d){function c(h,m){var v=d.call(this,h)||this;return v.history=m,v}return I(c,d),c.prototype.canApplyChangesOnMouseMove=function(h,m){return!h||!m||Math.abs(h.x-m.x)>c.dragStartLimit||Math.abs(h.y-m.y)>c.dragStartLimit},c.prototype.onAfterApplyChanges=function(){this.modified||this.handler.raiseDragStart(this.getDraggingElementKeys()),this.modified=!0,this.mouseDownPoint=void 0},c.prototype.onMouseDown=function(h){this.mouseDownPoint=h.modelPoint.clone()},c.prototype.onMouseMove=function(h){this.mouseMoveEvent=h,h.button!==y.MouseButton.Left?(this.cancelChanges(),this.handler.switchToDefaultState()):h.button===y.MouseButton.Left&&this.canApplyChangesOnMouseMove(this.mouseDownPoint,h.modelPoint)&&(this.onApplyChanges(h),this.onAfterApplyChanges())},c.prototype.onKeyDown=function(h){!this.mouseMoveEvent||16!==h.keyCode&&17!==h.keyCode&&18!==h.keyCode||this.performMouseMoveEvent(h.modifiers)},c.prototype.onKeyUp=function(h){!this.mouseMoveEvent||16!==h.keyCode&&17!==h.keyCode&&18!==h.keyCode||this.performMouseMoveEvent(h.modifiers)},c.prototype.onMouseUp=function(h){this.mouseDownPoint=void 0,this.mouseMoveEvent=void 0,this.handler.switchToDefaultState()},c.prototype.performMouseMoveEvent=function(h){this.mouseMoveEvent.modifiers=h,this.onMouseMove(this.mouseMoveEvent)},c.prototype.start=function(){this.handler.beginStorePermissions(),this.history.beginTransaction()},c.prototype.finish=function(){this.checkStoredPermissionsOnFinish(),this.modified?(this.onFinishWithChanges(),this.modified=!1,this.history.endTransaction(),this.handler.raiseDragEnd(this.getDraggingElementKeys())):this.history.endTransaction(),this.handler.endStorePermissions(),this.handler.clearInteractingItems()},c.prototype.checkStoredPermissionsOnFinish=function(){this.handler.isStoredPermissionsGranted()||(this.cancelChanges(),this.modified=!1)},c.prototype.onFinishWithChanges=function(){},c.prototype.cancelChanges=function(){this.handler.lockPermissions(),this.history.undoTransaction(),this.handler.unlockPermissions(),this.modified&&this.handler.raiseDragEnd(this.getDraggingElementKeys()),this.modified=!1},c.prototype.getSnappedPoint=function(h,m){return this.handler.getSnappedPointOnDragPoint(h,m)},c.dragStartLimit=g.UnitConverter.pixelsToTwips(4),c}(C.MouseHandlerCancellableState);D.MouseHandlerDraggingState=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(){}return I.euclideanDistance=function(C,y){var g=C.x-y.x,p=C.y-y.y;return Math.sqrt(g*g+p*p)},I.manhattanDistance=function(C,y){return Math.abs(C.x-y.x)+Math.abs(C.y-y.y)},I}();D.Metrics=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DiagramLocalizationService=void 0;var E=w(1),I=w(47),C=function(){function y(){}return y.unitItems={},y.formatUnit=function(g){return g.toString()},y.shapeTexts={},y}();D.DiagramLocalizationService=C,C.unitItems[I.DiagramUnit.In]="in",C.unitItems[I.DiagramUnit.Cm]="cm",C.unitItems[I.DiagramUnit.Px]="px",C.shapeTexts[E.ShapeTypes.Text]="Text",C.shapeTexts[E.ShapeTypes.Rectangle]="Rectangle",C.shapeTexts[E.ShapeTypes.Ellipse]="Ellipse",C.shapeTexts[E.ShapeTypes.Cross]="Cross",C.shapeTexts[E.ShapeTypes.Triangle]="Triangle",C.shapeTexts[E.ShapeTypes.Diamond]="Diamond",C.shapeTexts[E.ShapeTypes.Heart]="Heart",C.shapeTexts[E.ShapeTypes.Pentagon]="Pentagon",C.shapeTexts[E.ShapeTypes.Hexagon]="Hexagon",C.shapeTexts[E.ShapeTypes.Octagon]="Octagon",C.shapeTexts[E.ShapeTypes.Star]="Star",C.shapeTexts[E.ShapeTypes.ArrowLeft]="Left Arrow",C.shapeTexts[E.ShapeTypes.ArrowUp]="Up Arrow",C.shapeTexts[E.ShapeTypes.ArrowRight]="Right Arrow",C.shapeTexts[E.ShapeTypes.ArrowDown]="Down Arrow",C.shapeTexts[E.ShapeTypes.ArrowUpDown]="Up Down Arrow",C.shapeTexts[E.ShapeTypes.ArrowLeftRight]="Left Right Arrow",C.shapeTexts[E.ShapeTypes.Process]="Process",C.shapeTexts[E.ShapeTypes.Decision]="Decision",C.shapeTexts[E.ShapeTypes.Terminator]="Terminator",C.shapeTexts[E.ShapeTypes.PredefinedProcess]="Predefined Process",C.shapeTexts[E.ShapeTypes.Document]="Document",C.shapeTexts[E.ShapeTypes.MultipleDocuments]="Multiple Documents",C.shapeTexts[E.ShapeTypes.ManualInput]="Manual Input",C.shapeTexts[E.ShapeTypes.Preparation]="Preparation",C.shapeTexts[E.ShapeTypes.Data]="Data",C.shapeTexts[E.ShapeTypes.Database]="Database",C.shapeTexts[E.ShapeTypes.HardDisk]="Hard Disk",C.shapeTexts[E.ShapeTypes.InternalStorage]="Internal Storage",C.shapeTexts[E.ShapeTypes.PaperTape]="Paper Tape",C.shapeTexts[E.ShapeTypes.ManualOperation]="Manual Operation",C.shapeTexts[E.ShapeTypes.Delay]="Delay",C.shapeTexts[E.ShapeTypes.StoredData]="Stored Data",C.shapeTexts[E.ShapeTypes.Display]="Display",C.shapeTexts[E.ShapeTypes.Merge]="Merge",C.shapeTexts[E.ShapeTypes.Connector]="Connector",C.shapeTexts[E.ShapeTypes.Or]="Or",C.shapeTexts[E.ShapeTypes.SummingJunction]="Summing Junction",C.shapeTexts[E.ShapeTypes.Container]="Container",C.shapeTexts[E.ShapeTypes.VerticalContainer]="Vertical Container",C.shapeTexts[E.ShapeTypes.HorizontalContainer]="Horizontal Container",C.shapeTexts[E.ShapeTypes.Card]="Person's Name",C.shapeTexts[E.ShapeTypes.CardWithImageOnLeft]="Card with Image on the Left",C.shapeTexts[E.ShapeTypes.CardWithImageOnTop]="Card with Image on the Top",C.shapeTexts[E.ShapeTypes.CardWithImageOnRight]="Card with Image on the Right"},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ShapeParameters=D.ShapeParameter=void 0;var E=function(C,y){this.key=C,this.value=y};D.ShapeParameter=E;var I=function(){function C(){this.items={}}return C.prototype.add=function(y){this.items[y.key]=y},C.prototype.addRange=function(y){for(var g=0;g<y.length;g++)this.add(y[g])},C.prototype.get=function(y){return this.items[y]},C.prototype.forEach=function(y){for(var g in this.items)Object.prototype.hasOwnProperty.call(this.items,g)&&y(this.items[g])},C.prototype.clone=function(){var y=new C;return this.forEach(function(g){y.add(new E(g.key,g.value))}),y},C.prototype.toObject=function(){var y={},g=!1;return this.forEach(function(p){y[p.key]={value:p.value},g=!0}),g?y:null},C.prototype.fromObject=function(y){this.forEach(function(g){var p=y[g.key];p&&"number"==typeof p.value&&(g.value=p.value)})},C}();D.ShapeParameters=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectionMode=D.PositionInfo=D.Edge=void 0;var E=function(){function C(y,g,p,d){void 0===d&&(d=1),this.weight=d,this.key=y,this.from=g,this.to=p}return C.prototype.getHashKey=function(){return this.from+"_"+this.to},C.prototype.reverse=function(){return new C(this.key,this.to,this.from,this.weight)},C}();D.Edge=E;var C;D.PositionInfo=function(C,y){this.item=C,this.position=y},(C=D.ConnectionMode||(D.ConnectionMode={}))[C.Outgoing=1]="Outgoing",C[C.Incoming=2]="Incoming",C[C.OutgoingAndIncoming=3]="OutgoingAndIncoming"},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.GroupPrimitive=void 0;var C=w(15),y=function(g){function p(d,c,h,m,v,b){var x=g.call(this,null,c,m,v)||this;return x.zIndex=h,x.onBeforeDispose=b,x.children=d,x}return I(p,g),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"g")},p.prototype.applyElementProperties=function(d,c){(this.zIndex||0===this.zIndex)&&d.style.setProperty("z-index",this.zIndex.toString()),g.prototype.applyElementProperties.call(this,d,c)},p.prototype.dispose=function(){this.onBeforeDispose&&this.onBeforeDispose(),g.prototype.dispose.call(this)},p}(w(24).SvgPrimitive);D.GroupPrimitive=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerCancellableState=D.MouseHandlerStateBase=void 0;var C=w(25),y=function(){function p(d){this.handler=d}return p.prototype.start=function(){},p.prototype.finish=function(){},p.prototype.onMouseClick=function(d){},p.prototype.onMouseDblClick=function(d){this.handler.switchToDefaultState()},p.prototype.onMouseDown=function(d){},p.prototype.onMouseUp=function(d){},p.prototype.onMouseMove=function(d){},p.prototype.onMouseWheel=function(d){return!1},p.prototype.onDragStart=function(d){},p.prototype.onDragEnd=function(d){},p.prototype.onShortcut=function(d){return!1},p.prototype.onKeyDown=function(d){},p.prototype.onKeyUp=function(d){},p.prototype.onConnectionPointsShow=function(d,c){},p.prototype.onConnectionTargetShow=function(d,c){},p}();D.MouseHandlerStateBase=y;var g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.onShortcut=function(c){return c===C.KeyCode.Esc&&(this.cancelChanges(),this.handler.switchToDefaultState(),!0)},d}(y);D.MouseHandlerCancellableState=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(){}return I.binaryIndexOf=function(C,y,g,p){void 0===g&&(g=0),void 0===p&&(p=-2);var d=0===g;for(-2===p&&(p=C.length-1);g<=p;){var c=g+(p-g>>1),h=y(C[c]);if(h<0)g=c+1;else{if(!(h>0))return c;p=c-1}}return d?~g:-1},I.normedBinaryIndexOf=function(C,y,g,p){void 0===g&&(g=0),void 0===p&&(p=-2);var d=I.binaryIndexOf(C,y,g,p);return I.binaryIndexNormalizator(d)},I.binaryIndexNormalizator=function(C){return C<0?~C-1:C},I.normedInterpolationIndexOf=function(C,y,g,p,d){void 0===p&&(p=0),void 0===d&&(d=-2),-2===d&&(d=C.length-1);var c=C[Math.min(p,d)];if(void 0===c||g<y(c))return-1;for(var h=y(C[p]),m=y(C[d]);;){if(!(g>h&&g<m))return g===h?p:d;var v=p+Math.floor((g-h)*(d-p)/(m-h)),b=y(C[v]);if(g>b){if(g<(h=y(C[p=v+1])))return v}else{if(!(g<b))return v;m=y(C[d=v-1])}}},I}();D.SearchUtils=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CanvasManagerBase=D.PAGE_BG_TEXTFLOOR_FILTER_ID=void 0;var E=w(172),I=w(12);D.PAGE_BG_TEXTFLOOR_FILTER_ID="page-text-flood";var C=function(){function y(g,p){this.elements={},this.actualZoom=g,this.dom=p}return y.prototype.createAndChangePrimitivesElements=function(g,p){var d=this;g.forEach(function(c){d.createAndChangePrimitiveElement(c,p)})},y.prototype.createPrimitiveElement=function(g,p,d){return this.dom.createElement(g,p,d)},y.prototype.createAndChangePrimitiveElement=function(g,p,d){var c=this.createPrimitiveElement(g,p,d);return this.dom.changeByPrimitive(c,g),c},y.prototype.changePrimitiveElement=function(g,p){this.dom.changeByPrimitive(p,g)},y.prototype.getOrCreateElement=function(g,p,d,c){var h=g&&this.elements[g]||(this.elements[g]=this.createPrimitiveElement(p,d,c));return this.changePrimitiveElement(p,h),h},y.prototype.createTextFloodFilter=function(g,p,d){this.getOrCreateElement(g,new E.TextFloodFilterPrimitive(D.PAGE_BG_TEXTFLOOR_FILTER_ID,d),p)},y.prototype.getAbsoluteSize=function(g){return g.clone().applyConverter(I.UnitConverter.twipsToPixelsF).clone().multiply(this.actualZoom,this.actualZoom)},y}();D.CanvasManagerBase=C},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.TextOwner=void 0,(E=D.TextOwner||(D.TextOwner={}))[E.Shape=0]="Shape",E[E.Connector=1]="Connector",E[E.ExtensionLine=2]="ExtensionLine",E[E.Resize=3]="Resize"},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Data=D.SetAbsoluteY=D.SetAbsoluteX=void 0;var E=w(27),I=w(50);function C(p){return!isNaN(parseFloat(p))&&isFinite(p)}function y(p,d,c){return p-function(h,m){var x,O,v=(x=h,(O=document.createElement("DIV")).style.top="0px",O.style.left="0px",O.style.visibility="hidden",O.style.position=E.DomUtils.getCurrentStyle(x).position,O);"static"===v.style.position&&(v.style.position="absolute"),h.parentNode.appendChild(v);var b=m?E.DomUtils.getAbsolutePositionX(v):E.DomUtils.getAbsolutePositionY(v);return h.parentNode.removeChild(v),Math.round(b)}(d,c)}D.SetAbsoluteX=function(p,d){p.style.left=y(d,p,!0)+"px"},D.SetAbsoluteY=function(p,d){p.style.top=y(d,p,!1)+"px"};var g=function(){function p(){}return p.ArrayInsert=function(d,c,h){if(0<=h&&h<d.length){for(var m=d.length;m>h;m--)d[m]=d[m-1];d[h]=c}else d.push(c)},p.ArrayRemove=function(d,c){var h=p.ArrayIndexOf(d,c);h>-1&&p.ArrayRemoveAt(d,h)},p.ArrayRemoveAt=function(d,c){if(c>=0&&c<d.length){for(var h=c;h<d.length-1;h++)d[h]=d[h+1];d.pop()}},p.ArrayClear=function(d){for(;d.length>0;)d.pop()},p.ArrayIndexOf=function(d,c,h){if(h){for(m=0;m<d.length;m++)if(h(d[m],c))return m}else for(var m=0;m<d.length;m++)if(d[m]===c)return m;return-1},p.ArrayContains=function(d,c){return p.ArrayIndexOf(d,c)>=0},p.ArrayEqual=function(d,c){var h=d.length;if(h!==c.length)return!1;for(var m=0;m<h;m++)if(d[m]!==c[m])return!1;return!0},p.ArraySame=function(d,c){return d.length===c.length&&d.every(function(h){return p.ArrayContains(c,h)})},p.ArrayGetIntegerEdgeValues=function(d){var c=p.CollectionToArray(d);return p.ArrayIntegerAscendingSort(c),{start:c[0],end:c[c.length-1]}},p.ArrayIntegerAscendingSort=function(d){p.ArrayIntegerSort(d,!1)},p.ArrayIntegerSort=function(d,c){d.sort(function(h,m){var v=0;return h>m?v=1:h<m&&(v=-1),c&&(v*=-1),v})},p.CollectionsUnionToArray=function(d,c){for(var h=[],m=d.length,v=c.length,b=0;b<m+v;b++)h.push(b<m?d[b]:c[b-m]);return h},p.CollectionToArray=function(d){for(var c=[],h=0;h<d.length;h++)c.push(d[h]);return c},p.CreateHashTableFromArray=function(d){for(var c=[],h=0;h<d.length;h++)c[d[h]]=1;return c},p.CreateIndexHashTableFromArray=function(d){for(var c=[],h=0;h<d.length;h++)c[d[h]]=h;return c},p.ArrayToHash=function(d,c,h){return d instanceof Array?d.reduce(function(m,v,b){var x=c(v,b),O=h(v,b);return m[x]=O,m},{}):{}},p.Sum=function(d,c){return d instanceof Array?d.reduce(function(h,m){var v=c?c(m):m;return C(v)||(v=0),h+v},0):0},p.Min=function(d,c){return p.CalculateArrayMinMax(d,c,!1)},p.Max=function(d,c){return p.CalculateArrayMinMax(d,c,!0)},p.NearestLeftBinarySearchComparer=function(d,c,h){var m=d[c],v=m<h;return v&&c===d.length-1||v&&d[c+1]>=h?0:m<h?-1:1},p.ArrayBinarySearch=function(d,c,h,m,v){h||(h=p.defaultBinarySearchComparer),I.isDefined(m)||(m=0),I.isDefined(v)||(v=d.length-m);for(var b=m+v-1;m<=b;){var x=m+(b-m>>1),O=h(d,x,c);if(0===O)return x;O<0?m=x+1:b=x-1}return-(m+1)},p.ArrayFlatten=function(d){var c=[];return d.forEach(function(h){c=c.concat(h)}),c},p.GetDistinctArray=function(d){for(var c=[],h=0;h<d.length;h++){var m=d[h];-1===p.ArrayIndexOf(c,m)&&c.push(m)}return c},p.ForEach=function(d,c){if(Array.prototype.forEach)Array.prototype.forEach.call(d,c);else for(var h=0,m=d.length;h<m;h++)c(d[h],h,d)},p.MergeHashTables=function(d,c){if(!c||"string"==typeof c)return d;for(var h in d||(d={}),c)!h||h in d||(d[h]=c[h]);return d},p.Range=function(d,c){return(d=parseInt(d)||0)<0&&(d=0),(c=parseInt(c)||0)<0&&(c=0),Array(d).map(function(h,m){return c+m})},p.CalculateArrayMinMax=function(d,c,h){if(!(d instanceof Array))return 0;var m=h?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;return d.reduce(function(v,b){var x=c?c(b):b;return C(x)||(x=m),(h?Math.max:Math.min)(x,v)},m)},p.byRange=function(d,c,h){return Math.min(Math.max(d,c),h)},p.defaultBinarySearchComparer=function(d,c,h){var m=d[c];return m===h?0:m<h?-1:1},p.cssTextToObject=function(d){return d?(d=d.replace(/\/\*(.|\s)*?\*\//g,"").replace(/\s+/g," ")).split(";").reduce(function(c,h){if(h){var m=/\s*([^:]+?)\s*:\s*([^;]*)\s*$/.exec(h);if(m){var v=m[1],b=m[2];v&&b&&(c[v.trim()]=b.trim())}return c}return c},{}):{}},p.objectToCssText=function(d){return d?Object.keys(d).reduce(function(c,h){var m=h.trim(),v=d[h];return m&&v&&c.push(m+": "+v.toString().trim()),c},[]).join("; "):""},p}();D.Data=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectionPoint=void 0;var C=w(0),y=w(9),g=function(p){function d(c,h,m){void 0===m&&(m=y.ConnectionPointSide.Undefined);var v=p.call(this,c,h)||this;return v.side=m,v}return I(d,p),d.prototype.offset=function(c,h){return p.prototype.offset.call(this,c,h),this.side=y.ConnectionPointSide.Undefined,this},d.prototype.multiply=function(c,h){return p.prototype.multiply.call(this,c,h),this.side=y.ConnectionPointSide.Undefined,this},d.prototype.clone=function(){return new d(this.x,this.y,this.side)},d.prototype.toPoint=function(){return new C.Point(this.x,this.y)},d}(C.Point);D.ConnectionPoint=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ImageCache=D.CacheImageInfo=void 0;var E=w(83),I=w(51),C=w(3),y=function(){function p(d,c,h,m,v){this._base64=void 0!==d?E.Base64Utils.normalizeToDataUrl(d,"image/png"):void 0,this.actualId=c,this._referenceInfo=m,this._isLoaded=void 0!==v&&v,this.imageUrl=h}return Object.defineProperty(p.prototype,"isLoaded",{get:function(){return this._referenceInfo?this._referenceInfo._isLoaded:this._isLoaded},set:function(d){this._isLoaded=d},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"base64",{get:function(){return this._base64},set:function(d){this._base64=E.Base64Utils.normalizeToDataUrl(d,"image/png")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"referenceInfo",{get:function(){return this._referenceInfo},set:function(d){this._referenceInfo=d,this._base64=void 0,this._isLoaded=void 0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isLoading",{get:function(){return this._referenceInfo?this.referenceInfo._isLoading:this._isLoading},enumerable:!1,configurable:!0}),p.prototype.startLoading=function(){this._referenceInfo?this._referenceInfo.startLoading():this._isLoading=!0},p.prototype.finalizeLoading=function(){this._referenceInfo?this._referenceInfo.finalizeLoading():this._isLoading=!1},p}();D.CacheImageInfo=y;var g=function(){function p(){this.emptyImageId=0,this.lastActualId=0,this.onReadyStateChanged=new C.EventDispatcher,this.cache=[],this.nonLoadedImages=[],this.createUnloadedInfoByBase64(I.ImageInfo.transparentOnePixelImage).isLoaded=!0}return p.prototype.reset=function(){this.cache.splice(1),this.nonLoadedImages=[],this.lastActualId=1},Object.defineProperty(p.prototype,"emptyImage",{get:function(){return this.cache[this.emptyImageId]},enumerable:!1,configurable:!0}),p.prototype.getImageData=function(d){return this.cache[d]},p.prototype.createUnloadedInfoByUrl=function(d){return this.findInfoByUrl(d)||this.registerImageData(new y(void 0,this.getNextActualId(),d))},p.prototype.createUnloadedInfoByBase64=function(d){return this.findInfoByBase64(d)||this.registerImageData(new y(d,this.getNextActualId()))},p.prototype.createUnloadedInfoByShapeImageInfo=function(d){var c=d.exportUrl;return E.Base64Utils.checkPrependDataUrl(c)?this.createUnloadedInfoByBase64(c):this.createUnloadedInfoByUrl(c)},p.prototype.registerImageData=function(d){var c=this.cache[d.actualId];return c||(c=d),void 0!==d.actualId&&(this.cache[d.actualId]=c),0!==d.actualId&&(this.nonLoadedImages.push(d),1===this.nonLoadedImages.length&&this.raiseReadyStateChanged(!1)),c},p.prototype.loadAllImages=function(d){var c=this;this.cache.forEach(function(h){c.emptyImageId===h.actualId||h.isLoaded||h.isLoading||d.load(h)})},p.prototype.finalizeLoading=function(d,c){d.finalizeLoading(),d.isLoaded=!0;var h=this.nonLoadedImages.indexOf(d);if(this.nonLoadedImages.splice(h,1),0===this.nonLoadedImages.length&&this.raiseReadyStateChanged(!0),!d.referenceInfo&&c.base64){var m=E.Base64Utils.normalizeToDataUrl(c.base64,"image/png");this.cache.forEach(function(v){var b=v.base64===m&&v!==d&&v.isLoaded;return b&&(d.referenceInfo=v.referenceInfo?v.referenceInfo:v),b}),d.base64=m}},p.prototype.hasNonLoadedImages=function(){return 0!==this.nonLoadedImages.length},p.prototype.getNextActualId=function(){return this.lastActualId++},p.prototype.findInfoByBase64=function(d){return d=E.Base64Utils.normalizeToDataUrl(d,"image/png"),this.findInfoCore(function(c){return c.base64===d})},p.prototype.findInfoByUrl=function(d){return this.findInfoCore(function(c){return c.imageUrl===d})},p.prototype.findInfoCore=function(d){var c;return this.cache.forEach(function(h){d(h)&&(c=h)}),c},p.prototype.raiseReadyStateChanged=function(d){this.onReadyStateChanged.raise1(function(c){return c.notifyImageCacheReadyStateChanged(d)})},p.instance=new p,p}();D.ImageCache=g},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.PageOrientation=D.DiagramUnit=void 0,(E=D.DiagramUnit||(D.DiagramUnit={}))[E.In=0]="In",E[E.Cm=1]="Cm",E[E.Px=2]="Px",function(E){E[E.Portrait=0]="Portrait",E[E.Landscape=1]="Landscape"}(D.PageOrientation||(D.PageOrientation={}))},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.SetConnectionPointIndexHistoryItem=D.AddConnectionHistoryItem=void 0;var C=w(8),y=w(6),g=function(d){function c(h,m,v,b){var x=d.call(this)||this;return x.connectorKey=h.key,x.itemKey=m.key,x.connectionPointIndex=v,x.position=b,x}return I(c,d),c.prototype.redo=function(h){var m=h.model.findConnector(this.connectorKey),v=h.model.findItem(this.itemKey);h.addConnection(m,v,this.connectionPointIndex,this.position)},c.prototype.undo=function(h){var m=h.model.findConnector(this.connectorKey);h.deleteConnection(m,this.position)},c}(C.HistoryItem);D.AddConnectionHistoryItem=g;var p=function(d){function c(h,m,v){var b=d.call(this)||this;return b.connectorKey=h.key,b.connectionPointIndex=m,b.position=v,b}return I(c,d),c.prototype.redo=function(h){var m=h.model.findConnector(this.connectorKey);this.oldConnectionPointIndex=this.position===y.ConnectorPosition.Begin?m.beginConnectionPointIndex:m.endConnectionPointIndex,h.setConnectionPointIndex(m,this.connectionPointIndex,this.position)},c.prototype.undo=function(h){var m=h.model.findConnector(this.connectorKey);h.setConnectionPointIndex(m,this.oldConnectionPointIndex,this.position)},c}(C.HistoryItem);D.SetConnectionPointIndexHistoryItem=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(){}return I.isAlpha=function(C){return C>="a"&&C<="z"||C>="A"&&C<="Z"},I.isDigit=function(C){return C>="0"&&C<="9"},I.stringHashCode=function(C){var y=0;if(0===C.length)return y;for(var g=C.length,p=0;p<g;p++)y=(y<<5)-y+C.charCodeAt(p),y|=0;return y},I.endsAt=function(C,y){var g=C.length-1,p=y.length-1,d=g-p;if(d<0)return!1;for(;g>=d;g--,p--)if(C[g]!==y[p])return!1;return!0},I.startsAt=function(C,y){return C.substr(0,y.length)===y},I.stringInLowerCase=function(C){return C.toLowerCase()===C},I.stringInUpperCase=function(C){return C.toUpperCase()===C},I.atLeastOneSymbolInUpperCase=function(C){for(var y=0,g=void 0;g=C[y];y++)if(I.stringInUpperCase(g)&&!I.stringInLowerCase(g))return!0;return!1},I.getSymbolFromEnd=function(C,y){return C[C.length-y]},I.trim=function(C,y){if(void 0===y)return I.trimInternal(C,!0,!0);var g=y.join("");return C.replace(new RegExp("(^["+g+"]*)|(["+g+"]*$)","g"),"")},I.trimStart=function(C,y){if(void 0===y)return I.trimInternal(C,!0,!1);var g=y.join("");return C.replace(new RegExp("^["+g+"]*","g"),"")},I.trimEnd=function(C,y){if(void 0===y)return I.trimInternal(C,!1,!0);var g=y.join("");return C.replace(new RegExp("["+g+"]*$","g"),"")},I.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},I.repeat=function(C,y){return new Array(y<=0?0:y+1).join(C)},I.isNullOrEmpty=function(C){return!C||!C.length},I.padLeft=function(C,y,g){return I.repeat(g,Math.max(0,y-C.length))+C},I.trimInternal=function(C,y,g){var p=C.length;if(!p)return C;if(p<764833){var d=C;return y&&(d=d.replace(/^\s+/,"")),g&&(d=d.replace(/\s+$/,"")),d}var c=0;if(g)for(;p>0&&/\s/.test(C[p-1]);)p--;if(y&&p>0)for(;c<p&&/\s/.test(C[c]);)c++;return C.substring(c,p)},I}();D.StringUtils=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(49);D.isDefined=function(I){return null!=I},D.boolToInt=function(I){return I?1:0},D.boolToString=function(I){return I?"1":"0"},D.isNumber=function(I){return"number"==typeof I},D.isString=function(I){return"string"==typeof I},D.isNonNullString=function(I){return!!I},D.isEven=function(I){return I%2!=0},D.isOdd=function(I){return I%2==0},D.numberToStringBin=function(I,C){return void 0===C&&(C=0),E.StringUtils.padLeft(I.toString(2),C,"0")},D.numberToStringHex=function(I,C){return void 0===C&&(C=0),E.StringUtils.padLeft(I.toString(16),C,"0")}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ImageInfo=void 0;var E=w(83),I=function(){function C(y){this.url=void 0,this.base64=void 0,y&&(E.Base64Utils.checkPrependDataUrl(y)?this.base64=y:this.url=y),this.loadFailed=!1}return C.prototype.clone=function(){var y=new C;return y.url=this.url,y.base64=this.base64,y},Object.defineProperty(C.prototype,"isEmpty",{get:function(){return void 0===this.url&&void 0===this.base64},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"unableToLoad",{get:function(){return this.loadFailed},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"renderUrl",{get:function(){return this.base64||""},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"exportUrl",{get:function(){return this.base64?this.base64:this.url},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"actualUrl",{get:function(){return this.url?this.url:this.base64},enumerable:!1,configurable:!0}),Object.defineProperty(C,"transparentOnePixelImage",{get:function(){return this.transparentWhiteImage1_1},enumerable:!1,configurable:!0}),C.prototype.loadBase64Content=function(y){this.base64=E.Base64Utils.normalizeToDataUrl(y,"image/png")},C.prototype.setUnableToLoadFlag=function(){this.loadFailed=!0},C.transparentWhiteImage1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAANSURBVBhXY/j///9/AAn7A/0FQ0XKAAAAAElFTkSuQmCC",C}();D.ImageInfo=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorPointsOrthogonalSideCalculatorBase=void 0;var E=w(13),I=w(9),C=w(6),y=function(){function g(p){this.parent=p}return Object.defineProperty(g.prototype,"connector",{get:function(){return this.parent.connector},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"beginRect",{get:function(){return this.parent.beginRect},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"endRect",{get:function(){return this.parent.endRect},enumerable:!1,configurable:!0}),g.prototype.getBeginOffsetPoints=function(p,d,c,h){if(d=this.getCorrectOriginPoint(d,h),p!==I.ConnectionPointSide.Undefined){if(this.isBeginEndSame())return this.getSameShapeOffsetPoints(p,d,c,h);if(this.isBeginEndOverlappedPoints(d,c))return this.getOverlappedPointsOffsetPoints(p,d,c,h);if(this.isBeginEndOverlapped())return this.getBeginOverlappedShapeOffsetPoints(p,d,c,h)}else if(this.isOriginRectContainsTargetPoint(h,c))return this.getOverlappedPointsOffsetPoints(p,d,c,h);return this.isOnSidePoint(d,c)?this.getBeginOnSideOffsetPoints(p,d,c,h):this.getBeginOffSideOffsetPoints(p,d,c,h)},g.prototype.getEndOffsetPoints=function(p,d,c,h){if(d=this.getCorrectOriginPoint(d,h),p!==I.ConnectionPointSide.Undefined){if(this.isBeginEndSame())return this.getSameShapeOffsetPoints(p,d,c,h);if(this.isBeginEndOverlappedPoints(c,d))return this.getOverlappedPointsOffsetPoints(p,d,c,h);if(this.isBeginEndOverlapped())return this.getEndOverlappedShapeOffsetPoints(p,d,c,h)}else if(this.isOriginRectContainsTargetPoint(h,c))return this.getOverlappedPointsOffsetPoints(p,d,c,h);return this.isOnSidePoint(d,c)?this.getEndOnSideOffsetPoints(p,d,c,h):this.getEndOffSideOffsetPoints(p,d,c,h)},g.prototype.getSide=function(p,d){return Math.abs(d.x-p.x)>Math.abs(d.y-p.y)?d.x>p.x?I.ConnectionPointSide.East:I.ConnectionPointSide.West:d.y>p.y?I.ConnectionPointSide.South:I.ConnectionPointSide.North},g.prototype.getSideCalculator=function(p,d){return this.parent.getSideCalculator(this.getSide(p,d))},g.prototype.getMinOffset=function(){return C.Connector.minOffset},g.prototype.isBeginEndSame=function(){return this.connector.beginItem===this.connector.endItem},g.prototype.isBeginEndOverlapped=function(){return this.beginRect&&this.endRect&&E.Rectangle.areIntersected(this.beginRect,this.endRect)},g.prototype.isBeginEndOverlappedX=function(){return this.beginRect&&this.endRect&&!!E.Rectangle.getHorizIntersection(this.beginRect,this.endRect)},g.prototype.isBeginEndOverlappedY=function(){return this.beginRect&&this.endRect&&!!E.Rectangle.getVertIntersection(this.beginRect,this.endRect)},g.prototype.isBeginEndOverlappedPoints=function(p,d){return this.beginRect&&this.endRect&&(this.beginRect.containsPoint(d)||this.endRect.containsPoint(p))},g.prototype.isOriginRectContainsTargetPoint=function(p,d){return p&&d&&p.containsPoint(d)},g}();D.ConnectorPointsOrthogonalSideCalculatorBase=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.AddShapeHistoryItem=void 0;var C=w(8),y=w(14),g=function(p){function d(c,h,m,v){var b=p.call(this)||this;return b.shapeDescription=c,b.position=h,b.text=m,b.dataKey=v,b}return I(d,p),d.prototype.redo=function(c){var h=new y.Shape(this.shapeDescription,this.position);"string"==typeof this.text&&(h.text=this.text),void 0!==this.dataKey&&(h.dataKey=this.dataKey),c.addShape(h,this.shapeKey),this.shapeKey=h.key},d.prototype.undo=function(c){c.deleteShape(c.model.findShape(this.shapeKey),!0)},d}(C.HistoryItem);D.AddShapeHistoryItem=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(v,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var k in O)O.hasOwnProperty(k)&&(x[k]=O[k])})(v,b)},function(v,b){function x(){this.constructor=v}E(v,b),v.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Object.defineProperty(D,"__esModule",{value:!0}),D.GraphIterator=D.FastGraph=D.Graph=void 0;var C=w(38),y=w(14),g=w(41),p=w(90),d=function(){function v(b,x){this.nodeMap={},this.edgeMap={},this.nodes=[],this.edges=[],this.onInit(),b.forEach(this.addNode.bind(this)),x.forEach(this.addEdge.bind(this))}return Object.defineProperty(v.prototype,"items",{get:function(){return this.nodes.map(this.getNode.bind(this))},enumerable:!1,configurable:!0}),v.prototype.onInit=function(){},v.prototype.addEdge=function(b){this.edgeMap[b.key]=b,this.edges.push(b)},v.prototype.addNode=function(b){this.nodeMap[b.key]=b,this.nodes.push(b.key)},v.prototype.getNode=function(b){return this.nodeMap[b]},v.prototype.getEdge=function(b){return this.edgeMap[b]},v.prototype.isEmpty=function(){return!this.nodes.length&&!this.edges.length},v.prototype.getAdjacentEdges=function(b,x){return void 0===x&&(x=C.ConnectionMode.OutgoingAndIncoming),this.edges.filter(function(O){return x&C.ConnectionMode.Incoming&&O.to===b||x&C.ConnectionMode.Outgoing&&O.from===b})},v}(),c=function(v){function b(){return null!==v&&v.apply(this,arguments)||this}return I(b,v),b.prototype.cast=function(x,O){var k=this;return new b(this.nodes.map(function(M){return x(k.getNode(M))}),this.edges.map(function(M){return O?O(M):M}))},b.prototype.getConnectedComponents=function(){var x=this.createIterator(C.ConnectionMode.OutgoingAndIncoming);x.visitEachEdgeOnce=!0;for(var O=[],k=function(F){var P=[],N=[];x.onNode=function(B){return P.push(B)},x.onEdge=function(B){return N.push(B)},x.iterate(M.nodes[F]),P.length&&O.push(new b(P,N))},M=this,A=0;A<this.nodes.length;A++)k(A);return O},b.prototype.createIterator=function(x){var O=new m(this,x);return O.comparer=function(k,M){return k.weight-M.weight},O},b.prototype.getSpanningGraph=function(x,O,k){var M=this;if(void 0===k&&(k=void 0),!this.nodes.length)return new b([],[]);k||(k=function(V){return V.weight});var A=[],F=new p.HashSet,P=new p.HashSet([],function(V){return V.getHashKey()});for(this.addNodeToSpanningGraph(x,O,A,F,P,k);A.length&&F.length!==this.nodes.length;){var N=A.shift();P.tryPush(N);var B=F.contains(N.from)?N.to:N.from;this.addNodeToSpanningGraph(B,O,A,F,P,k),A=A.filter(function(V){return!F.contains(V.from)||!F.contains(V.to)})}return new b(F.list().map(function(V){return M.getNode(V)}),P.list())},b.prototype.addNodeToSpanningGraph=function(x,O,k,M,A,F){M.tryPush(x),this.getAdjacentEdges(x,O).filter(function(P){return!A.contains(P)}).forEach(function(P){var N=F(P),B=g.SearchUtils.binaryIndexOf(k,function(V){return V.weight-N});for(B=B<0?~B:B;B<k.length&&F(k[B])===N;)B++;k.splice(B,0,new C.Edge(P.key,P.from,P.to,N))})},b.create=function(x,O){return new b(x,O.filter(function(k){return k.beginItem&&k.endItem instanceof y.Shape&&k.endItem&&k.endItem instanceof y.Shape&&k.beginItem!==k.endItem}).map(function(k){return new C.Edge(k.key,k.beginItem&&k.beginItem.key,k.endItem&&k.endItem.key)}))},b}(d);D.Graph=c;var h=function(v){function b(){return null!==v&&v.apply(this,arguments)||this}return I(b,v),b.prototype.onInit=function(){this.parentToChildren={},this.childToParents={}},b.prototype.addEdge=function(x){v.prototype.addEdge.call(this,x),(this.parentToChildren[x.from]||(this.parentToChildren[x.from]=[])).push(x.to),(this.childToParents[x.to]||(this.childToParents[x.to]=[])).push(x.from)},b.prototype.getChildren=function(x){return this.parentToChildren[x]||[]},b.prototype.getParents=function(x){return this.childToParents[x]||[]},b.prototype.createIterator=function(x){return new m(this,x)},b}(d);D.FastGraph=h;var m=function(){function v(b,x){void 0===x&&(x=C.ConnectionMode.OutgoingAndIncoming),this.graph=b,this.connectionMode=x,this.visitEachEdgeOnce=!0,this.visitEachNodeOnce=!0,this.visitedNodes={},this.visitedEdges={}}return v.prototype.iterate=function(b){if(!this.visitEachNodeOnce&&!this.visitEachEdgeOnce&&!this.skipNode)throw"skipNode or visitEachNodeOnce or visitEachEdgeOnce must be set to avoid SOF";this.iterateCore(b)},v.prototype.iterateCore=function(b){var x=this,O=this.graph.getNode(b);if(!(!O||this.skipNode&&this.skipNode(O)||this.visitEachNodeOnce&&this.isNodeVisited(b))){this.visitedNodes[b]=!0,this.onNode&&this.onNode(O);var k=this.graph.getAdjacentEdges(b,this.connectionMode);if(this.skipEdge&&(k=k.filter(function(F){return!x.skipEdge(F)})),this.connectionMode&C.ConnectionMode.Outgoing){var M=k.filter(function(F){return F.from===b});this.comparer&&M.sort(this.comparer),M.forEach(function(F){x.visitEachEdgeOnce&&x.visitedEdges[F.key]||(x.visitedEdges[F.key]=!0,x.onEdge&&x.onEdge(F,!0),x.iterateCore(F.to),x.onAfterEdge&&x.onAfterEdge(F,!0))})}if(this.onAllEdges&&this.onAllEdges(O,!0),this.connectionMode&C.ConnectionMode.Incoming){var A=k.filter(function(F){return F.to===b});this.comparer&&A.sort(this.comparer),A.forEach(function(F){x.visitEachEdgeOnce&&x.visitedEdges[F.key]||(x.visitedEdges[F.key]=!0,x.onEdge&&x.onEdge(F,!1),x.iterateCore(F.from),x.onAfterEdge&&x.onAfterEdge(F,!1))})}this.onAllEdges&&this.onAllEdges(O,!1)}},v.prototype.isNodeVisited=function(b){return!!this.visitedNodes[b]},v.prototype.isEdgeVisited=function(b){return!!this.visitedEdges[b]},v}();D.GraphIterator=m},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.EllipsePrimitive=void 0;var C=w(15),y=function(g){function p(d,c,h,m,v,b,x){var O=g.call(this,v,b,void 0,x)||this;return O.cx=d,O.cy=c,O.rx=h,O.ry=m,O}return I(p,g),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"ellipse")},p.prototype.applyElementProperties=function(d,c){this.setUnitAttribute(d,"cx",this.cx),this.setUnitAttribute(d,"cy",this.cy),this.setUnitAttribute(d,"rx",this.rx),this.setUnitAttribute(d,"ry",this.ry),this.setPositionCorrectionAttribute(d),g.prototype.applyElementProperties.call(this,d,c)},p}(w(24).SvgPrimitive);D.EllipsePrimitive=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.ClipPathPrimitive=void 0;var C=w(15),y=function(g){function p(d,c){var h=g.call(this)||this;return h.id=d,h.children=c,h}return I(p,g),p.prototype.createMainElement=function(){var d=document.createElementNS(C.svgNS,"clipPath");return d.setAttribute("id",this.id),d},p.prototype.applyElementProperties=function(d,c){this.id&&d.setAttribute("id",this.id),g.prototype.applyElementProperties.call(this,d,c)},p}(w(24).SvgPrimitive);D.ClipPathPrimitive=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ExportImportCommandBase=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.isEnabledInReadOnlyMode=function(){return!0},g}(w(10).SimpleCommandBase);D.ExportImportCommandBase=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DiagramModelOperation=D.Diagnostics=D.RenderHelper=D.DiagramLocalizationService=D.NativeConnector=D.NativeShape=D.ShapeType=D.ColorUtils=D.PageOrientation=D.ConnectorPosition=D.ConnectorLineOption=D.ConnectorLineEnding=D.AutoZoomMode=D.Browser=D.UnitConverter=D.EventDispatcher=D.DataLayoutOrientation=D.DataLayoutType=D.ShapeCategories=D.ShapeTypes=D.DiagramUnit=D.default=D.DiagramControl=D.DiagramCommand=D.Point=D.Size=void 0;var E=w(82);Object.defineProperty(D,"DiagramCommand",{enumerable:!0,get:function(){return E.DiagramCommand}});var I=w(301);Object.defineProperty(D,"DiagramControl",{enumerable:!0,get:function(){return I.DiagramControl}}),Object.defineProperty(D,"default",{enumerable:!0,get:function(){return I.DiagramControl}});var C=w(2);Object.defineProperty(D,"Size",{enumerable:!0,get:function(){return C.Size}});var y=w(0);Object.defineProperty(D,"Point",{enumerable:!0,get:function(){return y.Point}});var g=w(3);Object.defineProperty(D,"EventDispatcher",{enumerable:!0,get:function(){return g.EventDispatcher}});var p=w(1);Object.defineProperty(D,"ShapeTypes",{enumerable:!0,get:function(){return p.ShapeTypes}}),Object.defineProperty(D,"ShapeCategories",{enumerable:!0,get:function(){return p.ShapeCategories}}),Object.defineProperty(D,"ShapeType",{enumerable:!0,get:function(){return p.ShapeType}});var d=w(12);Object.defineProperty(D,"UnitConverter",{enumerable:!0,get:function(){return d.UnitConverter}});var c=w(18);Object.defineProperty(D,"Browser",{enumerable:!0,get:function(){return c.Browser}});var h=w(28);Object.defineProperty(D,"AutoZoomMode",{enumerable:!0,get:function(){return h.AutoZoomMode}});var m=w(103);Object.defineProperty(D,"DataLayoutType",{enumerable:!0,get:function(){return m.DataLayoutType}});var v=w(20);Object.defineProperty(D,"DataLayoutOrientation",{enumerable:!0,get:function(){return v.DataLayoutOrientation}}),w(380);var b=w(32);Object.defineProperty(D,"ConnectorLineEnding",{enumerable:!0,get:function(){return b.ConnectorLineEnding}}),Object.defineProperty(D,"ConnectorLineOption",{enumerable:!0,get:function(){return b.ConnectorLineOption}});var x=w(22);Object.defineProperty(D,"ColorUtils",{enumerable:!0,get:function(){return x.ColorUtils}});var O=w(61);Object.defineProperty(D,"Diagnostics",{enumerable:!0,get:function(){return O.Diagnostics}});var k=w(84);Object.defineProperty(D,"NativeShape",{enumerable:!0,get:function(){return k.NativeShape}}),Object.defineProperty(D,"NativeConnector",{enumerable:!0,get:function(){return k.NativeConnector}});var M=w(36);Object.defineProperty(D,"DiagramLocalizationService",{enumerable:!0,get:function(){return M.DiagramLocalizationService}});var A=w(15);Object.defineProperty(D,"RenderHelper",{enumerable:!0,get:function(){return A.RenderHelper}});var F=w(47);Object.defineProperty(D,"DiagramUnit",{enumerable:!0,get:function(){return F.DiagramUnit}}),Object.defineProperty(D,"PageOrientation",{enumerable:!0,get:function(){return F.PageOrientation}});var P=w(16);Object.defineProperty(D,"DiagramModelOperation",{enumerable:!0,get:function(){return P.DiagramModelOperation}});var N=w(6);Object.defineProperty(D,"ConnectorPosition",{enumerable:!0,get:function(){return N.ConnectorPosition}})},function(X,D,w){"use strict";w.r(D),w.d(D,"__extends",function(){return I}),w.d(D,"__assign",function(){return C}),w.d(D,"__rest",function(){return y}),w.d(D,"__decorate",function(){return g}),w.d(D,"__param",function(){return p}),w.d(D,"__metadata",function(){return d}),w.d(D,"__awaiter",function(){return c}),w.d(D,"__generator",function(){return h}),w.d(D,"__createBinding",function(){return m}),w.d(D,"__exportStar",function(){return v}),w.d(D,"__values",function(){return b}),w.d(D,"__read",function(){return x}),w.d(D,"__spread",function(){return O}),w.d(D,"__spreadArrays",function(){return k}),w.d(D,"__await",function(){return M}),w.d(D,"__asyncGenerator",function(){return A}),w.d(D,"__asyncDelegator",function(){return F}),w.d(D,"__asyncValues",function(){return P}),w.d(D,"__makeTemplateObject",function(){return N}),w.d(D,"__importStar",function(){return V}),w.d(D,"__importDefault",function(){return H}),w.d(D,"__classPrivateFieldGet",function(){return W}),w.d(D,"__classPrivateFieldSet",function(){return q});var E=function(G,J){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,ae){ne.__proto__=ae}||function(ne,ae){for(var ge in ae)Object.prototype.hasOwnProperty.call(ae,ge)&&(ne[ge]=ae[ge])})(G,J)};function I(G,J){function ne(){this.constructor=G}E(G,J),G.prototype=null===J?Object.create(J):(ne.prototype=J.prototype,new ne)}var C=function(){return(C=Object.assign||function(G){for(var J,ne=1,ae=arguments.length;ne<ae;ne++)for(var ge in J=arguments[ne])Object.prototype.hasOwnProperty.call(J,ge)&&(G[ge]=J[ge]);return G}).apply(this,arguments)};function y(G,J){var ne={};for(var ae in G)Object.prototype.hasOwnProperty.call(G,ae)&&J.indexOf(ae)<0&&(ne[ae]=G[ae]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var ge=0;for(ae=Object.getOwnPropertySymbols(G);ge<ae.length;ge++)J.indexOf(ae[ge])<0&&Object.prototype.propertyIsEnumerable.call(G,ae[ge])&&(ne[ae[ge]]=G[ae[ge]])}return ne}function g(G,J,ne,ae){var ge,pe=arguments.length,le=pe<3?J:null===ae?ae=Object.getOwnPropertyDescriptor(J,ne):ae;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)le=Reflect.decorate(G,J,ne,ae);else for(var ce=G.length-1;ce>=0;ce--)(ge=G[ce])&&(le=(pe<3?ge(le):pe>3?ge(J,ne,le):ge(J,ne))||le);return pe>3&&le&&Object.defineProperty(J,ne,le),le}function p(G,J){return function(ne,ae){J(ne,ae,G)}}function d(G,J){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(G,J)}function c(G,J,ne,ae){return new(ne||(ne=Promise))(function(ge,pe){function le(K){try{oe(ae.next(K))}catch(Q){pe(Q)}}function ce(K){try{oe(ae.throw(K))}catch(Q){pe(Q)}}function oe(K){var Q;K.done?ge(K.value):(Q=K.value,Q instanceof ne?Q:new ne(function(de){de(Q)})).then(le,ce)}oe((ae=ae.apply(G,J||[])).next())})}function h(G,J){var ne,ae,ge,pe,le={label:0,sent:function(){if(1&ge[0])throw ge[1];return ge[1]},trys:[],ops:[]};return pe={next:ce(0),throw:ce(1),return:ce(2)},"function"==typeof Symbol&&(pe[Symbol.iterator]=function(){return this}),pe;function ce(oe){return function(K){return function(Q){if(ne)throw new TypeError("Generator is already executing.");for(;le;)try{if(ne=1,ae&&(ge=2&Q[0]?ae.return:Q[0]?ae.throw||((ge=ae.return)&&ge.call(ae),0):ae.next)&&!(ge=ge.call(ae,Q[1])).done)return ge;switch(ae=0,ge&&(Q=[2&Q[0],ge.value]),Q[0]){case 0:case 1:ge=Q;break;case 4:return le.label++,{value:Q[1],done:!1};case 5:le.label++,ae=Q[1],Q=[0];continue;case 7:Q=le.ops.pop(),le.trys.pop();continue;default:if(!(ge=(ge=le.trys).length>0&&ge[ge.length-1])&&(6===Q[0]||2===Q[0])){le=0;continue}if(3===Q[0]&&(!ge||Q[1]>ge[0]&&Q[1]<ge[3])){le.label=Q[1];break}if(6===Q[0]&&le.label<ge[1]){le.label=ge[1],ge=Q;break}if(ge&&le.label<ge[2]){le.label=ge[2],le.ops.push(Q);break}ge[2]&&le.ops.pop(),le.trys.pop();continue}Q=J.call(G,le)}catch(de){Q=[6,de],ae=0}finally{ne=ge=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([oe,K])}}}var m=Object.create?function(G,J,ne,ae){void 0===ae&&(ae=ne),Object.defineProperty(G,ae,{enumerable:!0,get:function(){return J[ne]}})}:function(G,J,ne,ae){void 0===ae&&(ae=ne),G[ae]=J[ne]};function v(G,J){for(var ne in G)"default"===ne||Object.prototype.hasOwnProperty.call(J,ne)||m(J,G,ne)}function b(G){var J="function"==typeof Symbol&&Symbol.iterator,ne=J&&G[J],ae=0;if(ne)return ne.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&ae>=G.length&&(G=void 0),{value:G&&G[ae++],done:!G}}};throw new TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(G,J){var ne="function"==typeof Symbol&&G[Symbol.iterator];if(!ne)return G;var ae,ge,pe=ne.call(G),le=[];try{for(;(void 0===J||J-- >0)&&!(ae=pe.next()).done;)le.push(ae.value)}catch(ce){ge={error:ce}}finally{try{ae&&!ae.done&&(ne=pe.return)&&ne.call(pe)}finally{if(ge)throw ge.error}}return le}function O(){for(var G=[],J=0;J<arguments.length;J++)G=G.concat(x(arguments[J]));return G}function k(){for(var G=0,J=0,ne=arguments.length;J<ne;J++)G+=arguments[J].length;var ae=Array(G),ge=0;for(J=0;J<ne;J++)for(var pe=arguments[J],le=0,ce=pe.length;le<ce;le++,ge++)ae[ge]=pe[le];return ae}function M(G){return this instanceof M?(this.v=G,this):new M(G)}function A(G,J,ne){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ae,ge=ne.apply(G,J||[]),pe=[];return ae={},le("next"),le("throw"),le("return"),ae[Symbol.asyncIterator]=function(){return this},ae;function le(de){ge[de]&&(ae[de]=function(Oe){return new Promise(function(Ae,Ne){pe.push([de,Oe,Ae,Ne])>1||ce(de,Oe)})})}function ce(de,Oe){try{(Ae=ge[de](Oe)).value instanceof M?Promise.resolve(Ae.value.v).then(oe,K):Q(pe[0][2],Ae)}catch(Ne){Q(pe[0][3],Ne)}var Ae}function oe(de){ce("next",de)}function K(de){ce("throw",de)}function Q(de,Oe){de(Oe),pe.shift(),pe.length&&ce(pe[0][0],pe[0][1])}}function F(G){var J,ne;return J={},ae("next"),ae("throw",function(ge){throw ge}),ae("return"),J[Symbol.iterator]=function(){return this},J;function ae(ge,pe){J[ge]=G[ge]?function(le){return(ne=!ne)?{value:M(G[ge](le)),done:"return"===ge}:pe?pe(le):le}:pe}}function P(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J,ne=G[Symbol.asyncIterator];return ne?ne.call(G):(G=b(G),J={},ae("next"),ae("throw"),ae("return"),J[Symbol.asyncIterator]=function(){return this},J);function ae(ge){J[ge]=G[ge]&&function(pe){return new Promise(function(le,ce){var oe,K,Q;oe=le,K=ce,Q=(pe=G[ge](pe)).done,Promise.resolve(pe.value).then(function(Oe){oe({value:Oe,done:Q})},K)})}}}function N(G,J){return Object.defineProperty?Object.defineProperty(G,"raw",{value:J}):G.raw=J,G}var B=Object.create?function(G,J){Object.defineProperty(G,"default",{enumerable:!0,value:J})}:function(G,J){G.default=J};function V(G){if(G&&G.__esModule)return G;var J={};if(null!=G)for(var ne in G)"default"!==ne&&Object.prototype.hasOwnProperty.call(G,ne)&&m(J,G,ne);return B(J,G),J}function H(G){return G&&G.__esModule?G:{default:G}}function W(G,J){if(!J.has(G))throw new TypeError("attempted to get private field on non-instance");return J.get(G)}function q(G,J,ne){if(!J.has(G))throw new TypeError("attempted to set private field on non-instance");return J.set(G,ne),ne}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(C,y){void 0===C&&(C=0),void 0===y&&(y=0),this.x=C,this.y=y}return Object.defineProperty(I.prototype,"length",{get:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},enumerable:!0,configurable:!0}),I.fromPoints=function(C,y){return new I(y.x-C.x,y.y-C.y)},I.fromSegment=function(C){return new I(C.endPoint.x-C.startPoint.x,C.endPoint.y-C.startPoint.y)},I.prototype.normalize=function(){var C=this.length;return 0!==C&&(this.x/=C,this.y/=C),this},I.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},Object.defineProperty(I,"axisX",{get:function(){return new I(1,0)},enumerable:!0,configurable:!0}),Object.defineProperty(I,"axisY",{get:function(){return new I(0,1)},enumerable:!0,configurable:!0}),I.angleBetween=function(C,y){var g=I.scalarProduct(C,y)/(C.length*y.length);return Math.acos(g)},I.scalarProduct=function(C,y){return C.x*y.x+C.y*y.y},I}();D.Vector=E},function(X,D,w){"use strict";var E,C;Object.defineProperty(D,"__esModule",{value:!0}),D.Diagnostics=void 0,(C=E||(E={}))[C.Disabled=0]="Disabled",C[C.Console=1]="Console",C[C.Document=2]="Document";var I=function(){function C(){}return C.beginAverage=function(y){this.enableLogsAndTimers&&(this.lastAverageGroupName=y)},C.endAverage=function(){this.enableLogsAndTimers&&(this.lastAverageGroupName=null)},C.tryLogAverage=function(y){var g=this;if(this.lastAverageGroupName!==y){var p=Object.keys(this.timers).map(function(c){return g.timers[c]}).filter(function(c){return c.groupName===y});if(!p.filter(function(c){return!c.endTime}).length){var d=p.reduce(function(c,h){return c+(h.endTime-h.startTime)},0)/p.length;this.log("average: "+d)}}},C.timer=function(y){this.enableLogsAndTimers&&(this.lastCreatedTimer={message:y,startTime:performance.now(),groupName:this.lastAverageGroupName})},C.endTimer=function(){var y=this;if(this.enableLogsAndTimers){var g=this.lastCreatedTimer,p=setTimeout(function(){g.endTime=performance.now(),y.showMessage('timer "'+g.message+'": '+(g.endTime-g.startTime)),g.groupName&&y.tryLogAverage(g.groupName)},0);this.timers[p]=g,this.lastCreatedTimer=null}},C.logPerfInfo=function(){var y=document.querySelector(".dxdi-control > svg").querySelectorAll("*").length,g=performance.memory;this.log("nodes: "+y.toLocaleString()+(g?" memory: ":"")+(g?g.usedJSHeapSize.toLocaleString():""))},C.log=function(y){this.showMessage(y)},C.showMessage=function(y){switch(C.mode){case E.Console:console.log(y);break;case E.Document:var g=this.getElement().value;if(this.lastMessage===y){var p=g.indexOf("\r\n");p<0&&(p=g.indexOf("\n"));var d=g.substr(0,p);/( \()([0-9]+)(\))$/.test(d)?d=d.replace(/( \()([0-9]+)(\))$/,function(c,h,m,v){return h+ ++m+v}):d+=" (1)",this.getElement().value=d+g.substr(p)}else this.getElement().value=y+"\r\n"+g,this.lastMessage=y}},C.getElement=function(){var y=this;if(!this.el){this.el=document.createElement("textarea"),this.el.style.top="0px",this.el.style.right="0px",this.el.style.position="fixed",this.el.style.background="transparent",this.el.style.fontSize="11px",this.el.style.fontFamily="monospace",this.el.style.overflow="auto",this.el.style.width="400px",document.body.appendChild(this.el);var g=document.createElement("button");g.innerHTML="x",g.addEventListener("click",function(){y.el.value="",y.lastMessage=""}),g.style.top="0px",g.style.right="400px",g.style.position="fixed",g.style.opacity="0.1",document.body.appendChild(g)}return this.el},C.mode=E.Document,C.optimizeUsingRAF=!0,C.optimizeLayers=!0,C.timers={},C.enableLogsAndTimers=!1,C}();D.Diagnostics=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DiagramModel=void 0;var E=w(14),I=w(6),C=w(3),y=w(13),g=w(2),p=w(0),d=w(46),c=w(22),h=w(47),m=w(4),v=function(){function b(x){void 0===x&&(x=new g.Size(8391,11906)),this.items=[],this.itemIndexByKey={},this.keyCounter=0,this.pageSize=new g.Size(8391,11906),this.pageLandscape=!1,this.pageColor=b.defaultPageColor,this.units=h.DiagramUnit.In,this.snapStartPoint=new p.Point(0,0),this.pageSize=x,this.size=this.pageSize.clone(),this.rectangle=y.Rectangle.fromGeometry(new p.Point(0,0),new g.Size(0,0)),this.initializeKeyCounter()}return Object.defineProperty(b.prototype,"pageWidth",{get:function(){return this.pageLandscape?this.pageSize.height:this.pageSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageHeight",{get:function(){return this.pageLandscape?this.pageSize.width:this.pageSize.height},enumerable:!1,configurable:!0}),b.prototype.getRectangle=function(x){return x&&(this.rectangle=m.ModelUtils.createRectangle(this.items)),this.rectangle},b.prototype.pushItem=function(x){var O=this.items.push(x);this.itemIndexByKey[x.key]=O-1,x instanceof E.Shape&&!x.image.isEmpty&&this.cacheShapeImage(x)},b.prototype.removeItem=function(x){var O=this.getItemIndex(x);delete this.itemIndexByKey[x.key],this.items.splice(O,1),this.updateIndicesHash(O)},b.prototype.updateIndicesHash=function(x){for(var O=x;O<this.items.length;O++)this.itemIndexByKey[this.items[O].key]=O},b.prototype.getItemIndex=function(x){return this.itemIndexByKey[x.key]},b.prototype.findShape=function(x){var O=this.findItem(x);return O instanceof E.Shape?O:void 0},b.prototype.findShapesCore=function(x){var O=[];return this.items.forEach(function(k){k instanceof E.Shape&&x(k)&&O.push(k)}),O},b.prototype.findShapeCore=function(x){for(var O=0;O<this.items.length;O++){var k=this.items[O];if(k instanceof E.Shape&&x(k))return k}},b.prototype.findShapeAtPosition=function(x){return this.findShapeCore(function(O){return O.position.equals(x)})},b.prototype.findShapeByDataKey=function(x){return this.findShapeCore(function(O){return O.dataKey===x})},b.prototype.findShapesByImageUrl=function(x){return this.findShapesCore(function(O){return O.image.url===x})},b.prototype.findShapesByDescription=function(x){return this.findShapesCore(function(O){return O.description.key===x.key})},b.prototype.cacheShapeImage=function(x){var O=d.ImageCache.instance.createUnloadedInfoByShapeImageInfo(x.image);O.isLoaded&&x.image.loadBase64Content(O.base64)},b.prototype.loadAllImages=function(x){d.ImageCache.instance.loadAllImages(x)},b.prototype.findContainer=function(x){var O=this.findShape(x);return O&&O.enableChildren?O:void 0},b.prototype.findNearestContainer=function(x){var O=this.findShape(x);return O?O.enableChildren?O:O.container:void 0},b.prototype.getChildren=function(x){var O=this;return x.children.map(function(k){return O.findItem(k.key)}).filter(function(k){return k})},b.prototype.findChild=function(x,O,k){var M,A=this;return void 0===k&&(k=!0),x.children.forEach(function(F){M||(F.key!==O?k&&F instanceof E.Shape&&(M=A.findChild(F,O,k)):M=F)}),M},b.prototype.findItemContainerCore=function(x,O){for(var k=x.container;k&&O&&!O(k);)k=k.container;return k},b.prototype.findItemContainer=function(x){return this.findItemContainerCore(x)},b.prototype.findItemCollapsedContainer=function(x){return this.findItemContainerCore(x,function(O){return!O.expanded})},b.prototype.findItemTopCollapsedContainer=function(x){for(var O,k=x.container;k;)k.expanded||(O=k),k=k.container;return O},b.prototype.isContainerItem=function(x,O){return void 0!==this.findItemContainerCore(O,function(k){return k.key===x.key})},b.prototype.findConnector=function(x){var O=this.findItem(x);return O instanceof I.Connector?O:void 0},b.prototype.findConnectorCore=function(x){for(var O=0;O<this.items.length;O++){var k=this.items[O];if(k instanceof I.Connector&&x(k))return k}},b.prototype.findConnectorAtPoints=function(x){return this.findConnectorCore(function(O){return C.GeometryUtils.arePointsEqual(O.points,x)})},b.prototype.findConnectorByDataKey=function(x){return this.findConnectorCore(function(O){return O.dataKey===x})},b.prototype.findConnectorByBeginEndDataKeys=function(x,O){return this.findConnectorCore(function(k){return k.beginItem&&k.beginItem.dataKey===x&&k.endItem&&k.endItem.dataKey===O})},b.prototype.findConnectorsCore=function(x){var O=[];return this.items.forEach(function(k){k instanceof I.Connector&&x(k)&&O.push(k)}),O},b.prototype.findConnectorsWithoutBeginItem=function(){return this.findConnectorsCore(function(x){return!x.beginItem})},b.prototype.findConnectorsWithoutEndItem=function(){return this.findConnectorsCore(function(x){return!x.endItem})},b.prototype.findItem=function(x){return this.items[this.itemIndexByKey[x]]},b.prototype.findItemByDataKey=function(x){return this.findItemCore(function(O){return O.dataKey===x})},b.prototype.findItemCore=function(x){for(var O=0;O<this.items.length;O++)if(x(this.items[O]))return this.items[O]},b.isIntersectedItems=function(x,O){var k=!1;return x instanceof E.Shape?k=O.intersectedByRect(x.rectangle):x instanceof I.Connector&&x.getSegments().forEach(function(M){O instanceof E.Shape?k=k||M.isIntersectedByRect(O.rectangle):O instanceof I.Connector&&O.getSegments().forEach(function(A){k=k||M.isIntersected(A)})}),k},b.prototype.getIntersectItems=function(x){var O=[];return this.items.forEach(function(k){k.container===x.container&&(x===k||k instanceof I.Connector&&-1!==x.attachedConnectors.indexOf(k)||!b.isIntersectedItems(k,x)||O.push(k))}),O},b.prototype.getIntersectItemsMinZIndex=function(x){return this.getIntersectItems(x).map(function(O){return O.zIndex}).reduce(function(O,k){return Math.min(O,k)},Number.MAX_VALUE)},b.prototype.getIntersectItemsMaxZIndex=function(x){return this.getIntersectItems(x).map(function(O){return O.zIndex}).reduce(function(O,k){return Math.max(O,k)},-Number.MAX_VALUE)},b.prototype.iterateItems=function(x){this.items.forEach(x)},b.prototype.getNextKey=function(){return(this.keyCounter++).toString()},b.prototype.initializeKeyCounter=function(){this.keyCounter=this.items.reduce(function(x,O){var k=parseInt(O.key);return Math.max(x,isNaN(k)?0:k+1)},this.items.length)},b.defaultPageColor=c.ColorUtils.LIGHT_COLOR,b}();D.DiagramModel=v},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(O,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,A){M.__proto__=A}||function(M,A){for(var F in A)A.hasOwnProperty(F)&&(M[F]=A[F])})(O,k)},function(O,k){function M(){this.constructor=O}E(O,k),O.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)});Object.defineProperty(D,"__esModule",{value:!0}),D.TextPrimitive270degRenderHelper=D.TextPrimitive180degRenderHelper=D.TextPrimitive90degRenderHelper=D.TextPrimitiveRenderHelper=D.TextPrimitive=D.TextAngle=void 0;var C,O,y=w(12),g=w(15),p=w(24),d=w(17),c=w(64);(O=C=D.TextAngle||(D.TextAngle={}))[O.Angle0deg=0]="Angle0deg",O[O.Angle90deg=90]="Angle90deg",O[O.Angle180deg=180]="Angle180deg",O[O.Angle270deg=270]="Angle270deg";var h=function(O){function k(M,A,F,P,N,B,V,H,W,q,G,J,ne){var ae=O.call(this,H,"",q,ne)||this;return ae.x=M,ae.y=A,ae.text=F,ae.owner=P,ae.textWidth=N,ae.textHeight=B,ae.textSpacing=V,ae.reverseTextAhchor=W,ae.angle=J,ae.filterId=G,ae.textSegmens=c.textToParagraphs(ae.text),ae.renderHelper=ae.createRenderHelper(),void 0!==ae.textWidth&&void 0!==ae.textWidth&&(ae.x=ae.renderHelper.getTextX(ae.x),ae.y=ae.renderHelper.getTextY(ae.y)),ae}return I(k,O),k.prototype.createMainElement=function(){return document.createElementNS(g.svgNS,"text")},k.prototype.applyElementProperties=function(M,A){this.setUnitAttribute(M,"x",this.x),this.setUnitAttribute(M,"y",this.y),this.filterId&&M.setAttribute("filter",d.RenderUtils.getUrlPathById(this.filterId)),O.prototype.applyElementProperties.call(this,M,A),M.getAttribute("appliedText")!==this.text||M.getAttribute("appliedSize")!==(this.fitToSize&&this.fitToSize.toString())?(this.createTSpanElements(M,A),M.setAttribute("appliedText",this.text),M.setAttribute("appliedSize",this.fitToSize&&this.fitToSize.toString())):this.prepareTSpanElements(M),this.renderHelper.prepareMainElement(M,this.x,this.y)},k.prototype.createTSpanElements=function(M,A){var F=this;d.RenderUtils.removeContent(M),this.textSegmens.forEach(function(N,B){if(!N&&F.textSegmens.length>1)F.createTSpanElement(M).textContent=" ";else if(F.fitToSize){var V=c.textToWords(N),H=c.wordsByLines(y.UnitConverter.twipsToPixels(F.fitToSize),V,function(){return A.measureWords(V,F.style,F.owner)});H.forEach(function(W){F.createTSpanElement(M).textContent=W}),!H.length&&(F.createTSpanElement(M).textContent=" ")}else F.createTSpanElement(M).textContent=N});var P=M.firstChild;P&&this.prepareFirstTSpanElement(P,M.childNodes.length)},k.prototype.createTSpanElement=function(M){var A=document.createElementNS(g.svgNS,"tspan");return M.appendChild(A),this.prepareTSpanElement(A),A},k.prototype.prepareTSpanElements=function(M){for(var A=0;A<M.childNodes.length;A++)this.prepareTSpanElement(M.childNodes[A]);var P=M.firstChild;P&&this.prepareFirstTSpanElement(P,M.childNodes.length)},k.prototype.prepareTSpanElement=function(M){this.renderHelper.prepareTSpanElement(M,this.x,this.y)},k.prototype.prepareFirstTSpanElement=function(M,A){this.renderHelper.prepareFirstTSpanElement(M,A)},k.prototype.applyElementStyleProperties=function(M){this.applyElementStylePropertiesCore(M,this.reverseTextAhchor)},Object.defineProperty(k.prototype,"fitToSize",{get:function(){return this.renderHelper.fitToSize},enumerable:!1,configurable:!0}),k.prototype.createRenderHelper=function(){switch(this.angle){case C.Angle90deg:return new v(this);case C.Angle180deg:return new b(this);case C.Angle270deg:return new x(this);default:return new m(this)}},k.baselineCorrection=.35,k}(p.SvgPrimitive);D.TextPrimitive=h;var m=function(){function O(k){this.primitive=k}return Object.defineProperty(O.prototype,"textWidth",{get:function(){return this.primitive.textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"textHeight",{get:function(){return this.primitive.textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"fitToSize",{get:function(){return this.textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"textAnchor",{get:function(){return this.primitive.style["text-anchor"]},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"textSpacing",{get:function(){return this.primitive.textSpacing},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"angle",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"needRotation",{get:function(){return!1},enumerable:!1,configurable:!0}),O.prototype.prepareMainElement=function(k,M,A){this.needRotation&&k.setAttribute("transform","rotate("+this.angle+", "+y.UnitConverter.twipsToPixels(M)+", "+y.UnitConverter.twipsToPixels(A)+")")},O.prototype.prepareTSpanElement=function(k,M,A){this.primitive.setUnitAttribute(k,"x",M),k.setAttribute("dy",c.LINE_HEIGHT+"em")},O.prototype.prepareFirstTSpanElement=function(k,M){k.setAttribute("dy",(-(M-1)/2+h.baselineCorrection).toFixed(2)+"em")},O.prototype.getTextX=function(k){return this.textAnchor&&"middle"!==this.textAnchor?"end"===this.textAnchor?k+this.textWidth-this.textSpacing:"start"===this.textAnchor?k+this.textSpacing:k:k+this.textWidth/2},O.prototype.getTextY=function(k){return k+this.textHeight/2},O.prototype.setUnitAttribute=function(k,M,A){this.primitive.setUnitAttribute(k,M,A)},O}();D.TextPrimitiveRenderHelper=m;var v=function(O){function k(M){return O.call(this,M)||this}return I(k,O),Object.defineProperty(k.prototype,"fitToSize",{get:function(){return this.textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"angle",{get:function(){return 90},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"needRotation",{get:function(){return!0},enumerable:!1,configurable:!0}),k.prototype.getTextX=function(M){return M+this.textWidth/2},k.prototype.getTextY=function(M){return this.textAnchor&&"middle"!==this.textAnchor?"end"===this.textAnchor?M+this.textHeight-this.textSpacing:"start"===this.textAnchor?M+this.textSpacing:M:M+this.textHeight/2},k}(m);D.TextPrimitive90degRenderHelper=v;var b=function(O){function k(M){return O.call(this,M)||this}return I(k,O),Object.defineProperty(k.prototype,"angle",{get:function(){return 180},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"needRotation",{get:function(){return!0},enumerable:!1,configurable:!0}),k.prototype.getTextX=function(M){return this.textAnchor&&"middle"!==this.textAnchor?"start"===this.textAnchor?M+this.textWidth-this.textSpacing:"end"===this.textAnchor?M+this.textSpacing:M:M+this.textWidth/2},k}(m);D.TextPrimitive180degRenderHelper=b;var x=function(O){function k(M){return O.call(this,M)||this}return I(k,O),Object.defineProperty(k.prototype,"angle",{get:function(){return 270},enumerable:!1,configurable:!0}),k.prototype.getTextY=function(M){return this.textAnchor&&"middle"!==this.textAnchor?"start"===this.textAnchor?M+this.textHeight-this.textSpacing:"end"===this.textAnchor?M+this.textSpacing:M:M+this.textHeight/2},k}(v);D.TextPrimitive270degRenderHelper=x},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.getLineHeight=D.getTextHeight=D.getTextLineSize=D.getOptimalTextRectangle=D.TEXTRECT_RATIO_EPS=D.textToParagraphs=D.textToWords=D.wordsByLines=D.LINE_HEIGHT=void 0;var E=w(3),I=w(2),C=w(44),y=/\s/gm;function g(k,M,A){if(1===M.length)return M;for(var F=A(),P=F.words[" "].width,N=[],B=0,V=-1,H=0;H<M.length;H++){var W=M[H],q=F.words[W].width;-1===V||B+P+q>k?(V=N.push(W)-1,B=q):(B+=P+q,N[V]+=" "+W)}return N}function p(k){return k.split(y).filter(function(M){return M.length})}function d(k){return k.split("\n")}D.LINE_HEIGHT=1.05,D.wordsByLines=g,D.textToWords=p,D.textToParagraphs=d,D.TEXTRECT_RATIO_EPS=1.2;function h(k,M,A){var F=k<1?1/k:k,P=M<1?1/M:M,N=F/P;return(N<1?1/N:N)<=A?0:P>F?1:-1}function m(k,M,A,F){return v(x(k,M,A,!1),F)}function v(k,M){return[C.Data.byRange(k,M.from,M.to),k<=M.to]}function b(k,M){return p(k).reduce(function(A,F,P){var N=M.words[F];return A.width+=N.width,A.height=Math.max(A.height,N.height),P>0&&(A.width+=M.words[" "].width),A},new I.Size(0,0))}function x(k,M,A,F){var P=Array.isArray(k)?k:d(k);return!F||P.length&&(1!==P.length||P[0].length)?P.reduce(function(N,B){return N+g(M,p(B),function(){return A}).length},0)*O(A):O(A)}function O(k){return k.fontSize*D.LINE_HEIGHT}D.getOptimalTextRectangle=function(k,M,A,F,P,N,B,V,H,W){if(void 0===B&&(B=0),void 0===V&&(V=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE),void 0===H&&(H=0),void 0===W&&(W=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE),!k)return new I.Size(C.Data.byRange(P.width,B,V),C.Data.byRange(P.height,H,W));if(B>V||H>W)throw new Error("Min size cannot exceed max size");if(B===V&&H===W)return new I.Size(B,H);var q=F.measureWords(k,M,A),G=d(k),J=Object.keys(q.words).reduce(function(pe,le){return Math.max(pe,q.words[le].width)},0),ne=new E.Range(C.Data.byRange(Math.max(P.width,J),B,V),V),ae=new E.Range(C.Data.byRange(P.height,H,W),W);return J<=P.width&&x(G,P.width,q,!1)<=P.height&&ne.includes(P.width)&&ae.includes(P.height)?P:function(pe,le,ce,oe,K,Q){for(var de,Oe,Ae=pe.reduce(function(Ce,De){return Math.max(Ce,b(De,le).width)},0),Ne=new I.Size(0,0),Qe=new I.Size(0,0),$e=0,_e=0,xe=0;xe<5;xe++){if(0===xe)Qe.width=v(Ae,oe)[0];else{if(!(Math.abs($e)>1))break;Qe.width=v(Ne.width+$e,oe)[0]}if(de=m(pe,Qe.width,le,K),Qe.height=de[0],Oe=de[1],0===xe&&(_e=(Ne=Qe.clone()).width/Ne.height/ce),0===xe&&!Oe)break;var ve=Qe.width/Qe.height,ee=ve/ce;if(0===xe)$e=(Qe.width/ee-Qe.width)/2;else if(Oe){if(!h(ce,ve,D.TEXTRECT_RATIO_EPS)){Ne=Qe.clone(),_e=ee;break}if(!(h(_e,ee,1)<0))break;Ne=Qe.clone(),_e=ee,$e=(Qe.width/ee-Qe.width)/2,ee<1&&($e/=2)}else $e/=2}return Q&&(Ne.height=C.Data.byRange(Ne.width/ce,Ne.height,K.to)),Ne}(G,q,P.width/P.height,ne,ae,N)},D.getTextLineSize=b,D.getTextHeight=x,D.getLineHeight=O},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(18),I=w(50),C=w(27),y=w(176),g=function(){function p(){}return p.preventEvent=function(d){d.cancelable&&(d.preventDefault?d.preventDefault():d.returnValue=!1)},p.getEventSource=function(d){return I.isDefined(d)?p.getEventSourceCore(d):null},p.getEventSourceByPosition=function(d){if(!I.isDefined(d))return null;if(!document.elementFromPoint)return p.getEventSourceCore(d);var c=p.getEventX(d)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0),h=p.getEventY(d)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0);return void 0===c||void 0===h?p.getEventSourceCore(d):document.elementFromPoint(c,h)},p.getEventSourceCore=function(d){return d.srcElement?d.srcElement:d.target},p.getMouseWheelEventName=function(){return E.Browser.Safari?"mousewheel":E.Browser.NetscapeFamily&&E.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},p.isLeftButtonPressed=function(d){return!!y.TouchUtils.isTouchEvent(d)||!!(d=E.Browser.IE&&I.isDefined(event)?event:d)&&(E.Browser.IE&&E.Browser.Version<11?!!E.Browser.MSTouchUI||d.button%2==1:E.Browser.WebKitFamily?"pointermove"===d.type||"pointerenter"===d.type||"pointerleave"===d.type?1===d.buttons:1===d.which:E.Browser.NetscapeFamily||E.Browser.Edge||E.Browser.IE&&E.Browser.Version>=11?p.isMoveEventName(d.type)?1===d.buttons:1===d.which:!E.Browser.Opera||0===d.button)},p.isMoveEventName=function(d){return d===y.TouchUtils.touchMouseMoveEventName||d===p.getMoveEventName()},p.getMoveEventName=function(){return window.PointerEvent?"pointermove":E.Browser.TouchUI?"touchmove":"mousemove"},p.preventEventAndBubble=function(d){p.preventEvent(d),d.stopPropagation&&d.stopPropagation(),d.cancelBubble=!0},p.clientEventRequiresDocScrollCorrection=function(){return E.Browser.AndroidDefaultBrowser||E.Browser.AndroidChromeBrowser||!(E.Browser.Safari&&E.Browser.Version<3||E.Browser.MacOSMobilePlatform&&E.Browser.Version<5.1)},p.getEventX=function(d){return y.TouchUtils.isTouchEvent(d)?y.TouchUtils.getEventX(d):d.clientX+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0)},p.getEventY=function(d){return y.TouchUtils.isTouchEvent(d)?y.TouchUtils.getEventY(d):d.clientY+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0)},p.cancelBubble=function(d){d.cancelBubble=!0},p.getWheelDelta=function(d){var c;return c=E.Browser.NetscapeFamily&&E.Browser.MajorVersion<17?-d.detail:E.Browser.Safari?d.wheelDelta:-d.deltaY,E.Browser.Opera&&E.Browser.Version<9&&(c=-c),c},p}();D.EvtUtils=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.AddConnectorHistoryItem=void 0;var C=w(8),y=w(6),g=function(p){function d(c,h,m){var v=p.call(this)||this;return v.points=c,v.dataKey=h,v.renderPointsContext=m,v}return I(d,p),d.prototype.redo=function(c){var h=new y.Connector(this.points);void 0!==this.dataKey&&(h.dataKey=this.dataKey),void 0!==this.renderPointsContext&&h.replaceRenderPoints(this.renderPointsContext),c.addConnector(h,this.connectorKey),this.connectorKey=h.key},d.prototype.undo=function(c){var h=c.model.findConnector(this.connectorKey);c.deleteConnector(h)},d}(C.HistoryItem);D.AddConnectorHistoryItem=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.DeleteConnectionHistoryItem=void 0;var C=w(8),y=w(6),g=function(p){function d(c,h){var m=p.call(this)||this;return m.connectorKey=c.key,m.position=h,m.itemKey=c.getExtremeItem(m.position).key,m}return I(d,p),d.prototype.redo=function(c){var h=c.model.findConnector(this.connectorKey);this.oldConnectionPointIndex=this.position===y.ConnectorPosition.Begin?h.beginConnectionPointIndex:h.endConnectionPointIndex,c.deleteConnection(h,this.position)},d.prototype.undo=function(c){var h=c.model.findConnector(this.connectorKey),m=c.model.findItem(this.itemKey);c.addConnection(h,m,this.oldConnectionPointIndex,this.position)},d}(C.HistoryItem);D.DeleteConnectionHistoryItem=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.SetSelectionHistoryItem=void 0;var C=function(y){function g(p,d,c){var h=y.call(this)||this;return h.selectedKeys=d,h.selection=p,h.forceChange=c,h}return I(g,y),g.prototype.redo=function(){this.oldSelection=this.selection.getKeys().slice(0),this.selection.set(this.selectedKeys,this.forceChange)},g.prototype.undo=function(){this.selection.set(this.oldSelection,this.forceChange)},g}(w(8).HistoryItem);D.SetSelectionHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeConnectorTextHistoryItem=void 0;var C=function(y){function g(p,d,c){var h=y.call(this)||this;return h.connectorKey=p.key,h.text=c,h.position=d,h}return I(g,y),g.prototype.redo=function(p){var d=p.model.findConnector(this.connectorKey);this.oldText=d.getText(this.position),p.changeConnectorText(d,this.text,this.position)},g.prototype.undo=function(p){var d=p.model.findConnector(this.connectorKey);p.changeConnectorText(d,this.oldText,this.position)},g}(w(8).HistoryItem);D.ChangeConnectorTextHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeStyleTextHistoryItem=void 0;var C=function(y){function g(p,d,c){return y.call(this,p,d,c)||this}return I(g,y),g.prototype.redo=function(p){var d=p.model.findItem(this.itemKey);this.oldStyleValue=d.styleText[this.styleProperty],p.changeStyleText(d,this.styleProperty,this.styleValue)},g.prototype.undo=function(p){var d=p.model.findItem(this.itemKey);p.changeStyleText(d,this.styleProperty,this.oldStyleValue)},g}(w(118).ChangeStyleHistoryItemBase);D.ChangeStyleTextHistoryItem=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Margin=D.EdgeLayout=D.NodeLayout=D.NodeInfo=void 0;var E=w(13);D.NodeInfo=function(p,d,c,h){void 0===h&&(h=[]),this.key=p,this.margin=d,this.size=c,this.connectionPoints=h};var C=function(){function p(d,c){this.info=d,this.position=c}return Object.defineProperty(p.prototype,"key",{get:function(){return this.info.key},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"rectangle",{get:function(){return E.Rectangle.fromGeometry(this.position,this.info.size)},enumerable:!1,configurable:!0}),p}();D.NodeLayout=C,D.EdgeLayout=function(p,d,c){this.key=p,this.beginIndex=d,this.endIndex=c};var g=function(){function p(d,c,h,m){void 0===c&&(c=d),void 0===h&&(h=d),void 0===m&&(m=d),this.top=d,this.right=c,this.bottom=h,this.left=m}return p.empty=function(){return new p(0)},p}();D.Margin=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.EllipseShapeDescription=void 0;var C=w(7),y=w(2),g=w(55),p=w(1),d=w(3),c=w(13),h=function(m){function v(b){return m.call(this,new y.Size(C.ShapeDefaultDimension,.75*C.ShapeDefaultDimension),b)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return p.ShapeTypes.Ellipse},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.getTextRectangle=function(b){var x=d.GeometryUtils.getMaxRectangleEnscribedInEllipse(b.size);return c.Rectangle.fromGeometry(b.position.clone().offset((b.size.width-x.width)/2,(b.size.height-x.height)/2),x)},v.prototype.getSizeByText=function(b,x){return d.GeometryUtils.getEllipseByEnscribedRectangle(b)},v.prototype.createShapePrimitives=function(b){var x=b.rectangle,M=x.center;return[new g.EllipsePrimitive(M.x,M.y,x.width/2,x.height/2,b.style)]},v}(C.ShapeDescription);D.EllipseShapeDescription=h},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Exporter=void 0;var E=w(14),I=w(6),C=w(3),y=function(){function g(){}return g.prototype.export=function(p){var d={page:{},connectors:[],shapes:[]};return d.page={width:p.size.width,height:p.size.height,pageColor:p.pageColor,pageWidth:p.pageSize.width,pageHeight:p.pageSize.height,pageLandscape:p.pageLandscape},this.exportItemsCore(p.items,d),JSON.stringify(d)},g.prototype.exportItems=function(p){var d={connectors:[],shapes:[]};return this.exportItemsCore(p,d),JSON.stringify(d)},g.prototype.exportItemsCore=function(p,d){var c=this;p.forEach(function(h){if(h instanceof E.Shape)d.shapes.push(c.exportShape(h));else if(h instanceof I.Connector){var m=c.exportConnector(h);h.beginItem&&(m.beginItemKey=h.beginItem.key,m.beginConnectionPointIndex=h.beginConnectionPointIndex),h.endItem&&(m.endItemKey=h.endItem.key,m.endConnectionPointIndex=h.endConnectionPointIndex),d.connectors.push(m)}})},g.prototype.exportItem=function(p){return{key:p.key,dataKey:p.dataKey,customData:C.ObjectUtils.cloneObject(p.customData),locked:p.locked,zIndex:p.zIndex}},g.prototype.exportShape=function(p){var d=this.exportItem(p);d.type=p.description.key,d.text=p.text,p.image.isEmpty||(d.imageUrl=p.image.exportUrl),d.x=p.position.x,d.y=p.position.y,d.width=p.size.width,d.height=p.size.height;var c=p.parameters.toObject();c&&(d.parameters=c);var h=p.style.toObject();h&&(d.style=h);var m=p.styleText.toObject();return m&&(d.styleText=m),p.children.length&&(d.childKeys=p.children.map(function(v){return v.key})),p.expanded||(d.expanded=!1),p.expandedSize&&(d.expandedWidth=p.expandedSize.width,d.expandedHeight=p.expandedSize.height),d},g.prototype.exportConnector=function(p){var d=this.exportItem(p);d.points=p.points.map(function(b){return{x:b.x,y:b.y}});var c=p.texts.toObject();c&&(d.texts=c);var h=p.properties.toObject();h&&(d.properties=h);var m=p.style.toObject();m&&(d.style=m);var v=p.styleText.toObject();return v&&(d.styleText=v),d},g.prototype.exportSvg=function(p,d,c,h){c.exportSvgImage(p,d,h)},g.prototype.exportPng=function(p,d,c,h,m){c.exportPngImage(p,d,h,m)},g.prototype.exportJpg=function(p,d,c,h,m){c.exportJpgImage(p,d,h,m)},g}();D.Exporter=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleStyleTextPropertyCommand=void 0;var C=w(134),y=w(70),g=w(26),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentTextStylePropertyValue(this.getStyleProperty())===this.getStylePropertyValue()},c.prototype.executeCore=function(h){var m=this;this.control.history.beginTransaction();var v=this.getStyleProperty(),b=h.value?g.TextStyle.defaultInstance[v]:this.getStylePropertyValue();return this.control.selection.getSelectedItems().forEach(function(x){m.control.history.addAndRedo(new y.ChangeStyleTextHistoryItem(x.key,v,b))}),this.control.selection.inputPosition.setTextStylePropertyValue(this.getStyleProperty(),b),this.control.history.endTransaction(),!0},c.prototype.getStyleObj=function(h){return h.styleText},c.prototype.getDefaultStyleObj=function(){return new g.TextStyle},c}(C.StylePropertyCommandBase);D.ToggleStyleTextPropertyCommand=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeStylePropertyCommand=void 0;var C=w(135),y=w(89),g=w(26),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentStylePropertyValue(this.getStyleProperty())},c.prototype.getStyleObj=function(h){return h.style},c.prototype.getDefaultStyleObj=function(){return new g.Style},c.prototype.createHistoryItem=function(h,m,v){return new y.ChangeStyleHistoryItem(h.key,m,v)},c.prototype.updateInputPosition=function(h){this.control.selection.inputPosition.setStylePropertyValue(this.getStyleProperty(),h)},c}(C.ChangeStylePropertyCommandBase);D.ChangeStylePropertyCommand=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(v,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var k in O)O.hasOwnProperty(k)&&(x[k]=O[k])})(v,b)},function(v,b){function x(){this.constructor=v}E(v,b),v.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Object.defineProperty(D,"__esModule",{value:!0}),D.AutoLayoutCommandBase=void 0;var C=w(4),y=w(10),g=w(14),p=w(6),d=w(3),c=w(13),h=w(251),m=function(v){function b(){return null!==v&&v.apply(this,arguments)||this}return I(b,v),b.prototype.executeCore=function(x,O){var k=this;this.control.history.beginTransaction();var M=this.getAffectedShapes(),A=this.getAffectedConnectors(),F=this.createLayoutSettings(),P=C.ModelUtils.getGraphInfoByItems(this.control.model,M,A,!1);if(P.length){var N,B=this.control.model,V=d.GeometryUtils.getCommonRectangle(d.Utils.flatten(P.map(function(H){return H.graph.items.map(function(W){return B.findItem(W.key)})})).concat(P.map(function(H){return H.container})).filter(function(H){return H}).map(function(H){return H.rectangle}));this.control.history.addAndRedo(new h.ScrollIntoViewOnUndoHistoryItem(this.control.view,V)),P.forEach(function(H){var W=k.createLayout(F,H.graph),q=C.ModelUtils.getNonGraphItems(k.control.model,H.container,W.nodeToLayout,M,A),G=C.ModelUtils.applyLayout(k.control.history,k.control.model,H.container,H.graph,W,q,F,k.control.settings.snapToGrid,k.control.settings.gridSize,!1);N=N&&c.Rectangle.union(N,G)||G}),C.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.addAndRedo(new h.ScrollIntoViewOnRedoHistoryItem(this.control.view,N))}return this.control.history.endTransaction(),!0},b.prototype.getAffectedShapes=function(){return this.control.selection.isEmpty()?this.control.model.items.filter(function(x){return x instanceof g.Shape&&!x.locked}):this.control.selection.getSelectedShapes(!1,!0)},b.prototype.getAffectedConnectors=function(){return this.control.selection.isEmpty()?this.control.model.items.filter(function(x){return x instanceof p.Connector&&!x.locked}):this.control.selection.getSelectedConnectors(!1,!0)},b}(y.SimpleCommandBase);D.AutoLayoutCommandBase=m},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangePagePropertyCommand=void 0;var C=w(4),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.executeCore=function(d,c){var h=this;return this.control.history.beginTransaction(),this.createHistoryItems(c).forEach(function(m){h.control.history.addAndRedo(m)}),C.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction(),!0},p.prototype.getItems=function(){return null},p}(w(10).SimpleCommandBase);D.ChangePagePropertyCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(x,O){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var A in M)M.hasOwnProperty(A)&&(k[A]=M[A])})(x,O)},function(x,O){function k(){this.constructor=x}E(x,O),x.prototype=null===O?Object.create(O):(k.prototype=O.prototype,new k)});Object.defineProperty(D,"__esModule",{value:!0}),D.CanvasItemsManager=D.CONNECTOR_CAN_MOVE=D.NOT_VALID_CSSCLASS=void 0;var C=w(99),y=w(11),g=w(39),p=w(17),d=w(14),c=w(6),h=w(27),m=w(140),v=w(4);D.NOT_VALID_CSSCLASS="not-valid",D.CONNECTOR_CAN_MOVE="can-move";var b=function(x){function O(k,M,A){var F=x.call(this,M,A)||this;return F.itemSelectorGroupContainers={},F.itemSelectorElements={},F.itemGroupContainers={},F.itemElements={},F.itemChildElements={},F.primitives={},F.selectorPrimitives={},F.selectedItems={},F.initializeContainerElements(k),F}return I(O,x),O.prototype.initializeContainerElements=function(k){this.itemSelectorsContainer=this.createAndChangePrimitiveElement(new g.GroupPrimitive([],null),k),this.itemsContainer=this.createAndChangePrimitiveElement(new g.GroupPrimitive([],null),k)},O.prototype.clear=function(){this.primitives={},this.selectorPrimitives={},p.RenderUtils.removeContent(this.itemSelectorsContainer),p.RenderUtils.removeContent(this.itemsContainer),this.itemSelectorGroupContainers={},this.itemSelectorElements={},this.itemGroupContainers={},this.itemElements={},this.itemChildElements={},this.selectedItems={}},O.prototype.applyChange=function(k){var M=k.item;return!!this.getItemParent(M.zIndex,M.container&&M.container.key)&&(M instanceof d.Shape?this.applyShapeChange(M,k.type,k.isValid):M instanceof c.Connector&&this.applyConnectorChange(M,k.type,k.isValid),!0)},O.prototype.setPointerEventsNone=function(k,M){var A=k.style;void 0!==A&&void 0!==A.pointerEvents&&(A.pointerEvents=M?"none":"");for(var F=k.childNodes,P=0;P<F.length;P++)this.setPointerEventsNone(F[P],M)},O.prototype.notifyDragStart=function(k){var M=this;k.forEach(function(A){M.itemElements[A]&&M.setPointerEventsNone(M.itemElements[A],!0),M.itemChildElements[A]&&M.setPointerEventsNone(M.itemChildElements[A],!0),M.itemSelectorElements[A]&&M.setPointerEventsNone(M.itemSelectorElements[A],!0)})},O.prototype.notifyDragEnd=function(k){var M=this;k.forEach(function(A){M.itemElements[A]&&M.setPointerEventsNone(M.itemElements[A],!1),M.itemChildElements[A]&&M.setPointerEventsNone(M.itemChildElements[A],!1),M.itemSelectorElements[A]&&M.setPointerEventsNone(M.itemSelectorElements[A],!1)})},O.prototype.notifyDragScrollStart=function(){},O.prototype.notifyDragScrollEnd=function(){},O.prototype.notifyTextInputStart=function(k,M,A,F){h.DomUtils.addClassName(this.itemElements[k.key],"text-input")},O.prototype.notifyTextInputEnd=function(k,M){h.DomUtils.removeClassName(this.itemElements[k.key],"text-input")},O.prototype.notifyTextInputPermissionsCheck=function(k,M){var A=this.itemElements[k.key];M?h.DomUtils.removeClassName(A,D.NOT_VALID_CSSCLASS):h.DomUtils.addClassName(A,D.NOT_VALID_CSSCLASS)},O.prototype.notifyActualZoomChanged=function(k){var M="scale("+k+")";this.dom.changeByFunc(this.itemsContainer,function(A){return A.setAttribute("transform",M)}),this.dom.changeByFunc(this.itemSelectorsContainer,function(A){return A.setAttribute("transform",M)}),this.actualZoom=k},O.prototype.notifyViewAdjusted=function(k){},O.prototype.invalidatePrimitives=function(k){this.primitives[k.key]&&(this.primitives[k.key].forEach(function(M){M.dispose()}),delete this.primitives[k.key]),this.selectorPrimitives[k.key]&&(this.selectorPrimitives[k.key].forEach(function(M){M.dispose()}),delete this.selectorPrimitives[k.key])},O.prototype.getPrimitives=function(k){return this.primitives[k.key]||(this.primitives[k.key]=k.createPrimitives()),this.primitives[k.key]},O.prototype.getSelectorPrimitives=function(k){return this.selectorPrimitives[k.key]||(this.selectorPrimitives[k.key]=k.createSelectorPrimitives()),this.selectorPrimitives[k.key]},O.prototype.getShapeSelectorClassName=function(k){var M="shape";return k.enableChildren&&(M+=" container"),k.isLocked&&(M+=" locked"),M},O.prototype.getShapeClassName=function(k,M){var A=this.getShapeSelectorClassName(k);return M?A:A+" "+D.NOT_VALID_CSSCLASS},O.prototype.applyShapeChange=function(k,M,A){var F=k.key,P=k.container&&k.container.key,N=this.getItemSelectorGroupContainer(k.zIndex,P),B=this.getItemGroupContainer(k.zIndex,P),V=this.getShapeClassName(k,A);switch(M){case C.ItemChangeType.Create:this.itemSelectorElements[F]=this.createItemElements(F,this.getSelectorPrimitives(k),N,this.getShapeSelectorClassName(k),y.MouseEventElementType.Shape),this.itemElements[F]=this.createItemElements(F,this.getPrimitives(k),B,V,y.MouseEventElementType.Shape),k.enableChildren&&(this.itemChildElements[F]=this.createItemElements(F,[],B,"container-children",y.MouseEventElementType.Undefined),this.changeItemChildrenVisibility(this.itemChildElements[F],k.expanded));break;case C.ItemChangeType.Remove:this.removeItemCustomContent(this.itemSelectorElements[F],this.getSelectorPrimitives(k)),this.removeItemCustomContent(this.itemElements[F],this.getPrimitives(k)),this.invalidatePrimitives(k),this.removeItemElements(this.itemSelectorElements[F]),delete this.itemSelectorElements[F],this.removeItemElements(this.itemElements[F]),delete this.itemElements[F],this.itemChildElements[F]&&(this.removeItemElements(this.itemChildElements[F]),delete this.itemChildElements[F],delete this.itemGroupContainers[F],delete this.itemSelectorGroupContainers[F]);break;case C.ItemChangeType.UpdateStructure:case C.ItemChangeType.UpdateProperties:case C.ItemChangeType.Update:M!==C.ItemChangeType.Update&&(M===C.ItemChangeType.UpdateStructure&&(this.removeItemCustomContent(this.itemSelectorElements[F],this.getSelectorPrimitives(k)),this.removeItemCustomContent(this.itemElements[F],this.getPrimitives(k))),this.invalidatePrimitives(k)),this.changeItemElements(this.getSelectorPrimitives(k),this.itemSelectorElements[F],M===C.ItemChangeType.UpdateStructure),this.changeItemElements(this.getPrimitives(k),this.itemElements[F],M===C.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemElements[F],V),this.itemChildElements[F]&&this.changeItemChildrenVisibility(this.itemChildElements[F],k.expanded),N!==(this.itemSelectorElements[F]&&this.itemSelectorElements[F].parentNode)&&this.moveItemElements(N,this.itemSelectorElements[F]),B!==(this.itemElements[F]&&this.itemElements[F].parentNode)&&this.moveItemElements(B,this.itemElements[F]),this.itemChildElements[F]&&B!==this.itemChildElements[F].parentNode&&this.moveItemElements(B,this.itemChildElements[F]);break;case C.ItemChangeType.UpdateClassName:this.changeItemClassName(this.itemElements[F],V)}},O.prototype.getConnectorSelectorClassName=function(k){return v.ModelUtils.canMoveConnector(this.selectedItems,k)?"connector "+D.CONNECTOR_CAN_MOVE:"connector"},O.prototype.getConnectorClassName=function(k,M){var A=this.getConnectorSelectorClassName(k);return M?A:A+" "+D.NOT_VALID_CSSCLASS},O.prototype.applyConnectorChange=function(k,M,A){var F=k.key,P=k.container&&k.container.key,N=this.getItemSelectorGroupContainer(k.zIndex,P),B=this.getItemGroupContainer(k.zIndex,P),V=this.getConnectorClassName(k,A);switch(M){case C.ItemChangeType.Create:this.itemSelectorElements[F]=this.createItemElements(F,this.getSelectorPrimitives(k),N,this.getConnectorSelectorClassName(k),y.MouseEventElementType.Connector),this.itemElements[F]=this.createItemElements(F,this.getPrimitives(k),B,V,y.MouseEventElementType.Connector);break;case C.ItemChangeType.Remove:this.removeItemCustomContent(this.itemSelectorElements[F],this.getSelectorPrimitives(k)),this.removeItemCustomContent(this.itemElements[F],this.getPrimitives(k)),this.invalidatePrimitives(k),this.removeItemElements(this.itemSelectorElements[F]),delete this.itemSelectorElements[F],this.removeItemElements(this.itemElements[F]),delete this.itemElements[F];break;case C.ItemChangeType.UpdateStructure:case C.ItemChangeType.UpdateProperties:case C.ItemChangeType.Update:M!==C.ItemChangeType.Update&&(M===C.ItemChangeType.UpdateStructure&&(this.removeItemCustomContent(this.itemSelectorElements[F],this.getSelectorPrimitives(k)),this.removeItemCustomContent(this.itemElements[F],this.getPrimitives(k))),this.invalidatePrimitives(k)),this.changeItemElements(this.getSelectorPrimitives(k),this.itemSelectorElements[F],M===C.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemSelectorElements[F],this.getConnectorSelectorClassName(k)),this.changeItemElements(this.getPrimitives(k),this.itemElements[F],M===C.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemElements[F],V),N!==(this.itemSelectorElements[F]&&this.itemSelectorElements[F].parentNode)&&this.moveItemElements(N,this.itemSelectorElements[F]),B!==(this.itemElements[F]&&this.itemElements[F].parentNode)&&this.moveItemElements(B,this.itemElements[F]);break;case C.ItemChangeType.UpdateClassName:this.changeItemClassName(this.itemSelectorElements[F],this.getConnectorSelectorClassName(k)),this.changeItemClassName(this.itemElements[F],V)}},O.prototype.createItemElements=function(k,M,A,F,P){var N=this.createAndChangePrimitiveElement(new g.GroupPrimitive([],F,void 0,void 0,function(B){return p.RenderUtils.setElementEventData(B,P,k)}),A);return this.createAndChangePrimitivesElements(M,N),N},O.prototype.changeItemElements=function(k,M,A){A||k.length!==M.childNodes.length?(p.RenderUtils.removeContent(M),this.createAndChangePrimitivesElements(k,M)):this.dom.changeChildrenByPrimitives(k,M)},O.prototype.changeItemClassName=function(k,M){M&&k&&this.changePrimitiveElement(new g.GroupPrimitive([],M),k)},O.prototype.removeItemElements=function(k){k&&k.parentNode&&k.parentNode.removeChild(k)},O.prototype.removeItemCustomContent=function(k,M){k&&M&&M.length===k.childNodes.length&&M.forEach(function(A,F){A.destroyCustomContent(k.childNodes[F])})},O.prototype.moveItemElements=function(k,M,A){M&&k&&(A?k.insertBefore(M,A):k.appendChild(M))},O.prototype.changeItemChildrenVisibility=function(k,M){k.style.display=M?"":"none"},O.prototype.getItemGroupContainerKey=function(k,M){return void 0!==M?k+"_"+M:k.toString()},O.prototype.getItemGroupContainer=function(k,M){var A=void 0!==M?this.getItemParent(k,M):this.itemsContainer,F=M||"Main";if(void 0===this.itemGroupContainers[F]||void 0===this.itemGroupContainers[F][k]){void 0===this.itemGroupContainers[F]&&(this.itemGroupContainers[F]=[]);var P=Object.keys(this.itemGroupContainers[F]).map(function(N){return+N}).sort().filter(function(N){return N>k})[0];this.itemGroupContainers[F][k]=this.createAndChangePrimitiveElement(new g.GroupPrimitive([],null,k),A,this.itemGroupContainers[F][P])}return this.itemGroupContainers[F][k]},O.prototype.getItemSelectorGroupContainer=function(k,M){var A=void 0!==M?this.getItemSelectorParent(k,M):this.itemSelectorsContainer,F=M||"Main";if(void 0===this.itemSelectorGroupContainers[F]||void 0===this.itemSelectorGroupContainers[F][k]){void 0===this.itemSelectorGroupContainers[F]&&(this.itemSelectorGroupContainers[F]=[]);var P=Object.keys(this.itemSelectorGroupContainers[F]).map(function(N){return+N}).sort().filter(function(N){return N>k})[0];this.itemSelectorGroupContainers[F][k]=this.createAndChangePrimitiveElement(new g.GroupPrimitive([],null,k),A,this.itemSelectorGroupContainers[F][P])}return this.itemSelectorGroupContainers[F][k]},O.prototype.getItemParent=function(k,M){return void 0!==M?this.itemChildElements[M]:this.getItemGroupContainer(k)},O.prototype.getItemSelectorParent=function(k,M){return void 0!==M?this.itemChildElements[M]:this.getItemSelectorGroupContainer(k)},O.prototype.notifySelectionChanged=function(k){var M=this,A=v.ModelUtils.createSelectedItems(k),F=[];this.populateItems(F,A,this.selectedItems),this.populateItems(F,this.selectedItems,A),this.selectedItems=A,F.forEach(function(P){P instanceof c.Connector&&M.applyOrPostponeChanges([new C.ItemChange(P,C.ItemChangeType.UpdateClassName,!0)])})},O.prototype.populateItems=function(k,M,A){Object.keys(M).forEach(function(F){A[F]||k.push(M[F])})},O}(m.CanvasManager);D.CanvasItemsManager=b},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TextMeasurer=void 0;var E=w(2),I=w(17),C=w(14),y=w(6),g=w(43),p=w(15),d=w(64),c=function(){function h(m){this.cache={},this.fontSizeCache={},this.containers={},this.parent=m,this.createNodes()}return h.prototype.measureWords=function(m,v,b){var x=this,O={words:{},fontSize:-1},k="string"==typeof m?this.splitToWords(m,!1):m.reduce(function(P,N){return P.concat(x.splitToWords(N,!1))},[]);k.push(" ");var M=this.getStyleHash(v,b),A=this.tryLoadWordsToMeasurer(k,v,M,b,void 0,void 0,void 0,void 0,O);return A&&(this.putElementsInDOM(this.containers[b],A),this.beforeMeasureInDOM(),this.measureElementsInDOM(A,O),this.afterMeasureInDOM()),O},h.prototype.measureTextLine=function(m,v,b){var x=this.measureWords(m,v,b);return d.getTextLineSize(m,x)},h.prototype.onNewModel=function(m,v){var b=this;v.changeByFunc(null,function(){return b.onNewModelCore(m)})},h.prototype.onNewModelCore=function(m){var v=m.filter(function(k){return k instanceof C.Shape}),b=m.filter(function(k){return k instanceof y.Connector}),x=this.tryLoadShapeTexts(v),O=this.tryLoadConnectorTexts(b);(x||O)&&(x&&this.putElementsInDOM(this.containers[g.TextOwner.Shape],x),O&&this.putElementsInDOM(this.containers[g.TextOwner.Connector],O),this.beforeMeasureInDOM(),x&&this.measureElementsInDOM(x),O&&this.measureElementsInDOM(O),this.afterMeasureInDOM())},h.prototype.replaceParent=function(m){this.parent!==m&&(this.mainElement.parentNode&&m.appendChild(this.mainElement),this.parent=m)},h.prototype.clean=function(){I.RenderUtils.removeElement(this.mainElement)},h.prototype.tryLoadShapeTexts=function(m){var v=this,b={},x=[],O=[],k=[];return m.forEach(function(M){var A=v.getStyleHash(M.styleText,g.TextOwner.Shape);v.tryLoadWordsToMeasurer(v.splitToWords(M.text,!0),M.styleText,A,g.TextOwner.Shape,b,x,O,k)}),x.length?{elements:x,hashes:O,styleHashes:k}:null},h.prototype.tryLoadConnectorTexts=function(m){var v=this,b={},x=[],O=[],k=[];return m.forEach(function(M){var A=M.texts.map(function(P){return P.value}).reduce(function(P,N){return P.concat(v.splitToWords(N,!1))},[]);if(A.length){A.push(" ");var F=v.getStyleHash(M.styleText,g.TextOwner.Connector);v.tryLoadWordsToMeasurer(A,M.styleText,F,g.TextOwner.Connector,b,x,O,k)}}),x.length?{elements:x,hashes:O,styleHashes:k}:null},h.prototype.tryLoadWordsToMeasurer=function(m,v,b,x,O,k,M,A,F){var P=this,N=[];return k=k||[],M=M||[],A=A||[],O=O||{},m.forEach(function(B){return P.tryLoadWordToMeasurer(B,v,b,x,O,k,M,A,N,F)}),k.length?{elements:k,hashes:M,styleHashes:A,newWords:N}:null},h.prototype.putElementsInDOM=function(m,v){for(m.parentNode&&m.parentNode.removeChild(m);m.firstChild;)m.removeChild(m.firstChild);v.elements.forEach(function(b){return m.appendChild(b)}),this.svgElement.appendChild(m)},h.prototype.measureElementsInDOM=function(m,v){for(var b=m.hashes,x=m.elements,O=m.newWords,k=b.length,M=0;M<k;M++){var A=this.getDomElementSize(x[M]);A&&(A.isEmpty()||(this.cache[b[M]]=A),v&&(v.words[O[M]]=A));var F=m.styleHashes[M];void 0===this.fontSizeCache[F]&&(this.fontSizeCache[F]=this.getDomFontSize(x[M])),v&&v.fontSize<0&&(v.fontSize=this.fontSizeCache[F])}},h.prototype.beforeMeasureInDOM=function(){this.parent.appendChild(this.mainElement)},h.prototype.afterMeasureInDOM=function(){this.mainElement.parentNode&&this.mainElement.parentNode.removeChild(this.mainElement)},h.prototype.tryLoadWordToMeasurer=function(m,v,b,x,O,k,M,A,F,P){var N=this.getHash(m,v,x),B=this.cache[N];B||O[N]?B&&P&&(P.words[m]=B,P.fontSize=this.fontSizeCache[b]):(O[N]=!0,M.push(N),k.push(this.createElement(m,v)),A.push(b),F.push(m))},h.prototype.getHash=function(m,v,b){return b+"|"+(v&&v.toHash())+"|"+m},h.prototype.getStyleHash=function(m,v){return this.getHash(" ",m,v)},h.prototype.createElement=function(m,v){var b=document.createElementNS(p.svgNS,"text");return" "===m&&b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),b.textContent=m,v&&I.RenderUtils.applyStyleToElement(v,b),b},h.prototype.splitToWords=function(m,v){var b=d.textToWords(m);return v&&b.push(" "),b},h.prototype.getDomFontSize=function(m){return parseFloat(window.getComputedStyle(m).fontSize)},h.prototype.getDomElementSize=function(m){var v;try{v=m.getBBox()}catch{}return v?new E.Size(v.width,v.height):new E.Size(0,0)},h.prototype.createNodes=function(){this.mainElement=p.RenderHelper.createMainElement(void 0,!0),this.svgElement=p.RenderHelper.createSvgElement(this.mainElement,!1),this.createContainer(g.TextOwner.Shape,"shape"),this.createContainer(g.TextOwner.Connector,"connector"),this.createContainer(g.TextOwner.ExtensionLine,"extension-line"),this.createContainer(g.TextOwner.Resize,"resize-info")},h.prototype.createContainer=function(m,v){var b=document.createElementNS(p.svgNS,"g");b.setAttribute("class",v),this.containers[m]=b},h}();D.TextMeasurer=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(B,V){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(H,W){H.__proto__=W}||function(H,W){for(var q in W)W.hasOwnProperty(q)&&(H[q]=W[q])})(B,V)},function(B,V){function H(){this.constructor=B}E(B,V),B.prototype=null===V?Object.create(V):(H.prototype=V.prototype,new H)});Object.defineProperty(D,"__esModule",{value:!0}),D.EdgeOnLayer=D.NodeOnLayer=D.SugiyamaNodesOrderer=D.SugiyamaLayerDistributor=D.SugiyamaLayoutBuilder=void 0;var C=w(139),y=w(54),g=w(71),p=w(38),d=w(90),c=w(41),h=w(0),m=w(20),v=w(138),b=w(6),x=w(270),O=function(B){function V(){return null!==B&&B.apply(this,arguments)||this}return I(V,B),V.prototype.build=function(){var H=this,W=0,q=new v.GraphLayout,G=new M;return this.graph.getConnectedComponents().forEach(function(J){var ne=x.CycleRemover.removeCycles(J),ae=k.getLayers(ne.graph),ge=G.orderNodes(ne.graph,ae),pe=Object.keys(ne.removedEdges).map(function(oe){return J.getEdge(oe)}),le=G.assignAbsCoordinates(ge),ce=H.createInfoGraphLayout(le,ne.reversedEdges,pe);q.extend(H.setComponentOffset(ce,W)),W+=H.getComponentOffset(ce)}),q},V.prototype.createInfoGraphLayout=function(H,W,q){for(var G=this,J=new h.Point(0,0),ne=H.items,ae=new d.HashSet(ne.map(function(Ae){return Ae.layer}).sort(function(Ae,Ne){return Ae-Ne})),ge=this.getAbsOffsetInfo(H.items),pe={},le=0,ce=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,oe=Number.MIN_SAFE_INTEGER||Number.MAX_VALUE,K=function(Ae){var Ne=ae.item(Ae),Qe=0;ne.filter(function($e){return $e.layer===Ne}).sort(function($e,_e){return $e.position-_e.position}).forEach(function($e){var _e=G.getDepthNodeSize($e),xe=G.chooseDirectionValue(0,_e),ve=G.getAbsPosition($e.position,G.getBreadthNodeSize($e),ge);J=G.setBreadth(J,ve);var ee=G.setDepthOffset(J,-xe);if(pe[$e.key]=ee,!$e.isDummy){var Ce=G.settings.orientation===m.DataLayoutOrientation.Horizontal?ee.y:ee.x;ce=Math.min(ce,Ce),oe=Math.max(oe,Ce+G.getBreadthNodeSize($e)),Qe=Math.max(Qe,G.getDepthNodeSize($e))}}),le+=Qe,J=Q.setBreadth(J,0),J=Q.setDepthOffset(J,Q.getDirectionValue(Qe+Q.settings.layerSpacing))},Q=this,de=0;de<ae.length;de++)K(de);le+=(ae.length-1)*this.settings.layerSpacing;var Oe=new v.GraphLayout;return this.createNodesLayout(H,Oe,ce,le,pe),this.createEdgesLayout(H,Oe,W,q),Oe},V.prototype.createNodesLayout=function(H,W,q,G,J){var ne=this,ae=this.settings.orientation===m.DataLayoutOrientation.Vertical?new h.Point(-q,this.chooseDirectionValue(0,G)):new h.Point(this.chooseDirectionValue(0,G),-q);H.items.forEach(function(ge){if(!ge.isDummy){var pe=ne.graph.getNode(ge.key);W.addNode(new g.NodeLayout(pe,J[ge.key].clone().offset(ae.x,ae.y)))}})},V.prototype.createEdgesLayout=function(H,W,q,G){var J=this.getDirectEdgeLayout(),ne=this.getDiffLevelEdgeLayout(!0),ae=this.getDiffLevelEdgeLayout(!1),ge=this.getSameLevelEdgeLayout(!0),pe=this.getSameLevelEdgeLayout(!1),le={};H.edges.filter(function(ce){return!ce.isDummy}).concat(G.map(function(ce){return new P(ce.key,!1,ce.from,ce.to)})).sort(function(ce,oe){return H.getNode(ce.originFrom).layer-H.getNode(oe.originFrom).layer||H.getNode(ce.to).layer-H.getNode(oe.to).layer}).forEach(function(ce){var oe=q[ce.key],K=H.getNode(oe?ce.to:ce.originFrom),Q=H.getNode(oe?ce.originFrom:ce.to);if(Q.layer-K.layer==1)W.addEdge(new g.EdgeLayout(ce.key,J.from,J.to));else{var de=[];if(Q.position-K.position>=1)de.push(ne),de.push({from:J.from,to:ne.to}),de.push({from:ne.from,to:J.to});else if(Q.position-K.position<=-1)de.push(ae),de.push({from:J.from,to:ae.to}),de.push({from:ae.from,to:J.to});else{var Oe=K.position===Q.position&&0===Q.position?[ge,pe]:[pe,ge];Oe.forEach(function(_e){return de.push(_e)}),Oe.forEach(function(_e){de.push({from:_e.from,to:J.to}),de.push({from:J.from,to:_e.to})})}de.push(J);for(var Ae=0,Ne=void 0;Ne=de[Ae];Ae++){var Qe=K.key+"_"+Ne.from,$e=Q.key+"_"+Ne.to;if(le[Qe]!==b.ConnectorPosition.End&&le[$e]!==b.ConnectorPosition.Begin){W.addEdge(new g.EdgeLayout(ce.key,Ne.from,Ne.to)),le[Qe]=b.ConnectorPosition.Begin,le[$e]=b.ConnectorPosition.End;break}}}})},V.prototype.getDirectEdgeLayout=function(){return this.settings.orientation===m.DataLayoutOrientation.Horizontal?this.settings.direction===m.LogicalDirectionKind.Forward?{from:1,to:3}:{from:3,to:1}:this.settings.direction===m.LogicalDirectionKind.Forward?{from:2,to:0}:{from:0,to:2}},V.prototype.getDiffLevelEdgeLayout=function(H){return this.settings.orientation===m.DataLayoutOrientation.Horizontal?H?{from:2,to:0}:{from:0,to:2}:H?{from:3,to:1}:{from:1,to:3}},V.prototype.getSameLevelEdgeLayout=function(H){return this.settings.orientation===m.DataLayoutOrientation.Horizontal?H?{from:0,to:0}:{from:2,to:2}:H?{from:3,to:3}:{from:1,to:1}},V.prototype.getAbsOffsetInfo=function(H){var W=this,q={},G=function(ae,ge){void 0===q[ge]&&(q[ge]=W.getBreadthNodeSize(ae)),q[ge]=Math.max(q[ge],W.getBreadthNodeSize(ae))};H.forEach(function(ae){var ge=N(ae.position);G(ae,ge),q[ge]%1!=0&&G(ae,ge+1)});var J={},ne=0;return Object.keys(q).sort(function(ae,ge){return parseFloat(ae)-parseFloat(ge)}).forEach(function(ae){J[ae]={leftOffset:ne,width:q[ae]},ne+=q[ae]+W.settings.columnSpacing}),J},V.prototype.setBreadth=function(H,W){return this.settings.orientation===m.DataLayoutOrientation.Vertical?new h.Point(W,H.y):new h.Point(H.x,W)},V.prototype.setDepthOffset=function(H,W){return this.settings.orientation===m.DataLayoutOrientation.Horizontal?new h.Point(H.x+W,H.y):new h.Point(H.x,H.y+W)},V.prototype.getAbsPosition=function(H,W,q){var G=N(H),J=q[G].leftOffset,ne=q[G].width;return H%1==0?J+(ne-W)/2:J+ne-(W-this.settings.columnSpacing)/2},V.prototype.getBreadthNodeSize=function(H){return H.isDummy?0:this.getBreadthNodeSizeCore(this.graph.getNode(H.key))},V.prototype.getDepthNodeSize=function(H){return H.isDummy?0:this.getDepthNodeSizeCore(this.graph.getNode(H.key))},V}(C.LayoutBuilder);D.SugiyamaLayoutBuilder=O;var k=function(){function B(){}return B.getLayers=function(V){var H=this.getFeasibleTree(V);return this.calcNodesLayers(H)},B.getFeasibleTree=function(V){var H=this.initLayerAssignment(V);return V.getSpanningGraph(V.nodes[0],p.ConnectionMode.OutgoingAndIncoming,function(W){return H[W.to]-H[W.from]})},B.initLayerAssignment=function(V){for(var H={},W=0,q={},G=V.nodes.filter(function(ne){return!V.getAdjacentEdges(ne,p.ConnectionMode.Incoming).length}),J=function(){G.forEach(function(ae){H[ae]=W,q[ae]=!0}),Object.keys(q).forEach(function(ae){0===V.getAdjacentEdges(ae,p.ConnectionMode.Outgoing).filter(function(ge){return void 0===H[ge.to]}).length&&delete q[ae]});var ne={};Object.keys(q).forEach(function(ae){V.getAdjacentEdges(ae,p.ConnectionMode.Outgoing).map(function(ge){return ge.to}).filter(function(ge){return void 0===H[ge]&&V.getAdjacentEdges(ge,p.ConnectionMode.Incoming).reduce(function(pe,le){return pe&&void 0!==H[le.from]},!0)}).forEach(function(ge){return ne[ge]=!0})}),G=Object.keys(ne),W++};G.length;)J();return H},B.calcNodesLayers=function(V){var H={},W=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,q=0,G=V.createIterator(p.ConnectionMode.OutgoingAndIncoming);for(var J in G.visitEachEdgeOnce=!1,G.onNode=function(ne){H[ne.key]=q,W=Math.min(W,q)},G.skipNode=function(ne){return void 0!==H[ne.key]},G.skipEdge=function(ne){return void 0!==H[ne.from]&&void 0!==H[ne.to]},G.onEdge=function(ne,ae){q=ae?H[ne.from]+1:H[ne.to]-1},G.iterate(V.nodes[0]),H)Object.prototype.hasOwnProperty.call(H,J)&&(H[J]-=W);return H},B}();D.SugiyamaLayerDistributor=k;var M=function(){function B(){this.idCounter=-1e4}return B.prototype.orderNodes=function(V,H){for(var W=1,q=this.initGraphInfo(V,H),G=q.items,J=this.initOrder(G),ne=this.getNodeToPositionMap(G),ae=this.getCrossCount(J,q),ge=!0;W<14&&0!==ae;){J=this.getNodesOrder(J,q,ge);var pe=this.getCrossCount(J,q);pe<ae&&(ne=this.getNodeToPositionMap(q.items),ae=pe),ge=!ge,W++}return q.items.forEach(function(le){return le.position=ne[le.key]}),q},B.prototype.getNodesOrder=function(V,H,W){var q=this,G={},J=function(ge){if(!Object.prototype.hasOwnProperty.call(V,ge))return"continue";var pe={},le=[];V[ge].forEach(function(ce){var oe=(W?H.getChildren(ce.key):H.getParents(ce.key)).map(function(K){return H.getNode(K).position});le.push(ce.key),pe[ce.key]=q.getNodePosition(oe)}),G[ge]=ne.sortNodes(le,pe,H)},ne=this;for(var ae in V)J(ae);return G},B.prototype.sortNodes=function(V,H,W){return V.sort(function(q,G){return H[q]-H[G]}).map(function(q,G){var J=W.getNode(q);return J.position=G,J})},B.prototype.getNodePosition=function(V){if(!(V=V.sort(function(G,J){return G-J})).length)return 0;var H=Math.floor(V.length/2);if(2===V.length||V.length%2==1)return V[H];var W=V[H-1]-V[0],q=V[V.length-1]-V[H];return Math.floor((V[H-1]*q+V[H]*W)/(W+q))},B.prototype.initOrder=function(V){var H={};return V.forEach(function(W){return(H[W.layer]||(H[W.layer]=[])).push(W)}),H},B.prototype.getCrossCount=function(V,H){var W=0,q=function(J){if(!Object.prototype.hasOwnProperty.call(V,J))return"continue";var ne=[];V[J].forEach(function(ae){var ge=H.getChildren(ae.key).map(function(pe){return H.getNode(pe).position});ge.forEach(function(pe){W+=ne.filter(function(le){return pe<le}).length}),ne=ne.concat(ge)})};for(var G in V)q(G);return W},B.prototype.initGraphInfo=function(V,H){var W=this,q={},G={},J=[],ne=[];return V.nodes.forEach(function(ae){var ge=H[ae];void 0===q[ge]&&(q[ge]=0);var pe=new A(ae,!1,ge,q[ge]++);G[ae]=pe,J.push(pe)}),V.edges.forEach(function(ae){var ge=H[ae.to]-H[ae.from];if(ge>1){for(var pe=G[ae.from],le=1;le<ge;le++){var ce=new A(W.createDummyID(),!0,H[ae.from]+le,q[H[ae.from]+le]++);ne.push(new P(W.createDummyID(),!0,pe.key,ce.key)),J.push(ce),pe=ce}ne.push(new P(ae.key,!1,pe.key,G[ae.to].key,G[ae.from].key))}else ne.push(new P(ae.key,!1,G[ae.from].key,G[ae.to].key))}),new y.FastGraph(J,ne)},B.prototype.createDummyID=function(){return"dummy_"+--this.idCounter},B.prototype.getNodeToPositionMap=function(V){return V.reduce(function(H,W){return H[W.key]=W.position,H},{})},B.prototype.assignAbsCoordinates=function(V){var H=this.getAbsCoodinate(V);return new y.FastGraph(V.items.map(function(W){return new A(W.key,W.isDummy,W.layer,H[W.key])}),V.edges.slice(0))},B.prototype.getAbsCoodinate=function(V){var H=this,W=V.items.reduce(function(J,ne){J[ne.layer]=J[ne.layer]||[];var ae=c.SearchUtils.binaryIndexOf(J[ne.layer],function(ge){return ge.position-ne.position});return J[ne.layer].splice(ae<0?~ae:ae,0,ne),J},{}),q=[F.TopLeft,F.TopRight,F.BottomLeft,F.BottomRight].map(function(J){return H.getPositionByMedian(V,J,W)}),G={};return V.items.forEach(function(J){var ne=q.map(function(ae){return ae[J.key]}).sort(function(ae,ge){return ae-ge});G[J.key]=(ne[1]+ne[2])/2}),G},B.prototype.getPositionByMedian=function(V,H,W){var q=V.items,G=this.getNodeToPositionMap(q),J=this.getMedians(V,q,H);return J=this.resolveMedianConflicts(V,W,J,H),this.getSortedBlocks(V,q,J,H).forEach(function(ne){var ae=ne.reduce(function(ge,pe){return G[pe.key]>ge?G[pe.key]:ge},-2);ne.forEach(function(ge){var pe=ae-G[ge.key];pe>0&&W[ge.layer].filter(function(le){return le.position>ge.position}).forEach(function(le){return G[le.key]+=pe}),G[ge.key]=ae})}),G},B.prototype.getSortedBlocks=function(V,H,W,q){for(var G=[],J=q===F.BottomLeft||q===F.BottomRight,ne=new d.HashSet(H.slice(0).sort(function(pe,le){return J?pe.layer-le.layer:le.layer-pe.layer}),function(pe){return pe.key});ne.length;){var ae=ne.item(0),ge=this.getBlock(V,ae,W,q);G.push(ge),ge.forEach(function(pe){return ne.remove(pe)})}return G.sort(function(pe,le){var ce=pe.reduce(function(de,Oe){return Oe.position<de.position?Oe:de},pe[0]),oe=le.filter(function(de){return de.layer===ce.layer})[0];if(oe)return ce.position>oe.position?1:-1;var K=le.reduce(function(de,Oe){return Oe.position<de.position?Oe:de},le[0]),Q=pe.filter(function(de){return de.layer===K.layer})[0];return Q?Q.position>K.position?1:-1:ce.layer>K.layer?1:-1}),G},B.prototype.getBlock=function(V,H,W,q){var G=[],J=null;do{J&&(H=V.getNode(q===F.TopLeft||q===F.TopRight?J.from:J.to)),G.push(H),J=W[H.key]}while(J);return G},B.prototype.resolveMedianConflicts=function(V,H,W,q){var G=this,J={},ne=function(ge){if(!Object.prototype.hasOwnProperty.call(H,ge))return"continue";var pe,le,ce=H[ge];q!==F.TopRight&&q!==F.BottomRight||(ce=ce.slice(0).sort(function(oe,K){return K.position-oe.position})),ce.forEach(function(oe){var K=W[oe.key];if(K){var de=V.getNode(q===F.TopLeft||q===F.TopRight?K.from:K.to).position;G.checkMedianConfict(pe,le,de,q)?J[oe.key]=null:(pe=void 0===pe?de:Math.min(pe,de),le=void 0===le?de:Math.max(le,de),J[oe.key]=K)}else J[oe.key]=null})};for(var ae in H)ne(ae);return J},B.prototype.checkMedianConfict=function(V,H,W,q){return void 0!==V&&void 0!==H&&(q===F.TopLeft||q===F.BottomLeft?H>=W:V<=W)},B.prototype.getMedians=function(V,H,W){var q=this,G={};return H.forEach(function(J){var ne=q.getActualAdjacentEdges(V,J,W),ae=q.getMedianPosition(ne.length,W);G[J.key]=ne[ae]}),G},B.prototype.getMedianPosition=function(V,H){if(0===V)return-1;if(V%2!=0)return Math.floor(V/2);if(H===F.TopLeft||H===F.BottomLeft)return Math.floor(V/2)-1;if(H===F.TopRight||H===F.BottomRight)return Math.floor(V/2);throw new Error("Invalid Operation")},B.prototype.getActualAdjacentEdges=function(V,H,W){return W===F.TopLeft||W===F.TopRight?V.getAdjacentEdges(H.key,p.ConnectionMode.Incoming).sort(function(q,G){return V.getNode(q.from).position-V.getNode(G.from).position}):V.getAdjacentEdges(H.key,p.ConnectionMode.Outgoing).sort(function(q,G){return V.getNode(q.to).position-V.getNode(G.to).position})},B}();D.SugiyamaNodesOrderer=M;var A=function(){function B(V,H,W,q){this.key=V,this.isDummy=H,this.layer=W,this.position=q}return B.prototype.getHashCode=function(){return this.key.toString()},B}();D.NodeOnLayer=A;var F,B,P=function(){function B(V,H,W,q,G){this.key=V,this.isDummy=H,this.from=W,this.to=q,this._originFrom=G}return B.prototype.getHashCode=function(){return this.from+"-"+this.to},Object.defineProperty(B.prototype,"originFrom",{get:function(){return void 0!==this._originFrom?this._originFrom:this.from},enumerable:!1,configurable:!0}),B}();function N(B){return Math.trunc?Math.trunc(B):isFinite(B)?B-B%1||(B<0?-0:0===B?B:0):B}D.EdgeOnLayer=P,(B=F||(F={}))[B.TopLeft=0]="TopLeft",B[B.TopRight=1]="TopRight",B[B.BottomLeft=2]="BottomLeft",B[B.BottomRight=3]="BottomRight"},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function C(){this.suspendUpdateCount=0,this.occurredEvents=0}return C.prototype.beginUpdate=function(){0===this.suspendUpdateCount&&this.onUpdateLocked(),this.suspendUpdateCount<0?this.suspendUpdateCount--:this.suspendUpdateCount++},C.prototype.endUpdate=function(){if(this.suspendUpdateCount<0?this.suspendUpdateCount++:this.suspendUpdateCount>0&&this.suspendUpdateCount--,!this.isUpdateLocked()){var y=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(y)}},C.prototype.suspendUpdate=function(){if(this.suspendUpdateCount>0){this.suspendUpdateCount*=-1;var y=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(y)}},C.prototype.continueUpdate=function(){this.suspendUpdateCount<0&&(this.suspendUpdateCount*=-1)},C.prototype.isUpdateLocked=function(){return this.suspendUpdateCount>0},C.prototype.onUpdateLocked=function(){},C.prototype.registerOccurredEvent=function(y){this.occurredEvents|=y},C.prototype.resetOccurredEvents=function(){this.occurredEvents=0},C.prototype.isLocked=function(){return 0!==this.suspendUpdateCount},C}();D.BatchUpdatableObject=E;var I=function(){function C(){}return C.prototype.beginUpdate=function(){},C.prototype.endUpdate=function(){},C}();D.EmptyBatchUpdatableObject=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CommandManager=D.DiagramCommand=void 0;var E,Ye,I=w(162),C=w(199),y=w(200),g=w(201),p=w(238),d=w(239),c=w(240),h=w(241),m=w(242),v=w(243),b=w(244),x=w(245),O=w(246),k=w(247),M=w(248),A=w(249),F=w(250),P=w(25),N=w(137),B=w(253),V=w(254),H=w(255),W=w(257),q=w(259),G=w(261),J=w(262),ne=w(263),ae=w(264),ge=w(265),pe=w(268),le=w(271),ce=w(272),oe=w(142),K=w(273),Q=w(274),de=w(275),Oe=w(276),Ae=w(143),Ne=w(144),Qe=w(277),$e=w(278),_e=w(279),xe=w(280),ve=w(282),ee=w(284),Ce=w(285),De=w(286),ke=w(287),Fe=w(288),ze=w(289),Pe=w(290),be=w(292),me=w(293),Me=w(294),Ue=w(295),st=w(296),Lt=w(297),ln=w(298),Mn=w(299),ri=w(300);(Ye=E=D.DiagramCommand||(D.DiagramCommand={}))[Ye.Undo=0]="Undo",Ye[Ye.Redo=1]="Redo",Ye[Ye.Cut=2]="Cut",Ye[Ye.Copy=3]="Copy",Ye[Ye.Paste=4]="Paste",Ye[Ye.PasteInPosition=5]="PasteInPosition",Ye[Ye.SelectAll=6]="SelectAll",Ye[Ye.Delete=7]="Delete",Ye[Ye.Import=8]="Import",Ye[Ye.ImportBPMN=9]="ImportBPMN",Ye[Ye.Export=10]="Export",Ye[Ye.ExportSvg=11]="ExportSvg",Ye[Ye.ExportPng=12]="ExportPng",Ye[Ye.ExportJpg=13]="ExportJpg",Ye[Ye.BindDocument=14]="BindDocument",Ye[Ye.UnbindDocument=15]="UnbindDocument",Ye[Ye.Bold=16]="Bold",Ye[Ye.Italic=17]="Italic",Ye[Ye.Underline=18]="Underline",Ye[Ye.FontName=19]="FontName",Ye[Ye.FontSize=20]="FontSize",Ye[Ye.FontColor=21]="FontColor",Ye[Ye.FillColor=22]="FillColor",Ye[Ye.StrokeColor=23]="StrokeColor",Ye[Ye.TextLeftAlign=24]="TextLeftAlign",Ye[Ye.TextCenterAlign=25]="TextCenterAlign",Ye[Ye.TextRightAlign=26]="TextRightAlign",Ye[Ye.ConnectorLineOption=27]="ConnectorLineOption",Ye[Ye.ConnectorStartLineEnding=28]="ConnectorStartLineEnding",Ye[Ye.ConnectorEndLineEnding=29]="ConnectorEndLineEnding",Ye[Ye.BringToFront=30]="BringToFront",Ye[Ye.SendToBack=31]="SendToBack",Ye[Ye.MoveLeft=32]="MoveLeft",Ye[Ye.MoveStepLeft=33]="MoveStepLeft",Ye[Ye.MoveRight=34]="MoveRight",Ye[Ye.MoveStepRight=35]="MoveStepRight",Ye[Ye.MoveUp=36]="MoveUp",Ye[Ye.MoveStepUp=37]="MoveStepUp",Ye[Ye.MoveDown=38]="MoveDown",Ye[Ye.MoveStepDown=39]="MoveStepDown",Ye[Ye.CloneLeft=40]="CloneLeft",Ye[Ye.CloneRight=41]="CloneRight",Ye[Ye.CloneUp=42]="CloneUp",Ye[Ye.CloneDown=43]="CloneDown",Ye[Ye.AutoLayoutTree=44]="AutoLayoutTree",Ye[Ye.AutoLayoutFlow=45]="AutoLayoutFlow",Ye[Ye.AutoLayoutTreeVertical=46]="AutoLayoutTreeVertical",Ye[Ye.AutoLayoutTreeHorizontal=47]="AutoLayoutTreeHorizontal",Ye[Ye.AutoLayoutLayeredVertical=48]="AutoLayoutLayeredVertical",Ye[Ye.AutoLayoutLayeredHorizontal=49]="AutoLayoutLayeredHorizontal",Ye[Ye.Lock=50]="Lock",Ye[Ye.Unlock=51]="Unlock",Ye[Ye.Units=52]="Units",Ye[Ye.ViewUnits=53]="ViewUnits",Ye[Ye.PageSize=54]="PageSize",Ye[Ye.PageLandscape=55]="PageLandscape",Ye[Ye.PageColor=56]="PageColor",Ye[Ye.GridSize=57]="GridSize",Ye[Ye.ShowGrid=58]="ShowGrid",Ye[Ye.SnapToGrid=59]="SnapToGrid",Ye[Ye.ZoomLevel=60]="ZoomLevel",Ye[Ye.Fullscreen=61]="Fullscreen",Ye[Ye.ToggleSimpleView=62]="ToggleSimpleView",Ye[Ye.ToggleReadOnly=63]="ToggleReadOnly",Ye[Ye.EditShapeImage=64]="EditShapeImage",Ye[Ye.FitToScreen=65]="FitToScreen",Ye[Ye.SwitchAutoZoom=66]="SwitchAutoZoom",Ye[Ye.ToggleAutoZoom=67]="ToggleAutoZoom",Ye[Ye.FitToWidth=68]="FitToWidth",Ye[Ye.ZoomLevelItems=69]="ZoomLevelItems",Ye[Ye.GridSizeItems=70]="GridSizeItems",Ye[Ye.PageSizeItems=71]="PageSizeItems",Ye[Ye.ImportXML=72]="ImportXML",Ye[Ye.InsertShapeImage=73]="InsertShapeImage",Ye[Ye.DeleteShapeImage=74]="DeleteShapeImage",Ye[Ye.StrokeStyle=75]="StrokeStyle",Ye[Ye.StrokeWidth=76]="StrokeWidth",Ye[Ye.AutoLayoutTreeVerticalBottomToTop=77]="AutoLayoutTreeVerticalBottomToTop",Ye[Ye.AutoLayoutTreeHorizontalRightToLeft=78]="AutoLayoutTreeHorizontalRightToLeft",Ye[Ye.AutoLayoutLayeredVerticalBottomToTop=79]="AutoLayoutLayeredVerticalBottomToTop",Ye[Ye.AutoLayoutLayeredHorizontalRightToLeft=80]="AutoLayoutLayeredHorizontalRightToLeft",Ye[Ye.Zoom25=81]="Zoom25",Ye[Ye.Zoom50=82]="Zoom50",Ye[Ye.Zoom75=83]="Zoom75",Ye[Ye.Zoom100=84]="Zoom100",Ye[Ye.Zoom125=85]="Zoom125",Ye[Ye.Zoom150=86]="Zoom150",Ye[Ye.Zoom200=87]="Zoom200",Ye[Ye.AutoZoomToContent=88]="AutoZoomToContent",Ye[Ye.AutoZoomToWidth=89]="AutoZoomToWidth",Ye[Ye.ZoomLevelInPercentage=90]="ZoomLevelInPercentage",Ye[Ye.ConnectorRoutingMode=91]="ConnectorRoutingMode";var lr=function(){function Ye(ft){this.commands={},this.shortcutsToCommand={},this.lastCommandsChain=[],this.executingCommandsChain=[],this.executingCommandCounter=0,this.isPublicApiCall=!1,this.createCommand(ft,E.Undo,C.UndoCommand,P.ModifierKey.Ctrl|P.KeyCode.Key_z,P.ModifierKey.Meta|P.KeyCode.Key_z),this.createCommand(ft,E.Redo,y.RedoCommand,P.ModifierKey.Ctrl|P.KeyCode.Key_y,P.ModifierKey.Ctrl|P.ModifierKey.Shift|P.KeyCode.Key_z,P.ModifierKey.Meta|P.ModifierKey.Shift|P.KeyCode.Key_z),this.createCommand(ft,E.Cut,ae.CutSelectionCommand,P.KeyCode.Key_x|P.ModifierKey.Ctrl,P.KeyCode.Key_x|P.ModifierKey.Meta,P.KeyCode.Delete|P.ModifierKey.Shift),this.createCommand(ft,E.Copy,ne.CopySelectionCommand,P.KeyCode.Key_c|P.ModifierKey.Ctrl,P.KeyCode.Key_c|P.ModifierKey.Meta,P.KeyCode.Insert|P.ModifierKey.Ctrl),this.createCommand(ft,E.Paste,ge.PasteSelectionCommand),this.createCommand(ft,E.PasteInPosition,ze.PasteSelectionInPositionCommand),this.createCommand(ft,E.SelectAll,F.SelectAllCommand,P.KeyCode.Key_a|P.ModifierKey.Ctrl,P.KeyCode.Key_a|P.ModifierKey.Meta),this.createCommand(ft,E.Delete,I.DeleteCommand,P.KeyCode.Delete,P.KeyCode.Backspace),this.createCommand(ft,E.Import,g.ImportCommand),this.createCommand(ft,E.ImportBPMN,pe.ImportBPMNCommand),this.createCommand(ft,E.ImportXML,Pe.ImportXMLCommand),this.createCommand(ft,E.Export,p.ExportCommand),this.createCommand(ft,E.ExportSvg,G.ExportSvgCommand),this.createCommand(ft,E.ExportPng,q.ExportPngCommand),this.createCommand(ft,E.ExportJpg,J.ExportJpgCommand),this.createCommand(ft,E.BindDocument,de.BindDocumentCommand),this.createCommand(ft,E.UnbindDocument,Oe.UnbindDocumentCommand),this.createCommand(ft,E.Bold,d.ToggleFontBoldCommand,P.ModifierKey.Ctrl|P.KeyCode.Key_b,P.ModifierKey.Meta|P.KeyCode.Key_b),this.createCommand(ft,E.Italic,c.ToggleFontItalicCommand,P.ModifierKey.Ctrl|P.KeyCode.Key_i,P.ModifierKey.Meta|P.KeyCode.Key_i),this.createCommand(ft,E.Underline,h.ToggleFontUnderlineCommand,P.ModifierKey.Ctrl|P.KeyCode.Key_u,P.ModifierKey.Meta|P.KeyCode.Key_u),this.createCommand(ft,E.FontName,m.ChangeFontNameCommand),this.createCommand(ft,E.FontSize,v.ChangeFontSizeCommand),this.createCommand(ft,E.FontColor,b.ChangeFontColorCommand),this.createCommand(ft,E.FillColor,x.ChangeFillColorCommand),this.createCommand(ft,E.StrokeColor,O.ChangeStrokeColorCommand),this.createCommand(ft,E.StrokeStyle,Me.ChangeStrokeStyleCommand),this.createCommand(ft,E.StrokeWidth,Ue.ChangeStrokeWidthCommand),this.createCommand(ft,E.TextLeftAlign,k.TextLeftAlignCommand),this.createCommand(ft,E.TextCenterAlign,k.TextCenterAlignCommand),this.createCommand(ft,E.TextRightAlign,k.TextRightAlignCommand),this.createCommand(ft,E.ConnectorLineOption,A.ChangeConnectorLineOptionCommand),this.createCommand(ft,E.ConnectorStartLineEnding,M.ChangeConnectorStartLineEndingCommand),this.createCommand(ft,E.ConnectorEndLineEnding,M.ChangeConnectorEndLineEndingCommand),this.createCommand(ft,E.BringToFront,ce.BringToFrontCommand),this.createCommand(ft,E.SendToBack,le.SendToBackCommand),this.createCommand(ft,E.MoveLeft,K.MoveLeftCommand,P.ModifierKey.Ctrl|P.KeyCode.Left,P.ModifierKey.Ctrl|P.ModifierKey.Shift|P.KeyCode.Left),this.createCommand(ft,E.MoveRight,K.MoveRightCommand,P.ModifierKey.Ctrl|P.KeyCode.Right,P.ModifierKey.Ctrl|P.ModifierKey.Shift|P.KeyCode.Right),this.createCommand(ft,E.MoveUp,K.MoveUpCommand,P.ModifierKey.Ctrl|P.KeyCode.Up,P.ModifierKey.Ctrl|P.ModifierKey.Shift|P.KeyCode.Up),this.createCommand(ft,E.MoveDown,K.MoveDownCommand,P.ModifierKey.Ctrl|P.KeyCode.Down,P.ModifierKey.Ctrl|P.ModifierKey.Shift|P.KeyCode.Down),this.createCommand(ft,E.MoveStepLeft,K.MoveStepLeftCommand,P.KeyCode.Left,P.ModifierKey.Shift|P.KeyCode.Left),this.createCommand(ft,E.MoveStepRight,K.MoveStepRightCommand,P.KeyCode.Right,P.ModifierKey.Shift|P.KeyCode.Right),this.createCommand(ft,E.MoveStepUp,K.MoveStepUpCommand,P.KeyCode.Up,P.ModifierKey.Shift|P.KeyCode.Up),this.createCommand(ft,E.MoveStepDown,K.MoveStepDownCommand,P.KeyCode.Down,P.ModifierKey.Shift|P.KeyCode.Down),this.createCommand(ft,E.CloneLeft,_e.CloneLeftCommand,P.ModifierKey.Alt|P.KeyCode.Left,P.ModifierKey.Alt|P.ModifierKey.Shift|P.KeyCode.Left),this.createCommand(ft,E.CloneRight,_e.CloneRightCommand,P.ModifierKey.Alt|P.KeyCode.Right,P.ModifierKey.Alt|P.ModifierKey.Shift|P.KeyCode.Right),this.createCommand(ft,E.CloneUp,_e.CloneUpCommand,P.ModifierKey.Alt|P.KeyCode.Up,P.ModifierKey.Alt|P.ModifierKey.Shift|P.KeyCode.Up),this.createCommand(ft,E.CloneDown,_e.CloneDownCommand,P.ModifierKey.Alt|P.KeyCode.Down,P.ModifierKey.Alt|P.ModifierKey.Shift|P.KeyCode.Down),this.createCommand(ft,E.Lock,Qe.LockCommand),this.createCommand(ft,E.Unlock,$e.UnLockCommand),this.createCommand(ft,E.AutoLayoutTree,N.AutoLayoutTreeVerticalCommand),this.createCommand(ft,E.AutoLayoutFlow,oe.AutoLayoutLayeredHorizontalCommand),this.createCommand(ft,E.Units,xe.ChangeUnitsCommand),this.createCommand(ft,E.ViewUnits,xe.ChangeViewUnitsCommand),this.createCommand(ft,E.PageSize,W.ChangePageSizeCommand),this.createCommand(ft,E.PageLandscape,H.ChangePageLandscapeCommand),this.createCommand(ft,E.PageColor,ve.ChangePageColorCommand),this.createCommand(ft,E.GridSize,V.ChangeGridSizeCommand),this.createCommand(ft,E.ShowGrid,ee.ChangeShowGridCommand),this.createCommand(ft,E.SnapToGrid,B.ChangeSnapToGridCommand),this.createCommand(ft,E.ZoomLevel,Q.ChangeZoomLevelCommand),this.createCommand(ft,E.ZoomLevelInPercentage,Q.ChangeZoomLevelInPercentageCommand),this.createCommand(ft,E.AutoLayoutTreeVertical,N.AutoLayoutTreeVerticalCommand),this.createCommand(ft,E.AutoLayoutTreeVerticalBottomToTop,st.AutoLayoutTreeVerticalBottomToTopCommand),this.createCommand(ft,E.AutoLayoutTreeHorizontal,Ae.AutoLayoutTreeHorizontalCommand),this.createCommand(ft,E.AutoLayoutTreeHorizontalRightToLeft,Lt.AutoLayoutTreeHorizontalRightToLeftCommand),this.createCommand(ft,E.AutoLayoutLayeredVertical,Ne.AutoLayoutLayeredVerticalCommand),this.createCommand(ft,E.AutoLayoutLayeredVerticalBottomToTop,ln.AutoLayoutLayeredVerticalBottomToTopCommand),this.createCommand(ft,E.AutoLayoutLayeredHorizontal,oe.AutoLayoutLayeredHorizontalCommand),this.createCommand(ft,E.AutoLayoutLayeredHorizontalRightToLeft,Mn.AutoLayoutLayeredHorizontalRightToLeftCommand),this.createCommand(ft,E.Fullscreen,Ce.ToggleFullscreenCommand,P.KeyCode.F11),this.createCommand(ft,E.ToggleSimpleView,De.ToggleSimpleViewCommand),this.createCommand(ft,E.ToggleReadOnly,ke.ToggleReadOnlyCommand),this.createCommand(ft,E.InsertShapeImage,be.InsertShapeImageCommand),this.createCommand(ft,E.EditShapeImage,Fe.EditShapeImageCommand),this.createCommand(ft,E.DeleteShapeImage,me.DeleteShapeImageCommand),this.createCommand(ft,E.FitToScreen,Q.FitToScreenCommand),this.createCommand(ft,E.FitToWidth,Q.FitToWidthCommand),this.createCommand(ft,E.SwitchAutoZoom,Q.SwitchAutoZoomCommand),this.createCommand(ft,E.ToggleAutoZoom,Q.ToggleAutoZoomCommand),this.createCommand(ft,E.ZoomLevelItems,Q.ChangeZoomLevelItemsCommand),this.createCommand(ft,E.GridSizeItems,V.ChangeGridSizeItemsCommand),this.createCommand(ft,E.PageSizeItems,W.ChangePageSizeItemsCommand),this.createCommand(ft,E.Zoom25,Q.ChangeZoomLevelTo25Command),this.createCommand(ft,E.Zoom50,Q.ChangeZoomLevelTo50Command),this.createCommand(ft,E.Zoom75,Q.ChangeZoomLevelTo75Command),this.createCommand(ft,E.Zoom100,Q.ChangeZoomLevelTo100Command),this.createCommand(ft,E.Zoom125,Q.ChangeZoomLevelTo125Command),this.createCommand(ft,E.Zoom150,Q.ChangeZoomLevelTo150Command),this.createCommand(ft,E.Zoom200,Q.ChangeZoomLevelTo200Command),this.createCommand(ft,E.AutoZoomToContent,Q.ToggleAutoZoomToContentCommand),this.createCommand(ft,E.AutoZoomToWidth,Q.ToggleAutoZoomToWidthCommand),this.createCommand(ft,E.ConnectorRoutingMode,ri.ChangeConnectorRoutingModeCommand)}return Ye.prototype.getCommand=function(ft){return this.commands[ft]},Ye.prototype.beforeExecuting=function(ft){this.executingCommandsChain.push(ft),this.executingCommandCounter++},Ye.prototype.afterExecuting=function(){this.executingCommandCounter--,0===this.executingCommandCounter&&(this.lastCommandsChain=this.executingCommandsChain,this.executingCommandsChain=[])},Ye.prototype.processShortcut=function(ft){var jt=this.shortcutsToCommand[ft];return!!jt&&jt.execute()},Ye.prototype.processPaste=function(ft){var jt=this.getCommand(E.Paste);return jt&&jt.isEnabled()&&jt.execute(ft),!0},Ye.prototype.notifySelectionChanged=function(ft){this.lastCommandsChain=[]},Ye.prototype.notifyScrollPositionChanged=function(){},Ye.prototype.createCommand=function(ft,jt,an){for(var sn=[],Bn=3;Bn<arguments.length;Bn++)sn[Bn-3]=arguments[Bn];this.commands[jt]=new an(ft);for(var xn=0;xn<sn.length;xn++){var ai=sn[xn];"number"==typeof ai&&(this.shortcutsToCommand[ai]=this.commands[jt])}},Ye}();D.CommandManager=lr},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(177),I=w(178),C=function(){function y(){}return y.normalizeToDataUrl=function(g,p){return y.checkPrependDataUrl(g)||(g=y.prependByDataUrl(g,p)),g},y.prependByDataUrl=function(g,p){return"data:"+p+";base64,"+g},y.checkPrependDataUrl=function(g){return y.dataUrl.test(g)},y.deleteDataUrlPrefix=function(g){return g.replace(y.dataUrl,"")},y.getUint8Array=function(g){for(var p=(g=atob(g)).length,d=new Uint8Array(p);p--;)d[p]=g.charCodeAt(p);return d},y.fromArrayBuffer=function(g){for(var p=[],d=new Uint8Array(g),c=d.byteLength,h=0;h<c;h++)p.push(String.fromCharCode(d[h]));return window.btoa(p.join(""))},y.getFileFromBase64=function(g,p,d){void 0===p&&(p="");var c=y.getUint8Array(g);return E.FileUtils.createFile([c],p,d)},y.getMimeTypeAsString=function(g){var p=g.match(y.dataUrl);return p?p[1]:null},y.getKnownMimeType=function(g){var p=g.match(y.dataUrl);return p?I.MimeTypeUtils.stringTypeToType(p[1]):I.DxMimeType.Unknown},y.fromBlobAsArrayBuffer=function(g,p){var d=new FileReader;d.onloadend=function(){return p(y.fromArrayBuffer(d.result))},d.readAsArrayBuffer(g)},y.fromBlobAsDataUrl=function(g,p){var d=new FileReader;d.onloadend=function(){return p(d.result)},d.readAsDataURL(g)},y.dataUrl=/^data:(.*?)(;(.*?))??(;base64)?,/,y}();D.Base64Utils=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.NativeConnector=D.NativeShape=D.NativeItem=void 0;var C=w(4),y=function(){function d(c,h){this.id=c,this.key=h,this.unitsApplied=!1}return d.prototype.applyUnits=function(c){this.unitsApplied||void 0===c||(this.applyUnitsCore(c),this.unitsApplied=!0)},d}();D.NativeItem=y;var g=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.applyUnitsCore=function(h){this.position.x=C.ModelUtils.getlUnitValue(h,this.position.x),this.position.y=C.ModelUtils.getlUnitValue(h,this.position.y),this.size.width=C.ModelUtils.getlUnitValue(h,this.size.width),this.size.height=C.ModelUtils.getlUnitValue(h,this.size.height)},c}(y);D.NativeShape=g;var p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.applyUnitsCore=function(h){this.points.forEach(function(m){m.x=C.ModelUtils.getlUnitValue(h,m.x),m.y=C.ModelUtils.getlUnitValue(h,m.y)})},c}(y);D.NativeConnector=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorRenderPointsContext=void 0,D.ConnectorRenderPointsContext=function(I,C,y){this.renderPoints=I,this.lockCreateRenderPoints=C,this.actualRoutingMode=y}},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ReplaceConnectorPointsHistoryItem=D.ChangeConnectorPointsHistoryItem=D.UpdateConnectorPointsHistoryItem=void 0;var C=function(p){function d(c,h){var m=p.call(this)||this;return m.connectorKey=c,m.newPoints=h,m}return I(d,p),d.prototype.redo=function(c){var h=this,m=c.model.findConnector(this.connectorKey);this.oldRenderContext=m.tryCreateRenderPointsContext(),this.oldPoints=m.points.map(function(v){return v.clone()}),c.changeConnectorPoints(m,function(v){v.points=h.newPoints,h.updateRenderPoints(v)})},d.prototype.undo=function(c){var h=this,m=c.model.findConnector(this.connectorKey);c.changeConnectorPoints(m,function(v){v.points=h.oldPoints,v.replaceRenderPoints(h.oldRenderContext)})},d}(w(8).HistoryItem);D.UpdateConnectorPointsHistoryItem=C;var y=function(p){function d(c,h,m){var v=p.call(this,c,h)||this;return v.connectorKey=c,v.newPoints=h,v.newRenderContext=m,v}return I(d,p),d.prototype.updateRenderPoints=function(c){c.replaceRenderPoints(this.newRenderContext)},d}(C);D.ChangeConnectorPointsHistoryItem=y;var g=function(p){function d(c,h){var m=p.call(this,c,h)||this;return m.connectorKey=c,m.newPoints=h,m}return I(d,p),d.prototype.updateRenderPoints=function(c){c.clearRenderPoints()},d}(C);D.ReplaceConnectorPointsHistoryItem=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(C,y,g,p){this.left=C,this.right=y,this.top=g,this.bottom=p}return I.empty=function(){return new I(0,0,0,0)},Object.defineProperty(I.prototype,"horizontal",{get:function(){return this.left+this.right},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"vertical",{get:function(){return this.top+this.bottom},enumerable:!0,configurable:!0}),I.fromNumber=function(C){return new I(C,C,C,C)},I.fromOffsets=function(C){return new I(C.left,C.right,C.top,C.bottom)},I.fromSide=function(C,y){return new I(C,C,y,y)},I.prototype.normalize=function(){return this.left=Math.max(0,this.left),this.right=Math.max(0,this.right),this.top=Math.max(0,this.top),this.bottom=Math.max(0,this.bottom),this},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.isEmpty=function(){return 0===this.left&&0===this.right&&0===this.top&&0===this.bottom},I.prototype.offset=function(C){return this.left+=C.left,this.right+=C.right,this.top+=C.top,this.bottom+=C.bottom,this},I.prototype.multiply=function(C,y,g,p){switch(arguments.length){case 1:return this.left*=C,this.right*=C,this.top*=C,this.bottom*=C,this;case 2:return this.left*=C,this.right*=C,this.top*=y,this.bottom*=y,this;case 4:return this.left*=C,this.right*=y,this.top*=g,this.bottom*=p,this}return this},I.prototype.clone=function(){return new I(this.left,this.right,this.top,this.bottom)},I.prototype.copyFrom=function(C){this.left=C.left,this.right=C.right,this.top=C.top,this.bottom=C.bottom},I.prototype.equals=function(C){return this.top===C.top&&this.bottom===C.bottom&&this.right===C.right&&this.left===C.left},I.prototype.applyConverter=function(C){return this.left=C(this.left),this.right=C(this.right),this.top=C(this.top),this.bottom=C(this.bottom),this},I}();D.Offsets=E},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeConnectorPropertyHistoryItem=void 0;var C=function(y){function g(p,d,c){var h=y.call(this)||this;return h.connectorKey=p,h.propertyName=d,h.value=c,h}return I(g,y),g.prototype.redo=function(p){var d=p.model.findConnector(this.connectorKey);this.oldValue=d.properties[this.propertyName],p.changeConnectorProperty(d,this.propertyName,this.value)},g.prototype.undo=function(p){var d=p.model.findConnector(this.connectorKey);p.changeConnectorProperty(d,this.propertyName,this.oldValue)},g}(w(8).HistoryItem);D.ChangeConnectorPropertyHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeStyleHistoryItem=void 0;var C=function(y){function g(p,d,c){return y.call(this,p,d,c)||this}return I(g,y),g.prototype.redo=function(p){var d=p.model.findItem(this.itemKey);this.oldStyleValue=d.style[this.styleProperty],p.changeStyle(d,this.styleProperty,this.styleValue)},g.prototype.undo=function(p){var d=p.model.findItem(this.itemKey);p.changeStyle(d,this.styleProperty,this.oldStyleValue)},g}(w(118).ChangeStyleHistoryItemBase);D.ChangeStyleHistoryItem=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.HashSet=void 0;var E=function(){function I(C,y){var g=this;void 0===C&&(C=[]),void 0===y&&(y=function(p){return p.toString()}),this.items=[],this.map={},this.getHashCode=y,C.forEach(function(p){return g.tryPush(p)})}return I.prototype.tryPush=function(C){var y=this.getHashCode(C);return void 0===this.map[y]&&(this.map[y]=this.items.push(C)-1,!0)},I.prototype.contains=function(C){return void 0!==this.map[this.getHashCode(C)]},I.prototype.forEach=function(C){this.items.forEach(C)},I.prototype.filter=function(C){return this.items.filter(C)},I.prototype.list=function(){return this.items.slice(0)},I.prototype.item=function(C){return this.items[C]},I.prototype.first=function(){return this.items[0]},I.prototype.remove=function(C){var y=this.getHashCode(C),g=this.map[y];if("number"!=typeof g)throw"Item not found";delete this.map[y],this.items.splice(g,1);for(var p=g;p<this.items.length;p++)this.map[this.getHashCode(this.items[p])]--},Object.defineProperty(I.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),I}();D.HashSet=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ShapeDescriptionManager=void 0;var E=w(202),I=w(203),C=w(204),y=w(205),g=w(206),p=w(207),d=w(208),c=w(209),h=w(210),m=w(211),v=w(120),b=w(72),x=w(212),O=w(19),k=w(121),M=w(122),A=w(123),F=w(213),P=w(214),N=w(215),B=w(216),V=w(217),H=w(124),W=w(125),q=w(218),G=w(219),J=w(220),ne=w(221),ae=w(222),ge=w(223),pe=w(224),le=w(225),ce=w(226),oe=w(227),K=w(228),Q=w(229),de=w(230),Oe=w(126),Ae=w(232),Ne=w(233),Qe=w(234),$e=w(1),_e=w(236),xe=w(3),ve=w(237),ee=function(){function Ce(){this.descriptions={},this.descriptionTypes={},this.descriptionCategories={},this.onShapeDecriptionChanged=new xe.EventDispatcher,this.register(new k.TextShapeDescription,$e.ShapeCategories.General),this.register(new O.RectangleShapeDescription,$e.ShapeCategories.General),this.register(new b.EllipseShapeDescription,$e.ShapeCategories.General),this.register(new m.CrossShapeDescription,$e.ShapeCategories.General),this.register(new H.TriangleShapeDescription,$e.ShapeCategories.General),this.register(new v.DiamondShapeDescription,$e.ShapeCategories.General),this.register(new x.HeartShapeDescription,$e.ShapeCategories.General),this.register(new M.PentagonShapeDescription,$e.ShapeCategories.General),this.register(new A.HexagonShapeDescription,$e.ShapeCategories.General),this.register(new F.OctagonShapeDescription,$e.ShapeCategories.General),this.register(new P.StarShapeDescription,$e.ShapeCategories.General),this.register(new h.ArrowUpShapeDescription,$e.ShapeCategories.General),this.register(new N.ArrowDownShapeDescription,$e.ShapeCategories.General),this.register(new V.ArrowLeftShapeDescription,$e.ShapeCategories.General),this.register(new c.ArrowRightShapeDescription,$e.ShapeCategories.General),this.register(new d.ArrowUpDownShapeDescription,$e.ShapeCategories.General),this.register(new B.ArrowLeftRightShapeDescription,$e.ShapeCategories.General),this.register(new E.ProcessShapeDescription,$e.ShapeCategories.Flowchart),this.register(new I.DecisionShapeDescription,$e.ShapeCategories.Flowchart),this.register(new g.TerminatorShapeDescription,$e.ShapeCategories.Flowchart),this.register(new p.PredefinedProcessShapeDescription,$e.ShapeCategories.Flowchart),this.register(new W.DocumentShapeDescription,$e.ShapeCategories.Flowchart),this.register(new q.MultipleDocumentsShapeDescription,$e.ShapeCategories.Flowchart),this.register(new C.ManualInputShapeDescription,$e.ShapeCategories.Flowchart),this.register(new G.PreparationShapeDescription,$e.ShapeCategories.Flowchart),this.register(new y.DataShapeDescription,$e.ShapeCategories.Flowchart),this.register(new ne.DatabaseShapeDescription,$e.ShapeCategories.Flowchart),this.register(new J.HardDiskShapeDescription,$e.ShapeCategories.Flowchart),this.register(new ae.InternalStorageShapeDescription,$e.ShapeCategories.Flowchart),this.register(new ge.PaperTapeShapeDescription,$e.ShapeCategories.Flowchart),this.register(new pe.ManualOperationShapeDescription,$e.ShapeCategories.Flowchart),this.register(new le.DelayShapeDescription,$e.ShapeCategories.Flowchart),this.register(new ce.StoredDataShapeDescription,$e.ShapeCategories.Flowchart),this.register(new K.DisplayShapeDescription,$e.ShapeCategories.Flowchart),this.register(new oe.MergeShapeDescription,$e.ShapeCategories.Flowchart),this.register(new _e.ConnectorShapeDescription,$e.ShapeCategories.Flowchart),this.register(new Q.OrShapeDescription,$e.ShapeCategories.Flowchart),this.register(new de.SummingJunctionShapeDescription,$e.ShapeCategories.Flowchart),this.register(new ve.CardWithImageOnLeftDescription,$e.ShapeCategories.OrgChart),this.register(new ve.CardWithImageOnRightDescription,$e.ShapeCategories.OrgChart),this.register(new Qe.CardWithImageOnTopDescription,$e.ShapeCategories.OrgChart),this.register(new Ae.VerticalContainerDescription,$e.ShapeCategories.Containers),this.register(new Ne.HorizontalContainerDescription,$e.ShapeCategories.Containers)}return Object.defineProperty(Ce,"default",{get:function(){return Ce.defaultInstance},enumerable:!1,configurable:!0}),Object.defineProperty(Ce,"defaultContainer",{get:function(){return Ce.defaultContainerInstance},enumerable:!1,configurable:!0}),Ce.prototype.get=function(De){return this.descriptions[De]},Ce.prototype.getTypesByCategory=function(De){return this.descriptionTypes[De]||[]},Ce.prototype.getCategoryByType=function(De){return this.descriptionCategories[De]},Ce.prototype.getCategoryByDescription=function(De){return this.getCategoryByType(De.key)},Ce.prototype.register=function(De,ke,Fe){if(void 0===Fe&&(Fe=De.key),void 0!==this.descriptions[Fe])throw Error("Description key is duplicated");this.descriptions[Fe]=De,this.descriptionTypes[ke]||(this.descriptionTypes[ke]=[]),this.descriptionTypes[ke].push(Fe),this.descriptionCategories[Fe]=ke,De.onChanged.add(this)},Ce.prototype.registerCustomShape=function(De){if(void 0===De.type)throw Error("Custom shape type is not defined");if(void 0!==this.descriptions[De.type])throw Error("Custom shape type is duplicated");var ke=De.baseType&&this.descriptions[De.baseType];De.minWidth>De.maxWidth&&(De.maxWidth=De.minWidth),De.minHeight>De.maxHeight&&(De.maxHeight=De.minHeight),this.register(new Oe.CustomShapeDescription(De,ke),De.category||$e.ShapeCategories.Custom)},Ce.prototype.unregisterCustomShape=function(De){var ke=this.descriptions[De];if(ke instanceof Oe.CustomShapeDescription){ke.onChanged.remove(this);var Fe=this.descriptionCategories[De];delete this.descriptions[De],delete this.descriptionCategories[De];var ze=this.descriptionTypes[Fe].indexOf(De);this.descriptionTypes[Fe].splice(ze,1),0===this.descriptionTypes[Fe].length&&delete this.descriptionTypes[Fe]}},Ce.prototype.unregisterAllCustomShapes=function(){var De=this;Object.keys(this.descriptions).forEach(function(ke){De.unregisterCustomShape(ke)})},Ce.prototype.notifyShapeDescriptionChanged=function(De){this.onShapeDecriptionChanged.raise1(function(ke){return ke.notifyShapeDescriptionChanged(De)})},Ce.defaultInstance=new O.RectangleShapeDescription,Ce.defaultContainerInstance=new Ae.VerticalContainerDescription,Ce}();D.ShapeDescriptionManager=ee},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.ArrowVerticalShapeDescription=D.ArrowVerticalLineWidthParameterName=D.ArrowVerticalTriangleHeightParameterName=void 0;var C=w(7),y=w(2),g=w(37),p=w(9);D.ArrowVerticalTriangleHeightParameterName="th",D.ArrowVerticalLineWidthParameterName="lw";var d=function(c){function h(){return c.call(this,new y.Size(.375*C.ShapeDefaultDimension,C.ShapeDefaultDimension))||this}return I(h,c),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createParameters=function(m){m.addRange([new g.ShapeParameter(D.ArrowVerticalTriangleHeightParameterName,Math.sqrt(Math.pow(this.defaultSize.width,2)-Math.pow(this.defaultSize.width/2,2))),new g.ShapeParameter(D.ArrowVerticalLineWidthParameterName,this.defaultSize.width/3)])},h.prototype.normalizeParameters=function(m,v){this.changeParameterValue(v,D.ArrowVerticalTriangleHeightParameterName,function(b){return Math.max(0,Math.min(m.size.height,b.value))}),this.changeParameterValue(v,D.ArrowVerticalLineWidthParameterName,function(b){return Math.max(0,Math.min(m.size.width,b.value))})},h.prototype.processConnectionPoint=function(m,v){var b=(m.size.width-m.parameters.get(D.ArrowVerticalLineWidthParameterName).value)/2,x=m.getConnectionPointSide(v);x===p.ConnectionPointSide.East?v.x-=b:x===p.ConnectionPointSide.West&&(v.x+=b)},h.prototype.getTextRectangle=function(m){return m.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},h.prototype.getSizeByText=function(m,v){return m.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},h}(C.ShapeDescription);D.ArrowVerticalShapeDescription=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.ArrowHorizontalShapeDescription=D.ArrowVerticalLineHeightParameterName=D.ArrowVerticalTriangleWidthParameterName=void 0;var C=w(7),y=w(2),g=w(37),p=w(9);D.ArrowVerticalTriangleWidthParameterName="tw",D.ArrowVerticalLineHeightParameterName="lh";var d=function(c){function h(){return c.call(this,new y.Size(C.ShapeDefaultDimension,.375*C.ShapeDefaultDimension))||this}return I(h,c),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createParameters=function(m){m.addRange([new g.ShapeParameter(D.ArrowVerticalTriangleWidthParameterName,Math.sqrt(Math.pow(this.defaultSize.height,2)-Math.pow(this.defaultSize.height/2,2))),new g.ShapeParameter(D.ArrowVerticalLineHeightParameterName,this.defaultSize.height/3)])},h.prototype.normalizeParameters=function(m,v){this.changeParameterValue(v,D.ArrowVerticalTriangleWidthParameterName,function(b){return Math.max(0,Math.min(m.size.width,b.value))}),this.changeParameterValue(v,D.ArrowVerticalLineHeightParameterName,function(b){return Math.max(0,Math.min(m.size.height,b.value))})},h.prototype.processConnectionPoint=function(m,v){var b=(m.size.height-m.parameters.get(D.ArrowVerticalLineHeightParameterName).value)/2,x=m.getConnectionPointSide(v);x===p.ConnectionPointSide.North?v.y+=b:x===p.ConnectionPointSide.South&&(v.y-=b)},h.prototype.getTextRectangle=function(m){return m.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},h.prototype.getSizeByText=function(m,v){return m.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},h}(C.ShapeDescription);D.ArrowHorizontalShapeDescription=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.PolygonShapeDescription=void 0;var C=w(7),y=function(g){function p(d){var c=g.call(this,void 0,d)||this;return c.defaultSize.height=c.calculateHeight(C.ShapeDefaultDimension),c}return I(p,g),Object.defineProperty(p.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"angle",{get:function(){return Math.PI*(this.angleCount-2)/this.angleCount},enumerable:!1,configurable:!0}),p}(C.ShapeDescription);D.PolygonShapeDescription=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ImportUtils=void 0;var E=function(){function I(){}return I.parseJSON=function(C){if(!C||""===C)return{};try{return JSON.parse(C)}catch{return{}}},I.createDocument=function(C){return(new DOMParser).parseFromString(C,"application/xml")},I}();D.ImportUtils=E},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeStyleTextPropertyCommand=void 0;var C=w(135),y=w(70),g=w(26),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentTextStylePropertyValue(this.getStyleProperty())},c.prototype.getStyleObj=function(h){return h.styleText},c.prototype.getDefaultStyleObj=function(){return new g.TextStyle},c.prototype.createHistoryItem=function(h,m,v){return new y.ChangeStyleTextHistoryItem(h.key,m,v)},c.prototype.updateInputPosition=function(h){this.control.selection.inputPosition.setTextStylePropertyValue(this.getStyleProperty(),h)},c}(C.ChangeStylePropertyCommandBase);D.ChangeStyleTextPropertyCommand=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(O,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,A){M.__proto__=A}||function(M,A){for(var F in A)A.hasOwnProperty(F)&&(M[F]=A[F])})(O,k)},function(O,k){function M(){this.constructor=O}E(O,k),O.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)});Object.defineProperty(D,"__esModule",{value:!0}),D.TreeLayoutBuilder=void 0;var C=w(138),y=w(252),g=w(71),p=w(3),d=w(0),c=w(139),h=w(38),m=w(9),v=w(20),b=w(54),x=function(O){function k(){var M=null!==O&&O.apply(this,arguments)||this;return M.nodeToLevel={},M.levelDepthSize={},M}return I(k,O),k.prototype.build=function(){var M=this,A=new C.GraphLayout,F=0;return this.graph.getConnectedComponents().forEach(function(P){for(var N=y.Tree.createSpanningTree(P),B=M.processTree(N),V=M.getComponentOffset(B);B.nodeKeys.length<P.nodes.length;){var H=new b.Graph(P.nodes.filter(function(G){return!B.nodeToLayout[G]}).map(function(G){return P.getNode(G)}),P.edges.filter(function(G){return!B.edgeToPosition[G.key]})),W=y.Tree.createSpanningTree(H),q=M.processTree(W);B.extend(M.setComponentOffset(q,V)),V+=M.getComponentOffset(q)}A.extend(M.setComponentOffset(B,F)),F+=M.getComponentOffset(B)}),A},k.prototype.preProcessTree=function(M,A,F){var P=this;if((A=A.filter(function(B){return(void 0===P.nodeToLevel[B.key]?P.nodeToLevel[B.key]=F:-1)>=0})).length){var N=this.getMaxDepthSize(A);this.levelDepthSize[F]=N,this.preProcessTree(M,[].concat.apply([],A.map(function(B){return M.getChildren(B)})),F+1)}},k.prototype.loadNodes=function(M,A,F){return F?M.getChildren(F.info).map(function(P){return A.hasNode(P.key)?void 0:A.addNode(new g.NodeLayout(P,d.Point.zero()))}).filter(function(P){return P}):[A.addNode(new g.NodeLayout(M.root,d.Point.zero()))]},k.prototype.processTree=function(M){var A=this,F=new C.GraphLayout;if(this.preProcessTree(M,[M.root],0),this.processLevel(M,F,0,new p.Range(0),0),this.settings.direction===v.LogicalDirectionKind.Backward){var P=Object.keys(this.levelDepthSize).map(function(B){return A.levelDepthSize[B]}),N=P.reduce(function(B,V){return B+V},0)+(P.length-1)*this.settings.layerSpacing;F.forEachNode(function(B){return A.setDepthPos(B,A.getDepthPos(B)+N)})}return F},k.prototype.processLevel=function(M,A,F,P,N,B){var V,H=this,W=this.addNodes(M,A,N,B),q=B?this.graph.getAdjacentEdges(B.key,h.ConnectionMode.Outgoing):[],G=this.getDirectionValue(this.levelDepthSize[N]),J=this.getDirectionValue(this.settings.layerSpacing);if(W.forEach(function(ge){var pe=p.Range.fromLength(V?V.to+H.settings.columnSpacing:P.from,H.getBreadthNodeSizeCore(ge.info));ge.position=H.getNodePosition(pe.from,F,G).clone().offset(ge.info.margin.left,ge.info.margin.top),H.processLevel(M,A,F+G+J,pe,N+1,ge),H.updateEdgeConnections(A,q,ge),P.extend(pe),V=pe}),B&&W.length){var ne=W[W.length-1],ae=new p.Range(this.getBreadthPos(W[0]),this.getBreadthPos(ne)+this.getBreadthNodeSizeCore(ne.info,!0));this.alignParent(B,ae,P)}},k.prototype.addNodes=function(M,A,F,P){var N=this;return 0===F?[A.addNode(new g.NodeLayout(M.root,d.Point.zero()))]:M.getChildren(P.info).reduce(function(B,V){return N.nodeToLevel[V.key]!==F||A.hasNode(V.key)||B.push(A.addNode(new g.NodeLayout(V,d.Point.zero()))),B},[])},k.prototype.getMaxDepthSize=function(M){var A=this;return M.reduce(function(F,P){return Math.max(F,A.getDepthNodeSizeCore(P))},0)},k.prototype.getNodePosition=function(M,A,F){return this.settings.direction===v.LogicalDirectionKind.Forward?this.settings.orientation===v.DataLayoutOrientation.Vertical?new d.Point(M,A):new d.Point(A,M):this.settings.orientation===v.DataLayoutOrientation.Vertical?new d.Point(M,A+F):new d.Point(A+F,M)},k.prototype.updateEdgeConnections=function(M,A,F){var P=this;A.filter(function(N){return N.to===F.key}).forEach(function(N){var B=P.getBeginEdgeIndex(),V=P.getEndEdgeIndex();M.addEdge(new g.EdgeLayout(N.key,B,V))})},k.prototype.getBeginEdgeIndex=function(){return this.settings.direction===v.LogicalDirectionKind.Forward?this.isVertical()?m.ConnectionPointSide.South:m.ConnectionPointSide.East:this.isVertical()?m.ConnectionPointSide.North:m.ConnectionPointSide.West},k.prototype.getEndEdgeIndex=function(){return this.settings.direction===v.LogicalDirectionKind.Forward?this.isVertical()?m.ConnectionPointSide.North:m.ConnectionPointSide.West:this.isVertical()?m.ConnectionPointSide.South:m.ConnectionPointSide.East},k.prototype.alignParent=function(M,A,F){if(this.settings.alignment===v.Alignment.Center){var P=A.from+A.length/2-this.getBreadthNodeSizeCore(M.info,!0)/2;this.settings.orientation===v.DataLayoutOrientation.Vertical?(M.position.x=Math.max(F.from+M.info.margin.left,P),M.position.x=Math.min(F.to-M.info.size.width-M.info.margin.right,M.position.x)):(M.position.y=Math.max(F.from+M.info.margin.top,P),M.position.y=Math.min(F.to-M.info.size.height-M.info.margin.bottom,M.position.y))}},k.prototype.getDepthPos=function(M){return this.settings.orientation===v.DataLayoutOrientation.Vertical?M.position.y:M.position.x},k.prototype.getBreadthPos=function(M){return this.settings.orientation===v.DataLayoutOrientation.Vertical?M.position.x:M.position.y},k.prototype.setDepthPos=function(M,A){this.settings.orientation===v.DataLayoutOrientation.Vertical?M.position.y=A:M.position.x=A},k.prototype.isVertical=function(){return this.settings.orientation===v.DataLayoutOrientation.Vertical},k}(c.LayoutBuilder);D.TreeLayoutBuilder=x},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(b,x){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,k){O.__proto__=k}||function(O,k){for(var M in k)k.hasOwnProperty(M)&&(O[M]=k[M])})(b,x)},function(b,x){function O(){this.constructor=b}E(b,x),b.prototype=null===x?Object.create(x):(O.prototype=x.prototype,new O)});Object.defineProperty(D,"__esModule",{value:!0}),D.ExportImageCommand=void 0;var C=w(78),y=w(260),g=w(57),p=w(73),d=w(15),c=w(79),h=w(100),m=w(46),v=function(b){function x(O){var k=b.call(this,O)||this;return k.exporter=new p.Exporter,k}return I(x,b),x.prototype.isEnabled=function(){return!m.ImageCache.instance.hasNonLoadedImages()},x.prototype.executeCore=function(O,k){var M=this;try{var A=this.getExportManager();this.getExportFunc()(this.control.model.size.clone(),this.control.model.pageColor,A,function(F){k(F,M.getExtension()),M.tryDispose()},this.control.settings.useCanvgForExportToImage)}catch(F){throw this.tryDispose(),F}return!0},x.prototype.getExportManager=function(){var O=this.getOrCreateMeasurer(),k=this.control.render&&this.control.render.items||this.createItemsManager(O);return this.exportManager||(this.exportManager=new y.CanvasExportManager(k.itemsContainer,O))},x.prototype.createItemsManager=function(O){this.svgElement=d.RenderHelper.createSvgElement(document.body,!0);var k=new C.CanvasItemsManager(this.svgElement,1,new h.ExportDOMManipulator(O));return this.control.modelManipulator.onModelChanged.add(k),this.control.modelManipulator.commitItemsCreateChanges(),k},x.prototype.tryDispose=function(){this.svgElement&&(document.body.removeChild(this.svgElement),delete this.svgElement),this.tempMeasurer&&(this.tempMeasurer.clean(),this.tempMeasurer=void 0),this.exportManager=void 0},x.prototype.getOrCreateMeasurer=function(){return this.control.measurer||(this.tempMeasurer=new c.TextMeasurer(document.body))},x}(g.ExportImportCommandBase);D.ExportImageCommand=v},function(X,D,w){"use strict";var I;Object.defineProperty(D,"__esModule",{value:!0}),D.ItemChange=D.ItemChangeType=void 0,(I=D.ItemChangeType||(D.ItemChangeType={}))[I.Create=0]="Create",I[I.UpdateProperties=1]="UpdateProperties",I[I.UpdateStructure=2]="UpdateStructure",I[I.Update=3]="Update",I[I.Remove=4]="Remove",I[I.UpdateClassName=5]="UpdateClassName";var E=function(){function I(C,y,g){void 0===g&&(g=!0),this.item=C,this.type=y,this.isValid=g}return Object.defineProperty(I.prototype,"key",{get:function(){return this.item.key},enumerable:!1,configurable:!0}),I}();D.ItemChange=E},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ExportDOMManipulator=D.DOMManipulator=void 0;var C=w(61),y=function(){function p(d){this.measurer=d,this.queue=[]}return p.prototype.createElement=function(d,c,h){return d.createElement(function(m){null!=c&&(void 0!==h?c.insertBefore(m,h):c.appendChild(m))})},p.prototype.changeChildrenByPrimitives=function(d,c){var h=this;d.forEach(function(m,v){h.changeByPrimitive(c.childNodes[v],m)})},p.prototype.changeByFunc=function(d,c){this.doChange(d,c)},p.prototype.changeByPrimitive=function(d,c){this.doChange(d,c)},p.prototype.cancelAnimation=function(){void 0!==this.rafId&&(cancelAnimationFrame(this.rafId),this.queue=[])},p.prototype.doChange=function(d,c){C.Diagnostics.optimizeUsingRAF?(this.queue.push([d,c]),this.requestAnimation()):this.doChangeSync(d,c)},p.prototype.doChangeSync=function(d,c){"function"==typeof c?c(d):c.applyElementProperties(d,this.measurer)},p.prototype.requestAnimation=function(){var d=this;if(!this.rafRequested){this.rafRequested=!0;var c=function(){d.queue.splice(0,2e3).forEach(function(h){return d.doChangeSync(h[0],h[1])}),d.queue.length?d.rafId=requestAnimationFrame(c):(d.rafRequested=!1,d.rafId=void 0)};this.rafId=requestAnimationFrame(c)}},p}();D.DOMManipulator=y;var g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.doChange=function(c,h){this.doChangeSync(c,h)},d}(y);D.ExportDOMManipulator=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ClipboardCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.setClipboardData=function(p){this.control.render&&this.control.render.input.setClipboardData(p),g.clipboardData=p},g.prototype.getClipboardData=function(p){this.control.render&&this.isPasteSupportedByBrowser()?this.control.render.input.getClipboardData(p):p(g.clipboardData)},g.prototype.isPasteSupportedByBrowser=function(){return this.control.render&&this.control.render.input.isPasteSupportedByBrowser()},g}(w(10).SimpleCommandBase);D.ClipboardCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeZindexHistoryItem=void 0;var C=function(y){function g(p,d){var c=y.call(this)||this;return c.itemKey=p.key,c.zIndex=d,c}return I(g,y),g.prototype.redo=function(p){var d=p.model.findItem(this.itemKey);this.oldZIndex=d.zIndex,p.changeZIndex(d,this.zIndex)},g.prototype.undo=function(p){var d=p.model.findItem(this.itemKey);p.changeZIndex(d,this.oldZIndex)},g}(w(8).HistoryItem);D.ChangeZindexHistoryItem=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DataLayoutParameters=D.DataLayoutType=void 0;var E,p,I=w(20),C=w(97),y=w(80);(p=E=D.DataLayoutType||(D.DataLayoutType={}))[p.Tree=0]="Tree",p[p.Sugiyama=1]="Sugiyama";var g=function(){function p(d,c){this.sizeSettings=d,c&&(void 0!==c.type&&(this.layoutType=c.type,this.layoutSettings=this.layoutType===E.Sugiyama?new I.LayoutSettings:new I.TreeLayoutSettings),void 0!==c.orientation&&(this.layoutSettings.orientation=c.orientation),this.skipPointIndices=c.skipPointIndices,this.autoSizeEnabled=c.autoSizeEnabled)}return Object.defineProperty(p.prototype,"needAutoLayout",{get:function(){return void 0!==this.layoutType},enumerable:!1,configurable:!0}),p.prototype.getLayoutBuilder=function(d){return this.layoutType===E.Tree?new C.TreeLayoutBuilder(this.layoutSettings,d):new y.SugiyamaLayoutBuilder(this.layoutSettings,d)},p}();D.DataLayoutParameters=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.EditShapeImageCommandBase=void 0;var C=w(146),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.isEnabled=function(){var d=this.getSelectedShape();return g.prototype.isEnabled.call(this)&&!!d&&!d.locked&&d.enableImage&&d.allowEditImage},p.prototype.getValue=function(){var d=this.getSelectedShape();return d?d.image.exportUrl:void 0},p.prototype.getSelectedShape=function(){var d=this.control.selection.getSelectedShapes(!0);return 1===d.length?d[0]:void 0},p.prototype.executeCore=function(d,c){this.control.history.beginTransaction();var h=this.control.selection.getSelectedShapes(!1);return this.control.history.addAndRedo(new C.ChangeShapeImageHistoryItem(h[0],c)),this.control.history.endTransaction(),!0},p}(w(10).SimpleCommandBase);D.EditShapeImageCommandBase=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(165),I=w(166),C=function(){function y(){}return y.remove=function(g,p){var d=g.indexOf(p,0);d>=0&&g.splice(d,1)},y.removeBy=function(g,p){for(var d=g.length,c=0;c<d;c++)if(p(g[c],c))return g.splice(c,1)[0];return null},y.shallowCopy=function(g){return g.slice()},y.deepCopy=function(g){return y.map(g,function(p){return p.clone()})},y.initByValue=function(g,p){for(var d=[];g>0;g--)d.push(p);return d},y.initByCallback=function(g,p){for(var d=[],c=0;c<g;c++)d.push(p(c));return d},y.forEachOnInterval=function(g,p){for(var d=g.end,c=g.start;c<d;c++)p(c)},y.reverseForEachOnInterval=function(g,p){for(var d=g.start,c=g.end-1;c>=d;c--)p(c)},y.reducedMap=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=[],m=d;m<c;m++){var v=p(g[m],m);null!==v&&h.push(v)}return h},y.filter=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=[],m=d;m<c;m++){var v=g[m];p(v,m)&&h.push(v)}return h},y.map=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=[],m=d;m<c;m++)h.push(p(g[m],m));return h},y.indexBy=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=d;h<c;h++)if(p(g[h],h))return h;return-1},y.reverseIndexBy=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);for(var h=d;h>=c;h--)if(p(g[h],h))return h;return-1},y.elementBy=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);var h=y.indexBy(g,p,d,c);return h<0?null:g[h]},y.reverseElementBy=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);var h=y.reverseIndexBy(g,p,d,c);return h<0?null:g[h]},y.last=function(g){return g[g.length-1]},y.setLast=function(g,p){return g[g.length-1]=p},y.incLast=function(g){return++g[g.length-1]},y.decLast=function(g){return--g[g.length-1]},y.equals=function(g,p){return g.length===p.length&&y.allOf2(g,p,function(d,c){return d.equals(c)})},y.equalsByReference=function(g,p){var d=g.length;if(d!==g.length)return!1;for(var c=0;c<d;c++)if(g[c]!==p[c])return!1;return!0},y.unique=function(g,p,d,c){void 0===d&&(d=p),void 0===c&&(c=function(){});var h=g.length;if(0===h)return[];var m=(g=g.sort(p))[0],v=y.reducedMap(g,function(b){return 0!==d(m,b)?(m=b,b):(c(b),null)},1,h);return v.unshift(g[0]),v},y.uniqueNumber=function(g){g=g.sort(I.Comparers.number);for(var p=Number.NaN,d=g.length-1;d>=0;d--)p===g[d]?g.splice(d,1):p=g[d];return g},y.forEach=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=d;h<c;h++)p(g[h],h)},y.forEach2=function(g,p,d,c,h){void 0===c&&(c=0),void 0===h&&(h=g.length);for(var m=c;m<h;m++)d(g[m],p[m],m)},y.reverseForEach=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);for(var h=d;h>=c;h--)p(g[h],h)},y.reverseIndexOf=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);for(var h=d;h>=c;h--)if(g[h]===p)return h;return-1},y.accumulate=function(g,p,d,c,h){void 0===c&&(c=0),void 0===h&&(h=g.length);for(var m=p,v=c;v<h;v++)m=d(m,g[v],v);return m},y.accumulateNumber=function(g,p,d,c,h){void 0===d&&(d=0),void 0===c&&(c=0),void 0===h&&(h=g.length);for(var m=d,v=c;v<h;v++)m+=p(g[v],v,m);return m},y.anyOf=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=d;h<c;h++)if(p(g[h],h))return!0;return!1},y.unsafeAnyOf=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=d;h<c;h++){var m=p(g[h],h);if(m)return m}return null},y.reverseAnyOf=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);for(var h=d;h>=c;h--)if(p(g[h],h))return!0;return!1},y.unsafeReverseAnyOf=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);for(var h=d;h>=c;h--){var m=p(g[h],h);if(m)return m}return null},y.anyOf2=function(g,p,d,c,h){void 0===c&&(c=0),void 0===h&&(h=g.length);for(var m=c;m<h;m++)if(d(g[m],p[m],m))return!0;return!1},y.allOf=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=d;h<c;h++)if(!p(g[h],h))return!1;return!0},y.allOf2=function(g,p,d,c,h){void 0===c&&(c=0),void 0===h&&(h=g.length);for(var m=c;m<h;m++)if(!d(g[m],p[m],m))return!1;return!0},y.allOfOnInterval=function(g,p){for(var d=g.end,c=g.start;c<d;c++)if(!p(c))return!1;return!0},y.addListOnTail=function(g,p){for(var d=0,c=void 0;c=p[d];d++)g.push(c);return g},y.joinLists=function(g){for(var p=[],d=1;d<arguments.length;d++)p[d-1]=arguments[d];return y.accumulate(p,[],function(c,h){return y.addListOnTail(c,g(h)),c})},y.push=function(g,p){return g.push(p),g},y.countIf=function(g,p){return y.accumulateNumber(g,function(d,c){return p(d,c)?1:0})},y.clear=function(g){g.splice(0)},y.merge=function(g,p,d,c,h,m){if(void 0===h&&(h=0),void 0===m&&(m=g.length),g=g.slice(h,m),m-h<2)return g;for(var v=(g=g.sort(p))[h],b=[v],x=h+1;x<m;x++){var O=g[x];d(v,O)?c(v,O):b.push(v=O)}return b},y.min=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);var h=y.minExtended(g,p,d,c);return h?h.minElement:null},y.max=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);var h=y.maxExtended(g,p,d,c);return h?h.maxElement:null},y.minMax=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);var h=y.minMaxExtended(g,p,d,c);return h?new E.MinMax(h.minElement,h.maxElement):null},y.minExtended=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=p(h),v=d+1;v<c;v++){var b=g[v],x=p(b);x<m&&(m=x,h=b)}return new E.ExtendedMin(h,m)},y.maxExtended=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=p(h),v=d+1;v<c;v++){var b=g[v],x=p(b);x>m&&(m=x,h=b)}return new E.ExtendedMax(h,m)},y.minMaxExtended=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=h,v=p(h),b=v,x=d+1;x<c;x++){var O=g[x],k=p(O);k<v?(v=k,h=O):k>b&&(b=k,m=O)}return new E.ExtendedMinMax(h,v,m,b)},y.minByCmp=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=d+1;m<c;m++){var v=g[m];p(v,h)<0&&(h=v)}return h},y.maxByCmp=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=d+1;m<c;m++){var v=g[m];p(v,h)>0&&(h=v)}return h},y.minMaxByCmp=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=h,v=d+1;v<c;v++){var b=g[v],x=p(b,h);x>0?m=b:x<0&&(h=b)}return new E.MinMax(h,m)},y}();D.ListUtils=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(59),I=function(C){function y(g,p){var d=C.call(this)||this;return d.start=g,d.length=p,d}return E.__extends(y,C),Object.defineProperty(y.prototype,"end",{get:function(){return this.start+this.length},set:function(g){this.length=g-this.start},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"center",{get:function(){return this.start+this.length/2},enumerable:!0,configurable:!0}),y.prototype.copyFrom=function(g){this.start=g.start,this.length=g.length},y.prototype.equals=function(g){return g&&this.start===g.start&&this.length===g.length},y.prototype.clone=function(){return new y(this.start,this.length)},y.prototype.makeByStartEnd=function(g,p){return new y(g,p-g)},y.prototype.makeByStartLength=function(g,p){return new y(g,p)},y.prototype.makeByLengthEnd=function(g,p){return new y(p-g,g)},y.fromPositions=function(g,p){return new y(g,p-g)},y.makeByConstInterval=function(g){return new y(g.start,g.length)},y.prototype.expand=function(g){var p=Math.max(g.end,this.end);return this.start=Math.min(g.start,this.start),this.end=p,this},y}(w(167).MutableInterval);D.FixedInterval=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(C){this.sparseIntervals=C,this.intervalIndex=-1}return Object.defineProperty(I.prototype,"isStarted",{get:function(){return!!this.curr},enumerable:!0,configurable:!0}),I.prototype.moveNext=function(){return this.curr&&this.posInInterval+1<this.curr.length?(this.posInInterval++,this.index++,this.initObject(),!0):this.intervalIndex+1<this.sparseIntervals.numIntervals&&(this.intervalIndex++,this.curr=this.sparseIntervals.getInterval(this.intervalIndex),this.curr.length?(this.posInInterval=0,this.index=this.curr.start,this.initObject(),!0):this.moveNext())},I.prototype.movePrev=function(){return this.curr&&this.posInInterval-1>=this.curr.start?(this.posInInterval--,this.index--,this.initObject(),!0):(this.isStarted||(this.intervalIndex=this.sparseIntervals.numIntervals),this.intervalIndex-1>=0&&(this.intervalIndex--,this.curr=this.sparseIntervals.getInterval(this.intervalIndex),this.posInInterval=Math.max(this.curr.length-1,this.curr.start),this.index=this.curr.start,this.initObject(),!0))},I.prototype.initObject=function(){},I}();D.SparseIntervalsIterator=E},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.FilterPrimitive=void 0;var C=w(15),y=function(g){function p(d,c,h,m,v){var b=g.call(this)||this;return b.id=d,b.x=c,b.y=h,b.width=m,b.height=v,b}return I(p,g),p.prototype.createMainElement=function(){var d=document.createElementNS(C.svgNS,"filter");return d.setAttribute("id",this.id),d},p.prototype.applyElementProperties=function(d,c){this.id&&d.setAttribute("id",this.id),this.setUnitAttribute(d,"x",this.x),this.setUnitAttribute(d,"y",this.y),this.setUnitAttribute(d,"width",this.width),this.setUnitAttribute(d,"height",this.height),this.setPositionCorrectionAttribute(d),g.prototype.applyElementProperties.call(this,d,c)},p}(w(24).SvgPrimitive);D.FilterPrimitive=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PrimitiveObject=void 0;var E=w(12),I=function(){function C(y){this.style=y}return Object.defineProperty(C.prototype,"strokeWidthPx",{get:function(){return this.style?this.style.strokeWidthPx:0},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"strokeOffset",{get:function(){return this.style?this.style.strokeOffset:0},enumerable:!1,configurable:!0}),C.prototype.getUnitVaue=function(y){return"number"==typeof y?E.UnitConverter.twipsToPixels(y).toString():y},C.prototype.setUnitAttribute=function(y,g,p){null!=p&&y.setAttribute(g,this.getUnitVaue(p))},C.prototype.setPositionCorrectionAttribute=function(y){y.setAttribute("transform",this.strokeWidthPx%2==1?"translate("+this.strokeOffset+", "+this.strokeOffset+")":"")},C}();D.PrimitiveObject=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.isColorProperty=void 0;var E={stroke:!0,fill:!0};D.isColorProperty=function(I){return E[I]}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorPointsCalculatorBase=void 0,D.ConnectorPointsCalculatorBase=function(I){this.connector=I}},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeShapeParametersHistoryItem=void 0;var C=function(y){function g(p,d){var c=y.call(this)||this;return c.shapeKey=p,c.parameters=d,c}return I(g,y),g.prototype.redo=function(p){var d=p.model.findShape(this.shapeKey);this.oldParameters=d.parameters.clone(),p.changeShapeParameters(d,this.parameters)},g.prototype.undo=function(p){var d=p.model.findShape(this.shapeKey);p.changeShapeParameters(d,this.oldParameters)},g}(w(8).HistoryItem);D.ChangeShapeParametersHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.DeleteConnectorHistoryItem=void 0;var C=function(y){function g(p){var d=y.call(this)||this;return d.connectorKey=p,d}return I(g,y),g.prototype.redo=function(p){var d=p.model.findConnector(this.connectorKey);this.connector=d.clone(),p.deleteConnector(d)},g.prototype.undo=function(p){p.addConnector(this.connector,this.connector.key)},g}(w(8).HistoryItem);D.DeleteConnectorHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.DeleteShapeHistoryItem=void 0;var C=function(y){function g(p,d){void 0===d&&(d=!0);var c=y.call(this)||this;return c.shapeKey=p,c.allowed=d,c}return I(g,y),g.prototype.redo=function(p){var d=p.model.findShape(this.shapeKey);this.shape=d.clone(),p.deleteShape(d,this.allowed)},g.prototype.undo=function(p){p.addShape(this.shape,this.shape.key)},g}(w(8).HistoryItem);D.DeleteShapeHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ResizeShapeHistoryItem=void 0;var C=function(y){function g(p,d,c){var h=y.call(this)||this;return h.shapeKey=p,h.position=d,h.size=c,h}return I(g,y),g.prototype.redo=function(p){var d=p.model.findShape(this.shapeKey);this.oldPosition=d.position.clone(),this.oldSize=d.size.clone(),p.resizeShape(d,this.position,this.size)},g.prototype.undo=function(p){var d=p.model.findShape(this.shapeKey);p.resizeShape(d,this.oldPosition,this.oldSize)},g}(w(8).HistoryItem);D.ResizeShapeHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeCustomDataHistoryItem=void 0;var C=w(8),y=w(3),g=function(p){function d(c,h){var m=p.call(this)||this;return m.itemKey=c,m.customData=y.ObjectUtils.cloneObject(h),m}return I(d,p),d.prototype.redo=function(c){var h=c.model.findItem(this.itemKey);this.oldCustomData=y.ObjectUtils.cloneObject(h.customData),c.changeCustomData(h,this.customData)},d.prototype.undo=function(c){var h=c.model.findItem(this.itemKey);c.changeCustomData(h,this.oldCustomData)},d}(C.HistoryItem);D.ChangeCustomDataHistoryItem=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeLockedHistoryItem=void 0;var C=function(y){function g(p,d){var c=y.call(this)||this;return c.itemKey=p.key,c.locked=d,c}return I(g,y),g.prototype.redo=function(p){var d=p.model.findItem(this.itemKey);this.oldLocked=d.locked,p.changeLocked(d,this.locked)},g.prototype.undo=function(p){var d=p.model.findItem(this.itemKey);p.changeLocked(d,this.oldLocked)},g}(w(8).HistoryItem);D.ChangeLockedHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeStyleHistoryItemBase=void 0;var C=function(y){function g(p,d,c){var h=y.call(this)||this;return h.itemKey=p,h.styleProperty=d,h.styleValue=c,h}return I(g,y),g.prototype.redo=function(p){var d=p.model.findItem(this.itemKey);this.oldStyleValue=d.style[this.styleProperty],p.changeStyle(d,this.styleProperty,this.styleValue)},g.prototype.undo=function(p){var d=p.model.findItem(this.itemKey);p.changeStyle(d,this.styleProperty,this.oldStyleValue)},g}(w(8).HistoryItem);D.ChangeStyleHistoryItemBase=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(O,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,A){M.__proto__=A}||function(M,A){for(var F in A)A.hasOwnProperty(F)&&(M[F]=A[F])})(O,k)},function(O,k){function M(){this.constructor=O}E(O,k),O.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)});Object.defineProperty(D,"__esModule",{value:!0}),D.Importer=void 0;var C=w(14),y=w(3),g=w(2),p=w(0),d=w(91),c=w(6),h=w(51),m=w(133),v=w(95),b=w(22),x=function(O){function k(M,A){var F=O.call(this,M)||this;return F.obj=v.ImportUtils.parseJSON(A),F}return I(k,O),k.prototype.getObject=function(){return this.obj},k.prototype.getPageObject=function(M){return M.page},k.prototype.getShapeObjects=function(M){return M.shapes},k.prototype.getConnectorObjects=function(M){return M.connectors},k.prototype.importPageSettings=function(M,A){A&&(this.assert(A.width,"number"),this.assert(A.height,"number"),"number"==typeof A.width&&(M.size.width=A.width),"number"==typeof A.height&&(M.size.height=A.height),"number"==typeof A.pageColor?M.pageColor=A.pageColor:"string"==typeof A.pageColor&&(M.pageColor=b.ColorUtils.fromString(A.pageColor)),"number"==typeof A.pageWidth&&(M.pageSize.width=A.pageWidth),"number"==typeof A.pageHeight&&(M.pageSize.height=A.pageHeight),"boolean"==typeof A.pageLandscape&&(M.pageLandscape=A.pageLandscape))},k.prototype.importShape=function(M){this.assert(M.key,"string"),this.assert(M.x,"number"),this.assert(M.y,"number"),this.assert(M.type,"string");var F=this.shapeDescriptionManager.get(M.type),P=new p.Point(M.x,M.y),N=new C.Shape(F||d.ShapeDescriptionManager.default,P);return N.key=M.key,"string"!=typeof M.dataKey&&"number"!=typeof M.dataKey||(N.dataKey=M.dataKey),"object"==typeof M.customData&&(N.customData=y.ObjectUtils.cloneObject(M.customData)),"boolean"==typeof M.locked&&(N.locked=M.locked),"number"==typeof M.width&&(N.size.width=M.width),"number"==typeof M.height&&(N.size.height=M.height),"string"==typeof M.text&&(N.text=M.text),"string"==typeof M.imageUrl&&(N.image=new h.ImageInfo(M.imageUrl)),M.parameters&&(N.parameters.fromObject(M.parameters),N.description.normalizeParameters(N,N.parameters)),M.style&&N.style.fromObject(M.style),M.styleText&&N.styleText.fromObject(M.styleText),"number"==typeof M.zIndex&&(N.zIndex=M.zIndex),Array.isArray(M.childKeys)&&(N.childKeys=M.childKeys.slice()),"boolean"==typeof M.expanded&&(N.expanded=M.expanded),"number"==typeof M.expandedWidth&&"number"==typeof M.expandedHeight&&(N.expandedSize=new g.Size(M.expandedWidth,M.expandedHeight)),N},k.prototype.importShapeChildren=function(M,A){return[]},k.prototype.importConnector=function(M){var A=this;if(this.assert(M.key,"string"),!Array.isArray(M.points))throw Error("Invalid Format");var F=M.points.map(function(N){return A.assert(N.x,"number"),A.assert(N.y,"number"),new p.Point(N.x,N.y)}),P=new c.Connector(F);return P.key=M.key,"string"!=typeof M.dataKey&&"number"!=typeof M.dataKey||(P.dataKey=M.dataKey),"object"==typeof M.customData&&(P.customData=y.ObjectUtils.cloneObject(M.customData)),"boolean"==typeof M.locked&&(P.locked=M.locked),P.endConnectionPointIndex="number"==typeof M.endConnectionPointIndex?M.endConnectionPointIndex:-1,P.beginConnectionPointIndex="number"==typeof M.beginConnectionPointIndex?M.beginConnectionPointIndex:-1,void 0!==M.endItemKey&&this.assert(M.endItemKey,"string"),void 0!==M.beginItemKey&&this.assert(M.beginItemKey,"string"),P.endItemKey=M.endItemKey,P.beginItemKey=M.beginItemKey,M.texts&&P.texts.fromObject(M.texts),M.properties&&P.properties.fromObject(M.properties),M.style&&P.style.fromObject(M.style),M.styleText&&P.styleText.fromObject(M.styleText),"number"==typeof M.zIndex&&(P.zIndex=M.zIndex),P},k}(m.ImporterBase);D.Importer=x},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.DiamondShapeDescription=void 0;var C=w(7),y=w(5),g=w(1),p=function(d){function c(h,m){return void 0===h&&(h=C.ShapeDefaultSize.clone()),d.call(this,h,m)||this}return I(c,d),Object.defineProperty(c.prototype,"key",{get:function(){return g.ShapeTypes.Diamond},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),c.prototype.createShapePrimitives=function(h){var m=h.rectangle,v=m.x,x=m.right,O=m.bottom,k=m.center,M=k.x,A=k.y;return[new y.PathPrimitive([new y.PathPrimitiveMoveToCommand(M,m.y),new y.PathPrimitiveLineToCommand(x,A),new y.PathPrimitiveLineToCommand(M,O),new y.PathPrimitiveLineToCommand(v,A),new y.PathPrimitiveClosePathCommand],h.style)]},c.prototype.getTextRectangle=function(h){return h.rectangle.clone().inflate(-h.size.width/4,-h.size.height/4)},c.prototype.getSizeByText=function(h,m){return h.clone().multiply(2,2)},c}(C.ShapeDescription);D.DiamondShapeDescription=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.TextShapeDescription=void 0;var C=w(7),y=w(2),g=w(1),p=w(56),d=w(21),c=w(17),h=function(m){function v(){var b=m.call(this,new y.Size(C.ShapeDefaultDimension,.5*C.ShapeDefaultDimension),!0)||this;return b.textClipPathId=c.RenderUtils.generateSvgElementId("clipRect"),b}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return g.ShapeTypes.Text},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b,x){if(x){var O=b.rectangle,k=O.x,M=O.y,A=O.width,F=O.height;return[new p.ClipPathPrimitive(this.getTextClipPathId(x),[new d.RectanglePrimitive(k,M,A,F)])]}return[]},v.prototype.getTextClipPathId=function(b){return b?this.textClipPathId:void 0},v.prototype.getSizeByTextRectangle=function(b){return b},v.prototype.getSizeByText=function(b,x){return b.clone()},v.prototype.getTextRectangle=function(b){return b.rectangle},v}(C.ShapeDescription);D.TextShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.PentagonShapeDescription=void 0;var C=w(5),y=w(1),g=w(94),p=w(9),d=w(3),c=w(13),h=function(m){function v(b){var x=m.call(this,b)||this;return x.defaultRatio=x.defaultSize.height/x.defaultSize.width,x}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return y.ShapeTypes.Pentagon},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"angleCount",{get:function(){return 5},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,O=x.x,k=x.y,M=x.right,A=x.bottom,F=x.width,P=x.height,N=x.center.x,B=P/F/this.defaultRatio,V=Math.PI-this.angle,H=F/2*Math.tan(V/2)*B,W=k+H,q=(P-H)/Math.tan(V)/B,G=O+q,J=M-q;return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(N,k),new C.PathPrimitiveLineToCommand(M,W),new C.PathPrimitiveLineToCommand(J,A),new C.PathPrimitiveLineToCommand(G,A),new C.PathPrimitiveLineToCommand(O,W),new C.PathPrimitiveClosePathCommand],b.style)]},v.prototype.processConnectionPoint=function(b,x){var O=b.getConnectionPointSide(x);if(O===p.ConnectionPointSide.East||O===p.ConnectionPointSide.West){var k=b.rectangle,A=k.width,F=k.height/A/this.defaultRatio,P=Math.PI-this.angle,N=k.y+A/2*Math.tan(P/2)*F;(O===p.ConnectionPointSide.East||O===p.ConnectionPointSide.West)&&(x.y=N)}},v.prototype.calculateHeight=function(b){var x=Math.PI-this.angle;return b/2*Math.tan(x/2)+b/2/Math.cos(x/2)*Math.sin(x)},v.prototype.getTextRectangle=function(b){var x=d.GeometryUtils.getMaxRectangleEnscribedInEllipse(b.size);return c.Rectangle.fromGeometry(b.position.clone().offset((b.size.width-x.width)/2,(b.size.height-x.height)/2),x)},v.prototype.getSizeByText=function(b,x){return d.GeometryUtils.getEllipseByEnscribedRectangle(b)},v}(g.PolygonShapeDescription);D.PentagonShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.HexagonShapeDescription=void 0;var C=w(5),y=w(1),g=w(94),p=w(3),d=w(13),c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return y.ShapeTypes.Hexagon},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"angleCount",{get:function(){return 6},enumerable:!1,configurable:!0}),m.prototype.createShapePrimitives=function(v){var b=v.rectangle,x=b.x,O=b.y,k=b.right,M=b.bottom,A=b.width,F=b.center.y,P=Math.PI-this.angle,N=A/(1+2*Math.cos(P)),B=x+(A-N)/2,V=B+N;return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(B,O),new C.PathPrimitiveLineToCommand(V,O),new C.PathPrimitiveLineToCommand(k,F),new C.PathPrimitiveLineToCommand(V,M),new C.PathPrimitiveLineToCommand(B,M),new C.PathPrimitiveLineToCommand(x,F),new C.PathPrimitiveClosePathCommand],v.style)]},m.prototype.calculateHeight=function(v){var b=Math.PI-this.angle;return v/(1+2*Math.cos(b))*2*Math.sin(b)},m.prototype.getTextRectangle=function(v){var b=p.GeometryUtils.getMaxRectangleEnscribedInEllipse(v.size);return d.Rectangle.fromGeometry(v.position.clone().offset((v.size.width-b.width)/2,(v.size.height-b.height)/2),b)},m.prototype.getSizeByText=function(v,b){return p.GeometryUtils.getEllipseByEnscribedRectangle(v)},m}(g.PolygonShapeDescription);D.HexagonShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(v,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var k in O)O.hasOwnProperty(k)&&(x[k]=O[k])})(v,b)},function(v,b){function x(){this.constructor=v}E(v,b),v.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Object.defineProperty(D,"__esModule",{value:!0}),D.TriangleShapeDescription=void 0;var C=w(7),y=w(5),g=w(1),p=w(45),d=w(9),c=w(13),h=w(2),m=function(v){function b(x){var O=v.call(this,void 0,x)||this;return O.defaultSize.height=O.calculateHeight(C.ShapeDefaultDimension),O}return I(b,v),Object.defineProperty(b.prototype,"key",{get:function(){return g.ShapeTypes.Triangle},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),b.prototype.createConnectionPoints=function(){return[new p.ConnectionPoint(.5,0,d.ConnectionPointSide.North),new p.ConnectionPoint(.75,.5,d.ConnectionPointSide.East),new p.ConnectionPoint(.5,1,d.ConnectionPointSide.South),new p.ConnectionPoint(.25,.5,d.ConnectionPointSide.West)]},b.prototype.createShapePrimitives=function(x){var O=x.rectangle,k=O.x,A=O.right,F=O.bottom;return[new y.PathPrimitive([new y.PathPrimitiveMoveToCommand(O.center.x,O.y),new y.PathPrimitiveLineToCommand(A,F),new y.PathPrimitiveLineToCommand(k,F),new y.PathPrimitiveClosePathCommand],x.style)]},b.prototype.calculateHeight=function(x){return Math.sqrt(Math.pow(x,2)-Math.pow(x/2,2))},b.prototype.getTextRectangle=function(x){return new c.Rectangle(x.position.x+x.size.width/4,x.position.y+x.size.height/2,x.size.width/2,x.size.height/2-C.ShapeTextPadding).nonNegativeSize()},b.prototype.getSizeByText=function(x,O){return new h.Size(2*x.width,2*x.height+C.ShapeTextPadding)},b}(C.ShapeDescription);D.TriangleShapeDescription=m},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.DocumentShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(9),d=function(c){function h(){return c.call(this,void 0,!0)||this}return I(h,c),Object.defineProperty(h.prototype,"key",{get:function(){return y.ShapeTypes.Document},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(m){return this.createDocumentPrimitives(m.rectangle,m.style)},h.prototype.createDocumentPrimitives=function(m,v){var b=m.x,x=m.y,O=m.right,k=m.bottom,M=m.width,F=m.center.x,P=m.height*h.curveOffsetRatio;return[].concat([new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(b,x),new g.PathPrimitiveLineToCommand(O,x),new g.PathPrimitiveLineToCommand(O,k),new g.PathPrimitiveQuadraticCurveToCommand(O-.25*M,k-2*P,F,k-P),new g.PathPrimitiveQuadraticCurveToCommand(b+.25*M,k+P,b,k-P),new g.PathPrimitiveClosePathCommand],v)])},h.prototype.processConnectionPoint=function(m,v){m.getConnectionPointSide(v)===p.ConnectionPointSide.South&&(v.y-=m.size.height*h.curveOffsetRatio)},h.prototype.getTextRectangle=function(m){var v=m.rectangle;return v.clone().resize(0,-v.height*h.curveOffsetRatio)},h.curveOffsetRatio=.1,h}(C.RectangleShapeDescription);D.DocumentShapeDescription=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(M,A){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,P){F.__proto__=P}||function(F,P){for(var N in P)P.hasOwnProperty(N)&&(F[N]=P[N])})(M,A)},function(M,A){function F(){this.constructor=M}E(M,A),M.prototype=null===A?Object.create(A):(F.prototype=A.prototype,new F)});Object.defineProperty(D,"__esModule",{value:!0}),D.CustomShapeDescription=void 0;var C=w(127),y=w(13),g=w(2),p=w(0),d=w(45),c=w(9),h=w(128),m=w(7),v=w(51),b=w(46),x=w(130),O=w(231),k=function(M){function A(F,P){var N=M.call(this,new g.Size(F.defaultWidth||P&&P.defaultSize.width||m.ShapeDefaultDimension,F.defaultHeight||P&&P.defaultSize.height||m.ShapeDefaultDimension))||this;if(N.properties=F,N.baseDescription=P,N.imageLoader=new x.ImageLoader(N.updateSvgImage.bind(N)),N.defaultText=void 0!==F.defaultText?F.defaultText:P&&P.getDefaultText(),N.defaultImageUrl=F.defaultImageUrl||P&&P.getDefaultImageUrl(),N.title=F.title||P&&P.getTitle()||N.defaultText||"",N.connectionPoints=N.createConnectionPoints(),F.svgUrl){N.svgImage=new v.ImageInfo(F.svgUrl);var B=b.ImageCache.instance.createUnloadedInfoByShapeImageInfo(N.svgImage);N.imageLoader.load(B)}return F.svgToolboxUrl&&(N.svgToolboxImage=new v.ImageInfo(F.svgToolboxUrl),B=b.ImageCache.instance.createUnloadedInfoByShapeImageInfo(N.svgToolboxImage),N.imageLoader.load(B)),N}return I(A,M),Object.defineProperty(A.prototype,"key",{get:function(){return this.properties.type},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"allowEditText",{get:function(){return!1!==this.properties.allowEditText},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"allowEditImage",{get:function(){return this.baseDescription?this.baseDescription.allowEditImage:!0===this.properties.allowEditImage},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"enableChildren",{get:function(){return this.baseDescription&&this.baseDescription.enableChildren},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"hasTemplate",{get:function(){return!!this.properties.createTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"minWidth",{get:function(){return this.properties.minWidth||this.baseDescription&&this.baseDescription.minWidth},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"minHeight",{get:function(){return this.properties.minHeight||this.baseDescription&&this.baseDescription.minHeight},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"maxWidth",{get:function(){return this.properties.maxWidth||this.baseDescription&&this.baseDescription.maxWidth},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"maxHeight",{get:function(){return this.properties.maxHeight||this.baseDescription&&this.baseDescription.maxHeight},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"keepRatioOnAutoSize",{get:function(){return this.properties.keepRatioOnAutoSize},enumerable:!1,configurable:!0}),Object.defineProperty(A.prototype,"toolboxSize",{get:function(){return this.properties.toolboxWidthToHeightRatio?new g.Size(this.defaultSize.width,this.defaultSize.width/this.properties.toolboxWidthToHeightRatio):this.defaultSize},enumerable:!1,configurable:!0}),A.prototype.getTextAngle=function(){return this.baseDescription&&this.baseDescription.getTextAngle()||M.prototype.getTextAngle.call(this)},A.prototype.getTitle=function(){return void 0!==this.title?this.title:M.prototype.getTitle.call(this)},A.prototype.getDefaultText=function(){return void 0!==this.defaultText?this.defaultText:M.prototype.getDefaultText.call(this)},A.prototype.getDefaultImageUrl=function(){return void 0!==this.defaultImageUrl?this.defaultImageUrl:M.prototype.getDefaultImageUrl.call(this)},A.prototype.allowResizeHorizontally=function(F){return!1!==this.properties.allowResize&&(this.baseDescription?this.baseDescription.allowResizeHorizontally(F):M.prototype.allowResizeHorizontally.call(this,F))},A.prototype.allowResizeVertically=function(F){return!1!==this.properties.allowResize&&(this.baseDescription?this.baseDescription.allowResizeVertically(F):M.prototype.allowResizeVertically.call(this,F))},A.prototype.createConnectionPoints=function(){return this.properties&&this.properties.connectionPoints&&this.properties.connectionPoints.length?this.properties.connectionPoints.map(function(F){if(F&&"number"==typeof F.x&&"number"==typeof F.y)return new d.ConnectionPoint(F.x,F.y,"number"==typeof F.side?F.side:c.ConnectionPointSide.Undefined)}).filter(function(F){return F}):M.prototype.createConnectionPoints.call(this)},A.prototype.getConnectionPointSides=function(){for(var F={},P=0;P<this.connectionPoints.length;P++){var N=m.ShapeDescription.getConnectionPointSideByGeometry(this.connectionPoints[P]);F[N]||(F[N]=[]),F[N].push(P)}return F},A.prototype.getConnectionPointIndexForSide=function(F){var P=this.getConnectionPointSides(),N=P[F];if(N){var B=Math.floor(N.length/2);return N.length%2==0&&B--,N[B]}return(N=P[(F+1)%4])?N[0]:(N=P[(F+3)%4])?N[N.length-1]:(N=P[(F+2)%4])?N[0]:F},A.prototype.createImagePrimitives=function(F,P){return this.baseDescription?this.baseDescription.createImagePrimitives(F,P):M.prototype.createImagePrimitives.call(this,F,P)},A.prototype.createShapePrimitives=function(F,P){var N=[],B=F.rectangle,V=B.x,H=B.y,W=B.width,q=B.height;if(this.baseDescription)N=this.baseDescription.createShapePrimitives(F,P);else{var G=P&&this.svgToolboxImage?this.svgToolboxImage:this.svgImage;G&&(N=N.concat([new C.ImagePrimitive(V+(this.properties.svgLeft&&!P?this.properties.svgLeft*W:0),H+(this.properties.svgTop&&!P?this.properties.svgTop*q:0),this.properties.svgWidth&&!P?this.properties.svgWidth*W:W,this.properties.svgHeight&&!P?this.properties.svgHeight*q:q,G.exportUrl)]))}var pe=P&&this.properties.createToolboxTemplate||this.properties.createTemplate;if(pe){var le=V+(this.properties.templateLeft&&!P?this.properties.templateLeft*W:0),ce=H+(this.properties.templateTop&&!P?this.properties.templateTop*q:0),oe=this.properties.templateWidth&&!P?this.properties.templateWidth*W:W,K=this.properties.templateHeight&&!P?this.properties.templateHeight*q:q,Q=this.properties.apiController?this.properties.apiController.createNativeShape(F):F.toNative();N=N.concat([new O.SvgElementPrimitive(le,ce,oe,K,pe,this.properties.destroyTemplate,Q)])}return N},A.prototype.createParameters=function(F){return this.baseDescription?this.baseDescription.createParameters(F):M.prototype.createParameters.call(this,F)},A.prototype.normalizeParameters=function(F,P){this.baseDescription?this.baseDescription.normalizeParameters(F,P):M.prototype.normalizeParameters.call(this,F,P)},A.prototype.modifyParameters=function(F,P,N,B){this.baseDescription?this.baseDescription.modifyParameters(F,P,N,B):M.prototype.modifyParameters.call(this,F,P,N,B)},A.prototype.getParameterPoints=function(F){return this.baseDescription?this.baseDescription.getParameterPoints(F):M.prototype.getParameterPoints.call(this,F)},A.prototype.getTextRectangle=function(F){if(this.baseDescription)return this.baseDescription.getTextRectangle(F);var P=F.rectangle,V=P.width,H=P.height;return new y.Rectangle(P.x+(this.properties.textLeft?this.properties.textLeft*V:0),P.y+(this.properties.textTop?this.properties.textTop*H:0),this.properties.textWidth?this.properties.textWidth*V:V,this.properties.textHeight?this.properties.textHeight*H:H)},A.prototype.getSizeByText=function(F,P){if(this.baseDescription)return this.baseDescription.getSizeByText(F,P);var N=this.properties.textWidth;N||(N=1);var B=this.properties.textHeight;return B||(B=1),new g.Size(F.width/N,F.height/B)},A.prototype.getImageSize=function(F,P,N){return this.baseDescription?this.baseDescription instanceof h.ShapeWithImageDescription?this.baseDescription.getImageSize(F,P,N):g.Size.empty():new g.Size(this.properties.imageWidth?this.properties.imageWidth*F.width:F.width,this.properties.imageHeight?this.properties.imageHeight*F.height:F.height).nonNegativeSize()},A.prototype.getImagePlacementRectangle=function(F,P){if(this.baseDescription)return this.baseDescription instanceof h.ShapeWithImageDescription?this.baseDescription.getImagePlacementRectangle(F,P):y.Rectangle.fromGeometry(p.Point.zero(),g.Size.empty());var V=F.width,H=F.height;return new y.Rectangle(F.x+(this.properties.imageLeft&&!P?this.properties.imageLeft*V:0),F.y+(this.properties.imageTop&&!P?this.properties.imageTop*H:0),this.properties.imageWidth&&!P?this.properties.imageWidth*V:V,this.properties.imageHeight&&!P?this.properties.imageHeight*H:H)},A.prototype.updateSvgImage=function(F){var P=F.imageUrl&&F.imageUrl===this.properties.svgToolboxUrl,N=P?this.svgToolboxImage:this.svgImage;F.base64?N.loadBase64Content(F.base64):N.setUnableToLoadFlag(),P||this.raiseShapeDescriptionChanged(this)},A}(h.ShapeWithImageDescription);D.CustomShapeDescription=k},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.ImagePrimitive=void 0;var C=w(15),y=function(g){function p(d,c,h,m,v,b,x,O){void 0===b&&(b="none");var k=g.call(this,x,O)||this;return k.x=d,k.y=c,k.width=h,k.height=m,k.url=v,k.preserveAspectRatio=b,k}return I(p,g),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"image")},p.prototype.applyElementProperties=function(d,c){this.setUnitAttribute(d,"x",this.x),this.setUnitAttribute(d,"y",this.y),this.setUnitAttribute(d,"width",this.width),this.setUnitAttribute(d,"height",this.height),this.setPositionCorrectionAttribute(d),d.setAttribute("href",this.url),d.setAttribute("preserveAspectRatio",this.preserveAspectRatio),g.prototype.applyElementProperties.call(this,d,c)},p}(w(24).SvgPrimitive);D.ImagePrimitive=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(k,M){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,F){A.__proto__=F}||function(A,F){for(var P in F)F.hasOwnProperty(P)&&(A[P]=F[P])})(k,M)},function(k,M){function A(){this.constructor=k}E(k,M),k.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)});Object.defineProperty(D,"__esModule",{value:!0}),D.ShapeWithImageDescription=D.SHAPE_IMAGE_CLASSNAMES=D.ShapeDefaultSize=D.ShapeDefaultDimension=void 0;var C=w(7),y=w(13),g=w(2),p=w(0),d=w(12),c=w(127),h=w(21),m=w(39),v=w(17),b=w(56),x=w(129);D.ShapeDefaultDimension=1440,D.ShapeDefaultSize=new g.Size(D.ShapeDefaultDimension,D.ShapeDefaultDimension),D.SHAPE_IMAGE_CLASSNAMES={IMAGE:"dxdi-image",IMAGE_PLACEHOLDER:"dxdi-image-placeholder",LOADING_INDICATOR:"dxdi-spinner",USER_PIC:"dxdi-user",WARNING_MARK:"dxdi-warning"};var O=function(k){function M(A,F){void 0===A&&(A=D.ShapeDefaultSize.clone());var P=k.call(this,A,F)||this;return P.hasDefaultText=F,P.defaultIconSize=480,P}return I(M,k),Object.defineProperty(M.prototype,"enableImage",{get:function(){return!0},enumerable:!1,configurable:!0}),M.prototype.getImageMargin=function(A){return d.UnitConverter.pixelsToTwips(A?2:3)},M.prototype.createImagePrimitives=function(A,F){if(!this.enableImage)return[];var P=this.getImagePlacementRectangle(A.rectangle,F);if(F)return this.createImagePlaceholder(P);var N=[];if(N=N.concat(A.image.isEmpty||A.image.unableToLoad?this.createEmptyImagePrimitives(P,A.image.unableToLoad):""===A.image.renderUrl?this.createLoadingImagePrimitives(P):this.createLoadedImagePrimitives(P,A.image.renderUrl)),""===A.image.renderUrl){var B=v.RenderUtils.generateSvgElementId("clipImage");return[].concat([new m.GroupPrimitive(N,D.SHAPE_IMAGE_CLASSNAMES.IMAGE,void 0,B),new b.ClipPathPrimitive(B,[new h.RectanglePrimitive(P.x,P.y,P.width,P.height)])])}return N},M.prototype.createImagePlaceholder=function(A){return[]},M.prototype.createLoadedImagePrimitives=function(A,F){return[new c.ImagePrimitive(A.x,A.y,A.width,A.height,F,M.imageScalingRule,void 0,D.SHAPE_IMAGE_CLASSNAMES.IMAGE)]},M.prototype.createLoadingImagePrimitives=function(A){var F=this.getIconPlacementRectangle(A);return[x.ShapeImageIndicator.createLoadingIndicatorPrimitives(F.x,F.y,this.defaultIconSize,d.UnitConverter.pixelsToTwips(5),D.SHAPE_IMAGE_CLASSNAMES.LOADING_INDICATOR)]},M.prototype.createEmptyImagePrimitives=function(A,F){var P=this.getIconPlacementRectangle(A),N=[];return N=N.concat(this.createEmptyImagePrimitive(P)),F&&(N=N.concat(this.createWarningPrimitive(P))),N},M.prototype.createEmptyImagePrimitive=function(A){return new m.GroupPrimitive([])},M.prototype.createWarningPrimitive=function(A){return new m.GroupPrimitive([])},M.prototype.getIconPlacementRectangle=function(A){var F=y.Rectangle.fromGeometry(new p.Point(A.x,A.y),new g.Size(this.defaultIconSize,this.defaultIconSize));return F.width<A.width&&(F.x=A.x+(A.width-F.width)/2),F.height<A.height&&(F.y=A.y+(A.height-F.height)/2),F},M.imageScalingRule="xMidYMid meet",M}(C.ShapeDescription);D.ShapeWithImageDescription=O},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ShapeImageIndicator=void 0;var E=w(55),I=w(5),C=w(39),y=w(18),g=w(21),p=w(12),d=function(){function c(h,m,v,b,x){this.x=h,this.y=m,this.size=v,this.borderThickness=b,this.className=x,this.animationStarted=!1}return c.createLoadingIndicatorPrimitives=function(h,m,v,b,x){return new c(h,m,v,b,x).createLoadingIndicatorPrimitive()},c.createUserIconPrimitives=function(h,m,v,b,x){return new c(h,m,v,b,x).createUserIconPrimitive()},c.createWarningIconPrimitives=function(h,m,v,b){return new c(h,m,v,void 0,b).createWarningIconPrimitive()},c.prototype.rotate=function(h,m,v,b){if(this.animationStarted){var x="rotate("+Math.round(b)%1080/3+" "+m+" "+v+")";h.setAttribute("transform",x),this.animationRequestId=requestAnimationFrame(function(O){this.rotate(h,m,v,O)}.bind(this))}},c.prototype.onApplyLoadingIndicatorElementProperties=function(h){var m=[p.UnitConverter.twipsToPixelsF(this.x+this.size/2),p.UnitConverter.twipsToPixelsF(this.y+this.size/2)],v=m[0],b=m[1];y.Browser.IE?(this.animationRequestId=requestAnimationFrame(function(x){this.rotate(h,v,b,x)}.bind(this)),this.animationStarted=!0):h.style.setProperty("transform-origin",v+"px "+b+"px")},c.prototype.center=function(){return[p.UnitConverter.twipsToPixelsF(this.x+this.size/2),p.UnitConverter.twipsToPixelsF(this.y+this.size/2)]},c.prototype.createLoadingIndicatorPrimitive=function(){var h=this.center(),m=h[0],v=h[1],b=p.UnitConverter.twipsToPixelsF(this.size/2-this.borderThickness/2);return new C.GroupPrimitive([new E.EllipsePrimitive(m+"",v+"",b+"",b+""),new I.PathPrimitive([new I.PathPrimitiveMoveToCommand(m+b+"",v+""),new I.PathPrimitiveArcToCommand(b+"",b+"",0,!1,!1,m+"",v-b+"")])],this.className,void 0,void 0,this.onApplyLoadingIndicatorElementProperties.bind(this),this.onBeforeDispose.bind(this))},c.prototype.createUserIconPrimitive=function(){var h=this.center(),m=h[0],v=h[1],b=p.UnitConverter.twipsToPixelsF(this.size/2-this.borderThickness/2),x=p.UnitConverter.twipsToPixelsF(this.size);return new C.GroupPrimitive([new E.EllipsePrimitive(m+"",v+"",b+"",b+"",void 0,"dxdi-background"),new E.EllipsePrimitive(m+"",v-x/8+"",x/8+"",x/8+""),new I.PathPrimitive([new I.PathPrimitiveMoveToCommand(m+"",v+x/16+""),new I.PathPrimitiveCubicCurveToCommand(m+.1375*x+"",v+x/16+"",m+x/4+"",v+.11875*x+"",m+x/4+"",v+.1875*x+""),new I.PathPrimitiveLineToCommand(m+x/4+"",v+x/4+""),new I.PathPrimitiveLineToCommand(m-x/4+"",v+x/4+""),new I.PathPrimitiveLineToCommand(m-x/4+"",v+.1875*x+""),new I.PathPrimitiveCubicCurveToCommand(m-x/4+"",v+.11875*x+"",m-.1375*x+"",v+x/16+"",m+"",v+x/16+""),new I.PathPrimitiveClosePathCommand])],this.className)},c.prototype.createWarningIconPrimitive=function(){var h=this.center(),m=h[0],v=h[1],b=p.UnitConverter.twipsToPixelsF(this.size/2)-1,x=p.UnitConverter.twipsToPixelsF(this.size/8);return new C.GroupPrimitive([new E.EllipsePrimitive(m+"",v+"",b+"",b+""),new g.RectanglePrimitive(m-x/2+.5+"",v+b-p.UnitConverter.twipsToPixelsF(this.size/4)+"",x+"",x+""),new g.RectanglePrimitive(m-x/2+.5+"",v-b+p.UnitConverter.twipsToPixelsF(this.size/4)-x+"",x+"",b+"")],this.className)},c.prototype.onBeforeDispose=function(){this.animationRequestId&&cancelAnimationFrame(this.animationRequestId),this.animationStarted=!1},c}();D.ShapeImageIndicator=d},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ImageLoader=void 0;var E=w(46),I=function(){function C(y){this.loadedCallback=y}return C.prototype.load=function(y){y.isLoaded?this.loadedCallback(y):y.isLoading||this.loadInner(y)},C.prototype.loadInner=function(y){var g=this;return y.imageUrl?this.loadPictureByUrl(y,function(){return g.finalizeLoading(y,y)}):y.base64&&this.loadPictureByBase64(y,function(){return g.finalizeLoading(y,y)}),y},C.prototype.finalizeLoading=function(y,g){g||(g=E.ImageCache.instance.getImageData(y.actualId)),g.isLoaded||E.ImageCache.instance.finalizeLoading(g,y),this.loadedCallback(g)},C.prototype.loadPictureByBase64=function(y,g){var p=new Image;p.onload=function(){g(y)},p.src=y.base64},C.prototype.loadPictureByUrl=function(y,g){var p=this,d=new XMLHttpRequest;try{d.onload=function(){var c=new FileReader;c.onloadend=function(){y.base64=c.result,p.loadPictureByBase64(y,function(h){return g(h)})},c.readAsDataURL(d.response)},d.onerror=function(){return g(y)},d.onloadend=function(){404===d.status&&g(y)},d.open("GET",y.imageUrl,!0),d.responseType="blob",y.startLoading(),d.send()}catch{}},C}();D.ImageLoader=I},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(k,M){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,F){A.__proto__=F}||function(A,F){for(var P in F)F.hasOwnProperty(P)&&(A[P]=F[P])})(k,M)},function(k,M){function A(){this.constructor=k}E(k,M),k.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)});Object.defineProperty(D,"__esModule",{value:!0}),D.ContainerDescription=D.CONTAINER_EXPAND_BUTTON_SIGN_RATIO=D.CONTAINER_EXPAND_BUTTON_RECT_RATIO=D.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO=D.CONTAINER_HEADER_SIZE=void 0;var C=w(7),y=w(2),g=w(1),p=w(21),d=w(5),c=w(17),h=w(11),m=w(39),v=w(45),b=w(9),x=w(36);D.CONTAINER_HEADER_SIZE=360,D.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO=.2,D.CONTAINER_EXPAND_BUTTON_RECT_RATIO=.5,D.CONTAINER_EXPAND_BUTTON_SIGN_RATIO=.3;var O=function(k){function M(A){return void 0===A&&(A=new y.Size(2*C.ShapeDefaultDimension,1.5*C.ShapeDefaultDimension)),k.call(this,A,!0)||this}return I(M,k),Object.defineProperty(M.prototype,"enableChildren",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),M.prototype.getDefaultText=function(){return x.DiagramLocalizationService.shapeTexts[g.ShapeTypes.Container]},M.prototype.createConnectionPoints=function(){return[new v.ConnectionPoint(.25,0,b.ConnectionPointSide.North),new v.ConnectionPoint(.5,0,b.ConnectionPointSide.North),new v.ConnectionPoint(.75,0,b.ConnectionPointSide.North),new v.ConnectionPoint(1,.25,b.ConnectionPointSide.East),new v.ConnectionPoint(1,.5,b.ConnectionPointSide.East),new v.ConnectionPoint(1,.75,b.ConnectionPointSide.East),new v.ConnectionPoint(.75,1,b.ConnectionPointSide.South),new v.ConnectionPoint(.5,1,b.ConnectionPointSide.South),new v.ConnectionPoint(.25,1,b.ConnectionPointSide.South),new v.ConnectionPoint(0,.75,b.ConnectionPointSide.West),new v.ConnectionPoint(0,.5,b.ConnectionPointSide.West),new v.ConnectionPoint(0,.25,b.ConnectionPointSide.West)]},M.prototype.getConnectionPointIndexForItem=function(A,F){return 4===(A&&A.getConnectionPoints()).length?3*F+1:F},M.prototype.getConnectionPointIndexForSide=function(A){return 3*A+1},M.prototype.createShapePrimitives=function(A,F){var P=A.rectangle,W=[];return A.expanded&&(W=W.concat([new p.RectanglePrimitive(P.x,P.y,P.width,P.height,A.style)])),W.concat(this.createHeaderPrimitives(A,F))},M.prototype.createExpandButtonPrimitives=function(A,F){var P=[new d.PathPrimitiveMoveToCommand(F.x+F.width*((1-D.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2),F.center.y),new d.PathPrimitiveLineToCommand(F.x+F.width*((1-D.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2+D.CONTAINER_EXPAND_BUTTON_SIGN_RATIO),F.center.y)];A.expanded||(P=P.concat([new d.PathPrimitiveMoveToCommand(F.center.x,F.y+F.height*((1-D.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2)),new d.PathPrimitiveLineToCommand(F.center.x,F.y+F.height*((1-D.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2+D.CONTAINER_EXPAND_BUTTON_SIGN_RATIO))]));var N=F.clone().inflate(-F.width*(1-D.CONTAINER_EXPAND_BUTTON_RECT_RATIO)/2,-F.height*(1-D.CONTAINER_EXPAND_BUTTON_RECT_RATIO)/2);return[new m.GroupPrimitive([new p.RectanglePrimitive(N.x,N.y,N.width,N.height,A.style),new d.PathPrimitive(P,A.style)],"shape-expand-btn",null,null,function(B){c.RenderUtils.setElementEventData(B,h.MouseEventElementType.ShapeExpandButton,A.key)})]},M}(C.ShapeDescription);D.ContainerDescription=O},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(M,A){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,P){F.__proto__=P}||function(F,P){for(var N in P)P.hasOwnProperty(N)&&(F[N]=P[N])})(M,A)},function(M,A){function F(){this.constructor=M}E(M,A),M.prototype=null===A?Object.create(A):(F.prototype=A.prototype,new F)});Object.defineProperty(D,"__esModule",{value:!0}),D.CardBaseDescription=void 0;var C=w(7),y=w(13),g=w(2),p=w(128),d=w(235),c=w(5),h=w(39),m=w(129),v=w(1),b=w(36),x=w(12),O=w(0),k=function(M){function A(F){return void 0===F&&(F=new g.Size(C.ShapeDefaultDimension,26/46*C.ShapeDefaultDimension)),M.call(this,F,!0)||this}return I(A,M),Object.defineProperty(A.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),A.prototype.getDefaultText=function(){return b.DiagramLocalizationService.shapeTexts[v.ShapeTypes.Card]},A.prototype.createShapePrimitives=function(F,P){var N=F.rectangle;return[new d.RoundedRectanglePrimitive(N.x,N.y,N.width,N.height,P?30:60,P?30:60,F.style)]},A.prototype.createImagePlaceholder=function(F){return[new d.RoundedRectanglePrimitive(F.x,F.y,F.width,F.height,x.UnitConverter.pixelsToTwips(2),x.UnitConverter.pixelsToTwips(2),void 0,p.SHAPE_IMAGE_CLASSNAMES.IMAGE_PLACEHOLDER)]},A.prototype.createEmptyImagePrimitive=function(F){return m.ShapeImageIndicator.createUserIconPrimitives(F.x,F.y,this.defaultIconSize,x.UnitConverter.pixelsToTwips(1),p.SHAPE_IMAGE_CLASSNAMES.USER_PIC)},A.prototype.createWarningPrimitive=function(F){return m.ShapeImageIndicator.createWarningIconPrimitives(F.x+this.defaultIconSize/2,F.y+this.defaultIconSize/2,this.defaultIconSize/2,p.SHAPE_IMAGE_CLASSNAMES.WARNING_MARK)},A.prototype.getTextRectangle=function(F){var P=F.rectangle,N=P.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding),B=this.getImageSize(P.createSize(),!0);return this.isTextAfterImage&&N.moveRectangle(this.isHorizontal?B.width:0,this.isHorizontal?0:B.height),N.resize(this.isHorizontal?-B.width:0,this.isHorizontal?0:-B.height),N.nonNegativeSize()},A.prototype.getSizeByText=function(F,P){var N=F.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding),B=this.getImageSizeByTextBlockSize(N);return this.isHorizontal?N.width+=B.width:N.height+=B.height,N},A.prototype.createTextPrimitives=function(F,P){return P?this.createGraphicalTextRepresentation(F.rectangle):M.prototype.createTextPrimitives.call(this,F,P)},A.prototype.createGraphicalTextRepresentation=function(F){var P=new y.Rectangle(0,0,0,0),N=this.getImageSize(F.createSize(),!0,!0);if(this.isHorizontal){var B=this.isTextAfterImage?F.width/2-x.UnitConverter.pixelsToTwips(2):0;P.x=F.x+B+x.UnitConverter.pixelsToTwips(4),P.y=F.y+x.UnitConverter.pixelsToTwips(5),P.width=N.width-x.UnitConverter.pixelsToTwips(4),P.height=F.height-x.UnitConverter.pixelsToTwips(6)}else{var V=this.isTextAfterImage?F.height/2-x.UnitConverter.pixelsToTwips(2):0;P.x=F.x+F.width/4,P.y=F.y+V+x.UnitConverter.pixelsToTwips(4),P.width=F.width/2,P.height=N.height-x.UnitConverter.pixelsToTwips(2)}return this.createTextRepresentationPrimitives(P)},A.prototype.getImagePlacementRectangle=function(F,P){var N=this.getImageSize(F.createSize(),!1,P),B=y.Rectangle.fromGeometry(new O.Point(F.x,F.y),N),V=this.getImageSize(F.createSize(),!0,P);return this.isHorizontal&&this.isTextAfterImage?B.x+=this.getImageMargin(P):this.isHorizontal&&(B.x=F.right-V.width-this.getImageMargin(P)),this.isHorizontal||this.isTextAfterImage?B.y+=this.getImageMargin(P):B.y=F.bottom-V.height-this.getImageMargin(P),this.isHorizontal||(B.x+=(F.width-B.width)/2),B},A.prototype.createTextRepresentationPrimitives=function(F){var P=x.UnitConverter.pixelsToTwips(x.UnitConverter.twipsToPixels(F.height/3));return[new h.GroupPrimitive([new c.PathPrimitive([new c.PathPrimitiveMoveToCommand(F.x,F.y),new c.PathPrimitiveLineToCommand(F.x+F.width,F.y)]),new c.PathPrimitive([new c.PathPrimitiveMoveToCommand(F.x,F.y+P),new c.PathPrimitiveLineToCommand(F.x+F.width,F.y+P)]),new c.PathPrimitive([new c.PathPrimitiveMoveToCommand(F.x,F.y+2*P),new c.PathPrimitiveLineToCommand(F.x+.66*F.width,F.y+2*P)])],"dxdi-shape-text")]},A}(p.ShapeWithImageDescription);D.CardBaseDescription=k},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ImporterBase=void 0;var E=w(62),I=w(14),C=function(){function y(g){this.shapeDescriptionManager=g}return y.prototype.import=function(){var g=new E.DiagramModel,p=this.getObject();this.importPageSettings(g,this.getPageObject(p));for(var d=this.importShapes(this.getShapeObjects(p)),c=0;c<d.length;c++){var h=d[c];if(g.findItem(h.key))throw Error("Item key is duplicated");g.pushItem(h)}var m=this.importConnectors(this.getConnectorObjects(p));for(c=0;c<m.length;c++){var v=m[c];if(v.endItem=g.findItem(v.endItemKey)||void 0,delete v.endItemKey,v.beginItem=g.findItem(v.beginItemKey)||void 0,delete v.beginItemKey,g.findItem(v.key))throw Error("Item key is duplicated");g.pushItem(v),this.updateConnections(v)}return this.updateChildren(g.items,function(b){return g.findItem(b)}),g},y.prototype.importItems=function(g){for(var p,d=[],c=this.getObject(),h={},m=this.importShapes(this.getShapeObjects(c)),v=0;v<m.length;v++){var b=m[v],x=b.key;p=g.getNextKey(),b.key=p,h[x]=b,void 0!==b.dataKey&&(b.dataKey=void 0),d.push(b)}var O=this.importConnectors(this.getConnectorObjects(c));for(v=0;v<O.length;v++){var k=O[v];x=k.key,p=g.getNextKey(),k.key=p,h[x]=k,void 0!==k.dataKey&&(k.dataKey=void 0),k.endItem=h[k.endItemKey],delete k.endItemKey,k.beginItem=h[k.beginItemKey],delete k.beginItemKey,d.push(k),this.updateConnections(k)}return this.updateChildren(d,function(F){return h[F]}),d},y.prototype.importItemsData=function(g){for(var p=this.getObject(),d=this.importShapes(this.getShapeObjects(p)),c={},h=0;h<d.length;h++){var m=d[h],v=void 0;void 0!==m.dataKey&&(v=g.findShapeByDataKey(m.dataKey)),v&&(v.dataKey=m.dataKey,c[m.key]=m.dataKey,v.locked=m.locked,v.position=m.position.clone(),v.expanded=m.expanded,m.expandedSize&&(v.expandedSize=m.expandedSize.clone()),v.size=m.size.clone(),v.parameters=m.parameters.clone(),v.style=m.style.clone(),v.styleText=m.styleText.clone(),v.zIndex=m.zIndex,v.text=m.text,v.description=m.description,v.image=m.image.clone())}var b=this.importConnectors(this.getConnectorObjects(p));for(h=0;h<b.length;h++){var x=b[h],O=void 0;void 0!==x.dataKey&&(O=g.findConnectorByDataKey(x.dataKey)),O||(O=g.findConnectorByBeginEndDataKeys(c[x.beginItemKey],c[x.endItemKey])),O&&(O.dataKey=x.dataKey,O.locked=x.locked,O.points=x.points.slice(),O.properties=x.properties.clone(),O.style=x.style.clone(),O.endConnectionPointIndex=x.endConnectionPointIndex,O.beginConnectionPointIndex=x.beginConnectionPointIndex,O.texts=x.texts.clone(),O.styleText=x.styleText.clone(),O.zIndex=x.zIndex)}},y.prototype.importShapes=function(g){var p=[];if(!g)return p;if(!Array.isArray(g))throw Error("Invalid Format");for(var d=0;d<g.length;d++){var c=g[d],h=this.importShape(c);p.push(h),p=p.concat(this.importShapeChildren(c,h))}return p},y.prototype.importConnectors=function(g){var p=[];if(!g)return p;if(!Array.isArray(g))throw Error("Invalid Format");for(var d=0;d<g.length;d++)p.push(this.importConnector(g[d]));return p},y.prototype.updateChildren=function(g,p){g.forEach(function(d){d instanceof I.Shape&&d.childKeys&&(d.childKeys.forEach(function(c){var h=p(c);h&&(-1===d.children.indexOf(h)&&d.children.push(h),h.container=d)}),delete d.childKeys)})},y.prototype.updateConnections=function(g){g.endItem&&(g.endItem instanceof I.Shape?(g.endItem.attachedConnectors.push(g),g.points[g.points.length-1]=g.endItem.getConnectionPointPosition(g.endConnectionPointIndex,g.points[g.points.length-2])):(g.endItem=void 0,g.endConnectionPointIndex=-1)),g.beginItem&&(g.beginItem instanceof I.Shape?(g.beginItem.attachedConnectors.push(g),g.points[0]=g.beginItem.getConnectionPointPosition(g.beginConnectionPointIndex,g.points[1])):(g.beginItem=void 0,g.beginConnectionPointIndex=-1))},y.prototype.assert=function(g,p){if(void 0===g||void 0!==p&&typeof g!==p)throw Error("Invalid Format")},y}();D.ImporterBase=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.StylePropertyCommandBase=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.lockInputPositionUpdating=function(){return!0},g}(w(10).SimpleCommandBase);D.StylePropertyCommandBase=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeStylePropertyCommandBase=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.executeCore=function(p,d){var c=this;this.control.history.beginTransaction();var h=this.control.selection.getSelectedItems();return d=this.processParameter(d),h.forEach(function(m){var v=c.getStyleProperty();c.control.history.addAndRedo(c.createHistoryItem(m,v,d))}),this.updateInputPosition(d),this.control.history.endTransaction(),!0},g.prototype.getDefaultValue=function(){return this.getDefaultStyleObj()[this.getStyleProperty()]},g.prototype.processParameter=function(p){return p},g}(w(134).StylePropertyCommandBase);D.ChangeStylePropertyCommandBase=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeConnectorPropertyCommand=void 0;var C=w(88),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentConnectorPropertyValue(this.getPropertyName())},p.prototype.getDefaultValue=function(){return this.getPropertyDefaultValue()},p.prototype.executeCore=function(d,c){var h=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedConnectors().forEach(function(m){var v=h.getPropertyName();h.control.history.addAndRedo(new C.ChangeConnectorPropertyHistoryItem(m.key,v,c))}),this.control.selection.inputPosition.setConnectorPropertyValue(this.getPropertyName(),c),this.control.history.endTransaction(),!0},p.prototype.lockInputPositionUpdating=function(){return!0},p.prototype.isEnabled=function(){var d=this.control.selection.getSelectedConnectors();return g.prototype.isEnabled.call(this)&&d.length>0},p}(w(10).SimpleCommandBase);D.ChangeConnectorPropertyCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.AutoLayoutTreeVerticalCommand=void 0;var C=w(76),y=w(97),g=w(20),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.createLayoutSettings=function(){var m=new g.TreeLayoutSettings(this.control.settings.snapToGrid?this.control.settings.gridSize:void 0);return m.orientation=g.DataLayoutOrientation.Vertical,m},c.prototype.createLayout=function(h,m){return new y.TreeLayoutBuilder(h,m).build()},c}(C.AutoLayoutCommandBase);D.AutoLayoutTreeVerticalCommand=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GraphLayout=void 0;var E=w(3),I=w(71),C=function(){function y(){this.nodeKeys=[],this.nodeToLayout={},this.edgeToPosition={}}return y.prototype.forEachNode=function(g){var p=this;this.nodeKeys.forEach(function(d){return g(p.nodeToLayout[d],d)})},y.prototype.reduce=function(g,p){var d=this;return this.nodeKeys.reduce(function(c,h,m){return g(c,d.nodeToLayout[h],m)},p)},y.prototype.addNode=function(g){if(this.nodeToLayout[g.key])throw Error("Node layout is already registered");return this.nodeKeys.push(g.key),this.nodeToLayout[g.key]=g,g},y.prototype.hasNode=function(g){return!!this.nodeToLayout[g]},y.prototype.addEdge=function(g){if(this.edgeToPosition[g.key])throw Error("Edge layout is already registered");this.edgeToPosition[g.key]=g},y.prototype.getRectangle=function(g){var p=this;return E.GeometryUtils.getCommonRectangle(this.nodeKeys.map(function(d){return p.nodeToLayout[d].rectangle}))},y.prototype.offsetNodes=function(g,p){var d=this;void 0===g&&(g=0),void 0===p&&(p=0);var c=new y;return this.nodeKeys.forEach(function(h){var m=d.nodeToLayout[h];c.addNode(new I.NodeLayout(m.info,m.position.clone().offset(g,p)))}),c.copyEdges(this),c},y.prototype.extend=function(g){var p=this;g.forEachNode(function(d){return p.addNode(d)}),this.copyEdges(g)},y.prototype.copyEdges=function(g){var p=this;Object.keys(g.edgeToPosition).forEach(function(d){var c=g.edgeToPosition[d];p.addEdge(new I.EdgeLayout(c.key,c.beginIndex,c.endIndex))})},y}();D.GraphLayout=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.LayoutBuilder=void 0;var E=w(20),I=function(){function C(y,g){this.settings=y,this.graph=g}return C.prototype.getBreadthNodeSizeCore=function(y,g){var p=this.settings.orientation===E.DataLayoutOrientation.Vertical?y.size.width:y.size.height;return g||(p+=this.settings.orientation===E.DataLayoutOrientation.Vertical?y.margin.left+y.margin.right:y.margin.top+y.margin.bottom),p},C.prototype.getDepthNodeSizeCore=function(y){return this.settings.orientation===E.DataLayoutOrientation.Horizontal?y.size.width+y.margin.left+y.margin.right:y.size.height+y.margin.top+y.margin.bottom},C.prototype.chooseDirectionValue=function(y,g){return this.settings.direction===E.LogicalDirectionKind.Forward?y:g},C.prototype.getDirectionValue=function(y){return this.settings.direction===E.LogicalDirectionKind.Forward?y:-y},C.prototype.getComponentOffset=function(y){var g=y.getRectangle(!0);return(this.settings.orientation===E.DataLayoutOrientation.Vertical?g.width:g.height)+this.settings.componentSpacing},C.prototype.setComponentOffset=function(y,g){return this.settings.orientation===E.DataLayoutOrientation.Vertical?y.offsetNodes(g):y.offsetNodes(0,g)},C}();D.LayoutBuilder=I},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.CanvasManager=void 0;var C=w(99),y=function(g){function p(){var d=null!==g&&g.apply(this,arguments)||this;return d.pendingChanges={},d.pendingRemoveChanges={},d.updatesLock=0,d}return I(p,g),p.prototype.beginUpdate=function(){this.updatesLock++},p.prototype.endUpdate=function(){this.updatesLock--,0===this.updatesLock&&this.applyPendingChanges()},p.prototype.getPendingChanges=function(){var d=this;return Object.keys(this.pendingChanges).map(function(c){return d.pendingChanges[c]})},p.prototype.getPendingRemoveChanges=function(){var d=this;return Object.keys(this.pendingRemoveChanges).map(function(c){return d.pendingRemoveChanges[c]})},p.prototype.applyPendingChanges=function(){var d=this.getPendingRemoveChanges();d.length&&(this.applyChangesCore(d),this.pendingRemoveChanges={});var c=this.getPendingChanges();c.length&&(this.applyChangesCore(c),this.pendingChanges={})},p.prototype.applyChangesCore=function(d){var c=this,h=[];d.forEach(function(m){c.applyChange(m)||h.push(m)}),h.length&&h.length!==d.length&&this.applyChangesCore(h)},p.prototype.postponeChanges=function(d){var c=this;d.forEach(function(h){if(h.type===C.ItemChangeType.Remove)c.pendingRemoveChanges[h.key]=h,delete c.pendingChanges[h.key];else if(c.pendingChanges[h.key])h.type===C.ItemChangeType.Create?c.pendingChanges[h.key]=h:h.type===C.ItemChangeType.UpdateStructure?c.pendingChanges[h.key].type===C.ItemChangeType.UpdateProperties&&(c.pendingChanges[h.key]=h):h.type===C.ItemChangeType.UpdateProperties?c.pendingChanges[h.key].type===C.ItemChangeType.Update&&(c.pendingChanges[h.key]=h):h.type===C.ItemChangeType.UpdateClassName&&c.pendingChanges[h.key].type===C.ItemChangeType.UpdateClassName&&(c.pendingChanges[h.key]=h);else{if(c.pendingRemoveChanges[h.key]&&h.type!==C.ItemChangeType.Create)throw new Error("Incorrect model changes sequence.");c.pendingChanges[h.key]=h}})},p.prototype.applyOrPostponeChanges=function(d){0===this.updatesLock?this.applyChangesCore(d):this.postponeChanges(d)},p.prototype.notifyModelChanged=function(d){this.applyOrPostponeChanges(d)},p.prototype.notifyPageColorChanged=function(d){},p.prototype.notifyPageSizeChanged=function(d,c){},p}(w(42).CanvasManagerBase);D.CanvasManager=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(O,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,A){M.__proto__=A}||function(M,A){for(var F in A)A.hasOwnProperty(F)&&(M[F]=A[F])})(O,k)},function(O,k){function M(){this.constructor=O}E(O,k),O.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)});Object.defineProperty(D,"__esModule",{value:!0}),D.PasteSelectionCommandBase=void 0;var C=w(101),y=w(119),g=w(14),p=w(266),d=w(6),c=w(267),h=w(4),m=w(68),v=w(0),b=w(12),x=function(O){function k(){return null!==O&&O.apply(this,arguments)||this}return I(k,O),k.prototype.isEnabled=function(){return O.prototype.isEnabled.call(this)&&(this.isPasteSupportedByBrowser()||void 0!==C.ClipboardCommand.clipboardData)},k.prototype.isVisible=function(){return this.isPasteSupportedByBrowser()||void 0!==C.ClipboardCommand.clipboardData},k.prototype.parseClipboardData=function(M){var A;A=new y.Importer(this.control.shapeDescriptionManager,M).importItems(this.control.model);var F=this.getEventPositionOffset(A,this.control.contextMenuPosition);F=this.getCorrectedOffsetByModel(A,F);for(var P=0;P<A.length;P++){var N=A[P];N instanceof g.Shape?N.position.offsetByPoint(F):N instanceof d.Connector&&N.points.forEach(function(B){return B.offsetByPoint(F)})}return A},k.prototype.getCorrectedOffsetByModel=function(M,A){var F=M.reduce(function(B,V){var H=V instanceof g.Shape?V.position.x:V instanceof d.Connector?V.getMinX():Number.MAX_VALUE,W=V instanceof g.Shape?V.position.y:V instanceof d.Connector?V.getMinY():Number.MAX_VALUE;return(W<B.y||W===B.y&&H<B.x)&&(B.topLeftItem=V,B.x=H,B.y=W),B},{topLeftItem:M[0],x:Number.MAX_VALUE,y:Number.MAX_VALUE}).topLeftItem;if(F instanceof g.Shape){var P=this.getShapeCorrectedPosition(this.control.model,F,A);return new v.Point(P.x-F.position.x,P.y-F.position.y)}if(F instanceof d.Connector){var N=this.getConnectorCorrectedPoints(this.control.model,F,A);return new v.Point(F.points[0].x-N[0].x,F.points[0].y-N[0].y)}},k.prototype.executeCore=function(M,A){var F=this,P=!0;return A?this.performPaste(A):this.getClipboardData(function(N){P=F.execute(N)}),P},k.prototype.addItemForSortingRecursive=function(M,A){if(M[A.key])return M[A.key];if(A instanceof d.Connector)return M[A.key]=A.endItem?this.addItemForSortingRecursive(M,A.endItem)-.5:A.beginItem?this.addItemForSortingRecursive(M,A.beginItem)+.5:-1,M[A.key];if(0===A.attachedConnectors.length)return M[A.key]=0;for(var F=0;F<A.attachedConnectors.length;F++){var P=A.attachedConnectors[F].beginItem;return M[A.key]=A.attachedConnectors[F].endItem===A&&P&&P!==A.attachedConnectors[F].endItem?this.addItemForSortingRecursive(M,P)+1:0}},k.prototype.getSortedPasteItems=function(M){for(var A=[],F=[],P={},N=0;N<M.length;N++){var B=M[N];B instanceof g.Shape?A.push(B):B instanceof d.Connector&&(F.push(B),this.addItemForSortingRecursive(P,B))}return F.sort(function(V,H){return P[H.key]-P[V.key]}),A.concat(F)},k.prototype.performPaste=function(M){this.control.beginUpdateCanvas(),this.control.history.beginTransaction();var A={},F=this.parseClipboardData(M);F=this.getSortedPasteItems(F);for(var P=0;P<F.length;P++){var N=F[P];N instanceof g.Shape?this.control.history.addAndRedo(new p.ImportShapeHistoryItem(N)):N instanceof d.Connector&&this.control.history.addAndRedo(new c.ImportConnectorHistoryItem(N));var B=N.container&&N.container.key;B&&void 0!==A[B]?B&&void 0!==A[B]&&(A[N.key]=!1):A[N.key]=!0}h.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.addAndRedo(new m.SetSelectionHistoryItem(this.control.selection,Object.keys(A).filter(function(V){return A[V]}))),this.control.history.endTransaction(),this.control.endUpdateCanvas(),this.control.barManager.updateItemsState()},k.prototype.getShapeCorrectedPosition=function(M,A,F){for(var P=A.position.clone().offsetByPoint(F);M.findShapeAtPosition(P);)P.offset(k.positionOffset,k.positionOffset);return P},k.prototype.getConnectorCorrectedPoints=function(M,A,F){for(var P=A.points.map(function(N){return N.clone().offsetByPoint(F)});M.findConnectorAtPoints(P);)P.forEach(function(N){N.x+=k.positionOffset,N.y+=k.positionOffset});return P},Object.defineProperty(k.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),k.positionOffset=b.UnitConverter.pixelsToTwips(10),k}(C.ClipboardCommand);D.PasteSelectionCommandBase=x},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.AutoLayoutLayeredHorizontalCommand=void 0;var C=w(76),y=w(80),g=w(20),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.createLayoutSettings=function(){var h=new g.LayoutSettings;return h.orientation=g.DataLayoutOrientation.Horizontal,h},c.prototype.createLayout=function(h,m){return new y.SugiyamaLayoutBuilder(h,m).build()},c}(C.AutoLayoutCommandBase);D.AutoLayoutLayeredHorizontalCommand=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.AutoLayoutTreeHorizontalCommand=void 0;var C=w(76),y=w(97),g=w(20),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.createLayoutSettings=function(){var m=new g.TreeLayoutSettings(this.control.settings.snapToGrid?this.control.settings.gridSize:void 0);return m.orientation=g.DataLayoutOrientation.Horizontal,m},c.prototype.createLayout=function(h,m){return new y.TreeLayoutBuilder(h,m).build()},c}(C.AutoLayoutCommandBase);D.AutoLayoutTreeHorizontalCommand=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.AutoLayoutLayeredVerticalCommand=void 0;var C=w(76),y=w(80),g=w(20),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.createLayoutSettings=function(){var h=new g.LayoutSettings;return h.orientation=g.DataLayoutOrientation.Vertical,h},c.prototype.createLayout=function(h,m){return new y.SugiyamaLayoutBuilder(h,m).build()},c}(C.AutoLayoutCommandBase);D.AutoLayoutLayeredVerticalCommand=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeLockedCommand=void 0;var C=w(4),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.isEnabled=function(){var d=this,c=this.control.selection.getSelectedItems(!0),h=!1;return c.forEach(function(m){m.locked!==d.getLockState()&&(h=!0)}),g.prototype.isEnabled.call(this)&&h},p.prototype.executeCore=function(d,c){return C.ModelUtils.changeSelectionLocked(this.control.history,this.control.model,this.control.selection,this.getLockState()),!0},p}(w(10).SimpleCommandBase);D.ChangeLockedCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeShapeImageHistoryItem=void 0;var C=w(8),y=w(51),g=function(p){function d(c,h){var m=p.call(this)||this;return m.shapeKey=c.key,m.imageUrl=h,m}return I(d,p),d.prototype.redo=function(c){var h=c.model.findShape(this.shapeKey);this.oldImage=h.image,c.changeShapeImage(h,new y.ImageInfo(this.imageUrl))},d.prototype.undo=function(c){var h=c.model.findShape(this.shapeKey);c.changeShapeImage(h,this.oldImage)},d}(C.HistoryItem);D.ChangeShapeImageHistoryItem=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(A,F){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,N){P.__proto__=N}||function(P,N){for(var B in N)N.hasOwnProperty(B)&&(P[B]=N[B])})(A,F)},function(A,F){function P(){this.constructor=A}E(A,F),A.prototype=null===F?Object.create(F):(P.prototype=F.prototype,new P)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerDefaultState=void 0;var C=w(11),y=w(305),g=w(306),p=w(307),d=w(308),c=w(309),h=w(310),m=w(311),v=w(312),b=w(149),x=w(319),O=w(6),k=w(320),M=function(A){function F(){return null!==A&&A.apply(this,arguments)||this}return I(F,A),F.prototype.finish=function(){this.visualizerManager.resetConnectionPoints(),A.prototype.finish.call(this)},F.prototype.onMouseDownCore=function(P){this.handler.canScrollPage(P)?this.startScrolling(P):P.button===C.MouseButton.Left&&P.source.type===C.MouseEventElementType.ConnectorText?(this.handler.changeSingleSelection(P.source.key),this.handler.switchState(new v.MouseHandlerMoveConnectorTextState(this.handler,this.history,this.model))):P.button===C.MouseButton.Left&&P.source.type===C.MouseEventElementType.ShapeResizeBox?this.handler.switchState(new g.MouseHandlerResizeShapeState(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.settings)):P.button===C.MouseButton.Left&&P.source.type===C.MouseEventElementType.ShapeParameterBox?this.handler.switchState(new d.MouseHandlerDragParameterPointState(this.handler,this.history,this.model)):P.button===C.MouseButton.Left&&P.source.type===C.MouseEventElementType.ConnectorPoint?this.handler.switchState(new y.MouseHandlerMoveConnectorPointState(this.handler,this.history,this.model,this.visualizerManager)):P.button===C.MouseButton.Left&&P.source.type===C.MouseEventElementType.ConnectorSide?this.handler.switchState(new p.MouseHandlerMoveConnectorSideState(this.handler,this.history,this.model)):P.button===C.MouseButton.Left&&P.source.type===C.MouseEventElementType.ConnectorOrthogonalSide?this.handler.switchState(new h.MouseHandlerMoveConnectorOrthogonalSideState(this.handler,this.history,this.model)):P.button===C.MouseButton.Left&&P.source.type===C.MouseEventElementType.ShapeConnectionPoint?this.handler.switchState(new c.MouseHandlerCreateConnectorState(this.handler,this.history,this.model,this.visualizerManager,this.shapeDescriptionManager,this.selection)):A.prototype.onMouseDownCore.call(this,P)},F.prototype.onDragDiagramItemOnMouseDown=function(P){this.handler.canAddDiagramItemToSelection(P)?P.source.type===C.MouseEventElementType.Shape?this.handler.switchState(new x.MouseHandlerMoveShapeState(this.handler,this.history,this.model,this.selection,this.visualizerManager)):P.source.type===C.MouseEventElementType.Connector&&this.handler.switchState(new k.MouseHandlerMoveConnectorState(this.handler,this.history,this.model,this.selection,this.visualizerManager)):A.prototype.onDragDiagramItemOnMouseDown.call(this,P)},F.prototype.onDragStart=function(P){this.handler.switchState(new m.MouseHandlerBeforeToolboxDraggingState(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.shapeDescriptionManager)),this.handler.state.onDragStart(P)},F.prototype.onMouseMoveCore=function(P){this.updateConnectionsOnMouseMove(P),A.prototype.onMouseMoveCore.call(this,P)},F.prototype.onMouseUp=function(P){this.handler.canRemoveDiagramItemToSelection(P)?this.handler.removeDiagramItemFromSelection(P.button,P.source.key):A.prototype.onMouseUp.call(this,P)},F.prototype.updateConnectionsOnMouseMove=function(P){var N=this.model.findItem(P.source.key);this.visualizerManager.updateConnections(N,P.source.type,P.source.value)},F.prototype.canDragObjectOnMouseDown=function(P){return!0},F.prototype.canExpandContainerOnMouseDown=function(P){return!0},F.prototype.canClearSelectionOnMouseDown=function(){return!1},F.prototype.canSelectOnMouseUp=function(P){return!1},F.prototype.canClearSelectionOnMouseUp=function(){return!0},F.prototype.onConnectionPointsShow=function(P,N){var B=this,V=this.model.findShape(P);V&&N.forEach(function(H,W){H.allowed=B.handler.canPerformChangeConnectionOnUpdateUI(void 0,{item:V,position:O.ConnectorPosition.Begin,connectionPointIndex:W})})},F}(b.MouseHandlerDefaultStateBase);D.MouseHandlerDefaultState=M},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerMoveConnectorPointStateBase=void 0;var C=w(6),y=w(11),g=w(34),p=w(67),d=w(48),c=w(4),h=function(m){function v(b,x,O,k){var M=m.call(this,b,x)||this;return M.model=O,M.visualizerManager=k,M}return I(v,m),v.prototype.finish=function(){this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),m.prototype.finish.call(this)},v.prototype.onMouseDown=function(b){m.prototype.onMouseDown.call(this,b),this.connector&&this.handler.addInteractingItem(this.connector)},v.prototype.onMouseMove=function(b){if(m.prototype.onMouseMove.call(this,b),this.allowAttachToObjects(b,!1,!1)){if(this.connector){var x=this.connector.getExtremeItem(this.pointPosition);this.visualizerManager.setConnectionTarget(x,b.source.type);var O=this.connector.getExtremeConnectionPointIndex(this.pointPosition);(x||-1===this.oppositeConnectionPointIndex)&&this.allowAttachToObjects(b,!0,!1)||(x=this.model.findItem(b.source.key)),this.visualizerManager.setConnectionPoints(x,b.source.type,O,!0)}}else this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints()},v.prototype.onApplyChanges=function(b){var x=this.getSnappedPoint(b,b.modelPoint);if(void 0!==this.pointPosition){void 0===this.oppositePointPosition&&(this.oppositePointPosition=this.getOppositePointPosition(),this.oppositeItem=this.connector.getExtremeItem(this.oppositePointPosition),this.oppositeConnectionPointIndex=this.connector.getExtremeConnectionPointIndex(this.oppositePointPosition)),this.targetItem=this.model.findItem(b.source.key);var O=this.allowAttachToObjects(b,!0,!0)?this.targetItem:void 0,k=-1;b.source.type===y.MouseEventElementType.ShapeConnectionPoint&&(k=parseInt(b.source.value)),!O||b.source.type!==y.MouseEventElementType.Shape&&b.source.type!==y.MouseEventElementType.ShapeConnectionPoint||this.connector.getExtremeItem(this.oppositePointPosition)===O&&(-1===k||-1===this.oppositeConnectionPointIndex||k===this.oppositeConnectionPointIndex)?this.connector.getExtremeItem(this.pointPosition)&&(this.history.addAndRedo(new p.DeleteConnectionHistoryItem(this.connector,this.pointPosition)),this.oppositeItem&&this.updateOppositeItemConnectionPointIndex(this.oppositeConnectionPointIndex)):(this.connector.getExtremeItem(this.pointPosition)===O&&this.connector.getExtremeConnectionPointIndex(this.pointPosition)===k||(this.connector.getExtremeItem(this.pointPosition)&&this.history.addAndRedo(new p.DeleteConnectionHistoryItem(this.connector,this.pointPosition)),this.history.addAndRedo(new d.AddConnectionHistoryItem(this.connector,O,k,this.pointPosition)),this.oppositeItem&&this.updateOppositeItemConnectionPointIndex(k)),x=O.getConnectionPointPosition(k,this.connector.points[this.pointIndex+(this.pointPosition===C.ConnectorPosition.End?-1:1)]),this.visualizerManager.setConnectionPointIndex(k))}c.ModelUtils.moveConnectorPoint(this.history,this.connector,this.pointIndex,x),c.ModelUtils.updateConnectorAttachedPoints(this.history,this.model,this.connector),this.handler.tryUpdateModelSize()},v.prototype.updateOppositeItemConnectionPointIndex=function(b){var x=-1===b?-1:this.oppositeConnectionPointIndex;x!==this.connector.getExtremeConnectionPointIndex(this.oppositePointPosition)&&(this.history.addAndRedo(new p.DeleteConnectionHistoryItem(this.connector,this.oppositePointPosition)),this.history.addAndRedo(new d.AddConnectionHistoryItem(this.connector,this.oppositeItem,x,this.oppositePointPosition)))},v.prototype.onFinishWithChanges=function(){c.ModelUtils.updateConnectorContainer(this.history,this.model,this.connector),c.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),this.handler.tryUpdateModelSize()},v.prototype.getDraggingElementKeys=function(){return this.connector?[this.connector.key]:[]},v.prototype.getOppositePointPosition=function(){return this.pointPosition===C.ConnectorPosition.Begin?C.ConnectorPosition.End:C.ConnectorPosition.Begin},v.prototype.allowAttachToObjects=function(b,x,O){if(this.handler.canMultipleSelection(b))return!1;var k=this.connector;if(k&&b.source.type===y.MouseEventElementType.Shape){var M=this.model.findItem(b.source.key);if(x&&this.model.findItemContainerCore(k,function(A){return A===M})||x&&this.oppositeItem&&this.model.findItemContainerCore(this.oppositeItem,function(A){return A===M})||O&&this.oppositeItem===M&&-1===this.oppositeConnectionPointIndex)return!1}return!0},v.prototype.onConnectionPointsShow=function(b,x){var O=this;if(this.connector&&void 0!==this.pointPosition&&(this.connector.endItem&&this.connector.endItem.key===b||this.connector.beginItem&&this.connector.beginItem.key===b)){var k=this.connector.beginItem&&this.connector.beginItem.key===b?C.ConnectorPosition.Begin:C.ConnectorPosition.End;x.forEach(function(M,A){M.allowed=O.handler.canPerformChangeConnectionOnUpdateUI(O.connector,{item:O.connector.getExtremeItem(k),position:k,connectionPointIndex:A})})}},v.prototype.onConnectionTargetShow=function(b,x){if(this.connector&&void 0!==this.pointPosition&&(this.connector.endItem&&this.connector.endItem.key===b||this.connector.beginItem&&this.connector.beginItem.key===b)){var O=this.connector.beginItem&&this.connector.beginItem.key===b?C.ConnectorPosition.Begin:C.ConnectorPosition.End;x.allowed=this.handler.canPerformChangeConnectionOnUpdateUI(this.connector,{item:this.connector.getExtremeItem(O),position:O,connectionPointIndex:-1})}},v}(g.MouseHandlerDraggingState);D.MouseHandlerMoveConnectorPointStateBase=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(b,x){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,k){O.__proto__=k}||function(O,k){for(var M in k)k.hasOwnProperty(M)&&(O[M]=k[M])})(b,x)},function(b,x){function O(){this.constructor=b}E(b,x),b.prototype=null===x?Object.create(x):(O.prototype=x.prototype,new O)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerDefaultStateBase=void 0;var C=w(40),y=w(11),g=w(314),p=w(316),d=w(317),c=w(150),h=w(12),m=w(318),v=function(b){function x(O,k,M,A,F,P,N,B){var V=b.call(this,O)||this;return V.history=k,V.selection=M,V.model=A,V.view=F,V.visualizerManager=P,V.shapeDescriptionManager=N,V.settings=B,V}return I(x,b),x.prototype.onKeyDown=function(O){this.handler.onStartScrollPageByKeyboard(O)},x.prototype.onKeyUp=function(O){this.handler.onFinishScrollPageByKeyboard(O)},x.prototype.onMouseDown=function(O){this.handler.canFinishTextEditing()&&(this.onMouseDownCore(O),this.handler.state!==this&&this.handler.state.onMouseDown(O))},x.prototype.onMouseDownCore=function(O){this.handler.canScrollPage(O)?this.startScrolling(O):this.hasDiagramItem(O)&&this.canDragObjectOnMouseDown(O.source.key)?this.onDragDiagramItemOnMouseDown(O):O.button===y.MouseButton.Left&&O.source.type===y.MouseEventElementType.ShapeExpandButton&&this.canExpandContainerOnMouseDown(O.source.key)?this.onShapeExpandBtnMouseDown(O):(!this.hasDiagramItem(O)&&this.canClearSelectionOnMouseDown()&&this.clearSelection(),this.startPoint=O.modelPoint)},x.prototype.onDragDiagramItemOnMouseDown=function(O){this.replaceSelection(O)},x.prototype.onMouseMove=function(O){this.onMouseMoveCore(O),this.handler.state!==this&&(this.handler.state.onMouseDown(this.handler.mouseDownEvent),this.handler.state.onMouseMove(O))},x.prototype.onMouseMoveCore=function(O){this.startPoint&&(Math.abs(this.startPoint.x-O.modelPoint.x)>x.startLimit||Math.abs(this.startPoint.y-O.modelPoint.y)>x.startLimit)&&(this.processOnMouseMoveAfterLimit(O),this.startPoint=void 0)},x.prototype.processOnMouseMoveAfterLimit=function(O){O.isTouchMode?O.touches.length>1?this.startZooming(O):this.startScrolling(O):this.startSelection(O)},x.prototype.onMouseUp=function(O){this.onMouseUpCore(O),this.handler.state!==this&&this.handler.state.onMouseUp(O)},x.prototype.onMouseUpCore=function(O){O.source.type===y.MouseEventElementType.Shape&&this.canSelectOnMouseUp(O.source.key)||O.source.type===y.MouseEventElementType.Connector&&this.canSelectOnMouseUp(O.source.key)||O.source.type===y.MouseEventElementType.ShapeExpandButton&&this.canSelectOnMouseUp(O.source.key)?this.replaceSelection(O):this.startPoint&&this.canClearSelectionOnMouseUp()&&this.clearSelection(),this.startPoint=void 0},x.prototype.onMouseWheel=function(O){return!!this.handler.canStartZoomOnWheel(O)&&(this.handler.switchState(new d.MouseHandlerZoomOnWheelState(this.handler,this.settings,this.view)),this.handler.state.onMouseWheel(O),!0)},x.prototype.onLongTouch=function(O){this.replaceMultipleSelection(O.source.key)},x.prototype.finish=function(){this.startPoint=void 0},x.prototype.startSelection=function(O){O.button===y.MouseButton.Left&&this.handler.switchState(new p.MouseHandlerSelectionState(this.handler,this.selection,this.visualizerManager))},x.prototype.startScrolling=function(O){O.button===y.MouseButton.Left&&(this.handler.raiseDragScrollStart(),this.handler.switchState(new c.MouseHandlerScrollingState(this.handler,this.view,this.selection)))},x.prototype.startZooming=function(O){this.handler.switchState(new m.MouseHandlerZoomOnPinchState(this.handler,this.selection,this.settings,this.view))},x.prototype.inSelection=function(O){return this.selection.hasKey(O)},x.prototype.hasDiagramItem=function(O){return O.source.type===y.MouseEventElementType.Shape||O.source.type===y.MouseEventElementType.Connector},x.prototype.onShapeExpandBtnMouseDown=function(O){this.handler.addDiagramItemToSelection(O),this.handler.switchState(new g.MouseHandlerToggleShapeExpandedState(this.handler,this.history,this.model,this.selection))},x.prototype.replaceSelection=function(O){this.handler.canMultipleSelection(O)?this.replaceMultipleSelection(O.source.key):this.handler.changeSingleSelection(O.source.key)},x.prototype.replaceMultipleSelection=function(O){this.selection.hasKey(O)?this.selection.remove(O):this.selection.add(O)},x.prototype.clearSelection=function(){this.selection.set([])},x.startLimit=h.UnitConverter.pixelsToTwips(1),x}(C.MouseHandlerStateBase);D.MouseHandlerDefaultStateBase=v},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerScrollingState=void 0;var C=w(40),y=w(11),g=w(0),p=function(d){function c(h,m,v){var b=d.call(this,h)||this;return b.view=m,b.selection=v,b.lastOffset=new g.Point(0,0),b}return I(c,d),c.prototype.onKeyUp=function(h){this.handler.onFinishScrollPageByKeyboard(h)},c.prototype.onMouseDown=function(h){h.preventDefault=!0,this.startPoint=this.getPointByEvent(h)},c.prototype.onMouseMove=function(h){if(h.button===y.MouseButton.Left){var m=this.currentPoint||this.startPoint;h.preventDefault=!0;var v=this.getPointByEvent(h),b=this.view.scrollBy(new g.Point(v.x-m.x,v.y-m.y));this.lastOffset=this.lastOffset.clone().offset(b.x,b.y),this.currentPoint=v}else this.handler.onFinishScrollPageByMouse(h)},c.prototype.onMouseUp=function(h){h.button===y.MouseButton.Left&&this.handler.onFinishScrollPageByMouse(h),this.handler.switchToDefaultState()},c.prototype.cancelChanges=function(){this.currentPoint&&this.view.scrollBy(this.lastOffset.clone().multiply(-1,-1))},c.prototype.finish=function(){this.currentPoint&&this.startPoint&&!this.currentPoint.equals(this.startPoint)||this.selection.set([]),d.prototype.finish.call(this)},c.prototype.getPointByEvent=function(h){return h.offsetPoint},c}(C.MouseHandlerCancellableState);D.MouseHandlerScrollingState=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(O,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,A){M.__proto__=A}||function(M,A){for(var F in A)A.hasOwnProperty(F)&&(M[F]=A[F])})(O,k)},function(O,k){function M(){this.constructor=O}E(O,k),O.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerDragDiagramItemStateBase=D.DraggingConnector=void 0;var C=w(60),y=w(86),g=w(29),p=w(85),d=w(4),c=w(16),h=w(11),m=w(34),v=function(O){this.connector=O,this.startPoints=O.points.map(function(k){return k.clone()}),this.startRenderContext=O.tryCreateRenderPointsContext()};D.DraggingConnector=v;var b=function(O){this.shape=O,this.startPosition=O.position.clone()},x=function(O){function k(M,A,F,P,N){var B=O.call(this,M,A)||this;return B.model=F,B.selection=P,B.visualizerManager=N,B.startScrollLeft=0,B.startScrollTop=0,B}return I(k,O),k.prototype.finish=function(){this.visualizerManager.resetExtensionLines(),this.visualizerManager.resetContainerTarget(),this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),O.prototype.finish.call(this)},k.prototype.onMouseDown=function(M){var A=this;this.handler.addDiagramItemToSelection(M),this.shouldClone=this.handler.canCopySelectedItems(M),this.startPoint=M.modelPoint,this.initDrag(),this.lockInitDrag=!1,this.shouldClone||this.draggingShapes.forEach(function(F){return A.handler.addInteractingItem(F.shape,c.DiagramModelOperation.MoveShape)}),O.prototype.onMouseDown.call(this,M)},k.prototype.onMouseMove=function(M){this.mouseMoveEvent=M,M.button!==h.MouseButton.Left&&(this.cancelChanges(),this.handler.switchToDefaultState()),this.canApplyChangesOnMouseMove(this.startPoint,M.modelPoint)&&(this.handler.canCopySelectedItems(M)&&(this.lockInitDrag||(this.cancelChanges(),this.shouldClone=!0,this.copySelection(),this.initDrag(),this.lockInitDrag=!0)),this.onApplyChanges(M),this.onAfterApplyChanges(),this.updateContainers(M))},k.prototype.updateContainers=function(M){this.visualizerManager.setExtensionLines(this.selection.getSelectedShapes(!1,!0));var A=d.ModelUtils.findContainerByEventKey(this.model,this.selection,M.source.key);A&&this.allowInsertToContainer(M,A)?this.visualizerManager.setContainerTarget(A,M.source.type):this.visualizerManager.resetContainerTarget()},k.prototype.onMouseUp=function(M){O.prototype.onMouseUp.call(this,M),this.handler.canRemoveDiagramItemToSelection(M)&&this.handler.canMultipleSelection(M)&&this.handler.removeDiagramItemFromSelection(M.button,M.source.key)},k.prototype.onApplyChanges=function(M){var A=this;if(this.calculateFixedPosition(M),this.draggingShapes.length){var F=this.draggingShapes.map(function(V){return V.shape});this.draggingShapes.forEach(function(V){for(var H=V.shape;H.container;){if(-1!==F.indexOf(H.container))return!1;H=H.container}A.moveShape(V,M)});var P=this.draggingShapes[0],N=C.Vector.fromPoints(P.startPosition.clone(),P.shape.position.clone());(N.x||N.y)&&this.draggingConnectors.forEach(function(V){return A.moveConnectorCore(V.connector,V.startPoints,V.startRenderContext,N)})}else this.draggingConnectors.forEach(function(V){return A.moveConnector(V,M)});var B=d.ModelUtils.findContainerByEventKey(this.model,this.selection,M.source.key);B&&this.allowInsertToContainer(M,B)?d.ModelUtils.insertSelectionToContainer(this.history,this.model,this.selection,B):d.ModelUtils.removeSelectionFromContainer(this.history,this.model,this.selection),this.handler.tryUpdateModelSize(function(V,H){A.modelConnectorsWithoutBeginItemInfo.forEach(function(W){W.point.x+=V,W.point.y+=H}),A.modelConnectorsWithoutEndItemInfo.forEach(function(W){W.point.x+=V,W.point.y+=H})})},k.prototype.getDraggingElementKeys=function(){return this.draggingShapes.map(function(M){return M.shape.key}).concat(this.draggingConnectors.map(function(M){return M.connector.key}))},k.prototype.getSnappedPoint=function(M,A){return this.handler.getSnappedPointOnDragDiagramItem(M,A,this.fixedX,this.fixedY,this.startPoint)},k.prototype.initDrag=function(){this.selectedItems=d.ModelUtils.createSelectedItems(this.selection),this.initDraggingShapes(),this.areValidDraggingShapes?(this.initDraggingConnectors(),this.areValidDraggingConnectors?(this.modelConnectorsWithoutBeginItemInfo=this.createModelConnectorsWithoutBeginItemInfo(),this.modelConnectorsWithoutEndItemInfo=this.createModelConnectorsWithoutEndItemInfo()):this.handler.switchToDefaultState()):this.handler.switchToDefaultState()},k.prototype.initDraggingShapes=function(){this.draggingShapes=this.selection.getSelectedShapes(!1,!0).map(function(M){return new b(M)})},k.prototype.initDraggingConnectors=function(){var M=this;this.draggingConnectors=[],this.draggingConnectorsIndexByKey={},this.selection.getSelectedConnectors(!1,!0).forEach(function(A){return M.registerConnector(A)}),this.shouldClone||this.draggingShapes.forEach(function(A){var F=A.shape.attachedConnectors;F&&F.forEach(function(P){M.containsDraggingConnectorByKey(P.key)||M.registerConnector(P)})})},k.prototype.copySelection=function(){var M=this;d.ModelUtils.cloneSelectionToOffset(this.history,this.model,function(A){var F=M.model.findItem(A);F&&M.handler.addInteractingItem(F,c.DiagramModelOperation.AddShape)},this.selection,0,0)},k.prototype.calculateFixedPosition=function(M){this.fixedX=!1,this.fixedY=!1,this.handler.canCalculateFixedPosition(M)&&(Math.abs(this.startPoint.x-M.modelPoint.x)<Math.abs(this.startPoint.y-M.modelPoint.y)?this.fixedX=!0:this.fixedY=!0)},k.prototype.containsDraggingConnectorByKey=function(M){return void 0!==this.draggingConnectorsIndexByKey[M]},k.prototype.allowInsertToContainer=function(M,A){return!this.handler.canMultipleSelection(M)&&A&&A.expanded&&d.ModelUtils.canInsertSelectionToContainer(this.model,this.selection,A)},k.prototype.registerConnector=function(M){this.draggingConnectorsIndexByKey[M.key]=this.draggingConnectors.push(new v(M))-1},k.prototype.createModelConnectorsWithoutBeginItemInfo=function(){var M=this;return this.model.findConnectorsCore(function(A){return!A.beginItem&&!M.containsDraggingConnectorByKey(A.key)}).map(function(A){return{connector:A,point:A.points[0].clone()}})},k.prototype.createModelConnectorsWithoutEndItemInfo=function(){var M=this;return this.model.findConnectorsCore(function(A){return!A.endItem&&!M.containsDraggingConnectorByKey(A.key)}).map(function(A){return{connector:A,point:A.points[A.points.length-1].clone()}})},k.prototype.moveConnector=function(M,A){var F=M.startPoints,P=C.Vector.fromPoints(F[0].clone(),this.getSnappedPoint(A,F[0]).clone());(P.x||P.y)&&this.moveConnectorCore(M.connector,F,M.startRenderContext,P)},k.prototype.moveConnectorCore=function(M,A,F,P){this.shouldClone||d.ModelUtils.canMoveConnector(this.selectedItems,M)?this.offsetConnector(M,A,F,P):this.changeConnector(M)},k.prototype.moveShape=function(M,A){var F=this,P=M.shape,N=this.getSnappedPoint(A,M.startPosition);d.ModelUtils.setShapePosition(this.history,this.model,P,N),d.ModelUtils.updateMovingShapeConnections(this.history,P,this.modelConnectorsWithoutBeginItemInfo,this.modelConnectorsWithoutEndItemInfo,function(){F.visualizerManager.resetConnectionTarget(),F.visualizerManager.resetConnectionPoints()},function(B,V){F.visualizerManager.setConnectionTarget(B,h.MouseEventElementType.Shape),F.visualizerManager.setConnectionPoints(B,h.MouseEventElementType.Shape,V,!0)},function(B){return F.handler.addInteractingItem(B)}),this.draggingConnectors.filter(function(B){return!!F.selectedItems[B.connector.key]}).length||d.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,P)},k.prototype.offsetConnector=function(M,A,F,P){var N=this,B=A.map(function(V){return N.offsetPoint(V,P)});B[0].equals(M.points[0])||this.history.addAndRedo(new y.ChangeConnectorPointsHistoryItem(M.key,B,this.offsetRenderContext(F,P)))},k.prototype.offsetRenderContext=function(M,A){var F=this;if(void 0!==M)return new p.ConnectorRenderPointsContext(M.renderPoints.map(function(P){var N=F.offsetPoint(P,A);return new g.ConnectorRenderPoint(N.x,N.y,P.pointIndex,P.skipped)}),!0,M.actualRoutingMode)},k.prototype.offsetPoint=function(M,A){var F=C.Vector.fromPoints(M,this.startPoint);return this.startPoint.clone().offset(A.x-F.x,A.y-F.y)},k.prototype.changeConnector=function(M){d.ModelUtils.tryRemoveConnectorIntermediatePoints(this.history,M),d.ModelUtils.updateConnectorAttachedPoints(this.history,this.model,M)},k}(m.MouseHandlerDraggingState);D.MouseHandlerDragDiagramItemStateBase=x},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerDefaultReadOnlyState=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.canDragObjectOnMouseDown=function(p){return!1},g.prototype.canExpandContainerOnMouseDown=function(p){return!1},g.prototype.canClearSelectionOnMouseDown=function(){return!1},g.prototype.canSelectOnMouseUp=function(p){return!0},g.prototype.canClearSelectionOnMouseUp=function(){return!0},g.prototype.updateConnectionsOnMouseMove=function(p){},g}(w(149).MouseHandlerDefaultStateBase);D.MouseHandlerDefaultReadOnlyState=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeShapeTextHistoryItem=void 0;var C=function(y){function g(p,d){var c=y.call(this)||this;return c.shapeKey=p.key,c.text=d,c}return I(g,y),g.prototype.redo=function(p){var d=p.model.findShape(this.shapeKey);this.oldText=d.text,p.changeShapeText(d,this.text)},g.prototype.undo=function(p){var d=p.model.findShape(this.shapeKey);p.changeShapeText(d,this.oldText)},g}(w(8).HistoryItem);D.ChangeShapeTextHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.ContextMenuHandler=void 0;var C=w(3),y=w(11),g=w(25),p=w(81),d=w(18),c=function(h){function m(){var v=null!==h&&h.apply(this,arguments)||this;return v.contextMenuVisible=!1,v.textInputStarted=!1,v.canHideContextMenu=!0,v.onVisibilityChanged=new C.EventDispatcher,v}return I(m,h),m.prototype.onMouseDown=function(v){v.button===y.MouseButton.Left&&v.source.type!==y.MouseEventElementType.Undefined&&this.hideContextMenu()},m.prototype.onMouseUp=function(v){(!d.Browser.MacOSPlatform||d.Browser.MacOSPlatform&&this.canHideContextMenu)&&this.hideContextMenu(),this.canHideContextMenu=!0},m.prototype.onContextMenu=function(v){d.Browser.MacOSPlatform&&(this.canHideContextMenu=!1),this.showContextMenu(v.eventPoint,v.modelPoint)},m.prototype.onFocus=function(v){},m.prototype.onBlur=function(v){},m.prototype.onTextInputFocus=function(v){},m.prototype.onTextInputBlur=function(v){},m.prototype.onLongTouch=function(v){},m.prototype.onKeyDown=function(v){v.keyCode===g.KeyCode.Esc&&this.hideContextMenu()},m.prototype.onShortcut=function(v){this.hideContextMenu()},m.prototype.showContextMenu=function(v,b){var x=this;this.textInputStarted||window.setTimeout(function(){x.onVisibilityChanged.raise1(function(O){return O.notifyShowContextMenu(v,b)}),x.contextMenuVisible=!0},0)},m.prototype.hideContextMenu=function(){var v=this;this.contextMenuVisible&&window.setTimeout(function(){v.onVisibilityChanged.raise1(function(b){return b.notifyHideContextMenu()}),v.contextMenuVisible=!1},0)},m.prototype.notifyDragStart=function(v){},m.prototype.notifyDragEnd=function(v){},m.prototype.notifyDragScrollStart=function(){},m.prototype.notifyDragScrollEnd=function(){},m.prototype.notifyShowContextToolbox=function(v,b,x,O,k){},m.prototype.notifyHideContextToolbox=function(){},m.prototype.notifyTextInputStart=function(v,b,x,O){this.textInputStarted=!0},m.prototype.notifyTextInputEnd=function(v,b){this.textInputStarted=!1},m.prototype.notifyTextInputPermissionsCheck=function(v,b){},m.prototype.onUpdateUnlocked=function(v){},m}(p.BatchUpdatableObject);D.ContextMenuHandler=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(P,N){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,V){B.__proto__=V}||function(B,V){for(var H in V)V.hasOwnProperty(H)&&(B[H]=V[H])})(P,N)},function(P,N){function B(){this.constructor=P}E(P,N),P.prototype=null===N?Object.create(N):(B.prototype=N.prototype,new B)});Object.defineProperty(D,"__esModule",{value:!0}),D.VisualizerManager=void 0;var C=w(325),y=w(326),g=w(157),p=w(11),d=w(327),c=w(14),h=w(3),m=w(33),v=w(0),b=w(158),x=w(4),O=w(328),k=w(329),M=w(81),A=w(36),F=function(P){function N(B,V,H,W,q){void 0===q&&(q=W.readOnly);var G=P.call(this)||this;return G.selection=B,G.model=V,G.eventManager=H,G.settings=W,G.readOnly=q,G.onVisualizersUpdate=new h.EventDispatcher,G.connectionPointsVisualizer=new d.ConnectionPointsVisualizer(G.onVisualizersUpdate),G.connectionPointsVisualizer=new d.ConnectionPointsVisualizer(G.onVisualizersUpdate),G.connectionTargetVisualizer=new C.ConnectionTargetVisualizer(G.onVisualizersUpdate),G.containerTargetVisualizer=new y.ContainerTargetVisualizer(G.onVisualizersUpdate),G.extensionLinesVisualizer=new g.ExtensionLinesVisualizer(G.onVisualizersUpdate),G.resizeInfoVisualizer=new O.ResizeInfoVisualizer(G.onVisualizersUpdate),G.selectionRectangleVisualizer=new k.SelectionRectVisualizer(G.onVisualizersUpdate),G}return I(N,P),N.prototype.initialize=function(B){this.model=B},N.prototype.onMouseDown=function(B){},N.prototype.onMouseUp=function(B){},N.prototype.onMouseEnter=function(B){},N.prototype.onMouseLeave=function(B){this.resetConnectionPoints(),this.resetConnectionTarget(),this.resetExtensionLines(),this.resetContainerTarget(),this.resetResizeInfo(),this.resetSelectionRectangle()},N.prototype.onBlur=function(B){},N.prototype.onFocus=function(B){},N.prototype.updateConnections=function(B,V,H){var W=-1;H&&V===p.MouseEventElementType.ShapeConnectionPoint&&(W=parseInt(H)),this.setConnectionPoints(B,V,W,B&&(!B.allowResizeHorizontally&&!B.allowResizeVertically||B.isLocked))},N.prototype.setConnectionPoints=function(B,V,H,W){if(this.eventManager.isFocused())if(!B||V!==p.MouseEventElementType.Shape&&V!==p.MouseEventElementType.ShapeResizeBox&&V!==p.MouseEventElementType.ShapeConnectionPoint||void 0===B)this.connectionPointsVisualizer.reset();else{var q=B.key,G=this.selection.hasKey(q),J=B.getConnectionPoints();this.connectionPointsVisualizer.setPoints(q,J.map(function(ne){return new d.ConnectionPointInfo(ne,B.getConnectionPointSide(ne))}),H,G&&!W&&B.rectangle)}},N.prototype.setConnectionPointIndex=function(B){this.connectionPointsVisualizer.setPointIndex(B)},N.prototype.updateConnectionPoints=function(){void 0!==this.model.findItem(this.connectionPointsVisualizer.getKey())?this.connectionPointsVisualizer.update():this.connectionPointsVisualizer.reset()},N.prototype.resetConnectionPoints=function(){this.connectionPointsVisualizer.reset()},N.prototype.setConnectionTarget=function(B,V){!B||V!==p.MouseEventElementType.Shape&&V!==p.MouseEventElementType.ShapeConnectionPoint?this.connectionTargetVisualizer.reset():this.connectionTargetVisualizer.setTargetRect(B.key,B.rectangle,B.strokeWidth)},N.prototype.resetConnectionTarget=function(){this.connectionTargetVisualizer.reset()},N.prototype.setContainerTarget=function(B,V){B&&!B.isLocked&&V===p.MouseEventElementType.Shape&&B.enableChildren?this.containerTargetVisualizer.setTargetRect(B.key,B.rectangle,B.strokeWidth):this.containerTargetVisualizer.reset()},N.prototype.resetContainerTarget=function(){this.containerTargetVisualizer.reset()},N.prototype.setExtensionLines=function(B){var V=this;if(this.eventManager.isFocused()){this.extensionLinesVisualizer.reset();var H=x.ModelUtils.createRectangle(B.filter(function(W){return W}));this.addPageExtensionLines(H),this.model.items.forEach(function(W){B.indexOf(W)>-1||W instanceof c.Shape&&V.addShapeExtensionLines(W,H)})}},N.prototype.addPageExtensionLines=function(B){for(var V=Math.round(this.model.size.width/this.model.pageWidth),H=Math.round(this.model.size.height/this.model.pageHeight),W=0;W<V;W++)for(var q=0;q<H;q++){var G=new v.Point(W*this.model.pageWidth+this.model.pageWidth/2,q*this.model.pageHeight+this.model.pageHeight/2);if(Math.abs(B.center.x-G.x)<this.settings.gridSize/2){var J=new m.Segment(new v.Point(B.center.x,0),new v.Point(B.center.x,this.model.size.height));this.extensionLinesVisualizer.addSegment(g.ExtensionLineType.HorizontalCenterToPageCenter,J,"")}Math.abs(B.center.y-G.y)<this.settings.gridSize/2&&(J=new m.Segment(new v.Point(0,B.center.y),new v.Point(this.model.size.width,B.center.y)),this.extensionLinesVisualizer.addSegment(g.ExtensionLineType.VerticalCenterToPageCenter,J,"")),Math.abs(B.x-G.x)<this.settings.gridSize/2&&(J=new m.Segment(new v.Point(B.x,0),new v.Point(B.x,this.model.size.height)),this.extensionLinesVisualizer.addSegment(g.ExtensionLineType.LeftToPageCenter,J,"")),Math.abs(B.y-G.y)<this.settings.gridSize/2&&(J=new m.Segment(new v.Point(0,B.y),new v.Point(this.model.size.width,B.y)),this.extensionLinesVisualizer.addSegment(g.ExtensionLineType.TopToPageCenter,J,"")),Math.abs(B.right-G.x)<this.settings.gridSize/2&&(J=new m.Segment(new v.Point(B.right,0),new v.Point(B.right,this.model.size.height)),this.extensionLinesVisualizer.addSegment(g.ExtensionLineType.RightToPageCenter,J,"")),Math.abs(B.bottom-G.y)<this.settings.gridSize/2&&(J=new m.Segment(new v.Point(0,B.bottom),new v.Point(this.model.size.width,B.bottom)),this.extensionLinesVisualizer.addSegment(g.ExtensionLineType.BottomToPageCenter,J,""))}},N.prototype.addShapeExtensionLines=function(B,V){var H,W,q,G,J,ne,ae,ge,pe=B.rectangle,le=B.strokeWidth-b.CanvasSelectionManager.extensionLineWidth,ce=!0;if(V.right<pe.x?(J=(H=V.right)+le+b.CanvasSelectionManager.extensionLineOffset,ae=(q=pe.x)-b.CanvasSelectionManager.extensionLineOffset):V.x>pe.right&&(J=(H=V.x)-b.CanvasSelectionManager.extensionLineOffset,ae=(q=pe.right)+le+b.CanvasSelectionManager.extensionLineOffset),V.bottom<pe.y?(ne=(W=V.bottom)+le+b.CanvasSelectionManager.extensionLineOffset,ge=(G=pe.y)-b.CanvasSelectionManager.extensionLineOffset):V.y>pe.bottom&&(ne=(W=V.y)-b.CanvasSelectionManager.extensionLineOffset,ge=(G=pe.bottom)+le+b.CanvasSelectionManager.extensionLineOffset),void 0!==J&&void 0!==ae){var oe=this.getViewUnitText(Math.abs(H-q));if(V.center.y===pe.center.y){var K=new m.Segment(new v.Point(J,V.center.y),new v.Point(ae,pe.center.y));this.extensionLinesVisualizer.addSegment(J>ae?g.ExtensionLineType.VerticalCenterAfter:g.ExtensionLineType.VerticalCenterBefore,K,ce?oe:""),ce=!1}V.y===pe.y&&(K=new m.Segment(new v.Point(J,V.y),new v.Point(ae,pe.y)),this.extensionLinesVisualizer.addSegment(J>ae?g.ExtensionLineType.TopToTopAfter:g.ExtensionLineType.TopToTopBefore,K,ce?oe:"")),V.bottom===pe.bottom&&(K=new m.Segment(new v.Point(J,V.bottom+le),new v.Point(ae,pe.bottom+le)),this.extensionLinesVisualizer.addSegment(J>ae?g.ExtensionLineType.BottomToBottomAfter:g.ExtensionLineType.BottomToBottomBefore,K,ce?oe:"")),V.y===pe.bottom&&(K=new m.Segment(new v.Point(J,V.y),new v.Point(ae,pe.bottom+le)),this.extensionLinesVisualizer.addSegment(J>ae?g.ExtensionLineType.TopToBottomAfter:g.ExtensionLineType.TopToBottomBefore,K,ce?oe:"")),V.bottom===pe.y&&(K=new m.Segment(new v.Point(J,V.bottom+le),new v.Point(ae,pe.y)),this.extensionLinesVisualizer.addSegment(J>ae?g.ExtensionLineType.BottomToTopAfter:g.ExtensionLineType.BottomToTopBefore,K,ce?oe:""))}void 0!==ne&&void 0!==ge&&(oe=this.getViewUnitText(Math.abs(W-G)),V.center.x===pe.center.x&&(K=new m.Segment(new v.Point(V.center.x,ne),new v.Point(pe.center.x,ge)),this.extensionLinesVisualizer.addSegment(ne>ge?g.ExtensionLineType.HorizontalCenterBelow:g.ExtensionLineType.HorizontalCenterAbove,K,ce?oe:""),ce=!1),V.x===pe.x&&(K=new m.Segment(new v.Point(V.x,ne),new v.Point(pe.x,ge)),this.extensionLinesVisualizer.addSegment(ne>ge?g.ExtensionLineType.LeftToLeftBelow:g.ExtensionLineType.LeftToLeftAbove,K,ce?oe:"")),V.right===pe.right&&(K=new m.Segment(new v.Point(V.right+le,ne),new v.Point(pe.right+le,ge)),this.extensionLinesVisualizer.addSegment(ne>ge?g.ExtensionLineType.RightToRightBelow:g.ExtensionLineType.RightToRightAbove,K,ce?oe:"")),V.x===pe.right&&(K=new m.Segment(new v.Point(V.x,ne),new v.Point(pe.right+le,ge)),this.extensionLinesVisualizer.addSegment(ne>ge?g.ExtensionLineType.LeftToRightBelow:g.ExtensionLineType.LeftToRightAbove,K,ce?oe:"")),V.right===pe.x&&(K=new m.Segment(new v.Point(V.right+le,ne),new v.Point(pe.x,ge)),this.extensionLinesVisualizer.addSegment(ne>ge?g.ExtensionLineType.RightToLeftBelow:g.ExtensionLineType.RightToLeftAbove,K,ce?oe:"")))},N.prototype.resetExtensionLines=function(){this.extensionLinesVisualizer.reset()},N.prototype.setResizeInfo=function(B){var V=x.ModelUtils.createRectangle(B),H=new v.Point(V.center.x,V.bottom+b.CanvasSelectionManager.resizeInfoOffset),W=this.getViewUnitText(V.width)+" x "+this.getViewUnitText(V.height);this.resizeInfoVisualizer.set(H,W)},N.prototype.resetResizeInfo=function(){this.resizeInfoVisualizer.reset()},N.prototype.setSelectionRectangle=function(B){this.selectionRectangleVisualizer.setRectangle(B)},N.prototype.resetSelectionRectangle=function(){this.selectionRectangleVisualizer.reset()},N.prototype.getViewUnitText=function(B){return x.ModelUtils.getUnitText(this.settings.viewUnits,A.DiagramLocalizationService.unitItems,A.DiagramLocalizationService.formatUnit,B)},N.prototype.notifyReadOnlyChanged=function(B){this.readOnly=B,this.readOnly&&(this.resetConnectionPoints(),this.resetConnectionTarget(),this.resetExtensionLines(),this.resetContainerTarget(),this.resetResizeInfo(),this.resetSelectionRectangle())},N.prototype.notifyDragStart=function(B){},N.prototype.notifyDragEnd=function(B){},N.prototype.notifyDragScrollStart=function(){},N.prototype.notifyDragScrollEnd=function(){},N.prototype.onUpdateUnlocked=function(B){},N}(M.BatchUpdatableObject);D.VisualizerManager=F},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TargetVisualizerBase=void 0;var E=function(){function I(C){this.dispatcher=C}return I.prototype.getKey=function(){return this.key},I.prototype.setTargetRect=function(C,y,g){this.key!==C&&(this.key=C,this.targetRect=y,this.targetStrokeWidth=g,this.raiseShow())},I.prototype.reset=function(){"-1"!==this.key&&(this.key="-1",this.targetRect=void 0,this.targetStrokeWidth=0,this.raiseHide())},I}();D.TargetVisualizerBase=E},function(X,D,w){"use strict";var C;Object.defineProperty(D,"__esModule",{value:!0}),D.ExtensionLinesVisualizer=D.ExtensionLine=D.ExtensionLineType=void 0,(C=D.ExtensionLineType||(D.ExtensionLineType={}))[C.LeftToLeftAbove=0]="LeftToLeftAbove",C[C.LeftToLeftBelow=1]="LeftToLeftBelow",C[C.RightToRightAbove=2]="RightToRightAbove",C[C.RightToRightBelow=3]="RightToRightBelow",C[C.LeftToRightAbove=4]="LeftToRightAbove",C[C.LeftToRightBelow=5]="LeftToRightBelow",C[C.RightToLeftAbove=6]="RightToLeftAbove",C[C.RightToLeftBelow=7]="RightToLeftBelow",C[C.TopToTopBefore=8]="TopToTopBefore",C[C.TopToTopAfter=9]="TopToTopAfter",C[C.BottomToBottomBefore=10]="BottomToBottomBefore",C[C.BottomToBottomAfter=11]="BottomToBottomAfter",C[C.TopToBottomBefore=12]="TopToBottomBefore",C[C.TopToBottomAfter=13]="TopToBottomAfter",C[C.BottomToTopBefore=14]="BottomToTopBefore",C[C.BottomToTopAfter=15]="BottomToTopAfter",C[C.HorizontalCenterAbove=16]="HorizontalCenterAbove",C[C.HorizontalCenterBelow=17]="HorizontalCenterBelow",C[C.VerticalCenterBefore=18]="VerticalCenterBefore",C[C.VerticalCenterAfter=19]="VerticalCenterAfter",C[C.VerticalCenterToPageCenter=20]="VerticalCenterToPageCenter",C[C.HorizontalCenterToPageCenter=21]="HorizontalCenterToPageCenter",C[C.LeftToPageCenter=22]="LeftToPageCenter",C[C.RightToPageCenter=23]="RightToPageCenter",C[C.TopToPageCenter=24]="TopToPageCenter",C[C.BottomToPageCenter=25]="BottomToPageCenter";var E=function(C,y,g){this.type=C,this.segment=y,this.text=g};D.ExtensionLine=E;var I=function(){function C(y){this.dispatcher=y,this.lines=[],this.lineIndexByType={}}return C.prototype.addSegment=function(y,g,p){var d=this.lineIndexByType[y];if(void 0===d){var c=new E(y,g,p),h=this.lines.push(c);this.lineIndexByType[c.type]=h-1,this.raiseShow()}else g.length<this.lines[d].segment.length&&(c=new E(y,g,p),this.lines.splice(d,1,c),this.raiseShow())},C.prototype.update=function(){this.raiseShow()},C.prototype.reset=function(){this.lines.length&&(this.lines=[],this.lineIndexByType={},this.raiseHide())},C.prototype.raiseShow=function(){var y=this;this.dispatcher.raise1(function(g){return g.notifyExtensionLinesShow(y.lines)})},C.prototype.raiseHide=function(){this.dispatcher.raise1(function(y){return y.notifyExtensionLinesHide()})},C}();D.ExtensionLinesVisualizer=I},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(oe,K){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,de){Q.__proto__=de}||function(Q,de){for(var Oe in de)de.hasOwnProperty(Oe)&&(Q[Oe]=de[Oe])})(oe,K)},function(oe,K){function Q(){this.constructor=oe}E(oe,K),oe.prototype=null===K?Object.create(K):(Q.prototype=K.prototype,new Q)});Object.defineProperty(D,"__esModule",{value:!0}),D.CanvasSelectionManager=D.ACTIVE_SELECTION_CSSCLASS=D.SELECTION_ELEMENT_CLASSNAMES=void 0;var C=w(42),y=w(39),g=w(17),p=w(11),d=w(9),c=w(3),h=w(0),m=w(157),v=w(14),b=w(6),x=w(32),O=w(21),k=w(5),M=w(63),A=w(55),F=w(26),P=w(12),N=w(43),B=w(18),V=w(27),H=w(78),W=w(140),q=w(35),G=w(31),J=w(4);D.SELECTION_ELEMENT_CLASSNAMES={SELECTION_RECTANGLE:"selection-rect",CONNECTION_POINT:"connection-point",ACTIVE:"active",CONTAINER_TARGET:"container-target",CONNECTION_TARGET:"connection-target",EXTENSION_LINE:"extension-line",CONNECTION_MARK:"connection-mark",SELECTION_MARK:"selection-mark",LOCKED_SELECTION_MARK:"locked-selection-mark",ITEMS_SELECTION_RECT:"items-selection-rect",CONNECTOR_MULTI_SELECTION:"connector-multi-selection",CONNECTOR_SELECTION:"connector-selection",CONNECTOR_POINT_MARK:"connector-point-mark",CONNECTOR_SELECTION_MASK:"connector-selection-mask",CONNECTOR_SIDE_MARK:"connector-side-mark",ITEM_SELECTION_RECT:"item-selection-rect",ITEM_MULTI_SELECTION:"item-multi-selection-rect"},D.ACTIVE_SELECTION_CSSCLASS="dxdi-active-selection";var ne=function(oe){function K(Q,de,Oe,Ae){var Ne=oe.call(this,de,Ae)||this;return Ne.readOnly=Oe,Ne.connectionPointElements=[],Ne.extensionLineElements=[],Ne.selectionMap={},Ne.parentContainer=Q,Ne.initializeContainerElements(Q),Ne}return I(K,oe),K.prototype.initializeContainerElements=function(Q){this.itemSelectionContainer=this.createAndChangePrimitiveElement(new y.GroupPrimitive([],null),Q),this.visualizersContainer=this.createAndChangePrimitiveElement(new y.GroupPrimitive([],null),Q),this.selectionMarksContainer=this.createAndChangePrimitiveElement(new y.GroupPrimitive([],null),Q)},K.prototype.clear=function(){g.RenderUtils.removeContent(this.itemSelectionContainer),g.RenderUtils.removeContent(this.selectionMarksContainer),g.RenderUtils.removeContent(this.visualizersContainer),this.selectionRectElement=void 0,this.resizeInfoElement=void 0,this.connectionPointElements=[],this.connectionTargetElement=void 0,this.containerTargetElement=void 0,this.extensionLineElements=[],this.selectionMap={}},K.prototype.showSelectionRect=function(Q){V.DomUtils.addClassName(this.parentContainer,D.ACTIVE_SELECTION_CSSCLASS);var de=new O.RectanglePrimitive(Q.x,Q.y,Q.width,Q.height,F.StrokeStyle.default1pxInstance,D.SELECTION_ELEMENT_CLASSNAMES.SELECTION_RECTANGLE),Oe=this.getSelectionRectElement(de);this.changePrimitiveElement(de,Oe)},K.prototype.hideSelectionRect=function(){V.DomUtils.removeClassName(this.parentContainer,D.ACTIVE_SELECTION_CSSCLASS),void 0!==this.selectionRectElement&&this.dom.changeByFunc(this.selectionRectElement,function(Q){return Q.style.display="none"})},K.prototype.getSelectionRectElement=function(Q){return void 0!==this.selectionRectElement?this.dom.changeByFunc(this.selectionRectElement,function(de){return de.style.display=""}):this.selectionRectElement=this.createPrimitiveElement(Q,this.visualizersContainer),this.selectionRectElement},K.prototype.showResizeInfo=function(Q,de){var Oe=new O.RectanglePrimitive(Q.x,Q.y,0,0,F.StrokeStyle.default1pxInstance),Ae=new y.GroupPrimitive([Oe,new M.TextPrimitive(Q.x,Q.y,de,N.TextOwner.Resize)],"resize-info"),Ne=this.getResizeInfoElement(Ae);this.changePrimitiveElement(Ae,Ne);var Qe=this.dom.measurer.measureTextLine(de,null,N.TextOwner.Resize).applyConverter(P.UnitConverter.pixelsToTwips);Oe.width=Qe.width+2*K.resizeInfoTextOffset,Oe.height=Qe.height+2*K.resizeInfoTextOffset,Oe.x=Q.x-Qe.width/2-K.resizeInfoTextOffset,Oe.y=Q.y-Qe.height/2-K.resizeInfoTextOffset,this.changePrimitiveElement(Ae,Ne)},K.prototype.hideResizeInfo=function(){void 0!==this.resizeInfoElement&&this.dom.changeByFunc(this.resizeInfoElement,function(Q){return Q.style.display="none"})},K.prototype.getResizeInfoElement=function(Q){return void 0!==this.resizeInfoElement?this.dom.changeByFunc(this.resizeInfoElement,function(de){return de.style.display=""}):this.resizeInfoElement=this.createPrimitiveElement(Q,this.visualizersContainer),this.resizeInfoElement},K.prototype.getConnectionPointClassName=function(Q,de){var Oe=D.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_POINT;return Q&&(Oe+=" "+D.SELECTION_ELEMENT_CLASSNAMES.ACTIVE),de||(Oe+=" "+H.NOT_VALID_CSSCLASS),Oe},K.prototype.showConnectionPoint=function(Q,de,Oe,Ae,Ne,Qe){this.showConnectionPointCore(2*Q,de.x,de.y,K.connectionPointLargeSize,K.connectionPointLargeSize,p.MouseEventElementType.ShapeConnectionPoint,Oe,Ae,D.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_POINT+" selector"+(Qe?"":" "+H.NOT_VALID_CSSCLASS)),this.showConnectionPointCore(2*Q+1,de.x,de.y,K.connectionPointSmallSize,K.connectionPointSmallSize,p.MouseEventElementType.ShapeConnectionPoint,Oe,Ae,this.getConnectionPointClassName(Ne,Qe))},K.prototype.showConnectionPointCore=function(Q,de,Oe,Ae,Ne,Qe,$e,_e,xe){var ve=new A.EllipsePrimitive(de,Oe,Ae,Ne,null,xe,function(Ce){return g.RenderUtils.setElementEventData(Ce,Qe,$e,_e)}),ee=this.getConnectionPointElement(ve,Q);this.changePrimitiveElement(ve,ee)},K.prototype.hideConnectionPoints=function(){for(var Q=0;Q<this.connectionPointElements.length;Q++)this.dom.changeByFunc(this.connectionPointElements[Q],function(de){return de.style.display="none"})},K.prototype.getConnectionPointElement=function(Q,de){var Oe=this.connectionPointElements[de];return void 0!==Oe?this.dom.changeByFunc(Oe,function(Ae){return Ae.style.display=""}):(Oe=this.createPrimitiveElement(Q,this.visualizersContainer),this.connectionPointElements[de]=Oe),Oe},K.prototype.showContainerTarget=function(Q,de){var Oe=new O.RectanglePrimitive(de.x,de.y,de.width,de.height,null,D.SELECTION_ELEMENT_CLASSNAMES.CONTAINER_TARGET),Ae=this.getContainerTargetElement(Oe);this.changePrimitiveElement(Oe,Ae)},K.prototype.hideContainerTarget=function(){this.containerTargetElement&&this.dom.changeByFunc(this.containerTargetElement,function(Q){return Q.style.display="none"})},K.prototype.getContainerTargetElement=function(Q){return void 0!==this.containerTargetElement?this.dom.changeByFunc(this.containerTargetElement,function(de){return de.style.display=""}):this.containerTargetElement=this.createPrimitiveElement(Q,this.itemSelectionContainer),this.containerTargetElement},K.prototype.showConnectionTarget=function(Q,de){var Oe=new O.RectanglePrimitive(de.x,de.y,de.width,de.height,null,D.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_TARGET),Ae=this.getConnectionTargetElement(Oe);this.changePrimitiveElement(Oe,Ae)},K.prototype.hideConnectionTarget=function(){this.connectionTargetElement&&this.dom.changeByFunc(this.connectionTargetElement,function(Q){return Q.style.display="none"})},K.prototype.getConnectionTargetElement=function(Q){return void 0!==this.connectionTargetElement?this.dom.changeByFunc(this.connectionTargetElement,function(de){return de.style.display=""}):this.connectionTargetElement=this.createPrimitiveElement(Q,this.itemSelectionContainer),this.connectionTargetElement},K.prototype.showExtensionLine=function(Q,de,Oe,Ae,Ne){var Qe=D.SELECTION_ELEMENT_CLASSNAMES.EXTENSION_LINE;de!==m.ExtensionLineType.VerticalCenterAfter&&de!==m.ExtensionLineType.VerticalCenterBefore&&de!==m.ExtensionLineType.HorizontalCenterAbove&&de!==m.ExtensionLineType.HorizontalCenterBelow||(Qe+=" center"),de!==m.ExtensionLineType.VerticalCenterToPageCenter&&de!==m.ExtensionLineType.HorizontalCenterToPageCenter&&de!==m.ExtensionLineType.LeftToPageCenter&&de!==m.ExtensionLineType.RightToPageCenter&&de!==m.ExtensionLineType.TopToPageCenter&&de!==m.ExtensionLineType.BottomToPageCenter||(Qe+=" page");var $e=0,_e=0,xe=0,ve=0,ee=0,Ce=0,De=0,ke=0;Oe.y===Ae.y?($e=Oe.x-K.extensionLineWidth,_e=Oe.y-K.extensionLineEndingSize,xe=Oe.x-K.extensionLineWidth,ve=Oe.y+K.extensionLineEndingSize,ee=Ae.x-K.extensionLineWidth,Ce=Oe.y-K.extensionLineEndingSize,De=Ae.x-K.extensionLineWidth,ke=Oe.y+K.extensionLineEndingSize):Oe.x===Ae.x&&($e=Oe.x-K.extensionLineEndingSize,_e=Oe.y-K.extensionLineWidth,xe=Oe.x+K.extensionLineEndingSize,ve=Oe.y-K.extensionLineWidth,ee=Oe.x-K.extensionLineEndingSize,Ce=Ae.y-K.extensionLineWidth,De=Oe.x+K.extensionLineEndingSize,ke=Ae.y-K.extensionLineWidth);var Fe=0,ze=0;de!==m.ExtensionLineType.RightToRightAbove&&de!==m.ExtensionLineType.RightToRightBelow||(Fe-=K.extensionLineWidth),de!==m.ExtensionLineType.BottomToBottomAfter&&de!==m.ExtensionLineType.BottomToBottomBefore||(ze-=K.extensionLineWidth);var Pe=[new k.PathPrimitive([k.PathPrimitiveMoveToCommand.fromPoint(Oe.clone().offset(Fe,ze)),k.PathPrimitiveLineToCommand.fromPoint(Ae.clone().offset(Fe,ze))],F.StrokeStyle.default1pxInstance,"size-line"),new k.PathPrimitive([new k.PathPrimitiveMoveToCommand($e,_e),new k.PathPrimitiveLineToCommand(xe,ve),new k.PathPrimitiveMoveToCommand(ee,Ce),new k.PathPrimitiveLineToCommand(De,ke)],F.StrokeStyle.default1pxInstance),new M.TextPrimitive((Ae.x+Oe.x)/2,(Ae.y+Oe.y)/2,Ne,N.TextOwner.ExtensionLine,void 0,void 0,void 0,null,void 0,null,C.PAGE_BG_TEXTFLOOR_FILTER_ID)],be=new y.GroupPrimitive(Pe,Qe),me=this.getExtensionLineElement(be,Q);this.changePrimitiveElement(be,me)},K.prototype.hideExtensionLines=function(){for(var Q=0;Q<this.extensionLineElements.length;Q++)this.extensionLineElements[Q]&&this.dom.changeByFunc(this.extensionLineElements[Q],function(de){return de.style.display="none"})},K.prototype.getExtensionLineElement=function(Q,de){var Oe=this.extensionLineElements[de];return void 0!==Oe?this.dom.changeByFunc(Oe,function(Ae){return Ae.style.display=""}):(Oe=this.createPrimitiveElement(Q,this.visualizersContainer),this.extensionLineElements[de]=Oe),Oe},K.prototype.getOrCreateShapeSelection=function(Q,de){var Oe=this.selectionMap[Q.key];return Oe||(Oe=new le(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom,Q.key,Q.isLocked,Q.rectangle,Q.style,Q.allowResizeHorizontally,Q.allowResizeVertically,Q.description.getParameterPoints(Q)),this.selectionMap[Q.key]=Oe),de&&(de[Q.key]=!0),Oe},K.prototype.getOrCreateConnectorSelection=function(Q,de){var Oe=this.selectionMap[Q.key],Ae=Q.getRenderPoints();return Oe||(Oe=new ce(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom,Q.key,Q.isLocked,Q.rectangle,Ae,Q.style,Q.styleText,Q.enableText,Q.texts.map(function(Ne){var Qe=c.GeometryUtils.getPathPointByPosition(Ae,Ne.position);return{text:Q.getText(Ne.position),point:Qe[0],pointIndex:Qe[1],pos:Ne.position}}).sort(function(Ne,Qe){return Ne.pos-Qe.pos}),Q.points,Q.properties.lineOption),this.selectionMap[Q.key]=Oe),de&&(de[Q.key]=!0),Oe},K.prototype.getOrCreateMultipleSelection=function(Q){var de=this.selectionMap[-1];return de||(de=new pe(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom),this.selectionMap[-1]=de),Q[-1]=!0,de},K.prototype.getMultipleSelection=function(){return this.selectionMap[-1]},K.prototype.updateShapeSelection=function(Q,de){Q.key in this.selectionMap&&(this.getOrCreateShapeSelection(Q).onModelChanged(Q.isLocked,Q.rectangle,Q.style,Q.allowResizeHorizontally,Q.allowResizeVertically,Q.description.getParameterPoints(Q)),de&&de.onModelItemChanged(Q.key,Q.rectangle))},K.prototype.updateConnectorSelection=function(Q,de){if(Q.key in this.selectionMap){var Oe=Q.getRenderPoints();this.getOrCreateConnectorSelection(Q).onModelChanged(Q.isLocked,Q.rectangle,Oe,Q.style,Q.styleText,Q.enableText,Q.texts.map(function(Ae){var Ne=c.GeometryUtils.getPathPointByPosition(Oe,Ae.position);return{text:Q.getText(Ae.position),pointIndex:Ne[1],pos:Ae.position,point:Ne[0]}}).sort(function(Ae,Ne){return Ae.pos-Ne.pos}),Q.points,Q.properties.lineOption),de&&de.onModelItemChanged(Q.key,Q.rectangle)}},K.prototype.hideOutdatedSelection=function(Q){var de=this;Object.keys(this.selectionMap).filter(function(Oe){return!Q[Oe]}).forEach(function(Oe){de.selectionMap[Oe].destroy(),delete de.selectionMap[Oe]})},K.prototype.selectionCanBeDrawn=function(Q){return!Q.container||Q.container.expanded&&this.selectionCanBeDrawn(Q.container)},K.prototype.notifySelectionChanged=function(Q){var de=this,Oe=Q.getSelectedItems(!0).filter(function(ve){return de.selectionCanBeDrawn(ve)}),Ae={},Ne=Oe.length>1,Qe=Q.getSelectedShapes(!0).filter(function(ve){return de.selectionCanBeDrawn(ve)}),$e=Q.getSelectedConnectors(!0).filter(function(ve){return de.selectionCanBeDrawn(ve)});if(Qe.forEach(function(ve){return de.getOrCreateShapeSelection(ve,Ae).onSelectionChanged(Ne)}),$e.forEach(function(ve){return de.getOrCreateConnectorSelection(ve,Ae).onSelectionChanged(Ne)}),Ne){var _e=Oe.length>0?Oe[0].strokeWidth:0,xe={};Oe.filter(function(ve){return!ve.isLocked}).forEach(function(ve){return xe[ve.key]=ve.rectangle}),this.getOrCreateMultipleSelection(Ae).onSelectionChanged(!!Qe.filter(function(ve){return!ve.isLocked}).length,_e,xe)}this.hideOutdatedSelection(Ae)},K.prototype.applyChangesCore=function(Q){oe.prototype.applyChangesCore.call(this,Q);var de=this.getMultipleSelection();de&&de.onModelChanged()},K.prototype.applyChange=function(Q){var de=this.getMultipleSelection();Q.item instanceof v.Shape?this.updateShapeSelection(Q.item,de):Q.item instanceof b.Connector&&this.updateConnectorSelection(Q.item,de)},K.prototype.notifyPageColorChanged=function(Q){},K.prototype.notifyPageSizeChanged=function(Q,de){},K.prototype.notifyActualZoomChanged=function(Q){var de=this;Object.keys(this.selectionMap).forEach(function(Oe){return de.selectionMap[Oe].notifyZoomChanged(Q)}),this.actualZoom=Q},K.prototype.notifyViewAdjusted=function(Q){},K.prototype.notifyReadOnlyChanged=function(Q){var de=this;this.readOnly=Q,Object.keys(this.selectionMap).forEach(function(Oe){return de.selectionMap[Oe].notifyReadOnlyChanged(Q)})},K.prototype.notifySelectionRectShow=function(Q){this.showSelectionRect(Q.clone().multiply(this.actualZoom,this.actualZoom))},K.prototype.notifySelectionRectHide=function(){this.hideSelectionRect()},K.prototype.notifyResizeInfoShow=function(Q,de){this.showResizeInfo(Q.clone().multiply(this.actualZoom,this.actualZoom),de)},K.prototype.notifyResizeInfoHide=function(){this.hideResizeInfo()},K.prototype.notifyConnectionPointsShow=function(Q,de,Oe,Ae){var Ne=this;this.hideConnectionPoints(),de.forEach(function(Qe,$e){var _e=Qe.point.clone().multiply(Ne.actualZoom,Ne.actualZoom);if(Ae)switch(Qe.side){case d.ConnectionPointSide.North:_e.y=Ae.y*Ne.actualZoom-K.connectionPointShift;break;case d.ConnectionPointSide.South:_e.y=Ae.bottom*Ne.actualZoom+K.connectionPointShift;break;case d.ConnectionPointSide.West:_e.x=Ae.x*Ne.actualZoom-K.connectionPointShift;break;case d.ConnectionPointSide.East:_e.x=Ae.right*Ne.actualZoom+K.connectionPointShift}Ne.showConnectionPoint($e,_e,Q,$e,$e===Oe,Qe.allowed)})},K.prototype.notifyConnectionPointsHide=function(){this.hideConnectionPoints()},K.prototype.notifyConnectionTargetShow=function(Q,de){if(de.allowed){var Oe=K.correctSelectionRect(de.rect.clone().multiply(this.actualZoom,this.actualZoom),de.strokeWidth,K.connectionTargetBorderWidth,this.actualZoom,0);this.showConnectionTarget(0,Oe)}},K.prototype.notifyConnectionTargetHide=function(){this.hideConnectionTarget()},K.prototype.notifyContainerTargetShow=function(Q,de){var Oe=K.correctSelectionRect(de.rect.clone().multiply(this.actualZoom,this.actualZoom),de.strokeWidth,K.connectionTargetBorderWidth,this.actualZoom,0);this.showContainerTarget(0,Oe)},K.prototype.notifyContainerTargetHide=function(){this.hideContainerTarget()},K.prototype.notifyExtensionLinesShow=function(Q){var de=this;this.hideExtensionLines(),Q.forEach(function(Oe,Ae){de.showExtensionLine(Ae,Oe.type,Oe.segment.startPoint.clone().multiply(de.actualZoom,de.actualZoom),Oe.segment.endPoint.clone().multiply(de.actualZoom,de.actualZoom),Oe.text)})},K.prototype.notifyExtensionLinesHide=function(){this.hideExtensionLines()},K.prototype.notifyDragStart=function(Q){this.dom.changeByFunc(this.selectionMarksContainer,function(de){return de.style.display="none"})},K.prototype.notifyDragEnd=function(Q){this.dom.changeByFunc(this.selectionMarksContainer,function(de){return de.style.display=""})},K.prototype.notifyDragScrollStart=function(){},K.prototype.notifyDragScrollEnd=function(){},K.prototype.notifyTextInputStart=function(Q,de,Oe,Ae){this.dom.changeByFunc(this.visualizersContainer,function(Ne){return Ne.style.display="none"})},K.prototype.notifyTextInputEnd=function(Q,de){this.dom.changeByFunc(this.visualizersContainer,function(Oe){return Oe.style.display=""})},K.prototype.notifyTextInputPermissionsCheck=function(Q,de){},K.correctSelectionRect=function(Q,de,Oe,Ae,Ne){void 0===Ne&&(Ne=K.selectionOffset);var Qe=P.UnitConverter.twipsToPixels(de)%2!=P.UnitConverter.twipsToPixels(Oe)%2,$e=Math.ceil(de/2*Ae);Q=Q.clone().inflate($e,$e);var _e=Math.floor(Oe/2);if(Q.x-=_e,Q.y-=_e,Q.width+=Oe,Q.height+=Oe,Qe){var xe=K.evenOddSelectionCorrection*(P.UnitConverter.twipsToPixels(Oe)%2==1?-1:1);Q=Q.clone().moveRectangle(xe,xe)}return Q.clone().inflate(Ne,Ne)},K.selectionMarkSize=P.UnitConverter.pixelsToTwips(10),K.lockedSelectionMarkSize=P.UnitConverter.pixelsToTwips(8),K.selectionOffset=P.UnitConverter.pixelsToTwips(2),K.selectionRectLineWidth=P.UnitConverter.pixelsToTwips(1),K.multiSelectionRectLineWidth=P.UnitConverter.pixelsToTwips(1),K.connectionPointSmallSize=P.UnitConverter.pixelsToTwips(5),K.connectionPointLargeSize=P.UnitConverter.pixelsToTwips(12),K.connectionPointShift=P.UnitConverter.pixelsToTwips(16),K.connectionTargetBorderWidth=P.UnitConverter.pixelsToTwips(2),K.geomertyMarkSize=P.UnitConverter.pixelsToTwips(8),K.connectorPointMarkSize=P.UnitConverter.pixelsToTwips(6),K.connectorSideMarkSize=P.UnitConverter.pixelsToTwips(6),K.extensionLineWidth=P.UnitConverter.pixelsToTwips(1),K.extensionLineOffset=P.UnitConverter.pixelsToTwips(1),K.extensionLineEndingSize=P.UnitConverter.pixelsToTwips(6),K.resizeInfoOffset=P.UnitConverter.pixelsToTwips(16),K.resizeInfoTextOffset=P.UnitConverter.pixelsToTwips(2),K.resizeInfoLineWidth=P.UnitConverter.pixelsToTwips(1),K.evenOddSelectionCorrection=P.UnitConverter.pixelsToTwips(1),K}(W.CanvasManager);D.CanvasSelectionManager=ne;var ae=function(){function oe(K,Q,de,Oe,Ae,Ne){this.rectsContainer=K,this.marksContainer=Q,this.key=de,this.zoomLevel=Oe,this.readOnly=Ae,this.dom=Ne,this.elements={},this.updatedElements={}}return oe.prototype.notifyZoomChanged=function(K){this.zoomLevel!==K&&(this.zoomLevel=K,this.redraw())},oe.prototype.notifyReadOnlyChanged=function(K){this.readOnly=K,this.redraw()},oe.prototype.destroy=function(){var K=this;Object.keys(this.elements).forEach(function(Q){K.elements[Q].parentNode.removeChild(K.elements[Q]),delete K.elements[Q]})},oe.prototype.redraw=function(){var K=this;this.updatedElements={},this.redrawCore(),Object.keys(this.elements).filter(function(Q){return!K.updatedElements[Q]}).forEach(function(Q){K.elements[Q].parentNode.removeChild(K.elements[Q]),delete K.elements[Q]}),this.updatedElements={}},oe.prototype.drawSelectionMarks=function(K,Q,de){if(!this.readOnly){var Oe=Q&&K.height>3*ne.selectionMarkSize,Ae=de&&K.width>3*ne.selectionMarkSize,Ne=Q||de;Ne&&this.drawSelectionMark(0,new h.Point(K.x,K.y),ne.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_NW,D.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),Ae&&!B.Browser.TouchUI&&this.drawSelectionMark(1,new h.Point(K.x+K.width/2,K.y),ne.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_N,D.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),Ne&&this.drawSelectionMark(2,new h.Point(K.right,K.y),ne.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_NE,D.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),Oe&&!B.Browser.TouchUI&&this.drawSelectionMark(3,new h.Point(K.right,K.y+K.height/2),ne.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_E,D.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),Ne&&this.drawSelectionMark(4,new h.Point(K.right,K.bottom),ne.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_SE,D.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),Ae&&!B.Browser.TouchUI&&this.drawSelectionMark(5,new h.Point(K.x+K.width/2,K.bottom),ne.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_S,D.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),Ne&&this.drawSelectionMark(6,new h.Point(K.x,K.bottom),ne.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_SW,D.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),Oe&&!B.Browser.TouchUI&&this.drawSelectionMark(7,new h.Point(K.x,K.y+K.height/2),ne.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_W,D.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK)}},oe.prototype.drawSelectionMark=function(K,Q,de,Oe,Ae,Ne){var Qe=this;this.getOrCreateElement("SM"+K,new O.RectanglePrimitive(Q.x-de/2,Q.y-de/2,de,de,null,Ne,void 0,function($e){g.RenderUtils.setElementEventData($e,Oe,Qe.key,Ae)}),this.marksContainer)},oe.prototype.drawSelectionRect=function(K,Q,de){var Oe=new O.RectanglePrimitive(K.x,K.y,K.width,K.height,F.StrokeStyle.default1pxInstance,de,void 0,function(Ae){g.RenderUtils.setElementEventData(Ae,Q,"-1",-1)});this.getOrCreateElement("shapeSelection",Oe,this.rectsContainer)},oe.prototype.getOrCreateElement=function(K,Q,de){var Oe=this.elements[K];return Oe||(Oe=Q.createElement(function(Ae){return de.appendChild(Ae)}),this.elements[K]=Oe),this.updatedElements[K]=!0,this.dom.changeByPrimitive(Oe,Q),Oe},oe}(),ge=function(oe){function K(Q,de,Oe,Ae,Ne,Qe,$e,_e){var xe=oe.call(this,Q,de,Oe,Ae,Ne,Qe)||this;return xe.isLocked=$e,xe.rectangle=_e,xe}return I(K,oe),K.prototype.onSelectionChanged=function(Q){this.isMultipleSelection!==Q&&(this.isMultipleSelection=Q,this.redraw())},K.prototype.isLockedRender=function(){return this.isLocked&&!this.readOnly},K.prototype.drawLockedSelectionMark=function(Q,de,Oe,Ae){var Ne=new k.PathPrimitive([new k.PathPrimitiveMoveToCommand(de.x-Oe/2,de.y-Oe/2),new k.PathPrimitiveLineToCommand(de.x+Oe/2,de.y+Oe/2),new k.PathPrimitiveMoveToCommand(de.x+Oe/2,de.y-Oe/2),new k.PathPrimitiveLineToCommand(de.x-Oe/2,de.y+Oe/2)],null,Ae);this.getOrCreateElement("LSM"+Q,Ne,this.marksContainer)},K}(ae),pe=function(oe){function K(Q,de,Oe,Ae,Ne){var Qe=oe.call(this,Q,de,"-1",Oe,Ae,Ne)||this;return Qe.rectangles={},Qe}return I(K,oe),K.prototype.onModelItemChanged=function(Q,de){Q in this.rectangles&&(this.rectangles[Q]=de)},K.prototype.onModelChanged=function(){this.redraw()},K.prototype.onSelectionChanged=function(Q,de,Oe){this.needDrawSelectionMarks=Q,this.strokeWidth=de,this.rectangles=Oe,this.redraw()},K.prototype.redrawCore=function(){var Q=this,de=Object.keys(this.rectangles);if(de.length){var Oe=c.GeometryUtils.getCommonRectangle(de.map(function(Ne){return Q.rectangles[Ne]})).clone().multiply(this.zoomLevel,this.zoomLevel),Ae=ne.correctSelectionRect(Oe,this.strokeWidth,ne.selectionRectLineWidth,this.zoomLevel);this.drawSelectionRect(Ae,p.MouseEventElementType.SelectionRect,D.SELECTION_ELEMENT_CLASSNAMES.ITEMS_SELECTION_RECT),this.needDrawSelectionMarks&&this.drawSelectionMarks(Oe,!0,!0)}},K}(ae),le=function(oe){function K(Q,de,Oe,Ae,Ne,Qe,$e,_e,xe,ve,ee,Ce){var De=oe.call(this,Q,de,Qe,Oe,Ae,Ne,$e,_e)||this;return De.style=xe,De.allowResizeHorizontally=ve,De.allowResizeVertically=ee,De.shapeParameterPoints=Ce,De}return I(K,oe),K.prototype.onModelChanged=function(Q,de,Oe,Ae,Ne,Qe){this.isLocked=Q,this.rectangle=de,this.style=Oe,this.allowResizeHorizontally=Ae,this.allowResizeVertically=Ne,this.shapeParameterPoints=Qe,this.redraw()},K.prototype.redrawCore=function(){var Q=this.rectangle.clone().multiply(this.zoomLevel,this.zoomLevel);this.isLockedRender()?this.drawLockedSelection(Q):this.drawUnlockedSelection(Q)},K.prototype.drawLockedSelection=function(Q){this.drawLockedSelectionMark(0,new h.Point(Q.x,Q.y),ne.lockedSelectionMarkSize,D.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(1,new h.Point(Q.right,Q.y),ne.lockedSelectionMarkSize,D.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(2,new h.Point(Q.right,Q.bottom),ne.lockedSelectionMarkSize,D.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(3,new h.Point(Q.x,Q.bottom),ne.lockedSelectionMarkSize,D.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK)},K.prototype.drawUnlockedSelection=function(Q){var de=ne.correctSelectionRect(Q,this.style.strokeWidth,ne.selectionRectLineWidth,this.zoomLevel);this.drawSelectionRect(de,p.MouseEventElementType.SelectionRect,this.isMultipleSelection?D.SELECTION_ELEMENT_CLASSNAMES.ITEM_MULTI_SELECTION:D.SELECTION_ELEMENT_CLASSNAMES.ITEM_SELECTION_RECT),this.isMultipleSelection||this.drawSelectionMarks(Q,this.allowResizeHorizontally,this.allowResizeVertically),this.drawShapeParameterPoints()},K.prototype.drawShapeParameterPoints=function(){var Q=this;this.readOnly||this.shapeParameterPoints.forEach(function(de,Oe){var Ae=de.point.clone().multiply(Q.zoomLevel,Q.zoomLevel);Q.drawShapeParameterPoint(Ae,Oe,de.key)})},K.prototype.drawShapeParameterPoint=function(Q,de,Oe){var Ae=this,Ne=ne.geomertyMarkSize,Qe=new O.RectanglePrimitive(Q.x-Ne/2,Q.y-Ne/2,Ne,Ne,null,"geometry-mark",void 0,function($e){g.RenderUtils.setElementEventData($e,p.MouseEventElementType.ShapeParameterBox,Ae.key,Oe)});this.getOrCreateElement("pp"+de.toString(),Qe,this.marksContainer)},K}(ge),ce=function(oe){function K(Q,de,Oe,Ae,Ne,Qe,$e,_e,xe,ve,ee,Ce,De,ke,Fe){var ze=oe.call(this,Q,de,Qe,Oe,Ae,Ne,$e,_e)||this;return ze.renderPoints=xe,ze.style=ve,ze.styleText=ee,ze.enableText=Ce,ze.texts=De,ze.points=ke,ze.lineType=Fe,ze}return I(K,oe),K.prototype.onModelChanged=function(Q,de,Oe,Ae,Ne,Qe,$e,_e,xe){this.isLocked=Q,this.rectangle=de,this.renderPoints=Oe,this.style=Ae,this.styleText=Ne,this.enableText=Qe,this.texts=$e,this.points=_e,this.lineType=xe,this.redraw()},K.prototype.redrawCore=function(){this.isLockedRender()?this.drawLockedSelection():this.drawUnlockedSelection()},K.prototype.drawLockedSelection=function(){var Q=this;this.renderPoints.forEach(function(de,Oe){Q.drawLockedSelectionMark(Oe,de,ne.lockedSelectionMarkSize,D.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK)})},K.prototype.drawUnlockedSelection=function(){this.drawConnectorSelection(),this.isMultipleSelection||this.readOnly||this.drawConnectorSelectionMarks()},K.prototype.drawConnectorSelection=function(){var Q=[],de=[],Oe=this.isMultipleSelection?D.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_MULTI_SELECTION:D.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_SELECTION;this.populateSelectionPrimitiveCommands(Q,de);var Ae=new k.PathPrimitive(Q.concat(de.reverse()),F.StrokeStyle.default1pxInstance,Oe);this.getOrCreateElement("CS",Ae,this.rectsContainer)},K.prototype.populateSelectionPrimitiveCommands=function(Q,de){for(var Oe,Ae,Ne,Qe,$e=this.texts,_e=this.styleText.getAlignment(),xe=this.createNotSkippedRenderPoints(),ve=this.zoomLevel,ee=this.style.strokeWidthPx,Ce=this.getSelectionOffset(ee),De=ee%2==0,ke=xe[0],Fe=0,ze=1,Pe=void 0;Pe=xe[ze];ze++){var be=xe[ze+1];if(void 0===Oe){if(Ae=q.Metrics.euclideanDistance(ke,Pe),G.MathUtils.numberCloseTo(Ae,0))continue;Oe=c.GeometryUtils.getSelectionOffsetPoint(ke,Pe,Ae).multiply(Ce,Ce)}if(be){if(Qe=q.Metrics.euclideanDistance(Pe,be),G.MathUtils.numberCloseTo(Qe,0))continue;Ne=c.GeometryUtils.getSelectionOffsetPoint(Pe,be,Qe).multiply(Ce,Ce)}var me=Oe.x,Me=Oe.y,Ue=-me,st=-Me,Lt=Ne&&Ne.x,ln=Ne&&Ne.y,Mn=Ne&&-Ne.x,ri=Ne&&-Ne.y;for(De&&(Ue>0?Ue-=ne.evenOddSelectionCorrection:me>0&&(me-=ne.evenOddSelectionCorrection),st>0?st-=ne.evenOddSelectionCorrection:Me>0&&(Me-=ne.evenOddSelectionCorrection),Mn>0?Mn-=ne.evenOddSelectionCorrection:Lt>0&&(Lt-=ne.evenOddSelectionCorrection),ri>0?ri-=ne.evenOddSelectionCorrection:ln>0&&(ln-=ne.evenOddSelectionCorrection));$e[Fe]&&$e[Fe].pointIndex<=ze;){var lr=$e[Fe],Ye=this.getConnectorSelectionTextSize(lr.text,Ce),ft=c.GeometryUtils.getSelectionTextStartEndPoints(ke,Pe,Ae,lr.point,Ye,_e);$e[Fe].pointIndex<ze?(Q.push(k.PathPrimitiveMoveToCommand.fromPoint((ke=ft[1]).clone().offset(me,Me).multiply(ve,ve))),de.push(k.PathPrimitiveLineToCommand.fromPoint(ke.clone().offset(Ue,st).multiply(ve,ve)))):(Q.length||(Q.push(k.PathPrimitiveMoveToCommand.fromPoint(ke.clone().offset(me,Me).multiply(ve,ve))),de.push(k.PathPrimitiveLineToCommand.fromPoint(ke.clone().offset(Ue,st).multiply(ve,ve)))),Q.push(k.PathPrimitiveLineToCommand.fromPoint(ft[0].clone().offset(me,Me).multiply(ve,ve))),Q.push(k.PathPrimitiveMoveToCommand.fromPoint(ft[1].clone().offset(me,Me).multiply(ve,ve))),de.push(k.PathPrimitiveMoveToCommand.fromPoint(ft[0].clone().offset(Ue,st).multiply(ve,ve))),de.push(k.PathPrimitiveLineToCommand.fromPoint(ft[1].clone().offset(Ue,st).multiply(ve,ve))),ke=ft[1]),Fe++}Q.length||(Q.push(k.PathPrimitiveMoveToCommand.fromPoint(ke.clone().offset(me,Me).multiply(ve,ve))),de.push(k.PathPrimitiveLineToCommand.fromPoint(ke.clone().offset(Ue,st).multiply(ve,ve)))),be?(c.GeometryUtils.addSelectedLinesTo(ke,Pe,be,me,Me,Ue,st,Lt,ln,Mn,ri,function(jt,an){return Q.push(new k.PathPrimitiveLineToCommand(jt*ve,an*ve))},function(jt,an){return de.push(new k.PathPrimitiveLineToCommand(jt*ve,an*ve))}),Oe=Ne,Ae=Qe):(Q.push(k.PathPrimitiveLineToCommand.fromPoint(Pe.clone().offset(me,Me).multiply(ve,ve))),de.push(k.PathPrimitiveMoveToCommand.fromPoint(Pe.clone().offset(Ue,st).multiply(ve,ve)))),ke=Pe}},K.prototype.createNotSkippedRenderPoints=function(){var Q=this.renderPoints.map(function(de){return de.clone()});return this.lineType===x.ConnectorLineOption.Straight?(J.ModelUtils.removeUnnecessaryRenderPoints(Q),Q.filter(function(de){return!de.skipped})):(J.ModelUtils.removeUnnecessaryRightAngleRenderPoints(Q),Q.filter(function(de){return!de.skipped}))},K.prototype.getSelectionOffset=function(Q){return ne.selectionOffset+P.UnitConverter.pixelsToTwips(Math.round(Q/2)+(Q+1)%2)},K.prototype.getConnectorSelectionTextSize=function(Q,de){return this.dom.measurer.measureTextLine(Q,this.styleText,N.TextOwner.Connector).applyConverter(P.UnitConverter.pixelsToTwips).clone().offset(de,de).nonNegativeSize()},K.prototype.drawConnectorSelectionMarks=function(){var Q=this,de=this.points.length-1;this.points.forEach(function(Oe,Ae){var Ne=0===Ae||Ae===de,Qe=Ne?D.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK:D.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_POINT_MARK,$e=Ne?ne.selectionMarkSize:ne.connectorPointMarkSize;Ne||Q.lineType===x.ConnectorLineOption.Straight?Q.drawSelectionMark(Ae,Oe.clone().multiply(Q.zoomLevel,Q.zoomLevel),$e,p.MouseEventElementType.ConnectorPoint,Ae,Qe):Q.drawSelectionMark(Ae,Oe.clone().multiply(Q.zoomLevel,Q.zoomLevel),$e,p.MouseEventElementType.Undefined,-1,Qe+" disabled")}),this.drawConnectorSideMarks()},K.prototype.drawConnectorSideMarks=function(){var Q,de,Oe=this,Ae=this.lineType===x.ConnectorLineOption.Straight?p.MouseEventElementType.ConnectorSide:p.MouseEventElementType.ConnectorOrthogonalSide;this.renderPoints.forEach(function(Ne,Qe){if(!Ne.skipped){if(void 0!==Q&&Oe.canDrawConnectorSideMark(Ne,Q)){var $e=Oe.lineType===x.ConnectorLineOption.Orthogonal?Ne.x-Q.x==0?"vertical":"horizontal":"";Oe.drawSelectionMark(Oe.points.length+Qe-1,new h.Point(Q.x+(Ne.x-Q.x)/2,Q.y+(Ne.y-Q.y)/2).clone().multiply(Oe.zoomLevel,Oe.zoomLevel),ne.connectorSideMarkSize,Ae,de+"_"+Qe,D.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_SIDE_MARK+" "+$e)}Q=Ne,de=Qe}})},K.prototype.canDrawConnectorSideMark=function(Q,de){if(this.lineType===x.ConnectorLineOption.Straight){var Oe=ne.selectionMarkSize+ne.connectorSideMarkSize;return q.Metrics.euclideanDistance(Q,de)>Oe}if(this.lineType===x.ConnectorLineOption.Orthogonal){var Ae=0===de.pointIndex,Ne=c.GeometryUtils.areDuplicatedPoints(this.points[this.points.length-1],Q);return Ae&&Ne?q.Metrics.euclideanDistance(Q,de)>2*b.Connector.minOffset:!Ae&&Ne||Ae&&!Ne?q.Metrics.euclideanDistance(Q,de)>b.Connector.minOffset:(Oe=ne.selectionMarkSize+ne.connectorSideMarkSize,q.Metrics.euclideanDistance(Q,de)>Oe)}return!1},K}(ge)},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DiagramDraggingEvent=D.ToolboxDraggingObject=D.Toolbox=void 0;var E,x,I=w(3),C=w(0),y=w(65),g=w(44),p=w(27),d=w(18),c=w(15),h=w(78),m=function(){function x(O,k,M,A,F,P){this.readOnly=k,this.allowDragging=M,this.shapeDescriptionManager=A,this.shapeTypes=F,this.getAllowedShapeTypes=P,this.dragPrepareTimeout=-1,this.dragState=E.None,this.emulateDragEvents=d.Browser.WebKitTouchUI,this.onDragOperation=new I.EventDispatcher,this.onClickOperation=new I.EventDispatcher,O&&(this.mainElement=this.createMainElement(O),this.attachHandlers(this.mainElement))}return x.prototype.clean=function(O){this.detachHandlers(this.mainElement),O&&O(this.mainElement)},x.prototype.createMainElement=function(O){var k=document.createElement("div");return k.setAttribute("class","dxdi-toolbox"),k.draggable=!0,this.emulateDragEvents&&(k.tabIndex=0),O.appendChild(k),k},x.prototype.attachHandlers=function(O){this.onElementMouseDownHandler=this.onElementMouseDown.bind(this),this.onElementMouseUpHandler=this.onElementMouseUp.bind(this),this.onMouseDownHandler=this.onMouseDown.bind(this),this.onMouseMoveHandler=this.onMouseMove.bind(this),this.onMouseUpHandler=this.onMouseUp.bind(this),this.onDragStartHandler=this.onDragStart.bind(this),this.onTouchMoveHandler=this.onTouchMove.bind(this),this.emulateDragEvents||c.RenderHelper.addEventListener(O,"dragstart",this.onDragStartHandler),I.EventUtils.isPointerEvents()?(this.mouseDownEventName="pointerdown",this.mouseMoveEventName="pointermove",this.mouseUpEventName="pointerup"):(this.mouseDownEventName=d.Browser.TouchUI?"touchstart":"mousedown",this.mouseMoveEventName=d.Browser.TouchUI?"touchmove":"mousemove",this.mouseUpEventName=d.Browser.TouchUI?"touchend":"mouseup"),c.RenderHelper.addEventListener(O,"touchmove",this.onTouchMoveHandler),c.RenderHelper.addEventListener(O,this.mouseDownEventName,this.onElementMouseDownHandler),c.RenderHelper.addEventListener(O,this.mouseUpEventName,this.onElementMouseUpHandler),c.RenderHelper.addEventListener(O,this.mouseDownEventName,this.onMouseDownHandler),c.RenderHelper.addEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),c.RenderHelper.addEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},x.prototype.detachHandlers=function(O){this.emulateDragEvents||c.RenderHelper.removeEventListener(O,"dragstart",this.onDragStartHandler),c.RenderHelper.removeEventListener(O,"touchmove",this.onTouchMoveHandler),c.RenderHelper.removeEventListener(O,this.mouseDownEventName,this.onElementMouseDownHandler),c.RenderHelper.removeEventListener(O,this.mouseUpEventName,this.onElementMouseUpHandler),c.RenderHelper.removeEventListener(O,this.mouseDownEventName,this.onMouseDownHandler),c.RenderHelper.removeEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),c.RenderHelper.removeEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},x.prototype.render=function(O){this.mainElement.childNodes&&(this.mainElement.innerHTML="");var k=this.shapeTypes;return k=this.getAllowedShapeTypes?this.getAllowedShapeTypes(k):k,(k=O?k.filter(O):k).length&&this.createElements(this.mainElement,k),!!k.length},x.prototype.createDraggingObject=function(O){var k=new b;return k.data=O,k.onFinishDragging=this.resetDragState.bind(this),k.onCaptured=this.capture.bind(this),new v(k)},x.prototype.getDragShapeType=function(O){for(;O&&!p.DomUtils.hasClassName(O,"dxdi-toolbox");){if(O.getAttribute&&O.getAttribute("data-tb-type"))return O.getAttribute("data-tb-type");O=O.parentNode}},x.prototype.getTouchPointFromEvent=function(O){var k,M=O.touches;return M&&M.length>0?k=new C.Point(M[0].clientX,M[0].clientY):O.clientX&&O.clientY&&(k=new C.Point(O.clientX,O.clientY)),k},x.prototype.onElementMouseDown=function(O){this.mouseDownShapeType=this.getDragShapeType(y.EvtUtils.getEventSource(O)),this.touchDownPoint=this.getTouchPointFromEvent(O)},x.prototype.onElementMouseUp=function(O){var k=this.getDragShapeType(y.EvtUtils.getEventSource(O));k&&k===this.mouseDownShapeType&&this.onClickOperation.raise("notifyToolboxClick",k),this.mouseDownShapeType=void 0,this.touchDownPoint=void 0},x.prototype.onMouseDown=function(O){this.setDragState(E.Prepare,O),d.Browser.TouchUI&&I.EventUtils.isMousePointer(O)&&this.setDragState(E.Start,O)},x.prototype.onDragStart=function(O){this.setDragState(E.Start,O),O.preventDefault()},x.prototype.onTouchMove=function(O){this.draggingObject&&O.preventDefault()},x.prototype.isLeftButtonPressed=function(O){return y.EvtUtils.isLeftButtonPressed(O)||"pointermove"===O.type&&d.Browser.TouchUI&&d.Browser.MacOSMobilePlatform&&I.EventUtils.isMousePointer(O)},x.prototype.onMouseMove=function(O){if(d.Browser.TouchUI&&d.Browser.MacOSMobilePlatform){var k=this.getTouchPointFromEvent(O);if(this.touchDownPoint&&k&&this.touchDownPoint.x===k.x&&this.touchDownPoint.y===k.y)return}this.setDragState(this.isLeftButtonPressed(O)?E.Dragging:E.None,O),I.EventUtils.isPointerEvents()&&this.raiseDraggingMouseMove(O)},x.prototype.onMouseUp=function(O){this.setDragState(E.None,O)},x.prototype.updateDraggingElementPosition=function(O,k){var M=this.draggingObject.element,F=k-M.offsetHeight/2;g.SetAbsoluteX(M,O-M.offsetWidth/2),g.SetAbsoluteY(M,F)},x.prototype.setDragState=function(O,k){if(!this.readOnly&&this.allowDragging&&!(O===E.None&&O===this.dragState||(this.dragPrepareTimeout>-1&&(clearTimeout(this.dragPrepareTimeout),this.dragPrepareTimeout=-1,this.dragPrepareEvent=void 0),O-this.dragState>1||O!==E.None&&O<this.dragState)))switch(this.dragState=O,O){case E.Prepare:this.prepareDragging(k)||this.setDragState(E.None,k),!this.emulateDragEvents&&I.EventUtils.isMousePointer(k)||(this.dragPrepareTimeout=setTimeout(this.onDragPrepareTimeout.bind(this),800),this.dragPrepareEvent=k);break;case E.Start:p.DomUtils.addClassName(document.body,"dxdi-dragging"),this.startDragging(k);break;case E.Dragging:this.doDragging(k);break;case E.None:this.finishDragging(k)}},x.prototype.resetDragState=function(){this.setDragState(E.None,void 0)},x.prototype.onDragPrepareTimeout=function(){this.dragPrepareTimeout=-1,this.dragState===E.Prepare&&this.setDragState(E.Start,this.dragPrepareEvent),this.dragPrepareEvent=void 0},x.prototype.prepareDragging=function(O){return this.dragStartPoint=new C.Point(y.EvtUtils.getEventX(O),y.EvtUtils.getEventY(O)),this.dragStartShapeType=this.getDragShapeType(y.EvtUtils.getEventSource(O)),I.EventUtils.isMousePointer(O)&&p.DomUtils.addClassName(this.mainElement,"dxdi-tb-start-drag-flag"),!this.emulateDragEvents&&I.EventUtils.isMousePointer(O)||I.HtmlFocusUtils.focusWithPreventScroll(this.mainElement),!!this.dragStartShapeType},x.prototype.startDragging=function(O){this.draggingObject=this.createDraggingObject(this.dragStartShapeType),this.dragStartShapeType?(this.raiseDragStart(O),this.draggingObject.element=this.createDraggingElement(this.draggingObject),void 0!==this.draggingObject.captured&&this.capture(this.draggingObject.captured,!0),this.updateDraggingElementPosition(this.dragStartPoint.x,this.dragStartPoint.y)):p.DomUtils.addClassName(document.body,h.NOT_VALID_CSSCLASS)},x.prototype.doDragging=function(O){this.draggingObject.element&&this.updateDraggingElementPosition(y.EvtUtils.getEventX(O),y.EvtUtils.getEventY(O))},x.prototype.finishDragging=function(O){if(this.draggingObject){this.raiseDragEnd(O);var k=this.draggingObject.element;k&&k.parentNode.removeChild(k),delete this.draggingObject}this.dragStartPoint=void 0,this.dragStartShapeType=void 0,p.DomUtils.removeClassName(this.mainElement,"dxdi-tb-start-drag-flag"),p.DomUtils.removeClassName(document.body,h.NOT_VALID_CSSCLASS),setTimeout(function(){return p.DomUtils.removeClassName(document.body,"dxdi-dragging")},500)},x.prototype.capture=function(O,k){this.draggingObject&&(this.draggingObject.captured!==O||k)&&(this.draggingObject.captured=O,this.draggingObject.element&&p.DomUtils.toggleClassName(this.draggingObject.element,"dxdi-tb-drag-captured",O))},x.prototype.raiseDragStart=function(O){this.onDragOperation.raise("notifyToolboxDragStart",O)},x.prototype.raiseDragEnd=function(O){this.onDragOperation.raise("notifyToolboxDragEnd",O)},x.prototype.raiseDraggingMouseMove=function(O){this.onDragOperation.raise("notifyToolboxDraggingMouseMove",O)},x.prototype.notifyReadOnlyChanged=function(O){this.readOnly=O},x}();D.Toolbox=m,(x=E||(E={}))[x.None=-1]="None",x[x.Prepare=0]="Prepare",x[x.Start=1]="Start",x[x.Dragging=2]="Dragging";var v=function(x){this.evt=x};D.ToolboxDraggingObject=v;var b=function(){};D.DiagramDraggingEvent=b},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RightAngleConnectorRoutingMathOperations=void 0;var E=w(33),I=w(31),C=w(161),y=w(3),g=w(9),p=function(){function d(){}return d.createUnionSegments=function(c,h){for(var m=[],v=c[0].startPoint,b=c[0].endPoint,x=1;x<c.length;x++){var O=c[x];h(b,O.startPoint)&&(m.push(new E.Segment(v.clone(),b.clone())),v=O.startPoint),b=O.endPoint}return m.push(new E.Segment(v,b)),m},d.unionPoints=function(c){for(var h=0;h<c.length-2;)y.GeometryUtils.isCorner(c[h],c[h+1],c[h+2])?h++:(c.splice(h+1,1),h=Math.max(0,h-1))},d.getTurnDirection=function(c){return I.MathUtils.numberCloseTo(c,0)?C.RightAngleTurnDirection.Straight:I.MathUtils.numberCloseTo(c,Math.PI)?C.RightAngleTurnDirection.Backwards:c<Math.PI?C.RightAngleTurnDirection.Left:C.RightAngleTurnDirection.Right},d.isSegmentNormal=function(c,h){return h?I.MathUtils.numberCloseTo(c.startPoint.y,c.endPoint.y):I.MathUtils.numberCloseTo(c.startPoint.x,c.endPoint.x)},d.isConnectionRectanleLineIntersected=function(c,h,m,v,b,x){switch(m){case g.ConnectionPointSide.North:return y.GeometryUtils.isLineIntersected(x(c.x,c.y),x(c.right,c.y),h,v,b);case g.ConnectionPointSide.South:return y.GeometryUtils.isLineIntersected(x(c.right,c.bottom),x(c.x,c.bottom),h,v,b);case g.ConnectionPointSide.West:return y.GeometryUtils.isLineIntersected(x(c.x,c.y),x(c.x,c.bottom),h,v,b);case g.ConnectionPointSide.East:return y.GeometryUtils.isLineIntersected(x(c.right,c.y),x(c.right,c.bottom),h,v,b);default:return!1}},d.createBeginConnectionSegment=function(c,h,m,v){switch(c){case g.ConnectionPointSide.North:return new E.Segment(h,v(h.x,h.y-m));case g.ConnectionPointSide.South:return new E.Segment(h,v(h.x,h.y+m));case g.ConnectionPointSide.West:return new E.Segment(h,v(h.x-m,h.y));case g.ConnectionPointSide.East:return new E.Segment(h,v(h.x+m,h.y));default:return h}},d.createEndConnectionSegment=function(c,h,m,v){switch(c){case g.ConnectionPointSide.North:return new E.Segment(v(h.x,h.y-m),h);case g.ConnectionPointSide.South:return new E.Segment(v(h.x,h.y+m),h);case g.ConnectionPointSide.West:return new E.Segment(v(h.x-m,h.y),h);case g.ConnectionPointSide.East:return new E.Segment(v(h.x+m,h.y),h);default:return h}},d}();D.RightAngleConnectorRoutingMathOperations=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.IntersectedShapeZone=D.AStarMetrics=D.IntersectedShapesMetrics=D.TurnDirectionMetrics=D.IntersectedShapeMetrics=D.RightAngleTurnDirection=void 0;var E,c,I=w(0),C=w(35);(c=E=D.RightAngleTurnDirection||(D.RightAngleTurnDirection={}))[c.Straight=0]="Straight",c[c.Left=1]="Left",c[c.Right=2]="Right",c[c.Backwards=3]="Backwards";var y=function(){function c(h,m){this.description=h,this.shapeMargin=m}return c.prototype.penalty=function(h,m,v,b){var x=b.rectangle;if(x.containsPoint(v))return h+this.description.shape*m;var O=this.createRelativeMarginPenalty(v,x,this.shapeMargin);return O>0?h+this.description.margin*O*m:h},c.prototype.createRelativeMarginPenalty=function(h,m,v){var b=this.isTopPosition(h,m,v),x=this.isLeftPosition(h,m,v),O=this.isBottomPosition(h,m,v),k=this.isRightPosition(h,m,v);if(b){if(x){var M=(P=m.clone().inflate(v)).createPosition(),A=m.createPosition(),F=C.Metrics.euclideanDistance(A,M);return 1-C.Metrics.euclideanDistance(A,h)/F}if(k){var P=m.clone().inflate(v),N=new I.Point(P.right,P.y),B=new I.Point(m.right,m.y),V=C.Metrics.euclideanDistance(B,N);return 1-C.Metrics.euclideanDistance(B,h)/V}return 1-(m.y-h.y)/v}if(O){if(x){P=m.clone().inflate(v);var H=new I.Point(P.x,P.bottom),W=new I.Point(m.x,m.bottom),q=C.Metrics.euclideanDistance(W,H);return 1-C.Metrics.euclideanDistance(W,h)/q}if(k){P=m.clone().inflate(v);var G=new I.Point(P.right,P.bottom),J=new I.Point(m.right,m.bottom),ne=C.Metrics.euclideanDistance(J,G);return 1-C.Metrics.euclideanDistance(J,h)/ne}return 1-(h.y-m.bottom)/v}return x?1-(m.x-h.x)/v:k?1-(h.x-m.right)/v:0},c.prototype.isTopPosition=function(h,m,v){return h.x>m.x-v&&h.x<m.right+v&&h.y>m.y-v&&h.y<m.y},c.prototype.isBottomPosition=function(h,m,v){return h.x>m.x-v&&h.x<m.right+v&&h.y>m.bottom&&h.y<m.bottom+v},c.prototype.isLeftPosition=function(h,m,v){return h.x>m.x-v&&h.x<m.x&&h.y>m.y-v&&h.y<m.bottom+v},c.prototype.isRightPosition=function(h,m,v){return h.x>m.right&&h.x<m.right+v&&h.y>m.y-v&&h.y<m.bottom+v},c}();D.IntersectedShapeMetrics=y;var g=function(){function c(h){this.description=h}return c.prototype.penalty=function(h,m){switch(m){case E.Backwards:return h*this.description.turnBack;case E.Left:return h*this.description.turnLeft;case E.Right:return h*this.description.turnRight}return h},c}();D.TurnDirectionMetrics=g;var p=function(){function c(h){this.shapeMetrics=h}return c.prototype.penalty=function(h,m,v,b){var x=this;if(!b||!b.length)return h;var O=h;return b.forEach(function(k){return O=x.shapeMetrics.penalty(O,m,v,k)}),O},c}();D.IntersectedShapesMetrics=p;var d=function(){function c(h,m){this.turnDirectionMetrics=h,this.shapesMetrics=m}return c.prototype.distance=function(h,m){return C.Metrics.manhattanDistance(h,m)},c.prototype.penalty=function(h,m,v,b){var x=h;return x=this.shapesMetrics.penalty(x,h,m,b),this.turnDirectionMetrics.penalty(x,v)},c}();D.AStarMetrics=d,function(c){c[c.None=0]="None",c[c.Shape=1]="Shape",c[c.Margin=2]="Margin"}(D.IntersectedShapeZone||(D.IntersectedShapeZone={}))},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.DeleteCommand=void 0;var C=w(4),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.isEnabled=function(){var d=this.control.selection.getSelectedItems();return g.prototype.isEnabled.call(this)&&d.length&&(d.length>1||this.permissionsProvider.canDeleteItems(d))},p.prototype.executeCore=function(d){var c=this.control.selection.getSelectedItems(!0,!0);return this.permissionsProvider.beginDeleteItems(c),C.ModelUtils.deleteSelection(this.control.history,this.control.model,this.control.selection),this.permissionsProvider.endDeleteItems(),!0},Object.defineProperty(p.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),p}(w(10).SimpleCommandBase);D.DeleteCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(C){void 0===C&&(C=0),this.value=C}return I.prototype.get=function(C){return(this.value&C)===C},I.prototype.set=function(C,y){return(this.value&C)===C!==y&&(y?this.value|=C:this.value^=C),this},I.prototype.add=function(C){this.value|=C},I.prototype.anyOf=function(){for(var C=[],y=0;y<arguments.length;y++)C[y]=arguments[y];for(var g=0,p=C;g<p.length;g++){var d=p[g];if((this.value&d)===d)return!0}return!1},I.prototype.getValue=function(){return this.value},I.prototype.clone=function(){return new I(this.value)},I}();D.Flag=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(105),I=w(41),C=w(106),y=w(169),g=function(){function p(){}return p.oneConstainsOtherArraysOfInterval=function(d,c){for(var h=E.ListUtils.deepCopy(c),m=h.pop();m;){if(!E.ListUtils.unsafeAnyOf(d,function(v){return v.containsInterval(m)}))return!1;m=h.pop()}return!0},p.getIntersection=function(d,c){return p.getIntersectionTemplate(d,c,d)},p.getIntersectionTemplate=function(d,c,h){var m=Math.max(d.start,c.start),v=Math.min(d.end,c.end);return m>v?null:h.makeByStartEnd(m,v)},p.getIntersectionNonNullLength=function(d,c){return p.getIntersectionNonNullLengthTemplate(d,c,d)},p.getIntersectionNonNullLengthTemplate=function(d,c,h){var m=p.getIntersectionTemplate(d,c,h);return m&&m.length?m:null},p.getIntersectionsTwoArraysOfInterval=function(d,c){return p.getIntersectionsTwoArraysOfIntervalTemplate(d,c,d[0])},p.getIntersectionsTwoArraysOfIntervalTemplate=function(d,c,h){for(var m=[],v=d.length,b=c.length,x=0,O=0,k=d[x],M=c[O],A=null;x<v&&O<b;){var F=p.getIntersectionTemplate(k,M,h);F&&(A&&A.end===F.start?A.length+=F.length:m.push(A=F)),k.end<M.end?k=d[++x]:M=c[++O]}return m},p.getAffectedObjects=function(d,c,h,m){return void 0===h&&(h=function(v){return I.SearchUtils.normedInterpolationIndexOf(d,function(b){return b.interval.start},v)}),void 0===m&&(m=function(v,b,x){return v.start===x&&0===b}),p.getAffectedObjectsTemplate(d,c,c[0],h,m)},p.getAffectedObjectsTemplate=function(d,c,h,m,v){void 0===m&&(m=function(N){return I.SearchUtils.normedInterpolationIndexOf(d,function(B){return B.interval.start},N)}),void 0===v&&(v=function(N,B,V){return N.start===V&&0===B});for(var b=new y.SparseIntervalsCollector(h),x=0,O=c;x<O.length;x++)for(var k=O[x],M=Math.max(0,m(k.start,d)),A=void 0;A=d[M];M++){var F=A.interval;if(F.start>k.end)break;var P=p.getIntersectionTemplate(F,k,h);P&&(P.length||v(F,k.length,P.start))&&b.add(M)}return b.getIntervals()},p.handleAffectedObjects=function(d,c,h,m){void 0===m&&(m=function(P){return I.SearchUtils.normedInterpolationIndexOf(d,function(N){return N.interval.start},P)});for(var v=new C.FixedInterval(0,0),b=0,x=c;b<x.length;b++)for(var O=x[b],k=Math.max(0,m(O.start,d)),M=void 0;M=d[k];k++){var A=M.interval;if(A.start>O.end)break;var F=p.getIntersectionTemplate(A,O,v);F&&h(M,k,O,F)}},p.getMergedIntervals=function(d,c){return p.getMergedIntervalsTemplate(d,c,d[0])},p.getMergedIntervalsTemplate=function(d,c,h){if(d.length<2)return d.length>0?[h.makeByStartLength(d[0].start,d[0].length)]:[];for(var m=c?[].concat(d).sort(function(M,A){return M.start-A.start}):d,v=[],b=0,x=void 0;x=m[b];){var O=x.start,k=x.end;for(++b;void 0!==(x=m[b])&&x.start<=k;b++)x.end>k&&(k=x.end);v.push(h.makeByStartEnd(O,k))}return v},p.reflectIntervals=function(d,c){return p.reflectIntervalsTemplate(d,c,c)},p.reflectIntervalsTemplate=function(d,c,h){if(!d.length)return[h.makeByStartLength(c.start,c.length)];var m=E.ListUtils.last(d).end,v=E.ListUtils.reducedMap(d,function(b,x){return p.getIntersectionNonNullLengthTemplate(h.makeByStartEnd(d[x-1].end,b.start),c,h)},1);return c.start<d[0].start&&v.unshift(h.makeByStartEnd(c.start,d[0].start)),c.end>m&&v.push(h.makeByStartEnd(m,c.end)),v},p.reflectionOfPointOnInterval=function(d,c,h){return(d-c.start)/c.length*h.length+h.start},p}();D.IntervalAlgorithms=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(59),I=function(d,c){this.minElement=d,this.maxElement=c};D.MinMax=I;var C=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return E.__extends(c,d),Object.defineProperty(c.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!0,configurable:!0}),c}(I);D.MinMaxNumber=C,D.ExtendedMin=function(d,c){this.minElement=d,this.minValue=c},D.ExtendedMax=function(d,c){this.maxElement=d,this.maxValue=c};var p=function(d){function c(h,m,v,b){var x=d.call(this,h,v)||this;return x.minValue=m,x.maxValue=b,x}return E.__extends(c,d),c}(I);D.ExtendedMinMax=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function C(){}return C.number=function(y,g){return y-g},C.string=function(y,g){return y===g?0:y>g?1:-1},C.stringIgnoreCase=function(y,g){return(y=y.toLowerCase())===(g=g.toLowerCase())?0:y>g?1:-1},C}();D.Comparers=E;var I=function(){function C(){}return C.simpleType=function(y,g){return y===g},C.object=function(y,g){return y&&g&&(y===g||y.equals(g))},C}();D.Equals=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(59),I=function(C){function y(){return null!==C&&C.apply(this,arguments)||this}return E.__extends(y,C),y.prototype.normalizeLength=function(){return this.length<0&&(this.length=0),this},y}(w(168).ConstInterval);D.MutableInterval=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(){}return Object.defineProperty(I.prototype,"center",{get:function(){return this.start+this.length/2},enumerable:!0,configurable:!0}),I.prototype.isNormalized=function(){return this.end>=this.start},I.prototype.isCollapsed=function(){return 0===this.length},I.prototype.equals=function(C){return this.start===C.start&&this.end===C.end},I.isCollapsed=function(C){return!C[1]&&C[0].isCollapsed()},I.prototype.containsInterval=function(C){return this.start<=C.start&&this.end>=C.end},I.prototype.containsIntervalWithoutEnd=function(C){return this.start<=C.start&&this.end>C.end},I.prototype.contains=function(C){return this.start<=C&&C<this.end},I.prototype.containsWithIntervalEnd=function(C){return this.start<=C&&C<=this.end},I.prototype.containsWithoutIntervalEndAndStart=function(C){return this.start<C&&C<this.end},I}();D.ConstInterval=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(170),I=function(){function C(y){this.intervals=[],this.template=y}return C.prototype.add=function(y){this.curr&&this.curr.end===y?this.curr.length++:(this.curr=this.template.makeByStartLength(y,1),this.intervals.push(this.curr))},C.prototype.getIntervals=function(){return new E.SparseIntervals(this.intervals)},C}();D.SparseIntervalsCollector=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(107),I=w(171),C=function(){function y(g){void 0===g&&(g=[]),this.list=g,this._count=0,this._numIntervals=0;for(var p=0,d=g;p<d.length;p++)this._count+=d[p].length,this._numIntervals++}return Object.defineProperty(y.prototype,"count",{get:function(){return this._count},enumerable:!0,configurable:!0}),Object.defineProperty(y.prototype,"numIntervals",{get:function(){return this._numIntervals},enumerable:!0,configurable:!0}),y.prototype.getInterval=function(g){return this.list[g]},y.prototype.getNativeIterator=function(){return new E.SparseIntervalsIterator(this)},y.prototype.getObjectsIterator=function(g){return new I.SparseObjectsIterator(this,g)},y}();D.SparseIntervals=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(59),I=function(C){function y(g,p){var d=C.call(this,g)||this;return d.objects=p,d}return E.__extends(y,C),y.prototype.initObject=function(){this.obj=this.objects[this.index]},y}(w(107).SparseIntervalsIterator);D.SparseObjectsIterator=I},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.TextFloodFilterPrimitive=D.TextFilterPrimitive=void 0;var C=w(15),y=w(108),g=w(62),p=w(22),d=function(h){function m(v,b,x,O,k){void 0===b&&(b="-0.05"),void 0===x&&(x="-0.05"),void 0===O&&(O="1.1"),void 0===k&&(k="1.1");var M=h.call(this,v,b,x,O,k)||this;return M.id=v,M.x=b,M.y=x,M.width=O,M.height=k,M}return I(m,h),m.prototype.createChildElements=function(v){var b=document.createElementNS(C.svgNS,"feFlood");v.appendChild(b);var x=document.createElementNS(C.svgNS,"feComposite");x.setAttribute("in","SourceGraphic"),x.setAttribute("operator","atop"),v.appendChild(x)},m}(y.FilterPrimitive);D.TextFilterPrimitive=d;var c=function(h){function m(v,b,x,O,k,M){void 0===x&&(x="-0.05"),void 0===O&&(O="-0.05"),void 0===k&&(k="1.1"),void 0===M&&(M="1.1");var A=h.call(this,v,x,O,k,M)||this;return A.id=v,A.floodColor=b,A.x=x,A.y=O,A.width=k,A.height=M,A}return I(m,h),m.prototype.applyChildrenProperties=function(v){for(var b=void 0,x=0;b=v.childNodes[x];x++)if(b.nodeName&&"FEFLOOD"===b.nodeName.toUpperCase()){this.prepareFEFloodNode(b);break}},m.prototype.prepareFEFloodNode=function(v){var b=p.ColorUtils.colorToHash(this.floodColor);v.setAttribute("flood-color",b),v.setAttribute("class","text-filter-flood"),v.style.setProperty("flood-color",this.floodColor!==g.DiagramModel.defaultPageColor?b:"")},m}(d);D.TextFloodFilterPrimitive=c},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=function(){function I(){}return I.encodeHtml=function(C){return C.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},I.decodeHtml=function(C){return C.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")},I.prepareTextForRequest=function(C){return C.replace(/%/g,"%25").replace(/&/g,"%26amp;").replace(/\+/g,"%2B").replace(/</g,"%26lt;").replace(/>/g,"%26gt;").replace(/"/g,"%26quot;")},I.prepareTextForCallBackRequest=function(C){return C.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},I.decodeViaTextArea=function(C){var y=document.createElement("TEXTAREA");return y.innerHTML=C,y.value},I}();D.EncodeUtils=E},function(X,D,w){"use strict";w(175).polyfill()},function(X,D,w){"use strict";function E(I,C){if(null==I)throw new TypeError("Cannot convert first argument to object");for(var y=Object(I),g=1;g<arguments.length;g++){var p=arguments[g];if(null!=p)for(var d=Object.keys(Object(p)),c=0,h=d.length;c<h;c++){var m=d[c],v=Object.getOwnPropertyDescriptor(p,m);void 0!==v&&v.enumerable&&(y[m]=p[m])}}return y}X.exports={assign:E,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:E})}}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(18),I=w(50),C=function(){function y(){}return y.onEventAttachingToDocument=function(g,p){return!E.Browser.MacOSMobilePlatform||!y.isTouchEventName(g)||(y.documentTouchHandlers[g]||(y.documentTouchHandlers[g]=[]),y.documentTouchHandlers[g].push(p),y.documentEventAttachingAllowed)},y.isTouchEventName=function(g){return E.Browser.WebKitTouchUI&&(g.indexOf("touch")>-1||g.indexOf("gesture")>-1)},y.isTouchEvent=function(g){return E.Browser.WebKitTouchUI&&I.isDefined(g.changedTouches)},y.getEventX=function(g){return E.Browser.IE?g.pageX:g.changedTouches[0].pageX},y.getEventY=function(g){return E.Browser.IE?g.pageY:g.changedTouches[0].pageY},y.touchMouseDownEventName=E.Browser.WebKitTouchUI?"touchstart":E.Browser.Edge&&E.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",y.touchMouseUpEventName=E.Browser.WebKitTouchUI?"touchend":E.Browser.Edge&&E.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",y.touchMouseMoveEventName=E.Browser.WebKitTouchUI?"touchmove":E.Browser.Edge&&E.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",y.msTouchDraggableClassName="dxMSTouchDraggable",y.documentTouchHandlers={},y.documentEventAttachingAllowed=!0,y}();D.TouchUtils=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var E=w(18),I=w(83),C=w(50),y=function(){function g(){}return g.loadJavascriptFile=function(p,d){var c,h=document.getElementsByTagName("head")[0];if(!h){h=document.createElement("head");var m=document.getElementsByTagName("body")[0];null===(c=m.parentNode)||void 0===c||c.insertBefore(h,m)}var v=document.createElement("script");return v.onload=d,v.src=p,h.appendChild(v),{htmlScriptElement:v}},g.startDownloadFileLocal=function(p,d){if(p instanceof ArrayBuffer&&(p=I.Base64Utils.fromArrayBuffer(p)),C.isString(p)&&(p=I.Base64Utils.getFileFromBase64(p)),window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(p,d);else{var c=document.createElement("a"),h=URL.createObjectURL(p);c.href=h,c.download=d,document.body.appendChild(c),c.click(),setTimeout(function(){document.body.removeChild(c),window.URL.revokeObjectURL(h)},0)}},g.createFile=function(p,d,c){var h;if(E.Browser.IE||E.Browser.Edge&&E.Browser.MajorVersion<86){var m=new Blob(p,c);return m.lastModifiedDate=null!==(h=c?.lastModified)&&void 0!==h?h:Date.now(),m.name=d,m}return new File(p,d,c)},g.isFile=function(p){return E.Browser.IE||E.Browser.Edge&&E.Browser.MajorVersion<86?p instanceof File||p instanceof Blob&&C.isDefined(p.name):p instanceof File},g}();D.FileUtils=y},function(X,D,w){"use strict";var E,I,C,y,p;Object.defineProperty(D,"__esModule",{value:!0}),D.OpenXmlMimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document",D.RtfMimeType="application/rtf",D.PlainTextMimeType="text/plain",D.DocmMimeType="application/vnd.ms-word.document.macroEnabled.12",D.ImagePngMimeType="image/png",D.ImageGifMimeType="image/gif",D.ImageJpegMimeType="image/jpeg",D.ImagePjpegMimeType="image/pjpeg",D.ImageSvgMimeType="image/svg+xml",D.ImageTiffMimeType="image/tiff",D.ImageIcoMimeType="image/vnd.microsoft.icon",D.ImageWbmpMimeType="image/vnd.wap.wbmp",D.ImageWebpMimeType="image/webp",(p=y=D.DxMimeType||(D.DxMimeType={}))[p.Unknown=0]="Unknown",p[p.OpenXml=1]="OpenXml",p[p.Rtf=2]="Rtf",p[p.PlainText=3]="PlainText",p[p.Docm=4]="Docm",p[p.Png=5]="Png",p[p.Gif=6]="Gif",p[p.Jpeg=7]="Jpeg",p[p.Pjpeg=8]="Pjpeg",p[p.Svg=9]="Svg",p[p.Tiff=10]="Tiff",p[p.Ico=11]="Ico",p[p.Wbmp=12]="Wbmp",p[p.Webp=13]="Webp";var g=function(){function p(){}return p.stringTypeToExtension=function(d){var c=p.stringTypeToTypeMap[d];return void 0===c?"":p.typeToExtensionMap[c]},p.typeToExtension=function(d){return p.typeToExtensionMap[d]??""},p.extensionToType=function(d){return"."!==(d=d.toLowerCase())[0]&&(d+="."),p.extensionToTypeMap[d]??y.Unknown},p.typeToStringType=function(d){return p.typeToStringTypeMap[d]??""},p.stringTypeToType=function(d){var c=p.stringTypeToTypeMap[d];return void 0===c?y.Unknown:c},p.stringTypeToTypeMap=((E={})[D.OpenXmlMimeType]=y.OpenXml,E[D.RtfMimeType]=y.Rtf,E[D.PlainTextMimeType]=y.PlainText,E[D.DocmMimeType]=y.Docm,E[D.ImagePngMimeType]=y.Png,E[D.ImageGifMimeType]=y.Gif,E[D.ImageJpegMimeType]=y.Jpeg,E[D.ImagePjpegMimeType]=y.Pjpeg,E[D.ImageSvgMimeType]=y.Svg,E[D.ImageTiffMimeType]=y.Tiff,E[D.ImageIcoMimeType]=y.Ico,E[D.ImageWbmpMimeType]=y.Wbmp,E[D.ImageWebpMimeType]=y.Webp,E),p.typeToStringTypeMap=((I={})[y.Unknown]=void 0,I[y.OpenXml]=D.OpenXmlMimeType,I[y.Rtf]=D.RtfMimeType,I[y.PlainText]=D.PlainTextMimeType,I[y.Docm]=D.DocmMimeType,I[y.Png]=D.ImagePngMimeType,I[y.Gif]=D.ImageGifMimeType,I[y.Jpeg]=D.ImageJpegMimeType,I[y.Pjpeg]=D.ImagePjpegMimeType,I[y.Svg]=D.ImageSvgMimeType,I[y.Tiff]=D.ImageTiffMimeType,I[y.Ico]=D.ImageIcoMimeType,I[y.Wbmp]=D.ImageWbmpMimeType,I[y.Webp]=D.ImageWebpMimeType,I),p.typeToExtensionMap=((C={})[y.Unknown]=void 0,C[y.OpenXml]=".docx",C[y.Rtf]=".rtf",C[y.PlainText]=".txt",C[y.Docm]=".docm",C[y.Png]=".png",C[y.Gif]=".gif",C[y.Jpeg]=".jpeg",C[y.Pjpeg]=".pjpeg",C[y.Svg]=".svg",C[y.Tiff]=".tiff",C[y.Ico]=".ico",C[y.Wbmp]=".wbmp",C[y.Webp]=".webp",C),p.extensionToTypeMap={".docx":y.OpenXml,".rtf":y.Rtf,".txt":y.PlainText,".docm":y.Docm,".png":y.Png,".gif":y.Gif,".jpeg":y.Jpeg,".pjpeg":y.Pjpeg,".svg":y.Svg,".tiff":y.Tiff,".ico":y.Ico,".wbmp":y.Wbmp,".webp":y.Webp},p}();D.MimeTypeUtils=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorPointsCalculator=void 0;var C=w(111),y=w(29),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.getPoints=function(){return this.connector.points.map(function(c,h){return new y.ConnectorRenderPoint(c.x,c.y,h)})},d}(C.ConnectorPointsCalculatorBase);D.ConnectorPointsCalculator=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(O,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,A){M.__proto__=A}||function(M,A){for(var F in A)A.hasOwnProperty(F)&&(M[F]=A[F])})(O,k)},function(O,k){function M(){this.constructor=O}E(O,k),O.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorPointsOrthogonalCalculator=void 0;var C=w(13),y=w(9),g=w(111),p=w(181),d=w(182),c=w(183),h=w(184),m=w(185),v=w(29),b=w(4),x=function(O){function k(M){var A=O.call(this,M)||this;return A.sideCalculators={},A.sideCalculators[y.ConnectionPointSide.Undefined]=new p.ConnectorPointsOrthogonalUndefinedSideCalculator(A),A.sideCalculators[y.ConnectionPointSide.South]=new d.ConnectorPointsOrthogonalSouthSideCalculator(A),A.sideCalculators[y.ConnectionPointSide.North]=new c.ConnectorPointsOrthogonalNorthSideCalculator(A),A.sideCalculators[y.ConnectionPointSide.East]=new h.ConnectorPointsOrthogonalEastSideCalculator(A),A.sideCalculators[y.ConnectionPointSide.West]=new m.ConnectorPointsOrthogonalWestSideCalculator(A),A}return I(k,O),Object.defineProperty(k.prototype,"beginRect",{get:function(){return this.connector.beginItem?this.connector.beginItem.rectangle:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"endRect",{get:function(){return this.connector.endItem?this.connector.endItem.rectangle:void 0},enumerable:!1,configurable:!0}),k.prototype.getPoints=function(){var M=this.connector.points.map(function(ae,ge){return new v.ConnectorRenderPoint(ae.x,ae.y,ge)});b.ModelUtils.removeUnnecessaryRenderPoints(M);var A=0,F=M.length-1,P=this.getPointSide(M,0),N=this.getPointSide(M,1),B=this.getPointSide(M,M.length-1),V=this.getPointSide(M,M.length-1-1),H=this.getSideCalculator(P),W=this.getSideCalculator(B),G=H.getCorrectOriginPoint(M[A],this.beginRect),J=M[A+1];if(2===M.length&&H.isOnSidePoint(G,J)&&H.isDirectConnectionAllowed(N,G,J))H.getDirectConnectionPoints(G,J).forEach(function(ae){M.splice(A+1,0,ae),A++,F++});else{var ne=H.getBeginOffsetPoints(N,M[A],M[A+1],this.beginRect);ne.forEach(function(ae){M.splice(A+1,0,ae)}),A+=ne.length,W.getEndOffsetPoints(V,M[F+=ne.length],M[F-1],this.endRect).forEach(function(ae,ge){M.splice(F+ge,0,ae)}),this.addMiddlePoints(M,A,F)}return b.ModelUtils.removeUnnecessaryRenderPoints(M),M},k.prototype.getSideCalculator=function(M){return this.sideCalculators[M]},k.prototype.getPointSide=function(M,A){if(0===A&&this.connector.beginItem){var F=this.connector.beginConnectionPointIndex;return this.connector.beginItem.getConnectionPointSideByIndex(F,M[1])}return A===M.length-1&&this.connector.endItem?this.connector.endItem.getConnectionPointSideByIndex(F=this.connector.endConnectionPointIndex,M[M.length-2]):y.ConnectionPointSide.Undefined},k.prototype.addMiddlePoints=function(M,A,F){for(var P=A;P<F;P++){var N=P+1,B=this.getMiddlePoint(M[P],M[P-1],P-1==0,M[N],M[N+1],N+1===M.length-1);void 0!==B&&(M.splice(P+1,0,B),P++,F++)}},k.prototype.getMiddlePoints=function(M,A){return M.x===A.x||M.y===A.y?[]:[new v.ConnectorRenderPoint(M.x,A.y),new v.ConnectorRenderPoint(A.x,M.y)]},k.prototype.getMiddlePoint=function(M,A,F,P,N,B){var V,H=this,W=this.getMiddlePoints(M,P);return W.forEach(function(q){var G=H.createPointsRect(M,q),J=H.createPointsRect(q,P),ne=H.connector.beginItem?H.connector.beginItem.rectangle:void 0,ae=H.connector.endItem?H.connector.endItem.rectangle:void 0;ne&&(C.Rectangle.areIntersected(ne,G)||C.Rectangle.areIntersected(ne,J))||ae&&(C.Rectangle.areIntersected(ae,G)||C.Rectangle.areIntersected(ae,J))||H.isReturnPoint(q,M,A)&&!H.isIntermediatePoints(M,A)||H.isReturnPoint(q,P,N)&&!H.isIntermediatePoints(P,N)||(void 0===V||H.isPriorMiddlePoint(q,M,A,P,N))&&(V=q)}),void 0===V&&W.length>0&&(V=W[0]),V},k.prototype.createPointsRect=function(M,A){var F=C.Rectangle.fromPoints(M,A);return F.width>0&&(F=F.clone().inflate(-1,0)),F.height>0&&(F=F.clone().inflate(0,-1)),F},k.prototype.isPriorMiddlePoint=function(M,A,F,P,N){return!(!F||M.x!==F.x&&M.y!==F.y)||!(!N||M.x!==N.x&&M.y!==N.y)},k.prototype.isReturnPoint=function(M,A,F){return void 0!==A&&void 0!==F&&(M.x===F.x&&(A.y<M.y&&M.y<F.y||A.y>M.y&&M.y>F.y)||M.y===F.y&&(A.x<M.x&&M.x<F.x||A.x>M.x&&M.x>F.x))},k.prototype.isIntermediatePoints=function(M,A){return 0<M.pointIndex&&M.pointIndex<this.connector.points.length-1&&0<A.pointIndex&&A.pointIndex<this.connector.points.length-1},k}(g.ConnectorPointsCalculatorBase);D.ConnectorPointsOrthogonalCalculator=x},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorPointsOrthogonalUndefinedSideCalculator=void 0;var C=w(52),y=w(29),g=function(p){function d(c){return p.call(this,c)||this}return I(d,p),d.prototype.getCorrectOriginPoint=function(c,h){return c},d.prototype.getSameShapeOffsetPoints=function(c,h,m,v){return[]},d.prototype.getOverlappedPointsOffsetPoints=function(c,h,m,v){return[]},d.prototype.getBeginOverlappedShapeOffsetPoints=function(c,h,m,v){return[]},d.prototype.getEndOverlappedShapeOffsetPoints=function(c,h,m,v){return[]},d.prototype.getBeginOnSideOffsetPoints=function(c,h,m,v){return[]},d.prototype.getEndOnSideOffsetPoints=function(c,h,m,v){return[]},d.prototype.getBeginOffSideOffsetPoints=function(c,h,m,v){return[]},d.prototype.getEndOffSideOffsetPoints=function(c,h,m,v){return[]},d.prototype.isOnSidePoint=function(c,h){return!0},d.prototype.isDirectConnectionAllowed=function(c,h,m){var v=this.getSideCalculator(h,m);return void 0===v||v.isDirectConnectionAllowed(c,h,m)},d.prototype.getDirectConnectionPoints=function(c,h){var m=Math.abs(h.x-c.x),v=Math.abs(h.y-c.y);if(m>v){var b=Math.min(c.x,h.x)+m/2;return[new y.ConnectorRenderPoint(b,c.y),new y.ConnectorRenderPoint(b,h.y)]}var x=Math.min(c.y,h.y)+v/2;return[new y.ConnectorRenderPoint(c.x,x),new y.ConnectorRenderPoint(h.x,x)]},d}(C.ConnectorPointsOrthogonalSideCalculatorBase);D.ConnectorPointsOrthogonalUndefinedSideCalculator=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorPointsOrthogonalSouthSideCalculator=void 0;var C=w(9),y=w(52),g=w(29),p=function(d){function c(h){return d.call(this,h)||this}return I(c,d),c.prototype.getCorrectOriginPoint=function(h,m){return h.y<m.bottom&&(h=h.clone().offset(0,m.bottom-h.y)),h},c.prototype.getSameShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:case C.ConnectionPointSide.West:case C.ConnectionPointSide.South:return[m.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset())}},c.prototype.getOverlappedPointsOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.South:return[m.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return[m.clone().offset(0,-this.getMinOffset())]}return[]},c.prototype.getBeginOverlappedShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:return m.y<v.y?m.x>v.x?[]:[m.clone().offset(0,this.getMinOffset())]:m.y>this.endRect.bottom?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!1):[m.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.West:return m.y<v.y?m.x<v.x?[]:[m.clone().offset(0,this.getMinOffset())]:m.y>this.endRect.bottom?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!0):[m.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.South:return[m.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),m.x<v.x)}},c.prototype.getEndOverlappedShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:return v.y<m.y?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!1):m.x<v.x?[m.clone().offset(0,this.getMinOffset())]:[];case C.ConnectionPointSide.West:return v.y<m.y?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!0):m.x>v.x?[m.clone().offset(0,this.getMinOffset())]:[];case C.ConnectionPointSide.South:return[m.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:var x=this.getMinOffset();return this.beginRect.bottom>m.y&&(x+=this.beginRect.bottom-m.y),[m.clone().offset(0,x)]}},c.prototype.getBeginOnSideOffsetPoints=function(h,m,v,b){return[m.clone().offset(0,this.getScaleableOffsetY(m,v,!1))]},c.prototype.getEndOnSideOffsetPoints=function(h,m,v,b){return[m.clone().offset(0,this.getScaleableOffsetY(m,v,!0))]},c.prototype.getBeginOffSideOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(m,v,b,!1,!1);break;case C.ConnectionPointSide.West:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(m,v,b,!1,!0);break;case C.ConnectionPointSide.South:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(m,v,b,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.North:return this.getScaleableAsideOffsetPoints(m,v,b,!1)}return[m.clone().offset(0,this.getScaleableOffsetY(m,v,!1))]},c.prototype.getEndOffSideOffsetPoints=function(h,m,v,b){return h===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(m,v,b,!0):this.isBeginEndOverlappedX()?this.getScaleableAsideOffsetPoints(m,v,b,!0,this.beginRect.center.x>this.endRect.center.x):[m.clone().offset(0,this.getScaleableOffsetY(m,v,!0))]},c.prototype.getAsideOffsetPoints=function(h,m,v,b,x,O){var k=[];return void 0!==v&&(void 0===O&&(O=m.x<h.x),k.push(O?h.clone().offset(-(h.x-v.x+x),b):h.clone().offset(v.right-h.x+x,b))),k.push(h.clone().offset(0,b)),k},c.prototype.getScaleableAsideOffsetPoints=function(h,m,v,b,x){var O=this.getScaleableOffsetY(h,m,b),k=this.getScaleableOffsetX(h,m,b);return this.getAsideOffsetPoints(h,m,v,O,k,x)},c.prototype.getScaleableOffsetX=function(h,m,v){if(this.beginRect&&this.endRect&&!v&&!this.isBeginEndOverlappedX()){var b;if((b=m.x<h.x?this.beginRect.x-this.endRect.right:this.endRect.x-this.beginRect.right)<2*this.getMinOffset())return b/2}return this.getMinOffset()},c.prototype.getScaleableOffsetY=function(h,m,v){if(this.beginRect&&this.endRect){var b=v?this.beginRect.y-h.y:this.endRect.y-h.y;if(b>0&&b<2*this.getMinOffset())return b/2}return this.getMinOffset()},c.prototype.isOnSidePoint=function(h,m){return m.y>h.y},c.prototype.isDirectConnectionAllowed=function(h,m,v){return h===C.ConnectionPointSide.North||h===C.ConnectionPointSide.Undefined},c.prototype.getDirectConnectionPoints=function(h,m){var v=h.y+(m.y-h.y)/2;return[new g.ConnectorRenderPoint(h.x,v),new g.ConnectorRenderPoint(m.x,v)]},c}(y.ConnectorPointsOrthogonalSideCalculatorBase);D.ConnectorPointsOrthogonalSouthSideCalculator=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorPointsOrthogonalNorthSideCalculator=void 0;var C=w(9),y=w(52),g=w(29),p=function(d){function c(h){return d.call(this,h)||this}return I(c,d),c.prototype.getCorrectOriginPoint=function(h,m){return h.y>m.y&&(h=h.clone().offset(0,m.y-h.y)),h},c.prototype.getSameShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:case C.ConnectionPointSide.West:case C.ConnectionPointSide.North:return[m.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.South:return this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset())}},c.prototype.getOverlappedPointsOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.South:return[m.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return[m.clone().offset(0,-this.getMinOffset())]}return[]},c.prototype.getBeginOverlappedShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:return m.y>v.y?m.x>v.x?[]:[m.clone().offset(0,-this.getMinOffset())]:m.y<this.endRect.y?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!1):[m.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.West:return m.y>v.y?m.x<v.x?[]:[m.clone().offset(0,-this.getMinOffset())]:m.y<this.endRect.y?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!0):[m.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.North:return[m.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.South:return this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),m.x<v.x)}},c.prototype.getEndOverlappedShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:return v.y>m.y?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!1):m.x<v.x?[m.clone().offset(0,-this.getMinOffset())]:[];case C.ConnectionPointSide.West:return v.y>m.y?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!0):m.x>v.x?[m.clone().offset(0,-this.getMinOffset())]:[];case C.ConnectionPointSide.North:return[m.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.South:var x=-this.getMinOffset();return this.beginRect.y<m.y&&(x-=m.y-this.beginRect.y),[m.clone().offset(0,x)]}},c.prototype.getBeginOnSideOffsetPoints=function(h,m,v,b){return[m.clone().offset(0,-this.getScaleableOffsetY(m,v,!1))]},c.prototype.getEndOnSideOffsetPoints=function(h,m,v,b){return[m.clone().offset(0,-this.getScaleableOffsetY(m,v,!0))]},c.prototype.getBeginOffSideOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(m,v,b,!1,!1);break;case C.ConnectionPointSide.West:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(m,v,b,!1,!0);break;case C.ConnectionPointSide.North:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(m,v,b,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.South:return this.getScaleableAsideOffsetPoints(m,v,b,!1)}return[m.clone().offset(0,-this.getScaleableOffsetY(m,v,!1))]},c.prototype.getEndOffSideOffsetPoints=function(h,m,v,b){return h===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(m,v,b,!0):this.isBeginEndOverlappedX()?this.getScaleableAsideOffsetPoints(m,v,b,!0,this.beginRect.center.x>this.endRect.center.x):[m.clone().offset(0,-this.getScaleableOffsetY(m,v,!0))]},c.prototype.getAsideOffsetPoints=function(h,m,v,b,x,O){var k=[];return void 0!==v&&(void 0===O&&(O=m.x<h.x),k.push(O?h.clone().offset(-(h.x-v.x+x),-b):h.clone().offset(v.right-h.x+x,-b))),k.push(h.clone().offset(0,-b)),k},c.prototype.getScaleableAsideOffsetPoints=function(h,m,v,b,x){var O=this.getScaleableOffsetY(h,m,b),k=this.getScaleableOffsetX(h,m,b);return this.getAsideOffsetPoints(h,m,v,O,k,x)},c.prototype.getScaleableOffsetX=function(h,m,v){if(this.beginRect&&this.endRect&&!v&&!this.isBeginEndOverlappedX()){var b;if((b=m.x<h.x?this.beginRect.x-this.endRect.right:this.endRect.x-this.beginRect.right)<2*this.getMinOffset())return b/2}return this.getMinOffset()},c.prototype.getScaleableOffsetY=function(h,m,v){if(this.beginRect&&this.endRect){var b=v?h.y-this.beginRect.bottom:h.y-this.endRect.bottom;if(b>0&&b<2*this.getMinOffset())return b/2}return this.getMinOffset()},c.prototype.isOnSidePoint=function(h,m){return m.y<h.y},c.prototype.isDirectConnectionAllowed=function(h,m,v){return h===C.ConnectionPointSide.South||h===C.ConnectionPointSide.Undefined},c.prototype.getDirectConnectionPoints=function(h,m){var v=m.y+(h.y-m.y)/2;return[new g.ConnectorRenderPoint(h.x,v),new g.ConnectorRenderPoint(m.x,v)]},c}(y.ConnectorPointsOrthogonalSideCalculatorBase);D.ConnectorPointsOrthogonalNorthSideCalculator=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorPointsOrthogonalEastSideCalculator=void 0;var C=w(9),y=w(52),g=w(29),p=function(d){function c(h){return d.call(this,h)||this}return I(c,d),c.prototype.getCorrectOriginPoint=function(h,m){return h.x<m.right&&(h=h.clone().offset(m.right-h.x,0)),h},c.prototype.getSameShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.North:case C.ConnectionPointSide.South:case C.ConnectionPointSide.East:return[m.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset())}},c.prototype.getOverlappedPointsOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:return[m.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return[m.clone().offset(-this.getMinOffset(),0)]}return[]},c.prototype.getBeginOverlappedShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.North:return m.x<v.x?m.y<v.y?[]:[m.clone().offset(this.getMinOffset(),0)]:m.x>this.endRect.right?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!0):[m.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.South:return m.x<v.x?m.y>v.y?[]:[m.clone().offset(this.getMinOffset(),0)]:m.x>this.endRect.right?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!1):[m.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.East:return[m.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),m.y<v.y)}},c.prototype.getEndOverlappedShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:return[m.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:var x=this.getMinOffset();return this.beginRect.right>m.x&&(x+=this.beginRect.right-m.x),[m.clone().offset(x,0)];case C.ConnectionPointSide.North:return v.x<m.x?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!0):m.y>v.y?[m.clone().offset(this.getMinOffset(),0)]:[];case C.ConnectionPointSide.South:return v.x<m.x?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!1):m.y<v.y?[m.clone().offset(this.getMinOffset(),0)]:[]}},c.prototype.getBeginOnSideOffsetPoints=function(h,m,v,b){return[m.clone().offset(this.getScaleableOffsetX(m,v,!1),0)]},c.prototype.getEndOnSideOffsetPoints=function(h,m,v,b){return[m.clone().offset(this.getScaleableOffsetX(m,v,!0),0)]},c.prototype.getBeginOffSideOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.South:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(m,v,b,!1,!1);break;case C.ConnectionPointSide.North:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(m,v,b,!1,!0);break;case C.ConnectionPointSide.East:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(m,v,b,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.West:return this.getScaleableAsideOffsetPoints(m,v,b,!1)}return[m.clone().offset(this.getScaleableOffsetX(m,v,!1),0)]},c.prototype.getEndOffSideOffsetPoints=function(h,m,v,b){return h===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(m,v,b,!0):this.isBeginEndOverlappedY()?this.getScaleableAsideOffsetPoints(m,v,b,!0,this.beginRect.center.y>this.endRect.center.y):[m.clone().offset(this.getScaleableOffsetX(m,v,!0),0)]},c.prototype.getAsideOffsetPoints=function(h,m,v,b,x,O){var k=[];return void 0!==v&&(void 0===O&&(O=m.y<h.y),k.push(O?h.clone().offset(b,-(h.y-v.y+x)):h.clone().offset(b,v.bottom-h.y+x))),k.push(h.clone().offset(b,0)),k},c.prototype.getScaleableAsideOffsetPoints=function(h,m,v,b,x){var O=this.getScaleableOffsetX(h,m,b),k=this.getScaleableOffsetY(h,m,b);return this.getAsideOffsetPoints(h,m,v,O,k,x)},c.prototype.getScaleableOffsetX=function(h,m,v){if(this.beginRect&&this.endRect){var b=v?this.beginRect.x-h.x:this.endRect.x-h.x;if(b>0&&b<2*this.getMinOffset())return b/2}return this.getMinOffset()},c.prototype.getScaleableOffsetY=function(h,m,v){if(this.beginRect&&this.endRect&&!v&&!this.isBeginEndOverlappedY()){var b;if((b=m.y<h.y?this.beginRect.y-this.endRect.bottom:this.endRect.y-this.beginRect.bottom)<2*this.getMinOffset())return b/2}return this.getMinOffset()},c.prototype.isOnSidePoint=function(h,m){return m.x>h.x},c.prototype.isDirectConnectionAllowed=function(h,m,v){return h===C.ConnectionPointSide.West||h===C.ConnectionPointSide.Undefined},c.prototype.getDirectConnectionPoints=function(h,m){var v=h.x+(m.x-h.x)/2;return[new g.ConnectorRenderPoint(v,h.y),new g.ConnectorRenderPoint(v,m.y)]},c}(y.ConnectorPointsOrthogonalSideCalculatorBase);D.ConnectorPointsOrthogonalEastSideCalculator=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorPointsOrthogonalWestSideCalculator=void 0;var C=w(9),y=w(52),g=w(29),p=function(d){function c(h){return d.call(this,h)||this}return I(c,d),c.prototype.getCorrectOriginPoint=function(h,m){return h.x>m.x&&(h=h.clone().offset(m.x-h.x,0)),h},c.prototype.getSameShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.North:case C.ConnectionPointSide.South:case C.ConnectionPointSide.West:return[m.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.East:return this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset())}},c.prototype.getOverlappedPointsOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:return[m.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return[m.clone().offset(-this.getMinOffset(),0)]}return[]},c.prototype.getBeginOverlappedShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.North:return m.x>v.x?m.y<v.y?[]:[m.clone().offset(-this.getMinOffset(),0)]:m.x<this.endRect.x?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!0):[m.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.South:return m.x>v.x?m.y>v.y?[]:[m.clone().offset(-this.getMinOffset(),0)]:m.x<this.endRect.x?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!1):[m.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.West:return[m.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.East:return this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),m.y<v.y)}},c.prototype.getEndOverlappedShapeOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.East:var x=-this.getMinOffset();return this.beginRect.x<m.x&&(x-=m.x-this.beginRect.x),[m.clone().offset(x,0)];case C.ConnectionPointSide.West:return[m.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.North:return v.x>m.x?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!0):m.y>v.y?[m.clone().offset(-this.getMinOffset(),0)]:[];case C.ConnectionPointSide.South:return v.x>m.x?this.getAsideOffsetPoints(m,v,b,this.getMinOffset(),this.getMinOffset(),!1):m.y<v.y?[m.clone().offset(-this.getMinOffset(),0)]:[]}},c.prototype.getBeginOnSideOffsetPoints=function(h,m,v,b){return[m.clone().offset(-this.getScaleableOffsetX(m,!1),0)]},c.prototype.getEndOnSideOffsetPoints=function(h,m,v,b){return[m.clone().offset(-this.getScaleableOffsetX(m,!0),0)]},c.prototype.getBeginOffSideOffsetPoints=function(h,m,v,b){switch(h){case C.ConnectionPointSide.South:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(m,v,b,!1,!1);break;case C.ConnectionPointSide.North:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(m,v,b,!1,!0);break;case C.ConnectionPointSide.West:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(m,v,b,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.East:return this.getScaleableAsideOffsetPoints(m,v,b,!1)}return[m.clone().offset(-this.getScaleableOffsetX(m,!1),0)]},c.prototype.getEndOffSideOffsetPoints=function(h,m,v,b){return h===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(m,v,b,!0):this.isBeginEndOverlappedY()?this.getScaleableAsideOffsetPoints(m,v,b,!0,this.beginRect.center.y>this.endRect.center.y):[m.clone().offset(-this.getScaleableOffsetX(m,!0),0)]},c.prototype.getAsideOffsetPoints=function(h,m,v,b,x,O){var k=[];return void 0!==v&&(void 0===O&&(O=m.y<h.y),k.push(O?h.clone().offset(-b,-(h.y-v.y+x)):h.clone().offset(-b,v.bottom-h.y+x))),k.push(h.clone().offset(-b,0)),k},c.prototype.getScaleableAsideOffsetPoints=function(h,m,v,b,x){var O=this.getScaleableOffsetX(h,b),k=this.getScaleableOffsetY(h,m,b);return this.getAsideOffsetPoints(h,m,v,O,k,x)},c.prototype.getScaleableOffsetX=function(h,m){if(this.beginRect&&this.endRect){var v=m?h.x-this.beginRect.right:h.x-this.endRect.right;if(v>0&&v<2*this.getMinOffset())return v/2}return this.getMinOffset()},c.prototype.getScaleableOffsetY=function(h,m,v){if(this.beginRect&&this.endRect&&!v&&!this.isBeginEndOverlappedY()){var b;if((b=m.y<h.y?this.beginRect.y-this.endRect.bottom:this.endRect.y-this.beginRect.bottom)<2*this.getMinOffset())return b/2}return this.getMinOffset()},c.prototype.isOnSidePoint=function(h,m){return m.x<h.x},c.prototype.isDirectConnectionAllowed=function(h,m,v){return h===C.ConnectionPointSide.East||h===C.ConnectionPointSide.Undefined},c.prototype.getDirectConnectionPoints=function(h,m){var v=m.x+(h.x-m.x)/2;return[new g.ConnectorRenderPoint(v,h.y),new g.ConnectorRenderPoint(v,m.y)]},c}(y.ConnectorPointsOrthogonalSideCalculatorBase);D.ConnectorPointsOrthogonalWestSideCalculator=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorLineEndingFilledTriangleStrategy=D.ConnectorLineEndingOutlinedTriangleStrategy=D.ConnectorLineEndingArrowStrategy=D.ConnectorLineEndingNoneStrategy=D.ConnectorLineEndingStrategy=void 0;var C=w(3),y=w(5),g=function(){function m(v){this.style=v}return m.prototype.hasCommands=function(){return!0},m.prototype.needCreateSeparatePrimitive=function(){return!1},m.prototype.createPrimitive=function(){return new y.PathPrimitive([],this.getStyle(),this.getCssClass())},m.prototype.createCommands=function(v,b){return[]},m.prototype.getStyle=function(){var v=this.style.clone();return v.resetStrokeDashArray(),v},m.prototype.getCssClass=function(){},m}();D.ConnectorLineEndingStrategy=g;var p=function(m){function v(){return null!==m&&m.apply(this,arguments)||this}return I(v,m),v.prototype.hasCommands=function(){return!1},v}(g);D.ConnectorLineEndingNoneStrategy=p;var d=function(m){function v(){return null!==m&&m.apply(this,arguments)||this}return I(v,m),Object.defineProperty(v.prototype,"arrowHeight",{get:function(){return 6*this.style.strokeWidth},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"arrowWidth",{get:function(){return 2*this.style.strokeWidth},enumerable:!1,configurable:!0}),v.prototype.needCreateSeparatePrimitive=function(){return!this.style.isDefaultStrokeDashArray()},v.prototype.createCommands=function(b,x){var O=this.getArrowPoints(b,x),k=[new y.PathPrimitiveMoveToCommand(O.point1.x,O.point1.y),new y.PathPrimitiveLineToCommand(b.x,b.y),new y.PathPrimitiveLineToCommand(O.point2.x,O.point2.y)];return this.style.isDefaultStrokeDashArray()||(k=k.concat([new y.PathPrimitiveMoveToCommand(b.x,b.y),new y.PathPrimitiveLineToCommand(O.point3.x,O.point3.y)])),k},v.prototype.getArrowPoints=function(b,x){var O,k=this.arrowHeight;return b.x===x.x&&(O=Math.abs(b.y-x.y))<k&&(k=O),b.y===x.y&&(O=Math.abs(b.x-x.x))<k&&(k=O),C.GeometryUtils.getArrowPoints(b,x,k,this.arrowWidth)},v}(g);D.ConnectorLineEndingArrowStrategy=d;var c=function(m){function v(){return null!==m&&m.apply(this,arguments)||this}return I(v,m),v.prototype.needCreateSeparatePrimitive=function(){return!0},v.prototype.createCommands=function(b,x){var O=this.getArrowPoints(b,x);return[new y.PathPrimitiveMoveToCommand(O.point1.x,O.point1.y),new y.PathPrimitiveLineToCommand(b.x,b.y),new y.PathPrimitiveLineToCommand(O.point2.x,O.point2.y),new y.PathPrimitiveClosePathCommand]},v.prototype.getCssClass=function(){return"outlined-line-ending"},v}(d);D.ConnectorLineEndingOutlinedTriangleStrategy=c;var h=function(m){function v(){return null!==m&&m.apply(this,arguments)||this}return I(v,m),v.prototype.getStyle=function(){var b=m.prototype.getStyle.call(this);return b.fill=b.stroke,b},v.prototype.getCssClass=function(){return"filled-line-ending"},v}(c);D.ConnectorLineEndingFilledTriangleStrategy=h},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorTexts=D.ConnectorText=void 0;var E=function(C,y){this.position=C,this.value=y};D.ConnectorText=E;var I=function(){function C(){this.items={}}return C.prototype.get=function(y){return this.items[y]},C.prototype.set=function(y,g){this.items[y]=g},C.prototype.remove=function(y){delete this.items[y]},C.prototype.map=function(y){var g=[];return this.forEach(function(p){return g.push(y(p))}),g},C.prototype.forEach=function(y){for(var g in this.items)Object.prototype.hasOwnProperty.call(this.items,g)&&y(this.items[g])},C.prototype.count=function(){return Object.keys(this.items).length},C.prototype.clone=function(){var y=new C;return this.forEach(function(g){y.set(g.position,new E(g.position,g.value))}),y},C.prototype.toObject=function(){var y={},g=!1;return this.forEach(function(p){y[p.position]=p.value,g=!0}),g?y:null},C.prototype.fromObject=function(y){for(var g in y)if(Object.prototype.hasOwnProperty.call(y,g)){var p=parseFloat(g);isNaN(p)||"string"!=typeof y[g]||this.set(p,new E(p,y[g]))}},C}();D.ConnectorTexts=I},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.AddConnectorPointHistoryItem=void 0;var C=function(y){function g(p,d,c){var h=y.call(this)||this;return h.connectorKey=p,h.pointIndex=d,h.point=c,h}return I(g,y),g.prototype.redo=function(p){var d=this,c=p.model.findConnector(this.connectorKey);this.renderContext=c.tryCreateRenderPointsContext(),p.addDeleteConnectorPoint(c,function(h){h.addPoint(d.pointIndex,d.point),h.onAddPoint(d.pointIndex,d.point)})},g.prototype.undo=function(p){var d=this,c=p.model.findConnector(this.connectorKey);p.addDeleteConnectorPoint(c,function(h){h.deletePoint(d.pointIndex),h.replaceRenderPoints(d.renderContext)})},g}(w(8).HistoryItem);D.AddConnectorPointHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.InsertToContainerHistoryItem=void 0;var C=function(y){function g(p,d){var c=y.call(this)||this;return c.containerKey=d.key,c.itemKey=p.key,c}return I(g,y),g.prototype.redo=function(p){var d=p.model.findItem(this.itemKey),c=p.model.findShape(this.containerKey);p.insertToContainer(d,c)},g.prototype.undo=function(p){var d=p.model.findItem(this.itemKey);p.removeFromContainer(d)},g}(w(8).HistoryItem);D.InsertToContainerHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.MoveConnectorRightAnglePointsHistoryItem=D.MoveConnectorPointHistoryItem=void 0;var C=w(8),y=function(p){function d(c,h,m){var v=p.call(this)||this;return v.connectorKey=c,v.pointIndex=h,v.newPoint=m,v}return I(d,p),d.prototype.redo=function(c){var h=this,m=c.model.findConnector(this.connectorKey);this.oldPoint=m.points[this.pointIndex].clone(),this.renderContext=m.tryCreateRenderPointsContext(),c.moveConnectorPoint(m,this.pointIndex,function(v){v.movePoint(h.pointIndex,h.newPoint),v.onMovePoint(h.pointIndex,h.newPoint)})},d.prototype.undo=function(c){var h=this,m=c.model.findConnector(this.connectorKey);c.moveConnectorPoint(m,this.pointIndex,function(v){v.movePoint(h.pointIndex,h.oldPoint),v.replaceRenderPoints(h.renderContext)})},d}(C.HistoryItem);D.MoveConnectorPointHistoryItem=y;var g=function(p){function d(c,h,m,v,b){var x=p.call(this)||this;return x.connectorKey=c,x.beginPointIndex=h,x.newBeginPoint=m,x.lastPointIndex=v,x.newLastPoint=b,x}return I(d,p),d.prototype.redo=function(c){var h=this,m=c.model.findConnector(this.connectorKey);this.oldBeginPoint=m.points[this.beginPointIndex].clone(),this.oldLastPoint=m.points[this.lastPointIndex].clone(),this.renderContext=m.tryCreateRenderPointsContext(),c.changeConnectorPoints(m,function(v){v.movePoint(h.beginPointIndex,h.newBeginPoint),v.movePoint(h.lastPointIndex,h.newLastPoint),v.onMovePoints(h.beginPointIndex,h.newBeginPoint,h.lastPointIndex,h.newLastPoint)})},d.prototype.undo=function(c){var h=this,m=c.model.findConnector(this.connectorKey);c.changeConnectorPoints(m,function(v){v.movePoint(h.beginPointIndex,h.oldBeginPoint),v.movePoint(h.lastPointIndex,h.oldLastPoint),v.replaceRenderPoints(h.renderContext)})},d}(C.HistoryItem);D.MoveConnectorRightAnglePointsHistoryItem=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.MoveShapeHistoryItem=void 0;var C=function(y){function g(p,d){var c=y.call(this)||this;return c.shapeKey=p,c.position=d,c}return I(g,y),g.prototype.redo=function(p){var d=p.model.findShape(this.shapeKey);this.oldPosition=d.position.clone(),p.moveShape(d,this.position)},g.prototype.undo=function(p){var d=p.model.findShape(this.shapeKey);p.moveShape(d,this.oldPosition)},g}(w(8).HistoryItem);D.MoveShapeHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.RemoveFromContainerHistoryItem=void 0;var C=function(y){function g(p){var d=y.call(this)||this;return d.itemKey=p.key,d}return I(g,y),g.prototype.redo=function(p){var d=p.model.findItem(this.itemKey);this.containerKey=d.container&&d.container.key,p.removeFromContainer(d)},g.prototype.undo=function(p){var d=p.model.findContainer(this.containerKey),c=p.model.findItem(this.itemKey);p.insertToContainer(c,d)},g}(w(8).HistoryItem);D.RemoveFromContainerHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ModelResizeHistoryItem=void 0;var C=w(8),y=w(87),g=w(2),p=function(d){function c(h){var m=d.call(this)||this;return m.offset=h,m}return I(c,d),c.prototype.redo=function(h){this.oldSize=h.model.size.clone(),this.backOffset=new y.Offsets(-this.offset.left,-this.offset.right,-this.offset.top,-this.offset.bottom);var m=Math.max(this.oldSize.width+this.offset.left+this.offset.right,h.model.pageWidth),v=Math.max(this.oldSize.height+this.offset.top+this.offset.bottom,h.model.pageHeight);h.changeModelSize(new g.Size(m,v),this.offset)},c.prototype.undo=function(h){h.changeModelSize(this.oldSize,this.backOffset)},c}(C.HistoryItem);D.ModelResizeHistoryItem=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.UpdatePositionsOnPageResizeHistoryItem=void 0;var C=w(6),y=w(14),g=function(p){function d(c){var h=p.call(this)||this;return h.offset=c,h}return I(d,p),d.prototype.redo=function(c){var h=this;c.model.iterateItems(function(m){m instanceof y.Shape&&c.moveShape(m,h.applyOffset(m.position,h.offset.x,h.offset.y)),m instanceof C.Connector&&c.changeConnectorPoints(m,function(v){return v.updatePointsOnPageResize(h.offset.x,h.offset.y)})})},d.prototype.undo=function(c){var h=this;c.model.iterateItems(function(m){m instanceof y.Shape&&c.moveShape(m,h.applyOffset(m.position,-h.offset.x,-h.offset.y)),m instanceof C.Connector&&c.changeConnectorPoints(m,function(v){return v.updatePointsOnPageResize(-h.offset.x,-h.offset.y)})})},d.prototype.applyOffset=function(c,h,m){return c.clone().offset(h,m)},d}(w(8).HistoryItem);D.UpdatePositionsOnPageResizeHistoryItem=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GraphInfo=void 0;var E=w(196),I=function(){function C(y,g){this.container=y,this.sourceGraph=g}return Object.defineProperty(C.prototype,"graph",{get:function(){return this._graph||(this._graph=this.getNodeInfoGraph())},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"level",{get:function(){return void 0!==this._level?this._level:this._level=this.getLevel()},enumerable:!1,configurable:!0}),C.prototype.getNodeInfoGraph=function(){return this.sourceGraph.cast(E.LayoutUtils.shapeToLayout)},C.prototype.getLevel=function(){var y=0;return this.container&&(y=this.getContainerLevel(this.container)),y},C.prototype.getContainerLevel=function(y){var g=1,p=y.container;return p&&(g+=this.getContainerLevel(p)),g},C}();D.GraphInfo=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.LayoutUtils=void 0;var E=w(71),I=function(){function C(){}return C.shapeToLayout=function(y){var g=new E.Margin(0),p=y.rectangle;y.attachedConnectors.filter(function(c){return!c.beginItem||!c.endItem}).forEach(function(c){var h=c.rectangle;g.left=Math.max(g.left,p.x-h.x),g.right=Math.max(g.right,h.right-p.right),g.top=Math.max(g.top,p.y-h.y),g.bottom=Math.max(g.bottom,h.bottom-p.bottom)});var d=new E.NodeInfo(y.key,g,y.size.clone());return d.connectionPoints=y.description.getConnectionPoints(),d},C}();D.LayoutUtils=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CommandBase=void 0;var E=function(){function I(C){this.control=C}return I.prototype.execute=function(C){this.isPermissionsRequired&&this.permissionsProvider.lockPermissions();var y=this.getState();if(this.isPermissionsRequired&&this.permissionsProvider.unlockPermissions(),!y.enabled)return!1;this.control.beginUpdate();var g;return g=this.isPermissionsRequired?this.executeWithPermissions(y,C):this.executeCore(y,C),this.control.endUpdate(),g&&this.updateControlState(),g},I.prototype.executeWithPermissions=function(C,y){var g=!1;return this.permissionsProvider.beginStorePermissions(),this.control.history.beginTransaction(),g=this.executeCore(C,y),this.permissionsProvider.isStoredPermissionsGranted()||(this.permissionsProvider.lockPermissions(),this.control.history.undoTransaction(),this.permissionsProvider.unlockPermissions(),g=!1),this.control.history.endTransaction(),this.permissionsProvider.endStorePermissions(),g},I.prototype.updateControlState=function(){this.lockInputPositionUpdating()||this.control.selection.inputPosition.reset(),this.lockUIUpdating()||this.control.barManager.updateItemsState()},Object.defineProperty(I.prototype,"permissionsProvider",{get:function(){return this.control&&this.control.permissionsProvider},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"isPermissionsRequired",{get:function(){return!1},enumerable:!1,configurable:!0}),I.prototype.lockUIUpdating=function(){return!1},I.prototype.lockInputPositionUpdating=function(){return!1},I}();D.CommandBase=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.SimpleCommandState=void 0,D.SimpleCommandState=function(I,C,y,g,p){this.visible=!0,this.denyUpdateValue=!1,this.enabled=I,this.value=C,this.items=g,this.visible=p,this.defaultValue=y}},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.UndoCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.executeCore=function(p){return this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.control.history.undo(),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas(),!0},g.prototype.isEnabled=function(){return y.prototype.isEnabled.call(this)&&this.control.history.canUndo()},g}(w(10).SimpleCommandBase);D.UndoCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.RedoCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.executeCore=function(p){return this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.control.history.redo(),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas(),!0},g.prototype.isEnabled=function(){return y.prototype.isEnabled.call(this)&&this.control.history.canRedo()},g}(w(10).SimpleCommandBase);D.RedoCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.ImportCommand=void 0;var C=w(119),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.executeCore=function(d,c){this.permissionsProvider.lockPermissions();var m=new C.Importer(this.control.shapeDescriptionManager,c.data?c.data:c);if(!0===c.keepExistingItems)m.importItemsData(this.control.model),this.control.importItemsData();else{var v=m.import();this.control.importModel(v)}return this.permissionsProvider.unlockPermissions(),!0},p}(w(57).ExportImportCommandBase);D.ImportCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ProcessShapeDescription=void 0;var C=w(19),y=w(1),g=function(p){function d(){return p.call(this,void 0,!0)||this}return I(d,p),Object.defineProperty(d.prototype,"key",{get:function(){return y.ShapeTypes.Process},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d}(C.RectangleShapeDescription);D.ProcessShapeDescription=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.DecisionShapeDescription=void 0;var C=w(120),y=w(1),g=w(2),p=w(7),d=function(c){function h(){return c.call(this,new g.Size(p.ShapeDefaultDimension,.75*p.ShapeDefaultDimension),!0)||this}return I(h,c),Object.defineProperty(h.prototype,"key",{get:function(){return y.ShapeTypes.Decision},enumerable:!1,configurable:!0}),h}(C.DiamondShapeDescription);D.DecisionShapeDescription=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.ManualInputShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(9),d=w(7),c=function(h){function m(){return h.call(this,void 0,!0)||this}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return y.ShapeTypes.ManualInput},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),m.prototype.createShapePrimitives=function(v){var b=v.rectangle,x=b.x,O=b.y,k=b.right,M=b.bottom;return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(x,O+b.height*m.slopeHeightRatio),new g.PathPrimitiveLineToCommand(k,O),new g.PathPrimitiveLineToCommand(k,M),new g.PathPrimitiveLineToCommand(x,M),new g.PathPrimitiveClosePathCommand],v.style)]},m.prototype.processConnectionPoint=function(v,b){v.getConnectionPointSide(b)===p.ConnectionPointSide.North&&(b.y+=m.slopeHeightRatio/2*v.size.height)},m.prototype.getTextRectangle=function(v){var b=v.size.height*m.slopeHeightRatio;return v.rectangle.clone().moveRectangle(d.ShapeTextPadding,b).resize(2*-d.ShapeTextPadding,-b-d.ShapeTextPadding).nonNegativeSize()},m.slopeHeightRatio=.1,m}(C.RectangleShapeDescription);D.ManualInputShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.DataShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(9),d=w(7),c=function(h){function m(){return h.call(this,void 0,!0)||this}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return y.ShapeTypes.Data},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),m.prototype.createShapePrimitives=function(v){var b=v.rectangle,x=b.x,O=b.y,k=b.right,M=b.bottom,A=b.width,P=Math.min(Math.max(0,b.height/Math.tan(m.slopeAngle)),A),B=k-P;return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(x+P,O),new g.PathPrimitiveLineToCommand(k,O),new g.PathPrimitiveLineToCommand(B,M),new g.PathPrimitiveLineToCommand(x,M),new g.PathPrimitiveClosePathCommand],v.style)]},m.prototype.processConnectionPoint=function(v,b){var x=v.size.height/Math.tan(m.slopeAngle),O=v.getConnectionPointSide(b);O===p.ConnectionPointSide.East?b.x-=x/2:O===p.ConnectionPointSide.West&&(b.x+=x/2)},m.prototype.getTextRectangle=function(v){var b=Math.min(Math.max(0,v.size.height/Math.tan(m.slopeAngle)),v.size.width);return v.rectangle.clone().moveRectangle(b,d.ShapeTextPadding).resize(2*-b,2*-d.ShapeTextPadding)},m.slopeAngle=81*Math.PI/180,m}(C.RectangleShapeDescription);D.DataShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(v,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var k in O)O.hasOwnProperty(k)&&(x[k]=O[k])})(v,b)},function(v,b){function x(){this.constructor=v}E(v,b),v.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Object.defineProperty(D,"__esModule",{value:!0}),D.TerminatorShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(2),d=w(7),c=w(13),h=w(3),m=function(v){function b(){return v.call(this,new p.Size(d.ShapeDefaultDimension,.5*d.ShapeDefaultDimension),!0)||this}return I(b,v),Object.defineProperty(b.prototype,"key",{get:function(){return y.ShapeTypes.Terminator},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),b.prototype.createShapePrimitives=function(x){var O=x.rectangle,k=O.x,M=O.y,A=O.right,F=O.bottom,P=O.width,N=O.center.y,B=k+P*b.curveWidthRatio,V=k+P*(1-b.curveWidthRatio);return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(B,M),new g.PathPrimitiveLineToCommand(V,M),new g.PathPrimitiveQuadraticCurveToCommand(A,M,A,N),new g.PathPrimitiveQuadraticCurveToCommand(A,F,V,F),new g.PathPrimitiveLineToCommand(B,F),new g.PathPrimitiveQuadraticCurveToCommand(k,F,k,N),new g.PathPrimitiveQuadraticCurveToCommand(k,M,B,M),new g.PathPrimitiveClosePathCommand],x.style)]},b.prototype.getTextRectangle=function(x){var O=h.GeometryUtils.getMaxRectangleEnscribedInEllipse(x.size);return c.Rectangle.fromGeometry(x.position.clone().offset((x.size.width-O.width)/2,(x.size.height-O.height)/2),O)},b.prototype.getSizeByText=function(x,O){return h.GeometryUtils.getEllipseByEnscribedRectangle(x)},b.curveWidthRatio=.3,b}(C.RectangleShapeDescription);D.TerminatorShapeDescription=m},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.PredefinedProcessShapeDescription=D.PredefinedProcessEdgeParameterName=void 0;var C=w(19),y=w(1),g=w(37),p=w(30),d=w(0),c=w(5);D.PredefinedProcessEdgeParameterName="e";var h=function(m){function v(){return m.call(this,void 0,!0)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return y.ShapeTypes.PredefinedProcess},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,k=x.y,M=x.right,A=x.bottom,F=x.x+b.parameters.get(D.PredefinedProcessEdgeParameterName).value,P=M-b.parameters.get(D.PredefinedProcessEdgeParameterName).value;return m.prototype.createShapePrimitives.call(this,b).concat([new c.PathPrimitive([new c.PathPrimitiveMoveToCommand(F,k),new c.PathPrimitiveLineToCommand(F,A),new c.PathPrimitiveMoveToCommand(P,k),new c.PathPrimitiveLineToCommand(P,A)],b.style)])},v.prototype.createParameters=function(b){b.add(new g.ShapeParameter(D.PredefinedProcessEdgeParameterName,.1*this.defaultSize.width))},v.prototype.normalizeParameters=function(b,x){this.changeParameterValue(x,D.PredefinedProcessEdgeParameterName,function(O){return Math.max(v.minEdge,Math.min(.3*b.size.width,O.value))})},v.prototype.modifyParameters=function(b,x,O,k){this.changeParameterValue(x,D.PredefinedProcessEdgeParameterName,function(M){return M.value+O}),this.normalizeParameters(b,x)},v.prototype.getParameterPoints=function(b){return[new p.ShapeParameterPoint("c",new d.Point(b.normalizeX(b.position.x+b.parameters.get(D.PredefinedProcessEdgeParameterName).value),b.position.y))]},v.prototype.getTextRectangle=function(b){var x=b.rectangle,O=b.parameters.get(D.PredefinedProcessEdgeParameterName).value;return x.clone().resize(-2*O,0).clone().moveRectangle(O,0)},v.minEdge=72,v}(C.RectangleShapeDescription);D.PredefinedProcessShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.ArrowUpDownShapeDescription=void 0;var C=w(5),y=w(30),g=w(0),p=w(92),d=w(1),c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return d.ShapeTypes.ArrowUpDown},enumerable:!1,configurable:!0}),m.prototype.createShapePrimitives=function(v){var b=v.rectangle,x=b.x,O=b.y,k=b.right,M=b.bottom,F=b.center.x,P=(b.width-v.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2,N=v.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value,B=v.normalizeX(x+P),V=v.normalizeY(O+N),H=v.normalizeX(k-P),W=v.normalizeY(M-N);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(F,O),new C.PathPrimitiveLineToCommand(k,V),new C.PathPrimitiveLineToCommand(H,V),new C.PathPrimitiveLineToCommand(H,W),new C.PathPrimitiveLineToCommand(k,W),new C.PathPrimitiveLineToCommand(F,M),new C.PathPrimitiveLineToCommand(x,W),new C.PathPrimitiveLineToCommand(B,W),new C.PathPrimitiveLineToCommand(B,V),new C.PathPrimitiveLineToCommand(x,V),new C.PathPrimitiveClosePathCommand],v.style)]},m.prototype.normalizeParameters=function(v,b){this.changeParameterValue(b,p.ArrowVerticalTriangleHeightParameterName,function(x){return Math.max(0,Math.min(v.size.height/2-2*v.strokeWidth,x.value))}),this.changeParameterValue(b,p.ArrowVerticalLineWidthParameterName,function(x){return Math.max(0,Math.min(v.size.width,x.value))})},m.prototype.modifyParameters=function(v,b,x,O){this.changeParameterValue(b,p.ArrowVerticalTriangleHeightParameterName,function(k){return k.value+O}),this.changeParameterValue(b,p.ArrowVerticalLineWidthParameterName,function(k){return k.value-2*x}),this.normalizeParameters(v,b)},m.prototype.getParameterPoints=function(v){return[new y.ShapeParameterPoint("c",new g.Point(v.normalizeX(v.position.x+(v.size.width-v.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2),v.normalizeY(v.position.y+v.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value)))]},m}(p.ArrowVerticalShapeDescription);D.ArrowUpDownShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.ArrowRightShapeDescription=void 0;var C=w(5),y=w(93),g=w(30),p=w(0),d=w(1),c=w(9),h=function(m){function v(){return null!==m&&m.apply(this,arguments)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return d.ShapeTypes.ArrowRight},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,O=x.x,k=x.y,M=x.right,A=x.bottom,P=x.height,N=x.center.y,B=x.width-b.parameters.get(y.ArrowVerticalTriangleWidthParameterName).value,V=(P-b.parameters.get(y.ArrowVerticalLineHeightParameterName).value)/2,H=b.normalizeX(O+B),W=b.normalizeY(k+V),q=b.normalizeY(A-V);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(O,W),new C.PathPrimitiveLineToCommand(H,W),new C.PathPrimitiveLineToCommand(H,k),new C.PathPrimitiveLineToCommand(M,N),new C.PathPrimitiveLineToCommand(H,A),new C.PathPrimitiveLineToCommand(H,q),new C.PathPrimitiveLineToCommand(O,q),new C.PathPrimitiveClosePathCommand],b.style)]},v.prototype.modifyParameters=function(b,x,O,k){this.changeParameterValue(x,y.ArrowVerticalTriangleWidthParameterName,function(M){return M.value-O}),this.changeParameterValue(x,y.ArrowVerticalLineHeightParameterName,function(M){return M.value-2*k}),this.normalizeParameters(b,x)},v.prototype.getParameterPoints=function(b){return[new g.ShapeParameterPoint("c",new p.Point(b.normalizeX(b.position.x+b.size.width-b.parameters.get(y.ArrowVerticalTriangleWidthParameterName).value),b.normalizeY(b.position.y+(b.size.height-b.parameters.get(y.ArrowVerticalLineHeightParameterName).value)/2)))]},v.prototype.processConnectionPoint=function(b,x){var O=b.parameters.get(y.ArrowVerticalTriangleWidthParameterName).value;if(x.x>b.position.x+b.size.width-O){var M=b.size.height/2/O*(x.x-(b.position.x+b.size.width-O)),A=b.getConnectionPointSide(x);A===c.ConnectionPointSide.North?x.y+=M:A===c.ConnectionPointSide.South&&(x.y-=M)}else m.prototype.processConnectionPoint.call(this,b,x)},v}(y.ArrowHorizontalShapeDescription);D.ArrowRightShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.ArrowUpShapeDescription=void 0;var C=w(5),y=w(30),g=w(0),p=w(92),d=w(1),c=w(9),h=function(m){function v(){return null!==m&&m.apply(this,arguments)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return d.ShapeTypes.ArrowUp},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,O=x.x,k=x.y,M=x.right,A=x.bottom,P=x.center.x,N=(x.width-b.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2,B=b.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value,V=b.normalizeX(O+N),H=b.normalizeY(k+B),W=b.normalizeX(M-N);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(P,k),new C.PathPrimitiveLineToCommand(M,H),new C.PathPrimitiveLineToCommand(W,H),new C.PathPrimitiveLineToCommand(W,A),new C.PathPrimitiveLineToCommand(V,A),new C.PathPrimitiveLineToCommand(V,H),new C.PathPrimitiveLineToCommand(O,H),new C.PathPrimitiveClosePathCommand],b.style)]},v.prototype.modifyParameters=function(b,x,O,k){this.changeParameterValue(x,p.ArrowVerticalTriangleHeightParameterName,function(M){return M.value+k}),this.changeParameterValue(x,p.ArrowVerticalLineWidthParameterName,function(M){return M.value-2*O}),this.normalizeParameters(b,x)},v.prototype.getParameterPoints=function(b){return[new y.ShapeParameterPoint("c",new g.Point(b.normalizeX(b.position.x+(b.size.width-b.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2),b.normalizeY(b.position.y+b.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value)))]},v.prototype.processConnectionPoint=function(b,x){var O=b.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value;if(x.y<b.position.y+O){var M=b.size.width/2/O*(b.position.y+O-x.y),A=b.getConnectionPointSide(x);A===c.ConnectionPointSide.East?x.x-=M:A===c.ConnectionPointSide.West&&(x.x+=M)}else m.prototype.processConnectionPoint.call(this,b,x)},v}(p.ArrowVerticalShapeDescription);D.ArrowUpShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.CrossShapeDescription=D.CrossVerticalWidthParameterName=D.CrossHorizontalWidthParameterName=void 0;var C=w(7),y=w(0),g=w(37),p=w(30),d=w(5),c=w(1);D.CrossHorizontalWidthParameterName="chw",D.CrossVerticalWidthParameterName="cvw";var h=function(m){function v(){return null!==m&&m.apply(this,arguments)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return c.ShapeTypes.Cross},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,O=x.x,k=x.y,M=x.right,A=x.bottom,P=x.height,N=(x.width-b.parameters.get(D.CrossHorizontalWidthParameterName).value)/2,B=(P-b.parameters.get(D.CrossVerticalWidthParameterName).value)/2,V=b.normalizeX(O+N),H=b.normalizeY(k+B),W=b.normalizeX(M-N),q=b.normalizeY(A-B);return[new d.PathPrimitive([new d.PathPrimitiveMoveToCommand(O,H),new d.PathPrimitiveLineToCommand(V,H),new d.PathPrimitiveLineToCommand(V,k),new d.PathPrimitiveLineToCommand(W,k),new d.PathPrimitiveLineToCommand(W,H),new d.PathPrimitiveLineToCommand(M,H),new d.PathPrimitiveLineToCommand(M,q),new d.PathPrimitiveLineToCommand(W,q),new d.PathPrimitiveLineToCommand(W,A),new d.PathPrimitiveLineToCommand(V,A),new d.PathPrimitiveLineToCommand(V,q),new d.PathPrimitiveLineToCommand(O,q),new d.PathPrimitiveClosePathCommand],b.style)]},v.prototype.createParameters=function(b){b.addRange([new g.ShapeParameter(D.CrossHorizontalWidthParameterName,.2*this.defaultSize.width),new g.ShapeParameter(D.CrossVerticalWidthParameterName,.2*this.defaultSize.height)])},v.prototype.normalizeParameters=function(b,x){this.changeParameterValue(x,D.CrossHorizontalWidthParameterName,function(O){return Math.max(0,Math.min(b.size.width,O.value))}),this.changeParameterValue(x,D.CrossVerticalWidthParameterName,function(O){return Math.max(0,Math.min(b.size.height,O.value))})},v.prototype.modifyParameters=function(b,x,O,k){this.changeParameterValue(x,D.CrossHorizontalWidthParameterName,function(M){return M.value-2*O}),this.changeParameterValue(x,D.CrossVerticalWidthParameterName,function(M){return M.value-2*k}),this.normalizeParameters(b,x)},v.prototype.getParameterPoints=function(b){return[new p.ShapeParameterPoint("c",new y.Point(b.normalizeX(b.position.x+(b.size.width-b.parameters.get(D.CrossHorizontalWidthParameterName).value)/2),b.normalizeY(b.position.y+(b.size.height-b.parameters.get(D.CrossVerticalWidthParameterName).value)/2)))]},v.prototype.getTextRectangle=function(b){return b.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},v.prototype.getSizeByText=function(b,x){return b.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},v}(C.ShapeDescription);D.CrossShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.HeartShapeDescription=void 0;var C=w(7),y=w(5),g=w(1),p=w(45),d=w(9),c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return g.ShapeTypes.Heart},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),m.prototype.createConnectionPoints=function(){return[new p.ConnectionPoint(.5,.15,d.ConnectionPointSide.North),new p.ConnectionPoint(1,.25,d.ConnectionPointSide.East),new p.ConnectionPoint(.5,1,d.ConnectionPointSide.South),new p.ConnectionPoint(0,.25,d.ConnectionPointSide.West)]},m.prototype.createShapePrimitives=function(v){var b=v.rectangle,x=b.x,O=b.y,k=b.right,M=b.bottom,A=b.width,F=b.height;return[new y.PathPrimitive([new y.PathPrimitiveMoveToCommand(k-.25*A,O),new y.PathPrimitiveCubicCurveToCommand(k-.15*A,O,k,O+.1*F,k,O+.25*F),new y.PathPrimitiveCubicCurveToCommand(k,O+.3*F,k-.02*A,O+.35*F,k-.05*A,O+.4*F),new y.PathPrimitiveLineToCommand(b.center.x,M),new y.PathPrimitiveLineToCommand(x+.05*A,O+.4*F),new y.PathPrimitiveCubicCurveToCommand(x+.02*A,O+.35*F,x,O+.3*F,x,O+.25*F),new y.PathPrimitiveCubicCurveToCommand(x,O+.1*F,x+.15*A,O,x+.25*A,O),new y.PathPrimitiveCubicCurveToCommand(x+.3*A,O,x+.45*A,O+.03*F,x+.5*A,O+.15*F),new y.PathPrimitiveCubicCurveToCommand(k-.45*A,O+.03*F,k-.3*A,O,k-.25*A,O),new y.PathPrimitiveClosePathCommand],v.style)]},m.prototype.getTextRectangle=function(v){return v.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},m.prototype.getSizeByText=function(v,b){return b.size.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},m}(C.ShapeDescription);D.HeartShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.OctagonShapeDescription=void 0;var C=w(5),y=w(1),g=w(94),p=w(3),d=w(13),c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return y.ShapeTypes.Octagon},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"angleCount",{get:function(){return 8},enumerable:!1,configurable:!0}),m.prototype.createShapePrimitives=function(v){var b=v.rectangle,x=b.x,O=b.y,k=b.right,M=b.bottom,A=b.width,F=b.height,P=Math.PI-this.angle,N=A/(1+2*Math.cos(P)),B=F/(1+2*Math.cos(P)),V=x+(A-N)/2,H=V+N,W=O+(F-B)/2,q=W+B;return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(V,O),new C.PathPrimitiveLineToCommand(H,O),new C.PathPrimitiveLineToCommand(k,W),new C.PathPrimitiveLineToCommand(k,q),new C.PathPrimitiveLineToCommand(H,M),new C.PathPrimitiveLineToCommand(V,M),new C.PathPrimitiveLineToCommand(x,q),new C.PathPrimitiveLineToCommand(x,W),new C.PathPrimitiveClosePathCommand],v.style)]},m.prototype.calculateHeight=function(v){return v},m.prototype.getTextRectangle=function(v){var b=p.GeometryUtils.getMaxRectangleEnscribedInEllipse(v.size);return d.Rectangle.fromGeometry(v.position.clone().offset((v.size.width-b.width)/2,(v.size.height-b.height)/2),b)},m.prototype.getSizeByText=function(v,b){return p.GeometryUtils.getEllipseByEnscribedRectangle(v)},m}(g.PolygonShapeDescription);D.OctagonShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(v,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var k in O)O.hasOwnProperty(k)&&(x[k]=O[k])})(v,b)},function(v,b){function x(){this.constructor=v}E(v,b),v.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Object.defineProperty(D,"__esModule",{value:!0}),D.StarShapeDescription=D.StarConvexParameterName=void 0;var C=w(5),y=w(1),g=w(122),p=w(37),d=w(30),c=w(0),h=w(9);D.StarConvexParameterName="sc";var m=function(v){function b(){return null!==v&&v.apply(this,arguments)||this}return I(b,v),Object.defineProperty(b.prototype,"key",{get:function(){return y.ShapeTypes.Star},enumerable:!1,configurable:!0}),b.prototype.createShapePrimitives=function(x){var O=x.rectangle,k=O.x,M=O.y,A=O.right,F=O.width,P=O.height,N=this.getActualBottom(M,O.bottom,F,P),B=O.center.x,V=M+(N-M)/2,H=P/F,W=Math.PI-this.angle,q=F/2*Math.tan(W/2)*H,G=M+q,J=(P-q)/Math.tan(W)/H,ne=k+J,ae=A-J,ge=x.parameters.get(D.StarConvexParameterName).value,pe=this.getInnerPointDistance(B,B,A,V,M,G);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(B,M),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(B,B,A,ge,pe),this.getInnerPointPos(V,M,G,ge,pe)),new C.PathPrimitiveLineToCommand(A,G),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(B,A,ae,ge,pe),this.getInnerPointPos(V,G,N,ge,pe)),new C.PathPrimitiveLineToCommand(ae,N),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(B,ae,ne,ge,pe),this.getInnerPointPos(V,N,N,ge,pe)),new C.PathPrimitiveLineToCommand(ne,N),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(B,ne,k,ge,pe),this.getInnerPointPos(V,N,G,ge,pe)),new C.PathPrimitiveLineToCommand(k,G),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(B,k,B,ge,pe),this.getInnerPointPos(V,G,M,ge,pe)),new C.PathPrimitiveClosePathCommand],x.style)]},b.prototype.createParameters=function(x){x.addRange([new p.ShapeParameter(D.StarConvexParameterName,300)])},b.prototype.normalizeParameters=function(x,O){var k=x.rectangle,M=k.y,A=k.right,F=k.width,P=k.height,N=this.getActualBottom(M,k.bottom,F,P),B=k.center.x,V=M+(N-M)/2,H=P/F,W=Math.PI-this.angle,q=M+F/2*Math.tan(W/2)*H,G=this.getInnerPointDistance(B,B,A,V,M,q);this.changeParameterValue(O,D.StarConvexParameterName,function(J){return Math.max(0,Math.min(G,J.value))})},b.prototype.modifyParameters=function(x,O,k,M){var A=Math.sqrt(Math.pow(k,2)+Math.pow(M,2));(k<0||M>0)&&(A=-A),this.changeParameterValue(O,D.StarConvexParameterName,function(F){return F.value+A}),this.normalizeParameters(x,O)},b.prototype.getParameterPoints=function(x){var O=x.rectangle,k=O.y,M=O.right,A=O.width,F=O.height,P=this.getActualBottom(k,O.bottom,A,F),N=O.center.x,B=k+(P-k)/2,V=F/A,H=Math.PI-this.angle,W=k+A/2*Math.tan(H/2)*V,q=x.parameters.get(D.StarConvexParameterName).value,G=this.getInnerPointDistance(N,N,M,B,k,W),J=this.getInnerPointPos(N,N,M,q,G),ne=this.getInnerPointPos(B,k,W,q,G);return[new d.ShapeParameterPoint("c",new c.Point(J,ne))]},b.prototype.processConnectionPoint=function(x,O){if(v.prototype.processConnectionPoint.call(this,x,O),x.getConnectionPointSide(O)===h.ConnectionPointSide.South){var k=x.rectangle,M=k.y,A=k.right,F=k.width,P=k.height,N=this.getActualBottom(M,k.bottom,F,P),B=k.center.x,V=M+(N-M)/2,H=P/F,W=Math.PI-this.angle,q=M+F/2*Math.tan(W/2)*H,G=x.parameters.get(D.StarConvexParameterName).value,J=this.getInnerPointDistance(B,B,A,V,M,q);O.y=this.getInnerPointPos(V,N,N,G,J)}},b.prototype.getInnerPointDistanceByAxis=function(x,O,k){return Math.min(O,k)+Math.abs(O-k)/2-x},b.prototype.getInnerPointPos=function(x,O,k,M,A){var F=Math.min(1,M/A);return x+this.getInnerPointDistanceByAxis(x,O,k)*F},b.prototype.getInnerPointDistance=function(x,O,k,M,A,F){var P=this.getInnerPointDistanceByAxis(x,O,k),N=this.getInnerPointDistanceByAxis(M,A,F);return Math.sqrt(Math.pow(P,2)+Math.pow(N,2))},b.prototype.getActualBottom=function(x,O,k,M){var A=x+v.prototype.calculateHeight.call(this,k)*M/k;return A<O?A:O},b.prototype.calculateHeight=function(x){return x},b}(g.PentagonShapeDescription);D.StarShapeDescription=m},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.ArrowDownShapeDescription=void 0;var C=w(5),y=w(30),g=w(0),p=w(92),d=w(1),c=w(9),h=function(m){function v(){return null!==m&&m.apply(this,arguments)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return d.ShapeTypes.ArrowDown},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,O=x.x,k=x.y,M=x.right,A=x.bottom,P=x.height,N=x.center.x,B=(x.width-b.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2,V=P-b.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value,H=b.normalizeX(O+B),W=b.normalizeY(k+V),q=b.normalizeX(M-B);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(H,k),new C.PathPrimitiveLineToCommand(q,k),new C.PathPrimitiveLineToCommand(q,W),new C.PathPrimitiveLineToCommand(M,W),new C.PathPrimitiveLineToCommand(N,A),new C.PathPrimitiveLineToCommand(O,W),new C.PathPrimitiveLineToCommand(H,W),new C.PathPrimitiveClosePathCommand],b.style)]},v.prototype.modifyParameters=function(b,x,O,k){this.changeParameterValue(x,p.ArrowVerticalTriangleHeightParameterName,function(M){return M.value-k}),this.changeParameterValue(x,p.ArrowVerticalLineWidthParameterName,function(M){return M.value-2*O}),this.normalizeParameters(b,x)},v.prototype.getParameterPoints=function(b){return[new y.ShapeParameterPoint("c",new g.Point(b.normalizeX(b.position.x+(b.size.width-b.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2),b.normalizeY(b.position.y+b.size.height-b.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value)))]},v.prototype.processConnectionPoint=function(b,x){var O=b.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value;if(x.y>b.position.y+b.size.height-O){var M=b.size.width/2/O*(x.y-(b.position.y+b.size.height-O)),A=b.getConnectionPointSide(x);A===c.ConnectionPointSide.East?x.x-=M:A===c.ConnectionPointSide.West&&(x.x+=M)}else m.prototype.processConnectionPoint.call(this,b,x)},v}(p.ArrowVerticalShapeDescription);D.ArrowDownShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.ArrowLeftRightShapeDescription=void 0;var C=w(5),y=w(93),g=w(30),p=w(0),d=w(1),c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return d.ShapeTypes.ArrowLeftRight},enumerable:!1,configurable:!0}),m.prototype.createShapePrimitives=function(v){var b=v.rectangle,x=b.x,O=b.y,k=b.right,M=b.bottom,A=b.height,F=b.center.y,P=v.parameters.get(y.ArrowVerticalTriangleWidthParameterName).value,N=(A-v.parameters.get(y.ArrowVerticalLineHeightParameterName).value)/2,B=v.normalizeX(x+P),V=v.normalizeY(O+N),H=v.normalizeX(k-P),W=v.normalizeY(M-N);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(x,F),new C.PathPrimitiveLineToCommand(B,O),new C.PathPrimitiveLineToCommand(B,V),new C.PathPrimitiveLineToCommand(H,V),new C.PathPrimitiveLineToCommand(H,O),new C.PathPrimitiveLineToCommand(k,F),new C.PathPrimitiveLineToCommand(H,M),new C.PathPrimitiveLineToCommand(H,W),new C.PathPrimitiveLineToCommand(B,W),new C.PathPrimitiveLineToCommand(B,M),new C.PathPrimitiveClosePathCommand],v.style)]},m.prototype.normalizeParameters=function(v,b){this.changeParameterValue(b,y.ArrowVerticalTriangleWidthParameterName,function(x){return Math.max(0,Math.min(v.size.width/2-2*v.strokeWidth,x.value))}),this.changeParameterValue(b,y.ArrowVerticalLineHeightParameterName,function(x){return Math.max(0,Math.min(v.size.height,x.value))})},m.prototype.modifyParameters=function(v,b,x,O){this.changeParameterValue(b,y.ArrowVerticalTriangleWidthParameterName,function(k){return k.value+x}),this.changeParameterValue(b,y.ArrowVerticalLineHeightParameterName,function(k){return k.value-2*O}),this.normalizeParameters(v,b)},m.prototype.getParameterPoints=function(v){return[new g.ShapeParameterPoint("c",new p.Point(v.normalizeX(v.position.x+v.parameters.get(y.ArrowVerticalTriangleWidthParameterName).value),v.normalizeY(v.position.y+(v.size.height-v.parameters.get(y.ArrowVerticalLineHeightParameterName).value)/2)))]},m}(y.ArrowHorizontalShapeDescription);D.ArrowLeftRightShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.ArrowLeftShapeDescription=void 0;var C=w(5),y=w(93),g=w(30),p=w(0),d=w(1),c=w(9),h=function(m){function v(){return null!==m&&m.apply(this,arguments)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return d.ShapeTypes.ArrowLeft},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,O=x.x,k=x.y,M=x.right,A=x.bottom,F=x.height,P=x.center.y,N=b.parameters.get(y.ArrowVerticalTriangleWidthParameterName).value,B=(F-b.parameters.get(y.ArrowVerticalLineHeightParameterName).value)/2,V=b.normalizeX(O+N),H=b.normalizeY(k+B),W=b.normalizeY(A-B);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(O,P),new C.PathPrimitiveLineToCommand(V,k),new C.PathPrimitiveLineToCommand(V,H),new C.PathPrimitiveLineToCommand(M,H),new C.PathPrimitiveLineToCommand(M,W),new C.PathPrimitiveLineToCommand(V,W),new C.PathPrimitiveLineToCommand(V,A),new C.PathPrimitiveClosePathCommand],b.style)]},v.prototype.modifyParameters=function(b,x,O,k){this.changeParameterValue(x,y.ArrowVerticalTriangleWidthParameterName,function(M){return M.value+O}),this.changeParameterValue(x,y.ArrowVerticalLineHeightParameterName,function(M){return M.value-2*k}),this.normalizeParameters(b,x)},v.prototype.getParameterPoints=function(b){return[new g.ShapeParameterPoint("c",new p.Point(b.normalizeX(b.position.x+b.parameters.get(y.ArrowVerticalTriangleWidthParameterName).value),b.normalizeY(b.position.y+(b.size.height-b.parameters.get(y.ArrowVerticalLineHeightParameterName).value)/2)))]},v.prototype.processConnectionPoint=function(b,x){var O=b.parameters.get(y.ArrowVerticalTriangleWidthParameterName).value;if(x.x<b.position.x+O){var M=b.size.height/2/O*(b.position.x+O-x.x),A=b.getConnectionPointSide(x);A===c.ConnectionPointSide.North?x.y+=M:A===c.ConnectionPointSide.South&&(x.y-=M)}else m.prototype.processConnectionPoint.call(this,b,x)},v}(y.ArrowHorizontalShapeDescription);D.ArrowLeftShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(v,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var k in O)O.hasOwnProperty(k)&&(x[k]=O[k])})(v,b)},function(v,b){function x(){this.constructor=v}E(v,b),v.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Object.defineProperty(D,"__esModule",{value:!0}),D.MultipleDocumentsShapeDescription=void 0;var C=w(1),y=w(5),g=w(125),p=w(56),d=w(17),c=w(7),h=w(2),m=function(v){function b(){return null!==v&&v.apply(this,arguments)||this}return I(b,v),Object.defineProperty(b.prototype,"key",{get:function(){return C.ShapeTypes.MultipleDocuments},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),b.prototype.createShapePrimitives=function(x,O){var k=x.rectangle,M=x.rectangle,F=M.height,P=O?b.documentsOffsetRatioForToolbox:b.documentsOffsetRatio,N=Math.ceil(M.width*P),B=Math.ceil(F*P),V=(k=k.clone().inflate(-N,-B).clone().moveRectangle(-N,-B)).clone().moveRectangle(N,B),H=V.clone().moveRectangle(N,B),W=d.RenderUtils.generateSvgElementId("clipRect");return[].concat(this.createDocumentPrimitives(k,x.style,W+"1",V)).concat(this.createDocumentPrimitives(V,x.style,W+"2",H)).concat(this.createDocumentPrimitives(H,x.style))},b.prototype.createDocumentPrimitives=function(x,O,k,M){var A=x.x,F=x.y,P=x.right,N=x.bottom,B=x.width,H=x.center.x,W=x.height*g.DocumentShapeDescription.curveOffsetRatio,q=[];return q=q.concat([new y.PathPrimitive([new y.PathPrimitiveMoveToCommand(A,F),new y.PathPrimitiveLineToCommand(P,F),new y.PathPrimitiveLineToCommand(P,N),new y.PathPrimitiveQuadraticCurveToCommand(P-.25*B,N-2*W,H,N-W),new y.PathPrimitiveQuadraticCurveToCommand(A+.25*B,N+W,A,N-W),new y.PathPrimitiveClosePathCommand],O,void 0,M&&k)]),M&&k&&(q=q.concat([new p.ClipPathPrimitive(k,[new y.PathPrimitive([new y.PathPrimitiveMoveToCommand(A-O.strokeWidth,F-O.strokeWidth),new y.PathPrimitiveLineToCommand(P+O.strokeWidth,F-O.strokeWidth),new y.PathPrimitiveLineToCommand(P+O.strokeWidth,M.y),new y.PathPrimitiveLineToCommand(M.x,M.y),new y.PathPrimitiveLineToCommand(M.x,N+O.strokeWidth),new y.PathPrimitiveLineToCommand(A-O.strokeWidth,N+O.strokeWidth),new y.PathPrimitiveClosePathCommand])])])),q},b.prototype.getTextRectangle=function(x){var O=x.rectangle,k=O.width*b.documentsOffsetRatio,M=O.height*b.documentsOffsetRatio;return(O=O.clone().inflate(-k,-M).clone().moveRectangle(-k,-M)).clone().moveRectangle(2*k+c.ShapeTextPadding,2*M+c.ShapeTextPadding).clone().resize(-2*c.ShapeTextPadding,-O.height*g.DocumentShapeDescription.curveOffsetRatio-2*c.ShapeTextPadding)},b.prototype.getSizeByText=function(x,O){return new h.Size((x.width+2*c.ShapeTextPadding)/(1-2*b.documentsOffsetRatio),(x.height+2*c.ShapeTextPadding)/((1-g.DocumentShapeDescription.curveOffsetRatio)*(1-b.documentsOffsetRatio))).nonNegativeSize()},b.documentsOffsetRatio=.1,b.documentsOffsetRatioForToolbox=.16,b}(g.DocumentShapeDescription);D.MultipleDocumentsShapeDescription=m},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.PreparationShapeDescription=void 0;var C=w(1),y=w(2),g=w(7),p=function(d){function c(){var h=d.call(this,!0)||this;return h.defaultSize=new y.Size(g.ShapeDefaultDimension,.75*g.ShapeDefaultDimension),h}return I(c,d),Object.defineProperty(c.prototype,"key",{get:function(){return C.ShapeTypes.Preparation},enumerable:!1,configurable:!0}),c}(w(123).HexagonShapeDescription);D.PreparationShapeDescription=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.HardDiskShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(55),d=w(7),c=w(2),h=function(m){function v(){return m.call(this,void 0,!0)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return y.ShapeTypes.HardDisk},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,O=x.x,k=x.y,M=x.right,A=x.bottom,P=x.center.y,N=x.width*v.arcWidthRatio;return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(M-N/2,k),new g.PathPrimitiveLineToCommand(O+N/2,k),new g.PathPrimitiveArcToCommand(N/2,(A-k)/2,0,!1,!1,O+N/2,A),new g.PathPrimitiveLineToCommand(M-N/2,A)],b.style),new p.EllipsePrimitive(M-N/2,P,N/2,(A-k)/2,b.style)]},v.prototype.getTextRectangle=function(b){var x=b.rectangle,O=x.width*v.arcWidthRatio*1.5;return x.clone().resize(-O-2*d.ShapeTextPadding,-2*d.ShapeTextPadding).moveRectangle(d.ShapeTextPadding,d.ShapeTextPadding).nonNegativeSize()},v.prototype.getSizeByText=function(b,x){return new c.Size((b.width+2*d.ShapeTextPadding)/(1-1.5*v.arcWidthRatio),x.size.height+d.ShapeTextPadding)},v.arcWidthRatio=.2,v}(C.RectangleShapeDescription);D.HardDiskShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.DatabaseShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(55),d=function(c){function h(){var m=c.call(this,void 0,!0)||this;return m.defaultSize.width=m.defaultSize.height,m}return I(h,c),Object.defineProperty(h.prototype,"key",{get:function(){return y.ShapeTypes.Database},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(m){var v=m.rectangle,b=v.x,x=v.y,O=v.right,k=v.bottom,A=v.center.x,F=v.height*h.arcWidthRatio;return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(O,x+F/2),new g.PathPrimitiveLineToCommand(O,k-F/2),new g.PathPrimitiveArcToCommand((O-b)/2,F/2,0,!1,!0,b,k-F/2),new g.PathPrimitiveLineToCommand(b,x+F/2)],m.style),new p.EllipsePrimitive(A,x+F/2,(O-b)/2,F/2,m.style)]},h.prototype.getTextRectangle=function(m){var v=m.rectangle,b=v.height*h.arcWidthRatio;return v.clone().resize(0,-b).clone().moveRectangle(0,b)},h.arcWidthRatio=.2,h}(C.RectangleShapeDescription);D.DatabaseShapeDescription=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.InternalStorageShapeDescription=D.InternalStorageVerticalEdgeParameterName=D.InternalStorageHorizontalEdgeParameterName=void 0;var C=w(19),y=w(1),g=w(37),p=w(30),d=w(0),c=w(5);D.InternalStorageHorizontalEdgeParameterName="he",D.InternalStorageVerticalEdgeParameterName="ve";var h=function(m){function v(){return m.call(this,void 0,!0)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return y.ShapeTypes.InternalStorage},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,O=x.x,k=x.y,M=x.right,A=x.bottom,F=O+b.parameters.get(D.InternalStorageHorizontalEdgeParameterName).value,P=k+b.parameters.get(D.InternalStorageVerticalEdgeParameterName).value;return m.prototype.createShapePrimitives.call(this,b).concat([new c.PathPrimitive([new c.PathPrimitiveMoveToCommand(F,k),new c.PathPrimitiveLineToCommand(F,A),new c.PathPrimitiveMoveToCommand(O,P),new c.PathPrimitiveLineToCommand(M,P)],b.style)])},v.prototype.createParameters=function(b){b.addRange([new g.ShapeParameter(D.InternalStorageHorizontalEdgeParameterName,.1*this.defaultSize.width),new g.ShapeParameter(D.InternalStorageVerticalEdgeParameterName,.1*this.defaultSize.width)])},v.prototype.normalizeParameters=function(b,x){this.changeParameterValue(x,D.InternalStorageHorizontalEdgeParameterName,function(O){return Math.max(v.minEdge,Math.min(.3*b.size.width,O.value))}),this.changeParameterValue(x,D.InternalStorageVerticalEdgeParameterName,function(O){return Math.max(v.minEdge,Math.min(.3*b.size.height,O.value))})},v.prototype.modifyParameters=function(b,x,O,k){this.changeParameterValue(x,D.InternalStorageHorizontalEdgeParameterName,function(M){return M.value+O}),this.changeParameterValue(x,D.InternalStorageVerticalEdgeParameterName,function(M){return M.value+k}),this.normalizeParameters(b,x)},v.prototype.getParameterPoints=function(b){return[new p.ShapeParameterPoint("c",new d.Point(b.normalizeX(b.position.x+b.parameters.get(D.InternalStorageHorizontalEdgeParameterName).value),b.normalizeY(b.position.y+b.parameters.get(D.InternalStorageVerticalEdgeParameterName).value)))]},v.prototype.getTextRectangle=function(b){var x=b.rectangle,O=b.parameters.get(D.InternalStorageHorizontalEdgeParameterName).value;return x.clone().resize(-O,0).clone().moveRectangle(O,0)},v.minEdge=72,v}(C.RectangleShapeDescription);D.InternalStorageShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.PaperTapeShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(9),d=w(7),c=w(2),h=function(m){function v(){return m.call(this,void 0,!0)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return y.ShapeTypes.PaperTape},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){return this.createDocumentPrimitives(b.rectangle,b.style)},v.prototype.createDocumentPrimitives=function(b,x){var O=b.x,k=b.y,M=b.right,A=b.bottom,F=b.width,N=b.center.x,B=b.height*v.curveOffsetRatio;return[].concat([new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(O,k),new g.PathPrimitiveQuadraticCurveToCommand(O+.25*F,k+2*B,N,k+B),new g.PathPrimitiveQuadraticCurveToCommand(M-.25*F,k-B,M,k+B),new g.PathPrimitiveLineToCommand(M,A),new g.PathPrimitiveQuadraticCurveToCommand(M-.25*F,A-2*B,N,A-B),new g.PathPrimitiveQuadraticCurveToCommand(O+.25*F,A+B,O,A-B),new g.PathPrimitiveClosePathCommand],x)])},v.prototype.processConnectionPoint=function(b,x){var O=b.getConnectionPointSide(x);O===p.ConnectionPointSide.North&&(x.y+=b.size.height*v.curveOffsetRatio),O===p.ConnectionPointSide.South&&(x.y-=b.size.height*v.curveOffsetRatio)},v.prototype.getTextRectangle=function(b){var x=b.rectangle;return x.clone().inflate(d.ShapeTextPadding,-x.height*v.curveOffsetRatio)},v.prototype.getSizeByText=function(b,x){return new c.Size(b.width+2*d.ShapeTextPadding,b.height/(1-2*v.curveOffsetRatio))},v.curveOffsetRatio=.1,v}(C.RectangleShapeDescription);D.PaperTapeShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.ManualOperationShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(9),d=w(7),c=function(h){function m(){return h.call(this,void 0,!0)||this}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return y.ShapeTypes.ManualOperation},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),m.prototype.createShapePrimitives=function(v){var b=v.rectangle,x=v.rectangle,O=x.x,k=x.y,M=x.right,A=x.bottom,F=x.width,N=Math.min(Math.max(0,x.height/Math.tan(m.slopeAngle)),F),B=b.center.x,V=Math.min(O+N,B),H=Math.max(M-N,B);return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(O,k),new g.PathPrimitiveLineToCommand(M,k),new g.PathPrimitiveLineToCommand(H,A),new g.PathPrimitiveLineToCommand(V,A),new g.PathPrimitiveClosePathCommand],v.style)]},m.prototype.processConnectionPoint=function(v,b){var x=v.size.height/Math.tan(m.slopeAngle),O=v.getConnectionPointSide(b);O===p.ConnectionPointSide.East?b.x-=x/2:O===p.ConnectionPointSide.West&&(b.x+=x/2)},m.prototype.getTextRectangle=function(v){var b=Math.min(Math.max(0,v.size.height/Math.tan(m.slopeAngle)),v.size.width);return v.rectangle.clone().moveRectangle(b,d.ShapeTextPadding).resize(2*-b,2*-d.ShapeTextPadding).nonNegativeSize()},m.slopeAngle=81*Math.PI/180,m}(C.RectangleShapeDescription);D.ManualOperationShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.DelayShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(3),d=w(7),c=w(2),h=function(m){function v(){var b=m.call(this,void 0,!0)||this;return b.defaultSize.width=b.defaultSize.height,b}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return y.ShapeTypes.Delay},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,O=x.x,k=x.y,M=x.right,A=x.bottom,F=x.center.x;return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(O,k),new g.PathPrimitiveLineToCommand(F,k),new g.PathPrimitiveArcToCommand((M-O)/2,(A-k)/2,0,!1,!0,F,A),new g.PathPrimitiveLineToCommand(O,A),new g.PathPrimitiveClosePathCommand],b.style)]},v.prototype.getTextRectangle=function(b){var x=p.GeometryUtils.getMaxRectangleEnscribedInEllipse(b.size);return b.rectangle.clone().moveRectangle(d.ShapeTextPadding,d.ShapeTextPadding).setSize({width:x.width/2+b.size.width/2-d.ShapeTextPadding,height:x.height/2+b.size.height/2-d.ShapeTextPadding}).nonNegativeSize()},v.prototype.getSizeByText=function(b,x){var O=p.GeometryUtils.getEllipseByEnscribedRectangle(b);return new c.Size(O.width/2+b.width/2+d.ShapeTextPadding,O.height/2+b.height/2+d.ShapeTextPadding)},v.arcWidthRatio=.2,v}(C.RectangleShapeDescription);D.DelayShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.StoredDataShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(7),d=w(2),c=function(h){function m(){return h.call(this,void 0,!0)||this}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return y.ShapeTypes.StoredData},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),m.prototype.createShapePrimitives=function(v){var b=v.rectangle,x=b.x,O=b.y,k=b.right,M=b.bottom,A=b.width*m.arcWidthRatio;return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(k,O),new g.PathPrimitiveLineToCommand(x+A/2,O),new g.PathPrimitiveArcToCommand(A/2,(M-O)/2,0,!1,!1,x+A/2,M),new g.PathPrimitiveLineToCommand(k,M),new g.PathPrimitiveArcToCommand(A/2,(M-O)/2,0,!1,!0,k,O)],v.style)]},m.prototype.getTextRectangle=function(v){var b=v.rectangle,x=b.width*m.arcWidthRatio/2;return b.clone().resize(-x-2*p.ShapeTextPadding,-2*p.ShapeTextPadding).moveRectangle(p.ShapeTextPadding,p.ShapeTextPadding).nonNegativeSize()},m.prototype.getSizeByText=function(v,b){return new d.Size((v.width+2*p.ShapeTextPadding)/(1-m.arcWidthRatio/2),v.height+2*p.ShapeTextPadding)},m.arcWidthRatio=.2,m}(C.RectangleShapeDescription);D.StoredDataShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.MergeShapeDescription=void 0;var C=w(1),y=w(13),g=w(124),p=w(5),d=w(7),c=w(2),h=function(m){function v(){return m.call(this,!0)||this}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return C.ShapeTypes.Merge},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(b){var x=b.rectangle,k=x.y,M=x.right,A=x.bottom;return[new p.PathPrimitive([new p.PathPrimitiveMoveToCommand(x.x,k),new p.PathPrimitiveLineToCommand(M,k),new p.PathPrimitiveLineToCommand(x.center.x,A),new p.PathPrimitiveClosePathCommand],b.style)]},v.prototype.calculateHeight=function(b){return.75*b},v.prototype.getTextRectangle=function(b){return y.Rectangle.fromGeometry(b.position.clone().offset(b.size.width/4,d.ShapeTextPadding),new c.Size(b.size.width/2,b.size.height/2-d.ShapeTextPadding))},v.prototype.getSizeByText=function(b,x){return new c.Size(2*b.width,2*(b.height+d.ShapeTextPadding))},v}(g.TriangleShapeDescription);D.MergeShapeDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.DisplayShapeDescription=void 0;var C=w(19),y=w(1),g=w(5),p=w(7),d=function(c){function h(){return c.call(this,void 0,!0)||this}return I(h,c),Object.defineProperty(h.prototype,"key",{get:function(){return y.ShapeTypes.Display},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(m){var v=m.rectangle,b=v.x,x=v.y,O=v.right,k=v.bottom,A=v.center.y,F=v.width*h.arcWidthRatio;return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(O-F/2,x),new g.PathPrimitiveLineToCommand(b+F/2,x),new g.PathPrimitiveLineToCommand(b,A),new g.PathPrimitiveLineToCommand(b+F/2,k),new g.PathPrimitiveLineToCommand(O-F/2,k),new g.PathPrimitiveArcToCommand(F/2,(k-x)/2,0,!1,!1,O-F/2,x)],m.style)]},h.prototype.getTextRectangle=function(m){var v=m.size.width*h.arcWidthRatio;return m.rectangle.clone().moveRectangle(v/2,p.ShapeTextPadding).resize(-v,2*-p.ShapeTextPadding).nonNegativeSize()},h.arcWidthRatio=.2,h}(C.RectangleShapeDescription);D.DisplayShapeDescription=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.OrShapeDescription=void 0;var C=w(1),y=w(2),g=w(7),p=w(72),d=w(5),c=function(h){function m(){var v=h.call(this,!0)||this;return v.defaultSize=new y.Size(.5*g.ShapeDefaultDimension,.5*g.ShapeDefaultDimension),v}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return C.ShapeTypes.Or},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"enableText",{get:function(){return!1},enumerable:!1,configurable:!0}),m.prototype.createShapePrimitives=function(v){var b=v.rectangle,x=b.x,O=b.y,k=b.right,M=b.bottom,A=b.center,F=A.x,P=A.y;return[].concat(h.prototype.createShapePrimitives.call(this,v)).concat([new d.PathPrimitive([new d.PathPrimitiveMoveToCommand(F,O),new d.PathPrimitiveLineToCommand(F,M),new d.PathPrimitiveMoveToCommand(x,P),new d.PathPrimitiveLineToCommand(k,P)],v.style)])},m}(p.EllipseShapeDescription);D.OrShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.SummingJunctionShapeDescription=void 0;var C=w(1),y=w(2),g=w(7),p=w(72),d=w(5),c=function(h){function m(){var v=h.call(this,!0)||this;return v.defaultSize=new y.Size(.5*g.ShapeDefaultDimension,.5*g.ShapeDefaultDimension),v}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return C.ShapeTypes.SummingJunction},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"enableText",{get:function(){return!1},enumerable:!1,configurable:!0}),m.prototype.createShapePrimitives=function(v){var b=v.rectangle,k=b.center,M=k.x,A=k.y,F=b.width/2,P=b.height/2,N=Math.atan(P/F),B=1/Math.sqrt(1/Math.pow(F,2)+Math.pow(Math.tan(N),2)/Math.pow(P,2)),V=B*Math.tan(N);return[].concat(h.prototype.createShapePrimitives.call(this,v)).concat([new d.PathPrimitive([new d.PathPrimitiveMoveToCommand(M-B,A-V),new d.PathPrimitiveLineToCommand(M+B,A+V),new d.PathPrimitiveMoveToCommand(M-B,A+V),new d.PathPrimitiveLineToCommand(M+B,A-V)],v.style)])},m}(p.EllipseShapeDescription);D.SummingJunctionShapeDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.SvgElementPrimitive=void 0;var C=w(15),y=function(g){function p(d,c,h,m,v,b,x,O,k){var M=g.call(this,null,O,void 0,k)||this;return M.x=d,M.y=c,M.width=h,M.height=m,M.createContent=v,M.destroyContent=b,M.data=x,M}return I(p,g),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"svg")},p.prototype.applyElementProperties=function(d,c){this.setUnitAttribute(d,"x",this.x),this.setUnitAttribute(d,"y",this.y),this.setUnitAttribute(d,"width",this.width),this.setUnitAttribute(d,"height",this.height),this.setPositionCorrectionAttribute(d),g.prototype.applyElementProperties.call(this,d,c)},p.prototype.createCustomContent=function(d){this.createContent&&this.createContent(d,this.data)},p.prototype.destroyCustomContent=function(d){this.destroyContent&&this.destroyContent(d)},p}(w(24).SvgPrimitive);D.SvgElementPrimitive=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(v,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var k in O)O.hasOwnProperty(k)&&(x[k]=O[k])})(v,b)},function(v,b){function x(){this.constructor=v}E(v,b),v.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Object.defineProperty(D,"__esModule",{value:!0}),D.VerticalContainerDescription=void 0;var C=w(0),y=w(2),g=w(21),p=w(13),d=w(1),c=w(7),h=w(131),m=function(v){function b(){return v.call(this,new y.Size(2*c.ShapeDefaultDimension,1.5*c.ShapeDefaultDimension))||this}return I(b,v),Object.defineProperty(b.prototype,"key",{get:function(){return d.ShapeTypes.VerticalContainer},enumerable:!1,configurable:!0}),b.prototype.getExpandedSize=function(x){return new y.Size(x.size.width,x.expandedSize.height)},b.prototype.getCollapsedSize=function(x){return new y.Size(x.size.width,h.CONTAINER_HEADER_SIZE+2*x.strokeWidth)},b.prototype.allowResizeVertically=function(x){return x.expanded},b.prototype.createHeaderPrimitives=function(x,O){var k=x.rectangle,M=k.x,A=k.y,F=k.width,P=this.getHeaderSize(x,O),N=[];return N=N.concat([new g.RectanglePrimitive(M,A,F,P,x.style)]),O||(N=N.concat(this.createExpandButtonPrimitives(x,new p.Rectangle(M,A,P,P)))),N},b.prototype.getClientRectangle=function(x){var O=x.rectangle,k=this.getHeaderSize(x);return p.Rectangle.fromGeometry(new C.Point(O.x,O.y+k),new y.Size(O.width,O.height-k))},b.prototype.getTextRectangle=function(x){var O=x.rectangle,k=this.getHeaderSize(x);return p.Rectangle.fromGeometry(new C.Point(O.x+k,O.y),new y.Size(O.width-k,k))},b.prototype.getSizeByText=function(x,O){var k=this.getHeaderSize(O);return new y.Size(Math.max(O.size.width,x.width+k),O.size.height)},b.prototype.getHeaderSize=function(x,O){return O?x.rectangle.height*h.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO:h.CONTAINER_HEADER_SIZE+2*x.strokeWidth},b}(h.ContainerDescription);D.VerticalContainerDescription=m},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(b,x){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,k){O.__proto__=k}||function(O,k){for(var M in k)k.hasOwnProperty(M)&&(O[M]=k[M])})(b,x)},function(b,x){function O(){this.constructor=b}E(b,x),b.prototype=null===x?Object.create(x):(O.prototype=x.prototype,new O)});Object.defineProperty(D,"__esModule",{value:!0}),D.HorizontalContainerDescription=void 0;var C=w(7),y=w(13),g=w(2),p=w(0),d=w(1),c=w(131),h=w(21),m=w(63),v=function(b){function x(){return b.call(this,new g.Size(2*C.ShapeDefaultDimension,1.5*C.ShapeDefaultDimension))||this}return I(x,b),Object.defineProperty(x.prototype,"key",{get:function(){return d.ShapeTypes.HorizontalContainer},enumerable:!1,configurable:!0}),x.prototype.getExpandedSize=function(O){return new g.Size(O.expandedSize.width,O.size.height)},x.prototype.getCollapsedSize=function(O){return new g.Size(c.CONTAINER_HEADER_SIZE+2*O.strokeWidth,O.size.height)},x.prototype.allowResizeHorizontally=function(O){return O.expanded},x.prototype.createHeaderPrimitives=function(O,k){var M=O.rectangle,A=M.x,F=M.y,P=M.height,N=this.getHeaderSize(O,k),B=[];return B=B.concat([new h.RectanglePrimitive(A,F,N,P,O.style)]),k||(B=B.concat(this.createExpandButtonPrimitives(O,new y.Rectangle(A,F,N,N)))),B},x.prototype.getClientRectangle=function(O){var k=O.rectangle,M=this.getHeaderSize(O);return y.Rectangle.fromGeometry(new p.Point(k.x+M,k.y),new g.Size(k.width-M,k.height))},x.prototype.getTextRectangle=function(O){var k=O.rectangle,M=this.getHeaderSize(O);return y.Rectangle.fromGeometry(new p.Point(k.x,k.y+M),new g.Size(M,k.height-M)).nonNegativeSize()},x.prototype.getSizeByText=function(O,k){var M=this.getHeaderSize(k);return new g.Size(k.size.width,Math.max(k.size.height,Math.max(O.width+M,k.size.height)))},x.prototype.getTextEditRectangle=function(O){var k=this.getTextRectangle(O);return y.Rectangle.fromGeometry(new p.Point(k.x,k.y+k.height),new g.Size(k.height,k.width))},x.prototype.getTextAngle=function(){return m.TextAngle.Angle270deg},x.prototype.getHeaderSize=function(O,k){return k?O.rectangle.height*c.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO:c.CONTAINER_HEADER_SIZE+2*O.strokeWidth},x}(c.ContainerDescription);D.HorizontalContainerDescription=v},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.CardWithImageOnTopDescription=void 0;var C=w(7),y=w(2),g=w(1),p=w(132),d=w(12),c=function(h){function m(){var v=h.call(this,new y.Size(.8*C.ShapeDefaultDimension,C.ShapeDefaultDimension))||this;return v.isTextAfterImage=!0,v.isHorizontal=!1,v}return I(m,h),Object.defineProperty(m.prototype,"key",{get:function(){return g.ShapeTypes.CardWithImageOnTop},enumerable:!1,configurable:!0}),m.prototype.getImageSize=function(v,b,x){var O=v.width/2;d.UnitConverter.twipsToPixels(O)%2==1&&(O-=d.UnitConverter.pixelsToTwips(1));var k=Math.max(0,v.height-(b?0:2*this.getImageMargin(x)));return k=Math.min(O,k),new y.Size(k,k)},m.prototype.getImageSizeByTextBlockSize=function(v){return this.getImageSize(new y.Size(v.width,Number.MAX_VALUE),!0)},m}(p.CardBaseDescription);D.CardWithImageOnTopDescription=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.RoundedRectanglePrimitive=void 0;var C=w(15),y=function(g){function p(d,c,h,m,v,b,x,O,k,M){void 0===v&&(v=0),void 0===b&&(b=0);var A=g.call(this,d,c,h,m,x,O,k,M)||this;return A.x=d,A.y=c,A.width=h,A.height=m,A.rx=v,A.ry=b,A}return I(p,g),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"rect")},p.prototype.applyElementProperties=function(d,c){this.setUnitAttribute(d,"rx",this.rx),this.setUnitAttribute(d,"ry",this.ry),g.prototype.applyElementProperties.call(this,d,c)},p}(w(21).RectanglePrimitive);D.RoundedRectanglePrimitive=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorShapeDescription=void 0;var C=w(1),y=w(2),g=w(7),p=function(d){function c(){var h=d.call(this,!1)||this;return h.defaultSize=new y.Size(.5*g.ShapeDefaultDimension,.5*g.ShapeDefaultDimension),h}return I(c,d),Object.defineProperty(c.prototype,"key",{get:function(){return C.ShapeTypes.Connector},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),c}(w(72).EllipseShapeDescription);D.ConnectorShapeDescription=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.CardWithImageOnRightDescription=D.CardWithImageOnLeftDescription=void 0;var C=w(7),y=w(1),g=w(132),p=w(2),d=function(m){function v(){var b=m.call(this,new p.Size(1.5*C.ShapeDefaultDimension,.5*C.ShapeDefaultDimension))||this;return b.isHorizontal=!0,b}return I(v,m),v.prototype.getToolboxHeightToWidthRatio=function(b,x){return 26/46},v.prototype.getImageSize=function(b,x,O){var k=Math.min(b.height,b.width);return x||(k=Math.max(0,k-2*this.getImageMargin(O))),new p.Size(k,k)},v.prototype.getImageSizeByTextBlockSize=function(b){return this.getImageSize(new p.Size(Number.MAX_VALUE,b.height),!0)},v}(g.CardBaseDescription),c=function(m){function v(){var b=null!==m&&m.apply(this,arguments)||this;return b.isTextAfterImage=!0,b}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return y.ShapeTypes.CardWithImageOnLeft},enumerable:!1,configurable:!0}),v}(d);D.CardWithImageOnLeftDescription=c;var h=function(m){function v(){var b=null!==m&&m.apply(this,arguments)||this;return b.isTextAfterImage=!1,b}return I(v,m),Object.defineProperty(v.prototype,"key",{get:function(){return y.ShapeTypes.CardWithImageOnRight},enumerable:!1,configurable:!0}),v}(d);D.CardWithImageOnRightDescription=h},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.ExportCommand=void 0;var C=w(73),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.executeCore=function(d,c){return c((new C.Exporter).export(this.control.model)),!0},p}(w(57).ExportImportCommandBase);D.ExportCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleFontBoldCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getStyleProperty=function(){return"font-weight"},g.prototype.getStylePropertyValue=function(){return"bold"},g}(w(74).ToggleStyleTextPropertyCommand);D.ToggleFontBoldCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleFontItalicCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getStyleProperty=function(){return"font-style"},g.prototype.getStylePropertyValue=function(){return"italic"},g}(w(74).ToggleStyleTextPropertyCommand);D.ToggleFontItalicCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleFontUnderlineCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getStyleProperty=function(){return"text-decoration"},g.prototype.getStylePropertyValue=function(){return"underline"},g}(w(74).ToggleStyleTextPropertyCommand);D.ToggleFontUnderlineCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeFontNameCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getStyleProperty=function(){return"font-family"},g}(w(96).ChangeStyleTextPropertyCommand);D.ChangeFontNameCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeFontSizeCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getStyleProperty=function(){return"font-size"},g}(w(96).ChangeStyleTextPropertyCommand);D.ChangeFontSizeCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeFontColorCommand=void 0;var C=w(96),y=w(22),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.processParameter=function(c){return y.ColorUtils.stringToHash(c)},d.prototype.getStyleProperty=function(){return"fill"},d}(C.ChangeStyleTextPropertyCommand);D.ChangeFontColorCommand=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeFillColorCommand=void 0;var C=w(75),y=w(22),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.processParameter=function(c){return y.ColorUtils.stringToHash(c)},d.prototype.getStyleProperty=function(){return"fill"},d}(C.ChangeStylePropertyCommand);D.ChangeFillColorCommand=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeStrokeColorCommand=void 0;var C=w(75),y=w(22),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.processParameter=function(c){return y.ColorUtils.stringToHash(c)},d.prototype.getStyleProperty=function(){return"stroke"},d}(C.ChangeStylePropertyCommand);D.ChangeStrokeColorCommand=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.TextRightAlignCommand=D.TextCenterAlignCommand=D.TextLeftAlignCommand=D.ChangeTextAlignCommand=void 0;var C=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.getStyleProperty=function(){return"text-anchor"},c}(w(74).ToggleStyleTextPropertyCommand);D.ChangeTextAlignCommand=C;var y=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.getStylePropertyValue=function(){return"start"},c}(C);D.TextLeftAlignCommand=y;var g=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.getStylePropertyValue=function(){return"middle"},c}(C);D.TextCenterAlignCommand=g;var p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.getStylePropertyValue=function(){return"end"},c}(C);D.TextRightAlignCommand=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeConnectorEndLineEndingCommand=D.ChangeConnectorStartLineEndingCommand=void 0;var C=w(136),y=w(32),g=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.getPropertyName=function(){return"startLineEnding"},c.prototype.getPropertyDefaultValue=function(){return y.ConnectorLineEnding.None},c}(C.ChangeConnectorPropertyCommand);D.ChangeConnectorStartLineEndingCommand=g;var p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return I(c,d),c.prototype.getPropertyName=function(){return"endLineEnding"},c.prototype.getPropertyDefaultValue=function(){return y.ConnectorLineEnding.Arrow},c}(C.ChangeConnectorPropertyCommand);D.ChangeConnectorEndLineEndingCommand=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeConnectorLineOptionCommand=void 0;var C=w(136),y=w(32),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.getPropertyName=function(){return"lineOption"},d.prototype.getPropertyDefaultValue=function(){return y.ConnectorLineOption.Straight},d}(C.ChangeConnectorPropertyCommand);D.ChangeConnectorLineOptionCommand=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.SelectAllCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.isEnabledInReadOnlyMode=function(){return!0},g.prototype.executeCore=function(p,d){var c=[];return this.control.model.iterateItems(function(h){return c.push(h.key)}),this.control.selection.set(c),!0},g}(w(10).SimpleCommandBase);D.SelectAllCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ScrollIntoViewOnUndoHistoryItem=D.ScrollIntoViewOnRedoHistoryItem=void 0;var C=w(8),y=function(p){function d(c,h){var m=p.call(this)||this;return m.view=c,m.rectangle=h,m.view=c,m.rectangle=h.clone(),m}return I(d,p),d.prototype.redo=function(c){this.view.scrollIntoView(this.rectangle)},d.prototype.undo=function(c){},d}(C.HistoryItem);D.ScrollIntoViewOnRedoHistoryItem=y;var g=function(p){function d(c,h){var m=p.call(this)||this;return m.view=c,m.rectangle=h,m.view=c,m.rectangle=h.clone(),m}return I(d,p),d.prototype.redo=function(c){},d.prototype.undo=function(c){this.view.scrollIntoView(this.rectangle)},d}(C.HistoryItem);D.ScrollIntoViewOnUndoHistoryItem=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Tree=void 0;var E=w(38),I=function(){function C(y,g){var p=this;this.childToParent={},this.root=y,this.parentToChildren=g;var d=function(h){if(!Object.prototype.hasOwnProperty.call(g,h))return"continue";g[h].forEach(function(m){return p.childToParent[m.key]=h})};for(var c in g)d(c)}return C.prototype.getChildren=function(y){return y&&this.parentToChildren[y.key]?this.parentToChildren[y.key]:[]},C.prototype.hasChildren=function(y){return this.parentToChildren[y.key]&&this.parentToChildren[y.key].length>0},C.prototype.iterate=function(y){this.iterateCore(this.root,0,y)},C.createSpanningTree=function(y){var g=C.findRoot(y),p=y.createIterator(E.ConnectionMode.Outgoing),d={};return p.skipEdge=function(c){return void 0===c.to||p.isNodeVisited(c.to)},p.onNode=function(c){return d[c.key]=[]},p.onEdge=function(c){var h=y.getNode(c.to);h&&d[c.from].push(h)},p.iterate(g),new C(y.getNode(g),d)},C.prototype.iterateCore=function(y,g,p){var d=this;p(y,g),this.getChildren(y).forEach(function(c){return d.iterateCore(c,g+1,p)})},C.findRoot=function(y){return y.nodes.reduce(function(g,p){var d=y.getAdjacentEdges(p),c=d.filter(function(m){return m.to===p}).length,h=d.filter(function(m){return m.from===p}).length;return(void 0===g.candidate||0===c&&g.inc>0||0!==g.inc&&g.out-g.inc<h-c)&&(g.candidate=p,g.inc=c,g.out=h),g},{inc:-1,out:-1,candidate:void 0}).candidate},C}();D.Tree=I},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeSnapToGridCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.executeCore=function(p,d){var c=void 0===d?!this.control.settings.snapToGrid:!!d;return this.control.settings.snapToGrid!==c&&(this.control.settings.snapToGrid=c,!0)},g.prototype.getValue=function(){return this.control.settings.snapToGrid},g}(w(10).SimpleCommandBase);D.ChangeSnapToGridCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeGridSizeItemsCommand=D.ChangeGridSizeCommand=void 0;var C=w(10),y=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.isEnabledInReadOnlyMode=function(){return!0},d.prototype.getValue=function(){return this.getModelUnit(this.control.settings.gridSize)},d.prototype.executeCore=function(c,h){return this.control.settings.gridSize=this.getModelUnitTwipsValue(h),!0},d.prototype.getItems=function(){var c=this;return this.control.settings.gridSizeItems.map(function(h){return{value:c.getModelUnit(h),text:c.getViewUnitText(h)}})},d}(C.SimpleCommandBase);D.ChangeGridSizeCommand=y;var g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.isEnabledInReadOnlyMode=function(){return!0},d.prototype.getValue=function(){var c=this;return this.control.settings.gridSizeItems.map(function(h){return c.getModelUnit(h)})},d.prototype.executeCore=function(c,h){var m=this;return this.control.settings.gridSizeItems=h.map(function(v){return m.getModelUnitTwipsValue(v)}),!0},d}(C.SimpleCommandBase);D.ChangeGridSizeItemsCommand=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangePageLandscapeCommand=void 0;var C=w(77),y=w(256),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.getValue=function(){return this.control.model.pageLandscape},d.prototype.createHistoryItems=function(c){return[new y.ChangePageLandscapeHistoryItem(c)]},d}(C.ChangePagePropertyCommand);D.ChangePageLandscapeCommand=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangePageLandscapeHistoryItem=void 0;var C=function(y){function g(p){var d=y.call(this)||this;return d.value=p,d}return I(g,y),g.prototype.redo=function(p){this.oldValue=p.model.pageLandscape,p.changePageLandscape(this.value)},g.prototype.undo=function(p){p.changePageLandscape(this.oldValue)},g}(w(8).HistoryItem);D.ChangePageLandscapeHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangePageSizeItemsCommand=D.ChangePageSizeCommand=void 0;var C=w(77),y=w(2),g=w(258),p=w(10),d=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),m.prototype.getValue=function(){return this.getModelUnitSize(this.control.model.pageSize)},m.prototype.createHistoryItems=function(v){return[new g.ChangePageSizeHistoryItem(new y.Size(this.getModelUnitTwipsValue(v.width),this.getModelUnitTwipsValue(v.height)))]},m.prototype.getItems=function(){var v=this;return this.control.settings.pageSizeItems.map(function(b){return{value:v.getModelUnitSize(b.size),text:b.text.replace("{width}",v.getViewUnitText(b.size.width)).replace("{height}",v.getViewUnitText(b.size.height))}})},m.prototype.getModelUnitSize=function(v){return new y.Size(this.getModelUnit(v.width),this.getModelUnit(v.height))},m}(C.ChangePagePropertyCommand);D.ChangePageSizeCommand=d;var c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),m.prototype.isEnabled=function(){return!0},m.prototype.getValue=function(){var v=this;return this.control.settings.pageSizeItems.map(function(b){return{size:new y.Size(v.getModelUnit(b.width),v.getModelUnit(b.height)),text:b.text}})},m.prototype.executeCore=function(v,b){var x=this;return this.control.settings.pageSizeItems=b.map(function(O){return{size:new y.Size(x.getModelUnitTwipsValue(O.width),x.getModelUnitTwipsValue(O.height)),text:O.text}}),!0},m}(p.SimpleCommandBase);D.ChangePageSizeItemsCommand=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangePageSizeHistoryItem=void 0;var C=function(y){function g(p){var d=y.call(this)||this;return d.size=p,d}return I(g,y),g.prototype.redo=function(p){this.oldSize=p.model.pageSize,p.changePageSize(this.size)},g.prototype.undo=function(p){p.changePageSize(this.oldSize)},g}(w(8).HistoryItem);D.ChangePageSizeHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ExportPngCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getExtension=function(){return"png"},g.prototype.getExportFunc=function(){return this.exporter.exportPng},g}(w(98).ExportImageCommand);D.ExportPngCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(x,O){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var A in M)M.hasOwnProperty(A)&&(k[A]=M[A])})(x,O)},function(x,O){function k(){this.constructor=x}E(x,O),x.prototype=null===O?Object.create(O):(k.prototype=O.prototype,new k)}),C=this&&this.__awaiter||function(x,O,k,M){return new(k||(k=Promise))(function(A,F){function P(V){try{B(M.next(V))}catch(H){F(H)}}function N(V){try{B(M.throw(V))}catch(H){F(H)}}function B(V){var H;V.done?A(V.value):(H=V.value,H instanceof k?H:new k(function(W){W(H)})).then(P,N)}B((M=M.apply(x,O||[])).next())})},y=this&&this.__generator||function(x,O){var k,M,A,F,P={label:0,sent:function(){if(1&A[0])throw A[1];return A[1]},trys:[],ops:[]};return F={next:N(0),throw:N(1),return:N(2)},"function"==typeof Symbol&&(F[Symbol.iterator]=function(){return this}),F;function N(B){return function(V){return function(H){if(k)throw new TypeError("Generator is already executing.");for(;P;)try{if(k=1,M&&(A=2&H[0]?M.return:H[0]?M.throw||((A=M.return)&&A.call(M),0):M.next)&&!(A=A.call(M,H[1])).done)return A;switch(M=0,A&&(H=[2&H[0],A.value]),H[0]){case 0:case 1:A=H;break;case 4:return P.label++,{value:H[1],done:!1};case 5:P.label++,M=H[1],H=[0];continue;case 7:H=P.ops.pop(),P.trys.pop();continue;default:if(!(A=(A=P.trys).length>0&&A[A.length-1])&&(6===H[0]||2===H[0])){P=0;continue}if(3===H[0]&&(!A||H[1]>A[0]&&H[1]<A[3])){P.label=H[1];break}if(6===H[0]&&P.label<A[1]){P.label=A[1],A=H;break}if(A&&P.label<A[2]){P.label=A[2],P.ops.push(H);break}A[2]&&P.ops.pop(),P.trys.pop();continue}H=O.call(x,P)}catch(W){H=[6,W],M=0}finally{k=A=0}if(5&H[0])throw H[1];return{value:H[0]?H[1]:void 0,done:!0}}([B,V])}}};Object.defineProperty(D,"__esModule",{value:!0}),D.CanvasExportManager=void 0;var g=w(12),p=w(18),d=w(17),c=w(42),h=w(15),m=w(100),v=w(22),b=function(x){function O(k,M){var A=x.call(this,1,new m.ExportDOMManipulator(M))||this;return A.itemsContainer=k,A}return I(O,x),O.prototype.getSvgImage=function(k,M,A,F){var P=h.RenderHelper.createSvgElement(void 0,!0),N=k.clone().applyConverter(g.UnitConverter.twipsToPixelsF).clone().applyConverter(Math.ceil);d.RenderUtils.updateSvgElementSize(P,N.width,N.height,!0),P.style.backgroundColor=v.ColorUtils.colorToHash(M),this.createTextFloodFilter(void 0,P,M);var B=!A&&!p.Browser.IE&&this.getExportCssRules();if(B){var V=document.createElementNS(h.svgNS,"style");V.innerHTML=B,P.appendChild(V)}if(F){var H=document.createElementNS(h.svgNS,"rect");H.setAttributeNS(null,"x","0"),H.setAttributeNS(null,"y","0"),H.setAttributeNS(null,"height",N.height.toString()),H.setAttributeNS(null,"width",N.width.toString()),H.setAttributeNS(null,"fill",P.style.backgroundColor),P.appendChild(H)}for(var W=0;W<this.itemsContainer.childNodes.length;W++){var q=this.itemsContainer.childNodes[W].cloneNode(!0);B||this.inlineStyle(q,this.itemsContainer.childNodes[W]),P.appendChild(q)}return P},O.prototype.getSvgImageUrl=function(k,M,A){var F=this.getSvgImage(k,M,A,!1);return this.getSvgBase64String(F)},O.prototype.getSvgString=function(k){return(new XMLSerializer).serializeToString(k)},O.prototype.getSvgBase64String=function(k){var M=this.getSvgString(k);return O.base64Start+this.getBase64EncodeUnicode(M)},O.prototype.getBase64EncodeUnicode=function(k){return btoa(encodeURIComponent(k).replace(/%([0-9A-F]{2})/g,function(M,A){return String.fromCharCode(parseInt("0x"+A,16))}))},O.prototype.getExportCssRules=function(){for(var k=0;k<document.styleSheets.length;k++){var M=this.getRules(document.styleSheets[k]);if(M){for(var A="",F=0;F<M.length;F++){var P=M[F],N=this.isCSSStyleRule(P)?P.selectorText:null;N&&this.checkSelector(N)&&(A+=P.cssText+"\n")}if(A.length>0)return"\n"+A}}},O.prototype.checkSelector=function(k){for(var M=0;M<O.exportStyleRules.length;M++)if(0===k.indexOf(O.exportStyleRules[M]))return!0;return!1},O.prototype.getRules=function(k){try{return this.isCSSStyleSheet(k)?k.rules||k.cssRules:null}catch{}},O.prototype.isCSSStyleSheet=function(k){return void 0!==k.rules},O.prototype.isCSSStyleRule=function(k){return void 0!==k.selectorText},O.prototype.inlineStyle=function(k,M){for(var A=0;A<k.childNodes.length;A++){var F=k.childNodes[A];if(F.tagName)if("g"===F.tagName)this.inlineStyle(F,M.childNodes[A]);else if(F.style){var P=window.getComputedStyle(M.childNodes[A]);if(void 0!==P)for(var N=0;N<O.exportStyleAttributes.length;N++){var B=O.exportStyleAttributes[N];F.style.setProperty(B,P.getPropertyValue(B))}this.inlineStyle(F,M.childNodes[A])}}},O.prototype.exportSvgImage=function(k,M,A){A(this.getSvgImageUrl(k,M,!0))},O.prototype.exportBinaryImage=function(k,M,A,F,P){var N=this.getAbsoluteSize(k).clone().applyConverter(Math.ceil),B=document.createElement("canvas");B.width=N.width,B.height=N.height;var V=B.getContext("2d");if(V.fillStyle=v.ColorUtils.colorToHash(M),V.fillRect(0,0,N.width,N.height),(P||p.Browser.IE)&&"object"==typeof canvg)this.exportBinaryImageCanvgAsync(k,M,B,V,A).then(function(W){return F(W)});else if(p.Browser.IE&&"function"==typeof canvg)this.exportBinaryImageCanvgOld(k,M,B,V,A,F);else{var H=new Image;H.width=N.width,H.height=N.height,H.setAttribute("crossOrigin","anonymous"),H.onload=function(){V.drawImage(H,0,0),F(B.toDataURL(A,1))},H.src=this.getSvgImageUrl(k,M,!0)}},O.prototype.exportBinaryImageCanvgOld=function(k,M,A,F,P,N){var B=this.getSvgImage(k,M,!0,!1),V=this.getSvgString(B);F.drawSvg(V,0,0,null,null,{renderCallback:function(){N(A.toDataURL(P,1))}})},O.prototype.exportBinaryImageCanvgAsync=function(k,M,A,F,P){return C(this,void 0,void 0,function(){var N,B;return y(this,function(V){switch(V.label){case 0:return N=this.getSvgImage(k,M,!0,!0),B=this.getSvgString(N),[4,canvg.Canvg.fromString(F,B).render()];case 1:return V.sent(),[2,A.toDataURL(P,1)]}})})},O.prototype.exportPngImage=function(k,M,A,F){this.exportBinaryImage(k,M,"image/png",A,F)},O.prototype.exportJpgImage=function(k,M,A,F){this.exportBinaryImage(k,M,"image/jpeg",A,F)},O.prototype.notifyModelChanged=function(k){},O.prototype.notifyPageColorChanged=function(k){},O.prototype.notifyPageSizeChanged=function(k,M){},O.base64Start="data:image/svg+xml;base64,",O.exportStyleRules=[".dxdi-canvas .shape ",".dxdi-canvas .connector ",".dxdi-canvas text",".dxdi-canvas.export"],O.exportStyleAttributes=["fill","stroke","stroke-width","stroke-linejoin","font-family","font-size","font-weight","font-style","text-decoration","text-anchor"],O}(c.CanvasManagerBase);D.CanvasExportManager=b},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ExportSvgCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getExtension=function(){return"svg"},g.prototype.getExportFunc=function(){return this.exporter.exportSvg},g}(w(98).ExportImageCommand);D.ExportSvgCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ExportJpgCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getExtension=function(){return"jpg"},g.prototype.getExportFunc=function(){return this.exporter.exportJpg},g}(w(98).ExportImageCommand);D.ExportJpgCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.CopySelectionCommand=void 0;var C=w(73),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.isEnabled=function(){return g.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty(!0)},p.prototype.isEnabledInReadOnlyMode=function(){return!0},p.prototype.executeCore=function(d){var c=(new C.Exporter).exportItems(this.control.selection.getSelectedItems(!0,!0));return this.setClipboardData(c),!0},p}(w(101).ClipboardCommand);D.CopySelectionCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.CutSelectionCommand=void 0;var C=w(73),y=w(4),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.isEnabled=function(){var c=this.control.selection.getSelectedItems();return p.prototype.isEnabled.call(this)&&c.length&&(c.length>1||this.permissionsProvider.canDeleteItems(c))},d.prototype.executeCore=function(c){var h=new C.Exporter,m=this.control.selection.getSelectedItems(!0,!0),v=h.exportItems(m);return this.permissionsProvider.beginDeleteItems(m),this.setClipboardData(v),y.ModelUtils.deleteSelection(this.control.history,this.control.model,this.control.selection),this.permissionsProvider.endDeleteItems(),!0},Object.defineProperty(d.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),d}(w(101).ClipboardCommand);D.CutSelectionCommand=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.PasteSelectionCommand=void 0;var C=w(0),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.getEventPositionOffset=function(d,c){return new C.Point(0,0)},p}(w(141).PasteSelectionCommandBase);D.PasteSelectionCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ImportShapeHistoryItem=void 0;var C=function(y){function g(p){var d=y.call(this)||this;return d.shape=p,d}return I(g,y),g.prototype.redo=function(p){this.shapeKey=this.shape.key,p.insertShape(this.shape)},g.prototype.undo=function(p){p.removeShape(p.model.findShape(this.shapeKey),!0)},g}(w(8).HistoryItem);D.ImportShapeHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ImportConnectorHistoryItem=void 0;var C=function(y){function g(p){var d=y.call(this)||this;return d.connector=p,d}return I(g,y),g.prototype.redo=function(p){this.connectorKey=this.connector.key,p.insertConnector(this.connector)},g.prototype.undo=function(p){var d=p.model.findConnector(this.connectorKey);p.removeConnector(d)},g}(w(8).HistoryItem);D.ImportConnectorHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(x,O){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var A in M)M.hasOwnProperty(A)&&(k[A]=M[A])})(x,O)},function(x,O){function k(){this.constructor=x}E(x,O),x.prototype=null===O?Object.create(O):(k.prototype=O.prototype,new k)});Object.defineProperty(D,"__esModule",{value:!0}),D.ImportBPMNCommand=void 0;var C=w(269),y=w(4),g=w(53),p=w(0),d=w(6),c=w(66),h=w(48),m=w(80),v=w(20),b=function(x){function O(){return null!==x&&x.apply(this,arguments)||this}return I(O,x),O.prototype.executeCore=function(k,M){var A=new C.BPMNImporter(M).import();return this.updateModel(A),!0},O.prototype.updateModel=function(k){var M=this,A={},F=[],P=[];this.control.history.beginTransaction(),k.items.forEach(function(B){var V=new g.AddShapeHistoryItem(M.getShapeDescription(B.type),new p.Point(0,0),B.text,B.key);M.control.history.addAndRedo(V),A[B.key]=V.shapeKey;var H=M.control.model.findShape(V.shapeKey);F.push(H)}),k.edges.forEach(function(B){var V=M.control.model.findShape(A[B.from]),H=M.control.model.findShape(A[B.to]),W=new c.AddConnectorHistoryItem([V.getConnectionPointPosition(0),H.getConnectionPointPosition(0)]);M.control.history.addAndRedo(W);var q=M.control.model.findConnector(W.connectorKey);M.control.history.addAndRedo(new h.AddConnectionHistoryItem(q,V,0,d.ConnectorPosition.Begin)),M.control.history.addAndRedo(new h.AddConnectionHistoryItem(q,H,0,d.ConnectorPosition.End)),P.push(q)});var N=new v.LayoutSettings;y.ModelUtils.getGraphInfoByItems(this.control.model,F,P).forEach(function(B){var V=new m.SugiyamaLayoutBuilder(N,B.graph).build(),H=y.ModelUtils.getNonGraphItems(M.control.model,B.container,V.nodeToLayout,F,P);y.ModelUtils.applyLayout(M.control.history,M.control.model,void 0,B.graph,V,H,N,M.control.settings.snapToGrid,M.control.settings.gridSize,!1)}),y.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction()},O.prototype.getShapeDescription=function(k){return this.control.shapeDescriptionManager.get(k)},O}(w(57).ExportImportCommandBase);D.ImportBPMNCommand=b},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(m,v){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var O in x)x.hasOwnProperty(O)&&(b[O]=x[O])})(m,v)},function(m,v){function b(){this.constructor=m}E(m,v),m.prototype=null===v?Object.create(v):(b.prototype=v.prototype,new b)});Object.defineProperty(D,"__esModule",{value:!0}),D.BPMNNode=D.BPMNImporter=void 0;var C=w(54),y=w(1),g=w(38),p=w(95),d=function(){function m(v){this.doc=p.ImportUtils.createDocument(v),this.graph=new C.Graph([],[])}return m.prototype.import=function(){for(var v=void 0,b=0;v=this.doc.children[b];b++)"DEFINITIONS"===v.nodeName.toUpperCase()&&this.onDefinitionsElement(v);return this.validate(),this.graph},m.prototype.validate=function(){var v={};this.graph.nodes.forEach(function(O){return v[O]=!0});for(var b=0,x=void 0;x=this.graph.edges[b];b++)v[x.from]&&v[x.to]||(this.graph.edges.splice(b,1),b--)},m.prototype.onDefinitionsElement=function(v){this.dataSourceKey=v.getAttribute("id");for(var b=void 0,x=0;b=v.children[x];x++)"PROCESS"===b.nodeName.toUpperCase()&&this.onProcessElement(b)},m.prototype.onProcessElement=function(v){for(var b=void 0,x=0;b=v.children[x];x++)switch(b.nodeName.toUpperCase()){case"STARTEVENT":this.onStartEventElement(b);break;case"SEQUENCEFLOW":this.onSequenceFlowElement(b);break;case"SCRIPTTASK":this.onScriptTaskElement(b);break;case"USERTASK":this.onUserTaskElement(b);break;case"SERVICETASK":this.onServiceTaskElement(b);break;case"SENDTASK":this.onSendTaskElement(b);break;case"EXCLUSIVEGATEWAY":this.onExclusiveGateway(b);break;case"ENDEVENT":this.onEndEventGateway(b)}},m.prototype.onStartEventElement=function(v){var b=this.createNode(v);b.type=y.ShapeTypes.Ellipse,b.text=v.getAttribute("name"),this.graph.addNode(b)},m.prototype.onSequenceFlowElement=function(v){var b=v.getAttribute("sourceRef"),x=v.getAttribute("targetRef"),O=this.createEdge(v,b,x);v.hasAttribute("name")&&(O.text=v.getAttribute("name")),this.graph.addEdge(O)},m.prototype.onScriptTaskElement=function(v){var b=this.createNode(v);b.text=v.getAttribute("name"),this.graph.addNode(b)},m.prototype.onUserTaskElement=function(v){var b=this.createNode(v);b.text=v.getAttribute("name"),this.graph.addNode(b)},m.prototype.onServiceTaskElement=function(v){var b=this.createNode(v);b.text=v.getAttribute("name"),this.graph.addNode(b)},m.prototype.onSendTaskElement=function(v){var b=this.createNode(v);b.text=v.getAttribute("name"),this.graph.addNode(b)},m.prototype.onExclusiveGateway=function(v){var b=this.createNode(v);b.text=v.getAttribute("name"),b.type=y.ShapeTypes.Decision,this.graph.addNode(b)},m.prototype.onEndEventGateway=function(v){var b=this.createNode(v);b.text=v.getAttribute("name"),b.type=y.ShapeTypes.Ellipse,this.graph.addNode(b)},m.prototype.createNode=function(v){return new c(this.dataSourceKey,v.getAttribute("id"))},m.prototype.createEdge=function(v,b,x){return new h(this.dataSourceKey,v.getAttribute("id"),b,x)},m}();D.BPMNImporter=d;var c=function(m,v){this.sourceKey=m,this.key=v,this.type=y.ShapeTypes.Rectangle};D.BPMNNode=c;var h=function(m){function v(b,x,O,k){var M=m.call(this,x,O,k)||this;return M.sourceKey=b,M}return I(v,m),v}(g.Edge)},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CycleRemover=void 0;var E=w(54),I=w(38),C=w(90),y=function(){function g(){}return g.removeCycles=function(p){var d=this.getFeedbackSet(p);return this.reverseEdges(p,d)},g.getFeedbackSet=function(p){for(var d=this,c={},h=this.getNonTrivialStronglyConnectedComponents(p);h.length;)h.forEach(function(m){var v=d.getMaxCyclicEdges(m);v.forEach(function(b){return delete c[b.reverse().getHashKey()]}),v.forEach(function(b){return c[b.getHashKey()]=!0})}),h=this.getNonTrivialStronglyConnectedComponents(this.reverseEdges(p,c).graph);return c},g.getMaxCyclicEdges=function(p){var d={},c={},h={},m=[],v=[],b=p.createIterator(I.ConnectionMode.Outgoing);b.visitEachEdgeOnce=!1,b.onNode=function(O){c[O.key]=!0},b.skipNode=function(O){if(c[O.key]){for(var k=[],M=0;M<m.length;M++){var A=m[M];if(void 0===h[A.key]&&(h[A.key]=0),h[A.key]++,k.push(A),A.from===O.key)break}v.push(k)}return c[O.key]||d[O.key]},b.skipEdge=function(O){return!1},b.onEdge=function(O){m.splice(0,0,O)},b.onAfterEdge=function(O){m.splice(0,1)},b.onAllEdges=function(O){d[O.key]=!0,c[O.key]=!1},b.iterate(p.nodes[0]);var x=new C.HashSet([],function(O){return O.key});return v.forEach(function(O){x.tryPush(O.reduce(function(k,M){return h[M.key]>h[k.key]?M:k},O[0]))}),x.list()},g.reverseEdges=function(p,d){var c=new C.HashSet([],function(v){return v.getHashKey()}),h={},m={};return p.edges.forEach(function(v){d[v.getHashKey()]&&(v=v.reverse(),h[v.key]=!0),c.tryPush(v)||(m[v.key]=!0,delete h[v.key])}),{graph:new E.Graph(p.nodes.map(function(v){return p.getNode(v)}),c.list()),reversedEdges:h,removedEdges:m}},g.getNonTrivialStronglyConnectedComponents=function(p){return this.getStronglyConnectedComponents(p).filter(function(d){return d.edges.length})},g.getStronglyConnectedComponents=function(p){for(var d=this,c=[],h=0,m={},v={},b={},x=[],O={},k=0;k<p.nodes.length;k++){var M=p.nodes[k],A=p.createIterator(I.ConnectionMode.Outgoing);A.visitEachEdgeOnce=!1,A.visitEachNodeOnce=!1,A.onNode=function(F){O[F.key]=!0,c.push(F),b[F.key]=!0,v[F.key]=h,m[F.key]=h,h++},A.skipNode=function(F){return O[F.key]},A.skipEdge=function(F){var P=O[F.to];return P&&b[F.to]&&(v[F.from]=Math.min(v[F.from],m[F.to])),P},A.onAfterEdge=function(F){v[F.from]=Math.min(v[F.from],v[F.to])},A.onAllEdges=function(F,P){P&&v[F.key]===m[F.key]&&x.push(d.getStronglyConnectedComponent(p,F,c,b))},A.iterate(M)}return x},g.getStronglyConnectedComponent=function(p,d,c,h){var m,v={},b=[],x=[];do{m=c.pop(),v[m.key]||b.push(m),v[m.key]=!0,h[m.key]=!1}while(m!==d);return b.forEach(function(O){var k=p.getAdjacentEdges(O.key,I.ConnectionMode.Outgoing);x=x.concat(k.filter(function(M){return!v[M.key]&&v[M.to]})),k.forEach(function(M){return v[M.key]=!0})}),new E.Graph(b,x)},g}();D.CycleRemover=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.SendToBackCommand=void 0;var C=w(102),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.isEnabled=function(){var d=this.control.selection.getSelectedItems();return g.prototype.isEnabled.call(this)&&d.length>0&&this.needSendToBack(d)},p.prototype.executeCore=function(d,c){var h=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedItems().forEach(function(m){var v=h.control.model.getIntersectItemsMinZIndex(m)-1;h.control.history.addAndRedo(new C.ChangeZindexHistoryItem(m,v))}),this.control.history.endTransaction(),!0},p.prototype.needSendToBack=function(d){for(var c=this,h=function(x){var O=m.control.model.getIntersectItemsMinZIndex(d[x]);if(O<d[x].zIndex)return{value:!0};if(O===d[x].zIndex){var k=!1;return m.control.model.getIntersectItems(d[x]).filter(function(M){return M.zIndex===d[x].zIndex}).forEach(function(M){c.control.model.getItemIndex(M)<c.control.model.getItemIndex(d[x])&&(k=!0)}),{value:k}}},m=this,v=0;v<d.length;v++){var b=h(v);if("object"==typeof b)return b.value}return!1},p}(w(10).SimpleCommandBase);D.SendToBackCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.BringToFrontCommand=void 0;var C=w(102),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.isEnabled=function(){var d=this.control.selection.getSelectedItems();return g.prototype.isEnabled.call(this)&&d.length>0&&this.needBringToFront(d)},p.prototype.executeCore=function(d,c){var h=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedItems().forEach(function(m){var v=h.control.model.getIntersectItemsMaxZIndex(m)+1;h.control.history.addAndRedo(new C.ChangeZindexHistoryItem(m,v))}),this.control.history.endTransaction(),!0},p.prototype.needBringToFront=function(d){for(var c=this,h=function(x){var O=m.control.model.getIntersectItemsMaxZIndex(d[x]);if(O>d[x].zIndex)return{value:!0};if(O===d[x].zIndex){var k=!1;return m.control.model.getIntersectItems(d[x]).filter(function(M){return M.zIndex===d[x].zIndex}).forEach(function(M){c.control.model.getItemIndex(M)>c.control.model.getItemIndex(d[x])&&(k=!0)}),{value:k}}},m=this,v=0;v<d.length;v++){var b=h(v);if("object"==typeof b)return b.value}return!1},p}(w(10).SimpleCommandBase);D.BringToFrontCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(A,F){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,N){P.__proto__=N}||function(P,N){for(var B in N)N.hasOwnProperty(B)&&(P[B]=N[B])})(A,F)},function(A,F){function P(){this.constructor=A}E(A,F),A.prototype=null===F?Object.create(F):(P.prototype=F.prototype,new P)});Object.defineProperty(D,"__esModule",{value:!0}),D.MoveStepDownCommand=D.MoveDownCommand=D.MoveStepUpCommand=D.MoveUpCommand=D.MoveStepRightCommand=D.MoveRightCommand=D.MoveStepLeftCommand=D.MoveLeftCommand=D.MoveCommand=void 0;var C=w(0),y=w(4),g=w(12),p=w(10),d=w(58),c=function(A){function F(){return null!==A&&A.apply(this,arguments)||this}return I(F,A),F.prototype.isEnabled=function(){return A.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty()},F.prototype.executeCore=function(P,N){var B=this;this.control.history.beginTransaction();var V=this.control.selection,H=V.getSelectedShapes();H.filter(function(q){for(;q.container;){if(-1!==H.indexOf(q.container))return!1;q=q.container}return!0}).forEach(function(q){B.permissionsProvider.addInteractingItem(q,d.DiagramModelOperation.MoveShape);var G=B.getPosition(q.position);y.ModelUtils.setShapePosition(B.control.history,B.control.model,q,G),y.ModelUtils.updateShapeAttachedConnectors(B.control.history,B.control.model,q),B.permissionsProvider.clearInteractingItems()});var W=y.ModelUtils.createSelectedItems(V);return V.getSelectedConnectors().forEach(function(q){if(y.ModelUtils.canMoveConnector(W,q))for(var J=q.endItem?q.points.length-2:q.points.length-1,ne=q.beginItem?1:0;ne<=J;ne++){var ae=B.getPosition(q.points[ne]);y.ModelUtils.moveConnectorPoint(B.control.history,q,ne,ae)}}),y.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction(),!0},Object.defineProperty(F.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),F}(p.SimpleCommandBase);D.MoveCommand=c;var h=function(A){function F(){return null!==A&&A.apply(this,arguments)||this}return I(F,A),F.prototype.getPosition=function(P){return P.clone().offset(-g.UnitConverter.pixelsToTwips(1),0)},F}(c);D.MoveLeftCommand=h;var m=function(A){function F(){return null!==A&&A.apply(this,arguments)||this}return I(F,A),F.prototype.getPosition=function(P){return this.control.settings.snapToGrid?new C.Point(y.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,P.x-(this.control.settings.gridSize/2+2),!0),P.y):P.clone().offset(-this.control.settings.gridSize,0)},F}(c);D.MoveStepLeftCommand=m;var v=function(A){function F(){return null!==A&&A.apply(this,arguments)||this}return I(F,A),F.prototype.getPosition=function(P){return P.clone().offset(g.UnitConverter.pixelsToTwips(1),0)},F}(c);D.MoveRightCommand=v;var b=function(A){function F(){return null!==A&&A.apply(this,arguments)||this}return I(F,A),F.prototype.getPosition=function(P){return this.control.settings.snapToGrid?new C.Point(y.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,P.x+(this.control.settings.gridSize/2+2),!0),P.y):P.clone().offset(this.control.settings.gridSize,0)},F}(c);D.MoveStepRightCommand=b;var x=function(A){function F(){return null!==A&&A.apply(this,arguments)||this}return I(F,A),F.prototype.getPosition=function(P){return P.clone().offset(0,-g.UnitConverter.pixelsToTwips(1))},F}(c);D.MoveUpCommand=x;var O=function(A){function F(){return null!==A&&A.apply(this,arguments)||this}return I(F,A),F.prototype.getPosition=function(P){return this.control.settings.snapToGrid?new C.Point(P.x,y.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,P.y-(this.control.settings.gridSize/2+2),!1)):P.clone().offset(0,-this.control.settings.gridSize)},F}(c);D.MoveStepUpCommand=O;var k=function(A){function F(){return null!==A&&A.apply(this,arguments)||this}return I(F,A),F.prototype.getPosition=function(P){return P.clone().offset(0,g.UnitConverter.pixelsToTwips(1))},F}(c);D.MoveDownCommand=k;var M=function(A){function F(){return null!==A&&A.apply(this,arguments)||this}return I(F,A),F.prototype.getPosition=function(P){return this.control.settings.snapToGrid?new C.Point(P.x,y.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,P.y+(this.control.settings.gridSize/2+2),!1)):P.clone().offset(0,this.control.settings.gridSize)},F}(c);D.MoveStepDownCommand=M},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(H,W){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,G){q.__proto__=G}||function(q,G){for(var J in G)G.hasOwnProperty(J)&&(q[J]=G[J])})(H,W)},function(H,W){function q(){this.constructor=H}E(H,W),H.prototype=null===W?Object.create(W):(q.prototype=W.prototype,new q)});Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleAutoZoomCommand=D.ToggleAutoZoomToWidthCommand=D.ToggleAutoZoomToContentCommand=D.SwitchAutoZoomCommand=D.FitToWidthCommand=D.FitToScreenCommand=D.ChangeZoomLevelItemsCommand=D.ChangeZoomLevelTo200Command=D.ChangeZoomLevelTo150Command=D.ChangeZoomLevelTo125Command=D.ChangeZoomLevelTo100Command=D.ChangeZoomLevelTo75Command=D.ChangeZoomLevelTo50Command=D.ChangeZoomLevelTo25Command=D.ChangeZoomLevelInPercentageCommand=D.ChangeZoomLevelCommand=void 0;var C=w(10),y=w(28),g=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.view.getZoom()},W.prototype.executeCore=function(q,G){return this.control.settings.zoomLevel=G,this.control.settings.autoZoom=y.AutoZoomMode.Disabled,this.control.updateLayout(!0),!0},W.prototype.getItems=function(){return this.control.settings.zoomLevelItems.map(function(q){return{value:q,text:100*q+"%"}})},W}(C.SimpleCommandBase);D.ChangeZoomLevelCommand=g;var p=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.executeCore=function(q,G){return H.prototype.executeCore.call(this,q,G/100)},W.prototype.getValue=function(){return 100*this.control.view.getZoom()},W}(g);D.ChangeZoomLevelInPercentageCommand=p;var d=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.getValue=function(){return this.control.view.getZoom()===this.exactValue},W.prototype.executeCore=function(q,G){return H.prototype.executeCore.call(this,q,this.exactValue),!0},W.prototype.getItems=function(){},W}(g),c=function(H){function W(){var q=null!==H&&H.apply(this,arguments)||this;return q.exactValue=.25,q}return I(W,H),W}(d);D.ChangeZoomLevelTo25Command=c;var h=function(H){function W(){var q=null!==H&&H.apply(this,arguments)||this;return q.exactValue=.5,q}return I(W,H),W}(d);D.ChangeZoomLevelTo50Command=h;var m=function(H){function W(){var q=null!==H&&H.apply(this,arguments)||this;return q.exactValue=.75,q}return I(W,H),W}(d);D.ChangeZoomLevelTo75Command=m;var v=function(H){function W(){var q=null!==H&&H.apply(this,arguments)||this;return q.exactValue=1,q}return I(W,H),W}(d);D.ChangeZoomLevelTo100Command=v;var b=function(H){function W(){var q=null!==H&&H.apply(this,arguments)||this;return q.exactValue=1.25,q}return I(W,H),W}(d);D.ChangeZoomLevelTo125Command=b;var x=function(H){function W(){var q=null!==H&&H.apply(this,arguments)||this;return q.exactValue=1.5,q}return I(W,H),W}(d);D.ChangeZoomLevelTo150Command=x;var O=function(H){function W(){var q=null!==H&&H.apply(this,arguments)||this;return q.exactValue=2,q}return I(W,H),W}(d);D.ChangeZoomLevelTo200Command=O;var k=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.settings.zoomLevelItems},W.prototype.executeCore=function(q,G){return this.control.settings.zoomLevelItems=G,!0},W}(C.SimpleCommandBase);D.ChangeZoomLevelItemsCommand=k;var M=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.isEnabled=function(){return H.prototype.isEnabled.call(this)&&!!this.control.render},W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.executeCore=function(q){var G=this.getZoomLevel();return this.control.settings.zoomLevel=G,this.control.settings.autoZoom=y.AutoZoomMode.Disabled,this.control.updateLayout(!0),!0},W}(C.SimpleCommandBase),A=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.getZoomLevel=function(){return this.control.render.view.getActualAutoZoomLevel(y.AutoZoomMode.FitContent)},W}(M);D.FitToScreenCommand=A;var F=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.getZoomLevel=function(){return this.control.render.view.getActualAutoZoomLevel(y.AutoZoomMode.FitToWidth)},W}(M);D.FitToWidthCommand=F;var P=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.settings.autoZoom},W.prototype.executeCore=function(q,G){return G=parseInt(G),this.control.settings.autoZoom!==G&&(G===y.AutoZoomMode.Disabled&&(this.control.settings.zoomLevel=this.control.view.getZoom()),this.control.settings.autoZoom=G,this.control.updateLayout(!0),!0)},W}(C.SimpleCommandBase);D.SwitchAutoZoomCommand=P;var N=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.getValue=function(){return this.control.settings.autoZoom===y.AutoZoomMode.FitContent},W.prototype.executeCore=function(q,G){return H.prototype.executeCore.call(this,q,y.AutoZoomMode.FitContent)},W}(P);D.ToggleAutoZoomToContentCommand=N;var B=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.getValue=function(){return this.control.settings.autoZoom===y.AutoZoomMode.FitToWidth},W.prototype.executeCore=function(q,G){return H.prototype.executeCore.call(this,q,y.AutoZoomMode.FitToWidth)},W}(P);D.ToggleAutoZoomToWidthCommand=B;var V=function(H){function W(){return null!==H&&H.apply(this,arguments)||this}return I(W,H),W.prototype.isEnabled=function(){return H.prototype.isEnabled.call(this)&&!!this.control.render},W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.settings.autoZoom},W.prototype.executeCore=function(q,G){var J;return this.control.settings.autoZoom!==(J=void 0===G?this.control.settings.autoZoom===y.AutoZoomMode.Disabled?y.AutoZoomMode.FitContent:y.AutoZoomMode.Disabled:G?y.AutoZoomMode.FitContent:y.AutoZoomMode.Disabled)&&(J||(this.control.settings.zoomLevel=this.control.view.getZoom()),this.control.settings.autoZoom=J,this.control.updateLayout(!0),!0)},W}(C.SimpleCommandBase);D.ToggleAutoZoomCommand=V},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.BindDocumentCommand=void 0;var C=w(103),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.isEnabledInReadOnlyMode=function(){return!0},p.prototype.executeCore=function(d,c){if(!c||!Array.isArray(c.nodeDataSource))throw Error("Format exception");return this.performImportData(c),this.control.updateLayout(!0),!0},p.prototype.performImportData=function(d){var c=this.control.createDocumentDataSource(d.nodeDataSource,d.edgeDataSource,d.dataParameters,d.nodeDataImporter,d.edgeDataImporter);this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions();var h=new C.DataLayoutParameters(this.control.settings,d.layoutParameters);c.createModelItems(this.control.history,this.control.model,this.control.shapeDescriptionManager,this.control.selection,h,this.control.settings.snapToGrid,this.control.settings.gridSize,this.control.measurer),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas()},p}(w(10).SimpleCommandBase);D.BindDocumentCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.UnbindDocumentCommand=void 0;var C=w(4),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.isEnabledInReadOnlyMode=function(){return!0},p.prototype.executeCore=function(d){return this.permissionsProvider.lockPermissions(),this.control.deleteDocumentDataSource(),C.ModelUtils.deleteAllItems(this.control.history,this.control.model,this.control.selection),this.control.history.clear(),this.permissionsProvider.unlockPermissions(),!0},p}(w(10).SimpleCommandBase);D.UnbindDocumentCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.LockCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getLockState=function(){return!0},g}(w(145).ChangeLockedCommand);D.LockCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.UnLockCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getLockState=function(){return!1},g}(w(145).ChangeLockedCommand);D.UnLockCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.CloneDownCommand=D.CloneUpCommand=D.CloneRightCommand=D.CloneLeftCommand=D.CloneCommand=void 0;var C=w(4),y=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),m.prototype.isEnabled=function(){var v=this.control.selection.getSelectedItems();return h.prototype.isEnabled.call(this)&&v.length&&v.length>0&&this.permissionsProvider.canAddItems(v)},m.prototype.executeCore=function(v,b){var x=C.ModelUtils.createRectangle(this.control.selection.getSelectedItems());return C.ModelUtils.cloneSelectionToOffset(this.control.history,this.control.model,void 0,this.control.selection,this.getOffsetX(x),this.getOffsetY(x)),!0},Object.defineProperty(m.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),m.prototype.getOffsetX=function(v){return 0},m.prototype.getOffsetY=function(v){return 0},m}(w(10).SimpleCommandBase);D.CloneCommand=y;var g=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),m.prototype.getOffsetX=function(v){return-v.width},m}(y);D.CloneLeftCommand=g;var p=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),m.prototype.getOffsetX=function(v){return v.width},m}(y);D.CloneRightCommand=p;var d=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),m.prototype.getOffsetY=function(v){return-v.height},m}(y);D.CloneUpCommand=d;var c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),m.prototype.getOffsetY=function(v){return v.height},m}(y);D.CloneDownCommand=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeViewUnitsCommand=D.ChangeUnitsCommand=void 0;var C=w(77),y=w(281),g=w(10),p=w(36),d=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),m.prototype.isEnabledInReadOnlyMode=function(){return!0},m.prototype.getValue=function(){return this.control.model.units},m.prototype.createHistoryItems=function(v){return[new y.ChangeUnitsHistoryItem(v)]},m.prototype.getItems=function(){return Object.keys(p.DiagramLocalizationService.unitItems).map(function(v){return{value:parseInt(v),text:p.DiagramLocalizationService.unitItems[v]}})},m}(C.ChangePagePropertyCommand);D.ChangeUnitsCommand=d;var c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),m.prototype.isEnabledInReadOnlyMode=function(){return!0},m.prototype.getValue=function(){return this.control.settings.viewUnits},m.prototype.executeCore=function(v,b){return this.control.settings.viewUnits=b,!0},m.prototype.getItems=function(){return Object.keys(p.DiagramLocalizationService.unitItems).map(function(v){return{value:parseInt(v),text:p.DiagramLocalizationService.unitItems[v]}})},m}(g.SimpleCommandBase);D.ChangeViewUnitsCommand=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeUnitsHistoryItem=void 0;var C=function(y){function g(p){var d=y.call(this)||this;return d.units=p,d}return I(g,y),g.prototype.redo=function(p){this.oldUnits=p.model.units,p.model.units=this.units},g.prototype.undo=function(p){p.model.units=this.oldUnits},g}(w(8).HistoryItem);D.ChangeUnitsHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangePageColorCommand=void 0;var C=w(77),y=w(283),g=w(62),p=w(22),d=function(c){function h(){return null!==c&&c.apply(this,arguments)||this}return I(h,c),h.prototype.getValue=function(){return p.ColorUtils.colorToHash(this.control.model.pageColor)},h.prototype.getDefaultValue=function(){return p.ColorUtils.colorToHash(g.DiagramModel.defaultPageColor)},h.prototype.createHistoryItems=function(m){return[new y.ChangePageColorHistoryItem(p.ColorUtils.fromString(m))]},h}(C.ChangePagePropertyCommand);D.ChangePageColorCommand=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangePageColorHistoryItem=void 0;var C=function(y){function g(p){var d=y.call(this)||this;return d.value=p,d}return I(g,y),g.prototype.redo=function(p){this.oldValue=p.model.pageColor,p.changePageColor(this.value)},g.prototype.undo=function(p){p.changePageColor(this.oldValue)},g}(w(8).HistoryItem);D.ChangePageColorHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeShowGridCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.isEnabledInReadOnlyMode=function(){return!0},g.prototype.executeCore=function(p,d){var c=void 0===d?!this.control.settings.showGrid:!!d;return this.control.settings.showGrid!==c&&(this.control.settings.showGrid=c,!0)},g.prototype.getValue=function(){return this.control.settings.showGrid},g}(w(10).SimpleCommandBase);D.ChangeShowGridCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleFullscreenCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.isEnabledInReadOnlyMode=function(){return!0},g.prototype.getValue=function(){return this.control.settings.fullscreen},g.prototype.executeCore=function(p,d){return this.control.settings.fullscreen!==("boolean"==typeof d?d:!p.value)&&(this.control.settings.fullscreen=!p.value,this.control.notifyToggleFullscreen(this.control.settings.fullscreen)),!0},g}(w(10).SimpleCommandBase);D.ToggleFullscreenCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleSimpleViewCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.isEnabledInReadOnlyMode=function(){return!0},g.prototype.getValue=function(){return this.control.settings.simpleView},g.prototype.executeCore=function(p,d){return"boolean"==typeof d?this.control.settings.simpleView=d:void 0===d&&(this.control.settings.simpleView=!p.value),this.control.updateLayout(!0),!0},g}(w(10).SimpleCommandBase);D.ToggleSimpleViewCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleReadOnlyCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.isEnabledInReadOnlyMode=function(){return!0},g.prototype.getValue=function(){return this.control.settings.readOnly},g.prototype.executeCore=function(p,d){return"boolean"==typeof d?this.control.settings.readOnly=d:void 0===d&&(this.control.settings.readOnly=!p.value),!0},g}(w(10).SimpleCommandBase);D.ToggleReadOnlyCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.EditShapeImageCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.isEnabled=function(){var p=this.getSelectedShape();return y.prototype.isEnabled.call(this)&&!p.image.isEmpty},g}(w(104).EditShapeImageCommandBase);D.EditShapeImageCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.PasteSelectionInPositionCommand=void 0;var C=w(141),y=w(14),g=w(6),p=w(0),d=function(c){function h(){return null!==c&&c.apply(this,arguments)||this}return I(h,c),h.prototype.getEventPositionOffset=function(m,v){var b=m.reduce(function(O,k){return{x:Math.min(O.x,k instanceof y.Shape?k.position.x:k instanceof g.Connector?k.getMinX():Number.MAX_VALUE),y:Math.min(O.y,k instanceof y.Shape?k.position.y:k instanceof g.Connector?k.getMinY():Number.MAX_VALUE)}},{x:Number.MAX_VALUE,y:Number.MAX_VALUE}),x=this.control.render.getModelPointByEventPoint(v.x,v.y);return new p.Point(x.x-b.x,x.y-b.y)},h}(C.PasteSelectionCommandBase);D.PasteSelectionInPositionCommand=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.ImportXMLCommand=void 0;var C=w(291),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.executeCore=function(d,c){var h=new C.XmlImporter(this.control.shapeDescriptionManager,c).import();return this.control.importModel(h),!0},p}(w(57).ExportImportCommandBase);D.ImportXMLCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(O,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,A){M.__proto__=A}||function(M,A){for(var F in A)A.hasOwnProperty(F)&&(M[F]=A[F])})(O,k)},function(O,k){function M(){this.constructor=O}E(O,k),O.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)});Object.defineProperty(D,"__esModule",{value:!0}),D.XmlImporter=void 0;var C=w(6),y=w(14),g=w(133),p=w(1),d=w(91),c=w(2),h=w(0),m=w(95),v=w(22),b=w(12),x=function(O){function k(M,A){var F=O.call(this,M)||this;return F.doc=m.ImportUtils.createDocument(A),F}return I(k,O),k.prototype.getObject=function(){return this.doc},k.prototype.getPageObject=function(M){var A=this.doc.querySelectorAll("[ItemKind='DiagramRoot']");return A&&A[0]},k.prototype.getShapeObjects=function(M){var A=[];return this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramShape']").forEach(function(F){A.push(F)}),this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramContainer']").forEach(function(F){A.push(F)}),A},k.prototype.getConnectorObjects=function(M){var A=[];return this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramConnector']").forEach(function(F){A.push(F)}),A},k.prototype.importPageSettings=function(M,A){if(A){var F=A.getAttribute("PageSize"),P=this.getSize(F);P&&(M.size=P.clone(),M.pageSize=P.clone())}},k.prototype.importShape=function(M){var A=M.getAttribute("Position"),F=this.getPoint(A),P=M.getAttribute("Shape"),N=this.getShapeType(P),B=this.shapeDescriptionManager.get(N),V=new y.Shape(B||d.ShapeDescriptionManager.default,F);V.key=this.getItemKey(M);var H=M.getAttribute("Size"),W=this.getSize(H);W&&(V.size=W);var q=M.getAttribute("Content");if("string"==typeof q)V.text=q;else{var G=M.getAttribute("Header");"string"==typeof G&&(V.text=G)}return this.importStyle(M,V),V},k.prototype.importShapeChildren=function(M,A){var F=[];M.setAttribute("dxDiagram",""),this.doc.querySelectorAll("[dxDiagram] > Children > [ItemKind='DiagramShape']").forEach(function(W){F.push(W)}),this.doc.querySelectorAll("[dxDiagram] > Children > [ItemKind='DiagramContainer']").forEach(function(W){F.push(W)}),M.removeAttribute("dxDiagram");var P=[];if(!F)return P;for(var N=0;N<F.length;N++){var B=F[N],V=this.importShape(B);V.key=A.key+","+V.key;var H=A.clientRectangle;V.position=V.position.clone().offset(H.x,H.y),A.childKeys||(A.childKeys=[]),A.childKeys.push(V.key),P.push(V),P=P.concat(this.importShapeChildren(B,V))}return P},k.prototype.importConnector=function(M){var A=this,F=[],P=M.getAttribute("BeginPoint"),N=this.getPoint(P);N&&F.push(N),M.getAttribute("Points").split(" ").forEach(function(pe){var le=A.getPoint(pe);le&&F.push(le)});var B=M.getAttribute("EndPoint"),V=this.getPoint(B);V&&F.push(V);var H=new C.Connector(F);H.key=this.getItemKey(M);var W=M.getAttribute("EndItemPointIndex"),q=parseInt(W);H.endConnectionPointIndex=isNaN(q)?-1:q;var G=M.getAttribute("BeginItemPointIndex"),J=parseInt(G);H.beginConnectionPointIndex=isNaN(J)?-1:J;var ne=M.getAttribute("EndItem");void 0!==ne&&this.assert(ne,"string");var ae=M.getAttribute("BeginItem");void 0!==ae&&this.assert(ae,"string"),H.endItemKey=ne,H.beginItemKey=ae;var ge=M.getAttribute("Content");return"string"==typeof ge&&H.setText(ge),this.importStyle(M,H),H},k.prototype.importStyle=function(M,A){var F=M.getAttribute("Background");"string"==typeof F&&(A.style.fill=this.getColor(F));var P=M.getAttribute("Stroke");"string"==typeof P&&(A.style.stroke=this.getColor(P));var N=M.getAttribute("Foreground");"string"==typeof N&&(A.styleText.fill=this.getColor(N));var B=M.getAttribute("FontFamily");"string"==typeof B&&(A.styleText["font-family"]=B);var V=M.getAttribute("FontSize");"string"==typeof V&&(A.styleText["font-size"]=V),"Bold"===M.getAttribute("FontWeight")&&(A.styleText["font-weight"]="bold"),"Italic"===M.getAttribute("FontStyle")&&(A.styleText["font-style"]="italic"),"Underline"===M.getAttribute("TextDecorations")&&(A.styleText["text-decoration"]="underline");var H=M.getAttribute("TextAlignment");"Left"===H?A.styleText["text-anchor"]="start":"Right"===H?A.styleText["text-anchor"]="end":"Center"===H&&(A.styleText["text-anchor"]="middle")},k.prototype.getShapeType=function(M){return k.shapeTypes[M]?k.shapeTypes[M]:M&&M.toLowerCase().indexOf("container")>-1?p.ShapeTypes.VerticalContainer:p.ShapeTypes.Rectangle},k.prototype.getItemKey=function(M){return(parseInt(M.tagName.replace("Item",""))-1).toString()},k.prototype.getNumbers=function(M){var A=M.split(",");return A&&A.length?A.map(function(F){return+F}):[]},k.prototype.getSize=function(M){if(M){var A=this.getNumbers(M);if(A.length>=2)return this.assert(A[0],"number"),this.assert(A[1],"number"),new c.Size(b.UnitConverter.pixelsToTwips(A[0]),b.UnitConverter.pixelsToTwips(A[1]))}},k.prototype.getPoint=function(M){if(M){var A=this.getNumbers(M);if(A.length>=2)return this.assert(A[0],"number"),this.assert(A[1],"number"),new h.Point(b.UnitConverter.pixelsToTwips(A[0]),b.UnitConverter.pixelsToTwips(A[1]))}},k.prototype.getColor=function(M){M="#"===M.charAt(0)?M.substr(1):M;var A=parseInt(M,16);return isNaN(A)?void 0:v.ColorUtils.colorToHash(A)},k.shapeTypes={"BasicShapes.Rectangle":p.ShapeTypes.Rectangle,"BasicShapes.Ellipse":p.ShapeTypes.Ellipse,"BasicShapes.Triangle":p.ShapeTypes.Triangle,"BasicShapes.Pentagon":p.ShapeTypes.Pentagon,"BasicShapes.Hexagon":p.ShapeTypes.Hexagon,"BasicShapes.Octagon":p.ShapeTypes.Octagon,"BasicShapes.Diamond":p.ShapeTypes.Diamond,"BasicShapes.Cross":p.ShapeTypes.Cross,"BasicShapes.Star5":p.ShapeTypes.Star,"BasicFlowchartShapes.StartEnd":p.ShapeTypes.Terminator,"BasicFlowchartShapes.Data":p.ShapeTypes.Data,"BasicFlowchartShapes.Database":p.ShapeTypes.Database,"BasicFlowchartShapes.ExternalData":p.ShapeTypes.StoredData,"BasicFlowchartShapes.Process":p.ShapeTypes.Process,"BasicFlowchartShapes.Decision":p.ShapeTypes.Decision,"BasicFlowchartShapes.Subprocess":p.ShapeTypes.PredefinedProcess,"BasicFlowchartShapes.Document":p.ShapeTypes.Document,"BasicFlowchartShapes.Custom1":p.ShapeTypes.ManualInput,"BasicFlowchartShapes.Custom2":p.ShapeTypes.ManualOperation,"ArrowShapes.SimpleArrow":p.ShapeTypes.ArrowLeft,"ArrowShapes.SimpleDoubleArrow":p.ShapeTypes.ArrowLeftRight},k}(g.ImporterBase);D.XmlImporter=x},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.InsertShapeImageCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.isEnabled=function(){var p=this.getSelectedShape();return y.prototype.isEnabled.call(this)&&p.image.isEmpty},g}(w(104).EditShapeImageCommandBase);D.InsertShapeImageCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.DeleteShapeImageCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.isEnabled=function(){var p=this.getSelectedShape();return y.prototype.isEnabled.call(this)&&!p.image.isEmpty},g.prototype.executeCore=function(p,d){return y.prototype.executeCore.call(this,p,void 0)},g}(w(104).EditShapeImageCommandBase);D.DeleteShapeImageCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeStrokeStyleCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getStyleProperty=function(){return"stroke-dasharray"},g}(w(75).ChangeStylePropertyCommand);D.ChangeStrokeStyleCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeStrokeWidthCommand=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.getStyleProperty=function(){return"stroke-width"},g}(w(75).ChangeStylePropertyCommand);D.ChangeStrokeWidthCommand=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.AutoLayoutTreeVerticalBottomToTopCommand=void 0;var C=w(20),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.createLayoutSettings=function(){var d=g.prototype.createLayoutSettings.call(this);return d.direction=C.LogicalDirectionKind.Backward,d},p}(w(137).AutoLayoutTreeVerticalCommand);D.AutoLayoutTreeVerticalBottomToTopCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.AutoLayoutTreeHorizontalRightToLeftCommand=void 0;var C=w(20),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.createLayoutSettings=function(){var d=g.prototype.createLayoutSettings.call(this);return d.direction=C.LogicalDirectionKind.Backward,d},p}(w(143).AutoLayoutTreeHorizontalCommand);D.AutoLayoutTreeHorizontalRightToLeftCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.AutoLayoutLayeredVerticalBottomToTopCommand=void 0;var C=w(20),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.createLayoutSettings=function(){var d=g.prototype.createLayoutSettings.call(this);return d.direction=C.LogicalDirectionKind.Backward,d},p}(w(144).AutoLayoutLayeredVerticalCommand);D.AutoLayoutLayeredVerticalBottomToTopCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.AutoLayoutLayeredHorizontalRightToLeftCommand=void 0;var C=w(20),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return I(p,g),p.prototype.createLayoutSettings=function(){var d=g.prototype.createLayoutSettings.call(this);return d.direction=C.LogicalDirectionKind.Backward,d},p}(w(142).AutoLayoutLayeredHorizontalCommand);D.AutoLayoutLayeredHorizontalRightToLeftCommand=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeConnectorRoutingModeCommand=void 0;var C=w(10),y=w(28),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.getValue=function(){return this.control.settings.connectorRoutingMode},d.prototype.executeCore=function(c,h){return this.control.settings.connectorRoutingMode=void 0!==h?h:y.ConnectorRoutingMode.None,!0},d}(C.SimpleCommandBase);D.ChangeConnectorRoutingModeCommand=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DiagramControl=void 0;var E=w(0),I=w(302),C=w(82),y=w(303),g=w(62),p=w(332),d=w(335),c=w(336),h=w(337),m=w(91),v=w(345),b=w(28),x=w(16),O=w(349),k=w(4),M=w(350),A=w(3),F=w(353),P=w(46),N=w(354),B=w(368),V=w(79),H=w(6),W=w(103),q=w(379),G=w(17),J=w(58),ne=function(){function ae(){this.updateLockCount=0,this.shouldUpdateItemsByModel=!1,this.reloadContentNeeded=!1,this.reloadContentParameters=new q.ReloadContentParameters,this.reloadContentByExternalChangesParameters=new q.ReloadContentParameters,this.settings=new b.DiagramSettings,this.shapeDescriptionManager=new m.ShapeDescriptionManager,this.shapeDescriptionManager.onShapeDecriptionChanged.add(this),this.model=new g.DiagramModel,this.selection=new p.Selection(this.model),this.onNativeAction=new A.EventDispatcher,this.apiController=new F.ApiController(this.onNativeAction,this.selection,this.model),this.permissionsProvider=new N.PermissionsProvider(this.apiController),this.permissionsProvider.onRequestOperation.add(this),this.routingModel=new B.ConnectorRoutingModel,this.modelManipulator=new I.ModelManipulator(this.model,this.routingModel,this.permissionsProvider),this.modelManipulator.onModelChanged.add(this.permissionsProvider),this.history=new d.History(this.modelManipulator,this),this.barManager=new c.BarManager(this),this.view=new O.ViewController(this.settings,this.barManager),this.commandManager=new C.CommandManager(this),this.eventManager=new y.EventManager(this),this.settings.onReadOnlyChanged.add(this.eventManager.mouseHandler),this.settings.onReadOnlyChanged.add(this.eventManager.visualizersManager),this.selection.onChanged.add(this.barManager),this.selection.onChanged.add(this.apiController),this.selection.onChanged.add(this.permissionsProvider),this.modelManipulator.commitItemsCreateChanges(),this.history.onChanged.add(this),this.toolboxManager=new M.ToolboxManager(this.shapeDescriptionManager),this.settings.onConnectorRoutingModeChanged.add(this.routingModel),P.ImageCache.instance.onReadyStateChanged.add(this)}return Object.defineProperty(ae.prototype,"operationSettings",{get:function(){return this.permissionsProvider.operationSettings},enumerable:!1,configurable:!0}),ae.prototype.cleanMarkup=function(ge){this.toolboxManager.clean(ge=ge||function(pe){G.RenderUtils.removeElement(pe)}),this.barManager.clean(),this.render&&(this.settings.onZoomChanged.remove(this.render.view),this.settings.onViewChanged.remove(this.render.page),this.settings.onViewChanged.remove(this.render.view),this.settings.onReadOnlyChanged.remove(this.render),this.settings.onReadOnlyChanged.remove(this.render.selection),this.eventManager.cleanToolboxes(this.settings.onReadOnlyChanged),this.eventManager.onTextInputOperation.remove(this.render.input),this.eventManager.onTextInputOperation.remove(this.render.items),this.eventManager.onTextInputOperation.remove(this.render.selection),this.eventManager.onMouseOperation.remove(this.render.items),this.eventManager.onMouseOperation.remove(this.render.selection),this.eventManager.onMouseOperation.remove(this.render.view),this.eventManager.onMouseOperation.remove(this.render),this.eventManager.onVisualizersUpdate.remove(this.render.selection),this.modelManipulator.onModelSizeChanged.remove(this.render.view),this.modelManipulator.onModelSizeChanged.remove(this.render.page),this.modelManipulator.onModelChanged.remove(this.render.items),this.modelManipulator.onModelChanged.remove(this.render.page),this.modelManipulator.onModelChanged.remove(this.render.selection),this.selection.onChanged.remove(this.render.selection),this.selection.onChanged.remove(this.render.items),this.render.clean(ge),this.render=void 0),this.measurer&&this.measurer instanceof V.TextMeasurer&&this.measurer.clean()},ae.prototype.dispose=function(){P.ImageCache.instance.onReadyStateChanged.remove(this)},ae.prototype.createDocument=function(ge,pe,le){this.measurer||this.initMeasurer(ge),this.render?this.render.replaceParent(ge,pe):(this.render=new h.RenderManager(ge,this.eventManager,this.measurer,{pageColor:this.model.pageColor,modelSize:this.model.size,pageLandscape:this.model.pageLandscape,pageSize:this.model.pageSize,simpleView:this.settings.simpleView,readOnly:this.settings.readOnly,contextMenuEnabled:this.settings.contextMenuEnabled,gridSize:this.settings.gridSize,gridVisible:this.settings.showGrid,zoomLevel:this.settings.zoomLevel,autoZoom:this.settings.autoZoom,rectangle:this.model.getRectangle(!0)},pe,le),this.settings.onZoomChanged.add(this.render.view),this.settings.onViewChanged.add(this.render.page),this.settings.onViewChanged.add(this.render.view),this.settings.onReadOnlyChanged.add(this.render),this.settings.onReadOnlyChanged.add(this.render.selection),this.eventManager.onTextInputOperation.add(this.render.input),this.eventManager.onTextInputOperation.add(this.render.items),this.eventManager.onTextInputOperation.add(this.render.selection),this.eventManager.onTextInputOperation.add(this),this.eventManager.onMouseOperation.add(this.render.items),this.eventManager.onMouseOperation.add(this.render.selection),this.eventManager.onMouseOperation.add(this.render.view),this.eventManager.onMouseOperation.add(this.render),this.eventManager.onVisualizersUpdate.add(this.render.selection),this.modelManipulator.onModelSizeChanged.add(this.render.view),this.modelManipulator.onModelSizeChanged.add(this.render.page),this.modelManipulator.onModelChanged.add(this.render.items),this.modelManipulator.onModelChanged.add(this.render.page),this.modelManipulator.onModelChanged.add(this.render.selection),this.selection.onChanged.add(this.render.selection),this.selection.onChanged.add(this.render.items),this.render.update(!1),this.render.onNewModel(this.model.items),this.modelManipulator.commitItemsCreateChanges(),this.view.initialize(this.render.view),this.settings.zoomLevelWasChanged&&this.raiseCanvasViewActualZoomChanged(),this.selection.raiseSelectionChanged())},ae.prototype.createToolbox=function(ge,pe,le,ce){var oe=this.toolboxManager.create(ge,this.settings.readOnly,!0,pe,le,this.getToolboxAllowedShapeTypes.bind(this),ce);this.settings.onReadOnlyChanged.add(oe),oe.onDragOperation.add(this),oe.onDragOperation.add(this.apiController),this.eventManager.registerToolbox(oe)},ae.prototype.createContextToolbox=function(ge,pe,le,ce,oe){this.cleanContextToolbox(),this.contextToolbox=this.toolboxManager.create(ge,this.settings.readOnly,!1,pe,le,this.getToolboxAllowedShapeTypes.bind(this),ce),this.contextToolbox.onClickOperation.add(this),this.contextToolboxOnClick=oe},ae.prototype.getToolboxAllowedShapeTypes=function(ge){var pe=this,le=[];return this.permissionsProvider.beginUpdateUI(),ge.forEach(function(ce){pe.permissionsProvider.canAddShapeFromToolbox(ce)&&le.push(ce)}),this.permissionsProvider.endUpdateUI(),le},ae.prototype.cleanContextToolbox=function(){this.contextToolbox&&(this.toolboxManager.clean(void 0,this.contextToolbox),this.contextToolbox=void 0,this.contextToolboxOnClick=void 0)},ae.prototype.refreshToolbox=function(ge){this.permissionsProvider.clearCache(x.DiagramModelOperation.AddShapeFromToolbox),this.toolboxManager.refresh(ge)},ae.prototype.applyToolboxFilter=function(ge,pe){return this.toolboxManager.applyFilter(ge,pe)},ae.prototype.notifyToolboxClick=function(ge){this.contextToolboxOnClick&&this.contextToolboxOnClick(ge)},ae.prototype.initMeasurer=function(ge){this.measurer=new V.TextMeasurer(ge)},ae.prototype.onDimensionChanged=function(){J.Browser.TouchUI||this.updateLayout(!0)},ae.prototype.updateLayout=function(ge){void 0===ge&&(ge=!1),this.render&&this.render.update(!ge)},ae.prototype.captureFocus=function(){this.render&&this.render.input.captureFocus()},ae.prototype.isFocused=function(){return!this.render||this.render.input.isFocused()},ae.prototype.registerBar=function(ge){this.barManager.registerBar(ge)},ae.prototype.updateBarItemsState=function(ge,pe){this.barManager.updateBarItemsState(ge,pe)},ae.prototype.getCommand=function(ge){return this.commandManager.getCommand(ge)},ae.prototype.getNativeItemByKey=function(ge){var pe=this.model.findItem(ge);return pe&&this.apiController.createNativeItem(pe)},ae.prototype.getNativeItemByDataKey=function(ge){var pe=this.model.findItemByDataKey(ge);return pe&&this.apiController.createNativeItem(pe)},ae.prototype.getNativeItems=function(){var ge=this;return this.model.items.map(function(pe){return ge.apiController.createNativeItem(pe)})},ae.prototype.getNativeSelectedItems=function(){var ge=this;return this.selection.getKeys().map(function(pe){return ge.apiController.createNativeItem(ge.model.findItem(pe))})},ae.prototype.setSelectedItems=function(ge){this.selection.set(ge)},ae.prototype.scrollToItems=function(ge){var pe=this,le=A.GeometryUtils.getCommonRectangle(ge.map(function(ce){return pe.model.findItem(ce).rectangle}));this.view.scrollIntoView(le)},ae.prototype.setInitialStyleProperties=function(ge){this.selection.inputPosition.setInitialStyleProperties(ge)},ae.prototype.setInitialTextStyleProperties=function(ge){this.selection.inputPosition.setInitialTextStyleProperties(ge)},ae.prototype.setInitialConnectorProperties=function(ge){this.selection.inputPosition.setInitialConnectorProperties(ge)},ae.prototype.addCustomShapes=function(ge){var pe=this;ge.forEach(function(le){le.apiController=pe.apiController,le.defaultWidth&&(le.defaultWidth=k.ModelUtils.getTwipsValue(pe.model.units,le.defaultWidth)),le.defaultHeight&&(le.defaultHeight=k.ModelUtils.getTwipsValue(pe.model.units,le.defaultHeight)),le.minWidth&&(le.minWidth=k.ModelUtils.getTwipsValue(pe.model.units,le.minWidth)),le.minHeight&&(le.minHeight=k.ModelUtils.getTwipsValue(pe.model.units,le.minHeight)),le.maxWidth&&(le.maxWidth=k.ModelUtils.getTwipsValue(pe.model.units,le.maxWidth)),le.maxHeight&&(le.maxHeight=k.ModelUtils.getTwipsValue(pe.model.units,le.maxHeight)),pe.shapeDescriptionManager.registerCustomShape(le)})},ae.prototype.removeCustomShapes=function(ge){var pe=this;ge.forEach(function(le){pe.shapeDescriptionManager.unregisterCustomShape(le)})},ae.prototype.removeAllCustomShapes=function(){this.shapeDescriptionManager.unregisterAllCustomShapes()},ae.prototype.importModel=function(ge){ge.units=this.model.units,this.model=ge,this.model.initializeKeyCounter(),this.apiController.model=ge,this.onImportData()},ae.prototype.importItemsData=function(){this.onImportData()},ae.prototype.onImportData=function(){this.render&&(this.render.clear(),this.render.onNewModel(this.model.items)),this.permissionsProvider.clearCache(),this.selection.initialize(this.model),this.modelManipulator.initialize(this.model,this.routingModel),this.history.clear(),this.eventManager.initialize(),this.modelManipulator.commitPageChanges(),this.modelManipulator.commitItemsCreateChanges(),this.notifyViewChanged(),this.notifyHistoryChanged()},ae.prototype.createDocumentDataSource=function(ge,pe,le,ce,oe){return this.documentDataSource=new v.DocumentDataSource(this,ge,pe,le,ce,oe),this.apiController.setDataSource(this.documentDataSource),this.documentDataSource},ae.prototype.deleteDocumentDataSource=function(){this.apiController.setDataSource(null),delete this.documentDataSource},ae.prototype.applyShapeSizeSettings=function(ge){this.settings.applyShapeSizeSettings(ge,this.model.units)},ae.prototype.applyOperationSettings=function(ge){this.permissionsProvider.operationSettings.applySettings(ge)},ae.prototype.beginUpdateCanvas=function(){this.render&&(this.render.items.beginUpdate(),this.render.selection.beginUpdate())},ae.prototype.endUpdateCanvas=function(){this.render&&(this.render.items.endUpdate(),this.render.selection.endUpdate())},ae.prototype.beginUpdate=function(){this.barManager.beginUpdate(),this.apiController.beginUpdate(),this.eventManager.beginUpdate()},ae.prototype.endUpdate=function(){this.barManager.endUpdate(),this.apiController.endUpdate(),this.eventManager.endUpdate()},ae.prototype.notifyEdgeInserted=function(ge,pe,le){this.onEdgeInserted?this.onEdgeInserted(ge,pe,le):pe(ge)},ae.prototype.notifyEdgeUpdated=function(ge,pe,le,ce){this.onEdgeUpdated?this.onEdgeUpdated(ge,pe,le,ce):le(ge,pe)},ae.prototype.notifyEdgeRemoved=function(ge,pe,le,ce){this.onEdgeUpdated?this.onEdgeRemoved(ge,pe,le,ce):le(ge,pe)},ae.prototype.notifyNodeInserted=function(ge,pe,le){this.onNodeInserted?this.onNodeInserted(ge,pe,le):pe(ge)},ae.prototype.notifyNodeUpdated=function(ge,pe,le,ce){this.onNodeUpdated?this.onNodeUpdated(ge,pe,le,ce):le(ge,pe)},ae.prototype.notifyNodeRemoved=function(ge,pe,le,ce){this.onNodeRemoved?this.onNodeRemoved(ge,pe,le,ce):le(ge,pe)},ae.prototype.reloadInsertedItem=function(ge){this.settings.reloadInsertedItemRequired&&this.reloadContent(ge)},ae.prototype.reloadContent=function(ge,pe,le,ce){if(this.documentDataSource){this.isChangesLocked()&&(this.reloadContentNeeded=!0);var oe=!0===ce||void 0===ce&&!this.reloadContentNeeded,K=oe?this.reloadContentByExternalChangesParameters:this.reloadContentParameters;K.add(ge,pe,le),this.isChangesLocked()||(this.reloadContentCore(K,oe),this.barManager.updateItemsState())}},ae.prototype.reloadContentCore=function(ge,pe){var le=this,ce=ge.getData&&ge.getData(),oe=this.documentDataSource.refetchData(ce&&ce.nodeDataSource,ce&&ce.edgeDataSource);this.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.documentDataSource.updateModelItems(this.history,this.model,this.shapeDescriptionManager,this.selection,new W.DataLayoutParameters(this.settings,ge.layoutParameters),pe,ge.dataKeys,function(K){le.modelManipulator.commitItemUpdateChanges(K)},oe,this.settings.snapToGrid,this.settings.gridSize,this.measurer),this.permissionsProvider.unlockPermissions(),this.endUpdateCanvas(),ge.clear()},ae.prototype.notifyHistoryChanged=function(){this.documentDataSource?(this.shouldUpdateItemsByModel=!0,this.settings.readOnly||this.notifyDataChanges()):this.raiseOnChanged()},ae.prototype.notifyViewChanged=function(){this.settings.notifyViewChanged()},ae.prototype.notifyToolboxDragStart=function(ge){this.render.notifyToolboxDragStart(ge),this.onToolboxDragStart&&this.onToolboxDragStart()},ae.prototype.notifyToolboxDragEnd=function(ge){this.render.notifyToolboxDragEnd(ge),this.onToolboxDragEnd&&this.onToolboxDragEnd()},ae.prototype.notifyToolboxDraggingMouseMove=function(ge){this.render&&this.render.notifyToolboxDraggingMouseMove(ge)},ae.prototype.notifyTextInputStart=function(ge,pe,le,ce){this.onTextInputStart&&this.onTextInputStart()},ae.prototype.notifyTextInputEnd=function(ge,pe){this.onTextInputEnd&&this.onTextInputEnd()},ae.prototype.notifyTextInputPermissionsCheck=function(ge,pe){},ae.prototype.notifyToggleFullscreen=function(ge){this.onToggleFullscreen&&this.onToggleFullscreen(ge)},ae.prototype.notifyShowContextMenu=function(ge,pe){if(this.onShowContextMenu&&this.render){var le=void 0;if(this.selection.getSelectedItems(!0).length>0){var ce=k.ModelUtils.createRectangle(this.selection.getSelectedItems(!0)),oe=this.render.getEventPointByModelPoint(ce.createPosition()),K=this.render.view.getAbsoluteSize(ce.createSize());le={x:oe.x,y:oe.y,width:K.width,height:K.height}}if(ge)this.contextMenuPosition=new E.Point(ge.x,ge.y),this.onShowContextMenu(ge.x,ge.y,le);else if(pe){var Q=this.render.getEventPointByModelPoint(pe);this.contextMenuPosition=Q.clone(),this.onShowContextMenu(Q.x,Q.y,le)}}},ae.prototype.notifyHideContextMenu=function(){this.onHideContextMenu&&this.render&&this.onHideContextMenu()},ae.prototype.notifyShowContextToolbox=function(ge,pe,le,ce,oe){if(this.onShowContextToolbox&&this.render){var K=this.render.getEventPointByModelPoint(ge);this.onShowContextToolbox(K.x,K.y,le,ce,oe),this.render.view.notifyShowContextToolbox()}},ae.prototype.notifyHideContextToolbox=function(){this.onHideContextToolbox&&this.render&&(this.onHideContextToolbox(),this.render.view.notifyHideContextToolbox()),this.cleanContextToolbox()},ae.prototype.notifyShapeDescriptionChanged=function(ge){this.modelManipulator.updateShapeDescription(ge)},ae.prototype.notifyImageCacheReadyStateChanged=function(ge){this.barManager.updateItemsState()},ae.prototype.raiseCanvasViewActualZoomChanged=function(){this.render.view.raiseActualZoomChanged()},ae.prototype.notifyRequestOperation=function(ge,pe){this.requestOperationByDataSource(ge,pe)||this.onRequestOperation&&this.onRequestOperation(ge,pe)},ae.prototype.requestOperationByDataSource=function(ge,pe){if(!this.documentDataSource||!this.documentDataSource.IsNodeParentIdMode()&&!this.documentDataSource.IsNodeItemsMode())return!1;if(ge===x.DiagramModelOperation.ChangeConnection){var le=pe,ce=le.shape&&this.model.findItem(le.shape.id),oe=le.connector&&this.model.findItem(le.connector.id);if(!ce||!oe)return;if(le.position===H.ConnectorPosition.End)for(var K=0;K<ce.attachedConnectors.length;K++){var Q=ce.attachedConnectors[K];if(Q!==oe&&Q.endItem&&Q.endItem===ce){le.allowed=!1;break}}le.allowed&&oe.beginItem&&oe.endItem&&this.isShapeParent(oe.endItem,oe.beginItem)&&(le.allowed=!1)}return!pe.allowed},ae.prototype.isShapeParent=function(ge,pe){if(ge===pe)return!0;for(var le=0;le<ge.attachedConnectors.length;le++){var ce=ge.attachedConnectors[le];if(ce.beginItem===ge&&ce.endItem){var oe=ce.endItem;if(oe===pe||this.isShapeParent(oe,pe))return!0}}return!1},ae.prototype.isChangesLocked=function(){return this.updateLockCount>0},ae.prototype.beginChangesNotification=function(){this.isChangesLocked()||this.changesLockChanged&&this.changesLockChanged(!0),this.updateLockCount++},ae.prototype.endChangesNotification=function(ge){var pe=this;this.updateLockCount--,this.isChangesLocked()||(this.changesLockChanged(!1),ge||setTimeout(function(){pe.notifyReloadContent(),pe.notifyDataChanges()},0))},ae.prototype.changesLockChanged=function(ge){ge?this.lockedReadOnly=this.settings.readOnly:ge=this.lockedReadOnly,this.commandManager.getCommand(C.DiagramCommand.ToggleReadOnly).execute(ge)},ae.prototype.notifyDataChanges=function(){this.isChangesLocked()||(this.shouldUpdateItemsByModel&&(this.documentDataSource.updateItemsByModel(this.model),this.shouldUpdateItemsByModel=!1),this.raiseOnChanged())},ae.prototype.notifyReloadContent=function(){this.reloadContentNeeded&&(this.reloadContentParameters.empty||this.reloadContentCore(this.reloadContentParameters,!1),this.reloadContentByExternalChangesParameters.empty||this.reloadContentCore(this.reloadContentByExternalChangesParameters,!0),this.reloadContentNeeded=!1)},ae.prototype.raiseOnChanged=function(){this.onChanged&&this.onChanged()},ae}();D.DiagramControl=ne},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ModelManipulator=void 0;var E=w(87),I=w(2),C=w(61),y=w(46),g=w(130),p=w(16),d=w(3),c=w(6),h=w(99),m=w(4),v=function(){function b(x,O,k){this.onModelChanged=new d.EventDispatcher,this.onModelSizeChanged=new d.EventDispatcher,this.initializeCore(x,O),this.permissionsProvider=k,this.imageLoader=new g.ImageLoader(this.updateShapeImage.bind(this))}return b.prototype.initialize=function(x,O){this.initializeCore(x,O),this.model.loadAllImages(this.imageLoader),this.updateModelSize()},b.prototype.initializeCore=function(x,O){var k=this;this.model=x,this.routingModel=O,this.routingModel&&(this.routingModel.initialize(x),x.iterateItems(function(M){if(M instanceof c.Connector){var A=k.routingModel.createStrategy(M.properties.lineOption);A?M.changeRoutingStrategy(A):M.invalidateRenderPoints()}}))},b.prototype.commitPageChanges=function(){this.raisePageSizeChanged(this.model.pageSize.clone(),this.model.pageLandscape),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageColorChanged(this.model.pageColor),this.raiseModelRectangleChanged(m.ModelUtils.createRectangle(this.model.items))},b.prototype.commitItemsCreateChanges=function(){C.Diagnostics.timer("new model: model changes"),this.commitItemsChangesCore(h.ItemChangeType.Create,this.model.items),C.Diagnostics.endTimer()},b.prototype.commitItemUpdateChanges=function(x){this.commitItemsChangesCore(h.ItemChangeType.UpdateStructure,[x])},b.prototype.commitItemsChangesCore=function(x,O){var k=[];O.forEach(function(M){k.push(new h.ItemChange(M,x))}),k.length&&this.raiseModelChanged(k)},b.prototype.insertToContainer=function(x,O){if(x.container&&O&&x.container.key!==O.key)throw Error("To insert an item to a container it's necessary to remove it from the current container.");O&&(-1===O.children.indexOf(x)&&O.children.push(x),x.container=O,this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.Update)]))},b.prototype.removeFromContainer=function(x){if(x.container){var O=x.container.children.indexOf(x);x.container.children.splice(O,1),x.container=void 0,this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.Update)])}},b.prototype.changeStyle=function(x,O,k){this.changeStyleCore(x,x.style,O,k)},b.prototype.changeStyleText=function(x,O,k){this.changeStyleCore(x,x.styleText,O,k)},b.prototype.changeStyleCore=function(x,O,k,M){void 0!==M?O[k]=M:delete O[k],this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties)])},b.prototype.changeZIndex=function(x,O){x.zIndex=O,this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.Update)])},b.prototype.changeLocked=function(x,O){x.locked=O,this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateClassName)])},b.prototype.changeCustomData=function(x,O){x.customData=d.ObjectUtils.cloneObject(O),this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateStructure)])},b.prototype.addShape=function(x,O){if(x.attachedConnectors.length)throw Error("A creating shape should not contain existing connectors.");return x.key=void 0!==O?O:this.model.getNextKey(),this.insertShape(x)},b.prototype.insertShape=function(x){this.model.pushItem(x);var O=this.permissionsProvider.canAddItems([x]);return this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.Create,O)]),this.model.loadAllImages(this.imageLoader),x},b.prototype.resizeShape=function(x,O,k){x.position=O,x.size=k;var M=this.permissionsProvider.isStoredPermissionsGranted(),A=this.getInteractingItem(x,p.DiagramModelOperation.ResizeShape);if(A){var F=A.size.clone(),P=x.size.clone();P.equals(F)||(M=this.permissionsProvider.canResizeShapes([{shape:x,size:P,oldSize:F}]))}var N=this.getInteractingItem(x,p.DiagramModelOperation.MoveShape);if(N){var B=N.position.clone(),V=x.position.clone();V.equals(B)||(M=this.permissionsProvider.canMoveShapes([{shape:x,position:V,oldPosition:B}]))}this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties,M)])},b.prototype.moveShape=function(x,O){x.position=O;var k=this.permissionsProvider.isStoredPermissionsGranted();this.getInteractingItem(x,p.DiagramModelOperation.AddShape)&&(k=this.permissionsProvider.canAddItems([x]));var M=this.getInteractingItem(x,p.DiagramModelOperation.MoveShape);if(M){var A=M.position.clone(),F=x.position.clone();F.equals(A)||(k=this.permissionsProvider.canMoveShapes([{shape:x,position:F,oldPosition:A}]))}this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties,k)])},b.prototype.changeShapeParameters=function(x,O){x.parameters.forEach(function(k){var M=O.get(k.key);M&&(k.value=M.value)}),this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties)])},b.prototype.changeShapeText=function(x,O){x.text=O,this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateStructure)])},b.prototype.changeShapeImage=function(x,O){x.image=O;var k=y.ImageCache.instance.createUnloadedInfoByShapeImageInfo(O);this.imageLoader.load(k),this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateStructure)])},b.prototype.changeShapeExpanded=function(x,O){x.expanded=O,x.toggleExpandedSize(),this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateStructure)])},b.prototype.deleteShape=function(x,O){if(x.attachedConnectors.length)throw Error("A removing shape should not contain existing connectors.");this.removeShape(x,O)},b.prototype.removeShape=function(x,O){this.model.removeItem(x),this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.Remove,O)])},b.prototype.updateShapeImage=function(x){if(x.imageUrl){var O=this.model.findShapesByImageUrl(x.imageUrl);O.forEach(function(k){x.base64?k.image.loadBase64Content(x.base64):k.image.setUnableToLoadFlag()}),this.commitItemsChangesCore(h.ItemChangeType.UpdateStructure,O)}},b.prototype.updateShapeDescription=function(x){var O=this.model.findShapesByDescription(x);this.commitItemsChangesCore(h.ItemChangeType.UpdateProperties,O)},b.prototype.addConnector=function(x,O){if(x.beginItem||x.endItem)throw Error("Creating connector should not contain begin/end items");return x.key=void 0!==O?O:this.model.getNextKey(),this.insertConnector(x)},b.prototype.insertConnector=function(x){this.model.pushItem(x);var O=this.routingModel.createStrategy(x.properties.lineOption);O?x.changeRoutingStrategy(O):x.clearRoutingStrategy();var k=this.permissionsProvider.canAddItems([x]);return this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.Create,k)]),x},b.prototype.deleteConnector=function(x){if(x.beginItem||x.endItem)throw Error("Creating connector should not contain begin/end items");this.removeConnector(x)},b.prototype.removeConnector=function(x){this.model.removeItem(x);var O=this.permissionsProvider.canDeleteItems([x]);this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.Remove,O)])},b.prototype.addDeleteConnectorPoint=function(x,O){var k=this.getConnectorInteractingPoints(x);O(x),this.addDeleteConnectorPointCore(x,k)},b.prototype.moveConnectorPoint=function(x,O,k){k(x),this.moveConnectorPointCore(x,O)},b.prototype.changeConnectorPoints=function(x,O){var k=this;O(x),x.points.forEach(function(M,A){return k.moveConnectorPointCore(x,A)})},b.prototype.moveConnectorPointCore=function(x,O){var k=this.getInteractingItem(x),M=this.permissionsProvider.isStoredPermissionsGranted();if(k){var A=0<O&&O<x.points.length-1;if(A=(A=A||0===O&&!x.beginItem)||O===x.points.length-1&&!x.endItem){var F=k.points.map(function(N){return N.clone()}),P=x.points.map(function(N){return N.clone()});d.GeometryUtils.arePointsEqual(F,P)||(M=this.permissionsProvider.canChangeConnectorPoints(x,F,P))}}this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties,M)])},b.prototype.getConnectorInteractingPoints=function(x){var O=this.getInteractingItem(x);return O?O.points.map(function(k){return k.clone()}):x.points.map(function(k){return k.clone()})},b.prototype.addDeleteConnectorPointCore=function(x,O){var k=this.permissionsProvider.isStoredPermissionsGranted(),M=x.points.map(function(A){return A.clone()});d.GeometryUtils.arePointsEqual(O,M)||(k=this.permissionsProvider.canChangeConnectorPoints(x,O,M)),this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties,k)])},b.prototype.addConnection=function(x,O,k,M){var A=x.getExtremeItem(M),F=x.getExtremeConnectionPointIndex(M);if(A!==O||F!==k){if(A)throw Error("Connector is already connected");O.attachedConnectors.push(x),M===c.ConnectorPosition.Begin?(x.beginItem=O,x.beginConnectionPointIndex=k):(x.endItem=O,x.endConnectionPointIndex=k),x.invalidateRenderPoints();var P=this.permissionsProvider.canChangeConnection(x,O,void 0,M,k);this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties,P)])}},b.prototype.setConnectionPointIndex=function(x,O,k){if(!x.getExtremeItem(k))throw Error("Connection should be connected");k===c.ConnectorPosition.Begin?x.beginConnectionPointIndex=O:x.endConnectionPointIndex=O,x.invalidateRenderPoints();var M=x.getExtremeItem(k),A=this.permissionsProvider.canChangeConnection(x,M,M,k,O);this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties,A)])},b.prototype.deleteConnection=function(x,O){var k=x.getExtremeItem(O);if(k){k.attachedConnectors.splice(k.attachedConnectors.indexOf(x),1),O===c.ConnectorPosition.Begin?(x.beginItem=null,x.beginConnectionPointIndex=-1):(x.endItem=null,x.endConnectionPointIndex=-1),x.invalidateRenderPoints();var M=this.permissionsProvider.canChangeConnection(x,void 0,k,O,-1);this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties,M)])}},b.prototype.changeConnectorProperty=function(x,O,k){if(x.properties[O]=k,"lineOption"===O){var M=this.routingModel?this.routingModel.createStrategy(x.properties.lineOption):void 0;M?x.changeRoutingStrategy(M):x.clearRoutingStrategy()}else x.invalidateRenderPoints();this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties)])},b.prototype.changeConnectorText=function(x,O,k){x.setText(O,k),this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateStructure)])},b.prototype.changeConnectorTextPosition=function(x,O,k){var M=x.getText(O);x.setText(null,O),x.setText(M,k),this.raiseModelChanged([new h.ItemChange(x,h.ItemChangeType.UpdateProperties)])},b.prototype.changeModelSize=function(x,O){this.model.size.width=x.width,this.model.size.height=x.height,this.raiseModelSizeChanged(this.model.size.clone(),O),(O.left||O.top)&&(this.model.snapStartPoint=this.model.snapStartPoint.clone().offset(O.left,O.top),this.raiseSnapPointChange(this.model.snapStartPoint))},b.prototype.changePageSize=function(x){this.model.pageSize.equals(x)||(this.model.pageSize=x,this.model.size=new I.Size(this.model.pageWidth,this.model.pageHeight),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageSizeChanged(this.model.pageSize,this.model.pageLandscape))},b.prototype.changePageLandscape=function(x){this.model.pageLandscape!==x&&(this.model.pageLandscape=x,this.model.pageSize.width!==this.model.pageSize.height&&(this.model.size=new I.Size(this.model.pageWidth,this.model.pageHeight),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageSizeChanged(this.model.pageSize,this.model.pageLandscape)))},b.prototype.changePageColor=function(x){this.model.pageColor!==x&&(this.model.pageColor=x,this.raisePageColorChanged(x))},b.prototype.updateModelSize=function(){var x=this.getModelSizeUpdateOffset();if(!x.isEmpty()){var O=Math.max(this.model.size.width+x.left+x.right,this.model.pageWidth),k=Math.max(this.model.size.height+x.top+x.bottom,this.model.pageHeight);this.model.size=new I.Size(O,k)}},b.prototype.getModelSizeUpdateOffset=function(){var x=this.model.getRectangle(!1),O=this.model.getRectangle(!0);return O.equals(x)||this.raiseModelRectangleChanged(O),this.createModelRectangleOffset(O)},b.prototype.createModelRectangleOffset=function(x){var O=this.model.pageWidth,k=this.model.pageHeight,M=this.model.size;return new E.Offsets(-Math.floor(x.x/O)*O,-Math.floor((M.width-x.right)/O)*O,-Math.floor(x.y/k)*this.model.pageHeight,-Math.floor((M.height-x.bottom)/k)*k)},b.prototype.raiseModelChanged=function(x){this.onModelChanged.raise1(function(O){return O.notifyModelChanged(x)})},b.prototype.raisePageColorChanged=function(x){this.onModelChanged.raise1(function(O){return O.notifyPageColorChanged(x)})},b.prototype.raisePageSizeChanged=function(x,O){this.onModelChanged.raise1(function(k){return k.notifyPageSizeChanged(x,O)})},b.prototype.raiseModelSizeChanged=function(x,O){this.onModelSizeChanged.raise1(function(k){return k.notifyModelSizeChanged(x,O)})},b.prototype.raiseModelRectangleChanged=function(x){this.onModelSizeChanged.raise1(function(O){return O.notifyModelRectangleChanged(x)})},b.prototype.raiseSnapPointChange=function(x){this.onModelSizeChanged.raise1(function(O){return O.notifySnapPointPositionChanged(x)})},b.prototype.getInteractingItem=function(x,O){return this.permissionsProvider.getInteractingItem(x,O)},b}();D.ModelManipulator=v},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.EventManager=void 0;var E=w(304),I=w(3),C=w(323),y=w(154),g=w(324),p=w(155),d=w(330),c=w(331),h=w(18),m=w(25),v=function(){function b(x){this.onMouseOperation=new I.EventDispatcher,this.onTextInputOperation=new I.EventDispatcher,this.toolboxes=[],this.control=x,this.visualizersManager=I.EventUtils.isTouchMode()?new d.VisualizerTouchManager(x.selection,x.model,this,x.settings):new p.VisualizerManager(x.selection,x.model,this,x.settings),this.onMouseOperation.add(this.visualizersManager),this.contextMenuHandler=h.Browser.TouchUI?new g.ContextMenuTouchHandler(x.selection):new y.ContextMenuHandler,this.contextMenuHandler.onVisibilityChanged.add(x),this.onMouseOperation.add(this.contextMenuHandler),this.onTextInputOperation.add(this.contextMenuHandler),this.contextToolboxHandler=new c.ContextToolboxHandler,this.contextToolboxHandler.onVisibilityChanged.add(x),this.contextToolboxHandler.onVisibilityChanged.add(this.contextMenuHandler),this.mouseHandler=new E.MouseHandler(x.history,x.selection,x.model,this,x.settings.readOnly,x.view,this.visualizersManager,this.contextToolboxHandler,x.shapeDescriptionManager,x.settings,x.permissionsProvider),this.textInputHandler=new C.TextInputHandler(x),this.visualizersManager.onVisualizersUpdate.add(this.mouseHandler)}return Object.defineProperty(b.prototype,"onVisualizersUpdate",{get:function(){return this.visualizersManager.onVisualizersUpdate},enumerable:!1,configurable:!0}),b.prototype.registerToolbox=function(x){this.toolboxes.push(x)},b.prototype.cleanToolboxes=function(x){this.toolboxes.forEach(function(O){x.remove(O)}),this.toolboxes=[]},b.prototype.initialize=function(){this.visualizersManager.initialize(this.control.model),this.mouseHandler.initialize(this.control.model)},b.prototype.beginUpdate=function(x){this.contextMenuHandler.beginUpdate(),this.visualizersManager.beginUpdate()},b.prototype.endUpdate=function(){this.contextMenuHandler.endUpdate(),this.visualizersManager.endUpdate()},b.prototype.onMouseDown=function(x){this.mouseHandler.onMouseDown(x),this.contextMenuHandler.onMouseDown(x),this.visualizersManager.onMouseDown(x),this.contextToolboxHandler.onMouseDown(x)},b.prototype.onMouseMove=function(x){this.processDragging(x),this.mouseHandler.onMouseMove(x)},b.prototype.onMouseUp=function(x){this.contextToolboxHandler.onMouseUp(x),this.mouseHandler.onMouseUp(x),this.contextMenuHandler.onMouseUp(x),this.visualizersManager.onMouseUp(x),this.processDragging(x)},b.prototype.onMouseEnter=function(x){this.visualizersManager.onMouseEnter(x)},b.prototype.onMouseLeave=function(x){this.visualizersManager.onMouseLeave(x)},b.prototype.onDblClick=function(x){this.mouseHandler.onMouseDblClick(x),this.textInputHandler.onDblClick(x),this.control.apiController.notifyDblClick(x)},b.prototype.onClick=function(x){this.mouseHandler.onMouseClick(x),this.control.apiController.notifyClick(x)},b.prototype.onContextMenu=function(x){this.contextMenuHandler.onContextMenu(x)},b.prototype.onLongTouch=function(x){this.mouseHandler.onLongTouch(x),this.contextMenuHandler.onLongTouch(x)},b.prototype.onBlur=function(x){this.contextMenuHandler.onBlur(x),this.contextToolboxHandler.onBlur(x),this.visualizersManager.onBlur(x)},b.prototype.onFocus=function(x){this.contextMenuHandler.onFocus(x),this.contextToolboxHandler.onFocus(x),this.visualizersManager.onFocus(x)},b.prototype.onKeyDown=function(x){var O=x.getShortcutCode();this.onShortcut(O)?(this.visualizersManager.updateConnectionPoints(),this.contextMenuHandler.onShortcut(x),this.contextToolboxHandler.onShortcut(x),x.preventDefault=!0):this.isShortcutForFocusInput(O)&&(x.preventDefault=!0),this.contextMenuHandler.onKeyDown(x),this.contextToolboxHandler.onKeyDown(x),this.mouseHandler.onKeyDown(x)},b.prototype.onKeyUp=function(x){this.mouseHandler.onKeyUp(x)},b.prototype.onTextInputBlur=function(x){this.textInputHandler.onBlur(x),this.contextMenuHandler.onTextInputBlur(x)},b.prototype.onTextInputFocus=function(x){this.textInputHandler.onFocus(x),this.contextMenuHandler.onTextInputFocus(x)},b.prototype.onTextInputKeyDown=function(x){this.textInputHandler.onKeyDown(x)},b.prototype.onShortcut=function(x){return!!this.control.commandManager.processShortcut(x)||!!this.mouseHandler.onShortcut(x)||void 0},b.prototype.isShortcutForFocusInput=function(x){return x===m.KeyCode.Delete||x===(m.KeyCode.Delete|m.ModifierKey.Ctrl)||x===(m.KeyCode.Delete|m.ModifierKey.Meta)||x===m.KeyCode.Backspace||x===(m.KeyCode.Backspace|m.ModifierKey.Ctrl)||x===(m.KeyCode.Backspace|m.ModifierKey.Shift)||x===(m.KeyCode.Backspace|m.ModifierKey.Meta)||x===m.KeyCode.Home||x===m.KeyCode.End||x===m.KeyCode.Up||x===(m.KeyCode.Up|m.ModifierKey.Ctrl)||x===(m.KeyCode.Up|m.ModifierKey.Meta)||x===m.KeyCode.Down||x===(m.KeyCode.Down|m.ModifierKey.Ctrl)||x===(m.KeyCode.Down|m.ModifierKey.Meta)||x===m.KeyCode.Left||x===(m.KeyCode.Left|m.ModifierKey.Ctrl)||x===(m.KeyCode.Left|m.ModifierKey.Meta)||x===m.KeyCode.Right||x===(m.KeyCode.Right|m.ModifierKey.Ctrl)||x===(m.KeyCode.Right|m.ModifierKey.Meta)},b.prototype.onPaste=function(x){!this.textInputHandler.isTextInputActive()&&this.control.commandManager.processPaste(x.clipboardData)&&(this.visualizersManager.updateConnectionPoints(),x.preventDefault=!0)},b.prototype.onMouseWheel=function(x){this.mouseHandler.onWheel(x)&&(x.preventDefault=!0)},b.prototype.isFocused=function(){return this.control.isFocused()},b.prototype.processDragging=function(x){var O=this.getDraggingEvent();O&&this.draggingEvent!==O?(this.draggingEvent=O,this.mouseHandler.onDragStart(this.draggingEvent),this.control.captureFocus()):!O&&this.draggingEvent&&(delete this.draggingEvent,this.mouseHandler.onDragEnd(x))},b.prototype.getDraggingEvent=function(){return this.toolboxes.filter(function(x){return x.draggingObject}).map(function(x){return x.draggingObject.evt})[0]},b.prototype.onDocumentDragStart=function(x){this.control.beginUpdate(),this.control.captureFocus(),this.onMouseOperation.raise("notifyDragStart",x)},b.prototype.onDocumentDragEnd=function(x){this.onMouseOperation.raise("notifyDragEnd",x),this.control.endUpdate(),this.control.barManager.updateItemsState()},b.prototype.onDocumentDragScrollStart=function(){this.onMouseOperation.raise1(function(x){return x.notifyDragScrollStart()})},b.prototype.onDocumentDragScrollEnd=function(){this.onMouseOperation.raise1(function(x){return x.notifyDragScrollEnd()})},b.prototype.onDocumentClick=function(x){this.control.beginUpdate(),this.control.endUpdate(),this.control.barManager.updateItemsState()},b.prototype.raiseTextInputStart=function(x,O,k,M){this.onTextInputOperation.raise("notifyTextInputStart",x,O,k,M)},b.prototype.raiseTextInputEnd=function(x,O){this.onTextInputOperation.raise("notifyTextInputEnd",x,O)},b.prototype.raiseTextInputPermissionsCheck=function(x,O){this.onTextInputOperation.raise("notifyTextInputPermissionsCheck",x,O)},b.prototype.canFinishTextEditing=function(){return this.textInputHandler.canFinishTextEditing()},b}();D.EventManager=v},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandler=void 0;var E=w(147),I=w(11),C=w(0),y=w(4),g=w(321),p=w(152),d=w(322),c=w(25),h=w(3),m=function(){function v(b,x,O,k,M,A,F,P,N,B,V){this.history=b,this.selection=x,this.model=O,this.eventManager=k,this.readOnly=M,this.view=A,this.visualizerManager=F,this.contextToolboxHandler=P,this.shapeDescriptionManager=N,this.settings=B,this.permissionsProvider=V,this.finishStateLock=0,this.initialize(O),this.selection.onChanged.add(this)}return v.prototype.initialize=function(b){this.model=b,this.allowMultipleSelection=!0,this.allowCopyDiagramItems=!0,this.allowSnapToCellOnDragDiagramItem=!0,this.allowSnapToCellOnDragPoint=!0,this.allowSnapToCellOnResizeShape=!0,this.allowFixedDrag=!0,this.allowZoomOnWheel=!0,this.allowScrollPage=!0,this.shouldScrollPage=!1,this.copyDiagramItemsByCtrlAndShift=!1,this.startScrollingPageByCtrl=!1,this.initializeDefaultState()},v.prototype.initializeDefaultState=function(){this.defaultState=this.readOnly?h.EventUtils.isTouchMode()?new g.MouseHandlerDefaultReadOnlyTouchState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):new p.MouseHandlerDefaultReadOnlyState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):h.EventUtils.isTouchMode()?new d.MouseHandlerDefaultTouchState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):new E.MouseHandlerDefaultState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings),this.switchToDefaultState()},v.prototype.onMouseDown=function(b){this.mouseDownEvent=b,this.state.onMouseDown(b)},v.prototype.onMouseMove=function(b){this.state.onMouseMove(b)},v.prototype.onMouseUp=function(b){this.state.onMouseUp(b)},v.prototype.onMouseDblClick=function(b){this.state.onMouseDblClick(b)},v.prototype.onMouseClick=function(b){this.state.onMouseClick(b)},v.prototype.onLongTouch=function(b){if(b.touches&&!(b.touches.length>1)){var x=b.source.key;void 0===x?this.selection.clear():this.selection.hasKey(x)?this.selection.remove(x):this.selection.add(x)}},v.prototype.onShortcut=function(b){return this.state.onShortcut(b)},v.prototype.onWheel=function(b){return this.state.onMouseWheel(b)},v.prototype.onDragStart=function(b){this.state.onDragStart(b)},v.prototype.onDragEnd=function(b){this.state.onDragEnd(b)},v.prototype.onKeyDown=function(b){this.state.onKeyDown(b)},v.prototype.onKeyUp=function(b){this.state.onKeyUp(b)},v.prototype.showContextToolbox=function(b,x,O,k,M,A){this.contextToolboxHandler.showContextToolbox(b,x,O,k,M,A)},v.prototype.hideContextToolbox=function(b){this.contextToolboxHandler.hideContextToolbox(b)},v.prototype.canScrollPage=function(b){return this.startScrollingPageByCtrl?!!this.hasCtrlModifier(b.modifiers)&&(!this.copyDiagramItemsByCtrlAndShift||b.source.type!==I.MouseEventElementType.Shape&&b.source.type!==I.MouseEventElementType.Connector):this.allowScrollPage&&this.shouldScrollPage},v.prototype.canMultipleSelection=function(b){return this.allowMultipleSelection&&this.hasCtrlOrShiftModifier(b.modifiers)},v.prototype.canCopySelectedItems=function(b){return!!this.allowCopyDiagramItems&&(this.copyDiagramItemsByCtrlAndShift?this.hasCtrlAndShiftModifier(b.modifiers):this.hasAltModifier(b.modifiers))},v.prototype.canCalculateFixedPosition=function(b){return!(!this.allowFixedDrag||!this.hasShiftModifier(b.modifiers)||this.copyDiagramItemsByCtrlAndShift&&this.hasCtrlModifier(b.modifiers))},v.prototype.canStartZoomOnWheel=function(b){return this.allowZoomOnWheel&&this.hasCtrlModifier(b.modifiers)},v.prototype.canFinishZoomOnWheel=function(b){return this.allowZoomOnWheel&&!this.hasCtrlModifier(b.modifiers)},v.prototype.onStartScrollPageByKeyboard=function(b){this.canStartScrollingPageByKeyboard(b)&&(this.raiseDragScrollStart(),this.shouldScrollPage=!0)},v.prototype.onFinishScrollPageByKeyboard=function(b){this.canEndScrollingPageByKeyboard(b)&&this.finishScrollingPage()},v.prototype.onFinishScrollPageByMouse=function(b){this.canEndScrollingPage(b)&&this.finishScrollingPage()},v.prototype.finishScrollingPage=function(){this.shouldScrollPage=!1,this.raiseDragScrollEnd(),this.switchToDefaultState()},v.prototype.hasCtrlOrShiftModifier=function(b){return this.hasCtrlModifier(b)||this.hasShiftModifier(b)},v.prototype.hasCtrlAndShiftModifier=function(b){return this.hasCtrlModifier(b)&&this.hasShiftModifier(b)},v.prototype.hasCtrlModifier=function(b){return(b&c.ModifierKey.Ctrl)>0},v.prototype.hasAltModifier=function(b){return(b&c.ModifierKey.Alt)>0},v.prototype.hasShiftModifier=function(b){return(b&c.ModifierKey.Shift)>0},v.prototype.canStartScrollingPageByKeyboard=function(b){return!this.startScrollingPageByCtrl&&!this.shouldScrollPage&&b.keyCode===c.KeyCode.Space},v.prototype.canEndScrollingPageByKeyboard=function(b){return!this.startScrollingPageByCtrl&&b.keyCode===c.KeyCode.Space},v.prototype.canEndScrollingPage=function(b){return!this.startScrollingPageByCtrl||this.hasCtrlModifier(b.modifiers)},v.prototype.getSnappedPointOnDragDiagramItem=function(b,x,O,k,M){var A=this.getSnapToCellOnDragDiagramItem(b);return new C.Point(this.getSnappedPos(this.getFixedXPosition(b,x,O,M),!0,A),this.getSnappedPos(this.getFixedYPosition(b,x,k,M),!1,A))},v.prototype.getSnappedPointOnDragPoint=function(b,x,O){var k=this.getSnapToCellOnDragPoint(b),M=this.getSnappedPos(x.x,!0,k),A=this.getSnappedPos(x.y,!1,k);return void 0===O||Math.pow(x.x-M,2)+Math.pow(x.y-A,2)<Math.pow(x.x-O.x,2)+Math.pow(x.y-O.y,2)?new C.Point(M,A):O},v.prototype.getSnappedOffsetOnDragPoint=function(b,x){var O=this.getSnapToCellOnDragPoint(b);return new C.Point(this.getSnappedPos(b.modelPoint.x-x.x,!0,O),this.getSnappedPos(b.modelPoint.y-x.y,!1,O))},v.prototype.lockAspectRatioOnShapeResize=function(b){return this.hasShiftModifier(b.modifiers)},v.prototype.getSnappedPositionOnResizeShape=function(b,x,O){return this.getSnapToCellOnResizeShape(b)?y.ModelUtils.getSnappedPos(this.model,this.settings.gridSize,x,O):x},v.prototype.getSnappedPos=function(b,x,O){return O?y.ModelUtils.getSnappedPos(this.model,this.settings.gridSize,b,x):b},v.prototype.getFixedXPosition=function(b,x,O,k){return O?x.x:x.x+b.modelPoint.x-k.x},v.prototype.getFixedYPosition=function(b,x,O,k){return O?x.y:x.y+b.modelPoint.y-k.y},v.prototype.getSnapToCellOnDragDiagramItem=function(b){return this.allowSnapToCellOnDragDiagramItem&&this.settings.snapToGrid&&!this.hasCtrlModifier(b.modifiers)},v.prototype.getSnapToCellOnDragPoint=function(b){return this.allowSnapToCellOnDragPoint&&this.settings.snapToGrid&&!this.hasCtrlModifier(b.modifiers)},v.prototype.getSnapToCellOnResizeShape=function(b){return this.allowSnapToCellOnResizeShape&&this.settings.snapToGrid&&!this.hasCtrlModifier(b.modifiers)},v.prototype.tryUpdateModelSize=function(b){this.lockPermissions(),y.ModelUtils.tryUpdateModelRectangle(this.history,b),this.unlockPermissions()},v.prototype.canAddDiagramItemToSelection=function(b){return b.source.key&&(b.button===I.MouseButton.Left||b.button===I.MouseButton.Right)},v.prototype.addDiagramItemToSelection=function(b){this.pressedDiagramItemKey=b.source.key,this.pressedDiagramItemInSelection=this.selection.hasKey(this.pressedDiagramItemKey),this.canMultipleSelection(b)?this.selection.add(b.source.key):this.changeSingleSelection(b.source.key)},v.prototype.canRemoveDiagramItemToSelection=function(b){return this.pressedDiagramItemKey&&b.source.key&&this.pressedDiagramItemKey===b.source.key&&(b.button===I.MouseButton.Left||b.button===I.MouseButton.Right)},v.prototype.removeDiagramItemFromSelection=function(b,x){this.pressedDiagramItemInSelection&&this.selection.getKeys().length>1&&b===I.MouseButton.Left&&this.selection.remove(x)},v.prototype.changeSingleSelection=function(b){this.selection.hasKey(b)||this.selection.set([b])},v.prototype.notifySelectionChanged=function(b){this.pressedDiagramItemKey&&!this.selection.hasKey(this.pressedDiagramItemKey)&&(this.pressedDiagramItemKey=void 0,this.pressedDiagramItemInSelection=!1)},v.prototype.raiseDragStart=function(b){this.eventManager.onDocumentDragStart(b)},v.prototype.raiseDragEnd=function(b){this.eventManager.onDocumentDragEnd(b)},v.prototype.raiseDragScrollStart=function(){this.eventManager.onDocumentDragScrollStart()},v.prototype.raiseDragScrollEnd=function(){this.eventManager.onDocumentDragScrollEnd()},v.prototype.raiseClick=function(b){this.eventManager.onDocumentClick(b)},v.prototype.beginStorePermissions=function(){this.permissionsProvider.beginStorePermissions()},v.prototype.endStorePermissions=function(){this.permissionsProvider.endStorePermissions()},v.prototype.isStoredPermissionsGranted=function(){return this.permissionsProvider.isStoredPermissionsGranted()},v.prototype.lockPermissions=function(){this.permissionsProvider.lockPermissions()},v.prototype.unlockPermissions=function(){this.permissionsProvider.unlockPermissions()},v.prototype.canPerformChangeConnection=function(b,x){var O=!0;return b?O=this.permissionsProvider.canChangeConnection(b,x.item,x.oldItem,x.position,x.connectionPointIndex):x.item&&(O=this.permissionsProvider.canChangeConnection(void 0,x.item,x.oldItem,x.position,x.connectionPointIndex)),O},v.prototype.canPerformChangeConnectionOnUpdateUI=function(b,x){this.permissionsProvider.beginUpdateUI();var O=this.canPerformChangeConnection(b,x);return this.permissionsProvider.endUpdateUI(),O},v.prototype.canFinishTextEditing=function(){return this.eventManager.canFinishTextEditing()},v.prototype.restartState=function(){this.state&&!this.finishStateLock&&(this.finishStateLock++,this.state.finish(),this.finishStateLock--),this.state.start()},v.prototype.switchToDefaultState=function(){this.switchState(this.defaultState)},v.prototype.switchState=function(b){this.newState=b,this.state&&!this.finishStateLock&&(this.finishStateLock++,this.state.finish(),this.finishStateLock--),this.newState&&(this.state=this.newState,this.state.start(),this.newState=void 0)},v.prototype.addInteractingItem=function(b,x){this.permissionsProvider.addInteractingItem(b,x)},v.prototype.clearInteractingItems=function(){this.permissionsProvider.clearInteractingItems()},v.prototype.notifyReadOnlyChanged=function(b){this.readOnly=b,this.initializeDefaultState()},v.prototype.notifySelectionRectShow=function(b){},v.prototype.notifySelectionRectHide=function(){},v.prototype.notifyResizeInfoShow=function(b,x){},v.prototype.notifyResizeInfoHide=function(){},v.prototype.notifyConnectionPointsShow=function(b,x,O,k){this.state.onConnectionPointsShow(b,x)},v.prototype.notifyConnectionPointsHide=function(){},v.prototype.notifyConnectionTargetShow=function(b,x){this.state.onConnectionTargetShow(b,x)},v.prototype.notifyConnectionTargetHide=function(){},v.prototype.notifyContainerTargetShow=function(b,x){},v.prototype.notifyContainerTargetHide=function(){},v.prototype.notifyExtensionLinesShow=function(b){},v.prototype.notifyExtensionLinesHide=function(){},v}();D.MouseHandler=m},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerMoveConnectorPointState=void 0;var C=w(0),y=w(148),g=w(6),p=w(4),d=w(32),c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return I(m,h),m.prototype.onMouseDown=function(v){this.connector=this.model.findConnector(v.source.key),this.pointIndex=parseInt(v.source.value),0===this.pointIndex?this.pointPosition=g.ConnectorPosition.Begin:this.pointIndex===this.connector.points.length-1&&(this.pointPosition=g.ConnectorPosition.End),this.handler.addInteractingItem(this.connector),h.prototype.onMouseDown.call(this,v)},m.prototype.onApplyChanges=function(v){this.connector.properties.lineOption===d.ConnectorLineOption.Orthogonal&&0!==this.pointIndex&&this.pointIndex!==this.connector.points.length-1||h.prototype.onApplyChanges.call(this,v)},m.prototype.onFinishWithChanges=function(){h.prototype.onFinishWithChanges.call(this),p.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),this.handler.tryUpdateModelSize()},m.prototype.getSnappedPoint=function(v,b){var x=this.connector.points,O=this.pointIndex;if(0<O&&O<x.length-1){var M=b.x;return this.handler.getSnappedPointOnDragPoint(v,b,new C.Point(M,x[O+1].y-(x[O+1].y-x[O-1].y)/(x[O+1].x-x[O-1].x)*(x[O+1].x-M)))}return this.handler.getSnappedPointOnDragPoint(v,b)},m}(y.MouseHandlerMoveConnectorPointStateBase);D.MouseHandlerMoveConnectorPointState=c},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(v,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var k in O)O.hasOwnProperty(k)&&(x[k]=O[k])})(v,b)},function(v,b){function x(){this.constructor=v}E(v,b),v.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerResizeShapeState=void 0;var C=w(2),y=w(0),g=w(11),p=w(34),d=w(4),c=w(7),h=w(16),m=function(v){function b(x,O,k,M,A,F){var P=v.call(this,x,O)||this;return P.model=k,P.selection=M,P.visualizerManager=A,P.settings=F,P.startScrollLeft=0,P.startScrollTop=0,P.rotation=0,P}return I(b,v),b.prototype.finish=function(){this.visualizerManager.resetResizeInfo(),this.visualizerManager.resetExtensionLines(),v.prototype.finish.call(this)},b.prototype.onMouseDown=function(x){var O=this,k=parseInt(x.source.value);this.resizeEventSource=k,this.startPoint=x.modelPoint,this.lockH=k===g.ResizeEventSource.ResizeBox_S||k===g.ResizeEventSource.ResizeBox_N,this.lockV=k===g.ResizeEventSource.ResizeBox_E||k===g.ResizeEventSource.ResizeBox_W,this.sideH=k===g.ResizeEventSource.ResizeBox_E||k===g.ResizeEventSource.ResizeBox_NE||k===g.ResizeEventSource.ResizeBox_SE,this.sideV=k===g.ResizeEventSource.ResizeBox_SE||k===g.ResizeEventSource.ResizeBox_S||k===g.ResizeEventSource.ResizeBox_SW,this.shapes=this.selection.getSelectedShapes(),0!==this.shapes.length?(this.shapes.forEach(function(M){O.handler.addInteractingItem(M,h.DiagramModelOperation.ResizeShape),O.handler.addInteractingItem(M,h.DiagramModelOperation.MoveShape)}),this.connectors=this.selection.getSelectedConnectors(),this.startRectangle=d.ModelUtils.createRectangle(this.shapes),this.startShapeSizes=this.shapes.map(function(M){return M.size.clone()}),this.startShapePositions=this.shapes.map(function(M){return M.position.clone()}),this.startConnectorPoints=this.connectors.map(function(M){return M.points.map(function(A){return A.clone()})}),v.prototype.onMouseDown.call(this,x)):this.handler.switchToDefaultState()},b.prototype.onMouseMove=function(x){v.prototype.onMouseMove.call(this,x);var O=this.selection.getSelectedShapes();this.visualizerManager.setExtensionLines(O)},b.prototype.onApplyChanges=function(x){var O=this,k=d.ModelUtils.createRectangle(this.shapes),M=1===this.shapes.length?this.shapes[0].getMinWidth(this.settings.shapeMinWidth):c.ShapeMinDimension,A=1===this.shapes.length?this.shapes[0].getMinHeight(this.settings.shapeMinHeight):c.ShapeMinDimension,F=1===this.shapes.length?this.shapes[0].getMaxWidth(this.settings.shapeMaxWidth):void 0,P=1===this.shapes.length?this.shapes[0].getMaxHeight(this.settings.shapeMaxHeight):void 0,N=this.getSize(x,k.createPosition(),this.startRectangle.createSize(),M,A,F,P,this.handler.lockAspectRatioOnShapeResize(x)),B=this.getPosition(x,N,this.startRectangle.createSize(),this.startRectangle.createPosition()),V=N.width/this.startRectangle.width,H=N.height/this.startRectangle.height;this.shapes.forEach(function(W,q){var G=O.startShapeSizes[q].width*(W.allowResizeHorizontally?V:1);G=O.getNormalizedSize(G,W.getMinWidth(O.settings.shapeMinWidth),W.getMaxWidth(O.settings.shapeMaxWidth));var J=O.startShapeSizes[q].height*(W.allowResizeVertically?H:1);J=O.getNormalizedSize(J,W.getMinHeight(O.settings.shapeMinHeight),W.getMaxHeight(O.settings.shapeMaxHeight)),d.ModelUtils.setShapeSize(O.history,O.model,W,new y.Point(W.allowResizeHorizontally?B.x+(O.startShapePositions[q].x-O.startRectangle.x)*V:O.startShapePositions[q].x,W.allowResizeVertically?B.y+(O.startShapePositions[q].y-O.startRectangle.y)*H:O.startShapePositions[q].y),new C.Size(G,J))}),this.connectors.forEach(function(W,q){for(var J=W.endItem?W.points.length-2:W.points.length-1,ne=W.beginItem?1:0;ne<=J;ne++){var ae=new y.Point(B.x+(O.startConnectorPoints[q][ne].x-O.startRectangle.x)*V,B.y+(O.startConnectorPoints[q][ne].y-O.startRectangle.y)*H);d.ModelUtils.moveConnectorPoint(O.history,W,ne,ae)}}),this.selection.getSelectedShapes(!1,!0).forEach(function(W){d.ModelUtils.updateShapeAttachedConnectors(O.history,O.model,W)}),this.tryUpdateModelSize(),this.visualizerManager.setResizeInfo(this.shapes)},b.prototype.tryUpdateModelSize=function(){var x=this;this.handler.tryUpdateModelSize(function(O,k){x.startShapePositions.forEach(function(M){M.x+=O,M.y+=k}),x.startConnectorPoints.forEach(function(M){M.forEach(function(A){A.x+=O,A.y+=k})}),x.startRectangle.x+=O,x.startRectangle.y+=k,x.startPoint.x+=O,x.startPoint.y+=k})},b.prototype.getDraggingElementKeys=function(){return this.shapes.map(function(x){return x.key})},b.prototype.getNormalizedSize=function(x,O,k){return void 0!==O&&(x=Math.max(x,O)),void 0!==k&&(x=Math.min(x,k)),x},b.prototype.getSize=function(x,O,k,M,A,F,P,N){var B,V,H=x.modelPoint.x-(this.startScrollLeft-x.scrollX)-this.startPoint.x,W=x.modelPoint.y-(this.startScrollTop-x.scrollY)-this.startPoint.y,q=H*Math.cos(this.rotation)- -W*Math.sin(this.rotation),G=-(H*Math.sin(this.rotation)+-W*Math.cos(this.rotation));return G=!this.sideV&&G>0?Math.min(k.height+1,G):G,q=!this.sideH&&q>0?Math.min(k.width+1,q):q,this.lockH||this.lockV||!N?(q=this.lockH?0:q,G=this.lockV?0:G,B=this.getNormalizedSize(this.sideH?k.width+q:k.width-q,M,F),V=this.getNormalizedSize(this.sideV?k.height+G:k.height-G,A,P)):Math.abs(q)>Math.abs(G)?(B=this.getNormalizedSize(this.sideH?k.width+q:k.width-q,M,F),V=k.height*(B/k.width)):(V=this.getNormalizedSize(this.sideV?k.height+G:k.height-G,A,P),B=k.width*(V/k.height)),this.lockH||(B=this.getSnappedPosition(x,O.x+B,!0)-O.x),this.lockV||(V=this.getSnappedPosition(x,O.y+V,!1)-O.y),new C.Size(B,V)},b.prototype.getPosition=function(x,O,k,M){var A=M.x,F=M.y;if(this.resizeEventSource===g.ResizeEventSource.ResizeBox_N||this.resizeEventSource===g.ResizeEventSource.ResizeBox_NE||this.resizeEventSource===g.ResizeEventSource.ResizeBox_NW){var P=this.getSnappedPosition(x,F+=k.height-O.height,!1);O.height+=F-P,F=P}if(this.resizeEventSource===g.ResizeEventSource.ResizeBox_W||this.resizeEventSource===g.ResizeEventSource.ResizeBox_NW||this.resizeEventSource===g.ResizeEventSource.ResizeBox_SW){var N=this.getSnappedPosition(x,A+=k.width-O.width,!0);O.width+=A-N,A=N}return new y.Point(A,F)},b.prototype.getSnappedPosition=function(x,O,k){return this.handler.getSnappedPositionOnResizeShape(x,O,k)},b}(p.MouseHandlerDraggingState);D.MouseHandlerResizeShapeState=m},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerMoveConnectorSideState=void 0;var C=w(34),y=w(4),g=function(p){function d(c,h,m){var v=p.call(this,c,h)||this;return v.model=m,v}return I(d,p),d.prototype.onMouseDown=function(c){this.startPoint=c.modelPoint,this.connectorKey=c.source.key,this.pointIndex=parseInt(c.source.value)+1,p.prototype.onMouseDown.call(this,c)},d.prototype.onApplyChanges=function(c){var h=this.getSnappedPoint(c,c.modelPoint),m=this.model.findConnector(this.connectorKey);this.pointCreated?y.ModelUtils.moveConnectorPoint(this.history,m,this.pointIndex,h):(this.handler.addInteractingItem(m),y.ModelUtils.addConnectorPoint(this.history,this.connectorKey,this.pointIndex,h.clone()),this.pointCreated=!0),this.handler.tryUpdateModelSize()},d.prototype.onFinishWithChanges=function(){var c=this.model.findConnector(this.connectorKey);y.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,c),y.ModelUtils.fixConnectorBeginEndConnectionIndex(this.history,c),this.handler.tryUpdateModelSize()},d.prototype.getDraggingElementKeys=function(){return[this.connectorKey]},d}(C.MouseHandlerDraggingState);D.MouseHandlerMoveConnectorSideState=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerDragParameterPointState=void 0;var C=w(34),y=w(112),g=function(p){function d(c,h,m){var v=p.call(this,c,h)||this;return v.model=m,v.startScrollLeft=0,v.startScrollTop=0,v}return I(d,p),d.prototype.onMouseDown=function(c){this.startPoint=c.modelPoint,this.shape=this.model.findShape(c.source.key),this.parameterPointKey=c.source.value,this.startParameters=this.shape.parameters.clone(),p.prototype.onMouseDown.call(this,c)},d.prototype.onApplyChanges=function(c){var h=this.handler.getSnappedOffsetOnDragPoint(c,this.startPoint),m=this.startParameters.clone();this.shape.description.modifyParameters(this.shape,m,h.x,h.y),this.history.addAndRedo(new y.ChangeShapeParametersHistoryItem(this.shape.key,m))},d.prototype.getDraggingElementKeys=function(){return[this.shape.key]},d}(C.MouseHandlerDraggingState);D.MouseHandlerDragParameterPointState=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(O,k){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,A){M.__proto__=A}||function(M,A){for(var F in A)A.hasOwnProperty(F)&&(M[F]=A[F])})(O,k)},function(O,k){function M(){this.constructor=O}E(O,k),O.prototype=null===k?Object.create(k):(M.prototype=k.prototype,new M)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerCreateConnectorState=void 0;var C=w(6),y=w(48),g=w(66),p=w(9),d=w(148),c=w(68),h=w(53),m=w(4),v=w(67),b=w(113),x=function(O){function k(M,A,F,P,N,B,V){var H=O.call(this,M,A,F,P)||this;return H.shapeDescriptionManager=N,H.selection=B,H.connectionPointIndex=V,H}return I(k,O),k.prototype.onMouseDown=function(M){void 0===this.connectionPointIndex&&(this.connectionPointIndex=parseInt(M.source.value)),this.connectedItem=this.model.findItem(M.source.key),this.pointIndex=1,this.pointPosition=C.ConnectorPosition.End,O.prototype.onMouseDown.call(this,M)},k.prototype.onMouseUp=function(M){this.connector&&!this.connector.endItem&&this.createNewShapeAtConnectorEnd(M),O.prototype.onMouseUp.call(this,M)},k.prototype.onApplyChanges=function(M){var A=this.getSnappedPoint(M,M.modelPoint);if(this.connector)O.prototype.onApplyChanges.call(this,M);else{var F=new g.AddConnectorHistoryItem([this.connectedItem.getConnectionPointPosition(this.connectionPointIndex,A),A]);this.history.addAndRedo(F),this.connector=this.model.findConnector(F.connectorKey),this.handler.addInteractingItem(this.connector),this.history.addAndRedo(new y.AddConnectionHistoryItem(this.connector,this.connectedItem,this.connectionPointIndex,C.ConnectorPosition.Begin)),m.ModelUtils.updateNewConnectorProperties(this.history,this.selection,this.connector.key)}},k.prototype.checkStoredPermissionsOnFinish=function(){this.connector&&this.connector.endItem&&O.prototype.checkStoredPermissionsOnFinish.call(this)},k.prototype.onFinishWithChanges=function(){O.prototype.onFinishWithChanges.call(this),this.history.addAndRedo(new c.SetSelectionHistoryItem(this.selection,[this.connector.key]))},k.prototype.createNewShapeAtConnectorEnd=function(M){var A=this,F=this.connector&&this.connector.beginItem;if(F)if(!this.connector||this.handler.canPerformChangeConnection(this.connector,{position:C.ConnectorPosition.End,connectionPointIndex:-1})){var P=this.getNewShapeSide(this.connector),N=this.getSnappedPoint(M,M.modelPoint),B=this.shapeDescriptionManager.getCategoryByDescription(F.description);this.handler.showContextToolbox(N,function(V){var H=V.clone();H.position=N.clone();var W=A.getNewShapePosition(H,P);return A.handler.getSnappedPointOnDragPoint(M,W)},P,B,function(V){if(V){A.handler.beginStorePermissions(),A.history.beginTransaction();var H=new h.AddShapeHistoryItem(A.shapeDescriptionManager.get(V),N);A.history.addAndRedo(H);var W=A.model.findShape(H.shapeKey),q=A.targetItem&&A.model.findNearestContainer(A.targetItem.key);q&&m.ModelUtils.insertToContainer(A.history,A.model,W,q);var G=A.getNewShapePosition(W,P);m.ModelUtils.setShapePosition(A.history,A.model,W,A.getSnappedPoint(M,G)),m.ModelUtils.updateNewShapeProperties(A.history,A.selection,W.key),A.history.addAndRedo(new y.AddConnectionHistoryItem(A.connector,W,W.getConnectionPointIndexForSide(P),C.ConnectorPosition.End)),q&&m.ModelUtils.updateConnectorContainer(A.history,A.model,A.connector),m.ModelUtils.updateShapeAttachedConnectors(A.history,A.model,W),A.handler.isStoredPermissionsGranted()?(A.handler.tryUpdateModelSize(),A.history.addAndRedo(new c.SetSelectionHistoryItem(A.selection,[W.key]))):(A.handler.lockPermissions(),A.history.undoTransaction(),A.handler.unlockPermissions(),A.checkNewConnectorPermissions()),A.history.endTransaction(),A.handler.endStorePermissions(),A.handler.hideContextToolbox(!0)}},function(){A.checkNewConnectorPermissions()})}else this.cancelChanges()},k.prototype.checkNewConnectorPermissions=function(){this.connector&&!this.handler.canPerformChangeConnection(this.connector,{position:C.ConnectorPosition.End,connectionPointIndex:-1})&&(this.handler.lockPermissions(),this.history.beginTransaction(),this.history.addAndRedo(new c.SetSelectionHistoryItem(this.selection,[])),this.connector.beginItem&&this.history.addAndRedo(new v.DeleteConnectionHistoryItem(this.connector,C.ConnectorPosition.Begin)),this.connector.endItem&&this.history.addAndRedo(new v.DeleteConnectionHistoryItem(this.connector,C.ConnectorPosition.End)),this.history.addAndRedo(new b.DeleteConnectorHistoryItem(this.connector.key)),this.history.endTransaction(),this.handler.unlockPermissions())},k.prototype.getNewShapePosition=function(M,A){switch(A){case p.ConnectionPointSide.North:return M.position.clone().offset(-M.size.width/2,0);case p.ConnectionPointSide.South:return M.position.clone().offset(-M.size.width/2,-M.size.height);case p.ConnectionPointSide.East:return M.position.clone().offset(-M.size.width,-M.size.height/2);case p.ConnectionPointSide.West:return M.position.clone().offset(0,-M.size.height/2)}},k.prototype.getNewShapeSide=function(M){var A=M.getRenderPoints();return k.getNewShapeSideByConnectorPoints(A[A.length-1],A[A.length-2])},k.prototype.getSourceItem=function(){return this.connectedItem},k.getNewShapeSideByConnectorPoints=function(M,A){return M.x===A.x?M.y>A.y?p.ConnectionPointSide.North:p.ConnectionPointSide.South:M.x>A.x?M.y===A.y?p.ConnectionPointSide.West:M.y>A.y?Math.abs(M.x-A.x)>Math.abs(M.y-A.y)?p.ConnectionPointSide.West:p.ConnectionPointSide.North:Math.abs(M.x-A.x)>Math.abs(M.y-A.y)?p.ConnectionPointSide.West:p.ConnectionPointSide.South:M.y===A.y?p.ConnectionPointSide.East:M.y>A.y?Math.abs(M.x-A.x)>Math.abs(M.y-A.y)?p.ConnectionPointSide.East:p.ConnectionPointSide.North:Math.abs(M.x-A.x)>Math.abs(M.y-A.y)?p.ConnectionPointSide.East:p.ConnectionPointSide.South},k}(d.MouseHandlerMoveConnectorPointStateBase);D.MouseHandlerCreateConnectorState=x},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerMoveConnectorOrthogonalSideState=void 0;var C=w(0),y=w(6),g=w(9),p=w(4),d=function(c){function h(m,v,b){var x=c.call(this,m,v)||this;return x.model=b,x}return I(h,c),h.prototype.onMouseDown=function(m){this.startPoint=m.modelPoint,this.connector=this.model.findConnector(m.source.key),this.handler.addInteractingItem(this.connector);var v=m.source.value.split("_"),b=parseInt(v[0]),x=parseInt(v[1]),O=this.connector.getRenderPoints(!0);this.renderPoint1=O[b].clone(),this.renderPoint2=O[x].clone(),this.isVerticalOrientation=this.renderPoint1.x===this.renderPoint2.x,-1!==this.renderPoint1.pointIndex?(this.pointIndex1=this.renderPoint1.pointIndex,0===this.pointIndex1?(this.pointIndex1++,this.correctEdgePoint(this.renderPoint1,this.renderPoint2,this.connector.beginItem,this.connector.beginConnectionPointIndex)):this.point1=this.connector.points[this.pointIndex1].clone()):this.pointIndex1=this.findPointIndex(O,b,!1)+1,-1!==this.renderPoint2.pointIndex?(this.pointIndex2=this.renderPoint2.pointIndex,this.pointIndex2===this.connector.points.length-1?this.correctEdgePoint(this.renderPoint2,this.renderPoint1,this.connector.endItem,this.connector.endConnectionPointIndex):this.point2=this.connector.points[this.pointIndex2].clone()):this.pointIndex2=this.findPointIndex(O,x,!0),c.prototype.onMouseDown.call(this,m)},h.prototype.onApplyChanges=function(m){var v=this;if(!this.pointCreated){var b=void 0,x=void 0;void 0===this.point1&&(this.point1=new C.Point(this.renderPoint1.x,this.renderPoint1.y),p.ModelUtils.addConnectorPoint(this.history,this.connector.key,this.pointIndex1,this.point1.clone()),b=this.point1.clone(),this.pointIndex2++),void 0===this.point2&&(this.point2=new C.Point(this.renderPoint2.x,this.renderPoint2.y),p.ModelUtils.addConnectorPoint(this.history,this.connector.key,this.pointIndex2,this.point2.clone()),x=this.point2.clone());var O=[];b&&O.push(b),x&&O.push(x);var k=this.createUnnecessaryPoints(this.connector,O);Object.keys(k).forEach(function(A){var F=parseInt(A);F<v.pointIndex1&&v.pointIndex1--,F<v.pointIndex2&&v.pointIndex2--}),this.pointCreated=!0}var M=this.getSnappedPoint(m,m.modelPoint);this.isVerticalOrientation?(this.point1.x=M.x,this.point2.x=M.x):(this.point1.y=M.y,this.point2.y=M.y),p.ModelUtils.moveConnectorRightAnglePoints(this.history,this.connector,this.point1.clone(),this.pointIndex1,this.point2.clone(),this.pointIndex2),this.handler.tryUpdateModelSize()},h.prototype.createUnnecessaryPoints=function(m,v){var b=m.getRenderPoints(!0).map(function(A){return A.clone()}),x=p.ModelUtils.createUnnecessaryRenderPoints(b.filter(function(A){return!A.skipped}).map(function(A){return A.clone()}),m.skippedRenderPoints,function(A){return p.ModelUtils.findFirstPointIndex(b,function(F){return F.equals(A)})},function(A){return!v.some(function(F){return F.equals(A)})}),O={};if(Object.keys(x).length){var k=m.points.map(function(A){return A.clone()}),M=k.length-1;k.forEach(function(A,F){0===F||F===M||p.ModelUtils.isNecessaryPoint(A,F,x)||(O[F]=A)})}return O},h.prototype.onFinishWithChanges=function(){p.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),p.ModelUtils.fixConnectorBeginEndConnectionIndex(this.history,this.connector),this.handler.tryUpdateModelSize()},h.prototype.findPointIndex=function(m,v,b){for(var x;x=m[v];){if(-1!==x.pointIndex)return x.pointIndex;v+=b?1:-1}},h.prototype.correctEdgePoint=function(m,v,b,x){var O=0;if(b){var k=b.getConnectionPointSideByIndex(x),M=b.rectangle;switch(O=y.Connector.minOffset,k){case g.ConnectionPointSide.South:O+=M.bottom-m.y;break;case g.ConnectionPointSide.North:O+=m.y-M.y;break;case g.ConnectionPointSide.East:O+=M.right-m.x;break;case g.ConnectionPointSide.West:O+=m.x-M.x}}this.isVerticalOrientation?m.y>v.y?m.y-=Math.min(O,m.y-v.y):m.y+=Math.min(O,v.y-m.y):m.x>v.x?m.x-=Math.min(O,m.x-v.x):m.x+=Math.min(O,v.x-m.x)},h.prototype.getDraggingElementKeys=function(){return[this.connector.key]},h}(w(34).MouseHandlerDraggingState);D.MouseHandlerMoveConnectorOrthogonalSideState=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(k,M){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,F){A.__proto__=F}||function(A,F){for(var P in F)F.hasOwnProperty(P)&&(A[P]=F[P])})(k,M)},function(k,M){function A(){this.constructor=k}E(k,M),k.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerToolboxDraggingState=D.MouseHandlerBeforeToolboxDraggingState=void 0;var C=w(11),y=w(0),g=w(53),p=w(68),d=w(34),c=w(114),h=w(4),m=w(40),v=w(16),x=function(k){function M(A,F,P,N,B,V){var H=k.call(this,A)||this;return H.history=F,H.model=P,H.selection=N,H.visualizerManager=B,H.shapeDescriptionManager=V,H.isModelEmpty=0===P.items.length,H}return I(M,k),M.prototype.cancelChanges=function(){this.tryRemoveTimer()},M.prototype.onDragStart=function(A){this.dragging=A},M.prototype.onDragEnd=function(A){this.cancelChanges(),this.handler.switchToDefaultState()},M.prototype.onMouseMove=function(A){var F=this;A.source.type>C.MouseEventElementType.Background?(this.tryRemoveTimer(),this.switchToDraggingState(A,!1)):A.source.type!==C.MouseEventElementType.Background||this.isModelEmpty?void 0!==this.nonPageAreaTimer&&this.tryRemoveTimer():(this.savedEvt=A,void 0===this.nonPageAreaTimer&&(this.nonPageAreaTimer=setTimeout(function(){return F.switchToDraggingState(F.savedEvt,!0)},500)))},M.prototype.switchToDraggingState=function(A,F){this.handler.switchState(new O(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.shapeDescriptionManager,F)),this.handler.state.onDragStart(this.dragging),this.handler.state.onMouseMove(A)},M.prototype.tryRemoveTimer=function(){void 0!==this.nonPageAreaTimer&&(clearTimeout(this.nonPageAreaTimer),delete this.nonPageAreaTimer)},M.prototype.finish=function(){this.tryRemoveTimer()},M}(m.MouseHandlerCancellableState);D.MouseHandlerBeforeToolboxDraggingState=x;var O=function(k){function M(A,F,P,N,B,V,H){var W=k.call(this,A,F)||this;return W.model=P,W.selection=N,W.visualizerManager=B,W.shapeDescriptionManager=V,H||(W.updatePageSizeTimer=setTimeout(function(){W.processAndRemoveUpdatePageSizeTimer()},300)),W}return I(M,k),M.prototype.cancelChanges=function(){this.tryRemoveUpdatePageSizeTimer(),k.prototype.cancelChanges.call(this)},M.prototype.tryRemoveUpdatePageSizeTimer=function(){void 0!==this.updatePageSizeTimer&&(clearTimeout(this.updatePageSizeTimer),delete this.updatePageSizeTimer)},M.prototype.processAndRemoveUpdatePageSizeTimer=function(){void 0!==this.updatePageSizeTimer&&(this.handler.tryUpdateModelSize(),delete this.updatePageSizeTimer)},M.prototype.onMouseMove=function(A){k.prototype.onMouseMove.call(this,A);var F=this.model.findShape(this.shapeKey);if(F){this.visualizerManager.setExtensionLines([F]);var P=h.ModelUtils.findContainerByEventKey(this.model,this.selection,A.source.key);P&&this.allowInsertToContainer(A,F,P)?this.visualizerManager.setContainerTarget(P,A.source.type):this.visualizerManager.resetContainerTarget()}},M.prototype.getDraggingElementKeys=function(){return void 0===this.shapeKey?[]:[this.shapeKey]},M.prototype.onApplyChanges=function(A){var F=this;if(A.source.type===C.MouseEventElementType.Undefined){if(this.dragging.onCaptured(!1),void 0!==this.shapeKey&&!this.deleteHistoryItem){var P=this.model.findShape(this.shapeKey);h.ModelUtils.detachConnectors(this.history,P),h.ModelUtils.removeFromContainer(this.history,this.model,P),this.deleteHistoryItem=new c.DeleteShapeHistoryItem(this.shapeKey,!0),this.history.addAndRedo(this.deleteHistoryItem)}}else{if(this.dragging.onCaptured(!0),void 0===this.shapeKey){this.startPoint=A.modelPoint,this.shapeKey=this.insertToolboxItem(A);var N=this.model.findShape(this.shapeKey);N&&this.handler.addInteractingItem(N,v.DiagramModelOperation.AddShape)}this.deleteHistoryItem&&(this.history.undoTransactionTo(this.deleteHistoryItem),delete this.deleteHistoryItem);var B=this.getPosition(A,this.startShapePosition);P=this.model.findShape(this.shapeKey),h.ModelUtils.setShapePosition(this.history,this.model,P,B),h.ModelUtils.updateMovingShapeConnections(this.history,P,this.connectorsWithoutBeginItemInfo,this.connectorsWithoutEndItemInfo,function(){F.visualizerManager.resetConnectionTarget(),F.visualizerManager.resetConnectionPoints()},function(H,W){F.visualizerManager.setConnectionTarget(H,C.MouseEventElementType.Shape),F.visualizerManager.setConnectionPoints(H,C.MouseEventElementType.Shape,W,!0)},function(H){return F.handler.addInteractingItem(H)}),h.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,P);var V=h.ModelUtils.findContainerByEventKey(this.model,this.selection,A.source.key);P&&V&&this.allowInsertToContainer(A,P,V)?h.ModelUtils.insertToContainer(this.history,this.model,P,V):h.ModelUtils.removeFromContainer(this.history,this.model,P),void 0===this.updatePageSizeTimer&&this.handler.tryUpdateModelSize(function(H,W){F.connectorsWithoutBeginItemInfo.forEach(function(q){q.point.x+=H,q.point.y+=W}),F.connectorsWithoutEndItemInfo.forEach(function(q){q.point.x+=H,q.point.y+=W})})}},M.prototype.onFinishWithChanges=function(){this.deleteHistoryItem||this.history.addAndRedo(new p.SetSelectionHistoryItem(this.selection,[this.shapeKey]))},M.prototype.onDragStart=function(A){this.dragging=A,this.connectorsWithoutBeginItemInfo=h.ModelUtils.getConnectorsWithoutBeginItemInfo(this.model),this.connectorsWithoutEndItemInfo=h.ModelUtils.getConnectorsWithoutEndItemInfo(this.model)},M.prototype.onDragEnd=function(A){void 0!==this.shapeKey&&A.source.type===C.MouseEventElementType.Undefined&&this.cancelChanges(),this.handler.switchToDefaultState()},M.prototype.finish=function(){this.visualizerManager.resetExtensionLines(),this.visualizerManager.resetContainerTarget(),this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),this.processAndRemoveUpdatePageSizeTimer(),this.dragging.onFinishDragging(),k.prototype.finish.call(this)},M.prototype.insertToolboxItem=function(A){var F=this.shapeDescriptionManager.get(this.dragging.data);this.startShapePosition=this.getSnappedPoint(A,new y.Point(A.modelPoint.x-F.defaultSize.width/2,A.modelPoint.y-F.defaultSize.height/2));var P=new g.AddShapeHistoryItem(F,this.startShapePosition);return this.history.addAndRedo(P),h.ModelUtils.updateNewShapeProperties(this.history,this.selection,P.shapeKey),P.shapeKey},M.prototype.allowInsertToContainer=function(A,F,P){return!this.handler.canMultipleSelection(A)&&P&&P.expanded&&h.ModelUtils.canInsertToContainer(this.model,F,P)},M.prototype.getPosition=function(A,F){return this.getSnappedPoint(A,new y.Point(F.x+A.modelPoint.x-this.startPoint.x,F.y+A.modelPoint.y-this.startPoint.y))},M}(d.MouseHandlerDraggingState);D.MouseHandlerToolboxDraggingState=O},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerMoveConnectorTextState=void 0;var C=w(34),y=w(313),g=w(69),p=function(d){function c(h,m,v){var b=d.call(this,h,m)||this;return b.model=v,b}return I(c,d),c.prototype.onMouseDown=function(h){this.connector=this.model.findConnector(h.source.key),this.position=parseFloat(h.source.value),this.text=this.connector.getText(this.position),this.savedText="",d.prototype.onMouseDown.call(this,h)},c.prototype.onApplyChanges=function(h){var m=this.connector.getTextPositionByPoint(h.modelPoint);if(m!==this.position){var v=this.connector.getText(m);""!==v&&v!==this.text&&(this.history.addAndRedo(new g.ChangeConnectorTextHistoryItem(this.connector,m,"")),this.savedText=v),this.history.addAndRedo(new y.ChangeConnectorTextPositionHistoryItem(this.connector,this.position,m)),""!==this.savedText&&this.savedText!==v&&(this.history.addAndRedo(new g.ChangeConnectorTextHistoryItem(this.connector,this.position,this.savedText)),this.savedText=""),this.position=m}},c.prototype.getDraggingElementKeys=function(){return[this.connector.key]},c}(C.MouseHandlerDraggingState);D.MouseHandlerMoveConnectorTextState=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeConnectorTextPositionHistoryItem=void 0;var C=function(y){function g(p,d,c){var h=y.call(this)||this;return h.connectorKey=p.key,h.position=d,h.newPosition=c,h}return I(g,y),g.prototype.redo=function(p){var d=p.model.findConnector(this.connectorKey);p.changeConnectorTextPosition(d,this.position,this.newPosition)},g.prototype.undo=function(p){var d=p.model.findConnector(this.connectorKey);p.changeConnectorTextPosition(d,this.newPosition,this.position)},g}(w(8).HistoryItem);D.ChangeConnectorTextPositionHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerToggleShapeExpandedState=void 0;var C=w(40),y=w(315),g=w(4),p=function(d){function c(h,m,v,b){var x=d.call(this,h)||this;return x.history=m,x.model=v,x.selection=b,x}return I(c,d),c.prototype.onMouseUp=function(h){var m=this.model.findShape(h.source.key);m&&!m.isLocked&&(this.history.beginTransaction(),this.history.addAndRedo(new y.ToggleShapeExpandedHistoryItem(m)),g.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,m),g.ModelUtils.updateContainerConnectorsAttachedPoints(this.history,this.model,m),g.ModelUtils.updateSelection(this.history,this.selection),this.handler.tryUpdateModelSize(),this.history.endTransaction(),this.handler.raiseClick([m.key])),this.handler.switchToDefaultState()},c}(C.MouseHandlerStateBase);D.MouseHandlerToggleShapeExpandedState=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleShapeExpandedHistoryItem=void 0;var C=function(y){function g(p){var d=y.call(this)||this;return d.shapeKey=p.key,d.expanded=p.expanded,d}return I(g,y),g.prototype.redo=function(p){var d=p.model.findShape(this.shapeKey);p.changeShapeExpanded(d,!this.expanded)},g.prototype.undo=function(p){var d=p.model.findShape(this.shapeKey);p.changeShapeExpanded(d,this.expanded)},g}(w(8).HistoryItem);D.ToggleShapeExpandedHistoryItem=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerSelectionState=void 0;var C=w(11),y=w(13),g=function(p){function d(c,h,m){var v=p.call(this,c)||this;return v.selection=h,v.visualizerManager=m,v}return I(d,p),d.prototype.finish=function(){this.handler.raiseDragEnd([]),this.visualizerManager.resetSelectionRectangle(),p.prototype.finish.call(this)},d.prototype.cancelChanges=function(){},d.prototype.onMouseDown=function(c){this.startPoint=c.modelPoint,this.handler.raiseDragStart([])},d.prototype.onMouseMove=function(c){c.button!==C.MouseButton.Left?this.handler.switchToDefaultState():(this.rectangle=y.Rectangle.fromPoints(this.startPoint,c.modelPoint),this.visualizerManager.setSelectionRectangle(this.rectangle))},d.prototype.onMouseUp=function(c){void 0!==this.rectangle?this.selection.selectRect(this.rectangle):this.selection.set([]),this.rectangle=void 0,this.handler.switchToDefaultState()},d}(w(40).MouseHandlerCancellableState);D.MouseHandlerSelectionState=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerZoomOnWheelState=void 0;var C=w(40),y=w(11),g=w(28),p=function(d){function c(h,m,v){var b=d.call(this,h)||this;return b.settings=m,b.view=v,b}return I(c,d),c.prototype.onMouseWheel=function(h){return this.trySwitchToDefault(h)?this.handler.state.onMouseWheel(h):(this.settings.zoomLevel=this.view.getNextStepZoom(h.deltaY<0),h.source.type===y.MouseEventElementType.Background?this.view.resetScroll():(this.view.scrollTo(h.modelPoint,h.offsetPoint),this.view.normalize()),h.preventDefault=!0,!0)},c.prototype.onMouseUp=function(h){this.handler.switchToDefaultState(),this.handler.state.onMouseUp(h)},c.prototype.onMouseDown=function(h){this.handler.switchToDefaultState(),this.handler.state.onMouseDown(h)},c.prototype.onMouseMove=function(h){this.trySwitchToDefault(h)&&this.handler.state.onMouseMove(h)},c.prototype.trySwitchToDefault=function(h){return!!this.handler.canFinishZoomOnWheel(h)&&(this.handler.switchToDefaultState(),!0)},c.prototype.start=function(){d.prototype.start.call(this),this.settings.zoomLevel=this.view.getZoom(),this.settings.autoZoom=g.AutoZoomMode.Disabled},c}(C.MouseHandlerStateBase);D.MouseHandlerZoomOnWheelState=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerZoomOnPinchState=void 0;var C=w(28),y=w(0),g=w(150),p=w(35),d=function(c){function h(m,v,b,x){var O=c.call(this,m,x,v)||this;return O.selection=v,O.settings=b,O.view=x,O}return I(h,c),h.prototype.onMouseDown=function(m){c.prototype.onMouseDown.call(this,m),m.touches.length>1&&(this.startDistance=this.getTouchDistance(m),this.startZoomLevel=this.settings.zoomLevel,this.prevDistance=this.startDistance)},h.prototype.onMouseMove=function(m){if(m.touches.length>1){var v=this.getTouchDistance(m);Math.abs(this.prevDistance-v)>1&&(this.settings.zoomLevel=this.startZoomLevel*(v/this.startDistance),this.view.scrollTo(this.getMiddleLayoutPoint(m),this.getMiddleAbsPoint(m)),this.view.normalize(),this.prevDistance=v)}c.prototype.onMouseMove.call(this,m)},h.prototype.onMouseUp=function(m){0===m.touches.length&&setTimeout(function(){this.handler.switchToDefaultState()}.bind(this),1)},h.prototype.start=function(){c.prototype.start.call(this),this.settings.zoomLevel=this.view.getZoom(),this.settings.autoZoom=C.AutoZoomMode.Disabled},h.prototype.getTouchDistance=function(m){var v=new y.Point(m.touches[0].offsetPoint.x,m.touches[0].offsetPoint.y),b=new y.Point(m.touches[1].offsetPoint.x,m.touches[1].offsetPoint.y);return p.Metrics.euclideanDistance(v,b)},h.prototype.getPointByEvent=function(m){return this.getMiddleAbsPoint(m)},h.prototype.getMiddleAbsPoint=function(m){return m.touches.length>1?h.getMiddlePointByEvent(m,function(v){return v.offsetPoint}):m.offsetPoint},h.prototype.getMiddleLayoutPoint=function(m){return m.touches.length>1?h.getMiddlePointByEvent(m,function(v){return v.modelPoint}):m.modelPoint},h.getMiddlePointByEvent=function(m,v){if(m.touches.length>1)return new y.Point((v(m.touches[0]).x+v(m.touches[1]).x)/2,(v(m.touches[0]).y+v(m.touches[1]).y)/2)},h}(g.MouseHandlerScrollingState);D.MouseHandlerZoomOnPinchState=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerMoveShapeState=void 0;var C=function(y){function g(p,d,c,h,m){var v=y.call(this,p,d,c,h,m)||this;return v.model=c,v.selection=h,v.visualizerManager=m,v}return I(g,y),Object.defineProperty(g.prototype,"areValidDraggingShapes",{get:function(){return this.shouldClone||this.draggingShapes.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"areValidDraggingConnectors",{get:function(){return!0},enumerable:!1,configurable:!0}),g}(w(151).MouseHandlerDragDiagramItemStateBase);D.MouseHandlerMoveShapeState=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerMoveConnectorState=void 0;var C=w(4),y=function(g){function p(d,c,h,m,v){var b=g.call(this,d,c,h,m,v)||this;return b.model=h,b.selection=m,b.visualizerManager=v,b}return I(p,g),Object.defineProperty(p.prototype,"areValidDraggingShapes",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"areValidDraggingConnectors",{get:function(){var d=this;return this.shouldClone?this.draggingShapes.length>0||this.draggingConnectors.length>0:!!this.draggingConnectors.length&&(this.draggingShapes.length?C.ModelUtils.canMoveConnector(this.selectedItems,this.draggingConnectors[this.draggingConnectorsIndexByKey[this.handler.mouseDownEvent.source.key]].connector):!this.draggingConnectors.some(function(c){return!C.ModelUtils.canMoveConnector(d.selectedItems,c.connector)}))},enumerable:!1,configurable:!0}),p}(w(151).MouseHandlerDragDiagramItemStateBase);D.MouseHandlerMoveConnectorState=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerDefaultReadOnlyTouchState=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.canDragObjectOnMouseDown=function(p){return!1},g.prototype.canExpandContainerOnMouseDown=function(p){return!1},g.prototype.canClearSelectionOnMouseDown=function(){return!0},g.prototype.canSelectOnMouseUp=function(p){return!this.inSelection(p)},g.prototype.canClearSelectionOnMouseUp=function(){return!1},g}(w(152).MouseHandlerDefaultReadOnlyState);D.MouseHandlerDefaultReadOnlyTouchState=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.MouseHandlerDefaultTouchState=void 0;var C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return I(g,y),g.prototype.updateConnectionsOnMouseMove=function(p){},g.prototype.canDragObjectOnMouseDown=function(p){return this.inSelection(p)},g.prototype.canExpandContainerOnMouseDown=function(p){return!0},g.prototype.canClearSelectionOnMouseDown=function(){return!0},g.prototype.canSelectOnMouseUp=function(p){return!this.inSelection(p)},g.prototype.canClearSelectionOnMouseUp=function(){return!1},g}(w(147).MouseHandlerDefaultState);D.MouseHandlerDefaultTouchState=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TextInputHandler=void 0;var E=w(153),I=w(11),C=w(25),y=w(14),g=w(6),p=w(69),d=function(){function c(h){this.control=h}return c.prototype.startTextInput=function(h,m){if(!h.isLocked&&h.enableText&&h.allowEditText&&!this.control.settings.readOnly&&this.canFinishTextEditing()){this.control.beginUpdate(),this.textInputItem=h;var v=!0;if(this.textInputItem instanceof y.Shape){var b=this.textInputItem.textEditRectangle;(v=this.control.permissionsProvider.canChangeShapeText(this.textInputItem))&&this.control.eventManager.raiseTextInputStart(this.textInputItem,this.textInputItem.text,b.createPosition(),b.createSize())}else this.textInputItem instanceof g.Connector&&(this.textInputPosition=m,(v=this.control.permissionsProvider.canChangeConnectorText(this.textInputItem,this.textInputPosition))&&this.control.eventManager.raiseTextInputStart(this.textInputItem,this.textInputItem.getText(this.textInputPosition),this.textInputItem.getTextPoint(this.textInputPosition)));v||(delete this.textInputItem,this.control.endUpdate())}},c.prototype.endTextInput=function(h){var m=this.textInputItem;delete this.textInputItem,this.control.eventManager.raiseTextInputEnd(m,h),this.control.endUpdate(),this.control.barManager.updateItemsState()},c.prototype.raiseTextInputPermissionsCheck=function(h){this.control.eventManager.raiseTextInputPermissionsCheck(this.textInputItem,h)},c.prototype.applyTextInput=function(h,m){if(this.canFinishTextEditing(h)){var v=this.textInputItem,b=this.textInputPosition;this.endTextInput(m),v instanceof y.Shape?v.text!==h&&this.control.history.addAndRedo(new E.ChangeShapeTextHistoryItem(v,h)):v instanceof g.Connector&&v.getText(b)!==h&&this.control.history.addAndRedo(new p.ChangeConnectorTextHistoryItem(v,b,h))}},c.prototype.canFinishTextEditing=function(h){var m=!0;if(this.isTextInputActive()){var v=h||this.getTextInputElementValue();this.textInputItem instanceof y.Shape?m=this.control.permissionsProvider.canApplyShapeTextChange(this.textInputItem,v):this.textInputItem instanceof g.Connector&&(m=this.control.permissionsProvider.canApplyConnectorTextChange(this.textInputItem,this.textInputPosition,v)),this.raiseTextInputPermissionsCheck(m)}return m},c.prototype.getTextInputElementValue=function(){return this.control.render?this.control.render.input.getTextInputElementValue():""},c.prototype.cancelTextInput=function(){this.raiseTextInputPermissionsCheck(!0),this.endTextInput(!0)},c.prototype.isTextInputActive=function(){return void 0!==this.textInputItem},c.prototype.processDblClick=function(h){if(h.source.type===I.MouseEventElementType.Shape){var m=this.control.model.findShape(h.source.key);this.startTextInput(m)}else if(h.source.type===I.MouseEventElementType.Connector){var v=(b=this.control.model.findConnector(h.source.key)).getTextPositionByPoint(h.modelPoint);this.startTextInput(b,v)}else if(h.source.type===I.MouseEventElementType.ConnectorText){var b=this.control.model.findConnector(h.source.key);v=parseFloat(h.source.value),this.startTextInput(b,v)}},c.prototype.onDblClick=function(h){var m=this;setTimeout(function(){m.processDblClick(h)},10)},c.prototype.onKeyDown=function(h){this.isTextInputActive()&&(13===h.keyCode&&this.hasCtrlModifier(h.modifiers)&&(h.preventDefault=!0,this.applyTextInput(h.inputText,!0)),27===h.keyCode&&this.cancelTextInput())},c.prototype.onBlur=function(h){this.isTextInputActive()&&this.applyTextInput(h.inputText)},c.prototype.onFocus=function(h){},c.prototype.hasCtrlModifier=function(h){return(h&C.ModifierKey.Ctrl)>0},c}();D.TextInputHandler=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ContextMenuTouchHandler=void 0;var C=w(11),y=w(154),g=w(4),p=function(d){function c(h){var m=d.call(this)||this;return m.selection=h,m.contextToolboxVisible=!1,m.selection.onChanged.add(m),m}return I(c,d),c.prototype.onMouseDown=function(h){void 0===h.source.key&&this.hideContextMenu()},c.prototype.onMouseUp=function(h){},c.prototype.onFocus=function(h){var m=this;setTimeout(function(){m.showContextMenuAtSelection()},1)},c.prototype.onBlur=function(h){var m=this;setTimeout(function(){m.hideContextMenu()},1)},c.prototype.onTextInputFocus=function(h){var m=this;setTimeout(function(){m.hideContextMenu()},1)},c.prototype.onTextInputBlur=function(h){var m=this;setTimeout(function(){m.showContextMenuAtSelection()},1)},c.prototype.onLongTouch=function(h){h.source.type===C.MouseEventElementType.Document&&this.showContextMenuAtEmptySelection(h.modelPoint)},c.prototype.onKeyDown=function(h){},c.prototype.onShortcut=function(h){},c.prototype.getSelectedItems=function(){return this.selection.getSelectedItems(!0)},c.prototype.showContextMenuAtSelection=function(){if(!this.contextToolboxVisible){var h=this.getSelectedItems();0!==h.length&&this.showContextMenu(void 0,g.ModelUtils.createRectangle(h).createPosition())}},c.prototype.showContextMenuAtEmptySelection=function(h){this.contextToolboxVisible||0===this.getSelectedItems().length&&this.showContextMenu(void 0,h)},c.prototype.notifyDragStart=function(h){this.hideContextMenu()},c.prototype.notifyDragEnd=function(h){this.showContextMenuAtSelection()},c.prototype.notifySelectionChanged=function(h){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChanged()},c.prototype.raiseSelectionChanged=function(){0!==this.getSelectedItems().length?this.showContextMenuAtSelection():this.hideContextMenu()},c.prototype.onUpdateUnlocked=function(h){1&h&&this.raiseSelectionChanged()},c.prototype.notifyShowContextToolbox=function(h,m,v,b,x){this.contextToolboxVisible=!0,this.hideContextMenu()},c.prototype.notifyHideContextToolbox=function(){this.contextToolboxVisible=!1,this.showContextMenuAtSelection()},c}(y.ContextMenuHandler);D.ContextMenuTouchHandler=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectionTargetVisualizer=D.ConnectionTargetInfo=void 0;var C=w(156),y=function(p,d){this.rect=p,this.strokeWidth=d,this.allowed=!0};D.ConnectionTargetInfo=y;var g=function(p){function d(c){return p.call(this,c)||this}return I(d,p),d.prototype.raiseShow=function(){var c=this,h=new y(this.targetRect,this.targetStrokeWidth);this.dispatcher.raise1(function(m){return m.notifyConnectionTargetShow(c.key,h)})},d.prototype.raiseHide=function(){this.dispatcher.raise1(function(c){return c.notifyConnectionTargetHide()})},d}(C.TargetVisualizerBase);D.ConnectionTargetVisualizer=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ContainerTargetVisualizer=D.ContainerTargetInfo=void 0;var C=w(156),y=function(p,d){this.rect=p,this.strokeWidth=d};D.ContainerTargetInfo=y;var g=function(p){function d(c){return p.call(this,c)||this}return I(d,p),d.prototype.raiseShow=function(){var c=this,h=new y(this.targetRect,this.targetStrokeWidth);this.dispatcher.raise1(function(m){return m.notifyContainerTargetShow(c.key,h)})},d.prototype.raiseHide=function(){this.dispatcher.raise1(function(c){return c.notifyContainerTargetHide()})},d}(C.TargetVisualizerBase);D.ContainerTargetVisualizer=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectionPointsVisualizer=D.ConnectionPointInfo=void 0,D.ConnectionPointInfo=function(C,y){this.point=C,this.side=y,this.allowed=!0};var I=function(){function C(y){this.dispatcher=y}return C.prototype.getKey=function(){return this.key},C.prototype.setPoints=function(y,g,p,d){this.key===y&&this.pointIndex===p||(this.key=y,this.points=g,this.pointIndex=p,this.outsideRectangle=d,this.raiseShow())},C.prototype.setPointIndex=function(y){0<=y&&y<this.points.length&&this.pointIndex!==y&&(this.pointIndex=y,this.raiseShow())},C.prototype.update=function(){this.raiseShow()},C.prototype.reset=function(){"-1"!==this.key&&(this.key="-1",this.points=[],this.pointIndex=-1,this.outsideRectangle=void 0,this.raiseHide())},C.prototype.raiseShow=function(){var y=this;this.dispatcher.raise1(function(g){return g.notifyConnectionPointsShow(y.key,y.points,y.pointIndex,y.outsideRectangle)})},C.prototype.raiseHide=function(){this.dispatcher.raise1(function(y){return y.notifyConnectionPointsHide()})},C}();D.ConnectionPointsVisualizer=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResizeInfoVisualizer=void 0;var E=function(){function I(C){this.dispatcher=C}return I.prototype.set=function(C,y){this.point=C,this.text=y,this.raiseShow()},I.prototype.reset=function(){void 0!==this.point&&(this.point=void 0,this.text=void 0,this.raiseHide())},I.prototype.raiseShow=function(){var C=this;this.dispatcher.raise1(function(y){return y.notifyResizeInfoShow(C.point,C.text)})},I.prototype.raiseHide=function(){this.dispatcher.raise1(function(C){return C.notifyResizeInfoHide()})},I}();D.ResizeInfoVisualizer=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.SelectionRectVisualizer=void 0;var E=function(){function I(C){this.dispatcher=C}return I.prototype.setRectangle=function(C){this.rect=C,this.raiseShow()},I.prototype.reset=function(){this.rect=void 0,this.raiseHide()},I.prototype.raiseShow=function(){var C=this;this.dispatcher.raise1(function(y){return y.notifySelectionRectShow(C.rect)})},I.prototype.raiseHide=function(){this.dispatcher.raise1(function(C){return C.notifySelectionRectHide()})},I}();D.SelectionRectVisualizer=E},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.VisualizerTouchManager=void 0;var C=w(155),y=w(11),g=function(p){function d(c,h,m,v,b){void 0===b&&(b=v.readOnly);var x=p.call(this,c,h,m,v,b)||this;return c.onChanged.add(x),x}return I(d,p),d.prototype.onBlur=function(c){var h=this;setTimeout(function(){h.hideConnections()},1)},d.prototype.onFocus=function(c){var h=this;setTimeout(function(){h.showConnections()},1)},d.prototype.hideConnections=function(){this.readOnly||this.resetConnectionPoints()},d.prototype.showConnections=function(){if(!this.readOnly&&this.needShowConnections()){var c=this.selection.getSelectedShapes();1===c.length&&this.setConnectionPoints(c[0],y.MouseEventElementType.ShapeConnectionPoint,-1,!c[0].allowResizeHorizontally&&!c[0].allowResizeVertically||c[0].isLocked)}},d.prototype.needShowConnections=function(){var c=this.selection.getSelectedItems(),h=this.selection.getSelectedShapes();return 1===c.length&&1===h.length},d.prototype.notifySelectionChanged=function(c){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChanged()},d.prototype.raiseSelectionChanged=function(){this.needShowConnections()?this.showConnections():this.hideConnections()},d.prototype.onUpdateUnlocked=function(c){1&c&&this.raiseSelectionChanged()},d.prototype.notifyDragStart=function(c){this.hideConnections()},d.prototype.notifyDragEnd=function(c){this.showConnections()},d}(C.VisualizerManager);D.VisualizerTouchManager=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ContextToolboxHandler=void 0;var E=w(11),I=w(3),C=w(25),y=w(18),g=function(){function p(){this.contextToolboxVisible=!1,this.onVisibilityChanged=new I.EventDispatcher}return p.prototype.onMouseDown=function(d){d.source.type!==E.MouseEventElementType.Undefined&&this.hideContextToolbox()},p.prototype.onMouseUp=function(d){d.source.type===E.MouseEventElementType.Undefined&&y.Browser.TouchUI||this.hideContextToolbox()},p.prototype.onFocus=function(d){},p.prototype.onBlur=function(d){},p.prototype.onKeyDown=function(d){d.keyCode===C.KeyCode.Esc&&this.hideContextToolbox()},p.prototype.onShortcut=function(d){this.hideContextToolbox()},p.prototype.showContextToolbox=function(d,c,h,m,v,b){this.onVisibilityChanged.raise1(function(x){return x.notifyShowContextToolbox(d,c,h,m,v)}),this.contextToolboxVisible=!0,this.contextToolboxCancelCallback=b},p.prototype.hideContextToolbox=function(d){this.contextToolboxVisible&&(this.onVisibilityChanged.raise1(function(c){return c.notifyHideContextToolbox()}),this.contextToolboxCancelCallback&&(d||this.contextToolboxCancelCallback(),this.contextToolboxCancelCallback=void 0),this.contextToolboxVisible=!1)},p}();D.ContextToolboxHandler=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Selection=void 0;var E=w(3),I=w(333),C=w(14),y=w(6),g=w(44),p=function(){function d(c){this.onChanged=new E.EventDispatcher,this.inputPosition=new I.InputPosition(this),this.onChanged.add(this.inputPosition),this.initialize(c)}return d.prototype.initialize=function(c){this.model=c,this.keys=[],this.inputPosition.initialize()},d.prototype.add=function(c){this.keys.indexOf(c)<0&&(this.keys.push(c),this.raiseSelectionChanged())},d.prototype.remove=function(c){this.keys.indexOf(c)>=0&&(this.keys.splice(this.keys.indexOf(c),1),this.raiseSelectionChanged())},d.prototype.clear=function(){this.keys.length>0&&(this.keys=[],this.raiseSelectionChanged())},d.prototype.set=function(c,h){!h&&g.Data.ArrayEqual(c,this.keys)||(this.keys=c,this.raiseSelectionChanged())},d.prototype.getKeys=function(){return this.keys},d.prototype.getKey=function(c){return this.keys[c]},d.prototype.getSelectedItemsInsideContainers=function(c){var h=this,m=c.slice();return c.forEach(function(v){v instanceof C.Shape&&h.getSelectedItemsInsideContainers(h.model.getChildren(v)).forEach(function(b){-1!==m.indexOf(b)||h.hasKey(b.key)||m.push(b)})}),m},d.prototype.getSelectedItemsCore=function(c){var h=this;return this.keys.map(function(m){return h.model.findItem(m)}).filter(function(m){return m&&(c||!m.isLocked)})},d.prototype.getSelectedItems=function(c,h){return h?this.getSelectedItemsInsideContainers(this.getSelectedItemsCore(c)):this.getSelectedItemsCore(c)},d.prototype.getSelectedShapes=function(c,h){var m=this;if(h){var v=this.getSelectedItemsCore(c);return this.getSelectedItemsInsideContainers(v).map(function(b){return b instanceof C.Shape?b:void 0}).filter(function(b){return b})}return this.keys.map(function(b){return m.model.findShape(b)}).filter(function(b){return b&&(c||!b.isLocked)})},d.prototype.getSelectedConnectors=function(c,h){var m=this;if(h){var v=this.keys.map(function(b){return m.model.findItem(b)});return this.getSelectedItemsInsideContainers(v).map(function(b){return b instanceof y.Connector?b:void 0}).filter(function(b){return b&&(c||!b.isLocked)})}return this.keys.map(function(b){return m.model.findConnector(b)}).filter(function(b){return b&&(c||!b.isLocked)})},d.prototype.hasKey=function(c){return this.keys.indexOf(c)>=0},d.prototype.isEmpty=function(c){return!this.getSelectedItems(c).length},d.prototype.selectRect=function(c){var h=[];this.model.iterateItems(function(m){m.intersectedByRect(c)&&h.push(m.key)}),this.set(h)},d.prototype.raiseSelectionChanged=function(){this.onChanged.raise("notifySelectionChanged",this)},d}();D.Selection=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.InputPosition=void 0;var E=w(334),I=w(44),C=function(){function y(g){this.selection=g,this.initialProperties=new E.InputPositionProperties(this.selection),this.defaultProperties=new E.InputPositionProperties(this.selection,this.initialProperties,!0),this.currentProperties=new E.InputPositionProperties(this.selection,this.defaultProperties)}return y.prototype.initialize=function(){this.reset(),this.defaultProperties.reset()},y.prototype.reset=function(){this.currentProperties.reset()},y.prototype.getDefaultConnectorProperties=function(){return this.defaultProperties.getConnectorProperties()},y.prototype.getDefaultConnectorPropertyValue=function(g){return this.defaultProperties.getConnectorPropertyValue(g)},y.prototype.getCurrentConnectorPropertyValue=function(g){return this.currentProperties.getConnectorPropertyValue(g)},y.prototype.setConnectorPropertyValue=function(g,p){this.currentProperties.setConnectorPropertyValue(g,p),this.selection.isEmpty(!0)&&this.defaultProperties.setConnectorPropertyValue(g,p)},y.prototype.setInitialConnectorProperties=function(g){for(var p in this.defaultProperties.reset(),this.currentProperties.reset(),g)Object.prototype.hasOwnProperty.call(g,p)&&this.initialProperties.setConnectorPropertyValue(p,g[p])},y.prototype.getDefaultStyle=function(){return this.defaultProperties.getStyle()},y.prototype.getDefaultStylePropertyValue=function(g){return this.defaultProperties.getStylePropertyValue(g)},y.prototype.getDefaultTextStyle=function(){return this.defaultProperties.getTextStyle()},y.prototype.getDefaultTextStylePropertyValue=function(g){return this.defaultProperties.getTextStylePropertyValue(g)},y.prototype.getCurrentStylePropertyValue=function(g){return this.currentProperties.getStylePropertyValue(g)},y.prototype.getCurrentTextStylePropertyValue=function(g){return this.currentProperties.getTextStylePropertyValue(g)},y.prototype.setStylePropertyValue=function(g,p){this.currentProperties.setStylePropertyValue(g,p),this.selection.isEmpty(!0)&&this.defaultProperties.setStylePropertyValue(g,p)},y.prototype.setTextStylePropertyValue=function(g,p){this.currentProperties.setTextStylePropertyValue(g,p),this.selection.isEmpty(!0)&&this.defaultProperties.setTextStylePropertyValue(g,p)},y.prototype.setInitialStyleProperties=function(g){this.defaultProperties.reset(),this.currentProperties.reset();var p="string"==typeof g?I.Data.cssTextToObject(g):g;for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&this.initialProperties.setStylePropertyValue(d,p[d])},y.prototype.setInitialTextStyleProperties=function(g){this.defaultProperties.reset(),this.currentProperties.reset();var p="string"==typeof g?I.Data.cssTextToObject(g):g;for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&this.initialProperties.setTextStylePropertyValue(d,p[d])},y.prototype.notifySelectionChanged=function(g){this.reset()},y}();D.InputPosition=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.InputPositionProperties=void 0;var E=w(32),I=w(26),C=function(){function y(g,p,d){this.selection=g,this.baseProperties=p,this.disableMergingStyles=d,this.selection=g}return y.prototype.reset=function(){this.connectorProperties=null,this.style=null,this.textStyle=null},y.prototype.getConnectorProperties=function(){return this.connectorProperties||(this.connectorProperties=this.baseProperties?this.baseProperties.getConnectorProperties().clone():new E.ConnectorProperties,this.updateConnectorProperties(this.connectorProperties)),this.connectorProperties},y.prototype.getConnectorPropertyValue=function(g){return this.getConnectorProperties()[g]},y.prototype.setConnectorPropertyValue=function(g,p){this.getConnectorProperties()[g]=p},y.prototype.getStyle=function(){return this.style||(this.style=this.baseProperties?this.baseProperties.getStyle().clone():new I.Style,this.disableMergingStyles||this.updateStyle(this.style,"style")),this.style},y.prototype.getStylePropertyValue=function(g){return this.getStyle()[g]},y.prototype.setStylePropertyValue=function(g,p){this.getStyle()[g]=p},y.prototype.getTextStyle=function(){return this.textStyle||(this.textStyle=this.baseProperties?this.baseProperties.getTextStyle().clone():new I.TextStyle,this.disableMergingStyles||this.updateStyle(this.textStyle,"styleText")),this.textStyle},y.prototype.getTextStylePropertyValue=function(g){return this.getTextStyle()[g]},y.prototype.setTextStylePropertyValue=function(g,p){this.getTextStyle()[g]=p},y.prototype.updateConnectorProperties=function(g){var p=this,d=this.selection.getSelectedConnectors(!0);g.forEach(function(c){p.updatePropertyValue(g,d,function(h){return h.properties},c)})},y.prototype.updateStyle=function(g,p){var d=this,c=this.selection.getSelectedItems(!0);g.forEach(function(h){d.updatePropertyValue(g,c,function(m){return m[p]},h)})},y.prototype.updatePropertyValue=function(g,p,d,c){var h,m=!1;p.forEach(function(v){var b=d(v)[c];if(void 0===h&&void 0!==b)h=b,m=!0;else if(m&&h!==b)return void(h=void 0)}),m&&(g[c]=h)},y}();D.InputPositionProperties=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.History=void 0;var E=w(8),I=w(3),C=function(){function y(g,p){this.modelManipulator=g,this.diagram=p,this.historyItems=[],this.currentIndex=-1,this.incrementalId=-1,this.transactionLevel=-1,this.unmodifiedIndex=-1,this.currTransactionId=0,this.onChanged=new I.EventDispatcher}return y.prototype.isModified=function(){if(this.unmodifiedIndex===this.currentIndex)return!1;for(var g=Math.min(this.unmodifiedIndex,this.currentIndex),p=Math.max(this.unmodifiedIndex,this.currentIndex),d=g+1;d<=p;d++)if(this.historyItems[d].changeModified())return!0;return!1},y.prototype.undo=function(){this.canUndo()&&(this.historyItems[this.currentIndex].undo(this.modelManipulator),this.currentIndex--,this.raiseChanged())},y.prototype.redo=function(){this.canRedo()&&(this.startDataSyncItem&&(this.startDataSyncItem.undo(this.modelManipulator),this.startDataSyncItem=void 0),this.currentIndex++,this.historyItems[this.currentIndex].redo(this.modelManipulator),this.raiseChanged())},y.prototype.canUndo=function(){return this.currentIndex>=0},y.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},y.prototype.beginTransaction=function(){return this.transactionLevel++,0===this.transactionLevel&&(this.transaction=new E.CompositionHistoryItem),this.currTransactionId++},y.prototype.endTransaction=function(g){if(!(--this.transactionLevel>=0)){var p=this.transaction.historyItems.length;if(p>0){var d=p>1?this.transaction:this.transaction.historyItems.pop();g?this.addDataSyncItem(d):this.addInternal(d)}p>0&&!g&&this.raiseChanged(),delete this.transaction}},y.prototype.addAndRedo=function(g){this.add(g),g.redo(this.modelManipulator),this.raiseChanged()},y.prototype.add=function(g){this.transactionLevel>=0?this.transaction.add(g):this.addInternal(g)},y.prototype.addInternal=function(g){this.currentIndex<this.historyItems.length-1&&(this.historyItems.splice(this.currentIndex+1),this.unmodifiedIndex=Math.min(this.unmodifiedIndex,this.currentIndex)),this.historyItems.push(g),this.currentIndex++,this.deleteOldItems()},y.prototype.addDataSyncItem=function(g){var p=this.historyItems[this.currentIndex];if(p){var d=void 0;p instanceof E.CompositionHistoryItem?d=p:(this.historyItems.splice(this.currentIndex,1),d=new E.CompositionHistoryItem,this.historyItems.push(d),d.historyItems.push(p)),d.dataSyncItems.push(g)}else this.historyItems.length&&(this.startDataSyncItem=g)},y.prototype.deleteOldItems=function(){var g=this.historyItems.length-y.MAX_HISTORY_ITEM_COUNT;g>0&&this.currentIndex>g&&(this.historyItems.splice(0,g),this.currentIndex-=g)},y.prototype.getNextId=function(){return this.incrementalId++,this.incrementalId},y.prototype.clear=function(){this.currentIndex=-1,this.unmodifiedIndex=-1,this.incrementalId=-1,this.historyItems=[],delete this.transaction,this.transactionLevel=-1},y.prototype.resetModified=function(){this.unmodifiedIndex=this.currentIndex},y.prototype.getCurrentItemId=function(){if(-1===this.currentIndex)return-1;var g=this.historyItems[this.currentIndex];return-1===g.uniqueId&&(g.uniqueId=this.getNextId()),g.uniqueId},y.prototype.undoTransaction=function(){this.diagram.beginUpdateCanvas();for(var g=this.transaction.historyItems;g.length;)g.pop().undo(this.modelManipulator);this.diagram.endUpdateCanvas()},y.prototype.undoTransactionTo=function(g){this.diagram.beginUpdateCanvas();for(var p=this.transaction.historyItems;p.length;){var d=p.pop();if(d.undo(this.modelManipulator),d===g)return}this.diagram.endUpdateCanvas()},y.prototype.raiseChanged=function(){-1===this.transactionLevel&&this.onChanged.raise("notifyHistoryChanged")},y.MAX_HISTORY_ITEM_COUNT=100,y}();D.History=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.BarManager=void 0;var C=function(y){function g(p){var d=y.call(this)||this;return d.bars=[],d.control=p,d}return I(g,y),g.prototype.clean=function(){var p=this;this.bars.forEach(function(d){return d.onChanged.remove(p)}),this.bars=[]},g.prototype.registerBar=function(p){this.bars.push(p),p.onChanged.add(this),this.updateBarItemsState(p)},g.prototype.updateItemsState=function(p){if(!this.isUpdateLocked())for(var d=0,c=void 0;c=this.bars[d];d++)this.updateBarItemsState(c,p)},g.prototype.updateBarItemsState=function(p,d){if(!this.isUpdateLocked()){if(this.control.permissionsProvider.beginUpdateUI(),p.isVisible()){var c=void 0;if(d){var h=p.getCommandKeys().reduce(function(b,x){return b[x]=!0,b},{});c=d.filter(function(b){return h[b]})}else c=p.getCommandKeys();for(var m=c.length,v=0;v<m;v++)this.updateBarItem(p,c[v])}this.control.permissionsProvider.endUpdateUI()}},g.prototype.updateBarItem=function(p,d){var c=this.control.commandManager.getCommand(d);if(c){var h=c.getState();if(p.setItemVisible(d,h.visible),h.visible&&(p.setItemEnabled(d,h.enabled),!h.denyUpdateValue)){var m=this.getItemValue(h.value);h.items&&p.setItemSubItems(d,h.items),p.setItemValue(d,m,this.getDefaultItemValue(h.defaultValue))}}},g.prototype.setEnabled=function(p){for(var d=0,c=void 0;c=this.bars[d];d++)c.setEnabled(p)},g.prototype.notifyBarCommandExecuted=function(p,d){this.control.commandManager.getCommand(p).execute(d)||this.updateItemsState([p])},g.prototype.notifyBarUpdateRequested=function(){this.updateItemsState()},g.prototype.notifySelectionChanged=function(p){this.updateItemsState()},g.prototype.onUpdateUnlocked=function(p){},g.prototype.getItemValue=function(p){return p},g.prototype.getDefaultItemValue=function(p){return p},g}(w(81).BatchUpdatableObject);D.BarManager=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RenderManager=D.DBL_CLICK_TIMEOUT=D.LONG_TOUCH_TIMEOUT=void 0;var E=w(11),I=w(65),C=w(27),y=w(0),g=w(25),p=w(18),d=w(17),c=w(78),h=w(338),m=w(28),v=w(339),b=w(340),x=w(342),O=w(158),k=w(344),M=w(79),A=w(15),F=w(100),P=w(3);D.LONG_TOUCH_TIMEOUT=500,D.DBL_CLICK_TIMEOUT=500;var N=function(){function B(V,H,W,q,G,J){this.moveLocked=!1,this.lockMouseMoveTimer=-1,this.lastClickElement=void 0,this.longTouchTimer=void 0,this.dblTouchTimer=void 0,this.pointers={};var ne=A.RenderHelper.createMainElement(V),ae=A.RenderHelper.createSvgElement(ne);this.scroll=G||new h.NativeScrollView(V),this.measurer=W,this.dom=new F.DOMManipulator(this.measurer),this.view=new x.CanvasViewManager(this.scroll,ae,q.modelSize,q.zoomLevel,q.autoZoom,q.simpleView,q.rectangle,this.dom),this.input=new v.InputManager(ne,this.view,H,this.measurer,q.zoomLevel,J),this.items=new c.CanvasItemsManager(this.view.canvasElement,q.zoomLevel,this.dom),this.page=new b.CanvasPageManager(this.view.pageElement,q,this.dom),this.selection=new O.CanvasSelectionManager(this.view.canvasElement,q.zoomLevel,q.readOnly,this.dom),this.contextMenuEnabled=q.contextMenuEnabled,this.view.onViewChanged.add(this.page),this.view.onViewChanged.add(this.items),this.view.onViewChanged.add(this.selection),this.view.onViewChanged.add(this.input),this.autoScroll=new k.AutoScrollController(this.scroll,ae,this.view,this.dom),this.attachEvents(ae),this.mainElement=ne,this.svgElement=ae,this.events=H,this.notifyReadOnlyChanged(q.readOnly)}return B.prototype.clean=function(V){this.killLockMouseMoveTimer(),this.clearLastMouseDownEvent(),this.detachEvents(this.svgElement),this.scroll.detachEvents(),this.input.detachEvents(),this.dom.cancelAnimation(),V&&V(this.mainElement)},B.prototype.replaceParent=function(V,H){this.mainElement&&this.mainElement.parentNode!==V&&V.appendChild(this.mainElement),H&&H!==this.scroll&&(this.scroll&&this.scroll.detachEvents(),this.scroll=H),this.measurer instanceof M.TextMeasurer&&this.measurer.replaceParent(V)},B.prototype.update=function(V){this.view.adjust({horizontal:!V,vertical:!V}),this.page.redraw()},B.prototype.onNewModel=function(V){this.measurer.onNewModel(V,this.dom)},B.prototype.clear=function(){this.items.clear(),this.selection.clear()},B.prototype.attachPointerEvents=function(V){C.DomUtils.addClassName(V,"dxdi-touch-action"),A.RenderHelper.addEventListener(V,"pointerdown",this.onPointerDownHandler),A.RenderHelper.addEventListener(p.Browser.TouchUI?V:document,"pointerup",this.onPointerUpHandler),A.RenderHelper.addEventListener(p.Browser.TouchUI?V:document,"pointermove",this.onPointerMoveHandler),A.RenderHelper.addEventListener(V,"pointercancel",this.onPointerCancelHandler),A.RenderHelper.addEventListener(V,"pointerleave",this.onPointerLeaveHandler)},B.prototype.detachPointerEvents=function(V){A.RenderHelper.removeEventListener(V,"pointerdown",this.onPointerDownHandler),A.RenderHelper.removeEventListener(p.Browser.TouchUI?V:document,"pointerup",this.onPointerUpHandler),A.RenderHelper.removeEventListener(p.Browser.TouchUI?V:document,"pointermove",this.onPointerMoveHandler),A.RenderHelper.removeEventListener(V,"pointercancel",this.onPointerCancelHandler),A.RenderHelper.removeEventListener(V,"pointerleave",this.onPointerLeaveHandler),C.DomUtils.removeClassName(V,"dxdi-touch-action")},B.prototype.attachMouseTouchEvents=function(V){A.RenderHelper.addEventListener(V,this.mouseDownEventName,this.onMouseDownHandler),A.RenderHelper.addEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),A.RenderHelper.addEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},B.prototype.detachMouseTouchEvents=function(V){A.RenderHelper.removeEventListener(V,this.mouseDownEventName,this.onMouseDownHandler),A.RenderHelper.removeEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),A.RenderHelper.removeEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},B.prototype.attachEvents=function(V){this.mouseDownEventName=p.Browser.TouchUI?"touchstart":"mousedown",this.mouseMoveEventName=p.Browser.TouchUI?"touchmove":"mousemove",this.mouseUpEventName=p.Browser.TouchUI?"touchend":"mouseup",this.onPointerDownHandler=this.onPointerDown.bind(this),this.onPointerUpHandler=this.onPointerUp.bind(this),this.onPointerMoveHandler=this.onPointerMove.bind(this),this.onPointerCancelHandler=this.onPointerCancel.bind(this),this.onPointerLeaveHandler=this.onPointerLeave.bind(this),this.onMouseDownHandler=this.onMouseDown.bind(this),this.onMouseEnterHandler=this.onMouseEnter.bind(this),this.onMouseLeaveHandler=this.onMouseLeave.bind(this),this.onMouseWheelHandler=this.onMouseWheel.bind(this),this.onMouseDblClickHandler=this.onMouseDblClick.bind(this),this.onContextMenuHandler=this.onContextMenu.bind(this),this.onMouseMoveHandler=this.onMouseMove.bind(this),this.onMouseUpHandler=this.onMouseUp.bind(this),this.onWindowResizelHandler=this.onWindowResize.bind(this),this.onOrientationChangeHandler=this.onOrientationChange.bind(this),this.onMouseClickHandler=this.onMouseClick.bind(this),P.EventUtils.isPointerEvents()?this.attachPointerEvents(V):(this.attachMouseTouchEvents(V),A.RenderHelper.addEventListener(V,"mouseenter",this.onMouseEnterHandler),A.RenderHelper.addEventListener(V,"mouseleave",this.onMouseLeaveHandler)),A.RenderHelper.addEventListener(V,"wheel",this.onMouseWheelHandler),A.RenderHelper.addEventListener(V,"dblclick",this.onMouseDblClickHandler),A.RenderHelper.addEventListener(V,"click",this.onMouseClickHandler),A.RenderHelper.addEventListener(V,"contextmenu",this.onContextMenuHandler),A.RenderHelper.addEventListener(window,"resize",this.onWindowResizelHandler),A.RenderHelper.addEventListener(window,"orientationchange",this.onOrientationChangeHandler),this.input.mouseWheelHandler=this.onMouseWheelHandler},B.prototype.detachEvents=function(V){P.EventUtils.isPointerEvents()?this.detachPointerEvents(V):(this.detachMouseTouchEvents(V),A.RenderHelper.removeEventListener(V,"mouseenter",this.onMouseEnterHandler),A.RenderHelper.removeEventListener(V,"mouseleave",this.onMouseLeaveHandler)),A.RenderHelper.removeEventListener(V,"wheel",this.onMouseWheelHandler),A.RenderHelper.removeEventListener(V,"dblclick",this.onMouseDblClickHandler),A.RenderHelper.removeEventListener(V,"contextmenu",this.onContextMenuHandler),A.RenderHelper.removeEventListener(V,"click",this.onMouseClickHandler),A.RenderHelper.removeEventListener(window,"resize",this.onWindowResizelHandler),A.RenderHelper.removeEventListener(window,"orientationchange",this.onOrientationChangeHandler)},B.prototype.setPointerPosition=function(V){this.pointers[V.pointerId]={clientX:V.clientX,clientY:V.clientY}},B.prototype.clearPointerPosition=function(V){delete this.pointers[V.pointerId]},B.prototype.onPointerDown=function(V){this.setPointerPosition(V),this.getPointerCount()>2&&(this.pointers={}),this.onMouseDown(V)},B.prototype.onPointerUp=function(V){this.clearPointerPosition(V),this.onMouseUp(V)},B.prototype.onPointerMove=function(V){(p.Browser.TouchUI&&!P.EventUtils.isMousePointer(V)||P.EventUtils.isLeftButtonPressed(V))&&this.setPointerPosition(V),this.onMouseMove(V)},B.prototype.onPointerCancel=function(V){this.clearPointerPosition(V)},B.prototype.onPointerLeave=function(V){P.EventUtils.isMousePointer(V)&&this.onMouseLeave(V),this.clearPointerPosition(V)},B.prototype.onMouseDown=function(V){var H=this;this.lockMouseMove(),this.input.lockFocus(),this.autoScroll.onMouseDown(V),this.lastDownMouseEvent=this.createDiagramMouseEvent(V),d.raiseEvent(V,this.lastDownMouseEvent,function(G){return H.events.onMouseDown(G)}),this.events.canFinishTextEditing()&&this.input.captureFocus(),P.EventUtils.isTouchEvent(V)&&this.processTouchDown(V);var W=I.EvtUtils.getEventSource(V),q=W&&W.tagName;if(p.Browser.TouchUI||"img"===q.toLowerCase()||"image"===q.toLowerCase())return I.EvtUtils.preventEventAndBubble(V),!1},B.prototype.onMouseMove=function(V){var H=this;this.moveLocked||(this.autoScroll.onMouseMove(V,function(){return H.onMouseMoveCore(V)}),this.onMouseMoveCore(V),p.Browser.IE&&this.lockMouseMove(),P.EventUtils.isTouchEvent(V)&&this.processTouchMove(V))},B.prototype.onMouseMoveCore=function(V){var H=this;d.raiseEvent(V,this.createDiagramMouseEvent(V),function(W){return H.events.onMouseMove(W)})},B.prototype.onMouseUp=function(V){var H=this;this.lockMouseMove();var W=this.createDiagramMouseEvent(V);d.raiseEvent(V,W,function(q){return H.events.onMouseUp(q)}),this.autoScroll.onMouseUp(V),W.source.type!==E.MouseEventElementType.Undefined&&this.input.captureFocus(!0),P.EventUtils.isTouchEvent(V)&&this.processTouchUp(V)},B.prototype.onMouseEnter=function(V){var H=this;this.autoScroll.onMouseEnter(V),d.raiseEvent(V,this.createDiagramMouseEvent(V),function(W){return H.events.onMouseEnter(W)})},B.prototype.onMouseLeave=function(V){var H=this;d.raiseEvent(V,this.createDiagramMouseEvent(V),function(W){return H.events.onMouseLeave(W)})},B.prototype.onMouseDblClick=function(V){var H=this;d.raiseEvent(V,this.createDiagramMouseEvent(V),function(W){return H.events.onDblClick(W)})},B.prototype.onMouseClick=function(V){var H=this;P.EventUtils.isTouchEvent(V)?P.EventUtils.isMousePointer(V)||this.input.captureFocus():d.raiseEvent(V,this.createActualMouseClickEvent(V),function(W){return H.events.onClick(W)})},B.prototype.createActualMouseClickEvent=function(V){return this.lastDownMouseEvent?new E.DiagramMouseEvent(this.lastDownMouseEvent.modifiers,this.lastDownMouseEvent.button,this.lastDownMouseEvent.offsetPoint.clone(),this.lastDownMouseEvent.modelPoint.clone(),this.lastDownMouseEvent.source,this.createDiagramMouseEventTouches(V)):this.createDiagramMouseEvent(V)},B.prototype.onContextMenu=function(V){var H=this;return d.raiseEvent(V,this.createDiagramContextMenuEvent(V),function(W){return H.events.onContextMenu(W)}),this.input.captureFocus(),I.EvtUtils.preventEventAndBubble(V)},B.prototype.processTouchDown=function(V){var H=this;this.touchDownPoint=this.getTouchPointFromEvent(V),this.resetLongTouch(),this.longTouchTimer=setTimeout(function(){d.raiseEvent(V,H.createDiagramMouseEvent(V),function(W){return H.events.onLongTouch(W)}),H.resetLongTouch(),H.resetDblClick()},D.LONG_TOUCH_TIMEOUT)},B.prototype.processTouchMove=function(V){var H=this.getTouchPointFromEvent(V);this.touchDownPoint&&H&&(Math.abs(this.touchDownPoint.x-H.x)>B.touchPositionLimit||Math.abs(this.touchDownPoint.y-H.y)>B.touchPositionLimit)&&(this.resetLongTouch(),this.resetDblClick())},B.prototype.getPointers=function(){var V=this;return Object.keys(this.pointers).map(function(H){return V.pointers[H]})},B.prototype.getPointerCount=function(){return Object.keys(this.pointers).length},B.prototype.getTouchPointFromEvent=function(V){var H,W=V.touches;if(W&&W.length>0)H=new y.Point(W[0].clientX,W[0].clientY);else{var q=this.getPointers();q.length&&(H=new y.Point(q[0].clientX,q[0].clientY))}return H},B.prototype.processTouchUp=function(V){var H=this;if(void 0!==this.longTouchTimer){d.raiseEvent(V,this.createDiagramMouseEvent(V),function(q){return H.events.onClick(q)});var W=I.EvtUtils.getEventSource(V);void 0!==this.dblTouchTimer&&this.lastClickElement===W?(d.raiseEvent(V,this.createDiagramMouseEvent(V),function(q){return H.events.onDblClick(q)}),this.resetDblClick()):(this.resetDblClick(),this.dblTouchTimer=setTimeout(function(){return H.dblTouchTimer=void 0},D.DBL_CLICK_TIMEOUT)),this.lastClickElement=W}this.resetLongTouch(),this.touchDownPoint=void 0},B.prototype.resetLongTouch=function(){void 0!==this.longTouchTimer&&clearTimeout(this.longTouchTimer),this.longTouchTimer=void 0},B.prototype.resetDblClick=function(){void 0!==this.dblTouchTimer&&clearTimeout(this.dblTouchTimer),this.dblTouchTimer=void 0},B.prototype.onOrientationChange=function(){var V=this;setTimeout(function(){return V.onWindowResize()},100)},B.prototype.onWindowResize=function(){var V={horizontal:!1,vertical:!1};if(this.view.autoZoom!==m.AutoZoomMode.Disabled)V.horizontal=!0,V.vertical=!0;else{var H=this.view.checkFitToCanvas(),W=this.view.checkFitToCanvas(this.scroll.getSize());V={horizontal:H.horizontal!==W.horizontal||W.horizontal,vertical:H.vertical!==W.vertical||W.vertical}}this.view.adjust(V)},B.prototype.onMouseWheel=function(V){var H=this;d.raiseEvent(V,this.createDiagramWheelEvent(V),function(W){return H.events.onMouseWheel(W)})},B.prototype.notifyModelSizeChanged=function(V,H){this.view.notifyModelSizeChanged(V,H)},B.prototype.notifyModelRectangleChanged=function(V){this.view.notifyModelRectangleChanged(V)},B.prototype.notifyReadOnlyChanged=function(V){C.DomUtils.toggleClassName(this.mainElement,"dxdi-read-only",V)},B.prototype.notifyDragStart=function(V){},B.prototype.notifyDragEnd=function(V){},B.prototype.notifyDragScrollStart=function(){this.autoScroll.onDragScrollStart()},B.prototype.notifyDragScrollEnd=function(){this.autoScroll.onDragScrollEnd()},B.prototype.notifyToolboxDragStart=function(V){this.onMouseEnter(V)},B.prototype.notifyToolboxDragEnd=function(V){V&&P.EventUtils.isPointerEvents()&&this.onMouseUp(V)},B.prototype.notifyToolboxDraggingMouseMove=function(V){this.onMouseMove(V)},B.prototype.createDiagramMouseEvent=function(V){var ge,H=g.KeyUtils.getKeyModifiers(V),W=(ge=V,(p.Browser.MSTouchUI?2!==ge.button:P.EventUtils.isLeftButtonPressed(ge))?E.MouseButton.Left:E.MouseButton.Right),q=this.getOffsetPointByEvent(V),G=this.getModelPoint(q),J=P.EventUtils.isTouchEvent(V),ne=this.getEventSource(V,J),ae=this.createDiagramMouseEventTouches(V);return new E.DiagramMouseEvent(H,W,q,G,ne,ae,J)},B.prototype.createDiagramMouseEventTouches=function(V){var H=[];if(V.touches)for(var W=0;W<V.touches.length;W++){var q=V.touches[W].clientX,G=V.touches[W].clientY,J=this.getOffsetPointByEventPoint(q,G),ne=this.getModelPoint(J);H.push(new E.DiagramMouseEventTouch(J,ne))}else{var ae=this.getPointers();for(W=0;W<ae.length;W++)J=this.getOffsetPointByEventPoint(q=ae[W].clientX,G=ae[W].clientY),ne=this.getModelPoint(J),H.push(new E.DiagramMouseEventTouch(J,ne))}return H},B.prototype.createDiagramContextMenuEvent=function(V){var H=g.KeyUtils.getKeyModifiers(V),W=new y.Point(V.pageX,V.pageY),q=this.getOffsetPointByEvent(V),G=this.getModelPoint(q);return new E.DiagramContextMenuEvent(H,W,G)},B.prototype.createDiagramWheelEvent=function(V){var H=g.KeyUtils.getKeyModifiers(V),W=this.getOffsetPointByEvent(V),q=this.view.getModelPoint(W),G=this.getEventSource(V);return new E.DiagramWheelEvent(H,V.deltaX||V.originalEvent&&V.originalEvent.deltaX,V.deltaY||V.originalEvent&&V.originalEvent.deltaY,W,q,G)},B.prototype.getEventSource=function(V,H){var W=H?I.EvtUtils.getEventSourceByPosition(V):I.EvtUtils.getEventSource(V);if(this.isDiagramControl(W))for(;W&&!this.isDocumentContainer(W);){var q=d.RenderUtils.getElementEventData(W);if(void 0!==q)return q;if(this.input.isTextInputElement(W))return new E.MouseEventSource(E.MouseEventElementType.Document);W=W.parentNode}var G=new E.MouseEventSource(E.MouseEventElementType.Undefined);return W&&this.isDocumentContainer(W)&&(G.type=E.MouseEventElementType.Background),G},B.prototype.isDiagramControl=function(V){for(;V;){if(this.isDocumentContainer(V))return!0;V=V.parentNode}return!1},B.prototype.isDocumentContainer=function(V){return V===this.mainElement},B.prototype.lockMouseMove=function(){var V=this;this.moveLocked=!0,this.lockMouseMoveTimer=setTimeout(function(){V.moveLocked=!1,V.lockMouseMoveTimer=-1},10)},B.prototype.killLockMouseMoveTimer=function(){-1!==this.lockMouseMoveTimer&&(clearTimeout(this.lockMouseMoveTimer),this.lockMouseMoveTimer=-1)},B.prototype.clearLastMouseDownEvent=function(){this.lastDownMouseEvent=void 0},B.prototype.getModelPoint=function(V){return this.view.getModelPoint(V)},B.prototype.getOffsetPointByEvent=function(V){var H=I.EvtUtils.getEventX(V),W=I.EvtUtils.getEventY(V);return this.getOffsetPointByEventPoint(H,W)},B.prototype.getOffsetPointByEventPoint=function(V,H){var W=this.scroll.getScrollContainer(),q=C.DomUtils.getAbsolutePositionX(W),G=C.DomUtils.getAbsolutePositionY(W);return new y.Point(V-q,H-G)},B.prototype.getModelPointByEventPoint=function(V,H){var W=this.getOffsetPointByEventPoint(V,H);return this.view.getModelPoint(W)},B.prototype.getEventPointByModelPoint=function(V){var H=this.view.getAbsolutePoint(V),W=this.scroll.getScrollContainer();return new y.Point(C.DomUtils.getAbsolutePositionX(W)+H.x,C.DomUtils.getAbsolutePositionY(W)+H.y)},B.touchPositionLimit=4,B}();D.RenderManager=N},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.NativeScrollView=void 0;var E=w(3),I=w(2),C=w(0),y=w(27),g=w(15),p=function(){function d(c){this.onScroll=new E.EventDispatcher,this.scrollBarWidth=y.DomUtils.getVerticalScrollBarWidth(),this.mainElement=c,this.attachEvents()}return d.prototype.attachEvents=function(){var c=this;this.onScrollHandler=function(){return c.onScroll.raise1(function(h){return h.notifyScrollChanged(function(){return c.getScroll()})})},g.RenderHelper.addEventListener(this.mainElement,"scroll",this.onScrollHandler)},d.prototype.detachEvents=function(){g.RenderHelper.removeEventListener(this.mainElement,"scroll",this.onScrollHandler)},d.prototype.getScrollContainer=function(){return this.mainElement},d.prototype.setScroll=function(c,h){var m=this;this.mainElement.style.overflow="scroll",this.mainElement.scrollLeft=c,this.mainElement.scrollTop=h,this.mainElement.style.overflow="",this.onScroll.raise1(function(v){return v.notifyScrollChanged(function(){return m.getScroll()})})},d.prototype.offsetScroll=function(c,h){var m=this;c&&(this.mainElement.scrollLeft+=c),h&&(this.mainElement.scrollTop+=h),this.onScroll.raise1(function(v){return v.notifyScrollChanged(function(){return m.getScroll()})})},d.prototype.getScroll=function(){return new C.Point(this.mainElement.scrollLeft,this.mainElement.scrollTop)},d.prototype.getSize=function(){var c=this.mainElement.getBoundingClientRect();return new I.Size(Math.floor(c.width),Math.floor(c.height))},d.prototype.getScrollBarWidth=function(){return this.scrollBarWidth},d}();D.NativeScrollView=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.InputManager=void 0;var E=w(25),I=w(27),C=w(17),y=w(11),g=w(14),p=w(6),d=w(65),c=w(43),h=w(18),m=w(12),v=w(15),b=w(64),x=w(3),O=function(){function k(M,A,F,P,N,B){this.mainElement=M,this.layoutPointResolver=A,this.eventManager=F,this.textMeasurer=P,this.actualZoom=N,this.focusElementsParent=B,this.focused=!1,this.focusLocked=!1,this.createInputElements(this.mainElement,this.focusElementsParent)}return k.prototype.detachEvents=function(){this.detachInputElementEvents(),this.detachTextInputElementEvents()},k.prototype.isFocused=function(){return this.focused},k.prototype.captureFocus=function(M){M&&document.activeElement===this.textInputElement?x.HtmlFocusUtils.focusWithPreventScroll(this.textInputElement||this.inputElement):x.HtmlFocusUtils.focusWithPreventScroll(this.inputElement)},k.prototype.setClipboardData=function(M){this.clipboardInputElement.value=M,x.HtmlFocusUtils.focusWithPreventScroll(this.clipboardInputElement),this.clipboardInputElement.select(),document.execCommand("copy"),this.captureFocus()},k.prototype.getClipboardData=function(M){var A=this;navigator&&navigator.clipboard?navigator.clipboard.readText().then(function(F){M(F),A.captureFocus()}).catch(function(){M(""),A.captureFocus()}):h.Browser.IE&&(this.clipboardInputElement.value="",x.HtmlFocusUtils.focusWithPreventScroll(this.clipboardInputElement),this.clipboardInputElement.select(),document.execCommand("Paste"),M(this.clipboardInputElement.value),this.captureFocus())},k.prototype.isPasteSupportedByBrowser=function(){return h.Browser.IE||h.Browser.WebKitFamily&&navigator&&void 0!==navigator.clipboard},k.prototype.createInputElements=function(M,A){this.createFocusInputElement(A||M),this.createTextInputElement(M),this.createClipboardInputElement(A||M),this.attachInputElementEvents()},k.prototype.setInputElementFocusHandlerMode=function(M){this.textInputElementContainer.setAttribute("class","dxdi-text-input-container"),M&&this.captureFocus()},k.prototype.setInputElementTextInputMode=function(M,A,F,P,N,B){this.textInputElementContainer.setAttribute("class","dxdi-text-input-container "+N),this.textInputElement.value=M,this.setTextInputElementBounds(A,F,B),this.setTextInputElementStyle(P),this.updateTextInputPadding();var V=this.textInputElement||this.inputElement;x.HtmlFocusUtils.focusWithPreventScroll(V),V.select&&V.select()},k.prototype.setTextInputElementBounds=function(M,A,F){this.savedTextInputPosition=M,this.savedTextInputSize=A,this.savedTextInputAngle=F;var P=this.layoutPointResolver.getAbsolutePoint(M,!0);this.textInputElementContainer.style.left=P.x+"px",this.textInputElementContainer.style.top=P.y+"px",this.textInputElementContainer.style.width=A&&A.width+"px"||"0px",this.textInputElementContainer.style.height=A&&A.height+"px"||"0px";var N=[];this.textInputElementContainer.style.transform="",1!==this.actualZoom&&N.push("scale("+this.actualZoom+")"),F&&N.push("rotate("+F+"deg)"),this.textInputElementContainer.style.transform=N.join(" "),this.textInputElement.style.width=A&&A.width+"px"||"",this.textInputElement.style.height=A&&A.height+"px"||"auto"},k.prototype.setTextInputElementStyle=function(M){this.savedTextInputStyle=M,C.RenderUtils.applyStyleToElement(M,this.textInputElement)},k.prototype.createFocusInputElement=function(M){this.inputElement=document.createElement("textarea"),this.inputElement.readOnly=h.Browser.TouchUI,this.inputElement.setAttribute("class","dxdi-focus-input"),M.appendChild(this.inputElement)},k.prototype.attachInputElementEvents=function(){this.onInputBlurHandler=this.onInputBlur.bind(this),this.onInputFocusHandler=this.onInputFocus.bind(this),this.onInputKeyDownHandler=this.onInputKeyDown.bind(this),this.onInputKeyPressHandler=this.onInputKeyPress.bind(this),this.onInputKeyUpHandler=this.onInputKeyUp.bind(this),this.onPasteHandler=this.onPaste.bind(this),v.RenderHelper.addEventListener(this.inputElement,"blur",this.onInputBlurHandler),v.RenderHelper.addEventListener(this.inputElement,"focus",this.onInputFocusHandler),v.RenderHelper.addEventListener(this.inputElement,"keydown",this.onInputKeyDownHandler),v.RenderHelper.addEventListener(this.inputElement,"keypress",this.onInputKeyPressHandler),v.RenderHelper.addEventListener(this.inputElement,"keyup",this.onInputKeyUpHandler),v.RenderHelper.addEventListener(this.inputElement,"paste",this.onPasteHandler)},k.prototype.detachInputElementEvents=function(){v.RenderHelper.removeEventListener(this.inputElement,"blur",this.onInputBlurHandler),v.RenderHelper.removeEventListener(this.inputElement,"focus",this.onInputFocusHandler),v.RenderHelper.removeEventListener(this.inputElement,"keydown",this.onInputKeyDownHandler),v.RenderHelper.removeEventListener(this.inputElement,"keypress",this.onInputKeyPressHandler),v.RenderHelper.removeEventListener(this.inputElement,"keyup",this.onInputKeyUpHandler),v.RenderHelper.removeEventListener(this.inputElement,"paste",this.onPasteHandler)},k.prototype.createTextInputElement=function(M){this.textInputElementContainer=document.createElement("div"),this.textInputElementContainer.setAttribute("class","dxdi-text-input-container"),M.appendChild(this.textInputElementContainer),this.textInputElement=document.createElement("textarea"),this.textInputElement.setAttribute("class","dxdi-text-input"),this.attachTextInputElementEvents(),this.textInputElementContainer.appendChild(this.textInputElement)},k.prototype.attachTextInputElementEvents=function(){this.onTextInputBlurHandler=this.onTextInputBlur.bind(this),this.onTextInputFocusHandler=this.onTextInputFocus.bind(this),this.onTextInputKeyDownHandler=this.onTextInputKeyDown.bind(this),this.onTextInputMouseWheelHandler=this.onTextInputMouseWheel.bind(this),this.onTextInputMouseUpHandler=this.onTextInputMouseUp.bind(this),this.onTextInputKeyUpHandler=this.onTextInputKeyUp.bind(this),this.onTextInputChangeHandler=this.onTextInputChange.bind(this),v.RenderHelper.addEventListener(this.textInputElement,"mousewheel",this.onTextInputMouseWheelHandler),v.RenderHelper.addEventListener(this.textInputElement,"mouseup",this.onTextInputMouseUpHandler),v.RenderHelper.addEventListener(this.textInputElement,"blur",this.onTextInputBlurHandler),v.RenderHelper.addEventListener(this.textInputElement,"focus",this.onTextInputFocusHandler),v.RenderHelper.addEventListener(this.textInputElement,"keydown",this.onTextInputKeyDownHandler),v.RenderHelper.addEventListener(this.textInputElement,"keyup",this.onTextInputKeyUpHandler),v.RenderHelper.addEventListener(this.textInputElement,"change",this.onTextInputChangeHandler)},k.prototype.detachTextInputElementEvents=function(){v.RenderHelper.removeEventListener(this.textInputElement,"mousewheel",this.onTextInputMouseWheelHandler),v.RenderHelper.removeEventListener(this.textInputElement,"mouseup",this.onTextInputMouseUpHandler),v.RenderHelper.removeEventListener(this.textInputElement,"blur",this.onTextInputBlurHandler),v.RenderHelper.removeEventListener(this.textInputElement,"focus",this.onTextInputFocusHandler),v.RenderHelper.removeEventListener(this.textInputElement,"keydown",this.onTextInputKeyDownHandler),v.RenderHelper.removeEventListener(this.textInputElement,"keyup",this.onTextInputKeyUpHandler),v.RenderHelper.removeEventListener(this.textInputElement,"change",this.onTextInputChangeHandler)},k.prototype.createClipboardInputElement=function(M){this.clipboardInputElement=document.createElement("textarea"),this.clipboardInputElement.setAttribute("class","dxdi-clipboard-input"),M.appendChild(this.clipboardInputElement)},k.prototype.blurControl=function(){this.focusLocked||(this.focused=!1,I.DomUtils.removeClassName(this.mainElement,"focused"))},k.prototype.focusControl=function(){this.focused=!0,this.focusLocked=!1,I.DomUtils.addClassName(this.mainElement,"focused")},k.prototype.updateTextInputPadding=function(){var M=this.textInputElement.value;if(this.savedTextInputSize){F=this.textMeasurer.measureWords(M,this.savedTextInputStyle,c.TextOwner.Shape),P=b.getTextHeight(M,this.savedTextInputSize.width,F,!0);var A=Math.max(0,.5*(this.savedTextInputSize.height-P));this.textInputElement.style.paddingTop=Math.ceil(A)+"px",this.textInputElement.style.height=Math.floor(this.savedTextInputSize.height)+"px"}else{var F=this.textMeasurer.measureWords(" ",this.savedTextInputStyle,c.TextOwner.Connector),P=b.getLineHeight(F)*((b.textToParagraphs(M).length||1)+1);this.textInputElement.style.height=Math.ceil(P)+"px"}},k.prototype.onInputBlur=function(M){var A=this;this.blurControl(),C.raiseEvent(M,this.getDiagramFocusEvent(M),function(F){return A.eventManager.onBlur(F)})},k.prototype.onInputFocus=function(M){var A=this;this.focusControl(),C.raiseEvent(M,this.getDiagramFocusEvent(M),function(F){return A.eventManager.onFocus(F)})},k.prototype.onInputKeyDown=function(M){var A=this;C.raiseEvent(M,this.getDiagramKeyboardEvent(M),function(F){return A.eventManager.onKeyDown(F)})},k.prototype.onInputKeyPress=function(M){!M.preventDefault||h.Browser.Safari&&"KeyV"===M.code||M.preventDefault()},k.prototype.onInputKeyUp=function(M){var A=this;C.raiseEvent(M,this.getDiagramKeyboardEvent(M),function(F){return A.eventManager.onKeyUp(F)})},k.prototype.onTextInputBlur=function(M){var A=this;if(this.eventManager.canFinishTextEditing())this.blurControl(),C.raiseEvent(M,this.getDiagramFocusEvent(M),function(P){return A.eventManager.onTextInputBlur(P)});else{var F=d.EvtUtils.getEventSource(M);document.activeElement!==F&&F.focus()}},k.prototype.onTextInputFocus=function(M){var A=this;this.focusControl(),C.raiseEvent(M,this.getDiagramFocusEvent(M),function(F){return A.eventManager.onTextInputFocus(F)})},k.prototype.onTextInputKeyDown=function(M){var A=this;C.raiseEvent(M,this.getDiagramKeyboardEvent(M),function(F){return A.eventManager.onTextInputKeyDown(F)})},k.prototype.onTextInputKeyUp=function(M){this.updateTextInputPadding()},k.prototype.onTextInputChange=function(M){this.updateTextInputPadding()},k.prototype.onPaste=function(M){var A=this;C.raiseEvent(M,this.getDiagramClipboardEvent(M),function(F){return A.eventManager.onPaste(F)})},k.prototype.onTextInputMouseWheel=function(M){this.mouseWheelHandler&&this.mouseWheelHandler(M)},k.prototype.onTextInputMouseUp=function(M){M.stopPropagation&&M.stopPropagation(),d.EvtUtils.cancelBubble(M)},k.prototype.getDiagramKeyboardEvent=function(M){return new y.DiagramKeyboardEvent(E.KeyUtils.getKeyModifiers(M),E.KeyUtils.getEventKeyCode(M),this.textInputElement.value)},k.prototype.getTextInputElementValue=function(){return this.textInputElement.value},k.prototype.getDiagramFocusEvent=function(M){return new y.DiagramFocusEvent(M.target.value)},k.prototype.getDiagramClipboardEvent=function(M){var A,F=M.clipboardData||M.originalEvent&&M.originalEvent.clipboardData;return A=void 0!==F?F.getData("text/plain"):window.clipboardData.getData("Text"),new y.DiagramClipboardEvent(A)},k.prototype.isTextInputElement=function(M){return"string"==typeof M.className&&M.className.indexOf("dxdi-text-input")>-1},k.prototype.lockFocus=function(){var M=this;this.focusLocked=!0,setTimeout(function(){return M.focusLocked=!1},10)},k.prototype.notifyViewAdjusted=function(M){},k.prototype.notifyActualZoomChanged=function(M){this.actualZoom=M,this.savedTextInputPosition&&this.savedTextInputSize&&this.setTextInputElementBounds(this.savedTextInputPosition,this.savedTextInputSize,this.savedTextInputAngle)},k.prototype.notifyTextInputStart=function(M,A,F,P){var N,B="";M instanceof g.Shape?(B="shape-text",N=M.textAngle):M instanceof p.Connector&&(B="connector-text"),P=P&&P.clone().applyConverter(m.UnitConverter.twipsToPixels),this.setInputElementTextInputMode(A,F,P,M.styleText,B,N)},k.prototype.notifyTextInputEnd=function(M,A){this.setInputElementFocusHandlerMode(A)},k.prototype.notifyTextInputPermissionsCheck=function(M,A){},k}();D.InputManager=O},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(k,M){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,F){A.__proto__=F}||function(A,F){for(var P in F)F.hasOwnProperty(P)&&(A[P]=F[P])})(k,M)},function(k,M){function A(){this.constructor=k}E(k,M),k.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)});Object.defineProperty(D,"__esModule",{value:!0}),D.CanvasPageManager=void 0;var C=w(26),y=w(21),g=w(5),p=w(341),d=w(56),c=w(42),h=w(2),m=w(0),v=w(17),b=w(22),x=w(12),O=function(k){function M(A,F,P){var N=k.call(this,F.zoomLevel,P)||this;return N.snapPoint=new m.Point(0,0),N.gridPatternId=v.RenderUtils.generateSvgElementId("gridPattern"),N.pagesGridPatternId=v.RenderUtils.generateSvgElementId("pagesGridPattern"),N.pagesGridClipId=v.RenderUtils.generateSvgElementId("pagesGridClip"),N.pageColor=F.pageColor,N.modelSize=F.modelSize,N.simpleView=F.simpleView,N.gridSize=F.gridSize,N.gridVisible=F.gridVisible,N.pageSize=F.pageLandscape?new h.Size(F.pageSize.height,F.pageSize.width):F.pageSize,N.canvasViewOffset=new m.Point(0,0),N.initContainers(A),N}return I(M,k),M.prototype.initContainers=function(A){this.backgroundContainer=A},M.prototype.redraw=function(){this.redrawPage(this.pageColor),this.redrawGrid()},M.prototype.redrawPage=function(A){var F=new C.Style;F.fill=b.ColorUtils.colorToHash(A),this.getOrCreateElement("page-bg",new y.RectanglePrimitive(0,0,"100%","100%",F,"page"),this.backgroundContainer),this.createTextFloodFilter("page-bg-textflood-filter",this.backgroundContainer,A)},M.prototype.redrawGrid=function(){this.updateGridElements(),this.updatePagesGridElements()},M.prototype.getGridRectElement=function(A){return void 0===this.gridRectElement&&(this.gridRectElement=this.createPrimitiveElement(A,this.backgroundContainer)),this.gridRectElement},M.prototype.getGridPatternElement=function(A){return void 0===this.gridPatternElement&&(this.gridPatternElement=this.createPrimitiveElement(A,this.backgroundContainer)),this.gridPatternElement},M.prototype.updateGridElements=function(){var A=this,F=new y.RectanglePrimitive("0","0","100%","100%",null,"grid",null,function(ne){ne.style.setProperty("fill",v.RenderUtils.getUrlPathById(A.gridPatternId))}),P=this.getGridRectElement(F);if(this.gridVisible){P.style.display="",this.changePrimitiveElement(F,P);for(var N=x.UnitConverter.twipsToPixelsF(this.gridSize)*this.actualZoom,B=[0,1,2,3,4].map(function(ne){return Math.round(N*ne)}),V=[new g.PathPrimitiveMoveToCommand(B[4].toString(),"0"),new g.PathPrimitiveLineToCommand(B[4].toString(),B[4].toString()),new g.PathPrimitiveLineToCommand("0",B[4].toString())],H=[],W=1;W<=3;W++)H.push(new g.PathPrimitiveMoveToCommand(B[W].toString(),"0")),H.push(new g.PathPrimitiveLineToCommand(B[W].toString(),B[4].toString()));for(W=1;W<=3;W++)H.push(new g.PathPrimitiveMoveToCommand("0",B[W].toString())),H.push(new g.PathPrimitiveLineToCommand(B[4].toString(),B[W].toString()));var q=4*N,G=this.simpleView?this.canvasViewOffset:m.Point.zero(),J=new p.PatternPrimitive(this.gridPatternId,[this.createGridPathPrimitive(V,"grid-outer-line"),this.createGridPathPrimitive(H,"grid-inner-line")],this.createGridPatternPrimitivePosition(G.x,this.snapPoint.x,q),this.createGridPatternPrimitivePosition(G.y,this.snapPoint.y,q),q.toString(),q.toString());this.changePrimitiveElement(J,this.getGridPatternElement(J))}else P.style.display="none"},M.prototype.createGridPatternPrimitivePosition=function(A,F,P){return(((A+F*this.actualZoom)%P-P)%P).toString()},M.prototype.createGridPathPrimitive=function(A,F){return new g.PathPrimitive(A,C.StrokeStyle.default1pxNegativeOffsetInstance,F)},M.prototype.getPagesGridRectElement=function(A){return this.getOrCreateElement("grid-pages-rect",A,this.backgroundContainer)},M.prototype.getPagesGridClipPathElement=function(A){return void 0===this.pagesGridClipPathElement&&(this.pagesGridClipPathElement=this.createPrimitiveElement(A,this.backgroundContainer)),this.pagesGridClipPathElement},M.prototype.getPagesGridPatternElement=function(A){return void 0===this.pagesGridPatternElement&&(this.pagesGridPatternElement=this.createPrimitiveElement(A,this.backgroundContainer)),this.pagesGridPatternElement},M.prototype.updatePagesGridElements=function(){var A=this,F=this.getAbsoluteSize(this.pageSize),P=new y.RectanglePrimitive("0","0","100%","100%",null,"grid-page",this.pagesGridClipId,function(W){W.style.setProperty("fill",v.RenderUtils.getUrlPathById(A.pagesGridPatternId)),W.style.setProperty("display",A.simpleView?"none":"")});if(this.getPagesGridRectElement(P),!this.simpleView){var N=this.modelSize.clone().multiply(this.actualZoom,this.actualZoom),B=[new g.PathPrimitiveMoveToCommand((F.width-1).toString(),"0"),new g.PathPrimitiveLineToCommand((F.width-1).toString(),(F.height-1).toString()),new g.PathPrimitiveLineToCommand("0",(F.height-1).toString())],V=new p.PatternPrimitive(this.pagesGridPatternId,[new g.PathPrimitive(B,null,"pages-grid-line")],0,0,F.width.toString(),F.height.toString());this.changePrimitiveElement(V,this.getPagesGridPatternElement(V));var H=new d.ClipPathPrimitive(this.pagesGridClipId,[new y.RectanglePrimitive(0,0,(x.UnitConverter.twipsToPixelsF(N.width)-4).toString(),(x.UnitConverter.twipsToPixelsF(N.height)-4).toString())]);this.changePrimitiveElement(H,this.getPagesGridClipPathElement(H))}},M.prototype.notifyModelSizeChanged=function(A,F){this.modelSize=A.clone(),this.redraw()},M.prototype.notifyModelRectangleChanged=function(A){},M.prototype.notifySnapPointPositionChanged=function(A){this.snapPoint=A.clone().applyConverter(x.UnitConverter.twipsToPixelsF),this.redrawGrid()},M.prototype.notifyPageColorChanged=function(A){this.pageColor=A,this.redrawPage(this.pageColor)},M.prototype.notifyModelChanged=function(A){},M.prototype.notifyPageSizeChanged=function(A,F){this.pageSize=F?new h.Size(A.height,A.width):A.clone(),this.redraw()},M.prototype.notifyActualZoomChanged=function(A){this.actualZoom=A,this.redraw()},M.prototype.notifyViewAdjusted=function(A){this.canvasViewOffset.equals(A)||(this.canvasViewOffset=A,this.simpleView&&this.redraw())},M.prototype.notifyViewChanged=function(A){this.simpleView=A,this.redraw()},M.prototype.notifyGridChanged=function(A,F){this.gridVisible=A,this.gridSize=F,this.redraw()},M}(c.CanvasManagerBase);D.CanvasPageManager=O},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(g,p){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,c){d.__proto__=c}||function(d,c){for(var h in c)c.hasOwnProperty(h)&&(d[h]=c[h])})(g,p)},function(g,p){function d(){this.constructor=g}E(g,p),g.prototype=null===p?Object.create(p):(d.prototype=p.prototype,new d)});Object.defineProperty(D,"__esModule",{value:!0}),D.PatternPrimitive=void 0;var C=w(15),y=function(g){function p(d,c,h,m,v,b,x){var O=g.call(this,x)||this;return O.id=d,O.x=h,O.y=m,O.width=v,O.height=b,O.children=c,O}return I(p,g),p.prototype.createMainElement=function(){var d=document.createElementNS(C.svgNS,"pattern");return d.setAttribute("patternUnits","userSpaceOnUse"),d.setAttribute("id",this.id),d},p.prototype.applyElementProperties=function(d,c){this.setUnitAttribute(d,"x",this.x),this.setUnitAttribute(d,"y",this.y),this.setUnitAttribute(d,"width",this.width),this.setUnitAttribute(d,"height",this.height),this.setPositionCorrectionAttribute(d),g.prototype.applyElementProperties.call(this,d,c)},p}(w(24).SvgPrimitive);D.PatternPrimitive=y},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(F,P){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,B){N.__proto__=B}||function(N,B){for(var V in B)B.hasOwnProperty(V)&&(N[V]=B[V])})(F,P)},function(F,P){function N(){this.constructor=F}E(F,P),F.prototype=null===P?Object.create(P):(N.prototype=P.prototype,new N)});Object.defineProperty(D,"__esModule",{value:!0}),D.CanvasViewManager=D.CROP_OFFSET=D.CANVAS_SCROLL_PADDING=D.CANVAS_MIN_PADDING=void 0;var C=w(42),y=w(28),g=w(3),p=w(87),d=w(2),c=w(0),h=w(39),m=w(56),v=w(21),b=w(17),x=w(343),O=w(26),k=w(27),M=w(12);D.CANVAS_MIN_PADDING=8,D.CANVAS_SCROLL_PADDING=18,D.CROP_OFFSET=40;var A=function(F){function P(N,B,V,H,W,q,G,J){var ne=F.call(this,H,J)||this;return ne.svgElement=B,ne.paddings=new p.Offsets(0,0,0,0),ne.scroll=new c.Point(0,0),ne.crop=p.Offsets.empty(),ne.lockAutoZoom=!1,ne.autoScrollLocker=0,ne.pageClipPathId=b.RenderUtils.generateSvgElementId("page-clip"),ne.pageShadowId=b.RenderUtils.generateSvgElementId("page-shadow"),ne.onViewChanged=new g.EventDispatcher,N.onScroll.add(ne),V=V.clone().applyConverter(M.UnitConverter.twipsToPixelsF),ne.scrollView=N,ne.modelSize=V,ne.simpleView=q,ne.fixedZoomLevel=H,ne.autoZoom=W,ne.crop=ne.rectangleToCrop(G,V),ne.updateElements(V.clone().multiply(H,H),c.Point.zero(),q),ne.getOrCreateElement("shadow",new x.ShadowFilterPrimitive(ne.pageShadowId),ne.svgElement),ne.containerSize=N.getSize(),ne}return I(P,F),P.prototype.adjust=function(N,B){var V;N||(N={vertical:!1,horizontal:!1},V=p.Offsets.empty()),this.containerSize=this.scrollView.getSize(),this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,this.simpleView,this.crop,N,this.containerSize,V,B),this.tryNormalizePaddings()},P.prototype.notifyModelSizeChanged=function(N,B){N=N.clone().applyConverter(M.UnitConverter.twipsToPixelsF),this.adjustCore(N,this.fixedZoomLevel,this.autoZoom,this.simpleView,this.crop,{horizontal:!B,vertical:!B},this.containerSize,B&&B.clone().applyConverter(M.UnitConverter.twipsToPixelsF)),this.modelSize=N},P.prototype.notifyModelRectangleChanged=function(N){var B=this.rectangleToCrop(N,this.modelSize);this.crop&&this.crop.equals(B)||(this.simpleView&&this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,this.simpleView,B,{horizontal:!1,vertical:!1},this.containerSize,p.Offsets.empty()),this.crop=B)},P.prototype.notifySnapPointPositionChanged=function(N){},P.prototype.notifyZoomChanged=function(N,B){this.adjustCore(this.modelSize,N,B,this.simpleView,this.crop,{horizontal:!1,vertical:!1},this.containerSize),this.fixedZoomLevel=N,this.autoZoom=B},P.prototype.notifyViewChanged=function(N){this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,N,this.crop,{vertical:!0,horizontal:!0},this.containerSize),this.simpleView=N},P.prototype.notifyGridChanged=function(N,B){},P.prototype.notifyDragStart=function(N){this.lockAutoZoom=!0,k.DomUtils.addClassName(this.svgElement,"dxdi-drag-item")},P.prototype.notifyDragEnd=function(N){this.lockAutoZoom=!1,k.DomUtils.removeClassName(this.svgElement,"dxdi-drag-item"),this.adjustAfterDragEnd()},P.prototype.adjustAfterDragEnd=function(){this.autoZoom&&!this.autoZoomLocked&&this.adjust({horizontal:!0,vertical:this.autoZoom===y.AutoZoomMode.FitContent},this.autoZoom===y.AutoZoomMode.FitToWidth)},P.prototype.notifyShowContextToolbox=function(){this.autoZoomLocked=!0},P.prototype.notifyHideContextToolbox=function(){this.autoZoomLocked=!1,this.adjustAfterDragEnd()},P.prototype.notifyDragScrollStart=function(){k.DomUtils.addClassName(this.svgElement,"dxdi-drag-scroll")},P.prototype.notifyDragScrollEnd=function(){k.DomUtils.removeClassName(this.svgElement,"dxdi-drag-scroll")},P.prototype.notifyScrollChanged=function(N){this.scroll=N()},P.prototype.checkFitToCanvas=function(N){N=N||this.containerSize;var B=this.scrollView.getScrollBarWidth();N=N.clone().offset(2*-D.CANVAS_MIN_PADDING,2*-D.CANVAS_MIN_PADDING).nonNegativeSize();var V=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),H=this.checkScrollBars(N,B,V,p.Offsets.empty());return{vertical:(N=N.clone().offset(H.vertical?-B:0,H.horizontal?-B:0).nonNegativeSize()).height>=V.height,horizontal:N.width>=V.width}},P.prototype.rectangleToCrop=function(N,B){var V=N.clone().applyConverter(M.UnitConverter.twipsToPixelsF);return new p.Offsets(this.correctCrop(V.x),this.correctCrop(B.width-V.right),this.correctCrop(V.y),this.correctCrop(B.height-V.bottom))},P.prototype.correctCrop=function(N){return D.CROP_OFFSET*Math.floor(N/D.CROP_OFFSET)},P.prototype.setActualZoom=function(N){this.actualZoom!==N&&(this.actualZoom=N,this.raiseActualZoomChanged())},P.prototype.getActualAutoZoomLevel=function(N){if(N===y.AutoZoomMode.Disabled)return this.actualZoom;var B=this.containerSize,V=this.scrollView.getScrollBarWidth(),H=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop);return this.getActualAutoZoom(B,V,H,N)},P.prototype.getActualZoom=function(N,B,V,H,W){return this.lockAutoZoom?this.actualZoom:W===y.AutoZoomMode.Disabled?H:this.getActualAutoZoom(N,B,V,W)},P.prototype.getActualAutoZoom=function(N,B,V,H){return 0===N.width||0===N.height?1:H===y.AutoZoomMode.FitContent?Math.min((N.width-2*D.CANVAS_MIN_PADDING)/V.width,(N.height-2*D.CANVAS_MIN_PADDING)/V.height,1):Math.min((N.width-2*D.CANVAS_MIN_PADDING-B)/V.width,1)},P.prototype.raiseActualZoomChanged=function(){var N=this;this.onViewChanged.raise1(function(B){return B.notifyActualZoomChanged(N.actualZoom)})},P.prototype.tryNormalizePaddings=function(){var N=this.scrollView.getScrollBarWidth(),B=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),V=new c.Point(this.paddings.left,this.paddings.top),H=new d.Size(this.paddings.right,this.paddings.bottom),W=this.getTailSpace(V,this.scroll,B,this.containerSize,N);W.equals(H)||this.applyChanges(new p.Offsets(V.x,W.width,V.y,W.height),B,this.simpleView,this.crop.clone().multiply(this.actualZoom))},P.prototype.scrollBy=function(N){var B,V,H,W=this.scroll,q=this.containerSize,G=this.scrollView.getScrollBarWidth(),J=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),ne=this.checkScrollBars(q,G,J,this.paddings),ae=new c.Point(this.paddings.left,this.paddings.top),ge=new d.Size(this.paddings.right,this.paddings.bottom);return W=(B=this.changeScrollByOffset(ae,W,ge,J,N,q,ne)).scroll,ae=(V=this.changeTranslateByOffset(ae,ge,N=B.offset,ne)).translate,N=V.offset,ae=(H=this.cropHiddenHead(ae,W)).translate,ge=this.getTailSpace(ae,W=H.scroll,J,q,G),this.applyChanges(new p.Offsets(ae.x,ge.width,ae.y,ge.height),J,this.simpleView,this.crop.clone().multiply(this.actualZoom),W),N},P.prototype.changeScrollByOffset=function(N,B,V,H,W,q,G){var J=B.clone(),ne=W.clone();return W.x&&G.horizontal&&(J.x-=ne.x=-this.getScrollDeltaByOffset(W.x,B.x,N.x+H.width+V.width,q.width,G.vertical)),W.y&&G.vertical&&(J.y-=ne.y=-this.getScrollDeltaByOffset(W.y,B.y,N.y+H.height+V.height,q.height,G.horizontal)),{scroll:J,offset:ne}},P.prototype.changeTranslateByOffset=function(N,B,V,H){var W=N.clone(),q=V.clone();return V.x&&!H.horizontal&&(W.x+=q.x=this.getTranslateDeltaByOffset(V.x,W.x,B.width)),V.y&&!H.vertical&&(W.y+=q.y=this.getTranslateDeltaByOffset(V.y,W.y,B.height)),{translate:W,offset:q}},P.prototype.getScrollDeltaByOffset=function(N,B,V,H,W){if(N>0)return-Math.min(B,N);var q=V-(H-(W?this.scrollView.getScrollBarWidth():0));return Math.min(q-B,-N)},P.prototype.getTranslateDeltaByOffset=function(N,B,V){return N?N<0?-Math.min(B-D.CANVAS_MIN_PADDING,-N):Math.min(V-D.CANVAS_MIN_PADDING,N):0},P.prototype.getActualModelSizeWithoutZoom=function(N,B,V){return B&&V?N.clone().offset(-V.horizontal,-V.vertical).nonNegativeSize():N},P.prototype.setScrollTo=function(N,B){var V=this.containerSize,H=this.getVisibileAreaAbsShift(),W=N.clone().applyConverter(M.UnitConverter.twipsToPixelsF).clone().multiply(this.actualZoom,this.actualZoom).clone().offset(H.x,H.y),q=this.scroll;B?(q.x+=W.x-B.x,q.y+=W.y-B.y):(W.x<0&&(q.x+=W.x-D.CANVAS_MIN_PADDING),W.y<0&&(q.y+=W.y-D.CANVAS_MIN_PADDING),W.x>V.width&&(q.x+=W.x-V.width+D.CANVAS_MIN_PADDING),W.y>V.height&&(q.y+=W.y-V.height+D.CANVAS_MIN_PADDING)),this.setScroll(q)},P.prototype.scrollIntoView=function(N){N=N.clone().applyConverter(M.UnitConverter.twipsToPixelsF).multiply(this.actualZoom,this.actualZoom).moveRectangle(this.paddings.left,this.paddings.top);var B=this.scroll,V=this.containerSize;if(!(N.x>=B.x&&N.y>=B.y&&N.right<=B.x+V.width&&N.bottom<=B.y+V.height)){var H=B.clone();N.x<B.x?H.x=N.x-D.CANVAS_SCROLL_PADDING:N.right>B.x+V.width&&(H.x=Math.min(N.x-D.CANVAS_SCROLL_PADDING,N.right+D.CANVAS_SCROLL_PADDING-V.width)),H.y=N.y<B.y?N.y-D.CANVAS_SCROLL_PADDING:Math.min(N.y-D.CANVAS_SCROLL_PADDING,N.bottom+D.CANVAS_SCROLL_PADDING-V.height),this.setScroll(H)}},P.prototype.setScroll=function(N){var B=this,V=this.modelSize.clone().multiply(this.actualZoom,this.actualZoom);N.x=Math.max(0,Math.min(N.x,V.width+this.paddings.horizontal-this.containerSize.width)),N.y=Math.max(0,Math.min(N.y,V.height+this.paddings.vertical-this.containerSize.height)),this.dom.changeByFunc(null,function(){B.scrollView.setScroll(N.x,N.y)}),this.scroll=N.clone()},P.prototype.updateElements=function(N,B,V){this.updatePageElement(N,B,V),this.updateCanvasElement(B)},P.prototype.updateCanvasElement=function(N){this.canvasElement=this.getOrCreateElement("dxdi-main",new h.GroupPrimitive([],"dxdi-main",null,null,function(B){B.setAttribute("transform","translate("+Math.round(N.x)+", "+Math.round(N.y)+")")}),this.svgElement)},P.prototype.updatePageElement=function(N,B,V){if(V)this.updatePageElementCore("",0,0,N.width,N.height);else{var H=B.x,W=B.y,q=N.width,G=N.height;this.createPageShadow(H,W,q,G),this.updatePageElementCore(this.pageClipPathId,Math.round(H),Math.round(W),q,G)}},P.prototype.createPageShadow=function(N,B,V,H){this.getOrCreateElement("pageShadowRect",new v.RectanglePrimitive(N.toString(),B.toString(),V.toString(),H.toString(),new O.EmptyStyle({filter:b.RenderUtils.getUrlPathById(this.pageShadowId)}),"dxdi-page-shadow"),this.svgElement,this.svgElement.firstChild)},P.prototype.updatePageElementCore=function(N,B,V,H,W){this.pageElement=this.getOrCreateElement("page",new h.GroupPrimitive([],"dxdi-page",null,N,function(q){q.setAttribute("transform","translate("+B+", "+V+")")}),this.svgElement),this.getOrCreateElement("pageClip",this.createPageClipPathPrimitive(H,W),this.svgElement)},P.prototype.createPageClipPathPrimitive=function(N,B){return new m.ClipPathPrimitive(this.pageClipPathId,[new v.RectanglePrimitive(0,0,N.toString(),B.toString())])},P.prototype.adjustCore=function(N,B,V,H,W,q,G,J,ne){var ae=this.getActualModelSizeWithoutZoom(N,H,W);if(this.lockAutoZoom||!V&&J&&this.modelSize)this.resizeView(ae,this.actualZoom,G,H,W,J);else{var ge=this.scrollView.getScrollBarWidth(),pe=this.getActualZoom(G,ge,ae,B,V);!V||pe!==this.actualZoom||q.horizontal&&(q.vertical||ne)?(this.resetView(ae,pe,G,H,W,q),this.setActualZoom(pe)):this.resizeView(ae,pe,G,H,W,J||p.Offsets.empty())}},P.prototype.resetView=function(N,B,V,H,W,q){var G=N.clone().multiply(B,B),J=p.Offsets.fromNumber(D.CANVAS_MIN_PADDING);!(q=q||{horizontal:!0,vertical:!0}).horizontal&&this.paddings&&(J.left=this.paddings.left,J.right=this.paddings.right),!q.vertical&&this.paddings&&(J.top=this.paddings.top,J.bottom=this.paddings.bottom);var ne=this.checkScrollBars(V,this.scrollView.getScrollBarWidth(),G,J),ae=this.scrollView.getScrollBarWidth(),ge=q.horizontal||q.vertical?this.scroll:void 0;if(q.horizontal){var pe=Math.max((V.width-(ne.vertical?ae:0)-G.width)/2,D.CANVAS_MIN_PADDING);J.left=pe,J.right=pe,ge.x=0}if(q.vertical){var le=Math.max((V.height-(ne.horizontal?ae:0)-G.height)/2,D.CANVAS_MIN_PADDING);J.top=le,J.bottom=le,ge.y=0}this.applyChanges(J,G,H,W.clone().multiply(B),ge)},P.prototype.resizeView=function(N,B,V,H,W,q){var G,J,ne=this.actualZoom,ae=this.simpleView&&this.crop?this.crop.clone().multiply(ne):p.Offsets.empty(),ge=N.clone().multiply(B,B);q=q.clone().multiply(B);var pe=H&&W?W.clone().multiply(B):p.Offsets.empty(),le=new c.Point(this.paddings.left,this.paddings.top),ce=this.scroll;le=(G=this.applyOffset(le,ce,ae,pe,q)).translate,le=(J=this.cropHiddenHead(le,ce=G.scroll)).translate;var oe=this.getTailSpace(le,ce=J.scroll,ge,V,this.scrollView.getScrollBarWidth());if(!H){var K=V.width-D.CANVAS_SCROLL_PADDING,Q=V.height-D.CANVAS_SCROLL_PADDING;q.left<0&&le.x>K&&(le.x=K,ce.x=0),q.right<0&&oe.width>K&&(oe.width=K,ce.x>ge.width&&(ce.x=ge.width)),q.top<0&&le.y>Q&&(le.y=Q,ce.y=0),q.bottom<0&&oe.height>Q&&(oe.height=Q,ce.y>ge.height&&(ce.y=ge.height))}var de=new p.Offsets(le.x,oe.width,le.y,oe.height);this.applyChanges(de,ge,H,pe,ce)},P.prototype.applyChanges=function(N,B,V,H,W){var q=this,G=new c.Point(N.left,N.top);V&&H&&(G=G.clone().offset(-H.left,-H.top)),this.updateElements(B,G,V),this.setSvgSize(B.width+N.horizontal,B.height+N.vertical),this.onViewChanged.raise1(function(J){return J.notifyViewAdjusted(new c.Point(G.x,G.y))}),W&&(this.lockAutoScroll(),W&&this.dom.changeByFunc(this.scrollView,function(J){J.setScroll(W.x,W.y),q.unlockAutoScroll()}),this.scroll=W),this.paddings=N},P.prototype.isAutoScrollLocked=function(){return 0!==this.autoScrollLocker},P.prototype.lockAutoScroll=function(){this.autoScrollLocker++},P.prototype.unlockAutoScroll=function(){this.autoScrollLocker--},P.prototype.applyOffset=function(N,B,V,H,W){var q=N.clone(),G=B.clone(),J=this.getActualOffset(V,H,W);return J.left&&(q.x=Math.max(D.CANVAS_MIN_PADDING,q.x-J.left),G.x+=J.left-(N.x-q.x)),J.top&&(q.y=Math.max(D.CANVAS_MIN_PADDING,q.y-J.top),G.y+=J.top-(N.y-q.y)),{translate:q,scroll:G}},P.prototype.cropHiddenHead=function(N,B){var V=B.clone(),H=N.clone();if(V.x&&H.x>D.CANVAS_MIN_PADDING){var W=H.x-Math.max(D.CANVAS_MIN_PADDING,H.x-V.x);H.x-=W,V.x-=W}return V.y&&H.y>D.CANVAS_MIN_PADDING&&(W=H.y-Math.max(D.CANVAS_MIN_PADDING,H.y-V.y),H.y-=W,V.y-=W),{translate:H,scroll:V}},P.prototype.getTailSpace=function(N,B,V,H,W){var q=N.clone(),G=B.clone(),J=Math.max(H.width+G.x-(q.x+V.width),D.CANVAS_MIN_PADDING),ne=Math.max(H.height+G.y-(q.y+V.height),D.CANVAS_MIN_PADDING),ae=this.checkScrollBars(H,W,V,new p.Offsets(q.x,J,q.y,ne));return ae.vertical&&(J=Math.max(D.CANVAS_MIN_PADDING,J-W)),ae.horizontal&&(ne=Math.max(D.CANVAS_MIN_PADDING,ne-W)),new d.Size(J,ne)},P.prototype.getActualOffset=function(N,B,V){return new p.Offsets(-(B.left-N.left)+V.left,-(B.right-N.right)+V.right,-(B.top-N.top)+V.top,-(B.bottom-N.bottom)+V.bottom)},P.prototype.checkScrollBars=function(N,B,V,H){var W=N.width<V.width+H.horizontal,q=N.height<V.height+H.vertical;return W&&!q&&(q=N.height-B<V.height+H.vertical),q&&!W&&(W=N.width-B<V.width+H.horizontal),{horizontal:W,vertical:q}},P.prototype.setSvgSize=function(N,B){N===this.lastWidth&&B===this.lastHeight||(this.dom.changeByFunc(this.svgElement,function(V){return b.RenderUtils.updateSvgElementSize(V,N,B)}),this.lastWidth=N,this.lastHeight=B)},P.prototype.getVisibileAreaAbsShift=function(N){var B=this.scroll,V=this.paddings.clone(),H=this.simpleView;return new c.Point(V.left-(H&&this.crop?this.crop.left*this.actualZoom:0)-(N?0:B.x),V.top-(H&&this.crop?this.crop.top*this.actualZoom:0)-(N?0:B.y))},P.prototype.getModelPoint=function(N,B){var V=this.getVisibileAreaAbsShift(),H=N.clone().offset(-V.x,-V.y).multiply(1/this.actualZoom,1/this.actualZoom);if(B){var W=this.containerSize;if(N.x<0||N.y<0||N.x>W.width||N.y>W.height||H.x<0||H.y<0||H.x>this.modelSize.width||H.y>this.modelSize.height)return null}return H.clone().applyConverter(M.UnitConverter.pixelsToTwips)},P.prototype.getAbsolutePoint=function(N,B,V){var H=this.getVisibileAreaAbsShift(B),W=N.clone().multiply(this.actualZoom,this.actualZoom).clone().applyConverter(M.UnitConverter.twipsToPixelsF).clone().offset(H.x,H.y);if(V){if(W.x<0||W.y<0)return null;var q=this.containerSize;if(W.x>q.width||W.y>q.height)return null}return W},P}(C.CanvasManagerBase);D.CanvasViewManager=A},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.ShadowFilterPrimitive=void 0;var C=w(108),y=w(15),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return I(d,p),d.prototype.createChildElements=function(c){var h=document.createElementNS(y.svgNS,"feGaussianBlur");h.setAttribute("in","SourceGraphic"),h.setAttribute("stdDeviation","4.6"),c.appendChild(h);var m=document.createElementNS(y.svgNS,"feOffset");m.setAttribute("dx","0"),m.setAttribute("dy","0"),c.appendChild(m);var v=document.createElementNS(y.svgNS,"feMerge");c.appendChild(v);var b=document.createElementNS(y.svgNS,"feMergeNode");v.appendChild(b);var x=document.createElementNS(y.svgNS,"feMergeNode");x.setAttribute("in","SourceGraphic"),v.appendChild(x)},d}(C.FilterPrimitive);D.ShadowFilterPrimitive=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.AutoScrollController=void 0;var E=w(15),I=w(27),C=w(2),y=w(3),g=function(){function p(d,c,h,m){this.scroll=d,this.svgElement=c,this.view=h,this.dom=m,this.leftButtonPressed=!1,this.scrollDragging=!1,this.scrollTimer=-1,this.scrollBarWidth=I.DomUtils.getVerticalScrollBarWidth()}return p.prototype.onMouseMove=function(d,c){this.clearScrollTimer(),y.EventUtils.isLeftButtonPressed(d)||(this.leftButtonPressed=!1),this.canAutoScroll()&&this.changeScrollPosition(d,c,!1)},p.prototype.onMouseDown=function(d){this.leftButtonPressed=!!y.EventUtils.isLeftButtonPressed(d)},p.prototype.onMouseUp=function(d){this.clearScrollTimer(),this.leftButtonPressed=!1},p.prototype.onMouseEnter=function(d){var c=this;y.EventUtils.isLeftButtonPressed(d)&&setTimeout(function(){c.leftButtonPressed=!0},500)},p.prototype.onDragScrollStart=function(){this.scrollDragging=!0},p.prototype.onDragScrollEnd=function(){this.scrollDragging=!1},p.prototype.canAutoScroll=function(){return this.leftButtonPressed&&!this.scrollDragging},p.prototype.changeScrollPosition=function(d,c,h){var m=this,v=!1;if(!this.view.isAutoScrollLocked()){var b=this.scroll.getScrollContainer(),x=d.pageX-I.DomUtils.getAbsolutePositionX(b),O=d.pageY-I.DomUtils.getAbsolutePositionY(b),k=this.scroll.getSize(),M=new C.Size(parseFloat(this.svgElement.style.width),parseFloat(this.svgElement.style.height)),A=k.width;k.width<M.width&&(A-=this.scrollBarWidth);var F=k.height;k.height<M.height&&(F-=this.scrollBarWidth),x<=40?(this.dom.changeByFunc(null,function(){m.view.isAutoScrollLocked()||m.scroll.offsetScroll(-m.getScrollingOffset(x),0)}),v=!0):A-40<=x&&(this.dom.changeByFunc(null,function(){m.view.isAutoScrollLocked()||m.scroll.offsetScroll(m.getScrollingOffset(A-x),0)}),v=!0),O<=40?(this.dom.changeByFunc(null,function(){m.view.isAutoScrollLocked()||m.scroll.offsetScroll(0,-m.getScrollingOffset(O))}),v=!0):F-40<=O&&(this.dom.changeByFunc(null,function(){m.view.isAutoScrollLocked()||m.scroll.offsetScroll(0,m.getScrollingOffset(F-O))}),v=!0)}(v||this.view.isAutoScrollLocked())&&(this.scrollTimer=window.setTimeout(function(){return m.changeScrollPosition(d,c,v)},50)),h&&c()},p.prototype.clearScrollTimer=function(){this.scrollTimer>-1&&(window.clearTimeout(this.scrollTimer),this.scrollTimer=-1)},p.prototype.getScrollingOffset=function(d){var c=Math.pow((40-d)/5,2);return Math.round(Math.min(c,5))},p.createMainElement=function(d){var c=document.createElement("div");return c.setAttribute("class","dxdi-control"),d.appendChild(c),c},p.createSvgElement=function(d,c){void 0===c&&(c=!1);var h=document.createElementNS(E.svgNS,"svg");return h.className.baseVal="dxdi-canvas"+(c?" export":""),d.appendChild(h),h},p}();D.AutoScrollController=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(k,M){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,F){A.__proto__=F}||function(A,F){for(var P in F)F.hasOwnProperty(P)&&(A[P]=F[P])})(k,M)},function(k,M){function A(){this.constructor=k}E(k,M),k.prototype=null===M?Object.create(M):(A.prototype=M.prototype,new A)});Object.defineProperty(D,"__esModule",{value:!0}),D.DocumentDataSource=D.UpdateNodeKeyRelatedObjectsStackAction=D.UpdateNodeKeyRelatedObjectsStackItem=void 0;var C=w(1),y=w(14),g=w(6),p=w(346),d=w(4),c=w(44),h=w(3),m=w(49),v=w(31),b=function(k,M){this.shape=k,this.nodeObj=M};D.UpdateNodeKeyRelatedObjectsStackItem=b;var x=function(k,M){this.kind=k,this.nodeObj=M};D.UpdateNodeKeyRelatedObjectsStackAction=x;var O=function(k){function M(A,F,P,N,B,V){var H=k.call(this,"Document",F,P,N,B,V)||this;return H.changesListener=A,H.nodeInsertingLockCount=0,H.updateNodeKeyRelatedObjectsCount=0,H.updateNodeKeyRelatedObjectsStack=[],H.updateNodeKeyRelatedObjectsStackActions=[],H}return I(M,k),M.prototype.updateItemsByModel=function(A){var F=this;this.beginChangesNotification(),this.deleteNodes(A),this.deleteEdges(A),A.items.forEach(function(P){P instanceof y.Shape&&F.updateNode(A,P),P instanceof g.Connector&&F.updateEdge(A,P)}),this.endChangesNotification(!1)},M.prototype.isItemObjectModified=function(A,F,P){var N=P.setLocked&&F.locked!==A.locked||P.setZIndex&&F.zIndex!==A.zIndex||P.setCustomData&&!h.ObjectUtils.compareObjects(F.customData,A.customData);if(!N&&P.setStyle){var B=A.style.getDefaultInstance();A.style.forEach(function(H){A.style[H]!==B[H]&&A.style[H]!==(F.style&&F.style[H])&&(N=!0)})}if(!N&&P.setStyleText){var V=A.styleText.getDefaultInstance();A.styleText.forEach(function(H){A.styleText[H]!==V[H]&&A.styleText[H]!==(F.styleText&&F.styleText[H])&&(N=!0)})}return N},M.prototype.setDataObjectKeyRelatedProperty=function(A,F,P,N){(N||void 0===this.autoGeneratedDataKeys[P])&&A(F,P)},M.prototype.updateItemObjectProperties=function(A,F,P){if(P.setCustomData&&(A.customData=h.ObjectUtils.cloneObject(F.customData),A.dataObj&&void 0!==A.customData&&P.setCustomData(A.dataObj,F.customData)),P.setLocked&&(A.locked=F.locked,A.dataObj&&void 0!==A.locked&&P.setLocked(A.dataObj,F.locked)),P.setStyle){var N=F.style.toObject();A.style=N,A.dataObj&&void 0!==A.style&&P.setStyle(A.dataObj,c.Data.objectToCssText(N))}if(P.setStyleText){var B=F.styleText.toObject();A.styleText=B,A.dataObj&&void 0!==A.styleText&&P.setStyleText(A.dataObj,c.Data.objectToCssText(B))}P.setZIndex&&(A.zIndex=F.zIndex,A.dataObj&&void 0!==A.zIndex&&P.setZIndex(A.dataObj,F.zIndex))},M.prototype.deleteItems=function(A,F,P,N){A.slice().forEach(function(B){if(null!=B.key&&!F(B.key)){var V=P(B),H=V.indexOf(B.dataObj);V.splice(H,1),N(B,H>-1)}})},M.prototype.updateNode=function(A,F){var P=this,N=this.findNode(F.dataKey);if(N)this.isNodeObjectModified(F,N,A.units)?(this.updateNodeObjectProperties(F,N,A.units),this.updateNodeObjectConnectedProperties(F,N),this.beginChangesNotification(),this.changesListener.notifyNodeUpdated.call(this.changesListener,this.nodeDataImporter.getKey(N.dataObj||N.key),N.dataObj,function(V,H){P.endChangesNotification(!1)},function(V){P.endChangesNotification(!1)})):this.updateNodeObjectConnectedProperties(F,N,this.changesListener);else{var B={};null!=F.dataKey&&this.nodeDataImporter.setKey(B,F.dataKey),N=this.addNodeInternal(B,F.description.key,F.text),this.nodeDataSource.push(N.dataObj),this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setKey,B,N.key,this.addInternalKeyOnInsert),this.updateNodeObjectProperties(F,N,A.units),this.updateNodeObjectConnectedProperties(F,N),this.updateNodeObjectKey(F,N,N.dataObj),this.beginChangesNotification(),this.beginNodeInserting(),this.changesListener.notifyNodeInserted.call(this.changesListener,N.dataObj,function(V){P.updateNodeObjectKey(F,N,V),P.endNodeInserting(),P.endChangesNotification(!1)},function(V){P.endNodeInserting(),P.endChangesNotification(!1)})}},M.prototype.areImageUrlsEqual=function(A,F){return A===F||m.StringUtils.isNullOrEmpty(A)&&m.StringUtils.isNullOrEmpty(F)},M.prototype.isNodeObjectModified=function(A,F,P){return this.isItemObjectModified(A,F,this.nodeDataImporter)||F.type!==A.description.key&&!(void 0===F.type&&A.description.key===C.ShapeTypes.Rectangle)||!this.compareStrings(F.text,A.text)||this.nodeDataImporter.setImage&&!this.areImageUrlsEqual(F.image,A.image.actualUrl)||this.nodeDataImporter.setLeft&&!v.MathUtils.numberCloseTo(F.left,d.ModelUtils.getlUnitValue(P,A.position.x))||this.nodeDataImporter.setTop&&!v.MathUtils.numberCloseTo(F.top,d.ModelUtils.getlUnitValue(P,A.position.y))||this.nodeDataImporter.setWidth&&!v.MathUtils.numberCloseTo(F.width,d.ModelUtils.getlUnitValue(P,A.size.width))||this.nodeDataImporter.setHeight&&!v.MathUtils.numberCloseTo(F.height,d.ModelUtils.getlUnitValue(P,A.size.height))},M.prototype.updateNodeObjectProperties=function(A,F,P){if(this.updateItemObjectProperties(F,A,this.nodeDataImporter),this.nodeDataImporter.setType&&(F.type=A.description.key,this.nodeDataImporter.setType(F.dataObj,A.description.key)),this.nodeDataImporter.setText&&(F.text=A.text,this.nodeDataImporter.setText(F.dataObj,A.text)),this.nodeDataImporter.setImage&&(F.image=A.image.actualUrl,this.nodeDataImporter.setImage(F.dataObj,void 0===A.image.actualUrl?null:A.image.actualUrl)),this.nodeDataImporter.setLeft){var N=d.ModelUtils.getlUnitValue(P,A.position.x);F.left=N,this.nodeDataImporter.setLeft(F.dataObj,N)}if(this.nodeDataImporter.setTop){var B=d.ModelUtils.getlUnitValue(P,A.position.y);F.top=B,this.nodeDataImporter.setTop(F.dataObj,B)}if(this.nodeDataImporter.setWidth){var V=d.ModelUtils.getlUnitValue(P,A.size.width);F.width=V,this.nodeDataImporter.setWidth(F.dataObj,V)}if(this.nodeDataImporter.setHeight){var H=d.ModelUtils.getlUnitValue(P,A.size.height);F.height=H,this.nodeDataImporter.setHeight(F.dataObj,H)}},M.prototype.updateNodeObjectConnectedProperties=function(A,F,P){if(this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey){var N=this.getParentItemKey(A),B=this.findNode(N);this.updateNodeObjectParentKey(F,B,P)}if(this.useNodeContainerId&&void 0!==this.nodeDataImporter.setContainerKey){var V=this.getContainerShapeKey(A),H=this.findNode(V);this.updateNodeObjectContainerKey(F,H,P)}this.useNodeItems&&void 0!==this.nodeDataImporter.setItems&&(N=this.getParentItemKey(A),B=this.findNode(N),this.updateNodeObjectItems(F,B,P)),this.useNodeChildren&&void 0!==this.nodeDataImporter.setChildren&&(V=this.getContainerShapeKey(A),H=this.findNode(V),this.updateNodeObjectChildren(F,H,P))},M.prototype.IsNodeParentIdMode=function(){return this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey},M.prototype.IsNodeItemsMode=function(){return this.useNodeItems&&void 0!==this.nodeDataImporter.setItems},M.prototype.updateNodeObjectParentKey=function(A,F,P){var N=this.nodeDataImporter.getParentKey(A.dataObj),B=F?this.nodeDataImporter.getKey(F.dataObj):void 0;N===B||this.isRootParentKey(N)&&this.isRootParentKey(B)||(this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setParentKey,A.dataObj,B,!1),P&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("shape",A):this.updateNodeObjectContainerOrParentKeyInternal(A,P)))},M.prototype.updateNodeObjectParentKeyInternal=function(A,F){var P=this;this.beginChangesNotification(),F.notifyNodeUpdated.call(F,this.nodeDataImporter.getKey(A.dataObj)||A.key,A.dataObj,function(N,B){P.endChangesNotification(!1)},function(N){P.endChangesNotification(!1)})},M.prototype.updateNodeObjectContainerKey=function(A,F,P){var N=this.nodeDataImporter.getContainerKey(A.dataObj),B=F?this.nodeDataImporter.getKey(F.dataObj):void 0;N===B||this.isRootParentKey(N)&&this.isRootParentKey(B)||(this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setContainerKey,A.dataObj,B,!1),P&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("shape",A):this.updateNodeObjectContainerOrParentKeyInternal(A,P)))},M.prototype.updateNodeObjectContainerOrParentKeyInternal=function(A,F){var P=this;this.beginChangesNotification(),F.notifyNodeUpdated.call(F,this.nodeDataImporter.getKey(A.dataObj)||A.key,A.dataObj,function(N,B){P.endChangesNotification(!1)},function(N){P.endChangesNotification(!1)})},M.prototype.isRootParentKey=function(A){return null==A||!this.findNode(A)},M.prototype.updateNodeObjectItems=function(A,F,P){var N=this;if((F&&A.parentDataObj!==F.dataObj||!F&&A.parentDataObj)&&(!F||!this.checkNodeCyrcleItems(A.dataObj,F.dataObj))){var B=A.parentDataObj?this.nodeDataImporter.getItems(A.parentDataObj):this.nodeDataSource,V=B.indexOf(A.dataObj);B.splice(V,1);var H=F?this.nodeDataImporter.getItems(F.dataObj):this.nodeDataSource;H?H.push(A.dataObj):this.nodeDataImporter.setItems(F.dataObj,[A.dataObj]),A.parentDataObj=F&&F.dataObj,P&&(this.beginChangesNotification(),P.notifyNodeUpdated.call(P,this.nodeDataImporter.getKey(A.dataObj)||A.key,A.dataObj,function(W,q){N.endChangesNotification(!1)},function(W){N.endChangesNotification(!1)}))}},M.prototype.updateNodeObjectChildren=function(A,F,P){var N=this;if(F&&A.containerDataObj!==F.dataObj||!F&&A.containerDataObj){var B=A.containerDataObj?this.nodeDataImporter.getChildren(A.containerDataObj):this.nodeDataSource,V=B.indexOf(A.dataObj);B.splice(V,1);var H=F?this.nodeDataImporter.getChildren(F.dataObj):this.nodeDataSource;H?H.push(A.dataObj):this.nodeDataImporter.setChildren(F.dataObj,[A.dataObj]),A.containerDataObj=F&&F.dataObj,P&&(this.beginChangesNotification(),P.notifyNodeUpdated.call(P,this.nodeDataImporter.getKey(A.dataObj)||A.key,A.dataObj,function(W,q){N.endChangesNotification(!1)},function(W){N.endChangesNotification(!1)}))}},M.prototype.checkNodeCyrcleItems=function(A,F){var P=this,N=!1,B=this.nodeDataImporter.getItems(A);return B&&B.forEach(function(V){N=N||V===F||P.checkNodeCyrcleItems(V,F)}),N},M.prototype.updateNodeObjectKey=function(A,F,P){var N=this.nodeDataImporter.getKey(P),B=!1;if(null!=N&&N!==F.key&&(delete this.autoGeneratedDataKeys[F.key],F.key=N,B=!0),A.dataKey=F.key,F.dataObj!==P){var V=this.getNodeArray(F),H=V.indexOf(F.dataObj);V.splice(H,1,P),F.dataObj=P}B&&this.updateNodeKeyRelatedObjects(A,F)},M.prototype.updateNodeKeyRelatedObjects=function(A,F){var P=this;this.isInNodeInserting()?this.addToUpdateNodeKeyRelatedObjectsStack(A,F):(this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey&&this.getChildItems(A).forEach(function(N){var B=P.findNode(N.dataKey);B&&P.updateNodeObjectParentKey(B,F,P.changesListener)}),this.useNodeContainerId&&void 0!==this.nodeDataImporter.setContainerKey&&A.children.forEach(function(N){var B=N instanceof y.Shape?P.findNode(N.dataKey):void 0;B&&P.updateNodeObjectContainerKey(B,F,P.changesListener)}),this.useEdgesArray()&&A.attachedConnectors.forEach(function(N){var B=P.findEdge(N.dataKey);B&&(A===N.beginItem&&P.updateEdgeObjectFromProperty(F,B,P.changesListener),A===N.endItem&&P.updateEdgeObjectToProperty(F,B,P.changesListener))}))},M.prototype.deleteNodes=function(A){var F=this;this.deleteItems(this.nodes,function(P){return A.findShapeByDataKey(P)},function(P){return F.getNodeArray(P)},function(P,N){var B=P.dataObj&&F.nodeDataImporter.getKey(P.dataObj)||P.key,V=F.findNode(B);V&&F.nodes.splice(F.nodes.indexOf(V),1),N&&(F.beginChangesNotification(),F.changesListener.notifyNodeRemoved.call(F.changesListener,B,P.dataObj,function(H,W){F.endChangesNotification(!1)},function(H){F.endChangesNotification(!1)}))})},M.prototype.getParentItem=function(A){for(var F=0;F<A.attachedConnectors.length;F++)if(A.attachedConnectors[F].endItem===A)return A.attachedConnectors[F].beginItem},M.prototype.getParentItemKey=function(A){var F=this.getParentItem(A);return F&&F.dataKey},M.prototype.getNodeArray=function(A){var F;return this.useNodeItems&&A.parentDataObj?F=this.nodeDataImporter.getItems(A.parentDataObj):A.containerDataObj&&(F=this.nodeDataImporter.getChildren(A.containerDataObj)),F||this.nodeDataSource},M.prototype.getContainerShapeKey=function(A){return A.container&&A.container.dataKey},M.prototype.getChildItems=function(A){for(var F=[],P=0;P<A.attachedConnectors.length;P++)A.attachedConnectors[P].beginItem===A&&A.attachedConnectors[P].endItem&&F.push(A.attachedConnectors[P].endItem);return F},M.prototype.updateEdge=function(A,F){var P=this,N=F.beginItem?F.beginItem.dataKey:void 0,B=F.endItem?F.endItem.dataKey:void 0,V=this.findEdge(F.dataKey);if(V)this.isEdgeObjectModified(F,V,A.units)&&(this.updateEdgeObjectProperties(F,V,A.units),V.dataObj&&(this.beginChangesNotification(),this.changesListener.notifyEdgeUpdated.call(this.changesListener,this.edgeDataImporter.getKey(V.dataObj)||V.key,V.dataObj,function(W,q){P.endChangesNotification(!1)},function(W){P.endChangesNotification(!1)})));else{var H=this.useEdgesArray()&&this.canUpdateEdgeDataSource?{}:void 0;H&&null!=F.dataKey&&this.edgeDataImporter.setKey(H,F.dataKey),V=this.addEdgeInternal(H,N,B),H&&(this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setKey,H,V.key,this.addInternalKeyOnInsert),this.edgeDataSource.push(V.dataObj)),this.updateEdgeObjectProperties(F,V,A.units),this.updateEdgeObjectKey(F,V,V.dataObj),H&&(this.beginChangesNotification(),this.beginNodeInserting(),this.changesListener.notifyEdgeInserted.call(this.changesListener,V.dataObj,function(W){P.updateEdgeObjectKey(F,V,W),P.endNodeInserting(),P.endChangesNotification(!1)},function(W){P.endNodeInserting(),P.endChangesNotification(!1)}))}},M.prototype.isEdgeObjectModified=function(A,F,P){return this.isItemObjectModified(A,F,this.edgeDataImporter)||(null!==F.from?F.from:void 0)!==(A.beginItem?A.beginItem.dataKey:void 0)||(null===F.to?void 0:F.to)!==(A.endItem?A.endItem.dataKey:void 0)||this.edgeDataImporter.setFromPointIndex&&F.fromPointIndex!==A.beginConnectionPointIndex||this.edgeDataImporter.setToPointIndex&&F.toPointIndex!==A.endConnectionPointIndex||this.edgeDataImporter.setPoints&&(!F.points||!this.pointsAreEqual(F.points.map(function(N){return N.x}),A.points.map(function(N){return d.ModelUtils.getlUnitValue(P,N.x)}))||!this.pointsAreEqual(F.points.map(function(N){return N.y}),A.points.map(function(N){return d.ModelUtils.getlUnitValue(P,N.y)})))||this.edgeDataImporter.setText&&!this.compareTexts(F,A)||this.edgeDataImporter.setLineOption&&F.lineOption!==A.properties.lineOption||this.edgeDataImporter.setStartLineEnding&&F.startLineEnding!==A.properties.startLineEnding||this.edgeDataImporter.setEndLineEnding&&F.endLineEnding!==A.properties.endLineEnding},M.prototype.pointsAreEqual=function(A,F){var P=A.length;if(P!==A.length)return!1;for(var N=0;N<P;N++)if(!v.MathUtils.numberCloseTo(A[N],F[N]))return!1;return!0},M.prototype.updateEdgeObjectFromProperty=function(A,F,P){if(F.from=A&&A.key,F.dataObj){var N=A&&A.dataObj&&this.nodeDataImporter.getKey(A.dataObj);this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setFrom,F.dataObj,N,!1),P&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("edge",F):this.updateEdgeObjectFromOrToPropertyInternal(F,P))}},M.prototype.updateEdgeObjectFromOrToPropertyInternal=function(A,F){var P=this;this.beginChangesNotification(),F.notifyEdgeUpdated.call(F,this.nodeDataImporter.getKey(A.dataObj)||A.key,A.dataObj,function(N,B){P.endChangesNotification(!1)},function(N){P.endChangesNotification(!1)})},M.prototype.updateEdgeObjectToProperty=function(A,F,P){if(F.to=A&&A.key,F.dataObj){var N=A&&A.dataObj&&this.nodeDataImporter.getKey(A.dataObj);this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setTo,F.dataObj,N,!1),P&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("edge",F):this.updateEdgeObjectFromOrToPropertyInternal(F,P))}},M.prototype.updateEdgeObjectProperties=function(A,F,P){if(this.updateItemObjectProperties(F,A,this.edgeDataImporter),this.edgeDataImporter.setFrom){var N=this.findNode(A.beginItem&&A.beginItem.dataKey);this.updateEdgeObjectFromProperty(N,F)}if(this.edgeDataImporter.setTo){var B=this.findNode(A.endItem&&A.endItem.dataKey);this.updateEdgeObjectToProperty(B,F)}if(this.edgeDataImporter.setFromPointIndex&&(F.fromPointIndex=A.beginConnectionPointIndex,F.dataObj&&this.edgeDataImporter.setFromPointIndex(F.dataObj,A.beginConnectionPointIndex)),this.edgeDataImporter.setToPointIndex&&(F.toPointIndex=A.endConnectionPointIndex,F.dataObj&&this.edgeDataImporter.setToPointIndex(F.dataObj,A.endConnectionPointIndex)),this.edgeDataImporter.setPoints){var V=A.points.map(function(G){return{x:d.ModelUtils.getlUnitValue(P,G.x),y:d.ModelUtils.getlUnitValue(P,G.y)}});F.points=V,F.dataObj&&this.edgeDataImporter.setPoints(F.dataObj,V)}if(this.edgeDataImporter.setText){var H=void 0;1===A.getTextCount()&&A.getText()&&(H=A.getText());var W={};if(A.texts.forEach(function(G){W[G.position]=G.value}),F.texts=W,F.dataObj){var q="";H?q=H:W&&Object.keys(W).length&&(q=W),this.edgeDataImporter.setText(F.dataObj,q)}}this.edgeDataImporter.setLineOption&&(F.lineOption=A.properties.lineOption,F.dataObj&&this.edgeDataImporter.setLineOption(F.dataObj,A.properties.lineOption)),this.edgeDataImporter.setStartLineEnding&&(F.startLineEnding=A.properties.startLineEnding,F.dataObj&&this.edgeDataImporter.setStartLineEnding(F.dataObj,A.properties.startLineEnding)),this.edgeDataImporter.setEndLineEnding&&(F.endLineEnding=A.properties.endLineEnding,F.dataObj&&this.edgeDataImporter.setEndLineEnding(F.dataObj,A.properties.endLineEnding))},M.prototype.updateEdgeObjectKey=function(A,F,P){var N=P&&this.edgeDataImporter.getKey(P);if(null!=N&&N!==F.key&&(delete this.autoGeneratedDataKeys[F.key],F.key=N),A.dataKey=F.key,F.dataObj!==P){var B=this.edgeDataSource,V=B.indexOf(F.dataObj);B.splice(V,1,P),F.dataObj=P}},M.prototype.deleteEdges=function(A){var F=this;this.deleteItems(this.edges,function(P){return A.findConnectorByDataKey(P)},function(P){return F.edgeDataSource},function(P,N){var B=P.dataObj&&F.edgeDataImporter.getKey(P.dataObj)||P.key,V=F.findEdge(B);V&&F.edges.splice(F.edges.indexOf(V),1),N&&(F.beginChangesNotification(),F.changesListener.notifyEdgeRemoved.call(F.changesListener,B,P.dataObj,function(H,W){F.endChangesNotification(!1)},function(H){F.endChangesNotification(!1)}))})},M.prototype.beginNodeInserting=function(){this.nodeInsertingLockCount++},M.prototype.endNodeInserting=function(){this.nodeInsertingLockCount--,0===this.nodeInsertingLockCount&&this.raiseNodeInsertingStack()},M.prototype.isInNodeInserting=function(){return this.nodeInsertingLockCount>0},M.prototype.addToUpdateNodeKeyRelatedObjectsStack=function(A,F){var P=new b(A,F);this.updateNodeKeyRelatedObjectsStack.push(P)},M.prototype.raiseNodeInsertingStack=function(){for(this.beginUpdateNodeKeyRelatedObjects();this.updateNodeKeyRelatedObjectsStack.length>0;){var A=this.updateNodeKeyRelatedObjectsStack[0];this.updateNodeKeyRelatedObjects(A.shape,A.nodeObj),this.updateNodeKeyRelatedObjectsStack.splice(0,1),A.shape.description.hasTemplate&&A.nodeObj&&this.changesListener.reloadInsertedItem(A.nodeObj.key)}this.endUpdateNodeKeyRelatedObjects()},M.prototype.beginUpdateNodeKeyRelatedObjects=function(){this.updateNodeKeyRelatedObjectsCount++},M.prototype.endUpdateNodeKeyRelatedObjects=function(){this.updateNodeKeyRelatedObjectsCount--,0===this.updateNodeKeyRelatedObjectsCount&&this.raiseUpdateNodeKeyRelatedObjectsStack()},M.prototype.isInUpdateNodeKeyRelatedObjects=function(){return this.updateNodeKeyRelatedObjectsCount>0},M.prototype.addToUpdateNodeKeyRelatedObjectsStackAction=function(A,F){for(var P=new x(A,F),N=0;N<this.updateNodeKeyRelatedObjectsStackActions.length;N++)if(this.updateNodeKeyRelatedObjectsStackActions[N].kind===A&&this.updateNodeKeyRelatedObjectsStackActions[N].nodeObj===F)return;this.updateNodeKeyRelatedObjectsStackActions.push(P)},M.prototype.raiseUpdateNodeKeyRelatedObjectsStack=function(){for(;this.updateNodeKeyRelatedObjectsStackActions.length>0;){var A=this.updateNodeKeyRelatedObjectsStackActions[0];switch(A.kind){case"shape":this.updateNodeObjectContainerOrParentKeyInternal(A.nodeObj,this.changesListener);break;case"edge":this.updateEdgeObjectFromOrToPropertyInternal(A.nodeObj,this.changesListener)}this.updateNodeKeyRelatedObjectsStackActions.splice(0,1)}},M.prototype.beginChangesNotification=function(){this.changesListener.beginChangesNotification()},M.prototype.endChangesNotification=function(A){this.changesListener.endChangesNotification(A)},M}(p.DataSource);D.DocumentDataSource=O},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DataSource=void 0;var E=w(12),I=w(0),C=w(2),y=w(48),g=w(66),p=w(53),d=w(67),c=w(115),h=w(88),m=w(69),v=w(116),b=w(117),x=w(146),O=w(153),k=w(102),M=w(89),A=w(70),F=w(6),P=w(4),N=w(1),B=w(43),V=w(3),H=w(22),W=w(44),q=w(110),G=w(64),J=w(347),ne=w(348),ae=w(86),ge=function(){function pe(le,ce,oe,K,Q,de){if(this.key=le,this.nodes=[],this.edges=[],this.autoGeneratedDataKeys={},this.addInternalKeyOnInsert=!1,this.useNodeParentId=!1,this.useNodeContainerId=!1,this.useNodeChildren=!1,this.useNodeItems=!1,this.canUseAutoSize=!1,this.canUpdateEdgeDataSource=!1,this.containers=null,null==le)throw new Error("DataSource key must be specified");this.key=le.toString(),this.loadParameters(K||{}),this.nodeDataImporter=this.createNodeDataImporter(Q),this.edgeDataImporter=this.createEdgeDataImporter(de),this.nodeDataSource=ce||[],this.edgeDataSource=oe||[],this.canUpdateEdgeDataSource=!!oe,this.fetchData()}return pe.prototype.loadParameters=function(le){this.addInternalKeyOnInsert=!!le.addInternalKeyOnInsert},pe.prototype.isAutoGeneratedKey=function(le){return le&&!!this.autoGeneratedDataKeys[le]},pe.prototype.createNodeDataImporter=function(le){var ce=new J.DataSourceNodeDataImporter;return le&&this.assignNodeDataImporterProperties(le,ce),ce},pe.prototype.createEdgeDataImporter=function(le){var ce=new J.DataSourceEdgeDataImporter;return le&&this.assignEdgeDataImporterProperties(le,ce),ce},pe.prototype.assignItemDataImporterProperties=function(le,ce){le.getKey&&(ce.getKey=le.getKey),le.setKey&&(ce.setKey=le.setKey),le.getCustomData&&(ce.getCustomData=le.getCustomData),le.setCustomData&&(ce.setCustomData=le.setCustomData),le.getLocked&&(ce.getLocked=le.getLocked),le.setLocked&&(ce.setLocked=le.setLocked),le.getStyle&&(ce.getStyle=le.getStyle),le.setStyle&&(ce.setStyle=le.setStyle),le.getStyleText&&(ce.getStyleText=le.getStyleText),le.setStyleText&&(ce.setStyleText=le.setStyleText),le.getZIndex&&(ce.getZIndex=le.getZIndex),le.setZIndex&&(ce.setZIndex=le.setZIndex)},pe.prototype.assignNodeDataImporterProperties=function(le,ce){this.assignItemDataImporterProperties(le,ce),le.getType&&(ce.getType=le.getType),le.setType&&(ce.setType=le.setType),le.getImage&&(ce.getImage=le.getImage),le.setImage&&(ce.setImage=le.setImage),le.getText&&(ce.getText=le.getText),le.setText&&(ce.setText=le.setText),le.getLeft&&(ce.getLeft=le.getLeft),le.setLeft&&(ce.setLeft=le.setLeft),le.getTop&&(ce.getTop=le.getTop),le.setTop&&(ce.setTop=le.setTop),le.getWidth&&(ce.getWidth=le.getWidth),le.setWidth&&(ce.setWidth=le.setWidth),le.getHeight&&(ce.getHeight=le.getHeight),le.setHeight&&(ce.setHeight=le.setHeight),le.getChildren&&(ce.getChildren=le.getChildren),le.setChildren&&(ce.setChildren=le.setChildren),le.getParentKey&&(ce.getParentKey=le.getParentKey),le.setParentKey&&(ce.setParentKey=le.setParentKey),le.getItems&&(ce.getItems=le.getItems),le.setItems&&(ce.setItems=le.setItems),le.getContainerKey&&(ce.getContainerKey=le.getContainerKey),le.setContainerKey&&(ce.setContainerKey=le.setContainerKey)},pe.prototype.assignEdgeDataImporterProperties=function(le,ce){this.assignItemDataImporterProperties(le,ce),le.getFrom&&(ce.getFrom=le.getFrom),le.setFrom&&(ce.setFrom=le.setFrom),le.getFromPointIndex&&(ce.getFromPointIndex=le.getFromPointIndex),le.setFromPointIndex&&(ce.setFromPointIndex=le.setFromPointIndex),le.getTo&&(ce.getTo=le.getTo),le.setTo&&(ce.setTo=le.setTo),le.getToPointIndex&&(ce.getToPointIndex=le.getToPointIndex),le.setToPointIndex&&(ce.setToPointIndex=le.setToPointIndex),le.getPoints&&(ce.getPoints=le.getPoints),le.setPoints&&(ce.setPoints=le.setPoints),le.getText&&(ce.getText=le.getText),le.setText&&(ce.setText=le.setText),le.getLineOption&&(ce.getLineOption=le.getLineOption),le.setLineOption&&(ce.setLineOption=le.setLineOption),le.getStartLineEnding&&(ce.getStartLineEnding=le.getStartLineEnding),le.setStartLineEnding&&(ce.setStartLineEnding=le.setStartLineEnding),le.getEndLineEnding&&(ce.getEndLineEnding=le.getEndLineEnding),le.setEndLineEnding&&(ce.setEndLineEnding=le.setEndLineEnding)},pe.prototype.fetchData=function(){var le=this;if(this.nodes=[],this.edges=[],this.autoGeneratedDataKeys={},this.useNodeParentId=void 0!==this.nodeDataImporter.getParentKey,this.useNodeContainerId=void 0!==this.nodeDataImporter.getContainerKey,this.useNodeItems=void 0!==this.nodeDataImporter.getItems,this.useNodeChildren=void 0!==this.nodeDataImporter.getChildren,this.canUseAutoSize=void 0===this.nodeDataImporter.getWidth&&void 0!==this.nodeDataImporter.getText,this.useEdgesArray()&&this.useNodeParentId)throw new Error("You cannot use edges array and parentKey simultaneously.");if(this.useEdgesArray()&&this.useNodeItems)throw new Error("You cannot use edges array and items array simultaneously.");if(this.useNodeParentId&&this.useNodeItems)throw new Error("You cannot use parentKey and items array simultaneously.");if(this.useNodeContainerId&&this.useNodeChildren)throw new Error("You cannot use containerKey and children array simultaneously.");this.nodeDataSource.forEach(function(ce){le.addNode(ce)}),this.useEdgesArray()?this.edgeDataSource.forEach(function(ce){le.addEdge(ce)}):this.nodes.forEach(function(ce){le.addNodeEdgesByParentId(ce)})},pe.prototype.isContainer=function(le){var ce=this;return!this.containers&&this.useNodeContainerId&&(this.containers=this.nodeDataSource.map(function(oe){return ce.nodeDataImporter.getContainerKey(oe)}).filter(function(oe){return null!=oe}).reduce(function(oe,K){return oe[K]=!0,oe},{})),this.containers&&this.containers[le]},pe.prototype.refetchData=function(le,ce){var oe=this;this.nodeDataSource=le||this.nodeDataSource,this.edgeDataSource=ce||this.edgeDataSource;var K=this.nodes.slice(),Q=this.edges.slice();return this.fetchData(),{nodes:this.getItemChanges(K,this.nodes,function(de,Oe){return de.key===Oe.key||de.dataObj===Oe.dataObj}),edges:this.getItemChanges(Q,this.edges,function(de,Oe){return oe.useNodeParentId||oe.useNodeItems?de.key===Oe.key||de.from===Oe.from&&de.to===Oe.to:de.key===Oe.key||de.dataObj===Oe.dataObj})}},pe.prototype.getItemChanges=function(le,ce,oe){var K=this,Q=le.filter(function(Ae){return K.containsItem(ce,Ae,oe)}),de=le.filter(function(Ae){return!K.containsItem(ce,Ae,oe)}),Oe=ce.filter(function(Ae){return!K.containsItem(le,Ae,oe)});return{remained:Q.map(function(Ae){return Ae.key}),remainedNewKeys:Q.map(function(Ae){var Ne;return null===(Ne=ce.find(function(Qe){return oe(Ae,Qe)}))||void 0===Ne?void 0:Ne.key}),removed:de.map(function(Ae){return Ae.key}),added:Oe.map(function(Ae){return Ae.key})}},pe.prototype.containsItem=function(le,ce,oe){var K=!1;return le.forEach(function(Q){!K&&oe(Q,ce)&&(K=!0)}),K},pe.prototype.useEdgesArray=function(){return Array.isArray(this.edgeDataSource)&&(this.edgeDataSource.length||!(this.useNodeParentId||this.useNodeItems))},pe.prototype.addNode=function(le,ce,oe,K){var Q=this,de=this.nodeDataImporter.getChildren&&this.nodeDataImporter.getChildren(le),Oe=de&&Array.isArray(de)&&de.length,Ae=Oe||this.isContainer(this.nodeDataImporter.getKey(le)),Ne=this.nodeDataImporter.getType&&this.nodeDataImporter.getType(le)||Ae&&N.ShapeTypes.VerticalContainer||N.ShapeTypes.Rectangle,Qe=this.nodeDataImporter.getText&&(this.nodeDataImporter.getText(le)||""),$e=this.addNodeInternal(le,Ne,Qe,ce,oe,K);if(this.assignNodeProperties($e,le),Oe&&de.forEach(function(xe){Q.addNode(xe,void 0,$e.key,le)}),this.useNodeItems){var _e=this.nodeDataImporter.getItems(le);Array.isArray(_e)&&_e.length&&_e.forEach(function(xe){var ve=Q.addNode(xe,le,oe,K);Q.addEdgeInternal(void 0,$e.key,ve.key)})}return $e},pe.prototype.addNodeEdgesByParentId=function(le){if(this.useNodeParentId){var ce=this.nodeDataImporter.getParentKey(le.dataObj);null!=ce&&this.findNode(ce)&&this.addEdgeInternal(void 0,this.getNodeKey(le.dataObj,this.nodeDataImporter.getParentKey),this.getNodeKey(le.dataObj,this.nodeDataImporter.getKey))}},pe.prototype.addNodeInternal=function(le,ce,oe,K,Q,de){var Oe=this.nodeDataImporter.getKey(le),Ae=Oe??P.ModelUtils.getGuidItemKey(),Ne=new ne.DataSourceNodeItem(this.key,Ae,le,ce,oe,K,Q,de);return this.nodes.push(Ne),null==Oe&&(Oe=Ae,this.autoGeneratedDataKeys[Ae]=!0),Ne},pe.prototype.addEdge=function(le){var ce=this.addEdgeInternal(le,this.getNodeKey(le,this.edgeDataImporter.getFrom),this.getNodeKey(le,this.edgeDataImporter.getTo));return this.assignEdgeProperties(ce,le),ce},pe.prototype.addEdgeInternal=function(le,ce,oe){var K=le&&this.edgeDataImporter.getKey(le),Q=K??P.ModelUtils.getGuidItemKey(),de=new ne.DataSourceEdgeItem(this.key,Q,le,ce,oe);return this.edges.push(de),null==K&&(K=Q,this.autoGeneratedDataKeys[Q]=!0),de},pe.prototype.assignItemProperties=function(le,ce,oe){if(oe.getCustomData&&(le.customData=V.ObjectUtils.cloneObject(oe.getCustomData(ce))),oe.getLocked&&(le.locked=oe.getLocked(ce)),oe.getStyle){var K=oe.getStyle(ce);le.style="string"==typeof K?W.Data.cssTextToObject(K):K}oe.getStyleText&&(K=oe.getStyleText(ce),le.styleText="string"==typeof K?W.Data.cssTextToObject(K):K),oe.getZIndex&&(le.zIndex=oe.getZIndex(ce))},pe.prototype.assignNodeProperties=function(le,ce){this.assignItemProperties(le,ce,this.nodeDataImporter),this.nodeDataImporter.getImage&&(le.image=this.nodeDataImporter.getImage(ce)),this.nodeDataImporter.getLeft&&(le.left=this.nodeDataImporter.getLeft(ce)),this.nodeDataImporter.getTop&&(le.top=this.nodeDataImporter.getTop(ce)),this.nodeDataImporter.getWidth&&(le.width=this.nodeDataImporter.getWidth(ce)),this.nodeDataImporter.getHeight&&(le.height=this.nodeDataImporter.getHeight(ce)),this.nodeDataImporter.getContainerKey&&(le.containerKey=this.nodeDataImporter.getContainerKey(ce))},pe.prototype.assignEdgeProperties=function(le,ce){if(this.assignItemProperties(le,ce,this.edgeDataImporter),this.edgeDataImporter.getFromPointIndex&&(le.fromPointIndex=this.edgeDataImporter.getFromPointIndex(ce)),this.edgeDataImporter.getToPointIndex&&(le.toPointIndex=this.edgeDataImporter.getToPointIndex(ce)),this.edgeDataImporter.getPoints&&(le.points=this.edgeDataImporter.getPoints(ce)),this.edgeDataImporter.getText){var oe=this.edgeDataImporter.getText(ce);if(le.texts={},"object"==typeof oe){for(var K in oe)if(Object.prototype.hasOwnProperty.call(oe,K)){var Q=parseFloat(K),de=oe[K];isNaN(Q)||"string"!=typeof de||""===de||(Q=Math.min(1,Math.max(0,Q)),le.texts[Q]=de)}}else"string"==typeof oe&&""!==oe&&(le.texts[F.CONNECTOR_DEFAULT_TEXT_POSITION]=oe)}this.edgeDataImporter.getLineOption&&(le.lineOption=this.edgeDataImporter.getLineOption(ce)),this.edgeDataImporter.getStartLineEnding&&(le.startLineEnding=this.edgeDataImporter.getStartLineEnding(ce)),this.edgeDataImporter.getEndLineEnding&&(le.endLineEnding=this.edgeDataImporter.getEndLineEnding(ce))},pe.prototype.findNode=function(le){return this.nodes.filter(function(ce){return void 0!==le&&ce.key===le})[0]},pe.prototype.findEdge=function(le){return this.edges.filter(function(ce){return void 0!==le&&ce.key===le})[0]},pe.prototype.getNodeKey=function(le,ce){return ce(le)},pe.prototype.createModelItems=function(le,ce,oe,K,Q,de,Oe,Ae){var Ne=this;this.beginChangesNotification(),le.clear(),le.beginTransaction(),P.ModelUtils.deleteAllItems(le,ce,K),ce.initializeKeyCounter();var Qe=0,$e=0,_e={},xe=[],ve=[];this.nodes.forEach(function(ee){var Ce=new I.Point(2e3*$e++,2e3*Qe),De=Ne.createShapeByNode(le,ce,K,oe,ee,Ce,Q,de,Oe,Ae);void 0!==ee.key&&(_e[ee.key]=De.key),$e>4&&($e=0,Qe++),xe.push(De)}),this.nodes.forEach(function(ee){if(null!=ee.containerKey){var De=ce.findShape(_e[ee.key]),Fe=ce.findShape(_e[ee.containerKey]);Fe&&P.ModelUtils.insertToContainer(le,ce,De,Fe)}}),this.edges.forEach(function(ee){var Ce=ce.findShape(_e[ee.to]),De=ce.findShape(_e[ee.from]),ke=Ne.createConnectorByEdge(le,ce,K,ee,De,Ce);ke&&(ve.push(ke),P.ModelUtils.updateConnectorContainer(le,ce,ke))}),Q.needAutoLayout&&this.applyLayout(le,ce,xe,ve,Q,de,Oe),P.ModelUtils.tryUpdateModelRectangle(le),le.endTransaction(!0),this.endChangesNotification(!0)},pe.prototype.updateModelItems=function(le,ce,oe,K,Q,de,Oe,Ae,Ne,Qe,$e,_e){var xe=this;this.beginChangesNotification(),le.beginTransaction();var ve=[],ee=[],Ce=[],De=Ne.nodes.removed.map(function(ze){return ce.findShapeByDataKey(ze)}).filter(function(ze){return ze});De.forEach(function(ze){ze.attachedConnectors.forEach(function(Pe){Pe.beginItem&&Pe.beginItem!==ze&&ee.push(Pe.beginItem),Pe.endItem&&Pe.endItem!==ze&&ee.push(Pe.endItem)})}),P.ModelUtils.deleteItems(le,ce,K,De,!0);var ke=Ne.edges.removed.map(function(ze){return ce.findConnectorByDataKey(ze)}).filter(function(ze){return ze});ke.forEach(function(ze){ze.beginItem&&ee.push(ze.beginItem),ze.endItem&&ee.push(ze.endItem)}),P.ModelUtils.deleteItems(le,ce,K,ke,!0),ee=this.purgeLayoutShapes(ee,De),(Oe||[]).forEach(function(ze){if(-1!==Ne.nodes.remained.indexOf(ze)){var Pe=xe.findNode(ze);if(Pe){var be=ce.findShapeByDataKey(ze);if(be){var me=be.position.clone();xe.changeShapeByDataItem(le,ce,be,Pe,me),xe.changeItemByDataItem(le,be,Pe)}else be=xe.createShapeByNode(le,ce,K,oe,Pe,new I.Point(0,0),Q,Qe,$e,_e);xe.updateShapeContainer(le,ce,be,Pe),ee.push(be),ve.push(be)}}}),Ne.nodes.remained.forEach(function(ze,Pe){var be=ce.findShapeByDataKey(ze);be&&(be.dataKey=Ne.nodes.remainedNewKeys[Pe])}),Ne.nodes.added.forEach(function(ze){var Pe=xe.findNode(ze),be=xe.createShapeByNode(le,ce,K,oe,Pe,new I.Point(0,0),Q,Qe,$e,_e);xe.updateShapeContainer(le,ce,be,Pe),ee.push(be)}),Ne.edges.added.forEach(function(ze){var Pe=xe.findEdge(ze),be=ce.findShapeByDataKey(Pe.from),me=ce.findShapeByDataKey(Pe.to),Me=xe.createConnectorByEdge(le,ce,K,Pe,be,me);Me&&(P.ModelUtils.updateConnectorContainer(le,ce,Me),Ce.push(Me))});var Fe=Oe||[];Ne.edges.remained.forEach(function(ze){var Pe=xe.findEdge(ze);!Pe||-1===Ne.nodes.added.indexOf(Pe.from)&&-1===Ne.nodes.added.indexOf(Pe.to)||Fe.push(ze)}),Fe.forEach(function(ze){if(-1!==Ne.edges.remained.indexOf(ze)){var Pe=xe.findEdge(ze);if(Pe){var be=ce.findShapeByDataKey(Pe.from),me=ce.findShapeByDataKey(Pe.to),Me=ce.findConnectorByDataKey(ze);Me?(xe.changeConnectorPointsByDataItem(le,Me,xe.getConnectorPointsByEdge(ce,Pe,be,me,!1)),xe.changeConnectorByDataItem(le,ce,Me,be,me,Pe),xe.changeItemByDataItem(le,Me,Pe)):Me=xe.createConnectorByEdge(le,ce,K,Pe,be,me),Me&&(P.ModelUtils.updateConnectorContainer(le,ce,Me),Ce.push(Me),ve.push(Me))}}}),Ne.edges.remained.forEach(function(ze,Pe){var be=ce.findConnectorByDataKey(ze);be&&(be.dataKey=Ne.edges.remainedNewKeys[Pe])}),ve.length&&Ae&&ve.forEach(function(ze){ze.hasTemplate&&Ae(ze)}),Q.needAutoLayout&&(ee.length||Ce.length)&&this.applyLayout(le,ce,ee,Ce,Q,Qe,$e),P.ModelUtils.tryUpdateModelRectangle(le),le.endTransaction(!de),this.endChangesNotification(!1)},pe.prototype.purgeLayoutShapes=function(le,ce){var oe=ce.reduce(function(K,Q){return(K[Q.key]=!0)&&K},{});return le.reduce(function(K,Q){return void 0===K.keySet[Q.key]&&void 0===oe[Q.key]&&(K.uniqueShapes.push(Q),K.keySet[Q.key]=!0),K},{uniqueShapes:[],keySet:{}}).uniqueShapes},pe.prototype.applyShapeAutoSize=function(le,ce,oe,K,Q,de){if(K.description.enableText){var Oe=K.textRectangle.createSize(),Ae=K.size,Ne=Oe.width-Ae.width,Qe=Oe.height-Ae.height,$e=K.getMaxWidth(oe.shapeMaxWidth),_e=K.getMaxHeight(oe.shapeMaxHeight),xe=function(Ce,De){return"number"==typeof Ce?E.UnitConverter.twipsToPixelsF(Ce+(De?Ne:Qe)):void 0},ve=G.getOptimalTextRectangle(K.text,K.styleText,B.TextOwner.Shape,ce,Oe.clone().applyConverter(E.UnitConverter.twipsToPixelsF),K.description.keepRatioOnAutoSize,xe(K.getMinWidth(oe.shapeMinWidth),!0),xe($e,!0),xe(K.getMinHeight(oe.shapeMinHeight),!1),xe(_e,!1)).clone().applyConverter(E.UnitConverter.pixelsToTwips);if(!ve.equals(Oe)){var ee=K.description.getSizeByText(ve,K);Q&&de&&(ee=new C.Size(Math.min(de*Math.ceil(ee.width/de),$e||Number.MAX_VALUE),Math.min(de*Math.ceil(ee.height/de),_e||Number.MAX_VALUE))),le.addAndRedo(new c.ResizeShapeHistoryItem(K.key,K.position,ee))}}},pe.prototype.applyLayout=function(le,ce,oe,K,Q,de,Oe){P.ModelUtils.getGraphInfoByItems(ce,oe,K).forEach(function(Ae){var Ne=Q.getLayoutBuilder(Ae.graph).build(),Qe=P.ModelUtils.getNonGraphItems(ce,Ae.container,Ne.nodeToLayout,oe,K);P.ModelUtils.applyLayout(le,ce,Ae.container,Ae.graph,Ne,Qe,Q.layoutSettings,de,Oe,Q.skipPointIndices)})},pe.prototype.changeItemByDataItem=function(le,ce,oe){if(void 0===oe.customData||V.ObjectUtils.compareObjects(oe.customData,ce.customData)||le.addAndRedo(new v.ChangeCustomDataHistoryItem(ce.key,oe.customData)),void 0!==oe.zIndex&&oe.zIndex!==ce.zIndex&&le.addAndRedo(new k.ChangeZindexHistoryItem(ce,oe.zIndex)),void 0!==oe.style)for(var K in oe.style)Object.prototype.hasOwnProperty.call(oe.style,K)&&(de=this.getPreparedStyleValue(oe.style[K],q.isColorProperty(K)))!==ce.style[K]&&le.addAndRedo(new M.ChangeStyleHistoryItem(ce.key,K,de));var Q=ce.style.getDefaultInstance();if(ce.style.forEach(function(Ae){oe.style&&void 0===oe.style[Ae]&&ce.style[Ae]!==Q[Ae]&&le.addAndRedo(new M.ChangeStyleHistoryItem(ce.key,Ae,Q[Ae]))}),void 0!==oe.styleText)for(var K in oe.styleText){var de;Object.prototype.hasOwnProperty.call(oe.styleText,K)&&(de=this.getPreparedStyleValue(oe.styleText[K],q.isColorProperty(K)))!==ce.styleText[K]&&le.addAndRedo(new A.ChangeStyleTextHistoryItem(ce.key,K,de))}var Oe=ce.styleText.getDefaultInstance();ce.styleText.forEach(function(Ae){oe.styleText&&void 0===oe.styleText[Ae]&&ce.styleText[Ae]!==Oe[Ae]&&le.addAndRedo(new A.ChangeStyleTextHistoryItem(ce.key,Ae,Oe[Ae]))}),void 0!==oe.locked&&oe.locked!==ce.locked&&le.addAndRedo(new b.ChangeLockedHistoryItem(ce,oe.locked))},pe.prototype.getPreparedStyleValue=function(le,ce){if(ce){var oe=H.ColorUtils.stringToHash(le);null!==oe&&(le=oe)}return le},pe.prototype.createShapeByNode=function(le,ce,oe,K,Q,de,Oe,Ae,Ne,Qe){var $e=new p.AddShapeHistoryItem(K.get(Q.type),de,"",Q.key);le.addAndRedo($e);var _e=ce.findShape($e.shapeKey);return P.ModelUtils.updateNewShapeProperties(le,oe,$e.shapeKey),this.changeShapeByDataItem(le,ce,_e,Q,de),this.changeItemByDataItem(le,_e,Q),Qe&&this.canUseAutoSize&&Oe.autoSizeEnabled&&this.applyShapeAutoSize(le,Qe,Oe.sizeSettings,_e,Ae,Ne),_e},pe.prototype.changeShapeByDataItem=function(le,ce,oe,K,Q){void 0!==K.left&&(Q.x=P.ModelUtils.getTwipsValue(ce.units,K.left)),void 0!==K.top&&(Q.y=P.ModelUtils.getTwipsValue(ce.units,K.top)),P.ModelUtils.setShapePosition(le,ce,oe,Q,!1);var de=oe.size.clone();void 0!==K.width&&(de.width=P.ModelUtils.getTwipsValue(ce.units,K.width)),void 0!==K.height&&(de.height=P.ModelUtils.getTwipsValue(ce.units,K.height)),P.ModelUtils.setShapeSize(le,ce,oe,Q,de),P.ModelUtils.updateShapeAttachedConnectors(le,ce,oe),void 0!==K.text&&K.text!==oe.text&&le.addAndRedo(new O.ChangeShapeTextHistoryItem(oe,K.text)),void 0!==K.image&&K.image!==oe.image.actualUrl&&le.addAndRedo(new x.ChangeShapeImageHistoryItem(oe,K.image))},pe.prototype.updateShapeContainer=function(le,ce,oe,K){var Q=void 0!==K.containerKey?ce.findShapeByDataKey(K.containerKey):void 0;Q!==oe.container&&(Q?P.ModelUtils.insertToContainer(le,ce,oe,Q):P.ModelUtils.removeFromContainer(le,ce,oe))},pe.prototype.getConnectorPointsByEdge=function(le,ce,oe,K,Q){var de=[],Oe=this.createModelPointFromDataSourceEdgeItemPoints(le.units,ce);if(Oe&&Oe.length>1)for(var Ae=Oe.length-1,Ne=0;Ne<=Ae;Ne++){var Qe=Oe[Ne];if(null!==Qe)de.push(Qe);else{if(!oe&&!K)return;0===Ne&&oe?de.push(oe.position.clone()):Ne===Ae&&K&&de.push(K.position.clone())}}else Q&&(oe&&de.push(oe.position.clone()),K&&de.push(K.position.clone()));return de},pe.prototype.createModelPointFromDataSourceEdgeItemPoints=function(le,ce){var oe=this,K=[];if(Array.isArray(ce.points))return ce.points.forEach(function(Q){return K.push(oe.isValidDataSourceEdgeItemPoint(Q)?oe.createModelPoint(le,Q):null)}),K},pe.prototype.createModelPoint=function(le,ce){return new I.Point(P.ModelUtils.getTwipsValue(le,ce.x),P.ModelUtils.getTwipsValue(le,ce.y))},pe.prototype.isValidDataSourceEdgeItemPoint=function(le){return null!=le&&void 0!==le.x&&void 0!==le.y&&null!==le.x&&null!==le.y},pe.prototype.createConnectorByEdge=function(le,ce,oe,K,Q,de){var Oe,Ae=K.key,Ne=this.getConnectorPointsByEdge(ce,K,Q,de,!0);if(Ne&&Ne.length>1){var Qe=new g.AddConnectorHistoryItem(Ne,Ae);le.addAndRedo(Qe),Oe=ce.findConnector(Qe.connectorKey),P.ModelUtils.updateNewConnectorProperties(le,oe,Qe.connectorKey),this.changeConnectorByDataItem(le,ce,Oe,Q,de,K),this.changeItemByDataItem(le,Oe,K)}return Oe},pe.prototype.changeConnectorByDataItem=function(le,ce,oe,K,Q,de){var Oe=void 0!==de.fromPointIndex?de.fromPointIndex:oe.beginConnectionPointIndex;oe.beginItem===K&&oe.beginConnectionPointIndex===Oe||(oe.beginItem&&le.addAndRedo(new d.DeleteConnectionHistoryItem(oe,F.ConnectorPosition.Begin)),K&&le.addAndRedo(new y.AddConnectionHistoryItem(oe,K,Oe,F.ConnectorPosition.Begin)));var Ae=void 0!==de.toPointIndex?de.toPointIndex:oe.endConnectionPointIndex;if(oe.endItem===Q&&oe.endConnectionPointIndex===Ae||(oe.endItem&&le.addAndRedo(new d.DeleteConnectionHistoryItem(oe,F.ConnectorPosition.End)),Q&&le.addAndRedo(new y.AddConnectionHistoryItem(oe,Q,Ae,F.ConnectorPosition.End))),P.ModelUtils.updateConnectorAttachedPoints(le,ce,oe),void 0!==de.texts&&!this.compareTexts(de,oe))for(var Ne in oe.texts.forEach(function($e){le.addAndRedo(new m.ChangeConnectorTextHistoryItem(oe,$e.position,void 0))}),de.texts)if(Object.prototype.hasOwnProperty.call(de.texts,Ne)){var Qe=parseFloat(Ne);le.addAndRedo(new m.ChangeConnectorTextHistoryItem(oe,Qe,de.texts[Ne]))}void 0!==de.lineOption&&de.lineOption!==oe.properties.lineOption&&le.addAndRedo(new h.ChangeConnectorPropertyHistoryItem(oe.key,"lineOption",de.lineOption)),void 0!==de.startLineEnding&&de.startLineEnding!==oe.properties.startLineEnding&&le.addAndRedo(new h.ChangeConnectorPropertyHistoryItem(oe.key,"startLineEnding",de.startLineEnding)),void 0!==de.endLineEnding&&de.endLineEnding!==oe.properties.endLineEnding&&le.addAndRedo(new h.ChangeConnectorPropertyHistoryItem(oe.key,"endLineEnding",de.endLineEnding))},pe.prototype.changeConnectorPointsByDataItem=function(le,ce,oe){oe&&oe.length>1&&oe.join(",")!==ce.points.join(",")&&le.addAndRedo(new ae.ReplaceConnectorPointsHistoryItem(ce.key,oe))},pe.prototype.compareTexts=function(le,ce){var oe=le.texts||{},K=Object.keys(oe).length===ce.getTextCount();if(K)for(var Q in oe)if(Object.prototype.hasOwnProperty.call(oe,Q)){var de=parseFloat(Q);this.compareStrings(ce.getText(de),oe[Q])||(K=!1)}return K},pe.prototype.compareStrings=function(le,ce){return"string"==typeof le&&"string"==typeof ce?le===ce:this.isEmptyString(le)&&this.isEmptyString(ce)},pe.prototype.isEmptyString=function(le){return""===le||null==le},pe}();D.DataSource=ge},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(p,d){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var m in h)h.hasOwnProperty(m)&&(c[m]=h[m])})(p,d)},function(p,d){function c(){this.constructor=p}E(p,d),p.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)});Object.defineProperty(D,"__esModule",{value:!0}),D.DataSourceEdgeDataImporter=D.DataSourceNodeDataImporter=D.DataSourceItemDataImporter=void 0;var C=function(){this.getKey=function(p){return p.id},this.setKey=function(p,d){p.id=d},this.getCustomData=void 0,this.setCustomData=void 0,this.getLocked=void 0,this.setLocked=void 0,this.getStyle=void 0,this.setStyle=void 0,this.getStyleText=void 0,this.setStyleText=void 0,this.getZIndex=void 0,this.setZIndex=void 0};D.DataSourceItemDataImporter=C;var y=function(p){function d(){var c=null!==p&&p.apply(this,arguments)||this;return c.getType=void 0,c.setType=void 0,c.getText=void 0,c.setText=void 0,c.getImage=void 0,c.setImage=void 0,c.getLeft=void 0,c.setLeft=void 0,c.getTop=void 0,c.setTop=void 0,c.getWidth=void 0,c.setWidth=void 0,c.getHeight=void 0,c.setHeight=void 0,c.getChildren=void 0,c.setChildren=void 0,c.getParentKey=void 0,c.setParentKey=void 0,c.getItems=void 0,c.setItems=void 0,c.getContainerKey=void 0,c.setContainerKey=void 0,c}return I(d,p),d}(C);D.DataSourceNodeDataImporter=y;var g=function(p){function d(){var c=null!==p&&p.apply(this,arguments)||this;return c.getFrom=function(h){return h.from},c.setFrom=function(h,m){h.from=m},c.getFromPointIndex=void 0,c.setFromPointIndex=void 0,c.getTo=function(h){return h.to},c.setTo=function(h,m){h.to=m},c.getToPointIndex=void 0,c.setToPointIndex=void 0,c.getPoints=void 0,c.setPoints=void 0,c.getText=void 0,c.setText=void 0,c.getLineOption=void 0,c.setLineOption=void 0,c.getStartLineEnding=void 0,c.setStartLineEnding=void 0,c.getEndLineEnding=void 0,c.setEndLineEnding=void 0,c}return I(d,p),d}(C);D.DataSourceEdgeDataImporter=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.DataSourceEdgeItem=D.DataSourceNodeItem=D.DataSourceItem=void 0;var C=w(6),y=function(d,c,h){this.sourceKey=d,this.key=c,this.dataObj=h};D.DataSourceItem=y;var g=function(d){function c(h,m,v,b,x,O,k,M){var A=d.call(this,h,m,v)||this;return A.type=b,A.text=x,A.parentDataObj=O,A.containerKey=k,A.containerDataObj=M,A}return I(c,d),c}(y);D.DataSourceNodeItem=g;var p=function(d){function c(h,m,v,b,x){var O=d.call(this,h,m,v)||this;return O.sourceKey=h,O.from=b,O.to=x,O}return I(c,d),Object.defineProperty(c.prototype,"text",{get:function(){return this.texts&&this.texts[C.CONNECTOR_DEFAULT_TEXT_POSITION]},enumerable:!1,configurable:!0}),c}(y);D.DataSourceEdgeItem=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ViewController=void 0;var E=w(82),I=Math.log(.05),C=Math.log(3),g=h(1),p=[E.DiagramCommand.ZoomLevel,E.DiagramCommand.ZoomLevelInPercentage,E.DiagramCommand.Zoom100,E.DiagramCommand.Zoom125,E.DiagramCommand.Zoom200,E.DiagramCommand.Zoom25,E.DiagramCommand.Zoom50,E.DiagramCommand.Zoom75],d=[E.DiagramCommand.SwitchAutoZoom,E.DiagramCommand.ToggleAutoZoom,E.DiagramCommand.AutoZoomToContent,E.DiagramCommand.AutoZoomToWidth],c=function(){function m(v,b){this.settings=v,this.bars=b,v.onZoomChanged.add(this),this.autoZoom=v.autoZoom}return m.prototype.initialize=function(v){this.view=v,this.view.onViewChanged.add(this)},m.prototype.scrollTo=function(v,b){this.view&&this.view.setScrollTo(v,b)},m.prototype.scrollBy=function(v){return!this.view||0===v.x&&0===v.y?v:this.view.scrollBy(v)},m.prototype.scrollIntoView=function(v){this.view&&this.view.scrollIntoView(v)},m.prototype.normalize=function(){this.view.tryNormalizePaddings()},m.prototype.getNextStepZoom=function(v){var b=this.getNearestCurrentZoomStep(),O=Math.min(39,Math.max(0,b+(v?1:-1)));return O!==g?Math.exp(I+(C-I)*O/39):1},m.prototype.getNearestCurrentZoomStep=function(){return h(this.getZoom())},m.prototype.getZoom=function(){return this.view?this.view.actualZoom:this.settings.zoomLevel},m.prototype.resetScroll=function(){this.view.adjust({horizontal:!0,vertical:!0})},m.prototype.notifyViewAdjusted=function(v){},m.prototype.notifyActualZoomChanged=function(v){this.bars.updateItemsState(p)},m.prototype.notifyZoomChanged=function(v,b){this.autoZoom!==b&&(this.autoZoom=b,this.bars.updateItemsState(d))},m}();function h(m){var v=Math.log(m);return Math.round(39*(v-I)/(C-I))}D.ViewController=c},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ToolboxManager=void 0;var E=w(351),I=w(352),C=w(79),y=w(31),g=function(){function p(d){this.shapeDescriptionManager=d,this.toolboxes=[],this.measurers={}}return p.prototype.create=function(d,c,h,m,v,b,x){var O=Array.isArray(v)?v:this.shapeDescriptionManager.getTypesByCategory(v),k=m?new E.TextToolbox(d,c,h,this.shapeDescriptionManager,O,b):new I.IconToolbox(d,c,h,this.shapeDescriptionManager,O,b,x,this.getOrCreateMeasurer(d));return k.render(),this.toolboxes.push(k),k},p.prototype.clean=function(d,c){var h=this;if(c)c.clean(d),this.toolboxes.splice(this.toolboxes.indexOf(c),1),Object.keys(this.measurers).forEach(function(v){h.measurers[v]===c.measurer&&delete h.measurers[v]});else{for(var m=0;m<this.toolboxes.length;m++)this.toolboxes[m].clean(d);this.toolboxes=[],this.measurers={}}},p.prototype.refresh=function(d){this.toolboxes.forEach(function(c,h){(!d||Array.isArray(d)&&d.indexOf(h)>-1||h===d)&&c.render()})},p.prototype.applyFilter=function(d,c){var h=this;return this.toolboxes.reduce(function(m,v,b){return(!c||Array.isArray(c)&&c.indexOf(b)>-1||b===c)&&v.render(function(x){return h.searchFilter(x,d,b)})&&m.push(b),m},[])},p.prototype.searchFilter=function(d,c,h,m){if(!c||m&&-1===m.indexOf(h))return!0;c=c.toLowerCase();var v=this.shapeDescriptionManager.get(d);return v.getTitle().toLowerCase().indexOf(c)>-1||v.getDefaultText().toLowerCase().indexOf(c)>-1},p.prototype.getOrCreateMeasurer=function(d){var c=d.getAttribute("data-dxdiMeasurerID");return c&&this.measurers[c]||(c=y.MathUtils.generateGuid(),this.measurers[c]=new C.TextMeasurer(d),d.setAttribute("data-dxdiMeasurerID",c)),this.measurers[c]},p}();D.ToolboxManager=g},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(y,g){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,d){p.__proto__=d}||function(p,d){for(var c in d)d.hasOwnProperty(c)&&(p[c]=d[c])})(y,g)},function(y,g){function p(){this.constructor=y}E(y,g),y.prototype=null===g?Object.create(g):(p.prototype=g.prototype,new p)});Object.defineProperty(D,"__esModule",{value:!0}),D.TextToolbox=void 0;var C=function(y){function g(p,d,c,h,m,v){return y.call(this,p,d,c,h,m,v)||this}return I(g,y),g.prototype.createElements=function(p,d){var c=this;d.forEach(function(h){var m=c.shapeDescriptionManager.get(h),v=document.createElement("div");v.setAttribute("class","toolbox-text-item"),v.setAttribute("data-tb-type",h),v.textContent=m.getDefaultText()||m.getTitle(),p.appendChild(v)})},g.prototype.createDraggingElement=function(p){var d=document.createElement("DIV");d.setAttribute("class","dxdi-toolbox-drag-text-item");var c=this.shapeDescriptionManager.get(p.evt.data);return d.textContent=c.getDefaultText()||c.getTitle(),document.body.appendChild(d),d},g}(w(159).Toolbox);D.TextToolbox=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(x,O){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,M){k.__proto__=M}||function(k,M){for(var A in M)M.hasOwnProperty(A)&&(k[A]=M[A])})(x,O)},function(x,O){function k(){this.constructor=x}E(x,O),x.prototype=null===O?Object.create(O):(k.prototype=O.prototype,new k)});Object.defineProperty(D,"__esModule",{value:!0}),D.IconToolbox=void 0;var C=w(159),y=w(15),g=w(14),p=w(12),d=w(0),c=w(121),h=w(26),m=w(126),v=w(21),b=function(x){function O(k,M,A,F,P,N,B,V){var H=x.call(this,k,M,A,F,P,N)||this;return H.options=B,H.measurer=V,H}return I(O,x),O.prototype.createElements=function(k,M){var A=document.createElementNS(y.svgNS,"svg");A.className.baseVal="dxdi-canvas",k.appendChild(A),this.drawShapeIcons(A,M,this.options.toolboxWidth||A.getBoundingClientRect().width)},O.prototype.drawShapeIcons=function(k,M,A){var F=this,P=h.DEFAULT_STROKE_WIDTH,N=A-2*P,B=this.options.shapeIconSize;!B&&this.options.shapeIconSpacing&&this.options.shapeIconCountInRow&&(B=Math.floor((N-(this.options.shapeIconCountInRow-1)*this.options.shapeIconSpacing)/this.options.shapeIconCountInRow)),B||(B=32);var V=B=Math.max(B,this.options.shapeIconSpacing/2),H=this.options.shapeIconCountInRow;if(!H)for(H=1;V<N;)(V+=this.options.shapeIconSpacing+B)<N&&H++;var W=H>1?(N-B*H)/(H-1):0,q=P,G=P,J=p.UnitConverter.pixelsToTwips(B);M.forEach(function(ne,ae){ae>0&&ae%H==0&&(q=P,G+=B+W);var ge=F.shapeDescriptionManager.get(ne),pe=F.createShape(ge,q,G,B<26);F.updateShapeIconBounds(pe,B);var le=F.drawShape(k,pe);F.drawSelector(le,p.UnitConverter.pixelsToTwips(q),p.UnitConverter.pixelsToTwips(G),J),q+=B+W}),k.style.height=G+B+P+"px",k.style.width=A+"px"},O.prototype.drawShape=function(k,M){var A=this,F=M.description.createPrimitives(M,!0),P=document.createElementNS(y.svgNS,"g");if(P.setAttribute("data-tb-type",M.description.key.toString()),P.setAttribute("class","toolbox-item"),P.setAttribute("title",M.description.getTitle()),this.options.shapeIconAttributes)for(var N in this.options.shapeIconAttributes)Object.prototype.hasOwnProperty.call(this.options.shapeIconAttributes,N)&&P.setAttribute(N,this.options.shapeIconAttributes[N]);return k.appendChild(P),F.forEach(function(B){var V=B.createElement(function(H){return P.appendChild(H)});B.applyElementProperties(V,A.measurer)}),P},O.prototype.drawSelector=function(k,M,A,F){var P=this,N=new v.RectanglePrimitive(M,A,F,F,void 0,"selector");N.createElement(function(B){N.applyElementProperties(B,P.measurer),k.appendChild(B)})},O.prototype.createShape=function(k,M,A,F){var P=p.UnitConverter.pixelsToTwips(M),N=p.UnitConverter.pixelsToTwips(A),B=new g.Shape(k,new d.Point(P,N),!0);return this.needResetShapeText(k)?B.text="":F&&(B.text="T"),B},O.prototype.needResetShapeText=function(k){return!(k instanceof c.TextShapeDescription||k instanceof m.CustomShapeDescription&&k.baseDescription instanceof c.TextShapeDescription)},O.prototype.updateShapeIconBounds=function(k,M){var A=p.UnitConverter.pixelsToTwips(M);if(k.size.height=k.size.width*k.getToolboxHeightToWidthRatio(),k.size.width>k.size.height){var F=k.size.height/k.size.width;k.size.width=A,k.size.height=A*F,k.position.y=k.position.y+(A-k.size.height)/2,k.parameters.forEach(function(P){P.value=P.value*A/k.description.defaultSize.width})}else k.size.width<k.size.height?(F=k.size.width/k.size.height,k.size.height=A,k.size.width=A*F,k.position.x=k.position.x+(A-k.size.width)/2,k.parameters.forEach(function(P){P.value=P.value*A/k.description.defaultSize.height})):(k.size.width=A,k.size.height=A,k.parameters.forEach(function(P){P.value=P.value*A/k.description.defaultSize.width}))},O.prototype.createDraggingElement=function(k){var M=document.createElement("DIV");M.setAttribute("class","dxdi-toolbox-drag-item"),document.body.appendChild(M);var A=document.createElementNS(y.svgNS,"svg");A.className.baseVal="dxdi-canvas",M.appendChild(A);var F=this.shapeDescriptionManager.get(k.evt.data),P=this.createShape(F,h.DEFAULT_STROKE_WIDTH,h.DEFAULT_STROKE_WIDTH);return this.drawShape(A,P),M.style.width=p.UnitConverter.twipsToPixels(P.size.width)+2*h.DEFAULT_STROKE_WIDTH+"px",M.style.height=p.UnitConverter.twipsToPixels(P.size.height)+2*h.DEFAULT_STROKE_WIDTH+"px",M},O}(C.Toolbox);D.IconToolbox=b},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(h,m){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var x in b)b.hasOwnProperty(x)&&(v[x]=b[x])})(h,m)},function(h,m){function v(){this.constructor=h}E(h,m),h.prototype=null===m?Object.create(m):(v.prototype=m.prototype,new v)});Object.defineProperty(D,"__esModule",{value:!0}),D.ApiController=void 0;var C,h,y=w(81),g=w(11),p=w(4),d=w(58),c=function(h){function m(v,b,x){var O=h.call(this)||this;return O.events=v,O.model=x,O.selection=b,O}return I(m,h),m.prototype.notifySelectionChanged=function(v){this.isUpdateLocked()?this.registerOccurredEvent(C.SelectionChanged):this.raiseSelectionChanged()},m.prototype.notifyToolboxDragStart=function(){this.events.raise("notifyToolboxItemDragStart")},m.prototype.notifyToolboxDragEnd=function(){this.events.raise("notifyToolboxItemDragEnd")},m.prototype.notifyToolboxDraggingMouseMove=function(){},m.prototype.notifyClick=function(v){var b=this;this.tryRaiseUserAction(v,function(x){return b.events.raise("notifyItemClick",x)})},m.prototype.notifyDblClick=function(v){var b=this;this.tryRaiseUserAction(v,function(x){return b.events.raise("notifyItemDblClick",x)})},m.prototype.createNativeItem=function(v){return v&&this.cleanupNativeItem(v.toNative(this.model.units))},m.prototype.createNativeShape=function(v){return this.createNativeItem(v)},m.prototype.createNativeConnector=function(v){return this.createNativeItem(v)},m.prototype.convertUnit=function(v){return p.ModelUtils.getlUnitValue(this.model.units,v)},m.prototype.convertPoint=function(v){return new d.Point(this.convertUnit(v.x),this.convertUnit(v.y))},m.prototype.convertSize=function(v){return new d.Size(this.convertUnit(v.width),this.convertUnit(v.height))},m.prototype.cleanupNativeItem=function(v){var b=this.dataSource;return b&&(b.isAutoGeneratedKey(v.fromKey)&&(v.fromKey=void 0),b.isAutoGeneratedKey(v.key)&&(v.key=void 0),b.isAutoGeneratedKey(v.toKey)&&(v.toKey=void 0)),v},m.prototype.setDataSource=function(v){this.dataSource=v},m.prototype.tryRaiseUserAction=function(v,b){var x=this;if(this.isUserAction(v)){var O=this.model.findItem(v.source.key);O&&this.events.raise1(function(k){return b(x.createNativeItem(O))})}},m.prototype.isUserAction=function(v){return v.source&&(v.source.type===g.MouseEventElementType.Shape||v.source.type===g.MouseEventElementType.ShapeExpandButton||v.source.type===g.MouseEventElementType.ShapeParameterBox||v.source.type===g.MouseEventElementType.ShapeResizeBox||v.source.type===g.MouseEventElementType.ShapeConnectionPoint||v.source.type===g.MouseEventElementType.Connector||v.source.type===g.MouseEventElementType.ConnectorPoint||v.source.type===g.MouseEventElementType.ConnectorSide||v.source.type===g.MouseEventElementType.ConnectorOrthogonalSide||v.source.type===g.MouseEventElementType.ConnectorText)},m.prototype.onUpdateUnlocked=function(v){v&C.SelectionChanged&&this.raiseSelectionChanged()},m.prototype.raiseSelectionChanged=function(){var v=this,b=this.selection.getKeys().map(function(x){return v.createNativeItem(v.model.findItem(x))});this.events.raise1(function(x){return x.notifySelectionChanged(b)})},m}(y.BatchUpdatableObject);D.ApiController=c,(h=C||(C={}))[h.SelectionChanged=1]="SelectionChanged"},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PermissionsProvider=void 0;var E=w(14),I=w(3),C=w(16),y=w(6),g=w(355),p=w(356),d=w(357),c=w(358),h=w(359),m=w(360),v=w(361),b=w(362),x=w(363),O=w(364),k=w(365),M=w(366),A=w(367),F=function(){function P(N){this.onRequestOperation=new I.EventDispatcher,this.cache=[],this.permissionsLockCount=0,this.requestDeleteItems={},this.updateUICount=0,this.apiController=N,this.operationSettings=new C.ModelOperationSettings,this.storage=new k.PermissionsProviderStorage}return P.prototype.notifySelectionChanged=function(N){this.clearCache()},P.prototype.notifyModelChanged=function(N){this.clearCache()},P.prototype.notifyPageColorChanged=function(N){},P.prototype.notifyPageSizeChanged=function(N,B){},P.prototype.clearCache=function(N){this.cache=void 0!==N?this.cache.filter(function(B){return B.operation!==N}):[]},P.prototype.canDeleteItems=function(N){var B=this,V=!0;return N.forEach(function(H){var W;H instanceof E.Shape&&(W=new p.DeleteShapeRequestedEntity(B.apiController,H)),H instanceof y.Connector&&(W=new d.DeleteConnectorRequestedEntity(B.apiController,H)),V=V&&B.requestOperation(W)}),V},P.prototype.canAddItems=function(N){var B=this,V=!0;return N.forEach(function(H){H instanceof E.Shape&&(V=V&&B.requestOperation(new g.AddShapeRequestedEntity(B.apiController,H))),H instanceof y.Connector&&(V=(V=V&&B.canChangeConnection(H,H.beginItem,void 0,y.ConnectorPosition.Begin,H.beginConnectionPointIndex))&&B.canChangeConnection(H,H.endItem,void 0,y.ConnectorPosition.End,H.endConnectionPointIndex))}),V},P.prototype.canAddShapeFromToolbox=function(N){return this.requestOperation(new c.AddShapeFromToolboxRequestedEntity(this.apiController,N))},P.prototype.canChangeConnection=function(N,B,V,H,W){return!(!N||!this.requestDeleteItems[N.key])||!(null==B||B instanceof E.Shape)||this.requestOperation(new h.ChangeConnectionRequestedEntity(this.apiController,N,B,V,H,W))},P.prototype.canChangeConnectorPoints=function(N,B,V){return!(!N||!this.requestDeleteItems[N.key])||this.requestOperation(new m.ChangeConnectorPointsRequestedEntity(this.apiController,N,B,V))},P.prototype.canChangeShapeText=function(N){return this.requestOperation(new v.BeforeChangeShapeTextRequestedEntity(this.apiController,N))},P.prototype.canChangeConnectorText=function(N,B){return this.requestOperation(new b.BeforeChangeConnectorTextRequestedEntity(this.apiController,N,B))},P.prototype.canApplyShapeTextChange=function(N,B){return this.requestOperation(new x.ChangeShapeTextRequestedEntity(this.apiController,N,B))},P.prototype.canApplyConnectorTextChange=function(N,B,V){return this.requestOperation(new O.ChangeConnectorTextRequestedEntity(this.apiController,N,B,V))},P.prototype.canResizeShapes=function(N){var B=this,V=!0;return N.forEach(function(H){V=V&&B.requestOperation(new M.ResizeShapeRequestedEntity(B.apiController,H.shape,H.oldSize,H.size))}),V},P.prototype.canMoveShapes=function(N){var B=this,V=!0;return N.forEach(function(H){V=V&&B.requestOperation(new A.MoveShapeRequestedEntity(B.apiController,H.shape,H.oldPosition,H.position))}),V},P.prototype.requestOperation=function(N){var B,V=!0;return!this.permissionsLockCount&&(this.updateUICount>0&&this.cache.forEach(function(H){H.equals(N)&&(B=H)}),B?V=B.allowed:(this.requestOperationCore(N),this.updateUICount>0&&this.cache.push(N),V=N.allowed),0===this.updateUICount&&this.storage.needStorePermissions())?(this.storage.storePermission(N.storageKey,V),this.storage.isStoredPermissionsGranted()):V},P.prototype.requestOperationCore=function(N){N.eventArgs.allowed=this.operationSettings[N.settingsKey],N.eventArgs.updateUI=this.updateUICount>0,N.allowed&&this.onRequestOperation.raise("notifyRequestOperation",N.operation,N.eventArgs)},P.prototype.lockPermissions=function(){this.permissionsLockCount++},P.prototype.unlockPermissions=function(){this.permissionsLockCount--},P.prototype.beginDeleteItems=function(N){var B=this;N.forEach(function(V){return B.requestDeleteItems[V.key]=V})},P.prototype.endDeleteItems=function(){this.requestDeleteItems={}},P.prototype.beginUpdateUI=function(){this.updateUICount++},P.prototype.endUpdateUI=function(){this.updateUICount--},P.prototype.addInteractingItem=function(N,B){this.storage.addInteractingItem(N,B)},P.prototype.getInteractingItem=function(N,B){return this.storage.getInteractingItem(N,B)},P.prototype.getInteractingItemCount=function(){return this.storage.getInteractingItemCount()},P.prototype.clearInteractingItems=function(){this.storage.clearInteractingItems()},P.prototype.beginStorePermissions=function(){this.storage.beginStorePermissions()},P.prototype.endStorePermissions=function(){this.storage.endStorePermissions()},P.prototype.isStoredPermissionsGranted=function(){return this.permissionsLockCount>0||this.storage.isStoredPermissionsGranted()},P}();D.PermissionsProvider=F},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.AddShapeEventArgs=D.AddShapeRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m){var v=d.call(this,h)||this;return v.shape=m,v}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.AddShape},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.apiController.convertPoint(this.shape.position))},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"addShape"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&this.shape===h.shape&&this.shape.position.equals(h.shape.position)},c}(y.RequestedEntity);D.AddShapeRequestedEntity=g;var p=function(d){function c(h,m){var v=d.call(this)||this;return v.shape=h,v.position=m,v}return I(c,d),c}(y.PermissionRequestEventArgs);D.AddShapeEventArgs=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.DeleteShapeEventArgs=D.DeleteShapeRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m){var v=d.call(this,h)||this;return v.shape=m,v}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.DeleteShape},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape))},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"deleteShape"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&this.shape===h.shape},c}(y.RequestedEntity);D.DeleteShapeRequestedEntity=g;var p=function(d){function c(h){var m=d.call(this)||this;return m.shape=h,m}return I(c,d),c}(y.PermissionRequestEventArgs);D.DeleteShapeEventArgs=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.DeleteConnectorEventArgs=D.DeleteConnectorRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m){var v=d.call(this,h)||this;return v.connector=m,v}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.DeleteConnector},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector))},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"deleteConnector"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&this.connector===h.connector},c}(y.RequestedEntity);D.DeleteConnectorRequestedEntity=g;var p=function(d){function c(h){var m=d.call(this)||this;return m.connector=h,m}return I(c,d),c}(y.PermissionRequestEventArgs);D.DeleteConnectorEventArgs=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.AddShapeFromToolboxEventArgs=D.AddShapeFromToolboxRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m){var v=d.call(this,h)||this;return v.shapeType=m,v}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.AddShapeFromToolbox},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.shapeType)},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"addShapeFromToolbox"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+this.shapeType},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&this.shapeType===h.shapeType},c}(y.RequestedEntity);D.AddShapeFromToolboxRequestedEntity=g;var p=function(d){function c(h){var m=d.call(this)||this;return m.shapeType=h,m}return I(c,d),c}(y.PermissionRequestEventArgs);D.AddShapeFromToolboxEventArgs=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeConnectionEventArgs=D.ChangeConnectionRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m,v,b,x,O){var k=d.call(this,h)||this;return k.connector=m,k.shape=v,k.oldShape=b,k.position=x,k.connectionPointIndex=O,k}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeConnection},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector),this.apiController.createNativeShape(this.shape),this.apiController.createNativeShape(this.oldShape),this.position,this.connectionPointIndex)},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"changeConnection"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)+"_"+this.position},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&(!this.shape&&!h.shape||this.shape&&h.shape&&this.shape===h.shape)&&(!this.oldShape&&!h.oldShape||this.oldShape&&h.oldShape&&this.oldShape===h.oldShape)&&(!this.connector&&!h.connector||this.connector&&h.connector&&this.connector===h.connector)&&this.position===h.position&&this.connectionPointIndex===h.connectionPointIndex},c}(y.RequestedEntity);D.ChangeConnectionRequestedEntity=g;var p=function(d){function c(h,m,v,b,x){var O=d.call(this)||this;return O.connector=h,O.shape=m,O.oldShape=v,O.position=b,O.connectionPointIndex=x,O}return I(c,d),c}(y.PermissionRequestEventArgs);D.ChangeConnectionEventArgs=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(c,h){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var b in v)v.hasOwnProperty(b)&&(m[b]=v[b])})(c,h)},function(c,h){function m(){this.constructor=c}E(c,h),c.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeConnectorPointsEventArgs=D.ChangeConnectorPointsRequestedEntity=void 0;var C=w(16),y=w(23),g=w(3),p=function(c){function h(m,v,b,x){var O=c.call(this,m)||this;return O.connector=v,O.oldPoints=b,O.points=x,O}return I(h,c),Object.defineProperty(h.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeConnectorPoints},enumerable:!1,configurable:!0}),h.prototype.createEventArgs=function(){var m=this;return new d(this.apiController.createNativeConnector(this.connector),this.oldPoints.map(function(v){return m.apiController.convertPoint(v)}),this.points.map(function(v){return m.apiController.convertPoint(v)}))},Object.defineProperty(h.prototype,"settingsKey",{get:function(){return"changeConnectorPoints"},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),h.prototype.equals=function(m){return m instanceof h&&this.connector===m.connector&&g.GeometryUtils.arePointsEqual(this.oldPoints,m.oldPoints)&&g.GeometryUtils.arePointsEqual(this.points,m.points)},h}(y.RequestedEntity);D.ChangeConnectorPointsRequestedEntity=p;var d=function(c){function h(m,v,b){var x=c.call(this)||this;return x.connector=m,x.oldPoints=v,x.points=b,x}return I(h,c),h}(y.PermissionRequestEventArgs);D.ChangeConnectorPointsEventArgs=d},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.BeforeChangeShapeTextEventArgs=D.BeforeChangeShapeTextRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m){var v=d.call(this,h)||this;return v.shape=m,v}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.BeforeChangeShapeText},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape))},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"changeShapeText"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return"before"+this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&this.shape===h.shape&&this.shape.text===h.shape.text},c}(y.RequestedEntity);D.BeforeChangeShapeTextRequestedEntity=g;var p=function(d){function c(h){var m=d.call(this)||this;return m.shape=h,m}return I(c,d),c}(y.PermissionRequestEventArgs);D.BeforeChangeShapeTextEventArgs=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.BeforeChangeConnectorTextEventArgs=D.BeforeChangeConnectorTextRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m,v){var b=d.call(this,h)||this;return b.connector=m,b.position=v,b}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.BeforeChangeConnectorText},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector),this.position,this.connector.texts.map(function(h){return h}).sort(function(h,m){return h.position-m.position}).indexOf(this.connector.texts.get(this.position)))},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"changeConnectorText"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return"before"+this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&this.connector===h.connector&&this.position===h.position&&this.connector.texts.get(this.position)===h.connector.texts.get(h.position)},c}(y.RequestedEntity);D.BeforeChangeConnectorTextRequestedEntity=g;var p=function(d){function c(h,m,v){var b=d.call(this)||this;return b.connector=h,b.position=m,b.index=v,b}return I(c,d),c}(y.PermissionRequestEventArgs);D.BeforeChangeConnectorTextEventArgs=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeShapeTextEventArgs=D.ChangeShapeTextRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m,v){var b=d.call(this,h)||this;return b.shape=m,b.text=v,b}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeShapeText},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.text)},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"changeShapeText"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&this.shape===h.shape&&this.text===h.text},c}(y.RequestedEntity);D.ChangeShapeTextRequestedEntity=g;var p=function(d){function c(h,m){var v=d.call(this)||this;return v.shape=h,v.text=m,v}return I(c,d),c}(y.PermissionRequestEventArgs);D.ChangeShapeTextEventArgs=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ChangeConnectorTextEventArgs=D.ChangeConnectorTextRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m,v,b){var x=d.call(this,h)||this;return x.connector=m,x.position=v,x.text=b,x}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeConnectorText},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector),this.position,this.connector.texts.map(function(h){return h}).sort(function(h,m){return h.position-m.position}).indexOf(this.connector.texts.get(this.position)),this.text)},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"changeConnectorText"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&this.connector===h.connector&&this.position===h.position&&this.text===h.text},c}(y.RequestedEntity);D.ChangeConnectorTextRequestedEntity=g;var p=function(d){function c(h,m,v,b){var x=d.call(this)||this;return x.connector=h,x.position=m,x.index=v,x.text=b,x}return I(c,d),c}(y.PermissionRequestEventArgs);D.ChangeConnectorTextEventArgs=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PermissionsProviderStorage=void 0;var E=w(14),I=w(6),C=function(){function y(){this.interactingItems={},this.storedPermissions={}}return y.prototype.addInteractingItem=function(g,p){var d=this.getInteractingItemKey(g,p);void 0===this.interactingItems[d]&&(g instanceof E.Shape||g instanceof I.Connector)&&(this.interactingItems[d]=g.clone())},y.prototype.getInteractingItem=function(g,p){var d=this.getInteractingItemKey(g,p);return this.interactingItems[d]},y.prototype.getInteractingItemCount=function(){return Object.keys(this.interactingItems).length},y.prototype.clearInteractingItems=function(){this.interactingItems={}},y.prototype.getInteractingItemKey=function(g,p){return g.key+(void 0!==p?"_"+p.toString():"")},y.prototype.needStorePermissions=function(){return this.storePermissions},y.prototype.beginStorePermissions=function(){this.storePermissions=!0},y.prototype.endStorePermissions=function(){this.storePermissions=!1,this.storedPermissions={}},y.prototype.isStoredPermissionsGranted=function(){for(var g=Object.keys(this.storedPermissions),p=!0,d=0;d<g.length;d++)p=p&&this.storedPermissions[g[d]];return p},y.prototype.storePermission=function(g,p){this.storedPermissions[g]=p},y}();D.PermissionsProviderStorage=C},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.ResizeShapeEventArgs=D.ResizeShapeRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m,v,b){var x=d.call(this,h)||this;return x.shape=m,x.oldSize=v,x.size=b,x}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.ResizeShape},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.apiController.convertSize(this.oldSize),this.apiController.convertSize(this.size))},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"resizeShape"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&this.shape===h.shape&&this.oldSize.equals(h.oldSize)&&this.size.equals(h.size)},c}(y.RequestedEntity);D.ResizeShapeRequestedEntity=g;var p=function(d){function c(h,m,v){var b=d.call(this)||this;return b.shape=h,b.oldSize=m,b.size=v,b}return I(c,d),c}(y.PermissionRequestEventArgs);D.ResizeShapeEventArgs=p},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(d,c){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)m.hasOwnProperty(v)&&(h[v]=m[v])})(d,c)},function(d,c){function h(){this.constructor=d}E(d,c),d.prototype=null===c?Object.create(c):(h.prototype=c.prototype,new h)});Object.defineProperty(D,"__esModule",{value:!0}),D.MoveShapeEventArgs=D.MoveShapeRequestedEntity=void 0;var C=w(16),y=w(23),g=function(d){function c(h,m,v,b){var x=d.call(this,h)||this;return x.shape=m,x.oldPosition=v,x.position=b,x}return I(c,d),Object.defineProperty(c.prototype,"operation",{get:function(){return C.DiagramModelOperation.MoveShape},enumerable:!1,configurable:!0}),c.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.apiController.convertPoint(this.oldPosition),this.apiController.convertPoint(this.position))},Object.defineProperty(c.prototype,"settingsKey",{get:function(){return"moveShape"},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),c.prototype.equals=function(h){return h instanceof c&&this.shape===h.shape&&this.oldPosition.equals(h.oldPosition)&&this.position.equals(h.position)},c}(y.RequestedEntity);D.MoveShapeRequestedEntity=g;var p=function(d){function c(h,m,v){var b=d.call(this)||this;return b.shape=h,b.oldPosition=m,b.position=v,b}return I(c,d),c}(y.PermissionRequestEventArgs);D.MoveShapeEventArgs=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorRoutingModel=D.ConnectorRoutingPenaltyDescription=void 0;var E=w(28),I=w(14),C=w(6),y=w(32),g=w(369),p=function(){this.shape=20,this.margin=2,this.turnBack=20,this.turnLeft=3.1,this.turnRight=3};D.ConnectorRoutingPenaltyDescription=p;var d=function(){function c(){this.connectorRoutingMode=E.ConnectorRoutingMode.AllShapesOnly,this.shapeMargins=C.Connector.minOffset,this.shouldReverseConnections=!0,this.shouldResizeConnections=!0,this.penaltyDescription=new p}return c.prototype.initialize=function(h){this.model=h},c.prototype.createStrategy=function(h){if(void 0!==this.model&&this.connectorRoutingMode!==E.ConnectorRoutingMode.None&&h===y.ConnectorLineOption.Orthogonal)return new g.RightAngleConnectorRoutingStrategy(this)},c.prototype.getItems=function(h,m){return this.getShapes(h,m)},c.prototype.notifyConnectorRoutingModeChanged=function(h){this.connectorRoutingMode=h},c.prototype.getShapes=function(h,m){return void 0===this.model||void 0===this.connectorRoutingMode||this.connectorRoutingMode===E.ConnectorRoutingMode.None?[]:this.connectorRoutingMode===E.ConnectorRoutingMode.AllShapesOnly?this.model.items.filter(function(v){return v instanceof I.Shape}):this.getConnectorShapes(h,m)},c.prototype.getConnectorShapes=function(h,m){var v=[];return h&&v.push(h),m&&h!==m&&v.push(m),v},c}();D.ConnectorRoutingModel=d},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RightAngleConnectorRoutingStrategy=void 0;var E=w(33),I=w(29),C=w(370),y=w(4),g=function(){function p(d){this.model=d}return p.prototype.createRenderPoints=function(d,c,h,m,v,b,x){if(c.length>1){var O=new C.RightAngleConnectorRoutingContext(this.model,d,c,h,m,v,b);if(O.initialize(x),O.shouldCreateRenderPoints)return this.createRenderPointsCore(O)}},p.prototype.clone=function(){return new p(this.model)},p.prototype.onAddPoint=function(d,c,h,m){var v=m.map(function(A){return new I.ConnectorRenderPoint(A.x,A.y,A.pointIndex)}),b=y.ModelUtils.findFirstPointIndex(v,function(A){return A.equals(h)});if(0===b)return v.splice(1,0,new I.ConnectorRenderPoint(h.x,h.y,c)),y.ModelUtils.validateRenderPointIndexes(d,v,2);var x=v.length-1;if(b===x)return v.splice(x,0,new I.ConnectorRenderPoint(h.x,h.y,c)),v[x+1].pointIndex=c+1,v;if(b>0){var O=v[b];return v[b]=new I.ConnectorRenderPoint(O.x,O.y,c,O.skipped),y.ModelUtils.validateRenderPointIndexes(d,v,b+1)}var k=new E.Segment(v[0],v[1]),M=new I.ConnectorRenderPoint(h.x,h.y);return k.containsPoint(M)?(v.splice(1,0,new I.ConnectorRenderPoint(M.x,M.y,-1)),v.splice(2,0,new I.ConnectorRenderPoint(M.x,M.y,c)),y.ModelUtils.validateRenderPointIndexes(d,v,3)):new E.Segment(v[x-1],v[x]).containsPoint(M)?(v.splice(x,0,new I.ConnectorRenderPoint(M.x,M.y,c)),v.splice(x+1,0,new I.ConnectorRenderPoint(M.x,M.y,-1)),v[x+2].pointIndex=c+1,v):m},p.prototype.onDeletePoint=function(d,c,h){var m=h.map(function(N){return new I.ConnectorRenderPoint(N.x,N.y,N.pointIndex)}),v=this.getRenderPointIndexByPointIndex(m,c);if(1===v){var b=m[0],x=m[1];return b.equals(x)?(m.splice(1,1),y.ModelUtils.validateRenderPointIndexes(d,m,1)):(m[1]=new I.ConnectorRenderPoint(x.x,x.y,-1,x.skipped),y.ModelUtils.validateRenderPointIndexes(d,m,2))}if(2===v){var O=m[2];return(b=m[1]).equals(O)?(m.splice(1,2),y.ModelUtils.validateRenderPointIndexes(d,m,1)):(m[2]=new I.ConnectorRenderPoint(O.x,O.y,-1,O.skipped),y.ModelUtils.validateRenderPointIndexes(d,m,3))}var k=m.length-1;if(v===k-1){var M=m[k-1],A=m[k];return M.equals(A)?(m.splice(k-1,1),y.ModelUtils.validateRenderPointIndexes(d,m,k-1)):(m[k-1]=new I.ConnectorRenderPoint(M.x,M.y,-1,M.skipped),y.ModelUtils.validateRenderPointIndexes(d,m,k))}if(v===k-2){var F=m[k-2];return F.equals(A=m[k-1])?(m.splice(k-2,2),y.ModelUtils.validateRenderPointIndexes(d,m,k-2)):(m[k-2]=new I.ConnectorRenderPoint(F.x,F.y,-1,F.skipped),y.ModelUtils.validateRenderPointIndexes(d,m,k-1))}var P=m[v];return m[v]=new I.ConnectorRenderPoint(P.x,P.y,-1,P.skipped),y.ModelUtils.validateRenderPointIndexes(d,m,v+1)},p.prototype.onMovePoint=function(d,c,h,m){if(0===c||c===d.length-1)return m;var v=m.map(function(b){return new I.ConnectorRenderPoint(b.x,b.y,b.pointIndex)});return this.onMovePointCore(v,c,h),y.ModelUtils.skipUnnecessaryRightAngleRenderPoints(v),v},p.prototype.onMovePoints=function(d,c,h,m,v,b){if(0===c||m===d.length-1)return b;var x=b.map(function(O){return new I.ConnectorRenderPoint(O.x,O.y,O.pointIndex)});return this.onMovePointCore(x,c,h),this.onMovePointCore(x,m,v),y.ModelUtils.skipUnnecessaryRightAngleRenderPoints(x),x},p.prototype.onMovePointCore=function(d,c,h){var m=this.getRenderPointIndexByPointIndex(d,c);m>=0&&(d[m]=new I.ConnectorRenderPoint(h.x,h.y,c,d[m].skipped))},p.prototype.createRenderPointsCore=function(d){var c,h=[],m=-1,v=-1;d.setup();var b=d.renderSegments,x=b[b.length-1].endPoint,O=d.points;do{this.registerCustomPoints(h,O,v+2,b[m+1].startPointIndex-1),v=(c=b[++m]).startPointIndex,this.registerRenderPoints(h,d.createRoutedPoints(c.startInfo,c.endInfo,c.createProhibitedSegments()),v)}while(!c.endPoint.equals(x));return d.validateRenderPoints(h),h},p.prototype.getRenderPointIndexByPointIndex=function(d,c){return y.ModelUtils.findFirstPointIndex(d,function(h){return h.pointIndex===c})},p.prototype.registerRenderPoints=function(d,c,h){var m=this;c.forEach(function(v,b){m.registerPoint(d,v,0===b?h:b===c.length-1?h+1:-1)})},p.prototype.registerCustomPoints=function(d,c,h,m){for(var v=h;v<=m;v++)this.registerPoint(d,c[v],v)},p.prototype.registerPoint=function(d,c,h){d.push(new I.ConnectorRenderPoint(c.x,c.y,h))},p}();D.RightAngleConnectorRoutingStrategy=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RightAngleConnectorRoutingContext=D.IntersectingItemsByPointsContext=D.CuttingItemsContext=void 0;var E=w(0),I=w(33),C=w(60),y=w(9),g=w(160),p=w(371),d=w(373),c=w(4),h=w(161),m=w(374),v=w(378),b=w(3),x=function(){function M(){this.cuttingItemKeys=[]}return Object.defineProperty(M.prototype,"isEmpty",{get:function(){return 0===this.cuttingItemKeys.length},enumerable:!1,configurable:!0}),M.prototype.registerShape=function(A,F,P){return!!b.GeometryUtils.areSegmentsCutRectangle(P,F)&&(this.cuttingItemKeys.push(A),!0)},M}();D.CuttingItemsContext=x;var O=function(){function M(){this.items={}}return M.prototype.getOrAddItems=function(A,F){if(A){var P=A.toString(),N=this.items[P];if(void 0!==N)return N.items;if(F){var B=F(A);return this.items[P]={point:A,items:B},B}}},M}();D.IntersectingItemsByPointsContext=O;var k=function(){function M(A,F,P,N,B,V,H){this.routingModel=A,this.points=F,this.supportRenderPoints=P,this.beginConnectionShape=N,this.endConnectionShape=B,this.beginConnectionSide=this.getConnectionSide(this.beginConnectionShape,V,this.beginPoint),this.endConnectionSide=this.getConnectionSide(this.endConnectionShape,H,this.endPoint),this.ignorableItemKeys={},this.cuttingShapesContext=new x,this.intersectedItemsByPointsContext=new O,this.isInvalidRenderSegments=!0}return Object.defineProperty(M.prototype,"shapeMargins",{get:function(){return this.routingModel.shapeMargins},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"beginPoint",{get:function(){return this.points[0]},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"endPoint",{get:function(){return this.points[this.points.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"hasIntersecting",{get:function(){return!this.cuttingShapesContext.isEmpty},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"shouldCreateRenderPoints",{get:function(){return this.isInvalidRenderSegments||!this.isSmallPath&&(this.hasIntersecting||this.isReversedStartConnection||this.isReversedEndConnection)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"beginPathPoint",{get:function(){return this.beginConnectionSegment instanceof I.Segment?this.beginConnectionSegment.startPoint:this.beginConnectionSegment},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"endPathPoint",{get:function(){return this.endConnectionSegment instanceof I.Segment?this.endConnectionSegment.endPoint:this.endConnectionSegment},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isReversedStartConnection",{get:function(){if(!this.beginConnectionShape||this.beginConnectionSide===y.ConnectionPointSide.Undefined)return!1;var A=this.beginConnectionSegment;return!(A instanceof E.Point)&&this.isReversedConnectionSegment(this.supportSegments[0],A)},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"isReversedEndConnection",{get:function(){if(!this.endConnectionShape||this.endConnectionSide===y.ConnectionPointSide.Undefined)return!1;var A=this.endConnectionSegment;return!(A instanceof E.Point)&&this.isReversedConnectionSegment(this.supportSegments[this.supportSegments.length-1],A)},enumerable:!1,configurable:!0}),M.prototype.isReversedConnectionSegment=function(A,F){return C.Vector.scalarProduct(C.Vector.fromSegment(A),C.Vector.fromPoints(F.startPoint,F.endPoint))<=0},Object.defineProperty(M.prototype,"isSmallPath",{get:function(){var A=2*this.routingModel.shapeMargins;return Math.abs(this.beginPathPoint.x-this.endPathPoint.x)<A&&Math.abs(this.beginPathPoint.y-this.endPathPoint.y)<A},enumerable:!1,configurable:!0}),M.prototype.initialize=function(A){this.processContainers(A),this.processSupportSegments(),this.processIntersection(),this.processConnections(),this.processRenderSegments()},M.prototype.setup=function(){this.processRoutingGrid(),this.processRoutingMetrics()},M.prototype.createRoutedPoints=function(A,F,P){var V=this.createAStarContext(A instanceof E.Point?A:A.endPoint,F instanceof E.Point?F:F.startPoint,P);v.AStarCalculator.calculate(V);var H=V.path;return this.addConnectionRoutedPoints(H,A,F),g.RightAngleConnectorRoutingMathOperations.unionPoints(H),H},M.prototype.getIntersectedItems=function(A,F){var P=this;return this.intersectedItemsByPointsContext.getOrAddItems(A,function(N){return P.routingModel.getItems(P.beginConnectionShape,P.endConnectionShape).filter(function(B){return!P.isIgnorableItem(B)&&F(N,B)})})},M.prototype.validateRenderPoints=function(A){this.isInvalidRenderSegments&&(g.RightAngleConnectorRoutingMathOperations.unionPoints(A),c.ModelUtils.validateRenderPointIndexes(this.points,A,0)),c.ModelUtils.skipUnnecessaryRightAngleRenderPoints(A)},M.prototype.processContainers=function(A){if(A&&this.registerIgnorableShape(A),this.beginConnectionShape){var F=this.beginConnectionShape.container;F&&this.registerIgnorableShape(F)}if(this.endConnectionShape){var P=this.endConnectionShape.container;P&&this.registerIgnorableShape(P)}},M.prototype.processSupportSegments=function(){this.supportSegments=this.createSupportSegments()},M.prototype.processIntersection=function(){var A=this,F=this.routingModel.getItems(this.beginConnectionShape,this.endConnectionShape);F&&F.forEach(function(P){var N=P.key,B=P.rectangle;A.cuttingShapesContext.registerShape(N,B,A.supportSegments)?void 0!==A.ignorableItemKeys[N]&&delete A.ignorableItemKeys[N]:(!A.isConnectedByStart(P)&&B.containsPoint(A.beginPoint)||!A.isConnectedByEnd(P)&&B.containsPoint(A.endPoint))&&A.registerIgnorableShape(P)})},M.prototype.processConnections=function(){var A=!1,F=!1;this.beginConnectionShape!==this.endConnectionShape&&(A=this.shapeContainsOtherConnection(this.beginConnectionShape,this.endConnectionShape,this.endPoint),F=this.shapeContainsOtherConnection(this.endConnectionShape,this.beginConnectionShape,this.beginPoint),A&&this.registerIgnorableShape(this.beginConnectionShape),F&&this.registerIgnorableShape(this.endConnectionShape));var P=this.routingModel.shapeMargins;this.beginConnectionSegment=this.createBeginConnectionSegment(P,A),this.endConnectionSegment=this.createEndConnectionSegment(P,F)},M.prototype.processRenderSegments=function(){this.isInvalidRenderSegments=!1,this.renderSegments=this.createRenderSegments();for(var A=0;A<this.renderSegments.length-1;A++)if(this.renderSegments[A].endPoint.equals(this.renderSegments[A+1].startPoint))return void(this.isInvalidRenderSegments=!0)},M.prototype.createGridPoints=function(){var A=[];return this.renderSegments.forEach(function(F){return F.createGridPoints().forEach(function(P){return A.push(P)})}),A},M.prototype.processRoutingGrid=function(){this.routingGrid=this.createGrid()},M.prototype.processRoutingMetrics=function(){this.metrics=this.createAStarMetrics()},M.prototype.createAStarMetrics=function(){return new h.AStarMetrics(new h.TurnDirectionMetrics(this.routingModel.penaltyDescription),new h.IntersectedShapesMetrics(new h.IntersectedShapeMetrics(this.routingModel.penaltyDescription,this.routingModel.shapeMargins)))},M.prototype.createAStarContext=function(A,F,P){return new m.AStarContext(this,A,F,P,this.routingGrid,this.metrics)},M.prototype.addConnectionRoutedPoints=function(A,F,P){F instanceof I.Segment&&A.splice(0,0,F.startPoint),P instanceof I.Segment&&A.push(P.endPoint)},M.prototype.createSupportSegments=function(){var A=this;return this.supportRenderPoints.length<=1?[]:b.GeometryUtils.createSegments(this.supportRenderPoints).filter(function(F){return!A.isCustomSegment(F,A.supportRenderPoints[0],A.supportRenderPoints[A.supportRenderPoints.length-1])})},M.prototype.isCustomSegment=function(A,F,P){var N=A.startPoint;if(N.equals(F))return!1;var B=A.endPoint;return!B.equals(P)&&B.pointIndex-N.pointIndex==1},M.prototype.createRenderSegments=function(){var A=this,F=g.RightAngleConnectorRoutingMathOperations.createUnionSegments(this.supportSegments,function(N,B){return A.shouldCreateSegment(N,B)}),P=F.length-1;return F.map(function(N,B){return new p.ConnectorRenderSegment(B>0?new E.Point(N.startPoint.x,N.startPoint.y):A.beginConnectionSegment,B<P?new E.Point(N.endPoint.x,N.endPoint.y):A.endConnectionSegment,N.startPoint.pointIndex,A.createPreviousCustomSegment(N.startPoint))})},M.prototype.createPreviousCustomSegment=function(A){var F=A.pointIndex-1;return F>=0?new I.Segment(this.points[F].clone(),new E.Point(A.x,A.y)):void 0},M.prototype.shouldCreateSegment=function(A,F){return!A.equals(F)||F.pointIndex>0},M.prototype.isPathNormal=function(A){return A===y.ConnectionPointSide.Undefined||g.RightAngleConnectorRoutingMathOperations.isSegmentNormal(new I.Segment(this.beginPoint,this.endPoint),A===y.ConnectionPointSide.East||A===y.ConnectionPointSide.West)},M.prototype.registerIgnorableShape=function(A){this.ignorableItemKeys[A.key]=!0},M.prototype.isConnectedByStart=function(A){return this.beginConnectionShape&&this.beginConnectionShape.key===A.key&&this.beginConnectionSide!==y.ConnectionPointSide.Undefined},M.prototype.isConnectedByEnd=function(A){return this.endConnectionShape&&this.endConnectionShape.key===A.key&&this.endConnectionSide!==y.ConnectionPointSide.Undefined},M.prototype.getConnectionSide=function(A,F,P){return A?A.getConnectionPointSideByIndex(F,P):y.ConnectionPointSide.Undefined},M.prototype.shapeContainsOtherConnection=function(A,F,P){if(!A)return!1;var N=A.rectangle;return N.containsPoint(P)&&(!F||!F.rectangle.equals(N))},M.prototype.createBeginConnectionSegment=function(A,F){if(this.beginConnectionSide===y.ConnectionPointSide.Undefined)return this.createBeginConnectionSegmentCore(A);if(!F||!this.routingModel.shouldReverseConnections){var P=this.createBeginConnectionSegmentCore(A);if(P instanceof E.Point||!this.routingModel.shouldResizeConnections)return P;for(var N=P.startPoint,B=P.endPoint,V=A;this.hasIntersectedItemsByPoint(B,N,this.beginConnectionShape);)B=(P=this.createBeginConnectionSegmentCore(V/=2)).endPoint;return P}if(!this.endConnectionShape)return this.createBeginConnectionSegmentCore(-A);if(this.isPathNormal(this.endConnectionSide))return this.createBeginConnectionSegmentCore(-A);var H=this.createBeginConnectionSegmentCore(-2*A);return this.isEndConnectionRectanleLineIntersected(H,!1,!0)?this.createBeginConnectionSegmentCore(A):this.createBeginConnectionSegmentCore(-A)},M.prototype.hasIntersectedItemsByPoint=function(A,F,P){var N=this.getIntersectedItems(A,function(B,V){return V.rectangle.containsPoint(B)&&!V.rectangle.containsPoint(F)&&V.key!==P.key});return void 0!==N&&N.length>0},M.prototype.createEndConnectionSegment=function(A,F){if(this.endConnectionSide===y.ConnectionPointSide.Undefined)return this.createEndConnectionSegmentCore(A);if(!F||!this.routingModel.shouldReverseConnections){var P=this.createEndConnectionSegmentCore(A);if(P instanceof E.Point||!this.routingModel.shouldResizeConnections)return P;for(var N=P.endPoint,B=P.startPoint,V=A;this.hasIntersectedItemsByPoint(B,N,this.endConnectionShape);)B=(P=this.createEndConnectionSegmentCore(V/=2)).startPoint;return P}if(!this.beginConnectionShape)return this.createEndConnectionSegmentCore(-A);if(this.isPathNormal(this.beginConnectionSide))return this.createEndConnectionSegmentCore(-A);var H=this.createEndConnectionSegmentCore(-2*A);return this.isBeginConnectionRectanleLineIntersected(H,!0,!1)?this.createEndConnectionSegmentCore(A):this.createEndConnectionSegmentCore(-A)},M.prototype.createBeginConnectionSegmentCore=function(A){return g.RightAngleConnectorRoutingMathOperations.createBeginConnectionSegment(this.beginConnectionSide,this.beginPoint,A,function(F,P){return new E.Point(F,P)})},M.prototype.createEndConnectionSegmentCore=function(A){return g.RightAngleConnectorRoutingMathOperations.createEndConnectionSegment(this.endConnectionSide,this.endPoint,A,function(F,P){return new E.Point(F,P)})},M.prototype.isBeginConnectionRectanleLineIntersected=function(A,F,P){return g.RightAngleConnectorRoutingMathOperations.isConnectionRectanleLineIntersected(this.beginConnectionShape.rectangle,A,this.beginConnectionSide,F,P,function(N,B){return new E.Point(N,B)})},M.prototype.isEndConnectionRectanleLineIntersected=function(A,F,P){return g.RightAngleConnectorRoutingMathOperations.isConnectionRectanleLineIntersected(this.endConnectionShape.rectangle,A,this.endConnectionSide,F,P,function(N,B){return new E.Point(N,B)})},M.prototype.isIgnorableItem=function(A){return void 0!==this.ignorableItemKeys[A.key]},M.prototype.createExtendedShapesBounds=function(){var A=this;return this.routingModel.getItems(this.beginConnectionShape,this.endConnectionShape).map(function(F){return F.rectangle.clone().inflate(A.routingModel.shapeMargins)})},M.prototype.createGrid=function(){return d.RoutingGrid.create(this.createGridPoints(),this.createExtendedShapesBounds(),function(A,F){return new E.Point(A,F)})},M}();D.RightAngleConnectorRoutingContext=k},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorRenderSegment=void 0;var E=w(33),I=w(372),C=function(){function y(g,p,d,c){this.startInfo=g,this.endInfo=p,this.startPointIndex=d,this.previousCustomSegment=c}return Object.defineProperty(y.prototype,"startPathPoint",{get:function(){return this.startInfo instanceof E.Segment?this.startInfo.endPoint:this.startInfo},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"endPathPoint",{get:function(){return this.endInfo instanceof E.Segment?this.endInfo.startPoint:this.endInfo},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"startPoint",{get:function(){return this.startInfo instanceof E.Segment?this.startInfo.startPoint:this.startInfo},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"endPoint",{get:function(){return this.endInfo instanceof E.Segment?this.endInfo.endPoint:this.endInfo},enumerable:!1,configurable:!0}),y.prototype.createGridPoints=function(){var g=[];return this.endInfo instanceof E.Segment?(g.push(this.endInfo.startPoint),g.push(this.endInfo.endPoint)):g.push(this.endInfo),g},y.prototype.createProhibitedSegments=function(){if(this.startInfo instanceof E.Segment){var g=this.createProhibitedSegmentsCore(this.startInfo);return this.endInfo instanceof E.Segment&&(g.addSegment(this.endInfo),g.addExludedPoint(this.endInfo.startPoint)),this.previousCustomSegment&&g.addSegment(this.previousCustomSegment),g}return this.endInfo instanceof E.Segment?((g=this.createProhibitedSegmentsCore(this.endInfo)).addExludedPoint(this.endInfo.startPoint),this.previousCustomSegment&&g.addSegment(this.previousCustomSegment),g):this.previousCustomSegment?this.createProhibitedSegmentsCore(this.previousCustomSegment):void 0},y.prototype.createProhibitedSegmentsCore=function(g){var p=new I.ConnectorProhibitedSegments;return p.addSegment(g),p},y}();D.ConnectorRenderSegment=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorProhibitedSegments=void 0;var E=function(){function I(){this.segments=[],this.exludedPoints={}}return I.prototype.addSegment=function(C){this.segments.push(C)},I.prototype.addExludedPoint=function(C){this.exludedPoints[C.toString()]=C},I.prototype.allowPoint=function(C){if(void 0===this.exludedPoints[C.toString()])for(var y=0;y<this.segments.length;y++)if(this.segments[y].containsPoint(C))return!1;return!0},I}();D.ConnectorProhibitedSegments=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RoutingGrid=void 0;var E=w(41),I=function(){function C(y,g,p){this.verticalGridLines=y,this.horizontalGridLines=g,this.createPoint=p}return C.create=function(y,g,p){var d=this,c=[],h=[],m={},v={};return g.forEach(function(b){d.addLine(b.x,c,m),d.addLine(b.right,c,m),d.addLine(b.y,h,v),d.addLine(b.bottom,h,v)}),y.forEach(function(b){d.addLine(b.x,c,m),d.addLine(b.y,h,v)}),c.sort(function(b,x){return b-x}),h.sort(function(b,x){return b-x}),new C(c,h,p)},C.addLine=function(y,g,p){p[y]||(g.push(y),p[y]=!0)},C.prototype.getNeighborPoints=function(y){var g=[];if(!(this.horizontalGridLines&&this.horizontalGridLines.length&&this.verticalGridLines&&this.verticalGridLines.length))return g;var p=E.SearchUtils.binaryIndexOf(this.verticalGridLines,function(c){return c-y.x});p<0?this.isValidArrayIndex(this.verticalGridLines,p=~p)&&g.push(this.createPoint(this.verticalGridLines[p],y.y)):this.isValidArrayIndex(this.verticalGridLines,p+1)&&g.push(this.createPoint(this.verticalGridLines[p+1],y.y)),this.isValidArrayIndex(this.verticalGridLines,p-1)&&g.push(this.createPoint(this.verticalGridLines[p-1],y.y));var d=E.SearchUtils.binaryIndexOf(this.horizontalGridLines,function(c){return c-y.y});return d<0?this.isValidArrayIndex(this.horizontalGridLines,d=~d)&&g.push(this.createPoint(y.x,this.horizontalGridLines[d])):this.isValidArrayIndex(this.horizontalGridLines,d+1)&&g.push(this.createPoint(y.x,this.horizontalGridLines[d+1])),this.isValidArrayIndex(this.horizontalGridLines,d-1)&&g.push(this.createPoint(y.x,this.horizontalGridLines[d-1])),g},C.prototype.isValidArrayIndex=function(y,g){return y&&g>=0&&g<y.length},C}();D.RoutingGrid=I},function(X,D,w){"use strict";var E,I=this&&this.__extends||(E=function(v,b){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,O){x.__proto__=O}||function(x,O){for(var k in O)O.hasOwnProperty(k)&&(x[k]=O[k])})(v,b)},function(v,b){function x(){this.constructor=v}E(v,b),v.prototype=null===b?Object.create(b):(x.prototype=b.prototype,new x)});Object.defineProperty(D,"__esModule",{value:!0}),D.AStarContext=D.AStarContextBase=void 0;var C=w(375),y=w(376),g=w(377),p=w(33),d=w(160),c=w(3),h=function(){function v(b,x,O){this.startPosition=b,this.targetPosition=x,this.maxStepsCount=O,this.prohibitedPoints={}}return Object.defineProperty(v.prototype,"shouldStartContinue",{get:function(){return this.updatableSet.count>0&&this.stepsCount<this.maxStepsCount},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"shouldFinish",{get:function(){return this.currentNode.position.equals(this.targetPosition)},enumerable:!1,configurable:!0}),v.prototype.start=function(){this.generalSet=new C.SortedQueues(function(x){return x.key}),this.updatableSet=new y.UniqueAStarNodePositions;var b=new g.AStarNode(this.startPosition,this.getDistance(this.startPosition,this.targetPosition));this.currentNode=b,this.generalSet.enqueue(b),this.updatableSet.add(b.position,b),this.stepsCount=0,this.openNode=void 0},v.prototype.startContinue=function(){this.currentNode=this.generalSet.dequeueMin()},v.prototype.endContinue=function(){var b=this,x=this.currentNode.position;this.updatableSet.remove(x),this.addProhibitedPoint(x),this.getNeighborPoints(x).forEach(function(O){var k=b.getPenalty(b.currentNode,O),M=b.updatableSet.getNode(O);if(void 0===M)(M=new g.AStarNode(O,b.getDistance(O,b.targetPosition))).parent=b.currentNode,M.penalty=k,b.generalSet.enqueue(M),b.updatableSet.add(O,M);else if(M.penalty>k){var A=b.generalSet;A.remove(M),M.parent=b.currentNode,M.penalty=k,A.enqueue(M)}b.openNode=M}),this.stepsCount++},v.prototype.finishWithPath=function(){this.path=this.currentNode.getPath()},v.prototype.finishWithoutPath=function(){this.path=[]},v}();D.AStarContextBase=h;var m=function(v){function b(x,O,k,M,A,F){var P=v.call(this,O,k,1e4)||this;return P.routingContext=x,P.startPosition=O,P.targetPosition=k,P.prohibitedSegments=M,P.grid=A,P.metrics=F,P}return I(b,v),b.prototype.addProhibitedPoint=function(x){this.prohibitedPoints[x.toString()]=x},b.prototype.getNeighborPoints=function(x){var O=this;return this.grid.getNeighborPoints(x).filter(function(k){return O.allowPoint(k)})},b.prototype.getDistance=function(x,O){return this.metrics.distance(x,O)},b.prototype.getPenalty=function(x,O){var k=x.parent,M=x.position,A=this.getTurnDirection(k?c.GeometryUtils.createAngle(k.position,M,O):0),F=this.getDistance(M,O),P=new p.Segment(M,O).center;return x.penalty+this.metrics.penalty(F,P,A,this.getIntersectedItems(P))},b.prototype.allowPoint=function(x){return void 0===this.prohibitedPoints[x.toString()]&&(!this.prohibitedSegments||this.prohibitedSegments.allowPoint(x))},b.prototype.getTurnDirection=function(x){return d.RightAngleConnectorRoutingMathOperations.getTurnDirection(x)},b.prototype.getIntersectedItems=function(x){var O=this,k=this.routingContext.shapeMargins;return this.routingContext.getIntersectedItems(x,function(M,A){return O.hasIntersectedItem(M,A,k)})},b.prototype.hasIntersectedItem=function(x,O,k){return!(!this.isIntersectedWithExtendedRectangle(x,O,k)||!this.hasOneShapeConnection(O)&&this.itemContainsConnectionPoints(O))},b.prototype.isIntersectedWithExtendedRectangle=function(x,O,k){return O.rectangle.clone().inflate(k).containsPoint(x)},b.prototype.itemContainsConnectionPoints=function(x){var O=x.rectangle;return O.containsPoint(this.routingContext.beginPoint)&&O.containsPoint(this.routingContext.endPoint)},b.prototype.hasOneShapeConnection=function(x){var O=x.getConnectionPoints();return this.isConnectionPoint(O,this.routingContext.beginPoint)&&this.isConnectionPoint(O,this.routingContext.endPoint)},b.prototype.isConnectionPoint=function(x,O){return x.filter(function(k){return k.equals(O)}).length>0},b}(h);D.AStarContext=m},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.SortedQueues=void 0;var E=w(41),I=function(){function C(y){this.getKey=y,this._itemsArrays={},this._sortedKeys=[]}return Object.defineProperty(C.prototype,"sortedKeys",{get:function(){return this._sortedKeys},enumerable:!1,configurable:!0}),C.prototype.getQueue=function(y){return this._itemsArrays[y]},C.prototype.enqueue=function(y){var g=this.getKey(y);void 0===this._itemsArrays[g]?(this._itemsArrays[g]=[y],this.addSortedKey(g)):this._itemsArrays[g].push(y)},C.prototype.remove=function(y){var g=this.getKey(y),p=this._itemsArrays[g];void 0!==p&&(p.length?p[0]===y?(p.shift(),p.length||this.removeCore(g)):this._itemsArrays[g]=p.filter(function(d){return d!==y}):this.removeCore(g))},C.prototype.dequeueMin=function(){if(this._sortedKeys.length){var y=this._sortedKeys[0],g=this._itemsArrays[y],p=g.shift();return g.length||this.removeCore(y),p}},C.prototype.removeCore=function(y){delete this._itemsArrays[y],this.removeSortedKey(y)},C.prototype.removeSortedKey=function(y){var g=E.SearchUtils.binaryIndexOf(this._sortedKeys,function(p){return p-y});g>=0&&this.sortedKeys.splice(g,1)},C.prototype.addSortedKey=function(y){var g=E.SearchUtils.binaryIndexOf(this._sortedKeys,function(p){return p-y});g<0&&this._sortedKeys.splice(-(g+1),0,y)},C}();D.SortedQueues=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.UniqueAStarNodePositions=void 0;var E=function(){function I(C){void 0===C&&(C=function(y){return y.toString()}),this.getKey=C,this.items={}}return Object.defineProperty(I.prototype,"count",{get:function(){return Object.keys(this.items).length},enumerable:!1,configurable:!0}),I.prototype.getNode=function(C){var y=this.items[this.getKey(C)];return void 0!==y?y.node:void 0},I.prototype.add=function(C,y){var g=this.getKey(C);void 0===this.items[g]&&(this.items[g]={position:C,node:y})},I.prototype.remove=function(C){var y=this.getKey(C);void 0!==this.items[y]&&delete this.items[y]},I}();D.UniqueAStarNodePositions=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.AStarNode=void 0;var E=function(){function I(C,y){this.position=C,this.distance=y,this.penalty=0}return Object.defineProperty(I.prototype,"key",{get:function(){return this.distance+this.penalty},enumerable:!1,configurable:!0}),I.prototype.getPath=function(){for(var C=[],y=this;void 0!==y;)C.splice(0,0,y.position),y=y.parent;return C},I}();D.AStarNode=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.AStarCalculator=void 0;var E=function(){function I(){}return I.calculate=function(C){if(C)for(var y=this.start(C);y;)y=y(C)},I.start=function(C){return C.start(),C.shouldStartContinue?I.startContinue:I.finishWithPath},I.startContinue=function(C){return C.startContinue(),C.shouldFinish?I.finishWithPath:I.endContinue},I.endContinue=function(C){return C.endContinue(),C.shouldStartContinue?I.startContinue:I.finishWithoutPath},I.finishWithPath=function(C){C.finishWithPath()},I.finishWithoutPath=function(C){C.finishWithoutPath()},I}();D.AStarCalculator=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ReloadContentParameters=void 0;var E=function(){function I(){this.isEmpty=!0}return I.prototype.add=function(C,y,g){void 0!==C&&(void 0===this._dataKeys&&(this._dataKeys=[]),Array.isArray(C)?this._dataKeys=this._dataKeys.concat(C):this._dataKeys.push(C)),this._getData=this._getData||y,this._layoutParameters=this._layoutParameters||g,this.isEmpty=!1},I.prototype.clear=function(){this.isEmpty=!0,this._dataKeys=void 0,this._getData=void 0,this._layoutParameters=void 0},Object.defineProperty(I.prototype,"empty",{get:function(){return this.isEmpty},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"dataKeys",{get:function(){return this._dataKeys},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"getData",{get:function(){return this._getData},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"layoutParameters",{get:function(){return this._layoutParameters},enumerable:!1,configurable:!0}),I}();D.ReloadContentParameters=E},function(X,D,w){}])},660:function(fu){fu.exports=function(X){var D={};function w(E){if(D[E])return D[E].exports;var I=D[E]={i:E,l:!1,exports:{}};return X[E].call(I.exports,I,I.exports,w),I.l=!0,I.exports}return w.m=X,w.c=D,w.d=function(E,I,C){w.o(E,I)||Object.defineProperty(E,I,{enumerable:!0,get:C})},w.r=function(E){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},w.t=function(E,I){if(1&I&&(E=w(E)),8&I||4&I&&"object"==typeof E&&E&&E.__esModule)return E;var C=Object.create(null);if(w.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:E}),2&I&&"string"!=typeof E)for(var y in E)w.d(C,y,function(g){return E[g]}.bind(null,y));return C},w.n=function(E){var I=E&&E.__esModule?function(){return E.default}:function(){return E};return w.d(I,"a",I),I},w.o=function(E,I){return Object.prototype.hasOwnProperty.call(E,I)},w.p="",w(w.s=73)}([function(X,D,w){"use strict";w.r(D),w.d(D,"__extends",function(){return I}),w.d(D,"__assign",function(){return C}),w.d(D,"__rest",function(){return y}),w.d(D,"__decorate",function(){return g}),w.d(D,"__param",function(){return p}),w.d(D,"__metadata",function(){return d}),w.d(D,"__awaiter",function(){return c}),w.d(D,"__generator",function(){return h}),w.d(D,"__createBinding",function(){return m}),w.d(D,"__exportStar",function(){return v}),w.d(D,"__values",function(){return b}),w.d(D,"__read",function(){return x}),w.d(D,"__spread",function(){return O}),w.d(D,"__spreadArrays",function(){return k}),w.d(D,"__spreadArray",function(){return M}),w.d(D,"__await",function(){return A}),w.d(D,"__asyncGenerator",function(){return F}),w.d(D,"__asyncDelegator",function(){return P}),w.d(D,"__asyncValues",function(){return N}),w.d(D,"__makeTemplateObject",function(){return B}),w.d(D,"__importStar",function(){return H}),w.d(D,"__importDefault",function(){return W}),w.d(D,"__classPrivateFieldGet",function(){return q}),w.d(D,"__classPrivateFieldSet",function(){return G});var E=function(J,ne){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,ge){ae.__proto__=ge}||function(ae,ge){for(var pe in ge)Object.prototype.hasOwnProperty.call(ge,pe)&&(ae[pe]=ge[pe])})(J,ne)};function I(J,ne){if("function"!=typeof ne&&null!==ne)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");function ae(){this.constructor=J}E(J,ne),J.prototype=null===ne?Object.create(ne):(ae.prototype=ne.prototype,new ae)}var C=function(){return(C=Object.assign||function(J){for(var ne,ae=1,ge=arguments.length;ae<ge;ae++)for(var pe in ne=arguments[ae])Object.prototype.hasOwnProperty.call(ne,pe)&&(J[pe]=ne[pe]);return J}).apply(this,arguments)};function y(J,ne){var ae={};for(var ge in J)Object.prototype.hasOwnProperty.call(J,ge)&&ne.indexOf(ge)<0&&(ae[ge]=J[ge]);if(null!=J&&"function"==typeof Object.getOwnPropertySymbols){var pe=0;for(ge=Object.getOwnPropertySymbols(J);pe<ge.length;pe++)ne.indexOf(ge[pe])<0&&Object.prototype.propertyIsEnumerable.call(J,ge[pe])&&(ae[ge[pe]]=J[ge[pe]])}return ae}function g(J,ne,ae,ge){var pe,le=arguments.length,ce=le<3?ne:null===ge?ge=Object.getOwnPropertyDescriptor(ne,ae):ge;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ce=Reflect.decorate(J,ne,ae,ge);else for(var oe=J.length-1;oe>=0;oe--)(pe=J[oe])&&(ce=(le<3?pe(ce):le>3?pe(ne,ae,ce):pe(ne,ae))||ce);return le>3&&ce&&Object.defineProperty(ne,ae,ce),ce}function p(J,ne){return function(ae,ge){ne(ae,ge,J)}}function d(J,ne){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(J,ne)}function c(J,ne,ae,ge){return new(ae||(ae=Promise))(function(pe,le){function ce(Q){try{K(ge.next(Q))}catch(de){le(de)}}function oe(Q){try{K(ge.throw(Q))}catch(de){le(de)}}function K(Q){var de;Q.done?pe(Q.value):(de=Q.value,de instanceof ae?de:new ae(function(Oe){Oe(de)})).then(ce,oe)}K((ge=ge.apply(J,ne||[])).next())})}function h(J,ne){var ae,ge,pe,le,ce={label:0,sent:function(){if(1&pe[0])throw pe[1];return pe[1]},trys:[],ops:[]};return le={next:oe(0),throw:oe(1),return:oe(2)},"function"==typeof Symbol&&(le[Symbol.iterator]=function(){return this}),le;function oe(K){return function(Q){return function(de){if(ae)throw new TypeError("Generator is already executing.");for(;ce;)try{if(ae=1,ge&&(pe=2&de[0]?ge.return:de[0]?ge.throw||((pe=ge.return)&&pe.call(ge),0):ge.next)&&!(pe=pe.call(ge,de[1])).done)return pe;switch(ge=0,pe&&(de=[2&de[0],pe.value]),de[0]){case 0:case 1:pe=de;break;case 4:return ce.label++,{value:de[1],done:!1};case 5:ce.label++,ge=de[1],de=[0];continue;case 7:de=ce.ops.pop(),ce.trys.pop();continue;default:if(!((pe=(pe=ce.trys).length>0&&pe[pe.length-1])||6!==de[0]&&2!==de[0])){ce=0;continue}if(3===de[0]&&(!pe||de[1]>pe[0]&&de[1]<pe[3])){ce.label=de[1];break}if(6===de[0]&&ce.label<pe[1]){ce.label=pe[1],pe=de;break}if(pe&&ce.label<pe[2]){ce.label=pe[2],ce.ops.push(de);break}pe[2]&&ce.ops.pop(),ce.trys.pop();continue}de=ne.call(J,ce)}catch(Oe){de=[6,Oe],ge=0}finally{ae=pe=0}if(5&de[0])throw de[1];return{value:de[0]?de[1]:void 0,done:!0}}([K,Q])}}}var m=Object.create?function(J,ne,ae,ge){void 0===ge&&(ge=ae),Object.defineProperty(J,ge,{enumerable:!0,get:function(){return ne[ae]}})}:function(J,ne,ae,ge){void 0===ge&&(ge=ae),J[ge]=ne[ae]};function v(J,ne){for(var ae in J)"default"===ae||Object.prototype.hasOwnProperty.call(ne,ae)||m(ne,J,ae)}function b(J){var ne="function"==typeof Symbol&&Symbol.iterator,ae=ne&&J[ne],ge=0;if(ae)return ae.call(J);if(J&&"number"==typeof J.length)return{next:function(){return J&&ge>=J.length&&(J=void 0),{value:J&&J[ge++],done:!J}}};throw new TypeError(ne?"Object is not iterable.":"Symbol.iterator is not defined.")}function x(J,ne){var ae="function"==typeof Symbol&&J[Symbol.iterator];if(!ae)return J;var ge,pe,le=ae.call(J),ce=[];try{for(;(void 0===ne||ne-- >0)&&!(ge=le.next()).done;)ce.push(ge.value)}catch(oe){pe={error:oe}}finally{try{ge&&!ge.done&&(ae=le.return)&&ae.call(le)}finally{if(pe)throw pe.error}}return ce}function O(){for(var J=[],ne=0;ne<arguments.length;ne++)J=J.concat(x(arguments[ne]));return J}function k(){for(var J=0,ne=0,ae=arguments.length;ne<ae;ne++)J+=arguments[ne].length;var ge=Array(J),pe=0;for(ne=0;ne<ae;ne++)for(var le=arguments[ne],ce=0,oe=le.length;ce<oe;ce++,pe++)ge[pe]=le[ce];return ge}function M(J,ne,ae){if(ae||2===arguments.length)for(var ge,pe=0,le=ne.length;pe<le;pe++)!ge&&pe in ne||(ge||(ge=Array.prototype.slice.call(ne,0,pe)),ge[pe]=ne[pe]);return J.concat(ge||Array.prototype.slice.call(ne))}function A(J){return this instanceof A?(this.v=J,this):new A(J)}function F(J,ne,ae){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ge,pe=ae.apply(J,ne||[]),le=[];return ge={},ce("next"),ce("throw"),ce("return"),ge[Symbol.asyncIterator]=function(){return this},ge;function ce(Oe){pe[Oe]&&(ge[Oe]=function(Ae){return new Promise(function(Ne,Qe){le.push([Oe,Ae,Ne,Qe])>1||oe(Oe,Ae)})})}function oe(Oe,Ae){try{(Ne=pe[Oe](Ae)).value instanceof A?Promise.resolve(Ne.value.v).then(K,Q):de(le[0][2],Ne)}catch(Qe){de(le[0][3],Qe)}var Ne}function K(Oe){oe("next",Oe)}function Q(Oe){oe("throw",Oe)}function de(Oe,Ae){Oe(Ae),le.shift(),le.length&&oe(le[0][0],le[0][1])}}function P(J){var ne,ae;return ne={},ge("next"),ge("throw",function(pe){throw pe}),ge("return"),ne[Symbol.iterator]=function(){return this},ne;function ge(pe,le){ne[pe]=J[pe]?function(ce){return(ae=!ae)?{value:A(J[pe](ce)),done:"return"===pe}:le?le(ce):ce}:le}}function N(J){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ne,ae=J[Symbol.asyncIterator];return ae?ae.call(J):(J=b(J),ne={},ge("next"),ge("throw"),ge("return"),ne[Symbol.asyncIterator]=function(){return this},ne);function ge(pe){ne[pe]=J[pe]&&function(le){return new Promise(function(ce,oe){var K,Q,de;K=ce,Q=oe,de=(le=J[pe](le)).done,Promise.resolve(le.value).then(function(Ae){K({value:Ae,done:de})},Q)})}}}function B(J,ne){return Object.defineProperty?Object.defineProperty(J,"raw",{value:ne}):J.raw=ne,J}var V=Object.create?function(J,ne){Object.defineProperty(J,"default",{enumerable:!0,value:ne})}:function(J,ne){J.default=ne};function H(J){if(J&&J.__esModule)return J;var ne={};if(null!=J)for(var ae in J)"default"!==ae&&Object.prototype.hasOwnProperty.call(J,ae)&&m(ne,J,ae);return V(ne,J),ne}function W(J){return J&&J.__esModule?J:{default:J}}function q(J,ne,ae,ge){if("a"===ae&&!ge)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof ne?J!==ne||!ge:!ne.has(J))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===ae?ge:"a"===ae?ge.call(J):ge?ge.value:ne.get(J)}function G(J,ne,ae,ge,pe){if("m"===ge)throw new TypeError("Private method is not writable");if("a"===ge&&!pe)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof ne?J!==ne||!pe:!ne.has(J))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===ge?pe.call(J,ae):pe?pe.value=ae:ne.set(J,ae),ae}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.numberToStringHex=D.numberToStringBin=D.isOdd=D.isEven=D.isNonNullString=D.isString=D.isNumber=D.boolToString=D.boolToInt=D.isDefined=void 0;var E=w(39);D.isDefined=function(I){return null!=I},D.boolToInt=function(I){return I?1:0},D.boolToString=function(I){return I?"1":"0"},D.isNumber=function(I){return"number"==typeof I},D.isString=function(I){return"string"==typeof I},D.isNonNullString=function(I){return!!I},D.isEven=function(I){return I%2!=0},D.isOdd=function(I){return I%2==0},D.numberToStringBin=function(I,C){return void 0===C&&(C=0),E.StringUtils.padLeft(I.toString(2),C,"0")},D.numberToStringHex=function(I,C){return void 0===C&&(C=0),E.StringUtils.padLeft(I.toString(16),C,"0")}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GanttDataObjectNames=D.DataObject=void 0;var E=w(1),I=w(18),C=function(){function y(){this.internalId=I.MathUtils.generateGuid()}return y.prototype.assignFromObject=function(g){(0,E.isDefined)(g)&&(0,E.isDefined)(g.id)&&this.updateId(g.id)},y.prototype.updateId=function(g){this.id=g,this.internalId=String(g)},y}();D.DataObject=C,D.GanttDataObjectNames={task:"task",dependency:"dependency",resource:"resource",resourceAssignment:"assignment"}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DomUtils=void 0;var E=w(10),I=w(1),C=w(18),y=w(39),g=function(){function c(){}return c.clearInnerHtml=function(h){for(;h.firstChild;)h.removeChild(h.firstChild)},c.setStylePosition=function(h,m){h.left=C.MathUtils.round(m.x,3)+"px",h.top=C.MathUtils.round(m.y,3)+"px"},c.setStyleSize=function(h,m){h.width=C.MathUtils.round(m.width,3)+"px",h.height=C.MathUtils.round(m.height,3)+"px"},c.setStyleSizeAndPosition=function(h,m){c.setStylePosition(h,m),c.setStyleSize(h,m)},c.hideNode=function(h){if(h){var m=h.parentNode;m&&m.removeChild(h)}},c.isHTMLElementNode=function(h){return h.nodeType===Node.ELEMENT_NODE},c.isTextNode=function(h){return h.nodeType===Node.TEXT_NODE},c.isElementNode=function(h){return h.nodeType===Node.ELEMENT_NODE},c.isHTMLTableRowElement=function(h){return"TR"===h.tagName},c.isItParent=function(h,m){if(!h||!m)return!1;for(;m;){if(m===h)return!0;if("BODY"===m.tagName)return!1;m=m.parentNode}return!1},c.getParentByTagName=function(h,m){for(m=m.toUpperCase();h;){if("BODY"===h.tagName)return null;if(h.tagName===m)return h;h=h.parentNode}return null},c.getDocumentScrollTop=function(){var h=E.Browser.IE&&"hidden"===c.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return E.Browser.WebKitFamily||E.Browser.Edge||h?E.Browser.MacOSMobilePlatform?window.pageYOffset:E.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},c.getDocumentScrollLeft=function(){var h=E.Browser.IE&&"hidden"===c.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return E.Browser.Edge||h?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:E.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},c.getCurrentStyle=function(h){if(h.currentStyle)return h.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var m=document.defaultView.getComputedStyle(h,null);if(!m&&E.Browser.Firefox&&window.frameElement){for(var v=[],b=window.frameElement;!(m=document.defaultView.getComputedStyle(h,null));)v.push([b,b.style.display]),b.style.setProperty("display","block","important"),b="BODY"===b.tagName?b.ownerDocument.defaultView.frameElement:b.parentNode;m=function(k){if("object"!=typeof k||!I.isDefined(k))return k;var M={};for(var A in k)M[A]=k[A];return M}(m);for(var x=void 0,O=0;x=v[O];O++)x[0].style.display=x[1];document}return m}return window.getComputedStyle(h,null)},c.setFocus=function(h){function m(){try{h.focus(),E.Browser.IE&&document.activeElement!==h&&h.focus()}catch{}}E.Browser.MacOSMobilePlatform?m():setTimeout(function(){m()},100)},c.hasClassName=function(h,m){try{var v=m.split(" "),b=h.classList;if(b){for(var x=v.length-1;x>=0;x--)if(!b.contains(v[x]))return!1}else{var O=h.getAttribute&&h.getAttribute("class");if(!O)return!1;var k=O.split(" ");for(x=v.length-1;x>=0;x--)if(k.indexOf(v[x])<0)return!1}return!0}catch{return!1}},c.addClassName=function(h,m){if(!c.hasClassName(h,m)){var v=h.getAttribute&&h.getAttribute("class");h.setAttribute("class",""===v?m:v+" "+m)}},c.removeClassName=function(h,m){var v=" "+(h.getAttribute&&h.getAttribute("class"))+" ",b=v.replace(" "+m+" "," ");v.length!==b.length&&h.setAttribute("class",y.StringUtils.trim(b))},c.toggleClassName=function(h,m,v){void 0===v?c.hasClassName(h,m)?c.removeClassName(h,m):c.addClassName(h,m):v?c.addClassName(h,m):c.removeClassName(h,m)},c.pxToInt=function(h){return p(h,parseInt)},c.pxToFloat=function(h){return p(h,parseFloat)},c.getAbsolutePositionY=function(h){function m(v){return Math.round(v.getBoundingClientRect().top+c.getDocumentScrollTop())}return h?E.Browser.IE?(v=h,E.Browser.IE&&null===v.parentNode?0:v.getBoundingClientRect().top+c.getDocumentScrollTop()):E.Browser.Firefox&&E.Browser.Version>=3?m(h):E.Browser.Opera?function(v){var b=!0;v&&c.isHTMLTableRowElement(v)&&v.cells.length>0&&(v=v.cells[0]);for(var x=d(v,!1);null!=v;)x+=v.offsetTop,b||(x-=v.scrollTop),v=v.offsetParent,b=!1;return x+document.body.scrollTop}(h):E.Browser.NetscapeFamily&&(!E.Browser.Firefox||E.Browser.Version<3)?function(v){for(var b=d(v,!1),x=!0;null!=v;){if(b+=v.offsetTop,x||null==v.offsetParent||(b-=v.scrollTop),!x&&E.Browser.Firefox){var O=c.getCurrentStyle(v);"DIV"===v.tagName&&"visible"!==O.overflow&&(b+=c.pxToInt(O.borderTopWidth))}x=!1,v=v.offsetParent}return b}(h):E.Browser.WebKitFamily||E.Browser.Edge?m(h):function(v){for(var b=0,x=!0;null!=v;)b+=v.offsetTop,x||null==v.offsetParent||(b-=v.scrollTop),x=!1,v=v.offsetParent;return b}(h):0;var v},c.getAbsolutePositionX=function(h){function m(v){return Math.round(v.getBoundingClientRect().left+c.getDocumentScrollLeft())}return h?E.Browser.IE?(v=h,E.Browser.IE&&null===v.parentNode?0:v.getBoundingClientRect().left+c.getDocumentScrollLeft()):E.Browser.Firefox&&E.Browser.Version>=3?m(h):E.Browser.Opera&&E.Browser.Version<=12?function(v){for(var b=!0,x=d(v,!0);null!=v;)x+=v.offsetLeft,b||(x-=v.scrollLeft),v=v.offsetParent,b=!1;return x+document.body.scrollLeft}(h):E.Browser.NetscapeFamily&&(!E.Browser.Firefox||E.Browser.Version<3)?function(v){for(var b=d(v,!0),x=!0;null!=v;){if(b+=v.offsetLeft,x||null==v.offsetParent||(b-=v.scrollLeft),!x&&E.Browser.Firefox){var O=c.getCurrentStyle(v);"DIV"===v.tagName&&"visible"!==O.overflow&&(b+=c.pxToInt(O.borderLeftWidth))}x=!1,v=v.offsetParent}return b}(h):E.Browser.WebKitFamily||E.Browser.Edge?m(h):function(v){for(var b=0,x=!0;null!=v;)b+=v.offsetLeft,x||null==v.offsetParent||(b-=v.scrollLeft),x=!1,v=v.offsetParent;return b}(h):0;var v},c.isInteractiveControl=function(h){return["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"].indexOf(h.tagName)>-1},c.getClearClientHeight=function(h){return h.offsetHeight-(c.getTopBottomPaddings(h)+c.getVerticalBordersWidth(h))},c.getTopBottomPaddings=function(h,m){var v=m||c.getCurrentStyle(h);return c.pxToInt(v.paddingTop)+c.pxToInt(v.paddingBottom)},c.getVerticalBordersWidth=function(h,m){I.isDefined(m)||(m=E.Browser.IE&&9!==E.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(h):c.getCurrentStyle(h));var v=0;return"none"!==m.borderTopStyle&&(v+=c.pxToFloat(m.borderTopWidth)),"none"!==m.borderBottomStyle&&(v+=c.pxToFloat(m.borderBottomWidth)),v},c.getNodes=function(h,m){for(var v=h.all||h.getElementsByTagName("*"),b=[],x=0;x<v.length;x++){var O=v[x];m(O)&&b.push(O)}return b},c.getChildNodes=function(h,m){for(var v=h.childNodes,b=[],x=0;x<v.length;x++){var O=v[x];m(O)&&b.push(O)}return b},c.getNodesByClassName=function(h,m){if(h.querySelectorAll){var v=h.querySelectorAll("."+m),b=[];return v.forEach(function(x){return b.push(x)}),b}return c.getNodes(h,function(x){return c.hasClassName(x,m)})},c.getChildNodesByClassName=function(h,m){return h.querySelectorAll?function(v,b){for(var x=[],O=0;O<v.length;O++){var k=v[O];b(k)&&x.push(k)}return x}(h.querySelectorAll("."+m),function(v){return v.parentNode===h}):c.getChildNodes(h,function(v){return!!c.isElementNode(v)&&I.isNonNullString(v.className)&&c.hasClassName(v,v.className)})},c.getVerticalScrollBarWidth=function(){if(void 0===c.verticalScrollBarWidth){var h=document.createElement("DIV");h.style.cssText="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 200px; height: 150px; overflow: hidden; box-sizing: content-box",document.body.appendChild(h);var m=document.createElement("P");h.appendChild(m),m.style.cssText="width: 100%; height: 200px;";var v=m.offsetWidth;h.style.overflow="scroll";var b=m.offsetWidth;v===b&&(b=h.clientWidth),c.verticalScrollBarWidth=v-b,document.body.removeChild(h)}return c.verticalScrollBarWidth},c.getHorizontalBordersWidth=function(h,m){I.isDefined(m)||(m=E.Browser.IE&&window.getComputedStyle?window.getComputedStyle(h):c.getCurrentStyle(h));var v=0;return"none"!==m.borderLeftStyle&&(v+=c.pxToFloat(m.borderLeftWidth)),"none"!==m.borderRightStyle&&(v+=c.pxToFloat(m.borderRightWidth)),v},c.getFontFamiliesFromCssString=function(h){return h.split(",").map(function(m){return y.StringUtils.trim(m.replace(/'|"/gi,""))})},c.getInnerText=function(h){if(E.Browser.Safari&&E.Browser.MajorVersion<=5){null===c.html2PlainTextFilter&&((c.html2PlainTextFilter=document.createElement("DIV")).style.width="0",c.html2PlainTextFilter.style.height="0",c.html2PlainTextFilter.style.overflow="visible",c.html2PlainTextFilter.style.display="none",document.body.appendChild(c.html2PlainTextFilter));var m=c.html2PlainTextFilter;m.innerHTML=h.innerHTML,m.style.display="";var v=m.innerText;return m.style.display="none",v}return E.Browser.NetscapeFamily||E.Browser.WebKitFamily||E.Browser.IE&&E.Browser.Version>=9||E.Browser.Edge?h.textContent:h.innerText},c.html2PlainTextFilter=null,c.verticalScrollBarWidth=void 0,c}();function p(c,h){var m=0;if(I.isDefined(c)&&""!==c)try{var v=c.indexOf("px");v>-1&&(m=h(c.substr(0,v)))}catch{}return m}function d(c,h){for(var m=0,v=!0;null!=c&&"BODY"!==c.tagName;){var b=g.getCurrentStyle(c);if("absolute"===b.position)break;v||"DIV"!==c.tagName||""!==b.position&&"static"!==b.position||(m-=h?c.scrollLeft:c.scrollTop),c=c.parentNode,v=!1}return m}D.DomUtils=g},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaEventSource=D.TaskTitlePosition=D.Position=D.ViewType=void 0,(E=D.ViewType||(D.ViewType={}))[E.TenMinutes=0]="TenMinutes",E[E.Hours=1]="Hours",E[E.SixHours=2]="SixHours",E[E.Days=3]="Days",E[E.Weeks=4]="Weeks",E[E.Months=5]="Months",E[E.Quarter=6]="Quarter",E[E.Years=7]="Years",E[E.FiveYears=8]="FiveYears",function(E){E[E.Left=0]="Left",E[E.Top=1]="Top",E[E.Right=2]="Right",E[E.Bottom=3]="Bottom"}(D.Position||(D.Position={})),function(E){E[E.Inside=0]="Inside",E[E.Outside=1]="Outside",E[E.None=2]="None"}(D.TaskTitlePosition||(D.TaskTitlePosition={})),function(E){E[E.TaskArea=0]="TaskArea",E[E.TaskEdit_Frame=1]="TaskEdit_Frame",E[E.TaskEdit_Progress=2]="TaskEdit_Progress",E[E.TaskEdit_Start=3]="TaskEdit_Start",E[E.TaskEdit_End=4]="TaskEdit_End",E[E.TaskEdit_DependencyStart=5]="TaskEdit_DependencyStart",E[E.TaskEdit_DependencyFinish=6]="TaskEdit_DependencyFinish",E[E.Successor_Wrapper=7]="Successor_Wrapper",E[E.Successor_DependencyStart=8]="Successor_DependencyStart",E[E.Successor_DependencyFinish=9]="Successor_DependencyFinish"}(D.TaskAreaEventSource||(D.TaskAreaEventSource={}))},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Point=void 0;var E=function(){function I(C,y){this.x=C,this.y=y}return I.zero=function(){return new I(0,0)},I.fromNumber=function(C){return new I(C,C)},I.prototype.isZero=function(){return 0===this.x&&0===this.y},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.copyFrom=function(C){this.x=C.x,this.y=C.y},I.prototype.clone=function(){return new I(this.x,this.y)},I.prototype.equals=function(C){return this.x===C.x&&this.y===C.y},I.prototype.offset=function(C,y){return this.x+=C,this.y+=y,this},I.prototype.offsetByPoint=function(C){return this.x+=C.x,this.y+=C.y,this},I.prototype.multiply=function(C,y){return this.x*=C,this.y*=y,this},I.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},I.prototype.applyConverter=function(C){return this.x=C(this.x),this.y=C(this.y),this},I.plus=function(C,y){return new I(C.x+y.x,C.y+y.y)},I.minus=function(C,y){return new I(C.x-y.x,C.y-y.y)},I.xComparer=function(C,y){return C.x-y.x},I.yComparer=function(C,y){return C.y-y.y},I.equals=function(C,y){return C.x===y.x&&C.y===y.y},I}();D.Point=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CommandBase=void 0;var E=function(){function I(C){this.control=C}return Object.defineProperty(I.prototype,"modelManipulator",{get:function(){return this.control.modelManipulator},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"history",{get:function(){return this.control.history},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"validationController",{get:function(){return this.control.validationController},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"state",{get:function(){return this._state||(this._state=this.getState()),this._state},enumerable:!1,configurable:!0}),I.prototype.execute=function(){for(var C=[],y=0;y<arguments.length;y++)C[y]=arguments[y];if(!this.state.enabled)return!1;var g=this.executeInternal.apply(this,C);return g&&this.control.barManager.updateItemsState([]),g},I.prototype.isEnabled=function(){return this.control.settings.editing.enabled},I.prototype.executeInternal=function(){for(var C=[],y=0;y<arguments.length;y++)C[y]=arguments[y];throw new Error("Not implemented")},I}();D.CommandBase=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.SimpleCommandState=void 0,D.SimpleCommandState=function(I,C){this.visible=!0,this.enabled=I,this.value=C}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DateTimeUtils=void 0;var E=w(55),I=w(56),C=w(1),y=w(19),g=w(57),p=function(){function d(){}return d.compareDates=function(c,h){return c&&h?h.getTime()-c.getTime():-1},d.areDatesEqual=function(c,h){return 0==this.compareDates(c,h)},d.getMaxDate=function(c,h){return c||h?c?h&&this.compareDates(c,h)>0?h:c:h:null},d.getMinDate=function(c,h){return c||h?c?h?this.compareDates(c,h)>0?c:h:c:h:null},d.getDaysBetween=function(c,h){var m=Math.abs(h.getTime()-c.getTime());return Math.ceil(m/this.msInDay)},d.getWeeksBetween=function(c,h){var m=this.getDaysBetween(c,h),v=Math.floor(m/7);return c.getDay()>h.getDay()&&v++,v},d.getMonthsDifference=function(c,h){var m=this.compareDates(c,h),v=m>=0?c:h,b=m>=0?h:c;return 12*(b.getFullYear()-v.getFullYear())+(b.getMonth()-v.getMonth())},d.getYearsDifference=function(c,h){return Math.abs(h.getFullYear()-c.getFullYear())},d.getDayNumber=function(c){return Math.ceil(c.getTime()/this.msInDay)},d.getDateByDayNumber=function(c){var h=new Date(c*this.msInDay);return h.setHours(0),h.setMinutes(0),h.setSeconds(0),h},d.addDays=function(c,h){return new Date(c.getTime()+h*this.msInDay)},d.checkDayOfMonth=function(c,h){return c==h.getDate()},d.checkDayOfWeek=function(c,h){return c==h.getDay()},d.checkMonth=function(c,h){return c==h.getMonth()},d.checkYear=function(c,h){return c==h.getFullYear()},d.checkDayOfWeekOccurrenceInMonth=function(c,h,m){var v=this.getSpecificDayOfWeekInMonthDates(h,c.getFullYear(),c.getMonth());return this.areDatesEqual(c,m==g.DayOfWeekMonthlyOccurrence.Last?v[v.length-1]:v[m])},d.getFirstDayOfWeekInMonth=function(c,h){return new Date(c,h,1).getDay()},d.getSpecificDayOfWeekInMonthDates=function(c,h,m){for(var v=this.getFirstDayOfWeekInMonth(h,m),b=c>=v?c-v:c+7-v,x=new Array,O=new Date(h,m,b+1);O.getMonth()==m;)x.push(O),O=this.addDays(O,7);return x},d.getSpecificDayOfWeekInMonthDate=function(c,h,m,v){var b=this.getSpecificDayOfWeekInMonthDates(c,h,m);return v==g.DayOfWeekMonthlyOccurrence.Last?b[b.length-1]:b[v]},d.checkValidDayInMonth=function(c,h,m){return!(m<1||m>31||new Date(c,h,m).getMonth()!=h)},d.getNextMonth=function(c,h){return void 0===h&&(h=1),(c+h)%12},d.convertToDate=function(c){if(c instanceof Date)return new Date(c);var h=Date.parse(c);return isNaN(h)?null:new Date(h)},d.convertTimeRangeToDateRange=function(c,h){var m=this.getDateByDayNumber(h),v=m.getFullYear(),b=m.getMonth(),x=m.getDate(),O=c.start,k=new Date(v,b,x,O.hour,O.min,O.sec,O.msec),M=c.end,A=new Date(v,b,x,M.hour,M.min,M.sec,M.msec);return new y.DateRange(k,A)},d.convertToTimeRanges=function(c){var h=this;return c instanceof Array?c.map(function(m){return h.convertToTimeRange(m)}):this.parseTimeRanges(c)},d.convertToTimeRange=function(c){return c?c instanceof I.TimeRange?c:(0,C.isDefined)(c.start)&&(0,C.isDefined)(c.end)?new I.TimeRange(this.convertToTime(c.start),this.convertToTime(c.end)):this.parseTimeRange(c):null},d.convertToTime=function(c){return c?c instanceof E.Time?c:c instanceof Date?this.getTimeGromJsDate(c):this.parseTime(c):null},d.parseTimeRanges=function(c){var h=this;return c?c.split(/;|,/).map(function(m){return h.parseTimeRange(m)}).filter(function(m){return!!m}):null},d.parseTimeRange=function(c){if(!c)return null;var h=c.split("-"),m=h[0],v=h[1];return(0,C.isDefined)(m)&&(0,C.isDefined)(v)?new I.TimeRange(this.parseTime(m),this.parseTime(v)):null},d.parseTime=function(c){if(!c)return null;var h=c.split(":"),m=parseInt(h[0])||0,v=parseInt(h[1])||0,b=parseInt(h[2])||0,x=parseInt(h[3])||0;return new E.Time(m,v,b,x)},d.getTimeGromJsDate=function(c){if(!c)return null;var h=c.getHours(),m=c.getMinutes(),v=c.getSeconds(),b=c.getMilliseconds();return new E.Time(h,m,v,b)},d.caclTimeDifference=function(c,h){return h.getTimeInMilleconds()-c.getTimeInMilleconds()},d.areTimesEqual=function(c,h){return 0==this.caclTimeDifference(c,h)},d.getMaxTime=function(c,h){return c||h?c?h&&this.caclTimeDifference(c,h)>0?h:c:h:null},d.getMinTime=function(c,h){return c||h?c?h?this.caclTimeDifference(c,h)>0?c:h:c:h:null},d.getLastTimeOfDay=function(){return new E.Time(23,59,59,999)},d.msInDay=864e5,d}();D.DateTimeUtils=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.EvtUtils=void 0;var E=w(10),I=w(1),C=w(3),y=w(167),g=function(){function p(){}return p.preventEvent=function(d){d.cancelable&&(d.preventDefault?d.preventDefault():d.returnValue=!1)},p.getEventSource=function(d){return I.isDefined(d)?p.getEventSourceCore(d):null},p.getEventSourceByPosition=function(d){if(!I.isDefined(d))return null;if(!document.elementFromPoint)return p.getEventSourceCore(d);var c=p.getEventX(d)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0),h=p.getEventY(d)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0);return void 0===c||void 0===h?p.getEventSourceCore(d):document.elementFromPoint(c,h)},p.getEventSourceCore=function(d){return d.srcElement?d.srcElement:d.target},p.getMouseWheelEventName=function(){return E.Browser.Safari?"mousewheel":E.Browser.NetscapeFamily&&E.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},p.isLeftButtonPressed=function(d){return!!y.TouchUtils.isTouchEvent(d)||!!(d=E.Browser.IE&&I.isDefined(event)?event:d)&&(E.Browser.IE&&E.Browser.Version<11?!!E.Browser.MSTouchUI||d.button%2==1:E.Browser.WebKitFamily?"pointermove"===d.type||"pointerenter"===d.type||"pointerleave"===d.type?1===d.buttons:1===d.which:E.Browser.NetscapeFamily||E.Browser.Edge||E.Browser.IE&&E.Browser.Version>=11?p.isMoveEventName(d.type)?1===d.buttons:1===d.which:!E.Browser.Opera||0===d.button)},p.isMoveEventName=function(d){return d===y.TouchUtils.touchMouseMoveEventName||d===p.getMoveEventName()},p.getMoveEventName=function(){return window.PointerEvent?"pointermove":E.Browser.TouchUI?"touchmove":"mousemove"},p.preventEventAndBubble=function(d){p.preventEvent(d),d.stopPropagation&&d.stopPropagation(),d.cancelBubble=!0},p.clientEventRequiresDocScrollCorrection=function(){return E.Browser.AndroidDefaultBrowser||E.Browser.AndroidChromeBrowser||!(E.Browser.Safari&&E.Browser.Version<3||E.Browser.MacOSMobilePlatform&&E.Browser.Version<5.1)},p.getEventX=function(d){return y.TouchUtils.isTouchEvent(d)?y.TouchUtils.getEventX(d):d.clientX+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0)},p.getEventY=function(d){return y.TouchUtils.isTouchEvent(d)?y.TouchUtils.getEventY(d):d.clientY+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0)},p.cancelBubble=function(d){d.cancelBubble=!0},p.getWheelDelta=function(d){var c;return c=E.Browser.NetscapeFamily&&E.Browser.MajorVersion<17?-d.detail:E.Browser.Safari?d.wheelDelta:-d.deltaY,E.Browser.Opera&&E.Browser.Version<9&&(c=-c),c},p}();D.EvtUtils=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Browser=void 0;var E=function(){function I(){}return I.IdentUserAgent=function(C,y){void 0===y&&(y=!1);var g=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],p={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(C&&0!==C.length){C=C.toLowerCase(),I.indentPlatformMajorVersion(C);try{for(var d={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"},c="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",h={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+c,Mozilla:"mozilla(?:.*rv:"+c+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+c,Firefox:"firefox(?:/|\\s*)?"+c,Opera:"(?:opera|\\sopr)(?:/|\\s*)?"+c,Opera10:"opera.*\\s*version(?:/|\\s*)?"+c,IE:"msie\\s*"+c,Edge:"edge(?:/|\\s*)?"+c},m=null,v=-1,b=0;b<g.length;b++){var x=g[b],O=new RegExp(h[x],"i").exec(C);if(O&&O.index>=0){if("IE"===m&&v>=11&&"Safari"===x)continue;"Opera10"===(m=x)&&(m="Opera"),v=I.GetBrowserVersion(C,O,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",I.getIECompatibleVersionString()),"Mozilla"===m&&v>=11&&(m="IE")}}m||(m="IE");var k=-1!==v;k||(v=p[m]);var M=null,A=Number.MAX_VALUE;for(var F in d)if(Object.prototype.hasOwnProperty.call(d,F)){var P="!"===F.substr(0,1),N=C.indexOf((P?F.substr(1):F).toLowerCase());N>=0&&(N<A||P)&&(A=P?0:N,M=d[F])}var B=C.toUpperCase().match("SM-[A-Z]"),V=B&&B.length>0;"WinPhone"===M&&v<9&&(v=Math.floor(I.getVersionFromTrident(C,"trident(?:/|\\s*)?"+c))),!y&&"IE"===m&&v>7&&document.documentMode<v&&(v=document.documentMode),"WinPhone"===M&&(v=Math.max(9,v)),M||(M="Win"),M!==d["cpu os"]||k||(v=4),I.fillUserAgentInfo(g,m,v,M,V)}catch{I.fillUserAgentInfo(g,"IE",p.IE,"Win")}}else I.fillUserAgentInfo(g,"IE",p.IE,"Win")},I.GetBrowserVersion=function(C,y,g,p){var d=I.getVersionFromMatches(y);if(p){var c=I.getVersionFromTrident(C,g);if("edge"===p||parseInt(p)===c)return c}return d},I.getIECompatibleVersionString=function(){if(document.compatible)for(var C=0;C<document.compatible.length;C++)if("IE"===document.compatible[C].userAgent&&document.compatible[C].version)return document.compatible[C].version.toLowerCase();return""},I.isTouchEnabled=function(){return I.hasTouchStart()||I.hasMaxTouchPoints()||I.hasMsMaxTouchPoints()},I.hasTouchStart=function(){return"ontouchstart"in window},I.hasMaxTouchPoints=function(){return navigator.maxTouchPoints>0},I.hasMsMaxTouchPoints=function(){return navigator.msMaxTouchPoints>0},I.hasNavigator=function(){return typeof navigator<"u"},I.fillUserAgentInfo=function(C,y,g,p,d){void 0===d&&(d=!1);for(var c=0;c<C.length;c++){var h=C[c];I[h]=h===y}I.Version=Math.floor(10*g)/10,I.MajorVersion=Math.floor(I.Version),I.WindowsPlatform="Win"===p||"WinPhone"===p,I.MacOSMobilePlatform="MacMobile"===p||"Mac"===p&&I.isTouchEnabled(),I.MacOSPlatform="Mac"===p&&!I.MacOSMobilePlatform,I.AndroidMobilePlatform="Android"===p,I.WindowsPhonePlatform="WinPhone"===p,I.WebKitFamily=I.Safari||I.Chrome||I.Opera&&I.MajorVersion>=15,I.NetscapeFamily=I.Netscape||I.Mozilla||I.Firefox,I.WebKitTouchUI=I.MacOSMobilePlatform||I.AndroidMobilePlatform;var m=I.IE&&I.MajorVersion>9&&I.WindowsPlatform&&I.UserAgent.toLowerCase().indexOf("touch")>=0;if(I.MSTouchUI=m||I.Edge&&!!window.navigator.maxTouchPoints,I.TouchUI=I.WebKitTouchUI||I.MSTouchUI,I.MobileUI=I.WebKitTouchUI||I.WindowsPhonePlatform,I.AndroidDefaultBrowser=I.AndroidMobilePlatform&&!I.Chrome,I.AndroidChromeBrowser=I.AndroidMobilePlatform&&I.Chrome,d&&(I.SamsungAndroidDevice=d),I.MSTouchUI){var v=I.UserAgent.toLowerCase().indexOf("arm;")>-1;I.VirtualKeyboardSupported=v||I.WindowsPhonePlatform}else I.VirtualKeyboardSupported=I.WebKitTouchUI;I.fillDocumentElementBrowserTypeClassNames(C)},I.indentPlatformMajorVersion=function(C){var y=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(C);y&&(I.PlaformMajorVersion=y[1])},I.getVersionFromMatches=function(C){var y=-1,g="";return C&&(C[1]&&(g+=C[1],C[2]&&(g+="."+C[2])),""!==g&&(y=parseFloat(g),isNaN(y)&&(y=-1))),y},I.getVersionFromTrident=function(C,y){var g=new RegExp(y,"i").exec(C);return I.getVersionFromMatches(g)+4},I.fillDocumentElementBrowserTypeClassNames=function(C){for(var y="",g=C.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),p=0;p<g.length;p++){var d=g[p];I[d]&&(y+="dx"+d+" ")}y+="dxBrowserVersion-"+I.MajorVersion,typeof document<"u"&&document&&document.documentElement&&(""!==document.documentElement.className&&(y=" "+y),document.documentElement.className+=y,I.Info=y)},I.getUserAgent=function(){return I.hasNavigator()&&navigator.userAgent?navigator.userAgent.toLowerCase():""},I.UserAgent=I.getUserAgent(),I._foo=I.IdentUserAgent(I.UserAgent),I}();D.Browser=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.BaseArguments=void 0,D.BaseArguments=function(I){this.cancel=!1,this.values={},this.key=I}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Size=void 0;var E=function(){function I(C,y){this.width=C,this.height=y}return I.empty=function(){return new I(0,0)},I.fromNumber=function(C){return new I(C,C)},I.initByCommonAction=function(C){var y=function(p){return p.width},g=function(p){return p.height};return new I(C(y,g),C(g,y))},I.prototype.isEmpty=function(){return 0===this.width&&0===this.height},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},I.prototype.offset=function(C,y){return this.width=this.width+C,this.height=this.height+y,this},I.prototype.multiply=function(C,y){return this.width*=C,this.height*=y,this},I.prototype.equals=function(C){return this.width===C.width&&this.height===C.height},I.prototype.clone=function(){return new I(this.width,this.height)},I.prototype.copyFrom=function(C){this.width=C.width,this.height=C.height},I.prototype.applyConverter=function(C){return this.width=C(this.width),this.height=C(this.height),this},I.equals=function(C,y){return C.width===y.width&&C.height===y.height},I}();D.Size=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaStateEventNames=void 0;var E=function(){function I(){}return I.TASK_AREA_CLICK="taskAreaClick",I.TASK_AREA_DBLCLICK="taskAreaDblClick",I.TASK_AREA_SCROLL="taskAreaScroll",I.TASK_AREA_START_MOVE="taskAreaStartMove",I.TASK_AREA_PROCESS_MOVE="taskAreaProcessMove",I.TASK_AREA_END_MOVE="taskAreaEndMove",I.TASK_AREA_ZOOM_IN="taskAreaZoomIn",I.TASK_AREA_ZOOM_OUT="taskAreaZoomOut",I.CONTEXTMENU_SHOW="contextMenuShow",I.CONTEXTMENU_HIDE="contextMenuHide",I.DEPENDENCY_SELECTION="dependencySelection",I.STATE_EXIT="stateExit",I.TASK_SELECTION="taskSelection",I.TASK_EDIT_START="taskEditStart",I.TASK_EDIT_END="taskEditEnd",I.TASK_LEAVE="taskLeave",I.TASK_PROCESS_MOVE="taskProcessMove",I.TASK_END_MOVE="taskEndMove",I.TASK_PROCESS_PROGRESS="taskProcessProgress",I.TASK_END_PROGRESS="taskEndProgress",I.TASK_PROCESS_START="taskProcessStart",I.TASK_CONFIRM_START="taskConfirmStart",I.TASK_PROCESS_END="taskProcessEnd",I.TASK_CONFIRM_END="taskConfirmEnd",I.GET_DEPENDENCY_POINTS="getDependencyPoints",I.DEPENDENCY_START="dependencyStart",I.DEPENDENCY_PROCESS="dependencyProcess",I.DEPENDENCY_END="dependencyEnd",I.TASK_AREA_KEY_DOWN="taskAreaKeyDown",I.GET_POINTERS_INFO="getPointersInfo",I.GET_COORDINATES_REF_POINT="getCoordinatesRefPoint",I}();D.TaskAreaStateEventNames=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.HistoryItem=void 0;var E=function(){function I(C){this.setModelManipulator(C)}return I.prototype.setModelManipulator=function(C){this.modelManipulator=C},Object.defineProperty(I.prototype,"keyUpdaters",{get:function(){return[]},enumerable:!1,configurable:!0}),I}();D.HistoryItem=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DateUtils=void 0;var E=w(4),I=function(){function C(){}var y;return C.getDaysInQuarter=function(g){var p=3*Math.floor(g.getMonth()/3);return[p,p+1,p+2].reduce(function(d,c){return d+C.getDaysInMonth(c,g.getFullYear())},0)},C.getDaysInMonth=function(g,p){return new Date(p,g+1,0).getDate()},C.getOffsetInMonths=function(g,p){return 12*(p.getFullYear()-g.getFullYear())+p.getMonth()-g.getMonth()},C.getOffsetInQuarters=function(g,p){return 4*(p.getFullYear()-g.getFullYear())+Math.floor(p.getMonth()/3)-Math.floor(g.getMonth()/3)},C.getNearestScaleTickDate=function(g,p,d,c){var h=new Date,m=p.start.getTime(),v=p.end.getTime();if(h.setTime(g.getTime()),g.getTime()<m)h.setTime(m);else if(g.getTime()>v)h.setTime(v);else if(this.needCorrectDate(g,m,d,c)){var b=this.getNearestLeftTickTime(g,m,d,c),x=this.getNextTickTime(b,d,c);Math.abs(g.getTime()-b)>Math.abs(g.getTime()-x)?h.setTime(x):h.setTime(b)}return h},C.needCorrectDate=function(g,p,d,c){return c==E.ViewType.Months?g.getTime()!==new Date(g.getFullYear(),g.getMonth(),1).getTime():(g.getTime()-p)%d!=0},C.getNearestLeftTickTime=function(g,p,d,c){return c==E.ViewType.Months?new Date(g.getFullYear(),g.getMonth(),1).getTime():p+Math.floor((g.getTime()-p)/d)*d},C.getNextTickTime=function(g,p,d){if(d==E.ViewType.Months){var c=new Date;return c.setTime(g),c.setMonth(c.getMonth()+1),c.getTime()}return g+p},C.adjustStartDateByViewType=function(g,p,d){switch(void 0===d&&(d=0),p){case E.ViewType.TenMinutes:return new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours());case E.ViewType.SixHours:case E.ViewType.Hours:return new Date(g.getFullYear(),g.getMonth(),g.getDate());case E.ViewType.Days:case E.ViewType.Weeks:return new Date(g.getFullYear(),g.getMonth(),g.getDate()-g.getDay()+d);case E.ViewType.Months:case E.ViewType.Quarter:case E.ViewType.Years:return new Date(g.getFullYear(),0,1);default:return new Date}},C.adjustEndDateByViewType=function(g,p,d){switch(void 0===d&&(d=0),p){case E.ViewType.TenMinutes:return new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours()+1);case E.ViewType.SixHours:case E.ViewType.Hours:return new Date(g.getFullYear(),g.getMonth(),g.getDate()+1);case E.ViewType.Days:case E.ViewType.Weeks:return new Date(g.getFullYear(),g.getMonth(),g.getDate()+7-g.getDay()+d);case E.ViewType.Months:case E.ViewType.Quarter:case E.ViewType.Years:return new Date(g.getFullYear()+1,0,1);default:return new Date}},C.roundStartDate=function(g,p){switch(p){case E.ViewType.TenMinutes:case E.ViewType.Hours:return new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours()-1);case E.ViewType.SixHours:case E.ViewType.Days:return new Date(g.getFullYear(),g.getMonth(),g.getDate()-1);case E.ViewType.Weeks:return new Date(g.getFullYear(),g.getMonth(),g.getDate()-g.getDay());case E.ViewType.Months:return new Date(g.getFullYear(),g.getMonth()-1);case E.ViewType.Quarter:case E.ViewType.Years:return new Date(g.getFullYear()-1,0,1);default:return new Date}},C.getTickTimeSpan=function(g){switch(g){case E.ViewType.TenMinutes:return C.msPerHour/6;case E.ViewType.Hours:return C.msPerHour;case E.ViewType.SixHours:return 6*C.msPerHour;case E.ViewType.Days:return C.msPerDay;case E.ViewType.Weeks:return C.msPerWeek;case E.ViewType.Months:return C.msPerMonth;case E.ViewType.Quarter:return 3*C.msPerMonth;case E.ViewType.Years:return C.msPerYear}},C.getRangeTickCount=function(g,p,d){return d===E.ViewType.Months?this.getRangeTickCountInMonthsViewType(g,p):d===E.ViewType.Quarter?this.getRangeTickCountInQuarterViewType(g,p):C.getRangeMSPeriod(g,p)/C.getTickTimeSpan(d)},C.getRangeMSPeriod=function(g,p){return p.getTime()-C.getDSTDelta(g,p)-g.getTime()},C.getRangeTickCountInMonthsViewType=function(g,p){var d=new Date(g.getFullYear(),g.getMonth(),1),c=new Date(p.getFullYear(),p.getMonth(),1);return C.getOffsetInMonths(d,c)+(p.getTime()-c.getTime())/(C.getDaysInMonth(p.getMonth(),p.getFullYear())*C.msPerDay)-(g.getTime()-d.getTime())/(C.getDaysInMonth(g.getMonth(),g.getFullYear())*C.msPerDay)},C.getRangeTickCountInQuarterViewType=function(g,p){var d=new Date(g.getFullYear(),3*Math.floor(g.getMonth()/3),1),c=new Date(p.getFullYear(),3*Math.floor(p.getMonth()/3),1);return C.getOffsetInQuarters(d,c)+(p.getTime()-c.getTime())/(C.getDaysInQuarter(c)*C.msPerDay)-(g.getTime()-d.getTime())/(C.getDaysInQuarter(d)*C.msPerDay)},C.parse=function(g){return"function"==typeof g?new Date(g()):new Date(g)},C.getOrCreateUTCDate=function(g){var p=g.getTimezoneOffset();return p?new Date(g.valueOf()+6e4*p):g},C.getTimezoneOffsetDiff=function(g,p){return p.getTimezoneOffset()-g.getTimezoneOffset()},C.getDSTDelta=function(g,p){var d=C.getTimezoneOffsetDiff(g,p)*C.msPerMinute;return d>0?d:0},C.getDSTCorrectedTaskEnd=function(g,p){var d=g.getTime()+p,c=C.getDSTDelta(g,new Date(d));return new Date(d+c)},C.msPerMinute=6e4,C.msPerWeek=7*(C.msPerDay=24*(C.msPerHour=36e5)),C.msPerMonth=30*C.msPerDay,C.msPerYear=365*C.msPerDay,C.ViewTypeToScaleMap=((y={})[E.ViewType.TenMinutes]=E.ViewType.Hours,y[E.ViewType.Hours]=E.ViewType.Days,y[E.ViewType.SixHours]=E.ViewType.Days,y[E.ViewType.Days]=E.ViewType.Weeks,y[E.ViewType.Weeks]=E.ViewType.Months,y[E.ViewType.Months]=E.ViewType.Years,y[E.ViewType.Quarter]=E.ViewType.Years,y[E.ViewType.Years]=E.ViewType.FiveYears,y),C}();D.DateUtils=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RenderElementUtils=void 0;var E=function(){function I(){}return I.create=function(C,y,g,p){var d=document.createElement("DIV");for(var c in C.assignToElement(d),g.appendChild(d),p&&(p instanceof Array&&null!==y?p[y]=d:p[C.id]=d),C.attr)Object.prototype.hasOwnProperty.call(C.attr,c)&&d.setAttribute(c,C.attr[c]);for(var c in C.style)Object.prototype.hasOwnProperty.call(C.style,c)&&(d.style[c]=C.style[c]);return d},I.remove=function(C,y,g,p){var d;p instanceof Array&&null!==y?(d=p[y],delete p[y]):(d=p[C.id],delete p[C.id]),d&&d.parentNode==g&&g.removeChild(d)},I.recreate=function(C,y,g,p){C.filter(function(d){return-1===y.indexOf(d)}).forEach(function(d){g(d)}),y.filter(function(d){return-1===C.indexOf(d)}).forEach(function(d){p(d)})},I}();D.RenderElementUtils=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Color=void 0;var E=w(1),I=function(){function C(y){this._num=null,this._opacity=1,this._rgb=null,this.assign(y)}return Object.defineProperty(C.prototype,"opacity",{get:function(){return this._opacity},enumerable:!1,configurable:!0}),C.prototype.hasValue=function(){return(0,E.isDefined)(this._num)||!!this._rgb||0===this._opacity},C.prototype.getValue=function(){return!(0===this._opacity&&!this._rgb)&&((0,E.isDefined)(this._num)?this._num:this._rgb?this.getRBGColor():null)},C.prototype.assign=function(y){this.reset(),"string"==typeof y&&this.assignFromString(y),"number"==typeof y&&(this._num=y),y instanceof Array&&this.assignFromRgbArray(y),y instanceof C&&this.assignFromColor(y)},C.prototype.reset=function(){this._opacity=1,this._num=null,this._rgb=null},C.prototype.assignFromString=function(y){y&&("transparent"===y&&(this._opacity=0),0===y.indexOf("#")&&this.assignFromHexString(y),"rgb"===y.substr(0,3).toLowerCase()&&this.assignFromRgbString(y))},C.prototype.assignFromHexString=function(y){if(4===y.length&&(y="#"+y[1].repeat(2)+y[2].repeat(2)+y[3].repeat(2)),y.length>6){var g=parseInt(y.substr(1,2),16),p=parseInt(y.substr(3,2),16),d=parseInt(y.substr(5,2),16);this._rgb=[g,p,d]}},C.prototype.assignFromRgbString=function(y){var g="rgba"===y.substr(0,4).toLowerCase(),p=y.toLowerCase().match(g?C.rgbaRegexp:C.rgbRegexp);if(p){var d=parseInt(p[1]),c=parseInt(p[2]),h=parseInt(p[3]);this._rgb=[d,c,h],g&&(this._opacity=parseFloat(p[4]))}},C.prototype.assignFromRgbArray=function(y){y&&y.length>2&&(this._rgb=[y[0],y[1],y[2]],(0,E.isDefined)(y[3])&&(this._opacity=y[3]))},C.prototype.assignFromColor=function(y){this._opacity=y._opacity,this._num=y._num,this._rgb=y._rgb},C.prototype.getRBGColor=function(){return this._rgb?this._rgb:[0,0,0]},C.prototype.applyOpacityToBackground=function(y){if(1!==this._opacity){var g=(y instanceof C?y:new C(y)).getValue();if(g instanceof Array){var p=this.opacity,d=Math.round((1-p)*g[0]+p*this._rgb[0]),c=Math.round((1-p)*g[1]+p*this._rgb[1]),h=Math.round((1-p)*g[2]+p*this._rgb[2]);this._rgb=[d,c,h]}}},C.rgbRegexp=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/,C.rgbaRegexp=/rgba?\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,?\s*([0-9]*\.?[0-9]*)\s*\)/,C}();D.Color=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.MathUtils=void 0;var E=w(82),I=function(){function C(){}return C.round=function(y,g){void 0===g&&(g=0);var p=C.powFactor[g];return Math.round(y*p)/p},C.numberCloseTo=function(y,g,p){return void 0===p&&(p=1e-5),Math.abs(y-g)<p},C.restrictValue=function(y,g,p){return p<g&&(p=g),y>p?p:y<g?g:y},C.getRandomInt=function(y,g){return Math.floor(Math.random()*(g-y+1))+y},C.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(y){var g=16*Math.random()|0;return("x"===y?g:3&g|8).toString(16)})},C.powFactor=E.ListUtils.initByCallback(20,function(y){return Math.pow(10,y)}),C.somePrimes=[1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003],C}();D.MathUtils=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DateRange=void 0;var E=function(){function I(C,y){this.start=C,this.end=y}return I.prototype.equal=function(C){var y=!0;return(y=y&&this.start.getTime()===C.start.getTime())&&this.end.getTime()===C.end.getTime()},I}();D.DateRange=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DialogBase=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){var d=null!==g&&g.apply(this,arguments)||this;return d.isApiCall=!1,d._canRefresh=!0,d}return E.__extends(p,g),p.prototype.execute=function(d,c){return void 0===d&&(d=void 0),void 0===c&&(c=!1),this.isApiCall=c,g.prototype.execute.call(this,d)},p.prototype.executeInternal=function(d){return this.options=d,this.showDialog(d)},Object.defineProperty(p.prototype,"canRefresh",{get:function(){return this._canRefresh},enumerable:!1,configurable:!0}),p.prototype.refresh=function(){this.showDialog(this.options)},p.prototype.showDialog=function(d){var c=this,h=this.createParameters(d),m=h.clone();return!!this.onBeforeDialogShow(h)&&(p.activeInstance=this,this.control.showDialog(this.getDialogName(),h,function(v){v&&(c._canRefresh=!1,c.applyParameters(v,m),c._canRefresh=!0)},function(){delete p.activeInstance,c.afterClosing()}),!0)},p.prototype.onBeforeDialogShow=function(d){return!0},p.prototype.applyParameters=function(d,c){return!1},p.prototype.afterClosing=function(){},p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.activeInstance=null,p}(I.CommandBase);D.DialogBase=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceCollection=void 0;var E=w(0),I=w(22),C=w(48),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.createItem=function(){return new C.Resource},p}(I.CollectionBase);D.ResourceCollection=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CollectionBase=void 0;var E=w(1),I=w(80),C=function(){function y(){this._items=new Array,this._isGanttCollection=!0}return y.prototype.add=function(g){if((0,E.isDefined)(g)){if(this.getItemById(g.internalId))throw"The collection item with id ='"+g.internalId+"' already exists.";this._addItem(g)}},y.prototype.addRange=function(g){for(var p=0;p<g.length;p++)this.add(g[p])},y.prototype.remove=function(g){var p=this._items.indexOf(g);p>-1&&p<this._items.length&&this._removeItems(p,1)},y.prototype.clear=function(){this._removeItems(0,this._items.length)},y.prototype.invalidate=function(){delete this._invertedItems},y.prototype._addItem=function(g){this._items.push(g),delete this._invertedItems},y.prototype._removeItems=function(g,p){this._items.splice(g,p),delete this._invertedItems},Object.defineProperty(y.prototype,"items",{get:function(){return this._items.slice()},set:function(g){g&&(this._items=g.slice())},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),y.prototype.getItem=function(g){return g>-1&&g<this._items.length?this._items[g]:null},Object.defineProperty(y.prototype,"invertedItems",{get:function(){var g;return null!==(g=this._invertedItems)&&void 0!==g||(this._invertedItems=this._createInvertedItems()),this._invertedItems},enumerable:!1,configurable:!0}),y.prototype._createInvertedItems=function(){for(var g={},p=0;p<this._items.length;p++){var d=this._items[p];g[d.internalId]=d}return g},y.prototype.getItemById=function(g){return this.invertedItems[g]},y.prototype.getItemByPublicId=function(g){return this._items.filter(function(p){return p.id===g||p.id.toString()===g})[0]},y.prototype.assign=function(g){(0,E.isDefined)(g)&&(this.items=g.items)},y.prototype.importFromObject=function(g){(0,E.isDefined)(g)&&(this.clear(),g._isGanttCollection?this.assign(g):g instanceof Array?this.importFromArray(g):this.createItemFromObjectAndAdd(g))},y.prototype.createItemFromObjectAndAdd=function(g){if((0,E.isDefined)(g)&&Object.keys(g).length>0){var p=this.createItem();p.assignFromObject(g),this.add(p)}},y.prototype.importFromArray=function(g){for(var p=0;p<g.length;p++)this.createItemFromObjectAndAdd(g[p])},y.prototype.importFromJSON=function(g){this.importFromObject(I.GanttJsonUtils.parseJson(g))},y}();D.CollectionBase=C},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.DependencyType=D.TaskType=void 0,(E=D.TaskType||(D.TaskType={}))[E.Regular=0]="Regular",E[E.Summary=1]="Summary",E[E.Milestone=2]="Milestone",function(E){E[E.FS=0]="FS",E[E.SS=1]="SS",E[E.FF=2]="FF",E[E.SF=3]="SF"}(D.DependencyType||(D.DependencyType={}))},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskCommandBase=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){var d=null!==g&&g.apply(this,arguments)||this;return d.isApiCall=!1,d}return E.__extends(p,g),p.prototype.getState=function(){var d=new C.SimpleCommandState(this.isEnabled());return d.visible=this.control.settings.editing.enabled&&!this.control.taskEditController.dependencyId,d},p.prototype.updateParent=function(d){this.validationController._parentAutoCalc&&d&&d.children.length>0&&this.control.validationController.updateParentsIfRequired(d.children[0].task.internalId)},p}(I.CommandBase);D.TaskCommandBase=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GridLayoutCalculator=void 0;var E=w(12),I=w(19),C=w(4),y=w(58),g=w(5),p=w(15),d=w(59),c=w(23),h=w(129),m=w(1),v=function(){function b(){this.tileToDependencyMap=[],this.tileToNoWorkingIntervalsMap=[],this.minLineLength=10,this.resourceMaxWidth=500,this.minTaskWidth=2,this._taskWrapperPoints=Array(),this._taskElementInfoList=Array(),this._scaleCalculator=new h.ScaleCalculator}return b.prototype.setSettings=function(x,O,k,M,A,F,P,N){void 0===P&&(P=0),void 0===N&&(N=0),this.visibleTaskAreaSize=x,this.tickSize=O,this._viewType=F,this.range=M,this.verticalTickCount=A.itemCount,this.viewModel=A,this.elementSizeValues=k,this.taskHeight=k.taskHeight,this.parentTaskHeight=k.parentTaskHeight,this.milestoneWidth=k.milestoneWidth,this.scaleHeight=k.scaleItemHeight,this.arrowSize=new E.Size(k.connectorArrowWidth,k.connectorArrowWidth),this.lineThickness=k.connectorLineThickness,this.minConnectorSpaceFromTask=(this.tickSize.height-this.taskHeight)/2,this.tickTimeSpan=p.DateUtils.getTickTimeSpan(F),this.scrollBarHeight=P,this.createTileToNonWorkingIntervalsMap(),this._scaleCalculator.setSettings(M,F,O,N),this.reset()},Object.defineProperty(b.prototype,"viewType",{get:function(){return this._viewType},set:function(x){this._viewType!==x&&(this._viewType=x,this._scaleCalculator.setViewType(x))},enumerable:!1,configurable:!0}),b.prototype.reset=function(){this._taskWrapperPoints=new Array,this._taskElementInfoList=Array()},b.prototype.resetTaskInfo=function(x){delete this._taskWrapperPoints[x],delete this._taskElementInfoList[x]},b.prototype.getTaskAreaBorderInfo=function(x,O){var k=O?this.getVerticalGridLineHeight():this.getTotalWidth();return this.getGridBorderInfo(x,O,k)},b.prototype.getTotalWidth=function(){return this._scaleCalculator.scaleWidth},b.prototype.getScaleBorderInfo=function(x,O){var k=new y.GridElementInfo;return k.setPosition(new g.Point(this._scaleCalculator.getScaleBorderPosition(x,O),void 0)),k.setSize(new E.Size(0,this.scaleHeight)),k.className="dx-gantt-vb",k},b.prototype.getGridBorderInfo=function(x,O,k){var M=new y.GridElementInfo;return M.setPosition(this.getGridBorderPosition(x,O)),k&&M.setSize(this.getGridBorderSize(O,k)),M.className=O?"dx-gantt-vb":"dx-gantt-hb",M},b.prototype.getGridBorderPosition=function(x,O){var k=new g.Point(void 0,void 0),A=O?this._scaleCalculator.getScaleBorderPosition(x,this.viewType):(x+1)*this.tickSize.height;return O?k.x=A:k.y=A,k},b.prototype.getGridBorderSize=function(x,O){var k=new E.Size(0,0);return x?k.height=O:k.width=O,k},b.prototype.getScaleElementInfo=function(x,O){var k=new y.GridElementInfo,M=this.getScaleItemInfo(x,O);if(M){k.setPosition(M.position),k.setSize(M.size),k.className=this.getScaleItemClassName(O,k,this.getRenderedNoWorkingIntervals(k.position.x));var A=this._scaleCalculator.getScaleItems(O);(0===x||x===A.length-1)&&(k.style.overflowX="hidden",k.style.textOverflow="ellipsis"),k.additionalInfo.range=new I.DateRange(M.start,M.end)}return k},b.prototype.getScaleItemStart=function(x,O){return this._scaleCalculator.getScaleItemAdjustedStart(x,O)},b.prototype.getScaleItemClassName=function(x,O,k){var M="dx-gantt-si";return x.valueOf()==this.viewType.valueOf()&&this.isScaleItemInsideNoWorkingInterval(O,k)&&(M+=" dx-gantt-holiday-scaleItem"),M},b.prototype.getScaleItemInfo=function(x,O){return this._scaleCalculator.getScaleItem(x,O)},b.prototype.getScaleRangesInArea=function(x,O){var k=p.DateUtils.ViewTypeToScaleMap[this.viewType],M=this._scaleCalculator,A=Math.max(M.getScaleIndexByPos(x,k),0),F=M.getScaleIndexByPos(O,k);-1===F&&(F=M.topScaleItems.length-1);var P=Math.max(M.getScaleIndexByPos(x),0),N=M.getScaleIndexByPos(O);return-1===N&&(N=M.bottomScaleItems.length-1),[[A,F],[P,N]]},b.prototype.isScaleItemInsideNoWorkingInterval=function(x,O){for(var k=x.position.x,M=x.position.x+x.size.width,A=0;A<O.length;A++)if(k>=O[A].position.x&&M<=O[A].position.x+O[A].size.width)return!0;return!1},b.prototype.getScaleItemColSpan=function(x){return this._scaleCalculator.getScaleItemColSpan(x)},b.prototype.getTaskWrapperElementInfo=function(x){var O=new y.GridElementInfo;return O.className=this.getTaskWrapperClassName(x),O.setPosition(this.getTaskWrapperPoint(x)),O.setAttribute("task-index",x),O},b.prototype.getTaskWrapperClassName=function(x){var O="dx-gantt-taskWrapper",k=this.getViewItem(x);return k.task.isMilestone()&&!k.isCustom&&(O="dx-gantt-milestoneWrapper"),k.selected&&(O+=" dx-gantt-selectedTask"),O},b.prototype.getTaskWrapperPoint=function(x){if(!(0,m.isDefined)(this._taskWrapperPoints[x])){var O=this.getViewItem(x),k=this.getTaskHeight(x),M=x*this.tickSize.height+(this.tickSize.height-k)/2,A=new g.Point(this.getPosByDate(O.task.start),M);O.task.isMilestone()&&!O.isCustom&&(A.x-=k/2),this._taskWrapperPoints[x]=A}return this._taskWrapperPoints[x].clone()},b.prototype.getTaskElementInfo=function(x,O){if(void 0===O&&(O=!1),!(0,m.isDefined)(this._taskElementInfoList[x])){var k=new y.GridElementInfo,M=this.getTask(x),A=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(x);if(!M.isMilestone()){var F=this.getTaskWidth(x);k.size.width=this.getCorrectedTaskWidthByRange(x,F),k.size.width<F&&(k.additionalInfo.taskCut=!0),O&&(k.size.height=this.getTaskHeight(x))}k.className=this.getTaskClassName(x,k.size.width),M.color&&(k.style.backgroundColor=M.color,A&&(k.style.borderLeftColor=M.color,k.style.borderRightColor=M.color,k.style.borderTopColor=M.color)),this._taskElementInfoList[x]=k}return this._taskElementInfoList[x]},b.prototype.getTaskClassName=function(x,O){var k=b.taskClassName,M=this.getViewItem(x),A=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(x);return M.task.isMilestone()&&!M.isCustom?k+=" "+b.milestoneClassName:(O<=this.elementSizeValues.smallTaskWidth&&(k+=" "+b.smallTaskClassName),A&&(k+=this.getAutoCalcParentTaskClassName(M.task))),k},b.prototype.getAutoCalcParentTaskClassName=function(x){var O=" "+b.parentTaskClassName;return 0==x.progress&&(O+=" dx-gantt-noPrg"),x.progress>=100&&(O+=" dx-gantt-cmpl"),O},b.prototype.getTaskPoint=function(x){var O=this.getTaskWrapperPoint(x);return this.getTask(x).isMilestone()||(O.y+=this.elementSizeValues.taskWrapperTopPadding),O},b.prototype.getTaskSize=function(x){return new E.Size(this.getTaskWidth(x),this.getTaskHeight(x))},b.prototype.getTaskWidth=function(x){var O=this.getViewItem(x);return O.isCustom&&O.size.width?O.size.width:O.task.isMilestone()&&!O.isCustom?this.getTaskHeight(x):Math.max(this.getWidthByDateRange(O.task.start,O.task.end),this.minTaskWidth)},b.prototype.getTaskHeight=function(x){var O=this.getViewItem(x);return O.task.isMilestone()&&!O.isCustom?this.milestoneWidth:this.viewModel.isTaskToCalculateByChildren(O.task.internalId)?this.parentTaskHeight:O.isCustom&&O.size.height?O.size.height:this.taskHeight},b.prototype.getTask=function(x){return this.getViewItem(x)?.task},b.prototype.getViewItem=function(x){return this.viewModel.items[x]},b.prototype.getTaskProgressElementInfo=function(x){var O=new y.GridElementInfo;return O.className=b.taskProgressClassName,O.setSize(this.getTaskProgressSize(x)),O},b.prototype.getTaskProgressSize=function(x){var O=this.getTaskProgressWidth(x);return this.isTaskCutByRange(x)&&(O=this.getCorrectedTaskWidthByRange(x,O)),new E.Size(O,0)},b.prototype.getTaskProgressWidth=function(x){return this.getTaskWidth(x)*this.getTask(x).normalizedProgress/100},b.prototype.getTaskTextElementInfo=function(x,O){var k=new y.GridElementInfo;if(k.className=this.getTaskTextElementClassName(O),!O){var M=this.getTaskPoint(x).x;if(M<this.elementSizeValues.outsideTaskTextDefaultWidth){var A=Math.max(M,0);k.size.width=A,A>0?k.margins.left=-A:k.additionalInfo.hidden=!0}}return k},b.prototype.getTaskTextElementClassName=function(x){return b.taskTitleClassName.concat(" ",x?b.titleInClassName:b.titleOutClassName)},b.prototype.getTaskResourcesWrapperElementInfo=function(x){var O=new y.GridElementInfo,k=this.getTaskSize(x).width;return O.className="dx-gantt-taskResWrapper",O.setPosition(this.getTaskWrapperPoint(x)),O.position.x=O.position.x+k,O},b.prototype.getTaskResourceElementInfo=function(){var x=new y.GridElementInfo;return x.className=b.taskResourceClassName,x},b.prototype.getSelectionElementInfo=function(x){return this.getRowElementInfo(x,"dx-gantt-sel")},b.prototype.getSelectionPosition=function(x){var O=new g.Point(void 0,void 0);return O.y=x*this.tickSize.height,O},b.prototype.getSelectionSize=function(){return new E.Size(this.getTotalWidth(),this.tickSize.height)},b.prototype.getHighlightRowInfo=function(x){return this.getRowElementInfo(x,"dx-gantt-altRow")},b.prototype.getRowElementInfo=function(x,O){var k=new y.GridElementInfo;return k.className=O,k.setPosition(this.getSelectionPosition(x)),k.setSize(this.getSelectionSize()),k},b.prototype.getNoWorkingIntervalInfo=function(x){var O=new y.GridElementInfo;return O.className="dx-gantt-nwi",O.setPosition(this.getNoWorkingIntervalPosition(x.start)),O.setSize(this.getNoWorkingIntervalSize(x)),O},b.prototype.getNoWorkingIntervalPosition=function(x){var O=new g.Point(void 0,void 0);return O.x=this.getPosByDate(x),O},b.prototype.getNoWorkingIntervalSize=function(x){return new E.Size(this.getWidthByDateRange(x.start,x.end),this.getVerticalGridLineHeight())},b.prototype.getVerticalGridLineHeight=function(){return Math.max(this.visibleTaskAreaSize.height-this.scrollBarHeight,this.tickSize.height*this.verticalTickCount)},b.prototype.getConnectorInfo=function(x,O,k,M){for(var A=new Array,F=this.getConnectorPoints(O,k,M),P=0;P<F.length-1;P++)A.push(this.getConnectorLineInfo(x,F[P],F[P+1],0==P||P==F.length-2));return A.push(this.getArrowInfo(x,F,A,O,k)),this.checkAndCorrectConnectorLinesByRange(A),A.filter(function(N){return!!N})},b.prototype.getConnectorLineInfo=function(x,O,k,M){var A=new y.GridElementInfo,F=O.x==k.x;return A.className=this.getConnectorClassName(F),A.setPosition(this.getConnectorPosition(O,k)),A.setSize(this.getConnectorSize(O,k,F,M)),A.setAttribute("dependency-id",x),A},b.prototype.getConnectorClassName=function(x){return x?b.CLASSNAMES.CONNECTOR_VERTICAL:b.CLASSNAMES.CONNECTOR_HORIZONTAL},b.prototype.getConnectorPosition=function(x,O){return new g.Point(Math.min(x.x,O.x),Math.min(x.y,O.y))},b.prototype.getConnectorSize=function(x,O,k,M){var A=new E.Size(0,0),F=M?0:1;return k?A.height=Math.abs(O.y-x.y)+F:A.width=Math.abs(O.x-x.x)+F,A},b.prototype.getArrowInfo=function(x,O,k,M,A){var F=new y.GridElementInfo,P=this.findArrowLineInfo(k,M,A),N=this.getArrowPosition(O,M,A);return F.className=this.getArrowClassName(N),F.setPosition(this.getArrowPoint(P,N)),F.setAttribute("dependency-id",x),F},b.prototype.findArrowLineInfo=function(x,O,k){return x[O<k?x.length-1:0]},b.prototype.getArrowPosition=function(x,O,k){var M=x[O<k?x.length-2:1],A=x[O<k?x.length-1:0];return M.x==A.x?M.y>A.y?C.Position.Top:C.Position.Bottom:M.x>A.x?C.Position.Left:C.Position.Right},b.prototype.getArrowClassName=function(x){var O=b.arrowClassName;switch(x){case C.Position.Left:O=O.concat(" ",b.leftArrowClassName);break;case C.Position.Top:O=O.concat(" ",b.topArrowClassName);break;case C.Position.Right:O=O.concat(" ",b.rightArrowClassName);break;case C.Position.Bottom:O=O.concat(" ",b.bottomArrowClassName)}return O},b.prototype.getArrowPositionByClassName=function(x){return x.indexOf(b.leftArrowClassName)>-1?C.Position.Left:x.indexOf(b.topArrowClassName)>-1?C.Position.Top:x.indexOf(b.rightArrowClassName)>-1?C.Position.Right:x.indexOf(b.bottomArrowClassName)>-1?C.Position.Bottom:void 0},b.prototype.getArrowPoint=function(x,O){return new g.Point(this.getArrowX(x,O),this.getArrowY(x,O))},b.prototype.getArrowX=function(x,O){switch(O){case C.Position.Left:return x.position.x-this.arrowSize.width/2;case C.Position.Right:return x.position.x+x.size.width-this.arrowSize.width/2;case C.Position.Top:case C.Position.Bottom:return x.position.x-(this.arrowSize.width-this.lineThickness)/2}},b.prototype.getArrowY=function(x,O){switch(O){case C.Position.Top:return x.position.y-this.arrowSize.height/2;case C.Position.Bottom:return x.position.y+x.size.height-this.arrowSize.height/2;case C.Position.Left:case C.Position.Right:return x.position.y-(this.arrowSize.height-this.lineThickness)/2}},b.prototype.getPosByDate=function(x){return this.getWidthByDateRange(this.range.start,x)},b.prototype.getWidthByDateRange=function(x,O){return p.DateUtils.getRangeTickCount(x,O,this.viewType)*this.tickSize.width},b.prototype.getDateByPos=function(x){if(this.viewType===C.ViewType.Months||this.viewType===C.ViewType.Quarter)return this.getDateByPosInMonthBasedViewTypes(x);var O=x/this.tickSize.width,k=new Date(this.range.start);return p.DateUtils.getDSTCorrectedTaskEnd(k,O*this.tickTimeSpan)},b.prototype.getDateByPosInMonthBasedViewTypes=function(x){return this._scaleCalculator.getDateInScale(x)},b.prototype.getConnectorPoints=function(x,O,k){switch(k){case c.DependencyType.FS:return this.getFinishToStartConnectorPoints(x,O);case c.DependencyType.SF:return this.getStartToFinishConnectorPoints(x,O);case c.DependencyType.SS:return this.getStartToStartConnectorPoints(x,O);case c.DependencyType.FF:return this.getFinishToFinishConnectorPoints(x,O);default:return new Array}},b.prototype.getFinishToStartConnectorPoints=function(x,O){return x<O?this.getTask(x).end<=this.getTask(O).start?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide(x,O,!1):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(x,O,!1):this.getTask(x).end<=this.getTask(O).start?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide(O,x,!1):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(O,x,!0)},b.prototype.getFinishToFinishConnectorPoints=function(x,O){return x<O?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(x,O):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(O,x)},b.prototype.getStartToStartConnectorPoints=function(x,O){return x<O?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(x,O):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(O,x)},b.prototype.getStartToFinishConnectorPoints=function(x,O){return x<O?this.getTask(x).start>=this.getTask(O).end?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide(x,O,!0):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(x,O,!1):this.getTask(x).start>=this.getTask(O).end?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide(O,x,!0):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(O,x,!0)},b.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide=function(x,O,k){var M=new Array,A=this.getTaskPoint(x),F=this.getTaskPoint(O),P=this.getTaskRightCenter(A,x),N=this.getTask(O).isMilestone(),B=this.getTaskTopCenter(F,O),V=this.getHorizontalIndentFromTaskEdge(O,k);return M.push(new g.Point(Math.floor(P.x),Math.floor(P.y))),M.push(new g.Point(Math.floor(N?B.x:F.x+V),Math.floor(M[0].y))),M.push(new g.Point(Math.floor(M[1].x),Math.floor(B.y))),M},b.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide=function(x,O){var k=new Array,M=this.getTaskPoint(x),A=this.getTaskPoint(O),F=this.getTaskRightCenter(M,x),P=this.getTaskRightCenter(A,O);return k.push(new g.Point(Math.floor(F.x),Math.floor(F.y))),k.push(new g.Point(Math.floor(Math.max(F.x,P.x)+this.minLineLength),Math.floor(k[0].y))),k.push(new g.Point(Math.floor(k[1].x),Math.floor(P.y))),k.push(new g.Point(Math.floor(P.x),Math.floor(P.y))),k},b.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide=function(x,O,k){var M=new Array,A=this.getTaskPoint(x),F=this.getTaskPoint(O),P=this.getTaskRightCenter(A,x),N=this.getTaskBottomCenter(A,x),B=this.getTaskLeftCenter(F,O),V=this.getTaskTopCenter(F,O),H=this.getViewItem(k?x:O),W=H.isCustom?(this.tickSize.height-H.size.height)/2:this.minConnectorSpaceFromTask;return M.push(new g.Point(Math.floor(P.x),Math.floor(P.y))),M.push(new g.Point(Math.floor(M[0].x+this.minLineLength),Math.floor(M[0].y))),M.push(new g.Point(Math.floor(M[1].x),Math.floor(k?N.y+W:V.y-W))),M.push(new g.Point(Math.floor(B.x-this.minLineLength),Math.floor(M[2].y))),M.push(new g.Point(Math.floor(M[3].x),Math.floor(B.y))),M.push(new g.Point(Math.floor(B.x),Math.floor(B.y))),M},b.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide=function(x,O,k){var M=new Array,A=this.getTaskPoint(x),F=this.getTaskPoint(O),P=this.getTaskBottomCenter(A,x),N=this.getTask(x).isMilestone(),B=this.getTaskRightCenter(F,O),V=this.getHorizontalIndentFromTaskEdge(x,k);return M.push(new g.Point(Math.floor(N?P.x:A.x+V),Math.floor(P.y))),M.push(new g.Point(Math.floor(M[0].x),Math.floor(B.y))),M.push(new g.Point(Math.floor(B.x),Math.floor(B.y))),M},b.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide=function(x,O,k){var M=new Array,A=this.getTaskPoint(x),F=this.getTaskPoint(O),P=this.getTaskBottomCenter(A,x),N=this.getTask(x).isMilestone(),B=this.getTaskLeftCenter(F,O),V=this.getHorizontalIndentFromTaskEdge(x,k);return M.push(new g.Point(Math.floor(N?P.x:A.x+V),Math.floor(P.y))),M.push(new g.Point(Math.floor(M[0].x),Math.floor(B.y))),M.push(new g.Point(Math.floor(B.x),Math.floor(B.y))),M},b.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide=function(x,O,k){var M=new Array,A=this.getTaskPoint(x),F=this.getTaskPoint(O),P=this.getTaskLeftCenter(A,x),N=this.getTaskTopCenter(F,O),B=this.getTask(O).isMilestone(),V=this.getHorizontalIndentFromTaskEdge(O,k);return M.push(new g.Point(Math.floor(P.x),Math.floor(P.y))),M.push(new g.Point(Math.floor(B?N.x:F.x+V),Math.floor(M[0].y))),M.push(new g.Point(Math.floor(M[1].x),Math.floor(N.y))),M},b.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide=function(x,O,k){var M=new Array,A=this.getTaskPoint(x),F=this.getTaskPoint(O),P=this.getTaskLeftCenter(A,x),N=this.getTaskBottomCenter(A,x),B=this.getTaskRightCenter(F,O),V=this.getTaskTopCenter(F,O),H=this.getViewItem(k?x:O),W=H.isCustom?(this.tickSize.height-H.size.height)/2:this.minConnectorSpaceFromTask;return M.push(new g.Point(Math.floor(P.x),P.y)),M.push(new g.Point(Math.floor(M[0].x-this.minLineLength),M[0].y)),M.push(new g.Point(Math.floor(M[1].x),Math.floor(k?N.y+W:V.y-W))),M.push(new g.Point(Math.floor(B.x+this.minLineLength),Math.floor(M[2].y))),M.push(new g.Point(Math.floor(M[3].x),Math.floor(B.y))),M.push(new g.Point(Math.floor(B.x),Math.floor(B.y))),M},b.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide=function(x,O){var k=new Array,M=this.getTaskPoint(x),A=this.getTaskPoint(O),F=this.getTaskLeftCenter(M,x),P=this.getTaskLeftCenter(A,O);return k.push(new g.Point(Math.floor(F.x),Math.floor(F.y))),k.push(new g.Point(Math.floor(Math.min(F.x,P.x)-this.minLineLength),Math.floor(k[0].y))),k.push(new g.Point(Math.floor(k[1].x),Math.floor(P.y))),k.push(new g.Point(Math.floor(P.x),Math.floor(P.y))),k},b.prototype.getTaskSidePoints=function(x){var O=this.getTaskPoint(x);return[this.getTaskLeftCenter(O,x),this.getTaskTopCenter(O,x),this.getTaskRightCenter(O,x),this.getTaskBottomCenter(O,x)]},b.prototype.getTaskLeftCenter=function(x,O){return new g.Point(x.x-this.getTaskEdgeCorrection(O),x.y+this.getTaskHeight(O)/2)},b.prototype.getTaskRightCenter=function(x,O){return new g.Point(x.x+this.getTaskWidth(O)+this.getTaskEdgeCorrection(O),x.y+this.getTaskHeight(O)/2)},b.prototype.getTaskTopCenter=function(x,O){return new g.Point(x.x+this.getTaskWidth(O)/2,x.y-this.getTaskEdgeCorrection(O))},b.prototype.getTaskBottomCenter=function(x,O){return new g.Point(x.x+this.getTaskWidth(O)/2,x.y+this.getTaskHeight(O)+this.getTaskEdgeCorrection(O))},b.prototype.getTaskEdgeCorrection=function(x){var O=this.getViewItem(x);return O.task.isMilestone()&&!O.isCustom?this.getTaskHeight(x)*(Math.sqrt(2)-1)/2:0},b.prototype.getHorizontalIndentFromTaskEdge=function(x,O){void 0===O&&(O=!1);var k=this.getTaskWidth(x),M=this.minLineLength<k/3?this.minLineLength:.2*k;return O?k-M:M},b.prototype.getRenderedRowColumnIndices=function(x,O){for(var k=O?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width,M=O?this.getFirstVisibleGridCellIndex(x,this.tickSize.height):this.getFirstScaleVisibleIndex(x),A=O?this.getLastVisibleGridCellIndex(x,this.tickSize.height,k,this.verticalTickCount):this.getLastScaleVisibleIndex(x),F=new Array,P=M;P<=A;P++)F.push(P);return F},b.prototype.getRenderedScaleItemIndices=function(x,O){for(var k=x===this.viewType,M=this._scaleCalculator,A=O[0],F=O[O.length-1],P=k?A:M.getTopScaleIndexByBottomIndex(A),N=k?F:M.getTopScaleIndexByBottomIndex(F),B=new Array,V=P;V<=N;V++)B.push(V);return B},b.prototype.getFirstScaleVisibleIndex=function(x){return this._scaleCalculator.getFirstScaleIndexForRender(x)},b.prototype.getLastScaleVisibleIndex=function(x){return this._scaleCalculator.getLastScaleIndexForRender(x+this.visibleTaskAreaSize.width)},b.prototype.getFirstVisibleGridCellIndex=function(x,O){var k=Math.floor(x/O);return Math.max(k-10,0)},b.prototype.getLastVisibleGridCellIndex=function(x,O,k,M){var A=Math.floor((x+k)/O);return Math.min(A+10,M-1)},b.prototype.createTileToConnectorLinesMap=function(){this.tileToDependencyMap=[];for(var x=0;x<this.viewModel.items.length;x++)for(var O=0;O<this.viewModel.items[x].dependencies.length;O++)this.createConnecotInfo(this.viewModel.items[x].dependencies[O],this.viewModel.items[x].visibleIndex)},b.prototype.updateTileToConnectorLinesMap=function(x){this.tileToDependencyMap.forEach(function(A,F,P){P[F]=A.filter(function(N){return N.attr["dependency-id"]!=x})});var O=[],k=this.viewModel.items.filter(function(A){return A.dependencies.filter(function(F){return F.id==x}).length>0})[0];if(k){var M=k.dependencies.filter(function(A){return A.id===x})[0];O=this.createConnecotInfo(M,k.visibleIndex)}return O},b.prototype.createConnecotInfo=function(x,O){var k=this,P=this.getConnectorInfo(x.id,x.predecessor.visibleIndex,O,x.type);return P.forEach(function(N){k.addElementInfoToTileMap(N,k.tileToDependencyMap,!0)}),P},b.prototype.createTileToNonWorkingIntervalsMap=function(){this.tileToNoWorkingIntervalsMap=[];for(var x=0;x<this.viewModel.noWorkingIntervals.length;x++){var O=this.getAdjustedNoWorkingInterval(this.viewModel.noWorkingIntervals[x]);if(O){var k=this.getNoWorkingIntervalInfo(O);this.addElementInfoToTileMap(k,this.tileToNoWorkingIntervalsMap,!1)}}},b.prototype.getAdjustedNoWorkingInterval=function(x){return x.end.getTime()-x.start.getTime()<this.tickTimeSpan-1?null:new I.DateRange(p.DateUtils.getNearestScaleTickDate(x.start,this.range,this.tickTimeSpan,this.viewType),p.DateUtils.getNearestScaleTickDate(x.end,this.range,this.tickTimeSpan,this.viewType))},b.prototype.addElementInfoToTileMap=function(x,O,k){var M=k?x.position.y:x.position.x,A=k?x.size.height:x.size.width,F=2*(k?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width);if(F>0)for(var P=Math.floor(M/F),N=Math.floor((M+A)/F),B=P;B<=N;B++)O[B]||(O[B]=new Array),O[B].push(x)},b.prototype.getRenderedConnectorLines=function(x){return this.getElementsInRenderedTiles(this.tileToDependencyMap,!0,x)},b.prototype.getRenderedNoWorkingIntervals=function(x){return this.getElementsInRenderedTiles(this.tileToNoWorkingIntervalsMap,!1,x)},b.prototype.getRenderedStripLines=function(x){var O=new Array,k=x.stripLines.map(function(V){return V.clone()});x.showCurrentTime&&k.push(new d.StripLine(new Date,null,x.currentTimeTitle,x.currentTimeCssClass,!0));for(var M=0,A=void 0;A=k[M];M++){var F=p.DateUtils.parse(A.start),P=A.end?p.DateUtils.parse(A.end):null;if(F>=this.range.start&&F<=this.range.end||P&&P>=this.range.start&&P<=this.range.end){var N=F>this.range.start?F:this.range.start,B=new y.GridElementInfo;B.size.height=this.getVerticalGridLineHeight(),B.position.x=this.getPosByDate(N),B.size.width=P?this.getWidthByDateRange(N,P<this.range.end?P:this.range.end):0,B.className=A.isCurrent?"dx-gantt-tc":P?"dx-gantt-ti":"dx-gantt-tm",B.className+=A.cssClass?" "+A.cssClass:"",B.attr.title=A.title,O.push(B)}}return O},b.prototype.getElementsInRenderedTiles=function(x,O,k){var M=new Array,A=O?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width;if(A>0)for(var F=Math.floor(k/(2*A)),P=Math.floor((k+A)/(2*A)),N=F;N<=P;N++)x[N]&&x[N].forEach(function(B){-1===M.indexOf(B)&&M.push(B)});return M},b.prototype.isTaskInRenderedRange=function(x){var O=this.getViewItem(x),k=this.getTaskPoint(x);return O.task.isMilestone()?k.x+this.getTaskWidth(x)<this.getTotalWidth():k.x<this.getTotalWidth()},b.prototype.isTaskCutByRange=function(x){return!!this.getTaskElementInfo(x).additionalInfo.taskCut},b.prototype.checkAndCorrectElementDisplayByRange=function(x){x.parentElement.offsetLeft+x.offsetLeft+x.offsetWidth>this.getTotalWidth()&&(x.style.display="none")},b.prototype.checkAndCorrectArrowElementDisplayByRange=function(x){x.offsetLeft+x.offsetWidth>this.getTotalWidth()&&(x.style.display="none")},b.prototype.checkAndCorrectConnectorLinesByRange=function(x){if(x?.length)for(var O=this.getTotalWidth(),k=0;k<x.length;k++){var M=x[k],A=!M.size.width;M.position.x>O?delete x[k]:!A&&M.position.x+M.size.width>O&&(M.size.width=O-M.position.x)}},b.prototype.getCorrectedTaskWidthByRange=function(x,O){var k=this.getTotalWidth()-this.getTaskPoint(x).x;return Math.min(k,O)},b.taskClassName=(b.dxGanttPrefix="dx-gantt-")+"task",b.milestoneClassName=b.dxGanttPrefix+"milestone",b.smallTaskClassName=b.dxGanttPrefix+"smallTask",b.parentTaskClassName=b.dxGanttPrefix+"parent",b.taskProgressClassName=b.dxGanttPrefix+"tPrg",b.taskTitleClassName=b.dxGanttPrefix+"taskTitle",b.titleInClassName=b.dxGanttPrefix+"titleIn",b.titleOutClassName=b.dxGanttPrefix+"titleOut",b.taskResourceClassName=b.dxGanttPrefix+"taskRes",b.arrowClassName=b.dxGanttPrefix+"arrow",b.leftArrowClassName=b.dxGanttPrefix+"LA",b.topArrowClassName=b.dxGanttPrefix+"TA",b.rightArrowClassName=b.dxGanttPrefix+"RA",b.bottomArrowClassName=b.dxGanttPrefix+"BA",b.CLASSNAMES={CONNECTOR_VERTICAL:"dx-gantt-conn-v",CONNECTOR_HORIZONTAL:"dx-gantt-conn-h"},b}();D.GridLayoutCalculator=v},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.StyleDef=void 0;var E=w(1),I=w(3),C=w(17),y=w(35),g=w(36),p=w(62),d=function(){function c(h){this._fillColor=new C.Color,this._textColor=new C.Color,this._lineColor=new C.Color,this._cellWidth=new p.Width,this._cellPadding=new g.Margin,h&&this.assign(h)}return Object.defineProperty(c.prototype,"font",{get:function(){return this._fontFamily},set:function(h){this._fontFamily=y.PredefinedStyles.getPredefinedStringOrUndefined(h,y.PredefinedStyles.fontFamilies)||h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(h){this._fontStyle=y.PredefinedStyles.getPredefinedStringOrUndefined(h,y.PredefinedStyles.fontStyles)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"fontSize",{get:function(){return this._fontSize},set:function(h){this._fontSize=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"overflow",{get:function(){return this._overflow},set:function(h){this._overflow=y.PredefinedStyles.getPredefinedStringOrUndefined(h,y.PredefinedStyles.overflow)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"halign",{get:function(){return this._horizontalAlign},set:function(h){this._horizontalAlign=y.PredefinedStyles.getPredefinedStringOrUndefined(h,y.PredefinedStyles.horizontalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"valign",{get:function(){return this._verticalAlign},set:function(h){this._verticalAlign=y.PredefinedStyles.getPredefinedStringOrUndefined(h,y.PredefinedStyles.verticalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"fillColor",{get:function(){return this._fillColor},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"textColor",{get:function(){return this._textColor},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"lineColor",{get:function(){return this._lineColor},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"cellWidth",{get:function(){return this._cellWidth},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"cellPadding",{get:function(){return this._cellPadding},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(h){this._lineWidth=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"minCellWidth",{get:function(){return this._minCellWidth},set:function(h){this._minCellWidth=h},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"minCellHeight",{get:function(){return this._minCellHeight},set:function(h){this._minCellHeight=h},enumerable:!1,configurable:!0}),c.prototype.assign=function(h){h&&(h instanceof c?((0,E.isDefined)(h.font)&&(this.font=h.font),(0,E.isDefined)(h.fontStyle)&&(this.fontStyle=h.fontStyle),(0,E.isDefined)(h.overflow)&&(this.overflow=h.overflow),(0,E.isDefined)(h.halign)&&(this.halign=h.halign),(0,E.isDefined)(h.valign)&&(this.valign=h.valign),(0,E.isDefined)(h.fontSize)&&(this.fontSize=h.fontSize),(0,E.isDefined)(h.lineWidth)&&(this.lineWidth=h.lineWidth),(0,E.isDefined)(h.minCellWidth)&&(this.minCellWidth=h.minCellWidth),(0,E.isDefined)(h.minCellHeight)&&(this.minCellHeight=h.minCellHeight),(0,E.isDefined)(h.fillColor)&&this.fillColor.assign(h.fillColor),(0,E.isDefined)(h.textColor)&&this.textColor.assign(h.textColor),(0,E.isDefined)(h.lineColor)&&this.lineColor.assign(h.lineColor),(0,E.isDefined)(h.cellWidth)&&this.cellWidth.assign(h.cellWidth),(0,E.isDefined)(h.cellPadding)&&this.cellPadding.assign(h.cellPadding)):this.assignFromCssStyle(h))},c.prototype.assignFromCssStyle=function(h){if(h.fontFamily&&(this.font=this.getPdfFontFamily(h)),this.fontStyle=this.getPdfFontStyle(h),(0,E.isDefined)(h.fontSize)&&(this.fontSize=this.getPfrFontSize(h.fontSize)),h.textAlign&&(this.halign=h.textAlign),h.verticalAlign&&(this.valign=h.verticalAlign),(0,E.isDefined)(h.borderWidth)&&(this.lineWidth=h.borderWidth),(0,E.isDefined)(h.cellWidth)&&this.cellWidth.assign(h.cellWidth),(0,E.isDefined)(h.width)&&(this.minCellWidth="number"==typeof h.width?h.width:I.DomUtils.pxToInt(h.width)),(0,E.isDefined)(h.height)&&(this.minCellHeight="number"==typeof h.height?h.height:I.DomUtils.pxToInt(h.height)),h.backgroundColor&&this.fillColor.assign(h.backgroundColor),h.color&&this.textColor.assign(h.color),h.borderColor&&this.lineColor.assign(h.borderColor),(0,E.isDefined)(h.width)&&this.cellWidth.assign(h.width),this.assignPaddingFromCss(h),(0,E.isDefined)(h.extraLeftPadding)){var m=this._cellPadding.left;this._cellPadding.left=m?m+h.extraLeftPadding:h.extraLeftPadding}},c.prototype.getPdfFontStyle=function(h){var m=h.fontWeight,v=parseInt(m),b="bold"===m||!isNaN(v)&&v>500,x=b?"bold":"normal";return"italic"===h.fontStyle&&(x=b?"bolditalic":"italic"),x},c.prototype.getPdfFontFamily=function(h){var m=h.fontFamily&&h.fontFamily.toLowerCase(),v="helvetica";return m.indexOf("times")>-1&&(v="times"),m.indexOf("courier")>-1&&(v="courier"),v},c.prototype.getPfrFontSize=function(h){var m=I.DomUtils.pxToInt(h);if(!isNaN(m))return Math.ceil(m/96*72)},c.prototype.assignPaddingFromCss=function(h){if(h.padding)this._cellPadding.assign(h.padding);else{var m={};h.paddingLeft&&(m.left=I.DomUtils.pxToInt(h.paddingLeft)),h.paddingTop&&(m.top=I.DomUtils.pxToInt(h.paddingTop)),h.paddingRight&&(m.right=I.DomUtils.pxToInt(h.paddingRight)),h.paddingBottom&&(m.bottom=I.DomUtils.pxToInt(h.paddingBottom)),this._cellPadding.assign(m)}},c.prototype.hasValue=function(){return!0},c.prototype.getValue=function(){var h=this,m={};return(0,E.isDefined)(this.font)&&(m.font=this.font),(0,E.isDefined)(this.fontStyle)&&(m.fontStyle=this.fontStyle),(0,E.isDefined)(this.fontSize)&&(m.fontSize=this.fontSize),(0,E.isDefined)(this.overflow)&&(m.overflow=this.overflow),(0,E.isDefined)(this.halign)&&(m.halign=this.halign),(0,E.isDefined)(this.valign)&&(m.valign=this.valign),(0,E.isDefined)(this.lineWidth)&&(m.lineWidth=this.lineWidth),(0,E.isDefined)(this.minCellWidth)&&(m.minCellWidth=this.minCellWidth),(0,E.isDefined)(this.minCellHeight)&&(m.minCellHeight=this.minCellHeight),this.getJsPdfProviderProps().forEach(function(v){var b=h[v];b&&b.hasValue()&&(m[v]=b.getValue())}),m},c.prototype.getJsPdfProviderProps=function(){return["fillColor","textColor","lineColor","cellWidth","cellPadding"]},c}();D.StyleDef=d},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfPageTableNames=void 0;var E=function(){function I(){}return I.treeListHeader="treeListHeader",I.treeListMain="treeListMain",I.chartMain="chartMain",I.chartScaleTop="chartScaleTop",I.chartScaleBottom="chartScaleBottom",I}();D.PdfPageTableNames=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.BaseManipulator=void 0;var E=function(){function I(C,y){this.viewModel=C,this.dispatcher=y}return I.prototype.getErrorCallback=function(){return this.viewModel.getDataUpdateErrorCallback()},Object.defineProperty(I.prototype,"renderHelper",{get:function(){return this.viewModel.owner.renderHelper},enumerable:!1,configurable:!0}),I}();D.BaseManipulator=E},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaDomHelper=void 0;var I=w(3),C=w(9),y=w(46),g=w(4),p=w(25),d=function(){function c(){}return c.getEventSource=function(h){var m,v=(h.nodeType===(null===(m=window?.Node)||void 0===m?void 0:m.ELEMENT_NODE)?h:h.parentNode).classList[0];return c.classToSource[v]||g.TaskAreaEventSource.TaskArea},c.isConnectorLine=function(h){var m=C.EvtUtils.getEventSource(h);return I.DomUtils.hasClassName(m,p.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)||I.DomUtils.hasClassName(m,p.GridLayoutCalculator.CLASSNAMES.CONNECTOR_VERTICAL)},c.isTaskElement=function(h){var m=C.EvtUtils.getEventSource(h),v=c.classToSource[m.classList[0]];return v===g.TaskAreaEventSource.TaskEdit_Frame||v===g.TaskAreaEventSource.TaskEdit_Progress||v===g.TaskAreaEventSource.TaskEdit_Start||v===g.TaskAreaEventSource.TaskEdit_End||v===g.TaskAreaEventSource.TaskEdit_DependencyStart||v===g.TaskAreaEventSource.TaskEdit_DependencyFinish},c.isMouseEvent=function(h){return h instanceof MouseEvent},c.isTouchEvent=function(h){return window.TouchEvent&&h instanceof TouchEvent},c.isPointerEvent=function(h){return window.PointerEvent&&h instanceof PointerEvent},c.isMousePointer=function(h){return this.isPointerEvent(h)&&"mouse"===h.pointerType},c.classToSource=((E={})[y.TaskEditController.CLASSNAMES.TASK_EDIT_PROGRESS]=g.TaskAreaEventSource.TaskEdit_Progress,E[y.TaskEditController.CLASSNAMES.TASK_EDIT_START]=g.TaskAreaEventSource.TaskEdit_Start,E[y.TaskEditController.CLASSNAMES.TASK_EDIT_END]=g.TaskAreaEventSource.TaskEdit_End,E[y.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME]=g.TaskAreaEventSource.TaskEdit_Frame,E[y.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH]=g.TaskAreaEventSource.TaskEdit_DependencyStart,E[y.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT]=g.TaskAreaEventSource.TaskEdit_DependencyFinish,E[y.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH]=g.TaskAreaEventSource.Successor_DependencyStart,E[y.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT]=g.TaskAreaEventSource.Successor_DependencyFinish,E),c}();D.TaskAreaDomHelper=d},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaStateBase=void 0;var E=w(10),I=w(5),C=w(3),y=w(9),g=w(66),p=w(172),d=w(29),c=w(13),h=function(){function m(v,b,x){this.position=new I.Point(-1,-1),this.isCursorInArea=!1,this._listener=v,this._taskArea=b,this._cellSize=x}return m.prototype.start=function(){},m.prototype.finish=function(){},m.prototype.isTouchEvent=function(v){return d.TaskAreaDomHelper.isTouchEvent(v)},m.prototype.isPointerEvent=function(v){return d.TaskAreaDomHelper.isPointerEvent(v)},m.prototype.isMouseEvent=function(v){return d.TaskAreaDomHelper.isMouseEvent(v)},m.prototype.onMouseWheel=function(v){},m.prototype.onScroll=function(v){this.raiseEvent(c.TaskAreaStateEventNames.TASK_AREA_SCROLL)},m.prototype.onKeyDown=function(v){this.isCursorInArea&&this.raiseEvent(c.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN,v,null,{code:this.getShortcutCode(v)})},m.prototype.onContextMenu=function(v){var b=this.getClickedRowIndex(v),x=d.TaskAreaDomHelper.isConnectorLine(v);x||this.raiseTaskSelection(v,b),v.stopPropagation(),v.preventDefault(),E.Browser.WebKitFamily&&(v.returnValue=!1),this.raiseEvent(c.TaskAreaStateEventNames.CONTEXTMENU_SHOW,v,b,{type:x?"dependency":"task"})},m.prototype.onTaskPointerEnter=function(v){this.onTaskPointerEnterBase(v)},m.prototype.onDocumentPointerMove=function(v){this.processPointerMove(v)},m.prototype.onDocumentPointerDown=function(v){this.processPointerDown(v)},m.prototype.onDocumentPointerUp=function(v){this.processPointerUp(v)},m.prototype.onTaskTouchStart=function(v){this.onTaskPointerEnterBase(v)},m.prototype.onTouchMove=function(v){this.processPointerMove(v)},m.prototype.onTouchStart=function(v){this.processPointerDown(v)},m.prototype.onTouchEnd=function(v){this.processPointerUp(v)},m.prototype.onMouseDown=function(v){this.processPointerDown(v)},m.prototype.onMouseUp=function(v){},m.prototype.onMouseMove=function(v){this.processPointerMove(v)},m.prototype.onTaskHover=function(v){this.onTaskPointerEnterBase(v)},m.prototype.onTaskLeave=function(v){this.raiseEvent(c.TaskAreaStateEventNames.TASK_LEAVE,v,this.getClickedRowIndex(v))},m.prototype.onClick=function(v){var b=this.getClickedRowIndex(v);this.raiseTaskSelection(v,b),this.raiseEvent(c.TaskAreaStateEventNames.TASK_AREA_CLICK,v,b)},m.prototype.onDblClick=function(v){v.preventDefault(),this.raiseEvent(c.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,v,this.getClickedRowIndex(v))},m.prototype.onTaskAreaLeave=function(v){(!this.isPointerEvent(v)||d.TaskAreaDomHelper.isMousePointer(v))&&(this.isCursorInArea=!1,this.raiseEvent(c.TaskAreaStateEventNames.TASK_EDIT_END,v)),this.onTaskAreaLeaveInternal(v)},m.prototype.onTaskPointerEnterBase=function(v){this.isTouchEvent(v)||this.isPointerEvent(v)||v.preventDefault(),this.raiseEvent(c.TaskAreaStateEventNames.TASK_EDIT_START,v,this.getClickedRowIndex(v))},m.prototype.processPointerDown=function(v){var b=this.isTouchEvent(v),x=this.isPointerEvent(v);(b||x)&&this.checkAndProcessTouchOutsideArea(v)||(this.position=new I.Point(y.EvtUtils.getEventX(v),y.EvtUtils.getEventY(v)),(b||x)&&v.preventDefault(),b?this.onTouchStartInternal(v):x?this.onDocumentPointerDownInternal(v):this.onMouseDownInternal(v))},m.prototype.processPointerMove=function(v){var b,x=this.isTouchEvent(v),O=this.isPointerEvent(v);null!==(b=this.position)&&void 0!==b||(this.position=new I.Point(y.EvtUtils.getEventX(v),y.EvtUtils.getEventY(v)));var k=Math.abs(this.position.x-y.EvtUtils.getEventX(v))>2||Math.abs(this.position.y-y.EvtUtils.getEventY(v))>2;(!x&&!O||!this.checkAndProcessTouchOutsideArea(v))&&k&&((x||O)&&v.preventDefault(),this.isTouchEvent(v)?this.onTouchMoveInternal(v):this.isPointerEvent(v)?this.onDocumentPointerMoveInternal(v):(this.isCursorInArea=!0,this.onMouseMoveInternal(v)))},m.prototype.processPointerUp=function(v){this.checkAndProcessTouchOutsideArea(v)||(v.preventDefault(),this.isTouchEvent(v)?this.onTouchEndInternal(v):this.onDocumentPointerUpInternal(v))},m.prototype.onMouseDownInternal=function(v){},m.prototype.onMouseMoveInternal=function(v){},m.prototype.onDocumentPointerUpInternal=function(v){},m.prototype.onDocumentPointerDownInternal=function(v){},m.prototype.onDocumentPointerMoveInternal=function(v){},m.prototype.onTouchStartInternal=function(v){},m.prototype.onTouchEndInternal=function(v){},m.prototype.onTouchMoveInternal=function(v){},m.prototype.onTaskAreaLeaveInternal=function(v){},m.prototype.checkAndProcessTouchOutsideArea=function(v){var b=!this.isInTaskArea(v);return b&&this.raiseEvent(c.TaskAreaStateEventNames.TASK_EDIT_END,v),this.isCursorInArea=!b,b},m.prototype.raiseEvent=function(v,b,x,O){var k=new p.TaskAreaEventArgs(v,b,x,O),M=this._listener.getHandler(v);return M&&M(k)},m.prototype.raiseDependencySelection=function(v,b){this.raiseEvent(c.TaskAreaStateEventNames.DEPENDENCY_SELECTION,v,null,{key:b})},m.prototype.raiseTaskSelection=function(v,b){C.DomUtils.isItParent(this._taskArea,y.EvtUtils.getEventSource(v))&&!d.TaskAreaDomHelper.isConnectorLine(v)&&this.raiseEvent(c.TaskAreaStateEventNames.TASK_SELECTION,v,b)},m.prototype.getClickedRowIndex=function(v){if(!v)return-1;var b=y.EvtUtils.getEventY(v)-C.DomUtils.getAbsolutePositionY(this._taskArea);return Math.floor(b/this._cellSize.height)},m.prototype.getRelativePos=function(v){var b=C.DomUtils.getAbsolutePositionX(this._taskArea),x=C.DomUtils.getAbsolutePositionY(this._taskArea);return new I.Point(v.x-b,v.y-x)},m.prototype.isInTaskArea=function(v){return C.DomUtils.isItParent(this._taskArea,y.EvtUtils.getEventSource(v))},m.prototype.getShortcutCode=function(v){var b=g.KeyUtils.getEventKeyCode(v),x=0;return v.altKey&&(x|=g.ModifierKey.Alt),v.ctrlKey&&(x|=g.ModifierKey.Ctrl),v.shiftKey&&(x|=g.ModifierKey.Shift),v.metaKey&&E.Browser.MacOSPlatform&&(x|=g.ModifierKey.Meta),x|b},m}();D.TaskAreaStateBase=h},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.ConstraintViolationOption=D.ConfirmationType=void 0,(E=D.ConfirmationType||(D.ConfirmationType={}))[E.TaskDelete=0]="TaskDelete",E[E.DependencyDelete=1]="DependencyDelete",E[E.ResourcesDelete=2]="ResourcesDelete",function(E){E[E.DoNothing=0]="DoNothing",E[E.RemoveDependency=1]="RemoveDependency",E[E.KeepDependency=2]="KeepDependency"}(D.ConstraintViolationOption||(D.ConstraintViolationOption={}))},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DialogParametersBase=void 0,D.DialogParametersBase=function(){}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DeassignResourceHistoryItem=void 0;var E=w(0),I=w(14),C=w(2),y=function(g){function p(d,c){var h=g.call(this,d)||this;return h.assignmentId=c,h}return E.__extends(p,g),p.prototype.redo=function(){this.assignment=this.modelManipulator.resource.deassig(this.assignmentId)},p.prototype.undo=function(){this.modelManipulator.resource.assign(this.assignment.resourceId,this.assignment.taskId,this.assignmentId)},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var d=this;return[{objectType:C.GanttDataObjectNames.resourceAssignment,getKey:function(){return d.assignmentId},updateKey:function(c){return d.assignmentId=c}},{objectType:C.GanttDataObjectNames.task,getKey:function(){var c;return null===(c=d.assignment)||void 0===c?void 0:c.taskId},updateKey:function(c){return d.assignment.taskId=c}},{objectType:C.GanttDataObjectNames.resource,getKey:function(){var c;return null===(c=d.assignment)||void 0===c?void 0:c.resourceId},updateKey:function(c){return d.assignment.resourceId=c}}]},enumerable:!1,configurable:!0}),p}(I.HistoryItem);D.DeassignResourceHistoryItem=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceCommandBase=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p}(I.CommandBase);D.ResourceCommandBase=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PredefinedStyles=void 0;var E=function(){function I(){}return I.getPredefinedStringOrUndefined=function(C,y){var g=C&&y&&C.toLowerCase()||void 0;return g&&(y.filter(function(p){return p.toLowerCase()===g})[0]||y.filter(function(p){return g.indexOf(p.toLowerCase())>-1})[0])},I.fontFamilies=["helvetica","times","courier"],I.fontStyles=["normal","bold","italic","bolditalic"],I.headerFooterVisibility=["everyPage","firstPage","never"],I.horizontalAlign=["left","center","right"],I.overflow=["linebreak","ellipsize","visible","hidden"],I.pageBreak=["auto","avoid","always"],I.rowPageBreak=["auto","avoid"],I.verticalAlign=["top","middle","bottom"],I.width=["auto","wrap"],I}();D.PredefinedStyles=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Margin=void 0;var E=w(1),I=w(3),C=function(){function y(g){this.assign(g)}return y.prototype.assign=function(g){(0,E.isDefined)(g)&&("string"==typeof g?this.assignFromString(g):"number"==typeof g||g instanceof Array?this.assignWithValues(g):this.assignWithMargin(g||g))},y.prototype.assignFromString=function(g){var p=g.split(" ").map(function(d){return I.DomUtils.pxToInt(d)});this.assignWithValues(p)},y.prototype.assignWithMargin=function(g){(0,E.isDefined)(g.top)&&(this.top=g.top),(0,E.isDefined)(g.right)&&(this.right=g.right),(0,E.isDefined)(g.bottom)&&(this.bottom=g.bottom),(0,E.isDefined)(g.left)&&(this.left=g.left)},y.prototype.assignWithValues=function(g){var p=this.getCorrectedValues(g);this.top=p[0],this.right=p[1],this.bottom=p[2],this.left=p[3]},y.prototype.getCorrectedValues=function(g){var p=[this.top,this.right,this.bottom,this.left];if("number"==typeof g)p=[g,g,g,g];else{var d=g;switch(d.length){case 1:p=[d[0],d[0],d[0],d[0]];break;case 2:p=[d[0],d[1],d[0],d[1]];break;case 3:p=[d[0],d[1],d[2],d[1]];break;default:d.forEach(function(c,h){return p[h]=c})}}return p},y.prototype.hasValue=function(){return(0,E.isDefined)(this.top)||(0,E.isDefined)(this.left)||(0,E.isDefined)(this.right)||(0,E.isDefined)(this.bottom)},y.prototype.getValue=function(){if(!this.hasValue())return null;if(this.top===this.bottom&&this.left===this.right&&this.top===this.left)return this.top;var g={};return(0,E.isDefined)(this.top)&&(g.top=this.top),(0,E.isDefined)(this.left)&&(g.left=this.left),(0,E.isDefined)(this.right)&&(g.right=this.right),(0,E.isDefined)(this.bottom)&&(g.bottom=this.bottom),g},y}();D.Margin=C},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.DataExportMode=D.ExportMode=void 0,(E=D.ExportMode||(D.ExportMode={}))[E.all=0]="all",E[E.treeList=1]="treeList",E[E.chart=2]="chart",function(E){E[E.all=0]="all",E[E.visible=1]="visible"}(D.DataExportMode||(D.DataExportMode={}))},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RecurrenceBase=void 0;var E=w(0),I=w(203),C=w(57),y=w(204),g=w(1),p=w(8),d=w(71),c=function(h){function m(v,b,x,O){void 0===v&&(v=null),void 0===b&&(b=null),void 0===x&&(x=1),void 0===O&&(O=0);var k=h.call(this)||this;return k._start=null,k._end=null,k._interval=1,k._occurrenceCount=0,k._dayOfWeek=0,k._day=1,k._dayOfWeekOccurrence=0,k._month=0,k._calculateByDayOfWeek=!1,k.start=v,k.end=b,k.interval=x,k.occurrenceCount=O,k}return E.__extends(m,h),m.prototype.assignFromObject=function(v){(0,g.isDefined)(v)&&(h.prototype.assignFromObject.call(this,v),this.start=p.DateTimeUtils.convertToDate(v.start),this.end=p.DateTimeUtils.convertToDate(v.end),(0,g.isDefined)(v.interval)&&(this.interval=v.interval),(0,g.isDefined)(v.occurrenceCount)&&(this.occurrenceCount=v.occurrenceCount),(0,g.isDefined)(v.dayOfWeek)&&(this.dayOfWeekInternal=d.RecurrenceFactory.getEnumValue(I.DayOfWeek,v.dayOfWeek)),(0,g.isDefined)(v.day)&&(this.dayInternal=v.day),(0,g.isDefined)(v.dayOfWeekOccurrence)&&(this.dayOfWeekOccurrenceInternal=d.RecurrenceFactory.getEnumValue(C.DayOfWeekMonthlyOccurrence,v.dayOfWeekOccurrence)),(0,g.isDefined)(v.month)&&(this.monthInternal=d.RecurrenceFactory.getEnumValue(y.Month,v.month)),(0,g.isDefined)(v.calculateByDayOfWeek)&&(this._calculateByDayOfWeek=!!v.calculateByDayOfWeek))},m.prototype.calculatePoints=function(v,b){if(!v||!b)return new Array;var x=p.DateTimeUtils.getMaxDate(v,this._start),O=p.DateTimeUtils.getMinDate(b,this._end);return this._occurrenceCount>0?this.calculatePointsByOccurrenceCount(x,O):this.calculatePointsByDateRange(x,O)},m.prototype.calculatePointsByOccurrenceCount=function(v,b){for(var x=new Array,O=this.getFirstPoint(v);O&&x.length<this._occurrenceCount&&p.DateTimeUtils.compareDates(O,b)>=0;)this.isRecurrencePoint(O)&&x.push(O),O=this.getNextPoint(O);return x},m.prototype.calculatePointsByDateRange=function(v,b){for(var x=new Array,O=this.getFirstPoint(v);O&&p.DateTimeUtils.compareDates(O,b)>=0;)this.isRecurrencePoint(O)&&x.push(O),O=this.getNextPoint(O);return x},m.prototype.getFirstPoint=function(v){return this.isRecurrencePoint(v)?v:this.getNextPoint(v)},m.prototype.isRecurrencePoint=function(v){return this.isDateInRange(v)&&this.checkDate(v)&&(!this.useIntervalInCalc()||this.checkInterval(v))},m.prototype.isDateInRange=function(v){return!(!v||this._start&&p.DateTimeUtils.compareDates(this.start,v)<0||0==this._occurrenceCount&&this.end&&p.DateTimeUtils.compareDates(v,this.end)<0)},m.prototype.useIntervalInCalc=function(){return this.interval>1&&!!this._start},m.prototype.getNextPoint=function(v){return this.isDateInRange(v)?this.useIntervalInCalc()?this.calculatePointByInterval(v):this.calculateNearestPoint(v):null},m.prototype.getSpecDayInMonth=function(v,b){return this._calculateByDayOfWeek?p.DateTimeUtils.getSpecificDayOfWeekInMonthDate(this.dayOfWeekInternal,v,b,this.dayOfWeekOccurrenceInternal):new Date(v,b,this.dayInternal)},Object.defineProperty(m.prototype,"dayInternal",{get:function(){return this._day},set:function(v){v>0&&v<=31&&(this._day=v)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"dayOfWeekInternal",{get:function(){return this._dayOfWeek},set:function(v){v>=I.DayOfWeek.Sunday&&v<=I.DayOfWeek.Saturday&&(this._dayOfWeek=v)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"dayOfWeekOccurrenceInternal",{get:function(){return this._dayOfWeekOccurrence},set:function(v){v>=C.DayOfWeekMonthlyOccurrence.First&&v<=C.DayOfWeekMonthlyOccurrence.Last&&(this._dayOfWeekOccurrence=v)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"monthInternal",{get:function(){return this._month},set:function(v){v>=y.Month.January&&v<=y.Month.December&&(this._month=v)},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"start",{get:function(){return this._start},set:function(v){v&&(this._start=v,this._end&&v>this._end&&(this._end=v))},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"end",{get:function(){return this._end},set:function(v){v&&(this._end=v,this._start&&v<this._start&&(this._start=v))},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"occurrenceCount",{get:function(){return this._occurrenceCount},set:function(v){v<0&&(v=0),this._occurrenceCount=v},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"interval",{get:function(){return this._interval},set:function(v){v>0&&(this._interval=v)},enumerable:!1,configurable:!0}),m}(w(2).DataObject);D.RecurrenceBase=c},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.StringUtils=void 0;var E=function(){function I(){}return I.isAlpha=function(C){return C>="a"&&C<="z"||C>="A"&&C<="Z"},I.isDigit=function(C){return C>="0"&&C<="9"},I.stringHashCode=function(C){var y=0;if(0===C.length)return y;for(var g=C.length,p=0;p<g;p++)y=(y<<5)-y+C.charCodeAt(p),y|=0;return y},I.endsAt=function(C,y){var g=C.length-1,p=y.length-1,d=g-p;if(d<0)return!1;for(;g>=d;g--,p--)if(C[g]!==y[p])return!1;return!0},I.startsAt=function(C,y){return C.substr(0,y.length)===y},I.stringInLowerCase=function(C){return C.toLowerCase()===C},I.stringInUpperCase=function(C){return C.toUpperCase()===C},I.atLeastOneSymbolInUpperCase=function(C){for(var y=0,g=void 0;g=C[y];y++)if(I.stringInUpperCase(g)&&!I.stringInLowerCase(g))return!0;return!1},I.getSymbolFromEnd=function(C,y){return C[C.length-y]},I.trim=function(C,y){if(void 0===y)return I.trimInternal(C,!0,!0);var g=y.join("");return C.replace(new RegExp("(^["+g+"]*)|(["+g+"]*$)","g"),"")},I.trimStart=function(C,y){if(void 0===y)return I.trimInternal(C,!0,!1);var g=y.join("");return C.replace(new RegExp("^["+g+"]*","g"),"")},I.trimEnd=function(C,y){if(void 0===y)return I.trimInternal(C,!1,!0);var g=y.join("");return C.replace(new RegExp("["+g+"]*$","g"),"")},I.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},I.repeat=function(C,y){return new Array(y<=0?0:y+1).join(C)},I.isNullOrEmpty=function(C){return!C||!C.length},I.padLeft=function(C,y,g){return I.repeat(g,Math.max(0,y-C.length))+C},I.trimInternal=function(C,y,g){var p=C.length;if(!p)return C;if(p<764833){var d=C;return y&&(d=d.replace(/^\s+/,"")),g&&(d=d.replace(/\s+$/,"")),d}var c=0;if(g)for(;p>0&&/\s/.test(C[p-1]);)p--;if(y&&p>0)for(;c<p&&/\s/.test(C[c]);)c++;return C.substring(c,p)},I}();D.StringUtils=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConfirmationDialogParameters=void 0;var E=w(0),I=function(C){function y(g,p){var d=C.call(this)||this;return d.type=g,d.callback=p,d}return E.__extends(y,C),y.prototype.clone=function(){var g=new y(this.type,this.callback);return g.message=this.message,g},y}(w(32).DialogParametersBase);D.ConfirmationDialogParameters=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RemoveDependencyHistoryItem=void 0;var E=w(0),I=w(2),C=function(y){function g(p,d){var c=y.call(this,p)||this;return c.dependencyId=d,c}return E.__extends(g,y),g.prototype.redo=function(){this.dependency=this.modelManipulator.dependency.removeDependency(this.dependencyId)},g.prototype.undo=function(){this.modelManipulator.dependency.insertDependency(this.dependency.predecessorId,this.dependency.successorId,this.dependency.type,this.dependencyId)},Object.defineProperty(g.prototype,"keyUpdaters",{get:function(){var p=this;return[{objectType:I.GanttDataObjectNames.dependency,getKey:function(){return p.dependencyId},updateKey:function(d){return p.dependencyId=d}},{objectType:I.GanttDataObjectNames.task,getKey:function(){var d;return null===(d=p.dependency)||void 0===d?void 0:d.predecessorId},updateKey:function(d){return p.dependency.predecessorId=d}},{objectType:I.GanttDataObjectNames.task,getKey:function(){var d;return null===(d=p.dependency)||void 0===d?void 0:d.successorId},updateKey:function(d){return p.dependency.successorId=d}}]},enumerable:!1,configurable:!0}),g}(w(14).HistoryItem);D.RemoveDependencyHistoryItem=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CompositionHistoryItem=void 0;var E=w(0),I=function(C){function y(){var g=C.call(this,null)||this;return g.historyItems=[],g}return E.__extends(y,C),y.prototype.redo=function(){for(var g,p=0;g=this.historyItems[p];p++)g.redo()},y.prototype.undo=function(){for(var g,p=this.historyItems.length-1;g=this.historyItems[p];p--)g.undo()},y.prototype.add=function(g){if(null==g)throw new Error("Can't add null HistoryItem");this.historyItems.push(g)},y.prototype.undoItemsQuery=function(){this.undo()},y.prototype.setModelManipulator=function(g){if(C.prototype.setModelManipulator.call(this,g),this.historyItems)for(var p=0;p<this.historyItems.length;p++)this.historyItems[p].setModelManipulator(g)},y}(w(14).HistoryItem);D.CompositionHistoryItem=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CreateTaskHistoryItem=void 0;var E=w(0),I=w(18),C=w(2),y=function(g){function p(d,c){var h=g.call(this,d)||this;return h.data=c,h}return E.__extends(p,g),p.prototype.redo=function(){var d;null!==(d=this.insertedKey)&&void 0!==d||(this.insertedKey=I.MathUtils.generateGuid()),this.modelManipulator.task.create(this.data,this.insertedKey)},p.prototype.undo=function(){this.modelManipulator.task.remove(this.insertedKey)},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var d,c=this,h=[{objectType:C.GanttDataObjectNames.task,getKey:function(){return c.insertedKey},updateKey:function(m){return c.insertedKey=m}}];return!(null===(d=this.data)||void 0===d)&&d.parentId&&h.push({objectType:C.GanttDataObjectNames.task,getKey:function(){var m;return null===(m=c.data)||void 0===m?void 0:m.parentId},updateKey:function(m){return c.data.parentId=m}}),h},enumerable:!1,configurable:!0}),p}(w(14).HistoryItem);D.CreateTaskHistoryItem=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfTaskInfo=void 0;var E=w(5),I=w(17),C=w(26),y=function(){function g(){}return Object.defineProperty(g.prototype,"left",{get:function(){var p;return(null===(p=this.sidePoints)||void 0===p?void 0:p.length)>3?this.sidePoints[0].x:0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"top",{get:function(){var p;return(null===(p=this.sidePoints)||void 0===p?void 0:p.length)>3?this.sidePoints[1].y:0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"right",{get:function(){var p;return(null===(p=this.sidePoints)||void 0===p?void 0:p.length)>3?this.sidePoints[2].x:0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"bottom",{get:function(){var p;return(null===(p=this.sidePoints)||void 0===p?void 0:p.length)>3?this.sidePoints[3].y:0},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"height",{get:function(){var p=this.bottom-this.top;return this.isParent&&(p-=g.defaultParentHeightCorrection),p},enumerable:!1,configurable:!0}),g.prototype.assign=function(p){var d,c,h;this.isMilestone=p.isMilestone,this._copyPoints(p.sidePoints),this.progressWidth=p.progressWidth,this.isSmallTask=p.isSmallTask,this.text=p.text,this.textPosition=p.textPosition,null!==(d=this.progressColor)&&void 0!==d||(this.progressColor=new I.Color),this.progressColor.assign(p.progressColor),null!==(c=this.taskColor)&&void 0!==c||(this.taskColor=new I.Color),this.taskColor.assign(p.taskColor),null!==(h=this.textStyle)&&void 0!==h||(this.textStyle=new C.StyleDef),this.textStyle.assign(p.textStyle),this.isParent=p.isParent},g.prototype._copyPoints=function(p){var d=this;this.sidePoints=new Array,p?.forEach(function(c){return d.sidePoints.push(new E.Point(c.x,c.y))})},g.defaultParentHeightCorrection=4,g}();D.PdfTaskInfo=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CellDef=void 0;var E=w(1),I=w(26),C=function(){function y(g,p,d){this.content="","string"==typeof g?(this.content=g,this.colSpan=p,d&&this.appendStyles(d)):g&&this.assign(g)}return Object.defineProperty(y.prototype,"styles",{get:function(){return this._styles||(this._styles=new I.StyleDef),this._styles},enumerable:!1,configurable:!0}),y.prototype.assign=function(g){(0,E.isDefined)(g.content)&&(this.content=g.content),(0,E.isDefined)(g.colSpan)&&(this.colSpan=g.colSpan),g.styles&&this.appendStyles(g.styles)},y.prototype.appendStyles=function(g){g&&this.styles.assign(g)},y.prototype.hasValue=function(){return!0},y.prototype.getValue=function(){var g={};return g.content=this.content,this.colSpan>1&&(g.colSpan=this.colSpan),this._styles&&(g.styles=this._styles.getValue()),g},y}();D.CellDef=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskEditController=void 0;var E=w(4),I=w(19),C=w(3),y=w(10),g=w(169),p=w(65),d=w(15),c=function(){function h(m){this.showInfoDelay=1e3,this.taskIndex=-1,this.successorIndex=-1,this.isEditingInProgress=!1,this.disableTaskEditBox=!1,this.isTaskEditBoxShown=!1,this.settings=m,this.createElements()}return Object.defineProperty(h.prototype,"taskId",{get:function(){return this.viewModel.items[this.taskIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"successorId",{get:function(){return this.viewModel.items[this.successorIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"task",{get:function(){return this.viewItem.task},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"viewItem",{get:function(){return this.viewModel.items[this.taskIndex]},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"renderHelper",{get:function(){return this.settings.getRenderHelper()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"ganttSettings",{get:function(){return this.settings.getGanttSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"commandManager",{get:function(){return this.settings.getCommandManager()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"updateTaskCommand",{get:function(){return this.commandManager.updateTaskCommand},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"validationController",{get:function(){return this.settings.getValidationController()},enumerable:!1,configurable:!0}),h.prototype.raiseTaskMoving=function(m,v,b,x){return this.settings.getModelManipulator().dispatcher.raiseTaskMoving(m,v,b,x)},Object.defineProperty(h.prototype,"tooltip",{get:function(){var m;return null!==(m=this._tooltip)&&void 0!==m||(this._tooltip=new g.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo)),this._tooltip.tooltipSettings=this.tooltipSettings,this._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"tooltipSettings",{get:function(){var m=this;return p.TooltipSettings.parse({getHeaderHeight:this.settings.getRenderHelper().header.clientHeight,getTaskProgressTooltipContentTemplate:this.ganttSettings.taskProgressTooltipContentTemplate,getTaskTimeTooltipContentTemplate:this.ganttSettings.taskTimeTooltipContentTemplate,getTaskTooltipContentTemplate:this.ganttSettings.taskTooltipContentTemplate,destroyTemplate:function(v){m.settings.destroyTemplate(v)},formatDate:function(v){return m.settings.formatDate(v)}})},enumerable:!1,configurable:!0}),h.prototype.show=function(m){if(!this.isEditingInProgress&&!this.disableTaskEditBox){this.taskIndex=m,this.hide(),this.changeWrapInfo(),this.baseElement.className=h.CLASSNAMES.TASK_EDIT_BOX,this.displayDependency(),this.task.isMilestone()&&!this.viewItem.isCustom?this.baseElement.className=this.baseElement.className+" milestone":(this.isTaskUpdateAllowed()||(this.baseElement.className=this.baseElement.className+" "+h.CLASSNAMES.TASK_EDIT_HIDE_UPDATING),this.viewItem.isCustom&&this.baseElement.classList.add(h.CLASSNAMES.TASK_EDIT_BOX_CUSTOM));var v=this.settings.getGanttSettings().editing.taskHoverDelay||0;this.taskDateRange=new I.DateRange(this.task.start,this.task.end),this.displayTaskEditBox(v),this.displayProgressEdit(),this.displayStartEndEditElements()}},h.prototype.displayStartEndEditElements=function(){!this.task.isMilestone()&&this.isTaskUpdateAllowed()&&this.canUpdateTask()?(this.startEdit.style.display="block",this.endEdit.style.display="block"):(this.startEdit.style.display="none",this.endEdit.style.display="none")},h.prototype.displayProgressEdit=function(){!this.viewItem.isCustom&&this.canUpdateTask()&&this.isTaskUpdateAllowed()&&this.wrapInfo.size.width>this.wrapInfo.size.height?(this.progressEdit.style.display="block",this.progressEdit.style.left=this.task.normalizedProgress/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px"):this.progressEdit.style.display="none"},h.prototype.displayDependency=function(){this.ganttSettings.editing.enabled&&this.ganttSettings.editing.allowDependencyInsert&&this.ganttSettings.showDependencies||(this.baseElement.className=this.baseElement.className+" hide-dependency")},h.prototype.changeWrapInfo=function(){this.updateWrapInfo(),this.wrapInfo.assignPosition(this.baseElement),this.wrapInfo.assignSize(this.baseElement)},h.prototype.displayTaskEditBox=function(m){var v=this;void 0===m&&(m=0);var b=function(){v.renderHelper.taskArea.appendChild(v.baseElement),v.isTaskEditBoxShown=!0};m?this.timerId=setTimeout(b,m):b()},h.prototype.endEditing=function(){this.isEditingInProgress=!1,this.hide()},h.prototype.hide=function(){this.isTaskEditBoxShown=!1;var m=this.baseElement.parentNode;m&&m.removeChild(this.baseElement),this.tooltip.hide(),clearTimeout(this.timerId)},h.prototype.cancel=function(){clearTimeout(this.timerId)},h.prototype.showTaskInfo=function(m,v){void 0===v&&(v=500),this.timerId&&(v=this.showInfoDelay),this.tooltip.showInfo(this.task,m,v)},h.prototype.updateWrapInfo=function(){this.wrapInfo=this.getTaskWrapperElementInfo(this.taskIndex),this.wrapInfo.position.x--},h.prototype.isAllowedToConnectTasks=function(m){var v;return this.validationController.canCreateDependency(this.taskId,null===(v=this.viewModel.items[m].task)||void 0===v?void 0:v.internalId)},h.prototype.showDependencySuccessor=function(m){if(this.isAllowedToConnectTasks(m)){this.successorIndex=m;var v=this.getTaskWrapperElementInfo(m);v.assignPosition(this.dependencySuccessorBaseElement),v.assignSize(this.dependencySuccessorBaseElement),v.assignSize(this.dependencySuccessorFrame),this.renderHelper.taskArea.appendChild(this.dependencySuccessorBaseElement)}},h.prototype.hideDependencySuccessor=function(){var m=this.dependencySuccessorBaseElement.parentNode;m&&m.removeChild(this.dependencySuccessorBaseElement),this.successorIndex=-1},h.prototype.processProgress=function(m){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!0;var b=0;m.x>this.wrapInfo.position.x&&(b=m.x<this.wrapInfo.position.x+this.wrapInfo.size.width?Math.round((m.x-this.wrapInfo.position.x)/this.baseElement.clientWidth*100):100),this.progressEdit.style.left=b/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px",this.tooltip.showProgress(b,C.DomUtils.getAbsolutePositionX(this.progressEdit)+this.progressEdit.offsetWidth/2)}},h.prototype.confirmProgress=function(){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!1;var m=Math.round((this.progressEdit.offsetLeft+this.progressEdit.offsetWidth/2)/this.wrapInfo.size.width*100);this.updateTaskCommand.execute(this.taskId,{progress:m})}},h.prototype.processEnd=function(m){if(this.isTaskUpdateAllowed()){this.baseElement.className=this.baseElement.className+" move",this.isEditingInProgress=!0;var v=m.x>this.wrapInfo.position.x?m.x:this.wrapInfo.position.x,b=v-this.wrapInfo.position.x;this.baseElement.style.width=(b<1?0:b)+"px";var x=this.task.start,O=this.renderHelper.gridLayoutCalculator.getDateByPos(v);O.setSeconds(0),O<x||b<1?this.taskDateRange.end.setTime(x.getTime()):this.taskDateRange.end=this.getCorrectedDate(this.task.end,O),this.tooltip.showTime(x,this.taskDateRange.end,C.DomUtils.getAbsolutePositionX(this.baseElement)+this.baseElement.clientWidth)}},h.prototype.confirmEnd=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=h.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{end:this.taskDateRange.end}),this.hide(),this.updateWrapInfo())},h.prototype.processStart=function(m){if(this.isTaskUpdateAllowed()){this.baseElement.className=this.baseElement.className+" move",this.isEditingInProgress=!0;var v=m.x<this.wrapInfo.position.x+this.wrapInfo.size.width?m.x:this.wrapInfo.position.x+this.wrapInfo.size.width,b=this.wrapInfo.size.width-(v-this.wrapInfo.position.x);this.baseElement.style.left=v+"px",this.baseElement.style.width=(b<1?0:b)+"px";var x=this.task.end,O=this.renderHelper.gridLayoutCalculator.getDateByPos(v);O.setSeconds(0),O>x||b<1?this.taskDateRange.start.setTime(x.getTime()):this.taskDateRange.start=this.getCorrectedDate(this.task.start,O),this.tooltip.showTime(this.taskDateRange.start,x,C.DomUtils.getAbsolutePositionX(this.baseElement))}},h.prototype.confirmStart=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=h.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start}),this.hide(),this.updateWrapInfo())},h.prototype.processMove=function(m){if(this.isTaskUpdateAllowed()&&this.isTaskEditBoxShown){this.baseElement.className=this.baseElement.className+" move";var v=this.baseElement.offsetLeft+m;this.baseElement.style.left=v+"px";var b=this.renderHelper.gridLayoutCalculator.getDateByPos(v);this.taskDateRange.start=this.getCorrectedDate(this.task.start,b);var x=d.DateUtils.getRangeMSPeriod(this.task.start,this.task.end);return this.taskDateRange.end=d.DateUtils.getDSTCorrectedTaskEnd(this.taskDateRange.start,x),this.isEditingInProgress=this.raiseTaskMoving(this.task,this.taskDateRange.start,this.taskDateRange.end,this.onTaskMovingCallback.bind(this)),this.isEditingInProgress&&this.tooltip.showTime(this.taskDateRange.start,this.taskDateRange.end,C.DomUtils.getAbsolutePositionX(this.baseElement)),this.isEditingInProgress}return!0},h.prototype.onTaskMovingCallback=function(m,v){if(this.taskDateRange.start!==m||this.taskDateRange.end!==v){var b=this.renderHelper.gridLayoutCalculator,x=b.getPosByDate(m),O=b.getPosByDate(v)-x;this.baseElement.style.left=x+"px",this.baseElement.style.width=(O<1?0:O)+"px",this.taskDateRange.start=m,this.taskDateRange.end=v}},h.prototype.confirmMove=function(){this.isTaskUpdateAllowed()&&(this.ganttSettings.editing.allowDependencyInsert||(this.baseElement.className=this.baseElement.className+" hide-dependency"),this.isEditingInProgress&&(this.baseElement.className=h.CLASSNAMES.TASK_EDIT_BOX,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start,end:this.taskDateRange.end}),this.updateWrapInfo(),this.hide(),this.isEditingInProgress=!1))},h.prototype.getCorrectedDate=function(m,v){if(this.ganttSettings.viewType>E.ViewType.SixHours){var b=v.getFullYear(),x=v.getMonth(),O=v.getDate(),k=this.ganttSettings.viewType===E.ViewType.Days?v.getHours():m.getHours(),M=m.getMinutes(),A=m.getSeconds(),F=m.getMilliseconds();return new Date(b,x,O,k,M,A,F)}return v},h.prototype.startDependency=function(m){this.dependencyLine=document.createElement("DIV"),this.dependencyLine.className=h.CLASSNAMES.TASK_EDIT_DEPENDENCY_LINE,this.renderHelper.taskArea.appendChild(this.dependencyLine),this.startPosition=m},h.prototype.processDependency=function(m){this.isEditingInProgress=!0,this.drawline(this.startPosition,m)},h.prototype.endDependency=function(m){this.isEditingInProgress=!1,null!=m&&this.commandManager.createDependencyCommand.execute(this.task.internalId,this.successorId,m);var v=this.dependencyLine.parentNode;v&&v.removeChild(this.dependencyLine),this.dependencyLine=null,this.hideDependencySuccessor(),this.hide()},h.prototype.selectDependency=function(m){this.ganttSettings.editing.allowDependencyDelete&&(this.dependencyId=m)},h.prototype.isDependencySelected=function(m){return this.dependencyId&&this.dependencyId===m},h.prototype.deleteSelectedDependency=function(){this.dependencyId&&this.commandManager.removeDependencyCommand.execute(this.dependencyId)},h.prototype.getTaskWrapperElementInfo=function(m){var v=this.renderHelper.gridLayoutCalculator,b=v.getTaskWrapperElementInfo(m);return b.size.width=v.getTaskWidth(m),b.size.height=v.getTaskHeight(m),b},h.prototype.createElements=function(){this.baseElement=document.createElement("DIV"),this.baseFrame=document.createElement("DIV"),this.baseFrame.className=h.CLASSNAMES.TASK_EDIT_FRAME,this.baseElement.appendChild(this.baseFrame),this.progressEdit=document.createElement("DIV"),this.progressEdit.className=h.CLASSNAMES.TASK_EDIT_PROGRESS,this.baseFrame.appendChild(this.progressEdit),this.progressEdit.appendChild(document.createElement("DIV")),this.dependencyFinish=document.createElement("DIV"),this.dependencyFinish.classList.add(h.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH),y.Browser.TouchUI&&this.dependencyFinish.classList.add(h.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyFinish),this.dependencyStart=document.createElement("DIV"),this.dependencyStart.classList.add(h.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT),y.Browser.TouchUI&&this.dependencyStart.classList.add(h.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyStart),this.startEdit=document.createElement("DIV"),this.startEdit.className=h.CLASSNAMES.TASK_EDIT_START,this.baseFrame.appendChild(this.startEdit),this.endEdit=document.createElement("DIV"),this.endEdit.className=h.CLASSNAMES.TASK_EDIT_END,this.baseFrame.appendChild(this.endEdit),this.dependencySuccessorBaseElement=document.createElement("DIV"),this.dependencySuccessorBaseElement.className=h.CLASSNAMES.TASK_EDIT_BOX_SUCCESSOR,this.dependencySuccessorFrame=document.createElement("DIV"),this.dependencySuccessorFrame.className=h.CLASSNAMES.TASK_EDIT_FRAME_SUCCESSOR,this.dependencySuccessorBaseElement.appendChild(this.dependencySuccessorFrame),this.dependencySuccessorStart=document.createElement("DIV"),this.dependencySuccessorStart.classList.add(h.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH),y.Browser.TouchUI&&this.dependencySuccessorStart.classList.add(h.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorStart),this.dependencySuccessorFinish=document.createElement("DIV"),this.dependencySuccessorFinish.classList.add(h.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT),y.Browser.TouchUI&&this.dependencySuccessorFinish.classList.add(h.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorFinish),this._tooltip=new g.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo),this.attachEvents()},h.prototype.attachEvents=function(){this.onMouseLeaveHandler=function(){this.isEditingInProgress||this.hide()}.bind(this),this.baseElement.addEventListener("mouseleave",this.onMouseLeaveHandler)},h.prototype.drawline=function(m,v){if(m.x>v.x){var b=v;v=m,m=b}var x=Math.atan((m.y-v.y)/(v.x-m.x));x=-(x=180*x/Math.PI);var O=Math.sqrt((m.x-v.x)*(m.x-v.x)+(m.y-v.y)*(m.y-v.y));this.dependencyLine.style.left=m.x+"px",this.dependencyLine.style.top=m.y+"px",this.dependencyLine.style.width=O+"px",this.dependencyLine.style.transform="rotate("+x+"deg)"},h.prototype.canUpdateTask=function(){return!this.viewModel.isTaskToCalculateByChildren(this.task.internalId)},h.prototype.isTaskUpdateAllowed=function(){var m=this.ganttSettings.editing;return m.enabled&&m.allowTaskUpdate},h.prototype.detachEvents=function(){var m;null===(m=this.baseElement)||void 0===m||m.removeEventListener("mouseleave",this.onMouseLeaveHandler)},h.CLASSNAMES={TASK_EDIT_BOX:"dx-gantt-task-edit-wrapper",TASK_EDIT_BOX_CUSTOM:"dx-gantt-task-edit-wrapper-custom",TASK_EDIT_FRAME:"dx-gantt-task-edit-frame",TASK_EDIT_PROGRESS:"dx-gantt-task-edit-progress",TASK_EDIT_DEPENDENCY_RIGTH:"dx-gantt-task-edit-dependency-r",TASK_EDIT_DEPENDENCY_LEFT:"dx-gantt-task-edit-dependency-l",TASK_EDIT_START:"dx-gantt-task-edit-start",TASK_EDIT_END:"dx-gantt-task-edit-end",TASK_EDIT_DEPENDENCY_LINE:"dx-gantt-task-edit-dependency-line",TASK_EDIT_BOX_SUCCESSOR:"dx-gantt-task-edit-wrapper-successor",TASK_EDIT_FRAME_SUCCESSOR:"dx-gantt-task-edit-frame-successor",TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH:"dx-gantt-task-edit-successor-dependency-r",TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT:"dx-gantt-task-edit-successor-dependency-l",TASK_EDIT_TOUCH:"dx-gantt-edit-touch",TASK_EDIT_HIDE_UPDATING:"hide-updating"},h}();D.TaskEditController=c},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GanttView=void 0;var E=w(75),I=w(10),C=w(76),y=w(43),g=w(19),p=w(8),d=w(15),c=w(123),h=w(124),m=w(126),v=w(137),b=w(1),x=w(139),O=w(145),k=w(152),M=w(157),A=w(185),F=w(12),P=w(68),N=w(46),B=w(189),V=w(190),H=w(192),W=w(4),q=w(193),G=w(210),J=w(9),ne=w(3),ae=w(5),ge=w(211),pe=w(20),le=w(2),ce=function(){function oe(K,Q,de){var Oe=this;this.currentSelectedTaskID="",this.isFocus=!1,this._updateWithModelReloadLockedCounter=0,this.scaleCount=2,this.tickSize=new F.Size(0,0),this.currentZoom=1,this.stripLinesUpdaterId=null,this.ganttOwner=Q,this.settings=A.Settings.parse(de),this.initValidationController(),this.renderHelper=new M.RenderHelper(this),this.renderHelper.initMarkup(K),this.loadOptionsFromGanttOwner(),this.renderHelper.init(this.tickSize,this.range,this.settings.viewType,this.viewModel,this.settings.firstDayOfWeek),this.commandManager=new C.CommandManager(this),this.barManager=new E.BarManager(this.commandManager,this.ganttOwner.bars),this.initTaskEditController(),this.history=new v.History(this._getHistoryListener()),this.initFullScreenModeHelper(),this.updateView(),this._scrollTimeOut=setTimeout(function(){Oe.scrollLeftByViewType()},0),this.initializeStripLinesUpdater(),this.initGanttViewApi()}return oe.prototype.initGanttViewApi=function(){this.ganttViewApi=new G.GanttViewApi(this)},oe.prototype._getHistoryListener=function(){return{onTransactionStart:this.onHistoryTransactionStart.bind(this),onTransactionEnd:this.onHistoryTransactionEnd.bind(this)}},oe.prototype.onHistoryTransactionStart=function(){this.lockUpdateWithReload()},oe.prototype.onHistoryTransactionEnd=function(){this.unlockUpdateWithReload()},oe.prototype.lockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter++},oe.prototype.unlockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter--,0===this._updateWithModelReloadLockedCounter&&this._pendingUpdateInfo&&(this.updateWithDataReload(this._pendingUpdateInfo.keepExpandState),this._pendingUpdateInfo=null)},oe.prototype.initValidationController=function(){var K=this,Q=H.ValidationControllerSettings.parse({getViewModel:function(){return K.viewModel},getHistory:function(){return K.history},getModelManipulator:function(){return K.modelManipulator},getRange:function(){return K.range},getValidationSettings:function(){return K.settings.validation},updateOwnerInAutoParentMode:function(){K.updateOwnerInAutoParentMode()},getIsValidateDependenciesRequired:function(){return K.isValidateDependenciesRequired()}});this.validationController=new V.ValidationController(Q)},oe.prototype.initTaskEditController=function(){var K=this,Q=B.TaskEditSettings.parse({destroyTemplate:function(de){K.destroyTemplate(de)},formatDate:function(de){return K.getDateFormat(de)},getRenderHelper:function(){return K.renderHelper},getGanttSettings:function(){return K.settings},getViewModel:function(){return K.viewModel},getCommandManager:function(){return K.commandManager},getModelManipulator:function(){return K.modelManipulator},getValidationController:function(){return K.validationController}});this.taskEditController=new N.TaskEditController(Q)},Object.defineProperty(oe.prototype,"taskAreaEventsListener",{get:function(){var K;return null!==(K=this._taskAreaEventsListener)&&void 0!==K||(this._taskAreaEventsListener=new ge.TaskAreaEventsListener(this)),this._taskAreaEventsListener},enumerable:!1,configurable:!0}),oe.prototype.initFullScreenModeHelper=function(){var K=this,Q=c.FullScreenHelperSettings.parse({getMainElement:function(){return K.getOwnerControlMainElement()},adjustControl:function(){K.adjustOwnerControl()}});this.fullScreenModeHelper=new h.FullScreenModeHelper(Q)},oe.prototype.getDateRange=function(K,Q){var de=this.getVisibleAreaTime(),Oe=this.settings.startDateRange||d.DateUtils.adjustStartDateByViewType(new Date(K.getTime()-de),this.settings.viewType,this.settings.firstDayOfWeek),Ae=this.settings.endDateRange||d.DateUtils.adjustEndDateByViewType(new Date(Q.getTime()+de),this.settings.viewType,this.settings.firstDayOfWeek);return this.settings.startDateRange&&Oe>Ae?Ae=Oe:this.settings.endDateRange&&Oe>Ae&&(Oe=Ae),new g.DateRange(Oe,Ae)},oe.prototype.getVisibleAreaTime=function(){return Math.ceil(this.renderHelper.getTaskAreaContainerWidth()/this.tickSize.width)*d.DateUtils.getTickTimeSpan(this.settings.viewType)},oe.prototype.zoomIn=function(K){void 0===K&&(K=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomIn(K)},oe.prototype.zoomOut=function(K){void 0===K&&(K=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomOut(K)},oe.prototype.scrollToDate=function(K){if(K){var Q=K instanceof Date?d.DateUtils.getOrCreateUTCDate(K):d.DateUtils.parse(K);this.scrollToDateCore(Q,0)}},oe.prototype.showDialog=function(K,Q,de,Oe){this.ganttOwner.showDialog(K,Q,de,Oe)},oe.prototype.showPopupMenu=function(K){this.ganttOwner.showPopupMenu(K)},oe.prototype.hidePopupMenu=function(){this.ganttOwner.hidePopupMenu&&this.ganttOwner.hidePopupMenu()},oe.prototype.collapseAll=function(){this.ganttOwner.collapseAll()},oe.prototype.expandAll=function(){this.ganttOwner.expandAll()},oe.prototype.onGanttViewContextMenu=function(K,Q,de){return this.ganttOwner.onGanttViewContextMenu(K,Q,de)},oe.prototype.changeGanttTaskSelection=function(K,Q){this.ganttOwner.changeGanttTaskSelection(K,Q)},oe.prototype.hideTaskEditControl=function(){this.taskEditController.hide()},oe.prototype.scrollLeftByViewType=function(){var K=d.DateUtils.roundStartDate(this.dataRange.start,this.settings.viewType);this.scrollToDateCore(K,1)},oe.prototype.scrollToDateCore=function(K,Q){this.renderHelper.setTaskAreaContainerScrollLeftToDate(K,Q)},oe.prototype.onVisualModelChanged=function(){this.resetAndUpdate()},oe.prototype.initializeStripLinesUpdater=function(){var K=this;this.settings.stripLines.showCurrentTime&&(this.stripLinesUpdaterId=setInterval(function(){K.renderHelper.recreateStripLines()},Math.max(this.settings.stripLines.currentTimeUpdateInterval,100)))},oe.prototype.clearStripLinesUpdater=function(){this.stripLinesUpdaterId&&clearInterval(this.stripLinesUpdaterId),this.stripLinesUpdaterId=null},oe.prototype.getGanttViewStartDate=function(K){if(!K)return new Date;var Q=K.map(function(de){return"string"==typeof de.start?new Date(de.start):de.start}).filter(function(de){return(0,b.isDefined)(de)});return Q.length>0?Q.reduce(function(de,Oe){return Oe<de?Oe:de},Q[0]):new Date},oe.prototype.getGanttViewEndDate=function(K){if(!K)return new Date;var Q=K.map(function(de){return"string"==typeof de.end?new Date(de.end):de.end}).filter(function(de){return(0,b.isDefined)(de)});return Q.length>0?Q.reduce(function(de,Oe){return Oe>de?Oe:de},Q[0]):new Date},oe.prototype.getTask=function(K){return this.getViewItem(K)?.task},oe.prototype.getViewItem=function(K){var Q;return null===(Q=this.viewModel)||void 0===Q?void 0:Q.items[K]},oe.prototype.isValidateDependenciesRequired=function(){return this.settings.validation.validateDependencies&&this.settings.showDependencies},oe.prototype.updateTickSizeWidth=function(){this.tickSize.width=this.renderHelper.etalonScaleItemWidths*this.currentZoom},oe.prototype.updateView=function(){this.onBeginUpdateView(),this.renderHelper.setTimeScaleContainerScrollLeft(this.taskAreaContainerScrollLeft),this.processScroll(!1),this.processScroll(!0),this.ganttOwner.onGanttScroll(this.taskAreaContainerScrollTop),this.onEndUpdateView()},oe.prototype.onBeginUpdateView=function(){this[oe.taskAreaScrollTopKey]=this.renderHelper.taskAreaContainerScrollTop,this[oe.taskAreaScrollLeftKey]=this.renderHelper.taskAreaContainerScrollLeft},oe.prototype.onEndUpdateView=function(){delete this[oe.taskAreaScrollTopKey],delete this[oe.taskAreaScrollLeftKey],delete this[oe.taskTextHeightKey]},Object.defineProperty(oe.prototype,"taskAreaContainerScrollTop",{get:function(){var K;return null!==(K=this[oe.taskAreaScrollTopKey])&&void 0!==K?K:this.renderHelper.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"taskAreaContainerScrollLeft",{get:function(){var K;return null!==(K=this[oe.taskAreaScrollLeftKey])&&void 0!==K?K:this.renderHelper.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),oe.prototype.processScroll=function(K){this.hideTaskEditControl(),this.renderHelper.processScroll(K)},oe.prototype.allowTaskAreaBorders=function(K){return K?this.settings.areHorizontalBordersEnabled:this.settings.areVerticalBordersEnabled},oe.prototype.getScaleItemText=function(K,Q){return this.renderHelper.getScaleItemText(K,Q)},oe.prototype.getTaskText=function(K){return this.renderHelper.getTaskText(K)},oe.prototype.rowHasChildren=function(K){return this.getViewItem(K)?.children.length>0},oe.prototype.rowHasSelection=function(K){return this.getViewItem(K)?.selected},oe.prototype.getAllVisibleTaskIndices=function(K,Q){return this.viewModel.getAllVisibleTaskIndices(K,Q)},oe.prototype.getVisibleDependencyKeysByTaskRange=function(K){var Q=this.viewModel,de=K.map(function(Oe){return Q.tasks.items[Oe].internalId});return Q.dependencies.items.filter(function(Oe){return de.indexOf(Oe.successorId)>-1||de.indexOf(Oe.predecessorId)>-1}).map(function(Oe){return Oe.internalId})},oe.prototype.getTreeListTableStyle=function(){var K,Q;return null===(Q=(K=this.ganttOwner).getTreeListTableStyle)||void 0===Q?void 0:Q.call(K)},oe.prototype.getTreeListColCount=function(){var K,Q;return null===(Q=(K=this.ganttOwner).getTreeListColCount)||void 0===Q?void 0:Q.call(K)},oe.prototype.getTreeListHeaderInfo=function(K){var Q,de;return null===(de=(Q=this.ganttOwner).getTreeListHeaderInfo)||void 0===de?void 0:de.call(Q,K)},oe.prototype.getTreeListCellInfo=function(K,Q,de){var Oe,Ae;return null===(Ae=(Oe=this.ganttOwner).getTreeListCellInfo)||void 0===Ae?void 0:Ae.call(Oe,K,Q,de)},oe.prototype.getTreeListEmptyDataCellInfo=function(){var K,Q;return null===(Q=(K=this.ganttOwner).getTreeListEmptyDataCellInfo)||void 0===Q?void 0:Q.call(K)},oe.prototype.exportToPdf=function(K){var Q;return null!==(Q=K.docCreateMethod)&&void 0!==Q||(K.docCreateMethod=this.getDefaultPdfDocCreateMethod()),new k.PdfGanttExporter(new m.GanttExportCalculator(this,K)).export()},oe.prototype.getDefaultPdfDocCreateMethod=function(){var K;return null===(K=window.jspdf)||void 0===K?void 0:K.jsPDF},oe.prototype.getTaskDependencies=function(K){return this.viewModel.dependencies.items.filter(function(Q){return Q.predecessorId==K||Q.successorId==K})},oe.prototype.isHighlightRowElementAllowed=function(K){var Q=this.getViewItem(K);return K%2!=0&&this.settings.areAlternateRowsEnabled||Q?.children.length>0},oe.prototype.calculateAutoViewType=function(K,Q){var de=(Q.getTime()-K.getTime())/36e5;return de>8760?W.ViewType.Years:de>720?W.ViewType.Months:de>168?W.ViewType.Weeks:de>24?W.ViewType.Days:de>6?W.ViewType.SixHours:de>1?W.ViewType.Hours:W.ViewType.TenMinutes},oe.prototype.getExternalTaskAreaContainer=function(K){return this.ganttOwner.getExternalTaskAreaContainer(K)},oe.prototype.prepareExternalTaskAreaContainer=function(K,Q){return this.ganttOwner.prepareExternalTaskAreaContainer(K,Q)},oe.prototype.getHeaderHeight=function(){return this.ganttOwner.getHeaderHeight()},oe.prototype.changeTaskExpanded=function(K,Q){var de=this.getTaskByPublicId(K);de&&this.viewModel.changeTaskExpanded(de.internalId,Q)},oe.prototype.expandTask=function(K){this.viewModel.changeTaskExpanded(K,!0)},oe.prototype.collapseTask=function(K){this.viewModel.changeTaskExpanded(K,!1)},oe.prototype.showTask=function(K){this.viewModel.changeTaskVisibility(K,!0)},oe.prototype.hideTask=function(K){this.viewModel.changeTaskVisibility(K,!1)},oe.prototype.getTaskVisibility=function(K){return this.viewModel.getTaskVisibility(K)},oe.prototype.unselectCurrentSelectedTask=function(){this.unselectTask(this.currentSelectedTaskID)},oe.prototype.getTaskSelected=function(K){return this.viewModel.getTaskSelected(K)},oe.prototype.setViewType=function(K,Q){void 0===Q&&(Q=!0),this.ganttViewApi.setViewType(K,Q)},oe.prototype.setViewTypeRange=function(K,Q){this.ganttViewApi.setViewTypeRange(K,Q)},oe.prototype.setTaskTitlePosition=function(K){this.settings.taskTitlePosition!==K&&(this.settings.taskTitlePosition=K,this.resetAndUpdate())},oe.prototype.setShowResources=function(K){this.settings.showResources!==K&&(this.settings.showResources=K,this.resetAndUpdate())},oe.prototype.toggleResources=function(){this.setShowResources(!this.settings.showResources)},oe.prototype.setShowDependencies=function(K){this.settings.showDependencies!==K&&(this.settings.showDependencies=K,this.resetAndUpdate())},oe.prototype.toggleDependencies=function(){this.setShowDependencies(!this.settings.showDependencies)},oe.prototype.setFirstDayOfWeek=function(K){this.settings.firstDayOfWeek!==K&&(this.settings.firstDayOfWeek=K,this.resetAndUpdate())},oe.prototype.setStartDateRange=function(K){p.DateTimeUtils.areDatesEqual(this.settings.startDateRange,K)||(this.settings.startDateRange=new Date(K),this.resetAndUpdate())},oe.prototype.setEndDateRange=function(K){p.DateTimeUtils.areDatesEqual(this.settings.endDateRange,K)||(this.settings.endDateRange=new Date(K),this.resetAndUpdate())},oe.prototype.loadOptionsFromGanttOwner=function(){var K,Q=this;this.tickSize.height=this.ganttOwner.getRowHeight();var de=this.ganttOwner.getGanttTasksData();this.dataRange=new g.DateRange(this.getGanttViewStartDate(de),this.getGanttViewEndDate(de)),null==this.settings.viewType&&(this.settings.viewType=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.updateTickSizeWidth(),this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.dispatcher=new x.ModelChangesDispatcher;var Oe=this.ganttOwner.getModelChangesListener();Oe&&this.dispatcher.onModelChanged.add(Oe),this.viewModel=new q.ViewVisualModel(this,de,this.ganttOwner.getGanttDependenciesData(),this.ganttOwner.getGanttResourcesData(),this.ganttOwner.getGanttResourceAssignmentsData(),this.range,this.ganttOwner.getGanttWorkTimeRules()),this.modelManipulator=new O.ModelManipulator(this.viewModel,this.dispatcher),null===(K=this.history)||void 0===K||K.historyItems.forEach(function(Ae){return Ae.setModelManipulator(Q.modelManipulator)})},oe.prototype.resetAndUpdate=function(){this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.viewModel.updateRange(this.range),this.renderHelper.resetAndUpdate(this.tickSize,this.range,this.settings.viewType,this.viewModel,this.settings.firstDayOfWeek),I.Browser.IE&&this.taskEditController.createElements(),this.updateView()},oe.prototype.cleanMarkup=function(){this.renderHelper.taskAreaManagerDetachEvents(),this.taskEditController.detachEvents(),this.clearStripLinesUpdater(),this.renderHelper.reset(),clearTimeout(this._scrollTimeOut)},oe.prototype.checkAndProcessModelChanges=function(){var K=this.ganttOwner.getGanttTasksData(),Q=this.viewModel.refreshTaskDataIfRequires(K);return Q&&this.resetAndUpdate(),Q},oe.prototype.updateHistoryObsoleteInsertedKey=function(K,Q,de){var Oe;null===(Oe=this.history)||void 0===Oe||Oe.updateObsoleteInsertedKey(K,Q,de),de===le.GanttDataObjectNames.dependency&&this.renderHelper.updateRenderedConnectorLinesId(K,Q)},oe.prototype.updateRowHeights=function(K){if(this.tickSize.height!==K){this.tickSize.height=K;var Q=this.renderHelper.getTaskAreaContainerScrollLeft();this.resetAndUpdate(),this.renderHelper.setTaskAreaContainerScrollLeft(Q)}},oe.prototype.selectTask=function(K){this.selectDependency(null),this.viewModel.changeTaskSelected(K,!0),this.currentSelectedTaskID=K,this.updateBarManager()},oe.prototype.unselectTask=function(K){this.viewModel.changeTaskSelected(K,!1),this.updateBarManager()},oe.prototype.selectTaskById=function(K){this.unselectCurrentSelectedTask();var Q=this.getTaskByPublicId(K);Q&&this.selectTask(Q.internalId)},oe.prototype.selectDependency=function(K){this.taskEditController.selectDependency(K),this.renderHelper.createConnectorLines()},oe.prototype.getTaskAreaContainer=function(){return this.renderHelper.taskAreaContainer},oe.prototype.setWidth=function(K){this.renderHelper.setMainElementWidth(K)},oe.prototype.setHeight=function(K){this.renderHelper.setMainElementHeight(K)},oe.prototype.setAllowSelection=function(K){this.settings.allowSelectTask=K},oe.prototype.setEditingSettings=function(K){this.settings.editing=K,this.updateBarManager()},oe.prototype.setValidationSettings=function(K){this.settings.validation=K},oe.prototype.setRowLinesVisible=function(K){this.settings.areHorizontalBordersEnabled=K,this.renderHelper.prepareTaskAreaContainer(),this.resetAndUpdate()},oe.prototype.setStripLines=function(K){this.settings.stripLines=P.StripLineSettings.parse(K),this.clearStripLinesUpdater(),this.initializeStripLinesUpdater(),this.renderHelper.recreateStripLines()},oe.prototype.deleteTask=function(K){var Q=this.getTaskByPublicId(K.toString());Q&&this.commandManager.removeTaskCommand.execute(Q.internalId,!1,!0)},oe.prototype.insertTask=function(K){if(K){var Q=null!=K.parentId?String(K.parentId):null,de=this.getTaskByPublicId(Q),Oe=this.viewModel.getRootTaskId(),Ae="string"==typeof K.start?new Date(K.start):K.start,Ne="string"==typeof K.end?new Date(K.end):K.end,Qe={parentId:Oe&&Q===Oe?Q:de?.internalId,title:K.title,start:Ae,end:Ne,progress:parseInt(K.progress)||0,color:K.color};if(this.commandManager.createTaskCommand.execute(Qe))return this.getLastInsertedTaskId()}return""},oe.prototype.updateTask=function(K,Q){var de=this.getTaskByPublicId(K.toString()),Oe=this._getTaskDataForUpdate(Q,de);Oe&&this.commandManager.updateTaskCommand.execute(de.internalId,Oe)},oe.prototype.getTaskData=function(K){var Q=this.getTaskByPublicId(K.toString());if(Q)return this.viewModel.getTaskObjectForDataSource(Q)},oe.prototype.insertDependency=function(K){if(K){var Q=String(K.predecessorId),de=this.getTaskByPublicId(Q),Oe=String(K.successorId),Ae=this.getTaskByPublicId(Oe),Ne=K.type;de&&Ae&&this.validationController.canCreateDependency(Q,Oe)&&this.commandManager.createDependencyCommand.execute(de.internalId,Ae.internalId,Ne)}},oe.prototype.deleteDependency=function(K){var Q=this.viewModel.convertPublicToInternalKey("dependency",K);(0,b.isDefined)(Q)&&this.commandManager.removeDependencyCommand.execute(Q)},oe.prototype.getDependencyData=function(K){return this.viewModel.getDependencyObjectForDataSource(K)},oe.prototype.insertResource=function(K,Q){var de=this;K&&this.commandManager.createResourceCommand.execute(String(K.text),K.color&&String(K.color),function(Oe){if((0,b.isDefined)(Q))for(var Ae=0;Ae<Q.length;Ae++)de.assignResourceToTask(Oe,Q[Ae])})},oe.prototype.deleteResource=function(K){var Q=this.viewModel.convertPublicToInternalKey("resource",K);(0,b.isDefined)(Q)&&this.commandManager.removeResourceCommand.execute(Q)},oe.prototype.assignResourceToTask=function(K,Q){var de=this.viewModel.convertPublicToInternalKey("resource",K),Oe=this.viewModel.convertPublicToInternalKey("task",Q);(0,b.isDefined)(de)&&(0,b.isDefined)(Oe)&&this.commandManager.assignResourceCommand.execute(de,Oe)},oe.prototype.unassignResourceFromTask=function(K,Q){var de=this.viewModel.findAssignment(K,Q);de&&this.commandManager.deassignResourceCommand.execute(de.internalId)},oe.prototype.unassignAllResourcesFromTask=function(K){var Q=this,de=this.viewModel.convertPublicToInternalKey("task",K);this.viewModel.findAllTaskAssignments(de).forEach(function(Oe){return Q.commandManager.deassignResourceCommand.execute(Oe.internalId)})},oe.prototype.getResourceData=function(K){return this.viewModel.getResourceObjectForDataSource(K)},oe.prototype.getResourceAssignmentData=function(K){return this.viewModel.getResourceAssignmentObjectForDataSource(K)},oe.prototype.getTaskResources=function(K){var Q=this.viewModel,de=Q.getItemByPublicId("task",K);return de&&Q.getAssignedResources(de).items},oe.prototype.getVisibleTaskKeys=function(){return this.viewModel.getVisibleTasks().map(function(K){return K.id})},oe.prototype.getVisibleDependencyKeys=function(){return this.viewModel.getVisibleDependencies().map(function(K){return K.id})},oe.prototype.getVisibleResourceKeys=function(){return this.viewModel.getVisibleResources().map(function(K){return K.id})},oe.prototype.getVisibleResourceAssignmentKeys=function(){return this.viewModel.getVisibleResourceAssignments().map(function(K){return K.id})},oe.prototype.getTasksExpandedState=function(){return this.viewModel.getTasksExpandedState()},oe.prototype.applyTasksExpandedState=function(K){this.viewModel.applyTasksExpandedState(K)},oe.prototype.updateWithDataReload=function(K){if(this._updateWithModelReloadLockedCounter>0)this._pendingUpdateInfo={keepExpandState:K};else{var Q=K&&this.getTasksExpandedState();this.loadOptionsFromGanttOwner(),K?this.applyTasksExpandedState(Q):this.resetAndUpdate();var de=pe.DialogBase.activeInstance;de&&de.canRefresh&&"TaskEdit"===de.getDialogName()&&de.refresh()}},oe.prototype.onBrowserWindowResize=function(){this.fullScreenModeHelper.isInFullScreenMode?this.fullScreenModeHelper.adjustControlInFullScreenMode():this.adjustOwnerControl()},oe.prototype.setTaskValue=function(K,Q,de){var Oe=this.commandManager.updateTaskCommand,Ae=this.getTaskByPublicId(K),Ne={};return Ae&&("title"===Q&&(Ne[Q]=de||""),"progress"===Q&&(Ne[Q]=de),"start"===Q&&(Ne[Q]=p.DateTimeUtils.getMinDate(de,Ae.end)),"end"===Q&&(Ne[Q]=p.DateTimeUtils.getMaxDate(de,Ae.start))),Object.keys(Ne).length>0&&Oe.execute(Ae.internalId,Ne)},oe.prototype.getLastInsertedTaskId=function(){var K=this.history.historyItems.filter(function(de){return de instanceof y.CreateTaskHistoryItem}),Q=K[K.length-1];return Q&&Q.insertedKey},oe.prototype.getTaskByPublicId=function(K){return this.viewModel.tasks.getItemByPublicId(K)},oe.prototype.getPrevTask=function(K){var Q=this.viewModel.findItem(K),de=(Q.parent||this.viewModel.root).children.indexOf(Q)-1;return de>-1?Q.parent.children[de].task:Q.parent.task},oe.prototype.getTaskIdByInternalId=function(K){var Q=this.viewModel.findItem(K),de=Q&&Q.task;return de?de.id:null},oe.prototype.isTaskHasChildren=function(K){var Q=this.viewModel.findItem(K);return Q&&Q.children.length>0},oe.prototype.requireFirstLoadParentAutoCalc=function(){var K=this.ganttOwner;return K.getRequireFirstLoadParentAutoCalc&&K.getRequireFirstLoadParentAutoCalc()},oe.prototype.updateOwnerInAutoParentMode=function(){this.viewModel.parentAutoCalc&&this.dispatcher.notifyParentDataRecalculated(this.viewModel.getCurrentTaskData())},oe.prototype.getOwnerControlMainElement=function(){var K=this.ganttOwner;return K.getMainElement&&K.getMainElement()},oe.prototype.adjustOwnerControl=function(){var K=this.ganttOwner;K.adjustControl&&K.adjustControl()},oe.prototype.applySettings=function(K,Q){void 0===Q&&(Q=!1);var de=A.Settings.parse(K),Oe=Q||this.settings.equal(de);this.settings=de,Oe||this.resetAndUpdate()},oe.prototype.getDataUpdateErrorCallback=function(){var K=this,Q=this.history,de=Q.getCurrentProcessingItemInfo();return function(){K.dispatcher.lock(),Q.rollBackAndRemove(de),K.dispatcher.unlock(),K.updateBarManager()}},oe.prototype.setTaskTooltipContentTemplate=function(K){this.settings.taskTooltipContentTemplate=K},oe.prototype.setTaskProgressTooltipContentTemplate=function(K){this.settings.taskProgressTooltipContentTemplate=K},oe.prototype.setTaskTimeTooltipContentTemplate=function(K){this.settings.taskTimeTooltipContentTemplate=K},oe.prototype.setTaskContentTemplate=function(K){this.settings.taskContentTemplate=K},oe.prototype.updateBarManager=function(){this.barManager.updateItemsState([])},oe.prototype.onTaskAreaClick=function(K,Q){var de,Oe=this.viewModel.items[K];return Oe&&this.onTaskClick(null===(de=Oe.task)||void 0===de?void 0:de.id,Q)},oe.prototype.onTaskAreaDblClick=function(K,Q){var de=this.viewModel.items[K];de&&this.onTaskDblClick(de.task.id,Q)&&this.commandManager.showTaskEditDialog.execute(de.task)},oe.prototype.onTaskAreaContextMenu=function(K,Q,de){var Oe,Ae,Qe=Q,$e=this.viewModel,_e="dependency"===de?$e.convertInternalToPublicKey("dependency",J.EvtUtils.getEventSource(Q).getAttribute("dependency-id")):null===(Ae=null===(Oe=$e.items[K])||void 0===Oe?void 0:Oe.task)||void 0===Ae?void 0:Ae.id;if(this.onGanttViewContextMenu(Q,_e,de)){var xe={event:Q,type:de,key:_e,position:new ae.Point(J.EvtUtils.getEventX(Qe),J.EvtUtils.getEventY(Qe))};this.showPopupMenu(xe)}},oe.prototype.onTaskSelectionChanged=function(K,Q){var de=this,Oe=this.viewModel.items[K];this.isFocus=ne.DomUtils.isItParent(this.renderHelper.taskArea,J.EvtUtils.getEventSource(Q)),Oe&&this.isFocus&&this.settings.allowSelectTask&&setTimeout(function(){de.changeGanttTaskSelection(Oe.task.id,!0)},0)},oe.prototype.onTaskClick=function(K,Q){return!this.ganttOwner.onTaskClick||this.ganttOwner.onTaskClick(K,Q)},oe.prototype.onTaskDblClick=function(K,Q){return!this.ganttOwner.onTaskDblClick||this.ganttOwner.onTaskDblClick(K,Q)},oe.prototype.getDateFormat=function(K){return this.ganttOwner.getFormattedDateText?this.ganttOwner.getFormattedDateText(K):this.getDefaultDateFormat(K)},oe.prototype.getDefaultDateFormat=function(K){return("0"+K.getDate()).slice(-2)+"/"+("0"+(K.getMonth()+1)).slice(-2)+"/"+K.getFullYear()+" "+("0"+K.getHours()).slice(-2)+":"+("0"+K.getMinutes()).slice(-2)},oe.prototype.destroyTemplate=function(K){this.ganttOwner.destroyTemplate?this.ganttOwner.destroyTemplate(K):K.innerHTML=""},oe.prototype.onTaskAreaSizeChanged=function(K){this.ganttOwner.onTaskAreaSizeChanged&&this.ganttOwner.onTaskAreaSizeChanged(K)},oe.prototype.showTaskEditDialog=function(){this.commandManager.showTaskEditDialog.execute()},oe.prototype.showTaskDetailsDialog=function(K){var Q=this.getTaskByPublicId(K);Q&&this.commandManager.showTaskEditDialog.execute(Q,!0)},oe.prototype.showResourcesDialog=function(){this.commandManager.showResourcesDialog.execute()},oe.prototype.getCommandByKey=function(K){return this.commandManager.getCommand(K)},oe.prototype._getTaskDataForUpdate=function(K,Q){var de={};return Q&&K&&((0,b.isDefined)(K.title)&&K.title!==Q.title&&(de.title=K.title),(0,b.isDefined)(K.progress)&&K.progress!==Q.progress&&(de.progress=K.progress),(0,b.isDefined)(K.start)&&K.start!==Q.start&&(de.start=K.start),(0,b.isDefined)(K.end)&&K.end!==Q.end&&(de.end=K.end),(0,b.isDefined)(K.color)&&K.color!==Q.color&&(de.color=K.color)),Object.keys(de).length>0?de:null},oe.prototype.updateViewDataRange=function(){var K=this.viewModel,Q=K.getTaskMinStart(),de=K.getTaskMaxEnd(),Oe=Q.getTime()<this.dataRange.start.getTime(),Ae=de.getTime()>this.dataRange.end.getTime();Oe&&(this.dataRange.start=Q),Ae&&(this.dataRange.end=de),(Oe||Ae)&&this.resetAndUpdate()},oe.taskAreaScrollLeftKey=(oe.cachedPrefix="cached_")+"taskAreaScrollLeft",oe.taskAreaScrollTopKey=oe.cachedPrefix+"taskAreaScrollTop",oe.taskTextHeightKey=oe.cachedPrefix+"taskTextHeight",oe}();D.GanttView=ce},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Resource=void 0;var E=w(0),I=w(1),C=function(y){function g(){var p=y.call(this)||this;return p.text="",p.color="",p}return E.__extends(g,y),g.prototype.assignFromObject=function(p){(0,I.isDefined)(p)&&(y.prototype.assignFromObject.call(this,p),this.text=p.text,(0,I.isDefined)(p.color)&&(this.color=p.color))},g}(w(2).DataObject);D.Resource=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceAssigningArguments=void 0;var E=w(0),I=function(C){function y(g,p){var d=C.call(this,null)||this;return d.values={resourceId:g,taskId:p},d}return E.__extends(y,C),Object.defineProperty(y.prototype,"resourceId",{get:function(){return this.values.resourceId},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"taskId",{get:function(){return this.values.taskId},enumerable:!1,configurable:!0}),y}(w(11).BaseArguments);D.ResourceAssigningArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.AssignResourceHistoryItem=void 0;var E=w(0),I=w(14),C=w(2),y=w(18),g=function(p){function d(c,h,m){var v=p.call(this,c)||this;return v.resourceId=h,v.taskId=m,v}return E.__extends(d,p),d.prototype.redo=function(){var c;null!==(c=this.insertedKey)&&void 0!==c||(this.insertedKey=y.MathUtils.generateGuid()),this.modelManipulator.resource.assign(this.resourceId,this.taskId,this.insertedKey)},d.prototype.undo=function(){this.modelManipulator.resource.deassig(this.insertedKey)},Object.defineProperty(d.prototype,"keyUpdaters",{get:function(){var c=this;return[{objectType:C.GanttDataObjectNames.resourceAssignment,getKey:function(){return c.insertedKey},updateKey:function(h){return c.insertedKey=h}},{objectType:C.GanttDataObjectNames.task,getKey:function(){return c.taskId},updateKey:function(h){return c.taskId=h}},{objectType:C.GanttDataObjectNames.resource,getKey:function(){return c.resourceId},updateKey:function(h){return c.resourceId=h}}]},enumerable:!1,configurable:!0}),d}(I.HistoryItem);D.AssignResourceHistoryItem=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DependencyCommandBase=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p}(I.CommandBase);D.DependencyCommandBase=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskInsertingArguments=void 0;var E=w(0),I=function(C){function y(g,p){var d=C.call(this,g)||this;return d.values=p??{},d}return E.__extends(y,C),Object.defineProperty(y.prototype,"start",{get:function(){return this.values.start},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"end",{get:function(){return this.values.end},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"title",{get:function(){return this.values.title},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"progress",{get:function(){return this.values.progress},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"parentId",{get:function(){return this.values.parentId},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),y}(w(11).BaseArguments);D.TaskInsertingArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.UpdateTaskHistoryItem=void 0;var E=w(0),I=w(2),C=w(14),y=w(54),g=function(p){function d(c,h,m){var v=p.call(this,c)||this;return v.taskId=h,v.newValues=m,v}return E.__extends(d,p),d.prototype.redo=function(){var c=this.modelManipulator.task.update(this.taskId,this.newValues);this.oldState=new y.HistoryItemState(this.taskId,c)},d.prototype.undo=function(){this.modelManipulator.task.update(this.taskId,this.oldState.value)},Object.defineProperty(d.prototype,"keyUpdaters",{get:function(){var c=this;return[{objectType:I.GanttDataObjectNames.task,getKey:function(){return c.taskId},updateKey:function(h){return c.taskId=h}}]},enumerable:!1,configurable:!0}),d}(C.HistoryItem);D.UpdateTaskHistoryItem=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.HistoryItemState=void 0,D.HistoryItemState=function(I,C){this.id=I,this.value=C}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Time=void 0;var E=function(){function I(C,y,g,p){void 0===C&&(C=0),void 0===y&&(y=0),void 0===g&&(g=0),void 0===p&&(p=0),this._hour=0,this._min=0,this._sec=0,this._msec=0,this._fullmsec=0,this.hour=C,this.min=y,this.sec=g,this.msec=p}return Object.defineProperty(I.prototype,"hour",{get:function(){return this._hour},set:function(C){C>=0&&C<24&&(this._hour=C,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"min",{get:function(){return this._min},set:function(C){C>=0&&C<60&&(this._min=C,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"sec",{get:function(){return this._sec},set:function(C){C>=0&&C<60&&(this._sec=C,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"msec",{get:function(){return this._msec},set:function(C){C>=0&&C<1e3&&(this._msec=C,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),I.prototype.updateFullMilleconds=function(){this._fullmsec=1e3*(60*(60*this._hour+this._min)+this._sec)+this._msec},I.prototype.getTimeInMilleconds=function(){return this._fullmsec},I}();D.Time=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TimeRange=void 0;var E=w(8),I=function(){function C(y,g){E.DateTimeUtils.caclTimeDifference(y,g)>=0?(this._start=y,this._end=g):(this._start=g,this._end=y)}return Object.defineProperty(C.prototype,"start",{get:function(){return this._start},set:function(y){y&&E.DateTimeUtils.caclTimeDifference(y,this._end)>=0&&(this._start=y)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"end",{get:function(){return this._end},set:function(y){y&&E.DateTimeUtils.caclTimeDifference(this._start,y)>=0&&(this._end=y)},enumerable:!1,configurable:!0}),C.prototype.isTimeInRange=function(y){return E.DateTimeUtils.caclTimeDifference(this._start,y)>=0&&E.DateTimeUtils.caclTimeDifference(y,this._end)>=0},C.prototype.hasIntersect=function(y){return this.isTimeInRange(y.start)||this.isTimeInRange(y.end)||y.isTimeInRange(this.start)||y.isTimeInRange(this.end)},C.prototype.concatWith=function(y){return!!this.hasIntersect(y)&&(this.start=E.DateTimeUtils.getMinTime(this.start,y.start),this.end=E.DateTimeUtils.getMaxTime(this.end,y.end),!0)},C}();D.TimeRange=I},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.DayOfWeekMonthlyOccurrence=void 0,(E=D.DayOfWeekMonthlyOccurrence||(D.DayOfWeekMonthlyOccurrence={}))[E.First=0]="First",E[E.Second=1]="Second",E[E.Third=2]="Third",E[E.Forth=3]="Forth",E[E.Last=4]="Last"},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GridElementInfo=void 0;var E=w(5),I=w(12),C=w(127),y=function(){function g(p,d,c){this.id=g.id++,this.position=new E.Point(void 0,void 0),this.size=new I.Size(0,0),this.margins=new C.Margins(void 0,void 0,void 0,void 0),this.attr={},this.style={},this.additionalInfo={},p&&(this.className=p),d&&this.setPosition(d),c&&this.setSize(c)}return g.prototype.setSize=function(p){this.size.width=p.width,this.size.height=p.height},g.prototype.setPosition=function(p){this.position.x=p.x,this.position.y=p.y},g.prototype.assignToElement=function(p){this.assignPosition(p),this.assignSize(p),this.assignMargins(p),this.className&&(p.className=this.className)},g.prototype.assignPosition=function(p){null!=this.position.x&&(p.style.left=this.position.x+"px"),null!=this.position.y&&(p.style.top=this.position.y+"px")},g.prototype.assignSize=function(p){this.size.width&&(p.style.width=this.size.width+"px"),this.size.height&&(p.style.height=this.size.height+"px")},g.prototype.assignMargins=function(p){this.margins.left&&(p.style.marginLeft=this.margins.left+"px"),this.margins.top&&(p.style.marginTop=this.margins.top+"px"),this.margins.right&&(p.style.marginRight=this.margins.right+"px"),this.margins.bottom&&(p.style.marginBottom=this.margins.bottom+"px")},g.prototype.setAttribute=function(p,d){this.attr[p]=d},g.id=0,g}();D.GridElementInfo=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.StripLine=void 0;var E=w(1),I=function(){function C(y,g,p,d,c){this.isCurrent=!1,this.start=y,this.end=g,this.title=p,this.cssClass=d,this.isCurrent=c}return C.parse=function(y){var g=new C;return y&&((0,E.isDefined)(y.start)&&(g.start=y.start),(0,E.isDefined)(y.end)&&(g.end=y.end),(0,E.isDefined)(y.title)&&(g.title=y.title),(0,E.isDefined)(y.cssClass)&&(g.cssClass=y.cssClass)),g},C.prototype.clone=function(){return new C(this.start,this.end,this.title,this.cssClass,this.isCurrent)},C.prototype.equal=function(y){var g=!0;return(g=(g=(g=g&&this.start==y.start)&&this.end==y.end)&&this.title==y.title)&&this.cssClass==y.cssClass},C}();D.StripLine=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfDependencyLineInfo=void 0;var E=w(5),I=w(17),C=function(){function y(){}return y.prototype.assign=function(g){var p;this._copyPoints(g.points),this.arrowInfo=g.arrowInfo,null!==(p=this.fillColor)&&void 0!==p||(this.fillColor=new I.Color),this.fillColor.assign(g.fillColor)},y.prototype._copyPoints=function(g){var p=this;this.points=new Array,g?.forEach(function(d){return p.points.push(new E.Point(d.x,d.y))})},y}();D.PdfDependencyLineInfo=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfTaskResourcesInfo=void 0;var E=w(1),I=w(26),C=function(){function y(g,p,d,c){g&&(this.text=g),p&&(this.style=new I.StyleDef(p)),(0,E.isDefined)(d)&&(this.x=d),(0,E.isDefined)(c)&&(this.y=c)}return y.prototype.assign=function(g){this.text=g.text,this.style=new I.StyleDef(g.style),this.x=g.x,this.y=g.y},y}();D.PdfTaskResourcesInfo=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Width=void 0;var E=w(35),I=w(3),C=function(){function y(g){this.assign(g)}return y.prototype.assign=function(g){if(g instanceof y)this._widthInternal=g._widthInternal;else{var p="number"==typeof g?g:parseInt(g);isNaN(p)?this.assignFromString(g):this._widthInternal=p}},y.prototype.assignFromString=function(g){if(g){var p=I.DomUtils.pxToInt(g);this._widthInternal=p||E.PredefinedStyles.getPredefinedStringOrUndefined(g,E.PredefinedStyles.width)}},y.prototype.hasValue=function(){return!!this._widthInternal},y.prototype.getValue=function(){return this._widthInternal},y}();D.Width=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfTimeMarkerInfo=void 0;var E=w(5),I=w(12),C=w(1),y=w(17),g=function(){function p(d,c,h,m,v){this.lineColor=new y.Color,this.color=new y.Color,d&&(this.start=new E.Point(d.x,d.y)),c&&(this.size=new I.Size(c.width,c.height)),h&&this.color.assign(h),m&&this.lineColor.assign(m),(0,C.isDefined)(v)&&(this.isStripLine=v)}return p.prototype.assign=function(d){var c,h,m,v;d&&(this.start=new E.Point(null===(c=d.start)||void 0===c?void 0:c.x,null===(h=d.start)||void 0===h?void 0:h.y),this.size=new I.Size(null===(m=d.size)||void 0===m?void 0:m.width,null===(v=d.size)||void 0===v?void 0:v.height),this.isStripLine=d.isStripLine,this.color.assign(d.color),this.lineColor.assign(d.lineColor))},p}();D.PdfTimeMarkerInfo=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.EllipsisHelper=void 0;var E=function(){function I(){}return I.limitPdfTextWithEllipsis=function(C,y,g){if(!y?.getTextWidth||!g)return C;if(y.getTextWidth(C.toString())>g){for(var p=C,d=C.length-1;y.getTextWidth(p)>g&&d>0;)p=p.substring(0,d)+I.ellipsis,d--;return p}return C},I.ellipsis="...",I}();D.EllipsisHelper=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TooltipSettings=void 0;var E=w(1),I=function(){function C(){}return C.parse=function(y){var g=new C;return y&&((0,E.isDefined)(y.getHeaderHeight)&&(g.getHeaderHeight=y.getHeaderHeight),(0,E.isDefined)(y.getTaskTooltipContentTemplate)&&(g.getTaskTooltipContentTemplate=y.getTaskTooltipContentTemplate),(0,E.isDefined)(y.getTaskProgressTooltipContentTemplate)&&(g.getTaskProgressTooltipContentTemplate=y.getTaskProgressTooltipContentTemplate),(0,E.isDefined)(y.getTaskTimeTooltipContentTemplate)&&(g.getTaskTimeTooltipContentTemplate=y.getTaskTimeTooltipContentTemplate),(0,E.isDefined)(y.destroyTemplate)&&(g.destroyTemplate=y.destroyTemplate),(0,E.isDefined)(y.formatDate)&&(g.formatDate=y.formatDate)),g},C}();D.TooltipSettings=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.KeyCode=D.ModifierKey=D.KeyUtils=void 0;var E,I,d,C=w(10),y=w(171),g=w(39),p=function(){function d(){}return d.getKeyModifiers=function(c){var h=0;return c.altKey&&(h|=E.Alt),c.ctrlKey&&(h|=E.Ctrl),c.shiftKey&&(h|=E.Shift),c.metaKey&&(h|=E.Meta),h},d.getShortcutCode=function(c,h,m,v,b){var x=c;return x|=h?E.Ctrl:0,x|=m?E.Shift:0,(x|=v?E.Alt:0)|(b?E.Meta:0)},d.getShortcutCodeByEvent=function(c){return d.getShortcutCode(d.getEventKeyCode(c),c.ctrlKey,c.shiftKey,c.altKey,!!C.Browser.MacOSPlatform&&c.metaKey)},d.getEventKeyCode=function(c){return C.Browser.NetscapeFamily||C.Browser.Opera?c.which:c.keyCode},d.parseShortcutString=function(c){if(!c)return 0;var h=!1,m=!1,v=!1,b=!1,x=null,O=c.toString().split("+");if(O.length>0)for(var k=0;k<O.length;k++){var M=g.StringUtils.trim(O[k].toUpperCase());switch(M){case"CONTROL":case"CONTROLKEY":case"CTRL":h=!0;break;case"SHIFT":case"SHIFTKEY":m=!0;break;case"ALT":v=!0;break;case"CMD":b=!0;break;case"F1":x=I.F1;break;case"F2":x=I.F2;break;case"F3":x=I.F3;break;case"F4":x=I.F4;break;case"F5":x=I.F5;break;case"F6":x=I.F6;break;case"F7":x=I.F7;break;case"F8":x=I.F8;break;case"F9":x=I.F9;break;case"F10":x=I.F10;break;case"F11":x=I.F11;break;case"F12":x=I.F12;break;case"RETURN":case"ENTER":x=I.Enter;break;case"HOME":x=I.Home;break;case"END":x=I.End;break;case"LEFT":x=I.Left;break;case"RIGHT":x=I.Right;break;case"UP":x=I.Up;break;case"DOWN":x=I.Down;break;case"PAGEUP":x=I.PageUp;break;case"PAGEDOWN":x=I.PageDown;break;case"SPACE":x=I.Space;break;case"TAB":x=I.Tab;break;case"BACKSPACE":case"BACK":x=I.Backspace;break;case"CONTEXT":x=I.ContextMenu;break;case"ESCAPE":case"ESC":x=I.Esc;break;case"DELETE":case"DEL":x=I.Delete;break;case"INSERT":case"INS":x=I.Insert;break;case"PLUS":x="+".charCodeAt(0);break;default:x=M.charCodeAt(0)}}else alert(y.EncodeUtils.decodeViaTextArea("Invalid shortcut"));return d.getShortcutCode(x,h,m,v,b)},d}();D.KeyUtils=p,(d=E=D.ModifierKey||(D.ModifierKey={}))[d.None=0]="None",d[d.Ctrl=65536]="Ctrl",d[d.Shift=262144]="Shift",d[d.Alt=1048576]="Alt",d[d.Meta=16777216]="Meta",function(d){d[d.Backspace=8]="Backspace",d[d.Tab=9]="Tab",d[d.Enter=13]="Enter",d[d.Pause=19]="Pause",d[d.CapsLock=20]="CapsLock",d[d.Esc=27]="Esc",d[d.Space=32]="Space",d[d.PageUp=33]="PageUp",d[d.PageDown=34]="PageDown",d[d.End=35]="End",d[d.Home=36]="Home",d[d.Left=37]="Left",d[d.Up=38]="Up",d[d.Right=39]="Right",d[d.Down=40]="Down",d[d.Insert=45]="Insert",d[d.Delete=46]="Delete",d[d.Key_0=48]="Key_0",d[d.Key_1=49]="Key_1",d[d.Key_2=50]="Key_2",d[d.Key_3=51]="Key_3",d[d.Key_4=52]="Key_4",d[d.Key_5=53]="Key_5",d[d.Key_6=54]="Key_6",d[d.Key_7=55]="Key_7",d[d.Key_8=56]="Key_8",d[d.Key_9=57]="Key_9",d[d.Key_a=65]="Key_a",d[d.Key_b=66]="Key_b",d[d.Key_c=67]="Key_c",d[d.Key_d=68]="Key_d",d[d.Key_e=69]="Key_e",d[d.Key_f=70]="Key_f",d[d.Key_g=71]="Key_g",d[d.Key_h=72]="Key_h",d[d.Key_i=73]="Key_i",d[d.Key_j=74]="Key_j",d[d.Key_k=75]="Key_k",d[d.Key_l=76]="Key_l",d[d.Key_m=77]="Key_m",d[d.Key_n=78]="Key_n",d[d.Key_o=79]="Key_o",d[d.Key_p=80]="Key_p",d[d.Key_q=81]="Key_q",d[d.Key_r=82]="Key_r",d[d.Key_s=83]="Key_s",d[d.Key_t=84]="Key_t",d[d.Key_u=85]="Key_u",d[d.Key_v=86]="Key_v",d[d.Key_w=87]="Key_w",d[d.Key_x=88]="Key_x",d[d.Key_y=89]="Key_y",d[d.Key_z=90]="Key_z",d[d.Windows=91]="Windows",d[d.ContextMenu=93]="ContextMenu",d[d.Numpad_0=96]="Numpad_0",d[d.Numpad_1=97]="Numpad_1",d[d.Numpad_2=98]="Numpad_2",d[d.Numpad_3=99]="Numpad_3",d[d.Numpad_4=100]="Numpad_4",d[d.Numpad_5=101]="Numpad_5",d[d.Numpad_6=102]="Numpad_6",d[d.Numpad_7=103]="Numpad_7",d[d.Numpad_8=104]="Numpad_8",d[d.Numpad_9=105]="Numpad_9",d[d.Multiply=106]="Multiply",d[d.Add=107]="Add",d[d.Subtract=109]="Subtract",d[d.Decimal=110]="Decimal",d[d.Divide=111]="Divide",d[d.F1=112]="F1",d[d.F2=113]="F2",d[d.F3=114]="F3",d[d.F4=115]="F4",d[d.F5=116]="F5",d[d.F6=117]="F6",d[d.F7=118]="F7",d[d.F8=119]="F8",d[d.F9=120]="F9",d[d.F10=121]="F10",d[d.F11=122]="F11",d[d.F12=123]="F12",d[d.NumLock=144]="NumLock",d[d.ScrollLock=145]="ScrollLock",d[d.Semicolon=186]="Semicolon",d[d.Equals=187]="Equals",d[d.Comma=188]="Comma",d[d.Dash=189]="Dash",d[d.Period=190]="Period",d[d.ForwardSlash=191]="ForwardSlash",d[d.GraveAccent=192]="GraveAccent",d[d.OpenBracket=219]="OpenBracket",d[d.BackSlash=220]="BackSlash",d[d.CloseBracket=221]="CloseBracket",d[d.SingleQuote=222]="SingleQuote"}(I=D.KeyCode||(D.KeyCode={}))},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskDragBaseState=void 0;var E=w(0),I=w(5),C=w(9),y=w(30),g=w(13),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return E.__extends(c,d),c.prototype.onMouseDownInternal=function(h){this.onStart(h)},c.prototype.onMouseUp=function(h){this.onEnd(h)},c.prototype.onMouseMoveInternal=function(h){this.onDrag(h)},c.prototype.onTouchStartInternal=function(h){this.onStart(h)},c.prototype.onTouchEndInternal=function(h){this.onEnd(h)},c.prototype.onTouchMoveInternal=function(h){this.onDrag(h)},c.prototype.onDocumentPointerDownInternal=function(h){this.onStart(h)},c.prototype.onDocumentPointerUpInternal=function(h){this.onEnd(h)},c.prototype.onDocumentPointerMoveInternal=function(h){this.onDrag(h)},c.prototype.onStart=function(h){this.currentPosition=new I.Point(C.EvtUtils.getEventX(h),C.EvtUtils.getEventY(h)),this.raiseDependencySelection(h,null),this.onStartInternal(h)},c.prototype.onDrag=function(h){var m;h.preventDefault();var v=new I.Point(C.EvtUtils.getEventX(h),C.EvtUtils.getEventY(h));null!==(m=this.currentPosition)&&void 0!==m||(this.currentPosition=v),this.onDragInternal(v),this.currentPosition=v},c.prototype.onEnd=function(h){this.onEndInternal(h),this.raiseEvent(g.TaskAreaStateEventNames.STATE_EXIT,h)},c.prototype.onStartInternal=function(h){},c.prototype.onEndInternal=function(h){},c.prototype.onDragInternal=function(h){},c.prototype.finish=function(){this.raiseEvent(g.TaskAreaStateEventNames.TASK_EDIT_END)},c}(y.TaskAreaStateBase);D.TaskDragBaseState=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.StripLineSettings=void 0;var E=w(1),I=w(59),C=function(){function y(){this.showCurrentTime=!1,this.currentTimeUpdateInterval=6e4,this.stripLines=[]}return y.parse=function(g){var p=new y;if(g&&((0,E.isDefined)(g.showCurrentTime)&&(p.showCurrentTime=g.showCurrentTime),(0,E.isDefined)(g.currentTimeUpdateInterval)&&(p.currentTimeUpdateInterval=g.currentTimeUpdateInterval),(0,E.isDefined)(g.currentTimeTitle)&&(p.currentTimeTitle=g.currentTimeTitle),(0,E.isDefined)(g.currentTimeCssClass)&&(p.currentTimeCssClass=g.currentTimeCssClass),(0,E.isDefined)(g.stripLines)))for(var d=0;d<g.stripLines.length;d++)p.stripLines.push(I.StripLine.parse(g.stripLines[d]));return p},y.prototype.equal=function(g){var p=!0;if(p=(p=(p=(p=(p=p&&this.showCurrentTime==g.showCurrentTime)&&this.currentTimeUpdateInterval==g.currentTimeUpdateInterval)&&this.currentTimeTitle==g.currentTimeTitle)&&this.currentTimeCssClass==g.currentTimeCssClass)&&this.stripLines.length===g.stripLines.length)for(var d=0;d<g.stripLines.length;d++)p=p&&this.stripLines[d].equal(g.stripLines[d]);return p},y}();D.StripLineSettings=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Dependency=void 0;var E=w(0),I=w(1),C=w(2),y=w(23),g=function(p){function d(){var c=p.call(this)||this;return c.predecessorId="",c.successorId="",c.type=null,c}return E.__extends(d,p),Object.defineProperty(d.prototype,"isStartDependency",{get:function(){return this.type===y.DependencyType.SS||this.type===y.DependencyType.SF},enumerable:!1,configurable:!0}),d.prototype.assignFromObject=function(c){(0,I.isDefined)(c)&&(p.prototype.assignFromObject.call(this,c),this.predecessorId=String(c.predecessorId),this.successorId=String(c.successorId),this.type=this.parseType(c.type))},d.prototype.parseType=function(c){if(!(0,I.isDefined)(c))return y.DependencyType.FS;switch(c.toString().toUpperCase()){case"SS":case"1":return y.DependencyType.SS;case"FF":case"2":return y.DependencyType.FF;case"SF":case"3":return y.DependencyType.SF;default:return y.DependencyType.FS}},d}(C.DataObject);D.Dependency=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceAssignment=void 0;var E=w(0),I=w(1),C=function(y){function g(){var p=y.call(this)||this;return p.taskId="",p.resourceId="",p}return E.__extends(g,y),g.prototype.assignFromObject=function(p){(0,I.isDefined)(p)&&(y.prototype.assignFromObject.call(this,p),this.taskId=String(p.taskId),this.resourceId=String(p.resourceId))},g}(w(2).DataObject);D.ResourceAssignment=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RecurrenceFactory=void 0;var E=w(1),I=w(72),C=w(205),y=w(206),g=w(208),p=function(){function d(){}return d.createRecurrenceByType=function(c){if(!c)return null;switch(c.toLowerCase()){case"daily":return new I.Daily;case"weekly":return new C.Weekly;case"monthly":return new y.Monthly;case"yearly":return new g.Yearly}return null},d.createRecurrenceFromObject=function(c){if(!c)return null;var h=this.createRecurrenceByType(c.type);return h&&h.assignFromObject(c),h},d.getEnumValue=function(c,h){if(!(0,E.isDefined)(c[h]))return null;var m=parseInt(h);return isNaN(m)?c[h]:m},d}();D.RecurrenceFactory=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Daily=void 0;var E=w(0),I=w(38),C=w(8),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.checkDate=function(d){return!0},p.prototype.checkInterval=function(d){return C.DateTimeUtils.getDaysBetween(this.start,d)%this.interval==0},p.prototype.calculatePointByInterval=function(d){var c=this.interval;return this.isRecurrencePoint(d)||(c-=C.DateTimeUtils.getDaysBetween(this.start,d)%this.interval),C.DateTimeUtils.addDays(d,c)},p.prototype.calculateNearestPoint=function(d){return C.DateTimeUtils.addDays(d,1)},p}(I.RecurrenceBase);D.Daily=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GanttView=D.default=void 0,w(74);var E=w(47);Object.defineProperty(D,"default",{enumerable:!0,get:function(){return E.GanttView}}),Object.defineProperty(D,"GanttView",{enumerable:!0,get:function(){return E.GanttView}})},function(X,D,w){},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.BarManager=void 0;var E=function(){function I(C,y){this.commandManager=C,this.bars=y}return I.prototype.updateContextMenu=function(){for(var C=0,y=void 0;y=this.bars[C];C++)if(y.isContextMenu()){y.updateItemsList();for(var g=y.getCommandKeys(),p=0;p<g.length;p++)this.updateBarItem(y,g[p])}},I.prototype.updateItemsState=function(C){for(var y=!!C.length,g=function(h,m){if(m.isVisible()){for(var v=m.getCommandKeys(),b=function(O){if(y&&!C.filter(function(k){return k==v[O]}).length)return"continue";p.updateBarItem(m,v[O])},x=0;x<v.length;x++)b(x);m.completeUpdate()}},p=this,d=0,c=void 0;c=this.bars[d];d++)g(0,c)},I.prototype.updateBarItem=function(C,y){var g=this.commandManager.getCommand(y);if(g){var p=g.getState();C.setItemVisible(y,p.visible),p.visible&&(C.setItemEnabled(y,p.enabled),C.setItemValue(y,p.value))}},I}();D.BarManager=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CommandManager=void 0;var E=w(77),I=w(78),C=w(79),y=w(86),g=w(88),p=w(89),d=w(90),c=w(91),h=w(94),m=w(96),v=w(97),b=w(98),x=w(99),O=w(100),k=w(101),M=w(104),A=w(105),F=w(109),P=w(112),N=w(113),B=w(114),V=w(115),H=w(117),W=w(120),q=w(121),G=w(122),J=function(){function ne(ae){this.control=ae,this.commands={},this.createCommand(g.GanttClientCommand.CreateTask,this.createTaskCommand),this.createCommand(g.GanttClientCommand.CreateSubTask,this.createSubTaskCommand),this.createCommand(g.GanttClientCommand.RemoveTask,this.removeTaskCommand),this.createCommand(g.GanttClientCommand.RemoveDependency,this.removeDependencyCommand),this.createCommand(g.GanttClientCommand.TaskInformation,this.showTaskEditDialog),this.createCommand(g.GanttClientCommand.ResourceManager,this.showResourcesDialog),this.createCommand(g.GanttClientCommand.TaskAddContextItem,new W.TaskAddContextItemCommand(this.control)),this.createCommand(g.GanttClientCommand.Undo,new x.UndoCommand(this.control)),this.createCommand(g.GanttClientCommand.Redo,new b.RedoCommand(this.control)),this.createCommand(g.GanttClientCommand.ZoomIn,new q.ZoomInCommand(this.control)),this.createCommand(g.GanttClientCommand.ZoomOut,new G.ZoomOutCommand(this.control)),this.createCommand(g.GanttClientCommand.FullScreen,new v.ToggleFullScreenCommand(this.control)),this.createCommand(g.GanttClientCommand.CollapseAll,new p.CollapseAllCommand(this.control)),this.createCommand(g.GanttClientCommand.ExpandAll,new d.ExpandAllCommand(this.control)),this.createCommand(g.GanttClientCommand.ToggleResources,this.toggleResources),this.createCommand(g.GanttClientCommand.ToggleDependencies,this.toggleDependencies)}return Object.defineProperty(ne.prototype,"createTaskCommand",{get:function(){return new B.CreateTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"createSubTaskCommand",{get:function(){return new N.CreateSubTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"removeTaskCommand",{get:function(){return new H.RemoveTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"updateTaskCommand",{get:function(){return new V.UpdateTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"createDependencyCommand",{get:function(){return new c.CreateDependencyCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"removeDependencyCommand",{get:function(){return new h.RemoveDependencyCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"createResourceCommand",{get:function(){return new k.CreateResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"removeResourceCommand",{get:function(){return new F.RemoveResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"assignResourceCommand",{get:function(){return new O.AssignResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"deassignResourceCommand",{get:function(){return new M.DeassignResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"changeResourceColorCommand",{get:function(){return new A.ResourceColorCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"showTaskEditDialog",{get:function(){return new y.TaskEditDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"showConstraintViolationDialog",{get:function(){return new I.ConstraintViolationDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"showConfirmationDialog",{get:function(){return new E.ConfirmationDialog(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"showResourcesDialog",{get:function(){return new C.ResourcesDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"toggleResources",{get:function(){return new P.ToggleResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"toggleDependencies",{get:function(){return new m.ToggleDependenciesCommand(this.control)},enumerable:!1,configurable:!0}),ne.prototype.getCommand=function(ae){return this.commands[ae]},ne.prototype.createCommand=function(ae,ge){this.commands[ae]=ge},ne}();D.CommandManager=J},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConfirmationDialog=void 0;var E=w(0),I=function(C){function y(){return null!==C&&C.apply(this,arguments)||this}return E.__extends(y,C),y.prototype.applyParameters=function(g,p){return this.history.beginTransaction(),p.callback(),this.history.endTransaction(),this.control.barManager.updateItemsState([]),!0},y.prototype.createParameters=function(g){return g},y.prototype.getDialogName=function(){return"Confirmation"},y}(w(20).DialogBase);D.ConfirmationDialog=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConstraintViolationDialogCommand=void 0;var E=w(0),I=function(C){function y(){return null!==C&&C.apply(this,arguments)||this}return E.__extends(y,C),y.prototype.applyParameters=function(g,p){return p.callback(g),!0},y.prototype.createParameters=function(g){return g},y.prototype.getDialogName=function(){return"ConstraintViolation"},y}(w(20).DialogBase);D.ConstraintViolationDialogCommand=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourcesDialogCommand=void 0;var E=w(0),I=w(21),C=w(20),y=w(31),g=w(40),p=w(85),d=function(c){function h(){var m=null!==c&&c.apply(this,arguments)||this;return m.resourcesForDelete=[],m}return E.__extends(h,c),h.prototype.onBeforeDialogShow=function(m){return this.modelManipulator.dispatcher.raiseResourceManagerDialogShowing(m,function(v){m.resources=v.values.resources})},h.prototype.applyParameters=function(m,v){this.history.beginTransaction();for(var b=0;b<m.resources.length;b++)v.resources.getItemById(m.resources.getItem(b).internalId)||this.control.commandManager.createResourceCommand.execute(m.resources.getItem(b).text);for(b=0;b<v.resources.length;b++)m.resources.getItemById(v.resources.getItem(b).internalId)||this.resourcesForDelete.push(v.resources.getItem(b));return this.history.endTransaction(),!1},h.prototype.createParameters=function(m){this.callBack=m;var v=new p.ResourcesDialogParameters;return v.resources=new I.ResourceCollection,v.resources.addRange(this.control.viewModel.resources.items),v},h.prototype.afterClosing=function(){var m=this;if(this.resourcesForDelete.length){var v=this.control.commandManager.showConfirmationDialog,b=new g.ConfirmationDialogParameters(y.ConfirmationType.ResourcesDelete,function(){m.history.beginTransaction();for(var x=0;x<m.resourcesForDelete.length;x++)m.control.commandManager.removeResourceCommand.execute(m.resourcesForDelete[x].internalId);m.history.endTransaction()});b.message=this.resourcesForDelete.reduce(function(x,O){return E.__spreadArray(E.__spreadArray([],x,!0),[O.text],!1)},[]).join(", "),this.callBack&&(v.afterClosing=function(){delete C.DialogBase.activeInstance,m.callBack()}),v.execute(b)}else this.callBack&&this.callBack()},h.prototype.getDialogName=function(){return"Resources"},h}(C.DialogBase);D.ResourcesDialogCommand=d},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GanttJsonUtils=void 0;var E=w(81),I=function(){function C(){}return C.parseJson=function(y){return E.JsonUtils.isValid(y)?JSON.parse(y):null},C}();D.GanttJsonUtils=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.JsonUtils=void 0;var E=function(){function I(){}return I.isValid=function(C){return!/[^,:{}[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(C.replace(/"(\\.|[^"\\])*"/g,""))},I}();D.JsonUtils=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ListUtils=void 0;var E=w(83),I=w(84),C=function(){function y(){}return y.remove=function(g,p){var d=g.indexOf(p,0);d>=0&&g.splice(d,1)},y.removeBy=function(g,p){for(var d=g.length,c=0;c<d;c++)if(p(g[c],c))return g.splice(c,1)[0];return null},y.shallowCopy=function(g){return g.slice()},y.deepCopy=function(g){return y.map(g,function(p){return p.clone()})},y.initByValue=function(g,p){for(var d=[];g>0;g--)d.push(p);return d},y.initByCallback=function(g,p){for(var d=[],c=0;c<g;c++)d.push(p(c));return d},y.forEachOnInterval=function(g,p){for(var d=g.end,c=g.start;c<d;c++)p(c)},y.reverseForEachOnInterval=function(g,p){for(var d=g.start,c=g.end-1;c>=d;c--)p(c)},y.reducedMap=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=[],m=d;m<c;m++){var v=p(g[m],m);null!==v&&h.push(v)}return h},y.filter=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=[],m=d;m<c;m++){var v=g[m];p(v,m)&&h.push(v)}return h},y.map=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=[],m=d;m<c;m++)h.push(p(g[m],m));return h},y.indexBy=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=d;h<c;h++)if(p(g[h],h))return h;return-1},y.reverseIndexBy=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);for(var h=d;h>=c;h--)if(p(g[h],h))return h;return-1},y.elementBy=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);var h=y.indexBy(g,p,d,c);return h<0?null:g[h]},y.reverseElementBy=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);var h=y.reverseIndexBy(g,p,d,c);return h<0?null:g[h]},y.last=function(g){return g[g.length-1]},y.setLast=function(g,p){return g[g.length-1]=p},y.incLast=function(g){return++g[g.length-1]},y.decLast=function(g){return--g[g.length-1]},y.equals=function(g,p){return g.length===p.length&&y.allOf2(g,p,function(d,c){return d.equals(c)})},y.equalsByReference=function(g,p){var d=g.length;if(d!==g.length)return!1;for(var c=0;c<d;c++)if(g[c]!==p[c])return!1;return!0},y.unique=function(g,p,d,c){void 0===d&&(d=p),void 0===c&&(c=function(){});var h=g.length;if(0===h)return[];var m=(g=g.sort(p))[0],v=y.reducedMap(g,function(b){return 0!==d(m,b)?(m=b,b):(c(b),null)},1,h);return v.unshift(g[0]),v},y.uniqueNumber=function(g){g=g.sort(I.Comparers.number);for(var p=Number.NaN,d=g.length-1;d>=0;d--)p===g[d]?g.splice(d,1):p=g[d];return g},y.forEach=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=d;h<c;h++)p(g[h],h)},y.forEach2=function(g,p,d,c,h){void 0===c&&(c=0),void 0===h&&(h=g.length);for(var m=c;m<h;m++)d(g[m],p[m],m)},y.reverseForEach=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);for(var h=d;h>=c;h--)p(g[h],h)},y.reverseIndexOf=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);for(var h=d;h>=c;h--)if(g[h]===p)return h;return-1},y.accumulate=function(g,p,d,c,h){void 0===c&&(c=0),void 0===h&&(h=g.length);for(var m=p,v=c;v<h;v++)m=d(m,g[v],v);return m},y.accumulateNumber=function(g,p,d,c,h){void 0===d&&(d=0),void 0===c&&(c=0),void 0===h&&(h=g.length);for(var m=d,v=c;v<h;v++)m+=p(g[v],v,m);return m},y.anyOf=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=d;h<c;h++)if(p(g[h],h))return!0;return!1},y.unsafeAnyOf=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=d;h<c;h++){var m=p(g[h],h);if(m)return m}return null},y.reverseAnyOf=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);for(var h=d;h>=c;h--)if(p(g[h],h))return!0;return!1},y.unsafeReverseAnyOf=function(g,p,d,c){void 0===d&&(d=g.length-1),void 0===c&&(c=0);for(var h=d;h>=c;h--){var m=p(g[h],h);if(m)return m}return null},y.anyOf2=function(g,p,d,c,h){void 0===c&&(c=0),void 0===h&&(h=g.length);for(var m=c;m<h;m++)if(d(g[m],p[m],m))return!0;return!1},y.allOf=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);for(var h=d;h<c;h++)if(!p(g[h],h))return!1;return!0},y.allOf2=function(g,p,d,c,h){void 0===c&&(c=0),void 0===h&&(h=g.length);for(var m=c;m<h;m++)if(!d(g[m],p[m],m))return!1;return!0},y.allOfOnInterval=function(g,p){for(var d=g.end,c=g.start;c<d;c++)if(!p(c))return!1;return!0},y.addListOnTail=function(g,p){for(var d=0,c=void 0;c=p[d];d++)g.push(c);return g},y.joinLists=function(g){for(var p=[],d=1;d<arguments.length;d++)p[d-1]=arguments[d];return y.accumulate(p,[],function(c,h){return y.addListOnTail(c,g(h)),c})},y.push=function(g,p){return g.push(p),g},y.countIf=function(g,p){return y.accumulateNumber(g,function(d,c){return p(d,c)?1:0})},y.clear=function(g){g.splice(0)},y.merge=function(g,p,d,c,h,m){if(void 0===h&&(h=0),void 0===m&&(m=g.length),g=g.slice(h,m),m-h<2)return g;for(var v=(g=g.sort(p))[h],b=[v],x=h+1;x<m;x++){var O=g[x];d(v,O)?c(v,O):b.push(v=O)}return b},y.min=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);var h=y.minExtended(g,p,d,c);return h?h.minElement:null},y.max=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);var h=y.maxExtended(g,p,d,c);return h?h.maxElement:null},y.minMax=function(g,p,d,c){void 0===d&&(d=0),void 0===c&&(c=g.length);var h=y.minMaxExtended(g,p,d,c);return h?new E.MinMax(h.minElement,h.maxElement):null},y.minExtended=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=p(h),v=d+1;v<c;v++){var b=g[v],x=p(b);x<m&&(m=x,h=b)}return new E.ExtendedMin(h,m)},y.maxExtended=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=p(h),v=d+1;v<c;v++){var b=g[v],x=p(b);x>m&&(m=x,h=b)}return new E.ExtendedMax(h,m)},y.minMaxExtended=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=h,v=p(h),b=v,x=d+1;x<c;x++){var O=g[x],k=p(O);k<v?(v=k,h=O):k>b&&(b=k,m=O)}return new E.ExtendedMinMax(h,v,m,b)},y.minByCmp=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=d+1;m<c;m++){var v=g[m];p(v,h)<0&&(h=v)}return h},y.maxByCmp=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=d+1;m<c;m++){var v=g[m];p(v,h)>0&&(h=v)}return h},y.minMaxByCmp=function(g,p,d,c){if(void 0===d&&(d=0),void 0===c&&(c=g.length),0===g.length)return null;for(var h=g[d],m=h,v=d+1;v<c;v++){var b=g[v],x=p(b,h);x>0?m=b:x<0&&(h=b)}return new E.MinMax(h,m)},y}();D.ListUtils=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ExtendedMinMax=D.ExtendedMax=D.ExtendedMin=D.MinMaxNumber=D.MinMax=void 0;var E=w(0),I=function(d,c){this.minElement=d,this.maxElement=c};D.MinMax=I;var C=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return E.__extends(c,d),Object.defineProperty(c.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!1,configurable:!0}),c}(I);D.MinMaxNumber=C,D.ExtendedMin=function(d,c){this.minElement=d,this.minValue=c},D.ExtendedMax=function(d,c){this.maxElement=d,this.maxValue=c};var p=function(d){function c(h,m,v,b){var x=d.call(this,h,v)||this;return x.minValue=m,x.maxValue=b,x}return E.__extends(c,d),c}(I);D.ExtendedMinMax=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Equals=D.Comparers=void 0;var E=function(){function C(){}return C.number=function(y,g){return y-g},C.string=function(y,g){return y===g?0:y>g?1:-1},C.stringIgnoreCase=function(y,g){return(y=y.toLowerCase())===(g=g.toLowerCase())?0:y>g?1:-1},C}();D.Comparers=E;var I=function(){function C(){}return C.simpleType=function(y,g){return y===g},C.object=function(y,g){return y&&g&&(y===g||y.equals(g))},C}();D.Equals=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourcesDialogParameters=void 0;var E=w(0),I=w(21),C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return E.__extends(g,y),g.prototype.clone=function(){var p=new g;return p.resources=new I.ResourceCollection,p.resources.addRange(this.resources.items),p},g}(w(32).DialogParametersBase);D.ResourcesDialogParameters=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskEditDialogCommand=void 0;var E=w(0),I=w(21),C=w(49),y=w(50),g=w(33),p=w(20),d=w(87),c=w(1),h=function(m){function v(){return null!==m&&m.apply(this,arguments)||this}return E.__extends(v,m),v.prototype.onBeforeDialogShow=function(b){return this.modelManipulator.dispatcher.raiseTaskTaskEditDialogShowing(b,function(x){var O=x.values;b.start=O.start,b.end=O.end,b.progress=O.progress,b.title=O.title,b.readOnlyFields=x.readOnlyFields,b.hiddenFields=x.hiddenFields})},v.prototype.applyParameters=function(b,x){var O=this;this.history.beginTransaction();var k=this.getUpdatedTaskData(b,x);Object.keys(k).length>0&&setTimeout(function(){return O.control.commandManager.updateTaskCommand.execute(x.id,k)},0);for(var M=0;M<b.assigned.length;M++)if(!x.assigned.getItemById(b.assigned.getItem(M).internalId)){var A=b.assigned.getItem(M).internalId,P=new C.ResourceAssigningArguments(A,x.id);this.modelManipulator.dispatcher.notifyResourceAssigning(P),P.cancel||this.history.addAndRedo(new y.AssignResourceHistoryItem(this.modelManipulator,P.resourceId,P.taskId))}var N=function(V){var H=x.assigned.getItem(V);if(!b.assigned.getItemById(H.internalId)){var W=B.control.viewModel.assignments.items.filter(function(q){return q.resourceId===H.internalId&&q.taskId===x.id})[0];B.modelManipulator.dispatcher.fireResourceUnassigning(W)&&B.history.addAndRedo(new g.DeassignResourceHistoryItem(B.modelManipulator,W.internalId))}},B=this;for(M=0;M<x.assigned.length;M++)N(M);return this.history.endTransaction(),!1},v.prototype.getUpdatedTaskData=function(b,x){var O={};return(0,c.isDefined)(b.title)&&x.title!==b.title&&(O.title=b.title),(0,c.isDefined)(b.progress)&&x.progress!==b.progress&&(O.progress=b.progress),(0,c.isDefined)(b.start)&&x.start!==b.start&&(O.start=b.start),(0,c.isDefined)(b.end)&&x.end!==b.end&&(O.end=b.end),O},v.prototype.createParameters=function(b){var x=this;b=b||this.control.viewModel.tasks.getItemById(this.control.currentSelectedTaskID);var O=new d.TaskEditParameters;return O.id=b.internalId,O.title=b.title,O.progress=b.progress,O.start=b.start,O.end=b.end,O.assigned=this.control.viewModel.getAssignedResources(b),O.resources=new I.ResourceCollection,O.resources.addRange(this.control.viewModel.resources.items),O.showResourcesDialogCommand=this.control.commandManager.showResourcesDialog,O.showTaskEditDialogCommand=this.control.commandManager.showTaskEditDialog,O.enableEdit=this.isTaskEditEnabled(),O.enableRangeEdit=this.isTaskRangeEditEnabled(b),O.isValidationRequired=this.control.isValidateDependenciesRequired(),O.getCorrectDateRange=function(k,M,A){return x.control.validationController.getCorrectDateRange(k,M,A)},O},v.prototype.isTaskEditEnabled=function(){var b=this.control.settings;return b.editing.enabled&&b.editing.allowTaskUpdate},v.prototype.isTaskRangeEditEnabled=function(b){return!this.control.viewModel.isTaskToCalculateByChildren(b.internalId)},v.prototype.isEnabled=function(){var b=this.control,x=b.viewModel.findItem(b.currentSelectedTaskID);return!!x&&x.selected||this.isApiCall},v.prototype.getState=function(){var b=m.prototype.getState.call(this);return b.visible=b.visible&&!this.control.taskEditController.dependencyId,b},v.prototype.getDialogName=function(){return"TaskEdit"},v}(p.DialogBase);D.TaskEditDialogCommand=h},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskEditParameters=void 0;var E=w(0),I=w(21),C=function(y){function g(){var p=null!==y&&y.apply(this,arguments)||this;return p.enableEdit=!0,p.enableRangeEdit=!0,p.isValidationRequired=!1,p.hiddenFields=[],p.readOnlyFields=[],p}return E.__extends(g,y),g.prototype.clone=function(){var p=new g;return p.id=this.id,p.title=this.title,p.progress=this.progress,p.start=this.start,p.end=this.end,p.assigned=new I.ResourceCollection,p.assigned.addRange(this.assigned.items),p.resources=new I.ResourceCollection,p.resources.addRange(this.resources.items),p.showResourcesDialogCommand=this.showResourcesDialogCommand,p.showTaskEditDialogCommand=this.showTaskEditDialogCommand,p.enableEdit=this.enableEdit,p.enableRangeEdit=this.enableRangeEdit,p.hiddenFields=this.hiddenFields.slice(),p.readOnlyFields=this.readOnlyFields.slice(),p.isValidationRequired=this.isValidationRequired,p.getCorrectDateRange=this.getCorrectDateRange,p},g}(w(32).DialogParametersBase);D.TaskEditParameters=C},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.GanttClientCommand=void 0,(E=D.GanttClientCommand||(D.GanttClientCommand={}))[E.CreateTask=0]="CreateTask",E[E.CreateSubTask=1]="CreateSubTask",E[E.RemoveTask=2]="RemoveTask",E[E.RemoveDependency=3]="RemoveDependency",E[E.TaskInformation=4]="TaskInformation",E[E.TaskAddContextItem=5]="TaskAddContextItem",E[E.Undo=6]="Undo",E[E.Redo=7]="Redo",E[E.ZoomIn=8]="ZoomIn",E[E.ZoomOut=9]="ZoomOut",E[E.FullScreen=10]="FullScreen",E[E.CollapseAll=11]="CollapseAll",E[E.ExpandAll=12]="ExpandAll",E[E.ResourceManager=13]="ResourceManager",E[E.ToggleResources=14]="ToggleResources",E[E.ToggleDependencies=15]="ToggleDependencies"},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CollapseAllCommand=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.prototype.execute=function(){return g.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.collapseAll(),!0},p.prototype.isEnabled=function(){return!0},p}(I.CommandBase);D.CollapseAllCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ExpandAllCommand=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.prototype.execute=function(){return g.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.expandAll(),!0},p.prototype.isEnabled=function(){return!0},p}(I.CommandBase);D.ExpandAllCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CreateDependencyCommand=void 0;var E=w(0),I=w(23),C=w(92),y=w(93),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return E.__extends(d,p),d.prototype.execute=function(c,h,m){return p.prototype.execute.call(this,c,h,m)},d.prototype.executeInternal=function(c,h,m){if(this.control.viewModel.dependencies.items.filter(function(x){return x.predecessorId===c&&x.successorId===h||x.successorId===c&&x.predecessorId===h}).length)return!1;var v=new C.DependencyInsertingArguments(c,h,m);if(this.modelManipulator.dispatcher.notifyDependencyInserting(v),v.cancel)return!1;if(c=v.predecessorId,h=v.successorId,m=v.type,this.control.history.beginTransaction(),this.history.addAndRedo(new y.InsertDependencyHistoryItem(this.modelManipulator,c,h,m)),this.control.isValidateDependenciesRequired()){var b=this.control.viewModel.tasks.getItemById(c);m===I.DependencyType.SF||m===I.DependencyType.SS?this.control.validationController.moveStartDependTasks(c,b.start):this.control.validationController.moveEndDependTasks(c,b.end)}return this.control.history.endTransaction(),!0},d.prototype.isEnabled=function(){return p.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyInsert},d}(w(51).DependencyCommandBase);D.CreateDependencyCommand=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DependencyInsertingArguments=void 0;var E=w(0),I=function(C){function y(g,p,d){var c=C.call(this,null)||this;return c.values={predecessorId:g,successorId:p,type:d},c}return E.__extends(y,C),Object.defineProperty(y.prototype,"predecessorId",{get:function(){return this.values.predecessorId},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"successorId",{get:function(){return this.values.successorId},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"type",{get:function(){return this.values.type},enumerable:!1,configurable:!0}),y}(w(11).BaseArguments);D.DependencyInsertingArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.InsertDependencyHistoryItem=void 0;var E=w(0),I=w(18),C=w(2),y=function(g){function p(d,c,h,m){var v=g.call(this,d)||this;return v.predecessorId=c,v.successorId=h,v.type=m,v}return E.__extends(p,g),p.prototype.redo=function(){var d;null!==(d=this.insertedKey)&&void 0!==d||(this.insertedKey=I.MathUtils.generateGuid()),this.modelManipulator.dependency.insertDependency(this.predecessorId,this.successorId,this.type,this.insertedKey)},p.prototype.undo=function(){this.modelManipulator.dependency.removeDependency(this.insertedKey)},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var d=this;return[{objectType:C.GanttDataObjectNames.dependency,getKey:function(){return d.insertedKey},updateKey:function(c){return d.insertedKey=c}},{objectType:C.GanttDataObjectNames.task,getKey:function(){return d.predecessorId},updateKey:function(c){return d.predecessorId=c}},{objectType:C.GanttDataObjectNames.task,getKey:function(){return d.successorId},updateKey:function(c){return d.successorId=c}}]},enumerable:!1,configurable:!0}),p}(w(14).HistoryItem);D.InsertDependencyHistoryItem=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RemoveDependencyCommand=void 0;var E=w(0),I=w(31),C=w(40),y=w(95),g=w(41),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return E.__extends(c,d),c.prototype.execute=function(h,m){var v=this;return void 0===m&&(m=!0),m?(this.control.commandManager.showConfirmationDialog.execute(new C.ConfirmationDialogParameters(I.ConfirmationType.DependencyDelete,function(){v.executeInternal(h)})),!1):d.prototype.execute.call(this,h)},c.prototype.executeInternal=function(h){if(null!=(h=h||this.control.taskEditController.dependencyId)){var m=this.control.viewModel.dependencies.items.filter(function(b){return b.internalId===h})[0];if(m){var v=new y.DependencyRemovingArguments(m);if(this.modelManipulator.dispatcher.notifyDependencyRemoving(v),!v.cancel)return this.history.addAndRedo(new g.RemoveDependencyHistoryItem(this.modelManipulator,h)),h===this.control.taskEditController.dependencyId&&this.control.taskEditController.selectDependency(null),this.control.barManager.updateItemsState([]),!0}}return!1},c.prototype.isEnabled=function(){return d.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyDelete},c.prototype.getState=function(){var h=d.prototype.getState.call(this);return h.visible=h.enabled&&null!=this.control.taskEditController.dependencyId,h},c}(w(51).DependencyCommandBase);D.RemoveDependencyCommand=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DependencyRemovingArguments=void 0;var E=w(0),I=function(C){function y(g){var p=C.call(this,g.id)||this;return p.values=g,p}return E.__extends(y,C),y}(w(11).BaseArguments);D.DependencyRemovingArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleDependenciesCommand=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return g.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.toggleDependencies(),!0},p}(I.CommandBase);D.ToggleDependenciesCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleFullScreenCommand=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){var d=null!==g&&g.apply(this,arguments)||this;return d.isInFullScreenMode=!1,d.fullScreenTempVars={},d}return E.__extends(p,g),p.prototype.getState=function(){var d=new C.SimpleCommandState(!0);return d.value=this.control.fullScreenModeHelper.isInFullScreenMode,d},p.prototype.execute=function(){return g.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.fullScreenModeHelper.toggle(),!0},p}(I.CommandBase);D.ToggleFullScreenCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RedoCommand=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){var d=new C.SimpleCommandState(this.isEnabled());return d.visible=this.control.settings.editing.enabled,d},p.prototype.execute=function(){return g.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.history.redo(),!0},p.prototype.isEnabled=function(){return g.prototype.isEnabled.call(this)&&this.history.canRedo()},p}(I.CommandBase);D.RedoCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.UndoCommand=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){var d=new C.SimpleCommandState(this.isEnabled());return d.visible=this.control.settings.editing.enabled,d},p.prototype.execute=function(){return g.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.history.undo(),!0},p.prototype.isEnabled=function(){return g.prototype.isEnabled.call(this)&&this.history.canUndo()},p}(I.CommandBase);D.UndoCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.AssignResourceCommand=void 0;var E=w(0),I=w(49),C=w(50),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.execute=function(d,c){return g.prototype.execute.call(this,d,c)},p.prototype.executeInternal=function(d,c){if(!this.control.viewModel.assignments.items.filter(function(v){return v.resourceId===d&&v.taskId===c})[0]){var h=this.control.viewModel,m=new I.ResourceAssigningArguments(h.convertInternalToPublicKey("resource",d),h.convertInternalToPublicKey("task",c));if(this.modelManipulator.dispatcher.notifyResourceAssigning(m),!m.cancel)return this.history.addAndRedo(new C.AssignResourceHistoryItem(this.modelManipulator,h.convertPublicToInternalKey("resource",m.resourceId),h.convertPublicToInternalKey("task",m.taskId))),!0}return!1},p.prototype.isEnabled=function(){return g.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskResourceUpdate},p}(w(34).ResourceCommandBase);D.AssignResourceCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CreateResourceCommand=void 0;var E=w(0),I=w(102),C=w(103),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.execute=function(d,c,h){return void 0===c&&(c=""),g.prototype.execute.call(this,d,c,h)},p.prototype.executeInternal=function(d,c,h){void 0===c&&(c="");var m=new I.ResourceInsertingArguments(d,c);return this.modelManipulator.dispatcher.notifyResourceCreating(m),m.cancel||this.history.addAndRedo(new C.CreateResourceHistoryItem(this.modelManipulator,m.text,m.color,h)),!m.cancel},p.prototype.isEnabled=function(){return g.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceInsert},p}(w(34).ResourceCommandBase);D.CreateResourceCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceInsertingArguments=void 0;var E=w(0),I=function(C){function y(g,p){void 0===p&&(p="");var d=C.call(this,null)||this;return d.values={text:g,color:p},d}return E.__extends(y,C),Object.defineProperty(y.prototype,"text",{get:function(){return this.values.text},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),y}(w(11).BaseArguments);D.ResourceInsertingArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CreateResourceHistoryItem=void 0;var E=w(0),I=w(14),C=w(2),y=w(18),g=function(p){function d(c,h,m,v){void 0===m&&(m="");var b=p.call(this,c)||this;return b.text=h,b.color=m,b.createCallback=v,b}return E.__extends(d,p),d.prototype.redo=function(){var c;null!==(c=this.insertedKey)&&void 0!==c||(this.insertedKey=y.MathUtils.generateGuid()),this.modelManipulator.resource.create(this.text,this.color,this.insertedKey,this.createCallback)},d.prototype.undo=function(){this.modelManipulator.resource.remove(this.insertedKey)},Object.defineProperty(d.prototype,"keyUpdaters",{get:function(){var c=this;return[{objectType:C.GanttDataObjectNames.resource,getKey:function(){return c.insertedKey},updateKey:function(h){return c.insertedKey=h}}]},enumerable:!1,configurable:!0}),d}(I.HistoryItem);D.CreateResourceHistoryItem=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DeassignResourceCommand=void 0;var E=w(0),I=w(33),C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return E.__extends(g,y),g.prototype.execute=function(p){return y.prototype.execute.call(this,p)},g.prototype.executeInternal=function(p){var d=this.control.viewModel.assignments.items.filter(function(c){return c.internalId===p})[0];return!(!d||!this.modelManipulator.dispatcher.fireResourceUnassigning(d)||(this.history.addAndRedo(new I.DeassignResourceHistoryItem(this.modelManipulator,p)),0))},g.prototype.isEnabled=function(){return y.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskResourceUpdate},g}(w(34).ResourceCommandBase);D.DeassignResourceCommand=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceColorCommand=void 0;var E=w(0),I=w(106),C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return E.__extends(g,y),g.prototype.execute=function(p,d){return y.prototype.execute.call(this,p,d)},g.prototype.executeInternal=function(p,d){return this.control.viewModel.resources.getItemById(p).color!==d&&(this.history.addAndRedo(new I.ResourceColorHistoryItem(this.modelManipulator,p,d)),!0)},g}(w(108).ResourcePropertyCommandBase);D.ResourceColorCommand=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceColorHistoryItem=void 0;var E=w(0),I=function(C){function y(){return null!==C&&C.apply(this,arguments)||this}return E.__extends(y,C),y.prototype.getPropertiesManipulator=function(){return this.modelManipulator.resource.properties.color},y}(w(107).ResourcePropertiesHistoryItemBase);D.ResourceColorHistoryItem=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourcePropertiesHistoryItemBase=void 0;var E=w(0),I=w(2),C=function(y){function g(p,d,c){var h=y.call(this,p)||this;return h.resourceId=d,h.newValue=c,h}return E.__extends(g,y),g.prototype.redo=function(){this.oldState=this.getPropertiesManipulator().setValue(this.resourceId,this.newValue)},g.prototype.undo=function(){this.getPropertiesManipulator().restoreValue(this.oldState)},g.prototype.getPropertiesManipulator=function(){throw new Error("Not Implemented")},Object.defineProperty(g.prototype,"keyUpdaters",{get:function(){var p=this;return[{objectType:I.GanttDataObjectNames.resource,getKey:function(){return p.resourceId},updateKey:function(d){return p.resourceId=d}}]},enumerable:!1,configurable:!0}),g}(w(14).HistoryItem);D.ResourcePropertiesHistoryItemBase=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourcePropertyCommandBase=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.prototype.isEnabled=function(){return g.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceUpdate},p}(I.CommandBase);D.ResourcePropertyCommandBase=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RemoveResourceCommand=void 0;var E=w(0),I=w(110),C=w(111),y=w(33),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return E.__extends(d,p),d.prototype.execute=function(c){return p.prototype.execute.call(this,c)},d.prototype.executeInternal=function(c){var h=this,m=this.control.viewModel.resources.items.filter(function(x){return x.internalId===c})[0];if(m){var v=new I.ResourceRemovingArguments(m);if(this.modelManipulator.dispatcher.notifyResourceRemoving(v),!v.cancel){var b=new C.RemoveResourceHistoryItem(this.modelManipulator,c);return this.control.viewModel.assignments.items.filter(function(x){return x.resourceId===c}).forEach(function(x){h.modelManipulator.dispatcher.fireResourceUnassigning(x)&&b.add(new y.DeassignResourceHistoryItem(h.modelManipulator,x.internalId))}),this.history.addAndRedo(b),!0}}return!1},d.prototype.isEnabled=function(){return p.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceDelete},d}(w(34).ResourceCommandBase);D.RemoveResourceCommand=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceRemovingArguments=void 0;var E=w(0),I=function(C){function y(g){var p=C.call(this,g.id)||this;return p.values=g,p}return E.__extends(y,C),y}(w(11).BaseArguments);D.ResourceRemovingArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RemoveResourceHistoryItem=void 0;var E=w(0),I=w(42),C=w(2),y=function(g){function p(d,c){var h=g.call(this)||this;return h.modelManipulator=d,h.resourceId=c,h}return E.__extends(p,g),p.prototype.redo=function(){g.prototype.redo.call(this),this.resource=this.modelManipulator.resource.remove(this.resourceId)},p.prototype.undo=function(){var d=this;this.modelManipulator.resource.create(this.resource.text,this.resource.color,this.resourceId,function(){d.resource.color&&d.modelManipulator.resource.properties.color.setValue(d.resource.internalId,d.resource.color),window.setTimeout(function(){return g.prototype.undo.call(d)},0)})},p.prototype.undoItemsQuery=function(){this.modelManipulator.resource.create(this.resource.text,this.resource.color,this.resourceId,function(){}),this.resource.color&&this.modelManipulator.resource.properties.color.setValue(this.resource.internalId,this.resource.color),g.prototype.undo.call(this)},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var d=this;return[{objectType:C.GanttDataObjectNames.resource,getKey:function(){return d.resourceId},updateKey:function(c){return d.resourceId=c}}]},enumerable:!1,configurable:!0}),p}(I.CompositionHistoryItem);D.RemoveResourceHistoryItem=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ToggleResourceCommand=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return g.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.toggleResources(),!0},p}(I.CommandBase);D.ToggleResourceCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CreateSubTaskCommand=void 0;var E=w(0),I=w(52),C=w(43),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.execute=function(d){return g.prototype.execute.call(this,d)},p.prototype.executeInternal=function(d){var c=this.control.viewModel.findItem(d=d||this.control.currentSelectedTaskID);if(c.selected){var h={start:new Date(c.task.start.getTime()),end:new Date(c.task.end.getTime()),title:"New task",progress:0,parentId:d},m=new I.TaskInsertingArguments(null,h);if(this.modelManipulator.dispatcher.notifyTaskCreating(m),!m.cancel){this.history.addAndRedo(new C.CreateTaskHistoryItem(this.modelManipulator,m));var v=this.control.viewModel.findItem(h.parentId);g.prototype.updateParent.call(this,v)}return!m.cancel}return!1},p.prototype.isEnabled=function(){var d=this.control,c=d.viewModel.findItem(d.currentSelectedTaskID);return g.prototype.isEnabled.call(this)&&!!c&&c.selected},p.prototype.getState=function(){var d=g.prototype.getState.call(this);return d.visible=d.visible&&this.control.settings.editing.allowTaskInsert,d},p}(w(24).TaskCommandBase);D.CreateSubTaskCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CreateTaskCommand=void 0;var E=w(0),I=w(52),C=w(43),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.execute=function(d){return g.prototype.execute.call(this,d)},p.prototype.executeInternal=function(d){var c,h;if(null!=d||(d={}),!d.parentId){var m=this.control.viewModel.findItem(this.control.currentSelectedTaskID),v=m&&m.task;v&&(d.parentId=v.parentId)}var b=this.control.viewModel.findItem(d.parentId)||this.control.viewModel.items[0],x=b&&b.task;d.start||(d.start=x?new Date(x.start.getTime()):new Date(this.control.range.start.getTime())),d.end||(d.end=x?new Date(x.end.getTime()):new Date(this.control.range.end.getTime())),null!==(c=d.title)&&void 0!==c||(d.title="New task"),null!==(h=d.progress)&&void 0!==h||(d.progress=0);var O=new I.TaskInsertingArguments(null,d);if(this.modelManipulator.dispatcher.notifyTaskCreating(O),!O.cancel){this.history.addAndRedo(new C.CreateTaskHistoryItem(this.modelManipulator,O));var k=this.control.viewModel.findItem(d.parentId);g.prototype.updateParent.call(this,k)}return!O.cancel},p.prototype.getState=function(){var d=g.prototype.getState.call(this);return d.visible=d.visible&&this.control.settings.editing.allowTaskInsert,d},p}(w(24).TaskCommandBase);D.CreateTaskCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.UpdateTaskCommand=void 0;var E=w(0),I=w(1),C=w(31),y=w(116),g=w(41),p=w(53),d=w(15),c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return E.__extends(m,h),m.prototype.execute=function(v,b){return h.prototype.execute.call(this,v,b)},m.prototype.executeInternal=function(v,b){var x=this.control.viewModel.tasks.getItemById(v);if(!x)return!1;var O=this.control.modelManipulator.dispatcher.raiseTaskUpdating(x,b,function(M){b.title=M.title,b.progress=M.progress,b.start=M.start,b.end=M.end,b.color=M.color});if(O){(0,I.isDefined)(b.start)&&(0,I.isDefined)(b.end)&&b.end.getTime()<b.start.getTime()&&(b.end=b.start),(0,I.isDefined)(b.progress)&&(b.progress=Math.max(Math.min(b.progress,100),0));var k=this.filterChangedValues(b,x);this.processDependecyValidation(k,x)}return O},m.prototype.isEnabled=function(){return h.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskUpdate},m.prototype.filterChangedValues=function(v,b){if(!v)return null;var x={};for(var O in b)Object.prototype.hasOwnProperty.call(b,O)&&(0,I.isDefined)(v[O])&&b[O]!==v[O]&&(x[O]=v[O]);return x},m.prototype.processDependecyValidation=function(v,b){var x=this,O=function(P){x.onAfterValidationCallback(v,b,P)},k=this.control.isValidateDependenciesRequired();if(k){var M=[],A=(0,I.isDefined)(v.start)&&v.start!==b.start,F=(0,I.isDefined)(v.end)&&v.end!==b.end;A&&k&&(M=M.concat(this.control.validationController.checkStartDependencies(b.internalId,v.start))),F&&k&&(M=M.concat(this.control.validationController.checkEndDependencies(b.internalId,v.end))),M.length>0?this.control.commandManager.showConstraintViolationDialog.execute(new y.ConstraintViolationDialogParameters(M,O)):O(null)}else O(null)},m.prototype.onAfterValidationCallback=function(v,b,x){var O=this;if(!x||x.option!==C.ConstraintViolationOption.DoNothing||(delete v.start,delete v.end),Object.keys(v).length>0){this.history.beginTransaction(),x?.option===C.ConstraintViolationOption.RemoveDependency&&x.validationErrors.forEach(function(P){return O.history.addAndRedo(new g.RemoveDependencyHistoryItem(O.modelManipulator,P.dependencyId))});var k=this.control.isValidateDependenciesRequired(),M=b.internalId,A=b.start,F=b.end;this.history.addAndRedo(new p.UpdateTaskHistoryItem(this.modelManipulator,M,v)),(0,I.isDefined)(v.start)&&k&&this.control.validationController.moveStartDependTasks(M,A),(0,I.isDefined)(v.end)&&k&&this.control.validationController.moveEndDependTasks(M,F),this.processAutoParentUpdate(M,v,A,F),this.history.endTransaction(),x?.option!==C.ConstraintViolationOption.RemoveDependency&&x?.option!==C.ConstraintViolationOption.KeepDependency||this.control.updateBarManager(),this.control.updateViewDataRange()}},m.prototype.processAutoParentUpdate=function(v,b,x,O){var k=(0,I.isDefined)(b.start),M=(0,I.isDefined)(b.end),A=(0,I.isDefined)(b.progress)||k||M,F=k?b.start.getTime()-x.getTime():null,P=M?b.end.getTime()-O.getTime():null,N=k&&0!==d.DateUtils.getTimezoneOffsetDiff(x,b.start),B=M&&0!==d.DateUtils.getTimezoneOffsetDiff(O,b.end),V=(N||B)&&Math.abs(P-F)===d.DateUtils.msPerHour;A?0===F||F!==P&&!V?this.validationController.updateParentsIfRequired(v):this.validationController.correctParentsOnChildMoving(v,F):this.control.updateOwnerInAutoParentMode()},m}(w(24).TaskCommandBase);D.UpdateTaskCommand=c},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConstraintViolationDialogParameters=void 0;var E=w(0),I=function(C){function y(g,p){var d=C.call(this)||this;return d.validationErrors=g,d.callback=p,d}return E.__extends(y,C),y.prototype.clone=function(){var g=new y(this.validationErrors,this.callback);return g.option=this.option,g},Object.defineProperty(y.prototype,"hasCriticalErrors",{get:function(){var g;return null===(g=this.validationErrors)||void 0===g?void 0:g.some(function(p){return p.critical})},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"errorsCount",{get:function(){var g;return null===(g=this.validationErrors)||void 0===g?void 0:g.length},enumerable:!1,configurable:!0}),y}(w(32).DialogParametersBase);D.ConstraintViolationDialogParameters=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RemoveTaskCommand=void 0;var E=w(0),I=w(31),C=w(40),y=w(118),g=w(41),p=w(33),d=w(119),c=function(h){function m(){return null!==h&&h.apply(this,arguments)||this}return E.__extends(m,h),m.prototype.execute=function(v,b,x,O,k,M){var A=this;return void 0===b&&(b=!0),void 0===x&&(x=!1),void 0===O&&(O=!0),this.isApiCall=x,this.isUpdateParentTaskRequired=O,b?(this.control.commandManager.showConfirmationDialog.execute(new C.ConfirmationDialogParameters(I.ConfirmationType.TaskDelete,function(){A.executeInternal(v,k,M)})),!1):h.prototype.execute.call(this,v,k,M)},m.prototype.executeInternal=function(v,b,x){var O=this,k=x||[],M=this.control.viewModel.findItem(v=v||this.control.currentSelectedTaskID),A=M?M.task:this.control.viewModel.tasks.getItemById(v),F=new y.TaskRemovingArguments(A);if(this.modelManipulator.dispatcher.notifyTaskRemoving(F),F.cancel)return!1;var P=this.history,N=this.control.viewModel;P.beginTransaction(),N.beginUpdate();var B=!!b,V=new d.RemoveTaskHistoryItem(this.modelManipulator,v),H=N.tasks.items.filter(function(J){return J.parentId===v}),W=H.map(function(J){return J.internalId}),q=N.dependencies.items.filter(function(J){return-1===k.indexOf(J.internalId)&&(J.predecessorId===v||J.successorId===v)&&!W.some(function(ne){return J.predecessorId===ne||J.successorId===ne})});if(q.length){if(!this.control.settings.editing.allowDependencyDelete)return!1;q.forEach(function(J){V.add(new g.RemoveDependencyHistoryItem(O.modelManipulator,J.internalId)),k.push(J.internalId)})}if(N.assignments.items.filter(function(J){return J.taskId===v}).forEach(function(J){O.modelManipulator.dispatcher.fireResourceUnassigning(J)&&V.add(new p.DeassignResourceHistoryItem(O.modelManipulator,J.internalId))}),H.reverse().forEach(function(J){return new m(O.control).execute(J.internalId,!1,!0,!1,V,k)}),B?b.add(V):P.addAndRedo(V),this.isUpdateParentTaskRequired){var G=this.control.viewModel.findItem(A.parentId);h.prototype.updateParent.call(this,G)}return P.endTransaction(),N.endUpdate(),!0},m.prototype.isEnabled=function(){var v=this.control,b=v.viewModel.findItem(v.currentSelectedTaskID);return h.prototype.isEnabled.call(this)&&(!!b&&b.selected||this.isApiCall)},m.prototype.getState=function(){var v=h.prototype.getState.call(this);return v.visible=v.visible&&this.control.settings.editing.allowTaskDelete,v},m}(w(24).TaskCommandBase);D.RemoveTaskCommand=c},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskRemovingArguments=void 0;var E=w(0),I=function(C){function y(g){var p=C.call(this,g.id)||this;return p.values=g,p}return E.__extends(y,C),y}(w(11).BaseArguments);D.TaskRemovingArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RemoveTaskHistoryItem=void 0;var E=w(0),I=w(2),C=w(42),y=function(g){function p(d,c){var h=g.call(this)||this;return h.modelManipulator=d,h.taskId=c,h}return E.__extends(p,g),p.prototype.redo=function(){g.prototype.redo.call(this),this.task=this.modelManipulator.task.remove(this.taskId)},p.prototype.undo=function(){var d=this;this.modelManipulator.task.create(this.task,this.taskId,function(){window.setTimeout(function(){return g.prototype.undo.call(d)},0)})},p.prototype.undoItemsQuery=function(){var d;this.modelManipulator.task.create(this.task,this.taskId);for(var c=this.historyItems.length-1;d=this.historyItems[c];c--)d instanceof C.CompositionHistoryItem?d.undoItemsQuery():d.undo()},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var d=this;return[{objectType:I.GanttDataObjectNames.task,getKey:function(){return d.taskId},updateKey:function(c){return d.taskId=c}},{objectType:I.GanttDataObjectNames.task,getKey:function(){var c;return null===(c=d.task)||void 0===c?void 0:c.parentId},updateKey:function(c){return d.task.parentId=c}}]},enumerable:!1,configurable:!0}),p}(C.CompositionHistoryItem);D.RemoveTaskHistoryItem=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAddContextItemCommand=void 0;var E=w(0),I=function(C){function y(){return null!==C&&C.apply(this,arguments)||this}return E.__extends(y,C),y.prototype.getState=function(){var g=C.prototype.getState.call(this);return g.visible=g.visible&&this.control.settings.editing.allowTaskInsert,g},y.prototype.execute=function(){return!1},y}(w(24).TaskCommandBase);D.TaskAddContextItemCommand=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ZoomInCommand=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return g.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.zoomIn(),!0},p}(I.CommandBase);D.ZoomInCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ZoomOutCommand=void 0;var E=w(0),I=w(6),C=w(7),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return g.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.zoomOut(),!0},p}(I.CommandBase);D.ZoomOutCommand=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.FullScreenHelperSettings=void 0;var E=w(1),I=function(){function C(){}return C.parse=function(y){var g=new C;return y&&((0,E.isDefined)(y.getMainElement)&&(g.getMainElement=y.getMainElement),(0,E.isDefined)(y.adjustControl)&&(g.adjustControl=y.adjustControl)),g},C}();D.FullScreenHelperSettings=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.FullScreenModeHelper=void 0;var E=w(10),I=w(125),C=w(3),y=function(){function g(p){this._isInFullScreenMode=!1,this.fullScreenTempVars={},this.settings=p}return Object.defineProperty(g.prototype,"isInFullScreenMode",{get:function(){return this._isInFullScreenMode},enumerable:!1,configurable:!0}),g.prototype.getMainElement=function(){return this.settings.getMainElement()},g.prototype.adjustControl=function(){this.settings.adjustControl()},g.prototype.toggle=function(){return this._isInFullScreenMode=!this._isInFullScreenMode,this._isInFullScreenMode?this.setFullScreenMode():this.setNormalMode(),!0},g.prototype.setFullScreenMode=function(){this.prepareFullScreenMode(),this.adjustControlInFullScreenMode()},g.prototype.prepareFullScreenMode=function(){var p=this.getMainElement();I.AttrUtils.changeElementStyleAttribute(p,"border-top-width","0px"),I.AttrUtils.changeElementStyleAttribute(p,"border-left-width","0px"),I.AttrUtils.changeElementStyleAttribute(p,"border-right-width","0px"),I.AttrUtils.changeElementStyleAttribute(p,"border-bottom-width","0px"),this.fullScreenTempVars.scrollTop=C.DomUtils.getDocumentScrollTop(),this.fullScreenTempVars.scrollLeft=C.DomUtils.getDocumentScrollLeft(),I.AttrUtils.changeElementStyleAttribute(p,"background-color","white"),I.AttrUtils.changeElementStyleAttribute(p,"position","fixed"),I.AttrUtils.changeElementStyleAttribute(p,"top","0px"),I.AttrUtils.changeElementStyleAttribute(p,"left","0px"),I.AttrUtils.changeElementStyleAttribute(p,"z-index","1010"),I.AttrUtils.changeElementStyleAttribute(document.documentElement,"position","static"),I.AttrUtils.changeElementStyleAttribute(document.documentElement,"overflow","hidden"),this.fullScreenTempVars.bodyMargin=document.body.style.margin,document.body.style.margin="0",this.fullScreenTempVars.width=p.style.width,this.fullScreenTempVars.height=p.style.height||p.clientHeight,window.self!==window.top&&this.requestFullScreen(document.body)},g.prototype.setNormalMode=function(){this.cancelFullScreen(document);var p=this.getMainElement();I.AttrUtils.restoreElementStyleAttribute(p,"left"),I.AttrUtils.restoreElementStyleAttribute(p,"top"),I.AttrUtils.restoreElementStyleAttribute(p,"background-color"),I.AttrUtils.restoreElementStyleAttribute(document.documentElement,"overflow"),I.AttrUtils.restoreElementStyleAttribute(document.documentElement,"position"),I.AttrUtils.restoreElementStyleAttribute(p,"z-index"),document.body.style.margin=this.fullScreenTempVars.bodyMargin,I.AttrUtils.restoreElementStyleAttribute(p,"position"),I.AttrUtils.restoreElementStyleAttribute(p,"border-top-width"),I.AttrUtils.restoreElementStyleAttribute(p,"border-left-width"),I.AttrUtils.restoreElementStyleAttribute(p,"border-right-width"),I.AttrUtils.restoreElementStyleAttribute(p,"border-bottom-width"),this.setHeight(this.fullScreenTempVars.height),this.setWidth(this.fullScreenTempVars.width),document.documentElement.scrollTop=this.fullScreenTempVars.scrollTop,document.documentElement.scrollLeft=this.fullScreenTempVars.scrollLeft,this.adjustControl()},g.prototype.adjustControlInFullScreenMode=function(){var p=0==document.documentElement.clientWidth?document.body.clientWidth:document.documentElement.clientWidth,d=0==document.documentElement.clientHeight?document.body.clientHeight:document.documentElement.clientHeight;this.setWidth(p),this.setHeight(d),this.adjustControl()},g.prototype.requestFullScreen=function(p){p.requestFullscreen?p.requestFullscreen():p.mozRequestFullScreen?p.mozRequestFullScreen():p.webkitRequestFullscreen?p.webkitRequestFullscreen():p.msRequestFullscreen&&p.msRequestFullscreen()},g.prototype.cancelFullScreen=function(p){E.Browser.Firefox&&!this.getFullScreenElement(p)||(p.webkitExitFullscreen?p.webkitExitFullscreen():p.mozCancelFullScreen?p.mozCancelFullScreen():p.msExitFullscreen?p.msExitFullscreen():p.exitFullscreen&&p.exitFullscreen())},g.prototype.getFullScreenElement=function(p){return p.fullscreenElement||p.webkitFullscreenElement||p.mozFullScreenElement||p.msFullscreenElement},g.prototype.setWidth=function(p){this.getMainElement().style.width=this.isNumber(p)?p+"px":p},g.prototype.setHeight=function(p){this.getMainElement().style.height=this.isNumber(p)?p+"px":p},g.prototype.isNumber=function(p){return!isNaN(parseFloat(p))&&isFinite(p)},g}();D.FullScreenModeHelper=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.AttrUtils=void 0;var E=w(10),I=function(){function C(){}return C.setElementAttribute=function(y,g,p){y.setAttribute&&(E.Browser.IE&&E.Browser.MajorVersion>=11&&"src"===g.toLowerCase()&&y.setAttribute(g,""),y.setAttribute(g,p))},C.setStyleAttribute=function(y,g,p){y.setProperty&&y.setProperty(g,p,"")},C.getElementAttribute=function(y,g){return y.getAttribute(g)},C.getStyleAttribute=function(y,g){if(y.getPropertyValue){if(E.Browser.Firefox)try{return y.getPropertyValue(g)}catch{return y[g]}return y.getPropertyValue(g)}return null},C.removeElementAttribute=function(y,g){y.removeAttribute&&y.removeAttribute(g)},C.removeStyleAttribute=function(y,g){y.removeProperty&&y.removeProperty(g)},C.changeElementStyleAttribute=function(y,g,p){C.saveStyleAttributeInElement(y,g),C.setStyleAttribute(y.style,g,p)},C.restoreElementStyleAttribute=function(y,g){var p="dxwu_saved"+g,d=y.style;if(C.isExistsAttributeInElement(y,p)){var c=C.getElementAttribute(y,p);return c===C.emptyObject||null===c?C.removeStyleAttribute(d,g):C.setStyleAttribute(d,g,c),C.removeElementAttribute(y,p),!0}return!1},C.saveStyleAttributeInElement=function(y,g){var p="dxwu_saved"+g,d=y.style;if(!C.isExistsAttributeInElement(y,p)){var c=C.getStyleAttribute(d,g);C.setElementAttribute(y,p,C.isAttributeExists(c)?c:C.emptyObject)}},C.isExistsAttributeInElement=function(y,g){var p=C.getElementAttribute(y,g);return C.isAttributeExists(p)},C.isAttributeExists=function(y){return null!==y&&""!==y},C.emptyObject="DxEmptyValue",C}();D.AttrUtils=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GanttExportCalculator=void 0;var E=w(5),I=w(3),C=w(4),y=w(25),g=w(60),p=w(61),d=w(44),c=w(17),h=w(26),m=w(36),v=w(45),b=w(130),x=w(131),O=w(27),k=w(12),M=w(134),A=w(136),F=w(63),P=w(37),N=w(35),B=function(){function V(H,W){var q,G;this._owner=H,this._props=new x.GanttPdfExportProps(W),null!==(q=(G=this._props).margins)&&void 0!==q||(G.margins=new m.Margin(V._defaultPageMargin))}return Object.defineProperty(V.prototype,"chartTableScaleTopMatrix",{get:function(){var H;return null!==(H=this._chartTableScaleTopMatrix)&&void 0!==H||(this._chartTableScaleTopMatrix=this.calculateChartScaleMatrix(0)),this._chartTableScaleTopMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"chartTableScaleBottomMatrix",{get:function(){var H;return null!==(H=this._chartTableScaleBottomMatrix)&&void 0!==H||(this._chartTableScaleBottomMatrix=this.calculateChartScaleMatrix(1)),this._chartTableScaleBottomMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"chartTableBodyMatrix",{get:function(){return this._chartTableBodyMatrix||this.calculateChartTableBodyMatrix(),this._chartTableBodyMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"treeListHeaderMatrix",{get:function(){return this._treeListHeaderMatrix||this.calculateTreeListTableHeaderMatrix(),this._treeListHeaderMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"treeListBodyMatrix",{get:function(){return this._treeListBodyMatrix||this.calculateTreeListTableBodyMatrix(),this._treeListBodyMatrix},enumerable:!1,configurable:!0}),V.prototype.getPages=function(H){return new M.PdfGanttPaginator(H,this.settings,this.createGlobalInfo()).getPages()},Object.defineProperty(V.prototype,"settings",{get:function(){return this.settingsForPaging},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"layoutCalculator",{get:function(){return this._taskAreaHelper.layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"taskAreaHelper",{get:function(){var H;return null!==(H=this._taskAreaHelper)&&void 0!==H||(this._taskAreaHelper=new b.TaskAreaExportHelper(this._owner,this._props)),this._taskAreaHelper},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"scalingHelper",{get:function(){var H,W;return null!==(H=this._scalingHelper)&&void 0!==H||(this._scalingHelper=new A.ScalingHelper(null===(W=this._props)||void 0===W?void 0:W.pdfDoc)),this._scalingHelper},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"visibleTaskIndices",{get:function(){return this.taskAreaHelper.visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"baseCellWidth",{get:function(){return this.taskAreaHelper.baseCellSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"baseCellHeight",{get:function(){return this.taskAreaHelper.baseCellHeight},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"chartScaleTableStyle",{get:function(){var H;return null!==(H=this._chartScaleTableStyle)&&void 0!==H||(this._chartScaleTableStyle=this.getChartScaleTableStyle()),this._chartScaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"chartMainTableStyle",{get:function(){var H;return null!==(H=this._chartMainTableStyle)&&void 0!==H||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"treeListTableStyle",{get:function(){return this._treeListTableStyle||this.calculateTreeListTableStyle(),this._treeListTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"pageTopMargin",{get:function(){return this._props.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"pageLeftMargin",{get:function(){return this._props.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"pageRightMargin",{get:function(){return this._props.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"pageBottomMargin",{get:function(){return this._props.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"headerTableTop",{get:function(){var H;return null!==(H=this._headerTableTop)&&void 0!==H||(this._headerTableTop=this.pageTopMargin),this._headerTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"mainTableTop",{get:function(){var H;return null!==(H=this._mainTableTop)&&void 0!==H||(this._mainTableTop=this.getMainTableTop()),this._mainTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"exportDataMode",{get:function(){return this._props.exportDataMode},enumerable:!1,configurable:!0}),V.prototype.getMainTableTop=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.offsetTop},Object.defineProperty(V.prototype,"chartLeft",{get:function(){var H;return null!==(H=this._chartLeft)&&void 0!==H||(this._chartLeft=this.getChartLeft()),this._chartLeft},enumerable:!1,configurable:!0}),V.prototype.getChartLeft=function(){var H;return(((null===(H=this._props)||void 0===H?void 0:H.exportMode)||P.ExportMode.all)===P.ExportMode.chart?this.pageLeftMargin:this.treeListLeft+this.treeListWidth)-this.taskAreaHelper.offsetLeft},Object.defineProperty(V.prototype,"treeListLeft",{get:function(){var H;return null!==(H=this._treeListLeft)&&void 0!==H||(this._treeListLeft=this.pageLeftMargin),this._treeListLeft},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"headerTableHeight",{get:function(){return 2*this.taskAreaHelper.headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"mainTableHeight",{get:function(){var H;return null!==(H=this._mainTableHeight)&&void 0!==H||(this._mainTableHeight=this.taskAreaHelper.taskAreaHeight),this._mainTableHeight},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"treeListWidth",{get:function(){var H;return null!==(H=this._treeListWidth)&&void 0!==H||(this._treeListWidth=this.getTreeListTableWidth()),this._treeListWidth},enumerable:!1,configurable:!0}),V.prototype.getTreeListTableWidth=function(){var H,W=this;return null!==(H=this.treeListHeaderMatrix[0].map(function(G,J){return W.getTreeListColumnWidth(J)})?.reduce(function(G,J){return G+J},0))&&void 0!==H?H:0},Object.defineProperty(V.prototype,"chartWidth",{get:function(){var H=this;return this._chartWidth||(this._chartWidth=this.chartTableScaleBottomMatrix[0].reduce(function(q,G){return q+(G.styles.cellWidth.hasValue()?G.styles.cellWidth.getValue():H.baseCellWidth)},0)),this._chartWidth},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"settingsForPaging",{get:function(){return this._settingsForPaging||(this._settingsForPaging=new x.GanttPdfExportProps(this._props),this.prepareAutoFormat(this._settingsForPaging),this.scalingHelper.scalePageMargins(this._settingsForPaging)),this._settingsForPaging},enumerable:!1,configurable:!0}),V.prototype.prepareAutoFormat=function(H){if(H.format===x.GanttPdfExportProps.autoFormatKey){H.format=null;var W=H.landscape,q=this.autoFormatWidth,G=this.autoFormatHeight;(W&&G>q||!W&&G<q)&&(H.landscape=!W),H.pageSize=new k.Size(q,G)}},Object.defineProperty(V.prototype,"autoFormatWidth",{get:function(){var H,W=((null===(H=this._props)||void 0===H?void 0:H.exportMode)||P.ExportMode.all)!==P.ExportMode.treeList,q=this.pageRightMargin;return(q+=W?this.chartLeft+this.chartWidth:this.treeListLeft+this.treeListWidth)+V._autoFormatWidthAddStock},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"autoFormatHeight",{get:function(){return this.mainTableTop+this.mainTableHeight+this.pageBottomMargin},enumerable:!1,configurable:!0}),V.prototype.createGlobalInfo=function(){var H={objects:this._canExportChart()?this.getGanttObjectsInfo():null,tables:this.getTablesInfo()};return this.scalingHelper.scaleSizes(H),H},V.prototype.getTablesInfo=function(){var H={};return this._canExportTreelist()&&(H[O.PdfPageTableNames.treeListHeader]=this.createTreeListHeaderTableInfo(),H[O.PdfPageTableNames.treeListMain]=this.createTreeListMainTableInfo()),this._canExportChart()&&(H[O.PdfPageTableNames.chartMain]=this.createChartMainTableInfo(),H[O.PdfPageTableNames.chartScaleTop]=this._createChartScaleTopInfo(),H[O.PdfPageTableNames.chartScaleBottom]=this._createChartScaleBottomInfo()),H},Object.defineProperty(V.prototype,"exportMode",{get:function(){var H,W;return null!==(W=null===(H=this._props)||void 0===H?void 0:H.exportMode)&&void 0!==W?W:P.ExportMode.all},enumerable:!1,configurable:!0}),V.prototype._canExportTreelist=function(){return this.exportMode===P.ExportMode.all||this.exportMode===P.ExportMode.treeList},V.prototype._canExportChart=function(){return this.exportMode===P.ExportMode.all||this.exportMode===P.ExportMode.chart},Object.defineProperty(V.prototype,"_predefinedFont",{get:function(){var H,W,q,G;return(null===(W=null===(H=this._props)||void 0===H?void 0:H.pdfDoc)||void 0===W?void 0:W.getFont())?.fontName||(null===(G=null===(q=this._props)||void 0===q?void 0:q.font)||void 0===G?void 0:G.name)},enumerable:!1,configurable:!0}),V.prototype._createChartScaleTopInfo=function(){return{name:O.PdfPageTableNames.chartScaleTop,size:new k.Size(this.chartWidth,this.taskAreaHelper.headerRowHeight),position:new E.Point(this.chartLeft,this.headerTableTop),style:this.chartScaleTableStyle,baseCellSize:new k.Size(this.baseCellWidth,this.taskAreaHelper.headerRowHeight),cells:this.chartTableScaleTopMatrix}},V.prototype._createChartScaleBottomInfo=function(){var H=this.taskAreaHelper.headerRowHeight;return{name:O.PdfPageTableNames.chartScaleBottom,size:new k.Size(this.chartWidth,H),position:new E.Point(this.chartLeft,this.headerTableTop+H),style:this.chartScaleTableStyle,baseCellSize:new k.Size(this.baseCellWidth,H),cells:this.chartTableScaleBottomMatrix}},V.prototype.createChartMainTableInfo=function(){return{name:O.PdfPageTableNames.chartMain,size:new k.Size(this.chartWidth,this.mainTableHeight),position:new E.Point(this.chartLeft,this.mainTableTop),style:this.chartMainTableStyle,baseCellSize:new k.Size(this.baseCellWidth,this.baseCellHeight),cells:this.chartTableBodyMatrix,hideRowLines:!this._owner.settings.areHorizontalBordersEnabled}},V.prototype.createTreeListHeaderTableInfo=function(){return{name:O.PdfPageTableNames.treeListHeader,size:new k.Size(this.treeListWidth,this.headerTableHeight),position:new E.Point(this.treeListLeft,this.headerTableTop),style:this.treeListTableStyle,baseCellSize:new k.Size(null,this.headerTableHeight),cells:this.treeListHeaderMatrix}},V.prototype.createTreeListMainTableInfo=function(){return{name:O.PdfPageTableNames.treeListMain,size:new k.Size(this.treeListWidth,this.mainTableHeight),position:new E.Point(this.treeListLeft,this.mainTableTop),style:this.treeListTableStyle,baseCellSize:new k.Size(null,this.baseCellHeight),cells:this.treeListBodyMatrix,hideRowLines:!this._owner.settings.areHorizontalBordersEnabled}},V.prototype.calculateChartScaleMatrix=function(H){for(var W=this.taskAreaHelper,q=W.scaleRanges,G=new Array,ne=q[H][1],ae=q[H][0];ae<=ne;ae++){var ge=this.layoutCalculator.getScaleItemStart(ae,W.scales[H]),pe=new v.CellDef(this._owner.renderHelper.getScaleItemTextByStart(ge,W.scales[H]));pe.styles.cellPadding.assign(0),pe.styles.minCellHeight=this.taskAreaHelper.headerRowHeight,pe.styles.cellWidth.assign(0===H?W.scaleTopWidths[ae]:W.scaleBottomWidths[ae]),G.push(pe)}return[G]},V.prototype.calculateChartTableBodyMatrix=function(){var H=this;this._chartTableBodyMatrix=new Array,this.visibleTaskIndices.length>0?this.visibleTaskIndices.forEach(function(W){return H._chartTableBodyMatrix.push(H.createChartTableBodyRow(W))}):this._chartTableBodyMatrix.push(this.createChartTableBodyRow(-1))},V.prototype.createChartTableBodyRow=function(H){var W=new v.CellDef;return this.rowHasChildren(H)&&W.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),this.chartTableScaleBottomMatrix[0].map(function(q){var G=new v.CellDef(W);return G.styles.cellWidth.assign(q.styles.cellWidth),G})},V.prototype.rowHasSelection=function(H){return this._owner.rowHasSelection(H)},V.prototype.rowHasChildren=function(H){return this._owner.rowHasChildren(H)},V.prototype.calculateTreeListTableHeaderMatrix=function(){this._treeListHeaderMatrix=new Array;for(var H=this._owner,W=H.getTreeListColCount(),q=new Array,G=0;G<W;G++){var J=new v.CellDef(H.getTreeListHeaderInfo(G));J.styles.minCellHeight=2*this.taskAreaHelper.headerRowHeight,q.push(J)}this._treeListHeaderMatrix.push(q)},V.prototype.calculateTreeListTableBodyMatrix=function(){this._treeListBodyMatrix=new Array,this.visibleTaskIndices.length>0?this.fillTreeListTableBodyMatrix(this._treeListBodyMatrix):this.fillTreeListEmptyTableBodyMatrix(this._treeListBodyMatrix)},V.prototype.fillTreeListTableBodyMatrix=function(H){for(var W,q=this.visibleTaskIndices,G=this.treeListHeaderMatrix[0].length,J=0;J<q.length;J++){for(var ne=new Array,ae=q[J],ge=null===(W=this._owner.getTask(ae))||void 0===W?void 0:W.id,pe=0;pe<G;pe++){var le=new v.CellDef(this._owner.getTreeListCellInfo(ae,pe,ge));le.styles.cellWidth.hasValue()||le.styles.cellWidth.assign(this.getTreeListColumnWidth(pe)),this.rowHasChildren(q[J])&&le.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),ne.push(le)}H.push(ne)}},V.prototype.fillTreeListEmptyTableBodyMatrix=function(H){var W=new Array,q=new v.CellDef(this._owner.getTreeListEmptyDataCellInfo());q.styles.cellWidth.assign(this.treeListWidth),q.styles.halign=N.PredefinedStyles.horizontalAlign[1],q.styles.valign=N.PredefinedStyles.verticalAlign[1],W.push(q),H.push(W)},V.prototype.getTreeListColumnWidth=function(H){var W=this.treeListHeaderMatrix[0][H],q=W&&W.styles;return q.cellWidth.getValue()||q.minCellWidth||0},V.prototype.getObjectsLeftOffset=function(H){void 0===H&&(H=!1);var W=this.dataObjectLeftDelta;return H||(W+=this.taskAreaHelper.customRangeLeftOffset),W},Object.defineProperty(V.prototype,"dataObjectLeftDelta",{get:function(){var H;return null!==(H=this._dataObjectLeftDelta)&&void 0!==H||(this._dataObjectLeftDelta=this.getDataObjectLeftDelta()),this._dataObjectLeftDelta},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"dataObjectTopDelta",{get:function(){var H;return null!==(H=this._dataObjectTopDelta)&&void 0!==H||(this._dataObjectTopDelta=this.getDataObjectTopDelta()),this._dataObjectTopDelta},enumerable:!1,configurable:!0}),V.prototype.getChartScaleTableStyle=function(){var H=new h.StyleDef(this.taskAreaHelper.scaleTableStyle);return this._predefinedFont&&(H.font=this._predefinedFont),H},V.prototype.getChartMainTableStyle=function(){var H=new h.StyleDef(this.taskAreaHelper.chartMainTableStyle);return this._predefinedFont&&(H.font=this._predefinedFont),H},V.prototype.calculateTreeListTableStyle=function(){this._treeListTableStyle=new h.StyleDef(this._owner.getTreeListTableStyle()),this._treeListTableStyle.fillColor.assign(this.chartMainTableStyle.fillColor),this._treeListTableStyle.lineColor.assign(this.chartMainTableStyle.lineColor),this._predefinedFont&&(this._treeListTableStyle.font=this._predefinedFont)},V.prototype.getGanttObjectsInfo=function(){return{tasks:this.tasksInfo,dependencies:this.dependenciesInfo,resources:this.resourcesInfo,timeMarkers:this.timeMarkersInfo}},Object.defineProperty(V.prototype,"tasksInfo",{get:function(){var H;return null!==(H=this._tasksInfo)&&void 0!==H||(this._tasksInfo=this.calculateTasksInfo()),this._tasksInfo},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"dependenciesInfo",{get:function(){var H;return null!==(H=this._dependenciesInfo)&&void 0!==H||(this._dependenciesInfo=this.calculateDependenciesInfo()),this._dependenciesInfo},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"resourcesInfo",{get:function(){var H;return null!==(H=this._resourcesInfo)&&void 0!==H||(this._resourcesInfo=this.calculateResourcesInfo()),this._resourcesInfo},enumerable:!1,configurable:!0}),Object.defineProperty(V.prototype,"timeMarkersInfo",{get:function(){var H;return null!==(H=this._timeMarkersInfo)&&void 0!==H||(this._timeMarkersInfo=this.calculateTimeMarkersInfoInfo()),this._timeMarkersInfo},enumerable:!1,configurable:!0}),V.prototype.getDataObjectLeftDelta=function(){return this.chartLeft-this.taskAreaHelper.objectsLeftDelta},V.prototype.getDataObjectTopDelta=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.objectsTopDelta},V.prototype.calculateTasksInfo=function(){var H=this,W=new Array;return this.visibleTaskIndices.forEach(function(q){return W.push(H.calculateTaskInfo(q))}),W},V.prototype.calculateTaskInfo=function(H){var W=new d.PdfTaskInfo,q=this.layoutCalculator.getTaskElementInfo(H);return W.taskColor=this.getTaskColor(H),W.sidePoints=this.getTaskSidePoints(H),W.isMilestone=q.className.indexOf(y.GridLayoutCalculator.milestoneClassName)>0,W.isMilestone||(W.isSmallTask=q.className.indexOf(y.GridLayoutCalculator.smallTaskClassName)>0,W.isParent=q.className.indexOf(y.GridLayoutCalculator.parentTaskClassName)>0,this.appendTaskTitle(W,H),this.appendTaskProgress(W,H)),W},V.prototype.appendTaskTitle=function(H,W){var q=this._owner.settings.taskTitlePosition;H.isSmallTask&&q!==C.TaskTitlePosition.Outside||q===C.TaskTitlePosition.None||(H.text=this._owner.getTaskText(W),H.textPosition=q,H.textStyle=this.getTaskTextStyle(W))},V.prototype.appendTaskProgress=function(H,W){var q=this.layoutCalculator.getTaskProgressElementInfo(W);H.progressWidth=q.size.width,H.progressColor=this.getTaskProgressColor(W),H.progressColor.applyOpacityToBackground(H.taskColor)},V.prototype.getTaskSidePoints=function(H){var W=this,q=this.layoutCalculator.getTaskSidePoints(H);return q.forEach(function(G){G.x+=W.getObjectsLeftOffset(!0),G.y+=W.dataObjectTopDelta}),q},V.prototype.getTaskColor=function(H){var W=this.taskAreaHelper.getTaskElementBackColor(H,y.GridLayoutCalculator.taskClassName);return new c.Color(W)},V.prototype.getTaskProgressColor=function(H){return new c.Color(this.taskAreaHelper.getTaskElementBackColor(H,y.GridLayoutCalculator.taskProgressClassName))},V.prototype.getTaskTextStyle=function(H){var W=new h.StyleDef;return W.cellPadding.assign(0),W.assign(this.taskAreaHelper.getTaskElementStyle(H,y.GridLayoutCalculator.taskTitleClassName)),W},V.prototype.calculateDependenciesInfo=function(){var H=this,W=new Array,q=this.taskAreaHelper,G=new c.Color(q.dependencyColor);return q.connectorLines.forEach(function(J){return W.push(H.createLineInfo(J,G,q.arrowWidth))}),W},V.prototype.createLineInfo=function(H,W,q){var G=new g.PdfDependencyLineInfo;if(G.fillColor=W,H.className.indexOf(y.GridLayoutCalculator.arrowClassName)>-1){var J=this.layoutCalculator.getArrowPositionByClassName(H.className);G.arrowInfo={position:J,width:q},G.points=[this.getArrowTopCorner(H,J,q)]}else G.points=this.getLinePoints(H);return G},V.prototype.getArrowTopCorner=function(H,W,q){var G=H.position.x+this.getObjectsLeftOffset(),J=H.position.y+this.dataObjectTopDelta;switch(W){case C.Position.Left:G+=q;break;case C.Position.Top:J+=q}return new E.Point(G,J)},V.prototype.getLinePoints=function(H){var W=H.position.x+this.getObjectsLeftOffset(),q=H.position.y+this.dataObjectTopDelta,G=W+H.size.width,J=q+H.size.height;return[new E.Point(W,q),new E.Point(G,J)]},V.prototype.calculateResourcesInfo=function(){var H=this,W=new Array;return this.taskAreaHelper.resourcesElements.forEach(function(q){return W=W.concat(H.calculateResourcesInLine(q))}),W},V.prototype.calculateResourcesInLine=function(H){var W=new Array;if(H)for(var q=I.DomUtils.pxToInt(H.style.left)+this.getObjectsLeftOffset(),G=I.DomUtils.pxToInt(H.style.top)+this.dataObjectTopDelta,J=H.getElementsByClassName(y.GridLayoutCalculator.taskResourceClassName),ne=0;ne<J.length;ne++){var ae=J[ne],ge=getComputedStyle(ae);q+=this.getMargin(ge).left,W.push(new p.PdfTaskResourcesInfo(ae.textContent,new h.StyleDef(ge),q,G)),q+=I.DomUtils.pxToInt(ge.width)}return W},V.prototype.calculateTimeMarkersInfoInfo=function(){var H=this,W=new Array;return this.taskAreaHelper.stripLinesElements.forEach(function(q){return W.push(H.createTimeMarkerInfo(q,!0))}),this.taskAreaHelper.noWorkingIntervalsElements.forEach(function(q){return W.push(H.createTimeMarkerInfo(q,!1))}),W},V.prototype.createTimeMarkerInfo=function(H,W){var q=getComputedStyle(H),G=I.DomUtils.pxToInt(q.left)+this.getObjectsLeftOffset(),J=I.DomUtils.pxToInt(q.top)+this.dataObjectTopDelta,ne=I.DomUtils.pxToInt(q.width),ae=I.DomUtils.pxToInt(q.height);return new F.PdfTimeMarkerInfo(new E.Point(G,J),new k.Size(ne,ae),new c.Color(q.backgroundColor),new c.Color(q.borderLeftColor),W)},V.prototype.getMargin=function(H){var W=new m.Margin(0);if(H){var q=H.margin;q||(q+=H.marginTop||"0",q+=" "+H.marginRight||0,q+=" "+H.marginBottom||0,q+=" "+H.marginLeft||0),W.assign(q)}return W},V._defaultPageMargin=10,V._autoFormatWidthAddStock=1,V}();D.GanttExportCalculator=B},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Margins=void 0;var E=w(0),I=function(C){function y(){return null!==C&&C.apply(this,arguments)||this}return E.__extends(y,C),y.empty=function(){return new y(0,0,0,0)},y.prototype.clone=function(){return new y(this.left,this.right,this.top,this.bottom)},y}(w(128).Offsets);D.Margins=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Offsets=void 0;var E=function(){function I(C,y,g,p){this.left=C,this.right=y,this.top=g,this.bottom=p}return I.empty=function(){return new I(0,0,0,0)},Object.defineProperty(I.prototype,"horizontal",{get:function(){return this.left+this.right},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"vertical",{get:function(){return this.top+this.bottom},enumerable:!1,configurable:!0}),I.fromNumber=function(C){return new I(C,C,C,C)},I.fromOffsets=function(C){return new I(C.left,C.right,C.top,C.bottom)},I.fromSide=function(C,y){return new I(C,C,y,y)},I.prototype.normalize=function(){return this.left=Math.max(0,this.left),this.right=Math.max(0,this.right),this.top=Math.max(0,this.top),this.bottom=Math.max(0,this.bottom),this},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.isEmpty=function(){return 0===this.left&&0===this.right&&0===this.top&&0===this.bottom},I.prototype.offset=function(C){return this.left+=C.left,this.right+=C.right,this.top+=C.top,this.bottom+=C.bottom,this},I.prototype.multiply=function(C,y,g,p){switch(arguments.length){case 1:return this.left*=C,this.right*=C,this.top*=C,this.bottom*=C,this;case 2:return this.left*=C,this.right*=C,this.top*=y,this.bottom*=y,this;case 4:return this.left*=C,this.right*=y,this.top*=g,this.bottom*=p,this}return this},I.prototype.clone=function(){return new I(this.left,this.right,this.top,this.bottom)},I.prototype.copyFrom=function(C){this.left=C.left,this.right=C.right,this.top=C.top,this.bottom=C.bottom},I.prototype.equals=function(C){return this.top===C.top&&this.bottom===C.bottom&&this.right===C.right&&this.left===C.left},I.prototype.applyConverter=function(C){return this.left=C(this.left),this.right=C(this.right),this.top=C(this.top),this.bottom=C(this.bottom),this},I}();D.Offsets=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ScaleCalculator=D.ScaleItemInfo=void 0;var E=w(5),I=w(12),C=w(15),y=w(4),g=function(d,c,h,m){this.start=d,this.end=c,this.position=h,this.size=m};D.ScaleItemInfo=g;var p=function(){function d(){this.firstDayOfWeek=0}return d.prototype.setSettings=function(c,h,m,v){void 0===v&&(v=0),this.range=c,this.viewType=h,this.tickSize=m,this.firstDayOfWeek=v,this.reset()},d.prototype.setViewType=function(c){this.viewType=c,this.reset()},d.prototype.reset=function(){delete this._bottomScaleItems,delete this._topScaleItems,delete this._scaleWidth},d.prototype.getScaleIndexByPos=function(c,h){null!=h||(h=this.viewType);var m=h===this.viewType?this.bottomScaleItems:this.topScaleItems,v=-1;if(m.findIndex)v=m.findIndex(function(x){return c>=x.position.x&&c<=x.position.x+x.size.width});else{var b=m.filter(function(x){return c>=x.position.x&&c<=x.position.x+x.size.width})[0];b&&(v=m.indexOf(b))}return v},d.prototype.getScaleBorderPosition=function(c,h){var m=this.getScaleItems(h)[c];if(m)return m.position.x+m.size.width},d.prototype.getScaleItems=function(c){return c===this.viewType?this.bottomScaleItems:c===C.DateUtils.ViewTypeToScaleMap[this.viewType]?this.topScaleItems:null},d.prototype.getScaleItem=function(c,h){return this.getScaleItems(h)[c]},d.prototype.getScaleItemAdjustedStart=function(c,h){var m=this.getScaleItems(h)[c];if(c>0)return m.start;var v=h!==this.viewType,b=v?C.DateUtils.adjustStartDateByViewType(this.range.start,this.viewType,this.firstDayOfWeek):this.getAdjustedBottomScaleItemStart(m.start,h,this.firstDayOfWeek);if(v&&h===y.ViewType.Months){var x=this.range.start;b=new Date(x.getFullYear(),x.getMonth(),1)}if(v&&h===y.ViewType.FiveYears){var O=5*Math.trunc(b.getFullYear()/5);b=new Date(O,b.getMonth(),b.getDate())}return b},Object.defineProperty(d.prototype,"topScaleItems",{get:function(){var c;return null!==(c=this._topScaleItems)&&void 0!==c||(this._topScaleItems=this.calculateTopScale(C.DateUtils.ViewTypeToScaleMap[this.viewType])),this._topScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"bottomScaleItems",{get:function(){var c;return null!==(c=this._bottomScaleItems)&&void 0!==c||(this._bottomScaleItems=this.calculateBottomScale(this.viewType)),this._bottomScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"scaleWidth",{get:function(){var c;return null!==(c=this._scaleWidth)&&void 0!==c||(this._scaleWidth=this.calculateScaleWidth()),this._scaleWidth},enumerable:!1,configurable:!0}),d.prototype.getFirstScaleIndexForRender=function(c){var h=this.getScaleIndexByPos(c);return Math.max(h-10,0)},d.prototype.getLastScaleIndexForRender=function(c){var h=this.getScaleIndexByPos(c);return-1===h?this.bottomScaleItems.length-1:Math.min(h+10,this.bottomScaleItems.length-1)},d.prototype.getTopScaleIndexByBottomIndex=function(c){var h=this.bottomScaleItems[c];return h?this.getScaleIndexByPos(h.position.x,C.DateUtils.ViewTypeToScaleMap[this.viewType]):-1},d.prototype.calculateBottomScale=function(c){for(var h=new Array,m=this.tickSize.width,v=this.range.start,b=0;v.getTime()<this.range.end.getTime();){var x=this.getNextScaleDate(v,c),O=v.getTime()===this.range.start.getTime(),k=x.getTime()>=this.range.end.getTime(),M=O||k?this.getRangeTickCount(v,x)*m:m;h.push(new g(v,x,new E.Point(b,void 0),new I.Size(M,0))),v=x,b+=M}return h},d.prototype.calculateTopScale=function(c){for(var h=new Array,m=this.range.end.getTime(),v=this.range.start,b=0,x=0;v.getTime()<m;)for(var O=this.getNextScaleDate(v,c),k=O.getTime(),M=x;M<this.bottomScaleItems.length;M++){var A=this.bottomScaleItems[M],F=A.start.getTime(),P=A.end.getTime();if(k>=F&&k<=P){var N=(k-F)/(P-F)*A.size.width+A.position.x;h.push(new g(v,O,new E.Point(b,void 0),new I.Size(N-b,0))),x=M,b=N,v=O;break}}return h},d.prototype.getDateInScale=function(c){for(var h=0;h<this.bottomScaleItems.length;h++){var m=this.bottomScaleItems[h],v=m.size.width,b=m.position.x;if(c>=b&&c<=b+v){var x=m.start.getTime(),O=(c-b)/v*(m.end.getTime()-x);return new Date(m.start.getTime()+O)}}return new Date(this.range.end)},d.prototype.getNextScaleDate=function(c,h){var m;switch(h){case y.ViewType.TenMinutes:m=this.getNextDateInTenMinutesScale(c);break;case y.ViewType.Hours:m=this.getNextDateInHoursScale(c);break;case y.ViewType.SixHours:m=this.getNextDateInSixHoursScale(c);break;case y.ViewType.Days:m=this.getNextDateInDaysScale(c);break;case y.ViewType.Weeks:m=this.getNextDateInWeeksScale(c,this.firstDayOfWeek);break;case y.ViewType.Months:m=this.getNextDateInMonthsScale(c);break;case y.ViewType.Quarter:m=this.getNextDateInQuartersScale(c);break;case y.ViewType.Years:m=this.getNextDateInYearsScale(c);break;case y.ViewType.FiveYears:m=this.getNextDateInFiveYearsScale(c)}return m.getTime()>this.range.end.getTime()&&(m=this.range.end),m},d.prototype.getNextTimeBySpan=function(c,h){return(Math.trunc(c/h)+1)*h},d.prototype.getNextDateInTenMinutesScale=function(c){var h=this.getNextTimeBySpan(c.getMinutes(),10);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),h)},d.prototype.getNextDateInHoursScale=function(c){return new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours()+1)},d.prototype.getNextDateInSixHoursScale=function(c){var h=this.getNextTimeBySpan(c.getHours(),6);return new Date(c.getFullYear(),c.getMonth(),c.getDate(),h)},d.prototype.getNextDateInDaysScale=function(c){return new Date(c.getFullYear(),c.getMonth(),c.getDate()+1)},d.prototype.getNextDateInWeeksScale=function(c,h){return void 0===h&&(h=0),new Date(c.getFullYear(),c.getMonth(),c.getDate()-c.getDay()+h+7)},d.prototype.getNextDateInMonthsScale=function(c){return new Date(c.getFullYear(),c.getMonth()+1,1)},d.prototype.getNextDateInQuartersScale=function(c){var h=this.getNextTimeBySpan(c.getMonth(),3);return new Date(c.getFullYear(),h,1)},d.prototype.getNextDateInYearsScale=function(c){return new Date(c.getFullYear()+1,0,1)},d.prototype.getNextDateInFiveYearsScale=function(c){var h=this.getNextTimeBySpan(c.getFullYear(),5);return new Date(h,0,1)},d.prototype.getAdjustedBottomScaleItemStart=function(c,h,m){switch(void 0===m&&(m=0),h){case y.ViewType.TenMinutes:return new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),10*Math.floor(c.getMinutes()/10));case y.ViewType.SixHours:return new Date(c.getFullYear(),c.getMonth(),c.getDate(),6*Math.floor(c.getHours()/6));case y.ViewType.Hours:return new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours());case y.ViewType.Days:return new Date(c.getFullYear(),c.getMonth(),c.getDate());case y.ViewType.Weeks:return new Date(c.getFullYear(),c.getMonth(),c.getDate()-c.getDay()+m);case y.ViewType.Months:return new Date(c.getFullYear(),c.getMonth(),1);case y.ViewType.Quarter:return new Date(c.getFullYear(),3*Math.floor(c.getMonth()/3),1);case y.ViewType.Years:return new Date(c.getFullYear(),0,1);default:return new Date}},d.prototype.calculateScaleWidth=function(){return this.bottomScaleItems.reduce(function(c,h){return c+h.size.width},0)},d.prototype.getScaleItemColSpan=function(c){return c.valueOf()===this.viewType.valueOf()?1:this.viewType===y.ViewType.TenMinutes?6:this.viewType===y.ViewType.Hours?24:this.viewType===y.ViewType.SixHours?4:this.viewType===y.ViewType.Days?7:this.viewType===y.ViewType.Weeks?4.29:this.viewType===y.ViewType.Months?12:this.viewType===y.ViewType.Quarter?4:this.viewType===y.ViewType.Years?5:1},d.prototype.getRangeTickCount=function(c,h){return C.DateUtils.getRangeTickCount(c,h,this.viewType)},d}();D.ScaleCalculator=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaExportHelper=void 0;var E=w(3),I=w(19),C=w(25),y=w(15),g=w(17),p=w(37),d=function(){function c(h,m){this._owner=h,this._props=m}return Object.defineProperty(c.prototype,"customRangeLeftOffset",{get:function(){var h;return null!==(h=this._customRangeLeftOffset)&&void 0!==h||(this._customRangeLeftOffset=this.layoutCalculator.getWidthByDateRange(this.startDate,this.ownerStartDate)),this._customRangeLeftOffset},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"baseCellSize",{get:function(){return this._owner.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"objectsLeftDelta",{get:function(){return this.renderedScaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"objectsTopDelta",{get:function(){if(!this.hasTasks)return 0;var h=this.visibleTaskIndices[0];return this.getCellTop(h)+this.getTaskCellOffsetTop(h)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"offsetLeft",{get:function(){var h;return null!==(h=this._offsetLeft)&&void 0!==h||(this._offsetLeft=Math.max(this.visibleLeft-this.renderedScaleLeft,0)),this._offsetLeft},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"offsetTop",{get:function(){var h;return null!==(h=this._offsetTop)&&void 0!==h||(this._offsetTop=this.getOffsetTop()),this._offsetTop},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scales",{get:function(){var h=this.settings.viewType;return[y.DateUtils.ViewTypeToScaleMap[h],h]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scaleRanges",{get:function(){var h;return null!==(h=this._scaleRanges)&&void 0!==h||(this._scaleRanges=this.layoutCalculator.getScaleRangesInArea(this.scaleLeft,this.scaleRight)),this._scaleRanges},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scaleBottomStartIndex",{get:function(){return this.scaleRanges[1][0]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scaleBottomEndIndex",{get:function(){return this.scaleRanges[1][1]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scaleTopStartIndex",{get:function(){return this.scaleRanges[0][0]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scaleTopEndIndex",{get:function(){return this.scaleRanges[0][1]},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scaleTopWidths",{get:function(){var h;return null!==(h=this._scaleTopWidths)&&void 0!==h||(this._scaleTopWidths=this.getScaleTopWidths()),this._scaleTopWidths},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scaleBottomWidths",{get:function(){var h;return null!==(h=this._scaleBottomWidths)&&void 0!==h||(this._scaleBottomWidths=this.getScaleBottomWidths()),this._scaleBottomWidths},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"headerRowHeight",{get:function(){if(!this._headerRowHeight){var h=this.scaleElements[0].filter(function(m){return!!m})[0];this._headerRowHeight=h?.offsetHeight}return this._headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"visibleTaskIndices",{get:function(){var h;return null!==(h=this._visibleTaskIndices)&&void 0!==h||(this._visibleTaskIndices=this.getTaskIndices()),this._visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"baseCellHeight",{get:function(){return this.hasTasks?this.baseCellSize.height:this.taskAreaHeight},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"taskAreaHeight",{get:function(){return this.hasTasks?this.visibleTaskIndices.length*this.baseCellHeight:this._owner.renderHelper.taskArea.offsetHeight},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scaleTableStyle",{get:function(){var h;return null!==(h=this._scaleTableStyle)&&void 0!==h||(this._scaleTableStyle=this.getScaleTableStyle()),this._scaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"chartMainTableStyle",{get:function(){var h;return null!==(h=this._chartMainTableStyle)&&void 0!==h||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"parentRowBackColor",{get:function(){var h;return null!==(h=this._parentRowBackColor)&&void 0!==h||(this._parentRowBackColor=this.getParentBackColor()),this._parentRowBackColor},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"arrowWidth",{get:function(){var h;return null!==(h=this._arrowWidth)&&void 0!==h||(this._arrowWidth=this.getArrowWidth()),this._arrowWidth},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dependencyColor",{get:function(){var h;return null!==(h=this._dependencyColor)&&void 0!==h||(this._dependencyColor=this.getDependencyColor()),this._dependencyColor},enumerable:!1,configurable:!0}),c.prototype.getTaskElementBackColor=function(h,m){return this.getTaskElementStyle(h,m)?.backgroundColor},c.prototype.getTaskElementStyle=function(h,m){var v=this.getTaskWrapper(h);return this.getElementStyle(v.getElementsByClassName(m)[0])},Object.defineProperty(c.prototype,"hasTasks",{get:function(){return this.visibleTaskIndices.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"visibleLeft",{get:function(){var h;return null!==(h=this._visibleLeft)&&void 0!==h||(this._visibleLeft=this.isVisibleMode?this.container.scrollLeft:0),this._visibleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"visibleTop",{get:function(){var h;return null!==(h=this._visibleTop)&&void 0!==h||(this._visibleTop=this.isVisibleMode?this.container.scrollTop:0),this._visibleTop},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"visibleRight",{get:function(){var h;return null!==(h=this._visibleRight)&&void 0!==h||(this._visibleRight=this.getVisibleRight()),this._visibleRight},enumerable:!1,configurable:!0}),c.prototype.getVisibleRight=function(){var h=this.container.getElement().offsetWidth;return this.visibleLeft+h},Object.defineProperty(c.prototype,"visibleBottom",{get:function(){var h;return null!==(h=this._visibleBottom)&&void 0!==h||(this._visibleBottom=this.getVisibleBottom()),this._visibleBottom},enumerable:!1,configurable:!0}),c.prototype.getVisibleBottom=function(){return this.isVisibleMode?this.visibleTop+this.container.getHeight():this.visibleTaskIndices.length*this.baseCellSize.height},Object.defineProperty(c.prototype,"scaleLeft",{get:function(){var h;return null!==(h=this._scaleLeft)&&void 0!==h||(this._scaleLeft=this.isVisibleMode?this.visibleLeft:this.getPosByDate(this.startDate)),this._scaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scaleRight",{get:function(){var h;return null!==(h=this._scaleRight)&&void 0!==h||(this._scaleRight=this.isVisibleMode?this.visibleRight:this.getPosByDate(this.endDate)-1),this._scaleRight},enumerable:!1,configurable:!0}),c.prototype.getScaleTopWidths=function(){var h=this.getScaleWidths(this.scaleTopStartIndex,this.scaleTopEndIndex,this.scales[0]),m=this.layoutCalculator,v=m.getScaleItemInfo(this.scaleBottomStartIndex,this.scales[1]),b=m.getScaleItemInfo(this.scaleTopStartIndex,this.scales[0]),x=Math.max(v.position.x-b.position.x,0);h[this.scaleTopStartIndex]-=x;var O=m.getScaleItemInfo(this.scaleTopEndIndex,this.scales[0]),k=m.getScaleItemInfo(this.scaleBottomEndIndex,this.scales[1]);return x=Math.max(O.position.x+O.size.width-k.position.x-k.size.width,0),h[this.scaleTopEndIndex]-=x,h},c.prototype.getScaleBottomWidths=function(){return this.getScaleWidths(this.scaleBottomStartIndex,this.scaleBottomEndIndex,this.scales[1])},c.prototype.getScaleWidths=function(h,m,v){for(var b=new Array,x=h;x<=m;x++)b[x]=this.layoutCalculator.getScaleItemInfo(x,v).size.width;return b},c.prototype.getOffsetTop=function(){return this.isVisibleMode&&this.hasTasks?this.getTaskCellOffsetTop(this.visibleTaskIndices[0]):0},Object.defineProperty(c.prototype,"renderedScaleLeft",{get:function(){return this.getCellLeft(this.scaleBottomStartIndex)},enumerable:!1,configurable:!0}),c.prototype.getTaskCellOffsetTop=function(h){var m=this.getCellTop(h);return Math.max(this.visibleTop-m,0)},c.prototype.getCellTop=function(h){return this.layoutCalculator.getGridBorderPosition(h-1,!1).y},c.prototype.getCellLeft=function(h){return this.layoutCalculator.getScaleItemInfo(h,this.scales[1]).position.x},c.prototype.getTaskIndices=function(){var h,m;return this.dataMode===p.DataExportMode.all||this.exportRange?this._owner.getAllVisibleTaskIndices(null===(h=this.exportRange)||void 0===h?void 0:h.startIndex,null===(m=this.exportRange)||void 0===m?void 0:m.endIndex):this.getVisibleTaskIndices()},c.prototype.getVisibleTaskIndices=function(){var h=this,m=[];return this.taskElements.forEach(function(v,b){if(v){var x=E.DomUtils.pxToInt(v.style.top),O=x+v.offsetHeight;(x>=h.visibleTop&&x<=h.visibleBottom||O>=h.visibleTop&&O<=h.visibleBottom)&&m.push(b)}}),m},Object.defineProperty(c.prototype,"scaleElements",{get:function(){return this._owner.renderHelper.scaleElements.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"scaleBorders",{get:function(){return this._owner.renderHelper.scaleBorders.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hlRowElements",{get:function(){return this._owner.renderHelper.hlRowElements.filter(function(h){return!!h})},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"selectionElements",{get:function(){return this._owner.renderHelper.selectionElements.filter(function(h){return!!h})},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"taskElements",{get:function(){return this._owner.renderHelper.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"connectorLines",{get:function(){var h,m=this;return null!==(h=this._connectorLines)&&void 0!==h||(this._connectorLines=this._owner.renderHelper.allConnectorLines.filter(function(v){return m.isLineVisible(v)})),this._connectorLines},enumerable:!1,configurable:!0}),c.prototype.isLineVisible=function(h){return this.dataMode===p.DataExportMode.all||this.visibleDependencyKeys.indexOf(h.attr["dependency-id"])>-1},Object.defineProperty(c.prototype,"visibleDependencyKeys",{get:function(){var h;return null!==(h=this._visibleDependencyKeys)&&void 0!==h||(this._visibleDependencyKeys=this._owner.getVisibleDependencyKeysByTaskRange(this.visibleTaskIndices)),this._visibleDependencyKeys},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"resourcesElements",{get:function(){var h,m=this;return null!==(h=this._resourcesElements)&&void 0!==h||(this._resourcesElements=this.visibleTaskIndices.map(function(v){return m._owner.renderHelper.resourcesElements[v]}).filter(function(v){return v&&v.parentElement})),this._resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"stripLinesElements",{get:function(){if(!this._stripLinesElements){var h=this._owner.renderHelper.stripLinesMap.filter(function(m){return!!m}).map(function(m){return m});this._stripLinesElements=h.map(function(m){return m})}return this._stripLinesElements},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"noWorkingIntervalsElements",{get:function(){if(!this._noWorkingIntervalsElements){this._noWorkingIntervalsElements=[];var h=this._owner.renderHelper.noWorkingIntervalsToElementsMap;for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&this._noWorkingIntervalsElements.push(h[m])}return this._noWorkingIntervalsElements},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"taskArea",{get:function(){return this._owner.renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"settings",{get:function(){return this._owner.settings},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dataMode",{get:function(){var h;return null===(h=this._props)||void 0===h?void 0:h.exportDataMode},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"exportRange",{get:function(){var h;return null===(h=this._props)||void 0===h?void 0:h.dateRange},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"isVisibleMode",{get:function(){return this.dataMode===p.DataExportMode.visible&&!this.exportRange},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"ownerStartDate",{get:function(){return this._owner.range.start},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"ownerEndDate",{get:function(){return this._owner.range.end},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"startDate",{get:function(){var h,m,v,b;if(null!==(h=this.exportRange)&&void 0!==h&&h.startDate&&null!==(m=this.exportRange)&&void 0!==m&&m.endDate){var x=Math.min(null===(v=this.exportRange)||void 0===v?void 0:v.startDate.getTime(),null===(b=this.exportRange)||void 0===b?void 0:b.endDate.getTime());return new Date(x)}return this.ownerStartDate},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"endDate",{get:function(){var h,m,v,b;if(null!==(h=this.exportRange)&&void 0!==h&&h.startDate&&null!==(m=this.exportRange)&&void 0!==m&&m.endDate){var x=Math.max(null===(v=this.exportRange)||void 0===v?void 0:v.startDate.getTime(),null===(b=this.exportRange)||void 0===b?void 0:b.endDate.getTime());return new Date(x)}return this.ownerEndDate},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"hasCustomRangeOutOfRender",{get:function(){return this.startDate.getTime()!==this.ownerStartDate.getTime()||this.endDate.getTime()!==this.ownerEndDate.getTime()},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"layoutCalculator",{get:function(){if(!this._layoutCalculator){var h=this._owner.renderHelper.gridLayoutCalculator;this.hasCustomRangeOutOfRender?(this._layoutCalculator=new C.GridLayoutCalculator,this._layoutCalculator.setSettings(h.visibleTaskAreaSize,h.tickSize,h.elementSizeValues,new I.DateRange(this.startDate,this.endDate),h.viewModel,h.viewType,h.scrollBarHeight,this._owner.settings.firstDayOfWeek)):this._layoutCalculator=h}return this._layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"container",{get:function(){return this._owner.renderHelper.taskAreaContainer},enumerable:!1,configurable:!0}),c.prototype.getPosByDate=function(h){return this.layoutCalculator.getPosByDate(h)},c.prototype.getScaleTableStyle=function(){var h={},m=this.scaleElements[0].filter(function(b){return!!b})[0],v=this.getElementStyle(m);return h.backgroundColor=this.findElementBackColor(m),h.borderColor=this.getChartTableBorderColor(),h.verticalAlign="middle",h.textAlign="center",h.fontSize=v.fontSize,h.fontFamily=v.fontFamily,h.fontWeight=v.fontWeight,h.fontStyle=v.fontStyle,h.color=v.color,h},c.prototype.getChartMainTableStyle=function(){var h={};return h.backgroundColor=this.findElementBackColor(this.taskArea),h.borderColor=this.getChartTableBorderColor(),h},c.prototype.findElementBackColor=function(h){if(!h)return null;for(var m=h,v=new g.Color("transparent");0===v.opacity&&m;){var b=this.getElementStyle(m);v.assign(b.backgroundColor),m=m.parentElement}return v},c.prototype.getChartTableBorderColor=function(){return this.getElementStyle(this.scaleBorders[0].filter(function(m){return!!m})[0])?.borderColor},c.prototype.getParentBackColor=function(){return this.getElementStyle(this.hlRowElements[0])?.backgroundColor},c.prototype.getArrowWidth=function(){var h=this.getDependencyLineStyle(C.GridLayoutCalculator.arrowClassName);return h&&E.DomUtils.pxToInt(h.borderWidth||h.borderLeftWidth||h.borderRightWidth||h.borderTopWidth||h.borderBottomWidth)},c.prototype.getDependencyColor=function(){return this.getDependencyLineStyle(C.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)?.borderColor},c.prototype.getDependencyLineStyle=function(h){return this.getElementStyle(this.taskArea.getElementsByClassName(h)[0])},c.prototype.getElementStyle=function(h){return h&&getComputedStyle(h)},c.prototype.getTaskWrapper=function(h){return this.isTaskTemplateMode?this._owner.renderHelper.fakeTaskWrapper:(this.taskElements[h]||this._owner.renderHelper.createDefaultTaskElement(h),this.taskElements[h])},Object.defineProperty(c.prototype,"isTaskTemplateMode",{get:function(){return!!this._owner.settings.taskContentTemplate},enumerable:!1,configurable:!0}),c}();D.TaskAreaExportHelper=d},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GanttPdfExportProps=void 0;var E=w(12),I=w(1),C=w(36),y=w(132),g=w(133),p=w(37),d=function(){function c(h){this.landscape=!1,this.margins=null,this.exportMode=p.ExportMode.all,this.exportDataMode=p.DataExportMode.visible,h&&this.assign(h)}return c.prototype.assign=function(h){if(h){if((0,I.isDefined)(h.pdfDocument)&&(this.pdfDoc=h.pdfDocument),(0,I.isDefined)(h.pdfDoc)&&(this.pdfDoc=h.pdfDoc),this.docCreateMethod=h.docCreateMethod,(0,I.isDefined)(h.fileName)&&(this.fileName=h.fileName),this.landscape=!!h.landscape,(0,I.isDefined)(h.margins)&&(this.margins=new C.Margin(h.margins)),(0,I.isDefined)(h.format)){var m=h.format;if("string"==typeof m)this.format=m;else{var v=parseInt(m.width),b=parseInt(m.height);this.pageSize=new E.Size(v,b)}}else if((0,I.isDefined)(h.pageSize)){var x=h.pageSize;this.pageSize=x instanceof E.Size?x.clone():new E.Size(x.width,x.height)}if((0,I.isDefined)(h.exportMode)&&(this.exportMode=this.getEnumValue(p.ExportMode,h.exportMode)),(0,I.isDefined)(h.dateRange)){var O=h.dateRange;"number"==typeof O||"string"==typeof O?this.exportDataMode=this.getEnumValue(p.DataExportMode,O):this.dateRange=new y.PdfDataRange(O)}(0,I.isDefined)(h.font)&&(this.font=new g.PdfCustomFontSettings(h.font))}},c.prototype.getEnumValue=function(h,m){if(!(0,I.isDefined)(h[m]))return null;var v=parseInt(m);return isNaN(v)?h[m]:v},c.autoFormatKey="auto",c}();D.GanttPdfExportProps=d},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfDataRange=void 0;var E=w(1),I=function(){function C(y,g,p,d){var c=!y||y instanceof Date?{startDate:y,endDate:g,startIndex:p,endIndex:d}:y;c&&this.assign(c)}return C.prototype.assign=function(y){(0,E.isDefined)(y.startDate)&&(this.startDate=y.startDate instanceof Date?y.startDate:new Date(y.startDate)),(0,E.isDefined)(y.endDate)&&(this.endDate=y.endDate instanceof Date?y.endDate:new Date(y.endDate)),(0,E.isDefined)(y.startIndex)&&(this.startIndex=parseInt(y.startIndex)),(0,E.isDefined)(y.endIndex)&&(this.endIndex=parseInt(y.endIndex))},C}();D.PdfDataRange=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfCustomFontSettings=void 0;var E=w(1),I=function(){function C(y){this.style="normal",y&&this.assign(y)}return C.prototype.assign=function(y){(0,E.isDefined)(y.fontObject)&&(this.fontObject=y.fontObject),(0,E.isDefined)(y.name)&&(this.name=y.name),(0,E.isDefined)(y.style)&&(this.style=y.style),(0,E.isDefined)(y.weight)&&(this.weight=y.weight)},C.prototype.applyToDoc=function(y){try{if(y&&this.fontObject&&this.name){var g=this.name+"-"+this.style+".ttf";y.addFileToVFS(g,this.fontObject),y.addFont(g,this.name,this.style,this.weight),y.setFont(this.name)}}catch{}},C}();D.PdfCustomFontSettings=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfGanttPaginator=void 0;var E=w(5),I=w(12),C=w(60),y=w(44),g=w(61),p=w(63),d=w(27),c=w(45),h=w(135),m=function(x,O,k,M,A){this.pageVerIndex=O,this.pageHorIndex=x,this.cellRowIndexOnPage=k,this.cellColIndexOnPage=M,this.cell=A},v=function(){function x(O,k,M,A){this.pageIndex=O,this.globalCellIndex=k,this.pageOffset=M,this.cutSize=A}return Object.defineProperty(x.prototype,"isCutted",{get:function(){return this.cutSize>0},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"cellIndexOnPage",{get:function(){return this.globalCellIndex-this.pageOffset},enumerable:!1,configurable:!0}),x}(),b=function(){function x(O,k,M){this._pdfDoc=O,this._props=k,this._globalInfo=M}return x.prototype.getPages=function(){return delete this._pages,this._paginateTables(),this._paginateObjects(),this.pageMatrixToArray},x.prototype._paginateTables=function(){this._paginateTable(d.PdfPageTableNames.treeListHeader),this._paginateTable(d.PdfPageTableNames.treeListMain),this._paginateTable(d.PdfPageTableNames.chartScaleBottom),this._paginateTable(d.PdfPageTableNames.chartScaleTop),this._paginateTable(d.PdfPageTableNames.chartMain)},x.prototype._paginateObjects=function(){this._paginateTasks(),this._paginateDependencies(),this._paginateResources(),this._paginateTimeMarkers()},Object.defineProperty(x.prototype,"pageMatrixToArray",{get:function(){var O,k=new Array;return null===(O=this._pages)||void 0===O||O.forEach(function(M){k=k.concat(M)}),k},enumerable:!1,configurable:!0}),x.prototype._paginateTasks=function(){var O,k,M=this;null===(k=null===(O=this._globalInfo.objects)||void 0===O?void 0:O.tasks)||void 0===k||k.forEach(function(A){return M._paginateTask(A)})},x.prototype._paginateDependencies=function(){var O,k,M=this;null===(k=null===(O=this._globalInfo.objects)||void 0===O?void 0:O.dependencies)||void 0===k||k.forEach(function(A){A.arrowInfo?M._paginateArrow(A):M._paginateDependencyLine(A)})},x.prototype._paginateResources=function(){var O,k,M=this;null===(k=null===(O=this._globalInfo.objects)||void 0===O?void 0:O.resources)||void 0===k||k.forEach(function(A){return M._paginateResource(A)})},x.prototype._paginateTimeMarkers=function(){var O,k,M=this;null===(k=null===(O=this._globalInfo.objects)||void 0===O?void 0:O.timeMarkers)||void 0===k||k.forEach(function(A){return M._paginateTimeMarker(A)})},x.prototype._paginateTable=function(O){var k,M=null===(k=this._globalInfo)||void 0===k?void 0:k.tables[O];if(M){for(var A=this._getTableStart(M),F=this._preparePagesNavigationMatrixForTable(A,M),P=F.length,N=0;N<P;N++)for(var B=F[N].length,V=0;V<B;V++){var H=F[N][V],W=this._getPage(H.pageVerIndex,H.pageHorIndex,!0);this._setTablePositionOnPage(W,O,H.pageHorIndex===A.hIndex?A.pageX:this.pageLeft,H.pageVerIndex===A.vIndex?A.pageY:this.pageTop),this._addCellToPage(W,O,H)}this._updateTableSizeOnPages(O)}},x.prototype._paginateTask=function(O){for(var k=this._getTaskPagination(O),M=this._getTaskPagination(O,!0),A=0;A<M.length;A++)for(var F=0;F<k.length;F++){var P=new y.PdfTaskInfo;P.assign(O),this._offsetPoints(P.sidePoints,k[F].offset,M[A].offset),this._addTaskToPage(M[A].pageIndex,k[F].pageIndex,P)}},x.prototype._paginateArrow=function(O){var k=this._getPointPageInfo(O.points[0]),M=new C.PdfDependencyLineInfo;M.assign(O),this._offsetPoints(M.points,k.offsetX,k.offsetY),this._addDependencyToPage(k.pageVerIndex,k.pageHorIndex,M)},x.prototype._paginateDependencyLine=function(O){for(var k=this._getDependencyLinePagination(O),M=this._getDependencyLinePagination(O,!0),A=0;A<M.length;A++)for(var F=0;F<k.length;F++){var P=new C.PdfDependencyLineInfo;P.assign(O),this._offsetPoints(P.points,k[F].offset,M[A].offset),this._addDependencyToPage(M[A].pageIndex,k[F].pageIndex,P)}},x.prototype._paginateResource=function(O){var k=this._getPointPageInfo(new E.Point(O.x,O.y)),M=new g.PdfTaskResourcesInfo;M.assign(O),M.x-=k.offsetX,M.y-=k.offsetY,this._addResourceToPage(k.pageVerIndex,k.pageHorIndex,M)},x.prototype._paginateTimeMarker=function(O){for(var k=this._getTimeMarkerPagination(O),M=this._getTimeMarkerPagination(O,!0),A=0;A<M.length;A++)for(var F=0;F<k.length;F++){var P=new p.PdfTimeMarkerInfo;P.assign(O),P.start.x-=k[F].offset,P.start.y-=M[A].offset,this._addTimeMarkerToPage(M[A].pageIndex,k[F].pageIndex,P)}},x.prototype._getTableStart=function(O){var k=new h.PageNavigation(this.pageBorders,0,0,0,0,this.correctedPageBottoms);return k.offset(O.position.x,O.position.y),k},x.prototype._getPage=function(O,k,M){return M&&this._extendPageMatrixIfRequired(O,k),this._pages[O]&&this._pages[O][k]},x.prototype._getTableOrCreate=function(O,k){var M,A;return null!==(M=(A=O.tables)[k])&&void 0!==M||(A[k]=this._createTable(k)),O.tables[k]},x.prototype._preparePagesNavigationMatrixForTable=function(O,k){for(var M=new Array,A=this._getTableNavigationVector(O,k,!0),F=A.length,P=0;P<F;P++){for(var N=new Array,B=A[P],V=this._getTableNavigationVector(O,k,!1,B.globalCellIndex),H=V.length,W=0;W<H;W++){var q=V[W],J=this._prepareCuttedCell(k.cells[B.globalCellIndex][q.globalCellIndex],q,B,k.name===d.PdfPageTableNames.chartScaleTop),ne=new m(q.pageIndex,B.pageIndex,B.cellIndexOnPage,q.cellIndexOnPage,J);N.push(ne)}M.push(N)}return M},x.prototype._setTablePositionOnPage=function(O,k,M,A){this._getTableOrCreate(O,k).position=new E.Point(M,A)},x.prototype._extendPageMatrixIfRequired=function(O,k){var M;null!==(M=this._pages)&&void 0!==M||(this._pages=new Array);for(var A=this._pages.length;A<=O;A++)this._pages.push(new Array);var F=this._pages[O];for(A=F.length;A<=k;A++)F.push(this._createPage())},x.prototype._getTableAndExtendIfRequired=function(O,k,M,A){for(var F=this._getTableOrCreate(O,k),P=F.cells,N=P.length;N<=M;N++)P.push(new Array);var B=P[M];for(N=B.length;N<=A;N++)B.push(new c.CellDef);return F},x.prototype._createPage=function(){return{objects:{tasks:null,dependencies:null,resources:null,timeMarkers:null},tables:{}}},x.prototype._createTable=function(O){var k,M=null===(k=this._globalInfo)||void 0===k?void 0:k.tables[O];return{name:O,size:null,position:null,style:M.style,baseCellSize:M.baseCellSize,cells:new Array,hideRowLines:M.hideRowLines}},x.prototype._addCellToPage=function(O,k,M){var A=M.cellRowIndexOnPage,F=M.cellColIndexOnPage;this._getTableAndExtendIfRequired(O,k,A,F).cells[A][F].assign(M.cell)},x.prototype._updateTableSizeOnPages=function(O){for(var k,M=null===(k=this._pages[0])||void 0===k?void 0:k.length,A=this._pages.length,F=0;F<A;F++)for(var P=0;P<M;P++)this._updateTableSizeOnPage(this._pages[F][P],O)},x.prototype._updateTableSizeOnPage=function(O,k){var M,A=this,F=O?.tables[k];if(F){var P=F.cells.length*F.baseCellSize.height||0,N=(null===(M=F.cells[0])||void 0===M?void 0:M.reduce(function(B,V,H){return B+A._getCellWidth(F,0,H)},0))||0;F.size=new I.Size(N,P)}},x.prototype._getTableNavigationVector=function(O,k,M,A){var F,P;void 0===M&&(M=!1),void 0===A&&(A=0);for(var N=new Array,B=h.PageNavigation.createFrom(O),V=M?null===(F=k.cells)||void 0===F?void 0:F.length:null===(P=k.cells[A])||void 0===P?void 0:P.length,H=0;H<V;H++){var W=M?k.baseCellSize.height:this._getCellWidth(k,A,H);this._placeCell(N,B,H,W,M)}return N},x.prototype._placeCell=function(O,k,M,A,F){var P,N,B=F?k.vIndex:k.hIndex,V=null!==(N=null===(P=O[O.length-1])||void 0===P?void 0:P.pageOffset)&&void 0!==N?N:M,H=A,W=k.getSpaceToBorder(F);k.offsetOneD(A,F);var q=F?k.vIndex:k.hIndex;if(!F)for(var G=B;G<q;G++){var J=new v(G,M,V,W);V=M,O.push(J),H-=W,W=k.getPageSize(F)}q!==B&&(V=M);var ne=new v(q,M,V,H!==A?H:null);O.push(ne)},x.prototype._prepareCuttedCell=function(O,k,M,A){var F=new c.CellDef(O);if(k.isCutted){var P=k.cutSize;if(!A){var N=F.content,B=O.styles,H=this._pdfDoc.splitTextToSize(N,P-(B&&B.cellPadding.left||0)-(B&&B.cellPadding.right||0));O.content=N.replace(H[0],""),F.content=H[0]}F.styles.cellWidth.assign(P)}return M.isCutted&&(F.styles.minCellHeight=M.cutSize),F},x.prototype._getCellWidth=function(O,k,M){var A,F=O.cells[k][M],P=F.styles;return P.cellWidth.getValue()??P.minCellWidth??O.baseCellSize.width*(null!==(A=F.colSpan)&&void 0!==A?A:1)},x.prototype._getTaskPagination=function(O,k){return this._getLinePagination(k?O.top:O.left,k?O.height:O.width,k)},x.prototype._getDependencyLinePagination=function(O,k){var M=O.points[0],A=O.points[1];return this._getLinePagination(k?M.y:M.x,k?A.y-M.y:A.x-M.x,k)},x.prototype._getTimeMarkerPagination=function(O,k){return this._getLinePagination(k?O.start.y:O.start.x,k?O.size.height:O.size.width,k)},x.prototype._getLinePagination=function(O,k,M){var A=new Array,F=this.pageNavigator.clone();F.offsetOneD(O,M);var P=M?F.vIndex:F.hIndex;F.offsetOneD(k,M);for(var N=M?F.vIndex:F.hIndex,B=P;B<=N;B++)A.push({offset:F.getPageGlobalOffset(B,M),pageIndex:B});return A},x.prototype._getPointPageInfo=function(O){var k=this.pageNavigator.clone();return k.offset(O.x,O.y),{offsetX:k.getPageGlobalOffset(k.hIndex),offsetY:k.getPageGlobalOffset(k.vIndex,!0),pageHorIndex:k.hIndex,pageVerIndex:k.vIndex}},Object.defineProperty(x.prototype,"pageWidth",{get:function(){var O;return null===(O=this._pdfDoc)||void 0===O?void 0:O.getPageWidth()},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageHeight",{get:function(){var O;return null===(O=this._pdfDoc)||void 0===O?void 0:O.getPageHeight()},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageLeftMargin",{get:function(){var O;return null===(O=this._props)||void 0===O?void 0:O.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageTopMargin",{get:function(){var O;return null===(O=this._props)||void 0===O?void 0:O.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageRightMargin",{get:function(){var O;return null===(O=this._props)||void 0===O?void 0:O.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageBottomMargin",{get:function(){var O;return null===(O=this._props)||void 0===O?void 0:O.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageLeft",{get:function(){var O;return null!==(O=this._pageLeft)&&void 0!==O||(this._pageLeft=this.pageLeftMargin),this._pageLeft},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageRight",{get:function(){var O;return null!==(O=this._pageRight)&&void 0!==O||(this._pageRight=this.pageWidth-this.pageRightMargin),this._pageRight},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageTop",{get:function(){var O;return null!==(O=this._pageTop)&&void 0!==O||(this._pageTop=this.pageTopMargin),this._pageTop},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageBottom",{get:function(){var O;return null!==(O=this._pageBottom)&&void 0!==O||(this._pageBottom=this.pageHeight-this.pageBottomMargin),this._pageBottom},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageBorders",{get:function(){return{left:this.pageLeft,top:this.pageTop,bottom:this.pageBottom,right:this.pageRight}},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"correctedPageBottoms",{get:function(){var O;return null!==(O=this._correctedPageBottoms)&&void 0!==O||(this._correctedPageBottoms=this._getCorrectedPagesBottom()),this._correctedPageBottoms},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageNavigator",{get:function(){var O;return null!==(O=this._pageNavigator)&&void 0!==O||(this._pageNavigator=new h.PageNavigation(this.pageBorders,0,0,0,0,this.correctedPageBottoms)),this._pageNavigator},enumerable:!1,configurable:!0}),x.prototype._getCorrectedPagesBottom=function(){var O,k,M,A,F=new Array,P=null===(O=this._globalInfo)||void 0===O?void 0:O.tables,N=null!==(k=P[d.PdfPageTableNames.treeListMain])&&void 0!==k?k:P[d.PdfPageTableNames.chartMain],B=new h.PageNavigation(this.pageBorders);B.pageY=N.position.y;for(var V=0;V<N.cells.length;V++){var H=null!==(A=null===(M=N.cells[V][0].styles)||void 0===M?void 0:M.minCellHeight)&&void 0!==A?A:N.baseCellSize.height,W=B.vIndex,q=B.pageY;B.offsetOneD(H,!0),W!==B.vIndex&&(F.push(q),B.pageY=B.getPageStart(!0)+H)}return F},x.prototype._addTaskToPage=function(O,k,M){var A,F,P=this._getPage(O,k);P&&(null!==(A=(F=P.objects).tasks)&&void 0!==A||(F.tasks=new Array),P.objects.tasks.push(M))},x.prototype._addDependencyToPage=function(O,k,M){var A,F,P=this._getPage(O,k);P&&(null!==(A=(F=P.objects).dependencies)&&void 0!==A||(F.dependencies=new Array),P.objects.dependencies.push(M))},x.prototype._addResourceToPage=function(O,k,M){var A,F,P=this._getPage(O,k);P&&(null!==(A=(F=P.objects).resources)&&void 0!==A||(F.resources=new Array),P.objects.resources.push(M))},x.prototype._addTimeMarkerToPage=function(O,k,M){var A,F,P=this._getPage(O,k);P&&(null!==(A=(F=P.objects).timeMarkers)&&void 0!==A||(F.timeMarkers=new Array),P.objects.timeMarkers.push(M))},x.prototype._offsetPoints=function(O,k,M){O.forEach(function(A){A.x-=k,A.y-=M})},x}();D.PdfGanttPaginator=b},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PageNavigation=void 0;var E=function(){function I(C,y,g,p,d,c){this._correctedBottoms=new Array,this.vIndex=0,this.hIndex=0,this.pageX=0,this.pageY=0,this._top=C?.top,this._left=C?.left,this._bottom=C?.bottom,this._right=C?.right,this.vIndex=y??this.vIndex,this.hIndex=g??this.hIndex,this.pageX=p??this.pageX,this.pageY=d??this.pageY,c&&(this._correctedBottoms=c)}return I.prototype.offset=function(C,y){C&&this.offsetOneD(C),y&&this.offsetOneD(y,!0)},I.prototype.offsetOneD=function(C,y){for(var g=C,p=this.getSpaceToBorder(y);p<g;)y?(this.vIndex++,this.pageY=this._top):(this.hIndex++,this.pageX=this._left),g-=p,p=this.getSpaceToBorder(y);y?this.pageY+=g:this.pageX+=g},Object.defineProperty(I.prototype,"defaultPageHeight",{get:function(){return this.getCurrentPageBottom()-this._top},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"defaultPageWidth",{get:function(){return this._right-this._left},enumerable:!1,configurable:!0}),I.prototype.getPageEnd=function(C){return C?this.getCurrentPageBottom():this._right},I.prototype.getPageStart=function(C){return C?this._top:this._left},I.prototype.getPageSize=function(C,y){return C?this.getPageHeight(y):this.defaultPageWidth},I.prototype.getSpaceToBorder=function(C){return C?this.getCurrentPageBottom()-this.pageY:this._right-this.pageX},I.prototype.getPageGlobalOffset=function(C,y){if(!y)return C*this.defaultPageWidth;for(var g=0,p=1;p<=C;p++)g+=this.getPageHeight(p-1);return g},I.prototype.assign=function(C){this._top=C._top,this._left=C._left,this._bottom=C._bottom,this._right=C._right,this._correctedBottoms=C._correctedBottoms,this.vIndex=C.vIndex,this.hIndex=C.hIndex,this.pageX=C.pageX,this.pageY=C.pageY},I.createFrom=function(C){var y=new I;return y.assign(C),y},I.prototype.clone=function(){var C=new I;return C.assign(this),C},I.prototype.getCurrentPageBottom=function(){return this.getPageBottom(this.vIndex)},I.prototype.getPageBottom=function(C){var y;return null!==(y=this._correctedBottoms[C])&&void 0!==y?y:this._bottom},I.prototype.getPageHeight=function(C){return this.getPageBottom(C)-this._top},I}();D.PageNavigation=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ScalingHelper=void 0;var E=w(27),I=function(){function C(y){this._doc=y}return Object.defineProperty(C.prototype,"_docScaleFactor",{get:function(){var y,g;return null===(g=null===(y=this._doc)||void 0===y?void 0:y.internal)||void 0===g?void 0:g.scaleFactor},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"_correctScaleNeeded",{get:function(){return this._docScaleFactor&&Math.abs(this._docScaleFactor-C._defaultScaleFactor)>Number.EPSILON},enumerable:!1,configurable:!0}),C.prototype.getScaledSize=function(y){return y*C._defaultScaleFactor/this._docScaleFactor},C.prototype.scalePageMargins=function(y){var g,p,d,c;this._correctScaleNeeded&&(!(null===(g=y?.margins)||void 0===g)&&g.left&&(y.margins.left=this.getScaledSize(y.margins.left)),!(null===(p=y?.margins)||void 0===p)&&p.right&&(y.margins.right=this.getScaledSize(y.margins.right)),!(null===(d=y?.margins)||void 0===d)&&d.top&&(y.margins.top=this.getScaledSize(y.margins.top)),null!==(c=y?.margins)&&void 0!==c&&c.bottom&&(y.margins.bottom=this.getScaledSize(y.margins.bottom)))},C.prototype.scaleSizes=function(y){this._correctScaleNeeded&&(this.scaleTables(y),this.scaleObjects(y.objects))},C.prototype.scaleTables=function(y){y?.tables&&(this.scaleTable(y.tables[E.PdfPageTableNames.treeListHeader]),this.scaleTable(y.tables[E.PdfPageTableNames.treeListMain]),this.scaleTable(y.tables[E.PdfPageTableNames.chartMain]),this.scaleTable(y.tables[E.PdfPageTableNames.chartScaleTop]),this.scaleTable(y.tables[E.PdfPageTableNames.chartScaleBottom]))},C.prototype.scaleTable=function(y){var g,p,d,c,h,m;if(y&&(!(null===(g=y.size)||void 0===g)&&g.width&&(y.size.width=this.getScaledSize(y.size.width)),!(null===(p=y.size)||void 0===p)&&p.height&&(y.size.height=this.getScaledSize(y.size.height)),!(null===(d=y.position)||void 0===d)&&d.x&&(y.position.x=this.getScaledSize(y.position.x)),!(null===(c=y.position)||void 0===c)&&c.y&&(y.position.y=this.getScaledSize(y.position.y)),!(null===(h=y.baseCellSize)||void 0===h)&&h.width&&(y.baseCellSize.width=this.getScaledSize(y.baseCellSize.width)),!(null===(m=y.baseCellSize)||void 0===m)&&m.height&&(y.baseCellSize.height=this.getScaledSize(y.baseCellSize.height)),y.cells))for(var v=0;v<y.cells.length;v++)for(var b=y.cells[v],x=0;x<b.length;x++)this.scaleStyle(b[x].styles)},C.prototype.scaleObjects=function(y){this.scaleTasks(y?.tasks),this.scaleDependencies(y?.dependencies),this.scaleResources(y?.resources),this.scaleTimeMarkers(y?.timeMarkers)},C.prototype.scaleTasks=function(y){var g=this;y?.forEach(function(p){g.scalePoints(p.sidePoints),p.progressWidth=g.getScaledSize(p.progressWidth),g.scaleStyle(p.textStyle)})},C.prototype.scaleDependencies=function(y){var g=this;y?.forEach(function(p){var d;g.scalePoints(p.points),null!==(d=p.arrowInfo)&&void 0!==d&&d.width&&(p.arrowInfo.width=g.getScaledSize(p.arrowInfo.width))})},C.prototype.scaleResources=function(y){var g=this;y?.forEach(function(p){p.x=g.getScaledSize(p.x),p.y=g.getScaledSize(p.y),g.scaleStyle(p.style)})},C.prototype.scaleTimeMarkers=function(y){var g=this;y?.forEach(function(p){p.start.x=g.getScaledSize(p.start.x),p.start.y=g.getScaledSize(p.start.y),p.size.width=g.getScaledSize(p.size.width),p.size.height=g.getScaledSize(p.size.height)})},C.prototype.scaleStyle=function(y){var g,p,d,c;if(y){var h=y.cellWidth;if(h?.hasValue()){var m=this.getScaledSize(Number(h.getValue()));h.assign(m)}y.minCellHeight&&(y.minCellHeight=this.getScaledSize(y.minCellHeight)),y.minCellWidth&&(y.minCellWidth=this.getScaledSize(y.minCellWidth)),!(null===(g=y.cellPadding)||void 0===g)&&g.left&&(y.cellPadding.left=this.getScaledSize(y.cellPadding.left)),!(null===(p=y.cellPadding)||void 0===p)&&p.right&&(y.cellPadding.right=this.getScaledSize(y.cellPadding.right)),!(null===(d=y.cellPadding)||void 0===d)&&d.top&&(y.cellPadding.top=this.getScaledSize(y.cellPadding.top)),null!==(c=y.cellPadding)&&void 0!==c&&c.bottom&&(y.cellPadding.bottom=this.getScaledSize(y.cellPadding.bottom))}},C.prototype.scalePoints=function(y){var g=this;y?.forEach(function(p){p.x=g.getScaledSize(p.x),p.y=g.getScaledSize(p.y)})},C._defaultScaleFactor=.75,C}();D.ScalingHelper=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.History=void 0;var E=w(138),I=w(42),C=function(){function y(g){this.historyItems=[],this.currentIndex=-1,this.currentProcessingItemInfo=null,this.transaction=null,this.transactionLevel=-1,this._listener=g}return y.prototype.undo=function(){this.canUndo()&&(this.activateItem(this.historyItems[this.currentIndex],!0),this.currentIndex--)},y.prototype.redo=function(){this.canRedo()&&(this.currentIndex++,this.activateItem(this.historyItems[this.currentIndex]))},y.prototype.beginTransaction=function(){var g;this.transactionLevel++,0==this.transactionLevel&&(this.transaction=new I.CompositionHistoryItem,null===(g=this._listener)||void 0===g||g.onTransactionStart())},y.prototype.endTransaction=function(){var g;if(!(--this.transactionLevel>=0)){var p=this.transaction.historyItems.length;p>1?this.addInternal(this.transaction):1==p&&this.addInternal(this.transaction.historyItems.pop()),this.transaction=null,null===(g=this._listener)||void 0===g||g.onTransactionEnd()}},y.prototype.addAndRedo=function(g){this.add(g),this.activateItem(g)},y.prototype.add=function(g){this.transactionLevel>=0?this.transaction.add(g):this.addInternal(g)},y.prototype.canUndo=function(){return this.currentIndex>=0},y.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},y.prototype.addInternal=function(g){this.currentIndex<this.historyItems.length-1&&this.historyItems.splice(this.currentIndex+1),this.historyItems.push(g),this.currentIndex++,this.deleteOldItems()},y.prototype.deleteOldItems=function(){var g=this.historyItems.length-y.MAX_HISTORY_ITEM_COUNT;g>0&&this.currentIndex>g&&(this.historyItems.splice(0,g),this.currentIndex-=g)},y.prototype.clear=function(){this.currentIndex=-1,this.historyItems=[]},y.prototype.activateItem=function(g,p){void 0===p&&(p=!1),this.currentProcessingItemInfo=new E.HistoryItemInfo(g,p),p?g.undo():g.redo(),this.currentProcessingItemInfo=null},y.prototype.getCurrentProcessingItemInfo=function(){return this.currentProcessingItemInfo},y.prototype.rollBackAndRemove=function(g){var p=g.item;this.checkAndRemoveItem(p)&&(g.isUndo?p.redo():p instanceof I.CompositionHistoryItem?p.undoItemsQuery():p.undo())},y.prototype.checkAndRemoveItem=function(g){var p=this.historyItems.indexOf(g);return p>-1?(this.historyItems.splice(p,1),this.currentIndex--):this.transaction&&(p=this.transaction.historyItems.indexOf(g))>-1&&this.transaction.historyItems.splice(p,1),p>-1},y.prototype.updateObsoleteInsertedKey=function(g,p,d){this.transaction&&this.updateItemsObsoleteInsertedKey(g,p,d,[this.transaction]),this.updateItemsObsoleteInsertedKey(g,p,d,this.historyItems)},y.prototype.updateItemsObsoleteInsertedKey=function(g,p,d,c){if(c)for(var h=0;h<c.length;h++){var m=c[h];m.keyUpdaters.filter(function(v){return v.getKey()===g&&v.objectType===d}).forEach(function(v){return v.updateKey(p)}),m instanceof I.CompositionHistoryItem&&this.updateItemsObsoleteInsertedKey(g,p,d,m.historyItems)}},y.MAX_HISTORY_ITEM_COUNT=100,y}();D.History=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.HistoryItemInfo=void 0,D.HistoryItemInfo=function(I,C){void 0===C&&(C=!1),this.item=I,this.isUndo=C}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ModelChangesDispatcher=void 0;var E=w(140),I=w(141),C=w(142),y=w(143),g=w(144),p=function(){function d(){this.onModelChanged=new g.EventDispatcher,this.isLocked=!1}return d.prototype.notifyTaskCreating=function(c){this.isLocked||this.onModelChanged.raise("NotifyTaskCreating",c)},d.prototype.notifyTaskCreated=function(c,h,m){this.isLocked||this.onModelChanged.raise("NotifyTaskCreated",c,h,m)},d.prototype.notifyTaskRemoving=function(c){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoving",c)},d.prototype.notifyTaskRemoved=function(c,h,m){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoved",c,h,m)},d.prototype.notifyTaskUpdating=function(c){this.isLocked||this.onModelChanged.raise("NotifyTaskUpdating",c)},d.prototype.notifyTaskMoving=function(c){this.isLocked||this.onModelChanged.raise("NotifyTaskMoving",c)},d.prototype.notifyTaskEditDialogShowing=function(c){this.isLocked||this.onModelChanged.raise("NotifyTaskEditDialogShowing",c)},d.prototype.notifyResourceManagerDialogShowing=function(c){this.isLocked||this.onModelChanged.raise("NotifyResourceManagerDialogShowing",c)},d.prototype.notifyTaskUpdated=function(c,h,m){this.isLocked||this.onModelChanged.raise("NotifyTaskUpdated",c,h,m)},d.prototype.notifyParentTaskUpdated=function(c,h){this.isLocked||this.onModelChanged.raise("NotifyParentTaskUpdated",c,h)},d.prototype.notifyDependencyInserting=function(c){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserting",c)},d.prototype.notifyDependencyInserted=function(c,h,m){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserted",c,h,m)},d.prototype.notifyDependencyRemoving=function(c){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoving",c)},d.prototype.notifyDependencyRemoved=function(c,h,m){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoved",c,h,m)},d.prototype.notifyResourceCreating=function(c){this.isLocked||this.onModelChanged.raise("NotifyResourceCreating",c)},d.prototype.notifyResourceCreated=function(c,h,m){this.isLocked||this.onModelChanged.raise("NotifyResourceCreated",c,h,m)},d.prototype.notifyResourceRemoving=function(c){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoving",c)},d.prototype.notifyResourceRemoved=function(c,h,m){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoved",c,h,m)},d.prototype.notifyResourceColorChanged=function(c,h,m){this.isLocked||this.onModelChanged.raise("NotifyResourceColorChanged",c,h,m)},d.prototype.notifyResourceAssigning=function(c){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigning",c)},d.prototype.notifyResourceAssigned=function(c,h,m){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigned",c,h,m)},d.prototype.notifyResourceUnassigning=function(c){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigning",c)},d.prototype.notifyResourceUnassigned=function(c,h,m){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigned",c,h,m)},d.prototype.notifyParentDataRecalculated=function(c){this.onModelChanged.raise("NotifyParentDataRecalculated",c)},d.prototype.notifyScaleCellPrepared=function(c){this.onModelChanged.raise("NotifyScaleCellPrepared",c)},d.prototype.fireResourceUnassigning=function(c){var h=new C.ResourceUnassigningArguments(c);return this.notifyResourceUnassigning(h),!h.cancel},d.prototype.raiseTaskUpdating=function(c,h,m){var v=new y.TaskUpdatingArguments(c,h);return this.notifyTaskUpdating(v),!v.cancel&&(m(v.newValues),!0)},d.prototype.raiseTaskMoving=function(c,h,m,v){var b=new y.TaskUpdatingArguments(c,{start:h,end:m});return this.notifyTaskMoving(b),!b.cancel&&(v(b.start,b.end),!0)},d.prototype.raiseTaskTaskEditDialogShowing=function(c,h){var m=new I.TaskEditDialogShowingArguments(c);return this.notifyTaskEditDialogShowing(m),!m.cancel&&(h(m),!0)},d.prototype.raiseResourceManagerDialogShowing=function(c,h){var m=new E.ResourceManagerDialogShowingArguments(c);return this.notifyResourceManagerDialogShowing(m),!m.cancel&&(h(m),!0)},d.prototype.lock=function(){this.isLocked=!0},d.prototype.unlock=function(){this.isLocked=!1},d}();D.ModelChangesDispatcher=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceManagerDialogShowingArguments=void 0;var E=w(0),I=function(C){function y(g){var p=C.call(this,void 0)||this;return p.values.resources=g.resources,p}return E.__extends(y,C),y}(w(11).BaseArguments);D.ResourceManagerDialogShowingArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskEditDialogShowingArguments=void 0;var E=w(0),I=function(C){function y(g){var p=C.call(this,g.id)||this;return p.values={start:g.start,end:g.end,title:g.title,progress:g.progress},p.hiddenFields=g.hiddenFields,p.readOnlyFields=g.readOnlyFields,p}return E.__extends(y,C),y}(w(11).BaseArguments);D.TaskEditDialogShowingArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceUnassigningArguments=void 0;var E=w(0),I=function(C){function y(g){var p=C.call(this,g.internalId)||this;return p.values=g,p}return E.__extends(y,C),y}(w(11).BaseArguments);D.ResourceUnassigningArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskUpdatingArguments=void 0;var E=w(0),I=function(C){function y(g,p){var d=C.call(this,g.id)||this;return d.values=g,d.createNewValues(p),d}return E.__extends(y,C),y.prototype.createNewValues=function(g){var p=this;this.newValues={};var d=function(m){Object.prototype.hasOwnProperty.call(g,m)&&(c.newValues[m]=g[m],Object.defineProperty(c,m,{get:function(){return p.newValues[m]}}))},c=this;for(var h in g)d(h)},y}(w(11).BaseArguments);D.TaskUpdatingArguments=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.EventDispatcher=void 0;var E=function(){function I(){this.listeners=[]}return I.prototype.add=function(C){if(!C)throw new Error("Error");this.hasEventListener(C)||this.listeners.push(C)},I.prototype.remove=function(C){for(var y=0,g=void 0;g=this.listeners[y];y++)if(g===C){this.listeners.splice(y,1);break}},I.prototype.raise=function(C){for(var y=[],g=1;g<arguments.length;g++)y[g-1]=arguments[g];for(var p=0,d=void 0;d=this.listeners[p];p++)d[C]?.apply(d,y)},I.prototype.hasEventListener=function(C){for(var y=0,g=this.listeners.length;y<g;y++)if(this.listeners[y]===C)return!0;return!1},I}();D.EventDispatcher=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ModelManipulator=void 0;var E=w(146),I=w(147),C=w(151);D.ModelManipulator=function(g,p){this.task=new C.TaskManipulator(g,p),this.dependency=new E.TaskDependencyManipulator(g,p),this.resource=new I.ResourcesManipulator(g,p),this.dispatcher=p}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskDependencyManipulator=void 0;var E=w(0),I=w(2),C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return E.__extends(g,y),g.prototype.insertDependency=function(p,d,c,h){var m=this.viewModel;m.onBeginDataObjectCreate();var v=m.dependencies.createItem();return v.predecessorId=p,v.successorId=d,v.type=c,h&&(v.internalId=h),v.id=v.internalId,m.dependencies.add(v),m.updateVisibleItemDependencies(),this.renderHelper.recreateConnectorLineElement(v.internalId,!0),this.dispatcher.notifyDependencyInserted(this.getObjectForDataSource(v),function(b){var x=v.internalId;v.updateId(b),m.processServerInsertedKey(x,v.internalId,I.GanttDataObjectNames.dependency)},this.getErrorCallback()),m.onEndDataObjectCreate(),v},g.prototype.removeDependency=function(p){var d=this.viewModel.dependencies.getItemById(p);return this.viewModel.dependencies.remove(d),this.dispatcher.notifyDependencyRemoved(d.id,this.getErrorCallback(),this.viewModel.getDependencyObjectForDataSource(d)),this.viewModel.updateVisibleItemDependencies(),this.renderHelper.recreateConnectorLineElement(d.internalId),d},g.prototype.getObjectForDataSource=function(p){var d=this.viewModel.tasks.getItemById(p.predecessorId),c=this.viewModel.tasks.getItemById(p.successorId);return{id:p.id,predecessorId:d.id,successorId:c.id,type:p.type}},g}(w(28).BaseManipulator);D.TaskDependencyManipulator=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourcesManipulator=void 0;var E=w(0),I=w(2),C=w(28),y=w(148),g=function(p){function d(c,h){var m=p.call(this,c,h)||this;return m.properties=new y.ResourcePropertiesManipulator(c,h),m}return E.__extends(d,p),d.prototype.create=function(c,h,m,v){var b=this.viewModel;b.onBeginDataObjectCreate();var x=b.resources.createItem();return x.text=c,h&&(x.color=h),m&&(x.internalId=m),x.id=x.internalId,this.viewModel.resources.add(x),this.dispatcher.notifyResourceCreated(this.getResourceObjectForDataSource(x),function(O){var k=x.internalId;x.updateId(O),b.processServerInsertedKey(k,x.internalId,I.GanttDataObjectNames.resource),v&&v(O)},this.getErrorCallback()),b.onEndDataObjectCreate(),x},d.prototype.remove=function(c){var h=this.viewModel.resources.getItemById(c);if(!h)throw new Error("Invalid resource id");if(this.viewModel.assignments.items.filter(function(m){return m.resourceId===c}).length)throw new Error("Can't delete assigned resource");return this.viewModel.resources.remove(h),this.dispatcher.notifyResourceRemoved(h.id,this.getErrorCallback(),this.viewModel.getResourceObjectForDataSource(h)),h},d.prototype.assign=function(c,h,m){var v=this.viewModel;v.onBeginDataObjectCreate();var b=v.assignments.createItem();return b.resourceId=c,b.taskId=h,m&&(b.internalId=m),b.id=b.internalId,this.viewModel.assignments.add(b),this.dispatcher.notifyResourceAssigned(this.getResourceAssignmentObjectForDataSource(b),function(x){var O=b.internalId;b.updateId(x),v.processServerInsertedKey(O,b.internalId,I.GanttDataObjectNames.resourceAssignment)},this.getErrorCallback()),this.viewModel.updateModel(),v.onEndDataObjectCreate(),this.viewModel.owner.resetAndUpdate(),b},d.prototype.deassig=function(c){var h=this.viewModel.assignments.getItemById(c);return this.viewModel.assignments.remove(h),this.dispatcher.notifyResourceUnassigned(h.id,this.getErrorCallback(),this.viewModel.getResourceAssignmentObjectForDataSource(h)),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),h},d.prototype.getResourceObjectForDataSource=function(c){return{id:c.id,text:c.text}},d.prototype.getResourceAssignmentObjectForDataSource=function(c){return{id:c.id,taskId:this.viewModel.tasks.getItemById(c.taskId).id,resourceId:this.viewModel.resources.getItemById(c.resourceId).id}},d}(C.BaseManipulator);D.ResourcesManipulator=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourcePropertiesManipulator=void 0;var E=w(0),I=w(28),C=w(149),y=function(g){function p(d,c){var h=g.call(this,d,c)||this;return h.color=new C.ResourceColorManipulator(d,c),h}return E.__extends(p,g),p}(I.BaseManipulator);D.ResourcePropertiesManipulator=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceColorManipulator=void 0;var E=w(0),I=function(C){function y(){return null!==C&&C.apply(this,arguments)||this}return E.__extends(y,C),y.prototype.getPropertyValue=function(g){return g.color},y.prototype.setPropertyValue=function(g,p){g.color=p,this.dispatcher.notifyResourceColorChanged(g.id,p,this.getErrorCallback())},y}(w(150).ResourcePropertyManipulator);D.ResourceColorManipulator=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourcePropertyManipulator=void 0;var E=w(0),I=w(54),C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return E.__extends(g,y),g.prototype.setValue=function(p,d){var c=this,h=this.viewModel.resources.getItemById(p),m=new I.HistoryItemState(p,this.getPropertyValue(h));return this.setPropertyValue(h,d),this.viewModel.assignments.items.filter(function(v){return v.resourceId===h.internalId}).forEach(function(v){var b=c.viewModel.findItem(v.taskId).visibleIndex;c.renderHelper.recreateTaskElement(b)}),m},g.prototype.restoreValue=function(p){var d=this;if(p){var c=p.value,h=this.viewModel.resources.getItemById(p.id);this.setPropertyValue(h,c),this.viewModel.assignments.items.filter(function(m){return m.resourceId===h.internalId}).forEach(function(m){var v=d.viewModel.findItem(m.taskId).visibleIndex;d.renderHelper.recreateTaskElement(v)})}},g}(w(28).BaseManipulator);D.ResourcePropertyManipulator=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskManipulator=void 0;var E=w(0),I=w(1),C=w(2),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.create=function(d,c,h){var m=this,v=this.viewModel;v.onBeginDataObjectCreate();var b=v.tasks.createItem();b.start=d.start,b.end=d.end,b.title=d.title,b.progress=d.progress,d.color&&(b.color=d.color);var x=v.tasks.getItemById(d.parentId);return x&&(x.expanded=!0),b.parentId=d.parentId,c&&(b.internalId=c),b.id=b.internalId,v.tasks.add(b),v.updateModel(),this.dispatcher.notifyTaskCreated(this.getObjectForDataSource(b),function(O){var k=b.internalId;if(b.updateId(O),v.processServerInsertedKey(k,b.internalId,C.GanttDataObjectNames.task),h&&h(),m.viewModel.requireFirstLoadParentAutoCalc){var M=v.getCurrentTaskData().map(function(A){return""===A.parentId&&(A.parentId=null),A});m.dispatcher.notifyParentDataRecalculated(M)}},this.getErrorCallback()),v.onEndDataObjectCreate(),v.owner.resetAndUpdate(),b},p.prototype.remove=function(d){var c=this.viewModel.tasks.getItemById(d);if(!c)throw new Error("Invalid task id");if(this.viewModel.dependencies.items.filter(function(h){return h.predecessorId==d||h.successorId==d}).length)throw new Error("Can't delete task with dependency");if(this.viewModel.assignments.items.filter(function(h){return h.taskId==d}).length)throw new Error("Can't delete task with assigned resource");return this.viewModel.tasks.remove(c),this.dispatcher.notifyTaskRemoved(c.id,this.getErrorCallback(),this.viewModel.getTaskObjectForDataSource(c)),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),c},p.prototype.update=function(d,c){var h=this.viewModel.tasks.getItemById(d),m={};Object.keys(c).forEach(function(b){(0,I.isDefined)(h[b])&&(m[b]=h[b],h[b]=c[b])});var v=this.viewModel.findItem(d);return v&&this.renderHelper.recreateTaskElement(v.visibleIndex),this.dispatcher.notifyTaskUpdated(h.id,c,this.getErrorCallback()),m},p.prototype.getObjectForDataSource=function(d){return this.viewModel.getTaskObjectForDataSource(d)},p}(w(28).BaseManipulator);D.TaskManipulator=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfGanttExporter=void 0;var E=w(153),I=function(){function C(y){if(!y.settings.pdfDoc&&!y.settings.docCreateMethod)throw new Error("Cannot convert gantt to pdf without document instance!");this._info=y}return C.prototype.export=function(){var y,g,p=this.pdfDoc;this.applyCustomFont();for(var d=this._info,c=new E.PdfGanttPageDrawer(p,d.settings),h=d.getPages(p),m=h.length,v=0;v<m;v++)v>0&&p.addPage(this.getDocumentFormat(),this.getOrientation()),c.drawPage(h[v]);return!(null===(y=this.props)||void 0===y)&&y.fileName&&p.save(null===(g=this.props)||void 0===g?void 0:g.fileName),p},Object.defineProperty(C.prototype,"pdfDoc",{get:function(){var y,g;return null!==(y=this._pdfDoc)&&void 0!==y||(this._pdfDoc=null!==(g=this._info.settings.pdfDoc)&&void 0!==g?g:this.createDoc()),this._pdfDoc},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"props",{get:function(){return this._info.settings},enumerable:!1,configurable:!0}),C.prototype.createDoc=function(){var y=this.getJsPDFProps();return this._info.settings.docCreateMethod(y)},C.prototype.getJsPDFProps=function(){var y={putOnlyUsedFonts:!0,unit:"px",hotfixes:["px_scaling"]};return y.orientation=this.getOrientation(),y.format=this.getDocumentFormat(),y},C.prototype.getOrientation=function(){var y;return null!==(y=this.props)&&void 0!==y&&y.landscape?"l":"p"},C.prototype.getDocumentFormat=function(){var y,g,p,d;return null!==(y=this.props)&&void 0!==y&&y.format||null!==(g=this.props)&&void 0!==g&&g.pageSize?null!==(p=this.props)&&void 0!==p&&p.pageSize?[this.props.pageSize.height,this.props.pageSize.width]:null===(d=this.props)||void 0===d?void 0:d.format:"a4"},C.prototype.applyCustomFont=function(){this.props.font&&this.props.font.applyToDoc(this.pdfDoc)},C}();D.PdfGanttExporter=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfGanttPageDrawer=void 0;var E=w(5),I=w(154),C=w(27),y=w(37),g=w(155),p=function(){function d(c,h){this._pdfDoc=c,this._props=h}return d.prototype.drawPage=function(c){var h=this._pdfDoc,m=new g.PdfGanttTableDrawer(h);return this.needDrawChart()&&(m.drawTable(c.tables[C.PdfPageTableNames.chartMain]),new I.PdfObjectDrawer(h,c.objects).draw(),m.drawTable(c.tables[C.PdfPageTableNames.chartScaleTop]),m.drawTable(c.tables[C.PdfPageTableNames.chartScaleBottom])),this.needDrawTreeList()&&(m.drawTable(c.tables[C.PdfPageTableNames.treeListMain]),m.drawTable(c.tables[C.PdfPageTableNames.treeListHeader])),this.drawMargins(c),h},d.prototype.needDrawChart=function(){return!this._props||this._props.exportMode===y.ExportMode.all||this._props.exportMode===y.ExportMode.chart},d.prototype.needDrawTreeList=function(){return!this._props||this._props.exportMode===y.ExportMode.all||this._props.exportMode===y.ExportMode.treeList},d.prototype.getContentRightBottom=function(c){var h=new E.Point(0,0);for(var m in c.tables)if(Object.prototype.hasOwnProperty.call(c.tables,m)){var v=c.tables[m];h.x=Math.max(h.x,v.position.x+v.size.width),h.y=Math.max(h.y,v.position.y+v.size.height)}return h},d.prototype.drawMargins=function(c){var h=this._pdfDoc,m=this._props,v=h.getPageWidth(),b=h.getPageHeight(),x=this.getContentRightBottom(c);h.setFillColor(255,255,255),h.rect(0,0,m.margins.left,b,"F"),h.rect(0,0,v,m.margins.top,"F"),h.rect(x.x,0,v,b,"F"),h.rect(0,x.y,v,b,"F")},d}();D.PdfGanttPageDrawer=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfObjectDrawer=void 0;var E=w(4),I=w(64),C=w(44),y=function(){function g(p,d){this._FONT_ROW_RATIO=1.15,this._info=d,this._pdfDoc=p}return g.prototype.draw=function(){this.drawTimeMarkers(),this.drawDependencies(),this.drawTasks(),this.drawResources()},g.prototype.drawTasks=function(){var p,d=this,c=null===(p=this._info)||void 0===p?void 0:p.tasks;c&&c.forEach(function(h){return d.drawTask(h)})},g.prototype.drawTask=function(p){var d=this._pdfDoc;d.setFillColor.apply(d,p.taskColor.getRBGColor()),d.setDrawColor.apply(d,p.taskColor.getRBGColor()),p.isMilestone?this.drawMilestone(p):this.drawRegularTask(p)},g.prototype.drawMilestone=function(p){var d=this._pdfDoc,c=p.sidePoints[0].x,h=p.sidePoints[0].y,b=p.sidePoints[2].x,x=p.sidePoints[2].y,O=p.sidePoints[3].x,k=p.sidePoints[3].y;d.triangle(c,h,p.sidePoints[1].x,p.sidePoints[1].y,b,x,"FD"),d.triangle(c,h,O,k,b,x,"FD")},g.prototype.drawRegularTask=function(p){var d=this._pdfDoc;d.rect(p.left,p.top,p.width,p.height,"FD"),p.isParent&&this.drawParentBorder(p),p.progressWidth&&(d.setFillColor.apply(d,p.progressColor.getRBGColor()),d.rect(p.left,p.top,p.progressWidth,p.height,"F")),p.text&&this.printTaskTitle(p)},g.prototype.drawParentBorder=function(p){var d=this._pdfDoc,c=p.sidePoints[0].x,h=p.sidePoints[1].y,m=p.sidePoints[3].y,v=p.sidePoints[2].x,b=p.sidePoints[3].y-p.sidePoints[1].y,x=p.progressWidth>b?p.progressColor.getRBGColor():p.taskColor.getRBGColor();d.setFillColor.apply(d,x),d.triangle(c,h,c,m,c+b,h,"FD"),d.setFillColor.apply(d,p.taskColor.getRBGColor()),d.triangle(v,h,v,m,v-b,h,"FD")},g.prototype.printTaskTitle=function(p){var d,c=this._pdfDoc,h=p.textStyle,m=h&&h.textColor.getRBGColor(),v=h&&h.fontSize;c.setTextColor.apply(c,m),c.setFontSize(v);var b=p.top+v*this._FONT_ROW_RATIO/c.internal.scaleFactor;p.isParent&&(b-=C.PdfTaskInfo.defaultParentHeightCorrection);var x=h&&h.cellPadding.left||0,O=h&&h.cellPadding.right||0;p.textPosition===E.TaskTitlePosition.Inside?(d=p.left+x,c.text(I.EllipsisHelper.limitPdfTextWithEllipsis(p.text,c,p.width-x-O),d,b)):c.text(p.text,d=p.left-O,b,{align:"right"})},g.prototype.drawDependencies=function(){var p,d=this,c=null===(p=this._info)||void 0===p?void 0:p.dependencies;c&&c.forEach(function(h){return d.drawDependencyLine(h)})},g.prototype.drawDependencyLine=function(p){var d,c;if((d=this._pdfDoc).setFillColor.apply(d,p.fillColor.getRBGColor()),(c=this._pdfDoc).setDrawColor.apply(c,p.fillColor.getRBGColor()),p.arrowInfo)this.drawArrow(p);else{var h=p.points;this._pdfDoc.line(h[0].x,h[0].y,h[1].x,h[1].y)}},g.prototype.isValidLine=function(p){var d=p.points;return!(isNaN(d[0].x)||isNaN(d[0].y)||isNaN(d[1].x)||isNaN(d[1].y))},g.prototype.drawArrow=function(p){var d=p.arrowInfo.width||0,c=p.points[0].x,h=p.points[0].y;switch(p.arrowInfo.position){case E.Position.Left:this._pdfDoc.triangle(c,h+d,c+d,h,c+d,h+2*d,"FD");break;case E.Position.Right:this._pdfDoc.triangle(c,h,c,h+2*d,c+d,h+d,"FD");break;case E.Position.Top:this._pdfDoc.triangle(c,h+d,c+d,h,c+2*d,h+d,"FD");break;case E.Position.Bottom:this._pdfDoc.triangle(c,h,c+d,h+d,c+2*d,h,"FD")}},g.prototype.drawResources=function(){var p,d=this,c=this._pdfDoc,h=null===(p=this._info)||void 0===p?void 0:p.resources;h&&h.forEach(function(m){var v,b,x;c.setFontSize(null!==(v=m.style.fontSize)&&void 0!==v?v:11);var O=m.y+m.style.fontSize*d._FONT_ROW_RATIO/c.internal.scaleFactor,k=null!==(b=m.style.cellPadding.left)&&void 0!==b?b:0,M=null!==(x=m.style.cellPadding.right)&&void 0!==x?x:1,A=Math.max(m.style.cellWidth.getValue(),k+c.getTextWidth(m.text)+M);c.setFillColor.apply(c,m.style.fillColor.getRBGColor()),c.rect(m.x,m.y,A,m.style.minCellHeight,"F"),c.setTextColor.apply(c,m.style.textColor.getRBGColor()),c.text(m.text,m.x+k,O)})},g.prototype.drawTimeMarkers=function(){var p,d=this;(null===(p=this._info)||void 0===p?void 0:p.timeMarkers)?.forEach(function(h){return d.drawTimeMarker(h)})},g.prototype.drawTimeMarker=function(p){var d,c,h=this._pdfDoc,m=p.size.width>1,v=p.start.x,b=p.start.y,x=p.size.width,O=p.size.height,k=p.isStripLine;m&&(h.setFillColor.apply(h,p.color.getRBGColor()),h.saveGraphicsState(),h.setGState(new h.GState({opacity:null!==(c=p.color.opacity)&&void 0!==c?c:1})),h.rect(v,b,x,O,"F"),h.restoreGraphicsState()),k&&(this._pdfDoc.setLineDashPattern([3]),(d=this._pdfDoc).setDrawColor.apply(d,p.lineColor.getRBGColor()),m&&this._pdfDoc.line(v+x,b,v+x,b+O,"S"),this._pdfDoc.line(v,b,v,b+O,"S"),this._pdfDoc.setLineDashPattern())},g}();D.PdfObjectDrawer=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.PdfGanttTableDrawer=void 0;var E=w(1),I=w(27),C=w(64),y=w(156),g=function(){function p(d){this._pdfDoc=d}return p.prototype.drawTable=function(d){var c,h;if(d){var m=this.createTableOptions(d);!(null===(c=d.style)||void 0===c)&&c.fontSize&&this._pdfDoc.setFontSize(null===(h=d.style)||void 0===h?void 0:h.fontSize),this._pdfDoc.autoTable(m.getValue())}},p.prototype.createTableOptions=function(d){var c=this.createDefaultTableOptions();return this.addTableCommonSettings(d,c),this.addCommonTableStyles(d,c),this.prepareBodyCells(d),c.addBody(d.cells),d.hideRowLines&&this.hideRowLines(c),c},p.prototype.createDefaultTableOptions=function(){var d=new y.TableOptions;return d.pageBreak="auto",d.margin.assign(0),d.tableWidth.assign("auto"),d.styles.cellPadding.assign(0),d.styles.halign="center",d.styles.valign="middle",d.styles.lineWidth=1,d.styles.overflow="hidden",d},p.prototype.addTableCommonSettings=function(d,c){c.startY=d.position.y,c.margin.assign({left:d.position.x}),c.tableWidth.assign(d.size.width)},p.prototype.addCommonTableStyles=function(d,c){var h=c.styles;h.assign(d.style),0===h.fillColor.opacity&&h.fillColor.assign("#FFFFFF"),h.minCellHeight=d.baseCellSize.height,c.alternateRowStyles.minCellHeight=c.styles.minCellHeight,c.alternateRowStyles.fillColor.assign(c.styles.fillColor),(0,E.isDefined)(d.baseCellSize.width)&&h.cellWidth.assign(d.baseCellSize.width)},p.prototype.prepareBodyCells=function(d){var c,h,m;if(d.name===I.PdfPageTableNames.treeListMain||d.name===I.PdfPageTableNames.chartScaleTop||d.name===I.PdfPageTableNames.chartScaleBottom)for(var v=d.cells,b=0;b<v.length;b++)for(var x=v[b],O=0;O<x.length;O++){var k=x[O],M=k.styles,A=(null===(c=M?.cellWidth)||void 0===c?void 0:c.getValue())||d.baseCellSize.width||0,F=null!==(h=M?.cellPadding.left)&&void 0!==h?h:0,P=null!==(m=M?.cellPadding.right)&&void 0!==m?m:0,N=Math.max(A-F-P-p.cellEllipsisSpace,0);k.content=C.EllipsisHelper.limitPdfTextWithEllipsis(k.content,this._pdfDoc,N)}},p.prototype.hideRowLines=function(d){d.styles.lineWidth=0,d.onDrawCellCallback=function(c){var h=c.cell,m=c.doc,v=h.styles.lineColor,b=h.x,x=h.x+h.styles.cellWidth,O=h.y,k=h.y+c.row.height,M=c.column.index===c.table.columns.length-1,A=c.row.index===c.table.body.length-1,F=0===c.row.index;m.setDrawColor(v[0],v[1],v[2]),m.setLineWidth(1),m.line(b,k,b,O),M&&m.line(x,k,x,O),F&&m.line(b,O,x,O),A&&m.line(b,k,x,k)}},p.cellEllipsisSpace=3,p}();D.PdfGanttTableDrawer=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TableOptions=void 0;var E=w(1),I=w(45),C=w(17),y=w(35),g=w(36),p=w(26),d=w(62),c=function(){function h(){this._margin=new g.Margin,this._tableLineColor=new C.Color,this._tableWidth=new d.Width,this._styles=new p.StyleDef,this._alternateRowStyles=new p.StyleDef}return Object.defineProperty(h.prototype,"pageBreak",{get:function(){return this._pageBreak},set:function(m){this._pageBreak=y.PredefinedStyles.getPredefinedStringOrUndefined(m,y.PredefinedStyles.pageBreak)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"rowPageBreak",{get:function(){return this._rowPageBreak},set:function(m){this._rowPageBreak=y.PredefinedStyles.getPredefinedStringOrUndefined(m,y.PredefinedStyles.rowPageBreak)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"showHead",{get:function(){return this._showHead},set:function(m){this._showHead=y.PredefinedStyles.getPredefinedStringOrUndefined(m,y.PredefinedStyles.headerFooterVisibility)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"showFoot",{get:function(){return this._showFoot},set:function(m){this._showFoot=y.PredefinedStyles.getPredefinedStringOrUndefined(m,y.PredefinedStyles.headerFooterVisibility)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"startY",{get:function(){return this._startY},set:function(m){this._startY=m},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"tableLineWidth",{get:function(){return this._tableLineWidth},set:function(m){this._tableLineWidth=m},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"tableLineColor",{get:function(){return this._tableLineColor},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"tableWidth",{get:function(){return this._tableWidth},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"styles",{get:function(){return this._styles},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"alternateRowStyles",{get:function(){return this._alternateRowStyles},enumerable:!1,configurable:!0}),h.prototype.hasValue=function(){return!0},h.prototype.getValue=function(){var m=this,v={};return v.pageBreak=this.pageBreak,v.rowPageBreak=this.rowPageBreak,v.showFoot=this.showFoot,v.showHead=this.showHead,v.startY=this.startY,v.tableLineWidth=this.tableLineWidth,this.getJsPdfProviderProps().forEach(function(b){var x=m[b];x&&x.hasValue()&&(v[b]=x.getValue())}),v.body=this.getBodyForJsPdf(),v.columnStyles=this.getColumnStylesForJsPdf(),this.onDrawCellCallback&&(v.didDrawCell=this.onDrawCellCallback),v},h.prototype.getJsPdfProviderProps=function(){return["margin","tableLineColor","tableWidth","styles","alternateRowStyles"]},h.prototype.getBodyForJsPdf=function(){for(var m=[],v=0;v<this._body.length;v++){for(var b=this._body[v],x=[],O=0;O<b.length;O++)x.push(b[O].getValue());m.push(x)}return m},h.prototype.assign=function(m){m&&((0,E.isDefined)(m.margin)&&this.margin.assign(m.margin),(0,E.isDefined)(m.pageBreak)&&(this.pageBreak=m.pageBreak),(0,E.isDefined)(m.rowPageBreak)&&(this.rowPageBreak=m.rowPageBreak),(0,E.isDefined)(m.showFoot)&&(this.showFoot=m.showFoot),(0,E.isDefined)(m.showHead)&&(this.showHead=m.showHead),(0,E.isDefined)(m.startY)&&(this.startY=m.startY),(0,E.isDefined)(m.tableLineWidth)&&(this.tableLineWidth=m.tableLineWidth),(0,E.isDefined)(m.tableLineColor)&&this.tableLineColor.assign(m.tableLineColor),(0,E.isDefined)(m.tableWidth)&&this.tableWidth.assign(m.tableWidth))},h.prototype.addBody=function(m){m&&(this._body=new Array,this.addCells(m,this._body))},h.prototype.addCells=function(m,v){for(var b=this.styles.fillColor,x=0;x<m.length;x++){for(var O=m[x],k=new Array,M=0;M<O.length;M++){var A=new I.CellDef(O[M]);b.hasValue()&&A.styles&&A.styles.fillColor.hasValue()&&A.styles.fillColor.applyOpacityToBackground(b),k.push(A)}v.push(k)}},h.prototype.applyColumnStyle=function(m,v){var b;null!==(b=this._columnStyles)&&void 0!==b||(this._columnStyles=new Array),this._columnStyles[m]=new p.StyleDef(v)},h.prototype.getColumnStylesForJsPdf=function(){if(this._columnStyles){var m={};return this._columnStyles.forEach(function(v,b){v&&(m[b]=v.getValue())}),m}return null},h}();D.TableOptions=c},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.RenderHelper=void 0;var E=w(158),I=w(159),C=w(160),y=w(47),g=w(25),p=w(161),d=w(162),c=w(163),h=w(165),m=w(166),v=w(179),b=w(180),x=w(182),O=w(12),k=w(183),M=w(184),A=function(){function F(P){this.hlRowElements=[],this.renderedColIndices=[],this.renderedRowIndices=[],this.invalidTaskDependencies=[],this.etalonSizeValues=new C.EtalonSizeValues,this._gridLayoutCalculator=new g.GridLayoutCalculator,this._ganttView=P,this._connectorLinesRender=new E.ConnectorLinesRender(this),this._etalonsHelper=new I.EtalonsHelper(this),this._noWorkingIntervalRender=new p.NoWorkingIntervalRender(this),this._resourceRender=new d.ResourseRender(this),this._scaleRender=new c.ScaleRender(this),this._stripLinesRender=new h.StripLinesRender(this),this._taskAreaRender=new v.TaskAreaRender(this),this._taskRender=new b.TaskRender(this),this._mainElementsRender=new x.MainElementsRender}return F.prototype.reset=function(){this.invalidTaskDependencies=[],this._taskAreaRender.reset(),this._taskRender.reset(),this._taskArea.innerHTML="",this._scaleRender.reset(),this.hlRowElements=[],this.renderedRowIndices=[],this.renderedColIndices=[],this._connectorLinesRender.reset(),this._stripLinesRender.reset(),this._noWorkingIntervalRender.reset()},F.prototype.createMainElement=function(P){this.mainElement=this._mainElementsRender.createMainElement(P),P.appendChild(this.mainElement)},F.prototype.createHeader=function(){this.header=this._mainElementsRender.createHeader(),this.mainElement.appendChild(this.header)},F.prototype.init=function(P,N,B,V,H){void 0===H&&(H=0),this._elementTextHelper.setFont(this.mainElement),this.setupHelpers(P,N,B,V,H),this.setSizeForTaskArea(),this.createTimeScale(),this._taskAreaManager=new m.TaskAreaManager(this._ganttView.taskAreaEventsListener,this.taskArea,this.tickSize)},F.prototype.initMarkup=function(P){this._elementTextHelper=new M.ElementTextHelper(this.ganttViewSettings.cultureInfo),this.createMainElement(P),this.createHeader(),this._etalonsHelper.calculateEtalonSizeValues(),this._taskAreaRender.createTaskAreaContainer()},F.prototype.processScroll=function(P){this._taskAreaRender.recreateTaskAreaBordersAndTaskElements(P),P?this._connectorLinesRender.recreateConnectorLineElements():(this._noWorkingIntervalRender.recreateNoWorkingIntervalElements(),this._stripLinesRender.recreateStripLines(),this._scaleRender.recreateScalesElements())},Object.defineProperty(F.prototype,"ganttViewSettings",{get:function(){return this._ganttView.settings},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"taskTextHeightKey",{get:function(){return y.GanttView.taskTextHeightKey},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"showResources",{get:function(){return this.ganttViewSettings.showResources},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"showDependencies",{get:function(){return this.ganttViewSettings.showDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"viewModelItems",{get:function(){return this._ganttView.viewModel.items},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"stripLines",{get:function(){return this.ganttViewSettings.stripLines},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"range",{get:function(){return this._ganttView.range},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"viewType",{get:function(){return this.ganttViewSettings.viewType},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"taskTitlePosition",{get:function(){return this.ganttViewSettings.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"tickSize",{get:function(){return this._ganttView.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"ganttViewTaskAreaContainerScrollTop",{get:function(){return this._ganttView.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"ganttTaskAreaContainerScrollLeft",{get:function(){return this._ganttView.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"scaleCount",{get:function(){return this._ganttView.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"areHorizontalBordersEnabled",{get:function(){return this.ganttViewSettings.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"taskEditController",{get:function(){return this._ganttView.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"dispatcher",{get:function(){return this._ganttView.dispatcher},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"taskAreaManager",{get:function(){var P;return null!==(P=this._taskAreaManager)&&void 0!==P||(this._taskAreaManager=new m.TaskAreaManager(this._ganttView.taskAreaEventsListener,this.taskArea,this.tickSize)),this._taskAreaManager},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"taskAreaContainerScrollTop",{get:function(){return this._taskAreaRender.taskAreaContainer.scrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._taskAreaRender.taskAreaContainer.scrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"taskAreaContainer",{get:function(){return this._taskAreaRender.taskAreaContainer},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"isExternalTaskAreaContainer",{get:function(){return this._taskAreaRender.taskAreaContainer.isExternal},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"fakeTaskWrapper",{get:function(){return this._taskRender.fakeTaskWrapper},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"selectionElements",{get:function(){return this._taskRender.selectionElements},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"scaleElements",{get:function(){return this._scaleRender.scaleElements},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"scaleBorders",{get:function(){return this._scaleRender.scaleBorders},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"timeScaleContainer",{get:function(){return this._scaleRender.timeScaleContainer},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"gridLayoutCalculator",{get:function(){return this._gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"etalonScaleItemWidths",{get:function(){return this.etalonSizeValues.scaleItemWidths[this.viewType]},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"elementTextHelperCultureInfo",{get:function(){return this._elementTextHelper.cultureInfo},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"noWorkingIntervalsToElementsMap",{get:function(){return this._noWorkingIntervalRender.noWorkingIntervalsToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"stripLinesMap",{get:function(){return this._stripLinesRender.stripLinesMap},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"renderedConnectorLines",{get:function(){return this._connectorLinesRender.renderedConnectorLines},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"allConnectorLines",{get:function(){return this.gridLayoutCalculator.tileToDependencyMap.reduce(function(P,N){return P.concat(N)},[])},enumerable:!1,configurable:!0}),Object.defineProperty(F.prototype,"resourcesElements",{get:function(){return this._resourceRender.resourcesElements},enumerable:!1,configurable:!0}),F.prototype.setupHelpers=function(P,N,B,V,H){void 0===H&&(H=0);var W=new O.Size(this._taskAreaRender.taskAreaContainer.getWidth(),this._taskAreaRender.taskAreaContainer.getHeight()),q=this._taskAreaRender.taskAreaContainer.getHeight()-this._taskAreaRender.taskAreaContainer.getElement().clientHeight;this._gridLayoutCalculator.setSettings(W,P,this.etalonSizeValues,N,V,B,q,H),this._elementTextHelper.setSettings(N.start.getTime(),B,V.items)},F.prototype.resetAndUpdate=function(P,N,B,V,H){void 0===H&&(H=0);var W=this.getTaskAreaContainerScrollLeft();this.reset(),this.setupHelpers(P,N,B,V,H),this._scaleRender.createTimeScaleAreas(),this.setSizeForTaskArea(),this.setTaskAreaContainerScrollLeft(W)},F.prototype.createConnectorLines=function(){this._gridLayoutCalculator.createTileToConnectorLinesMap(),this._connectorLinesRender.recreateConnectorLineElements()},F.prototype.getTargetDateByPos=function(P){return this._gridLayoutCalculator.getDateByPos(this._taskAreaRender.taskAreaContainer.scrollLeft+P)},F.prototype.getExternalTaskAreaContainer=function(P){return this._ganttView.getExternalTaskAreaContainer(P)},F.prototype.prepareExternalTaskAreaContainer=function(P,N){return this._ganttView.prepareExternalTaskAreaContainer(P,N)},F.prototype.isAllowTaskAreaBorders=function(P){return this._ganttView.allowTaskAreaBorders(P)},F.prototype.getHeaderHeight=function(){return this._ganttView.getHeaderHeight()},F.prototype.getViewItem=function(P){return this._ganttView.getViewItem(P)},F.prototype.getTask=function(P){return this._ganttView.getTask(P)},F.prototype.hasTaskTemplate=function(){return!!this._ganttView.settings.taskContentTemplate},F.prototype.destroyTemplate=function(P){this._ganttView.destroyTemplate(P)},F.prototype.getTaskDependencies=function(P){return this._ganttView.getTaskDependencies(P)},F.prototype.getTaskResources=function(P){return this._ganttView.getTaskResources(P)},F.prototype.isHighlightRowElementAllowed=function(P){return this._ganttView.isHighlightRowElementAllowed(P)},F.prototype.updateRenderedConnectorLinesId=function(P,N){this._connectorLinesRender.updateRenderedConnectorLinesId(P,N)},F.prototype.recreateConnectorLineElement=function(P,N){void 0===N&&(N=!1),this._connectorLinesRender.recreateConnectorLineElement(P,N)},F.prototype.recreateConnectorLineElemensts=function(){this._connectorLinesRender.recreateConnectorLineElements()},F.prototype.setMainElementWidth=function(P){this.mainElement.style.width=P+"px"},F.prototype.setMainElementHeight=function(P){this.mainElement.style.height=P+"px"},F.prototype.createResources=function(P){this._resourceRender.createResourcesWrapperElement(P),this._resourceRender.createResources(P)},F.prototype.createTimeScale=function(){this._scaleRender.createTimeScaleContainer(this.header),this._scaleRender.createTimeScaleAreas()},F.prototype.setTimeScaleContainerScrollLeft=function(P){this._scaleRender.setTimeScaleContainerScrollLeft(P)},F.prototype.recreateStripLines=function(){this._stripLinesRender.recreateStripLines&&this._stripLinesRender.recreateStripLines()},F.prototype.createTaskArea=function(P){this._taskArea=this._taskAreaRender.createTaskArea(),this._taskArea.setAttribute("task-edit-enabled",this.isTaskUpdateAllowed().toString()),P.appendChild(this._taskArea)},F.prototype.isTaskUpdateAllowed=function(){var P=this.ganttViewSettings.editing;return P.enabled&&P.allowTaskUpdate},F.prototype.setSizeForTaskArea=function(){var P=this.getTaskAreaWidth(),N=this.getTaskAreaHeight();this._taskAreaRender.setSizeForTaskArea(P,N),this._ganttView.onTaskAreaSizeChanged({width:P,height:N})},F.prototype.getTaskAreaWidth=function(){return this.gridLayoutCalculator.getTotalWidth()},F.prototype.getTaskAreaHeight=function(){return this.gridLayoutCalculator.getVerticalGridLineHeight()},F.prototype.getTaskAreaContainerScrollLeft=function(){return this._taskAreaRender.taskAreaContainer.scrollLeft},F.prototype.setTaskAreaContainerScrollLeft=function(P){this._taskAreaRender.taskAreaContainer.scrollLeft=P},F.prototype.setTaskAreaContainerScrollLeftToDate=function(P,N){this._taskAreaRender.taskAreaContainer.scrollLeft=Math.round(this._gridLayoutCalculator.getPosByDate(P))+N},F.prototype.getTaskAreaContainer=function(P){return new k.TaskAreaContainer(P,this._ganttView)},F.prototype.prepareTaskAreaContainer=function(){this._taskAreaRender.prepareTaskAreaContainer()},F.prototype.getTaskAreaContainerWidth=function(){return this._taskAreaRender.taskAreaContainer.getWidth()},F.prototype.createHighlightRowElement=function(P){this._taskAreaRender.createHighlightRowElement(P)},F.prototype.getSmallTaskWidth=function(P){return this._taskRender.getSmallTaskWidth(P)},F.prototype.createTaskElement=function(P){this._taskRender.createTaskElement(P,this._ganttView.settings.taskContentTemplate)},F.prototype.removeTaskElement=function(P){this._taskRender.removeTaskElement(P)},F.prototype.recreateTaskElement=function(P){this._taskRender.recreateTaskElement(P)},F.prototype.createDefaultTaskElement=function(P){this._taskRender.createDefaultTaskElement(P)},F.prototype.getScaleItemText=function(P,N){var B=this._gridLayoutCalculator.getScaleItemStart(P,N);return this.getScaleItemTextByStart(B,N)},F.prototype.getScaleItemTextByStart=function(P,N){return this._elementTextHelper.getScaleItemText(P,N)},F.prototype.getTextWidth=function(P){return this._elementTextHelper.getTextWidth(P)},F.prototype.getTaskVisibility=function(P){return this.gridLayoutCalculator.isTaskInRenderedRange(P)&&this._elementTextHelper.getTaskVisibility(P)},F.prototype.getTaskResourcesVisibility=function(P){return this.getTaskVisibility(P)&&!this.gridLayoutCalculator.isTaskCutByRange(P)},F.prototype.getScaleItemTextTemplate=function(P){return this._elementTextHelper.getScaleItemTextTemplate(P)},F.prototype.getTaskText=function(P){return this._elementTextHelper.getTaskText(P)},F.prototype.taskAreaManagerDetachEvents=function(){this.taskAreaManager.detachEvents()},F.prototype.attachEventsOnTask=function(P){this.taskAreaManager.attachEventsOnTask(this._taskRender.taskElements[P])},F.prototype.detachEventsOnTask=function(P){this.taskAreaManager.detachEventsOnTask(this._taskRender.taskElements[P])},F}();D.RenderHelper=A},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ConnectorLinesRender=void 0;var E=w(16),I=w(25),C=function(){function y(g){this._connectorLinesToElementsMap={},this._renderedConnectorLines=[],this._renderHelper=g}return Object.defineProperty(y.prototype,"taskEditController",{get:function(){return this._renderHelper.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"connectorLinesToElementsMap",{get:function(){return this._connectorLinesToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"showDependencies",{get:function(){return this._renderHelper.showDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"renderedConnectorLines",{get:function(){return this._renderedConnectorLines},enumerable:!1,configurable:!0}),y.prototype.reset=function(){this._connectorLinesToElementsMap={},this._renderedConnectorLines=[]},y.prototype.createConnectorLineElement=function(g){if(this.showDependencies){var p=g.attr["dependency-id"];if(!this.invalidTaskDependencies.some(function(h){return h.id==p})){this.taskEditController.isDependencySelected(p)&&(g.className=g.className+" active");var d=g.className.indexOf(I.GridLayoutCalculator.arrowClassName)>-1,c=E.RenderElementUtils.create(g,null,this.taskArea,this.connectorLinesToElementsMap);return d&&this.gridLayoutCalculator.checkAndCorrectArrowElementDisplayByRange(c),c}}},y.prototype.removeConnectorLineElement=function(g){E.RenderElementUtils.remove(g,null,this.taskArea,this.connectorLinesToElementsMap)},y.prototype.recreateConnectorLineElement=function(g,p){var d=this;void 0===p&&(p=!1);var c=[];this._renderedConnectorLines=this.renderedConnectorLines.filter(function(m){return m.attr["dependency-id"]!=g||(c.push(m),!1)});var h=c.length>0;c.forEach(function(m){d.removeConnectorLineElement(m)}),c=this.gridLayoutCalculator.updateTileToConnectorLinesMap(g),(h||p)&&c.forEach(function(m){d.createConnectorLineElement(m),d.renderedConnectorLines.push(m)})},y.prototype.recreateConnectorLineElements=function(){var g=this,p=this.gridLayoutCalculator.getRenderedConnectorLines(this.taskAreaContainerScrollTop);E.RenderElementUtils.recreate(this.renderedConnectorLines,p,function(d){g.removeConnectorLineElement(d)},function(d){g.createConnectorLineElement(d)}),this._renderedConnectorLines=p},y.prototype.updateRenderedConnectorLinesId=function(g,p){for(var d in this._renderedConnectorLines.forEach(function(h){h.attr["dependency-id"]===g&&(h.attr["dependency-id"]=p)}),this.connectorLinesToElementsMap)if(Object.prototype.hasOwnProperty.call(this.connectorLinesToElementsMap,d)){var c=this.connectorLinesToElementsMap[d];c.getAttribute("dependency-id")===g&&c.setAttribute("dependency-id",p)}this.gridLayoutCalculator.updateTileToConnectorLinesMap(g),this.gridLayoutCalculator.updateTileToConnectorLinesMap(p)},y}();D.ConnectorLinesRender=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.EtalonsHelper=void 0;var E=w(3),I=w(4),C=w(58),y=w(16),g=function(){function p(d){this._renderHelper=d}return Object.defineProperty(p.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),p.prototype.getScaleItemTextTemplate=function(d){return this._renderHelper.getScaleItemTextTemplate(d)},p.prototype.getHeaderHeight=function(){return this._renderHelper.getHeaderHeight()},p.prototype.getSmallTaskWidth=function(d){return this._renderHelper.getSmallTaskWidth(d)},p.prototype.createEtalonElementsContainer=function(){var d=document.createElement("DIV");return d.style.visibility="hidden",d.style.position="absolute",d.style.left="-1000px",this.mainElement.appendChild(d),d},p.prototype.createEtalonElements=function(d){var c=[],h=y.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskWrapper"),null,d),m=y.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-task"),null,h);y.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,m).innerText="WWW",c.push(h);var v=y.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskWrapper"),null,d);y.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-task dx-gantt-milestone"),null,v),c.push(v);for(var b=["dx-gantt-conn-h","dx-gantt-arrow","dx-gantt-si","dx-gantt-taskTitle dx-gantt-titleOut"],x=0;x<b.length;x++){var O=new C.GridElementInfo(b[x]);c.push(y.RenderElementUtils.create(O,null,d))}var k=y.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskWrapper"),null,d),M=y.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-task dx-gantt-parent"),null,k);return y.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,M).innerText="WWW",c.push(k),c},p.prototype.calculateEtalonSizeValues=function(){var d=this.createEtalonElementsContainer(),c=this.createEtalonElements(d);this.calculateEtalonSizeValuesCore(c),this.mainElement.removeChild(d)},p.prototype.calculateEtalonSizeValuesCore=function(d){this.etalonSizeValues.taskHeight=d[0].firstChild.offsetHeight,this.etalonSizeValues.milestoneWidth=d[1].firstChild.offsetWidth,this.etalonSizeValues.taskWrapperTopPadding=E.DomUtils.pxToInt(E.DomUtils.getCurrentStyle(d[0]).paddingTop),this.etalonSizeValues.connectorLineThickness=E.DomUtils.getVerticalBordersWidth(d[2]),this.etalonSizeValues.connectorArrowWidth=E.DomUtils.getHorizontalBordersWidth(d[3]);for(var c=0;c<=I.ViewType.Years;c++)d[4].innerText=this.getScaleItemTextTemplate(c),this.etalonSizeValues.scaleItemWidths[c]=d[4].offsetWidth;this.etalonSizeValues.smallTaskWidth=this.getSmallTaskWidth(E.DomUtils.getCurrentStyle(d[0].firstChild.firstChild).paddingLeft),this.etalonSizeValues.outsideTaskTextDefaultWidth=E.DomUtils.pxToFloat(E.DomUtils.getCurrentStyle(d[5]).width),this.etalonSizeValues.scaleItemHeight=this.getHeaderHeight()/this.scaleCount,this.etalonSizeValues.parentTaskHeight=d[d.length-1].firstChild.offsetHeight},p}();D.EtalonsHelper=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.EtalonSizeValues=void 0,D.EtalonSizeValues=function(){this.scaleItemWidths={}}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.NoWorkingIntervalRender=void 0;var E=w(16),I=function(){function C(y){this._noWorkingIntervalsToElementsMap={},this._renderedNoWorkingIntervals=[],this._renderHelper=y}return Object.defineProperty(C.prototype,"noWorkingIntervalsToElementsMap",{get:function(){return this._noWorkingIntervalsToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._renderHelper.ganttTaskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"renderedNoWorkingIntervals",{get:function(){return this._renderedNoWorkingIntervals},set:function(y){this._renderedNoWorkingIntervals=y},enumerable:!1,configurable:!0}),C.prototype.reset=function(){this._noWorkingIntervalsToElementsMap={},this._renderedNoWorkingIntervals=[]},C.prototype.createNoWorkingIntervalElement=function(y){return E.RenderElementUtils.create(y,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},C.prototype.removeNoWorkingIntervalElement=function(y){E.RenderElementUtils.remove(y,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},C.prototype.recreateNoWorkingIntervalElements=function(){var y=this,g=this.gridLayoutCalculator.getRenderedNoWorkingIntervals(this.taskAreaContainerScrollLeft);E.RenderElementUtils.recreate(this.renderedNoWorkingIntervals,g,function(p){y.removeNoWorkingIntervalElement(p)},function(p){y.createNoWorkingIntervalElement(p)}),this.renderedNoWorkingIntervals=g},C}();D.NoWorkingIntervalRender=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourseRender=void 0;var E=w(16),I=function(){function C(y){this._resourcesElements=[],this._renderHelper=y}return Object.defineProperty(C.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"resourcesElements",{get:function(){return this._resourcesElements},enumerable:!1,configurable:!0}),C.prototype.getViewItem=function(y){return this._renderHelper.getViewItem(y)},C.prototype.getTaskResourcesVisibility=function(y){return this._renderHelper.getTaskResourcesVisibility(y)},C.prototype.createResources=function(y){for(var g=this.getViewItem(y).resources.items,p=0;p<g.length;p++)this.createResourceElement(y,g[p])},C.prototype.createResourcesWrapperElement=function(y){var g=this.gridLayoutCalculator.getTaskResourcesWrapperElementInfo(y);E.RenderElementUtils.create(g,y,this.taskArea,this.resourcesElements),this.resourcesElements[y].style.display=this.getTaskResourcesVisibility(y)?"":"none"},C.prototype.createResourceElement=function(y,g){var p=this.gridLayoutCalculator.getTaskResourceElementInfo();g.color&&(p.style.backgroundColor=g.color);var d=E.RenderElementUtils.create(p,y,this.resourcesElements[y]);d.innerText=g.text,this.gridLayoutCalculator.checkAndCorrectElementDisplayByRange(d)},C}();D.ResourseRender=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ScaleRender=void 0;var E=w(3),I=w(4),C=w(15),y=w(164),g=w(16),p=function(){function d(c){this._scaleBorders=[],this._scaleElements=[],this._renderedScaleItemIndices=[],this._timeScaleAreas=new Array,this._renderHelper=c}return Object.defineProperty(d.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"timeScaleContainer",{get:function(){return this._timeScaleContainer},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"range",{get:function(){return this._renderHelper.range},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"viewType",{get:function(){return this._renderHelper.viewType},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"timeScaleAreas",{get:function(){return this._timeScaleAreas},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"scaleElements",{get:function(){return this._scaleElements},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"scaleBorders",{get:function(){return this._scaleBorders},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"renderedScaleItemIndices",{get:function(){return this._renderedScaleItemIndices},enumerable:!1,configurable:!0}),d.prototype.getScaleItemText=function(c,h){return this._renderHelper.getScaleItemText(c,h)},d.prototype.getTaskAreaWidth=function(){return this._renderHelper.getTaskAreaWidth()},d.prototype.reset=function(){this._scaleBorders=[],this._scaleElements=[],this._renderedScaleItemIndices=[],this._timeScaleAreas=[],this._timeScaleContainer.innerHTML=""},d.prototype.setTimeScaleContainerScrollLeft=function(c){this._timeScaleContainer.scrollLeft=c},d.prototype.createTimeScaleContainer=function(c){var h=document.createElement("DIV");h.className="dx-gantt-tsac",h.style.height=this.etalonSizeValues.scaleItemHeight*this.scaleCount+"px",this._timeScaleContainer=h,c.appendChild(this.timeScaleContainer)},d.prototype.createTimeScaleArea=function(){var c=document.createElement("DIV");return c.className="dx-gantt-tsa",c.style.width=this.getTaskAreaWidth()+"px",c.style.height=this.etalonSizeValues.scaleItemHeight+"px",this.timeScaleContainer.appendChild(c),this.timeScaleAreas.unshift(c),c},d.prototype.createTimeScaleAreas=function(){for(var c=0;c<this.scaleCount;c++)this.createTimeScaleArea()},d.prototype.createScaleElementCore=function(c,h,m,v){return v[m]||(v[m]=[]),g.RenderElementUtils.create(h,c,this.timeScaleAreas[m],v[m])},d.prototype.createScaleElement=function(c,h,m,v){var b=this._renderHelper.getTextWidth("a"),x=this.createScaleElementCore(c,v,h,this.scaleElements);if(x.style.lineHeight=this.etalonSizeValues.scaleItemHeight+"px",v?.size.width>5*b){var O=this.getScaleItemText(c,m);x.innerText=O,m===I.ViewType.Quarter&&(x.style.padding="0");var k=getComputedStyle(x);v.size.width-E.DomUtils.pxToInt(k.paddingLeft)-E.DomUtils.pxToInt(k.paddingRight)<this._renderHelper.getTextWidth(O)&&(x.title=O)}return x},d.prototype.createScaleBorder=function(c,h,m){var v=this.gridLayoutCalculator.getScaleBorderInfo(c,m);return this.createScaleElementCore(c,v,h,this.scaleBorders)},d.prototype.createScaleElementAndBorder=function(c,h,m){var v=this.gridLayoutCalculator.getScaleElementInfo(c,m),b=this.createScaleElement(c,h,m,v),x=this.createScaleBorder(c,h,m);this.onScaleCellPrepared(m,h,b,x,v.additionalInfo.range)},d.prototype.removeScaleElementAndBorder=function(c,h){g.RenderElementUtils.remove(null,c,this.timeScaleAreas[h],this.scaleElements[h]),g.RenderElementUtils.remove(null,c,this.timeScaleAreas[h],this.scaleBorders[h])},d.prototype.recreateScalesElements=function(){this.recreateScaleElements(this.viewType,0),this.recreateScaleElements(C.DateUtils.ViewTypeToScaleMap[this.viewType],1)},d.prototype.recreateScaleElements=function(c,h){var m=this,v=this.gridLayoutCalculator.getRenderedScaleItemIndices(c,this.renderedColIndices);g.RenderElementUtils.recreate(this.renderedScaleItemIndices[c-this.viewType]||[],v,function(x){m.removeScaleElementAndBorder(x,h)},function(x){m.createScaleElementAndBorder(x,h,c)}),this.renderedScaleItemIndices[c-this.viewType]=v},Object.defineProperty(d.prototype,"dispatcher",{get:function(){return this._renderHelper.dispatcher},enumerable:!1,configurable:!0}),d.prototype.onScaleCellPrepared=function(c,h,m,v,b){var x=new y.ScaleCellPreparedArguments({scaleType:c,scaleIndex:h,range:b,scaleElement:m,separatorElement:v});this.dispatcher.notifyScaleCellPrepared(x)},d}();D.ScaleRender=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ScaleCellPreparedArguments=void 0;var E=function(){function I(C){this.info=C}return Object.defineProperty(I.prototype,"scaleIndex",{get:function(){var C;return null===(C=this.info)||void 0===C?void 0:C.scaleIndex},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"scaleType",{get:function(){var C;return null===(C=this.info)||void 0===C?void 0:C.scaleType},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"start",{get:function(){var C,y;return null===(y=null===(C=this.info)||void 0===C?void 0:C.range)||void 0===y?void 0:y.start},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"end",{get:function(){var C,y;return null===(y=null===(C=this.info)||void 0===C?void 0:C.range)||void 0===y?void 0:y.end},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"scaleElement",{get:function(){var C;return null===(C=this.info)||void 0===C?void 0:C.scaleElement},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"separatorElement",{get:function(){var C;return null===(C=this.info)||void 0===C?void 0:C.separatorElement},enumerable:!1,configurable:!0}),I}();D.ScaleCellPreparedArguments=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.StripLinesRender=void 0;var E=w(16),I=function(){function C(y){this._stripLinesMap=[],this._renderedStripLines=[],this._renderHelper=y}return Object.defineProperty(C.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"stripLinesMap",{get:function(){return this._stripLinesMap},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"renderedStripLines",{get:function(){return this._renderedStripLines},set:function(y){this._renderedStripLines=y},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"stripLines",{get:function(){return this._renderHelper.stripLines},enumerable:!1,configurable:!0}),C.prototype.reset=function(){this._renderedStripLines=[]},C.prototype.recreateStripLines=function(){var y=this,g=this.gridLayoutCalculator.getRenderedStripLines(this.stripLines);E.RenderElementUtils.recreate(this.renderedStripLines,g,function(p){E.RenderElementUtils.remove(p,null,y.taskArea,y.stripLinesMap)},function(p){return E.RenderElementUtils.create(p,null,y.taskArea,y.stripLinesMap)}),this.renderedStripLines=g},C}();D.StripLinesRender=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaManager=D.TOUCH_ACTION_NONE=void 0;var E=w(10),I=w(3),C=w(9),y=w(168);D.TOUCH_ACTION_NONE="dx-gantt-touch-action";var g=function(){function p(d,c,h){this._eventListener=d,this._taskArea=c,this._cellSize=h,this.attachEvents()}return p.prototype.attachEvents=function(){window.PointerEvent?this.attachPointerEvents():E.Browser.TouchUI?this.attachTouchEvents():this.attachMouseEvents(),this.attachCommonEvents()},p.prototype.detachEvents=function(){window.PointerEvent?this.detachPointerEvents():E.Browser.TouchUI?this.detachTouchEvents():this.detachMouseEvents(),this.detachCommonEvents()},p.prototype.attachEventsOnTask=function(d){window.PointerEvent?d?.addEventListener("pointerenter",this.onTaskPointerEnterHandler):E.Browser.TouchUI?d?.addEventListener("touchstart",this.onTaskTouchStartHandler):(d?.addEventListener("mouseenter",this.onTaskMouseEnterHandler),d?.addEventListener("mouseleave",this.onTaskMouseLeaveHandler))},p.prototype.detachEventsOnTask=function(d){window.PointerEvent?d?.removeEventListener("pointerenter",this.onTaskPointerEnterHandler):E.Browser.TouchUI?d?.removeEventListener("touchstart",this.onTaskTouchStartHandler):(d?.removeEventListener("mouseenter",this.onTaskMouseEnterHandler),d?.removeEventListener("mouseleave",this.onTaskMouseLeaveHandler))},p.prototype.attachCommonEvents=function(){this.taskAreaAddEventListener("contextmenu",this.onContextMenuHandler),this.taskAreaAddEventListener(C.EvtUtils.getMouseWheelEventName(),this.onMouseWheelHandler),this.taskAreaAddEventListener("scroll",this.onScrollHandler),document.addEventListener("keydown",this.onKeyDownHandler)},p.prototype.detachCommonEvents=function(){this.taskAreaRemoveEventListener("contextmenu",this.onContextMenuHandler),this.taskAreaRemoveEventListener(C.EvtUtils.getMouseWheelEventName(),this.onMouseWheelHandler),this.taskAreaRemoveEventListener("scroll",this.onScrollHandler),document.removeEventListener("keydown",this.onKeyDownHandler)},p.prototype.attachPointerEvents=function(){I.DomUtils.addClassName(this.taskArea,D.TOUCH_ACTION_NONE),document.addEventListener("pointerdown",this.onDocumentPointerDownHandler),document.addEventListener("pointerup",this.onDocumentPointerUpHandler),document.addEventListener("pointermove",this.onDocumentPointerMoveHandler),document.addEventListener("pointercancel",this.onDocumentPointerCancelUpHandler),this.taskAreaAddEventListener("pointerleave",this.onTaskAreaPointerLeaveHandler)},p.prototype.detachPointerEvents=function(){document.removeEventListener("pointerdown",this.onDocumentPointerDownHandler),document.removeEventListener("pointerup",this.onDocumentPointerUpHandler),document.removeEventListener("pointermove",this.onDocumentPointerMoveHandler),document.removeEventListener("pointercancel ",this.onDocumentPointerCancelUpHandler),this.taskAreaRemoveEventListener("pointerleave",this.onTaskAreaPointerLeaveHandler),I.DomUtils.removeClassName(this.taskArea,D.TOUCH_ACTION_NONE)},p.prototype.attachTouchEvents=function(){I.DomUtils.addClassName(this.taskArea,D.TOUCH_ACTION_NONE),document.addEventListener("touchstart",this.onTouchStartHandler),document.addEventListener("touchend",this.onTouchEndHandler),document.addEventListener("touchmove",this.onTouchMoveHandler)},p.prototype.detachTouchEvents=function(){document.removeEventListener("touchstart",this.onTouchStartHandler),document.removeEventListener("touchend",this.onTouchEndHandler),document.removeEventListener("touchmove",this.onTouchMoveHandler),I.DomUtils.removeClassName(this.taskArea,D.TOUCH_ACTION_NONE)},p.prototype.attachMouseEvents=function(){this.taskAreaAddEventListener("click",this.onMouseClickHandler),this.taskAreaAddEventListener("dblclick",this.onMouseDblClickHandler),this.taskAreaAddEventListener("mousedown",this.onMouseDownHandler),this.taskAreaAddEventListener("mouseleave",this.onTaskAreaMouseLeaveHandler),document.addEventListener("mousemove",this.onMouseMoveHandler),document.addEventListener("mouseup",this.onMouseUpHandler)},p.prototype.detachMouseEvents=function(){this.taskAreaRemoveEventListener("click",this.onMouseClickHandler),this.taskAreaRemoveEventListener("dblclick",this.onMouseDblClickHandler),this.taskAreaRemoveEventListener("mouseleave",this.onTaskAreaMouseLeaveHandler),this.taskAreaRemoveEventListener("mousedown",this.onMouseDownHandler),document.removeEventListener("mousemove",this.onMouseMoveHandler),document.removeEventListener("mouseup",this.onMouseUpHandler)},Object.defineProperty(p.prototype,"stateController",{get:function(){var d;return null!==(d=this._stateController)&&void 0!==d||(this._stateController=new y.TaskAreaStateController(this._eventListener,this._taskArea,this._cellSize)),this._stateController},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),p.prototype.taskAreaAddEventListener=function(d,c){this.taskArea.addEventListener(d,c)},p.prototype.taskAreaRemoveEventListener=function(d,c){this.taskArea.removeEventListener(d,c)},Object.defineProperty(p.prototype,"onContextMenuHandler",{get:function(){var d,c=this;return null!==(d=this._onContextMenuHandler)&&void 0!==d||(this._onContextMenuHandler=function(h){c.stateController.onContextMenu(h)}),this._onContextMenuHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseWheelHandler",{get:function(){var d,c=this;return null!==(d=this._onMouseWheelHandler)&&void 0!==d||(this._onMouseWheelHandler=function(h){c.stateController.onMouseWheel(h)}),this._onMouseWheelHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onScrollHandler",{get:function(){var d,c=this;return null!==(d=this._onScrollHandler)&&void 0!==d||(this._onScrollHandler=function(h){c.stateController.onScroll(h)}),this._onScrollHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onKeyDownHandler",{get:function(){var d,c=this;return null!==(d=this._onKeyDownHandler)&&void 0!==d||(this._onKeyDownHandler=function(h){c.stateController.onKeyDown(h)}),this._onKeyDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskPointerEnterHandler",{get:function(){var d,c=this;return null!==(d=this._onTaskPointerEnterHandler)&&void 0!==d||(this._onTaskPointerEnterHandler=function(h){c.stateController.onTaskPointerEnter(h)}),this._onTaskPointerEnterHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskAreaPointerLeaveHandler",{get:function(){var d,c=this;return null!==(d=this._onTaskAreaPointerLeaveHandler)&&void 0!==d||(this._onTaskAreaPointerLeaveHandler=function(h){c.stateController.onTaskAreaPointerLeave(h)}),this._onTaskAreaPointerLeaveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerDownHandler",{get:function(){var d,c=this;return null!==(d=this._onDocumentPointerDownHandler)&&void 0!==d||(this._onDocumentPointerDownHandler=function(h){c.stateController.onDocumentPointerDown(h)}),this._onDocumentPointerDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerUpHandler",{get:function(){var d,c=this;return null!==(d=this._onDocumentPointerUpHandler)&&void 0!==d||(this._onDocumentPointerUpHandler=function(h){c.stateController.onDocumentPointerUp(h)}),this._onDocumentPointerUpHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerCancelUpHandler",{get:function(){var d,c=this;return null!==(d=this._onDocumentPointerCancelHandler)&&void 0!==d||(this._onDocumentPointerCancelHandler=function(h){c.stateController.onDocumentPointerCancel(h)}),this._onDocumentPointerCancelHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerMoveHandler",{get:function(){var d,c=this;return null!==(d=this._onDocumentPointerMoveHandler)&&void 0!==d||(this._onDocumentPointerMoveHandler=function(h){c.stateController.onDocumentPointerMove(h)}),this._onDocumentPointerMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTouchStartHandler",{get:function(){var d,c=this;return null!==(d=this._onTouchStartHandler)&&void 0!==d||(this._onTouchStartHandler=function(h){c.stateController.onTouchStart(h)}),this._onTouchStartHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTouchEndHandler",{get:function(){var d,c=this;return null!==(d=this._onTouchEndHandler)&&void 0!==d||(this._onTouchEndHandler=function(h){c.stateController.onTouchEnd(h)}),this._onTouchEndHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTouchMoveHandler",{get:function(){var d,c=this;return null!==(d=this._onTouchMoveHandler)&&void 0!==d||(this._onTouchMoveHandler=function(h){c.stateController.onTouchMove(h)}),this._onTouchMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskTouchStartHandler",{get:function(){var d,c=this;return null!==(d=this._onTaskTouchStartHandler)&&void 0!==d||(this._onTaskTouchStartHandler=function(h){c.stateController.onTaskTouchStart(h)}),this._onTaskTouchStartHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseClickHandler",{get:function(){var d,c=this;return null!==(d=this._onMouseClickHandler)&&void 0!==d||(this._onMouseClickHandler=function(h){c.stateController.onClick(h)}),this._onMouseClickHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseDblClickHandler",{get:function(){var d,c=this;return null!==(d=this._onMouseDblClickHandler)&&void 0!==d||(this._onMouseDblClickHandler=function(h){c.stateController.onDblClick(h)}),this._onMouseDblClickHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseDownHandler",{get:function(){var d,c=this;return null!==(d=this._onMouseDownHandler)&&void 0!==d||(this._onMouseDownHandler=function(h){c.stateController.onMouseDown(h)}),this._onMouseDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskAreaMouseLeaveHandler",{get:function(){var d,c=this;return null!==(d=this._onTaskAreaMouseLeaveHandler)&&void 0!==d||(this._onTaskAreaMouseLeaveHandler=function(h){c.stateController.onTaskAreaMouseLeave(h)}),this._onTaskAreaMouseLeaveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseMoveHandler",{get:function(){var d,c=this;return null!==(d=this._onMouseMoveHandler)&&void 0!==d||(this._onMouseMoveHandler=function(h){c.stateController.onMouseMove(h)}),this._onMouseMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseUpHandler",{get:function(){var d,c=this;return null!==(d=this._onMouseUpHandler)&&void 0!==d||(this._onMouseUpHandler=function(h){c.stateController.onMouseUp(h)}),this._onMouseUpHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskMouseEnterHandler",{get:function(){var d,c=this;return null!==(d=this._onTaskMouseEnterHandler)&&void 0!==d||(this._onTaskMouseEnterHandler=function(h){c.stateController.onTaskElementHover(h)}),this._onTaskMouseEnterHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskMouseLeaveHandler",{get:function(){var d,c=this;return null!==(d=this._onTaskMouseLeaveHandler)&&void 0!==d||(this._onTaskMouseLeaveHandler=function(h){c.stateController.onTaskElementLeave(h)}),this._onTaskMouseLeaveHandler},enumerable:!1,configurable:!0}),p.DBLCLICK_INTERVAL=300,p.MS_POINTER_ACTIVE_CLASS="ms-pointer-active",p}();D.TaskAreaManager=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TouchUtils=void 0;var E=w(10),I=w(1),C=function(){function y(){}return y.onEventAttachingToDocument=function(g,p){return!E.Browser.MacOSMobilePlatform||!y.isTouchEventName(g)||(y.documentTouchHandlers[g]||(y.documentTouchHandlers[g]=[]),y.documentTouchHandlers[g].push(p),y.documentEventAttachingAllowed)},y.isTouchEventName=function(g){return E.Browser.WebKitTouchUI&&(g.indexOf("touch")>-1||g.indexOf("gesture")>-1)},y.isTouchEvent=function(g){return E.Browser.WebKitTouchUI&&I.isDefined(g.changedTouches)},y.getEventX=function(g){return E.Browser.IE?g.pageX:g.changedTouches[0].pageX},y.getEventY=function(g){return E.Browser.IE?g.pageY:g.changedTouches[0].pageY},y.touchMouseDownEventName=E.Browser.WebKitTouchUI?"touchstart":E.Browser.Edge&&E.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",y.touchMouseUpEventName=E.Browser.WebKitTouchUI?"touchend":E.Browser.Edge&&E.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",y.touchMouseMoveEventName=E.Browser.WebKitTouchUI?"touchmove":E.Browser.Edge&&E.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",y.msTouchDraggableClassName="dxMSTouchDraggable",y.documentTouchHandlers={},y.documentEventAttachingAllowed=!0,y}();D.TouchUtils=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaStateController=void 0;var E=w(5),I=w(3),C=w(9),y=w(46),g=w(4),p=w(170),d=w(173),c=w(29),h=w(174),m=w(13),v=w(175),b=w(177),x=w(178),O=function(){function k(M,A,F){var P=this;this.position=new E.Point(-1,-1),this._pointers={},this._listener=M,this._listener.setHandler(m.TaskAreaStateEventNames.STATE_EXIT,function(){P.switchToDefaultState()}),this._listener.setHandler(m.TaskAreaStateEventNames.GET_POINTERS_INFO,function(N){return P.getPointersInfo(N.triggerEvent)}),this._taskArea=A,this._cellSize=F,this.switchToDefaultState()}return k.prototype.onKeyDown=function(M){this._state.onKeyDown(M)},k.prototype.onScroll=function(M){this._state.onScroll(M)},k.prototype.onContextMenu=function(M){this._state.onContextMenu(M)},k.prototype.onMouseWheel=function(M){M.ctrlKey&&(M.preventDefault(),M.stopPropagation(),this.switchState(v.TaskAreaZoomState)),this._state.onMouseWheel(M)},Object.defineProperty(k.prototype,"currentState",{get:function(){return this._state},enumerable:!1,configurable:!0}),k.prototype.onTaskPointerEnter=function(M){this._state.onTaskPointerEnter(M)},k.prototype.onTaskAreaPointerLeave=function(M){this._state.onTaskAreaLeave(M)},k.prototype.onDocumentPointerCancel=function(M){this._clearPointerInfo(M)},k.prototype.onDocumentPointerDown=function(M){this._updatePinterInfo(M),this.toggleStateOnPointerDown(M),this._state.onDocumentPointerDown(M)},k.prototype.onDocumentPointerMove=function(M){this._updatePinterInfo(M),this.toggleStateOnPointerMove(M),this._state.onDocumentPointerMove(M)},k.prototype.onDocumentPointerUp=function(M){this._clearPointerInfo(M),this._state.onDocumentPointerUp(M)},k.prototype.onTaskTouchStart=function(M){this._state.onTaskTouchStart(M)},k.prototype.onTouchStart=function(M){this.toggleStateOnPointerDown(M),this._state.onTouchStart(M)},k.prototype.onTouchEnd=function(M){this._state.onTouchEnd(M)},k.prototype.onTouchMove=function(M){this.toggleStateOnPointerMove(M),this._state.onTouchMove(M)},k.prototype.onClick=function(M){this._state.onClick(M)},k.prototype.onDblClick=function(M){this._state.onDblClick(M)},k.prototype.onTaskAreaMouseLeave=function(M){this._state.onTaskAreaLeave(M)},k.prototype.onTaskElementHover=function(M){this._state.onTaskHover(M)},k.prototype.onTaskElementLeave=function(M){this._state.onTaskLeave(M)},k.prototype.onMouseUp=function(M){this._state.onMouseUp(M)},k.prototype.onMouseMove=function(M){this._state.onMouseMove(M)},k.prototype.onMouseDown=function(M){switch(this.getTaskAreaEventSource(M)){case g.TaskAreaEventSource.TaskArea:this.processMouseDownOnTaskArea(M);break;case g.TaskAreaEventSource.TaskEdit_Frame:this.switchState(x.TaskMoveState);break;case g.TaskAreaEventSource.TaskEdit_Progress:case g.TaskAreaEventSource.TaskEdit_Start:case g.TaskAreaEventSource.TaskEdit_End:this.switchState(b.TaskEditState);break;case g.TaskAreaEventSource.TaskEdit_DependencyStart:case g.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(d.TaskAreaDependencyState)}this._state.onMouseDown(M)},Object.defineProperty(k.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),k.prototype.switchToDefaultState=function(){this._state=new p.TaskAreaDefaultState(this._listener,this.taskArea,this._cellSize)},k.prototype.switchState=function(M){this._state instanceof M||(this._state&&this._state.finish(),this._state=new M(this._listener,this.taskArea,this._cellSize),this._state.start())},k.prototype.processMouseDownOnTaskArea=function(M){C.EvtUtils.isLeftButtonPressed(M)&&!c.TaskAreaDomHelper.isConnectorLine(M)&&this.switchState(h.TaskAreaScrollState)},k.prototype.toggleStateOnPointerDown=function(M){var A=this.toggleStateWhenMultiOrOutsideTouch(M);if(this.position=new E.Point(C.EvtUtils.getEventX(M),C.EvtUtils.getEventY(M)),!A&&this._canStartDrag(M))switch(this.getTaskAreaEventSource(M)){case g.TaskAreaEventSource.TaskEdit_DependencyStart:case g.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(d.TaskAreaDependencyState);break;case g.TaskAreaEventSource.TaskEdit_Progress:case g.TaskAreaEventSource.TaskEdit_Start:case g.TaskAreaEventSource.TaskEdit_End:this.switchState(b.TaskEditState)}},k.prototype.toggleStateOnPointerMove=function(M){var A=this.toggleStateWhenMultiOrOutsideTouch(M),F=Math.abs(this.position.x-C.EvtUtils.getEventX(M))>1||Math.abs(this.position.y-C.EvtUtils.getEventY(M))>1;if(!A&&F&&this._canStartDrag(M)&&this._state instanceof p.TaskAreaDefaultState)switch(this.getTaskAreaEventSource(M)){case g.TaskAreaEventSource.TaskArea:this.checkEventInTaskEditFrameArea(M)?this.switchState(x.TaskMoveState):this.switchState(h.TaskAreaScrollState);break;case g.TaskAreaEventSource.TaskEdit_Frame:this.isTaskUpdateDisabled()?this.switchState(h.TaskAreaScrollState):this.switchState(x.TaskMoveState);break;case g.TaskAreaEventSource.TaskEdit_Progress:case g.TaskAreaEventSource.TaskEdit_Start:case g.TaskAreaEventSource.TaskEdit_End:this.switchState(b.TaskEditState)}},k.prototype.toggleStateWhenMultiOrOutsideTouch=function(M){var A=this._getActivePointersCount(M),F=!this.isInTaskArea(M),P=A>=2||F;return A>2||F?this.switchState(p.TaskAreaDefaultState):2===A&&this.switchState(v.TaskAreaZoomState),P},k.prototype.checkEventInTaskEditFrameArea=function(M){var A,F,P=this.getTaskEditFrameElement();if(this.isTaskUpdateDisabled()||!P)return!1;var N=M?.clientX||(null===(A=M?.touches[0])||void 0===A?void 0:A.clientX),B=M?.clientY||(null===(F=M?.touches[0])||void 0===F?void 0:F.clientY),V=P.getBoundingClientRect();return N>=V.left&&N<=V.left+V.width&&B>=V.top&&B<=V.top+V.height},k.prototype.isTaskUpdateDisabled=function(){return"false"===this._taskArea.getAttribute("task-edit-enabled")},k.prototype.isInTaskArea=function(M){return I.DomUtils.isItParent(this._taskArea,C.EvtUtils.getEventSource(M))},k.prototype.getTaskEditFrameElement=function(){return this._taskArea.getElementsByClassName(y.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME)[0]},k.prototype._updatePinterInfo=function(M){this._pointers[M.pointerId]={pageX:M.pageX,pageY:M.pageY,pointerType:M.pointerType}},k.prototype._clearPointerInfo=function(M){delete this._pointers[M.pointerId]},k.prototype.isTouchEvent=function(M){return c.TaskAreaDomHelper.isTouchEvent(M)},k.prototype.isPointerEvent=function(M){return c.TaskAreaDomHelper.isPointerEvent(M)},k.prototype._getActivePointersCount=function(M){var A=this;return this.isTouchEvent(M)?M.touches.length:Object.keys(this._pointers).filter(function(F){return A._pointers[F].pointerType===M.pointerType}).length},k.prototype.getPointersInfo=function(M){var A=this,F=M?.pointerType,P=Object.keys(this._pointers).map(function(N){return A._pointers[N]});return F&&(P=P.filter(function(N){return N.pointerType===F})),P},k.prototype._canStartDrag=function(M){return!(this._getActivePointersCount(M)>1||c.TaskAreaDomHelper.isMousePointer(M)&&1!==M.buttons||c.TaskAreaDomHelper.isConnectorLine(M))},k.prototype.getTaskAreaEventSource=function(M){return c.TaskAreaDomHelper.getEventSource(C.EvtUtils.getEventSource(M))},k}();D.TaskAreaStateController=O},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskEditTooltip=void 0;var E=w(3),I=function(){function C(y,g,p){this.parentElement=y,this.cultureInfo=p,this.tooltipSettings=g}return Object.defineProperty(C.prototype,"baseElement",{get:function(){return this._baseElement||this.createTooltipContainer(),this._baseElement},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"headerHeight",{get:function(){return this.tooltipSettings.getHeaderHeight},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskTooltipContentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskProgressTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskProgressTooltipContentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskTimeTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskTimeTooltipContentTemplate},enumerable:!1,configurable:!0}),C.prototype.destroyTemplate=function(y){this.tooltipSettings.destroyTemplate(y)},C.prototype.formatDate=function(y){return this.tooltipSettings.formatDate(y)},C.prototype.createTooltipContainer=function(){this._baseElement=document.createElement("DIV"),this._baseElement.className=C.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS,this.parentElement.appendChild(this._baseElement)},C.prototype.setDefaultTooltip=function(y){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=C.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT;var g=document.createElement("DIV");g.className=C.CLASSNAMES.TASK_EDIT_TASK_TITLE;var p=document.createElement("SPAN");if(g.appendChild(p),this.defaultTooltip.appendChild(g),p.innerText=y.title,this.defaultTooltip.appendChild(this.getTimeContent(y.start,y.end)),!isNaN(y.progress)){var d=document.createElement("DIV");d.className=C.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var c=document.createElement("SPAN"),h=document.createElement("SPAN");d.appendChild(c),d.appendChild(h),this.defaultTooltip.appendChild(d),c.innerText=(this.cultureInfo.progress?this.cultureInfo.progress:"Progress")+": ",h.innerText=y.progress+"%"}this.baseElement.appendChild(this.defaultTooltip)},C.prototype.setDefaultProgressTooltip=function(y){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=C.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.innerText=y+"%",this.baseElement.appendChild(this.defaultTooltip)},C.prototype.setDefaultTimeTooltip=function(y,g){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=C.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.appendChild(this.getTimeContent(y,g)),this.baseElement.appendChild(this.defaultTooltip)},C.prototype.showInfo=function(y,g,p){var d=this;void 0===p&&(p=0);var c=this.taskTooltipContentTemplate;this.destroyTemplate(this.baseElement),c?c(this.baseElement,y,function(){d.showTooltip(g,!1,p)}):(this.setDefaultTooltip(y),this.showTooltip(g,!1,p))},C.prototype.showProgress=function(y,g){var p=this,d=this.taskProgressTooltipContentTemplate;this.destroyTemplate(this.baseElement),d?d(this.baseElement,{progress:y},function(){p.showTooltip(g)}):(this.setDefaultProgressTooltip(y),this.show(g))},C.prototype.showTime=function(y,g,p){var d=this,c=this.taskTimeTooltipContentTemplate;this.destroyTemplate(this.baseElement),c?c(this.baseElement,{start:y,end:g},function(){d.showTooltip(p)}):(this.setDefaultTimeTooltip(y,g),this.show(p))},C.prototype.showTooltip=function(y,g,p){var d,c=this;if(void 0===g&&(g=!0),void 0===p&&(p=0),null===(d=this.baseElement)||void 0===d?void 0:d.innerHTML){var h=function(){c.show(y,g)};p?this.timerId=setTimeout(h,p):h()}},C.prototype.show=function(y,g){var p,d,c,h,m=this;void 0===g&&(g=!0),null===(p=this.defaultTooltip)||void 0===p||p.classList.remove(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER),null===(d=this.defaultTooltip)||void 0===d||d.classList.remove(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.display="block";var v=E.DomUtils.getAbsolutePositionY(this.parentElement),b=y-E.DomUtils.getAbsolutePositionX(this.parentElement)-10,x=v-this.headerHeight-E.DomUtils.getDocumentScrollTop()-15,k=-this.baseElement.clientHeight-5;this.baseElement.clientHeight>x||this.baseElement.clientHeight>this.parentElement.offsetTop?(k=this.parentElement.clientHeight+5,null===(c=this.defaultTooltip)||void 0===c||c.classList.add(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER)):null===(h=this.defaultTooltip)||void 0===h||h.classList.add(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.left=b+"px",this.baseElement.style.top=k+"px",g&&(this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){m.hide()},1500))},C.prototype.hide=function(){this.baseElement.style.display="none",this.destroyTemplate(this.baseElement),clearTimeout(this.timerId)},C.prototype.getTimeContent=function(y,g){var p=document.createElement("TABLE");p.className=C.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var d=document.createElement("TBODY");p.appendChild(d);var c=document.createElement("TR"),h=document.createElement("TD"),m=document.createElement("TD"),v=document.createElement("TR"),b=document.createElement("TD"),x=document.createElement("TD");return c.appendChild(h),c.appendChild(m),v.appendChild(b),v.appendChild(x),d.appendChild(c),d.appendChild(v),h.innerText=(this.cultureInfo.start?this.cultureInfo.start:"Start")+": ",m.innerText=this.formatDate(y),b.innerText=(this.cultureInfo.end?this.cultureInfo.end:"End")+": ",x.innerText=this.formatDate(g),p},C.CLASSNAMES={TASK_EDIT_PROGRESS_STATUS:"dx-gantt-task-edit-tooltip",TASK_EDIT_TOOLTIP_DEFAULT:"dx-gantt-task-edit-tooltip-default",TASK_EDIT_TASK_TITLE:"dx-gantt-task-title",TASK_EDIT_PROGRESS_STATUS_TIME:"dx-gantt-status-time",TASK_EDIT_TOOLTIP_ARROW_BEFORE:"dx-gantt-task-edit-tooltip-before",TASK_EDIT_TOOLTIP_ARROW_AFTER:"dx-gantt-task-edit-tooltip-after"},C}();D.TaskEditTooltip=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaDefaultState=void 0;var E=w(0),I=w(9),C=w(29),y=w(30),g=w(13),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return E.__extends(c,d),c.prototype.finish=function(){this.clearTimers(),this.raiseEvent(g.TaskAreaStateEventNames.CONTEXTMENU_HIDE)},c.prototype.onMouseDownInternal=function(h){this.onPointerDownBase(h)},c.prototype.onDocumentPointerDownInternal=function(h){this.onPointerDownBase(h)},c.prototype.onDocumentPointerUpInternal=function(h){this.onPointerUpBase(h)},c.prototype.onDocumentPointerMoveInternal=function(h){this.clearTimers()},c.prototype.onTouchStartInternal=function(h){this.onPointerDownBase(h)},c.prototype.onTouchEndInternal=function(h){this.onPointerUpBase(h)},c.prototype.onTouchMoveInternal=function(h){this.clearTimers()},c.prototype.onPointerDownBase=function(h){var m=this;h.preventDefault(),this._lastTouchRowIndex=this.getClickedRowIndex(h),(this.isPointerEvent(h)?C.TaskAreaDomHelper.isMousePointer(h):this.isMouseEvent(h))?this.changeSelectionOnTouchDown(h):(setTimeout(function(){C.TaskAreaDomHelper.isMousePointer(h)||m.raiseEvent(g.TaskAreaStateEventNames.CONTEXTMENU_HIDE,h),m.changeSelectionOnTouchDown(h)},0),clearTimeout(this._contextMenuTimer),this._contextMenuTimer=setTimeout(function(){return m.showContextMenuOnTouchDown(h)},c.defaultContextMenuTimeout))},c.prototype.onPointerUpBase=function(h){var m=this;if(clearTimeout(this._contextMenuTimer),h.preventDefault(),this.canToEmulateClick(h)){var v=this.getClickedRowIndex(h),b=new Date;if(this._lastEmulatedClickTime)b.getTime()-this._lastEmulatedClickTime.getTime()<c.defaultDblClickTimeout&&(this.raiseEvent(g.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,h,v),delete this._lastEmulatedClickTime);else{var x=!this.raiseEvent(g.TaskAreaStateEventNames.TASK_AREA_CLICK,h,v);clearTimeout(this._dblClickClearTimer),C.TaskAreaDomHelper.isMousePointer(h)&&this.raiseEvent(g.TaskAreaStateEventNames.CONTEXTMENU_HIDE,h),x||(this._lastEmulatedClickTime=b,this._dblClickClearTimer=setTimeout(function(){delete m._lastEmulatedClickTime},c.defaultDblClickClearTimeout))}}},c.prototype.canToEmulateClick=function(h){var m=!C.TaskAreaDomHelper.isConnectorLine(h)&&this.getClickedRowIndex(h)===this._lastTouchRowIndex;return m&&C.TaskAreaDomHelper.isMousePointer(h)&&m&&(m=2!==h.button),m},c.prototype.changeSelectionOnTouchDown=function(h){var m=C.TaskAreaDomHelper.isConnectorLine(h);m||this.raiseTaskSelection(h,this.getClickedRowIndex(h)),this.raiseDependencySelection(h,m?I.EvtUtils.getEventSource(h).getAttribute("dependency-id"):null)},c.prototype.showContextMenuOnTouchDown=function(h){var m=C.TaskAreaDomHelper.isConnectorLine(h);this.raiseEvent(g.TaskAreaStateEventNames.CONTEXTMENU_SHOW,h,this.getClickedRowIndex(h),{type:m?"dependency":"task"})},c.prototype.clearTimers=function(){clearTimeout(this._contextMenuTimer),clearTimeout(this._dblClickClearTimer),delete this._lastEmulatedClickTime},c.defaultContextMenuTimeout=3e3,c.defaultDblClickClearTimeout=(c.defaultDblClickTimeout=500)+100,c}(y.TaskAreaStateBase);D.TaskAreaDefaultState=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.EncodeUtils=void 0;var E=function(){function I(){}return I.encodeHtml=function(C){return C.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},I.decodeHtml=function(C){return C.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")},I.prepareTextForRequest=function(C){return C.replace(/%/g,"%25").replace(/&/g,"%26amp;").replace(/\+/g,"%2B").replace(/</g,"%26lt;").replace(/>/g,"%26gt;").replace(/"/g,"%26quot;")},I.prepareTextForCallBackRequest=function(C){return C.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},I.decodeViaTextArea=function(C){var y=document.createElement("TEXTAREA");return y.innerHTML=C,y.value},I}();D.EncodeUtils=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaEventArgs=void 0;var E=w(1);D.TaskAreaEventArgs=function(C,y,g,p){this.rowIndex=-1,this.info={},this.eventName=C,this.triggerEvent=y,(0,E.isDefined)(g)&&(this.rowIndex=g),p&&(this.info=p)}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaDependencyState=D.dependencyMap=void 0;var E=w(0),I=w(5),C=w(3),y=w(9),g=w(23),p=w(4),d=w(29),c=w(30),h=w(13);D.dependencyMap=[],D.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyStart]=[],D.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyFinish]=[],D.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyStart][p.TaskAreaEventSource.Successor_DependencyStart]=g.DependencyType.SS,D.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyStart][p.TaskAreaEventSource.Successor_DependencyFinish]=g.DependencyType.SF,D.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyFinish][p.TaskAreaEventSource.Successor_DependencyStart]=g.DependencyType.FS,D.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyFinish][p.TaskAreaEventSource.Successor_DependencyFinish]=g.DependencyType.FF;var m=function(v){function b(){return null!==v&&v.apply(this,arguments)||this}return E.__extends(b,v),b.prototype.onMouseUp=function(x){this.onDependencyEndByMouse(x)},b.prototype.onMouseDownInternal=function(x){this.onDependencyStart(x)},b.prototype.onMouseMoveInternal=function(x){this.onDependencyMoveStep(x)},b.prototype.onTouchStartInternal=function(x){this.onDependencyStart(x)},b.prototype.onTouchEndInternal=function(x){this.onDependencyEndByTouch(x)},b.prototype.onTouchMoveInternal=function(x){this.onDependencyMoveStep(x)},b.prototype.onDocumentPointerDownInternal=function(x){this.onDependencyStart(x)},b.prototype.onDocumentPointerUpInternal=function(x){this.onDependencyEndByTouch(x)},b.prototype.onDocumentPointerMoveInternal=function(x){this.onDependencyMoveStep(x)},b.prototype.onDependencyStart=function(x){var O=y.EvtUtils.getEventSource(x);this.source=d.TaskAreaDomHelper.getEventSource(O);var k=this.getRelativePos(new I.Point(C.DomUtils.getAbsolutePositionX(O)+O.clientWidth/2,C.DomUtils.getAbsolutePositionY(O)+O.clientHeight/2));this.raiseEvent(h.TaskAreaStateEventNames.DEPENDENCY_START,x,null,{pos:k})},b.prototype.onDependencyMoveStep=function(x){x.preventDefault();var O=this.getRelativePos(new I.Point(y.EvtUtils.getEventX(x),y.EvtUtils.getEventY(x)));this.raiseEvent(h.TaskAreaStateEventNames.DEPENDENCY_PROCESS,x,this.getClickedRowIndex(x),{pos:O})},b.prototype.onDependencyEndByMouse=function(x){var O=d.TaskAreaDomHelper.getEventSource(y.EvtUtils.getEventSource(x));this.processEndDependency(x,O===p.TaskAreaEventSource.Successor_DependencyStart||O===p.TaskAreaEventSource.Successor_DependencyFinish?D.dependencyMap[this.source][O]:null)},b.prototype.onDependencyEndByTouch=function(x){var O=this.raiseEvent(h.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS,x),k=this.getRelativePos(O.successorStart),M=this.getRelativePos(O.successorFinish),A=this.getRelativePos(new I.Point(y.EvtUtils.getEventX(x),y.EvtUtils.getEventY(x))),F=this.isTouchNearby(A,k)?p.TaskAreaEventSource.Successor_DependencyStart:this.isTouchNearby(A,M)?p.TaskAreaEventSource.Successor_DependencyFinish:null;this.processEndDependency(x,F===p.TaskAreaEventSource.Successor_DependencyStart||F===p.TaskAreaEventSource.Successor_DependencyFinish?D.dependencyMap[this.source][F]:null)},b.prototype.onTaskAreaLeaveInternal=function(x){this.processEndDependency(x,null)},b.prototype.processEndDependency=function(x,O){this.raiseEvent(h.TaskAreaStateEventNames.DEPENDENCY_END,x,null,{type:O}),this.raiseEvent(h.TaskAreaStateEventNames.STATE_EXIT,x)},b.prototype.isTouchNearby=function(x,O){return Math.abs(O.x-x.x)<=20&&Math.abs(O.y-x.y)<=20},b}(c.TaskAreaStateBase);D.TaskAreaDependencyState=m},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaScrollState=void 0;var E=w(0),I=w(30),C=w(13),y=function(g){function p(){var d=null!==g&&g.apply(this,arguments)||this;return d._isStarted=!1,d}return E.__extends(p,g),p.prototype.finish=function(){this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_END_MOVE,null)},p.prototype.onMouseUp=function(d){this.onEnd(d)},p.prototype.onMouseDownInternal=function(d){this.onBeforeStart(d)},p.prototype.onMouseMoveInternal=function(d){this.onMove(d)},p.prototype.onDocumentPointerUpInternal=function(d){this.onEnd(d)},p.prototype.onDocumentPointerMoveInternal=function(d){this.onMoveByPointer(d)},p.prototype.onTouchEndInternal=function(d){this.onEnd(d)},p.prototype.onTouchMoveInternal=function(d){this.onMoveByPointer(d)},p.prototype.onBeforeStart=function(d){d.preventDefault(),this.raiseDependencySelection(d,null),this.raiseEvent(C.TaskAreaStateEventNames.TASK_EDIT_END,d),this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_START_MOVE,d),this._isStarted=!0},p.prototype.onMoveByPointer=function(d){this._isStarted?this.onMove(d):this.onBeforeStart(d)},p.prototype.onMove=function(d){d.preventDefault(),this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE,d)},p.prototype.onEnd=function(d){d.preventDefault(),this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_END_MOVE,d),this.raiseEvent(C.TaskAreaStateEventNames.STATE_EXIT,d),this._isStarted=!1},p}(I.TaskAreaStateBase);D.TaskAreaScrollState=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaZoomState=void 0;var E=w(0),I=w(5),C=w(9),y=w(176),g=w(30),p=w(13),d=function(c){function h(){var m=null!==c&&c.apply(this,arguments)||this;return m._isInZooming=!1,m}return E.__extends(h,c),h.prototype.onMouseWheel=function(m){m.ctrlKey&&(m.preventDefault(),m.stopPropagation(),this._isInZooming||this.processZoom(m,C.EvtUtils.getWheelDelta(m)>0,50))},h.prototype.onDocumentPointerUpInternal=function(m){this.onEndZoom(m)},h.prototype.onDocumentPointerMoveInternal=function(m){this.onTouchZoom(m)},h.prototype.onTouchEndInternal=function(m){this.onEndZoom(m)},h.prototype.onTouchMoveInternal=function(m){this.onTouchZoom(m)},h.prototype.onTouchZoom=function(m){var v;if(m.stopPropagation(),m.preventDefault(),!this._isInZooming){var b=this.getTouchDistance(m);null!==(v=this.prevDistance)&&void 0!==v||(this.prevDistance=b);var x=this.prevDistance-b;Math.abs(x)>3&&(this.processZoom(m,x>0,1e3),this.prevDistance=b)}},h.prototype.processZoom=function(m,v,b){var x=this;this._isInZooming=!0,setTimeout(function(){x._isInZooming=!1},b),this.raiseEvent(v?p.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN:p.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT,m,null,{leftPos:this.getLeftPosition(m)})},h.prototype.onEndZoom=function(m){this.prevDistance=null,this.raiseEvent(p.TaskAreaStateEventNames.STATE_EXIT,m)},h.prototype.getTouchDistance=function(m){var v=this.GetTouchPoints(m);return this.getDistance(v[0],v[1])},h.prototype.GetTouchPoints=function(m){var v,b,x,O;if(this.isTouchEvent(m)){var k=m.touches;return[new I.Point(k[0].pageX,k[0].pageY),new I.Point(k[1].pageX,k[1].pageY)]}var M=this.raiseEvent(p.TaskAreaStateEventNames.GET_POINTERS_INFO,m);return[new I.Point(null===(v=M[0])||void 0===v?void 0:v.pageX,null===(b=M[0])||void 0===b?void 0:b.pageY),new I.Point(null===(x=M[1])||void 0===x?void 0:x.pageX,null===(O=M[1])||void 0===O?void 0:O.pageY)]},h.prototype.getDistance=function(m,v){return y.Metrics.euclideanDistance(m,v)},h.prototype.getLeftPosition=function(m){var v=0;return this.isTouchEvent(m)||this.isPointerEvent(m)?v=this.getZoomMiddlePoint(m).x:this.isMouseEvent(m)&&(v=this.getMouseZoomLeftPos(m)),v},h.prototype.getMouseZoomLeftPos=function(m){var v=this.raiseEvent(p.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT);return C.EvtUtils.getEventX(m)-v.x},h.prototype.getZoomMiddlePoint=function(m){var v=this.raiseEvent(p.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT),b=this.GetTouchPoints(m),x=this.convertScreenToChartCoordinates(b[0],v),O=this.convertScreenToChartCoordinates(b[1],v);return new I.Point((x.x+O.x)/2,(x.y+O.y)/2)},h.prototype.convertScreenToChartCoordinates=function(m,v){return new I.Point(m.x-v.x,m.y-v.y)},h}(g.TaskAreaStateBase);D.TaskAreaZoomState=d},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Metrics=void 0;var E=function(){function I(){}return I.euclideanDistance=function(C,y){var g=C.x-y.x,p=C.y-y.y;return Math.sqrt(g*g+p*p)},I.manhattanDistance=function(C,y){return Math.abs(C.x-y.x)+Math.abs(C.y-y.y)},I}();D.Metrics=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskEditState=void 0;var E=w(0),I=w(9),C=w(4),y=w(29),g=w(13),p=function(d){function c(){return null!==d&&d.apply(this,arguments)||this}return E.__extends(c,d),c.prototype.onStartInternal=function(h){var m;null!==(m=this._source)&&void 0!==m||(this._source=y.TaskAreaDomHelper.getEventSource(I.EvtUtils.getEventSource(h)))},c.prototype.onEndInternal=function(h){this.raiseEvent(this.getEventOnEndKey(),h)},c.prototype.onDragInternal=function(h){var m=this.getRelativePos(h);this.raiseEvent(this.getEventOnDragKey(),null,null,{position:m})},c.prototype.getEventOnDragKey=function(){switch(this._source){case C.TaskAreaEventSource.TaskEdit_Start:return g.TaskAreaStateEventNames.TASK_PROCESS_START;case C.TaskAreaEventSource.TaskEdit_End:return g.TaskAreaStateEventNames.TASK_PROCESS_END;case C.TaskAreaEventSource.TaskEdit_Progress:return g.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS}},c.prototype.getEventOnEndKey=function(){switch(this._source){case C.TaskAreaEventSource.TaskEdit_Start:return g.TaskAreaStateEventNames.TASK_CONFIRM_START;case C.TaskAreaEventSource.TaskEdit_End:return g.TaskAreaStateEventNames.TASK_CONFIRM_END;case C.TaskAreaEventSource.TaskEdit_Progress:return g.TaskAreaStateEventNames.TASK_END_PROGRESS}},c}(w(67).TaskDragBaseState);D.TaskEditState=p},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskMoveState=void 0;var E=w(0),I=w(13),C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return E.__extends(g,y),g.prototype.onEndInternal=function(p){this.raiseEvent(I.TaskAreaStateEventNames.TASK_END_MOVE,p)},g.prototype.onDragInternal=function(p){this.raiseEvent(I.TaskAreaStateEventNames.TASK_PROCESS_MOVE,null,null,{delta:p.x-this.currentPosition.x})||this.raiseEvent(I.TaskAreaStateEventNames.STATE_EXIT)},g}(w(67).TaskDragBaseState);D.TaskMoveState=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaRender=void 0;var E=w(3),I=w(16),C=function(){function y(g){this._vertTaskAreaBorders=[],this._horTaskAreaBorders=[],this._isExternalTaskAreaContainer=!1,this._renderHelper=g}return Object.defineProperty(y.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._renderHelper.ganttTaskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},set:function(g){this._renderHelper.renderedRowIndices=g},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices},set:function(g){this._renderHelper.renderedColIndices=g},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"vertTaskAreaBorders",{get:function(){return this._vertTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"horTaskAreaBorders",{get:function(){return this._horTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"taskAreaContainer",{get:function(){return this._taskAreaContainer},enumerable:!1,configurable:!0}),y.prototype.getExternalTaskAreaContainer=function(g){return this._renderHelper.getExternalTaskAreaContainer(g)},y.prototype.prepareExternalTaskAreaContainer=function(g,p){return this._renderHelper.prepareExternalTaskAreaContainer(g,p)},y.prototype.isAllowTaskAreaBorders=function(g){return this._renderHelper.isAllowTaskAreaBorders(g)},y.prototype.getTaskAreaContainerElement=function(){return this._taskAreaContainer.getElement()},y.prototype.initTaskAreaContainer=function(g){this._renderHelper.createTaskArea(g),this._taskAreaContainer=this.getExternalTaskAreaContainer(g),this._isExternalTaskAreaContainer=!!this._taskAreaContainer,null==this.taskAreaContainer&&(this._taskAreaContainer=this._renderHelper.getTaskAreaContainer(g))},y.prototype.createTaskElement=function(g){this._renderHelper.createTaskElement(g)},y.prototype.removeTaskElement=function(g){this._renderHelper.removeTaskElement(g)},y.prototype.reset=function(){this._horTaskAreaBorders=[],this._vertTaskAreaBorders=[]},y.prototype.prepareTaskAreaContainer=function(){var g=this.getTaskAreaContainerElement();this.areHorizontalBordersEnabled?E.DomUtils.addClassName(g,"dx-gantt-tac-hb"):E.DomUtils.removeClassName(g,"dx-gantt-tac-hb");var p=parseInt(getComputedStyle(g).getPropertyValue("margin-top"))||0,d="calc(100% - ".concat(this.etalonSizeValues.scaleItemHeight*this.scaleCount+p,"px)");this._isExternalTaskAreaContainer?this.prepareExternalTaskAreaContainer(g,{height:d}):g.style.height=d},y.prototype.createTaskAreaContainer=function(){var g=document.createElement("DIV");g.className="dx-gantt-tac",this.mainElement.appendChild(g),this.initTaskAreaContainer(g),this.prepareTaskAreaContainer()},y.prototype.createTaskAreaBorder=function(g,p){var d=this.gridLayoutCalculator.getTaskAreaBorderInfo(g,p);I.RenderElementUtils.create(d,g,this.taskArea,this.getTaskAreaBordersDictionary(p))},y.prototype.createTaskArea=function(){var g=document.createElement("DIV");return g.id="dx-gantt-ta",g},y.prototype.removeTaskAreaBorder=function(g,p){I.RenderElementUtils.remove(null,g,this.taskArea,this.getTaskAreaBordersDictionary(p))},y.prototype.createTaskAreaBorderAndTaskElement=function(g,p){this.isAllowTaskAreaBorders(p)&&this.createTaskAreaBorder(g,!p),p&&this.createTaskElement(g)},y.prototype.removeTaskAreaBorderAndTaskElement=function(g,p){this.isAllowTaskAreaBorders(p)&&this.removeTaskAreaBorder(g,!p),p&&this.removeTaskElement(g)},y.prototype.recreateTaskAreaBordersAndTaskElements=function(g){var p=this,c=this.gridLayoutCalculator.getRenderedRowColumnIndices(g?this.taskAreaContainerScrollTop:this.taskAreaContainerScrollLeft,g);I.RenderElementUtils.recreate(g?this.renderedRowIndices:this.renderedColIndices,c,function(m){p.removeTaskAreaBorderAndTaskElement(m,g)},function(m){p.createTaskAreaBorderAndTaskElement(m,g)}),g?this.renderedRowIndices=c:this.renderedColIndices=c,this.gridLayoutCalculator.createTileToConnectorLinesMap()},y.prototype.getTaskAreaBordersDictionary=function(g){return g?this.vertTaskAreaBorders:this.horTaskAreaBorders},y.prototype.setSizeForTaskArea=function(g,p){this.taskArea.style.width=g+"px",this.taskArea.style.height=p+"px"},y.prototype.createHighlightRowElement=function(g){var p=this.gridLayoutCalculator.getHighlightRowInfo(g);I.RenderElementUtils.create(p,g,this.taskArea,this.hlRowElements)},y}();D.TaskAreaRender=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskRender=void 0;var E=w(3),I=w(4),C=w(181),y=w(16),g=function(){function p(d){this._selectionElements=[],this._taskElements=[],this._renderHelper=d,this.customTaskRender=new C.CustomTaskRender(d,this)}return Object.defineProperty(p.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"taskElements",{get:function(){return this._taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"selectionElements",{get:function(){return this._selectionElements},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isExternalTaskAreaContainer",{get:function(){return this._renderHelper.isExternalTaskAreaContainer},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"resourcesElements",{get:function(){return this._renderHelper.resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"showResources",{get:function(){return this._renderHelper.showResources},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"taskTextHeightKey",{get:function(){return this._renderHelper.taskTextHeightKey},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"viewModelItems",{get:function(){return this._renderHelper.viewModelItems},enumerable:!1,configurable:!0}),p.prototype.isHighlightRowElementAllowed=function(d){return this._renderHelper.isHighlightRowElementAllowed(d)},p.prototype.getTaskVisibility=function(d){return this._renderHelper.getTaskVisibility(d)},p.prototype.getTaskText=function(d){return this._renderHelper.getTaskText(d)},Object.defineProperty(p.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"fakeTaskWrapper",{get:function(){var d;return null!==(d=this._fakeTaskWrapper)&&void 0!==d||(this._fakeTaskWrapper=this.createFakeTaskWrapper()),this._fakeTaskWrapper},enumerable:!1,configurable:!0}),p.prototype.getViewItem=function(d){return this._renderHelper.getViewItem(d)},p.prototype.getTask=function(d){return this._renderHelper.getTask(d)},p.prototype.createHighlightRowElement=function(d){this._renderHelper.createHighlightRowElement(d)},p.prototype.getTaskDependencies=function(d){return this._renderHelper.getTaskDependencies(d)},p.prototype.addInvalidTaskDependencies=function(d){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.concat(d)},p.prototype.removeInvalidTaskDependencies=function(d){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.filter(function(c){return c.predecessorId!=d||c.successorId!=d})},p.prototype.createResources=function(d){this.showResources&&this._renderHelper.createResources(d)},p.prototype.attachEventsOnTask=function(d){this._renderHelper.attachEventsOnTask(d)},p.prototype.detachEventsOnTask=function(d){this._renderHelper.detachEventsOnTask(d)},p.prototype.recreateConnectorLineElement=function(d,c){void 0===c&&(c=!1),this._renderHelper.recreateConnectorLineElement(d,c)},p.prototype.renderTaskElement=function(d){this._renderHelper.createTaskElement(d)},p.prototype.reset=function(){var d=this;this._taskElements.forEach(function(c,h){return d.removeTaskElement(h)}),this._selectionElements=[],this._taskElements=[]},p.prototype.createTaskWrapperElement=function(d){var c=this.gridLayoutCalculator.getTaskWrapperElementInfo(d);y.RenderElementUtils.create(c,d,this.taskArea,this.taskElements),this.taskElements[d].style.display=this.getTaskVisibility(d)?"":"none"},p.prototype.createTaskElement=function(d,c){var h=this.getViewItem(d);if(c&&this.customTaskRender.createCustomTaskElement(d,c),h.task.isValid()&&h.visible)h.isCustom||this.createDefaultTaskElement(d);else{var m=this.getTaskDependencies(h.task.internalId);this.addInvalidTaskDependencies(m)}},p.prototype.createTaskVisualElement=function(d){var c=this.gridLayoutCalculator.getTaskElementInfo(d,this.taskTitlePosition!==I.TaskTitlePosition.Inside),h=y.RenderElementUtils.create(c,d,this.taskElements[d]);return this.attachEventsOnTask(d),h},p.prototype.createDefaultTaskElement=function(d){var c=this.getViewItem(d);this.isHighlightRowElementAllowed(d)&&this.createHighlightRowElement(d),c.selected&&this.createTaskSelectionElement(d),this.createTaskWrapperElement(d),this.taskTitlePosition===I.TaskTitlePosition.Outside&&this.createTaskTextElement(d,this.taskElements[d]);var h=this.createTaskVisualElement(d);c.task.isMilestone()||(this.taskTitlePosition===I.TaskTitlePosition.Inside&&this.createTaskTextElement(d,h),this.createTaskProgressElement(d,h)),this.createResources(d)},p.prototype.removeTaskElement=function(d){var c=this.getTask(d);if(c&&this.removeInvalidTaskDependencies(c.id),this.detachEventsOnTask(d),this._renderHelper.hasTaskTemplate()){var h=this.taskElements[d],m=h?.firstElementChild;m&&(this._renderHelper.destroyTemplate(m),h.removeChild(m))}y.RenderElementUtils.remove(null,d,this.taskArea,this.taskElements),y.RenderElementUtils.remove(null,d,this.taskArea,this.resourcesElements),y.RenderElementUtils.remove(null,d,this.taskArea,this.selectionElements),this.isHighlightRowElementAllowed(d)&&y.RenderElementUtils.remove(null,d,this.taskArea,this.hlRowElements),this.gridLayoutCalculator.resetTaskInfo(d)},p.prototype.recreateTaskElement=function(d){var c=this,h=this.renderedRowIndices.filter(function(b){return b===d}).length>0,m=this.getTask(d);if(m){h&&(this.removeTaskElement(d),this.renderTaskElement(d));var v=this.getTaskDependencies(m.internalId);v.length&&v.forEach(function(b){return c.recreateConnectorLineElement(b.internalId,!0)})}},p.prototype.createFakeTaskWrapper=function(){var d,c,h=null!==(c=null===(d=this.viewModelItems.filter(function(x){return x.task&&!x.task.isMilestone})[0])||void 0===d?void 0:d.visibleIndex)&&void 0!==c?c:0,m=this.gridLayoutCalculator,v=y.RenderElementUtils.create(m.getTaskWrapperElementInfo(h),null,this.taskArea),b=y.RenderElementUtils.create(m.getTaskElementInfo(h),null,v);return this.createTaskTextElement(h,b),this.createTaskProgressElement(h,b),v.style.display="none",v},p.prototype.createTaskProgressElement=function(d,c){var h=this.gridLayoutCalculator.getTaskProgressElementInfo(d);y.RenderElementUtils.create(h,d,c)},p.prototype.getTextWidth=function(d){return this._renderHelper.getTextWidth(d)},Object.defineProperty(p.prototype,"minTextWidth",{get:function(){var d;return null!==(d=this._minTextWidth)&&void 0!==d||(this._minTextWidth=5*this.getTextWidth("a")),this._minTextWidth},enumerable:!1,configurable:!0}),p.prototype.createTaskTextElement=function(d,c){var h,m,v=this.gridLayoutCalculator.getTaskTextElementInfo(d,this.taskTitlePosition===I.TaskTitlePosition.Inside);if(!v.additionalInfo.hidden){var b=y.RenderElementUtils.create(v,d,c),x=this.getTaskText(d);if(this.taskTitlePosition===I.TaskTitlePosition.Outside&&v.size.width>0){var O=getComputedStyle(b),k=v.size.width-E.DomUtils.pxToInt(O.paddingLeft);if(k>=this.minTextWidth){var M=E.DomUtils.pxToInt(O.paddingRight),A=x?this.getTextWidth(x):0;M&&A>k-M&&(M=Math.min(p.minTitleOutRightPadding,k-this.minTextWidth),b.style.paddingRight=M+"px"),A>k-M&&(b.style.overflowX="hidden",b.style.textOverflow="ellipsis")}else b.style.display="none"}x||(null!==(h=this[m=this.taskTextHeightKey])&&void 0!==h||(this[m]=this.getTaskTextHeight(b)),b.style.height=this[this.taskTextHeightKey]),b.innerText=x}},p.prototype.createTaskSelectionElement=function(d){var c=this.gridLayoutCalculator.getSelectionElementInfo(d);this.isExternalTaskAreaContainer&&!this.areHorizontalBordersEnabled&&c.size.height++,y.RenderElementUtils.create(c,d,this.taskArea,this.selectionElements)},p.prototype.getTaskTextHeight=function(d){d.innerText="WWW";var c=getComputedStyle(d).height;return d.innerText="",c},p.prototype.getSmallTaskWidth=function(d){var c=0;if(null!=d&&""!==d){var h=d.indexOf("rem");if(h>-1)try{c=parseFloat(d.substr(0,h))*parseFloat(getComputedStyle(document.documentElement).fontSize)}catch{}else c=E.DomUtils.pxToInt(d)}return 2*c},p.minTitleOutRightPadding=5,p}();D.TaskRender=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CustomTaskRender=void 0;var E=w(4),I=w(16),C=function(){function y(g,p){this._pendingTemplateFuncsToRender=[],this._renderHelper=g,this._taskRender=p}return Object.defineProperty(y.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),y.prototype.getViewItem=function(g){return this._renderHelper.getViewItem(g)},y.prototype.getTask=function(g){return this._renderHelper.getTask(g)},y.prototype.destroyTemplate=function(g){this._renderHelper.destroyTemplate(g)},y.prototype.getTaskDependencies=function(g){return this._renderHelper.getTaskDependencies(g)},y.prototype.getTaskResources=function(g){return this._renderHelper.getTaskResources(g)},y.prototype.attachEventsOnTask=function(g){this._renderHelper.attachEventsOnTask(g)},y.prototype.recreateConnectorLineElement=function(g,p){void 0===p&&(p=!1),this._renderHelper.recreateConnectorLineElement(g,p)},y.prototype.createTaskSelectionElement=function(g){this._taskRender.createTaskSelectionElement(g)},y.prototype.createCustomTaskElement=function(g,p){if(this._saveTemplateFuncToStack(g,p),!this._hasRepeatedTemplateRenderCall(g)){var d=this.getViewItem(g);d.isCustom=!1;var c=document.createElement("DIV"),h=this.createCustomTaskInformation(g);d.isCustom=!0,p(c,h,this.onTaskTemplateContainerRendered.bind(this),g)}},y.prototype.onTaskTemplateContainerRendered=function(g,p){var d=this;if(this._hasRepeatedTemplateRenderCall(p)){g&&this._renderHelper.destroyTemplate(g);var c=this._getLastPendingTemplateFunc(p);setTimeout(function(){return d.createCustomTaskElement(p,c)})}else this.drawCustomTask(g,p);this._clearTemplateFuncsStack(p)},y.prototype._saveTemplateFuncToStack=function(g,p){var d,c;null!==(d=(c=this._pendingTemplateFuncsToRender)[g])&&void 0!==d||(c[g]=[]),this._pendingTemplateFuncsToRender[g].push(p)},y.prototype._clearTemplateFuncsStack=function(g){this._pendingTemplateFuncsToRender[g]=[]},y.prototype._hasRepeatedTemplateRenderCall=function(g){return this._pendingTemplateFuncsToRender[g].length>1},y.prototype._getLastPendingTemplateFunc=function(g){var p=this._pendingTemplateFuncsToRender[g];return p[p.length-1]},y.prototype.createCustomTaskWrapperElement=function(g,p){I.RenderElementUtils.create(p,g,this.taskArea,this.taskElements)},y.prototype.createCustomTaskVisualElement=function(g,p){return I.RenderElementUtils.create(p,g,this.taskElements[g])},y.prototype.drawCustomTask=function(g,p){var d=this;if(this.taskElements[p]){var c=this.getViewItem(p);if(c.visible=!!g.innerHTML,this.taskElements[p].innerHTML=g.innerHTML,c.size.height=this.taskElements[p].offsetHeight,c.size.width=this.taskElements[p].offsetWidth,this.destroyTemplate(this.taskElements[p]),this._taskRender.removeTaskElement(p),c.visible){var h=this.gridLayoutCalculator.getTaskWrapperElementInfo(p);this.createCustomTaskWrapperElement(p,h),this.taskElements[p].appendChild(g),this.attachEventsOnTask(p)}else{var m=this.getTaskDependencies(c.task.internalId);m.length&&(this._taskRender.addInvalidTaskDependencies(m),m.forEach(function(v){return d.recreateConnectorLineElement(v.internalId,!0)}))}this._taskRender.isHighlightRowElementAllowed(p)&&this._taskRender.createHighlightRowElement(p),c.selected&&this.createTaskSelectionElement(p)}},y.prototype.createCustomTaskInformation=function(g){var p=this.getTask(g),d=this.getViewItem(g),c=this.gridLayoutCalculator.getTaskWrapperElementInfo(g),h=this.gridLayoutCalculator.getTaskElementInfo(g,this.taskTitlePosition!==E.TaskTitlePosition.Inside);this.createCustomTaskWrapperElement(g,c);var m=this.createCustomTaskVisualElement(g,h);this._taskRender.createTaskTextElement(g,m);var v=this.getTaskResources(p.id);return{cellSize:this.tickSize,isMilestone:p.isMilestone(),isParent:!!d?.children.length,taskData:p,taskHTML:m,taskPosition:c.position,taskResources:v,taskSize:h.size}},y}();D.CustomTaskRender=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.MainElementsRender=void 0;var E=function(){function I(){}return I.prototype.createMainElement=function(C){var y=document.createElement("DIV");return y.style.width=C.offsetWidth+"px",y.style.height=C.offsetHeight+"px",y},I.prototype.createHeader=function(){var C=document.createElement("DIV");return C.className="dx-gantt-header",C},I}();D.MainElementsRender=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaContainer=void 0;var E=function(){function I(C,y){this.element=C,this.onScrollHandler=function(){y.updateView()},this.element.addEventListener("scroll",this.onScrollHandler)}return Object.defineProperty(I.prototype,"scrollTop",{get:function(){return this.element.scrollTop},set:function(C){this.element.scrollTop=C},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"scrollLeft",{get:function(){return this.element.scrollLeft},set:function(C){this.element.scrollLeft=C},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"scrollWidth",{get:function(){return this.element.scrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"scrollHeight",{get:function(){return this.element.scrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"isExternal",{get:function(){return!1},enumerable:!1,configurable:!0}),I.prototype.getWidth=function(){return this.element.offsetWidth},I.prototype.getHeight=function(){return this.element.offsetHeight},I.prototype.getElement=function(){return this.element},I.prototype.detachEvents=function(){this.element.removeEventListener("scroll",this.onScrollHandler)},I}();D.TaskAreaContainer=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ElementTextHelper=void 0;var E=w(3),I=w(4),C=w(15),y=function(){function g(p){this.longestAbbrMonthName=null,this.longestMonthName=null,this.longestAbbrDayName=null;var d=document.createElement("canvas");this.textMeasureContext=d.getContext("2d"),this.cultureInfo=p}return g.prototype.setFont=function(p){var d=E.DomUtils.getCurrentStyle(p);this.textMeasureContext.font=d.font?d.font:d.fontStyle+" "+d.fontVariant+" "+d.fontWeight+" "+d.fontSize+" / "+d.lineHeight+" "+d.fontFamily},g.prototype.setSettings=function(p,d,c){this.startTime=p,this.viewType=d,this.modelItems=c},g.prototype.getScaleItemText=function(p,d){var c=this.viewType.valueOf()===d.valueOf();switch(d){case I.ViewType.TenMinutes:return this.getTenMinutesScaleItemText(p);case I.ViewType.Hours:case I.ViewType.SixHours:return this.getHoursScaleItemText(p);case I.ViewType.Days:return this.getDaysScaleItemText(p,c);case I.ViewType.Weeks:return this.getWeeksScaleItemText(p,c);case I.ViewType.Months:return this.getMonthsScaleItemText(p,c);case I.ViewType.Quarter:return this.getQuarterScaleItemText(p,c);case I.ViewType.Years:return this.getYearsScaleItemText(p);case I.ViewType.FiveYears:return this.getFiveYearsScaleItemText(p)}},g.prototype.getTenMinutesScaleItemText=function(p){var d=p.getMinutes()+1;return(10*Math.ceil(d/10)).toString()},g.prototype.getThirtyMinutesScaleItemText=function(p){return p.getMinutes()<30?"30":"60"},g.prototype.getHoursScaleItemText=function(p){var d=p.getHours(),c=this.getHourDisplayText(d),h=d<12?this.getAmText():this.getPmText();return this.getHoursScaleItemTextCore(c,h)},g.prototype.getDaysScaleItemText=function(p,d){return this.getDayTotalText(p,!0,d,d,!d)},g.prototype.getWeeksScaleItemText=function(p,d){var c=C.DateUtils.getDSTCorrectedTaskEnd(p,C.DateUtils.msPerWeek-C.DateUtils.msPerDay);return this.getWeeksScaleItemTextCore(this.getDayTotalText(p,d,!0,d,!d),this.getDayTotalText(c,d,!0,d,!d))},g.prototype.getMonthsScaleItemText=function(p,d){var c=this.getMonthNames(),h=d?"":p.getFullYear().toString();return this.getMonthsScaleItemTextCore(c[p.getMonth()],h)},g.prototype.getQuarterScaleItemText=function(p,d){var c=this.getQuarterNames(),h=d?"":p.getFullYear().toString();return this.getMonthsScaleItemTextCore(c[Math.floor(p.getMonth()/3)],h)},g.prototype.getYearsScaleItemText=function(p){return p.getFullYear().toString()},g.prototype.getFiveYearsScaleItemText=function(p){return p.getFullYear().toString()+" - "+(p.getFullYear()+4).toString()},g.prototype.getHourDisplayText=function(p){return this.hasAmPm()?(0==p?12:p<=12?p:p-12).toString():p<10?"0"+p:p.toString()},g.prototype.getDayTotalText=function(p,d,c,h,m){var v=h?this.getAbbrMonthNames():this.getMonthNames(),b=c?this.getAbbrDayNames():this.getDayNames(),x=d?b[p.getDay()]:"",O=p.getDate(),k=v[p.getMonth()],M=m?p.getFullYear().toString():"";return this.getDayTotalTextCore(x,O.toString(),k,M)},g.prototype.getTaskText=function(p){var d=this.modelItems[p];return d?d.task.title:""},g.prototype.getTaskVisibility=function(p){var d=this.modelItems[p];return!!d&&d.getVisible()},g.prototype.hasAmPm=function(){return this.getAmText().length>0||this.getPmText().length>0},g.prototype.getScaleItemTextTemplate=function(p){switch(p){case I.ViewType.TenMinutes:return"00";case I.ViewType.Hours:case I.ViewType.SixHours:return this.getHoursScaleItemTextCore("00",this.getAmText());case I.ViewType.Days:return this.getDayTextTemplate();case I.ViewType.Weeks:return this.getWeekTextTemplate();case I.ViewType.Months:return this.getMonthsScaleItemTextCore(this.getLongestMonthName(),"");case I.ViewType.Quarter:return"Q4";case I.ViewType.Years:return"0000"}},g.prototype.getDayTextTemplate=function(){return this.getDayTotalTextCore(this.getLongestAbbrDayName(),"00",this.getLongestAbbrMonthName(),"")},g.prototype.getWeekTextTemplate=function(){var p=this.getDayTextTemplate();return this.getWeeksScaleItemTextCore(p,p)},g.prototype.getHoursScaleItemTextCore=function(p,d){return p+":00"+(this.hasAmPm()?" "+d:"")},g.prototype.getDayTotalTextCore=function(p,d,c,h){var m=p.length>0?p+", ":"";return(m+=d+" "+c)+(h.length>0?" "+h:"")},g.prototype.getWeeksScaleItemTextCore=function(p,d){return p+" - "+d},g.prototype.getMonthsScaleItemTextCore=function(p,d){var c=p;return d.length>0&&(c+=" "+d),c},g.prototype.getLongestAbbrMonthName=function(){return null==this.longestAbbrMonthName&&(this.longestAbbrMonthName=this.getLongestText(this.getAbbrMonthNames())),this.longestAbbrMonthName},g.prototype.getLongestMonthName=function(){return null==this.longestMonthName&&(this.longestMonthName=this.getLongestText(this.getMonthNames())),this.longestMonthName},g.prototype.getLongestAbbrDayName=function(){return null==this.longestAbbrDayName&&(this.longestAbbrDayName=this.getLongestText(this.getAbbrDayNames())),this.longestAbbrDayName},g.prototype.getLongestText=function(p){var d=this,c="",h=0;return p.forEach(function(m){var v=d.getTextWidth(m);v>h&&(h=v,c=m)}),c},g.prototype.getTextWidth=function(p){return Math.round(this.textMeasureContext.measureText(p).width)},g.prototype.getAmText=function(){return this.cultureInfo.amText},g.prototype.getPmText=function(){return this.cultureInfo.pmText},g.prototype.getQuarterNames=function(){return this.cultureInfo.quarterNames},g.prototype.getMonthNames=function(){return this.cultureInfo.monthNames},g.prototype.getDayNames=function(){return this.cultureInfo.dayNames},g.prototype.getAbbrMonthNames=function(){return this.cultureInfo.abbrMonthNames},g.prototype.getAbbrDayNames=function(){return this.cultureInfo.abbrDayNames},g}();D.ElementTextHelper=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Settings=void 0;var E=w(1),I=w(8),C=w(4),y=w(186),g=w(68),p=w(187),d=w(188),c=function(){function h(){this.viewType=void 0,this.taskTitlePosition=C.TaskTitlePosition.Inside,this.showResources=!0,this.showDependencies=!0,this.areHorizontalBordersEnabled=!0,this.areVerticalBordersEnabled=!0,this.areAlternateRowsEnabled=!0,this.allowSelectTask=!0,this.firstDayOfWeek=0,this.editing=new y.EditingSettings,this.validation=new p.ValidationSettings,this.stripLines=new g.StripLineSettings,this.viewTypeRange=new d.ViewTypeRangeSettings}return h.parse=function(m){var v=new h;return m&&((0,E.isDefined)(m.viewType)&&(v.viewType=m.viewType),(0,E.isDefined)(m.taskTitlePosition)&&(v.taskTitlePosition=m.taskTitlePosition),(0,E.isDefined)(m.showResources)&&(v.showResources=m.showResources),(0,E.isDefined)(m.showDependencies)&&(v.showDependencies=m.showDependencies),(0,E.isDefined)(m.areHorizontalBordersEnabled)&&(v.areHorizontalBordersEnabled=m.areHorizontalBordersEnabled),(0,E.isDefined)(m.areVerticalBordersEnabled)&&(v.areHorizontalBordersEnabled=m.areHorizontalBordersEnabled),(0,E.isDefined)(m.areAlternateRowsEnabled)&&(v.areAlternateRowsEnabled=m.areAlternateRowsEnabled),(0,E.isDefined)(m.allowSelectTask)&&(v.allowSelectTask=m.allowSelectTask),(0,E.isDefined)(m.firstDayOfWeek)&&(v.firstDayOfWeek=m.firstDayOfWeek),(0,E.isDefined)(m.startDateRange)&&(v.startDateRange=new Date(m.startDateRange)),(0,E.isDefined)(m.endDateRange)&&(v.endDateRange=new Date(m.endDateRange)),(0,E.isDefined)(m.editing)&&(v.editing=y.EditingSettings.parse(m.editing)),(0,E.isDefined)(m.validation)&&(v.validation=p.ValidationSettings.parse(m.validation)),(0,E.isDefined)(m.stripLines)&&(v.stripLines=g.StripLineSettings.parse(m.stripLines)),(0,E.isDefined)(m.viewTypeRange)&&(v.viewTypeRange=d.ViewTypeRangeSettings.parse(m.viewTypeRange)),(0,E.isDefined)(m.taskTooltipContentTemplate)&&(v.taskTooltipContentTemplate=m.taskTooltipContentTemplate),(0,E.isDefined)(m.taskProgressTooltipContentTemplate)&&(v.taskProgressTooltipContentTemplate=m.taskProgressTooltipContentTemplate),(0,E.isDefined)(m.taskTimeTooltipContentTemplate)&&(v.taskTimeTooltipContentTemplate=m.taskTimeTooltipContentTemplate),(0,E.isDefined)(m.taskContentTemplate)&&(v.taskContentTemplate=m.taskContentTemplate),(0,E.isDefined)(m.cultureInfo)&&(v.cultureInfo=m.cultureInfo)),v},h.prototype.equal=function(m){var v=!0;return(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=v&&this.viewType===m.viewType)&&this.taskTitlePosition===m.taskTitlePosition)&&this.showResources===m.showResources)&&this.showDependencies===m.showDependencies)&&this.areHorizontalBordersEnabled===m.areHorizontalBordersEnabled)&&this.areAlternateRowsEnabled===m.areAlternateRowsEnabled)&&this.allowSelectTask===m.allowSelectTask)&&this.editing.equal(m.editing))&&this.validation.equal(m.validation))&&this.stripLines.equal(m.stripLines))&&I.DateTimeUtils.areDatesEqual(this.startDateRange,m.startDateRange))&&I.DateTimeUtils.areDatesEqual(this.endDateRange,m.endDateRange)},h}();D.Settings=c},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.EditingSettings=void 0;var E=w(1),I=function(){function C(){this.enabled=!1,this.allowDependencyDelete=!0,this.allowDependencyInsert=!0,this.allowTaskDelete=!0,this.allowTaskInsert=!0,this.allowTaskUpdate=!0,this.allowResourceDelete=!0,this.allowResourceInsert=!0,this.allowResourceUpdate=!0,this.allowTaskResourceUpdate=!0,this.taskHoverDelay=0}return C.parse=function(y){var g=new C;return y&&((0,E.isDefined)(y.enabled)&&(g.enabled=y.enabled),(0,E.isDefined)(y.allowDependencyDelete)&&(g.allowDependencyDelete=y.allowDependencyDelete),(0,E.isDefined)(y.allowDependencyInsert)&&(g.allowDependencyInsert=y.allowDependencyInsert),(0,E.isDefined)(y.allowTaskDelete)&&(g.allowTaskDelete=y.allowTaskDelete),(0,E.isDefined)(y.allowTaskInsert)&&(g.allowTaskInsert=y.allowTaskInsert),(0,E.isDefined)(y.allowTaskUpdate)&&(g.allowTaskUpdate=y.allowTaskUpdate),(0,E.isDefined)(y.allowResourceDelete)&&(g.allowResourceDelete=y.allowResourceDelete),(0,E.isDefined)(y.allowResourceInsert)&&(g.allowResourceInsert=y.allowResourceInsert),(0,E.isDefined)(y.allowResourceUpdate)&&(g.allowResourceUpdate=y.allowResourceUpdate),(0,E.isDefined)(y.allowTaskResourceUpdate)&&(g.allowTaskResourceUpdate=y.allowTaskResourceUpdate),(0,E.isDefined)(y.taskHoverDelay)&&(g.taskHoverDelay=y.taskHoverDelay)),g},C.prototype.equal=function(y){var g=!0;return(g=(g=(g=(g=(g=(g=(g=(g=(g=g&&this.enabled===y.enabled)&&this.allowDependencyDelete===y.allowDependencyDelete)&&this.allowDependencyInsert===y.allowDependencyInsert)&&this.allowTaskDelete===y.allowTaskDelete)&&this.allowTaskInsert===y.allowTaskInsert)&&this.allowTaskUpdate===y.allowTaskUpdate)&&this.allowResourceDelete===y.allowResourceDelete)&&this.allowResourceInsert===y.allowResourceInsert)&&this.allowResourceUpdate===y.allowResourceUpdate)&&this.allowTaskResourceUpdate===y.allowTaskResourceUpdate},C}();D.EditingSettings=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ValidationSettings=void 0;var E=w(1),I=function(){function C(){this.validateDependencies=!1,this.autoUpdateParentTasks=!1,this.enablePredecessorGap=!1}return C.parse=function(y){var g=new C;return y&&((0,E.isDefined)(y.validateDependencies)&&(g.validateDependencies=y.validateDependencies),(0,E.isDefined)(y.autoUpdateParentTasks)&&(g.autoUpdateParentTasks=y.autoUpdateParentTasks),(0,E.isDefined)(y.enablePredecessorGap)&&(g.enablePredecessorGap=y.enablePredecessorGap)),g},C.prototype.equal=function(y){var g=!0;return(g=(g=g&&this.validateDependencies===y.validateDependencies)&&this.autoUpdateParentTasks===y.autoUpdateParentTasks)&&this.enablePredecessorGap===y.enablePredecessorGap},C}();D.ValidationSettings=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ViewTypeRangeSettings=void 0;var E=w(1),I=w(4),C=function(){function y(){this.min=I.ViewType.TenMinutes,this.max=I.ViewType.Years}return y.parse=function(g){var p=new y;return g&&((0,E.isDefined)(g.min)&&(p.min=g.min),(0,E.isDefined)(g.max)&&(p.max=g.max)),p},y.prototype.equal=function(g){var p=!0;return(p=p&&this.min===g.min)&&this.max===g.max},y}();D.ViewTypeRangeSettings=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskEditSettings=void 0;var E=w(0),I=w(1),C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return E.__extends(g,y),g.parse=function(p){var d=new g;return p&&((0,I.isDefined)(p.getCommandManager)&&(d.getCommandManager=p.getCommandManager),(0,I.isDefined)(p.getViewModel)&&(d.getViewModel=p.getViewModel),(0,I.isDefined)(p.getGanttSettings)&&(d.getGanttSettings=p.getGanttSettings),(0,I.isDefined)(p.getRenderHelper)&&(d.getRenderHelper=p.getRenderHelper),(0,I.isDefined)(p.destroyTemplate)&&(d.destroyTemplate=p.destroyTemplate),(0,I.isDefined)(p.formatDate)&&(d.formatDate=p.formatDate),(0,I.isDefined)(p.getModelManipulator)&&(d.getModelManipulator=p.getModelManipulator),(0,I.isDefined)(p.getValidationController)&&(d.getValidationController=p.getValidationController)),d},g}(w(65).TooltipSettings);D.TaskEditSettings=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ValidationController=void 0;var E=w(0),I=w(1),C=w(15),y=w(23),g=w(53),p=w(19),d=w(8),c=w(191),h=function(){function m(v){this.lockPredecessorToSuccessor=!0,this.settings=v}return Object.defineProperty(m.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"history",{get:function(){return this.settings.getHistory()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"modelManipulator",{get:function(){return this.settings.getModelManipulator()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"range",{get:function(){return this.settings.getRange()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"validationSettings",{get:function(){return this.settings.getValidationSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"_parentAutoCalc",{get:function(){return this.viewModel.parentAutoCalc},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"enablePredecessorGap",{get:function(){return this.viewModel.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"isValidateDependenciesRequired",{get:function(){return this.settings.getIsValidateDependenciesRequired()},enumerable:!1,configurable:!0}),m.prototype.updateOwnerInAutoParentMode=function(){this.settings.updateOwnerInAutoParentMode()},m.prototype.checkStartDependencies=function(v,b){var x=this,O=[],k=this.viewModel.tasks.getItemById(v);return this.viewModel.dependencies.items.filter(function(M){return M.successorId===v}).forEach(function(M){var A=x.viewModel.tasks.getItemById(M.predecessorId);(M.type===y.DependencyType.FS&&A.end>b||M.type===y.DependencyType.SS&&A.start>b)&&O.push(new c.ValidationError(M.internalId,!0)),(M.type===y.DependencyType.FS&&A.end.valueOf()===k.start.valueOf()&&b>A.end||M.type===y.DependencyType.SS&&A.start.valueOf()===k.start.valueOf()&&b>A.start)&&O.push(new c.ValidationError(M.internalId))}),O},m.prototype.checkEndDependencies=function(v,b){var x=this,O=[],k=this.viewModel.tasks.getItemById(v);return this.viewModel.dependencies.items.filter(function(M){return M.successorId===v}).forEach(function(M){var A=x.viewModel.tasks.getItemById(M.predecessorId);(M.type===y.DependencyType.SF&&A.start>b||M.type===y.DependencyType.FF&&A.end>b)&&O.push(new c.ValidationError(M.internalId,!0)),(M.type===y.DependencyType.SF&&A.start.valueOf()===k.end.valueOf()&&b>A.start||M.type===y.DependencyType.FF&&A.end.valueOf()===k.end.valueOf()&&b>A.end)&&O.push(new c.ValidationError(M.internalId))}),O},m.prototype.moveEndDependTasks=function(v,b,x){var O=this;void 0===x&&(x=!1);var k=this.viewModel.dependencies.items.filter(function(A){return A.predecessorId===v&&!A.isStartDependency}),M=this.viewModel.tasks.getItemById(v);k.forEach(function(A){var F=O.viewModel.tasks.getItemById(A.successorId);if(F&&(!x||M.parentId!==F.parentId)&&F.parentId!=M.id){var P=new p.DateRange(new Date(F.start.getTime()),new Date(F.end.getTime())),N=new p.DateRange(new Date(F.start.getTime()),new Date(F.end.getTime())),B=M.end.getTime()-b.getTime(),V=O.enablePredecessorGap?M.end:b;A.type===y.DependencyType.FS&&(F.start<V||O.lockPredecessorToSuccessor&&F.start.getTime()===b.getTime())?(N.start.setTime(M.end.getTime()),N.end.setTime(N.start.getTime()+(F.end.getTime()-F.start.getTime())),O.correctMoving(F.internalId,N)):A.type===y.DependencyType.FF&&(F.end<V||O.lockPredecessorToSuccessor&&F.end.getTime()===b.getTime())?(N.start.setTime(M.end.getTime()-(F.end.getTime()-F.start.getTime())),N.end.setTime(M.end.getTime()),O.correctMoving(F.internalId,N)):O.enablePredecessorGap||(N.start.setTime(F.start.getTime()+B),N.end.setTime(F.end.getTime()+B)),P.equal(N)||(O.history.addAndRedo(new g.UpdateTaskHistoryItem(O.modelManipulator,A.successorId,{start:N.start,end:N.end})),O.moveRelatedTasks(A,P,F,N))}})},m.prototype.moveStartDependTasks=function(v,b,x){var O=this;void 0===x&&(x=!1);var k=this.viewModel.dependencies.items.filter(function(A){return A.predecessorId===v&&A.isStartDependency}),M=this.viewModel.tasks.getItemById(v);k.forEach(function(A){var F=O.viewModel.tasks.getItemById(A.successorId);if(F&&(!x||M.parentId!==F.parentId)&&F.parentId!=M.id){var P=new p.DateRange(new Date(F.start.getTime()),new Date(F.end.getTime())),N=new p.DateRange(new Date(F.start.getTime()),new Date(F.end.getTime())),B=M.start.getTime()-b.getTime(),V=O.enablePredecessorGap?M.start:b;A.type===y.DependencyType.SF&&(F.end<V||O.lockPredecessorToSuccessor&&F.end.getTime()===b.getTime())?(N.start.setTime(M.start.getTime()-(F.end.getTime()-F.start.getTime())),N.end.setTime(M.start.getTime()),O.correctMoving(F.internalId,N)):A.type===y.DependencyType.SS&&(F.start<V||O.lockPredecessorToSuccessor&&F.start.getTime()===b.getTime())?(N.start.setTime(M.start.getTime()),N.end.setTime(M.start.getTime()+(F.end.getTime()-F.start.getTime())),O.correctMoving(F.internalId,N)):O.enablePredecessorGap||(N.start.setTime(F.start.getTime()+B),N.end.setTime(F.end.getTime()+B)),P.equal(N)||(O.history.addAndRedo(new g.UpdateTaskHistoryItem(O.modelManipulator,A.successorId,{start:N.start,end:N.end})),O.moveRelatedTasks(A,P,F,N))}})},m.prototype.moveRelatedTasks=function(v,b,x,O){var k=O.start.getTime()-b.start.getTime();this.correctParentsOnChildMoving(x.internalId,k),this.moveStartDependTasks(v.successorId,b.start),this.moveEndDependTasks(v.successorId,b.end)},m.prototype.getCorrectDateRange=function(v,b,x){var O=this,k=new p.DateRange(new Date(b),new Date(x));return E.__spreadArray(E.__spreadArray([],this.checkStartDependencies(v,k.start),!0),this.checkEndDependencies(v,k.end),!0).filter(function(M){return M.critical}).forEach(function(M){var A=O.viewModel.dependencies.getItemById(M.dependencyId),F=O.viewModel.tasks.getItemById(A.predecessorId);A.type===y.DependencyType.FS&&k.start<F.end&&k.start.setTime(F.end.getTime()),A.type===y.DependencyType.SS&&k.start<F.start&&k.start.setTime(F.start.getTime()),A.type===y.DependencyType.FF&&k.end<F.end&&k.end.setTime(F.end.getTime()),A.type===y.DependencyType.SF&&k.end<F.start&&k.end.setTime(F.start.getTime())}),k},m.prototype.correctMoving=function(v,b){var x=this,O=b.end.getTime()-b.start.getTime();return E.__spreadArray(E.__spreadArray([],this.checkStartDependencies(v,b.start),!0),this.checkEndDependencies(v,b.end),!0).filter(function(k){return k.critical}).forEach(function(k){var M=x.viewModel.dependencies.getItemById(k.dependencyId),A=x.viewModel.tasks.getItemById(M.predecessorId);M.type===y.DependencyType.FS&&b.start<A.end&&(b.start.setTime(A.end.getTime()),b.end.setTime(b.start.getTime()+O)),M.type===y.DependencyType.SS&&b.start<A.start&&(b.start.setTime(A.start.getTime()),b.end.setTime(b.start.getTime()+O)),M.type===y.DependencyType.FF&&b.end<A.end&&(b.end.setTime(A.end.getTime()),b.start.setTime(b.end.getTime()-O)),M.type===y.DependencyType.SF&&b.end<A.start&&(b.end.setTime(A.start.getTime()),b.start.setTime(b.end.getTime()-O))}),b},m.prototype.recalculateParents=function(v,b){for(var x=v&&v.parent;x&&x.task;){for(var O=x.children,k=this.range.end,M=this.range.start,A=0,F=0,P={id:x.task.internalId},N=0;N<O.length;N++){var B=O[N].task;if(B.isValid()){k=d.DateTimeUtils.getMinDate(k,B.start),M=d.DateTimeUtils.getMaxDate(M,B.end);var V=B.getDuration();A+=B.progress*V,F+=V}}d.DateTimeUtils.areDatesEqual(x.task.start,k)||(P.start=k),d.DateTimeUtils.areDatesEqual(x.task.end,M)||(P.end=M),P.oldStart=x.task.start,P.oldEnd=x.task.end,(A=F>0?Math.round(A/F):0)!==x.task.progress&&(P.progress=A),b(P),x=x.parent}},m.prototype.updateParentsRangeByChild=function(v){var b=this;this.recalculateParents(this.viewModel.findItem(v),function(x){if((0,I.isDefined)(x.id)){var O=b.history,k=b.modelManipulator;(0,I.isDefined)(x.start)&&(O.addAndRedo(new g.UpdateTaskHistoryItem(k,x.id,{start:x.start})),b.moveStartDependTasks(x.id,x.oldStart)),(0,I.isDefined)(x.end)&&(O.addAndRedo(new g.UpdateTaskHistoryItem(k,x.id,{end:x.end})),b.moveEndDependTasks(x.id,x.oldEnd)),(0,I.isDefined)(x.progress)&&O.addAndRedo(new g.UpdateTaskHistoryItem(k,x.id,{progress:x.progress}))}})},m.prototype.updateChildRangeByParent=function(v,b,x){var O=this.viewModel.findItem(v);if(O&&0!==O.children.length)for(var k=O.children,M=0;M<k.length;M++){var A=k[M].task,F=new Date(A.start.getTime()+b),P=C.DateUtils.getRangeMSPeriod(A.start,A.end),N=C.DateUtils.getDSTCorrectedTaskEnd(F,P);x.push({id:A.internalId,start:A.start,end:A.end}),this.history.addAndRedo(new g.UpdateTaskHistoryItem(this.modelManipulator,A.internalId,{start:F,end:N})),this.updateChildRangeByParent(A.internalId,b,x)}},m.prototype.updateParentsIfRequired=function(v){this._parentAutoCalc&&(this.updateParentsRangeByChild(v),this.updateOwnerInAutoParentMode())},m.prototype.correctParentsOnChildMoving=function(v,b){var x=this;if(this._parentAutoCalc&&0!==b){this.updateParentsRangeByChild(v);var O=[];this.updateChildRangeByParent(v,b,O),this.isValidateDependenciesRequired&&O.forEach(function(k){x.moveStartDependTasks(k.id,k.start,!0),x.moveEndDependTasks(k.id,k.end,!0)}),this.updateOwnerInAutoParentMode()}},m.prototype.canCreateDependency=function(v,b){return this.viewModel.canCreateDependency(v,b)},m}();D.ValidationController=h},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ValidationError=void 0,D.ValidationError=function(I,C){void 0===C&&(C=!1),this.dependencyId=I,this.critical=C}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ValidationControllerSettings=void 0;var E=w(1),I=function(){function C(){}return C.parse=function(y){var g=new C;return y&&((0,E.isDefined)(y.getViewModel)&&(g.getViewModel=y.getViewModel),(0,E.isDefined)(y.getHistory)&&(g.getHistory=y.getHistory),(0,E.isDefined)(y.getModelManipulator)&&(g.getModelManipulator=y.getModelManipulator),(0,E.isDefined)(y.getRange)&&(g.getRange=y.getRange),(0,E.isDefined)(y.getValidationSettings)&&(g.getValidationSettings=y.getValidationSettings),(0,E.isDefined)(y.updateOwnerInAutoParentMode)&&(g.updateOwnerInAutoParentMode=y.updateOwnerInAutoParentMode),(0,E.isDefined)(y.getIsValidateDependenciesRequired)&&(g.getIsValidateDependenciesRequired=y.getIsValidateDependenciesRequired)),g},C}();D.ValidationControllerSettings=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ViewVisualModel=void 0;var E=w(21),I=w(194),C=w(196),y=w(197),g=w(198),p=w(199),d=w(200),c=w(1),h=w(2),m=w(69),v=w(48),b=w(70),x=function(){function O(k,M,A,F,P,N,B){this._fLockCount=0,this.lockChangesProcessing=!1,this.owner=k,this.tasks=new I.TaskCollection,this.tasks.importFromObject(M),this.dependencies=new C.DependencyCollection,this.dependencies.importFromObject(A),this.resources=new E.ResourceCollection,this.resources.importFromObject(F),this.assignments=new y.ResourceAssignmentCollection,this.assignments.importFromObject(P),this._itemList=new Array,this._viewItemList=new Array,this._workTimeCalculator=new d.WorkingTimeCalculator(N,B),this.updateModel(!0)}return Object.defineProperty(O.prototype,"renderHelper",{get:function(){return this.owner.renderHelper},enumerable:!1,configurable:!0}),O.prototype.updateModel=function(k){this._itemList.splice(0,this._itemList.length);for(var M=this.tasks.items,A=0;A<M.length;A++){var F=M[A];F&&this._itemList.push(new g.ViewVisualModelItem(F,this.getAssignedResources(F)))}this.createHierarchy(k),this.populateItemsForView(),this.owner&&this.owner.currentSelectedTaskID&&this.changeTaskSelected(this.owner.currentSelectedTaskID,!0)},O.prototype.createHierarchy=function(k){var M=this;this.root=new g.ViewVisualModelItem(null,null);for(var A=this._itemList,F=A.reduce(function(H,W){var q,G=null===(q=W.task)||void 0===q?void 0:q.internalId;return(0,c.isDefined)(G)&&(H[G]=W),H},{}),P=this.requireFirstLoadParentAutoCalc&&k,N=0;N<A.length;N++){var B=A[N],V=F[B.task.parentId]||this.root;B.parent=V,V.addChild(B),P&&this.owner.validationController.recalculateParents(B,function(H){if((0,c.isDefined)(H.id)){var W=M.tasks.getItemById(H.id);(0,c.isDefined)(H.start)&&(W.start=H.start),(0,c.isDefined)(H.end)&&(W.end=H.end),(0,c.isDefined)(H.progress)&&(W.progress=H.progress)}})}P&&this.owner.dispatcher.notifyParentDataRecalculated(this.getCurrentTaskData())},O.prototype.getCurrentTaskData=function(){var k=this;return this.tasks.items.map(function(M){return k.getTaskObjectForDataSource(M)})},O.prototype.getTaskObjectForDataSource=function(k){var M=k.parentId&&this.tasks.getItemById(k.parentId),A=this.getRootTaskId();return{id:k.id,start:k.start,end:k.end,duration:k.duration,description:k.description,parentId:A&&k.parentId===A?k.parentId:M?.id,progress:k.progress,color:k.color,taskType:k.taskType,title:k.title,customFields:k.customFields,expanded:k.expanded}},O.prototype.getDependencyObjectForDataSource=function(k){var M=k instanceof m.Dependency?k:this.getItemByPublicId("dependency",k);if(M){var A=this.convertInternalToPublicKey("task",M.predecessorId),F=this.convertInternalToPublicKey("task",M.successorId);return{id:M.id,predecessorId:(0,c.isDefined)(A)?A:M.predecessorId,successorId:(0,c.isDefined)(F)?F:M.successorId,type:M.type}}return null},O.prototype.getResourceObjectForDataSource=function(k){var M=k instanceof v.Resource?k:this.getItemByPublicId("resource",k);return M?{id:M.id,text:M.text,color:M.color}:null},O.prototype.getResourceAssignmentObjectForDataSource=function(k){var M=k instanceof b.ResourceAssignment?k:this.getItemByPublicId("assignment",k);if(M){var A=this.convertInternalToPublicKey("task",M.taskId),F=this.convertInternalToPublicKey("resource",M.resourceId);return{id:M.id,taskId:(0,c.isDefined)(A)?A:M.taskId,resourceId:(0,c.isDefined)(F)?F:M.resourceId}}return null},O.prototype.populateItemsForView=function(){this._viewItemList.splice(0,this._viewItemList.length),this.populateVisibleItems(this.root),this.updateVisibleItemDependencies()},O.prototype.populateVisibleItems=function(k){var M=this,A=k===this.root;k&&(k.task||A)&&(A||(this._viewItemList.push(k),k.visibleIndex=this._viewItemList.length-1),(k.getExpanded()||k===this.root)&&k.children.forEach(function(F){return M.populateVisibleItems(F)}))},O.prototype.updateVisibleItemDependencies=function(){for(var k=this._viewItemList,M=0;M<k.length;M++){var A=k[M],F=this.getTasVisibleDependencies(A.task);A.setDependencies(F)}},O.prototype.getAssignedResources=function(k){var M=this,A=new E.ResourceCollection;return this.assignments.items.filter(function(F){return F.taskId==k.internalId}).forEach(function(F){A.add(M.resources.getItemById(F.resourceId))}),A},O.prototype.getTasVisibleDependencies=function(k){for(var M=new Array,A=k.internalId,F=this.dependencies.items.filter(function(V){return V.successorId==A}),P=0;P<F.length;P++){var N=F[P],B=this.findItem(N.predecessorId);B&&B.getVisible()&&M.push(new p.ViewVisualModelDependencyInfo(N.internalId,B,N.type))}return M},O.prototype.changeTaskExpanded=function(k,M){var A=this.tasks.getItemById(String(k));A&&(A.expanded=M,this.changed())},O.prototype.changeTaskVisibility=function(k,M){var A=this.findItem(k);A&&(A.visible=M,this.changed())},O.prototype.changeTaskSelected=function(k,M){var A=this._itemList.filter(function(N){return N.task&&N.task.internalId===k})[0];if(A){A.selected=M;var F=this.findItem(k),P=F&&F.visibleIndex;P>-1&&this.renderHelper.recreateTaskElement(P)}},O.prototype.beginUpdate=function(){this._fLockCount++},O.prototype.endUpdate=function(){this._fLockCount--,0==this._fLockCount&&this.changed()},O.prototype.compareTaskOrder=function(k){var M=new I.TaskCollection;M.importFromObject(k);var A=M.items,F=this.tasks.items;if(A.length!==F.length)return!1;for(var P=0;P<A.length;P++)if(A[P].id!==F[P].id)return!1;return!0},O.prototype.refreshTaskDataIfRequires=function(k){var M=!this.lockChangesProcessing&&!this.compareTaskOrder(k);if(M){var A=this.saveTaskInternalIds();this.tasks.importFromObject(k),this.restoreTaskInternalIds(A),this.updateModel()}return M},O.prototype.saveTaskInternalIds=function(){var k={};return this.tasks.items.map(function(M){return k[M.id]=M.internalId}),k},O.prototype.restoreTaskInternalIds=function(k){for(var M in k)if(Object.prototype.hasOwnProperty.call(k,M)){var A=this.tasks.getItemByPublicId(M);A&&(A.internalId=k[M])}},O.prototype.canCreateDependency=function(k,M){if(!k||!M||k===M)return!1;var A=!1;if(this.enableDependencyValidation){var F=this.getDependentTasksHash();A=this.parentAutoCalc?this.checkTasksInterdependence(k,M,F)||this.checkParent(k,M)||this.checkParent(M,k):this.checkDependencyChain([k],[M],F,[])}return!A},O.prototype.checkParent=function(k,M){return this.getTaskTreeLine(k).indexOf(M)>-1},O.prototype.getTaskTreeLine=function(k){var M=[k],A=this.findItem(k);if(A)for(A=A.parent;A?.task;)M.push(A?.task.internalId),A=A.parent;return M},O.prototype.getDependentTasksHash=function(){var k={};return this.dependencies.items.forEach(function(M){var A,F,P=M.predecessorId,N=M.successorId;null!==(A=k[P])&&void 0!==A||(k[P]=[]),k[P].indexOf(N)<0&&k[P].push(N),null!==(F=k[N])&&void 0!==F||(k[N]=[]),k[N].indexOf(P)<0&&k[N].push(P)}),k},O.prototype.checkTasksInterdependence=function(k,M,A){for(var F,P,N=this.getTaskTreeLine(k).reverse(),B=this.getTaskTreeLine(M).reverse(),V=0;V<N.length-1;V++){var W=B.indexOf(N[V]);W>-1&&(F=N[V+1],P=B[W+1])}return F||P||(F=N[0],P=B[0]),this.checkDependencyChain(this.getBranchIds(F),this.getBranchIds(P),A,[])},O.prototype.checkDependencyChain=function(k,M,A,F){if(k.some(function(B){return M.indexOf(B)>-1}))return!0;F.push.apply(F,k);for(var P=0;P<k.length;P++){var N=A[k[P]];if(N&&this.checkDependencyChain(N.filter(function(B){return-1===F.indexOf(B)}),M,A,F))return!0}return!1},O.prototype.getBranchIds=function(k){var M=this,A=[k],P=this.findItem(k)?.children;return P&&P.forEach(function(N){var B,V=null===(B=N.task)||void 0===B?void 0:B.internalId;V&&(A=A.concat(M.getBranchIds(V)))}),A},O.prototype.getTasksExpandedState=function(){var M={};return this.tasks.items.forEach(function(A){return M[A.id]=A.expanded}),M},O.prototype.applyTasksExpandedState=function(k){if(k){for(var M in this.beginUpdate(),k)Object.prototype.hasOwnProperty.call(k,M)&&this.changeTaskExpanded(M,k[M]);this.endUpdate()}},O.prototype.changed=function(){0===this._fLockCount&&(this.populateItemsForView(),this.owner&&this.owner.onVisualModelChanged&&this.owner.onVisualModelChanged())},O.prototype.findItem=function(k){return this._viewItemList.filter(function(M){return M.task&&M.task.internalId===k})[0]},Object.defineProperty(O.prototype,"items",{get:function(){return this._viewItemList},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"itemCount",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),O.prototype.getTaskVisibility=function(k){var M=this.findItem(k);return!!M&&M.getVisible()},O.prototype.getTaskSelected=function(k){var M=this.findItem(k);return!!M&&M.selected},Object.defineProperty(O.prototype,"noWorkingIntervals",{get:function(){return this._workTimeCalculator.noWorkingIntervals},enumerable:!1,configurable:!0}),O.prototype.updateRange=function(k){this._workTimeCalculator.updateRange(k)},O.prototype.taskHasChildrenByIndex=function(k){return this._viewItemList[k].children.length>0},O.prototype.taskHasChildren=function(k){var M=this.findItem(k);return M&&M.children.length>0},Object.defineProperty(O.prototype,"enableDependencyValidation",{get:function(){var k;return null===(k=(this.owner&&this.owner.settings)?.validation)||void 0===k?void 0:k.validateDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"parentAutoCalc",{get:function(){var k=this.owner&&this.owner.settings;return k&&k.validation&&k.validation.autoUpdateParentTasks},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"enablePredecessorGap",{get:function(){var k=this.owner&&this.owner.settings;return k&&k.validation&&k.validation.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"requireFirstLoadParentAutoCalc",{get:function(){return this.parentAutoCalc&&this.owner.requireFirstLoadParentAutoCalc()},enumerable:!1,configurable:!0}),O.prototype.isTaskToCalculateByChildren=function(k){return this.parentAutoCalc&&this.taskHasChildren(k)},O.prototype.hasTasks=function(){return this.tasks.length>0},O.prototype.getDataUpdateErrorCallback=function(){return this.owner.getDataUpdateErrorCallback&&this.owner.getDataUpdateErrorCallback()},O.prototype.convertPublicToInternalKey=function(k,M){var A=this.getItemByPublicId(k,M);return A&&A.internalId},O.prototype.convertInternalToPublicKey=function(k,M){var A=this.getItemByInternalId(k,M);return A&&A.id},O.prototype.getItemByPublicId=function(k,M){var A=M.toString();switch(k){case"task":return this.tasks.getItemByPublicId(A);case"dependency":return this.dependencies.getItemByPublicId(A);case"resource":return this.resources.getItemByPublicId(A);case"assignment":return this.assignments.getItemByPublicId(A)}return null},O.prototype.getItemByInternalId=function(k,M){switch(k){case"task":return this.tasks.getItemById(M);case"dependency":return this.dependencies.getItemById(M);case"resource":return this.resources.getItemById(M);case"assignment":return this.assignments.getItemById(M)}return null},O.prototype.findAssignment=function(k,M){var A=this.convertPublicToInternalKey("resource",k),F=this.convertPublicToInternalKey("task",M);return this.assignments.items.filter(function(P){return P.resourceId===A&&P.taskId===F})[0]},O.prototype.findAllTaskAssignments=function(k){return this.assignments.items.filter(function(M){return M.taskId===k})},O.prototype.getAllVisibleTaskIndices=function(k,M){var A,F=[];null!=k||(k=0),null!=M||(M=this._viewItemList.length-1);for(var P=k;P<=M;P++){var N=this._viewItemList[P];N?.getVisible()&&null!==(A=N?.task)&&void 0!==A&&A.isValid&&F.push(P)}return F},O.prototype.getVisibleTasks=function(){var k=this;return this.tasks.items.filter(function(M){return M&&k.getTaskVisibility(M.internalId)&&M.isValid()})},O.prototype.getVisibleDependencies=function(){var k=this.getVisibleTasks().map(function(M){return M.internalId});return this.dependencies.items.filter(function(M){return M&&k.indexOf(M.successorId)>-1&&k.indexOf(M.predecessorId)>-1})},O.prototype.getVisibleResourceAssignments=function(){var k=this.getVisibleTasks().map(function(M){return M.internalId});return this.assignments.items.filter(function(M){return M&&k.indexOf(M.taskId)>-1})},O.prototype.getVisibleResources=function(){for(var k=[],M=this.getVisibleResourceAssignments(),A=0;A<M.length;A++){var F=this.getItemByInternalId("resource",M[A].resourceId);F&&-1===k.indexOf(F)&&k.push(F)}return k},O.prototype.getRootTaskId=function(){var k;return null!==(k=this.rootTaskId)&&void 0!==k||(this.rootTaskId=this.calculateRootTaskId()),this.rootTaskId},O.prototype.calculateRootTaskId=function(){var k=this.items[0];if(!k)return null;for(;k.parent&&k.task;)k=k.parent;return k.children[0].task.parentId},O.prototype.getTaskMinStart=function(){var k=this.owner.dataRange.start;return this.tasks.items.forEach(function(M){M.isValid()&&M.start.getTime()<k.getTime()&&(k=M.start)}),k},O.prototype.getTaskMaxEnd=function(){var k=this.owner.dataRange.end;return this.tasks.items.forEach(function(M){M.isValid()&&M.end.getTime()>k.getTime()&&(k=M.end)}),k},O.prototype.processServerInsertedKey=function(k,M,A){var F;A===h.GanttDataObjectNames.task&&this.tasks.invalidate(),A===h.GanttDataObjectNames.dependency&&(this.dependencies.invalidate(),this.updateVisibleItemDependencies()),A===h.GanttDataObjectNames.resource&&this.resources.invalidate(),A===h.GanttDataObjectNames.resourceAssignment&&this.assignments.invalidate(),null===(F=this.owner)||void 0===F||F.updateHistoryObsoleteInsertedKey(k,M,A)},O.prototype.onBeginDataObjectCreate=function(){var k,M;null===(M=(k=this.owner).lockUpdateWithReload)||void 0===M||M.call(k)},O.prototype.onEndDataObjectCreate=function(){var k,M;null===(M=(k=this.owner).unlockUpdateWithReload)||void 0===M||M.call(k)},O}();D.ViewVisualModel=x},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskCollection=void 0;var E=w(0),I=w(195),C=function(y){function g(){return null!==y&&y.apply(this,arguments)||this}return E.__extends(g,y),g.prototype.createItem=function(){return new I.Task},g}(w(22).CollectionBase);D.TaskCollection=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Task=void 0;var E=w(0),I=w(1),C=function(y){function g(){var p=y.call(this)||this;return p.start=null,p.end=null,p.duration=null,p.description="",p.parentId=null,p.title="",p.owner=null,p.progress=0,p.taskType=null,p.customFields={},p.expanded=!0,p.color="",p}return E.__extends(g,y),Object.defineProperty(g.prototype,"normalizedProgress",{get:function(){return Math.max(Math.min(this.progress,100),0)},enumerable:!1,configurable:!0}),g.prototype.assignFromObject=function(p){(0,I.isDefined)(p)&&(y.prototype.assignFromObject.call(this,p),this.owner=p.owner,this.parentId=(0,I.isDefined)(p.parentId)?String(p.parentId):null,this.description=p.description,this.title=p.title,this.start="string"==typeof p.start?new Date(p.start):p.start||new Date(0),this.end="string"==typeof p.end?new Date(p.end):p.end||new Date(0),this.duration=p.duration,this.progress=p.progress,this.taskType=p.taskType,(0,I.isDefined)(p.expanded)&&(this.expanded=!!p.expanded),(0,I.isDefined)(p.color)&&(this.color=p.color),this.assignCustomFields(p.customFields))},g.prototype.assignCustomFields=function(p){if(p)for(var d in p)Object.prototype.hasOwnProperty.call(p,d)&&(this.customFields[d]=p[d])},g.prototype.isMilestone=function(){return this.start.getTime()===this.end.getTime()},g.prototype.getDuration=function(){return this.end.getTime()-this.start.getTime()},g.prototype.isValid=function(){return!!this.start.getTime()&&!!this.end.getTime()},g}(w(2).DataObject);D.Task=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DependencyCollection=void 0;var E=w(0),I=w(22),C=w(69),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.createItem=function(){return new C.Dependency},p}(I.CollectionBase);D.DependencyCollection=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ResourceAssignmentCollection=void 0;var E=w(0),I=w(22),C=w(70),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.createItem=function(){return new C.ResourceAssignment},p}(I.CollectionBase);D.ResourceAssignmentCollection=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ViewVisualModelItem=void 0;var E=w(1),I=w(12),C=function(){function y(g,p){this.dependencies=new Array,this.parent=null,this.visible=!0,this.selected=!1,this.visibleIndex=-1,this.task=g,this.resources=p,this.children=new Array,this.isCustom=!1,this.size=new I.Size(0,0)}return Object.defineProperty(y.prototype,"resourceText",{get:function(){var g="";return this.resources.items.forEach(function(p){return g+=p.text+" "}),g},enumerable:!1,configurable:!0}),y.prototype.addChild=function(g){(0,E.isDefined)(g)&&this.children.indexOf(g)<0&&this.children.push(g)},y.prototype.removeChild=function(g){var p=this.children.indexOf(g);p>-1&&this.children.splice(p,1)},y.prototype.getExpanded=function(){return!!this.task&&this.task.expanded},y.prototype.getVisible=function(){if(!this.visible)return!1;for(var g=this.parent;g;){if(!g.visible)return!1;g=g.parent}return!0},y.prototype.changeVisibility=function(g){this.visible=g},y.prototype.changeSelection=function(g){this.selected=g},y.prototype.setDependencies=function(g){g&&(this.dependencies=g.slice())},y}();D.ViewVisualModelItem=C},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ViewVisualModelDependencyInfo=void 0,D.ViewVisualModelDependencyInfo=function(I,C,y){this.id=I,this.predecessor=C,this.type=y}},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.WorkingTimeCalculator=void 0;var E=w(201),I=w(209),C=w(8),y=function(){function g(p,d){this._workingRules=new E.WorkingDayRuleCollection,this._workDayList=new Array,this._calculationRange=p,this._workingRules.importFromObject(d)}return g.prototype.calculateWorkDayList=function(){if(this._calculationRange){this.clearList();for(var p=this._workingRules.items,d=0;d<p.length;d++)this.processRule(p[d]);this.sortList()}},g.prototype.processRule=function(p){for(var d=p.recurrence.calculatePoints(this._calculationRange.start,this._calculationRange.end),c=function(v){var x=C.DateTimeUtils.getDayNumber(d[v]),O=h._workDayList.filter(function(k){return k.dayNumber==x})[0];O?(O.isWorkDay=O.isWorkDay&&p.isWorkDay,O.addWorkingIntervals(p.workTimeRanges)):h._workDayList.push(new I.DayWorkingTimeInfo(x,p.isWorkDay,p.workTimeRanges))},h=this,m=0;m<d.length;m++)c(m)},g.prototype.sortList=function(){this._workDayList.sort(function(p,d){return p.dayNumber-d.dayNumber})},g.prototype.clearList=function(){this._workDayList.splice(0,this._workDayList.length)},g.prototype.calculateNoWorkTimeIntervals=function(){var p=this,d=new Array;return 0==this._workDayList.length&&this.calculateWorkDayList(),this._workDayList.forEach(function(c){return d=d.concat(p.getNoWorkTimeRangesFromDay(c))}),this.concatJointedRanges(d)},g.prototype.concatJointedRanges=function(p){for(var d=new Array,c=0;c<p.length;c++){var h=p[c];d.length>0&&C.DateTimeUtils.compareDates(d[d.length-1].end,h.start)<2?d[d.length-1].end=h.end:d.push(h)}return d},g.prototype.getNoWorkTimeRangesFromDay=function(p){return p.noWorkingIntervals.map(function(d){return C.DateTimeUtils.convertTimeRangeToDateRange(d,p.dayNumber)})},Object.defineProperty(g.prototype,"noWorkingIntervals",{get:function(){return this._noWorkingIntervals||(this._noWorkingIntervals=this.calculateNoWorkTimeIntervals()),this._noWorkingIntervals.slice()},enumerable:!1,configurable:!0}),g.prototype.updateRange=function(p){this._calculationRange=p,this.invalidate()},g.prototype.invalidate=function(){this._noWorkingIntervals=null,this.clearList()},g}();D.WorkingTimeCalculator=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.WorkingDayRuleCollection=void 0;var E=w(0),I=w(22),C=w(202),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.createItem=function(){return new C.WorkingTimeRule},p}(I.CollectionBase);D.WorkingDayRuleCollection=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.WorkingTimeRule=void 0;var E=w(0),I=w(2),C=w(1),y=w(8),g=w(71),p=w(72),d=function(c){function h(m,v,b){void 0===m&&(m=null),void 0===v&&(v=!0),void 0===b&&(b=null);var x=c.call(this)||this;return x.isWorkDay=!0,x.workTimeRanges=new Array,x.recurrence=m,x.isWorkDay=v,b&&x.workTimeRanges.concat(b),x}return E.__extends(h,c),h.prototype.assignFromObject=function(m){if((0,C.isDefined)(m)){c.prototype.assignFromObject.call(this,m),this.recurrence=g.RecurrenceFactory.createRecurrenceByType(m.recurrenceType)||new p.Daily,(0,C.isDefined)(m.recurrence)&&this.recurrence.assignFromObject(m.recurrence),(0,C.isDefined)(m.isWorkDay)&&(this.isWorkDay=!!m.isWorkDay);var v=y.DateTimeUtils.convertToTimeRanges(m.workTimeRanges);v&&(this.workTimeRanges=v)}},h}(I.DataObject);D.WorkingTimeRule=d},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.DayOfWeek=void 0,(E=D.DayOfWeek||(D.DayOfWeek={}))[E.Sunday=0]="Sunday",E[E.Monday=1]="Monday",E[E.Tuesday=2]="Tuesday",E[E.Wednesday=3]="Wednesday",E[E.Thursday=4]="Thursday",E[E.Friday=5]="Friday",E[E.Saturday=6]="Saturday"},function(X,D,w){"use strict";var E;Object.defineProperty(D,"__esModule",{value:!0}),D.Month=void 0,(E=D.Month||(D.Month={}))[E.January=0]="January",E[E.February=1]="February",E[E.March=2]="March",E[E.April=3]="April",E[E.May=4]="May",E[E.June=5]="June",E[E.July=6]="July",E[E.August=7]="August",E[E.September=8]="September",E[E.October=9]="October",E[E.November=10]="November",E[E.December=11]="December"},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Weekly=void 0;var E=w(0),I=w(38),C=w(8),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.checkDate=function(d){return C.DateTimeUtils.checkDayOfWeek(this.dayOfWeekInternal,d)},p.prototype.checkInterval=function(d){return C.DateTimeUtils.getWeeksBetween(this.start,d)%this.interval==0},p.prototype.calculatePointByInterval=function(d){var c=C.DateTimeUtils.getWeeksBetween(this.start,d),h=Math.floor(c/this.interval);return(c%this.interval>0||d.getDay()>=this.dayOfWeekInternal)&&h++,this.calcNextPointWithWeekCount(this.start,h*this.interval)},p.prototype.calculateNearestPoint=function(d){var c=this.dayOfWeekInternal-d.getDay();return c>0?C.DateTimeUtils.addDays(new Date(d),c):this.calcNextPointWithWeekCount(d,1)},p.prototype.calcNextPointWithWeekCount=function(d,c){void 0===c&&(c=1);var h=7*c+this.dayOfWeekInternal-d.getDay();return C.DateTimeUtils.addDays(new Date(d),h)},Object.defineProperty(p.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(d){this.dayOfWeekInternal=d},enumerable:!1,configurable:!0}),p}(I.RecurrenceBase);D.Weekly=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Monthly=void 0;var E=w(0),I=w(38),C=w(8),y=w(207),g=function(p){function d(){return null!==p&&p.apply(this,arguments)||this}return E.__extends(d,p),d.prototype.checkDate=function(c){return this._calculateByDayOfWeek?C.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(c,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):C.DateTimeUtils.checkDayOfMonth(this.dayInternal,c)},d.prototype.checkInterval=function(c){return C.DateTimeUtils.getMonthsDifference(this.start,c)%this.interval==0},d.prototype.calculatePointByInterval=function(c){var h=this.start,m=C.DateTimeUtils.getMonthsDifference(h,c),v=Math.floor(m/this.interval)*this.interval,b=new y.MonthInfo(h.getMonth(),h.getFullYear());b.addMonths(v);var x=this.getSpecDayInMonth(b.year,b.month);return C.DateTimeUtils.compareDates(x,c)>=0&&(b.addMonths(this.interval),x=this.getSpecDayInMonth(b.year,b.month)),x},d.prototype.calculateNearestPoint=function(c){var h=c.getMonth(),m=c.getFullYear(),v=this.getSpecDayInMonth(m,h);if(C.DateTimeUtils.compareDates(v,c)>=0){var b=new y.MonthInfo(h,m);b.addMonths(1),v=this.getSpecDayInMonth(b.year,b.month)}return v},Object.defineProperty(d.prototype,"day",{get:function(){return this.dayInternal},set:function(c){this.dayInternal=c},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(c){this.dayOfWeekInternal=c},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(c){this.dayOfWeekOccurrenceInternal=c},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(c){this._calculateByDayOfWeek=c},enumerable:!1,configurable:!0}),d}(I.RecurrenceBase);D.Monthly=g},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.MonthInfo=void 0;var E=w(8),I=function(){function C(y,g){this.month=y,this.year=g}return C.prototype.addMonths=function(y){var g=E.DateTimeUtils.getNextMonth(this.month,y),p=Math.floor(y/12);g<this.month&&++p,this.month=g,this.year+=p},C}();D.MonthInfo=I},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.Yearly=void 0;var E=w(0),I=w(38),C=w(8),y=function(g){function p(){return null!==g&&g.apply(this,arguments)||this}return E.__extends(p,g),p.prototype.checkDate=function(d){return!!C.DateTimeUtils.checkMonth(this.month,d)&&(this._calculateByDayOfWeek?C.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(d,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):C.DateTimeUtils.checkDayOfMonth(this.dayInternal,d))},p.prototype.checkInterval=function(d){return C.DateTimeUtils.getYearsDifference(this.start,d)%this.interval==0},p.prototype.calculatePointByInterval=function(d){var c=C.DateTimeUtils.getYearsDifference(this.start,d),h=Math.floor(c/this.interval)*this.interval,m=this.start.getFullYear()+h,v=this.getSpecDayInMonth(m,this.monthInternal);return C.DateTimeUtils.compareDates(v,d)>=0&&(v=this.getSpecDayInMonth(m+=this.interval,this.monthInternal)),v},p.prototype.calculateNearestPoint=function(d){var c=d.getFullYear(),h=this.getSpecDayInMonth(c,this.monthInternal);return C.DateTimeUtils.compareDates(h,d)>=0&&(h=this.getSpecDayInMonth(++c,this.monthInternal)),h},Object.defineProperty(p.prototype,"month",{get:function(){return this.monthInternal},set:function(d){this.monthInternal=d},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"day",{get:function(){return this.dayInternal},set:function(d){this.dayInternal=d},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(d){this.dayOfWeekInternal=d},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(d){this.dayOfWeekOccurrenceInternal=d},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(d){this._calculateByDayOfWeek=d},enumerable:!1,configurable:!0}),p}(I.RecurrenceBase);D.Yearly=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.DayWorkingTimeInfo=void 0;var E=w(56),I=w(8),C=w(55),y=function(){function g(p,d,c){void 0===p&&(p=0),void 0===d&&(d=!0),void 0===c&&(c=null),this._workingIntervals=new Array,this.dayNumber=p,this.isWorkDay=d,this.addWorkingIntervals(c)}return g.prototype.addWorkingIntervals=function(p){p&&(this._workingIntervals=this._workingIntervals.concat(p.filter(function(d){return!!d})),this.rearrangeWorkingIntervals())},g.prototype.rearrangeWorkingIntervals=function(){for(var p=0;p<this._workingIntervals.length;p++)this.concatWithIntersectedRanges(this._workingIntervals[p]);this.sortIntervals()},g.prototype.concatWithIntersectedRanges=function(p){var d=this;this.getIntersectedIntervals(p).forEach(function(c){p.concatWith(c),d.removeInterval(c)})},g.prototype.getIntersectedIntervals=function(p){return this._workingIntervals.filter(function(d){return d.hasIntersect(p)&&d!==p})},g.prototype.sortIntervals=function(){this._workingIntervals.sort(function(p,d){return I.DateTimeUtils.caclTimeDifference(d.start,p.start)})},g.prototype.removeInterval=function(p){var d=this._workingIntervals.indexOf(p);d>-1&&d<this._workingIntervals.length&&this._workingIntervals.splice(d,1)},g.prototype.clearIntervals=function(){this._workingIntervals.splice(0,this._workingIntervals.length)},Object.defineProperty(g.prototype,"workingIntervals",{get:function(){return this._workingIntervals.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"noWorkingIntervals",{get:function(){var p=new Array;if(this.isWorkDay&&0===this._workingIntervals.length)return p;var d=this._workingIntervals.map(function(b){return b.end});d.splice(0,0,new C.Time);var c=this._workingIntervals.map(function(b){return b.start});c.push(I.DateTimeUtils.getLastTimeOfDay());for(var h=0;h<d.length;h++){var m=d[h],v=c[h];I.DateTimeUtils.areTimesEqual(m,v)||p.push(new E.TimeRange(m,v))}return p},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"isWorkDay",{get:function(){return this._isWorkDay},set:function(p){this._isWorkDay=p,p||this.clearIntervals()},enumerable:!1,configurable:!0}),g}();D.DayWorkingTimeInfo=y},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GanttViewApi=void 0;var E=function(){function I(C){this.maxZoom=3,this._ganttView=C}return Object.defineProperty(I.prototype,"currentZoom",{get:function(){return this._ganttView.currentZoom},set:function(C){this._ganttView.currentZoom=C},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"renderHelper",{get:function(){return this._ganttView.renderHelper},enumerable:!1,configurable:!0}),I.prototype.getTaskAreaContainerWidth=function(){return this.renderHelper.getTaskAreaContainerWidth()},I.prototype.updateTickSizeWidth=function(){this._ganttView.updateTickSizeWidth()},Object.defineProperty(I.prototype,"settings",{get:function(){return this._ganttView.settings},enumerable:!1,configurable:!0}),I.prototype.resetAndUpdate=function(){this._ganttView.resetAndUpdate()},I.prototype.scrollToDateCore=function(C,y){this._ganttView.scrollToDateCore(C,y)},Object.defineProperty(I.prototype,"ganttOwner",{get:function(){return this._ganttView.ganttOwner},enumerable:!1,configurable:!0}),I.prototype.scrollLeftByViewType=function(){this._ganttView.scrollLeftByViewType()},Object.defineProperty(I.prototype,"dataRange",{get:function(){return this._ganttView.dataRange},enumerable:!1,configurable:!0}),I.prototype.calculateAutoViewType=function(C,y){return this._ganttView.calculateAutoViewType(C,y)},I.prototype.zoomIn=function(C){void 0===C&&(C=this.getTaskAreaContainerWidth()/2);var y=this.renderHelper.getTargetDateByPos(C),g=this.settings.viewTypeRange.min;this.currentZoom<this.maxZoom?(this.currentZoom++,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType>g&&(this.currentZoom=1,this.setViewType(this.settings.viewType-1,!1)),this.scrollToDateCore(y,-C)},I.prototype.zoomOut=function(C){void 0===C&&(C=this.renderHelper.getTaskAreaContainerWidth()/2);var y=this.renderHelper.getTargetDateByPos(C),g=this.settings.viewTypeRange.max;this.currentZoom>1?(this.currentZoom--,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType<g&&(this.currentZoom=this.maxZoom,this.setViewType(this.settings.viewType+1,!1)),this.scrollToDateCore(y,-C)},I.prototype.setViewType=function(C,y){void 0===y&&(y=!0),null==C&&(C=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.settings.viewType!==C&&(this.settings.viewType=C,this.updateTickSizeWidth(),this.resetAndUpdate(),y&&this.scrollLeftByViewType(),this.ganttOwner.UpdateGanttViewType&&this.ganttOwner.UpdateGanttViewType(C))},I.prototype.setViewTypeRange=function(C,y){void 0!==C&&(this.settings.viewTypeRange.min=Math.min(C,y)),void 0!==y&&(this.settings.viewTypeRange.max=Math.max(C,y));var g=this.settings.viewTypeRange.min,p=this.settings.viewTypeRange.max,d=this.settings.viewType;g>d?this.setViewType(g):p<d&&this.setViewType(p)},I}();D.GanttViewApi=E},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.TaskAreaEventsListener=void 0;var E=w(5),I=w(1),C=w(3),y=w(9),g=w(66),p=w(212),d=w(13),c=function(){function h(m){this._owner=m}return Object.defineProperty(h.prototype,"taskEditController",{get:function(){var m;return null===(m=this._owner)||void 0===m?void 0:m.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"renderHelper",{get:function(){var m;return null===(m=this._owner)||void 0===m?void 0:m.renderHelper},enumerable:!1,configurable:!0}),h.prototype.getHandler=function(m){return this.handlers[m]},h.prototype.setHandler=function(m,v){this.handlers[m]=v},Object.defineProperty(h.prototype,"handlers",{get:function(){var m;return null!==(m=this._handlers)&&void 0!==m||(this._handlers=this.createTaskAreaEventHandlers()),this._handlers},enumerable:!1,configurable:!0}),h.prototype.createTaskAreaEventHandlers=function(){var m={};return m[d.TaskAreaStateEventNames.TASK_AREA_CLICK]=this.taskAreaClickHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_AREA_DBLCLICK]=this.taskAreaDblClickHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_AREA_SCROLL]=this.taskAreaScrollHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_AREA_START_MOVE]=this.taskAreaStartMoveHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE]=this.taskAreaProcessMoveHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_AREA_END_MOVE]=this.taskAreaEndMoveHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN]=this.taskAreaZoomInHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT]=this.taskAreaZoomOutHandler.bind(this),m[d.TaskAreaStateEventNames.CONTEXTMENU_SHOW]=this.taskAreaContextMenuShowHandler.bind(this),m[d.TaskAreaStateEventNames.CONTEXTMENU_HIDE]=this.taskAreaContextMenuHideHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_SELECTION]=this.taskSelectionHandler.bind(this),m[d.TaskAreaStateEventNames.DEPENDENCY_SELECTION]=this.dependencySelectionHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_EDIT_START]=this.taskEditStartHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_EDIT_END]=this.taskEditEndHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_LEAVE]=this.taskLeaveHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_PROCESS_MOVE]=this.taskProcessMoveHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_END_MOVE]=this.taskEndMoveHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS]=this.taskProcessProgressHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_END_PROGRESS]=this.taskEndProgressHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_PROCESS_START]=this.taskProcessStartHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_CONFIRM_START]=this.taskConfirmStartHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_PROCESS_END]=this.taskProcessEndHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_CONFIRM_END]=this.taskConfirmEndHandler.bind(this),m[d.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS]=this.getDependencyPoints.bind(this),m[d.TaskAreaStateEventNames.DEPENDENCY_START]=this.dependencyStartHandler.bind(this),m[d.TaskAreaStateEventNames.DEPENDENCY_END]=this.dependencyEndHandler.bind(this),m[d.TaskAreaStateEventNames.DEPENDENCY_PROCESS]=this.dependencyProcessHandler.bind(this),m[d.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN]=this.onTaskAreaKeyDown.bind(this),m[d.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT]=this.getCoordinatesRefPoint.bind(this),m[d.TaskAreaStateEventNames.STATE_EXIT]=function(){},m},h.prototype.taskAreaClickHandler=function(m){return this._owner.onTaskAreaClick(m.rowIndex,m.triggerEvent)},h.prototype.taskAreaDblClickHandler=function(m){this._owner.onTaskAreaDblClick(m.rowIndex,m.triggerEvent)},h.prototype.taskSelectionHandler=function(m){this._owner.onTaskSelectionChanged(m.rowIndex,m.triggerEvent)},h.prototype.taskAreaContextMenuShowHandler=function(m){this._owner.onTaskAreaContextMenu(m.rowIndex,m.triggerEvent,m.info.type)},h.prototype.taskAreaContextMenuHideHandler=function(){this._owner.hidePopupMenu()},h.prototype.taskAreaScrollHandler=function(m){this._owner.updateView()},h.prototype.dependencySelectionHandler=function(m){var v=m.info.key,b=this.taskEditController.dependencyId;(v!==b||!v&&(0,I.isDefined)(b))&&this._owner.selectDependency(v)},Object.defineProperty(h.prototype,"ganttMovingHelper",{get:function(){var m;return null!==(m=this._ganttMovingHelper)&&void 0!==m||(this._ganttMovingHelper=new p.GanttMovingHelper(this._owner.renderHelper.taskAreaContainer)),this._ganttMovingHelper},enumerable:!1,configurable:!0}),h.prototype.taskAreaStartMoveHandler=function(m){this.ganttMovingHelper.startMoving(m.triggerEvent)},h.prototype.taskAreaProcessMoveHandler=function(m){this.ganttMovingHelper.movingInfo&&(this.ganttMovingHelper.onMouseMove(m.triggerEvent),m.triggerEvent.preventDefault())},h.prototype.taskAreaEndMoveHandler=function(m){this.ganttMovingHelper.onMouseUp(m.triggerEvent)},h.prototype.taskAreaZoomInHandler=function(m){this._owner.zoomIn(m.info.leftPos)},h.prototype.taskAreaZoomOutHandler=function(m){this._owner.zoomOut(m.info.leftPos)},h.prototype.getCoordinatesRefPoint=function(m){var v=C.DomUtils.getAbsolutePositionX(this.renderHelper.taskAreaContainer.getElement()),b=C.DomUtils.getAbsolutePositionY(this.renderHelper.taskAreaContainer.getElement());return new E.Point(v,b)},h.prototype.taskEditStartHandler=function(m){this.taskEditController.show(m.rowIndex),this.taskEditController.showTaskInfo(y.EvtUtils.getEventX(m.triggerEvent))},h.prototype.taskLeaveHandler=function(m){this.taskEditController.cancel()},h.prototype.taskEditEndHandler=function(m){this.taskEditController.endEditing()},h.prototype.taskEndMoveHandler=function(m){this.taskEditController.confirmMove()},h.prototype.taskProcessMoveHandler=function(m){var v;return this.taskEditController.processMove(null!==(v=m.info.delta)&&void 0!==v?v:0)},h.prototype.taskEndProgressHandler=function(m){this.taskEditController.confirmProgress()},h.prototype.taskProcessProgressHandler=function(m){this.taskEditController.processProgress(m.info.position)},h.prototype.taskProcessStartHandler=function(m){this.taskEditController.processStart(m.info.position)},h.prototype.taskConfirmStartHandler=function(m){this.taskEditController.confirmStart()},h.prototype.taskProcessEndHandler=function(m){this.taskEditController.processEnd(m.info.position)},h.prototype.taskConfirmEndHandler=function(m){this.taskEditController.confirmEnd()},h.prototype.getDependencyPoints=function(m){var v={};return v.successorStart=new E.Point(C.DomUtils.getAbsolutePositionX(this.taskEditController.dependencySuccessorStart)+this.taskEditController.dependencySuccessorStart.clientWidth/2,C.DomUtils.getAbsolutePositionY(this.taskEditController.dependencySuccessorStart)+this.taskEditController.dependencySuccessorStart.clientHeight/2),v.successorFinish=new E.Point(C.DomUtils.getAbsolutePositionX(this.taskEditController.dependencySuccessorFinish)+this.taskEditController.dependencySuccessorFinish.clientWidth/2,C.DomUtils.getAbsolutePositionY(this.taskEditController.dependencySuccessorFinish)+this.taskEditController.dependencySuccessorFinish.clientHeight/2),v},h.prototype.dependencyStartHandler=function(m){this.taskEditController.startDependency(m.info.pos)},h.prototype.dependencyEndHandler=function(m){this.taskEditController.endDependency(m.info.type)},h.prototype.dependencyProcessHandler=function(m){this.taskEditController.processDependency(m.info.pos),this._owner.viewModel.tasks.items[m.rowIndex]&&this.taskEditController.showDependencySuccessor(m.rowIndex)},h.prototype.onTaskAreaKeyDown=function(m){var v=m.info.code;v==(g.ModifierKey.Ctrl|g.KeyCode.Key_z)&&this._owner.history.undo(),v==(g.ModifierKey.Ctrl|g.KeyCode.Key_y)&&this._owner.history.redo(),v==g.KeyCode.Delete&&this.taskEditController.deleteSelectedDependency()},h}();D.TaskAreaEventsListener=c},function(X,D,w){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.GanttMovingHelper=void 0;var E=w(10),I=w(9),C=function(){function y(g){this.taskAreaContainer=g,this.movingInfo=null}return y.prototype.startMoving=function(g){this.movingInfo=this.calcMovingInfo(g),this.updateGanttAreaCursor(!0)},y.prototype.cancelMoving=function(){this.movingInfo=null},y.prototype.onMouseMove=function(g){this.move(g)},y.prototype.onMouseUp=function(g){this.cancelMoving(),this.updateGanttAreaCursor(!1)},y.prototype.move=function(g){this.updateScrollPosition(g)},y.prototype.updateScrollPosition=function(g){var p=Math.round(I.EvtUtils.getEventX(g)),d=Math.round(I.EvtUtils.getEventY(g)),c=p-this.movingInfo.eventX,h=d-this.movingInfo.eventY,m=c<0?-1:1,v=h<0?-1:1,b=m<0?this.movingInfo.maxRightDelta:this.movingInfo.maxLeftDelta,x=v<0?this.movingInfo.maxBottomDelta:this.movingInfo.maxTopDelta;Math.abs(c)>b&&(c=b*m),Math.abs(h)>x&&(h=x*v);var O=this.movingInfo.scrollLeft-c,k=this.movingInfo.scrollTop-h,M=this.taskAreaContainer;M.scrollLeft!==O&&(M.scrollLeft=O),M.scrollTop!==k&&(M.scrollTop=k)},y.prototype.calcMovingInfo=function(g){var p=this.taskAreaContainer;return{eventX:I.EvtUtils.getEventX(g),eventY:I.EvtUtils.getEventY(g),scrollLeft:p.scrollLeft,scrollTop:p.scrollTop,maxLeftDelta:p.scrollLeft,maxRightDelta:p.scrollWidth-p.scrollLeft-p.getElement().offsetWidth,maxTopDelta:p.scrollTop,maxBottomDelta:p.scrollHeight-p.scrollTop-p.getElement().offsetHeight}},y.prototype.updateGanttAreaCursor=function(g){var p=E.Browser.IE?"move":"grabbing";this.taskAreaContainer.getElement().style.cursor=g?p:"default"},y}();D.GanttMovingHelper=C}])},699:function(fu){fu.exports=function(X){var D={};function w(E){if(D[E])return D[E].exports;var I=D[E]={i:E,l:!1,exports:{}};return X[E].call(I.exports,I,I.exports,w),I.l=!0,I.exports}return w.m=X,w.c=D,w.d=function(E,I,C){w.o(E,I)||Object.defineProperty(E,I,{enumerable:!0,get:C})},w.r=function(E){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})},w.t=function(E,I){if(1&I&&(E=w(E)),8&I||4&I&&"object"==typeof E&&E&&E.__esModule)return E;var C=Object.create(null);if(w.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:E}),2&I&&"string"!=typeof E)for(var y in E)w.d(C,y,function(g){return E[g]}.bind(null,y));return C},w.n=function(E){var I=E&&E.__esModule?function(){return E.default}:function(){return E};return w.d(I,"a",I),I},w.o=function(E,I){return Object.prototype.hasOwnProperty.call(E,I)},w.p="",w(w.s=176)}([function(X,D,w){"use strict";w.d(D,"c",function(){return J}),w.d(D,"b",function(){return ae}),w.d(D,"d",function(){return pe}),w.d(D,"a",function(){return ne});var E=w(1),I=w.n(E),C=w(16),y=w.n(C),g=w(37),p=w.n(g),d=w(2),c=w(4),h=w(3),m=w(12),v=w(7),b=w(44),x=w(23),O=w(57);function k(ce){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K})(ce)}function M(ce,oe,K){return oe in ce?Object.defineProperty(ce,oe,{value:K,enumerable:!0,configurable:!0,writable:!0}):ce[oe]=K,ce}function A(ce,oe){return function V(ce){if(Array.isArray(ce))return ce}(ce)||function B(ce,oe){var K=null==ce?null:typeof Symbol<"u"&&ce[Symbol.iterator]||ce["@@iterator"];if(null!=K){var Ae,Ne,Q=[],de=!0,Oe=!1;try{for(K=K.call(ce);!(de=(Ae=K.next()).done)&&(Q.push(Ae.value),!oe||Q.length!==oe);de=!0);}catch(Qe){Oe=!0,Ne=Qe}finally{try{!de&&null!=K.return&&K.return()}finally{if(Oe)throw Ne}}return Q}}(ce,oe)||function P(ce,oe){if(ce){if("string"==typeof ce)return N(ce,oe);var K=Object.prototype.toString.call(ce).slice(8,-1);if("Object"===K&&ce.constructor&&(K=ce.constructor.name),"Map"===K||"Set"===K)return Array.from(ce);if("Arguments"===K||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(K))return N(ce,oe)}}(ce,oe)||function F(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(ce,oe){(null==oe||oe>ce.length)&&(oe=ce.length);for(var K=0,Q=new Array(oe);K<oe;K++)Q[K]=ce[K];return Q}function H(ce,oe){if(!(ce instanceof oe))throw new TypeError("Cannot call a class as a function")}function W(ce,oe){for(var K=0;K<oe.length;K++){var Q=oe[K];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(ce,Q.key,Q)}}var G=Object(x.a)("quill"),J=new d.Registry;d.ParentBlot.uiClass="ql-ui";var ne=function(){function ce(oe){var K=this,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(H(this,ce),this.options=ae(oe,Q),this.container=this.options.container,null==this.container)return G.error("Invalid Quill container",oe);this.options.debug&&ce.debug(this.options.debug);var de=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",b.a.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.a;var Oe=this.options.registry.query(d.ScrollBlot.blotName);this.scroll=new Oe(this.options.registry,this.root,{emitter:this.emitter,toggleBlankClass:this.toggleBlankClass.bind(this)}),this.editor=new c.a(this.scroll),this.selection=new v.b(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.init(),this.emitter.on(h.a.events.EDITOR_CHANGE,function(Ae){Ae===h.a.events.TEXT_CHANGE&&K.toggleBlankClass()}),this.emitter.on(h.a.events.SCROLL_UPDATE,function(Ae,Ne){var Qe=K.selection.lastRange,xe=A(K.selection.getRange(),1)[0],ve=Qe&&xe?{oldRange:Qe,newRange:xe}:void 0;ge.call(K,function(){return K.editor.update(null,Ne,ve)},Ae)}),this.setContents(this.getInitialContent(de)),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}return function q(ce,oe,K){return oe&&W(ce.prototype,oe),K&&W(ce,K),ce}(ce,[{key:"getInitialContent",value:function(K){return this.clipboard.convert({html:"".concat(K,"<p><br></p>"),text:"\n"})}},{key:"toggleBlankClass",value:function(){this.root.classList.toggle("ql-blank",this.editor.isBlank(this.selection.composing))}},{key:"addContainer",value:function(K){var Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof K){var de=K;(K=document.createElement("div")).classList.add(de)}return this.container.insertBefore(K,Q),K}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(K,Q,de){var Oe=this,Ne=A(pe(K,Q,de),4);return ge.call(this,function(){return Oe.editor.deleteText(K,Q)},de=Ne[3],K=Ne[0],-1*(Q=Ne[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"editReadOnly",value:function(K){this.allowReadOnlyEdits=!0;var Q=K();return this.allowReadOnlyEdits=!1,Q}},{key:"enable",value:function(){var K=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(K),this.container.classList.toggle("ql-disabled",!K)}},{key:"focus",value:function(){var K=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=K,this.scrollIntoView()}},{key:"format",value:function(K,Q){var de=this;return ge.call(this,function(){var Ae=de.getSelection(!0),Ne=new I.a;if(null==Ae)return Ne;if(de.scroll.query(K,d.Scope.BLOCK))Ne=de.editor.formatLine(Ae.index,Ae.length,M({},K,Q));else{if(0===Ae.length)return de.selection.format(K,Q),Ne;Ne=de.editor.formatText(Ae.index,Ae.length,M({},K,Q))}return de.setSelection(Ae,h.a.sources.SILENT),Ne},arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.a.sources.API)}},{key:"formatLine",value:function(K,Q,de,Oe,Ae){var Qe,Ne=this,_e=A(pe(K,Q,de,Oe,Ae),4);return Q=_e[1],Qe=_e[2],ge.call(this,function(){return Ne.editor.formatLine(K,Q,Qe)},Ae=_e[3],K=_e[0],0)}},{key:"formatText",value:function(K,Q,de,Oe,Ae){var Qe,Ne=this,_e=A(pe(K,Q,de,Oe,Ae),4);return Q=_e[1],Qe=_e[2],ge.call(this,function(){return Ne.editor.formatText(K,Q,Qe)},Ae=_e[3],K=_e[0],0)}},{key:"getBounds",value:function(K){var de;de="number"==typeof K?this.selection.getBounds(K,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(K.index,K.length);var Oe=this.container.getBoundingClientRect();return{bottom:de.bottom-Oe.top,height:de.height,left:de.left-Oe.left,right:de.right-Oe.left,top:de.top-Oe.top,width:de.width}}},{key:"getContents",value:function(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-K,Oe=A(pe(K,Q),2);return this.editor.getContents(K=Oe[0],Q=Oe[1])}},{key:"getFormat",value:function(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof K?this.editor.getFormat(K,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(K.index,K.length)}},{key:"getIndex",value:function(K){return K.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(K){return this.scroll.leaf(K)}},{key:"getLine",value:function(K){return this.scroll.line(K)}},{key:"getLines",value:function(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof K?this.scroll.lines(K.index,K.length):this.scroll.lines(K,Q)}},{key:"getModule",value:function(K){return this.theme.modules[K]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getSemanticHTML",value:function(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-K,Oe=A(pe(K,Q),2);return this.editor.getHTML(K=Oe[0],Q=Oe[1])}},{key:"getText",value:function(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-K,Oe=A(pe(K,Q),2);return this.editor.getText(K=Oe[0],Q=Oe[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(K,Q,de){var Oe=this;return ge.call(this,function(){return Oe.editor.insertEmbed(K,Q,de)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:ce.sources.API,K)}},{key:"insertText",value:function(K,Q,de,Oe,Ae){var Qe,Ne=this,_e=A(pe(K,0,de,Oe,Ae),4);return Qe=_e[2],ge.call(this,function(){return Ne.editor.insertText(K,Q,Qe)},Ae=_e[3],K=_e[0],Q.length)}},{key:"isEnabled",value:function(){return this.scroll.isEnabled()}},{key:"off",value:function(){var K;return(K=this.emitter).off.apply(K,arguments)}},{key:"on",value:function(){var K;return(K=this.emitter).on.apply(K,arguments)}},{key:"once",value:function(){var K;return(K=this.emitter).once.apply(K,arguments)}},{key:"removeFormat",value:function(K,Q,de){var Oe=this,Ne=A(pe(K,Q,de),4);return Q=Ne[1],ge.call(this,function(){return Oe.editor.removeFormat(K,Q)},de=Ne[3],K=Ne[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(K){var Q=this;return ge.call(this,function(){K=new I.a(K);var Oe=Q.getLength(),Ae=Q.editor.deleteText(0,Oe),Ne=Q.editor.applyDelta(K),Qe=Q.editor.deleteText(Q.getLength()-1,1);return Q.emitter.emit(ce.events.CONTENT_SETTED),Ae.compose(Ne).compose(Qe)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.a.sources.API)}},{key:"setSelection",value:function(K,Q,de){if(null==K)this.selection.setRange(null,Q||ce.sources.API);else{var Ae=A(pe(K,Q,de),4);K=Ae[0],Q=Ae[1],de=Ae[3],this.selection.setRange(new v.a(Math.max(0,K),Q),de),de!==h.a.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(K){var Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.a.sources.API,de=(new I.a).insert(K);return this.setContents(de,Q)}},{key:"update",value:function(){var K=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.a.sources.USER,Q=this.scroll.update(K);return this.selection.update(K),Q}},{key:"updateContents",value:function(K){var Q=this,de=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.a.sources.API;return ge.call(this,function(){return K=new I.a(K),Q.editor.applyDelta(K,de)},de,!0)}}],[{key:"debug",value:function(K){!0===K&&(K="log"),x.a.level(K)}},{key:"find",value:function(K){return b.a.get(K)||J.find(K)}},{key:"import",value:function(K){return null==this.imports[K]&&G.error("Cannot import ".concat(K,". Are you sure it was registered?")),this.imports[K]}},{key:"register",value:function(K,Q){var de=this,Oe=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof K){var Ae=K.attrName||K.blotName;"string"==typeof Ae?this.register("formats/".concat(Ae),K,Q):Object.keys(K).forEach(function(Ne){de.register(Ne,K[Ne],Q)})}else null!=this.imports[K]&&!Oe&&G.warn("Overwriting ".concat(K," with"),Q),this.imports[K]=Q,(0===K.indexOf("blots/")||0===K.indexOf("formats/"))&&"abstract"!==Q.blotName&&J.register(Q),"function"==typeof Q.register&&Q.register(J)}}]),ce}();function ae(ce,oe){if((oe=p()({container:ce,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0}},oe)).theme&&oe.theme!==ne.DEFAULTS.theme){if(oe.theme=ne.import("themes/".concat(oe.theme)),null==oe.theme)throw new Error("Invalid theme ".concat(oe.theme,". Did you register it?"))}else oe.theme=O.a;var K=y()(oe.theme.DEFAULTS);[K,oe].forEach(function(Oe){Oe.modules=Oe.modules||{},Object.keys(Oe.modules).forEach(function(Ae){!0===Oe.modules[Ae]&&(Oe.modules[Ae]={})})});var de=Object.keys(K.modules).concat(Object.keys(oe.modules)).reduce(function(Oe,Ae){var Ne=ne.import("modules/".concat(Ae));return null==Ne?G.error("Cannot load ".concat(Ae," module. Are you sure you registered it?")):Oe[Ae]=Ne.DEFAULTS||{},Oe},{});return null!=oe.modules&&oe.modules.toolbar&&oe.modules.toolbar.constructor!==Object&&(oe.modules.toolbar={container:oe.modules.toolbar}),oe=p()({},ne.DEFAULTS,{modules:de},K,oe),["bounds","container","scrollingContainer"].forEach(function(Oe){"string"==typeof oe[Oe]&&(oe[Oe]=document.querySelector(oe[Oe]))}),oe.modules=Object.keys(oe.modules).reduce(function(Oe,Ae){return oe.modules[Ae]&&(Oe[Ae]=oe.modules[Ae]),Oe},{}),oe}function ge(ce,oe,K,Q){if(!this.isEnabled()&&oe===h.a.sources.USER&&!this.allowReadOnlyEdits)return new I.a;var de=null==K?null:this.getSelection(),Oe=this.editor.delta,Ae=ce();if(null!=de&&(!0===K&&(K=de.index),null==Q?de=le(de,Ae,oe):0!==Q&&(de=le(de,K,Q,oe)),this.setSelection(de,h.a.sources.SILENT)),Ae.length()>0){var Ne,$e,Qe=[h.a.events.TEXT_CHANGE,Ae,Oe,oe];(Ne=this.emitter).emit.apply(Ne,[h.a.events.EDITOR_CHANGE].concat(Qe)),oe!==h.a.sources.SILENT&&($e=this.emitter).emit.apply($e,Qe)}return Ae}function pe(ce,oe,K,Q,de){var Oe={};return"number"==typeof ce.index&&"number"==typeof ce.length?"number"!=typeof oe?(de=Q,Q=K,K=oe,oe=ce.length,ce=ce.index):(oe=ce.length,ce=ce.index):"number"!=typeof oe&&(de=Q,Q=K,K=oe,oe=0),"object"===k(K)?(Oe=K,de=Q):"string"==typeof K&&(null!=Q?Oe[K]=Q:de=K),[ce,oe,Oe,de=de||h.a.sources.API]}function le(ce,oe,K,Q){if(null==ce)return null;var de,Oe;if(oe instanceof I.a){var Ne=A([ce.index,ce.index+ce.length].map(function(_e){return oe.transformPosition(_e,Q!==h.a.sources.USER)}),2);de=Ne[0],Oe=Ne[1]}else{var $e=A([ce.index,ce.index+ce.length].map(function(_e){return _e<oe||_e===oe&&Q===h.a.sources.USER?_e:K>=0?_e+K:Math.max(oe,_e+K)}),2);de=$e[0],Oe=$e[1]}return new v.a(de,Oe-de)}ne.DEFAULTS={bounds:null,modules:{},placeholder:"",readOnly:!1,registry:J,scrollingContainer:null,theme:"default"},ne.events=h.a.events,ne.sources=h.a.sources,ne.version="1.5.20",ne.imports={delta:I.a,parchment:d,"core/module":m.a,"core/theme":O.a}},function(X,D,w){"use strict";var E=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{default:h}},I=E(w(118)),C=E(w(16)),y=E(w(30)),g=E(w(119)),p=E(w(94)),d=String.fromCharCode(0),c=function(){function h(m){this.ops=Array.isArray(m)?m:null!=m&&Array.isArray(m.ops)?m.ops:[]}return h.prototype.insert=function(m,v){var b={};return"string"==typeof m&&0===m.length?this:(b.insert=m,null!=v&&"object"==typeof v&&Object.keys(v).length>0&&(b.attributes=v),this.push(b))},h.prototype.delete=function(m){return m<=0?this:this.push({delete:m})},h.prototype.retain=function(m,v){if(m<=0)return this;var b={retain:m};return null!=v&&"object"==typeof v&&Object.keys(v).length>0&&(b.attributes=v),this.push(b)},h.prototype.push=function(m){var v=this.ops.length,b=this.ops[v-1];if(m=C.default(m),"object"==typeof b){if("number"==typeof m.delete&&"number"==typeof b.delete)return this.ops[v-1]={delete:b.delete+m.delete},this;if("number"==typeof b.delete&&null!=m.insert&&"object"!=typeof(b=this.ops[(v-=1)-1]))return this.ops.unshift(m),this;if(y.default(m.attributes,b.attributes)){if("string"==typeof m.insert&&"string"==typeof b.insert)return this.ops[v-1]={insert:b.insert+m.insert},"object"==typeof m.attributes&&(this.ops[v-1].attributes=m.attributes),this;if("number"==typeof m.retain&&"number"==typeof b.retain)return this.ops[v-1]={retain:b.retain+m.retain},"object"==typeof m.attributes&&(this.ops[v-1].attributes=m.attributes),this}}return v===this.ops.length?this.ops.push(m):this.ops.splice(v,0,m),this},h.prototype.chop=function(){var m=this.ops[this.ops.length-1];return m&&m.retain&&!m.attributes&&this.ops.pop(),this},h.prototype.filter=function(m){return this.ops.filter(m)},h.prototype.forEach=function(m){this.ops.forEach(m)},h.prototype.map=function(m){return this.ops.map(m)},h.prototype.partition=function(m){var v=[],b=[];return this.forEach(function(x){(m(x)?v:b).push(x)}),[v,b]},h.prototype.reduce=function(m,v){return this.ops.reduce(m,v)},h.prototype.changeLength=function(){return this.reduce(function(m,v){return v.insert?m+p.default.length(v):v.delete?m-v.delete:m},0)},h.prototype.length=function(){return this.reduce(function(m,v){return m+p.default.length(v)},0)},h.prototype.slice=function(m,v){void 0===m&&(m=0),void 0===v&&(v=1/0);for(var b=[],x=p.default.iterator(this.ops),O=0;O<v&&x.hasNext();){var k=void 0;O<m?k=x.next(m-O):(k=x.next(v-O),b.push(k)),O+=p.default.length(k)}return new h(b)},h.prototype.compose=function(m){var v=p.default.iterator(this.ops),b=p.default.iterator(m.ops),x=[],O=b.peek();if(null!=O&&"number"==typeof O.retain&&null==O.attributes){for(var k=O.retain;"insert"===v.peekType()&&v.peekLength()<=k;)k-=v.peekLength(),x.push(v.next());O.retain-k>0&&b.next(O.retain-k)}for(var M=new h(x);v.hasNext()||b.hasNext();)if("insert"===b.peekType())M.push(b.next());else if("delete"===v.peekType())M.push(v.next());else{var A=Math.min(v.peekLength(),b.peekLength()),F=v.next(A),P=b.next(A);if("number"==typeof P.retain){var N={};"number"==typeof F.retain?N.retain=A:N.insert=F.insert;var B=g.default.compose(F.attributes,P.attributes,"number"==typeof F.retain);if(B&&(N.attributes=B),M.push(N),!b.hasNext()&&y.default(M.ops[M.ops.length-1],N)){var V=new h(v.rest());return M.concat(V).chop()}}else"number"==typeof P.delete&&"number"==typeof F.retain&&M.push(P)}return M.chop()},h.prototype.concat=function(m){var v=new h(this.ops.slice());return m.ops.length>0&&(v.push(m.ops[0]),v.ops=v.ops.concat(m.ops.slice(1))),v},h.prototype.diff=function(m,v){if(this.ops===m.ops)return new h;var b=[this,m].map(function(A){return A.map(function(F){if(null!=F.insert)return"string"==typeof F.insert?F.insert:d;throw new Error("diff() called "+(A===m?"on":"with")+" non-document")}).join("")}),x=new h,O=I.default(b[0],b[1],v),k=p.default.iterator(this.ops),M=p.default.iterator(m.ops);return O.forEach(function(A){for(var F=A[1].length;F>0;){var P=0;switch(A[0]){case I.default.INSERT:P=Math.min(M.peekLength(),F),x.push(M.next(P));break;case I.default.DELETE:P=Math.min(F,k.peekLength()),k.next(P),x.delete(P);break;case I.default.EQUAL:P=Math.min(k.peekLength(),M.peekLength(),F);var N=k.next(P),B=M.next(P);y.default(N.insert,B.insert)?x.retain(P,g.default.diff(N.attributes,B.attributes)):x.push(B).delete(P)}F-=P}}),x.chop()},h.prototype.eachLine=function(m,v){void 0===v&&(v="\n");for(var b=p.default.iterator(this.ops),x=new h,O=0;b.hasNext();){if("insert"!==b.peekType())return;var k=b.peek(),M=p.default.length(k)-b.peekLength(),A="string"==typeof k.insert?k.insert.indexOf(v,M)-M:-1;if(A<0)x.push(b.next());else if(A>0)x.push(b.next(A));else{if(!1===m(x,b.next(1).attributes||{},O))return;O+=1,x=new h}}x.length()>0&&m(x,{},O)},h.prototype.invert=function(m){var v=new h;return this.reduce(function(b,x){if(x.insert)v.delete(p.default.length(x));else{if(x.retain&&null==x.attributes)return v.retain(x.retain),b+x.retain;if(x.delete||x.retain&&x.attributes){var O=x.delete||x.retain;return m.slice(b,b+O).forEach(function(M){x.delete?v.push(M):x.retain&&x.attributes&&v.retain(p.default.length(M),g.default.invert(x.attributes,M.attributes))}),b+O}}return b},0),v.chop()},h.prototype.transform=function(m,v){if(void 0===v&&(v=!1),v=!!v,"number"==typeof m)return this.transformPosition(m,v);for(var b=m,x=p.default.iterator(this.ops),O=p.default.iterator(b.ops),k=new h;x.hasNext()||O.hasNext();)if("insert"!==x.peekType()||!v&&"insert"===O.peekType())if("insert"===O.peekType())k.push(O.next());else{var M=Math.min(x.peekLength(),O.peekLength()),A=x.next(M),F=O.next(M);if(A.delete)continue;F.delete?k.push(F):k.retain(M,g.default.transform(A.attributes,F.attributes,v))}else k.retain(p.default.length(x.next()));return k.chop()},h.prototype.transformPosition=function(m,v){void 0===v&&(v=!1),v=!!v;for(var b=p.default.iterator(this.ops),x=0;b.hasNext()&&x<=m;){var O=b.peekLength(),k=b.peekType();b.next(),"delete"!==k?("insert"===k&&(x<m||!v)&&(m+=O),x+=O):m-=Math.min(O,m-x)}return m},h.Op=p.default,h.AttributeMap=g.default,h}();X.exports=c},function(X,D,w){"use strict";w.r(D),w.d(D,"ParentBlot",function(){return k}),w.d(D,"ContainerBlot",function(){return F}),w.d(D,"LeafBlot",function(){return B}),w.d(D,"EmbedBlot",function(){return _e}),w.d(D,"ScrollBlot",function(){return De}),w.d(D,"BlockBlot",function(){return Ne}),w.d(D,"InlineBlot",function(){return de}),w.d(D,"TextBlot",function(){return ze}),w.d(D,"Attributor",function(){return H}),w.d(D,"ClassAttributor",function(){return J}),w.d(D,"StyleAttributor",function(){return pe}),w.d(D,"AttributorStore",function(){return ce}),w.d(D,"Registry",function(){return h}),w.d(D,"Scope",function(){return I});var Pe,E=(()=>{return(Pe=E||(E={}))[Pe.TYPE=3]="TYPE",Pe[Pe.LEVEL=12]="LEVEL",Pe[Pe.ATTRIBUTE=13]="ATTRIBUTE",Pe[Pe.BLOT=14]="BLOT",Pe[Pe.INLINE=7]="INLINE",Pe[Pe.BLOCK=11]="BLOCK",Pe[Pe.BLOCK_BLOT=10]="BLOCK_BLOT",Pe[Pe.INLINE_BLOT=6]="INLINE_BLOT",Pe[Pe.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",Pe[Pe.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",Pe[Pe.ANY=15]="ANY",E;var Pe})(),I=E,C=function(){function Pe(){this.head=null,this.tail=null,this.length=0}return Pe.prototype.append=function(){for(var be=[],me=0;me<arguments.length;me++)be[me]=arguments[me];if(this.insertBefore(be[0],null),be.length>1){var Me=be.slice(1);this.append.apply(this,Me)}},Pe.prototype.at=function(be){for(var me=this.iterator(),Me=me();Me&&be>0;)be-=1,Me=me();return Me},Pe.prototype.contains=function(be){for(var me=this.iterator(),Me=me();Me;){if(Me===be)return!0;Me=me()}return!1},Pe.prototype.indexOf=function(be){for(var me=this.iterator(),Me=me(),Ue=0;Me;){if(Me===be)return Ue;Ue+=1,Me=me()}return-1},Pe.prototype.insertBefore=function(be,me){null!=be&&(this.remove(be),be.next=me,null!=me?(be.prev=me.prev,null!=me.prev&&(me.prev.next=be),me.prev=be,me===this.head&&(this.head=be)):null!=this.tail?(this.tail.next=be,be.prev=this.tail,this.tail=be):(be.prev=null,this.head=this.tail=be),this.length+=1)},Pe.prototype.offset=function(be){for(var me=0,Me=this.head;null!=Me;){if(Me===be)return me;me+=Me.length(),Me=Me.next}return-1},Pe.prototype.remove=function(be){this.contains(be)&&(null!=be.prev&&(be.prev.next=be.next),null!=be.next&&(be.next.prev=be.prev),be===this.head&&(this.head=be.next),be===this.tail&&(this.tail=be.prev),this.length-=1)},Pe.prototype.iterator=function(be){return void 0===be&&(be=this.head),function(){var me=be;return null!=be&&(be=be.next),me}},Pe.prototype.find=function(be,me){void 0===me&&(me=!1);for(var Me=this.iterator(),Ue=Me();Ue;){var st=Ue.length();if(be<st||me&&be===st&&(null==Ue.next||0!==Ue.next.length()))return[Ue,be];be-=st,Ue=Me()}return[null,0]},Pe.prototype.forEach=function(be){for(var me=this.iterator(),Me=me();Me;)be(Me),Me=me()},Pe.prototype.forEachAt=function(be,me,Me){if(!(me<=0))for(var Ue=this.find(be),ln=be-Ue[1],Mn=this.iterator(Ue[0]),ri=Mn();ri&&ln<be+me;){var lr=ri.length();be>ln?Me(ri,be-ln,Math.min(me,ln+lr-be)):Me(ri,0,Math.min(lr,be+me-ln)),ln+=lr,ri=Mn()}},Pe.prototype.map=function(be){return this.reduce(function(me,Me){return me.push(be(Me)),me},[])},Pe.prototype.reduce=function(be,me){for(var Me=this.iterator(),Ue=Me();Ue;)me=be(me,Ue),Ue=Me();return me},Pe}(),y=C,g=(Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)},function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}),p=function(Pe){function be(me){var Me=this;return(Me=Pe.call(this,me="[Parchment] "+me)||this).message=me,Me.name=Me.constructor.name,Me}return g(be,Pe),be}(Error),d=p,c=function(){function Pe(){this.attributes={},this.classes={},this.tags={},this.types={}}return Pe.find=function(be,me){return void 0===me&&(me=!1),null==be?null:this.blots.has(be)?this.blots.get(be)||null:me?this.find(be.parentNode,me):null},Pe.prototype.create=function(be,me,Me){var Ue=this.query(me);if(null==Ue)throw new d("Unable to create "+me+" blot");var st=Ue,Lt=me instanceof Node||me.nodeType===Node.TEXT_NODE?me:st.create(Me),ln=new st(be,Lt,Me);return Pe.blots.set(ln.domNode,ln),ln},Pe.prototype.find=function(be,me){return void 0===me&&(me=!1),Pe.find(be,me)},Pe.prototype.query=function(be,me){var Ue,Me=this;return void 0===me&&(me=I.ANY),"string"==typeof be?Ue=this.types[be]||this.attributes[be]:be instanceof Text||be.nodeType===Node.TEXT_NODE?Ue=this.types.text:"number"==typeof be?be&I.LEVEL&I.BLOCK?Ue=this.types.block:be&I.LEVEL&I.INLINE&&(Ue=this.types.inline):be instanceof HTMLElement&&((be.getAttribute("class")||"").split(/\s+/).some(function(Lt){return!!(Ue=Me.classes[Lt])}),Ue=Ue||this.tags[be.tagName]),null==Ue?null:me&I.LEVEL&Ue.scope&&me&I.TYPE&Ue.scope?Ue:null},Pe.prototype.register=function(){for(var be=this,me=[],Me=0;Me<arguments.length;Me++)me[Me]=arguments[Me];if(me.length>1)return me.map(function(Lt){return be.register(Lt)});var Ue=me[0];if("string"!=typeof Ue.blotName&&"string"!=typeof Ue.attrName)throw new d("Invalid definition");if("abstract"===Ue.blotName)throw new d("Cannot register abstract class");return this.types[Ue.blotName||Ue.attrName]=Ue,"string"==typeof Ue.keyName?this.attributes[Ue.keyName]=Ue:(null!=Ue.className&&(this.classes[Ue.className]=Ue),null!=Ue.tagName&&(Ue.tagName=Array.isArray(Ue.tagName)?Ue.tagName.map(function(Lt){return Lt.toUpperCase()}):Ue.tagName.toUpperCase(),(Array.isArray(Ue.tagName)?Ue.tagName:[Ue.tagName]).forEach(function(Lt){(null==be.tags[Lt]||null==Ue.className)&&(be.tags[Lt]=Ue)}))),Ue},Pe.blots=new WeakMap,Pe}(),h=c,m=function(){function Pe(be,me){this.scroll=be,this.domNode=me,h.blots.set(me,this),this.prev=null,this.next=null}return Pe.create=function(be){if(null==this.tagName)throw new d("Blot definition missing tagName");var me;return Array.isArray(this.tagName)?("string"==typeof be&&(be=be.toUpperCase(),parseInt(be,10).toString()===be&&(be=parseInt(be,10))),me="number"==typeof be?document.createElement(this.tagName[be-1]):this.tagName.indexOf(be)>-1?document.createElement(be):document.createElement(this.tagName[0])):me=document.createElement(this.tagName),this.className&&me.classList.add(this.className),me},Object.defineProperty(Pe.prototype,"statics",{get:function(){return this.constructor},enumerable:!1,configurable:!0}),Pe.prototype.attach=function(){},Pe.prototype.clone=function(){var be=this.domNode.cloneNode(!1);return this.scroll.create(be)},Pe.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),h.blots.delete(this.domNode)},Pe.prototype.deleteAt=function(be,me){this.isolate(be,me).remove()},Pe.prototype.formatAt=function(be,me,Me,Ue){var st=this.isolate(be,me);if(null!=this.scroll.query(Me,I.BLOT)&&Ue)st.wrap(Me,Ue);else if(null!=this.scroll.query(Me,I.ATTRIBUTE)){var Lt=this.scroll.create(this.statics.scope);st.wrap(Lt),Lt.format(Me,Ue)}},Pe.prototype.insertAt=function(be,me,Me){var Ue=null==Me?this.scroll.create("text",me):this.scroll.create(me,Me),st=this.split(be);this.parent.insertBefore(Ue,st||void 0)},Pe.prototype.isolate=function(be,me){var Me=this.split(be);if(null==Me)throw new Error("Attempt to isolate at end");return Me.split(me),Me},Pe.prototype.length=function(){return 1},Pe.prototype.offset=function(be){return void 0===be&&(be=this.parent),null==this.parent||this===be?0:this.parent.children.offset(this)+this.parent.offset(be)},Pe.prototype.optimize=function(be){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)},Pe.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},Pe.prototype.replaceWith=function(be,me){var Me="string"==typeof be?this.scroll.create(be,me):be;return null!=this.parent&&(this.parent.insertBefore(Me,this.next||void 0),this.remove()),Me},Pe.prototype.split=function(be,me){return 0===be?this:this.next},Pe.prototype.update=function(be,me){},Pe.prototype.wrap=function(be,me){var Me="string"==typeof be?this.scroll.create(be,me):be;if(null!=this.parent&&this.parent.insertBefore(Me,this.next||void 0),"function"!=typeof Me.appendChild)throw new d("Cannot wrap "+be);return Me.appendChild(this),Me},Pe.blotName="abstract",Pe}(),v=m,b=function(){var Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)};return function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}}();function x(Pe,be){var me=be.find(Pe);if(null==me)try{me=be.create(Pe)}catch{me=be.create(I.INLINE),Array.from(Pe.childNodes).forEach(function(Ue){me.domNode.appendChild(Ue)}),Pe.parentNode&&Pe.parentNode.replaceChild(me.domNode,Pe),me.attach()}return me}var O=function(Pe){function be(me,Me){var Ue=Pe.call(this,me,Me)||this;return Ue.uiNode=null,Ue.build(),Ue}return b(be,Pe),be.prototype.appendChild=function(me){this.insertBefore(me)},be.prototype.attach=function(){Pe.prototype.attach.call(this),this.children.forEach(function(me){me.attach()})},be.prototype.attachUI=function(me){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=me,be.uiClass&&this.uiNode.classList.add(be.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)},be.prototype.build=function(){var me=this;this.children=new y,Array.from(this.domNode.childNodes).filter(function(Me){return Me!==me.uiNode}).reverse().forEach(function(Me){try{var Ue=x(Me,me.scroll);me.insertBefore(Ue,me.children.head||void 0)}catch(st){if(st instanceof d)return;throw st}})},be.prototype.deleteAt=function(me,Me){if(0===me&&Me===this.length())return this.remove();this.children.forEachAt(me,Me,function(Ue,st,Lt){Ue.deleteAt(st,Lt)})},be.prototype.descendant=function(me,Me){void 0===Me&&(Me=0);var Ue=this.children.find(Me),st=Ue[0],Lt=Ue[1];return null==me.blotName&&me(st)||null!=me.blotName&&st instanceof me?[st,Lt]:st instanceof be?st.descendant(me,Lt):[null,-1]},be.prototype.descendants=function(me,Me,Ue){void 0===Me&&(Me=0),void 0===Ue&&(Ue=Number.MAX_VALUE);var st=[],Lt=Ue;return this.children.forEachAt(Me,Ue,function(ln,Mn,ri){(null==me.blotName&&me(ln)||null!=me.blotName&&ln instanceof me)&&st.push(ln),ln instanceof be&&(st=st.concat(ln.descendants(me,Mn,Lt))),Lt-=ri}),st},be.prototype.detach=function(){this.children.forEach(function(me){me.detach()}),Pe.prototype.detach.call(this)},be.prototype.enforceAllowedChildren=function(){var me=this,Me=!1;this.children.forEach(function(Ue){Me||me.statics.allowedChildren.some(function(Lt){return Ue instanceof Lt})||(Ue.statics.scope===I.BLOCK_BLOT?(null!=Ue.next&&me.splitAfter(Ue),null!=Ue.prev&&me.splitAfter(Ue.prev),Ue.parent.unwrap(),Me=!0):Ue instanceof be?Ue.unwrap():Ue.remove())})},be.prototype.formatAt=function(me,Me,Ue,st){this.children.forEachAt(me,Me,function(Lt,ln,Mn){Lt.formatAt(ln,Mn,Ue,st)})},be.prototype.insertAt=function(me,Me,Ue){var st=this.children.find(me),Lt=st[0];if(Lt)Lt.insertAt(st[1],Me,Ue);else{var Mn=null==Ue?this.scroll.create("text",Me):this.scroll.create(Me,Ue);this.appendChild(Mn)}},be.prototype.insertBefore=function(me,Me){null!=me.parent&&me.parent.children.remove(me);var Ue=null;this.children.insertBefore(me,Me||null),me.parent=this,null!=Me&&(Ue=Me.domNode),(this.domNode.parentNode!==me.domNode||this.domNode.nextSibling!==Ue)&&this.domNode.insertBefore(me.domNode,Ue),me.attach()},be.prototype.length=function(){return this.children.reduce(function(me,Me){return me+Me.length()},0)},be.prototype.moveChildren=function(me,Me){this.children.forEach(function(Ue){me.insertBefore(Ue,Me)})},be.prototype.optimize=function(me){if(Pe.prototype.optimize.call(this,me),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){var Me=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(Me)}else this.remove()},be.prototype.path=function(me,Me){void 0===Me&&(Me=!1);var Ue=this.children.find(me,Me),st=Ue[0],Lt=Ue[1],ln=[[this,me]];return st instanceof be?ln.concat(st.path(Lt,Me)):(null!=st&&ln.push([st,Lt]),ln)},be.prototype.removeChild=function(me){this.children.remove(me)},be.prototype.replaceWith=function(me,Me){var Ue="string"==typeof me?this.scroll.create(me,Me):me;return Ue instanceof be&&this.moveChildren(Ue),Pe.prototype.replaceWith.call(this,Ue)},be.prototype.split=function(me,Me){if(void 0===Me&&(Me=!1),!Me){if(0===me)return this;if(me===this.length())return this.next}var Ue=this.clone();return this.parent&&this.parent.insertBefore(Ue,this.next||void 0),this.children.forEachAt(me,this.length(),function(st,Lt,ln){var Mn=st.split(Lt,Me);null!=Mn&&Ue.appendChild(Mn)}),Ue},be.prototype.splitAfter=function(me){for(var Me=this.clone();null!=me.next;)Me.appendChild(me.next);return this.parent&&this.parent.insertBefore(Me,this.next||void 0),Me},be.prototype.unwrap=function(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()},be.prototype.update=function(me,Me){var Ue=this,st=[],Lt=[];me.forEach(function(ln){ln.target===Ue.domNode&&"childList"===ln.type&&(st.push.apply(st,ln.addedNodes),Lt.push.apply(Lt,ln.removedNodes))}),Lt.forEach(function(ln){if(!(null!=ln.parentNode&&"IFRAME"!==ln.tagName&&document.body.compareDocumentPosition(ln)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var Mn=Ue.scroll.find(ln);null!=Mn&&(null==Mn.domNode.parentNode||Mn.domNode.parentNode===Ue.domNode)&&Mn.detach()}}),st.filter(function(ln){return ln.parentNode===Ue.domNode||ln===Ue.uiNode}).sort(function(ln,Mn){return ln===Mn?0:ln.compareDocumentPosition(Mn)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(ln){var Mn=null;null!=ln.nextSibling&&(Mn=Ue.scroll.find(ln.nextSibling));var ri=x(ln,Ue.scroll);(ri.next!==Mn||null==ri.next)&&(null!=ri.parent&&ri.parent.removeChild(Ue),Ue.insertBefore(ri,Mn||void 0))}),this.enforceAllowedChildren()},be.uiClass="",be}(v),k=O,M=function(){var Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)};return function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}}(),A=function(Pe){function be(){return null!==Pe&&Pe.apply(this,arguments)||this}return M(be,Pe),be.prototype.checkMerge=function(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName},be.prototype.deleteAt=function(me,Me){Pe.prototype.deleteAt.call(this,me,Me),this.enforceAllowedChildren()},be.prototype.formatAt=function(me,Me,Ue,st){Pe.prototype.formatAt.call(this,me,Me,Ue,st),this.enforceAllowedChildren()},be.prototype.insertAt=function(me,Me,Ue){Pe.prototype.insertAt.call(this,me,Me,Ue),this.enforceAllowedChildren()},be.prototype.optimize=function(me){Pe.prototype.optimize.call(this,me),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())},be.blotName="container",be.scope=I.BLOCK_BLOT,be}(k),F=A,P=function(){var Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)};return function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}}(),N=function(Pe){function be(){return null!==Pe&&Pe.apply(this,arguments)||this}return P(be,Pe),be.value=function(me){return!0},be.prototype.index=function(me,Me){return this.domNode===me||this.domNode.compareDocumentPosition(me)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(Me,1):-1},be.prototype.position=function(me,Me){var st=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return me>0&&(st+=1),[this.parent.domNode,st]},be.prototype.value=function(){var me;return(me={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,me},be.scope=I.INLINE_BLOT,be}(v),B=N,V=function(){function Pe(be,me,Me){void 0===Me&&(Me={}),this.attrName=be,this.keyName=me,this.scope=null!=Me.scope?Me.scope&I.LEVEL|I.TYPE&I.ATTRIBUTE:I.ATTRIBUTE,null!=Me.whitelist&&(this.whitelist=Me.whitelist)}return Pe.keys=function(be){return Array.from(be.attributes).map(function(me){return me.name})},Pe.prototype.add=function(be,me){return!!this.canAdd(be,me)&&(be.setAttribute(this.keyName,me),!0)},Pe.prototype.canAdd=function(be,me){return null==this.whitelist||("string"==typeof me?this.whitelist.indexOf(me.replace(/["']/g,""))>-1:this.whitelist.indexOf(me)>-1)},Pe.prototype.remove=function(be){be.removeAttribute(this.keyName)},Pe.prototype.value=function(be){var me=be.getAttribute(this.keyName);return this.canAdd(be,me)&&me?me:""},Pe}(),H=V,W=function(){var Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)};return function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}}();function q(Pe,be){return(Pe.getAttribute("class")||"").split(/\s+/).filter(function(Me){return 0===Me.indexOf(be+"-")})}var G=function(Pe){function be(){return null!==Pe&&Pe.apply(this,arguments)||this}return W(be,Pe),be.keys=function(me){return(me.getAttribute("class")||"").split(/\s+/).map(function(Me){return Me.split("-").slice(0,-1).join("-")})},be.prototype.add=function(me,Me){return!!this.canAdd(me,Me)&&(this.remove(me),me.classList.add(this.keyName+"-"+Me),!0)},be.prototype.remove=function(me){q(me,this.keyName).forEach(function(Ue){me.classList.remove(Ue)}),0===me.classList.length&&me.removeAttribute("class")},be.prototype.value=function(me){var Ue=(q(me,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(me,Ue)?Ue:""},be}(H),J=G,ne=function(){var Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)};return function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}}();function ae(Pe){var be=Pe.split("-"),me=be.slice(1).map(function(Me){return Me[0].toUpperCase()+Me.slice(1)}).join("");return be[0]+me}var ge=function(Pe){function be(){return null!==Pe&&Pe.apply(this,arguments)||this}return ne(be,Pe),be.keys=function(me){return(me.getAttribute("style")||"").split(";").map(function(Me){return Me.split(":")[0].trim()})},be.prototype.add=function(me,Me){return!!this.canAdd(me,Me)&&(me.style[ae(this.keyName)]=Me,!0)},be.prototype.remove=function(me){me.style[ae(this.keyName)]="",me.getAttribute("style")||me.removeAttribute("style")},be.prototype.value=function(me){var Me=me.style[ae(this.keyName)];return this.canAdd(me,Me)?Me:""},be}(H),pe=ge,le=function(){function Pe(be){this.attributes={},this.domNode=be,this.build()}return Pe.prototype.attribute=function(be,me){me?be.add(this.domNode,me)&&(null!=be.value(this.domNode)?this.attributes[be.attrName]=be:delete this.attributes[be.attrName]):(be.remove(this.domNode),delete this.attributes[be.attrName])},Pe.prototype.build=function(){var be=this;this.attributes={};var me=h.find(this.domNode);if(null!=me){var Me=H.keys(this.domNode),Ue=J.keys(this.domNode),st=pe.keys(this.domNode);Me.concat(Ue).concat(st).forEach(function(Lt){var ln=me.scroll.query(Lt,I.ATTRIBUTE);ln instanceof H&&(be.attributes[ln.attrName]=ln)})}},Pe.prototype.copy=function(be){var me=this;Object.keys(this.attributes).forEach(function(Me){var Ue=me.attributes[Me].value(me.domNode);be.format(Me,Ue)})},Pe.prototype.move=function(be){var me=this;this.copy(be),Object.keys(this.attributes).forEach(function(Me){me.attributes[Me].remove(me.domNode)}),this.attributes={}},Pe.prototype.values=function(){var be=this;return Object.keys(this.attributes).reduce(function(me,Me){return me[Me]=be.attributes[Me].value(be.domNode),me},{})},Pe}(),ce=le,oe=function(){var Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)};return function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}}();var Q=function(Pe){function be(me,Me){var Ue=Pe.call(this,me,Me)||this;return Ue.attributes=new ce(Ue.domNode),Ue}return oe(be,Pe),be.formats=function(me,Me){var Ue=Me.query(be.blotName);if(null==Ue||me.tagName!==Ue.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return me.tagName.toLowerCase()}},be.prototype.format=function(me,Me){var Ue=this;if(me!==this.statics.blotName||Me){var st=this.scroll.query(me,I.INLINE);if(null==st)return;st instanceof H?this.attributes.attribute(st,Me):Me&&(me!==this.statics.blotName||this.formats()[me]!==Me)&&this.replaceWith(me,Me)}else this.children.forEach(function(Lt){Lt instanceof be||(Lt=Lt.wrap(be.blotName,!0)),Ue.attributes.copy(Lt)}),this.unwrap()},be.prototype.formats=function(){var me=this.attributes.values(),Me=this.statics.formats(this.domNode,this.scroll);return null!=Me&&(me[this.statics.blotName]=Me),me},be.prototype.formatAt=function(me,Me,Ue,st){null!=this.formats()[Ue]||this.scroll.query(Ue,I.ATTRIBUTE)?this.isolate(me,Me).format(Ue,st):Pe.prototype.formatAt.call(this,me,Me,Ue,st)},be.prototype.optimize=function(me){Pe.prototype.optimize.call(this,me);var Me=this.formats();if(0===Object.keys(Me).length)return this.unwrap();var Ue=this.next;Ue instanceof be&&Ue.prev===this&&function K(Pe,be){if(Object.keys(Pe).length!==Object.keys(be).length)return!1;for(var me in Pe)if(Pe[me]!==be[me])return!1;return!0}(Me,Ue.formats())&&(Ue.moveChildren(this),Ue.remove())},be.prototype.replaceWith=function(me,Me){var Ue=Pe.prototype.replaceWith.call(this,me,Me);return this.attributes.copy(Ue),Ue},be.prototype.update=function(me,Me){var Ue=this;Pe.prototype.update.call(this,me,Me),me.some(function(Lt){return Lt.target===Ue.domNode&&"attributes"===Lt.type})&&this.attributes.build()},be.prototype.wrap=function(me,Me){var Ue=Pe.prototype.wrap.call(this,me,Me);return Ue instanceof be&&this.attributes.move(Ue),Ue},be.allowedChildren=[be,B],be.blotName="inline",be.scope=I.INLINE_BLOT,be.tagName="SPAN",be}(k),de=Q,Oe=function(){var Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)};return function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}}(),Ae=function(Pe){function be(me,Me){var Ue=Pe.call(this,me,Me)||this;return Ue.attributes=new ce(Ue.domNode),Ue}return Oe(be,Pe),be.formats=function(me,Me){var Ue=Me.query(be.blotName);if(null==Ue||me.tagName!==Ue.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return me.tagName.toLowerCase()}},be.prototype.format=function(me,Me){var Ue=this.scroll.query(me,I.BLOCK);null!=Ue&&(Ue instanceof H?this.attributes.attribute(Ue,Me):me!==this.statics.blotName||Me?Me&&(me!==this.statics.blotName||this.formats()[me]!==Me)&&this.replaceWith(me,Me):this.replaceWith(be.blotName))},be.prototype.formats=function(){var me=this.attributes.values(),Me=this.statics.formats(this.domNode,this.scroll);return null!=Me&&(me[this.statics.blotName]=Me),me},be.prototype.formatAt=function(me,Me,Ue,st){null!=this.scroll.query(Ue,I.BLOCK)?this.format(Ue,st):Pe.prototype.formatAt.call(this,me,Me,Ue,st)},be.prototype.insertAt=function(me,Me,Ue){if(null==Ue||null!=this.scroll.query(Me,I.INLINE))Pe.prototype.insertAt.call(this,me,Me,Ue);else{var st=this.split(me);if(null==st)throw new Error("Attempt to insertAt after block boundaries");var Lt=this.scroll.create(Me,Ue);st.parent.insertBefore(Lt,st)}},be.prototype.replaceWith=function(me,Me){var Ue=Pe.prototype.replaceWith.call(this,me,Me);return this.attributes.copy(Ue),Ue},be.prototype.update=function(me,Me){var Ue=this;Pe.prototype.update.call(this,me,Me),me.some(function(Lt){return Lt.target===Ue.domNode&&"attributes"===Lt.type})&&this.attributes.build()},be.blotName="block",be.scope=I.BLOCK_BLOT,be.tagName="P",be.allowedChildren=[de,be,B],be}(k),Ne=Ae,Qe=function(){var Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)};return function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}}(),$e=function(Pe){function be(){return null!==Pe&&Pe.apply(this,arguments)||this}return Qe(be,Pe),be.formats=function(me,Me){},be.prototype.format=function(me,Me){Pe.prototype.formatAt.call(this,0,this.length(),me,Me)},be.prototype.formatAt=function(me,Me,Ue,st){0===me&&Me===this.length()?this.format(Ue,st):Pe.prototype.formatAt.call(this,me,Me,Ue,st)},be.prototype.formats=function(){return this.statics.formats(this.domNode,this.scroll)},be}(B),_e=$e,xe=function(){var Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)};return function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}}(),ve={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Ce=function(Pe){function be(me,Me){var Ue=Pe.call(this,null,Me)||this;return Ue.registry=me,Ue.scroll=Ue,Ue.build(),Ue.observer=new MutationObserver(function(st){Ue.update(st)}),Ue.observer.observe(Ue.domNode,ve),Ue.attach(),Ue}return xe(be,Pe),be.prototype.create=function(me,Me){return this.registry.create(this,me,Me)},be.prototype.find=function(me,Me){return void 0===Me&&(Me=!1),this.registry.find(me,Me)},be.prototype.query=function(me,Me){return void 0===Me&&(Me=I.ANY),this.registry.query(me,Me)},be.prototype.register=function(){for(var me,Me=[],Ue=0;Ue<arguments.length;Ue++)Me[Ue]=arguments[Ue];return(me=this.registry).register.apply(me,Me)},be.prototype.build=function(){null!=this.scroll&&Pe.prototype.build.call(this)},be.prototype.detach=function(){Pe.prototype.detach.call(this),this.observer.disconnect()},be.prototype.deleteAt=function(me,Me){this.update(),0===me&&Me===this.length()?this.children.forEach(function(Ue){Ue.remove()}):Pe.prototype.deleteAt.call(this,me,Me)},be.prototype.formatAt=function(me,Me,Ue,st){this.update(),Pe.prototype.formatAt.call(this,me,Me,Ue,st)},be.prototype.insertAt=function(me,Me,Ue){this.update(),Pe.prototype.insertAt.call(this,me,Me,Ue)},be.prototype.optimize=function(me,Me){var Ue=this;void 0===me&&(me=[]),void 0===Me&&(Me={}),Pe.prototype.optimize.call(this,Me);for(var st=Me.mutationsMap||new WeakMap,Lt=Array.from(this.observer.takeRecords());Lt.length>0;)me.push(Lt.pop());for(var ln=function Ye(ft,jt){void 0===jt&&(jt=!0),null!=ft&&ft!==Ue&&null!=ft.domNode.parentNode&&(st.has(ft.domNode)||st.set(ft.domNode,[]),jt&&Ye(ft.parent))},Mn=function Ye(ft){st.has(ft.domNode)&&(ft instanceof k&&ft.children.forEach(Ye),st.delete(ft.domNode),ft.optimize(Me))},ri=me,lr=0;ri.length>0;lr+=1){if(lr>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(ri.forEach(function(Ye){var ft=Ue.find(Ye.target,!0);null!=ft&&(ft.domNode===Ye.target&&("childList"===Ye.type?(ln(Ue.find(Ye.previousSibling,!1)),Array.from(Ye.addedNodes).forEach(function(jt){var an=Ue.find(jt,!1);ln(an,!1),an instanceof k&&an.children.forEach(function(sn){ln(sn,!1)})})):"attributes"===Ye.type&&ln(ft.prev)),ln(ft))}),this.children.forEach(Mn),Lt=(ri=Array.from(this.observer.takeRecords())).slice();Lt.length>0;)me.push(Lt.pop())}},be.prototype.update=function(me,Me){var Ue=this;void 0===Me&&(Me={}),me=me||this.observer.takeRecords();var st=new WeakMap;me.map(function(Lt){var ln=h.find(Lt.target,!0);return null==ln?null:st.has(ln.domNode)?(st.get(ln.domNode).push(Lt),null):(st.set(ln.domNode,[Lt]),ln)}).forEach(function(Lt){null!=Lt&&Lt!==Ue&&st.has(Lt.domNode)&&Lt.update(st.get(Lt.domNode)||[],Me)}),Me.mutationsMap=st,st.has(this.domNode)&&Pe.prototype.update.call(this,st.get(this.domNode),Me),this.optimize(me,Me)},be.blotName="scroll",be.defaultChild=Ne,be.allowedChildren=[Ne,F],be.scope=I.BLOCK_BLOT,be.tagName="DIV",be}(k),De=Ce,ke=function(){var Pe=function(me,Me){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,st){Ue.__proto__=st}||function(Ue,st){for(var Lt in st)st.hasOwnProperty(Lt)&&(Ue[Lt]=st[Lt])})(me,Me)};return function(be,me){function Me(){this.constructor=be}Pe(be,me),be.prototype=null===me?Object.create(me):(Me.prototype=me.prototype,new Me)}}(),Fe=function(Pe){function be(me,Me){var Ue=Pe.call(this,me,Me)||this;return Ue.text=Ue.statics.value(Ue.domNode),Ue}return ke(be,Pe),be.create=function(me){return document.createTextNode(me)},be.value=function(me){return me.data},be.prototype.deleteAt=function(me,Me){this.domNode.data=this.text=this.text.slice(0,me)+this.text.slice(me+Me)},be.prototype.index=function(me,Me){return this.domNode===me?Me:-1},be.prototype.insertAt=function(me,Me,Ue){null==Ue?(this.text=this.text.slice(0,me)+Me+this.text.slice(me),this.domNode.data=this.text):Pe.prototype.insertAt.call(this,me,Me,Ue)},be.prototype.length=function(){return this.text.length},be.prototype.optimize=function(me){Pe.prototype.optimize.call(this,me),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof be&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},be.prototype.position=function(me,Me){return void 0===Me&&(Me=!1),[this.domNode,me]},be.prototype.split=function(me,Me){if(void 0===Me&&(Me=!1),!Me){if(0===me)return this;if(me===this.length())return this.next}var Ue=this.scroll.create(this.domNode.splitText(me));return this.parent.insertBefore(Ue,this.next||void 0),this.text=this.statics.value(this.domNode),Ue},be.prototype.update=function(me,Me){var Ue=this;me.some(function(st){return"characterData"===st.type&&st.target===Ue.domNode})&&(this.text=this.statics.value(this.domNode))},be.prototype.value=function(){return this.text},be.blotName="text",be.scope=I.INLINE_BLOT,be}(B),ze=Fe},function(X,D,w){"use strict";var E=w(95),I=w.n(E),C=w(15),y=w(44),g=w(23);function p(V){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(W){return typeof W}:function(W){return W&&"function"==typeof Symbol&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(V)}function c(V,H){for(var W=0;W<H.length;W++){var q=H[W];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(V,q.key,q)}}function m(V,H,W){return(m=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(G,J,ne){var ae=function v(V,H){for(;!Object.prototype.hasOwnProperty.call(V,H)&&null!==(V=F(V)););return V}(G,J);if(ae){var ge=Object.getOwnPropertyDescriptor(ae,J);return ge.get?ge.get.call(ne):ge.value}})(V,H,W||V)}function b(V,H){if("function"!=typeof H&&null!==H)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(H&&H.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),H&&x(V,H)}function x(V,H){return(x=Object.setPrototypeOf||function(q,G){return q.__proto__=G,q})(V,H)}function O(V){var H=function A(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var G,q=F(V);if(H){var J=F(this).constructor;G=Reflect.construct(q,arguments,J)}else G=q.apply(this,arguments);return k(this,G)}}function k(V,H){if(H&&("object"===p(H)||"function"==typeof H))return H;if(void 0!==H)throw new TypeError("Derived constructors may only return object or undefined");return function M(V){if(void 0===V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}(V)}function F(V){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)})(V)}var P=Object(g.a)("quill:events");Object(C.a)()&&["selectionchange","mousedown","mouseup","click"].forEach(function(V){document.addEventListener(V,function(){for(var H=arguments.length,W=new Array(H),q=0;q<H;q++)W[q]=arguments[q];Array.from(document.querySelectorAll(".ql-container")).forEach(function(G){var ne,J=y.a.get(G);J&&J.emitter&&(ne=J.emitter).handleDOM.apply(ne,W)})})});var B=function(V){b(W,V);var H=O(W);function W(){var q;return function d(V,H){if(!(V instanceof H))throw new TypeError("Cannot call a class as a function")}(this,W),(q=H.call(this)).listeners={},q.on("error",P.error),q}return function h(V,H,W){return H&&c(V.prototype,H),W&&c(V,W),V}(W,[{key:"emit",value:function(){for(var G,J,ne=arguments.length,ae=new Array(ne),ge=0;ge<ne;ge++)ae[ge]=arguments[ge];(G=P.log).call.apply(G,[P].concat(ae)),(J=m(F(W.prototype),"emit",this)).call.apply(J,[this].concat(ae))}},{key:"handleDOM",value:function(G){for(var J=arguments.length,ne=new Array(J>1?J-1:0),ae=1;ae<J;ae++)ne[ae-1]=arguments[ae];(this.listeners[G.type]||[]).forEach(function(ge){var pe=ge.node,le=ge.handler;(G.target===pe||pe.contains(G.target))&&le.apply(void 0,[G].concat(ne))})}},{key:"listenDOM",value:function(G,J,ne){this.listeners[G]||(this.listeners[G]=[]),this.listeners[G].push({node:J,handler:ne})}}]),W}(I.a);B.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",CONTENT_SETTED:"content-setted"},B.sources={API:"api",SILENT:"silent",USER:"user"},D.a=B},function(X,D,w){"use strict";var E=w(16),I=w.n(E),C=w(30),y=w.n(C),g=w(37),p=w.n(g),d=w(1),c=w.n(d),h=w(2),m=w(7),v=w(24),b=w(6),x=w(10),O=w(9);function M(ve){return J(ve)||function A(ve){if(typeof Symbol<"u"&&null!=ve[Symbol.iterator]||null!=ve["@@iterator"])return Array.from(ve)}(ve)||W(ve)||H()}function F(ve,ee){var Ce=Object.keys(ve);if(Object.getOwnPropertySymbols){var De=Object.getOwnPropertySymbols(ve);ee&&(De=De.filter(function(ke){return Object.getOwnPropertyDescriptor(ve,ke).enumerable})),Ce.push.apply(Ce,De)}return Ce}function P(ve){for(var ee=1;ee<arguments.length;ee++){var Ce=null!=arguments[ee]?arguments[ee]:{};ee%2?F(Object(Ce),!0).forEach(function(De){N(ve,De,Ce[De])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ve,Object.getOwnPropertyDescriptors(Ce)):F(Object(Ce)).forEach(function(De){Object.defineProperty(ve,De,Object.getOwnPropertyDescriptor(Ce,De))})}return ve}function N(ve,ee,Ce){return ee in ve?Object.defineProperty(ve,ee,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):ve[ee]=Ce,ve}function B(ve){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Ce){return typeof Ce}:function(Ce){return Ce&&"function"==typeof Symbol&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce})(ve)}function V(ve,ee){return J(ve)||function G(ve,ee){var Ce=null==ve?null:typeof Symbol<"u"&&ve[Symbol.iterator]||ve["@@iterator"];if(null!=Ce){var ze,Pe,De=[],ke=!0,Fe=!1;try{for(Ce=Ce.call(ve);!(ke=(ze=Ce.next()).done)&&(De.push(ze.value),!ee||De.length!==ee);ke=!0);}catch(be){Fe=!0,Pe=be}finally{try{!ke&&null!=Ce.return&&Ce.return()}finally{if(Fe)throw Pe}}return De}}(ve,ee)||W(ve,ee)||H()}function H(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function W(ve,ee){if(ve){if("string"==typeof ve)return q(ve,ee);var Ce=Object.prototype.toString.call(ve).slice(8,-1);if("Object"===Ce&&ve.constructor&&(Ce=ve.constructor.name),"Map"===Ce||"Set"===Ce)return Array.from(ve);if("Arguments"===Ce||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ce))return q(ve,ee)}}function q(ve,ee){(null==ee||ee>ve.length)&&(ee=ve.length);for(var Ce=0,De=new Array(ee);Ce<ee;Ce++)De[Ce]=ve[Ce];return De}function J(ve){if(Array.isArray(ve))return ve}function ae(ve,ee){for(var Ce=0;Ce<ee.length;Ce++){var De=ee[Ce];De.enumerable=De.enumerable||!1,De.configurable=!0,"value"in De&&(De.writable=!0),Object.defineProperty(ve,De.key,De)}}var pe=/^[ -~]*$/,le=function(){function ve(ee){(function ne(ve,ee){if(!(ve instanceof ee))throw new TypeError("Cannot call a class as a function")})(this,ve),this.scroll=ee,this.delta=this.getDelta(),this.immediateFormats=new Set}return function ge(ve,ee,Ce){return ee&&ae(ve.prototype,ee),Ce&&ae(ve,Ce),ve}(ve,[{key:"addImmediateFormat",value:function(Ce){this.immediateFormats.add(Ce)}},{key:"applyDelta",value:function(Ce){var De=this;this.scroll.update();var ke=this.scroll.length();this.scroll.batchStart();var Fe=function $e(ve){return ve.reduce(function(ee,Ce){if("string"==typeof Ce.insert){var De=Ce.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return ee.insert(De,Ce.attributes)}return ee.push(Ce)},new c.a)}(Ce),ze=new c.a;return Fe.reduce(function(Pe,be){var me=d.Op.length(be),Me=be.attributes||{},Ue=!1;if(null!=be.insert){if(ze.retain(me),"string"==typeof be.insert){var st=be.insert;Ue=!st.endsWith("\n")&&(ke<=Pe||De.scroll.descendant(b.a,Pe)[0]),De.scroll.insertAt(Pe,st);var ln=V(De.scroll.line(Pe),2),Mn=ln[0],ri=ln[1],lr=p()({},Object(b.c)(Mn));if(Mn instanceof b.d){var jt=V(Mn.descendant(h.LeafBlot,ri),1)[0];lr=p()(lr,Object(b.c)(jt))}Me=d.AttributeMap.diff(lr,Me)||{}}else if("object"===B(be.insert)){var an=Object.keys(be.insert)[0];if(null==an)return Pe;Ue=null!=De.scroll.query(an,h.Scope.INLINE)&&(ke<=Pe||De.scroll.descendant(b.a,Pe)[0]),De.scroll.insertAt(Pe,an,be.insert[an])}ke+=me}else ze.push(be);var sn=Object.keys(Me);De.immediateFormats.forEach(function(xn){sn.indexOf(xn)>-1&&(De.scroll.formatAt(Pe,me,xn,Me[xn]),delete Me[xn])}),Object.keys(Me).forEach(function(xn){De.scroll.formatAt(Pe,me,xn,Me[xn])});var Bn=Ue?1:0;return ke+=Bn,ze.delete(Bn),Pe+me+Bn},0),ze.reduce(function(Pe,be){return"number"==typeof be.delete?(De.scroll.deleteAt(Pe,be.delete),Pe):Pe+d.Op.length(be)},0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(Fe)}},{key:"deleteText",value:function(Ce,De){return this.scroll.deleteAt(Ce,De),this.update((new c.a).retain(Ce).delete(De))}},{key:"formatLine",value:function(Ce,De){var ke=this,Fe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(Fe).forEach(function(Pe){ke.scroll.lines(Ce,Math.max(De,1)).forEach(function(be){be.format(Pe,Fe[Pe])})}),this.scroll.optimize();var ze=(new c.a).retain(Ce).retain(De,I()(Fe));return this.update(ze)}},{key:"formatText",value:function(Ce,De){var ke=this,Fe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(Fe).forEach(function(Pe){ke.scroll.formatAt(Ce,De,Pe,Fe[Pe])});var ze=(new c.a).retain(Ce).retain(De,I()(Fe));return this.update(ze)}},{key:"getContents",value:function(Ce,De){return this.delta.slice(Ce,Ce+De)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(Ce,De){return Ce.concat(De.delta())},new c.a)}},{key:"getFormat",value:function(Ce){var De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ke=[],Fe=[];0===De?this.scroll.path(Ce).forEach(function(be){var Me=V(be,1)[0];Me instanceof b.d?ke.push(Me):Me instanceof h.LeafBlot&&Fe.push(Me)}):(ke=this.scroll.lines(Ce,De),Fe=this.scroll.descendants(h.LeafBlot,Ce,De));var Pe=V([ke,Fe].map(function(be){if(0===be.length)return{};for(var me=Object(b.c)(be.shift());Object.keys(me).length>0;){var Me=be.shift();if(null==Me)return me;me=Oe(Object(b.c)(Me),me)}return me}),2);return Fe=Pe[1],P(P({},ke=Pe[0]),Fe)}},{key:"getHTML",value:function(Ce,De){var Fe=V(this.scroll.line(Ce),2),ze=Fe[0],Pe=Fe[1];return ze.length()>=Pe+De?oe(ze,Pe,De,!0):oe(this.scroll,Ce,De,!0)}},{key:"getText",value:function(Ce,De){return this.getContents(Ce,De).filter(function(ke){return"string"==typeof ke.insert}).map(function(ke){return ke.insert}).join("")}},{key:"insertEmbed",value:function(Ce,De,ke){return this.scroll.insertAt(Ce,De,ke),this.update((new c.a).retain(Ce).insert(N({},De,ke)))}},{key:"insertText",value:function(Ce,De){var ke=this,Fe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return De=De.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(Ce,De),Object.keys(Fe).forEach(function(ze){ke.scroll.formatAt(Ce,De.length,ze,Fe[ze])}),this.update((new c.a).retain(Ce).insert(De,I()(Fe)))}},{key:"isBlank",value:function(){if(0===this.scroll.children.length)return!0;if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.scroll.children.length>1)return!1;var De=this.scroll.children.head;return!(De.statics.blotName!==b.d.blotName||De.children.length>1)&&De.children.head instanceof x.a}},{key:"removeFormat",value:function(Ce,De){var ke=this.getText(Ce,De),ze=V(this.scroll.line(Ce+De),2),Pe=ze[0],be=ze[1],me=0,Me=new c.a;null!=Pe&&(me=Pe.length()-be,Me=Pe.delta().slice(be,be+me-1).insert("\n"));var st=this.getContents(Ce,De+me).diff((new c.a).insert(ke).concat(Me)),Lt=(new c.a).retain(Ce).concat(st);return this.applyDelta(Lt)}},{key:"update",value:function(Ce){var De=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],ke=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Fe=this.delta;if(1===De.length&&"characterData"===De[0].type&&De[0].target.data.match(pe)&&this.scroll.find(De[0].target)){var ze=this.scroll.find(De[0].target),Pe=Object(b.c)(ze),be=ze.offset(this.scroll),me=De[0].oldValue.replace(v.a.CONTENTS,""),Me=(new c.a).insert(me),Ue=(new c.a).insert(ze.value()),st=ke&&{oldRange:_e(ke.oldRange,-be),newRange:_e(ke.newRange,-be)};Ce=(new c.a).retain(be).concat(Me.diff(Ue,st)).reduce(function(ln,Mn){return Mn.insert?ln.insert(Mn.insert,Pe):ln.push(Mn)},new c.a),this.delta=Fe.compose(Ce)}else this.delta=this.getDelta(),(!Ce||!y()(Fe.compose(Ce),this.delta))&&(Ce=Fe.diff(this.delta,ke));return Ce}}]),ve}();function ce(ve,ee,Ce){if(0===ve.length){var Fe=V(Ae(Ce.pop()),1)[0];return ee<=0?"</li></".concat(Fe,">"):"</li></".concat(Fe,">").concat(ce([],ee-1,Ce))}var ze=M(ve),Pe=ze[0],be=Pe.child,me=Pe.offset,Me=Pe.length,Ue=Pe.indent,st=Pe.type,Lt=ze.slice(1),Mn=V(Ae(st,be),2),ri=Mn[0],lr=Mn[1];if(Ue>ee)return Ce.push(st),Ue===ee+1?"<".concat(ri,"><li").concat(lr,">").concat(oe(be,me,Me)).concat(ce(Lt,Ue,Ce)):"<".concat(ri,"><li>").concat(ce(ve,ee+1,Ce));if(Ue===ee&&st===Ce[Ce.length-1])return"</li><li".concat(lr,">").concat(oe(be,me,Me)).concat(ce(Lt,Ue,Ce));var jt=V(Ae(Ce.pop()),1);return"</li></".concat(jt[0],">").concat(ce(ve,ee-1,Ce))}function oe(ve,ee,Ce){var De=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"==typeof ve.html)return ve.html(ee,Ce);if(ve instanceof O.a)return Object(O.b)(ve.value().slice(ee,ee+Ce));if(ve.children){if("list-container"===ve.statics.blotName){var ke=[];return ve.children.forEachAt(ee,Ce,function(Lt,ln,Mn){var ri=Lt.formats();ke.push({child:Lt,offset:ln,length:Mn,indent:ri.indent||0,type:ri.list})}),ce(ke,-1,[])}var Fe=[];if(ve.children.forEachAt(ee,Ce,function(Lt,ln,Mn){Fe.push(oe(Lt,ln,Mn))}),K(ve.children,Fe),De||"list"===ve.statics.blotName)return Fe.join("");var ze=Q(ve),Me=V(ze.outerHTML.split(">".concat(ze.innerHTML,"<")),2),Ue=Me[0],st=Me[1];return 0===Ue.indexOf("<table")?"".concat(Ue.replace(/(\sdata-.+?=["'].*?["'])/g,""),">").concat(Fe.join("").replace(/(\sdata-table.+?=["'].*?["'])/g,""),"<").concat(st):"".concat(Ue,">").concat(Fe.join(""),"<").concat(st)}return ve.domNode.outerHTML}function K(ve,ee){1===ve.length&&ve.head instanceof x.a&&ee.push("<br>")}function Q(ve){var ee=ve.domNode.cloneNode(!0);return function de(ve,ee){return["tableCellLine","tableHeaderCellLine","tableCell","tableHeaderCell"].includes(ve.statics.blotName)&&function k(ve,ee){ve.classList.remove(ee),0===ve.classList.length&&ve.removeAttribute("class")}(ee,ve.statics.className),ee}(ve,ee)}function Oe(ve,ee){return Object.keys(ee).reduce(function(Ce,De){return null==ve[De]||(ee[De]===ve[De]?Ce[De]=ee[De]:Array.isArray(ee[De])?ee[De].indexOf(ve[De])<0&&(Ce[De]=ee[De].concat([ve[De]])):Ce[De]=[ee[De],ve[De]]),Ce},{})}function Ae(ve,ee){var Ce="ordered"===ve?"ol":"ul",De=ee?"".concat(function Ne(ve){var ee=ve.domNode;if(!ee.hasAttributes())return"";for(var Ce=ee.attributes,De=" ",ke=0;ke<Ce.length;ke+=1){var Fe=Ce[ke].name,ze=Ce[ke].value;"class"===Fe&&(ze=Qe(ze)),ze.length&&-1===Fe.indexOf("data-")&&(De+="".concat(Fe,'="').concat(ze,'"'))}return De.length>1?De:""}(ee)):"";switch(ve){case"checked":return[Ce,"".concat(De,' data-list="checked"')];case"unchecked":return[Ce,"".concat(De,' data-list="unchecked"')];default:return[Ce,De]}}function Qe(ve){return ve.replace(/ql-indent-\d/g,"").trim()}function _e(ve,ee){return new m.a(ve.index+ee,ve.length)}D.a=le},function(X,D,w){"use strict";function E(I){return null!=I}w.d(D,"a",function(){return E})},function(X,D,w){"use strict";w.d(D,"b",function(){return ae}),w.d(D,"c",function(){return ge}),w.d(D,"a",function(){return ne}),w.d(D,"d",function(){return J});var E=w(1),I=w.n(E),C=w(2),y=w(10),g=w(14),p=w(9),d=w(19);function c(pe,le,ce,oe){return ce.map(K=>{const Q=oe?Object(d.b)(pe,K,oe):K;return le.scroll.query(Q,C.Scope.ATTRIBUTE)}).filter(K=>K instanceof C.Attributor).reduce((K,Q)=>(K[Q.attrName]=Q,K),{})}function m(pe){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(pe)}function v(pe,le){var ce=Object.keys(pe);if(Object.getOwnPropertySymbols){var oe=Object.getOwnPropertySymbols(pe);le&&(oe=oe.filter(function(K){return Object.getOwnPropertyDescriptor(pe,K).enumerable})),ce.push.apply(ce,oe)}return ce}function b(pe){for(var le=1;le<arguments.length;le++){var ce=null!=arguments[le]?arguments[le]:{};le%2?v(Object(ce),!0).forEach(function(oe){x(pe,oe,ce[oe])}):Object.getOwnPropertyDescriptors?Object.defineProperties(pe,Object.getOwnPropertyDescriptors(ce)):v(Object(ce)).forEach(function(oe){Object.defineProperty(pe,oe,Object.getOwnPropertyDescriptor(ce,oe))})}return pe}function x(pe,le,ce){return le in pe?Object.defineProperty(pe,le,{value:ce,enumerable:!0,configurable:!0,writable:!0}):pe[le]=ce,pe}function O(pe,le){if(!(pe instanceof le))throw new TypeError("Cannot call a class as a function")}function k(pe,le){for(var ce=0;ce<le.length;ce++){var oe=le[ce];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(pe,oe.key,oe)}}function M(pe,le,ce){return le&&k(pe.prototype,le),ce&&k(pe,ce),pe}function A(pe,le,ce){return(A=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(K,Q,de){var Oe=function F(pe,le){for(;!Object.prototype.hasOwnProperty.call(pe,le)&&null!==(pe=q(pe)););return pe}(K,Q);if(Oe){var Ae=Object.getOwnPropertyDescriptor(Oe,Q);return Ae.get?Ae.get.call(de):Ae.value}})(pe,le,ce||pe)}function P(pe,le){if("function"!=typeof le&&null!==le)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(le&&le.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),le&&N(pe,le)}function N(pe,le){return(N=Object.setPrototypeOf||function(oe,K){return oe.__proto__=K,oe})(pe,le)}function B(pe){var le=function W(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,oe=q(pe);if(le){var Q=q(this).constructor;K=Reflect.construct(oe,arguments,Q)}else K=oe.apply(this,arguments);return V(this,K)}}function V(pe,le){if(le&&("object"===m(le)||"function"==typeof le))return le;if(void 0!==le)throw new TypeError("Derived constructors may only return object or undefined");return function H(pe){if(void 0===pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return pe}(pe)}function q(pe){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(ce){return ce.__proto__||Object.getPrototypeOf(ce)})(pe)}!function h(){C.AttributorStore.prototype.build=function(){const{tagName:pe}=this.domNode,le=C.Registry.find(this.domNode);if(null==le)return;const ce=C.Attributor.keys(this.domNode),oe=C.ClassAttributor.keys(this.domNode),K=C.StyleAttributor.keys(this.domNode);this.attributes={...c(pe,le,ce,d.a.attribute),...c(pe,le,oe),...c(pe,le,K,d.a.style)}}}();var J=function(pe){P(ce,pe);var le=B(ce);function ce(oe,K){var Q;return O(this,ce),(Q=le.call(this,oe,K)).cache={},Q}return M(ce,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=ae(this)),this.cache.delta}},{key:"deleteAt",value:function(K,Q){A(q(ce.prototype),"deleteAt",this).call(this,K,Q),this.cache={}}},{key:"formatAt",value:function(K,Q,de,Oe){Q<=0||(this.scroll.query(de,C.Scope.BLOCK)?K+Q===this.length()&&this.format(de,Oe):A(q(ce.prototype),"formatAt",this).call(this,K,Math.min(Q,this.length()-K-1),de,Oe),this.cache={})}},{key:"insertAt",value:function(K,Q,de){if(null!=de)return A(q(ce.prototype),"insertAt",this).call(this,K,Q,de),void(this.cache={});if(0!==Q.length){var Oe=Q.split("\n"),Ae=Oe.shift();Ae.length>0&&(K<this.length()-1||null==this.children.tail?A(q(ce.prototype),"insertAt",this).call(this,Math.min(K,this.length()-1),Ae):this.children.tail.insertAt(this.children.tail.length(),Ae),this.cache={});var Ne=this;Oe.reduce(function(Qe,$e){return(Ne=Ne.split(Qe,!0)).insertAt(0,$e),$e.length},K+Ae.length)}}},{key:"insertBefore",value:function(K,Q){var de=this.children.head;A(q(ce.prototype),"insertBefore",this).call(this,K,Q),de instanceof y.a&&de.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=A(q(ce.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(K,Q){A(q(ce.prototype),"moveChildren",this).call(this,K,Q),this.cache={}}},{key:"optimize",value:function(K){A(q(ce.prototype),"optimize",this).call(this,K),this.cache={}}},{key:"path",value:function(K){return A(q(ce.prototype),"path",this).call(this,K,!0)}},{key:"removeChild",value:function(K){A(q(ce.prototype),"removeChild",this).call(this,K),this.cache={}}},{key:"split",value:function(K){var Q=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Q&&(0===K||K>=this.length()-1)){var de=this.clone();return 0===K?(this.parent.insertBefore(de,this),this):(this.parent.insertBefore(de,this.next),de)}var Oe=A(q(ce.prototype),"split",this).call(this,K,Q);return this.cache={},Oe}}]),ce}(C.BlockBlot);J.blotName="block",J.tagName="P",J.defaultChild=y.a,J.allowedChildren=[y.a,g.a,C.EmbedBlot,p.a];var ne=function(pe){P(ce,pe);var le=B(ce);function ce(){return O(this,ce),le.apply(this,arguments)}return M(ce,[{key:"attach",value:function(){A(q(ce.prototype),"attach",this).call(this),this.attributes=new C.AttributorStore(this.domNode)}},{key:"delta",value:function(){return(new I.a).insert(this.value(),b(b({},this.formats()),this.attributes.values()))}},{key:"format",value:function(K,Q){var de=this.scroll.query(K,C.Scope.BLOCK_ATTRIBUTE);null!=de&&this.attributes.attribute(de,Q)}},{key:"formatAt",value:function(K,Q,de,Oe){this.format(de,Oe)}},{key:"insertAt",value:function(K,Q,de){if("string"==typeof Q&&Q.endsWith("\n")){var Oe=this.scroll.create(J.blotName);this.parent.insertBefore(Oe,0===K?this:this.next),Oe.insertAt(0,Q.slice(0,-1))}else A(q(ce.prototype),"insertAt",this).call(this,K,Q,de)}}]),ce}(C.EmbedBlot);function ae(pe){var le=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return pe.descendants(C.LeafBlot).reduce(function(ce,oe){return 0===oe.length()?ce:ce.insert(oe.value(),ge(oe,{},le))},new I.a).insert("\n",ge(pe))}function ge(pe){var le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ce=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==pe||("function"==typeof pe.formats&&(le=b(b({},le),pe.formats()),ce&&delete le["code-token"]),null==pe.parent||"scroll"===pe.parent.statics.blotName||pe.parent.statics.scope!==pe.statics.scope)?le:ge(pe.parent,le,ce)}ne.scope=C.Scope.BLOCK_BLOT},function(X,D,w){"use strict";w.d(D,"a",function(){return V}),w.d(D,"b",function(){return H});var E=w(2),I=w(16),C=w.n(I),y=w(30),g=w.n(y),p=w(3),d=w(23);function c(q){return function v(q){if(Array.isArray(q))return k(q)}(q)||function m(q){if(typeof Symbol<"u"&&null!=q[Symbol.iterator]||null!=q["@@iterator"])return Array.from(q)}(q)||O(q)||function h(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(q,G){return function A(q){if(Array.isArray(q))return q}(q)||function M(q,G){var J=null==q?null:typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(null!=J){var pe,le,ne=[],ae=!0,ge=!1;try{for(J=J.call(q);!(ae=(pe=J.next()).done)&&(ne.push(pe.value),!G||ne.length!==G);ae=!0);}catch(ce){ge=!0,le=ce}finally{try{!ae&&null!=J.return&&J.return()}finally{if(ge)throw le}}return ne}}(q,G)||O(q,G)||function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(q,G){if(q){if("string"==typeof q)return k(q,G);var J=Object.prototype.toString.call(q).slice(8,-1);if("Object"===J&&q.constructor&&(J=q.constructor.name),"Map"===J||"Set"===J)return Array.from(q);if("Arguments"===J||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return k(q,G)}}function k(q,G){(null==G||G>q.length)&&(G=q.length);for(var J=0,ne=new Array(G);J<G;J++)ne[J]=q[J];return ne}function F(q,G){for(var J=0;J<G.length;J++){var ne=G[J];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(q,ne.key,ne)}}function N(q,G){if(!(q instanceof G))throw new TypeError("Cannot call a class as a function")}var B=Object(d.a)("quill:selection"),V=function q(G){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;N(this,q),this.index=G,this.length=J},H=function(){function q(G,J){var ne=this;N(this,q),this.emitter=J,this.scroll=G,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new V(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){!ne.mouseDown&&!ne.composing&&setTimeout(ne.update.bind(ne,p.a.sources.USER),1)}),this.emitter.on(p.a.events.SCROLL_BEFORE_UPDATE,function(){if(ne.hasFocus()){var ae=ne.getNativeRange();null!=ae&&ae.start.node!==ne.cursor.textNode&&ne.emitter.once(p.a.events.SCROLL_UPDATE,function(){try{ne.root.contains(ae.start.node)&&ne.root.contains(ae.end.node)&&ne.setNativeRange(ae.start.node,ae.start.offset,ae.end.node,ae.end.offset),ne.update(p.a.sources.SILENT)}catch{}})}}),this.emitter.on(p.a.events.SCROLL_OPTIMIZE,function(ae,ge){if(ge.range){var pe=ge.range;ne.setNativeRange(pe.startNode,pe.startOffset,pe.endNode,pe.endOffset),ne.update(p.a.sources.SILENT)}}),this.update(p.a.sources.SILENT)}return function P(q,G,J){return G&&F(q.prototype,G),J&&F(q,J),q}(q,[{key:"handleComposition",value:function(){var J=this;this.root.addEventListener("compositionstart",function(){J.composing=!0,J.scroll.batchStart()}),this.root.addEventListener("compositionend",function(){if(J.scroll.batchEnd(),J.composing=!1,J.cursor.parent){var ne=J.cursor.restore();if(!ne)return;setTimeout(function(){J.setNativeRange(ne.startNode,ne.startOffset,ne.endNode,ne.endOffset)},1)}})}},{key:"handleDragging",value:function(){var J=this;this.emitter.listenDOM("mousedown",document.body,function(){J.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){J.mouseDown=!1,J.update(p.a.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(J,ne){this.scroll.update();var ae=this.getNativeRange();if(null!=ae&&ae.native.collapsed&&!this.scroll.query(J,E.Scope.BLOCK)){if(ae.start.node!==this.cursor.textNode){var ge=this.scroll.find(ae.start.node,!1);if(null==ge)return;if(ge instanceof E.LeafBlot){var pe=ge.split(ae.start.offset);ge.parent.insertBefore(this.cursor,pe)}else ge.insertBefore(this.cursor,ae.start.node);this.cursor.attach()}this.cursor.format(J,ne),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}},{key:"getBounds",value:function(J){var ne=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,ae=this.scroll.length();J=Math.min(J,ae-1),ne=Math.min(J+ne,ae-1)-J;var ge,le=b(this.scroll.leaf(J),2),ce=le[0],oe=le[1];if(null==ce)return null;var Q=b(ce.position(oe,!0),2);ge=Q[0],oe=Q[1];var de=document.createRange();if(ne>0){de.setStart(ge,oe);var Ae=b(this.scroll.leaf(J+ne),2);if(null==(ce=Ae[0]))return null;var Qe=b(ce.position(oe=Ae[1],!0),2);return de.setEnd(ge=Qe[0],oe=Qe[1]),de.getBoundingClientRect()}var _e,$e="left";return ge instanceof Text?(oe<ge.data.length?(de.setStart(ge,oe),de.setEnd(ge,oe+1)):(de.setStart(ge,oe-1),de.setEnd(ge,oe),$e="right"),_e=de.getBoundingClientRect()):(_e=ce.domNode.getBoundingClientRect(),oe>0&&($e="right")),{bottom:_e.top+_e.height,height:_e.height,left:_e[$e],right:_e[$e],top:_e.top,width:0}}},{key:"getNativeRange",value:function(){var J=document.getSelection();if(null==J||J.rangeCount<=0)return null;var ne=J.getRangeAt(0);if(null==ne)return null;var ae=this.normalizeNative(ne);return B.info("getNativeRange",ae),ae}},{key:"getRange",value:function(){var J=this.getNativeRange();return null==J?[null,null]:[this.normalizedToRange(J),J]}},{key:"hasFocus",value:function(){return document.activeElement===this.root||W(this.root,document.activeElement)}},{key:"normalizedToRange",value:function(J){var ne=this,ae=[[J.start.node,J.start.offset]];J.native.collapsed||ae.push([J.end.node,J.end.offset]);var ge=ae.map(function(ce){var oe=b(ce,2),K=oe[0],Q=oe[1],de=ne.scroll.find(K,!0),Oe=de.offset(ne.scroll);return 0===Q?Oe:de instanceof E.LeafBlot?Oe+de.index(K,Q):Oe+de.length()}),pe=Math.min(Math.max.apply(Math,c(ge)),this.scroll.length()-1),le=Math.min.apply(Math,[pe].concat(c(ge)));return new V(le,pe-le)}},{key:"normalizeNative",value:function(J){if(!W(this.root,J.startContainer)||!J.collapsed&&!W(this.root,J.endContainer))return null;var ne={start:{node:J.startContainer,offset:J.startOffset},end:{node:J.endContainer,offset:J.endOffset},native:J};return[ne.start,ne.end].forEach(function(ae){for(var ge=ae.node,pe=ae.offset;!(ge instanceof Text)&&ge.childNodes.length>0;)if(ge.childNodes.length>pe)ge=ge.childNodes[pe],pe=0;else{if(ge.childNodes.length!==pe)break;pe=(ge=ge.lastChild)instanceof Text?ge.data.length:ge.childNodes.length>0?ge.childNodes.length:ge.childNodes.length+1}ae.node=ge,ae.offset=pe}),ne}},{key:"rangeToNative",value:function(J){var ne=this,ae=J.collapsed?[J.index]:[J.index,J.index+J.length],ge=[],pe=this.scroll.length();return ae.forEach(function(le,ce){le=Math.min(pe-1,le);var K=b(ne.scroll.leaf(le),2),Ae=b(K[0].position(K[1],0!==ce),2);ge.push(Ae[0],Ae[1])}),ge.length<2?ge.concat(ge):ge}},{key:"scrollIntoView",value:function(J){var ne=this.lastRange;if(null!=ne){var ae=this.getBounds(ne.index,ne.length);if(null!=ae){var ge=this.scroll.length()-1,ce=b(this.scroll.line(Math.min(ne.index,ge)),1)[0],oe=ce;if(ne.length>0&&(oe=b(this.scroll.line(Math.min(ne.index+ne.length,ge)),1)[0]),null!=ce&&null!=oe){var de=J.getBoundingClientRect();ae.top<de.top?J.scrollTop-=de.top-ae.top:ae.bottom>de.bottom&&(J.scrollTop+=ae.bottom-de.bottom)}}}}},{key:"setNativeRange",value:function(J,ne){var ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:J,ge=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ne,pe=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(B.info("setNativeRange",J,ne,ae,ge),null==J||null!=this.root.parentNode&&null!=J.parentNode&&null!=ae.parentNode){var le=document.getSelection();if(null!=le)if(null!=J){this.hasFocus()||this.root.focus();var oe=(this.getNativeRange()||{}).native;if(null==oe||pe||J!==oe.startContainer||ne!==oe.startOffset||ae!==oe.endContainer||ge!==oe.endOffset){"BR"===J.tagName&&(ne=Array.from(J.parentNode.childNodes).indexOf(J),J=J.parentNode),"BR"===ae.tagName&&(ge=Array.from(ae.parentNode.childNodes).indexOf(ae),ae=ae.parentNode);var K=document.createRange();K.setStart(J,ne),K.setEnd(ae,ge),le.removeAllRanges(),le.addRange(K)}}else le.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(J){var ne=arguments.length>1&&void 0!==arguments[1]&&arguments[1],ae=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.a.sources.API;if("string"==typeof ne&&(ae=ne,ne=!1),B.info("setRange",J),null!=J){var ge=this.rangeToNative(J);this.setNativeRange.apply(this,c(ge).concat([ne]))}else this.setNativeRange(null);this.update(ae)}},{key:"update",value:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.a.sources.USER,ne=this.lastRange,ge=b(this.getRange(),2),le=ge[1];if(this.lastRange=ge[0],this.lastNative=le,null!=this.lastRange&&(this.savedRange=this.lastRange),!g()(ne,this.lastRange)){var ce;if(!this.composing&&null!=le&&le.native.collapsed&&le.start.node!==this.cursor.textNode){var oe=this.cursor.restore();oe&&this.setNativeRange(oe.startNode,oe.startOffset,oe.endNode,oe.endOffset)}var Q,K=[p.a.events.SELECTION_CHANGE,C()(this.lastRange),C()(ne),J];(ce=this.emitter).emit.apply(ce,[p.a.events.EDITOR_CHANGE].concat(K)),J!==p.a.sources.SILENT&&(Q=this.emitter).emit.apply(Q,K)}}}]),q}();function W(q,G){return G instanceof Text&&(G=G.parentNode),q.contains(G)}},function(X,D,w){(function(E){var I=function(C){return C&&C.Math==Math&&C};X.exports=I("object"==typeof globalThis&&globalThis)||I("object"==typeof window&&window)||I("object"==typeof self&&self)||I("object"==typeof E&&E)||function(){return this}()||Function("return this")()}).call(this,w(58))},function(X,D,w){"use strict";function I(x){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(x)}function C(x,O){if(!(x instanceof O))throw new TypeError("Cannot call a class as a function")}function y(x,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(O&&O.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),O&&g(x,O)}function g(x,O){return(g=Object.setPrototypeOf||function(M,A){return M.__proto__=A,M})(x,O)}function p(x){var O=function h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var A,M=m(x);if(O){var F=m(this).constructor;A=Reflect.construct(M,arguments,F)}else A=M.apply(this,arguments);return d(this,A)}}function d(x,O){if(O&&("object"===I(O)||"function"==typeof O))return O;if(void 0!==O)throw new TypeError("Derived constructors may only return object or undefined");return function c(x){if(void 0===x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}(x)}function m(x){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(x)}w.d(D,"a",function(){return v}),w.d(D,"b",function(){return b});var v=function(x){y(k,x);var O=p(k);function k(){return C(this,k),O.apply(this,arguments)}return k}(w(2).TextBlot);function b(x){return x.replace(/[&<>"']/g,function(O){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[O]})}},function(X,D,w){"use strict";function I(O){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(M){return typeof M}:function(M){return M&&"function"==typeof Symbol&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M})(O)}function C(O,k){if(!(O instanceof k))throw new TypeError("Cannot call a class as a function")}function y(O,k){for(var M=0;M<k.length;M++){var A=k[M];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}function p(O,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(k&&k.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),k&&d(O,k)}function d(O,k){return(d=Object.setPrototypeOf||function(A,F){return A.__proto__=F,A})(O,k)}function c(O){var k=function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var F,A=b(O);if(k){var P=b(this).constructor;F=Reflect.construct(A,arguments,P)}else F=A.apply(this,arguments);return h(this,F)}}function h(O,k){if(k&&("object"===I(k)||"function"==typeof k))return k;if(void 0!==k)throw new TypeError("Derived constructors may only return object or undefined");return function m(O){if(void 0===O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(O)}function b(O){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)})(O)}var x=function(O){p(M,O);var k=c(M);function M(){return C(this,M),k.apply(this,arguments)}return function g(O,k,M){return k&&y(O.prototype,k),M&&y(O,M),O}(M,[{key:"optimize",value:function(){(this.prev||this.next)&&this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),M}(w(2).EmbedBlot);x.blotName="break",x.tagName="BR",D.a=x},function(X,D,w){"use strict";w.d(D,"b",function(){return m}),w.d(D,"d",function(){return v}),w.d(D,"c",function(){return b}),w.d(D,"a",function(){return x});var E=w(73),I=w(74),C=w(32);function y(O){return function c(O){if(Array.isArray(O))return h(O)}(O)||function d(O){if(typeof Symbol<"u"&&null!=O[Symbol.iterator]||null!=O["@@iterator"])return Array.from(O)}(O)||function p(O,k){if(O){if("string"==typeof O)return h(O,k);var M=Object.prototype.toString.call(O).slice(8,-1);if("Object"===M&&O.constructor&&(M=O.constructor.name),"Map"===M||"Set"===M)return Array.from(O);if("Arguments"===M||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return h(O,k)}}(O)||function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(O,k){(null==k||k>O.length)&&(k=O.length);for(var M=0,A=new Array(k);M<k;M++)A[M]=O[M];return A}var m=C.a.map(function(O){return Object(E.a)(C.d,O)}),v=C.c.map(function(O){return Object(I.a)(C.d,O)}),b=v.reduce(function(O,k){return O[k.attrName]=k,O},{}),x=[].concat(y(m),y(v)).reduce(function(O,k){return O[k.keyName]=k,O},{})},function(X,D,w){"use strict";function E(C,y){if(!(C instanceof y))throw new TypeError("Cannot call a class as a function")}var I=function C(y){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};E(this,C),this.quill=y,this.options=g};I.DEFAULTS={},D.a=I},function(X,D,w){"use strict";function I(b){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(O){return typeof O}:function(O){return O&&"function"==typeof Symbol&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(b)}function C(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function y(b,x){if("function"!=typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),x&&g(b,x)}function g(b,x){return(g=Object.setPrototypeOf||function(k,M){return k.__proto__=M,k})(b,x)}function p(b){var x=function h(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var M,k=m(b);if(x){var A=m(this).constructor;M=Reflect.construct(k,arguments,A)}else M=k.apply(this,arguments);return d(this,M)}}function d(b,x){if(x&&("object"===I(x)||"function"==typeof x))return x;if(void 0!==x)throw new TypeError("Derived constructors may only return object or undefined");return function c(b){if(void 0===b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(b)}function m(b){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)})(b)}var v=function(b){y(O,b);var x=p(O);function O(){return C(this,O),x.apply(this,arguments)}return O}(w(2).ContainerBlot);D.a=v},function(X,D,w){"use strict";var E=w(2),I=w(10),C=w(9);function y(F){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(F)}function g(F,P){if(!(F instanceof P))throw new TypeError("Cannot call a class as a function")}function p(F,P){for(var N=0;N<P.length;N++){var B=P[N];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}function c(F,P,N){return(c=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(V,H,W){var q=function h(F,P){for(;!Object.prototype.hasOwnProperty.call(F,P)&&null!==(F=M(F)););return F}(V,H);if(q){var G=Object.getOwnPropertyDescriptor(q,H);return G.get?G.get.call(W):G.value}})(F,P,N||F)}function m(F,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),P&&v(F,P)}function v(F,P){return(v=Object.setPrototypeOf||function(B,V){return B.__proto__=V,B})(F,P)}function b(F){var P=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,B=M(F);if(P){var H=M(this).constructor;V=Reflect.construct(B,arguments,H)}else V=B.apply(this,arguments);return x(this,V)}}function x(F,P){if(P&&("object"===y(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return function O(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(F)}function M(F){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)})(F)}var A=function(F){m(N,F);var P=b(N);function N(){return g(this,N),P.apply(this,arguments)}return function d(F,P,N){return P&&p(F.prototype,P),N&&p(F,N),F}(N,[{key:"formatAt",value:function(V,H,W,q){if(N.compare(this.statics.blotName,W)<0&&this.scroll.query(W,E.Scope.BLOT)){var G=this.isolate(V,H);q&&G.wrap(W,q)}else c(M(N.prototype),"formatAt",this).call(this,V,H,W,q)}},{key:"optimize",value:function(V){if(c(M(N.prototype),"optimize",this).call(this,V),this.parent instanceof N&&N.compare(this.statics.blotName,this.parent.statics.blotName)>0){var H=this.parent.isolate(this.offset(),this.length());this.moveChildren(H),H.wrap(this)}}}],[{key:"compare",value:function(V,H){var W=N.order.indexOf(V),q=N.order.indexOf(H);return W>=0||q>=0?W-q:V===H?0:V<H?-1:1}}]),N}(E.InlineBlot);A.allowedChildren=[A,I.a,E.EmbedBlot,C.a],A.order=["cursor","inline","link","underline","strike","italic","bold","script","code"],D.a=A},function(X,D,w){"use strict";D.a=function(){return typeof window<"u"}},function(X,D,w){(function(E,I){var y="__lodash_hash_undefined__",g=9007199254740991,p="[object Arguments]",c="[object Boolean]",h="[object Date]",v="[object Function]",b="[object GeneratorFunction]",x="[object Map]",O="[object Number]",k="[object Object]",M="[object Promise]",A="[object RegExp]",F="[object Set]",P="[object String]",N="[object Symbol]",B="[object WeakMap]",V="[object ArrayBuffer]",H="[object DataView]",W="[object Float32Array]",q="[object Float64Array]",G="[object Int8Array]",J="[object Int16Array]",ne="[object Int32Array]",ae="[object Uint8Array]",ge="[object Uint8ClampedArray]",pe="[object Uint16Array]",le="[object Uint32Array]",oe=/\w*$/,K=/^\[object .+?Constructor\]$/,Q=/^(?:0|[1-9]\d*)$/,de={};de[p]=de["[object Array]"]=de[V]=de[H]=de[c]=de[h]=de[W]=de[q]=de[G]=de[J]=de[ne]=de[x]=de[O]=de[k]=de[A]=de[F]=de[P]=de[N]=de[ae]=de[ge]=de[pe]=de[le]=!0,de["[object Error]"]=de[v]=de[B]=!1;var Ae="object"==typeof self&&self&&self.Object===Object&&self,Ne="object"==typeof E&&E&&E.Object===Object&&E||Ae||Function("return this")(),Qe=D&&!D.nodeType&&D,$e=Qe&&"object"==typeof I&&I&&!I.nodeType&&I,_e=$e&&$e.exports===Qe;function xe(Ee,rt){return Ee.set(rt[0],rt[1]),Ee}function ve(Ee,rt){return Ee.add(rt),Ee}function De(Ee,rt,Le,dt){var Vt=-1,_n=Ee?Ee.length:0;for(dt&&_n&&(Le=Ee[++Vt]);++Vt<_n;)Le=rt(Le,Ee[Vt],Vt,Ee);return Le}function ze(Ee){var rt=!1;if(null!=Ee&&"function"!=typeof Ee.toString)try{rt=!!(Ee+"")}catch{}return rt}function Pe(Ee){var rt=-1,Le=Array(Ee.size);return Ee.forEach(function(dt,Vt){Le[++rt]=[Vt,dt]}),Le}function be(Ee,rt){return function(Le){return Ee(rt(Le))}}function me(Ee){var rt=-1,Le=Array(Ee.size);return Ee.forEach(function(dt){Le[++rt]=dt}),Le}var Ee,Me=Array.prototype,Ue=Function.prototype,st=Object.prototype,Lt=Ne["__core-js_shared__"],ln=(Ee=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+Ee:"",Mn=Ue.toString,ri=st.hasOwnProperty,lr=st.toString,Ye=RegExp("^"+Mn.call(ri).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=_e?Ne.Buffer:void 0,jt=Ne.Symbol,an=Ne.Uint8Array,sn=be(Object.getPrototypeOf,Object),Bn=Object.create,xn=st.propertyIsEnumerable,ai=Me.splice,yi=Object.getOwnPropertySymbols,Xi=ft?ft.isBuffer:void 0,Vr=be(Object.keys,Object),Ar=Et(Ne,"DataView"),ko=Et(Ne,"Map"),Ht=Et(Ne,"Promise"),en=Et(Ne,"Set"),Gt=Et(Ne,"WeakMap"),ht=Et(Object,"create"),ut=Za(Ar),tt=Za(ko),xt=Za(Ht),_t=Za(en),Mt=Za(Gt),At=jt?jt.prototype:void 0,Ut=At?At.valueOf:void 0;function En(Ee){var rt=-1,Le=Ee?Ee.length:0;for(this.clear();++rt<Le;){var dt=Ee[rt];this.set(dt[0],dt[1])}}function pi(Ee){var rt=-1,Le=Ee?Ee.length:0;for(this.clear();++rt<Le;){var dt=Ee[rt];this.set(dt[0],dt[1])}}function Rr(Ee){var rt=-1,Le=Ee?Ee.length:0;for(this.clear();++rt<Le;){var dt=Ee[rt];this.set(dt[0],dt[1])}}function Cs(Ee){this.__data__=new pi(Ee)}function la(Ee,rt){var Le=Zl(Ee)||function yu(Ee){return function qt(Ee){return function Xl(Ee){return!!Ee&&"object"==typeof Ee}(Ee)&&Vd(Ee)}(Ee)&&ri.call(Ee,"callee")&&(!xn.call(Ee,"callee")||lr.call(Ee)==p)}(Ee)?function ke(Ee,rt){for(var Le=-1,dt=Array(Ee);++Le<Ee;)dt[Le]=rt(Le);return dt}(Ee.length,String):[],dt=Le.length,Vt=!!dt;for(var _n in Ee)(rt||ri.call(Ee,_n))&&(!Vt||"length"!=_n&&!Ho(_n,dt))&&Le.push(_n);return Le}function na(Ee,rt,Le){var dt=Ee[rt];(!ri.call(Ee,rt)||!td(dt,Le)||void 0===Le&&!(rt in Ee))&&(Ee[rt]=Le)}function ar(Ee,rt){for(var Le=Ee.length;Le--;)if(td(Ee[Le][0],rt))return Le;return-1}function dc(Ee,rt,Le,dt,Vt,_n,zn){var Fi;if(dt&&(Fi=_n?dt(Ee,Vt,_n,zn):dt(Ee)),void 0!==Fi)return Fi;if(!Qs(Ee))return Ee;var Yi=Zl(Ee);if(Yi){if(Fi=function gi(Ee){var rt=Ee.length,Le=Ee.constructor(rt);return rt&&"string"==typeof Ee[0]&&ri.call(Ee,"index")&&(Le.index=Ee.index,Le.input=Ee.input),Le}(Ee),!rt)return function Qc(Ee,rt){var Le=-1,dt=Ee.length;for(rt||(rt=Array(dt));++Le<dt;)rt[Le]=Ee[Le];return rt}(Ee,Fi)}else{var Ei=dn(Ee),hr=Ei==v||Ei==b;if(Xa(Ee))return function mu(Ee,rt){if(rt)return Ee.slice();var Le=new Ee.constructor(Ee.length);return Ee.copy(Le),Le}(Ee,rt);if(Ei==k||Ei==p||hr&&!_n){if(ze(Ee))return _n?Ee:{};if(Fi=function ir(Ee){return"function"!=typeof Ee.constructor||Yl(Ee)?{}:function Jc(Ee){return Qs(Ee)?Bn(Ee):{}}(sn(Ee))}(hr?{}:Ee),!rt)return function vu(Ee,rt){return Ui(Ee,Jt(Ee),rt)}(Ee,function ua(Ee,rt){return Ee&&Ui(rt,th(rt),Ee)}(Fi,Ee))}else{if(!de[Ei])return _n?Ee:{};Fi=function Mo(Ee,rt,Le,dt){var Vt=Ee.constructor;switch(rt){case V:return _u(Ee);case c:case h:return new Vt(+Ee);case H:return function Cl(Ee,rt){var Le=rt?_u(Ee.buffer):Ee.buffer;return new Ee.constructor(Le,Ee.byteOffset,Ee.byteLength)}(Ee,dt);case W:case q:case G:case J:case ne:case ae:case ge:case pe:case le:return function Js(Ee,rt){var Le=rt?_u(Ee.buffer):Ee.buffer;return new Ee.constructor(Le,Ee.byteOffset,Ee.length)}(Ee,dt);case x:return function bl(Ee,rt,Le){return De(rt?Le(Pe(Ee),!0):Pe(Ee),xe,new Ee.constructor)}(Ee,dt,Le);case O:case P:return new Vt(Ee);case A:return function Xs(Ee){var rt=new Ee.constructor(Ee.source,oe.exec(Ee));return rt.lastIndex=Ee.lastIndex,rt}(Ee);case F:return function ed(Ee,rt,Le){return De(rt?Le(me(Ee),!0):me(Ee),ve,new Ee.constructor)}(Ee,dt,Le);case N:return function ql(Ee){return Ut?Object(Ut.call(Ee)):{}}(Ee)}}(Ee,Ei,dc,rt)}}zn||(zn=new Cs);var Zr=zn.get(Ee);if(Zr)return Zr;if(zn.set(Ee,Fi),!Yi)var Hr=Le?function Xe(Ee){return function Hn(Ee,rt,Le){var dt=rt(Ee);return Zl(Ee)?dt:function Ce(Ee,rt){for(var Le=-1,dt=rt.length,Vt=Ee.length;++Le<dt;)Ee[Vt+Le]=rt[Le];return Ee}(dt,Le(Ee))}(Ee,th,Jt)}(Ee):th(Ee);return function ee(Ee,rt){for(var Le=-1,dt=Ee?Ee.length:0;++Le<dt&&!1!==rt(Ee[Le],Le,Ee););return Ee}(Hr||Ee,function(ba,je){Hr&&(ba=Ee[je=ba]),na(Fi,je,dc(ba,rt,Le,dt,je,Ee,zn))}),Fi}function Je(Ee){return!(!Qs(Ee)||function Ya(Ee){return!!ln&&ln in Ee}(Ee))&&(Ji(Ee)||ze(Ee)?Ye:K).test(Za(Ee))}function _u(Ee){var rt=new Ee.constructor(Ee.byteLength);return new an(rt).set(new an(Ee)),rt}function Ui(Ee,rt,Le,dt){Le||(Le={});for(var Vt=-1,_n=rt.length;++Vt<_n;){var zn=rt[Vt],Fi=dt?dt(Le[zn],Ee[zn],zn,Le,Ee):void 0;na(Le,zn,void 0===Fi?Ee[zn]:Fi)}return Le}function lt(Ee,rt){var Le=Ee.__data__;return function ia(Ee){var rt=typeof Ee;return"string"==rt||"number"==rt||"symbol"==rt||"boolean"==rt?"__proto__"!==Ee:null===Ee}(rt)?Le["string"==typeof rt?"string":"hash"]:Le.map}function Et(Ee,rt){var Le=function Fe(Ee,rt){return Ee?.[rt]}(Ee,rt);return Je(Le)?Le:void 0}En.prototype.clear=function ui(){this.__data__=ht?ht(null):{}},En.prototype.delete=function zi(Ee){return this.has(Ee)&&delete this.__data__[Ee]},En.prototype.get=function cr(Ee){var rt=this.__data__;if(ht){var Le=rt[Ee];return Le===y?void 0:Le}return ri.call(rt,Ee)?rt[Ee]:void 0},En.prototype.has=function Dn(Ee){var rt=this.__data__;return ht?void 0!==rt[Ee]:ri.call(rt,Ee)},En.prototype.set=function Yo(Ee,rt){return this.__data__[Ee]=ht&&void 0===rt?y:rt,this},pi.prototype.clear=function br(){this.__data__=[]},pi.prototype.delete=function _l(Ee){var rt=this.__data__,Le=ar(rt,Ee);return!(Le<0||(Le==rt.length-1?rt.pop():ai.call(rt,Le,1),0))},pi.prototype.get=function Ju(Ee){var rt=this.__data__,Le=ar(rt,Ee);return Le<0?void 0:rt[Le][1]},pi.prototype.has=function Kl(Ee){return ar(this.__data__,Ee)>-1},pi.prototype.set=function $l(Ee,rt){var Le=this.__data__,dt=ar(Le,Ee);return dt<0?Le.push([Ee,rt]):Le[dt][1]=rt,this},Rr.prototype.clear=function Ys(){this.__data__={hash:new En,map:new(ko||pi),string:new En}},Rr.prototype.delete=function Qu(Ee){return lt(this,Ee).delete(Ee)},Rr.prototype.get=function Nd(Ee){return lt(this,Ee).get(Ee)},Rr.prototype.has=function qa(Ee){return lt(this,Ee).has(Ee)},Rr.prototype.set=function Zc(Ee,rt){return lt(this,Ee).set(Ee,rt),this},Cs.prototype.clear=function Xc(){this.__data__=new pi},Cs.prototype.delete=function uc(Ee){return this.__data__.delete(Ee)},Cs.prototype.get=function ta(Ee){return this.__data__.get(Ee)},Cs.prototype.has=function Zs(Ee){return this.__data__.has(Ee)},Cs.prototype.set=function vl(Ee,rt){var Le=this.__data__;if(Le instanceof pi){var dt=Le.__data__;if(!ko||dt.length<199)return dt.push([Ee,rt]),this;Le=this.__data__=new Rr(dt)}return Le.set(Ee,rt),this};var Jt=yi?be(yi,Object):function Gp(){return[]},dn=function ks(Ee){return lr.call(Ee)};function Ho(Ee,rt){return!!(rt=rt??g)&&("number"==typeof Ee||Q.test(Ee))&&Ee>-1&&Ee%1==0&&Ee<rt}function Yl(Ee){var rt=Ee&&Ee.constructor;return Ee===("function"==typeof rt&&rt.prototype||st)}function Za(Ee){if(null!=Ee){try{return Mn.call(Ee)}catch{}try{return Ee+""}catch{}}return""}function td(Ee,rt){return Ee===rt||Ee!=Ee&&rt!=rt}(Ar&&dn(new Ar(new ArrayBuffer(1)))!=H||ko&&dn(new ko)!=x||Ht&&dn(Ht.resolve())!=M||en&&dn(new en)!=F||Gt&&dn(new Gt)!=B)&&(dn=function(Ee){var rt=lr.call(Ee),Le=rt==k?Ee.constructor:void 0,dt=Le?Za(Le):void 0;if(dt)switch(dt){case ut:return H;case tt:return x;case xt:return M;case _t:return F;case Mt:return B}return rt});var Zl=Array.isArray;function Vd(Ee){return null!=Ee&&function nd(Ee){return"number"==typeof Ee&&Ee>-1&&Ee%1==0&&Ee<=g}(Ee.length)&&!Ji(Ee)}var Xa=Xi||function Tf(){return!1};function Ji(Ee){var rt=Qs(Ee)?lr.call(Ee):"";return rt==v||rt==b}function Qs(Ee){var rt=typeof Ee;return!!Ee&&("object"==rt||"function"==rt)}function th(Ee){return Vd(Ee)?la(Ee):function yl(Ee){if(!Yl(Ee))return Vr(Ee);var rt=[];for(var Le in Object(Ee))ri.call(Ee,Le)&&"constructor"!=Le&&rt.push(Le);return rt}(Ee)}I.exports=function eh(Ee){return dc(Ee,!0,!0)}}).call(this,w(58),w(66)(X))},function(X,D,w){"use strict";w.d(D,"a",function(){return H}),w.d(D,"b",function(){return B}),w.d(D,"c",function(){return V});var E=w(6),I=w(10),C=w(24),y=w(14),g=w(9),p=w(13),d=w(0);function c(W){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(W)}function h(W,q){if(!(W instanceof q))throw new TypeError("Cannot call a class as a function")}function m(W,q){for(var G=0;G<q.length;G++){var J=q[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(W,J.key,J)}}function v(W,q,G){return q&&m(W.prototype,q),G&&m(W,G),W}function b(W,q,G){return(b=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(ne,ae,ge){var pe=function x(W,q){for(;!Object.prototype.hasOwnProperty.call(W,q)&&null!==(W=N(W)););return W}(ne,ae);if(pe){var le=Object.getOwnPropertyDescriptor(pe,ae);return le.get?le.get.call(ge):le.value}})(W,q,G||W)}function O(W,q){if("function"!=typeof q&&null!==q)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(q&&q.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),q&&k(W,q)}function k(W,q){return(k=Object.setPrototypeOf||function(J,ne){return J.__proto__=ne,J})(W,q)}function M(W){var q=function P(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ne,J=N(W);if(q){var ae=N(this).constructor;ne=Reflect.construct(J,arguments,ae)}else ne=J.apply(this,arguments);return A(this,ne)}}function A(W,q){if(q&&("object"===c(q)||"function"==typeof q))return q;if(void 0!==q)throw new TypeError("Derived constructors may only return object or undefined");return function F(W){if(void 0===W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}(W)}function N(W){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)})(W)}var B=function(W){O(G,W);var q=M(G);function G(){return h(this,G),q.apply(this,arguments)}return v(G,[{key:"code",value:function(ne,ae){var ge=this.children.map(function(pe){return pe.length()<=1?"":pe.domNode.textContent}).join("\n").slice(ne,ne+ae);return Object(g.b)(ge)}},{key:"html",value:function(ne,ae){return"<pre>\n".concat(this.code(ne,ae),"\n</pre>")}}],[{key:"create",value:function(ne){var ae=b(N(G),"create",this).call(this,ne);return ae.setAttribute("spellcheck",!1),ae}}]),G}(p.a),V=function(W){O(G,W);var q=M(G);function G(){return h(this,G),q.apply(this,arguments)}return v(G,null,[{key:"register",value:function(){d.a.register(B)}}]),G}(E.d),H=function(W){O(G,W);var q=M(G);function G(){return h(this,G),q.apply(this,arguments)}return G}(y.a);H.blotName="code",H.tagName="CODE",V.blotName="code-block",V.className="ql-code-block",V.tagName="DIV",B.blotName="code-block-container",B.className="ql-code-block-container",B.tagName="DIV",B.allowedChildren=[V],V.allowedChildren=[g.a,I.a,C.a],V.requiredContainer=B,V.TAB="  "},function(X,D,w){"use strict";var E=w(2),I=w(3),C=w(6),y=w(10),g=w(13);function p(J){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ae){return typeof ae}:function(ae){return ae&&"function"==typeof Symbol&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae})(J)}function d(J,ne){return function b(J){if(Array.isArray(J))return J}(J)||function v(J,ne){var ae=null==J?null:typeof Symbol<"u"&&J[Symbol.iterator]||J["@@iterator"];if(null!=ae){var ce,oe,ge=[],pe=!0,le=!1;try{for(ae=ae.call(J);!(pe=(ce=ae.next()).done)&&(ge.push(ce.value),!ne||ge.length!==ne);pe=!0);}catch(K){le=!0,oe=K}finally{try{!pe&&null!=ae.return&&ae.return()}finally{if(le)throw oe}}return ge}}(J,ne)||function h(J,ne){if(J){if("string"==typeof J)return m(J,ne);var ae=Object.prototype.toString.call(J).slice(8,-1);if("Object"===ae&&J.constructor&&(ae=J.constructor.name),"Map"===ae||"Set"===ae)return Array.from(J);if("Arguments"===ae||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return m(J,ne)}}(J,ne)||function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(J,ne){(null==ne||ne>J.length)&&(ne=J.length);for(var ae=0,ge=new Array(ne);ae<ne;ae++)ge[ae]=J[ae];return ge}function O(J,ne){for(var ae=0;ae<ne.length;ae++){var ge=ne[ae];ge.enumerable=ge.enumerable||!1,ge.configurable=!0,"value"in ge&&(ge.writable=!0),Object.defineProperty(J,ge.key,ge)}}function M(J,ne,ae){return(M=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(pe,le,ce){var oe=function A(J,ne){for(;!Object.prototype.hasOwnProperty.call(J,ne)&&null!==(J=W(J)););return J}(pe,le);if(oe){var K=Object.getOwnPropertyDescriptor(oe,le);return K.get?K.get.call(ce):K.value}})(J,ne,ae||J)}function F(J,ne){if("function"!=typeof ne&&null!==ne)throw new TypeError("Super expression must either be null or a function");J.prototype=Object.create(ne&&ne.prototype,{constructor:{value:J,writable:!0,configurable:!0}}),ne&&P(J,ne)}function P(J,ne){return(P=Object.setPrototypeOf||function(ge,pe){return ge.__proto__=pe,ge})(J,ne)}function N(J){var ne=function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pe,ge=W(J);if(ne){var le=W(this).constructor;pe=Reflect.construct(ge,arguments,le)}else pe=ge.apply(this,arguments);return B(this,pe)}}function B(J,ne){if(ne&&("object"===p(ne)||"function"==typeof ne))return ne;if(void 0!==ne)throw new TypeError("Derived constructors may only return object or undefined");return function V(J){if(void 0===J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return J}(J)}function W(J){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(ae){return ae.__proto__||Object.getPrototypeOf(ae)})(J)}function q(J){return J instanceof C.d||J instanceof C.a}var G=function(J){F(ae,J);var ne=N(ae);function ae(ge,pe,le){var ce,oe=le.emitter,K=le.toggleBlankClass;return function x(J,ne){if(!(J instanceof ne))throw new TypeError("Cannot call a class as a function")}(this,ae),(ce=ne.call(this,ge,pe)).emitter=oe,ce.toggleBlankClass=K,ce.batch=!1,ce.optimize(),ce.enable(),ce.domNode.addEventListener("dragstart",function(Q){return ce.handleDragStart(Q)}),ce}return function k(J,ne,ae){return ne&&O(J.prototype,ne),ae&&O(J,ae),J}(ae,[{key:"batchStart",value:function(){Array.isArray(this.batch)||(this.batch=[])}},{key:"batchEnd",value:function(){var pe=this.batch;this.batch=!1,this.update(pe)}},{key:"emitMount",value:function(pe){this.emitter.emit(I.a.events.SCROLL_BLOT_MOUNT,pe)}},{key:"emitUnmount",value:function(pe){this.emitter.emit(I.a.events.SCROLL_BLOT_UNMOUNT,pe)}},{key:"deleteAt",value:function(pe,le){var oe=d(this.line(pe),2),K=oe[0],Q=oe[1],Ae=d(this.line(pe+le),1)[0];if(M(W(ae.prototype),"deleteAt",this).call(this,pe,le),null!=Ae&&K!==Ae&&Q>0){if(K instanceof C.a||Ae instanceof C.a)return void this.optimize();K.moveChildren(Ae,Ae.children.head instanceof y.a?null:Ae.children.head),K.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(pe,le,ce,oe){M(W(ae.prototype),"formatAt",this).call(this,pe,le,ce,oe),this.optimize()}},{key:"handleDragStart",value:function(pe){pe.preventDefault()}},{key:"insertAt",value:function(pe,le,ce){if(pe>=this.length())if(null==ce||null==this.scroll.query(le,E.Scope.BLOCK)){var oe=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(oe),null==ce&&le.endsWith("\n")?oe.insertAt(0,le.slice(0,-1),ce):oe.insertAt(0,le,ce)}else{var K=this.scroll.create(le,ce);this.appendChild(K)}else M(W(ae.prototype),"insertAt",this).call(this,pe,le,ce);this.optimize()}},{key:"insertBefore",value:function(pe,le){if(pe.statics.scope===E.Scope.INLINE_BLOT){var ce=this.scroll.create(this.statics.defaultChild.blotName);ce.appendChild(pe),M(W(ae.prototype),"insertBefore",this).call(this,ce,le)}else M(W(ae.prototype),"insertBefore",this).call(this,pe,le)}},{key:"isEnabled",value:function(){return"true"===this.domNode.getAttribute("contenteditable")}},{key:"leaf",value:function(pe){return this.path(pe).pop()||[null,-1]}},{key:"line",value:function(pe){return pe===this.length()?this.line(pe-1):this.descendant(q,pe)}},{key:"lines",value:function(){return function oe(K,Q,de){var Oe=[],Ae=de;return K.children.forEachAt(Q,de,function(Ne,Qe,$e){q(Ne)?Oe.push(Ne):Ne instanceof E.ContainerBlot&&(Oe=Oe.concat(oe(Ne,Qe,Ae))),Ae-=$e}),Oe}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var pe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(M(W(ae.prototype),"optimize",this).call(this,pe,le),pe.length>0&&this.emitter.emit(I.a.events.SCROLL_OPTIMIZE,pe,le))}},{key:"path",value:function(pe){return M(W(ae.prototype),"path",this).call(this,pe).slice(1)}},{key:"remove",value:function(){}},{key:"update",value:function(pe){var le=this;if(this.batch)Array.isArray(pe)&&(this.batch=this.batch.concat(pe),this.toggleBlankClass());else{var ce=I.a.sources.USER;"string"==typeof pe&&(ce=pe),Array.isArray(pe)||(pe=this.observer.takeRecords()),(pe=pe.filter(function(oe){var Q=le.find(oe.target,!0);return Q&&Q.scroll===le})).length>0&&this.emitter.emit(I.a.events.SCROLL_BEFORE_UPDATE,ce,pe),M(W(ae.prototype),"update",this).call(this,pe.concat([])),pe.length>0&&this.emitter.emit(I.a.events.SCROLL_UPDATE,ce,pe)}}}]),ae}(E.ScrollBlot);G.blotName="scroll",G.className="ql-editor",G.tagName="DIV",G.defaultChild=C.d,G.allowedChildren=[C.d,C.a,g.a],D.a=G},function(X,D,w){"use strict";w.d(D,"a",function(){return p}),w.d(D,"b",function(){return c}),w.d(D,"c",function(){return h});var E=w(32),I=w(33);function C(m,v){var b=Object.keys(m);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(m);v&&(x=x.filter(function(O){return Object.getOwnPropertyDescriptor(m,O).enumerable})),b.push.apply(b,x)}return b}function y(m){for(var v=1;v<arguments.length;v++){var b=null!=arguments[v]?arguments[v]:{};v%2?C(Object(b),!0).forEach(function(x){g(m,x,b[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(b)):C(Object(b)).forEach(function(x){Object.defineProperty(m,x,Object.getOwnPropertyDescriptor(b,x))})}return m}function g(m,v,b){return v in m?Object.defineProperty(m,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):m[v]=b,m}var p={attribute:"attr",style:"style"},d=y(y({},E.d.allowedTags.reduce(function(m,v){return m[v]={name:E.d.name,keyNamesSet:E.b},m},{})),I.d.allowedTags.reduce(function(m,v){return m[v]={name:I.d.name,keyNamesSet:I.b},m},{}));function c(m,v,b){var x=d[m];return x&&x.keyNamesSet.has(v)?"".concat(b).concat(x.name,"_").concat(v):v}function h(m){return m.replace(/([^]*_)/,"")}},function(X,D){var w=Function.prototype,E=w.bind,I=w.call,C=E&&E.bind(I);X.exports=E?function(y){return y&&C(I,y)}:function(y){return y&&function(){return I.apply(y,arguments)}}},function(X,D,w){"use strict";w.d(D,"c",function(){return m}),w.d(D,"d",function(){return v}),w.d(D,"b",function(){return b}),w.d(D,"a",function(){return x});var E=w(73),I=w(74),C=w(33);function y(O){return function c(O){if(Array.isArray(O))return h(O)}(O)||function d(O){if(typeof Symbol<"u"&&null!=O[Symbol.iterator]||null!=O["@@iterator"])return Array.from(O)}(O)||function p(O,k){if(O){if("string"==typeof O)return h(O,k);var M=Object.prototype.toString.call(O).slice(8,-1);if("Object"===M&&O.constructor&&(M=O.constructor.name),"Map"===M||"Set"===M)return Array.from(O);if("Arguments"===M||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return h(O,k)}}(O)||function g(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(O,k){(null==k||k>O.length)&&(k=O.length);for(var M=0,A=new Array(k);M<k;M++)A[M]=O[M];return A}var m=C.a.map(function(O){return Object(E.a)(C.d,O)}),v=C.c.map(function(O){return Object(I.a)(C.d,O)}),b=v.reduce(function(O,k){return O[k.attrName]=k,O},{}),x=[].concat(y(m),y(v)).reduce(function(O,k){return O[k.keyName]=k,O},{})},function(X,D){X.exports=function(w){return"function"==typeof w}},function(X,D,w){"use strict";var E=["error","warn","log","info"],I="warn";function C(g){if(E.indexOf(g)<=E.indexOf(I)){for(var p,d=arguments.length,c=new Array(d>1?d-1:0),h=1;h<d;h++)c[h-1]=arguments[h];(p=console)[g].apply(p,c)}}function y(g){return E.reduce(function(p,d){return p[d]=C.bind(console,d,g),p},{})}C.level=y.level=function(g){I=g},D.a=y},function(X,D,w){"use strict";var E=w(2),I=w(9);function C(A){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(A)}function g(A,F){for(var P=0;P<F.length;P++){var N=F[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(A,N.key,N)}}function d(A,F,P){return(d=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(B,V,H){var W=function c(A,F){for(;!Object.prototype.hasOwnProperty.call(A,F)&&null!==(A=k(A)););return A}(B,V);if(W){var q=Object.getOwnPropertyDescriptor(W,V);return q.get?q.get.call(H):q.value}})(A,F,P||A)}function h(A,F){if("function"!=typeof F&&null!==F)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),F&&m(A,F)}function m(A,F){return(m=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N})(A,F)}function v(A){var F=function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var B,N=k(A);if(F){var V=k(this).constructor;B=Reflect.construct(N,arguments,V)}else B=N.apply(this,arguments);return b(this,B)}}function b(A,F){if(F&&("object"===C(F)||"function"==typeof F))return F;if(void 0!==F)throw new TypeError("Derived constructors may only return object or undefined");return function x(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(A)}function k(A){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)})(A)}var M=function(A){h(P,A);var F=v(P);function P(N,B,V){var H;return function y(A,F){if(!(A instanceof F))throw new TypeError("Cannot call a class as a function")}(this,P),(H=F.call(this,N,B)).selection=V,H.textNode=document.createTextNode(P.CONTENTS),H.domNode.appendChild(H.textNode),H.savedLength=0,H}return function p(A,F,P){return F&&g(A.prototype,F),P&&g(A,P),A}(P,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(B,V){if(0===this.savedLength){for(var H=this,W=0;null!=H&&H.statics.scope!==E.Scope.BLOCK_BLOT;)W+=H.offset(H.parent),H=H.parent;null!=H&&(this.savedLength=P.CONTENTS.length,H.optimize(),H.formatAt(W,P.CONTENTS.length,B,V),this.savedLength=0)}else d(k(P.prototype),"format",this).call(this,B,V)}},{key:"index",value:function(B,V){return B===this.textNode?0:d(k(P.prototype),"index",this).call(this,B,V)}},{key:"length",value:function(){return this.savedLength}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){d(k(P.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(this.selection.composing||null==this.parent)return null;for(var B=this.selection.getNativeRange();null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);var ne,V=this.prev instanceof I.a?this.prev:null,H=V?V.length():0,W=this.next instanceof I.a?this.next:null,q=W?W.text:"",G=this.textNode,J=G.data.split(P.CONTENTS).join("");if(G.data=P.CONTENTS,V)ne=V,(J||W)&&(V.insertAt(V.length(),J+q),W&&W.remove());else if(W)ne=W,W.insertAt(0,J);else{var ae=document.createTextNode(J);ne=this.scroll.create(ae),this.parent.insertBefore(ne,this)}if(this.remove(),B){var ge=function(oe,K){return V&&oe===V.domNode?K:oe===G?H+K-1:W&&oe===W.domNode?H+J.length+K:null},pe=ge(B.start.node,B.start.offset),le=ge(B.end.node,B.end.offset);if(null!==pe&&null!==le)return{startNode:ne.domNode,startOffset:pe,endNode:ne.domNode,endOffset:le}}return null}},{key:"update",value:function(B,V){var H=this;if(B.some(function(q){return"characterData"===q.type&&q.target===H.textNode})){var W=this.restore();W&&(V.range=W)}}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),P}(E.EmbedBlot);M.blotName="cursor",M.className="ql-cursor",M.tagName="span",M.CONTENTS="\ufeff",D.a=M},function(X,D,w){"use strict";w.r(D);var E=w(0),I=w(6),C=w(10),y=w(13),g=w(24),p=w(56),d=w(14),c=w(18),h=w(9),m=w(26),v=w(50),b=w(27),x=w(59);E.a.register({"blots/block":I.d,"blots/block/embed":I.a,"blots/break":C.a,"blots/container":y.a,"blots/cursor":g.a,"blots/embed":p.a,"blots/inline":d.a,"blots/scroll":c.a,"blots/text":h.a,"modules/clipboard":m.b,"modules/history":v.a,"modules/keyboard":b.b,"modules/uploader":x.a}),D.default=E.a},function(X,D,w){"use strict";w.d(D,"b",function(){return xe}),w.d(D,"d",function(){return Fe}),w.d(D,"a",function(){return ve}),w.d(D,"c",function(){return ee});var E=w(1),I=w.n(E),C=w(2),y=w(6),g=w(0),p=w(23),d=w(12),c=w(38),h=w(45),m=w(17),v=w(34),b=w(35),x=w(46),O=w(47),k=w(27),M=w(31);function A(Ye,ft){var jt=Object.keys(Ye);if(Object.getOwnPropertySymbols){var an=Object.getOwnPropertySymbols(Ye);ft&&(an=an.filter(function(sn){return Object.getOwnPropertyDescriptor(Ye,sn).enumerable})),jt.push.apply(jt,an)}return jt}function F(Ye){for(var ft=1;ft<arguments.length;ft++){var jt=null!=arguments[ft]?arguments[ft]:{};ft%2?A(Object(jt),!0).forEach(function(an){N(Ye,an,jt[an])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ye,Object.getOwnPropertyDescriptors(jt)):A(Object(jt)).forEach(function(an){Object.defineProperty(Ye,an,Object.getOwnPropertyDescriptor(jt,an))})}return Ye}function P(Ye){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(jt){return typeof jt}:function(jt){return jt&&"function"==typeof Symbol&&jt.constructor===Symbol&&jt!==Symbol.prototype?"symbol":typeof jt})(Ye)}function N(Ye,ft,jt){return ft in Ye?Object.defineProperty(Ye,ft,{value:jt,enumerable:!0,configurable:!0,writable:!0}):Ye[ft]=jt,Ye}function B(Ye,ft){return function G(Ye){if(Array.isArray(Ye))return Ye}(Ye)||function q(Ye,ft){var jt=null==Ye?null:typeof Symbol<"u"&&Ye[Symbol.iterator]||Ye["@@iterator"];if(null!=jt){var xn,ai,an=[],sn=!0,Bn=!1;try{for(jt=jt.call(Ye);!(sn=(xn=jt.next()).done)&&(an.push(xn.value),!ft||an.length!==ft);sn=!0);}catch(yi){Bn=!0,ai=yi}finally{try{!sn&&null!=jt.return&&jt.return()}finally{if(Bn)throw ai}}return an}}(Ye,ft)||function H(Ye,ft){if(Ye){if("string"==typeof Ye)return W(Ye,ft);var jt=Object.prototype.toString.call(Ye).slice(8,-1);if("Object"===jt&&Ye.constructor&&(jt=Ye.constructor.name),"Map"===jt||"Set"===jt)return Array.from(Ye);if("Arguments"===jt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(jt))return W(Ye,ft)}}(Ye,ft)||function V(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(Ye,ft){(null==ft||ft>Ye.length)&&(ft=Ye.length);for(var jt=0,an=new Array(ft);jt<ft;jt++)an[jt]=Ye[jt];return an}function ne(Ye,ft){for(var jt=0;jt<ft.length;jt++){var an=ft[jt];an.enumerable=an.enumerable||!1,an.configurable=!0,"value"in an&&(an.writable=!0),Object.defineProperty(Ye,an.key,an)}}function ge(Ye,ft){if("function"!=typeof ft&&null!==ft)throw new TypeError("Super expression must either be null or a function");Ye.prototype=Object.create(ft&&ft.prototype,{constructor:{value:Ye,writable:!0,configurable:!0}}),ft&&pe(Ye,ft)}function pe(Ye,ft){return(pe=Object.setPrototypeOf||function(an,sn){return an.__proto__=sn,an})(Ye,ft)}function le(Ye){var ft=function K(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var sn,an=Q(Ye);if(ft){var Bn=Q(this).constructor;sn=Reflect.construct(an,arguments,Bn)}else sn=an.apply(this,arguments);return ce(this,sn)}}function ce(Ye,ft){if(ft&&("object"===P(ft)||"function"==typeof ft))return ft;if(void 0!==ft)throw new TypeError("Derived constructors may only return object or undefined");return oe(Ye)}function oe(Ye){if(void 0===Ye)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ye}function Q(Ye){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(jt){return jt.__proto__||Object.getPrototypeOf(jt)})(Ye)}var de=Object(p.a)("quill:clipboard"),Ne=[[3,lr],[3,ln],["br",function me(Ye,ft){return ee(ft,"\n")||ft.insert("\n"),ft}],[1,ln],[1,function be(Ye,ft,jt){var an=jt.query(Ye);if(null==an)return ft;if(an.prototype instanceof C.EmbedBlot){var sn={},Bn=an.value(Ye);if(null!=Bn)return sn[an.blotName]=Bn,(new I.a).insert(sn,an.formats(Ye,jt))}else if(an.prototype instanceof C.BlockBlot&&!ee(ft,"\n")&&ft.insert("\n"),"function"==typeof an.formats)return ve(ft,an.blotName,an.formats(Ye,jt));return ft}],[1,function Pe(Ye,ft,jt){if(-1===["TD","TH","TR","TABLE"].indexOf(Ye.tagName)){var an=C.Attributor.keys(Ye),sn=C.ClassAttributor.keys(Ye),Bn=C.StyleAttributor.keys(Ye),xn={};if(an.concat(sn).concat(Bn).forEach(function(ai){var yi=jt.query(ai,C.Scope.ATTRIBUTE);null!=yi&&(xn[yi.attrName]=yi.value(Ye),xn[yi.attrName])||(null!=(yi=$e[ai])&&(yi.attrName===ai||yi.keyName===ai)&&(xn[yi.attrName]=yi.value(Ye)||void 0),null!=(yi=_e[ai])&&(yi.attrName===ai||yi.keyName===ai)&&(xn[(yi=_e[ai]).attrName]=yi.value(Ye)||void 0))}),Object.keys(xn).length>0)return ve(ft,xn)}return ft}],[1,function Mn(Ye,ft){var jt={},an=Ye.style||{};return["height","width"].forEach(function(sn){var Bn=-1!==["TD","TH"].indexOf(Ye.tagName),xn="TABLE"===Ye.tagName;if((Bn||xn)&&an[sn]){var ai="".concat(xn?"table":"cell").concat(Object(M.a)(sn));jt[ai]=an[sn]}}),"italic"===an.fontStyle&&(jt.italic=!0),-1!==an.textDecoration.indexOf("underline")&&(jt.underline=!0),-1!==an.textDecoration.indexOf("line-through")&&(jt.strike=!0),(0===an.fontWeight.indexOf("bold")||parseInt(an.fontWeight,10)>=700)&&(jt.bold=!0),Object.keys(jt).length>0&&(ft=ve(ft,jt)),parseFloat(an.textIndent||0)>0?(new I.a).insert("\t").concat(ft):ft}],["li",function st(Ye,ft,jt){var an=jt.query(Ye);if(null==an||"list"!==an.blotName||!ee(ft,"\n"))return ft;for(var sn=-1,Bn=Ye.parentNode;null!=Bn;)-1!==["OL","UL"].indexOf(Bn.tagName)&&(sn+=1),Bn=Bn.parentNode;return sn<=0?ft:ft.reduce(function(xn,ai){return ai.attributes&&"number"==typeof ai.attributes.indent?xn.push(ai):xn.insert(ai.insert,F({indent:sn},ai.attributes||{}))},new I.a)}],["ol, ul",function Lt(Ye,ft){return ve(ft,"list","OL"===Ye.tagName?"ordered":"bullet")}],["pre",function Me(Ye,ft,jt){var an=jt.query("code-block");return ve(ft,"code-block",!an||an.formats(Ye,jt))}],["b",ze.bind(ze,"bold")],["i",ze.bind(ze,"italic")],["strike",ze.bind(ze,"strike")],["style",function Ue(){return new I.a}]],Qe=[lr,ln],$e=[c.a,b.a].reduce(function(Ye,ft){return Ye[ft.keyName]=ft,Ye},{}),_e=[c.c,h.b,v.c,b.c,x.b,O.b].reduce(function(Ye,ft){return Ye[ft.keyName]=ft,Ye},{}),xe=function(Ye){ge(jt,Ye);var ft=le(jt);function jt(an,sn){var Bn,xn;return function J(Ye,ft){if(!(Ye instanceof ft))throw new TypeError("Cannot call a class as a function")}(this,jt),(xn=ft.call(this,an,sn)).quill.root.addEventListener("copy",function(ai){return xn.onCaptureCopy(ai,!1)}),xn.quill.root.addEventListener("cut",function(ai){return xn.onCaptureCopy(ai,!0)}),xn.quill.root.addEventListener("paste",xn.onCapturePaste.bind(oe(xn))),xn.matchers=[],xn.tableBlots=null!==(Bn=sn.tableBlots)&&void 0!==Bn?Bn:[],Ne.concat(xn.options.matchers).forEach(function(ai){var yi=B(ai,2);xn.addMatcher(yi[0],yi[1])}),xn}return function ae(Ye,ft,jt){return ft&&ne(Ye.prototype,ft),jt&&ne(Ye,jt),Ye}(jt,[{key:"addMatcher",value:function(sn,Bn){this.matchers.push([sn,Bn])}},{key:"addTableBlot",value:function(sn){this.tableBlots.push(sn)}},{key:"convert",value:function(sn){var Bn=sn.html,xn=sn.text,ai=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ai[m.c.blotName]?(new I.a).insert(xn,N({},m.c.blotName,ai[m.c.blotName])):Bn?this.applyMatchers(Bn,ai):this.applyTextMatchers(xn)}},{key:"applyTextMatchers",value:function(){var sn=this,Bn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(0===Bn.length)return new I.a;var xn=this.prepareTextMatching(),ai=this.quill.root.ownerDocument.createElement("div");ai.textContent=Bn;var yi=ai.childNodes[0];return xn.reduce(function(Xi,Vr){return Vr(yi,Xi,sn.quill.scroll)},new I.a)}},{key:"applyMatchers",value:function(sn){var Bn=this,xn=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},yi=(new DOMParser).parseFromString(sn,"text/html").body,Xi=new WeakMap,Ar=B(this.prepareMatching(yi,Xi),2),en=Fe(this.quill.scroll,yi,Ar[0],Ar[1],Xi);return ee(en,"\n")&&(null==en.ops[en.ops.length-1].attributes||Object.values(xn).some(function(Gt){return Bn.tableBlots.includes(Gt)}))?en.compose((new I.a).retain(en.length()-1).delete(1)):en}},{key:"dangerouslyPasteHTML",value:function(sn,Bn){var xn=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g.a.sources.API;if("string"==typeof sn){var ai=this.convert({html:sn,text:""});this.quill.setContents(ai,Bn),this.quill.setSelection(0,g.a.sources.SILENT)}else{var yi=this.convert({html:Bn,text:""});this.quill.updateContents((new I.a).retain(sn).concat(yi),xn),this.quill.setSelection(sn+yi.length(),g.a.sources.SILENT)}}},{key:"onCaptureCopy",value:function(sn){var Bn=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!sn.defaultPrevented){if(!sn.clipboardData)return;sn.preventDefault();var yi=B(this.quill.selection.getRange(),1)[0];if(null!=yi){var Xi=this.onCopy(yi,Bn),Vr=Xi.html;sn.clipboardData.setData("text/plain",Xi.text),sn.clipboardData.setData("text/html",Vr),Bn&&(this.raiseCallback("onCut",sn),Object(k.c)({range:yi,quill:this.quill}))}}}},{key:"onCapturePaste",value:function(sn){if(!sn.defaultPrevented&&this.quill.isEnabled()){if(this.raiseCallback("onPaste",sn),!sn.clipboardData)return;sn.preventDefault();var Bn=this.quill.getSelection(!0);if(null!=Bn){var xn=sn.clipboardData.getData("text/html"),ai=Array.from(sn.clipboardData.files||[]);if(!xn&&ai.length>0)return void this.quill.uploader.upload(Bn,ai);if(xn&&ai.length>0){var Xi=(new DOMParser).parseFromString(xn,"text/html").body;if(1===Xi.childElementCount&&"IMG"===Xi.firstElementChild.tagName)return void this.quill.uploader.upload(Bn,ai)}var Ar=sn.clipboardData.getData("text/plain");this.onPaste(Bn,{html:xn,text:Ar})}}}},{key:"raiseCallback",value:function(sn,Bn){var xn=this.options[sn];xn&&"function"==typeof xn&&xn(Bn)}},{key:"onCopy",value:function(sn){var Bn=this.quill.getText(sn);return{html:this.quill.getSemanticHTML(sn),text:Bn}}},{key:"onPaste",value:function(sn,Bn){var xn=Bn.text,ai=Bn.html,yi=this.quill.getFormat(sn.index),Xi=this.convert({text:xn,html:ai},yi);de.log("onPaste",Xi,{text:xn,html:ai});var Vr=(new I.a).retain(sn.index).delete(sn.length).concat(Xi);this.quill.updateContents(Vr,g.a.sources.USER),this.quill.setSelection(Vr.length()-sn.length,g.a.sources.SILENT),this.quill.scrollIntoView()}},{key:"prepareMatching",value:function(sn,Bn){var xn=[],ai=[];return this.matchers.forEach(function(yi){var Xi=B(yi,2),Vr=Xi[0],Ar=Xi[1];switch(Vr){case 3:ai.push(Ar);break;case 1:xn.push(Ar);break;default:Array.from(sn.querySelectorAll(Vr)).forEach(function(ko){Bn.has(ko)?Bn.get(ko).push(Ar):Bn.set(ko,[Ar])})}}),[xn,ai]}},{key:"prepareTextMatching",value:function(){var sn=[ri];return this.matchers.forEach(function(Bn){var xn=B(Bn,2),ai=xn[0],yi=xn[1];-1===Qe.indexOf(yi)&&3===ai&&sn.push(yi)}),sn}}]),jt}(d.a);function ve(Ye,ft,jt){return"object"===P(ft)?Object.keys(ft).reduce(function(an,sn){return ve(an,sn,ft[sn])},Ye):Ye.reduce(function(an,sn){if(sn.attributes&&sn.attributes[ft])return an.push(sn);var Bn=jt?N({},ft,jt):{};return an.insert(sn.insert,F(F({},Bn),sn.attributes))},new I.a)}function ee(Ye,ft){for(var jt="",an=Ye.ops.length-1;an>=0&&jt.length<ft.length;--an){var sn=Ye.ops[an];if("string"!=typeof sn.insert)break;jt=sn.insert+jt}return jt.slice(-1*ft.length)===ft}function Ce(Ye){return 0!==Ye.childNodes.length&&-1!==["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].indexOf(Ye.tagName.toLowerCase())}xe.DEFAULTS={matchers:[]};var De=new WeakMap;function ke(Ye){return null!=Ye&&(De.has(Ye)||De.set(Ye,"PRE"===Ye.tagName||ke(Ye.parentNode)),De.get(Ye))}function Fe(Ye,ft,jt,an,sn){return ft.nodeType===ft.TEXT_NODE?an.reduce(function(Bn,xn){return xn(ft,Bn,Ye)},new I.a):ft.nodeType===ft.ELEMENT_NODE?Array.from(ft.childNodes||[]).reduce(function(Bn,xn){var ai=Fe(Ye,xn,jt,an,sn);return xn.nodeType===ft.ELEMENT_NODE&&(ai=jt.reduce(function(yi,Xi){return Xi(xn,yi,Ye)},ai),ai=(sn.get(xn)||[]).reduce(function(yi,Xi){return Xi(xn,yi,Ye)},ai)),Bn.concat(ai)},new I.a):new I.a}function ze(Ye,ft,jt){return ve(jt,Ye,!0)}function ln(Ye,ft,jt){if(!ee(ft,"\n")){if(Ce(Ye))return ft.insert("\n");if(ft.length()>0&&Ye.nextSibling)for(var an=Ye.nextSibling;null!=an;){if(Ce(an))return ft.insert("\n");if(jt.query(an)?.prototype instanceof y.a)return ft.insert("\n");an=an.firstChild}}return ft}function ri(Ye,ft){var jt=Ye.data||"";return jt=jt.replace(/\r\n/g,"\n"),ft.insert(jt)}function lr(Ye,ft){var jt=Ye.data;if("O:P"===Ye.parentNode.tagName)return ft.insert(jt.trim());if(0===jt.trim().length&&-1!==jt.indexOf("\n"))return ft;if(!ke(Ye)){var an=function(Bn,xn){var ai=xn.replace(/[^\u00a0]/g,"");return ai.length<1&&Bn?" ":ai};jt=(jt=jt.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,an.bind(an,!0)),(null==Ye.previousSibling&&Ce(Ye.parentNode)||null!=Ye.previousSibling&&Ce(Ye.previousSibling))&&(jt=jt.replace(/^\s+/,an.bind(an,!1))),(null==Ye.nextSibling&&Ce(Ye.parentNode)||null!=Ye.nextSibling&&Ce(Ye.nextSibling))&&(jt=jt.replace(/\s+$/,an.bind(an,!1)))}return ft.insert(jt)}},function(X,D,w){"use strict";w.d(D,"b",function(){return de}),w.d(D,"a",function(){return Q}),w.d(D,"d",function(){return Qe}),w.d(D,"c",function(){return $e});var E=w(16),I=w.n(E),C=w(30),y=w.n(C),g=w(1),p=w.n(g),d=w(2),c=w(0),h=w(23),m=w(12),v=w(15);function x(_e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ve){return typeof ve}:function(ve){return ve&&"function"==typeof Symbol&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve})(_e)}function O(_e,xe){return function P(_e){if(Array.isArray(_e))return _e}(_e)||function F(_e,xe){var ve=null==_e?null:typeof Symbol<"u"&&_e[Symbol.iterator]||_e["@@iterator"];if(null!=ve){var ke,Fe,ee=[],Ce=!0,De=!1;try{for(ve=ve.call(_e);!(Ce=(ke=ve.next()).done)&&(ee.push(ke.value),!xe||ee.length!==xe);Ce=!0);}catch(ze){De=!0,Fe=ze}finally{try{!Ce&&null!=ve.return&&ve.return()}finally{if(De)throw Fe}}return ee}}(_e,xe)||function M(_e,xe){if(_e){if("string"==typeof _e)return A(_e,xe);var ve=Object.prototype.toString.call(_e).slice(8,-1);if("Object"===ve&&_e.constructor&&(ve=_e.constructor.name),"Map"===ve||"Set"===ve)return Array.from(_e);if("Arguments"===ve||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ve))return A(_e,xe)}}(_e,xe)||function k(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(_e,xe){(null==xe||xe>_e.length)&&(xe=_e.length);for(var ve=0,ee=new Array(xe);ve<xe;ve++)ee[ve]=_e[ve];return ee}function N(_e,xe){var ve=Object.keys(_e);if(Object.getOwnPropertySymbols){var ee=Object.getOwnPropertySymbols(_e);xe&&(ee=ee.filter(function(Ce){return Object.getOwnPropertyDescriptor(_e,Ce).enumerable})),ve.push.apply(ve,ee)}return ve}function B(_e){for(var xe=1;xe<arguments.length;xe++){var ve=null!=arguments[xe]?arguments[xe]:{};xe%2?N(Object(ve),!0).forEach(function(ee){V(_e,ee,ve[ee])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_e,Object.getOwnPropertyDescriptors(ve)):N(Object(ve)).forEach(function(ee){Object.defineProperty(_e,ee,Object.getOwnPropertyDescriptor(ve,ee))})}return _e}function V(_e,xe,ve){return xe in _e?Object.defineProperty(_e,xe,{value:ve,enumerable:!0,configurable:!0,writable:!0}):_e[xe]=ve,_e}function W(_e,xe){for(var ve=0;ve<xe.length;ve++){var ee=xe[ve];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(_e,ee.key,ee)}}function G(_e,xe){if("function"!=typeof xe&&null!==xe)throw new TypeError("Super expression must either be null or a function");_e.prototype=Object.create(xe&&xe.prototype,{constructor:{value:_e,writable:!0,configurable:!0}}),xe&&J(_e,xe)}function J(_e,xe){return(J=Object.setPrototypeOf||function(ee,Ce){return ee.__proto__=Ce,ee})(_e,xe)}function ne(_e){var xe=function pe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Ce,ee=le(_e);if(xe){var De=le(this).constructor;Ce=Reflect.construct(ee,arguments,De)}else Ce=ee.apply(this,arguments);return ae(this,Ce)}}function ae(_e,xe){if(xe&&("object"===x(xe)||"function"==typeof xe))return xe;if(void 0!==xe)throw new TypeError("Derived constructors may only return object or undefined");return function ge(_e){if(void 0===_e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _e}(_e)}function le(_e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(ve){return ve.__proto__||Object.getPrototypeOf(ve)})(_e)}var ce=Object(h.a)("quill:keyboard"),oe={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus",esc:"escape"},K={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},Q=Object(v.a)()&&/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",de=function(_e){G(ve,_e);var xe=ne(ve);function ve(ee,Ce){var De;return function H(_e,xe){if(!(_e instanceof xe))throw new TypeError("Cannot call a class as a function")}(this,ve),(De=xe.call(this,ee,Ce)).bindings={},Object.keys(De.options.bindings).forEach(function(ke){De.options.bindings[ke]&&De.addBinding(De.options.bindings[ke])}),De.addInternalBindings(),De.listen(),De}return function q(_e,xe,ve){return xe&&W(_e.prototype,xe),ve&&W(_e,ve),_e}(ve,[{key:"addInternalBindings",value:function(){var Ce=this;this.quill.once(c.a.events.CONTENT_SETTED,function(){Ce.addBinding({key:"enter",shiftKey:null},Ce.handleEnter),Ce.addBinding({key:"enter",metaKey:null,ctrlKey:null,altKey:null},function(){}),Object(v.a)()&&/Firefox/i.test(navigator.userAgent)?(Ce.addBinding({key:"backspace"},{collapsed:!0},Ce.handleBackspace),Ce.addBinding({key:"del"},{collapsed:!0},Ce.handleDelete)):(Ce.addBinding({key:"backspace"},{collapsed:!0,prefix:/^.?$/},Ce.handleBackspace),Ce.addBinding({key:"del"},{collapsed:!0,suffix:/^.?$/},Ce.handleDelete)),Ce.addBinding({key:"backspace"},{collapsed:!1},Ce.handleDeleteRange),Ce.addBinding({key:"del"},{collapsed:!1},Ce.handleDeleteRange),Ce.addBinding({key:"backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},Ce.handleBackspace)})}},{key:"addBinding",value:function(Ce){var De=this,ke=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Fe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ze=Qe(Ce);if(null!=ze){"function"==typeof ke&&(ke={handler:ke}),"function"==typeof Fe&&(Fe={handler:Fe});var Pe=ze.which?"which":"key";(Array.isArray(ze[Pe])?ze[Pe]:[ze[Pe]]).forEach(function(me){var Me=B(B(B({},ze),{},{key:me},ke),Fe);De.bindings[Me.key]=De.bindings[Me.key]||[],De.bindings[Me.key].push(Me)})}else ce.warn("Attempted to add invalid keyboard binding",ze)}},{key:"listen",value:function(){var Ce=this;this.quill.root.addEventListener("keydown",function(De){if(!De.defaultPrevented&&!De.isComposing){Ce.raiseOnKeydownCallback(De);var ke=ve.normalizeKeyName(De),ze=(Ce.bindings[ke]||[]).concat(Ce.bindings[De.which]||[]).filter(function(xn){return ve.match(De,xn)});if(0!==ze.length){var Pe=Ce.quill.getSelection();if(null!=Pe&&Ce.quill.hasFocus()){var me=O(Ce.quill.getLine(Pe.index),2),Me=me[0],Ue=me[1],Lt=O(Ce.quill.getLeaf(Pe.index),2),ln=Lt[0],Mn=Lt[1],lr=O(0===Pe.length?[ln,Mn]:Ce.quill.getLeaf(Pe.index+Pe.length),2),Ye=lr[0],ft=lr[1],jt=ln instanceof d.TextBlot?ln.value().slice(0,Mn):"",an=Ye instanceof d.TextBlot?Ye.value().slice(ft):"",sn={collapsed:0===Pe.length,empty:0===Pe.length&&Me.length()<=1,format:Ce.quill.getFormat(Pe),line:Me,offset:Ue,prefix:jt,suffix:an,event:De},Bn=!1;ze.some(function(xn){if(null!=xn.collapsed&&xn.collapsed!==sn.collapsed||null!=xn.empty&&xn.empty!==sn.empty||null!=xn.offset&&xn.offset!==sn.offset)return!1;if(Array.isArray(xn.format)){if(xn.format.every(function(Xi){return null==sn.format[Xi]}))return!1}else if("object"===x(xn.format)&&!Object.keys(xn.format).every(function(Xi){return!0===xn.format[Xi]?null!=sn.format[Xi]:!1===xn.format[Xi]?null==sn.format[Xi]:y()(xn.format[Xi],sn.format[Xi])}))return!1;if(null!=xn.prefix&&!xn.prefix.test(sn.prefix)||null!=xn.suffix&&!xn.suffix.test(sn.suffix))return!1;var ai=xn.handler.call(Ce,Pe,sn,xn),yi=ai?.preventAfterAllMatches;return(Bn=!0!==ai||yi)&&!yi}),Bn&&De.preventDefault()}}}})}},{key:"raiseOnKeydownCallback",value:function(Ce){var De=this.options.onKeydown;De&&"function"==typeof De&&De(Ce)}},{key:"handleBackspace",value:function(Ce,De){var ke=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(De.prefix)?2:1;if(!(0===Ce.index||this.quill.getLength()<=1)){var Fe={},be=O(this.quill.getLine(Ce.index),1)[0],me=(new p.a).retain(Ce.index-ke).delete(ke);if(0===De.offset){var st=O(this.quill.getLine(Ce.index-1),1)[0];if(st&&!("block"===st.statics.blotName&&st.length()<=1)){var ln=be.formats(),Mn=this.quill.getFormat(Ce.index-1,1);if(Fe=g.AttributeMap.diff(ln,Mn)||{},Object.keys(Fe).length>0){var ri=(new p.a).retain(Ce.index+be.length()-2).retain(1,Fe);me=me.compose(ri)}}}this.quill.updateContents(me,c.a.sources.USER),this.quill.focus()}}},{key:"handleDelete",value:function(Ce,De){var ke=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(De.suffix)?2:1;if(!(Ce.index>=this.quill.getLength()-ke)){var Fe={},be=O(this.quill.getLine(Ce.index),1)[0],me=(new p.a).retain(Ce.index).delete(ke);if(De.offset>=be.length()-1){var st=O(this.quill.getLine(Ce.index+1),1)[0];if(st){var Lt=be.formats(),ln=this.quill.getFormat(Ce.index,1);Fe=g.AttributeMap.diff(Lt,ln)||{},Object.keys(Fe).length>0&&(me=me.retain(st.length()-1).retain(1,Fe))}}this.quill.updateContents(me,c.a.sources.USER),this.quill.focus()}}},{key:"handleDeleteRange",value:function(Ce,De){this.raiseOnKeydownCallback(De.event),$e({range:Ce,quill:this.quill}),this.quill.focus()}},{key:"handleEnter",value:function(Ce,De){var ke=this,Fe=Object.keys(De.format).reduce(function(Ue,st){return ke.quill.scroll.query(st,d.Scope.BLOCK)&&!Array.isArray(De.format[st])&&(Ue[st]=De.format[st]),Ue},{}),ze=(new p.a).retain(Ce.index).delete(Ce.length).insert("\n",Fe);this.quill.updateContents(ze,c.a.sources.USER),this.quill.setSelection(Ce.index+1,c.a.sources.SILENT),this.quill.focus();var me=O(this.quill.getLine(Ce.index+1),1)[0],Me=function b(_e){var ve=window.innerHeight,ee=_e.getBoundingClientRect();return ee.y<0||!(ee.bottom>=ve)&&null}(me.domNode);null!==Me&&me.domNode.scrollIntoView(Me),Object.keys(De.format).forEach(function(Ue){null==Fe[Ue]&&(Array.isArray(De.format[Ue])||"code"===Ue||"link"===Ue||(ke.raiseOnKeydownCallback(De.event),ke.quill.format(Ue,De.format[Ue],c.a.sources.USER)))})}}],[{key:"match",value:function(Ce,De){return!["altKey","ctrlKey","metaKey","shiftKey"].some(function(ke){return!!De[ke]!==Ce[ke]&&null!==De[ke]})&&(De.key===ve.normalizeKeyName(Ce)||De.key===Ce.which)}},{key:"normalizeKeyName",value:function(Ce){var De=Ce.key,Fe=!!De,ze=Fe?De:Ce.which;return ze&&(ze=Fe?oe[ze.toLowerCase()]||ze:K[ze]||String.fromCharCode(ze)),ze}}]),ve}(m.a);function Oe(_e){return{key:"tab",shiftKey:!_e,format:{"code-block":!0},handler:function(ve){var ee=this.quill.scroll.query("code-block"),Ce=0===ve.length?this.quill.getLines(ve.index,1):this.quill.getLines(ve),De=ve.index,ke=ve.length;Ce.forEach(function(Fe,ze){_e?(Fe.insertAt(0,ee.TAB),0===ze?De+=ee.TAB.length:ke+=ee.TAB.length):0===Fe.domNode.textContent.indexOf(ee.TAB)&&(Fe.deleteAt(0,ee.TAB.length),0===ze?De-=ee.TAB.length:ke-=ee.TAB.length)}),this.quill.update(c.a.sources.USER),this.quill.setSelection(De,ke,c.a.sources.SILENT)}}}function Ae(_e,xe){var ve;return V(ve={key:_e,shiftKey:xe,altKey:null},"leftArrow"===_e?"prefix":"suffix",/^$/),V(ve,"handler",function(De){var ke=De.index;return"rightArrow"===_e&&(ke+=De.length+1),!(O(this.quill.getLeaf(ke),1)[0]instanceof d.EmbedBlot&&("leftArrow"===_e?xe?this.quill.setSelection(De.index-1,De.length+1,c.a.sources.USER):this.quill.setSelection(De.index-1,c.a.sources.USER):xe?this.quill.setSelection(De.index,De.length+1,c.a.sources.USER):this.quill.setSelection(De.index+De.length+1,c.a.sources.USER),1))}),ve}function Ne(_e,xe){return{key:_e[0],which:xe,shortKey:!0,handler:function(ee,Ce){return this.quill.format(_e,!Ce.format[_e],c.a.sources.USER),{preventAfterAllMatches:!0}}}}function Qe(_e){if("string"==typeof _e||"number"==typeof _e)_e={key:_e};else{if("object"!==x(_e))return null;_e=I()(_e)}return _e.shortKey&&(_e[Q]=_e.shortKey,delete _e.shortKey),_e}function $e(_e){var xe=_e.quill,ve=_e.range,ee=xe.getLines(ve),Ce={};if(ee.length>1){var De=ee[0].formats(),ke=ee[ee.length-1].formats();Ce=g.AttributeMap.diff(ke,De)||{}}xe.deleteText(ve,c.a.sources.USER),Object.keys(Ce).length>0&&xe.formatLine(ve.index,1,Ce,c.a.sources.USER),xe.setSelection(ve.index,c.a.sources.SILENT)}de.DEFAULTS={bindings:{bold:Ne("bold",66),italic:Ne("italic",73),underline:Ne("underline",85),indent:{key:"tab",format:["blockquote","indent","list"],handler:function(xe,ve){return!(!ve.collapsed||0===ve.offset)||(this.quill.format("indent","+1",c.a.sources.USER),!1)}},outdent:{key:"tab",shiftKey:!0,format:["blockquote","indent","list"],handler:function(xe,ve){return!(!ve.collapsed||0===ve.offset)||(this.quill.format("indent","-1",c.a.sources.USER),!1)}},"outdent backspace":{key:"backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(xe,ve){null!=ve.format.indent?this.quill.format("indent","-1",c.a.sources.USER):null!=ve.format.list&&this.quill.format("list",!1,c.a.sources.USER)}},"indent code-block":Oe(!0),"outdent code-block":Oe(!1),"remove tab":{key:"tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(xe){this.quill.deleteText(xe.index-1,1,c.a.sources.USER)}},tab:{key:"tab",handler:function(xe,ve){if(ve.format.table)return!0;this.quill.history.cutoff();var ee=(new p.a).retain(xe.index).delete(xe.length).insert("\t");return this.quill.updateContents(ee,c.a.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(xe.index+1,c.a.sources.SILENT),!1}},"blockquote empty enter":{key:"enter",collapsed:!0,format:["blockquote"],empty:!0,handler:function(){this.quill.format("blockquote",!1,c.a.sources.USER)}},"list empty enter":{key:"enter",collapsed:!0,format:["list"],empty:!0,handler:function(xe,ve){var ee={list:!1};ve.format.indent&&(ee.indent=!1),this.quill.formatLine(xe.index,xe.length,ee,c.a.sources.USER)}},"checklist enter":{key:"enter",collapsed:!0,format:{list:"checked"},handler:function(xe){var ee=O(this.quill.getLine(xe.index),2),Ce=ee[0],De=ee[1],ke=B(B({},Ce.formats()),{},{list:"checked"}),Fe=(new p.a).retain(xe.index).insert("\n",ke).retain(Ce.length()-De-1).retain(1,{list:"unchecked"});this.quill.updateContents(Fe,c.a.sources.USER),this.quill.setSelection(xe.index+1,c.a.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:"enter",collapsed:!0,format:["header"],suffix:/^$/,handler:function(xe,ve){var Ce=O(this.quill.getLine(xe.index),2),De=Ce[0],ke=Ce[1],Fe=(new p.a).retain(xe.index).insert("\n",ve.format).retain(De.length()-ke-1).retain(1,{header:null});this.quill.updateContents(Fe,c.a.sources.USER),this.quill.setSelection(xe.index+1,c.a.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:"space",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(xe,ve){if(null==this.quill.scroll.query("list"))return!0;var ze,ee=ve.prefix.length,De=O(this.quill.getLine(xe.index),2),ke=De[0],Fe=De[1];if(Fe>ee)return!0;switch(ve.prefix.trim()){case"[]":case"[ ]":ze="unchecked";break;case"[x]":ze="checked";break;case"-":case"*":ze="bullet";break;default:ze="ordered"}this.quill.insertText(xe.index," ",c.a.sources.USER),this.quill.history.cutoff();var Pe=(new p.a).retain(xe.index-Fe).delete(ee+1).retain(ke.length()-2-Fe).retain(1,{list:ze});return this.raiseOnKeydownCallback(ve.event),this.quill.updateContents(Pe,c.a.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(xe.index-ee,c.a.sources.SILENT),!1}},"code exit":{key:"enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler:function(xe){for(var ee=O(this.quill.getLine(xe.index),2),Ce=ee[0],De=ee[1],ke=2,Fe=Ce;null!=Fe&&Fe.length()<=1&&Fe.formats()["code-block"];)if(Fe=Fe.prev,(ke-=1)<=0){var ze=(new p.a).retain(xe.index+Ce.length()-De-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(ze,c.a.sources.USER),this.quill.setSelection(xe.index-1,c.a.sources.SILENT),!1}return!0}},"embed left":Ae("leftArrow",!1),"embed left shift":Ae("leftArrow",!0),"embed right":Ae("rightArrow",!1),"embed right shift":Ae("rightArrow",!0)}}},function(X,D,w){var E=w(8),I=w(96),C=w(36),y=w(97),g=w(98),p=w(99),d=I("wks"),c=E.Symbol,h=c&&c.for,m=p?c:c&&c.withoutSetter||y;X.exports=function(v){if(!C(d,v)||!g&&"string"!=typeof d[v]){var b="Symbol."+v;d[v]=g&&C(c,v)?c[v]:p&&h?h(b):m(b)}return d[v]}},function(X,D,w){"use strict";w.d(D,"c",function(){return I}),w.d(D,"a",function(){return C}),w.d(D,"b",function(){return y});var E=w(19);function I(g){var p=this.keyName;this.keyName=Object(E.c)(this.keyName);for(var d=arguments.length,c=new Array(d>1?d-1:0),h=1;h<d;h++)c[h-1]=arguments[h];var m=g.call.apply(g,[this].concat(c));return this.keyName=p,m}function C(g,p,d){return this.allowedTags.indexOf(p.tagName)>-1&&g.call(this,p,d)}function y(g,p,d){return g(p).map(function(c){return Object(E.b)(p.tagName,c,d)})}},function(X,D,w){(function(E,I){var y="__lodash_hash_undefined__",d=9007199254740991,c="[object Arguments]",h="[object Array]",v="[object Boolean]",b="[object Date]",x="[object Error]",O="[object Function]",M="[object Map]",A="[object Number]",P="[object Object]",N="[object Promise]",V="[object RegExp]",H="[object Set]",W="[object String]",q="[object Symbol]",J="[object WeakMap]",ne="[object ArrayBuffer]",ae="[object DataView]",Ne=/^\[object .+?Constructor\]$/,Qe=/^(?:0|[1-9]\d*)$/,$e={};$e["[object Float32Array]"]=$e["[object Float64Array]"]=$e["[object Int8Array]"]=$e["[object Int16Array]"]=$e["[object Int32Array]"]=$e["[object Uint8Array]"]=$e["[object Uint8ClampedArray]"]=$e["[object Uint16Array]"]=$e["[object Uint32Array]"]=!0,$e[c]=$e[h]=$e[ne]=$e[v]=$e[ae]=$e[b]=$e[x]=$e[O]=$e[M]=$e[A]=$e[P]=$e[V]=$e[H]=$e[W]=$e[J]=!1;var _e="object"==typeof E&&E&&E.Object===Object&&E,xe="object"==typeof self&&self&&self.Object===Object&&self,ve=_e||xe||Function("return this")(),ee=D&&!D.nodeType&&D,Ce=ee&&"object"==typeof I&&I&&!I.nodeType&&I,De=Ce&&Ce.exports===ee,ke=De&&_e.process,Fe=function(){try{return ke&&ke.binding&&ke.binding("util")}catch{}}(),ze=Fe&&Fe.isTypedArray;function me(Ee,rt){for(var Le=-1,dt=null==Ee?0:Ee.length;++Le<dt;)if(rt(Ee[Le],Le,Ee))return!0;return!1}function st(Ee,rt){return Ee.has(rt)}function ln(Ee){var rt=-1,Le=Array(Ee.size);return Ee.forEach(function(dt,Vt){Le[++rt]=[Vt,dt]}),Le}function ri(Ee){var rt=-1,Le=Array(Ee.size);return Ee.forEach(function(dt){Le[++rt]=dt}),Le}var Ee,lr=Array.prototype,ft=Object.prototype,jt=ve["__core-js_shared__"],an=Function.prototype.toString,sn=ft.hasOwnProperty,Bn=(Ee=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||""))?"Symbol(src)_1."+Ee:"",xn=ft.toString,ai=RegExp("^"+an.call(sn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yi=De?ve.Buffer:void 0,Xi=ve.Symbol,Vr=ve.Uint8Array,Ar=ft.propertyIsEnumerable,ko=lr.splice,Ht=Xi?Xi.toStringTag:void 0,en=Object.getOwnPropertySymbols,Gt=yi?yi.isBuffer:void 0,ht=function Mn(Ee,rt){return function(Le){return Ee(rt(Le))}}(Object.keys,Object),ut=Jt(ve,"DataView"),tt=Jt(ve,"Map"),xt=Jt(ve,"Promise"),_t=Jt(ve,"Set"),Mt=Jt(ve,"WeakMap"),At=Jt(Object,"create"),Ut=Za(ut),En=Za(tt),ui=Za(xt),zi=Za(_t),cr=Za(Mt),Dn=Xi?Xi.prototype:void 0,Yo=Dn?Dn.valueOf:void 0;function pi(Ee){var rt=-1,Le=null==Ee?0:Ee.length;for(this.clear();++rt<Le;){var dt=Ee[rt];this.set(dt[0],dt[1])}}function Rr(Ee){var rt=-1,Le=null==Ee?0:Ee.length;for(this.clear();++rt<Le;){var dt=Ee[rt];this.set(dt[0],dt[1])}}function Cs(Ee){var rt=-1,Le=null==Ee?0:Ee.length;for(this.clear();++rt<Le;){var dt=Ee[rt];this.set(dt[0],dt[1])}}function la(Ee){var rt=-1,Le=null==Ee?0:Ee.length;for(this.__data__=new Cs;++rt<Le;)this.add(Ee[rt])}function ua(Ee){var rt=this.__data__=new Rr(Ee);this.size=rt.size}function yl(Ee,rt){var Le=yu(Ee),dt=!Le&&td(Ee),Vt=!Le&&!dt&&Vd(Ee),_n=!Le&&!dt&&!Vt&&Xl(Ee),zn=Le||dt||Vt||_n,Fi=zn?function Me(Ee,rt){for(var Le=-1,dt=Array(Ee);++Le<Ee;)dt[Le]=rt(Le);return dt}(Ee.length,String):[],Yi=Fi.length;for(var Ei in Ee)(rt||sn.call(Ee,Ei))&&(!zn||!("length"==Ei||Vt&&("offset"==Ei||"parent"==Ei)||_n&&("buffer"==Ei||"byteLength"==Ei||"byteOffset"==Ei)||Mo(Ei,Yi)))&&Fi.push(Ei);return Fi}function mu(Ee,rt){for(var Le=Ee.length;Le--;)if(eh(Ee[Le][0],rt))return Le;return-1}function Cl(Ee){return null==Ee?void 0===Ee?"[object Undefined]":"[object Null]":Ht&&Ht in Object(Ee)?function dn(Ee){var rt=sn.call(Ee,Ht),Le=Ee[Ht];try{Ee[Ht]=void 0;var dt=!0}catch{}var Vt=xn.call(Ee);return dt&&(rt?Ee[Ht]=Le:delete Ee[Ht]),Vt}(Ee):function Yl(Ee){return xn.call(Ee)}(Ee)}function bl(Ee){return Qs(Ee)&&Cl(Ee)==c}function Xs(Ee,rt,Le,dt,Vt){return Ee===rt||(null==Ee||null==rt||!Qs(Ee)&&!Qs(rt)?Ee!=Ee&&rt!=rt:function ed(Ee,rt,Le,dt,Vt,_n){var zn=yu(Ee),Fi=yu(rt),Yi=zn?h:ir(Ee),Ei=Fi?h:ir(rt),hr=(Yi=Yi==c?P:Yi)==P,Zr=(Ei=Ei==c?P:Ei)==P,Hr=Yi==Ei;if(Hr&&Vd(Ee)){if(!Vd(rt))return!1;zn=!0,hr=!1}if(Hr&&!hr)return _n||(_n=new ua),zn||Xl(Ee)?Ui(Ee,rt,Le,dt,Vt,_n):function vu(Ee,rt,Le,dt,Vt,_n,zn){switch(Le){case ae:if(Ee.byteLength!=rt.byteLength||Ee.byteOffset!=rt.byteOffset)return!1;Ee=Ee.buffer,rt=rt.buffer;case ne:return!(Ee.byteLength!=rt.byteLength||!_n(new Vr(Ee),new Vr(rt)));case v:case b:case A:return eh(+Ee,+rt);case x:return Ee.name==rt.name&&Ee.message==rt.message;case V:case W:return Ee==rt+"";case M:var Fi=ln;case H:if(Fi||(Fi=ri),Ee.size!=rt.size&&!(1&dt))return!1;var Ei=zn.get(Ee);if(Ei)return Ei==rt;dt|=2,zn.set(Ee,rt);var hr=Ui(Fi(Ee),Fi(rt),dt,Vt,_n,zn);return zn.delete(Ee),hr;case q:if(Yo)return Yo.call(Ee)==Yo.call(rt)}return!1}(Ee,rt,Yi,Le,dt,Vt,_n);if(!(1&Le)){var ba=hr&&sn.call(Ee,"__wrapped__"),je=Zr&&sn.call(rt,"__wrapped__");if(ba||je){var Jl=ba?Ee.value():Ee,xl=je?rt.value():rt;return _n||(_n=new ua),Vt(Jl,xl,Le,dt,_n)}}return!!Hr&&(_n||(_n=new ua),function Xe(Ee,rt,Le,dt,Vt,_n){var zn=1&Le,Fi=lt(Ee),Yi=Fi.length;if(Yi!=lt(rt).length&&!zn)return!1;for(var Zr=Yi;Zr--;){var Hr=Fi[Zr];if(!(zn?Hr in rt:sn.call(rt,Hr)))return!1}var ba=_n.get(Ee);if(ba&&_n.get(rt))return ba==rt;var je=!0;_n.set(Ee,rt),_n.set(rt,Ee);for(var Jl=zn;++Zr<Yi;){var xl=Ee[Hr=Fi[Zr]],id=rt[Hr];if(dt)var nt=zn?dt(id,xl,Hr,rt,Ee,_n):dt(xl,id,Hr,Ee,rt,_n);if(!(void 0===nt?xl===id||Vt(xl,id,Le,dt,_n):nt)){je=!1;break}Jl||(Jl="constructor"==Hr)}if(je&&!Jl){var If=Ee.constructor,kf=rt.constructor;If!=kf&&"constructor"in Ee&&"constructor"in rt&&!("function"==typeof If&&If instanceof If&&"function"==typeof kf&&kf instanceof kf)&&(je=!1)}return _n.delete(Ee),_n.delete(rt),je}(Ee,rt,Le,dt,Vt,_n))}(Ee,rt,Le,dt,Xs,Vt))}function ql(Ee){return!(!nd(Ee)||function ia(Ee){return!!Bn&&Bn in Ee}(Ee))&&(Xa(Ee)?ai:Ne).test(Za(Ee))}function Qc(Ee){if(!function Ya(Ee){var rt=Ee&&Ee.constructor;return Ee===("function"==typeof rt&&rt.prototype||ft)}(Ee))return ht(Ee);var rt=[];for(var Le in Object(Ee))sn.call(Ee,Le)&&"constructor"!=Le&&rt.push(Le);return rt}function Ui(Ee,rt,Le,dt,Vt,_n){var zn=1&Le,Fi=Ee.length,Yi=rt.length;if(Fi!=Yi&&!(zn&&Yi>Fi))return!1;var Ei=_n.get(Ee);if(Ei&&_n.get(rt))return Ei==rt;var hr=-1,Zr=!0,Hr=2&Le?new la:void 0;for(_n.set(Ee,rt),_n.set(rt,Ee);++hr<Fi;){var ba=Ee[hr],je=rt[hr];if(dt)var Jl=zn?dt(je,ba,hr,rt,Ee,_n):dt(ba,je,hr,Ee,rt,_n);if(void 0!==Jl){if(Jl)continue;Zr=!1;break}if(Hr){if(!me(rt,function(xl,id){if(!st(Hr,id)&&(ba===xl||Vt(ba,xl,Le,dt,_n)))return Hr.push(id)})){Zr=!1;break}}else if(ba!==je&&!Vt(ba,je,Le,dt,_n)){Zr=!1;break}}return _n.delete(Ee),_n.delete(rt),Zr}function lt(Ee){return function _u(Ee,rt,Le){var dt=rt(Ee);return yu(Ee)?dt:function be(Ee,rt){for(var Le=-1,dt=rt.length,Vt=Ee.length;++Le<dt;)Ee[Vt+Le]=rt[Le];return Ee}(dt,Le(Ee))}(Ee,th,gi)}function Et(Ee,rt){var Le=Ee.__data__;return function Ho(Ee){var rt=typeof Ee;return"string"==rt||"number"==rt||"symbol"==rt||"boolean"==rt?"__proto__"!==Ee:null===Ee}(rt)?Le["string"==typeof rt?"string":"hash"]:Le.map}function Jt(Ee,rt){var Le=function Lt(Ee,rt){return Ee?.[rt]}(Ee,rt);return ql(Le)?Le:void 0}pi.prototype.clear=function br(){this.__data__=At?At(null):{},this.size=0},pi.prototype.delete=function _l(Ee){var rt=this.has(Ee)&&delete this.__data__[Ee];return this.size-=rt?1:0,rt},pi.prototype.get=function Ju(Ee){var rt=this.__data__;if(At){var Le=rt[Ee];return Le===y?void 0:Le}return sn.call(rt,Ee)?rt[Ee]:void 0},pi.prototype.has=function Kl(Ee){var rt=this.__data__;return At?void 0!==rt[Ee]:sn.call(rt,Ee)},pi.prototype.set=function $l(Ee,rt){var Le=this.__data__;return this.size+=this.has(Ee)?0:1,Le[Ee]=At&&void 0===rt?y:rt,this},Rr.prototype.clear=function Ys(){this.__data__=[],this.size=0},Rr.prototype.delete=function Qu(Ee){var rt=this.__data__,Le=mu(rt,Ee);return!(Le<0||(Le==rt.length-1?rt.pop():ko.call(rt,Le,1),--this.size,0))},Rr.prototype.get=function Nd(Ee){var rt=this.__data__,Le=mu(rt,Ee);return Le<0?void 0:rt[Le][1]},Rr.prototype.has=function qa(Ee){return mu(this.__data__,Ee)>-1},Rr.prototype.set=function Zc(Ee,rt){var Le=this.__data__,dt=mu(Le,Ee);return dt<0?(++this.size,Le.push([Ee,rt])):Le[dt][1]=rt,this},Cs.prototype.clear=function Xc(){this.size=0,this.__data__={hash:new pi,map:new(tt||Rr),string:new pi}},Cs.prototype.delete=function uc(Ee){var rt=Et(this,Ee).delete(Ee);return this.size-=rt?1:0,rt},Cs.prototype.get=function ta(Ee){return Et(this,Ee).get(Ee)},Cs.prototype.has=function Zs(Ee){return Et(this,Ee).has(Ee)},Cs.prototype.set=function vl(Ee,rt){var Le=Et(this,Ee),dt=Le.size;return Le.set(Ee,rt),this.size+=Le.size==dt?0:1,this},la.prototype.add=la.prototype.push=function na(Ee){return this.__data__.set(Ee,y),this},la.prototype.has=function ar(Ee){return this.__data__.has(Ee)},ua.prototype.clear=function dc(){this.__data__=new Rr,this.size=0},ua.prototype.delete=function Jc(Ee){var rt=this.__data__,Le=rt.delete(Ee);return this.size=rt.size,Le},ua.prototype.get=function Hn(Ee){return this.__data__.get(Ee)},ua.prototype.has=function ks(Ee){return this.__data__.has(Ee)},ua.prototype.set=function Je(Ee,rt){var Le=this.__data__;if(Le instanceof Rr){var dt=Le.__data__;if(!tt||dt.length<199)return dt.push([Ee,rt]),this.size=++Le.size,this;Le=this.__data__=new Cs(dt)}return Le.set(Ee,rt),this.size=Le.size,this};var gi=en?function(Ee){return null==Ee?[]:(Ee=Object(Ee),function Pe(Ee,rt){for(var Le=-1,dt=null==Ee?0:Ee.length,Vt=0,_n=[];++Le<dt;){var zn=Ee[Le];rt(zn,Le,Ee)&&(_n[Vt++]=zn)}return _n}(en(Ee),function(rt){return Ar.call(Ee,rt)}))}:function Gp(){return[]},ir=Cl;function Mo(Ee,rt){return!!(rt=rt??d)&&("number"==typeof Ee||Qe.test(Ee))&&Ee>-1&&Ee%1==0&&Ee<rt}function Za(Ee){if(null!=Ee){try{return an.call(Ee)}catch{}try{return Ee+""}catch{}}return""}function eh(Ee,rt){return Ee===rt||Ee!=Ee&&rt!=rt}(ut&&ir(new ut(new ArrayBuffer(1)))!=ae||tt&&ir(new tt)!=M||xt&&ir(xt.resolve())!=N||_t&&ir(new _t)!=H||Mt&&ir(new Mt)!=J)&&(ir=function(Ee){var rt=Cl(Ee),Le=rt==P?Ee.constructor:void 0,dt=Le?Za(Le):"";if(dt)switch(dt){case Ut:return ae;case En:return M;case ui:return N;case zi:return H;case cr:return J}return rt});var td=bl(function(){return arguments}())?bl:function(Ee){return Qs(Ee)&&sn.call(Ee,"callee")&&!Ar.call(Ee,"callee")},yu=Array.isArray;var Vd=Gt||function Tf(){return!1};function Xa(Ee){if(!nd(Ee))return!1;var rt=Cl(Ee);return rt==O||"[object GeneratorFunction]"==rt||"[object AsyncFunction]"==rt||"[object Proxy]"==rt}function Ji(Ee){return"number"==typeof Ee&&Ee>-1&&Ee%1==0&&Ee<=d}function nd(Ee){var rt=typeof Ee;return null!=Ee&&("object"==rt||"function"==rt)}function Qs(Ee){return null!=Ee&&"object"==typeof Ee}var Xl=ze?function Ue(Ee){return function(rt){return Ee(rt)}}(ze):function Js(Ee){return Qs(Ee)&&Ji(Ee.length)&&!!$e[Cl(Ee)]};function th(Ee){return function Zl(Ee){return null!=Ee&&Ji(Ee.length)&&!Xa(Ee)}(Ee)?yl(Ee):Qc(Ee)}I.exports=function qt(Ee,rt){return Xs(Ee,rt)}}).call(this,w(58),w(66)(X))},function(X,D,w){"use strict";function E(I){return I?I.substring(0,1).toUpperCase()+I.substring(1):""}w.d(D,"a",function(){return E})},function(X,D,w){"use strict";w.d(D,"d",function(){return E}),w.d(D,"a",function(){return I}),w.d(D,"c",function(){return C}),w.d(D,"b",function(){return y});var E={name:"table",allowedTags:["TABLE"]},I=["height","width"],C=["height","width","text-align","background-color","border","border-style","border-width","border-color"],y=new Set([].concat(I,C))},function(X,D,w){"use strict";w.d(D,"d",function(){return E}),w.d(D,"a",function(){return I}),w.d(D,"c",function(){return C}),w.d(D,"b",function(){return y});var E={name:"cell",allowedTags:["TH","TD","TR"]},I=["height","width"],C=["height","width","vertical-align","text-align","background-color","border","border-style","border-width","border-color","padding","padding-top","padding-right","padding-bottom","padding-left"],y=new Set([].concat(I,C))},function(X,D,w){"use strict";w.d(D,"a",function(){return k}),w.d(D,"b",function(){return M}),w.d(D,"c",function(){return A});var E=w(2);function I(F){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(F)}function C(F,P){if(!(F instanceof P))throw new TypeError("Cannot call a class as a function")}function y(F,P){for(var N=0;N<P.length;N++){var B=P[N];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}function p(F,P,N){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(V,H,W){var q=function d(F,P){for(;!Object.prototype.hasOwnProperty.call(F,P)&&null!==(F=O(F)););return F}(V,H);if(q){var G=Object.getOwnPropertyDescriptor(q,H);return G.get?G.get.call(W):G.value}})(F,P,N||F)}function c(F,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),P&&h(F,P)}function h(F,P){return(h=Object.setPrototypeOf||function(B,V){return B.__proto__=V,B})(F,P)}function m(F){var P=function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,B=O(F);if(P){var H=O(this).constructor;V=Reflect.construct(B,arguments,H)}else V=B.apply(this,arguments);return v(this,V)}}function v(F,P){if(P&&("object"===I(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return function b(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(F)}function O(F){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)})(F)}var k=function(F){c(N,F);var P=m(N);function N(){return C(this,N),P.apply(this,arguments)}return function g(F,P,N){return P&&y(F.prototype,P),N&&y(F,N),F}(N,[{key:"value",value:function(V){var H=p(O(N.prototype),"value",this).call(this,V);if(0!==H.indexOf("rgb("))return H;var W=(H=H.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(q){return"00".concat(parseInt(q,10).toString(16)).slice(-2)}).join("");return"#".concat(W)}}]),N}(E.StyleAttributor),M=new E.ClassAttributor("color","ql-color",{scope:E.Scope.INLINE}),A=new k("color","color",{scope:E.Scope.INLINE})},function(X,D,w){"use strict";w.d(D,"a",function(){return C}),w.d(D,"b",function(){return y}),w.d(D,"c",function(){return g});var E=w(2),I={scope:E.Scope.BLOCK,whitelist:["rtl"]},C=new E.Attributor("direction","dir",I),y=new E.ClassAttributor("direction","ql-direction",I),g=new E.StyleAttributor("direction","direction",I)},function(X,D,w){var E=w(20),I=w(68),C=E({}.hasOwnProperty);X.exports=Object.hasOwn||function(g,p){return C(I(g),p)}},function(X,D,w){(function(E,I){var y="__lodash_hash_undefined__",d=9007199254740991,c="[object Arguments]",O="[object Function]",P="[object Object]",Oe=/^\[object .+?Constructor\]$/,Ae=/^(?:0|[1-9]\d*)$/,Ne={};Ne["[object Float32Array]"]=Ne["[object Float64Array]"]=Ne["[object Int8Array]"]=Ne["[object Int16Array]"]=Ne["[object Int32Array]"]=Ne["[object Uint8Array]"]=Ne["[object Uint8ClampedArray]"]=Ne["[object Uint16Array]"]=Ne["[object Uint32Array]"]=!0,Ne[c]=Ne["[object Array]"]=Ne["[object ArrayBuffer]"]=Ne["[object Boolean]"]=Ne["[object DataView]"]=Ne["[object Date]"]=Ne["[object Error]"]=Ne[O]=Ne["[object Map]"]=Ne["[object Number]"]=Ne[P]=Ne["[object RegExp]"]=Ne["[object Set]"]=Ne["[object String]"]=Ne["[object WeakMap]"]=!1;var Qe="object"==typeof E&&E&&E.Object===Object&&E,$e="object"==typeof self&&self&&self.Object===Object&&self,_e=Qe||$e||Function("return this")(),xe=D&&!D.nodeType&&D,ve=xe&&"object"==typeof I&&I&&!I.nodeType&&I,ee=ve&&ve.exports===xe,Ce=ee&&Qe.process,De=function(){try{return ve&&ve.require&&ve.require("util").types||Ce&&Ce.binding&&Ce.binding("util")}catch{}}(),ke=De&&De.isTypedArray;function Fe(Le,dt,Vt){switch(Vt.length){case 0:return Le.call(dt);case 1:return Le.call(dt,Vt[0]);case 2:return Le.call(dt,Vt[0],Vt[1]);case 3:return Le.call(dt,Vt[0],Vt[1],Vt[2])}return Le.apply(dt,Vt)}var Le,Me=Array.prototype,st=Object.prototype,Lt=_e["__core-js_shared__"],ln=Function.prototype.toString,Mn=st.hasOwnProperty,ri=(Le=/[^.]+$/.exec(Lt&&Lt.keys&&Lt.keys.IE_PROTO||""))?"Symbol(src)_1."+Le:"",lr=st.toString,Ye=ln.call(Object),ft=RegExp("^"+ln.call(Mn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),jt=ee?_e.Buffer:void 0,an=_e.Symbol,sn=_e.Uint8Array,Bn=jt?jt.allocUnsafe:void 0,xn=function me(Le,dt){return function(Vt){return Le(dt(Vt))}}(Object.getPrototypeOf,Object),ai=Object.create,yi=st.propertyIsEnumerable,Xi=Me.splice,Vr=an?an.toStringTag:void 0,Ar=function(){try{var Le=Js(Object,"defineProperty");return Le({},"",{}),Le}catch{}}(),ko=jt?jt.isBuffer:void 0,Ht=Math.max,en=Date.now,Gt=Js(_e,"Map"),ht=Js(Object,"create"),ut=function(){function Le(){}return function(dt){if(!Xa(dt))return{};if(ai)return ai(dt);Le.prototype=dt;var Vt=new Le;return Le.prototype=void 0,Vt}}();function tt(Le){var dt=-1,Vt=null==Le?0:Le.length;for(this.clear();++dt<Vt;){var _n=Le[dt];this.set(_n[0],_n[1])}}function En(Le){var dt=-1,Vt=null==Le?0:Le.length;for(this.clear();++dt<Vt;){var _n=Le[dt];this.set(_n[0],_n[1])}}function pi(Le){var dt=-1,Vt=null==Le?0:Le.length;for(this.clear();++dt<Vt;){var _n=Le[dt];this.set(_n[0],_n[1])}}function Rr(Le){var dt=this.__data__=new En(Le);this.size=dt.size}function Cs(Le,dt){var Vt=eh(Le),_n=!Vt&&Za(Le),zn=!Vt&&!_n&&Zl(Le),Fi=!Vt&&!_n&&!zn&&Qs(Le),Yi=Vt||_n||zn||Fi,Ei=Yi?function ze(Le,dt){for(var Vt=-1,_n=Array(Le);++Vt<Le;)_n[Vt]=dt(Vt);return _n}(Le.length,String):[],hr=Ei.length;for(var Zr in Le)(dt||Mn.call(Le,Zr))&&(!Yi||!("length"==Zr||zn&&("offset"==Zr||"parent"==Zr)||Fi&&("buffer"==Zr||"byteLength"==Zr||"byteOffset"==Zr)||vu(Zr,hr)))&&Ei.push(Zr);return Ei}function Xc(Le,dt,Vt){(void 0!==Vt&&!Yl(Le[dt],Vt)||void 0===Vt&&!(dt in Le))&&Zs(Le,dt,Vt)}function uc(Le,dt,Vt){var _n=Le[dt];(!Mn.call(Le,dt)||!Yl(_n,Vt)||void 0===Vt&&!(dt in Le))&&Zs(Le,dt,Vt)}function ta(Le,dt){for(var Vt=Le.length;Vt--;)if(Yl(Le[Vt][0],dt))return Vt;return-1}function Zs(Le,dt,Vt){"__proto__"==dt&&Ar?Ar(Le,dt,{configurable:!0,enumerable:!0,value:Vt,writable:!0}):Le[dt]=Vt}tt.prototype.clear=function xt(){this.__data__=ht?ht(null):{},this.size=0},tt.prototype.delete=function _t(Le){var dt=this.has(Le)&&delete this.__data__[Le];return this.size-=dt?1:0,dt},tt.prototype.get=function Mt(Le){var dt=this.__data__;if(ht){var Vt=dt[Le];return Vt===y?void 0:Vt}return Mn.call(dt,Le)?dt[Le]:void 0},tt.prototype.has=function At(Le){var dt=this.__data__;return ht?void 0!==dt[Le]:Mn.call(dt,Le)},tt.prototype.set=function Ut(Le,dt){var Vt=this.__data__;return this.size+=this.has(Le)?0:1,Vt[Le]=ht&&void 0===dt?y:dt,this},En.prototype.clear=function ui(){this.__data__=[],this.size=0},En.prototype.delete=function zi(Le){var dt=this.__data__,Vt=ta(dt,Le);return!(Vt<0||(Vt==dt.length-1?dt.pop():Xi.call(dt,Vt,1),--this.size,0))},En.prototype.get=function cr(Le){var dt=this.__data__,Vt=ta(dt,Le);return Vt<0?void 0:dt[Vt][1]},En.prototype.has=function Dn(Le){return ta(this.__data__,Le)>-1},En.prototype.set=function Yo(Le,dt){var Vt=this.__data__,_n=ta(Vt,Le);return _n<0?(++this.size,Vt.push([Le,dt])):Vt[_n][1]=dt,this},pi.prototype.clear=function br(){this.size=0,this.__data__={hash:new tt,map:new(Gt||En),string:new tt}},pi.prototype.delete=function _l(Le){var dt=ql(this,Le).delete(Le);return this.size-=dt?1:0,dt},pi.prototype.get=function Ju(Le){return ql(this,Le).get(Le)},pi.prototype.has=function Kl(Le){return ql(this,Le).has(Le)},pi.prototype.set=function $l(Le,dt){var Vt=ql(this,Le),_n=Vt.size;return Vt.set(Le,dt),this.size+=Vt.size==_n?0:1,this},Rr.prototype.clear=function Ys(){this.__data__=new En,this.size=0},Rr.prototype.delete=function Qu(Le){var dt=this.__data__,Vt=dt.delete(Le);return this.size=dt.size,Vt},Rr.prototype.get=function Nd(Le){return this.__data__.get(Le)},Rr.prototype.has=function qa(Le){return this.__data__.has(Le)},Rr.prototype.set=function Zc(Le,dt){var Vt=this.__data__;if(Vt instanceof En){var _n=Vt.__data__;if(!Gt||_n.length<199)return _n.push([Le,dt]),this.size=++Vt.size,this;Vt=this.__data__=new pi(_n)}return Vt.set(Le,dt),this.size=Vt.size,this};var vl=function ed(Le){return function(dt,Vt,_n){for(var zn=-1,Fi=Object(dt),Yi=_n(dt),Ei=Yi.length;Ei--;){var hr=Yi[Le?Ei:++zn];if(!1===Vt(Fi[hr],hr,Fi))break}return dt}}();function la(Le){return null==Le?void 0===Le?"[object Undefined]":"[object Null]":Vr&&Vr in Object(Le)?function Qc(Le){var dt=Mn.call(Le,Vr),Vt=Le[Vr];try{Le[Vr]=void 0;var _n=!0}catch{}var zn=lr.call(Le);return _n&&(dt?Le[Vr]=Vt:delete Le[Vr]),zn}(Le):function gi(Le){return lr.call(Le)}(Le)}function na(Le){return Ji(Le)&&la(Le)==c}function ar(Le){return!(!Xa(Le)||function Et(Le){return!!ri&&ri in Le}(Le))&&(Vd(Le)?ft:Oe).test(function Ya(Le){if(null!=Le){try{return ln.call(Le)}catch{}try{return Le+""}catch{}}return""}(Le))}function dc(Le){if(!Xa(Le))return function dn(Le){var dt=[];if(null!=Le)for(var Vt in Object(Le))dt.push(Vt);return dt}(Le);var dt=Jt(Le),Vt=[];for(var _n in Le)"constructor"==_n&&(dt||!Mn.call(Le,_n))||Vt.push(_n);return Vt}function Jc(Le,dt,Vt,_n,zn){Le!==dt&&vl(dt,function(Fi,Yi){if(zn||(zn=new Rr),Xa(Fi))!function Hn(Le,dt,Vt,_n,zn,Fi,Yi){var Ei=Mo(Le,Vt),hr=Mo(dt,Vt),Zr=Yi.get(hr);if(Zr)Xc(Le,Vt,Zr);else{var Hr=Fi?Fi(Ei,hr,Vt+"",Le,dt,Yi):void 0,ba=void 0===Hr;if(ba){var je=eh(hr),Jl=!je&&Zl(hr),xl=!je&&!Jl&&Qs(hr);Hr=hr,je||Jl||xl?eh(Ei)?Hr=Ei:function yu(Le){return Ji(Le)&&td(Le)}(Ei)?Hr=function Cl(Le,dt){var Vt=-1,_n=Le.length;for(dt||(dt=Array(_n));++Vt<_n;)dt[Vt]=Le[Vt];return dt}(Ei):Jl?(ba=!1,Hr=function yl(Le,dt){if(dt)return Le.slice();var Vt=Le.length,_n=Bn?Bn(Vt):new Le.constructor(Vt);return Le.copy(_n),_n}(hr,!0)):xl?(ba=!1,Hr=function _u(Le,dt){var Vt=dt?function mu(Le){var dt=new Le.constructor(Le.byteLength);return new sn(dt).set(new sn(Le)),dt}(Le.buffer):Le.buffer;return new Le.constructor(Vt,Le.byteOffset,Le.length)}(hr,!0)):Hr=[]:function nd(Le){if(!Ji(Le)||la(Le)!=P)return!1;var dt=xn(Le);if(null===dt)return!0;var Vt=Mn.call(dt,"constructor")&&dt.constructor;return"function"==typeof Vt&&Vt instanceof Vt&&ln.call(Vt)==Ye}(hr)||Za(hr)?(Hr=Ei,Za(Ei)?Hr=function Xl(Le){return function bl(Le,dt,Vt,_n){var zn=!Vt;Vt||(Vt={});for(var Fi=-1,Yi=dt.length;++Fi<Yi;){var Ei=dt[Fi],hr=_n?_n(Vt[Ei],Le[Ei],Ei,Vt,Le):void 0;void 0===hr&&(hr=Le[Ei]),zn?Zs(Vt,Ei,hr):uc(Vt,Ei,hr)}return Vt}(Le,th(Le))}(Ei):(!Xa(Ei)||Vd(Ei))&&(Hr=function Ui(Le){return"function"!=typeof Le.constructor||Jt(Le)?{}:ut(xn(Le))}(hr))):ba=!1}ba&&(Yi.set(hr,Hr),zn(Hr,hr,_n,Fi,Yi),Yi.delete(hr)),Xc(Le,Vt,Hr)}}(Le,dt,Yi,Vt,Jc,_n,zn);else{var Ei=_n?_n(Mo(Le,Yi),Fi,Yi+"",Le,dt,zn):void 0;void 0===Ei&&(Ei=Fi),Xc(Le,Yi,Ei)}},th)}function ks(Le,dt){return Ho(function ir(Le,dt,Vt){return dt=Ht(void 0===dt?Le.length-1:dt,0),function(){for(var _n=arguments,zn=-1,Fi=Ht(_n.length-dt,0),Yi=Array(Fi);++zn<Fi;)Yi[zn]=_n[dt+zn];zn=-1;for(var Ei=Array(dt+1);++zn<dt;)Ei[zn]=_n[zn];return Ei[dt]=Vt(Yi),Fe(Le,this,Ei)}}(Le,dt,Ee),Le+"")}var Je=Ar?function(Le,dt){return Ar(Le,"toString",{configurable:!0,enumerable:!1,value:Tf(dt),writable:!0})}:Ee;function ql(Le,dt){var Vt=Le.__data__;return function lt(Le){var dt=typeof Le;return"string"==dt||"number"==dt||"symbol"==dt||"boolean"==dt?"__proto__"!==Le:null===Le}(dt)?Vt["string"==typeof dt?"string":"hash"]:Vt.map}function Js(Le,dt){var Vt=function be(Le,dt){return Le?.[dt]}(Le,dt);return ar(Vt)?Vt:void 0}function vu(Le,dt){var Vt=typeof Le;return!!(dt=dt??d)&&("number"==Vt||"symbol"!=Vt&&Ae.test(Le))&&Le>-1&&Le%1==0&&Le<dt}function Jt(Le){var dt=Le&&Le.constructor;return Le===("function"==typeof dt&&dt.prototype||st)}function Mo(Le,dt){if(("constructor"!==dt||"function"!=typeof Le[dt])&&"__proto__"!=dt)return Le[dt]}var Ho=function ia(Le){var dt=0,Vt=0;return function(){var _n=en(),zn=16-(_n-Vt);if(Vt=_n,zn>0){if(++dt>=800)return arguments[0]}else dt=0;return Le.apply(void 0,arguments)}}(Je);function Yl(Le,dt){return Le===dt||Le!=Le&&dt!=dt}var Za=na(function(){return arguments}())?na:function(Le){return Ji(Le)&&Mn.call(Le,"callee")&&!yi.call(Le,"callee")},eh=Array.isArray;function td(Le){return null!=Le&&qt(Le.length)&&!Vd(Le)}var Zl=ko||function rt(){return!1};function Vd(Le){if(!Xa(Le))return!1;var dt=la(Le);return dt==O||"[object GeneratorFunction]"==dt||"[object AsyncFunction]"==dt||"[object Proxy]"==dt}function qt(Le){return"number"==typeof Le&&Le>-1&&Le%1==0&&Le<=d}function Xa(Le){var dt=typeof Le;return null!=Le&&("object"==dt||"function"==dt)}function Ji(Le){return null!=Le&&"object"==typeof Le}var Qs=ke?function Pe(Le){return function(dt){return Le(dt)}}(ke):function ua(Le){return Ji(Le)&&qt(Le.length)&&!!Ne[la(Le)]};function th(Le){return td(Le)?Cs(Le,!0):dc(Le)}var Gp=function Xs(Le){return ks(function(dt,Vt){var _n=-1,zn=Vt.length,Fi=zn>1?Vt[zn-1]:void 0,Yi=zn>2?Vt[2]:void 0;for(Fi=Le.length>3&&"function"==typeof Fi?(zn--,Fi):void 0,Yi&&function Xe(Le,dt,Vt){if(!Xa(Vt))return!1;var _n=typeof dt;return!!("number"==_n?td(Vt)&&vu(dt,Vt.length):"string"==_n&&dt in Vt)&&Yl(Vt[dt],Le)}(Vt[0],Vt[1],Yi)&&(Fi=zn<3?void 0:Fi,zn=1),dt=Object(dt);++_n<zn;){var Ei=Vt[_n];Ei&&Le(dt,Ei,_n,Fi)}return dt})}(function(Le,dt,Vt){Jc(Le,dt,Vt)});function Tf(Le){return function(){return Le}}function Ee(Le){return Le}I.exports=Gp}).call(this,w(58),w(66)(X))},function(X,D,w){"use strict";w.d(D,"a",function(){return C}),w.d(D,"b",function(){return y}),w.d(D,"c",function(){return g});var E=w(2),I={scope:E.Scope.BLOCK,whitelist:["right","center","justify"]},C=new E.Attributor("align","align",I),y=new E.ClassAttributor("align","ql-align",I),g=new E.StyleAttributor("align","text-align",I)},function(X,D){X.exports=function(w){try{return!!w()}catch{return!0}}},function(X,D,w){var E=w(8),I=w(51),C=E.String,y=E.TypeError;X.exports=function(g){if(I(g))return g;throw y(C(g)+" is not an object")}},function(X,D,w){var E=w(39);X.exports=!E(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(X,D){var w=Function.prototype.call;X.exports=w.bind?w.bind(w):function(){return w.apply(w,arguments)}},function(X,D,w){"use strict";function I(A){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(A)}function C(A,F){if(!(A instanceof F))throw new TypeError("Cannot call a class as a function")}function y(A,F){for(var P=0;P<F.length;P++){var N=F[P];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(A,N.key,N)}}function p(A,F,P){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(B,V,H){var W=function d(A,F){for(;!Object.prototype.hasOwnProperty.call(A,F)&&null!==(A=O(A)););return A}(B,V);if(W){var q=Object.getOwnPropertyDescriptor(W,V);return q.get?q.get.call(H):q.value}})(A,F,P||A)}function c(A,F){if("function"!=typeof F&&null!==F)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),F&&h(A,F)}function h(A,F){return(h=Object.setPrototypeOf||function(N,B){return N.__proto__=B,N})(A,F)}function m(A){var F=function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var B,N=O(A);if(F){var V=O(this).constructor;B=Reflect.construct(N,arguments,V)}else B=N.apply(this,arguments);return v(this,B)}}function v(A,F){if(F&&("object"===I(F)||"function"==typeof F))return F;if(void 0!==F)throw new TypeError("Derived constructors may only return object or undefined");return function b(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}(A)}function O(A){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)})(A)}w.d(D,"a",function(){return k}),w.d(D,"b",function(){return M});var k=function(A){c(P,A);var F=m(P);function P(){return C(this,P),F.apply(this,arguments)}return function g(A,F,P){return F&&y(A.prototype,F),P&&y(A,P),A}(P,[{key:"format",value:function(B,V){B===this.statics.blotName&&V?this.domNode.setAttribute("href",this.constructor.sanitize(V)):p(O(P.prototype),"format",this).call(this,B,V)}}],[{key:"create",value:function(B){var V=p(O(P),"create",this).call(this,B);return V.setAttribute("href",this.sanitize(B)),V.setAttribute("rel","noopener noreferrer"),V.setAttribute("target","_blank"),V}},{key:"formats",value:function(B){return B.getAttribute("href")}},{key:"sanitize",value:function(B){return M(B,this.PROTOCOL_WHITELIST)?B:this.SANITIZED_URL}}]),P}(w(14).a);function M(A,F){var P=document.createElement("a");P.href=A;var N=P.href.slice(0,P.href.indexOf(":"));return F.indexOf(N)>-1}k.blotName="link",k.tagName="A",k.SANITIZED_URL="about:blank",k.PROTOCOL_WHITELIST=["http","https","mailto","tel"]},function(X,D,w){"use strict";D.a=new WeakMap},function(X,D,w){"use strict";w.d(D,"a",function(){return C}),w.d(D,"b",function(){return y});var E=w(2),I=w(34),C=new E.ClassAttributor("background","ql-bg",{scope:E.Scope.INLINE}),y=new I.a("background","background-color",{scope:E.Scope.INLINE})},function(X,D,w){"use strict";w.d(D,"b",function(){return F}),w.d(D,"a",function(){return M});var E=w(2);function I(P){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(B){return typeof B}:function(B){return B&&"function"==typeof Symbol&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B})(P)}function C(P,N){if(!(P instanceof N))throw new TypeError("Cannot call a class as a function")}function y(P,N){for(var B=0;B<N.length;B++){var V=N[B];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(P,V.key,V)}}function p(P,N,B){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(H,W,q){var G=function d(P,N){for(;!Object.prototype.hasOwnProperty.call(P,N)&&null!==(P=O(P)););return P}(H,W);if(G){var J=Object.getOwnPropertyDescriptor(G,W);return J.get?J.get.call(q):J.value}})(P,N,B||P)}function c(P,N){if("function"!=typeof N&&null!==N)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(N&&N.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),N&&h(P,N)}function h(P,N){return(h=Object.setPrototypeOf||function(V,H){return V.__proto__=H,V})(P,N)}function m(P){var N=function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var H,V=O(P);if(N){var W=O(this).constructor;H=Reflect.construct(V,arguments,W)}else H=V.apply(this,arguments);return v(this,H)}}function v(P,N){if(N&&("object"===I(N)||"function"==typeof N))return N;if(void 0!==N)throw new TypeError("Derived constructors may only return object or undefined");return function b(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}function O(P){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)})(P)}var k={scope:E.Scope.INLINE,whitelist:["serif","monospace"]},M=new E.ClassAttributor("font","ql-font",k),A=function(P){c(B,P);var N=m(B);function B(){return C(this,B),N.apply(this,arguments)}return function g(P,N,B){return N&&y(P.prototype,N),B&&y(P,B),P}(B,[{key:"value",value:function(H){return p(O(B.prototype),"value",this).call(this,H).replace(/["']/g,"")}}]),B}(E.StyleAttributor),F=new A("font","font-family",k)},function(X,D,w){"use strict";w.d(D,"a",function(){return I}),w.d(D,"b",function(){return C});var E=w(2),I=new E.ClassAttributor("size","ql-size",{scope:E.Scope.INLINE,whitelist:["small","large","huge"]}),C=new E.StyleAttributor("size","font-size",{scope:E.Scope.INLINE,whitelist:["10px","18px","32px"]})},function(X,D,w){"use strict";function E(I,C,y){y?I.setAttribute(C,y):I.removeAttribute(C)}w.d(D,"a",function(){return E})},function(X,D,w){"use strict";function I(M){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(F){return typeof F}:function(F){return F&&"function"==typeof Symbol&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(M)}function C(M,A){if(!(M instanceof A))throw new TypeError("Cannot call a class as a function")}function y(M,A){for(var F=0;F<A.length;F++){var P=A[F];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(M,P.key,P)}}function p(M,A,F){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(N,B,V){var H=function d(M,A){for(;!Object.prototype.hasOwnProperty.call(M,A)&&null!==(M=O(M)););return M}(N,B);if(H){var W=Object.getOwnPropertyDescriptor(H,B);return W.get?W.get.call(V):W.value}})(M,A,F||M)}function c(M,A){if("function"!=typeof A&&null!==A)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(A&&A.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),A&&h(M,A)}function h(M,A){return(h=Object.setPrototypeOf||function(P,N){return P.__proto__=N,P})(M,A)}function m(M){var A=function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var N,P=O(M);if(A){var B=O(this).constructor;N=Reflect.construct(P,arguments,B)}else N=P.apply(this,arguments);return v(this,N)}}function v(M,A){if(A&&("object"===I(A)||"function"==typeof A))return A;if(void 0!==A)throw new TypeError("Derived constructors may only return object or undefined");return function b(M){if(void 0===M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}(M)}function O(M){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)})(M)}var k=function(M){c(F,M);var A=m(F);function F(){return C(this,F),A.apply(this,arguments)}return function g(M,A,F){return A&&y(M.prototype,A),F&&y(M,F),M}(F,[{key:"optimize",value:function(N){p(O(F.prototype),"optimize",this).call(this,N),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return p(O(F),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),F}(w(14).a);k.blotName="bold",k.tagName=["STRONG","B"],D.a=k},function(X,D,w){"use strict";w.d(D,"a",function(){return M}),w.d(D,"b",function(){return P});var E=w(2),I=w(0),C=w(12),y=w(15);function g(N){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(V){return typeof V}:function(V){return V&&"function"==typeof Symbol&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V})(N)}function d(N,B){for(var V=0;V<B.length;V++){var H=B[V];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,H.key,H)}}function h(N,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(B&&B.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),B&&m(N,B)}function m(N,B){return(m=Object.setPrototypeOf||function(H,W){return H.__proto__=W,H})(N,B)}function v(N){var B=function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var W,H=k(N);if(B){var q=k(this).constructor;W=Reflect.construct(H,arguments,q)}else W=H.apply(this,arguments);return b(this,W)}}function b(N,B){if(B&&("object"===g(B)||"function"==typeof B))return B;if(void 0!==B)throw new TypeError("Derived constructors may only return object or undefined");return x(N)}function x(N){if(void 0===N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function k(N){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)})(N)}var M=function(N){h(V,N);var B=v(V);function V(H,W){var q;return function p(N,B){if(!(N instanceof B))throw new TypeError("Cannot call a class as a function")}(this,V),(q=B.call(this,H,W)).lastRecorded=0,q.ignoreChange=!1,q.clear(),q.quill.on(I.a.events.EDITOR_CHANGE,function(G,J,ne,ae){G!==I.a.events.TEXT_CHANGE||q.ignoreChange||(q.options.userOnly&&ae!==I.a.sources.USER?q.transform(J):q.record(J,ne))}),q.quill.keyboard.addBinding({key:"z",shortKey:!0},q.undo.bind(x(q))),q.quill.keyboard.addBinding({key:"z",shortKey:!0,shiftKey:!0},q.redo.bind(x(q))),Object(y.a)()&&/Win/i.test(navigator.platform)&&q.quill.keyboard.addBinding({key:"y",shortKey:!0},q.redo.bind(x(q))),q.quill.root.addEventListener("beforeinput",function(G){"historyUndo"===G.inputType?(q.undo(),G.preventDefault()):"historyRedo"===G.inputType&&(q.redo(),G.preventDefault())}),q}return function c(N,B,V){return B&&d(N.prototype,B),V&&d(N,V),N}(V,[{key:"change",value:function(W,q){if(0!==this.stack[W].length){var G=this.stack[W].pop(),J=this.quill.getContents(),ne=G.invert(J);this.stack[q].push(ne),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(G,I.a.sources.USER),this.ignoreChange=!1;var ae=P(this.quill.scroll,G);this.quill.setSelection(ae)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(W,q){if(0!==W.ops.length){this.stack.redo=[];var G=W.invert(q),J=Date.now();if(this.lastRecorded+this.options.delay>J&&this.stack.undo.length>0){var ne=this.stack.undo.pop();G=G.compose(ne)}else this.lastRecorded=J;0!==G.length()&&(this.stack.undo.push(G),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(W){A(this.stack.undo,W),A(this.stack.redo,W)}},{key:"undo",value:function(){this.change("undo","redo")}}]),V}(C.a);function A(N,B){for(var V=B,H=N.length-1;H>=0;H-=1){var W=N[H];N[H]=V.transform(W,!0),V=W.transform(V),0===N[H].length()&&N.splice(H,1)}}function P(N,B){var V=B.reduce(function(W,q){return W+(q.delete||0)},0),H=B.length()-V;return function F(N,B){var V=B.ops[B.ops.length-1];return null!=V&&(null!=V.insert?"string"==typeof V.insert&&V.insert.endsWith("\n"):null!=V.attributes&&Object.keys(V.attributes).some(function(H){return null!=N.query(H,E.Scope.BLOCK)}))}(N,B)&&(H-=1),H}M.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1}},function(X,D,w){var E=w(22);X.exports=function(I){return"object"==typeof I?null!==I:E(I)}},function(X,D,w){var E=w(8),I=w(41),C=w(101),y=w(40),g=w(84),p=E.TypeError,d=Object.defineProperty;D.f=I?d:function(h,m,v){if(y(h),m=g(m),y(v),C)try{return d(h,m,v)}catch{}if("get"in v||"set"in v)throw p("Accessors not supported");return"value"in v&&(h[m]=v.value),h}},function(X,D,w){"use strict";w.d(D,"a",function(){return A});var E=w(2),I=w(29),C=w(19);function y(F){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(F)}function g(F,P){if(!(F instanceof P))throw new TypeError("Cannot call a class as a function")}function p(F,P){for(var N=0;N<P.length;N++){var B=P[N];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}function c(F,P,N){return(c=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(V,H,W){var q=function h(F,P){for(;!Object.prototype.hasOwnProperty.call(F,P)&&null!==(F=M(F)););return F}(V,H);if(q){var G=Object.getOwnPropertyDescriptor(q,H);return G.get?G.get.call(W):G.value}})(F,P,N||F)}function m(F,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),P&&v(F,P)}function v(F,P){return(v=Object.setPrototypeOf||function(B,V){return B.__proto__=V,B})(F,P)}function b(F){var P=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,B=M(F);if(P){var H=M(this).constructor;V=Reflect.construct(B,arguments,H)}else V=B.apply(this,arguments);return x(this,V)}}function x(F,P){if(P&&("object"===y(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return function O(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(F)}function M(F){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)})(F)}var A=function(F){m(N,F);var P=b(N);function N(B,V){var H,W,q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{allowedTags:[]};return g(this,N),(W=P.call(this,B,V,q)).allowedTags=null!==(H=q.allowedTags)&&void 0!==H?H:[],W}return function d(F,P,N){return P&&p(F.prototype,P),N&&p(F,N),F}(N,[{key:"add",value:function(V,H){return I.c.call(this,c(M(N.prototype),"add",this),V,H)}},{key:"remove",value:function(V){return I.c.call(this,c(M(N.prototype),"remove",this),V)}},{key:"value",value:function(V){return I.c.call(this,c(M(N.prototype),"value",this),V)}},{key:"canAdd",value:function(V,H){return I.a.call(this,c(M(N.prototype),"canAdd",this),V,H)}}],[{key:"keys",value:function(V){return Object(I.b)(c(M(N),"keys",this),V,C.a.style)}}]),N}(E.StyleAttributor)},function(X,D,w){"use strict";w.d(D,"a",function(){return I});var E=w(0);function I(C,y){return{key:C?"upArrow":"downArrow",collapsed:!0,format:y,handler:function(p,d){var c=C?"prev":"next",h=d.line,m=h.statics.blotName.indexOf("Line")>-1?h.parent:h,b=m.parent[c]||m.parent.parent[c]?.children.head;if(null!=b){if("tableRow"===b.statics.blotName||"tableHeaderRow"===b.statics.blotName){for(var x=b.children.head,O=m;null!=O.prev;)O=O.prev,x=x.next;var k=x.offset(this.quill.scroll)+Math.min(d.offset,x.length()-1);this.quill.setSelection(k,0,E.a.sources.USER)}}else{var M=m.table()[c];null!=M&&this.quill.setSelection(C?M.offset(this.quill.scroll)+M.length()-1:M.offset(this.quill.scroll),0,E.a.sources.USER)}return!1}}}},function(X,D,w){"use strict";w.d(D,"a",function(){return m}),w.d(D,"b",function(){return v});var E=w(2),I=w(63),C=w(53),y=w(26);function g(b,x){var O=Object.keys(b);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(b);x&&(k=k.filter(function(M){return Object.getOwnPropertyDescriptor(b,M).enumerable})),O.push.apply(O,k)}return O}function p(b){for(var x=1;x<arguments.length;x++){var O=null!=arguments[x]?arguments[x]:{};x%2?g(Object(O),!0).forEach(function(k){d(b,k,O[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(O)):g(Object(O)).forEach(function(k){Object.defineProperty(b,k,Object.getOwnPropertyDescriptor(O,k))})}return b}function d(b,x,O){return x in b?Object.defineProperty(b,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):b[x]=O,b}function c(b,x,O,k){b[x]=!k&&b[x]?b[x]:O}function h(b,x,O,k,M,A){return b.filter(function(F){return!!F}).forEach(function(F){var P=O.query(F,E.Scope.ATTRIBUTE);if(null!==P){var N=P.value(x);if(N)return void c(M,P.attrName,N,A)}var B=k[F];if(null!=B&&(B.attrName===F||B.keyName===F)){var V=B.value(x)||void 0;c(M,B.attrName,V,A)}}),M}function m(b){return function(x,O,k){var M=I.a.keys(x),A=C.a.keys(x),F=p(p({},h(M,x,k,b,{},!0)),h(A,x,k,b,{},!0));return Object.keys(F).length>0?Object(y.a)(O,F):O}}function v(b){return function(x,O,k){var M,A=I.a.keys(x),F=C.a.keys(x),P="TR"===(null===(M=x.parentNode)||void 0===M?void 0:M.tagName)?x.parentNode:void 0,N=p(p({},h(A,x,k,b,{},!0)),h(F,x,k,b,{},!0));return P&&(N=h(C.a.keys(P),P,k,b,N,!1)),Object.keys(N).length>0?Object(y.a)(O,N):O}}},function(X,D,w){"use strict";var E=w(2),I=w(9);function C(F){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(F)}function g(F,P){for(var N=0;N<P.length;N++){var B=P[N];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}function d(F,P,N){return(d=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(V,H,W){var q=function c(F,P){for(;!Object.prototype.hasOwnProperty.call(F,P)&&null!==(F=k(F)););return F}(V,H);if(q){var G=Object.getOwnPropertyDescriptor(q,H);return G.get?G.get.call(W):G.value}})(F,P,N||F)}function h(F,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),P&&m(F,P)}function m(F,P){return(m=Object.setPrototypeOf||function(B,V){return B.__proto__=V,B})(F,P)}function v(F){var P=function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,B=k(F);if(P){var H=k(this).constructor;V=Reflect.construct(B,arguments,H)}else V=B.apply(this,arguments);return b(this,V)}}function b(F,P){if(P&&("object"===C(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return function x(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(F)}function k(F){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)})(F)}var M="\ufeff";D.a=function(F){h(N,F);var P=v(N);function N(B,V){var H;return function y(F,P){if(!(F instanceof P))throw new TypeError("Cannot call a class as a function")}(this,N),(H=P.call(this,B,V)).contentNode=document.createElement("span"),H.contentNode.setAttribute("contenteditable",!1),Array.from(H.domNode.childNodes).forEach(function(W){H.contentNode.appendChild(W)}),H.leftGuard=document.createTextNode(M),H.rightGuard=document.createTextNode(M),H.domNode.appendChild(H.leftGuard),H.domNode.appendChild(H.contentNode),H.domNode.appendChild(H.rightGuard),H}return function p(F,P,N){return P&&g(F.prototype,P),N&&g(F,N),F}(N,[{key:"index",value:function(V,H){return V===this.leftGuard?0:V===this.rightGuard?1:d(k(N.prototype),"index",this).call(this,V,H)}},{key:"restore",value:function(V){var H,W,q=V.data.split(M).join("");if(V===this.leftGuard)if(this.prev instanceof I.a){var G=this.prev.length();this.prev.insertAt(G,q),H={startNode:this.prev.domNode,startOffset:G+q.length}}else W=document.createTextNode(q),this.parent.insertBefore(this.scroll.create(W),this),H={startNode:W,startOffset:q.length};else V===this.rightGuard&&(this.next instanceof I.a?(this.next.insertAt(0,q),H={startNode:this.next.domNode,startOffset:q.length}):(W=document.createTextNode(q),this.parent.insertBefore(this.scroll.create(W),this.next),H={startNode:W,startOffset:q.length}));return V.data=M,H}},{key:"update",value:function(V,H){var W=this;V.forEach(function(q){if("characterData"===q.type&&(q.target===W.leftGuard||q.target===W.rightGuard)){var G=W.restore(q.target);G&&(H.range=G)}})}}]),N}(E.EmbedBlot)},function(X,D,w){"use strict";function I(g,p){for(var d=0;d<p.length;d++){var c=p[d];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(g,c.key,c)}}var y=function(){function g(p,d){(function E(g,p){if(!(g instanceof p))throw new TypeError("Cannot call a class as a function")})(this,g),this.quill=p,this.options=d,this.modules={}}return function C(g,p,d){return p&&I(g.prototype,p),d&&I(g,d),g}(g,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(c){null==d.modules[c]&&d.addModule(c)})}},{key:"addModule",value:function(d){var c=this.quill.constructor.import("modules/".concat(d));return this.modules[d]=new c(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),g}();y.DEFAULTS={modules:{}},y.themes={default:y},D.a=y},function(X,D){var w;w=function(){return this}();try{w=w||new Function("return this")()}catch{"object"==typeof window&&(w=window)}X.exports=w},function(X,D,w){"use strict";var E=w(1),I=w.n(E),C=w(3),y=w(12),g=w(15);function p(P){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(B){return typeof B}:function(B){return B&&"function"==typeof Symbol&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B})(P)}function h(P,N){for(var B=0;B<N.length;B++){var V=N[B];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(P,V.key,V)}}function v(P,N){if("function"!=typeof N&&null!==N)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(N&&N.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),N&&b(P,N)}function b(P,N){return(b=Object.setPrototypeOf||function(V,H){return V.__proto__=H,V})(P,N)}function x(P){var N=function M(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var H,V=A(P);if(N){var W=A(this).constructor;H=Reflect.construct(V,arguments,W)}else H=V.apply(this,arguments);return O(this,H)}}function O(P,N){if(N&&("object"===p(N)||"function"==typeof N))return N;if(void 0!==N)throw new TypeError("Derived constructors may only return object or undefined");return function k(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}function A(P){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)})(P)}var F=function(P){v(B,P);var N=x(B);function B(V,H){var W;return function c(P,N){if(!(P instanceof N))throw new TypeError("Cannot call a class as a function")}(this,B),(W=N.call(this,V,H)).preventImageUploading(!1),W.addDragOverHandler(),W.addDropHandler(),W}return function m(P,N,B){return N&&h(P.prototype,N),B&&h(P,B),P}(B,[{key:"addDragOverHandler",value:function(){if(Object(g.a)()){var H=window.navigator.userAgent.toLowerCase();(-1!==H.indexOf("msie ")||-1!==H.indexOf("trident/")||-1!==H.indexOf("edge/"))&&this.quill.root.addEventListener("dragover",function(q){q.preventDefault()})}}},{key:"addDropHandler",value:function(){var H=this;this.quill.root.addEventListener("drop",function(W){var q=0===W.dataTransfer.files.length,G=H.options.onDrop;if(G&&"function"==typeof G&&G(W),!q&&!H.preventImageUpload){var J;if(W.preventDefault(),document.caretRangeFromPoint)J=document.caretRangeFromPoint(W.clientX,W.clientY);else{if(!document.caretPositionFromPoint)return;var ne=document.caretPositionFromPoint(W.clientX,W.clientY);(J=document.createRange()).setStart(ne.offsetNode,ne.offset),J.setEnd(ne.offsetNode,ne.offset)}var ae=H.quill.selection.normalizeNative(J),ge=H.quill.selection.normalizedToRange(ae);H.upload(ge,W.dataTransfer.files)}})}},{key:"preventImageUploading",value:function(H){return typeof H<"u"&&(this.preventImageUpload=H),this.preventImageUpload}},{key:"upload",value:function(H,W,q){var G=this;if(!this.preventImageUpload||q){var J=[];Array.from(W).forEach(function(ne){ne&&-1!==G.options.mimetypes.indexOf(ne.type)&&J.push(ne)}),J.length>0&&this.options.handler.call(this,H,J,this.options.imageBlot)}}}]),B}(y.a);F.DEFAULTS={mimetypes:["image/png","image/jpeg","image/pjpeg","image/gif","image/webp","image/bmp","image/svg+xml","image/vnd.microsoft.icon"],imageBlot:"image",handler:function(N,B,V){var H=this,W=B.map(function(q){return new Promise(function(G){var J=new FileReader;J.onload=function(ne){G(ne.target.result)},J.readAsDataURL(q)})});Promise.all(W).then(function(q){var G=q.reduce(function(J,ne){return J.insert(function d(P,N,B){return N in P?Object.defineProperty(P,N,{value:B,enumerable:!0,configurable:!0,writable:!0}):P[N]=B,P}({},V,ne))},(new I.a).retain(N.index).delete(N.length));H.quill.updateContents(G,C.a.sources.USER),H.quill.setSelection(N.index+q.length,C.a.sources.SILENT)})}},D.a=F},function(X,D,w){var E=w(8),I=w(22),C=function(y){return I(y)?y:void 0};X.exports=function(y,g){return arguments.length<2?C(E[y]):E[y]&&E[y][g]}},function(X,D,w){var E=w(8),I=w(89).f,C=w(70),y=w(90),g=w(81),p=w(135),d=w(140);X.exports=function(c,h){var O,k,M,A,F,m=c.target,v=c.global,b=c.stat;if(O=v?E:b?E[m]||g(m,{}):(E[m]||{}).prototype)for(k in h){if(A=h[k],M=c.noTargetGet?(F=I(O,k))&&F.value:O[k],!d(v?k:m+(b?".":"#")+k,c.forced)&&void 0!==M){if(typeof A==typeof M)continue;p(A,M)}(c.sham||M&&M.sham)&&C(A,"sham",!0),y(O,k,A,c)}}},function(X,D,w){var E=w(134),I=w(69);X.exports=function(C){return E(I(C))}},function(X,D,w){"use strict";w.d(D,"a",function(){return A});var E=w(2),I=w(29),C=w(19);function y(F){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(N){return typeof N}:function(N){return N&&"function"==typeof Symbol&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(F)}function g(F,P){if(!(F instanceof P))throw new TypeError("Cannot call a class as a function")}function p(F,P){for(var N=0;N<P.length;N++){var B=P[N];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(F,B.key,B)}}function c(F,P,N){return(c=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(V,H,W){var q=function h(F,P){for(;!Object.prototype.hasOwnProperty.call(F,P)&&null!==(F=M(F)););return F}(V,H);if(q){var G=Object.getOwnPropertyDescriptor(q,H);return G.get?G.get.call(W):G.value}})(F,P,N||F)}function m(F,P){if("function"!=typeof P&&null!==P)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(P&&P.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),P&&v(F,P)}function v(F,P){return(v=Object.setPrototypeOf||function(B,V){return B.__proto__=V,B})(F,P)}function b(F){var P=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,B=M(F);if(P){var H=M(this).constructor;V=Reflect.construct(B,arguments,H)}else V=B.apply(this,arguments);return x(this,V)}}function x(F,P){if(P&&("object"===y(P)||"function"==typeof P))return P;if(void 0!==P)throw new TypeError("Derived constructors may only return object or undefined");return function O(F){if(void 0===F)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(F)}function M(F){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)})(F)}var A=function(F){m(N,F);var P=b(N);function N(B,V){var H,W,q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{allowedTags:[]};return g(this,N),(W=P.call(this,B,V,q)).allowedTags=null!==(H=q.allowedTags)&&void 0!==H?H:[],W}return function d(F,P,N){return P&&p(F.prototype,P),N&&p(F,N),F}(N,[{key:"add",value:function(V,H){return I.c.call(this,c(M(N.prototype),"add",this),V,H)}},{key:"remove",value:function(V){return I.c.call(this,c(M(N.prototype),"remove",this),V)}},{key:"value",value:function(V){return I.c.call(this,c(M(N.prototype),"value",this),V)}},{key:"canAdd",value:function(V,H){return I.a.call(this,c(M(N.prototype),"canAdd",this),V,H)}}],[{key:"keys",value:function(V){return Object(I.b)(c(M(N),"keys",this),V,C.a.attribute)}}]),N}(E.Attributor)},function(X,D,w){"use strict";function E(){return Math.random().toString(36).slice(2,6)}w.d(D,"a",function(){return E})},function(X,D,w){"use strict";var E=w(1),I=w.n(E),C=w(2),y=w(0),g=w(12),p=w(6),d=w(10),c=w(13),h=w(5),m=w(21),v=w(11),b=w(64),x=w(48);function O(ht){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(tt){return typeof tt}:function(tt){return tt&&"function"==typeof Symbol&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt})(ht)}function k(ht,ut){return function F(ht){if(Array.isArray(ht))return ht}(ht)||function A(ht,ut){var tt=null==ht?null:typeof Symbol<"u"&&ht[Symbol.iterator]||ht["@@iterator"];if(null!=tt){var At,Ut,xt=[],_t=!0,Mt=!1;try{for(tt=tt.call(ht);!(_t=(At=tt.next()).done)&&(xt.push(At.value),!ut||xt.length!==ut);_t=!0);}catch(En){Mt=!0,Ut=En}finally{try{!_t&&null!=tt.return&&tt.return()}finally{if(Mt)throw Ut}}return xt}}(ht,ut)||B(ht,ut)||function M(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(ht){return function H(ht){if(Array.isArray(ht))return W(ht)}(ht)||function V(ht){if(typeof Symbol<"u"&&null!=ht[Symbol.iterator]||null!=ht["@@iterator"])return Array.from(ht)}(ht)||B(ht)||function N(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(ht,ut){if(ht){if("string"==typeof ht)return W(ht,ut);var tt=Object.prototype.toString.call(ht).slice(8,-1);if("Object"===tt&&ht.constructor&&(tt=ht.constructor.name),"Map"===tt||"Set"===tt)return Array.from(ht);if("Arguments"===tt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return W(ht,ut)}}function W(ht,ut){(null==ut||ut>ht.length)&&(ut=ht.length);for(var tt=0,xt=new Array(ut);tt<ut;tt++)xt[tt]=ht[tt];return xt}function q(ht,ut){if(!(ht instanceof ut))throw new TypeError("Cannot call a class as a function")}function G(ht,ut){for(var tt=0;tt<ut.length;tt++){var xt=ut[tt];xt.enumerable=xt.enumerable||!1,xt.configurable=!0,"value"in xt&&(xt.writable=!0),Object.defineProperty(ht,xt.key,xt)}}function J(ht,ut,tt){return ut&&G(ht.prototype,ut),tt&&G(ht,tt),ht}function ne(ht,ut,tt){return(ne=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(_t,Mt,At){var Ut=function ae(ht,ut){for(;!Object.prototype.hasOwnProperty.call(ht,ut)&&null!==(ht=Q(ht)););return ht}(_t,Mt);if(Ut){var En=Object.getOwnPropertyDescriptor(Ut,Mt);return En.get?En.get.call(At):En.value}})(ht,ut,tt||ht)}function ge(ht,ut){if("function"!=typeof ut&&null!==ut)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(ut&&ut.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),ut&&pe(ht,ut)}function pe(ht,ut){return(pe=Object.setPrototypeOf||function(xt,_t){return xt.__proto__=_t,xt})(ht,ut)}function le(ht){var ut=function K(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _t,xt=Q(ht);if(ut){var Mt=Q(this).constructor;_t=Reflect.construct(xt,arguments,Mt)}else _t=xt.apply(this,arguments);return ce(this,_t)}}function ce(ht,ut){if(ut&&("object"===O(ut)||"function"==typeof ut))return ut;if(void 0!==ut)throw new TypeError("Derived constructors may only return object or undefined");return function oe(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}function Q(ht){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(tt){return tt.__proto__||Object.getPrototypeOf(tt)})(ht)}var de=["row","cell"],Ae="data-table-",Ne=function(ht){ge(tt,ht);var ut=le(tt);function tt(){return q(this,tt),ut.apply(this,arguments)}return J(tt,[{key:"optimize",value:function(){var _t,Mt=this.domNode.getAttribute("".concat(Ae,"row"));if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var At=this.domNode,Ut={row:Mt};Object.keys(m.b).forEach(function(cr){var Dn=At.dataset[cr.toLowerCase()];Dn&&(Ut[cr]=Dn)}),this.wrap(this.statics.requiredContainer.blotName,Ut)}for(var En=arguments.length,ui=new Array(En),zi=0;zi<En;zi++)ui[zi]=arguments[zi];(_t=ne(Q(tt.prototype),"optimize",this)).call.apply(_t,[this].concat(ui))}},{key:"format",value:function(_t,Mt){"tableCellLine"===_t&&null===Mt&&(Mt=this.formats().tableCellLine);var Ut=de.indexOf(_t)>-1;if(Ut||v.c[_t]||m.b[_t]){var ui,zi,cr,En="data-".concat(Ut?"table-":"").concat(_t.toLowerCase());Object(x.a)(this.domNode,En,Mt),m.b[_t]&&(null===(ui=this.cell())||void 0===ui||ui.format(_t,Mt)),v.c[_t]&&(null===(zi=this.cell())||void 0===zi||null===(cr=zi.table())||void 0===cr||cr.format(_t,Mt))}else ne(Q(tt.prototype),"format",this).call(this,_t,Mt)}},{key:"cell",value:function(){return"row"in this.parent?this.parent:null}}],[{key:"create",value:function(_t){var Mt=ne(Q(tt),"create",this).call(this,_t);return de.forEach(function(At){var Ut,En="row"===At?Pe:be;Mt.setAttribute("".concat(Ae).concat(At),null!==(Ut=_t[At])&&void 0!==Ut?Ut:En())}),Mt}},{key:"formats",value:function(_t){return de.reduce(function(Mt,At){var Ut="".concat(Ae).concat(At);return _t.hasAttribute(Ut)&&(Mt[At]=_t.getAttribute(Ut)||void 0),Mt},{})}}]),tt}(p.d);Ne.blotName="tableCellLine",Ne.className="ql-table-cell-line",Ne.tagName="P";var Qe=function(ht){ge(tt,ht);var ut=le(tt);function tt(){return q(this,tt),ut.apply(this,arguments)}return tt}(Ne);Qe.blotName="tableHeaderCellLine",Qe.className="ql-table-header-cell-line";var $e=function(ht){ge(tt,ht);var ut=le(tt);function tt(){return q(this,tt),ut.apply(this,arguments)}return J(tt,[{key:"format",value:function(_t,Mt){var At;null===(At=m.b[_t])||void 0===At||At.add(this.domNode,Mt)}},{key:"checkMerge",value:function(){if(ne(Q(tt.prototype),"checkMerge",this).call(this)&&null!=this.next.children.head){var _t=this.children.head.formats()[this.children.head.statics.blotName],Mt=this.children.tail.formats()[this.children.tail.statics.blotName],At=this.next.children.head.formats()[this.next.children.head.statics.blotName],Ut=this.next.children.tail.formats()[this.next.children.tail.statics.blotName];return _t.cell===Mt.cell&&_t.cell===At.cell&&_t.cell===Ut.cell}return!1}},{key:"formats",value:function(){return tt.cellFormats(this.domNode)}},{key:"cellOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"row",value:function(){return"table"in this.parent?this.parent:null}},{key:"rowOffset",value:function(){return this.row()?this.row().rowOffset():-1}},{key:"table",value:function(){var _t;return null===(_t=this.row())||void 0===_t?void 0:_t.table()}},{key:"optimize",value:function(){var _t,Mt,At=null!==(_t=this.domNode.getAttribute("".concat(Ae,"row")))&&void 0!==_t?_t:this.domNode.getAttribute("".concat(Ae,"header-row"));this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName,{row:At});for(var Ut=arguments.length,En=new Array(Ut),ui=0;ui<Ut;ui++)En[ui]=arguments[ui];(Mt=ne(Q(tt.prototype),"optimize",this)).call.apply(Mt,[this].concat(En))}}],[{key:"create",value:function(_t){var Mt=ne(Q(tt),"create",this).call(this,_t);return _t&&Object.keys(_t).forEach(function(At){var Ut;null===(Ut=m.b[At])||void 0===Ut||Ut.add(Mt,_t[At])}),Mt}},{key:"cellFormats",value:function(_t){var At,Mt={};return(_t.hasAttribute("".concat(Ae,"row"))||_t.hasAttribute("".concat(Ae,"header-row")))&&(Mt.row=null!==(At=_t.getAttribute("".concat(Ae,"row")))&&void 0!==At?At:_t.getAttribute("".concat(Ae,"header-row"))),Object.keys(m.b).forEach(function(Ut){var En,ui=null===(En=_t.firstElementChild)||void 0===En?void 0:En.dataset[Ut.toLowerCase()];ui&&(Mt[Ut]=ui)}),Mt}}]),tt}(c.a);$e.tagName=["TD","TH"];var _e=function(ht){ge(tt,ht);var ut=le(tt);function tt(){return q(this,tt),ut.apply(this,arguments)}return J(tt,[{key:"format",value:function(_t,Mt){"row"===_t?(this.domNode.setAttribute("".concat(Ae).concat(_t),Mt),this.children.forEach(function(At){At.format(_t,Mt)})):ne(Q(tt.prototype),"format",this).call(this,_t,Mt)}}],[{key:"create",value:function(_t){var Mt=ne(Q(tt),"create",this).call(this,_t),At="".concat(Ae,"row");return null!=_t&&_t.row&&Mt.setAttribute(At,_t.row),Mt}}]),tt}($e);_e.blotName="tableCell",_e.className="ql-table-data-cell",_e.dataAttribute="".concat(Ae,"row");var xe=function(ht){ge(tt,ht);var ut=le(tt);function tt(){return q(this,tt),ut.apply(this,arguments)}return J(tt,[{key:"format",value:function(_t,Mt){"row"===_t?(this.domNode.setAttribute("".concat(Ae).concat(_t),Mt),this.children.forEach(function(At){At.format(_t,Mt)})):ne(Q(tt.prototype),"format",this).call(this,_t,Mt)}}],[{key:"create",value:function(_t){var Mt=ne(Q(tt),"create",this).call(this,_t),At="".concat(Ae,"header-row");return _t&&_t.row&&Mt.setAttribute(At,_t.row),Mt}}]),tt}($e);xe.tagName=["TH","TD"],xe.className="ql-table-header-cell",xe.blotName="tableHeaderCell",xe.dataAttribute="".concat(Ae,"header-row");var ve=function(ht){ge(tt,ht);var ut=le(tt);function tt(){return q(this,tt),ut.apply(this,arguments)}return J(tt,[{key:"checkMerge",value:function(){if(ne(Q(tt.prototype),"checkMerge",this).call(this)&&Object(h.a)(this.next.children.head)){var _t="row",Mt=this.children.head.formats(),At=this.children.tail.formats(),Ut=this.next.children.head.formats(),En=this.next.children.tail.formats();return Mt[_t]===At[_t]&&Mt[_t]===Ut[_t]&&Mt[_t]===En[_t]}return!1}},{key:"optimize",value:function(){for(var _t,Mt=this,At=arguments.length,Ut=new Array(At),En=0;En<At;En++)Ut[En]=arguments[En];(_t=ne(Q(tt.prototype),"optimize",this)).call.apply(_t,[this].concat(Ut));var ui=this.childFormatName;this.children.forEach(function(zi){if(Object(h.a)(zi.next)){var cr=zi.formats(),Dn=zi.next.formats();if(cr[ui]!==Dn[ui]){var Yo=Mt.splitAfter(zi);Yo&&Yo.optimize(),Mt.prev&&Mt.prev.optimize()}}})}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){var _t;return null===(_t=this.parent)||void 0===_t?void 0:_t.parent}},{key:"formats",value:function(){var _t={},Mt="".concat(Ae,"row");return this.domNode.hasAttribute(Mt)&&(_t[Mt]=this.domNode.getAttribute(Mt)),_t}}],[{key:"create",value:function(_t){var Mt=ne(Q(tt),"create",this).call(this,_t);return null!=_t&&_t.row&&Mt.setAttribute("".concat(Ae,"row"),_t.row),Mt}}]),tt}(c.a);ve.tagName="TR";var ee=function(ht){ge(tt,ht);var ut=le(tt);function tt(xt,_t){var Mt;return q(this,tt),(Mt=ut.call(this,xt,_t)).childFormatName="table",Mt}return tt}(ve);ee.blotName="tableRow";var Ce=function(ht){ge(tt,ht);var ut=le(tt);function tt(xt,_t){var Mt;return q(this,tt),(Mt=ut.call(this,xt,_t)).childFormatName="tableHeaderCell",Mt}return tt}(ve);Ce.blotName="tableHeaderRow";var De=function(ht){ge(tt,ht);var ut=le(tt);function tt(){return q(this,tt),ut.apply(this,arguments)}return J(tt,[{key:"optimize",value:function(){var _t;if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var Mt=this.children.head.children.head.children.head.domNode,At={};Object.keys(v.c).forEach(function(zi){var cr=Mt.dataset[zi.toLowerCase()];cr&&(At[zi]=cr)}),this.wrap(this.statics.requiredContainer.blotName,At)}for(var Ut=arguments.length,En=new Array(Ut),ui=0;ui<Ut;ui++)En[ui]=arguments[ui];(_t=ne(Q(tt.prototype),"optimize",this)).call.apply(_t,[this].concat(En))}}]),tt}(c.a),ke=function(ht){ge(tt,ht);var ut=le(tt);function tt(){return q(this,tt),ut.apply(this,arguments)}return tt}(De);ke.blotName="tableBody",ke.tagName="TBODY";var Fe=function(ht){ge(tt,ht);var ut=le(tt);function tt(){return q(this,tt),ut.apply(this,arguments)}return tt}(De);Fe.blotName="tableHeader",Fe.tagName="THEAD";var ze=function(ht){ge(tt,ht);var ut=le(tt);function tt(){return q(this,tt),ut.apply(this,arguments)}return J(tt,[{key:"balanceCells",value:function(){var _t=this.descendants(Ce),Mt=this.descendants(ee),At=this.getMaxTableColCount(_t,Mt);this.balanceRows(At,_t,xe),this.balanceRows(At,Mt,_e)}},{key:"getMaxTableColCount",value:function(_t,Mt){return Math.max(this.getMaxRowColCount(_t),this.getMaxRowColCount(Mt))}},{key:"getMaxRowColCount",value:function(_t){return Math.max.apply(Math,P(_t.map(function(Mt){return Mt.children.length})))}},{key:"balanceRows",value:function(_t,Mt,At){var Ut=this;Mt.forEach(function(En){new Array(_t-En.children.length).fill(0).forEach(function(){var ui;Object(h.a)(En.children.head)&&(ui=At.cellFormats(En.children.head.domNode));var zi=Ut.scroll.create(At.blotName,ui),cr=Ut.scroll.create(At.allowedChildren[0].blotName,ui);zi.appendChild(cr),En.appendChild(zi),zi.optimize()})})}},{key:"cells",value:function(_t){return this.rows().map(function(Mt){return Mt.children.at(_t)})}},{key:"deleteColumn",value:function(_t){var Mt=this;[Fe,ke].forEach(function(At){var ui=k(Mt.descendants(At),1)[0];!Object(h.a)(ui)||!Object(h.a)(ui.children.head)||ui.children.forEach(function(zi){var cr=zi.children.at(_t);Object(h.a)(cr)&&cr.remove()})})}},{key:"insertColumn",value:function(_t){var Mt=this;[Fe,ke].forEach(function(At){var ui=k(Mt.descendants(At),1)[0];if(Object(h.a)(ui)&&Object(h.a)(ui.children.head)){var zi=At===Fe?xe:_e,cr=At===Fe?Qe:Ne;ui.children.forEach(function(Dn){var Yo=Dn.children.at(_t),pi=cr.formats(Dn.children.head.children.head.domNode),br=Mt.scroll.create(zi.blotName,{row:pi.row}),_l=Mt.scroll.create(cr.blotName,{row:pi.row}),Ju=Mt.scroll.create(d.a.blotName);_l.appendChild(Ju),br.appendChild(_l),Dn.insertBefore(br,Yo)})}})}},{key:"insertRow",value:function(_t){var Mt=this,En=k(this.descendants(ke),1)[0];if(Object(h.a)(En)&&Object(h.a)(En.children.head)){var ui=Pe(),zi=this.scroll.create(ee.blotName,{row:ui});En.children.head.children.forEach(function(){var Dn=Mt.scroll.create(_e.blotName,{row:ui}),Yo=Mt.scroll.create(Ne.blotName,{row:ui}),pi=Mt.scroll.create(d.a.blotName);Yo.appendChild(pi),Dn.appendChild(Yo),zi.appendChild(Dn)});var cr=En.children.at(_t);En.insertBefore(zi,cr)}}},{key:"insertHeaderRow",value:function(){var _t=this,Ut=k(this.descendants(Fe),1)[0],zi=k(this.descendants(ke),1)[0];if(!Object(h.a)(Ut)&&Object(h.a)(zi)&&Object(h.a)(zi.children.head)){var cr=Pe(),Dn=this.scroll.create(Fe.blotName),Yo=this.scroll.create(Ce.blotName),pi=this.children.at(0);Dn.appendChild(Yo),zi.children.head.children.forEach(function(){var br=_t.scroll.create(xe.blotName,{row:cr}),_l=_t.scroll.create(Qe.blotName,{row:cr}),Ju=_t.scroll.create(d.a.blotName);_l.appendChild(Ju),br.appendChild(_l),Yo.appendChild(br),br.optimize()}),this.insertBefore(Dn,pi)}}},{key:"rows",value:function(){var _t=this.children.head;return Object(h.a)(_t)?_t.children.map(function(Mt){return Mt}):[]}},{key:"formats",value:function(){var _t={},Mt=this.cells()[0].domNode.firstElementChild;return Object.keys(v.c).forEach(function(At){var Ut=Mt.dataset[At.toLowerCase()];Ut&&(_t[At]=Ut)}),_t}},{key:"format",value:function(_t,Mt){var At=v.c[_t];if(At){var Ut="data-".concat(_t.toLowerCase());this.cells().forEach(function(En){Object(x.a)(En.children.head.domNode,Ut,Mt)}),At.add(this.domNode,Mt)}}}],[{key:"create",value:function(_t){var Mt=ne(Q(tt),"create",this).call(this,_t);return _t&&Object.keys(_t).forEach(function(At){var Ut;null===(Ut=v.c[At])||void 0===Ut||Ut.add(Mt,_t[At])}),Mt}}]),tt}(c.a);function Pe(){return"row-".concat(Object(b.a)())}function be(){return"cell-".concat(Object(b.a)())}ze.blotName="tableContainer",ze.tagName="TABLE",ze.allowedChildren=[Fe,ke],ke.requiredContainer=ze,Fe.requiredContainer=ze,ke.allowedChildren=[ee],ee.requiredContainer=ke,ee.allowedChildren=[_e],_e.requiredContainer=ee,Ne.requiredContainer=_e,_e.allowedChildren=[Ne],Fe.allowedChildren=[Ce],Ce.requiredContainer=Fe,Qe.requiredContainer=xe,xe.allowedChildren=[Qe],Ce.allowedChildren=[xe],xe.requiredContainer=Ce;var me=w(26),Me=w(54),Ue=w(55);function st(ht){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(tt){return typeof tt}:function(tt){return tt&&"function"==typeof Symbol&&tt.constructor===Symbol&&tt!==Symbol.prototype?"symbol":typeof tt})(ht)}function Lt(ht,ut,tt){return ut in ht?Object.defineProperty(ht,ut,{value:tt,enumerable:!0,configurable:!0,writable:!0}):ht[ut]=tt,ht}function ln(ht,ut){return function ft(ht){if(Array.isArray(ht))return ht}(ht)||function Ye(ht,ut){var tt=null==ht?null:typeof Symbol<"u"&&ht[Symbol.iterator]||ht["@@iterator"];if(null!=tt){var At,Ut,xt=[],_t=!0,Mt=!1;try{for(tt=tt.call(ht);!(_t=(At=tt.next()).done)&&(xt.push(At.value),!ut||xt.length!==ut);_t=!0);}catch(En){Mt=!0,Ut=En}finally{try{!_t&&null!=tt.return&&tt.return()}finally{if(Mt)throw Ut}}return xt}}(ht,ut)||function ri(ht,ut){if(ht){if("string"==typeof ht)return lr(ht,ut);var tt=Object.prototype.toString.call(ht).slice(8,-1);if("Object"===tt&&ht.constructor&&(tt=ht.constructor.name),"Map"===tt||"Set"===tt)return Array.from(ht);if("Arguments"===tt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return lr(ht,ut)}}(ht,ut)||function Mn(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lr(ht,ut){(null==ut||ut>ht.length)&&(ut=ht.length);for(var tt=0,xt=new Array(ut);tt<ut;tt++)xt[tt]=ht[tt];return xt}function jt(ht,ut){if(!(ht instanceof ut))throw new TypeError("Cannot call a class as a function")}function an(ht,ut){for(var tt=0;tt<ut.length;tt++){var xt=ut[tt];xt.enumerable=xt.enumerable||!1,xt.configurable=!0,"value"in xt&&(xt.writable=!0),Object.defineProperty(ht,xt.key,xt)}}function Bn(ht,ut){if("function"!=typeof ut&&null!==ut)throw new TypeError("Super expression must either be null or a function");ht.prototype=Object.create(ut&&ut.prototype,{constructor:{value:ht,writable:!0,configurable:!0}}),ut&&xn(ht,ut)}function xn(ht,ut){return(xn=Object.setPrototypeOf||function(xt,_t){return xt.__proto__=_t,xt})(ht,ut)}function ai(ht){var ut=function Vr(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _t,xt=Ar(ht);if(ut){var Mt=Ar(this).constructor;_t=Reflect.construct(xt,arguments,Mt)}else _t=xt.apply(this,arguments);return yi(this,_t)}}function yi(ht,ut){if(ut&&("object"===st(ut)||"function"==typeof ut))return ut;if(void 0!==ut)throw new TypeError("Derived constructors may only return object or undefined");return function Xi(ht){if(void 0===ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ht}(ht)}function Ar(ht){return(Ar=Object.setPrototypeOf?Object.getPrototypeOf:function(tt){return tt.__proto__||Object.getPrototypeOf(tt)})(ht)}var ko=[null,null,null,-1],Ht=function(ht){Bn(tt,ht);var ut=ai(tt);function tt(){var xt;jt(this,tt);for(var _t=arguments.length,Mt=new Array(_t),At=0;At<_t;At++)Mt[At]=arguments[At];return(xt=ut.call.apply(ut,[this].concat(Mt))).tableBlots=[Ne.blotName,Qe.blotName],xt.tableBlots.forEach(function(Ut){xt.quill.editor.addImmediateFormat(Ut)}),xt.integrateClipboard(),xt.addKeyboardHandlers(),xt.listenBalanceCells(),xt}return function sn(ht,ut,tt){return ut&&an(ht.prototype,ut),tt&&an(ht,tt),ht}(tt,[{key:"integrateClipboard",value:function(){var _t=this;this.tableBlots.forEach(function(Mt){_t.quill.clipboard.addTableBlot(Mt)}),this.quill.clipboard.addMatcher("td, th",en),this.quill.clipboard.addMatcher("table",Object(Ue.a)(v.a)),this.quill.clipboard.addMatcher("td, th",Object(Ue.b)(m.a))}},{key:"addKeyboardHandlers",value:function(){var _t=this,Mt=tt.keyboardBindings;Object.keys(Mt).forEach(function(At){Mt[At]&&_t.quill.keyboard.addBinding(Mt[At])})}},{key:"balanceTables",value:function(){this.quill.scroll.descendants(ze).forEach(function(_t){_t.balanceCells()})}},{key:"deleteColumn",value:function(){var Mt=ln(this.getTable(),3),At=Mt[0],Ut=Mt[2];Object(h.a)(Ut)&&(At.deleteColumn(Ut.cellOffset()),this.quill.update(y.a.sources.USER))}},{key:"deleteRow",value:function(){var At=ln(this.getTable(),2)[1];Object(h.a)(At)&&(At.remove(),this.quill.update(y.a.sources.USER))}},{key:"deleteTable",value:function(){var At=ln(this.getTable(),1)[0];if(Object(h.a)(At)){var Ut=At.offset();At.remove(),this.quill.update(y.a.sources.USER),this.quill.setSelection(Ut,y.a.sources.SILENT)}}},{key:"getTable",value:function(){var _t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(!Object(h.a)(_t))return ko;var At=ln(this.quill.getLine(_t.index),2),Ut=At[0],En=At[1];if(!Object(h.a)(Ut)||-1===this.tableBlots.indexOf(Ut.statics.blotName))return ko;var ui=Ut.parent,zi=ui.parent;return[zi.parent.parent,zi,ui,En]}},{key:"insertColumn",value:function(_t){var Mt=this.quill.getSelection(),Ut=ln(this.getTable(Mt),3),En=Ut[0],ui=Ut[1],zi=Ut[2];if(Object(h.a)(zi)){var cr=zi.cellOffset();En.insertColumn(cr+_t),this.quill.update(y.a.sources.USER);var Dn=ui.rowOffset();0===_t&&(Dn+=1),this.quill.setSelection(Mt.index+Dn,Mt.length,y.a.sources.SILENT)}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(_t){var Mt=this.quill.getSelection(),Ut=ln(this.getTable(Mt),3),En=Ut[0],ui=Ut[1],zi=Ut[2];if(Object(h.a)(zi)){var cr=ui.rowOffset();En.insertRow(cr+_t),this.quill.update(y.a.sources.USER),_t>0?this.quill.setSelection(Mt,y.a.sources.SILENT):this.quill.setSelection(Mt.index+ui.children.length,Mt.length,y.a.sources.SILENT)}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertHeaderRow",value:function(){var _t=this.quill.getSelection(),At=ln(this.getTable(_t),3),Ut=At[0],En=At[2];Object(h.a)(En)&&(Ut.insertHeaderRow(),this.quill.update(y.a.sources.USER))}},{key:"insertTable",value:function(_t,Mt){var At=this.quill.getSelection();if(Object(h.a)(At)){var Ut=new Array(_t).fill(0).reduce(function(En){var ui=Pe();return new Array(Mt).fill("\n").forEach(function(zi){En.insert(zi,{tableCellLine:{row:ui,cell:Pe()}})}),En},(new I.a).retain(At.index));this.quill.updateContents(Ut,y.a.sources.USER),this.quill.setSelection(At.index,y.a.sources.SILENT),this.balanceTables()}}},{key:"tableFormats",value:function(){return this.tableBlots}},{key:"listenBalanceCells",value:function(){var _t=this;this.quill.on(y.a.events.SCROLL_OPTIMIZE,function(Mt){Mt.some(function(At){return-1!==["TD","TH","TR","TBODY","THEAD","TABLE"].indexOf(At.target.tagName)&&(_t.quill.once(y.a.events.TEXT_CHANGE,function(Ut,En,ui){ui===y.a.sources.USER&&_t.balanceTables()}),!0)})}),this.quill.on(y.a.events.CONTENT_SETTED,function(){_t.quill.once(y.a.events.TEXT_CHANGE,function(){_t.balanceTables()})})}}],[{key:"register",value:function(){y.a.register(Ne,!0),y.a.register(Qe,!0),y.a.register(xe,!0),y.a.register(_e,!0),y.a.register(Ce,!0),y.a.register(ee,!0),y.a.register(ke,!0),y.a.register(Fe,!0),y.a.register(ze,!0),[v.c,m.b].forEach(function(_t){Object.keys(_t).forEach(function(Mt){y.a.register(Lt({},"formats/".concat(Mt),_t[Mt]),!0)})})}}]),tt}(g.a);function en(ht,ut){var tt=ht.parentNode,_t="THEAD"===tt.parentNode.tagName||null,Mt=Array.from(("TABLE"===tt.parentNode.tagName?tt.parentNode:tt.parentNode.parentNode).querySelectorAll("tr")),At=Array.from(tt.querySelectorAll("th,td")),Ut=Mt.indexOf(tt)+1,En=At.indexOf(ht)+1,ui=_t?"tableHeaderCellLine":"tableCellLine";return 0===ut.length()?ut=(new I.a).insert("\n",Lt({},ui,{row:Ut,cell:En})):(Object(me.c)(ut,"\n")||ut.insert("\n"),Object(me.a)(ut,ui,{row:Ut,cell:En}))}Ht.keyboardBindings={"table backspace":{key:"backspace",format:["tableCellLine","tableHeaderCellLine"],collapsed:!0,offset:0,handler:function(ut){var _t=ln(this.quill.getLine(ut.index),1)[0];return!(!_t.prev||-1===["tableCellLine","tableHeaderCellLine"].indexOf(_t.prev.statics.blotName))}},"table delete":{key:"del",format:["tableCellLine","tableHeaderCellLine"],collapsed:!0,suffix:/^$/,handler:function(){}},"table cell enter":{key:"enter",shiftKey:null,format:["tableCellLine","tableHeaderCellLine"],handler:function(ut,tt){var xt,_t=this;if(null===(xt=this.quill.selection)||void 0===xt||!xt.composing){ut.length>0&&this.quill.scroll.deleteAt(ut.index,ut.length);var Mt=Object.keys(tt.format).reduce(function(At,Ut){return _t.quill.scroll.query(Ut,C.Scope.BLOCK)&&!Array.isArray(tt.format[Ut])&&(At[Ut]=tt.format[Ut]),At},{});this.quill.insertText(ut.index,"\n",Mt.tableCellLine,y.a.sources.USER),this.quill.setSelection(ut.index+1,y.a.sources.SILENT),this.quill.focus(),Object.keys(tt.format).forEach(function(At){null==Mt[At]&&(Array.isArray(tt.format[At])||"link"!==At&&_t.quill.format(At,tt.format[At],y.a.sources.USER))})}}},"table tab":{key:"tab",shiftKey:null,format:["tableCellLine","tableHeaderCellLine"],handler:function(ut,tt){var xt=tt.event,_t=tt.line,Mt=_t.offset(this.quill.scroll);this.quill.setSelection(xt.shiftKey?Mt-1:Mt+_t.length(),y.a.sources.USER)}},"table down":Object(Me.a)(!1,["tableCellLine","tableHeaderCellLine"]),"table up":Object(Me.a)(!0,["tableCellLine","tableHeaderCellLine"])},D.a=Ht},function(X,D){X.exports=function(w){return w.webpackPolyfill||(w.deprecate=function(){},w.paths=[],w.children||(w.children=[]),Object.defineProperty(w,"loaded",{enumerable:!0,get:function(){return w.l}}),Object.defineProperty(w,"id",{enumerable:!0,get:function(){return w.i}}),w.webpackPolyfill=1),w}},function(X,D){X.exports=!1},function(X,D,w){var E=w(8),I=w(69),C=E.Object;X.exports=function(y){return C(I(y))}},function(X,D,w){var I=w(8).TypeError;X.exports=function(C){if(null==C)throw I("Can't call method on "+C);return C}},function(X,D,w){var E=w(41),I=w(52),C=w(71);X.exports=E?function(y,g,p){return I.f(y,g,C(1,p))}:function(y,g,p){return y[g]=p,y}},function(X,D){X.exports=function(w,E){return{enumerable:!(1&w),configurable:!(2&w),writable:!(4&w),value:E}}},function(X,D){X.exports={}},function(X,D,w){"use strict";w.d(D,"a",function(){return d});var E=w(63),I=w(31),C=w(19),y=["name"];function g(c,h){if(null==c)return{};var v,b,m=function p(c,h){if(null==c)return{};var b,x,m={},v=Object.keys(c);for(x=0;x<v.length;x++)!(h.indexOf(b=v[x])>=0)&&(m[b]=c[b]);return m}(c,h);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(c);for(b=0;b<x.length;b++)!(h.indexOf(v=x[b])>=0)&&Object.prototype.propertyIsEnumerable.call(c,v)&&(m[v]=c[v])}return m}function d(c,h){var m=c.name,v=g(c,y),b="".concat(m).concat(Object(I.a)(h)),x="".concat(C.a.attribute).concat(m,"_").concat(h);return new E.a(b,x,v)}},function(X,D,w){"use strict";w.d(D,"a",function(){return x});var E=w(53),I=w(31),C=w(19),y=["name","formatName"];function g(O,k){return function m(O){if(Array.isArray(O))return O}(O)||function h(O,k){var M=null==O?null:typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(null!=M){var N,B,A=[],F=!0,P=!1;try{for(M=M.call(O);!(F=(N=M.next()).done)&&(A.push(N.value),!k||A.length!==k);F=!0);}catch(V){P=!0,B=V}finally{try{!F&&null!=M.return&&M.return()}finally{if(P)throw B}}return A}}(O,k)||function d(O,k){if(O){if("string"==typeof O)return c(O,k);var M=Object.prototype.toString.call(O).slice(8,-1);if("Object"===M&&O.constructor&&(M=O.constructor.name),"Map"===M||"Set"===M)return Array.from(O);if("Arguments"===M||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return c(O,k)}}(O,k)||function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(O,k){(null==k||k>O.length)&&(k=O.length);for(var M=0,A=new Array(k);M<k;M++)A[M]=O[M];return A}function v(O,k){if(null==O)return{};var A,F,M=function b(O,k){if(null==O)return{};var F,P,M={},A=Object.keys(O);for(P=0;P<A.length;P++)!(k.indexOf(F=A[P])>=0)&&(M[F]=O[F]);return M}(O,k);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(O);for(F=0;F<P.length;F++)!(k.indexOf(A=P[F])>=0)&&Object.prototype.propertyIsEnumerable.call(O,A)&&(M[A]=O[A])}return M}function x(O,k){var M=O.name,A=O.formatName,F=v(O,y),N=g(k.split("-"),2),B=N[0],V=N[1],H="".concat(M).concat(Object(I.a)(A??B)).concat(V?Object(I.a)(V):""),W="".concat(C.a.style).concat(M,"_").concat(k);return new E.a(H,W,F)}},function(X,D,w){"use strict";var E=w(1),I=w.n(E),C=w(0),y=w(12),g=w(6),p=w(13),d=w(5),c=w(11),h=w(64),m=w(48);function v(Ht){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Gt){return typeof Gt}:function(Gt){return Gt&&"function"==typeof Symbol&&Gt.constructor===Symbol&&Gt!==Symbol.prototype?"symbol":typeof Gt})(Ht)}function b(Ht,en){return function k(Ht){if(Array.isArray(Ht))return Ht}(Ht)||function O(Ht,en){var Gt=null==Ht?null:typeof Symbol<"u"&&Ht[Symbol.iterator]||Ht["@@iterator"];if(null!=Gt){var xt,_t,ht=[],ut=!0,tt=!1;try{for(Gt=Gt.call(Ht);!(ut=(xt=Gt.next()).done)&&(ht.push(xt.value),!en||ht.length!==en);ut=!0);}catch(Mt){tt=!0,_t=Mt}finally{try{!ut&&null!=Gt.return&&Gt.return()}finally{if(tt)throw _t}}return ht}}(Ht,en)||F(Ht,en)||function x(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(Ht){return function N(Ht){if(Array.isArray(Ht))return B(Ht)}(Ht)||function P(Ht){if(typeof Symbol<"u"&&null!=Ht[Symbol.iterator]||null!=Ht["@@iterator"])return Array.from(Ht)}(Ht)||F(Ht)||function A(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(Ht,en){if(Ht){if("string"==typeof Ht)return B(Ht,en);var Gt=Object.prototype.toString.call(Ht).slice(8,-1);if("Object"===Gt&&Ht.constructor&&(Gt=Ht.constructor.name),"Map"===Gt||"Set"===Gt)return Array.from(Ht);if("Arguments"===Gt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gt))return B(Ht,en)}}function B(Ht,en){(null==en||en>Ht.length)&&(en=Ht.length);for(var Gt=0,ht=new Array(en);Gt<en;Gt++)ht[Gt]=Ht[Gt];return ht}function V(Ht,en){if(!(Ht instanceof en))throw new TypeError("Cannot call a class as a function")}function H(Ht,en){for(var Gt=0;Gt<en.length;Gt++){var ht=en[Gt];ht.enumerable=ht.enumerable||!1,ht.configurable=!0,"value"in ht&&(ht.writable=!0),Object.defineProperty(Ht,ht.key,ht)}}function W(Ht,en,Gt){return en&&H(Ht.prototype,en),Gt&&H(Ht,Gt),Ht}function q(Ht,en,Gt){return(q=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(ut,tt,xt){var _t=function G(Ht,en){for(;!Object.prototype.hasOwnProperty.call(Ht,en)&&null!==(Ht=ce(Ht)););return Ht}(ut,tt);if(_t){var Mt=Object.getOwnPropertyDescriptor(_t,tt);return Mt.get?Mt.get.call(xt):Mt.value}})(Ht,en,Gt||Ht)}function J(Ht,en){if("function"!=typeof en&&null!==en)throw new TypeError("Super expression must either be null or a function");Ht.prototype=Object.create(en&&en.prototype,{constructor:{value:Ht,writable:!0,configurable:!0}}),en&&ne(Ht,en)}function ne(Ht,en){return(ne=Object.setPrototypeOf||function(ht,ut){return ht.__proto__=ut,ht})(Ht,en)}function ae(Ht){var en=function le(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ut,ht=ce(Ht);if(en){var tt=ce(this).constructor;ut=Reflect.construct(ht,arguments,tt)}else ut=ht.apply(this,arguments);return ge(this,ut)}}function ge(Ht,en){if(en&&("object"===v(en)||"function"==typeof en))return en;if(void 0!==en)throw new TypeError("Derived constructors may only return object or undefined");return function pe(Ht){if(void 0===Ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ht}(Ht)}function ce(Ht){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(Gt){return Gt.__proto__||Object.getPrototypeOf(Gt)})(Ht)}var K="data-tablelite-",Q=function(Ht){J(Gt,Ht);var en=ae(Gt);function Gt(){return V(this,Gt),en.apply(this,arguments)}return W(Gt,[{key:"format",value:function(ut,tt){if(c.c[ut]){var xt,_t,Mt="data-".concat(ut.toLowerCase());Object(m.a)(this.domNode,Mt,tt),null===(xt=this.row())||void 0===xt||null===(_t=xt.table())||void 0===_t||_t.format(ut,tt)}else q(ce(Gt.prototype),"format",this).call(this,ut,tt)}},{key:"cellOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"row",value:function(){return"table"in this.parent?this.parent:null}},{key:"rowOffset",value:function(){return this.row()?this.row().rowOffset():-1}},{key:"table",value:function(){var ut;return null===(ut=this.row())||void 0===ut?void 0:ut.table()}}],[{key:"create",value:function(ut){var tt=q(ce(Gt),"create",this).call(this),xt=this.dataAttribute;return Object(m.a)(tt,xt,ut??ee()),tt}},{key:"formats",value:function(ut){var tt=this.dataAttribute;if(ut.hasAttribute(tt))return ut.getAttribute(tt)}}]),Gt}(g.d);Q.tagName=["TD","TH"];var de=function(Ht){J(Gt,Ht);var en=ae(Gt);function Gt(){return V(this,Gt),en.apply(this,arguments)}return W(Gt,[{key:"format",value:function(ut,tt){ut===Gt.blotName&&tt?this.domNode.setAttribute(Gt.dataAttribute,tt):q(ce(Gt.prototype),"format",this).call(this,ut,tt)}}]),Gt}(Q);de.blotName="table",de.dataAttribute="".concat(K,"row");var Oe=function(Ht){J(Gt,Ht);var en=ae(Gt);function Gt(){return V(this,Gt),en.apply(this,arguments)}return W(Gt,[{key:"format",value:function(ut,tt){ut===Gt.blotName&&tt?this.domNode.setAttribute(Gt.dataAttribute,tt):q(ce(Gt.prototype),"format",this).call(this,ut,tt)}}]),Gt}(Q);Oe.tagName=["TH","TD"],Oe.blotName="tableHeaderCell",Oe.dataAttribute="".concat(K,"header-row");var Ae=function(Ht){J(Gt,Ht);var en=ae(Gt);function Gt(){return V(this,Gt),en.apply(this,arguments)}return W(Gt,[{key:"checkMerge",value:function(){if(q(ce(Gt.prototype),"checkMerge",this).call(this)&&Object(d.a)(this.next.children.head)){var ut=this.childFormatName,tt=this.children.head.formats(),xt=this.children.tail.formats(),_t=this.next.children.head.formats(),Mt=this.next.children.tail.formats();return tt[ut]===xt[ut]&&tt[ut]===_t[ut]&&tt[ut]===Mt[ut]}return!1}},{key:"optimize",value:function(){for(var ut,tt=this,xt=arguments.length,_t=new Array(xt),Mt=0;Mt<xt;Mt++)_t[Mt]=arguments[Mt];(ut=q(ce(Gt.prototype),"optimize",this)).call.apply(ut,[this].concat(_t));var At=this.childFormatName;this.children.forEach(function(Ut){if(Object(d.a)(Ut.next)){var En=Ut.formats(),ui=Ut.next.formats();if(En[At]!==ui[At]){var zi=tt.splitAfter(Ut);zi&&zi.optimize(),tt.prev&&tt.prev.optimize()}}})}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){var ut;return null===(ut=this.parent)||void 0===ut?void 0:ut.parent}}]),Gt}(p.a);Ae.tagName="TR";var Ne=function(Ht){J(Gt,Ht);var en=ae(Gt);function Gt(ht,ut){var tt;return V(this,Gt),(tt=en.call(this,ht,ut)).childFormatName="table",tt}return Gt}(Ae);Ne.blotName="tableRow";var Qe=function(Ht){J(Gt,Ht);var en=ae(Gt);function Gt(ht,ut){var tt;return V(this,Gt),(tt=en.call(this,ht,ut)).childFormatName="tableHeaderCell",tt}return Gt}(Ae);Qe.blotName="tableHeaderRow";var $e=function(Ht){J(Gt,Ht);var en=ae(Gt);function Gt(){return V(this,Gt),en.apply(this,arguments)}return W(Gt,[{key:"optimize",value:function(){var ut;if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var tt=this.children.head.children.head.domNode,xt={};Object.keys(c.c).forEach(function(Ut){var En=tt.dataset[Ut.toLowerCase()];En&&(xt[Ut]=En)}),this.wrap(this.statics.requiredContainer.blotName,xt)}for(var _t=arguments.length,Mt=new Array(_t),At=0;At<_t;At++)Mt[At]=arguments[At];(ut=q(ce(Gt.prototype),"optimize",this)).call.apply(ut,[this].concat(Mt))}}]),Gt}(p.a),_e=function(Ht){J(Gt,Ht);var en=ae(Gt);function Gt(){return V(this,Gt),en.apply(this,arguments)}return Gt}($e);_e.blotName="tableBody",_e.tagName=["TBODY"];var xe=function(Ht){J(Gt,Ht);var en=ae(Gt);function Gt(){return V(this,Gt),en.apply(this,arguments)}return Gt}($e);xe.blotName="tableHeader",xe.tagName=["THEAD"];var ve=function(Ht){J(Gt,Ht);var en=ae(Gt);function Gt(){return V(this,Gt),en.apply(this,arguments)}return W(Gt,[{key:"balanceCells",value:function(){var ut=this.descendants(Qe),tt=this.descendants(Ne),xt=this.getMaxTableColCount(ut,tt);this.balanceRows(xt,ut,Oe),this.balanceRows(xt,tt,de)}},{key:"getMaxTableColCount",value:function(ut,tt){return Math.max(this.getMaxRowColCount(ut),this.getMaxRowColCount(tt))}},{key:"getMaxRowColCount",value:function(ut){return Math.max.apply(Math,M(ut.map(function(tt){return tt.children.length})))}},{key:"balanceRows",value:function(ut,tt,xt){var _t=this;tt.forEach(function(Mt){new Array(ut-Mt.children.length).fill(0).forEach(function(){var At;Object(d.a)(Mt.children.head)&&(At=xt.formats(Mt.children.head.domNode));var Ut=_t.scroll.create(xt.blotName,At);Mt.appendChild(Ut),Ut.optimize()})})}},{key:"cells",value:function(ut){return this.rows().map(function(tt){return tt.children.at(ut)})}},{key:"deleteColumn",value:function(ut){var tt=this;[xe,_e].forEach(function(xt){var At=b(tt.descendants(xt),1)[0];!Object(d.a)(At)||!Object(d.a)(At.children.head)||At.children.forEach(function(Ut){var En=Ut.children.at(ut);Object(d.a)(En)&&En.remove()})})}},{key:"insertColumn",value:function(ut){var tt=this;[xe,_e].forEach(function(xt){var At=b(tt.descendants(xt),1)[0];if(Object(d.a)(At)&&Object(d.a)(At.children.head)){var Ut=xt===xe?Oe:de;At.children.forEach(function(En){var ui=En.children.at(ut),zi=Ut.formats(En.children.head.domNode),cr=tt.scroll.create(Ut.blotName,zi);En.insertBefore(cr,ui)})}})}},{key:"insertRow",value:function(ut){var tt=this,Mt=b(this.descendants(_e),1)[0];if(Object(d.a)(Mt)&&Object(d.a)(Mt.children.head)){var At=ee(),Ut=this.scroll.create(Ne.blotName);Mt.children.head.children.forEach(function(){var ui=tt.scroll.create(de.blotName,At);Ut.appendChild(ui)});var En=Mt.children.at(ut);Mt.insertBefore(Ut,En)}}},{key:"insertHeaderRow",value:function(){var ut=this,_t=b(this.descendants(xe),1)[0],Ut=b(this.descendants(_e),1)[0];if(!Object(d.a)(_t)&&Object(d.a)(Ut)&&Object(d.a)(Ut.children.head)){var En=ee(),ui=this.scroll.create(xe.blotName),zi=this.scroll.create(Qe.blotName),cr=this.children.at(0);ui.appendChild(zi),Ut.children.head.children.forEach(function(){var Dn=ut.scroll.create(Oe.blotName,En);zi.appendChild(Dn),Dn.optimize()}),this.insertBefore(ui,cr)}}},{key:"rows",value:function(){var ut=this.children.head;return Object(d.a)(ut)?ut.children.map(function(tt){return tt}):[]}},{key:"formats",value:function(){var ut={},tt=this.cells()[0].domNode;return Object.keys(c.c).forEach(function(xt){var _t=tt.dataset[xt.toLowerCase()];_t&&(ut[xt]=_t)}),ut}},{key:"format",value:function(ut,tt){var xt=c.c[ut];if(xt){var _t="data-".concat(ut.toLowerCase());this.cells().forEach(function(Mt){Object(m.a)(Mt.domNode,_t,tt)}),xt.add(this.domNode,tt)}}}],[{key:"create",value:function(ut){var tt=q(ce(Gt),"create",this).call(this,ut);return ut&&Object.keys(ut).forEach(function(xt){var _t;null===(_t=c.c[xt])||void 0===_t||_t.add(tt,ut[xt])}),tt}}]),Gt}(p.a);function ee(){return"row-".concat(Object(h.a)())}ve.blotName="tableContainer",ve.tagName="TABLE",ve.allowedChildren=[xe,_e],_e.requiredContainer=ve,xe.requiredContainer=ve,_e.allowedChildren=[Ne],Ne.requiredContainer=_e,Ne.allowedChildren=[de],de.requiredContainer=Ne,xe.allowedChildren=[Qe],Qe.requiredContainer=xe,Qe.allowedChildren=[Oe],Oe.requiredContainer=Qe;var Ce=w(26),De=w(54);function ke(Ht){var en=Ht.quill,ht=Ht.range,ut=Ht.index-1,tt=(new I.a).retain(ut).insert("\n");en.updateContents(tt,C.a.sources.USER),en.setSelection(ht.index+1,ht.length,C.a.sources.SILENT)}function Fe(Ht){var en=Ht.quill,ut=Ht.index+Ht.table.length(),tt=(new I.a).retain(ut).insert("\n");en.updateContents(tt,C.a.sources.USER),en.setSelection(ut,C.a.sources.USER)}function ze(Ht,en,Gt){return null==Ht.prev&&null==Ht.next?null==en.prev&&null==en.next?0===Gt?-1:1:null==en.prev?-1:1:null==Ht.prev?-1:null==Ht.next?1:null}var Pe=w(55),be=w(21);function me(Ht){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Gt){return typeof Gt}:function(Gt){return Gt&&"function"==typeof Symbol&&Gt.constructor===Symbol&&Gt!==Symbol.prototype?"symbol":typeof Gt})(Ht)}function Ue(Ht,en){return function ri(Ht){if(Array.isArray(Ht))return Ht}(Ht)||function Mn(Ht,en){var Gt=null==Ht?null:typeof Symbol<"u"&&Ht[Symbol.iterator]||Ht["@@iterator"];if(null!=Gt){var xt,_t,ht=[],ut=!0,tt=!1;try{for(Gt=Gt.call(Ht);!(ut=(xt=Gt.next()).done)&&(ht.push(xt.value),!en||ht.length!==en);ut=!0);}catch(Mt){tt=!0,_t=Mt}finally{try{!ut&&null!=Gt.return&&Gt.return()}finally{if(tt)throw _t}}return ht}}(Ht,en)||function Lt(Ht,en){if(Ht){if("string"==typeof Ht)return ln(Ht,en);var Gt=Object.prototype.toString.call(Ht).slice(8,-1);if("Object"===Gt&&Ht.constructor&&(Gt=Ht.constructor.name),"Map"===Gt||"Set"===Gt)return Array.from(Ht);if("Arguments"===Gt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Gt))return ln(Ht,en)}}(Ht,en)||function st(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(Ht,en){(null==en||en>Ht.length)&&(en=Ht.length);for(var Gt=0,ht=new Array(en);Gt<en;Gt++)ht[Gt]=Ht[Gt];return ht}function lr(Ht,en){if(!(Ht instanceof en))throw new TypeError("Cannot call a class as a function")}function Ye(Ht,en){for(var Gt=0;Gt<en.length;Gt++){var ht=en[Gt];ht.enumerable=ht.enumerable||!1,ht.configurable=!0,"value"in ht&&(ht.writable=!0),Object.defineProperty(Ht,ht.key,ht)}}function jt(Ht,en){if("function"!=typeof en&&null!==en)throw new TypeError("Super expression must either be null or a function");Ht.prototype=Object.create(en&&en.prototype,{constructor:{value:Ht,writable:!0,configurable:!0}}),en&&an(Ht,en)}function an(Ht,en){return(an=Object.setPrototypeOf||function(ht,ut){return ht.__proto__=ut,ht})(Ht,en)}function sn(Ht){var en=function ai(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ut,ht=yi(Ht);if(en){var tt=yi(this).constructor;ut=Reflect.construct(ht,arguments,tt)}else ut=ht.apply(this,arguments);return Bn(this,ut)}}function Bn(Ht,en){if(en&&("object"===me(en)||"function"==typeof en))return en;if(void 0!==en)throw new TypeError("Derived constructors may only return object or undefined");return function xn(Ht){if(void 0===Ht)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ht}(Ht)}function yi(Ht){return(yi=Object.setPrototypeOf?Object.getPrototypeOf:function(Gt){return Gt.__proto__||Object.getPrototypeOf(Gt)})(Ht)}var Xi=[null,null,null,-1],Vr=function(Ht){jt(Gt,Ht);var en=sn(Gt);function Gt(){var ht;lr(this,Gt);for(var ut=arguments.length,tt=new Array(ut),xt=0;xt<ut;xt++)tt[xt]=arguments[xt];return(ht=en.call.apply(en,[this].concat(tt))).tableBlots=[de.blotName,Oe.blotName],ht.tableBlots.forEach(function(_t){ht.quill.editor.addImmediateFormat(_t)}),ht.integrateClipboard(),ht.addKeyboardHandlers(),ht.listenBalanceCells(),ht}return function ft(Ht,en,Gt){return en&&Ye(Ht.prototype,en),Gt&&Ye(Ht,Gt),Ht}(Gt,[{key:"integrateClipboard",value:function(){var ut=this;this.tableBlots.forEach(function(tt){return ut.quill.clipboard.addTableBlot(tt)}),this.quill.clipboard.addMatcher("tr",Ar),this.quill.clipboard.addMatcher("table",Object(Pe.a)(c.a)),this.quill.clipboard.addMatcher("td, th",Object(Pe.b)(be.a))}},{key:"addKeyboardHandlers",value:function(){var ut=this,tt=Gt.keyboardBindings;Object.keys(tt).forEach(function(xt){tt[xt]&&ut.quill.keyboard.addBinding(tt[xt])})}},{key:"balanceTables",value:function(){this.quill.scroll.descendants(ve).forEach(function(ut){ut.balanceCells()})}},{key:"deleteColumn",value:function(){var tt=Ue(this.getTable(),3),xt=tt[0],_t=tt[2];Object(d.a)(_t)&&(xt.deleteColumn(_t.cellOffset()),this.quill.update(C.a.sources.USER))}},{key:"deleteRow",value:function(){var xt=Ue(this.getTable(),2)[1];Object(d.a)(xt)&&(xt.remove(),this.quill.update(C.a.sources.USER))}},{key:"deleteTable",value:function(){var xt=Ue(this.getTable(),1)[0];if(Object(d.a)(xt)){var _t=xt.offset();xt.remove(),this.quill.update(C.a.sources.USER),this.quill.setSelection(_t,C.a.sources.SILENT)}}},{key:"getTable",value:function(){var ut=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(!Object(d.a)(ut))return Xi;var xt=Ue(this.quill.getLine(ut.index),2),_t=xt[0],Mt=xt[1];if(!Object(d.a)(_t)||-1===this.tableBlots.indexOf(_t.statics.blotName))return Xi;var At=_t.parent;return[At.parent.parent,At,_t,Mt]}},{key:"insertColumn",value:function(ut){var tt=this.quill.getSelection(),_t=Ue(this.getTable(tt),3),Mt=_t[0],At=_t[1],Ut=_t[2];if(Object(d.a)(Ut)){var En=Ut.cellOffset();Mt.insertColumn(En+ut),this.quill.update(C.a.sources.USER);var ui=At.rowOffset();0===ut&&(ui+=1),this.quill.setSelection(tt.index+ui,tt.length,C.a.sources.SILENT)}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(ut){var tt=this.quill.getSelection(),_t=Ue(this.getTable(tt),3),Mt=_t[0],At=_t[1],Ut=_t[2];if(Object(d.a)(Ut)){var En=At.rowOffset();Mt.insertRow(En+ut),this.quill.update(C.a.sources.USER),ut>0?this.quill.setSelection(tt,C.a.sources.SILENT):this.quill.setSelection(tt.index+At.children.length,tt.length,C.a.sources.SILENT)}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertHeaderRow",value:function(){var ut=this.quill.getSelection(),xt=Ue(this.getTable(ut),3),_t=xt[0],Mt=xt[2];Object(d.a)(Mt)&&(_t.insertHeaderRow(),this.quill.update(C.a.sources.USER))}},{key:"insertTable",value:function(ut,tt){var xt=this.quill.getSelection();if(Object(d.a)(xt)){var _t=new Array(ut).fill(0).reduce(function(Mt){var At=new Array(tt).fill("\n").join("");return Mt.insert(At,{table:ee()})},(new I.a).retain(xt.index));this.quill.updateContents(_t,C.a.sources.USER),this.quill.setSelection(xt.index,C.a.sources.SILENT),this.balanceTables()}}},{key:"tableFormats",value:function(){return this.tableBlots}},{key:"listenBalanceCells",value:function(){var ut=this;this.quill.on(C.a.events.SCROLL_OPTIMIZE,function(tt){tt.some(function(xt){return-1!==["TD","TH","TR","TBODY","THEAD","TABLE"].indexOf(xt.target.tagName)&&(ut.quill.once(C.a.events.TEXT_CHANGE,function(_t,Mt,At){At===C.a.sources.USER&&ut.balanceTables()}),!0)})}),this.quill.on(C.a.events.CONTENT_SETTED,function(){ut.quill.once(C.a.events.TEXT_CHANGE,function(){ut.balanceTables()})})}}],[{key:"register",value:function(){C.a.register(Oe,!0),C.a.register(de,!0),C.a.register(Qe,!0),C.a.register(Ne,!0),C.a.register(_e,!0),C.a.register(xe,!0),C.a.register(ve,!0),[c.c,be.b].forEach(function(ut){Object.keys(ut).forEach(function(tt){C.a.register(function Me(Ht,en,Gt){return en in Ht?Object.defineProperty(Ht,en,{value:Gt,enumerable:!0,configurable:!0,writable:!0}):Ht[en]=Gt,Ht}({},"formats/".concat(tt),ut[tt]),!0)})})}}]),Gt}(y.a);function Ar(Ht,en){var ht="THEAD"===Ht.parentNode.tagName||null,tt=Array.from(("TABLE"===Ht.parentNode.tagName?Ht.parentNode:Ht.parentNode.parentNode).querySelectorAll("tr")).indexOf(Ht)+1;return Object(Ce.a)(en,ht?"tableHeaderCell":"table",tt)}Vr.keyboardBindings={"table backspace":{key:"backspace",format:["table","tableHeaderCell"],collapsed:!0,offset:0,handler:function(){}},"table delete":{key:"del",format:["table","tableHeaderCell"],collapsed:!0,suffix:/^$/,handler:function(){}},"table enter":{key:"enter",shiftKey:null,format:["table"],handler:function(en){var Gt=this.quill.getModule("table");if(Gt){var ht=this.quill,tt=Ue(Gt.getTable(en),4),xt=tt[0],Ut=ze(tt[1],tt[2],tt[3]);if(null==Ut||Ut<0&&xt.children.length>1&&xt.children.head)return;var ui=xt.offset();Ut<0?ke({quill:ht,index:ui,range:en}):Fe({quill:ht,index:ui,table:xt})}}},"table header enter":{key:"enter",shiftKey:null,format:["tableHeaderCell"],handler:function(en){var Gt=this.quill.getModule("table");if(Gt){var ht=this.quill,tt=Ue(Gt.getTable(en),4),xt=tt[0],Ut=ze(tt[1],tt[2],tt[3]);if(null==Ut)return;var En=xt.offset();Ut<0||Ut>0&&xt.children.length>1&&xt.children.tail?ke({quill:ht,index:En,range:en}):Fe({quill:ht,index:En,table:xt})}}},"table tab":{key:"tab",shiftKey:null,format:["table","tableHeaderCell"],handler:function(en,Gt){var ht=Gt.event,ut=Gt.line,tt=ut.offset(this.quill.scroll);this.quill.setSelection(ht.shiftKey?tt-1:tt+ut.length(),C.a.sources.USER)}},"table down":Object(De.a)(!1,["table","tableHeaderCell"]),"table up":Object(De.a)(!0,["table","tableHeaderCell"])},D.a=Vr},function(X,D,w){"use strict";w.d(D,"a",function(){return Q}),w.d(D,"b",function(){return Oe});var E=w(1),I=w.n(E),C=w(2),y=w(14),g=w(0),p=w(12),d=w(6),c=w(10),h=w(24),m=w(9),v=w(17),b=w(26),x=w(15);function O(Ae){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Qe){return typeof Qe}:function(Qe){return Qe&&"function"==typeof Symbol&&Qe.constructor===Symbol&&Qe!==Symbol.prototype?"symbol":typeof Qe})(Ae)}function k(Ae,Ne,Qe){return Ne in Ae?Object.defineProperty(Ae,Ne,{value:Qe,enumerable:!0,configurable:!0,writable:!0}):Ae[Ne]=Qe,Ae}function M(Ae,Ne){return function B(Ae){if(Array.isArray(Ae))return Ae}(Ae)||function N(Ae,Ne){var Qe=null==Ae?null:typeof Symbol<"u"&&Ae[Symbol.iterator]||Ae["@@iterator"];if(null!=Qe){var ve,ee,$e=[],_e=!0,xe=!1;try{for(Qe=Qe.call(Ae);!(_e=(ve=Qe.next()).done)&&($e.push(ve.value),!Ne||$e.length!==Ne);_e=!0);}catch(Ce){xe=!0,ee=Ce}finally{try{!_e&&null!=Qe.return&&Qe.return()}finally{if(xe)throw ee}}return $e}}(Ae,Ne)||function F(Ae,Ne){if(Ae){if("string"==typeof Ae)return P(Ae,Ne);var Qe=Object.prototype.toString.call(Ae).slice(8,-1);if("Object"===Qe&&Ae.constructor&&(Qe=Ae.constructor.name),"Map"===Qe||"Set"===Qe)return Array.from(Ae);if("Arguments"===Qe||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Qe))return P(Ae,Ne)}}(Ae,Ne)||function A(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(Ae,Ne){(null==Ne||Ne>Ae.length)&&(Ne=Ae.length);for(var Qe=0,$e=new Array(Ne);Qe<Ne;Qe++)$e[Qe]=Ae[Qe];return $e}function V(Ae,Ne){if(!(Ae instanceof Ne))throw new TypeError("Cannot call a class as a function")}function H(Ae,Ne){for(var Qe=0;Qe<Ne.length;Qe++){var $e=Ne[Qe];$e.enumerable=$e.enumerable||!1,$e.configurable=!0,"value"in $e&&($e.writable=!0),Object.defineProperty(Ae,$e.key,$e)}}function W(Ae,Ne,Qe){return Ne&&H(Ae.prototype,Ne),Qe&&H(Ae,Qe),Ae}function q(Ae,Ne){if("function"!=typeof Ne&&null!==Ne)throw new TypeError("Super expression must either be null or a function");Ae.prototype=Object.create(Ne&&Ne.prototype,{constructor:{value:Ae,writable:!0,configurable:!0}}),Ne&&G(Ae,Ne)}function G(Ae,Ne){return(G=Object.setPrototypeOf||function($e,_e){return $e.__proto__=_e,$e})(Ae,Ne)}function J(Ae){var Ne=function ge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var _e,$e=ce(Ae);if(Ne){var xe=ce(this).constructor;_e=Reflect.construct($e,arguments,xe)}else _e=$e.apply(this,arguments);return ne(this,_e)}}function ne(Ae,Ne){if(Ne&&("object"===O(Ne)||"function"==typeof Ne))return Ne;if(void 0!==Ne)throw new TypeError("Derived constructors may only return object or undefined");return ae(Ae)}function ae(Ae){if(void 0===Ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ae}function pe(Ae,Ne,Qe){return(pe=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(_e,xe,ve){var ee=function le(Ae,Ne){for(;!Object.prototype.hasOwnProperty.call(Ae,Ne)&&null!==(Ae=ce(Ae)););return Ae}(_e,xe);if(ee){var Ce=Object.getOwnPropertyDescriptor(ee,xe);return Ce.get?Ce.get.call(ve):Ce.value}})(Ae,Ne,Qe||Ae)}function ce(Ae){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(Qe){return Qe.__proto__||Object.getPrototypeOf(Qe)})(Ae)}var oe=new C.ClassAttributor("code-token","hljs",{scope:C.Scope.INLINE}),K=function(Ae){q(Qe,Ae);var Ne=J(Qe);function Qe($e,_e,xe){var ve;return V(this,Qe),ve=Ne.call(this,$e,_e,xe),oe.add(ve.domNode,xe),ve}return W(Qe,[{key:"format",value:function(_e,xe){_e!==Qe.blotName?pe(ce(Qe.prototype),"format",this).call(this,_e,xe):xe?oe.add(this.domNode,xe):(oe.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}},{key:"optimize",value:function(){for(var _e,xe=arguments.length,ve=new Array(xe),ee=0;ee<xe;ee++)ve[ee]=arguments[ee];(_e=pe(ce(Qe.prototype),"optimize",this)).call.apply(_e,[this].concat(ve)),oe.value(this.domNode)||this.unwrap()}}],[{key:"formats",value:function(_e,xe){for(;null!=_e&&_e!==xe.domNode;){if(_e.classList&&_e.classList.contains(v.c.className))return pe(ce(Qe),"formats",this).call(this,_e,xe);_e=_e.parentNode}}}]),Qe}(y.a);K.blotName="code-token",K.className="ql-token";var Q=function(Ae){q(Qe,Ae);var Ne=J(Qe);function Qe(){return V(this,Qe),Ne.apply(this,arguments)}return W(Qe,[{key:"format",value:function(_e,xe){_e===this.statics.blotName&&xe?this.domNode.setAttribute("data-language",xe):pe(ce(Qe.prototype),"format",this).call(this,_e,xe)}},{key:"replaceWith",value:function(_e,xe){return this.formatAt(0,this.length(),K.blotName,!1),pe(ce(Qe.prototype),"replaceWith",this).call(this,_e,xe)}}],[{key:"create",value:function(_e){var xe=pe(ce(Qe),"create",this).call(this,_e);return"string"==typeof _e&&xe.setAttribute("data-language",_e),xe}},{key:"formats",value:function(_e){return _e.getAttribute("data-language")||"plain"}},{key:"register",value:function(){}}]),Qe}(v.c),de=function(Ae){q(Qe,Ae);var Ne=J(Qe);function Qe(){return V(this,Qe),Ne.apply(this,arguments)}return W(Qe,[{key:"attach",value:function(){pe(ce(Qe.prototype),"attach",this).call(this),this.forceNext=!1,this.scroll.emitMount(this)}},{key:"format",value:function(_e,xe){_e===Q.blotName&&(this.forceNext=!0,this.children.forEach(function(ve){ve.format(_e,xe)}))}},{key:"formatAt",value:function(_e,xe,ve,ee){ve===Q.blotName&&(this.forceNext=!0),pe(ce(Qe.prototype),"formatAt",this).call(this,_e,xe,ve,ee)}},{key:"highlight",value:function(_e){var xe=this,ve=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=this.children.head){var ee=Array.from(this.domNode.childNodes).filter(function(ze){return ze!==xe.uiNode}),Ce="".concat(ee.map(function(ze){return ze.textContent}).join("\n"),"\n"),De=Q.formats(this.children.head.domNode);if(ve||this.forceNext||this.cachedText!==Ce){if(Ce.trim().length>0||null==this.cachedText){var ke=this.children.reduce(function(ze,Pe){return ze.concat(Object(d.b)(Pe,!1))},new I.a),Fe=_e(Ce,De);ke.diff(Fe).reduce(function(ze,Pe){var be=Pe.retain,me=Pe.attributes;return be?(me&&Object.keys(me).forEach(function(Me){-1!==[Q.blotName,K.blotName].indexOf(Me)&&xe.formatAt(ze,be,Me,me[Me])}),ze+be):ze},0)}this.cachedText=Ce,this.forceNext=!1}}}},{key:"html",value:function(_e,xe){var Ce=M(this.children.find(_e),1)[0],De=Ce?Q.formats(Ce.domNode):"plain";return'<pre data-language="'.concat(De,'">\n').concat(this.code(_e,xe),"\n</pre>")}},{key:"optimize",value:function(_e){if(pe(ce(Qe.prototype),"optimize",this).call(this,_e),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){var xe=Q.formats(this.children.head.domNode);xe!==this.uiNode.value&&(this.uiNode.value=xe)}}}]),Qe}(v.b);de.allowedChildren=[Q],Q.requiredContainer=de,Q.allowedChildren=[K,h.a,m.a,c.a];var Oe=function(Ae){q(Qe,Ae);var Ne=J(Qe);function Qe($e,_e){var xe;if(V(this,Qe),null==(xe=Ne.call(this,$e,_e)).options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");return xe.languages=xe.options.languages.reduce(function(ve,ee){return ve[ee.key]=!0,ve},{}),xe.highlightBlot=xe.highlightBlot.bind(ae(xe)),xe.initListener(),xe.initTimer(),xe}return W(Qe,[{key:"initListener",value:function(){var _e=this;this.quill.on(g.a.events.SCROLL_BLOT_MOUNT,function(xe){if(xe instanceof de){var ve=_e.quill.root.ownerDocument.createElement("select");_e.options.languages.forEach(function(ee){var Ce=ee.key,De=ee.label,ke=ve.ownerDocument.createElement("option");ke.textContent=De,ke.setAttribute("value",Ce),ve.appendChild(ke)}),ve.addEventListener("change",function(){xe.format(Q.blotName,ve.value),_e.quill.root.focus(),_e.highlight(xe,!0)}),null==xe.uiNode&&(xe.attachUI(ve),xe.children.head&&(ve.value=Q.formats(xe.children.head.domNode)))}})}},{key:"initTimer",value:function(){var _e=this,xe=null;this.quill.on(g.a.events.SCROLL_OPTIMIZE,function(){clearTimeout(xe),xe=setTimeout(function(){_e.highlight(),xe=null},_e.options.interval)})}},{key:"highlight",value:function(){var _e=this,xe=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ve=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.quill.selection.composing){this.quill.update(g.a.sources.USER);var ee=this.quill.getSelection();(null==xe?this.quill.scroll.descendants(de):[xe]).forEach(function(De){De.highlight(_e.highlightBlot,ve)}),this.quill.update(g.a.sources.SILENT),null!=ee&&this.quill.setSelection(ee,g.a.sources.SILENT)}}},{key:"highlightBlot",value:function(_e){var xe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if("plain"===(xe=this.languages[xe]?xe:"plain"))return Object(m.b)(_e).split("\n").reduce(function(ee,Ce,De){return 0!==De&&ee.insert("\n",k({},v.c.blotName,xe)),ee.insert(Ce)},new I.a);var ve=this.quill.root.ownerDocument.createElement("div");return ve.classList.add(v.c.className),ve.innerHTML=this.options.hljs.highlight(xe,_e).value,Object(b.d)(this.quill.scroll,ve,[function(ee,Ce){var De=oe.value(ee);return De?Ce.compose((new I.a).retain(Ce.length(),k({},K.blotName,De))):Ce}],[function(ee,Ce){return ee.data.split("\n").reduce(function(De,ke,Fe){return 0!==Fe&&De.insert("\n",k({},v.c.blotName,xe)),De.insert(ke)},Ce)}],new WeakMap)}}],[{key:"register",value:function(){g.a.register(K,!0),g.a.register(Q,!0),g.a.register(de,!0)}}]),Qe}(p.a);Oe.DEFAULTS={hljs:Object(x.a)()?window.hljs:null,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"Javascript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]}},function(X,D){var w=Math.ceil,E=Math.floor;X.exports=function(I){var C=+I;return C!=C||0===C?0:(C>0?E:w)(C)}},function(X,D,w){var E=w(8),I=w(79),C=E.String;X.exports=function(y){if("Symbol"===I(y))throw TypeError("Cannot convert a Symbol value to a string");return C(y)}},function(X,D,w){var E=w(8),I=w(126),C=w(22),y=w(82),p=w(28)("toStringTag"),d=E.Object,c="Arguments"==y(function(){return arguments}());X.exports=I?y:function(m){var v,b,x;return void 0===m?"Undefined":null===m?"Null":"string"==typeof(b=function(m,v){try{return m[v]}catch{}}(v=d(m),p))?b:c?y(v):"Object"==(x=y(v))&&C(v.callee)?"Arguments":x}},function(X,D,w){var E=w(8),I=w(81),C="__core-js_shared__",y=E[C]||I(C,{});X.exports=y},function(X,D,w){var E=w(8),I=Object.defineProperty;X.exports=function(C,y){try{I(E,C,{value:y,configurable:!0,writable:!0})}catch{E[C]=y}return y}},function(X,D,w){var E=w(20),I=E({}.toString),C=E("".slice);X.exports=function(y){return C(I(y),8,-1)}},function(X,D,w){var E=w(20),I=w(22),C=w(80),y=E(Function.toString);I(C.inspectSource)||(C.inspectSource=function(g){return y(g)}),X.exports=C.inspectSource},function(X,D,w){var E=w(130),I=w(103);X.exports=function(C){var y=E(C,"string");return I(y)?y:y+""}},function(X,D,w){var E=w(86);X.exports=function(I,C){var y=I[C];return null==y?void 0:E(y)}},function(X,D,w){var E=w(8),I=w(22),C=w(104),y=E.TypeError;X.exports=function(g){if(I(g))return g;throw y(C(g)+" is not a function")}},function(X,D,w){var E=w(96),I=w(97),C=E("keys");X.exports=function(y){return C[y]||(C[y]=I(y))}},function(X,D){X.exports={}},function(X,D,w){var E=w(41),I=w(42),C=w(105),y=w(71),g=w(62),p=w(84),d=w(36),c=w(101),h=Object.getOwnPropertyDescriptor;D.f=E?h:function(v,b){if(v=g(v),b=p(b),c)try{return h(v,b)}catch{}if(d(v,b))return y(!I(C.f,v,b),v[b])}},function(X,D,w){var E=w(8),I=w(22),C=w(36),y=w(70),g=w(81),p=w(83),d=w(100),c=w(106).CONFIGURABLE,h=d.get,m=d.enforce,v=String(String).split("String");(X.exports=function(b,x,O,k){var N,M=!!k&&!!k.unsafe,A=!!k&&!!k.enumerable,F=!!k&&!!k.noTargetGet,P=k&&void 0!==k.name?k.name:x;I(O)&&("Symbol("===String(P).slice(0,7)&&(P="["+String(P).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!C(O,"name")||c&&O.name!==P)&&y(O,"name",P),(N=m(O)).source||(N.source=v.join("string"==typeof P?P:""))),b!==E?(M?!F&&b[x]&&(A=!0):delete b[x],A?b[x]=O:y(b,x,O)):A?b[x]=O:g(x,O)})(Function.prototype,"toString",function(){return I(this)&&h(this).source||p(this)})},function(X,D,w){var E=w(109);X.exports=function(I){return E(I.length)}},function(X,D){X.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(X,D,w){var A,E=w(40),I=w(142),C=w(92),y=w(88),g=w(143),p=w(102),d=w(87),m="prototype",v="script",b=d("IE_PROTO"),x=function(){},O=function(P){return"<"+v+">"+P+"</"+v+">"},k=function(P){P.write(O("")),P.close();var N=P.parentWindow.Object;return P=null,N},F=function(){try{A=new ActiveXObject("htmlfile")}catch{}F=typeof document<"u"?document.domain&&A?k(A):function(){var B,P=p("iframe"),N="java"+v+":";return P.style.display="none",g.appendChild(P),P.src=String(N),(B=P.contentWindow.document).open(),B.write(O("document.F=Object")),B.close(),B.F}():k(A);for(var P=C.length;P--;)delete F[m][C[P]];return F()};y[b]=!0,X.exports=Object.create||function(N,B){var V;return null!==N?(x[m]=E(N),V=new x,x[m]=null,V[b]=N):V=F(),void 0===B?V:I(V,B)}},function(X,D,w){"use strict";var E=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(D,"__esModule",{value:!0});var C,y,I=E(w(120));(y=C||(C={})).iterator=function g(d){return new I.default(d)},y.length=function p(d){return"number"==typeof d.delete?d.delete:"number"==typeof d.retain?d.retain:"string"==typeof d.insert?d.insert.length:1},D.default=C},function(X,D){"use strict";var w=Object.prototype.hasOwnProperty,E="~";function I(){}function C(d,c,h){this.fn=d,this.context=c,this.once=h||!1}function y(d,c,h,m,v){if("function"!=typeof h)throw new TypeError("The listener must be a function");var b=new C(h,m||d,v),x=E?E+c:c;return d._events[x]?d._events[x].fn?d._events[x]=[d._events[x],b]:d._events[x].push(b):(d._events[x]=b,d._eventsCount++),d}function g(d,c){0==--d._eventsCount?d._events=new I:delete d._events[c]}function p(){this._events=new I,this._eventsCount=0}Object.create&&(I.prototype=Object.create(null),(new I).__proto__||(E=!1)),p.prototype.eventNames=function(){var h,m,c=[];if(0===this._eventsCount)return c;for(m in h=this._events)w.call(h,m)&&c.push(E?m.slice(1):m);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(h)):c},p.prototype.listeners=function(c){var m=this._events[E?E+c:c];if(!m)return[];if(m.fn)return[m.fn];for(var v=0,b=m.length,x=new Array(b);v<b;v++)x[v]=m[v].fn;return x},p.prototype.listenerCount=function(c){var m=this._events[E?E+c:c];return m?m.fn?1:m.length:0},p.prototype.emit=function(c,h,m,v,b,x){var O=E?E+c:c;if(!this._events[O])return!1;var A,F,k=this._events[O],M=arguments.length;if(k.fn){switch(k.once&&this.removeListener(c,k.fn,void 0,!0),M){case 1:return k.fn.call(k.context),!0;case 2:return k.fn.call(k.context,h),!0;case 3:return k.fn.call(k.context,h,m),!0;case 4:return k.fn.call(k.context,h,m,v),!0;case 5:return k.fn.call(k.context,h,m,v,b),!0;case 6:return k.fn.call(k.context,h,m,v,b,x),!0}for(F=1,A=new Array(M-1);F<M;F++)A[F-1]=arguments[F];k.fn.apply(k.context,A)}else{var N,P=k.length;for(F=0;F<P;F++)switch(k[F].once&&this.removeListener(c,k[F].fn,void 0,!0),M){case 1:k[F].fn.call(k[F].context);break;case 2:k[F].fn.call(k[F].context,h);break;case 3:k[F].fn.call(k[F].context,h,m);break;case 4:k[F].fn.call(k[F].context,h,m,v);break;default:if(!A)for(N=1,A=new Array(M-1);N<M;N++)A[N-1]=arguments[N];k[F].fn.apply(k[F].context,A)}}return!0},p.prototype.on=function(c,h,m){return y(this,c,h,m,!1)},p.prototype.once=function(c,h,m){return y(this,c,h,m,!0)},p.prototype.removeListener=function(c,h,m,v){var b=E?E+c:c;if(!this._events[b])return this;if(!h)return g(this,b),this;var x=this._events[b];if(x.fn)x.fn===h&&(!v||x.once)&&(!m||x.context===m)&&g(this,b);else{for(var O=0,k=[],M=x.length;O<M;O++)(x[O].fn!==h||v&&!x[O].once||m&&x[O].context!==m)&&k.push(x[O]);k.length?this._events[b]=1===k.length?k[0]:k:g(this,b)}return this},p.prototype.removeAllListeners=function(c){var h;return c?this._events[h=E?E+c:c]&&g(this,h):(this._events=new I,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prefixed=E,p.EventEmitter=p,typeof X<"u"&&(X.exports=p)},function(X,D,w){var E=w(67),I=w(80);(X.exports=function(C,y){return I[C]||(I[C]=void 0!==y?y:{})})("versions",[]).push({version:"3.19.1",mode:E?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},function(X,D,w){var E=w(20),I=0,C=Math.random(),y=E(1..toString);X.exports=function(g){return"Symbol("+(void 0===g?"":g)+")_"+y(++I+C,36)}},function(X,D,w){var E=w(127),I=w(39);X.exports=!!Object.getOwnPropertySymbols&&!I(function(){var C=Symbol();return!String(C)||!(Object(C)instanceof Symbol)||!Symbol.sham&&E&&E<41})},function(X,D,w){var E=w(98);X.exports=E&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(X,D,w){var x,O,k,E=w(129),I=w(8),C=w(20),y=w(51),g=w(70),p=w(36),d=w(80),c=w(87),h=w(88),m="Object already initialized",v=I.TypeError;if(E||d.state){var F=d.state||(d.state=new(0,I.WeakMap)),P=C(F.get),N=C(F.has),B=C(F.set);x=function(H,W){if(N(F,H))throw new v(m);return W.facade=H,B(F,H,W),W},O=function(H){return P(F,H)||{}},k=function(H){return N(F,H)}}else{var V=c("state");h[V]=!0,x=function(H,W){if(p(H,V))throw new v(m);return W.facade=H,g(H,V,W),W},O=function(H){return p(H,V)?H[V]:{}},k=function(H){return p(H,V)}}X.exports={set:x,get:O,has:k,enforce:function(H){return k(H)?O(H):x(H,{})},getterFor:function(H){return function(W){var q;if(!y(W)||(q=O(W)).type!==H)throw v("Incompatible receiver, "+H+" required");return q}}}},function(X,D,w){var E=w(41),I=w(39),C=w(102);X.exports=!E&&!I(function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})},function(X,D,w){var E=w(8),I=w(51),C=E.document,y=I(C)&&I(C.createElement);X.exports=function(g){return y?C.createElement(g):{}}},function(X,D,w){var E=w(8),I=w(60),C=w(22),y=w(131),g=w(99),p=E.Object;X.exports=g?function(d){return"symbol"==typeof d}:function(d){var c=I("Symbol");return C(c)&&y(c.prototype,p(d))}},function(X,D,w){var I=w(8).String;X.exports=function(C){try{return I(C)}catch{return"Object"}}},function(X,D,w){"use strict";var E={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,C=I&&!E.call({1:2},1);D.f=C?function(g){var p=I(this,g);return!!p&&p.enumerable}:E},function(X,D,w){var E=w(41),I=w(36),C=Function.prototype,y=E&&Object.getOwnPropertyDescriptor,g=I(C,"name"),p=g&&"something"===function(){}.name,d=g&&(!E||E&&y(C,"name").configurable);X.exports={EXISTS:g,PROPER:p,CONFIGURABLE:d}},function(X,D,w){var E=w(20),I=w(36),C=w(62),y=w(138).indexOf,g=w(88),p=E([].push);X.exports=function(d,c){var b,h=C(d),m=0,v=[];for(b in h)!I(g,b)&&I(h,b)&&p(v,b);for(;c.length>m;)I(h,b=c[m++])&&(~y(v,b)||p(v,b));return v}},function(X,D,w){var E=w(77),I=Math.max,C=Math.min;X.exports=function(y,g){var p=E(y);return p<0?I(p+g,0):C(p,g)}},function(X,D,w){var E=w(77),I=Math.min;X.exports=function(C){return C>0?I(E(C),9007199254740991):0}},function(X,D,w){"use strict";var m,v,b,E=w(39),I=w(22),C=w(93),y=w(112),g=w(90),p=w(28),d=w(67),c=p("iterator"),h=!1;[].keys&&("next"in(b=[].keys())?(v=y(y(b)))!==Object.prototype&&(m=v):h=!0),null==m||E(function(){var O={};return m[c].call(O)!==O})?m={}:d&&(m=C(m)),I(m[c])||g(m,c,function(){return this}),X.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:h}},function(X,D,w){var E=w(107),I=w(92);X.exports=Object.keys||function(y){return E(y,I)}},function(X,D,w){var E=w(8),I=w(36),C=w(22),y=w(68),g=w(87),p=w(144),d=g("IE_PROTO"),c=E.Object,h=c.prototype;X.exports=p?c.getPrototypeOf:function(m){var v=y(m);if(I(v,d))return v[d];var b=v.constructor;return C(b)&&v instanceof b?b.prototype:v instanceof c?h:null}},function(X,D,w){var E=w(52).f,I=w(36),y=w(28)("toStringTag");X.exports=function(g,p,d){g&&!I(g=d?g:g.prototype,y)&&E(g,y,{configurable:!0,value:p})}},function(X,D,w){var E=w(79),I=w(85),C=w(72),g=w(28)("iterator");X.exports=function(p){if(null!=p)return I(p,g)||I(p,"@@iterator")||C[E(p)]}},function(X,D,w){var E=w(8);X.exports=E},function(X,D,w){var E=w(8),I=w(20);X.exports=function(C,y){return I(E[C].prototype[y])}},function(X,D,w){"use strict";w.r(D),w(121),w(157),w(163),w(168);var g=w(25),p=w(38),d=w(35),c=w(2);function h(Ge){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function m(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function v(Ge,Ke){for(var it=0;it<Ke.length;it++){var Ft=Ke[it];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Ge,Ft.key,Ft)}}function x(Ge,Ke,it){return(x=typeof Reflect<"u"&&Reflect.get?Reflect.get:function($t,Tn,xr){var Ba=function O(Ge,Ke){for(;!Object.prototype.hasOwnProperty.call(Ge,Ke)&&null!==(Ge=B(Ge)););return Ge}($t,Tn);if(Ba){var jo=Object.getOwnPropertyDescriptor(Ba,Tn);return jo.get?jo.get.call(xr):jo.value}})(Ge,Ke,it||Ge)}function k(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&M(Ge,Ke)}function M(Ge,Ke){return(M=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function A(Ge){var Ke=function N(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=B(Ge);if(Ke){var Tn=B(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return F(this,$t)}}function F(Ge,Ke){if(Ke&&("object"===h(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function P(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function B(Ge){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var V=function(Ge){k(it,Ge);var Ke=A(it);function it(){return m(this,it),Ke.apply(this,arguments)}return function b(Ge,Ke,it){return Ke&&v(Ge.prototype,Ke),it&&v(Ge,it),Ge}(it,[{key:"add",value:function($t,Tn){if("+1"===Tn||"-1"===Tn){var xr=this.value($t)||0;Tn="+1"===Tn?xr+1:xr-1}return 0===Tn?(this.remove($t),!0):x(B(it.prototype),"add",this).call(this,$t,Tn)}},{key:"canAdd",value:function($t,Tn){return x(B(it.prototype),"canAdd",this).call(this,$t,Tn)||x(B(it.prototype),"canAdd",this).call(this,$t,parseInt(Tn,10))}},{key:"value",value:function($t){return parseInt(x(B(it.prototype),"value",this).call(this,$t),10)||void 0}}]),it}(c.ClassAttributor),W=new V("indent","ql-indent",{scope:c.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),q=w(6);function G(Ge){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function J(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function ne(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&ae(Ge,Ke)}function ae(Ge,Ke){return(ae=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function ge(Ge){var Ke=function ce(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=oe(Ge);if(Ke){var Tn=oe(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return pe(this,$t)}}function pe(Ge,Ke){if(Ke&&("object"===G(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function le(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function oe(Ge){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var K=function(Ge){ne(it,Ge);var Ke=ge(it);function it(){return J(this,it),Ke.apply(this,arguments)}return it}(q.d);K.blotName="blockquote",K.tagName="blockquote";var Q=K;function de(Ge){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function Oe(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function Ae(Ge,Ke){for(var it=0;it<Ke.length;it++){var Ft=Ke[it];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Ge,Ft.key,Ft)}}function Qe(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&$e(Ge,Ke)}function $e(Ge,Ke){return($e=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function _e(Ge){var Ke=function ee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=Ce(Ge);if(Ke){var Tn=Ce(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return xe(this,$t)}}function xe(Ge,Ke){if(Ke&&("object"===de(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function ve(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function Ce(Ge){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var De=function(Ge){Qe(it,Ge);var Ke=_e(it);function it(){return Oe(this,it),Ke.apply(this,arguments)}return function Ne(Ge,Ke,it){return Ke&&Ae(Ge.prototype,Ke),it&&Ae(Ge,it),Ge}(it,null,[{key:"formats",value:function($t){return this.tagName.indexOf($t.tagName)+1}}]),it}(q.d);De.blotName="header",De.tagName=["H1","H2","H3","H4","H5","H6"];var ke=De,Fe=w(13),ze=w(0);function Pe(Ge){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function be(Ge,Ke){for(var it=0;it<Ke.length;it++){var Ft=Ke[it];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Ge,Ft.key,Ft)}}function Me(Ge,Ke,it){return(Me=typeof Reflect<"u"&&Reflect.get?Reflect.get:function($t,Tn,xr){var Ba=function Ue(Ge,Ke){for(;!Object.prototype.hasOwnProperty.call(Ge,Ke)&&null!==(Ge=ft(Ge)););return Ge}($t,Tn);if(Ba){var jo=Object.getOwnPropertyDescriptor(Ba,Tn);return jo.get?jo.get.call(xr):jo.value}})(Ge,Ke,it||Ge)}function st(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function Lt(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&ln(Ge,Ke)}function ln(Ge,Ke){return(ln=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function Mn(Ge){var Ke=function Ye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=ft(Ge);if(Ke){var Tn=ft(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return ri(this,$t)}}function ri(Ge,Ke){if(Ke&&("object"===Pe(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function lr(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function ft(Ge){return(ft=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var jt=function(Ge){Lt(it,Ge);var Ke=Mn(it);function it(){return st(this,it),Ke.apply(this,arguments)}return it}(Fe.a);jt.blotName="list-container",jt.tagName="OL";var an=function(Ge){Lt(it,Ge);var Ke=Mn(it);function it(Ft,$t){var Tn;st(this,it),Tn=Ke.call(this,Ft,$t);var xr=$t.ownerDocument.createElement("span"),Ba=function(ey){if(Ft.isEnabled()){var Hd=Tn.statics.formats($t,Ft);"checked"===Hd?(Tn.format("list","unchecked"),ey.preventDefault()):"unchecked"===Hd&&(Tn.format("list","checked"),ey.preventDefault())}};return xr.addEventListener("mousedown",Ba),xr.addEventListener("touchstart",Ba),Tn.attachUI(xr),Tn}return function me(Ge,Ke,it){return Ke&&be(Ge.prototype,Ke),it&&be(Ge,it),Ge}(it,[{key:"format",value:function($t,Tn){$t===this.statics.blotName&&Tn?this.domNode.setAttribute("data-list",Tn):Me(ft(it.prototype),"format",this).call(this,$t,Tn)}}],[{key:"create",value:function($t){var Tn=Me(ft(it),"create",this).call(this);return Tn.setAttribute("data-list",$t),Tn}},{key:"formats",value:function($t){return $t.getAttribute("data-list")||void 0}},{key:"register",value:function(){ze.a.register(jt)}}]),it}(q.d);an.blotName="list",an.tagName="LI",jt.allowedChildren=[an],an.requiredContainer=jt;var sn=w(45),Bn=w(34),xn=w(46),ai=w(47),yi=w(49);function Xi(Ge){return(Xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function Vr(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function Ar(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&ko(Ge,Ke)}function ko(Ge,Ke){return(ko=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function Ht(Ge){var Ke=function ht(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=ut(Ge);if(Ke){var Tn=ut(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return en(this,$t)}}function en(Ge,Ke){if(Ke&&("object"===Xi(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function Gt(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function ut(Ge){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var tt=function(Ge){Ar(it,Ge);var Ke=Ht(it);function it(){return Vr(this,it),Ke.apply(this,arguments)}return it}(yi.a);tt.blotName="italic",tt.tagName=["EM","I"];var xt=tt,_t=w(43),Mt=w(14);function At(Ge){return(At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function Ut(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function En(Ge,Ke){for(var it=0;it<Ke.length;it++){var Ft=Ke[it];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Ge,Ft.key,Ft)}}function zi(Ge,Ke,it){return(zi=typeof Reflect<"u"&&Reflect.get?Reflect.get:function($t,Tn,xr){var Ba=function cr(Ge,Ke){for(;!Object.prototype.hasOwnProperty.call(Ge,Ke)&&null!==(Ge=Kl(Ge)););return Ge}($t,Tn);if(Ba){var jo=Object.getOwnPropertyDescriptor(Ba,Tn);return jo.get?jo.get.call(xr):jo.value}})(Ge,Ke,it||Ge)}function Dn(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&Yo(Ge,Ke)}function Yo(Ge,Ke){return(Yo=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function pi(Ge){var Ke=function Ju(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=Kl(Ge);if(Ke){var Tn=Kl(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return br(this,$t)}}function br(Ge,Ke){if(Ke&&("object"===At(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function _l(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function Kl(Ge){return(Kl=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var $l=function(Ge){Dn(it,Ge);var Ke=pi(it);function it(){return Ut(this,it),Ke.apply(this,arguments)}return function ui(Ge,Ke,it){return Ke&&En(Ge.prototype,Ke),it&&En(Ge,it),Ge}(it,null,[{key:"create",value:function($t){return"super"===$t?document.createElement("sup"):"sub"===$t?document.createElement("sub"):zi(Kl(it),"create",this).call(this,$t)}},{key:"formats",value:function($t){return"SUB"===$t.tagName?"sub":"SUP"===$t.tagName?"super":void 0}}]),it}(Mt.a);$l.blotName="script",$l.tagName=["SUB","SUP"];var Rr=$l;function Ys(Ge){return(Ys="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function Qu(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function Nd(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&qa(Ge,Ke)}function qa(Ge,Ke){return(qa=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function Zc(Ge){var Ke=function uc(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=ta(Ge);if(Ke){var Tn=ta(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return Cs(this,$t)}}function Cs(Ge,Ke){if(Ke&&("object"===Ys(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function Xc(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function ta(Ge){return(ta=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var Zs=function(Ge){Nd(it,Ge);var Ke=Zc(it);function it(){return Qu(this,it),Ke.apply(this,arguments)}return it}(yi.a);Zs.blotName="strike",Zs.tagName=["S","STRIKE"];var vl=Zs;function la(Ge){return(la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function na(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function ar(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&ua(Ge,Ke)}function ua(Ge,Ke){return(ua=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function dc(Ge){var Ke=function ks(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=Je(Ge);if(Ke){var Tn=Je(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return Jc(this,$t)}}function Jc(Ge,Ke){if(Ke&&("object"===la(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function Hn(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function Je(Ge){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var yl=function(Ge){ar(it,Ge);var Ke=dc(it);function it(){return na(this,it),Ke.apply(this,arguments)}return it}(Mt.a);yl.blotName="underline",yl.tagName="U";var mu=yl,_u=w(56),Cl=w(15);function bl(Ge){return(bl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function Xs(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function ed(Ge,Ke){for(var it=0;it<Ke.length;it++){var Ft=Ke[it];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Ge,Ft.key,Ft)}}function Js(Ge,Ke,it){return(Js=typeof Reflect<"u"&&Reflect.get?Reflect.get:function($t,Tn,xr){var Ba=function Qc(Ge,Ke){for(;!Object.prototype.hasOwnProperty.call(Ge,Ke)&&null!==(Ge=dn(Ge)););return Ge}($t,Tn);if(Ba){var jo=Object.getOwnPropertyDescriptor(Ba,Tn);return jo.get?jo.get.call(xr):jo.value}})(Ge,Ke,it||Ge)}function Ui(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&vu(Ge,Ke)}function vu(Ge,Ke){return(vu=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function Xe(Ge){var Ke=function Jt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=dn(Ge);if(Ke){var Tn=dn(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return lt(this,$t)}}function lt(Ge,Ke){if(Ke&&("object"===bl(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function Et(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function dn(Ge){return(dn=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var gi=function(Ge){Ui(it,Ge);var Ke=Xe(it);function it(){return Xs(this,it),Ke.apply(this,arguments)}return function ql(Ge,Ke,it){return Ke&&ed(Ge.prototype,Ke),it&&ed(Ge,it),Ge}(it,[{key:"html",value:function(){var $t=this.value();return"<span>".concat($t.formula,"</span>")}}],[{key:"create",value:function($t){var Tn=null;if(Object(Cl.a)()&&(Tn=window.katex),null==Tn)throw new Error("Formula module requires KaTeX.");var xr=Js(dn(it),"create",this).call(this,$t);return"string"==typeof $t&&(Tn.render($t,xr,{throwOnError:!1,errorColor:"#f00"}),xr.setAttribute("data-value",$t)),xr}},{key:"value",value:function($t){return $t.getAttribute("data-value")}}]),it}(_u.a);gi.blotName="formula",gi.className="ql-formula",gi.tagName="SPAN";var ir=gi;function Mo(Ge){return(Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function Ho(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function ia(Ge,Ke){for(var it=0;it<Ke.length;it++){var Ft=Ke[it];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Ge,Ft.key,Ft)}}function Yl(Ge,Ke,it){return(Yl=typeof Reflect<"u"&&Reflect.get?Reflect.get:function($t,Tn,xr){var Ba=function Za(Ge,Ke){for(;!Object.prototype.hasOwnProperty.call(Ge,Ke)&&null!==(Ge=Xa(Ge)););return Ge}($t,Tn);if(Ba){var jo=Object.getOwnPropertyDescriptor(Ba,Tn);return jo.get?jo.get.call(xr):jo.value}})(Ge,Ke,it||Ge)}function eh(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&td(Ge,Ke)}function td(Ge,Ke){return(td=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function yu(Ge){var Ke=function qt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=Xa(Ge);if(Ke){var Tn=Xa(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return Zl(this,$t)}}function Zl(Ge,Ke){if(Ke&&("object"===Mo(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function Vd(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function Xa(Ge){return(Xa=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var Ji=["alt","height","width"],nd=function(Ge){eh(it,Ge);var Ke=yu(it);function it(){return Ho(this,it),Ke.apply(this,arguments)}return function Ya(Ge,Ke,it){return Ke&&ia(Ge.prototype,Ke),it&&ia(Ge,it),Ge}(it,[{key:"format",value:function($t,Tn){Ji.indexOf($t)>-1?Tn?this.domNode.setAttribute($t,Tn):this.domNode.removeAttribute($t):Yl(Xa(it.prototype),"format",this).call(this,$t,Tn)}}],[{key:"create",value:function($t){var Tn=Yl(Xa(it),"create",this).call(this,$t);return"string"==typeof $t&&Tn.setAttribute("src",this.sanitize($t)),Tn}},{key:"formats",value:function($t){return Ji.reduce(function(Tn,xr){return $t.hasAttribute(xr)&&(Tn[xr]=$t.getAttribute(xr)),Tn},{})}},{key:"match",value:function($t){return/\.(jpe?g|gif|png)$/.test($t)||/^data:image\/.+;base64/.test($t)}},{key:"register",value:function(){Object(Cl.a)()&&/Firefox/i.test(navigator.userAgent)&&setTimeout(function(){document.execCommand("enableObjectResizing",!1,!1)},1)}},{key:"sanitize",value:function($t){return Object(_t.b)($t,["http","https","data"])?$t:"//:0"}},{key:"value",value:function($t){return $t.getAttribute("src")}}]),it}(c.EmbedBlot);nd.blotName="image",nd.tagName="IMG";var Qs=nd;function Xl(Ge){return(Xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function th(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function Gp(Ge,Ke){for(var it=0;it<Ke.length;it++){var Ft=Ke[it];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Ge,Ft.key,Ft)}}function Ee(Ge,Ke,it){return(Ee=typeof Reflect<"u"&&Reflect.get?Reflect.get:function($t,Tn,xr){var Ba=function rt(Ge,Ke){for(;!Object.prototype.hasOwnProperty.call(Ge,Ke)&&null!==(Ge=Yi(Ge)););return Ge}($t,Tn);if(Ba){var jo=Object.getOwnPropertyDescriptor(Ba,Tn);return jo.get?jo.get.call(xr):jo.value}})(Ge,Ke,it||Ge)}function Le(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&dt(Ge,Ke)}function dt(Ge,Ke){return(dt=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function Vt(Ge){var Ke=function Fi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=Yi(Ge);if(Ke){var Tn=Yi(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return _n(this,$t)}}function _n(Ge,Ke){if(Ke&&("object"===Xl(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function zn(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function Yi(Ge){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var Ei=["height","width"],hr=function(Ge){Le(it,Ge);var Ke=Vt(it);function it(){return th(this,it),Ke.apply(this,arguments)}return function Tf(Ge,Ke,it){return Ke&&Gp(Ge.prototype,Ke),it&&Gp(Ge,it),Ge}(it,[{key:"format",value:function($t,Tn){Ei.indexOf($t)>-1?Tn?this.domNode.setAttribute($t,Tn):this.domNode.removeAttribute($t):Ee(Yi(it.prototype),"format",this).call(this,$t,Tn)}},{key:"html",value:function(){var Tn=this.value().video;return'<a href="'.concat(Tn,'">').concat(Tn,"</a>")}}],[{key:"create",value:function($t){var Tn=Ee(Yi(it),"create",this).call(this,$t);return Tn.setAttribute("frameborder","0"),Tn.setAttribute("allowfullscreen",!0),Tn.setAttribute("src",this.sanitize($t)),Tn}},{key:"formats",value:function($t){return Ei.reduce(function(Tn,xr){return $t.hasAttribute(xr)&&(Tn[xr]=$t.getAttribute(xr)),Tn},{})}},{key:"sanitize",value:function($t){return _t.a.sanitize($t)}},{key:"value",value:function($t){return $t.getAttribute("src")}}]),it}(q.a);hr.blotName="video",hr.className="ql-video",hr.tagName="IFRAME";var Zr=hr,Hr=w(17),ba=w(76),je=w(65),Jl=w(1),xl=w.n(Jl);function id(Ge){return(id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function nt(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}function If(Ge,Ke){for(var it=0;it<Ke.length;it++){var Ft=Ke[it];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Ge,Ft.key,Ft)}}function sr(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&bs(Ge,Ke)}function bs(Ge,Ke){return(bs=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function Ao(Ge){var Ke=function y0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=Sl(Ge);if(Ke){var Tn=Sl(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return wl(this,$t)}}function wl(Ge,Ke){if(Ke&&("object"===id(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return function Ql(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}(Ge)}function Sl(Ge){return(Sl=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}var cc=function(Ge){sr(it,Ge);var Ke=Ao(it);function it(){return nt(this,it),Ke.apply(this,arguments)}return function kf(Ge,Ke,it){return Ke&&If(Ge.prototype,Ke),it&&If(Ge,it),Ge}(it,[{key:"length",value:function(){return 1}},{key:"value",value:function(){return"\n"}},{key:"optimize",value:function(){!this.prev&&!this.next&&this.remove()}}],[{key:"value",value:function(){return"\n"}}]),it}(c.EmbedBlot);cc.blotName="multilineBreak",cc.tagName="BR";var Ii=cc;function da(Ge){return(da="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(it){return typeof it}:function(it){return it&&"function"==typeof Symbol&&it.constructor===Symbol&&it!==Symbol.prototype?"symbol":typeof it})(Ge)}function el(Ge,Ke){for(var it=0;it<Ke.length;it++){var Ft=Ke[it];Ft.enumerable=Ft.enumerable||!1,Ft.configurable=!0,"value"in Ft&&(Ft.writable=!0),Object.defineProperty(Ge,Ft.key,Ft)}}function Ja(Ge,Ke){if("function"!=typeof Ke&&null!==Ke)throw new TypeError("Super expression must either be null or a function");Ge.prototype=Object.create(Ke&&Ke.prototype,{constructor:{value:Ge,writable:!0,configurable:!0}}),Ke&&b0(Ge,Ke)}function b0(Ge,Ke){return(b0=Object.setPrototypeOf||function(Ft,$t){return Ft.__proto__=$t,Ft})(Ge,Ke)}function Zb(Ge){var Ke=function Xv(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var $t,Ft=Jv(Ge);if(Ke){var Tn=Jv(this).constructor;$t=Reflect.construct(Ft,arguments,Tn)}else $t=Ft.apply(this,arguments);return zr(this,$t)}}function zr(Ge,Ke){if(Ke&&("object"===da(Ke)||"function"==typeof Ke))return Ke;if(void 0!==Ke)throw new TypeError("Derived constructors may only return object or undefined");return Xb(Ge)}function Xb(Ge){if(void 0===Ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Ge}function Jv(Ge){return(Jv=Object.setPrototypeOf?Object.getPrototypeOf:function(it){return it.__proto__||Object.getPrototypeOf(it)})(Ge)}function x0(Ge){return Ge.nextSibling||Ge.previousSibling?(new xl.a).insert({multilineBreak:""}):(new xl.a).insert("\n")}var Qv=function(Ge){Ja(it,Ge);var Ke=Zb(it);function it(Ft,$t){var Tn;!function Mf(Ge,Ke){if(!(Ge instanceof Ke))throw new TypeError("Cannot call a class as a function")}(this,it);return Tn=Ke.call(this,Ft,$t),ze.a.register(function hc(Ge,Ke,it){return Ke in Ge?Object.defineProperty(Ge,Ke,{value:it,enumerable:!0,configurable:!0,writable:!0}):Ge[Ke]=it,Ge}({},"blots/multilineBreak",Ii),!0),Ft.keyboard.addBinding({key:"enter",shiftKey:!0},Tn.enterHandler.bind(Xb(Tn))),Ft.keyboard.bindings.enter.unshift(Ft.keyboard.bindings.enter.pop()),Ft.clipboard.addMatcher("BR",x0),Tn}return function C0(Ge,Ke,it){return Ke&&el(Ge.prototype,Ke),it&&el(Ge,it),Ge}(it,[{key:"enterHandler",value:function($t){var Tn=this.quill.getLeaf($t.index)[0],xr=this.quill.getLeaf($t.index+1)[0];this.quill.insertEmbed($t.index,"multilineBreak",!0,"user"),(null===xr||Tn.parent!==xr.parent)&&this.quill.insertEmbed($t.index,"multilineBreak",!0,"user"),this.quill.setSelection($t.index+1,ze.a.sources.SILENT)}}]),it}(w(12).a),w0=w(75),pc=w(21),S0=w(11);function VD(Ge,Ke){var it=Object.keys(Ge);if(Object.getOwnPropertySymbols){var Ft=Object.getOwnPropertySymbols(Ge);Ke&&(Ft=Ft.filter(function($t){return Object.getOwnPropertyDescriptor(Ge,$t).enumerable})),it.push.apply(it,Ft)}return it}function Go(Ge){for(var Ke=1;Ke<arguments.length;Ke++){var it=null!=arguments[Ke]?arguments[Ke]:{};Ke%2?VD(Object(it),!0).forEach(function(Ft){xte(Ge,Ft,it[Ft])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ge,Object.getOwnPropertyDescriptors(it)):VD(Object(it)).forEach(function(Ft){Object.defineProperty(Ge,Ft,Object.getOwnPropertyDescriptor(it,Ft))})}return Ge}function xte(Ge,Ke,it){return Ke in Ge?Object.defineProperty(Ge,Ke,{value:it,enumerable:!0,configurable:!0,writable:!0}):Ge[Ke]=it,Ge}function D0(Ge,Ke){return Ke.reduce(function(it,Ft){return it["".concat(Ge).concat(Ft.attrName)]=Ft,it},{})}g.default.register(Go(Go(Go(Go({"attributors/attribute/direction":d.a},D0("attributors/attribute/",S0.b)),D0("attributors/attribute/",pc.c)),{},{"attributors/class/align":p.b,"attributors/class/background":sn.a,"attributors/class/color":Bn.b,"attributors/class/direction":d.b,"attributors/class/font":xn.a,"attributors/class/size":ai.a,"attributors/style/align":p.c,"attributors/style/background":sn.b,"attributors/style/color":Bn.c,"attributors/style/direction":d.c,"attributors/style/font":xn.b,"attributors/style/size":ai.b},D0("attributors/style/",S0.d)),D0("attributors/style/",pc.d)),!0),g.default.register({"formats/align":p.b,"formats/direction":d.b,"formats/indent":W,"formats/background":sn.b,"formats/color":Bn.c,"formats/font":xn.a,"formats/size":ai.a,"formats/blockquote":Q,"formats/code-block":Hr.c,"formats/header":ke,"formats/list":an,"formats/bold":yi.a,"formats/code":Hr.a,"formats/italic":xt,"formats/link":_t.a,"formats/script":Rr,"formats/strike":vl,"formats/underline":mu,"formats/formula":ir,"formats/image":Qs,"formats/video":Zr,"tableModules/lite":w0.a,"tableModules/main":je.a,"modules/syntax":ba.b,"modules/multiline":Qv,"modules/table":je.a},!0),D.default=g.default},function(X,D){var w=-1;function C(P,N,B,V){if(P===N)return P?[[0,P]]:[];if(null!=B){var H=function A(P,N,B){var V="number"==typeof B?{index:B,length:0}:B.oldRange,H="number"==typeof B?null:B.newRange,W=P.length,q=N.length;if(0===V.length&&(null===H||0===H.length)){var G=V.index,J=P.slice(0,G),ne=P.slice(G),ae=H?H.index:null,ge=G+q-W;if(!(null!==ae&&ae!==ge||ge<0||ge>q)){var pe=N.slice(0,ge);if((le=N.slice(ge))===ne){var ce=Math.min(G,ge);if((oe=J.slice(0,ce))===(K=pe.slice(0,ce)))return M(oe,J.slice(ce),pe.slice(ce),ne)}}if(null===ae||ae===G){var Oe=G,le=(pe=N.slice(0,Oe),N.slice(Oe));if(pe===J){var Ae=Math.min(W-Oe,q-Oe);if((Ne=ne.slice(ne.length-Ae))===(Qe=le.slice(le.length-Ae)))return M(J,ne.slice(0,ne.length-Ae),le.slice(0,le.length-Ae),Ne)}}}if(V.length>0&&H&&0===H.length){var oe=P.slice(0,V.index),Ne=P.slice(V.index+V.length);if(!(q<(ce=oe.length)+(Ae=Ne.length))){var K=N.slice(0,ce),Qe=N.slice(q-Ae);if(oe===K&&Ne===Qe)return M(oe,P.slice(ce,W-Ae),N.slice(ce,q-Ae),Ne)}}return null}(P,N,B);if(H)return H}var W=d(P,N),q=P.substring(0,W);W=c(P=P.substring(W),N=N.substring(W));var G=P.substring(P.length-W),J=function y(P,N){var B;if(!P)return[[1,N]];if(!N)return[[w,P]];var V=P.length>N.length?P:N,H=P.length>N.length?N:P,W=V.indexOf(H);if(-1!==W)return B=[[1,V.substring(0,W)],[0,H],[1,V.substring(W+H.length)]],P.length>N.length&&(B[0][0]=B[2][0]=w),B;if(1===H.length)return[[w,P],[1,N]];var q=function h(P,N){var B=P.length>N.length?P:N,V=P.length>N.length?N:P;if(B.length<4||2*V.length<B.length)return null;function H(le,ce,oe){for(var Oe,Ae,Ne,Qe,K=le.substring(oe,oe+Math.floor(le.length/4)),Q=-1,de="";-1!==(Q=ce.indexOf(K,Q+1));){var $e=d(le.substring(oe),ce.substring(Q)),_e=c(le.substring(0,oe),ce.substring(0,Q));de.length<_e+$e&&(de=ce.substring(Q-_e,Q)+ce.substring(Q,Q+$e),Oe=le.substring(0,oe-_e),Ae=le.substring(oe+$e),Ne=ce.substring(0,Q-_e),Qe=ce.substring(Q+$e))}return 2*de.length>=le.length?[Oe,Ae,Ne,Qe,de]:null}var G,J,ne,ae,ge,W=H(B,V,Math.ceil(B.length/4)),q=H(B,V,Math.ceil(B.length/2));return W||q?(G=q?W&&W[4].length>q[4].length?W:q:W,P.length>N.length?(J=G[0],ne=G[1],ae=G[2],ge=G[3]):(ae=G[0],ge=G[1],J=G[2],ne=G[3]),[J,ne,ae,ge,G[4]]):null}(P,N);if(q){var J=q[1],ae=q[3],ge=q[4],pe=C(q[0],q[2]),le=C(J,ae);return pe.concat([[0,ge]],le)}return function g(P,N){for(var B=P.length,V=N.length,H=Math.ceil((B+V)/2),W=H,q=2*H,G=new Array(q),J=new Array(q),ne=0;ne<q;ne++)G[ne]=-1,J[ne]=-1;G[W+1]=0,J[W+1]=0;for(var ae=B-V,ge=ae%2!=0,pe=0,le=0,ce=0,oe=0,K=0;K<H;K++){for(var Q=-K+pe;Q<=K-le;Q+=2){for(var de=W+Q,Ae=(Oe=Q===-K||Q!==K&&G[de-1]<G[de+1]?G[de+1]:G[de-1]+1)-Q;Oe<B&&Ae<V&&P.charAt(Oe)===N.charAt(Ae);)Oe++,Ae++;if(G[de]=Oe,Oe>B)le+=2;else if(Ae>V)pe+=2;else if(ge&&(Ne=W+ae-Q)>=0&&Ne<q&&-1!==J[Ne]&&Oe>=(Qe=B-J[Ne]))return p(P,N,Oe,Ae)}for(var $e=-K+ce;$e<=K-oe;$e+=2){for(var Qe,Ne=W+$e,_e=(Qe=$e===-K||$e!==K&&J[Ne-1]<J[Ne+1]?J[Ne+1]:J[Ne-1]+1)-$e;Qe<B&&_e<V&&P.charAt(B-Qe-1)===N.charAt(V-_e-1);)Qe++,_e++;if(J[Ne]=Qe,Qe>B)oe+=2;else if(_e>V)ce+=2;else if(!ge){var Oe;if((de=W+ae-$e)>=0&&de<q&&-1!==G[de]&&(Ae=W+(Oe=G[de])-de,Oe>=(Qe=B-Qe)))return p(P,N,Oe,Ae)}}}return[[w,P],[1,N]]}(P,N)}(P=P.substring(0,P.length-W),N=N.substring(0,N.length-W));return q&&J.unshift([0,q]),G&&J.push([0,G]),m(J,V),J}function p(P,N,B,V){var H=P.substring(0,B),W=N.substring(0,V),q=P.substring(B),G=N.substring(V),J=C(H,W),ne=C(q,G);return J.concat(ne)}function d(P,N){if(!P||!N||P.charAt(0)!==N.charAt(0))return 0;for(var B=0,V=Math.min(P.length,N.length),H=V,W=0;B<H;)P.substring(W,H)==N.substring(W,H)?W=B=H:V=H,H=Math.floor((V-B)/2+B);return v(P.charCodeAt(H-1))&&H--,H}function c(P,N){if(!P||!N||P.slice(-1)!==N.slice(-1))return 0;for(var B=0,V=Math.min(P.length,N.length),H=V,W=0;B<H;)P.substring(P.length-H,P.length-W)==N.substring(N.length-H,N.length-W)?W=B=H:V=H,H=Math.floor((V-B)/2+B);return b(P.charCodeAt(P.length-H))&&H--,H}function m(P,N){P.push([0,""]);for(var G,B=0,V=0,H=0,W="",q="";B<P.length;)if(B<P.length-1&&!P[B][1])P.splice(B,1);else switch(P[B][0]){case 1:H++,q+=P[B][1],B++;break;case w:V++,W+=P[B][1],B++;break;case 0:var J=B-H-V-1;if(N){if(J>=0&&O(P[J][1])){var ne=P[J][1].slice(-1);if(P[J][1]=P[J][1].slice(0,-1),W=ne+W,q=ne+q,!P[J][1]){P.splice(J,1),B--;var ae=J-1;P[ae]&&1===P[ae][0]&&(H++,q=P[ae][1]+q,ae--),P[ae]&&P[ae][0]===w&&(V++,W=P[ae][1]+W,ae--),J=ae}}x(P[B][1])&&(ne=P[B][1].charAt(0),P[B][1]=P[B][1].slice(1),W+=ne,q+=ne)}if(B<P.length-1&&!P[B][1]){P.splice(B,1);break}if(W.length>0||q.length>0){W.length>0&&q.length>0&&(0!==(G=d(q,W))&&(J>=0?P[J][1]+=q.substring(0,G):(P.splice(0,0,[0,q.substring(0,G)]),B++),q=q.substring(G),W=W.substring(G)),0!==(G=c(q,W))&&(P[B][1]=q.substring(q.length-G)+P[B][1],q=q.substring(0,q.length-G),W=W.substring(0,W.length-G)));var ge=H+V;0===W.length&&0===q.length?(P.splice(B-ge,ge),B-=ge):0===W.length?(P.splice(B-ge,ge,[1,q]),B=B-ge+1):0===q.length?(P.splice(B-ge,ge,[w,W]),B=B-ge+1):(P.splice(B-ge,ge,[w,W],[1,q]),B=B-ge+2)}0!==B&&0===P[B-1][0]?(P[B-1][1]+=P[B][1],P.splice(B,1)):B++,H=0,V=0,W="",q=""}""===P[P.length-1][1]&&P.pop();var pe=!1;for(B=1;B<P.length-1;)0===P[B-1][0]&&0===P[B+1][0]&&(P[B][1].substring(P[B][1].length-P[B-1][1].length)===P[B-1][1]?(P[B][1]=P[B-1][1]+P[B][1].substring(0,P[B][1].length-P[B-1][1].length),P[B+1][1]=P[B-1][1]+P[B+1][1],P.splice(B-1,1),pe=!0):P[B][1].substring(0,P[B+1][1].length)==P[B+1][1]&&(P[B-1][1]+=P[B+1][1],P[B][1]=P[B][1].substring(P[B+1][1].length)+P[B+1][1],P.splice(B+1,1),pe=!0)),B++;pe&&m(P,N)}function v(P){return P>=55296&&P<=56319}function b(P){return P>=56320&&P<=57343}function x(P){return b(P.charCodeAt(0))}function O(P){return v(P.charCodeAt(P.length-1))}function M(P,N,B,V){return O(P)||x(V)?null:function k(P){for(var N=[],B=0;B<P.length;B++)P[B][1].length>0&&N.push(P[B]);return N}([[0,P],[w,N],[1,B],[0,V]])}function F(P,N,B){return C(P,N,B,!0)}F.INSERT=1,F.DELETE=w,F.EQUAL=0,X.exports=F},function(X,D,w){"use strict";var E=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(D,"__esModule",{value:!0});var y,g,I=E(w(16)),C=E(w(30));(g=y||(y={})).compose=function p(m,v,b){void 0===m&&(m={}),void 0===v&&(v={}),"object"!=typeof m&&(m={}),"object"!=typeof v&&(v={});var x=I.default(v);for(var O in b||(x=Object.keys(x).reduce(function(k,M){return null!=x[M]&&(k[M]=x[M]),k},{})),m)void 0!==m[O]&&void 0===v[O]&&(x[O]=m[O]);return Object.keys(x).length>0?x:void 0},g.diff=function d(m,v){void 0===m&&(m={}),void 0===v&&(v={}),"object"!=typeof m&&(m={}),"object"!=typeof v&&(v={});var b=Object.keys(m).concat(Object.keys(v)).reduce(function(x,O){return C.default(m[O],v[O])||(x[O]=void 0===v[O]?null:v[O]),x},{});return Object.keys(b).length>0?b:void 0},g.invert=function c(m,v){void 0===m&&(m={}),void 0===v&&(v={}),m=m||{};var b=Object.keys(v).reduce(function(x,O){return v[O]!==m[O]&&void 0!==m[O]&&(x[O]=v[O]),x},{});return Object.keys(m).reduce(function(x,O){return m[O]!==v[O]&&void 0===v[O]&&(x[O]=null),x},b)},g.transform=function h(m,v,b){if(void 0===b&&(b=!1),"object"!=typeof m)return v;if("object"==typeof v){if(!b)return v;var x=Object.keys(v).reduce(function(O,k){return void 0===m[k]&&(O[k]=v[k]),O},{});return Object.keys(x).length>0?x:void 0}},D.default=y},function(X,D,w){"use strict";var E=this&&this.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(D,"__esModule",{value:!0});var I=E(w(94)),C=function(){function y(g){this.ops=g,this.index=0,this.offset=0}return y.prototype.hasNext=function(){return this.peekLength()<1/0},y.prototype.next=function(g){g||(g=1/0);var p=this.ops[this.index];if(p){var d=this.offset,c=I.default.length(p);if(g>=c-d?(g=c-d,this.index+=1,this.offset=0):this.offset+=g,"number"==typeof p.delete)return{delete:g};var h={};return p.attributes&&(h.attributes=p.attributes),"number"==typeof p.retain?h.retain=g:h.insert="string"==typeof p.insert?p.insert.substr(d,g):p.insert,h}return{retain:1/0}},y.prototype.peek=function(){return this.ops[this.index]},y.prototype.peekLength=function(){return this.ops[this.index]?I.default.length(this.ops[this.index])-this.offset:1/0},y.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},y.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var g=this.offset,p=this.index,d=this.next(),c=this.ops.slice(this.index);return this.offset=g,this.index=p,[d].concat(c)}return[]},y}();D.default=C},function(X,D,w){var E=w(122);X.exports=E},function(X,D,w){var E=w(123);X.exports=E},function(X,D,w){w(124),w(147);var E=w(115);X.exports=E.Array.from},function(X,D,w){"use strict";var E=w(125).charAt,I=w(78),C=w(100),y=w(133),g="String Iterator",p=C.set,d=C.getterFor(g);y(String,"String",function(c){p(this,{type:g,string:I(c),index:0})},function(){var b,h=d(this),m=h.string,v=h.index;return v>=m.length?{value:void 0,done:!0}:(b=E(m,v),h.index+=b.length,{value:b,done:!1})})},function(X,D,w){var E=w(20),I=w(77),C=w(78),y=w(69),g=E("".charAt),p=E("".charCodeAt),d=E("".slice),c=function(h){return function(m,v){var k,M,b=C(y(m)),x=I(v),O=b.length;return x<0||x>=O?h?"":void 0:(k=p(b,x))<55296||k>56319||x+1===O||(M=p(b,x+1))<56320||M>57343?h?g(b,x):k:h?d(b,x,x+2):M-56320+(k-55296<<10)+65536}};X.exports={codeAt:c(!1),charAt:c(!0)}},function(X,D,w){var C={};C[w(28)("toStringTag")]="z",X.exports="[object z]"===String(C)},function(X,D,w){var d,c,E=w(8),I=w(128),C=E.process,y=E.Deno,g=C&&C.versions||y&&y.version,p=g&&g.v8;p&&(c=(d=p.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!c&&I&&(!(d=I.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=I.match(/Chrome\/(\d+)/))&&(c=+d[1]),X.exports=c},function(X,D,w){var E=w(60);X.exports=E("navigator","userAgent")||""},function(X,D,w){var E=w(8),I=w(22),C=w(83),y=E.WeakMap;X.exports=I(y)&&/native code/.test(C(y))},function(X,D,w){var E=w(8),I=w(42),C=w(51),y=w(103),g=w(85),p=w(132),d=w(28),c=E.TypeError,h=d("toPrimitive");X.exports=function(m,v){if(!C(m)||y(m))return m;var x,b=g(m,h);if(b){if(void 0===v&&(v="default"),x=I(b,m,v),!C(x)||y(x))return x;throw c("Can't convert object to primitive value")}return void 0===v&&(v="number"),p(m,v)}},function(X,D,w){var E=w(20);X.exports=E({}.isPrototypeOf)},function(X,D,w){var E=w(8),I=w(42),C=w(22),y=w(51),g=E.TypeError;X.exports=function(p,d){var c,h;if("string"===d&&C(c=p.toString)&&!y(h=I(c,p))||C(c=p.valueOf)&&!y(h=I(c,p))||"string"!==d&&C(c=p.toString)&&!y(h=I(c,p)))return h;throw g("Can't convert object to primitive value")}},function(X,D,w){"use strict";var E=w(61),I=w(42),C=w(67),y=w(106),g=w(22),p=w(141),d=w(112),c=w(145),h=w(113),m=w(70),v=w(90),b=w(28),x=w(72),O=w(110),k=y.PROPER,M=y.CONFIGURABLE,A=O.IteratorPrototype,F=O.BUGGY_SAFARI_ITERATORS,P=b("iterator"),N="keys",B="values",V="entries",H=function(){return this};X.exports=function(W,q,G,J,ne,ae,ge){p(G,q,J);var Oe,Ae,Ne,pe=function(Qe){if(Qe===ne&&Q)return Q;if(!F&&Qe in oe)return oe[Qe];switch(Qe){case N:case B:case V:return function(){return new G(this,Qe)}}return function(){return new G(this)}},le=q+" Iterator",ce=!1,oe=W.prototype,K=oe[P]||oe["@@iterator"]||ne&&oe[ne],Q=!F&&K||pe(ne),de="Array"==q&&oe.entries||K;if(de&&(Oe=d(de.call(new W)))!==Object.prototype&&Oe.next&&(!C&&d(Oe)!==A&&(c?c(Oe,A):g(Oe[P])||v(Oe,P,H)),h(Oe,le,!0,!0),C&&(x[le]=H)),k&&ne==B&&K&&K.name!==B&&(!C&&M?m(oe,"name",B):(ce=!0,Q=function(){return I(K,this)})),ne)if(Ae={values:pe(B),keys:ae?Q:pe(N),entries:pe(V)},ge)for(Ne in Ae)(F||ce||!(Ne in oe))&&v(oe,Ne,Ae[Ne]);else E({target:q,proto:!0,forced:F||ce},Ae);return(!C||ge)&&oe[P]!==Q&&v(oe,P,Q,{name:ne}),x[q]=Q,Ae}},function(X,D,w){var E=w(8),I=w(20),C=w(39),y=w(82),g=E.Object,p=I("".split);X.exports=C(function(){return!g("z").propertyIsEnumerable(0)})?function(d){return"String"==y(d)?p(d,""):g(d)}:g},function(X,D,w){var E=w(36),I=w(136),C=w(89),y=w(52);X.exports=function(g,p){for(var d=I(p),c=y.f,h=C.f,m=0;m<d.length;m++){var v=d[m];E(g,v)||c(g,v,h(p,v))}}},function(X,D,w){var E=w(60),I=w(20),C=w(137),y=w(139),g=w(40),p=I([].concat);X.exports=E("Reflect","ownKeys")||function(c){var h=C.f(g(c)),m=y.f;return m?p(h,m(c)):h}},function(X,D,w){var E=w(107),C=w(92).concat("length","prototype");D.f=Object.getOwnPropertyNames||function(g){return E(g,C)}},function(X,D,w){var E=w(62),I=w(108),C=w(91),y=function(g){return function(p,d,c){var b,h=E(p),m=C(h),v=I(c,m);if(g&&d!=d){for(;m>v;)if((b=h[v++])!=b)return!0}else for(;m>v;v++)if((g||v in h)&&h[v]===d)return g||v||0;return!g&&-1}};X.exports={includes:y(!0),indexOf:y(!1)}},function(X,D){D.f=Object.getOwnPropertySymbols},function(X,D,w){var E=w(39),I=w(22),C=/#|\.prototype\./,y=function(h,m){var v=p[g(h)];return v==c||v!=d&&(I(m)?E(m):!!m)},g=y.normalize=function(h){return String(h).replace(C,".").toLowerCase()},p=y.data={},d=y.NATIVE="N",c=y.POLYFILL="P";X.exports=y},function(X,D,w){"use strict";var E=w(110).IteratorPrototype,I=w(93),C=w(71),y=w(113),g=w(72),p=function(){return this};X.exports=function(d,c,h){var m=c+" Iterator";return d.prototype=I(E,{next:C(1,h)}),y(d,m,!1,!0),g[m]=p,d}},function(X,D,w){var E=w(41),I=w(52),C=w(40),y=w(62),g=w(111);X.exports=E?Object.defineProperties:function(d,c){C(d);for(var x,h=y(c),m=g(c),v=m.length,b=0;v>b;)I.f(d,x=m[b++],h[x]);return d}},function(X,D,w){var E=w(60);X.exports=E("document","documentElement")},function(X,D,w){var E=w(39);X.exports=!E(function(){function I(){}return I.prototype.constructor=null,Object.getPrototypeOf(new I)!==I.prototype})},function(X,D,w){var E=w(20),I=w(40),C=w(146);X.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p,y=!1,g={};try{(p=E(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(g,[]),y=g instanceof Array}catch{}return function(c,h){return I(c),C(h),y?p(c,h):c.__proto__=h,c}}():void 0)},function(X,D,w){var E=w(8),I=w(22),C=E.String,y=E.TypeError;X.exports=function(g){if("object"==typeof g||I(g))return g;throw y("Can't set "+C(g)+" as a prototype")}},function(X,D,w){var E=w(61),I=w(148);E({target:"Array",stat:!0,forced:!w(156)(function(g){Array.from(g)})},{from:I})},function(X,D,w){"use strict";var E=w(8),I=w(149),C=w(42),y=w(68),g=w(150),p=w(152),d=w(153),c=w(91),h=w(154),m=w(155),v=w(114),b=E.Array;X.exports=function(O){var k=y(O),M=d(this),A=arguments.length,F=A>1?arguments[1]:void 0,P=void 0!==F;P&&(F=I(F,A>2?arguments[2]:void 0));var V,H,W,q,G,J,N=v(k),B=0;if(!N||this==b&&p(N))for(V=c(k),H=M?new this(V):b(V);V>B;B++)J=P?F(k[B],B):k[B],h(H,B,J);else for(G=(q=m(k,N)).next,H=M?new this:[];!(W=C(G,q)).done;B++)J=P?g(q,F,[W.value,B],!0):W.value,h(H,B,J);return H.length=B,H}},function(X,D,w){var E=w(20),I=w(86),C=E(E.bind);X.exports=function(y,g){return I(y),void 0===g?y:C?C(y,g):function(){return y.apply(g,arguments)}}},function(X,D,w){var E=w(40),I=w(151);X.exports=function(C,y,g,p){try{return p?y(E(g)[0],g[1]):y(g)}catch(d){I(C,"throw",d)}}},function(X,D,w){var E=w(42),I=w(40),C=w(85);X.exports=function(y,g,p){var d,c;I(y);try{if(!(d=C(y,"return"))){if("throw"===g)throw p;return p}d=E(d,y)}catch(h){c=!0,d=h}if("throw"===g)throw p;if(c)throw d;return I(d),p}},function(X,D,w){var E=w(28),I=w(72),C=E("iterator"),y=Array.prototype;X.exports=function(g){return void 0!==g&&(I.Array===g||y[C]===g)}},function(X,D,w){var E=w(20),I=w(39),C=w(22),y=w(79),g=w(60),p=w(83),d=function(){},c=[],h=g("Reflect","construct"),m=/^\s*(?:class|function)\b/,v=E(m.exec),b=!m.exec(d),x=function(k){if(!C(k))return!1;try{return h(d,c,k),!0}catch{return!1}};X.exports=!h||I(function(){var k;return x(x.call)||!x(Object)||!x(function(){k=!0})||k})?function(k){if(!C(k))return!1;switch(y(k)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return b||!!v(m,p(k))}:x},function(X,D,w){"use strict";var E=w(84),I=w(52),C=w(71);X.exports=function(y,g,p){var d=E(g);d in y?I.f(y,d,C(0,p)):y[d]=p}},function(X,D,w){var E=w(8),I=w(42),C=w(86),y=w(40),g=w(104),p=w(114),d=E.TypeError;X.exports=function(c,h){var m=arguments.length<2?p(c):h;if(C(m))return y(I(m,c));throw d(g(c)+" is not iterable")}},function(X,D,w){var I=w(28)("iterator"),C=!1;try{var y=0,g={next:function(){return{done:!!y++}},return:function(){C=!0}};g[I]=function(){return this},Array.from(g,function(){throw 2})}catch{}X.exports=function(p,d){if(!d&&!C)return!1;var c=!1;try{var h={};h[I]=function(){return{next:function(){return{done:c=!0}}}},p(h)}catch{}return c}},function(X,D,w){var E=w(158);X.exports=E},function(X,D,w){var E=w(159);X.exports=E},function(X,D,w){w(160);var E=w(116);X.exports=E("Array","fill")},function(X,D,w){var E=w(61),I=w(161),C=w(162);E({target:"Array",proto:!0},{fill:I}),C("fill")},function(X,D,w){"use strict";var E=w(68),I=w(108),C=w(91);X.exports=function(g){for(var p=E(this),d=C(p),c=arguments.length,h=I(c>1?arguments[1]:void 0,d),m=c>2?arguments[2]:void 0,v=void 0===m?d:I(m,d);v>h;)p[h++]=g;return p}},function(X,D,w){var E=w(28),I=w(93),C=w(52),y=E("unscopables"),g=Array.prototype;null==g[y]&&C.f(g,y,{configurable:!0,value:I(null)}),X.exports=function(p){g[y][p]=!0}},function(X,D,w){var E=w(164);X.exports=E},function(X,D,w){var E=w(165);X.exports=E},function(X,D,w){w(166);var E=w(115);X.exports=E.Object.values},function(X,D,w){var E=w(61),I=w(167).values;E({target:"Object",stat:!0},{values:function(y){return I(y)}})},function(X,D,w){var E=w(41),I=w(20),C=w(111),y=w(62),p=I(w(105).f),d=I([].push),c=function(h){return function(m){for(var M,v=y(m),b=C(v),x=b.length,O=0,k=[];x>O;)M=b[O++],(!E||p(v,M))&&d(k,h?[M,v[M]]:v[M]);return k}};X.exports={entries:c(!0),values:c(!1)}},function(X,D,w){var E=w(169);X.exports=E},function(X,D,w){var E=w(170);X.exports=E},function(X,D,w){w(171);var E=w(116);X.exports=E("String","endsWith")},function(X,D,w){"use strict";var k,E=w(61),I=w(20),C=w(89).f,y=w(109),g=w(78),p=w(172),d=w(69),c=w(174),h=w(67),m=I("".endsWith),v=I("".slice),b=Math.min,x=c("endsWith");E({target:"String",proto:!0,forced:!(!h&&!x&&(k=C(String.prototype,"endsWith"),k&&!k.writable)||x)},{endsWith:function(M){var A=g(d(this));p(M);var F=arguments.length>1?arguments[1]:void 0,P=A.length,N=void 0===F?P:b(y(F),P),B=g(M);return m?m(A,B,N):v(A,N-B.length,N)===B}})},function(X,D,w){var E=w(8),I=w(173),C=E.TypeError;X.exports=function(y){if(I(y))throw C("The method doesn't accept regular expressions");return y}},function(X,D,w){var E=w(51),I=w(82),y=w(28)("match");X.exports=function(g){var p;return E(g)&&(void 0!==(p=g[y])?!!p:"RegExp"==I(g))}},function(X,D,w){var I=w(28)("match");X.exports=function(C){var y=/./;try{"/./"[C](y)}catch{try{return y[I]=!1,"/./"[C](y)}catch{}}return!1}},,function(X,D,w){X.exports=w(117)}]).default},524:(fu,X,D)=>{var w;!function(E,I,C,y){"use strict";var k,g=["","webkit","Moz","MS","ms","o"],p=I.createElement("div"),c=Math.round,h=Math.abs,m=Date.now;function v(Xe,lt,Et){return setTimeout(P(Xe,Et),lt)}function b(Xe,lt,Et){return!!Array.isArray(Xe)&&(x(Xe,Et[lt],Et),!0)}function x(Xe,lt,Et){var Jt;if(Xe)if(Xe.forEach)Xe.forEach(lt,Et);else if(Xe.length!==y)for(Jt=0;Jt<Xe.length;)lt.call(Et,Xe[Jt],Jt,Xe),Jt++;else for(Jt in Xe)Xe.hasOwnProperty(Jt)&&lt.call(Et,Xe[Jt],Jt,Xe)}function O(Xe,lt,Et){var Jt="DEPRECATED METHOD: "+lt+"\n"+Et+" AT \n";return function(){var dn=new Error("get-stack-trace"),gi=dn&&dn.stack?dn.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ir=E.console&&(E.console.warn||E.console.log);return ir&&ir.call(E.console,Jt,gi),Xe.apply(this,arguments)}}k="function"!=typeof Object.assign?function(lt){if(lt===y||null===lt)throw new TypeError("Cannot convert undefined or null to object");for(var Et=Object(lt),Jt=1;Jt<arguments.length;Jt++){var dn=arguments[Jt];if(dn!==y&&null!==dn)for(var gi in dn)dn.hasOwnProperty(gi)&&(Et[gi]=dn[gi])}return Et}:Object.assign;var M=O(function(lt,Et,Jt){for(var dn=Object.keys(Et),gi=0;gi<dn.length;)(!Jt||Jt&&lt[dn[gi]]===y)&&(lt[dn[gi]]=Et[dn[gi]]),gi++;return lt},"extend","Use `assign`."),A=O(function(lt,Et){return M(lt,Et,!0)},"merge","Use `assign`.");function F(Xe,lt,Et){var dn,Jt=lt.prototype;(dn=Xe.prototype=Object.create(Jt)).constructor=Xe,dn._super=Jt,Et&&k(dn,Et)}function P(Xe,lt){return function(){return Xe.apply(lt,arguments)}}function N(Xe,lt){return"function"==typeof Xe?Xe.apply(lt&&lt[0]||y,lt):Xe}function B(Xe,lt){return Xe===y?lt:Xe}function V(Xe,lt,Et){x(G(lt),function(Jt){Xe.addEventListener(Jt,Et,!1)})}function H(Xe,lt,Et){x(G(lt),function(Jt){Xe.removeEventListener(Jt,Et,!1)})}function W(Xe,lt){for(;Xe;){if(Xe==lt)return!0;Xe=Xe.parentNode}return!1}function q(Xe,lt){return Xe.indexOf(lt)>-1}function G(Xe){return Xe.trim().split(/\s+/g)}function J(Xe,lt,Et){if(Xe.indexOf&&!Et)return Xe.indexOf(lt);for(var Jt=0;Jt<Xe.length;){if(Et&&Xe[Jt][Et]==lt||!Et&&Xe[Jt]===lt)return Jt;Jt++}return-1}function ne(Xe){return Array.prototype.slice.call(Xe,0)}function ae(Xe,lt,Et){for(var Jt=[],dn=[],gi=0;gi<Xe.length;){var ir=lt?Xe[gi][lt]:Xe[gi];J(dn,ir)<0&&Jt.push(Xe[gi]),dn[gi]=ir,gi++}return Et&&(Jt=lt?Jt.sort(function(Ho,ia){return Ho[lt]>ia[lt]}):Jt.sort()),Jt}function ge(Xe,lt){for(var Et,Jt,dn=lt[0].toUpperCase()+lt.slice(1),gi=0;gi<g.length;){if((Jt=(Et=g[gi])?Et+dn:lt)in Xe)return Jt;gi++}return y}var pe=1;function ce(Xe){var lt=Xe.ownerDocument||Xe;return lt.defaultView||lt.parentWindow||E}var K="ontouchstart"in E,Q=ge(E,"PointerEvent")!==y,de=K&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Oe="touch",Ne="mouse",Me=["x","y"],Ue=["clientX","clientY"];function st(Xe,lt){var Et=this;this.manager=Xe,this.callback=lt,this.element=Xe.element,this.target=Xe.options.inputTarget,this.domHandler=function(Jt){N(Xe.options.enable,[Xe])&&Et.handler(Jt)},this.init()}function ln(Xe,lt,Et){var Jt=Et.pointers.length,dn=Et.changedPointers.length,gi=1&lt&&Jt-dn==0,ir=12&lt&&Jt-dn==0;Et.isFirst=!!gi,Et.isFinal=!!ir,gi&&(Xe.session={}),Et.eventType=lt,function Mn(Xe,lt){var Et=Xe.session,Jt=lt.pointers,dn=Jt.length;Et.firstInput||(Et.firstInput=Ye(lt)),dn>1&&!Et.firstMultiple?Et.firstMultiple=Ye(lt):1===dn&&(Et.firstMultiple=!1);var gi=Et.firstInput,ir=Et.firstMultiple,Mo=ir?ir.center:gi.center,Ho=lt.center=ft(Jt);lt.timeStamp=m(),lt.deltaTime=lt.timeStamp-gi.timeStamp,lt.angle=Bn(Mo,Ho),lt.distance=sn(Mo,Ho),function ri(Xe,lt){var Et=lt.center,Jt=Xe.offsetDelta||{},dn=Xe.prevDelta||{},gi=Xe.prevInput||{};(1===lt.eventType||4===gi.eventType)&&(dn=Xe.prevDelta={x:gi.deltaX||0,y:gi.deltaY||0},Jt=Xe.offsetDelta={x:Et.x,y:Et.y}),lt.deltaX=dn.x+(Et.x-Jt.x),lt.deltaY=dn.y+(Et.y-Jt.y)}(Et,lt),lt.offsetDirection=an(lt.deltaX,lt.deltaY);var ia=jt(lt.deltaTime,lt.deltaX,lt.deltaY);lt.overallVelocityX=ia.x,lt.overallVelocityY=ia.y,lt.overallVelocity=h(ia.x)>h(ia.y)?ia.x:ia.y,lt.scale=ir?function ai(Xe,lt){return sn(lt[0],lt[1],Ue)/sn(Xe[0],Xe[1],Ue)}(ir.pointers,Jt):1,lt.rotation=ir?function xn(Xe,lt){return Bn(lt[1],lt[0],Ue)+Bn(Xe[1],Xe[0],Ue)}(ir.pointers,Jt):0,lt.maxPointers=Et.prevInput?lt.pointers.length>Et.prevInput.maxPointers?lt.pointers.length:Et.prevInput.maxPointers:lt.pointers.length,function lr(Xe,lt){var dn,gi,ir,Mo,Et=Xe.lastInterval||lt,Jt=lt.timeStamp-Et.timeStamp;if(8!=lt.eventType&&(Jt>25||Et.velocity===y)){var Ho=lt.deltaX-Et.deltaX,ia=lt.deltaY-Et.deltaY,Ya=jt(Jt,Ho,ia);gi=Ya.x,ir=Ya.y,dn=h(Ya.x)>h(Ya.y)?Ya.x:Ya.y,Mo=an(Ho,ia),Xe.lastInterval=lt}else dn=Et.velocity,gi=Et.velocityX,ir=Et.velocityY,Mo=Et.direction;lt.velocity=dn,lt.velocityX=gi,lt.velocityY=ir,lt.direction=Mo}(Et,lt);var Ya=Xe.element;W(lt.srcEvent.target,Ya)&&(Ya=lt.srcEvent.target),lt.target=Ya}(Xe,Et),Xe.emit("hammer.input",Et),Xe.recognize(Et),Xe.session.prevInput=Et}function Ye(Xe){for(var lt=[],Et=0;Et<Xe.pointers.length;)lt[Et]={clientX:c(Xe.pointers[Et].clientX),clientY:c(Xe.pointers[Et].clientY)},Et++;return{timeStamp:m(),pointers:lt,center:ft(lt),deltaX:Xe.deltaX,deltaY:Xe.deltaY}}function ft(Xe){var lt=Xe.length;if(1===lt)return{x:c(Xe[0].clientX),y:c(Xe[0].clientY)};for(var Et=0,Jt=0,dn=0;dn<lt;)Et+=Xe[dn].clientX,Jt+=Xe[dn].clientY,dn++;return{x:c(Et/lt),y:c(Jt/lt)}}function jt(Xe,lt,Et){return{x:lt/Xe||0,y:Et/Xe||0}}function an(Xe,lt){return Xe===lt?1:h(Xe)>=h(lt)?Xe<0?2:4:lt<0?8:16}function sn(Xe,lt,Et){Et||(Et=Me);var Jt=lt[Et[0]]-Xe[Et[0]],dn=lt[Et[1]]-Xe[Et[1]];return Math.sqrt(Jt*Jt+dn*dn)}function Bn(Xe,lt,Et){return Et||(Et=Me),180*Math.atan2(lt[Et[1]]-Xe[Et[1]],lt[Et[0]]-Xe[Et[0]])/Math.PI}st.prototype={handler:function(){},init:function(){this.evEl&&V(this.element,this.evEl,this.domHandler),this.evTarget&&V(this.target,this.evTarget,this.domHandler),this.evWin&&V(ce(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&H(this.element,this.evEl,this.domHandler),this.evTarget&&H(this.target,this.evTarget,this.domHandler),this.evWin&&H(ce(this.element),this.evWin,this.domHandler)}};var yi={mousedown:1,mousemove:2,mouseup:4},Xi="mousedown",Vr="mousemove mouseup";function Ar(){this.evEl=Xi,this.evWin=Vr,this.pressed=!1,st.apply(this,arguments)}F(Ar,st,{handler:function(lt){var Et=yi[lt.type];1&Et&&0===lt.button&&(this.pressed=!0),2&Et&&1!==lt.which&&(Et=4),this.pressed&&(4&Et&&(this.pressed=!1),this.callback(this.manager,Et,{pointers:[lt],changedPointers:[lt],pointerType:Ne,srcEvent:lt}))}});var ko={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Ht={2:Oe,3:"pen",4:Ne,5:"kinect"},en="pointerdown",Gt="pointermove pointerup pointercancel";function ht(){this.evEl=en,this.evWin=Gt,st.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}E.MSPointerEvent&&!E.PointerEvent&&(en="MSPointerDown",Gt="MSPointerMove MSPointerUp MSPointerCancel"),F(ht,st,{handler:function(lt){var Et=this.store,Jt=!1,dn=lt.type.toLowerCase().replace("ms",""),gi=ko[dn],ir=Ht[lt.pointerType]||lt.pointerType,Mo=ir==Oe,Ho=J(Et,lt.pointerId,"pointerId");1&gi&&(0===lt.button||Mo)?Ho<0&&(Et.push(lt),Ho=Et.length-1):12&gi&&(Jt=!0),!(Ho<0)&&(Et[Ho]=lt,this.callback(this.manager,gi,{pointers:Et,changedPointers:[lt],pointerType:ir,srcEvent:lt}),Jt&&Et.splice(Ho,1))}});var ut={touchstart:1,touchmove:2,touchend:4,touchcancel:8},tt="touchstart",xt="touchstart touchmove touchend touchcancel";function _t(){this.evTarget=tt,this.evWin=xt,this.started=!1,st.apply(this,arguments)}function Mt(Xe,lt){var Et=ne(Xe.touches),Jt=ne(Xe.changedTouches);return 12&lt&&(Et=ae(Et.concat(Jt),"identifier",!0)),[Et,Jt]}F(_t,st,{handler:function(lt){var Et=ut[lt.type];if(1===Et&&(this.started=!0),this.started){var Jt=Mt.call(this,lt,Et);12&Et&&Jt[0].length-Jt[1].length==0&&(this.started=!1),this.callback(this.manager,Et,{pointers:Jt[0],changedPointers:Jt[1],pointerType:Oe,srcEvent:lt})}}});var At={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Ut="touchstart touchmove touchend touchcancel";function En(){this.evTarget=Ut,this.targetIds={},st.apply(this,arguments)}function ui(Xe,lt){var Et=ne(Xe.touches),Jt=this.targetIds;if(3&lt&&1===Et.length)return Jt[Et[0].identifier]=!0,[Et,Et];var dn,gi,ir=ne(Xe.changedTouches),Mo=[],Ho=this.target;if(gi=Et.filter(function(ia){return W(ia.target,Ho)}),1===lt)for(dn=0;dn<gi.length;)Jt[gi[dn].identifier]=!0,dn++;for(dn=0;dn<ir.length;)Jt[ir[dn].identifier]&&Mo.push(ir[dn]),12&lt&&delete Jt[ir[dn].identifier],dn++;return Mo.length?[ae(gi.concat(Mo),"identifier",!0),Mo]:void 0}function Dn(){st.apply(this,arguments);var Xe=P(this.handler,this);this.touch=new En(this.manager,Xe),this.mouse=new Ar(this.manager,Xe),this.primaryTouch=null,this.lastTouches=[]}function Yo(Xe,lt){1&Xe?(this.primaryTouch=lt.changedPointers[0].identifier,pi.call(this,lt)):12&Xe&&pi.call(this,lt)}function pi(Xe){var lt=Xe.changedPointers[0];if(lt.identifier===this.primaryTouch){var Et={x:lt.clientX,y:lt.clientY};this.lastTouches.push(Et);var Jt=this.lastTouches;setTimeout(function(){var gi=Jt.indexOf(Et);gi>-1&&Jt.splice(gi,1)},2500)}}function br(Xe){for(var lt=Xe.srcEvent.clientX,Et=Xe.srcEvent.clientY,Jt=0;Jt<this.lastTouches.length;Jt++){var dn=this.lastTouches[Jt],gi=Math.abs(lt-dn.x),ir=Math.abs(Et-dn.y);if(gi<=25&&ir<=25)return!0}return!1}F(En,st,{handler:function(lt){var Et=At[lt.type],Jt=ui.call(this,lt,Et);Jt&&this.callback(this.manager,Et,{pointers:Jt[0],changedPointers:Jt[1],pointerType:Oe,srcEvent:lt})}}),F(Dn,st,{handler:function(lt,Et,Jt){var gi=Jt.pointerType==Ne;if(!(gi&&Jt.sourceCapabilities&&Jt.sourceCapabilities.firesTouchEvents)){if(Jt.pointerType==Oe)Yo.call(this,Et,Jt);else if(gi&&br.call(this,Jt))return;this.callback(lt,Et,Jt)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var _l=ge(p.style,"touchAction"),Ju=_l!==y,Kl="compute",Rr="manipulation",Ys="none",Qu="pan-x",Nd="pan-y",qa=function Xc(){if(!Ju)return!1;var Xe={},lt=E.CSS&&E.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(Et){Xe[Et]=!lt||E.CSS.supports("touch-action",Et)}),Xe}();function Zc(Xe,lt){this.manager=Xe,this.set(lt)}function ua(Xe){this.options=k({},this.defaults,Xe||{}),this.id=function le(){return pe++}(),this.manager=null,this.options.enable=B(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function dc(Xe){return 16&Xe?"cancel":8&Xe?"end":4&Xe?"move":2&Xe?"start":""}function Jc(Xe){return 16==Xe?"down":8==Xe?"up":2==Xe?"left":4==Xe?"right":""}function Hn(Xe,lt){var Et=lt.manager;return Et?Et.get(Xe):Xe}function ks(){ua.apply(this,arguments)}function Je(){ks.apply(this,arguments),this.pX=null,this.pY=null}function yl(){ks.apply(this,arguments)}function mu(){ua.apply(this,arguments),this._timer=null,this._input=null}function _u(){ks.apply(this,arguments)}function Cl(){ks.apply(this,arguments)}function bl(){ua.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Xs(Xe,lt){return(lt=lt||{}).recognizers=B(lt.recognizers,Xs.defaults.preset),new Js(Xe,lt)}function Js(Xe,lt){this.options=k({},Xs.defaults,lt||{}),this.options.inputTarget=this.options.inputTarget||Xe,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=Xe,this.input=function Lt(Xe){return new(Xe.options.inputClass||(Q?ht:de?En:K?Dn:Ar))(Xe,ln)}(this),this.touchAction=new Zc(this,this.options.touchAction),Qc(this,!0),x(this.options.recognizers,function(Et){var Jt=this.add(new Et[0](Et[1]));Et[2]&&Jt.recognizeWith(Et[2]),Et[3]&&Jt.requireFailure(Et[3])},this)}function Qc(Xe,lt){var Jt,Et=Xe.element;Et.style&&(x(Xe.options.cssProps,function(dn,gi){Jt=ge(Et.style,gi),lt?(Xe.oldCssProps[Jt]=Et.style[Jt],Et.style[Jt]=dn):Et.style[Jt]=Xe.oldCssProps[Jt]||""}),lt||(Xe.oldCssProps={}))}Zc.prototype={set:function(Xe){Xe==Kl&&(Xe=this.compute()),Ju&&this.manager.element.style&&qa[Xe]&&(this.manager.element.style[_l]=Xe),this.actions=Xe.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var Xe=[];return x(this.manager.recognizers,function(lt){N(lt.options.enable,[lt])&&(Xe=Xe.concat(lt.getTouchAction()))}),function Cs(Xe){if(q(Xe,Ys))return Ys;var lt=q(Xe,Qu),Et=q(Xe,Nd);return lt&&Et?Ys:lt||Et?lt?Qu:Nd:q(Xe,Rr)?Rr:"auto"}(Xe.join(" "))},preventDefaults:function(Xe){var lt=Xe.srcEvent,Et=Xe.offsetDirection;if(!this.manager.session.prevented){var Jt=this.actions,dn=q(Jt,Ys)&&!qa[Ys],gi=q(Jt,Nd)&&!qa[Nd],ir=q(Jt,Qu)&&!qa[Qu];if(dn&&1===Xe.pointers.length&&Xe.distance<2&&Xe.deltaTime<250)return;return ir&&gi||!(dn||gi&&6&Et||ir&&24&Et)?void 0:this.preventSrc(lt)}lt.preventDefault()},preventSrc:function(Xe){this.manager.session.prevented=!0,Xe.preventDefault()}},ua.prototype={defaults:{},set:function(Xe){return k(this.options,Xe),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(Xe){if(b(Xe,"recognizeWith",this))return this;var lt=this.simultaneous;return lt[(Xe=Hn(Xe,this)).id]||(lt[Xe.id]=Xe,Xe.recognizeWith(this)),this},dropRecognizeWith:function(Xe){return b(Xe,"dropRecognizeWith",this)||(Xe=Hn(Xe,this),delete this.simultaneous[Xe.id]),this},requireFailure:function(Xe){if(b(Xe,"requireFailure",this))return this;var lt=this.requireFail;return-1===J(lt,Xe=Hn(Xe,this))&&(lt.push(Xe),Xe.requireFailure(this)),this},dropRequireFailure:function(Xe){if(b(Xe,"dropRequireFailure",this))return this;Xe=Hn(Xe,this);var lt=J(this.requireFail,Xe);return lt>-1&&this.requireFail.splice(lt,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(Xe){return!!this.simultaneous[Xe.id]},emit:function(Xe){var lt=this,Et=this.state;function Jt(dn){lt.manager.emit(dn,Xe)}Et<8&&Jt(lt.options.event+dc(Et)),Jt(lt.options.event),Xe.additionalEvent&&Jt(Xe.additionalEvent),Et>=8&&Jt(lt.options.event+dc(Et))},tryEmit:function(Xe){if(this.canEmit())return this.emit(Xe);this.state=32},canEmit:function(){for(var Xe=0;Xe<this.requireFail.length;){if(!(33&this.requireFail[Xe].state))return!1;Xe++}return!0},recognize:function(Xe){var lt=k({},Xe);if(!N(this.options.enable,[this,lt]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(lt),30&this.state&&this.tryEmit(lt)},process:function(Xe){},getTouchAction:function(){},reset:function(){}},F(ks,ua,{defaults:{pointers:1},attrTest:function(Xe){var lt=this.options.pointers;return 0===lt||Xe.pointers.length===lt},process:function(Xe){var lt=this.state,Et=Xe.eventType,Jt=6&lt,dn=this.attrTest(Xe);return Jt&&(8&Et||!dn)?16|lt:Jt||dn?4&Et?8|lt:2&lt?4|lt:2:32}}),F(Je,ks,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Xe=this.options.direction,lt=[];return 6&Xe&&lt.push(Nd),24&Xe&&lt.push(Qu),lt},directionTest:function(Xe){var lt=this.options,Et=!0,Jt=Xe.distance,dn=Xe.direction,gi=Xe.deltaX,ir=Xe.deltaY;return dn&lt.direction||(6&lt.direction?(dn=0===gi?1:gi<0?2:4,Et=gi!=this.pX,Jt=Math.abs(Xe.deltaX)):(dn=0===ir?1:ir<0?8:16,Et=ir!=this.pY,Jt=Math.abs(Xe.deltaY))),Xe.direction=dn,Et&&Jt>lt.threshold&&dn&lt.direction},attrTest:function(Xe){return ks.prototype.attrTest.call(this,Xe)&&(2&this.state||!(2&this.state)&&this.directionTest(Xe))},emit:function(Xe){this.pX=Xe.deltaX,this.pY=Xe.deltaY;var lt=Jc(Xe.direction);lt&&(Xe.additionalEvent=this.options.event+lt),this._super.emit.call(this,Xe)}}),F(yl,ks,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ys]},attrTest:function(Xe){return this._super.attrTest.call(this,Xe)&&(Math.abs(Xe.scale-1)>this.options.threshold||2&this.state)},emit:function(Xe){1!==Xe.scale&&(Xe.additionalEvent=this.options.event+(Xe.scale<1?"in":"out")),this._super.emit.call(this,Xe)}}),F(mu,ua,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(Xe){var lt=this.options,Et=Xe.pointers.length===lt.pointers,Jt=Xe.distance<lt.threshold,dn=Xe.deltaTime>lt.time;if(this._input=Xe,!Jt||!Et||12&Xe.eventType&&!dn)this.reset();else if(1&Xe.eventType)this.reset(),this._timer=v(function(){this.state=8,this.tryEmit()},lt.time,this);else if(4&Xe.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(Xe){8===this.state&&(Xe&&4&Xe.eventType?this.manager.emit(this.options.event+"up",Xe):(this._input.timeStamp=m(),this.manager.emit(this.options.event,this._input)))}}),F(_u,ks,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ys]},attrTest:function(Xe){return this._super.attrTest.call(this,Xe)&&(Math.abs(Xe.rotation)>this.options.threshold||2&this.state)}}),F(Cl,ks,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Je.prototype.getTouchAction.call(this)},attrTest:function(Xe){var Et,lt=this.options.direction;return 30&lt?Et=Xe.overallVelocity:6&lt?Et=Xe.overallVelocityX:24&lt&&(Et=Xe.overallVelocityY),this._super.attrTest.call(this,Xe)&&lt&Xe.offsetDirection&&Xe.distance>this.options.threshold&&Xe.maxPointers==this.options.pointers&&h(Et)>this.options.velocity&&4&Xe.eventType},emit:function(Xe){var lt=Jc(Xe.offsetDirection);lt&&this.manager.emit(this.options.event+lt,Xe),this.manager.emit(this.options.event,Xe)}}),F(bl,ua,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Rr]},process:function(Xe){var lt=this.options,Et=Xe.pointers.length===lt.pointers,Jt=Xe.distance<lt.threshold,dn=Xe.deltaTime<lt.time;if(this.reset(),1&Xe.eventType&&0===this.count)return this.failTimeout();if(Jt&&dn&&Et){if(4!=Xe.eventType)return this.failTimeout();var gi=!this.pTime||Xe.timeStamp-this.pTime<lt.interval,ir=!this.pCenter||sn(this.pCenter,Xe.center)<lt.posThreshold;if(this.pTime=Xe.timeStamp,this.pCenter=Xe.center,ir&&gi?this.count+=1:this.count=1,this._input=Xe,0==this.count%lt.taps)return this.hasRequireFailures()?(this._timer=v(function(){this.state=8,this.tryEmit()},lt.interval,this),2):8}return 32},failTimeout:function(){return this._timer=v(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Xs.VERSION="2.0.7",Xs.defaults={domEvents:!1,touchAction:Kl,enable:!0,inputTarget:null,inputClass:null,preset:[[_u,{enable:!1}],[yl,{enable:!1},["rotate"]],[Cl,{direction:6}],[Je,{direction:6},["swipe"]],[bl],[bl,{event:"doubletap",taps:2},["tap"]],[mu]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Js.prototype={set:function(Xe){return k(this.options,Xe),Xe.touchAction&&this.touchAction.update(),Xe.inputTarget&&(this.input.destroy(),this.input.target=Xe.inputTarget,this.input.init()),this},stop:function(Xe){this.session.stopped=Xe?2:1},recognize:function(Xe){var lt=this.session;if(!lt.stopped){this.touchAction.preventDefaults(Xe);var Et,Jt=this.recognizers,dn=lt.curRecognizer;(!dn||dn&&8&dn.state)&&(dn=lt.curRecognizer=null);for(var gi=0;gi<Jt.length;)Et=Jt[gi],2===lt.stopped||dn&&Et!=dn&&!Et.canRecognizeWith(dn)?Et.reset():Et.recognize(Xe),!dn&&14&Et.state&&(dn=lt.curRecognizer=Et),gi++}},get:function(Xe){if(Xe instanceof ua)return Xe;for(var lt=this.recognizers,Et=0;Et<lt.length;Et++)if(lt[Et].options.event==Xe)return lt[Et];return null},add:function(Xe){if(b(Xe,"add",this))return this;var lt=this.get(Xe.options.event);return lt&&this.remove(lt),this.recognizers.push(Xe),Xe.manager=this,this.touchAction.update(),Xe},remove:function(Xe){if(b(Xe,"remove",this))return this;if(Xe=this.get(Xe)){var lt=this.recognizers,Et=J(lt,Xe);-1!==Et&&(lt.splice(Et,1),this.touchAction.update())}return this},on:function(Xe,lt){if(Xe!==y&&lt!==y){var Et=this.handlers;return x(G(Xe),function(Jt){Et[Jt]=Et[Jt]||[],Et[Jt].push(lt)}),this}},off:function(Xe,lt){if(Xe!==y){var Et=this.handlers;return x(G(Xe),function(Jt){lt?Et[Jt]&&Et[Jt].splice(J(Et[Jt],lt),1):delete Et[Jt]}),this}},emit:function(Xe,lt){this.options.domEvents&&function Ui(Xe,lt){var Et=I.createEvent("Event");Et.initEvent(Xe,!0,!0),Et.gesture=lt,lt.target.dispatchEvent(Et)}(Xe,lt);var Et=this.handlers[Xe]&&this.handlers[Xe].slice();if(Et&&Et.length){lt.type=Xe,lt.preventDefault=function(){lt.srcEvent.preventDefault()};for(var Jt=0;Jt<Et.length;)Et[Jt](lt),Jt++}},destroy:function(){this.element&&Qc(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},k(Xs,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Js,Input:st,TouchAction:Zc,TouchInput:En,MouseInput:Ar,PointerEventInput:ht,TouchMouseInput:Dn,SingleTouchInput:_t,Recognizer:ua,AttrRecognizer:ks,Tap:bl,Pan:Je,Swipe:Cl,Pinch:yl,Rotate:_u,Press:mu,on:V,off:H,each:x,merge:A,extend:M,assign:k,inherit:F,bindFn:P,prefixed:ge}),(typeof E<"u"?E:typeof self<"u"?self:{}).Hammer=Xs,(w=function(){return Xs}.call(X,D,X,fu))!==y&&(fu.exports=w)}(window,document)},586:fu=>{fu.exports=function X(D,w,E){function I(g,p){if(!w[g]){if(!D[g]){if(C)return C(g,!0);var c=new Error("Cannot find module '"+g+"'");throw c.code="MODULE_NOT_FOUND",c}var h=w[g]={exports:{}};D[g][0].call(h.exports,function(m){return I(D[g][1][m]||m)},h,h.exports,X,D,w,E)}return w[g].exports}for(var C=void 0,y=0;y<E.length;y++)I(E[y]);return I}({1:[function(X,D,w){"use strict";var E=X("./utils"),I=X("./support"),C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";w.encode=function(y){for(var g,p,d,h,m,v,b=[],x=0,O=y.length,k=O,M="string"!==E.getTypeOf(y);x<y.length;)k=O-x,d=M?(g=y[x++],p=x<O?y[x++]:0,x<O?y[x++]:0):(g=y.charCodeAt(x++),p=x<O?y.charCodeAt(x++):0,x<O?y.charCodeAt(x++):0),h=(3&g)<<4|p>>4,m=1<k?(15&p)<<2|d>>6:64,v=2<k?63&d:64,b.push(C.charAt(g>>2)+C.charAt(h)+C.charAt(m)+C.charAt(v));return b.join("")},w.decode=function(y){var g,p,d,c,h,m,v=0,b=0,x="data:";if(y.substr(0,x.length)===x)throw new Error("Invalid base64 input, it looks like a data url.");var O,k=3*(y=y.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(y.charAt(y.length-1)===C.charAt(64)&&k--,y.charAt(y.length-2)===C.charAt(64)&&k--,k%1!=0)throw new Error("Invalid base64 input, bad content length.");for(O=I.uint8array?new Uint8Array(0|k):new Array(0|k);v<y.length;)g=C.indexOf(y.charAt(v++))<<2|(c=C.indexOf(y.charAt(v++)))>>4,p=(15&c)<<4|(h=C.indexOf(y.charAt(v++)))>>2,d=(3&h)<<6|(m=C.indexOf(y.charAt(v++))),O[b++]=g,64!==h&&(O[b++]=p),64!==m&&(O[b++]=d);return O}},{"./support":30,"./utils":32}],2:[function(X,D,w){"use strict";var E=X("./external"),I=X("./stream/DataWorker"),C=X("./stream/Crc32Probe"),y=X("./stream/DataLengthProbe");function g(p,d,c,h,m){this.compressedSize=p,this.uncompressedSize=d,this.crc32=c,this.compression=h,this.compressedContent=m}g.prototype={getContentWorker:function(){var p=new I(E.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new y("data_length")),d=this;return p.on("end",function(){if(this.streamInfo.data_length!==d.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),p},getCompressedWorker:function(){return new I(E.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},g.createWorkerFrom=function(p,d,c){return p.pipe(new C).pipe(new y("uncompressedSize")).pipe(d.compressWorker(c)).pipe(new y("compressedSize")).withStreamInfo("compression",d)},D.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(X,D,w){"use strict";var E=X("./stream/GenericWorker");w.STORE={magic:"\0\0",compressWorker:function(){return new E("STORE compression")},uncompressWorker:function(){return new E("STORE decompression")}},w.DEFLATE=X("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(X,D,w){"use strict";var E=X("./utils"),I=function(){for(var C,y=[],g=0;g<256;g++){C=g;for(var p=0;p<8;p++)C=1&C?3988292384^C>>>1:C>>>1;y[g]=C}return y}();D.exports=function(C,y){return void 0!==C&&C.length?"string"!==E.getTypeOf(C)?function(g,p,d,c){var h=I,m=0+d;g^=-1;for(var v=0;v<m;v++)g=g>>>8^h[255&(g^p[v])];return-1^g}(0|y,C,C.length):function(g,p,d,c){var h=I,m=0+d;g^=-1;for(var v=0;v<m;v++)g=g>>>8^h[255&(g^p.charCodeAt(v))];return-1^g}(0|y,C,C.length):0}},{"./utils":32}],5:[function(X,D,w){"use strict";w.base64=!1,w.binary=!1,w.dir=!1,w.createFolders=!0,w.date=null,w.compression=null,w.compressionOptions=null,w.comment=null,w.unixPermissions=null,w.dosPermissions=null},{}],6:[function(X,D,w){"use strict";var E;E=typeof Promise<"u"?Promise:X("lie"),D.exports={Promise:E}},{lie:37}],7:[function(X,D,w){"use strict";var E=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",I=X("pako"),C=X("./utils"),y=X("./stream/GenericWorker"),g=E?"uint8array":"array";function p(d,c){y.call(this,"FlateWorker/"+d),this._pako=null,this._pakoAction=d,this._pakoOptions=c,this.meta={}}w.magic="\b\0",C.inherits(p,y),p.prototype.processChunk=function(d){this.meta=d.meta,null===this._pako&&this._createPako(),this._pako.push(C.transformTo(g,d.data),!1)},p.prototype.flush=function(){y.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},p.prototype.cleanUp=function(){y.prototype.cleanUp.call(this),this._pako=null},p.prototype._createPako=function(){this._pako=new I[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var d=this;this._pako.onData=function(c){d.push({data:c,meta:d.meta})}},w.compressWorker=function(d){return new p("Deflate",d)},w.uncompressWorker=function(){return new p("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(X,D,w){"use strict";function E(h,m){var v,b="";for(v=0;v<m;v++)b+=String.fromCharCode(255&h),h>>>=8;return b}function I(h,m,v,b,x,O){var k,M,A=h.file,F=h.compression,P=O!==g.utf8encode,N=C.transformTo("string",O(A.name)),B=C.transformTo("string",g.utf8encode(A.name)),V=A.comment,H=C.transformTo("string",O(V)),W=C.transformTo("string",g.utf8encode(V)),q=B.length!==A.name.length,G=W.length!==V.length,J="",ne="",ae="",ge=A.dir,pe=A.date,le={crc32:0,compressedSize:0,uncompressedSize:0};m&&!v||(le.crc32=h.crc32,le.compressedSize=h.compressedSize,le.uncompressedSize=h.uncompressedSize);var ce=0;m&&(ce|=8),P||!q&&!G||(ce|=2048);var de,Ae,oe=0,K=0;ge&&(oe|=16),"UNIX"===x?(K=798,oe|=(Ae=de=A.unixPermissions,de||(Ae=ge?16893:33204),(65535&Ae)<<16)):(K=20,oe|=function(de){return 63&(de||0)}(A.dosPermissions)),k=pe.getUTCHours(),k<<=6,k|=pe.getUTCMinutes(),k<<=5,k|=pe.getUTCSeconds()/2,M=pe.getUTCFullYear()-1980,M<<=4,M|=pe.getUTCMonth()+1,M<<=5,M|=pe.getUTCDate(),q&&(ne=E(1,1)+E(p(N),4)+B,J+="up"+E(ne.length,2)+ne),G&&(ae=E(1,1)+E(p(H),4)+W,J+="uc"+E(ae.length,2)+ae);var Q="";return Q+="\n\0",Q+=E(ce,2),Q+=F.magic,Q+=E(k,2),Q+=E(M,2),Q+=E(le.crc32,4),Q+=E(le.compressedSize,4),Q+=E(le.uncompressedSize,4),Q+=E(N.length,2),Q+=E(J.length,2),{fileRecord:d.LOCAL_FILE_HEADER+Q+N+J,dirRecord:d.CENTRAL_FILE_HEADER+E(K,2)+Q+E(H.length,2)+"\0\0\0\0"+E(oe,4)+E(b,4)+N+J+H}}var C=X("../utils"),y=X("../stream/GenericWorker"),g=X("../utf8"),p=X("../crc32"),d=X("../signature");function c(h,m,v,b){y.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=m,this.zipPlatform=v,this.encodeFileName=b,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}C.inherits(c,y),c.prototype.push=function(h){var m=h.meta.percent||0,v=this.entriesCount,b=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,y.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:v?(m+100*(v-b-1))/v:100}}))},c.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var m=this.streamFiles&&!h.file.dir;if(m){var v=I(h,m,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(h){this.accumulate=!1;var b,m=this.streamFiles&&!h.file.dir,v=I(h,m,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),m)this.push({data:(b=h,d.DATA_DESCRIPTOR+E(b.crc32,4)+E(b.compressedSize,4)+E(b.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var h=this.bytesWritten,m=0;m<this.dirRecords.length;m++)this.push({data:this.dirRecords[m],meta:{percent:100}});var x,O,k,F,b=(x=this.dirRecords.length,O=this.bytesWritten-h,k=h,F=C.transformTo("string",(0,this.encodeFileName)(this.zipComment)),d.CENTRAL_DIRECTORY_END+"\0\0\0\0"+E(x,2)+E(x,2)+E(O,4)+E(k,4)+E(F.length,2)+F);this.push({data:b,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(h){this._sources.push(h);var m=this;return h.on("data",function(v){m.processChunk(v)}),h.on("end",function(){m.closedSource(m.previous.streamInfo),m._sources.length?m.prepareNextSource():m.end()}),h.on("error",function(v){m.error(v)}),this},c.prototype.resume=function(){return!!y.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(h){var m=this._sources;if(!y.prototype.error.call(this,h))return!1;for(var v=0;v<m.length;v++)try{m[v].error(h)}catch{}return!0},c.prototype.lock=function(){y.prototype.lock.call(this);for(var h=this._sources,m=0;m<h.length;m++)h[m].lock()},D.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(X,D,w){"use strict";var E=X("../compressions"),I=X("./ZipFileWorker");w.generateWorker=function(C,y,g){var p=new I(y.streamFiles,g,y.platform,y.encodeFileName),d=0;try{C.forEach(function(c,h){d++;var m=function(O,k){var M=O||k,A=E[M];if(!A)throw new Error(M+" is not a valid compression method !");return A}(h.options.compression,y.compression),b=h.dir,x=h.date;h._compressWorker(m,h.options.compressionOptions||y.compressionOptions||{}).withStreamInfo("file",{name:c,dir:b,date:x,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(p)}),p.entriesCount=d}catch(c){p.error(c)}return p}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(X,D,w){"use strict";function E(){if(!(this instanceof E))return new E;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var I=new E;for(var C in this)"function"!=typeof this[C]&&(I[C]=this[C]);return I}}(E.prototype=X("./object")).loadAsync=X("./load"),E.support=X("./support"),E.defaults=X("./defaults"),E.version="3.10.1",E.loadAsync=function(I,C){return(new E).loadAsync(I,C)},E.external=X("./external"),D.exports=E},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(X,D,w){"use strict";var E=X("./utils"),I=X("./external"),C=X("./utf8"),y=X("./zipEntries"),g=X("./stream/Crc32Probe"),p=X("./nodejsUtils");function d(c){return new I.Promise(function(h,m){var v=c.decompressed.getContentWorker().pipe(new g);v.on("error",function(b){m(b)}).on("end",function(){v.streamInfo.crc32!==c.decompressed.crc32?m(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}D.exports=function(c,h){var m=this;return h=E.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:C.utf8decode}),p.isNode&&p.isStream(c)?I.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):E.prepareContent("the loaded zip file",c,!0,h.optimizedBinaryString,h.base64).then(function(v){var b=new y(h);return b.load(v),b}).then(function(v){var b=[I.Promise.resolve(v)],x=v.files;if(h.checkCRC32)for(var O=0;O<x.length;O++)b.push(d(x[O]));return I.Promise.all(b)}).then(function(v){for(var b=v.shift(),x=b.files,O=0;O<x.length;O++){var k=x[O],M=k.fileNameStr,A=E.resolve(k.fileNameStr);m.file(A,k.decompressed,{binary:!0,optimizedBinaryString:!0,date:k.date,dir:k.dir,comment:k.fileCommentStr.length?k.fileCommentStr:null,unixPermissions:k.unixPermissions,dosPermissions:k.dosPermissions,createFolders:h.createFolders}),k.dir||(m.file(A).unsafeOriginalName=M)}return b.zipComment.length&&(m.comment=b.zipComment),m})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(X,D,w){"use strict";var E=X("../utils"),I=X("../stream/GenericWorker");function C(y,g){I.call(this,"Nodejs stream input adapter for "+y),this._upstreamEnded=!1,this._bindStream(g)}E.inherits(C,I),C.prototype._bindStream=function(y){var g=this;(this._stream=y).pause(),y.on("data",function(p){g.push({data:p,meta:{percent:0}})}).on("error",function(p){g.isPaused?this.generatedError=p:g.error(p)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},C.prototype.pause=function(){return!!I.prototype.pause.call(this)&&(this._stream.pause(),!0)},C.prototype.resume=function(){return!!I.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},D.exports=C},{"../stream/GenericWorker":28,"../utils":32}],13:[function(X,D,w){"use strict";var E=X("readable-stream").Readable;function I(C,y,g){E.call(this,y),this._helper=C;var p=this;C.on("data",function(d,c){p.push(d)||p._helper.pause(),g&&g(c)}).on("error",function(d){p.emit("error",d)}).on("end",function(){p.push(null)})}X("../utils").inherits(I,E),I.prototype._read=function(){this._helper.resume()},D.exports=I},{"../utils":32,"readable-stream":16}],14:[function(X,D,w){"use strict";D.exports={isNode:typeof Buffer<"u",newBufferFrom:function(E,I){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(E,I);if("number"==typeof E)throw new Error('The "data" argument must not be a number');return new Buffer(E,I)},allocBuffer:function(E){if(Buffer.alloc)return Buffer.alloc(E);var I=new Buffer(E);return I.fill(0),I},isBuffer:function(E){return Buffer.isBuffer(E)},isStream:function(E){return E&&"function"==typeof E.on&&"function"==typeof E.pause&&"function"==typeof E.resume}}},{}],15:[function(X,D,w){"use strict";function E(A,F,P){var N,B=C.getTypeOf(F),V=C.extend(P||{},p);V.date=V.date||new Date,null!==V.compression&&(V.compression=V.compression.toUpperCase()),"string"==typeof V.unixPermissions&&(V.unixPermissions=parseInt(V.unixPermissions,8)),V.unixPermissions&&16384&V.unixPermissions&&(V.dir=!0),V.dosPermissions&&16&V.dosPermissions&&(V.dir=!0),V.dir&&(A=x(A)),V.createFolders&&(N=b(A))&&O.call(this,N,!0),P&&void 0!==P.binary||(V.binary=!("string"===B&&!1===V.binary&&!1===V.base64)),(F instanceof d&&0===F.uncompressedSize||V.dir||!F||0===F.length)&&(V.base64=!1,V.binary=!0,F="",V.compression="STORE",B="string");var W;W=F instanceof d||F instanceof y?F:m.isNode&&m.isStream(F)?new v(A,F):C.prepareContent(A,F,V.binary,V.optimizedBinaryString,V.base64);var q=new c(A,W,V);this.files[A]=q}var I=X("./utf8"),C=X("./utils"),y=X("./stream/GenericWorker"),g=X("./stream/StreamHelper"),p=X("./defaults"),d=X("./compressedObject"),c=X("./zipObject"),h=X("./generate"),m=X("./nodejsUtils"),v=X("./nodejs/NodejsStreamInputAdapter"),b=function(A){"/"===A.slice(-1)&&(A=A.substring(0,A.length-1));var F=A.lastIndexOf("/");return 0<F?A.substring(0,F):""},x=function(A){return"/"!==A.slice(-1)&&(A+="/"),A},O=function(A,F){return F=void 0!==F?F:p.createFolders,A=x(A),this.files[A]||E.call(this,A,null,{dir:!0,createFolders:F}),this.files[A]};function k(A){return"[object RegExp]"===Object.prototype.toString.call(A)}var M={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(A){var F,P,N;for(F in this.files)N=this.files[F],(P=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&A(P,N)},filter:function(A){var F=[];return this.forEach(function(P,N){A(P,N)&&F.push(N)}),F},file:function(A,F,P){if(1!==arguments.length)return E.call(this,A=this.root+A,F,P),this;if(k(A)){var N=A;return this.filter(function(V,H){return!H.dir&&N.test(V)})}var B=this.files[this.root+A];return B&&!B.dir?B:null},folder:function(A){if(!A)return this;if(k(A))return this.filter(function(B,V){return V.dir&&A.test(B)});var P=O.call(this,this.root+A),N=this.clone();return N.root=P.name,N},remove:function(A){var F=this.files[A=this.root+A];if(F||("/"!==A.slice(-1)&&(A+="/"),F=this.files[A]),F&&!F.dir)delete this.files[A];else for(var P=this.filter(function(B,V){return V.name.slice(0,A.length)===A}),N=0;N<P.length;N++)delete this.files[P[N].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(A){var F,P={};try{if((P=C.extend(A||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:I.utf8encode})).type=P.type.toLowerCase(),P.compression=P.compression.toUpperCase(),"binarystring"===P.type&&(P.type="string"),!P.type)throw new Error("No output type specified.");C.checkSupport(P.type),"darwin"!==P.platform&&"freebsd"!==P.platform&&"linux"!==P.platform&&"sunos"!==P.platform||(P.platform="UNIX"),"win32"===P.platform&&(P.platform="DOS"),F=h.generateWorker(this,P,P.comment||this.comment||"")}catch(B){(F=new y("error")).error(B)}return new g(F,P.type||"string",P.mimeType)},generateAsync:function(A,F){return this.generateInternalStream(A).accumulate(F)},generateNodeStream:function(A,F){return(A=A||{}).type||(A.type="nodebuffer"),this.generateInternalStream(A).toNodejsStream(F)}};D.exports=M},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(X,D,w){"use strict";D.exports=X("stream")},{stream:void 0}],17:[function(X,D,w){"use strict";var E=X("./DataReader");function I(C){E.call(this,C);for(var y=0;y<this.data.length;y++)C[y]=255&C[y]}X("../utils").inherits(I,E),I.prototype.byteAt=function(C){return this.data[this.zero+C]},I.prototype.lastIndexOfSignature=function(C){for(var y=C.charCodeAt(0),g=C.charCodeAt(1),p=C.charCodeAt(2),d=C.charCodeAt(3),c=this.length-4;0<=c;--c)if(this.data[c]===y&&this.data[c+1]===g&&this.data[c+2]===p&&this.data[c+3]===d)return c-this.zero;return-1},I.prototype.readAndCheckSignature=function(C){var y=C.charCodeAt(0),g=C.charCodeAt(1),p=C.charCodeAt(2),d=C.charCodeAt(3),c=this.readData(4);return y===c[0]&&g===c[1]&&p===c[2]&&d===c[3]},I.prototype.readData=function(C){if(this.checkOffset(C),0===C)return[];var y=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,y},D.exports=I},{"../utils":32,"./DataReader":18}],18:[function(X,D,w){"use strict";var E=X("../utils");function I(C){this.data=C,this.length=C.length,this.index=0,this.zero=0}I.prototype={checkOffset:function(C){this.checkIndex(this.index+C)},checkIndex:function(C){if(this.length<this.zero+C||C<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+C+"). Corrupted zip ?")},setIndex:function(C){this.checkIndex(C),this.index=C},skip:function(C){this.setIndex(this.index+C)},byteAt:function(){},readInt:function(C){var y,g=0;for(this.checkOffset(C),y=this.index+C-1;y>=this.index;y--)g=(g<<8)+this.byteAt(y);return this.index+=C,g},readString:function(C){return E.transformTo("string",this.readData(C))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var C=this.readInt(4);return new Date(Date.UTC(1980+(C>>25&127),(C>>21&15)-1,C>>16&31,C>>11&31,C>>5&63,(31&C)<<1))}},D.exports=I},{"../utils":32}],19:[function(X,D,w){"use strict";var E=X("./Uint8ArrayReader");function I(C){E.call(this,C)}X("../utils").inherits(I,E),I.prototype.readData=function(C){this.checkOffset(C);var y=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,y},D.exports=I},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(X,D,w){"use strict";var E=X("./DataReader");function I(C){E.call(this,C)}X("../utils").inherits(I,E),I.prototype.byteAt=function(C){return this.data.charCodeAt(this.zero+C)},I.prototype.lastIndexOfSignature=function(C){return this.data.lastIndexOf(C)-this.zero},I.prototype.readAndCheckSignature=function(C){return C===this.readData(4)},I.prototype.readData=function(C){this.checkOffset(C);var y=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,y},D.exports=I},{"../utils":32,"./DataReader":18}],21:[function(X,D,w){"use strict";var E=X("./ArrayReader");function I(C){E.call(this,C)}X("../utils").inherits(I,E),I.prototype.readData=function(C){if(this.checkOffset(C),0===C)return new Uint8Array(0);var y=this.data.subarray(this.zero+this.index,this.zero+this.index+C);return this.index+=C,y},D.exports=I},{"../utils":32,"./ArrayReader":17}],22:[function(X,D,w){"use strict";var E=X("../utils"),I=X("../support"),C=X("./ArrayReader"),y=X("./StringReader"),g=X("./NodeBufferReader"),p=X("./Uint8ArrayReader");D.exports=function(d){var c=E.getTypeOf(d);return E.checkSupport(c),"string"!==c||I.uint8array?"nodebuffer"===c?new g(d):I.uint8array?new p(E.transformTo("uint8array",d)):new C(E.transformTo("array",d)):new y(d)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(X,D,w){"use strict";w.LOCAL_FILE_HEADER="PK\x03\x04",w.CENTRAL_FILE_HEADER="PK\x01\x02",w.CENTRAL_DIRECTORY_END="PK\x05\x06",w.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",w.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",w.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(X,D,w){"use strict";var E=X("./GenericWorker"),I=X("../utils");function C(y){E.call(this,"ConvertWorker to "+y),this.destType=y}I.inherits(C,E),C.prototype.processChunk=function(y){this.push({data:I.transformTo(this.destType,y.data),meta:y.meta})},D.exports=C},{"../utils":32,"./GenericWorker":28}],25:[function(X,D,w){"use strict";var E=X("./GenericWorker"),I=X("../crc32");function C(){E.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}X("../utils").inherits(C,E),C.prototype.processChunk=function(y){this.streamInfo.crc32=I(y.data,this.streamInfo.crc32||0),this.push(y)},D.exports=C},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(X,D,w){"use strict";var E=X("../utils"),I=X("./GenericWorker");function C(y){I.call(this,"DataLengthProbe for "+y),this.propName=y,this.withStreamInfo(y,0)}E.inherits(C,I),C.prototype.processChunk=function(y){y&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+y.data.length),I.prototype.processChunk.call(this,y)},D.exports=C},{"../utils":32,"./GenericWorker":28}],27:[function(X,D,w){"use strict";var E=X("../utils"),I=X("./GenericWorker");function C(y){I.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,y.then(function(p){g.dataIsReady=!0,g.data=p,g.max=p&&p.length||0,g.type=E.getTypeOf(p),g.isPaused||g._tickAndRepeat()},function(p){g.error(p)})}E.inherits(C,I),C.prototype.cleanUp=function(){I.prototype.cleanUp.call(this),this.data=null},C.prototype.resume=function(){return!!I.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,E.delay(this._tickAndRepeat,[],this)),!0)},C.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(E.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},C.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var y=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":y=this.data.substring(this.index,g);break;case"uint8array":y=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":y=this.data.slice(this.index,g)}return this.index=g,this.push({data:y,meta:{percent:this.max?this.index/this.max*100:0}})},D.exports=C},{"../utils":32,"./GenericWorker":28}],28:[function(X,D,w){"use strict";function E(I){this.name=I||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}E.prototype={push:function(I){this.emit("data",I)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(I){this.emit("error",I)}return!0},error:function(I){return!this.isFinished&&(this.isPaused?this.generatedError=I:(this.isFinished=!0,this.emit("error",I),this.previous&&this.previous.error(I),this.cleanUp()),!0)},on:function(I,C){return this._listeners[I].push(C),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(I,C){if(this._listeners[I])for(var y=0;y<this._listeners[I].length;y++)this._listeners[I][y].call(this,C)},pipe:function(I){return I.registerPrevious(this)},registerPrevious:function(I){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=I.streamInfo,this.mergeStreamInfo(),this.previous=I;var C=this;return I.on("data",function(y){C.processChunk(y)}),I.on("end",function(){C.end()}),I.on("error",function(y){C.error(y)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var I=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),I=!0),this.previous&&this.previous.resume(),!I},flush:function(){},processChunk:function(I){this.push(I)},withStreamInfo:function(I,C){return this.extraStreamInfo[I]=C,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var I in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,I)&&(this.streamInfo[I]=this.extraStreamInfo[I])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var I="Worker "+this.name;return this.previous?this.previous+" -> "+I:I}},D.exports=E},{}],29:[function(X,D,w){"use strict";var E=X("../utils"),I=X("./ConvertWorker"),C=X("./GenericWorker"),y=X("../base64"),g=X("../support"),p=X("../external"),d=null;if(g.nodestream)try{d=X("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(m,v,b){var x=v;switch(v){case"blob":case"arraybuffer":x="uint8array";break;case"base64":x="string"}try{this._internalType=x,this._outputType=v,this._mimeType=b,E.checkSupport(x),this._worker=m.pipe(new I(x)),m.lock()}catch(O){this._worker=new C("error"),this._worker.error(O)}}h.prototype={accumulate:function(m){return function c(m,v){return new p.Promise(function(b,x){var O=[],k=m._internalType,M=m._outputType,A=m._mimeType;m.on("data",function(F,P){O.push(F),v&&v(P)}).on("error",function(F){O=[],x(F)}).on("end",function(){try{var F=function(P,N,B){switch(P){case"blob":return E.newBlob(E.transformTo("arraybuffer",N),B);case"base64":return y.encode(N);default:return E.transformTo(P,N)}}(M,function(P,N){var B,V=0,H=null,W=0;for(B=0;B<N.length;B++)W+=N[B].length;switch(P){case"string":return N.join("");case"array":return Array.prototype.concat.apply([],N);case"uint8array":for(H=new Uint8Array(W),B=0;B<N.length;B++)H.set(N[B],V),V+=N[B].length;return H;case"nodebuffer":return Buffer.concat(N);default:throw new Error("concat : unsupported type '"+P+"'")}}(k,O),A);b(F)}catch(P){x(P)}O=[]}).resume()})}(this,m)},on:function(m,v){var b=this;return this._worker.on(m,"data"===m?function(x){v.call(b,x.data,x.meta)}:function(){E.delay(v,arguments,b)}),this},resume:function(){return E.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(m){if(E.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new d(this,{objectMode:"nodebuffer"!==this._outputType},m)}},D.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(X,D,w){"use strict";if(w.base64=!0,w.array=!0,w.string=!0,w.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",w.nodebuffer=typeof Buffer<"u",w.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")w.blob=!1;else{var E=new ArrayBuffer(0);try{w.blob=0===new Blob([E],{type:"application/zip"}).size}catch{try{var I=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);I.append(E),w.blob=0===I.getBlob("application/zip").size}catch{w.blob=!1}}}try{w.nodestream=!!X("readable-stream").Readable}catch{w.nodestream=!1}},{"readable-stream":16}],31:[function(X,D,w){"use strict";for(var E=X("./utils"),I=X("./support"),C=X("./nodejsUtils"),y=X("./stream/GenericWorker"),g=new Array(256),p=0;p<256;p++)g[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function d(){y.call(this,"utf-8 decode"),this.leftOver=null}function c(){y.call(this,"utf-8 encode")}g[254]=g[254]=1,w.utf8encode=function(h){return I.nodebuffer?C.newBufferFrom(h,"utf-8"):function(m){var v,b,x,O,k,M=m.length,A=0;for(O=0;O<M;O++)55296==(64512&(b=m.charCodeAt(O)))&&O+1<M&&56320==(64512&(x=m.charCodeAt(O+1)))&&(b=65536+(b-55296<<10)+(x-56320),O++),A+=b<128?1:b<2048?2:b<65536?3:4;for(v=I.uint8array?new Uint8Array(A):new Array(A),O=k=0;k<A;O++)55296==(64512&(b=m.charCodeAt(O)))&&O+1<M&&56320==(64512&(x=m.charCodeAt(O+1)))&&(b=65536+(b-55296<<10)+(x-56320),O++),b<128?v[k++]=b:(b<2048?v[k++]=192|b>>>6:(b<65536?v[k++]=224|b>>>12:(v[k++]=240|b>>>18,v[k++]=128|b>>>12&63),v[k++]=128|b>>>6&63),v[k++]=128|63&b);return v}(h)},w.utf8decode=function(h){return I.nodebuffer?E.transformTo("nodebuffer",h).toString("utf-8"):function(m){var v,b,x,O,k=m.length,M=new Array(2*k);for(v=b=0;v<k;)if((x=m[v++])<128)M[b++]=x;else if(4<(O=g[x]))M[b++]=65533,v+=O-1;else{for(x&=2===O?31:3===O?15:7;1<O&&v<k;)x=x<<6|63&m[v++],O--;1<O?M[b++]=65533:x<65536?M[b++]=x:(M[b++]=55296|(x-=65536)>>10&1023,M[b++]=56320|1023&x)}return M.length!==b&&(M.subarray?M=M.subarray(0,b):M.length=b),E.applyFromCharCode(M)}(h=E.transformTo(I.uint8array?"uint8array":"array",h))},E.inherits(d,y),d.prototype.processChunk=function(h){var m=E.transformTo(I.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(I.uint8array){var v=m;(m=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),m.set(v,this.leftOver.length)}else m=this.leftOver.concat(m);this.leftOver=null}var b=function(O,k){var M;for((k=k||O.length)>O.length&&(k=O.length),M=k-1;0<=M&&128==(192&O[M]);)M--;return M<0||0===M?k:M+g[O[M]]>k?M:k}(m),x=m;b!==m.length&&(I.uint8array?(x=m.subarray(0,b),this.leftOver=m.subarray(b,m.length)):(x=m.slice(0,b),this.leftOver=m.slice(b,m.length))),this.push({data:w.utf8decode(x),meta:h.meta})},d.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:w.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},w.Utf8DecodeWorker=d,E.inherits(c,y),c.prototype.processChunk=function(h){this.push({data:w.utf8encode(h.data),meta:h.meta})},w.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(X,D,w){"use strict";var E=X("./support"),I=X("./base64"),C=X("./nodejsUtils"),y=X("./external");function g(v){return v}function p(v,b){for(var x=0;x<v.length;++x)b[x]=255&v.charCodeAt(x);return b}X("setimmediate"),w.newBlob=function(v,b){w.checkSupport("blob");try{return new Blob([v],{type:b})}catch{try{var x=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return x.append(v),x.getBlob(b)}catch{throw new Error("Bug : can't construct the Blob.")}}};var d={stringifyByChunk:function(v,b,x){var O=[],k=0,M=v.length;if(M<=x)return String.fromCharCode.apply(null,v);for(;k<M;)O.push(String.fromCharCode.apply(null,"array"===b||"nodebuffer"===b?v.slice(k,Math.min(k+x,M)):v.subarray(k,Math.min(k+x,M)))),k+=x;return O.join("")},stringifyByChar:function(v){for(var b="",x=0;x<v.length;x++)b+=String.fromCharCode(v[x]);return b},applyCanBeUsed:{uint8array:function(){try{return E.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch{return!1}}(),nodebuffer:function(){try{return E.nodebuffer&&1===String.fromCharCode.apply(null,C.allocBuffer(1)).length}catch{return!1}}()}};function c(v){var b=65536,x=w.getTypeOf(v),O=!0;if("uint8array"===x?O=d.applyCanBeUsed.uint8array:"nodebuffer"===x&&(O=d.applyCanBeUsed.nodebuffer),O)for(;1<b;)try{return d.stringifyByChunk(v,x,b)}catch{b=Math.floor(b/2)}return d.stringifyByChar(v)}function h(v,b){for(var x=0;x<v.length;x++)b[x]=v[x];return b}w.applyFromCharCode=c;var m={};m.string={string:g,array:function(v){return p(v,new Array(v.length))},arraybuffer:function(v){return m.string.uint8array(v).buffer},uint8array:function(v){return p(v,new Uint8Array(v.length))},nodebuffer:function(v){return p(v,C.allocBuffer(v.length))}},m.array={string:c,array:g,arraybuffer:function(v){return new Uint8Array(v).buffer},uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return C.newBufferFrom(v)}},m.arraybuffer={string:function(v){return c(new Uint8Array(v))},array:function(v){return h(new Uint8Array(v),new Array(v.byteLength))},arraybuffer:g,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return C.newBufferFrom(new Uint8Array(v))}},m.uint8array={string:c,array:function(v){return h(v,new Array(v.length))},arraybuffer:function(v){return v.buffer},uint8array:g,nodebuffer:function(v){return C.newBufferFrom(v)}},m.nodebuffer={string:c,array:function(v){return h(v,new Array(v.length))},arraybuffer:function(v){return m.nodebuffer.uint8array(v).buffer},uint8array:function(v){return h(v,new Uint8Array(v.length))},nodebuffer:g},w.transformTo=function(v,b){if(b=b||"",!v)return b;w.checkSupport(v);var x=w.getTypeOf(b);return m[x][v](b)},w.resolve=function(v){for(var b=v.split("/"),x=[],O=0;O<b.length;O++){var k=b[O];"."===k||""===k&&0!==O&&O!==b.length-1||(".."===k?x.pop():x.push(k))}return x.join("/")},w.getTypeOf=function(v){return"string"==typeof v?"string":"[object Array]"===Object.prototype.toString.call(v)?"array":E.nodebuffer&&C.isBuffer(v)?"nodebuffer":E.uint8array&&v instanceof Uint8Array?"uint8array":E.arraybuffer&&v instanceof ArrayBuffer?"arraybuffer":void 0},w.checkSupport=function(v){if(!E[v.toLowerCase()])throw new Error(v+" is not supported by this platform")},w.MAX_VALUE_16BITS=65535,w.MAX_VALUE_32BITS=-1,w.pretty=function(v){var b,x,O="";for(x=0;x<(v||"").length;x++)O+="\\x"+((b=v.charCodeAt(x))<16?"0":"")+b.toString(16).toUpperCase();return O},w.delay=function(v,b,x){setImmediate(function(){v.apply(x||null,b||[])})},w.inherits=function(v,b){function x(){}x.prototype=b.prototype,v.prototype=new x},w.extend=function(){var v,b,x={};for(v=0;v<arguments.length;v++)for(b in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],b)&&void 0===x[b]&&(x[b]=arguments[v][b]);return x},w.prepareContent=function(v,b,x,O,k){return y.Promise.resolve(b).then(function(M){return E.blob&&(M instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(M)))&&typeof FileReader<"u"?new y.Promise(function(A,F){var P=new FileReader;P.onload=function(N){A(N.target.result)},P.onerror=function(N){F(N.target.error)},P.readAsArrayBuffer(M)}):M}).then(function(M){var F,A=w.getTypeOf(M);return A?("arraybuffer"===A?M=w.transformTo("uint8array",M):"string"===A&&(k?M=I.decode(M):x&&!0!==O&&(M=p(F=M,E.uint8array?new Uint8Array(F.length):new Array(F.length)))),M):y.Promise.reject(new Error("Can't read the data of '"+v+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(X,D,w){"use strict";var E=X("./reader/readerFor"),I=X("./utils"),C=X("./signature"),y=X("./zipEntry"),g=X("./support");function p(d){this.files=[],this.loadOptions=d}p.prototype={checkSignature:function(d){if(!this.reader.readAndCheckSignature(d)){this.reader.index-=4;var c=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+I.pretty(c)+", expected "+I.pretty(d)+")")}},isSignature:function(d,c){var h=this.reader.index;this.reader.setIndex(d);var m=this.reader.readString(4)===c;return this.reader.setIndex(h),m},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var d=this.reader.readData(this.zipCommentLength),h=I.transformTo(g.uint8array?"uint8array":"array",d);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var d,c,h,m=this.zip64EndOfCentralSize-44;0<m;)d=this.reader.readInt(2),c=this.reader.readInt(4),h=this.reader.readData(c),this.zip64ExtensibleData[d]={id:d,length:c,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var d,c;for(d=0;d<this.files.length;d++)this.reader.setIndex((c=this.files[d]).localHeaderOffset),this.checkSignature(C.LOCAL_FILE_HEADER),c.readLocalPart(this.reader),c.handleUTF8(),c.processAttributes()},readCentralDir:function(){var d;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(C.CENTRAL_FILE_HEADER);)(d=new y({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(d);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var d=this.reader.lastIndexOfSignature(C.CENTRAL_DIRECTORY_END);if(d<0)throw this.isSignature(0,C.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(d);var c=d;if(this.checkSignature(C.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===I.MAX_VALUE_16BITS||this.diskWithCentralDirStart===I.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===I.MAX_VALUE_16BITS||this.centralDirRecords===I.MAX_VALUE_16BITS||this.centralDirSize===I.MAX_VALUE_32BITS||this.centralDirOffset===I.MAX_VALUE_32BITS){if(this.zip64=!0,(d=this.reader.lastIndexOfSignature(C.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(d),this.checkSignature(C.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,C.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(C.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(C.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var m=c-h;if(0<m)this.isSignature(c,C.CENTRAL_FILE_HEADER)||(this.reader.zero=m);else if(m<0)throw new Error("Corrupted zip: missing "+Math.abs(m)+" bytes.")},prepareReader:function(d){this.reader=E(d)},load:function(d){this.prepareReader(d),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},D.exports=p},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(X,D,w){"use strict";var E=X("./reader/readerFor"),I=X("./utils"),C=X("./compressedObject"),y=X("./crc32"),g=X("./utf8"),p=X("./compressions"),d=X("./support");function c(h,m){this.options=h,this.loadOptions=m}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(h){var m,v;if(h.skip(22),this.fileNameLength=h.readInt(2),v=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(v),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(m=function(b){for(var x in p)if(Object.prototype.hasOwnProperty.call(p,x)&&p[x].magic===b)return p[x];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+I.pretty(this.compressionMethod)+" unknown (inner file : "+I.transformTo("string",this.fileName)+")");this.decompressed=new C(this.compressedSize,this.uncompressedSize,this.crc32,m,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var m=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(m),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==h&&(this.dosPermissions=63&this.externalFileAttributes),3==h&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=E(this.extraFields[1].value);this.uncompressedSize===I.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===I.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===I.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===I.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var m,v,b,x=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<x;)m=h.readInt(2),v=h.readInt(2),b=h.readData(v),this.extraFields[m]={id:m,length:v,value:b};h.setIndex(x)},handleUTF8:function(){var h=d.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var m=this.findExtraFieldUnicodePath();if(null!==m)this.fileNameStr=m;else{var v=I.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var b=this.findExtraFieldUnicodeComment();if(null!==b)this.fileCommentStr=b;else{var x=I.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(x)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var m=E(h.value);return 1!==m.readInt(1)||y(this.fileName)!==m.readInt(4)?null:g.utf8decode(m.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var m=E(h.value);return 1!==m.readInt(1)||y(this.fileComment)!==m.readInt(4)?null:g.utf8decode(m.readData(h.length-5))}return null}},D.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(X,D,w){"use strict";function E(m,v,b){this.name=m,this.dir=b.dir,this.date=b.date,this.comment=b.comment,this.unixPermissions=b.unixPermissions,this.dosPermissions=b.dosPermissions,this._data=v,this._dataBinary=b.binary,this.options={compression:b.compression,compressionOptions:b.compressionOptions}}var I=X("./stream/StreamHelper"),C=X("./stream/DataWorker"),y=X("./utf8"),g=X("./compressedObject"),p=X("./stream/GenericWorker");E.prototype={internalStream:function(m){var v=null,b="string";try{if(!m)throw new Error("No output type specified.");var x="string"===(b=m.toLowerCase())||"text"===b;"binarystring"!==b&&"text"!==b||(b="string"),v=this._decompressWorker();var O=!this._dataBinary;O&&!x&&(v=v.pipe(new y.Utf8EncodeWorker)),!O&&x&&(v=v.pipe(new y.Utf8DecodeWorker))}catch(k){(v=new p("error")).error(k)}return new I(v,b,"")},async:function(m,v){return this.internalStream(m).accumulate(v)},nodeStream:function(m,v){return this.internalStream(m||"nodebuffer").toNodejsStream(v)},_compressWorker:function(m,v){if(this._data instanceof g&&this._data.compression.magic===m.magic)return this._data.getCompressedWorker();var b=this._decompressWorker();return this._dataBinary||(b=b.pipe(new y.Utf8EncodeWorker)),g.createWorkerFrom(b,m,v)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof p?this._data:new C(this._data)}};for(var d=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<d.length;h++)E.prototype[d[h]]=c;D.exports=E},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(X,D,w){(function(E){"use strict";var I,C,y=E.MutationObserver||E.WebKitMutationObserver;if(y){var g=0,p=new y(m),d=E.document.createTextNode("");p.observe(d,{characterData:!0}),I=function(){d.data=g=++g%2}}else if(E.setImmediate||void 0===E.MessageChannel)I="document"in E&&"onreadystatechange"in E.document.createElement("script")?function(){var v=E.document.createElement("script");v.onreadystatechange=function(){m(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},E.document.documentElement.appendChild(v)}:function(){setTimeout(m,0)};else{var c=new E.MessageChannel;c.port1.onmessage=m,I=function(){c.port2.postMessage(0)}}var h=[];function m(){var v,b;C=!0;for(var x=h.length;x;){for(b=h,h=[],v=-1;++v<x;)b[v]();x=h.length}C=!1}D.exports=function(v){1!==h.push(v)||C||I()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(X,D,w){"use strict";var E=X("immediate");function I(){}var C={},y=["REJECTED"],g=["FULFILLED"],p=["PENDING"];function d(x){if("function"!=typeof x)throw new TypeError("resolver must be a function");this.state=p,this.queue=[],this.outcome=void 0,x!==I&&v(this,x)}function c(x,O,k){this.promise=x,"function"==typeof O&&(this.onFulfilled=O,this.callFulfilled=this.otherCallFulfilled),"function"==typeof k&&(this.onRejected=k,this.callRejected=this.otherCallRejected)}function h(x,O,k){E(function(){var M;try{M=O(k)}catch(A){return C.reject(x,A)}M===x?C.reject(x,new TypeError("Cannot resolve promise with itself")):C.resolve(x,M)})}function m(x){var O=x&&x.then;if(x&&("object"==typeof x||"function"==typeof x)&&"function"==typeof O)return function(){O.apply(x,arguments)}}function v(x,O){var k=!1;function M(P){k||(k=!0,C.reject(x,P))}function A(P){k||(k=!0,C.resolve(x,P))}var F=b(function(){O(A,M)});"error"===F.status&&M(F.value)}function b(x,O){var k={};try{k.value=x(O),k.status="success"}catch(M){k.status="error",k.value=M}return k}(D.exports=d).prototype.finally=function(x){if("function"!=typeof x)return this;var O=this.constructor;return this.then(function(k){return O.resolve(x()).then(function(){return k})},function(k){return O.resolve(x()).then(function(){throw k})})},d.prototype.catch=function(x){return this.then(null,x)},d.prototype.then=function(x,O){if("function"!=typeof x&&this.state===g||"function"!=typeof O&&this.state===y)return this;var k=new this.constructor(I);return this.state!==p?h(k,this.state===g?x:O,this.outcome):this.queue.push(new c(k,x,O)),k},c.prototype.callFulfilled=function(x){C.resolve(this.promise,x)},c.prototype.otherCallFulfilled=function(x){h(this.promise,this.onFulfilled,x)},c.prototype.callRejected=function(x){C.reject(this.promise,x)},c.prototype.otherCallRejected=function(x){h(this.promise,this.onRejected,x)},C.resolve=function(x,O){var k=b(m,O);if("error"===k.status)return C.reject(x,k.value);var M=k.value;if(M)v(x,M);else{x.state=g,x.outcome=O;for(var A=-1,F=x.queue.length;++A<F;)x.queue[A].callFulfilled(O)}return x},C.reject=function(x,O){x.state=y,x.outcome=O;for(var k=-1,M=x.queue.length;++k<M;)x.queue[k].callRejected(O);return x},d.resolve=function(x){return x instanceof this?x:C.resolve(new this(I),x)},d.reject=function(x){var O=new this(I);return C.reject(O,x)},d.all=function(x){var O=this;if("[object Array]"!==Object.prototype.toString.call(x))return this.reject(new TypeError("must be an array"));var k=x.length,M=!1;if(!k)return this.resolve([]);for(var A=new Array(k),F=0,P=-1,N=new this(I);++P<k;)B(x[P],P);return N;function B(V,H){O.resolve(V).then(function(W){A[H]=W,++F!==k||M||(M=!0,C.resolve(N,A))},function(W){M||(M=!0,C.reject(N,W))})}},d.race=function(x){if("[object Array]"!==Object.prototype.toString.call(x))return this.reject(new TypeError("must be an array"));var k=x.length,M=!1;if(!k)return this.resolve([]);for(var A=-1,F=new this(I);++A<k;)this.resolve(x[A]).then(function(N){M||(M=!0,C.resolve(F,N))},function(N){M||(M=!0,C.reject(F,N))});return F}},{immediate:36}],38:[function(X,D,w){"use strict";var E={};(0,X("./lib/utils/common").assign)(E,X("./lib/deflate"),X("./lib/inflate"),X("./lib/zlib/constants")),D.exports=E},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(X,D,w){"use strict";var E=X("./zlib/deflate"),I=X("./utils/common"),C=X("./utils/strings"),y=X("./zlib/messages"),g=X("./zlib/zstream"),p=Object.prototype.toString;function v(x){if(!(this instanceof v))return new v(x);this.options=I.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},x||{});var O=this.options;O.raw&&0<O.windowBits?O.windowBits=-O.windowBits:O.gzip&&0<O.windowBits&&O.windowBits<16&&(O.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var k=E.deflateInit2(this.strm,O.level,O.method,O.windowBits,O.memLevel,O.strategy);if(0!==k)throw new Error(y[k]);if(O.header&&E.deflateSetHeader(this.strm,O.header),O.dictionary){var M;if(M="string"==typeof O.dictionary?C.string2buf(O.dictionary):"[object ArrayBuffer]"===p.call(O.dictionary)?new Uint8Array(O.dictionary):O.dictionary,0!==(k=E.deflateSetDictionary(this.strm,M)))throw new Error(y[k]);this._dict_set=!0}}function b(x,O){var k=new v(O);if(k.push(x,!0),k.err)throw k.msg||y[k.err];return k.result}v.prototype.push=function(x,O){var k,M,A=this.strm,F=this.options.chunkSize;if(this.ended)return!1;M=O===~~O?O:!0===O?4:0,A.input="string"==typeof x?C.string2buf(x):"[object ArrayBuffer]"===p.call(x)?new Uint8Array(x):x,A.next_in=0,A.avail_in=A.input.length;do{if(0===A.avail_out&&(A.output=new I.Buf8(F),A.next_out=0,A.avail_out=F),1!==(k=E.deflate(A,M))&&0!==k)return this.onEnd(k),!(this.ended=!0);0!==A.avail_out&&(0!==A.avail_in||4!==M&&2!==M)||this.onData("string"===this.options.to?C.buf2binstring(I.shrinkBuf(A.output,A.next_out)):I.shrinkBuf(A.output,A.next_out))}while((0<A.avail_in||0===A.avail_out)&&1!==k);return 4===M?(k=E.deflateEnd(this.strm),this.onEnd(k),this.ended=!0,0===k):2!==M||(this.onEnd(0),!(A.avail_out=0))},v.prototype.onData=function(x){this.chunks.push(x)},v.prototype.onEnd=function(x){0===x&&(this.result="string"===this.options.to?this.chunks.join(""):I.flattenChunks(this.chunks)),this.chunks=[],this.err=x,this.msg=this.strm.msg},w.Deflate=v,w.deflate=b,w.deflateRaw=function(x,O){return(O=O||{}).raw=!0,b(x,O)},w.gzip=function(x,O){return(O=O||{}).gzip=!0,b(x,O)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(X,D,w){"use strict";var E=X("./zlib/inflate"),I=X("./utils/common"),C=X("./utils/strings"),y=X("./zlib/constants"),g=X("./zlib/messages"),p=X("./zlib/zstream"),d=X("./zlib/gzheader"),c=Object.prototype.toString;function h(v){if(!(this instanceof h))return new h(v);this.options=I.assign({chunkSize:16384,windowBits:0,to:""},v||{});var b=this.options;b.raw&&0<=b.windowBits&&b.windowBits<16&&(b.windowBits=-b.windowBits,0===b.windowBits&&(b.windowBits=-15)),!(0<=b.windowBits&&b.windowBits<16)||v&&v.windowBits||(b.windowBits+=32),15<b.windowBits&&b.windowBits<48&&!(15&b.windowBits)&&(b.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var x=E.inflateInit2(this.strm,b.windowBits);if(x!==y.Z_OK)throw new Error(g[x]);this.header=new d,E.inflateGetHeader(this.strm,this.header)}function m(v,b){var x=new h(b);if(x.push(v,!0),x.err)throw x.msg||g[x.err];return x.result}h.prototype.push=function(v,b){var x,O,k,M,A,F,P=this.strm,N=this.options.chunkSize,B=this.options.dictionary,V=!1;if(this.ended)return!1;O=b===~~b?b:!0===b?y.Z_FINISH:y.Z_NO_FLUSH,P.input="string"==typeof v?C.binstring2buf(v):"[object ArrayBuffer]"===c.call(v)?new Uint8Array(v):v,P.next_in=0,P.avail_in=P.input.length;do{if(0===P.avail_out&&(P.output=new I.Buf8(N),P.next_out=0,P.avail_out=N),(x=E.inflate(P,y.Z_NO_FLUSH))===y.Z_NEED_DICT&&B&&(F="string"==typeof B?C.string2buf(B):"[object ArrayBuffer]"===c.call(B)?new Uint8Array(B):B,x=E.inflateSetDictionary(this.strm,F)),x===y.Z_BUF_ERROR&&!0===V&&(x=y.Z_OK,V=!1),x!==y.Z_STREAM_END&&x!==y.Z_OK)return this.onEnd(x),!(this.ended=!0);P.next_out&&(0!==P.avail_out&&x!==y.Z_STREAM_END&&(0!==P.avail_in||O!==y.Z_FINISH&&O!==y.Z_SYNC_FLUSH)||("string"===this.options.to?(k=C.utf8border(P.output,P.next_out),M=P.next_out-k,A=C.buf2string(P.output,k),P.next_out=M,P.avail_out=N-M,M&&I.arraySet(P.output,P.output,k,M,0),this.onData(A)):this.onData(I.shrinkBuf(P.output,P.next_out)))),0===P.avail_in&&0===P.avail_out&&(V=!0)}while((0<P.avail_in||0===P.avail_out)&&x!==y.Z_STREAM_END);return x===y.Z_STREAM_END&&(O=y.Z_FINISH),O===y.Z_FINISH?(x=E.inflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===y.Z_OK):O!==y.Z_SYNC_FLUSH||(this.onEnd(y.Z_OK),!(P.avail_out=0))},h.prototype.onData=function(v){this.chunks.push(v)},h.prototype.onEnd=function(v){v===y.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):I.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},w.Inflate=h,w.inflate=m,w.inflateRaw=function(v,b){return(b=b||{}).raw=!0,m(v,b)},w.ungzip=m},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(X,D,w){"use strict";var E=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";w.assign=function(y){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var p=g.shift();if(p){if("object"!=typeof p)throw new TypeError(p+"must be non-object");for(var d in p)p.hasOwnProperty(d)&&(y[d]=p[d])}}return y},w.shrinkBuf=function(y,g){return y.length===g?y:y.subarray?y.subarray(0,g):(y.length=g,y)};var I={arraySet:function(y,g,p,d,c){if(g.subarray&&y.subarray)y.set(g.subarray(p,p+d),c);else for(var h=0;h<d;h++)y[c+h]=g[p+h]},flattenChunks:function(y){var g,p,d,c,h,m;for(g=d=0,p=y.length;g<p;g++)d+=y[g].length;for(m=new Uint8Array(d),g=c=0,p=y.length;g<p;g++)m.set(h=y[g],c),c+=h.length;return m}},C={arraySet:function(y,g,p,d,c){for(var h=0;h<d;h++)y[c+h]=g[p+h]},flattenChunks:function(y){return[].concat.apply([],y)}};w.setTyped=function(y){y?(w.Buf8=Uint8Array,w.Buf16=Uint16Array,w.Buf32=Int32Array,w.assign(w,I)):(w.Buf8=Array,w.Buf16=Array,w.Buf32=Array,w.assign(w,C))},w.setTyped(E)},{}],42:[function(X,D,w){"use strict";var E=X("./common"),I=!0,C=!0;try{String.fromCharCode.apply(null,[0])}catch{I=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{C=!1}for(var y=new E.Buf8(256),g=0;g<256;g++)y[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function p(d,c){if(c<65537&&(d.subarray&&C||!d.subarray&&I))return String.fromCharCode.apply(null,E.shrinkBuf(d,c));for(var h="",m=0;m<c;m++)h+=String.fromCharCode(d[m]);return h}y[254]=y[254]=1,w.string2buf=function(d){var c,h,m,v,b,x=d.length,O=0;for(v=0;v<x;v++)55296==(64512&(h=d.charCodeAt(v)))&&v+1<x&&56320==(64512&(m=d.charCodeAt(v+1)))&&(h=65536+(h-55296<<10)+(m-56320),v++),O+=h<128?1:h<2048?2:h<65536?3:4;for(c=new E.Buf8(O),v=b=0;b<O;v++)55296==(64512&(h=d.charCodeAt(v)))&&v+1<x&&56320==(64512&(m=d.charCodeAt(v+1)))&&(h=65536+(h-55296<<10)+(m-56320),v++),h<128?c[b++]=h:(h<2048?c[b++]=192|h>>>6:(h<65536?c[b++]=224|h>>>12:(c[b++]=240|h>>>18,c[b++]=128|h>>>12&63),c[b++]=128|h>>>6&63),c[b++]=128|63&h);return c},w.buf2binstring=function(d){return p(d,d.length)},w.binstring2buf=function(d){for(var c=new E.Buf8(d.length),h=0,m=c.length;h<m;h++)c[h]=d.charCodeAt(h);return c},w.buf2string=function(d,c){var h,m,v,b,x=c||d.length,O=new Array(2*x);for(h=m=0;h<x;)if((v=d[h++])<128)O[m++]=v;else if(4<(b=y[v]))O[m++]=65533,h+=b-1;else{for(v&=2===b?31:3===b?15:7;1<b&&h<x;)v=v<<6|63&d[h++],b--;1<b?O[m++]=65533:v<65536?O[m++]=v:(O[m++]=55296|(v-=65536)>>10&1023,O[m++]=56320|1023&v)}return p(O,m)},w.utf8border=function(d,c){var h;for((c=c||d.length)>d.length&&(c=d.length),h=c-1;0<=h&&128==(192&d[h]);)h--;return h<0||0===h?c:h+y[d[h]]>c?h:c}},{"./common":41}],43:[function(X,D,w){"use strict";D.exports=function(E,I,C,y){for(var g=65535&E|0,p=E>>>16&65535|0,d=0;0!==C;){for(C-=d=2e3<C?2e3:C;p=p+(g=g+I[y++]|0)|0,--d;);g%=65521,p%=65521}return g|p<<16|0}},{}],44:[function(X,D,w){"use strict";D.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(X,D,w){"use strict";var E=function(){for(var I,C=[],y=0;y<256;y++){I=y;for(var g=0;g<8;g++)I=1&I?3988292384^I>>>1:I>>>1;C[y]=I}return C}();D.exports=function(I,C,y,g){var p=E,d=g+y;I^=-1;for(var c=g;c<d;c++)I=I>>>8^p[255&(I^C[c])];return-1^I}},{}],46:[function(X,D,w){"use strict";var E,I=X("../utils/common"),C=X("./trees"),y=X("./adler32"),g=X("./crc32"),p=X("./messages"),m=-2,V=258,H=262,q=113;function ge(ee,Ce){return ee.msg=p[Ce],Ce}function pe(ee){return(ee<<1)-(4<ee?9:0)}function le(ee){for(var Ce=ee.length;0<=--Ce;)ee[Ce]=0}function ce(ee){var Ce=ee.state,De=Ce.pending;De>ee.avail_out&&(De=ee.avail_out),0!==De&&(I.arraySet(ee.output,Ce.pending_buf,Ce.pending_out,De,ee.next_out),ee.next_out+=De,Ce.pending_out+=De,ee.total_out+=De,ee.avail_out-=De,Ce.pending-=De,0===Ce.pending&&(Ce.pending_out=0))}function oe(ee,Ce){C._tr_flush_block(ee,0<=ee.block_start?ee.block_start:-1,ee.strstart-ee.block_start,Ce),ee.block_start=ee.strstart,ce(ee.strm)}function K(ee,Ce){ee.pending_buf[ee.pending++]=Ce}function Q(ee,Ce){ee.pending_buf[ee.pending++]=Ce>>>8&255,ee.pending_buf[ee.pending++]=255&Ce}function de(ee,Ce){var De,ke,Fe=ee.max_chain_length,ze=ee.strstart,Pe=ee.prev_length,be=ee.nice_match,me=ee.strstart>ee.w_size-H?ee.strstart-(ee.w_size-H):0,Me=ee.window,Ue=ee.w_mask,st=ee.prev,Lt=ee.strstart+V,ln=Me[ze+Pe-1],Mn=Me[ze+Pe];ee.prev_length>=ee.good_match&&(Fe>>=2),be>ee.lookahead&&(be=ee.lookahead);do{if(Me[(De=Ce)+Pe]===Mn&&Me[De+Pe-1]===ln&&Me[De]===Me[ze]&&Me[++De]===Me[ze+1]){ze+=2,De++;do{}while(Me[++ze]===Me[++De]&&Me[++ze]===Me[++De]&&Me[++ze]===Me[++De]&&Me[++ze]===Me[++De]&&Me[++ze]===Me[++De]&&Me[++ze]===Me[++De]&&Me[++ze]===Me[++De]&&Me[++ze]===Me[++De]&&ze<Lt);if(ke=V-(Lt-ze),ze=Lt-V,Pe<ke){if(ee.match_start=Ce,be<=(Pe=ke))break;ln=Me[ze+Pe-1],Mn=Me[ze+Pe]}}}while((Ce=st[Ce&Ue])>me&&0!=--Fe);return Pe<=ee.lookahead?Pe:ee.lookahead}function Oe(ee){var Ce,De,ke,Fe,ze,Pe,be,me,Me,Ue,st=ee.w_size;do{if(Fe=ee.window_size-ee.lookahead-ee.strstart,ee.strstart>=st+(st-H)){for(I.arraySet(ee.window,ee.window,st,st,0),ee.match_start-=st,ee.strstart-=st,ee.block_start-=st,Ce=De=ee.hash_size;ke=ee.head[--Ce],ee.head[Ce]=st<=ke?ke-st:0,--De;);for(Ce=De=st;ke=ee.prev[--Ce],ee.prev[Ce]=st<=ke?ke-st:0,--De;);Fe+=st}if(0===ee.strm.avail_in)break;if(be=ee.window,me=ee.strstart+ee.lookahead,Ue=void 0,(Me=Fe)<(Ue=(Pe=ee.strm).avail_in)&&(Ue=Me),De=0===Ue?0:(Pe.avail_in-=Ue,I.arraySet(be,Pe.input,Pe.next_in,Ue,me),1===Pe.state.wrap?Pe.adler=y(Pe.adler,be,Ue,me):2===Pe.state.wrap&&(Pe.adler=g(Pe.adler,be,Ue,me)),Pe.next_in+=Ue,Pe.total_in+=Ue,Ue),ee.lookahead+=De,ee.lookahead+ee.insert>=3)for(ee.ins_h=ee.window[ze=ee.strstart-ee.insert],ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ze+1])&ee.hash_mask;ee.insert&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ze+3-1])&ee.hash_mask,ee.prev[ze&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ze,ze++,ee.insert--,!(ee.lookahead+ee.insert<3)););}while(ee.lookahead<H&&0!==ee.strm.avail_in)}function Ae(ee,Ce){for(var De,ke;;){if(ee.lookahead<H){if(Oe(ee),ee.lookahead<H&&0===Ce)return 1;if(0===ee.lookahead)break}if(De=0,ee.lookahead>=3&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+3-1])&ee.hash_mask,De=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart),0!==De&&ee.strstart-De<=ee.w_size-H&&(ee.match_length=de(ee,De)),ee.match_length>=3)if(ke=C._tr_tally(ee,ee.strstart-ee.match_start,ee.match_length-3),ee.lookahead-=ee.match_length,ee.match_length<=ee.max_lazy_match&&ee.lookahead>=3){for(ee.match_length--;ee.strstart++,ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+3-1])&ee.hash_mask,De=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart,0!=--ee.match_length;);ee.strstart++}else ee.strstart+=ee.match_length,ee.match_length=0,ee.ins_h=ee.window[ee.strstart],ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+1])&ee.hash_mask;else ke=C._tr_tally(ee,0,ee.window[ee.strstart]),ee.lookahead--,ee.strstart++;if(ke&&(oe(ee,!1),0===ee.strm.avail_out))return 1}return ee.insert=ee.strstart<2?ee.strstart:2,4===Ce?(oe(ee,!0),0===ee.strm.avail_out?3:4):ee.last_lit&&(oe(ee,!1),0===ee.strm.avail_out)?1:2}function Ne(ee,Ce){for(var De,ke,Fe;;){if(ee.lookahead<H){if(Oe(ee),ee.lookahead<H&&0===Ce)return 1;if(0===ee.lookahead)break}if(De=0,ee.lookahead>=3&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+3-1])&ee.hash_mask,De=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart),ee.prev_length=ee.match_length,ee.prev_match=ee.match_start,ee.match_length=2,0!==De&&ee.prev_length<ee.max_lazy_match&&ee.strstart-De<=ee.w_size-H&&(ee.match_length=de(ee,De),ee.match_length<=5&&(1===ee.strategy||3===ee.match_length&&4096<ee.strstart-ee.match_start)&&(ee.match_length=2)),ee.prev_length>=3&&ee.match_length<=ee.prev_length){for(Fe=ee.strstart+ee.lookahead-3,ke=C._tr_tally(ee,ee.strstart-1-ee.prev_match,ee.prev_length-3),ee.lookahead-=ee.prev_length-1,ee.prev_length-=2;++ee.strstart<=Fe&&(ee.ins_h=(ee.ins_h<<ee.hash_shift^ee.window[ee.strstart+3-1])&ee.hash_mask,De=ee.prev[ee.strstart&ee.w_mask]=ee.head[ee.ins_h],ee.head[ee.ins_h]=ee.strstart),0!=--ee.prev_length;);if(ee.match_available=0,ee.match_length=2,ee.strstart++,ke&&(oe(ee,!1),0===ee.strm.avail_out))return 1}else if(ee.match_available){if((ke=C._tr_tally(ee,0,ee.window[ee.strstart-1]))&&oe(ee,!1),ee.strstart++,ee.lookahead--,0===ee.strm.avail_out)return 1}else ee.match_available=1,ee.strstart++,ee.lookahead--}return ee.match_available&&(ke=C._tr_tally(ee,0,ee.window[ee.strstart-1]),ee.match_available=0),ee.insert=ee.strstart<2?ee.strstart:2,4===Ce?(oe(ee,!0),0===ee.strm.avail_out?3:4):ee.last_lit&&(oe(ee,!1),0===ee.strm.avail_out)?1:2}function Qe(ee,Ce,De,ke,Fe){this.good_length=ee,this.max_lazy=Ce,this.nice_length=De,this.max_chain=ke,this.func=Fe}function $e(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new I.Buf16(1146),this.dyn_dtree=new I.Buf16(122),this.bl_tree=new I.Buf16(78),le(this.dyn_ltree),le(this.dyn_dtree),le(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new I.Buf16(16),this.heap=new I.Buf16(573),le(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new I.Buf16(573),le(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function _e(ee){var Ce;return ee&&ee.state?(ee.total_in=ee.total_out=0,ee.data_type=2,(Ce=ee.state).pending=0,Ce.pending_out=0,Ce.wrap<0&&(Ce.wrap=-Ce.wrap),Ce.status=Ce.wrap?42:q,ee.adler=2===Ce.wrap?0:1,Ce.last_flush=0,C._tr_init(Ce),0):ge(ee,m)}function xe(ee){var De,Ce=_e(ee);return 0===Ce&&((De=ee.state).window_size=2*De.w_size,le(De.head),De.max_lazy_match=E[De.level].max_lazy,De.good_match=E[De.level].good_length,De.nice_match=E[De.level].nice_length,De.max_chain_length=E[De.level].max_chain,De.strstart=0,De.block_start=0,De.lookahead=0,De.insert=0,De.match_length=De.prev_length=2,De.match_available=0,De.ins_h=0),Ce}function ve(ee,Ce,De,ke,Fe,ze){if(!ee)return m;var Pe=1;if(-1===Ce&&(Ce=6),ke<0?(Pe=0,ke=-ke):15<ke&&(Pe=2,ke-=16),Fe<1||9<Fe||8!==De||ke<8||15<ke||Ce<0||9<Ce||ze<0||4<ze)return ge(ee,m);8===ke&&(ke=9);var be=new $e;return(ee.state=be).strm=ee,be.wrap=Pe,be.gzhead=null,be.w_bits=ke,be.w_size=1<<be.w_bits,be.w_mask=be.w_size-1,be.hash_bits=Fe+7,be.hash_size=1<<be.hash_bits,be.hash_mask=be.hash_size-1,be.hash_shift=~~((be.hash_bits+3-1)/3),be.window=new I.Buf8(2*be.w_size),be.head=new I.Buf16(be.hash_size),be.prev=new I.Buf16(be.w_size),be.lit_bufsize=1<<Fe+6,be.pending_buf_size=4*be.lit_bufsize,be.pending_buf=new I.Buf8(be.pending_buf_size),be.d_buf=1*be.lit_bufsize,be.l_buf=3*be.lit_bufsize,be.level=Ce,be.strategy=ze,be.method=De,xe(ee)}E=[new Qe(0,0,0,0,function(ee,Ce){var De=65535;for(De>ee.pending_buf_size-5&&(De=ee.pending_buf_size-5);;){if(ee.lookahead<=1){if(Oe(ee),0===ee.lookahead&&0===Ce)return 1;if(0===ee.lookahead)break}ee.strstart+=ee.lookahead,ee.lookahead=0;var ke=ee.block_start+De;if((0===ee.strstart||ee.strstart>=ke)&&(ee.lookahead=ee.strstart-ke,ee.strstart=ke,oe(ee,!1),0===ee.strm.avail_out)||ee.strstart-ee.block_start>=ee.w_size-H&&(oe(ee,!1),0===ee.strm.avail_out))return 1}return ee.insert=0,4===Ce?(oe(ee,!0),0===ee.strm.avail_out?3:4):(ee.strstart>ee.block_start&&oe(ee,!1),1)}),new Qe(4,4,8,4,Ae),new Qe(4,5,16,8,Ae),new Qe(4,6,32,32,Ae),new Qe(4,4,16,16,Ne),new Qe(8,16,32,32,Ne),new Qe(8,16,128,128,Ne),new Qe(8,32,128,256,Ne),new Qe(32,128,258,1024,Ne),new Qe(32,258,258,4096,Ne)],w.deflateInit=function(ee,Ce){return ve(ee,Ce,8,15,8,0)},w.deflateInit2=ve,w.deflateReset=xe,w.deflateResetKeep=_e,w.deflateSetHeader=function(ee,Ce){return ee&&ee.state?2!==ee.state.wrap?m:(ee.state.gzhead=Ce,0):m},w.deflate=function(ee,Ce){var De,ke,Fe,ze;if(!ee||!ee.state||5<Ce||Ce<0)return ee?ge(ee,m):m;if(ke=ee.state,!ee.output||!ee.input&&0!==ee.avail_in||666===ke.status&&4!==Ce)return ge(ee,0===ee.avail_out?-5:m);if(ke.strm=ee,De=ke.last_flush,ke.last_flush=Ce,42===ke.status)if(2===ke.wrap)ee.adler=0,K(ke,31),K(ke,139),K(ke,8),ke.gzhead?(K(ke,(ke.gzhead.text?1:0)+(ke.gzhead.hcrc?2:0)+(ke.gzhead.extra?4:0)+(ke.gzhead.name?8:0)+(ke.gzhead.comment?16:0)),K(ke,255&ke.gzhead.time),K(ke,ke.gzhead.time>>8&255),K(ke,ke.gzhead.time>>16&255),K(ke,ke.gzhead.time>>24&255),K(ke,9===ke.level?2:2<=ke.strategy||ke.level<2?4:0),K(ke,255&ke.gzhead.os),ke.gzhead.extra&&ke.gzhead.extra.length&&(K(ke,255&ke.gzhead.extra.length),K(ke,ke.gzhead.extra.length>>8&255)),ke.gzhead.hcrc&&(ee.adler=g(ee.adler,ke.pending_buf,ke.pending,0)),ke.gzindex=0,ke.status=69):(K(ke,0),K(ke,0),K(ke,0),K(ke,0),K(ke,0),K(ke,9===ke.level?2:2<=ke.strategy||ke.level<2?4:0),K(ke,3),ke.status=q);else{var Pe=8+(ke.w_bits-8<<4)<<8;Pe|=(2<=ke.strategy||ke.level<2?0:ke.level<6?1:6===ke.level?2:3)<<6,0!==ke.strstart&&(Pe|=32),Pe+=31-Pe%31,ke.status=q,Q(ke,Pe),0!==ke.strstart&&(Q(ke,ee.adler>>>16),Q(ke,65535&ee.adler)),ee.adler=1}if(69===ke.status)if(ke.gzhead.extra){for(Fe=ke.pending;ke.gzindex<(65535&ke.gzhead.extra.length)&&(ke.pending!==ke.pending_buf_size||(ke.gzhead.hcrc&&ke.pending>Fe&&(ee.adler=g(ee.adler,ke.pending_buf,ke.pending-Fe,Fe)),ce(ee),Fe=ke.pending,ke.pending!==ke.pending_buf_size));)K(ke,255&ke.gzhead.extra[ke.gzindex]),ke.gzindex++;ke.gzhead.hcrc&&ke.pending>Fe&&(ee.adler=g(ee.adler,ke.pending_buf,ke.pending-Fe,Fe)),ke.gzindex===ke.gzhead.extra.length&&(ke.gzindex=0,ke.status=73)}else ke.status=73;if(73===ke.status)if(ke.gzhead.name){Fe=ke.pending;do{if(ke.pending===ke.pending_buf_size&&(ke.gzhead.hcrc&&ke.pending>Fe&&(ee.adler=g(ee.adler,ke.pending_buf,ke.pending-Fe,Fe)),ce(ee),Fe=ke.pending,ke.pending===ke.pending_buf_size)){ze=1;break}ze=ke.gzindex<ke.gzhead.name.length?255&ke.gzhead.name.charCodeAt(ke.gzindex++):0,K(ke,ze)}while(0!==ze);ke.gzhead.hcrc&&ke.pending>Fe&&(ee.adler=g(ee.adler,ke.pending_buf,ke.pending-Fe,Fe)),0===ze&&(ke.gzindex=0,ke.status=91)}else ke.status=91;if(91===ke.status)if(ke.gzhead.comment){Fe=ke.pending;do{if(ke.pending===ke.pending_buf_size&&(ke.gzhead.hcrc&&ke.pending>Fe&&(ee.adler=g(ee.adler,ke.pending_buf,ke.pending-Fe,Fe)),ce(ee),Fe=ke.pending,ke.pending===ke.pending_buf_size)){ze=1;break}ze=ke.gzindex<ke.gzhead.comment.length?255&ke.gzhead.comment.charCodeAt(ke.gzindex++):0,K(ke,ze)}while(0!==ze);ke.gzhead.hcrc&&ke.pending>Fe&&(ee.adler=g(ee.adler,ke.pending_buf,ke.pending-Fe,Fe)),0===ze&&(ke.status=103)}else ke.status=103;if(103===ke.status&&(ke.gzhead.hcrc?(ke.pending+2>ke.pending_buf_size&&ce(ee),ke.pending+2<=ke.pending_buf_size&&(K(ke,255&ee.adler),K(ke,ee.adler>>8&255),ee.adler=0,ke.status=q)):ke.status=q),0!==ke.pending){if(ce(ee),0===ee.avail_out)return ke.last_flush=-1,0}else if(0===ee.avail_in&&pe(Ce)<=pe(De)&&4!==Ce)return ge(ee,-5);if(666===ke.status&&0!==ee.avail_in)return ge(ee,-5);if(0!==ee.avail_in||0!==ke.lookahead||0!==Ce&&666!==ke.status){var be=2===ke.strategy?function(me,Me){for(var Ue;;){if(0===me.lookahead&&(Oe(me),0===me.lookahead)){if(0===Me)return 1;break}if(me.match_length=0,Ue=C._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++,Ue&&(oe(me,!1),0===me.strm.avail_out))return 1}return me.insert=0,4===Me?(oe(me,!0),0===me.strm.avail_out?3:4):me.last_lit&&(oe(me,!1),0===me.strm.avail_out)?1:2}(ke,Ce):3===ke.strategy?function(me,Me){for(var Ue,st,Lt,ln,Mn=me.window;;){if(me.lookahead<=V){if(Oe(me),me.lookahead<=V&&0===Me)return 1;if(0===me.lookahead)break}if(me.match_length=0,me.lookahead>=3&&0<me.strstart&&(st=Mn[Lt=me.strstart-1])===Mn[++Lt]&&st===Mn[++Lt]&&st===Mn[++Lt]){ln=me.strstart+V;do{}while(st===Mn[++Lt]&&st===Mn[++Lt]&&st===Mn[++Lt]&&st===Mn[++Lt]&&st===Mn[++Lt]&&st===Mn[++Lt]&&st===Mn[++Lt]&&st===Mn[++Lt]&&Lt<ln);me.match_length=V-(ln-Lt),me.match_length>me.lookahead&&(me.match_length=me.lookahead)}if(me.match_length>=3?(Ue=C._tr_tally(me,1,me.match_length-3),me.lookahead-=me.match_length,me.strstart+=me.match_length,me.match_length=0):(Ue=C._tr_tally(me,0,me.window[me.strstart]),me.lookahead--,me.strstart++),Ue&&(oe(me,!1),0===me.strm.avail_out))return 1}return me.insert=0,4===Me?(oe(me,!0),0===me.strm.avail_out?3:4):me.last_lit&&(oe(me,!1),0===me.strm.avail_out)?1:2}(ke,Ce):E[ke.level].func(ke,Ce);if(3!==be&&4!==be||(ke.status=666),1===be||3===be)return 0===ee.avail_out&&(ke.last_flush=-1),0;if(2===be&&(1===Ce?C._tr_align(ke):5!==Ce&&(C._tr_stored_block(ke,0,0,!1),3===Ce&&(le(ke.head),0===ke.lookahead&&(ke.strstart=0,ke.block_start=0,ke.insert=0))),ce(ee),0===ee.avail_out))return ke.last_flush=-1,0}return 4!==Ce?0:ke.wrap<=0?1:(2===ke.wrap?(K(ke,255&ee.adler),K(ke,ee.adler>>8&255),K(ke,ee.adler>>16&255),K(ke,ee.adler>>24&255),K(ke,255&ee.total_in),K(ke,ee.total_in>>8&255),K(ke,ee.total_in>>16&255),K(ke,ee.total_in>>24&255)):(Q(ke,ee.adler>>>16),Q(ke,65535&ee.adler)),ce(ee),0<ke.wrap&&(ke.wrap=-ke.wrap),0!==ke.pending?0:1)},w.deflateEnd=function(ee){var Ce;return ee&&ee.state?42!==(Ce=ee.state.status)&&69!==Ce&&73!==Ce&&91!==Ce&&103!==Ce&&Ce!==q&&666!==Ce?ge(ee,m):(ee.state=null,Ce===q?ge(ee,-3):0):m},w.deflateSetDictionary=function(ee,Ce){var De,ke,Fe,ze,Pe,be,me,Me,Ue=Ce.length;if(!ee||!ee.state||2===(ze=(De=ee.state).wrap)||1===ze&&42!==De.status||De.lookahead)return m;for(1===ze&&(ee.adler=y(ee.adler,Ce,Ue,0)),De.wrap=0,Ue>=De.w_size&&(0===ze&&(le(De.head),De.strstart=0,De.block_start=0,De.insert=0),Me=new I.Buf8(De.w_size),I.arraySet(Me,Ce,Ue-De.w_size,De.w_size,0),Ce=Me,Ue=De.w_size),Pe=ee.avail_in,be=ee.next_in,me=ee.input,ee.avail_in=Ue,ee.next_in=0,ee.input=Ce,Oe(De);De.lookahead>=3;){for(ke=De.strstart,Fe=De.lookahead-2;De.ins_h=(De.ins_h<<De.hash_shift^De.window[ke+3-1])&De.hash_mask,De.prev[ke&De.w_mask]=De.head[De.ins_h],De.head[De.ins_h]=ke,ke++,--Fe;);De.strstart=ke,De.lookahead=2,Oe(De)}return De.strstart+=De.lookahead,De.block_start=De.strstart,De.insert=De.lookahead,De.lookahead=0,De.match_length=De.prev_length=2,De.match_available=0,ee.next_in=be,ee.input=me,ee.avail_in=Pe,De.wrap=ze,0},w.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(X,D,w){"use strict";D.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(X,D,w){"use strict";D.exports=function(E,I){var C,y,g,p,d,c,h,m,v,b,x,O,k,M,A,F,P,N,B,V,H,W,q,G,J;G=E.input,g=(y=E.next_in)+(E.avail_in-5),J=E.output,d=(p=E.next_out)-(I-E.avail_out),c=p+(E.avail_out-257),h=(C=E.state).dmax,m=C.wsize,v=C.whave,b=C.wnext,x=C.window,O=C.hold,k=C.bits,M=C.lencode,A=C.distcode,F=(1<<C.lenbits)-1,P=(1<<C.distbits)-1;e:do{k<15&&(O+=G[y++]<<k,O+=G[y++]<<(k+=8),k+=8),N=M[O&F];t:for(;;){if(O>>>=B=N>>>24,k-=B,0==(B=N>>>16&255))J[p++]=65535&N;else{if(!(16&B)){if(!(64&B)){N=M[(65535&N)+(O&(1<<B)-1)];continue t}if(32&B){C.mode=12;break e}E.msg="invalid literal/length code",C.mode=30;break e}V=65535&N,(B&=15)&&(k<B&&(O+=G[y++]<<k,k+=8),V+=O&(1<<B)-1,O>>>=B,k-=B),k<15&&(O+=G[y++]<<k,O+=G[y++]<<(k+=8),k+=8),N=A[O&P];n:for(;;){if(O>>>=B=N>>>24,k-=B,!(16&(B=N>>>16&255))){if(!(64&B)){N=A[(65535&N)+(O&(1<<B)-1)];continue n}E.msg="invalid distance code",C.mode=30;break e}if(H=65535&N,k<(B&=15)&&(O+=G[y++]<<k,(k+=8)<B&&(O+=G[y++]<<k,k+=8)),h<(H+=O&(1<<B)-1)){E.msg="invalid distance too far back",C.mode=30;break e}if(O>>>=B,k-=B,(B=p-d)<H){if(v<(B=H-B)&&C.sane){E.msg="invalid distance too far back",C.mode=30;break e}if(q=x,(W=0)===b){if(W+=m-B,B<V){for(V-=B;J[p++]=x[W++],--B;);W=p-H,q=J}}else if(b<B){if(W+=m+b-B,(B-=b)<V){for(V-=B;J[p++]=x[W++],--B;);if(W=0,b<V){for(V-=B=b;J[p++]=x[W++],--B;);W=p-H,q=J}}}else if(W+=b-B,B<V){for(V-=B;J[p++]=x[W++],--B;);W=p-H,q=J}for(;2<V;)J[p++]=q[W++],J[p++]=q[W++],J[p++]=q[W++],V-=3;V&&(J[p++]=q[W++],1<V&&(J[p++]=q[W++]))}else{for(W=p-H;J[p++]=J[W++],J[p++]=J[W++],J[p++]=J[W++],2<(V-=3););V&&(J[p++]=J[W++],1<V&&(J[p++]=J[W++]))}break}}break}}while(y<g&&p<c);y-=V=k>>3,O&=(1<<(k-=V<<3))-1,E.next_in=y,E.next_out=p,E.avail_in=y<g?g-y+5:5-(y-g),E.avail_out=p<c?c-p+257:257-(p-c),C.hold=O,C.bits=k}},{}],49:[function(X,D,w){"use strict";var E=X("../utils/common"),I=X("./adler32"),C=X("./crc32"),y=X("./inffast"),g=X("./inftrees"),h=-2;function x(W){return(W>>>24&255)+(W>>>8&65280)+((65280&W)<<8)+((255&W)<<24)}function O(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new E.Buf16(320),this.work=new E.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function k(W){var q;return W&&W.state?(W.total_in=W.total_out=(q=W.state).total=0,W.msg="",q.wrap&&(W.adler=1&q.wrap),q.mode=1,q.last=0,q.havedict=0,q.dmax=32768,q.head=null,q.hold=0,q.bits=0,q.lencode=q.lendyn=new E.Buf32(852),q.distcode=q.distdyn=new E.Buf32(592),q.sane=1,q.back=-1,0):h}function M(W){var q;return W&&W.state?((q=W.state).wsize=0,q.whave=0,q.wnext=0,k(W)):h}function A(W,q){var G,J;return W&&W.state?(J=W.state,q<0?(G=0,q=-q):(G=1+(q>>4),q<48&&(q&=15)),q&&(q<8||15<q)?h:(null!==J.window&&J.wbits!==q&&(J.window=null),J.wrap=G,J.wbits=q,M(W))):h}function F(W,q){var G,J;return W?(J=new O,(W.state=J).window=null,0!==(G=A(W,q))&&(W.state=null),G):h}var P,N,B=!0;function V(W){if(B){var q;for(P=new E.Buf32(512),N=new E.Buf32(32),q=0;q<144;)W.lens[q++]=8;for(;q<256;)W.lens[q++]=9;for(;q<280;)W.lens[q++]=7;for(;q<288;)W.lens[q++]=8;for(g(1,W.lens,0,288,P,0,W.work,{bits:9}),q=0;q<32;)W.lens[q++]=5;g(2,W.lens,0,32,N,0,W.work,{bits:5}),B=!1}W.lencode=P,W.lenbits=9,W.distcode=N,W.distbits=5}function H(W,q,G,J){var ne,ae=W.state;return null===ae.window&&(ae.wsize=1<<ae.wbits,ae.wnext=0,ae.whave=0,ae.window=new E.Buf8(ae.wsize)),J>=ae.wsize?(E.arraySet(ae.window,q,G-ae.wsize,ae.wsize,0),ae.wnext=0,ae.whave=ae.wsize):(J<(ne=ae.wsize-ae.wnext)&&(ne=J),E.arraySet(ae.window,q,G-J,ne,ae.wnext),(J-=ne)?(E.arraySet(ae.window,q,G-J,J,0),ae.wnext=J,ae.whave=ae.wsize):(ae.wnext+=ne,ae.wnext===ae.wsize&&(ae.wnext=0),ae.whave<ae.wsize&&(ae.whave+=ne))),0}w.inflateReset=M,w.inflateReset2=A,w.inflateResetKeep=k,w.inflateInit=function(W){return F(W,15)},w.inflateInit2=F,w.inflate=function(W,q){var G,J,ne,ae,ge,pe,le,ce,oe,K,Q,de,Oe,Ae,Ne,Qe,$e,_e,xe,ve,ee,Ce,De,ke,Fe=0,ze=new E.Buf8(4),Pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!W||!W.state||!W.output||!W.input&&0!==W.avail_in)return h;12===(G=W.state).mode&&(G.mode=13),ge=W.next_out,ne=W.output,ae=W.next_in,J=W.input,ce=G.hold,oe=G.bits,K=pe=W.avail_in,Q=le=W.avail_out,Ce=0;e:for(;;)switch(G.mode){case 1:if(0===G.wrap){G.mode=13;break}for(;oe<16;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}if(2&G.wrap&&35615===ce){ze[G.check=0]=255&ce,ze[1]=ce>>>8&255,G.check=C(G.check,ze,2,0),oe=ce=0,G.mode=2;break}if(G.flags=0,G.head&&(G.head.done=!1),!(1&G.wrap)||(((255&ce)<<8)+(ce>>8))%31){W.msg="incorrect header check",G.mode=30;break}if(8!=(15&ce)){W.msg="unknown compression method",G.mode=30;break}if(oe-=4,ee=8+(15&(ce>>>=4)),0===G.wbits)G.wbits=ee;else if(ee>G.wbits){W.msg="invalid window size",G.mode=30;break}G.dmax=1<<ee,W.adler=G.check=1,G.mode=512&ce?10:12,oe=ce=0;break;case 2:for(;oe<16;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}if(G.flags=ce,8!=(255&G.flags)){W.msg="unknown compression method",G.mode=30;break}if(57344&G.flags){W.msg="unknown header flags set",G.mode=30;break}G.head&&(G.head.text=ce>>8&1),512&G.flags&&(ze[0]=255&ce,ze[1]=ce>>>8&255,G.check=C(G.check,ze,2,0)),oe=ce=0,G.mode=3;case 3:for(;oe<32;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}G.head&&(G.head.time=ce),512&G.flags&&(ze[0]=255&ce,ze[1]=ce>>>8&255,ze[2]=ce>>>16&255,ze[3]=ce>>>24&255,G.check=C(G.check,ze,4,0)),oe=ce=0,G.mode=4;case 4:for(;oe<16;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}G.head&&(G.head.xflags=255&ce,G.head.os=ce>>8),512&G.flags&&(ze[0]=255&ce,ze[1]=ce>>>8&255,G.check=C(G.check,ze,2,0)),oe=ce=0,G.mode=5;case 5:if(1024&G.flags){for(;oe<16;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}G.length=ce,G.head&&(G.head.extra_len=ce),512&G.flags&&(ze[0]=255&ce,ze[1]=ce>>>8&255,G.check=C(G.check,ze,2,0)),oe=ce=0}else G.head&&(G.head.extra=null);G.mode=6;case 6:if(1024&G.flags&&(pe<(de=G.length)&&(de=pe),de&&(G.head&&(ee=G.head.extra_len-G.length,G.head.extra||(G.head.extra=new Array(G.head.extra_len)),E.arraySet(G.head.extra,J,ae,de,ee)),512&G.flags&&(G.check=C(G.check,J,de,ae)),pe-=de,ae+=de,G.length-=de),G.length))break e;G.length=0,G.mode=7;case 7:if(2048&G.flags){if(0===pe)break e;for(de=0;ee=J[ae+de++],G.head&&ee&&G.length<65536&&(G.head.name+=String.fromCharCode(ee)),ee&&de<pe;);if(512&G.flags&&(G.check=C(G.check,J,de,ae)),pe-=de,ae+=de,ee)break e}else G.head&&(G.head.name=null);G.length=0,G.mode=8;case 8:if(4096&G.flags){if(0===pe)break e;for(de=0;ee=J[ae+de++],G.head&&ee&&G.length<65536&&(G.head.comment+=String.fromCharCode(ee)),ee&&de<pe;);if(512&G.flags&&(G.check=C(G.check,J,de,ae)),pe-=de,ae+=de,ee)break e}else G.head&&(G.head.comment=null);G.mode=9;case 9:if(512&G.flags){for(;oe<16;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}if(ce!==(65535&G.check)){W.msg="header crc mismatch",G.mode=30;break}oe=ce=0}G.head&&(G.head.hcrc=G.flags>>9&1,G.head.done=!0),W.adler=G.check=0,G.mode=12;break;case 10:for(;oe<32;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}W.adler=G.check=x(ce),oe=ce=0,G.mode=11;case 11:if(0===G.havedict)return W.next_out=ge,W.avail_out=le,W.next_in=ae,W.avail_in=pe,G.hold=ce,G.bits=oe,2;W.adler=G.check=1,G.mode=12;case 12:if(5===q||6===q)break e;case 13:if(G.last){ce>>>=7&oe,oe-=7&oe,G.mode=27;break}for(;oe<3;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}switch(G.last=1&ce,oe-=1,3&(ce>>>=1)){case 0:G.mode=14;break;case 1:if(V(G),G.mode=20,6!==q)break;ce>>>=2,oe-=2;break e;case 2:G.mode=17;break;case 3:W.msg="invalid block type",G.mode=30}ce>>>=2,oe-=2;break;case 14:for(ce>>>=7&oe,oe-=7&oe;oe<32;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}if((65535&ce)!=(ce>>>16^65535)){W.msg="invalid stored block lengths",G.mode=30;break}if(G.length=65535&ce,oe=ce=0,G.mode=15,6===q)break e;case 15:G.mode=16;case 16:if(de=G.length){if(pe<de&&(de=pe),le<de&&(de=le),0===de)break e;E.arraySet(ne,J,ae,de,ge),pe-=de,ae+=de,le-=de,ge+=de,G.length-=de;break}G.mode=12;break;case 17:for(;oe<14;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}if(G.nlen=257+(31&ce),oe-=5,G.ndist=1+(31&(ce>>>=5)),oe-=5,G.ncode=4+(15&(ce>>>=5)),ce>>>=4,oe-=4,286<G.nlen||30<G.ndist){W.msg="too many length or distance symbols",G.mode=30;break}G.have=0,G.mode=18;case 18:for(;G.have<G.ncode;){for(;oe<3;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}G.lens[Pe[G.have++]]=7&ce,ce>>>=3,oe-=3}for(;G.have<19;)G.lens[Pe[G.have++]]=0;if(G.lencode=G.lendyn,G.lenbits=7,Ce=g(0,G.lens,0,19,G.lencode,0,G.work,De={bits:G.lenbits}),G.lenbits=De.bits,Ce){W.msg="invalid code lengths set",G.mode=30;break}G.have=0,G.mode=19;case 19:for(;G.have<G.nlen+G.ndist;){for(;Qe=(Fe=G.lencode[ce&(1<<G.lenbits)-1])>>>16&255,$e=65535&Fe,!((Ne=Fe>>>24)<=oe);){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}if($e<16)ce>>>=Ne,oe-=Ne,G.lens[G.have++]=$e;else{if(16===$e){for(ke=Ne+2;oe<ke;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}if(ce>>>=Ne,oe-=Ne,0===G.have){W.msg="invalid bit length repeat",G.mode=30;break}ee=G.lens[G.have-1],de=3+(3&ce),ce>>>=2,oe-=2}else if(17===$e){for(ke=Ne+3;oe<ke;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}oe-=Ne,ee=0,de=3+(7&(ce>>>=Ne)),ce>>>=3,oe-=3}else{for(ke=Ne+7;oe<ke;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}oe-=Ne,ee=0,de=11+(127&(ce>>>=Ne)),ce>>>=7,oe-=7}if(G.have+de>G.nlen+G.ndist){W.msg="invalid bit length repeat",G.mode=30;break}for(;de--;)G.lens[G.have++]=ee}}if(30===G.mode)break;if(0===G.lens[256]){W.msg="invalid code -- missing end-of-block",G.mode=30;break}if(G.lenbits=9,Ce=g(1,G.lens,0,G.nlen,G.lencode,0,G.work,De={bits:G.lenbits}),G.lenbits=De.bits,Ce){W.msg="invalid literal/lengths set",G.mode=30;break}if(G.distbits=6,G.distcode=G.distdyn,Ce=g(2,G.lens,G.nlen,G.ndist,G.distcode,0,G.work,De={bits:G.distbits}),G.distbits=De.bits,Ce){W.msg="invalid distances set",G.mode=30;break}if(G.mode=20,6===q)break e;case 20:G.mode=21;case 21:if(6<=pe&&258<=le){W.next_out=ge,W.avail_out=le,W.next_in=ae,W.avail_in=pe,G.hold=ce,G.bits=oe,y(W,Q),ge=W.next_out,ne=W.output,le=W.avail_out,ae=W.next_in,J=W.input,pe=W.avail_in,ce=G.hold,oe=G.bits,12===G.mode&&(G.back=-1);break}for(G.back=0;Qe=(Fe=G.lencode[ce&(1<<G.lenbits)-1])>>>16&255,$e=65535&Fe,!((Ne=Fe>>>24)<=oe);){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}if(Qe&&!(240&Qe)){for(_e=Ne,xe=Qe,ve=$e;Qe=(Fe=G.lencode[ve+((ce&(1<<_e+xe)-1)>>_e)])>>>16&255,$e=65535&Fe,!(_e+(Ne=Fe>>>24)<=oe);){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}ce>>>=_e,oe-=_e,G.back+=_e}if(ce>>>=Ne,oe-=Ne,G.back+=Ne,G.length=$e,0===Qe){G.mode=26;break}if(32&Qe){G.back=-1,G.mode=12;break}if(64&Qe){W.msg="invalid literal/length code",G.mode=30;break}G.extra=15&Qe,G.mode=22;case 22:if(G.extra){for(ke=G.extra;oe<ke;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}G.length+=ce&(1<<G.extra)-1,ce>>>=G.extra,oe-=G.extra,G.back+=G.extra}G.was=G.length,G.mode=23;case 23:for(;Qe=(Fe=G.distcode[ce&(1<<G.distbits)-1])>>>16&255,$e=65535&Fe,!((Ne=Fe>>>24)<=oe);){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}if(!(240&Qe)){for(_e=Ne,xe=Qe,ve=$e;Qe=(Fe=G.distcode[ve+((ce&(1<<_e+xe)-1)>>_e)])>>>16&255,$e=65535&Fe,!(_e+(Ne=Fe>>>24)<=oe);){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}ce>>>=_e,oe-=_e,G.back+=_e}if(ce>>>=Ne,oe-=Ne,G.back+=Ne,64&Qe){W.msg="invalid distance code",G.mode=30;break}G.offset=$e,G.extra=15&Qe,G.mode=24;case 24:if(G.extra){for(ke=G.extra;oe<ke;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}G.offset+=ce&(1<<G.extra)-1,ce>>>=G.extra,oe-=G.extra,G.back+=G.extra}if(G.offset>G.dmax){W.msg="invalid distance too far back",G.mode=30;break}G.mode=25;case 25:if(0===le)break e;if(G.offset>(de=Q-le)){if((de=G.offset-de)>G.whave&&G.sane){W.msg="invalid distance too far back",G.mode=30;break}Oe=de>G.wnext?G.wsize-(de-=G.wnext):G.wnext-de,de>G.length&&(de=G.length),Ae=G.window}else Ae=ne,Oe=ge-G.offset,de=G.length;for(le<de&&(de=le),le-=de,G.length-=de;ne[ge++]=Ae[Oe++],--de;);0===G.length&&(G.mode=21);break;case 26:if(0===le)break e;ne[ge++]=G.length,le--,G.mode=21;break;case 27:if(G.wrap){for(;oe<32;){if(0===pe)break e;pe--,ce|=J[ae++]<<oe,oe+=8}if(W.total_out+=Q-=le,G.total+=Q,Q&&(W.adler=G.check=G.flags?C(G.check,ne,Q,ge-Q):I(G.check,ne,Q,ge-Q)),Q=le,(G.flags?ce:x(ce))!==G.check){W.msg="incorrect data check",G.mode=30;break}oe=ce=0}G.mode=28;case 28:if(G.wrap&&G.flags){for(;oe<32;){if(0===pe)break e;pe--,ce+=J[ae++]<<oe,oe+=8}if(ce!==(4294967295&G.total)){W.msg="incorrect length check",G.mode=30;break}oe=ce=0}G.mode=29;case 29:Ce=1;break e;case 30:Ce=-3;break e;case 31:return-4;default:return h}return W.next_out=ge,W.avail_out=le,W.next_in=ae,W.avail_in=pe,G.hold=ce,G.bits=oe,(G.wsize||Q!==W.avail_out&&G.mode<30&&(G.mode<27||4!==q))&&H(W,W.output,W.next_out,Q-W.avail_out)?(G.mode=31,-4):(Q-=W.avail_out,W.total_in+=K-=W.avail_in,W.total_out+=Q,G.total+=Q,G.wrap&&Q&&(W.adler=G.check=G.flags?C(G.check,ne,Q,W.next_out-Q):I(G.check,ne,Q,W.next_out-Q)),W.data_type=G.bits+(G.last?64:0)+(12===G.mode?128:0)+(20===G.mode||15===G.mode?256:0),(0==K&&0===Q||4===q)&&0===Ce&&(Ce=-5),Ce)},w.inflateEnd=function(W){if(!W||!W.state)return h;var q=W.state;return q.window&&(q.window=null),W.state=null,0},w.inflateGetHeader=function(W,q){var G;return W&&W.state&&2&(G=W.state).wrap?((G.head=q).done=!1,0):h},w.inflateSetDictionary=function(W,q){var G,J=q.length;return W&&W.state?0!==(G=W.state).wrap&&11!==G.mode?h:11===G.mode&&I(1,q,J,0)!==G.check?-3:H(W,q,J,J)?(G.mode=31,-4):(G.havedict=1,0):h},w.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(X,D,w){"use strict";var E=X("../utils/common"),I=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],C=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],y=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],g=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];D.exports=function(p,d,c,h,m,v,b,x){var O,k,M,A,F,P,N,B,V,H=x.bits,W=0,q=0,G=0,J=0,ne=0,ae=0,ge=0,pe=0,le=0,ce=0,oe=null,K=0,Q=new E.Buf16(16),de=new E.Buf16(16),Oe=null,Ae=0;for(W=0;W<=15;W++)Q[W]=0;for(q=0;q<h;q++)Q[d[c+q]]++;for(ne=H,J=15;1<=J&&0===Q[J];J--);if(J<ne&&(ne=J),0===J)return m[v++]=20971520,m[v++]=20971520,x.bits=1,0;for(G=1;G<J&&0===Q[G];G++);for(ne<G&&(ne=G),W=pe=1;W<=15;W++)if(pe<<=1,(pe-=Q[W])<0)return-1;if(0<pe&&(0===p||1!==J))return-1;for(de[1]=0,W=1;W<15;W++)de[W+1]=de[W]+Q[W];for(q=0;q<h;q++)0!==d[c+q]&&(b[de[d[c+q]]++]=q);if(P=0===p?(oe=Oe=b,19):1===p?(oe=I,K-=257,Oe=C,Ae-=257,256):(oe=y,Oe=g,-1),W=G,F=v,ge=q=ce=0,M=-1,A=(le=1<<(ae=ne))-1,1===p&&852<le||2===p&&592<le)return 1;for(;;){for(N=W-ge,V=b[q]<P?(B=0,b[q]):b[q]>P?(B=Oe[Ae+b[q]],oe[K+b[q]]):(B=96,0),O=1<<W-ge,G=k=1<<ae;m[F+(ce>>ge)+(k-=O)]=N<<24|B<<16|V|0,0!==k;);for(O=1<<W-1;ce&O;)O>>=1;if(0!==O?(ce&=O-1,ce+=O):ce=0,q++,0==--Q[W]){if(W===J)break;W=d[c+b[q]]}if(ne<W&&(ce&A)!==M){for(0===ge&&(ge=ne),F+=G,pe=1<<(ae=W-ge);ae+ge<J&&!((pe-=Q[ae+ge])<=0);)ae++,pe<<=1;if(le+=1<<ae,1===p&&852<le||2===p&&592<le)return 1;m[M=ce&A]=ne<<24|ae<<16|F-v|0}}return 0!==ce&&(m[F+ce]=W-ge<<24|64<<16|0),x.bits=ne,0}},{"../utils/common":41}],51:[function(X,D,w){"use strict";D.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(X,D,w){"use strict";var E=X("../utils/common");function y(Fe){for(var ze=Fe.length;0<=--ze;)Fe[ze]=0}var d=256,c=286,h=30,b=15,P=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],N=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=new Array(576);y(H);var W=new Array(60);y(W);var q=new Array(512);y(q);var G=new Array(256);y(G);var J=new Array(29);y(J);var ne,ae,ge,pe=new Array(h);function le(Fe,ze,Pe,be,me){this.static_tree=Fe,this.extra_bits=ze,this.extra_base=Pe,this.elems=be,this.max_length=me,this.has_stree=Fe&&Fe.length}function ce(Fe,ze){this.dyn_tree=Fe,this.max_code=0,this.stat_desc=ze}function oe(Fe){return Fe<256?q[Fe]:q[256+(Fe>>>7)]}function K(Fe,ze){Fe.pending_buf[Fe.pending++]=255&ze,Fe.pending_buf[Fe.pending++]=ze>>>8&255}function Q(Fe,ze,Pe){Fe.bi_valid>16-Pe?(Fe.bi_buf|=ze<<Fe.bi_valid&65535,K(Fe,Fe.bi_buf),Fe.bi_buf=ze>>16-Fe.bi_valid,Fe.bi_valid+=Pe-16):(Fe.bi_buf|=ze<<Fe.bi_valid&65535,Fe.bi_valid+=Pe)}function de(Fe,ze,Pe){Q(Fe,Pe[2*ze],Pe[2*ze+1])}function Oe(Fe,ze){for(var Pe=0;Pe|=1&Fe,Fe>>>=1,Pe<<=1,0<--ze;);return Pe>>>1}function Ae(Fe,ze,Pe){var be,me,Me=new Array(16),Ue=0;for(be=1;be<=b;be++)Me[be]=Ue=Ue+Pe[be-1]<<1;for(me=0;me<=ze;me++){var st=Fe[2*me+1];0!==st&&(Fe[2*me]=Oe(Me[st]++,st))}}function Ne(Fe){var ze;for(ze=0;ze<c;ze++)Fe.dyn_ltree[2*ze]=0;for(ze=0;ze<h;ze++)Fe.dyn_dtree[2*ze]=0;for(ze=0;ze<19;ze++)Fe.bl_tree[2*ze]=0;Fe.dyn_ltree[512]=1,Fe.opt_len=Fe.static_len=0,Fe.last_lit=Fe.matches=0}function Qe(Fe){8<Fe.bi_valid?K(Fe,Fe.bi_buf):0<Fe.bi_valid&&(Fe.pending_buf[Fe.pending++]=Fe.bi_buf),Fe.bi_buf=0,Fe.bi_valid=0}function $e(Fe,ze,Pe,be){var me=2*ze,Me=2*Pe;return Fe[me]<Fe[Me]||Fe[me]===Fe[Me]&&be[ze]<=be[Pe]}function _e(Fe,ze,Pe){for(var be=Fe.heap[Pe],me=Pe<<1;me<=Fe.heap_len&&(me<Fe.heap_len&&$e(ze,Fe.heap[me+1],Fe.heap[me],Fe.depth)&&me++,!$e(ze,be,Fe.heap[me],Fe.depth));)Fe.heap[Pe]=Fe.heap[me],Pe=me,me<<=1;Fe.heap[Pe]=be}function xe(Fe,ze,Pe){var be,me,Me,Ue,st=0;if(0!==Fe.last_lit)for(;be=Fe.pending_buf[Fe.d_buf+2*st]<<8|Fe.pending_buf[Fe.d_buf+2*st+1],me=Fe.pending_buf[Fe.l_buf+st],st++,0===be?de(Fe,me,ze):(de(Fe,(Me=G[me])+d+1,ze),0!==(Ue=P[Me])&&Q(Fe,me-=J[Me],Ue),de(Fe,Me=oe(--be),Pe),0!==(Ue=N[Me])&&Q(Fe,be-=pe[Me],Ue)),st<Fe.last_lit;);de(Fe,256,ze)}function ve(Fe,ze){var Pe,be,me,Me=ze.dyn_tree,Ue=ze.stat_desc.static_tree,st=ze.stat_desc.has_stree,Lt=ze.stat_desc.elems,ln=-1;for(Fe.heap_len=0,Fe.heap_max=573,Pe=0;Pe<Lt;Pe++)0!==Me[2*Pe]?(Fe.heap[++Fe.heap_len]=ln=Pe,Fe.depth[Pe]=0):Me[2*Pe+1]=0;for(;Fe.heap_len<2;)Me[2*(me=Fe.heap[++Fe.heap_len]=ln<2?++ln:0)]=1,Fe.depth[me]=0,Fe.opt_len--,st&&(Fe.static_len-=Ue[2*me+1]);for(ze.max_code=ln,Pe=Fe.heap_len>>1;1<=Pe;Pe--)_e(Fe,Me,Pe);for(me=Lt;Pe=Fe.heap[1],Fe.heap[1]=Fe.heap[Fe.heap_len--],_e(Fe,Me,1),be=Fe.heap[1],Fe.heap[--Fe.heap_max]=Pe,Fe.heap[--Fe.heap_max]=be,Me[2*me]=Me[2*Pe]+Me[2*be],Fe.depth[me]=(Fe.depth[Pe]>=Fe.depth[be]?Fe.depth[Pe]:Fe.depth[be])+1,Me[2*Pe+1]=Me[2*be+1]=me,Fe.heap[1]=me++,_e(Fe,Me,1),2<=Fe.heap_len;);Fe.heap[--Fe.heap_max]=Fe.heap[1],function(Mn,ri){var lr,Ye,ft,jt,an,sn,Bn=ri.dyn_tree,xn=ri.max_code,ai=ri.stat_desc.static_tree,yi=ri.stat_desc.has_stree,Xi=ri.stat_desc.extra_bits,Vr=ri.stat_desc.extra_base,Ar=ri.stat_desc.max_length,ko=0;for(jt=0;jt<=b;jt++)Mn.bl_count[jt]=0;for(Bn[2*Mn.heap[Mn.heap_max]+1]=0,lr=Mn.heap_max+1;lr<573;lr++)Ar<(jt=Bn[2*Bn[2*(Ye=Mn.heap[lr])+1]+1]+1)&&(jt=Ar,ko++),Bn[2*Ye+1]=jt,xn<Ye||(Mn.bl_count[jt]++,an=0,Vr<=Ye&&(an=Xi[Ye-Vr]),Mn.opt_len+=(sn=Bn[2*Ye])*(jt+an),yi&&(Mn.static_len+=sn*(ai[2*Ye+1]+an)));if(0!==ko){do{for(jt=Ar-1;0===Mn.bl_count[jt];)jt--;Mn.bl_count[jt]--,Mn.bl_count[jt+1]+=2,Mn.bl_count[Ar]--,ko-=2}while(0<ko);for(jt=Ar;0!==jt;jt--)for(Ye=Mn.bl_count[jt];0!==Ye;)xn<(ft=Mn.heap[--lr])||(Bn[2*ft+1]!==jt&&(Mn.opt_len+=(jt-Bn[2*ft+1])*Bn[2*ft],Bn[2*ft+1]=jt),Ye--)}}(Fe,ze),Ae(Me,ln,Fe.bl_count)}function ee(Fe,ze,Pe){var be,me,Me=-1,Ue=ze[1],st=0,Lt=7,ln=4;for(0===Ue&&(Lt=138,ln=3),ze[2*(Pe+1)+1]=65535,be=0;be<=Pe;be++)me=Ue,Ue=ze[2*(be+1)+1],++st<Lt&&me===Ue||(st<ln?Fe.bl_tree[2*me]+=st:0!==me?(me!==Me&&Fe.bl_tree[2*me]++,Fe.bl_tree[32]++):st<=10?Fe.bl_tree[34]++:Fe.bl_tree[36]++,Me=me,ln=(st=0)===Ue?(Lt=138,3):me===Ue?(Lt=6,3):(Lt=7,4))}function Ce(Fe,ze,Pe){var be,me,Me=-1,Ue=ze[1],st=0,Lt=7,ln=4;for(0===Ue&&(Lt=138,ln=3),be=0;be<=Pe;be++)if(me=Ue,Ue=ze[2*(be+1)+1],!(++st<Lt&&me===Ue)){if(st<ln)for(;de(Fe,me,Fe.bl_tree),0!=--st;);else 0!==me?(me!==Me&&(de(Fe,me,Fe.bl_tree),st--),de(Fe,16,Fe.bl_tree),Q(Fe,st-3,2)):st<=10?(de(Fe,17,Fe.bl_tree),Q(Fe,st-3,3)):(de(Fe,18,Fe.bl_tree),Q(Fe,st-11,7));Me=me,ln=(st=0)===Ue?(Lt=138,3):me===Ue?(Lt=6,3):(Lt=7,4)}}y(pe);var De=!1;function ke(Fe,ze,Pe,be){var me,Me,Ue;Q(Fe,0+(be?1:0),3),Me=ze,Ue=Pe,Qe(me=Fe),K(me,Ue),K(me,~Ue),E.arraySet(me.pending_buf,me.window,Me,Ue,me.pending),me.pending+=Ue}w._tr_init=function(Fe){De||(function(){var ze,Pe,be,me,Me,Ue=new Array(16);for(me=be=0;me<28;me++)for(J[me]=be,ze=0;ze<1<<P[me];ze++)G[be++]=me;for(G[be-1]=me,me=Me=0;me<16;me++)for(pe[me]=Me,ze=0;ze<1<<N[me];ze++)q[Me++]=me;for(Me>>=7;me<h;me++)for(pe[me]=Me<<7,ze=0;ze<1<<N[me]-7;ze++)q[256+Me++]=me;for(Pe=0;Pe<=b;Pe++)Ue[Pe]=0;for(ze=0;ze<=143;)H[2*ze+1]=8,ze++,Ue[8]++;for(;ze<=255;)H[2*ze+1]=9,ze++,Ue[9]++;for(;ze<=279;)H[2*ze+1]=7,ze++,Ue[7]++;for(;ze<=287;)H[2*ze+1]=8,ze++,Ue[8]++;for(Ae(H,287,Ue),ze=0;ze<h;ze++)W[2*ze+1]=5,W[2*ze]=Oe(ze,5);ne=new le(H,P,257,c,b),ae=new le(W,N,0,h,b),ge=new le(new Array(0),B,0,19,7)}(),De=!0),Fe.l_desc=new ce(Fe.dyn_ltree,ne),Fe.d_desc=new ce(Fe.dyn_dtree,ae),Fe.bl_desc=new ce(Fe.bl_tree,ge),Fe.bi_buf=0,Fe.bi_valid=0,Ne(Fe)},w._tr_stored_block=ke,w._tr_flush_block=function(Fe,ze,Pe,be){var me,Me,Ue=0;0<Fe.level?(2===Fe.strm.data_type&&(Fe.strm.data_type=function(st){var Lt,ln=4093624447;for(Lt=0;Lt<=31;Lt++,ln>>>=1)if(1&ln&&0!==st.dyn_ltree[2*Lt])return 0;if(0!==st.dyn_ltree[18]||0!==st.dyn_ltree[20]||0!==st.dyn_ltree[26])return 1;for(Lt=32;Lt<d;Lt++)if(0!==st.dyn_ltree[2*Lt])return 1;return 0}(Fe)),ve(Fe,Fe.l_desc),ve(Fe,Fe.d_desc),Ue=function(st){var Lt;for(ee(st,st.dyn_ltree,st.l_desc.max_code),ee(st,st.dyn_dtree,st.d_desc.max_code),ve(st,st.bl_desc),Lt=18;3<=Lt&&0===st.bl_tree[2*V[Lt]+1];Lt--);return st.opt_len+=3*(Lt+1)+5+5+4,Lt}(Fe),(Me=Fe.static_len+3+7>>>3)<=(me=Fe.opt_len+3+7>>>3)&&(me=Me)):me=Me=Pe+5,Pe+4<=me&&-1!==ze?ke(Fe,ze,Pe,be):4===Fe.strategy||Me===me?(Q(Fe,2+(be?1:0),3),xe(Fe,H,W)):(Q(Fe,4+(be?1:0),3),function(st,Lt,ln,Mn){var ri;for(Q(st,Lt-257,5),Q(st,ln-1,5),Q(st,Mn-4,4),ri=0;ri<Mn;ri++)Q(st,st.bl_tree[2*V[ri]+1],3);Ce(st,st.dyn_ltree,Lt-1),Ce(st,st.dyn_dtree,ln-1)}(Fe,Fe.l_desc.max_code+1,Fe.d_desc.max_code+1,Ue+1),xe(Fe,Fe.dyn_ltree,Fe.dyn_dtree)),Ne(Fe),be&&Qe(Fe)},w._tr_tally=function(Fe,ze,Pe){return Fe.pending_buf[Fe.d_buf+2*Fe.last_lit]=ze>>>8&255,Fe.pending_buf[Fe.d_buf+2*Fe.last_lit+1]=255&ze,Fe.pending_buf[Fe.l_buf+Fe.last_lit]=255&Pe,Fe.last_lit++,0===ze?Fe.dyn_ltree[2*Pe]++:(Fe.matches++,ze--,Fe.dyn_ltree[2*(G[Pe]+d+1)]++,Fe.dyn_dtree[2*oe(ze)]++),Fe.last_lit===Fe.lit_bufsize-1},w._tr_align=function(Fe){var ze;Q(Fe,2,3),de(Fe,256,H),16===(ze=Fe).bi_valid?(K(ze,ze.bi_buf),ze.bi_buf=0,ze.bi_valid=0):8<=ze.bi_valid&&(ze.pending_buf[ze.pending++]=255&ze.bi_buf,ze.bi_buf>>=8,ze.bi_valid-=8)}},{"../utils/common":41}],53:[function(X,D,w){"use strict";D.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(X,D,w){(function(E){!function(I,C){"use strict";if(!I.setImmediate){var y,g,p,d,c=1,h={},m=!1,v=I.document,b=Object.getPrototypeOf&&Object.getPrototypeOf(I);b=b&&b.setTimeout?b:I,y="[object process]"==={}.toString.call(I.process)?function(M){process.nextTick(function(){O(M)})}:function(){if(I.postMessage&&!I.importScripts){var M=!0,A=I.onmessage;return I.onmessage=function(){M=!1},I.postMessage("","*"),I.onmessage=A,M}}()?(d="setImmediate$"+Math.random()+"$",I.addEventListener?I.addEventListener("message",k,!1):I.attachEvent("onmessage",k),function(M){I.postMessage(d+M,"*")}):I.MessageChannel?((p=new MessageChannel).port1.onmessage=function(M){O(M.data)},function(M){p.port2.postMessage(M)}):v&&"onreadystatechange"in v.createElement("script")?(g=v.documentElement,function(M){var A=v.createElement("script");A.onreadystatechange=function(){O(M),A.onreadystatechange=null,g.removeChild(A),A=null},g.appendChild(A)}):function(M){setTimeout(O,0,M)},b.setImmediate=function(M){"function"!=typeof M&&(M=new Function(""+M));for(var A=new Array(arguments.length-1),F=0;F<A.length;F++)A[F]=arguments[F+1];return h[c]={callback:M,args:A},y(c),c++},b.clearImmediate=x}function x(M){delete h[M]}function O(M){if(m)setTimeout(O,0,M);else{var A=h[M];if(A){m=!0;try{!function(F){var P=F.callback,N=F.args;switch(N.length){case 0:P();break;case 1:P(N[0]);break;case 2:P(N[0],N[1]);break;case 3:P(N[0],N[1],N[2]);break;default:P.apply(undefined,N)}}(A)}finally{x(M),m=!1}}}}function k(M){M.source===I&&"string"==typeof M.data&&0===M.data.indexOf(d)&&O(+M.data.slice(d.length))}}(typeof self>"u"?void 0===E?this:E:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)},824:(fu,X,D)=>{"use strict";var w={};D.r(w),D.d(w,{animation:()=>Xfe,inputType:()=>V2,nativeScrolling:()=>xg,pointerEvents:()=>H2,styleProp:()=>Wy,stylePropPrefix:()=>ZP,supportProp:()=>aW,touch:()=>h_,touchEvents:()=>sW,transition:()=>lW,transitionEndEventName:()=>Zfe});var E={};D.r(E),D.d(E,{circular:()=>cFt,circularSpider:()=>I1e,linear:()=>k1e,linearSpider:()=>hFt});var I={};D.r(I),D.d(I,{donut:()=>ALt,doughnut:()=>MLt,pie:()=>sq});var C={};D.r(C),D.d(C,{candlestick:()=>FLt,stock:()=>lq});var y={};function g(t){return"function"==typeof t}D.r(y),D.d(y,{ChartTracker:()=>ZEe,PieTracker:()=>XEe});let p=!1;const d={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else p&&console.log("RxJS: Back to a better error behavior. Thank you. <3");p=t},get useDeprecatedSynchronousErrorHandling(){return p}};function c(t){setTimeout(()=>{throw t},0)}const h={closed:!0,next(t){},error(t){if(d.useDeprecatedSynchronousErrorHandling)throw t;c(t)},complete(){}},m=Array.isArray||(t=>t&&"number"==typeof t.length);function v(t){return null!==t&&"object"==typeof t}const x=(()=>{function t(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return t.prototype=Object.create(Error.prototype),t})();class O{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof O)e.remove(this);else if(null!==e)for(let a=0;a<e.length;++a)e[a].remove(this);if(g(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){n=a instanceof x?k(a.errors):[a]}}if(m(o)){let a=-1,s=o.length;for(;++a<s;){const l=o[a];if(v(l))try{l.unsubscribe()}catch(u){n=n||[],u instanceof x?n=n.concat(k(u.errors)):n.push(u)}}}if(n)throw new x(n)}add(n){let e=n;if(!n)return O.EMPTY;switch(typeof n){case"function":e=new O(n);case"object":if(e===this||e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if(!(e instanceof O)){const o=e;e=new O,e._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:i}=e;if(null===i)e._parentOrParents=this;else if(i instanceof O){if(i===this)return e;e._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return e;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[e]:r.push(e),e}remove(n){const e=this._subscriptions;if(e){const i=e.indexOf(n);-1!==i&&e.splice(i,1)}}}var t;function k(t){return t.reduce((n,e)=>n.concat(e instanceof x?e.errors:e),[])}O.EMPTY=((t=new O).closed=!0,t);const M="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class F extends O{constructor(n,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=h;break;case 1:if(!n){this.destination=h;break}if("object"==typeof n){n instanceof F?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new P(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new P(this,n,e,i)}}[M](){return this}static create(n,e,i){const r=new F(n,e,i);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class P extends F{constructor(n,e,i,r){super(),this._parentSubscriber=n;let o,a=this;g(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==h&&(a=Object.create(e),g(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=i,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;d.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=d;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=n,e.syncErrorThrown=!0):c(n),this.unsubscribe();else{if(this.unsubscribe(),i)throw n;c(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const e=()=>this._complete.call(this._context);d.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,e){try{n.call(this._context,e)}catch(i){if(this.unsubscribe(),d.useDeprecatedSynchronousErrorHandling)throw i;c(i)}}__tryOrSetError(n,e,i){if(!d.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return d.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=r,n.syncErrorThrown=!0,!0):(c(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const V="function"==typeof Symbol&&Symbol.observable||"@@observable";function H(t){return t}function q(t){return 0===t.length?H:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let G=(()=>{class t{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,a=function B(t,n,e){if(t){if(t instanceof F)return t;if(t[M])return t[M]()}return t||n||e?new F(t,n,e):new F(h)}(e,i,r);if(a.add(o?o.call(a,this.source):this.source||d.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),d.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(e){try{return this._subscribe(e)}catch(i){d.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function N(t){for(;t;){const{closed:n,destination:e,isStopped:i}=t;if(n||i)return!1;t=e&&e instanceof F?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=J(i))((r,o)=>{let a;a=this.subscribe(s=>{try{e(s)}catch(l){o(l),a&&a.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[V](){return this}pipe(...e){return 0===e.length?this:q(e)(this)}toPromise(e){return new(e=J(e))((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function J(t){if(t||(t=d.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const ae=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class ge extends O{constructor(n,e){super(),this.subject=n,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,e=n.observers;if(this.subject=null,!e||0===e.length||n.isStopped||n.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class pe extends F{constructor(n){super(n),this.destination=n}}let le=(()=>{class t extends G{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[M](){return new pe(this)}lift(e){const i=new ce(this,this);return i.operator=e,i}next(e){if(this.closed)throw new ae;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let a=0;a<r;a++)o[a].next(e)}}error(e){if(this.closed)throw new ae;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:i}=this,r=i.length,o=i.slice();for(let a=0;a<r;a++)o[a].error(e);this.observers.length=0}complete(){if(this.closed)throw new ae;this.isStopped=!0;const{observers:e}=this,i=e.length,r=e.slice();for(let o=0;o<i;o++)r[o].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new ae;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new ae;return this.hasError?(e.error(this.thrownError),O.EMPTY):this.isStopped?(e.complete(),O.EMPTY):(this.observers.push(e),new ge(this,e))}asObservable(){const e=new G;return e.source=this,e}}return t.create=(n,e)=>new ce(n,e),t})();class ce extends le{constructor(n,e){super(),this.destination=n,this.source=e}next(n){const{destination:e}=this;e&&e.next&&e.next(n)}error(n){const{destination:e}=this;e&&e.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:e}=this;return e?this.source.subscribe(n):O.EMPTY}}function oe(t){return t&&"function"==typeof t.schedule}function K(t,n){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new Q(t,n))}}class Q{constructor(n,e){this.project=n,this.thisArg=e}call(n,e){return e.subscribe(new de(n,this.project,this.thisArg))}}class de extends F{constructor(n,e,i){super(n),this.project=e,this.count=0,this.thisArg=i||this}_next(n){let e;try{e=this.project.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const Oe=t=>n=>{for(let e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.complete()},Qe=function Ne(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),ve=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function ee(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Ce=t=>{if(t&&"function"==typeof t[V])return(t=>n=>{const e=t[V]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)})(t);if(ve(t))return Oe(t);if(ee(t))return(t=>n=>(t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,c),n))(t);if(t&&"function"==typeof t[Qe])return(t=>n=>{const e=t[Qe]();for(;;){let i;try{i=e.next()}catch(r){return n.error(r),n}if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(()=>{e.return&&e.return()}),n})(t);{const e=`You provided ${v(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Fe(t,n){return new G(e=>{const i=new O;let r=0;return i.add(n.schedule(function(){r!==t.length?(e.next(t[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function Me(t,n){return n?function me(t,n){if(null!=t){if(function Pe(t){return t&&"function"==typeof t[V]}(t))return function De(t,n){return new G(e=>{const i=new O;return i.add(n.schedule(()=>{const r=t[V]();i.add(r.subscribe({next(o){i.add(n.schedule(()=>e.next(o)))},error(o){i.add(n.schedule(()=>e.error(o)))},complete(){i.add(n.schedule(()=>e.complete()))}}))})),i})}(t,n);if(ee(t))return function ke(t,n){return new G(e=>{const i=new O;return i.add(n.schedule(()=>t.then(r=>{i.add(n.schedule(()=>{e.next(r),i.add(n.schedule(()=>e.complete()))}))},r=>{i.add(n.schedule(()=>e.error(r)))}))),i})}(t,n);if(ve(t))return Fe(t,n);if(function be(t){return t&&"function"==typeof t[Qe]}(t)||"string"==typeof t)return function ze(t,n){if(!t)throw new Error("Iterable cannot be null");return new G(e=>{const i=new O;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(n.schedule(()=>{r=t[Qe](),i.add(n.schedule(function(){if(e.closed)return;let o,a;try{const s=r.next();o=s.value,a=s.done}catch(s){return void e.error(s)}a?e.complete():(e.next(o),this.schedule())}))})),i})}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,n):t instanceof G?t:new G(Ce(t))}class Ue extends F{constructor(n){super(),this.parent=n}_next(n){this.parent.notifyNext(n)}_error(n){this.parent.notifyError(n),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Lt extends F{notifyNext(n){this.destination.next(n)}notifyError(n){this.destination.error(n)}notifyComplete(){this.destination.complete()}}function Mn(t,n){if(n.closed)return;if(t instanceof G)return t.subscribe(n);let e;try{e=Ce(t)(n)}catch(i){n.error(i)}return e}function ri(t,n,e=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(ri((r,o)=>Me(t(r,o)).pipe(K((a,s)=>n(r,a,o,s))),e)):("number"==typeof n&&(e=n),i=>i.lift(new lr(t,e)))}class lr{constructor(n,e=Number.POSITIVE_INFINITY){this.project=n,this.concurrent=e}call(n,e){return e.subscribe(new Ye(n,this.project,this.concurrent))}}class Ye extends Lt{constructor(n,e,i=Number.POSITIVE_INFINITY){super(n),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(n){this.active<this.concurrent?this._tryNext(n):this.buffer.push(n)}_tryNext(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e)}_innerSub(n){const e=new Ue(this),i=this.destination;i.add(e);const r=Mn(n,e);r!==e&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(n){this.destination.next(n)}notifyComplete(){const n=this.buffer;this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function jt(t=Number.POSITIVE_INFINITY){return ri(H,t)}function an(t,n){return n?Fe(t,n):new G(Oe(t))}function Bn(){return function(n){return n.lift(new xn(n))}}class xn{constructor(n){this.connectable=n}call(n,e){const{connectable:i}=this;i._refCount++;const r=new ai(n,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class ai extends F{constructor(n,e){super(n),this.connectable=e}_unsubscribe(){const{connectable:n}=this;if(!n)return void(this.connection=null);this.connectable=null;const e=n._refCount;if(e<=0)return void(this.connection=null);if(n._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=n._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class yi extends G{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let n=this._connection;return n||(this._isComplete=!1,n=this._connection=new O,n.add(this.source.subscribe(new Vr(this.getSubject(),this))),n.closed&&(this._connection=null,n=O.EMPTY)),n}refCount(){return Bn()(this)}}const Xi=(()=>{const t=yi.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 Vr extends pe{constructor(n,e){super(n),this.connectable=e}_error(n){this._unsubscribe(),super._error(n)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const n=this.connectable;if(n){this.connectable=null;const e=n._connection;n._refCount=0,n._subject=null,n._connection=null,e&&e.unsubscribe()}}}class en{constructor(n,e){this.subjectFactory=n,this.selector=e}call(n,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(n);return o.add(e.subscribe(r)),o}}function Gt(){return new le}function ut(t){for(let n in t)if(t[n]===ut)return n;throw Error("Could not find renamed property on target object.")}function tt(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function xt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(xt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function _t(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const Mt=ut({__forward_ref__:ut});function At(t){return t.__forward_ref__=At,t.toString=function(){return xt(this())},t}function Ut(t){return En(t)?t():t}function En(t){return"function"==typeof t&&t.hasOwnProperty(Mt)&&t.__forward_ref__===At}function ui(t){return t&&!!t.\u0275providers}const cr="https://g.co/ng/security#xss";class Dn extends Error{constructor(n,e){super(function Yo(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}(n,e)),this.code=n}}function pi(t){return"string"==typeof t?t:null==t?"":String(t)}function $l(t,n){throw new Dn(-201,!1)}function na(t,n){null==t&&function ar(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Hn(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Je(t){return{providers:t.providers||[],imports:t.imports||[]}}function yl(t){return _u(t,ed)||_u(t,Js)}function _u(t,n){return t.hasOwnProperty(n)?t[n]:null}function Xs(t){return t&&(t.hasOwnProperty(ql)||t.hasOwnProperty(Qc))?t[ql]:null}const ed=ut({\u0275prov:ut}),ql=ut({\u0275inj:ut}),Js=ut({ngInjectableDef:ut}),Qc=ut({ngInjectorDef:ut});var Ui=(()=>((Ui=Ui||{})[Ui.Default=0]="Default",Ui[Ui.Host=1]="Host",Ui[Ui.Self=2]="Self",Ui[Ui.SkipSelf=4]="SkipSelf",Ui[Ui.Optional=8]="Optional",Ui))();let vu;function lt(t){const n=vu;return vu=t,n}function Et(t,n,e){const i=yl(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Ui.Optional?null:void 0!==n?n:void $l(xt(t))}const dn=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ho={},ia="__NG_DI_FLAG__",Ya="ngTempTokenPath",Za=/\n/gm,td="__source";let yu;function Zl(t){const n=yu;return yu=t,n}function Vd(t,n=Ui.Default){if(void 0===yu)throw new Dn(-203,!1);return null===yu?Et(t,void 0,n):yu.get(t,n&Ui.Optional?null:void 0,n)}function qt(t,n=Ui.Default){return(function Xe(){return vu}()||Vd)(Ut(t),n)}function Ji(t,n=Ui.Default){return qt(t,nd(n))}function nd(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Qs(t){const n=[];for(let e=0;e<t.length;e++){const i=Ut(t[e]);if(Array.isArray(i)){if(0===i.length)throw new Dn(900,!1);let r,o=Ui.Default;for(let a=0;a<i.length;a++){const s=i[a],l=th(s);"number"==typeof l?-1===l?r=s.token:o|=l:r=s}n.push(qt(r,o))}else n.push(qt(i))}return n}function Xl(t,n){return t[ia]=n,t.prototype[ia]=n,t}function th(t){return t[ia]}function Ee(t){return{toString:t}.toString()}var rt=(()=>((rt=rt||{})[rt.OnPush=0]="OnPush",rt[rt.Default=1]="Default",rt))(),Vt=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(Vt||(Vt={})),Vt))();const _n={},zn=[],Fi=ut({\u0275cmp:ut}),Yi=ut({\u0275dir:ut}),Ei=ut({\u0275pipe:ut}),hr=ut({\u0275mod:ut}),Zr=ut({\u0275fac:ut}),Hr=ut({__NG_ELEMENT_ID__:ut});let ba=0;function je(t){return Ee(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===rt.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||zn,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Vt.Emulated,id:"c"+ba++,styles:t.styles||zn,_:null,setInput:null,schemas:t.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},o=t.dependencies,a=t.features;return r.inputs=kf(t.inputs,i),r.outputs=kf(t.outputs),a&&a.forEach(s=>s(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(xl).filter(id):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Ql).filter(id):null,r})}function xl(t){return Ao(t)||wl(t)}function id(t){return null!==t}function nt(t){return Ee(()=>({type:t.type,bootstrap:t.bootstrap||zn,declarations:t.declarations||zn,imports:t.imports||zn,exports:t.exports||zn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function kf(t,n){if(null==t)return _n;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const sr=je;function bs(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ao(t){return t[Fi]||null}function wl(t){return t[Yi]||null}function Ql(t){return t[Ei]||null}function Sl(t,n){const e=t[hr]||null;if(!e&&!0===n)throw new Error(`Type ${xt(t)} does not have '\u0275mod' property.`);return e}function Tn(t){return Array.isArray(t)&&"object"==typeof t[1]}function xr(t){return Array.isArray(t)&&!0===t[1]}function Ba(t){return 0!=(4&t.flags)}function jo(t){return t.componentOffset>-1}function ey(t){return 1==(1&t.flags)}function Hd(t){return null!==t.template}function rze(t){return 0!=(256&t[2])}function ty(t,n){return t.hasOwnProperty(Zr)?t[Zr]:null}class Dte{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function hi(){return Ete}function Ete(t){return t.type.prototype.ngOnChanges&&(t.setInput=lze),sze}function sze(){const t=Tte(this),n=t?.current;if(n){const e=t.previous;if(e===_n)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function lze(t,n,e,i){const r=this.declaredInputs[e],o=Tte(t)||function uze(t,n){return t[Ote]=n}(t,{previous:_n,current:null}),a=o.current||(o.current={}),s=o.previous,l=s[r];a[r]=new Dte(l&&l.currentValue,n,s===_n),t[i]=n}hi.ngInherit=!0;const Ote="__ngSimpleChanges__";function Tte(t){return t[Ote]||null}function eu(t){for(;Array.isArray(t);)t=t[0];return t}function lA(t,n){return eu(n[t])}function gc(t,n){return eu(n[t.index])}function Mte(t,n){return t.data[n]}function Jb(t,n){return t[n]}function fc(t,n){const e=n[t];return Tn(e)?e:e[0]}function uA(t){return 64==(64&t[2])}function E0(t,n){return null==n?null:t[n]}function Ate(t){t[18]=0}function dV(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const Fr={lFrame:Ute(null),bindingsEnabled:!0};function Pte(){return Fr.bindingsEnabled}function Nn(){return Fr.lFrame.lView}function Co(){return Fr.lFrame.tView}function Kn(t){return Fr.lFrame.contextLView=t,t[8]}function $n(t){return Fr.lFrame.contextLView=null,t}function tu(){let t=Rte();for(;null!==t&&64===t.type;)t=t.parent;return t}function Rte(){return Fr.lFrame.currentTNode}function jp(t,n){const e=Fr.lFrame;e.currentTNode=t,e.isParent=n}function cV(){return Fr.lFrame.isParent}function hV(){Fr.lFrame.isParent=!1}function rd(){const t=Fr.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function Qb(){return Fr.lFrame.bindingIndex++}function Ff(t){const n=Fr.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function xze(t,n){const e=Fr.lFrame;e.bindingIndex=e.bindingRootIndex=t,pV(n)}function pV(t){Fr.lFrame.currentDirectiveIndex=t}function Vte(){return Fr.lFrame.currentQueryIndex}function fV(t){Fr.lFrame.currentQueryIndex=t}function Sze(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Hte(t,n,e){if(e&Ui.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Ui.Host||(r=Sze(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;n=r,t=o}const i=Fr.lFrame=zte();return i.currentTNode=n,i.lView=t,!0}function mV(t){const n=zte(),e=t[1];Fr.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function zte(){const t=Fr.lFrame,n=null===t?null:t.child;return null===n?Ute(t):n}function Ute(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Wte(){const t=Fr.lFrame;return Fr.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Gte=Wte;function _V(){const t=Wte();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function od(){return Fr.lFrame.selectedIndex}function ny(t){Fr.lFrame.selectedIndex=t}function Qa(){const t=Fr.lFrame;return Mte(t.tView,t.selectedIndex)}function vV(){Fr.lFrame.currentNamespace="svg"}function dA(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const o=t.data[e].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:s,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:f}=o;a&&(t.contentHooks||(t.contentHooks=[])).push(-e,a),s&&((t.contentHooks||(t.contentHooks=[])).push(e,s),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,s)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),u&&((t.viewHooks||(t.viewHooks=[])).push(e,u),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,u)),null!=f&&(t.destroyHooks||(t.destroyHooks=[])).push(e,f)}}function cA(t,n,e){Kte(t,n,3,e)}function hA(t,n,e,i){(3&t[2])===e&&Kte(t,n,e,i)}function yV(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function Kte(t,n,e,i){const o=i??-1,a=n.length-1;let s=0;for(let l=void 0!==i?65535&t[18]:0;l<a;l++)if("number"==typeof n[l+1]){if(s=n[l],null!=i&&s>=i)break}else n[l]<0&&(t[18]+=65536),(s<o||-1==o)&&(Mze(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function Mze(t,n,e,i){const r=e[i]<0,o=e[i+1],s=t[r?-e[i]:e[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{o.call(s)}finally{}}}else try{o.call(s)}finally{}}class zD{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function bV(t,n,e){let i=0;for(;i<e.length;){const r=e[i];if("number"==typeof r){if(0!==r)break;i++;const o=e[i++],a=e[i++],s=e[i++];t.setAttribute(n,a,s,o)}else{const o=r,a=e[++i];qte(o)?t.setProperty(n,o,a):t.setAttribute(n,o,a),i++}}return i}function $te(t){return 3===t||4===t||6===t}function qte(t){return 64===t.charCodeAt(0)}function UD(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?e=r:0===e||Yte(t,e,r,null,-1===e||2===e?n[++i]:null)}}return t}function Yte(t,n,e,i,r){let o=0,a=t.length;if(-1===n)a=-1;else for(;o<t.length;){const s=t[o++];if("number"==typeof s){if(s===n){a=-1;break}if(s>n){a=o-1;break}}}for(;o<t.length;){const s=t[o];if("number"==typeof s)break;if(s===e){if(null===i)return void(null!==r&&(t[o+1]=r));if(i===t[o+1])return void(t[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==a&&(t.splice(a,0,n),o=a+1),t.splice(o++,0,e),null!==i&&t.splice(o++,0,i),null!==r&&t.splice(o++,0,r)}function Zte(t){return-1!==t}function pA(t){return 32767&t}function gA(t,n){let e=function Rze(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let xV=!0;function fA(t){const n=xV;return xV=t,n}let Lze=0;const Kp={};function mA(t,n){const e=Qte(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,wV(i.data,t),wV(n,null),wV(i.blueprint,null));const r=SV(t,n),o=t.injectorIndex;if(Zte(r)){const a=pA(r),s=gA(r,n),l=s[1].data;for(let u=0;u<8;u++)n[o+u]=s[a+u]|l[a+u]}return n[o+8]=r,o}function wV(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Qte(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function SV(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=ane(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function DV(t,n,e){!function Bze(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Hr)&&(i=e[Hr]),null==i&&(i=e[Hr]=Lze++);const r=255&i;n.data[t+(r>>5)]|=1<<r}(t,n,e)}function ene(t,n,e){if(e&Ui.Optional||void 0!==t)return t;$l()}function tne(t,n,e,i){if(e&Ui.Optional&&void 0===i&&(i=null),!(e&(Ui.Self|Ui.Host))){const r=t[9],o=lt(void 0);try{return r?r.get(n,i,e&Ui.Optional):Et(n,i,e&Ui.Optional)}finally{lt(o)}}return ene(i,0,e)}function nne(t,n,e,i=Ui.Default,r){if(null!==t){if(1024&n[2]){const a=function Uze(t,n,e,i,r){let o=t,a=n;for(;null!==o&&null!==a&&1024&a[2]&&!(256&a[2]);){const s=ine(o,a,e,i|Ui.Self,Kp);if(s!==Kp)return s;let l=o.parent;if(!l){const u=a[21];if(u){const f=u.get(e,Kp,i);if(f!==Kp)return f}l=ane(a),a=a[15]}o=l}return r}(t,n,e,i,Kp);if(a!==Kp)return a}const o=ine(t,n,e,i,Kp);if(o!==Kp)return o}return tne(n,e,i,r)}function ine(t,n,e,i,r){const o=function Hze(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Hr)?t[Hr]:void 0;return"number"==typeof n?n>=0?255&n:zze:n}(e);if("function"==typeof o){if(!Hte(n,t,i))return i&Ui.Host?ene(r,0,i):tne(n,e,i,r);try{const a=o(i);if(null!=a||i&Ui.Optional)return a;$l()}finally{Gte()}}else if("number"==typeof o){let a=null,s=Qte(t,n),l=-1,u=i&Ui.Host?n[16][6]:null;for((-1===s||i&Ui.SkipSelf)&&(l=-1===s?SV(t,n):n[s+8],-1!==l&&one(i,!1)?(a=n[1],s=pA(l),n=gA(l,n)):s=-1);-1!==s;){const f=n[1];if(rne(o,s,f.data)){const S=Vze(s,n,e,a,i,u);if(S!==Kp)return S}l=n[s+8],-1!==l&&one(i,n[1].data[s+8]===u)&&rne(o,s,n)?(a=f,s=pA(l),n=gA(l,n)):s=-1}}return r}function Vze(t,n,e,i,r,o){const a=n[1],s=a.data[t+8],f=_A(s,a,e,null==i?jo(s)&&xV:i!=a&&0!=(3&s.type),r&Ui.Host&&o===s);return null!==f?iy(n,a,f,s):Kp}function _A(t,n,e,i,r){const o=t.providerIndexes,a=n.data,s=1048575&o,l=t.directiveStart,f=o>>20,T=r?s+f:t.directiveEnd;for(let R=i?s:s+f;R<T;R++){const L=a[R];if(R<l&&e===L||R>=l&&L.type===e)return R}if(r){const R=a[l];if(R&&Hd(R)&&R.type===e)return l}return null}function iy(t,n,e,i){let r=t[e];const o=n.data;if(function Aze(t){return t instanceof zD}(r)){const a=r;a.resolving&&function _l(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new Dn(-200,`Circular dependency in DI detected for ${t}${e}`)}(function br(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():pi(t)}(o[e]));const s=fA(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?lt(a.injectImpl):null;Hte(t,i,Ui.Default);try{r=t[e]=a.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function kze(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const a=Ete(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,a),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,a)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&lt(l),fA(s),a.resolving=!1,Gte()}}return r}function rne(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function one(t,n){return!(t&Ui.Self||t&Ui.Host&&n)}class tx{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return nne(this._tNode,this._lView,n,nd(i),e)}}function zze(){return new tx(tu(),Nn())}function Oi(t){return Ee(()=>{const n=t.prototype.constructor,e=n[Zr]||EV(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[Zr]||EV(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function EV(t){return En(t)?()=>{const n=EV(Ut(t));return n&&n()}:ty(t)}function ane(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[6]:null}const ix="__parameters__";function ox(t,n,e){return Ee(()=>{const i=function OV(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const a=new r(...o);return s.annotation=a,s;function s(l,u,f){const S=l.hasOwnProperty(ix)?l[ix]:Object.defineProperty(l,ix,{value:[]})[ix];for(;S.length<=f;)S.push(null);return(S[f]=S[f]||[]).push(a),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class Pi{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Hn({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ry(t,n){t.forEach(e=>Array.isArray(e)?ry(e,n):n(e))}function lne(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function yA(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function jD(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function mc(t,n,e){let i=ax(t,n);return i>=0?t[1|i]=e:(i=~i,function Kze(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function IV(t,n){const e=ax(t,n);if(e>=0)return t[1|e]}function ax(t,n){return function une(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),a=t[o<<e];if(n===a)return o<<e;a>n?r=o:i=o+1}return~(r<<e)}(t,n,1)}const sx=Xl(ox("Optional"),8),KD=Xl(ox("SkipSelf"),4);var zd=(()=>((zd=zd||{})[zd.Important=1]="Important",zd[zd.DashCase=2]="DashCase",zd))();const RV=new Map;let g5e=0;const BV="__ngContext__";function Cu(t,n){Tn(n)?(t[BV]=n[20],function m5e(t){RV.set(t[20],t)}(n)):t[BV]=n}function VV(t,n){return undefined(t,n)}function ZD(t){const n=t[3];return xr(n)?n[3]:n}function HV(t){return Ine(t[13])}function zV(t){return Ine(t[4])}function Ine(t){for(;null!==t&&!xr(t);)t=t[4];return t}function ux(t,n,e,i,r){if(null!=i){let o,a=!1;xr(i)?o=i:Tn(i)&&(a=!0,i=i[0]);const s=eu(i);0===t&&null!==e?null==r?Rne(n,e,s):oy(n,e,s,r||null,!0):1===t&&null!==e?oy(n,e,s,r||null,!0):2===t?function qV(t,n,e){const i=wA(t,n);i&&function L5e(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,s,a):3===t&&n.destroyNode(s),null!=o&&function V5e(t,n,e,i,r){const o=e[7];o!==eu(e)&&ux(n,t,i,o,r);for(let s=10;s<e.length;s++){const l=e[s];XD(l[1],l,t,n,i,o)}}(n,t,o,e,r)}}function WV(t,n,e){return t.createElement(n,e)}function Mne(t,n){const e=t[9],i=e.indexOf(n),r=n[3];512&n[2]&&(n[2]&=-513,dV(r,-1)),e.splice(i,1)}function GV(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const r=i[17];null!==r&&r!==t&&Mne(r,i),n>0&&(t[e-1][4]=i[4]);const o=yA(t,10+n);!function T5e(t,n){XD(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Ane(t,n){if(!(128&n[2])){const e=n[11];e.destroyNode&&XD(t,n,e,3,null,null),function M5e(t){let n=t[13];if(!n)return jV(t[1],t);for(;n;){let e=null;if(Tn(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Tn(n)&&jV(n[1],n),n=n[3];null===n&&(n=t),Tn(n)&&jV(n[1],n),e=n&&n[4]}n=e}}(n)}}function jV(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function R5e(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const r=n[e[i]];if(!(r instanceof zD)){const o=e[i+1];if(Array.isArray(o))for(let a=0;a<o.length;a+=2){const s=r[o[a]],l=o[a+1];try{l.call(s)}finally{}}else try{o.call(r)}finally{}}}}(t,n),function P5e(t,n){const e=t.cleanup,i=n[7];let r=-1;if(null!==e)for(let o=0;o<e.length-1;o+=2)if("string"==typeof e[o]){const a=e[o+3];a>=0?i[r=a]():i[r=-a].unsubscribe(),o+=2}else{const a=i[r=e[o+1]];e[o].call(a)}if(null!==i){for(let o=r+1;o<i.length;o++)(0,i[o])();n[7]=null}}(t,n),1===n[1].type&&n[11].destroy();const e=n[17];if(null!==e&&xr(n[3])){e!==n[3]&&Mne(e,n);const i=n[19];null!==i&&i.detachView(t)}!function _5e(t){RV.delete(t[20])}(n)}}function Fne(t,n,e){return function Pne(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];{const{componentOffset:r}=i;if(r>-1){const{encapsulation:o}=t.data[i.directiveStart+r];if(o===Vt.None||o===Vt.Emulated)return null}return gc(i,e)}}(t,n.parent,e)}function oy(t,n,e,i,r){t.insertBefore(n,e,i,r)}function Rne(t,n,e){t.appendChild(n,e)}function Lne(t,n,e,i,r){null!==i?oy(t,n,e,i,r):Rne(t,n,e)}function wA(t,n){return t.parentNode(n)}function Bne(t,n,e){return Vne(t,n,e)}let EA,XV,OA,Vne=function Nne(t,n,e){return 40&t.type?gc(t,e):null};function SA(t,n,e,i){const r=Fne(t,i,n),o=n[11],s=Bne(i.parent||n[6],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)Lne(o,r,e[l],s,!1);else Lne(o,r,e,s,!1)}function DA(t,n){if(null!==n){const e=n.type;if(3&e)return gc(n,t);if(4&e)return $V(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return DA(t,i);{const r=t[n.index];return xr(r)?$V(-1,r):eu(r)}}if(32&e)return VV(n,t)()||eu(t[n.index]);{const i=zne(t,n);return null!==i?Array.isArray(i)?i[0]:DA(ZD(t[16]),i):DA(t,n.next)}}return null}function zne(t,n){return null!==n?t[16][6].projection[n.projection]:null}function $V(t,n){const e=10+t+1;if(e<n.length){const i=n[e],r=i[1].firstChild;if(null!==r)return DA(i,r)}return n[7]}function YV(t,n,e,i,r,o,a){for(;null!=e;){const s=i[e.index],l=e.type;if(a&&0===n&&(s&&Cu(eu(s),i),e.flags|=2),32!=(32&e.flags))if(8&l)YV(t,n,e.child,i,r,o,!1),ux(n,t,r,s,o);else if(32&l){const u=VV(e,i);let f;for(;f=u();)ux(n,t,r,f,o);ux(n,t,r,s,o)}else 16&l?Une(t,n,i,e,r,o):ux(n,t,r,s,o);e=a?e.projectionNext:e.next}}function XD(t,n,e,i,r,o){YV(e,i,t.firstChild,n,r,o,!1)}function Une(t,n,e,i,r,o){const a=e[16],l=a[6].projection[i.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)ux(n,t,r,l[u],o);else YV(t,n,l,a[3],r,o,!0)}function Wne(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function Gne(t,n,e){const{mergedAttrs:i,classes:r,styles:o}=e;null!==i&&bV(t,n,i),null!==r&&Wne(t,n,r),null!==o&&function z5e(t,n,e){t.setAttribute(n,"style",e)}(t,n,o)}function ay(t){return function ZV(){if(void 0===EA&&(EA=null,dn.trustedTypes))try{EA=dn.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return EA}()?.createHTML(t)||t}function JV(){if(void 0===OA&&(OA=null,dn.trustedTypes))try{OA=dn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return OA}function Kne(t){return JV()?.createHTML(t)||t}function qne(t){return JV()?.createScriptURL(t)||t}class sy{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${cr})`}}class K5e extends sy{getTypeName(){return"HTML"}}class $5e extends sy{getTypeName(){return"Style"}}class q5e extends sy{getTypeName(){return"Script"}}class Y5e extends sy{getTypeName(){return"URL"}}class Z5e extends sy{getTypeName(){return"ResourceURL"}}function _c(t){return t instanceof sy?t.changingThisBreaksApplicationSecurity:t}function $p(t,n){const e=function X5e(t){return t instanceof sy&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${cr})`)}return e===n}class iUe{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(ay(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class rUe{constructor(n){if(this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=ay(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=ay(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let r=e.length-1;0<r;r--){const a=e.item(r).name;("xmlns:ns1"===a||0===a.indexOf("ns1:"))&&n.removeAttribute(a)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const aUe=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function TA(t){return(t=String(t)).match(aUe)?t:"unsafe:"+t}function Pf(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function JD(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const Zne=Pf("area,br,col,hr,img,wbr"),Xne=Pf("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Jne=Pf("rp,rt"),QV=JD(Zne,JD(Xne,Pf("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")),JD(Jne,Pf("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")),JD(Jne,Xne)),e6=Pf("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Qne=JD(e6,Pf("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Pf("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")),sUe=Pf("script,style,template");class lUe{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!QV.hasOwnProperty(e))return this.sanitizedSomething=!0,!sUe.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r<i.length;r++){const o=i.item(r),a=o.name,s=a.toLowerCase();if(!Qne.hasOwnProperty(s)){this.sanitizedSomething=!0;continue}let l=o.value;e6[s]&&(l=TA(l)),this.buf.push(" ",a,'="',eie(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();QV.hasOwnProperty(e)&&!Zne.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(eie(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const uUe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dUe=/([^\#-~ |!])/g;function eie(t){return t.replace(/&/g,"&amp;").replace(uUe,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(dUe,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let IA;function tie(t,n){let e=null;try{IA=IA||function Yne(t){const n=new rUe(t);return function oUe(){try{return!!(new window.DOMParser).parseFromString(ay(""),"text/html")}catch{return!1}}()?new iUe(n):n}(t);let i=n?String(n):"";e=IA.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=IA.getInertBodyElement(i)}while(i!==o);return ay((new lUe).sanitizeChildren(t6(e)||e))}finally{if(e){const i=t6(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function t6(t){return"content"in t&&function cUe(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var xa=(()=>((xa=xa||{})[xa.NONE=0]="NONE",xa[xa.HTML=1]="HTML",xa[xa.STYLE=2]="STYLE",xa[xa.SCRIPT=3]="SCRIPT",xa[xa.URL=4]="URL",xa[xa.RESOURCE_URL=5]="RESOURCE_URL",xa))();function qp(t){const n=QD();return n?Kne(n.sanitize(xa.HTML,t)||""):$p(t,"HTML")?Kne(_c(t)):tie(function jne(){return void 0!==XV?XV:typeof document<"u"?document:void 0}(),pi(t))}function ad(t){const n=QD();return n?n.sanitize(xa.URL,t)||"":$p(t,"URL")?_c(t):TA(pi(t))}function nie(t){const n=QD();if(n)return qne(n.sanitize(xa.RESOURCE_URL,t)||"");if($p(t,"ResourceURL"))return qne(_c(t));throw new Dn(904,!1)}function QD(){const t=Nn();return t&&t[12]}const kA=new Pi("ENVIRONMENT_INITIALIZER"),rie=new Pi("INJECTOR",-1),oie=new Pi("INJECTOR_DEF_TYPES");class aie{get(n,e=Ho){if(e===Ho){const i=new Error(`NullInjectorError: No provider for ${xt(n)}!`);throw i.name="NullInjectorError",i}return e}}function vUe(...t){return{\u0275providers:sie(0,t),\u0275fromNgModule:!0}}function sie(t,...n){const e=[],i=new Set;let r;return ry(n,o=>{const a=o;n6(a,e,[],i)&&(r||(r=[]),r.push(a))}),void 0!==r&&lie(r,e),e}function lie(t,n){for(let e=0;e<t.length;e++){const{providers:r}=t[e];i6(r,o=>{n.push(o)})}}function n6(t,n,e,i){if(!(t=Ut(t)))return!1;let r=null,o=Xs(t);const a=!o&&Ao(t);if(o||a){if(a&&!a.standalone)return!1;r=t}else{const l=t.ngModule;if(o=Xs(l),!o)return!1;r=l}const s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){const l="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const u of l)n6(u,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!s){let u;i.add(r);try{ry(o.imports,f=>{n6(f,n,e,i)&&(u||(u=[]),u.push(f))})}finally{}void 0!==u&&lie(u,n)}if(!s){const u=ty(r)||(()=>new r);n.push({provide:r,useFactory:u,deps:zn},{provide:oie,useValue:r,multi:!0},{provide:kA,useValue:()=>qt(r),multi:!0})}const l=o.providers;null==l||s||i6(l,f=>{n.push(f)})}}return r!==t&&void 0!==t.providers}function i6(t,n){for(let e of t)ui(e)&&(e=e.\u0275providers),Array.isArray(e)?i6(e,n):n(e)}const yUe=ut({provide:String,useValue:ut});function r6(t){return null!==t&&"object"==typeof t&&yUe in t}function ly(t){return"function"==typeof t}const o6=new Pi("Set Injector scope."),MA={},bUe={};let a6;function AA(){return void 0===a6&&(a6=new aie),a6}class Yp{}class cie extends Yp{get destroyed(){return this._destroyed}constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,l6(n,a=>this.processProvider(a)),this.records.set(rie,dx(void 0,this)),r.has("environment")&&this.records.set(Yp,dx(void 0,this));const o=this.records.get(o6);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(oie.multi,zn,Ui.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=Zl(this),i=lt(void 0);try{return n()}finally{Zl(e),lt(i)}}get(n,e=Ho,i=Ui.Default){this.assertNotDestroyed(),i=nd(i);const r=Zl(this),o=lt(void 0);try{if(!(i&Ui.SkipSelf)){let s=this.records.get(n);if(void 0===s){const l=function EUe(t){return"function"==typeof t||"object"==typeof t&&t instanceof Pi}(n)&&yl(n);s=l&&this.injectableDefInScope(l)?dx(s6(n),MA):null,this.records.set(n,s)}if(null!=s)return this.hydrate(n,s)}return(i&Ui.Self?AA():this.parent).get(n,e=i&Ui.Optional&&e===Ho?null:e)}catch(a){if("NullInjectorError"===a.name){if((a[Ya]=a[Ya]||[]).unshift(xt(n)),r)throw a;return function Gp(t,n,e,i){const r=t[Ya];throw n[td]&&r.unshift(n[td]),t.message=function Tf(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=xt(n);if(Array.isArray(n))r=n.map(xt).join(" -> ");else if("object"==typeof n){let o=[];for(let a in n)if(n.hasOwnProperty(a)){let s=n[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):xt(s)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(Za,"\n  ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[Ya]=null,t}(a,n,"R3InjectorError",this.source)}throw a}finally{lt(o),Zl(r)}}resolveInjectorInitializers(){const n=Zl(this),e=lt(void 0);try{const i=this.get(kA.multi,zn,Ui.Self);for(const r of i)r()}finally{Zl(n),lt(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(xt(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Dn(205,!1)}processProvider(n){let e=ly(n=Ut(n))?n:Ut(n&&n.provide);const i=function wUe(t){return r6(t)?dx(void 0,t.useValue):dx(hie(t),MA)}(n);if(ly(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=dx(void 0,MA,!0),r.factory=()=>Qs(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===MA&&(e.value=bUe,e.value=e.factory()),"object"==typeof e.value&&e.value&&function DUe(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Ut(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function s6(t){const n=yl(t),e=null!==n?n.factory:ty(t);if(null!==e)return e;if(t instanceof Pi)throw new Dn(204,!1);if(t instanceof Function)return function xUe(t){const n=t.length;if(n>0)throw jD(n,"?"),new Dn(204,!1);const e=function Cl(t){const n=t&&(t[ed]||t[Js]);if(n){const e=function bl(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new Dn(204,!1)}function hie(t,n,e){let i;if(ly(t)){const r=Ut(t);return ty(r)||s6(r)}if(r6(t))i=()=>Ut(t.useValue);else if(function die(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...Qs(t.deps||[]));else if(function uie(t){return!(!t||!t.useExisting)}(t))i=()=>qt(Ut(t.useExisting));else{const r=Ut(t&&(t.useClass||t.provide));if(!function SUe(t){return!!t.deps}(t))return ty(r)||s6(r);i=()=>new r(...Qs(t.deps))}return i}function dx(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function l6(t,n){for(const e of t)Array.isArray(e)?l6(e,n):e&&ui(e)?l6(e.\u0275providers,n):n(e)}class OUe{}class pie{}class IUe{resolveComponentFactory(n){throw function TUe(t){const n=Error(`No component factory found for ${xt(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let cx=(()=>{class t{}return t.NULL=new IUe,t})();function kUe(){return hx(tu(),Nn())}function hx(t,n){return new jn(gc(t,n))}let jn=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=kUe,t})();function MUe(t){return t instanceof jn?t.nativeElement:t}class fie{}let bu=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function AUe(){const t=Nn(),e=fc(tu().index,t);return(Tn(e)?e:t)[11]}(),t})(),FUe=(()=>{class t{}return t.\u0275prov=Hn({token:t,providedIn:"root",factory:()=>null}),t})();class px{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const mie=new px("15.1.5"),FA={};function d6(t){return t.ngOriginalError}class gx{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&d6(n);for(;e&&d6(e);)e=d6(e);return e||null}}function Rf(t){return t.ownerDocument.defaultView}function Lf(t){return t instanceof Function?t():t}function vie(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}const yie="ng-template";function WUe(t,n,e){let i=0;for(;i<t.length;){let r=t[i++];if(e&&"class"===r){if(r=t[i],-1!==vie(r.toLowerCase(),n,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===n)return!0;return!1}}return!1}function Cie(t){return 4===t.type&&t.value!==yie}function GUe(t,n,e){return n===(4!==t.type||e?t.value:yie)}function jUe(t,n,e){let i=4;const r=t.attrs||[],o=function qUe(t){for(let n=0;n<t.length;n++)if($te(t[n]))return n;return t.length}(r);let a=!1;for(let s=0;s<n.length;s++){const l=n[s];if("number"!=typeof l){if(!a)if(4&i){if(i=2|1&i,""!==l&&!GUe(t,l,e)||""===l&&1===n.length){if(Jh(i))return!1;a=!0}}else{const u=8&i?l:n[++s];if(8&i&&null!==t.attrs){if(!WUe(t.attrs,u,e)){if(Jh(i))return!1;a=!0}continue}const S=KUe(8&i?"class":l,r,Cie(t),e);if(-1===S){if(Jh(i))return!1;a=!0;continue}if(""!==u){let T;T=S>o?"":r[S+1].toLowerCase();const R=8&i?T:null;if(R&&-1!==vie(R,u,0)||2&i&&u!==T){if(Jh(i))return!1;a=!0}}}}else{if(!a&&!Jh(i)&&!Jh(l))return!1;if(a&&Jh(l))continue;a=!1,i=l|1&i}}return Jh(i)||a}function Jh(t){return 0==(1&t)}function KUe(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r<n.length;){const a=n[r];if(a===t)return r;if(3===a||6===a)o=!0;else{if(1===a||2===a){let s=n[++r];for(;"string"==typeof s;)s=n[++r];continue}if(4===a)break;if(0===a){r+=4;continue}}r+=o?1:2}return-1}return function YUe(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function bie(t,n,e=!1){for(let i=0;i<n.length;i++)if(jUe(t,n[i],e))return!0;return!1}function ZUe(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function xie(t,n){return t?":not("+n.trim()+")":n}function XUe(t){let n=t[0],e=1,i=2,r="",o=!1;for(;e<t.length;){let a=t[e];if("string"==typeof a)if(2&i){const s=t[++e];r+="["+a+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""!==r&&!Jh(a)&&(n+=xie(o,r),r=""),i=a,o=o||!Jh(i);e++}return""!==r&&(n+=xie(o,r)),n}const Pr={};function pt(t){wie(Co(),Nn(),od()+t,!1)}function wie(t,n,e,i){if(!i)if(3==(3&n[2])){const o=t.preOrderCheckHooks;null!==o&&cA(n,o,e)}else{const o=t.preOrderHooks;null!==o&&hA(n,o,0,e)}ny(e)}function Oie(t,n=null,e=null,i){const r=Tie(t,n,e,i);return r.resolveInjectorInitializers(),r}function Tie(t,n=null,e=null,i,r=new Set){const o=[e||zn,vUe(t)];return i=i||("object"==typeof t?void 0:xt(t)),new cie(o,n||AA(),i||null,r)}let xu=(()=>{class t{static create(e,i){if(Array.isArray(e))return Oie({name:""},i,e,"");{const r=e.name??"";return Oie({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=Ho,t.NULL=new aie,t.\u0275prov=Hn({token:t,providedIn:"any",factory:()=>qt(rie)}),t.__NG_ELEMENT_ID__=-1,t})();function $(t,n=Ui.Default){const e=Nn();return null===e?qt(t,n):nne(tu(),e,Ut(t),n)}function Lie(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const o=e[i+1];if(-1!==o){const a=t.data[o];fV(e[i]),a.contentQueries(2,n[o],o)}}}function RA(t,n,e,i,r,o,a,s,l,u,f){const S=n.blueprint.slice();return S[0]=r,S[2]=76|i,(null!==f||t&&1024&t[2])&&(S[2]|=1024),Ate(S),S[3]=S[15]=t,S[8]=e,S[10]=a||t&&t[10],S[11]=s||t&&t[11],S[12]=l||t&&t[12]||null,S[9]=u||t&&t[9]||null,S[6]=o,S[20]=function f5e(){return g5e++}(),S[21]=f,S[16]=2==n.type?t[16]:S,S}function _x(t,n,e,i,r){let o=t.data[n];if(null===o)o=function f6(t,n,e,i,r){const o=Rte(),a=cV(),l=t.data[n]=function wWe(t,n,e,i,r,o){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,a?o:o&&o.parent,e,n,i,r);return null===t.firstChild&&(t.firstChild=l),null!==o&&(a?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l)),l}(t,n,e,i,r),function bze(){return Fr.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=e,o.value=i,o.attrs=r;const a=function HD(){const t=Fr.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();o.injectorIndex=null===a?-1:a.injectorIndex}return jp(o,!0),o}function eE(t,n,e,i){if(0===e)return-1;const r=n.length;for(let o=0;o<e;o++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function m6(t,n,e){mV(n);try{const i=t.viewQuery;null!==i&&E6(1,i,e);const r=t.template;null!==r&&Bie(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Lie(t,n),t.staticViewQueries&&E6(2,t.viewQuery,e);const o=t.components;null!==o&&function CWe(t,n){for(let e=0;e<n.length;e++)UWe(t,n[e])}(n,o)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,_V()}}function LA(t,n,e,i){const r=n[2];if(128!=(128&r)){mV(n);try{Ate(n),function Bte(t){return Fr.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&Bie(t,n,e,2,i);const a=3==(3&r);if(a){const u=t.preOrderCheckHooks;null!==u&&cA(n,u,null)}else{const u=t.preOrderHooks;null!==u&&hA(n,u,0,null),yV(n,0)}if(function HWe(t){for(let n=HV(t);null!==n;n=zV(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const r=e[i];512&r[2]||dV(r[3],1),r[2]|=512}}}(n),function VWe(t){for(let n=HV(t);null!==n;n=zV(n))for(let e=10;e<n.length;e++){const i=n[e],r=i[1];uA(i)&&LA(r,i,r.template,i[8])}}(n),null!==t.contentQueries&&Lie(t,n),a){const u=t.contentCheckHooks;null!==u&&cA(n,u)}else{const u=t.contentHooks;null!==u&&hA(n,u,1),yV(n,1)}!function vWe(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)ny(~r);else{const o=r,a=e[++i],s=e[++i];xze(a,o),s(2,n[o])}}}finally{ny(-1)}}(t,n);const s=t.components;null!==s&&function yWe(t,n){for(let e=0;e<n.length;e++)zWe(t,n[e])}(n,s);const l=t.viewQuery;if(null!==l&&E6(2,l,i),a){const u=t.viewCheckHooks;null!==u&&cA(n,u)}else{const u=t.viewHooks;null!==u&&hA(n,u,2),yV(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-41,512&n[2]&&(n[2]&=-513,dV(n[3],-1))}finally{_V()}}}function Bie(t,n,e,i,r){const o=od(),a=2&i;try{ny(-1),a&&n.length>22&&wie(t,n,22,!1),e(i,r)}finally{ny(o)}}function _6(t,n,e){if(Ba(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o<r;o++){const a=t.data[o];a.contentQueries&&a.contentQueries(1,e[o],o)}}}function v6(t,n,e){Pte()&&(function IWe(t,n,e,i){const r=e.directiveStart,o=e.directiveEnd;jo(e)&&function LWe(t,n,e){const i=gc(n,t),r=Nie(e),o=t[10],a=BA(t,RA(t,r,null,e.onPush?32:16,i,n,o,o.createRenderer(i,e),null,null,null));t[n.index]=a}(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||mA(e,n),Cu(i,n);const a=e.initialInputs;for(let s=r;s<o;s++){const l=t.data[s],u=iy(n,t,s,e);Cu(u,n),null!==a&&BWe(0,s-r,u,l,0,a),Hd(l)&&(fc(e.index,n)[8]=iy(n,t,s,e))}}(t,n,e,gc(e,n)),64==(64&e.flags)&&Gie(t,n,e))}function y6(t,n,e=gc){const i=n.localNames;if(null!==i){let r=n.index+1;for(let o=0;o<i.length;o+=2){const a=i[o+1],s=-1===a?e(n,t):t[a];t[r++]=s}}}function Nie(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=C6(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function C6(t,n,e,i,r,o,a,s,l,u){const f=22+i,S=f+r,T=function bWe(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:Pr);return e}(f,S),R="function"==typeof u?u():u;return T[1]={type:t,blueprint:T,template:e,queries:null,viewQuery:s,declTNode:n,data:T.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:S,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:l,consts:R,incompleteFirstPass:!1}}function Vie(t,n,e,i){const r=Kie(n);null===e?r.push(i):(r.push(e),t.firstCreatePass&&$ie(t).push(i,r.length-1))}function Hie(t,n,e,i){for(let r in t)if(t.hasOwnProperty(r)){e=null===e?{}:e;const o=t[r];null===i?zie(e,n,r,o):i.hasOwnProperty(r)&&zie(e,n,i[r],o)}return e}function zie(t,n,e,i){t.hasOwnProperty(e)?t[e].push(n,i):t[e]=[n,i]}function vc(t,n,e,i,r,o,a,s){const l=gc(n,e);let f,u=n.inputs;!s&&null!=u&&(f=u[i])?(O6(t,e,f,i,r),jo(n)&&Uie(e,n.index)):3&n.type&&(i=function DWe(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=a?a(r,n.value||"",i):r,o.setProperty(l,i,r))}function Uie(t,n){const e=fc(n,t);16&e[2]||(e[2]|=32)}function b6(t,n,e,i){let r=!1;if(Pte()){const o=null===i?null:{"":-1},a=function MWe(t,n){const e=t.directiveRegistry;let i=null,r=null;if(e)for(let o=0;o<e.length;o++){const a=e[o];if(bie(n,a.selectors,!1))if(i||(i=[]),Hd(a))if(null!==a.findHostDirectiveDefs){const s=[];r=r||new Map,a.findHostDirectiveDefs(a,s,r),i.unshift(...s,a),x6(t,n,s.length)}else i.unshift(a),x6(t,n,0);else r=r||new Map,a.findHostDirectiveDefs?.(a,i,r),i.push(a)}return null===i?null:[i,r]}(t,e);let s,l;null===a?s=l=null:[s,l]=a,null!==s&&(r=!0,Wie(t,n,e,s,o,l)),o&&function AWe(t,n,e){if(n){const i=t.localNames=[];for(let r=0;r<n.length;r+=2){const o=e[n[r+1]];if(null==o)throw new Dn(-301,!1);i.push(n[r],o)}}}(e,i,o)}return e.mergedAttrs=UD(e.mergedAttrs,e.attrs),r}function Wie(t,n,e,i,r,o){for(let u=0;u<i.length;u++)DV(mA(e,n),t,i[u].type);!function PWe(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}(e,t.data.length,i.length);for(let u=0;u<i.length;u++){const f=i[u];f.providersResolver&&f.providersResolver(f)}let a=!1,s=!1,l=eE(t,n,i.length,null);for(let u=0;u<i.length;u++){const f=i[u];e.mergedAttrs=UD(e.mergedAttrs,f.hostAttrs),RWe(t,e,n,l,f),FWe(l,f,r),null!==f.contentQueries&&(e.flags|=4),(null!==f.hostBindings||null!==f.hostAttrs||0!==f.hostVars)&&(e.flags|=64);const S=f.type.prototype;!a&&(S.ngOnChanges||S.ngOnInit||S.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),a=!0),!s&&(S.ngOnChanges||S.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),s=!0),l++}!function SWe(t,n,e){const r=n.directiveEnd,o=t.data,a=n.attrs,s=[];let l=null,u=null;for(let f=n.directiveStart;f<r;f++){const S=o[f],T=e?e.get(S):null,L=T?T.outputs:null;l=Hie(S.inputs,f,l,T?T.inputs:null),u=Hie(S.outputs,f,u,L);const z=null===l||null===a||Cie(n)?null:NWe(l,f,a);s.push(z)}null!==l&&(l.hasOwnProperty("class")&&(n.flags|=8),l.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=s,n.inputs=l,n.outputs=u}(t,e,o)}function Gie(t,n,e){const i=e.directiveStart,r=e.directiveEnd,o=e.index,a=function wze(){return Fr.lFrame.currentDirectiveIndex}();try{ny(o);for(let s=i;s<r;s++){const l=t.data[s],u=n[s];pV(s),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&kWe(l,u)}}finally{ny(-1),pV(a)}}function kWe(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function x6(t,n,e){n.componentOffset=e,(t.components||(t.components=[])).push(n.index)}function FWe(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Hd(n)&&(e[""]=t)}}function RWe(t,n,e,i,r){t.data[i]=r;const o=r.factory||(r.factory=ty(r.type)),a=new zD(o,Hd(r),$);t.blueprint[i]=a,e[i]=a,function OWe(t,n,e,i,r){const o=r.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const s=~n.index;(function TWe(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=s&&a.push(s),a.push(e,i,o)}}(t,n,i,eE(t,e,r.hostVars,Pr),r)}function Zp(t,n,e,i,r,o){const a=gc(t,n);!function w6(t,n,e,i,r,o,a){if(null==o)t.removeAttribute(n,r,e);else{const s=null==a?pi(o):a(o,i||"",r);t.setAttribute(n,r,s,e)}}(n[11],a,o,t.value,e,i,r)}function BWe(t,n,e,i,r,o){const a=o[n];if(null!==a){const s=i.setInput;for(let l=0;l<a.length;){const u=a[l++],f=a[l++],S=a[l++];null!==s?i.setInput(e,S,u,f):e[f]=S}}}function NWe(t,n,e){let i=null,r=0;for(;r<e.length;){const o=e[r];if(0!==o)if(5!==o){if("number"==typeof o)break;if(t.hasOwnProperty(o)){null===i&&(i=[]);const a=t[o];for(let s=0;s<a.length;s+=2)if(a[s]===n){i.push(o,a[s+1],e[r+1]);break}}r+=2}else r+=2;else r+=4}return i}function jie(t,n,e,i){return[t,!0,!1,n,null,0,i,e,null,null]}function zWe(t,n){const e=fc(n,t);if(uA(e)){const i=e[1];48&e[2]?LA(i,e,i.template,e[8]):e[5]>0&&S6(e)}}function S6(t){for(let i=HV(t);null!==i;i=zV(i))for(let r=10;r<i.length;r++){const o=i[r];if(uA(o))if(512&o[2]){const a=o[1];LA(a,o,a.template,o[8])}else o[5]>0&&S6(o)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=fc(e[i],t);uA(r)&&r[5]>0&&S6(r)}}function UWe(t,n){const e=fc(n,t),i=e[1];(function WWe(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),m6(i,e,e[8])}function BA(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function D6(t){for(;t;){t[2]|=32;const n=ZD(t);if(rze(t)&&!n)return t;t=n}return null}function NA(t,n,e,i=!0){const r=n[10];r.begin&&r.begin();try{LA(t,n,t.template,e)}catch(a){throw i&&Yie(n,a),a}finally{r.end&&r.end()}}function E6(t,n,e){fV(0),n(t,e)}function Kie(t){return t[7]||(t[7]=[])}function $ie(t){return t.cleanup||(t.cleanup=[])}function Yie(t,n){const e=t[9],i=e?e.get(gx,null):null;i&&i.handleError(n)}function O6(t,n,e,i,r){for(let o=0;o<e.length;){const a=e[o++],s=e[o++],l=n[a],u=t.data[a];null!==u.setInput?u.setInput(l,r,i,s):l[s]=r}}function Bf(t,n,e){const i=lA(n,t);!function kne(t,n,e){t.setValue(n,e)}(t[11],i,e)}function VA(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(null!==n)for(let a=0;a<n.length;a++){const s=n[a];"number"==typeof s?o=s:1==o?r=_t(r,s):2==o&&(i=_t(i,s+": "+n[++a]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}function HA(t,n,e,i,r=!1){for(;null!==e;){const o=n[e.index];if(null!==o&&i.push(eu(o)),xr(o))for(let s=10;s<o.length;s++){const l=o[s],u=l[1].firstChild;null!==u&&HA(l[1],l,u,i)}const a=e.type;if(8&a)HA(t,n,e.child,i);else if(32&a){const s=VV(e,n);let l;for(;l=s();)i.push(l)}else if(16&a){const s=zne(n,e);if(Array.isArray(s))i.push(...s);else{const l=ZD(n[16]);HA(l[1],l,s,i,!0)}}e=r?e.projectionNext:e.next}return i}class tE{get rootNodes(){const n=this._lView,e=n[1];return HA(e,n,e.firstChild,[])}constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(xr(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(GV(n,i),yA(e,i))}this._attachedToViewContainer=!1}Ane(this._lView[1],this._lView)}onDestroy(n){Vie(this._lView[1],this._lView,null,n)}markForCheck(){D6(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){NA(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Dn(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function k5e(t,n){XD(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new Dn(902,!1);this._appRef=n}}class GWe extends tE{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;NA(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}}class Zie extends cx{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Ao(n);return new nE(e,this.ngModule)}}function Xie(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class KWe{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=nd(i);const r=this.injector.get(n,FA,i);return r!==FA||e===FA?r:this.parentInjector.get(n,e,i)}}class nE extends pie{get inputs(){return Xie(this.componentDef.inputs)}get outputs(){return Xie(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function JUe(t){return t.map(XUe).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let o=(r=r||this.ngModule)instanceof Yp?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const a=o?new KWe(n,o):n,s=a.get(fie,null);if(null===s)throw new Dn(407,!1);const l=a.get(FUe,null),u=s.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",S=i?function xWe(t,n,e){return t.selectRootElement(n,e===Vt.ShadowDom)}(u,i,this.componentDef.encapsulation):WV(u,f,function jWe(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(f)),T=this.componentDef.onPush?288:272,R=C6(0,null,null,1,0,null,null,null,null,null),L=RA(null,R,null,T,null,null,s,u,l,a,null);let z,j;mV(L);try{const Y=this.componentDef;let ie,te=null;Y.findHostDirectiveDefs?(ie=[],te=new Map,Y.findHostDirectiveDefs(Y,ie,te),ie.push(Y)):ie=[Y];const re=function qWe(t,n){const e=t[1];return t[22]=n,_x(e,22,2,"#host",null)}(L,S),he=function YWe(t,n,e,i,r,o,a,s){const l=r[1];!function ZWe(t,n,e,i){for(const r of t)n.mergedAttrs=UD(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(VA(n,n.mergedAttrs,!0),null!==e&&Gne(i,e,n))}(i,t,n,a);const u=o.createRenderer(n,e),f=RA(r,Nie(e),null,e.onPush?32:16,r[t.index],t,o,u,s||null,null,null);return l.firstCreatePass&&x6(l,t,i.length-1),BA(r,f),r[t.index]=f}(re,S,Y,ie,L,s,u);j=Mte(R,22),S&&function JWe(t,n,e,i){if(i)bV(t,e,["ng-version",mie.full]);else{const{attrs:r,classes:o}=function QUe(t){const n=[],e=[];let i=1,r=2;for(;i<t.length;){let o=t[i];if("string"==typeof o)2===r?""!==o&&n.push(o,t[++i]):8===r&&e.push(o);else{if(!Jh(r))break;r=o}i++}return{attrs:n,classes:e}}(n.selectors[0]);r&&bV(t,e,r),o&&o.length>0&&Wne(t,e,o.join(" "))}}(u,Y,S,i),void 0!==e&&function QWe(t,n,e){const i=t.projection=[];for(let r=0;r<n.length;r++){const o=e[r];i.push(null!=o?Array.from(o):null)}}(j,this.ngContentSelectors,e),z=function XWe(t,n,e,i,r,o){const a=tu(),s=r[1],l=gc(a,r);Wie(s,r,a,e,null,i);for(let f=0;f<e.length;f++)Cu(iy(r,s,a.directiveStart+f,a),r);Gie(s,r,a),l&&Cu(l,r);const u=iy(r,s,a.directiveStart+a.componentOffset,a);if(t[8]=r[8]=u,null!==o)for(const f of o)f(u,n);return _6(s,a,t),u}(he,Y,ie,te,L,[eGe]),m6(R,L,null)}finally{_V()}return new $We(this.componentType,z,hx(j,L),L,j)}}class $We extends OUe{constructor(n,e,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.instance=e,this.hostView=this.changeDetectorRef=new GWe(r),this.componentType=n}setInput(n,e){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[n])){const o=this._rootLView;O6(o[1],o,r,n,e),Uie(o,this._tNode.index)}}get injector(){return new tx(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function eGe(){const t=tu();dA(Nn()[1],t)}function qe(t){let n=function Jie(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let r;if(Hd(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new Dn(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);const a=t;a.inputs=T6(t.inputs),a.declaredInputs=T6(t.declaredInputs),a.outputs=T6(t.outputs);const s=r.hostBindings;s&&rGe(t,s);const l=r.viewQuery,u=r.contentQueries;if(l&&nGe(t,l),u&&iGe(t,u),tt(t.inputs,r.inputs),tt(t.declaredInputs,r.declaredInputs),tt(t.outputs,r.outputs),Hd(r)&&r.data.animation){const f=t.data;f.animation=(f.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let a=0;a<o.length;a++){const s=o[a];s&&s.ngInherit&&s(t),s===qe&&(e=!1)}}n=Object.getPrototypeOf(n)}!function tGe(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=UD(r.hostAttrs,e=UD(e,r.hostAttrs))}}(i)}function T6(t){return t===_n?{}:t===zn?[]:t}function nGe(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function iGe(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function rGe(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}let zA=null;function uy(){if(!zA){const t=dn.Symbol;if(t&&t.iterator)zA=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(zA=i)}}}return zA}function UA(t){return!!I6(t)&&(Array.isArray(t)||!(t instanceof Map)&&uy()in t)}function I6(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Xp(t,n,e){return t[n]=e}function wu(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function dy(t,n,e,i){const r=wu(t,n,e);return wu(t,n+1,i)||r}function es(t,n,e,i){const r=Nn();return wu(r,Qb(),n)&&(Co(),Zp(Qa(),r,t,n,e,i)),es}function yx(t,n,e,i){return wu(t,Qb(),e)?n+pi(e)+i:Pr}function Cx(t,n,e,i,r,o){const s=dy(t,function Af(){return Fr.lFrame.bindingIndex}(),e,r);return Ff(2),s?n+pi(e)+i+pi(r)+o:Pr}function cn(t,n,e,i,r,o,a,s){const l=Nn(),u=Co(),f=t+22,S=u.firstCreatePass?function gGe(t,n,e,i,r,o,a,s,l){const u=n.consts,f=_x(n,t,4,a||null,E0(u,s));b6(n,e,f,E0(u,l)),dA(n,f);const S=f.tViews=C6(2,f,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u);return null!==n.queries&&(n.queries.template(n,f),S.queries=n.queries.embeddedTView(f)),f}(f,u,l,n,e,i,r,o,a):u.data[f];jp(S,!1);const T=l[11].createComment("");SA(u,l,T,S),Cu(T,l),BA(l,l[f]=jie(T,l,T,S)),ey(S)&&v6(u,l,S),null!=a&&y6(l,S,s)}function Ms(t){return Jb(function Cze(){return Fr.lFrame.contextLView}(),22+t)}function Tt(t,n,e){const i=Nn();return wu(i,Qb(),n)&&vc(Co(),Qa(),i,t,n,i[11],e,!1),Tt}function k6(t,n,e,i,r){const a=r?"class":"style";O6(t,e,n.inputs[a],a,i)}function Ot(t,n,e,i){const r=Nn(),o=Co(),a=22+t,s=r[11],l=r[a]=WV(s,n,function Ize(){return Fr.lFrame.currentNamespace}()),u=o.firstCreatePass?function mGe(t,n,e,i,r,o,a){const s=n.consts,u=_x(n,t,2,r,E0(s,o));return b6(n,e,u,E0(s,a)),null!==u.attrs&&VA(u,u.attrs,!1),null!==u.mergedAttrs&&VA(u,u.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,u),u}(a,o,r,0,n,e,i):o.data[a];return jp(u,!0),Gne(s,l,u),32!=(32&u.flags)&&SA(o,r,l,u),0===function fze(){return Fr.lFrame.elementDepthCount}()&&Cu(l,r),function mze(){Fr.lFrame.elementDepthCount++}(),ey(u)&&(v6(o,r,u),_6(o,u,r)),null!==i&&y6(r,u),Ot}function Pt(){let t=tu();cV()?hV():(t=t.parent,jp(t,!1));const n=t;!function _ze(){Fr.lFrame.elementDepthCount--}();const e=Co();return e.firstCreatePass&&(dA(e,t),Ba(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function Fze(t){return 0!=(8&t.flags)}(n)&&k6(e,n,Nn(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function Pze(t){return 0!=(16&t.flags)}(n)&&k6(e,n,Nn(),n.stylesWithoutHost,!1),Pt}function li(t,n,e,i){return Ot(t,n,e,i),Pt(),li}function El(t,n,e){const i=Nn(),r=Co(),o=t+22,a=r.firstCreatePass?function _Ge(t,n,e,i,r){const o=n.consts,a=E0(o,i),s=_x(n,t,8,"ng-container",a);return null!==a&&VA(s,a,!0),b6(n,e,s,E0(o,r)),null!==n.queries&&n.queries.elementStart(n,s),s}(o,r,i,n,e):r.data[o];jp(a,!0);const s=i[o]=i[11].createComment("");return SA(r,i,s,a),Cu(s,i),ey(a)&&(v6(r,i,a),_6(r,a,i)),null!=e&&y6(i,a),El}function Ol(){let t=tu();const n=Co();return cV()?hV():(t=t.parent,jp(t,!1)),n.firstCreatePass&&(dA(n,t),Ba(t)&&n.queries.elementEnd(t)),Ol}function M6(t,n,e){return El(t,n,e),Ol(),M6}function Gi(){return Nn()}function rE(t){return!!t&&"function"==typeof t.then}function cre(t){return!!t&&"function"==typeof t.subscribe}const A6=cre;function fn(t,n,e,i){const r=Nn(),o=Co(),a=tu();return function pre(t,n,e,i,r,o,a){const s=ey(i),u=t.firstCreatePass&&$ie(t),f=n[8],S=Kie(n);let T=!0;if(3&i.type||a){const z=gc(i,n),j=a?a(z):z,Y=S.length,ie=a?re=>a(eu(re[i.index])):i.index;let te=null;if(!a&&s&&(te=function vGe(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const a=r[o];if(a===e&&r[o+1]===i){const s=n[7],l=r[o+2];return s.length>l?s[l]:null}"string"==typeof a&&(o+=2)}return null}(t,n,r,i.index)),null!==te)(te.__ngLastListenerFn__||te).__ngNextListenerFn__=o,te.__ngLastListenerFn__=o,T=!1;else{o=fre(i,n,f,o,!1);const re=e.listen(j,r,o);S.push(o,re),u&&u.push(r,ie,Y,Y+1)}}else o=fre(i,n,f,o,!1);const R=i.outputs;let L;if(T&&null!==R&&(L=R[r])){const z=L.length;if(z)for(let j=0;j<z;j+=2){const he=n[L[j]][L[j+1]].subscribe(o),fe=S.length;S.push(o,he),u&&u.push(r,i.index,fe,-(fe+1))}}}(o,r,r[11],a,t,n,i),fn}function gre(t,n,e,i){try{return!1!==e(i)}catch(r){return Yie(t,r),!1}}function fre(t,n,e,i,r){return function o(a){if(a===Function)return i;D6(t.componentOffset>-1?fc(t.index,n):n);let l=gre(n,0,i,a),u=o.__ngNextListenerFn__;for(;u;)l=gre(n,0,u,a)&&l,u=u.__ngNextListenerFn__;return r&&!1===l&&(a.preventDefault(),a.returnValue=!1),l}}function yt(t=1){return function Dze(t){return(Fr.lFrame.contextLView=function Eze(t,n){for(;t>0;)n=n[15],t--;return n}(t,Fr.lFrame.contextLView))[8]}(t)}function yGe(t,n){let e=null;const i=function $Ue(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r<n.length;r++){const o=n[r];if("*"!==o){if(null===i?bie(t,o,!0):ZUe(i,o))return r}else e=r}return e}function nl(t){const n=Nn()[16][6];if(!n.projection){const i=n.projection=jD(t?t.length:1,null),r=i.slice();let o=n.child;for(;null!==o;){const a=t?yGe(o,t):0;null!==a&&(r[a]?r[a].projectionNext=o:i[a]=o,r[a]=o),o=o.next}}}function As(t,n=0,e){const i=Nn(),r=Co(),o=_x(r,22+t,16,null,e||null);null===o.projection&&(o.projection=n),hV(),32!=(32&o.flags)&&function N5e(t,n,e){Une(n[11],0,n,e,Fne(t,e,n),Bne(e.parent||n[6],e,n))}(r,i,o)}function oE(t,n,e){return F6(t,"",n,"",e),oE}function F6(t,n,e,i,r){const o=Nn(),a=yx(o,n,e,i);return a!==Pr&&vc(Co(),Qa(),o,t,a,o[11],r,!1),F6}function GA(t,n){return t<<17|n<<2}function O0(t){return t>>17&32767}function P6(t){return 2|t}function cy(t){return(131068&t)>>2}function R6(t,n){return-131069&t|n<<2}function L6(t){return 1|t}function Sre(t,n,e,i,r){const o=t[e+1],a=null===n;let s=i?O0(o):cy(o),l=!1;for(;0!==s&&(!1===l||a);){const f=t[s+1];DGe(t[s],n)&&(l=!0,t[s+1]=i?L6(f):P6(f)),s=i?O0(f):cy(f)}l&&(t[e+1]=i?P6(o):L6(o))}function DGe(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&ax(t,n)>=0}const il={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Dre(t){return t.substring(il.key,il.keyEnd)}function EGe(t){return t.substring(il.value,il.valueEnd)}function Ere(t,n){const e=il.textEnd;return e===n?-1:(n=il.keyEnd=function IGe(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,il.key=n,e),Ox(t,n,e))}function Ore(t,n){const e=il.textEnd;let i=il.key=Ox(t,n,e);return e===i?-1:(i=il.keyEnd=function kGe(t,n,e){let i;for(;n<e&&(45===(i=t.charCodeAt(n))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=Ire(t,i,e),i=il.value=Ox(t,i,e),i=il.valueEnd=function MGe(t,n,e){let i=-1,r=-1,o=-1,a=n,s=a;for(;a<e;){const l=t.charCodeAt(a++);if(59===l)return s;34===l||39===l?s=a=kre(t,l,a,e):n===a-4&&85===o&&82===r&&76===i&&40===l?s=a=kre(t,41,a,e):l>32&&(s=a),o=r,r=i,i=-33&l}return s}(t,i,e),Ire(t,i,e))}function Tre(t){il.key=0,il.keyEnd=0,il.value=0,il.valueEnd=0,il.textEnd=t.length}function Ox(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Ire(t,n,e,i){return(n=Ox(t,n,e))<e&&n++,n}function kre(t,n,e,i){let r=-1,o=e;for(;o<i;){const a=t.charCodeAt(o++);if(a==n&&92!==r)return o;r=92==a&&92===r?0:a}throw new Error}function Tx(t,n,e){return Qh(t,n,e,!1),Tx}function Ur(t,n){return Qh(t,n,null,!0),Ur}function AGe(t,n){for(let e=function TGe(t){return Tre(t),Ore(t,Ox(t,0,il.textEnd))}(n);e>=0;e=Ore(n,e))Fre(t,Dre(n),EGe(n))}function eo(t){ep(mc,Qp,t,!0)}function Qp(t,n){for(let e=function OGe(t){return Tre(t),Ere(t,Ox(t,0,il.textEnd))}(n);e>=0;e=Ere(n,e))mc(t,Dre(n),!0)}function Qh(t,n,e,i){const r=Nn(),o=Co(),a=Ff(2);o.firstUpdatePass&&Are(o,t,a,i),n!==Pr&&wu(r,a,n)&&Pre(o,o.data[od()],r,r[11],t,r[a+1]=function VGe(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=xt(_c(t)))),t}(n,e),i,a)}function ep(t,n,e,i){const r=Co(),o=Ff(2);r.firstUpdatePass&&Are(r,null,o,i);const a=Nn();if(e!==Pr&&wu(a,o,e)){const s=r.data[od()];if(Lre(s,i)&&!Mre(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(e=_t(l,e||"")),k6(r,s,a,e,i)}else!function NGe(t,n,e,i,r,o,a,s){r===Pr&&(r=zn);let l=0,u=0,f=0<r.length?r[0]:null,S=0<o.length?o[0]:null;for(;null!==f||null!==S;){const T=l<r.length?r[l+1]:void 0,R=u<o.length?o[u+1]:void 0;let z,L=null;f===S?(l+=2,u+=2,T!==R&&(L=S,z=R)):null===S||null!==f&&f<S?(l+=2,L=f):(u+=2,L=S,z=R),null!==L&&Pre(t,n,e,i,L,z,a,s),f=l<r.length?r[l]:null,S=u<o.length?o[u]:null}}(r,s,a,a[11],a[o+1],a[o+1]=function BGe(t,n,e){if(null==e||""===e)return zn;const i=[],r=_c(e);if(Array.isArray(r))for(let o=0;o<r.length;o++)t(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&t(i,o,r[o]);else"string"==typeof r&&n(i,r);return i}(t,n,e),i,o)}}function Mre(t,n){return n>=t.expandoStartIndex}function Are(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[od()],a=Mre(t,e);Lre(o,i)&&null===n&&!a&&(n=!1),n=function FGe(t,n,e,i){const r=function gV(t){const n=Fr.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=aE(e=B6(null,t,n,e,i),n.attrs,i),o=null);else{const a=n.directiveStylingLast;if(-1===a||t[a]!==r)if(e=B6(r,t,n,e,i),null===o){let l=function PGe(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==cy(i))return t[O0(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=B6(null,t,n,l[1],i),l=aE(l,n.attrs,i),function RGe(t,n,e,i){t[O0(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function LGe(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++)i=aE(i,t[o].hostAttrs,e);return aE(i,n.attrs,e)}(t,n,i)}return void 0!==o&&(i?n.residualClasses=o:n.residualStyles=o),e}(r,o,n,i),function wGe(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=O0(a),l=cy(a);t[i]=e;let f,u=!1;if(Array.isArray(e)?(f=e[1],(null===f||ax(e,f)>0)&&(u=!0)):f=e,r)if(0!==l){const T=O0(t[s+1]);t[i+1]=GA(T,s),0!==T&&(t[T+1]=R6(t[T+1],i)),t[s+1]=function bGe(t,n){return 131071&t|n<<17}(t[s+1],i)}else t[i+1]=GA(s,0),0!==s&&(t[s+1]=R6(t[s+1],i)),s=i;else t[i+1]=GA(l,0),0===s?s=i:t[l+1]=R6(t[l+1],i),l=i;u&&(t[i+1]=P6(t[i+1])),Sre(t,f,i,!0),Sre(t,f,i,!1),function SGe(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&ax(o,n)>=0&&(e[i+1]=L6(e[i+1]))}(n,f,t,i,o),a=GA(s,l),o?n.classBindings=a:n.styleBindings=a}(r,o,n,e,a,i)}}function B6(t,n,e,i,r){let o=null;const a=e.directiveEnd;let s=e.directiveStylingLast;for(-1===s?s=e.directiveStart:s++;s<a&&(o=n[s],i=aE(i,o.hostAttrs,r),o!==t);)s++;return null!==t&&(e.directiveStylingLast=s),i}function aE(t,n,e){const i=e?1:2;let r=-1;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?r=a:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),mc(t,a,!!e||n[++o]))}return void 0===t?null:t}function Fre(t,n,e){mc(t,n,_c(e))}function Pre(t,n,e,i,r,o,a,s){if(!(3&n.type))return;const l=t.data,u=l[s+1],f=function xGe(t){return 1==(1&t)}(u)?Rre(l,n,e,r,cy(u),a):void 0;jA(f)||(jA(o)||function CGe(t){return 2==(2&t)}(u)&&(o=Rre(l,null,e,r,s,a)),function H5e(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let o=-1===i.indexOf("-")?void 0:zd.DashCase;null==r?t.removeStyle(e,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=zd.Important),t.setStyle(e,i,r,o))}}(i,a,lA(od(),e),r,o))}function Rre(t,n,e,i,r,o){const a=null===n;let s;for(;r>0;){const l=t[r],u=Array.isArray(l),f=u?l[1]:l,S=null===f;let T=e[r+1];T===Pr&&(T=S?zn:void 0);let R=S?IV(T,i):f===i?T:void 0;if(u&&!jA(R)&&(R=IV(l,i)),jA(R)&&(s=R,a))return s;const L=t[r+1];r=a?O0(L):cy(L)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(s=IV(l,i))}return s}function jA(t){return void 0!==t}function Lre(t,n){return 0!=(t.flags&(n?8:16))}function xi(t,n=""){const e=Nn(),i=Co(),r=t+22,o=i.firstCreatePass?_x(i,r,1,n,null):i.data[r],a=e[r]=function UV(t,n){return t.createText(n)}(e[11],n);SA(i,e,a,o),jp(o,!1)}function mr(t){return ca("",t,""),mr}function ca(t,n,e){const i=Nn(),r=yx(i,t,n,e);return r!==Pr&&Bf(i,od(),r),ca}function Ix(t,n,e,i,r){const o=Nn(),a=Cx(o,t,n,e,i,r);return a!==Pr&&Bf(o,od(),a),Ix}function N6(t,n,e){ep(mc,Qp,yx(Nn(),t,n,e),!0)}function V6(t,n,e){!function Jp(t){ep(Fre,AGe,t,!1)}(yx(Nn(),t,n,e))}const Mx="en-US";let ioe=Mx;function U6(t,n,e,i,r){if(t=Ut(t),Array.isArray(t))for(let o=0;o<t.length;o++)U6(t[o],n,e,i,r);else{const o=Co(),a=Nn();let s=ly(t)?t:Ut(t.provide),l=hie(t);const u=tu(),f=1048575&u.providerIndexes,S=u.directiveStart,T=u.providerIndexes>>20;if(ly(t)||!t.multi){const R=new zD(l,r,$),L=G6(s,n,r?f:f+T,S);-1===L?(DV(mA(u,a),o,s),W6(o,t,n.length),n.push(s),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),e.push(R),a.push(R)):(e[L]=R,a[L]=R)}else{const R=G6(s,n,f+T,S),L=G6(s,n,f,f+T),j=L>=0&&e[L];if(r&&!j||!r&&!(R>=0&&e[R])){DV(mA(u,a),o,s);const Y=function tKe(t,n,e,i,r){const o=new zD(t,e,$);return o.multi=[],o.index=n,o.componentProviders=0,Toe(o,r,i&&!e),o}(r?eKe:Qje,e.length,r,i,l);!r&&j&&(e[L].providerFactory=Y),W6(o,t,n.length,0),n.push(s),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),e.push(Y),a.push(Y)}else W6(o,t,R>-1?R:L,Toe(e[r?L:R],l,!r&&i));!r&&i&&j&&e[L].componentProviders++}}}function W6(t,n,e,i){const r=ly(n),o=function CUe(t){return!!t.useClass}(n);if(r||o){const l=(o?Ut(n.useClass):n).prototype.ngOnDestroy;if(l){const u=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const f=u.indexOf(e);-1===f?u.push(e,[i,l]):u[f+1].push(i,l)}else u.push(e,l)}}}function Toe(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function G6(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function Qje(t,n,e,i){return j6(this.multi,[])}function eKe(t,n,e,i){const r=this.multi;let o;if(this.providerFactory){const a=this.providerFactory.componentProviders,s=iy(e,e[1],this.providerFactory.index,i);o=s.slice(0,a),j6(r,o);for(let l=a;l<s.length;l++)o.push(s[l])}else o=[],j6(r,o);return o}function j6(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function ot(t,n=[]){return e=>{e.providersResolver=(i,r)=>function Jje(t,n,e){const i=Co();if(i.firstCreatePass){const r=Hd(t);U6(e,i.data,i.blueprint,r,!0),U6(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class Ax{}class Ioe{}class koe extends Ax{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Zie(this);const i=Sl(n);this._bootstrapComponents=Lf(i.bootstrap),this._r3Injector=Tie(n,e,[{provide:Ax,useValue:this},{provide:cx,useValue:this.componentFactoryResolver}],xt(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class K6 extends Ioe{constructor(n){super(),this.moduleType=n}create(n){return new koe(this.moduleType,n)}}class iKe extends Ax{constructor(n,e,i){super(),this.componentFactoryResolver=new Zie(this),this.instance=null;const r=new cie([...n,{provide:Ax,useValue:this},{provide:cx,useValue:this.componentFactoryResolver}],e||AA(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function ZA(t,n,e=null){return new iKe(t,n,e).injector}let rKe=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=sie(0,e.type),r=i.length>0?ZA([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Hn({token:t,providedIn:"environment",factory:()=>new t(qt(Yp))}),t})();function Moe(t){t.getStandaloneInjector=n=>n.get(rKe).getOrCreateStandaloneInjector(t)}function Fx(t,n,e){const i=rd()+t,r=Nn();return r[i]===Pr?Xp(r,i,e?n.call(e):n()):function iE(t,n){return t[n]}(r,i)}function T0(t,n,e,i){return Voe(Nn(),rd(),t,n,e,i)}function Noe(t,n,e,i,r){return function Hoe(t,n,e,i,r,o,a){const s=n+e;return dy(t,s,r,o)?Xp(t,s+2,a?i.call(a,r,o):i(r,o)):hE(t,s+2)}(Nn(),rd(),t,n,e,i,r)}function hE(t,n){const e=t[n];return e===Pr?void 0:e}function Voe(t,n,e,i,r,o){const a=n+e;return wu(t,a,r)?Xp(t,a+1,o?i.call(o,r):i(r)):hE(t,a+1)}function Nf(t,n){const e=Co();let i;const r=t+22;e.firstCreatePass?(i=function CKe(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=ty(i.type)),a=lt($);try{const s=fA(!1),l=o();return fA(s),function fGe(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,Nn(),r,l),l}finally{lt(a)}}function Vf(t,n,e){const i=t+22,r=Nn(),o=Jb(r,i);return function pE(t,n){return t[1].data[n].pure}(r,i)?Voe(r,rd(),n,o.transform,e,o):o.transform(e)}function q6(t){return n=>{setTimeout(t,void 0,n)}}const qi=class DKe extends le{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),a=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=q6(o),r&&(r=q6(r)),a&&(a=q6(a)));const s=super.subscribe({next:r,error:o,complete:a});return n instanceof O&&n.add(s),s}};function EKe(){return this._results[uy()]()}class Y6{get changes(){return this._changes||(this._changes=new qi)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=uy(),i=Y6.prototype;i[e]||(i[e]=EKe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function ih(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function Gze(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],o=n[i];if(e&&(r=e(r),o=e(o)),o!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let eg=(()=>{class t{}return t.__NG_ELEMENT_ID__=IKe,t})();const OKe=eg,TKe=class extends OKe{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tViews,r=RA(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[19];return null!==a&&(r[19]=a.createEmbeddedView(i)),m6(i,r,n),new tE(r)}};function IKe(){return XA(tu(),Nn())}function XA(t,n){return 4&t.type?new TKe(n,t,hx(t,n)):null}let oh=(()=>{class t{}return t.__NG_ELEMENT_ID__=kKe,t})();function kKe(){return Koe(tu(),Nn())}const MKe=oh,Goe=class extends MKe{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return hx(this._hostTNode,this._hostLView)}get injector(){return new tx(this._hostTNode,this._hostLView)}get parentInjector(){const n=SV(this._hostTNode,this._hostLView);if(Zte(n)){const e=gA(n,this._hostLView),i=pA(n);return new tx(e[1].data[i+8],e)}return new tx(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=joe(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=n.createEmbeddedView(e||{},o);return this.insert(a,r),a}createComponent(n,e,i,r,o){const a=n&&!function GD(t){return"function"==typeof t}(n);let s;if(a)s=e;else{const S=e||{};s=S.index,i=S.injector,r=S.projectableNodes,o=S.environmentInjector||S.ngModuleRef}const l=a?n:new nE(Ao(n)),u=i||this.parentInjector;if(!o&&null==l.ngModule){const T=(a?u:this.parentInjector).get(Yp,null);T&&(o=T)}const f=l.create(u,r,void 0,o);return this.insert(f.hostView,s),f}insert(n,e){const i=n._lView,r=i[1];if(function gze(t){return xr(t[3])}(i)){const f=this.indexOf(n);if(-1!==f)this.detach(f);else{const S=i[3],T=new Goe(S,S[6],S[3]);T.detach(T.indexOf(n))}}const o=this._adjustIndex(e),a=this._lContainer;!function A5e(t,n,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=n),i<o-10?(n[4]=e[r],lne(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const a=n[17];null!==a&&e!==a&&function F5e(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(a,n);const s=n[19];null!==s&&s.insertView(t),n[2]|=64}(r,i,a,o);const s=$V(o,a),l=i[11],u=wA(l,a[7]);return null!==u&&function I5e(t,n,e,i,r,o){i[0]=r,i[6]=n,XD(t,i,e,1,r,o)}(r,a[6],l,i,u,s),n.attachToViewContainerRef(),lne(Z6(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=joe(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=GV(this._lContainer,e);i&&(yA(Z6(this._lContainer),e),Ane(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=GV(this._lContainer,e);return i&&null!=yA(Z6(this._lContainer),e)?new tE(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function joe(t){return t[8]}function Z6(t){return t[8]||(t[8]=[])}function Koe(t,n){let e;const i=n[t.index];if(xr(i))e=i;else{let r;if(8&t.type)r=eu(i);else{const o=n[11];r=o.createComment("");const a=gc(t,n);oy(o,wA(o,a),r,function B5e(t,n){return t.nextSibling(n)}(o,a),!1)}n[t.index]=e=jie(i,n,r,t),BA(n,e)}return new Goe(e,t,n)}class X6{constructor(n){this.queryList=n,this.matches=null}clone(){return new X6(this.queryList)}setDirty(){this.queryList.setDirty()}}class J6{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.contentQueries[0]:e.length,r=[];for(let o=0;o<i;o++){const a=e.getByIndex(o);r.push(this.queries[a.indexInDeclarationView].clone())}return new J6(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==Xoe(n,e).matches&&this.queries[e].setDirty()}}class $oe{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class Q6{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,null!==e?e.push(o):e=[o])}return null!==e?new Q6(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class eH{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new eH(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(n,e,AKe(e,o)),this.matchTNodeWithReadOption(n,e,_A(e,n,o,!1,!1))}else i===eg?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,_A(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===jn||r===oh||r===eg&&4&e.type)this.addMatch(e.index,-2);else{const o=_A(e,n,r,!1,!1);null!==o&&this.addMatch(e.index,o)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function AKe(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function PKe(t,n,e,i){return-1===e?function FKe(t,n){return 11&t.type?hx(t,n):4&t.type?XA(t,n):null}(n,t):-2===e?function RKe(t,n,e){return e===jn?hx(n,t):e===eg?XA(n,t):e===oh?Koe(n,t):void 0}(t,n,i):iy(t,t[1],e,n)}function qoe(t,n,e,i){const r=n[19].queries[i];if(null===r.matches){const o=t.data,a=e.matches,s=[];for(let l=0;l<a.length;l+=2){const u=a[l];s.push(u<0?null:PKe(n,o[u],a[l+1],e.metadata.read))}r.matches=s}return r.matches}function tH(t,n,e,i){const r=t.queries.getByIndex(e),o=r.matches;if(null!==o){const a=qoe(t,n,r,e);for(let s=0;s<o.length;s+=2){const l=o[s];if(l>0)i.push(a[s/2]);else{const u=o[s+1],f=n[-l];for(let S=10;S<f.length;S++){const T=f[S];T[17]===T[3]&&tH(T[1],T,u,i)}if(null!==f[9]){const S=f[9];for(let T=0;T<S.length;T++){const R=S[T];tH(R[1],R,u,i)}}}}}return i}function yn(t){const n=Nn(),e=Co(),i=Vte();fV(i+1);const r=Xoe(e,i);if(t.dirty&&function pze(t){return 4==(4&t[2])}(n)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const o=r.crossesNgTemplate?tH(e,n,i,[]):qoe(e,n,r,i);t.reset(o,MUe),t.notifyOnChanges()}return!0}return!1}function nu(t,n,e){const i=Co();i.firstCreatePass&&(Zoe(i,new $oe(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),Yoe(i,Nn(),n)}function In(t,n,e,i){const r=Co();if(r.firstCreatePass){const o=tu();Zoe(r,new $oe(n,e,i),o.index),function BKe(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(r,t),2==(2&e)&&(r.staticContentQueries=!0)}Yoe(r,Nn(),e)}function Cn(){return function LKe(t,n){return t[19].queries[n].queryList}(Nn(),Vte())}function Yoe(t,n,e){const i=new Y6(4==(4&e));Vie(t,n,i,i.destroy),null===n[19]&&(n[19]=new J6),n[19].queries.push(new X6(i))}function Zoe(t,n,e){null===t.queries&&(t.queries=new Q6),t.queries.track(new eH(n,e))}function Xoe(t,n){return t.queries.getByIndex(n)}function Fs(t,n){return XA(t,n)}function QA(...t){}const eF=new Pi("Application Initializer");let tF=(()=>{class t{constructor(e){this.appInits=e,this.resolve=QA,this.reject=QA,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const o=this.appInits[r]();if(rE(o))e.push(o);else if(A6(o)){const a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(qt(eF,8))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Lx=new Pi("AppId",{providedIn:"root",factory:function mae(){return`${aH()}${aH()}${aH()}`}});function aH(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const _ae=new Pi("Platform Initializer"),si=new Pi("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),vae=new Pi("appBootstrapListener");let sH=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const tp=new Pi("LocaleId",{providedIn:"root",factory:()=>Ji(tp,Ui.Optional|Ui.SkipSelf)||function i$e(){return typeof $localize<"u"&&$localize.locale||Mx}()});class o$e{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let yae=(()=>{class t{compileModuleSync(e){return new K6(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Lf(Sl(e).declarations).reduce((a,s)=>{const l=Ao(s);return l&&a.push(new nE(l)),a},[]);return new o$e(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const l$e=(()=>Promise.resolve(0))();function lH(t){typeof Zone>"u"?l$e.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Un{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new qi(!1),this.onMicrotaskEmpty=new qi(!1),this.onStable=new qi(!1),this.onError=new qi(!1),typeof Zone>"u")throw new Dn(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function u$e(){let t=dn.requestAnimationFrame,n=dn.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function h$e(t){const n=()=>{!function c$e(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(dn,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,dH(t),t.isCheckStableRunning=!0,uH(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),dH(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,a,s)=>{try{return xae(t),e.invokeTask(r,o,a,s)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),wae(t)}},onInvoke:(e,i,r,o,a,s,l)=>{try{return xae(t),e.invoke(r,o,a,s,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),wae(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,dH(t),uH(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Un.isInAngularZone())throw new Dn(909,!1)}static assertNotInAngularZone(){if(Un.isInAngularZone())throw new Dn(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,d$e,QA,QA);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const d$e={};function uH(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 dH(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function xae(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function wae(t){t._nesting--,uH(t)}class p$e{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new qi,this.onMicrotaskEmpty=new qi,this.onStable=new qi,this.onError=new qi}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const Sae=new Pi(""),nF=new Pi("");let cH,fE=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,cH||(function g$e(t){cH=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Un.assertNotInAngularZone(),lH(()=>{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())lH(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(qt(Un),qt(mE),qt(nF))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})(),mE=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return cH?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),I0=null;const Dae=new Pi("AllowMultipleToken"),hH=new Pi("PlatformDestroyListeners");class Eae{constructor(n,e){this.name=n,this.token=e}}function Tae(t,n,e=[]){const i=`Platform: ${n}`,r=new Pi(i);return(o=[])=>{let a=pH();if(!a||a.injector.get(Dae,!1)){const s=[...e,...o,{provide:r,useValue:!0}];t?t(s):function _$e(t){if(I0&&!I0.get(Dae,!1))throw new Dn(400,!1);I0=t;const n=t.get(gH);(function Oae(t){const n=t.get(_ae,null);n&&n.forEach(e=>e())})(t)}(function Iae(t=[],n){return xu.create({name:n,providers:[{provide:o6,useValue:"platform"},{provide:hH,useValue:new Set([()=>I0=null])},...t]})}(s,i))}return function y$e(t){const n=pH();if(!n)throw new Dn(401,!1);return n}()}}function pH(){return I0?.get(gH)??null}let gH=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function Mae(t,n){let e;return e="noop"===t?new p$e:("zone.js"===t?void 0:t)||new Un(n),e}(i?.ngZone,function kae(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Un,useValue:r}];return r.run(()=>{const a=xu.create({providers:o,parent:this.injector,name:e.moduleType.name}),s=e.create(a),l=s.injector.get(gx,null);if(!l)throw new Dn(402,!1);return r.runOutsideAngular(()=>{const u=r.onError.subscribe({next:f=>{l.handleError(f)}});s.onDestroy(()=>{iF(this._modules,s),u.unsubscribe()})}),function Aae(t,n,e){try{const i=e();return rE(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const u=s.injector.get(tF);return u.runInitializers(),u.donePromise.then(()=>(function roe(t){na(t,"Expected localeId to be defined"),"string"==typeof t&&(ioe=t.toLowerCase().replace(/_/g,"-"))}(s.injector.get(tp,Mx)||Mx),this._moduleDoBootstrap(s),s))})})}bootstrapModule(e,i=[]){const r=Fae({},i);return function f$e(t,n,e){const i=new K6(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(_E);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new Dn(-403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Dn(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(hH,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(qt(xu))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Fae(t,n){return Array.isArray(n)?n.reduce(Fae,t):{...t,...n}}let _E=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new G(s=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{s.next(this._stable),s.complete()})}),a=new G(s=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Un.assertNotInAngularZone(),lH(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,s.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{Un.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{s.next(!1)}))});return()=>{l.unsubscribe(),u.unsubscribe()}});this.isStable=function sn(...t){let n=Number.POSITIVE_INFINITY,e=null,i=t[t.length-1];return oe(i)?(e=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===e&&1===t.length&&t[0]instanceof G?t[0]:jt(n)(an(t,e))}(o,a.pipe(function ht(){return t=>Bn()(function Ht(t,n){return function(i){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof n)return i.lift(new en(r,n));const o=Object.create(i,Xi);return o.source=i,o.subjectFactory=r,o}}(Gt)(t))}()))}bootstrap(e,i){const r=e instanceof pie;if(!this._injector.get(tF).done)throw!r&&function y0(t){const n=Ao(t)||wl(t)||Ql(t);return null!==n&&n.standalone}(e),new Dn(405,false);let a;a=r?e:this._injector.get(cx).resolveComponentFactory(e),this.componentTypes.push(a.componentType);const s=function m$e(t){return t.isBoundToModule}(a)?void 0:this._injector.get(Ax),u=a.create(xu.NULL,[],i||a.selector,s),f=u.location.nativeElement,S=u.injector.get(Sae,null);return S?.registerApplication(f),u.onDestroy(()=>{this.detachView(u.hostView),iF(this.components,u),S?.unregisterApplication(f)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new Dn(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;iF(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(vae,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>iF(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new Dn(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(qt(Un),qt(Yp),qt(gx))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function iF(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let tg=(()=>{class t{}return t.__NG_ELEMENT_ID__=b$e,t})();function b$e(t){return function x$e(t,n,e){if(jo(t)&&!e){const i=fc(t.index,n);return new tE(i,i)}return 47&t.type?new tE(n[16],n):null}(tu(),Nn(),16==(16&t))}class Nae{constructor(){}supports(n){return UA(n)}create(n){return new T$e(n)}}const O$e=(t,n)=>n;class T$e{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||O$e}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const a=!i||e&&e.currentIndex<Hae(i,r,o)?e:i,s=Hae(a,r,o),l=a.currentIndex;if(a===i)r--,i=i._nextRemoved;else if(e=e._next,null==a.previousIndex)r++;else{o||(o=[]);const u=s-r,f=l-r;if(u!=f){for(let T=0;T<u;T++){const R=T<o.length?o[T]:o[T]=0,L=R+T;f<=L&&L<u&&(o[T]=R+1)}o[a.previousIndex]=f-u}}s!==l&&n(a,s,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!UA(n))throw new Dn(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,o,a,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let s=0;s<this.length;s++)o=n[s],a=this._trackByFn(s,o),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,o,a,s)),Object.is(e.item,o)||this._addIdentityChange(e,o)):(e=this._mismatch(e,o,a,s),i=!0),e=e._next}else r=0,function cGe(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[uy()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,s=>{a=this._trackByFn(r,s),null!==e&&Object.is(e.trackById,a)?(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,a,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new I$e(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Vae),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Vae),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class I$e{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class k$e{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Vae{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new k$e,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Hae(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}class zae{constructor(){}supports(n){return n instanceof Map||I6(n)}create(){return new M$e}}class M$e{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||I6(n)))throw new Dn(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,a=r._next;return o&&(o._next=a),a&&(a._prev=o),r._next=null,r._prev=null,r}const i=new A$e(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class A$e{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Uae(){return new vE([new Nae])}let vE=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Uae()),deps:[[t,new KD,new sx]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new Dn(901,!1)}}return t.\u0275prov=Hn({token:t,providedIn:"root",factory:Uae}),t})();function Wae(){return new yE([new zae])}let yE=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||Wae()),deps:[[t,new KD,new sx]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new Dn(901,!1)}}return t.\u0275prov=Hn({token:t,providedIn:"root",factory:Wae}),t})();const R$e=Tae(null,"core",[]);let L$e=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(qt(_E))},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})();function Bx(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let yH=null;function ip(){return yH}class V$e{}const Ko=new Pi("DocumentToken");let CH=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:function(){return function H$e(){return qt(Gae)}()},providedIn:"platform"}),t})();const z$e=new Pi("Location Initialized");let Gae=(()=>{class t extends CH{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ip().getBaseHref(this._doc)}onPopState(e){const i=ip().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=ip().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){jae()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){jae()?this._history.replaceState(e,i,r):this._location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(qt(Ko))},t.\u0275prov=Hn({token:t,factory:function(){return function U$e(){return new Gae(qt(Ko))}()},providedIn:"platform"}),t})();function jae(){return!!window.history.pushState}function bH(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function Kae(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function zf(t){return t&&"?"!==t[0]?"?"+t:t}let gy=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:function(){return Ji(qae)},providedIn:"root"}),t})();const $ae=new Pi("appBaseHref");let qae=(()=>{class t extends gy{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Ji(Ko).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return bH(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+zf(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const a=this.prepareExternalUrl(r+zf(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){const a=this.prepareExternalUrl(r+zf(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(CH),qt($ae,8))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),W$e=(()=>{class t extends gy{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=bH(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+zf(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+zf(o));0==a.length&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(CH),qt($ae,8))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})(),aF=(()=>{class t{constructor(e){this._subject=new qi,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function K$e(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(Kae(Yae(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+zf(i))}normalize(e){return t.stripTrailingSlash(function j$e(t,n){return t&&new RegExp(`^${t}([/;?#]|$)`).test(n)?n.substring(t.length):n}(this._basePath,Yae(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+zf(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+zf(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=zf,t.joinWithSlash=bH,t.stripTrailingSlash=Kae,t.\u0275fac=function(e){return new(e||t)(qt(gy))},t.\u0275prov=Hn({token:t,factory:function(){return function G$e(){return new aF(qt(gy))}()},providedIn:"root"}),t})();function Yae(t){return t.replace(/\/index.html$/,"")}function rse(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const MH=/\s+/,ose=[];let AH=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=ose,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(MH):ose}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(MH):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(MH).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)($(vE),$(yE),$(jn),$(bu))},t.\u0275dir=sr({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class kqe{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Wf=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,a)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new kqe(r.item,this._ngForOf,-1,-1),null===a?void 0:a);else if(null==a)i.remove(null===o?void 0:o);else if(null!==o){const s=i.get(o);i.move(s,a),lse(s,r)}});for(let r=0,o=i.length;r<o;r++){const s=i.get(r).context;s.index=r,s.count=o,s.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{lse(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)($(oh),$(eg),$(vE))},t.\u0275dir=sr({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function lse(t,n){t.context.$implicit=n.item}let Tl=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new Aqe,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){use("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){use("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)($(oh),$(eg))},t.\u0275dir=sr({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class Aqe{constructor(){this.$implicit=null,this.ngIf=null}}function use(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${xt(n)}'.`)}let xE=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),a=-1===r.indexOf("-")?void 0:zd.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,a):this._renderer.removeStyle(this._ngEl.nativeElement,r,a)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(yE),$(bu))},t.\u0275dir=sr({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),cse=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:a}=this;this._viewRef=i.createEmbeddedView(r,o,a?{injector:a}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)($(oh))},t.\u0275dir=sr({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[hi]}),t})();class Lqe{createSubscription(n,e){return n.subscribe({next:e,error:i=>{throw i}})}dispose(n){n.unsubscribe()}}class Bqe{createSubscription(n,e){return n.then(e,i=>{throw i})}dispose(n){}}const Nqe=new Bqe,Vqe=new Lqe;let hse=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(rE(e))return Nqe;if(cre(e))return Vqe;throw function op(t,n){return new Dn(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)($(tg,16))},t.\u0275pipe=bs({name:"async",type:t,pure:!1,standalone:!0}),t})(),ng=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})();function Gf(t){return"browser"===t}let aYe=(()=>{class t{}return t.\u0275prov=Hn({token:t,providedIn:"root",factory:()=>new sYe(qt(Ko),window)}),t})();class sYe{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function lYe(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const a=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(a)return a}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=mse(this.window.history)||mse(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function mse(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class BH{}class RYe extends V$e{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class zH extends RYe{static makeCurrent(){!function N$e(t){yH||(yH=t)}(new zH)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function LYe(){return SE=SE||document.querySelector("base"),SE?SE.getAttribute("href"):null}();return null==e?null:function BYe(t){_F=_F||document.createElement("a"),_F.setAttribute("href",t);const n=_F.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){SE=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return rse(document.cookie,n)}}let _F,SE=null;const bse=new Pi("TRANSITION_ID"),VYe=[{provide:eF,useFactory:function NYe(t,n,e){return()=>{e.get(tF).donePromise.then(()=>{const i=ip(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o<r.length;o++)i.remove(r[o])})}},deps:[bse,Ko,xu],multi:!0}];let zYe=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();const DE=new Pi("EventManagerPlugins");let vF=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o<r.length;o++){const a=r[o];if(a.supports(e))return this._eventNameToPlugin.set(e,a),a}throw new Error(`No event manager plugin found for event ${e}`)}}return t.\u0275fac=function(e){return new(e||t)(qt(DE),qt(Un))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();class UH{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const r=ip().getGlobalEventTarget(this._doc,n);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let xse=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})(),EE=(()=>{class t extends xse{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const a=this._doc.createElement("style");a.textContent=o,r.push(i.appendChild(a))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(wse),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(wse))}}return t.\u0275fac=function(e){return new(e||t)(qt(Ko))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();function wse(t){ip().remove(t)}const WH={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},GH=/%COMP%/g;function jH(t,n){return n.flat(100).map(e=>e.replace(GH,t))}function Ese(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let KH=(()=>{class t{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new $H(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Vt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new $Ye(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case Vt.ShadowDom:return new qYe(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=jH(i.id,i.styles);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(qt(vF),qt(EE),qt(Lx))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();class $H{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(WH[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(Tse(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(Tse(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=WH[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=WH[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(zd.DashCase|zd.Important)?n.style.setProperty(e,i,r&zd.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&zd.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,Ese(i)):this.eventManager.addEventListener(n,e,Ese(i))}}function Tse(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class $Ye extends $H{constructor(n,e,i,r){super(n),this.component=i;const o=jH(r+"-"+i.id,i.styles);e.addStyles(o),this.contentAttr=function GYe(t){return"_ngcontent-%COMP%".replace(GH,t)}(r+"-"+i.id),this.hostAttr=function jYe(t){return"_nghost-%COMP%".replace(GH,t)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class qYe extends $H{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=jH(r.id,r.styles);for(let a=0;a<o.length;a++){const s=document.createElement("style");s.textContent=o[a],this.shadowRoot.appendChild(s)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let YYe=(()=>{class t extends UH{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(qt(Ko))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();const Ise=["alt","control","meta","shift"],ZYe={"\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"},XYe={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let JYe=(()=>{class t extends UH{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),a=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ip().onAndCancel(e,o.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),Ise.forEach(u=>{const f=i.indexOf(u);f>-1&&(i.splice(f,1),a+=u+".")}),a+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=ZYe[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),Ise.forEach(a=>{a!==r&&(0,XYe[a])(e)&&(o+=a+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(qt(Ko))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();const Mse=[{provide:si,useValue:"browser"},{provide:_ae,useValue:function QYe(){zH.makeCurrent()},multi:!0},{provide:Ko,useFactory:function tZe(){return function j5e(t){XV=t}(document),document},deps:[]}],Ase=Tae(R$e,"browser",Mse),Fse=new Pi(""),Pse=[{provide:nF,useClass:class HYe{addToWindow(n){dn.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},dn.getAllAngularTestabilities=()=>n.getAllTestabilities(),dn.getAllAngularRootElements=()=>n.getAllRootElements(),dn.frameworkStabilizers||(dn.frameworkStabilizers=[]),dn.frameworkStabilizers.push(i=>{const r=dn.getAllAngularTestabilities();let o=r.length,a=!1;const s=function(l){a=a||l,o--,0==o&&i(a)};r.forEach(function(l){l.whenStable(s)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?ip().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:Sae,useClass:fE,deps:[Un,mE,nF]},{provide:fE,useClass:fE,deps:[Un,mE,nF]}],Rse=[{provide:o6,useValue:"root"},{provide:gx,useFactory:function eZe(){return new gx},deps:[]},{provide:DE,useClass:YYe,multi:!0,deps:[Ko,Un,si]},{provide:DE,useClass:JYe,multi:!0,deps:[Ko]},{provide:KH,useClass:KH,deps:[vF,EE,Lx]},{provide:fie,useExisting:KH},{provide:xse,useExisting:EE},{provide:EE,useClass:EE,deps:[Ko]},{provide:vF,useClass:vF,deps:[DE,Un]},{provide:BH,useClass:zYe,deps:[]},[]];let nZe=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Lx,useValue:e.appId},{provide:bse,useExisting:Lx},VYe]}}}return t.\u0275fac=function(e){return new(e||t)(qt(Fse,12))},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({providers:[...Rse,...Pse],imports:[ng,L$e]}),t})(),Lse=(()=>{class t{constructor(e){this._doc=e,this._dom=ip()}addTag(e,i=!1){return e?this._getOrCreateElement(e,i):null}addTags(e,i=!1){return e?e.reduce((r,o)=>(o&&r.push(this._getOrCreateElement(o,i)),r),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];const i=this._doc.querySelectorAll(`meta[${e}]`);return i?[].slice.call(i):[]}updateTag(e,i){if(!e)return null;i=i||this._parseSelector(e);const r=this.getTag(i);return r?this._setMetaElementAttributes(e,r):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,i=!1){if(!i){const a=this._parseSelector(e),s=this.getTags(a).filter(l=>this._containsAttributes(e,l))[0];if(void 0!==s)return s}const r=this._dom.createElement("meta");return this._setMetaElementAttributes(e,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(e,i){return Object.keys(e).forEach(r=>i.setAttribute(this._getMetaKeyMap(r),e[r])),i}_parseSelector(e){const i=e.name?"name":"property";return`${i}="${e[i]}"`}_containsAttributes(e,i){return Object.keys(e).every(r=>i.getAttribute(this._getMetaKeyMap(r))===e[r])}_getMetaKeyMap(e){return rZe[e]||e}}return t.\u0275fac=function(e){return new(e||t)(qt(Ko))},t.\u0275prov=Hn({token:t,factory:function(e){let i=null;return i=e?new e:function iZe(){return new Lse(qt(Ko))}(),i},providedIn:"root"}),t})();const rZe={httpEquiv:"http-equiv"};let YH=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(qt(Ko))},t.\u0275prov=Hn({token:t,factory:function(e){let i=null;return i=e?new e:function oZe(){return new YH(qt(Ko))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let fi=(()=>{class t{constructor(){this.store={},this.onSerializeCallbacks={}}get(e,i){return void 0!==this.store[e]?this.store[e]:i}set(e,i){this.store[e]=i}remove(e){delete this.store[e]}hasKey(e){return this.store.hasOwnProperty(e)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(e,i){this.onSerializeCallbacks[e]=i}toJson(){for(const e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:function(){return(()=>{const n=Ji(Ko),e=Ji(Lx),i=new t;return i.store=function cZe(t,n){const e=t.getElementById(n+"-state");let i={};if(e&&e.textContent)try{i=JSON.parse(function dZe(t){const n={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return t.replace(/&[^;]+;/g,e=>n[e])}(e.textContent))}catch(r){console.warn("Exception while restoring TransferState for app "+n,r)}return i}(n,e),i})()},providedIn:"root"}),t})(),mi=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})();const pZe={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,doubletap:!0},yF=new Pi("HammerGestureConfig"),Vse=new Pi("HammerLoader");let Hse=(()=>{class t{constructor(){this.events=[],this.overrides={}}buildHammer(e){const i=new Hammer(e,this.options);i.get("pinch").set({enable:!0}),i.get("rotate").set({enable:!0});for(const r in this.overrides)i.get(r).set(this.overrides[r]);return i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})(),gZe=(()=>{class t extends UH{constructor(e,i,r,o){super(e),this._config=i,this.console=r,this.loader=o,this._loaderPromise=null}supports(e){return!(!pZe.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader)}addEventListener(e,i,r){const o=this.manager.getZone();if(i=i.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||o.runOutsideAngular(()=>this.loader());let a=!1,s=()=>{a=!0};return o.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?a||(s=this.addEventListener(e,i,r)):s=()=>{}}).catch(()=>{s=()=>{}})),()=>{s()}}return o.runOutsideAngular(()=>{const a=this._config.buildHammer(e),s=function(l){o.runGuarded(function(){r(l)})};return a.on(i,s),()=>{a.off(i,s),"function"==typeof a.destroy&&a.destroy()}})}isCustomEvent(e){return this._config.events.indexOf(e)>-1}}return t.\u0275fac=function(e){return new(e||t)(qt(Ko),qt(yF),qt(sH),qt(Vse,8))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})(),fZe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({providers:[{provide:DE,useClass:gZe,multi:!0,deps:[Ko,yF,sH,[new sx,Vse]]},{provide:yF,useClass:Hse,deps:[]}]}),t})(),CF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:function(e){let i=null;return i=e?new(e||t):qt(zse),i},providedIn:"root"}),t})(),zse=(()=>{class t extends CF{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case xa.NONE:return i;case xa.HTML:return $p(i,"HTML")?_c(i):tie(this._doc,String(i)).toString();case xa.STYLE:return $p(i,"Style")?_c(i):i;case xa.SCRIPT:if($p(i,"Script"))return _c(i);throw new Error("unsafe value used in a script context");case xa.URL:return $p(i,"URL")?_c(i):TA(String(i));case xa.RESOURCE_URL:if($p(i,"ResourceURL"))return _c(i);throw new Error(`unsafe value used in a resource URL context (see ${cr})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${cr})`)}}bypassSecurityTrustHtml(e){return function J5e(t){return new K5e(t)}(e)}bypassSecurityTrustStyle(e){return function Q5e(t){return new $5e(t)}(e)}bypassSecurityTrustScript(e){return function eUe(t){return new q5e(t)}(e)}bypassSecurityTrustUrl(e){return function tUe(t){return new Y5e(t)}(e)}bypassSecurityTrustResourceUrl(e){return function nUe(t){return new Z5e(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(qt(Ko))},t.\u0275prov=Hn({token:t,factory:function(e){let i=null;return i=e?new e:function mZe(t){return new zse(t.get(Ko))}(qt(xu)),i},providedIn:"root"}),t})();function fy(){throw new Error("AngularJS v1.x is not loaded!")}const Use=()=>fy();Use.cleanData=fy;let ig={bootstrap:fy,module:fy,element:Use,injector:fy,version:void 0,resumeBootstrap:fy,getTestability:fy};try{window.hasOwnProperty("angular")&&(ig=window.angular)}catch{}const XH=(t,n)=>ig.module(t,n),OE=t=>ig.element(t);OE.cleanData=t=>ig.element.cleanData(t);const jf="$injector",$se="$$testability",JH="$$angularDowngradedModuleCount",M0="$$angularInjector",bF="$$angularLazyModuleRef",xF="$$angularUpgradeAppType",OZe="?^^"+M0,QH="$$UpgradeModule";class qse{constructor(n,e){this.prop=n,this.attr=e,this.bracketAttr=`[${this.attr}]`,this.parenAttr=`(${this.attr})`,this.bracketParenAttr=`[(${this.attr})]`;const i=this.attr.charAt(0).toUpperCase()+this.attr.slice(1);this.onAttr=`on${i}`,this.bindAttr=`bind${i}`,this.bindonAttr=`bindon${i}`}}function e7(t){OE.cleanData([t]),function FZe(t){return my(t.querySelectorAll)}(t)&&OE.cleanData(t.querySelectorAll("*"))}function wF(t){return"$"+t+"Controller"}function SF(t){return t.overriddenName||t.name||t.toString().split("\n")[0]}function t7(t){return t.has(JH)?t.get(JH):0}function Zse(t){return t.has(xF)?t.get(xF):0}function my(t){return"function"==typeof t}function LZe(t,n){return t===n||t!=t&&n!=n}const Jse={__UNINITIALIZED__:!0};class BZe{constructor(n,e,i,r,o,a,s,l,u){this.element=n,this.attrs=e,this.scope=i,this.ngModel=r,this.parentInjector=o,this.$compile=a,this.$parse=s,this.componentFactory=l,this.wrapCallback=u,this.implementsOnChanges=!1,this.inputChangeCount=0,this.inputChanges={},this.componentScope=i.$new()}compileContents(){const n=[],i=this.groupProjectableNodes().map(r=>this.$compile(r));return this.element.empty(),i.forEach(r=>{r(this.scope,o=>{n.push(o),this.element.append(o)})}),n}createComponentAndSetup(n,e=!1,i=!0){const r=this.createComponent(n);return this.setupInputs(e,i,r),this.setupOutputs(r.componentRef),this.registerCleanup(r.componentRef),r.componentRef}createComponent(n){const i=xu.create({providers:[{provide:"$scope",useValue:this.componentScope}],parent:this.parentInjector,name:"DowngradeComponentAdapter"}),r=this.componentFactory.create(i,n,this.element[0]),o=r.injector.get(tg),a=r.changeDetectorRef,s=r.injector.get(fE,null);return s&&r.injector.get(mE).registerApplication(r.location.nativeElement,s),function RZe(t,n){t&&function PZe(t){return"function"==typeof t.writeValue&&"function"==typeof t.registerOnChange}(n)&&(t.$render=()=>{n.writeValue(t.$viewValue)},n.registerOnChange(t.$setViewValue.bind(t)),"function"==typeof n.registerOnTouched&&n.registerOnTouched(t.$setTouched.bind(t)))}(this.ngModel,r.instance),{viewChangeDetector:o,componentRef:r,changeDetector:a}}setupInputs(n,e=!0,{componentRef:i,changeDetector:r,viewChangeDetector:o}){const a=this.attrs,s=this.componentFactory.inputs||[];for(const f of s){const S=new qse(f.propName,f.templateName);let T=null;if(a.hasOwnProperty(S.attr)){const R=(z=>{let j=Jse;return Y=>{LZe(j,Y)||(j===Jse&&(j=Y),this.updateInput(i,z,j,Y),j=Y)}})(S.prop);a.$observe(S.attr,R);let L=this.componentScope.$watch(()=>{L(),L=null,R(a[S.attr])})}else a.hasOwnProperty(S.bindAttr)?T=a[S.bindAttr]:a.hasOwnProperty(S.bracketAttr)?T=a[S.bracketAttr]:a.hasOwnProperty(S.bindonAttr)?T=a[S.bindonAttr]:a.hasOwnProperty(S.bracketParenAttr)&&(T=a[S.bracketParenAttr]);if(null!=T){const R=(L=>(z,j)=>this.updateInput(i,L,j,z))(S.prop);this.componentScope.$watch(T,R)}}const l=()=>r.detectChanges(),u=this.componentFactory.componentType.prototype;if(this.implementsOnChanges=!(!u||!u.ngOnChanges),this.componentScope.$watch(()=>this.inputChangeCount,this.wrapCallback(()=>{if(this.implementsOnChanges){const f=this.inputChanges;this.inputChanges={},i.instance.ngOnChanges(f)}o.markForCheck(),e||l()})),e&&this.componentScope.$watch(this.wrapCallback(l)),n||!e){let f=this.componentScope.$watch(()=>{f(),f=null,this.parentInjector.get(_E).attachView(i.hostView)})}}setupOutputs(n){const e=this.attrs,i=this.componentFactory.outputs||[];for(const r of i){const o=new qse(r.propName,r.templateName),a=o.bindonAttr.substring(0,o.bindonAttr.length-6),s=`[(${o.bracketParenAttr.substring(2,o.bracketParenAttr.length-8)})]`;e.hasOwnProperty(a)&&this.subscribeToOutput(n,o,e[a],!0),e.hasOwnProperty(s)&&this.subscribeToOutput(n,o,e[s],!0),e.hasOwnProperty(o.onAttr)&&this.subscribeToOutput(n,o,e[o.onAttr]),e.hasOwnProperty(o.parenAttr)&&this.subscribeToOutput(n,o,e[o.parenAttr])}}subscribeToOutput(n,e,i,r=!1){const o=this.$parse(i),a=o.assign;if(r&&!a)throw new Error(`Expression '${i}' is not assignable!`);const s=n.instance[e.prop];if(!s)throw new Error(`Missing emitter '${e.prop}' on component '${SF(this.componentFactory.componentType)}'!`);s.subscribe({next:r?l=>a(this.scope,l):l=>o(this.scope,{$event:l})})}registerCleanup(n){const e=n.injector.get(mE),i=this.wrapCallback(()=>n.destroy());let r=!1;this.element.on("$destroy",()=>{r||this.componentScope.$destroy()}),this.componentScope.$on("$destroy",()=>{r||(r=!0,e.unregisterApplication(n.location.nativeElement),e7(this.element[0]),i())})}updateInput(n,e,i,r){this.implementsOnChanges&&(this.inputChanges[e]=new Dte(i,r,i===r)),this.inputChangeCount++,n.instance[e]=r}groupProjectableNodes(){return function NZe(t,n){const e=[];for(let i=0,r=t.length;i<r;++i)e[i]=[];for(let i=0,r=n.length;i<r;++i){const o=n[i],a=VZe(o,t);null!=a&&e[a].push(o)}return e}(this.componentFactory.ngContentSelectors,this.element.contents())}}function VZe(t,n){const e=[];let i=-1;for(let r=0;r<n.length;r++){const o=n[r];"*"===o?i=r:HZe(t,o)&&e.push(r)}return e.sort(),-1!==i&&e.push(i),e.length?e[0]:null}function HZe(t,n){const e=Element.prototype;return t.nodeType===Node.ELEMENT_NODE&&(e.matches??e.msMatchesSelector).call(t,n)}class DF{constructor(){this.resolved=!1,this.callbacks=[]}static all(n){const e=new DF;let i=0;const r=[],o=(a,s)=>{r[a]=s,++i===n.length&&e.resolve(r)};return n.forEach((a,s)=>{!function zZe(t){return!!t&&my(t.then)}(a)?o(s,a):a.then(l=>o(s,l))}),e}resolve(n){this.resolved||(this.value=n,this.resolved=!0,this.callbacks.forEach(e=>e(n)),this.callbacks.length=0)}then(n){this.resolved?n(this.value):this.callbacks.push(n)}}function _y(t){const n=function(e,i,r){const o=3===Zse(i),a=o?u=>()=>Un.isInAngularZone()?u():s.run(u):u=>u;let s;const l=o&&t7(i)>1;return{restrict:"E",terminal:!0,require:[OZe,"?ngModel"],link:(u,f,S,T)=>{const R=T[1],L=T[0];let z,j=!1;if(!L||l){const he=t.downgradedModule||"",fe=`${bF}${he}`,Te=`instantiating component '${SF(t.component)}'`;!function Xse(t,n,e,i){const r=Zse(t),o=t7(t);switch(r){case 1:case 2:if(n)throw new Error(`Error while ${i}: 'downgradedModule' unexpectedly specified.\nYou should not specify a value for 'downgradedModule', unless you are downgrading more than one Angular module (via 'downgradeModule()').`);break;case 3:if(!n&&o>=2)throw new Error(`Error while ${i}: 'downgradedModule' not specified.\nThis application contains more than one downgraded Angular module, thus you need to always specify 'downgradedModule' when downgrading components and injectables.`);if(!t.has(e))throw new Error(`Error while ${i}: Unable to find the specified downgraded module.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?`);break;default:throw new Error(`Error while ${i}: Not a valid '@angular/upgrade' application.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?`)}}(i,he,fe,Te);const Re=i.get(fe);z=Re.injector??Re.promise}const te=(he,fe)=>{const Re=fe.get(cx).resolveComponentFactory(t.component);if(!Re)throw new Error(`Expecting ComponentFactory for: ${SF(t.component)}`);const He=new UZe(f),Ze=new BZe(f,S,u,R,he,e,r,Re,a),at=Ze.compileContents(),vt=Ze.createComponentAndSetup(at,o,t.propagateDigest);He.resolve(vt.injector),j&&u.$evalAsync(()=>{})},re=o?(he,fe)=>{s||(s=he.get(Un)),a(()=>te(he,fe))()}:te;DF.all([L||z,z||L]).then(([he,fe])=>re(he,fe)),j=!0}}};return n.$inject=["$compile",jf,"$parse"],n}class UZe extends DF{constructor(n){super(),this.element=n,this.injectorKey=wF(M0),n.data(this.injectorKey,this)}resolve(n){this.element.data(this.injectorKey,n),this.element=null,super.resolve(n)}}let EF=null;const ele=[{provide:"$injector",useFactory:function WZe(){if(!EF)throw new Error("Trying to get the AngularJS injector before it being set.");const t=EF;return EF=null,t},deps:[]},{provide:"$rootScope",useFactory:function GZe(t){return t.get("$rootScope")},deps:["$injector"]},{provide:"$compile",useFactory:function jZe(t){return t.get("$compile")},deps:["$injector"]},{provide:"$parse",useFactory:function KZe(t){return t.get("$parse")},deps:["$injector"]}];class tle{constructor(n){this.modInjector=n}get(n,e){return e===FA?e:this.modInjector.get(n,e)}}let ale=(()=>{class t{constructor(e,i,r){this.ngZone=i,this.platformRef=r,this.injector=new tle(e)}bootstrap(e,i=[],r){const o=QH+".init";XH(o,[]).constant(xF,2).value(M0,this.injector).factory(bF,[M0,u=>({injector:u})]).config(["$provide",jf,(u,f)=>{f.has($se)&&u.decorator($se,["$delegate",S=>{const T=S.whenStable,R=this.injector,L=function(z){T.call(S,function(){const j=R.get(fE);j.isStable()?z():j.whenStable(L.bind(S,z))})};return S.whenStable=L,S}]),f.has("$interval")&&u.decorator("$interval",["$delegate",S=>{let T=(R,L,z,j,...Y)=>this.ngZone.runOutsideAngular(()=>S((...ie)=>{setTimeout(()=>{this.ngZone.run(()=>R(...ie))})},L,z,j,...Y));return Object.keys(S).forEach(R=>T[R]=S[R]),S.hasOwnProperty("flush")&&(T.flush=()=>(S.flush(),T)),T}])}]).run([jf,u=>{this.$injector=u;const f=u.get("$rootScope");(function Qse(t){EF=t})(u),this.injector.get(jf),OE(e).data(wF(M0),this.injector),this.platformRef.onDestroy(()=>function Yse(t){const n=t.get("$rootElement");t.get("$rootScope").$destroy(),e7(n[0])}(u)),setTimeout(()=>{const S=this.ngZone.onMicrotaskEmpty.subscribe(()=>f.$$phase?f.$evalAsync():f.$digest());f.$on("$destroy",()=>{S.unsubscribe()})},0)}]);const a=XH(QH,[o].concat(i)),s=window.angular;s.resumeBootstrap=void 0;const l=this.ngZone.run(()=>((t,n,e)=>ig.bootstrap(t,n,e))(e,[a.name],r));if(s.resumeBootstrap){const u=s.resumeBootstrap,f=this.ngZone;s.resumeBootstrap=function(){let S=arguments;return s.resumeBootstrap=u,f.run(()=>s.resumeBootstrap.apply(this,S))}}return l}}return t.\u0275fac=function(e){return new(e||t)(qt(xu),qt(Un),qt(gH))},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({providers:[ele]}),t})();var vy=(()=>(function(t){t[t.Web=0]="Web",t[t.Android=1]="Android",t[t.iOS=2]="iOS"}(vy||(vy={})),vy))();class bo{constructor(){this.scope=window.scope,this.observer=new G(n=>{this.scope&&(n.next(this.scope),n.complete());const e=setInterval(()=>{this.scope&&(n.next(this.scope),n.complete(),clearInterval(e)),this.loadScope()},1e3)})}loadScope(){this.scope=window.scope}getScope(){return this.scope?this.scope:(console.log(this.scope,window.scope),this.loadScope(),window.scope)}getUserClientInfo(){const n=navigator.userAgent.includes("Merkurist_IAB")||!1,e=navigator.userAgent.replace(/.*\[Merkurist_IAB\/(.*)\]/gi,function(o,a){return a}),i=navigator.userAgent.includes("Android")?vy.Android:vy.iOS,r={isApp:n,appVersion:"",appPlatform:vy.Web};return n&&(r.appVersion=e,r.appPlatform=i),r}getMiniScope(){var n=window.miniScope;return n.apiEndpoint="/api/"+n.networkSlug+"/"+n.chapterSlug+"/",window.miniScope}}bo.\u0275fac=function(n){return new(n||bo)},bo.\u0275prov=Hn({token:bo,factory:bo.\u0275fac,providedIn:"root"});const Kf=992,A0={AppMerkurist:new RegExp("Merkurist_IAB"),AppApicodo:new RegExp("Apicodo_IAB"),Ios:/iPhone|iPad|iPod/i,Android:/Android/i,Safari:/Safari/i,ChromeIos:/CriOS/i,FirefoxIos:/FxiOS/i,EdgeIos:/EdgiOS/i};function F0(t){const n=document.getElementById(t);return n?function YZe(t){let e,i,r,n=t;if(t.match(/^rgb/)){const a=n.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(!a)return"LIGHT";e=+a[1],i=+a[2],r=+a[3]}else{const a=+("0x"+n.slice(1).replace(n.length<5?/./g:"","$&$&"));e=a>>16,i=a>>8&255,r=255&a}return Math.sqrt(e*e*.299+i*i*.587+r*r*.114)>127.5?"LIGHT":"DARK"}(window.getComputedStyle(n).backgroundColor):"LIGHT"}function ule(t){return t?.mimeType?.includes("image")??!1}function dle(t){if(void 0===t)return!1;try{return t?.name?.endsWith("pdf")??!1}catch{return!1}}function JZe(t,n){if(1&t&&(Ot(0,"div",11)(1,"a",12),xi(2),Pt()()),2&t){const e=yt(2);Ur("smart-banner-button-dark",e.isDarkButtonBackground()),pt(1),Tt("href",e.installOpenLink,ad),pt(1),ca(" ",e.scope.network.getResourceOrKeyName(e.scope.profile.hasPushToken?"web_smart_banner_open":"web_smart_banner_install")," ")}}function QZe(t,n){if(1&t){const e=Gi();Ot(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),li(4,"i",5),Ot(5,"div",6),fn("click",function(){return Kn(e),$n(yt().toggleSmartBanner())}),Pt()(),Ot(6,"div",7),li(7,"img",8),Pt(),Ot(8,"div",9)(9,"span"),xi(10),Pt()()(),cn(11,JZe,3,4,"div",10),Pt()()}if(2&t){const e=yt();pt(7),Tt("src",e.getNetworkIconBigUrl(),ad),pt(3),mr(e.scope.currentScope.network.name),pt(1),Tt("ngIf",null==e.installOpenLink?null:e.installOpenLink.length)}}class TE{constructor(n){this.isMobile=!1,this.isHidden=!1,this.getIsMobile=()=>window.innerWidth<Kf,this.isDarkButtonBackground=()=>"DARK"===F0("smart-banner-button"),this.scopeService=n,this.scope=n.getScope(),this.isMobile=this.getIsMobile(),this.userAgentType=function qZe(){let t=navigator.userAgent,n=t.includes("Macintosh")&&"ontouchend"in document;const e=A0.AppMerkurist.test(t)||A0.AppApicodo.test(t),i=A0.Ios.test(t)||n,r=A0.Android.test(t),o=A0.ChromeIos.test(t),a=A0.FirefoxIos.test(t),s=A0.EdgeIos.test(t),l=A0.Safari.test(t)&&!o&&!a&&!s;return{isApp:e,isAndroid:r,isIos:i,isSafari:l,isChromeIos:o,isFireFoxIos:a,isEdgeIos:s,isOtherBrowser:!(l||o||a||s),isOtherDevice:!e&&!i&&!r}}(),this.isHidden=this.isSmartBannerHiddenWithCookie();const{appLinkAndroid:e,appLinkITunes:i}=this.scope?.currentScope?.network?.settings??{};this.installOpenLink=(this.userAgentType.isAndroid?e:i)??"",this.updateRootPadding()}onResize(){this.isMobile=this.getIsMobile()}showSmartBanner(){if(!this.scope.currentScope.network.settings.configurations.showAppSmartBanner||!this.isMobile||this.isHidden)return!1;const{isApp:e,isAndroid:i,isIos:r,isSafari:o,isOtherBrowser:a}=this.userAgentType;return!e&&!!(i||r&&!o||a)}toggleSmartBanner(){this.isHidden=!0,this.updateRootPadding();const n=new Date;!function ZZe(t,n){const e=new Date;e.setTime(e.getTime()+6048e5),document.cookie=t+"="+n+"; expires="+e.toUTCString()+"; path=/"}("appSmartBannerHiddenUntil",new Date(n.setMonth(n.getMonth()+1)).toISOString())}isSmartBannerHiddenWithCookie(){const n=function XZe(t){const e=("; "+document.cookie).split("; "+t+"=");if(2===e.length)return e.pop()?.split(";").shift()}("appSmartBannerHiddenUntil");return!!n&&new Date(n)>new Date}getNetworkIconBigUrl(){const n=this.scope.currentScope.network,e=this.scope.globalSettings;var i=`${e.blobStorageCdnUrl}/${e.blobStorageContainerNameLogo}`;return n&&n.settings.networkIconBigCache?`${i}/${n.slug}/icon/big.png?cache=${n.settings.networkIconBigCache}`:`${i}/default/icon/big.png?cache=${e.defaultLogoCache}`}updateRootPadding(){let n=document.getElementById("app-smart-banner-spacer");n&&(n.style.paddingTop=this.showSmartBanner()?"90px":"0px")}}function Bi(...t){let n=t[t.length-1];return oe(n)?(t.pop(),Fe(t,n)):an(t)}function $f(t,n){return ri(t,n,1)}function qf(t,n){return function(i){return i.lift(new eXe(t,n))}}TE.\u0275fac=function(n){return new(n||TE)($(bo))},TE.\u0275cmp=je({type:TE,selectors:[["app-smart-banner"]],hostBindings:function(n,e){1&n&&fn("resize",function(r){return e.onResize(r)},0,Rf)},decls:1,vars:1,consts:[["id","app-smart-banner",4,"ngIf"],["id","app-smart-banner"],[1,"smart-banner"],[1,"smart-banner-info"],[1,"smart-banner-info-close"],[1,"fas","fa-times"],[1,"smart-banner-info-close-touchpoint",3,"click"],[1,"smart-banner-info-icon"],[3,"src"],[1,"smart-banner-info-name"],["id","smart-banner-button","class","smart-banner-button",3,"smart-banner-button-dark",4,"ngIf"],["id","smart-banner-button",1,"smart-banner-button"],[3,"href"]],template:function(n,e){1&n&&cn(0,QZe,12,3,"div",0),2&n&&Tt("ngIf",e.showSmartBanner())},dependencies:[Tl],styles:["[_nghost-%COMP%]{--app-icon-size: 6rem}.smart-banner[_ngcontent-%COMP%]{max-width:940px;margin:0 -15px;display:flex;justify-content:space-between;align-items:center;padding:15px;height:90px;background-color:#1e1e1e;border-bottom:1px solid #ccc;color:#fff}.smart-banner-info[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;width:100%;overflow:hidden}.smart-banner-info-close[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative}.smart-banner-info-close[_ngcontent-%COMP%]   i.fa-times[_ngcontent-%COMP%]{height:12px;width:8px}.smart-banner-info-close-touchpoint[_ngcontent-%COMP%]{position:absolute;height:3rem;width:3rem;top:calc(-50% - 3px);left:calc(-50% - 7px)}.smart-banner-info-icon[_ngcontent-%COMP%]{margin:0 15px;background-color:#fff;border-radius:1rem}.smart-banner-info-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:var(--app-icon-size);height:var(--app-icon-size);border-radius:1rem;border:1px solid rgb(229,229,229)}.smart-banner-info-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.smart-banner-info-name[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:large}.smart-banner-button[_ngcontent-%COMP%]{all:unset;background-color:var(--color1-alpha30);display:flex;align-self:center;border-radius:2rem;height:2rem;padding:.5rem 1.5rem}.smart-banner-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{all:unset;color:#000;white-space:nowrap}.smart-banner-button-dark[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}"]});class eXe{constructor(n,e){this.predicate=n,this.thisArg=e}call(n,e){return e.subscribe(new tXe(n,this.predicate,this.thisArg))}}class tXe extends F{constructor(n,e,i){super(n),this.predicate=e,this.thisArg=i,this.count=0}_next(n){let e;try{e=this.predicate.call(this.thisArg,n,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(n)}}class OF{}class Nx{}class Yf{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),a=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(a):this.headers.set(o,[a])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Yf?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Yf;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Yf?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let a=this.headers.get(e);if(!a)return;a=a.filter(s=>-1===o.indexOf(s)),0===a.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class nXe{encodeKey(n){return hle(n)}encodeValue(n){return hle(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const rXe=/%(\d[a-f0-9])/gi,oXe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function hle(t){return encodeURIComponent(t).replace(rXe,(n,e)=>oXe[e]??n)}function TF(t){return`${t}`}class P0{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new nXe,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function iXe(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[a,s]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(TF):[TF(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new P0({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(TF(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(TF(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class aXe{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function ple(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function gle(t){return typeof Blob<"u"&&t instanceof Blob}function fle(t){return typeof FormData<"u"&&t instanceof FormData}class IE{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function sXe(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Yf),this.context||(this.context=new aXe),this.params){const a=this.params.toString();if(0===a.length)this.urlWithParams=e;else{const s=e.indexOf("?");this.urlWithParams=e+(-1===s?"?":s<e.length-1?"&":"")+a}}else this.params=new P0,this.urlWithParams=e}serializeBody(){return null===this.body?null:ple(this.body)||gle(this.body)||fle(this.body)||function lXe(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof P0?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||fle(this.body)?null:gle(this.body)?this.body.type||null:ple(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof P0?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=void 0!==n.body?n.body:this.body,a=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,s=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let l=n.headers||this.headers,u=n.params||this.params;const f=n.context??this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce((S,T)=>S.set(T,n.setHeaders[T]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((S,T)=>S.set(T,n.setParams[T]),u)),new IE(e,i,o,{params:u,headers:l,context:f,reportProgress:s,responseType:r,withCredentials:a})}}var Bs=(()=>((Bs=Bs||{})[Bs.Sent=0]="Sent",Bs[Bs.UploadProgress=1]="UploadProgress",Bs[Bs.ResponseHeader=2]="ResponseHeader",Bs[Bs.DownloadProgress=3]="DownloadProgress",Bs[Bs.Response=4]="Response",Bs[Bs.User=5]="User",Bs))();class r7{constructor(n,e=200,i="OK"){this.headers=n.headers||new Yf,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class o7 extends r7{constructor(n={}){super(n),this.type=Bs.ResponseHeader}clone(n={}){return new o7({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class IF extends r7{constructor(n={}){super(n),this.type=Bs.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new IF({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class mle extends r7{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function a7(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let iu=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof IE)o=e;else{let l,u;l=r.headers instanceof Yf?r.headers:new Yf(r.headers),r.params&&(u=r.params instanceof P0?r.params:new P0({fromObject:r.params})),o=new IE(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:u,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const a=Bi(o).pipe($f(l=>this.handler.handle(l)));if(e instanceof IE||"events"===r.observe)return a;const s=a.pipe(qf(l=>l instanceof IF));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(K(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return s.pipe(K(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return s.pipe(K(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return s.pipe(K(l=>l.body))}case"response":return s;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new P0).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,a7(r,i))}post(e,i,r={}){return this.request("POST",e,a7(r,i))}put(e,i,r={}){return this.request("PUT",e,a7(r,i))}}return t.\u0275fac=function(e){return new(e||t)(qt(OF))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();function _le(t,n){return n(t)}function uXe(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const cXe=new Pi("HTTP_INTERCEPTORS"),kE=new Pi("HTTP_INTERCEPTOR_FNS");function hXe(){let t=null;return(n,e)=>(null===t&&(t=(Ji(cXe,{optional:!0})??[]).reduceRight(uXe,_le)),t(n,e))}let vle=(()=>{class t extends OF{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(kE)));this.chain=i.reduceRight((r,o)=>function dXe(t,n,e){return(i,r)=>e.runInContext(()=>n(i,o=>t(o,r)))}(r,o,this.injector),_le)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(qt(Nx),qt(Yp))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();const mXe=/^\)\]\}',?\n/;let Cle=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new G(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((R,L)=>r.setRequestHeader(R,L.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const R=e.detectContentTypeHeader();null!==R&&r.setRequestHeader("Content-Type",R)}if(e.responseType){const R=e.responseType.toLowerCase();r.responseType="json"!==R?R:"text"}const o=e.serializeBody();let a=null;const s=()=>{if(null!==a)return a;const R=r.statusText||"OK",L=new Yf(r.getAllResponseHeaders()),z=function _Xe(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return a=new o7({headers:L,status:r.status,statusText:R,url:z}),a},l=()=>{let{headers:R,status:L,statusText:z,url:j}=s(),Y=null;204!==L&&(Y=typeof r.response>"u"?r.responseText:r.response),0===L&&(L=Y?200:0);let ie=L>=200&&L<300;if("json"===e.responseType&&"string"==typeof Y){const te=Y;Y=Y.replace(mXe,"");try{Y=""!==Y?JSON.parse(Y):null}catch(re){Y=te,ie&&(ie=!1,Y={error:re,text:Y})}}ie?(i.next(new IF({body:Y,headers:R,status:L,statusText:z,url:j||void 0})),i.complete()):i.error(new mle({error:Y,headers:R,status:L,statusText:z,url:j||void 0}))},u=R=>{const{url:L}=s(),z=new mle({error:R,status:r.status||0,statusText:r.statusText||"Unknown Error",url:L||void 0});i.error(z)};let f=!1;const S=R=>{f||(i.next(s()),f=!0);let L={type:Bs.DownloadProgress,loaded:R.loaded};R.lengthComputable&&(L.total=R.total),"text"===e.responseType&&r.responseText&&(L.partialText=r.responseText),i.next(L)},T=R=>{let L={type:Bs.UploadProgress,loaded:R.loaded};R.lengthComputable&&(L.total=R.total),i.next(L)};return r.addEventListener("load",l),r.addEventListener("error",u),r.addEventListener("timeout",u),r.addEventListener("abort",u),e.reportProgress&&(r.addEventListener("progress",S),null!==o&&r.upload&&r.upload.addEventListener("progress",T)),r.send(o),i.next({type:Bs.Sent}),()=>{r.removeEventListener("error",u),r.removeEventListener("abort",u),r.removeEventListener("load",l),r.removeEventListener("timeout",u),e.reportProgress&&(r.removeEventListener("progress",S),null!==o&&r.upload&&r.upload.removeEventListener("progress",T)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(qt(BH))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();const s7=new Pi("XSRF_ENABLED"),ble="XSRF-TOKEN",xle=new Pi("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>ble}),wle="X-XSRF-TOKEN",Sle=new Pi("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>wle});class Dle{}let vXe=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=rse(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(qt(Ko),qt(si),qt(xle))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();function yXe(t,n){const e=t.url.toLowerCase();if(!Ji(s7)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=Ji(Dle).getToken(),r=Ji(Sle);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var ws=(()=>((ws=ws||{})[ws.Interceptors=0]="Interceptors",ws[ws.LegacyInterceptors=1]="LegacyInterceptors",ws[ws.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ws[ws.NoXsrfProtection=3]="NoXsrfProtection",ws[ws.JsonpSupport=4]="JsonpSupport",ws[ws.RequestsMadeViaParent=5]="RequestsMadeViaParent",ws))();function Vx(t,n){return{\u0275kind:t,\u0275providers:n}}function CXe(...t){const n=[iu,Cle,vle,{provide:OF,useExisting:vle},{provide:Nx,useExisting:Cle},{provide:kE,useValue:yXe,multi:!0},{provide:s7,useValue:!0},{provide:Dle,useClass:vXe}];for(const e of t)n.push(...e.\u0275providers);return function _Ue(t){return{\u0275providers:t}}(n)}const Ele=new Pi("LEGACY_INTERCEPTOR_FN");function xXe({cookieName:t,headerName:n}){const e=[];return void 0!==t&&e.push({provide:xle,useValue:t}),void 0!==n&&e.push({provide:Sle,useValue:n}),Vx(ws.CustomXsrfConfiguration,e)}let wXe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({providers:[CXe(Vx(ws.LegacyInterceptors,[{provide:Ele,useFactory:hXe},{provide:kE,useExisting:Ele,multi:!0}]),xXe({cookieName:ble,headerName:wle}))]}),t})();const SXe=BH;new Pi("LANGS_COOKIE_CONSENT_CONFIGURATION");var ap=(()=>(function(t){t[t.Analytics=0]="Analytics",t[t.ExternalLogin=1]="ExternalLogin",t[t.ExternalMedia=2]="ExternalMedia"}(ap||(ap={})),ap))();const Ile={bottomRight:"bottom-right",bottomLeft:"bottom-left"},yc_analytics="externalAnalyticsPermissions",yc_externalMedia="externalMediaPermissions",Su_analytics_matomo="matomo",Su_analytics_googleAnalytics="googleAnalytics",Su_externalMedia_twitter="twitter",Su_externalMedia_youTube="youTube",Su_externalMedia_facebook="facebook",Su_externalMedia_vimeo="vimeo",Su_externalMedia_giphy="giphy",Su_externalLogin_facebook="facebook";function DXe(t,n){1&t&&li(0,"i",3)}class ME{constructor(n,e){this.type=0,this.isAssetListItem=!1,this.http=new iu(e),this.scopeService=n,this.scope=n.getScope(),this.miniScope=n.getMiniScope()}getTypeResource(){return kle[this.type]?.resource??""}accept(){const n=(new Date).toISOString(),e={...this.scope?.profile?.settings?.externalMediaPermissions,[kle[this.type]?.id]:{granted:!0,lastUpdate:n}};this.http.post(`${this.miniScope.apiEndpoint}Profiles/ExternalMediaCookiesConsent`,e).toPromise().then(()=>{window.location.href=window.location.href.split("#")[0]})}}ME.\u0275fac=function(n){return new(n||ME)($(bo),$(Nx))},ME.\u0275cmp=je({type:ME,selectors:[["cookie-external-media-info"]],inputs:{type:"type",isAssetListItem:"isAssetListItem"},decls:11,vars:6,consts:[[1,"cookies-external-media-info-container"],["class","fa fa-exclamation-triangle","aria-hidden","true",4,"ngIf"],[3,"click"],["aria-hidden","true",1,"fa","fa-exclamation-triangle"]],template:function(n,e){1&n&&(Ot(0,"div",0),cn(1,DXe,1,0,"i",1),Ot(2,"p")(3,"span"),xi(4),Pt(),li(5,"br"),Ot(6,"span"),xi(7),Pt(),li(8,"br"),Ot(9,"a",2),fn("click",function(){return e.accept()}),xi(10),Pt()()()),2&n&&(Ur("assetListItem",e.isAssetListItem),pt(1),Tt("ngIf",!e.isAssetListItem),pt(3),mr(e.getTypeResource()),pt(3),mr(e.scope.network.getResourceOrKeyName("web_cookie_consent_external_media_info")),pt(3),mr(e.scope.network.getResourceOrKeyName("web_cookie_consent_external_media_info_accept")))},dependencies:[Tl],styles:["[_nghost-%COMP%]{--padding: 2.5rem}.cookies-external-media-info-container[_ngcontent-%COMP%]{background-color:#f0f0f0;border-radius:10px;display:flex;align-items:center;padding:var(--padding)}.cookies-external-media-info-container[_ngcontent-%COMP%]   i.fa[_ngcontent-%COMP%]{margin-right:var(--padding);font-size:x-large}.cookies-external-media-info-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:.5rem}.cookies-external-media-info-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{all:unset;cursor:pointer}.cookies-external-media-info-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.assetListItem[_ngcontent-%COMP%]{height:300px;overflow:hidden;line-break:normal}@media (max-width: 768px){.assetListItem[_ngcontent-%COMP%]{height:360px}}"]});const kle={4:{resource:"Twitter",id:Su_externalMedia_twitter},5:{resource:"YouTube",id:Su_externalMedia_youTube},6:{resource:"Facebook",id:Su_externalMedia_facebook},7:{resource:"Vimeo",id:Su_externalMedia_vimeo},10:{resource:"Giphy",id:Su_externalMedia_giphy}};class EXe extends O{constructor(n,e){super()}schedule(n,e=0){return this}}class Mle extends EXe{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){if(this.closed)return this;this.state=n;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(n,e,i=0){return setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const n=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null}}let Ale=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return t.now=()=>Date.now(),t})();class Zf extends Ale{constructor(n,e=Ale.now){super(n,()=>Zf.delegate&&Zf.delegate!==this?Zf.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,e=0,i){return Zf.delegate&&Zf.delegate!==this?Zf.delegate.schedule(n,e,i):super.schedule(n,e,i)}flush(n){const{actions:e}=this;if(this.active)return void e.push(n);let i;this.active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=e.shift());if(this.active=!1,i){for(;n=e.shift();)n.unsubscribe();throw i}}}const Fle=new Zf(Mle);function kF(t=0,n=Fle){return(!function OXe(t){return!m(t)&&t-parseFloat(t)+1>=0}(t)||t<0)&&(t=0),(!n||"function"!=typeof n.schedule)&&(n=Fle),new G(e=>(e.add(n.schedule(TXe,t,{subscriber:e,counter:0,period:t})),e))}function TXe(t){const{subscriber:n,counter:e,period:i}=t;n.next(e),this.schedule({subscriber:n,counter:e+1,period:i},i)}class Gd extends le{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return e&&!e.closed&&n.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ae;return this._value}next(n){super.next(this._value=n)}}const MF=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();class IXe extends F{notifyNext(n,e,i,r,o){this.destination.next(e)}notifyError(n,e){this.destination.error(n)}notifyComplete(n){this.destination.complete()}}class kXe extends F{constructor(n,e,i){super(),this.parent=n,this.outerValue=e,this.outerIndex=i,this.index=0}_next(n){this.parent.notifyNext(this.outerValue,n,this.outerIndex,this.index++,this)}_error(n){this.parent.notifyError(n,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function MXe(t,n,e,i,r=new kXe(t,e,i)){if(!r.closed)return n instanceof G?n.subscribe(r):Ce(n)(r)}const Ple={};function Rle(...t){let n,e;return oe(t[t.length-1])&&(e=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&m(t[0])&&(t=t[0]),an(t,e).lift(new AXe(n))}class AXe{constructor(n){this.resultSelector=n}call(n,e){return e.subscribe(new FXe(n,this.resultSelector))}}class FXe extends IXe{constructor(n,e){super(n),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(n){this.values.push(Ple),this.observables.push(n)}_complete(){const n=this.observables,e=n.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i<e;i++)this.add(MXe(this,n[i],void 0,i))}}notifyComplete(n){0==(this.active-=1)&&this.destination.complete()}notifyNext(n,e,i){const r=this.values,a=this.toRespond?r[i]===Ple?--this.toRespond:this.toRespond:0;r[i]=e,0===a&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))}_tryResultSelector(n){let e;try{e=this.resultSelector.apply(this,n)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}function AE(...t){return function PXe(){return jt(1)}()(Bi(...t))}const yy=new G(t=>t.complete());function AF(t){return t?function RXe(t){return new G(n=>t.schedule(()=>n.complete()))}(t):yy}function FF(t){return new G(n=>{let e;try{e=t()}catch(r){return void n.error(r)}return(e?Me(e):AF()).subscribe(n)})}function Hx(t,n){return new G(n?e=>n.schedule(LXe,0,{error:t,subscriber:e}):e=>e.error(t))}function LXe({error:t,subscriber:n}){n.error(t)}function Cc(t,n){return"function"==typeof n?e=>e.pipe(Cc((i,r)=>Me(t(i,r)).pipe(K((o,a)=>n(i,o,r,a))))):e=>e.lift(new BXe(t))}class BXe{constructor(n){this.project=n}call(n,e){return e.subscribe(new NXe(n,this.project))}}class NXe extends Lt{constructor(n,e){super(n),this.project=e,this.index=0}_next(n){let e;const i=this.index++;try{e=this.project(n,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(n){const e=this.innerSubscription;e&&e.unsubscribe();const i=new Ue(this),r=this.destination;r.add(i),this.innerSubscription=Mn(n,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:n}=this;(!n||n.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(n){this.destination.next(n)}}const Lle=(()=>{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 Xf(t){return n=>0===t?AF():n.lift(new VXe(t))}class VXe{constructor(n){if(this.total=n,this.total<0)throw new Lle}call(n,e){return e.subscribe(new HXe(n,this.total))}}class HXe extends F{constructor(n,e){super(n),this.total=e,this.count=0}_next(n){const e=this.total,i=++this.count;i<=e&&(this.destination.next(n),i===e&&(this.destination.complete(),this.unsubscribe()))}}function PF(t=null){return n=>n.lift(new UXe(t))}class UXe{constructor(n){this.defaultValue=n}call(n,e){return e.subscribe(new WXe(n,this.defaultValue))}}class WXe extends F{constructor(n,e){super(n),this.defaultValue=e,this.isEmpty=!0}_next(n){this.isEmpty=!1,this.destination.next(n)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Ble(t=KXe){return n=>n.lift(new GXe(t))}class GXe{constructor(n){this.errorFactory=n}call(n,e){return e.subscribe(new jXe(n,this.errorFactory))}}class jXe extends F{constructor(n,e){super(n),this.errorFactory=e,this.hasValue=!1}_next(n){this.hasValue=!0,this.destination.next(n)}_complete(){if(this.hasValue)return this.destination.complete();{let n;try{n=this.errorFactory()}catch(e){n=e}this.destination.error(n)}}}function KXe(){return new MF}function R0(t,n){const e=arguments.length>=2;return i=>i.pipe(t?qf((r,o)=>t(r,o,i)):H,Xf(1),e?PF(n):Ble(()=>new MF))}function L0(){}function Du(t,n,e){return function(r){return r.lift(new $Xe(t,n,e))}}class $Xe{constructor(n,e,i){this.nextOrObserver=n,this.error=e,this.complete=i}call(n,e){return e.subscribe(new qXe(n,this.nextOrObserver,this.error,this.complete))}}class qXe extends F{constructor(n,e,i,r){super(n),this._tapNext=L0,this._tapError=L0,this._tapComplete=L0,this._tapError=i||L0,this._tapComplete=r||L0,g(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||L0,this._tapError=e.error||L0,this._tapComplete=e.complete||L0)}_next(n){try{this._tapNext.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.next(n)}_error(n){try{this._tapError.call(this._context,n)}catch(e){return void this.destination.error(e)}this.destination.error(n)}_complete(){try{this._tapComplete.call(this._context)}catch(n){return void this.destination.error(n)}return this.destination.complete()}}function Cy(t){return function(e){const i=new YXe(t),r=e.lift(i);return i.caught=r}}class YXe{constructor(n){this.selector=n}call(n,e){return e.subscribe(new ZXe(n,this.selector,this.caught))}}class ZXe extends Lt{constructor(n,e,i){super(n),this.selector=e,this.caught=i}error(n){if(!this.isStopped){let e;try{e=this.selector(n,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new Ue(this);this.add(i);const r=Mn(e,i);r!==i&&this.add(r)}}}function Nle(t,n){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new XXe(t,n,e))}}class XXe{constructor(n,e,i=!1){this.accumulator=n,this.seed=e,this.hasSeed=i}call(n,e){return e.subscribe(new JXe(n,this.accumulator,this.seed,this.hasSeed))}}class JXe extends F{constructor(n,e,i,r){super(n),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(n){this.hasSeed=!0,this._seed=n}_next(n){if(this.hasSeed)return this._tryNext(n);this.seed=n,this.destination.next(n)}_tryNext(n){const e=this.index++;let i;try{i=this.accumulator(this.seed,n,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function l7(t){return function(e){return 0===t?AF():e.lift(new QXe(t))}}class QXe{constructor(n){if(this.total=n,this.total<0)throw new Lle}call(n,e){return e.subscribe(new eJe(n,this.total))}}class eJe extends F{constructor(n,e){super(n),this.total=e,this.ring=new Array,this.count=0}_next(n){const e=this.ring,i=this.total,r=this.count++;e.length<i?e.push(n):e[r%i]=n}_complete(){const n=this.destination;let e=this.count;if(e>0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o<i;o++){const a=e++%i;n.next(r[a])}}n.complete()}}function Vle(t,n){const e=arguments.length>=2;return i=>i.pipe(t?qf((r,o)=>t(r,o,i)):H,l7(1),e?PF(n):Ble(()=>new MF))}class nJe{constructor(n,e){this.predicate=n,this.inclusive=e}call(n,e){return e.subscribe(new iJe(n,this.predicate,this.inclusive))}}class iJe extends F{constructor(n,e,i){super(n),this.predicate=e,this.inclusive=i,this.index=0}_next(n){const e=this.destination;let i;try{i=this.predicate(n,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(n,i)}nextOrComplete(n,e){const i=this.destination;Boolean(e)?i.next(n):(this.inclusive&&i.next(n),i.complete())}}class oJe{constructor(n){this.value=n}call(n,e){return e.subscribe(new aJe(n,this.value))}}class aJe extends F{constructor(n,e){super(n),this.value=e}_next(n){this.destination.next(this.value)}}function u7(t){return n=>n.lift(new sJe(t))}class sJe{constructor(n){this.callback=n}call(n,e){return e.subscribe(new lJe(n,this.callback))}}class lJe extends F{constructor(n,e){super(n),this.add(new O(e))}}const Br="primary",FE=Symbol("RouteTitle");class uJe{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function zx(t){return new uJe(t)}function dJe(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const r={};for(let o=0;o<i.length;o++){const a=i[o],s=t[o];if(a.startsWith(":"))r[a.substring(1)]=s;else if(a!==s.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function rg(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let o=0;o<e.length;o++)if(r=e[o],!Hle(t[r],n[r]))return!1;return!0}function Hle(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((r,o)=>i[o]===r)}return t===n}function zle(t){return Array.prototype.concat.apply([],t)}function Ule(t){return t.length>0?t[t.length-1]:null}function ru(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function B0(t){return A6(t)?t:rE(t)?Me(Promise.resolve(t)):Bi(t)}const RF=!1,hJe={exact:function jle(t,n,e){if(!xy(t.segments,n.segments)||!LF(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!jle(t.children[i],n.children[i],e))return!1;return!0},subset:Kle},Wle={exact:function pJe(t,n){return rg(t,n)},subset:function gJe(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Hle(t[e],n[e]))},ignored:()=>!0};function Gle(t,n,e){return hJe[e.paths](t.root,n.root,e.matrixParams)&&Wle[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Kle(t,n,e){return $le(t,n,n.segments,e)}function $le(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!xy(r,e)||n.hasChildren()||!LF(r,e,i))}if(t.segments.length===e.length){if(!xy(t.segments,e)||!LF(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!Kle(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(xy(t.segments,r)&&LF(t.segments,r,i)&&t.children[Br])&&$le(t.children[Br],n,o,i)}}function LF(t,n,e){return n.every((i,r)=>Wle[e](t[r].parameters,i.parameters))}class by{constructor(n=new to([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zx(this.queryParams)),this._queryParamMap}toString(){return _Je.serialize(this)}}class to{constructor(n,e){this.segments=n,this.children=e,this.parent=null,ru(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return BF(this)}}class PE{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=zx(this.parameters)),this._parameterMap}toString(){return Zle(this)}}function xy(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let RE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:function(){return new d7},providedIn:"root"}),t})();class d7{parse(n){const e=new EJe(n);return new by(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${LE(n.root,!0)}`,i=function CJe(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${NF(e)}=${NF(r)}`).join("&"):`${NF(e)}=${NF(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams),r="string"==typeof n.fragment?`#${function vJe(t){return encodeURI(t)}(n.fragment)}`:"";return`${e}${i}${r}`}}const _Je=new d7;function BF(t){return t.segments.map(n=>Zle(n)).join("/")}function LE(t,n){if(!t.hasChildren())return BF(t);if(n){const e=t.children[Br]?LE(t.children[Br],!1):"",i=[];return ru(t.children,(r,o)=>{o!==Br&&i.push(`${o}:${LE(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function mJe(t,n){let e=[];return ru(t.children,(i,r)=>{r===Br&&(e=e.concat(n(i,r)))}),ru(t.children,(i,r)=>{r!==Br&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===Br?[LE(t.children[Br],!1)]:[`${r}:${LE(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[Br]?`${BF(t)}/${e[0]}`:`${BF(t)}/(${e.join("//")})`}}function qle(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function NF(t){return qle(t).replace(/%3B/gi,";")}function c7(t){return qle(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function VF(t){return decodeURIComponent(t)}function Yle(t){return VF(t.replace(/\+/g,"%20"))}function Zle(t){return`${c7(t.path)}${function yJe(t){return Object.keys(t).map(n=>`;${c7(n)}=${c7(t[n])}`).join("")}(t.parameters)}`}const bJe=/^[^\/()?;=#]+/;function HF(t){const n=t.match(bJe);return n?n[0]:""}const xJe=/^[^=?&#]+/,SJe=/^[^&#]+/;class EJe{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new to([],{}):new to([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[Br]=new to(n,e)),i}parseSegment(){const n=HF(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new Dn(4009,RF);return this.capture(n),new PE(VF(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=HF(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=HF(this.remaining);r&&(i=r,this.capture(i))}n[VF(e)]=VF(i)}parseQueryParam(n){const e=function wJe(t){const n=t.match(xJe);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const a=function DJe(t){const n=t.match(SJe);return n?n[0]:""}(this.remaining);a&&(i=a,this.capture(i))}const r=Yle(e),o=Yle(i);if(n.hasOwnProperty(r)){let a=n[r];Array.isArray(a)||(a=[a],n[r]=a),a.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=HF(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new Dn(4010,RF);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=Br);const a=this.parseChildren();e[o]=1===Object.keys(a).length?a[Br]:new to([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new Dn(4011,RF)}}function h7(t){return t.segments.length>0?new to([],{[Br]:t}):t}function zF(t){const n={};for(const i of Object.keys(t.children)){const o=zF(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function OJe(t){if(1===t.numberOfChildren&&t.children[Br]){const n=t.children[Br];return new to(t.segments.concat(n.segments),n.children)}return t}(new to(t.segments,n))}function wy(t){return t instanceof by}function kJe(t,n,e,i,r){if(0===e.length)return Ux(n.root,n.root,n.root,i,r);const o=function Qle(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Jle(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,a)=>{if("object"==typeof o&&null!=o){if(o.outlets){const s={};return ru(o.outlets,(l,u)=>{s[u]="string"==typeof l?l.split("/"):l}),[...r,{outlets:s}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===a?(o.split("/").forEach((s,l)=>{0==l&&"."===s||(0==l&&""===s?e=!0:".."===s?n++:""!=s&&r.push(s))}),r):[...r,o]},[]);return new Jle(e,n,i)}(e);return o.toRoot()?Ux(n.root,n.root,new to([],{}),i,r):function a(l){const u=function AJe(t,n,e,i){if(t.isAbsolute)return new Wx(n.root,!0,0);if(-1===i)return new Wx(e,e===n.root,0);return function eue(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new Dn(4005,!1);r=i.segments.length}return new Wx(i,!1,r-o)}(e,i+(BE(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),f=u.processChildren?Gx(u.segmentGroup,u.index,o.commands):g7(u.segmentGroup,u.index,o.commands);return Ux(n.root,u.segmentGroup,f,i,r)}(t.snapshot?._lastPathIndex)}function BE(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function NE(t){return"object"==typeof t&&null!=t&&t.outlets}function Ux(t,n,e,i,r){let a,o={};i&&ru(i,(l,u)=>{o[u]=Array.isArray(l)?l.map(f=>`${f}`):`${l}`}),a=t===n?e:Xle(t,n,e);const s=h7(zF(a));return new by(s,o,r)}function Xle(t,n,e){const i={};return ru(t.children,(r,o)=>{i[o]=r===n?e:Xle(r,n,e)}),new to(t.segments,i)}class Jle{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&BE(i[0]))throw new Dn(4003,!1);const r=i.find(NE);if(r&&r!==Ule(i))throw new Dn(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Wx{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function g7(t,n,e){if(t||(t=new to([],{})),0===t.segments.length&&t.hasChildren())return Gx(t,n,e);const i=function PJe(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return o;const a=t.segments[r],s=e[i];if(NE(s))break;const l=`${s}`,u=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!nue(l,u,a))return o;i+=2}else{if(!nue(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const o=new to(t.segments.slice(0,i.pathIndex),{});return o.children[Br]=new to(t.segments.slice(i.pathIndex),t.children),Gx(o,0,r)}return i.match&&0===r.length?new to(t.segments,{}):i.match&&!t.hasChildren()?f7(t,n,e):i.match?Gx(t,0,r):f7(t,n,e)}function Gx(t,n,e){if(0===e.length)return new to(t.segments,{});{const i=function FJe(t){return NE(t[0])?t[0].outlets:{[Br]:t}}(e),r={};return!i[Br]&&t.children[Br]&&1===t.numberOfChildren&&0===t.children[Br].segments.length?Gx(t.children[Br],n,e):(ru(i,(o,a)=>{"string"==typeof o&&(o=[o]),null!==o&&(r[a]=g7(t.children[a],n,o))}),ru(t.children,(o,a)=>{void 0===i[a]&&(r[a]=o)}),new to(t.segments,r))}}function f7(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r<e.length;){const o=e[r];if(NE(o)){const l=RJe(o.outlets);return new to(i,l)}if(0===r&&BE(e[0])){i.push(new PE(t.segments[n].path,tue(e[0]))),r++;continue}const a=NE(o)?o.outlets[Br]:`${o}`,s=r<e.length-1?e[r+1]:null;a&&s&&BE(s)?(i.push(new PE(a,tue(s))),r+=2):(i.push(new PE(a,{})),r++)}return new to(i,{})}function RJe(t){const n={};return ru(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=f7(new to([],{}),0,e))}),n}function tue(t){const n={};return ru(t,(e,i)=>n[i]=`${e}`),n}function nue(t,n,e){return t==e.path&&rg(n,e.parameters)}const VE="imperative";class og{constructor(n,e){this.id=n,this.url=e}}class m7 extends og{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class N0 extends og{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class UF extends og{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class iue extends og{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class rue extends og{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class LJe extends og{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class BJe extends og{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class NJe extends og{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class VJe extends og{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class HJe extends og{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zJe{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class UJe{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class WJe{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class GJe{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jJe{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class KJe{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oue{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let qJe=(()=>{class t{createUrlTree(e,i,r,o,a,s){return kJe(e||i.root,r,o,a,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})(),YJe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:function(n){return qJe.\u0275fac(n)},providedIn:"root"}),t})();class aue{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=_7(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=_7(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=v7(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return v7(n,this._root).map(e=>e.value)}}function _7(t,n){if(t===n.value)return n;for(const e of n.children){const i=_7(t,e);if(i)return i}return null}function v7(t,n){if(t===n.value)return[n];for(const e of n.children){const i=v7(t,e);if(i.length)return i.unshift(n),i}return[]}class Jf{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function jx(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class sue extends aue{constructor(n,e){super(n),this.snapshot=e,y7(this,n)}toString(){return this.snapshot.toString()}}function lue(t,n){const e=function ZJe(t,n){const a=new WF([],{},{},"",{},Br,n,null,t.root,-1,{});return new due("",new Jf(a,[]))}(t,n),i=new Gd([new PE("",{})]),r=new Gd({}),o=new Gd({}),a=new Gd({}),s=new Gd(""),l=new V0(i,r,a,s,o,Br,n,e.root);return l.snapshot=e.root,new sue(new Jf(l,[]),e)}class V0{constructor(n,e,i,r,o,a,s,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.title=this.data?.pipe(K(u=>u[FE]))??Bi(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(K(n=>zx(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(K(n=>zx(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function uue(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function XJe(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class WF{get title(){return this.data?.[FE]}constructor(n,e,i,r,o,a,s,l,u,f,S){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=f,this._resolve=S}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=zx(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=zx(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class due extends aue{constructor(n,e){super(e),this.url=n,y7(this,e)}toString(){return cue(this._root)}}function y7(t,n){n.value._routerState=t,n.children.forEach(e=>y7(t,e))}function cue(t){const n=t.children.length>0?` { ${t.children.map(cue).join(", ")} } `:"";return`${t.value}${n}`}function C7(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,rg(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),rg(n.params,e.params)||t.params.next(e.params),function cJe(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!rg(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),rg(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function b7(t,n){const e=rg(t.params,n.params)&&function fJe(t,n){return xy(t,n)&&t.every((e,i)=>rg(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||b7(t.parent,n.parent))}function HE(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function QJe(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return HE(t,i,r);return HE(t,i)})}(t,n,e);return new Jf(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const a=o.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>HE(t,s)),a}}const i=function eQe(t){return new V0(new Gd(t.url),new Gd(t.params),new Gd(t.queryParams),new Gd(t.fragment),new Gd(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>HE(t,o));return new Jf(i,r)}}const x7="ngNavigationCancelingError";function hue(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=wy(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=pue(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function pue(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[x7]=!0,i.cancellationCode=n,e&&(i.url=e),i}function gue(t){return fue(t)&&wy(t.url)}function fue(t){return t&&t[x7]}class tQe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new zE,this.attachRef=null}}let zE=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new tQe,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const GF=!1;let UE=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=Br,this.activateEvents=new qi,this.deactivateEvents=new qi,this.attachEvents=new qi,this.detachEvents=new qi,this.parentContexts=Ji(zE),this.location=Ji(oh),this.changeDetector=Ji(tg),this.environmentInjector=Ji(Yp)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Dn(4012,GF);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Dn(4012,GF);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Dn(4012,GF);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new Dn(4013,GF);this._activatedRoute=e;const r=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,l=new nQe(e,s,r.injector);if(i&&function iQe(t){return!!t.resolveComponentFactory}(i)){const u=i.resolveComponentFactory(a);this.activated=r.createComponent(u,r.length,l)}else this.activated=r.createComponent(a,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sr({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[hi]}),t})();class nQe{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===V0?this.route:n===zE?this.childContexts:this.parent.get(n,e)}}let w7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["ng-component"]],standalone:!0,features:[Moe],decls:1,vars:0,template:function(e,i){1&e&&li(0,"router-outlet")},dependencies:[UE],encapsulation:2}),t})();function mue(t,n){return t.providers&&!t._injector&&(t._injector=ZA(t.providers,n,`Route: ${t.path}`)),t._injector??n}function D7(t){const n=t.children&&t.children.map(D7),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Br&&(e.component=w7),e}function uh(t){return t.outlet||Br}function _ue(t,n){const e=t.filter(i=>uh(i)===n);return e.push(...t.filter(i=>uh(i)!==n)),e}function WE(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class lQe{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),C7(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=jx(e);n.children.forEach(o=>{const a=o.value.outlet;this.deactivateRoutes(o,r[a],i),delete r[a]}),ru(r,(o,a)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const a=i.getContext(r.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=jx(n);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);if(i&&i.outlet){const a=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=jx(n);for(const a of Object.keys(o))this.deactivateRouteAndItsChildren(o[a],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=jx(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new KJe(o.value.snapshot))}),n.children.length&&this.forwardEvent(new GJe(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(C7(r),r===o)if(r.component){const a=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const a=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),C7(s.route.value),this.activateChildRoutes(n,null,a.children)}else{const s=WE(r.snapshot),l=s?.get(cx)??null;a.attachRef=null,a.route=r,a.resolver=l,a.injector=s,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(n,null,a.children)}}else this.activateChildRoutes(n,null,i)}}class vue{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class jF{constructor(n,e){this.component=n,this.route=e}}function uQe(t,n,e){const i=t._root;return GE(i,n?n._root:null,e,[i.value])}function Kx(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function mu(t){return null!==yl(t)}(t)?n.get(t):t:i}function GE(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=jx(n);return t.children.forEach(a=>{(function cQe(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,a=n?n.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const l=function hQe(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!xy(t.url,n.url);case"pathParamsOrQueryParamsChange":return!xy(t.url,n.url)||!rg(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!b7(t,n)||!rg(t.queryParams,n.queryParams);default:return!b7(t,n)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new vue(i)):(o.data=a.data,o._resolvedData=a._resolvedData),GE(t,n,o.component?s?s.children:null:e,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new jF(s.outlet.component,a))}else a&&jE(n,s,r),r.canActivateChecks.push(new vue(i)),GE(t,null,o.component?s?s.children:null:e,i,r)})(a,o[a.value.outlet],e,i.concat([a.value]),r),delete o[a.value.outlet]}),ru(o,(a,s)=>jE(a,e.getContext(s),r)),r}function jE(t,n,e){const i=jx(t),r=t.value;ru(i,(o,a)=>{jE(o,r.component?n?n.children.getContext(a):null:n,e)}),e.canDeactivateChecks.push(new jF(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function KE(t){return"function"==typeof t}function E7(t){return t instanceof MF||"EmptyError"===t?.name}const KF=Symbol("INITIAL_VALUE");function $x(){return Cc(t=>Rle(t.map(n=>n.pipe(Xf(1),function zXe(...t){const n=t[t.length-1];return oe(n)?(t.pop(),e=>AE(t,e,n)):e=>AE(t,e)}(KF)))).pipe(K(n=>{for(const e of n)if(!0!==e){if(e===KF)return KF;if(!1===e||e instanceof by)return e}return!0}),qf(n=>n!==KF),Xf(1)))}function yue(t){return function W(...t){return q(t)}(Du(n=>{if(wy(n))throw hue(0,n)}),K(n=>!0===n))}const O7={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Cue(t,n,e,i,r){const o=T7(t,n,e);return o.matched?function IQe(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?Bi(r.map(a=>{const s=Kx(a,t);return B0(function vQe(t){return t&&KE(t.canMatch)}(s)?s.canMatch(n,e):t.runInContext(()=>s(n,e)))})).pipe($x(),yue()):Bi(!0)}(i=mue(n,i),n,e).pipe(K(a=>!0===a?o:{...O7})):Bi(o)}function T7(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...O7}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||dJe)(e,t,n);if(!r)return{...O7};const o={};ru(r.posParams,(s,l)=>{o[l]=s.path});const a=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function $F(t,n,e,i){if(e.length>0&&function AQe(t,n,e){return e.some(i=>qF(t,n,i)&&uh(i)!==Br)}(t,e,i)){const o=new to(n,function MQe(t,n,e,i){const r={};r[Br]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&uh(o)!==Br){const a=new to([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,r[uh(o)]=a}return r}(t,n,i,new to(e,t.children)));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:[]}}if(0===e.length&&function FQe(t,n,e){return e.some(i=>qF(t,n,i))}(t,e,i)){const o=new to(t.segments,function kQe(t,n,e,i,r){const o={};for(const a of i)if(qF(t,e,a)&&!r[uh(a)]){const s=new to([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,o[uh(a)]=s}return{...r,...o}}(t,n,e,i,t.children));return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}const r=new to(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function qF(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function bue(t,n,e,i){return!!(uh(t)===i||i!==Br&&qF(n,e,t))&&("**"===t.path||T7(n,t,e).matched)}function xue(t,n,e){return 0===n.length&&!t.children[e]}const YF=!1;class ZF{constructor(n){this.segmentGroup=n||null}}class wue{constructor(n){this.urlTree=n}}function $E(t){return Hx(new ZF(t))}function Sue(t){return Hx(new wue(t))}class BQe{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=$F(this.urlTree.root,[],[],this.config).segmentGroup,e=new to(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,Br).pipe(K(o=>this.createUrlTree(zF(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Cy(o=>{if(o instanceof wue)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof ZF?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,Br).pipe(K(r=>this.createUrlTree(zF(r),n.queryParams,n.fragment))).pipe(Cy(r=>{throw r instanceof ZF?this.noMatchError(r):r}))}noMatchError(n){return new Dn(4002,YF)}createUrlTree(n,e,i){const r=h7(n);return new by(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(K(o=>new to([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Me(r).pipe($f(o=>{const a=i.children[o],s=_ue(e,o);return this.expandSegmentGroup(n,s,a,o).pipe(K(l=>({segment:l,outlet:o})))}),Nle((o,a)=>(o[a.outlet]=a.segment,o),{}),Vle())}expandSegment(n,e,i,r,o,a){return Me(i).pipe($f(s=>this.expandSegmentAgainstRoute(n,e,i,s,r,o,a).pipe(Cy(u=>{if(u instanceof ZF)return Bi(null);throw u}))),R0(s=>!!s),Cy((s,l)=>{if(E7(s))return xue(e,r,o)?Bi(new to([],{})):$E(e);throw s}))}expandSegmentAgainstRoute(n,e,i,r,o,a,s){return bue(r,e,o,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,a):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a):$E(e):$E(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Sue(o):this.lineralizeSegments(i,o).pipe(ri(a=>{const s=new to(a,{});return this.expandSegment(n,s,e,a,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,a){const{matched:s,consumedSegments:l,remainingSegments:u,positionalParamSegments:f}=T7(e,r,o);if(!s)return $E(e);const S=this.applyRedirectCommands(l,r.redirectTo,f);return r.redirectTo.startsWith("/")?Sue(S):this.lineralizeSegments(r,S).pipe(ri(T=>this.expandSegment(n,e,i,T.concat(u),a,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=mue(i,n),i.loadChildren?(i._loadedRoutes?Bi({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(K(s=>(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,new to(r,{})))):Bi(new to(r,{}))):Cue(e,i,r,n).pipe(Cc(({matched:a,consumedSegments:s,remainingSegments:l})=>a?this.getChildConfig(n=i._injector??n,i,r).pipe(ri(f=>{const S=f.injector??n,T=f.routes,{segmentGroup:R,slicedSegments:L}=$F(e,s,l,T),z=new to(R.segments,R.children);if(0===L.length&&z.hasChildren())return this.expandChildren(S,T,z).pipe(K(te=>new to(s,te)));if(0===T.length&&0===L.length)return Bi(new to(s,{}));const j=uh(i)===o;return this.expandSegment(S,z,T,L,j?Br:o,!0).pipe(K(ie=>new to(s.concat(ie.segments),ie.children)))})):$E(e)))}getChildConfig(n,e,i){return e.children?Bi({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?Bi({routes:e._loadedRoutes,injector:e._loadedInjector}):function TQe(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?Bi(!0):Bi(r.map(a=>{const s=Kx(a,t);return B0(function gQe(t){return t&&KE(t.canLoad)}(s)?s.canLoad(n,e):t.runInContext(()=>s(n,e)))})).pipe($x(),yue())}(n,e,i).pipe(ri(r=>r?this.configLoader.loadChildren(n,e).pipe(Du(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function RQe(t){return Hx(pue(YF,3))}())):Bi({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return Bi(i);if(r.numberOfChildren>1||!r.children[Br])return Hx(new Dn(4e3,YF));r=r.children[Br]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new by(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return ru(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const s=r.substring(1);i[o]=e[s]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let a={};return ru(e.children,(s,l)=>{a[l]=this.createSegmentGroup(n,s,i,r)}),new to(o,a)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new Dn(4001,YF);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class VQe{}class UQe{constructor(n,e,i,r,o,a,s){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=a,this.urlSerializer=s}recognize(){const n=$F(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Br).pipe(K(e=>{if(null===e)return null;const i=new WF([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Br,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Jf(i,e),o=new due(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=uue(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return Me(Object.keys(i.children)).pipe($f(r=>{const o=i.children[r],a=_ue(e,r);return this.processSegmentGroup(n,a,o,r)}),Nle((r,o)=>r&&o?(r.push(...o),r):null),function tJe(t,n=!1){return e=>e.lift(new nJe(t,n))}(r=>null!==r),PF(null),Vle(),K(r=>{if(null===r)return null;const o=Eue(r);return function WQe(t){t.sort((n,e)=>n.value.outlet===Br?-1:e.value.outlet===Br?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return Me(e).pipe($f(a=>this.processSegmentAgainstRoute(a._injector??n,a,i,r,o)),R0(a=>!!a),Cy(a=>{if(E7(a))return xue(i,r,o)?Bi([]):Bi(null);throw a}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!bue(e,i,r,o))return Bi(null);let a;if("**"===e.path){const s=r.length>0?Ule(r).parameters:{},l=Tue(i)+r.length;a=Bi({snapshot:new WF(r,s,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Iue(e),uh(e),e.component??e._loadedComponent??null,e,Oue(i),l,kue(e)),consumedSegments:[],remainingSegments:[]})}else a=Cue(i,e,r,n).pipe(K(({matched:s,consumedSegments:l,remainingSegments:u,parameters:f})=>{if(!s)return null;const S=Tue(i)+l.length;return{snapshot:new WF(l,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Iue(e),uh(e),e.component??e._loadedComponent??null,e,Oue(i),S,kue(e)),consumedSegments:l,remainingSegments:u}}));return a.pipe(Cc(s=>{if(null===s)return Bi(null);const{snapshot:l,consumedSegments:u,remainingSegments:f}=s;n=e._injector??n;const S=e._loadedInjector??n,T=function GQe(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:R,slicedSegments:L}=$F(i,u,f,T.filter(j=>void 0===j.redirectTo));if(0===L.length&&R.hasChildren())return this.processChildren(S,T,R).pipe(K(j=>null===j?null:[new Jf(l,j)]));if(0===T.length&&0===L.length)return Bi([new Jf(l,[])]);const z=uh(e)===o;return this.processSegment(S,T,R,L,z?Br:o).pipe(K(j=>null===j?null:[new Jf(l,j)]))}))}}function jQe(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function Eue(t){const n=[],e=new Set;for(const i of t){if(!jQe(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=Eue(i.children);n.push(new Jf(i.value,r))}return n.filter(i=>!e.has(i))}function Oue(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function Tue(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function Iue(t){return t.data||{}}function kue(t){return t.resolve||{}}function Mue(t){return"string"==typeof t.title||null===t.title}function I7(t){return Cc(n=>{const e=t(n);return e?Me(e).pipe(K(()=>n)):Bi(n)})}const qx=new Pi("ROUTES");let k7=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Bi(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=B0(e.loadComponent()).pipe(K(Fue),Du(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),u7(()=>{this.componentLoaders.delete(e)})),r=new yi(i,()=>new le).pipe(Bn());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Bi({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(K(s=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,u,f=!1;Array.isArray(s)?u=s:(l=s.create(e).injector,u=zle(l.get(qx,[],Ui.Self|Ui.Optional)));return{routes:u.map(D7),injector:l}}),u7(()=>{this.childrenLoaders.delete(i)})),a=new yi(o,()=>new le).pipe(Bn());return this.childrenLoaders.set(i,a),a}loadModuleFactoryOrRoutes(e){return B0(e()).pipe(K(Fue),ri(r=>r instanceof Ioe||Array.isArray(r)?Bi(r):Me(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)(qt(xu),qt(yae))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Fue(t){return function eet(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let JF=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new le,this.configLoader=Ji(k7),this.environmentInjector=Ji(Yp),this.urlSerializer=Ji(RE),this.rootContexts=Ji(zE),this.navigationId=0,this.afterPreactivation=()=>Bi(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new UJe(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new zJe(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new Gd({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:VE,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(qf(i=>0!==i.id),K(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),Cc(i=>{let r=!1,o=!1;return Bi(i).pipe(Du(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Cc(a=>{const s=e.browserUrlTree.toString(),l=!e.navigated||a.extractedUrl.toString()!==s||s!==e.currentUrlTree.toString();if(!l&&"reload"!==(a.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const f="";return this.events.next(new iue(a.id,e.serializeUrl(i.rawUrl),f,0)),e.rawUrlTree=a.rawUrl,a.resolve(null),yy}if(e.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Pue(a.source)&&(e.browserUrlTree=a.extractedUrl),Bi(a).pipe(Cc(f=>{const S=this.transitions?.getValue();return this.events.next(new m7(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),S!==this.transitions?.getValue()?yy:Promise.resolve(f)}),function NQe(t,n,e,i){return Cc(r=>function LQe(t,n,e,i,r){return new BQe(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(K(o=>({...r,urlAfterRedirects:o}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),Du(f=>{this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects},i.urlAfterRedirects=f.urlAfterRedirects}),function $Qe(t,n,e,i,r){return ri(o=>function zQe(t,n,e,i,r,o,a="emptyOnly"){return new UQe(t,n,e,i,r,a,o).recognize().pipe(Cc(s=>null===s?function HQe(t){return new G(n=>n.error(t))}(new VQe):Bi(s)))}(t,n,e,o.urlAfterRedirects,i.serialize(o.urlAfterRedirects),i,r).pipe(K(a=>({...o,targetSnapshot:a}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Du(f=>{if(i.targetSnapshot=f.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!f.extras.skipLocationChange){const T=e.urlHandlingStrategy.merge(f.urlAfterRedirects,f.rawUrl);e.setBrowserUrl(T,f)}e.browserUrlTree=f.urlAfterRedirects}const S=new LJe(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(S)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:f,extractedUrl:S,source:T,restoredState:R,extras:L}=a,z=new m7(f,this.urlSerializer.serialize(S),T,R);this.events.next(z);const j=lue(S,this.rootComponentType).snapshot;return Bi(i={...a,targetSnapshot:j,urlAfterRedirects:S,extras:{...L,skipLocationChange:!1,replaceUrl:!1}})}{const f="";return this.events.next(new iue(a.id,e.serializeUrl(i.extractedUrl),f,1)),e.rawUrlTree=a.rawUrl,a.resolve(null),yy}}),Du(a=>{const s=new BJe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),K(a=>i={...a,guards:uQe(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function CQe(t,n){return ri(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:a}}=e;return 0===a.length&&0===o.length?Bi({...e,guardsResult:!0}):function bQe(t,n,e,i){return Me(t).pipe(ri(r=>function OQe(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?Bi(o.map(s=>{const l=WE(n)??r,u=Kx(s,l);return B0(function _Qe(t){return t&&KE(t.canDeactivate)}(u)?u.canDeactivate(t,n,e,i):l.runInContext(()=>u(t,n,e,i))).pipe(R0())})).pipe($x()):Bi(!0)}(r.component,r.route,e,n,i)),R0(r=>!0!==r,!0))}(a,i,r,t).pipe(ri(s=>s&&function pQe(t){return"boolean"==typeof t}(s)?function xQe(t,n,e,i){return Me(n).pipe($f(r=>AE(function SQe(t,n){return null!==t&&n&&n(new WJe(t)),Bi(!0)}(r.route.parent,i),function wQe(t,n){return null!==t&&n&&n(new jJe(t)),Bi(!0)}(r.route,i),function EQe(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(a=>function dQe(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(a)).filter(a=>null!==a).map(a=>FF(()=>Bi(a.guards.map(l=>{const u=WE(a.node)??e,f=Kx(l,u);return B0(function mQe(t){return t&&KE(t.canActivateChild)}(f)?f.canActivateChild(i,t):u.runInContext(()=>f(i,t))).pipe(R0())})).pipe($x())));return Bi(o).pipe($x())}(t,r.path,e),function DQe(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return Bi(!0);const r=i.map(o=>FF(()=>{const a=WE(n)??e,s=Kx(o,a);return B0(function fQe(t){return t&&KE(t.canActivate)}(s)?s.canActivate(n,t):a.runInContext(()=>s(n,t))).pipe(R0())}));return Bi(r).pipe($x())}(t,r.route,e))),R0(r=>!0!==r,!0))}(i,o,t,n):Bi(s)),K(s=>({...e,guardsResult:s})))})}(this.environmentInjector,a=>this.events.next(a)),Du(a=>{if(i.guardsResult=a.guardsResult,wy(a.guardsResult))throw hue(0,a.guardsResult);const s=new NJe(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),qf(a=>!!a.guardsResult||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),I7(a=>{if(a.guards.canActivateChecks.length)return Bi(a).pipe(Du(s=>{const l=new VJe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l)}),Cc(s=>{let l=!1;return Bi(s).pipe(function qQe(t,n){return ri(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return Bi(e);let o=0;return Me(r).pipe($f(a=>function YQe(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!Mue(r)&&(o[FE]=r.title),function ZQe(t,n,e,i){const r=function XQe(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return Bi({});const o={};return Me(r).pipe(ri(a=>function JQe(t,n,e,i){const r=WE(n)??i,o=Kx(t,r);return B0(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[a],n,e,i).pipe(R0(),Du(s=>{o[a]=s}))),l7(1),function rJe(t){return n=>n.lift(new oJe(t))}(o),Cy(a=>E7(a)?yy:Hx(a)))}(o,t,n,i).pipe(K(a=>(t._resolvedData=a,t.data=uue(t,e).resolve,r&&Mue(r)&&(t.data[FE]=r.title),null)))}(a.route,i,t,n)),Du(()=>o++),l7(1),ri(a=>o===r.length?Bi(e):yy))})}(e.paramsInheritanceStrategy,this.environmentInjector),Du({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",2))}}))}),Du(s=>{const l=new HJe(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(l)}))}),I7(a=>{const s=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(Du(f=>{l.component=f}),K(()=>{})));for(const f of l.children)u.push(...s(f));return u};return Rle(s(a.targetSnapshot.root)).pipe(PF(),Xf(1))}),I7(()=>this.afterPreactivation()),K(a=>{const s=function JJe(t,n,e){const i=HE(t,n._root,e?e._root:void 0);return new sue(i,n)}(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return i={...a,targetRouterState:s}}),Du(a=>{e.currentUrlTree=a.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),e.routerState=a.targetRouterState,"deferred"===e.urlUpdateStrategy&&(a.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,a),e.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>K(i=>(new lQe(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a)),Du({next:a=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new N0(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{r=!0}}),u7(()=>{r||o||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Cy(a=>{if(o=!0,fue(a)){gue(a)||(e.navigated=!0,e.restoreHistory(i,!0));const s=new UF(i.id,this.urlSerializer.serialize(i.extractedUrl),a.message,a.cancellationCode);if(this.events.next(s),gue(a)){const l=e.urlHandlingStrategy.merge(a.url,e.rawUrlTree),u={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||Pue(i.source)};e.scheduleNavigation(l,VE,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const s=new rue(i.id,this.urlSerializer.serialize(i.extractedUrl),a,i.targetSnapshot??void 0);this.events.next(s);try{i.resolve(e.errorHandler(a))}catch(l){i.reject(l)}}return yy}))}))}cancelNavigationTransition(e,i,r){const o=new UF(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(o),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Pue(t){return t!==VE}let Rue=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Br);return i}getResolvedTitleForRoute(e){return e.data[FE]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:function(){return Ji(tet)},providedIn:"root"}),t})(),tet=(()=>{class t extends Rue{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(qt(YH))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),M7=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:function(){return Ji(iet)},providedIn:"root"}),t})();class net{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let iet=(()=>{class t extends net{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const QF=new Pi("",{providedIn:"root",factory:()=>({})});let oet=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:function(){return Ji(aet)},providedIn:"root"}),t})(),aet=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function set(t){throw t}function uet(t,n,e){return n.parse("/")}const det={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cet={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ds=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=Ji(sH),this.isNgZoneEnabled=!1,this.options=Ji(QF,{optional:!0})||{},this.errorHandler=this.options.errorHandler||set,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||uet,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=Ji(oet),this.routeReuseStrategy=Ji(M7),this.urlCreationStrategy=Ji(YJe),this.titleStrategy=Ji(Rue),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=zle(Ji(qx,{optional:!0})??[]),this.navigationTransitions=Ji(JF),this.urlSerializer=Ji(RE),this.location=Ji(aF),this.isNgZoneEnabled=Ji(Un)instanceof Un&&Un.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new by,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lue(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),VE,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const o={replaceUrl:!0},a=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const s=this.parseUrl(e);this.scheduleNavigation(s,i,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(D7),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:a,queryParamsHandling:s,preserveFragment:l}=i,u=l?this.currentUrlTree.fragment:a;let f=null;switch(s){case"merge":f={...this.currentUrlTree.queryParams,...o};break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=o||null}return null!==f&&(f=this.removeEmptyProps(f)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,f,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=wy(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,VE,null,i)}navigate(e,i={skipLocationChange:!1}){return function het(t){for(let n=0;n<t.length;n++){if(null==t[n])throw new Dn(4008,!1)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?{...det}:!1===i?{...cet}:i,wy(e))return Gle(this.currentUrlTree,e,r);const o=this.parseUrl(e);return Gle(this.currentUrlTree,o,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const o=e[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(e,i,r,o,a){if(this.disposed)return Promise.resolve(!1);let s,l,u,f;return a?(s=a.resolve,l=a.reject,u=a.promise):u=new Promise((S,T)=>{s=S,l=T}),f="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:f,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:s,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(S=>Promise.reject(S))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===r?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),eP=(()=>{class t{constructor(e,i,r,o,a,s){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=a,this.locationStrategy=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new le;const l=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=e.events.subscribe(u=>{u instanceof N0&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=Bx(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=Bx(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=Bx(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,o,a){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||o||a||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function iie(t,n,e){return function mUe(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?nie:ad}(n,e)(t)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,e,i):r.removeAttribute(o,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return t.\u0275fac=function(e){return new(e||t)($(ds),$(V0),function vA(t){return function Nze(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const o=e[r];if($te(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(o===n)return e[r+1];r+=2}}}return null}(tu(),t)}("tabindex"),$(bu),$(jn),$(gy))},t.\u0275dir=sr({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&fn("click",function(o){return i.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),2&e&&es("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[hi]}),t})();class Bue{}let fet=(()=>{class t{constructor(e,i,r,o,a){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(qf(e=>e instanceof N0),$f(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=ZA(o.providers,e,`Route: ${o.path}`));const a=o._injector??e,s=o._loadedInjector??a;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(a,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(s,o.children??o._loadedRoutes))}return Me(r).pipe(jt())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):Bi(null);const o=r.pipe(ri(a=>null===a?Bi(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));return i.loadComponent&&!i._loadedComponent?Me([o,this.loader.loadComponent(i)]).pipe(jt()):o})}}return t.\u0275fac=function(e){return new(e||t)(qt(ds),qt(yae),qt(Yp),qt(Bue),qt(k7))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const A7=new Pi("");let Nue=(()=>{class t{constructor(e,i,r,o,a={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof m7?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof N0&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof oue&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new oue(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function Rie(){throw new Error("invalid")}()},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();function Sy(t,n){return{\u0275kind:t,\u0275providers:n}}function Hue(){const t=Ji(xu);return n=>{const e=t.get(_E);if(n!==e.components[0])return;const i=t.get(ds),r=t.get(zue);1===t.get(P7)&&i.initialNavigation(),t.get(Uue,null,Ui.Optional)?.setUpPreloading(),t.get(A7,null,Ui.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const zue=new Pi("",{factory:()=>new le}),P7=new Pi("",{providedIn:"root",factory:()=>1});const Uue=new Pi("");function Cet(t){return Sy(0,[{provide:Uue,useExisting:fet},{provide:Bue,useExisting:t}])}const Wue=new Pi("ROUTER_FORROOT_GUARD"),bet=[aF,{provide:RE,useClass:d7},ds,zE,{provide:V0,useFactory:function Vue(t){return t.routerState.root},deps:[ds]},k7,[]];function xet(){return new Eae("Router",ds)}let R7=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[bet,[],{provide:qx,multi:!0,useValue:e},{provide:Wue,useFactory:Oet,deps:[[ds,new sx,new KD]]},{provide:QF,useValue:i||{}},i?.useHash?{provide:gy,useClass:W$e}:{provide:gy,useClass:qae},{provide:A7,useFactory:()=>{const t=Ji(aYe),n=Ji(Un),e=Ji(QF),i=Ji(JF),r=Ji(RE);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Nue(r,i,t,n,e)}},i?.preloadingStrategy?Cet(i.preloadingStrategy).\u0275providers:[],{provide:Eae,multi:!0,useFactory:xet},i?.initialNavigation?Tet(i):[],[{provide:Gue,useFactory:Hue},{provide:vae,multi:!0,useExisting:Gue}]]}}static forChild(e){return{ngModule:t,providers:[{provide:qx,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(qt(Wue,8))},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[w7]}),t})();function Oet(t){return"guarded"}function Tet(t){return["disabled"===t.initialNavigation?Sy(3,[{provide:eF,multi:!0,useFactory:()=>{const n=Ji(ds);return()=>{n.setUpLocationChangeListener()}}},{provide:P7,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Sy(2,[{provide:P7,useValue:0},{provide:eF,multi:!0,deps:[xu],useFactory:n=>{const e=n.get(z$e,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const o=n.get(ds),a=n.get(zue);(function i(r){n.get(ds).events.pipe(qf(a=>a instanceof N0||a instanceof UF||a instanceof rue),K(a=>a instanceof N0||a instanceof UF&&(0===a.code||1===a.code)&&null),qf(a=>null!==a),Xf(1)).subscribe(()=>{r()})})(()=>{r(!0)}),n.get(JF).afterPreactivation=()=>(r(!0),a.closed?Bi(void 0):a),o.initialNavigation()}))}}]).\u0275providers:[]]}const Gue=new Pi(""),ket=[0,2e3,1e4,3e4,null];class jue{constructor(n){this._retryDelays=void 0!==n?[...n,null]:ket}nextRetryDelayInMilliseconds(n){return this._retryDelays[n.previousRetryCount]}}function Kue(t,n,e,i,r,o,a){try{var s=t[o](a),l=s.value}catch(u){return void e(u)}s.done?n(l):Promise.resolve(l).then(i,r)}function Rt(t){return function(){var n=this,e=arguments;return new Promise(function(i,r){var o=t.apply(n,e);function a(l){Kue(o,i,r,a,s,"next",l)}function s(l){Kue(o,i,r,a,s,"throw",l)}a(void 0)})}}let YE=(()=>{class t{}return t.Authorization="Authorization",t.Cookie="Cookie",t})();class $ue{constructor(n,e,i){this.statusCode=n,this.statusText=e,this.content=i}}class tP{get(n,e){return this.send({...e,method:"GET",url:n})}post(n,e){return this.send({...e,method:"POST",url:n})}delete(n,e){return this.send({...e,method:"DELETE",url:n})}getCookieString(n){return""}}class Met extends tP{constructor(n,e){super(),this._innerClient=n,this._accessTokenFactory=e}send(n){var e=this;return Rt(function*(){let i=!0;e._accessTokenFactory&&(!e._accessToken||n.url&&n.url.indexOf("/negotiate?")>0)&&(i=!1,e._accessToken=yield e._accessTokenFactory()),e._setAuthorizationHeader(n);const r=yield e._innerClient.send(n);return i&&401===r.statusCode&&e._accessTokenFactory?(e._accessToken=yield e._accessTokenFactory(),e._setAuthorizationHeader(n),yield e._innerClient.send(n)):r})()}_setAuthorizationHeader(n){n.headers||(n.headers={}),this._accessToken?n.headers[YE.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&n.headers[YE.Authorization]&&delete n.headers[YE.Authorization]}getCookieString(n){return this._innerClient.getCookieString(n)}}class Zx extends Error{constructor(n,e){const i=new.target.prototype;super(`${n}: Status code '${e}'`),this.statusCode=e,this.__proto__=i}}class L7 extends Error{constructor(n="A timeout occurred."){const e=new.target.prototype;super(n),this.__proto__=e}}class sp extends Error{constructor(n="An abort occurred."){const e=new.target.prototype;super(n),this.__proto__=e}}class Aet extends Error{constructor(n,e){const i=new.target.prototype;super(n),this.transport=e,this.errorType="UnsupportedTransportError",this.__proto__=i}}class Fet extends Error{constructor(n,e){const i=new.target.prototype;super(n),this.transport=e,this.errorType="DisabledTransportError",this.__proto__=i}}class Pet extends Error{constructor(n,e){const i=new.target.prototype;super(n),this.transport=e,this.errorType="FailedToStartTransportError",this.__proto__=i}}class Ret extends Error{constructor(n){const e=new.target.prototype;super(n),this.errorType="FailedToNegotiateWithServerError",this.__proto__=e}}class Let extends Error{constructor(n,e){const i=new.target.prototype;super(n),this.innerErrors=e,this.__proto__=i}}var An=(()=>(function(t){t[t.Trace=0]="Trace",t[t.Debug=1]="Debug",t[t.Information=2]="Information",t[t.Warning=3]="Warning",t[t.Error=4]="Error",t[t.Critical=5]="Critical",t[t.None=6]="None"}(An||(An={})),An))();class ZE{constructor(){}log(n,e){}}ZE.instance=new ZE;class Il{static isRequired(n,e){if(null==n)throw new Error(`The '${e}' argument is required.`)}static isNotEmpty(n,e){if(!n||n.match(/^\s*$/))throw new Error(`The '${e}' argument should not be empty.`)}static isIn(n,e,i){if(!(n in e))throw new Error(`Unknown ${i} value: ${n}.`)}}class kl{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&typeof window.document>"u"}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function XE(t,n){let e="";return JE(t)?(e=`Binary data of length ${t.byteLength}`,n&&(e+=`. Content: '${function Net(t){const n=new Uint8Array(t);let e="";return n.forEach(i=>{e+=`0x${i<16?"0":""}${i.toString(16)} `}),e.substr(0,e.length-1)}(t)}'`)):"string"==typeof t&&(e=`String data of length ${t.length}`,n&&(e+=`. Content: '${t}'`)),e}function JE(t){return t&&typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||t.constructor&&"ArrayBuffer"===t.constructor.name)}function que(t,n,e,i,r,o){return B7.apply(this,arguments)}function B7(){return B7=Rt(function*(t,n,e,i,r,o){const a={},[s,l]=Xx();a[s]=l,t.log(An.Trace,`(${n} transport) sending data. ${XE(r,o.logMessageContent)}.`);const u=JE(r)?"arraybuffer":"text",f=yield e.post(i,{content:r,headers:{...a,...o.headers},responseType:u,timeout:o.timeout,withCredentials:o.withCredentials});t.log(An.Trace,`(${n} transport) request complete. Response status: ${f.statusCode}.`)}),B7.apply(this,arguments)}class Het{constructor(n,e){this._subject=n,this._observer=e}dispose(){const n=this._subject.observers.indexOf(this._observer);n>-1&&this._subject.observers.splice(n,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(e=>{})}}class nP{constructor(n){this._minLevel=n,this.out=console}log(n,e){if(n>=this._minLevel){const i=`[${(new Date).toISOString()}] ${An[n]}: ${e}`;switch(n){case An.Critical:case An.Error:this.out.error(i);break;case An.Warning:this.out.warn(i);break;case An.Information:this.out.info(i);break;default:this.out.log(i)}}}}function Xx(){let t="X-SignalR-User-Agent";return kl.isNode&&(t="User-Agent"),[t,zet("7.0.2",Uet(),kl.isNode?"NodeJS":"Browser",Wet())]}function zet(t,n,e,i){let r="Microsoft SignalR/";const o=t.split(".");return r+=`${o[0]}.${o[1]}`,r+=` (${t}; `,r+=n&&""!==n?`${n}; `:"Unknown OS; ",r+=`${e}`,r+=i?`; ${i}`:"; Unknown Runtime Version",r+=")",r}function Uet(){if(!kl.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function Wet(){if(kl.isNode)return process.versions.node}function Yue(t){return t.stack?t.stack:t.message?t.message:`${t}`}class Ket extends tP{constructor(n){if(super(),this._logger=n,typeof fetch>"u"){const e=require;this._jar=new(e("tough-cookie").CookieJar),this._fetchType=e("node-fetch"),this._fetchType=e("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function jet(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}());if(typeof AbortController>"u"){const e=require;this._abortControllerType=e("abort-controller")}else this._abortControllerType=AbortController}send(n){var e=this;return Rt(function*(){if(n.abortSignal&&n.abortSignal.aborted)throw new sp;if(!n.method)throw new Error("No method defined.");if(!n.url)throw new Error("No url defined.");const i=new e._abortControllerType;let r;n.abortSignal&&(n.abortSignal.onabort=()=>{i.abort(),r=new sp});let a,o=null;n.timeout&&(o=setTimeout(()=>{i.abort(),e._logger.log(An.Warning,"Timeout from HTTP request."),r=new L7},n.timeout)),""===n.content&&(n.content=void 0),n.content&&(n.headers=n.headers||{},n.headers["Content-Type"]=JE(n.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{a=yield e._fetchType(n.url,{body:n.content,cache:"no-cache",credentials:!0===n.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...n.headers},method:n.method,mode:"cors",redirect:"follow",signal:i.signal})}catch(u){throw r||(e._logger.log(An.Warning,`Error from HTTP request. ${u}.`),u)}finally{o&&clearTimeout(o),n.abortSignal&&(n.abortSignal.onabort=null)}if(!a.ok){const u=yield Zue(a,"text");throw new Zx(u||a.statusText,a.status)}const l=yield Zue(a,n.responseType);return new $ue(a.status,a.statusText,l)})()}getCookieString(n){let e="";return kl.isNode&&this._jar&&this._jar.getCookies(n,(i,r)=>e=r.join("; ")),e}}function Zue(t,n){let e;switch(n){case"arraybuffer":e=t.arrayBuffer();break;case"text":default:e=t.text();break;case"blob":case"document":case"json":throw new Error(`${n} is not supported.`)}return e}class $et extends tP{constructor(n){super(),this._logger=n}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new sp):n.method?n.url?new Promise((e,i)=>{const r=new XMLHttpRequest;r.open(n.method,n.url,!0),r.withCredentials=void 0===n.withCredentials||n.withCredentials,r.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===n.content&&(n.content=void 0),n.content&&(JE(n.content)?r.setRequestHeader("Content-Type","application/octet-stream"):r.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const o=n.headers;o&&Object.keys(o).forEach(a=>{r.setRequestHeader(a,o[a])}),n.responseType&&(r.responseType=n.responseType),n.abortSignal&&(n.abortSignal.onabort=()=>{r.abort(),i(new sp)}),n.timeout&&(r.timeout=n.timeout),r.onload=()=>{n.abortSignal&&(n.abortSignal.onabort=null),r.status>=200&&r.status<300?e(new $ue(r.status,r.statusText,r.response||r.responseText)):i(new Zx(r.response||r.responseText||r.statusText,r.status))},r.onerror=()=>{this._logger.log(An.Warning,`Error from HTTP request. ${r.status}: ${r.statusText}.`),i(new Zx(r.statusText,r.status))},r.ontimeout=()=>{this._logger.log(An.Warning,"Timeout from HTTP request."),i(new L7)},r.send(n.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class qet extends tP{constructor(n){if(super(),typeof fetch<"u"||kl.isNode)this._httpClient=new Ket(n);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new $et(n)}}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new sp):n.method?n.url?this._httpClient.send(n):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(n){return this._httpClient.getCookieString(n)}}var ol=(()=>(function(t){t[t.None=0]="None",t[t.WebSockets=1]="WebSockets",t[t.ServerSentEvents=2]="ServerSentEvents",t[t.LongPolling=4]="LongPolling"}(ol||(ol={})),ol))(),ou=(()=>(function(t){t[t.Text=1]="Text",t[t.Binary=2]="Binary"}(ou||(ou={})),ou))();class Yet{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class Xue{constructor(n,e,i){this._httpClient=n,this._logger=e,this._pollAbort=new Yet,this._options=i,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}connect(n,e){var i=this;return Rt(function*(){if(Il.isRequired(n,"url"),Il.isRequired(e,"transferFormat"),Il.isIn(e,ou,"transferFormat"),i._url=n,i._logger.log(An.Trace,"(LongPolling transport) Connecting."),e===ou.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[r,o]=Xx(),a={[r]:o,...i._options.headers},s={abortSignal:i._pollAbort.signal,headers:a,timeout:1e5,withCredentials:i._options.withCredentials};e===ou.Binary&&(s.responseType="arraybuffer");const l=`${n}&_=${Date.now()}`;i._logger.log(An.Trace,`(LongPolling transport) polling: ${l}.`);const u=yield i._httpClient.get(l,s);200!==u.statusCode?(i._logger.log(An.Error,`(LongPolling transport) Unexpected response code: ${u.statusCode}.`),i._closeError=new Zx(u.statusText||"",u.statusCode),i._running=!1):i._running=!0,i._receiving=i._poll(i._url,s)})()}_poll(n,e){var i=this;return Rt(function*(){try{for(;i._running;)try{const r=`${n}&_=${Date.now()}`;i._logger.log(An.Trace,`(LongPolling transport) polling: ${r}.`);const o=yield i._httpClient.get(r,e);204===o.statusCode?(i._logger.log(An.Information,"(LongPolling transport) Poll terminated by server."),i._running=!1):200!==o.statusCode?(i._logger.log(An.Error,`(LongPolling transport) Unexpected response code: ${o.statusCode}.`),i._closeError=new Zx(o.statusText||"",o.statusCode),i._running=!1):o.content?(i._logger.log(An.Trace,`(LongPolling transport) data received. ${XE(o.content,i._options.logMessageContent)}.`),i.onreceive&&i.onreceive(o.content)):i._logger.log(An.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(r){i._running?r instanceof L7?i._logger.log(An.Trace,"(LongPolling transport) Poll timed out, reissuing."):(i._closeError=r,i._running=!1):i._logger.log(An.Trace,`(LongPolling transport) Poll errored after shutdown: ${r.message}`)}}finally{i._logger.log(An.Trace,"(LongPolling transport) Polling complete."),i.pollAborted||i._raiseOnClose()}})()}send(n){var e=this;return Rt(function*(){return e._running?que(e._logger,"LongPolling",e._httpClient,e._url,n,e._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var n=this;return Rt(function*(){n._logger.log(An.Trace,"(LongPolling transport) Stopping polling."),n._running=!1,n._pollAbort.abort();try{yield n._receiving,n._logger.log(An.Trace,`(LongPolling transport) sending DELETE request to ${n._url}.`);const e={},[i,r]=Xx();e[i]=r;const o={headers:{...e,...n._options.headers},timeout:n._options.timeout,withCredentials:n._options.withCredentials};yield n._httpClient.delete(n._url,o),n._logger.log(An.Trace,"(LongPolling transport) DELETE request sent.")}finally{n._logger.log(An.Trace,"(LongPolling transport) Stop finished."),n._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let n="(LongPolling transport) Firing onclose event.";this._closeError&&(n+=" Error: "+this._closeError),this._logger.log(An.Trace,n),this.onclose(this._closeError)}}}class Zet{constructor(n,e,i,r){this._httpClient=n,this._accessToken=e,this._logger=i,this._options=r,this.onreceive=null,this.onclose=null}connect(n,e){var i=this;return Rt(function*(){return Il.isRequired(n,"url"),Il.isRequired(e,"transferFormat"),Il.isIn(e,ou,"transferFormat"),i._logger.log(An.Trace,"(SSE transport) Connecting."),i._url=n,i._accessToken&&(n+=(n.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(i._accessToken)}`),new Promise((r,o)=>{let s,a=!1;if(e===ou.Text){if(kl.isBrowser||kl.isWebWorker)s=new i._options.EventSource(n,{withCredentials:i._options.withCredentials});else{const l=i._httpClient.getCookieString(n),u={};u.Cookie=l;const[f,S]=Xx();u[f]=S,s=new i._options.EventSource(n,{withCredentials:i._options.withCredentials,headers:{...u,...i._options.headers}})}try{s.onmessage=l=>{if(i.onreceive)try{i._logger.log(An.Trace,`(SSE transport) data received. ${XE(l.data,i._options.logMessageContent)}.`),i.onreceive(l.data)}catch(u){return void i._close(u)}},s.onerror=l=>{a?i._close():o(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},s.onopen=()=>{i._logger.log(An.Information,`SSE connected to ${i._url}`),i._eventSource=s,a=!0,r()}}catch(l){return void o(l)}}else o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(n){var e=this;return Rt(function*(){return e._eventSource?que(e._logger,"SSE",e._httpClient,e._url,n,e._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(n){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(n))}}class Xet{constructor(n,e,i,r,o,a){this._logger=i,this._accessTokenFactory=e,this._logMessageContent=r,this._webSocketConstructor=o,this._httpClient=n,this.onreceive=null,this.onclose=null,this._headers=a}connect(n,e){var i=this;return Rt(function*(){let r;return Il.isRequired(n,"url"),Il.isRequired(e,"transferFormat"),Il.isIn(e,ou,"transferFormat"),i._logger.log(An.Trace,"(WebSockets transport) Connecting."),i._accessTokenFactory&&(r=yield i._accessTokenFactory()),new Promise((o,a)=>{let s;n=n.replace(/^http/,"ws");const l=i._httpClient.getCookieString(n);let u=!1;if(kl.isNode||kl.isReactNative){const f={},[S,T]=Xx();f[S]=T,r&&(f[YE.Authorization]=`Bearer ${r}`),l&&(f[YE.Cookie]=l),s=new i._webSocketConstructor(n,void 0,{headers:{...f,...i._headers}})}else r&&(n+=(n.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(r)}`);s||(s=new i._webSocketConstructor(n)),e===ou.Binary&&(s.binaryType="arraybuffer"),s.onopen=f=>{i._logger.log(An.Information,`WebSocket connected to ${n}.`),i._webSocket=s,u=!0,o()},s.onerror=f=>{let S=null;S=typeof ErrorEvent<"u"&&f instanceof ErrorEvent?f.error:"There was an error with the transport",i._logger.log(An.Information,`(WebSockets transport) ${S}.`)},s.onmessage=f=>{if(i._logger.log(An.Trace,`(WebSockets transport) data received. ${XE(f.data,i._logMessageContent)}.`),i.onreceive)try{i.onreceive(f.data)}catch(S){return void i._close(S)}},s.onclose=f=>{if(u)i._close(f);else{let S=null;S=typeof ErrorEvent<"u"&&f instanceof ErrorEvent?f.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",a(new Error(S))}}})})()}send(n){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(An.Trace,`(WebSockets transport) sending data. ${XE(n,this._logMessageContent)}.`),this._webSocket.send(n),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(n){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(An.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(n)||!1!==n.wasClean&&1e3===n.code?n instanceof Error?this.onclose(n):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${n.code} (${n.reason||"no reason given"}).`)))}_isCloseEvent(n){return n&&"boolean"==typeof n.wasClean&&"number"==typeof n.code}}class Jet{constructor(n,e={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,Il.isRequired(n,"url"),this._logger=function Vet(t){return void 0===t?new nP(An.Information):null===t?ZE.instance:void 0!==t.log?t:new nP(t)}(e.logger),this.baseUrl=this._resolveUrl(n),(e=e||{}).logMessageContent=void 0!==e.logMessageContent&&e.logMessageContent,"boolean"!=typeof e.withCredentials&&void 0!==e.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");e.withCredentials=void 0===e.withCredentials||e.withCredentials,e.timeout=void 0===e.timeout?1e5:e.timeout;let i=null,r=null;if(kl.isNode){const o=require;i=o("ws"),r=o("eventsource")}!kl.isNode&&typeof WebSocket<"u"&&!e.WebSocket?e.WebSocket=WebSocket:kl.isNode&&!e.WebSocket&&i&&(e.WebSocket=i),!kl.isNode&&typeof EventSource<"u"&&!e.EventSource?e.EventSource=EventSource:kl.isNode&&!e.EventSource&&typeof r<"u"&&(e.EventSource=r),this._httpClient=new Met(e.httpClient||new qet(this._logger),e.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=e,this.onreceive=null,this.onclose=null}start(n){var e=this;return Rt(function*(){if(Il.isIn(n=n||ou.Binary,ou,"transferFormat"),e._logger.log(An.Debug,`Starting connection with transfer format '${ou[n]}'.`),"Disconnected"!==e._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(e._connectionState="Connecting",e._startInternalPromise=e._startInternal(n),yield e._startInternalPromise,"Disconnecting"===e._connectionState){const i="Failed to start the HttpConnection before stop() was called.";return e._logger.log(An.Error,i),yield e._stopPromise,Promise.reject(new sp(i))}if("Connected"!==e._connectionState){const i="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return e._logger.log(An.Error,i),Promise.reject(new sp(i))}e._connectionStarted=!0})()}send(n){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new N7(this.transport)),this._sendQueue.send(n))}stop(n){var e=this;return Rt(function*(){return"Disconnected"===e._connectionState?(e._logger.log(An.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===e._connectionState?(e._logger.log(An.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnecting state.`),e._stopPromise):(e._connectionState="Disconnecting",e._stopPromise=new Promise(i=>{e._stopPromiseResolver=i}),yield e._stopInternal(n),void(yield e._stopPromise))})()}_stopInternal(n){var e=this;return Rt(function*(){e._stopError=n;try{yield e._startInternalPromise}catch{}if(e.transport){try{yield e.transport.stop()}catch(i){e._logger.log(An.Error,`HttpConnection.transport.stop() threw error '${i}'.`),e._stopConnection()}e.transport=void 0}else e._logger.log(An.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(n){var e=this;return Rt(function*(){let i=e.baseUrl;e._accessTokenFactory=e._options.accessTokenFactory,e._httpClient._accessTokenFactory=e._accessTokenFactory;try{if(e._options.skipNegotiation){if(e._options.transport!==ol.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");e.transport=e._constructTransport(ol.WebSockets),yield e._startTransport(i,n)}else{let r=null,o=0;do{if(r=yield e._getNegotiationResponse(i),"Disconnecting"===e._connectionState||"Disconnected"===e._connectionState)throw new sp("The connection was stopped during negotiation.");if(r.error)throw new Error(r.error);if(r.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(r.url&&(i=r.url),r.accessToken){const a=r.accessToken;e._accessTokenFactory=()=>a,e._httpClient._accessToken=a,e._httpClient._accessTokenFactory=void 0}o++}while(r.url&&o<100);if(100===o&&r.url)throw new Error("Negotiate redirection limit exceeded.");yield e._createTransport(i,e._options.transport,r,n)}e.transport instanceof Xue&&(e.features.inherentKeepAlive=!0),"Connecting"===e._connectionState&&(e._logger.log(An.Debug,"The HttpConnection connected successfully."),e._connectionState="Connected")}catch(r){return e._logger.log(An.Error,"Failed to start the connection: "+r),e._connectionState="Disconnected",e.transport=void 0,e._stopPromiseResolver(),Promise.reject(r)}})()}_getNegotiationResponse(n){var e=this;return Rt(function*(){const i={},[r,o]=Xx();i[r]=o;const a=e._resolveNegotiateUrl(n);e._logger.log(An.Debug,`Sending negotiation request: ${a}.`);try{const s=yield e._httpClient.post(a,{content:"",headers:{...i,...e._options.headers},timeout:e._options.timeout,withCredentials:e._options.withCredentials});if(200!==s.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${s.statusCode}'`));const l=JSON.parse(s.content);return(!l.negotiateVersion||l.negotiateVersion<1)&&(l.connectionToken=l.connectionId),l}catch(s){let l="Failed to complete negotiation with the server: "+s;return s instanceof Zx&&404===s.statusCode&&(l+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),e._logger.log(An.Error,l),Promise.reject(new Ret(l))}})()}_createConnectUrl(n,e){return e?n+(-1===n.indexOf("?")?"?":"&")+`id=${e}`:n}_createTransport(n,e,i,r){var o=this;return Rt(function*(){let a=o._createConnectUrl(n,i.connectionToken);if(o._isITransport(e))return o._logger.log(An.Debug,"Connection was provided an instance of ITransport, using that directly."),o.transport=e,yield o._startTransport(a,r),void(o.connectionId=i.connectionId);const s=[],l=i.availableTransports||[];let u=i;for(const f of l){const S=o._resolveTransportOrError(f,e,r);if(S instanceof Error)s.push(`${f.transport} failed:`),s.push(S);else if(o._isITransport(S)){if(o.transport=S,!u){try{u=yield o._getNegotiationResponse(n)}catch(T){return Promise.reject(T)}a=o._createConnectUrl(n,u.connectionToken)}try{return yield o._startTransport(a,r),void(o.connectionId=u.connectionId)}catch(T){if(o._logger.log(An.Error,`Failed to start the transport '${f.transport}': ${T}`),u=void 0,s.push(new Pet(`${f.transport} failed: ${T}`,ol[f.transport])),"Connecting"!==o._connectionState){const R="Failed to select transport before stop() was called.";return o._logger.log(An.Debug,R),Promise.reject(new sp(R))}}}}return Promise.reject(s.length>0?new Let(`Unable to connect to the server with any of the available transports. ${s.join(" ")}`,s):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(n){switch(n){case ol.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Xet(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case ol.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Zet(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case ol.LongPolling:return new Xue(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${n}.`)}}_startTransport(n,e){return this.transport.onreceive=this.onreceive,this.transport.onclose=i=>this._stopConnection(i),this.transport.connect(n,e)}_resolveTransportOrError(n,e,i){const r=ol[n.transport];if(null==r)return this._logger.log(An.Debug,`Skipping transport '${n.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${n.transport}' because it is not supported by this client.`);if(!function Qet(t,n){return!t||0!=(n&t)}(e,r))return this._logger.log(An.Debug,`Skipping transport '${ol[r]}' because it was disabled by the client.`),new Fet(`'${ol[r]}' is disabled by the client.`,r);if(!(n.transferFormats.map(a=>ou[a]).indexOf(i)>=0))return this._logger.log(An.Debug,`Skipping transport '${ol[r]}' because it does not support the requested transfer format '${ou[i]}'.`),new Error(`'${ol[r]}' does not support ${ou[i]}.`);if(r===ol.WebSockets&&!this._options.WebSocket||r===ol.ServerSentEvents&&!this._options.EventSource)return this._logger.log(An.Debug,`Skipping transport '${ol[r]}' because it is not supported in your environment.'`),new Aet(`'${ol[r]}' is not supported in your environment.`,r);this._logger.log(An.Debug,`Selecting transport '${ol[r]}'.`);try{return this._constructTransport(r)}catch(a){return a}}_isITransport(n){return n&&"object"==typeof n&&"connect"in n}_stopConnection(n){if(this._logger.log(An.Debug,`HttpConnection.stopConnection(${n}) called while in state ${this._connectionState}.`),this.transport=void 0,n=this._stopError||n,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(An.Warning,`Call to HttpConnection.stopConnection(${n}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${n}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),n?this._logger.log(An.Error,`Connection disconnected with error '${n}'.`):this._logger.log(An.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(e=>{this._logger.log(An.Error,`TransportSendQueue.stop() threw error '${e}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(n)}catch(e){this._logger.log(An.Error,`HttpConnection.onclose(${n}) threw error '${e}'.`)}}}else this._logger.log(An.Debug,`Call to HttpConnection.stopConnection(${n}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(n){if(0===n.lastIndexOf("https://",0)||0===n.lastIndexOf("http://",0))return n;if(!kl.isBrowser)throw new Error(`Cannot resolve '${n}'.`);const e=window.document.createElement("a");return e.href=n,this._logger.log(An.Information,`Normalizing '${n}' to '${e.href}'.`),e.href}_resolveNegotiateUrl(n){const e=n.indexOf("?");let i=n.substring(0,-1===e?n.length:e);return"/"!==i[i.length-1]&&(i+="/"),i+="negotiate",i+=-1===e?"":n.substring(e),-1===i.indexOf("negotiateVersion")&&(i+=-1===e?"?":"&",i+="negotiateVersion="+this._negotiateVersion),i}}class N7{constructor(n){this._transport=n,this._buffer=[],this._executing=!0,this._sendBufferedData=new iP,this._transportResult=new iP,this._sendLoopPromise=this._sendLoop()}send(n){return this._bufferData(n),this._transportResult||(this._transportResult=new iP),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(n){if(this._buffer.length&&typeof this._buffer[0]!=typeof n)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof n}`);this._buffer.push(n),this._sendBufferedData.resolve()}_sendLoop(){var n=this;return Rt(function*(){for(;;){if(yield n._sendBufferedData.promise,!n._executing){n._transportResult&&n._transportResult.reject("Connection stopped.");break}n._sendBufferedData=new iP;const e=n._transportResult;n._transportResult=void 0;const i="string"==typeof n._buffer[0]?n._buffer.join(""):N7._concatBuffers(n._buffer);n._buffer.length=0;try{yield n._transport.send(i),e.resolve()}catch(r){e.reject(r)}}})()}static _concatBuffers(n){const e=n.map(o=>o.byteLength).reduce((o,a)=>o+a),i=new Uint8Array(e);let r=0;for(const o of n)i.set(new Uint8Array(o),r),r+=o.byteLength;return i.buffer}}class iP{constructor(){this.promise=new Promise((n,e)=>[this._resolver,this._rejecter]=[n,e])}resolve(){this._resolver()}reject(n){this._rejecter(n)}}class bc{static write(n){return`${n}${bc.RecordSeparator}`}static parse(n){if(n[n.length-1]!==bc.RecordSeparator)throw new Error("Message is incomplete.");const e=n.split(bc.RecordSeparator);return e.pop(),e}}bc.RecordSeparatorCode=30,bc.RecordSeparator=String.fromCharCode(bc.RecordSeparatorCode);class ett{writeHandshakeRequest(n){return bc.write(JSON.stringify(n))}parseHandshakeResponse(n){let e,i;if(JE(n)){const s=new Uint8Array(n),l=s.indexOf(bc.RecordSeparatorCode);if(-1===l)throw new Error("Message is incomplete.");const u=l+1;e=String.fromCharCode.apply(null,Array.prototype.slice.call(s.slice(0,u))),i=s.byteLength>u?s.slice(u).buffer:null}else{const s=n,l=s.indexOf(bc.RecordSeparator);if(-1===l)throw new Error("Message is incomplete.");const u=l+1;e=s.substring(0,u),i=s.length>u?s.substring(u):null}const r=bc.parse(e),o=JSON.parse(r[0]);if(o.type)throw new Error("Expected a handshake response from the server.");return[i,o]}}var ha=(()=>(function(t){t[t.Invocation=1]="Invocation",t[t.StreamItem=2]="StreamItem",t[t.Completion=3]="Completion",t[t.StreamInvocation=4]="StreamInvocation",t[t.CancelInvocation=5]="CancelInvocation",t[t.Ping=6]="Ping",t[t.Close=7]="Close"}(ha||(ha={})),ha))();class ttt{constructor(){this.observers=[]}next(n){for(const e of this.observers)e.next(n)}error(n){for(const e of this.observers)e.error&&e.error(n)}complete(){for(const n of this.observers)n.complete&&n.complete()}subscribe(n){return this.observers.push(n),new Het(this,n)}}var Na=(()=>(function(t){t.Disconnected="Disconnected",t.Connecting="Connecting",t.Connected="Connected",t.Disconnecting="Disconnecting",t.Reconnecting="Reconnecting"}(Na||(Na={})),Na))();class V7{constructor(n,e,i,r){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(An.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},Il.isRequired(n,"connection"),Il.isRequired(e,"logger"),Il.isRequired(i,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=e,this._protocol=i,this.connection=n,this._reconnectPolicy=r,this._handshakeProtocol=new ett,this.connection.onreceive=o=>this._processIncomingData(o),this.connection.onclose=o=>this._connectionClosed(o),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Na.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:ha.Ping})}static create(n,e,i,r){return new V7(n,e,i,r)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(n){if(this._connectionState!==Na.Disconnected&&this._connectionState!==Na.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!n)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=n}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var n=this;return Rt(function*(){if(n._connectionState!==Na.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));n._connectionState=Na.Connecting,n._logger.log(An.Debug,"Starting HubConnection.");try{yield n._startInternal(),kl.isBrowser&&window.document.addEventListener("freeze",n._freezeEventListener),n._connectionState=Na.Connected,n._connectionStarted=!0,n._logger.log(An.Debug,"HubConnection connected successfully.")}catch(e){return n._connectionState=Na.Disconnected,n._logger.log(An.Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}})()}_startInternal(){var n=this;return Rt(function*(){n._stopDuringStartError=void 0,n._receivedHandshakeResponse=!1;const e=new Promise((i,r)=>{n._handshakeResolver=i,n._handshakeRejecter=r});yield n.connection.start(n._protocol.transferFormat);try{const i={protocol:n._protocol.name,version:n._protocol.version};if(n._logger.log(An.Debug,"Sending handshake request."),yield n._sendMessage(n._handshakeProtocol.writeHandshakeRequest(i)),n._logger.log(An.Information,`Using HubProtocol '${n._protocol.name}'.`),n._cleanupTimeout(),n._resetTimeoutPeriod(),n._resetKeepAliveInterval(),yield e,n._stopDuringStartError)throw n._stopDuringStartError;n.connection.features.inherentKeepAlive||(yield n._sendMessage(n._cachedPingMessage))}catch(i){throw n._logger.log(An.Debug,`Hub handshake failed with error '${i}' during start(). Stopping HubConnection.`),n._cleanupTimeout(),n._cleanupPingTimer(),yield n.connection.stop(i),i}})()}stop(){var n=this;return Rt(function*(){const e=n._startPromise;n._stopPromise=n._stopInternal(),yield n._stopPromise;try{yield e}catch{}})()}_stopInternal(n){return this._connectionState===Na.Disconnected?(this._logger.log(An.Debug,`Call to HubConnection.stop(${n}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===Na.Disconnecting?(this._logger.log(An.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=Na.Disconnecting,this._logger.log(An.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(An.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=n||new sp("The connection was stopped before the hub handshake could complete."),this.connection.stop(n)))}stream(n,...e){const[i,r]=this._replaceStreamingParams(e),o=this._createStreamInvocation(n,e,r);let a;const s=new ttt;return s.cancelCallback=()=>{const l=this._createCancelInvocation(o.invocationId);return delete this._callbacks[o.invocationId],a.then(()=>this._sendWithProtocol(l))},this._callbacks[o.invocationId]=(l,u)=>{u?s.error(u):l&&(l.type===ha.Completion?l.error?s.error(new Error(l.error)):s.complete():s.next(l.item))},a=this._sendWithProtocol(o).catch(l=>{s.error(l),delete this._callbacks[o.invocationId]}),this._launchStreams(i,a),s}_sendMessage(n){return this._resetKeepAliveInterval(),this.connection.send(n)}_sendWithProtocol(n){return this._sendMessage(this._protocol.writeMessage(n))}send(n,...e){const[i,r]=this._replaceStreamingParams(e),o=this._sendWithProtocol(this._createInvocation(n,e,!0,r));return this._launchStreams(i,o),o}invoke(n,...e){const[i,r]=this._replaceStreamingParams(e),o=this._createInvocation(n,e,!1,r);return new Promise((s,l)=>{this._callbacks[o.invocationId]=(f,S)=>{S?l(S):f&&(f.type===ha.Completion?f.error?l(new Error(f.error)):s(f.result):l(new Error(`Unexpected message type: ${f.type}`)))};const u=this._sendWithProtocol(o).catch(f=>{l(f),delete this._callbacks[o.invocationId]});this._launchStreams(i,u)})}on(n,e){!n||!e||(n=n.toLowerCase(),this._methods[n]||(this._methods[n]=[]),-1===this._methods[n].indexOf(e)&&this._methods[n].push(e))}off(n,e){if(!n)return;n=n.toLowerCase();const i=this._methods[n];if(i)if(e){const r=i.indexOf(e);-1!==r&&(i.splice(r,1),0===i.length&&delete this._methods[n])}else delete this._methods[n]}onclose(n){n&&this._closedCallbacks.push(n)}onreconnecting(n){n&&this._reconnectingCallbacks.push(n)}onreconnected(n){n&&this._reconnectedCallbacks.push(n)}_processIncomingData(n){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(n=this._processHandshakeResponse(n),this._receivedHandshakeResponse=!0),n){const e=this._protocol.parseMessages(n,this._logger);for(const i of e)switch(i.type){case ha.Invocation:this._invokeClientMethod(i);break;case ha.StreamItem:case ha.Completion:{const r=this._callbacks[i.invocationId];if(r){i.type===ha.Completion&&delete this._callbacks[i.invocationId];try{r(i)}catch(o){this._logger.log(An.Error,`Stream callback threw error: ${Yue(o)}`)}}break}case ha.Ping:break;case ha.Close:{this._logger.log(An.Information,"Close message received from server.");const r=i.error?new Error("Server returned an error on close: "+i.error):void 0;!0===i.allowReconnect?this.connection.stop(r):this._stopPromise=this._stopInternal(r);break}default:this._logger.log(An.Warning,`Invalid message type: ${i.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(n){let e,i;try{[i,e]=this._handshakeProtocol.parseHandshakeResponse(n)}catch(r){const o="Error parsing handshake response: "+r;this._logger.log(An.Error,o);const a=new Error(o);throw this._handshakeRejecter(a),a}if(e.error){const r="Server returned handshake error: "+e.error;this._logger.log(An.Error,r);const o=new Error(r);throw this._handshakeRejecter(o),o}return this._logger.log(An.Debug,"Server handshake complete."),this._handshakeResolver(),i}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var n=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let e=this._nextKeepAlive-(new Date).getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(Rt(function*(){if(n._connectionState===Na.Connected)try{yield n._sendMessage(n._cachedPingMessage)}catch{n._cleanupPingTimer()}}),e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(n){var e=this;return Rt(function*(){const i=n.target.toLowerCase(),r=e._methods[i];if(!r)return e._logger.log(An.Warning,`No client method with the name '${i}' found.`),void(n.invocationId&&(e._logger.log(An.Warning,`No result given for '${i}' method and invocation ID '${n.invocationId}'.`),yield e._sendWithProtocol(e._createCompletionMessage(n.invocationId,"Client didn't provide a result.",null))));const o=r.slice(),a=!!n.invocationId;let s,l,u;for(const f of o)try{const S=s;s=yield f.apply(e,n.arguments),a&&s&&S&&(e._logger.log(An.Error,`Multiple results provided for '${i}'. Sending error to server.`),u=e._createCompletionMessage(n.invocationId,"Client provided multiple results.",null)),l=void 0}catch(S){l=S,e._logger.log(An.Error,`A callback for the method '${i}' threw error '${S}'.`)}u?yield e._sendWithProtocol(u):a?(l?u=e._createCompletionMessage(n.invocationId,`${l}`,null):void 0!==s?u=e._createCompletionMessage(n.invocationId,null,s):(e._logger.log(An.Warning,`No result given for '${i}' method and invocation ID '${n.invocationId}'.`),u=e._createCompletionMessage(n.invocationId,"Client didn't provide a result.",null)),yield e._sendWithProtocol(u)):s&&e._logger.log(An.Error,`Result given for '${i}' method but server is not expecting a result.`)})()}_connectionClosed(n){this._logger.log(An.Debug,`HubConnection.connectionClosed(${n}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||n||new sp("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(n||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Na.Disconnecting?this._completeClose(n):this._connectionState===Na.Connected&&this._reconnectPolicy?this._reconnect(n):this._connectionState===Na.Connected&&this._completeClose(n)}_completeClose(n){if(this._connectionStarted){this._connectionState=Na.Disconnected,this._connectionStarted=!1,kl.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(e=>e.apply(this,[n]))}catch(e){this._logger.log(An.Error,`An onclose callback called with error '${n}' threw error '${e}'.`)}}}_reconnect(n){var e=this;return Rt(function*(){const i=Date.now();let r=0,o=void 0!==n?n:new Error("Attempting to reconnect due to a unknown error."),a=e._getNextRetryDelay(r++,0,o);if(null===a)return e._logger.log(An.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void e._completeClose(n);if(e._connectionState=Na.Reconnecting,e._logger.log(An.Information,n?`Connection reconnecting because of error '${n}'.`:"Connection reconnecting."),0!==e._reconnectingCallbacks.length){try{e._reconnectingCallbacks.forEach(s=>s.apply(e,[n]))}catch(s){e._logger.log(An.Error,`An onreconnecting callback called with error '${n}' threw error '${s}'.`)}if(e._connectionState!==Na.Reconnecting)return void e._logger.log(An.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==a;){if(e._logger.log(An.Information,`Reconnect attempt number ${r} will start in ${a} ms.`),yield new Promise(s=>{e._reconnectDelayHandle=setTimeout(s,a)}),e._reconnectDelayHandle=void 0,e._connectionState!==Na.Reconnecting)return void e._logger.log(An.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield e._startInternal(),e._connectionState=Na.Connected,e._logger.log(An.Information,"HubConnection reconnected successfully."),0!==e._reconnectedCallbacks.length)try{e._reconnectedCallbacks.forEach(s=>s.apply(e,[e.connection.connectionId]))}catch(s){e._logger.log(An.Error,`An onreconnected callback called with connectionId '${e.connection.connectionId}; threw error '${s}'.`)}return}catch(s){if(e._logger.log(An.Information,`Reconnect attempt failed because of error '${s}'.`),e._connectionState!==Na.Reconnecting)return e._logger.log(An.Debug,`Connection moved to the '${e._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(e._connectionState===Na.Disconnecting&&e._completeClose());o=s instanceof Error?s:new Error(s.toString()),a=e._getNextRetryDelay(r++,Date.now()-i,o)}}e._logger.log(An.Information,`Reconnect retries have been exhausted after ${Date.now()-i} ms and ${r} failed attempts. Connection disconnecting.`),e._completeClose()})()}_getNextRetryDelay(n,e,i){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:e,previousRetryCount:n,retryReason:i})}catch(r){return this._logger.log(An.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${n}, ${e}) threw error '${r}'.`),null}}_cancelCallbacksWithError(n){const e=this._callbacks;this._callbacks={},Object.keys(e).forEach(i=>{const r=e[i];try{r(null,n)}catch(o){this._logger.log(An.Error,`Stream 'error' callback called with '${n}' threw error: ${Yue(o)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(n,e,i,r){if(i)return 0!==r.length?{arguments:e,streamIds:r,target:n,type:ha.Invocation}:{arguments:e,target:n,type:ha.Invocation};{const o=this._invocationId;return this._invocationId++,0!==r.length?{arguments:e,invocationId:o.toString(),streamIds:r,target:n,type:ha.Invocation}:{arguments:e,invocationId:o.toString(),target:n,type:ha.Invocation}}}_launchStreams(n,e){if(0!==n.length){e||(e=Promise.resolve());for(const i in n)n[i].subscribe({complete:()=>{e=e.then(()=>this._sendWithProtocol(this._createCompletionMessage(i)))},error:r=>{let o;o=r instanceof Error?r.message:r&&r.toString?r.toString():"Unknown error",e=e.then(()=>this._sendWithProtocol(this._createCompletionMessage(i,o)))},next:r=>{e=e.then(()=>this._sendWithProtocol(this._createStreamItemMessage(i,r)))}})}}_replaceStreamingParams(n){const e=[],i=[];for(let r=0;r<n.length;r++){const o=n[r];if(this._isObservable(o)){const a=this._invocationId;this._invocationId++,e[a]=o,i.push(a.toString()),n.splice(r,1)}}return[e,i]}_isObservable(n){return n&&n.subscribe&&"function"==typeof n.subscribe}_createStreamInvocation(n,e,i){const r=this._invocationId;return this._invocationId++,0!==i.length?{arguments:e,invocationId:r.toString(),streamIds:i,target:n,type:ha.StreamInvocation}:{arguments:e,invocationId:r.toString(),target:n,type:ha.StreamInvocation}}_createCancelInvocation(n){return{invocationId:n,type:ha.CancelInvocation}}_createStreamItemMessage(n,e){return{invocationId:n,item:e,type:ha.StreamItem}}_createCompletionMessage(n,e,i){return e?{error:e,invocationId:n,type:ha.Completion}:{invocationId:n,result:i,type:ha.Completion}}}class ott{constructor(){this.name="json",this.version=1,this.transferFormat=ou.Text}parseMessages(n,e){if("string"!=typeof n)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!n)return[];null===e&&(e=ZE.instance);const i=bc.parse(n),r=[];for(const o of i){const a=JSON.parse(o);if("number"!=typeof a.type)throw new Error("Invalid payload.");switch(a.type){case ha.Invocation:this._isInvocationMessage(a);break;case ha.StreamItem:this._isStreamItemMessage(a);break;case ha.Completion:this._isCompletionMessage(a);break;case ha.Ping:case ha.Close:break;default:e.log(An.Information,"Unknown message type '"+a.type+"' ignored.");continue}r.push(a)}return r}writeMessage(n){return bc.write(JSON.stringify(n))}_isInvocationMessage(n){this._assertNotEmptyString(n.target,"Invalid payload for Invocation message."),void 0!==n.invocationId&&this._assertNotEmptyString(n.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(n){if(this._assertNotEmptyString(n.invocationId,"Invalid payload for StreamItem message."),void 0===n.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(n){if(n.result&&n.error)throw new Error("Invalid payload for Completion message.");!n.result&&n.error&&this._assertNotEmptyString(n.error,"Invalid payload for Completion message."),this._assertNotEmptyString(n.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(n,e){if("string"!=typeof n||""===n)throw new Error(e)}}const att={trace:An.Trace,debug:An.Debug,info:An.Information,information:An.Information,warn:An.Warning,warning:An.Warning,error:An.Error,critical:An.Critical,none:An.None};class Que{configureLogging(n){if(Il.isRequired(n,"logging"),function ltt(t){return void 0!==t.log}(n))this.logger=n;else if("string"==typeof n){const e=function stt(t){const n=att[t.toLowerCase()];if(typeof n<"u")return n;throw new Error(`Unknown log level: ${t}`)}(n);this.logger=new nP(e)}else this.logger=new nP(n);return this}withUrl(n,e){return Il.isRequired(n,"url"),Il.isNotEmpty(n,"url"),this.url=n,this.httpConnectionOptions="object"==typeof e?{...this.httpConnectionOptions,...e}:{...this.httpConnectionOptions,transport:e},this}withHubProtocol(n){return Il.isRequired(n,"protocol"),this.protocol=n,this}withAutomaticReconnect(n){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=n?Array.isArray(n)?new jue(n):n:new jue,this}build(){const n=this.httpConnectionOptions||{};if(void 0===n.logger&&(n.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const e=new Jet(this.url,n);return V7.create(e,this.logger||ZE.instance,this.protocol||new ott,this.reconnectPolicy)}}class Eu{constructor(n,e){this.scopeService=e,this.tokenData={token:"",expiresOn:new Date(1,1,1),fileTokens:null},this.sourceTimes=kF(5e3),this.isAuthenticatedSource=new le,this.isAuthenticated$=this.isAuthenticatedSource.asObservable(),this.fetchingTokenPromise=null,this.http=new iu(n),this.scope=this.scopeService}getToken(){var n=this;return Rt(function*(){return n.tokenData=yield n.getTokenData(),n.tokenData.token})()}getTokenData(){var n=this;return Rt(function*(){const e=new Date;return n.tokenData.token&&e.getTime()<n.tokenData.expiresOn.getTime()?n.tokenData:(n.fetchingTokenPromise||(n.fetchingTokenPromise=new Promise(function(){var i=Rt(function*(r){const o=yield n.http.get(n.scope.getMiniScope().apiEndpoint+"chatAuthentication/token").pipe().toPromise();o.expiresOn=new Date(o.expiresOn),n.tokenData=o,n.isAuthenticatedSource.next(n.tokenData),n.fetchingTokenPromise=null,r(n.tokenData)});return function(r){return i.apply(this,arguments)}}())),n.fetchingTokenPromise)})()}expireToken(n){var e=this;return Rt(function*(){e.tokenData.expiresOn=new Date(1,1,1),yield e.getToken()})()}}Eu.\u0275fac=function(n){return new(n||Eu)(qt(Nx),qt(bo))},Eu.\u0275prov=Hn({token:Eu,factory:Eu.\u0275fac,providedIn:"root"});class ud{constructor(n,e,i){this.scope=n,this.auth=e,this.http=i,this.SignalrHubUrl="http://localhost:5269/hub/chatHub",this.isConnected=!1,this.roomDeletedSource=new le,this.roomDeleted$=this.roomDeletedSource.asObservable(),this.roomCreatedSource=new le,this.roomCreated$=this.roomCreatedSource.asObservable(),this.isConnectedSource=new le,this.isConnected$=this.isConnectedSource.asObservable(),this.msgReceivedSource=new le,this.msgReceived$=this.msgReceivedSource.asObservable(),this.msgUpdatedSource=new le,this.msgUpdated$=this.msgUpdatedSource.asObservable(),this.msgDeletedSource=new le,this.msgDeleted$=this.msgDeletedSource.asObservable(),this._hubConnection=null,this.SignalrHubUrl=this.scope.getScope().globalSettings.configurations.chatServerConfig.baseUrl+"hub/chatHub",this._hubConnection=(new Que).withUrl(this.SignalrHubUrl,{accessTokenFactory:()=>this.auth.getToken()}).withAutomaticReconnect().build(),this._hubConnection.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(r=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onclose(r=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onreconnected(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}),this._hubConnection.onreconnecting(r=>{console.warn("apicodo is trying to reconnect to server. please wait or try again later")}),this._hubConnection.on("chatRoomRemoved",r=>{this.roomDeletedSource.next(r.payload)}),this._hubConnection.on("chatRoomCreated",r=>{(this.scope.getScope().currentChapter.slug===r.payload.chapterSlug||this.scope.getScope().network.slug===r.payload.networkSlug)&&this.http.get(this.scope.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+r.payload.id).toPromise().then(o=>{o&&(this._hubConnection?.send("addToGroup",r.payload.id),this.auth.expireToken(this).then(a=>{this.roomCreatedSource.next(r.payload)}))})}),this._hubConnection.on("newMessageSent",r=>{this.msgReceivedSource.next(r.payload)}),this._hubConnection.on("chatMessageUpdated",r=>{this.msgUpdatedSource.next(r.payload)}),this._hubConnection.on("chatMessageDeleted",r=>{this.msgDeletedSource.next(r.payload)})}addToChatroom(n){this.isConnected&&this._hubConnection?.send("addToGroup",n)}reconnect(){this.isConnected=!1,this.isConnectedSource.next(!1),this._hubConnection?.stop().then(()=>{this._hubConnection?.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(n=>{this.isConnected=!1,this.isConnectedSource.next(!1)})})}}ud.\u0275fac=function(n){return new(n||ud)(qt(bo),qt(Eu),qt(iu))},ud.\u0275prov=Hn({token:ud,factory:ud.\u0275fac,providedIn:"root"});class H0{constructor(n,e){this.http=n,this.scopeService=e,this.scope=e.getScope()}saveSettings(n){return this.http.post(this.scopeService.getScope().apiEndpoint+"globalUserSettings/chapter/chat",n).toPromise()}getSettings(){return this.http.get(this.scopeService.getScope().apiEndpoint+"globalUserSettings/chapter/chat").toPromise()}}H0.\u0275fac=function(n){return new(n||H0)(qt(iu),qt(bo))},H0.\u0275prov=Hn({token:H0,factory:H0.\u0275fac});class Qf{constructor(n,e){this.scope=n,this.auth=e,this._hubConnection=null,this.SignalrHubUrl="http://localhost:5269/hub/notificationHub",this.isConnected=!1,this.sourceTimes=kF(5e3),this.isConnectedSource=new le,this.isConnected$=this.isConnectedSource.asObservable(),this.lastTime=(new Date).getTime(),this.acceptableDelta=2500,this.isSuspended=!1,this.isResumedSource=new le,this.isResumed$=this.isResumedSource.asObservable(),this.SignalrHubUrl=this.scope.getScope().globalSettings.configurations.chatServerConfig.baseUrl+"hub/notificationHub",this._hubConnection=(new Que).withUrl(this.SignalrHubUrl,{accessTokenFactory:()=>this.auth.getToken()}).withAutomaticReconnect().build(),this._hubConnection.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(i=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onclose(i=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onreconnected(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}),this.subs=this.sourceTimes.subscribe(i=>{if(this.isConnected)try{this._hubConnection?.send("ping")}catch{this._hubConnection?.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)})}const r=(new Date).getTime();r-this.lastTime>7500?(this.isSuspended=!0,setTimeout(()=>{this.isResumedSource.next(!0)},0)):this.isSuspended=!1,this.lastTime=r})}}Qf.\u0275fac=function(n){return new(n||Qf)(qt(bo),qt(Eu))},Qf.\u0275prov=Hn({token:Qf,factory:Qf.\u0275fac,providedIn:"root"});class ag{constructor(n,e,i,r,o,a,s){this.chatRelayService=n,this.globalService=e,this.keepAliveService=i,this.router=r,this.authenticationService=o,this.http=a,this.scope=s,this.routeActive=!1,this.badge=0,this.sourceTimes=kF(500),this.roomBadges={},this.connected=!1,this.activeRoomId="",this.badgesSource=new le,this.badgeUpdates$=this.badgesSource.asObservable(),this.isResumedSource=new le,this.isResumed$=this.isResumedSource.asObservable(),this.subscriptions=[],this.userSettings={notificationsDisabled:!1,readStatusDisabled:!1},this.tokenReceived=!1,this.subscriptions.push(this.keepAliveService.isResumed$.subscribe(l=>{this.isResumedSource.next(l),l&&this.loadBadges().then(u=>{this.badge=u.totalCount,this.roomBadges=u.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})}),this.subs=this.sourceTimes.subscribe(l=>{this.routeActive=!!window.location.href.endsWith(this.activeRoomId)})),this.globalService.getSettings().then(l=>{this.userSettings=l,this.subscriptions.push(this.chatRelayService.roomCreated$.subscribe(u=>{}),this.chatRelayService.msgReceived$.subscribe(u=>this.onMessageReceived(u)),this.chatRelayService.isConnected$.subscribe(u=>{this.connected=u}))}),this.authenticationService.isAuthenticated$.subscribe(l=>{this.tokenReceived=!0,this.isResumedSource.next(!0),this.loadBadges().then(u=>{this.badge=u.totalCount,this.roomBadges=u.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})})}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}onMessageReceived(n){if(!this.userSettings?.notificationsDisabled){if(!this.roomBadges[n.roomId])return void this.loadBadges().then(e=>{this.badge=e.totalCount,this.roomBadges=e.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})});if(n.fromChatMemberId!==this.roomBadges[n.roomId].myMembershipId.toString()){if(n.roomId===this.activeRoomId&&this.routeActive)return this.roomBadges[n.roomId].active=!0,void this.updateLastVisit(this.roomBadges[n.roomId].myMembershipId).then(e=>{});this.roomBadges[n.roomId].count=this.roomBadges[n.roomId].count+1,this.roomBadges[n.roomId].active=!1,this.badge++,this.routeActive||(this.activeRoomId=""),this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})}}}loadBadges(){return this.http.get(this.scope.getScope().apiEndpoint+"chatMembers/GetInitialBadgeCount").toPromise()}updateLastVisit(n){const e=this.http.post(this.scope.getScope().apiEndpoint+"chatMembers("+n+")/UpdateLastVisit",null).toPromise();return e.then(i=>this.loadBadges().then(r=>{this.badge=r.totalCount,this.roomBadges=r.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})),e}setActiveRoom(n){this.activeRoomId=n}}function utt(t,n){if(1&t&&(Ot(0,"span",3),xi(1),Pt()),2&t){const e=yt();pt(1),Ix("",e.badge,"",e.connected?"":" \u26a0","")}}ag.\u0275fac=function(n){return new(n||ag)(qt(ud),qt(H0),qt(Qf),qt(ds),qt(Eu),qt(iu),qt(bo))},ag.\u0275prov=Hn({token:ag,factory:ag.\u0275fac,providedIn:"root"});const dtt=function(t){return{"root-navigation-btn-active":t}};class QE{constructor(n,e,i,r){this.router=e,this.chatRelayService=i,this.badgeService=r,this.routeActive=!1,this.badge=null,this.currentLocation=null,this.sourceTimes=kF(500),this.connected=!1,this.subscriptions=[],this.scope=n.getScope(),this.currentLocation=window.location.href,this.subs=this.sourceTimes.subscribe(o=>{this.routeActive=!!window.location.href.includes("/chat")}),this.subscriptions.push(this.badgeService.badgeUpdates$.subscribe(o=>{this.badge=o.totalCount}),this.chatRelayService.isConnected$.subscribe(o=>{this.connected=o}))}ngOnInit(){this.badge=this.badgeService.badge}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}openChat(){this.router.navigate(["/chat"]),this.routeActive=!0}}QE.\u0275fac=function(n){return new(n||QE)($(bo),$(ds),$(ud),$(ag))},QE.\u0275cmp=je({type:QE,selectors:[["app-chat-bubble"]],decls:3,vars:5,consts:[[1,"root-navigation-btn","visible-isRegistered",3,"ngClass","click"],[3,"innerHtml"],["class","badge root-navigation-btn-notificationBadge",4,"ngIf"],[1,"badge","root-navigation-btn-notificationBadge"]],template:function(n,e){1&n&&(Ot(0,"div",0),fn("click",function(){return e.openChat()}),li(1,"span",1),cn(2,utt,2,2,"span",2),Pt()),2&n&&(Tt("ngClass",T0(3,dtt,e.routeActive)),pt(1),Tt("innerHtml",e.scope.network.getResourceOrKeyName("web_root_root_chat"),qp),pt(1),Tt("ngIf",0!=e.badge))},dependencies:[AH,Tl]});var ctt={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},Fa=function(t){var n=Object.prototype.toString.call(t);return"object"==typeof t?ctt[n]||"object":typeof t},Dy=function(t){return"boolean"==typeof t},Jx=function(t){return di(t)&&-1!==t.toString().indexOf("e")},Sa=function(t){return"date"===Fa(t)},Z=function(t){return null!=t},Yt=function(t){return"function"==typeof t},Pn=function(t){return"string"==typeof t},di=function(t){return"number"==typeof t&&isFinite(t)||!isNaN(t-parseFloat(t))},Jn=function(t){return"object"===Fa(t)},pa=function(t){var n;for(n in t)return!1;return!0},wi=function(t){if(!t||"[object Object]"!==Object.prototype.toString.call(t))return!1;var n=Object.getPrototypeOf(t),e=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof e&&Object.toString.call(e)===Object.toString.call(Object)},eO=function(t){return-1===["object","array","function"].indexOf(Fa(t))},Da=function(t){return null!=t&&t===t.window},xc=function(t){return!(!t||!t.jquery&&!t.dxRenderer)},dh=function(t){return!!t&&Yt(t.then)},tO=function(t){return!!t&&Yt(t.done)&&Yt(t.fail)},rP=function(t,n,e){for(var i in t=t||{},n)Object.prototype.hasOwnProperty.call(n,i)&&(!(i in t)||e)&&(t[i]=n[i]);return t},se=function t(n){var e=1,i=!1;for("boolean"==typeof(n=n||{})&&(i=n,n=arguments[1]||{},e++);e<arguments.length;e++){var r=arguments[e];if(null!=r)for(var o in r){var a=n[o],s=r[o],l=!1,u=void 0;"__proto__"===o||"constructor"===o||n===s||(i&&s&&(wi(s)||(l=Array.isArray(s)))?(u=l?a&&Array.isArray(a)?a:[]:a&&wi(a)?a:{},n[o]=t(i,u,s)):void 0!==s&&(n[o]=s))}}return n},Dr=(t,n)=>{if(Array.isArray(t))return t.map(n);var e=[];for(var i in t)e.push(n(t[i],i));return e},we=(t,n)=>{if(t){if("length"in t)for(var e=0;e<t.length&&!1!==n.call(t[e],e,t[e]);e++);else for(var i in t)if(!1===n.call(t[i],i,t[i]))break;return t}},ede=(t,n)=>{if(t&&"length"in t&&0!==t.length)for(var e=t.length-1;e>=0&&!1!==n.call(t[e],e,t[e]);e--);},ptt=function(){},H7=function(t){return typeof console>"u"||!Yt(console[t])?ptt:console[t].bind(console)},Ey={info:H7("info"),warn:H7("warn"),error:H7("error")},z7=function(){var t=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(n){return String(n).replace(t[0],"&amp;").replace(t[1],"&quot;").replace(t[2],"&#39;").replace(t[3],"&lt;").replace(t[4],"&gt;")}}();function Er(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),i=1;i<n;i++)e[i-1]=arguments[i];return Yt(t)?t(...e):(e.forEach((r,o)=>{Pn(r)&&(r=r.replace(/\$/g,"$$$$"));var a=new RegExp("\\{"+o+"\\}","gm");t=t.replace(a,r)}),t)}var oP=function(){var t=/\s/g;return function(n){return!n||!n.replace(t,"")}}(),U7="22.2.4",mtt="http://js.devexpress.com/error/"+U7.split(".").slice(0,2).join("_")+"/";function aP(t,n){var e={ERROR_MESSAGES:se(n,t),Error:function(){return a([].slice.call(arguments))},log:function(l){var u="log";/^E\d+$/.test(l)?u="error":/^W\d+$/.test(l)&&(u="warn"),Ey[u]("log"===u?l:i([].slice.call(arguments)))}};function i(l){var u=l[0];return o(u,r(u,l=l.slice(1)))}function r(l,u){return u=[e.ERROR_MESSAGES[l]].concat(u),Er.apply(this,u).replace(/\.*\s*?$/,"")}function o(l,u){return Er.apply(this,["{0} - {1}. See:\n{2}",l,u,s(l)])}function a(l){var u=l[0],f=r(u,l=l.slice(1)),S=s(u),T=o(u,f);return se(new Error(T),{__id:u,__details:f,url:S})}function s(l){return mtt+l}return e}const Wr=aP({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' parameter of the 'onCustomItemCreating' function is empty or contains invalid data. Assign a custom object or a Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v{2}. {3}.',W0017:'Setting the "{0}" property with a function is deprecated since v21.2',W0018:'Setting the "position" property with a function is deprecated since v21.2'});var _tt=function(t,n,e){return function(){var i=this.callBase;this.callBase=t[n];try{return e.apply(this,arguments)}finally{this.callBase=i}}},ytt=function(t){var e,i;if(!t)return this;for(e in t)i=t[e],this.prototype[e]="function"==typeof this.prototype[e]&&"function"==typeof i?_tt(this.parent.prototype,e,i):i;return this},Ctt=function(){var n,e,i,t=this,r=Object.prototype.hasOwnProperty.bind(t),o=!r("_includedCtors")&&!r("_includedPostCtors");for(o&&(t._includedCtors=t._includedCtors.slice(0),t._includedPostCtors=t._includedPostCtors.slice(0)),i=0;i<arguments.length;i++)for(e in(n=arguments[i]).ctor&&t._includedCtors.push(n.ctor),n.postCtor&&t._includedPostCtors.push(n.postCtor),n)"ctor"===e||"postCtor"===e||"default"===e||(t.prototype[e]=n[e]);return t},btt=function(t){if(!Object.prototype.hasOwnProperty.bind(this)("parent")&&this.parent){var i=Object.getPrototypeOf(this);return i===t||i.subclassOf(t)}return this.parent===t||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(t)},tde=function(){throw Wr.Error("E0001")},xtt=function(){var t=Object.prototype.hasOwnProperty;return function(n,e){for(var i in n){if(!t.call(n,i))return;e[i]=n[i]}}}(),W7=function(){};W7.inherit=function(t){var n=function(){if(!this||Da(this)||"function"!=typeof this.constructor)throw Wr.Error("E0003");var a,e=this,i=e.ctor,r=e.constructor._includedCtors,o=e.constructor._includedPostCtors;for(a=0;a<r.length;a++)r[a].call(e);for(i&&i.apply(e,arguments),a=0;a<o.length;a++)o[a].call(e)};return n.prototype=function(t){var n=function(){};return n.prototype=t.prototype,new n}(this),xtt(this,n),n.inherit=this.inherit,n.abstract=tde,n.redefine=ytt,n.include=Ctt,n.subclassOf=btt,n.parent=this,n._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],n._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],n.prototype.constructor=n,n.redefine(t),n},W7.abstract=tde;const ji=W7;function ch(t){var n=ji.inherit(t),e=n,i=new e(t),r={},o=function(a,s){we(a,function(l){Yt(i[l])?(s||!t[l])&&(t[l]=function(){return i[l].apply(t,arguments)}):(s&&(r[l]=t[l]),t[l]=i[l])})};return o(t,!0),t.inject=function(a){e=e.inherit(a),i=new e,o(a)},t.resetInjection=function(){se(t,r),e=n,i=new n},t}const wtt={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MV":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","hi-Latn":"en-IN","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"},Dtt=(t,n)=>{var e=t[n];return e?"root"!==e&&e:n.substr(0,n.lastIndexOf("-"))},Ou=ch({locale:(()=>{var t="en";return n=>{if(!n)return t;t=n}})(),getValueByClosestLocale:function(t){for(var i,n=this.locale(),e=t(n);!e&&!i;)(n=Dtt(wtt,n))?e=t(n):i=!0;return void 0===e&&"en"!==n?t("en"):e}});var nde=function(t){return null==t?"":String(t)},j7=function(t){return nde(t).charAt(0).toUpperCase()+t.substr(1)},K7=function(t){return nde(t).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},sP=function(t){return Dr(K7(t),function(n){return n.toLowerCase()}).join("-")},dd=function(t,n){return Dr(K7(t),function(e,i){return e=e.toLowerCase(),(n||i>0)&&(e=j7(e)),e}).join("")},hh=function(t){return Dr(K7(t),function(n){return j7(n.toLowerCase())}).join(" ")},Ott=["0","1","2","3","4","5","6","7","8","9"],Oy=function(t){var e,i,n=[],r=!1,o=!1;for(e=0;e<t.length;e++)o=(i=t.charAt(e))===i.toUpperCase()&&"-"!==i&&")"!==i&&"/"!==i||i in Ott,"_"===i||"."===i?(i=" ",o=!0):0===e?(i=i.toUpperCase(),o=!0):!r&&o&&n.length>0&&n.push(" "),n.push(i),r=o;return n.join("")},Itt=se(!0,{},{en:{Yes:"Yes",No:"No",Cancel:"Cancel",Close:"Close",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select a file","dxFileUploader-dropFile":"or Drop a file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadAbortedMessage":"Upload cancelled","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows to {0}","dxDataGrid-exportAll":"Export all data to {0}","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column '{0}'","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaAdaptiveCollapse":"Hide additional data","dxDataGrid-ariaAdaptiveExpand":"Display additional data","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in the data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-ariaToolbar":"Data grid toolbar","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-ariaSearchInGrid":"Search in the tree list","dxTreeList-ariaToolbar":"Tree list toolbar","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPager-pageSize":"Items per page: {0}","dxPager-pageSizesAllText":"All","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-dialogInsertTableRowsField":"Rows","dxHtmlEditor-dialogInsertTableColumnsField":"Columns","dxHtmlEditor-dialogInsertTableCaption":"Insert Table","dxHtmlEditor-dialogUpdateImageCaption":"Update Image","dxHtmlEditor-dialogImageUpdateButton":"Update","dxHtmlEditor-dialogImageAddButton":"Add","dxHtmlEditor-dialogImageSpecifyUrl":"From the Web","dxHtmlEditor-dialogImageSelectFile":"From This Device","dxHtmlEditor-dialogImageKeepAspectRatio":"Keep Aspect Ratio","dxHtmlEditor-dialogImageEncodeToBase64":"Encode to Base64","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxHtmlEditor-background":"Background Color","dxHtmlEditor-bold":"Bold","dxHtmlEditor-color":"Font Color","dxHtmlEditor-font":"Font","dxHtmlEditor-italic":"Italic","dxHtmlEditor-link":"Add Link","dxHtmlEditor-image":"Add Image","dxHtmlEditor-size":"Size","dxHtmlEditor-strike":"Strikethrough","dxHtmlEditor-subscript":"Subscript","dxHtmlEditor-superscript":"Superscript","dxHtmlEditor-underline":"Underline","dxHtmlEditor-blockquote":"Blockquote","dxHtmlEditor-header":"Header","dxHtmlEditor-increaseIndent":"Increase Indent","dxHtmlEditor-decreaseIndent":"Decrease Indent","dxHtmlEditor-orderedList":"Ordered List","dxHtmlEditor-bulletList":"Bullet List","dxHtmlEditor-alignLeft":"Align Left","dxHtmlEditor-alignCenter":"Align Center","dxHtmlEditor-alignRight":"Align Right","dxHtmlEditor-alignJustify":"Align Justify","dxHtmlEditor-codeBlock":"Code Block","dxHtmlEditor-variable":"Add Variable","dxHtmlEditor-undo":"Undo","dxHtmlEditor-redo":"Redo","dxHtmlEditor-clear":"Clear Formatting","dxHtmlEditor-insertTable":"Insert Table","dxHtmlEditor-insertHeaderRow":"Insert Header Row","dxHtmlEditor-insertRowAbove":"Insert Row Above","dxHtmlEditor-insertRowBelow":"Insert Row Below","dxHtmlEditor-insertColumnLeft":"Insert Column Left","dxHtmlEditor-insertColumnRight":"Insert Column Right","dxHtmlEditor-deleteColumn":"Delete Column","dxHtmlEditor-deleteRow":"Delete Row","dxHtmlEditor-deleteTable":"Delete Table","dxHtmlEditor-cellProperties":"Cell Properties","dxHtmlEditor-tableProperties":"Table Properties","dxHtmlEditor-insert":"Insert","dxHtmlEditor-delete":"Delete","dxHtmlEditor-border":"Border","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Width","dxHtmlEditor-height":"Height","dxHtmlEditor-borderColor":"Color","dxHtmlEditor-tableBackground":"Background","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignment","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Vertical Padding","dxHtmlEditor-paddingHorizontal":"Horizontal Padding","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"List","dxHtmlEditor-ordered":"Ordered","dxHtmlEditor-bullet":"Bullet","dxHtmlEditor-align":"Align","dxHtmlEditor-center":"Center","dxHtmlEditor-left":"Left","dxHtmlEditor-right":"Right","dxHtmlEditor-indent":"Indent","dxHtmlEditor-justify":"Justify","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-editingDownloadSingleItemErrorMessage":"Item was not downloaded","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} items were not downloaded","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop a file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resources: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. How would you like to proceed?","dxGantt-dialogDeleteDependenciesMessage":"Delete the dependency relations","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Move the task and keep the dependencies","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Sort Ascending","dxGantt-sortingDescendingText":"Sort Descending","dxGantt-sortingClearText":"Clear Sorting","dxGantt-showResources":"Show Resources","dxGantt-showDependencies":"Show Dependencies","dxGantt-dialogStartDateValidation":"Start date must be after {0}","dxGantt-dialogEndDateValidation":"End date must be after {0}"}}),$7={},Mtt=ch({engine:function(){return"base"},_dictionary:Itt,load:function(t){se(!0,this._dictionary,t)},_localizablePrefix:"@",setup:function(t){this._localizablePrefix=t},localizeString:function(t){var n=this,e=new RegExp("(^|[^a-zA-Z_0-9"+n._localizablePrefix+"-]+)("+n._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),i=n._localizablePrefix+n._localizablePrefix;return t.replace(e,(r,o,a,s)=>{var u,l=n._localizablePrefix+s;return a!==i&&(u=n.format(s)),u||($7[s]=function(t){return j7(sP(t).replace(/-/g," "))}(s)),o+(u||l)})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(t){return t?$7:se({},$7,this.getMessagesByLocales()[Ou.locale()])},getFormatter:function(t){return this._getFormatterBase(t)||this._getFormatterBase(t,"en")},_getFormatterBase:function(t,n){var e=Ou.getValueByClosestLocale(i=>((t,n)=>this._dictionary[n]||{})(0,i)[t]);if(e)return function(){var i=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return i.unshift(e),Er.apply(this,i)}},format:function(t){var n=this.getFormatter(t),e=Array.prototype.slice.call(arguments,1);return n&&n.apply(this,e)||""}});const ye=Mtt;var ide={rtlEnabled:!1,defaultCurrency:"USD",defaultUseCurrencyAccountingStyle:!0,oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",label:"",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,shading:!1,direction:"auto"},optionsParser:t=>{"{"!==t.trim().charAt(0)&&(t="{"+t+"}");try{return new Function("return "+t)()}catch(n){throw Wr.Error("E3018",n,t)}}},Att=["decimalSeparator","thousandsSeparator"],rde=function(){if(!arguments.length)return ide;var t=arguments.length<=0?void 0:arguments[0];Att.forEach(n=>{if(t[n]){var e="Now, the ".concat(n," is selected based on the specified locale.");Wr.log("W0003","config",n,"19.2",e)}}),se(ide,t)};typeof DevExpress<"u"&&DevExpress.config&&rde(DevExpress.config);const no=rde;var Ftt=ji.inherit({ctor:function(t){t&&(t=String(t)),this._value=this._normalize(t||this._generate())},_normalize:function(t){for(t=t.replace(/[^a-f0-9]/gi,"").toLowerCase();t.length<32;)t+="0";return[t.substr(0,8),t.substr(8,4),t.substr(12,4),t.substr(16,4),t.substr(20,12)].join("-")},_generate:function(){for(var t="",n=0;n<32;n++)t+=Math.round(15*Math.random()).toString(16);return t},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});const Ni=Ftt;var em=function(t){this._options=t||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};em.prototype._fireCore=function(t,n){var e=this._firingIndexes,i=this._list,r=this._options.stopOnFalse,o=e.length;for(e[o]=0;e[o]<i.length&&(!1!==i[e[o]].apply(t,n)||!r);e[o]++);e.pop()},em.prototype.add=function(t){return"function"==typeof t&&(!this._options.unique||!this.has(t))&&this._list.push(t),this},em.prototype.remove=function(t){var n=this._list,e=this._firingIndexes,i=n.indexOf(t);if(i>-1&&(n.splice(i,1),this._firing&&e.length))for(var r=0;r<e.length;r++)i<=e[r]&&e[r]--;return this},em.prototype.has=function(t){var n=this._list;return t?n.indexOf(t)>-1:!!n.length},em.prototype.empty=function(t){return this._list=[],this},em.prototype.fireWith=function(t,n){var e=this._queue;if(n=(n=n||[]).slice?n.slice():n,this._options.syncStrategy)this._firing=!0,this._fireCore(t,n);else{if(e.push([t,n]),this._firing)return;for(this._firing=!0;e.length;){var i=e.shift();this._fireCore(i[0],i[1])}}return this._firing=!1,this._fired=!0,this},em.prototype.fire=function(){this.fireWith(this,arguments)},em.prototype.fired=function(){return this._fired};const Zi=function(t){return new em(t)};var ode=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],Ty=function(){var t=this;this._state="pending",this._promise={},ode.forEach(function(n){var e=n.method;this[e+"Callbacks"]=Zi(),this[e]=function(){return this[e+"With"](this._promise,arguments)}.bind(this),this._promise[n.handler]=function(i){if(!i)return this;var r=t[e+"Callbacks"];return r.fired()?i.apply(t[e+"Context"],t[e+"Args"]):r.add(function(o,a){i.apply(o,a)}.bind(this)),this}}.bind(this)),this._promise.always=function(n){return this.done(n).fail(n)},this._promise.catch=function(n){return this.then(null,n)},this._promise.then=function(n,e){var i=new Ty;return["done","fail"].forEach(function(r){var o="done"===r?n:e;this[r](function(){if(o){var a=o&&o.apply(this,arguments);tO(a)?a.done(i.resolve).fail(i.reject):dh(a)?a.then(i.resolve,i.reject):i.resolve.apply(this,Z(a)?[a]:arguments)}else i["done"===r?"resolve":"reject"].apply(this,arguments)})}.bind(this)),i.promise()},this._promise.state=function(){return t._state},this._promise.promise=function(n){return n?se(n,t._promise):t._promise},this._promise.promise(this)};function ra(t,n){if(tO(t))return t;if(dh(t)){var e=new Ty;return t.then(function(){e.resolveWith.apply(e,[n].concat([[].slice.call(arguments)]))},function(){e.rejectWith.apply(e,[n].concat([[].slice.call(arguments)]))}),e}return(new Ty).resolveWith(n,[t])}ode.forEach(function(t){var n=t.method,e=t.state;Ty.prototype[n+"With"]=function(i,r){var o=this[n+"Callbacks"];return"pending"===this.state()&&(this[n+"Args"]=r,this[n+"Context"]=i,e&&(this._state=e),o.fire(i,r)),this}});var ade=function(){if(1===arguments.length)return ra(arguments[0]);for(var t=[].slice.call(arguments),n=[],e=0,i=new Ty,r=function(a){return function(s){n[a]=this,t[a]=arguments.length>1?[].slice.call(arguments):s,++e===t.length&&i.resolveWith(n,t)}},o=0;o<t.length;o++)tO(t[o])?t[o].promise().done(r(o)).fail(i.reject):e++;return e===t.length&&i.resolveWith(n,t),i.promise()};function et(){return new Ty}function Qt(){return ade.apply(this,arguments)}const Tu=ch({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(t){return t},unwrap:function(t){return t},assign:function(){Ey.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}});var sg=function(){function t(){}return function(n){return t.prototype=n,new t}}(),q7=function(t,n){var i,r,e=[];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.push(i);for(e.sort(function(o,a){var s=di(o),l=di(a);return s&&l?o-a:s&&!l?-1:!s&&l?1:o<a?-1:o>a?1:0}),r=0;r<e.length;r++)n(i=e[r],t[i])},Rtt=function(t,n,e,i){!i&&Tu.isWrapped(t[n])?Tu.assign(t[n],e):t[n]=e},cd=function t(n,e,i,r){var o,a;for(var s in e)o=n[s],a=e[s],"__proto__"!==s&&"constructor"!==s&&n!==a&&(wi(a)&&(a=t((i?Jn(o):wi(o))?o:{},a,i,r)),void 0!==a&&o!==a&&Rtt(n,s,a,r));return n},Ltt=Tu.unwrap,sde=Tu.isWrapped,Btt=Tu.assign,Iy=function(t){return function(t){return t.replace(/\[/g,".").replace(/\]/g,"")}(t).split(".")},lde=function(t,n,e,i){if("this"===n)throw new Wr.Error("E4016");var r=t[n];i.unwrapObservables&&sde(r)?Btt(r,e):t[n]=e},ude=function(t){return(t=t||{}).unwrapObservables=void 0===t.unwrapObservables||t.unwrapObservables,t};function nO(t,n){return n.unwrapObservables?Ltt(t):t}var Ai=function(t){if(arguments.length>1&&(t=[].slice.call(arguments)),!t||"this"===t)return function(e){return e};if("string"==typeof t){var n=Iy(t);return function(e,i){for(var r=(i=ude(i)).functionsAsIs,o=("defaultValue"in i),a=nO(e,i),s=0;s<n.length;s++){if(!a){if(null==a&&o)return i.defaultValue;break}var l=n[s];if(o&&Jn(a)&&!(l in a))return i.defaultValue;var u=nO(a[l],i);!r&&Yt(u)&&(u=u.call(a)),a=u}return a}}return Array.isArray(t)?Htt(t):Yt(t)?t:void 0};function Htt(t){for(var n={},e=0,i=t.length;e<i;e++){var r=t[e];n[r]=Ai(r)}return function(o,a){var s;return we(n,function(l){var u=this(o,a);if(void 0!==u){for(var f=s||(s={}),S=l.split("."),T=S.length-1,R=0;R<T;R++){var L=S[R];L in f||(f[L]={}),f=f[L]}f[S[T]]=u}}),s}}var Qx,dde=function(t,n,e,i){if(Z(e))return e;var r={};return lde(t,n,r,i),r},ph=function(t){var n=(t=Iy(t||"this")).length-1;return function(e,i,r){var o=nO(e,r=ude(r));t.forEach(function(a,s){var l=function(t,n,e){return nO("this"===n?t:t[n],e=e||{})}(o,a,r),u=!r.functionsAsIs&&Yt(l)&&!sde(l);s===n?r.merge&&wi(i)&&(!Z(l)||wi(l))?(l=dde(o,a,l,r),cd(l,i,!1,!0)):u?o[a](i):lde(o,a,i,r):(l=dde(o,a,l,r),u&&(l=l.call(o)),o=l)})}},ns=function(t,n){return t instanceof Date?t.getTime():t&&t instanceof ji&&t.valueOf?t.valueOf():n||"string"!=typeof t?t:t.toLowerCase()},gr=function(t,n){return Z(t)?t:n},ky=function(t,n){var e=new et,i=n||this,r={promise:e.promise(),abort:function(){clearTimeout(a),e.rejectWith(i)}},o=function(){var s=t.call(i);s&&s.done&&Yt(s.done)?s.done(function(){e.resolveWith(i)}):e.resolveWith(i)},a=(arguments[2]||setTimeout)(o,"number"==typeof n?n:0);return r},Y7=[],cde=[],iO=[],lP=function(t,n,e){if(Qx&&Qx!==t)return Y7.push(n),cde.push(t),e=e||new et,iO.push(e),e;var i=Qx,r=iO.length;Qx=t;var o=n();return o||(iO.length>r?o=Qt.apply(this,iO.slice(r)):e&&e.resolve()),Qx=i,e&&o&&o.done&&o.done(e.resolve).fail(e.reject),!Qx&&Y7.length&&("render"===cde.shift()?Zo:Ns)(Y7.shift(),iO.shift()),o||Qt()},Zo=function(t,n){return lP("render",t,n)},Ns=function(t,n){return lP("update",t,n)},ew=function(t){return function(){var n=this;return lP("render",function(){return t.call(n)})}},hde=function(t){return function(){var n=this;return lP("update",function(){return t.call(n)})}},pde=function(t,n,e){var i=[],r=0;return we(n,(o,a)=>{var s=0,l=e?e(a):a;we(t,(u,f)=>{var S=l[u];if(void 0!==S)return ztt(S,f)?void s++:(s=-1,!1)}),!(s<r)&&(s>r&&(i.length=0,r=s),i.push(a))}),i},ztt=function(t,n){if(Array.isArray(t)&&Array.isArray(n)){var e=!1;return we(t,(i,r)=>{if(r!==n[i])return e=!0,!1}),!e}return t===n},tw=function(t){var n,e;switch(Fa(t)){case"string":return t.split(/\s+/,2);case"object":return[null!==(n=t.x)&&void 0!==n?n:t.h,null!==(e=t.y)&&void 0!==e?e:t.v];case"number":return[t];case"array":return t;default:return null}},gde=function(t){var n=Pn(t)?t:t.toString(),e=n.match(/[^a-zA-Z0-9_]/g);return e&&we(e,(i,r)=>{n=n.replace(r,"__"+r.charCodeAt()+"__")}),n},Z7=function(t,n){var e=tw(t),i=n?parseFloat(e&&e[0]):parseInt(e&&e[0],10),r=n?parseFloat(e&&e[1]):parseInt(e&&e[1],10);return isFinite(i)||(i=0),isFinite(r)||(r=i),{h:i,v:r}},lg=function(t){if(t instanceof Ni)return t.toString();if(Jn(t)||Array.isArray(t))try{var n=JSON.stringify(t);return"{}"===n?t:n}catch{return t}return t},z0=function(t){return t.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},uP=function(t){var n=no().serverDecimalSeparator;return Z(t)&&(t=t.toString().replace(".",n)),t},Be=function(){},fde=function(){return(new et).resolve().promise()},Vs=function(t,n,e){for(var i=[],o=!e,a=0;a<t.length;a++)!!n(t[a],a)===o&&i.push(t[a]);return i},Utt=function(t,n,e){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!Tr(t[i],n[i],e+1))return!1;return!0},Wtt=function(t,n,e,i){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&!Tr(t[r],n[r],e+1,i))return!1;for(var o in n)if(!(o in t))return!1;return!0},Tr=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t=ns(t,!0),n=ns(n,!0);var r=i?t===n:t==n;return!!(r||e>=3)||(Jn(t)&&Jn(n)?Wtt(t,n,e,i):!(!Array.isArray(t)||!Array.isArray(n))&&Utt(t,n,e))},gh=function(t){return 0===t?0:t/Math.abs(t)},al=function(t,n,e){var i=!n&&0!==n,r=!e&&0!==e;return i&&(n=r?t:Math.min(t,e)),r&&(e=i?t:Math.max(t,n)),Math.min(Math.max(t,n),e)},tm=function(t,n,e){return t>=n&&t<=e};function rO(t){return Math.abs(parseInt(t.toExponential().split("e")[1]))}function mde(t,n){var e=function jtt(t){var n=t.toExponential().split("e"),e=parseFloat(n[0]);return{exponent:parseInt(n[1]),mantissa:e}}(t);return parseFloat("".concat(e.mantissa,"e").concat(e.exponent+n))}function Kr(t,n){var a,e=dP(n||0)+2,i=t.toString().split("."),r=t,o=Math.abs(t),s=Jx(t),l=o>1?10:0;return 1===i.length?t:(s||(Jx(n)&&(e=i[0].length+rO(n)),t=(t=o)-Math.floor(t)+l),e=function Ktt(){return"0.000300"!==3e-4.toPrecision(3)}()&&rO(t)>6||e>7?15:7,s||(a=parseFloat(t.toPrecision(e)).toString().split("."))[0]!==l.toString()?parseFloat(r.toPrecision(e)):parseFloat(i[0]+"."+a[1]))}function dP(t){var n=t.toString();if(n.indexOf(".")<0)return 0;var e=n.split("."),i=e[1].indexOf("e");return i>=0?i:e[1].length}function _de(t,n){if(t<0&&n%2!=1)return NaN;var e=Math.pow(Math.abs(t),1/n);return n%2==1&&t<0?-e:e}function vde(t){var n,e=t.toString();return(null===(n=e.split(".")[1])||void 0===n?void 0:n.length)||parseInt(e.split("e-")[1])||0}function cP(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(t.toFixed(n))}function Jtt(t,n){var e=Math.pow(10,n);return function Xtt(t){return gh(t)*Math.round(Math.abs(t))}(mde(t,n))/e}function yde(t,n){var e=n||0,i=e>0?Jtt(...arguments):t;return i.toFixed(e)}var Qtt={thousandsSeparator:",",decimalSeparator:"."};function X7(t){return t.toString().split("").reverse().join("")}function bde(t){return t.replace(/'.+'/g,"")}function xde(t){if(!t)return 0;var n=bde(t);return n.length-n.replace(/[#]/g,"").length}function wde(t){if(!t)return 0;var n=bde(t);return n.length-n.replace(/[0]/g,"").length}function Sde(t,n,e){if(!t)return"";for(t.length>e&&(t=t.substr(0,e));t.length>n&&"0"===t.slice(-1);)t=t.substr(0,t.length-1);for(;t.length<n;)t+="0";return t}function Dde(t,n){return t.split("'").map(function(e,i){var r=i%2;return!e&&r?"'":r?e:e.replace(/[,#0]+/,n)}).join("")}function oO(t,n,e){var i=(n?.01:1)*parseFloat(t)||0;return e?-i:i}function Ede(t,n,e,i){var o,a,s,r=t;do{s&&(o=a.length===s.length?"0":"1",t=i?o+t:t+o),a=s||n(oO(r,e)),s=n(oO(r=i?"1"+r:r+"1",e))}while(a!==s&&(i?a.length===s.length:a.length<=s.length));if(i&&s.length>a.length){var l=-1===n(12345).indexOf("12345");do{t="1"+t}while(l&&oO(t,e)<1e5)}return t}function Ode(t,n,e,i){var r=n(oO(t,e,i)),o=t.split("."),l=n(oO(o[0]+".3"+o[1].slice(1),e,i)).indexOf("3")-1;return r=r.replace(/(\d)\D(\d)/g,"$1,$2"),l>=0&&(r=r.slice(0,l)+"."+r.slice(l+1)),r=r.replace(/1+/,"1").replace(/1/g,"#"),e||(r=r.replace("%","'%'")),r}const unt={_formatNumberCore:function(t,n,e){if("currency"===n){e.precision=e.precision||0;var i=this.format(t,se({},e,{type:"fixedpoint"})),r=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return i.replace(/^(\D*)(\d.*)/,"$1"+r+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}},cnt={af:"\xa4#,##0.00;(\xa4#,##0.00)","af-NA":"\xa4#,##0.00;(\xa4#,##0.00)",agq:"#,##0.00\xa4",ak:"\xa4#,##0.00",am:"\xa4#,##0.00;(\xa4#,##0.00)",ar:"\xa4#,##0.00;(\xa4#,##0.00)","ar-AE":"\xa4#,##0.00;(\xa4#,##0.00)","ar-BH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DZ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EG":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-ER":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IL":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IQ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-JO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KW":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LB":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MR":"\xa4#,##0.00;(\xa4#,##0.00)","ar-OM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-PS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-QA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TN":"\xa4#,##0.00;(\xa4#,##0.00)","ar-YE":"\xa4#,##0.00;(\xa4#,##0.00)",as:"\xa4\xa0#,##,##0.00",asa:"#,##0.00\xa0\xa4",ast:"#,##0.00\xa0\xa4",az:"#,##0.00\xa0\xa4","az-Cyrl":"#,##0.00\xa0\xa4","az-Latn":"#,##0.00\xa0\xa4",bas:"#,##0.00\xa0\xa4",be:"#,##0.00\xa0\xa4","be-tarask":"#,##0.00\xa0\xa4",bem:"\xa4#,##0.00;(\xa4#,##0.00)",bez:"#,##0.00\xa4",bg:"0.00\xa0\xa4;(0.00\xa0\xa4)",bm:"\xa4#,##0.00;(\xa4#,##0.00)",bn:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","bn-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",bo:"\xa4\xa0#,##0.00","bo-IN":"\xa4\xa0#,##0.00",br:"#,##0.00\xa0\xa4",brx:"\xa4\xa0#,##,##0.00",bs:"#,##0.00\xa0\xa4","bs-Cyrl":"#,##0.00\xa0\xa4","bs-Latn":"#,##0.00\xa0\xa4",ca:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-AD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-ES-valencia":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-FR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-IT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ccp:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","ccp-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",ce:"#,##0.00\xa0\xa4",ceb:"\xa4#,##0.00;(\xa4#,##0.00)",cgg:"\xa4#,##0.00",chr:"\xa4#,##0.00;(\xa4#,##0.00)",ckb:"\xa4\xa0#,##0.00","ckb-IR":"\xa4\xa0#,##0.00",cs:"#,##0.00\xa0\xa4",cy:"\xa4#,##0.00;(\xa4#,##0.00)",da:"#,##0.00\xa0\xa4","da-GL":"#,##0.00\xa0\xa4",dav:"\xa4#,##0.00;(\xa4#,##0.00)",de:"#,##0.00\xa0\xa4","de-AT":"#,##0.00\xa0\xa4","de-BE":"#,##0.00\xa0\xa4","de-CH":"#,##0.00\xa0\xa4","de-IT":"#,##0.00\xa0\xa4","de-LI":"#,##0.00\xa0\xa4","de-LU":"#,##0.00\xa0\xa4",dje:"#,##0.00\xa4",doi:"\xa4#,##0.00",dsb:"#,##0.00\xa0\xa4",dua:"#,##0.00\xa0\xa4",dyo:"#,##0.00\xa0\xa4",dz:"\xa4#,##,##0.00",ebu:"\xa4#,##0.00;(\xa4#,##0.00)",ee:"\xa4#,##0.00;(\xa4#,##0.00)","ee-TG":"\xa4#,##0.00;(\xa4#,##0.00)",el:"#,##0.00\xa0\xa4","el-CY":"#,##0.00\xa0\xa4",en:"\xa4#,##0.00;(\xa4#,##0.00)","en-001":"\xa4#,##0.00;(\xa4#,##0.00)","en-150":"#,##0.00\xa0\xa4","en-AE":"\xa4#,##0.00;(\xa4#,##0.00)","en-AG":"\xa4#,##0.00;(\xa4#,##0.00)","en-AI":"\xa4#,##0.00;(\xa4#,##0.00)","en-AS":"\xa4#,##0.00;(\xa4#,##0.00)","en-AT":"\xa4\xa0#,##0.00","en-AU":"\xa4#,##0.00;(\xa4#,##0.00)","en-BB":"\xa4#,##0.00;(\xa4#,##0.00)","en-BE":"#,##0.00\xa0\xa4","en-BI":"\xa4#,##0.00;(\xa4#,##0.00)","en-BM":"\xa4#,##0.00;(\xa4#,##0.00)","en-BS":"\xa4#,##0.00;(\xa4#,##0.00)","en-BW":"\xa4#,##0.00;(\xa4#,##0.00)","en-BZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-CA":"\xa4#,##0.00;(\xa4#,##0.00)","en-CC":"\xa4#,##0.00;(\xa4#,##0.00)","en-CH":"\xa4\xa0#,##0.00;\xa4-#,##0.00","en-CK":"\xa4#,##0.00;(\xa4#,##0.00)","en-CM":"\xa4#,##0.00;(\xa4#,##0.00)","en-CX":"\xa4#,##0.00;(\xa4#,##0.00)","en-CY":"\xa4#,##0.00;(\xa4#,##0.00)","en-DE":"#,##0.00\xa0\xa4","en-DG":"\xa4#,##0.00;(\xa4#,##0.00)","en-DK":"#,##0.00\xa0\xa4","en-DM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ER":"\xa4#,##0.00;(\xa4#,##0.00)","en-FI":"#,##0.00\xa0\xa4","en-FJ":"\xa4#,##0.00;(\xa4#,##0.00)","en-FK":"\xa4#,##0.00;(\xa4#,##0.00)","en-FM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GB":"\xa4#,##0.00;(\xa4#,##0.00)","en-GD":"\xa4#,##0.00;(\xa4#,##0.00)","en-GG":"\xa4#,##0.00;(\xa4#,##0.00)","en-GH":"\xa4#,##0.00;(\xa4#,##0.00)","en-GI":"\xa4#,##0.00;(\xa4#,##0.00)","en-GM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GU":"\xa4#,##0.00;(\xa4#,##0.00)","en-GY":"\xa4#,##0.00;(\xa4#,##0.00)","en-HK":"\xa4#,##0.00;(\xa4#,##0.00)","en-IE":"\xa4#,##0.00;(\xa4#,##0.00)","en-IL":"\xa4#,##0.00;(\xa4#,##0.00)","en-IM":"\xa4#,##0.00;(\xa4#,##0.00)","en-IN":"\xa4#,##0.00;(\xa4#,##0.00)","en-IO":"\xa4#,##0.00;(\xa4#,##0.00)","en-JE":"\xa4#,##0.00;(\xa4#,##0.00)","en-JM":"\xa4#,##0.00;(\xa4#,##0.00)","en-KE":"\xa4#,##0.00;(\xa4#,##0.00)","en-KI":"\xa4#,##0.00;(\xa4#,##0.00)","en-KN":"\xa4#,##0.00;(\xa4#,##0.00)","en-KY":"\xa4#,##0.00;(\xa4#,##0.00)","en-LC":"\xa4#,##0.00;(\xa4#,##0.00)","en-LR":"\xa4#,##0.00;(\xa4#,##0.00)","en-LS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MG":"\xa4#,##0.00;(\xa4#,##0.00)","en-MH":"\xa4#,##0.00;(\xa4#,##0.00)","en-MO":"\xa4#,##0.00;(\xa4#,##0.00)","en-MP":"\xa4#,##0.00;(\xa4#,##0.00)","en-MS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MT":"\xa4#,##0.00;(\xa4#,##0.00)","en-MU":"\xa4#,##0.00;(\xa4#,##0.00)","en-MV":"\xa4\xa0#,##0.00","en-MW":"\xa4#,##0.00;(\xa4#,##0.00)","en-MY":"\xa4#,##0.00;(\xa4#,##0.00)","en-NA":"\xa4#,##0.00;(\xa4#,##0.00)","en-NF":"\xa4#,##0.00;(\xa4#,##0.00)","en-NG":"\xa4#,##0.00;(\xa4#,##0.00)","en-NL":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","en-NR":"\xa4#,##0.00;(\xa4#,##0.00)","en-NU":"\xa4#,##0.00;(\xa4#,##0.00)","en-NZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-PG":"\xa4#,##0.00;(\xa4#,##0.00)","en-PH":"\xa4#,##0.00;(\xa4#,##0.00)","en-PK":"\xa4#,##0.00;(\xa4#,##0.00)","en-PN":"\xa4#,##0.00;(\xa4#,##0.00)","en-PR":"\xa4#,##0.00;(\xa4#,##0.00)","en-PW":"\xa4#,##0.00;(\xa4#,##0.00)","en-RW":"\xa4#,##0.00;(\xa4#,##0.00)","en-SB":"\xa4#,##0.00;(\xa4#,##0.00)","en-SC":"\xa4#,##0.00;(\xa4#,##0.00)","en-SD":"\xa4#,##0.00;(\xa4#,##0.00)","en-SE":"#,##0.00\xa0\xa4","en-SG":"\xa4#,##0.00;(\xa4#,##0.00)","en-SH":"\xa4#,##0.00;(\xa4#,##0.00)","en-SI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","en-SL":"\xa4#,##0.00;(\xa4#,##0.00)","en-SS":"\xa4#,##0.00;(\xa4#,##0.00)","en-SX":"\xa4#,##0.00;(\xa4#,##0.00)","en-SZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-TC":"\xa4#,##0.00;(\xa4#,##0.00)","en-TK":"\xa4#,##0.00;(\xa4#,##0.00)","en-TO":"\xa4#,##0.00;(\xa4#,##0.00)","en-TT":"\xa4#,##0.00;(\xa4#,##0.00)","en-TV":"\xa4#,##0.00;(\xa4#,##0.00)","en-TZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-UG":"\xa4#,##0.00;(\xa4#,##0.00)","en-UM":"\xa4#,##0.00;(\xa4#,##0.00)","en-VC":"\xa4#,##0.00;(\xa4#,##0.00)","en-VG":"\xa4#,##0.00;(\xa4#,##0.00)","en-VI":"\xa4#,##0.00;(\xa4#,##0.00)","en-VU":"\xa4#,##0.00;(\xa4#,##0.00)","en-WS":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZA":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZW":"\xa4#,##0.00;(\xa4#,##0.00)",eo:"\xa4\xa0#,##0.00",es:"#,##0.00\xa0\xa4","es-419":"\xa4#,##0.00","es-AR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-BO":"\xa4#,##0.00","es-BR":"\xa4#,##0.00","es-BZ":"\xa4#,##0.00","es-CL":"\xa4#,##0.00","es-CO":"\xa4#,##0.00","es-CR":"\xa4#,##0.00","es-CU":"\xa4#,##0.00","es-DO":"\xa4#,##0.00;(\xa4#,##0.00)","es-EA":"#,##0.00\xa0\xa4","es-EC":"\xa4#,##0.00","es-GQ":"#,##0.00\xa0\xa4","es-GT":"\xa4#,##0.00","es-HN":"\xa4#,##0.00","es-IC":"#,##0.00\xa0\xa4","es-MX":"\xa4#,##0.00","es-NI":"\xa4#,##0.00","es-PA":"\xa4#,##0.00","es-PE":"\xa4#,##0.00","es-PH":"#,##0.00\xa0\xa4","es-PR":"\xa4#,##0.00","es-PY":"\xa4#,##0.00","es-SV":"\xa4#,##0.00","es-US":"\xa4#,##0.00","es-UY":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-VE":"\xa4#,##0.00",et:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",eu:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ewo:"#,##0.00\xa0\xa4",fa:"\u200e\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)","fa-AF":"\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)",ff:"#,##0.00\xa0\xa4","ff-Adlm":"\xa4\xa0#,##0.00","ff-Adlm-BF":"\xa4\xa0#,##0.00","ff-Adlm-CM":"\xa4\xa0#,##0.00","ff-Adlm-GH":"\xa4\xa0#,##0.00","ff-Adlm-GM":"\xa4\xa0#,##0.00","ff-Adlm-GW":"\xa4\xa0#,##0.00","ff-Adlm-LR":"\xa4\xa0#,##0.00","ff-Adlm-MR":"\xa4\xa0#,##0.00","ff-Adlm-NE":"\xa4\xa0#,##0.00","ff-Adlm-NG":"\xa4\xa0#,##0.00","ff-Adlm-SL":"\xa4\xa0#,##0.00","ff-Adlm-SN":"\xa4\xa0#,##0.00","ff-Latn":"#,##0.00\xa0\xa4","ff-Latn-BF":"#,##0.00\xa0\xa4","ff-Latn-CM":"#,##0.00\xa0\xa4","ff-Latn-GH":"#,##0.00\xa0\xa4","ff-Latn-GM":"#,##0.00\xa0\xa4","ff-Latn-GN":"#,##0.00\xa0\xa4","ff-Latn-GW":"#,##0.00\xa0\xa4","ff-Latn-LR":"#,##0.00\xa0\xa4","ff-Latn-MR":"#,##0.00\xa0\xa4","ff-Latn-NE":"#,##0.00\xa0\xa4","ff-Latn-NG":"#,##0.00\xa0\xa4","ff-Latn-SL":"#,##0.00\xa0\xa4",fi:"#,##0.00\xa0\xa4",fil:"\xa4#,##0.00;(\xa4#,##0.00)",fo:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fo-DK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GP":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-HT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-KM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-ML":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SY":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-VU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-WF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-YT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fur:"\xa4\xa0#,##0.00",fy:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",ga:"\xa4#,##0.00;(\xa4#,##0.00)","ga-GB":"\xa4#,##0.00;(\xa4#,##0.00)",gd:"\xa4#,##0.00;(\xa4#,##0.00)",gl:"#,##0.00\xa0\xa4",gsw:"#,##0.00\xa0\xa4","gsw-FR":"#,##0.00\xa0\xa4","gsw-LI":"#,##0.00\xa0\xa4",gu:"\xa4#,##,##0.00;(\xa4#,##,##0.00)",guz:"\xa4#,##0.00;(\xa4#,##0.00)",gv:"\xa4#,##0.00",ha:"\xa4\xa0#,##0.00","ha-GH":"\xa4\xa0#,##0.00","ha-NE":"\xa4\xa0#,##0.00",haw:"\xa4#,##0.00;(\xa4#,##0.00)",he:"#,##0.00\xa0\xa4",hi:"\xa4#,##,##0.00","hi-Latn":"\xa4#,##,##0.00",hr:"#,##0.00\xa0\xa4","hr-BA":"#,##0.00\xa0\xa4",hsb:"#,##0.00\xa0\xa4",hu:"#,##0.00\xa0\xa4",hy:"#,##0.00\xa0\xa4",ia:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",id:"\xa4#,##0.00",ig:"\xa4#,##0.00;(\xa4#,##0.00)",ii:"\xa4\xa0#,##0.00",is:"#,##0.00\xa0\xa4",it:"#,##0.00\xa0\xa4","it-CH":"#,##0.00\xa0\xa4","it-SM":"#,##0.00\xa0\xa4","it-VA":"#,##0.00\xa0\xa4",ja:"\xa4#,##0.00;(\xa4#,##0.00)",jgo:"\xa4\xa0#,##0.00",jmc:"\xa4#,##0.00",jv:"\xa4\xa0#,##0.00",ka:"#,##0.00\xa0\xa4",kab:"#,##0.00\xa4",kam:"\xa4#,##0.00;(\xa4#,##0.00)",kde:"\xa4#,##0.00;(\xa4#,##0.00)",kea:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kgp:"\xa4\xa0#,##0.00",khq:"#,##0.00\xa4",ki:"\xa4#,##0.00;(\xa4#,##0.00)",kk:"#,##0.00\xa0\xa4",kkj:"\xa4\xa0#,##0.00",kl:"\xa4#,##0.00;\xa4-#,##0.00",kln:"\xa4#,##0.00;(\xa4#,##0.00)",km:"#,##0.00\xa4;(#,##0.00\xa4)",kn:"\xa4#,##0.00;(\xa4#,##0.00)",ko:"\xa4#,##0.00;(\xa4#,##0.00)","ko-KP":"\xa4#,##0.00;(\xa4#,##0.00)",kok:"\xa4#,##0.00;(\xa4#,##0.00)",ks:"\xa4#,##0.00","ks-Arab":"\xa4#,##0.00","ks-Deva":"\xa4\xa0#,##0.00",ksb:"#,##0.00\xa4",ksf:"#,##0.00\xa0\xa4",ksh:"#,##0.00\xa0\xa4",ku:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kw:"\xa4#,##0.00",ky:"#,##0.00\xa0\xa4",lag:"\xa4\xa0#,##0.00",lb:"#,##0.00\xa0\xa4",lg:"#,##0.00\xa4",lkt:"\xa4\xa0#,##0.00",ln:"#,##0.00\xa0\xa4","ln-AO":"#,##0.00\xa0\xa4","ln-CF":"#,##0.00\xa0\xa4","ln-CG":"#,##0.00\xa0\xa4",lo:"\xa4#,##0.00;\xa4-#,##0.00",lrc:"\xa4\xa0#,##0.00","lrc-IQ":"\xa4\xa0#,##0.00",lt:"#,##0.00\xa0\xa4",lu:"#,##0.00\xa4",luo:"#,##0.00\xa4",luy:"\xa4#,##0.00;\xa4-\xa0#,##0.00",lv:"#,##0.00\xa0\xa4",mai:"\xa4\xa0#,##0.00",mas:"\xa4#,##0.00;(\xa4#,##0.00)","mas-TZ":"\xa4#,##0.00;(\xa4#,##0.00)",mer:"\xa4#,##0.00;(\xa4#,##0.00)",mfe:"\xa4\xa0#,##0.00",mg:"\xa4#,##0.00",mgh:"\xa4\xa0#,##0.00",mgo:"\xa4\xa0#,##0.00",mi:"\xa4\xa0#,##0.00",mk:"#,##0.00\xa0\xa4",ml:"\xa4#,##0.00;(\xa4#,##0.00)",mn:"\xa4\xa0#,##0.00",mni:"\xa4\xa0#,##0.00","mni-Beng":"\xa4\xa0#,##0.00",mr:"\xa4#,##0.00;(\xa4#,##0.00)",ms:"\xa4#,##0.00;(\xa4#,##0.00)","ms-BN":"\xa4#,##0.00;(\xa4#,##0.00)","ms-ID":"\xa4#,##0.00","ms-SG":"\xa4#,##0.00;(\xa4#,##0.00)",mt:"\xa4#,##0.00",mua:"\xa4#,##0.00;(\xa4#,##0.00)",my:"\xa4\xa0#,##0.00",mzn:"\xa4\xa0#,##0.00",naq:"\xa4#,##0.00",nb:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nb-SJ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nd:"\xa4#,##0.00;(\xa4#,##0.00)",nds:"\xa4\xa0#,##0.00","nds-NL":"\xa4\xa0#,##0.00",ne:"\xa4\xa0#,##,##0.00","ne-IN":"\xa4\xa0#,##,##0.00",nl:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-AW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BE":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BQ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-CW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SX":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nmg:"#,##0.00\xa0\xa4",nn:"#,##0.00\xa0\xa4",nnh:"\xa4\xa0#,##0.00",no:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nus:"\xa4#,##0.00;(\xa4#,##0.00)",nyn:"\xa4#,##0.00",om:"\xa4#,##0.00","om-KE":"\xa4#,##0.00",or:"\xa4#,##0.00;(\xa4#,##0.00)",os:"\xa4\xa0#,##0.00","os-RU":"\xa4\xa0#,##0.00",pa:"\xa4\xa0#,##0.00","pa-Arab":"\xa4\xa0#,##0.00","pa-Guru":"\xa4\xa0#,##0.00",pcm:"\xa4#,##0.00",pl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ps:"\xa4#,##0.00;(\xa4#,##0.00)","ps-PK":"\xa4#,##0.00;(\xa4#,##0.00)",pt:"\xa4\xa0#,##0.00","pt-AO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CV":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-PT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-ST":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-TL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",qu:"\xa4\xa0#,##0.00","qu-BO":"\xa4\xa0#,##0.00","qu-EC":"\xa4\xa0#,##0.00",rm:"#,##0.00\xa0\xa4",rn:"#,##0.00\xa4",ro:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ro-MD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",rof:"\xa4#,##0.00",ru:"#,##0.00\xa0\xa4","ru-BY":"#,##0.00\xa0\xa4","ru-KG":"#,##0.00\xa0\xa4","ru-KZ":"#,##0.00\xa0\xa4","ru-MD":"#,##0.00\xa0\xa4","ru-UA":"#,##0.00\xa0\xa4",rw:"\xa4\xa0#,##0.00",rwk:"#,##0.00\xa4",sa:"\xa4\xa0#,##0.00",sah:"#,##0.00\xa0\xa4",saq:"\xa4#,##0.00;(\xa4#,##0.00)",sat:"\xa4\xa0#,##0.00","sat-Olck":"\xa4\xa0#,##0.00",sbp:"#,##0.00\xa4",sc:"#,##0.00\xa0\xa4",sd:"\xa4\xa0#,##0.00","sd-Arab":"\xa4\xa0#,##0.00","sd-Deva":"\xa4\xa0#,##0.00",se:"#,##0.00\xa0\xa4","se-FI":"#,##0.00\xa0\xa4","se-SE":"#,##0.00\xa0\xa4",seh:"#,##0.00\xa4",ses:"#,##0.00\xa4",sg:"\xa4#,##0.00;\xa4-#,##0.00",shi:"#,##0.00\xa4","shi-Latn":"#,##0.00\xa4","shi-Tfng":"#,##0.00\xa4",si:"\xa4#,##0.00;(\xa4#,##0.00)",sk:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",smn:"#,##0.00\xa0\xa4",sn:"\xa4#,##0.00;(\xa4#,##0.00)",so:"\xa4#,##0.00;(\xa4#,##0.00)","so-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","so-ET":"\xa4#,##0.00;(\xa4#,##0.00)","so-KE":"\xa4#,##0.00;(\xa4#,##0.00)",sq:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-MK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",su:"\xa4#,##0.00","su-Latn":"\xa4#,##0.00",sv:"#,##0.00\xa0\xa4","sv-AX":"#,##0.00\xa0\xa4","sv-FI":"#,##0.00\xa0\xa4",sw:"\xa4\xa0#,##0.00","sw-CD":"\xa4\xa0#,##0.00","sw-KE":"\xa4\xa0#,##0.00","sw-UG":"\xa4\xa0#,##0.00",ta:"\xa4#,##0.00;(\xa4#,##0.00)","ta-LK":"\xa4#,##0.00;(\xa4#,##0.00)","ta-MY":"\xa4#,##0.00;(\xa4#,##0.00)","ta-SG":"\xa4#,##0.00;(\xa4#,##0.00)",te:"\xa4#,##0.00;(\xa4#,##0.00)",teo:"\xa4#,##0.00;(\xa4#,##0.00)","teo-KE":"\xa4#,##0.00;(\xa4#,##0.00)",tg:"#,##0.00\xa0\xa4",th:"\xa4#,##0.00;(\xa4#,##0.00)",ti:"\xa4#,##0.00","ti-ER":"\xa4#,##0.00",tk:"#,##0.00\xa0\xa4",to:"\xa4\xa0#,##0.00",tr:"\xa4#,##0.00;(\xa4#,##0.00)","tr-CY":"\xa4#,##0.00;(\xa4#,##0.00)",tt:"#,##0.00\xa0\xa4",twq:"#,##0.00\xa4",tzm:"#,##0.00\xa0\xa4",ug:"\xa4#,##0.00;(\xa4#,##0.00)",uk:"#,##0.00\xa0\xa4",und:"\xa4\xa0#,##0.00",ur:"\xa4#,##0.00;(\xa4#,##0.00)","ur-IN":"\xa4#,##0.00;(\xa4#,##0.00)",uz:"#,##0.00\xa0\xa4","uz-Arab":"\xa4\xa0#,##0.00","uz-Cyrl":"#,##0.00\xa0\xa4","uz-Latn":"#,##0.00\xa0\xa4",vai:"\xa4#,##0.00;(\xa4#,##0.00)","vai-Latn":"\xa4#,##0.00;(\xa4#,##0.00)","vai-Vaii":"\xa4#,##0.00;(\xa4#,##0.00)",vi:"#,##0.00\xa0\xa4",vun:"\xa4#,##0.00",wae:"\xa4\xa0#,##0.00",wo:"\xa4\xa0#,##0.00",xh:"\xa4#,##0.00",xog:"#,##0.00\xa0\xa4",yav:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",yi:"\xa4\xa0#,##0.00",yo:"\xa4#,##0.00;(\xa4#,##0.00)","yo-BJ":"\xa4#,##0.00;(\xa4#,##0.00)",yrl:"\xa4\xa0#,##0.00","yrl-CO":"\xa4\xa0#,##0.00","yrl-VE":"\xa4\xa0#,##0.00",yue:"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hant":"\xa4#,##0.00;(\xa4#,##0.00)",zgh:"#,##0.00\xa4",zh:"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-MO":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-SG":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-MO":"\xa4#,##0.00;(\xa4#,##0.00)",zu:"\xa4#,##0.00;(\xa4#,##0.00)"};var hnt=["standard","accounting"],gnt=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,J7={},Tde=t=>{var n=Ou.locale()+"/"+JSON.stringify(t);return J7[n]||(J7[n]=new Intl.NumberFormat(Ou.locale(),t).format),J7[n]};const mnt={engine:function(){return"intl"},_formatNumberCore:function(t,n,e){return"exponential"===n?this.callBase.apply(this,arguments):Tde(this._normalizeFormatConfig(n,e,t))(t)},_normalizeFormatConfig:function(t,n,e){var i;if("decimal"===t){var r=String(e).split(".")[1];i={minimumIntegerDigits:n.precision||void 0,useGrouping:!1,maximumFractionDigits:r&&r.length,round:e<0?"ceil":"floor"}}else i=this._getPrecisionConfig(n.precision);if("percent"===t)i.style="percent";else if("currency"===t){var o,a=null!==(o=n.useCurrencyAccountingStyle)&&void 0!==o?o:no().defaultUseCurrencyAccountingStyle;i.style="currency",i.currency=n.currency||no().defaultCurrency,i.currencySign=hnt[+a]}return i},_getPrecisionConfig:function(t){return null===t?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:t||0,maximumFractionDigits:t||0}},format:function(t,n){return"number"!=typeof t?t:("default"===(n=this._normalizeFormat(n)).currency&&(n.currency=no().defaultCurrency),n&&("function"==typeof n||n.type||n.formatter)?this.callBase.apply(this,arguments):Tde(n)(t))},_getCurrencySymbolInfo:function(t){var n=(t=>new Intl.NumberFormat(Ou.locale(),{style:"currency",currency:t}))(t);return this._extractCurrencySymbolInfo(n.format(0))},_extractCurrencySymbolInfo:function(t){var n=gnt.exec(t)||[];return{position:n[1]?"before":"after",symbol:n[1]||n[4]||"",delimiter:n[2]||n[3]||""}},getCurrencySymbol:function(t){return t||(t=no().defaultCurrency),{symbol:this._getCurrencySymbolInfo(t).symbol}},getOpenXmlCurrencyFormat:function(t){var n=t||no().defaultCurrency;return((t,n)=>{if(n){var e=t;if("string"==typeof t){e="";for(var i=0;i<t.length;i++)"$"!==t[i]&&(e+="\\"),e+=t[i]}for(var r={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\\xa4":e},o=n.split(";"),a=0;a<o.length;a++)for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(o[a]=o[a].replace(new RegExp(s,"g"),r[s]));return 2===o.length?o[0]+"_);"+o[1]:o[0]}})(this._getCurrencySymbolInfo(n).symbol,Ou.getValueByClosestLocale(r=>cnt[r]))}};var _nt=typeof Intl<"u",Ide=["currency","fixedpoint","exponential","percent","decimal"],Q7={1:"K",2:"M",3:"B",4:"T"},kde={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},ez=ch({engine:function(){return"base"},numericFormats:Ide,defaultLargeNumberFormatPostfixes:Q7,_parseNumberFormatString:function(t){var n={};if(t&&"string"==typeof t){var e=t.toLowerCase().split(" ");if(we(e,(i,r)=>{Ide.includes(r)?n.formatType=r:r in kde&&(n.power=kde[r])}),n.power&&!n.formatType&&(n.formatType="fixedpoint"),n.formatType)return n}},_calculateNumberPower:function(t,n,e,i){var r=Math.abs(t),o=0;if(r>1)for(;r&&r>=n&&(void 0===i||o<i);)o++,r/=n;else if(r>0&&r<1)for(;r<1&&(void 0===e||o>e);)o--,r*=n;return o},_getNumberByPower:function(t,n,e){for(var i=t;n>0;)i/=e,n--;for(;n<0;)i*=e,n++;return i},_formatNumber:function(t,n,e){"auto"===n.power&&(n.power=this._calculateNumberPower(t,1e3,0,4)),n.power&&(t=this._getNumberByPower(t,n.power,1e3));var i=this.defaultLargeNumberFormatPostfixes[n.power]||"",r=this._formatNumberCore(t,n.formatType,e);return r.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(t,n){var e=this._calculateNumberPower(t,10),i=this._getNumberByPower(t,e,10);void 0===n.precision&&(n.precision=1),i.toFixed(n.precision||0)>=10&&(e++,i/=10);var r=(e>=0?"+":"")+e.toString();return this._formatNumberCore(i,"fixedpoint",n)+"E"+r},_addZeroes:function(t,n){for(var e=Math.pow(10,n),i=t<0?"-":"",r=(t=(Math.abs(t)*e>>>0)/e).toString();r.length<n;)r="0"+r;return i+r},_addGroupSeparators:function(t){var n=t.toString().split(".");return n[0].replace(/\B(?=(\d{3})+(?!\d))/g,no().thousandsSeparator)+(n[1]?no().decimalSeparator+n[1]:"")},_formatNumberCore:function(t,n,e){return"exponential"===n?this._formatNumberExponential(t,e):("decimal"!==n&&null!==e.precision&&(e.precision=e.precision||0),"percent"===n&&(t*=100),void 0!==e.precision&&(t="decimal"===n?this._addZeroes(t,e.precision):null===e.precision?t.toPrecision():yde(t,e.precision)),t="decimal"!==n?this._addGroupSeparators(t):t.toString().replace(".",no().decimalSeparator),"percent"===n&&(t+="%"),t)},_normalizeFormat:function(t){return t?("function"==typeof t||wi(t)||(t={type:t}),t):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e4,"fixedPoint")[2]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(t,n){var e=this.format(90,"decimal");if("string"!=typeof t||"0"===e[1])return t;var i=n?e[1]:"0",r=n?"0":e[1],a=new RegExp("["+i+"-"+(n?e[0]:"9")+"]","g");return t.replace(a,s=>String.fromCharCode(s.charCodeAt(0)+(r.charCodeAt(0)-i.charCodeAt(0))))},getNegativeEtalonRegExp:function(t){var n=this._getSeparators(),e=new RegExp("[0-9"+z0(n.decimalSeparator+n.thousandsSeparator)+"]+","g"),i=this.format(-1,t).replace(e,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach(r=>{i=i.replace(new RegExp("\\".concat(r),"g"),"\\".concat(r))}),i=(i=i.replace(/ /g,"\\s")).replace(/1/g,".*"),new RegExp(i,"g")},getSign:function(t,n){if(!n)return"-"===t.replace(/[^0-9-]/g,"").charAt(0)?-1:1;var e=this.getNegativeEtalonRegExp(n);return t.match(e)?-1:1},format:function(t,n){if("number"!=typeof t||"number"==typeof n)return t;if("function"==typeof(n=n&&n.formatter||n))return n(t);(n=this._normalizeFormat(n)).type||(n.type="decimal");var e=this._parseNumberFormatString(n.type);if(!e){var i=this._getSeparators();return i.unlimitedIntegerDigits=n.unlimitedIntegerDigits,this.convertDigits(function snt(t,n){return n=n||Qtt,function(e){if("number"!=typeof e||isNaN(e))return"";var i=function int(t){var n=t.split(";");return 1===n.length&&n.push("-"+n[0]),n}(t),o=e>0||1/e==1/0,a=i[o?0:1],s=function ant(t){for(var n=!1,e=0;e<t.length;e++)if("'"===t[e]&&(n=!n),"."===t[e]&&!n)return e;return t.length}(a),l=[a.substr(0,s),a.substr(s+1)],u=wde(l[1]),f=u+xde(l[1]);(function rnt(t){return-1!==t.indexOf("%")&&!t.match(/'[^']*%[^']*'/g)})(a)&&(e=mde(e,2)),o||(e=-e);var S=wde(l[0]),T=xde(l[0])||n.unlimitedIntegerDigits?void 0:S,R=Math.floor(e).toString().length,L=al(f,0,15-R),z=function nnt(t){return t.split(",").slice(1).map(function(n){var e=0;return n.split("").filter(function(i,r){return e+="'"===i,!("#"!==i&&"0"!==i||e%2)}).length})}(l[0]).reverse(),j=yde(e,L<0?0:L).split("."),Y=Sde(X7(j[0]),S,T),ie=Sde(j[1],u,f);Y=function ont(t,n,e){if(!n.length)return t;for(var i=[],r=0;t;){var o=n[r];if(!o)break;i.push(t.slice(0,o)),t=t.slice(o),r<n.length-1&&r++}return i.join(e)}(Y,z,n.thousandsSeparator);var te=X7(Dde(X7(l[0]),Y)),re=f?Dde(l[1],ie):"";return te+(re.match(/\d/)?n.decimalSeparator:"")+re}}(n.type,i)(t))}return this._formatNumber(t,e,n)},parse:function(t,n){if(t){if(n&&n.parser)return n.parser(t);t=this.convertDigits(t,!0),n&&"string"!=typeof n&&Wr.log("W0011");var e=this.getDecimalSeparator(),i=new RegExp("[^0-9"+z0(e)+"]","g"),r=t.replace(i,"").replace(e,".").replace(/\.$/g,"");if("."===r||""===r)return null;if(this._calcSignificantDigits(r)>15)return NaN;var o=+r*this.getSign(t,n);n=this._normalizeFormat(n);var a=this._parseNumberFormatString(n.type),s=a?.power;if(s){if("auto"===s){var l=t.match(/\d(K|M|B|T)/);l&&(s=Object.keys(Q7).find(u=>Q7[u]===l[1]))}o*=Math.pow(10,3*s)}return"percent"===a?.formatType&&(o/=100),o}},_calcSignificantDigits:function(t){var[n,e]=t.split("."),i=o=>{for(var a=-1,s=0;s<o.length;s++)if("0"!==o[s]){a=s;break}return a>-1?o.length-a:0},r=0;return n&&(r+=i(n.split(""))),e&&(r+=i(e.split("").reverse())),r}});ez.inject(unt),_nt&&ez.inject(mnt);const Gr=ez;function fh(t,n){for(;t.length<n;)t="0"+t;return t}var aO={3:"abbreviated",4:"wide",5:"narrow"},tz={y:function(t,n,e){var i=t[e?"getUTCFullYear":"getFullYear"]();return 2===n&&(i%=100),fh(i.toString(),n)},M:function(t,n,e,i){var r=t[e?"getUTCMonth":"getMonth"](),o=aO[n];return o?i.getMonthNames(o,"format")[r]:fh((r+1).toString(),Math.min(n,2))},L:function(t,n,e,i){var r=t[e?"getUTCMonth":"getMonth"](),o=aO[n];return o?i.getMonthNames(o,"standalone")[r]:fh((r+1).toString(),Math.min(n,2))},Q:function(t,n,e,i){var r=t[e?"getUTCMonth":"getMonth"](),o=Math.floor(r/3),a=aO[n];return a?i.getQuarterNames(a)[o]:fh((o+1).toString(),Math.min(n,2))},E:function(t,n,e,i){var r=t[e?"getUTCDay":"getDay"]();return i.getDayNames(aO[n<3?3:n])[r]},a:function(t,n,e,i){var o=t[e?"getUTCHours":"getHours"]()<12?0:1;return i.getPeriodNames(aO[n])[o]},d:function(t,n,e){return fh(t[e?"getUTCDate":"getDate"]().toString(),Math.min(n,2))},H:function(t,n,e){return fh(t[e?"getUTCHours":"getHours"]().toString(),Math.min(n,2))},h:function(t,n,e){return fh((t[e?"getUTCHours":"getHours"]()%12||12).toString(),Math.min(n,2))},m:function(t,n,e){return fh(t[e?"getUTCMinutes":"getMinutes"]().toString(),Math.min(n,2))},s:function(t,n,e){return fh(t[e?"getUTCSeconds":"getSeconds"]().toString(),Math.min(n,2))},S:function(t,n,e){return fh(t[e?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,n)},x:function(t,n,e){var i=e?0:t.getTimezoneOffset(),r=i>0?"-":"+",o=Math.abs(i),s=o%60,l=fh(Math.floor(o/60).toString(),2),u=fh(s.toString(),2);return r+l+(n>=3?":":"")+(n>1||s?u:"")},X:function(t,n,e){return e||!t.getTimezoneOffset()?"Z":tz.x(t,n,e)},Z:function(t,n,e){return tz.X(t,n>=5?3:2,e)}},Mde=function(t,n){return function(e){var i,r,o,l,a=0,s=!1,u="";if(!e)return null;if(!t)return e;var f="Z"===t[t.length-1]||"'Z'"===t.slice(-3);for(i=0;i<t.length;i++)r=tz[o=t[i]],a++,(l=o===t[i+1])||(r&&!s&&(u+=r(e,a,f,n)),a=0),"'"!==o||l?(s||!r)&&(u+=o):s=!s,"'"===o&&l&&i++;return u}},Ade=" .,:;/\\<>()-[]\u060c",U0=function(t){var n=t&&Gr.convertDigits(t,!1).charCodeAt(0),e=Gr.convertDigits("0",!1).charCodeAt(0);return e<=n&&n<e+10},bnt=function(t,n,e,i){var r=t[e],o=t[e+1];if(!i&&("."===r||" "===r&&". m."===t.slice(e-1,e+3)||"-"===r&&!U0(o)))return!0;var a=i&&n.some(s=>t[e]!==s[e]);return Ade.indexOf(r)<0&&i===U0(r)&&(!i||a)},xnt=function(t,n){if(!U0(t[n]))for(;n>0&&!U0(t[n-1])&&("."===t[n-1]||Ade.indexOf(t[n-1])<0);)n--;return n},Fde=function(t,n){return Array.isArray(t)?t.map(function(e){return(n(e)||"").toString()}):(n(t)||"").toString()},Ent=/[a-zA-Z]/g,nz=function(t){var n=[],e=Fde(new Date(2009,8,8,6,5,4),t),i=e.split("").map(function(s,l){return l}),r=e,o={},a=[{date:new Date(2009,8,8,6,5,4,111),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(r&&(a.forEach(function(s){var l=function(t,n,e,i){var r=0,o=[],a=function(s){return t[r]!==s[r]&&(void 0===i||U0(t[r])===i)};for(Array.isArray(n)||(n=[n]),r=0;r<t.length;r++)if(e.indexOf(r)<0&&n.filter(a).length){r=xnt(t,r);do{if(i=U0(t[r]),!o.length&&!i&&U0(n[0][r]))break;o.push(r),e.unshift(r),r++}while(t[r]&&bnt(t,n,r,i));break}return 1===o.length&&("0"===t[e[0]-1]||"\u0660"===t[e[0]-1])&&e.unshift(e[0]-1),o}(e,Fde(s.date,t),n,s.isDigit),u="M"!==s.pattern||o.d?s.pattern:"L";r=function(t,n,e,i){var r,o,a;if(!U0(t[n[0]]||"0")){for(var s=Math.max(n.length<=3?3:4,e.length);n.length>s;){for(a=i[o=n.pop()],i[o]=-1,r=o+1;r<i.length;r++)i[r]--;t=t.substr(0,a)+t.substr(a+1)}for(a=(o=n[n.length-1]+1)<i.length?i[o]:o;n.length<s;){for(n.push(n[n.length-1]+1),r=o;r<i.length;r++)i[r]++;t=t.substr(0,a)+" "+t.substr(a)}}return t=function(t,n,e,i){var r=n[0],o=r<i.length?i[r]:r;return n.forEach(function(a,s){t=t.substr(0,o+s)+(e.length>1?e[s]:e)+t.substr(o+s+1)}),1===n.length&&(t=(t=t.replace("0"+e,e+e)).replace("\u0660"+e,e+e)),t}(t,n,e,i),t}(r,l,u,i),o[u]=l.length}),r=function(t,n,e,i){var r=n.split("").map(function(o,a){return e.indexOf(a)<0&&(o.match(Ent)||"'"===o)?i[a]:-1});return t.split("").map(function(o,a){var s=o,l=r.indexOf(a)>=0,u=a>0&&r.indexOf(a-1)>=0,f=r.indexOf(a+1)>=0;return l&&(u||(s="'"+s),f||(s+="'")),s}).join("")}(r,e,n,i),n.length))return r},nm={3:"abbreviated",4:"wide",5:"narrow"},Pde=function(t,n){return t>2?Object.keys(nm).map(function(e){return["format","standalone"].map(function(i){return n.getMonthNames(nm[e],i).join("|")}).join("|")}).join("|"):2===t?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},Tnt={":":function(t,n){var e=t>1?"{".concat(t,"}"):"",i=z0(n.getTimeSeparator());return":"!==i&&(i="".concat(i,"|:")),"".concat(i).concat(e)},y:function(t){return 2===t?"[0-9]{".concat(t,"}"):"[0-9]+?"},M:Pde,L:Pde,Q:function(t,n){return t>2?n.getQuarterNames(nm[t],"format").join("|"):"0?[1-4]"},E:function(t,n){return"\\D*"},a:function(t,n){return n.getPeriodNames(nm[t<3?3:t],"format").join("|")},d:function(t){return 2===t?"3[01]|[12][0-9]|0?[1-9]":"0??[1-9]|[12][0-9]|3[01]"},H:function(t){return 2===t?"2[0-3]|1[0-9]|0?[0-9]":"0??[0-9]|1[0-9]|2[0-3]"},h:function(t){return 2===t?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},m:function(t){return 2===t?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},s:function(t){return 2===t?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},S:function(t){return"[0-9]{1,".concat(t,"}")},w:function(t){return 2===t?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"}},im=Number,iz=function(t,n){return t.map(e=>e.toLowerCase()).indexOf(n.toLowerCase())},Rde=function(t,n,e){return n>2?["format","standalone"].map(function(i){return Object.keys(nm).map(function(r){var o=e.getMonthNames(nm[r],i);return iz(o,t)})}).reduce(function(i,r){return i.concat(r)}).filter(function(i){return i>=0})[0]:im(t)-1},Int={y:function(t,n){var e=im(t);return 2===n?e<30?2e3+e:1900+e:e},M:Rde,L:Rde,Q:function(t,n,e){return n>2?e.getQuarterNames(nm[n],"format").indexOf(t):im(t)-1},E:function(t,n,e){var i=e.getDayNames(nm[n<3?3:n],"format");return iz(i,t)},a:function(t,n,e){var i=e.getPeriodNames(nm[n<3?3:n],"format");return iz(i,t)},d:im,H:im,h:im,m:im,s:im,S:function(t,n){for(n=Math.max(n,3),t=t.slice(0,3);n<3;)t+="0",n++;return im(t)}},pP=["y","M","d","h","m","s","S"],rz={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(t,n,e){var i=t.getHours(),r=e.h;void 0!==r&&r!==i&&i--,n||12!==i?n&&12!==i&&(i+=12):i=0,t.setHours(i)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},knt=function(t,n){var e=t[n];if(!e)return 0;var i=0;do{n++,i++}while(t[n]===e);return i},Mnt=function(t,n){for(var e="",i=0;i<n;i++)e+=t;return e},Lde=function(t,n){for(var r,e="",i="",o=[],a=function(){i&&(o.push("'".concat(i,"'")),e+="".concat(z0(i),")"),i="")},s=0;s<t.length;s++){var l=t[s],f=Tnt[l];if("'"!==l||(r=!r,"'"===t[s-1]))if(f&&!r){var S=knt(t,s),T=Mnt(l,S);a(),o.push(T),e+="(".concat(f(S,n),")"),s+=S-1}else i||(e+="("),i+=l}return a(),Fnt(o)||Ey.warn("The following format may be parsed incorrectly: ".concat(t,".")),{patterns:o,regexp:new RegExp("^".concat(e,"$"),"i")}},Ant=["d","H","h","m","s","w","M","L","Q"],Fnt=function(t){var n=r=>{if(!r)return!1;var o=r[0];return["y","S"].includes(o)||Ant.includes(o)&&r.length<3},e=!0,i=0;return t.every((r,o,a)=>{return n(r)&&("S"!==(s=r)[0]&&2!==s.length&&(e=++i<2),n(a[o+1])||(i=0)),e;var s})},znt=["January","February","March","April","May","June","July","August","September","October","November","December"],Unt=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Wnt=["AM","PM"],Gnt=["Q1","Q2","Q3","Q4"],Bde=(t,n)=>{var e={abbreviated:3,short:2,narrow:1};return Dr(t,i=>i.substr(0,e[n]))};const sO={getMonthNames:function(t){return Bde(znt,t)},getDayNames:function(t){return Bde(Unt,t)},getQuarterNames:function(t){return Gnt},getPeriodNames:function(t){return Wnt}},jnt={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-MV":5,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,"ff-Adlm":1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nds:1,nl:1,nmg:1,nnh:1,no:1,nus:1,nyn:1,os:1,pcm:1,pl:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,sc:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1};var Knt=/[\u200E\u200F]/g,My=t=>n=>{if(!t.timeZoneName){var e=n.getFullYear(),i=String(e).length<3,o=new Date(Date.UTC(i?e+400:e,n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return i&&o.setFullYear(e),az(o,se({timeZone:"UTC"},t))}return az(n,t)},oz={};function az(t,n){return(t=>{var n=Ou.locale()+"/"+JSON.stringify(t);return oz[n]||(oz[n]=new Intl.DateTimeFormat(Ou.locale(),t).format),oz[n]})(n)(t).replace(Knt,"")}var sz=t=>new Intl.NumberFormat(Ou.locale()).format(t),qnt=(()=>{var t={};return n=>{if(!(n in t)){if("0"===sz(0))return t[n]=!1,!1;t[n]={};for(var e=0;e<10;++e)t[n][sz(e)]=e}return t[n]}})(),gP=t=>{var n=qnt(Ou.locale());return n?t.split("").map(e=>e in n?String(n[e]):e).join(""):t},Nde=t=>t.replace(/(\D)0+(\d)/g,"$1$2"),lz=t=>t.replace("d\u2019","de "),uz={day:{day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(uz,"shortdateshorttime",{get:function(){var t=Intl.DateTimeFormat(Ou.locale()).resolvedOptions();return{year:t.year,month:t.month,day:t.day,hour:"numeric",minute:"numeric"}}});var Znt=t=>"string"==typeof t&&uz[t.toLowerCase()],Vde={standalone:function(t,n){var e=new Date(1999,t,13,1);return My({month:n})(e)},format:function(t,n){var e=new Date(0,t,13,1),r=lz(My({day:"numeric",month:n})(e)).split(" ").filter(o=>o.indexOf("13")<0);return 1===r.length?r[0]:2===r.length?r[0].length>r[1].length?r[0]:r[1]:Vde.standalone(t,n)}};const Xnt={engine:function(){return"intl"},getMonthNames:function(t,n){var e={wide:"long",abbreviated:"short",narrow:"narrow"}[t||"wide"];return n="format"===n?n:"standalone",Array.apply(null,new Array(12)).map((i,r)=>Vde[n](r,e))},getDayNames:function(t){var e;return e={wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[t||"wide"],Array.apply(null,new Array(7)).map((i,r)=>My({weekday:e})(new Date(0,0,r)))},getPeriodNames:function(){var t=My({hour:"numeric",hour12:!0});return[1,13].map(n=>{var e=sz(1),i=t(new Date(0,0,1,n)).split(e);return 2!==i.length?"":(i[0].length>i[1].length?i[0]:i[1]).trim()})},format:function(t,n){if(t){if(!n)return t;"function"!=typeof n&&!n.formatter&&(n=n.type||n);var e=Znt(n);if(e)return My(e)(t);var i=typeof n;return n.formatter||"function"===i||"string"===i?this.callBase.apply(this,arguments):My(n)(t)}},parse:function(t,n){var e;return n&&!n.parser&&"string"==typeof t&&(t=lz(t),e=i=>lz(this.format(i,n))),this.callBase(t,e||n)},_parseDateBySimpleFormat:function(t,n){t=gP(t);var e=this.getFormatParts(n),i=t.split(/\D+/).filter(a=>a.length>0);if(e.length===i.length){var r=this._generateDateArgs(e,i),o=a=>{var l,s=(l=r,new Date(l.year,l.month,l.day,(l.hours+(a?12:0))%24,l.minutes,l.seconds));if(((t,n)=>Nde(t)===Nde(n))(gP(this.format(s,n)),t))return s};return o(!1)||o(!0)}},_generateDateArgs:function(t,n){var e=new Date,i={year:e.getFullYear(),month:e.getMonth(),day:e.getDate(),hours:0,minutes:0,seconds:0};return t.forEach((r,o)=>{var s=parseInt(n[o],10);"month"===r&&(s-=1),i[r]=s}),i},formatUsesMonthName:function(t){return"object"!=typeof t||t.type||t.format?this.callBase.apply(this,arguments):"long"===t.month},formatUsesDayName:function(t){return"object"!=typeof t||t.type||t.format?this.callBase.apply(this,arguments):"long"===t.weekday},getTimeSeparator:function(){return gP(az(new Date(2001,1,1,11,11),{hour:"numeric",minute:"numeric",hour12:!1})).replace(/\d/g,"")},getFormatParts:function(t){if("string"==typeof t)return this.callBase(t);var n=se({},uz[t.toLowerCase()]),e=new Date(2001,2,4,5,6,7),i=My(n)(e);return i=gP(i),[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}].map(r=>({name:r.name,index:i.indexOf(r.value)})).filter(r=>r.index>-1).sort((r,o)=>r.index-o.index).map(r=>r.name)}};var Qnt=typeof Intl<"u",dz={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},eit={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},Hde=ch({engine:function(){return"base"},_getPatternByFormat:function(t){return dz[t.toLowerCase()]},_expandPattern:function(t){return this._getPatternByFormat(t)||t},formatUsesMonthName:function(t){return-1!==this._expandPattern(t).indexOf("MMMM")},formatUsesDayName:function(t){return-1!==this._expandPattern(t).indexOf("EEEE")},getFormatParts:function(t){var n=this._getPatternByFormat(t)||t,e=[];return we(n.split(/\W+/),(i,r)=>{we(eit,(o,a)=>{a.includes(r)&&e.push(o)})}),e},getMonthNames:function(t){return sO.getMonthNames(t)},getDayNames:function(t){return sO.getDayNames(t)},getQuarterNames:function(t){return sO.getQuarterNames(t)},getPeriodNames:function(t){return sO.getPeriodNames(t)},getTimeSeparator:function(){return":"},is24HourFormat:function(t){for(var n=new Date(2017,0,20,11,0,0,0),e=new Date(2017,0,20,23,0,0,0),i=this.format(n,t),r=this.format(e,t),o=0;o<i.length;o++)if(i[o]!==r[o])return!isNaN(parseInt(i[o]))},format:function(t,n){if(t){if(!n)return t;var e;if("function"==typeof n)e=n;else if(n.formatter)e=n.formatter;else if(Pn(n=n.type||n))return n=dz[n.toLowerCase()]||n,Gr.convertDigits(Mde(n,this)(t));if(e)return e(t)}},parse:function(t,n){var i,r,e=this;if(t){if(!n)return this.parse(t,"shortdate");if(n.parser)return n.parser(t);if("string"!=typeof n||dz[n.toLowerCase()]){r=a=>{var s=e.format(a,n);return Gr.convertDigits(s,!0)};try{i=nz(r)}catch{}}else i=n;if(i)return t=Gr.convertDigits(t,!0),function(t,n){var e=Lde(t,n);return function(i){var r=e.regexp.exec(i);if(r){var o=new Date,a=new Date(o.getFullYear(),0,1),s=function(t){return t.map(function(n){return"'"===n[0]?"":"H"===n[0]?"h":n[0]})}(e.patterns),l=function(t){var n=t.map(function(e){return pP.indexOf(e)});return Math.max.apply(Math,n)}(s),u=function(t){var n=t.filter(function(e){return pP.indexOf(e)<0});return pP.concat(n)}(s),f={};return u.forEach(function(S,T){if(S&&!(T<pP.length&&T>l)){var R=s.indexOf(S);R>=0?function(t,n,e,i,r){var o=n[0],a=rz[o],s=Int[o];if(a&&s){var l=s(e,n.length,i);r[n]=l,t[a]?t[a](l):a(t,l,r)}}(a,e.patterns[R],r[R+1],n,f):function(t,n,e){var i=rz[n],o=e["g"+i.substr(1)]();t[i](o)}(a,S,o)}}),a}return null}}(i,this)(t);Wr.log("W0012");var o=new Date(t);if(o&&!isNaN(o.getTime()))return o}},firstDayOfWeekIndex:function(){var t=Ou.getValueByClosestLocale(n=>jnt[n]);return void 0===t?0:t}});Qnt&&Hde.inject(Xnt);const Gn=Hde;var tit=Ou.locale.bind(Ou),zde=ye.load.bind(ye),nit=(ye.format.bind(ye),Gr.format.bind(Gr)),Ay=(Gr.parse.bind(Gr),Gn.format.bind(Gn));Gn.parse.bind(Gn);const Pa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Hs=Object.keys,Iu=Array.isArray;function hd(t,n){return"object"!=typeof n||Hs(n).forEach(function(e){t[e]=n[e]}),t}typeof Promise>"u"||Pa.Promise||(Pa.Promise=Promise);const lO=Object.getPrototypeOf,iit={}.hasOwnProperty;function wc(t,n){return iit.call(t,n)}function nw(t,n){"function"==typeof n&&(n=n(lO(t))),(typeof Reflect>"u"?Hs:Reflect.ownKeys)(n).forEach(e=>{rm(t,e,n[e])})}const Ude=Object.defineProperty;function rm(t,n,e,i){Ude(t,n,hd(e&&wc(e,"get")&&"function"==typeof e.get?{get:e.get,set:e.set,configurable:!0}:{value:e,configurable:!0,writable:!0},i))}function iw(t){return{from:function(n){return t.prototype=Object.create(n.prototype),rm(t.prototype,"constructor",t),{extend:nw.bind(null,t.prototype)}}}}const rit=Object.getOwnPropertyDescriptor;function cz(t,n){let e;return rit(t,n)||(e=lO(t))&&cz(e,n)}const oit=[].slice;function fP(t,n,e){return oit.call(t,n,e)}function Wde(t,n){return n(t)}function uO(t){if(!t)throw new Error("Assertion Failed")}function Gde(t){Pa.setImmediate?setImmediate(t):setTimeout(t,0)}function jde(t,n){return t.reduce((e,i,r)=>{var o=n(i,r);return o&&(e[o[0]]=o[1]),e},{})}function om(t,n){if(wc(t,n))return t[n];if(!n)return t;if("string"!=typeof n){for(var e=[],i=0,r=n.length;i<r;++i){var o=om(t,n[i]);e.push(o)}return e}var a=n.indexOf(".");if(-1!==a){var s=t[n.substr(0,a)];return void 0===s?void 0:om(s,n.substr(a+1))}}function lp(t,n,e){if(t&&void 0!==n&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if("string"!=typeof n&&"length"in n){uO("string"!=typeof e&&"length"in e);for(var i=0,r=n.length;i<r;++i)lp(t,n[i],e[i])}else{var o=n.indexOf(".");if(-1!==o){var a=n.substr(0,o),s=n.substr(o+1);if(""===s)void 0===e?Iu(t)&&!isNaN(parseInt(a))?t.splice(a,1):delete t[a]:t[a]=e;else{var l=t[a];l&&wc(t,a)||(l=t[a]={}),lp(l,s,e)}}else void 0===e?Iu(t)&&!isNaN(parseInt(n))?t.splice(n,1):delete t[n]:t[n]=e}}function Kde(t){var n={};for(var e in t)wc(t,e)&&(n[e]=t[e]);return n}const ait=[].concat;function $de(t){return ait.apply([],t)}const qde="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat($de([8,16,32,64].map(t=>["Int","Uint","Float"].map(n=>n+t+"Array")))).filter(t=>Pa[t]),sit=qde.map(t=>Pa[t]);jde(qde,t=>[t,!0]);let W0=null;function dO(t){W0=typeof WeakMap<"u"&&new WeakMap;const n=hz(t);return W0=null,n}function hz(t){if(!t||"object"!=typeof t)return t;let n=W0&&W0.get(t);if(n)return n;if(Iu(t)){n=[],W0&&W0.set(t,n);for(var e=0,i=t.length;e<i;++e)n.push(hz(t[e]))}else if(sit.indexOf(t.constructor)>=0)n=t;else{const o=lO(t);for(var r in n=o===Object.prototype?{}:Object.create(o),W0&&W0.set(t,n),t)wc(t,r)&&(n[r]=hz(t[r]))}return n}const{toString:lit}={};function pz(t){return lit.call(t).slice(8,-1)}const gz=typeof Symbol<"u"?Symbol.iterator:"@@iterator",uit="symbol"==typeof gz?function(t){var n;return null!=t&&(n=t[gz])&&n.apply(t)}:function(){return null},rw={};function am(t){var n,e,i,r;if(1===arguments.length){if(Iu(t))return t.slice();if(this===rw&&"string"==typeof t)return[t];if(r=uit(t)){for(e=[];!(i=r.next()).done;)e.push(i.value);return e}if(null==t)return[t];if("number"==typeof(n=t.length)){for(e=new Array(n);n--;)e[n]=t[n];return e}return[t]}for(n=arguments.length,e=new Array(n);n--;)e[n]=arguments[n];return e}const fz=typeof Symbol<"u"?t=>"AsyncFunction"===t[Symbol.toStringTag]:()=>!1;var ug=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Yde(t,n){ug=t,Zde=n}var Zde=()=>!0;const dit=!new Error("").stack;function Fy(){if(dit)try{throw new Error}catch(t){return t}return new Error}function mz(t,n){var e=t.stack;return e?(n=n||0,0===e.indexOf(t.name)&&(n+=(t.name+t.message).split("\n").length),e.split("\n").slice(n).filter(Zde).map(i=>"\n"+i).join("")):""}var Xde=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],_z=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(Xde),cit={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ow(t,n){this._e=Fy(),this.name=t,this.message=n}function Jde(t,n){return t+". Errors: "+Object.keys(n).map(e=>n[e].toString()).filter((e,i,r)=>r.indexOf(e)===i).join("\n")}function mP(t,n,e,i){this._e=Fy(),this.failures=n,this.failedKeys=i,this.successCount=e,this.message=Jde(t,n)}function cO(t,n){this._e=Fy(),this.name="BulkError",this.failures=Object.keys(n).map(e=>n[e]),this.failuresByPos=n,this.message=Jde(t,n)}iw(ow).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+mz(this._e,2))}},toString:function(){return this.name+": "+this.message}}),iw(mP).from(ow),iw(cO).from(ow);var vz=_z.reduce((t,n)=>(t[n]=n+"Error",t),{});const hit=ow;var _r=_z.reduce((t,n)=>{var e=n+"Error";function i(r,o){this._e=Fy(),this.name=e,r?"string"==typeof r?(this.message=`${r}${o?"\n "+o:""}`,this.inner=o||null):"object"==typeof r&&(this.message=`${r.name} ${r.message}`,this.inner=r):(this.message=cit[n]||e,this.inner=null)}return iw(i).from(hit),t[n]=i,t},{});_r.Syntax=SyntaxError,_r.Type=TypeError,_r.Range=RangeError;var Qde=Xde.reduce((t,n)=>(t[n+"Error"]=_r[n],t),{}),_P=_z.reduce((t,n)=>(-1===["Syntax","Type","Range"].indexOf(n)&&(t[n+"Error"]=_r[n]),t),{});function ga(){}function hO(t){return t}function pit(t,n){return null==t||t===hO?n:function(e){return n(t(e))}}function Py(t,n){return function(){t.apply(this,arguments),n.apply(this,arguments)}}function git(t,n){return t===ga?n:function(){var e=t.apply(this,arguments);void 0!==e&&(arguments[0]=e);var i=this.onsuccess,r=this.onerror;this.onsuccess=null,this.onerror=null;var o=n.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?Py(i,this.onsuccess):i),r&&(this.onerror=this.onerror?Py(r,this.onerror):r),void 0!==o?o:e}}function fit(t,n){return t===ga?n:function(){t.apply(this,arguments);var e=this.onsuccess,i=this.onerror;this.onsuccess=this.onerror=null,n.apply(this,arguments),e&&(this.onsuccess=this.onsuccess?Py(e,this.onsuccess):e),i&&(this.onerror=this.onerror?Py(i,this.onerror):i)}}function mit(t,n){return t===ga?n:function(e){var i=t.apply(this,arguments);hd(e,i);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=n.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?Py(r,this.onsuccess):r),o&&(this.onerror=this.onerror?Py(o,this.onerror):o),void 0===i?void 0===a?void 0:a:hd(i,a)}}function _it(t,n){return t===ga?n:function(){return!1!==n.apply(this,arguments)&&t.apply(this,arguments)}}function yz(t,n){return t===ga?n:function(){var e=t.apply(this,arguments);if(e&&"function"==typeof e.then){for(var i=this,r=arguments.length,o=new Array(r);r--;)o[r]=arguments[r];return e.then(function(){return n.apply(i,o)})}return n.apply(this,arguments)}}_P.ModifyError=mP,_P.DexieError=ow,_P.BulkError=cO;var pO={};const[Cz,vP,bz]=typeof Promise>"u"?[]:(()=>{let t=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[t,lO(t),t];const n=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[n,lO(n),t]})(),ece=vP&&vP.then,yP=Cz&&Cz.constructor,xz=!!bz;var wz=!1,vit=bz?()=>{bz.then(wP)}:Pa.setImmediate?setImmediate.bind(null,wP):Pa.MutationObserver?()=>{var t=document.createElement("div");new MutationObserver(()=>{wP(),t=null}).observe(t,{attributes:!0}),t.setAttribute("i","1")}:()=>{setTimeout(wP,0)},gO=function(t,n){fO.push([t,n]),CP&&(vit(),CP=!1)},Sz=!0,CP=!0,Ry=[],bP=[],Dz=null,Ez=hO,aw={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:uce,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(t=>{try{uce(t[0],t[1])}catch{}})}},rr=aw,fO=[],Ly=0,xP=[];function Li(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ga,this._lib=!1;var n=this._PSD=rr;if(ug&&(this._stackHolder=Fy(),this._prev=null,this._numPrev=0),"function"!=typeof t){if(t!==pO)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Tz(this,this._value))}this._state=null,this._value=null,++n.ref,nce(this,t)}const Oz={get:function(){var t=rr,n=EP;function e(i,r){var o=!t.global&&(t!==rr||n!==EP);const a=o&&!sm();var s=new Li((l,u)=>{Iz(this,new tce(TP(i,t,o,a),TP(r,t,o,a),l,u,t))});return ug&&oce(s,this),s}return e.prototype=pO,e},set:function(t){rm(this,"then",t&&t.prototype===pO?Oz:{get:function(){return t},set:Oz.set})}};function tce(t,n,e,i,r){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.resolve=e,this.reject=i,this.psd=r}function nce(t,n){try{n(e=>{if(null===t._state){if(e===t)throw new TypeError("A promise cannot be resolved with itself.");var i=t._lib&&mO();e&&"function"==typeof e.then?nce(t,(r,o)=>{e instanceof Li?e._then(r,o):e.then(r,o)}):(t._state=!0,t._value=e,ice(t)),i&&_O()}},Tz.bind(null,t))}catch(e){Tz(t,e)}}function Tz(t,n){if(bP.push(n),null===t._state){var e=t._lib&&mO();n=Ez(n),t._state=!1,t._value=n,ug&&null!==n&&"object"==typeof n&&!n._promise&&function(i,r,o){try{(()=>{var i=cz(n,"stack");n._promise=t,rm(n,"stack",{get:()=>wz?i&&(i.get?i.get.apply(n):i.value):t.stack})}).apply(null,void 0)}catch(a){}}(),i=t,Ry.some(r=>r._value===i._value)||Ry.push(i),ice(t),e&&_O()}var i}function ice(t){var n=t._listeners;t._listeners=[];for(var e=0,i=n.length;e<i;++e)Iz(t,n[e]);var r=t._PSD;--r.ref||r.finalize(),0===Ly&&(++Ly,gO(()=>{0==--Ly&&kz()},[]))}function Iz(t,n){if(null!==t._state){var e=t._state?n.onFulfilled:n.onRejected;if(null===e)return(t._state?n.resolve:n.reject)(t._value);++n.psd.ref,++Ly,gO(yit,[e,t,n])}else t._listeners.push(n)}function yit(t,n,e){try{Dz=n;var i,r=n._value;n._state?i=t(r):(bP.length&&(bP=[]),i=t(r),-1===bP.indexOf(r)&&function(o){for(var a=Ry.length;a;)if(Ry[--a]._value===o._value)return void Ry.splice(a,1)}(n)),e.resolve(i)}catch(o){e.reject(o)}finally{Dz=null,0==--Ly&&kz(),--e.psd.ref||e.psd.finalize()}}function rce(t,n,e){if(n.length===e)return n;var i="";if(!1===t._state){var r,o,a=t._value;null!=a?(r=a.name||"Error",o=a.message||a,i=mz(a,0)):(r=a,o=""),n.push(r+(o?": "+o:"")+i)}return ug&&((i=mz(t._stackHolder,2))&&-1===n.indexOf(i)&&n.push(i),t._prev&&rce(t._prev,n,e)),n}function oce(t,n){var e=n?n._numPrev+1:0;e<100&&(t._prev=n,t._numPrev=e)}function wP(){mO()&&_O()}function mO(){var t=Sz;return Sz=!1,CP=!1,t}function _O(){var t,n,e;do{for(;fO.length>0;)for(t=fO,fO=[],e=t.length,n=0;n<e;++n){var i=t[n];i[0].apply(null,i[1])}}while(fO.length>0);Sz=!0,CP=!0}function kz(){var t=Ry;Ry=[],t.forEach(i=>{i._PSD.onunhandled.call(null,i._value,i)});for(var n=xP.slice(0),e=n.length;e;)n[--e]()}function SP(t){return new Li(pO,!1,t)}function Va(t,n){var e=rr;return function(){var i=mO(),r=rr;try{return j0(e,!0),t.apply(this,arguments)}catch(o){n&&n(o)}finally{j0(r,!1),i&&_O()}}}nw(Li.prototype,{then:Oz,_then:function(t,n){Iz(this,new tce(null,null,t,n,rr))},catch:function(t){if(1===arguments.length)return this.then(null,t);var n=arguments[0],e=arguments[1];return this.then(null,"function"==typeof n?i=>i instanceof n?e(i):SP(i):i=>i&&i.name===n?e(i):SP(i))},finally:function(t){return this.then(n=>(t(),n),n=>(t(),SP(n)))},stack:{get:function(){if(this._stack)return this._stack;try{wz=!0;var t=rce(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=t),t}finally{wz=!1}}},timeout:function(t,n){return t<1/0?new Li((e,i)=>{var r=setTimeout(()=>i(new _r.Timeout(n)),t);this.then(e,i).finally(clearTimeout.bind(null,r))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&rm(Li.prototype,Symbol.toStringTag,"Dexie.Promise"),aw.env=ace(),nw(Li,{all:function(){var t=am.apply(null,arguments).map(OP);return new Li(function(n,e){0===t.length&&n([]);var i=t.length;t.forEach((r,o)=>Li.resolve(r).then(a=>{t[o]=a,--i||n(t)},e))})},resolve:t=>{if(t instanceof Li)return t;if(t&&"function"==typeof t.then)return new Li((e,i)=>{t.then(e,i)});var n=new Li(pO,!0,t);return oce(n,Dz),n},reject:SP,race:function(){var t=am.apply(null,arguments).map(OP);return new Li((n,e)=>{t.map(i=>Li.resolve(i).then(n,e))})},PSD:{get:()=>rr,set:t=>rr=t},totalEchoes:{get:()=>EP},newPSD:G0,usePSD:lw,scheduler:{get:()=>gO,set:t=>{gO=t}},rejectionMapper:{get:()=>Ez,set:t=>{Ez=t}},follow:(t,n)=>new Li((e,i)=>G0((r,o)=>{var a=rr;a.unhandleds=[],a.onunhandled=o,a.finalize=Py(function(){var s;s=()=>{0===this.unhandleds.length?r():o(this.unhandleds[0])},xP.push(function l(){s(),xP.splice(xP.indexOf(l),1)}),++Ly,gO(()=>{0==--Ly&&kz()},[])},a.finalize),t()},n,e,i))}),yP&&(yP.allSettled&&rm(Li,"allSettled",function(){const t=am.apply(null,arguments).map(OP);return new Li(n=>{0===t.length&&n([]);let e=t.length;const i=new Array(e);t.forEach((r,o)=>Li.resolve(r).then(a=>i[o]={status:"fulfilled",value:a},a=>i[o]={status:"rejected",reason:a}).then(()=>--e||n(i)))})}),yP.any&&typeof AggregateError<"u"&&rm(Li,"any",function(){const t=am.apply(null,arguments).map(OP);return new Li((n,e)=>{0===t.length&&e(new AggregateError([]));let i=t.length;const r=new Array(i);t.forEach((o,a)=>Li.resolve(o).then(s=>n(s),s=>{r[a]=s,--i||e(new AggregateError(r))}))})}));const ku={awaits:0,echoes:0,id:0};var Cit=0,DP=[],Mz=0,EP=0,bit=0;function G0(t,n,e,i){var r=rr,o=Object.create(r);o.parent=r,o.ref=0,o.global=!1,o.id=++bit;var a=aw.env;o.env=xz?{Promise:Li,PromiseProp:{value:Li,configurable:!0,writable:!0},all:Li.all,race:Li.race,allSettled:Li.allSettled,any:Li.any,resolve:Li.resolve,reject:Li.reject,nthen:lce(a.nthen,o),gthen:lce(a.gthen,o)}:{},n&&hd(o,n),++r.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var s=lw(o,t,e,i);return 0===o.ref&&o.finalize(),s}function sw(){return ku.id||(ku.id=++Cit),++ku.awaits,ku.echoes+=100,ku.id}function sm(){return!!ku.awaits&&(0==--ku.awaits&&(ku.id=0),ku.echoes=100*ku.awaits,!0)}function OP(t){return ku.echoes&&t&&t.constructor===yP?(sw(),t.then(n=>(sm(),n),n=>(sm(),sl(n)))):t}function xit(t){++EP,ku.echoes&&0!=--ku.echoes||(ku.echoes=ku.id=0),DP.push(rr),j0(t,!0)}function wit(){var t=DP[DP.length-1];DP.pop(),j0(t,!1)}function j0(t,n){var e=rr;if((n?!ku.echoes||Mz++&&t===rr:!Mz||--Mz&&t===rr)||sce(n?xit.bind(null,t):wit),t!==rr&&(rr=t,e===aw&&(aw.env=ace()),xz)){var i=aw.env.Promise,r=t.env;vP.then=r.nthen,i.prototype.then=r.gthen,(e.global||t.global)&&(Object.defineProperty(Pa,"Promise",r.PromiseProp),i.all=r.all,i.race=r.race,i.resolve=r.resolve,i.reject=r.reject,r.allSettled&&(i.allSettled=r.allSettled),r.any&&(i.any=r.any))}}function ace(){var t=Pa.Promise;return xz?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(Pa,"Promise"),all:t.all,race:t.race,allSettled:t.allSettled,any:t.any,resolve:t.resolve,reject:t.reject,nthen:vP.then,gthen:t.prototype.then}:{}}function lw(t,n,e,i,r){var o=rr;try{return j0(t,!0),n(e,i,r)}finally{j0(o,!1)}}function sce(t){ece.call(Cz,t)}function TP(t,n,e,i){return"function"!=typeof t?t:function(){var r=rr;e&&sw(),j0(n,!0);try{return t.apply(this,arguments)}finally{j0(r,!1),i&&sce(sm)}}}function lce(t,n){return function(e,i){return t.call(this,TP(e,n),TP(i,n))}}function uce(t,n){var e;try{e=n.onuncatched(t)}catch{}if(!1!==e)try{var i,r={promise:n,reason:t};if(Pa.document&&document.createEvent?((i=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),hd(i,r)):Pa.CustomEvent&&hd(i=new CustomEvent("unhandledrejection",{detail:r}),r),i&&Pa.dispatchEvent&&(dispatchEvent(i),!Pa.PromiseRejectionEvent&&Pa.onunhandledrejection))try{Pa.onunhandledrejection(i)}catch{}ug&&i&&!i.defaultPrevented&&console.warn(`Unhandled rejection: ${t.stack||t}`)}catch{}}-1===(""+ece).indexOf("[native code]")&&(sw=sm=ga);var sl=Li.reject;function Az(t,n,e,i){if(t.idbdb&&(t._state.openComplete||rr.letThrough||t._vip)){var r=t._createTransaction(n,e,t._dbSchema);try{r.create(),t._state.PR1398_maxLoop=3}catch(o){return o.name===vz.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>Az(t,n,e,i))):sl(o)}return r._promise(n,(o,a)=>G0(()=>(rr.trans=r,i(o,a,r)))).then(o=>r._completion.then(()=>o))}if(t._state.openComplete)return sl(new _r.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return sl(new _r.DatabaseClosed);t.open().catch(ga)}return t._state.dbReadyPromise.then(()=>Az(t,n,e,i))}const By=String.fromCharCode(65535),lm="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",vO=[],IP=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Sit=IP,Dit=IP,dce=t=>!/(dexie\.js|dexie\.min\.js)/.test(t);function Ny(t,n){return t?n?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:t:n}const cce={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function kP(t){return"string"!=typeof t||/\./.test(t)?n=>n:n=>(void 0===n[t]&&t in n&&delete(n=dO(n))[t],n)}class Eit{_trans(n,e,i){const r=this._tx||rr.trans,o=this.name;function a(l,u,f){if(!f.schema[o])throw new _r.NotFound("Table "+o+" not part of transaction");return e(f.idbtrans,f)}const s=mO();try{return r&&r.db===this.db?r===rr.trans?r._promise(n,a,i):G0(()=>r._promise(n,a,i),{trans:r,transless:rr.transless||rr}):Az(this.db,n,[this.name],a)}finally{s&&_O()}}get(n,e){return n&&n.constructor===Object?this.where(n).first(e):this._trans("readonly",i=>this.core.get({trans:i,key:n}).then(r=>this.hook.reading.fire(r))).then(e)}where(n){if("string"==typeof n)return new this.db.WhereClause(this,n);if(Iu(n))return new this.db.WhereClause(this,`[${n.join("+")}]`);const e=Hs(n);if(1===e.length)return this.where(e[0]).equals(n[e[0]]);const i=this.schema.indexes.concat(this.schema.primKey).filter(u=>u.compound&&e.every(f=>u.keyPath.indexOf(f)>=0)&&u.keyPath.every(f=>e.indexOf(f)>=0))[0];if(i&&this.db._maxKey!==By)return this.where(i.name).equals(i.keyPath.map(u=>n[u]));!i&&ug&&console.warn(`The query ${JSON.stringify(n)} on ${this.name} would benefit of a compound index [${e.join("+")}]`);const{idxByName:r}=this.schema,o=this.db._deps.indexedDB;function a(u,f){try{return 0===o.cmp(u,f)}catch{return!1}}const[s,l]=e.reduce(([u,f],S)=>{const T=r[S],R=n[S];return[u||T,u||!T?Ny(f,T&&T.multi?L=>{const z=om(L,S);return Iu(z)&&z.some(j=>a(R,j))}:L=>a(R,om(L,S))):f]},[null,null]);return s?this.where(s.name).equals(n[s.keyPath]).filter(l):i?this.filter(l):this.where(e).equals("")}filter(n){return this.toCollection().and(n)}count(n){return this.toCollection().count(n)}offset(n){return this.toCollection().offset(n)}limit(n){return this.toCollection().limit(n)}each(n){return this.toCollection().each(n)}toArray(n){return this.toCollection().toArray(n)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(n){return new this.db.Collection(new this.db.WhereClause(this,Iu(n)?`[${n.join("+")}]`:n))}reverse(){return this.toCollection().reverse()}mapToClass(n){this.schema.mappedClass=n;const e=i=>{if(!i)return i;const r=Object.create(n.prototype);for(var o in i)if(wc(i,o))try{r[o]=i[o]}catch{}return r};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=e,this.hook("reading",e),n}defineClass(){return this.mapToClass(function(n){hd(this,n)})}add(n,e){const{auto:i,keyPath:r}=this.schema.primKey;let o=n;return r&&i&&(o=kP(r)(n)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"add",keys:null!=e?[e]:null,values:[o]})).then(a=>a.numFailures?Li.reject(a.failures[0]):a.lastResult).then(a=>{if(r)try{lp(n,r,a)}catch{}return a})}update(n,e){if("object"!=typeof n||Iu(n))return this.where(":id").equals(n).modify(e);{const i=om(n,this.schema.primKey.keyPath);if(void 0===i)return sl(new _r.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof e?Hs(e).forEach(r=>{lp(n,r,e[r])}):e(n,{value:n,primKey:i})}catch{}return this.where(":id").equals(i).modify(e)}}put(n,e){const{auto:i,keyPath:r}=this.schema.primKey;let o=n;return r&&i&&(o=kP(r)(n)),this._trans("readwrite",a=>this.core.mutate({trans:a,type:"put",values:[o],keys:null!=e?[e]:null})).then(a=>a.numFailures?Li.reject(a.failures[0]):a.lastResult).then(a=>{if(r)try{lp(n,r,a)}catch{}return a})}delete(n){return this._trans("readwrite",e=>this.core.mutate({trans:e,type:"delete",keys:[n]})).then(e=>e.numFailures?Li.reject(e.failures[0]):void 0)}clear(){return this._trans("readwrite",n=>this.core.mutate({trans:n,type:"deleteRange",range:cce})).then(n=>n.numFailures?Li.reject(n.failures[0]):void 0)}bulkGet(n){return this._trans("readonly",e=>this.core.getMany({keys:n,trans:e}).then(i=>i.map(r=>this.hook.reading.fire(r))))}bulkAdd(n,e,i){const r=Array.isArray(e)?e:void 0,o=(i=i||(r?void 0:e))?i.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:s,keyPath:l}=this.schema.primKey;if(l&&r)throw new _r.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(r&&r.length!==n.length)throw new _r.InvalidArgument("Arguments objects and keys must have the same length");const u=n.length;let f=l&&s?n.map(kP(l)):n;return this.core.mutate({trans:a,type:"add",keys:r,values:f,wantResults:o}).then(({numFailures:S,results:T,lastResult:R,failures:L})=>{if(0===S)return o?T:R;throw new cO(`${this.name}.bulkAdd(): ${S} of ${u} operations failed`,L)})})}bulkPut(n,e,i){const r=Array.isArray(e)?e:void 0,o=(i=i||(r?void 0:e))?i.allKeys:void 0;return this._trans("readwrite",a=>{const{auto:s,keyPath:l}=this.schema.primKey;if(l&&r)throw new _r.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(r&&r.length!==n.length)throw new _r.InvalidArgument("Arguments objects and keys must have the same length");const u=n.length;let f=l&&s?n.map(kP(l)):n;return this.core.mutate({trans:a,type:"put",keys:r,values:f,wantResults:o}).then(({numFailures:S,results:T,lastResult:R,failures:L})=>{if(0===S)return o?T:R;throw new cO(`${this.name}.bulkPut(): ${S} of ${u} operations failed`,L)})})}bulkDelete(n){const e=n.length;return this._trans("readwrite",i=>this.core.mutate({trans:i,type:"delete",keys:n})).then(({numFailures:i,lastResult:r,failures:o})=>{if(0===i)return r;throw new cO(`${this.name}.bulkDelete(): ${i} of ${e} operations failed`,o)})}}function yO(t){var n={},e=function(s,l){if(l){for(var u=arguments.length,f=new Array(u-1);--u;)f[u-1]=arguments[u];return n[s].subscribe.apply(null,f),t}if("string"==typeof s)return n[s]};e.addEventType=o;for(var i=1,r=arguments.length;i<r;++i)o(arguments[i]);return e;function o(s,l,u){if("object"==typeof s)return a(s);l||(l=_it),u||(u=ga);var f={subscribers:[],fire:u,subscribe:function(S){-1===f.subscribers.indexOf(S)&&(f.subscribers.push(S),f.fire=l(f.fire,S))},unsubscribe:function(S){f.subscribers=f.subscribers.filter(function(T){return T!==S}),f.fire=f.subscribers.reduce(l,u)}};return n[s]=e[s]=f,f}function a(s){Hs(s).forEach(function(l){var u=s[l];if(Iu(u))o(l,s[l][0],s[l][1]);else{if("asap"!==u)throw new _r.InvalidArgument("Invalid event config");var f=o(l,hO,function(){for(var S=arguments.length,T=new Array(S);S--;)T[S]=arguments[S];f.subscribers.forEach(function(R){Gde(function(){R.apply(null,T)})})})}})}}function CO(t,n){return iw(n).from({prototype:t}),n}function uw(t,n){return!(t.filter||t.algorithm||t.or)&&(n?t.justLimit:!t.replayFilter)}function Fz(t,n){t.filter=Ny(t.filter,n)}function Pz(t,n,e){var i=t.replayFilter;t.replayFilter=i?()=>Ny(i(),n()):n,t.justLimit=e&&!i}function MP(t,n){if(t.isPrimKey)return n.primaryKey;const e=n.getIndexByKeyPath(t.index);if(!e)throw new _r.Schema("KeyPath "+t.index+" on object store "+n.name+" is not indexed");return e}function hce(t,n,e){const i=MP(t,n.schema);return n.openCursor({trans:e,values:!t.keysOnly,reverse:"prev"===t.dir,unique:!!t.unique,query:{index:i,range:t.range}})}function AP(t,n,e,i){const r=t.replayFilter?Ny(t.filter,t.replayFilter()):t.filter;if(t.or){const o={},a=(s,l,u)=>{if(!r||r(l,u,T=>l.stop(T),T=>l.fail(T))){var f=l.primaryKey,S=""+f;"[object ArrayBuffer]"===S&&(S=""+new Uint8Array(f)),wc(o,S)||(o[S]=!0,n(s,l,u))}};return Promise.all([t.or._iterate(a,e),pce(hce(t,i,e),t.algorithm,a,!t.keysOnly&&t.valueMapper)])}return pce(hce(t,i,e),Ny(t.algorithm,r),n,!t.keysOnly&&t.valueMapper)}function pce(t,n,e,i){var r=Va(i?(o,a,s)=>e(i(o),a,s):e);return t.then(o=>{if(o)return o.start(()=>{var a=()=>o.continue();n&&!n(o,s=>a=s,s=>{o.stop(s),a=ga},s=>{o.fail(s),a=ga})||r(o.value,o,s=>a=s),a()})})}function pd(t,n){try{const e=gce(t),i=gce(n);if(e!==i)return"Array"===e?1:"Array"===i?-1:"binary"===e?1:"binary"===i?-1:"string"===e?1:"string"===i?-1:"Date"===e?1:"Date"!==i?NaN:-1;switch(e){case"number":case"Date":case"string":return t>n?1:t<n?-1:0;case"binary":return function(r,o){const a=r.length,s=o.length,l=a<s?a:s;for(let u=0;u<l;++u)if(r[u]!==o[u])return r[u]<o[u]?-1:1;return a===s?0:a<s?-1:1}(fce(t),fce(n));case"Array":return function(r,o){const a=r.length,s=o.length,l=a<s?a:s;for(let u=0;u<l;++u){const f=pd(r[u],o[u]);if(0!==f)return f}return a===s?0:a<s?-1:1}(t,n)}}catch{}return NaN}function gce(t){const n=typeof t;if("object"!==n)return n;if(ArrayBuffer.isView(t))return"binary";const e=pz(t);return"ArrayBuffer"===e?"binary":e}function fce(t){return t instanceof Uint8Array?t:ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t)}class Oit{_read(n,e){var i=this._ctx;return i.error?i.table._trans(null,sl.bind(null,i.error)):i.table._trans("readonly",n).then(e)}_write(n){var e=this._ctx;return e.error?e.table._trans(null,sl.bind(null,e.error)):e.table._trans("readwrite",n,"locked")}_addAlgorithm(n){var e=this._ctx;e.algorithm=Ny(e.algorithm,n)}_iterate(n,e){return AP(this._ctx,n,e,this._ctx.table.core)}clone(n){var e=Object.create(this.constructor.prototype),i=Object.create(this._ctx);return n&&hd(i,n),e._ctx=i,e}raw(){return this._ctx.valueMapper=null,this}each(n){var e=this._ctx;return this._read(i=>AP(e,n,i,e.table.core))}count(n){return this._read(e=>{const i=this._ctx,r=i.table.core;if(uw(i,!0))return r.count({trans:e,query:{index:MP(i,r.schema),range:i.range}}).then(a=>Math.min(a,i.limit));var o=0;return AP(i,()=>(++o,!1),e,r).then(()=>o)}).then(n)}sortBy(n,e){const i=n.split(".").reverse(),r=i[0],o=i.length-1;function a(u,f){return f?a(u[i[f]],f-1):u[r]}var s="next"===this._ctx.dir?1:-1;function l(u,f){var S=a(u,o),T=a(f,o);return S<T?-s:S>T?s:0}return this.toArray(function(u){return u.sort(l)}).then(e)}toArray(n){return this._read(e=>{var i=this._ctx;if("next"===i.dir&&uw(i,!0)&&i.limit>0){const{valueMapper:r}=i,o=MP(i,i.table.core.schema);return i.table.core.query({trans:e,limit:i.limit,values:!0,query:{index:o,range:i.range}}).then(({result:a})=>r?a.map(r):a)}{const r=[];return AP(i,o=>r.push(o),e,i.table.core).then(()=>r)}},n)}offset(n){var e=this._ctx;return n<=0||(e.offset+=n,uw(e)?Pz(e,()=>{var i=n;return(r,o)=>0===i||(1===i?(--i,!1):(o(()=>{r.advance(i),i=0}),!1))}):Pz(e,()=>{var i=n;return()=>--i<0})),this}limit(n){return this._ctx.limit=Math.min(this._ctx.limit,n),Pz(this._ctx,()=>{var e=n;return function(i,r,o){return--e<=0&&r(o),e>=0}},!0),this}until(n,e){return Fz(this._ctx,function(i,r,o){return!n(i.value)||(r(o),e)}),this}first(n){return this.limit(1).toArray(function(e){return e[0]}).then(n)}last(n){return this.reverse().first(n)}filter(n){var e;return Fz(this._ctx,function(r){return n(r.value)}),(e=this._ctx).isMatch=Ny(e.isMatch,n),this}and(n){return this.filter(n)}or(n){return new this.db.WhereClause(this._ctx.table,n,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(n){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each(function(i,r){n(r.key,r)})}eachUniqueKey(n){return this._ctx.unique="unique",this.eachKey(n)}eachPrimaryKey(n){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each(function(i,r){n(r.primaryKey,r)})}keys(n){var e=this._ctx;e.keysOnly=!e.isMatch;var i=[];return this.each(function(r,o){i.push(o.key)}).then(function(){return i}).then(n)}primaryKeys(n){var e=this._ctx;if("next"===e.dir&&uw(e,!0)&&e.limit>0)return this._read(r=>{var o=MP(e,e.table.core.schema);return e.table.core.query({trans:r,values:!1,limit:e.limit,query:{index:o,range:e.range}})}).then(({result:r})=>r).then(n);e.keysOnly=!e.isMatch;var i=[];return this.each(function(r,o){i.push(o.primaryKey)}).then(function(){return i}).then(n)}uniqueKeys(n){return this._ctx.unique="unique",this.keys(n)}firstKey(n){return this.limit(1).keys(function(e){return e[0]}).then(n)}lastKey(n){return this.reverse().firstKey(n)}distinct(){var n=this._ctx,e=n.index&&n.table.schema.idxByName[n.index];if(!e||!e.multi)return this;var i={};return Fz(this._ctx,function(r){var o=r.primaryKey.toString(),a=wc(i,o);return i[o]=!0,!a}),this}modify(n){var e=this._ctx;return this._write(i=>{var r;if("function"==typeof n)r=n;else{var o=Hs(n),a=o.length;r=function(z){for(var j=!1,Y=0;Y<a;++Y){var ie=o[Y],te=n[ie];om(z,ie)!==te&&(lp(z,ie,te),j=!0)}return j}}const s=e.table.core,{outbound:l,extractKey:u}=s.schema.primaryKey,f=this.db._options.modifyChunkSize||200,S=[];let T=0;const R=[],L=(z,j)=>{const{failures:Y,numFailures:ie}=j;T+=z-ie;for(let te of Hs(Y))S.push(Y[te])};return this.clone().primaryKeys().then(z=>{const j=Y=>{const ie=Math.min(f,z.length-Y);return s.getMany({trans:i,keys:z.slice(Y,Y+ie),cache:"immutable"}).then(te=>{const re=[],he=[],fe=l?[]:null,Te=[];for(let He=0;He<ie;++He){const Ze=te[He],at={value:dO(Ze),primKey:z[Y+He]};!1!==r.call(at,at.value,at)&&(null==at.value?Te.push(z[Y+He]):l||0===pd(u(Ze),u(at.value))?(he.push(at.value),l&&fe.push(z[Y+He])):(Te.push(z[Y+He]),re.push(at.value)))}const Re=uw(e)&&e.limit===1/0&&("function"!=typeof n||n===Rz)&&{index:e.index,range:e.range};return Promise.resolve(re.length>0&&s.mutate({trans:i,type:"add",values:re}).then(He=>{for(let Ze in He.failures)Te.splice(parseInt(Ze),1);L(re.length,He)})).then(()=>(he.length>0||Re&&"object"==typeof n)&&s.mutate({trans:i,type:"put",keys:fe,values:he,criteria:Re,changeSpec:"function"!=typeof n&&n}).then(He=>L(he.length,He))).then(()=>(Te.length>0||Re&&n===Rz)&&s.mutate({trans:i,type:"delete",keys:Te,criteria:Re}).then(He=>L(Te.length,He))).then(()=>z.length>Y+ie&&j(Y+f))})};return j(0).then(()=>{if(S.length>0)throw new mP("Error modifying one or more objects",S,T,R);return z.length})})})}delete(){var n=this._ctx,e=n.range;return uw(n)&&(n.isPrimKey&&!Dit||3===e.type)?this._write(i=>{const{primaryKey:r}=n.table.core.schema,o=e;return n.table.core.count({trans:i,query:{index:r,range:o}}).then(a=>n.table.core.mutate({trans:i,type:"deleteRange",range:o}).then(({failures:s,numFailures:f})=>{if(f)throw new mP("Could not delete some values",Object.keys(s).map(S=>s[S]),a-f);return a-f}))}):this.modify(Rz)}}const Rz=(t,n)=>n.value=null;function Tit(t,n){return t<n?-1:t===n?0:1}function Iit(t,n){return t>n?-1:t===n?0:1}function Sc(t,n,e){var i=t instanceof _ce?new t.Collection(t):t;return i._ctx.error=e?new e(n):new TypeError(n),i}function dw(t){return new t.Collection(t,()=>mce("")).limit(0)}function kit(t,n,e,i,r,o){for(var a=Math.min(t.length,i.length),s=-1,l=0;l<a;++l){var u=n[l];if(u!==i[l])return r(t[l],e[l])<0?t.substr(0,l)+e[l]+e.substr(l+1):r(t[l],i[l])<0?t.substr(0,l)+i[l]+e.substr(l+1):s>=0?t.substr(0,s)+n[s]+e.substr(s+1):null;r(t[l],u)<0&&(s=l)}return a<i.length&&"next"===o?t+e.substr(t.length):a<t.length&&"prev"===o?t.substr(0,e.length):s<0?null:t.substr(0,s)+i[s]+e.substr(s+1)}function FP(t,n,e,i){var r,o,a,s,l,u,f,S=e.length;if(!e.every(z=>"string"==typeof z))return Sc(t,"String expected.");function T(z){r="next"===z?ie=>ie.toUpperCase():ie=>ie.toLowerCase(),o="next"===z?ie=>ie.toLowerCase():ie=>ie.toUpperCase(),a="next"===z?Tit:Iit;var j=e.map(function(Y){return{lower:o(Y),upper:r(Y)}}).sort(function(Y,ie){return a(Y.lower,ie.lower)});s=j.map(function(Y){return Y.upper}),l=j.map(function(Y){return Y.lower}),u=z,f="next"===z?"":i}T("next");var R=new t.Collection(t,()=>K0(s[0],l[S-1]+i));R._ondirectionchange=function(z){T(z)};var L=0;return R._addAlgorithm(function(z,j,Y){var ie=z.key;if("string"!=typeof ie)return!1;var te=o(ie);if(n(te,l,L))return!0;for(var re=null,he=L;he<S;++he){var fe=kit(ie,te,s[he],l[he],a,u);null===fe&&null===re?L=he+1:(null===re||a(re,fe)>0)&&(re=fe)}return j(null!==re?function(){z.continue(re+f)}:Y),!1}),R}function K0(t,n,e,i){return{type:2,lower:t,upper:n,lowerOpen:e,upperOpen:i}}function mce(t){return{type:1,lower:t,upper:t}}class _ce{get Collection(){return this._ctx.table.db.Collection}between(n,e,i,r){i=!1!==i,r=!0===r;try{return this._cmp(n,e)>0||0===this._cmp(n,e)&&(i||r)&&(!i||!r)?dw(this):new this.Collection(this,()=>K0(n,e,!i,!r))}catch{return Sc(this,lm)}}equals(n){return null==n?Sc(this,lm):new this.Collection(this,()=>mce(n))}above(n){return null==n?Sc(this,lm):new this.Collection(this,()=>K0(n,void 0,!0))}aboveOrEqual(n){return null==n?Sc(this,lm):new this.Collection(this,()=>K0(n,void 0,!1))}below(n){return null==n?Sc(this,lm):new this.Collection(this,()=>K0(void 0,n,!1,!0))}belowOrEqual(n){return null==n?Sc(this,lm):new this.Collection(this,()=>K0(void 0,n))}startsWith(n){return"string"!=typeof n?Sc(this,"String expected."):this.between(n,n+By,!0,!0)}startsWithIgnoreCase(n){return""===n?this.startsWith(n):FP(this,(e,i)=>0===e.indexOf(i[0]),[n],By)}equalsIgnoreCase(n){return FP(this,(e,i)=>e===i[0],[n],"")}anyOfIgnoreCase(){var n=am.apply(rw,arguments);return 0===n.length?dw(this):FP(this,(e,i)=>-1!==i.indexOf(e),n,"")}startsWithAnyOfIgnoreCase(){var n=am.apply(rw,arguments);return 0===n.length?dw(this):FP(this,(e,i)=>i.some(r=>0===e.indexOf(r)),n,By)}anyOf(){const n=am.apply(rw,arguments);let e=this._cmp;try{n.sort(e)}catch{return Sc(this,lm)}if(0===n.length)return dw(this);const i=new this.Collection(this,()=>K0(n[0],n[n.length-1]));i._ondirectionchange=o=>{e="next"===o?this._ascending:this._descending,n.sort(e)};let r=0;return i._addAlgorithm((o,a,s)=>{const l=o.key;for(;e(l,n[r])>0;)if(++r,r===n.length)return a(s),!1;return 0===e(l,n[r])||(a(()=>{o.continue(n[r])}),!1)}),i}notEqual(n){return this.inAnyRange([[-1/0,n],[n,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const n=am.apply(rw,arguments);if(0===n.length)return new this.Collection(this);try{n.sort(this._ascending)}catch{return Sc(this,lm)}const e=n.reduce((i,r)=>i?i.concat([[i[i.length-1][1],r]]):[[-1/0,r]],null);return e.push([n[n.length-1],this.db._maxKey]),this.inAnyRange(e,{includeLowers:!1,includeUppers:!1})}inAnyRange(n,e){const i=this._cmp,r=this._ascending,o=this._descending,a=this._min,s=this._max;if(0===n.length)return dw(this);if(!n.every(ie=>void 0!==ie[0]&&void 0!==ie[1]&&r(ie[0],ie[1])<=0))return Sc(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",_r.InvalidArgument);const l=!e||!1!==e.includeLowers,u=e&&!0===e.includeUppers;let f,S=r;function T(ie,te){return S(ie[0],te[0])}try{f=n.reduce(function(ie,te){let re=0,he=ie.length;for(;re<he;++re){const fe=ie[re];if(i(te[0],fe[1])<0&&i(te[1],fe[0])>0){fe[0]=a(fe[0],te[0]),fe[1]=s(fe[1],te[1]);break}}return re===he&&ie.push(te),ie},[]),f.sort(T)}catch{return Sc(this,lm)}let R=0;const L=u?ie=>r(ie,f[R][1])>0:ie=>r(ie,f[R][1])>=0,z=l?ie=>o(ie,f[R][0])>0:ie=>o(ie,f[R][0])>=0;let j=L;const Y=new this.Collection(this,()=>K0(f[0][0],f[f.length-1][1],!l,!u));return Y._ondirectionchange=ie=>{"next"===ie?(j=L,S=r):(j=z,S=o),f.sort(T)},Y._addAlgorithm((ie,te,re)=>{for(var he=ie.key;j(he);)if(++R,R===f.length)return te(re),!1;return!((L(fe=he)||z(fe))&&(0===this._cmp(he,f[R][1])||0===this._cmp(he,f[R][0])||te(()=>{ie.continue(S===r?f[R][0]:f[R][1])}),1));var fe}),Y}startsWithAnyOf(){const n=am.apply(rw,arguments);return n.every(e=>"string"==typeof e)?0===n.length?dw(this):this.inAnyRange(n.map(e=>[e,e+By])):Sc(this,"startsWithAnyOf() only works with strings")}}function dg(t){return Va(function(n){return bO(n),t(n.target.error),!1})}function bO(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault()}const $0=yO(null,"storagemutated");class Mit{_lock(){return uO(!rr.global),++this._reculock,1!==this._reculock||rr.global||(rr.lockOwnerFor=this),this}_unlock(){if(uO(!rr.global),0==--this._reculock)for(rr.global||(rr.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var n=this._blockedFuncs.shift();try{lw(n[1],n[0])}catch{}}return this}_locked(){return this._reculock&&rr.lockOwnerFor!==this}create(n){if(!this.mode)return this;const e=this.db.idbdb,i=this.db._state.dbOpenError;if(uO(!this.idbtrans),!n&&!e)switch(i&&i.name){case"DatabaseClosedError":throw new _r.DatabaseClosed(i);case"MissingAPIError":throw new _r.MissingAPI(i.message,i);default:throw new _r.OpenFailed(i)}if(!this.active)throw new _r.TransactionInactive;return uO(null===this._completion._state),(n=this.idbtrans=n||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):e.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Va(r=>{bO(r),this._reject(n.error)}),n.onabort=Va(r=>{bO(r),this.active&&this._reject(new _r.Abort(n.error)),this.active=!1,this.on("abort").fire(r)}),n.oncomplete=Va(()=>{this.active=!1,this._resolve(),"mutatedParts"in n&&$0.storagemutated.fire(n.mutatedParts)}),this}_promise(n,e,i){if("readwrite"===n&&"readwrite"!==this.mode)return sl(new _r.ReadOnly("Transaction is readonly"));if(!this.active)return sl(new _r.TransactionInactive);if(this._locked())return new Li((o,a)=>{this._blockedFuncs.push([()=>{this._promise(n,e,i).then(o,a)},rr])});if(i)return G0(()=>{var o=new Li((a,s)=>{this._lock();const l=e(a,s,this);l&&l.then&&l.then(a,s)});return o.finally(()=>this._unlock()),o._lib=!0,o});var r=new Li((o,a)=>{var s=e(o,a,this);s&&s.then&&s.then(o,a)});return r._lib=!0,r}_root(){return this.parent?this.parent._root():this}waitFor(n){var e=this._root();const i=Li.resolve(n);if(e._waitingFor)e._waitingFor=e._waitingFor.then(()=>i);else{e._waitingFor=i,e._waitingQueue=[];var r=e.idbtrans.objectStore(e.storeNames[0]);!function a(){for(++e._spinCount;e._waitingQueue.length;)e._waitingQueue.shift()();e._waitingFor&&(r.get(-1/0).onsuccess=a)}()}var o=e._waitingFor;return new Li((a,s)=>{i.then(l=>e._waitingQueue.push(Va(a.bind(null,l))),l=>e._waitingQueue.push(Va(s.bind(null,l)))).finally(()=>{e._waitingFor===o&&(e._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new _r.Abort))}table(n){const e=this._memoizedTables||(this._memoizedTables={});if(wc(e,n))return e[n];const i=this.schema[n];if(!i)throw new _r.NotFound("Table "+n+" not part of transaction");const r=new this.db.Table(n,i,this);return r.core=this.db.core.table(n),e[n]=r,r}}function Lz(t,n,e,i,r,o,a){return{name:t,keyPath:n,unique:e,multi:i,auto:r,compound:o,src:(e&&!a?"&":"")+(i?"*":"")+(r?"++":"")+vce(n)}}function vce(t){return"string"==typeof t?t:t?"["+[].join.call(t,"+")+"]":""}function yce(t,n,e){return{name:t,primKey:n,indexes:e,mappedClass:null,idxByName:jde(e,i=>[i.name,i])}}let xO=t=>{try{return t.only([[]]),xO=()=>[[]],[[]]}catch{return xO=()=>By,By}};function Bz(t){return null==t?()=>{}:"string"==typeof t?1===(n=t).split(".").length?e=>e[n]:e=>om(e,n):n=>om(n,t);var n}function Cce(t){return[].slice.call(t)}let Ait=0;function wO(t){return null==t?":id":"string"==typeof t?t:`[${t.join("+")}]`}function Fit(t,n,e){function i(l){if(3===l.type)return null;if(4===l.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:u,upper:f,lowerOpen:S,upperOpen:T}=l;return void 0===u?void 0===f?null:n.upperBound(f,!!T):void 0===f?n.lowerBound(u,!!S):n.bound(u,f,!!S,!!T)}const{schema:r,hasGetAll:o}=function(l,u){const f=Cce(l.objectStoreNames);return{schema:{name:l.name,tables:f.map(S=>u.objectStore(S)).map(S=>{const{keyPath:T,autoIncrement:R}=S,L=Iu(T),j={},Y={name:S.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==T,compound:L,keyPath:T,autoIncrement:R,unique:!0,extractKey:Bz(T)},indexes:Cce(S.indexNames).map(ie=>S.index(ie)).map(ie=>{const{name:te,unique:re,multiEntry:he,keyPath:fe}=ie,Te={name:te,compound:Iu(fe),keyPath:fe,unique:re,multiEntry:he,extractKey:Bz(fe)};return j[wO(fe)]=Te,Te}),getIndexByKeyPath:ie=>j[wO(ie)]};return j[":id"]=Y.primaryKey,null!=T&&(j[wO(T)]=Y.primaryKey),Y})},hasGetAll:f.length>0&&"getAll"in u.objectStore(f[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(t,e),a=r.tables.map(l=>function(u){const f=u.name;return{name:f,schema:u,mutate:function({trans:S,type:T,keys:R,values:L,range:z}){return new Promise((j,Y)=>{j=Va(j);const ie=S.objectStore(f),te=null==ie.keyPath,re="put"===T||"add"===T;if(!re&&"delete"!==T&&"deleteRange"!==T)throw new Error("Invalid operation type: "+T);const{length:he}=R||L||{length:1};if(R&&L&&R.length!==L.length)throw new Error("Given keys array must have same length as given values array.");if(0===he)return j({numFailures:0,failures:{},results:[],lastResult:void 0});let fe;const Te=[],Re=[];let He=0;const Ze=vt=>{++He,bO(vt)};if("deleteRange"===T){if(4===z.type)return j({numFailures:He,failures:Re,results:[],lastResult:void 0});Te.push(fe=3===z.type?ie.clear():ie.delete(i(z)))}else{const[vt,Bt]=re?te?[L,R]:[L,null]:[R,null];if(re)for(let St=0;St<he;++St)Te.push(fe=Bt&&void 0!==Bt[St]?ie[T](vt[St],Bt[St]):ie[T](vt[St])),fe.onerror=Ze;else for(let St=0;St<he;++St)Te.push(fe=ie[T](vt[St])),fe.onerror=Ze}const at=vt=>{const Bt=vt.target.result;Te.forEach((St,ct)=>null!=St.error&&(Re[ct]=St.error)),j({numFailures:He,failures:Re,results:"delete"===T?R:Te.map(St=>St.result),lastResult:Bt})};fe.onerror=vt=>{Ze(vt),at(vt)},fe.onsuccess=at})},getMany:({trans:S,keys:T})=>new Promise((R,L)=>{R=Va(R);const z=S.objectStore(f),j=T.length,Y=new Array(j);let ie,te=0,re=0;const he=Te=>{const Re=Te.target;Y[Re._pos]=Re.result,++re===te&&R(Y)},fe=dg(L);for(let Te=0;Te<j;++Te)null!=T[Te]&&(ie=z.get(T[Te]),ie._pos=Te,ie.onsuccess=he,ie.onerror=fe,++te);0===te&&R(Y)}),get:({trans:S,key:T})=>new Promise((R,L)=>{R=Va(R);const z=S.objectStore(f).get(T);z.onsuccess=j=>R(j.target.result),z.onerror=dg(L)}),query:(S=o,T=>new Promise((R,L)=>{R=Va(R);const{trans:z,values:j,limit:Y,query:ie}=T,te=Y===1/0?void 0:Y,{index:re,range:he}=ie,fe=z.objectStore(f),Te=re.isPrimaryKey?fe:fe.index(re.name),Re=i(he);if(0===Y)return R({result:[]});if(S){const He=j?Te.getAll(Re,te):Te.getAllKeys(Re,te);He.onsuccess=Ze=>R({result:Ze.target.result}),He.onerror=dg(L)}else{let He=0;const Ze=j||!("openKeyCursor"in Te)?Te.openCursor(Re):Te.openKeyCursor(Re),at=[];Ze.onsuccess=vt=>{const Bt=Ze.result;return Bt?(at.push(j?Bt.value:Bt.primaryKey),++He===Y?R({result:at}):void Bt.continue()):R({result:at})},Ze.onerror=dg(L)}})),openCursor:function({trans:S,values:T,query:R,reverse:L,unique:z}){return new Promise((j,Y)=>{j=Va(j);const{index:ie,range:te}=R,re=S.objectStore(f),he=ie.isPrimaryKey?re:re.index(ie.name),fe=L?z?"prevunique":"prev":z?"nextunique":"next",Te=T||!("openKeyCursor"in he)?he.openCursor(i(te),fe):he.openKeyCursor(i(te),fe);Te.onerror=dg(Y),Te.onsuccess=Va(Re=>{const He=Te.result;if(!He)return void j(null);He.___id=++Ait,He.done=!1;const Ze=He.continue.bind(He);let at=He.continuePrimaryKey;at&&(at=at.bind(He));const vt=He.advance.bind(He),Bt=()=>{throw new Error("Cursor not stopped")};He.trans=S,He.stop=He.continue=He.continuePrimaryKey=He.advance=()=>{throw new Error("Cursor not started")},He.fail=Va(Y),He.next=function(){let St=1;return this.start(()=>St--?this.continue():this.stop()).then(()=>this)},He.start=St=>{const ct=new Promise((Kt,on)=>{Kt=Va(Kt),Te.onerror=dg(on),He.fail=on,He.stop=hn=>{He.stop=He.continue=He.continuePrimaryKey=He.advance=Bt,Kt(hn)}}),Nt=()=>{if(Te.result)try{St()}catch(Kt){He.fail(Kt)}else He.done=!0,He.start=()=>{throw new Error("Cursor behind last entry")},He.stop()};return Te.onsuccess=Va(Kt=>{Te.onsuccess=Nt,Nt()}),He.continue=Ze,He.continuePrimaryKey=at,He.advance=vt,Nt(),ct},j(He)},Y)})},count({query:S,trans:T}){const{index:R,range:L}=S;return new Promise((z,j)=>{const Y=T.objectStore(f),ie=R.isPrimaryKey?Y:Y.index(R.name),te=i(L),re=te?ie.count(te):ie.count();re.onsuccess=Va(he=>z(he.target.result)),re.onerror=dg(j)})}};var S}(l)),s={};return a.forEach(l=>s[l.name]=l),{stack:"dbcore",transaction:t.transaction.bind(t),table(l){if(!s[l])throw new Error(`Table '${l}' not found`);return s[l]},MIN_KEY:-1/0,MAX_KEY:xO(n),schema:r}}function Nz({_novip:t},n){const i=function(r,o,{IDBKeyRange:a},l){return{dbcore:(f=Fit(o,a,l),S=r.dbcore,S.reduce((T,{create:R})=>({...T,...R(T)}),f))};var f,S}(t._middlewares,n.db,t._deps,n);t.core=i.dbcore,t.tables.forEach(r=>{const o=r.name;t.core.schema.tables.some(a=>a.name===o)&&(r.core=t.core.table(o),t[o]instanceof t.Table&&(t[o].core=r.core))})}function PP({_novip:t},n,e,i){e.forEach(r=>{const o=i[r];n.forEach(a=>{const s=cz(a,r);(!s||"value"in s&&void 0===s.value)&&(a===t.Transaction.prototype||a instanceof t.Transaction?rm(a,r,{get(){return this.table(r)},set(l){Ude(this,r,{value:l,writable:!0,configurable:!0,enumerable:!0})}}):a[r]=new t.Table(r,o))})})}function Vz({_novip:t},n){n.forEach(e=>{for(let i in e)e[i]instanceof t.Table&&delete e[i]})}function Pit(t,n){return t._cfg.version-n._cfg.version}function bce(t,n){const e={del:[],add:[],change:[]};let i;for(i in t)n[i]||e.del.push(i);for(i in n){const r=t[i],o=n[i];if(r){const a={name:i,def:o,recreate:!1,del:[],add:[],change:[]};if(""+(r.primKey.keyPath||"")!=""+(o.primKey.keyPath||"")||r.primKey.auto!==o.primKey.auto&&!IP)a.recreate=!0,e.change.push(a);else{const s=r.idxByName,l=o.idxByName;let u;for(u in s)l[u]||a.del.push(u);for(u in l){const f=s[u],S=l[u];f?f.src!==S.src&&a.change.push(S):a.add.push(S)}(a.del.length>0||a.add.length>0||a.change.length>0)&&e.change.push(a)}}else e.add.push([i,o])}return e}function Hz(t,n,e,i){const r=t.db.createObjectStore(n,e.keyPath?{keyPath:e.keyPath,autoIncrement:e.auto}:{autoIncrement:e.auto});return i.forEach(o=>zz(r,o)),r}function zz(t,n){t.createIndex(n.name,n.keyPath,{unique:n.unique,multiEntry:n.multi})}function Uz(t,n,e){const i={};return fP(n.objectStoreNames,0).forEach(r=>{const o=e.objectStore(r);let a=o.keyPath;const s=Lz(vce(a),a||"",!1,!1,!!o.autoIncrement,a&&"string"!=typeof a,!0),l=[];for(let f=0;f<o.indexNames.length;++f){const S=o.index(o.indexNames[f]);a=S.keyPath;var u=Lz(S.name,a,!!S.unique,!!S.multiEntry,!1,a&&"string"!=typeof a,!1);l.push(u)}i[r]=yce(r,s,l)}),i}function Wz({_novip:t},n,e){const i=e.db.objectStoreNames;for(let r=0;r<i.length;++r){const o=i[r],a=e.objectStore(o);t._hasGetAll="getAll"in a;for(let s=0;s<a.indexNames.length;++s){const l=a.indexNames[s],u=a.index(l).keyPath,f="string"==typeof u?u:"["+fP(u).join("+")+"]";if(n[o]){const S=n[o].idxByName[f];S&&(S.name=l,delete n[o].idxByName[f],n[o].idxByName[l]=S)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&Pa.WorkerGlobalScope&&Pa instanceof Pa.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(t._hasGetAll=!1)}class Lit{_parseStoresSpec(n,e){Hs(n).forEach(i=>{if(null!==n[i]){var r=n[i].split(",").map((a,s)=>{const l=(a=a.trim()).replace(/([&*]|\+\+)/g,""),u=/^\[/.test(l)?l.match(/^\[(.*)\]$/)[1].split("+"):l;return Lz(l,u||null,/\&/.test(a),/\*/.test(a),/\+\+/.test(a),Iu(u),0===s)}),o=r.shift();if(o.multi)throw new _r.Schema("Primary key cannot be multi-valued");r.forEach(a=>{if(a.auto)throw new _r.Schema("Only primary key can be marked as autoIncrement (++)");if(!a.keyPath)throw new _r.Schema("Index must have a name and cannot be an empty string")}),e[i]=yce(i,o,r)}})}stores(n){const e=this.db;this._cfg.storesSource=this._cfg.storesSource?hd(this._cfg.storesSource,n):n;const r={};let o={};return e._versions.forEach(a=>{hd(r,a._cfg.storesSource),o=a._cfg.dbschema={},a._parseStoresSpec(r,o)}),e._dbSchema=o,Vz(e,[e._allTables,e,e.Transaction.prototype]),PP(e,[e._allTables,e,e.Transaction.prototype,this._cfg.tables],Hs(o),o),e._storeNames=Hs(o),this}upgrade(n){return this._cfg.contentUpgrade=yz(this._cfg.contentUpgrade||ga,n),this}}function Gz(t,n){let e=t._dbNamesDB;return e||(e=t._dbNamesDB=new q0("__dbnames",{addons:[],indexedDB:t,IDBKeyRange:n}),e.version(1).stores({dbnames:"name"})),e.table("dbnames")}function jz(t){return t&&"function"==typeof t.databases}function Kz(t){return G0(function(){return rr.letThrough=!0,t()})}function Bit(){var t;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(n){var e=function(){return indexedDB.databases().finally(n)};t=setInterval(e,100),e()}).finally(function(){return clearInterval(t)}):Promise.resolve()}function $z(t){var n=o=>t.next(o),e=r(n),i=r(o=>t.throw(o));function r(o){return a=>{var s=o(a),l=s.value;return s.done?l:l&&"function"==typeof l.then?l.then(e,i):Iu(l)?Promise.all(l).then(e,i):e(l)}}return r(n)()}function Vit(t,n,e){var i=arguments.length;if(i<2)throw new _r.InvalidArgument("Too few arguments");for(var r=new Array(i-1);--i;)r[i-1]=arguments[i];e=r.pop();var o=$de(r);return[t,o,e]}function xce(t,n,e,i,r){return Li.resolve().then(()=>{const o=rr.transless||rr,a=t._createTransaction(n,e,t._dbSchema,i),s={trans:a,transless:o};if(i)a.idbtrans=i.idbtrans;else try{a.create(),t._state.PR1398_maxLoop=3}catch(S){return S.name===vz.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then(()=>xce(t,n,e,null,r))):sl(S)}const l=fz(r);let u;l&&sw();const f=Li.follow(()=>{if(u=r.call(a,a),u)if(l){var S=sm.bind(null,null);u.then(S,S)}else"function"==typeof u.next&&"function"==typeof u.throw&&(u=$z(u))},s);return(u&&"function"==typeof u.then?Li.resolve(u).then(S=>a.active?S:sl(new _r.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):f.then(()=>u)).then(S=>(i&&a._resolve(),a._completion.then(()=>S))).catch(S=>(a._reject(S),sl(S)))})}function RP(t,n,e){const i=Iu(t)?t.slice():[t];for(let r=0;r<e;++r)i.push(n);return i}const Hit={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(t){return{...t,table(n){const e=t.table(n),{schema:i}=e,r={},o=[];function a(f,S,T){const R=wO(f),L=r[R]=r[R]||[],z=null==f?0:"string"==typeof f?1:f.length,j=S>0,Y={...T,isVirtual:j,keyTail:S,keyLength:z,extractKey:Bz(f),unique:!j&&T.unique};return L.push(Y),Y.isPrimaryKey||o.push(Y),z>1&&a(2===z?f[0]:f.slice(0,z-1),S+1,T),L.sort((ie,te)=>ie.keyTail-te.keyTail),Y}const s=a(i.primaryKey.keyPath,0,i.primaryKey);r[":id"]=[s];for(const f of i.indexes)a(f.keyPath,0,f);function l(f){const S=f.query.index;return S.isVirtual?{...f,query:{index:S,range:(T=f.query.range,R=S.keyTail,{type:1===T.type?2:T.type,lower:RP(T.lower,T.lowerOpen?t.MAX_KEY:t.MIN_KEY,R),lowerOpen:!0,upper:RP(T.upper,T.upperOpen?t.MIN_KEY:t.MAX_KEY,R),upperOpen:!0})}}:f;var T,R}return{...e,schema:{...i,primaryKey:s,indexes:o,getIndexByKeyPath:function(f){const S=r[wO(f)];return S&&S[0]}},count:f=>e.count(l(f)),query:f=>e.query(l(f)),openCursor(f){const{keyTail:S,isVirtual:T,keyLength:R}=f.query.index;return T?e.openCursor(l(f)).then(L=>{return L&&(z=L,Object.create(z,{continue:{value:function(Y){null!=Y?z.continue(RP(Y,f.reverse?t.MAX_KEY:t.MIN_KEY,S)):f.unique?z.continue(z.key.slice(0,R).concat(f.reverse?t.MIN_KEY:t.MAX_KEY,S)):z.continue()}},continuePrimaryKey:{value(Y,ie){z.continuePrimaryKey(RP(Y,t.MAX_KEY,S),ie)}},primaryKey:{get:()=>z.primaryKey},key:{get(){const Y=z.key;return 1===R?Y[0]:Y.slice(0,R)}},value:{get:()=>z.value}}));var z}):e.openCursor(f)}}}}}};function qz(t,n,e,i){return e=e||{},i=i||"",Hs(t).forEach(r=>{if(wc(n,r)){var o=t[r],a=n[r];if("object"==typeof o&&"object"==typeof a&&o&&a){const s=pz(o);s!==pz(a)?e[i+r]=n[r]:"Object"===s?qz(o,a,e,i+r+"."):o!==a&&(e[i+r]=n[r])}else o!==a&&(e[i+r]=n[r])}else e[i+r]=void 0}),Hs(n).forEach(r=>{wc(t,r)||(e[i+r]=n[r])}),e}const zit={stack:"dbcore",name:"HooksMiddleware",level:2,create:t=>({...t,table(n){const e=t.table(n),{primaryKey:i}=e.schema;return{...e,mutate(o){const a=rr.trans,{deleting:s,creating:l,updating:u}=a.table(n).hook;switch(o.type){case"add":if(l.fire===ga)break;return a._promise("readwrite",()=>f(o),!0);case"put":if(l.fire===ga&&u.fire===ga)break;return a._promise("readwrite",()=>f(o),!0);case"delete":if(s.fire===ga)break;return a._promise("readwrite",()=>f(o),!0);case"deleteRange":if(s.fire===ga)break;return a._promise("readwrite",()=>{return S((T=o).trans,T.range,1e4);var T},!0)}return e.mutate(o);function f(T){const R=rr.trans,L=T.keys||("delete"===(j=T).type?j.keys:j.keys||j.values.map(i.extractKey));var j;if(!L)throw new Error("Keys missing");return"delete"!==(T="add"===T.type||"put"===T.type?{...T,keys:L}:{...T}).type&&(T.values=[...T.values]),T.keys&&(T.keys=[...T.keys]),function(z,j,Y){return"add"===j.type?Promise.resolve([]):z.getMany({trans:j.trans,keys:Y,cache:"immutable"})}(e,T,L).then(z=>{const j=L.map((Y,ie)=>{const te=z[ie],re={onerror:null,onsuccess:null};if("delete"===T.type)s.fire.call(re,Y,te,R);else if("add"===T.type||void 0===te){const he=l.fire.call(re,Y,T.values[ie],R);null==Y&&null!=he&&(T.keys[ie]=Y=he,i.outbound||lp(T.values[ie],i.keyPath,Y))}else{const he=qz(te,T.values[ie]),fe=u.fire.call(re,he,Y,te,R);if(fe){const Te=T.values[ie];Object.keys(fe).forEach(Re=>{wc(Te,Re)?Te[Re]=fe[Re]:lp(Te,Re,fe[Re])})}}return re});return e.mutate(T).then(({failures:Y,results:ie,numFailures:te,lastResult:re})=>{for(let he=0;he<L.length;++he){const fe=ie?ie[he]:L[he],Te=j[he];null==fe?Te.onerror&&Te.onerror(Y[he]):Te.onsuccess&&Te.onsuccess("put"===T.type&&z[he]?T.values[he]:fe)}return{failures:Y,results:ie,numFailures:te,lastResult:re}}).catch(Y=>(j.forEach(ie=>ie.onerror&&ie.onerror(Y)),Promise.reject(Y)))})}function S(T,R,L){return e.query({trans:T,values:!1,query:{index:i,range:R},limit:L}).then(({result:z})=>f({type:"delete",keys:z,trans:T}).then(j=>j.numFailures>0?Promise.reject(j.failures[0]):z.length<L?{failures:[],numFailures:0,lastResult:void 0}:S(T,{...R,lower:z[z.length-1],lowerOpen:!0},L)))}}}}})};function wce(t,n,e){try{if(!n||n.keys.length<t.length)return null;const i=[];for(let r=0,o=0;r<n.keys.length&&o<t.length;++r)0===pd(n.keys[r],t[o])&&(i.push(e?dO(n.values[r]):n.values[r]),++o);return i.length===t.length?i:null}catch{return null}}const Uit={stack:"dbcore",level:-1,create:t=>({table:n=>{const e=t.table(n);return{...e,getMany:i=>{if(!i.cache)return e.getMany(i);const r=wce(i.keys,i.trans._cache,"clone"===i.cache);return r?Li.resolve(r):e.getMany(i).then(o=>(i.trans._cache={keys:i.keys,values:"clone"===i.cache?dO(o):o},o))},mutate:i=>("add"!==i.type&&(i.trans._cache=null),e.mutate(i))}}})};function Yz(t){return!("from"in t)}const um=function(t,n){if(!this){const e=new um;return t&&"d"in t&&hd(e,t),e}hd(this,arguments.length?{d:1,from:t,to:arguments.length>1?n:t}:{d:0})};function SO(t,n,e){const i=pd(n,e);if(isNaN(i))return;if(i>0)throw RangeError();if(Yz(t))return hd(t,{from:n,to:e,d:1});const r=t.l,o=t.r;if(pd(e,t.from)<0)return r?SO(r,n,e):t.l={from:n,to:e,d:1,l:null,r:null},Sce(t);if(pd(n,t.to)>0)return o?SO(o,n,e):t.r={from:n,to:e,d:1,l:null,r:null},Sce(t);pd(n,t.from)<0&&(t.from=n,t.l=null,t.d=o?o.d+1:1),pd(e,t.to)>0&&(t.to=e,t.r=null,t.d=t.l?t.l.d+1:1);const a=!t.r;r&&!t.l&&LP(t,r),o&&a&&LP(t,o)}function LP(t,n){Yz(n)||function e(i,{from:r,to:o,l:a,r:s}){SO(i,r,o),a&&e(i,a),s&&e(i,s)}(t,n)}function Zz(t){let n=Yz(t)?null:{s:0,n:t};return{next(e){const i=arguments.length>0;for(;n;)switch(n.s){case 0:if(n.s=1,i)for(;n.n.l&&pd(e,n.n.from)<0;)n={up:n,n:n.n.l,s:1};else for(;n.n.l;)n={up:n,n:n.n.l,s:1};case 1:if(n.s=2,!i||pd(e,n.n.to)<=0)return{value:n.n,done:!1};case 2:if(n.n.r){n.s=3,n={up:n,n:n.n.r,s:0};continue}case 3:n=n.up}return{done:!0}}}}function Sce(t){var n,e;const i=((null===(n=t.r)||void 0===n?void 0:n.d)||0)-((null===(e=t.l)||void 0===e?void 0:e.d)||0),r=i>1?"r":i<-1?"l":"";if(r){const o="r"===r?"l":"r",a={...t},s=t[r];t.from=s.from,t.to=s.to,t[r]=s[r],a[r]=s[o],t[o]=a,a.d=Dce(a)}t.d=Dce(t)}function Dce({r:t,l:n}){return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}nw(um.prototype,{add(t){return LP(this,t),this},addKey(t){return SO(this,t,t),this},addKeys(t){return t.forEach(n=>SO(this,n,n)),this},[gz](){return Zz(this)}});const Git={stack:"dbcore",level:0,create:t=>{const n=t.schema.name,e=new um(t.MIN_KEY,t.MAX_KEY);return{...t,table:i=>{const r=t.table(i),{schema:o}=r,{primaryKey:a}=o,{extractKey:s,outbound:l}=a,u={...r,mutate:T=>{const R=T.trans,L=R.mutatedParts||(R.mutatedParts={}),z=fe=>{const Te=`idb://${n}/${i}/${fe}`;return L[Te]||(L[Te]=new um)},j=z(""),Y=z(":dels"),{type:ie}=T;let[te,re]="deleteRange"===T.type?[T.range]:"delete"===T.type?[T.keys]:T.values.length<50?[[],T.values]:[];const he=T.trans._cache;return r.mutate(T).then(fe=>{if(Iu(te)){"delete"!==ie&&(te=fe.results),j.addKeys(te);const Te=wce(te,he);Te||"add"===ie||Y.addKeys(te),(Te||re)&&(Re=z,Ze=Te,at=re,o.indexes.forEach(function vt(Bt){const St=Re(Bt.name||"");function ct(Kt){return null!=Kt?Bt.extractKey(Kt):null}const Nt=Kt=>Bt.multiEntry&&Iu(Kt)?Kt.forEach(on=>St.addKey(on)):St.addKey(Kt);(Ze||at).forEach((Kt,on)=>{const hn=Ze&&ct(Ze[on]),bn=at&&ct(at[on]);0!==pd(hn,bn)&&(null!=hn&&Nt(hn),null!=bn&&Nt(bn))})}))}else if(te){const Te={from:te.lower,to:te.upper};Y.add(Te),j.add(Te)}else j.add(e),Y.add(e),o.indexes.forEach(Te=>z(Te.name).add(e));var Re,Ze,at;return fe})}},f=({query:{index:T,range:R}})=>{var L,z;return[T,new um(null!==(L=R.lower)&&void 0!==L?L:t.MIN_KEY,null!==(z=R.upper)&&void 0!==z?z:t.MAX_KEY)]},S={get:T=>[a,new um(T.key)],getMany:T=>[a,(new um).addKeys(T.keys)],count:f,query:f,openCursor:f};return Hs(S).forEach(T=>{u[T]=function(R){const{subscr:L}=rr;if(L){const z=re=>{const he=`idb://${n}/${i}/${re}`;return L[he]||(L[he]=new um)},j=z(""),Y=z(":dels"),[ie,te]=S[T](R);if(z(ie.name||"").add(te),!ie.isPrimaryKey){if("count"!==T){const re="query"===T&&l&&R.values&&r.query({...R,values:!1});return r[T].apply(this,arguments).then(he=>{if("query"===T){if(l&&R.values)return re.then(({result:Te})=>(j.addKeys(Te),he));const fe=R.values?he.result.map(s):he.result;R.values?j.addKeys(fe):Y.addKeys(fe)}else if("openCursor"===T){const fe=he,Te=R.values;return fe&&Object.create(fe,{key:{get:()=>(Y.addKey(fe.primaryKey),fe.key)},primaryKey:{get(){const Re=fe.primaryKey;return Y.addKey(Re),Re}},value:{get:()=>(Te&&j.addKey(fe.primaryKey),fe.value)}})}return he})}Y.add(e)}}return r[T].apply(this,arguments)}}),u}}}};class q0{constructor(n,e){this._middlewares={},this.verno=0;const i=q0.dependencies;this._options=e={addons:q0.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange,...e},this._deps={indexedDB:e.indexedDB,IDBKeyRange:e.IDBKeyRange};const{addons:r}=e;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const o={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ga,dbReadyPromise:null,cancelOpen:ga,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var a,s;o.dbReadyPromise=new Li(s=>{o.dbReadyResolve=s}),o.openCanceller=new Li((s,l)=>{o.cancelOpen=l}),this._state=o,this.name=n,this.on=yO(this,"populate","blocked","versionchange","close",{ready:[yz,ga]}),this.on.ready.subscribe=Wde(this.on.ready.subscribe,s=>(l,u)=>{q0.vip(()=>{const f=this._state;if(f.openComplete)f.dbOpenError||Li.resolve().then(l),u&&s(l);else if(f.onReadyBeingFired)f.onReadyBeingFired.push(l),u&&s(l);else{s(l);const S=this;u||s(function T(){S.on.ready.unsubscribe(l),S.on.ready.unsubscribe(T)})}})}),this.Collection=(a=this,CO(Oit.prototype,function(s,l){this.db=a;let u=cce,f=null;if(l)try{u=l()}catch(L){f=L}const S=s._ctx,T=S.table,R=T.hook.reading.fire;this._ctx={table:T,index:S.index,isPrimKey:!S.index||T.schema.primKey.keyPath&&S.index===T.schema.primKey.name,range:u,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:f,or:S.or,valueMapper:R!==hO?R:null}})),this.Table=(s=this,CO(Eit.prototype,function(l,u,f){this.db=s,this._tx=f,this.name=l,this.schema=u,this.hook=s._allTables[l]?s._allTables[l].hook:yO(null,{creating:[git,ga],reading:[pit,hO],updating:[mit,ga],deleting:[fit,ga]})})),this.Transaction=function(s){return CO(Mit.prototype,function(l,u,f,S,T){this.db=s,this.mode=l,this.storeNames=u,this.schema=f,this.chromeTransactionDurability=S,this.idbtrans=null,this.on=yO(this,"complete","error","abort"),this.parent=T||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Li((R,L)=>{this._resolve=R,this._reject=L}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},R=>{var L=this.active;return this.active=!1,this.on.error.fire(R),this.parent?this.parent._reject(R):L&&this.idbtrans&&this.idbtrans.abort(),sl(R)})})}(this),this.Version=function(s){return CO(Lit.prototype,function(l){this.db=s,this._cfg={version:l,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(s){return CO(_ce.prototype,function(l,u,f){this.db=s,this._ctx={table:l,index:":id"===u?null:u,or:f};const S=s._deps.indexedDB;if(!S)throw new _r.MissingAPI;this._cmp=this._ascending=S.cmp.bind(S),this._descending=(T,R)=>S.cmp(R,T),this._max=(T,R)=>S.cmp(T,R)>0?T:R,this._min=(T,R)=>S.cmp(T,R)<0?T:R,this._IDBKeyRange=s._deps.IDBKeyRange})}(this),this.on("versionchange",s=>{s.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",s=>{!s.newVersion||s.newVersion<s.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${s.oldVersion/10}`)}),this._maxKey=xO(e.IDBKeyRange),this._createTransaction=(s,l,u,f)=>new this.Transaction(s,l,u,this._options.chromeTransactionDurability,f),this._fireOnBlocked=s=>{this.on("blocked").fire(s),vO.filter(l=>l.name===this.name&&l!==this&&!l._state.vcFired).map(l=>l.on("versionchange").fire(s))},this.use(Hit),this.use(zit),this.use(Git),this.use(Uit),this.vip=Object.create(this,{_vip:{value:!0}}),r.forEach(s=>s(this))}version(n){if(isNaN(n)||n<.1)throw new _r.Type("Given version is not a positive number");if(n=Math.round(10*n)/10,this.idbdb||this._state.isBeingOpened)throw new _r.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,n);const e=this._versions;var i=e.filter(r=>r._cfg.version===n)[0];return i||(i=new this.Version(n),e.push(i),e.sort(Pit),i.stores({}),this._state.autoSchema=!1,i)}_whenReady(n){return this.idbdb&&(this._state.openComplete||rr.letThrough||this._vip)?n():new Li((e,i)=>{if(this._state.openComplete)return i(new _r.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void i(new _r.DatabaseClosed);this.open().catch(ga)}this._state.dbReadyPromise.then(e,i)}).then(n)}use({stack:n,create:e,level:i,name:r}){r&&this.unuse({stack:n,name:r});const o=this._middlewares[n]||(this._middlewares[n]=[]);return o.push({stack:n,create:e,level:i??10,name:r}),o.sort((a,s)=>a.level-s.level),this}unuse({stack:n,name:e,create:i}){return n&&this._middlewares[n]&&(this._middlewares[n]=this._middlewares[n].filter(r=>i?r.create!==i:!!e&&r.name!==e)),this}open(){return function Nit(t){const n=t._state,{indexedDB:e}=t._deps;if(n.isBeingOpened||t.idbdb)return n.dbReadyPromise.then(()=>n.dbOpenError?sl(n.dbOpenError):t);ug&&(n.openCanceller._stackHolder=Fy()),n.isBeingOpened=!0,n.dbOpenError=null,n.openComplete=!1;const i=n.openCanceller;function r(){if(n.openCanceller!==i)throw new _r.DatabaseClosed("db.open() was cancelled")}let o=n.dbReadyResolve,a=null,s=!1;return Li.race([i,(typeof navigator>"u"?Li.resolve():Bit()).then(()=>new Li((l,u)=>{if(r(),!e)throw new _r.MissingAPI;const f=t.name,S=n.autoSchema?e.open(f):e.open(f,Math.round(10*t.verno));if(!S)throw new _r.MissingAPI;S.onerror=dg(u),S.onblocked=Va(t._fireOnBlocked),S.onupgradeneeded=Va(T=>{if(a=S.transaction,n.autoSchema&&!t._options.allowEmptyDB){S.onerror=bO,a.abort(),S.result.close();const L=e.deleteDatabase(f);L.onsuccess=L.onerror=Va(()=>{u(new _r.NoSuchDatabase(`Database ${f} doesnt exist`))})}else{a.onerror=dg(u);var R=T.oldVersion>Math.pow(2,62)?0:T.oldVersion;s=R<1,t._novip.idbdb=S.result,function Rit(t,n,e,i){const r=t._dbSchema,o=t._createTransaction("readwrite",t._storeNames,r);o.create(e),o._completion.catch(i);const a=o._reject.bind(o),s=rr.transless||rr;G0(()=>{rr.trans=o,rr.transless=s,0===n?(Hs(r).forEach(l=>{Hz(e,l,r[l].primKey,r[l].indexes)}),Nz(t,e),Li.follow(()=>t.on.populate.fire(o)).catch(a)):function({_novip:l},u,f,S){const T=[],R=l._versions;let L=l._dbSchema=Uz(0,l.idbdb,S),z=!1;return R.filter(Y=>Y._cfg.version>=u).forEach(Y=>{T.push(()=>{const ie=L,te=Y._cfg.dbschema;Wz(l,ie,S),Wz(l,te,S),L=l._dbSchema=te;const re=bce(ie,te);re.add.forEach(fe=>{Hz(S,fe[0],fe[1].primKey,fe[1].indexes)}),re.change.forEach(fe=>{if(fe.recreate)throw new _r.Upgrade("Not yet support for changing primary key");{const Te=S.objectStore(fe.name);fe.add.forEach(Re=>zz(Te,Re)),fe.change.forEach(Re=>{Te.deleteIndex(Re.name),zz(Te,Re)}),fe.del.forEach(Re=>Te.deleteIndex(Re))}});const he=Y._cfg.contentUpgrade;if(he&&Y._cfg.version>u){Nz(l,S),f._memoizedTables={},z=!0;let fe=Kde(te);re.del.forEach(Ze=>{fe[Ze]=ie[Ze]}),Vz(l,[l.Transaction.prototype]),PP(l,[l.Transaction.prototype],Hs(fe),fe),f.schema=fe;const Te=fz(he);let Re;Te&&sw();const He=Li.follow(()=>{if(Re=he(f),Re&&Te){var Ze=sm.bind(null,null);Re.then(Ze,Ze)}});return Re&&"function"==typeof Re.then?Li.resolve(Re):He.then(()=>Re)}}),T.push(ie=>{var te,re;(!z||!Sit)&&(te=Y._cfg.dbschema,[].slice.call((re=ie).db.objectStoreNames).forEach(he=>null==te[he]&&re.db.deleteObjectStore(he))),Vz(l,[l.Transaction.prototype]),PP(l,[l.Transaction.prototype],l._storeNames,l._dbSchema),f.schema=l._dbSchema})}),function j(){return T.length?Li.resolve(T.shift()(f.idbtrans)).then(j):Li.resolve()}().then(()=>{var Y,ie;ie=S,Hs(Y=L).forEach(te=>{ie.db.objectStoreNames.contains(te)||Hz(ie,te,Y[te].primKey,Y[te].indexes)})})}(t,n,o,e).catch(a)})}(t,R/10,a,u)}},u),S.onsuccess=Va(()=>{a=null;const T=t._novip.idbdb=S.result,R=fP(T.objectStoreNames);if(R.length>0)try{const z=T.transaction(1===(L=R).length?L[0]:L,"readonly");n.autoSchema?function({_novip:j},Y,ie){j.verno=Y.version/10;const te=j._dbSchema=Uz(0,Y,ie);j._storeNames=fP(Y.objectStoreNames,0),PP(j,[j._allTables],Hs(te),te)}(t,T,z):(Wz(t,t._dbSchema,z),function(j,Y){const ie=bce(Uz(0,j.idbdb,Y),j._dbSchema);return!(ie.add.length||ie.change.some(te=>te.add.length||te.change.length))}(t,z)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Nz(t,z)}catch{}var L;vO.push(t),T.onversionchange=Va(z=>{n.vcFired=!0,t.on("versionchange").fire(z)}),T.onclose=Va(z=>{t.on("close").fire(z)}),s&&function({indexedDB:z,IDBKeyRange:j},Y){!jz(z)&&"__dbnames"!==Y&&Gz(z,j).put({name:Y}).catch(ga)}(t._deps,f),l()},u)}))]).then(()=>(r(),n.onReadyBeingFired=[],Li.resolve(Kz(()=>t.on.ready.fire(t.vip))).then(function l(){if(n.onReadyBeingFired.length>0){let u=n.onReadyBeingFired.reduce(yz,ga);return n.onReadyBeingFired=[],Li.resolve(Kz(()=>u(t.vip))).then(l)}}))).finally(()=>{n.onReadyBeingFired=null,n.isBeingOpened=!1}).then(()=>t).catch(l=>{n.dbOpenError=l;try{a&&a.abort()}catch{}return i===n.openCanceller&&t._close(),sl(l)}).finally(()=>{n.openComplete=!0,o()})}(this)}_close(){const n=this._state,e=vO.indexOf(this);if(e>=0&&vO.splice(e,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}n.dbReadyPromise=new Li(i=>{n.dbReadyResolve=i}),n.openCanceller=new Li((i,r)=>{n.cancelOpen=r})}close(){this._close();const n=this._state;this._options.autoOpen=!1,n.dbOpenError=new _r.DatabaseClosed,n.isBeingOpened&&n.cancelOpen(n.dbOpenError)}delete(){const n=arguments.length>0,e=this._state;return new Li((i,r)=>{const o=()=>{this.close();var a=this._deps.indexedDB.deleteDatabase(this.name);a.onsuccess=Va(()=>{(function({indexedDB:s,IDBKeyRange:l},u){!jz(s)&&"__dbnames"!==u&&Gz(s,l).delete(u).catch(ga)})(this._deps,this.name),i()}),a.onerror=dg(r),a.onblocked=this._fireOnBlocked};if(n)throw new _r.InvalidArgument("Arguments not allowed in db.delete()");e.isBeingOpened?e.dbReadyPromise.then(o):o()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const n=this._state.dbOpenError;return n&&"DatabaseClosed"===n.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return Hs(this._allTables).map(n=>this._allTables[n])}transaction(){const n=Vit.apply(this,arguments);return this._transaction.apply(this,n)}_transaction(n,e,i){let r=rr.trans;r&&r.db===this&&-1===n.indexOf("!")||(r=null);const o=-1!==n.indexOf("?");let a,s;n=n.replace("!","").replace("?","");try{if(s=e.map(u=>{var f=u instanceof this.Table?u.name:u;if("string"!=typeof f)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return f}),"r"==n||"readonly"===n)a="readonly";else{if("rw"!=n&&"readwrite"!=n)throw new _r.InvalidArgument("Invalid transaction mode: "+n);a="readwrite"}if(r){if("readonly"===r.mode&&"readwrite"===a){if(!o)throw new _r.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&s.forEach(u=>{if(r&&-1===r.storeNames.indexOf(u)){if(!o)throw new _r.SubTransaction("Table "+u+" not included in parent transaction.");r=null}}),o&&r&&!r.active&&(r=null)}}catch(u){return r?r._promise(null,(f,S)=>{S(u)}):sl(u)}const l=xce.bind(null,this,a,s,r,i);return r?r._promise(a,l,"lock"):rr.trans?lw(rr.transless,()=>this._whenReady(l)):this._whenReady(l)}table(n){if(!wc(this._allTables,n))throw new _r.InvalidTable(`Table ${n} does not exist`);return this._allTables[n]}}const jit=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class Kit{constructor(n){this._subscribe=n}subscribe(n,e,i){return this._subscribe(n&&"function"!=typeof n?n:{next:n,error:e,complete:i})}[jit](){return this}}function Ece(t,n){return Hs(n).forEach(e=>{LP(t[e]||(t[e]=new um),n[e])}),t}let Xz;try{Xz={indexedDB:Pa.indexedDB||Pa.mozIndexedDB||Pa.webkitIndexedDB||Pa.msIndexedDB,IDBKeyRange:Pa.IDBKeyRange||Pa.webkitIDBKeyRange}}catch{Xz={indexedDB:null,IDBKeyRange:null}}const Vy=q0;function BP(t){let n=dm;try{dm=!0,$0.storagemutated.fire(t)}finally{dm=n}}nw(Vy,{..._P,delete:t=>new Vy(t,{addons:[]}).delete(),exists:t=>new Vy(t,{addons:[]}).open().then(n=>(n.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(t){try{return function({indexedDB:n,IDBKeyRange:e}){return jz(n)?Promise.resolve(n.databases()).then(i=>i.map(r=>r.name).filter(r=>"__dbnames"!==r)):Gz(n,e).toCollection().primaryKeys()}(Vy.dependencies).then(t)}catch{return sl(new _r.MissingAPI)}},defineClass:()=>function(t){hd(this,t)},ignoreTransaction:t=>rr.trans?lw(rr.transless,t):t(),vip:Kz,async:function(t){return function(){try{var n=$z(t.apply(this,arguments));return n&&"function"==typeof n.then?n:Li.resolve(n)}catch(e){return sl(e)}}},spawn:function(t,n,e){try{var i=$z(t.apply(e,n||[]));return i&&"function"==typeof i.then?i:Li.resolve(i)}catch(r){return sl(r)}},currentTransaction:{get:()=>rr.trans||null},waitFor:function(t,n){const e=Li.resolve("function"==typeof t?Vy.ignoreTransaction(t):t).timeout(n||6e4);return rr.trans?rr.trans.waitFor(e):e},Promise:Li,debug:{get:()=>ug,set:t=>{Yde(t,"dexie"===t?()=>!0:dce)}},derive:iw,extend:hd,props:nw,override:Wde,Events:yO,on:$0,liveQuery:function $it(t){return new Kit(n=>{const e=fz(t);let i=!1,r={},o={};const a={get closed(){return i},unsubscribe:()=>{i=!0,$0.storagemutated.unsubscribe(f)}};n.start&&n.start(a);let s=!1,l=!1;function u(){return Hs(o).some(T=>r[T]&&function Wit(t,n){const e=Zz(n);let i=e.next();if(i.done)return!1;let r=i.value;const o=Zz(t);let a=o.next(r.from),s=a.value;for(;!i.done&&!a.done;){if(pd(s.from,r.to)<=0&&pd(s.to,r.from)>=0)return!0;pd(r.from,s.from)<0?r=(i=e.next(s.from)).value:s=(a=o.next(r.from)).value}return!1}(r[T],o[T]))}const f=T=>{Ece(r,T),u()&&S()},S=()=>{if(s||i)return;r={};const T={},R=function(L){e&&sw();const z=()=>G0(t,{subscr:L,trans:null}),j=rr.trans?lw(rr.transless,z):z();return e&&j.then(sm,sm),j}(T);l||($0("storagemutated",f),l=!0),s=!0,Promise.resolve(R).then(L=>{s=!1,i||(u()?S():(r={},o=T,n.next&&n.next(L)))},L=>{s=!1,n.error&&n.error(L),a.unsubscribe()})};return S(),a})},extendObservabilitySet:Ece,getByKeyPath:om,setByKeyPath:lp,delByKeyPath:function(t,n){"string"==typeof n?lp(t,n,void 0):"length"in n&&[].map.call(n,function(e){lp(t,e,void 0)})},shallowClone:Kde,deepClone:dO,getObjectDiff:qz,cmp:pd,asap:Gde,minKey:-1/0,addons:[],connections:vO,errnames:vz,dependencies:Xz,semVer:"3.2.3",version:"3.2.3".split(".").map(t=>parseInt(t)).reduce((t,n,e)=>t+n/Math.pow(10,2*e))}),Vy.maxKey=xO(Vy.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&($0("storagemutated",t=>{if(!dm){let n;IP?(n=document.createEvent("CustomEvent"),n.initCustomEvent("x-storagemutated-1",!0,!0,t)):n=new CustomEvent("x-storagemutated-1",{detail:t}),dm=!0,dispatchEvent(n),dm=!1}}),addEventListener("x-storagemutated-1",({detail:t})=>{dm||BP(t)}));let dm=!1;if(typeof BroadcastChannel<"u"){const t=new BroadcastChannel("x-storagemutated-1");"function"==typeof t.unref&&t.unref(),$0("storagemutated",n=>{dm||t.postMessage(n)}),t.onmessage=n=>{n.data&&BP(n.data)}}else if(typeof self<"u"&&typeof navigator<"u"){$0("storagemutated",n=>{try{dm||(typeof localStorage<"u"&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:n})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(e=>e.postMessage({type:"x-storagemutated-1",changedParts:n})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",n=>{if("x-storagemutated-1"===n.key){const e=JSON.parse(n.newValue);e&&BP(e.changedParts)}});const t=self.document&&navigator.serviceWorker;t&&t.addEventListener("message",function({data:n}){n&&"x-storagemutated-1"===n.type&&BP(n.changedParts)})}Li.rejectionMapper=function(t,n){if(!t||t instanceof ow||t instanceof TypeError||t instanceof SyntaxError||!t.name||!Qde[t.name])return t;var e=new Qde[t.name](n||t.message,t);return"stack"in t&&rm(e,"stack",{get:function(){return this.inner.stack}}),e},Yde(ug,dce);class Jz extends q0{constructor(n,e){super("chatDb-"+e+"-"+n),this.version(1).stores({chatRooms:"id, synchStartedOn, synchCompletedOn",chatMessages:"id, parentId, synchStartedOn, synchCompletedOn",synchTable:"id, synchStartedOn, synchCompletedOn"})}}var NP=null;function Oce(t){try{return new CSSStyleSheet}catch{var n=t.ownerDocument.createElement("style");return t.appendChild(n),n.sheet}}function Tce(t,n,e){for(var i=0;i<n.length;i++){var r=n[i];try{for(var o=0;o<r.cssRules.length;o++)qit(t,r.cssRules[o],e)}catch{}}}function qit(t,n,e){var i,r,o,a,s,l;(e||(null===(i=n.selectorText)||void 0===i?void 0:i.includes("dx-"))||(null===(r=n.cssRules)||void 0===r||null===(o=r[0])||void 0===o||null===(a=o.selectorText)||void 0===a?void 0:a.includes("dx-"))||(null===(s=n.name)||void 0===s?void 0:s.startsWith("dx-"))||"DXIcons"===(null===(l=n.style)||void 0===l?void 0:l.fontFamily))&&t.insertRule(n.cssText,t.cssRules.length)}function Zit(t,n,e){var i=t.getBoundingClientRect();return i&&n>=i.left&&n<i.right&&e>=i.top&&e<i.bottom}var irt={querySelectorAll:(t,n)=>t.querySelectorAll(n),elementMatches(t,n){return(t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||(i=>{var r=t.document||t.ownerDocument;if(!r)return!1;for(var o=this.querySelectorAll(r,i),a=0;a<o.length;a++)if(o[a]===t)return!0})).call(t,n)},createElement(t,n){return(n=n||this._document).createElement(t)},createElementNS(t,n,e){return(e=e||this._document).createElementNS(t,n)},createTextNode(t,n){return(n=n||this._document).createTextNode(t)},isNode:t=>t&&"object"==typeof t&&"nodeType"in t&&"nodeName"in t,isElementNode:t=>t&&1===t.nodeType,isTextNode:t=>t&&3===t.nodeType,isDocument:t=>t&&9===t.nodeType,isDocumentFragment:t=>t&&11===t.nodeType,removeElement(t){var n=t&&t.parentNode;n&&n.removeChild(t)},insertElement(t,n,e){t&&n&&t!==n&&(e?t.insertBefore(n,e):t.appendChild(n))},getAttribute:(t,n)=>t.getAttribute(n),setAttribute(t,n,e){t.setAttribute(n,e)},removeAttribute(t,n){t.removeAttribute(n)},setProperty(t,n,e){t[n]=e},setText(t,n){t&&(t.textContent=n)},setClass(t,n,e){1===t.nodeType&&n&&(e?t.classList.add(n):t.classList.remove(n))},setStyle(t,n,e){t.style[n]=e||""},_document:typeof document>"u"?void 0:document,getDocument(){return this._document},getActiveElement(t){return this.getRootNode(t).activeElement},getRootNode(t){var n,e;return null!==(n=null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t))&&void 0!==n?n:this._document},getBody(){return this._document.body},createDocumentFragment(){return this._document.createDocumentFragment()},getDocumentElement(){return this._document.documentElement},getLocation(){return this._document.location},getSelection(){return this._document.selection},getReadyState(){return this._document.readyState},getHead(){return this._document.head},hasDocumentProperty(t){return t in this._document},listen:(t,n,e,i)=>t&&"addEventListener"in t?(t.addEventListener(n,e,i),()=>{t.removeEventListener(n,e)}):Be,elementsFromPoint(t,n,e){var i=this.getRootNode(e);return i.host?function Jit(t,n,e){for(var i=function Xit(){var t=0,n=[];return{push(e){return n.push(e),this},shift:()=>(t++,n[t-1]),get length(){return n.length-t},get items(){return n}}}().push(e);i.length;)for(var r=i.shift(),o=0;o<r.childNodes.length;o++){var a=r.childNodes[o];a.nodeType===Node.ELEMENT_NODE&&Zit(a,t,n)&&"none"!==getComputedStyle(a).pointerEvents&&i.push(a)}var s=i.items.reverse();return s.pop(),s}(t,n,i):i.elementsFromPoint(t,n)}};const It=ch(irt);var e5=typeof window<"u",Rn=()=>e5,Y0=Rn()?window:void 0;Y0||((Y0={}).window=Y0);var Fn=()=>Y0,VP=t=>Rn()&&t in Y0,t5=t=>t<768?"xs":t<992?"sm":t<1200?"md":"lg",n5=t=>(t||t5)(It.getDocumentElement().clientWidth),cw=()=>Rn()?Y0.navigator:{userAgent:""};const up=function(t){var n,e=function(){return n=t.apply(this,arguments),e=function(){return n},n};return function(){return e.apply(this,arguments)}};var i5=[],ort=up(()=>{var t=It.listen(It.getDocument(),"DOMContentLoaded",()=>{Ice.fire(),t()})}),Ice={add:t=>{var n=Rn();n&&"loading"!==It.getReadyState()?t():(i5.push(t),n&&ort())},fire:()=>{i5.forEach(t=>t()),i5=[]}};const gd=ch(Ice);var art=gd.add,r5="DEVEXTREME_XHR_ERROR_UNLOAD",kce=function(t){return[t[0],t.length<3?"=":String(t[1]).toLowerCase(),t.length<2||t[t.length-1]]},cm=function(t){return Array.isArray(t)||(t=[t]),Dr(t,function(n){var e={selector:Yt(n)||"string"==typeof n?n:n.getter||n.field||n.selector,desc:!(!n.desc&&"d"!==String(n.dir).charAt(0).toLowerCase())};return n.compare&&(e.compare=n.compare),e})},Mce=function(){var n,t={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"};return art(function(){var e=Fn();It.listen(e,"beforeunload",function(){n=!0})}),function(e,i){return n?r5:e.status<400?t[r=i]||r:e.statusText;var r}}(),DO={count:{seed:0,step:function(t){return 1+t}},sum:{seed:0,step:function(t,n){return t+n}},min:{step:function(t,n){return n<t?n:t}},max:{step:function(t,n){return n>t?n:t}},avg:{seed:[0,0],step:function(t,n){return[t[0]+n,t[1]+1]},finalize:function(t){return t[1]?t[0]/t[1]:NaN}}},srt=function(){var n,t=0;return{obtain:function(){0===t&&(n=new et),t++},release:function(){--t<1&&n.resolve()},promise:function(){return(0===t?(new et).resolve():n).promise()},reset:function(){t=0,n&&n.resolve()}}}();function Ace(t){return/^(and|&&|&)$/i.test(t)}var EO=function(t,n,e){if(Array.isArray(t)){for(var r,i=Dr(n,function(a,s){return s}),o=0;o<i.length;o++)if(!Tr(n[r=i[o]],e[r],0,!1))return!1;return!0}return Tr(n,e,0,!1)},Fce=function(t){return"!"===t[0]&&Array.isArray(t[1])},hw=function(){var t=new et;return t.resolve.apply(t,arguments).promise()},Pce=function(){var t=new et;return t.reject.apply(t,arguments).promise()};var uo=aP(Wr.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",E4024:"String function {0} cannot be used with the data field {1} of type {2}.",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),o5=function(t){var n;null===(n=null)||void 0===n||n(t)},OO=ji.inherit({toArray:function(){var t=[];for(this.reset();this.next();)t.push(this.current());return t},countable:function(){return!1}}),a5=OO.inherit({ctor:function(t){this.array=t,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),HP=OO.inherit({ctor:function(t){this.iter=t},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),s5=HP.inherit({ctor:function(t,n){this.callBase(t),this.index=-1,this.mapper=n},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var t=this.callBase();return t&&this.index++,t}}),grt=function(t,n){return t=ns(t),n=ns(n),null===t&&null!==n?-1:null!==t&&null===n||void 0===t&&void 0!==n?1:void 0!==t&&void 0===n||t<n?-1:t>n?1:0},l5=OO.inherit({ctor:function(t,n,e,i){t instanceof s5||(t=new s5(t,this._wrap)),this.iter=t,this.rules=[{getter:n,desc:e,compare:i}]},thenBy:function(t,n,e){var i=new l5(this.sortedIter||this.iter,t,n,e);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var t=this;t.sortedIter||(we(t.rules,function(){this.getter=Ai(this.getter)}),t.sortedIter=new s5(new a5(this.iter.toArray().sort(function(n,e){return t._compare(n,e)})),t._unwrap))},_wrap:function(t,n){return{index:n,value:t}},_unwrap:function(t){return t.value},_compare:function(t,n){var e=t.index,i=n.index;if((t=t.value)===(n=n.value))return e-i;for(var r=0,o=this.rules.length;r<o;r++){var a=this.rules[r],s=a.getter(t),l=a.getter(n),f=(a.compare||grt)(s,l);if(f)return a.desc?-f:f}return e-i}}),u5=function(){var t=function(e){return Z(e)?e.toString():""};function n(e,i,r){return function(o){o=ns(e(o));var s,a=""===(s=i)||0===s||!1===s?o===i:o==i;return r&&(a=!a),a}}return function(e){return Yt(e)?e:function(t){var n=t[0],e=t[1];return!!(Array.isArray(n)||Yt(n)&&(Array.isArray(e)||Yt(e)||function(t){return"and"===t||"or"===t}(e)))}(e)?(r=[],o=!1,a=!1,we(e,function(){if(Array.isArray(this)||Yt(this)){if(r.length>1&&o!==a)throw new uo.Error("E4019");r.push(u5(this)),o=a,a=!0}else a=Ace(this)}),function(s){for(var l=o,u=0;u<r.length;u++)if(r[u](s)!==o){l=!o;break}return l}):Fce(e)?function(i){var r=i[0],o=u5(i[1]);if("!"===r)return function(a){return!o(a)};throw uo.Error("E4003",r)}(e):function(i){i=kce(i);var r=Ai(i[0]),o=i[1],a=i[2];a=ns(a);var s=(l,u)=>(l=ns(r(l)),(null!=a&&null!=l||a===l)&&u(l,a));switch(o.toLowerCase()){case"=":return n(r,a);case"<>":return n(r,a,!0);case">":return l=>s(l,(u,f)=>u>f);case"<":return l=>s(l,(u,f)=>u<f);case">=":return l=>s(l,(u,f)=>u>=f);case"<=":return l=>s(l,(u,f)=>u<=f);case"startswith":return function(l){return 0===ns(t(r(l))).indexOf(a)};case"endswith":return function(l){var u=ns(t(r(l))),f=t(a);if(u.length<f.length)return!1;var S=u.lastIndexOf(a);return-1!==S&&S===u.length-a.length};case"contains":return function(l){return ns(t(r(l))).indexOf(a)>-1};case"notcontains":return function(l){return-1===ns(t(r(l))).indexOf(a)}}throw uo.Error("E4003",o)}(e);var r,o,a}}(),frt=HP.inherit({ctor:function(t,n){this.callBase(t),this.criteria=u5(n)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),mrt=OO.inherit({ctor:function(t,n){this.iter=t,this.getter=n},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var t={},n=[],e=this.iter,i=Ai(this.getter);for(e.reset();e.next();){var r=e.current(),o=i(r);o in t?t[o].push(r):(t[o]=[r],n.push(o))}this.groupedIter=new a5(Dr(n,function(a){return{key:a,items:t[a]}}))}}}),_rt=HP.inherit({ctor:function(t,n){this.callBase(t),this.getter=Ai(n)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),vrt=HP.inherit({ctor:function(t,n,e){this.callBase(t),this.skip=Math.max(0,n),this.take=Math.max(0,e),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}});const zP=function t(n,e){e=e||{},n instanceof OO||(n=new a5(n));var i=function(u){var f=e.errorHandler;f&&f(u),o5(u)},r=function(u){var f=(new et).fail(i),T=u.step,R=u.finalize;try{n.reset();for(var L=("seed"in u?u.seed:n.next()?n.current():NaN);n.next();)L=T(L,n.current());f.resolve(R?R(L):L)}catch(z){f.reject(z)}return f.promise()},o=function(u){return r(DO[u])},a=function(u){return!Yt(u)&&!Array.isArray(u)&&(u=[].slice.call(arguments)),l(new _rt(n,u))},s=function(u){return a(Ai(u))};function l(u){return t(u,e)}return{toArray:function(){return n.toArray()},enumerate:function(){var u=(new et).fail(i);try{u.resolve(n.toArray())}catch(f){u.reject(f)}return u.promise()},sortBy:function(u,f,S){return l(new l5(n,u,f,S))},thenBy:function(u,f,S){if(n instanceof l5)return l(n.thenBy(u,f,S));throw uo.Error("E4004")},filter:function(u){return Array.isArray(u)||(u=[].slice.call(arguments)),l(new frt(n,u))},slice:function(u,f){return void 0===f&&(f=Number.MAX_VALUE),l(new vrt(n,u,f))},select:a,groupBy:function(u){return l(new mrt(n,u))},aggregate:function(u,f,S){return r(arguments.length<2?{step:arguments[0]}:{seed:u,step:f,finalize:S})},count:function(){if(n.countable()){var u=(new et).fail(i);try{u.resolve(n.count())}catch(f){u.reject(f)}return u.promise()}return o("count")},sum:function(u){return u?s(u).sum():o("sum")},min:function(u){return u?s(u).min():o("min")},max:function(u){return u?s(u).max():o("max")},avg:function(u){return u?s(u).avg():o("avg")}}},Lce={};var brt={array:zP,remote:function t(n,e,i){i=i||[],e=e||{};var r=function(s,l){return{name:s,args:l}},o=function(s){var u,f,S,T,R,Y,ie,l=new et,L=function(Y){var ie=e.errorHandler;ie&&ie(Y),o5(Y),l.reject(Y)};function z(Y){switch(Y.name){case"sortBy":return R=[Y.args],!0;case"thenBy":if(!R)throw uo.Error("E4004");return R.push(Y.args),!0}return!1}try{Yt(u=e.adapter)||(u=Lce[u]),f=u(e),S=[].concat(i).concat(s);var j=f.optimize;for(j&&j(S);S.length;){if(!z(T=S[0])){if(R){S.unshift(r("multiSort",[R])),R=null;continue}if("enumerate"!==String(T.name)&&(!f[T.name]||!1===f[T.name].apply(f,T.args)))break}S.shift()}ie=[],(Y=S[0])&&"multiSort"===Y.name&&(S.shift(),we(Y.args[0],function(){ie.push(r(ie.length?"thenBy":"sortBy",this))})),S=ie.concat(S),f.exec(n).done(function(Y,ie){if(S.length){var te=zP(Y,{errorHandler:e.errorHandler});we(S,function(){te=te[this.name].apply(te,this.args)}),te.done(l.resolve).fail(l.reject)}else l.resolve(Y,ie)}).fail(L)}catch(Y){L(Y)}return l.promise()},a={};return we(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var s=String(this);a[s]=function(){return t(n,e,i.concat(r(s,arguments)))}}),we(["count","min","max","sum","avg","aggregate","enumerate"],function(){var s=String(this);a[s]=function(){return o.call(this,r(s,arguments))}}),a}};const Ha=function(){var t=Array.isArray(arguments[0])?"array":"remote";return brt[t].apply(this,arguments)};class Z0{constructor(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=n,this._options=e}static create(n,e){return e?Yt(e)?e(n):e:new Z0(n)}hasEvent(n){var e=this._events[n];return!!e&&e.has()}fireEvent(n,e){var i=this._events[n];return i&&i.fireWith(this._owner,e),this._owner}on(n,e){if(wi(n))we(n,(o,a)=>{this.on(o,a)});else{var i=this._events[n];i||(i=Zi({syncStrategy:this._options.syncStrategy}),this._events[n]=i),(i.originalAdd||i.add).call(i,e)}}off(n,e){var i=this._events[n];i&&(Yt(e)?i.remove(e):i.empty())}dispose(){we(this._events,(n,e)=>{e.empty()})}}function d5(t,n){return t=t.groupBy(n[0].selector),n.length>1&&(t=t.select(function(e){return se({},e,{items:d5(zP(e.items),n.slice(1)).toArray()})})),t}function Bce(t,n){var e=[];return we(t,function(i,r){Vs(n,function(a){return r.selector===a.selector}).length<1&&e.push(r)}),e.concat(n)}const cg={multiLevelGroup:d5,arrangeSortingInfo:Bce,queryByOptions:function wrt(t,n,e){var i=(n=n||{}).filter;if(i&&(t=t.filter(i)),e)return t;var r=n.sort,o=n.select,a=n.group,s=n.skip,l=n.take;return a&&((a=cm(a)).keepInitialKeyOrder=!!n.group.keepInitialKeyOrder),(r||a)&&(r=cm(r||[]),a&&!a.keepInitialKeyOrder&&(r=Bce(a,r)),we(r,function(u){t=t[u?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),o&&(t=t.select(o)),a&&(t=d5(t,a)),(l||s)&&(t=t.slice(s||0,l)),t}};var TO=ji.abstract,Nce=cg.queryByOptions,c5={},pw=ji.inherit({ctor:function(t){var n=this;t=t||{},this._eventsStrategy=new Z0(this),we(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(e,i){i in t&&n.on(i.slice(2).toLowerCase(),t[i])}),this._key=t.key,this._errorHandler=t.errorHandler,this._useDefaultSearch=!0},_clearCache:Be,_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(t){return this._keyGetter||(this._keyGetter=Ai(this.key())),this._keyGetter(t)},_requireKey:function(){if(!this.key())throw uo.Error("E4005")},load:function(t){var n=this;return this._eventsStrategy.fireEvent("loading",[t=t||{}]),this._withLock(this._loadImpl(t)).done(function(e){n._eventsStrategy.fireEvent("loaded",[e,t])})},_loadImpl:function(t){return Nce(this.createQuery(t),t).enumerate()},_withLock:function(t){var n=new et;return t.done(function(){var e=this,i=arguments;srt.promise().done(function(){n.resolveWith(e,i)})}).fail(function(){n.rejectWith(this,arguments)}),n},createQuery:TO,totalCount:function(t){return this._totalCountImpl(t)},_totalCountImpl:function(t){return Nce(this.createQuery(t),t,!0).count()},byKey:function(t,n){return this._addFailHandlers(this._withLock(this._byKeyImpl(t,n)))},_byKeyImpl:TO,insert:function(t){var n=this;return n._eventsStrategy.fireEvent("modifying"),n._eventsStrategy.fireEvent("inserting",[t]),n._addFailHandlers(n._insertImpl(t).done(function(e,i){n._eventsStrategy.fireEvent("inserted",[e,i]),n._eventsStrategy.fireEvent("modified")}))},_insertImpl:TO,update:function(t,n){var e=this;return e._eventsStrategy.fireEvent("modifying"),e._eventsStrategy.fireEvent("updating",[t,n]),e._addFailHandlers(e._updateImpl(t,n).done(function(){e._eventsStrategy.fireEvent("updated",[t,n]),e._eventsStrategy.fireEvent("modified")}))},_updateImpl:TO,push:function(t){var n={changes:t,waitFor:[]};this._eventsStrategy.fireEvent("beforePush",[n]),Qt(...n.waitFor).done(()=>{this._pushImpl(t),this._eventsStrategy.fireEvent("push",[t])})},_pushImpl:Be,remove:function(t){var n=this;return n._eventsStrategy.fireEvent("modifying"),n._eventsStrategy.fireEvent("removing",[t]),n._addFailHandlers(n._removeImpl(t).done(function(e){n._eventsStrategy.fireEvent("removed",[e]),n._eventsStrategy.fireEvent("modified")}))},_removeImpl:TO,_addFailHandlers:function(t){return t.fail(this._errorHandler).fail(o5)},on(t,n){return this._eventsStrategy.on(t,n),this},off(t,n){return this._eventsStrategy.off(t,n),this}});pw.create=function(t,n){if(!(t in c5))throw uo.Error("E4020",t);return new c5[t](n)},pw.registerClass=function(t,n){return n&&(c5[n]=t),t},pw.inherit=function(t){return function(n,e){var i=t.apply(this,[n]);return pw.registerClass(i,e),i}}(pw.inherit);const Hy=pw;function mt(){return mt=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},mt.apply(this,arguments)}function Vce(t,n,e,i){var o;if(i){for(var a=0;a<n.length;a++)if(o=Vce(t,n[a].items||n[a].collapsedItems||[]||[],e,i-1))return o}else if(Uy(t,n,e)>=0)return n}function Drt(t,n,e,i){return i?Vce(t,n,e,i)||[]:n}function Hce(t,n,e){t._dataByKeyMap&&(t._dataByKeyMap[JSON.stringify(n)]=e,t._dataByKeyMapLength+=e?1:-1)}function zce(t,n,e){e=e||new WeakMap;var i=t?Object.create(Object.getPrototypeOf(t)):{};t&&e.set(t,i);var r=mt({},t);for(var o in cd(i,r,!0,!0),r){var a=r[o],s=n?.[o];Jn(a)&&!wi(a)&&Jn(s)&&!e.has(a)&&(i[o]=zce(a,s,e))}for(var l in i){var u=i[l];Jn(u)&&e.has(u)&&(i[l]=e.get(u))}return i}function hm(t,n){var e=zce(t,n);return cd(e,n,!0,!0)}function zy(t){var{keyInfo:n,data:e,changes:i,groupCount:r,useInsertIndex:o,immutable:a,disableCache:s,logError:l,skipCopying:u}=t,f=!0===a?[...e]:e;return i.forEach(S=>{var T="insert"===S.type?f:Drt(n,f,S.key,r);switch(!s&&function Ert(t,n){if(t.key()&&(!n._dataByKeyMap||n._dataByKeyMapLength!==n.length)){for(var e={},i=n.length,r=0;r<i;r++)e[JSON.stringify(t.keyOf(n[r]))]=n[r];n._dataByKeyMap=e,n._dataByKeyMapLength=i}}(n,T),S.type){case"update":h5(n,T,S.key,S.data,!0,a,l);break;case"insert":p5(n,T,S.data,o&&Z(S.index)?S.index:-1,!0,l,u);break;case"remove":Uce(n,T,S.key,!0,l)}}),f}function UP(t,n,e){return t?n&&uo.log(e):Pce(uo.Error(e))}function h5(t,n,e,i,r,o,a){var s,l=t.key();if(l){if(function Srt(t,n){for(var i="string"==typeof n?n.split():n.slice();i.length;)if(i.shift()in t)return!0;return!1}(i,l)&&!EO(l,e,t.keyOf(i)))return UP(r,a,"E4017");if(s=function Ort(t,n){if(t._dataByKeyMap)return t._dataByKeyMap[JSON.stringify(n)]}(n,e),!s){var u=Uy(t,n,e);if(u<0)return UP(r,a,"E4009");if(s=n[u],!0===o&&Z(s)){var f=hm(s,i);return n[u]=f,!r&&hw(f,e)}}}else s=e;if(cd(s,i,!0),!r)return no().useLegacyStoreResult?hw(e,i):hw(s,e)}function p5(t,n,e,i,r,o,a){var s,l=t.key(),u=wi(e)&&!a?se({},e):e;if(l){if(void 0===(s=t.keyOf(u))||"object"==typeof s&&pa(s)){if(Array.isArray(l))throw uo.Error("E4007");s=u[l]=String(new Ni)}else if(void 0!==n[Uy(t,n,s)])return UP(r,o,"E4008")}else s=u;if(i>=0?n.splice(i,0,u):n.push(u),Hce(n,s,u),!r)return hw(no().useLegacyStoreResult?e:u,s)}function Uce(t,n,e,i,r){var o=Uy(t,n,e);return o>-1&&(n.splice(o,1),Hce(n,e,null)),i?o<0?UP(i,r,"E4009"):void 0:hw(e)}function Uy(t,n,e){var i=t.key();if(!function Trt(t,n){return!t._dataByKeyMap||t._dataByKeyMap[JSON.stringify(n)]}(n,e))return-1;for(var r=0,o=n.length;r<o;r++)if(EO(i,t.keyOf(n[r]),e))return r;return-1}var Irt=Hy.inherit({ctor:function(t){t=Array.isArray(t)?{data:t}:t||{},this.callBase(t);var n=t.data;if(n&&!Array.isArray(n))throw uo.Error("E4006");this._array=n||[]},createQuery:function(){return Ha(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(t){var n=Uy(this,this._array,t);return-1===n?Pce(uo.Error("E4009")):hw(this._array[n])},_insertImpl:function(t){return p5(this,this._array,t)},_pushImpl:function(t){zy({keyInfo:this,data:this._array,changes:t})},_updateImpl:function(t,n){return h5(this,this._array,t,n)},_removeImpl:function(t){return Uce(this,this._array,t)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array");const cs=Irt;class hg{constructor(n,e){this.http=n,this.scopeService=e,this.scope=e.getScope()}createOneToOneChat(n){return this.http.post(`${this.scope.apiEndpoint}chatRooms`,{users:[{userGuid:n.toString(),isAdmin:!0}],type:"Private",isNetworkWide:!1})}getRoom(n){return this.http.get(`${this.scope.apiEndpoint}chatRoomsFast/getById/${n.toString()}`)}delete(n){return this.http.delete(`${this.scope.apiEndpoint}chatRooms/${n}`)}createGroupChat(n){return this.http.post(`${this.scope.apiEndpoint}chatRooms`,n)}joinSubscription(n){return this.http.post(`${this.scope.apiEndpoint}chatRooms/${n}/join`,null)}put(n,e){return this.http.put(`${this.scope.apiEndpoint}chatRooms/${n}`,e)}updateImage(n,e){return this.http.post(`${this.scope.apiEndpoint}chatRooms/${n}/UpdateImage/${e}`,null)}}hg.\u0275fac=function(n){return new(n||hg)(qt(iu),qt(bo))},hg.\u0275prov=Hn({token:hg,factory:hg.\u0275fac});class fd{constructor(){this.guidRegex=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i}convert(n){if(n&&"object"==typeof n&&!(n instanceof Ni)){if(n instanceof Array)for(const e of n)this.convert(e);for(const e of Object.keys(n)){const i=n[e];if(i instanceof Array)for(const r of i)this.convert(r);i instanceof Object&&this.convert(i),"string"==typeof i&&(fd.dateRegex.test(i)?n[e]=new Date(i):this.guidRegex.test(i)?n[e]=new Ni(i):"avatarImageUrl"===e&&!i.includes("?preset=profile-avatar")&&(n[e]=`${i}?preset=profile-avatar`))}}}}fd.dateRegex=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:\+|-)\d{2}:\d{2})?)?$/,fd.\u0275fac=function(n){return new(n||fd)},fd.\u0275prov=Hn({token:fd,factory:fd.\u0275fac});class Dc{constructor(n,e,i,r,o,a){this.chatRoomService=n,this.propertyConverter=e,this.scopeService=i,this.http=r,this.chatRelayService=o,this.authenticationService=a,this.firstRun=!0,this.cacheUpdatedSource=new le,this.cacheUpdated$=this.cacheUpdatedSource.asObservable(),this.subscriptions=[],this.fetchingRoomsDataPromise=null,this.fetchingCacheDataPromise=null,this.scope=this.scopeService.getScope(),this.database=new Jz(this.scope.currentScope.chapter.id,this.scope.network.id);var s=new Date;this.registerSubscriptions(s),Dc.instanceCount++}getArrayStore(){return null!=this.store?(this.isCorrupted().then(n=>{n&&this.rebuildCacheAndGetArrayStore(this,"Corrupt on init")}),new Promise((n,e)=>{n(this.store)})):this.database.chatRooms.count().then(n=>{if(n>0)return this.isCorrupted().then(i=>{i&&this.rebuildCacheAndGetArrayStore(this,"Corrupt on crc check")}),this.database.chatRooms.toArray().then(i=>{var r=i.map(o=>JSON.parse(o.jsonValue));return this.store=new cs({key:"id",data:r,onLoaded:o=>this.propertyConverter.convert(o)}),this.store});{let i=`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`;var e=new Date;return this.http.get(i).toPromise().then(r=>{let o=[];return r.value.map(a=>o.push({value:a,id:a.id.valueOf(),synchStartedOn:e,synchCompletedOn:new Date,jsonValue:JSON.stringify(a)})),o.forEach(a=>{a.value.id=a.value.id.toString()}),o}).then(r=>this.database.chatRooms.bulkAdd(r).then(o=>{var a=r.map(s=>JSON.parse(s.jsonValue));return this.store=new cs({key:"id",data:a,onLoaded:s=>this.propertyConverter.convert(s)}),this.store}))}})}registerSubscriptions(n){this.subscriptions.push(this.authenticationService.isAuthenticated$.subscribe(e=>{e&&this.firstRun?(this.firstRun=!1,this.rebuildCacheAndGetArrayStore(this,"authenticationService.isAuthenticated$ auth & this.firstRun").then(i=>console.log("resolved rebuildCacheAndGetArrayStore()",i))):this.isCorrupted().then(i=>{i&&this.rebuildCacheAndGetArrayStore(this,"authenticationService.isAuthenticated$ not auth & this.firstRun but corrupt")})})),this.subscriptions.push(this.chatRelayService.roomDeleted$.subscribe(e=>{this.getArrayStore().then(i=>{i.push([{type:"remove",key:e.id}]),this.database.chatRooms.delete(e.id).then(r=>{console.log("Room deleted")}),this.database.chatMessages.where("parentId").equals(e.id).delete()})}),this.chatRelayService.roomCreated$.subscribe(e=>{this.getArrayStore().then(i=>{i.byKey(new Ni(e.id)).then(r=>{r||(console.log("User is likely added",e,this),this.rebuildCacheAndGetArrayStore(this,"chatRelayService.roomCreated$ on room created message"))})})}),this.chatRelayService.msgReceived$.subscribe(e=>{try{this.chatRoomService.getRoom(e.roomId).toPromise().then(i=>{this.propertyConverter.convert(i),this.getArrayStore().then(r=>{r.load().then(o=>{try{o.any(a=>a?.id.toString()==i?.id.toString())?(r.push([{type:"update",data:i,key:i.id}]),this.database.chatRooms.update(e.roomId,{value:i,id:i.id.valueOf(),synchStartedOn:n,synchCompletedOn:new Date,jsonValue:JSON.stringify(i)})):(r.push([{type:"insert",data:i}]),this.database.chatRooms.add({value:i,id:i.id.valueOf(),synchStartedOn:n,synchCompletedOn:new Date,jsonValue:JSON.stringify(i)},e.roomId))}catch{console.error("Error on msg receive",e,i,o,this)}})})})}catch(i){console.error("cRoomCache msg received error",e,i,this),this.rebuildCacheAndGetArrayStore(this,"chatRelayService.msgReceived$ error updating local stores")}}),this.chatRelayService.msgUpdated$.subscribe(e=>{try{this.getArrayStore().then(i=>{this.chatRoomService.getRoom(e.roomId).subscribe(r=>{i.push([{type:"update",data:r,key:e.roomId}]),this.database.chatRooms.update(e.roomId,{value:r,id:r.id.valueOf(),synchStartedOn:n,synchCompletedOn:new Date,jsonValue:JSON.stringify(r)})})})}catch(i){console.error(this,i),this.isCorrupted().then(r=>{r&&this.rebuildCacheAndGetArrayStore(this,"chatRelayService.msgUpdated$ error abd corrupt local store")})}}),this.chatRelayService.msgDeleted$.subscribe(e=>{this.getArrayStore().then(i=>{this.chatRoomService.getRoom(e.roomId).subscribe(r=>{i.push([{type:"update",data:r,key:e.roomId}]),this.database.chatRooms.update(e.roomId,{value:r,id:r.id.valueOf(),synchStartedOn:n,synchCompletedOn:new Date,jsonValue:JSON.stringify(r)})})})}))}rebuildCacheAndGetArrayStore(n,e=null){console.log("Rebuild cache called from",n,e);let i=`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`;var r=new Date;return this.fetchingCacheDataPromise||(this.fetchingCacheDataPromise=this.http.get(i).toPromise().then(o=>{let a=[];return o.value.map(s=>a.push({value:s,id:s.id.valueOf(),synchStartedOn:r,synchCompletedOn:new Date,jsonValue:JSON.stringify(s)})),a.forEach(s=>{s.value.id=s.value.id.toString()}),a}).then(o=>this.authenticationService.expireToken(this).then(a=>this.database.chatRooms.clear().then(s=>this.database.chatRooms.bulkAdd(o).then(l=>{var u=o.map(f=>JSON.parse(f.jsonValue));return this.store=new cs({key:"id",data:u,onLoaded:f=>this.propertyConverter.convert(f)}),this.authenticationService.expireToken(this),this.cacheUpdatedSource.next(!0),this.fetchingCacheDataPromise=null,this.store}))))),this.fetchingCacheDataPromise}isCorrupted(){let n=`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`;return new Date,this.fetchingRoomsDataPromise||(this.fetchingRoomsDataPromise=this.http.get(n).toPromise().then(i=>{let r=i.value.length;return this.getArrayStore().then(o=>o.load().then(a=>(this.fetchingRoomsDataPromise=null,console.log("isCorrupted()",a.length,r,i,a),a.length!=r)))})),this.fetchingRoomsDataPromise}dropBackendCache(n){return this.http.get(this.scopeService.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+n.toString()).toPromise().then(e=>(e&&console.log("Cache eviction call"),e))}}Dc.instanceCount=0,Dc.\u0275fac=function(n){return new(n||Dc)(qt(hg),qt(fd),qt(bo),qt(iu),qt(ud),qt(Eu))},Dc.\u0275prov=Hn({token:Dc,factory:Dc.\u0275fac,providedIn:"root"});var krt=Fn();const Wce=ch({getXhr:function(){return new krt.XMLHttpRequest}});var g5=Fn(),IO="success",f5="error",Gce=function(t){var n=It.createElement("script");for(var e in t)n[e]=t[e];return n},jce=function(t){t.parentNode.removeChild(t)},Kce=function(t){return It.getHead().appendChild(t)},$ce=function(t){var n=Gce({text:t});Kce(n),jce(n)};function m5(t){return(t.method||"GET").toUpperCase()}const mh=ch({sendRequest:function(t){var s,n=Wce.getXhr(),e=new et,i=e.promise(),r=!Z(t.async)||t.async,o=t.dataType,a=t.timeout||0;t.crossDomain=function(t){if(!Rn())return!0;var n=!1,e=It.createElement("a"),i=It.createElement("a");e.href=g5.location.href;try{i.href=t,i.href=i.href,n=e.protocol+"//"+e.host!=i.protocol+"//"+i.host}catch{n=!0}return n}(t.url);var l="jsonp"===o||"script"===o;void 0===t.cache&&(t.cache=!l);var u=function(t){if("jsonp"===t.dataType){var n=Math.random().toString().replace(/\D/g,""),e=t.jsonpCallback||"dxCallback"+Date.now()+"_"+n,i=t.jsonp||"callback";return t.data=t.data||{},t.data[i]=e,e}}(t),f=function(t){var n=t.headers||{};return n["Content-Type"]=n["Content-Type"]||function(t){var n;return t.data&&!t.upload&&"GET"!==m5(t)&&(n="application/x-www-form-urlencoded;charset=utf-8"),t.contentType||n}(t),n.Accept=n.Accept||function(t){var n=t.dataType||"*",e="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:e,script:e};return rP(i,t.accepts,!0),i[n]?i[n]+("*"!==n?", */*; q=0.01":""):i["*"]}(t),!t.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest"),n}(t),S=function(t,n){var e=t.data,i="string"==typeof e,r=t.url||g5.location.href;return!i&&!t.cache&&((e=e||{})._=Date.now()),e&&!t.upload&&(i||(e=function(t){var n=[];for(var e in t){var i=t[e];void 0!==i&&(null===i&&(i=""),"function"==typeof i&&(i=i()),n.push(encodeURIComponent(e)+"="+encodeURIComponent(i)))}return n.join("&")}(e)),"GET"===m5(t)?(""!==e&&(r+=(r.indexOf("?")>-1?"&":"?")+e),e=null):n["Content-Type"]&&n["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(e=e.replace(/%20/g,"+"))),{url:r,parameters:e}}(t,f),T=S.url,R=S.parameters;if(u&&(g5[u]=function(j){e.resolve(j,IO,n)}),t.crossDomain&&l)return function(t){var n=Gce({src:t});return new Promise(function(e,i){var r={load:e,error:i},o=function(s){r[s.type](),jce(n)};for(var a in r)It.listen(n,a,o);Kce(n)})}(T).then(function(){"jsonp"!==o&&e.resolve(null,IO,n)},function(){e.reject(n,f5)}),i;if(t.crossDomain&&!("withCredentials"in n))return e.reject(n,f5),i;if(n.open(m5(t),T,r,t.username,t.password),r&&(n.timeout=a,s=function(t,n){return t&&setTimeout(function(){n.customStatus="timeout",n.abort()},t)}(a,n)),n.onreadystatechange=function(j){4===n.readyState&&(clearTimeout(s),function(t){return 200<=t&&t<300}(n.status)?function(t){return 204!==t}(n.status)?function(t,n,e){var i=function(t){return t.responseType&&"text"!==t.responseType||"string"!=typeof t.responseText?t.response:t.responseText}(n);switch(e){case"jsonp":$ce(i);break;case"script":$ce(i),t.resolve(i,IO,n);break;case"json":try{t.resolve(JSON.parse(i),IO,n)}catch(r){t.reject(n,"parsererror",r)}break;default:t.resolve(i,IO,n)}}(e,n,o):e.resolve(null,"nocontent",n):e.reject(n,n.customStatus||f5))},t.upload&&(n.upload.onprogress=t.upload.onprogress,n.upload.onloadstart=t.upload.onloadstart,n.upload.onabort=t.upload.onabort),t.xhrFields)for(var L in t.xhrFields)n[L]=t.xhrFields[L];for(var z in"arraybuffer"===t.responseType&&(n.responseType=t.responseType),f)Object.prototype.hasOwnProperty.call(f,z)&&Z(f[z])&&n.setRequestHeader(z,f[z]);return t.beforeSend&&t.beforeSend(n),n.send(R),i.abort=function(){n.abort()},i}});var Yrt=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,Zrt=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,Xrt=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,qce="application/json;odata=verbose",WP=t=>"string"===Fa(t)?t.split():t,Yce=t=>/\./.test(t),_5=(t,n,e)=>{for(t=String(t);t.length<n;)t=e?"".concat(t,"0"):"0".concat(t);return t},v5=(t,n,e)=>{var i=[],r=o=>_5(o,2);return i.push(t.getFullYear()),i.push("-"),i.push(r(t.getMonth()+1)),i.push("-"),i.push(r(t.getDate())),n&&t.getHours()+t.getMinutes()+t.getSeconds()+t.getMilliseconds()<1||(i.push("T"),i.push(r(t.getHours())),i.push(":"),i.push(r(t.getMinutes())),i.push(":"),i.push(r(t.getSeconds())),t.getMilliseconds()&&(i.push("."),i.push(_5(t.getMilliseconds(),3))),e||i.push("Z")),i.join("")},Jrt=t=>{var n=new Date(60*new Date(0).getTimezoneOffset()*1e3),e=t.replace("Z","").split("T"),i=/(\d{4})-(\d{2})-(\d{2})/.exec(e[0]),r=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(e[1]);if(n.setFullYear(Number(i[1])),n.setMonth(Number(i[2])-1),n.setDate(Number(i[3])),Array.isArray(r)&&r.length){n.setHours(Number(r[1])),n.setMinutes(Number(r[2])),n.setSeconds(Number(r[3]));var o=(r[4]||"").slice(0,3);o=_5(o,3,!0),n.setMilliseconds(Number(o))}return n},not=t=>{var n=[];for(var e in t)n.push(e+"="+t[e]);return n.join("&")},y5=(t,n,e)=>{var{deserializeDates:i,fieldTypes:r,countOnly:o,isPaged:a}=e,s=new et,l=function(t,n){var e,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=ie=>JSON.stringify(ie,function(te,re){if(!(this[te]instanceof Date))return re;switch(re=v5(this[te]),t){case 2:return re.substr(0,re.length-1);case 3:case 4:return re;default:throw uo.Error("E4002")}});n=se({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},n),null===(e=i.beforeSend)||void 0===e||e.call(i,n);var{async:o,timeout:a,headers:s}=n,{url:l,method:u}=n,{jsonp:f,withCredentials:S}=i,T="get"===(u=(u||"get").toLowerCase()),R=T&&f,L=se({},n.params),z=T?L:r(n.payload),j=!T&&not(L),Y=!T&&qce;return j&&(l+=(l.indexOf("?")>-1?"&":"?")+j),R&&(z.$format="json"),{url:l,data:z,dataType:R?"jsonp":"json",jsonp:R&&"$callback",method:u,async:o,timeout:a,headers:s,contentType:Y,accepts:{json:[qce,"text/plain"].join()},xhrFields:{withCredentials:S}}}(t,n,e);return mh.sendRequest(l).always((u,f)=>{var T=aot(u,f,{deserializeDates:i,fieldTypes:r},l),{error:R,data:L,count:z}=T,{nextUrl:j}=T;if(R)R.message!==r5&&s.reject(R);else if(o)isFinite(z)?s.resolve(z):s.reject(new uo.Error("E4018"));else if(j&&!a)(t=>/^(?:[a-z]+:)?\/{2,2}/i.test(t))(j)||(j=((t,n)=>{var e,i=(t=>{var n=t.indexOf("?");return n>-1?t.substr(0,n):t})(t).split("/"),r=n.split("/");for(i.pop();r.length;)".."===(e=r.shift())?i.pop():i.push(e);return i.join("/")})(l.url,j)),y5(t,{url:j},e).fail(s.reject).done(ie=>s.resolve(L.concat(ie)));else{var Y=isFinite(z)?{totalCount:z}:void 0;s.resolve(L,Y)}}),s.promise()},aot=(t,n,e,i)=>{var r=((t,n,e)=>{var i,r,o,a;if("nocontent"===n)return null;var s="Unknown error",l=t,u=200,f={requestOptions:e};if("success"!==n){var{status:S,responseText:T}=t;u=S,s=Mce(t,n);try{l=JSON.parse(T)}catch{}}var R=(null===(i=l)||void 0===i?void 0:i.then)||(null===(r=l)||void 0===r?void 0:r.error)||(null===(o=l)||void 0===o?void 0:o["odata.error"])||(null===(a=l)||void 0===a?void 0:a["@odata.error"]);if(R){s=(t=>{var n,r,i=t;"message"in t&&(n=(null===(r=t.message)||void 0===r?void 0:r.value)||t.message);for(;i=i.innererror||i.internalexception;){var o;if(n=null!==(o=i.message)&&void 0!==o?o:n,i.internalexception&&-1===n.indexOf("inner exception"))break}return n})(R)||s,f.errorDetails=R,200===u&&(u=500);var L=Number(R.code);isFinite(L)&&L>=400&&(u=L)}return u>=400||0===u?(f.httpStatus=u,se(Error(s),f)):null})(t,n,i);if(r)return{error:r};if(!wi(t))return{data:t};var o="d"in t&&(Array.isArray(t.d)||Jn(t.d))?sot(t):lot(t);return uot(o,e),o},sot=t=>{var n,{d:e}=t;return Z(e)?{data:null!==(n=e.results)&&void 0!==n?n:e,nextUrl:e.__next,count:parseInt(e.__count,10)}:{error:Error("Malformed or unsupported JSON response received")}},lot=t=>{var n;return{data:null!==(n=t.value)&&void 0!==n?n:t,nextUrl:t["@odata.nextLink"],count:parseInt(t["@odata.count"],10)}},X0=ji.inherit({ctor(t){this._value=t},valueOf(){return this._value}}),uot=function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};we(n,(i,r)=>{if(null!==r&&"object"==typeof r)"results"in r&&(n[i]=r.results),t(n[i],e);else if("string"==typeof r){var{fieldTypes:o,deserializeDates:a}=e;if((!o||"String"!==o[i])&&Yrt.test(r)&&(n[i]=new Ni(r)),!1!==a)if(r.match(Zrt)){var l=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);n[i]=new Date(l.valueOf()+60*l.getTimezoneOffset()*1e3)}else Xrt.test(r)&&(n[i]=new Date(Jrt(n[i]).valueOf()))}})},J0=t=>t instanceof X0?t.valueOf():t.replace(/\./g,"/"),Zce=t=>t instanceof Date?v5(t,!1,!1):t instanceof Ni?t.valueOf():Array.isArray(t)?"[".concat(t.map(n=>Zce(n)).join(","),"]"):Xce(t),Xce=t=>t instanceof Date?(t=>"datetime'".concat(v5(t,!0,!0),"'"))(t):t instanceof Ni?"guid'".concat(t,"'"):t instanceof X0?t.valueOf():"string"==typeof t?(t=>"'".concat(t.replace(/'/g,"''"),"'"))(t):String(t),GP=(t,n)=>{switch(n){case 2:case 3:return Xce(t);case 4:return Zce(t);default:throw uo.Error("E4002")}},pot={String:t=>"".concat(t),Int32:t=>Math.floor(t),Int64:t=>t instanceof X0?t:new X0("".concat(t,"L")),Guid:t=>t instanceof Ni?t:new Ni(t),Boolean:t=>!!t,Single:t=>t instanceof X0?t:new X0(t+"f"),Decimal:t=>t instanceof X0?t:new X0(t+"m")},C5=(t,n)=>{if(null===n)return null;var e=pot[t];if(!e)throw uo.Error("E4014",t);return e(n)},Jce=(t,n)=>{if(n)return t<4?J0(n.join()):Vs(n,Yce,!0).join()},Qce=t=>{var n="",e=[],i=[];return we(t,(r,o)=>{Array.isArray(o)&&[].push.apply(e,o),wi(o)&&i.push("".concat(r).concat(Qce(o)))}),(e.length||i.length)&&(n+="(",e.length&&(n+="$select=".concat(Dr(e,J0).join())),i.length&&(e.length&&(n+=";"),n+="$expand=".concat(Dr(i,J0).join())),n+=")"),n},ehe=(t,n,e)=>{var i=e(n,t.shift(),t);!1!==i&&ehe(t,i,e)},the=(t,n,e)=>we(t,(i,r)=>ehe(r.split("."),n,e)),fot=(t,n)=>{var e={};return t&&we(WP(t),function(){e[J0(this)]=1}),n&&we(WP(n),function(){var i=this.split(".");i.length<2||(i.pop(),e[J0(i.join("."))]=1)}),Dr(e,(i,r)=>r).join()},nhe=(t,n,e)=>t<4?fot(n,e):((t,n)=>{var e={};if(t||n)return t&&the(WP(t),e,(i,r,o)=>(i[r]=i[r]||{},!!o.length&&i[r])),n&&the(Vs(WP(n),Yce),e,(i,r,o)=>o.length?i[r]=i[r]||{}:(i[r]=i[r]||[],i[r].push(r),!1)),(t=>{var n=[];return we(t,(e,i)=>n.push("".concat(e).concat(Qce(i)))),n.join()})(e)})(n,e),Cot=["contains","notcontains","startswith","endswith"],bot=(()=>{var t,n,e,i=S=>(T,R)=>"".concat(T," ").concat(S," ").concat(R),r=(S,T)=>(R,L)=>{var z=[S,"("];return n&&(R=-1===R.indexOf("tolower(")?"tolower(".concat(R,")"):R,L=L.toLowerCase()),T?z.push(L,",",R):z.push(R,",",L),z.push(")"),z.join("")},o={"=":i("eq"),"<>":i("ne"),">":i("gt"),">=":i("ge"),"<":i("lt"),"<=":i("le"),startswith:r("startswith"),endswith:r("endswith")},a=se({},o,{contains:r("substringof",!0),notcontains:r("not substringof",!0)}),s=se({},o,{contains:r("contains"),notcontains:r("not contains")}),u=S=>{var R,L,T=[];return we(S,function(z,j){if(Array.isArray(j)){if(T.length>1&&R!==L)throw new uo.Error("E4019");T.push("(".concat(f(j),")")),R=L,L="and"}else L=Ace(this)?"and":"or"}),T.join(" ".concat(R," "))},f=S=>Array.isArray(S[0])?u(S):Fce(S)?(T=>{var R=T[0],L=f(T[1]);if("!"===R)return"not (".concat(L,")");throw uo.Error("E4003",R)})(S):(S=>{var T,R=(S=kce(S))[1],L=S[0],z=e&&e[L];if(z&&(j=R,Cot.some(re=>re===j))&&"String"!==z)throw new uo.Error("E4024",R,L,z);var j,ie=(4===t?s:a)[R.toLowerCase()];if(!ie)throw uo.Error("E4003",R);var te=S[2];return null!==(T=e)&&void 0!==T&&T[L]&&(te=C5(e[L],te)),ie(J0(L),GP(te,t))})(S);return(S,T,R,L)=>(e=R,n=L??no().oDataFilterToLower,t=T,f(S))})();Lce.odata=t=>{var r,o,a,s,n=[],e=[],i=t.expand,l=t.version||2,u=()=>o||void 0!==a,f=T=>{for(var R=0;R<T.length;R++)if(Yt(T[R])||Array.isArray(T[R])&&f(T[R]))return!0;return!1},S=()=>{var T={};if(s||(n.length&&(T.$orderby=n.join(",")),o&&(T.$skip=o),void 0!==a&&(T.$top=a),T.$select=Jce(l,r)||void 0,T.$expand=nhe(l,i,r)||void 0),e.length){var L=t?.fieldTypes,z=t?.filterToLower;T.$filter=bot(e.length<2?e[0]:e,l,L,z)}return s&&(T.$top=0),(t.requireTotalCount||s)&&(4!==l?T.$inlinecount="allpages":T.$count="true"),T};return{optimize:T=>{for(var R=-1,L=0;L<T.length;L++)if("select"===T[L].name){R=L;break}if(!(R<0)&&Yt(T[R].args[0])){var z=T[1+R];!z||"slice"!==z.name||(T[1+R]=T[R],T[R]=z)}},exec:T=>y5(l,{url:T,params:se(S(),t?.params)},{beforeSend:t.beforeSend,jsonp:t.jsonp,withCredentials:t.withCredentials,countOnly:s,deserializeDates:t.deserializeDates,fieldTypes:t.fieldTypes,isPaged:isFinite(a)}),multiSort(T){var R;if(u())return!1;for(var L=0;L<T.length;L++){var z=T[L][0],j=!!T[L][1],Y=void 0;if("string"!=typeof z)return!1;Y=J0(z),j&&(Y+=" desc"),(R=R||[]).push(Y)}n=R},slice(T,R){if(u())return!1;o=T,a=R},filter(T){if(u()||(Array.isArray(T)||(T=[].slice.call(arguments)),f(T)))return!1;e.length&&e.push("and"),e.push(T)},select(T){if(r||Yt(T))return!1;Array.isArray(T)||(T=[].slice.call(arguments)),r=T},count:()=>s=!0}};class Sot{constructor(n){n=n||{},this._url=String(n.url).replace(/\/+$/,""),this._beforeSend=n.beforeSend,this._jsonp=n.jsonp,this._version=n.version||2,this._withCredentials=n.withCredentials,this._deserializeDates=n.deserializeDates,this._filterToLower=n.filterToLower}sendRequest(n,e,i,r){return y5(this.version,{url:n,method:e,params:i||{},payload:r},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})}get version(){return this._version}get beforeSend(){return this._beforeSend}get url(){return this._url}get jsonp(){return this._jsonp}get filterToLower(){return this._filterToLower}}var Tot=Hy.inherit({ctor(t){this.callBase(t),this._requestDispatcher=new Sot(t);var n=this.key(),e=t.fieldTypes,i=t.keyType;if(i){var r="string"==typeof i;n||(n=r?"5d46402c-7899-4ea9-bd81-8b73c47c7683":Object.keys(i),this._legacyAnonymousKey=n),r&&(i=((t,n)=>({[t]:n}))(n,i)),e=((t,n)=>{var e={};for(var i in t)e[i]=t[i];for(var r in n)r in e?e[r]!==n[r]&&uo.log("W4001",r):e[r]=n[r];return e})(e,i)}this._fieldTypes=e||{},this._updateMethod=2===this.version()?"MERGE":"PATCH"},_customLoadOptions:()=>["expand","customQueryParams"],_byKeyImpl(t,n){var e={};return n&&(e.$expand=nhe(this.version(),n.expand,n.select)||void 0,e.$select=Jce(this.version(),n.select)||void 0),this._requestDispatcher.sendRequest(this._byKeyUrl(t),"GET",e)},createQuery(t){var n,e,i={adapter:"odata",beforeSend:this._requestDispatcher.beforeSend,errorHandler:this._errorHandler,jsonp:this._requestDispatcher.jsonp,version:this._requestDispatcher.version,withCredentials:this._requestDispatcher._withCredentials,expand:t?.expand,requireTotalCount:t?.requireTotalCount,deserializeDates:this._requestDispatcher._deserializeDates,fieldTypes:this._fieldTypes};if(e=null!==(n=t?.urlOverride)&&void 0!==n?n:this._requestDispatcher.url,Z(this._requestDispatcher.filterToLower)&&(i.filterToLower=this._requestDispatcher.filterToLower),null!=t&&t.customQueryParams){var r=((t,n)=>{if(!t)return t;var e={};return we(t,(i,r)=>{e[i]=GP(r,n)}),e})(t?.customQueryParams,this.version());4===this.version()?e=((t,n)=>Er("{0}({1})",t,Dr(n||{},(e,i)=>Er("{0}={1}",i,e)).join(",")))(e,r):i.params=r}return Ha(e,i)},_insertImpl(t){this._requireKey();var n=new et;return Qt(this._requestDispatcher.sendRequest(this._requestDispatcher.url,"POST",null,t)).done(e=>n.resolve(e&&!no().useLegacyStoreResult?e:t,this.keyOf(e))).fail(n.reject),n.promise()},_updateImpl(t,n){var e=new et;return Qt(this._requestDispatcher.sendRequest(this._byKeyUrl(t),this._updateMethod,null,n)).done(i=>no().useLegacyStoreResult?e.resolve(t,n):e.resolve(i||n,t)).fail(e.reject),e.promise()},_removeImpl(t){var n=new et;return Qt(this._requestDispatcher.sendRequest(this._byKeyUrl(t),"DELETE")).done(()=>n.resolve(t)).fail(n.reject),n.promise()},_convertKey(t){var n=t,e=this._fieldTypes,i=this.key()||this._legacyAnonymousKey;if(Array.isArray(i)){n={};for(var r=0;r<i.length;r++){var o=i[r];n[o]=C5(e[o],t[o])}}else e[i]&&(n=C5(e[i],t));return n},_byKeyUrl(t){var n=this._requestDispatcher.url,e=this._convertKey(t);return"".concat(n,"(").concat(encodeURIComponent(((t,n)=>{if(wi(t)){var e=[];return we(t,(i,r)=>e.push("".concat(J0(i),"=").concat(GP(r,n)))),e.join()}return GP(t,n)})(e,this.version())),")")},version(){return this._requestDispatcher.version}},"odata");const Iot=Tot;class Ec extends RangeError{constructor(n){super(`${n} was out of range. Must be non-negative and less than the size of the collection.`),this.paramName=n,this.name="ArgumentOutOfRangeException",this.stack=this.stack||(new Error).stack}}const ti=Object.freeze({MoreThanOneElement:"Sequence contains more than one element",MoreThanOneMatchingElement:"Sequence contains more than one matching element",NoElements:"Sequence contains no elements",NoMatch:"Sequence contains no matching element"});class ni extends Error{constructor(n){super(n),this.name="InvalidOperationException",this.stack=this.stack||(new Error).stack}}const Ml=(t,n)=>t===n;class b5 extends Array{}class Qi{constructor(n){this.iterator=n}[Symbol.asyncIterator](){return this.iterator()}}function x5(t,n){this.v=t,this.k=n}function Wt(t){return new x5(t,0)}function kO(t){var n,e;function i(o,a){try{var s=t[o](a),l=s.value,u=l instanceof x5;Promise.resolve(u?l.v:l).then(function(f){if(u){var S="return"===o?"return":"next";if(!l.k||f.done)return i(S,f);f=t[S](f).value}r(s.done?"return":"normal",f)},function(f){i("throw",f)})}catch(f){r("throw",f)}}function r(o,a){switch(o){case"return":n.resolve({value:a,done:!0});break;case"throw":n.reject(a);break;default:n.resolve({value:a,done:!1})}(n=n.next)?i(n.key,n.arg):e=null}this._invoke=function(o,a){return new Promise(function(s,l){var u={key:o,arg:a,resolve:s,reject:l,next:null};e?e=e.next=u:(n=e=u,i(o,a))})},"function"!=typeof t.return&&(this.return=void 0)}function ei(t){return function(){return new kO(t.apply(this,arguments))}}kO.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},kO.prototype.next=function(t){return this._invoke("next",t)},kO.prototype.throw=function(t){return this._invoke("throw",t)},kO.prototype.return=function(t){return this._invoke("return",t)};class dr{constructor(n){this.dataFunc=n}[Symbol.asyncIterator](){const{dataFunc:n}=this;function i(){return(i=ei(function*(){if(1===n.type)for(const r of n.generator())yield r;else for(const r of yield Wt(n.generator()))yield r})).apply(this,arguments)}return function e(){return i.apply(this,arguments)}()}}class Xr{constructor(n){this.iterator=n}[Symbol.iterator](){return this.iterator()}}const pg=t=>{var n;const e=b5.prototype,i=t.prototype,r=Object.getOwnPropertyNames(e);for(const o of r)i[o]=null!==(n=i[o])&&void 0!==n?n:e[o]},Mot=(t,n,e,i)=>{if(i){if(!e)throw new ReferenceError("TAccumulate function is undefined");return Pot(t,n,e,i)}return e?Fot(t,n,e):Aot(t,n)},Aot=(t,n)=>{let e;for(const i of t)e=e?n(e,i):i;if(void 0===e)throw new ni(ti.NoElements);return e},Fot=(t,n,e)=>{let i=n;for(const r of t)i=e(i,r);return i},Pot=(t,n,e,i)=>{let r=n;for(const o of t)r=e(r,o);return i(r)},Rot=(t,n)=>{for(const e of t)if(!1===n(e))return!1;return!0},Lot=function(){var t=Rt(function*(n,e){for(const i of n)if(!1===(yield e(i)))return!1;return!0});return function(e,i){return t.apply(this,arguments)}}(),Bot=(t,n)=>n?Vot(t,n):Not(t),Not=t=>{for(const n of t)return!0;return!1},Vot=(t,n)=>{for(const e of t)if(!0===n(e))return!0;return!1},Hot=function(){var t=Rt(function*(n,e){for(const i of n)if(!0===(yield e(i)))return!0;return!1});return function(e,i){return t.apply(this,arguments)}}();function gn(t){var n,e,i,r=2;for(typeof Symbol<"u"&&(e=Symbol.asyncIterator,i=Symbol.iterator);r--;){if(e&&null!=(n=t[e]))return n.call(t);if(i&&null!=(n=t[i]))return new jP(n.call(t));e="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function jP(t){function n(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var i=e.done;return Promise.resolve(e.value).then(function(r){return{value:r,done:i}})}return(jP=function(i){this.s=i,this.n=i.next}).prototype={s:null,n:null,next:function(){return n(this.n.apply(this.s,arguments))},return:function(i){var r=this.s.return;return void 0===r?Promise.resolve({value:i,done:!0}):n(r.apply(this.s,arguments))},throw:function(i){var r=this.s.return;return void 0===r?Promise.reject(i):n(r.apply(this.s,arguments))}},new jP(t)}const hs=t=>{if(Array.isArray(t)){if(0===t.length)throw new ni(ti.NoElements);return new Qi(ei(function*(){var i,n=!1,e=!1;try{for(var o,r=gn(t);n=!(o=yield Wt(r.next())).done;n=!1)yield o.value}catch(a){e=!0,i=a}finally{try{n&&null!=r.return&&(yield Wt(r.return()))}finally{if(e)throw i}}}))}return new Qi(t)},zot=t=>{function e(){return(e=ei(function*(){for(const i of t)yield i})).apply(this,arguments)}return hs(function n(){return e.apply(this,arguments)})},ihe=(t,n)=>new dr({generator:n,type:t}),Uot=t=>ihe(0,function(){var e=Rt(function*(){const i=[];for(const r of t)i.push(r);return i});return function(){return e.apply(this,arguments)}}()),Wot=(t,n)=>{let e=0,i=0;if(n)for(const r of t)e+=n(r),i+=1;else for(const r of t)e+=r,i+=1;if(0===i)throw new ni(ti.NoElements);return e/i},Got=function(){var t=Rt(function*(n,e){let i=0,r=0;for(const o of n)i+=(yield e(o)),r+=1;if(0===r)throw new ni(ti.NoElements);return i/r});return function(e,i){return t.apply(this,arguments)}}(),jot=(t,n)=>{if(n<1)throw new Ec("index");return new Xr(function*e(){let i=[];for(const r of t)i.push(r),i.length===n&&(yield i,i=[]);i.length&&(yield i)})},Kot=(t,n)=>new Xr(function*e(){yield*t,yield*n}),$ot=(t,n,e=Ml)=>{for(const i of t)if(e(n,i))return!0;return!1},qot=function(){var t=Rt(function*(n,e,i){for(const r of n)if(yield i(e,r))return!0;return!1});return function(e,i,r){return t.apply(this,arguments)}}(),Yot=(t,n)=>n?Xot(t,n):Zot(t),Zot=t=>{let n=0;for(const e of t)n++;return n},Xot=(t,n)=>{let e=0;for(const i of t)!0===n(i)&&e++;return e},Jot=function(){var t=Rt(function*(n,e){let i=0;for(const r of n)!0===(yield e(r))&&i++;return i});return function(e,i){return t.apply(this,arguments)}}(),Qot=(t,n)=>new Xr(function*e(){let i=!1;for(const r of t)i=!0,yield r;i||(yield n)}),eat=(t,n=Ml)=>new Xr(function*e(){const i=[];for(const r of t)i.find(a=>n(a,r))||(i.push(r),yield r)}),tat=(t,n)=>{function i(){return(i=ei(function*(){const r=[];e:for(const o of t){for(const a of r)if(yield Wt(n(a,o)))continue e;r.push(o),yield o}})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},nat=(t,n)=>new Xr(function*e(){for(const i of t)n(i),yield i}),iat=(t,n)=>{function i(){return(i=ei(function*(){for(const r of t)yield Wt(n(r)),yield r})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},rat=(t,n)=>{if(n<0)throw new Ec("index");let e=0;for(const i of t)if(n===e++)return i;throw new Ec("index")},oat=(t,n)=>{let e=0;for(const i of t)if(n===e++)return i;return null},aat=(t,n,e=Ml)=>new Xr(function*i(){const r=[...n];for(const o of t){let a=!1;for(let s=0;s<r.length;s++)if(!0===e(o,r[s])){a=!0;break}!1===a&&(yield o)}}),sat=(t,n,e)=>{function r(){return(r=ei(function*(){const o=[...n];for(const a of t){let s=!1;for(let l=0;l<o.length;l++){const u=o[l];if(!0===(yield Wt(e(a,u)))){s=!0;break}}!1===s&&(yield a)}})).apply(this,arguments)}return hs(function i(){return r.apply(this,arguments)})},lat=(t,n)=>n?dat(t,n):uat(t),uat=t=>{const n=t[Symbol.iterator]().next();if(!0===n.done)throw new ni(ti.NoElements);return n.value},dat=(t,n)=>{for(const e of t)if(!0===n(e))return e;throw new ni(ti.NoMatch)},cat=function(){var t=Rt(function*(n,e){for(const i of n)if(!0===(yield e(i)))return i;throw new ni(ti.NoMatch)});return function(e,i){return t.apply(this,arguments)}}(),hat=(t,n)=>n?gat(t,n):pat(t),pat=t=>t[Symbol.iterator]().next().value||null,gat=(t,n)=>{for(const e of t)if(!0===n(e))return e;return null},fat=function(){var t=Rt(function*(n,e){for(const i of n)if(!0===(yield e(i)))return i;return null});return function(e,i){return t.apply(this,arguments)}}();class Al extends b5{constructor(n,e){super(1),this.key=n,this[0]=e}}const Cat=(t,n,e)=>{let i;return i=e?((t,n,e)=>function*(){const r=new Array;for(const o of t){const a=n(o);let s=!1;for(let l=0;l<r.length;l++){const u=r[l];if(e(u.key,a)){u.push(o),s=!0;break}}!1===s&&r.push(new Al(a,o))}for(const o of r)yield o})(t,n,e):((t,n)=>function*(){const i={};for(const r of t){const o=n(r),a=i[o];a?a.push(r):i[o]=new Al(o,r)}for(const r in i)yield i[r]})(t,n),new Xr(i)},bat=(t,n,e)=>e?wat(t,n,e):xat(t,n),xat=(t,n)=>{function i(){return(i=ei(function*(){const r={};for(const o of t){const a=yield Wt(n(o)),s=r[a];s?s.push(o):r[a]=new Al(a,o)}for(const o in r)yield r[o]})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},wat=(t,n,e)=>{function r(){return(r=ei(function*(){const o=new Array;for(const a of t){const s=yield Wt(n(a));let l=!1;for(let u=0;u<o.length;u++){const f=o[u];if(!0===(yield Wt(e(f.key,s)))){f.push(a),l=!0;break}}!1===l&&o.push(new Al(s,a))}for(const a of o)yield a})).apply(this,arguments)}return hs(function i(){return r.apply(this,arguments)})},Sat=(t,n,e,i)=>i?((t,n,e,i)=>new Xr(function*r(){const o=new Array;for(const a of t){const s=n(a);let l=!1;for(let u=0;u<o.length;u++){const f=o[u];if(i(f.key,s)){f.push(e(a)),l=!0;break}}if(!1===l){const u=e(a);o.push(new Al(s,u))}}for(const a of o)yield a}))(t,n,e,i):((t,n,e)=>new Xr(function*i(){const r={};for(const o of t){const a=n(o),s=r[a],l=e(o);s?s.push(l):r[a]=new Al(a,l)}for(const o in r)yield r[o]}))(t,n,e),Dat=(t,n,e,i,r,o)=>{const a=o?Eat(t,n,e,i,r,o):Oat(t,n,e,i,r);return new Xr(a)},Eat=(t,n,e,i,r,o)=>function*(){var a;const s=[];for(const l of n){const u=i(l),f=s.find(S=>o(S.key,u));f?f.values.push(l):s.push({key:u,values:[l]})}for(const l of t){const u=e(l),f=null!==(a=s.find(S=>o(S.key,u)))&&void 0!==a?a:{key:u,values:[]};yield r(l,f.values)}},Oat=(t,n,e,i,r)=>function*(){var o;const a=new Map;for(const s of n){const l=i(s),u=a.get(l);u?u.push(s):a.set(l,[s])}for(const s of t){const l=e(s),u=null!==(o=a.get(l))&&void 0!==o?o:[];yield r(s,u)}},Tat=(t,n,e,i,r,o)=>{const a=o?Iat(t,n,e,i,r,o):kat(t,n,e,i,r);return hs(a)},Iat=(t,n,e,i,r,o)=>ei(function*(){var a;const s=[];for(const l of n){const u=yield Wt(i(l)),f=s.find(S=>o(S.key,u));f?f.values.push(l):s.push({key:u,values:[l]})}for(const l of t){const u=yield Wt(e(l)),f=null!==(a=s.find(S=>o(S.key,u)))&&void 0!==a?a:{key:u,values:[]};yield r(l,f.values)}}),kat=(t,n,e,i,r)=>ei(function*(){var o;const a=new Map;for(const s of n){const l=yield Wt(i(s)),u=a.get(l);u?u.push(s):a.set(l,[s])}for(const s of t){const l=yield Wt(e(s)),u=null!==(o=a.get(l))&&void 0!==o?o:[];yield r(s,u)}}),Mat=(t,n,e=Ml)=>new Xr(function*i(){const r=[...t.distinct(e)];if(0===r.length)return;const o=[...n];for(let a=0;a<r.length;a++){const s=r[a];for(let l=0;l<o.length;l++)if(!0===e(s,o[l])){yield s;break}}}),Aat=(t,n,e)=>{function r(){return(r=ei(function*(){const o=[];var l,a=!1,s=!1;try{for(var f,u=gn(t.distinctAsync(e));a=!(f=yield Wt(u.next())).done;a=!1)o.push(f.value)}catch(T){s=!0,l=T}finally{try{a&&null!=u.return&&(yield Wt(u.return()))}finally{if(s)throw l}}if(0===o.length)return;const S=[...n];for(let T=0;T<o.length;T++){const R=o[T];for(let L=0;L<S.length;L++){const z=S[L];if(!0===(yield Wt(e(R,z)))){yield R;break}}}})).apply(this,arguments)}return hs(function i(){return r.apply(this,arguments)})},Fat=(t,n,e,i,r,o=Ml)=>new Xr(function*a(){const s=[...n];for(const l of t){const u=e(l);for(const f of s){const S=i(f);!0===o(u,S)&&(yield r(l,f))}}}),Pat=(t,n)=>n?Lat(t,n):Rat(t),Rat=t=>{let n;for(const e of t)n=e;if(!n)throw new ni(ti.NoElements);return n},Lat=(t,n)=>{let e;for(const i of t)!0===n(i)&&(e=i);if(!e)throw new ni(ti.NoMatch);return e},Bat=function(){var t=Rt(function*(n,e){let i;for(const r of n)!0===(yield e(r))&&(i=r);if(!i)throw new ni(ti.NoMatch);return i});return function(e,i){return t.apply(this,arguments)}}(),Nat=(t,n)=>n?Hat(t,n):Vat(t),Vat=t=>{let n=null;for(const e of t)n=e;return n},Hat=(t,n)=>{let e=null;for(const i of t)!0===n(i)&&(e=i);return e},zat=function(){var t=Rt(function*(n,e){let i=null;for(const r of n)!0===(yield e(r))&&(i=r);return i});return function(e,i){return t.apply(this,arguments)}}(),Uat=(t,n)=>n?Gat(t,n):Wat(t),Wat=t=>{let n=null;for(const e of t)n=Math.max(n||Number.NEGATIVE_INFINITY,e);if(null===n)throw new ni(ti.NoElements);return n},Gat=(t,n)=>{let e=null;for(const i of t)e=Math.max(e||Number.NEGATIVE_INFINITY,n(i));if(null===e)throw new ni(ti.NoElements);return e},jat=function(){var t=Rt(function*(n,e){let i=null;for(const r of n)i=Math.max(i||Number.NEGATIVE_INFINITY,yield e(r));if(null===i)throw new ni(ti.NoElements);return i});return function(e,i){return t.apply(this,arguments)}}(),Kat=(t,n)=>n?qat(t,n):$at(t),$at=t=>{let n=null;for(const e of t)n=Math.min(n||Number.POSITIVE_INFINITY,e);if(null===n)throw new ni(ti.NoElements);return n},qat=(t,n)=>{let e=null;for(const i of t)e=Math.min(e||Number.POSITIVE_INFINITY,n(i));if(null===e)throw new ni(ti.NoElements);return e},Yat=function(){var t=Rt(function*(n,e){let i=null;for(const r of n)i=Math.min(i||Number.POSITIVE_INFINITY,yield e(r));if(null===i)throw new ni(ti.NoElements);return i});return function(e,i){return t.apply(this,arguments)}}(),Zat=(t,n)=>{const e="string"==typeof n?r=>typeof r===n:r=>r instanceof n;return new Xr(function*i(){for(const r of t)e(r)&&(yield r)})};function Q0(t){var n={},e=!1;function i(r,o){return e=!0,{done:!1,value:new x5(o=new Promise(function(a){a(t[r](o))}),1)}}return n[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},n.next=function(r){return e?(e=!1,r):i("next",r)},"function"==typeof t.throw&&(n.throw=function(r){if(e)throw e=!1,r;return i("throw",r)}),"function"==typeof t.return&&(n.return=function(r){return e?(e=!1,r):i("return",r)}),n}const Xat=function(){var t=Rt(function*(n,e){const i=new Map;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;{const f=yield e(u),S=i.get(f);S?S.push(u):i.set(f,[u])}}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}();function w5(){return w5=ei(function*(t,n,e,i){const r=yield Wt(Xat(t,n)),o=[...r.keys()].sort(i||void 0);if(e)for(let a=0;a<o.length;a++)yield r.get(o[a]);else for(let a=o.length-1;a>=0;a--)yield r.get(o[a])}),w5.apply(this,arguments)}const Qat=function(){var t=Rt(function*(n,e){const i=new Map;for(const r of n){const o=yield e(r),a=i.get(o);a?a.push(r):i.set(o,[r])}return i});return function(e,i){return t.apply(this,arguments)}}();function est(t,n,e,i){return S5.apply(this,arguments)}function S5(){return S5=ei(function*(t,n,e,i){const r=yield Wt(Qat(t,n)),o=[...r.keys()].sort(i||void 0);if(e)for(let a=0;a<o.length;a++)yield r.get(o[a]);else for(let a=o.length-1;a>=0;a--)yield r.get(o[a])}),S5.apply(this,arguments)}const tst=function(){var t=Rt(function*(n,e){const i=new Map;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;{const f=e(u),S=i.get(f);S?S.push(u):i.set(f,[u])}}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}();function D5(){return D5=ei(function*(t,n,e,i){const r=yield Wt(tst(t,n)),o=[...r.keys()].sort(i||void 0);if(e)for(let a=0;a<o.length;a++)yield r.get(o[a]);else for(let a=o.length-1;a>=0;a--)yield r.get(o[a])}),D5.apply(this,arguments)}function*rst(t,n,e,i){const r=((t,n)=>{const e=new Map;for(const i of t){const r=n(i),o=e.get(r);o?o.push(i):e.set(r,[i])}return e})(t,n),o=[...r.keys()].sort(i||void 0);if(e)for(let a=0;a<o.length;a++)yield r.get(o[a]);else for(let a=o.length-1;a>=0;a--)yield r.get(o[a])}class jd extends Qi{constructor(n){super(ei(function*(){var r,e=!1,i=!1;try{for(var a,o=gn(n());e=!(a=yield Wt(o.next())).done;e=!1){const s=a.value;yield*Q0(gn(s))}}catch(s){i=!0,r=s}finally{try{e&&null!=o.return&&(yield Wt(o.return()))}finally{if(i)throw r}}})),this.orderedPairs=n}static generateAsync(n,e,i,r){let o;return o=n instanceof jd?function(){var a=ei(function*(){var u,s=!1,l=!1;try{for(var S,f=gn(n.orderedPairs());s=!(S=yield Wt(f.next())).done;s=!1){const T=S.value;yield*Q0(gn(est(T,e,i,r)))}}catch(T){l=!0,u=T}finally{try{s&&null!=f.return&&(yield Wt(f.return()))}finally{if(l)throw u}}});return function(){return a.apply(this,arguments)}}():()=>function Jat(t,n,e,i){return w5.apply(this,arguments)}(n,e,i,r),new jd(o)}static generate(n,e,i,r){let o;return o=n instanceof jd?function(){var a=ei(function*(){var u,s=!1,l=!1;try{for(var S,f=gn(n.orderedPairs());s=!(S=yield Wt(f.next())).done;s=!1){const T=S.value;yield*Q0(gn(rst(T,e,i,r)))}}catch(T){l=!0,u=T}finally{try{s&&null!=f.return&&(yield Wt(f.return()))}finally{if(l)throw u}}});return function(){return a.apply(this,arguments)}}():()=>function nst(t,n,e,i){return D5.apply(this,arguments)}(n,e,i,r),new jd(o)}thenBy(n,e){return jd.generate(this,n,!0,e)}thenByAsync(n,e){return jd.generateAsync(this,n,!0,e)}thenByDescending(n,e){return jd.generate(this,n,!1,e)}thenByDescendingAsync(n,e){return jd.generateAsync(this,n,!1,e)}}function*rhe(t,n,e,i){const r=((t,n)=>{const e=new Map;for(const i of t){const r=n(i),o=e.get(r);o?o.push(i):e.set(r,[i])}return e})(t,n),o=[...r.keys()].sort(i||void 0);if(e)for(let a=0;a<o.length;a++)yield r.get(o[a]);else for(let a=o.length-1;a>=0;a--)yield r.get(o[a])}const ast=function(){var t=Rt(function*(n,e){const i=new Map;for(const r of n){const o=yield e(r),a=i.get(o);a?a.push(r):i.set(o,[r])}return i});return function(e,i){return t.apply(this,arguments)}}();function ohe(t,n,e,i){return E5.apply(this,arguments)}function E5(){return E5=ei(function*(t,n,e,i){const r=yield Wt(ast(t,n)),o=[...r.keys()].sort(i||void 0);if(e)for(let a=0;a<o.length;a++)yield r.get(o[a]);else for(let a=o.length-1;a>=0;a--)yield r.get(o[a])}),E5.apply(this,arguments)}class _h extends Xr{constructor(n){super(function*(){for(const e of n())yield*e}),this.orderedPairs=n}static generate(n,e,i,r){let o;return o=n instanceof _h?function*(){for(const a of n.orderedPairs())yield*rhe(a,e,i,r)}:()=>rhe(n,e,i,r),new _h(o)}static generateAsync(n,e,i,r){let o;return o=n instanceof _h?function(){var a=ei(function*(){for(const s of n.orderedPairs())yield*Q0(gn(ohe(s,e,i,r)))});return function(){return a.apply(this,arguments)}}():()=>ohe(n,e,i,r),new jd(o)}thenBy(n,e){return _h.generate(this,n,!0,e)}thenByAsync(n,e){return _h.generateAsync(this,n,!0,e)}thenByDescending(n,e){return _h.generate(this,n,!1,e)}thenByDescendingAsync(n,e){return _h.generateAsync(this,n,!1,e)}}const sst=(t,n,e)=>_h.generate(t,n,!0,e),lst=(t,n,e)=>_h.generateAsync(t,n,!0,e),ust=(t,n,e)=>_h.generate(t,n,!1,e),dst=(t,n,e)=>_h.generateAsync(t,n,!1,e),cst=(t,n)=>{const e=[],i=[];for(const r of t)!0===n(r)?i.push(r):e.push(r);return[i,e]},hst=function(){var t=Rt(function*(n,e){const i=[],r=[];for(const o of n)!0===(yield e(o))?r.push(o):i.push(o);return[r,i]});return function(e,i){return t.apply(this,arguments)}}(),pst=t=>new Xr(function*n(){const e=[...t];for(let i=e.length-1;i>=0;i--)yield e[i]}),gst=(t,n)=>{if("function"==typeof n){const{length:e}=n;return 1===e?fst(t,n):mst(t,n)}return _st(t,n)},fst=(t,n)=>new Xr(function*e(){for(const i of t)yield n(i)}),mst=(t,n)=>new Xr(function*e(){let i=0;for(const r of t)yield n(r,i),i++}),_st=(t,n)=>new Xr(function*e(){for(const i of t)yield i[n]}),vst=(t,n)=>"function"==typeof n?1===n.length?yst(t,n):Cst(t,n):bst(t,n),yst=(t,n)=>{function i(){return(i=ei(function*(){for(const r of t)yield n(r)})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},Cst=(t,n)=>{function i(){return(i=ei(function*(){let r=0;for(const o of t)yield n(o,r),r++})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},bst=(t,n)=>{function i(){return(i=ei(function*(){for(const r of t)yield r[n]})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},xst=(t,n)=>"function"==typeof n?1===n.length?wst(t,n):Sst(t,n):Dst(t,n),wst=(t,n)=>new Xr(function*e(){for(const i of t)for(const r of n(i))yield r}),Sst=(t,n)=>new Xr(function*e(){let i=0;for(const r of t){for(const o of n(r,i))yield o;i++}}),Dst=(t,n)=>new Xr(function*e(){for(const i of t)for(const r of i[n])yield r}),Est=(t,n)=>1===n.length?Ost(t,n):Tst(t,n),Ost=(t,n)=>{function i(){return(i=ei(function*(){for(const r of t){const o=yield Wt(n(r));for(const a of o)yield a}})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},Tst=(t,n)=>{function i(){return(i=ei(function*(){let r=0;for(const o of t){const a=yield Wt(n(o,r));for(const s of a)yield s;r++}})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},Ist=(t,n,e=Ml)=>{const i=t[Symbol.iterator](),r=n[Symbol.iterator]();let o=i.next(),a=r.next();for(;!o.done&&!a.done;){if(!e(o.value,a.value))return!1;o=i.next(),a=r.next()}return!0===o.done&&!0===a.done},kst=function(){var t=Rt(function*(n,e,i){const r=n[Symbol.iterator](),o=e[Symbol.iterator]();let a=r.next(),s=o.next();for(;!a.done&&!s.done;){if(!1===(yield i(a.value,s.value)))return!1;a=r.next(),s=o.next()}return!0===a.done&&!0===s.done});return function(e,i,r){return t.apply(this,arguments)}}(),Mst=(t,n)=>n?Fst(t,n):Ast(t),Ast=t=>{let n=!1,e=null;for(const i of t){if(!0===n)throw new ni(ti.MoreThanOneElement);n=!0,e=i}if(!1===n)throw new ni(ti.NoElements);return e},Fst=(t,n)=>{let e=!1,i=null;for(const r of t)if(n(r)){if(!0===e)throw new ni(ti.MoreThanOneMatchingElement);e=!0,i=r}if(!1===e)throw new ni(ti.NoMatch);return i},Pst=function(){var t=Rt(function*(n,e){let i=!1,r=null;for(const o of n)if(yield e(o)){if(!0===i)throw new ni(ti.MoreThanOneMatchingElement);i=!0,r=o}if(!1===i)throw new ni(ti.NoMatch);return r});return function(e,i){return t.apply(this,arguments)}}(),Rst=(t,n)=>n?Bst(t,n):Lst(t),Lst=t=>{let n=!1,e=null;for(const i of t){if(!0===n)throw new ni(ti.MoreThanOneElement);n=!0,e=i}return e},Bst=(t,n)=>{let e=!1,i=null;for(const r of t)if(n(r)){if(!0===e)throw new ni(ti.MoreThanOneMatchingElement);e=!0,i=r}return i},Nst=function(){var t=Rt(function*(n,e){let i=!1,r=null;for(const o of n)if(yield e(o)){if(!0===i)throw new ni(ti.MoreThanOneElement);i=!0,r=o}return r});return function(e,i){return t.apply(this,arguments)}}(),Vst=(t,n)=>new Xr(function*e(){let i=0;for(const r of t)i++>=n&&(yield r)}),Hst=(t,n)=>1===n.length?zst(t,n):Ust(t,n),zst=(t,n)=>new Xr(function*e(){let i=!0;for(const r of t)!1===i?yield r:!1===n(r)&&(i=!1,yield r)}),Ust=(t,n)=>new Xr(function*e(){let i=0,r=!0;for(const o of t)!1===r?yield o:!1===n(o,i)&&(r=!1,yield o),i++}),Wst=(t,n)=>1===n.length?Gst(t,n):jst(t,n),Gst=(t,n)=>{function i(){return(i=ei(function*(){let r=!0;for(const o of t)!1===r?yield o:!1===(yield Wt(n(o)))&&(r=!1,yield o)})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},jst=(t,n)=>{function i(){return(i=ei(function*(){let r=0,o=!0;for(const a of t)!1===o?yield a:!1===(yield Wt(n(a,r)))&&(o=!1,yield a),r++})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},Kst=(t,n)=>n?qst(t,n):$st(t),$st=t=>{let n=0;for(const e of t)n+=e;return n},qst=(t,n)=>{let e=0;for(const i of t)e+=n(i);return e},Yst=function(){var t=Rt(function*(n,e){let i=0;for(const r of n)i+=(yield e(r));return i});return function(e,i){return t.apply(this,arguments)}}(),Zst=(t,n)=>new Xr(function*e(){let i=n>0?n:0;for(const r of t){if(0==i--)break;yield r}}),Xst=(t,n)=>1===n.length?Jst(t,n):Qst(t,n),Jst=(t,n)=>new Xr(function*e(){for(const i of t){if(!n(i))break;yield i}}),Qst=(t,n)=>new Xr(function*e(){let i=0;for(const r of t){if(!n(r,i++))break;yield r}}),elt=(t,n)=>1===n.length?tlt(t,n):nlt(t,n),tlt=(t,n)=>{function i(){return(i=ei(function*(){for(const r of t){if(!(yield Wt(n(r))))break;yield r}})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},nlt=(t,n)=>{function i(){return(i=ei(function*(){let r=0;for(const o of t){if(!(yield Wt(n(o,r++))))break;yield o}})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},ilt=t=>[...t],rlt=(t,n)=>{const e=new Map;for(const i of t){const r=n(i),o=e.get(r);void 0===o?e.set(r,[i]):o.push(i)}return e},olt=function(){var t=Rt(function*(n,e){const i=new Map;for(const r of n){const o=yield e(r),a=i.get(o);void 0===a?i.set(o,[r]):a.push(r)}return i});return function(e,i){return t.apply(this,arguments)}}(),alt=(t,n)=>{const e={};for(const i of t)e[n(i)]=i;return e},slt=function(){var t=Rt(function*(n,e){const i={};for(const r of n)i[yield e(r)]=r;return i});return function(e,i){return t.apply(this,arguments)}}(),llt=t=>new Set(t),ult=(t,n,e)=>e?clt(t,n,e):dlt(t,n),dlt=(t,n)=>new Xr(function*e(){const i=new Set;for(const r of t)!1===i.has(r)&&(yield r,i.add(r));for(const r of n)!1===i.has(r)&&(yield r,i.add(r))}),clt=(t,n,e)=>new Xr(function*i(){const r=[];for(const o of[t,n])for(const a of o){let s=!1;for(const l of r)if(!0===e(a,l)){s=!0;break}!1===s&&(yield a,r.push(a))}}),hlt=(t,n,e)=>{function r(){return(r=ei(function*(){const o=[];for(const a of[t,n])for(const s of a){let l=!1;for(const u of o)if(!0===(yield Wt(e(s,u)))){l=!0;break}!1===l&&(yield s,o.push(s))}})).apply(this,arguments)}return hs(function i(){return r.apply(this,arguments)})},plt=(t,n)=>1===n.length?glt(t,n):flt(t,n),glt=(t,n)=>new Xr(function*e(){for(const i of t)!0===n(i)&&(yield i)}),flt=(t,n)=>new Xr(function*e(){let i=0;for(const r of t)!0===n(r,i++)&&(yield r)}),mlt=(t,n)=>1===n.length?_lt(t,n):vlt(t,n),_lt=(t,n)=>{function i(){return(i=ei(function*(){for(const r of t)!0===(yield Wt(n(r)))&&(yield r)})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},vlt=(t,n)=>{function i(){return(i=ei(function*(){let r=0;for(const o of t)!0===(yield Wt(n(o,r++)))&&(yield o)})).apply(this,arguments)}return hs(function e(){return i.apply(this,arguments)})},ylt=(t,n,e)=>e?blt(t,n,e):Clt(t,n),Clt=(t,n)=>new Xr(function*e(){const i=t[Symbol.iterator](),r=n[Symbol.iterator]();for(;;){const o=i.next(),a=r.next();if(o.done||a.done)break;yield[o.value,a.value]}}),blt=(t,n,e)=>new Xr(function*i(){const r=t[Symbol.iterator](),o=n[Symbol.iterator]();for(;;){const a=r.next(),s=o.next();if(a.done||s.done)break;yield e(a.value,s.value)}}),xlt=(t,n,e)=>{function r(){return(r=ei(function*(){const o=t[Symbol.iterator](),a=n[Symbol.iterator]();for(;;){const s=o.next(),l=a.next();if(s.done||l.done)break;yield e(s.value,l.value)}})).apply(this,arguments)}return hs(function i(){return r.apply(this,arguments)})},O5=t=>{const n=t.prototype,e=(i,r)=>{const o=function(...a){return i(this,...a)};Object.defineProperty(o,"length",{value:i.length-1}),n[r]=o};e(Mot,"aggregate"),e(Rot,"all"),e(Lot,"allAsync"),e(Bot,"any"),e(Hot,"anyAsync"),e(zot,"asAsync"),e(Uot,"asParallel"),e(Wot,"average"),e(Got,"averageAsync"),e(jot,"chunk"),e(Kot,"concatenate"),e($ot,"contains"),e(qot,"containsAsync"),e(Yot,"count"),e(Jot,"countAsync"),e(Qot,"defaultIfEmpty"),e(eat,"distinct"),e(tat,"distinctAsync"),e(nat,"each"),e(iat,"eachAsync"),e(rat,"elementAt"),e(oat,"elementAtOrDefault"),e(aat,"except"),e(sat,"exceptAsync"),e(lat,"first"),e(cat,"firstAsync"),e(hat,"firstOrDefault"),e(fat,"firstOrDefaultAsync"),e(Cat,"groupBy"),e(bat,"groupByAsync"),e(Sat,"groupByWithSel"),e(Dat,"groupJoin"),e(Tat,"groupJoinAsync"),e(Mat,"intersect"),e(Aat,"intersectAsync"),e(Fat,"joinByKey"),e(Pat,"last"),e(Bat,"lastAsync"),e(Nat,"lastOrDefault"),e(zat,"lastOrDefaultAsync"),e(Uat,"max"),e(jat,"maxAsync"),e(Kat,"min"),e(Yat,"minAsync"),e(Zat,"ofType"),e(sst,"orderBy"),e(lst,"orderByAsync"),e(ust,"orderByDescending"),e(dst,"orderByDescendingAsync"),e(pst,"reverse"),e(gst,"select"),e(vst,"selectAsync"),e(xst,"selectMany"),e(Est,"selectManyAsync"),e(Ist,"sequenceEquals"),e(kst,"sequenceEqualsAsync"),e(Mst,"single"),e(Pst,"singleAsync"),e(Rst,"singleOrDefault"),e(Nst,"singleOrDefaultAsync"),e(Vst,"skip"),e(Hst,"skipWhile"),e(Wst,"skipWhileAsync"),e(Kst,"sum"),e(Yst,"sumAsync"),e(Zst,"take"),e(Xst,"takeWhile"),e(elt,"takeWhileAsync"),e(ilt,"toArray"),e(rlt,"toMap"),e(olt,"toMapAsync"),e(alt,"toObject"),e(slt,"toObjectAsync"),e(cst,"partition"),e(hst,"partitionAsync"),e(llt,"toSet"),e(ult,"union"),e(hlt,"unionAsync"),e(plt,"where"),e(mlt,"whereAsync"),e(ylt,"zip"),e(xlt,"zipAsync")},wlt=(t,n,e,i)=>{if(i){if(!e)throw new ReferenceError("TAccumulate function is undefined");return Elt(t,n,e,i)}return e?Dlt(t,n,e):Slt(t,n)},Slt=function(){var t=Rt(function*(n,e){let i;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;i=i?e(i,u):u}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}if(void 0===i)throw new ni(ti.NoElements);return i});return function(e,i){return t.apply(this,arguments)}}(),Dlt=function(){var t=Rt(function*(n,e,i){let r=e;var s,o=!1,a=!1;try{for(var u,l=gn(n);o=!(u=yield l.next()).done;o=!1)r=i(r,u.value)}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}return r});return function(e,i,r){return t.apply(this,arguments)}}(),Elt=function(){var t=Rt(function*(n,e,i,r){let o=e;var l,a=!1,s=!1;try{for(var f,u=gn(n);a=!(f=yield u.next()).done;a=!1)o=i(o,f.value)}catch(S){s=!0,l=S}finally{try{a&&null!=u.return&&(yield u.return())}finally{if(s)throw l}}return r(o)});return function(e,i,r,o){return t.apply(this,arguments)}}(),Olt=function(){var t=Rt(function*(n,e){var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1)if(!1===e(s.value))return!1}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return!0});return function(e,i){return t.apply(this,arguments)}}(),Tlt=function(){var t=Rt(function*(n,e){var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1){const l=s.value;if(!1===(yield e(l)))return!1}}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return!0});return function(e,i){return t.apply(this,arguments)}}(),Ilt=(t,n)=>n?Mlt(t,n):klt(t),klt=function(){var t=Rt(function*(n){var r,e=!1,i=!1;try{for(var o=gn(n);e=!(yield o.next()).done;e=!1)return!0}catch(s){i=!0,r=s}finally{try{e&&null!=o.return&&(yield o.return())}finally{if(i)throw r}}return!1});return function(e){return t.apply(this,arguments)}}(),Mlt=function(){var t=Rt(function*(n,e){var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1)if(!0===e(s.value))return!0}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return!1});return function(e,i){return t.apply(this,arguments)}}(),Alt=function(){var t=Rt(function*(n,e){var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1){const l=s.value;if(!0===(yield e(l)))return!0}}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return!1});return function(e,i){return t.apply(this,arguments)}}(),Flt=t=>ihe(0,function(){var e=Rt(function*(){const i=[];var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield s.next()).done;r=!1)i.push(l.value)}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(){return e.apply(this,arguments)}}()),Plt=function(){var t=Rt(function*(n,e){let i=0,r=0;if(e){var s,o=!1,a=!1;try{for(var u,l=gn(n);o=!(u=yield l.next()).done;o=!1)i+=e(u.value),r+=1}catch(z){a=!0,s=z}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}}else{var T,f=!1,S=!1;try{for(var L,R=gn(n);f=!(L=yield R.next()).done;f=!1)i+=L.value,r+=1}catch(z){S=!0,T=z}finally{try{f&&null!=R.return&&(yield R.return())}finally{if(S)throw T}}}if(0===r)throw new ni(ti.NoElements);return i/r});return function(e,i){return t.apply(this,arguments)}}(),Rlt=function(){var t=Rt(function*(n,e){let i=0,r=0;var s,o=!1,a=!1;try{for(var u,l=gn(n);o=!(u=yield l.next()).done;o=!1){const f=u.value;i+=(yield e(f)),r+=1}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}if(0===r)throw new ni(ti.NoElements);return i/r});return function(e,i){return t.apply(this,arguments)}}(),Llt=(t,n)=>{if(n<1)throw new Ec("index");function i(){return(i=ei(function*(){let r=[];var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1)r.push(u.value),r.length===n&&(yield r,r=[])}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}r.length&&(yield r)})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Blt=(t,n)=>{function i(){return(i=ei(function*(){yield*Q0(gn(t)),yield*Q0(gn(n))})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Nlt=function(){var t=Rt(function*(n,e,i=Ml){var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1)if(i(e,l.value))return!0}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return!1});return function(e,i){return t.apply(this,arguments)}}(),Vlt=function(){var t=Rt(function*(n,e,i){var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;if(yield i(e,u))return!0}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return!1});return function(e,i,r){return t.apply(this,arguments)}}(),Hlt=(t,n)=>n?Ult(t,n):zlt(t),zlt=function(){var t=Rt(function*(n){let e=0;var o,i=!1,r=!1;try{for(var a=gn(n);i=!(yield a.next()).done;i=!1)e++}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return e});return function(e){return t.apply(this,arguments)}}(),Ult=function(){var t=Rt(function*(n,e){let i=0;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1)!0===e(l.value)&&i++}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}(),Wlt=function(){var t=Rt(function*(n,e){let i=0;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;!0===(yield e(u))&&i++}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}(),Glt=(t,n)=>{function i(){return(i=ei(function*(){let r=!1;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;r=!0,yield f}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}r||(yield n)})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},jlt=(t,n=Ml)=>{function i(){return(i=ei(function*(){const r=[];var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;r.find(T=>n(T,f))||(r.push(f),yield f)}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Klt=(t,n)=>{function i(){return(i=ei(function*(){const r=[];var s,o=!1,a=!1;try{e:for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;for(const S of r)if(yield Wt(n(S,f)))continue e;r.push(f),yield f}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},$lt=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;n(u),yield u}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},qlt=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;yield Wt(n(u)),yield u}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Ylt=function(){var t=Rt(function*(n,e){if(e<0)throw new Ec("index");let i=0;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1)if(e===i++)return l.value}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}throw new Ec("index")});return function(e,i){return t.apply(this,arguments)}}(),Zlt=function(){var t=Rt(function*(n,e){let i=0;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1)if(e===i++)return l.value}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return null});return function(e,i){return t.apply(this,arguments)}}(),Xlt=(t,n,e=Ml)=>{function r(){return(r=ei(function*(){const o=[];var l,a=!1,s=!1;try{for(var f,u=gn(n);a=!(f=yield Wt(u.next())).done;a=!1)o.push(f.value)}catch(j){s=!0,l=j}finally{try{a&&null!=u.return&&(yield Wt(u.return()))}finally{if(s)throw l}}var R,S=!1,T=!1;try{for(var z,L=gn(t);S=!(z=yield Wt(L.next())).done;S=!1){const j=z.value;{let Y=!1;for(let ie=0;ie<o.length;ie++)if(!0===e(j,o[ie])){Y=!0;break}!1===Y&&(yield j)}}}catch(j){T=!0,R=j}finally{try{S&&null!=L.return&&(yield Wt(L.return()))}finally{if(T)throw R}}})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},Jlt=(t,n,e)=>{function r(){return(r=ei(function*(){const o=[];var l,a=!1,s=!1;try{for(var f,u=gn(n);a=!(f=yield Wt(u.next())).done;a=!1)o.push(f.value)}catch(j){s=!0,l=j}finally{try{a&&null!=u.return&&(yield Wt(u.return()))}finally{if(s)throw l}}var R,S=!1,T=!1;try{for(var z,L=gn(t);S=!(z=yield Wt(L.next())).done;S=!1){const j=z.value;{let Y=!1;for(let ie=0;ie<o.length;ie++){const te=o[ie];if(!0===(yield Wt(e(j,te)))){Y=!0;break}}!1===Y&&(yield j)}}}catch(j){T=!0,R=j}finally{try{S&&null!=L.return&&(yield Wt(L.return()))}finally{if(T)throw R}}})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},Qlt=(t,n)=>n?tut(t,n):eut(t),eut=function(){var t=Rt(function*(n){const e=yield n[Symbol.asyncIterator]().next();if(!0===e.done)throw new ni(ti.NoElements);return e.value});return function(e){return t.apply(this,arguments)}}(),tut=function(){var t=Rt(function*(n,e){var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1){const l=s.value;if(!0===e(l))return l}}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}throw new ni(ti.NoMatch)});return function(e,i){return t.apply(this,arguments)}}(),nut=function(){var t=Rt(function*(n,e){var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1){const l=s.value;if(!0===(yield e(l)))return l}}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}throw new ni(ti.NoMatch)});return function(e,i){return t.apply(this,arguments)}}(),iut=(t,n)=>n?out(t,n):rut(t),rut=function(){var t=Rt(function*(n){return(yield n[Symbol.asyncIterator]().next()).value||null});return function(e){return t.apply(this,arguments)}}(),out=function(){var t=Rt(function*(n,e){var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1){const l=s.value;if(!0===e(l))return l}}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return null});return function(e,i){return t.apply(this,arguments)}}(),aut=function(){var t=Rt(function*(n,e){var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1){const l=s.value;if(!0===(yield e(l)))return l}}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return null});return function(e,i){return t.apply(this,arguments)}}(),sut=(t,n,e)=>e?lut(t,n,e):uut(t,n),lut=(t,n,e)=>{function r(){return(r=ei(function*(){const o=new Array;var l,a=!1,s=!1;try{for(var f,u=gn(t);a=!(f=yield Wt(u.next())).done;a=!1){const S=f.value;{const T=n(S);let R=!1;for(let L=0;L<o.length;L++){const z=o[L];if(e(z.key,T)){z.push(S),R=!0;break}}!1===R&&o.push(new Al(T,S))}}}catch(S){s=!0,l=S}finally{try{a&&null!=u.return&&(yield Wt(u.return()))}finally{if(s)throw l}}for(const S of o)yield S})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},uut=(t,n)=>{function i(){return(i=ei(function*(){const r={};var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;{const S=n(f),T=r[S];T?T.push(f):r[S]=new Al(S,f)}}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}for(const f in r)yield r[f]})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},dut=(t,n,e)=>e?hut(t,n,e):cut(t,n),cut=(t,n)=>{function i(){return(i=ei(function*(){const r={};var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;{const S=yield Wt(n(f)),T=r[S];T?T.push(f):r[S]=new Al(S,f)}}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}for(const f in r)yield r[f]})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},hut=(t,n,e)=>{function r(){return(r=ei(function*(){const o=new Array;var l,a=!1,s=!1;try{for(var f,u=gn(t);a=!(f=yield Wt(u.next())).done;a=!1){const S=f.value;{const T=yield Wt(n(S));let R=!1;for(let L=0;L<o.length;L++){const z=o[L];if(!0===(yield Wt(e(z.key,T)))){z.push(S),R=!0;break}}!1===R&&o.push(new Al(T,S))}}}catch(S){s=!0,l=S}finally{try{a&&null!=u.return&&(yield Wt(u.return()))}finally{if(s)throw l}}for(const S of o)yield S})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},put=(t,n,e,i)=>i?fut(t,n,e,i):gut(t,n,e),gut=(t,n,e)=>{function r(){return(r=ei(function*(){const o={};var l,a=!1,s=!1;try{for(var f,u=gn(t);a=!(f=yield Wt(u.next())).done;a=!1){const S=f.value;{const T=n(S),R=o[T],L=e(S);R?R.push(L):o[T]=new Al(T,L)}}}catch(S){s=!0,l=S}finally{try{a&&null!=u.return&&(yield Wt(u.return()))}finally{if(s)throw l}}for(const S in o)yield o[S]})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},fut=(t,n,e,i)=>{function o(){return(o=ei(function*(){const a=new Array;var u,s=!1,l=!1;try{for(var S,f=gn(t);s=!(S=yield Wt(f.next())).done;s=!1){const T=S.value;{const R=n(T);let L=!1;for(let z=0;z<a.length;z++){const j=a[z];if(i(j.key,R)){j.push(e(T)),L=!0;break}}if(!1===L){const z=e(T);a.push(new Al(R,z))}}}}catch(T){l=!0,u=T}finally{try{s&&null!=f.return&&(yield Wt(f.return()))}finally{if(l)throw u}}for(const T of a)yield T})).apply(this,arguments)}return new Qi(function r(){return o.apply(this,arguments)})},mut=(t,n,e,i,r,o)=>{const a=o?_ut(t,n,e,i,r,o):vut(t,n,e,i,r);return new Qi(a)},_ut=(t,n,e,i,r,o)=>ei(function*(){var a;const s=[];var f,l=!1,u=!1;try{for(var T,S=gn(n);l=!(T=yield Wt(S.next())).done;l=!1){const ie=T.value;{const te=i(ie),re=s.find(he=>o(he.key,te));re?re.values.push(ie):s.push({key:te,values:[ie]})}}}catch(ie){u=!0,f=ie}finally{try{l&&null!=S.return&&(yield Wt(S.return()))}finally{if(u)throw f}}var z,R=!1,L=!1;try{for(var Y,j=gn(t);R=!(Y=yield Wt(j.next())).done;R=!1){const ie=Y.value;{const te=e(ie),re=null!==(a=s.find(he=>o(he.key,te)))&&void 0!==a?a:{key:te,values:[]};yield r(ie,re.values)}}}catch(ie){L=!0,z=ie}finally{try{R&&null!=j.return&&(yield Wt(j.return()))}finally{if(L)throw z}}}),vut=(t,n,e,i,r)=>ei(function*(){var o;const a=new Map;var u,s=!1,l=!1;try{for(var S,f=gn(n);s=!(S=yield Wt(f.next())).done;s=!1){const Y=S.value;{const ie=i(Y),te=a.get(ie);te?te.push(Y):a.set(ie,[Y])}}}catch(Y){l=!0,u=Y}finally{try{s&&null!=f.return&&(yield Wt(f.return()))}finally{if(l)throw u}}var L,T=!1,R=!1;try{for(var j,z=gn(t);T=!(j=yield Wt(z.next())).done;T=!1){const Y=j.value;{const ie=e(Y),te=null!==(o=a.get(ie))&&void 0!==o?o:[];yield r(Y,te)}}}catch(Y){R=!0,L=Y}finally{try{T&&null!=z.return&&(yield Wt(z.return()))}finally{if(R)throw L}}}),yut=(t,n,e,i,r,o)=>{const a=o?Cut(t,n,e,i,r,o):but(t,n,e,i,r);return new Qi(a)},Cut=(t,n,e,i,r,o)=>ei(function*(){var a;const s=[];var f,l=!1,u=!1;try{for(var T,S=gn(n);l=!(T=yield Wt(S.next())).done;l=!1){const ie=T.value;{const te=yield Wt(i(ie)),re=s.find(he=>o(he.key,te));re?re.values.push(ie):s.push({key:te,values:[ie]})}}}catch(ie){u=!0,f=ie}finally{try{l&&null!=S.return&&(yield Wt(S.return()))}finally{if(u)throw f}}var z,R=!1,L=!1;try{for(var Y,j=gn(t);R=!(Y=yield Wt(j.next())).done;R=!1){const ie=Y.value;{const te=yield Wt(e(ie)),re=null!==(a=s.find(he=>o(he.key,te)))&&void 0!==a?a:{key:te,values:[]};yield r(ie,re.values)}}}catch(ie){L=!0,z=ie}finally{try{R&&null!=j.return&&(yield Wt(j.return()))}finally{if(L)throw z}}}),but=(t,n,e,i,r)=>ei(function*(){var o;const a=new Map;var u,s=!1,l=!1;try{for(var S,f=gn(n);s=!(S=yield Wt(f.next())).done;s=!1){const Y=S.value;{const ie=yield Wt(i(Y)),te=a.get(ie);te?te.push(Y):a.set(ie,[Y])}}}catch(Y){l=!0,u=Y}finally{try{s&&null!=f.return&&(yield Wt(f.return()))}finally{if(l)throw u}}var L,T=!1,R=!1;try{for(var j,z=gn(t);T=!(j=yield Wt(z.next())).done;T=!1){const Y=j.value;{const ie=yield Wt(e(Y)),te=null!==(o=a.get(ie))&&void 0!==o?o:[];yield r(Y,te)}}}catch(Y){R=!0,L=Y}finally{try{T&&null!=z.return&&(yield Wt(z.return()))}finally{if(R)throw L}}}),xut=(t,n,e=Ml)=>{function r(){return(r=ei(function*(){const o=yield Wt(t.distinct(e).toArray());if(0===o.length)return;const a=yield Wt(n.toArray());for(let s=0;s<o.length;s++){const l=o[s];for(let u=0;u<a.length;u++)if(!0===e(l,a[u])){yield l;break}}})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},wut=(t,n,e)=>{function r(){return(r=ei(function*(){const o=yield Wt(t.distinctAsync(e).toArray());if(0===o.length)return;const a=yield Wt(n.toArray());for(let s=0;s<o.length;s++){const l=o[s];for(let u=0;u<a.length;u++){const f=a[u];if(!0===(yield Wt(e(l,f)))){yield l;break}}}})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},Sut=(t,n,e,i,r,o=Ml)=>{function s(){return(s=ei(function*(){const l=[];var S,u=!1,f=!1;try{for(var R,T=gn(n);u=!(R=yield Wt(T.next())).done;u=!1)l.push(R.value)}catch(te){f=!0,S=te}finally{try{u&&null!=T.return&&(yield Wt(T.return()))}finally{if(f)throw S}}var j,L=!1,z=!1;try{for(var ie,Y=gn(t);L=!(ie=yield Wt(Y.next())).done;L=!1){const te=ie.value;{const re=e(te);for(const he of l){const fe=i(he);!0===o(re,fe)&&(yield r(te,he))}}}}catch(te){z=!0,j=te}finally{try{L&&null!=Y.return&&(yield Wt(Y.return()))}finally{if(z)throw j}}})).apply(this,arguments)}return new Qi(function a(){return s.apply(this,arguments)})},Dut=(t,n)=>n?Out(t,n):Eut(t),Eut=function(){var t=Rt(function*(n){let e=null;var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1)e=s.value}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}if(!e)throw new ni(ti.NoElements);return e});return function(e){return t.apply(this,arguments)}}(),Out=function(){var t=Rt(function*(n,e){let i=null;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;!0===e(u)&&(i=u)}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}if(!i)throw new ni(ti.NoMatch);return i});return function(e,i){return t.apply(this,arguments)}}(),Tut=function(){var t=Rt(function*(n,e){let i=null;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;!0===(yield e(u))&&(i=u)}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}if(!i)throw new ni(ti.NoMatch);return i});return function(e,i){return t.apply(this,arguments)}}(),Iut=(t,n)=>n?Mut(t,n):kut(t),kut=function(){var t=Rt(function*(n){let e=null;var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1)e=s.value}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return e});return function(e){return t.apply(this,arguments)}}(),Mut=function(){var t=Rt(function*(n,e){let i=null;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;!0===e(u)&&(i=u)}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}(),Aut=function(){var t=Rt(function*(n,e){let i=null;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;!0===(yield e(u))&&(i=u)}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}(),Fut=(t,n)=>n?Rut(t,n):Put(t),Put=function(){var t=Rt(function*(n){let e=null;var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1)e=Math.max(e||Number.NEGATIVE_INFINITY,s.value)}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}if(null===e)throw new ni(ti.NoElements);return e});return function(e){return t.apply(this,arguments)}}(),Rut=function(){var t=Rt(function*(n,e){let i=null;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1)i=Math.max(i||Number.NEGATIVE_INFINITY,e(l.value))}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}if(null===i)throw new ni(ti.NoElements);return i});return function(e,i){return t.apply(this,arguments)}}(),Lut=function(){var t=Rt(function*(n,e){let i=null;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;i=Math.max(i||Number.NEGATIVE_INFINITY,yield e(u))}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}if(null===i)throw new ni(ti.NoElements);return i});return function(e,i){return t.apply(this,arguments)}}(),But=(t,n)=>n?Vut(t,n):Nut(t),Nut=function(){var t=Rt(function*(n){let e=null;var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1)e=Math.min(e||Number.POSITIVE_INFINITY,s.value)}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}if(null===e)throw new ni(ti.NoElements);return e});return function(e){return t.apply(this,arguments)}}(),Vut=function(){var t=Rt(function*(n,e){let i=null;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1)i=Math.min(i||Number.POSITIVE_INFINITY,e(l.value))}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}if(null===i)throw new ni(ti.NoElements);return i});return function(e,i){return t.apply(this,arguments)}}(),Hut=function(){var t=Rt(function*(n,e){let i=null;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;i=Math.min(i||Number.POSITIVE_INFINITY,yield e(u))}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}if(null===i)throw new ni(ti.NoElements);return i});return function(e,i){return t.apply(this,arguments)}}(),zut=(t,n)=>{const e="string"==typeof n?o=>typeof o===n:o=>o instanceof n;function r(){return(r=ei(function*(){var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;e(f)&&(yield f)}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},Uut=(t,n,e)=>jd.generate(t,n,!0,e),Wut=(t,n,e)=>jd.generateAsync(t,n,!0,e),Gut=(t,n,e)=>jd.generate(t,n,!1,e),jut=(t,n,e)=>jd.generateAsync(t,n,!1,e),Kut=function(){var t=Rt(function*(n,e){const i=[],r=[];var s,o=!1,a=!1;try{for(var u,l=gn(n);o=!(u=yield l.next()).done;o=!1){const f=u.value;!0===e(f)?r.push(f):i.push(f)}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}return[r,i]});return function(e,i){return t.apply(this,arguments)}}(),$ut=function(){var t=Rt(function*(n,e){const i=[],r=[];var s,o=!1,a=!1;try{for(var u,l=gn(n);o=!(u=yield l.next()).done;o=!1){const f=u.value;!0===(yield e(f))?r.push(f):i.push(f)}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}return[r,i]});return function(e,i){return t.apply(this,arguments)}}(),qut=t=>{function e(){return(e=ei(function*(){const i=[];var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1)i.push(l.value)}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}for(let u=i.length-1;u>=0;u--)yield i[u]})).apply(this,arguments)}return new Qi(function n(){return e.apply(this,arguments)})},Yut=(t,n)=>"function"==typeof n?1===n.length?Zut(t,n):Xut(t,n):Jut(t,n),Zut=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;yield n(u)}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Xut=(t,n)=>{function i(){return(i=ei(function*(){let r=0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;yield n(f,r),r++}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Jut=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1)yield l.value[n]}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Qut=(t,n)=>"string"==typeof n?tdt(t,n):edt(t,n),edt=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;yield n(u)}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},tdt=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1)yield l.value[n]}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},ndt=(t,n)=>"function"==typeof n?1===n.length?idt(t,n):rdt(t,n):odt(t,n),idt=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;for(const f of n(u))yield f}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},rdt=(t,n)=>{function i(){return(i=ei(function*(){let r=0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;for(const S of n(f,r))yield S;r++}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},odt=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;for(const f of u[n])yield f}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},adt=(t,n)=>new Qi(1===n.length?function(){var i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;{const f=yield Wt(n(u));for(const S of f)yield S}}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}});return function(){return i.apply(this,arguments)}}():function(){var i=ei(function*(){let r=0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;{const S=yield Wt(n(f,r));for(const T of S)yield T;r++}}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}});return function(){return i.apply(this,arguments)}}()),sdt=function(){var t=Rt(function*(n,e,i=Ml){const r=n[Symbol.asyncIterator](),o=e[Symbol.asyncIterator]();let a=yield Promise.all([r.next(),o.next()]),s=a[0],l=a[1];for(;!s.done&&!l.done;){if(!i(s.value,l.value))return!1;a=yield Promise.all([r.next(),o.next()]),s=a[0],l=a[1]}return!0===s.done&&!0===l.done});return function(e,i){return t.apply(this,arguments)}}(),ldt=function(){var t=Rt(function*(n,e,i){const r=n[Symbol.asyncIterator](),o=e[Symbol.asyncIterator]();let a=yield Promise.all([r.next(),o.next()]),s=a[0],l=a[1];for(;!s.done&&!l.done;){if(!1===(yield i(s.value,l.value)))return!1;a=yield Promise.all([r.next(),o.next()]),s=a[0],l=a[1]}return!0===s.done&&!0===l.done});return function(e,i,r){return t.apply(this,arguments)}}(),udt=(t,n)=>n?cdt(t,n):ddt(t),ddt=function(){var t=Rt(function*(n){let e=!1,i=null;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;if(!0===e)throw new ni(ti.MoreThanOneElement);e=!0,i=u}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}if(!1===e)throw new ni(ti.NoElements);return i});return function(e){return t.apply(this,arguments)}}(),cdt=function(){var t=Rt(function*(n,e){let i=!1,r=null;var s,o=!1,a=!1;try{for(var u,l=gn(n);o=!(u=yield l.next()).done;o=!1){const f=u.value;if(e(f)){if(!0===i)throw new ni(ti.MoreThanOneMatchingElement);i=!0,r=f}}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}if(!1===i)throw new ni(ti.NoMatch);return r});return function(e,i){return t.apply(this,arguments)}}(),hdt=function(){var t=Rt(function*(n,e){let i=!1,r=null;var s,o=!1,a=!1;try{for(var u,l=gn(n);o=!(u=yield l.next()).done;o=!1){const f=u.value;if(yield e(f)){if(!0===i)throw new ni(ti.MoreThanOneMatchingElement);i=!0,r=f}}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}if(!1===i)throw new ni(ti.NoMatch);return r});return function(e,i){return t.apply(this,arguments)}}(),pdt=(t,n)=>n?fdt(t,n):gdt(t),gdt=function(){var t=Rt(function*(n){let e=!1,i=null;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;if(!0===e)throw new ni(ti.MoreThanOneElement);e=!0,i=u}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e){return t.apply(this,arguments)}}(),fdt=function(){var t=Rt(function*(n,e){let i=!1,r=null;var s,o=!1,a=!1;try{for(var u,l=gn(n);o=!(u=yield l.next()).done;o=!1){const f=u.value;if(e(f)){if(!0===i)throw new ni(ti.MoreThanOneMatchingElement);i=!0,r=f}}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}return r});return function(e,i){return t.apply(this,arguments)}}(),mdt=function(){var t=Rt(function*(n,e){let i=!1,r=null;var s,o=!1,a=!1;try{for(var u,l=gn(n);o=!(u=yield l.next()).done;o=!1){const f=u.value;if(yield e(f)){if(!0===i)throw new ni(ti.MoreThanOneMatchingElement);i=!0,r=f}}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}return r});return function(e,i){return t.apply(this,arguments)}}(),_dt=(t,n)=>{function i(){return(i=ei(function*(){let r=0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;r++>=n&&(yield f)}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},vdt=(t,n)=>1===n.length?ydt(t,n):Cdt(t,n),ydt=(t,n)=>{function i(){return(i=ei(function*(){let r=!0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;!1===r?yield f:!1===n(f)&&(r=!1,yield f)}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Cdt=(t,n)=>{function i(){return(i=ei(function*(){let r=0,o=!0;var l,a=!1,s=!1;try{for(var f,u=gn(t);a=!(f=yield Wt(u.next())).done;a=!1){const S=f.value;!1===o?yield S:!1===n(S,r)&&(o=!1,yield S),r++}}catch(S){s=!0,l=S}finally{try{a&&null!=u.return&&(yield Wt(u.return()))}finally{if(s)throw l}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},bdt=(t,n)=>1===n.length?xdt(t,n):wdt(t,n),xdt=(t,n)=>{function i(){return(i=ei(function*(){let r=!0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;!1===r?yield f:!1===(yield Wt(n(f)))&&(r=!1,yield f)}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},wdt=(t,n)=>{function i(){return(i=ei(function*(){let r=0,o=!0;var l,a=!1,s=!1;try{for(var f,u=gn(t);a=!(f=yield Wt(u.next())).done;a=!1){const S=f.value;!1===o?yield S:!1===(yield Wt(n(S,r)))&&(o=!1,yield S),r++}}catch(S){s=!0,l=S}finally{try{a&&null!=u.return&&(yield Wt(u.return()))}finally{if(s)throw l}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Sdt=(t,n)=>n?Edt(t,n):Ddt(t),Ddt=function(){var t=Rt(function*(n){let e=0;var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1)e+=s.value}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return e});return function(e){return t.apply(this,arguments)}}(),Edt=function(){var t=Rt(function*(n,e){let i=0;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1)i+=e(l.value)}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}(),Odt=function(){var t=Rt(function*(n,e){let i=0;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;i+=(yield e(u))}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}(),Tdt=(t,n)=>{function i(){return(i=ei(function*(){let r=n>0?n:0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;if(0==r--)break;yield f}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Idt=(t,n)=>1===n.length?kdt(t,n):Mdt(t,n),kdt=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;if(!n(u))break;yield u}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Mdt=(t,n)=>{function i(){return(i=ei(function*(){let r=0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;if(!n(f,r++))break;yield f}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Adt=(t,n)=>1===n.length?Fdt(t,n):Pdt(t,n),Fdt=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;if(!(yield Wt(n(u))))break;yield u}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Pdt=(t,n)=>{function i(){return(i=ei(function*(){let r=0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;if(!(yield Wt(n(f,r++))))break;yield f}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Rdt=function(){var t=Rt(function*(n){const e=[];var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1)e.push(s.value)}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return e});return function(e){return t.apply(this,arguments)}}(),Ldt=function(){var t=Rt(function*(n,e){const i=new Map;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;{const f=e(u),S=i.get(f);void 0===S?i.set(f,[u]):S.push(u)}}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}(),Bdt=function(){var t=Rt(function*(n,e){const i=new Map;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;{const f=yield e(u),S=i.get(f);void 0===S?i.set(f,[u]):S.push(u)}}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}(),Ndt=function(){var t=Rt(function*(n,e){const i={};var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;i[e(u)]=u}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}(),Vdt=function(){var t=Rt(function*(n,e){const i={};var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;i[yield e(u)]=u}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}(),Hdt=function(){var t=Rt(function*(n){const e=new Set;var o,i=!1,r=!1;try{for(var s,a=gn(n);i=!(s=yield a.next()).done;i=!1)e.add(s.value)}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield a.return())}finally{if(r)throw o}}return e});return function(e){return t.apply(this,arguments)}}(),zdt=(t,n,e)=>e?Wdt(t,n,e):Udt(t,n),Udt=(t,n)=>{function i(){return(i=ei(function*(){const r=new Set;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const z=u.value;!1===r.has(z)&&(yield z,r.add(z))}}catch(z){a=!0,s=z}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}var T,f=!1,S=!1;try{for(var L,R=gn(n);f=!(L=yield Wt(R.next())).done;f=!1){const z=L.value;!1===r.has(z)&&(yield z,r.add(z))}}catch(z){S=!0,T=z}finally{try{f&&null!=R.return&&(yield Wt(R.return()))}finally{if(S)throw T}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Wdt=(t,n,e)=>{function r(){return(r=ei(function*(){const o=[];for(const S of[t,n]){var l,a=!1,s=!1;try{for(var f,u=gn(S);a=!(f=yield Wt(u.next())).done;a=!1){const T=f.value;{let R=!1;for(const L of o)if(!0===e(T,L)){R=!0;break}!1===R&&(yield T,o.push(T))}}}catch(T){s=!0,l=T}finally{try{a&&null!=u.return&&(yield Wt(u.return()))}finally{if(s)throw l}}}})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},Gdt=(t,n,e)=>{function r(){return(r=ei(function*(){const o=[];for(const S of[t,n]){var l,a=!1,s=!1;try{for(var f,u=gn(S);a=!(f=yield Wt(u.next())).done;a=!1){const T=f.value;{let R=!1;for(const L of o)if(!0===(yield Wt(e(T,L)))){R=!0;break}!1===R&&(yield T,o.push(T))}}}catch(T){s=!0,l=T}finally{try{a&&null!=u.return&&(yield Wt(u.return()))}finally{if(s)throw l}}}})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},jdt=(t,n)=>1===n.length?Kdt(t,n):$dt(t,n),Kdt=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;!0===n(u)&&(yield u)}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},$dt=(t,n)=>{function i(){return(i=ei(function*(){let r=0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;!0===n(f,r++)&&(yield f)}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},qdt=(t,n)=>1===n.length?Ydt(t,n):Zdt(t,n),Ydt=(t,n)=>{function i(){return(i=ei(function*(){var a,r=!1,o=!1;try{for(var l,s=gn(t);r=!(l=yield Wt(s.next())).done;r=!1){const u=l.value;!0===(yield Wt(n(u)))&&(yield u)}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield Wt(s.return()))}finally{if(o)throw a}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Zdt=(t,n)=>{function i(){return(i=ei(function*(){let r=0;var s,o=!1,a=!1;try{for(var u,l=gn(t);o=!(u=yield Wt(l.next())).done;o=!1){const f=u.value;!0===(yield Wt(n(f,r++)))&&(yield f)}}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield Wt(l.return()))}finally{if(a)throw s}}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Xdt=(t,n,e)=>e?Qdt(t,n,e):Jdt(t,n),Jdt=(t,n)=>{function i(){return(i=ei(function*(){const r=t[Symbol.asyncIterator](),o=n[Symbol.asyncIterator]();for(;;){const[a,s]=yield Wt(Promise.all([r.next(),o.next()]));if(a.done||s.done)break;yield[a.value,s.value]}})).apply(this,arguments)}return new Qi(function e(){return i.apply(this,arguments)})},Qdt=(t,n,e)=>{function r(){return(r=ei(function*(){const o=t[Symbol.asyncIterator](),a=n[Symbol.asyncIterator]();for(;;){const[s,l]=yield Wt(Promise.all([o.next(),a.next()]));if(s.done||l.done)break;yield e(s.value,l.value)}})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},ect=(t,n,e)=>{function r(){return(r=ei(function*(){const o=t[Symbol.asyncIterator](),a=n[Symbol.asyncIterator]();for(;;){const s=yield Wt(Promise.all([o.next(),a.next()])),l=s[0],u=s[1];if(l.done||u.done)break;yield e(l.value,u.value)}})).apply(this,arguments)}return new Qi(function i(){return r.apply(this,arguments)})},nct=(t,n,e,i)=>{if(i){if(!e)throw new ReferenceError("TAccumulate function is undefined");return oct(t,n,e,i)}return e?rct(t,n,e):ict(t,n)},ict=function(){var t=Rt(function*(n,e){let i;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;i=i?e(i,u):u}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}if(void 0===i)throw new ni(ti.NoElements);return i});return function(e,i){return t.apply(this,arguments)}}(),rct=function(){var t=Rt(function*(n,e,i){let r=e;var s,o=!1,a=!1;try{for(var u,l=gn(n);o=!(u=yield l.next()).done;o=!1)r=i(r,u.value)}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}return r});return function(e,i,r){return t.apply(this,arguments)}}(),oct=function(){var t=Rt(function*(n,e,i,r){let o=e;var l,a=!1,s=!1;try{for(var f,u=gn(n);a=!(f=yield u.next()).done;a=!1)o=i(o,f.value)}catch(S){s=!0,l=S}finally{try{a&&null!=u.return&&(yield u.return())}finally{if(s)throw l}}return r(o)});return function(e,i,r,o){return t.apply(this,arguments)}}(),md=(t,n)=>{const e=t.dataFunc;switch(e.type){case 0:return{generator:()=>e.generator().then(r=>{const o=new Array(r.length);for(let a=0;a<r.length;a++)o[a]=n(r[a]);return o}),type:0};case 1:return{generator:()=>{const r=e.generator(),o=new Array(r.length);for(let a=0;a<r.length;a++)o[a]=r[a].then(n);return o},type:1};case 2:return{generator:function(){var r=Rt(function*(){const o=yield e.generator(),a=new Array(o.length);for(let s=0;s<o.length;s++)a[s]=o[s].then(n);return a});return function(){return r.apply(this,arguments)}}(),type:2}}},act=(t,n)=>{const e=md(t,i=>{if(!n(i))throw new Error(String(!1));return!0});switch(e.type){case 0:return e.generator().then(()=>!0,()=>!1);case 1:return Promise.all(e.generator()).then(()=>!0,()=>!1);case 2:return e.generator().then(Promise.all.bind(Promise)).then(()=>!0,()=>!1)}},au=(t,n)=>{const e=t.dataFunc;switch(e.type){case 0:return{generator:function(){var r=Rt(function*(){const o=yield e.generator(),a=new Array(o.length);for(let s=0;s<o.length;s++)a[s]=n(o[s]);return a});return function(){return r.apply(this,arguments)}}(),type:2};case 1:return{generator:()=>e.generator().map(function(){var o=Rt(function*(a){const s=yield a;return yield n(s)});return function(a){return o.apply(this,arguments)}}()),type:1};case 2:return{generator:function(){var r=Rt(function*(){return(yield e.generator()).map(a=>a.then(n))});return function(){return r.apply(this,arguments)}}(),type:2}}},sct=(t,n)=>{const e=au(t,function(){var i=Rt(function*(r){if(!1===(yield n(r)))throw new Error(String(!1));return!0});return function(r){return i.apply(this,arguments)}}());switch(e.type){case 1:return Promise.all(e.generator()).then(()=>!0,()=>!1);case 2:return e.generator().then(Promise.all.bind(Promise)).then(()=>!0,()=>!1)}},lct=(t,n)=>n?dct(t,n):uct(t),uct=function(){var t=Rt(function*(n){const e=n.dataFunc;let i;switch(e.type){case 1:return i=e.generator(),0!==i.length;case 0:case 2:return i=yield e.generator(),0!==i.length}});return function(e){return t.apply(this,arguments)}}(),dct=function(){var t=Rt(function*(n,e){const i=md(n,e);let r;switch(i.type){case 0:return r=yield i.generator(),r.includes(!0);case 1:return r=yield Promise.all(i.generator()),r.includes(!0);case 2:return r=yield Promise.all(yield i.generator()),r.includes(!0)}});return function(e,i){return t.apply(this,arguments)}}(),cct=function(){var t=Rt(function*(n,e){const i=au(n,e);let r;switch(i.type){case 1:return r=i.generator(),0!==r.length&&new Promise((a,s)=>{let l=0;for(const u of r)u.then(f=>{l++,f?a(!0):l===r.length&&a(!1)},s)});case 2:return r=yield i.generator(),0!==Promise.length&&(yield Promise.all(r)).includes(!0)}});return function(e,i){return t.apply(this,arguments)}}(),hct=t=>{function e(){return(e=ei(function*(){var o,i=!1,r=!1;try{for(var s,a=gn(t);i=!(s=yield Wt(a.next())).done;i=!1)yield s.value}catch(l){r=!0,o=l}finally{try{i&&null!=a.return&&(yield Wt(a.return()))}finally{if(r)throw o}}})).apply(this,arguments)}return hs(function n(){return e.apply(this,arguments)})},su=function(){var t=Rt(function*(n){switch(n.type){case 0:return yield n.generator();case 1:return yield Promise.all(n.generator());case 2:const e=yield n.generator();return yield Promise.all(e)}});return function(e){return t.apply(this,arguments)}}(),pct=function(){var t=Rt(function*(n,e){let i;i=e?md(n,e):n.dataFunc;const r=yield su(i);if(0===r.length)throw new ni(ti.NoElements);let o=0;for(const a of r)o+=a;return o/r.length});return function(e,i){return t.apply(this,arguments)}}(),gct=function(){var t=Rt(function*(n,e){const i=au(n,e),r=yield su(i);if(0===r.length)throw new ni(ti.NoElements);let o=0;for(const a of r)o+=a;return o/r.length});return function(e,i){return t.apply(this,arguments)}}(),fct=(t,n)=>{if(n<1)throw new Ec("index");let e;switch(t.dataFunc.type){case 1:const i=t.dataFunc.generator;e={type:1,generator:()=>{const a=[];let s=[];for(const l of i())s.push(l),s.length===n&&(a.push(Promise.all(s)),s=[]);return s.length&&a.push(Promise.all(s)),a}};break;case 2:const r=t.dataFunc.generator;e={type:2,generator:(a=Rt(function*(){const s=[];let l=[];for(const u of yield r())l.push(u),l.length===n&&(s.push(Promise.all(l)),l=[]);return l.length&&s.push(Promise.all(l)),s}),function(){return a.apply(this,arguments)})};break;case 0:const o=t.dataFunc.generator;e={type:0,generator:function(){var a=Rt(function*(){const s=[];let l=[];for(const u of yield o())l.push(u),l.length===n&&(s.push(l),l=[]);return l.length&&s.push(l),s});return function(){return a.apply(this,arguments)}}()}}var a;return new dr(e)},mct=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const[r,o]=yield Promise.all([t.toArray(),n.toArray()]);return[...r,...o]});return function(){return i.apply(this,arguments)}}(),type:0}),_ct=function(){var t=Rt(function*(n,e,i=Ml){let r;switch(r=md(n,i?o=>i(e,o):o=>o===e),r.type){case 0:return(yield r.generator()).some(a=>a);case 1:return(yield Promise.all(r.generator())).some(a=>a);case 2:return(yield Promise.all(yield r.generator())).some(a=>a)}});return function(e,i){return t.apply(this,arguments)}}(),vct=function(){var t=Rt(function*(n,e,i){const r=au(n,o=>i(e,o));switch(r.type){case 1:return(yield Promise.all(r.generator())).some(a=>a);case 2:return(yield Promise.all(yield r.generator())).some(a=>a)}});return function(e,i,r){return t.apply(this,arguments)}}(),yct=(t,n)=>n?bct(t,n):Cct(t),Cct=function(){var t=Rt(function*(n){const e=n.dataFunc;switch(e.type){case 0:case 2:return(yield n.toArray()).length;case 1:return e.generator().length}});return function(e){return t.apply(this,arguments)}}(),bct=function(){var t=Rt(function*(n,e){const i=yield n.toArray();let r=0;for(let o=0;o<i.length;o++)!0===e(i[o])&&r++;return r});return function(e,i){return t.apply(this,arguments)}}(),xct=function(){var t=Rt(function*(n,e){const i=au(n,e);let r;switch(i.type){case 1:r=Promise.all(i.generator());break;case 2:r=Promise.all(yield i.generator())}let o=0;for(const a of yield r)a&&o++;return o});return function(e,i){return t.apply(this,arguments)}}(),wct=(t,n)=>{const e=t.dataFunc,i=n instanceof Promise;let r;switch(e.type){case 0:r={generator:()=>e.generator().then(a=>a.length?a:i?n.then(s=>[s]):[n]),type:e.type};break;case 1:r={generator:()=>{const a=e.generator();return a.length?a:i?[n]:[Promise.resolve(n)]},type:e.type};break;case 2:r={generator:function(){var a=Rt(function*(){const s=yield e.generator();return s.length?s:i?[n]:[Promise.resolve(n)]});return function(){return a.apply(this,arguments)}}(),type:e.type}}return new dr(r)},Sct=(t,n=Ml)=>new dr({generator:function(){var i=Rt(function*(){const r=[];for(const o of yield t.toArray())r.find(s=>n(s,o))||r.push(o);return r});return function(){return i.apply(this,arguments)}}(),type:0}),Dct=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const r=[];e:for(const o of yield t.toArray()){for(const a of r)if(yield n(a,o))continue e;r.push(o)}return r});return function(){return i.apply(this,arguments)}}(),type:0}),Ect=(t,n)=>new dr(md(t,e=>(n(e),e))),Oct=(t,n)=>{const e=au(t,function(){var i=Rt(function*(r){return yield n(r),r});return function(r){return i.apply(this,arguments)}}());return new dr(e)},Tct=function(){var t=Rt(function*(n,e){if(e<0)throw new Ec("index");const i=n.dataFunc;switch(i.type){case 0:{const r=yield i.generator();if(e>=r.length)throw new Ec("index");return r[e]}case 1:{const r=i.generator();if(e>=r.length)throw new Ec("index");return yield r[e]}case 2:{const r=yield i.generator();if(e>=r.length)throw new Ec("index");return yield r[e]}}});return function(e,i){return t.apply(this,arguments)}}(),Ict=function(){var t=Rt(function*(n,e){const i=n.dataFunc;switch(i.type){case 0:{const r=yield i.generator();return e>=r.length?null:r[e]}case 1:{const r=i.generator();return e>=r.length?null:yield r[e]}case 2:{const r=yield i.generator();return e>=r.length?null:yield r[e]}}});return function(e,i){return t.apply(this,arguments)}}(),kct=(t,n,e=Ml)=>new dr({generator:function(){var r=Rt(function*(){const[o,a]=yield Promise.all([t.toArray(),n.toArray()]),s=[];for(const l of o){let u=!1;for(let f=0;f<a.length;f++)if(!0===e(l,a[f])){u=!0;break}!1===u&&s.push(l)}return s});return function(){return r.apply(this,arguments)}}(),type:0}),Mct=(t,n,e)=>new dr({generator:function(){var r=Rt(function*(){const[o,a]=yield Promise.all([t.toArray(),n.toArray()]),s=[];for(const l of o){let u=!1;for(let f=0;f<a.length;f++){const S=a[f];if(!0===(yield e(l,S))){u=!0;break}}!1===u&&s.push(l)}return s});return function(){return r.apply(this,arguments)}}(),type:0}),pm=t=>su(t.dataFunc),Act=(t,n)=>n?Pct(t,n):Fct(t),Fct=function(){var t=Rt(function*(n){const e=n.dataFunc;switch(e.type){case 0:{const i=yield e.generator();if(0===i.length)throw new ni(ti.NoElements);return i[0]}case 1:{const i=e.generator();if(0===i.length)throw new ni(ti.NoElements);return yield i[0]}case 2:{const i=yield e.generator();if(0===i.length)throw new ni(ti.NoElements);return yield i[0]}}});return function(e){return t.apply(this,arguments)}}(),Pct=function(){var t=Rt(function*(n,e){const i=yield pm(n);for(const r of i)if(!0===e(r))return r;throw new ni(ti.NoMatch)});return function(e,i){return t.apply(this,arguments)}}(),Rct=function(){var t=Rt(function*(n,e){const i=yield pm(n);for(const r of i)if(!0===(yield e(r)))return r;throw new ni(ti.NoMatch)});return function(e,i){return t.apply(this,arguments)}}(),Lct=(t,n)=>n?Nct(t,n):Bct(t),Bct=function(){var t=Rt(function*(n){const e=n.dataFunc;switch(e.type){case 0:{const i=yield e.generator();return 0===i.length?null:i[0]}case 1:{const i=e.generator();return 0===i.length?null:yield i[0]}case 2:{const i=yield e.generator();return 0===i.length?null:yield i[0]}}});return function(e){return t.apply(this,arguments)}}(),Nct=function(){var t=Rt(function*(n,e){const i=yield pm(n);for(const r of i)if(!0===e(r))return r;return null});return function(e,i){return t.apply(this,arguments)}}(),Vct=function(){var t=Rt(function*(n,e){const i=yield pm(n);for(const r of i)if(!0===(yield e(r)))return r;return null});return function(e,i){return t.apply(this,arguments)}}(),Hct=(t,n,e)=>e?Uct(t,n,e):zct(t,n),zct=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const r={};for(const a of yield t.toArray()){const s=n(a),l=r[s];l?l.push(a):r[s]=new Al(s,a)}const o=new Array;for(const a in r)o.push(r[a]);return o});return function(){return i.apply(this,arguments)}}(),type:0}),Uct=(t,n,e)=>new dr({generator:function(){var r=Rt(function*(){const o=new Array;for(const s of yield t.toArray()){const l=n(s);let u=!1;for(let f=0;f<o.length;f++){const S=o[f];if(e(S.key,l)){S.push(s),u=!0;break}}!1===u&&o.push(new Al(l,s))}const a=new Array;for(const s of o)a.push(s);return a});return function(){return r.apply(this,arguments)}}(),type:0}),Wct=(t,n,e)=>e?Gct(t,n,e):jct(t,n),Gct=(t,n,e)=>new dr({generator:function(){var r=Rt(function*(){const o=au(t,function(){var u=Rt(function*(f){return[yield n(f),f]});return function(f){return u.apply(this,arguments)}}());let a;switch(o.type){case 1:a=yield Promise.all(o.generator());break;case 2:a=yield Promise.all(yield o.generator())}const s=new Array;for(const[u,f]of a){let S=!1;for(let T=0;T<s.length;T++){const R=s[T];if(!0===(yield e(R.key,u))){R.push(f),S=!0;break}}!1===S&&s.push(new Al(u,f))}const l=new Array;for(const u of s)l.push(u);return l});return function(){return r.apply(this,arguments)}}(),type:0}),jct=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const r=au(t,function(){var l=Rt(function*(u){return[yield n(u),u]});return function(u){return l.apply(this,arguments)}}());let o;switch(r.type){case 1:o=yield Promise.all(r.generator());break;case 2:o=yield Promise.all(yield r.generator())}const a={};for(const[l,u]of o){const f=a[l];f?f.push(u):a[l]=new Al(l,u)}const s=new Array;for(const l in a)s.push(a[l]);return s});return function(){return i.apply(this,arguments)}}(),type:0}),Kct=(t,n,e,i)=>i?$ct(t,n,e,i):qct(t,n,e),$ct=(t,n,e,i)=>new dr({generator:function(){var o=Rt(function*(){const a=new Array;var u,s=!1,l=!1;try{for(var S,f=gn(t);s=!(S=yield f.next()).done;s=!1){const R=S.value;{const L=n(R);let z=!1;for(let j=0;j<a.length;j++){const Y=a[j];if(i(Y.key,L)){Y.push(e(R)),z=!0;break}}if(!1===z){const j=e(R);a.push(new Al(L,j))}}}}catch(R){l=!0,u=R}finally{try{s&&null!=f.return&&(yield f.return())}finally{if(l)throw u}}const T=new Array;for(const R of a)T.push(R);return T});return function(){return o.apply(this,arguments)}}(),type:0}),qct=(t,n,e)=>new dr({generator:function(){var r=Rt(function*(){const o={};for(const s of yield t.toArray()){const l=n(s),u=o[l],f=e(s);u?u.push(f):o[l]=new Al(l,f)}const a=new Array;for(const s in o)a.push(o[s]);return a});return function(){return r.apply(this,arguments)}}(),type:0}),ahe=(t,n,e,i,r,o)=>{const a=o?Yct(t,n,e,i,r,o):Zct(t,n,e,i,r);return new dr({generator:a,type:0})},Yct=(t,n,e,i,r,o)=>Rt(function*(){const a=[];var u,s=!1,l=!1;try{for(var S,f=gn(n);s=!(S=yield f.next()).done;s=!1){const R=S.value;{const L=i(R),z=a.find(j=>o(j.key,L));z?z.values.push(R):a.push({key:L,values:[R]})}}}catch(R){l=!0,u=R}finally{try{s&&null!=f.return&&(yield f.return())}finally{if(l)throw u}}return(yield t.toArray()).map(R=>{var L;const z=e(R),j=null!==(L=a.find(Y=>o(Y.key,z)))&&void 0!==L?L:{key:z,values:[]};return r(R,j.values)})}),Zct=(t,n,e,i,r)=>Rt(function*(){const o=new Map;var l,a=!1,s=!1;try{for(var f,u=gn(n);a=!(f=yield u.next()).done;a=!1){const T=f.value;{const R=i(T),L=o.get(R);L?L.push(T):o.set(R,[T])}}}catch(T){s=!0,l=T}finally{try{a&&null!=u.return&&(yield u.return())}finally{if(s)throw l}}return(yield t.toArray()).map(T=>{var R;const L=e(T),z=null!==(R=o.get(L))&&void 0!==R?R:[];return r(T,z)})}),she=(t,n,e,i,r,o)=>{const a=o?Xct(t,n,e,i,r,o):Jct(t,n,e,i,r);return new dr({generator:a,type:0})},Xct=(t,n,e,i,r,o)=>Rt(function*(){const a=[];var u,s=!1,l=!1;try{for(var S,f=gn(n);s=!(S=yield f.next()).done;s=!1){const L=S.value;{const z=yield i(L),j=a.find(Y=>o(Y.key,z));j?j.values.push(L):a.push({key:z,values:[L]})}}}catch(L){l=!0,u=L}finally{try{s&&null!=f.return&&(yield f.return())}finally{if(l)throw u}}const R=(yield t.toArray()).map(function(){var L=Rt(function*(z){var j;const Y=yield e(z),ie=null!==(j=a.find(te=>o(te.key,Y)))&&void 0!==j?j:{key:Y,values:[]};return r(z,ie.values)});return function(z){return L.apply(this,arguments)}}());return yield Promise.all(R)}),Jct=(t,n,e,i,r)=>Rt(function*(){const o=new Map;var l,a=!1,s=!1;try{for(var f,u=gn(n);a=!(f=yield u.next()).done;a=!1){const R=f.value;{const L=yield i(R),z=o.get(L);z?z.push(R):o.set(L,[R])}}}catch(R){s=!0,l=R}finally{try{a&&null!=u.return&&(yield u.return())}finally{if(s)throw l}}const T=(yield t.toArray()).map(function(){var R=Rt(function*(L){var z;const j=yield e(L),Y=null!==(z=o.get(j))&&void 0!==z?z:[];return r(L,Y)});return function(L){return R.apply(this,arguments)}}());return yield Promise.all(T)}),Qct=(t,n,e=Ml)=>new dr({generator:function(){var r=Rt(function*(){const o=yield t.distinct(e).toArray();if(0===o.length)return[];const a=yield n.toArray(),s=new Array;for(let l=0;l<o.length;l++){const u=o[l];for(let f=0;f<a.length;f++)if(!0===e(u,a[f])){s.push(u);break}}return s});return function(){return r.apply(this,arguments)}}(),type:0}),eht=(t,n,e)=>new dr({generator:function(){var r=Rt(function*(){const o=yield t.distinctAsync(e).toArray();if(0===o.length)return[];const a=yield n.toArray(),s=new Array;for(let l=0;l<o.length;l++){const u=o[l];for(let f=0;f<a.length;f++){const S=a[f];if(!0===(yield e(u,S))){s.push(u);break}}}return s});return function(){return r.apply(this,arguments)}}(),type:0}),tht=(t,n,e,i,r,o=Ml)=>new dr({generator:function(){var s=Rt(function*(){const[l,u]=yield Promise.all([n.toArray(),t.toArray()]),f=new Array;for(const S of u){const T=e(S);for(const R of l){const L=i(R);!0===o(T,L)&&f.push(r(S,R))}}return f});return function(){return s.apply(this,arguments)}}(),type:0}),nht=(t,n)=>n?rht(t,n):iht(t),iht=function(){var t=Rt(function*(n){const e=n.dataFunc;switch(e.type){case 0:{const i=yield e.generator();if(0===i.length)throw new ni(ti.NoElements);return i[i.length-1]}case 1:{const i=e.generator();if(0===i.length)throw new ni(ti.NoElements);return yield i[i.length-1]}case 2:{const i=yield e.generator();if(0===i.length)throw new ni(ti.NoElements);return yield i[i.length-1]}}});return function(e){return t.apply(this,arguments)}}(),rht=function(){var t=Rt(function*(n,e){const i=n.dataFunc;switch(i.type){case 0:{const r=yield i.generator();for(let o=r.length-1;o>=0;o--){const a=r[o];if(e(a))return a}break}case 1:{const r=i.generator();for(let o=r.length-1;o>=0;o--){const a=yield r[o];if(e(a))return a}break}case 2:{const r=yield i.generator();for(let o=r.length-1;o>=0;o--){const a=yield r[o];if(e(a))return a}break}}throw new ni(ti.NoMatch)});return function(e,i){return t.apply(this,arguments)}}(),oht=function(){var t=Rt(function*(n,e){const i=n.dataFunc;switch(i.type){case 0:{const r=yield i.generator();for(let o=r.length-1;o>=0;o--){const a=r[o];if(!0===(yield e(a)))return a}break}case 1:{const r=i.generator();for(let o=r.length-1;o>=0;o--){const a=yield r[o];if(!0===(yield e(a)))return a}break}case 2:{const r=yield i.generator();for(let o=r.length-1;o>=0;o--){const a=yield r[o];if(!0===(yield e(a)))return a}break}}throw new ni(ti.NoMatch)});return function(e,i){return t.apply(this,arguments)}}(),aht=(t,n)=>n?lht(t,n):sht(t),sht=function(){var t=Rt(function*(n){const e=n.dataFunc;switch(e.type){case 0:{const i=yield e.generator();return 0===i.length?null:i[i.length-1]}case 1:{const i=e.generator();return 0===i.length?null:yield i[i.length-1]}case 2:{const i=yield e.generator();return 0===i.length?null:yield i[i.length-1]}}});return function(e){return t.apply(this,arguments)}}(),lht=function(){var t=Rt(function*(n,e){const i=n.dataFunc;switch(i.type){case 0:{const r=yield i.generator();for(let o=r.length-1;o>=0;o--){const a=r[o];if(e(a))return a}break}case 1:{const r=i.generator();for(let o=r.length-1;o>=0;o--){const a=yield r[o];if(e(a))return a}break}case 2:{const r=yield i.generator();for(let o=r.length-1;o>=0;o--){const a=yield r[o];if(e(a))return a}break}}return null});return function(e,i){return t.apply(this,arguments)}}(),uht=function(){var t=Rt(function*(n,e){const i=n.dataFunc;switch(i.type){case 0:{const r=yield i.generator();for(let o=r.length-1;o>=0;o--){const a=r[o];if(!0===(yield e(a)))return a}break}case 1:{const r=i.generator();for(let o=r.length-1;o>=0;o--){const a=yield r[o];if(!0===(yield e(a)))return a}break}case 2:{const r=yield i.generator();for(let o=r.length-1;o>=0;o--){const a=yield r[o];if(!0===(yield e(a)))return a}break}}return null});return function(e,i){return t.apply(this,arguments)}}(),dht=function(){var t=Rt(function*(n,e){let i;i=e?md(n,e):n.dataFunc;const r=yield su(i);if(0===r.length)throw new ni(ti.NoElements);return Math.max.apply(null,r)});return function(e,i){return t.apply(this,arguments)}}(),cht=function(){var t=Rt(function*(n,e){const i=au(n,e),r=yield su(i);if(0===r.length)throw new ni(ti.NoElements);return Math.max.apply(null,r)});return function(e,i){return t.apply(this,arguments)}}(),hht=function(){var t=Rt(function*(n,e){let i;i=e?md(n,e):n.dataFunc;const r=yield su(i);if(0===r.length)throw new ni(ti.NoElements);return Math.min.apply(null,r)});return function(e,i){return t.apply(this,arguments)}}(),pht=function(){var t=Rt(function*(n,e){const i=au(n,e),r=yield su(i);if(0===r.length)throw new ni(ti.NoElements);return Math.min.apply(null,r)});return function(e,i){return t.apply(this,arguments)}}(),ght=(t,n)=>{const e="string"==typeof n?r=>[typeof r===n,r]:r=>[r instanceof n,r];return new dr({generator:function(){var r=Rt(function*(){const o=md(t,e),a=yield su(o),s=[];for(const[l,u]of a)l&&s.push(u);return s});return function(){return r.apply(this,arguments)}}(),type:0})},fht=function(){var t=Rt(function*(n,e){const i=new Map;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;{const f=yield e(u),S=i.get(f);S?S.push(u):i.set(f,[u])}}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}();function T5(){return T5=ei(function*(t,n,e,i){const r=yield Wt(fht(t,n)),o=[...r.keys()].sort(i||void 0);if(e)for(let a=0;a<o.length;a++)yield r.get(o[a]);else for(let a=o.length-1;a>=0;a--)yield r.get(o[a])}),T5.apply(this,arguments)}const _ht=function(){var t=Rt(function*(n,e){const i=new Map;for(const r of n){const o=yield e(r),a=i.get(o);a?a.push(r):i.set(o,[r])}return i});return function(e,i){return t.apply(this,arguments)}}();function vht(t,n,e,i){return I5.apply(this,arguments)}function I5(){return I5=ei(function*(t,n,e,i){const r=yield Wt(_ht(t,n)),o=[...r.keys()].sort(i||void 0);if(e)for(let a=0;a<o.length;a++)yield r.get(o[a]);else for(let a=o.length-1;a>=0;a--)yield r.get(o[a])}),I5.apply(this,arguments)}const yht=function(){var t=Rt(function*(n,e){const i=new Map;var a,r=!1,o=!1;try{for(var l,s=gn(n);r=!(l=yield s.next()).done;r=!1){const u=l.value;{const f=e(u),S=i.get(f);S?S.push(u):i.set(f,[u])}}}catch(u){o=!0,a=u}finally{try{r&&null!=s.return&&(yield s.return())}finally{if(o)throw a}}return i});return function(e,i){return t.apply(this,arguments)}}();function k5(){return k5=ei(function*(t,n,e,i){const r=yield Wt(yht(t,n)),o=[...r.keys()].sort(i||void 0);if(e)for(let a=0;a<o.length;a++)yield r.get(o[a]);else for(let a=o.length-1;a>=0;a--)yield r.get(o[a])}),k5.apply(this,arguments)}const bht=(t,n)=>{const e=new Map;for(const i of t){const r=n(i),o=e.get(r);o?o.push(i):e.set(r,[i])}return e};function xht(t,n,e,i){return M5.apply(this,arguments)}function M5(){return M5=ei(function*(t,n,e,i){const r=bht(t,n),o=[...r.keys()].sort(i||void 0);if(e)for(let a=0;a<o.length;a++)yield r.get(o[a]);else for(let a=o.length-1;a>=0;a--)yield r.get(o[a])}),M5.apply(this,arguments)}class Oc extends dr{constructor(n){var e;super({generator:(e=Rt(function*(){const i=n(),r=[];var s,o=!1,a=!1;try{for(var u,l=gn(i);o=!(u=yield l.next()).done;o=!1)r.push(...u.value)}catch(f){a=!0,s=f}finally{try{o&&null!=l.return&&(yield l.return())}finally{if(a)throw s}}return r}),function(){return e.apply(this,arguments)}),type:0}),this.orderedPairs=n}static generateAsync(n,e,i,r){let o;return o=n instanceof Oc?function(){var a=ei(function*(){var u,s=!1,l=!1;try{for(var S,f=gn(n.orderedPairs());s=!(S=yield Wt(f.next())).done;s=!1){const T=S.value;yield*Q0(gn(vht(T,e,i,r)))}}catch(T){l=!0,u=T}finally{try{s&&null!=f.return&&(yield Wt(f.return()))}finally{if(l)throw u}}});return function(){return a.apply(this,arguments)}}():()=>function mht(t,n,e,i){return T5.apply(this,arguments)}(n,e,i,r),new Oc(o)}static generate(n,e,i,r){let o;return o=n instanceof Oc?function(){var a=ei(function*(){var u,s=!1,l=!1;try{for(var S,f=gn(n.orderedPairs());s=!(S=yield Wt(f.next())).done;s=!1){const T=S.value;yield*Q0(gn(xht(T,e,i,r)))}}catch(T){l=!0,u=T}finally{try{s&&null!=f.return&&(yield Wt(f.return()))}finally{if(l)throw u}}});return function(){return a.apply(this,arguments)}}():()=>function Cht(t,n,e,i){return k5.apply(this,arguments)}(n,e,i,r),new Oc(o)}thenBy(n,e){return Oc.generate(this,n,!0,e)}thenByAsync(n,e){return Oc.generateAsync(this,n,!0,e)}thenByDescending(n,e){return Oc.generate(this,n,!1,e)}thenByDescendingAsync(n,e){return Oc.generateAsync(this,n,!1,e)}}const wht=(t,n,e)=>Oc.generate(t,n,!0,e),Sht=(t,n,e)=>Oc.generateAsync(t,n,!0,e),Dht=(t,n,e)=>Oc.generate(t,n,!1,e),Eht=(t,n,e)=>Oc.generateAsync(t,n,!1,e),Oht=function(){var t=Rt(function*(n,e){const i=md(n,s=>[e(s),s]),r=yield su(i),o=[],a=[];for(const[s,l]of r)s?a.push(l):o.push(l);return[a,o]});return function(e,i){return t.apply(this,arguments)}}(),Tht=function(){var t=Rt(function*(n,e){const i=au(n,function(){var s=Rt(function*(l){return[yield e(l),l]});return function(l){return s.apply(this,arguments)}}()),r=yield su(i),o=[],a=[];for(const[s,l]of r)s?a.push(l):o.push(l);return[a,o]});return function(e,i){return t.apply(this,arguments)}}(),Iht=t=>{const n=t.dataFunc;switch(n.type){case 1:return new dr({generator:()=>n.generator().reverse(),type:n.type});case 2:return new dr({generator:function(){var i=Rt(function*(){return(yield n.generator()).reverse()});return function(){return i.apply(this,arguments)}}(),type:n.type});case 0:return new dr({generator:function(){var i=Rt(function*(){return(yield n.generator()).reverse()});return function(){return i.apply(this,arguments)}}(),type:n.type})}},lhe=(t,n)=>{const e=t.dataFunc;switch(e.type){case 0:return{generator:()=>e.generator().then(r=>{const o=new Array(r.length);for(let a=0;a<r.length;a++)o[a]=n(r[a],a);return o}),type:0};case 1:return{generator:()=>{const r=e.generator(),o=new Array(r.length);for(let a=0;a<r.length;a++)o[a]=r[a].then(s=>n(s,a));return o},type:1};case 2:return{generator:function(){var r=Rt(function*(){const o=yield e.generator(),a=new Array(o.length);for(let s=0;s<o.length;s++)a[s]=o[s].then(l=>n(l,s));return a});return function(){return r.apply(this,arguments)}}(),type:2}}},kht=(t,n)=>new dr("function"==typeof n?1===n.length?md(t,n):lhe(t,n):md(t,e=>e[n])),A5=(t,n)=>{const e=t.dataFunc;switch(e.type){case 0:return{generator:function(){var r=Rt(function*(){const o=yield e.generator(),a=new Array(o.length);for(let s=0;s<o.length;s++)a[s]=n(o[s],s);return a});return function(){return r.apply(this,arguments)}}(),type:2};case 1:return{generator:()=>e.generator().map((r,o)=>r.then(a=>n(a,o))),type:1};case 2:return{generator:function(){var r=Rt(function*(){return(yield e.generator()).map((a,s)=>a.then(l=>n(l,s)))});return function(){return r.apply(this,arguments)}}(),type:2}}},Mht=(t,n)=>{let e;return e="function"==typeof n?1===n.length?au(t,n):A5(t,n):au(t,i=>i[n]),new dr(e)},Aht=(t,n)=>new dr({generator:function(){var i=Rt(function*(){let r;r="function"==typeof n?1===n.length?md(t,n):lhe(t,n):md(t,a=>a[n]);const o=[];switch(r.type){case 0:for(const a of yield r.generator())for(const s of a)o.push(s);break;case 1:for(const a of r.generator())for(const s of yield a)o.push(s);break;case 2:for(const a of yield r.generator())for(const s of yield a)o.push(s)}return o});return function(){return i.apply(this,arguments)}}(),type:0}),Fht=(t,n)=>new dr({generator:function(){var i=Rt(function*(){let r;r=1===n.length?au(t,n):A5(t,n);const o=[];switch(r.type){case 1:for(const a of r.generator())for(const s of yield a)o.push(s);break;case 2:for(const a of yield r.generator())for(const s of yield a)o.push(s)}return o});return function(){return i.apply(this,arguments)}}(),type:0}),Pht=function(){var t=Rt(function*(n,e,i=Ml){const r=yield n.toArray(),o=yield e.toArray();if(r.length!==o.length)return!1;for(let a=0;a<r.length;a++)if(!1===i(r[a],o[a]))return!1;return!0});return function(e,i){return t.apply(this,arguments)}}(),Rht=function(){var t=Rt(function*(n,e,i){const r=yield n.toArray(),o=yield e.toArray();if(r.length!==o.length)return!1;for(let a=0;a<r.length;a++){const s=r[a],l=o[a];if(!1===(yield i(s,l)))return!1}return!0});return function(e,i,r){return t.apply(this,arguments)}}(),Lht=(t,n)=>n?Nht(t,n):Bht(t),Bht=function(){var t=Rt(function*(n){const e=n.dataFunc;switch(e.type){case 0:{const i=yield e.generator();if(i.length>1)throw new ni(ti.MoreThanOneElement);if(0===i.length)throw new ni(ti.NoElements);return i[0]}case 1:{const i=e.generator();if(i.length>1)throw new ni(ti.MoreThanOneElement);if(0===i.length)throw new ni(ti.NoElements);return i[0]}case 2:{const i=yield e.generator();if(i.length>1)throw new ni(ti.MoreThanOneElement);if(0===i.length)throw new ni(ti.NoElements);return yield i[0]}}});return function(e){return t.apply(this,arguments)}}(),Nht=function(){var t=Rt(function*(n,e){const i=yield pm(n);let r=!1,o=null;for(const a of i)if(e(a)){if(!0===r)throw new ni(ti.MoreThanOneMatchingElement);r=!0,o=a}if(!1===r)throw new ni(ti.NoMatch);return o});return function(e,i){return t.apply(this,arguments)}}(),Vht=function(){var t=Rt(function*(n,e){const i=yield pm(n);let r=!1,o=null;for(const a of i)if(!0===(yield e(a))){if(!0===r)throw new ni(ti.MoreThanOneMatchingElement);r=!0,o=a}if(!1===r)throw new ni(ti.NoMatch);return o});return function(e,i){return t.apply(this,arguments)}}(),Hht=(t,n)=>n?Uht(t,n):zht(t),zht=function(){var t=Rt(function*(n){const e=n.dataFunc;switch(e.type){case 0:{const i=yield e.generator();if(i.length>1)throw new ni(ti.MoreThanOneElement);return 0===i.length?null:i[0]}case 1:{const i=e.generator();if(i.length>1)throw new ni(ti.MoreThanOneElement);return 0===i.length?null:i[0]}case 2:{const i=yield e.generator();if(i.length>1)throw new ni(ti.MoreThanOneElement);return 0===i.length?null:yield i[0]}}});return function(e){return t.apply(this,arguments)}}(),Uht=function(){var t=Rt(function*(n,e){const i=yield pm(n);let r=!1,o=null;for(const a of i)if(e(a)){if(!0===r)throw new ni(ti.MoreThanOneElement);r=!0,o=a}return o});return function(e,i){return t.apply(this,arguments)}}(),Wht=function(){var t=Rt(function*(n,e){const i=yield pm(n);let r=!1,o=null;for(const a of i)if(!0===(yield e(a))){if(!0===r)throw new ni(ti.MoreThanOneElement);r=!0,o=a}return o});return function(e,i){return t.apply(this,arguments)}}(),Ght=(t,n)=>{const e=t.dataFunc;switch(e.type){case 0:return new dr({generator:function(){var r=Rt(function*(){return(yield e.generator()).slice(n)});return function(){return r.apply(this,arguments)}}(),type:0});case 1:return new dr({generator:()=>e.generator().slice(n),type:1});case 2:return new dr({generator:function(){var o=Rt(function*(){return(yield e.generator()).slice(n)});return function(){return o.apply(this,arguments)}}(),type:2})}},jht=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const r=yield t.toArray();let o=0;for(;o<r.length&&!1!==n(r[o],o);o++);const a=[];for(;o<r.length;o++)a.push(r[o]);return a});return function(){return i.apply(this,arguments)}}(),type:0}),Kht=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const r=yield t.toArray();let o=0;for(;o<r.length;o++){const s=r[o];if(!1===(yield n(s,o)))break}const a=[];for(;o<r.length;o++)a.push(r[o]);return a});return function(){return i.apply(this,arguments)}}(),type:0}),$ht=(t,n)=>n?Yht(t,n):qht(t),qht=function(){var t=Rt(function*(n){let e=0;for(const i of yield n.toArray())e+=i;return e});return function(e){return t.apply(this,arguments)}}(),Yht=function(){var t=Rt(function*(n,e){let i=0;for(const r of yield n.toArray())i+=e(r);return i});return function(e,i){return t.apply(this,arguments)}}(),Zht=function(){var t=Rt(function*(n,e){const i=au(n,e),r=yield su(i);let o=0;for(const a of r)o+=a;return o});return function(e,i){return t.apply(this,arguments)}}(),Xht=(t,n)=>{const e=n>0?n:0,i=t.dataFunc;switch(i.type){case 1:return new dr({generator:()=>i.generator().splice(0,e),type:1});case 2:return new dr({generator:()=>i.generator().then(s=>s.splice(0,e)),type:2});default:return new dr({generator:()=>i.generator().then(s=>s.splice(0,e)),type:0})}},Jht=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const r=yield t.toArray(),o=new Array;if(1===n.length)for(const a of r){if(!0!==n(a))break;o.push(a)}else for(let a=0;a<r.length;a++){const s=r[a];if(!0!==n(s,a))break;o.push(s)}return o});return function(){return i.apply(this,arguments)}}(),type:0}),Qht=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const r=yield t.toArray(),o=new Array;if(1===n.length){const a=n;for(const s of r){if(!0!==(yield a(s)))break;o.push(s)}}else for(let a=0;a<r.length;a++){const s=r[a];if(!0!==(yield n(s,a)))break;o.push(s)}return o});return function(){return i.apply(this,arguments)}}(),type:0}),ept=function(){var t=Rt(function*(n,e){const i=new Map,r=md(n,a=>[e(a),a]),o=yield su(r);for(const[a,s]of o){const l=i.get(a);void 0===l?i.set(a,[s]):l.push(s)}return i});return function(e,i){return t.apply(this,arguments)}}(),tpt=function(){var t=Rt(function*(n,e){const i=new Map,r=au(n,function(){var a=Rt(function*(s){return[yield e(s),s]});return function(s){return a.apply(this,arguments)}}()),o=yield su(r);for(const[a,s]of o){const l=i.get(a);void 0===l?i.set(a,[s]):l.push(s)}return i});return function(e,i){return t.apply(this,arguments)}}(),npt=function(){var t=Rt(function*(n,e){const i=n.dataFunc,r=yield su(i),o={};for(const a of r)o[e(a)]=a;return o});return function(e,i){return t.apply(this,arguments)}}(),ipt=function(){var t=Rt(function*(n,e){const i=au(n,function(){var a=Rt(function*(s){return[yield e(s),s]});return function(s){return a.apply(this,arguments)}}()),r=yield su(i),o={};for(const[a,s]of r)o[a]=s;return o});return function(e,i){return t.apply(this,arguments)}}(),rpt=function(){var t=Rt(function*(n){const e=n.dataFunc,i=yield su(e);return new Set(i)});return function(e){return t.apply(this,arguments)}}(),opt=(t,n,e)=>e?spt(t,n,e):apt(t,n),apt=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const r=new Set,o=n.toArray();var l,a=!1,s=!1;try{for(var f,u=gn(t);a=!(f=yield u.next()).done;a=!1){const T=f.value;!1===r.has(T)&&r.add(T)}}catch(T){s=!0,l=T}finally{try{a&&null!=u.return&&(yield u.return())}finally{if(s)throw l}}const S=yield o;for(const T of S)!1===r.has(T)&&r.add(T);return[...r.keys()]});return function(){return i.apply(this,arguments)}}(),type:0}),spt=(t,n,e)=>new dr({generator:function(){var r=Rt(function*(){const o=[],a=yield Promise.all([t.toArray(),n.toArray()]);for(const s of a)for(const l of s){let u=!1;for(const f of o)if(!0===e(l,f)){u=!0;break}!1===u&&o.push(l)}return o});return function(){return r.apply(this,arguments)}}(),type:0}),lpt=(t,n,e)=>new dr({generator:function(){var r=Rt(function*(){const o=[],a=yield Promise.all([t.toArray(),n.toArray()]);for(const s of a)for(const l of s){let u=!1;for(const f of o)if(!0===(yield e(l,f))){u=!0;break}!1===u&&o.push(l)}return o});return function(){return r.apply(this,arguments)}}(),type:0}),upt=(t,n)=>new dr({generator:function(){var i=Rt(function*(){return(yield t.toArray()).filter(n)});return function(){return i.apply(this,arguments)}}(),type:0}),dpt=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const r=A5(t,function(){var s=Rt(function*(l,u){return[yield n(l,u),l]});return function(l,u){return s.apply(this,arguments)}}()),o=yield su(r),a=[];for(const[s,l]of o)s&&a.push(l);return a});return function(){return i.apply(this,arguments)}}(),type:0}),cpt=(t,n,e)=>e?ppt(t,n,e):hpt(t,n),hpt=(t,n)=>new dr({generator:function(){var i=Rt(function*(){const[r,o]=yield Promise.all([t.toArray(),n.toArray()]),a=r.length<o.length?r.length:o.length,s=new Array(a);for(let l=0;l<a;l++)s[l]=[r[l],o[l]];return s});return function(){return i.apply(this,arguments)}}(),type:0}),ppt=(t,n,e)=>new dr({generator:function(){var r=Rt(function*(){const[o,a]=yield Promise.all([t.toArray(),n.toArray()]),s=o.length<a.length?o.length:a.length,l=new Array(s);for(let u=0;u<s;u++)l[u]=e(o[u],a[u]);return l});return function(){return r.apply(this,arguments)}}(),type:0}),gpt=(t,n,e)=>new dr({generator:function(){var r=Rt(function*(){const[o,a]=yield Promise.all([t.toArray(),n.toArray()]),s=o.length<a.length?o.length:a.length,l=new Array(s);for(let u=0;u<s;u++)l[u]=e(o[u],a[u]);return Promise.all(l)});return function(){return r.apply(this,arguments)}}(),type:0});O5(Xr),(t=>{const n=t.prototype,e=(i,r)=>{const o=function(...a){return i(this,...a)};Object.defineProperty(o,"length",{value:i.length-1}),n[r]=o};e(wlt,"aggregate"),e(Olt,"all"),e(Tlt,"allAsync"),e(Ilt,"any"),e(Alt,"anyAsync"),e(Flt,"asParallel"),e(Plt,"average"),e(Rlt,"averageAsync"),e(Llt,"chunk"),e(Blt,"concatenate"),e(Nlt,"contains"),e(Vlt,"containsAsync"),e(Hlt,"count"),e(Wlt,"countAsync"),e(Glt,"defaultIfEmpty"),e(jlt,"distinct"),e(Klt,"distinctAsync"),e($lt,"each"),e(qlt,"eachAsync"),e(Ylt,"elementAt"),e(Zlt,"elementAtOrDefault"),e(Xlt,"except"),e(Jlt,"exceptAsync"),e(Qlt,"first"),e(nut,"firstAsync"),e(iut,"firstOrDefault"),e(aut,"firstOrDefaultAsync"),e(sut,"groupBy"),e(dut,"groupByAsync"),e(put,"groupByWithSel"),e(mut,"groupJoin"),e(yut,"groupJoinAsync"),e(xut,"intersect"),e(wut,"intersectAsync"),e(Sut,"joinByKey"),e(Dut,"last"),e(Tut,"lastAsync"),e(Iut,"lastOrDefault"),e(Aut,"lastOrDefaultAsync"),e(Fut,"max"),e(Lut,"maxAsync"),e(But,"min"),e(Hut,"minAsync"),e(zut,"ofType"),e(Uut,"orderBy"),e(Wut,"orderByAsync"),e(Gut,"orderByDescending"),e(jut,"orderByDescendingAsync"),e(Kut,"partition"),e($ut,"partitionAsync"),e(qut,"reverse"),e(Yut,"select"),e(Qut,"selectAsync"),e(ndt,"selectMany"),e(adt,"selectManyAsync"),e(sdt,"sequenceEquals"),e(ldt,"sequenceEqualsAsync"),e(udt,"single"),e(hdt,"singleAsync"),e(pdt,"singleOrDefault"),e(mdt,"singleOrDefaultAsync"),e(_dt,"skip"),e(vdt,"skipWhile"),e(bdt,"skipWhileAsync"),e(Sdt,"sum"),e(Odt,"sumAsync"),e(Tdt,"take"),e(Idt,"takeWhile"),e(Adt,"takeWhileAsync"),e(Rdt,"toArray"),e(Ldt,"toMap"),e(Bdt,"toMapAsync"),e(Ndt,"toObject"),e(Vdt,"toObjectAsync"),e(Hdt,"toSet"),e(zdt,"union"),e(Gdt,"unionAsync"),e(jdt,"where"),e(qdt,"whereAsync"),e(Xdt,"zip"),e(ect,"zipAsync")})(Qi),(t=>{const n=t.prototype,e=(i,r)=>{const o=function(...a){return i(this,...a)};Object.defineProperty(o,"length",{value:i.length-1}),n[r]=o};e(nct,"aggregate"),e(act,"all"),e(sct,"allAsync"),e(lct,"any"),e(cct,"anyAsync"),e(hct,"asAsync"),e(pct,"average"),e(gct,"averageAsync"),e(fct,"chunk"),e(mct,"concatenate"),e(_ct,"contains"),e(vct,"containsAsync"),e(yct,"count"),e(xct,"countAsync"),e(wct,"defaultIfEmpty"),e(Sct,"distinct"),e(Dct,"distinctAsync"),e(Ect,"each"),e(Oct,"eachAsync"),e(Tct,"elementAt"),e(Ict,"elementAtOrDefault"),e(kct,"except"),e(Mct,"exceptAsync"),e(Act,"first"),e(Rct,"firstAsync"),e(Lct,"firstOrDefault"),e(Vct,"firstOrDefaultAsync"),e(Hct,"groupBy"),e(Wct,"groupByAsync"),e(Kct,"groupByWithSel"),e(ahe,"groupJoin"),e(she,"groupJoinAsync"),e(ahe,"groupJoin"),e(she,"groupJoinAsync"),e(Qct,"intersect"),e(eht,"intersectAsync"),e(tht,"joinByKey"),e(nht,"last"),e(oht,"lastAsync"),e(aht,"lastOrDefault"),e(uht,"lastOrDefaultAsync"),e(dht,"max"),e(cht,"maxAsync"),e(hht,"min"),e(pht,"minAsync"),e(ght,"ofType"),e(wht,"orderBy"),e(Sht,"orderByAsync"),e(Dht,"orderByDescending"),e(Eht,"orderByDescendingAsync"),e(Oht,"partition"),e(Tht,"partitionAsync"),e(Iht,"reverse"),e(kht,"select"),e(Mht,"selectAsync"),e(Aht,"selectMany"),e(Fht,"selectManyAsync"),e(Pht,"sequenceEquals"),e(Rht,"sequenceEqualsAsync"),e(Lht,"single"),e(Vht,"singleAsync"),e(Hht,"singleOrDefault"),e(Wht,"singleOrDefaultAsync"),e(Ght,"skip"),e(jht,"skipWhile"),e(Kht,"skipWhileAsync"),e($ht,"sum"),e(Zht,"sumAsync"),e(Xht,"take"),e(Jht,"takeWhile"),e(Qht,"takeWhileAsync"),e(pm,"toArray"),e(ept,"toMap"),e(tpt,"toMapAsync"),e(npt,"toObject"),e(ipt,"toObjectAsync"),e(rpt,"toSet"),e(opt,"union"),e(lpt,"unionAsync"),e(upt,"where"),e(dpt,"whereAsync"),e(cpt,"zip"),e(gpt,"zipAsync")})(dr),(()=>{var t;const{prototype:n}=b5,e=Object.getOwnPropertyNames(Xr.prototype);for(const i of e)n[i]=null!==(t=n[i])&&void 0!==t?t:Xr.prototype[i];n.all=function(i){return this.every(i)},n.any=function(i){return i?this.some(i):0!==this.length},n.count=function(i){if(i){let r=0;for(let o=0;o<this.length;o++)!0===i(this[o])&&r++;return r}return this.length},n.elementAt=function(i){if(i<0||i>=this.length)throw new Ec("index");return this[i]},n.elementAtOrDefault=function(i){return this[i]||null},n.first=function(i){if(i){const r=this.find(i);if(void 0===r)throw new ni(ti.NoMatch);return r}if(0===this.length)throw new ni(ti.NoElements);return this[0]},n.firstOrDefault=function(i){if(i){const r=this.find(i);return void 0===r?null:r}return 0===this.length?null:this[0]},n.last=function(i){if(i){for(let r=this.length-1;r>=0;r--){const o=this[r];if(!0===i(o))return o}throw new ni(ti.NoMatch)}if(0===this.length)throw new ni(ti.NoElements);return this[this.length-1]},n.lastOrDefault=function(i){if(i){for(let r=this.length-1;r>=0;r--){const o=this[r];if(!0===i(o))return o}return null}return 0===this.length?null:this[this.length-1]},n.max=function(i){if(0===this.length)throw new ni(ti.NoElements);if(i){let r=Number.NEGATIVE_INFINITY;for(let o=0;o<this.length;o++)r=Math.max(i(this[o]),r);return r}return Math.max.apply(null,this)},n.min=function(i){if(0===this.length)throw new ni(ti.NoElements);if(i){let r=Number.POSITIVE_INFINITY;for(let o=0;o<this.length;o++)r=Math.min(i(this[o]),r);return r}return Math.min.apply(null,this)},n.reverse=function(){return Array.prototype.reverse.apply(this),this}})();class F5{constructor(){this.memory=[],this.callbacks=Zi()}add(n){we(this.memory,(e,i)=>n.apply(n,i)),this.callbacks.add(n)}remove(n){this.callbacks.remove(n)}fire(){for(var n=arguments.length,e=new Array(n),i=0;i<n;i++)e[i]=arguments[i];this.memory.push(e),this.callbacks.fire.apply(this.callbacks,e)}}const P5=new F5;var xpt=["pageX","pageY","screenX","screenY","clientX","clientY"],R5=Fn(),KP="dxEmptyEventType",uhe={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},Dpt={focusin:"focus",focusout:"blur"},Ept=["blur","focus","load"],dhe=["touchmove","wheel","mousewheel","touchstart"];function Tpt(t,n){return!Da(t)&&"#document"!==t.nodeName&&It.elementMatches(t,n)}var $P,L5=new WeakMap,che=0,e_=function(){var t={};return P5.add(function(n,e){t[n]=e}),{getField:function(n,e){return t[n]&&t[n][e]},callMethod:function(n,e,i,r){return t[n]&&t[n][e]&&t[n][e].apply(i,r)}}}(),za=ch({on:MO(N5(mhe(function(t,n,e,i,r){gw(t,n).addHandler(r,e,i)}))),one:MO(N5(function(t,n,e,i,r){za.on(t,n,e,i,function o(){za.off(t,n,e,o),r.apply(this,arguments)})})),off:MO(function Mpt(t){return function(n,e,i,r){"function"==typeof i&&(r=i,i=void 0),t(n,e,i,r)}}(mhe(function(t,n,e,i){gw(t,n).removeHandler(i,e)}))),trigger:MO(fhe(function(t,n,e){var i=n.type,r=gw(t,n.type);if(e_.callMethod(i,"trigger",t,[n,e]),r.callHandlers(n,e),!e_.getField(i,"noBubble")&&!n.isPropagationStopped()&&-1===Ept.indexOf(i)){var a=[];(function u(f){var S,T=null!==(S=f.parentNode)&&void 0!==S?S:f.host;T&&(a.push(T),u(T))})(t),a.push(R5);for(var s=0;a[s]&&!n.isPropagationStopped();)gw(a[s],n.type).callHandlers(se(n,{currentTarget:a[s]}),e),s++}(t.nodeType||Da(t))&&(e_.callMethod(i,"_default",t,[n,e]),function Fpt(t,n){var e=Dpt[t]||t;(function(i,r){return"click"===i&&"a"===r.localName})(t,n)||Yt(n[e])&&($P=t,n[e](),$P=void 0)}(i,t))})),triggerHandler:MO(fhe(function(t,n,e){gw(t,n.type).callHandlers(n,e)}))});function B5(t,n){var e=t[0];if(e)if(It.isNode(e)||Da(e))n.apply(za,t);else{if(Pn(e)||!("length"in e))throw Wr.Error("E0025");var i=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(e,function(r){i[0]=r,B5(i,n)})}}function MO(t){return function(){B5(arguments,t)}}var hhe=up(function Ipt(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){return t=!0,!0}});R5.addEventListener("test",null,n)}catch{}return t}),phe=(t,n)=>Da(t)?phe(t.document,n):t.contains?t.contains(n):!!(n.compareDocumentPosition(t)&n.DOCUMENT_POSITION_CONTAINS);function gw(t,n){var e=L5.get(t),i=(n=n||"").split("."),r=i.slice(1),o=!!i[0];n=i[0]||KP,e||L5.set(t,e={}),e[n]||(e[n]={handleObjects:[],nativeHandler:null});var a=e[n];return{addHandler:function(s,l,u){var f=function(z,j){var re,he,Y=[z],ie=z.currentTarget,te=z.relatedTarget;n in uhe&&(re=te&&ie&&(te===ie||phe(ie,te))),void 0!==j&&Y.push(j),e_.callMethod(n,"handle",t,[z,u]),re||(he=s.apply(ie,Y)),!1===he&&(z.preventDefault(),z.stopPropagation())},S={handler:s,wrappedHandler:function(z,j){if(!$P||z.type!==$P)if(z.data=u,z.delegateTarget=t,l)for(var Y=z.target;Y&&Y!==t;)Tpt(Y,l)&&(z.currentTarget=Y,f(z,j)),Y=Y.parentNode;else z.currentTarget=z.delegateTarget||z.target,f(z,j)},selector:l,type:n,data:u,namespace:r.join("."),namespaces:r,guid:++che};a.handleObjects.push(S);var L,R=1===a.handleObjects.length&&o;R&&(R=!e_.callMethod(n,"setup",t,[u,r,s])),R&&(a.nativeHandler=function kpt(t){return function(n,e){var i=gw(this,t);n=za.Event(n),i.callHandlers(n,e)}}(n),hhe()&&dhe.indexOf(n)>-1&&(L={passive:!1}),a.removeListener=It.listen(t,uhe[n]||n,a.nativeHandler,L)),e_.callMethod(n,"add",t,[S])},removeHandler:function(s,l){var u=function(T){var L,R=e[T];R.handleObjects.length?(R.handleObjects=R.handleObjects.filter(function(Y){var ie=r.length&&!ghe(Y.namespaces,r)||s&&Y.handler!==s||l&&Y.selector!==l;return ie||(L=Y.handler,e_.callMethod(T,"remove",t,[Y])),ie}),!R.handleObjects.length&&T!==KP&&(e_.callMethod(T,"teardown",t,[r,L]),R.nativeHandler&&R.removeListener(),delete e[T])):delete e[T]};if(o)u(n);else for(var f in e)u(f);0===Object.keys(e).length&&L5.delete(t)},callHandlers:function(s,l){var u=!1,f=function(S){u||(!r.length||ghe(S.namespaces,r))&&(S.wrappedHandler(s,l),u=s.isImmediatePropagationStopped())};a.handleObjects.forEach(f),r.length&&e[KP]&&e[KP].handleObjects.forEach(f)}}}function ghe(t,n){for(var e=0;e<n.length;e++)if(t.indexOf(n[e])<0)return!1;return!0}function N5(t){return function(n,e,i,r,o){o||(o=r,r=void 0),"string"!=typeof i&&(r=i,i=void 0),!o&&"string"==typeof e&&(o=r||i,i=void 0,r=void 0),t(n,e,i,r,o)}}function fhe(t){return function(n,e,i){"string"==typeof e&&(e={type:e}),e.target||(e.target=n),e.currentTarget=n,e.delegateTarget||(e.delegateTarget=n),!e.type&&e.originalEvent&&(e.type=e.originalEvent.type),t(n,e instanceof za.Event?e:za.Event(e),i)}}function mhe(t){var n=function(e,i){if(i&&i.indexOf(" ")>-1){var r=Array.prototype.slice.call(arguments,0);i.split(" ").forEach(function(o){r[1]=o,t.apply(this,r)})}else t.apply(this,arguments)};return function(e,i){if("object"==typeof i){var r=Array.prototype.slice.call(arguments,0);for(var o in i)r[1]=o,r[r.length-1]=i[o],n.apply(this,r)}else n.apply(this,arguments)}}function Ppt(t){return null==(n=t).which&&0===n.type.indexOf("key")?null!=t.charCode?t.charCode:t.keyCode:function(n){return!n.which&&void 0!==n.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(n.type)}(t)?{1:1,2:3,3:1,4:2}[t.button]:t.which;var n}function _he(t){t&&(za.Event=t,za.Event.prototype=t.prototype)}function V5(t,n,e){Object.defineProperty(e||za.Event.prototype,t,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&n(this.originalEvent)},set:function(i){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:i})}})}_he(function Apt(t){return za.Event=function(n,e){if(!(this instanceof za.Event))return new za.Event(n,e);n||(n={}),"string"==typeof n&&(n={type:n}),e||(e={}),t.call(this,n,e)},mt(za.Event.prototype,{_propagationStopped:!1,_immediatePropagationStopped:!1,_defaultPrevented:!1,isPropagationStopped:function(){return!!(this._propagationStopped||this.originalEvent&&this.originalEvent.propagationStopped)},stopPropagation:function(){this._propagationStopped=!0,this.originalEvent&&this.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return this._immediatePropagationStopped},stopImmediatePropagation:function(){this.stopPropagation(),this._immediatePropagationStopped=!0,this.originalEvent&&this.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(this._defaultPrevented||this.originalEvent&&this.originalEvent.defaultPrevented)},preventDefault:function(){this._defaultPrevented=!0,this.originalEvent&&this.originalEvent.preventDefault()}}),za.Event}(function(t,n){var e;t instanceof za.Event||Rn()&&t instanceof R5.Event||(null===(e=t.view)||void 0===e?void 0:e.Event)&&t instanceof t.view.Event?(this.originalEvent=t,this.type=t.type,this.currentTarget=void 0,Object.prototype.hasOwnProperty.call(t,"isTrusted")&&(this.isTrusted=t.isTrusted),this.timeStamp=t.timeStamp||Date.now()):mt(this,t),V5("which",Ppt,this),0===t.type.indexOf("touch")&&(delete n.pageX,delete n.pageY),mt(this,n),this.guid=++che})),["target","relatedTarget","delegateTarget","altKey","bubbles","cancelable","changedTouches","ctrlKey","detail","eventPhase","metaKey","shiftKey","view","char","code","charCode","key","keyCode","button","buttons","offsetX","offsetY","pointerId","pointerType","targetTouches","toElement","touches"].forEach(t=>V5(t,n=>n[t])),function Spt(t){xpt.forEach(function(n){t(n,function(e){return function(t,n){if(n[t]&&!n.touches||!n.touches)return n[t];var e=n.touches.length?n.touches:n.changedTouches;return e.length?e[0][t]:void 0}(n,e)})},this)}(V5);var vhe=Zi(),yhe=Zi();za.set=function(t){vhe.fire(),za.inject(t),_he(t.Event),yhe.fire()},za.subscribeGlobal=function(){B5(arguments,N5(function(){var t=arguments;za.on.apply(this,t),vhe.add(function(){var n=Array.prototype.slice.call(t,0);n.splice(3,1),za.off.apply(this,n)}),yhe.add(function(){za.on.apply(this,t)})}))},za.forcePassiveFalseEventNames=dhe,za.passiveEventHandlersSupported=hhe;const Se=za;var gm,AO=new WeakMap,Rpt=new F5,Che=function(){};function zo(){return gm.data.apply(this,arguments)}function qP(t,n){return gm.removeData.call(this,t,n)}function FO(t,n){if(It.isElementNode(t)){var e=t.getElementsByTagName("*");gm.cleanData(e),n&&gm.cleanData([t])}}!function(t){Rpt.fire(t);var n=(gm=t).cleanData;gm.cleanData=function(e){return Che(e),n.call(this,e)}}({data:function(){var t=arguments[0],n=arguments[1],e=arguments[2];if(t){var i=AO.get(t);return i||AO.set(t,i={}),void 0===n?i:2===arguments.length?i[n]:(i[n]=e,e)}},removeData:function(t,n){if(t)if(void 0===n)AO.delete(t);else{var e=AO.get(t);e&&delete e[n]}},cleanData:function(t){for(var n=0;n<t.length;n++)Se.off(t[n]),AO.delete(t[n])}});var YP=["","Webkit","Moz","O","Ms"],Npt={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},H5=up(function(){return It.createElement("dx").style}),Wy=function(t){if(t in H5())return t;var n=t;t=t.charAt(0).toUpperCase()+t.substr(1);for(var e=1;e<YP.length;e++){var i=YP[e].toLowerCase()+t;if(i in H5())return i}return n},ZP=function(t){return function(t,n){t=dd(t,!0);for(var e,i=0,r=YP.length;i<r;i++){var o=YP[i],a=o+t;if(void 0===(e=n(dd(a),o))&&(e=n(a,o)),void 0!==e)break}return e||""}(t,function(n,e){if(n in H5())return Npt[e]})},Hpt=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],fw=function(t,n){return di(n)&&-1===Hpt.indexOf(t)&&(n+="px"),n},xhe=function(t,n,e){if(t){e=di(e)?e+="px":e;for(var i=0;i<t.length;++i)t[i].style[n]=e}},XP=function(t,n){xhe(t,"width",n)},JP=function(t,n){xhe(t,"height",n)},z5=Fn(),zpt=["auto","none","inherit","initial"],U5=function(t,n){var e=0;return n.forEach(function(i){e+=parseFloat(t[i])||0}),e},W5=function(t,n){var e="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom";return{padding:U5(n,["padding"+e,"padding"+i]),border:U5(n,["border"+e+"Width","border"+i+"Width"]),margin:U5(n,["margin"+e,"margin"+i])}},whe=function(t){var n,e=(null==t||null===(n=t.ownerDocument)||void 0===n?void 0:n.defaultView)||z5;return e.getComputedStyle&&e.getComputedStyle(t)},G5=function(t,n,e,i){var r;return n?.[e]||(null===(r=t.style)||void 0===r?void 0:r[e])||i},mw={content:0,padding:1,border:2,margin:3,"content-box":0,"border-box":2},She={width:["left","right"],height:["top","bottom"]};function PO(t,n,e,i){var r=(a,s,l)=>parseFloat(G5(a,s,l,"0"))||0,o="border"===e?"-width":"";return r(t,i,"".concat(e,"-").concat(She[n][0]).concat(o))+r(t,i,"".concat(e,"-").concat(She[n][1]).concat(o))}var Upt=function(t,n,e){var i="width"===n?"offsetWidth":"offsetHeight",r=whe(t),o=G5(t,r,n);(""===o||"auto"===o)&&(o=t[i]),o=parseFloat(o)||0;var a=G5(t,r,"boxSizing","content-box"),l=mw[e||a],u=mw[a];if(void 0===l||void 0===u)throw new Error;if(u===l)return o;var f=Math.sign(l-u),S=!1,T=!1,R=!1,L=!1;1===f&&(l+=1,u+=1);for(var z=u;z!==l;z+=f)switch(z){case mw.content:break;case mw.padding:S=f*PO(t,n,"padding",r);break;case mw.border:T=f*PO(t,n,"border",r);break;case mw.margin:R=f*PO(t,n,"margin",r)}if(S||T){var j=(!1===S?f*PO(t,n,"padding",r):S)+(!1===T?f*PO(t,n,"border",r):T);L=f*Math.max(0,Math.floor(t[i]-o-f*j))||0}return o+R+S+T+L},Dhe=function(t,n){return t.indexOf("px")>0?t=parseInt(t.replace("px","")):t.indexOf("%")>0?t=parseInt(t.replace("%",""))*function(t){return Da(t)?t.innerHeight:t.offsetHeight}(n)/100:isNaN(t)?t.indexOf("vh")>0&&(t=z5.innerHeight/100*parseInt(t.replace("vh",""))):t=parseInt(t),t},Ehe=function(t,n,e){return t?zpt.indexOf(t)>-1?n?null:t:(Pn(t)&&(t=Dhe(t,e)),di(t)?Math.max(0,t+n):"calc("+t+(n<0?" - ":" ")+Math.abs(n)+"px)"):null},_w=function(t,n){if(!t)return 0;var e=W5("height",z5.getComputedStyle(t));return e.padding+e.border+(n?e.margin:0)},Ohe=function(t){if(t){var n=t.getBoundingClientRect();if(n.height)return n.height}return 0};function yh(t,n,e){return 2===arguments.length?The(n,t):The(n,t,e)}var wn=t=>function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return yh("width",...n)}(t),oa=(t,n)=>function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return yh("width",...n)}(t,n),Ln=t=>function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return yh("height",...n)}(t),xo=(t,n)=>function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return yh("height",...n)}(t,n),ii=(t,n)=>function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return yh("outerWidth",...n)}(t,n||!1),QP=(t,n)=>function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return yh("outerWidth",...n)}(t,n),Zn=(t,n)=>function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return yh("outerHeight",...n)}(t,n||!1),RO=(t,n)=>function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return yh("outerHeight",...n)}(t,n),e2=t=>function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return yh("innerWidth",...n)}(t),vw=t=>function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return yh("innerHeight",...n)}(t),The=function t(n,e,i){var r=e.toLowerCase().indexOf("width")>=0?"Width":"Height",o=r.toLowerCase(),a=0===e.indexOf("outer"),s=0===e.indexOf("inner"),l=2===arguments.length||"boolean"==typeof i;if(xc(n)){if(n.length>1&&!l){for(var u=0;u<n.length;u++)t(n[u],e,i);return}n=n[0]}if(n){if(Da(n))return a?n["inner"+r]:It.getDocumentElement()["client"+r];if(It.isDocument(n)){var f=It.getDocumentElement(),S=It.getBody();return Math.max(S["scroll"+r],S["offset"+r],f["scroll"+r],f["offset"+r],f["client"+r])}if(l){var T="content";return a&&(T=i?"margin":"border"),s&&(T="padding"),Upt(n,o,T)}if(di(i)){var R=whe(n),L=W5(o,R),z="border-box"===R.boxSizing;i=Number(i),a?i-=z?0:L.border+L.padding:s?i+=z?L.border:-L.padding:z&&(i+=L.border+L.padding)}return i+=di(i)?"px":"",It.setStyle(n,o,i),null}},Ihe=t=>Da(t)?t:t.defaultView,LO=t=>{if(!t.getClientRects().length)return{top:0,left:0};var n=t.getBoundingClientRect(),e=Ihe(t.ownerDocument),i=t.ownerDocument.documentElement;return{top:n.top+e.pageYOffset-i.clientTop,left:n.left+e.pageXOffset-i.clientLeft}},khe=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,gg={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};gg.tbody=gg.colgroup=gg.caption=gg.tfoot=gg.thead,gg.th=gg.td;var Ir,j5=function(t){if("string"!=typeof t)return null;var e=It.createDocumentFragment().appendChild(It.createElement("div")),i=khe.exec(t),r=i&&i[1].toLowerCase(),o=gg[r]||gg.default;e.innerHTML=o.startTags+t+o.endTags;for(var a=0;a<o.tagsCount;a++)e=e.lastChild;return[...e.childNodes]},Kpt=function(t){var n=khe.exec(t);return n&&n[1]in gg},$pt=Fn(),Ki=function(t,n){return t?"string"==typeof t?"body"===t?(this[0]=n?n.body:It.getBody(),this.length=1,this):(n=n||It.getDocument(),"<"===t[0]?(this[0]=It.createElement(t.slice(1,-1),n),this.length=1,this):([].push.apply(this,It.querySelectorAll(n,t)),this)):It.isNode(t)||Da(t)?(this[0]=t,this.length=1,this):Array.isArray(t)?([].push.apply(this,t),this):Ir(t.toArray?t.toArray():[t]):(this.length=0,this)};Ir=function(t,n){return new Ki(t,n)},Ir.fn={dxRenderer:!0};var yw=function(t,n){for(var e=0;e<this.length;e++){var i=Ir(this[e]);i[t].apply(i,n)}return this},K5=function(t,n,e){null!=e&&!1!==e?It.setAttribute(t,n,e):It.removeAttribute(t,n)};(Ki.prototype=Ir.fn).show=function(){return this.toggle(!0)},Ki.prototype.hide=function(){return this.toggle(!1)},Ki.prototype.toggle=function(t){return this[0]&&this.toggleClass("dx-state-invisible",!t),this},Ki.prototype.attr=function(t,n){if(this.length>1&&arguments.length>1)return yw.call(this,"attr",arguments);if(!this[0])return Jn(t)||void 0!==n?this:void 0;if(!this[0].getAttribute)return this.prop(t,n);if("string"==typeof t&&1===arguments.length){var e=this[0].getAttribute(t);return e??void 0}if(wi(t))for(var i in t)this.attr(i,t[i]);else K5(this[0],t,n);return this},Ki.prototype.removeAttr=function(t){return this[0]&&It.removeAttribute(this[0],t),this},Ki.prototype.prop=function(t,n){if(!this[0])return this;if("string"==typeof t&&1===arguments.length)return this[0][t];if(wi(t))for(var e in t)this.prop(e,t[e]);else It.setProperty(this[0],t,n);return this},Ki.prototype.addClass=function(t){return this.toggleClass(t,!0)},Ki.prototype.removeClass=function(t){return this.toggleClass(t,!1)},Ki.prototype.hasClass=function(t){if(!this[0]||void 0===this[0].className)return!1;for(var n=t.split(" "),e=0;e<n.length;e++)if(this[0].classList){if(this[0].classList.contains(n[e]))return!0}else if(((Pn(this[0].className)?this[0].className:It.getAttribute(this[0],"class"))||"").split(" ").indexOf(n[e])>=0)return!0;return!1},Ki.prototype.toggleClass=function(t,n){if(this.length>1)return yw.call(this,"toggleClass",arguments);if(!this[0]||!t)return this;n=void 0===n?!this.hasClass(t):n;for(var e=t.split(" "),i=0;i<e.length;i++)It.setClass(this[0],e[i],n);return this},Ki.prototype.html=function(t){return arguments.length?(this.empty(),"string"==typeof t&&!Kpt(t)||"number"==typeof t?(this[0].innerHTML=t,this):this.append(j5(t))):this[0].innerHTML};var Mhe=function(t,n){if(this[0]&&t){"string"==typeof t?t=j5(t):t.nodeType?t=[t]:di(t)&&(t=[It.createTextNode(t)]);for(var e=0;e<t.length;e++){var i=t[e],r=this[0];"TABLE"===r.tagName&&"TR"===i.tagName&&r.tBodies&&r.tBodies.length&&(r=r.tBodies[0]),It.insertElement(r,i.nodeType?i:i[0],n)}}},Ahe=function(t,n){if(this[0]&&this[0].style&&!(null===n||"number"==typeof n&&isNaN(n))){t=Wy(t);for(var e=0;e<this.length;e++)this[e].style[t]=fw(t,n)}};Ki.prototype.css=function(t,n){if(Pn(t)){if(2!==arguments.length){if(!this[0])return;t=Wy(t);var e=$pt.getComputedStyle(this[0])[t]||this[0].style[t];return di(e)?e.toString():e}Ahe.call(this,t,n)}else if(wi(t))for(var i in t)Ahe.call(this,i,t[i]);return this},Ki.prototype.prepend=function(t){if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.prepend(arguments[n]);return this}return Mhe.apply(this,[t,this[0].firstChild]),this},Ki.prototype.append=function(t){if(arguments.length>1){for(var n=0;n<arguments.length;n++)this.append(arguments[n]);return this}return Mhe.apply(this,[t]),this},Ki.prototype.prependTo=function(t){if(this.length>1){for(var n=this.length-1;n>=0;n--)Ir(this[n]).prependTo(t);return this}return(t=Ir(t))[0]&&It.insertElement(t[0],this[0],t[0].firstChild),this},Ki.prototype.appendTo=function(t){return this.length>1?yw.call(this,"appendTo",arguments):(It.insertElement(Ir(t)[0],this[0]),this)},Ki.prototype.insertBefore=function(t){return t&&t[0]&&It.insertElement(t[0].parentNode,this[0],t[0]),this},Ki.prototype.insertAfter=function(t){return t&&t[0]&&It.insertElement(t[0].parentNode,this[0],t[0].nextSibling),this},Ki.prototype.before=function(t){return this[0]&&It.insertElement(this[0].parentNode,t[0],this[0]),this},Ki.prototype.after=function(t){return this[0]&&It.insertElement(this[0].parentNode,t[0],this[0].nextSibling),this},Ki.prototype.wrap=function(t){if(this[0]){var n=Ir(t);n.insertBefore(this),n.append(this)}return this},Ki.prototype.wrapInner=function(t){var n=this.contents();return n.length?n.wrap(t):this.append(t),this},Ki.prototype.replaceWith=function(t){if(t&&t[0])return t.is(this)?this:(t.insertBefore(this),this.remove(),t)},Ki.prototype.remove=function(){return this.length>1?yw.call(this,"remove",arguments):(FO(this[0],!0),It.removeElement(this[0]),this)},Ki.prototype.detach=function(){return this.length>1?yw.call(this,"detach",arguments):(It.removeElement(this[0]),this)},Ki.prototype.empty=function(){return this.length>1?yw.call(this,"empty",arguments):(FO(this[0]),It.setText(this[0],""),this)},Ki.prototype.clone=function(){for(var t=[],n=0;n<this.length;n++)t.push(this[n].cloneNode(!0));return Ir(t)},Ki.prototype.text=function(t){if(!arguments.length){for(var n="",e=0;e<this.length;e++)n+=this[e]&&this[e].textContent||"";return n}var i=Yt(t)?t():t;return FO(this[0],!1),It.setText(this[0],Z(i)?i:""),this},Ki.prototype.val=function(t){return 1===arguments.length?this.prop("value",Z(t)?t:""):this.prop("value")},Ki.prototype.contents=function(){if(!this[0])return Ir();var t=[];return t.push.apply(t,this[0].childNodes),Ir(t)},Ki.prototype.find=function(t){var n=Ir();if(!t)return n;var i,e=[];if("string"==typeof t)for(t=t.trim(),i=0;i<this.length;i++){var r=this[i];if(It.isElementNode(r)){var o=r.getAttribute("id"),a=o||"dx-query-children";o||K5(r,"id",a);var s=(a="[id='"+a+"'] ")+t.replace(/([^\\])(,)/g,"$1, "+a);e.push.apply(e,It.querySelectorAll(r,s)),K5(r,"id",o)}else(It.isDocument(r)||It.isDocumentFragment(r))&&e.push.apply(e,It.querySelectorAll(r,t))}else for(i=0;i<this.length;i++)t=It.isNode(t)?t:t[0],this[i]!==t&&this[i].contains(t)&&e.push(t);return n.add(e)};var Fhe=function(t,n){var e;return!(n=null!==(e=n.host)&&void 0!==e?e:n).nodeType||!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)};Ki.prototype.filter=function(t){if(!t)return Ir();if(":visible"===t)return this.filter(Fhe);if(":hidden"===t)return this.filter(function(o,a){return!Fhe(0,a)});for(var n=[],e=0;e<this.length;e++){var i=this[e];if(It.isElementNode(i)&&"string"===Fa(t))It.elementMatches(i,t)&&n.push(i);else if(It.isNode(t)||Da(t))t===i&&n.push(i);else if(Yt(t))t.call(i,e,i)&&n.push(i);else for(var r=0;r<t.length;r++)t[r]===i&&n.push(i)}return Ir(n)},Ki.prototype.not=function(t){for(var n=[],e=this.filter(t).toArray(),i=0;i<this.length;i++)-1===e.indexOf(this[i])&&n.push(this[i]);return Ir(n)},Ki.prototype.is=function(t){return!!this.filter(t).length},Ki.prototype.children=function(t){for(var n=[],e=0;e<this.length;e++)for(var i=this[e]?this[e].childNodes:[],r=0;r<i.length;r++)It.isElementNode(i[r])&&n.push(i[r]);return n=Ir(n),t?n.filter(t):n},Ki.prototype.siblings=function(){var t=this[0];if(!t||!t.parentNode)return Ir();for(var n=[],e=t.parentNode.childNodes||[],i=0;i<e.length;i++){var r=e[i];It.isElementNode(r)&&r!==t&&n.push(r)}return Ir(n)},Ki.prototype.each=function(t){for(var n=0;n<this.length&&!1!==t.call(this[n],n,this[n]);n++);},Ki.prototype.index=function(t){return t?(t=Ir(t),this.toArray().indexOf(t[0])):this.parent().children().index(this)},Ki.prototype.get=function(t){return this[t<0?this.length+t:t]},Ki.prototype.eq=function(t){return Ir(this[t=t<0?this.length+t:t])},Ki.prototype.first=function(){return this.eq(0)},Ki.prototype.last=function(){return this.eq(-1)},Ki.prototype.select=function(){for(var t=0;t<this.length;t+=1)this[t].select&&this[t].select();return this},Ki.prototype.parent=function(t){if(!this[0])return Ir();var n=Ir(this[0].parentNode);return!t||n.is(t)?n:Ir()},Ki.prototype.parents=function(t){for(var n=[],e=this.parent();e&&e[0]&&!It.isDocument(e[0]);)It.isElementNode(e[0])&&(!t||e.is(t))&&n.push(e.get(0)),e=e.parent();return Ir(n)},Ki.prototype.closest=function(t){if(this.is(t))return this;for(var n=this.parent();n&&n.length;){if(n.is(t))return n;n=n.parent()}return Ir()},Ki.prototype.next=function(t){if(!this[0])return Ir();var n=Ir(this[0].nextSibling);if(!arguments.length)return n;for(;n&&n.length;){if(n.is(t))return n;n=n.next()}return Ir()},Ki.prototype.prev=function(){return this[0]?Ir(this[0].previousSibling):Ir()},Ki.prototype.add=function(t){for(var n=Ir(t),e=this.toArray(),i=0;i<n.length;i++){var r=n[i];-1===e.indexOf(r)&&e.push(r)}return Ir(e)};var $5=[];Ki.prototype.splice=function(){return Ir($5.splice.apply(this,arguments))},Ki.prototype.slice=function(){return Ir($5.slice.apply(this,arguments))},Ki.prototype.toArray=function(){return $5.slice.call(this)},Ki.prototype.offset=function(){if(this[0])return LO(this[0])},Ki.prototype.offsetParent=function(){if(!this[0])return Ir();for(var t=Ir(this[0].offsetParent);t[0]&&"static"===t.css("position");)t=Ir(t[0].offsetParent);return t[0]?t:Ir(It.getDocumentElement())},Ki.prototype.position=function(){if(this[0]){var t,n=parseFloat(this.css("marginTop")),e=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return{top:(t=this[0].getBoundingClientRect()).top-n,left:t.left-e};t=this.offset();var i=this.offsetParent(),r={top:0,left:0};return"HTML"!==i[0].nodeName&&(r=i.offset()),r={top:r.top+parseFloat(i.css("borderTopWidth")),left:r.left+parseFloat(i.css("borderLeftWidth"))},{top:t.top-r.top-n,left:t.left-r.left-e}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(t,n){t.scrollTo(n,t.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(t,n){t.scrollTo(t.pageXOffset,n)}}].forEach(function(t){var n=t.name;Ki.prototype[n]=function(e){if(this[0]){var i=Ihe(this[0]);return void 0===e?i?i[t.offsetProp]:this[0][n]:(i?t.scrollWindow(i,e):this[0][n]=e,this)}}}),Ki.prototype.data=function(t,n){if(this[0])return arguments.length<2?zo.call(Ir,this[0],t):(zo.call(Ir,this[0],t,n),this)},Ki.prototype.removeData=function(t){return this[0]&&qP(this[0],t),this};var Phe=function(){return Ir.apply(this,arguments)};Object.defineProperty(Phe,"fn",{enumerable:!0,configurable:!0,get:function(){return Ir.fn},set:function(t){Ir.fn=t}});const U=Phe;var Rhe="totalCount",q5="load";function Cw(t){return t&&Yt(t.then)}function Gy(t){return(new et).resolve(t).promise()}function BO(t,n){if(!Yt(n))throw uo.Error("E4011",t)}function Hhe(t){throw uo.Error("E4012",t)}function jy(t){function n(e){var i=e[0];return i&&i.getResponseHeader?Mce(i,e[1]):null}return function(e){var i;(i=e instanceof Error?e:new Error(n(arguments)||e&&String(e)||"Unknown error")).message!==r5&&t.reject(i)}}function zhe(t,n){var i,e=t._loadFunc;return BO(q5,e),i=e.apply(t,[n]),Array.isArray(i)?i=Gy(i):null==i?i=Gy([]):Cw(i)||Hhe(q5),ra(i)}function Uhe(t,n,e,i){if(n.__rawData)i(n.__rawData);else{var r=n.__rawDataPromise||zhe(n,e);n._cacheRawData&&(n.__rawDataPromise=r),r.always(function(){delete n.__rawDataPromise}).done(function(o){n._cacheRawData&&(n.__rawData=o),i(o)}).fail(jy(t))}}function Whe(t,n,e,i){var r={};"userData"in(e=e||{})&&(r.userData=e.userData),Uhe(t,n,r,function(o){var s,l,f,S,a=zP(o,{errorHandler:n._errorHandler}),u=[];i||((s=cg.queryByOptions(a,e))===a?f=o.slice(0):u.push(s.enumerate().done(function(T){f=T}))),(e.requireTotalCount||i)&&((l=cg.queryByOptions(a,e,!0))===a?S=o.length:u.push(l.count().done(function(T){S=T}))),Qt.apply(U,u).done(function(){i?t.resolve(S):e.requireTotalCount?t.resolve(f,{totalCount:S}):t.resolve(f)}).fail(function(T){t.reject(T)})})}var Xpt=Hy.inherit({ctor:function(t){this.callBase(t=t||{}),this._useDefaultSearch=!!t.useDefaultSearch||"raw"===t.loadMode,this._loadMode=t.loadMode,this._cacheRawData=!1!==t.cacheRawData,this._loadFunc=t[q5],this._totalCountFunc=t[Rhe],this._byKeyFunc=t.byKey,this._insertFunc=t.insert,this._updateFunc=t.update,this._removeFunc=t.remove},_clearCache(){delete this.__rawData},createQuery:function(){throw uo.Error("E4010")},clearRawDataCache:function(){this._clearCache()},_totalCountImpl:function(t){var n=new et;return"raw"!==this._loadMode||this._totalCountFunc?(function qpt(t,n){var i,e=t._totalCountFunc;if(!Yt(e))throw uo.Error("E4021");return Cw(i=e.apply(t,[n]))||(i=Number(i),isFinite(i)||Hhe(Rhe),i=Gy(i)),ra(i)}(this,t).done(function(e){n.resolve(Number(e))}).fail(jy(n)),n=this._addFailHandlers(n)):Whe(n,this,t,!0),n.promise()},_pushImpl:function(t){this.__rawData&&zy({keyInfo:this,data:this.__rawData,changes:t})},_loadImpl:function(t){var n=new et;return"raw"===this._loadMode?Whe(n,this,t,!1):(zhe(this,t).done(function(e,i){n.resolve(e,i)}).fail(jy(n)),n=this._addFailHandlers(n)),n.promise()},_byKeyImpl:function(t,n){var e=new et;return this._byKeyViaLoad()?(this._requireKey(),function Zpt(t,n,e){Uhe(t,n,{},function(i){for(var o,r=n.key(),a=0,s=i.length;a<s;a++)if(o=i[a],EO(r,n.keyOf(i[a]),e))return void t.resolve(o);t.reject(uo.Error("E4009"))})}(e,this,t)):function Ypt(t,n,e){var r,i=t._byKeyFunc;return BO("byKey",i),Cw(r=i.apply(t,[n,e]))||(r=Gy(r)),ra(r)}(this,t,n).done(function(i){e.resolve(i)}).fail(jy(e)),e.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(t){var i,n=this,e=n._insertFunc,r=new et;return BO("insert",e),Cw(i=e.apply(n,[t]))||(i=Gy(i)),ra(i).done(function(o){no().useLegacyStoreResult?r.resolve(t,o):r.resolve(o||t,n.keyOf(o))}).fail(jy(r)),r.promise()},_updateImpl:function(t,n){var i,e=this._updateFunc,r=new et;return BO("update",e),Cw(i=e.apply(this,[t,n]))||(i=Gy(i)),ra(i).done(function(o){no().useLegacyStoreResult?r.resolve(t,n):r.resolve(o||n,t)}).fail(jy(r)),r.promise()},_removeImpl:function(t){var e,n=this._removeFunc,i=new et;return BO("remove",n),Cw(e=n.apply(this,[t]))||(e=Gy()),ra(e).done(function(){i.resolve(t)}).fail(jy(i)),i.promise()}});const bw=Xpt;function Ghe(t){var n=[],e=!1;function i(){for(;n.length;){e=!0;var o=n.shift()();if(void 0!==o){if(o.then)return void Qt(o).always(i);throw Wr.Error("E0015")}}e=!1}return{add:function(r,o){t?(n[0]&&o&&o(n[0]),n=[r]):n.push(r),e||i()},busy:function(){return e}}}function ki(t,n){if(null==t)return{};var r,o,e={},i=Object.keys(t);for(o=0;o<i.length;o++)!(n.indexOf(r=i[o])>=0)&&(e[r]=t[r]);return e}Ghe();var Jpt=["items"],jhe="canceled",Khe=t=>"pending"===t.state(),$he=t=>{switch(t.length){case 0:return;case 1:return t[0]}return[].slice.call(t)},qhe=(t,n,e)=>Array.isArray(t)?n?((t,n,e)=>Dr(t,i=>mt({},ki(i,Jpt),{items:qhe(i.items,n-1,e)})))(t,n,e):Dr(t,e):t,NO=(t,n)=>{var e;return null!==(e=t)&&void 0!==e&&e.data&&(n=t,t=t.data),Array.isArray(t)||(t=[t]),{data:t,extra:n}},tgt=t=>{var n={};return we(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){n[this]=t[this],delete t[this]}),new bw(n)},igt=(t,n)=>new bw({load:()=>mh.sendRequest({url:t,dataType:"json"}),loadMode:n?.fromUrlLoadMode}),t_=(t,n)=>{var e;return"string"==typeof t&&(t={paginate:!1,store:igt(t,n)}),void 0===t&&(t=[]),void 0===(t=Array.isArray(t)||t instanceof Hy?{store:t}:se({},t)).store&&(t.store=[]),e=t.store,"load"in t?e=tgt(t):Array.isArray(e)?e=new cs(e):wi(e)&&(e=(t=>{var n=t.type;return delete t.type,Hy.create(n,t)})(se({},e))),t.store=e,t};class rgt{constructor(){this._counter=-1,this._deferreds={}}add(n){return this._counter++,this._deferreds[this._counter]=n,this._counter}remove(n){return delete this._deferreds[n]}cancel(n){return n in this._deferreds&&(this._deferreds[n].reject(jhe),!0)}cancelAll(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--}}var Fl=ji.inherit({ctor(t){var n;if(t=t_(t),this._eventsStrategy=new Z0(this,{syncStrategy:!0}),this._store=t.store,this._changedTime=0,0!==t.pushAggregationTimeout){var r,o,a=function prt(t,n){var e=[],i=function hrt(t,n){var e;return function(){return e||(e=setTimeout(()=>{e=void 0,t.call(this)},Yt(n)?n():n)),e}}(function(){t.call(this,e),e=[]},n);return function(r){return Array.isArray(r)&&e.push(...r),i.call(this,e)}}(s=>{r.resolve(),Qt(...o).done(()=>this._onPush(s)),o=void 0,r=void 0},void 0===t.pushAggregationTimeout?()=>5*this._changedTime:t.pushAggregationTimeout);this._onPushHandler=s=>{this._aggregationTimeoutId=a(s.changes),r||(r=new et),o=s.waitFor,s.waitFor.push(r.promise())},this._store.on("beforePush",this._onPushHandler)}else this._onPushHandler=s=>this._onPush(s),this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(t),this._mapFunc=t.map,this._postProcessFunc=t.postProcess,this._pageIndex=void 0!==t.pageIndex?t.pageIndex:0,this._pageSize=void 0!==t.pageSize?t.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in t?t.searchValue:null,this._searchOperation=t.searchOperation||"contains",this._searchExpr=t.searchExpr,this._paginate=t.paginate,this._reshapeOnPush=null!==(n=t.reshapeOnPush)&&void 0!==n&&n,we(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],(s,l)=>{l in t&&this.on(l.substr(2,1).toLowerCase()+l.substr(3),t[l])}),this._operationManager=new rgt,this._init()},_init(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,Z(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose(){var t;this._store.off("beforePush",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),null===(t=this._delayedLoadTask)||void 0===t||t.abort(),this._operationManager.cancelAll(),delete this._store,delete this._items,delete this._delayedLoadTask,this._disposed=!0},_extractLoadOptions(t){var n={},e=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(e=e.concat(i)),we(e,function(){n[this]=t[this]}),n},loadOptions(){return this._storeLoadOptions},items(){return this._items},pageIndex(t){if(!di(t))return this._pageIndex;this._pageIndex=t,this._isLastPage=!this._paginate},paginate(t){if(!Dy(t))return this._paginate;this._paginate!==t&&(this._paginate=t,this.pageIndex(0))},pageSize(t){if(!di(t))return this._pageSize;this._pageSize=t},isLastPage(){return this._isLastPage},generateStoreLoadOptionAccessor(t){return n=>{var e=$he(n);if(void 0===e)return this._storeLoadOptions[t];this._storeLoadOptions[t]=e}},sort(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return this.generateStoreLoadOptionAccessor("sort")(n)},filter(){var t=$he(arguments);if(void 0===t)return this._storeLoadOptions.filter;this._storeLoadOptions.filter=t,this.pageIndex(0)},group(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return this.generateStoreLoadOptionAccessor("group")(n)},select(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return this.generateStoreLoadOptionAccessor("select")(n)},requireTotalCount(t){if(!Dy(t))return this._storeLoadOptions.requireTotalCount;this._storeLoadOptions.requireTotalCount=t},searchValue(t){if(arguments.length<1)return this._searchValue;this._searchValue=t,this.pageIndex(0)},searchOperation(t){if(!Pn(t))return this._searchOperation;this._searchOperation=t,this.pageIndex(0)},searchExpr(t){var n=arguments.length;if(0===n)return this._searchExpr;n>1&&(t=[].slice.call(arguments)),this._searchExpr=t,this.pageIndex(0)},store(){return this._store},key(){var t;return null===(t=this._store)||void 0===t?void 0:t.key()},totalCount(){return this._totalCount},isLoaded(){return this._isLoaded},isLoading(){return this._loadingCount>0},beginLoading(){this._changeLoadingCount(1)},endLoading(){this._changeLoadingCount(-1)},_createLoadQueue:()=>Ghe(),_changeLoadingCount(t){var n=this.isLoading();this._loadingCount+=t;var e=this.isLoading();n^e&&this._eventsStrategy.fireEvent("loadingChanged",[e])},_scheduleLoadCallbacks(t){this.beginLoading(),t.always(()=>{this.endLoading()})},_scheduleFailCallbacks(t){var n=this;t.fail(function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];i[0]!==jhe&&n._eventsStrategy.fireEvent("loadError",i)})},_fireChanged(t){var n=new Date;this._eventsStrategy.fireEvent("changed",t),this._changedTime=new Date-n},_scheduleChangedCallbacks(t){t.done(()=>this._fireChanged())},loadSingle(t,n){var e=new et,i=this.key(),r=this._store,o=this._createStoreLoadOptions();return this._scheduleFailCallbacks(e),arguments.length<2&&(n=t,t=i),delete o.skip,delete o.group,delete o.refresh,delete o.pageIndex,delete o.searchString,(t===i||r instanceof bw&&!r._byKeyViaLoad()?r.byKey(n,o):(o.take=1,o.filter=o.filter?[o.filter,[t,n]]:[t,n],r.load(o))).fail(e.reject).done(a=>{var s=Array.isArray(a)&&!a.length;!Z(a)||s?e.reject(new uo.Error("E4009")):(Array.isArray(a)||(a=[a]),e.resolve(this._applyMapFunction(a)[0]))}),e.promise()},load(){var t=new et,n=()=>{if(!this._disposed&&Khe(t))return this._loadFromStore(e,t)};this._scheduleLoadCallbacks(t),this._scheduleFailCallbacks(t),this._scheduleChangedCallbacks(t);var e=this._createLoadOperation(t);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[e]),this._loadQueue.add(()=>("number"==typeof e.delay?this._delayedLoadTask=ky(n,e.delay):n(),t.promise())),t.promise({operationId:e.operationId})},_onPush(t){if(this._reshapeOnPush)this.load();else{var n={changes:t};this._eventsStrategy.fireEvent("changing",[n]);var e=this.group(),i=this.items(),r=0,o=this.paginate()||e?t.filter(a=>"update"===a.type):t;e&&(r=Array.isArray(e)?e.length:1),this._mapFunc&&o.forEach(a=>{"insert"===a.type&&(a.data=this._mapFunc(a.data))}),n.postProcessChanges&&(o=n.postProcessChanges(o)),zy({keyInfo:this.store(),data:i,changes:o,groupCount:r,useInsertIndex:!0}),this._fireChanged([{changes:t}])}},_createLoadOperation(t){var n=this._operationManager.add(t),e=this._createStoreLoadOptions();return t.always(()=>this._operationManager.remove(n)),{operationId:n,storeLoadOptions:e}},reload(){return this.store()._clearCache(),this._init(),this.load()},cancel(t){return this._operationManager.cancel(t)},cancelAll(){return this._operationManager.cancelAll()},_addSearchOptions(t){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(t):(t.searchOperation=this._searchOperation,t.searchValue=this._searchValue,t.searchExpr=this._searchExpr))},_createStoreLoadOptions(){var t=se({},this._storeLoadOptions);return this._addSearchOptions(t),this._paginate&&this._pageSize&&(t.skip=this._pageIndex*this._pageSize,t.take=this._pageSize),t.userData=this._userData,t},_addSearchFilter(t){var n=this._searchValue,e=this._searchOperation,i=this._searchExpr,r=[];n&&(i||(i="this"),Array.isArray(i)||(i=[i]),we(i,function(o,a){r.length&&r.push("or"),r.push([a,e,n])}),t.filter=t.filter?[r,t.filter]:r)},_loadFromStore(t,n){var e=(i,r)=>{if(!this._disposed&&Khe(n)){var o=se(NO(i,r),t);this._eventsStrategy.fireEvent("customizeLoadResult",[o]),Qt(o.data).done(a=>{o.data=a,this._processStoreLoadResult(o,n)}).fail(n.reject)}};return t.data?(new et).resolve(t.data).done(e):this.store().load(t.storeLoadOptions).done(e).fail(n.reject)},_processStoreLoadResult(t,n){var e=t.data,i=t.extra,r=t.storeLoadOptions,o=()=>(this._isLoaded=!0,this._totalCount=isFinite(i.totalCount)?i.totalCount:-1,n.resolve(e,i));this._disposed||(e=this._applyPostProcessFunction(this._applyMapFunction(e)),Jn(i)||(i={}),this._items=e,(!e.length||!this._paginate||this._pageSize&&e.length<this._pageSize)&&(this._isLastPage=!0),r.requireTotalCount&&!isFinite(i.totalCount)?this.store().totalCount(r).done(function(a){i.totalCount=a,o()}).fail(n.reject):o())},_applyMapFunction(t){return this._mapFunc?((t,n,e)=>{var i=e?cm(e).length:0;return qhe(t,i,n)})(t,this._mapFunc,this.group()):t},_applyPostProcessFunction(t){return this._postProcessFunc?this._postProcessFunc(t):t},on(t,n){return this._eventsStrategy.on(t,n),this},off(t,n){return this._eventsStrategy.off(t,n),this}});const fm=Fl;class fg{constructor(n,e,i,r){this.http=n,this.scopeService=e,this.propertyConverter=i,this.chatRelayService=r,this.apiEndpoint=`${this.scopeService.getScope().apiEndpoint}chatMessages`}postMessage(n,e,i,r){return this.http.post(`${this.apiEndpoint}`,{id:n,chatRoomId:e,displayContent:i,replyId:r})}postAttachmentMessage(n,e,i,r){return this.http.post(`${this.apiEndpoint}`,{id:n,chatRoomId:e,displayContent:i,chatMessageAttachments:[r]})}updateMessage(n,e){return this.http.patch(`${this.apiEndpoint}/${n}`,{displayContent:e})}deleteMessage(n){return this.http.delete(`${this.apiEndpoint}/${n}`)}}fg.DUMMY_LOADER={dataSource:new fm([]),pageSize:20,totalCount:0,nextPage:()=>Bi(),previousPage:()=>Bi(),onDestroy:()=>{},addMessage:()=>{}},fg.\u0275fac=function(n){return new(n||fg)(qt(iu),qt(bo),qt(fd),qt(ud))},fg.\u0275prov=Hn({token:fg,factory:fg.\u0275fac}),O5(Map),O5(Set),(()=>{var t;const n=String.prototype,e=Object.getOwnPropertyNames(Xr.prototype);for(const i of e)n[i]=null!==(t=n[i])&&void 0!==t?t:Xr.prototype[i];n.first=function(i){if(i){for(let r=0;r<this.length;r++){const o=this[r];if(!0===i(o))return o}throw new ni(ti.NoMatch)}if(0===this.length)throw new ni(ti.NoElements);return this[0]},n.firstOrDefault=function(i){if(i){for(let r=0;r<this.length;r++){const o=this[r];if(!0===i(o))return o}return null}return 0===this.length?null:this[0]},n.count=function(i){if(i){let r=0;for(let o=0;o<this.length;o++)!0===i(this[o])&&r++;return r}return this.length},n.elementAt=function(i){if(i<0||i>=this.length)throw new Ec("index");return this[i]},n.elementAtOrDefault=function(i){return this[i]||null},n.last=function(i){if(i){for(let r=this.length-1;r>=0;r--){const o=this[r];if(!0===i(o))return o}throw new ni(ti.NoMatch)}if(0===this.length)throw new ni(ti.NoElements);return this[this.length-1]},n.lastOrDefault=function(i){if(i){for(let r=this.length-1;r>=0;r--){const o=this[r];if(!0===i(o))return o}return null}return 0===this.length?null:this[this.length-1]},n.reverse=function(){const i=this;return new Xr(function*r(){for(let o=i.length-1;o>=0;o--)yield i[o]})}})(),pg(Array),pg(Int8Array),pg(Int16Array),pg(Int32Array),pg(Uint8Array),pg(Uint8ClampedArray),pg(Uint16Array),pg(Uint32Array),pg(Float32Array),pg(Float64Array);class dp{constructor(n,e,i,r,o){this.propertyConverter=n,this.scopeService=e,this.http=i,this.chatMessageService=r,this.chatRelayService=o,this.stores=new Map,this.subscriptions=[],this.cacheUpdatedSource=new le,this.cacheUpdated$=this.cacheUpdatedSource.asObservable(),this.storePushSource=new le,this.storePush$=this.storePushSource.asObservable(),this.scope=this.scopeService.getScope(),this.database=new Jz(this.scope.currentScope.chapter.id,this.scope.network.id),this.apiEndpoint=`${this.scopeService.getScope().apiEndpoint}chatMessages`,this.fastApiEndpoint=`${this.scopeService.getScope().apiEndpoint}chatMessagesFast`,this.registerRelay(),dp.instanceCount++}getOdataStore(n){var e=`${this.apiEndpoint}/getForChatRoom(chatRoomId='${n.toString()}')`;return new Iot({url:e,key:"Id",keyType:"Guid",version:4})}getArrayStore(n){var e=new Date;return null!=this.stores.get(n.toString())?new Promise((i,r)=>i(this.stores.get(n.toString())||new cs)):this.database.chatMessages.where("parentId").equals(n.toString()).count().then(i=>{if(i>0)return this.database.chatMessages.where("parentId").equals(n.toString()).toArray().then(r=>{var a=r.map(l=>JSON.parse(l.jsonValue)).orderBy(l=>l.createdOn).toArray();let s=new cs({key:"id",data:a,onLoaded:l=>this.propertyConverter.convert(l)});return this.stores.set(n.toString(),s),s.on("inserted",l=>{this.chatMessageService.postMessage(l.id,n,l.displayContent,l.replyId).toPromise().then(u=>{})}),s.on("removed",l=>{this.chatMessageService.deleteMessage(l).toPromise().then(u=>{this.database.chatMessages.delete(l.toString())})}),this.cacheUpdatedSource.next(n.valueOf()),s});{let r=`${this.fastApiEndpoint}/quick?chatRoomId=${n.toString()}`;return this.http.get(r).toPromise().then(o=>{let a=[];return o.value.map(s=>a.push({value:s,id:s.id.valueOf(),parentId:n.toString(),synchStartedOn:e,synchCompletedOn:new Date,jsonValue:JSON.stringify(s)})),a.forEach(s=>{s.value.id=s.value.id.toString()}),a=a.orderBy(s=>s.value.createdOn).toArray(),a}).then(o=>this.database.chatMessages.where("parentId").equals(n.toString()).delete().then(a=>this.database.chatMessages.bulkAdd(o).catch(s=>{console.log("error on chatroom message adding: room: "+n),console.log(s)}).then(s=>{var l=o.map(f=>JSON.parse(f.jsonValue));l=l.orderBy(f=>f.createdOn).toArray();let u=new cs({key:"id",data:l,onLoaded:f=>this.propertyConverter.convert(f)});return this.stores.set(n.toString(),u),u.on("inserted",f=>{this.chatMessageService.postMessage(f.id,n,f.displayContent,f.replyId).toPromise().then(S=>{})}),u.on("removed",f=>{this.chatMessageService.deleteMessage(f).toPromise().then(S=>{this.database.chatMessages.delete(f.toString())})}),this.chatRelayService.addToChatroom(n.toString()),this.cacheUpdatedSource.next(n.valueOf()),u},s=>(console.log("Foobar at api call promise"),null!=this.stores.get(n.toString())?(console.log("Resolving store from self fallback"),new Promise((l,u)=>{l(this.stores.get(n.toString())||new cs)})):this.database.chatMessages.where("parentId").equals(n.toString()).toArray().then(l=>{var u=l.map(S=>JSON.parse(S.jsonValue));let f=new cs({key:"id",data:u,onLoaded:S=>this.propertyConverter.convert(S)});return f.on("inserted",S=>{this.chatMessageService.postMessage(S.id,n,S.displayContent,S.replyId).toPromise().then(T=>{})}),f.on("removed",S=>{this.chatMessageService.deleteMessage(S).toPromise().then(T=>{this.database.chatMessages.delete(S.toString())})}),this.stores.set(n.toString(),f),this.cacheUpdatedSource.next(n.toString()),f})))))}})}registerRelay(){this.subscriptions.push(this.chatRelayService.msgReceived$.subscribe(n=>{this.getArrayStore(new Ni(n.roomId)).then(e=>{this.http.get(`${this.apiEndpoint}/GetById(id='${n.id.toString()}')`).toPromise().then(i=>{e.load().then(r=>{if(r.any(o=>o.id.toString()==i.id.toString()))try{e?.push([{type:"update",key:i.id,data:i}])}catch(o){console.error("push error",o,this)}else e?.push([{type:"insert",data:i}]);this.storePushSource.next(n.roomId);try{this.database.chatMessages.add({value:i,id:i.id.valueOf(),parentId:n.roomId,synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(i)})}catch(o){console.error("add message to indexDb foobar",o,this)}})})},e=>{console.error("Msg received error",e,this)})}),this.chatRelayService.msgUpdated$.subscribe(n=>{this.getArrayStore(new Ni(n.roomId)).then(e=>{this.http.get(`${this.apiEndpoint}/GetById(id='${n.id.toString()}')`).toPromise().then(i=>{e.push([{type:"update",key:new Ni(n.id),data:i}]),this.storePushSource.next(n.roomId);try{this.database.chatMessages.update(n.id,{value:i,id:i.id.valueOf(),parentId:n.roomId,synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(i)})}catch(r){console.error("update message to indexDb foobar",r)}},i=>{console.error("Msg updated",i)})})}),this.chatRelayService.msgDeleted$.subscribe(n=>{this.getArrayStore(new Ni(n.roomId)).then(e=>{e.push([{type:"remove",key:n.id}]),this.storePushSource.next(n.roomId);try{this.database.chatMessages.delete(n.id)}catch(i){console.log("delete message to indexDb foobar"),console.log(i)}})}))}rebuildCacheAndGetStore(n){let e=`${this.fastApiEndpoint}/quick?chatRoomId=${n.toString()}`;var i=new Date;return this.http.get(e).toPromise().then(r=>{let o=[];return r.value.map(a=>o.push({value:a,id:a.id.valueOf(),parentId:n.toString(),synchStartedOn:i,synchCompletedOn:new Date,jsonValue:JSON.stringify(a)})),o.forEach(a=>{a.value.id=a.value.id.toString()}),o=o.orderBy(a=>a.value.createdOn).toArray(),o}).then(r=>this.database.chatMessages.where("parentId").equals(n.toString()).delete().then(o=>this.database.chatMessages.bulkAdd(r).catch(a=>{console.error("error on chatroom message adding: room: "+n),console.error(a)}).then(a=>{var s=r.map(u=>JSON.parse(u.jsonValue));s=s.orderBy(u=>u.createdOn).toArray();let l=new cs({key:"id",data:s,onLoaded:u=>this.propertyConverter.convert(u)});return l.on("inserted",u=>{this.chatMessageService.postMessage(u.id,n,u.displayContent,u.replyId).toPromise().then(f=>{})}),l.on("removed",u=>{this.chatMessageService.deleteMessage(u).toPromise().then(f=>{this.database.chatMessages.delete(u.toString())})}),this.stores.set(n.toString(),l),this.cacheUpdatedSource.next(n.toString()),l},a=>(console.error("Foobar at api call promise",a),null!=this.stores.get(n.toString())?(console.log("Resolving store from self fallback"),new Promise((s,l)=>{s(this.stores.get(n.toString())||new cs)})):this.database.chatMessages.where("parentId").equals(n.toString()).toArray().then(s=>{var l=s.map(f=>JSON.parse(f.jsonValue));let u=new cs({key:"id",data:l,onLoaded:f=>this.propertyConverter.convert(f)});return u.on("inserted",f=>{this.chatMessageService.postMessage(f.id,n,f.displayContent,f.replyId).toPromise().then(S=>{})}),u.on("removed",f=>{this.chatMessageService.deleteMessage(f).toPromise().then(S=>{this.database.chatMessages.delete(f.toString())})}),this.stores.set(n.toString(),u),this.cacheUpdatedSource.next(n.toString()),u})))))}updateStore(n,e,i){var r=e.toISOString();return this.getArrayStore(n).then(o=>{let a=`${this.fastApiEndpoint}/quickDiff?chatRoomId=${n.toString()}&diffDate=${r}`;o.load().then(s=>{this.http.get(a).toPromise().then(u=>{u.value.length>0&&u.value.forEach(f=>{if(f.modifiedOn&&!f.deletedOn){o.push([{type:"update",key:f.id,data:f}]);try{this.database.chatMessages.update(f.id.valueOf(),{value:f,id:f.id.valueOf(),parentId:n.valueOf(),synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(f)})}catch(S){console.error("update message to indexDb foobar",S,this)}}else if(f.modifiedOn&&f.deletedOn){o.push([{type:"remove",key:f.id}]);try{this.database.chatMessages.delete(f.id.valueOf())}catch(S){console.error("delete message to indexDb foobar",S,this)}}else{o.byKey(f.id).then(S=>{o.push(S?[{type:"update",key:f.id,data:f}]:[{type:"insert",data:f}])});try{this.database.chatMessages.get(f.id.valueOf()).then(S=>{S||this.database.chatMessages.add({value:f,id:f.id.valueOf(),parentId:n.valueOf(),synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(f)})})}catch(S){console.error("add message to indexDb foobar",S,this)}}}),this.checkForCorruption(n)})})})}checkForCorruption(n){let i=(new Date).toISOString(),r=`${this.fastApiEndpoint}/quickDiff?chatRoomId=${n.toString()}&diffDate=${i}`;return this.http.get(r).toPromise().then(o=>{let a=o.totalCount;return this.getArrayStore(n).then(s=>{s.load().then(l=>l.length!=a?(console.log("Corrupted store:",n,a,l.length),this.dropBackendCache(n).then(u=>u?(this.chatRelayService.addToChatroom(n.toString()),this.rebuildCacheAndGetStore(n)):null)):null)})})}dropBackendCache(n){return this.http.get(this.scopeService.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+n.toString()).toPromise().then(e=>(e&&console.log("Cache eviction call"),e))}}dp.instanceCount=0,dp.\u0275fac=function(n){return new(n||dp)(qt(fd),qt(bo),qt(iu),qt(fg),qt(ud))},dp.\u0275prov=Hn({token:dp,factory:dp.\u0275fac,providedIn:"root"});class wo{constructor(n,e,i,r,o){this.chatRoomCache=n,this.scopeService=e,this.authenticationService=i,this.messageCache=r,this.badgeService=o,this.authReceived=!1,this.cacheRebuiltSource=new le,this.cacheRebuilt$=this.cacheRebuiltSource.asObservable(),this.storeSynchedSource=new le,this.storeSynced$=this.storeSynchedSource.asObservable(),this.errorsOnUpdate=!1,this.roomCounts={},this.scope=this.scopeService.getScope(),this.database=new Jz(this.scope.currentScope.chapter.id,this.scope.network.id),this.roomCounts=this.badgeService.roomBadges,this.badgeService.badgeUpdates$.subscribe(a=>{wo.cacheRebuilding||(this.roomCounts=a.badges)}),this.authenticationService.isAuthenticated$.subscribe(a=>{this.authReceived||(this.authReceived=!0,this.updateOrInitCache())})}isInitialized(){return wo.cacheInitialized}rebuildCache(){this.chatRoomCache.rebuildCacheAndGetArrayStore(this).then(n=>{n.load().then(e=>{let i=1;var r=new Ky;r.completed=!1,r.current=i,r.total=e.length,r.message="Start",this.cacheRebuiltSource.next(r),e.orderByDescending(o=>o.lastMessage?.createdOn).toArray().forEach(o=>{this.messageCache.rebuildCacheAndGetStore(o.id).then(a=>{var s=new Ky;s.completed=!1,s.current=i,s.total=e.length,s.message=o.name,i==e.length&&(wo.cacheRebuilding=!1,s.completed=!0,wo.cacheInitialized=!0,this.cacheRebuiltSource.next(s)),this.cacheRebuiltSource.next(s),i++},a=>{this.errorsOnUpdate=!0})})})})}updateOrInitCache(){if(wo.cacheRebuilding)return wo.cacheRebuilding;wo.cacheRebuilding=!0;var n=new Date;return this.database.synchTable.get(wo.syncEntryKey).then(e=>{if(e){var i=new Ky;i.completed=!1,i.current=1,i.total=1,i.message="Local cache initialized",this.cacheRebuiltSource.next(i),this.badgeService.loadBadges().then(r=>{this.roomCounts=r.badges,this.updateStores(e.synchStartedOn).then(o=>{this.database.synchTable.update(wo.syncEntryKey,{id:wo.syncEntryKey,value:"",synchStartedOn:n,syncCompletedOn:new Date,jsonValue:""}).then(a=>{})})})}else{let r=new Date("1.1.1970");this.database.synchTable.add({id:wo.syncEntryKey,value:"",synchStartedOn:r,jsonValue:""}).then(o=>{var a=new Ky;a.completed=!1,a.current=1,a.total=1,a.message="Local cache initialized",this.cacheRebuiltSource.next(a),this.badgeService.loadBadges().then(s=>{this.roomCounts=s.badges,this.updateStores(r).then(l=>{this.database.synchTable.update(wo.syncEntryKey,{id:wo.syncEntryKey,value:"",synchStartedOn:r,syncCompletedOn:new Date,jsonValue:""}).then(u=>{})})})})}}),wo.cacheRebuilding}updateOrInitCacheOld(){if(wo.cacheRebuilding)return wo.cacheRebuilding;wo.cacheRebuilding=!0;var n=new Date;return this.database.synchTable.get(wo.syncEntryKey).then(e=>{if(e){var i=new Ky;i.completed=!0,i.current=1,i.total=1,i.message="Local cache initialized",this.cacheRebuiltSource.next(i),this.badgeService.loadBadges().then(r=>{this.roomCounts=r.badges,this.updateStores(e.synchStartedOn).then(o=>{this.database.synchTable.update(wo.syncEntryKey,{id:wo.syncEntryKey,value:"",synchStartedOn:n,syncCompletedOn:new Date,jsonValue:""}).then(a=>{})})})}else this.database.synchTable.add({id:wo.syncEntryKey,value:"",synchStartedOn:n,jsonValue:""}).then(r=>{this.rebuildCache()})}),wo.cacheRebuilding}updateStores(n){return this.chatRoomCache.rebuildCacheAndGetArrayStore(this).then(e=>{e.load().then(i=>{let r=1;var o=new Ky;o.completed=!1,o.current=r,o.total=i.length,o.message="Start",this.storeSynchedSource.next(o),this.cacheRebuiltSource.next(o),i.orderByDescending(a=>a.lastMessage?.createdOn).toArray().forEach(a=>{let s=0;try{s=this.badgeService.roomBadges[a.id.toString()].allMessagesCount}catch{}this.messageCache.updateStore(a.id,n,s).then(l=>{var u=new Ky;u.completed=!1,u.current=r,u.total=i.length,u.message="Room messages resynched for room: ("+r+"/"+i.length+") "+a.name,r==i.length&&(wo.cacheRebuilding=!1,u.completed=!0,wo.cacheInitialized=!0,this.storeSynchedSource.next(u),this.cacheRebuiltSource.next(u)),r++})})})})}}wo.cacheRebuilding=!1,wo.cacheInitialized=!1,wo.syncEntryKey="ChatCacheLastUpdateKey",wo.\u0275fac=function(n){return new(n||wo)(qt(Dc),qt(bo),qt(Eu),qt(dp),qt(ag))},wo.\u0275prov=Hn({token:wo,factory:wo.\u0275fac,providedIn:"root"});class Ky{constructor(n,e,i,r){this.total=0,this.completed=!1,this.current=0,this.message="",this.completed=e??!1,this.current=r??0,this.message=n??"",this.total=i??0}}class n_{constructor(n,e,i,r){this.scopeService=n,this.router=e,this.chatRelay=i,this.cacheManager=r,this.subscriptions=[],this.cacheRebuilt=!1,this.roomCount=0,this.current=0,this.message="Initializing chat system",this.windowWidth=720,this.isMobile=!0,this.cacheRebuilt=this.cacheManager.isInitialized(),this.chapter=this.scopeService.getScope().currentChapter.name,this.scope=this.scopeService.getScope(),this.message=this.scope.network.getResourceOrKeyName("web_chat_cache_initializing_will_start"),this.subscriptions.push(this.cacheManager.cacheRebuilt$.subscribe(s=>{s.completed!=this.cacheRebuilt&&(this.cacheRebuilt=s.completed,this.cacheRebuilt&&(n_.initialized=!0)),this.message=s.message,s.total!=this.roomCount&&(this.roomCount=s.total),s.current!=this.current&&(this.current=s.current)}));const o=window.location.href.indexOf("/chat")+1;let a;tit(n.getScope().currentScope.network.settings.languageCode),a=0===o?["chat"]:window.location.href.substring(o).split("/"),e.navigate(a)}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}onResize(){this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<Kf}}n_.initialized=!1,n_.\u0275fac=function(n){return new(n||n_)($(bo),$(ds),$(ud),$(wo))},n_.\u0275cmp=je({type:n_,selectors:[["app-chat-home"]],hostBindings:function(n,e){1&n&&fn("resize",function(r){return e.onResize(r)},0,Rf)},decls:3,vars:0,consts:[[1,"navbar-spacer"]],template:function(n,e){1&n&&(li(0,"div",0),Ot(1,"div"),li(2,"router-outlet"),Pt())},dependencies:[UE],styles:[".navbar-spacer[_ngcontent-%COMP%]{height:101px}.chatRouterContainerLoadPane[_ngcontent-%COMP%]{text-align:center;vertical-align:middle;padding:20%}[_nghost-%COMP%]     .dx-list{font-family:var(--fontChat)}@media (max-width: 991px){.navbar-spacer[_ngcontent-%COMP%]{height:0}}"]});class VO{constructor(n){this.keepAlive=n,this.connected=!1,this.subscriptions=[],this.subscriptions.push(this.keepAlive.isConnected$.subscribe(e=>{this.connected=e}))}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}ngOnInit(){}}VO.\u0275fac=function(n){return new(n||VO)($(Qf))},VO.\u0275cmp=je({type:VO,selectors:[["app-user-vitals"]],decls:0,vars:0,template:function(n,e){}});var ogt=D(96),agt=D.n(ogt);const t2={position:Ile.bottomRight,fallsbackLang:"en",header:"web_cookie_consent_title",text:"web_cookie_consent_text",animationDuration:800,buttons:{accept:"web_cookie_consent_accept_all",acceptSome:"web_cookie_consent_accept_some",reject:"web_cookie_consent_reject_all",saveAndClose:"web_cookie_consent_save_and_close",back:"web_cookie_consent_back"},links:[{caption:"web_cookie_consent_caption_pp",navigate:"pp"},{caption:"web_cookie_consent_caption_imprint",navigate:"imprint"}],settings:{caption:"web_cookie_consent_settings_caption",header:"web_cookie_consent_settings_title",text:"web_cookie_consent_settings_text",tabs:[{id:yc_externalMedia,header:"web_cookie_consent_settings_tabs_external_media_title",caption:"web_cookie_consent_settings_tabs_external_media_caption",text:"web_cookie_consent_settings_tabs_external_media_text",providersHeader:"web_cookie_consent_settings_providers_title",apiTarget:"ExternalMediaCookiesConsent",isChecked:!1,providers:[{caption:"Twitter",id:Su_externalMedia_twitter,type:ap.ExternalMedia,isChecked:!1,tabId:yc_externalMedia},{caption:"Youtube",id:Su_externalMedia_youTube,type:ap.ExternalMedia,isChecked:!1,tabId:yc_externalMedia},{caption:"Facebook",id:Su_externalMedia_facebook,type:ap.ExternalMedia,isChecked:!1,tabId:yc_externalMedia},{caption:"Vimeo",id:Su_externalMedia_vimeo,type:ap.ExternalMedia,isChecked:!1,tabId:yc_externalMedia},{caption:"Giphy",id:Su_externalMedia_giphy,type:ap.ExternalMedia,isChecked:!1,tabId:yc_externalMedia}]},{id:yc_analytics,header:"web_cookie_consent_settings_tabs_analytics_title",caption:"web_cookie_consent_settings_tabs_analytics_caption",text:"web_cookie_consent_settings_tabs_analytics_text",providersHeader:"web_cookie_consent_settings_providers_title",apiTarget:"AnalyticsCookiesConsent",isChecked:!1,providers:[{caption:"Matomo",id:Su_analytics_matomo,type:ap.Analytics,isChecked:!1,tabId:yc_analytics},{caption:"Google Analytics",id:Su_analytics_googleAnalytics,type:ap.Analytics,isChecked:!1,tabId:yc_analytics}]},{id:"externalLoginPermissions",header:"web_cookie_consent_settings_tabs_external_login_title",caption:"web_cookie_consent_settings_tabs_external_login_caption",text:"web_cookie_consent_settings_tabs_external_login_text",providersHeader:"web_cookie_consent_settings_providers_title",apiTarget:"ExternalLoginCookiesConsent",isChecked:!1,providers:[{caption:"Facebook",id:Su_externalLogin_facebook,type:ap.ExternalLogin,isChecked:!1,tabId:"externalLoginPermissions"}]}]}};class mg{constructor(){this.configuration=t2,this.animationDuration=this.configuration.animationDuration,this.aosAnimateClass="aos-animate"}hide(n){return new Promise((e,i)=>{try{this.toHtmlElement(n).classList.remove(this.aosAnimateClass),window.setTimeout(()=>e(),this.animationDuration)}catch{i()}})}toHtmlElement(n){return n?.nativeElement}}mg.\u0275fac=function(n){return new(n||mg)},mg.\u0275prov=Hn({token:mg,factory:mg.\u0275fac});const{bottomLeft:sgt,bottomRight:lgt}=Ile;class _g{constructor(n,e,i){this.platformId=n,this.configuration=t2,this.position=this.configuration.position,this.isBrowser=Gf(this.platformId),this.currentPosition={isLeft:sgt===this.position,isRight:lgt===this.position},this.tabs=[],this.isInitializedSource=new le,this.isInitialized$=this.isInitializedSource.asObservable(),this.http=new iu(e),this.scopeService=i,this.miniScope=i.getMiniScope(),i.observer.subscribe(r=>{this.scope=r,this.initState()})}initState(){var n=this;return Rt(function*(){yield n.loadProfile();const e=n.configureTabs(n.configuration?.settings?.tabs);n.tabs=n.getInitialTabsState(e),n.isInitializedSource.next(!0),n.isInitializedSource.complete()})()}loadProfile(){var n=this;return Rt(function*(){var e=yield n.http.get(`${n.miniScope.apiEndpoint}Profiles`).toPromise();n.profile=e})()}getTabs(){return this.tabs}getProviders(){return this.tabs.map(n=>n.providers).reduce((n,e)=>[...n,...e])}configureTabs(n){return n?.length?n.reduce((i,r)=>{const o=r.providers.reduce((a,s)=>{const{id:l}=s,{currentChapter:u,currentScope:f}=this.scope??{};switch(r.id){case yc_analytics:switch(l){case Su_analytics_googleAnalytics:if(!u?.settings?.gaTrackingId)return a;break;case Su_analytics_matomo:if(!u?.settings?.piwikBaseUrl)return a}break;case"externalLoginPermissions":if(l===Su_externalLogin_facebook&&!f?.network?.settings.availableFacebookLogin)return a}return[...a,s]},[]);return o?.length?[...i,{...r,providers:o}]:i},[]):[]}getInitialTabsState(n){return n.map(e=>(e.isChecked=this.isSwitcherEnabled(e),e.providers.forEach(i=>i.isChecked=this.isCookieEnabled(i)),e))}isSwitcherEnabled(n){return n.providers.every(({id:e,tabId:i})=>this.isPermissionGranted(i,e))}isCookieEnabled(n){return this.isPermissionGranted(n.tabId,n.id)}save(){this.tabs.forEach(n=>{const e=(new Date).toISOString(),r={...n.providers.map(a=>({[a.id]:{granted:a.isChecked,lastUpdate:e}})).reduce((a,s)=>({...a,...s}),{})};this.http.post(`${this.miniScope.apiEndpoint}Profiles/${n.apiTarget}`,r).toPromise()})}isPermissionGranted(n,e){const i=this.profile?.settings;return!!i&&(i[n][e]?.granted??!1)}}function Yhe(...t){if(1===t.length){const n=t[0];if(m(n))return n2(n,null);if(v(n)&&Object.getPrototypeOf(n)===Object.prototype){const e=Object.keys(n);return n2(e.map(i=>n[i]),e)}}if("function"==typeof t[t.length-1]){const n=t.pop();return n2(t=1===t.length&&m(t[0])?t[0]:t,null).pipe(K(e=>n(...e)))}return n2(t,null)}function n2(t,n){return new G(e=>{const i=t.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,a=0;for(let s=0;s<i;s++){const l=Me(t[s]);let u=!1;e.add(l.subscribe({next:f=>{u||(u=!0,a++),r[s]=f},error:f=>e.error(f),complete:()=>{o++,(o===i||!u)&&(a===i&&e.next(n?n.reduce((f,S,T)=>(f[S]=r[T],f),{}):r),e.complete())}}))}})}_g.\u0275fac=function(n){return new(n||_g)(qt(si),qt(Nx),qt(bo))},_g.\u0275prov=Hn({token:_g,factory:_g.\u0275fac});let Zhe=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)($(bu),$(jn))},t.\u0275dir=sr({type:t}),t})(),$y=(()=>{class t extends Zhe{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275dir=sr({type:t,features:[qe]}),t})();const Fo=new Pi("NgValueAccessor"),ugt={provide:Fo,useExisting:At(()=>HO),multi:!0};let HO=(()=>{class t extends $y{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275dir=sr({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,i){1&e&&fn("change",function(o){return i.onChange(o.target.checked)})("blur",function(){return i.onTouched()})},features:[ot([ugt]),qe]}),t})();const dgt={provide:Fo,useExisting:At(()=>i2),multi:!0},hgt=new Pi("CompositionEventMode");let i2=(()=>{class t extends Zhe{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function cgt(){const t=ip()?ip().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)($(bu),$(jn),$(hgt,8))},t.\u0275dir=sr({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&fn("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[ot([dgt]),qe]}),t})();const Mu=new Pi("NgValidators"),r_=new Pi("NgAsyncValidators");function ape(t){return null!=t}function spe(t){return rE(t)?Me(t):t}function lpe(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function upe(t,n){return n.map(e=>e(t))}function dpe(t){return t.map(n=>function fgt(t){return!t.validate}(n)?n:e=>n.validate(e))}function Y5(t){return null!=t?function cpe(t){if(!t)return null;const n=t.filter(ape);return 0==n.length?null:function(e){return lpe(upe(e,n))}}(dpe(t)):null}function Z5(t){return null!=t?function hpe(t){if(!t)return null;const n=t.filter(ape);return 0==n.length?null:function(e){return Yhe(upe(e,n).map(spe)).pipe(K(lpe))}}(dpe(t)):null}function ppe(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function X5(t){return t?Array.isArray(t)?t:[t]:[]}function o2(t,n){return Array.isArray(t)?t.includes(n):t===n}function mpe(t,n){const e=X5(n);return X5(t).forEach(r=>{o2(e,r)||e.push(r)}),e}function _pe(t,n){return X5(n).filter(e=>!o2(t,e))}class vpe{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Y5(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Z5(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class _d extends vpe{get formDirective(){return null}get path(){return null}}class o_ extends vpe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ype{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let zO=(()=>{class t extends ype{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)($(o_,2))},t.\u0275dir=sr({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Ur("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[qe]}),t})(),Cpe=(()=>{class t extends ype{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)($(_d,10))},t.\u0275dir=sr({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Ur("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[qe]}),t})();const UO="VALID",s2="INVALID",xw="PENDING",WO="DISABLED";function tU(t){return(l2(t)?t.validators:t)||null}function nU(t,n){return(l2(n)?n.asyncValidators:t)||null}function l2(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Spe{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===UO}get invalid(){return this.status===s2}get pending(){return this.status==xw}get disabled(){return this.status===WO}get enabled(){return this.status!==WO}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(mpe(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(mpe(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(_pe(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(_pe(n,this._rawAsyncValidators))}hasValidator(n){return o2(this._rawValidators,n)}hasAsyncValidator(n){return o2(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=xw,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=WO,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=UO,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===UO||this.status===xw)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?WO:UO}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=xw,this._hasOwnPendingAsyncValidator=!0;const e=spe(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new qi,this.statusChanges=new qi}_calculateStatus(){return this._allControlsDisabled()?WO:this.errors?s2:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xw)?xw:this._anyControlsHaveStatus(s2)?s2:UO}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){l2(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function xgt(t){return Array.isArray(t)?Y5(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function wgt(t){return Array.isArray(t)?Z5(t):t||null}(this._rawAsyncValidators)}}class iU extends Spe{constructor(n,e,i){super(tU(e),nU(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){(function wpe(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new Dn(1002,"")})})(this,0,n),Object.keys(n).forEach(i=>{(function xpe(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new Dn(1e3,"");if(!i[e])throw new Dn(1001,"")})(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const ww=new Pi("CallSetDisabledState",{providedIn:"root",factory:()=>u2}),u2="always";function GO(t,n,e=u2){rU(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function Egt(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Dpe(t,n)})}(t,n),function Tgt(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function Ogt(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Dpe(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function Dgt(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function h2(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function rU(t,n){const e=function gpe(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(ppe(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function fpe(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(ppe(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();h2(n._rawValidators,r),h2(n._rawAsyncValidators,r)}function Dpe(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}const Fgt={provide:_d,useExisting:At(()=>g2)},jO=(()=>Promise.resolve())();let g2=(()=>{class t extends _d{constructor(e,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new qi,this.form=new iU({},Y5(e),Z5(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){jO.then(()=>{const i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),GO(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){jO.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){jO.then(()=>{const i=this._findContainer(e.path),r=new iU({});(function Epe(t,n){rU(t,n)})(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){jO.then(()=>{const i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){jO.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,function Ope(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(e),"dialog"===e?.target?.method}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return t.\u0275fac=function(e){return new(e||t)($(Mu,10),$(r_,10),$(ww,8))},t.\u0275dir=sr({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,i){1&e&&fn("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ot([Fgt]),qe]}),t})();function Tpe(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function Ipe(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const kpe=class extends Spe{constructor(n=null,e,i){super(tU(e),nU(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),l2(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=Ipe(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Tpe(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Tpe(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){Ipe(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},Lgt={provide:o_,useExisting:At(()=>Sw)},Fpe=(()=>Promise.resolve())();let Sw=(()=>{class t extends o_{constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this.control=new kpe,this._registered=!1,this.update=new qi,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function sU(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===i2?e=o:function Mgt(t){return Object.getPrototypeOf(t.constructor)===$y}(o)?i=o:r=o}),r||i||e||null}(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function aU(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){GO(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){Fpe.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&Bx(i);Fpe.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function d2(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)($(_d,9),$(Mu,10),$(r_,10),$(Fo,10),$(tg,8),$(ww,8))},t.\u0275dir=sr({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ot([Lgt]),qe,hi]}),t})(),Ppe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=sr({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),Lpe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),aft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[Lpe]}),t})(),gU=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ww,useValue:e.callSetDisabledState??u2}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[aft]}),t})();const lft=["container"];function uft(t,n){if(1&t){const e=Gi();El(0),Ot(1,"div",10),fn("click",function(){const o=Kn(e).index;return $n(yt(2).tabIndex=o)}),Ot(2,"div",11)(3,"span"),xi(4),Pt()()(),Ol()}if(2&t){const e=n.$implicit,i=n.index,r=yt(2);pt(2),Ur("cc-caption-active",r.tabIndex===i),pt(2),ca(" ",r.scope.network.getResourceOrKeyName(e.caption)," ")}}function dft(t,n){if(1&t&&(Ot(0,"div",20),xi(1),Pt()),2&t){const e=yt(2).$implicit,i=yt(2);pt(1),ca(" ",i.scope.network.getResourceOrKeyName(e.providersHeader)," ")}}const cft=function(){return{standalone:!0}};function hft(t,n){if(1&t){const e=Gi();Ot(0,"div",21)(1,"div",22)(2,"div",23),xi(3),Pt(),Ot(4,"div",24)(5,"label",25)(6,"input",26),fn("ngModelChange",function(r){return $n(Kn(e).$implicit.isChecked=r)}),Pt(),li(7,"span",27),Pt()()()()}if(2&t){const e=n.$implicit;pt(3),ca(" ",e.caption," "),pt(3),Tt("ngModel",e.isChecked)("ngModelOptions",Fx(3,cft))}}function pft(t,n){if(1&t&&(Ot(0,"div",13)(1,"div",14),xi(2),Pt(),Ot(3,"div",15),xi(4),Pt(),li(5,"div",16),Ot(6,"div",17),cn(7,dft,2,1,"div",18),cn(8,hft,8,4,"div",19),Pt()()),2&t){const e=yt().$implicit,i=yt(2);pt(2),mr(i.scope.network.getResourceOrKeyName(e.caption)),pt(2),mr(i.scope.network.getResourceOrKeyName(e.text)),pt(3),Tt("ngIf",e.providersHeader),pt(1),Tt("ngForOf",e.providers)}}function gft(t,n){if(1&t&&(El(0),cn(1,pft,9,4,"div",12),Ol()),2&t){const e=n.index,i=yt(2);pt(1),Tt("ngIf",i.tabIndex===e)}}function fft(t,n){if(1&t){const e=Gi();Ot(0,"div",1,2)(2,"div",3)(3,"div",4),cn(4,uft,5,3,"ng-container",5),Pt(),Ot(5,"div",6),cn(6,gft,2,1,"ng-container",5),Pt(),Ot(7,"div",7)(8,"a",8),fn("click",function(){return Kn(e),$n(yt().back())}),xi(9),Pt(),Ot(10,"a",9),fn("click",function(){return Kn(e),$n(yt().confirm())}),xi(11),Pt()()()()}if(2&t){const e=yt();Ur("cc-left",e.currentPosition.isLeft)("cc-right",e.currentPosition.isRight)("app",e.userClientInfo.isApp),es("data-aos-duration",e.animationDuration),pt(4),Tt("ngForOf",e.tabs),pt(2),Tt("ngForOf",e.tabs),pt(3),ca(" ",e.scope.network.getResourceOrKeyName(e.backCaption)," "),pt(2),ca(" ",e.scope.network.getResourceOrKeyName(e.saveCaption)," ")}}class KO{constructor(n,e,i){this.animationService=n,this.cookieStatusService=e,this.configuration=t2,this.currentPosition=this.cookieStatusService.currentPosition,this.isHidden=!1,this.fallsbackLang=this.configuration.fallsbackLang,this.header=this.configuration.settings?.header,this.text=this.configuration.settings?.text,this.saveCaption=this.configuration.buttons.saveAndClose,this.backCaption=this.configuration.buttons.back,this.animationDuration=this.configuration.animationDuration,this.tabs=[],this.isCookieSettingsOpened=!0,this.isCookieSettingsOpenedChange=new qi,this.accept=new qi,this.tabIndex=0,this.scopeService=i,this.scope=i.getScope(),this.userClientInfo=i.getUserClientInfo(),this.tabs=this.cookieStatusService.getTabs()}confirm(){this.back().finally(()=>this.accept.emit())}back(){return this.animationService.hide(this.containerRef).finally(()=>this.isHidden=!0).finally(()=>this.isCookieSettingsOpenedChange.emit(!1))}}KO.\u0275fac=function(n){return new(n||KO)($(mg),$(_g),$(bo))},KO.\u0275cmp=je({type:KO,selectors:[["settings"]],viewQuery:function(n,e){if(1&n&&nu(lft,5,jn),2&n){let i;yn(i=Cn())&&(e.containerRef=i.first)}},inputs:{isCookieSettingsOpened:"isCookieSettingsOpened"},outputs:{isCookieSettingsOpenedChange:"isCookieSettingsOpenedChange",accept:"accept"},decls:1,vars:1,consts:[["class","cc-settings-container cc-shadow cc-window cc-floating cc-bottom","role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","data-aos","slide-up","data-aos-easing","ease-in-out",3,"cc-left","cc-right","app",4,"ngIf"],["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","data-aos","slide-up","data-aos-easing","ease-in-out",1,"cc-settings-container","cc-shadow","cc-window","cc-floating","cc-bottom"],["container",""],[1,"cc-window","cc-floating","cc-settings-panel"],[1,"cc-tabs-captions"],[4,"ngFor","ngForOf"],[1,"cc-tab-items"],[1,"cc-compliance"],["aria-label","dismiss cookie message","role","button","tabindex","0",1,"cc-button","cc-button-reject",3,"click"],["aria-label","back message","role","button","tabindex","0",1,"cc-button","cc-button-accept",3,"click"],[1,"cc-tab-caption",3,"click"],[1,"cc-caption"],["class","cc-tab-item",4,"ngIf"],[1,"cc-tab-item"],[1,"cc-tab-header"],[1,"cc-tab-text"],[1,"cc-separator"],[1,"cc-tab-content"],["class","cc-tab-provider-caption",4,"ngIf"],["class","cc-tab-providers",4,"ngFor","ngForOf"],[1,"cc-tab-provider-caption"],[1,"cc-tab-providers"],[1,"cc-tab-provider"],[1,"cc-provider-caption"],[1,"cc-provider-silder"],[1,"cc-slider-label"],["type","checkbox",3,"ngModel","ngModelOptions","ngModelChange"],[1,"cc-slider","cc-round"]],template:function(n,e){1&n&&cn(0,fft,12,11,"div",0),2&n&&Tt("ngIf",!e.isHidden)},dependencies:[Wf,Tl,HO,zO,Sw],styles:['.overflow-text-3[_ngcontent-%COMP%]{word-break:break-all}.cc-right[_ngcontent-%COMP%]{right:24px}.cc-bottom[_ngcontent-%COMP%]{bottom:24px}.cc-settings-container[_ngcontent-%COMP%]{background-color:#fff;display:flex;flex-direction:row;width:480px;justify-content:space-between}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:2rem;justify-content:space-around}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]{cursor:pointer;text-align:center;display:flex}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]:not(:first-child){margin-left:2rem}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption[_ngcontent-%COMP%]{font-size:15px;text-align:center;display:flex;justify-content:center;align-items:flex-end;overflow:hidden;border-bottom:2px solid #f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-active[_ngcontent-%COMP%]{border-color:var(--color1)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]{position:relative;width:100%}.cc-settings-container[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]   .cc-separator[_ngcontent-%COMP%]{margin:5px 0;border-bottom:1px solid #f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating.cc-settings-panel[_ngcontent-%COMP%]{padding:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-header[_ngcontent-%COMP%]{text-align:left;font-weight:600;line-height:30px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-message[_ngcontent-%COMP%]{padding:0 30px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-header[_ngcontent-%COMP%]{font-weight:700}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]{margin-top:20px;max-height:180px;overflow:auto}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-provider-caption[_ngcontent-%COMP%]{font-weight:700}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]:not(:first-child):not(:nth-child(2)){border-top:1px solid #f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem 0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]{position:relative;width:54px;height:24px;margin:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0 20px 0 -20px;background-color:#f0f0f0;transition:.4s}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider.cc-round[_ngcontent-%COMP%]{border-radius:24px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider.cc-round[_ngcontent-%COMP%]:before{background-color:var(--color1);border-radius:50%}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:2px;background-color:#d0d0d0;transition:.4s}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]{background-color:#f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]:before{background-color:var(--color1);left:-20px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus + .cc-slider[_ngcontent-%COMP%]{box-shadow:0 0 1px var(--color1)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]:before{transform:translate(52px)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]{text-align:center;display:flex}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]{text-decoration:none;font-size:15px;text-align:center;margin:0 10px;width:100%;border-radius:1rem;overflow:visible;line-height:45px;padding:0 30px;background-color:var(--color1-alpha70);color:#000}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]:hover{background-color:var(--color1-alpha80)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]{background-color:#f0f0f0;color:#000}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]:hover{background-color:#d9d9d9}@media (max-width: 991px){.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]{height:20px;margin:5px 15px;overflow:hidden;display:inline-block}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption[_ngcontent-%COMP%]{font-weight:400;padding:0;width:auto;text-decoration:underline;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:288px}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-right-border-round[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-selected[_ngcontent-%COMP%]{text-decoration:underline}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-arrow[_ngcontent-%COMP%]{display:none;border:none}.cc-settings-container[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]{padding-bottom:12px;position:initial}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]{left:24px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]{flex-direction:column}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]{width:unset;margin:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]:first-child{margin-bottom:1rem}}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption[_ngcontent-%COMP%]{border-color:#212121}.app[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]{background-color:#000!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%], .app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-top-panel[_ngcontent-%COMP%]   .cc-close-button[_ngcontent-%COMP%]{background-color:#000}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-switchers[_ngcontent-%COMP%]   .cc-switcher-item[_ngcontent-%COMP%]:not(:first-child){border-color:#212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-separator[_ngcontent-%COMP%]{border-color:#212121!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]{border-color:#212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]:not(:first-child):not(:nth-child(2)){border-top:1px solid #212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider[_ngcontent-%COMP%]{background-color:#212121!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]{background-color:#212121!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]{color:#fff;background-color:#212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]:hover{background-color:#3b3b3b}}']});const mft=["container"],_ft=function(){return{standalone:!0}};function vft(t,n){if(1&t){const e=Gi();Ot(0,"div",12)(1,"label",13),xi(2),Pt(),Ot(3,"label",14)(4,"input",15),fn("ngModelChange",function(r){return $n(Kn(e).$implicit.isChecked=r)})("change",function(){const o=Kn(e).$implicit;return $n(yt(3).switch(o))}),Pt(),li(5,"span",16),Pt()()}if(2&t){const e=n.$implicit,i=yt(3);let r;pt(2),mr(i.scope.network.getResourceOrKeyName(null!==(r=null==e?null:e.caption)&&void 0!==r?r:"")),pt(2),Tt("ngModel",e.isChecked)("ngModelOptions",Fx(3,_ft))}}function yft(t,n){if(1&t&&(Ot(0,"div",10),cn(1,vft,6,4,"div",11),Pt()),2&t){const e=yt(2);pt(1),Tt("ngForOf",e.tabs)}}function Cft(t,n){if(1&t){const e=Gi();Ot(0,"div",21)(1,"a",22),fn("click",function(){return Kn(e),$n(yt(3).openCookieSettings())}),xi(2),Pt()()}if(2&t){const e=yt(3);pt(2),ca(" ",e.scope.network.getResourceOrKeyName(e.settings.caption)," ")}}function bft(t,n){1&t&&li(0,"div",23)}function xft(t,n){1&t&&li(0,"div",23)}function wft(t,n){if(1&t&&(El(0),Ot(1,"div",21)(2,"a",24),xi(3),Pt()(),cn(4,xft,1,0,"div",19),Ol()),2&t){const e=n.$implicit,i=n.index,r=yt(3);let o;pt(2),oE("href",e.navigate,ad),pt(1),mr(r.scope.network.getResourceOrKeyName(e.caption)),pt(1),Tt("ngIf",i!=(null!==(o=null==r.links?null:r.links.length)&&void 0!==o?o:1)-1)}}function Sft(t,n){if(1&t&&(Ot(0,"div",17),cn(1,Cft,3,1,"div",18),cn(2,bft,1,0,"div",19),cn(3,wft,5,3,"ng-container",20),Pt()),2&t){const e=yt(2);pt(1),Tt("ngIf",e.settings),pt(1),Tt("ngIf",(null==e.links?null:e.links.length)&&e.settings),pt(1),Tt("ngForOf",e.links)}}function Dft(t,n){if(1&t){const e=Gi();Ot(0,"div",2,3)(2,"h3"),xi(3),Pt(),Ot(4,"span",4),xi(5),Pt(),cn(6,yft,2,1,"div",5),Ot(7,"div",6)(8,"a",7),fn("click",function(){return Kn(e),$n(yt().reject())}),xi(9),Pt(),Ot(10,"a",8),fn("click",function(){return Kn(e),$n(yt().accept())}),xi(11),Pt()(),cn(12,Sft,4,3,"div",9),Pt()}if(2&t){const e=yt();let i,r,o,a;Ur("cc-left",null==e.currentPosition?null:e.currentPosition.isLeft)("cc-right",null==e.currentPosition?null:e.currentPosition.isRight)("app",e.userClientInfo.isApp),es("data-aos-duration",e.animationDuration),pt(3),mr(e.scope.network.getResourceOrKeyName(null!==(i=e.header)&&void 0!==i?i:"")),pt(2),ca(" ",e.scope.network.getResourceOrKeyName(null!==(r=e.text)&&void 0!==r?r:"")," "),pt(1),Tt("ngIf",null==e.tabs?null:e.tabs.length),pt(2),Ur("darkColor",e.isDarkBackground("cc-button-reject")),pt(1),ca(" ",e.scope.network.getResourceOrKeyName(null!==(o=null==e.buttons?null:e.buttons.reject)&&void 0!==o?o:"")," "),pt(1),Ur("darkColor",e.isDarkBackground("cc-button-accept")),pt(1),ca(" ",e.scope.network.getResourceOrKeyName(null!==(a=e.acceptButtonText)&&void 0!==a?a:"")," "),pt(1),Tt("ngIf",(null==e.links?null:e.links.length)||e.settings)}}function Eft(t,n){if(1&t){const e=Gi();Ot(0,"settings",25),fn("isCookieSettingsOpenedChange",function(r){return Kn(e),$n(yt().isCookieSettingsOpened=r)})("accept",function(){return Kn(e),$n(yt().accept())}),Pt()}2&t&&Tt("isCookieSettingsOpened",yt().isCookieSettingsOpened)}class $O{constructor(n,e,i){this.animationService=n,this.cookieStatusService=e,this.configuration=t2,this.acceptButtonText=this.buttons?.accept,this.isHidden=!0,this.isCookieSettingsOpened=!1,this.isBuildInConsentManager=!1,this.isDarkBackground=r=>"DARK"===F0(r),this.isAnchorTagPresent=()=>window.location.href.includes("#cookie-consent"),this.scopeService=i,this.scope=i.getScope(),this.isBuildInConsentManager=this.getIsBuildInConsentManager(),this.userClientInfo=i.getUserClientInfo(),this.cookieStatusService.isInitialized$.subscribe(()=>{this.currentPosition=this.cookieStatusService.currentPosition,this.fallsbackLang=this.configuration.fallsbackLang,this.header=this.configuration.header,this.text=this.configuration.text,this.buttons=this.configuration.buttons,this.acceptButtonText=this.buttons?.accept,this.links=this.configuration.links,this.animationDuration=this.configuration.animationDuration,this.settings=this.configuration.settings,this.tabs=this.cookieStatusService.getTabs(),this.hideOnInitIfStatusAllowed(),this.setAcceptButtonText()})}ngOnInit(){this.cookieStatusService.isBrowser&&agt().init({duration:this.animationDuration})}isAnySwitcherUnChecked(){return this.tabs?.find(n=>!n.isChecked)}getIsBuildInConsentManager(){return 1===(this.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration?.Manager??0)}hideOnInitIfStatusAllowed(){this.isHidden=!(this.scope.profile.settings?.showConsent??1)}setAcceptButtonText(){const{accept:n,acceptSome:e=n}=this.buttons;this.acceptButtonText=this.isAnySwitcherUnChecked()?e:n}accept(){this.hide(),this.cookieStatusService.save()}reject(){this.hide(),this.tabs&&(this.tabs.forEach(n=>{n.isChecked=!1,n.providers.forEach(e=>{e.isChecked=!1})}),this.cookieStatusService.save())}hide(){this.animationService.hide(this.containerRef).finally(()=>{this.isHidden=!0,window.location.href=window.location.href.split("#")[0]})}show(){this.isHidden=!1}switch(n){n.providers.forEach(e=>e.isChecked=n.isChecked),this.setAcceptButtonText()}openCookieSettings(){this.animationService.hide(this.containerRef).finally(()=>this.isCookieSettingsOpened=!this.isCookieSettingsOpened)}}$O.\u0275fac=function(n){return new(n||$O)($(mg),$(_g),$(bo))},$O.\u0275cmp=je({type:$O,selectors:[["langs-cookie-consent-banner"]],viewQuery:function(n,e){if(1&n&&nu(mft,5,jn),2&n){let i;yn(i=Cn())&&(e.containerRef=i.first)}},decls:2,vars:2,consts:[["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","class","cc-window cc-floating cc-bottom cc-shadow","data-aos","slide-up","data-aos-easing","ease-in-out",3,"cc-left","cc-right","app",4,"ngIf"],[3,"isCookieSettingsOpened","isCookieSettingsOpenedChange","accept",4,"ngIf"],["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","data-aos","slide-up","data-aos-easing","ease-in-out",1,"cc-window","cc-floating","cc-bottom","cc-shadow"],["container",""],[1,"cc-message"],["class","cc-switchers",4,"ngIf"],[1,"cc-compliance"],["aria-label","dismiss cookie message","role","button","tabindex","0","id","cc-button-reject",1,"cc-button","cc-button-reject",3,"click"],["aria-label","dismiss cookie message","role","button","tabindex","0","id","cc-button-accept",1,"cc-button","cc-button-accept",3,"click"],["class","cc-links",4,"ngIf"],[1,"cc-switchers"],["class","cc-switcher-item",4,"ngFor","ngForOf"],[1,"cc-switcher-item"],[1,"cc-switcher-caption"],[1,"cc-slider-label"],["type","checkbox",3,"ngModel","ngModelOptions","ngModelChange","change"],[1,"cc-slider","cc-round"],[1,"cc-links"],["class","cc-link-item",4,"ngIf"],["class","cc-link-item-splitter",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"cc-link-item"],[3,"click"],[1,"cc-link-item-splitter"],[3,"href"],[3,"isCookieSettingsOpened","isCookieSettingsOpenedChange","accept"]],template:function(n,e){1&n&&(cn(0,Dft,13,17,"div",0),cn(1,Eft,1,1,"settings",1)),2&n&&(Tt("ngIf",e.isBuildInConsentManager&&!e.isCookieSettingsOpened&&!e.isHidden||e.isAnchorTagPresent()),pt(1),Tt("ngIf",e.isCookieSettingsOpened))},dependencies:[Wf,Tl,HO,zO,Sw,KO],styles:['.cc-bottom{bottom:24px}.cc-right{right:24px}.cc-left{left:24px}.cc-window{border-radius:1rem;background-color:#fff;position:fixed;overflow:hidden;display:flex;flex-wrap:nowrap;z-index:9999}.cc-window.cc-floating{padding:2rem;width:480px;flex-direction:column}.cc-window.cc-floating .cc-top-panel{display:flex;justify-content:flex-end}.cc-window.cc-floating .cc-top-panel .cc-close-button{border:none;cursor:pointer;font-size:18px;background-color:#fff}.cc-window.cc-floating .cc-message{margin-bottom:12px}.cc-window.cc-floating .cc-compliance{text-align:center;display:flex}.cc-window.cc-floating .cc-compliance .cc-button{text-decoration:none;font-size:15px;text-align:center;margin:0 10px;width:100%;border-radius:1rem;overflow:visible;line-height:45px;padding:0 30px;background-color:var(--color1-alpha70);color:#000}.cc-window.cc-floating .cc-compliance .cc-button:hover{background-color:var(--color1-alpha80)}.cc-window.cc-floating .cc-compliance .cc-button-reject{background-color:#f0f0f0;color:#000}.cc-window.cc-floating .cc-compliance .cc-button-reject:hover{background-color:#d9d9d9}.cc-window.cc-floating .cc-link{display:inline-block;padding:2.4px}.cc-window.cc-floating .cc-link:hover{text-decoration:underline}.cc-window.cc-floating .cc-switchers{padding:24px 0;display:flex;justify-content:center;flex-direction:column}.cc-window.cc-floating .cc-switchers .cc-switcher-item{display:flex;justify-content:space-between;align-items:center;padding:1rem 0}.cc-window.cc-floating .cc-switchers .cc-switcher-item:not(:first-child){border-top:1px solid #f0f0f0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-switcher-caption{margin:0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label{position:relative;width:54px;height:24px;margin:0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider{position:absolute;cursor:pointer;inset:0 20px 0 -20px;background-color:#f0f0f0;transition:.4s}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round{border-radius:24px}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round:before{background-color:var(--color1);border-radius:50%}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:2px;background-color:#d0d0d0;transition:.4s}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input{opacity:0;width:0;height:0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:checked+.cc-slider{background-color:#f0f0f0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:checked+.cc-slider:before{background-color:var(--color1);left:-20px}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:focus+.cc-slider{box-shadow:0 0 1px var(--color1)}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:checked+.cc-slider:before{transform:translate(52px)}.cc-window.cc-floating .cc-links{padding:12px;display:flex;justify-content:center;flex-wrap:wrap}.cc-window.cc-floating .cc-links .cc-link-item a{text-decoration:underline;cursor:pointer;margin:10px;color:#000}.cc-window.cc-floating .cc-links .cc-link-item a:hover,.cc-window.cc-floating .cc-links .cc-link-item a:visited,.cc-window.cc-floating .cc-links .cc-link-item a:focus{color:#000}.cc-window.cc-floating .cc-links .cc-link-item-splitter:before{content:"|";margin:0 10px}.cc-window.cc-floating .cc-revoke{cursor:pointer;padding:1rem;text-decoration:underline;background-color:var(--color1-alpha30)}.cc-window.cc-floating .cc-revoke.cc-bottom{bottom:6px;border-radius:1rem}.cc-window.cc-floating .cc-revoke.cc-right{right:36px}.cc-window.cc-floating .cc-revoke.cc-left{left:36px}.cc-window.cc-floating .cc-revoke.cc-animate{transform:translateY(2em);transition:transform 1s ease}.cc-window.cc-floating .cc-revoke:hover{transform:translateY(0)}.darkColor{color:#fff}@media (max-width: 991px){.cc-window.cc-floating{left:24px}.cc-window.cc-floating .cc-compliance{flex-direction:column}.cc-window.cc-floating .cc-compliance .cc-button{width:unset;margin:0}.cc-window.cc-floating .cc-compliance .cc-button:last-child{margin-bottom:1rem}}.cc-shadow{box-shadow:5px 1px 5px 2px #0000001f,0 1px 5px 2px #0000001f,0 1px 5px 2px #0000001f}@media (prefers-color-scheme: dark){.app .cc-window{background-color:#000!important}.app .cc-window.cc-floating .cc-top-panel .cc-close-button{background-color:#000}.app .cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-switcher-caption{color:#fff}.app .cc-window.cc-floating .cc-switchers .cc-switcher-item:not(:first-child){border-color:#212121}.app .cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider{background-color:#212121}.app .cc-window.cc-floating .cc-compliance .cc-button-reject{color:#fff;background-color:#212121}.app .cc-window.cc-floating .cc-compliance .cc-button-reject:hover{background-color:#3b3b3b}.app .cc-window.cc-floating .cc-links .cc-link-item a{color:#fff}.app .cc-window.cc-floating .cc-links .cc-link-item a:hover,.app .cc-window.cc-floating .cc-links .cc-link-item a:visited,.app .cc-window.cc-floating .cc-links .cc-link-item a:focus{color:#fff}}\n'],encapsulation:2});const ege=new F5;var tge=function(t,n){var e={};"noBubble"in n&&(e.noBubble=n.noBubble),"bindType"in n&&(e.bindType=n.bindType),"delegateType"in n&&(e.delegateType=n.delegateType),we(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(i,r){n[r]&&(e[r]=function(){var o=[].slice.call(arguments);return o.unshift(this),n[r].apply(n,o)})}),P5.fire(t,e)};tge.callbacks=P5;const cp=tge;var vg="dxremove",fU="dxRemoveEvent";(function Bpt(t){Che=t})(function(t){t=[].slice.call(t);for(var n=0;n<t.length;n++){var e=U(t[n]);e.prop(fU)&&(e[0][fU]=null,Se.triggerHandler(e,vg))}}),cp(vg,{noBubble:!0,setup:function(t){U(t).prop(fU,!0)}});var mU="dxComponents",f2=new WeakMap,Tft=0,qO=function(t,n){if(!Z(n)){if(!f2.has(t)){var e="dxPrivateComponent"+Tft++;return f2.set(t,e),e}return f2.get(t)}f2.set(t,n)};function nge(t,n,e){var i=zo(t.get(0)),r=qO(n.constructor);i[r]=n,e&&Se.one(t,vg,function(){e.call(n)}),i[mU]||(i[mU]=[]),i[mU].push(r)}function ige(t,n){var e=qO(n);return zo(t.get(0),e)}ege.add(function(t,n){U.fn[t]=function(e){var r,i="string"==typeof e;if(i){var o=e,a=[].slice.call(arguments).slice(1);this.each(function(){var s=n.getInstance(this);if(!s)throw Wr.Error("E0009",t);var u=s[o].apply(s,a);void 0===r&&(r=u)})}else this.each(function(){var s=n.getInstance(this);s?s.option(e):new n(this,e)}),r=this;return r}});const On=function(t,n,e){e?n[t]=e:e=n,qO(e,t),ege.fire(t,e)};class a_{constructor(){this.NAME="base"}defaultMessage(n){return ye.getFormatter("validation-".concat(this.NAME))(n)}defaultFormattedMessage(n){return ye.getFormatter("validation-".concat(this.NAME,"-formatted"))(n)}_isValueEmpty(n){return!YO.required.validate(n,{})}validate(n,e){var i=Array.isArray(n)?n:[n],r=!0;return i.length?i.every(o=>r=this._validate(o,e)):r=this._validate(null,e),r}}class rge extends a_{constructor(){super(),this.NAME="custom"}validate(n,e){if(e.ignoreEmptyValue&&this._isValueEmpty(n))return!0;var i=e.validator,r=i&&Yt(i.option)&&i.option("dataGetter"),o=Yt(r)&&r(),a={value:n,validator:i,rule:e};return o&&se(a,o),e.validationCallback(a)}}var YO={required:new class Mft extends a_{constructor(){super(),this.NAME="required"}_validate(n,e){return!(!Z(n)||!1===n)&&(n=String(n),(e.trim||!Z(e.trim))&&(n=n.trim()),""!==n)}},numeric:new class Aft extends a_{constructor(){super(),this.NAME="numeric"}_validate(n,e){return!(!1===e.ignoreEmptyValue||!this._isValueEmpty(n))||(e.useCultureSettings&&Pn(n)?!isNaN(Gr.parse(n)):di(n))}},range:new class Fft extends a_{constructor(){super(),this.NAME="range"}_validate(n,e){if(!1!==e.ignoreEmptyValue&&this._isValueEmpty(n))return!0;var i=YO.numeric.validate(n,e),r=Z(n)&&""!==n,o=i?parseFloat(n):r&&n.valueOf(),a=e.min,s=e.max;if(!i&&!Sa(n)&&!r)return!1;if(Z(a))return Z(s)?o>=a&&o<=s:o>=a;if(Z(s))return o<=s;throw Wr.Error("E0101")}},stringLength:new class Pft extends a_{constructor(){super(),this.NAME="stringLength"}_validate(n,e){var i;return n=String(null!==(i=n)&&void 0!==i?i:""),(e.trim||!Z(e.trim))&&(n=n.trim()),!(!e.ignoreEmptyValue||!this._isValueEmpty(n))||YO.range.validate(n.length,se({},e))}},custom:new rge,async:new class Rft extends rge{constructor(){super(),this.NAME="async"}validate(n,e){if(Z(e.reevaluate)||se(e,{reevaluate:!0}),e.ignoreEmptyValue&&this._isValueEmpty(n))return!0;var i=e.validator,r=i&&Yt(i.option)&&i.option("dataGetter"),o=Yt(r)&&r(),a={value:n,validator:i,rule:e};o&&se(a,o);var s=e.validationCallback(a);if(!dh(s))throw Wr.Error("E0103");return this._getWrappedPromise(ra(s).promise())}_getWrappedPromise(n){var e=new et;return n.then(function(i){e.resolve(i)},function(i){var r={isValid:!1};Z(i)&&(Pn(i)?r.message=i:Jn(i)&&Z(i.message)&&Pn(i.message)&&(r.message=i.message)),e.resolve(r)}),e.promise()}},compare:new class Lft extends a_{constructor(){super(),this.NAME="compare"}_validate(n,e){if(!e.comparisonTarget)throw Wr.Error("E0102");if(e.ignoreEmptyValue&&this._isValueEmpty(n))return!0;se(e,{reevaluate:!0});var i=e.comparisonTarget();switch(e.comparisonType||"=="){case"==":return n==i;case"!=":return n!=i;case"===":return n===i;case"!==":return n!==i;case">":return n>i;case">=":return n>=i;case"<":return n<i;case"<=":return n<=i}}},pattern:new class Bft extends a_{constructor(){super(),this.NAME="pattern"}_validate(n,e){if(!1!==e.ignoreEmptyValue&&this._isValueEmpty(n))return!0;var i=e.pattern;return Pn(i)&&(i=new RegExp(i)),i.test(n)}},email:new class Nft extends a_{constructor(){super(),this.NAME="email"}_validate(n,e){return!(!1===e.ignoreEmptyValue||!this._isValueEmpty(n))||YO.pattern.validate(n,se({},e,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}},Vft=ji.inherit({ctor(t){this.group=t,this.validators=[],this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo(),this._eventsStrategy=new Z0(this)},validate(){var t={isValid:!0,brokenRules:[],validators:[],status:"valid",complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),we(this.validators,(n,e)=>{var i=e.validate();t.isValid=t.isValid&&i.isValid,i.brokenRules&&(t.brokenRules=t.brokenRules.concat(i.brokenRules)),t.validators.push(e),"pending"===i.status&&this._addPendingValidator(e),this._subscribeToChangeEvents(e)}),this._pendingValidators.length?t.status="pending":(t.status=t.isValid?"valid":"invalid",this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(t)),this._updateValidationInfo(t),se({},this._validationInfo.result)},_subscribeToChangeEvents(t){t.on("validating",this._onValidatorStatusChanged),t.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents(t){t.off("validating",this._onValidatorStatusChanged),t.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents(){we(this.validators,(t,n)=>{this._unsubscribeFromChangeEvents(n)})},_updateValidationInfo(t){this._validationInfo.result=t,"pending"===t.status&&(this._validationInfo.deferred||(this._validationInfo.deferred=new et,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator(t){Vs(this._pendingValidators,function(e){return e===t})[0]||this._pendingValidators.push(t)},_removePendingValidator(t){var n=this._pendingValidators.indexOf(t);n>=0&&this._pendingValidators.splice(n,1)},_orderBrokenRules(t){var n=[];return we(this.validators,function(e,i){var r=Vs(t,function(o){return o.validator===i});r.length&&(n=n.concat(r))}),n},_updateBrokenRules(t){if(this._validationInfo.result){var n=this._validationInfo.result.brokenRules,e=Vs(n,function(i){return i.validator!==t.validator});t.brokenRules&&(n=e.concat(t.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(n)}},_onValidatorStatusChanged(t){"pending"!==t.status?this._resolveIfComplete(t):this._addPendingValidator(t.validator)},_resolveIfComplete(t){if(this._removePendingValidator(t.validator),this._updateBrokenRules(t),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?"valid":"invalid",this._validationInfo.result.isValid="valid"===this._validationInfo.result.status;var n=se({},this._validationInfo.result,{complete:null}),e=this._validationInfo.deferred;this._validationInfo.deferred=null,this._raiseValidatedEvent(n),e&&setTimeout(()=>{e.resolve(n)})}},_raiseValidatedEvent(t){this._eventsStrategy.fireEvent("validated",[t])},_resetValidationInfo(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator(t){var n=this.validators.indexOf(t);n>-1&&(this.validators.splice(n,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:t}))},registerValidator(t){this.validators.includes(t)||(this.validators.push(t),this._synchronizeValidationInfo())},reset(){we(this.validators,function(t,n){n.reset()}),this._pendingValidators=[],this._resetValidationInfo()},on(t,n){return this._eventsStrategy.on(t,n),this},off(t,n){return this._eventsStrategy.off(t,n),this}}),Yy={groups:[],getGroupConfig(t){var n=Vs(this.groups,function(e){return e.group===t});if(n.length)return n[0]},findGroup(t,n){var e,i,o=(null===(e=t.data())||void 0===e||null===(i=e.dxComponents)||void 0===i?void 0:i.includes("dxValidationGroup"))&&t.dxValidationGroup("instance");if(o)return o;var a=t.parents(".dx-validationgroup").first();return a.length?a.dxValidationGroup("instance"):n},initGroups(){this.groups=[],this.addGroup()},addGroup(t){var n=this.getGroupConfig(t);return n||(n=new Vft(t),this.groups.push(n)),n},removeGroup(t){var n=this.getGroupConfig(t),e=this.groups.indexOf(n);return e>-1&&this.groups.splice(e,1),n},_setDefaultMessage(t){var{rule:n,validator:e,name:i}=t;Z(n.message)||(n.message=e.defaultFormattedMessage&&Z(i)?e.defaultFormattedMessage(i):e.defaultMessage())},_addBrokenRule(t){var{result:n,rule:e}=t;n.brokenRule||(n.brokenRule=e),n.brokenRules||(n.brokenRules=[]),n.brokenRules.push(e)},validate(t,n,e){var i,r={name:e,value:t,brokenRule:null,brokenRules:null,isValid:!0,validationRules:n,pendingRules:null,status:"valid",complete:null},o=null==n||null===(i=n[0])||void 0===i?void 0:i.validator,a=[];return we(n||[],(s,l)=>{var f,u=YO[l.type];if(!u)throw Wr.Error("E0100");return Z(l.isValid)&&l.value===t&&!l.reevaluate?!!l.isValid||(r.isValid=!1,this._addBrokenRule({result:r,rule:l}),!1):(l.value=t,"async"===l.type?(a.push({rule:l,ruleValidator:u}),!0):(f=u.validate(t,l),l.isValid=f,f||(r.isValid=!1,this._setDefaultMessage({rule:l,validator:u,name:e}),this._addBrokenRule({result:r,rule:l})),!!l.isValid&&void 0))}),r.isValid&&!r.brokenRules&&a.length&&(r=this._validateAsyncRules({value:t,items:a,result:r,name:e})),this._synchronizeGroupValidationInfo(o,r),r.status=r.pendingRules?"pending":r.isValid?"valid":"invalid",r},_synchronizeGroupValidationInfo(t,n){var e;if(t){var i=Yy.getGroupConfig(t._validationGroup);i._updateBrokenRules.call(i,{validator:t,brokenRules:null!==(e=n.brokenRules)&&void 0!==e?e:[]})}},_validateAsyncRules(t){var{result:n,value:e,items:i,name:r}=t,o=[];return we(i,(a,s)=>{var l=s.ruleValidator.validate(e,s.rule);if(dh(l)){n.pendingRules||(n.pendingRules=[]),n.pendingRules.push(s.rule);var u=l.then(f=>{var S=this._getPatchedRuleResult(f);return this._updateRuleConfig({rule:s.rule,ruleResult:S,validator:s.ruleValidator,name:r}),S});o.push(u)}else this._updateRuleConfig({rule:s.rule,ruleResult:this._getPatchedRuleResult(l),validator:s.ruleValidator,name:r})}),o.length&&(n.complete=Promise.all(o).then(a=>this._getAsyncRulesResult({result:n,values:a}))),n},_updateRuleConfig(t){var{rule:n,ruleResult:e,validator:i,name:r}=t;n.isValid=e.isValid,e.isValid||(Z(e.message)&&Pn(e.message)&&e.message.length?n.message=e.message:this._setDefaultMessage({rule:n,validator:i,name:r}))},_getPatchedRuleResult(t){var n;return Jn(t)?(n=se({},t),Z(n.isValid)||(n.isValid=!0)):n={isValid:!Dy(t)||t},n},_getAsyncRulesResult(t){var{values:n,result:e}=t;return we(n,(i,r)=>{!1===r.isValid&&(e.isValid=r.isValid,this._addBrokenRule({result:e,rule:e.pendingRules[i]}))}),e.pendingRules=null,e.complete=null,e.status=e.isValid?"valid":"invalid",e},registerValidatorInGroup(t,n){var e=Yy.addGroup(t);e.registerValidator.call(e,n)},_shouldRemoveGroup:(t,n)=>!(void 0===t||t&&"dxValidationGroup"===t.NAME||n.length),removeRegisteredValidator(t,n){var e=Yy.getGroupConfig(t);e&&(e.removeRegisteredValidator.call(e,n),this._shouldRemoveGroup(t,e.validators)&&this.removeGroup(t))},initValidationOptions(t){var n={};return t&&["isValid","validationStatus","validationError","validationErrors"].forEach(e=>{e in t&&se(n,this.synchronizeValidationOptions({name:e,value:t[e]},t))}),n},synchronizeValidationOptions(t,n){var{name:e,value:i}=t;switch(e){case"validationStatus":var r="valid"===i||"pending"===i;return n.isValid!==r?{isValid:r}:{};case"isValid":var{validationStatus:o}=n,a=o;return i&&"invalid"===o?a="valid":!i&&"invalid"!==o&&(a="invalid"),a!==o?{validationStatus:a}:{};case"validationErrors":var s=i&&i.length?i[0]:null;return n.validationError!==s?{validationError:s}:{};case"validationError":var{validationErrors:l}=n;if(!i&&l)return{validationErrors:null};if(i&&!l)return{validationErrors:[i]};if(i&&l&&i!==l[0])return l[0]=i,{validationErrors:l.slice()}}return{}},validateGroup(t){var n=Yy.getGroupConfig(t);if(!n)throw Wr.Error("E0110");return n.validate()},resetGroup(t){var n=Yy.getGroupConfig(t);if(!n)throw Wr.Error("E0110");return n.reset()}};Yy.initGroups();const Uo=Yy;var ZO=Array.isArray;function m2(t){var n=typeof t;return"string"===n||"number"===n}function ao(t){return null==t}function XO(t){return null===t||!1===t||!0===t||void 0===t}function fa(t){return"function"==typeof t}function JO(t){return"string"==typeof t}function vd(t){return null===t}function zft(t){return void 0===t}function s_(t,n){var e={};if(t)for(var i in t)e[i]=t[i];if(n)for(var r in n)e[r]=n[r];return e}function _U(t){return!vd(t)&&"object"==typeof t}var ll={};function vU(t){return t.substr(2).toLowerCase()}function oge(t,n){t.appendChild(n)}function yU(t,n,e){vd(e)?oge(t,n):t.insertBefore(n,e)}function age(t,n){t.removeChild(n)}function sge(t){for(var n=0;n<t.length;n++)t[n]()}function jft(t,n,e){var i=t.children;return 4&e?i.$LI:8192&e?2===t.childFlags?i:i[n?0:i.length-1]:i}function Ch(t,n){for(var e;t;){if(2033&(e=t.flags))return t.dom;t=jft(t,n,e)}return null}function QO(t,n){do{var e=t.flags;if(2033&e)return void age(n,t.dom);var i=t.children;if(4&e&&(t=i.$LI),8&e&&(t=i),8192&e){if(2!==t.childFlags){for(var r=0,o=i.length;r<o;++r)QO(i[r],n);return}t=i}}while(t)}function lge(t,n,e){do{var i=t.flags;if(2033&i)return void yU(n,t.dom,e);var r=t.children;if(4&i&&(t=r.$LI),8&i&&(t=r),8192&i){if(2!==t.childFlags){for(var o=0,a=r.length;o<a;++o)lge(r[o],n,e);return}t=r}}while(t)}function uge(t,n,e){return t.constructor.getDerivedStateFromProps?s_(e,t.constructor.getDerivedStateFromProps(n,e)):e}var eT={v:!1},Dw={componentComparator:null,createVNode:null,renderComplete:null};function tT(t,n){t.textContent=n}function dge(t,n){return _U(t)&&t.event===n.event&&t.data===n.data}function cge(t,n){for(var e in n)zft(t[e])&&(t[e]=n[e]);return t}function CU(t,n){return!!fa(t)&&(t(n),!0)}function _2(t,n,e,i,r,o,a,s){this.childFlags=t,this.children=n,this.className=e,this.dom=null,this.flags=i,this.key=void 0===r?null:r,this.props=void 0===o?null:o,this.ref=void 0===a?null:a,this.type=s}function er(t,n,e,i,r,o,a,s){var l=void 0===r?1:r,u=new _2(l,i,e,t,a,o,s,n);return Dw.createVNode&&Dw.createVNode(u),0===l&&pge(u,u.children),u}function Wn(t,n,e,i,r){t=function qft(t,n){return 12&t?t:n.prototype&&n.prototype.render?4:n.render?32776:8}(t,n);var o=new _2(1,null,null,t,i,function $ft(t,n,e){var i=(32768&t?n.render:n).defaultProps;return ao(i)?e:ao(e)?s_(i,null):cge(e,i)}(t,n,e),function Kft(t,n,e){if(4&t)return e;var i=(32768&t?n.render:n).defaultHooks;return ao(i)?e:ao(e)?i:cge(e,i)}(t,n,r),n);return Dw.createVNode&&Dw.createVNode(o),o}function iT(t,n){return new _2(1,ao(t)||!0===t||!1===t?"":t,null,16,n,null,null,null)}function Pl(t,n,e){var i=er(8192,8192,null,t,n,null,e,null);switch(i.childFlags){case 1:i.children=v2(),i.childFlags=2;break;case 16:i.children=[iT(t)],i.childFlags=4}return i}function Nr(t){var n=t.props;if(n){var e=t.flags;481&e&&(void 0!==n.children&&ao(t.children)&&pge(t,n.children),void 0!==n.className&&(ao(t.className)&&(t.className=n.className||null),n.className=void 0)),void 0!==n.key&&(t.key=n.key,n.key=void 0),void 0!==n.ref&&(t.ref=8&e?s_(t.ref,n.ref):n.ref,n.ref=void 0)}return t}function ul(t){var n=-16385&t.flags,e=t.props;if(14&n&&!vd(e)){var i=e;for(var r in e={},i)e[r]=i[r]}return 8192&n?function Yft(t){var n=t.children,e=t.childFlags;return Pl(2===e?ul(n):n.map(ul),e,t.key)}(t):new _2(t.childFlags,t.children,t.className,n,t.key,e,t.ref,t.type)}function v2(){return iT("",null)}function hge(t,n,e,i){for(var r=t.length;e<r;e++){var o=t[e];if(!XO(o)){var a=i+"$"+e;if(ZO(o))hge(o,n,0,a);else{if(m2(o))o=iT(o,a);else{var s=o.key,l=JO(s)&&"$"===s[0];(81920&o.flags||l)&&(o=ul(o)),o.flags|=65536,l?s.substring(0,i.length)!==i&&(o.key=i+s):o.key=vd(s)?a:i+s}n.push(o)}}}}function Zft(t){switch(t){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}}function pge(t,n){var e,i=1;if(XO(n))e=n;else if(m2(n))i=16,e=n;else if(ZO(n)){for(var r=n.length,o=0;o<r;++o){var a=n[o];if(XO(a)||ZO(a)){e=e||n.slice(0,o),hge(n,e,o,"");break}if(m2(a))(e=e||n.slice(0,o)).push(iT(a,"$"+o));else{var s=a.key,l=(81920&a.flags)>0,u=vd(s),f=JO(s)&&"$"===s[0];l||u||f?(e=e||n.slice(0,o),(l||f)&&(a=ul(a)),(u||f)&&(a.key="$"+o),e.push(a)):e&&e.push(a),a.flags|=65536}}i=0===(e=e||n).length?1:8}else(e=n).flags|=65536,81920&n.flags&&(e=ul(n)),i=2;return t.children=e,t.childFlags=i,t}function rT(t){return XO(t)||m2(t)?iT(t,null):ZO(t)?Pl(t,0,null):16384&t.flags?ul(t):t}var Zy="http://www.w3.org/1999/xlink",bU="http://www.w3.org/XML/1998/namespace",gge={"xlink:actuate":Zy,"xlink:arcrole":Zy,"xlink:href":Zy,"xlink:role":Zy,"xlink:show":Zy,"xlink:title":Zy,"xlink:type":Zy,"xml:base":bU,"xml:lang":bU,"xml:space":bU};function y2(t){return{onClick:t,onDblClick:t,onFocusIn:t,onFocusOut:t,onKeyDown:t,onKeyPress:t,onKeyUp:t,onMouseDown:t,onMouseMove:t,onMouseUp:t,onTouchEnd:t,onTouchMove:t,onTouchStart:t}}var fge=y2(0),xU=y2(null),mge=y2(!0);function _ge(t,n){var e=n.$EV;return e||(e=n.$EV=y2(null)),e[t]||1==++fge[t]&&(xU[t]=function rmt(t){var n="onClick"===t||"onDblClick"===t?function nmt(t){return function(n){0===n.button?yge(n,!0,t,Cge(n)):n.stopPropagation()}}(t):function imt(t){return function(n){yge(n,!1,t,Cge(n))}}(t);return document.addEventListener(vU(t),n),n}(t)),e}function vge(t,n){var e=n.$EV;e&&e[t]&&(0==--fge[t]&&(document.removeEventListener(vU(t),xU[t]),xU[t]=null),e[t]=null)}function yge(t,n,e,i){var r=function Jft(t){return fa(t.composedPath)?t.composedPath()[0]:t.target}(t);do{if(n&&r.disabled)return;var o=r.$EV;if(o){var a=o[e];if(a&&(i.dom=r,a.event?a.event(a.data,t):a(t),t.cancelBubble))return}r=r.parentNode}while(!vd(r))}function Qft(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function emt(){return this.defaultPrevented}function tmt(){return this.cancelBubble}function Cge(t){var n={dom:document};return t.isDefaultPrevented=emt,t.isPropagationStopped=tmt,t.stopPropagation=Qft,Object.defineProperty(t,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function bge(t,n,e){if(t[n]){var i=t[n];i.event?i.event(i.data,e):i(e)}else{var r=n.toLowerCase();t[r]&&t[r](e)}}function oT(t,n){var e=function(i){var r=this.$V;if(r){var o=r.props||ll,a=r.dom;if(JO(t))bge(o,t,i);else for(var s=0;s<t.length;++s)bge(o,t[s],i);if(fa(n)){var l=this.$V;n(l.props||ll,a,!1,l)}}};return Object.defineProperty(e,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),e}function Xy(t,n,e){var i="$"+n,r=t[i];if(r){if(r[1].wrapped)return;t.removeEventListener(r[0],r[1]),t[i]=null}fa(e)&&(t.addEventListener(n,e),t[i]=[n,e])}function wU(t){return"checkbox"===t||"radio"===t}var amt=oT("onInput",SU),smt=oT(["onClick","onChange"],SU);function xge(t){t.stopPropagation()}function SU(t,n){var e=t.type,i=t.value,r=t.checked,o=t.multiple,a=t.defaultValue,s=!ao(i);e&&e!==n.type&&n.setAttribute("type",e),!ao(o)&&o!==n.multiple&&(n.multiple=o),!ao(a)&&!s&&(n.defaultValue=a+""),wU(e)?(s&&(n.value=i),ao(r)||(n.checked=r)):s&&n.value!==i?(n.defaultValue=i,n.value=i):ao(r)||(n.checked=r)}function aT(t,n){if("option"===t.type)!function umt(t,n){var e=t.props||ll,i=t.dom;i.value=e.value,e.value===n||ZO(n)&&-1!==n.indexOf(e.value)?i.selected=!0:(!ao(n)||!ao(e.selected))&&(i.selected=e.selected||!1)}(t,n);else{var e=t.children,i=t.flags;if(4&i)aT(e.$LI,n);else if(8&i)aT(e,n);else if(2===t.childFlags)aT(e,n);else if(12&t.childFlags)for(var r=0,o=e.length;r<o;++r)aT(e[r],n)}}xge.wrapped=!0;var dmt=oT("onChange",wge);function wge(t,n,e,i){var r=Boolean(t.multiple);!ao(t.multiple)&&r!==n.multiple&&(n.multiple=r);var o=t.selectedIndex;if(-1===o&&(n.selectedIndex=-1),1!==i.childFlags){var s=t.value;(function Hft(t){return"number"==typeof t})(o)&&o>-1&&n.options[o]&&(s=n.options[o].value),e&&ao(s)&&(s=t.defaultValue),aT(i,s)}}var hmt=oT("onInput",Sge),pmt=oT("onChange");function Sge(t,n,e){var i=t.value,r=n.value;if(ao(i)){if(e){var o=t.defaultValue;!ao(o)&&o!==r&&(n.defaultValue=o,n.value=o)}}else r!==i&&(n.defaultValue=i,n.value=i)}function Dge(t,n,e,i,r,o){64&t?SU(i,e):256&t?wge(i,e,r,n):128&t&&Sge(i,e,r),o&&(e.$V=n)}function Ege(t){return t.type&&wU(t.type)?!ao(t.checked):!ao(t.value)}function C2(t){t&&!CU(t,null)&&t.current&&(t.current=null)}function sT(t,n,e){t&&(fa(t)||void 0!==t.current)&&e.push(function(){!CU(t,n)&&void 0!==t.current&&(t.current=n)})}function hp(t,n){mm(t),QO(t,n)}function mm(t){var i,n=t.flags,e=t.children;if(481&n){var r=t.props;C2(i=t.ref);var o=t.childFlags;if(!vd(r))for(var a=Object.keys(r),s=0,l=a.length;s<l;s++){var u=a[s];mge[u]&&vge(u,t.dom)}12&o?lT(e):2===o&&mm(e)}else e&&(4&n?(fa(e.componentWillUnmount)&&e.componentWillUnmount(),C2(t.ref),e.$UN=!0,mm(e.$LI)):8&n?(!ao(i=t.ref)&&fa(i.onComponentWillUnmount)&&i.onComponentWillUnmount(Ch(t,!0),t.props||ll),mm(e)):1024&n?hp(e,t.ref):8192&n&&12&t.childFlags&&lT(e))}function lT(t){for(var n=0,e=t.length;n<e;++n)mm(t[n])}function b2(t){t.textContent=""}function x2(t,n,e){lT(e),8192&n.flags?QO(n,t):b2(t)}function DU(t,n,e,i,r,o,a){switch(t){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":i.autofocus=!!e;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":i[t]=!!e;break;case"defaultChecked":case"value":case"volume":if(o&&"value"===t)break;var s=ao(e)?"":e;i[t]!==s&&(i[t]=s);break;case"style":!function vmt(t,n,e){if(ao(n))e.removeAttribute("style");else{var r,o,i=e.style;if(JO(n))i.cssText=n;else if(ao(t)||JO(t))for(r in n)i.setProperty(r,o=n[r]);else{for(r in n)(o=n[r])!==t[r]&&i.setProperty(r,o);for(r in t)ao(n[r])&&i.removeProperty(r)}}}(n,e,i);break;case"dangerouslySetInnerHTML":!function ymt(t,n,e,i){var o=n&&n.__html||"";(t&&t.__html||"")!==o&&!ao(o)&&!function omt(t,n){var e=document.createElement("i");return e.innerHTML=n,e.innerHTML===t.innerHTML}(i,o)&&(vd(e)||(12&e.childFlags?lT(e.children):2===e.childFlags&&mm(e.children),e.children=null,e.childFlags=1),i.innerHTML=o)}(n,e,a,i);break;default:mge[t]?function Xft(t,n,e,i){if(fa(e))_ge(t,i)[t]=e;else if(_U(e)){if(dge(n,e))return;_ge(t,i)[t]=e}else vge(t,i)}(t,n,e,i):111===t.charCodeAt(0)&&110===t.charCodeAt(1)?function _mt(t,n,e,i){if(_U(e)){if(dge(n,e))return;e=function mmt(t){var n=t.event;return function(e){n(t.data,e)}}(e)}Xy(i,vU(t),e)}(t,n,e,i):ao(e)?i.removeAttribute(t):r&&gge[t]?i.setAttributeNS(gge[t],t,e):i.setAttribute(t,e)}}function Oge(t,n,e,i,r){var o=!1,a=(448&n)>0;for(var s in a&&(o=Ege(e))&&function fmt(t,n,e){64&t?function lmt(t,n){wU(n.type)?(Xy(t,"change",smt),Xy(t,"click",xge)):Xy(t,"input",amt)}(n,e):256&t?function cmt(t){Xy(t,"change",dmt)}(n):128&t&&function gmt(t,n){Xy(t,"input",hmt),n.onChange&&Xy(t,"change",pmt)}(n,e)}(n,i,e),e)DU(s,null,e[s],i,r,o,null);a&&Dge(n,t,i,e,!0,o)}function Tge(t,n,e){var i=rT(t.render(n,t.state,e)),r=e;return fa(t.getChildContext)&&(r=s_(e,t.getChildContext())),t.$CX=r,i}function Ige(t,n,e,i,r,o){var a=new n(e,i),s=a.$N=Boolean(n.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=r,a.$L=o,t.children=a,a.$BS=!1,a.context=i,a.props===ll&&(a.props=e),s)a.state=uge(a,e,a.state);else if(fa(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var l=a.$PS;if(!vd(l)){var u=a.state;if(vd(u))a.state=l;else for(var f in l)u[f]=l[f];a.$PS=null}a.$BR=!1}return a.$LI=Tge(a,e,i),a}function EU(t,n){var e=t.props||ll;return 32768&t.flags?t.type.render(e,t.ref,n):t.type(e,n)}function dl(t,n,e,i,r,o){var a=t.flags|=16384;481&a?Mge(t,n,e,i,r,o):4&a?function xmt(t,n,e,i,r,o){var a=Ige(t,t.type,t.props||ll,e,i,o);dl(a.$LI,n,a.$CX,i,r,o),Age(t.ref,a,o)}(t,n,e,i,r,o):8&a?(function wmt(t,n,e,i,r,o){dl(t.children=rT(EU(t,e)),n,e,i,r,o)}(t,n,e,i,r,o),Fge(t,o)):512&a||16&a?kge(t,n,r):8192&a?function bmt(t,n,e,i,r,o){var a=t.children,s=t.childFlags;12&s&&0===a.length&&(s=t.childFlags=2,a=t.children=v2()),2===s?dl(a,e,n,i,r,o):Jy(a,e,n,i,r,o)}(t,e,n,i,r,o):1024&a&&function Cmt(t,n,e,i,r){dl(t.children,t.ref,n,!1,null,r);var o=v2();kge(o,e,i),t.dom=o.dom}(t,e,n,r,o)}function kge(t,n,e){var i=t.dom=document.createTextNode(t.children);vd(n)||yU(n,i,e)}function Mge(t,n,e,i,r,o){var a=t.flags,s=t.props,l=t.className,u=t.childFlags,f=t.dom=function Wft(t,n){return n?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t)}(t.type,i=i||(32&a)>0),S=t.children;if(!ao(l)&&""!==l&&(i?f.setAttribute("class",l):f.className=l),16===u)tT(f,S);else if(1!==u){var T=i&&"foreignObject"!==t.type;2===u?(16384&S.flags&&(t.children=S=ul(S)),dl(S,f,e,T,null,o)):(8===u||4===u)&&Jy(S,f,e,T,null,o)}vd(n)||yU(n,f,r),vd(s)||Oge(t,a,s,f,i),sT(t.ref,f,o)}function Jy(t,n,e,i,r,o){for(var a=0;a<t.length;++a){var s=t[a];16384&s.flags&&(t[a]=s=ul(s)),dl(s,n,e,i,r,o)}}function Age(t,n,e){sT(t,n,e),fa(n.componentDidMount)&&e.push(function Smt(t){return function(){t.componentDidMount()}}(n))}function Fge(t,n){var e=t.ref;ao(e)||(CU(e.onComponentWillMount,t.props||ll),fa(e.onComponentDidMount)&&n.push(function Dmt(t,n){return function(){t.onComponentDidMount(Ch(n,!0),n.props||ll)}}(e,t)))}function _m(t,n,e,i,r,o,a){var s=n.flags|=16384;t.flags!==s||t.type!==n.type||t.key!==n.key||2048&s?16384&t.flags?function Emt(t,n,e,i,r,o){mm(t),n.flags&t.flags&2033?(dl(n,null,i,r,null,o),function Gft(t,n,e){t.replaceChild(n,e)}(e,n.dom,t.dom)):(dl(n,e,i,r,Ch(t,!0),o),QO(t,e))}(t,n,e,i,r,a):dl(n,e,i,r,o,a):481&s?function Mmt(t,n,e,i,r,o){var S,a=n.dom=t.dom,s=t.props,l=n.props,u=!1,f=!1;if(i=i||(32&r)>0,s!==l){var T=s||ll;if((S=l||ll)!==ll)for(var R in(u=(448&r)>0)&&(f=Ege(S)),S){var L=T[R],z=S[R];L!==z&&DU(R,L,z,a,i,f,t)}if(T!==ll)for(var j in T)ao(S[j])&&!ao(T[j])&&DU(j,T[j],null,a,i,f,t)}var Y=n.children,ie=n.className;t.className!==ie&&(ao(ie)?a.removeAttribute("class"):i?a.setAttribute("class",ie):a.className=ie),4096&r?function Tmt(t,n){t.textContent!==n&&(t.textContent=n)}(a,Y):OU(t.childFlags,n.childFlags,t.children,Y,a,e,i&&"foreignObject"!==n.type,null,t,o),u&&Dge(r,n,a,S,!1,f);var te=n.ref,re=t.ref;re!==te&&(C2(re),sT(te,a,o))}(t,n,i,r,s,a):4&s?function Pmt(t,n,e,i,r,o,a){var s=n.children=t.children;if(!vd(s)){s.$L=a;var l=n.props||ll,u=n.ref,f=t.ref,S=s.state;if(!s.$N){if(fa(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(l,i),s.$UN)return;s.$BR=!1}vd(s.$PS)||(S=s_(S,s.$PS),s.$PS=null)}Pge(s,S,l,e,i,r,!1,o,a),f!==u&&(C2(f),sT(u,s,a))}}(t,n,e,i,r,o,a):8&s?function Rmt(t,n,e,i,r,o,a){var s=!0,l=n.props||ll,u=n.ref,f=t.props,S=!ao(u),T=t.children;if(S&&fa(u.onComponentShouldUpdate)&&(s=u.onComponentShouldUpdate(f,l)),!1!==s){S&&fa(u.onComponentWillUpdate)&&u.onComponentWillUpdate(f,l);var R=rT(EU(n,i));_m(T,R,e,i,r,o,a),n.children=R,S&&fa(u.onComponentDidUpdate)&&u.onComponentDidUpdate(f,l)}else n.children=T}(t,n,e,i,r,o,a):16&s?function Lmt(t,n){var e=n.children,i=n.dom=t.dom;e!==t.children&&(i.nodeValue=e)}(t,n):512&s?n.dom=t.dom:8192&s?function Imt(t,n,e,i,r,o){var a=t.children,s=n.children,l=t.childFlags,u=n.childFlags,f=null;12&u&&0===s.length&&(u=n.childFlags=2,s=n.children=v2());var S=0!=(2&u);if(12&l){var T=a.length;(8&l&&8&u||S||!S&&s.length>T)&&(f=Ch(a[T-1],!1).nextSibling)}OU(l,u,a,s,e,i,r,f,t,o)}(t,n,e,i,r,a):function kmt(t,n,e,i){var r=t.ref,o=n.ref,a=n.children;if(OU(t.childFlags,n.childFlags,t.children,a,r,e,!1,null,t,i),n.dom=t.dom,r!==o&&!XO(a)){var s=a.dom;age(r,s),oge(o,s)}}(t,n,i,a)}function OU(t,n,e,i,r,o,a,s,l,u){switch(t){case 2:switch(n){case 2:_m(e,i,r,o,a,s,u);break;case 1:hp(e,r);break;case 16:mm(e),tT(r,i);break;default:!function Amt(t,n,e,i,r,o){mm(t),Jy(n,e,i,r,Ch(t,!0),o),QO(t,e)}(e,i,r,o,a,u)}break;case 1:switch(n){case 2:dl(i,r,o,a,s,u);break;case 1:break;case 16:tT(r,i);break;default:Jy(i,r,o,a,s,u)}break;case 16:switch(n){case 16:!function Omt(t,n,e){t!==n&&(""!==t?e.firstChild.nodeValue=n:tT(e,n))}(e,i,r);break;case 2:b2(r),dl(i,r,o,a,s,u);break;case 1:b2(r);break;default:b2(r),Jy(i,r,o,a,s,u)}break;default:switch(n){case 16:lT(e),tT(r,i);break;case 2:x2(r,l,e),dl(i,r,o,a,s,u);break;case 1:x2(r,l,e);break;default:var f=0|e.length,S=0|i.length;0===f?S>0&&Jy(i,r,o,a,s,u):0===S?x2(r,l,e):8===n&&8===t?function Nmt(t,n,e,i,r,o,a,s,l,u){var z,j,f=o-1,S=a-1,T=0,R=t[T],L=n[T];e:{for(;R.key===L.key;){if(16384&L.flags&&(n[T]=L=ul(L)),_m(R,L,e,i,r,s,u),t[T]=L,++T>f||T>S)break e;R=t[T],L=n[T]}for(R=t[f],L=n[S];R.key===L.key;){if(16384&L.flags&&(n[S]=L=ul(L)),_m(R,L,e,i,r,s,u),t[f]=L,S--,T>--f||T>S)break e;R=t[f],L=n[S]}}if(T>f){if(T<=S)for(j=(z=S+1)<a?Ch(n[z],!0):s;T<=S;)16384&(L=n[T]).flags&&(n[T]=L=ul(L)),++T,dl(L,e,i,r,j,u)}else if(T>S)for(;T<=f;)hp(t[T++],e);else!function Vmt(t,n,e,i,r,o,a,s,l,u,f,S,T){var R,L,z,j=0,Y=s,ie=s,te=o-s+1,re=a-s+1,he=new Int32Array(re+1),fe=te===i,Te=!1,Re=0,He=0;if(r<4||(te|re)<32)for(j=Y;j<=o;++j)if(R=t[j],He<re){for(s=ie;s<=a;s++)if(R.key===(L=n[s]).key){if(he[s-ie]=j+1,fe)for(fe=!1;Y<j;)hp(t[Y++],l);Re>s?Te=!0:Re=s,16384&L.flags&&(n[s]=L=ul(L)),_m(R,L,l,e,u,f,T),++He;break}!fe&&s>a&&hp(R,l)}else fe||hp(R,l);else{var Ze={};for(j=ie;j<=a;++j)Ze[n[j].key]=j;for(j=Y;j<=o;++j)if(R=t[j],He<re)if(void 0!==(s=Ze[R.key])){if(fe)for(fe=!1;j>Y;)hp(t[Y++],l);he[s-ie]=j+1,Re>s?Te=!0:Re=s,16384&(L=n[s]).flags&&(n[s]=L=ul(L)),_m(R,L,l,e,u,f,T),++He}else fe||hp(R,l);else fe||hp(R,l)}if(fe)x2(l,S,t),Jy(n,l,e,u,f,T);else if(Te){var at=function Hmt(t){var n=0,e=0,i=0,r=0,o=0,a=0,s=0,l=t.length;for(l>Rge&&(Rge=l,vm=new Int32Array(l),w2=new Int32Array(l));e<l;++e)if(0!==(n=t[e])){if(t[i=vm[r]]<n){w2[e]=i,vm[++r]=e;continue}for(o=0,a=r;o<a;)t[vm[s=o+a>>1]]<n?o=s+1:a=s;n<t[vm[o]]&&(o>0&&(w2[e]=vm[o-1]),vm[o]=e)}o=r+1;var u=new Int32Array(o);for(a=vm[o-1];o-- >0;)u[o]=a,a=w2[a],vm[o]=0;return u}(he);for(s=at.length-1,j=re-1;j>=0;j--)0===he[j]?(16384&(L=n[Re=j+ie]).flags&&(n[Re]=L=ul(L)),dl(L,l,e,u,(z=Re+1)<r?Ch(n[z],!0):f,T)):s<0||j!==at[s]?lge(L=n[Re=j+ie],l,(z=Re+1)<r?Ch(n[z],!0):f):s--}else if(He!==re)for(j=re-1;j>=0;j--)0===he[j]&&(16384&(L=n[Re=j+ie]).flags&&(n[Re]=L=ul(L)),dl(L,l,e,u,(z=Re+1)<r?Ch(n[z],!0):f,T))}(t,n,i,o,a,f,S,T,e,r,s,l,u)}(e,i,r,o,a,f,S,s,l,u):function Bmt(t,n,e,i,r,o,a,s,l){for(var S,T,u=o>a?a:o,f=0;f<u;++f)T=t[f],16384&(S=n[f]).flags&&(S=n[f]=ul(S)),_m(T,S,e,i,r,s,l),t[f]=S;if(o<a)for(f=u;f<a;++f)16384&(S=n[f]).flags&&(S=n[f]=ul(S)),dl(S,e,i,r,s,l);else if(o>a)for(f=u;f<o;++f)hp(t[f],e)}(e,i,r,o,a,f,S,s,u)}}}function Pge(t,n,e,i,r,o,a,s,l){var u=t.state,f=t.props,S=Boolean(t.$N),T=fa(t.shouldComponentUpdate);if(S&&(n=uge(t,e,n!==u?s_(u,n):n)),a||!T||T&&t.shouldComponentUpdate(e,n,r)){!S&&fa(t.componentWillUpdate)&&t.componentWillUpdate(e,n,r),t.props=e,t.state=n,t.context=r;var R=null,L=Tge(t,e,r);S&&fa(t.getSnapshotBeforeUpdate)&&(R=t.getSnapshotBeforeUpdate(f,u)),_m(t.$LI,L,i,t.$CX,o,s,l),t.$LI=L,fa(t.componentDidUpdate)&&function Fmt(t,n,e,i,r){r.push(function(){t.componentDidUpdate(n,e,i)})}(t,f,u,R,l)}else t.props=e,t.state=n,t.context=r}var vm,w2,Rge=0;function uT(t,n,e,i){void 0===e&&(e=null),void 0===i&&(i=ll),function Umt(t,n,e,i){var r=[],o=n.$V;eT.v=!0,ao(o)?ao(t)||(16384&t.flags&&(t=ul(t)),dl(t,n,i,!1,null,r),n.$V=t,o=t):ao(t)?(hp(o,n),n.$V=null):(16384&t.flags&&(t=ul(t)),_m(o,t,n,i,!1,null,r),o=n.$V=t),sge(r),eT.v=!1,fa(e)&&e(),fa(Dw.renderComplete)&&Dw.renderComplete(o,n)}(t,n,e,i)}typeof document<"u"&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var S2=[],Wmt=typeof Promise<"u"?Promise.resolve().then.bind(Promise.resolve()):function(t){window.setTimeout(t,0)},TU=!1;function Lge(t,n,e,i){var r=t.$PS;if(fa(n)&&(n=n(r?s_(t.state,r):t.state,t.props,t.context)),ao(r))t.$PS=n;else for(var o in n)r[o]=n[o];if(t.$BR)fa(e)&&t.$L.push(e.bind(t));else{if(!eT.v&&0===S2.length)return Nge(t,i),void(fa(e)&&e.call(t));if(-1===S2.indexOf(t)&&S2.push(t),i&&(t.$F=!0),TU||(TU=!0,Wmt(Bge)),fa(e)){var a=t.$QU;a||(a=t.$QU=[]),a.push(e)}}}function Gmt(t){for(var n=t.$QU,e=0;e<n.length;++e)n[e].call(t);t.$QU=null}function Bge(){var t;for(TU=!1;t=S2.shift();)if(!t.$UN){var n=t.$F;t.$F=!1,Nge(t,n),t.$QU&&Gmt(t)}}function Nge(t,n){if(n||!t.$BR){var e=t.$PS;t.$PS=null;var i=[];eT.v=!0,Pge(t,s_(t.state,e),t.props,Ch(t.$LI,!0).parentNode,t.context,t.$SVG,n,null,i),sge(i),eT.v=!1}else t.state=t.$PS,t.$PS=null}var dT=function(n,e){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=n||ll,this.context=e||ll};dT.prototype.forceUpdate=function(n){this.$UN||Lge(this,{},n,!0)},dT.prototype.setState=function(n,e){this.$UN||this.$BS||Lge(this,n,e,!1)},dT.prototype.render=function(n,e,i){return null};var IU=(t,n)=>{if(!n)throw Wr.Error("E0017");return Array.isArray(t)?t.map(e=>IU(e,n)).join(" "):-1!==t.indexOf(" ")?IU(t.split(/\s+/g),n):"".concat(t,".").concat(n)},Vge=function(t,n){if(!function Kmt(t){var n=U(t);return n.is(":visible")&&"hidden"!==n.css("visibility")&&"hidden"!==n.parents().css("visibility")}(t))return!1;var e=t.nodeName.toLowerCase(),i=!isNaN(n),r=t.disabled;return/^(input|select|textarea|button|object|iframe)$/.test(e)||t.isContentEditable?!r:"a"===e&&t.href||i},kU=function(t,n){return Vge(n,U(n).attr("tabIndex"))},MU=function(t,n){var e=U(n).attr("tabIndex");return(isNaN(e)||e>=0)&&Vge(n,e)},l_=function(t){var n=U(t).get(0);return It.getActiveElement(n)===n},$mt={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift"},qmt={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},Ymt={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},AU=t=>"dx"===Ew(t),zge=t=>"touch"===Ew(t),Ew=t=>{var{type:n}=t,e="other";return we(Ymt,function(i){if(this.test(n))return e=i,!1}),e},FU=t=>"pointer"===Ew(t),pp=t=>(t=>"mouse"===Ew(t))(t)||(FU(t)||AU(t))&&"mouse"===t.pointerType,Au=t=>t&&"dxmousewheel"===t.type,ym=t=>zge(t)||(FU(t)||AU(t))&&"touch"===t.pointerType,Po=t=>{var{pageX:n,pageY:e,timeStamp:i}=t;return{x:n,y:e,time:i}},Qy=(t,n)=>({x:n.x-t.x,y:n.y-t.y,time:n.time-t.time||1}),Uge=t=>{var{originalEvent:n,pointers:e}=t;return zge(t)?(n.touches||[]).length:AU(t)?(e||[]).length:0},Wge=t=>{var{target:n}=t,e=U(n),i=n?.isContentEditable||n?.hasAttribute("contenteditable"),r=e.is("input, textarea, select")||i;return Au(t)?!(e.is("textarea")&&e.hasClass("dx-texteditor-input")||i)&&e.is("input[type='number'], textarea, select")&&e.is(":focus"):pp(t)?r||t.which>1:ym(t)?r&&l_(e):void 0},u_=(t,n)=>{var e=(t=>Se.Event(t,t))(t);return n&&se(e,n),e},gp=t=>{var{originalEvent:n,delegateTarget:e}=t,i=u_(n,t);return Se.trigger(e||i.target,i),i},Wo=t=>{var{key:n,which:e}=t,i=$mt[n?.toLowerCase()]||n,r=qmt[e];return r&&i===n?r:!i&&e?String.fromCharCode(e):i},D2=t=>{var{key:n,which:e}=t;return n||String.fromCharCode(e)},kt=IU,Xo=t=>{var{ctrlKey:n,metaKey:e}=t;return n||e},Gge="compositionstart",RU="KeyboardProcessor",jge=t=>({keyName:Wo(t),key:t.key,code:t.code,ctrl:t.ctrlKey,location:t.location,metaKey:t.metaKey,shift:t.shiftKey,alt:t.altKey,which:t.which,originalEvent:t}),Kge=ji.inherit({_keydown:kt("keydown",RU),_compositionStart:kt(Gge,RU),_compositionEnd:kt("compositionend",RU),ctor:function(t){(t=t||{}).element&&(this._element=U(t.element)),t.focusTarget&&(this._focusTarget=t.focusTarget),this._handler=t.handler,this._element&&(this._processFunction=n=>{var e=U(this._focusTarget).toArray(),i=this._focusTarget&&this._focusTarget!==n.target&&!e.includes(n.target),r=this._isComposingJustFinished&&229===n.which||this._isComposing||i;this._isComposingJustFinished=!1,r||this.process(n)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),Se.on(this._element,this._keydown,this._processFunction),Se.on(this._element,this._compositionStart,this._toggleProcessingWithContext),Se.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(Se.off(this._element,this._keydown,this._processFunction),Se.off(this._element,this._compositionStart,this._toggleProcessingWithContext),Se.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(t){this._handler(jge(t))},toggleProcessing:function(t){var{type:n}=t;this._isComposing=n===Gge,this._isComposingJustFinished=!this._isComposing}});Kge.createKeyDownOptions=jge;const $ge=Kge,d_={lockCount:0,lock(){this.lockCount++},callbacks:[],callEffects(){if(this.lockCount--,this.lockCount<0)throw new Error("Unexpected Effect Call");if(0===this.lockCount){const t=this.callbacks;this.callbacks=[],t.forEach(n=>n())}}},LU=(t,n)=>{if(!(t instanceof Object&&n instanceof Object))return t===n;const i=Object.keys(t),r=Object.keys(n);return i.length===r.length&&!i.some(a=>t[a]!==n[a])};class so extends dT{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(n,e){this._pendingContext=e??{}}shouldComponentUpdate(n,e){return!LU(this.props,n)||!LU(this.state,e)||!LU(this.context,this._pendingContext)}}class Tc extends so{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){d_.lock()}componentWillUpdate(n,e,i){d_.lock()}componentDidMount(){d_.callbacks.push(()=>{this._effects=this.createEffects()}),d_.callEffects()}componentDidUpdate(){d_.callbacks.push(()=>this.updateEffects()),d_.callEffects()}destroyEffects(){this._effects.forEach(n=>n.dispose())}componentWillUnmount(){this.destroyEffects()}}class Kd extends Tc{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const n=this.vDomElement,e=n.className.length?n.className.split(" "):[],i=e.filter(o=>n.dxClasses.previous.indexOf(o)<0),r=n.dxClasses.previous.filter(o=>e.indexOf(o)<0);i.forEach(o=>{const a=n.dxClasses.removed.indexOf(o);a>-1?n.dxClasses.removed.splice(a,1):n.dxClasses.added.push(o)}),r.forEach(o=>{const a=n.dxClasses.added.indexOf(o);a>-1?n.dxClasses.added.splice(a,1):n.dxClasses.removed.push(o)})}componentDidMount(){const n=Ch(this.$LI,!0);this.vDomElement=n,super.componentDidMount(),n.dxClasses=n.dxClasses||{removed:[],added:[],previous:[]},n.dxClasses.previous=n?.className.length?n.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const n=this.vDomElement;null!==n&&(n.dxClasses.added.forEach(e=>n.classList.add(e)),n.dxClasses.removed.forEach(e=>n.classList.remove(e)),n.dxClasses.previous=n.className.length?n.className.split(" "):[])}shouldComponentUpdate(n,e){const i=super.shouldComponentUpdate(n,e);return i&&this.vDomUpdateClasses(),i}}let t0t=0;const BU=function(t){const n=t0t++;return{id:n,defaultValue:t,Provider:class extends dT{getChildContext(){return Object.assign(Object.assign({},this.context),{[n]:this.props.value||t})}render(){return this.props.children}}}};class yo{constructor(n,e){this.dependency=e,this.effect=n,this.destroy=n()}update(n){const e=this.dependency;n&&(this.dependency=n),(!n||n.some((i,r)=>e[r]!==i))&&(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const $d=()=>new yo(()=>{Bge()},[]);function Ow(t){return null===t}function qge(t,n,e,i,r,o){const a=t.childFlags,s=t.children,l=t.props,u=t.flags;if(1!==a){if(2===a)Ow(e)?dl(s,n,i,r,null,o):e=(e=cT(s,n,e,i,r,o))?e.nextSibling:null;else if(16===a)Ow(e)?n.appendChild(document.createTextNode(s)):1!==n.childNodes.length||3!==e.nodeType?n.textContent=s:e.nodeValue!==s&&(e.nodeValue=s),e=null;else if(12&a){let f=!1;for(let S=0,T=s.length;S<T;++S){const R=s[S];Ow(e)||f&&(16&R.flags)>0?dl(R,n,i,r,e,o):e=(e=cT(R,n,e,i,r,o))?e.nextSibling:null,f=(16&R.flags)>0}}if(!(8192&u)){let f=null;for(;e;)f=e.nextSibling,n.removeChild(e),e=f}}else!Ow(n.firstChild)&&!function u0t(t,n){return Boolean(n&&n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html&&function s0t(t,n){const e=document.createElement("i");return e.innerHTML=n,e.innerHTML===t.innerHTML}(t,n.dangerouslySetInnerHTML.__html))}(n,l)&&(n.textContent="",448&u&&(n.defaultValue=""))}function Yge(t,n,e){if(3!==e.nodeType)n.replaceChild(t.dom=document.createTextNode(t.children),e);else{const i=t.children;e.nodeValue!==i&&(e.nodeValue=i),t.dom=e}return t.dom}function cT(t,n,e,i,r,o){const a=t.flags|=16384;return 14&a?function d0t(t,n,e,i,r,o,a){const l=t.ref;let f;if(o){const S=Ige(t,t.type,t.props||ll,i,r,a);f=cT(S.$LI,n,e,S.$CX,r,a),Age(l,S,a)}else{const S=rT(EU(t,i));f=cT(S,n,e,i,r,a),t.children=S,Fge(t,a)}return f}(t,n,e,i,r,(4&a)>0,o):481&a?function c0t(t,n,e,i,r,o){const a=t.props,s=t.className,l=t.flags,u=t.ref;return r=r||(32&l)>0,1!==e.nodeType?(Mge(t,null,i,r,null,o),n.replaceChild(t.dom,e)):(t.dom=e,qge(t,e,e.firstChild,i,r,o),Ow(a)||Oge(t,l,a,e,r),function i0t(t){return null==t}(s)?""!==e.className&&e.removeAttribute("class"):r?e.setAttribute("class",s):e.className=s,sT(u,e,o)),t.dom}(t,n,e,i,r,o):16&a?Yge(t,n,e):512&a?t.dom=e:8192&a?function h0t(t,n,e,i,r,o){const a=t.children;return 2===t.childFlags?(Yge(a,n,e),a.dom):(qge(t,n,e,i,r,o),function l0t(t){let n,e;for(;t;){if(n=t.flags,2033&n)return t.dom;e=t.children,t=8192&n?2===t.childFlags?e:e[e.length-1]:4&n?e.$LI:e}return null}(a[a.length-1]))}(t,n,e,i,r,o):(function a0t(t){throw t||(t="a runtime error occured! Use Inferno in development environment to find the error."),new Error(`Inferno Error: ${t}`)}(),null)}function Zge(t){return null==t}function g0t(t){return"string"==typeof t}function Xge(t){return void 0===t}var f0t={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function E2(t,n,e){var r,u,i=arguments,o=null,a=null,s=null,l=0,f=arguments.length-2;if(1===f)r=e;else if(f>1)for(r=[];f-- >0;)r[f]=i[f+2];if(!g0t(t)){if(l=2,Xge(r)||(n||(n={}),n.children=r),!Zge(n))for(var T in u={},n)"key"===T?a=n.key:"ref"===T?o=n.ref:1===f0t[T]?(o||(o={}),o[T]=n[T]):u[T]=n[T];return Wn(l,t,u,a,o)}if(l=Zft(t),!Zge(n))for(var S in u={},n)"className"===S||"class"===S?s=n[S]:"key"===S?a=n.key:"children"===S&&Xge(r)?r=n.children:"ref"===S?o=n.ref:("contenteditable"===S&&(l|=4096),u[S]=n[S]);return 8192&l?Pl(1===f?[r]:r,0,a):er(l,t,s,r,0,u,a,o)}const y0t=new Set(["animationIterationCount","borderImageOutset","borderImageSlice","border-imageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","fillOpacity","flex","flexGrow","flexNegative","flexOrder","flexPositive","flexShrink","floodOpacity","fontWeight","gridColumn","gridRow","lineClamp","lineHeight","opacity","order","orphans","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),x0t=/[A-Z]/g;function yg(t){if(t instanceof Object)return Object.entries(t).reduce((n,[e,i])=>(n[(t=>t.replace(x0t,"-$&").toLowerCase())(e)]=(t=>"number"==typeof t||!Number.isNaN(Number(t)))(i)?((t,n)=>y0t.has(t)?n:`${n}px`)(e,i):i,n),{})}var Jge=t=>{var{parentNode:n}=t;n&&(FO(t),n.$V=t.$V,uT(null,n),n.appendChild(t),t.innerHTML="",delete n.$V),delete t.$V};const Tw=ch({createElement:(t,n)=>E2(t,n),remove:Jge,onAfterRender:()=>{d_.callEffects()},onPreRender:()=>{d_.lock()},render:(t,n,e,i)=>{if(i)uT(E2(t,n),e);else{var{parentNode:r}=e,o=e?.nextSibling,a=It.createElement("div");a.appendChild(e);var s=It.createDocumentFragment().appendChild(a);!!e.$V&&Jge(e),function p0t(t,n,e){let i=n.firstChild;if(Ow(i))uT(t,n,e);else{const r=[];for(function r0t(t){return null===t||!1===t||!0===t||void 0===t}(t)||(i=cT(t,n,i,{},!1,r));i&&(i=i.nextSibling);)n.removeChild(i);if(r.length>0){let o;for(;void 0!==(o=r.shift());)o()}}n.$V=t,function o0t(t){return"function"==typeof t}(e)&&e()}(E2(t,n),s),e.$V=s.$V,r&&r.insertBefore(e,o)}}});var S0t=function(){var t,n=Zi(),e=n.add,i=n.remove;if(!Rn())return n;var s,r=function(){var l=Fn();return{width:l.innerWidth,height:l.innerHeight}},o=function(){var u,l=r();l.width===t.width&&l.height===t.height||(l.width===t.width&&(u="height"),l.height===t.height&&(u="width"),t=l,n.fire(u))},a=up(function(){t=r()});return n.add=function(){var l=e.apply(n,arguments);return a(),gd.add(function(){!s&&n.has()&&(s=It.listen(Fn(),"resize",o))}),l},n.remove=function(){var l=i.apply(n,arguments);return!n.has()&&s&&(s(),s=void 0),l},n}();const fp=S0t;var Qge=function(t,n){return t=ns(t,!0),n=ns(n,!0),t&&n&&xc(t)&&xc(n)?n.is(t):!(t==t||n==n)||(0===t&&0===n?function(t,n){return 1/t==1/n}(t,n):!(null!==t&&"object"==typeof t&&!It.isElementNode(t))&&t===n)},E0t=Fn(),efe=function(){var t;try{t=E0t.sessionStorage}catch{}return t},O0t=gd.add,O2=Zi(),tfe=U(),bh=function(){var t;return function(n){if(!arguments.length)return t;var e=U(n);tfe=e;var i=!!e.length,r=bh();t=i?e:U("body"),O2.fire(i?bh():U(),r)}}();function nfe(){return tfe}O0t(function(){bh(".dx-viewport")});var T0t=cw(),ife=Fn(),I0t={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},rfe={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},k0t={generic(t){var n=/windows phone/i.test(t)||t.match(/WPDesktop/),e=!n&&/Windows(.*)arm(.*)Tablet PC/i.test(t),i=!n&&!e&&/msapphost/i.test(t),r=/((intel|ppc) mac os x)/.test(t.toLowerCase());if(n||e||i||r)return{deviceType:n?"phone":e?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:r}},ios(t){if(/ip(hone|od|ad)/i.test(t)){var n=/ip(hone|od)/i.test(t),e=t.match(/os (\d+)_(\d+)_?(\d+)?/i);return{deviceType:n?"phone":"tablet",platform:"ios",version:e?[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||0,10)]:[],grade:480===ife.screen.height?"B":"A"}}},android(t){if(/android|htc_|silk/i.test(t)){var n=/mobile/i.test(t),e=t.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),i=e?[parseInt(e[1],10),parseInt(e[2]||0,10),parseInt(e[3]||0,10)]:[];return{deviceType:n?"phone":"tablet",platform:"android",version:i,grade:i.length>1&&(i[0]<4||4===i[0]&&i[1]<4)?"B":"A"}}}},T2=new class M0t{constructor(n){this._window=n?.window||ife,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new Z0(this),this.changed=Zi(),Rn()&&(gd.add(this._recalculateOrientation.bind(this)),fp.add(this._recalculateOrientation.bind(this)))}current(n){if(n)return this._currentDevice=this._getDevice(n),this._forced=!0,void this.changed.fire();if(!this._currentDevice){n=void 0;try{n=this._getDeviceOrNameFromWindowScope()}catch{n=this._getDeviceNameFromSessionStorage()}finally{n||(n=this._getDeviceNameFromSessionStorage()),n&&(this._forced=!0)}this._currentDevice=this._getDevice(n)}return this._currentDevice}real(n){return se({},this._realDevice)}orientation(){return this._currentOrientation}isForced(){return this._forced}isRippleEmulator(){return!!this._window.tinyHippos}_getCssClasses(n){var e=[],i=this._realDevice;return(n=n||this.current()).deviceType&&(e.push("dx-device-".concat(n.deviceType)),"desktop"!==n.deviceType&&e.push("dx-device-mobile")),e.push("dx-device-".concat(i.platform)),i.version&&i.version.length&&e.push("dx-device-".concat(i.platform,"-").concat(i.version[0])),this.isSimulator()&&e.push("dx-simulator"),no().rtlEnabled&&e.push("dx-rtl"),e}attachCssClasses(n,e){this._deviceClasses=this._getCssClasses(e).join(" "),U(n).addClass(this._deviceClasses)}detachCssClasses(n){U(n).removeClass(this._deviceClasses)}isSimulator(){try{return this._isSimulator||Rn()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch{return!1}}forceSimulator(){this._isSimulator=!0}_getDevice(n){if("genericPhone"===n&&(n={deviceType:"phone",platform:"generic",generic:!0}),wi(n))return this._fromConfig(n);var e;if(n){if(!(e=I0t[n]))throw Wr.Error("E0005")}else e=T0t.userAgent;return this._fromUA(e)}_getDeviceOrNameFromWindowScope(){var n;return Rn()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(n=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),n}_getDeviceNameFromSessionStorage(){var n=efe();if(n){var e=n.getItem("dx-force-device");try{return JSON.parse(e)}catch{return e}}}_fromConfig(n){var e=se({},rfe,this._currentDevice,n);return se(e,{phone:"phone"===e.deviceType,tablet:"tablet"===e.deviceType,android:"android"===e.platform,ios:"ios"===e.platform,generic:"generic"===e.platform})}_fromUA(n){var e;return we(k0t,(i,r)=>!(e=r(n))),e?this._fromConfig(e):rfe}_changeOrientation(){var n=U(this._window),e=Ln(n)>wn(n)?"portrait":"landscape";this._currentOrientation!==e&&(this._currentOrientation=e,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:e}]))}_recalculateOrientation(){var n=wn(this._window);this._currentWidth!==n&&(this._currentWidth=n,this._changeOrientation())}on(n,e){return this._eventsStrategy.on(n,e),this}off(n,e){return this._eventsStrategy.off(n,e),this}},ofe=bh();ofe&&T2.attachCssClasses(ofe),O2.add((t,n)=>{T2.detachCssClasses(n),T2.attachCssClasses(t)});const pn=T2;var NU={},Iw=t=>{var n=pn.current();return t.reduce((e,i)=>{var{device:r,options:o}=i,a=r||{};return(Yt(a)?a(n):A0t(n,a))&&se(!0,e,o),e},{})},afe=(t,n)=>"string"!=typeof t?t:{[t]:n},A0t=(t,n)=>pa(n)||pde(t,[n]).length>0,VU=t=>t.substr(t.lastIndexOf(".")+1),sfe=t=>t.substr(0,t.lastIndexOf(".")),HU={},zU={};class R0t{constructor(n,e){this._options=n,this._optionsByReference=e}_setByReference(n,e){for(var i in se(!0,n,e),this._optionsByReference)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}_setPreparedValue(n,e,i,r){var o=this.get(this._options,n,!1);if(!Qge(o,e)){var a=Iy(n);!r&&this._changingCallback(n,o,e),zU[n]=zU[n]||ph(n),zU[n](this._options,e,{functionsAsIs:!0,merge:Z(i)?i:!this._optionsByReference[n],unwrapObservables:a.length>1&&!!this._optionsByReference[a[0]]}),!r&&this._changedCallback(n,e,o)}}_prepareRelevantNames(n,e,i,r){if(wi(i))for(var o in i)this._prepareRelevantNames(n,"".concat(e,".").concat(o),i[o]);this._namePreparedCallbacks(n,e,i,r)}get(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,e=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return HU[e]=HU[e]||Ai(e),HU[e](n,{functionsAsIs:!0,unwrapObservables:i})}set(n,e,i,r){for(var o in n=afe(n,e))this._prepareRelevantNames(n,o,n[o],r);for(var a in n)this._setPreparedValue(a,n[a],i,r)}onRelevantNamesPrepared(n){this._namePreparedCallbacks=n}onChanging(n){this._changingCallback=n}onChanged(n){this._changedCallback=n}dispose(){this._changingCallback=Be,this._changedCallback=Be}}class L0t{constructor(n,e,i,r){this._default=e,this._deprecated=r,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new R0t(n,i),this._optionManager.onRelevantNamesPrepared((o,a,s,l)=>this._setRelevantNames(o,a,s,l)),this._cachedOptions={},this._rules=[]}set _initial(n){this._initialOptions=n}get _initial(){if(!this._initialOptions){var n=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,n)}return this._initialOptions}_initDeprecatedNames(){for(var n in this._deprecated)this._deprecatedNames.push(n)}_getByRules(n){return n=Array.isArray(n)?this._rules.concat(n):this._rules,Iw(n)}_notifyDeprecated(n){var e=this._deprecated[n];e&&this._deprecatedCallback(n,e)}_setRelevantNames(n,e,i,r){if(e){var o=this._normalizeName(e,r);o&&o!==e&&(this._setField(n,o,i),this._clearField(n,e))}}_setField(n,e,i){var r="",o=null;do{r=r?".".concat(r):"",r=VU(e)+r,o=(e=sfe(e))?this._optionManager.get(n,e,!1):n}while(!o);o[r]=i}_clearField(n,e){delete n[e];var i=sfe(e),r=i?this._optionManager.get(n,i,!1):n;r&&delete r[VU(e)]}_normalizeName(n,e){if(this._deprecatedNames.length&&n)for(var i=0;i<this._deprecatedNames.length;i++)if(this._deprecatedNames[i]===n){var r=this._deprecated[n];if(r)return!e&&this._notifyDeprecated(n),r.alias||n}return n}addRules(n){this._rules=n.concat(this._rules)}applyRules(n){var e=this._getByRules(n);this.silent(e)}dispose(){this._deprecatedCallback=Be,this._startChangeCallback=Be,this._endChangeCallback=Be,this._optionManager.dispose()}onChanging(n){this._optionManager.onChanging(n)}onChanged(n){this._optionManager.onChanged(n)}onDeprecated(n){this._deprecatedCallback=n}onStartChange(n){this._startChangeCallback=n}onEndChange(n){this._endChangeCallback=n}isInitial(n){var e=this.silent(n),i=this.initial(n);return Yt(e)&&Yt(i)?e.toString()===i.toString():Tr(e,i)}initial(n){return function(t,n){return NU[n]=NU[n]||Ai(n),NU[n](t,{functionsAsIs:!0})}(this._initial,n)}option(n,e){if(arguments.length<2&&"object"!==Fa(n))return this._optionManager.get(void 0,this._normalizeName(n));this._startChangeCallback();try{this._optionManager.set(n,e)}finally{this._endChangeCallback()}}silent(n,e){if(arguments.length<2&&"object"!==Fa(n))return this._optionManager.get(void 0,n,void 0,!0);this._optionManager.set(n,e,void 0,!0)}reset(n){if(n){var i=Iy(n).reduce((o,a)=>o?o[a]:this.initial(a),null),r=Jn(i)?mt({},i):i;this._optionManager.set(n,r,!1)}}getAliasesByName(n){return Object.keys(this._deprecated).filter(e=>n===this._deprecated[e].alias)}isDeprecated(n){return Object.prototype.hasOwnProperty.call(this._deprecated,n)}cache(n,e){if(arguments.length<2)return this._cachedOptions[n];this._cachedOptions[n]=se(this._cachedOptions[n],e)}}let eC=(()=>{class t{constructor(e,i){i=i||{},this._action=e,this._context=i.context||Fn(),this._beforeExecute=i.beforeExecute,this._afterExecute=i.afterExecute,this._component=i.component,this._validatingTargetName=i.validatingTargetName;var r=this._excludeValidators={};if(i.excludeValidators)for(var o=0;o<i.excludeValidators.length;o++)r[i.excludeValidators[o]]=!0}execute(){var e={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},i=this._beforeExecute,r=this._afterExecute,o=e.args[0]||{};if(this._validateAction(e)&&(i?.call(this._context,e),!e.cancel)){var a=this._executeAction(e);if(!o.cancel)return r?.call(this._context,e),a}}_validateAction(e){var i=this._excludeValidators,{executors:r}=t;for(var o in r)if(!i[o]){var a,s=r[o];if(null===(a=s.validate)||void 0===a||a.call(s,e),e.cancel)return!1}return!0}_executeAction(e){var i,{executors:r}=t;for(var o in r){var a,s=r[o];if(null===(a=s.execute)||void 0===a||a.call(s,e),e.handled){i=e.result;break}}return i}static registerExecutor(e,i){wi(e)?we(e,t.registerExecutor):t.executors[e]=i}static unregisterExecutor(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];we(i,function(){delete t.executors[this]})}}return t.executors={},t})();var lfe=t=>n=>{if(n.args.length){var e=n.args[0],i=e[n.validatingTargetName]||e.element;i&&t(U(i))&&(n.cancel=!0)}};eC.registerExecutor({disabled:{validate:lfe(t=>t.is(".dx-state-disabled, .dx-state-disabled *"))},readOnly:{validate:lfe(t=>t.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)"))},undefined:{execute:t=>{t.action||(t.result=void 0,t.handled=!0)}},func:{execute:t=>{Yt(t.action)&&(t.result=t.action.call(t.context,t.args[0]),t.handled=!0)}}});class B0t{constructor(){this._postponedOperations={}}add(n,e,i){if(n in this._postponedOperations)i&&this._postponedOperations[n].promises.push(i);else{var r=new et;this._postponedOperations[n]={fn:e,completePromise:r,promises:i?[i]:[]}}return this._postponedOperations[n].completePromise.promise()}callPostponedOperations(){for(var n in this._postponedOperations){var e=this._postponedOperations[n];Z(e)&&(e.promises&&e.promises.length?Qt(...e.promises).done(e.fn).then(e.completePromise.resolve):e.fn().done(e.completePromise.resolve))}this._postponedOperations={}}}var ufe=t=>t.charAt(2).toLowerCase()+t.substr(3),N0t=t=>0===t.indexOf("_",0),kw=ji.inherit({_setDeprecatedOptions(){this._deprecatedOptions={}},_getDeprecatedOptions(){return this._deprecatedOptions},_getDefaultOptions:()=>({onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}),_defaultOptionsRules:()=>[],_setOptionsByDevice(t){this._options.applyRules(t)},_convertRulesToOptions:t=>Iw(t),_isInitialOptionValue(t){return this._options.isInitial(t)},_setOptionsByReference(){this._optionsByReference={}},_getOptionsByReference(){return this._optionsByReference},ctor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{_optionChangedCallbacks:n,_disposingCallbacks:e}=t;this.NAME=qO(this.constructor),this._eventsStrategy=Z0.create(this,t.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=n||Zi(),this._disposingCallbacks=e||Zi(),this.postponedOperations=new B0t,this._createOptions(t)},_createOptions(t){this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new L0t(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging((n,e,i)=>this._initialized&&this._optionChanging(n,e,i)),this._options.onDeprecated((n,e)=>this._logDeprecatedOptionWarning(n,e)),this._options.onChanged((n,e,i)=>this._notifyOptionChanged(n,e,i)),this._options.onStartChange(()=>this.beginUpdate()),this._options.onEndChange(()=>this.endUpdate()),this._options.addRules(this._defaultOptionsRules()),t&&t.onInitializing&&t.onInitializing.apply(this,[t]),this._setOptionsByDevice(t.defaultOptionsRules),this._initOptions(t)}finally{this.endUpdate()}},_initOptions(t){this.option(t)},_init(){this._createOptionChangedAction(),this.on("disposing",t=>{this._disposingCallbacks.fireWith(this,[t])})},_logDeprecatedOptionWarning(t,n){var e=n.message||"Use the '".concat(n.alias,"' option instead");Wr.log("W0001",this.NAME,t,n.since,e)},_logDeprecatedComponentWarning(t,n){Wr.log("W0000",this.NAME,t,"Use the '".concat(n,"' widget instead"))},_createOptionChangedAction(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged(t){switch(t.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate(){this._updateLockCount++},_unlockUpdate(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed(){return 0===this._updateLockCount},_isInitializingRequired(){return!this._initializing&&!this._initialized},isInitialized(){return this._initialized},_commitUpdate(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:Be,_notifyOptionChanged(t,n,e){if(this._initialized)for(var i=[t].concat(this._options.getAliasesByName(t)),r=0;r<i.length;r++){var o=i[r],a={name:Iy(o)[0],fullName:o,value:n,previousValue:e};N0t(o)||(this._optionChangedCallbacks.fireWith(this,[se(this._defaultActionArgs(),a)]),this._optionChangedAction(se({},a))),!this._disposed&&this._cancelOptionChange!==o&&this._optionChanged(a)}},initialOption(t){return this._options.initial(t)},_defaultActionConfig(){return{context:this,component:this}},_defaultActionArgs(){return{component:this}},_createAction(t,n){var e;return i=>(Z(i)||(i={}),wi(i)||(i={actionValue:i}),(e=e||new eC(t,se(n,this._defaultActionConfig()))).execute.call(e,se(i,this._defaultActionArgs())))},_createActionByOption(t,n){var i,r,o,e=this,a=function(){if(!r){if(n=n||{},"string"!=typeof t)throw Wr.Error("E0008");0===t.indexOf("on")&&(r=ufe(t)),o=e.option(t)}if(i||o||n.beforeExecute||n.afterExecute||e._eventsStrategy.hasEvent(r)){if(!i){var l=n.beforeExecute;n.beforeExecute=function(){for(var L=arguments.length,z=new Array(L),j=0;j<L;j++)z[j]=arguments[j];l&&l.apply(e,z),e._eventsStrategy.fireEvent(r,z[0].args)},i=e._createAction(o,n)}for(var u=arguments.length,f=new Array(u),S=0;S<u;S++)f[S]=arguments[S];if(no().wrapActionsBeforeExecute){var T=e.option("beforeActionExecute")||Be,R=T(e,i,n)||i;return R.apply(e,f)}return i.apply(e,f)}};return no().wrapActionsBeforeExecute?a:(this.option("onActionCreated")||Be)(this,a,n)||a},on(t,n){return this._eventsStrategy.on(t,n),this},off(t,n){return this._eventsStrategy.off(t,n),this},hasActionSubscription:function(t){return!!this._options.silent(t)||this._eventsStrategy.hasEvent(ufe(t))},isOptionDeprecated(t){return this._options.isDeprecated(t)},_setOptionWithoutOptionChange(t,n){this._cancelOptionChange=t,this.option(t,n),this._cancelOptionChange=!1},_getOptionValue(t,n){var e=this.option(t);return Yt(e)?e.bind(n)():e},option(){return this._options.option(...arguments)},resetOption(t){this.beginUpdate(),this._options.reset(t),this.endUpdate()}}),UU=Fn(),Mw=()=>{var n,t=It.getActiveElement();t&&t!==It.getBody()&&(null===(n=t.blur)||void 0===n||n.call(t))},H0t=(t,n)=>{var e=U(t),i=U(n);if(e[0]===i[0])return e[0];for(var r=e.parents(),o=i.parents(),s=-Math.min(r.length,o.length);s<0;s++)if(r.get(s)===o.get(s))return r.get(s)},tC=t=>{var n=(t=U(t)).length&&t.filter(function(){var e=U(this);return e.is("script[type]")&&e.attr("type").indexOf("script")<0});return n.length?n.eq(0).html():(t=U("<div>").append(t)).html()},I2=t=>{var n=Z(t)&&(t.nodeType||xc(t))?U(t):U("<div>").html(t).contents();return 1===n.length&&(n.is("script")?n=I2(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},WU=(t,n)=>{var e=t.originalEvent&&t.originalEvent.clipboardData||UU.clipboardData;if(!n)return e&&e.getData("Text");e&&e.setData("Text",n)},Cg=(t,n)=>!!n&&(It.isTextNode(n)&&(n=n.parentNode),It.isDocument(t)?t.documentElement.contains(n):Da(t)?Cg(t.document,n):t.contains?t.contains(n):!!(n.compareDocumentPosition(t)&n.DOCUMENT_POSITION_CONTAINS)),dfe=(t,n,e)=>{var i=UU.getComputedStyle(U(t).get(0)),r=e&&e.includePaddings;return U("<div>").text(n).css({fontStyle:i.fontStyle,fontVariant:i.fontVariant,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFamily:i.fontFamily,letterSpacing:i.letterSpacing,border:i.border,paddingTop:r?i.paddingTop:"",paddingRight:r?i.paddingRight:"",paddingBottom:r?i.paddingBottom:"",paddingLeft:r?i.paddingLeft:"",visibility:"hidden",whiteSpace:"pre",position:"absolute",float:"left"})},cfe=(t,n)=>{if(n&&n[0])return n.is(t)?t:(we(n,(e,i)=>{((t,n)=>{n&&It.insertElement(t.parentNode,n,t)})(t[0],i)}),t.remove(),n)},k2=t=>{var n=t?.get(0),e=n?.getRootNode().host;return!!U(e||n).closest(Fn().document).length},GU=function(t){return function(n){for(var e=U(n||"body"),i=e.filter(".dx-visibility-change-handler").add(e.find(".dx-visibility-change-handler")),r=0;r<i.length;r++)Se.triggerHandler(i[r],t)}},M2=GU("dxshown"),U0t=GU("dxhiding"),qd=GU("dxresize"),W0t=Zi({syncStrategy:!0});class nC{render(n){var i,e=(n=n||{}).onRendered;return delete n.onRendered,i=n.renovated&&n.transclude&&this._element?U("<div>").append(this._element).contents():this._renderCore(n),this._ensureResultInContainer(i,n.container),W0t.fire(i,n.container),e&&e(),i}_ensureResultInContainer(n,e){if(e){var i=U(e),r=Cg(i.get(0),n.get(0));i.append(n),r||It.getBody().contains(i.get(0))&&M2(n)}}_renderCore(){throw Wr.Error("E0001")}}class bg extends nC{constructor(n){super(),this._render=n}_renderCore(n){return I2(this._render(n))}}class xh extends nC{_renderCore(){return U()}}class hT extends nC{constructor(n){super(),this.name=n}}var A2,hfe={};function c_(t,n){hfe[t]=n}function pfe(){return A2}c_("jquery-tmpl",{compile:t=>tC(t),render:(t,n)=>jQuery.tmpl(t,n)}),c_("jsrender",{compile:t=>(jQuery||jsrender).templates(tC(t)),render:(t,n)=>t.render(n)}),c_("mustache",{compile:t=>tC(t),render:(t,n)=>Mustache.render(t,n)}),c_("hogan",{compile:t=>Hogan.compile(tC(t)),render:(t,n)=>t.render(n)}),c_("underscore",{compile:t=>_.template(tC(t)),render:(t,n)=>t(n)}),c_("handlebars",{compile:t=>Handlebars.compile(tC(t)),render:(t,n)=>t(n)}),c_("doT",{compile:t=>doT.template(tC(t)),render:(t,n)=>t(n)}),c_("default",{compile:t=>I2(t),render:(t,n,e)=>t.clone()}),function G0t(t){if(Pn(t)){if(!(A2=hfe[t]))throw Wr.Error("E0020",t)}else A2=t}("default");class j0t extends nC{constructor(n){super(),this._element=n}_renderCore(n){var e=n.transclude;return!e&&!this._compiledTemplate&&(this._compiledTemplate=pfe().compile(this._element)),U("<div>").append(e?this._element:pfe().render(this._compiledTemplate,n.model,n.index)).contents()}source(){return U(this._element).clone()}}function gfe(t){return t.reduce((n,e)=>{var i;return n[e]=(null!==(i=n[e])&&void 0!==i?i:0)+1,n},{})}var mp=function(t){return Array.isArray(t)?t:[t]},jU=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=gfe(n);return t.filter(i=>!e[i]--)},Aw=function(t,n,e,i){var r={},{useLegacyVisibleIndex:o}=no(),a=0,s=l=>!Z(l[n])&&(!i||i(l));t.forEach(l=>{var u=l[n];u>=0?(r[u]=r[u]||[],l===e?r[u].unshift(l):r[u].push(l)):l[n]=void 0}),o||t.forEach(l=>{if(s(l)){for(;r[a];)a++;r[a]=[l],a++}}),a=0,q7(r,function(l,u){u.forEach(f=>{l>=0&&(f[n]=a++)})}),o&&t.forEach(l=>{s(l)&&(l[n]=a++)})},ffe=(t,n)=>{var e=U(t).contents().filter("[".concat("data-options",'*="').concat(n,'"]'));return[].slice.call(e).map(i=>{var r=U(i).attr("data-options")||"";return{element:i,options:no().optionsParser(r)[n]}}).filter(i=>!!i.options)},mfe=t=>{var n=t.render.bind(t);return se({},t,{render(e){var i=n(e);return e&&e.onRendered&&e.onRendered(),i}})},_fe=t=>xc(t)&&t[0]||t,J0t=t=>new j0t(t),vfe=(t,n,e,i,r,o)=>null==t?new xh:t instanceof hT?o[t.name]:t instanceof nC?t:Yt(t.render)&&!xc(t)?i?t:mfe(t):t.nodeType||xc(t)?n(U(t)):((t,n,e,i)=>{var r=null;return(!i||-1===i.indexOf(t))&&(r=n[t])&&!(r instanceof nC)&&!e&&(r=mfe(r)),r})(t,e,i,r)||o[t]||n(t),r_t=new bg(t=>{var{model:n,parent:e}=t,i=n.widget;if(!i)return U();var r=U("<div>"),o=n.options||{};return e?e._createComponent(r,i,o):r[i](o),r});class yfe{constructor(n,e){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=e||"template",this._createElement=n||J0t,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}static createDefaultOptions(){return{integrationOptions:{watchMethod:function(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.skipImmediate||e(n()),Be},templates:{"dx-polymorph-widget":r_t},useDeferUpdateForTemplates:!0}}}get anonymousTemplateName(){return this._anonymousTemplateName}addDefaultTemplates(n){this._defaultTemplates=se({},this._defaultTemplates,n)}dispose(){this._tempTemplates.forEach(n=>{n.template.dispose&&n.template.dispose()}),this._tempTemplates=[]}extractTemplates(n){return{templates:this._extractTemplates(n),anonymousTemplateMeta:this._extractAnonymousTemplate(n)}}_extractTemplates(n){var e=ffe(n,"dxTemplate"),i=(t=>{var n=((t,n)=>t.reduce((e,i)=>{var r,o=(i=>i.options.name)(i);return e[o]=null!==(r=e[o])&&void 0!==r?r:[],e[o].push(i),e},{}))(t);if(n[void 0])throw Wr.Error("E0023");var e={};return Object.keys(n).forEach(i=>{var r,o=null===(r=pde(pn.current(),n[i],a=>a.options)[0])||void 0===r?void 0:r.element;o&&(e[i]=o)}),e})(e);return e.forEach(r=>{var{element:o,options:{name:a}}=r;o===i[a]?U(o).addClass("dx-template-wrapper").detach():U(o).remove()}),Object.keys(i).map(r=>({name:r,template:this._createTemplate(i[r])}))}_extractAnonymousTemplate(n){var e=n.contents().detach();return e.filter((r,o)=>{var a=3===o.nodeType,s=U(o).text().trim().length<1;return!(a&&s)}).length>0?{template:this._createTemplate(e),name:this._anonymousTemplateName}:{}}_createTemplateIfNeeded(n){var e=this._tempTemplates.filter(r=>r.source===_fe(n))[0];if(e)return e.template;var i=this._createTemplate(n);return this._tempTemplates.push({template:i,source:_fe(n)}),i}_createTemplate(n){return this._createElement((t=>"string"==typeof t?I2(t):t)(n))}getTemplate(n,e,i,r){var{isAsyncTemplate:o,skipTemplates:a}=i;return Yt(n)?new bg(s=>{var l=n.apply(r,(t=>{var n=[];return"model"in t&&n.push(t.model),"index"in t&&n.push(t.index),n.push(t.container),n})(s));if(!Z(l))return new xh;var u=!1,f=vfe(l,T=>T.nodeType||xc(T)&&!U(T).is("script")?new bg(()=>T):(u=!0,this._createTemplate(T)),e,o,a,this._defaultTemplates),S=f.render(s);return u&&f.dispose&&f.dispose(),S}):vfe(n,this._createTemplateIfNeeded,e,o,a,this._defaultTemplates)}}function kn(t){return function(t){return t&&t.get(0)}(t)}function gs(t,n){return n?kt(t,n):t}function KU(t,n){return"function"==typeof t?t(n):t.execute(n)}var F2_on=function(t,n){var{namespace:e}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Se.on(t,gs("dxresize",e),n)},F2_off=function(t){var{namespace:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Se.off(t,gs("dxresize",n))},P2_on=(t,n,e,i)=>{var{namespace:r}=i;Se.on(t,gs("dxhiding",r),e),Se.on(t,gs("dxshown",r),n)},P2_off=(t,n)=>{var{namespace:e}=n;Se.off(t,gs("dxhiding",e)),Se.off(t,gs("dxshown",e))},R2_trigger=t=>Se.trigger(t,"focus"),o_t=0,pT={},Cm_on=(t,n,e)=>{var i="keyboardProcessorId".concat(o_t++);return pT[i]=new $ge({element:t,focusTarget:n,handler:e}),i},Cm_off=t=>{t&&pT[t]&&(pT[t].dispose(),delete pT[t])},{abstract:L2}=kw,$U=kw.inherit({_getDefaultOptions(){return se(this.callBase(),{width:void 0,height:void 0,rtlEnabled:no().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?yfe.createDefaultOptions():{})},ctor(t,n){this._customClass=null,this._createElement(t),nge(this._$element,this,this._dispose),this.callBase(n)},_createElement(t){this._$element=U(t)},_getSynchronizableOptionsForCreateComponent:()=>["rtlEnabled","disabled","templatesRenderAsynchronously"],_checkFunctionValueDeprecation:function(t){this.option("_ignoreFunctionValueDeprecation")||t.forEach(n=>{Yt(this.option(n))&&Wr.log("W0017",n)})},_visibilityChanged:L2,_dimensionChanged:L2,_init(){this.callBase(),this._checkFunctionValueDeprecation(["width","height","maxHeight","maxWidth","minHeight","minWidth","popupHeight","popupWidth"]),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice(t){this.callBase([].concat(this.constructor._classCustomRules||[],t||[]))},_isInitialOptionValue(t){return!(this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),t))&&this.callBase(t)},_attachWindowResizeCallback(){if(this._isDimensionChangeSupported()){var t=this._windowResizeCallBack=this._dimensionChanged.bind(this);fp.add(t)}},_isDimensionChangeSupported(){return this._dimensionChanged!==L2},_renderComponent(){this._initMarkup(),Rn()&&this._render()},_initMarkup(){var{rtlEnabled:t}=this.option()||{};this._renderElementAttributes(),this._toggleRTLDirection(t),this._renderVisibilityChange(),this._renderDimensions()},_render(){this._attachVisibilityChangeHandlers(),function Yit(t){var n,e=t.get(0),i=null===(n=e.getRootNode)||void 0===n?void 0:n.call(e);if(null!=i&&i.host){NP||Tce(NP=Oce(i),e.ownerDocument.styleSheets,!1);var r=Oce(i);Tce(r,i.styleSheets,!0),i.adoptedStyleSheets=[NP,r]}}(this.$element())},_renderElementAttributes(){var{elementAttr:t}=this.option()||{},n=se({},t),e=n.class;delete n.class,this.$element().attr(n).removeClass(this._customClass).addClass(e),this._customClass=e},_renderVisibilityChange(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions(){var t=this.$element(),n=t.get(0),e=this._getOptionValue("width",n),i=this._getOptionValue("height",n);this._isCssUpdateRequired(n,i,e)&&t.css({width:null===e?"":e,height:null===i?"":i})},_isCssUpdateRequired:(t,n,e)=>!!(Z(e)||Z(n)||t.style.width||t.style.height),_attachDimensionChangeHandlers(){var t=this.$element(),n="".concat(this.NAME,"VisibilityChange");F2_off(t,{namespace:n}),F2_on(t,()=>this._dimensionChanged(),{namespace:n})},_attachVisibilityChangeHandlers(){if(this._isVisibilityChangeSupported()){var t=this.$element(),n="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),P2_off(t,{namespace:n}),P2_on(t,()=>this._checkVisibilityChanged("shown"),()=>this._checkVisibilityChanged("hiding"),{namespace:n})}},_isVisible(){return this.$element().is(":visible")},_checkVisibilityChanged(t){this._isVisible()&&("hiding"!==t||this._isHidden?"shown"===t&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported(){return this._visibilityChanged!==L2&&Rn()},_clean:Be,_modelByElement(){var{modelByElement:t}=this.option(),n=this.$element();return t?t(n):void 0},_invalidate(){if(this._isUpdateAllowed())throw Wr.Error("E0007");this._requireRefresh=!0},_refresh(){this._clean(),this._renderComponent()},_dispose(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback(){this._isDimensionChangeSupported()&&fp.remove(this._windowResizeCallBack)},_toggleRTLDirection(t){this.$element().toggleClass("dx-rtl",t)},_createComponent(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Vs(this._getSynchronizableOptionsForCreateComponent(),f=>!(f in e)),{integrationOptions:r}=this.option(),{nestedComponentOptions:o}=this.option(),a=se({integrationOptions:r},(o=o||Be)(this));i.forEach(f=>a[f]=this.option(f)),this._extendConfig(e,a);var s=void 0;if(Pn(n)){var l=U(t)[n](e);s=l[n]("instance")}else t&&((s=n.getInstance(t))?s.option(e):s=new n(t,e));if(s){var u=f=>{var{name:S,value:T}=f;i.includes(S)&&s.option(S,T)};this.on("optionChanged",u),s.on("disposing",()=>this.off("optionChanged",u))}return s},_extendConfig(t,n){we(n,(e,i)=>{!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=i)})},_defaultActionConfig(){var t=this.$element(),n=this._modelByElement(t);return se(this.callBase(),{context:n})},_defaultActionArgs(){var t=this.$element(),n=this._modelByElement(t),e=this.element();return se(this.callBase(),{element:e,model:n})},_optionChanged(t){switch(t.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(t)}},_removeAttributes(t){for(var n=t.attributes,e=n.length-1;e>=0;e--){var i=n[e];if(i){var{name:r}=i;(!r.indexOf("aria-")||-1!==r.indexOf("dx-")||"role"===r||"style"===r||"tabindex"===r)&&t.removeAttribute(r)}}},_removeClasses(t){t.className=t.className.split(" ").filter(n=>0!==n.lastIndexOf("dx-",0)).join(" ")},_updateDOMComponent(t){t?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate(){var t=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(t)},$element(){return this._$element},element(){return kn(this.$element())},dispose(){var t=this.$element().get(0);FO(t,!0),t.textContent="",this._removeAttributes(t),this._removeClasses(t)},resetOption(t){if(this.callBase(t),"width"===t||"height"===t){var n=this.initialOption(t);!Z(n)&&this.$element().css(t,"")}},_getAnonymousTemplateName(){},_initTemplateManager(){if(!this._templateManager&&this._useTemplates()){var{integrationOptions:t={}}=this.option(),{createTemplate:n}=t;this._templateManager=new yfe(n,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates(){var{templates:t,anonymousTemplateMeta:n}=this._templateManager.extractTemplates(this.$element()),e=this.option("integrationOptions.templates.".concat(n.name));t.forEach(i=>{var{name:r,template:o}=i;this._options.silent("integrationOptions.templates.".concat(r),o)}),n.name&&!e&&(this._options.silent("integrationOptions.templates.".concat(n.name),n.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption(t){return this._getTemplate(this.option(t))},_getTemplate(t){var n=this.option("integrationOptions.templates"),e=this.option("templatesRenderAsynchronously"),i=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(t,n,{isAsyncTemplate:e,skipTemplates:i},this)},_saveTemplate(t,n){this._setOptionWithoutOptionChange("integrationOptions.templates."+t,this._templateManager._createTemplate(n))},_useTemplates:()=>!0});$U.getInstance=function(t){return ige(U(t),this)},$U.defaultOptions=function(t){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(t)};const Ic=$U;class Dfe extends Tc{constructor(n){super(n),this.renderTemplate=this.renderTemplate.bind(this)}renderTemplate(){var n,e=Ch(this.$LI,!0),i=e.parentNode,r=U(i),o=r.contents(),{data:a,index:s}=null!==(n=this.props.model)&&void 0!==n?n:{data:{}};a&&Object.keys(a).forEach(u=>{a[u]&&It.isNode(a[u])&&(a[u]=kn(U(a[u])))});var l=U(this.props.template.render(mt({container:kn(r),transclude:this.props.transclude},{renovated:this.props.renovated},this.props.transclude?{}:{model:a},!this.props.transclude&&Number.isFinite(s)?{index:s}:{})));return cfe(U(e),l),()=>{((t,n)=>{we(n,(e,i)=>{var r=!1;we(t,(o,a)=>{i===a&&(r=!0)}),!r&&i.parentNode&&i.parentNode.removeChild(i)})})(o,r.contents()),i.appendChild(e)}}shouldComponentUpdate(n){var{model:e,template:i}=this.props,{model:r,template:o}=n;if(i!==o)return!0;if(Z(e)&&Z(r)){var{data:s,index:l}=e,{data:u,index:f}=r;return l!==f||!((t,n)=>Object.keys(t).length===Object.keys(n).length&&Object.keys(t).every(e=>t[e]===n[e]))(s,u)}return!(e===r)}createEffects(){return[new yo(this.renderTemplate,[this.props.template,this.props.model])]}updateEffects(){this._effects[0].update([this.props.template,this.props.model])}componentWillUnmount(){}render(){return null}}function qU(t){return Array.isArray(t)?[...t]:mt({},t)}function Efe(t,n,e){var i=qU(e.length>0&&n&&t!==n?n:t),r=e[0];return e.length>1?i[r]=Efe(t[r],n?.[r],e.slice(1)):r&&(i[r]=wi(t[r])?qU(t[r]):t[r]),i}function u_t(t,n,e,i){var r=n[e],o=t[e];t[e]=wi(r)||e!==i&&Array.isArray(r)?Efe(r,o,Iy(i).slice(1)):r}var YU=(t,n)=>e=>{Object.prototype.hasOwnProperty.call(t,e)&&void 0===t[e]&&(t[e]=n(e))};let bm=(()=>{class t extends Ic{constructor(e,i){super(e,i),this._shouldRaiseContentReady=!1,this.validateKeyDownHandler()}get _propsInfo(){return{allowNull:[],twoWay:[],elements:[],templates:[],props:[]}}validateKeyDownHandler(){if(this.getSupportedKeyNames().length>0&&"function"!=typeof this._viewComponent.prototype.keyDown)throw Error("Component's declaration must have 'keyDown' method.")}get viewRef(){var e;return null===(e=this._viewRef)||void 0===e?void 0:e.current}_checkContentReadyOption(e){var i=this._getContentReadyOptions().reduce((r,o)=>(r[o]=!0,r),{});return this._checkContentReadyOption=r=>!!i[r],this._checkContentReadyOption(e)}_getContentReadyOptions(){return["rtlEnabled"]}_fireContentReady(){this._actionsMap.onContentReady({})}_getDefaultOptions(){var e=this._getViewComponentDefaultProps();return se(!0,super._getDefaultOptions(),e,this._propsInfo.twoWay.reduce((i,r)=>{var[o,a,s]=r;return mt({},i,{[o]:e[a],[s]:l=>this.option(o,l)})},{}),this._propsInfo.templates.reduce((i,r)=>mt({},i,{[r]:null}),{}))}_getUnwrappedOption(){var e={};return Object.keys(this.option()).forEach(i=>{e[i]=this.option(i)}),e}_initializeComponent(){var e;super._initializeComponent(),null===(e=this._templateManager)||void 0===e||e.addDefaultTemplates(this.getDefaultTemplates());var i=this._getUnwrappedOption();this._props=this._optionsWithDefaultTemplates(i),this._propsInfo.templates.forEach(r=>{this._componentTemplates[r]=this._createTemplateComponent(this._props[r])}),Object.keys(this._getActionConfigsFull()).forEach(r=>this._addAction(r)),this._viewRef={current:null},this.defaultKeyHandlers=this._createDefaultKeyHandlers()}_initMarkup(){var e=this.getProps();this._renderWrapper(e)}_renderWrapper(e){var i=this.$element()[0];this._isNodeReplaced||Tw.onPreRender(),Tw.render(this._viewComponent,e,i,this._isNodeReplaced),this._isNodeReplaced||(this._isNodeReplaced=!0,Tw.onAfterRender(),this._shouldRaiseContentReady=!0),this._shouldRaiseContentReady&&(this._fireContentReady(),this._shouldRaiseContentReady=!1)}_silent(e,i){this._options.silent(e,i)}_render(){}_removeWidget(){Tw.remove(this.$element()[0])}_dispose(){this._removeWidget(),super._dispose()}get elementAttr(){var e=this.$element()[0];if(!this._elementAttr){var{attributes:i}=e,r=Array.from(i).filter(l=>{var u;return!this._propsInfo.templates.includes(l.name)&&(null===(u=i[l.name])||void 0===u?void 0:u.specified)}).reduce((l,u)=>{var{name:f,value:S}=u,T=l;return T[f]=""===S&&f in e?e[f]:S,T},{});this._elementAttr=r,this._storedClasses=e.getAttribute("class")||""}for(var o=e.style,a={},s=0;s<o.length;s+=1)a[o[s]]=o.getPropertyValue(o[s]);return this._elementAttr.style=a,this._elementAttr.class=this._storedClasses,this._elementAttr}_getAdditionalActionConfigs(){return{onContentReady:{excludeValidators:["disabled","readOnly"]}}}_getAdditionalProps(){return[]}_patchOptionValues(e){var{allowNull:i,elements:r,props:o,twoWay:a}=this._propsInfo,s=this._getViewComponentDefaultProps(),l=Object.keys(s),u=this._getDefaultOptions(),{children:f,onKeyboardHandled:S,ref:T}=e,L={ref:T,children:f,onKeyDown:S?(z,j)=>{S(j)}:void 0};return[...o,...this._getAdditionalProps()].forEach(z=>{Object.prototype.hasOwnProperty.call(e,z)&&(L[z]=e[z])}),i.forEach(YU(L,()=>null)),l.forEach(YU(L,z=>u[z])),a.forEach(z=>{var[j,Y]=z;YU(L,()=>u[Y])(j)}),r.forEach(z=>{if(z in L){var j=L[z];xc(j)&&(L[z]=this._patchElementParam(j))}}),L}getSupportedKeyNames(){return[]}prepareStyleProp(e){return"string"==typeof e.style?mt({},e,{style:{},cssText:e.style}):e}getProps(){var e,i,{elementAttr:r}=this.option(),o=this._patchOptionValues(mt({},this._props,{ref:this._viewRef,children:this._extractDefaultSlot(),aria:this._aria}));return this._propsInfo.templates.forEach(a=>{o[a]=this._componentTemplates[a]}),this.prepareStyleProp(mt({},o,this.elementAttr,r,{className:[...(null!==(e=this.elementAttr.class)&&void 0!==e?e:"").split(" "),...(null!==(i=r?.class)&&void 0!==i?i:"").split(" ")].filter((a,s,l)=>a&&l.indexOf(a)===s).join(" ").trim(),class:""},this._actionsMap))}_getActionConfigs(){return{}}_getActionConfigsFull(){return mt({},this._getActionConfigs(),this._getAdditionalActionConfigs())}getDefaultTemplates(){var e=Object.values(this._templatesInfo),i={};return e.forEach(r=>{i[r]="dx-renovation-template-mock"}),i}get _templatesInfo(){return{}}_optionsWithDefaultTemplates(e){var i=Object.entries(this._templatesInfo).reduce((r,o)=>{var a,[s,l]=o;return mt({},r,{[s]:null!==(a=e[s])&&void 0!==a?a:l})},{});return mt({},e,i)}_init(){super._init(),this.customKeyHandlers={},this._actionsMap={},this._aria={},this._componentTemplates={}}_createDefaultKeyHandlers(){var e={};return this.getSupportedKeyNames().forEach(r=>{e[r]=o=>this.viewRef.keyDown($ge.createKeyDownOptions(o))}),e}_addAction(e,i){var r=i;if(!r){var o=this._createActionByOption(e,this._getActionConfigsFull()[e]);r=a=>(Object.keys(a).forEach(s=>{Z(a[s])&&It.isNode(a[s])&&(a[s]=kn(U(a[s])))}),o(a))}this._actionsMap[e]=r}_optionChanged(e){var{fullName:i,name:r,previousValue:o,value:a}=e;u_t(this._props,this.option(),r,i),this._propsInfo.templates.includes(r)&&a!==o&&(this._componentTemplates[r]=this._createTemplateComponent(a)),r&&this._getActionConfigsFull()[r]&&this._addAction(r),this._shouldRaiseContentReady=this._shouldRaiseContentReady||this._checkContentReadyOption(i),super._optionChanged(e),this._invalidate()}_extractDefaultSlot(){return this.option("_hasAnonymousTemplateContent")?Tw.createElement(Dfe,{template:this._getTemplate(this._templateManager.anonymousTemplateName),transclude:!0,renovated:!0}):null}_createTemplateComponent(e){if(e){var i=this._getTemplate(e);if(!Pn(i)||"dx-renovation-template-mock"!==i)return r=>Tw.createElement(Dfe,{template:i,model:r})}}_wrapKeyDownHandler(e){return i=>{var{keyName:r,originalEvent:o,which:a}=i,s=this.customKeyHandlers,l=s[r]||s[a];return void 0===l||l.bind(this)(o,i)?e?.(o,i):(o.cancel=!0,o)}}_toPublicElement(e){return kn(U(e))}_patchElementParam(e){try{var r=U(e)?.get(0);return null!=r&&r.nodeType?r:e}catch{return e}}repaint(){this._isNodeReplaced=!1,this._shouldRaiseContentReady=!0,this._removeWidget(),this._refresh()}_supportedKeys(){return mt({},this.defaultKeyHandlers,this.customKeyHandlers)}registerKeyHandler(e,i){this.customKeyHandlers[e]=i}setAria(e,i){this._aria[e]=i,this._initMarkup()}_getViewComponentDefaultProps(){return this._viewComponent.defaultProps||{}}}return t.IS_RENOVATED_WIDGET=!1,t.IS_RENOVATED_WIDGET=!0,t})();var gT="dx-icon",fT=t=>!(!t||"string"!=typeof t)&&(/^\s*<svg[^>]*>(.|\r?\n)*?<\/svg>\s*$/i.test(t)?"svg":/data:.*base64|\.|[^<\s]\/{1,1}/.test(t)?"image":/^[\w-_]+$/.test(t)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(t)&&"fontIcon"),Fu=t=>{switch(fT(t)){case"image":return U("<img>").attr("src",t).addClass(gT);case"fontIcon":return U("<i>").addClass("".concat(gT," ").concat(t));case"dxIcon":return U("<i>").addClass("".concat(gT," ").concat(gT,"-").concat(t));case"svg":return U("<i>").addClass("".concat(gT," ").concat("dx-svg-icon")).append(t);default:return null}};class c_t extends bm{get _validationGroupConfig(){return Uo.getGroupConfig(this._findGroup())}getDefaultTemplateNames(){return["content"]}getSupportedKeyNames(){return["space","enter"]}getProps(){var n=super.getProps();return n.onClick=i=>{var{event:r}=i;this._clickAction({event:r,validationGroup:this._validationGroupConfig})},"svg"===fT(n.icon)&&(n.iconTemplate=this._createTemplateComponent(()=>n.icon)),n}get _templatesInfo(){return{template:"content"}}_toggleActiveState(n,e){var i=this.viewRef;e?i.activate():i.deactivate()}_getSubmitAction(){var n=!0,e="valid";return this._createAction(i=>{var{event:r,submitInput:o}=i;if(n){var a=this._validationGroupConfig;if(void 0!==a&&""!==a){var s=a.validate();e=s.status,"pending"===s.status&&(n=!1,this.option("disabled",!0),s.complete.then(l=>{var{status:u}=l;this.option("disabled",!1),"valid"===(e=u)&&o.click(),n=!0}))}}"valid"!==e&&r.preventDefault(),r.stopPropagation()})}_initializeComponent(){super._initializeComponent(),this._addAction("onSubmit",this._getSubmitAction()),this._clickAction=this._createClickAction()}_initMarkup(){super._initMarkup();var n=this.$element().find(".dx-button-content"),e=n.children().filter(".dx-template-wrapper"),i=n.children().filter(".dx-button-submit-input");e.length&&(e.addClass("dx-button-content"),e.append(i),n.replaceWith(e))}_patchOptionValues(n){return super._patchOptionValues(mt({},n,{templateData:n._templateData}))}_findGroup(){var n=this.$element(),e=this.option("validationGroup");return void 0!==e&&""!==e?e:Uo.findGroup(n,this._modelByElement(n))}_createClickAction(){return this._createActionByOption("onClick",{excludeValidators:["readOnly"]})}_optionChanged(n){"onClick"===n.name&&(this._clickAction=this._createClickAction()),super._optionChanged(n)}}var iC=Zi();const Di=aP(Wr.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1058:'The "startDayHour" must be earlier than the "endDayHour"',E1059:"The following column names are not unique: {0}",E1060:"All editable columns must have names",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config.",W1015:'The "cellDuration" should divide the range from the "startDayHour" to the "endDayHour" into even intervals',W1016:"The '{0}' field in the HTML Editor toolbar item configuration was renamed to '{1}'. Please make a corresponding change in your code.",W1017:"The 'key' property is not specified for a lookup data source. Please specify it to prevent requests for the entire dataset when users filter data.",W1018:"Infinite scrolling may not work properly with multiple selection. To use these features together, set 'selection.deferred' to true or set 'selection.selectAllMode' to 'page'.",W1019:"Filter query string exceeds maximum length limit of {0} characters.",W1020:"hideEvent is ignored when the shading property is true",W1021:"The '{0}' is not rendered because none of the DOM elements match the value of the \"container\" property."});var xm,mT,wm,Yd,Sm,B2,Ofe=Fn(),h_t=gd.add,p_t=bh,g_t=O2,rC=new et,Tfe="link[rel=dx-theme]",Ife="dx-hairlines";function JU(){if(!Rn())return null;var n,t=U("<div>",xm).addClass("dx-theme-marker").appendTo(xm.documentElement);try{return(n=Ofe.getComputedStyle(t.get(0)).fontFamily)&&"dx."===(n=n.replace(/["']/g,"")).substr(0,"dx.".length)?n.substr("dx.".length):null}finally{t.remove()}}function QU(t){var n,e,i=!0;function r(){Sm=null,clearInterval(e),i=!0,iC.fire(),iC.empty(),rC.resolve()}if(Sm=t,eW())r();else{if(!i)return void(Sm&&(Sm=t));n=Date.now(),i=!1,e=setInterval(function(){var o=eW(),a=!o&&Date.now()-n>15e3;a&&Di.log("W0004",Sm),(o||a)&&r()},10)}}function eW(){if(!Sm)return!0;var t="any"===Sm;if("resolved"===rC.state()&&t)return!0;var n=JU();return!(!n||!t)||n===Sm}function v_t(t){var n=t?t.split("."):[],e=null;if(wm){if(t in wm)return t;we(wm,function(i,r){var o=i.split(".");if((!n[0]||o[0]===n[0])&&(!n[1]||n[1]===o[1])&&(!n[2]||n[2]===o[2])&&((!e||r.isActive)&&(e=i),r.isActive))return!1})}return e}function Mfe(t){(function y_t(t){try{t!==xm&&(wm=null)}catch{wm=null}xm=t})((t=t||{}).context||It.getDocument()),xm&&(function __t(){var t=U(Tfe,xm);t.length&&(wm={},mT=U(j5("<link rel=stylesheet>"),xm),t.each(function(){var n=U(this,xm),e=n.attr("data-theme"),i=n.attr("href"),r="true"===n.attr("data-active");wm[e]={url:i,isActive:r}}),t.last().after(mT),t.remove())}(),Yd=void 0,lu(t))}function lu(t){if(!arguments.length)return Yd=Yd||JU();nW(p_t()),"string"==typeof(t=t||{})&&(t={theme:t});var i,n=t._autoInit,e=t.loadCallback;if((Yd=v_t(t.theme||Yd))&&(i=wm[Yd]),e&&iC.add(e),i)mT.attr("href",wm[Yd].url),(iC.has()||"resolved"!==rC.state()||t._forceTimeout)&&QU(Yd);else{if(!n)throw Di.Error("E0021",Yd);Rn()&&QU("any"),iC.fire(),iC.empty()}rC.done(()=>tW(nfe(),Yd))}function tW(t,n){B2=function C_t(t){var n=[],e=(t=t||lu())&&t.split(".");return e&&(n.push("dx-theme-"+e[0],"dx-theme-"+e[0]+"-typography"),e.length>1&&n.push("dx-color-scheme-"+e[1]+(io(t)?"-"+e[2]:""))),n}(n).join(" "),U(t).addClass(B2),function(){var e=Rn()&&Ofe.devicePixelRatio;if(e&&!(e<2)){var i=U("<div>");i.css("border",".5px solid transparent"),U("body").append(i),1===Zn(i)&&(U(t).addClass(Ife),B2+=" "+Ife),i.remove()}}()}function nW(t){U(t).removeClass(B2)}function N2(t,n){return n||(n=Yd||JU()),new RegExp(t).test(n)}function io(t){return N2("material",t)}function iW(t){return N2("generic",t)}function rW(t){return N2("compact",t)}function Ffe(t,n){return new Promise(e=>{var i=()=>{clearInterval(r),clearTimeout(o),e()},r=setInterval(()=>{(function Afe(t,n){var e=It.getDocument(),i=e.createElement("span");i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",i.style.visibility="hidden",i.style.fontFamily="Arial",i.style.fontSize="250px",i.style.fontWeight=n,i.innerHTML=t,e.body.appendChild(i);var r=i.offsetWidth;i.style.fontFamily="Roboto, RobotoFallback, Arial";var o=i.offsetWidth;return i.parentNode.removeChild(i),r!==o})(t,n)&&i()},15),o=setTimeout(i,2e3)})}function Pfe(){if(Mfe({_autoInit:!0,_forceTimeout:!0}),U(Tfe,xm).length)throw Di.Error("E0022")}function fs(t){return Object.keys(t).filter(n=>t[n]).join(" ")}Rn()?Pfe():h_t(Pfe),g_t.add(function(t,n){rC.done(function(){nW(n),tW(t)})}),pn.changed.add(function(){Mfe({_autoInit:!0})});var E_t=["iconTemplate","position","source"],T_t={position:"left",source:""},I_t=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let k_t=(()=>{class t extends so{constructor(e){super(e),this.state={}}get sourceType(){return fT(this.props.source)}get cssClass(){return"left"!==this.props.position?"dx-icon-right":""}get iconClassName(){var e={"dx-icon":!0,[this.cssClass]:!!this.cssClass},{source:i}=this.props;return"dxIcon"===this.sourceType?fs(mt({},e,{["dx-icon-".concat(i)]:!0})):"fontIcon"===this.sourceType?fs(mt({},e,{[String(i)]:!!i})):"image"===this.sourceType?fs(e):"svg"===this.sourceType?fs(mt({},e,{"dx-svg-icon":!0})):""}get restAttributes(){return ki(this.props,E_t)}render(){var e=this.props;return(t=>{var{iconClassName:n,props:{iconTemplate:e,source:i},sourceType:r}=t;return Pl(["dxIcon"===r&&er(1,"i",n),"fontIcon"===r&&er(1,"i",n),"image"===r&&er(1,"img",n,null,1,{alt:"",src:i}),e&&er(1,"i",n,e({}),0)],0)})({props:mt({},e,{iconTemplate:I_t(e.iconTemplate)}),sourceType:this.sourceType,cssClass:this.cssClass,iconClassName:this.iconClassName,restAttributes:this.restAttributes})}}return t.defaultProps=T_t,t})();var Rfe="dx-inkripple",Lfe="dx-inkripple-wave",Bfe="dx-inkripple-showing",Nfe="dx-inkripple-hiding",Hfe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{useHoldAnimation:n,waveSizeCoefficient:e,isCentered:i,wavesNumber:r}=t;return{waveSizeCoefficient:e||2,isCentered:i||!1,wavesNumber:r||1,durations:B_t(n??!0)}},_T=function(t){var n=Hfe(t);return{showWave:Ufe.bind(this,n),hideWave:Gfe.bind(this,n)}},zfe=function(t,n){for(var e=function(t){var n=t.children("."+Rfe);return 0===n.length&&(n=U("<div>").addClass(Rfe).appendTo(t)),n}(U(t)),i=e.children("."+Lfe).toArray(),r=i.length;r<n;r++){var o=U("<div>").appendTo(e).addClass(Lfe);i.push(o[0])}return U(i)};function Ufe(t,n){var e=zfe(n.element,t.wavesNumber).eq(n.wave||0);t.hidingTimeout&&clearTimeout(t.hidingTimeout),Wfe(e),e.css(function(t,n){var s,l,e=U(n.element),i=ii(e),r=Zn(e),o=parseInt(Math.sqrt(i*i+r*r)),a=Math.min(4e3,parseInt(o*t.waveSizeCoefficient));if(t.isCentered)s=(i-a)/2,l=(r-a)/2;else{var u=n.event,f=e.offset();s=u.pageX-f.left-a/2,l=u.pageY-f.top-a/2}return{left:s,top:l,height:a,width:a}}(t,n)),t.showingTimeout=setTimeout(L_t.bind(this,t,e),0)}function L_t(t,n){var e=t.durations.showingScale+"ms";n.addClass(Bfe).css("transitionDuration",e)}function B_t(t){return{showingScale:t?1e3:300,hidingScale:300,hidingOpacity:300}}function Wfe(t){t.removeClass(Nfe).css("transitionDuration","")}function Gfe(t,n){t.showingTimeout&&clearTimeout(t.showingTimeout);var e=zfe(n.element,n.wavesNumber).eq(n.wave||0),i=t.durations,r=i.hidingScale+"ms, "+i.hidingOpacity+"ms";e.addClass(Nfe).removeClass(Bfe).css("transitionDuration",r);var o=Math.max(i.hidingScale,i.hidingOpacity);t.hidingTimeout=setTimeout(Wfe.bind(this,e),o)}var N_t=["config"],H_t={config:Object.freeze({})};let z_t=(()=>{class t extends so{constructor(e){super(e),this.state={},this.__getterCache={},this.hideWave=this.hideWave.bind(this),this.showWave=this.showWave.bind(this)}get getConfig(){return void 0!==this.__getterCache.getConfig?this.__getterCache.getConfig:this.__getterCache.getConfig=(()=>{var{config:e}=this.props;return Hfe(e)})()}get restAttributes(){return ki(this.props,N_t)}hideWave(e){Gfe(this.getConfig,e)}showWave(e){Ufe(this.getConfig,e)}componentWillUpdate(e,i,r){this.props.config!==e.config&&(this.__getterCache.getConfig=void 0)}render(){return(t=>Nr(er(1,"div","dx-inkripple",null,1,mt({},t.restAttributes))))({props:mt({},this.props),getConfig:this.getConfig,restAttributes:this.restAttributes})}}return t.defaultProps=H_t,t})();var wh=Rn()?Fn():{},jfe=function(t){return setTimeout(t,16.666666666666668)},Kfe=function(t){clearTimeout(t)},$fe=up(function(){var t=wh.requestAnimationFrame||wh.webkitRequestAnimationFrame||wh.mozRequestAnimationFrame||wh.oRequestAnimationFrame||wh.msRequestAnimationFrame,n=wh.cancelAnimationFrame||wh.webkitCancelAnimationFrame||wh.mozCancelAnimationFrame||wh.oCancelAnimationFrame||wh.msCancelAnimationFrame;t&&n&&(jfe=t,Kfe=n)});function Fw(){return $fe(),jfe.apply(wh,arguments)}function _p(){$fe(),Kfe.apply(wh,arguments)}function qfe(t){return t&&[t.target,t.delegateTarget,t.relatedTarget,t.currentTarget].filter(n=>!!n)}var{maxTouchPoints:Yfe}=cw(),j_t={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},aW=function(t){return!!Wy(t)},V2=function(t){if("text"===t)return!0;var n=It.createElement("input");try{return n.setAttribute("type",t),n.value="wrongValue",!n.value}catch{return!1}},sW=function(t,n){return(t("ontouchstart")||!!n)&&!t("callPhantom")}(VP,Yfe),H2=function(t){return t("PointerEvent")}(VP),h_=sW||H2&&!!Yfe,lW=up(function(){return aW("transition")}),Zfe=up(function(){return j_t[Wy("transition")]}),Xfe=up(function(){return aW("animation")}),xg=function(){var{platform:t,mac:n}=pn.real();return"ios"===t||"android"===t||n}(),Z_t=cw(),X_t=/(webkit)[ /]([\w.]+)/,J_t=/(mozilla)(?:.*? rv:([\w.]+))/,Jfe=t=>{t=t.toLowerCase();var n={},e=X_t.exec(t)||t.indexOf("compatible")<0&&J_t.exec(t)||[],i=e[1],r=e[2];return"webkit"===i&&(n.webkit=!0,t.indexOf("chrome")>=0||t.indexOf("crios")>=0?(i="chrome",r=(r=/(?:chrome|crios)\/(\d+\.\d+)/.exec(t))&&r[1]):t.indexOf("fxios")>=0?(i="mozilla",r=(r=/fxios\/(\d+\.\d+)/.exec(t))&&r[1]):t.indexOf("safari")>=0&&/version|phantomjs/.test(t)?(i="safari",r=(r=/(?:version|phantomjs)\/([0-9.]+)/.exec(t))&&r[1]):(i="unknown",r=(r=/applewebkit\/([0-9.]+)/.exec(t))&&r[1])),i&&(n[i]=!0,n.version=r),n};const Ro=se({_fromUA:Jfe},Jfe(Z_t.userAgent));var Qfe="dxPointerEvents",Q_t=ji.inherit({ctor:function(t,n){this._eventName=t,this._originalEvents=kt(n,Qfe),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var t=this._eventName;return"dxpointerenter"===t||"dxpointerleave"===t},_handler:function(t){var n,e=this._getDelegateTarget(t),i={type:this._eventName,pointerType:t.pointerType||Ew(t),originalEvent:t,delegateTarget:e,timeStamp:Ro.mozilla?(new Date).getTime():t.timeStamp},r=t.originalEvent;if(null!=r&&null!==(n=r.target)&&void 0!==n&&n.shadowRoot){var o,a,s=null!==(o=r.path)&&void 0!==o?o:null===(a=r.composedPath)||void 0===a?void 0:a.call(r);i.target=s[0]}return this._fireEvent(i)},_getDelegateTarget:function(t){var n;return this.noBubble&&(n=t.delegateTarget),n},_fireEvent:function(t){return gp(t)},_setSelector:function(t){this._selector=this.noBubble&&t?t.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(t,n){if(this._handlerCount<=0||this.noBubble){t=this.noBubble?t:It.getDocument(),this._setSelector(n);var e=this;Se.on(t,this._originalEvents,this._getSelector(),function(i){e._handler(i)})}this.noBubble||this._handlerCount++},remove:function(t){this._setSelector(t),this.noBubble||this._handlerCount--},teardown:function(t){this._handlerCount&&!this.noBubble||(t=this.noBubble?t:It.getDocument(),this._originalEvents!=="."+Qfe&&Se.off(t,this._originalEvents,this._getSelector()))},dispose:function(t){t=this.noBubble?t:It.getDocument(),Se.off(t,this._originalEvents)}});const uW=Q_t;var eme=function(t){var n=[];return we(t.touches,function(e,i){n.push(se({pointerId:i.identifier},i))}),{pointers:n,pointerId:t.changedTouches[0].identifier}},tvt=function(t){return"ios"===pn.real().platform&&("dxpointerdown"===t||"dxpointerup"===t)},dW=uW.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(t){if(tvt(this._eventName)){var n=t.changedTouches[0];if(this._pointerId===n.identifier&&0!==this._pointerId)return;this._pointerId=n.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(t){return this.callBase(se(eme(t.originalEvent),t))}});dW.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},dW.normalize=eme;const tme=dW;var z2=function(t,n){gd.add(function(){t.split(" ").forEach(function(e){It.listen(It.getDocument(),e,n,!0)})})};const ivt=function(t,n,e){e=e||function(){};var i=[],r=function(a){var s=-1;return we(i,function(l,u){return!n(a,u)||(s=l,!1)}),s},o=function(a){var s=r(a);s>-1&&i.splice(s,1)};z2(t.dxpointerdown,function(a){-1===r(a)&&(e(a),i.push(a))}),z2(t.dxpointermove,function(a){i[r(a)]=a}),z2(t.dxpointerup,o),z2(t.dxpointercancel,o),this.pointers=function(){return i},this.reset=function(){i=[]}};var cW,nme={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},ime=function(t){return t.pointerId=1,{pointers:cW.pointers(),pointerId:1}},rme=!1,ome=function(){rme||(cW=new ivt(nme,function(){return!0}),rme=!0)},vT=uW.inherit({ctor:function(){this.callBase.apply(this,arguments),ome()},_fireEvent:function(t){return this.callBase(se(ime(t.originalEvent),t))}});vT.map=nme,vT.normalize=ime,vT.activate=ome,vT.resetObserver=function(){cW.reset()};const U2=vT;var ame=!1,ovt=function(){ame||(U2.activate(),ame=!0)},hW=uW.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),ovt()},_handler:function(t){var n=pp(t);if(n||(this._skipNextEvents=!0),!n||!this._mouseLocked){if(n&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var e=this;return void(this._unlockMouseTimer=setTimeout(function(){e._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(t)}},_fireEvent:function(t){var n=pp(t.originalEvent)?U2.normalize:tme.normalize;return this.callBase(se(n(t.originalEvent),t))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});hW.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},hW.resetObserver=U2.resetObserver;const avt=hW;var sme=((t,n)=>{var{tablet:e,phone:i}=n;return!t.touch||e||i?t.touch?tme:U2:avt})(w,pn.real());we(sme.map,(t,n)=>{cp(t,new sme(t,n))});const qn={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"};var uvt=ji.inherit({ctor:function(t){this._$element=U(t),this._cancelCallback=Zi(),this._acceptCallback=Zi()},getElement:function(){return this._$element},validate:function(t){return!Au(t)},validatePointers:function(t){return 1===Uge(t)},allowInterruptionByMouseWheel:function(){return!0},configure:function(t){se(this,t)},addCancelCallback:function(t){this._cancelCallback.add(t)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(t){this._cancelCallback.fire(this,t)},addAcceptCallback:function(t){this._acceptCallback.add(t)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(t){this._acceptCallback.fire(this,t)},_requestAccept:function(t){this._acceptRequestEvent=t},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:Be,move:Be,end:Be,cancel:Be,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(t,n,e){var i=se({type:t,originalEvent:n,target:this._getEmitterTarget(n),delegateTarget:this.getElement().get(0)},e);return(n=gp(i)).cancel&&this._cancel(n),n},_getEmitterTarget:function(t){return(this.delegateSelector?U(t.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:Be});const yT=uvt;var p_="dxmousewheel",pW={setup:function(t){var n=U(t);Se.on(n,kt("wheel","dxWheel"),pW._wheelHandler.bind(pW))},teardown:function(t){Se.off(t,".".concat("dxWheel"))},_wheelHandler:function(t){var{deltaMode:n,deltaY:e,deltaX:i,deltaZ:r}=t.originalEvent;gp({type:p_,originalEvent:t,delta:this._normalizeDelta(e,n),deltaX:i,deltaY:e,deltaZ:r,deltaMode:n,pointerType:"mouse"}),t.stopPropagation()},_normalizeDelta(t){return 0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)?-t:-30*t}};cp(p_,pW);var W2="dxEventManager",CT="dxEmitter",hvt=ji.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){gd.add(function(){var t=It.getDocument();Se.subscribeGlobal(t,kt(qn.down,W2),this._pointerDownHandler.bind(this)),Se.subscribeGlobal(t,kt(qn.move,W2),this._pointerMoveHandler.bind(this)),Se.subscribeGlobal(t,kt([qn.up,qn.cancel].join(" "),W2),this._pointerUpHandler.bind(this)),Se.subscribeGlobal(t,kt(p_,W2),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(t){for(var n=this._activeEmitters||[],e=0;n.length>e;){var i=n[e];if(!1===t(i))break;n[e]===i&&e++}},_applyToEmitters:function(t,n){this._eachEmitter(function(e){e[t].call(e,n)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(t){this._proxiedCancelHandler(t)},_pointerDownHandler:function(t){pp(t)&&t.which>1||this._updateEmitters(t)},_updateEmitters:function(t){this._isSetChanged(t)&&(this._cleanEmitters(t),this._fetchEmitters(t))},_isSetChanged:function(t){var n=this._closestEmitter(t),e=this._emittersSet||[],i=n.length!==e.length;return we(n,function(r,o){return!(i=i||e[r]!==o)}),this._emittersSet=n,i},_closestEmitter:function(t){var n=this,e=[],i=U(t.target);function r(a,s){s&&s.validatePointers(t)&&s.validate(t)&&(s.addCancelCallback(n._proxiedCancelHandler),s.addAcceptCallback(n._proxiedAcceptHandler),e.push(s))}for(;i.length;){var o=zo(i.get(0),CT)||[];we(o,r),i=i.parent()}return e},_acceptHandler:function(t,n){var e=this;this._eachEmitter(function(i){i!==t&&e._cancelEmitter(i,n)})},_cancelHandler:function(t,n){this._cancelEmitter(t,n)},_cancelEmitter:function(t,n){var e=this._activeEmitters;n?t.cancel(n):t.reset(),t.removeCancelCallback(),t.removeAcceptCallback();var i=e.indexOf(t);i>-1&&e.splice(i,1)},_cleanEmitters:function(t){this._applyToEmitters("end",t),this.reset(t)},_fetchEmitters:function(t){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",t)},_pointerMoveHandler:function(t){this._applyToEmitters("move",t)},_pointerUpHandler:function(t){this._updateEmitters(t)},_mouseWheelHandler:function(t){this._allowInterruptionByMouseWheel()&&(t.pointers=[null],this._pointerDownHandler(t),this._adjustWheelEvent(t),this._pointerMoveHandler(t),t.pointers=[],this._pointerUpHandler(t))},_allowInterruptionByMouseWheel:function(){var t=!0;return this._eachEmitter(function(n){return t=n.allowInterruptionByMouseWheel()&&t}),t},_adjustWheelEvent:function(t){var n=null;if(this._eachEmitter(function(o){if(o.gesture){var a=o.getDirection(t);if("horizontal"!==a&&!t.shiftKey||"vertical"!==a&&t.shiftKey)return n=o,!1}}),n){var e=n.getDirection(t);t["both"===e&&!t.shiftKey||"vertical"===e?"pageY":"pageX"]+=t.delta}},isActive:function(t){var n=!1;return this._eachEmitter(function(e){n=n||e.getElement().is(t)}),n}}),dme=new hvt,gW="dxEmitterSubscription";const oC=function(t){var n=t.emitter,e=t.events[0],i=t.events;we(i,function(r,o){cp(o,{noBubble:!t.bubble,setup:function(a){var s=zo(a,gW)||{},l=zo(a,CT)||{},u=l[e]||new n(a);s[o]=!0,l[e]=u,zo(a,CT,l),zo(a,gW,s)},add:function(a,s){zo(a,CT)[e].configure(se({delegateSelector:s.selector},s.data),s.type)},teardown:function(a){var s=zo(a,gW),l=zo(a,CT),u=l[e];delete s[o];var f=!0;we(i,function(S,T){return f=f&&!s[T]}),f&&(dme.isActive(a)&&dme.resetEmitter(u),u&&u.dispose(),delete l[e])}})})};var Vi="dxclick",fW=null,bT=null,cme=()=>{bT=null},hme=function(t){var n=t.originalEvent;(!t.which||1===t.which)&&!fW&&!(bT===n||n&&n.DXCLICK_FIRED)&&(n&&(n.DXCLICK_FIRED=!0),((t,n)=>{Se.off(qfe(t),vg,n)})(bT,cme),((t,n)=>{Se.one(qfe(t),vg,n)})(bT=n,cme),gp({type:Vi,originalEvent:t}))},gvt=yT.inherit({ctor:function(t){this.callBase(t),Se.on(this.getElement(),"click",hme)},start:function(t){fW=null},cancel:function(){fW=!0},dispose:function(){Se.off(this.getElement(),"click",hme)}});(function(){if(!pn.real().generic){var n=null,e=!1,i=It.getDocument();Se.subscribeGlobal(i,kt(qn.down,"NATIVE_CLICK_FIXER"),function(r){n=r.target,e=r.isDefaultPrevented()}),Se.subscribeGlobal(i,kt("click","NATIVE_CLICK_FIXER"),function(r){var o=U(r.target);!e&&n&&!o.is(n)&&!U(n).is("label")&&U(o).is("input, textarea, select, button ,:focus, :focus *")&&Mw(),n=null,e=!1})}})(),oC({emitter:gvt,bubble:!0,events:[Vi]});var pme="dxHoverStart",G2="dxhoverstart",fvt=kt(qn.enter,pme),gme="dxHoverEnd",xT="dxhoverend",mvt=kt(qn.leave,gme),fme=ji.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(t){zo(t,this._handlerArrayKeyPath,{})},add:function(t,n){var e=this,i=function(r){e._handler(r)};Se.on(t,this._originalEventName,n.selector,i),zo(t,this._handlerArrayKeyPath)[n.guid]=i},_handler:function(t){ym(t)||pn.isSimulator()||gp({type:this._eventName,originalEvent:t,delegateTarget:t.delegateTarget})},remove:function(t,n){var e=zo(t,this._handlerArrayKeyPath)[n.guid];Se.off(t,this._originalEventName,n.selector,e)},teardown:function(t){qP(t,this._handlerArrayKeyPath)}}),_vt=fme.inherit({ctor:function(){this._eventNamespace=pme,this._eventName=G2,this._originalEventName=fvt,this.callBase()},_handler:function(t){(t.pointers||[]).length||this.callBase(t)}}),vvt=fme.inherit({ctor:function(){this._eventNamespace=gme,this._eventName=xT,this._originalEventName=mvt,this.callBase()}});cp(G2,new _vt),cp(xT,new vvt);var yvt=gd.add,mme=Math.abs,j2=10,wvt=up(function(){var t="desktop"===pn.real().deviceType;if(!Wy("pointer-events")||!t)return Be;var n=U("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return Se.subscribeGlobal(n,"dxmousewheel",function(e){e.preventDefault()}),yvt(function(){n.appendTo("body")}),function(e,i){n.css("pointerEvents",e?"all":"none"),e&&n.css("cursor",i)}}),vW=yT.inherit({gesture:!0,configure:function(t){this.getElement().css("msTouchAction",t.immediate?"pinch-zoom":""),this.callBase(t)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(t){t._needSkipEvent||Wge(t)?this._cancel(t):(this._startEvent=u_(t),this._startEventData=Po(t),this._stage=1,this._init(t),this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),180))},move:function(t){if(1===this._stage&&this._directionConfirmed(t)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(t),this._adjustStartEvent(t),this._start(this._startEvent),0===this._stage)return;this._requestAccept(t),this._move(t),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(t),this._move(t))},_directionConfirmed:function(t){var n=this._getTouchBoundary(t),e=Qy(this._startEventData,Po(t)),i=mme(e.x),r=mme(e.y),o=this._validateMove(n,i,r),a=this._validateMove(n,r,i),s=this.getDirection(t);return"both"===s&&(o||a)||"horizontal"===s&&o||"vertical"===s&&a||this._immediateAccepted},_validateMove:function(t,n,e){return n&&n>=t&&(!this.immediate||n>=e)},_getTouchBoundary:function(t){return this.immediate||Au(t)?0:j2},_adjustStartEvent:function(t){var n=this._getTouchBoundary(t),e=Qy(this._startEventData,Po(t));this._startEvent.pageX+=gh(e.x)*n,this._startEvent.pageY+=gh(e.y)*n},_resetActiveElement:function(){"ios"===pn.real().platform&&this.getElement().find(":focus").length&&Mw()},_toggleGestureCover:function(t){this._toggleGestureCoverImpl(t)},_toggleGestureCoverImpl:function(t){2===this._stage&&function(t,n){wvt()(t,n)}(t,this.getElement().css("cursor"))},_clearSelection:function(t){Au(t)||ym(t)||(()=>{var t=UU.getSelection();if(t&&"Caret"!==t.type)if(t.empty)t.empty();else if(t.removeAllRanges)try{t.removeAllRanges()}catch{}})()},end:function(t){this._toggleGestureCover(!1),2===this._stage?this._end(t):1===this._stage&&this._stop(t),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:Be,_start:Be,_move:Be,_stop:Be,_end:Be});vW.initialTouchBoundary=j2,vW.touchBoundary=function(t){if(!Z(t))return j2;j2=t};const yW=vW;var Dvt=ji.abstract,Evt=pn.real(),CW="dxscrollinit",bW="dxscrollstart",xW="dxscroll",wW="dxscrollend",SW="dxscrollstop",DW="dxscrollcancel",vme=ji.inherit(function(){var t=kt("scroll","dxScrollEmitter");return{ctor:function(n){this._element=n,this._locked=!1,this._proxiedScroll=e=>{this._disposed||this._scroll(e)},Se.on(this._element,t,this._proxiedScroll)},_scroll:Dvt,check:function(n,e){this._locked&&e()},dispose:function(){this._disposed=!0,Se.off(this._element,t,this._proxiedScroll)}}}()),yme=vme.inherit({ctor:function(t,n){this.callBase(t),this._timeout=n},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var t=this;this._timer=setTimeout(function(){t._clearTimer()},this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),Cme=yme.inherit({ctor:function(t){this.callBase(t,400),this._lastWheelDirection=null},check:function(t,n){this._checkDirectionChanged(t),this.callBase(t,n)},_checkDirectionChanged:function(t){if(Au(t)){var n=t.shiftKey||!1,e=null!==this._lastWheelDirection&&n!==this._lastWheelDirection;this._lastWheelDirection=n,this._locked=this._locked&&!e}else this._lastWheelDirection=null}}),EW=yme.inherit({ctor:function(t){this.callBase(t,400)}});!function(){var{ios:t,android:n}=Evt;(t||n)&&(EW=vme.inherit({_scroll:function(){this._locked=!0;var e=this;_p(this._scrollFrame),this._scrollFrame=Fw(function(){e._locked=!1})},check:function(e,i){_p(this._scrollFrame),_p(this._checkFrame);var r=this,o=this.callBase;this._checkFrame=Fw(function(){o.call(r,e,i),r._locked=!1})},dispose:function(){this.callBase(),_p(this._scrollFrame),_p(this._checkFrame)}}))}();var Ovt=yW.inherit(function(){var t=Math.round(16.666666666666668);return{ctor:function(n){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new EW(n),this._wheelLocker=new Cme(n)},validate:function(){return!0},configure:function(n){n.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new EW(n.scrollTarget),this._wheelLocker=new Cme(n.scrollTarget)),this.callBase(n)},_init:function(n){this._wheelLocker.check(n,function(){Au(n)&&this._accept(n)}.bind(this)),this._pointerLocker.check(n,function(){var e=this.isNative&&pp(n);!Au(n)&&!e&&this._accept(n)}.bind(this)),this._fireEvent(CW,n),this._prevEventData=Po(n)},move:function(n){this.callBase.apply(this,arguments),n.isScrollingEvent=this.isNative||n.isScrollingEvent},_start:function(n){this._savedEventData=Po(n),this._fireEvent(bW,n),this._prevEventData=Po(n)},_move:function(n){var e=Po(n);this._fireEvent(xW,n,{delta:Qy(this._prevEventData,e)}),Qy(this._savedEventData,e).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=Po(n)},_end:function(n){var e=Qy(this._prevEventData,Po(n)),i={x:0,y:0};if(!Au(n)&&e.time<100){var r=Qy(this._savedEventData,this._prevEventData),o=t/r.time;i={x:r.x*o,y:r.y*o}}this._fireEvent(wW,n,{velocity:i})},_stop:function(n){this._fireEvent(SW,n)},cancel:function(n){this.callBase.apply(this,arguments),this._fireEvent(DW,n)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());oC({emitter:Ovt,events:[CW,bW,xW,wW,SW,DW]});const yd_init=CW,yd_start=bW,yd_move=xW,yd_end=wW,yd_stop=SW,yd_cancel=DW;function zs(t){return(n,e,i,r)=>{var o=r?kt(t,r):t;if(e)return Se.on(n,o,i,e),()=>{Se.off(n,o,e)}}}var Tvt=zs(Vi),Ivt=(zs("scroll"),zs(yd_init),zs(yd_start),zs(yd_move),zs(yd_end),zs(yd_stop),zs(yd_cancel),zs(qn.down)),kvt=(zs(qn.up),zs(qn.move),zs("mouseenter"),zs("mouseleave"),zs("keydown"),zs("dxactive")),Mvt=zs("dxinactive"),Avt=zs("dxhoverstart"),Fvt=zs("dxhoverend"),Pvt=zs("focusin"),Rvt=zs("focusout"),K2={className:"",activeStateEnabled:!1,disabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,tabIndex:0,visible:!0},Rl=BU(void 0),Lvt=["children","rtlEnabled"],Nvt={};let Vvt=(()=>{class t extends so{constructor(e){super(e),this.state={},this.__getterCache={}}getChildContext(){return mt({},this.context,{[Rl.id]:this.config||Rl.defaultValue})}get config(){return void 0!==this.__getterCache.config?this.__getterCache.config:this.__getterCache.config=(()=>({rtlEnabled:this.props.rtlEnabled}))()}get restAttributes(){return ki(this.props,Lvt)}componentWillUpdate(e,i,r){this.props.rtlEnabled!==e.rtlEnabled&&(this.__getterCache.config=void 0)}render(){return(t=>t.props.children)({props:mt({},this.props),config:this.config,restAttributes:this.restAttributes})}}return t.defaultProps=Nvt,t})();var Uvt=["_feedbackHideTimeout","_feedbackShowTimeout","accessKey","activeStateEnabled","activeStateUnit","addWidgetClass","aria","children","className","classes","cssText","disabled","focusStateEnabled","height","hint","hoverStateEnabled","name","onActive","onClick","onDimensionChanged","onFocusIn","onFocusOut","onHoverEnd","onHoverStart","onInactive","onKeyDown","onRootElementRendered","onVisibilityChange","rootElementRef","rtlEnabled","tabIndex","visible","width"],$2=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(K2),Object.getOwnPropertyDescriptors({_feedbackHideTimeout:400,_feedbackShowTimeout:30,cssText:"",aria:Object.freeze({}),classes:"",name:"",addWidgetClass:!0})));let q2=(()=>{class t extends Kd{constructor(e){super(e),this.widgetElementRef={current:null},this.state={active:!1,focused:!1,hovered:!1},this.setRootElementRef=this.setRootElementRef.bind(this),this.activeEffect=this.activeEffect.bind(this),this.inactiveEffect=this.inactiveEffect.bind(this),this.clickEffect=this.clickEffect.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.focusInEffect=this.focusInEffect.bind(this),this.focusOutEffect=this.focusOutEffect.bind(this),this.hoverStartEffect=this.hoverStartEffect.bind(this),this.hoverEndEffect=this.hoverEndEffect.bind(this),this.keyboardEffect=this.keyboardEffect.bind(this),this.resizeEffect=this.resizeEffect.bind(this),this.windowResizeEffect=this.windowResizeEffect.bind(this),this.visibilityEffect=this.visibilityEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.applyCssTextEffect=this.applyCssTextEffect.bind(this)}get config(){return this.context[Rl.id]?this.context[Rl.id]:Rl.defaultValue}createEffects(){return[new yo(this.setRootElementRef,[]),new yo(this.activeEffect,[this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),new yo(this.inactiveEffect,[this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),new yo(this.clickEffect,[this.props.disabled,this.props.name,this.props.onClick]),new yo(this.focusInEffect,[this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),new yo(this.focusOutEffect,[this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),new yo(this.hoverStartEffect,[this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),new yo(this.hoverEndEffect,[this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),new yo(this.keyboardEffect,[this.props.focusStateEnabled,this.props.onKeyDown]),new yo(this.resizeEffect,[this.props.name,this.props.onDimensionChanged]),new yo(this.windowResizeEffect,[this.props.onDimensionChanged]),new yo(this.visibilityEffect,[this.props.name,this.props.onVisibilityChange]),new yo(this.checkDeprecation,[this.props.height,this.props.width]),new yo(this.applyCssTextEffect,[this.props.cssText]),$d()]}updateEffects(){var e,i,r,o,a,s,l,u,f,S,T,R,L;null===(e=this._effects[1])||void 0===e||e.update([this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),null===(i=this._effects[2])||void 0===i||i.update([this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),null===(r=this._effects[3])||void 0===r||r.update([this.props.disabled,this.props.name,this.props.onClick]),null===(o=this._effects[4])||void 0===o||o.update([this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),null===(a=this._effects[5])||void 0===a||a.update([this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),null===(s=this._effects[6])||void 0===s||s.update([this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),null===(l=this._effects[7])||void 0===l||l.update([this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),null===(u=this._effects[8])||void 0===u||u.update([this.props.focusStateEnabled,this.props.onKeyDown]),null===(f=this._effects[9])||void 0===f||f.update([this.props.name,this.props.onDimensionChanged]),null===(S=this._effects[10])||void 0===S||S.update([this.props.onDimensionChanged]),null===(T=this._effects[11])||void 0===T||T.update([this.props.name,this.props.onVisibilityChange]),null===(R=this._effects[12])||void 0===R||R.update([this.props.height,this.props.width]),null===(L=this._effects[13])||void 0===L||L.update([this.props.cssText])}setRootElementRef(){var{onRootElementRendered:e,rootElementRef:i}=this.props;i&&(i.current=this.widgetElementRef.current),e?.(this.widgetElementRef.current)}activeEffect(){var{_feedbackShowTimeout:e,activeStateEnabled:i,activeStateUnit:r,disabled:o,onActive:a}=this.props;if(i&&!o)return kvt(this.widgetElementRef.current,l=>{this.setState(u=>({active:!0})),a?.(l)},{timeout:e,selector:r},"UIFeedback")}inactiveEffect(){var{_feedbackHideTimeout:e,activeStateEnabled:i,activeStateUnit:r,onInactive:o}=this.props;if(i)return Mvt(this.widgetElementRef.current,s=>{this.state.active&&(this.setState(l=>({active:!1})),o?.(s))},{timeout:e,selector:r},"UIFeedback")}clickEffect(){var{disabled:e,name:i,onClick:r}=this.props,o=i;if(r&&!e)return function(t,n){var{namespace:e}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Se.on(t,gs("dxclick",e),n)}(this.widgetElementRef.current,r,{namespace:o}),()=>function(t){var{namespace:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Se.off(t,gs("dxclick",n))}(this.widgetElementRef.current,{namespace:o})}focusInEffect(){var{disabled:e,focusStateEnabled:i,name:r,onFocusIn:o}=this.props,a="".concat(r,"Focus");if(i&&!e)return Pvt(this.widgetElementRef.current,s=>{s.isDefaultPrevented()||(this.setState(l=>({focused:!0})),o?.(s))},null,a)}focusOutEffect(){var{focusStateEnabled:e,name:i,onFocusOut:r}=this.props,o="".concat(i,"Focus");if(e)return Rvt(this.widgetElementRef.current,a=>{!a.isDefaultPrevented()&&this.state.focused&&(this.setState(s=>({focused:!1})),r?.(a))},null,o)}hoverStartEffect(){var{activeStateUnit:e,disabled:i,hoverStateEnabled:r,onHoverStart:o}=this.props;if(r&&!i)return Avt(this.widgetElementRef.current,s=>{!this.state.active&&this.setState(l=>({hovered:!0})),o?.(s)},{selector:e},"UIFeedback")}hoverEndEffect(){var{activeStateUnit:e,hoverStateEnabled:i,onHoverEnd:r}=this.props;if(i)return Fvt(this.widgetElementRef.current,a=>{this.state.hovered&&(this.setState(s=>({hovered:!1})),r?.(a))},{selector:e},"UIFeedback")}keyboardEffect(){var{focusStateEnabled:e,onKeyDown:i}=this.props;if(e&&i){var r=Cm_on(this.widgetElementRef.current,this.widgetElementRef.current,o=>i(o));return()=>Cm_off(r)}}resizeEffect(){var e="".concat(this.props.name,"VisibilityChange"),{onDimensionChanged:i}=this.props;if(i)return F2_on(this.widgetElementRef.current,i,{namespace:e}),()=>F2_off(this.widgetElementRef.current,{namespace:e})}windowResizeEffect(){var{onDimensionChanged:e}=this.props;if(e)return fp.add(e),()=>{fp.remove(e)}}visibilityEffect(){var{name:e,onVisibilityChange:i}=this.props,r="".concat(e,"VisibilityChange");if(i)return P2_on(this.widgetElementRef.current,()=>i(!0),()=>i(!1),{namespace:r}),()=>P2_off(this.widgetElementRef.current,{namespace:r})}checkDeprecation(){var{height:e,width:i}=this.props;Yt(i)&&Wr.log("W0017","width"),Yt(e)&&Wr.log("W0017","height")}applyCssTextEffect(){var{cssText:e}=this.props;""!==e&&(this.widgetElementRef.current.style.cssText=e)}get shouldRenderConfigProvider(){var{rtlEnabled:e}=this.props;return function zvt(t,n){var e=Z(t),i=Z(no().rtlEnabled)&&!e&&!Z(n?.rtlEnabled);return e&&t!==n?.rtlEnabled||i}(e,this.config)}get rtlEnabled(){var{rtlEnabled:e}=this.props;return function Hvt(t,n){return void 0!==t?t:void 0!==n?.rtlEnabled?n.rtlEnabled:no().rtlEnabled}(e,this.config)}get attributes(){var{aria:e,disabled:i,focusStateEnabled:r,visible:o}=this.props,a=r&&!i&&this.props.accessKey;return mt({},se({},a&&{accessKey:a}),(t=>Object.keys(t).reduce((n,e)=>t[e]?mt({},n,{["role"===e||"id"===e?e:"aria-".concat(e)]:String(t[e])}):n,{}))(mt({},e,{disabled:i,hidden:!o})),se({},this.restAttributes))}get styles(){var{height:e,width:i}=this.props,r=this.restAttributes.style||{},o=fw("width",Yt(i)?i():i);return mt({},r,{height:fw("height",Yt(e)?e():e)??r.height,width:o??r.width})}get cssClasses(){var{activeStateEnabled:e,addWidgetClass:i,className:r,classes:o,disabled:a,focusStateEnabled:s,hoverStateEnabled:l,onVisibilityChange:u,visible:f}=this.props,S=!!s&&!a,T=!!l&&!a,R=!!e&&!a;return fs({"dx-widget":!!i,[String(o)]:!!o,[String(r)]:!!r,"dx-state-disabled":!!a,"dx-state-invisible":!f,"dx-state-focused":!!this.state.focused&&S,"dx-state-active":!!this.state.active&&R,"dx-state-hover":!!this.state.hovered&&T&&!this.state.active,"dx-rtl":!!this.rtlEnabled,"dx-visibility-change-handler":!!u})}get tabIndex(){var{disabled:e,focusStateEnabled:i,tabIndex:r}=this.props;return i&&!e?r:void 0}get restAttributes(){return ki(this.props,Uvt)}focus(){R2_trigger(this.widgetElementRef.current)}blur(){var e=It.getActiveElement(this.widgetElementRef.current);this.widgetElementRef.current===e&&e.blur()}activate(){this.setState(e=>({active:!0}))}deactivate(){this.setState(e=>({active:!1}))}render(){return(t=>{var n=Nr(er(1,"div",t.cssClasses,t.props.children,0,mt({},t.attributes,{tabIndex:t.tabIndex,title:t.props.hint,style:yg(t.styles)}),null,t.widgetElementRef));return t.shouldRenderConfigProvider?Wn(2,Vvt,{rtlEnabled:t.rtlEnabled,children:n}):n})({props:mt({},this.props),active:this.state.active,focused:this.state.focused,hovered:this.state.hovered,widgetElementRef:this.widgetElementRef,config:this.config,shouldRenderConfigProvider:this.shouldRenderConfigProvider,rtlEnabled:this.rtlEnabled,attributes:this.attributes,styles:this.styles,cssClasses:this.cssClasses,tabIndex:this.tabIndex,restAttributes:this.restAttributes})}}return t.defaultProps=$2,t})();var $vt=["accessKey","activeStateEnabled","children","className","disabled","focusStateEnabled","height","hint","hoverStateEnabled","icon","iconPosition","iconTemplate","onClick","onKeyDown","onSubmit","pressed","rtlEnabled","stylingMode","tabIndex","template","templateData","text","type","useInkRipple","useSubmitBehavior","visible","width"],qvt=["outlined","text","contained"],Xvt=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(K2),Object.getOwnPropertyDescriptors({activeStateEnabled:!0,hoverStateEnabled:!0,icon:"",iconPosition:"left",stylingMode:"contained",text:"",type:"normal",useInkRipple:!1,useSubmitBehavior:!1,templateData:Object.freeze({})}))),bme=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t}([{device:()=>"desktop"===pn.real().deviceType&&!pn.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>io(lu()),options:{useInkRipple:!0}}]),xme=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);class ST extends Kd{constructor(n){super(n),this.state={},this.contentRef={current:null},this.inkRippleRef={current:null},this.submitInputRef={current:null},this.widgetRef={current:null},this.__getterCache={},this.focus=this.focus.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.submitEffect=this.submitEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.onActive=this.onActive.bind(this),this.onInactive=this.onInactive.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[new yo(this.submitEffect,[this.props.onSubmit,this.props.useSubmitBehavior]),new yo(this.checkDeprecation,[this.props.type]),$d()]}updateEffects(){var n,e;null===(n=this._effects[0])||void 0===n||n.update([this.props.onSubmit,this.props.useSubmitBehavior]),null===(e=this._effects[1])||void 0===e||e.update([this.props.type])}submitEffect(){var{onSubmit:n,useSubmitBehavior:e}=this.props;if(e&&n)return function(t,n){var{namespace:e}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Se.on(t,gs("click",e),n)}(this.submitInputRef.current,i=>n({event:i,submitInput:this.submitInputRef.current}),{namespace:"UIFeedback"}),()=>function(t){var{namespace:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Se.off(t,gs("click",n))}(this.submitInputRef.current,{namespace:"UIFeedback"})}checkDeprecation(){var{type:n}=this.props;"back"===n&&Wr.log("W0016","type","back","22.2","Use the 'back' icon instead")}onActive(n){var{useInkRipple:e}=this.props;e&&this.inkRippleRef.current.showWave({element:this.contentRef.current,event:n})}onInactive(n){var{useInkRipple:e}=this.props;e&&this.inkRippleRef.current.hideWave({element:this.contentRef.current,event:n})}onWidgetClick(n){var{onClick:e,useSubmitBehavior:i}=this.props;e?.({event:n}),i&&this.submitInputRef.current.click()}keyDown(n){var{onKeyDown:e}=this.props,{keyName:i,originalEvent:r,which:o}=n,a=e?.(n);if(null!=a&&a.cancel)return a;("space"===i||"space"===o||"enter"===i||"enter"===o)&&(r.preventDefault(),this.onWidgetClick(r))}get aria(){var{icon:n,text:e}=this.props,i=(e??"")||ye.format(dd(n,!0))||n;return!e&&n&&"image"===fT(n)&&(i=n.includes("base64")?"Base64":n.replace(/.+\/([^.]+)\..+$/,"$1")),mt({role:"button"},i?{label:i}:{})}get cssClasses(){return(t=>{var{icon:n,iconPosition:e,stylingMode:i,text:r,type:o}=t,a=i&&qvt.includes(i);return fs({"dx-button":!0,["dx-button-mode-".concat(a?i:"contained")]:!0,["dx-button-".concat(o??"normal")]:!0,"dx-button-has-text":!!r,"dx-button-has-icon":!!n,"dx-button-icon-right":"left"!==e})})(this.props)}get iconSource(){var{icon:n,type:e}=this.props;return n||"back"===e?(n??"")||"back":""}get inkRippleConfig(){return void 0!==this.__getterCache.inkRippleConfig?this.__getterCache.inkRippleConfig:this.__getterCache.inkRippleConfig=(()=>{var{icon:n,text:e,type:i}=this.props;return!e&&n||"back"===i?{isCentered:!0,useHoldAnimation:!1,waveSizeCoefficient:1}:{}})()}get buttonTemplateData(){var{icon:n,templateData:e,text:i}=this.props;return mt({icon:n,text:i},e)}get restAttributes(){return ki(this.props,$vt)}focus(){this.widgetRef.current.focus()}activate(){this.widgetRef.current.activate()}deactivate(){this.widgetRef.current.deactivate()}componentWillUpdate(n,e,i){super.componentWillUpdate(),(this.props.icon!==n.icon||this.props.text!==n.text||this.props.type!==n.type)&&(this.__getterCache.inkRippleConfig=void 0)}render(){var n=this.props;return(t=>{var{children:n,iconPosition:e,iconTemplate:i,template:r,text:o}=t.props,a=!t.props.template&&!n&&""!==o,s="left"===e,l=!t.props.template&&!n&&(t.iconSource||t.props.iconTemplate)&&Wn(2,k_t,{source:t.iconSource,position:e,iconTemplate:i});return Nr(Wn(2,q2,mt({accessKey:t.props.accessKey,activeStateEnabled:t.props.activeStateEnabled,aria:t.aria,className:t.props.className,classes:t.cssClasses,disabled:t.props.disabled,focusStateEnabled:t.props.focusStateEnabled,height:t.props.height,hint:t.props.hint,hoverStateEnabled:t.props.hoverStateEnabled,onActive:t.onActive,onClick:t.onWidgetClick,onInactive:t.onInactive,onKeyDown:t.keyDown,rtlEnabled:t.props.rtlEnabled,tabIndex:t.props.tabIndex,visible:t.props.visible,width:t.props.width},t.restAttributes,{children:er(1,"div","dx-button-content",[t.props.template&&r({data:t.buttonTemplateData}),!t.props.template&&n,s&&l,a&&er(1,"span","dx-button-text",o,0),!s&&l,t.props.useSubmitBehavior&&er(64,"input","dx-button-submit-input",null,1,{type:"submit",tabIndex:-1},null,t.submitInputRef),t.props.useInkRipple&&Wn(2,z_t,{config:t.inkRippleConfig},null,t.inkRippleRef)],0,null,null,t.contentRef)}),null,t.widgetRef))})({props:mt({},n,{template:xme(n.template),iconTemplate:xme(n.iconTemplate)}),contentRef:this.contentRef,submitInputRef:this.submitInputRef,inkRippleRef:this.inkRippleRef,widgetRef:this.widgetRef,onActive:this.onActive,onInactive:this.onInactive,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,aria:this.aria,cssClasses:this.cssClasses,iconSource:this.iconSource,inkRippleConfig:this.inkRippleConfig,buttonTemplateData:this.buttonTemplateData,restAttributes:this.restAttributes})}}ST.defaultProps=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(Xvt),Object.getOwnPropertyDescriptors(mt({},Iw(bme)))));var wme=[];class OW extends c_t{getProps(){var n=super.getProps();return n.onKeyDown=this._wrapKeyDownHandler(n.onKeyDown),n}focus(){var n;return null===(n=this.viewRef)||void 0===n?void 0:n.focus(...arguments)}activate(){var n;return null===(n=this.viewRef)||void 0===n?void 0:n.activate(...arguments)}deactivate(){var n;return null===(n=this.viewRef)||void 0===n?void 0:n.deactivate(...arguments)}_getActionConfigs(){return{onClick:{excludeValidators:["readOnly"]},onSubmit:{}}}get _propsInfo(){return{twoWay:[],allowNull:[],elements:["onSubmit"],templates:["template","iconTemplate"],props:["activeStateEnabled","hoverStateEnabled","icon","iconPosition","onClick","onSubmit","pressed","stylingMode","template","iconTemplate","text","type","useInkRipple","useSubmitBehavior","templateData","className","accessKey","disabled","focusStateEnabled","height","hint","onKeyDown","rtlEnabled","tabIndex","visible","width"]}}get _viewComponent(){return ST}}On("dxButton",OW),OW.defaultOptions=function Jvt(t){wme.push(t),ST.defaultProps=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(ST.defaultProps),Object.getOwnPropertyDescriptors(Iw(bme)),Object.getOwnPropertyDescriptors(Iw(wme))))};const To=OW;var Qvt=Se.one,Sme=Se.triggerHandler,Y2=Se.Event;class Dme{constructor(n,e){this.instance=n,this.zone=e,this.subscriptions={},this.events={}}hasEvent(n){return 0!==this.getEmitter(n).observers.length}fireEvent(n,e){let i=this.getEmitter(n);i.observers.length&&((this.subscriptions[n]||[]).length===i.observers.length?i.next(e&&e[0]):this.zone.run(()=>i.next(e&&e[0])))}on(n,e){if("string"==typeof n){let i=this.subscriptions[n]||[],r=this.getEmitter(n).subscribe(e.bind(this.instance)),o=r.unsubscribe.bind(r);i.push({handler:e,unsubscribe:o}),this.subscriptions[n]=i}else{let i=n;Object.keys(i).forEach(r=>this.on(r,i[r]))}}off(n,e){let i=this.subscriptions[n]||[];e?i.some((r,o)=>{if(r.handler===e)return r.unsubscribe(),i.splice(o,1),!0}):(i.forEach(r=>{r.unsubscribe()}),i.splice(0,i.length))}dispose(){}addEmitter(n,e){this.events[n]=e}getEmitter(n){return this.events[n]||(this.events[n]=new qi),this.events[n]}}class eyt{constructor(n,e){this.zone=n,this.component=e,this.lockedValueChangeEvent=!1}fireNgEvent(n,e){if(this.lockedValueChangeEvent&&"valueChange"===n)return;let i=this.component[n];i&&i.observers.length&&this.zone.run(()=>{i.next(e&&e[0])})}createEmitters(n){n.forEach(e=>{this.component[e.emit]=new qi})}}function Eme(t){return t.get?t.get(0):t}class Zt{setHost(n){this.host=n}setTemplate(n){this.host.setTemplate(n)}}const Ome="dx-template-wrapper";let Z2=(()=>{class t{constructor(e,i,r,o,a){this.templateRef=e,this.viewContainerRef=i,this.renderer=o,this.zone=a,r.setTemplate(this)}set dxTemplateOf(e){this.name=e}renderTemplate(e){const i=this.viewContainerRef.createEmbeddedView(this.templateRef,{$implicit:e.model,index:e.index}),r=Eme(e.container);return e.container&&i.rootNodes.forEach(o=>{this.renderer.appendChild(r,o)}),i}render(e){let i;return i=this.zone.isStable?this.zone.run(()=>this.renderTemplate(e)):this.renderTemplate(e),i.detectChanges(),i.rootNodes.forEach(r=>{1===r.nodeType&&It.setClass(r,Ome,!0),Qvt(r,"dxremove",({},o)=>{(!o||!o._angularIntegration)&&i.destroy()})}),i.rootNodes}}return t.\u0275fac=function(e){return new(e||t)($(eg),$(oh),$(Zt),$(bu),$(Un))},t.\u0275dir=sr({type:t,selectors:[["","dxTemplate",""]],inputs:{dxTemplateOf:"dxTemplateOf"}}),t})(),tn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})();const Tme="dx-visibility-change-handler";let Ime=(()=>{class t{constructor(){this._initialOptions={},this._collectionContainerImpl=new kme(this._setOption.bind(this),this._filterItems.bind(this))}_optionChangedHandler(e){let i=this._fullOptionPath();if(0===e.fullName.indexOf(i)){let o=this[e.fullName.slice(i.length)+"Change"];o&&o.next(e.value)}}_createEventEmitters(e){e.forEach(i=>{this[i.emit]=new qi})}_getOption(e){return this.isLinked?this.instance.option(this._fullOptionPath()+e):this._initialOptions[e]}_setOption(e,i){if(this.isLinked){const r=this._fullOptionPath()+e;this.instance.option(r,i)}else this._initialOptions[e]=i}_addRemovedOption(e){this.instance&&this.removedNestedComponents&&this.removedNestedComponents.push(e)}_deleteRemovedOptions(e){this.instance&&this.removedNestedComponents&&(this.removedNestedComponents=this.removedNestedComponents.filter(i=>!i.startsWith(e)))}_addRecreatedComponent(){this.instance&&this.recreatedNestedComponents&&this.recreatedNestedComponents.push({getOptionPath:()=>this._getOptionPath()})}_getOptionPath(){return this._hostOptionPath()+this._optionPath}setHost(e,i){this._host=e,this._hostOptionPath=i,this.optionChangedHandlers.subscribe(this._optionChangedHandler.bind(this))}setChildren(e,i){return this.resetOptions(e),this._collectionContainerImpl.setChildren(e,i)}_filterItems(e){return e.filter(i=>i!==this)}get instance(){return this._host&&this._host.instance}get resetOptions(){return this._host&&this._host.resetOptions}get isRecreated(){return this._host&&this._host.isRecreated}get removedNestedComponents(){return this._host&&this._host.removedNestedComponents}set removedNestedComponents(e){this._host.removedNestedComponents=e}get recreatedNestedComponents(){return this._host&&this._host.recreatedNestedComponents}set recreatedNestedComponents(e){this._host.recreatedNestedComponents=e}get isLinked(){return!!this.instance&&this._host.isLinked}get optionChangedHandlers(){return this._host&&this._host.optionChangedHandlers}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();class kme{constructor(n,e){this._setOption=n,this._filterItems=e,this._activatedQueries={}}setChildren(n,e){if(this._filterItems&&(e=this._filterItems(e)),e.length&&(this._activatedQueries[n]=!0),this._activatedQueries[n]){let i=e.map((r,o)=>(r._index=o,r._value));this._setOption(n,i)}}}let Xt=(()=>{class t extends Ime{setHost(e,i){super.setHost(e,i),this._host[this._optionPath]=this._initialOptions}_fullOptionPath(){return this._getOptionPath()+"."}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),ro=(()=>{class t extends Ime{_fullOptionPath(){return`${this._getOptionPath()}[${this._index}].`}get _value(){return this._initialOptions}get isLinked(){return void 0!==this._index&&!!this.instance&&this._host.isLinked}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();function DT(t,n,e,i){void 0===!t.template||!n.nativeElement.hasChildNodes()||![].slice.call(n.nativeElement.childNodes).filter(a=>{if(a.tagName){let s=a.tagName.toLowerCase().substr(0,3);return!("dxi"===s||"dxo"===s)}return"#comment"!==a.nodeName&&a.textContent.replace(/\s/g,"").length}).length||(t.template={render:a=>{let s=n.nativeElement;if(It.setClass(s,Ome,!0),a.container){let l=Eme(a.container),u=l.contains(n.nativeElement);e.appendChild(l,n.nativeElement),u||i.body.contains(l)&&function(t){let n=[];U(t).hasClass(Tme)||n.push(t),n.push.apply(n,t.querySelectorAll("."+Tme));for(let e=0;e<n.length;e++)Sme(n[e],"dxshown")}(s)}return s}})}class ue{getHost(){return this._host}setHost(n,e){this._host=n,this._optionPath=e||(()=>"")}setNestedOption(n){n.setHost(this._host,this._optionPath)}}let TW,nn=(()=>{class t{constructor(){this._watchers=[]}getWatchMethod(){return(i,r,o)=>{let a=i();(o=o||{}).skipImmediate||r(a);let s=()=>{let l=i();this._isDifferentValues(a,l,o.deep)&&(r(l),a=l)};return this._watchers.push(s),()=>{let l=this._watchers.indexOf(s);-1!==l&&this._watchers.splice(l,1)}}}_isDifferentValues(e,i,r){let o=this._toComparable(i),a=this._toComparable(e);return r&&o instanceof Object&&a instanceof Object?this._checkObjectsFields(i,e):o!==a}_toComparable(e){return e instanceof Date?e.getTime():e}_checkObjectsFields(e,i){for(let r in e){let o=this._toComparable(e[r]),a=this._toComparable(i[r]),s=!1;if("object"==typeof o&&"object"==typeof a&&(s=Tr(o,a)),o!==a&&!s)return!0}}checkWatchers(){for(let e of this._watchers)e()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();const IW=()=>(TW||(TW="DX_isPlatformServer"),TW);let Ci=(()=>{class t{constructor(e,i,r,o,a,s){this.element=e,this.ngZone=i,this.watcherHelper=o,this.transferState=a,this.platformId=s,this._initialOptions={},this._optionsToUpdate={},this.optionChangedHandlers=new qi,this.isLinked=!0,this.changedOptions={},this.removedNestedComponents=[],this.widgetUpdateLocked=!1,this.templateUpdateRequired=!1,this.templates=[],r.setHost(this),this._collectionContainerImpl=new kme(this._setOption.bind(this)),this.eventHelper=new eyt(i,this)}_updateTemplates(){if(this.templates.length&&this.templateUpdateRequired){let e={};this.templates.forEach(i=>{e[i.name]=i}),this.instance.option("integrationOptions.templates",e),this.templates=Object.values(e),this.templateUpdateRequired=!1}}_initEvents(){this.instance.on("optionChanged",e=>{this.changedOptions[e.name]=e.value;const i=e.name===e.fullName?e.value:e.component.option(e.name);this.eventHelper.fireNgEvent(e.name+"Change",[i]),this.optionChangedHandlers.emit(e)})}_initOptions(){this._initialOptions.integrationOptions.watchMethod=this.watcherHelper.getWatchMethod()}_initPlatform(){this.transferState.hasKey(IW())?this._initialOptions.integrationOptions.renderedOnServer=this.transferState.get(IW(),null):function fse(t){return"server"===t}(this.platformId)&&this.transferState.set(IW(),!0)}_createEventEmitters(e){const i=this.ngZone;this.eventHelper.createEmitters(e),this._initialOptions.eventsStrategy=r=>{let o=new Dme(r,i);return e.filter(a=>a.subscribe).forEach(a=>{o.addEmitter(a.subscribe,this[a.emit])}),o},this._initialOptions.nestedComponentOptions=function(r){return{eventsStrategy:o=>new Dme(o,i),nestedComponentOptions:r.option("nestedComponentOptions")}}}_shouldOptionChange(e,i){if(this.changedOptions.hasOwnProperty(e)){const r=this.changedOptions[e];return delete this.changedOptions[e],i!==r}return!0}clearChangedOptions(){this.changedOptions={}}_getOption(e){return this.instance?this.instance.option(e):this._initialOptions[e]}lockWidgetUpdate(){!this.widgetUpdateLocked&&this.instance&&(this.instance.beginUpdate(),this.widgetUpdateLocked=!0)}unlockWidgetUpdate(){this.widgetUpdateLocked&&(this.widgetUpdateLocked=!1,this.instance.endUpdate())}_setOption(e,i){this.lockWidgetUpdate(),this._shouldOptionChange(e,i)&&(this.instance?this.instance.option(e,i):this._initialOptions[e]=i)}_createWidget(e){this._initialOptions.integrationOptions={},this._initPlatform(),this._initOptions(),this._initialOptions.onInitializing=function(){this.beginUpdate()},this.instance=this._createInstance(e,this._initialOptions),this._initEvents(),this._initialOptions={}}_destroyWidget(){if(this.removedNestedComponents=[],this.instance){let e=this.instance.element();Sme(e,"dxremove",{_angularIntegration:!0}),this.instance.dispose(),It.removeElement(e)}}ngOnChanges(e){for(let i in e)e[i].currentValue!==this[i]&&(this._optionsToUpdate[i]=e[i].currentValue)}ngOnInit(){this._createWidget(this.element.nativeElement)}ngDoCheck(){this.applyOptions()}ngAfterContentChecked(){this._updateTemplates(),this.applyOptions(),this.resetOptions(),this.unlockWidgetUpdate()}ngAfterViewInit(){this._updateTemplates(),this.instance.endUpdate(),this.recreatedNestedComponents=[]}applyOptions(){Object.keys(this._optionsToUpdate).length&&(this.instance&&this.instance.option(this._optionsToUpdate),this._optionsToUpdate={})}resetOptions(e){this.instance&&(this.removedNestedComponents.filter(i=>!(i&&!this.isRecreated(i)&&e)||i.startsWith(e)).forEach(i=>{this.instance.resetOption(i)}),this.removedNestedComponents=[],this.recreatedNestedComponents=[])}isRecreated(e){return this.recreatedNestedComponents&&this.recreatedNestedComponents.some(i=>i.getOptionPath()===e)}setTemplate(e){this.templates.push(e),this.templateUpdateRequired=!0}setChildren(e,i){return this.resetOptions(e),this._collectionContainerImpl.setChildren(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),nyt=(()=>{class t extends Ci{createInstance(e){this._createWidget(e)}ngOnInit(){}ngAfterViewInit(){this._createWidget(this.element.nativeElement),this.instance.endUpdate()}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})();const iyt=["mousemove","mouseover","mouseout"],ryt=["mouseup","click","mousedown","transitionend","wheel"];let kW,MW=[],Mme=function(t){kW||(kW=this.callBase.bind(this)),MW.push(t)};gd.inject({add:function(t){return Mme.call(this,t)}});let Ame=(t,n,e)=>{Number(mie.major)<12&&console.warn("Your version of Angular is not supported. Please update your project to version 12 or later. Please refer to the Angular Update Guide for more information: https://update.angular.io"),It.inject({_document:t,listen:function(...r){const o=r[1];return-1!==iyt.indexOf(o)?n.runOutsideAngular(()=>this.callBase.apply(this,r)):n.isStable&&-1!==ryt.indexOf(o)?n.run(()=>this.callBase.apply(this,r)):this.callBase.apply(this,r)},isElementNode:function(r){return r&&1===r.nodeType},isTextNode:function(r){return r&&3===r.nodeType},isDocument:function(r){return r&&9===r.nodeType}}),Wce.inject({getXhr:function(){if(!e)return this.callBase.apply(this);let r=e.build();return"withCredentials"in r||(r.withCredentials=!1),r}});const i=()=>{n.run(()=>{Se.set({}),MW.forEach(r=>kW.call(null,r)),MW=[],gd.fire()})};i(),Mme=r=>n.run(()=>r()),Ame=i},bi=(()=>{class t{constructor(e,i,r){Ame(e,i,r)}}return t.\u0275fac=function(e){return new(e||t)(qt(Ko),qt(Un),qt(SXe,8))},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Sn=(()=>{class t{constructor(e){this._differs=e,this._propertyDiffers={}}setHost(e){this._host=e}setup(e,i){e in i&&this.setupSingle(e,i[e].currentValue)}setupSingle(e,i){if(i&&Array.isArray(i)){if(!this._propertyDiffers[e])try{return this._propertyDiffers[e]=this._differs.find(i).create(null),!0}catch{}}else delete this._propertyDiffers[e];return!1}getChanges(e,i){if(this._propertyDiffers[e])return this._propertyDiffers[e].diff(i)}checkChangedOptions(e,i){return this._host.changedOptions[e]===i}doCheck(e){if(this._propertyDiffers[e]){let i=this._host[e],r=this.checkChangedOptions(e,i);this.getChanges(e,i)&&this._host.instance&&!r&&(this._host.lockWidgetUpdate(),this._host.instance.option(e,i))}}}return t.\u0275fac=function(e){return new(e||t)(qt(vE))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();const oyt=["*"];let ET=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l){super(e,i,r,o,s,l),this._createEventEmitters([{subscribe:"click",emit:"onClick"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"iconChange"},{emit:"rtlEnabledChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"templateChange"},{emit:"textChange"},{emit:"typeChange"},{emit:"useSubmitBehaviorChange"},{emit:"validationGroupChange"},{emit:"visibleChange"},{emit:"widthChange"}]),a.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get icon(){return this._getOption("icon")}set icon(e){this._setOption("icon",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get template(){return this._getOption("template")}set template(e){this._setOption("template",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get type(){return this._getOption("type")}set type(e){this._setOption("type",e)}get useSubmitBehavior(){return this._getOption("useSubmitBehavior")}set useSubmitBehavior(e){this._setOption("useSubmitBehavior",e)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(e){this._setOption("validationGroup",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}_createInstance(e,i){return new To(e,i)}ngOnDestroy(){this._destroyWidget()}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-button"]],inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",icon:"icon",rtlEnabled:"rtlEnabled",stylingMode:"stylingMode",tabIndex:"tabIndex",template:"template",text:"text",type:"type",useSubmitBehavior:"useSubmitBehavior",validationGroup:"validationGroup",visible:"visible",width:"width"},outputs:{onClick:"onClick",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",iconChange:"iconChange",rtlEnabledChange:"rtlEnabledChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",templateChange:"templateChange",textChange:"textChange",typeChange:"typeChange",useSubmitBehaviorChange:"useSubmitBehaviorChange",validationGroupChange:"validationGroupChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[ot([Zt,nn,ue]),qe],ngContentSelectors:oyt,decls:1,vars:0,template:function(e,i){1&e&&(nl(),As(0))},encapsulation:2}),t})(),Fme=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})();class OT{constructor(n,e,i,r,o,a){this.chatRoomService=n,this.chatRelayService=e,this.authenticationService=i,this.chatroomCache=r,this.router=o,this.scopeService=a,this.otherUserGuid="Parameter is not there",this.chatIsEnabled=!0,this.buttonDisabled=!1,this.buttonText="",this.scope=this.scopeService.getScope()}ngOnInit(){this.chatIsEnabled=typeof this.scope.network.settings.configurations.enableChat<"u"&&this.scope.network.settings.configurations.enableChat&&(this.scope.network.settings.configurations.chatConfiguration?.OneToOneEnabled??!0),this.buttonText=this.scope.network.getResourceOrKeyName("web_chat_open_or_create_one_to_one")}createOrOpenChat(){var n=new Ni(this.otherUserGuid);this.buttonDisabled=!0,this.chatRoomService.createOneToOneChat(n).subscribe(e=>{this.chatRelayService.addToChatroom(e.id.toString()),this.authenticationService.expireToken(this).then(i=>{this.chatroomCache.rebuildCacheAndGetArrayStore(this).then(r=>{this.router.navigate(["/chat"]).then(o=>{this.router.navigate([`/chat/room/${e.id}`]).then(a=>{})})})})})}}OT.\u0275fac=function(n){return new(n||OT)($(hg),$(ud),$(Eu),$(Dc),$(ds),$(bo))},OT.\u0275cmp=je({type:OT,selectors:[["app-chat-one-to-one-action-button"]],inputs:{otherUserGuid:"otherUserGuid"},decls:1,vars:3,consts:[["icon","fas fa-comments","stylingMode","contained","type","default",3,"text","visible","disabled","onClick"]],template:function(n,e){1&n&&(Ot(0,"dx-button",0),fn("onClick",function(){return e.createOrOpenChat()}),Pt()),2&n&&Tt("text",e.buttonText)("visible",e.chatIsEnabled)("disabled",e.buttonDisabled)},dependencies:[ET]});const syt=JSON.parse('{"de":{"Yes":"Ja","No":"Nein","Cancel":"Abbrechen","Close":"Schlie\xdfen","Clear":"L\xf6schen","Done":"Fertig","Loading":"Laden...","Select":"Ausw\xe4hlen...","Search":"Suchen...","Back":"Zur\xfcck","OK":"OK","dxCollectionWidget-noDataText":"Keine Daten verf\xfcgbar","dxDropDownEditor-selectLabel":"Ausw\xe4hlen","validation-required":"Pflichtfeld","validation-required-formatted":"{0} ist ein Pflichtfeld","validation-numeric":"Der Wert muss eine Zahl sein","validation-numeric-formatted":"{0} muss eine Zahl sein","validation-range":"Der Wert ist nicht im g\xfcltigen Bereich","validation-range-formatted":"{0} ist nicht im g\xfcltigen Bereich","validation-stringLength":"Die L\xe4nge des Wertes ist nicht korrekt","validation-stringLength-formatted":"Die L\xe4nge von {0} ist nicht korrekt","validation-custom":"Der Wert ist ung\xfcltig","validation-custom-formatted":"{0} ist ung\xfcltig","validation-async":"Der Wert ist ung\xfcltig","validation-async-formatted":"{0} ist ung\xfcltig","validation-compare":"Der Wert ist unpassend","validation-compare-formatted":"{0} ist unpassend","validation-pattern":"Der Wert passt nicht zum Muster","validation-pattern-formatted":"{0} passt nicht zum Muster","validation-email":"Die Email-Adresse ist ung\xfcltig","validation-email-formatted":"{0} ist ung\xfcltig","validation-mask":"Der Wert ist ung\xfcltig","dxLookup-searchPlaceholder":"Minimale Anzahl Zeichen: {0}","dxList-pullingDownText":"Zum Aktualisieren nach unten ziehen","dxList-pulledDownText":"Zum Aktualisieren loslassen","dxList-refreshingText":"Aktualisiere...","dxList-pageLoadingText":"Laden...","dxList-nextButtonText":"Mehr","dxList-selectAll":"Alles ausw\xe4hlen","dxListEditDecorator-delete":"Entfernen","dxListEditDecorator-more":"Mehr","dxScrollView-pullingDownText":"Zum Aktualisieren nach unten ziehen","dxScrollView-pulledDownText":"Zum Aktualisieren loslassen","dxScrollView-refreshingText":"Aktualisiere...","dxScrollView-reachBottomText":"Laden...","dxDateBox-simulatedDataPickerTitleTime":"Zeit ausw\xe4hlen","dxDateBox-simulatedDataPickerTitleDate":"Datum ausw\xe4hlen","dxDateBox-simulatedDataPickerTitleDateTime":"Datum und Zeit ausw\xe4hlen","dxDateBox-validation-datetime":"Der Wert muss ein Datum oder eine Uhrzeit sein","dxFileUploader-selectFile":"Datei ausw\xe4hlen","dxFileUploader-dropFile":"oder hierher ziehen","dxFileUploader-bytes":"Bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Hochladen","dxFileUploader-uploaded":"Hochgeladen","dxFileUploader-readyToUpload":"Bereit zum hochladen","dxFileUploader-uploadAbortedMessage":"Upload abgebrochen","dxFileUploader-uploadFailedMessage":"Fehler beim hochladen","dxFileUploader-invalidFileExtension":"Unzul\xe4ssiger Dateityp","dxFileUploader-invalidMaxFileSize":"Datei ist zu gro\xdf","dxFileUploader-invalidMinFileSize":"Datei ist zu klein","dxRangeSlider-ariaFrom":"Von","dxRangeSlider-ariaTill":"Bis","dxSwitch-switchedOnText":"EIN","dxSwitch-switchedOffText":"AUS","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} ist ein Pflichtfeld","dxNumberBox-invalidValueMessage":"Der Wert muss eine Zahl sein","dxNumberBox-noDataText":"Keine Daten","dxDataGrid-columnChooserTitle":"Spaltenauswahl","dxDataGrid-columnChooserEmptyText":"Ziehen Sie Spalten hierhin, um sie zu verstecken","dxDataGrid-groupContinuesMessage":"Weiter auf der n\xe4chsten Seite","dxDataGrid-groupContinuedMessage":"Weiter von der vorherigen Seite","dxDataGrid-groupHeaderText":"Nach dieser Spalte gruppieren","dxDataGrid-ungroupHeaderText":"Gruppierung entfernen","dxDataGrid-ungroupAllText":"Alle Gruppierungen entfernen","dxDataGrid-editingEditRow":"Bearbeiten","dxDataGrid-editingSaveRowChanges":"Speichern","dxDataGrid-editingCancelRowChanges":"Abbrechen","dxDataGrid-editingDeleteRow":"Entfernen","dxDataGrid-editingUndeleteRow":"Wiederherstellen","dxDataGrid-editingConfirmDeleteMessage":"Sind Sie sicher, dass Sie diesen Datensatz l\xf6schen wollen?","dxDataGrid-validationCancelChanges":"\xc4nderungen verwerfen","dxDataGrid-groupPanelEmptyText":"Ziehen Sie eine Spalte hierhin, um danach zu gruppieren","dxDataGrid-noDataText":"Keine Daten","dxDataGrid-searchPanelPlaceholder":"Suchen...","dxDataGrid-filterRowShowAllText":"(Alle)","dxDataGrid-filterRowResetOperationText":"Zur\xfccksetzen","dxDataGrid-filterRowOperationEquals":"Ist gleich","dxDataGrid-filterRowOperationNotEquals":"Ist nicht gleich","dxDataGrid-filterRowOperationLess":"Kleiner als","dxDataGrid-filterRowOperationLessOrEquals":"Kleiner oder gleich","dxDataGrid-filterRowOperationGreater":"Gr\xf6\xdfer als","dxDataGrid-filterRowOperationGreaterOrEquals":"Gr\xf6\xdfer oder gleich","dxDataGrid-filterRowOperationStartsWith":"Beginnt mit","dxDataGrid-filterRowOperationContains":"Enth\xe4lt","dxDataGrid-filterRowOperationNotContains":"Enth\xe4lt nicht","dxDataGrid-filterRowOperationEndsWith":"Endet mit","dxDataGrid-filterRowOperationBetween":"Zwischen","dxDataGrid-filterRowOperationBetweenStartText":"Anfang","dxDataGrid-filterRowOperationBetweenEndText":"Ende","dxDataGrid-applyFilterText":"Filter anwenden","dxDataGrid-trueText":"wahr","dxDataGrid-falseText":"falsch","dxDataGrid-sortingAscendingText":"Aufsteigend sortieren","dxDataGrid-sortingDescendingText":"Absteigend sortieren","dxDataGrid-sortingClearText":"Sortierung aufheben","dxDataGrid-editingSaveAllChanges":"\xc4nderungen speichern","dxDataGrid-editingCancelAllChanges":"\xc4nderungen verwerfen","dxDataGrid-editingAddRow":"Neue Zeile","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Minimum von {1} ist {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Maximum von {1} ist {0}","dxDataGrid-summaryAvg":"\xd8: {0}","dxDataGrid-summaryAvgOtherColumn":"Durchschnitt von {1} ist {0}","dxDataGrid-summarySum":"Summe: {0}","dxDataGrid-summarySumOtherColumn":"Summe von {1} ist {0}","dxDataGrid-summaryCount":"Anzahl: {0}","dxDataGrid-columnFixingFix":"Fixieren","dxDataGrid-columnFixingUnfix":"L\xf6sen","dxDataGrid-columnFixingLeftPosition":"Nach links","dxDataGrid-columnFixingRightPosition":"Nach rechts","dxDataGrid-exportTo":"Exportieren","dxDataGrid-exportToExcel":"Exportieren als Excel-Datei","dxDataGrid-exporting":"Exportieren ...","dxDataGrid-excelFormat":"Excel-Datei","dxDataGrid-selectedRows":"Ausgew\xe4hlte Zeilen","dxDataGrid-exportSelectedRows":"Ausgew\xe4hlte Zeilen exportieren nach {0}","dxDataGrid-exportAll":"Alle Daten exportieren nach {0}","dxDataGrid-headerFilterLabel":"Filteroptionen","dxDataGrid-headerFilterIndicatorLabel":"Filteroptionen f\xfcr Spalte \'{0}\' anzeigen","dxDataGrid-headerFilterEmptyValue":"(Leerwerte)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Abbrechen","dxDataGrid-ariaAdaptiveCollapse":"Zus\xe4tzliche Spalten verstecken","dxDataGrid-ariaAdaptiveExpand":"Zus\xe4tzliche Spalten anzeigen","dxDataGrid-ariaColumn":"Spalte","dxDataGrid-ariaValue":"Wert","dxDataGrid-ariaFilterCell":"Filterzelle","dxDataGrid-ariaCollapse":"Zusammenklappen","dxDataGrid-ariaExpand":"Aufklappen","dxDataGrid-ariaDataGrid":"Datentabelle","dxDataGrid-ariaSearchInGrid":"Suchen in der Datentabelle","dxDataGrid-ariaSelectAll":"Alle ausw\xe4hlen","dxDataGrid-ariaSelectRow":"Zeile ausw\xe4hlen","dxDataGrid-ariaToolbar":"Symbolleiste der Datentabelle","dxDataGrid-filterBuilderPopupTitle":"Filter-Generator","dxDataGrid-filterPanelCreateFilter":"Filter erzeugen","dxDataGrid-filterPanelClearFilter":"Zur\xfccksetzen","dxDataGrid-filterPanelFilterEnabledHint":"Filter aktivieren","dxTreeList-ariaTreeList":"Strukturliste","dxTreeList-ariaSearchInGrid":"Suchen in der Strukturliste","dxTreeList-ariaToolbar":"Symbolleiste der Strukturliste","dxTreeList-editingAddRowToNode":"Hinzuf\xfcgen","dxPager-infoText":"Seite {0} von {1} ({2} Elemente)","dxPager-pagesCountText":"von","dxPager-pageSize":"Elemente pro Seite: {0}","dxPager-pageSizesAllText":"Alle","dxPager-page":"Seite {0}","dxPager-prevPage":"Vorherige Seite","dxPager-nextPage":"N\xe4chste Seite","dxPager-ariaLabel":"Seitennavigation","dxPivotGrid-grandTotal":"Gesamt","dxPivotGrid-total":"{0} Gesamt","dxPivotGrid-fieldChooserTitle":"Feldauswahl","dxPivotGrid-showFieldChooser":"Feldauswahl anzeigen","dxPivotGrid-expandAll":"Alle aufklappen","dxPivotGrid-collapseAll":"Alle zusammenklappen","dxPivotGrid-sortColumnBySummary":"\\"{0}\\" nach dieser Spalte sortieren","dxPivotGrid-sortRowBySummary":"\\"{0}\\" nach dieser Zeile sortieren","dxPivotGrid-removeAllSorting":"Sortierungen entfernen","dxPivotGrid-dataNotAvailable":"Entf.","dxPivotGrid-rowFields":"Zeilenfelder","dxPivotGrid-columnFields":"Spaltenfelder","dxPivotGrid-dataFields":"Datenfelder","dxPivotGrid-filterFields":"Filterfelder","dxPivotGrid-allFields":"Alle Felder","dxPivotGrid-columnFieldArea":"Spaltenfelder hierher ziehen","dxPivotGrid-dataFieldArea":"Datenfelder hierher ziehen","dxPivotGrid-rowFieldArea":"Zeilenfelder hierher ziehen","dxPivotGrid-filterFieldArea":"Filterfelder hierher ziehen","dxScheduler-editorLabelTitle":"Betreff","dxScheduler-editorLabelStartDate":"Anfangszeit","dxScheduler-editorLabelEndDate":"Endzeit","dxScheduler-editorLabelDescription":"Beschreibung","dxScheduler-editorLabelRecurrence":"Wiederholen","dxScheduler-openAppointment":"Termin \xf6ffnen","dxScheduler-recurrenceNever":"Nie","dxScheduler-recurrenceMinutely":"Min\xfctlich","dxScheduler-recurrenceHourly":"St\xfcndlich","dxScheduler-recurrenceDaily":"T\xe4glich","dxScheduler-recurrenceWeekly":"W\xf6chentlich","dxScheduler-recurrenceMonthly":"Monatlich","dxScheduler-recurrenceYearly":"J\xe4hrlich","dxScheduler-recurrenceRepeatEvery":"Wiederholen alle","dxScheduler-recurrenceRepeatOn":"Wiederholen an","dxScheduler-recurrenceEnd":"Wiederholungsende","dxScheduler-recurrenceAfter":"Nach","dxScheduler-recurrenceOn":"Am","dxScheduler-recurrenceRepeatMinutely":"Minute(n)","dxScheduler-recurrenceRepeatHourly":"Stunde(n)","dxScheduler-recurrenceRepeatDaily":"Tag(e)","dxScheduler-recurrenceRepeatWeekly":"Woche(n)","dxScheduler-recurrenceRepeatMonthly":"Monat(e)","dxScheduler-recurrenceRepeatYearly":"Jahr(e)","dxScheduler-switcherDay":"Tag","dxScheduler-switcherWeek":"Woche","dxScheduler-switcherWorkWeek":"Arbeitswoche","dxScheduler-switcherMonth":"Monat","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Zeitstrahl Tag","dxScheduler-switcherTimelineWeek":"Zeitstrahl Woche","dxScheduler-switcherTimelineWorkWeek":"Zeitstrahl Arbeitswoche","dxScheduler-switcherTimelineMonth":"Zeitstrahl Monat","dxScheduler-recurrenceRepeatOnDate":"am Datum","dxScheduler-recurrenceRepeatCount":"Ereignisse","dxScheduler-allDay":"Ganzt\xe4gig","dxScheduler-confirmRecurrenceEditMessage":"M\xf6chten Sie nur diesen Termin bearbeiten, oder die gesamte Serie?","dxScheduler-confirmRecurrenceDeleteMessage":"M\xf6chten Sie nur diesen Termin l\xf6schen, oder die gesamte Serie?","dxScheduler-confirmRecurrenceEditSeries":"Serie bearbeiten","dxScheduler-confirmRecurrenceDeleteSeries":"Serie l\xf6schen","dxScheduler-confirmRecurrenceEditOccurrence":"Termin bearbeiten","dxScheduler-confirmRecurrenceDeleteOccurrence":"Termin l\xf6schen","dxScheduler-noTimezoneTitle":"Keine Zeitzone","dxScheduler-moreAppointments":"{0} weitere","dxCalendar-todayButtonText":"Heute","dxCalendar-ariaWidgetName":"Kalendar","dxColorView-ariaRed":"Rot","dxColorView-ariaGreen":"Gr\xfcn","dxColorView-ariaBlue":"Blau","dxColorView-ariaAlpha":"Transparenz","dxColorView-ariaHex":"Farbwert","dxTagBox-selected":"{0} ausgew\xe4hlt","dxTagBox-allSelected":"Alle ausgew\xe4hlt ({0})","dxTagBox-moreSelected":"{0} weitere","vizExport-printingButtonText":"Drucken","vizExport-titleMenuText":"Export/Druck","vizExport-exportButtonText":"{0}-Datei","dxFilterBuilder-and":"Und","dxFilterBuilder-or":"Oder","dxFilterBuilder-notAnd":"Nicht Und","dxFilterBuilder-notOr":"Nicht Oder","dxFilterBuilder-addCondition":"Bedingung hinzuf\xfcgen","dxFilterBuilder-addGroup":"Gruppe hinzuf\xfcgen","dxFilterBuilder-enterValueText":"<Wert eingeben>","dxFilterBuilder-filterOperationEquals":"Ist gleich","dxFilterBuilder-filterOperationNotEquals":"Ist nicht gleich","dxFilterBuilder-filterOperationLess":"Kleiner als","dxFilterBuilder-filterOperationLessOrEquals":"Kleiner oder gleich","dxFilterBuilder-filterOperationGreater":"Gr\xf6\xdfer als","dxFilterBuilder-filterOperationGreaterOrEquals":"Gr\xf6\xdfer oder gleich","dxFilterBuilder-filterOperationStartsWith":"Beginnt mit","dxFilterBuilder-filterOperationContains":"Enth\xe4lt","dxFilterBuilder-filterOperationNotContains":"Enth\xe4lt nicht","dxFilterBuilder-filterOperationEndsWith":"Endet mit","dxFilterBuilder-filterOperationIsBlank":"Ist leer","dxFilterBuilder-filterOperationIsNotBlank":"Ist nicht leer","dxFilterBuilder-filterOperationBetween":"Zwischen","dxFilterBuilder-filterOperationAnyOf":"Ist enthalten in","dxFilterBuilder-filterOperationNoneOf":"Ist nicht enthalten in","dxHtmlEditor-dialogColorCaption":"Schriftfarbe \xe4ndern","dxHtmlEditor-dialogBackgroundCaption":"Hintergrundfarbe \xe4ndern","dxHtmlEditor-dialogLinkCaption":"Link hinzuf\xfcgen","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Link in neuem Fenster \xf6ffnen","dxHtmlEditor-dialogImageCaption":"Bild hinzuf\xfcgen","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternativer Text","dxHtmlEditor-dialogImageWidthField":"Breite (px)","dxHtmlEditor-dialogImageHeightField":"Bildh\xf6he (px)","dxHtmlEditor-dialogInsertTableRowsField":"Zeilen","dxHtmlEditor-dialogInsertTableColumnsField":"Spalten","dxHtmlEditor-dialogInsertTableCaption":"Tabelle einf\xfcgen","dxHtmlEditor-dialogUpdateImageCaption":"Bild Aktualisieren","dxHtmlEditor-dialogImageUpdateButton":"Aktualisieren","dxHtmlEditor-dialogImageAddButton":"Hinzuf\xfcgen","dxHtmlEditor-dialogImageSpecifyUrl":"Aus dem Web","dxHtmlEditor-dialogImageSelectFile":"Von diesem Ger\xe4t","dxHtmlEditor-dialogImageKeepAspectRatio":"Seitenverh\xe4ltnis beibehalten","dxHtmlEditor-dialogImageEncodeToBase64":"Als Base64 kodieren","dxHtmlEditor-heading":"\xdcberschrift","dxHtmlEditor-normalText":"Normaler Text","dxHtmlEditor-background":"Hintergrundfarbe","dxHtmlEditor-bold":"Fett","dxHtmlEditor-color":"Schriftfarbe","dxHtmlEditor-font":"Schriftart","dxHtmlEditor-italic":"Kursiv","dxHtmlEditor-link":"Link hinzuf\xfcgen","dxHtmlEditor-image":"Bild hinzuf\xfcgen","dxHtmlEditor-size":"Schriftgr\xf6\xdfe","dxHtmlEditor-strike":"Durchgestrichen","dxHtmlEditor-subscript":"Tiefgestellt","dxHtmlEditor-superscript":"Hochgestellt","dxHtmlEditor-underline":"Unterstrichen","dxHtmlEditor-blockquote":"Blockzitat","dxHtmlEditor-header":"Kopfzeile","dxHtmlEditor-increaseIndent":"Einzug vergr\xf6\xdfern","dxHtmlEditor-decreaseIndent":"Einzug verkleinern","dxHtmlEditor-orderedList":"Sortierte Liste","dxHtmlEditor-bulletList":"Aufz\xe4hlung","dxHtmlEditor-alignLeft":"Linksb\xfcndig","dxHtmlEditor-alignCenter":"Zentriert","dxHtmlEditor-alignRight":"Rechtsb\xfcndig","dxHtmlEditor-alignJustify":"Blocksatz","dxHtmlEditor-codeBlock":"Codeblock","dxHtmlEditor-variable":"Variable hinzuf\xfcgen","dxHtmlEditor-undo":"R\xfcckg\xe4ngig","dxHtmlEditor-redo":"Wiederholen","dxHtmlEditor-clear":"Formate l\xf6schen","dxHtmlEditor-insertTable":"Tabelle einf\xfcgen","dxHtmlEditor-insertHeaderRow":"Kopfzeile einf\xfcgen","dxHtmlEditor-insertRowAbove":"Spalte oberhalb einf\xfcgen","dxHtmlEditor-insertRowBelow":"Spalte unterhalb einf\xfcgen","dxHtmlEditor-insertColumnLeft":"Spalte links einf\xfcgen","dxHtmlEditor-insertColumnRight":"Spalte rechts einf\xfcgen","dxHtmlEditor-deleteColumn":"Spalte l\xf6schen","dxHtmlEditor-deleteRow":"Zeile l\xf6schen","dxHtmlEditor-deleteTable":"Tabelle l\xf6schen","dxHtmlEditor-cellProperties":"Zelleneigenschaften","dxHtmlEditor-tableProperties":"Tabelleneigenschaften","dxHtmlEditor-insert":"Einf\xfcgen","dxHtmlEditor-delete":"L\xf6schen","dxHtmlEditor-border":"Rahmen","dxHtmlEditor-style":"Stil","dxHtmlEditor-width":"Breite","dxHtmlEditor-height":"H\xf6he","dxHtmlEditor-borderColor":"Farbe","dxHtmlEditor-tableBackground":"Hintergrund","dxHtmlEditor-dimensions":"Abmessungen","dxHtmlEditor-alignment":"Ausrichtung","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertikal","dxHtmlEditor-paddingVertical":"Vertikaler Abstand","dxHtmlEditor-paddingHorizontal":"Horizontaler Abstand","dxHtmlEditor-pixels":"Pixel","dxHtmlEditor-list":"Liste","dxHtmlEditor-ordered":"Sortiert","dxHtmlEditor-bullet":"Aufz\xe4hlung","dxHtmlEditor-align":"Ausrichten","dxHtmlEditor-center":"Zentrieren","dxHtmlEditor-left":"Links","dxHtmlEditor-right":"Rechts","dxHtmlEditor-indent":"Einzug","dxHtmlEditor-justify":"Blocksatz","dxFileManager-newDirectoryName":"Ohne Titel","dxFileManager-rootDirectoryName":"Dateien","dxFileManager-errorNoAccess":"Zugriff verweigert. Die Operation kann nicht durchgef\xfchrt werden.","dxFileManager-errorDirectoryExistsFormat":"Ordner {0} existiert bereits.","dxFileManager-errorFileExistsFormat":"Datei {0} existiert bereits.","dxFileManager-errorFileNotFoundFormat":"Datei {0} wurde nicht gefunden.","dxFileManager-errorDirectoryNotFoundFormat":"Verzeichnis \'{0}\' nicht gefunden.","dxFileManager-errorWrongFileExtension":"Dateierweiterung ist nicht erlaubt.","dxFileManager-errorMaxFileSizeExceeded":"Die Dateigr\xf6\xdfe \xfcbersteigt die maximal erlaubte Gr\xf6\xdfe.","dxFileManager-errorInvalidSymbols":"Der Dateiname enth\xe4lt ung\xfcltige Zeichen.","dxFileManager-errorDefault":"Unbekannter Fehler","dxFileManager-errorDirectoryOpenFailed":"Das Verzeichnis kann nicht ge\xf6ffnet werden","dxFileManager-commandCreate":"Neues Verzeichnis","dxFileManager-commandRename":"Umbenennen","dxFileManager-commandMove":"Verschieben nach","dxFileManager-commandCopy":"Kopieren nach","dxFileManager-commandDelete":"L\xf6schen","dxFileManager-commandDownload":"Herunterladen","dxFileManager-commandUpload":"Dateien hochladen","dxFileManager-commandRefresh":"Aktualisieren","dxFileManager-commandThumbnails":"Miniaturansicht","dxFileManager-commandDetails":"Detailansicht","dxFileManager-commandClearSelection":"Auswahl aufheben","dxFileManager-commandShowNavPane":"Navigationsbereich ein-/ausschalten","dxFileManager-dialogDirectoryChooserMoveTitle":"Verschieben nach","dxFileManager-dialogDirectoryChooserMoveButtonText":"Verschieben","dxFileManager-dialogDirectoryChooserCopyTitle":"Kopieren nach","dxFileManager-dialogDirectoryChooserCopyButtonText":"Kopieren","dxFileManager-dialogRenameItemTitle":"Umbenennen","dxFileManager-dialogRenameItemButtonText":"Speichern","dxFileManager-dialogCreateDirectoryTitle":"Neues Verzeichnis","dxFileManager-dialogCreateDirectoryButtonText":"Erstellen","dxFileManager-dialogDeleteItemTitle":"L\xf6schen","dxFileManager-dialogDeleteItemButtonText":"L\xf6schen","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Sind Sie sicher, dass Sie {0} l\xf6schen m\xf6chten?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Sind Sie sicher, dass Sie {0} Elemente l\xf6schen m\xf6chten?","dxFileManager-dialogButtonCancel":"Abbrechen","dxFileManager-editingCreateSingleItemProcessingMessage":"Ein Verzeichnis wird in {0} erstellt","dxFileManager-editingCreateSingleItemSuccessMessage":"Ein Verzeichnis wurde in {0} erstellt","dxFileManager-editingCreateSingleItemErrorMessage":"Verzeichnis wurde nicht erstellt","dxFileManager-editingCreateCommonErrorMessage":"Verzeichnis wurde nicht erstellt","dxFileManager-editingRenameSingleItemProcessingMessage":"Ein Element in {0} wird umbenannt","dxFileManager-editingRenameSingleItemSuccessMessage":"Ein Element in {0} wurde umbenannt","dxFileManager-editingRenameSingleItemErrorMessage":"Element wurde nicht umbenannt","dxFileManager-editingRenameCommonErrorMessage":"Element wurde nicht umbenannt","dxFileManager-editingDeleteSingleItemProcessingMessage":"Ein Element aus {0} wird gel\xf6scht","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"{0} Elemente aus {1} werden gel\xf6scht","dxFileManager-editingDeleteSingleItemSuccessMessage":"Ein Element aus {0} wurde gel\xf6scht","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"{0} Elemente aus {1} wurden gel\xf6scht","dxFileManager-editingDeleteSingleItemErrorMessage":"Element wurde nicht gel\xf6scht","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} Elemente wurden nicht gel\xf6scht","dxFileManager-editingDeleteCommonErrorMessage":"Einige Elemente wurden nicht gel\xf6scht","dxFileManager-editingMoveSingleItemProcessingMessage":"Ein Element wird nach {0} verschoben","dxFileManager-editingMoveMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} verschoben","dxFileManager-editingMoveSingleItemSuccessMessage":"Ein Element wurde nach {0} verschoben","dxFileManager-editingMoveMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} verschoben","dxFileManager-editingMoveSingleItemErrorMessage":"Element wurde nicht verschoben","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} Elemente wurden nicht verschoben","dxFileManager-editingMoveCommonErrorMessage":"Einige Elemente wurden nicht verschoben","dxFileManager-editingCopySingleItemProcessingMessage":"Ein Element wird nach {0} kopiert","dxFileManager-editingCopyMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} kopiert","dxFileManager-editingCopySingleItemSuccessMessage":"Ein Element wurde nach {0} kopiert","dxFileManager-editingCopyMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} kopiert","dxFileManager-editingCopySingleItemErrorMessage":"Element wurde nicht kopiert","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} Elemente wurden nicht kopiert","dxFileManager-editingCopyCommonErrorMessage":"Einige Elemente wurden nicht kopiert","dxFileManager-editingUploadSingleItemProcessingMessage":"Ein Element wird nach {0} hochgeladen","dxFileManager-editingUploadMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} hochgeladen","dxFileManager-editingUploadSingleItemSuccessMessage":"Ein Element wurde nach {0} hochgeladen","dxFileManager-editingUploadMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} hochgeladen","dxFileManager-editingUploadSingleItemErrorMessage":"Element wurde nicht hochgeladen","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} Elemente wurden nicht hochgeladen","dxFileManager-editingUploadCanceledMessage":"Abgebrochen","dxFileManager-editingDownloadSingleItemErrorMessage":"Datei wurde nicht heruntergeladen","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} Dateien wurden nicht heruntergeladen","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Zuletzt ge\xe4ndert am","dxFileManager-listDetailsColumnCaptionFileSize":"Dateigr\xf6\xdfe","dxFileManager-listThumbnailsTooltipTextSize":"Gr\xf6\xdfe","dxFileManager-listThumbnailsTooltipTextDateModified":"Zuletzt ge\xe4ndert am","dxFileManager-notificationProgressPanelTitle":"Fortschritt","dxFileManager-notificationProgressPanelEmptyListText":"Keine Vorg\xe4nge","dxFileManager-notificationProgressPanelOperationCanceled":"Abgebrochen","dxDiagram-categoryGeneral":"Allgemein","dxDiagram-categoryFlowchart":"Flussdiagramm","dxDiagram-categoryOrgChart":"Organisationsdiagramm","dxDiagram-categoryContainers":"Container","dxDiagram-categoryCustom":"Benutzerdefiniert","dxDiagram-commandExportToSvg":"Export als SVG","dxDiagram-commandExportToPng":"Export als PNG","dxDiagram-commandExportToJpg":"Export als JPEG","dxDiagram-commandUndo":"R\xfcckg\xe4ngig","dxDiagram-commandRedo":"Wiederherstellen","dxDiagram-commandFontName":"Schriftartname","dxDiagram-commandFontSize":"Schriftgr\xf6\xdfe","dxDiagram-commandBold":"Fett","dxDiagram-commandItalic":"Kursiv","dxDiagram-commandUnderline":"Unterstrichen","dxDiagram-commandTextColor":"Textfarbe","dxDiagram-commandLineColor":"Linienfarbe","dxDiagram-commandLineWidth":"Linienst\xe4rke","dxDiagram-commandLineStyle":"Linienart","dxDiagram-commandLineStyleSolid":"Durchgezogen","dxDiagram-commandLineStyleDotted":"Gepunktet","dxDiagram-commandLineStyleDashed":"Gestrichelt","dxDiagram-commandFillColor":"F\xfcllfarbe","dxDiagram-commandAlignLeft":"Linksb\xfcndig","dxDiagram-commandAlignCenter":"Zentriert","dxDiagram-commandAlignRight":"Rechtsb\xfcndig","dxDiagram-commandConnectorLineType":"Konnektor Linienart","dxDiagram-commandConnectorLineStraight":"Gerade","dxDiagram-commandConnectorLineOrthogonal":"Rechtwinklig","dxDiagram-commandConnectorLineStart":"Konnektor Linienanfang","dxDiagram-commandConnectorLineEnd":"Konnektor Linienende","dxDiagram-commandConnectorLineNone":"Keine","dxDiagram-commandConnectorLineArrow":"Pfeil","dxDiagram-commandFullscreen":"Vollbild","dxDiagram-commandUnits":"Einheiten","dxDiagram-commandPageSize":"Seitengr\xf6\xdfe","dxDiagram-commandPageOrientation":"Seitenausrichtung","dxDiagram-commandPageOrientationLandscape":"Querformat","dxDiagram-commandPageOrientationPortrait":"Hochformat","dxDiagram-commandPageColor":"Seitenfarbe","dxDiagram-commandShowGrid":"Raster anzeigen","dxDiagram-commandSnapToGrid":"Am Raster ausrichten","dxDiagram-commandGridSize":"Rastergr\xf6\xdfe","dxDiagram-commandZoomLevel":"Vergr\xf6\xdferungsstufe","dxDiagram-commandAutoZoom":"Automatische Vergr\xf6\xdferung","dxDiagram-commandFitToContent":"An Inhalt anpassen","dxDiagram-commandFitToWidth":"An Breite anpassen","dxDiagram-commandAutoZoomByContent":"Automatisch an Inhalt anpassen","dxDiagram-commandAutoZoomByWidth":"Automatisch an Breite anpassen","dxDiagram-commandSimpleView":"Einfache Ansicht","dxDiagram-commandCut":"Ausschneiden","dxDiagram-commandCopy":"Kopieren","dxDiagram-commandPaste":"Einf\xfcgen","dxDiagram-commandSelectAll":"Alles ausw\xe4hlen","dxDiagram-commandDelete":"L\xf6schen","dxDiagram-commandBringToFront":"In den Vordergrund","dxDiagram-commandSendToBack":"In den Hintergrund","dxDiagram-commandLock":"Sperren","dxDiagram-commandUnlock":"Entsperren","dxDiagram-commandInsertShapeImage":"Bild einf\xfcgen...","dxDiagram-commandEditShapeImage":"Bild bearbeiten...","dxDiagram-commandDeleteShapeImage":"Bild l\xf6schen","dxDiagram-commandLayoutLeftToRight":"Von links nach rechts","dxDiagram-commandLayoutRightToLeft":"Von rechts nach links","dxDiagram-commandLayoutTopToBottom":"Von oben nach unten","dxDiagram-commandLayoutBottomToTop":"Von unten nach oben","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Abbrechen","dxDiagram-dialogInsertShapeImageTitle":"Bild einf\xfcgen","dxDiagram-dialogEditShapeImageTitle":"Bild bearbeiten","dxDiagram-dialogEditShapeImageSelectButton":"Bild ausw\xe4hlen","dxDiagram-dialogEditShapeImageLabelText":"oder Datei hier ablegen","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Eigenschaften","dxDiagram-uiSettings":"Einstellungen","dxDiagram-uiShowToolbox":"Toolbox anzeigen","dxDiagram-uiSearch":"Suchen","dxDiagram-uiStyle":"Stil","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Baum","dxDiagram-uiLayoutLayered":"Mehrschichtig","dxDiagram-uiDiagram":"Diagramm","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Objekt","dxDiagram-uiConnector":"Verbindung","dxDiagram-uiPage":"Seite","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rechteck","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Kreuz","dxDiagram-shapeTriangle":"Dreieck","dxDiagram-shapeDiamond":"Raute","dxDiagram-shapeHeart":"Herz","dxDiagram-shapePentagon":"F\xfcnfeck","dxDiagram-shapeHexagon":"Sechseck","dxDiagram-shapeOctagon":"Achteck","dxDiagram-shapeStar":"Stern","dxDiagram-shapeArrowLeft":"Pfeil nach links","dxDiagram-shapeArrowUp":"Pfeil nach oben","dxDiagram-shapeArrowRight":"Pfeil nach rechts","dxDiagram-shapeArrowDown":"Pfeil nach unten","dxDiagram-shapeArrowUpDown":"Pfeil nach oben und unten","dxDiagram-shapeArrowLeftRight":"Pfeil nach links und rechts","dxDiagram-shapeProcess":"Prozess","dxDiagram-shapeDecision":"Entscheidung","dxDiagram-shapeTerminator":"Abschluss","dxDiagram-shapePredefinedProcess":"Vordefinierter Prozess","dxDiagram-shapeDocument":"Dokument","dxDiagram-shapeMultipleDocuments":"Mehrere Dokumente","dxDiagram-shapeManualInput":"Manuelle Eingabe","dxDiagram-shapePreparation":"Vorbereitung","dxDiagram-shapeData":"Daten","dxDiagram-shapeDatabase":"Datenbank","dxDiagram-shapeHardDisk":"Festplatte","dxDiagram-shapeInternalStorage":"Lokaler Speicher","dxDiagram-shapePaperTape":"Lochstreifen","dxDiagram-shapeManualOperation":"Manuelle Verarbeitung","dxDiagram-shapeDelay":"Verz\xf6gerung","dxDiagram-shapeStoredData":"Gespeicherte Daten","dxDiagram-shapeDisplay":"Anzeige","dxDiagram-shapeMerge":"Zusammenf\xfchren","dxDiagram-shapeConnector":"Verbinder","dxDiagram-shapeOr":"Oder","dxDiagram-shapeSummingJunction":"Summierungsknoten","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertikaler Container","dxDiagram-shapeHorizontalContainer":"Horizontaler Container","dxDiagram-shapeCardDefaultText":"Name der Person","dxDiagram-shapeCardWithImageOnLeft":"Karte mit Bild links","dxDiagram-shapeCardWithImageOnTop":"Karte mit Bild oben","dxDiagram-shapeCardWithImageOnRight":"Karte mit Bild rechts","dxGantt-dialogTitle":"Titel","dxGantt-dialogStartTitle":"Beginn","dxGantt-dialogEndTitle":"Ende","dxGantt-dialogProgressTitle":"Fortschritt","dxGantt-dialogResourcesTitle":"Ressourcen","dxGantt-dialogResourceManagerTitle":"Ressourcen-Manager","dxGantt-dialogTaskDetailsTitle":"Aufgabendetails","dxGantt-dialogEditResourceListHint":"Ressourcenliste bearbeiten","dxGantt-dialogEditNoResources":"Keine Ressourcen","dxGantt-dialogButtonAdd":"Hinzuf\xfcgen","dxGantt-contextMenuNewTask":"Neue Aufgabe","dxGantt-contextMenuNewSubtask":"Neue Teilaufgabe","dxGantt-contextMenuDeleteTask":"Aufgabe l\xf6schen","dxGantt-contextMenuDeleteDependency":"Abh\xe4ngigkeit entfernen","dxGantt-dialogTaskDeleteConfirmation":"Abh\xe4ngigkeiten und Teilaufgaben werden zusammen mit dieser Aufgabe gel\xf6scht. M\xf6chten Sie diese Aufgabe l\xf6schen?","dxGantt-dialogDependencyDeleteConfirmation":"M\xf6chten Sie die Abh\xe4ngigkeit von der Aufgabe entfernen?","dxGantt-dialogResourcesDeleteConfirmation":"Wenn Sie diese Ressource l\xf6schen, wird sie von allen Aufgaben entfernt. M\xf6chten Sie die Ressource l\xf6schen? Ressource: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"Die Aufgabe, die Sie verschieben m\xf6chten, ist mit einer zweiten Aufgabe durch eine Abh\xe4ngigkeit verbunden. Die \xc4nderung w\xfcrde gegen Abh\xe4ngigkeitsregeln verstossen. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogConstraintViolationMessage":"Die Aufgabe, die Sie verschieben m\xf6chten, ist mit einer zweiten Aufgabe durch eine Abh\xe4ngigkeit verbunden. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogCancelOperationMessage":"Vorgang abbrechen","dxGantt-dialogDeleteDependencyMessage":"Abh\xe4ngigkeit l\xf6schen","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Aufgabe verschieben und Abh\xe4ngigkeit beibehalten","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"Die Aufgabe, die Sie zu verschieben versuchen, ist mit anderen Aufgaben durch Abh\xe4ngigkeitsbeziehungen verbunden. Die \xc4nderung verst\xf6\xdft daher gegen Abh\xe4ngigkeitsregeln. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"Die Aufgabe, die Sie zu verschieben versuchen, ist mit anderen Aufgaben durch Abh\xe4ngigkeitsbeziehungen verbunden. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogDeleteDependenciesMessage":"Abh\xe4ngigkeitsbeziehungen entfernen","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Die Aufgabe verschieben und die Abh\xe4ngigkeitsbeziehungen beibehalten.","dxGantt-undo":"R\xfcckg\xe4ngig","dxGantt-redo":"Wiederherstellen","dxGantt-expandAll":"Alle erweitern","dxGantt-collapseAll":"Alle reduzieren","dxGantt-addNewTask":"Neue Aufgabe hinzuf\xfcgen","dxGantt-deleteSelectedTask":"Ausgew\xe4hlte Aufgabe l\xf6schen","dxGantt-zoomIn":"Vergr\xf6\xdfern","dxGantt-zoomOut":"Verkleinern","dxGantt-fullScreen":"Vollbildmodus","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Aufsteigend sortieren","dxGantt-sortingDescendingText":"Absteigend sortieren","dxGantt-sortingClearText":"Sortierung aufheben","dxGantt-showResources":"Ressourcen Anzeigen","dxGantt-showDependencies":"Abh\xe4ngigkeiten Anzeigen","dxGantt-dialogStartDateValidation":"Startdatum muss sp\xe4ter sein als {0}","dxGantt-dialogEndDateValidation":"Enddatum muss sp\xe4ter sein als {0}"}}'),lyt=JSON.parse('{"fr":{"Yes":"Oui","No":"Non","Cancel":"Annuler","Close":"Fermer","Clear":"Vider","Done":"Termin\xe9","Loading":"Chargement...","Select":"S\xe9lection...","Search":"Recherche","Back":"Retour","OK":"OK","dxCollectionWidget-noDataText":"Pas de donn\xe9es","dxDropDownEditor-selectLabel":"S\xe9lection","validation-required":"Obligatoire","validation-required-formatted":"{0} est obligatoire","validation-numeric":"La valeur doit \xeatre un nombre","validation-numeric-formatted":"{0} doit \xeatre un nombre","validation-range":"La valeur ne se trouve pas dans la plage valide","validation-range-formatted":"{0} ne se trouve pas dans la plage valide","validation-stringLength":"La longueur de la valeur est incorrecte","validation-stringLength-formatted":"La longueur de {0} est incorrecte","validation-custom":"La valeur est invalide","validation-custom-formatted":"{0} est invalide","validation-async":"La valeur est invalide","validation-async-formatted":"{0} est invalide","validation-compare":"La valeur est inappropri\xe9e","validation-compare-formatted":"{0} est inappropri\xe9e","validation-pattern":"La valeur ne correspond pas au mod\xe8le","validation-pattern-formatted":"{0} ne correspond pas au mod\xe8le","validation-email":"L\'adresse email est invalide","validation-email-formatted":"{0} est invalide","validation-mask":"La valeur est invalide","dxLookup-searchPlaceholder":"Nombre minimum de caract\xe8res: {0}","dxList-pullingDownText":"Tirez vers le bas pour actualiser...","dxList-pulledDownText":"Relacher pour actualiser...","dxList-refreshingText":"Actualisation...","dxList-pageLoadingText":"Chargement...","dxList-nextButtonText":"Suivant","dxList-selectAll":"S\xe9lectionner tout","dxListEditDecorator-delete":"Supprimer","dxListEditDecorator-more":"Plus","dxScrollView-pullingDownText":"Tirez vers le bas pour actualiser...","dxScrollView-pulledDownText":"Relacher pour actualiser...","dxScrollView-refreshingText":"Mise \xe0 jour...","dxScrollView-reachBottomText":"Chargement...","dxDateBox-simulatedDataPickerTitleTime":"Choisissez l\'heure","dxDateBox-simulatedDataPickerTitleDate":"Choisissez la date","dxDateBox-simulatedDataPickerTitleDateTime":"Choisissez la date et l\'heure","dxDateBox-validation-datetime":"La valeur doit \xeatre une date ou une heure.","dxFileUploader-selectFile":"Choisissez un fichier","dxFileUploader-dropFile":"D\xe9posez un fichier","dxFileUploader-bytes":"Bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"T\xe9l\xe9charger","dxFileUploader-uploaded":"T\xe9l\xe9charg\xe9","dxFileUploader-readyToUpload":"Pr\xeat \xe0 t\xe9l\xe9charger","dxFileUploader-uploadAbortedMessage":"T\xe9l\xe9chargement annul\xe9","dxFileUploader-uploadFailedMessage":"\xc9chec du t\xe9l\xe9chargement","dxFileUploader-invalidFileExtension":"Type de fichier non autoris\xe9","dxFileUploader-invalidMaxFileSize":"Fichier trop volumineux","dxFileUploader-invalidMinFileSize":"Fichier trop petit","dxRangeSlider-ariaFrom":"De {0}","dxRangeSlider-ariaTill":"\xe0 {0}","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optionnel","dxForm-requiredMessage":"{0} est obligatoire","dxNumberBox-invalidValueMessage":"La valeur doit \xeatre un nombre","dxNumberBox-noDataText":"Pas de donn\xe9es","dxDataGrid-columnChooserTitle":"Choisir les colonnes","dxDataGrid-columnChooserEmptyText":"Faites glisser une colonne ici pour la cacher","dxDataGrid-groupContinuesMessage":"Suite \xe0 la page suivante","dxDataGrid-groupContinuedMessage":"Suite de la page pr\xe9c\xe9dente","dxDataGrid-groupHeaderText":"Grouper avec cette colonne","dxDataGrid-ungroupHeaderText":"D\xe9grouper","dxDataGrid-ungroupAllText":"D\xe9grouper tout","dxDataGrid-editingEditRow":"Editer","dxDataGrid-editingSaveRowChanges":"Sauvegarder","dxDataGrid-editingCancelRowChanges":"Annuler","dxDataGrid-editingDeleteRow":"Supprimer","dxDataGrid-editingUndeleteRow":"Restaurer","dxDataGrid-editingConfirmDeleteMessage":"\xcates-vous s\xfbr de vouloir supprimer cet \xe9l\xe9ment ?","dxDataGrid-validationCancelChanges":"Annuler les changements","dxDataGrid-groupPanelEmptyText":"Faites glisser une colonne ICI pour grouper par celle-ci","dxDataGrid-noDataText":"Pas de donn\xe9es","dxDataGrid-searchPanelPlaceholder":"Recherche...","dxDataGrid-filterRowShowAllText":"(tous)","dxDataGrid-filterRowResetOperationText":"R\xe9initialiser","dxDataGrid-filterRowOperationEquals":"Egale","dxDataGrid-filterRowOperationNotEquals":"Diff\xe9rent de","dxDataGrid-filterRowOperationLess":"Plus petit","dxDataGrid-filterRowOperationLessOrEquals":"Plus petit ou \xe9gal","dxDataGrid-filterRowOperationGreater":"Plus grand","dxDataGrid-filterRowOperationGreaterOrEquals":"Plus grand ou \xe9gal","dxDataGrid-filterRowOperationStartsWith":"Commence par","dxDataGrid-filterRowOperationContains":"Contient","dxDataGrid-filterRowOperationNotContains":"Ne contient pas","dxDataGrid-filterRowOperationEndsWith":"Termine par","dxDataGrid-filterRowOperationBetween":"Entre","dxDataGrid-filterRowOperationBetweenStartText":"D\xe9but","dxDataGrid-filterRowOperationBetweenEndText":"Fin","dxDataGrid-applyFilterText":"Filtrer le texte","dxDataGrid-trueText":"Vrai","dxDataGrid-falseText":"Faux","dxDataGrid-sortingAscendingText":"Tri croissant","dxDataGrid-sortingDescendingText":"Tri d\xe9croissant","dxDataGrid-sortingClearText":"Supprimer le tri","dxDataGrid-editingSaveAllChanges":"Sauvegarder les changements","dxDataGrid-editingCancelAllChanges":"Ignorer les changements","dxDataGrid-editingAddRow":"Ajouter ligne","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Minimum de {1} est {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Maximum de {1} est {0}","dxDataGrid-summaryAvg":"Moy: {0}","dxDataGrid-summaryAvgOtherColumn":"Moyenne de {1} est {0}","dxDataGrid-summarySum":"Somme: {0}","dxDataGrid-summarySumOtherColumn":"Somme de {1} est {0}","dxDataGrid-summaryCount":"Total: {0}","dxDataGrid-columnFixingFix":"Fixer","dxDataGrid-columnFixingUnfix":"D\xe9tacher","dxDataGrid-columnFixingLeftPosition":"A gauche","dxDataGrid-columnFixingRightPosition":"A droite","dxDataGrid-exportTo":"Exporter","dxDataGrid-exportToExcel":"Exporter sous Excel","dxDataGrid-exporting":"Exporter...","dxDataGrid-excelFormat":"Fichier Excel","dxDataGrid-selectedRows":"Lignes s\xe9lectionn\xe9es","dxDataGrid-exportSelectedRows":"Exporter les lignes s\xe9lectionn\xe9es","dxDataGrid-exportAll":"Exporter tout","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column \'{0}\'","dxDataGrid-headerFilterEmptyValue":"(aucune valeur)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Annuler","dxDataGrid-ariaAdaptiveCollapse":"Masquer les donn\xe9es suppl\xe9mentaires","dxDataGrid-ariaAdaptiveExpand":"Afficher des donn\xe9es suppl\xe9mentaires","dxDataGrid-ariaColumn":"Colonne","dxDataGrid-ariaValue":"Valeur","dxDataGrid-ariaFilterCell":"Filtre de cellule","dxDataGrid-ariaCollapse":"R\xe9duire","dxDataGrid-ariaExpand":"Etendre","dxDataGrid-ariaDataGrid":"Grille","dxDataGrid-ariaSearchInGrid":"Rechercher dans la grille","dxDataGrid-ariaSelectAll":"S\xe9lectionner tout","dxDataGrid-ariaSelectRow":"S\xe9lectionner ligne","dxDataGrid-ariaToolbar":"Barre d\'outils de la grille de donn\xe9es","dxDataGrid-filterBuilderPopupTitle":"Cr\xe9ation de filtre","dxDataGrid-filterPanelCreateFilter":"Cr\xe9er un filtre","dxDataGrid-filterPanelClearFilter":"Supprimer","dxDataGrid-filterPanelFilterEnabledHint":"Activer le filtre","dxTreeList-ariaTreeList":"Liste arborescente","dxTreeList-ariaSearchInGrid":"Rechercher dans l\'arborescence","dxTreeList-ariaToolbar":"Barre d\'outils de la liste arborescente","dxTreeList-editingAddRowToNode":"Ajouter","dxPager-infoText":"Page {0} sur {1} ({2} \xe9lements)","dxPager-pagesCountText":"sur","dxPager-pageSizesAllText":"Tous","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","dxPivotGrid-grandTotal":"Total g\xe9n\xe9ral","dxPivotGrid-total":"Total {0}","dxPivotGrid-fieldChooserTitle":"Liste des champs","dxPivotGrid-showFieldChooser":"Afficher la liste des champs","dxPivotGrid-expandAll":"Etendre tout","dxPivotGrid-collapseAll":"R\xe9duire tout","dxPivotGrid-sortColumnBySummary":"Trier par colonne \\"{0}\\"","dxPivotGrid-sortRowBySummary":"Trier par ligne \\"{0}\\"","dxPivotGrid-removeAllSorting":"Supprimer les tris","dxPivotGrid-dataNotAvailable":"ND","dxPivotGrid-rowFields":"Lignes","dxPivotGrid-columnFields":"Colonnes","dxPivotGrid-dataFields":"Valeurs","dxPivotGrid-filterFields":"Filtres","dxPivotGrid-allFields":"Tous les champs","dxPivotGrid-columnFieldArea":"D\xe9poser les champs de colonne ici","dxPivotGrid-dataFieldArea":"D\xe9poser les champs de donn\xe9es ici","dxPivotGrid-rowFieldArea":"D\xe9poser les champs de ligne ici","dxPivotGrid-filterFieldArea":"D\xe9poser les champs de filtre ici","dxScheduler-editorLabelTitle":"Titre","dxScheduler-editorLabelStartDate":"Date de d\xe9but","dxScheduler-editorLabelEndDate":"Date de fin","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"R\xe9currence","dxScheduler-openAppointment":"D\xe9finir un \xe9venement","dxScheduler-recurrenceNever":"Jamais","dxScheduler-recurrenceMinutely":"Minutely","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Quotidien","dxScheduler-recurrenceWeekly":"Hebdomadaire","dxScheduler-recurrenceMonthly":"Mensuel","dxScheduler-recurrenceYearly":"Annuel","dxScheduler-recurrenceRepeatEvery":"Chaque","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"Jusqu\'\xe0","dxScheduler-recurrenceAfter":"Apr\xe8s","dxScheduler-recurrenceOn":"Le","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"Jour(s)","dxScheduler-recurrenceRepeatWeekly":"Semaine(s)","dxScheduler-recurrenceRepeatMonthly":"Mois(s)","dxScheduler-recurrenceRepeatYearly":"Ann\xe9e(s)","dxScheduler-switcherDay":"Jour","dxScheduler-switcherWeek":"Semaine","dxScheduler-switcherWorkWeek":"Semaine de travail","dxScheduler-switcherMonth":"Mois","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Jour","dxScheduler-switcherTimelineWeek":"Timeline Semaine","dxScheduler-switcherTimelineWorkWeek":"Timeline Semaine de travail","dxScheduler-switcherTimelineMonth":"Timeline Mois","dxScheduler-recurrenceRepeatOnDate":"le","dxScheduler-recurrenceRepeatCount":"occurence(s)","dxScheduler-allDay":"Temps plein","dxScheduler-confirmRecurrenceEditMessage":"Voulez-vous \xe9diter cet \xe9venement ou la s\xe9rie enti\xe8re ?","dxScheduler-confirmRecurrenceDeleteMessage":"Voulez-vous supprimer cet \xe9venement ou la s\xe9rie enti\xe8re ?","dxScheduler-confirmRecurrenceEditSeries":"Editer serie","dxScheduler-confirmRecurrenceDeleteSeries":"Supprimer serie","dxScheduler-confirmRecurrenceEditOccurrence":"Editer \xe9venement","dxScheduler-confirmRecurrenceDeleteOccurrence":"Supprimer \xe9venement","dxScheduler-noTimezoneTitle":"Pas de fuseau horaire","dxScheduler-moreAppointments":"{0} en plus","dxCalendar-todayButtonText":"Aujourd\'hui","dxCalendar-ariaWidgetName":"Calendrier","dxColorView-ariaRed":"Rouge","dxColorView-ariaGreen":"Vert","dxColorView-ariaBlue":"Bleu","dxColorView-ariaAlpha":"Transparence","dxColorView-ariaHex":"Code couleur","dxTagBox-selected":"{0} selectionn\xe9s","dxTagBox-allSelected":"Tous s\xe9lectionn\xe9s ({0})","dxTagBox-moreSelected":"{0} en plus","vizExport-printingButtonText":"Imprimer","vizExport-titleMenuText":"Exporter/Imprimer","vizExport-exportButtonText":"{0} fichier","dxFilterBuilder-and":"Et","dxFilterBuilder-or":"Ou","dxFilterBuilder-notAnd":"Non Et","dxFilterBuilder-notOr":"Non Ou","dxFilterBuilder-addCondition":"Ajouter une condition","dxFilterBuilder-addGroup":"Ajouter un groupe","dxFilterBuilder-enterValueText":"<entrer une valeur>","dxFilterBuilder-filterOperationEquals":"Est \xe9gal \xe0","dxFilterBuilder-filterOperationNotEquals":"Est diff\xe9rent de","dxFilterBuilder-filterOperationLess":"Est plus petit que","dxFilterBuilder-filterOperationLessOrEquals":"Est plus petit ou \xe9gal \xe0","dxFilterBuilder-filterOperationGreater":"Est plus grand que","dxFilterBuilder-filterOperationGreaterOrEquals":"Est plus grand ou \xe9gal \xe0","dxFilterBuilder-filterOperationStartsWith":"Commence par","dxFilterBuilder-filterOperationContains":"Contient","dxFilterBuilder-filterOperationNotContains":"Ne contient pas","dxFilterBuilder-filterOperationEndsWith":"Finit par","dxFilterBuilder-filterOperationIsBlank":"Est vide","dxFilterBuilder-filterOperationIsNotBlank":"N\'est pas vide","dxFilterBuilder-filterOperationBetween":"Entre","dxFilterBuilder-filterOperationAnyOf":"Est parmi","dxFilterBuilder-filterOperationNoneOf":"N\'est pas parmi","dxHtmlEditor-dialogColorCaption":"Changer couleur police","dxHtmlEditor-dialogBackgroundCaption":"Changer couleur fond","dxHtmlEditor-dialogLinkCaption":"Ajouter un hyperlien","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Texte","dxHtmlEditor-dialogLinkTargetField":"Ouvrir le lien dans une nouvelle fen\xeatre","dxHtmlEditor-dialogImageCaption":"Ajouter image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Texte alternatif","dxHtmlEditor-dialogImageWidthField":"Largeur (px)","dxHtmlEditor-dialogImageHeightField":"Hauteur (px)","dxHtmlEditor-dialogInsertTableRowsField":"Lignes","dxHtmlEditor-dialogInsertTableColumnsField":"Colonnes","dxHtmlEditor-dialogInsertTableCaption":"Ins\xe9rer un tableau","dxHtmlEditor-dialogUpdateImageCaption":"Actualiser l\'image","dxHtmlEditor-dialogImageUpdateButton":"Actualiser","dxHtmlEditor-dialogImageAddButton":"Ajouter","dxHtmlEditor-dialogImageSpecifyUrl":"Depuis le Web","dxHtmlEditor-dialogImageSelectFile":"Depuis cet appareil","dxHtmlEditor-dialogImageKeepAspectRatio":"Conserver les proportions","dxHtmlEditor-dialogImageEncodeToBase64":"Encoder en Base64","dxHtmlEditor-heading":"Titre","dxHtmlEditor-normalText":"Texte normal","dxHtmlEditor-background":"Couleur de l\'arri\xe8re plan","dxHtmlEditor-bold":"Gras","dxHtmlEditor-color":"Couleur de police","dxHtmlEditor-font":"Police","dxHtmlEditor-italic":"Italique","dxHtmlEditor-link":"Ajouter un hyperlien","dxHtmlEditor-image":"Ajouter une image","dxHtmlEditor-size":"Taille","dxHtmlEditor-strike":"Barr\xe9","dxHtmlEditor-subscript":"Indice","dxHtmlEditor-superscript":"Suscription","dxHtmlEditor-underline":"Souligner","dxHtmlEditor-blockquote":"Citation","dxHtmlEditor-header":"Ent\xeate","dxHtmlEditor-increaseIndent":"Augmenter le retrait","dxHtmlEditor-decreaseIndent":"R\xe9duire le retrait","dxHtmlEditor-orderedList":"Liste ordonn\xe9e","dxHtmlEditor-bulletList":"Liste \xe0 puces","dxHtmlEditor-alignLeft":"Aligner \xe0 gauche","dxHtmlEditor-alignCenter":"Centrer","dxHtmlEditor-alignRight":"Aligner \xe0 droite","dxHtmlEditor-alignJustify":"Justifier","dxHtmlEditor-codeBlock":"Bloc de code","dxHtmlEditor-variable":"Ajouter une variable","dxHtmlEditor-undo":"Annuler","dxHtmlEditor-redo":"Refaire","dxHtmlEditor-clear":"Supprimer le formattage","dxHtmlEditor-insertTable":"Ins\xe9rer tableau","dxHtmlEditor-insertHeaderRow":"Ins\xe9rer une ligne d\'en-t\xeate","dxHtmlEditor-insertRowAbove":"Ins\xe9rer une ligne au-dessus","dxHtmlEditor-insertRowBelow":"Ins\xe9rer une ligne ci-dessous","dxHtmlEditor-insertColumnLeft":"Ins\xe9rer une colonne \xe0 gauche","dxHtmlEditor-insertColumnRight":"Ins\xe9rer une colonne \xe0 droite","dxHtmlEditor-deleteColumn":"Supprimer la colonne","dxHtmlEditor-deleteRow":"Supprimer la ligne","dxHtmlEditor-deleteTable":"Supprimer le tableau","dxHtmlEditor-cellProperties":"Propri\xe9t\xe9s de la cellule","dxHtmlEditor-tableProperties":"Propri\xe9t\xe9s du tableau","dxHtmlEditor-insert":"Ins\xe9rer","dxHtmlEditor-delete":"Supprimer","dxHtmlEditor-border":"Bordure","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Largeur","dxHtmlEditor-height":"Hauteur","dxHtmlEditor-borderColor":"Couleur","dxHtmlEditor-tableBackground":"Arri\xe8re plan","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignement","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Rembourrage vertical","dxHtmlEditor-paddingHorizontal":"Rembourrage horizontal","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"Liste","dxHtmlEditor-ordered":"En ordre","dxHtmlEditor-bullet":"Point","dxHtmlEditor-align":"Aligner","dxHtmlEditor-center":"Centrer","dxHtmlEditor-left":"Gauche","dxHtmlEditor-right":"Droite","dxHtmlEditor-indent":"Retrait","dxHtmlEditor-justify":"Justifier","dxFileManager-newDirectoryName":"R\xe9pertoire sans titre","dxFileManager-rootDirectoryName":"Fichiers","dxFileManager-errorNoAccess":"Acc\xe8s interdit. L\'op\xe9ration ne peut se terminer.","dxFileManager-errorDirectoryExistsFormat":"R\xe9pertoire \'{0}\' existe d\xe9j\xe0.","dxFileManager-errorFileExistsFormat":"Fichier \'{0}\' existe d\xe9j\xe0.","dxFileManager-errorFileNotFoundFormat":"Impossible de trouver le fichier \'{0}.\'","dxFileManager-errorDirectoryNotFoundFormat":"Impossible de trouver le r\xe9pertoire \'{0}.\'","dxFileManager-errorWrongFileExtension":"Extension de fichier non permise.","dxFileManager-errorMaxFileSizeExceeded":"Taille du fichier d\xe9passe la limite maximum permise.","dxFileManager-errorInvalidSymbols":"Ce nom contient des caract\xe8res invalides.","dxFileManager-errorDefault":"Erreur non sp\xe9cifi\xe9.","dxFileManager-errorDirectoryOpenFailed":"Le r\xe9pertoire ne peut s\'ouvrir","dxFileManager-commandCreate":"Nouveau r\xe9pertoire","dxFileManager-commandRename":"Renommer","dxFileManager-commandMove":"D\xe9placer","dxFileManager-commandCopy":"Copier","dxFileManager-commandDelete":"Supprimer","dxFileManager-commandDownload":"T\xe9l\xe9charger","dxFileManager-commandUpload":"T\xe9l\xe9verser des fichiers","dxFileManager-commandRefresh":"Rafra\xeechir","dxFileManager-commandThumbnails":"Mode vignette","dxFileManager-commandDetails":"Mode d\xe9tails","dxFileManager-commandClearSelection":"Vider s\xe9lection","dxFileManager-commandShowNavPane":"Basculer le volet de navigation","dxFileManager-dialogDirectoryChooserMoveTitle":"D\xe9placer vers","dxFileManager-dialogDirectoryChooserMoveButtonText":"D\xe9placer","dxFileManager-dialogDirectoryChooserCopyTitle":"Copier vers","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copier","dxFileManager-dialogRenameItemTitle":"Renommer","dxFileManager-dialogRenameItemButtonText":"Sauvegarder","dxFileManager-dialogCreateDirectoryTitle":"Nouveau r\xe9pertoire","dxFileManager-dialogCreateDirectoryButtonText":"Cr\xe9er","dxFileManager-dialogDeleteItemTitle":"Supprimer","dxFileManager-dialogDeleteItemButtonText":"Supprimer","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Voulez-vous vraiment supprimer {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Voulez-vous vraiment supprimer {0}?","dxFileManager-dialogButtonCancel":"Annuler","dxFileManager-editingCreateSingleItemProcessingMessage":"Cr\xe9er un r\xe9pertoire dans {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"R\xe9pertoire cr\xe9\xe9 dans {0}","dxFileManager-editingCreateSingleItemErrorMessage":"R\xe9pertoire n\'est pas cr\xe9\xe9","dxFileManager-editingCreateCommonErrorMessage":"R\xe9pertoire n\'est pas cr\xe9\xe9","dxFileManager-editingRenameSingleItemProcessingMessage":"Renommer un item dans {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Item renomm\xe9 dans {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item non renomm\xe9","dxFileManager-editingRenameCommonErrorMessage":"Item non renomm\xe9","dxFileManager-editingDeleteSingleItemProcessingMessage":"Supprimer un item de {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Supprimer {0} items de {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Item supprim\xe9 de {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"{0} items supprim\xe9s de {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item non suprim\xe9","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items non supprim\xe9s","dxFileManager-editingDeleteCommonErrorMessage":"Des items ne sont pas supprim\xe9s","dxFileManager-editingMoveSingleItemProcessingMessage":"En train de d\xe9placer un item vers {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"En train de d\xe9placer {0} items vers {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Item d\xe9plac\xe9 vers {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"{0} items d\xe9plac\xe9s vers {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item non d\xe9plac\xe9","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items non d\xe9plac\xe9s","dxFileManager-editingMoveCommonErrorMessage":"Des items ne sont pas d\xe9plac\xe9s","dxFileManager-editingCopySingleItemProcessingMessage":"En train de copier un item vers {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"En train de copier {0} items vers {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Item copi\xe9 vers {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"{0} items copi\xe9s vers {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item non copi\xe9","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items non copi\xe9s","dxFileManager-editingCopyCommonErrorMessage":"Des items ne sont pas copi\xe9s","dxFileManager-editingUploadSingleItemProcessingMessage":"En train de t\xe9l\xe9verser un item vers {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"En train de t\xe9l\xe9verser {0} items vers {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Item t\xe9l\xe9vers\xe9 vers {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"{0} items t\xe9l\xe9vers\xe9s vers {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item non t\xe9l\xe9vers\xe9","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items non t\xe9l\xe9vers\xe9s","dxFileManager-editingUploadCanceledMessage":"Annul\xe9","dxFileManager-editingDownloadSingleItemErrorMessage":"L\'\xe9l\xe9ment n\'a pas \xe9t\xe9 t\xe9l\xe9charg\xe9","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} \xe9l\xe9ments n\'ont pas \xe9t\xe9 t\xe9l\xe9charg\xe9s","dxFileManager-listDetailsColumnCaptionName":"Nom","dxFileManager-listDetailsColumnCaptionDateModified":"Date modifi\xe9","dxFileManager-listDetailsColumnCaptionFileSize":"Taille de fichier","dxFileManager-listThumbnailsTooltipTextSize":"Taille","dxFileManager-listThumbnailsTooltipTextDateModified":"Date modifi\xe9","dxFileManager-notificationProgressPanelTitle":"En cours","dxFileManager-notificationProgressPanelEmptyListText":"Aucune op\xe9ration","dxFileManager-notificationProgressPanelOperationCanceled":"Annul\xe9","dxDiagram-categoryGeneral":"G\xe9n\xe9ral","dxDiagram-categoryFlowchart":"Organigramme","dxDiagram-categoryOrgChart":"Structure organisationnelle","dxDiagram-categoryContainers":"Conteneurs","dxDiagram-categoryCustom":"Personnalis\xe9","dxDiagram-commandExportToSvg":"Exporter en SVG","dxDiagram-commandExportToPng":"Exporter en PNG","dxDiagram-commandExportToJpg":"Exporter en JPEG","dxDiagram-commandUndo":"Annuler","dxDiagram-commandRedo":"Refaire","dxDiagram-commandFontName":"Nom de la police","dxDiagram-commandFontSize":"Taille de la police","dxDiagram-commandBold":"Gras","dxDiagram-commandItalic":"Italique","dxDiagram-commandUnderline":"Souligner","dxDiagram-commandTextColor":"Couleur texte","dxDiagram-commandLineColor":"Couleur ligne","dxDiagram-commandLineWidth":"Largeur de ligne","dxDiagram-commandLineStyle":"Style de ligne","dxDiagram-commandLineStyleSolid":"Solide","dxDiagram-commandLineStyleDotted":"Point\xe9","dxDiagram-commandLineStyleDashed":"Pointill\xe9","dxDiagram-commandFillColor":"Couleur remplissage","dxDiagram-commandAlignLeft":"Aligner \xe0 gauche","dxDiagram-commandAlignCenter":"Centrer","dxDiagram-commandAlignRight":"Aligner \xe0 droite","dxDiagram-commandConnectorLineType":"Type de ligne de connexion","dxDiagram-commandConnectorLineStraight":"Droit","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"D\xe9but de la ligne de connexion","dxDiagram-commandConnectorLineEnd":"Fin de la ligne de connexion","dxDiagram-commandConnectorLineNone":"Aucun","dxDiagram-commandConnectorLineArrow":"Fl\xe8che","dxDiagram-commandFullscreen":"Plein \xe9cran","dxDiagram-commandUnits":"Unit\xe9s","dxDiagram-commandPageSize":"Taille de la page","dxDiagram-commandPageOrientation":"Orientation de la page","dxDiagram-commandPageOrientationLandscape":"Paysage","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Couleur de la page","dxDiagram-commandShowGrid":"Afficher la grille","dxDiagram-commandSnapToGrid":"Aligner sur la grille","dxDiagram-commandGridSize":"Taille de la grille","dxDiagram-commandZoomLevel":"Niveau de zoom","dxDiagram-commandAutoZoom":"Zoom automatique","dxDiagram-commandFitToContent":"Ajuster au contenu","dxDiagram-commandFitToWidth":"Ajuster \xe0 la largeur","dxDiagram-commandAutoZoomByContent":"Auto zoom par contenu","dxDiagram-commandAutoZoomByWidth":"Auto zoom par largeur","dxDiagram-commandSimpleView":"Vue simple","dxDiagram-commandCut":"Couper","dxDiagram-commandCopy":"Copier","dxDiagram-commandPaste":"Coller","dxDiagram-commandSelectAll":"Tout s\xe9lectionner","dxDiagram-commandDelete":"Supprimer","dxDiagram-commandBringToFront":"Amener au premier plan","dxDiagram-commandSendToBack":"Envoyer \xe0 l\'arri\xe8re","dxDiagram-commandLock":"Verrouiller","dxDiagram-commandUnlock":"D\xe9verrouiller","dxDiagram-commandInsertShapeImage":"Ins\xe9rer une image...","dxDiagram-commandEditShapeImage":"Changer image...","dxDiagram-commandDeleteShapeImage":"Supprimer image","dxDiagram-commandLayoutLeftToRight":"Gauche \xe0 droite","dxDiagram-commandLayoutRightToLeft":"Droite \xe0 gauche","dxDiagram-commandLayoutTopToBottom":"Haut en bas","dxDiagram-commandLayoutBottomToTop":"Bas en haut","dxDiagram-unitIn":"po","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Annuler","dxDiagram-dialogInsertShapeImageTitle":"Ins\xe9rer une image","dxDiagram-dialogEditShapeImageTitle":"Changer image","dxDiagram-dialogEditShapeImageSelectButton":"S\xe9lectionner une image","dxDiagram-dialogEditShapeImageLabelText":"ou d\xe9poser le fichier ici","dxDiagram-uiExport":"Exporter","dxDiagram-uiProperties":"Propri\xe9t\xe9s","dxDiagram-uiSettings":"Param\xe8tres","dxDiagram-uiShowToolbox":"Afficher les outils","dxDiagram-uiSearch":"Recherche","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Disposition","dxDiagram-uiLayoutTree":"Arbre","dxDiagram-uiLayoutLayered":"Par couches","dxDiagram-uiDiagram":"Diagramme","dxDiagram-uiText":"Texte","dxDiagram-uiObject":"Objet","dxDiagram-uiConnector":"Connecteur","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Texte","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Croix","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamant","dxDiagram-shapeHeart":"C\u0153ur","dxDiagram-shapePentagon":"Pentagone","dxDiagram-shapeHexagon":"Hexagone","dxDiagram-shapeOctagon":"Octogone","dxDiagram-shapeStar":"\xc9toile","dxDiagram-shapeArrowLeft":"Fl\xe8che gauche","dxDiagram-shapeArrowUp":"Fl\xe8che vers le haut","dxDiagram-shapeArrowRight":"Fl\xe8che droite","dxDiagram-shapeArrowDown":"Fl\xe8che vers le bas","dxDiagram-shapeArrowUpDown":"Fl\xe8che haut bas","dxDiagram-shapeArrowLeftRight":"Fl\xe8che gauche droite","dxDiagram-shapeProcess":"Processus","dxDiagram-shapeDecision":"D\xe9cision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Processus pr\xe9d\xe9fini","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Documents multiples","dxDiagram-shapeManualInput":"Entr\xe9e manuelle","dxDiagram-shapePreparation":"Pr\xe9paration","dxDiagram-shapeData":"Donn\xe9es","dxDiagram-shapeDatabase":"Base de donn\xe9es","dxDiagram-shapeHardDisk":"Disque dur","dxDiagram-shapeInternalStorage":"Stockage interne","dxDiagram-shapePaperTape":"Bande de papier","dxDiagram-shapeManualOperation":"Op\xe9ration manuelle","dxDiagram-shapeDelay":"Retard","dxDiagram-shapeStoredData":"Les donn\xe9es stock\xe9es","dxDiagram-shapeDisplay":"Afficher","dxDiagram-shapeMerge":"Fusionner","dxDiagram-shapeConnector":"Connecteur","dxDiagram-shapeOr":"Ou","dxDiagram-shapeSummingJunction":"Jonction de sommation","dxDiagram-shapeContainerDefaultText":"R\xe9cipient","dxDiagram-shapeVerticalContainer":"Conteneur vertical","dxDiagram-shapeHorizontalContainer":"Conteneur horizontal","dxDiagram-shapeCardDefaultText":"Nom de la personne","dxDiagram-shapeCardWithImageOnLeft":"Carte avec image \xe0 gauche","dxDiagram-shapeCardWithImageOnTop":"Carte avec image sur le dessus","dxDiagram-shapeCardWithImageOnRight":"Carte avec image \xe0 droite","dxGantt-dialogTitle":"Titre","dxGantt-dialogStartTitle":"D\xe9part","dxGantt-dialogEndTitle":"Fin","dxGantt-dialogProgressTitle":"Progr\xe8s","dxGantt-dialogResourcesTitle":"Ressources","dxGantt-dialogResourceManagerTitle":"Gestionnaire de ressources","dxGantt-dialogTaskDetailsTitle":"D\xe9tails de la t\xe2che","dxGantt-dialogEditResourceListHint":"Modifier la liste des ressources","dxGantt-dialogEditNoResources":"Pas de ressources","dxGantt-dialogButtonAdd":"Ajouter","dxGantt-contextMenuNewTask":"Nouvelle t\xe2che","dxGantt-contextMenuNewSubtask":"Nouvelle sous-t\xe2che","dxGantt-contextMenuDeleteTask":"Supprimer la t\xe2che","dxGantt-contextMenuDeleteDependency":"Supprimer la d\xe9pendance","dxGantt-dialogTaskDeleteConfirmation":"La suppression d\'une t\xe2che supprime \xe9galement toutes ses d\xe9pendances et sous-t\xe2ches. \xcates-vous s\xfbr de vouloir supprimer cette t\xe2che?","dxGantt-dialogDependencyDeleteConfirmation":"\xcates-vous s\xfbr de vouloir supprimer la d\xe9pendance de la t\xe2che?","dxGantt-dialogResourcesDeleteConfirmation":"La suppression d\'une ressource la supprime \xe9galement des t\xe2ches auxquelles cette ressource est affect\xe9e. Voulez-vous vraiment supprimer ces ressources? Ressources : {0}","dxGantt-dialogConstraintCriticalViolationMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une deuxi\xe8me t\xe2che par une relation de d\xe9pendance. Ce changement serait en conflit avec les r\xe8gles de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogConstraintViolationMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une deuxi\xe8me t\xe2che par une relation de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogCancelOperationMessage":"Annuler l\'op\xe9ration","dxGantt-dialogDeleteDependencyMessage":"Supprimer la d\xe9pendance","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"D\xe9placer la t\xe2che et conserver la d\xe9pendance","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une autre t\xe2che par des relations de d\xe9pendance. Ce changement serait en conflit avec les r\xe8gles de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une autre t\xe2che par des relations de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogDeleteDependenciesMessage":"Supprimer les d\xe9pendances","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"D\xe9placer la t\xe2che et conserver les d\xe9pendances","dxGantt-undo":"Annuler","dxGantt-redo":"Refaire","dxGantt-expandAll":"D\xe9velopper tout","dxGantt-collapseAll":"Tout r\xe9duire","dxGantt-addNewTask":"Ajouter une nouvelle t\xe2che","dxGantt-deleteSelectedTask":"Supprimer la t\xe2che s\xe9lectionn\xe9e","dxGantt-zoomIn":"Agrandir","dxGantt-zoomOut":"D\xe9zoomer","dxGantt-fullScreen":"Plein \xe9cran","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Tri croissant","dxGantt-sortingDescendingText":"Tri d\xe9croissant","dxGantt-sortingClearText":"Supprimer le tri","dxGantt-showResources":"Afficher les ressources","dxGantt-showDependencies":"Afficher les d\xe9pendances","dxGantt-dialogStartDateValidation":"La date de d\xe9but doit \xeatre post\xe9rieure au {0}","dxGantt-dialogEndDateValidation":"La date de fin doit \xeatre post\xe9rieure au {0}"}}');class Pw{}Pw.\u0275fac=function(n){return new(n||Pw)},Pw.\u0275mod=nt({type:Pw}),Pw.\u0275inj=Je({imports:[ng]});const aC=new Pi("NAVIGATION_CONFIGURATION"),dyt={twitter:"twitter:",facebook:"og:",default:""},X2=t=>t.startsWith("^"),J2=t=>X2(t)?t.substring("^".length):t;function g_(t){return!!t&&(t instanceof G||"function"==typeof t.lift&&"function"==typeof t.subscribe)}const gyt=new class pyt extends Zf{}(class hyt extends Mle{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}schedule(n,e=0){return e>0?super.schedule(n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)}execute(n,e){return e>0||this.closed?super.execute(n,e):this._execute(n,e)}requestAsyncId(n,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(n,e,i):n.flush(this)}});class Sh{constructor(n,e,i){this.kind=n,this.value=e,this.error=i,this.hasValue="N"===n}observe(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}}do(n,e,i){switch(this.kind){case"N":return n&&n(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(n,e,i){return n&&"function"==typeof n.next?this.observe(n):this.do(n,e,i)}toObservable(){switch(this.kind){case"N":return Bi(this.value);case"E":return Hx(this.error);case"C":return AF()}throw new Error("unexpected notification kind value")}static createNext(n){return typeof n<"u"?new Sh("N",n):Sh.undefinedValueNotification}static createError(n){return new Sh("E",void 0,n)}static createComplete(){return Sh.completeNotification}}Sh.completeNotification=new Sh("C"),Sh.undefinedValueNotification=new Sh("N",void 0);class Q2 extends F{constructor(n,e,i=0){super(n),this.scheduler=e,this.delay=i}static dispatch(n){const{notification:e,destination:i}=n;e.observe(i),this.unsubscribe()}scheduleMessage(n){this.destination.add(this.scheduler.schedule(Q2.dispatch,this.delay,new myt(n,this.destination)))}_next(n){this.scheduleMessage(Sh.createNext(n))}_error(n){this.scheduleMessage(Sh.createError(n)),this.unsubscribe()}_complete(){this.scheduleMessage(Sh.createComplete()),this.unsubscribe()}}class myt{constructor(n,e){this.notification=n,this.destination=e}}class Pme extends le{constructor(n=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=n<1?1:n,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(n){if(!this.isStopped){const e=this._events;e.push(n),e.length>this._bufferSize&&e.shift()}super.next(n)}nextTimeWindow(n){this.isStopped||(this._events.push(new _yt(this._getNow(),n)),this._trimBufferThenGetEvents()),super.next(n)}_subscribe(n){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let a;if(this.closed)throw new ae;if(this.isStopped||this.hasError?a=O.EMPTY:(this.observers.push(n),a=new ge(this,n)),r&&n.add(n=new Q2(n,r)),e)for(let s=0;s<o&&!n.closed;s++)n.next(i[s]);else for(let s=0;s<o&&!n.closed;s++)n.next(i[s].value);return this.hasError?n.error(this.thrownError):this.isStopped&&n.complete(),a}_getNow(){return(this.scheduler||gyt).now()}_trimBufferThenGetEvents(){const n=this._getNow(),e=this._bufferSize,i=this._windowTime,r=this._events,o=r.length;let a=0;for(;a<o&&!(n-r[a].time<i);)a++;return o>e&&(a=Math.max(a,o-e)),a>0&&r.splice(0,a),r}}class _yt{constructor(n,e){this.time=n,this.value=e}}function Rme(t,n,e){let i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:n,refCount:!1,scheduler:e},r=>r.lift(function vyt({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:n=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,a,o=0,s=!1,l=!1;return function(f){let S;o++,!r||s?(s=!1,r=new Pme(t,n,i),S=r.subscribe(this),a=f.subscribe({next(T){r.next(T)},error(T){s=!0,r.error(T)},complete(){l=!0,a=void 0,r.complete()}}),l&&(a=void 0)):S=r.subscribe(this),this.add(()=>{o--,S.unsubscribe(),S=void 0,a&&!l&&e&&0===o&&(a.unsubscribe(),a=void 0,r=void 0)})}}(i))}class eR{}let Lme=(()=>{class t extends eR{getTranslation(e){return Bi({})}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();class PW{}let Bme=(()=>{class t{handle(e){return e.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();function kc(t){return typeof t<"u"&&null!==t}function RW(t){return t&&"object"==typeof t&&!Array.isArray(t)}function Nme(t,n){let e=Object.assign({},t);return RW(t)&&RW(n)&&Object.keys(n).forEach(i=>{RW(n[i])?i in t?e[i]=Nme(t[i],n[i]):Object.assign(e,{[i]:n[i]}):Object.assign(e,{[i]:n[i]})}),e}class tR{}let Vme=(()=>{class t extends tR{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(e,i){let r;return r="string"==typeof e?this.interpolateString(e,i):"function"==typeof e?this.interpolateFunction(e,i):e,r}getValue(e,i){let r="string"==typeof i?i.split("."):[i];i="";do{i+=r.shift(),!kc(e)||!kc(e[i])||"object"!=typeof e[i]&&r.length?r.length?i+=".":e=void 0:(e=e[i],i="")}while(r.length);return e}interpolateFunction(e,i){return e(i)}interpolateString(e,i){return i?e.replace(this.templateMatcher,(r,o)=>{let a=this.getValue(i,o);return kc(a)?a:r}):e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();class nR{}let Hme=(()=>{class t extends nR{compile(e,i){return e}compileTranslations(e,i){return e}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})();class zme{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new qi,this.onLangChange=new qi,this.onDefaultLangChange=new qi}}const LW=new Pi("USE_STORE"),BW=new Pi("USE_DEFAULT_LANG"),NW=new Pi("DEFAULT_LANGUAGE"),VW=new Pi("USE_EXTEND");let f_=(()=>{class t{constructor(e,i,r,o,a,s=!0,l=!1,u=!1,f){this.store=e,this.currentLoader=i,this.compiler=r,this.parser=o,this.missingTranslationHandler=a,this.useDefaultLang=s,this.isolate=l,this.extend=u,this.pending=!1,this._onTranslationChange=new qi,this._onLangChange=new qi,this._onDefaultLangChange=new qi,this._langs=[],this._translations={},this._translationRequests={},f&&this.setDefaultLang(f)}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(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(e){this.isolate?this._currentLang=e:this.store.currentLang=e}get langs(){return this.isolate?this._langs:this.store.langs}set langs(e){this.isolate?this._langs=e:this.store.langs=e}get translations(){return this.isolate?this._translations:this.store.translations}set translations(e){this.isolate?this._translations=e:this.store.translations=e}setDefaultLang(e){if(e===this.defaultLang)return;let i=this.retrieveTranslations(e);typeof i<"u"?(null==this.defaultLang&&(this.defaultLang=e),i.pipe(Xf(1)).subscribe(r=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(e===this.currentLang)return Bi(this.translations[e]);let i=this.retrieveTranslations(e);return typeof i<"u"?(this.currentLang||(this.currentLang=e),i.pipe(Xf(1)).subscribe(r=>{this.changeLang(e)}),i):(this.changeLang(e),Bi(this.translations[e]))}retrieveTranslations(e){let i;return(typeof this.translations[e]>"u"||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),i=this._translationRequests[e]),i}getTranslation(e){this.pending=!0;const i=this.currentLoader.getTranslation(e).pipe(Rme(1),Xf(1));return this.loadingTranslations=i.pipe(K(r=>this.compiler.compileTranslations(r,e)),Rme(1),Xf(1)),this.loadingTranslations.subscribe({next:r=>{this.translations[e]=this.extend&&this.translations[e]?Object.assign(Object.assign({},r),this.translations[e]):r,this.updateLangs(),this.pending=!1},error:r=>{this.pending=!1}}),i}setTranslation(e,i,r=!1){i=this.compiler.compileTranslations(i,e),this.translations[e]=(r||this.extend)&&this.translations[e]?Nme(this.translations[e],i):i,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){e.forEach(i=>{-1===this.langs.indexOf(i)&&this.langs.push(i)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(e,i,r){let o;if(i instanceof Array){let a={},s=!1;for(let l of i)a[l]=this.getParsedResult(e,l,r),g_(a[l])&&(s=!0);return s?Yhe(i.map(u=>g_(a[u])?a[u]:Bi(a[u]))).pipe(K(u=>{let f={};return u.forEach((S,T)=>{f[i[T]]=S}),f})):a}if(e&&(o=this.parser.interpolate(this.parser.getValue(e,i),r)),typeof o>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],i),r)),typeof o>"u"){let a={key:i,translateService:this};typeof r<"u"&&(a.interpolateParams=r),o=this.missingTranslationHandler.handle(a)}return typeof o<"u"?o:i}get(e,i){if(!kc(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe($f(r=>g_(r=this.getParsedResult(r,e,i))?r:Bi(r)));{let r=this.getParsedResult(this.translations[this.currentLang],e,i);return g_(r)?r:Bi(r)}}getStreamOnTranslationChange(e,i){if(!kc(e)||!e.length)throw new Error('Parameter "key" required');return AE(FF(()=>this.get(e,i)),this.onTranslationChange.pipe(Cc(r=>{const o=this.getParsedResult(r.translations,e,i);return"function"==typeof o.subscribe?o:Bi(o)})))}stream(e,i){if(!kc(e)||!e.length)throw new Error('Parameter "key" required');return AE(FF(()=>this.get(e,i)),this.onLangChange.pipe(Cc(r=>{const o=this.getParsedResult(r.translations,e,i);return g_(o)?o:Bi(o)})))}instant(e,i){if(!kc(e)||!e.length)throw new Error('Parameter "key" required');let r=this.getParsedResult(this.translations[this.currentLang],e,i);if(g_(r)){if(e instanceof Array){let o={};return e.forEach((a,s)=>{o[e[s]]=e[s]}),o}return e}return r}set(e,i,r=this.currentLang){this.translations[r][e]=this.compiler.compile(i,r),this.updateLangs(),this.onTranslationChange.emit({lang:r,translations:this.translations[r]})}changeLang(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.getTranslation(e)}resetLang(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof e>"u"?void 0:(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,e}}return t.\u0275fac=function(e){return new(e||t)(qt(zme),qt(eR),qt(nR),qt(tR),qt(PW),qt(BW),qt(LW),qt(VW),qt(NW))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac}),t})(),Ume=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:eR,useClass:Lme},e.compiler||{provide:nR,useClass:Hme},e.parser||{provide:tR,useClass:Vme},e.missingTranslationHandler||{provide:PW,useClass:Bme},zme,{provide:LW,useValue:e.isolate},{provide:BW,useValue:e.useDefaultLang},{provide:VW,useValue:e.extend},{provide:NW,useValue:e.defaultLanguage},f_]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:eR,useClass:Lme},e.compiler||{provide:nR,useClass:Hme},e.parser||{provide:tR,useClass:Vme},e.missingTranslationHandler||{provide:PW,useClass:Bme},{provide:LW,useValue:e.isolate},{provide:BW,useValue:e.useDefaultLang},{provide:VW,useValue:e.extend},{provide:NW,useValue:e.defaultLanguage},f_]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})();class Mc{get isAnyTranslationLoaded(){const{translations:n={}}=this.translateService;return!!Object.keys(n).length}get onTranslationChange(){return this.translateService.onTranslationChange}constructor(n){this.translateService=n}isTranslationLoaded(n){return!!this.translateService.translations[n]}getTranslationDirectly(n,e){if(X2(n))return J2(n);let i={...this.translateService.translations[e]},r=n.split(".");for(;r.length;){const o=r.shift();o&&!i[o]&&(r=[]),i=o&&i[o]?i[o]:void 0}return i}getTranslation(n){return this.translateService.currentLoader.getTranslation(n)}saveAndGetParsedResult({translations:n,key:e,interpolateParams:i,isSaveOnMissing:r=!0,lang:o}){return r&&this.saveTranslations(o,n),this.translateService.getParsedResult(n,e,i)}getTextOrInstant(n){return X2(n)?J2(n):this.translateService.instant(n)}saveTranslations(n,e){this.translateService.translations[n]=this.translateService.translations[n]?Object.assign(Object.assign({},e),this.translateService.translations[n]):e}}Mc.\u0275fac=function(n){return new(n||Mc)(qt(f_))},Mc.\u0275prov=Hn({token:Mc,factory:Mc.\u0275fac});const yyt=new Pi("REQUEST"),Zd=(new Pi("RESPONSE"),{en:"en",de:"de",nl:"nl",pl:"pl",ignore:"ignore"}),Dyt=Object.values(Zd);class Dh{constructor(n,e,i,r){this.translateService=n,this.req=e,this.platformId=i,this.configuration=r,this.isBrowser=!1,this.availableLangs=this.configuration.availableLangs,this.initLang=this.configuration.initLang,this.isLangDeChange=new Gd(!1),this.isLangEnChange=new Gd(!1),this.langLoadingStarted={},this.langLoadingFinished=new Gd(this.initLang),this.isBrowser=Gf(i),this.onLangChange.subscribe(({lang:o})=>{this.isLangDeChange.next(o===Zd.de),this.isLangEnChange.next(o===Zd.en)})}get langs(){return this.translateService.getLangs()}get currentLang(){return this.translateService.currentLang}get defaultLang(){return this.translateService.getDefaultLang()}get browserLang(){return this.translateService.getBrowserLang()}get serverSideCookieLang(){return this.req&&this.req.cookies?this.req.cookies.lang:null}get onLangChange(){return this.translateService.onLangChange}get possibleLang(){return this.isBrowser?this.browserLang:this.serverSideCookieLang}isLang(n){return this.availableLangs.includes(n)}}Dh.\u0275fac=function(n){return new(n||Dh)(qt(f_),qt(yyt,8),qt(si),qt(aC))},Dh.\u0275prov=Hn({token:Dh,factory:Dh.\u0275fac});class vp{get currentRelativeUrl(){return"/"+[this.currentUrlLang,this.currentUrlPath].join("/")+this.currentQueryParamsString+this.currentFragmentString}get currentUrlPath(){return this.location.path().split("/").filter((n,e)=>e>1).join("/").split("?")[0]}get currentUrlLang(){return(this.location.path()||"/").indexOf("/")>=0?(this.location.path()||"/").split("/")[1].split("?")[0]:""}get currentUrlPathNice(){return this.currentUrlPath.split("-").map(n=>(n.split("").shift()||"").toUpperCase()+n.substring(1)).join(" ")}get currentFragment(){return this.isBrowser?window.location.hash.substring(1):void 0}get currentFragmentString(){return this.getFragmentString(this.currentFragment)}get currentQueryParams(){const n=this.location.path();if(this.location.path().indexOf("?")>-1){let i=n.substring(n.indexOf("?")+1);if(i){const r=i.indexOf("#");return r>-1&&(i=i.substring(0,r)),(t=>{if(t)try{return JSON.parse('{"'+decodeURI(t).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"')+'"}')}catch{}})(i)}}}get currentQueryParamsString(){return this.getQueryParamsString(this.currentQueryParams)}get title(){const{currentUrlPath:n,currentUrlPathNice:e,currentUrlLang:i,initLang:r}=this,{appName:o}=this,a=this.pathTitlesKeys[n]?this.translationHelpService.getTextOrInstant(this.pathTitlesKeys[n]):e;return this.titleBuilder({appName:o,currentPathTitle:a,currentLang:i||r})}constructor(n,e,i,r,o){this.translationHelpService=n,this.langsService=e,this.location=i,this.platformId=r,this.configuration=o,this.isBrowser=Gf(this.platformId),this.titleBuilder=this.configuration.titleBuilder,this.pathTitlesKeys=this.configuration.pathTitlesKeys,this.appName=this.configuration.appName,this.initLang=this.configuration.initLang}getRelativeUrlByPath({path:n,fragment:e,nextLang:i,queryParams:r,isRedirect:o}){return"ignore"==i||"ignore"==this.langsService.currentLang?(n?`/${n}`:"/")+(o?this.currentQueryParamsString:this.getQueryParamsString(r))+(o?this.currentFragmentString:this.getFragmentString(e)):`/${i||this.langsService.currentLang}`+(n?`${n}/`:"/")+(o?this.currentQueryParamsString:this.getQueryParamsString(r))+(o?this.currentFragmentString:this.getFragmentString(e))}getQueryParamsString(n){return n&&Object.keys(n).length?"?"+Object.keys(n).map(e=>`${e}=${n[e]}`).join("&"):""}getFragmentString(n){return n?`#${n}`:""}}vp.\u0275fac=function(n){return new(n||vp)(qt(Mc),qt(Dh),qt(aF),qt(si),qt(aC))},vp.\u0275prov=Hn({token:vp,factory:vp.\u0275fac});class Dm{constructor(n,e){this.translationHelpService=n,this.langsService=e}transform(n,e){const i=new Pme;if(X2(n))i.next(J2(n));else{const{currentLang:r}=this.langsService;this.translationHelpService.isTranslationLoaded(r)&&this.loadResult({result:i,key:n,lang:r,fallbackLang:e}),this.langsService.onLangChange.subscribe(({lang:o})=>this.loadResult({result:i,key:n,lang:o,fallbackLang:e}))}return i}loadResult({result:n,key:e,lang:i,fallbackLang:r}){const{langLoadingFinished:o,langLoadingStarted:a}=this.langsService,s=this.translationHelpService.getTranslationDirectly(e,i);s&&s!==e||!r?n.next(s||e):this.translationHelpService.isTranslationLoaded(r)?n.next(this.translationHelpService.getTranslationDirectly(e,r)||e):a[r]?o.subscribe(l=>{l===r&&n.next(this.translationHelpService.getTranslationDirectly(e,r)||e)}):(a[r]=!0,this.translationHelpService.getTranslation(r).pipe(K(l=>this.translationHelpService.saveAndGetParsedResult({translations:l,key:e,lang:r}))).subscribe(l=>{n.next(l),a[r]=!1,o.next(r)},()=>{n.next(e),a[r]=!1,o.next(r)}))}}Dm.\u0275fac=function(n){return new(n||Dm)($(Mc,16),$(Dh,16))},Dm.\u0275pipe=bs({name:"navTranslateWithFallbackLang",type:Dm,pure:!0});class wg{constructor(n,e,i,r,o){this.meta=n,this.urlService=e,this.translationHelpService=i,this.translateWithFallbackLangPipe=r,this.configuration=o,this.lastAdded=[],this.twitterMeta=this.configuration.twitterMeta,this.facebookMeta=this.configuration.facebookMeta,this.defaultMeta=this.configuration.defaultMeta}destroy(){this.lastAdded.forEach(n=>n&&this.meta.removeTagElement(n))}appendDefault(n=!0){n&&this.destroy(),this.appendByTypeAndBuilder("default",this.defaultMeta),this.appendSocialNetworks()}appendSocialNetworks(){this.appendByTypeAndBuilder("twitter",this.twitterMeta),this.appendByTypeAndBuilder("facebook",this.facebookMeta)}appendMetaByType(n,e,i){this.appendMeta(dyt[n]+e,i)}appendByTypeAndBuilder(n,e){const{currentUrlPath:i,currentUrlLang:r,title:o}=this.urlService,a=s=>{const{builder:l,fallsbackLang:u,notTranlateableNames:f=[]}=e,S=l({path:i,lang:r,title:o}),T=S[s||i]||S["*"]||{},L=(z,j)=>this.appendMetaByType(n,z,j||T[z]);Object.keys(T).forEach(z=>{(z=>!f.includes(z))(z)?this.translateWithFallbackLangPipe.transform(T[z],u).subscribe(j=>L(z,j),()=>console.log("Failed to retrieve translation for: ",z)):L(J2(z))})};this.urlService.currentUrlLang?this.translationHelpService.isTranslationLoaded(r)?a():this.translationHelpService.onTranslationChange.subscribe(({lang:s})=>{s===r&&a()}):a("@")}appendMeta(n,e){const i=this.meta.addTag({name:n,content:e});return i&&this.lastAdded.push(i),i}}wg.\u0275fac=function(n){return new(n||wg)(qt(Lse),qt(vp),qt(Mc),qt(Dm),qt(aC))},wg.\u0275prov=Hn({token:wg,factory:wg.\u0275fac});class Sg{constructor(n,e,i){this.translateService=n,this.document=e,this.configuration=i,this.isLoggingEnabled=this.configuration.isLoggingEnabled}destroy(){this.clearLinks(),this.unsubscribeFromLangChange()}log(n){this.isLoggingEnabled&&console&&console.log(n)}clearLinks(){const n=this.document.querySelectorAll('link[rel="canonical"]');n.length&&(this.log("link cleared"),Array.from(n).forEach(e=>e.remove()))}unsubscribeFromLangChange(){this.langChangeSubcription&&(this.langChangeSubcription.unsubscribe(),this.log("unsubcribed"))}appendLink(n,e){this.clearLinks();let i=`/${e||this.translateService.currentLang}/${n}`;i.endsWith("/")&&(i=i.slice(0,-1));const r=this.createLink(i);this.log(r)}appendLangLink({exceptLangs:n,path:e,withLang:i,subscribeLangChange:r=!1}){this.unsubscribeFromLangChange();const o=()=>{let a=[];"string"==typeof n?a.push(n):a=n||[],this.appendLink(e,a.includes(this.translateService.currentLang)?this.translateService.currentLang:i)};o(),r&&(this.log("subscribe"),this.langChangeSubcription=this.translateService.onLangChange.subscribe(()=>o()))}createLink(n){const e=this.document.createElement("link");return e.setAttribute("rel","canonical"),e.setAttribute("href",n),this.document.head.appendChild(e),e}}Sg.\u0275fac=function(n){return new(n||Sg)(qt(f_),qt(Ko),qt(aC))},Sg.\u0275prov=Hn({token:Sg,factory:Sg.\u0275fac});class Em{get nextLang(){const n=this.langsService.possibleLang;return this.langsService.isLang(this.urlService.currentUrlLang)?this.urlService.currentUrlLang:this.langsService.isLang(n)?n:this.initLang}get availablePaths(){return this.router.config.find(({path:e})=>":lang"===e||e===this.initLang)?.children?.filter(e=>e.path).map(e=>e.path||"")||[]}get alternativePaths(){return this.router.config.filter(n=>n.path&&":lang"!==n.path).map(n=>n.path)}get isAlternativeRoute(){return this.alternativePaths.includes(this.urlService.currentUrlLang)}get isAllowedHeadActions(){return this.translationHelpService.isAnyTranslationLoaded&&this.lastUsedRelativeURL!==this.urlService.currentRelativeUrl&&!this.isAlternativeRoute}constructor(n,e,i,r,o,a,s,l,u,f,S){this.metaService=n,this.canonicalLinksService=e,this.router=i,this.titleService=r,this.translateService=o,this.translationHelpService=a,this.urlService=s,this.langsService=l,this.platformId=u,this.document=f,this.configuration=S,this.availableLangs=this.configuration.availableLangs,this.canonicalLinks=this.configuration.canonicalLinks,this.htmlLangs=this.configuration.htmlLangs,this.initLang=this.configuration.initLang,this.startPath=this.configuration.startPath,this.notFoundPath=this.configuration.notFoundPath,this.isLoggingEnabled=this.configuration.isLoggingEnabled,this.isBrowser=!1,this.visit={start:T=>this.relative({path:this.startPath,...T||{}}),notFound:T=>this.relative({path:this.notFoundPath,...T||{}})},this.lastUsedRelativeURL="",this.configuration.skipInit||this.init()}init(){this.isBrowser=Gf(this.platformId);const{nextLang:n}=this;this.translateService.addLangs(this.availableLangs),this.translateService.setDefaultLang(n),this.setNextLang(n),this.isBrowser?(this.setLangCookie(),this.defaultRedirects(),this.checkMatchLangURL()):this.headActions(n),this.translateService.onLangChange.subscribe(({lang:e})=>this.headActions(e))}headActions(n){this.isAllowedHeadActions&&(this.lastUsedRelativeURL=this.urlService.currentRelativeUrl,this.setTitle(),this.correctLang(n),this.setCanonicalLink(),this.metaService.appendDefault(),this.isLoggingEnabled&&this.isBrowser&&(console.log(Array.from({length:100}).join("=")),setTimeout(()=>Array.from(this.document.querySelectorAll("meta")).forEach(e=>console.log(e)))))}defaultRedirects(){if(this.isAlternativeRoute)return;const{currentUrlLang:n}=this.urlService,{nextLang:e}=this,i=this.availablePaths.includes(n);i&&this.relative({path:n,nextLang:e,isRedirect:i})}setCanonicalLink(){const n=this.urlService.currentUrlPath,{exceptLangs:e,withLang:i}=this.canonicalLinks[n]||{};this.canonicalLinksService.appendLangLink({path:n,exceptLangs:e,withLang:i})}setLangCookie(){this.isBrowser&&(document.cookie=[...document.cookie.split(";").filter(n=>-1===n.indexOf(" lang=")),` lang=${this.langsService.browserLang}`].join(";"))}checkMatchLangURL(){this.router.events.subscribe(n=>{if(n instanceof N0){if(this.isAlternativeRoute)return;const{currentUrlLang:e,currentUrlPath:i}=this.urlService,{currentLang:r,defaultLang:o}=this.langsService;if(r&&e!==r){const a=this.langsService.isLang(e)?e:o,s=this.langsService.isLang(e)?i:"lang"===e?this.startPath:this.notFoundPath;this.relative({nextLang:a,path:s})}this.headActions(r)}})}setTitle(){this.titleService.setTitle(this.urlService.title)}correctLang(n){const e=this.htmlLangs[this.urlService.currentUrlPath]||{},r=a=>e[a],o=("string"==typeof e?e:void 0)||r(n)||r("*")||n;this.document.documentElement.lang!==o&&(this.document.documentElement.lang=o)}setNextLang(n){this.document.documentElement.lang=n,this.translateService.use(n)}relative(n={}){const{nextLang:e,path:i}=n;e&&this.setNextLang(e),["string"==typeof e?e:this.translateService.currentLang,"string"==typeof i?i:this.urlService.currentUrlPath].join("/")}}Em.\u0275fac=function(n){return new(n||Em)(qt(wg),qt(Sg),qt(ds),qt(YH),qt(f_),qt(Mc),qt(vp),qt(Dh),qt(si),qt(Ko),qt(aC))},Em.\u0275prov=Hn({token:Em,factory:Em.\u0275fac});const{en:jme}=Zd,HW={builder:()=>({}),fallsbackLang:jme,notTranlateableNames:[]},Kme={skipInit:!1,availableLangs:Dyt,canonicalLinks:{},appName:"App",pathTitlesKeys:{},htmlLangs:{},initLang:jme,notFoundPath:"not-found",startPath:"",titleBuilder:({appName:t,currentPathTitle:n,currentLang:e})=>`${t} | ${n} | ${e.toUpperCase()}`,isLoggingEnabled:!1,facebookMeta:HW,twitterMeta:HW,defaultMeta:HW};function $me(t){return t?{...Kme,...t}:Kme}class Dg{constructor(n){this.injector=n,this.injector.get(Sg),this.injector.get(wg),this.injector.get(Em),this.injector.get(vp),this.injector.get(Dh),this.injector.get(Dm),this.injector.get(Mc)}static forRoot(n){return{ngModule:Dg,providers:[{provide:aC,useValue:$me(n)},Em,wg,Sg,vp,Dh,Dm,Mc]}}static forChild(){return{ngModule:Dg,providers:[{provide:aC,useValue:$me({skipInit:!0})},Em,wg,Sg,vp,Dh,Dm,Mc]}}}Dg.\u0275fac=function(n){return new(n||Dg)(qt(xu))},Dg.\u0275mod=nt({type:Dg}),Dg.\u0275inj=Je({providers:[Em,Sg,wg,vp,Dh,Dm,Mc]});class Om{constructor(n){this.injector=n,this.injector.get(_g),this.injector.get(mg)}static forRoot(){return{ngModule:Om,providers:[_g,mg]}}}Om.\u0275fac=function(n){return new(n||Om)(qt(xu))},Om.\u0275mod=nt({type:Om}),Om.\u0275inj=Je({providers:[_g,mg],imports:[ng,gU,Ume.forRoot(),Dg.forChild()]});class Rw{}Rw.\u0275fac=function(n){return new(n||Rw)},Rw.\u0275mod=nt({type:Rw}),Rw.\u0275inj=Je({imports:[ng,Om]});class sC{constructor(n,e){this.http=n,this.scopeService=e,this.apiEndpoint=`${e.getScope().apiEndpoint}chatMembers`}post(n){return this.http.post(`${this.apiEndpoint}`,n)}hide(n){return this.http.post(`${this.apiEndpoint}/HideChat/${n}`,null)}delete(n){return this.http.delete(`${this.apiEndpoint}/${n.toString()}`)}toggleMute(n){return this.http.post(`${this.apiEndpoint}/ToggleChatMuted/${n}`,null)}promoteToAdmin(n){return this.http.post(`${this.apiEndpoint}/${n}/promoteToAdmin`,null)}revokeAdminPrivileges(n){return this.http.post(`${this.apiEndpoint}/${n}/revokeAdminPrivileges`,null)}}sC.\u0275fac=function(n){return new(n||sC)(qt(iu),qt(bo))},sC.\u0275prov=Hn({token:sC,factory:sC.\u0275fac});var zW="dxTranslator",Eyt=/matrix(3d)?\((.+?)\)/,Oyt=/translate(?:3d)?\((.+?)\)/,Ra=function(t){t=U(t);var n=rR(t);return{left:n.x,top:n.y}};function iR(t){return"string"===Fa(t)&&"%"===t[t.length-1]}function qme(t,n){t.length&&zo(t.get(0),zW,n)}var n0e,UW=function(t){t.length&&qP(t.get(0),zW)},IT=function(t){return t.x=t.x||0,t.y=t.y||0,"translate("+(iR(t.x)?t.x:t.x+"px")+", "+(iR(t.y)?t.y:t.y+"px")+")"},rR=function(t){var n=t.length?zo(t.get(0),zW):null;if(!n){var i=(t.css("transform")||IT({x:0,y:0})).match(Eyt),r=i&&i[1];i?(i=i[2].split(","),"3d"===r?i=i.slice(12,15):(i.push(0),i=i.slice(4,7))):i=[0,0,0],qme(t,n={x:parseFloat(i[0]),y:parseFloat(i[1]),z:parseFloat(i[2])})}return n},kr=function(t,n){t=U(t);var r,e=n.left,i=n.top;void 0===e?(r=rR(t)).y=i||0:void 0===i?(r=rR(t)).x=e||0:qme(t,r={x:e||0,y:i||0,z:0}),t.css({transform:IT(r)}),(iR(e)||iR(i))&&UW(t)},lC=function(t,n){t=U(t);var e,i={left:0,top:0,transform:"none"};n&&(e=t.css("transition"),i.transition="none"),t.css(i),UW(t),n&&(t.get(0),t.css("transition",e))},Yme=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,Zme={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},oR={},kyt=function(t){var e,n=(t=Zme[t]||t).match(Yme);n||(n=Zme[e="linear"].match(Yme)),n=n.slice(1,5);for(var i=0;i<n.length;i++)n[i]=parseFloat(n[i]);var r=e||"cubicbezier_"+n.join("_").replace(/\./g,"p");return Yt(oR[r])||(oR[r]=function(o,a,s,l,u){return l*function(t,n,e,i){var r=3*t,o=3*(e-t)-r,a=1-r-o,s=3*n,l=3*(i-n)-s,u=1-s-l,f=function(T){return T*(r+T*(o+T*a))},S=function(T){return r+T*(2*o+3*T*a)};return function(T){return(R=function(R){for(var j,L=R,z=0;z<14&&(j=f(L)-R,!(Math.abs(j)<.001));)L-=j/S(L),z++;return L}(T))*(s+R*(l+R*u));var R}}(n[0],n[1],n[2],n[3])(a/u)+s}),r},Eg=t=>t??no().rtlEnabled?"right":"left",Mi=t=>Da(t)?{width:t.outerWidth,height:t.outerHeight}:t.getBoundingClientRect(),Xme=Fn(),Ayt=/left|right/,Fyt=/top|bottom/,Jme=/fit|flip|none/,Pyt=/scale\(.+?\)/,Ryt=Ro.safari,WW=function(t){var n={h:"center",v:"center"},e=tw(t);return e&&we(e,function(){var i=String(this).toLowerCase();Ayt.test(i)?n.h=i:Fyt.test(i)&&(n.v=i)}),n},Qme=function(t){return Z7(t)},e0e=function(t){switch(t){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},GW=function(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}},jW=function(t,n){var e=0;return t.myLocation<n.min&&(e+=n.min-t.myLocation),t.myLocation>n.max&&(e+=t.myLocation-n.max),e},t0e=function(t,n,e){return n.myLocation<e.min?"h"===t?"left":"top":n.myLocation>e.max?"h"===t?"right":"bottom":"none"},KW=function(t){t.myLocation=t.atLocation+e0e(t.atAlign)*t.atSize-e0e(t.myAlign)*t.mySize+t.offset},aR={fit:function(t,n){var e=!1;t.myLocation>n.max&&(t.myLocation=n.max,e=!0),t.myLocation<n.min&&(t.myLocation=n.min,e=!0),t.fit=e},flip:function(t,n){if(t.flip=!1,("center"!==t.myAlign||"center"!==t.atAlign)&&(t.myLocation<n.min||t.myLocation>n.max)){var e=se({},t,{myAlign:GW(t.myAlign),atAlign:GW(t.atAlign),offset:-t.offset});KW(e),e.oversize=jW(e,n),(e.myLocation>=n.min&&e.myLocation<=n.max||t.oversize>e.oversize)&&(t.myLocation=e.myLocation,t.oversize=e.oversize,t.flip=!0)}},flipfit:function(t,n){this.flip(t,n),this.fit(t,n)},none:function(t){t.oversize=0}},i0e=function(){var t=U("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(U("body")),n=t.get(0).offsetWidth-t.get(0).clientWidth;t.remove(),n0e=n},Byt={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},r0e=function(t,n){var e=U(t),i=e.offset(),r=se(!0,{},Byt,{h:{location:i.left},v:{location:i.top}});if(!n)return r;var o=WW(n.my),a=WW(n.at),s=U(n.of).length&&n.of||Xme,l=Qme(n.offset),u=function(t){var n=tw(t),e=String(n&&n[0]).toLowerCase(),i=String(n&&n[1]).toLowerCase();return Jme.test(e)||(e="none"),Jme.test(i)||(i=e),{h:e,v:i}}(n.collision),f=n.boundary,S=Qme(n.boundaryOffset),T={mySize:ii(e),myAlign:o.h,atAlign:a.h,offset:l.h,collision:u.h,boundaryOffset:S.h},R={mySize:Zn(e),myAlign:o.v,atAlign:a.v,offset:l.v,collision:u.v,boundaryOffset:S.v};if(s.preventDefault)T.atLocation=s.pageX,R.atLocation=s.pageY,T.atSize=0,R.atSize=0;else if(s=U(s),Da(s[0]))T.atLocation=s.scrollLeft(),R.atLocation=s.scrollTop(),"phone"===pn.real().deviceType&&s[0].visualViewport?(T.atLocation=Math.max(T.atLocation,s[0].visualViewport.offsetLeft),R.atLocation=Math.max(R.atLocation,s[0].visualViewport.offsetTop),T.atSize=s[0].visualViewport.width,R.atSize=s[0].visualViewport.height):(T.atSize=s[0].innerWidth>s[0].outerWidth?s[0].innerWidth:wn(s),R.atSize=s[0].innerHeight>s[0].outerHeight||Ryt?s[0].innerHeight:Ln(s));else if(9===s[0].nodeType)T.atLocation=0,R.atLocation=0,T.atSize=wn(s),R.atSize=Ln(s);else{var L=Mi(s.get(0)),z=a0e(s);T.atLocation=z.left,R.atLocation=z.top,T.atSize=Math.max(L.width,ii(s)),R.atSize=Math.max(L.height,Zn(s))}KW(T),KW(R);var j=function(){var ie=U(Xme),te=wn(ie),re=Ln(ie),he=ie.scrollLeft(),fe=ie.scrollTop(),Te=It.getDocumentElement(),Re=h_?Te.clientWidth/te:1,He=h_?Te.clientHeight/re:1;void 0===n0e&&i0e();var Ze=te,at=re;if(f&&!Da(f)){var vt=U(f),Bt=vt.offset();he=Bt.left,fe=Bt.top,Ze=wn(vt),at=Ln(vt)}return{h:{min:he+T.boundaryOffset,max:he+Ze/Re-T.mySize-T.boundaryOffset},v:{min:fe+R.boundaryOffset,max:fe+at/He-R.mySize-R.boundaryOffset}}}();T.oversize=jW(T,j.h),R.oversize=jW(R,j.v),T.collisionSide=t0e("h",T,j.h),R.collisionSide=t0e("v",R,j.v),aR[T.collision]&&aR[T.collision](T,j.h),aR[R.collision]&&aR[R.collision](R,j.v);var Y=function(ie){return n.precise?ie:Math.round(ie)};return se(!0,r,{h:{location:Y(T.myLocation),oversize:Y(T.oversize),fit:T.fit,flip:T.flip,collisionSide:T.collisionSide},v:{location:Y(R.myLocation),oversize:Y(R.oversize),fit:R.fit,flip:R.flip,collisionSide:R.collisionSide},precise:n.precise}),r},o0e=function(t,n,e,i,r){Z(t.style)&&!It.isNode(t.style)?t.style.transform=r?e.replace(n,""):e:t.setAttribute("style",r?i.replace(n,""):i)},a0e=function t(n){var e,i,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,a=o.get(0);if(!a)return n.offset();var f,s=(null===(e=a.getAttribute)||void 0===e?void 0:e.call(a,"style"))||"",l=null===(i=a.style)||void 0===i?void 0:i.transform,u=null===(r=s.match(Pyt))||void 0===r?void 0:r[0];return u?(o0e(a,u,l,s,!0),f=t(n,o.parent()),o0e(a,u,l,s,!1)):f=t(n,o.parent()),f},kT=function(t,n){var e=U(t);if(!n)return e.offset();lC(e,!0);var i=a0e(e),r=n.h&&n.v?n:r0e(e,n),o=function(a){return n.precise?a:Math.round(a)};return kr(e,{left:r.h.location-o(i.left),top:r.v.location-o(i.top)}),r};kT.inverseAlign||(kT.inverseAlign=GW),kT.normalizeAlign||(kT.normalizeAlign=WW);const rs={calculateScrollbarWidth:i0e,calculate:r0e,setup:kT,offset:function(t){return t=U(t).get(0),Da(t)?null:t&&"pageY"in t&&"pageX"in t?{top:t.pageY,left:t.pageX}:U(t).offset()}};var s0e=Fn(),MT=kt(vg,"dxFX"),Vyt=/^([+-])=(.*)/i,AT="dxAnimData",$W="dxAnimQueue",yp="transform",Hyt={initAnimation:function(t,n){t.css({transitionProperty:"none"}),"string"==typeof n.from?t.addClass(n.from):eG(t,n.from);var e=this,i=new et,r=n.cleanupWhen;n.transitionAnimation={deferred:i,finish:function(){e._finishTransition(t),r?Qt(i,r).always(function(){e._cleanup(t,n)}):e._cleanup(t,n),i.resolveWith(t,[n,t])}},this._completeAnimationCallback(t,n).done(function(){n.transitionAnimation.finish()}).fail(function(){i.rejectWith(t,[n,t])}),n.duration||n.transitionAnimation.finish(),t.css("transform")},animate:function(t,n){return this._startAnimation(t,n),n.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(t,n){var s,e=this,i=Date.now()+n.delay,r=new et,o=new et,a=new et,l=Zfe()+".dxFX";n.transitionAnimation.cleanup=function(){clearTimeout(s),clearTimeout(u),Se.off(t,l),Se.off(t,MT)},Se.one(t,l,function(){Date.now()-i>=n.duration&&o.reject()}),Se.off(t,MT),Se.on(t,MT,function(){e.stop(t,n),r.reject()});var u=setTimeout(function(){s=setTimeout(function(){a.reject()},n.duration+n.delay+FT._simulatedTransitionEndDelay),Qt(o,a).fail(function(){r.resolve()}.bind(this))});return r.promise()},_startAnimation:function(t,n){t.css({transitionProperty:"all",transitionDelay:n.delay+"ms",transitionDuration:n.duration+"ms",transitionTimingFunction:n.easing}),"string"==typeof n.to?t[0].className+=" "+n.to:n.to&&eG(t,n.to)},_finishTransition:function(t){t.css("transition","none")},_cleanup:function(t,n){n.transitionAnimation.cleanup(),"string"==typeof n.from&&(t.removeClass(n.from),t.removeClass(n.to))},stop:function(t,n,e){n&&(e?n.transitionAnimation.finish():(wi(n.to)&&we(n.to,function(i){t.css(i,t.css(i))}),this._finishTransition(t),this._cleanup(t,n)))}},l0e={initAnimation:function(t,n){eG(t,n.from)},animate:function(t,n){var e=new et,i=this;return n?(we(n.to,function(r){void 0===n.from[r]&&(n.from[r]=i._normalizeValue(t.css(r)))}),n.to[yp]&&(n.from[yp]=i._parseTransform(n.from[yp]),n.to[yp]=i._parseTransform(n.to[yp])),n.frameAnimation={to:n.to,from:n.from,currentValue:n.from,easing:kyt(n.easing),duration:n.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),_p(n.frameAnimation.animationFrameId),e.resolve()},draw:function(){if(n.draw)n.draw(this.currentValue);else{var r=se({},this.currentValue);r[yp]&&(r[yp]=Dr(r[yp],function(o,a){return"translate"===a?IT(o):"scale"===a?"scale("+o+")":"rotate"===a.substr(0,a.length-1)?a+"("+o+"deg)":void 0}).join(" ")),t.css(r)}}},n.delay?(n.frameAnimation.startTime+=n.delay,n.frameAnimation.delayTimeout=setTimeout(function(){i._startAnimation(t,n)},n.delay)):i._startAnimation(t,n),e.promise()):e.reject().promise()},_startAnimation:function(t,n){Se.off(t,MT),Se.on(t,MT,function(){n.frameAnimation&&_p(n.frameAnimation.animationFrameId)}),this._animationStep(t,n)},_parseTransform:function(t){var n={};return we(t.match(/\w+\d*\w*\([^)]*\)\s*/g),function(e,i){var r=function(t){var n=t.match(Oyt);if(n&&n[1])return n=n[1].split(","),{x:parseFloat(n[0]),y:parseFloat(n[1]),z:parseFloat(n[2])}}(i),o=i.match(/scale\((.+?)\)/),a=i.match(/(rotate.)\((.+)deg\)/);r&&(n.translate=r),o&&o[1]&&(n.scale=parseFloat(o[1])),a&&a[1]&&(n[a[1]]=parseFloat(a[2]))}),n},stop:function(t,n,e){var i=n&&n.frameAnimation;i&&(_p(i.animationFrameId),clearTimeout(i.delayTimeout),e&&i.finish(),delete n.frameAnimation)},_animationStep:function(t,n){var e=n&&n.frameAnimation;if(e){var i=(new Date).valueOf();if(i>=e.startTime+e.duration)return void e.finish();e.currentValue=this._calcStepValue(e,i-e.startTime),e.draw();var r=this;e.animationFrameId=Fw(function(){r._animationStep(t,n)})}},_calcStepValue:function(t,n){return function e(i,r){var o=Array.isArray(r)?[]:{};return we(r,function(a,s){if("string"==typeof s&&!1===parseFloat(s))return!0;var l,u,f,S,T,R;o[a]="object"==typeof s?e(i[a],s):(u=n/t.duration,f=n,S=1*i[l=a],T=r[l]-i[l],R=t.duration,function Myt(t){return oR[t]}(t.easing)(u,f,S,T,R))}),o}(t.from,t.to)},_normalizeValue:function(t){var n=parseFloat(t);return!1===n?t:n}},zyt={initAnimation:function(){},animate:function(){return(new et).resolve().promise()},stop:Be,isSynchronous:!0},u0e=function(t,n,e,i){we(["from","to"],function(){if(!e(t[this]))throw Wr.Error("E0010",n,this,i)})},d0e=function(t,n){return u0e(t,n,function(e){return wi(e)},"a plain object")},jyt={validateConfig:function(t){!function(t,n){u0e(t,"css",function(e){return"string"==typeof e},"a string")}(t)},setup:function(){}},Kyt={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},qW={validateConfig:function(t){d0e(t,"slide")},setup:function(t,n){var e=Ra(t);if("slide"!==n.type){var i="slideIn"===n.type?n.from:n.to;i.position=se({of:s0e},Kyt[n.direction]),QW(t,i)}this._setUpConfig(e,n.from),this._setUpConfig(e,n.to),UW(t)},_setUpConfig:function(t,n){n.left="left"in n?n.left:"+=0",n.top="top"in n?n.top:"+=0",this._initNewPosition(t,n)},_initNewPosition:function(t,n){var e={left:n.left,top:n.top};delete n.left,delete n.top;var i=this._getRelativeValue(e.left);void 0!==i?e.left=i+t.left:n.left=0,void 0!==(i=this._getRelativeValue(e.top))?e.top=i+t.top:n.top=0,n[yp]=IT({x:e.left,y:e.top})},_getRelativeValue:function(t){var n;if("string"==typeof t&&(n=Vyt.exec(t)))return parseInt(n[1]+"1")*n[2]}},YW={setup:function(t,n){var e,i,r=n.from,o=n.to,a="fadeOut"===n.type?1:0,s="fadeOut"===n.type?0:1,l=wi(r)?String(null!==(e=r.opacity)&&void 0!==e?e:a):String(r),u=wi(o)?String(null!==(i=o.opacity)&&void 0!==i?i:s):String(o);switch(n.skipElementInitialStyles||(l=t.css("opacity")),n.type){case"fadeIn":u=1;break;case"fadeOut":u=0}n.from={visibility:"visible",opacity:l},n.to={opacity:u}}},$yt={validateConfig:function(t){d0e(t,"pop")},setup:function(t,n){var e=n.from,i=n.to,r="opacity"in e?e.opacity:t.css("opacity"),o="opacity"in i?i.opacity:1,a="scale"in e?e.scale:0,s="scale"in i?i.scale:1;n.from={opacity:r};var l=rR(t);n.from[yp]=this._getCssTransform(l,a),n.to={opacity:o},n.to[yp]=this._getCssTransform(l,s)},_getCssTransform:function(t,n){return IT(t)+"scale("+n+")"}},c0e={custom:{setup:function(){}},slide:qW,slideIn:qW,slideOut:qW,fade:YW,fadeIn:YW,fadeOut:YW,pop:$yt,css:jyt},Yyt={type:"custom",from:{},to:{},duration:400,start:Be,complete:Be,easing:"ease",delay:0},Zyt={duration:400,easing:"ease",delay:0};function Xyt(){var t=this.element,n=this.config;if(QW(t,n.from),QW(t,n.to),this.configurator.setup(t,n),t.data(AT,this),FT.off&&(n.duration=0,n.delay=0),this.strategy.initAnimation(t,n),n.start){var e=kn(t);n.start.apply(this,[e,n])}}var Qyt=function(){var t=this,n=t.element,e=t.config;return t.isStarted=!0,t.strategy.animate(n,e).done(function(){!function(t){var n=t.element,e=t.config;if(n.removeData(AT),e.complete){var i=kn(n);e.complete.apply(this,[i,e])}t.deferred.resolveWith(this,[n,e])}(t)}).fail(function(){t.deferred.rejectWith(this,[n,e])})},eCt=function(t){var n=this.element,e=this.config;clearTimeout(this.startTimeout),this.isStarted||this.start(),this.strategy.stop(n,e,t)},ZW=kt(vg,"dxFXStartAnimation"),h0e=function(t,n){var i=se(!0,{},"css"===n.type?Zyt:Yyt,n),r=function(t){var n=c0e[t.type];if(!n)throw Wr.Error("E0011",t.type);return n}(i),o=function(t){t=t||{};var n={transition:lW()?Hyt:l0e,frame:l0e,noAnimation:zyt},e=t.strategy||"transition";return"css"===t.type&&!lW()&&(e="noAnimation"),n[e]}(i),a={element:U(t),config:i,configurator:r,strategy:o,isSynchronous:o.isSynchronous,setup:Xyt,start:Qyt,stop:eCt,deferred:new et};return Yt(r.validateConfig)&&r.validateConfig(i),function(t){Se.off(t.element,ZW),Se.on(t.element,ZW,function(){FT.stop(t.element)}),t.deferred.always(function(){Se.off(t.element,ZW)})}(a),a};function XW(t){return t.data($W)||[]}var p0e=function(t){t.removeData($W)};function sR(t){return!!t.data(AT)}function JW(t,n){if((n=XW(t)).length){var e=n.shift();0===n.length&&p0e(t),function oCt(t){return t.setup(),FT.off||t.isSynchronous?t.start():t.startTimeout=setTimeout(function(){t.start()}),t.deferred.promise()}(e).done(function(){sR(t)||JW(t)})}}function QW(t,n){if(n&&n.position){var e=U(s0e),i=0,r=0,o=rs.calculate(t,n.position),a=t.offset(),s=t.position();s.top>a.top&&(r=e.scrollTop()),s.left>a.left&&(i=e.scrollLeft()),se(n,{left:o.h.location-a.left+s.left-i,top:o.v.location-a.top+s.top-r}),delete n.position}}function eG(t,n){we(n,function(e,i){try{t.css(e,Yt(i)?i():i)}catch{}})}var FT={off:!1,animationTypes:c0e,animate:function(t,n){var e=U(t);if(!e.length)return(new et).resolve().promise();var i=h0e(e,n);return function iCt(t,n){var e=XW(t);(function rCt(t,n){t.data($W,n)})(t,e),e.push(n),sR(t)||JW(t,e)}(e,i),i.deferred.promise()},createAnimation:h0e,isAnimating:sR,stop:function(t,n){var e=U(t),i=XW(e);we(i,function(o,a){a.config.delay=0,a.config.duration=0,a.isSynchronous=!0}),sR(e)||JW(e,i);var r=e.data(AT);r&&r.stop(n),e.removeData(AT),p0e(e)},_simulatedTransitionEndDelay:100};const Hi=FT;function g0e(t,n,e){function i(l){return"string"==typeof l?l.split("."):"number"==typeof l?[l]:l}t=i(t),n=i(n);var r=Math.max(t.length,n.length);isFinite(e)&&(r=Math.min(r,e));for(var o=0;o<r;o++){var a=parseInt(t[o]||0,10),s=parseInt(n[o]||0,10);if(a<s)return-1;if(a>s)return 1}return 0}var Cp,PT="dxactive",tG="dxinactive",lR=ji.inherit({ctor:function(t,n){this._timeout=t,this._fire=n},start:function(){var t=this;this._schedule(function(){t.force()})},_schedule:function(t){this.stop(),this._timer=setTimeout(t,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),nG=yT.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new lR(0,Be),this._inactive=new lR(0,Be)},configure:function(t,n){switch(n){case PT:t.activeTimeout=t.timeout;break;case tG:t.inactiveTimeout=t.timeout}this.callBase(t)},start:function(t){if(Cp){var n=Cg(this.getElement().get(0),Cp.getElement().get(0)),e=!Cp._active.fired();if(n&&e)return void this._cancel();Cp._inactive.force()}Cp=this,this._initEvents(t),this._active.start()},_initEvents:function(t){var n=this,e=this._getEmitterTarget(t),i=pp(t),o=pn.isSimulator()||!i,a=gr(this.activeTimeout,30),s=gr(this.inactiveTimeout,400);this._active=new lR(o?a:0,function(){n._fireEvent(PT,t,{target:e})}),this._inactive=new lR(o?s:0,function(){n._fireEvent(tG,t,{target:e}),Cp=null})},cancel:function(t){this.end(t)},end:function(t){var n=t.type!==qn.up;n?this._active.stop():this._active.force(),this._inactive.start(),n&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),Cp===this&&(Cp=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),Cp=null,this._cancel(),this._inactive.force.bind(this._inactive)}});nG.lock=function(t){var n=Cp?Cp.lockInactive():Be;t.done(n)},oC({emitter:nG,events:[PT,tG]});var iG=nG.lock;function f0e(t,n,e){t="role"===t||"id"===t?t:"aria-".concat(t),n=Z(n)?n.toString():null,e.attr(t,n)}var rG=Ic.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:()=>({}),_getDefaultOptions(){return se(this.callBase(),{hoveredElement:null,isActive:!1,disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:void 0,onFocusIn:null,onFocusOut:null,onKeyboardHandled:null,ignoreParentReadOnly:!1,useResizeObserver:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var t=pn.real();return"ios"===t.platform&&g0e(t.version,"13.3")<=0},options:{useResizeObserver:!1}}])},_init(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(t,n){var e=rG.getOptionsFromContainer(n);t&&t.option(e),this._options.cache(n.name,e)},_bindInnerWidgetOptions(t,n){var e=()=>this._options.silent(n,se({},t.option()));e(),t.on("optionChanged",e)},_getAriaTarget(){return this._focusTarget()},_initContentReadyAction(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup(){var{disabled:t,visible:n}=this.option();this.$element().addClass("dx-widget"),this._toggleDisabledState(t),this._toggleVisibility(n),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint(){var{hint:t}=this.option();this.$element().attr("title",t||null)},_renderContent(){Zo(()=>this._disposed?void 0:this._renderContentImpl()).done(()=>this._disposed?void 0:this._fireContentReadyAction())},_renderContentImpl:Be,_fireContentReadyAction:ew(function(){return this._contentReadyAction()}),_dispose(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility(t){this.$element().toggleClass("dx-state-invisible",!t),this.setAria("hidden",!t||void 0)},_renderFocusState(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey(){var t=this._focusTarget(),{accessKey:n}=this.option();t.attr("accesskey",n)},_isFocusable(){var{focusStateEnabled:t,disabled:n}=this.option();return t&&!n},_eventBindingTarget(){return this.$element()},_focusTarget(){return this._getActiveElement()},_isFocusTarget:function(t){return U(this._focusTarget()).toArray().includes(t)},_getActiveElement(){var t=this._eventBindingTarget();return this._activeStateUnit?t.find(this._activeStateUnit).not(".dx-state-disabled"):t},_renderFocusTarget(){var{tabIndex:t}=this.option();this._focusTarget().attr("tabIndex",t)},_keyboardEventBindingTarget(){return this._eventBindingTarget()},_refreshFocusEvent(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget(){return this._focusTarget()},_focusInHandler(t){t.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:()=>this._updateFocusState(t,!0),excludeValidators:["readOnly"]})({event:t})},_focusOutHandler(t){t.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:()=>this._updateFocusState(t,!1),excludeValidators:["readOnly","disabled"]})({event:t})},_updateFocusState(t,n){var{target:e}=t;this._isFocusTarget(e)&&this._toggleFocusClass(n,U(e))},_toggleFocusClass(t,n){(n&&n.length?n:this._focusTarget()).toggleClass("dx-state-focused",t)},_hasFocusClass(t){return U(t||this._focusTarget()).hasClass("dx-state-focused")},_isFocused(){return this._hasFocusClass()},_getKeyboardListeners:()=>[],_attachKeyboardEvents(){this._detachKeyboardEvents();var{focusStateEnabled:t,onKeyboardHandled:n}=this.option(),e=this._getKeyboardListeners().length;(t||e||n)&&(this._keyboardListenerId=Cm_on(this._keyboardEventBindingTarget(),this._focusTarget(),o=>this._keyboardHandler(o)))},_keyboardHandler(t,n){if(!n){var{originalEvent:e,keyName:i,which:r}=t,o=this._supportedKeys(e),a=o[i]||o[r];if(void 0!==a&&!a.bind(this)(e,t))return!1}var u=this._getKeyboardListeners(),{onKeyboardHandled:f}=this.option();return u.forEach(S=>S&&S._keyboardHandler(t)),f&&f(t),!0},_refreshFocusState(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState(){this._focusTarget().removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents(){Cm_off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents(){var{hoverStateEnabled:t}=this.option(),n=this._activeStateUnit,e=this._eventBindingTarget();((t,n)=>{var{selector:e,namespace:i}=n;Se.off(t,gs("dxhoverstart",i),e),Se.off(t,gs("dxhoverend",i),e)})(e,{selector:n,namespace:"UIFeedback"}),t&&((t,n,e,i)=>{var{selector:r,namespace:o}=i;Se.on(t,gs("dxhoverend",o),r,a=>e(a)),Se.on(t,gs("dxhoverstart",o),r,a=>KU(n,{element:a.target,event:a}))})(e,new eC(i=>{var{event:r,element:o}=i;this._hoverStartHandler(r),this.option("hoveredElement",U(o))},{excludeValidators:["readOnly"]}),i=>{this.option("hoveredElement",null),this._hoverEndHandler(i)},{selector:n,namespace:"UIFeedback"})},_attachFeedbackEvents(){var{activeStateEnabled:t}=this.option(),n=this._activeStateUnit,e=this._eventBindingTarget();((t,n)=>{var{namespace:e,selector:i}=n;Se.off(t,gs("dxactive",e),i),Se.off(t,gs("dxinactive",e),i)})(e,{namespace:"UIFeedback",selector:n}),t&&((t,n,e,i)=>{var{selector:r,showTimeout:o,hideTimeout:a,namespace:s}=i;Se.on(t,gs("dxactive",s),r,{timeout:o},l=>KU(n,{event:l,element:l.currentTarget})),Se.on(t,gs("dxinactive",s),r,{timeout:a},l=>KU(e,{event:l,element:l.currentTarget}))})(e,new eC(i=>{var{event:r,element:o}=i;return this._toggleActiveState(U(o),!0,r)}),new eC(i=>{var{event:r,element:o}=i;return this._toggleActiveState(U(o),!1,r)},{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:n,namespace:"UIFeedback"})},_detachFocusEvents(){((t,n)=>{var{namespace:e}=n;Se.off(t,gs("focusin",e)),Se.off(t,gs("focusout",e))})(this._focusEventTarget(),{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents(){((t,n,e,i)=>{var{namespace:r}=i;Se.on(t,gs("focusin",r),n),Se.on(t,gs("focusout",r),e)})(this._focusEventTarget(),n=>this._focusInHandler(n),n=>this._focusOutHandler(n),{namespace:"".concat(this.NAME,"Focus"),isFocusable:(n,e)=>U(e).is(kU)})},_hoverStartHandler:Be,_hoverEndHandler:Be,_toggleActiveState(t,n){this.option("isActive",n),t.toggleClass("dx-state-active",n)},_updatedHover(){var t=this._options.silent("hoveredElement");this._hover(t,t)},_findHoverTarget(t){return t&&t.closest(this._activeStateUnit||this._eventBindingTarget())},_hover(t,n){var{hoverStateEnabled:e,disabled:i,isActive:r}=this.option();if((n=this._findHoverTarget(n))&&n.toggleClass("dx-state-hover",!1),t&&e&&!i&&!r){var o=this._findHoverTarget(t);o&&o.toggleClass("dx-state-hover",!0)}},_toggleDisabledState(t){this.$element().toggleClass("dx-state-disabled",Boolean(t)),this.setAria("disabled",t||void 0)},_toggleIndependentState(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption(t,n){if(this[t]){if(wi(n[0]))return void we(n[0],(o,a)=>this._setWidgetOption(t,[o,a]));var e=n[0],i=n[1];1===n.length&&(i=this.option(e));var r=this["".concat(t,"OptionMap")];this[t].option(r?r(e):e,i)}},_optionChanged(t){var{name:n,value:e,previousValue:i}=t;switch(n){case"disabled":this._toggleDisabledState(e),this._updatedHover(),this._refreshFocusState();break;case"hint":this._renderHint();break;case"ignoreParentReadOnly":this._toggleIndependentState();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents(),this._updatedHover();break;case"tabIndex":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":case"useResizeObserver":break;case"accessKey":this._renderAccessKey();break;case"hoveredElement":this._hover(e,i);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(e),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(e?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(t)}},_isVisible(){var{visible:t}=this.option();return this.callBase()&&t},beginUpdate(){this._ready(!1),this.callBase()},endUpdate(){this.callBase(),this._initialized&&this._ready(!0)},_ready(t){if(0===arguments.length)return this._isReady;this._isReady=t},setAria(){if(wi(arguments.length<=0?void 0:arguments[0])){var t=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();we(arguments.length<=0?void 0:arguments[0],(n,e)=>f0e(n,e,t))}else f0e(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady(){return this._ready()},repaint(){this._refresh()},focus(){R2_trigger(this._focusTarget())},registerKeyHandler(t,n){var e=this._supportedKeys();this._supportedKeys=()=>se(e,{[t]:n})}});rG.getOptionsFromContainer=t=>{var{name:n,fullName:e,value:i}=t,r={};return n===e?r=i:r[e.split(".").pop()]=i,r};const tr=rG;var uCt={load:()=>et().reject(),loadSingle:()=>et().reject(),loadFromStore:()=>et().reject(),loadNextPage:()=>et().reject(),loadOptions:Be,userData:Be,cancel:Be,cancelAll:Be,filter:Be,addSearchFilter:Be,group:Be,paginate:Be,pageSize:Be,pageIndex:Be,resetDataSourcePageIndex:Be,totalCount:Be,isLastPage:Be,isLoading:Be,isLoaded:Be,searchValue:Be,searchOperation:Be,searchExpr:Be,select:Be,key:Be,keyOf:Be,store:Be,items:Be,applyMapFunction:Be,getDataSource:Be,reload:Be,on:Be,off:Be};var m0e="_dataSourceOptions",_0e="_dataSourceChangedHandler",v0e="_dataSourceLoadErrorHandler",y0e="_dataSourceLoadingChangedHandler",C0e="_dataSourceFromUrlLoadMode",b0e="_getSpecificDataSourceOption",x0e="_normalizeDataSource",hCt={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var n,e,t=b0e in this?this[b0e]():this.option("dataSource");this._disposeDataSource(),t&&(t instanceof Fl?(this._isSharedDataSource=!0,this._dataSource=t):(n=m0e in this?this[m0e]():{},e=this._dataSourceType?this._dataSourceType():Fl,t=t_(t,{fromUrlLoadMode:C0e in this&&this[C0e]()}),this._dataSource=new e(se(!0,{},n,t))),x0e in this&&(this._dataSource=this[x0e](this._dataSource)),this._addDataSourceHandlers(),this._initDataController())},_initDataController:function(){var t,n=null===(t=this.option)||void 0===t?void 0:t.call(this,"_dataController");this._dataController=n||new class dCt{constructor(n){if(!n)return uCt;this._dataSource=n}load(){return this._dataSource.load()}loadSingle(n,e){return arguments.length<2&&(e=n,n=this.key()),this._dataSource.loadSingle(n,e)}loadFromStore(n){return this.store().load(n)}loadNextPage(){return this.pageIndex(1+this.pageIndex()),this.load()}loadOptions(){return this._dataSource.loadOptions()}userData(){return this._dataSource._userData}cancel(n){this._dataSource.cancel(n)}cancelAll(){this._dataSource.cancelAll()}filter(n){return this._dataSource.filter(n)}addSearchFilter(n){this._dataSource._addSearchFilter(n)}group(n){return this._dataSource.group(n)}paginate(){return this._dataSource.paginate()}pageSize(){return this._dataSource._pageSize}pageIndex(n){return this._dataSource.pageIndex(n)}resetDataSourcePageIndex(){this.pageIndex()&&(this.pageIndex(0),this.load())}totalCount(){return this._dataSource.totalCount()}isLastPage(){return this._dataSource.isLastPage()||!this._dataSource._pageSize}isLoading(){return this._dataSource.isLoading()}isLoaded(){return this._dataSource.isLoaded()}searchValue(n){return arguments.length?this._dataSource.searchValue(n):this._dataSource.searchValue()}searchOperation(n){return this._dataSource.searchOperation(n)}searchExpr(n){return arguments.length?this._dataSource.searchExpr(n):this._dataSource.searchExpr()}select(){return this._dataSource.select(...arguments)}key(){return this._dataSource.key()}keyOf(n){return this.store().keyOf(n)}store(){return this._dataSource.store()}items(){return this._dataSource.items()}applyMapFunction(n){return this._dataSource._applyMapFunction(n)}getDataSource(){return this._dataSource||null}reload(){return this._dataSource.reload()}on(n,e){this._dataSource.on(n,e)}off(n,e){this._dataSource.off(n,e)}}(this._dataSource)},_addDataSourceHandlers:function(){_0e in this&&this._addDataSourceChangeHandler(),v0e in this&&this._addDataSourceLoadErrorHandler(),y0e in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(t){this._ready&&this._ready(!t)}.bind(this))},_addDataSourceChangeHandler:function(){var t=this._dataSource;this._proxiedDataSourceChangedHandler=function(n){this[_0e](t.items(),n)}.bind(this),t.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[v0e].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[y0e].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){var t=this._dataSource;t&&(t.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():t.load())},_loadSingle:function(t,n){return t="this"===t?this._dataSource.key()||"this":t,this._dataSource.loadSingle(t,n)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};const bp=hCt;var w0e=ji.inherit({ctor:function(t,n,e){this._$element=t,this._options=n,this._rawData=e,nge(t,this,this._dispose),this._render()},_render:function(){var t=U("<div>").addClass("dx-item-content-placeholder");this._$element.append(t),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(t,n){var e=this._rawData,i=this._options.fieldGetter(t),r=function(t,n,e){var r,i=function(o){r!==o&&(e(o,r),r=o)};return{dispose:t(n,i),force:function(){i(n())}}}(this._options.watchMethod(),function(){return i(e)},function(o,a){this._dirty=!0,n(o,a)}.bind(this));this._watchers.push(r)},setDataField:function(){if(this._dirty=!1,we(this._watchers,function(t,n){n.force()}),this._dirty)return!0},_renderDisabled:function(t,n){this._$element.toggleClass("dx-state-disabled",!!t),this._updateOwnerFocus(t)},_updateOwnerFocus:function(t){var n=this._options.owner;n&&t&&n._resetItemFocus(this._$element)},_renderVisible:function(t,n){this._$element.toggleClass("dx-state-invisible",void 0!==t&&!t)},_dispose:function(){we(this._watchers,function(t,n){n.dispose()})}});w0e.getInstance=function(t){return ige(t,this)};const Lw=w0e;var S0e=Math.abs,oG="dxhold",vCt=yT.inherit({start:function(t){this._startEventData=Po(t),this._startTimer(t)},_startTimer:function(t){var n="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(t),this._fireEvent(oG,t,{target:t.target}),this._forgetAccept()}.bind(this),n)},move:function(t){this._touchWasMoved(t)&&this._cancel(t)},_touchWasMoved:function(t){var n=Qy(this._startEventData,Po(t));return S0e(n.x)>5||S0e(n.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});oC({emitter:vCt,bubble:!0,events:[oG]});const Tm_name=oG;var aG="dxContexMenu",yCt=kt("contextmenu",aG),CCt=kt(Tm_name,aG),sG="dxcontextmenu",bCt=ji.inherit({setup:function(t){var n=U(t);Se.on(n,yCt,this._contextMenuHandler.bind(this)),(h_||pn.isSimulator())&&Se.on(n,CCt,this._holdHandler.bind(this))},_holdHandler:function(t){pp(t)&&!pn.isSimulator()||this._fireContextMenu(t)},_contextMenuHandler:function(t){this._fireContextMenu(t)},_fireContextMenu:function(t){return gp({type:sG,originalEvent:t})},teardown:function(t){Se.off(t,"."+aG)}});cp(sG,new bCt);var uR=sG;class Ac extends nC{constructor(n,e,i,r){super(),this._render=n,this._fields=e,this._fieldsMap=r||{},this._watchMethod=i}_renderCore(n){var e=U(n.container),i=function(t,n,e,i,r){var o,s,a=(s=t,n(()=>s,function(s){var l,u,f,S,T,R,L,z;o&&o(),eO(s)?r(s):(l=s,u=n,S=i,T=r,R={},L=(f=e).slice(),z=f.map(function(j){var Y=S[j];return u(Y?()=>Y(l):()=>l[j],function(ie){if(R[j]=ie,L.length){var te=L.indexOf(j);te>=0&&L.splice(te,1)}L.length||T(R)})}),o=function(){z.forEach(j=>j())})}));return function(){o&&o(),a&&a()}}(n.model,this._watchMethod,this._fields,this._fieldsMap,r=>{e.empty(),this._render(e,r,n.model)});return Se.on(e,vg,i),e.contents()}}var dR="dx-item",O0e="dx-item-content-placeholder",T0e="dx-template-wrapper",MCt=/^([^.]+\[\d+\]\.)+([\w.]+)$/,uG="down",F0e=tr.inherit({_activeStateUnit:"."+dR,_supportedKeys:function(){var t=function(e){var i=U(this.option("focusedElement"));i.length&&this._itemClickHandler(se({},e,{target:i.get(0),currentTarget:i.get(0)}))},n=function(e,i){Xo(i)||(i.preventDefault(),i.stopPropagation(),this._moveFocus(e,i))};return se(this.callBase(),{space:function(e){e.preventDefault(),t.call(this,e)},enter:t,leftArrow:n.bind(this,"left"),rightArrow:n.bind(this,"right"),upArrow:n.bind(this,"up"),downArrow:n.bind(this,uG),pageUp:n.bind(this,"up"),pageDown:n.bind(this,uG),home:n.bind(this,"first"),end:n.bind(this,"last")})},_getDefaultOptions:function(){return se(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:ye.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,dataSource:null,_dataController:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(t){return t?t.disabled:void 0},visibleExpr:function(t){return t?t.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this._initDataController(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var t=this.option("displayExpr");this._displayGetter=t?Ai(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return"item"},_initDefaultItemTemplate:function(){var t=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new Ac(function(n,e){wi(e)?this._prepareDefaultItemTemplate(e,n):(t&&Yt(t.text)&&(e=t.text(e)),n.text(String(gr(e,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),t)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(t,n){Z(t.text)&&n.text(t.text),Z(t.html)&&n.html(t.html)},_initItemsFromMarkup:function(){var t=ffe(this.$element(),"dxItem");if(t.length&&!this.option("items").length){var n=t.map(e=>{var{element:i,options:r}=e;return/\S/.test(i.innerHTML)&&!r.template?r.template=this._prepareItemTemplate(i):U(i).remove(),r});this.option("items",n)}},_prepareItemTemplate:function(t){var n="tmpl-"+new Ni,e=U(t).detach().clone().removeAttr("data-options").addClass(T0e);return this._saveTemplate(n,e),n},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(t){if(this.callBase.apply(this,arguments),this._isFocusTarget(t.target)){var n=U(this.option("focusedElement"));if(n.length)this._setFocusedItem(n);else{var e=this._getActiveItem();e.length&&this.option("focusedElement",kn(e))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var t=U(this.option("focusedElement"));this._updateFocusedItemState(t,!1)},_getActiveItem:function(t){var n=U(this.option("focusedElement"));if(n.length)return n;var e=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,i=this._getActiveElement();return e<0&&(e=t?i.length-1:0),i.eq(e)},_moveFocus:function(t){var e,n=this._getAvailableItems();switch(t){case"pageup":case"up":e=this._prevItem(n);break;case"pagedown":case uG:e=this._nextItem(n);break;case"right":e=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case"left":e=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case"first":e=n.first();break;case"last":e=n.last();break;default:return!1}0!==e.length&&this.option("focusedElement",kn(e))},_getVisibleItems:function(t){return(t=t||this._itemElements()).filter(":visible")},_getAvailableItems:function(t){return this._getVisibleItems(t).not(".dx-state-disabled")},_prevItem:function(t){var n=this._getActiveItem(),e=t.index(n),i=t.last(),r=U(t[e-1]),o=this.option("loopItemFocus");return 0===r.length&&o&&(r=i),r},_nextItem:function(t){var n=this._getActiveItem(!0),e=t.index(n),i=t.first(),r=U(t[e+1]),o=this.option("loopItemFocus");return 0===r.length&&o&&(r=i),r},_selectFocusedItem:function(t){this.selectItem(t)},_updateFocusedItemState:function(t,n,e){var i=U(t);i.length&&(this._refreshActiveDescendant(),this._refreshItemId(i,e),this._toggleFocusClass(n,i)),this._updateParentActiveDescendant()},_refreshActiveDescendant:function(t){this.setAria("activedescendant",Z(this.option("focusedElement"))?this.getFocusedItemId():null,t)},_refreshItemId:function(t,n){!n&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),t):this.setAria("id",null,t)},_setFocusedItem:function(t){!t||!t.length||(this._updateFocusedItemState(t,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(t))},_findItemElementByItem:function(t){var n=U(),e=this;return this.itemElements().each(function(){var i=U(this);if(i.data(e._itemDataKey())===t)return n=i,!1}),n},_getIndexByItem:function(t){return this.option("items").indexOf(t)},_itemOptionChanged:function(t,n,e,i){var r=this._findItemElementByItem(t);r.length&&(this.constructor.ItemClass.getInstance(r).setDataField(n,e)||this._refreshItem(r,t),"disabled"===n&&e&&this._resetItemFocus(r))},_resetItemFocus(t){t.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(t){var n=this._getItemData(t),e=t.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+e,n,null,t)},_updateParentActiveDescendant:Be,_optionChanged:function(t){if("items"===t.name){var n=t.fullName.match(MCt);if(n&&n.length){var e=n[n.length-1],i=t.fullName.replace("."+e,""),r=this.option(i);return void this._itemOptionChanged(r,e,t.value,t.previousValue)}}switch(t.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"useItemTextAsTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":case"encodeNoDataText":this._renderEmptyMessage();break;case"itemTemplate":case"visibleExpr":case"disabledExpr":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"focusedElement":this._updateFocusedItemState(t.previousValue,!1,!0),this._setFocusedItem(U(t.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;default:this.callBase(t)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){return this._expectNextPageLoading(),this._dataController.loadNextPage()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(t){var n=this.option("items");this._initialized&&n&&this._shouldAppendItems()?(this._renderedItemsCount=n.length,(!this._isLastPage()||-1!==this._startIndexForAppendedItems)&&(this.option().items=n.concat(t.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",t.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer(),this._inkRipple&&delete this._inkRipple,this._resetActiveState()},_cleanItemContainer:function(){U(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return dR},_itemContentClass:function(){return this._itemClass()+"-content"},_selectedItemClass:function(){return"dx-item-selected"},_itemResponseWaitClass:function(){return"dx-item-response-wait"},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return"dxItemData"},_itemIndexKey:function(){return"dxItemIndex"},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass("dx-collection"),this._prepareContent()},_prepareContent:ew(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var t=this._itemSelector(),n=kt(Vi,this.NAME),e=kt(qn.down,this.NAME),i=this,r=new eC(function(o){i._itemPointerDownHandler(o.event)});Se.off(this._itemContainer(),n,t),Se.off(this._itemContainer(),e,t),Se.on(this._itemContainer(),n,t,function(o){this._itemClickHandler(o)}.bind(this)),Se.on(this._itemContainer(),e,t,function(o){r.execute({element:U(o.target),event:o})})},_itemClickHandler:function(t,n,e){this._itemDXEventHandler(t,"onItemClick",n,e)},_itemPointerDownHandler:function(t){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!t.isDefaultPrevented()){var n=U(t.target),e=n.closest(this._itemElements()),i=this._closestFocusable(n);e.length&&this._isFocusTarget(i?.get(0))&&this.option("focusedElement",kn(e))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(t){if(t.is(kU))return t;for(t=t.parent();t.length&&!It.isDocument(t.get(0))&&!It.isDocumentFragment(t.get(0));){if(t.is(kU))return t;t=t.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var t=this._itemContainer(),n=this._itemSelector(),e=kt(Tm_name,this.NAME);Se.off(t,e,n),Se.on(t,e,n,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(t){this._shouldFireHoldEvent()?this._itemDXEventHandler(t,"onItemHold"):t.cancel=!0},_attachContextMenuEvent:function(){var t=this._itemContainer(),n=this._itemSelector(),e=kt(uR,this.NAME);Se.off(t,e,n),Se.on(t,e,n,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(t){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(t,"onItemContextMenu"):t.cancel=!0},_renderContentImpl:function(){var t=this.option("items")||[];this._renderItems(this._renderedItemsCount?t.slice(this._renderedItemsCount):t)},_renderItems:function(t){t.length&&we(t,function(n,e){this._renderItem(this._renderedItemsCount+n,e)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(t,n,e,i){var r,o=null!==(r=t?.item)&&void 0!==r?r:t;e=e||this._itemContainer();var a=this._renderItemFrame(o,n,e,i);this._setElementData(a,n,o),a.attr(this.option("_itemAttributes")),this._attachItemClickEvent(n,a);var s=this._getItemContent(a),l=this._renderItemContent({index:o,itemData:n,container:kn(s),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),u=this;return Qt(l).done(function(f){u._postprocessRenderItem({itemElement:a,itemContent:f,itemData:n,itemIndex:o}),u._executeItemRenderAction(t,n,kn(a))}),a},_getItemContent:function(t){var n=t.find("."+O0e);return n.removeClass(O0e),n},_attachItemClickEvent:function(t,n){!t||!t.onClick||Se.on(n,Vi,function(e){this._itemEventHandlerByHandler(n,t.onClick,{event:e})}.bind(this))},_renderItemContent:function(t){var n=this._getItemTemplateName(t),e=this._getTemplate(n);this._addItemContentClasses(t);var i=U(this._createItemByTemplate(e,t));return i.hasClass(T0e)?this._renderItemContentByNode(t,i):t.container},_renderItemContentByNode:function(t,n){return U(t.container).replaceWith(n),t.container=kn(n),this._addItemContentClasses(t),n},_addItemContentClasses:function(t){var n=[dR+"-content",t.contentClass];U(t.container).addClass(n.join(" "))},_appendItemToContainer:function(t,n,e){n.appendTo(t)},_renderItemFrame:function(t,n,e,i){var r=U("<div>");if(new this.constructor.ItemClass(r,this._itemOptions(),n||{}),i&&i.length?i.replaceWith(r):this._appendItemToContainer.call(this,e,r,t),this.option("useItemTextAsTitle")){var o=this._displayGetter?this._displayGetter(n):n;r.attr("title",o)}return r},_itemOptions:function(){var t=this;return{watchMethod:function(){return t.option("integrationOptions.watchMethod")},owner:t,fieldGetter:function(n){var e=t.option(n+"Expr");return Ai(e)}}},_postprocessRenderItem:Be,_executeItemRenderAction:function(t,n,e){this._getItemRenderAction()({itemElement:e,itemIndex:t,itemData:n})},_setElementData:function(t,n,e){t.addClass([dR,this._itemClass()].join(" ")).data(this._itemDataKey(),n).data(this._itemIndexKey(),e)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(t){var n=t.itemData,e=t.templateProperty||this.option("itemTemplateProperty");return n&&n[e]||t.defaultTemplateName},_createItemByTemplate:function(t,n){return t.render({model:n.itemData,container:n.container,index:n.index,onRendered:this._onItemTemplateRendered(t,n)})},_onItemTemplateRendered:function(){return Be},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(t){t=t||this.option("items");var n=this.option("noDataText"),e=!n||t&&t.length||this._dataController.isLoading();e&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),e||(this._$noData=this._$noData||U("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()),this.option("encodeNoDataText")?this._$noData.text(n):this._$noData.html(n),this.setAria("label",n)),this.$element().toggleClass("dx-empty-collection",!e)},_itemDXEventHandler:function(t,n,e,i){this._itemEventHandler(t.target,n,se(e,{event:t}),i)},_itemEventHandler:function(t,n,e,i){var r=this._createActionByOption(n,se({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(t,r,e)},_itemEventHandlerByHandler:function(t,n,e,i){var r=this._createAction(n,se({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(t,r,e)},_itemEventHandlerImpl:function(t,n,e){var i=this._closestItemElement(U(t)),r=se({},e);return n(se(e,this._extendActionArgs(i),r))},_extendActionArgs:function(t){return{itemElement:kn(t),itemIndex:this._itemElements().index(t),itemData:this._getItemData(t)}},_closestItemElement:function(t){return U(t).closest(this._itemSelector())},_getItemData:function(t){return U(t).data(this._itemDataKey())},_getSummaryItemsWidth:function(t,n){var e=0;return t&&we(t,function(i,r){e+=ii(r,n||!1)}),e},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new Ni),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(bp);F0e.ItemClass=Lw;const RCt=F0e;var Xd=ji.abstract,LCt=ji.inherit({ctor:function(t){this._collectionWidget=t},getIndexByItemData:Xd,getItemDataByIndex:Xd,getKeysByItems:Xd,getItemsByKeys:Xd,itemsGetter:Xd,getKeyByIndex:function(t){var n=this._denormalizeItemIndex(t);return this.getKeysByItems([this.getItemDataByIndex(n)])[0]},_equalKeys:function(t,n){return this._collectionWidget._isKeySpecified()?Tr(t,n):t===n},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:Xd,getNormalizedIndex:function(t){return this._isNormalizedItemIndex(t)?t:this._isItemIndex(t)?this._normalizeItemIndex(t):this._isNode(t)?this._getNormalizedItemIndex(t):this._normalizeItemIndex(this.getIndexByItemData(t))},getIndex:function(t){return this._isNormalizedItemIndex(t)?this._denormalizeItemIndex(t):this._isItemIndex(t)?t:this._isNode(t)?this._denormalizeItemIndex(this._getNormalizedItemIndex(t)):this.getIndexByItemData(t)},getItemElement:function(t){if(this._isNormalizedItemIndex(t))return this._getItemByNormalizedIndex(t);if(this._isItemIndex(t))return this._getItemByNormalizedIndex(this._normalizeItemIndex(t));if(this._isNode(t))return U(t);var n=this._normalizeItemIndex(this.getIndexByItemData(t));return this._getItemByNormalizedIndex(n)},_isNode:t=>It.isNode(t&&xc(t)?t.get(0):t),deleteItemAtIndex:Xd,itemPlacementFunc:function(t,n){return this._itemsFromSameParent(t,n)&&t<n?"after":"before"},moveItemAtIndexToIndex:Xd,_isNormalizedItemIndex:function(t){return"number"==typeof t&&Math.round(t)===t},_isItemIndex:Xd,_getNormalizedItemIndex:Xd,_normalizeItemIndex:Xd,_denormalizeItemIndex:Xd,_getItemByNormalizedIndex:Xd,_itemsFromSameParent:Xd}),BCt=LCt.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(t){var n=this._collectionWidget.keyOf.bind(this._collectionWidget);return n?this.getIndexByKey(n(t)):this._getPlainItems().indexOf(t)},getItemDataByIndex:function(t){return this._getPlainItems()[t]},deleteItemAtIndex:function(t){this._getPlainItems().splice(t,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(t){var n=this._collectionWidget.keyOf.bind(this._collectionWidget),e=t;if(n){e=[];for(var i=0;i<t.length;i++)e.push(n(t[i]))}return e},getIndexByKey:function(t){var n=this._cache,e=n&&n.keys||this.getKeysByItems(this._getPlainItems());if(n&&!n.keys&&(n.keys=e),"object"!=typeof t)return e.indexOf(t);for(var i=0,r=e.length;i<r;i++)if(this._equalKeys(t,e[i]))return i;return-1},getItemsByKeys:function(t,n){return(n||t).slice()},moveItemAtIndexToIndex:function(t,n){var e=this._getPlainItems(),i=e[t];e.splice(t,1),e.splice(n,0,i)},_isItemIndex:function(t){return"number"==typeof t&&Math.round(t)===t},_getNormalizedItemIndex:function(t){return this._collectionWidget._itemElements().index(t)},_normalizeItemIndex:function(t){return t},_denormalizeItemIndex:function(t){return t},_getItemByNormalizedIndex:function(t){return t>-1?this._collectionWidget._itemElements().eq(t):null},_itemsFromSameParent:function(){return!0}});const dG=BCt,P0e=ji.inherit({ctor:function(t){this.options=t,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:Be,_setOption:function(t,n){this.options[t]=n},onSelectionChanged:function(){var t=this.options.addedItemKeys,n=this.options.removedItemKeys,e=this.options.addedItems,i=this.options.removedItems,r=this.options.selectedItems,o=this.options.selectedItemKeys,a=this.options.onSelectionChanged||Be;this._clearItemKeys(),a({selectedItems:r,selectedItemKeys:o,addedItemKeys:t,removedItemKeys:n,addedItems:e,removedItems:i})},equalKeys:function(t,n){return this.options.equalByReference&&Jn(t)&&Jn(n)?t===n:Tr(t,n)},getSelectableItems:function(t){return t.filter(function(n){return!(null!=n&&n.disabled)})},_clearSelection:function(t,n,e,i){return t=t||[],t=Array.isArray(t)?t:[t],this.validate(),this.selectedItemKeys(t,n,e,i)},_removeTemplateProperty:function(t){return Array.isArray(t)?t.map(n=>this._removeTemplateProperty(n)):(Jn(t)&&delete t.template,t)},_loadFilteredData:function(t,n,e,i){var r=encodeURI(JSON.stringify(this._removeTemplateProperty(t))).length,o=this.options.maxFilterLengthInRequest&&r>this.options.maxFilterLengthInRequest,a=new et,s={filter:o?void 0:t,select:o?this.options.dataFields():e||this.options.dataFields()};return t&&0===t.length?a.resolve([]):this.options.load(s).done(function(l){var u=wi(l)?l.data:l;n&&!i?u=u.filter(n):o&&(u=Ha(u).filter(t).toArray()),a.resolve(u)}).fail(a.reject.bind(a)),a},updateSelectedItemKeyHash:function(t){for(var n=0;n<t.length;n++){var e=lg(t[n]);Jn(e)||(this.options.keyHashIndices[e]=this.options.keyHashIndices[e]||[],this.options.keyHashIndices[e].push(n))}},_isAnyItemSelected:function(t){for(var n=0;n<t.length;n++)if(this.options.isItemSelected(t[n]))return;return!1},_getFullSelectAllState:function(){var t=this.options.plainItems(),n=this.options.filter(),e=this.options.ignoreDisabledItems?this.options.selectedItems:this.options.selectedItems.filter(o=>!(null!=o&&o.disabled));n&&(e=Ha(e).filter(n).toArray());var i=e.length,r=t.length-this.getSelectableItems(t).length;return i?i>=this.options.totalCount()-r||void 0:this._isAnyItemSelected(t)},_getVisibleSelectAllState:function(){for(var t=this.getSelectableItems(this.options.plainItems()),n=!1,e=!1,i=0;i<t.length;i++){var r=t[i],o=this.options.getItemData(r),a=this.options.keyOf(o);this.options.isSelectableItem(r)&&(this.isItemKeySelected(a)?n=!0:e=!0)}return!!n&&(!e||void 0)}}),NCt=P0e.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var t=new et,n=this,e=this.options.key(),i=Pn(e)?[e]:e;return this._loadFilteredData(this.options.selectionFilter,null,i).done(function(r){var o=r.map(function(a){return n.options.keyOf(a)});t.resolve(o)}).fail(t.reject),t.promise()},selectedItemKeys:function(t,n,e,i){if(i){var r=this.options.filter();!r||JSON.stringify(r)===JSON.stringify(this.options.selectionFilter)&&e?this._setOption("selectionFilter",e?[]:null):this._addSelectionFilter(e,r,i)}else{n||this._setOption("selectionFilter",[]);for(var a=0;a<t.length;a++)e?this.removeSelectedItem(t[a]):this.addSelectedItem(t[a])}return this.onSelectionChanged(),(new et).resolve()},setSelectedItems:function(t){this._setOption("selectionFilter",null);for(var n=0;n<t.length;n++)this.addSelectedItem(t[n])},isItemDataSelected:function(t){return this.isItemKeySelected(t)},isItemKeySelected:function(t){var n=this.options.selectionFilter;return!n||!!Ha([t]).filter(n).toArray().length},_getKeyExpr:function(){var t=this.options.key();return Array.isArray(t)&&1===t.length?t[0]:t},_normalizeKey:function(t){var n=this.options.key();return Array.isArray(n)&&1===n.length?t[n[0]]:t},_getFilterByKey:function(t){var n=this._getKeyExpr(),e=[n,"=",this._normalizeKey(t)];if(Array.isArray(n)){e=[];for(var i=0;i<n.length;i++)e.push([n[i],"=",t[n[i]]]),i!==n.length-1&&e.push("and")}return e},addSelectedItem:function(t){var n=this._getFilterByKey(t);this._addSelectionFilter(!1,n)},removeSelectedItem:function(t){var n=this._getFilterByKey(t);this._addSelectionFilter(!0,n)},validate:function(){var t=this.options.key;if(t&&void 0===t())throw Di.Error("E1042","Deferred selection")},_findSubFilter:function(t,n){if(!t)return-1;for(var e=JSON.stringify(n),i=0;i<t.length;i++){var r=t[i];if(r&&JSON.stringify(r)===e)return i}return-1},_isLastSubFilter:function(t,n){return!(!t||!n||this._findSubFilter(t,n)!==t.length-1&&0!==this._findSubFilter([t],n))},_addFilterOperator:function(t,n){return t.length>1&&Pn(t[1])&&t[1]!==n&&(t=[t]),t.length&&t.push(n),t},_denormalizeFilter:function(t){return t&&Pn(t[0])&&(t=[t]),t},_isOnlyNegativeFiltersLeft:function(t){return t.every((n,e)=>e%2==0?Array.isArray(n)&&"!"===n[0]:"and"===n)},_addSelectionFilter:function(t,n,e){var i=t?["!",n]:n,r=t?"and":"or",o=!0,a=this.options.selectionFilter||[];if((a=this._denormalizeFilter(a))&&a.length){var s=this._removeSameFilter(a,n,t,e),l=this._removeSameFilter(a,n,!t);t&&(-1!==s||-1!==l)&&this._isOnlyNegativeFiltersLeft(a)&&(a=[]);var f=this._isKeyFilter(n)&&this._hasKeyFiltersOnlyStartingFromIndex(a,l);(o=n.length&&!f)&&(a=this._addFilterOperator(a,r))}o&&a.push(i),a=this._normalizeFilter(a),this._setOption("selectionFilter",t||a.length?a:null)},_normalizeFilter:function(t){return t&&1===t.length&&(t=t[0]),t},_removeFilterByIndex:function(t,n,e){var i=t[1];t.splice(n>0?n-1:n,2),e&&"and"===i&&t.splice(0,t.length)},_isSimpleKeyFilter:function(t,n){return 3===t.length&&t[0]===n&&"="===t[1]},_isKeyFilter:function(t){if(2===t.length&&"!"===t[0])return this._isKeyFilter(t[1]);var n=this._getKeyExpr();if(Array.isArray(n)){if(t.length!==2*n.length-1)return!1;for(var e=0;e<n.length;e++)if(e>0&&"and"!==t[2*e-1]||!this._isSimpleKeyFilter(t[2*e],n[e]))return!1;return!0}return this._isSimpleKeyFilter(t,n)},_hasKeyFiltersOnlyStartingFromIndex:function(t,n){if(n>=0){for(var e=n;e<t.length;e++)if("string"!=typeof t[e]&&!this._isKeyFilter(t[e]))return!1;return!0}return!1},_removeSameFilter:function(t,n,e,i){if(n=e?["!",n]:n,JSON.stringify(n)===JSON.stringify(t))return t.splice(0,t.length),0;var r=this._findSubFilter(t,n);if(r>=0)return this._removeFilterByIndex(t,r,i),r;for(var o=0;o<t.length;o++)if(Array.isArray(t[o])&&t[o].length>2){var a=this._removeSameFilter(t[o],n,!1,i);if(a>=0)return t[o].length?1===t[o].length&&(t[o]=t[o][0]):this._removeFilterByIndex(t,o,i),a}return-1},getSelectAllState:function(){var t=this.options.filter(),n=this.options.selectionFilter;if(!n)return!0;if(!n.length)return!1;if(t&&t.length){if(n=this._denormalizeFilter(n),this._isLastSubFilter(n,t))return!0;if(this._isLastSubFilter(n,["!",t]))return!1}}});var cR=function(t,n){var e=n(t);if(Jn(e))try{return JSON.stringify(e)}catch{return e}return e},VCt=function(t,n,e,i){return n[e[cR(t,i)]]},R0e=function(t,n,e,i){var r={},o={},a=0,s=0,l=[];t.forEach(function(ie,te){var re=cR(ie,e);r[re]=te}),n.forEach(function(ie,te){var re=cR(ie,e);o[re]=te});for(var u=Math.max(t.length,n.length),f=0;f<u+a;f++){var S=n[f],T=f-a+s,R=t[T];if(!S||R&&!VCt(R,n,o,e))R&&(l.push({type:"remove",key:e(R),index:f,oldItem:R}),s++,f--);else{var z=cR(S,e),j=r[z],Y=t[j];if(Y){if(j!==T)return;i(Y,S)||l.push({type:"update",data:S,key:e(S),index:f,oldItem:Y})}else a++,l.push({type:"insert",data:S,index:f})}}return l},L0e=function(t,n){var e;function r(a,s,l,u,f){var T,R,S=s(f);if(!l&&(T=lg(S),!Jn(T))){var L=function(z,j){if(!e){e={};for(var Y=function(a,s,l){return Array.isArray(l)?a.map(u=>s(u)):a}(t,z,j),ie=0;ie<Y.length;ie++)e[lg(Y[ie])]=!0}return e}(s,u);return L[T]?!n:!!n}for(R=0;R<t.length;R++)if(a(t[R],S))return!n;return!!n}function o(a,s){if(void 0!==s)return[a,n?"<>":"=",s]}this.getLocalFilter=function(a,s,l,u){return r.bind(this,s=void 0===s?Tr:s,a,l,u)},this.getExpr=function(a){var s;if(a)return t.forEach(function(l,u){var f;s=s||[],u>0&&s.push(n?"and":"or"),f=Pn(a)?o(a,l):function(S,T){for(var R=[],L=0,z=S.length;L<z;L++){var j=S[L],ie=o(j,T&&T[j]);if(!ie)break;L>0&&R.push(n?"or":"and"),R.push(ie)}return R}(a,l),s.push(f)}),s&&1===s.length&&(s=s[0]),s},this.getCombinedFilter=function(a,s){var l=this.getExpr(a),u=l;return n&&s&&(l?((u=[]).push(l),u.push(s)):u=s),u}};const zCt=P0e.inherit({ctor:function(t){this.callBase(t),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(t,n){var i,r,o,e=this.options.keyOf;if(e){var a=n&&t.length>1&&!this.options.equalByReference;for(a&&(i={}),o=0;o<t.length;o++){var s=t[o],l=e(s);n?(r=this.removeSelectedItem(l,i,s?.disabled),i&&r>=0&&(i[r]=!0)):this.addSelectedItem(l,s)}a&&this._batchRemoveSelectedItems(i)}},_batchRemoveSelectedItems:function(t){var n=this.options.selectedItemKeys.slice(0),e=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<n.length;i++)t[i]||(this.options.selectedItemKeys.push(n[i]),this.options.selectedItems.push(e[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(t,n,e,i){var r=new et,o=this.options.key();if(!t.length&&!e)return r.resolve([]),r;if(e&&n&&!i)return r.resolve(this.getSelectedItems()),r;var a=new L0e(t,e),s=a.getCombinedFilter(o,i),l=[];if(n){var u=this.options.selectedItems;l=s&&t.length!==u.length?Ha(u).filter(s).toArray():u.slice(0)}var f=l.length?l:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),S=a.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,o);return f=f.filter(S),l.length||!e&&f.length===t.length?r.resolve(f):r=this._loadFilteredData(s,S,null,e),r},_replaceSelectionUpdate:function(t){var n=[],e=this.options.keyOf;if(e){for(var i=0;i<t.length;i++){var o=e(t[i]);n.push(o)}this.setSelectedItems(n,t)}},_warnOnIncorrectKeys:function(t){for(var n=this.options.allowNullValue,e=0;e<t.length;e++){var i=t[e];(!n||null!==i)&&!this.isItemKeySelected(i)&&Di.log("W1002",i)}},_isMultiSelectEnabled:function(){var t=this.options.mode;return"all"===t||"multiple"===t},_requestInProgress:function(){var t;return"pending"===(null===(t=this._lastLoadDeferred)||void 0===t?void 0:t.state())},_concatRequestsItems:function(t,n,e,i){var r,o=n?t:[];return r=i||jU(t,this.options.selectedItemKeys),{addedItems:e.added.concat(r),removedItems:e.removed.concat(o),keys:t}},_collectLastRequestData:function(t,n,e,i){var r=n&&e,o={added:[],removed:[]},a=this._isMultiSelectEnabled(),s=a?this._lastRequestData:{};return a&&(this._shouldMergeWithLastRequest&&(r?(this._lastLoadDeferred.reject(),s={}):function(t,n){if(t.length!==n.length)return!1;for(var e=0;e<n.length;e++)if(t[e]!==n[e])return!1;return!0}(t,this.options.selectedItemKeys)||(o.added=s.addedItems,o.removed=s.removedItems,n||this._lastLoadDeferred.reject())),s=this._concatRequestsItems(t,n,o,this._shouldMergeWithLastRequest?void 0:i)),s},_updateKeysByLastRequestData:function(t,n,e){var r,o,i=t;return this._isMultiSelectEnabled()&&this._shouldMergeWithLastRequest&&!n&&!e&&(i=function(t){return[...new Set(t)]}(i=jU(t.concat(null===(r=this._lastRequestData)||void 0===r?void 0:r.addedItems),null===(o=this._lastRequestData)||void 0===o?void 0:o.removedItems))),i},_loadSelectedItems:function(t,n,e,i){var r=this,o=new et,a=r.options.filter();return this._shouldMergeWithLastRequest=this._requestInProgress(),this._lastRequestData=this._collectLastRequestData(t,n,e,i),Qt(r._lastLoadDeferred).always(function(){var s=r._updateKeysByLastRequestData(t,n,e);r._shouldMergeWithLastRequest=!1,r._loadSelectedItemsCore(s,n,e,a).done(o.resolve).fail(o.reject)}),r._lastLoadDeferred=o,o},selectedItemKeys:function(t,n,e,i,r){var o=this,a=o._loadSelectedItems(t,e,i,r);return a.done(function(s){n?o._preserveSelectionUpdate(s,e):o._replaceSelectionUpdate(s),o.onSelectionChanged()}),a},addSelectedItem:function(t,n){if(Z(n)&&!this.options.ignoreDisabledItems&&n.disabled)-1===this.options.disabledItemKeys.indexOf(t)&&this.options.disabledItemKeys.push(t);else{var e=this._getKeyHash(t);-1===this._indexOfSelectedItemKey(e)&&(!Jn(e)&&this.options.keyHashIndices&&(this.options.keyHashIndices[e]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(t),this.options.addedItemKeys.push(t),this.options.addedItems.push(n),this.options.selectedItems.push(n))}},_getSelectedIndexByKey:function(t,n){for(var e=this.options.selectedItemKeys,i=0;i<e.length;i++)if((!n||!n[i])&&this.equalKeys(e[i],t))return i;return-1},_getSelectedIndexByHash:function(t,n){var e=this.options.keyHashIndices[t];return e&&e.length>1&&n&&(e=e.filter(function(i){return!n[i]})),e&&e[0]>=0?e[0]:-1},_indexOfSelectedItemKey:function(t,n){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(t):Jn(t)?this._getSelectedIndexByKey(t,n):this._getSelectedIndexByHash(t,n)},_shiftSelectedKeyIndices:function(t){for(var n=t;n<this.options.selectedItemKeys.length;n++){var i=lg(this.options.selectedItemKeys[n]),r=this.options.keyHashIndices[i];if(r)for(var o=0;o<r.length;o++)r[o]>t&&r[o]--}},removeSelectedItem:function(t,n,e){if(this.options.ignoreDisabledItems||!e){var i=this._getKeyHash(t),r=!!n,o=this._indexOfSelectedItemKey(i,n);if(o<0||(this.options.removedItemKeys.push(t),this.options.removedItems.push(this.options.selectedItems[o]),r)||(this.options.selectedItemKeys.splice(o,1),this.options.selectedItems.splice(o,1),Jn(i)||!this.options.keyHashIndices))return o;var a=this.options.keyHashIndices[i];return a&&(a.shift(),a.length||delete this.options.keyHashIndices[i],this._shiftSelectedKeyIndices(o)),o}},_updateAddedItemKeys:function(t,n){for(var e=0;e<t.length;e++)this.isItemKeySelected(t[e])||(this.options.addedItemKeys.push(t[e]),this.options.addedItems.push(n[e]))},_updateRemovedItemKeys:function(t,n,e){for(var i=0;i<n.length;i++)this.isItemKeySelected(n[i])||(this.options.removedItemKeys.push(n[i]),this.options.removedItems.push(e[i]))},_isItemSelectionInProgress:function(t,n){var i;return!!(n&&this._lastRequestData&&this._requestInProgress())&&(null!==(i=this._lastRequestData.addedItems)&&void 0!==i?i:[]).includes(t)},_getKeyHash:function(t){return this.options.equalByReference?t:lg(t)},setSelectedItems:function(t,n){this._updateAddedItemKeys(t,n);var e=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(t)),this._setOption("selectedItemKeys",t),this._setOption("selectedItems",n),this._updateRemovedItemKeys(t,e,i)},isItemDataSelected:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=this.options.keyOf(t);return this.isItemKeySelected(e,n)},isItemKeySelected:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=this._isItemSelectionInProgress(t,n.checkPending);if(!e){var i=this._getKeyHash(t),r=this._indexOfSelectedItemKey(i);e=-1!==r}return e},getSelectAllState:function(t){return t?this._getVisibleSelectAllState():this._getFullSelectAllState()}}),cG=ji.inherit({ctor:function(t){this.options=se(this._getDefaultOptions(),t,{selectedItemKeys:t.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new NCt(this.options):new zCt(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:Be,key:Be,keyOf:function(t){return t},load:function(){return(new et).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(t){return t},dataFields:Be,filter:Be}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(t){if(void 0===t)return this.options.selectionFilter;var n=this.options.selectionFilter!==t&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(t);this.options.selectionFilter=t,n&&this.onSelectionChanged()},setSelection:function(t,n){return this.selectedItemKeys(t,!1,!1,!1,n)},select:function(t){return this.selectedItemKeys(t,!0)},deselect:function(t){return this.selectedItemKeys(t,!0,!0)},selectedItemKeys:function(t,n,e,i,r){var o;return t=null!==(o=t)&&void 0!==o?o:[],t=Array.isArray(t)?t:[t],this.validate(),this._selectionStrategy.selectedItemKeys(t,n,e,i,r)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(t,n){this._selectionStrategy.addSelectedItem(n,t)},_removeSelectedItem:function(t){this._selectionStrategy.removeSelectedItem(t)},_setSelectedItems:function(t,n){this._selectionStrategy.setSelectedItems(t,n)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(t,n,e){var i,r,o,l,f,a=this.options.plainItems(),s=a[t],S=!1,T=!1,R=ie=>ie>=0&&!a.filter(te=>te.loadIndex===ie).length;if((null===(i=(r=this.options).allowLoadByRange)||void 0===i?void 0:i.call(r))&&(f=s.loadIndex-t,t=s.loadIndex,S=R(this._focusedItemIndex),Z(this._shiftFocusedItemIndex)&&(T=R(this._shiftFocusedItemIndex))),!this.isSelectable()||!this.isDataItem(s))return!1;var L=this.options.getItemData(s),z=this.options.keyOf(L);if((n=n||{}).shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)S||T?(o=t!==this._shiftFocusedItemIndex||this._focusedItemIndex!==this._shiftFocusedItemIndex)&&(l=this.changeItemSelectionWhenShiftKeyInVirtualPaging(t)):o=this.changeItemSelectionWhenShiftKeyPressed(t,a,f);else if(n.control){if(this._resetItemSelectionWhenShiftKeyPressed(),!e){var j=this._selectionStrategy.isItemDataSelected(L);"single"===this.options.mode&&this.clearSelectedItems(),j?this._removeSelectedItem(z):this._addSelectedItem(L,z)}o=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var Y=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],z);(1!==this.options.selectedItemKeys.length||!Y)&&(this._setSelectedItems([z],[L]),o=!0)}return o?(Qt(l).done(()=>{this._focusedItemIndex=t,!e&&this.onSelectionChanged()}),!0):void 0},isDataItem:function(t){return this.options.isSelectableItem(t)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(t){return this._selectionStrategy.isItemDataSelected(t,{checkPending:!0})},isItemSelected:function(t,n){return this._selectionStrategy.isItemKeySelected(t,n)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyInVirtualPaging:function(t){var n=this.options.getLoadOptions(t,this._focusedItemIndex,this._shiftFocusedItemIndex),e=new et,i=n.skip;return this.options.load(n).done(r=>{this.changeItemSelectionWhenShiftKeyPressed(t,r,i),e.resolve()}),e.promise()},changeItemSelectionWhenShiftKeyPressed:function(t,n,e){var r,T,R,z,i=!1,o=Z(e),a=o?this._focusedItemIndex-e:this._focusedItemIndex,s=this.options.keyOf,l=n[a],u=this.options.getItemData(l),f=s(u),S=l&&this.isItemDataSelected(u);if(Z(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(r=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,z=o?this._shiftFocusedItemIndex-e:this._shiftFocusedItemIndex,a=o?this._focusedItemIndex-e:this._focusedItemIndex;a!==z;a+=r)(o||this.isDataItem(n[a]))&&(R=s(this.options.getItemData(n[a])),this._removeSelectedItem(R),i=!0);if(t!==this._shiftFocusedItemIndex)for(r=t<this._shiftFocusedItemIndex?1:-1,z=o?this._shiftFocusedItemIndex-e:this._shiftFocusedItemIndex,a=o?t-e:t;a!==z;a+=r)(o||this.isDataItem(n[a]))&&(R=s(T=this.options.getItemData(n[a])),this._addSelectedItem(T,R),i=!0);return(o||this.isDataItem(l))&&!S&&(this._addSelectedItem(u,f),i=!0),i},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(t){return this._resetFocusedItemIndex(),t?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(t){return this._resetFocusedItemIndex(),t?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(t){for(var n=this._selectionStrategy.getSelectableItems(this.options.plainItems()),e=0;e<n.length;e++){var i=n[e];if(this.isDataItem(i)){var r=this.options.getItemData(i),o=this.options.keyOf(r),a=this.isItemSelected(o);!a&&!t&&this._addSelectedItem(r,o),a&&t&&this._removeSelectedItem(o)}}return this.onSelectionChanged(),(new et).resolve()},getSelectAllState:function(t){return this._selectionStrategy.getSelectAllState(t)}});var hG="dxItemDeleting",xp=function(t){return-1!==t},UCt=RCt.inherit({_setOptionsByReference:function(){this.callBase(),se(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return se(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:-1,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(t,n){this._userOptions=n||{},this.callBase(t,n)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule()},_initKeyGetter:function(){this._keyGetter=Ai(this.option("keyExpr"))},_getKeysByItems:function(t){return this._editStrategy.getKeysByItems(t)},_getItemsByKeys:function(t,n){return this._editStrategy.getItemsByKeys(t,n)},_getKeyByIndex:function(t){return this._editStrategy.getKeyByIndex(t)},_getIndexByKey:function(t){return this._editStrategy.getIndexByKey(t)},_getIndexByItemData:function(t){return this._editStrategy.getIndexByItemData(t)},_isKeySpecified:function(){return!!this._dataController.key()},_getCombinedFilter:function(){return this._dataController.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataController.key()},keyOf:function(t){var n=t;return this.option("keyExpr")?n=this._keyGetter(t):this._dataController.store()&&(n=this._dataController.keyOf(t)),n},_nullValueSelectionSupported:function(){return!1},_initSelectionModule:function(){var t=this,n=t._editStrategy.itemsGetter;this._selection=new cG({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(e){(e.addedItemKeys.length||e.removedItemKeys.length)&&(t.option("selectedItems",t._getItemsByKeys(e.selectedItemKeys,e.selectedItems)),t._updateSelectedItems(e))},filter:t._getCombinedFilter.bind(t),totalCount:function(){var e=t.option("items"),i=t._dataController.totalCount();return i>=0?i:t._getItemsCount(e)},key:t.key.bind(t),keyOf:t.keyOf.bind(t),load:function(e){var i,r=t._dataController;return e.customQueryParams=null===(i=r.loadOptions())||void 0===i?void 0:i.customQueryParams,e.userData=r.userData(),r.store()?r.loadFromStore(e).done(function(o){if(!t._disposed){var a=NO(o).data;r.applyMapFunction(a)}}):(new et).resolve(this.plainItems())},dataFields:function(){return t._dataController.select()},plainItems:n.bind(t._editStrategy)})},_getItemsCount:function(t){return t.reduce((n,e)=>n+(e.items?this._getItemsCount(e.items):1),0)},_initEditStrategy:function(){this._editStrategy=new dG(this)},_getSelectedItemIndices:function(t){var n=this,e=[];return t=t||this._selection.getSelectedItemKeys(),n._editStrategy.beginCache(),we(t,function(i,r){var o=n._getIndexByKey(r);xp(o)&&e.push(o)}),n._editStrategy.endCache(),e},_initMarkup:function(){this._rendering=!0,this._dataController.isLoading()||this._syncSelectionOptions().done(()=>this._normalizeSelectedItems()),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(t){var n,e,i,r;switch(t=t||this._chooseSelectOption()){case"selectedIndex":n=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),Z(n)?(this._setOptionWithoutOptionChange("selectedItems",[n]),this._setOptionWithoutOptionChange("selectedItem",n),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([n]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(e=(r=this.option("selectedItems")||[]).length?this._editStrategy.getIndexByItemData(r[0]):-1,this.option("selectionRequired")&&!xp(e))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",r[0]),this._setOptionWithoutOptionChange("selectedIndex",e),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(r));break;case"selectedItem":if(n=this.option("selectedItem"),e=this._editStrategy.getIndexByItemData(n),this.option("selectionRequired")&&!xp(e))return this._syncSelectionOptions("selectedIndex");Z(n)?(this._setOptionWithoutOptionChange("selectedItems",[n]),this._setOptionWithoutOptionChange("selectedIndex",e),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([n]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(i=this.option("selectedItemKeys"),this.option("selectionRequired")){var o=this._getIndexByKey(i[0]);if(!xp(o))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(i)}return(new et).resolve().promise()},_chooseSelectOption:function(){var t="selectedIndex",n=function(e){var i=this.option(e);return Z(i)&&i.length||e in this._userOptions}.bind(this);return n("selectedItems")?t="selectedItems":n("selectedItem")?t="selectedItem":n("selectedItemKeys")&&(t="selectedItemKeys"),t},_compareKeys:function(t,n){if(t.length!==n.length)return!1;for(var e=0;e<n.length;e++)if(t[e]!==n[e])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var t=this.option("selectedItems");if(t.length>1||!t.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var n=this._selection.getSelectedItems(),e=void 0===t[0]?n[0]:t[0];return void 0===e&&(e=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&e&&e.items&&(e.items=[e.items[0]]),this._selection.setSelection(this._getKeysByItems([e])),this._setOptionWithoutOptionChange("selectedItems",[e]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(t))}else{var i=this._getKeysByItems(this.option("selectedItems")),r=this._selection.getSelectedItemKeys();this._compareKeys(r,i)||this._selection.setSelection(i)}return(new et).resolve().promise()},_itemClickHandler:function(t){var n=(new et).resolve(),e=this.callBase;this._createAction(function(i){var r;n=null!==(r=this._itemSelectHandler(i.event))&&void 0!==r?r:n}.bind(this),{validatingTargetName:"itemElement"})({itemElement:U(t.currentTarget),event:t}),n.always(()=>{e.apply(this,arguments)})},_itemSelectHandler:function(t){var n,e;if(this.option("selectionByClick"))return this.isItemSelected(t.currentTarget)?this.unselectItem(t.currentTarget):e=this.selectItem(t.currentTarget),null===(n=e)||void 0===n?void 0:n.promise()},_selectedItemElement:function(t){return this._itemElements().eq(t)},_postprocessRenderItem:function(t){if("none"!==this.option("selectionMode")){var n=U(t.itemElement),e=this._editStrategy.getNormalizedIndex(n),i=this._isItemSelected(e);this._processSelectableItem(n,i)}},_processSelectableItem:function(t,n){t.toggleClass(this._selectedItemClass(),n),this._setAriaSelected(t,String(n))},_updateSelectedItems:function(t){var n=this,e=t.addedItemKeys,i=t.removedItemKeys;if(n._rendered&&(e.length||i.length)){var r=n._selectionChangePromise;if(!n._rendering){var a,o=[],s=[];n._editStrategy.beginCache();for(var l=0;l<e.length;l++)a=n._getIndexByKey(e[l]),o.push(a),n._addSelection(a);for(var u=0;u<i.length;u++)a=n._getIndexByKey(i[u]),s.push(a),n._removeSelection(a);n._editStrategy.endCache(),n._updateSelection(o,s)}Qt(r).done(function(){n._fireSelectionChangeEvent(t.addedItems,t.removedItems)})}},_fireSelectionChangeEvent:function(t,n){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:t,removedItems:n})},_updateSelection:Be,_setAriaSelected:function(t,n){this.setAria("selected",n,t)},_removeSelection:function(t){var n=this._editStrategy.getItemElement(t);xp(t)&&(this._processSelectableItem(n,!1),Se.triggerHandler(n,"stateChanged",!1))},_addSelection:function(t){var n=this._editStrategy.getItemElement(t);xp(t)&&(this._processSelectableItem(n,!0),Se.triggerHandler(n,"stateChanged",!0))},_isItemSelected:function(t){var n=this._getKeyByIndex(t);return this._selection.isItemSelected(n,{checkPending:!0})},_optionChanged:function(t){switch(t.name){case"selectionMode":this._invalidate();break;case"dataSource":(!t.value||Array.isArray(t.value)&&!t.value.length)&&this.option("selectedItemKeys",[]),this.callBase(t);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(t.name).done(()=>this._normalizeSelectedItems());break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(t)}},_clearSelectedItems:function(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(t){if(t.data(hG))return(new et).resolve().promise();t.data(hG,!0);var n=new et,e={cancel:!1},i=this._itemEventHandler(t,"onItemDeleting",e,{excludeValidators:["disabled","readOnly"]});return Qt(i).always(function(r){var o=!i,a=!o&&"resolved"===i.state(),s=!!arguments.length,l=o||a&&!s||a&&r;Qt(ra(e.cancel)).always(function(){t.data(hG,!1)}).done(function(u){l&&!u?n.resolve():n.reject()}).fail(n.reject)}.bind(this)),n.promise()},_deleteItemFromDS:function(t){var n=this._dataController,e=new et,i=this.option("disabled"),r=n.store();if(!r)return(new et).resolve().promise();if(!r.remove)throw Di.Error("E1011");return this.option("disabled",!0),r.remove(n.keyOf(this._getItemData(t))).done(function(o){void 0!==o?e.resolve():e.reject()}).fail(function(){e.reject()}),e.always(function(){this.option("disabled",i)}.bind(this)),e},_tryRefreshLastPage:function(){var t=new et;return this._isLastPage()||this.option("grouped")?t.resolve():this._refreshLastPage().done(function(){t.resolve()}),t.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataController.load()},_updateSelectionAfterDelete:function(t){var n=this._getKeyByIndex(t);this._selection.deselect([n])},_updateIndicesAfterIndex:function(t){for(var n=this._itemElements(),e=t+1;e<n.length;e++)U(n[e]).data(this._itemIndexKey(),e-1)},_simulateOptionChange:function(t){var n=this.option(t);n instanceof Fl||this._optionChangedAction({name:t,fullName:t,value:n})},isItemSelected:function(t){return this._isItemSelected(this._editStrategy.getNormalizedIndex(t))},selectItem:function(t){if("none"!==this.option("selectionMode")){var n=this._editStrategy.getNormalizedIndex(t);if(xp(n)){var e=this._getKeyByIndex(n);if(!this._selection.isItemSelected(e)){if("single"===this.option("selectionMode"))return this._selection.setSelection([e]);var i=this.option("selectedItemKeys")||[];return this._selection.setSelection([...i,e],[e])}}}},unselectItem:function(t){var n=this._editStrategy.getNormalizedIndex(t);if(xp(n)){var e=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&e.length<=1)){var i=this._getKeyByIndex(n);this._selection.isItemSelected(i,{checkPending:!0})&&this._selection.deselect([i])}}},_deleteItemElementByIndex:function(t){this._updateSelectionAfterDelete(t),this._updateIndicesAfterIndex(t),this._editStrategy.deleteItemAtIndex(t)},_afterItemElementDeleted:function(t,n){var e=this._dataController.getDataSource()?"dataSource":"items";this._simulateOptionChange(e),this._itemEventHandler(t,"onItemDeleted",n,{beforeExecute:function(){t.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(t){var n=this,e=new et,i=this._editStrategy.getItemElement(t),r=this._editStrategy.getNormalizedIndex(t),o=this._itemResponseWaitClass();return xp(r)?this._waitDeletingPrepare(i).done(function(){i.addClass(o);var a=n._extendActionArgs(i);n._deleteItemFromDS(i).done(function(){n._deleteItemElementByIndex(r),n._afterItemElementDeleted(i,a),n._tryRefreshLastPage().done(function(){e.resolveWith(n)})}).fail(function(){i.removeClass(o),e.rejectWith(n)})}).fail(function(){e.rejectWith(n)}):e.rejectWith(n),e.promise()},reorderItem:function(t,n){var e=new et,i=this,r=this._editStrategy,o=r.getItemElement(t),a=r.getItemElement(n),s=r.getNormalizedIndex(t),l=r.getNormalizedIndex(n),u=this._dataController.getDataSource()?"dataSource":"items";return xp(s)&&xp(l)&&s!==l?e.resolveWith(this):e.rejectWith(this),e.promise().done(function(){a[r.itemPlacementFunc(s,l)](o),r.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),i.option("selectedItems",i._getItemsByKeys(i._selection.getSelectedItemKeys(),i._selection.getSelectedItems())),"items"===u&&i._simulateOptionChange(u),i._itemEventHandler(o,"onItemReordered",{fromIndex:r.getIndex(s),toIndex:r.getIndex(l)},{excludeValidators:["disabled","readOnly"]})})}});const Fc=UCt;var pR="__dx_key__";const gR=Fc.inherit({_getDefaultOptions:function(){return se(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var t;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=n=>{this._dataController.getDataSource()&&!this._dataController.isLoaded()&&(this._correctionIndex=0),this._correctionIndex&&n.storeLoadOptions&&(n.storeLoadOptions.skip+=this._correctionIndex)},null===(t=this._dataController)||void 0===t||t.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(t){var n=U(),e=this.key();return this.itemElements().each((i,r)=>{var o=U(r),a=this._getItemData(o);if(e?EO(e,this.keyOf(a),t):this._isItemEquals(a,t))return n=o,!1}),n},_dataSourceChangedHandler:function(t,n){null!=n&&n.changes?this._modifyByChanges(n.changes):(this.callBase(t,n),this._refreshItemsCache())},_isItemEquals:function(t,n){t&&t[pR]&&(t=t.data);try{return JSON.stringify(t)===JSON.stringify(n)}catch{return t===n}},_isItemStrictEquals:function(t,n){return this._isItemEquals(t,n)},_shouldAddNewGroup:function(t,n){var e=!1;return this.option("grouped")&&(t.length||(e=!0),we(t,(i,r)=>{"insert"===r.type&&(e=!0,we(n,(o,a)=>{if(void 0!==r.data.key&&r.data.key===a.key)return e=!1,!1}))})),e},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var t=R0e(this._itemsCache,this._editStrategy.itemsGetter(),n=>n&&void 0!==n[pR]?n[pR]:this.keyOf(n),this._isItemStrictEquals.bind(this));if(t&&this._itemsCache.length&&!this._shouldAddNewGroup(t,this._itemsCache))return this._modifyByChanges(t,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var t=this._editStrategy.itemsGetter();try{this._itemsCache=se(!0,[],t),this.key()||(this._itemsCache=this._itemsCache.map((n,e)=>({[pR]:t[e],data:n})))}catch{this._itemsCache=se([],t)}}},_dispose:function(){this._dataController.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(t,n,e,i){if(i)this._renderItem(e.index,e.data,null,this._findItemElementByKey(e.key));else{var r=n[Uy(t,n,e.key)];r&&h5(t,n,e.key,e.data).done(()=>{this._renderItem(n.indexOf(r),r,null,this._findItemElementByKey(e.key))})}},_insertByChange:function(t,n,e,i){Qt(i||p5(t,n,e.data,e.index)).done(()=>{var r;this._beforeItemElementInserted(e);var o=this._getItemContainer(e.data);this._renderItem(null!==(r=e.index)&&void 0!==r?r:n.length,e.data,o),this._afterItemElementInserted(),this._correctionIndex++})},_getItemContainer:function(t){return this._itemContainer()},_updateSelectionAfterRemoveByChange:function(t){var n=this.option("selectedIndex");n>t?this.option("selectedIndex",n-1):n===t&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(t){var n=this.option("selectedIndex");t.index<=n&&this.option("selectedIndex",n+1)},_afterItemElementInserted:Be,_removeByChange:function(t,n,e,i){var r=i?e.index:Uy(t,n,e.key);if(i?e.oldItem:n[r]){var a=this._findItemElementByKey(e.key),s=this._extendActionArgs(a);this._waitDeletingPrepare(a).done(()=>{i?(this._updateIndicesAfterIndex(r-1),this._afterItemElementDeleted(a,s),this._updateSelectionAfterRemoveByChange(r)):(this._deleteItemElementByIndex(r),this._afterItemElementDeleted(a,s))}),this._correctionIndex--}},_modifyByChanges:function(t,n){var e=this._editStrategy.itemsGetter(),i={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},r=this._dataController,o=r.paginate(),a=r.group();(o||a)&&(t=t.filter(s=>"insert"!==s.type||void 0!==s.index)),t.forEach(s=>this["_".concat(s.type,"ByChange")](i,e,s,n)),this._renderedItemsCount=e.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(t,n,e){var i=t.children(this._itemSelector()).get(e);It.insertElement(t.get(0),n.get(0),i)},_optionChanged:function(t){switch(t.name){case"items":this._partialRefresh(t.value)||this.callBase(t);break;case"dataSource":(!this.option("repaintChangesOnly")||!t.value)&&this.option("items",[]),this.callBase(t);break;case"repaintChangesOnly":break;default:this.callBase(t)}}});var B0e="dx-accordion-item",RT="dx-accordion-item-opened",pG="dx-accordion-item-closed",gG="dx-accordion-item-title",fR="dx-accordion-item-body",N0e=gR.inherit({_activeStateUnit:"."+B0e,_getDefaultOptions:function(){return se(this.callBase(),{hoverStateEnabled:!0,height:void 0,itemTitleTemplate:"title",onItemTitleClick:null,selectedIndex:0,collapsible:!1,multiple:!1,animationDuration:300,deferRendering:!0,selectionByClick:!0,activeStateEnabled:!0,_itemAttributes:{role:"tab"},_animationEasing:"ease"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return io()},options:{animationDuration:200,_animationEasing:"cubic-bezier(0.4, 0, 0.2, 1)"}}])},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.option("selectionRequired",!this.option("collapsible")),this.option("selectionMode",this.option("multiple")?"multiple":"single");var t=this.$element();t.addClass("dx-accordion"),this._$container=U("<div>").addClass("dx-accordion-wrapper"),t.append(this._$container)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new Ac(function(t,n){if(wi(n)){var e=Fu(n.icon);e&&t.append(e),Z(n.title)&&!wi(n.title)&&t.append(It.createTextNode(n.title))}else Z(n)&&t.text(String(n));t.wrapInner(U("<div>").addClass("dx-accordion-item-title-caption"))},["title","icon"],this.option("integrationOptions.watchMethod"))})},_initMarkup:function(){this._deferredItems=[],this.callBase(),this.setAria({role:"tablist",multiselectable:this.option("multiple")}),Zo(()=>{var t=this._getSelectedItemIndices();this._renderSelection(t,[])})},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return"dxAccordionItemData"},_itemClass:function(){return B0e},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find("."+gG)},_itemContents:function(){return this._itemElements().find("."+fR)},_getItemData:function(t){return U(t).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(t){t.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(t){U(t.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_afterItemElementDeleted:function(t,n){this._deferredItems.splice(n.itemIndex,1),this.callBase.apply(this,arguments)},_renderItemContent:function(t){var n=this.callBase(se({},t,{contentClass:gG,templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(n);var e=new et;Z(this._deferredItems[t.index])?this._deferredItems[t.index]=e:this._deferredItems.push(e),(!this.option("deferRendering")||this._getSelectedItemIndices().indexOf(t.index)>=0)&&e.resolve(),e.done(this.callBase.bind(this,se({},t,{contentClass:fR,container:kn(U("<div>").appendTo(U(n).parent()))})))},_attachItemTitleClickAction:function(t){var n=kt(Vi,this.NAME);Se.off(t,n),Se.on(t,n,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(t){this._itemDXEventHandler(t,"onItemTitleClick")},_renderSelection:function(t,n){this._itemElements().addClass(pG),this.setAria("hidden",!0,this._itemContents()),this._updateItems(t,n)},_updateSelection:function(t,n){this._updateItems(t,n),this._updateItemHeightsWrapper(!1)},_updateItems:function(t,n){var e=this._itemElements();we(t,(i,r)=>{this._deferredItems[r].resolve();var o=e.eq(r).addClass(RT).removeClass(pG);this.setAria("hidden",!1,o.find("."+fR))}),we(n,(i,r)=>{var o=e.eq(r).removeClass(RT);this.setAria("hidden",!0,o.find("."+fR))})},_updateItemHeightsWrapper:function(t){this.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(t)}.bind(this)):this._updateItemHeights(t)},_updateItemHeights:function(t){var n=this,e=n._deferredAnimate,i=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),Qt.apply(U,[].slice.call(this._itemElements()).map(function(r){return n._updateItemHeight(U(r),i,t)})).done(function(){e&&e.resolveWith(n)})},_updateItemHeight:function(t,n,e){var i=t.children("."+gG);Hi.isAnimating(t)&&Hi.stop(t);var o,r=Zn(t);return t.hasClass(RT)?(o=n+Zn(i))||(xo(t,"auto"),o=Zn(t)):o=Zn(i),this._animateItem(t,r,o,e,!!n)},_animateItem:function(t,n,e,i,r){var o;return i||n===e?(t.css("height",e),o=(new et).resolve()):o=Hi.animate(t,{type:"custom",from:{height:n},to:{height:e},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),o.done(function(){t.hasClass(RT)&&!r&&t.css("height",""),t.not("."+RT).addClass(pG)})},_splitFreeSpace:function(t){return t&&t/this.option("selectedItems").length},_calculateFreeSpace:function(){var t=this.option("height");if(void 0!==t&&"auto"!==t){var n=this._itemTitles(),e=0;return we(n,function(i,r){e+=Zn(r)}),Ln(this.$element())-e}},_visibilityChanged:function(t){t&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_tryParseItemPropertyName:function(t){var n=t.match(/.*\.(.*)/);if(Z(n)&&n.length>=1)return n[1]},_optionChanged:function(t){switch(t.name){case"items":this.callBase(t),"title"===this._tryParseItemPropertyName(t.fullName)&&this._renderSelection(this._getSelectedItemIndices(),[]),"visible"===this._tryParseItemPropertyName(t.fullName)&&this._updateItemHeightsWrapper(!0),!0===this.option("repaintChangesOnly")&&"items"===t.fullName&&(this._updateItemHeightsWrapper(!0),this._renderSelection(this._getSelectedItemIndices(),[]));break;case"animationDuration":case"onItemTitleClick":case"_animationEasing":break;case"collapsible":this.option("selectionRequired",!this.option("collapsible"));break;case"itemTitleTemplate":case"height":case"deferRendering":this._invalidate();break;case"multiple":this.option("selectionMode",t.value?"multiple":"single");break;default:this.callBase(t)}},expandItem:function(t){return this._deferredAnimate=new et,this.selectItem(t),this._deferredAnimate.promise()},collapseItem:function(t){return this._deferredAnimate=new et,this.unselectItem(t),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});On("dxAccordion",N0e);const V0e=N0e;let H0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Og=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),mR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),_R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),vr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),m_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),z0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),U0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Bw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),yR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),CR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),bR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),xR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),__=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),co=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),W0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),wR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Nw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),G0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Ea=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),ho=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),ZCt=(()=>{class t extends ro{get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get html(){return this._getOption("html")}set html(e){this._setOption("html",e)}get icon(){return this._getOption("icon")}set icon(e){this._setOption("icon",e)}get template(){return this._getOption("template")}set template(e){this._setOption("template",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get title(){return this._getOption("title")}set title(e){this._setOption("title",e)}get titleTemplate(){return this._getOption("titleTemplate")}set titleTemplate(e){this._setOption("titleTemplate",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get onClick(){return this._getOption("onClick")}set onClick(e){this._setOption("onClick",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get type(){return this._getOption("type")}set type(e){this._setOption("type",e)}get baseSize(){return this._getOption("baseSize")}set baseSize(e){this._setOption("baseSize",e)}get box(){return this._getOption("box")}set box(e){this._setOption("box",e)}get ratio(){return this._getOption("ratio")}set ratio(e){this._setOption("ratio",e)}get shrink(){return this._getOption("shrink")}set shrink(e){this._setOption("shrink",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get beginGroup(){return this._getOption("beginGroup")}set beginGroup(e){this._setOption("beginGroup",e)}get closeMenuOnClick(){return this._getOption("closeMenuOnClick")}set closeMenuOnClick(e){this._setOption("closeMenuOnClick",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get selectable(){return this._getOption("selectable")}set selectable(e){this._setOption("selectable",e)}get selected(){return this._getOption("selected")}set selected(e){this._setOption("selected",e)}get colSpan(){return this._getOption("colSpan")}set colSpan(e){this._setOption("colSpan",e)}get cssClass(){return this._getOption("cssClass")}set cssClass(e){this._setOption("cssClass",e)}get dataField(){return this._getOption("dataField")}set dataField(e){this._setOption("dataField",e)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(e){this._setOption("editorOptions",e)}get editorType(){return this._getOption("editorType")}set editorType(e){this._setOption("editorType",e)}get helpText(){return this._getOption("helpText")}set helpText(e){this._setOption("helpText",e)}get isRequired(){return this._getOption("isRequired")}set isRequired(e){this._setOption("isRequired",e)}get itemType(){return this._getOption("itemType")}set itemType(e){this._setOption("itemType",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get validationRules(){return this._getOption("validationRules")}set validationRules(e){this._setOption("validationRules",e)}get visibleIndex(){return this._getOption("visibleIndex")}set visibleIndex(e){this._setOption("visibleIndex",e)}get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(e){this._setOption("alignItemLabels",e)}get caption(){return this._getOption("caption")}set caption(e){this._setOption("caption",e)}get colCount(){return this._getOption("colCount")}set colCount(e){this._setOption("colCount",e)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(e){this._setOption("colCountByScreen",e)}get tabPanelOptions(){return this._getOption("tabPanelOptions")}set tabPanelOptions(e){this._setOption("tabPanelOptions",e)}get tabs(){return this._getOption("tabs")}set tabs(e){this._setOption("tabs",e)}get badge(){return this._getOption("badge")}set badge(e){this._setOption("badge",e)}get tabTemplate(){return this._getOption("tabTemplate")}set tabTemplate(e){this._setOption("tabTemplate",e)}get buttonOptions(){return this._getOption("buttonOptions")}set buttonOptions(e){this._setOption("buttonOptions",e)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(e){this._setOption("horizontalAlignment",e)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(e){this._setOption("verticalAlignment",e)}get locateInMenu(){return this._getOption("locateInMenu")}set locateInMenu(e){this._setOption("locateInMenu",e)}get location(){return this._getOption("location")}set location(e){this._setOption("location",e)}get menuItemTemplate(){return this._getOption("menuItemTemplate")}set menuItemTemplate(e){this._setOption("menuItemTemplate",e)}get options(){return this._getOption("options")}set options(e){this._setOption("options",e)}get showText(){return this._getOption("showText")}set showText(e){this._setOption("showText",e)}get widget(){return this._getOption("widget")}set widget(e){this._setOption("widget",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get imageAlt(){return this._getOption("imageAlt")}set imageAlt(e){this._setOption("imageAlt",e)}get imageSrc(){return this._getOption("imageSrc")}set imageSrc(e){this._setOption("imageSrc",e)}get acceptedValues(){return this._getOption("acceptedValues")}set acceptedValues(e){this._setOption("acceptedValues",e)}get formatName(){return this._getOption("formatName")}set formatName(e){this._setOption("formatName",e)}get formatValues(){return this._getOption("formatValues")}set formatValues(e){this._setOption("formatValues",e)}get key(){return this._getOption("key")}set key(e){this._setOption("key",e)}get showChevron(){return this._getOption("showChevron")}set showChevron(e){this._setOption("showChevron",e)}get heightRatio(){return this._getOption("heightRatio")}set heightRatio(e){this._setOption("heightRatio",e)}get widthRatio(){return this._getOption("widthRatio")}set widthRatio(e){this._setOption("widthRatio",e)}get expanded(){return this._getOption("expanded")}set expanded(e){this._setOption("expanded",e)}get hasItems(){return this._getOption("hasItems")}set hasItems(e){this._setOption("hasItems",e)}get id(){return this._getOption("id")}set id(e){this._setOption("id",e)}get parentId(){return this._getOption("parentId")}set parentId(e){this._setOption("parentId",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),BT=(()=>{class t extends ro{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get message(){return this._getOption("message")}set message(e){this._setOption("message",e)}get trim(){return this._getOption("trim")}set trim(e){this._setOption("trim",e)}get type(){return this._getOption("type")}set type(e){this._setOption("type",e)}get ignoreEmptyValue(){return this._getOption("ignoreEmptyValue")}set ignoreEmptyValue(e){this._setOption("ignoreEmptyValue",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get reevaluate(){return this._getOption("reevaluate")}set reevaluate(e){this._setOption("reevaluate",e)}get validationCallback(){return this._getOption("validationCallback")}set validationCallback(e){this._setOption("validationCallback",e)}get comparisonTarget(){return this._getOption("comparisonTarget")}set comparisonTarget(e){this._setOption("comparisonTarget",e)}get comparisonType(){return this._getOption("comparisonType")}set comparisonType(e){this._setOption("comparisonType",e)}get pattern(){return this._getOption("pattern")}set pattern(e){this._setOption("pattern",e)}get _optionPath(){return"validationRules"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-validation-rule"]],inputs:{message:"message",trim:"trim",type:"type",ignoreEmptyValue:"ignoreEmptyValue",max:"max",min:"min",reevaluate:"reevaluate",validationCallback:"validationCallback",comparisonTarget:"comparisonTarget",comparisonType:"comparisonType",pattern:"pattern"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),v_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),XCt=(()=>{class t extends ro{get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(e){this._setOption("alignItemLabels",e)}get badge(){return this._getOption("badge")}set badge(e){this._setOption("badge",e)}get colCount(){return this._getOption("colCount")}set colCount(e){this._setOption("colCount",e)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(e){this._setOption("colCountByScreen",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get icon(){return this._getOption("icon")}set icon(e){this._setOption("icon",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get tabTemplate(){return this._getOption("tabTemplate")}set tabTemplate(e){this._setOption("tabTemplate",e)}get template(){return this._getOption("template")}set template(e){this._setOption("template",e)}get title(){return this._getOption("title")}set title(e){this._setOption("title",e)}get commands(){return this._getOption("commands")}set commands(e){this._setOption("commands",e)}get groups(){return this._getOption("groups")}set groups(e){this._setOption("groups",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),JCt=(()=>{class t extends ro{get icon(){return this._getOption("icon")}set icon(e){this._setOption("icon",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get location(){return this._getOption("location")}set location(e){this._setOption("location",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Vw=(()=>{class t extends JCt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"commands"}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-command"]],contentQueries:function(e,i,r){if(1&e&&In(r,So,4),2&e){let o;yn(o=Cn())&&(i.itemsChildren=o)}},inputs:{icon:"icon",items:"items",location:"location",name:"name",text:"text"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),j0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),K0e=(()=>{class t extends ro{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get commands(){return this._getOption("commands")}set commands(e){this._setOption("commands",e)}get title(){return this._getOption("title")}set title(e){this._setOption("title",e)}get category(){return this._getOption("category")}set category(e){this._setOption("category",e)}get displayMode(){return this._getOption("displayMode")}set displayMode(e){this._setOption("displayMode",e)}get expanded(){return this._getOption("expanded")}set expanded(e){this._setOption("expanded",e)}get shapes(){return this._getOption("shapes")}set shapes(e){this._setOption("shapes",e)}get _optionPath(){return"groups"}get commandsChildren(){return this._getOption("commands")}set commandsChildren(e){this.setChildren("commands",e)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-group"]],contentQueries:function(e,i,r){if(1&e&&In(r,Vw,4),2&e){let o;yn(o=Cn())&&(i.commandsChildren=o)}},inputs:{commands:"commands",title:"title",category:"category",displayMode:"displayMode",expanded:"expanded",shapes:"shapes"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),$0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})();const QCt=["*"];let yG=(()=>{class t extends XCt{constructor(e,i,r,o,a,s){super(),this.renderer=r,this.document=o,this.element=s,e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this)),a.setHost(this)}get _optionPath(){return"tabs"}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}get commandsChildren(){return this._getOption("commands")}set commandsChildren(e){this.setChildren("commands",e)}get groupsChildren(){return this._getOption("groups")}set groupsChildren(e){this.setChildren("groups",e)}setTemplate(e){this.template=e}ngAfterViewInit(){DT(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1),$(bu),$(Ko),$(Zt,1),$(jn))},t.\u0275cmp=je({type:t,selectors:[["dxi-tab"]],contentQueries:function(e,i,r){if(1&e&&(In(r,So,4),In(r,Vw,4),In(r,K0e,4)),2&e){let o;yn(o=Cn())&&(i.itemsChildren=o),yn(o=Cn())&&(i.commandsChildren=o),yn(o=Cn())&&(i.groupsChildren=o)}},inputs:{alignItemLabels:"alignItemLabels",badge:"badge",colCount:"colCount",colCountByScreen:"colCountByScreen",disabled:"disabled",icon:"icon",items:"items",tabTemplate:"tabTemplate",template:"template",title:"title",commands:"commands",groups:"groups",name:"name"},features:[ot([ue,Zt]),qe],ngContentSelectors:QCt,decls:1,vars:0,template:function(e,i){1&e&&(nl(),As(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),t})(),Tg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),CG=(()=>{class t extends ro{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get lat(){return this._getOption("lat")}set lat(e){this._setOption("lat",e)}get lng(){return this._getOption("lng")}set lng(e){this._setOption("lng",e)}get col(){return this._getOption("col")}set col(e){this._setOption("col",e)}get colspan(){return this._getOption("colspan")}set colspan(e){this._setOption("colspan",e)}get row(){return this._getOption("row")}set row(e){this._setOption("row",e)}get rowspan(){return this._getOption("rowspan")}set rowspan(e){this._setOption("rowspan",e)}get screen(){return this._getOption("screen")}set screen(e){this._setOption("screen",e)}get _optionPath(){return"location"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-location"]],inputs:{lat:"lat",lng:"lng",col:"col",colspan:"colspan",row:"row",rowspan:"rowspan",screen:"screen"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),SR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})();const ebt=["*"];let So=(()=>{class t extends ZCt{constructor(e,i,r,o,a,s){super(),this.renderer=r,this.document=o,this.element=s,e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this)),a.setHost(this)}get _optionPath(){return"items"}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(e){this.setChildren("validationRules",e)}get tabsChildren(){return this._getOption("tabs")}set tabsChildren(e){this.setChildren("tabs",e)}get locationChildren(){return this._getOption("location")}set locationChildren(e){this.setChildren("location",e)}setTemplate(e){this.template=e}ngAfterViewInit(){DT(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1),$(bu),$(Ko),$(Zt,1),$(jn))},t.\u0275cmp=je({type:t,selectors:[["dxi-item"]],contentQueries:function(e,i,r){if(1&e&&(In(r,t,4),In(r,BT,4),In(r,yG,4),In(r,CG,4)),2&e){let o;yn(o=Cn())&&(i.itemsChildren=o),yn(o=Cn())&&(i.validationRulesChildren=o),yn(o=Cn())&&(i.tabsChildren=o),yn(o=Cn())&&(i.locationChildren=o)}},inputs:{disabled:"disabled",html:"html",icon:"icon",template:"template",text:"text",title:"title",titleTemplate:"titleTemplate",visible:"visible",onClick:"onClick",stylingMode:"stylingMode",type:"type",baseSize:"baseSize",box:"box",ratio:"ratio",shrink:"shrink",elementAttr:"elementAttr",hint:"hint",beginGroup:"beginGroup",closeMenuOnClick:"closeMenuOnClick",items:"items",selectable:"selectable",selected:"selected",colSpan:"colSpan",cssClass:"cssClass",dataField:"dataField",editorOptions:"editorOptions",editorType:"editorType",helpText:"helpText",isRequired:"isRequired",itemType:"itemType",label:"label",name:"name",validationRules:"validationRules",visibleIndex:"visibleIndex",alignItemLabels:"alignItemLabels",caption:"caption",colCount:"colCount",colCountByScreen:"colCountByScreen",tabPanelOptions:"tabPanelOptions",tabs:"tabs",badge:"badge",tabTemplate:"tabTemplate",buttonOptions:"buttonOptions",horizontalAlignment:"horizontalAlignment",verticalAlignment:"verticalAlignment",locateInMenu:"locateInMenu",location:"location",menuItemTemplate:"menuItemTemplate",options:"options",showText:"showText",widget:"widget",height:"height",width:"width",imageAlt:"imageAlt",imageSrc:"imageSrc",acceptedValues:"acceptedValues",formatName:"formatName",formatValues:"formatValues",key:"key",showChevron:"showChevron",heightRatio:"heightRatio",widthRatio:"widthRatio",expanded:"expanded",hasItems:"hasItems",id:"id",parentId:"parentId"},features:[ot([ue,Zt]),qe],ngContentSelectors:ebt,decls:1,vars:0,template:function(e,i){1&e&&(nl(),As(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),t})(),$i=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),q0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),DR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),ER=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),tbt=(()=>{class t extends ro{get location(){return this._getOption("location")}set location(e){this._setOption("location",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get options(){return this._getOption("options")}set options(e){this._setOption("options",e)}get cssClass(){return this._getOption("cssClass")}set cssClass(e){this._setOption("cssClass",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get icon(){return this._getOption("icon")}set icon(e){this._setOption("icon",e)}get onClick(){return this._getOption("onClick")}set onClick(e){this._setOption("onClick",e)}get template(){return this._getOption("template")}set template(e){this._setOption("template",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Ig=(()=>{class t extends tbt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"buttons"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-button"]],inputs:{location:"location",name:"name",options:"options",cssClass:"cssClass",disabled:"disabled",hint:"hint",icon:"icon",onClick:"onClick",template:"template",text:"text",visible:"visible"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),Wa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Hw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Z0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),OR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),X0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),rbt=(()=>{class t extends ro{get data(){return this._getOption("data")}set data(e){this._setOption("data",e)}get insertAfterKey(){return this._getOption("insertAfterKey")}set insertAfterKey(e){this._setOption("insertAfterKey",e)}get insertBeforeKey(){return this._getOption("insertBeforeKey")}set insertBeforeKey(e){this._setOption("insertBeforeKey",e)}get key(){return this._getOption("key")}set key(e){this._setOption("key",e)}get type(){return this._getOption("type")}set type(e){this._setOption("type",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),obt=(()=>{class t extends rbt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"changes"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-change"]],inputs:{data:"data",insertAfterKey:"insertAfterKey",insertBeforeKey:"insertBeforeKey",key:"key",type:"type"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),TR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),y_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),J0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),zw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Q0e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),po=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),e_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),kR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),lbt=(()=>{class t extends ro{get alignment(){return this._getOption("alignment")}set alignment(e){this._setOption("alignment",e)}get allowEditing(){return this._getOption("allowEditing")}set allowEditing(e){this._setOption("allowEditing",e)}get allowExporting(){return this._getOption("allowExporting")}set allowExporting(e){this._setOption("allowExporting",e)}get allowFiltering(){return this._getOption("allowFiltering")}set allowFiltering(e){this._setOption("allowFiltering",e)}get allowFixing(){return this._getOption("allowFixing")}set allowFixing(e){this._setOption("allowFixing",e)}get allowGrouping(){return this._getOption("allowGrouping")}set allowGrouping(e){this._setOption("allowGrouping",e)}get allowHeaderFiltering(){return this._getOption("allowHeaderFiltering")}set allowHeaderFiltering(e){this._setOption("allowHeaderFiltering",e)}get allowHiding(){return this._getOption("allowHiding")}set allowHiding(e){this._setOption("allowHiding",e)}get allowReordering(){return this._getOption("allowReordering")}set allowReordering(e){this._setOption("allowReordering",e)}get allowResizing(){return this._getOption("allowResizing")}set allowResizing(e){this._setOption("allowResizing",e)}get allowSearch(){return this._getOption("allowSearch")}set allowSearch(e){this._setOption("allowSearch",e)}get allowSorting(){return this._getOption("allowSorting")}set allowSorting(e){this._setOption("allowSorting",e)}get autoExpandGroup(){return this._getOption("autoExpandGroup")}set autoExpandGroup(e){this._setOption("autoExpandGroup",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get calculateCellValue(){return this._getOption("calculateCellValue")}set calculateCellValue(e){this._setOption("calculateCellValue",e)}get calculateDisplayValue(){return this._getOption("calculateDisplayValue")}set calculateDisplayValue(e){this._setOption("calculateDisplayValue",e)}get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(e){this._setOption("calculateFilterExpression",e)}get calculateGroupValue(){return this._getOption("calculateGroupValue")}set calculateGroupValue(e){this._setOption("calculateGroupValue",e)}get calculateSortValue(){return this._getOption("calculateSortValue")}set calculateSortValue(e){this._setOption("calculateSortValue",e)}get caption(){return this._getOption("caption")}set caption(e){this._setOption("caption",e)}get cellTemplate(){return this._getOption("cellTemplate")}set cellTemplate(e){this._setOption("cellTemplate",e)}get columns(){return this._getOption("columns")}set columns(e){this._setOption("columns",e)}get cssClass(){return this._getOption("cssClass")}set cssClass(e){this._setOption("cssClass",e)}get customizeText(){return this._getOption("customizeText")}set customizeText(e){this._setOption("customizeText",e)}get dataField(){return this._getOption("dataField")}set dataField(e){this._setOption("dataField",e)}get dataType(){return this._getOption("dataType")}set dataType(e){this._setOption("dataType",e)}get editCellTemplate(){return this._getOption("editCellTemplate")}set editCellTemplate(e){this._setOption("editCellTemplate",e)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(e){this._setOption("editorOptions",e)}get encodeHtml(){return this._getOption("encodeHtml")}set encodeHtml(e){this._setOption("encodeHtml",e)}get falseText(){return this._getOption("falseText")}set falseText(e){this._setOption("falseText",e)}get filterOperations(){return this._getOption("filterOperations")}set filterOperations(e){this._setOption("filterOperations",e)}get filterType(){return this._getOption("filterType")}set filterType(e){this._setOption("filterType",e)}get filterValue(){return this._getOption("filterValue")}set filterValue(e){this._setOption("filterValue",e)}get filterValues(){return this._getOption("filterValues")}set filterValues(e){this._setOption("filterValues",e)}get fixed(){return this._getOption("fixed")}set fixed(e){this._setOption("fixed",e)}get fixedPosition(){return this._getOption("fixedPosition")}set fixedPosition(e){this._setOption("fixedPosition",e)}get format(){return this._getOption("format")}set format(e){this._setOption("format",e)}get formItem(){return this._getOption("formItem")}set formItem(e){this._setOption("formItem",e)}get groupCellTemplate(){return this._getOption("groupCellTemplate")}set groupCellTemplate(e){this._setOption("groupCellTemplate",e)}get groupIndex(){return this._getOption("groupIndex")}set groupIndex(e){this._setOption("groupIndex",e)}get headerCellTemplate(){return this._getOption("headerCellTemplate")}set headerCellTemplate(e){this._setOption("headerCellTemplate",e)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(e){this._setOption("headerFilter",e)}get hidingPriority(){return this._getOption("hidingPriority")}set hidingPriority(e){this._setOption("hidingPriority",e)}get isBand(){return this._getOption("isBand")}set isBand(e){this._setOption("isBand",e)}get lookup(){return this._getOption("lookup")}set lookup(e){this._setOption("lookup",e)}get minWidth(){return this._getOption("minWidth")}set minWidth(e){this._setOption("minWidth",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get ownerBand(){return this._getOption("ownerBand")}set ownerBand(e){this._setOption("ownerBand",e)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(e){this._setOption("renderAsync",e)}get selectedFilterOperation(){return this._getOption("selectedFilterOperation")}set selectedFilterOperation(e){this._setOption("selectedFilterOperation",e)}get setCellValue(){return this._getOption("setCellValue")}set setCellValue(e){this._setOption("setCellValue",e)}get showEditorAlways(){return this._getOption("showEditorAlways")}set showEditorAlways(e){this._setOption("showEditorAlways",e)}get showInColumnChooser(){return this._getOption("showInColumnChooser")}set showInColumnChooser(e){this._setOption("showInColumnChooser",e)}get showWhenGrouped(){return this._getOption("showWhenGrouped")}set showWhenGrouped(e){this._setOption("showWhenGrouped",e)}get sortIndex(){return this._getOption("sortIndex")}set sortIndex(e){this._setOption("sortIndex",e)}get sortingMethod(){return this._getOption("sortingMethod")}set sortingMethod(e){this._setOption("sortingMethod",e)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(e){this._setOption("sortOrder",e)}get trueText(){return this._getOption("trueText")}set trueText(e){this._setOption("trueText",e)}get type(){return this._getOption("type")}set type(e){this._setOption("type",e)}get validationRules(){return this._getOption("validationRules")}set validationRules(e){this._setOption("validationRules",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get visibleIndex(){return this._getOption("visibleIndex")}set visibleIndex(e){this._setOption("visibleIndex",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),NT=(()=>{class t extends lbt{constructor(e,i){super(),this._createEventEmitters([{emit:"filterValueChange"},{emit:"filterValuesChange"},{emit:"groupIndexChange"},{emit:"selectedFilterOperationChange"},{emit:"sortIndexChange"},{emit:"sortOrderChange"},{emit:"visibleChange"},{emit:"visibleIndexChange"}]),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"columns"}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}get columnsChildren(){return this._getOption("columns")}set columnsChildren(e){this.setChildren("columns",e)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(e){this.setChildren("validationRules",e)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-column"]],contentQueries:function(e,i,r){if(1&e&&(In(r,Ig,4),In(r,t,4),In(r,BT,4)),2&e){let o;yn(o=Cn())&&(i.buttonsChildren=o),yn(o=Cn())&&(i.columnsChildren=o),yn(o=Cn())&&(i.validationRulesChildren=o)}},inputs:{alignment:"alignment",allowEditing:"allowEditing",allowExporting:"allowExporting",allowFiltering:"allowFiltering",allowFixing:"allowFixing",allowGrouping:"allowGrouping",allowHeaderFiltering:"allowHeaderFiltering",allowHiding:"allowHiding",allowReordering:"allowReordering",allowResizing:"allowResizing",allowSearch:"allowSearch",allowSorting:"allowSorting",autoExpandGroup:"autoExpandGroup",buttons:"buttons",calculateCellValue:"calculateCellValue",calculateDisplayValue:"calculateDisplayValue",calculateFilterExpression:"calculateFilterExpression",calculateGroupValue:"calculateGroupValue",calculateSortValue:"calculateSortValue",caption:"caption",cellTemplate:"cellTemplate",columns:"columns",cssClass:"cssClass",customizeText:"customizeText",dataField:"dataField",dataType:"dataType",editCellTemplate:"editCellTemplate",editorOptions:"editorOptions",encodeHtml:"encodeHtml",falseText:"falseText",filterOperations:"filterOperations",filterType:"filterType",filterValue:"filterValue",filterValues:"filterValues",fixed:"fixed",fixedPosition:"fixedPosition",format:"format",formItem:"formItem",groupCellTemplate:"groupCellTemplate",groupIndex:"groupIndex",headerCellTemplate:"headerCellTemplate",headerFilter:"headerFilter",hidingPriority:"hidingPriority",isBand:"isBand",lookup:"lookup",minWidth:"minWidth",name:"name",ownerBand:"ownerBand",renderAsync:"renderAsync",selectedFilterOperation:"selectedFilterOperation",setCellValue:"setCellValue",showEditorAlways:"showEditorAlways",showInColumnChooser:"showInColumnChooser",showWhenGrouped:"showWhenGrouped",sortIndex:"sortIndex",sortingMethod:"sortingMethod",sortOrder:"sortOrder",trueText:"trueText",type:"type",validationRules:"validationRules",visible:"visible",visibleIndex:"visibleIndex",width:"width"},outputs:{filterValueChange:"filterValueChange",filterValuesChange:"filterValuesChange",groupIndexChange:"groupIndexChange",selectedFilterOperationChange:"selectedFilterOperationChange",sortIndexChange:"sortIndexChange",sortOrderChange:"sortOrderChange",visibleChange:"visibleChange",visibleIndexChange:"visibleIndexChange"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),C_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),MR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),b_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),AR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),t_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),x_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),n_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),kg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),FR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Uw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),i_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),r_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),o_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Mg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),hbt=(()=>{class t extends ro{get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(e){this._setOption("calculateFilterExpression",e)}get caption(){return this._getOption("caption")}set caption(e){this._setOption("caption",e)}get customizeText(){return this._getOption("customizeText")}set customizeText(e){this._setOption("customizeText",e)}get dataTypes(){return this._getOption("dataTypes")}set dataTypes(e){this._setOption("dataTypes",e)}get editorTemplate(){return this._getOption("editorTemplate")}set editorTemplate(e){this._setOption("editorTemplate",e)}get hasValue(){return this._getOption("hasValue")}set hasValue(e){this._setOption("hasValue",e)}get icon(){return this._getOption("icon")}set icon(e){this._setOption("icon",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),a_e=(()=>{class t extends hbt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"customOperations"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-custom-operation"]],inputs:{calculateFilterExpression:"calculateFilterExpression",caption:"caption",customizeText:"customizeText",dataTypes:"dataTypes",editorTemplate:"editorTemplate",hasValue:"hasValue",icon:"icon",name:"name"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),Ww=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),s_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Gw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),mbt=(()=>{class t extends ro{get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(e){this._setOption("calculateFilterExpression",e)}get caption(){return this._getOption("caption")}set caption(e){this._setOption("caption",e)}get customizeText(){return this._getOption("customizeText")}set customizeText(e){this._setOption("customizeText",e)}get dataField(){return this._getOption("dataField")}set dataField(e){this._setOption("dataField",e)}get dataType(){return this._getOption("dataType")}set dataType(e){this._setOption("dataType",e)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(e){this._setOption("editorOptions",e)}get editorTemplate(){return this._getOption("editorTemplate")}set editorTemplate(e){this._setOption("editorTemplate",e)}get falseText(){return this._getOption("falseText")}set falseText(e){this._setOption("falseText",e)}get filterOperations(){return this._getOption("filterOperations")}set filterOperations(e){this._setOption("filterOperations",e)}get format(){return this._getOption("format")}set format(e){this._setOption("format",e)}get lookup(){return this._getOption("lookup")}set lookup(e){this._setOption("lookup",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get trueText(){return this._getOption("trueText")}set trueText(e){this._setOption("trueText",e)}get allowCrossGroupCalculation(){return this._getOption("allowCrossGroupCalculation")}set allowCrossGroupCalculation(e){this._setOption("allowCrossGroupCalculation",e)}get allowExpandAll(){return this._getOption("allowExpandAll")}set allowExpandAll(e){this._setOption("allowExpandAll",e)}get allowFiltering(){return this._getOption("allowFiltering")}set allowFiltering(e){this._setOption("allowFiltering",e)}get allowSorting(){return this._getOption("allowSorting")}set allowSorting(e){this._setOption("allowSorting",e)}get allowSortingBySummary(){return this._getOption("allowSortingBySummary")}set allowSortingBySummary(e){this._setOption("allowSortingBySummary",e)}get area(){return this._getOption("area")}set area(e){this._setOption("area",e)}get areaIndex(){return this._getOption("areaIndex")}set areaIndex(e){this._setOption("areaIndex",e)}get calculateCustomSummary(){return this._getOption("calculateCustomSummary")}set calculateCustomSummary(e){this._setOption("calculateCustomSummary",e)}get calculateSummaryValue(){return this._getOption("calculateSummaryValue")}set calculateSummaryValue(e){this._setOption("calculateSummaryValue",e)}get displayFolder(){return this._getOption("displayFolder")}set displayFolder(e){this._setOption("displayFolder",e)}get expanded(){return this._getOption("expanded")}set expanded(e){this._setOption("expanded",e)}get filterType(){return this._getOption("filterType")}set filterType(e){this._setOption("filterType",e)}get filterValues(){return this._getOption("filterValues")}set filterValues(e){this._setOption("filterValues",e)}get groupIndex(){return this._getOption("groupIndex")}set groupIndex(e){this._setOption("groupIndex",e)}get groupInterval(){return this._getOption("groupInterval")}set groupInterval(e){this._setOption("groupInterval",e)}get groupName(){return this._getOption("groupName")}set groupName(e){this._setOption("groupName",e)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(e){this._setOption("headerFilter",e)}get isMeasure(){return this._getOption("isMeasure")}set isMeasure(e){this._setOption("isMeasure",e)}get precision(){return this._getOption("precision")}set precision(e){this._setOption("precision",e)}get runningTotal(){return this._getOption("runningTotal")}set runningTotal(e){this._setOption("runningTotal",e)}get selector(){return this._getOption("selector")}set selector(e){this._setOption("selector",e)}get showGrandTotals(){return this._getOption("showGrandTotals")}set showGrandTotals(e){this._setOption("showGrandTotals",e)}get showTotals(){return this._getOption("showTotals")}set showTotals(e){this._setOption("showTotals",e)}get showValues(){return this._getOption("showValues")}set showValues(e){this._setOption("showValues",e)}get sortBy(){return this._getOption("sortBy")}set sortBy(e){this._setOption("sortBy",e)}get sortBySummaryField(){return this._getOption("sortBySummaryField")}set sortBySummaryField(e){this._setOption("sortBySummaryField",e)}get sortBySummaryPath(){return this._getOption("sortBySummaryPath")}set sortBySummaryPath(e){this._setOption("sortBySummaryPath",e)}get sortingMethod(){return this._getOption("sortingMethod")}set sortingMethod(e){this._setOption("sortingMethod",e)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(e){this._setOption("sortOrder",e)}get summaryDisplayMode(){return this._getOption("summaryDisplayMode")}set summaryDisplayMode(e){this._setOption("summaryDisplayMode",e)}get summaryType(){return this._getOption("summaryType")}set summaryType(e){this._setOption("summaryType",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get wordWrapEnabled(){return this._getOption("wordWrapEnabled")}set wordWrapEnabled(e){this._setOption("wordWrapEnabled",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),bG=(()=>{class t extends mbt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"fields"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-field"]],inputs:{calculateFilterExpression:"calculateFilterExpression",caption:"caption",customizeText:"customizeText",dataField:"dataField",dataType:"dataType",editorOptions:"editorOptions",editorTemplate:"editorTemplate",falseText:"falseText",filterOperations:"filterOperations",format:"format",lookup:"lookup",name:"name",trueText:"trueText",allowCrossGroupCalculation:"allowCrossGroupCalculation",allowExpandAll:"allowExpandAll",allowFiltering:"allowFiltering",allowSorting:"allowSorting",allowSortingBySummary:"allowSortingBySummary",area:"area",areaIndex:"areaIndex",calculateCustomSummary:"calculateCustomSummary",calculateSummaryValue:"calculateSummaryValue",displayFolder:"displayFolder",expanded:"expanded",filterType:"filterType",filterValues:"filterValues",groupIndex:"groupIndex",groupInterval:"groupInterval",groupName:"groupName",headerFilter:"headerFilter",isMeasure:"isMeasure",precision:"precision",runningTotal:"runningTotal",selector:"selector",showGrandTotals:"showGrandTotals",showTotals:"showTotals",showValues:"showValues",sortBy:"sortBy",sortBySummaryField:"sortBySummaryField",sortBySummaryPath:"sortBySummaryPath",sortingMethod:"sortingMethod",sortOrder:"sortOrder",summaryDisplayMode:"summaryDisplayMode",summaryType:"summaryType",visible:"visible",width:"width",wordWrapEnabled:"wordWrapEnabled"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),w_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),l_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),u_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),PR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),d_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),c_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),h_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),p_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})();const _bt=["*"];let VT=(()=>{class t extends ro{constructor(e,i,r,o,a,s){super(),this.renderer=r,this.document=o,this.element=s,e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this)),a.setHost(this)}get cssClass(){return this._getOption("cssClass")}set cssClass(e){this._setOption("cssClass",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get html(){return this._getOption("html")}set html(e){this._setOption("html",e)}get locateInMenu(){return this._getOption("locateInMenu")}set locateInMenu(e){this._setOption("locateInMenu",e)}get location(){return this._getOption("location")}set location(e){this._setOption("location",e)}get menuItemTemplate(){return this._getOption("menuItemTemplate")}set menuItemTemplate(e){this._setOption("menuItemTemplate",e)}get options(){return this._getOption("options")}set options(e){this._setOption("options",e)}get showText(){return this._getOption("showText")}set showText(e){this._setOption("showText",e)}get template(){return this._getOption("template")}set template(e){this._setOption("template",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get toolbar(){return this._getOption("toolbar")}set toolbar(e){this._setOption("toolbar",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get widget(){return this._getOption("widget")}set widget(e){this._setOption("widget",e)}get _optionPath(){return"toolbarItems"}setTemplate(e){this.template=e}ngAfterViewInit(){DT(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1),$(bu),$(Ko),$(Zt,1),$(jn))},t.\u0275cmp=je({type:t,selectors:[["dxi-toolbar-item"]],inputs:{cssClass:"cssClass",disabled:"disabled",html:"html",locateInMenu:"locateInMenu",location:"location",menuItemTemplate:"menuItemTemplate",options:"options",showText:"showText",template:"template",text:"text",toolbar:"toolbar",visible:"visible",widget:"widget"},features:[ot([ue,Zt]),qe],ngContentSelectors:_bt,decls:1,vars:0,template:function(e,i){1&e&&(nl(),As(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),t})(),Ga=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Pu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),g_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),vbt=(()=>{class t extends Xt{constructor(e,i){super(),this._createEventEmitters([{emit:"changesChange"},{emit:"editColumnNameChange"},{emit:"editRowKeyChange"}]),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get allowAdding(){return this._getOption("allowAdding")}set allowAdding(e){this._setOption("allowAdding",e)}get allowDeleting(){return this._getOption("allowDeleting")}set allowDeleting(e){this._setOption("allowDeleting",e)}get allowUpdating(){return this._getOption("allowUpdating")}set allowUpdating(e){this._setOption("allowUpdating",e)}get changes(){return this._getOption("changes")}set changes(e){this._setOption("changes",e)}get confirmDelete(){return this._getOption("confirmDelete")}set confirmDelete(e){this._setOption("confirmDelete",e)}get editColumnName(){return this._getOption("editColumnName")}set editColumnName(e){this._setOption("editColumnName",e)}get editRowKey(){return this._getOption("editRowKey")}set editRowKey(e){this._setOption("editRowKey",e)}get form(){return this._getOption("form")}set form(e){this._setOption("form",e)}get mode(){return this._getOption("mode")}set mode(e){this._setOption("mode",e)}get newRowPosition(){return this._getOption("newRowPosition")}set newRowPosition(e){this._setOption("newRowPosition",e)}get popup(){return this._getOption("popup")}set popup(e){this._setOption("popup",e)}get refreshMode(){return this._getOption("refreshMode")}set refreshMode(e){this._setOption("refreshMode",e)}get selectTextOnEditStart(){return this._getOption("selectTextOnEditStart")}set selectTextOnEditStart(e){this._setOption("selectTextOnEditStart",e)}get startEditAction(){return this._getOption("startEditAction")}set startEditAction(e){this._setOption("startEditAction",e)}get texts(){return this._getOption("texts")}set texts(e){this._setOption("texts",e)}get useIcons(){return this._getOption("useIcons")}set useIcons(e){this._setOption("useIcons",e)}get allowAddShape(){return this._getOption("allowAddShape")}set allowAddShape(e){this._setOption("allowAddShape",e)}get allowChangeConnection(){return this._getOption("allowChangeConnection")}set allowChangeConnection(e){this._setOption("allowChangeConnection",e)}get allowChangeConnectorPoints(){return this._getOption("allowChangeConnectorPoints")}set allowChangeConnectorPoints(e){this._setOption("allowChangeConnectorPoints",e)}get allowChangeConnectorText(){return this._getOption("allowChangeConnectorText")}set allowChangeConnectorText(e){this._setOption("allowChangeConnectorText",e)}get allowChangeShapeText(){return this._getOption("allowChangeShapeText")}set allowChangeShapeText(e){this._setOption("allowChangeShapeText",e)}get allowDeleteConnector(){return this._getOption("allowDeleteConnector")}set allowDeleteConnector(e){this._setOption("allowDeleteConnector",e)}get allowDeleteShape(){return this._getOption("allowDeleteShape")}set allowDeleteShape(e){this._setOption("allowDeleteShape",e)}get allowMoveShape(){return this._getOption("allowMoveShape")}set allowMoveShape(e){this._setOption("allowMoveShape",e)}get allowResizeShape(){return this._getOption("allowResizeShape")}set allowResizeShape(e){this._setOption("allowResizeShape",e)}get allowDependencyAdding(){return this._getOption("allowDependencyAdding")}set allowDependencyAdding(e){this._setOption("allowDependencyAdding",e)}get allowDependencyDeleting(){return this._getOption("allowDependencyDeleting")}set allowDependencyDeleting(e){this._setOption("allowDependencyDeleting",e)}get allowResourceAdding(){return this._getOption("allowResourceAdding")}set allowResourceAdding(e){this._setOption("allowResourceAdding",e)}get allowResourceDeleting(){return this._getOption("allowResourceDeleting")}set allowResourceDeleting(e){this._setOption("allowResourceDeleting",e)}get allowResourceUpdating(){return this._getOption("allowResourceUpdating")}set allowResourceUpdating(e){this._setOption("allowResourceUpdating",e)}get allowTaskAdding(){return this._getOption("allowTaskAdding")}set allowTaskAdding(e){this._setOption("allowTaskAdding",e)}get allowTaskDeleting(){return this._getOption("allowTaskDeleting")}set allowTaskDeleting(e){this._setOption("allowTaskDeleting",e)}get allowTaskResourceUpdating(){return this._getOption("allowTaskResourceUpdating")}set allowTaskResourceUpdating(e){this._setOption("allowTaskResourceUpdating",e)}get allowTaskUpdating(){return this._getOption("allowTaskUpdating")}set allowTaskUpdating(e){this._setOption("allowTaskUpdating",e)}get enabled(){return this._getOption("enabled")}set enabled(e){this._setOption("enabled",e)}get allowDragging(){return this._getOption("allowDragging")}set allowDragging(e){this._setOption("allowDragging",e)}get allowResizing(){return this._getOption("allowResizing")}set allowResizing(e){this._setOption("allowResizing",e)}get allowTimeZoneEditing(){return this._getOption("allowTimeZoneEditing")}set allowTimeZoneEditing(e){this._setOption("allowTimeZoneEditing",e)}get _optionPath(){return"editing"}get changesChildren(){return this._getOption("changes")}set changesChildren(e){this.setChildren("changes",e)}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxo-editing"]],contentQueries:function(e,i,r){if(1&e&&In(r,obt,4),2&e){let o;yn(o=Cn())&&(i.changesChildren=o)}},inputs:{allowAdding:"allowAdding",allowDeleting:"allowDeleting",allowUpdating:"allowUpdating",changes:"changes",confirmDelete:"confirmDelete",editColumnName:"editColumnName",editRowKey:"editRowKey",form:"form",mode:"mode",newRowPosition:"newRowPosition",popup:"popup",refreshMode:"refreshMode",selectTextOnEditStart:"selectTextOnEditStart",startEditAction:"startEditAction",texts:"texts",useIcons:"useIcons",allowAddShape:"allowAddShape",allowChangeConnection:"allowChangeConnection",allowChangeConnectorPoints:"allowChangeConnectorPoints",allowChangeConnectorText:"allowChangeConnectorText",allowChangeShapeText:"allowChangeShapeText",allowDeleteConnector:"allowDeleteConnector",allowDeleteShape:"allowDeleteShape",allowMoveShape:"allowMoveShape",allowResizeShape:"allowResizeShape",allowDependencyAdding:"allowDependencyAdding",allowDependencyDeleting:"allowDependencyDeleting",allowResourceAdding:"allowResourceAdding",allowResourceDeleting:"allowResourceDeleting",allowResourceUpdating:"allowResourceUpdating",allowTaskAdding:"allowTaskAdding",allowTaskDeleting:"allowTaskDeleting",allowTaskResourceUpdating:"allowTaskResourceUpdating",allowTaskUpdating:"allowTaskUpdating",enabled:"enabled",allowDragging:"allowDragging",allowResizing:"allowResizing",allowTimeZoneEditing:"allowTimeZoneEditing"},outputs:{changesChange:"changesChange",editColumnNameChange:"editColumnNameChange",editRowKeyChange:"editRowKeyChange"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),Ag=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),aa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),f_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),m_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),__e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),v_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),RR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),LR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),jw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),BR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Kw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Oa=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),NR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),VR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),$r=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),go=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),HR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),zR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),UR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),WR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),GR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),$w=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),C_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),jR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),b_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),qw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),x_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),w_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),S_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Eh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Fg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),KR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Yw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Do=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),D_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),E_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Jd=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),O_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Pg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),T_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),I_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),k_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),M_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),A_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),$R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Mbt=(()=>{class t extends Xt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get connectorColor(){return this._getOption("connectorColor")}set connectorColor(e){this._setOption("connectorColor",e)}get connectorWidth(){return this._getOption("connectorWidth")}set connectorWidth(e){this._setOption("connectorWidth",e)}get customizeText(){return this._getOption("customizeText")}set customizeText(e){this._setOption("customizeText",e)}get font(){return this._getOption("font")}set font(e){this._setOption("font",e)}get format(){return this._getOption("format")}set format(e){this._setOption("format",e)}get indent(){return this._getOption("indent")}set indent(e){this._setOption("indent",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(e){this._setOption("horizontalAlignment",e)}get position(){return this._getOption("position")}set position(e){this._setOption("position",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(e){this._setOption("verticalAlignment",e)}get alignment(){return this._getOption("alignment")}set alignment(e){this._setOption("alignment",e)}get customizeHint(){return this._getOption("customizeHint")}set customizeHint(e){this._setOption("customizeHint",e)}get displayMode(){return this._getOption("displayMode")}set displayMode(e){this._setOption("displayMode",e)}get indentFromAxis(){return this._getOption("indentFromAxis")}set indentFromAxis(e){this._setOption("indentFromAxis",e)}get overlappingBehavior(){return this._getOption("overlappingBehavior")}set overlappingBehavior(e){this._setOption("overlappingBehavior",e)}get rotationAngle(){return this._getOption("rotationAngle")}set rotationAngle(e){this._setOption("rotationAngle",e)}get staggeringSpacing(){return this._getOption("staggeringSpacing")}set staggeringSpacing(e){this._setOption("staggeringSpacing",e)}get template(){return this._getOption("template")}set template(e){this._setOption("template",e)}get textOverflow(){return this._getOption("textOverflow")}set textOverflow(e){this._setOption("textOverflow",e)}get wordWrap(){return this._getOption("wordWrap")}set wordWrap(e){this._setOption("wordWrap",e)}get argumentFormat(){return this._getOption("argumentFormat")}set argumentFormat(e){this._setOption("argumentFormat",e)}get backgroundColor(){return this._getOption("backgroundColor")}set backgroundColor(e){this._setOption("backgroundColor",e)}get border(){return this._getOption("border")}set border(e){this._setOption("border",e)}get connector(){return this._getOption("connector")}set connector(e){this._setOption("connector",e)}get displayFormat(){return this._getOption("displayFormat")}set displayFormat(e){this._setOption("displayFormat",e)}get horizontalOffset(){return this._getOption("horizontalOffset")}set horizontalOffset(e){this._setOption("horizontalOffset",e)}get showForZeroValues(){return this._getOption("showForZeroValues")}set showForZeroValues(e){this._setOption("showForZeroValues",e)}get verticalOffset(){return this._getOption("verticalOffset")}set verticalOffset(e){this._setOption("verticalOffset",e)}get hideFirstOrLast(){return this._getOption("hideFirstOrLast")}set hideFirstOrLast(e){this._setOption("hideFirstOrLast",e)}get indentFromTick(){return this._getOption("indentFromTick")}set indentFromTick(e){this._setOption("indentFromTick",e)}get useRangeColors(){return this._getOption("useRangeColors")}set useRangeColors(e){this._setOption("useRangeColors",e)}get location(){return this._getOption("location")}set location(e){this._setOption("location",e)}get showColon(){return this._getOption("showColon")}set showColon(e){this._setOption("showColon",e)}get radialOffset(){return this._getOption("radialOffset")}set radialOffset(e){this._setOption("radialOffset",e)}get topIndent(){return this._getOption("topIndent")}set topIndent(e){this._setOption("topIndent",e)}get shadow(){return this._getOption("shadow")}set shadow(e){this._setOption("shadow",e)}get useNodeColors(){return this._getOption("useNodeColors")}set useNodeColors(e){this._setOption("useNodeColors",e)}get dataField(){return this._getOption("dataField")}set dataField(e){this._setOption("dataField",e)}get enabled(){return this._getOption("enabled")}set enabled(e){this._setOption("enabled",e)}get _optionPath(){return"label"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxo-label"]],inputs:{connectorColor:"connectorColor",connectorWidth:"connectorWidth",customizeText:"customizeText",font:"font",format:"format",indent:"indent",visible:"visible",horizontalAlignment:"horizontalAlignment",position:"position",text:"text",verticalAlignment:"verticalAlignment",alignment:"alignment",customizeHint:"customizeHint",displayMode:"displayMode",indentFromAxis:"indentFromAxis",overlappingBehavior:"overlappingBehavior",rotationAngle:"rotationAngle",staggeringSpacing:"staggeringSpacing",template:"template",textOverflow:"textOverflow",wordWrap:"wordWrap",argumentFormat:"argumentFormat",backgroundColor:"backgroundColor",border:"border",connector:"connector",displayFormat:"displayFormat",horizontalOffset:"horizontalOffset",showForZeroValues:"showForZeroValues",verticalOffset:"verticalOffset",hideFirstOrLast:"hideFirstOrLast",indentFromTick:"indentFromTick",useRangeColors:"useRangeColors",location:"location",showColon:"showColon",radialOffset:"radialOffset",topIndent:"topIndent",shadow:"shadow",useNodeColors:"useNodeColors",dataField:"dataField",enabled:"enabled"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),Lo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),F_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),P_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Rg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Zw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),R_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Xw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),ms=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Jw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),L_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Ta=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),B_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),N_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),V_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),H_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Lbt=(()=>{class t extends Xt{get allowedTargets(){return this._getOption("allowedTargets")}set allowedTargets(e){this._setOption("allowedTargets",e)}get enabled(){return this._getOption("enabled")}set enabled(e){this._setOption("enabled",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Bbt=(()=>{class t extends Lbt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"mediaResizing"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxo-media-resizing"]],inputs:{allowedTargets:"allowedTargets",enabled:"enabled"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),z_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Nbt=(()=>{class t extends ro{get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get marker(){return this._getOption("marker")}set marker(e){this._setOption("marker",e)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(e){this._setOption("minSearchLength",e)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(e){this._setOption("searchExpr",e)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(e){this._setOption("searchTimeout",e)}get template(){return this._getOption("template")}set template(e){this._setOption("template",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Vbt=(()=>{class t extends Nbt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"mentions"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-mention"]],inputs:{dataSource:"dataSource",displayExpr:"displayExpr",itemTemplate:"itemTemplate",marker:"marker",minSearchLength:"minSearchLength",searchExpr:"searchExpr",searchTimeout:"searchTimeout",template:"template",valueExpr:"valueExpr"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),U_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Hbt=(()=>{class t extends ro{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get action(){return this._getOption("action")}set action(e){this._setOption("action",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get _optionPath(){return"menuItems"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-menu-item"]],inputs:{action:"action",text:"text"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),W_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),G_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),qR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),YR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Qw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Lg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),fo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),j_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),K_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),$_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),mo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),e1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Us=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),q_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),ZR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),XR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Y_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Z_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),t1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),JR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Wbt=(()=>{class t extends Xt{get at(){return this._getOption("at")}set at(e){this._setOption("at",e)}get boundary(){return this._getOption("boundary")}set boundary(e){this._setOption("boundary",e)}get boundaryOffset(){return this._getOption("boundaryOffset")}set boundaryOffset(e){this._setOption("boundaryOffset",e)}get collision(){return this._getOption("collision")}set collision(e){this._setOption("collision",e)}get my(){return this._getOption("my")}set my(e){this._setOption("my",e)}get of(){return this._getOption("of")}set of(e){this._setOption("of",e)}get offset(){return this._getOption("offset")}set offset(e){this._setOption("offset",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),wG=(()=>{class t extends Wbt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"position"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxo-position"]],inputs:{at:"at",boundary:"boundary",boundaryOffset:"boundaryOffset",collision:"collision",my:"my",of:"of",offset:"offset"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),_o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),X_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),J_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),QR=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),eL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),tL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),nL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),iL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),rL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Q_e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),eve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),tve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),nve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),oL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),ive=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),rve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),n1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),i1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),ove=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Ybt=(()=>{class t extends Xt{get columnRenderingMode(){return this._getOption("columnRenderingMode")}set columnRenderingMode(e){this._setOption("columnRenderingMode",e)}get mode(){return this._getOption("mode")}set mode(e){this._setOption("mode",e)}get preloadEnabled(){return this._getOption("preloadEnabled")}set preloadEnabled(e){this._setOption("preloadEnabled",e)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(e){this._setOption("renderAsync",e)}get rowRenderingMode(){return this._getOption("rowRenderingMode")}set rowRenderingMode(e){this._setOption("rowRenderingMode",e)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(e){this._setOption("scrollByContent",e)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(e){this._setOption("scrollByThumb",e)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(e){this._setOption("showScrollbar",e)}get useNative(){return this._getOption("useNative")}set useNative(e){this._setOption("useNative",e)}}return t.\u0275fac=function(){let n;return function(i){return(n||(n=Oi(t)))(i||t)}}(),t.\u0275cmp=je({type:t,selectors:[["ng-component"]],features:[qe],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),Zbt=(()=>{class t extends Ybt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"scrolling"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxo-scrolling"]],inputs:{columnRenderingMode:"columnRenderingMode",mode:"mode",preloadEnabled:"preloadEnabled",renderAsync:"renderAsync",rowRenderingMode:"rowRenderingMode",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",showScrollbar:"showScrollbar",useNative:"useNative"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),S_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),aL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),sL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Oh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Jbt=(()=>{class t extends Xt{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get allowSelectAll(){return this._getOption("allowSelectAll")}set allowSelectAll(e){this._setOption("allowSelectAll",e)}get deferred(){return this._getOption("deferred")}set deferred(e){this._setOption("deferred",e)}get mode(){return this._getOption("mode")}set mode(e){this._setOption("mode",e)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(e){this._setOption("selectAllMode",e)}get showCheckBoxesMode(){return this._getOption("showCheckBoxesMode")}set showCheckBoxesMode(e){this._setOption("showCheckBoxesMode",e)}get recursive(){return this._getOption("recursive")}set recursive(e){this._setOption("recursive",e)}get _optionPath(){return"selection"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxo-selection"]],inputs:{allowSelectAll:"allowSelectAll",deferred:"deferred",mode:"mode",selectAllMode:"selectAllMode",showCheckBoxesMode:"showCheckBoxesMode",recursive:"recursive"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),lL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),D_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),ja=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),E_=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),ave=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),uL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Eo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),sve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Ia=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),lve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),uve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),dve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Qbt=(()=>{class t extends ro{constructor(e,i){super(),e.setNestedOption(this),i.setHost(this,this._fullOptionPath.bind(this))}get groupColumn(){return this._getOption("groupColumn")}set groupColumn(e){this._setOption("groupColumn",e)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(e){this._setOption("sortOrder",e)}get summaryItem(){return this._getOption("summaryItem")}set summaryItem(e){this._setOption("summaryItem",e)}get _optionPath(){return"sortByGroupSummaryInfo"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return t.\u0275fac=function(e){return new(e||t)($(ue,5),$(ue,1))},t.\u0275cmp=je({type:t,selectors:[["dxi-sort-by-group-summary-info"]],inputs:{groupColumn:"groupColumn",sortOrder:"sortOrder",summaryItem:"summaryItem"},features:[ot([ue]),qe],decls:0,vars:0,template:function(e,i){},styles:[""]}),t})(),cve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),r1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),hve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),dL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),cL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),hL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),o1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),pL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),gL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),fL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),a1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),mL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),_L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),vL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),pve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),gve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),yL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),_s=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),CL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),mve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),_ve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),s1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),vve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),yve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Cve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),bL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Bg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),l1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Ng=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),bve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),vs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),vo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Vg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),xve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),$o=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),wve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),xL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Sve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Dve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),wL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),u1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Eve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),SL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Ove=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Tve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Ive=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),kve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),d1=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Mve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Ave=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})(),Fve=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})();var Pc="dxdragstart",Qd="dxdrag",Rc="dxdragend",c1="dxdragenter",h1="dxdragleave",HT="dxdrop",DL="dxDragEventsCount",Im=[],p1=[],SG=[],DG={setup:function(t,n){Im.includes(t)||(Im.push(t),p1.push([]),SG.push(n||{}))},add:function(t,n){var e=Im.indexOf(t);this.updateEventsCounter(t,n.type,1);var i=n.selector;p1[e].includes(i)||p1[e].push(i)},updateEventsCounter:function(t,n,e){if([c1,h1,HT].indexOf(n)>-1){var i=zo(t,DL)||0;zo(t,DL,Math.max(0,i+e))}},remove:function(t,n){this.updateEventsCounter(t,n.type,-1)},teardown:function(t){if(!zo(t,DL)){var e=Im.indexOf(t);Im.splice(e,1),p1.splice(e,1),SG.splice(e,1),qP(t,DL)}}};cp(c1,DG),cp(h1,DG),cp(HT,DG);var mxt=yW.inherit({ctor:function(t){this.callBase(t),this.direction="both"},_init:function(t){this._initEvent=t},_start:function(t){if(t=this._fireEvent(Pc,this._initEvent),this._maxLeftOffset=t.maxLeftOffset,this._maxRightOffset=t.maxRightOffset,this._maxTopOffset=t.maxTopOffset,this._maxBottomOffset=t.maxBottomOffset,t.targetElements||null===t.targetElements){var n=mp(t.targetElements||[]);this._dropTargets=Dr(n,function(e){return U(e).get(0)})}else this._dropTargets=Im},_move:function(t){var n=Po(t),e=this._calculateOffset(n);t=this._fireEvent(Qd,t,{offset:e}),this._processDropTargets(t),t._cancelPreventDefault||t.preventDefault()},_calculateOffset:function(t){return{x:this._calculateXOffset(t),y:this._calculateYOffset(t)}},_calculateXOffset:function(t){return"vertical"!==this.direction?this._fitOffset(t.x-this._startEventData.x,this._maxLeftOffset,this._maxRightOffset):0},_calculateYOffset:function(t){return"horizontal"!==this.direction?this._fitOffset(t.y-this._startEventData.y,this._maxTopOffset,this._maxBottomOffset):0},_fitOffset:function(t,n,e){return null!=n&&(t=Math.max(t,-n)),null!=e&&(t=Math.min(t,e)),t},_processDropTargets:function(t){var n=this._findDropTarget(t);n===this._currentDropTarget||(this._fireDropTargetEvent(t,h1),this._currentDropTarget=n,this._fireDropTargetEvent(t,c1))},_fireDropTargetEvent:function(t,n){if(this._currentDropTarget){var e={type:n,originalEvent:t,draggingElement:this._$element.get(0),target:this._currentDropTarget};gp(e)}},_findDropTarget:function(t){var e,n=this;return we(Im,function(i,r){if(n._checkDropTargetActive(r)){var o=U(r);we(function(t){var n=Im.indexOf(t.get(0)),e=p1[n].filter(r=>r),i=t.find(e.join(", "));return p1[n].includes(void 0)&&(i=i.add(t)),i}(o),function(a,s){var l=U(s);n._checkDropTarget(function(t){var n=Im.indexOf(t.get(0));return SG[n]}(o),l,U(e),t)&&(e=s)})}}),e},_checkDropTargetActive:function(t){var n=!1;return we(this._dropTargets,function(e,i){return!(n=n||i===t||Cg(i,t))}),n},_checkDropTarget:function(t,n,e,i){if(n.get(0)===U(i.target).get(0))return!1;var o=function(t,n){return t.itemPositionFunc?t.itemPositionFunc(n):n.offset()}(t,n);if(i.pageX<o.left||i.pageY<o.top)return!1;var a=function(t,n){return t.itemSizeFunc?t.itemSizeFunc(n):{width:n.get(0).getBoundingClientRect().width,height:n.get(0).getBoundingClientRect().height}}(t,n);return!(i.pageX>o.left+a.width||i.pageY>o.top+a.height||e.length&&e.closest(n).length||t.checkDropTarget&&!t.checkDropTarget(n,i))&&n},_end:function(t){var n=Po(t);this._fireEvent(Rc,t,{offset:this._calculateOffset(n)}),this._fireDropTargetEvent(t,HT),delete this._currentDropTarget}});oC({emitter:mxt,events:[Pc,Qd,Rc]});var OL="dxResizable",TL="dx-resizable-handle",IL="dx-resizable-handle-corner",Dxt=kt(Pc,OL),Ext=kt(Qd,OL),Oxt=kt(Rc,OL),Txt={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},Pve=Ic.inherit({_getDefaultOptions:function(){return se(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0,keepAspectRatio:!0})},_init:function(){this.callBase(),this.$element().addClass("dx-resizable")},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){this._handles=[];var t=this.option("handles");if("none"!==t&&t){var n="all"===t?["top","bottom","left","right"]:t.split(" "),e={};we(n,(i,r)=>{e[r]=!0,this._renderHandle(r)}),e.bottom&&e.right&&this._renderHandle("corner-bottom-right"),e.bottom&&e.left&&this._renderHandle("corner-bottom-left"),e.top&&e.right&&this._renderHandle("corner-top-right"),e.top&&e.left&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(t){var n=U("<div>").addClass(TL).addClass(TL+"-"+t).appendTo(this.$element());this._handles.push(n)},_attachEventHandlers:function(){if(!this.option("disabled")){var t={};t[Dxt]=this._dragStartHandler.bind(this),t[Ext]=this._dragHandler.bind(this),t[Oxt]=this._dragEndHandler.bind(this),this._handles.forEach(n=>{Se.on(n,t,{direction:"both",immediate:!0})})}},_detachEventHandlers:function(){this._handles.forEach(t=>{Se.off(t)})},_toggleEventHandlers:function(t){t?this._attachEventHandlers():this._detachEventHandlers()},_getElementSize:function(){var t=this.$element();return"border-box"===t.css("boxSizing")?{width:ii(t),height:Zn(t)}:{width:wn(t),height:Ln(t)}},_dragStartHandler:function(t){var n=this.$element();n.is(".dx-state-disabled, .dx-state-disabled *")?t.cancel=!0:(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(t),this._elementLocation=Ra(n),this._elementSize=this._getElementSize(),this._renderDragOffsets(t),this._resizeStartAction({event:t,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),t.targetElements=null)},_toggleResizingClass:function(t){this.$element().toggleClass("dx-resizable-resizing",t)},_renderDragOffsets:function(t){var n=this._getArea();if(n){var e=U(t.target).closest("."+TL),i=ii(e),r=Zn(e),o=e.offset(),a=n.offset,s=this._getAreaScrollOffset();t.maxLeftOffset=this._leftMaxOffset=o.left-a.left-s.scrollX,t.maxRightOffset=this._rightMaxOffset=a.left+n.width-o.left-i+s.scrollX,t.maxTopOffset=this._topMaxOffset=o.top-a.top-s.scrollY,t.maxBottomOffset=this._bottomMaxOffset=a.top+n.height-o.top-r+s.scrollY}},_getBorderWidth:function(t,n){if(Da(t.get(0)))return 0;var e=t.css(Txt[n]);return parseInt(e)||0},_proportionate:function(t,n){var e=this._elementSize;return n*("x"===t?e.width/e.height:e.height/e.width)},_getProportionalDelta:function(t){var{x:n,y:e}=t,i=this._proportionate("y",n);if(i>=e)return{x:n,y:i};var r=this._proportionate("x",e);return r>=n?{x:r,y:e}:{x:0,y:0}},_getDirectionName:function(t){var n=this._movingSides;return"x"===t?n.left?"left":"right":n.top?"top":"bottom"},_fitIntoArea:function(t,n){var e,i=this._getDirectionName(t);return Math.min(n,null!==(e=this["_".concat(i,"MaxOffset")])&&void 0!==e?e:1/0)},_fitDeltaProportionally:function(t){var n=mt({},t),e=this._elementSize,{minWidth:i,minHeight:r,maxWidth:o,maxHeight:a}=this.option(),s=()=>e.width+n.x,l=()=>e.height+n.y,u=L=>n[L]===this._fitIntoArea(L,n[L]),f=()=>tm(s(),i,o)&&u("x"),S=()=>tm(l(),r,a)&&u("y");if(!f()){var T=this._fitIntoArea("x",al(s(),i,o)-e.width);n={x:T,y:this._proportionate("y",T)}}if(!S()){var R=this._fitIntoArea("y",al(l(),r,a)-e.height);n={x:this._proportionate("x",R),y:R}}return f()&&S()?n:{x:0,y:0}},_fitDelta:function(t){var{x:n,y:e}=t,i=this._elementSize,{minWidth:r,minHeight:o,maxWidth:a,maxHeight:s}=this.option();return{x:al(i.width+n,r,a)-i.width,y:al(i.height+e,o,s)-i.height}},_getDeltaByOffset:function(t){var n=this._movingSides,e=this._isCornerHandler(n)&&this.option("keepAspectRatio"),i={x:t.x*(n.left?-1:1),y:t.y*(n.top?-1:1)};if(e){var r=this._getProportionalDelta(i);i=this._fitDeltaProportionally(r)}else{var a=this._fitDelta(i);i=this._roundByStep(a)}return i},_updatePosition:function(t,n){var{width:e,height:i}=n,r=this._elementLocation,o=this._movingSides,a=this.$element(),s=this._getElementSize();kr(a,{top:r.top+(o.top?t.y*(o.top?-1:1)-((s.height||i)-i):0),left:r.left+(o.left?t.x*(o.left?-1:1)-((s.width||e)-e):0)})},_dragHandler:function(t){var n=this._getOffset(t),e=this._getDeltaByOffset(n),i=this._updateDimensions(e);this._updatePosition(e,i),this._triggerResizeAction(t,i)},_updateDimensions:function(t){var n=u=>"px"===u.substring(u.length-2),e="strict"===this.option("stepPrecision"),i=this._elementSize,r=i.width+t.x,o=i.height+t.y,a=this.$element().get(0).style,s=t.x||e||n(a.width),l=t.y||e||n(a.height);return s&&this.option({width:r}),l&&this.option({height:o}),{width:s?r:i.width,height:l?o:i.height}},_triggerResizeAction:function(t,n){var{width:e,height:i}=n;this._resizeAction({event:t,width:this.option("width")||e,height:this.option("height")||i,handles:this._movingSides}),qd(this.$element())},_isCornerHandler:t=>0===Object.values(t).reduce((n,e)=>n^e,0),_getOffset:function(t){var n=t.offset,e=this._movingSides;return!e.left&&!e.right&&(n.x=0),!e.top&&!e.bottom&&(n.y=0),n},_roundByStep:function(t){return"strict"===this.option("stepPrecision")?this._roundStrict(t):this._roundNotStrict(t)},_getSteps:function(){return Z7(this.option("step"),!this.option("roundStepValue"))},_roundNotStrict:function(t){var n=this._getSteps();return{x:t.x-t.x%n.h,y:t.y-t.y%n.v}},_roundStrict:function(t){var n=this._movingSides,e={x:t.x*(n.left?-1:1),y:t.y*(n.top?-1:1)},i=this._getSteps(),r=this._elementLocation,o=this._elementSize,l=((n.left?r.left:r.left+o.width)+e.x)%i.h,u=((n.top?r.top:r.top+o.height)+e.y)%i.v,f=Math.sign||(Y=>0==(Y=+Y)||isNaN(Y)?Y:Y>0?1:-1),S=(Y,ie)=>(1+.2*f(ie))%1*Y,T=(Y,ie)=>Math.abs(Y)<.2*ie,R=e.x-l,L=e.y-u;l>S(i.h,e.x)&&(R+=i.h),u>S(i.v,e.y)&&(L+=i.v);var z=!n.left&&!n.right||T(e.x,i.h)?0:R,j=!n.top&&!n.bottom||T(e.y,i.v)?0:L;return{x:z*(n.left?-1:1),y:j*(n.top?-1:1)}},_getMovingSides:function(t){var n=U(t.target),e=n.hasClass(IL+"-top-left"),i=n.hasClass(IL+"-top-right"),r=n.hasClass(IL+"-bottom-left"),o=n.hasClass(IL+"-bottom-right");return{top:n.hasClass("dx-resizable-handle-top")||e||i,left:n.hasClass("dx-resizable-handle-left")||e||r,bottom:n.hasClass("dx-resizable-handle-bottom")||r||o,right:n.hasClass("dx-resizable-handle-right")||i||o}},_getArea:function(){var t=this.option("area");return Yt(t)&&(t=t.call(this)),wi(t)?this._getAreaFromObject(t):this._getAreaFromElement(t)},_getAreaScrollOffset:function(){var t=this.option("area"),e={scrollY:0,scrollX:0};if(!Yt(t)&&!wi(t)){var i=U(t)[0];Da(i)&&(e.scrollX=i.pageXOffset,e.scrollY=i.pageYOffset)}return e},_getAreaFromObject:function(t){var n={width:t.right-t.left,height:t.bottom-t.top,offset:{left:t.left,top:t.top}};return this._correctAreaGeometry(n),n},_getAreaFromElement:function(t){var e,n=U(t);return n.length&&(e={width:e2(n),height:vw(n),offset:se({top:0,left:0},Da(n[0])?{}:n.offset())},this._correctAreaGeometry(e,n)),e},_correctAreaGeometry:function(t,n){var e=n?this._getBorderWidth(n,"left"):0,i=n?this._getBorderWidth(n,"top"):0;t.offset.left+=e+this._getBorderWidth(this.$element(),"left"),t.offset.top+=i+this._getBorderWidth(this.$element(),"top"),t.width-=ii(this.$element())-e2(this.$element()),t.height-=Zn(this.$element())-vw(this.$element())},_dragEndHandler:function(t){var n=this.$element();this._resizeEndAction({event:t,width:ii(n),height:Zn(n),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(t){this.option("width",al(t,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(t){this.option("height",al(t,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(t){switch(t.name){case"disabled":this._toggleEventHandlers(!t.value),this.callBase(t);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":Rn()&&this._renderWidth(ii(this.$element()));break;case"minHeight":case"maxHeight":Rn()&&this._renderHeight(Zn(this.$element()));break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":case"keepAspectRatio":break;default:this.callBase(t)}},_clean:function(){this.$element().find("."+TL).remove()},_useTemplates:function(){return!1}});On(OL,Pve);const kL=Pve;var Rve=function(){var t=[];return{add:function(n){t.includes(n)||t.push(n)},remove:function(n){var e=t.indexOf(n);-1!==e&&t.splice(e,1)},fire:function(){var n=t.pop(),e=!!n;return e&&n(),e},hasCallback:function(){return t.length>0}}}(),ML=1500,km=[],AL=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ML,n=km.length,e=(n?km[n-1]:t)+1;return km.push(e),e},zT=t=>{var n=km.indexOf(t);n>=0&&km.splice(n,1)},EG="dx-swatch-";const UT={getSwatchContainer:t=>{var e=U(t).closest('[class^="'.concat(EG,'"], [class*=" ').concat(EG,'"]')),i=bh();if(!e.length)return i;var r=new RegExp("(\\s|^)(".concat(EG,".*?)(\\s|$)")),o=e[0].className.match(r)[2],a=i.children("."+o);return a.length||(a=U("<div>").addClass(o).appendTo(i)),a}};var Axt=Fn(),Lve={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},Bve={h:0,v:0};class OG{constructor(n){var{position:e,container:i,visualContainer:r,$root:o,$content:a,$wrapper:s,onPositioned:l,onVisualPositionChanged:u,restorePosition:f,_fixWrapperPosition:S}=n;this._props={position:e,container:i,visualContainer:r,restorePosition:f,onPositioned:l,onVisualPositionChanged:u,_fixWrapperPosition:S},this._$root=o,this._$content=a,this._$wrapper=s,this._$markupContainer=void 0,this._$visualContainer=void 0,this._shouldRenderContentInitialPosition=!0,this._visualPosition=void 0,this._initialPosition=void 0,this._previousVisualPosition=void 0,this.updateContainer(i),this.updatePosition(e),this.updateVisualContainer(r)}get $container(){return this.updateContainer(),this._$markupContainer}get $visualContainer(){return this._$visualContainer}get position(){return this._position}set fixWrapperPosition(n){this._props._fixWrapperPosition=n,this.styleWrapperPosition()}set restorePosition(n){this._props.restorePosition=n}restorePositionOnNextRender(n){this._shouldRenderContentInitialPosition=n||!this._visualPosition}openingHandled(){this.restorePositionOnNextRender(this._props.restorePosition)}updatePosition(n){this._props.position=n,this._position=this._normalizePosition(n),this.updateVisualContainer()}updateContainer(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.container;this._props.container=n,this._$markupContainer=n?U(n):UT.getSwatchContainer(this._$root),this.updateVisualContainer(this._props.visualContainer)}updateVisualContainer(){this._props.visualContainer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.visualContainer,this._$visualContainer=this._getVisualContainer()}detectVisualPositionChange(n){this._updateVisualPositionValue(),this._raisePositionedEvents(n)}positionContent(){this._shouldRenderContentInitialPosition?this._renderContentInitialPosition():(kr(this._$content,this._visualPosition),this.detectVisualPositionChange())}positionWrapper(){this._$visualContainer&&rs.setup(this._$wrapper,{my:"top left",at:"top left",of:this._$visualContainer})}styleWrapperPosition(){var n=Da(this.$visualContainer.get(0))||this._props._fixWrapperPosition;this._$wrapper.css("position",n?"fixed":"absolute")}_updateVisualPositionValue(){this._previousVisualPosition=this._visualPosition,this._visualPosition=Ra(this._$content)}_renderContentInitialPosition(){this._renderBoundaryOffset(),lC(this._$content);var n=this._$wrapper.css("overflow");this._$wrapper.css("overflow","hidden");var e=rs.setup(this._$content,this._position);this._$wrapper.css("overflow",n),this._initialPosition=e,this.detectVisualPositionChange()}_raisePositionedEvents(n){var e=this._previousVisualPosition,i=this._visualPosition;(e?.top!==i.top||e?.left!==i.left)&&this._props.onVisualPositionChanged({previousPosition:e,position:i,event:n}),this._props.onPositioned({position:this._initialPosition})}_renderBoundaryOffset(){var n,e=null!==(n=this._position)&&void 0!==n?n:{boundaryOffset:Bve};this._$content.css("margin","".concat(e.v,"px ").concat(e.h,"px"))}_getVisualContainer(){var n,e,i=this._props.container,r=this._props.visualContainer,o=function(t){return!(!t||!t.preventDefault)}(null===(n=this._props.position)||void 0===n?void 0:n.of)?this._props.position.of.target:null===(e=this._props.position)||void 0===e?void 0:e.of;return U(r||i||o||Axt)}_normalizePosition(n){var e={boundaryOffset:Bve};return Z(n)?se(!0,{},e,this._positionToObject(n)):e}_positionToObject(n){return Pn(n)?se({},Lve[n]):n}}var Fxt=gd.add,uC=Fn(),Nve=O2,Vve="dx-inner-overlay",TG="dx-state-invisible",IG=[],kG="dx-prevent-safari-scrolling";Fxt(()=>{Se.subscribeGlobal(It.getDocument(),qn.down,t=>{for(var n=IG.length-1;n>=0;n--)if(!IG[n]._proxiedDocumentDownHandler(t))return})});var FL=tr.inherit({_supportedKeys:function(){return se(this.callBase(),{escape:function(){this.hide()}})},_getDefaultOptions:function(){return se(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",wrapperAttr:{},position:se({},Lve.center),width:"80vw",minWidth:null,maxWidth:null,height:"80vh",minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,from:{opacity:1,scale:1},to:{opacity:0,scale:.55}}},closeOnOutsideClick:!1,hideOnOutsideClick:!1,copyRootClassesToWrapper:!1,_ignoreCopyRootClassesToWrapperDeprecation:!1,_ignoreElementAttrDeprecation:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",innerOverlay:!1,restorePosition:!0,container:void 0,visualContainer:void 0,hideTopOverlayHandler:()=>{this.hide()},hideOnParentScroll:!1,onPositioned:null,propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0,_fixWrapperPosition:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!Rn()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),se(this._optionsByReference,{animation:!0})},$wrapper:function(){return this._$wrapper},_eventBindingTarget:function(){return this._$content},_setDeprecatedOptions(){this.callBase(),se(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.1",alias:"hideOnOutsideClick"}})},ctor:function(t,n){this.callBase(t,n),n&&(n.copyRootClassesToWrapper&&!n._ignoreCopyRootClassesToWrapperDeprecation&&this._logDeprecatedOptionWarning("copyRootClassesToWrapper",{since:"21.2",message:'Use the "wrapperAttr" option instead'}),n.elementAttr&&!n._ignoreElementAttrDeprecation&&this._logDeprecatedOptionWarning("elementAttr",{since:"21.2",message:'Use the "wrapperAttr" option instead'}))},_init:function(){this.callBase(),this._initActions(),this._initHideOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._customWrapperClass=null,this._$wrapper=U("<div>").addClass("dx-overlay-wrapper"),this._$content=U("<div>").addClass("dx-overlay-content"),this._initInnerOverlayClass();var t=this.$element();this.option("copyRootClassesToWrapper")&&this._$wrapper.addClass(t.attr("class")),t.addClass("dx-overlay"),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler")),this._parentsScrollSubscriptionInfo={handler:n=>{this._hideOnParentsScrollHandler(n)}},this.warnPositionAsFunction()},warnPositionAsFunction(){Yt(this.option("position"))&&Wr.log("W0018")},_initInnerOverlayClass:function(){this._$content.toggleClass(Vve,this.option("innerOverlay"))},_initHideTopOverlayHandler:function(t){this._hideTopOverlayHandler=t},_getActionsList:function(){return["onShowing","onShown","onHiding","onHidden","onPositioned","onVisualPositionChanged"]},_initActions:function(){this._actions={};var t=this._getActionsList();we(t,(n,e)=>{this._actions[e]=this._createActionByOption(e,{excludeValidators:["disabled","readOnly"]})||Be})},_initHideOnOutsideClickHandler:function(){var t=this;this._proxiedDocumentDownHandler=function(){return t._documentDownHandler(...arguments)}},_initMarkup(){this.callBase(),this._renderWrapperAttributes(),this._initPositionController()},_documentDownHandler:function(t){this._showAnimationProcessing&&this._stopAnimation();var n=U(uC.document).is(t.target)||Cg(uC.document,t.target)||Cg(uC.document,t.target.getRootNode().host),e=U(t.target).closest(".".concat(Vve)).length;return n&&!e&&!(this._$content.is(t.target)||Cg(this._$content.get(0),t.target))&&this._shouldHideOnOutsideClick(t)&&this._outsideClickHandler(t),this.option("propagateOutsideClick")},_shouldHideOnOutsideClick:function(t){var{hideOnOutsideClick:n}=this.option();return Yt(n)?n(t):n},_outsideClickHandler(t){this.option("shading")&&t.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new xh}),this.callBase()},_isTopOverlay:function(){for(var t=this._overlayStack(),n=t.length-1;n>=0;n--){var e=t[n]._findTabbableBounds();if(e.first||e.last)return t[n]===this}return!1},_overlayStack:function(){return IG},_zIndexInitValue:function(){return FL.baseZIndex()},_toggleViewPortSubscription:function(t){var n=this;Nve.remove(this._viewPortChangeHandle),t&&(this._viewPortChangeHandle=function(){n._viewPortChangeHandler(...arguments)},Nve.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._positionController.updateContainer(this.option("container")),this._refresh()},_renderWrapperAttributes(){var{wrapperAttr:t}=this.option(),n=se({},t),e=n.class;delete n.class,this.$wrapper().attr(n).removeClass(this._customWrapperClass).addClass(e),this._customWrapperClass=e},_renderVisibilityAnimate:function(t){return this._stopAnimation(),t?this._show():this._hide()},_getAnimationConfig:function(){return this._getOptionValue("animation",this)},_animateShowing:function(){var t,n,e,i=this,r=null!==(t=this._getAnimationConfig())&&void 0!==t?t:{},o=this._normalizeAnimation(r.show,"to"),a=null!==(n=o?.start)&&void 0!==n?n:Be,s=null!==(e=o?.complete)&&void 0!==e?e:Be;this._animate(o,function(){if(!i._isAnimationPaused){i.option("focusStateEnabled")&&Se.trigger(i._focusTarget(),"focus");for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];s.call(i,...u),i._showAnimationProcessing=!1,i._isHidden=!1,i._actions.onShown(),i._toggleSafariScrolling(),i._showingDeferred.resolve()}},function(){if(!i._isAnimationPaused){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];a.call(i,...u),i._showAnimationProcessing=!0}})},_processShowingHidingCancel:function(t,n,e){dh(t)?t.then(i=>{i?e():n()}).catch(()=>n()):t?e():n()},_show:function(){if(this._showingDeferred=new et,this._parentHidden=this._isParentHidden(),this._showingDeferred.done(()=>{delete this._parentHidden}),this._parentHidden)return this._isHidden=!0,this._showingDeferred.resolve();if(this._currentVisible)return(new et).resolve().promise();if(this._currentVisible=!0,this._isHidingActionCanceled)delete this._isHidingActionCanceled,this._showingDeferred.reject();else{var t=()=>{this._stopAnimation(),this._toggleVisibility(!0),this._$content.css("visibility","hidden"),this._$content.toggleClass(TG,!1),this._updateZIndexStackPosition(!0),this._positionController.openingHandled(),this._renderContent();var n={cancel:!1};this._actions.onShowing(n),this._processShowingHidingCancel(n.cancel,()=>{this._$content.css("visibility",""),this._renderVisibility(!0),this._animateShowing()},()=>{this._toggleVisibility(!1),this._$content.css("visibility",""),this._$content.toggleClass(TG,!0),this._isShowingActionCanceled=!0,this._moveFromContainer(),this.option("visible",!1),this._showingDeferred.resolve()})};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(t)):t()}return this._showingDeferred.promise()},_normalizeAnimation:function(t,n){return t&&(t=se({type:"slide",skipElementInitialStyles:!0},t),Jn(t[n])&&se(t[n],{position:this._positionController.position})),t},_animateHiding:function(){var t,n,e,i=this,r=null!==(t=this._getAnimationConfig())&&void 0!==t?t:{},o=this._normalizeAnimation(r.hide,"from"),a=null!==(n=o?.start)&&void 0!==n?n:Be,s=null!==(e=o?.complete)&&void 0!==e?e:Be;this._animate(o,function(){var l;i._$content.css("pointerEvents",""),i._renderVisibility(!1);for(var u=arguments.length,f=new Array(u),S=0;S<u;S++)f[S]=arguments[S];s.call(i,...f),i._hideAnimationProcessing=!1,null===(l=i._actions)||void 0===l||l.onHidden(),i._hidingDeferred.resolve()},function(){i._$content.css("pointerEvents","none");for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];a.call(i,...u),i._hideAnimationProcessing=!0})},_hide:function(){if(!this._currentVisible)return(new et).resolve().promise();this._currentVisible=!1,this._hidingDeferred=new et;var t={cancel:!1};return this._isShowingActionCanceled?(delete this._isShowingActionCanceled,this._hidingDeferred.reject()):(this._actions.onHiding(t),this._toggleSafariScrolling(),this._processShowingHidingCancel(t.cancel,()=>{this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animateHiding()},()=>{this._isHidingActionCanceled=!0,this.option("visible",!0),this._hidingDeferred.resolve()})),this._hidingDeferred.promise()},_forceFocusLost:function(){var t=It.getActiveElement();this._$content.find(t).length&&Mw()},_animate:function(t,n,e){t?Hi.animate(this._$content,se({},t,{start:e=e||t.start||Be,complete:n})):n()},_stopAnimation:function(){Hi.stop(this._$content,!0)},_renderVisibility:function(t){t&&this._isParentHidden()||(this._currentVisible=t,this._stopAnimation(),t||U0t(this._$content),t?(this._checkContainerExists(),this._moveToContainer(),this._renderGeometry(),M2(this._$content),qd(this._$content)):(this._toggleVisibility(t),this._$content.toggleClass(TG,!t),this._updateZIndexStackPosition(t),this._moveFromContainer()),this._toggleShading(t),this._toggleSubscriptions(t))},_updateZIndexStackPosition:function(t){var n=this._overlayStack(),e=n.indexOf(this);t?(-1===e&&(this._zIndex=AL(this._zIndexInitValue()),n.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==e&&(n.splice(e,1),zT(this._zIndex))},_toggleShading:function(t){this._$wrapper.toggleClass("dx-overlay-shader",t&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(t&&this.option("shading"))},_initTabTerminatorHandler:function(){var t=this;this._proxiedTabTerminatorHandler=function(){t._tabKeyHandler(...arguments)}},_toggleTabTerminator:function(t){var n=kt("keydown",this.NAME);t?Se.on(It.getDocument(),n,this._proxiedTabTerminatorHandler):Se.off(It.getDocument(),n,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var t=this._$wrapper.find("*"),n=t.length-1,e={first:null,last:null},i=0;i<=n&&(!e.first&&t.eq(i).is(MU)&&(e.first=t.eq(i)),!e.last&&t.eq(n-i).is(MU)&&(e.last=t.eq(n-i)),!e.first||!e.last);i++);return e},_tabKeyHandler:function(t){if("tab"===Wo(t)&&this._isTopOverlay()){var n=this._findTabbableBounds(),e=n.first,i=n.last,r=!t.shiftKey&&t.target===i.get(0),o=t.shiftKey&&t.target===e.get(0),a=0===n.length,s=!Cg(this._$wrapper.get(0),t.target);if(r||o||a||s){t.preventDefault();var l=t.shiftKey?i:e;Se.trigger(l,"focusin"),Se.trigger(l,"focus")}}},_toggleSubscriptions:function(t){Rn()&&(this._toggleHideTopOverlayCallback(t),this._toggleHideOnParentsScrollSubscription(t))},_toggleHideTopOverlayCallback:function(t){this._hideTopOverlayHandler&&(t?Rve.add(this._hideTopOverlayHandler):Rve.remove(this._hideTopOverlayHandler))},_toggleHideOnParentsScrollSubscription:function(t){var n,e=kt("scroll",this.NAME),{prevTargets:i,handler:r}=null!==(n=this._parentsScrollSubscriptionInfo)&&void 0!==n?n:{};Se.off(i,e,r);var o=this.option("hideOnParentScroll");if(t&&o){var a=this._hideOnParentScrollTarget().parents();"desktop"===pn.real().deviceType&&(a=a.add(uC)),Se.on(a,e,r),this._parentsScrollSubscriptionInfo.prevTargets=a}},_hideOnParentsScrollHandler:function(t){var n=!1,e=this.option("hideOnParentScroll");Yt(e)&&(n=e(t)),!n&&!this._showAnimationProcessing&&this.hide()},_hideOnParentScrollTarget:function(){return this._$wrapper},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var t=!this._currentVisible&&this.option("deferRendering");this.option("visible")&&this._isParentHidden()?this._isHidden=!0:this._contentAlreadyRendered||t||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase())},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var t=this.$element().parent();if(t.is(":visible"))return!1;var n=!1;return t.add(t.parents()).each(function(){if("none"===U(this).css("display"))return n=!0,!1}),n||!It.getBody().contains(t.get(0))},_renderContentImpl:function(){var t=new et,n=this.option("contentTemplate"),e=this._getTemplate(n),i=this._templateManager.anonymousTemplateName===n;return e&&e.render({container:kn(this.$content()),noModel:!0,transclude:i,onRendered:()=>{t.resolve(),this.option("templatesRenderAsynchronously")&&this._dimensionChanged()}}),this._renderScrollTerminator(),t.done(()=>{this.option("visible")&&this._moveToContainer()}),t.promise()},_getPositionControllerConfig(){var{container:t,visualContainer:n,_fixWrapperPosition:e,restorePosition:i}=this.option();return{container:t,visualContainer:n,$root:this.$element(),$content:this._$content,$wrapper:this._$wrapper,onPositioned:this._actions.onPositioned,onVisualPositionChanged:this._actions.onVisualPositionChanged,restorePosition:i,_fixWrapperPosition:e}},_initPositionController(){this._positionController=new OG(this._getPositionControllerConfig())},_renderScrollTerminator:function(){var t=this._$wrapper,n=kt(Qd,this.NAME);Se.off(t,n),Se.on(t,n,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(e){e||this._toggleGestureCoverImpl(e)},_clearSelection:Be,isNative:!0},e=>{var i=e.originalEvent.originalEvent,{type:r}=i||{},o="wheel"===r,a="mousemove"===r,s=o&&!Xo(e);e._cancelPreventDefault=!0,i&&!1!==e.cancelable&&(!a&&!o||s)&&e.preventDefault()})},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._$wrapper.detach()},_checkContainerExists(){this._positionController.$container.length>0||Di.log("W1021",this.NAME)},_moveToContainer:function(){this._$wrapper.appendTo(this._positionController.$container),this._$content.appendTo(this._$wrapper)},_renderGeometry:function(t){var{visible:n}=this.option();n&&Rn()&&(this._stopAnimation(),this._renderGeometryImpl())},_renderGeometryImpl:function(){this._positionController.updatePosition(this._getOptionValue("position")),this._renderWrapper(),this._renderDimensions(),this._renderPosition()},_renderPosition(){this._positionController.positionContent()},_isAllWindowCovered:function(){return Da(this._positionController.$visualContainer.get(0))&&this.option("shading")},_toggleSafariScrolling:function(){var t=this.option("visible"),n=U(It.getBody()),e="ios"===pn.real().platform&&Ro.safari,i=this._isAllWindowCovered(),r=n.hasClass(kG);e&&(!r||t&&i&&!this._disposed?!r&&t&&i&&(this._cachedBodyScrollTop=uC.pageYOffset,n.addClass(kG)):(n.removeClass(kG),uC.scrollTo(0,this._cachedBodyScrollTop),this._cachedBodyScrollTop=void 0))},_renderWrapper:function(){this._positionController.styleWrapperPosition(),this._renderWrapperDimensions(),this._positionController.positionWrapper()},_renderWrapperDimensions:function(){var t=this._positionController.$visualContainer,n=It.getDocumentElement(),e=Da(t.get(0)),i=e?n.clientWidth:ii(t),r=e?uC.innerHeight:Zn(t);this._$wrapper.css({width:i,height:r})},_renderDimensions:function(){var t=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",t),maxWidth:this._getOptionValue("maxWidth",t),minHeight:this._getOptionValue("minHeight",t),maxHeight:this._getOptionValue("maxHeight",t),width:this._getOptionValue("width",t),height:this._getOptionValue("height",t)})},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardListenerId=Cm_on(this._$content,null,t=>this._keyboardHandler(t))},_keyboardHandler:function(t){var n=t.originalEvent,e=U(n.target);(e.is(this._$content)||!this.option("ignoreChildEvents"))&&this.callBase(...arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(t){t?this.option("visible")&&this._renderVisibilityAnimate(t):this._renderVisibilityAnimate(t)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){var t=this.option();!this._contentAlreadyRendered&&!t.isRenovated&&this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){Hi.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this._parentsScrollSubscriptionInfo=null,this.callBase(),this._toggleSafariScrolling(),this.option("visible")&&zT(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleRTLDirection:function(t){this._$content.toggleClass("dx-rtl",t)},_optionChanged:function(t){var n=t.value;if(this._getActionsList().includes(t.name))this._initActions();else switch(t.name){case"animation":case"closeOnOutsideClick":case"hideOnOutsideClick":case"propagateOutsideClick":break;case"shading":this._toggleShading(this.option("visible")),this._toggleSafariScrolling();break;case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":this._renderGeometry();break;case"position":this._positionController.updatePosition(this.option("position")),this._positionController.restorePositionOnNextRender(!0),this._renderGeometry(),this._toggleSafariScrolling();break;case"visible":this._renderVisibilityAnimate(n).done(()=>{var e;return null===(e=this._animateDeferred)||void 0===e?void 0:e.resolveWith(this)}).fail(()=>{var e;return null===(e=this._animateDeferred)||void 0===e?void 0:e.reject()});break;case"container":this._positionController.updateContainer(n),this._invalidate(),this._toggleSafariScrolling();break;case"visualContainer":this._positionController.updateVisualContainer(n),this._renderWrapper(),this._toggleSafariScrolling();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"hideTopOverlayHandler":this._toggleHideTopOverlayCallback(!1),this._initHideTopOverlayHandler(t.value),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"hideOnParentScroll":this._toggleHideOnParentsScrollSubscription(this.option("visible"));break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(t);break;case"_fixWrapperPosition":this._positionController.fixWrapperPosition=n;break;case"wrapperAttr":this._renderWrapperAttributes();break;case"restorePosition":this._positionController.restorePosition=t.value;break;default:this.callBase(t)}},toggle:function(t){t=void 0===t?!this.option("visible"):t;var n=new et;if(t===this.option("visible"))return n.resolveWith(this,[t]).promise();var e=new et;return this._animateDeferred=e,this.option("visible",t),e.promise().done(()=>{delete this._animateDeferred,n.resolveWith(this,[this.option("visible")])}).fail(()=>{delete this._animateDeferred,n.reject()}),n.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return kn(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._positionController.restorePositionOnNextRender(!0),this._renderGeometry({forceStopAnimation:!0}),qd(this._$content)):this.callBase()}});FL.baseZIndex=t=>(t=>ML=gr(t,ML))(t),On("dxOverlay",FL);const Cd=FL;var zxt=Fc.inherit({_initMarkup(){this._deferredItems=[],this.callBase()},_renderItemContent(t){var n=new et,e=new et;this._deferredItems[t.index]=e;var i=this.callBase.call(this,t);return e.done(()=>{n.resolve(i)}),n.promise()},_onItemTemplateRendered:function(t,n){return()=>{this._deferredItems[n.index].resolve()}},_postProcessRenderItems:Be,_renderItemsAsync(){var t=new et;return Qt.apply(this,this._deferredItems).done(()=>{this._postProcessRenderItems(),t.resolve()}),t.promise()},_clean(){this.callBase(),this._deferredItems=[]}});const Uxt=zxt;var Hve="dx-toolbar",MG="dx-toolbar-before",zve="dx-toolbar-after",WT="dx-toolbar-label",Uve="dx-toolbar-compact";class Gve extends Uxt{_getSynchronizableOptionsForCreateComponent(){return super._getSynchronizableOptionsForCreateComponent().filter(n=>"disabled"!==n)}_initTemplates(){super._initTemplates();var n=new Ac(function(e,i,r){if(wi(i)){var l,u,f,S,T,{text:o,html:a,widget:s}=i;if(o&&e.text(o).wrapInner("<div>"),a&&e.html(a),"dxDropDownButton"===s&&(i.options=null!==(l=i.options)&&void 0!==l?l:{},Z(i.options.stylingMode)||(i.options.stylingMode=this.option("useFlatButtons")?"text":"contained")),"dxButton"===s)this.option("useFlatButtons")&&(i.options=null!==(u=i.options)&&void 0!==u?u:{},i.options.stylingMode=null!==(f=i.options.stylingMode)&&void 0!==f?f:"text"),this.option("useDefaultButtons")&&(i.options=null!==(S=i.options)&&void 0!==S?S:{},i.options.type=null!==(T=i.options.type)&&void 0!==T?T:"default")}else e.text(String(i));this._getTemplate("dx-polymorph-widget").render({container:e,model:r,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:n,menuItem:n})}_getDefaultOptions(){return se(super._getDefaultOptions(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return io()},options:{useFlatButtons:!0}}])}_itemContainer(){return this._$toolbarItemsContainer.find([".".concat(MG),".".concat("dx-toolbar-center"),".".concat(zve)].join(","))}_itemClass(){return"dx-toolbar-item"}_itemDataKey(){return"dxToolbarItemDataKey"}_dimensionChanged(){this._arrangeItems(),this._applyCompactMode()}_initMarkup(){this._renderToolbar(),this._renderSections(),super._initMarkup()}_render(){super._render(),this._renderItemsAsync(),this._updateDimensionsInMaterial()}_postProcessRenderItems(){this._arrangeItems()}_renderToolbar(){this.$element().addClass(Hve),this._$toolbarItemsContainer=U("<div>").addClass("dx-toolbar-items-container").appendTo(this.$element()),this.setAria("role","toolbar")}_renderSections(){var n=this._$toolbarItemsContainer;we(["before","center","after"],(e,i)=>{var r="dx-toolbar-".concat(i);n.find(".".concat(r)).length||(this["_$".concat(i,"Section")]=U("<div>").addClass(r).appendTo(n))})}_arrangeItems(n){var e;n=null!==(e=n)&&void 0!==e?e:wn(this.$element()),this._$centerSection.css({margin:"0 auto",float:"none"});var i=Mi(this._$beforeSection.get(0)),r=Mi(this._$afterSection.get(0));this._alignCenterSection(i,r,n);var o=this._$toolbarItemsContainer.find(".".concat(WT)).eq(0),a=o.parent();if(o.length){var s=i.width?i.width:o.position().left,l=a.hasClass(MG)?0:s,u=a.hasClass(zve)?0:r.width,f=0;a.children().not(".".concat(WT)).each(function(){f+=ii(this)});var T=Math.max(n-f-l-u,0);if(a.hasClass(MG))this._alignSection(this._$beforeSection,T);else{var R=ii(o)-wn(o);o.css("maxWidth",T-R)}}}_alignCenterSection(n,e,i){this._alignSection(this._$centerSection,i-n.width-e.width);var r=this.option("rtlEnabled"),o=r?e:n,a=r?n:e,s=Mi(this._$centerSection.get(0));(o.right>s.left||s.right>a.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:a.width,float:o.width>a.width?"none":"right"})}_alignSection(n,e){var r=n.find(".".concat(WT)).toArray();e-=this._getCurrentLabelsPaddings(r);var o=this._getCurrentLabelsWidth(r),a=Math.abs(o-e);e<o?(r=r.reverse(),this._alignSectionLabels(r,a,!1)):this._alignSectionLabels(r,a,!0)}_alignSectionLabels(n,e,i){for(var r=function(f){return Mi(f).width},o=0;o<n.length;o++){var a=U(n[o]),s=Math.ceil(r(n[o]));i&&a.css("maxWidth","inherit");var u=Math.ceil(i?r(n[o]):s);if(!(u<e)){a.css("maxWidth",i?s+e:s-e);break}e-=u,a.css("maxWidth",i?u:0)}}_applyCompactMode(){var n=this.$element();n.removeClass(Uve),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>wn(n)&&n.addClass(Uve)}_getCurrentLabelsWidth(n){var e=0;return n.forEach(function(i,r){e+=ii(i)}),e}_getCurrentLabelsPaddings(n){var e=0;return n.forEach(function(i,r){e+=ii(i)-wn(i)}),e}_renderItem(n,e,i,r){var o,a,s=null!==(o=e.location)&&void 0!==o?o:"center",l=i??this["_$".concat(s,"Section")],u=!!(null!==(a=e.text)&&void 0!==a?a:e.html),f=super._renderItem(n,e,l,r);return f.toggleClass("dx-toolbar-button",!u).toggleClass(WT,u).addClass(e.cssClass),f}_renderGroupedItems(){we(this.option("items"),(n,e)=>{var i,r=e.items,o=U("<div>").addClass("dx-toolbar-group"),a=null!==(i=e.location)&&void 0!==i?i:"center";!r||!r.length||(we(r,(s,l)=>{this._renderItem(s,l,o,null)}),this._$toolbarItemsContainer.find(".dx-toolbar-".concat(a)).append(o))})}_renderItems(n){this.option("grouped")&&n.length&&n[0].items?this._renderGroupedItems():super._renderItems(n)}_getToolbarItems(){var n;return null!==(n=this.option("items"))&&void 0!==n?n:[]}_renderContentImpl(){var n=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===n.length),this._renderItems(this._renderedItemsCount?n.slice(this._renderedItemsCount):n),this._applyCompactMode()}_renderEmptyMessage(){}_clean(){this._$toolbarItemsContainer.children().empty(),this.$element().empty(),delete this._$beforeSection,delete this._$centerSection,delete this._$afterSection}_visibilityChanged(n){n&&this._arrangeItems()}_isVisible(){return wn(this.$element())>0&&Ln(this.$element())>0}_getIndexByItem(n){return this._getToolbarItems().indexOf(n)}_itemOptionChanged(n,e,i){super._itemOptionChanged.apply(this,[n,e,i]),this._arrangeItems()}_optionChanged(n){var{name:e}=n;switch(e){case"width":super._optionChanged.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:super._optionChanged.apply(this,arguments)}}_dispose(){super._dispose(),clearTimeout(this._waitParentAnimationTimeout)}_updateDimensionsInMaterial(){io()&&Promise.all([(()=>new Promise(n=>{var e=()=>{var r=!0;return this.$element().parents().each((o,a)=>{if(Hi.isAnimating(U(a)))return r=!1,!1}),r&&n(),r},i=()=>{clearTimeout(this._waitParentAnimationTimeout),this._waitParentAnimationTimeout=setTimeout(()=>e()||i(),15)};i()}))(),(()=>{var n=this.$element().find(".".concat(WT)),e=[];return n.each((i,r)=>{var o=U(r).text(),a=U(r).css("fontWeight");e.push(Ffe(o,a))}),Promise.all(e)})()]).then(()=>{this._dimensionChanged()})}}On("dxToolbarBase",Gve);const Qxt=Gve;var jve=Fn(),ewt={observe:Be,unobserve:Be,disconnect:Be},nwt=new class twt{constructor(){if(!Rn()||!jve.ResizeObserver)return ewt;this._callbacksMap=new Map,this._observer=new jve.ResizeObserver(n=>{n.forEach(e=>{var i;null===(i=this._callbacksMap.get(e.target))||void 0===i||i(e)})})}observe(n,e){this._callbacksMap.set(n,e),this._observer.observe(n)}unobserve(n){this._callbacksMap.delete(n),this._observer.unobserve(n)}disconnect(){this._callbacksMap.clear(),this._observer.disconnect()}};const Mm=nwt;var iwt=["fullScreen","forceApplyBindings","dragOutsideBoundary","dragAndResizeArea","outsideDragFactor"],AG=Fn();class rwt extends OG{constructor(n){var{fullScreen:e,forceApplyBindings:i,dragOutsideBoundary:r,dragAndResizeArea:o,outsideDragFactor:a}=n;super(ki(n,iwt)),this._props=mt({},this._props,{fullScreen:e,forceApplyBindings:i,dragOutsideBoundary:r,dragAndResizeArea:o,outsideDragFactor:a}),this._$dragResizeContainer=void 0,this._outsideDragFactor=void 0,this._lastPositionBeforeFullScreen=void 0,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set fullScreen(n){this._props.fullScreen=n,n?this._fullScreenEnabled():this._fullScreenDisabled()}get $dragResizeContainer(){return this._$dragResizeContainer}get outsideDragFactor(){return this._outsideDragFactor}set dragAndResizeArea(n){this._props.dragAndResizeArea=n,this._updateDragResizeContainer()}set dragOutsideBoundary(n){this._props.dragOutsideBoundary=n,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set outsideDragFactor(n){this._props.outsideDragFactor=n,this._updateOutsideDragFactor()}updateContainer(n){super.updateContainer(n),this._updateDragResizeContainer()}dragHandled(){this.restorePositionOnNextRender(!1)}resizeHandled(){this.restorePositionOnNextRender(!1)}positionContent(){var n,e;this._props.fullScreen?(kr(this._$content,{top:0,left:0}),this.detectVisualPositionChange()):(null===(n=(e=this._props).forceApplyBindings)||void 0===n||n.call(e),!this._shouldRenderContentInitialPosition&&this._lastPositionBeforeFullScreen?(kr(this._$content,this._lastPositionBeforeFullScreen),this._lastPositionBeforeFullScreen=void 0,this.detectVisualPositionChange()):super.positionContent())}_updateOutsideDragFactor(){this._outsideDragFactor=this._getOutsideDragFactor()}_getOutsideDragFactor(){return this._props.dragOutsideBoundary?1:this._props.outsideDragFactor}_updateDragResizeContainer(){this._$dragResizeContainer=this._getDragResizeContainer()}_getDragResizeContainer(){return this._props.dragOutsideBoundary?U(AG):this._props.dragAndResizeArea?U(this._props.dragAndResizeArea):nfe().get(0)||this._props.container?this._$markupContainer:U(AG)}_getVisualContainer(){return this._props.fullScreen?U(AG):super._getVisualContainer()}_fullScreenEnabled(){this.restorePositionOnNextRender(!1),this._lastPositionBeforeFullScreen=this._visualPosition}_fullScreenDisabled(){this.restorePositionOnNextRender(!1)}}var owt=Fn(),FG="dx-popup",Kve="dx-popup-wrapper",dwt="dx-state-disabled",$ve="dx-popup-title",qve="dx-popup-bottom",Yve=["cancel","clear","done"],bwt=Ro.safari&&g0e(Ro.version,[11])<0,O_={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},Zve=Cd.inherit({_supportedKeys:function(){return se(this.callBase(),{upArrow:t=>{var n;null===(n=this._drag)||void 0===n||n.moveUp(t)},downArrow:t=>{var n;null===(n=this._drag)||void 0===n||n.moveDown(t)},leftArrow:t=>{var n;null===(n=this._drag)||void 0===n||n.moveLeft(t)},rightArrow:t=>{var n;null===(n=this._drag)||void 0===n||n.moveRight(t)}})},_getDefaultOptions:function(){return se(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragOutsideBoundary:!1,dragEnabled:!1,dragAndResizeArea:void 0,outsideDragFactor:0,onResizeStart:null,onResize:null,onResizeEnd:null,resizeEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var t=lu();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(n){return"desktop"===pn.real().deviceType&&"generic"===n.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return io(t)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0,showCloseButton:!1}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init:function(){var t=this.option("_wrapperClassExternal"),n=t?"".concat(Kve," ").concat(t):Kve;this.callBase(),this._updateResizeCallbackSkipCondition(),this.$element().addClass(FG),this.$wrapper().addClass(n),this._$popupContent=this._$content.wrapInner(U("<div>").addClass("dx-popup-content")).children().eq(0)},_render:function(){var t=this.option("fullScreen");this._toggleFullScreenClass(t),this.callBase()},_toggleFullScreenClass:function(t){this.$overlayContent().toggleClass("dx-popup-fullscreen",t).toggleClass("dx-popup-normal",!t)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new xh,bottom:new xh})},_getActionsList:function(){return this.callBase().concat(["onResizeStart","onResize","onResizeEnd"])},_contentResizeHandler:function(t){this._shouldSkipContentResize(t)||this._renderGeometry({shouldOnlyReposition:!0})},_doesShowAnimationChangeDimensions:function(){var t=this.option("animation");return["to","from"].some(n=>{var e,i=null==t||null===(e=t.show)||void 0===e?void 0:e[n];return Jn(i)&&("width"in i||"height"in i)})},_updateResizeCallbackSkipCondition(){var t=this._doesShowAnimationChangeDimensions();this._shouldSkipContentResize=n=>t&&this._showAnimationProcessing||this._areContentDimensionsRendered(n)},_observeContentResize:function(t){if(this.option("useResizeObserver")){var n=this._$content.get(0);t?Mm.observe(n,e=>{this._contentResizeHandler(e)}):Mm.unobserve(n)}},_areContentDimensionsRendered:function(t){var n,e,i,o,a,r=null===(n=t.contentBoxSize)||void 0===n?void 0:n[0];if(r)return parseInt(r.inlineSize,10)===(null===(o=this._renderedDimensions)||void 0===o?void 0:o.width)&&parseInt(r.blockSize,10)===(null===(a=this._renderedDimensions)||void 0===a?void 0:a.height);var s=t.contentRect;return parseInt(s.width,10)===(null===(e=this._renderedDimensions)||void 0===e?void 0:e.width)&&parseInt(s.height,10)===(null===(i=this._renderedDimensions)||void 0===i?void 0:i.height)},_renderContent(){this.callBase(),this._observeContentResize(!0)},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderResize(),this._renderBottom()},_renderTitle:function(){var t=this._getToolbarItems("top"),n=this.option("title"),e=this.option("showTitle");if(e&&n&&t.unshift({location:pn.current().ios?"center":"before",text:n}),e||t.length>0){this._$title&&this._$title.remove();var i=U("<div>").addClass($ve).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",t,i).addClass($ve),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass("dx-has-close-button",this._hasCloseButton())}else this._$title&&this._$title.detach()},_renderTemplateByType:function(t,n,e,i){var{rtlEnabled:r,useDefaultToolbarButtons:o,useFlatToolbarButtons:a,disabled:s}=this.option(),l=this._getTemplateByOption(t);if(l instanceof xh){var f=se({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),S=se(i,{items:n,rtlEnabled:r,useDefaultButtons:o,useFlatButtons:a,disabled:s,integrationOptions:f});this._getTemplate("dx-polymorph-widget").render({container:e,model:{widget:this._getToolbarName(),options:S}});var T=e.children("div");return e.replaceWith(T),T}var R=U(l.render({container:kn(e)}));return R.hasClass("dx-template-wrapper")&&(e.replaceWith(R),e=R),e},_getToolbarName:function(){return"dxToolbarBase"},_renderVisibilityAnimate:function(t){return this.callBase(t)},_hide(){return this._observeContentResize(!1),this.callBase()},_executeTitleRenderAction:function(t){this._getTitleRenderAction()({titleElement:kn(t)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return(t,n,e)=>{var i=U("<div>").addClass("dx-closebutton");this._createComponent(i,To,{icon:"close",onClick:this._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),U(e).append(i)}},_getToolbarItems:function(t){var n=this.option("toolbarItems"),e=[];this._toolbarItemClasses=[];var i=pn.current().platform,r=0;return we(n,(o,a)=>{var s=Z(a.shortcut),l=s?(t=>{var e=pn.current().platform,i="bottom",r="before";if("ios"===e)switch(t){case"cancel":i="top";break;case"clear":i="top",r="after";break;case"done":r="after"}else if("android"===e)switch(t){case"cancel":case"done":r="after"}return{toolbar:i,location:r}})(a.shortcut):a;if(s&&"ios"===i&&r<2&&(l.toolbar="top",r++),l.toolbar=a.toolbar||l.toolbar||"top",l&&l.toolbar===t){s&&se(l,{location:a.location},this._getToolbarItemByAlias(a));var u="generic"===i;"done"===a.shortcut&&u||"cancel"===a.shortcut&&!u?e.unshift(l):e.push(l)}}),"top"===t&&this._hasCloseButton()&&e.push(this._getCloseButton()),e},_hasCloseButton(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:t=>"done"===t.toLowerCase()?"OK":dd(t,!0),_getToolbarItemByAlias:function(t){var n=this,e=t.shortcut;if(!Yve.includes(e))return!1;var i=se({text:ye.format(this._getLocalizationKey(e)),onClick:this._createToolbarItemAction(t.onClick),integrationOptions:{},type:n.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:n.option("useFlatToolbarButtons")?"text":"contained"},t.options||{}),r=FG+"-"+e;return this._toolbarItemClasses.push(r),{template:function(o,a,s){var l=U("<div>").addClass(r).appendTo(s);n._createComponent(l,To,i)}}},_createToolbarItemAction:function(t){return this._createAction(t,{afterExecute:function(n){n.component.hide()}})},_renderBottom:function(){var t=this._getToolbarItems("bottom");if(t.length){this._$bottom&&this._$bottom.remove();var n=U("<div>").addClass(qve).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",t,n,{compactMode:!0}).addClass(qve),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleDisabledState:function(t){this.callBase(...arguments),this.$content().toggleClass(dwt,Boolean(t))},_toggleClasses:function(){we(Yve,(n,e)=>{var i=FG+"-"+e;this._toolbarItemClasses.includes(i)?(this.$wrapper().addClass(i+"-visible"),this._$bottom.addClass(i)):(this.$wrapper().removeClass(i+"-visible"),this._$bottom.removeClass(i))})},_toggleFocusClass(t,n){if(this.callBase(t,n),t&&!(t=>km.length&&km[km.length-1]===this._zIndex)()){var e=AL(this._zIndexInitValue());zT(this._zIndex),this._zIndex=e,this._$wrapper.css("zIndex",e),this._$content.css("zIndex",e)}},_getPositionControllerConfig(){var{fullScreen:t,forceApplyBindings:n,dragOutsideBoundary:e,dragAndResizeArea:i,outsideDragFactor:r}=this.option();return se({},this.callBase(),{fullScreen:t,forceApplyBindings:n,dragOutsideBoundary:e,dragAndResizeArea:i,outsideDragFactor:r})},_initPositionController(){this._positionController=new rwt(this._getPositionControllerConfig())},_getDragTarget:function(){return this.topToolbar()},_renderGeometry:function(t){var{visible:n,useResizeObserver:e}=this.option();if(n&&Rn()){var r=this._showAnimationProcessing&&!(null!=t&&t.forceStopAnimation)&&e;this._isAnimationPaused=r||void 0,this._stopAnimation(),null!=t&&t.shouldOnlyReposition?this._renderPosition(!1):this._renderGeometryImpl(t?.isDimensionChange),r&&(this._animateShowing(),this._isAnimationPaused=void 0)}},_cacheDimensions:function(){this.option("useResizeObserver")&&(this._renderedDimensions={width:parseInt(wn(this._$content),10),height:parseInt(Ln(this._$content),10)})},_renderGeometryImpl:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t||this._resetContentHeight(),this.callBase(),this._cacheDimensions(),this._setContentHeight()},_resetContentHeight:function(){"auto"===this._getOptionValue("height")&&this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag:function(){var t=this._getDragTarget(),n=this.option("dragEnabled");if(t){var e={dragEnabled:n,handle:t.get(0),draggableElement:this._$content.get(0),positionController:this._positionController};this._drag?this._drag.init(e):this._drag=new class _xt{constructor(n){this.init(n)}init(n){var{dragEnabled:e,handle:i,draggableElement:r,positionController:o}=n;this._positionController=o,this._draggableElement=r,this._handle=i,this._dragEnabled=e,this.unsubscribe(),e&&this.subscribe()}moveDown(n){this._moveTo(5,0,n)}moveUp(n){this._moveTo(-5,0,n)}moveLeft(n){this._moveTo(0,-5,n)}moveRight(n){this._moveTo(0,5,n)}subscribe(){var n=this._getEventNames();Se.on(this._handle,n.startEventName,e=>{this._dragStartHandler(e)}),Se.on(this._handle,n.updateEventName,e=>{this._dragUpdateHandler(e)}),Se.on(this._handle,n.endEventName,e=>{this._dragEndHandler(e)})}unsubscribe(){var n=this._getEventNames();Se.off(this._handle,n.startEventName),Se.off(this._handle,n.updateEventName),Se.off(this._handle,n.endEventName)}_getEventNames(){return{startEventName:kt(Pc,"overlayDrag"),updateEventName:kt(Qd,"overlayDrag"),endEventName:kt(Rc,"overlayDrag")}}_dragStartHandler(n){var e=this._getAllowedOffsets();this._prevOffset={x:0,y:0},n.targetElements=[],n.maxTopOffset=e.top,n.maxBottomOffset=e.bottom,n.maxLeftOffset=e.left,n.maxRightOffset=e.right}_dragUpdateHandler(n){this._moveByOffset({top:n.offset.y-this._prevOffset.y,left:n.offset.x-this._prevOffset.x}),this._prevOffset=n.offset}_dragEndHandler(n){this._positionController.dragHandled(),this._positionController.detectVisualPositionChange(n)}_moveTo(n,e,i){if(this._dragEnabled){i.preventDefault(),i.stopPropagation();var r=this._fitOffsetIntoAllowedRange(n,e);this._moveByOffset(r),this._dragEndHandler(i)}}_fitOffsetIntoAllowedRange(n,e){var i=this._getAllowedOffsets();return{top:al(n,-i.top,i.bottom),left:al(e,-i.left,i.right)}}_getContainerDimensions(){var n=It.getDocument(),e=this._positionController.$dragResizeContainer.get(0),i=ii(e),r=Zn(e);return Da(e)&&(r=Math.max(n.body.clientHeight,r),i=Math.max(n.body.clientWidth,i)),{width:i,height:r}}_getContainerPosition(){var n=this._positionController.$dragResizeContainer.get(0);return Da(n)?{top:0,left:0}:LO(n)}_getElementPosition(){return LO(this._draggableElement)}_getInnerDelta(){var n=this._getContainerDimensions(),e=this._getElementDimensions();return{x:n.width-e.width,y:n.height-e.height}}_getOuterDelta(){var{width:n,height:e}=this._getElementDimensions(),i=this._positionController.outsideDragFactor;return{x:n*i,y:e*i}}_getFullDelta(){var n=this._getInnerDelta(),e=this._getOuterDelta();return{x:n.x+e.x,y:n.y+e.y}}_getElementDimensions(){return{width:this._draggableElement.offsetWidth,height:this._draggableElement.offsetHeight}}_getAllowedOffsets(){var n=this._getFullDelta();if(!(n.y>=0&&n.x>=0))return{top:0,bottom:0,left:0,right:0};var i=this._getElementPosition(),r=this._getContainerPosition(),o=this._getOuterDelta();return{top:i.top-r.top+o.y,bottom:-i.top+r.top+n.y,left:i.left-r.left+o.x,right:-i.left+r.left+n.x}}_moveByOffset(n){var e=Ra(this._draggableElement);kr(this._draggableElement,{left:e.left+n.left,top:e.top+n.top})}}(e),this.$overlayContent().toggleClass("dx-popup-draggable",n)}},_renderResize:function(){this._resizable=this._createComponent(this._$content,kL,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:t=>{this._resizeEndHandler(t),this._observeContentResize(!0)},onResize:t=>{this._setContentHeight(),this._actions.onResize(t)},onResizeStart:t=>{this._observeContentResize(!1),this._actions.onResizeStart(t)},minHeight:100,minWidth:100,area:this._positionController.$dragResizeContainer,keepAspectRatio:!1})},_resizeEndHandler:function(t){var n=this._resizable.option("width"),e=this._resizable.option("height");n&&this._setOptionWithoutOptionChange("width",n),e&&this._setOptionWithoutOptionChange("height",e),this._cacheDimensions(),this._positionController.resizeHandled(),this._positionController.detectVisualPositionChange(t.event),this._actions.onResizeEnd(t)},_setContentHeight:function(){(this.option("forceApplyBindings")||Be)();var t=this.$overlayContent().get(0),n=this._chooseHeightStrategy(t);this.$content().css(this._getHeightCssStyles(n,t)),this._setHeightClasses(this.$overlayContent(),n)},_heightStrategyChangeOffset:function(t,n){return t===O_.flex?-n:0},_chooseHeightStrategy:function(t){var n="auto"===t.style.width||""===t.style.width,e=O_.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(e=n||bwt?O_.inherit:O_.flex),e},_getHeightCssStyles:function(t,n){var e={},i=this._getOptionValue("maxHeight",n),r=this._getOptionValue("minHeight",n),o=this._splitPopupHeight(),a=o.header+o.footer+o.contentVerticalOffsets+o.popupVerticalOffsets+this._heightStrategyChangeOffset(t,o.popupVerticalPaddings);if(t===O_.static){if(!this._isAutoHeight()||i||r){var s=this.option("fullScreen")?Math.min(Mi(n).height,Fn().innerHeight):Mi(n).height;e={height:Math.max(0,s-a),minHeight:"auto",maxHeight:"auto"}}}else{var u=U(this._positionController.$visualContainer).get(0),f=function(t,n,e){var i=Ehe(t,n,e);return null!==i?i:"none"}(i,-a,u),S=function(t,n,e){var i=Ehe(t,n,e);return null!==i?i:0}(r,-a,u);e={height:"auto",minHeight:S,maxHeight:f}}return e},_setHeightClasses:function(t,n){var e="";for(var i in O_)O_[i]!==n&&(e+=" "+O_[i]);t.removeClass(e).addClass(n)},_isAutoHeight:function(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight:function(){var t=this.topToolbar(),n=this.bottomToolbar();return{header:Ohe(t&&t.get(0)),footer:Ohe(n&&n.get(0)),contentVerticalOffsets:_w(this.$overlayContent().get(0),!0),popupVerticalOffsets:_w(this.$content().get(0),!0),popupVerticalPaddings:_w(this.$content().get(0),!1)}},_isAllWindowCovered:function(){return this.callBase()||this.option("fullScreen")},_renderDimensions:function(){this.option("fullScreen")?this.$overlayContent().css({width:"100%",height:"100%",minWidth:"",maxWidth:"",minHeight:"",maxHeight:""}):this.callBase(),Rn()&&this._renderFullscreenWidthClass()},_dimensionChanged:function(){this._renderGeometry({isDimensionChange:!0})},_clean:function(){this.callBase(),this._observeContentResize(!1)},_renderFullscreenWidthClass:function(){this.$overlayContent().toggleClass("dx-popup-fullscreen-width",ii(this.$overlayContent())===wn(owt))},refreshPosition:function(){this._renderPosition()},_optionChanged:function(t){var n,e=t.value;switch(t.name){case"disabled":this.callBase(t),this._renderTitle(),this._renderBottom();break;case"animation":this._updateResizeCallbackSkipCondition();break;case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),qd(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),qd(this.$overlayContent());break;case"container":var i;this.callBase(t),this.option("resizeEnabled")&&(null===(i=this._resizable)||void 0===i||i.option("area",this._positionController.$dragResizeContainer));break;case"width":case"height":this.callBase(t),null===(n=this._resizable)||void 0===n||n.option(t.name,t.value);break;case"onTitleRendered":this._createTitleRenderAction(t.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var r=!t.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),r&&(this._renderGeometry(),qd(this.$overlayContent()));break;case"dragEnabled":this._renderDrag();break;case"dragAndResizeArea":this._positionController.dragAndResizeArea=e,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer),this._positionController.positionContent();break;case"dragOutsideBoundary":this._positionController.dragOutsideBoundary=e,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer);break;case"outsideDragFactor":this._positionController.outsideDragFactor=e;break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"autoResizeEnabled":this._renderGeometry(),qd(this.$overlayContent());break;case"fullScreen":this._positionController.fullScreen=t.value,this._toggleFullScreenClass(t.value),this._toggleSafariScrolling(),this._renderGeometry(),qd(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;default:this.callBase(t)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return kn(this.$content())},$overlayContent:function(){return this._$content}});On("dxPopup",Zve);const Ss=Zve;var Xve={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},Swt=["shading","target","$arrow"],Am={left:-1,top:-1,center:0,right:1,bottom:1},Qve={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},Dwt={h:10,v:10};class eye extends OG{constructor(n){var{shading:e,target:i,$arrow:r}=n;super(ki(n,Swt)),this._props=mt({},this._props,{shading:e,target:i}),this._$arrow=r,this._positionSide=void 0,this.updatePosition(this._props.position)}positionWrapper(){this._props.shading&&this._$wrapper.css({top:0,left:0})}updateTarget(n){this._props.target=n,this.updatePosition(this._props.position)}_renderBoundaryOffset(){}_getContainerPosition(){var n=Z7(this._position.offset||""),{h:e,v:i}=n,r=this._isVerticalSide(),o=this._isHorizontalSide();if(r||o){var f=(this._isPopoverInside()?-1:1)*Am[this._positionSide]*((r?Ln(this._$arrow):wn(this._$arrow))-this._getContentBorderWidth(this._positionSide));r?i+=f:e+=f}return se({},this._position,{offset:e+" "+i})}_getContentBorderWidth(n){var e=this._$content.css(Xve[n]);return parseInt(e)||0}_isPopoverInside(){var n=rs.setup.normalizeAlign(this._position.my),e=rs.setup.normalizeAlign(this._position.at);return n.h===e.h&&n.v===e.v}_isVerticalSide(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"top"===n||"bottom"===n}_isHorizontalSide(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"left"===n||"right"===n}_getDisplaySide(n){var e=rs.setup.normalizeAlign(n.my),i=rs.setup.normalizeAlign(n.at),r=Am[e.h]===Am[i.h]&&Am[e.v]===Am[i.v]?-1:1;return Math.abs(Am[e.h]-r*Am[i.h])>Math.abs(Am[e.v]-r*Am[i.v])?i.h:i.v}_normalizePosition(n){var i,e={of:this._props.target,boundaryOffset:Dwt};return i=Z(n)?se(!0,{},e,this._positionToObject(n)):e,this._positionSide=this._getDisplaySide(i),i}_positionToObject(n){return Pn(n)?se({},Qve[n]):n}}var tye={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},nye=function(t){return Jn(t)?t.name:t},iye=function(t,n){var e=t.option(n);return nye(e)},PG=function(t,n){var{target:e,shading:i,disabled:r,hideEvent:o}=t.option(),a=Pn(e),s=i&&"hide"===n,l=s?null:iye(t,"".concat(n,"Event"));if(s&&o&&Di.log("W1020"),l&&!r){var u=kt(l,t.NAME),f=t._createAction(function(){var L=function(t,n){var e=t.option(n);return Jn(e)&&e.delay}(t,n+"Event");this._clearEventsTimeouts(),L?this._timeouts[n]=setTimeout(function(){t[n]()},L):t[n]()}.bind(t),{validatingTargetName:"target"}),S=function(L){f({event:L,target:U(L.currentTarget)})},T="_"+n+"EventHandler";if(a)t[T]=S,Se.on(It.getDocument(),u,e,S);else{var R=kn(U(e));t[T]=void 0,Se.on(R,u,S)}}},RG=function(t,n,e,i){var r=i||iye(t,e+"Event");if(r){r=kt(r,t.NAME);var o="_"+e+"EventHandler";t[o]?Se.off(It.getDocument(),r,n,t[o]):Se.off(kn(U(n)),r)}},rye=Ss.inherit({_getDefaultOptions:function(){return se(this.callBase(),{target:void 0,shading:!1,position:se({},Qve.bottom),hideOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",from:1,to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,hideOnParentScroll:!0,arrowPosition:"",arrowOffset:0,_fixWrapperPosition:!0})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!Rn()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass("dx-popover"),this.$wrapper().addClass("dx-popover-wrapper")},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(t){RG(this,t,"show"),RG(this,t,"hide")},_attachEvents:function(){PG(this,"show"),PG(this,"hide")},_renderArrow:function(){this._$arrow=U("<div>").addClass("dx-popover-arrow").prependTo(this.$overlayContent())},_documentDownHandler:function(t){return!this._isOutsideClick(t)||this.callBase(t)},_isOutsideClick:function(t){return!U(t.target).closest(this.option("target")).length},_animate:function(t){t&&t.to&&"object"==typeof t.to&&se(t.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this.$wrapper().toggleClass("dx-popover-without-title",!this.option("showTitle")),this.callBase()},_renderPosition:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.callBase(),this._renderOverlayPosition(t),this._actions.onPositioned()},_renderOverlayPosition:function(t){this._resetOverlayPosition(t),this._updateContentSize(t);var n=this._getContainerPosition(),e=rs.setup(this.$overlayContent(),n),i=this._getSideByLocation(e);this._togglePositionClass("dx-position-"+i),this._toggleFlippedClass(e.h.flip,e.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(i)},_resetOverlayPosition:function(t){this._setContentHeight(t),this._togglePositionClass("dx-position-"+this._positionController._positionSide),kr(this.$overlayContent(),{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(t){if(this.$content()&&t){var n=rs.calculate(this.$overlayContent(),this._getContainerPosition());if(n.h.oversize>0&&this._isHorizontalSide()&&!n.h.fit){var e=wn(this.$overlayContent())-n.h.oversize;oa(this.$overlayContent(),e)}if(n.v.oversize>0&&this._isVerticalSide()&&!n.v.fit){var i=Ln(this.$overlayContent())-n.v.oversize,r=Ln(this.$content())-n.v.oversize;xo(this.$overlayContent(),i),xo(this.$content(),r)}}},_getContainerPosition:function(){return this._positionController._getContainerPosition()},_hideOnParentScrollTarget:function(){return U(this._positionController._position.of||this.callBase())},_getSideByLocation:function(t){var n=t.v.flip,e=t.h.flip;return this._isVerticalSide()&&n||this._isHorizontalSide()&&e||this._isPopoverInside()?tye[this._positionController._positionSide]:this._positionController._positionSide},_togglePositionClass:function(t){this.$wrapper().removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(t)},_toggleFlippedClass:function(t,n){this.$wrapper().toggleClass("dx-popover-flipped-horizontal",t).toggleClass("dx-popover-flipped-vertical",n)},_renderArrowPosition:function(t){var n=Mi(this._$arrow.get(0)),e=-(this._isVerticalSide(t)?n.height:n.width);this._$arrow.css(tye[t],e);var j,i=this._isVerticalSide(t)?"left":"top",r=this._isVerticalSide(t)?"width":"height",o=U(this._positionController._position.of),a=rs.offset(o)||{top:0,left:0},s=rs.offset(this.$overlayContent()),l=n[r],u=s[i],f=Mi(this.$overlayContent().get(0))[r],S=a[i],T=o.get(0),R=T&&!T.preventDefault?Mi(T)[r]:0,L=Math.max(u,S),z=Math.min(u+f,S+R);j="start"===this.option("arrowPosition")?L-u:"end"===this.option("arrowPosition")?z-u-l:(L+z)/2-u-l/2;var Y=this._positionController._getContentBorderWidth(t),ie=al(j-Y+this.option("arrowOffset"),Y,f-l-2*Y);this._$arrow.css(i,ie)},_isPopoverInside:function(){return this._positionController._isPopoverInside()},_setContentHeight:function(t){t&&this.callBase()},_getPositionControllerConfig(){var{shading:t,target:n}=this.option();return se({},this.callBase(),{target:n,shading:t,$arrow:this._$arrow})},_initPositionController(){this._positionController=new eye(this._getPositionControllerConfig())},_renderWrapperDimensions:function(){this.option("shading")&&this.$wrapper().css({width:"100%",height:"100%"})},_isVerticalSide:function(t){return this._positionController._isVerticalSide(t)},_isHorizontalSide:function(t){return this._positionController._isHorizontalSide(t)},_clearEventTimeout:function(t){clearTimeout(this._timeouts[t])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(t){switch(t.name){case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":t.value&&this.option("fullScreen",!1);break;case"target":t.previousValue&&this._detachEvents(t.previousValue),this._positionController.updateTarget(t.value),this._invalidate();break;case"showEvent":case"hideEvent":var n=t.name.substring(0,4),e=nye(t.previousValue);this.hide(),RG(this,this.option("target"),n,e),PG(this,n);break;case"visible":this._clearEventTimeout(t.value?"show":"hide"),this.callBase(t);break;default:this.callBase(t)}},show:function(t){return t&&this.option("target",t),this.callBase()}});On("dxPopover",rye);const dC=rye;var g1=Fn(),aye=Fc.inherit({_getDefaultOptions:function(){return se(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:ye.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new Ac(function(t,n){var e=new To(U("<div>"),se({onClick:n&&n.click,stylingMode:n&&n.stylingMode||"outlined"},n));t.append(e.$element())},["disabled","icon","text","type","onClick","click","stylingMode"],this.option("integrationOptions.watchMethod"))})},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return"dx-actionsheet-item"},_itemDataKey:function(){return"dxActionSheetItemData"},_toggleVisibility:Be,_renderDimensions:Be,_initMarkup:function(){this.callBase(),this.$element().addClass("dx-actionsheet"),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=U("<div>").addClass("dx-actionsheet-container"),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=U("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(t){this._popup&&this._popup.option(t,this.option(t))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup.$wrapper().toggleClass("dx-actionsheet-without-title",!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(t){this._popup=t.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!g1.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,dC,se(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup.$wrapper().addClass("dx-actionsheet-popover-wrapper")},_createPopup:function(){this._createComponent(this._$popup,Ss,se(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:g1},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:g1}},to:{position:{my:"bottom",at:"bottom",of:g1}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:g1}},to:{position:{my:"top",at:"bottom",of:g1}}}}})),this._popup.$wrapper().addClass("dx-actionsheet-popup-wrapper")},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var t=this._createActionByOption("onCancelClick")||Be,n=this;this._$cancelButton=U("<div>").addClass("dx-actionsheet-cancel").appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,To,{disabled:!1,stylingMode:"outlined",text:this.option("cancelText"),onClick:function(e){var i={event:e,cancel:!1};t(i),i.cancel||n.hide()},integrationOptions:{}})}},_attachItemClickEvent:Be,_itemClickHandler:function(t){this.callBase(t),U(t.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(t){this.callBase(t),U(t.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(t){switch(t.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(t.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(t)}},toggle:function(t){var n=this,e=new et;return n._popup.toggle(t).done(function(){n.option("visible",t),e.resolveWith(n)}),e.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});On("dxActionSheet",aye);const sye=aye;let Vwt=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this._createEventEmitters([{subscribe:"cancelClick",emit:"onCancelClick"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"cancelTextChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"rtlEnabledChange"},{emit:"showCancelButtonChange"},{emit:"showTitleChange"},{emit:"targetChange"},{emit:"titleChange"},{emit:"usePopoverChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),s.setHost(this)}get cancelText(){return this._getOption("cancelText")}set cancelText(e){this._setOption("cancelText",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(e){this._setOption("itemHoldTimeout",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showCancelButton(){return this._getOption("showCancelButton")}set showCancelButton(e){this._setOption("showCancelButton",e)}get showTitle(){return this._getOption("showTitle")}set showTitle(e){this._setOption("showTitle",e)}get target(){return this._getOption("target")}set target(e){this._setOption("target",e)}get title(){return this._getOption("title")}set title(e){this._setOption("title",e)}get usePopover(){return this._getOption("usePopover")}set usePopover(e){this._setOption("usePopover",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new sye(e,i)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("dataSource",e),this.setupChanges("items",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-action-sheet"]],contentQueries:function(e,i,r){if(1&e&&In(r,So,4),2&e){let o;yn(o=Cn())&&(i.itemsChildren=o)}},inputs:{cancelText:"cancelText",dataSource:"dataSource",disabled:"disabled",elementAttr:"elementAttr",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",itemHoldTimeout:"itemHoldTimeout",items:"items",itemTemplate:"itemTemplate",rtlEnabled:"rtlEnabled",showCancelButton:"showCancelButton",showTitle:"showTitle",target:"target",title:"title",usePopover:"usePopover",visible:"visible",width:"width"},outputs:{onCancelClick:"onCancelClick",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onOptionChanged:"onOptionChanged",cancelTextChange:"cancelTextChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",itemHoldTimeoutChange:"itemHoldTimeoutChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",rtlEnabledChange:"rtlEnabledChange",showCancelButtonChange:"showCancelButtonChange",showTitleChange:"showTitleChange",targetChange:"targetChange",titleChange:"titleChange",usePopoverChange:"usePopoverChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[ot([Zt,nn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),lye=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})();class RL{constructor(n,e,i){this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=e,this.name=n,this.options=i||{}}_addPlaceMarker(n){this.$placeMarker=U("<div>").appendTo(n)}_addToContainer(n){var{$placeMarker:e,$container:i}=this;e?e.replaceWith(n):n.appendTo(i)}_attachEvents(){throw"Not implemented"}_create(){throw"Not implemented"}_isRendered(){return!!this.instance}_isVisible(){var{editor:n,options:e}=this;return e.visible||!n.option("readOnly")}_isDisabled(){throw"Not implemented"}_shouldRender(){return this._isVisible()&&!this._isRendered()}dispose(){var{instance:n,$placeMarker:e}=this;n&&(n.dispose?n.dispose():n.remove(),this.instance=null),e&&e.remove()}render(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=n,this._isVisible()){var{instance:e,$element:i}=this._create();this.instance=e,this._attachEvents(e,i)}else this._addPlaceMarker(n)}update(){return this._shouldRender()&&this.render(),!!this.instance}}class Wwt extends RL{constructor(n,e,i){super(n,e,i),this.currentTemplate=null}_attachEvents(n){var{editor:e}=this;n.option("onClick",i=>{!e.option("openOnFieldClick")&&e._openHandler(i)}),Se.on(n.$element(),"mousedown",i=>{e.$element().is(".dx-state-focused")&&i.preventDefault()})}_create(){var{editor:n}=this,e=U("<div>"),i=this._getOptions();this._addToContainer(e);var r=n._createComponent(e,To,se({},i,{elementAttr:{"aria-label":ye.format("dxDropDownEditor-selectLabel")}}));return this._legacyRender(n.$element(),e,i.visible),{$element:e,instance:r}}_getOptions(){var{editor:n}=this,e=this._isVisible(),r={focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:n.option("readOnly"),visible:e};return this._addTemplate(r),r}_isVisible(){var{editor:n}=this;return super._isVisible()&&n.option("showDropDownButton")}_legacyRender(n,e,i){n.toggleClass("dx-dropdowneditor-button-visible",i),e&&e.removeClass("dx-button").addClass("dx-dropdowneditor-button")}_isSameTemplate(){return this.editor.option("dropDownButtonTemplate")===this.currentTemplate}_addTemplate(n){this._isSameTemplate()||(n.template=this.editor._getTemplateByOption("dropDownButtonTemplate"),this.currentTemplate=this.editor.option("dropDownButtonTemplate"))}update(){if(super.update()){var{editor:e,instance:i}=this,r=e.$element(),o=this._getOptions();i?.option(o),this._legacyRender(r,i?.$element(),o.visible)}}}var{ios:Gwt,mac:jwt}=pn.real(),Kwt=Gwt||jwt,$wt=function(t){var n;try{n={start:t.selectionStart,end:t.selectionEnd}}catch{n={start:0,end:0}}return n},qwt=function(t,n){var e=It.getBody();if(e.contains(t)||e.contains(t.getRootNode().host))try{t.selectionStart=n.start,t.selectionEnd=n.end}catch{}};const LG=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t=U(t).get(0),!Z(n))return $wt(t);!e&&Kwt&&It.getActiveElement(t)!==t||qwt(t,n)};var uye=ji.inherit({ctor:function(t){this._value=" ",se(this,t)},next:function(t){if(!arguments.length)return this._next;this._next=t},text:Be,value:Be,rawValue:Be,handle:Be,_prepareHandlingArgs:function(t,n){var e,i,r;n=n||{};var o=Object.prototype.hasOwnProperty.call(t,"value")?"value":"text";return t[o]=null!==(e=n.str)&&void 0!==e?e:t[o],t.start=null!==(i=n.start)&&void 0!==i?i:t.start,t.length=null!==(r=n.length)&&void 0!==r?r:t.length,t.index=t.index+1,t},reset:Be,clear:Be,first:function(t){return t=t||0,this.next().first(t+1)},isAccepted:function(){return!1},adjustedCaret:function(t,n,e){return n?this._adjustedForward(t,0,e):this._adjustedBackward(t,0,e)},_adjustedForward:Be,_adjustedBackward:Be,isValid:Be}),Jwt=uye.inherit({next:Be,handle:function(){return 0},text:function(){return""},value:function(){return""},first:function(){return 0},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}}),dye=uye.inherit({text:function(){return(" "!==this._value?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(t){var n=Object.prototype.hasOwnProperty.call(t,"value")?t.value:t.text;if(!n||!n.length||!t.length)return 0;if(t.start)return this.next().handle(this._prepareHandlingArgs(t,{start:t.start-1}));var e=n[0],i=n.substring(1);return this._tryAcceptChar(e,t),this._accepted()?this.next().handle(this._prepareHandlingArgs(t,{str:i,length:t.length-1}))+1:this.handle(this._prepareHandlingArgs(t,{str:i,length:t.length-1}))},clear:function(t){this._tryAcceptChar(" ",t),this.next().clear(this._prepareHandlingArgs(t))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(t,n){if(this._accepted(!1),this._isAllowed(t,n)){var e=" "===t?this.maskChar:t;n.fullText=n.fullText.substring(0,n.index)+e+n.fullText.substring(n.index+1),this._accepted(!0),this._value=t}},_accepted:function(t){if(!arguments.length)return!!this._isAccepted;this._isAccepted=!!t},first:function(t){return" "===this._value?t||0:this.callBase(t)},_isAllowed:function(t,n){return" "===t||this._isValid(t,n)},_isValid:function(t,n){var e=this.allowedChars;return e instanceof RegExp?e.test(t):Yt(e)?e(t,n.index,n.fullText):Array.isArray(e)?e.includes(t):e===t},isAccepted:function(t){return 0===t?this._accepted():this.next().isAccepted(t-1)},_adjustedForward:function(t,n,e){return n>=t?n:this.next()._adjustedForward(t,n+1,e)||n+1},_adjustedBackward:function(t,n){return n>=t-1?t:this.next()._adjustedBackward(t,n+1)||n+1},isValid:function(t){return this._isValid(this._value,t)&&this.next().isValid(this._prepareHandlingArgs(t))}}),cye=dye.inherit({value:function(){return this.next().value()},handle:function(t){var n=Object.prototype.hasOwnProperty.call(t,"value"),e=n?t.value:t.text;if(!e.length||!t.length)return 0;if(t.start||n)return this.next().handle(this._prepareHandlingArgs(t,{start:t.start&&t.start-1}));var i=e[0],r=e.substring(1);this._tryAcceptChar(i);var o=this._isAllowed(i)?this._prepareHandlingArgs(t,{str:r,length:t.length-1}):t;return this.next().handle(o)+1},clear:function(t){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(t))},_tryAcceptChar:function(t){this._accepted(this._isValid(t))},_isValid:function(t){return t===this.maskChar},first:function(t){return t=t||0,this.next().first(t+1)},_adjustedForward:function(t,n,e){return n>=t&&e===this.maskChar?n:t===n+1&&this._accepted()?t:this.next()._adjustedForward(t,n+1,e)},_adjustedBackward:function(t,n){return n>=t-1?0:this.next()._adjustedBackward(t,n+1)},isValid:function(t){return this.next().isValid(this._prepareHandlingArgs(t))}}),LL="dx-invalid-message",hye=Cd.inherit({_getDefaultOptions(){return se(this.callBase(),{integrationOptions:{},templatesRenderAsynchronously:!1,shading:!1,width:"auto",height:"auto",hideOnOutsideClick:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1,rtlEnabled:!1,contentTemplate:this._renderInnerHtml,maxWidth:"100%",container:this.$element(),target:void 0,mode:"auto",validationErrors:void 0,positionSide:"top",boundary:void 0,offset:{h:0,v:0},contentId:void 0})},_init(){this.callBase(),this.updateMaxWidth(),this._updatePosition()},_initMarkup(){this.callBase(),this._ensureMessageNotEmpty(),this._updatePositionByTarget(),this._toggleModeClass(),this._updateContentId()},_updatePositionByTarget:function(){var{target:t}=this.option();this.option("position.of",t)},_ensureMessageNotEmpty:function(){this._textMarkup=this._getTextMarkup();var t=this.option("visible")&&this._textMarkup;this._toggleVisibilityClasses(t)},_toggleVisibilityClasses:function(t){t?(this.$element().addClass(LL),this.$wrapper().addClass(LL)):(this.$element().removeClass(LL),this.$wrapper().removeClass(LL))},_updateContentId(){var{container:t,contentId:n}=this.option(),e=n??U(t).attr("aria-describedby");this.$content().addClass("dx-invalid-message-content").attr("id",e)},_renderInnerHtml(t){(t&&U(t))?.html(this._textMarkup)},_getTextMarkup(){var t,n=null!==(t=this.option("validationErrors"))&&void 0!==t?t:[],e="";return n.forEach(i=>{var r;e+=(e?"<br />":"")+z7(null!==(r=i?.message)&&void 0!==r?r:"")}),e},_toggleModeClass(){var t=this.option("mode");this.$wrapper().toggleClass("dx-invalid-message-auto","auto"===t).toggleClass("dx-invalid-message-always","always"===t)},updateMaxWidth(){var t=this.option("target"),n=ii(t),e="100%";n&&(e=Math.max(n,100)),this.option({maxWidth:e})},_getPositionsArray:function(t,n){switch(t){case"top":return["".concat(n," bottom"),"".concat(n," top")];case"left":return["right","left"];case"right":return["left","right"];default:return["".concat(n," top"),"".concat(n," bottom")]}},_updatePosition:function(){var{positionSide:t,rtlEnabled:n,offset:e,boundary:i}=this.option(),r=Eg(n),o=this._getPositionsArray(t,r),a=mt({},e);this.$element().addClass("dx-invalid-message-".concat(t)),n&&"left"!==t&&"right"!==t&&(a.h=-a.h),"top"===t&&(a.v=-a.v),"left"===t&&(a.h=-a.h),this.option("position",{offset:a,boundary:i,my:o[0],at:o[1],collision:"none flip"})},_optionChanged(t){var{name:n,value:e,previousValue:i}=t;switch(n){case"target":this._updatePositionByTarget(),this.updateMaxWidth(),this.callBase(t);break;case"boundary":this.option("position.boundary",e);break;case"mode":this._toggleModeClass(e);break;case"rtlEnabled":case"offset":case"positionSide":this.$element().removeClass("dx-invalid-message-".concat(i)),this._updatePosition();break;case"container":this._updateContentId(),this.callBase(t);break;case"contentId":this._updateContentId();break;case"validationErrors":this._ensureMessageNotEmpty(),this._renderInnerHtml(this.$content());break;default:this.callBase(t)}}});On("dxValidationMessage",hye);const pye=hye;var gye="dx-invalid-message-auto",fye="dx-validation-target",l1t=["outlined","filled","underlined"],_ye={validationMessageMode:"mode",validationMessagePosition:"positionSide",validationMessageOffset:"offset",validationBoundary:"boundary"},BG=tr.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=Zi(),this.callBase.apply(this,arguments)},_createElement:function(t){this.callBase(t);var n=this.$element();n&&zo(n[0],fye,this)},_initOptions:function(t){this.callBase.apply(this,arguments),this.option(Uo.initValidationOptions(t))},_init:function(){this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions")),this.$element().addClass("dx-show-invalid-badge")},_getDefaultOptions:function(){return se(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:"valid",validationMessageMode:"auto",validationMessagePosition:"bottom",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||this.callBase()},_setOptionsByReference:function(){this.callBase(),se(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){var t;this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState(),null===(t=this.option("_onMarkupRendered"))||void 0===t||t()},_raiseValueChangeAction:function(t,n){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(t,n))},_valueChangeArgs:function(t,n){return{value:t,previousValue:n,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(t){this._valueChangeEventInstance=t},_focusInHandler:function(t){var n="auto"===this.option("validationMessageMode");if(this._canValueBeChangedByClick()&&n){var e,i=null===(e=this._validationMessage)||void 0===e?void 0:e.$wrapper();i?.removeClass(gye),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>i?.addClass(gye),150)}return this.callBase(t)},_canValueBeChangedByClick:function(){return!1},_getStylingModePrefix:function(){return"dx-editor-"},_renderStylingMode:function(){var t=this.option("stylingMode"),n=this._getStylingModePrefix(),e=l1t.map(a=>n+a);e.forEach(a=>this.$element().removeClass(a));var i=n+t;if(-1===e.indexOf(i)){var r=this._getDefaultOptions().stylingMode,o=this._convertRulesToOptions(this._defaultOptionsRules()).stylingMode;i=n+(o||r)}this.$element().addClass(i)},_getValidationErrors:function(){var t=this.option("validationErrors");return!t&&this.option("validationError")&&(t=[this.option("validationError")]),t},_disposeValidationMessage:function(){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=void 0,this._validationMessage=void 0)},_toggleValidationClasses:function(t){this.$element().toggleClass("dx-invalid",t),this.setAria("invalid",t||void 0)},_renderValidationState:function(){var t=this.option("isValid")&&"invalid"!==this.option("validationStatus"),n=this._getValidationErrors(),e=this.$element();if(this._toggleValidationClasses(!t),Rn()&&(this._disposeValidationMessage(),!t&&n)){var{validationMessageMode:i,validationMessagePosition:r,validationMessageOffset:o,validationBoundary:a,rtlEnabled:s}=this.option();this._$validationMessage=U("<div>").appendTo(e);var l="dx-".concat(new Ni);this.setAria("describedby",l),this._validationMessage=new pye(this._$validationMessage,se({validationErrors:n,rtlEnabled:s,target:this._getValidationMessageTarget(),visualContainer:e,mode:i,positionSide:r,offset:o,boundary:a,contentId:l},this._options.cache("validationTooltipOptions"))),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_getValidationMessageTarget:function(){return this.$element()},_toggleReadOnlyState:function(){var t=this.option("readOnly");this._toggleBackspaceHandler(t),this.$element().toggleClass("dx-state-readonly",!!t),this.setAria("readonly",t||void 0)},_toggleBackspaceHandler:function(t){var n=this._keyboardEventBindingTarget(),e=kt("keydown","editorReadOnly");Se.off(n,e),t&&Se.on(n,e,i=>{"backspace"===Wo(i)&&i.preventDefault()})},_dispose:function(){zo(this.$element()[0],fye,null),clearTimeout(this.showValidationMessageTimeout),this._disposeValidationMessage(),this.callBase()},_setSubmitElementName:function(t){var n=this._getSubmitElement();n&&(t.length>0?n.attr("name",t):n.removeAttr("name"))},_getSubmitElement:function(){return null},_setValidationMessageOption:function(t){var n,{name:e,value:i}=t;null===(n=this._validationMessage)||void 0===n||n.option(_ye[e]?_ye[e]:e,i)},_hasActiveElement:Be,_optionChanged:function(t){var n;switch(t.name){case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":t.value!=t.previousValue&&this.validationRequest.fire({value:t.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(t.value,t.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(t),null===(n=this._validationMessage)||void 0===n||n.updateMaxWidth();break;case"name":this._setSubmitElementName(t.value);break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(Uo.synchronizeValidationOptions(t,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":case"validationMessagePosition":case"validationMessageOffset":this._setValidationMessageOption(t);break;case"rtlEnabled":this._setValidationMessageOption(t),this.callBase(t);break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,t);break;default:this.callBase(t)}},blur:function(){this._hasActiveElement()&&Mw()},reset:function(){var t=this._getDefaultOptions();this.option("value",t.value)}});BG.isEditor=t=>t instanceof BG;const Ru=BG;var u1t=qn.down;class f1t extends RL{_create(){var n=U("<span>").addClass("dx-clear-button-area").append(U("<span>").addClass("dx-icon").addClass("dx-icon-clear"));return this._addToContainer(n),this.update(!0),{instance:n,$element:n}}_isVisible(){var{editor:n}=this;return n._isClearButtonVisible()}_attachEvents(n,e){var{editor:i}=this,r=i.NAME;Se.on(e,kt(u1t,r),o=>{o.preventDefault(),"mouse"!==o.pointerType&&i._clearValueHandler(o)}),Se.on(e,kt(Vi,r),o=>i._clearValueHandler(o))}_legacyRender(n,e){n.toggleClass("dx-show-clear-button",e)}update(){!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&super.update();var{editor:e,instance:i}=this,r=e.$element(),o=this._isVisible();i&&i.toggleClass("dx-state-invisible",!o),this._legacyRender(r,o)}}var vye="dx-custom-button-hovered";class m1t extends RL{_attachEvents(n,e){var{editor:i}=this;Se.on(e,G2,()=>{i.$element().addClass(vye)}),Se.on(e,xT,()=>{i.$element().removeClass(vye)}),Se.on(e,Vi,r=>{r.stopPropagation()})}_create(){var{editor:n}=this,e=U("<div>");return this._addToContainer(e),{$element:e,instance:n._createComponent(e,To,se({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(n)}))}}_prepareIntegrationOptions(n){return se({},n.option("integrationOptions"),{skipTemplates:["content"]})}update(){var n=super.update();return this.instance&&this.instance.option("disabled",this._isDisabled()),n}_isVisible(){var{editor:n}=this;return n.option("visible")}_isDisabled(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}function yye(t,n){if(-1!==t.indexOf(n))throw Di.Error("E1055",n);t.push(n)}class C1t{constructor(n,e){this.buttons=[],this.defaultButtonsInfo=e,this.editor=n}_compileButtonInfo(n){var e=[];return n.map(i=>{var r="string"==typeof i;r||function v1t(t){(()=>{if(!t||"object"!=typeof t||Array.isArray(t))throw Di.Error("E1053")})(),(()=>{if(!("name"in t))throw Di.Error("E1054")})(),(()=>{var{name:n}=t;if("string"!=typeof n)throw Di.Error("E1055")})(),(()=>{var{location:n}=t;"location"in t&&"after"!==n&&"before"!==n&&(t.location="after")})()}(i);var o=r||function y1t(t,n){return!!n.find(e=>e.name===t)}(i.name,this.defaultButtonsInfo);if(o){var a=this.defaultButtonsInfo.find(l=>{var{name:u}=l;return u===i||u===i.name});if(!a)throw Di.Error("E1056",this.editor.NAME,i);return yye(e,i),a}var{name:s}=i;return yye(e,s),se(i,{Ctor:m1t})})}_createButton(n){var{Ctor:e,options:i,name:r}=n,o=new e(r,this.editor,i);return this.buttons.push(o),o}_renderButtons(n,e,i){var r=null;return(n?this._compileButtonInfo(n):this.defaultButtonsInfo).forEach(a=>{var{location:s="after"}=a;s===i&&this._createButton(a).render((r=r||U("<div>").addClass("dx-texteditor-buttons-container"),"before"===i?e.prepend(r):e.append(r),r))}),r}clean(){this.buttons.forEach(n=>n.dispose()),this.buttons=[]}getButton(n){var e=this.buttons.find(i=>{var{name:r}=i;return r===n});return e&&e.instance}renderAfterButtons(n,e){return this._renderButtons(n,e,"after")}renderBeforeButtons(n,e){return this._renderButtons(n,e,"before")}updateButtons(n){this.buttons.forEach(e=>{(!n||-1!==n.indexOf(e.name))&&e.update()})}}var b1t=cw(),Cye="dx-loadindicator-segment",bye=tr.inherit({_getDefaultOptions:function(){return se(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var t=lu();return this.callBase().concat([{device:function(){return"android"===pn.real().platform&&!/chrome/i.test(b1t.userAgent)},options:{viaImage:!0}},{device:function(){return io(t)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return iW(t)},options:{_animatingSegmentCount:7}}])},_useTemplates:function(){return!1},_init:function(){this.callBase(),this.$element().addClass("dx-loadindicator")},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=U("<div>").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=U("<div>").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){!Xfe()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var t=this.option("_animatingSegmentInner");this._$indicator=U("<div>").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var n=this.option("_animatingSegmentCount");n>=0;--n){var e=U("<div>").addClass(Cye).addClass(Cye+n);t&&e.append(U("<div>").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(e)}},_renderMarkupForImage:function(){var t=this.option("indicatorSrc");this._$wrapper.addClass("dx-loadindicator-image"),t&&this._$wrapper.css("backgroundImage","url("+t+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var t=this.option("width"),n=this.option("height");if(t||n){t=wn(this.$element()),n=Ln(this.$element());var e=Math.min(n,t);this._$wrapper.css({height:e,width:e,fontSize:e})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(t){switch(t.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(t)}}});On("dxLoadIndicator",bye);const bd=bye;var xye="dx-texteditor-label",wye="dx-texteditor-with-label",Sye="dx-texteditor-with-floating-label",Dye="dx-texteditor-with-before-buttons",Eye="dx-texteditor-input",P1t="."+Eye,Oye="dx-placeholder",Tye="dx-validation-pending",BL=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],z1t=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"];function Iye(t){if(Z(t)&&!Array.isArray(t))throw Di.Error("E1053")}var W1t=Ru.inherit({ctor:function(t,n){n&&Iye(n.buttons),this._buttonCollection=new C1t(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._labelContainerElement=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return se(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:function(t){return Z(t)&&!1!==t?t:""},stylingMode:no().editorStylingMode||"outlined",showValidationMark:!0,label:"",labelMode:"static",labelMark:""})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return io(lu())},options:{stylingMode:no().editorStylingMode||"filled",labelMode:"floating"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:f1t}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(P1t).first()},_isFocused:function(){return l_(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find(".dx-texteditor-buttons-container").eq(0)},_isControlKey:function(t){return-1!==z1t.indexOf(t)},_renderStylingMode:function(){this.callBase(),this._updateButtonsStyling(this.option("stylingMode"))},_initMarkup:function(){this.$element().addClass("dx-texteditor"),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue(),this._renderLabel()},_render:function(){this.callBase(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent()},_renderInput:function(){this._$buttonsContainer=this._$textEditorContainer=U("<div>").addClass("dx-texteditor-container").appendTo(this.$element()),this._$textEditorInputContainer=U("<div>").addClass("dx-texteditor-input-container").appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_getInputContainer(){return this._$textEditorInputContainer},_renderPendingIndicator:function(){this.$element().addClass(Tye);var t=this._getInputContainer(),n=U("<div>").addClass("dx-pending-indicator").appendTo(t);this._pendingIndicator=this._createComponent(n,bd)},_disposePendingIndicator:function(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass(Tye))},_renderValidationState:function(){this.callBase();var t="pending"===this.option("validationStatus"),n=this.$element();t?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),!this._showValidMark&&!0===this.option("showValidationMark")&&(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),n.toggleClass("dx-valid",!!this._showValidMark)},_renderButtonContainers:function(){var t=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(t,this._$buttonsContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(t,this._$buttonsContainer)},_cleanButtonContainers:function(){var t,n;null===(t=this._$beforeButtonsContainer)||void 0===t||t.remove(),null===(n=this._$afterButtonsContainer)||void 0===n||n.remove(),this._buttonCollection.clean()},_clean(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._unobserveLabelContainerResize(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this._$buttonsContainer=null,this.callBase()},_createInput:function(){var t=U("<input>");return this._applyInputAttributes(t,this.option("inputAttr")),t},_setSubmitElementName:function(t){var n=this.option("inputAttr.name");return this.callBase(t||n||"")},_applyInputAttributes:function(t,n){var e=se(this._getDefaultAttributes(),n);t.attr(e).addClass(Eye).css("minHeight",this.option("height")?"0":"")},_getDefaultAttributes:function(){var t={autocomplete:"off"},{ios:n,mac:e}=pn.real();return(n||e)&&(t.placeholder=" "),t},_updateButtons:function(t){this._buttonCollection.updateButtons(t)},_updateButtonsStyling:function(t){we(this.option("buttons"),(n,e)=>{var{options:i,name:r}=e;if(i&&!i.stylingMode&&this.option("visible")){var o=this.getButton(r);o.option&&o.option("stylingMode","underlined"===t?"text":"contained")}})},_renderValue:function(){return this._renderInputValue().promise()},_renderInputValue:function(t){var n;t=null!==(n=t)&&void 0!==n?n:this.option("value");var e=this.option("text"),i=this.option("displayValue"),r=this.option("displayValueFormatter");return void 0!==i&&null!==t?e=r(i):Z(e)||(e=r(t)),this.option("text",e),this._input().val()!==(Z(e)?e:"")?this._renderDisplayText(e):this._toggleEmptinessEventHandler(),(new et).resolve()},_renderDisplayText:function(t){this._input().val(t),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var t=this._input().get(0).validity;if(t)return t.valid}return!0},_toggleEmptiness:function(t){this.$element().toggleClass("dx-texteditor-empty",t),this._togglePlaceholder(t)},_togglePlaceholder:function(t){this.$element().find(".".concat(Oye)).eq(0).toggleClass("dx-state-invisible",!t)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(t){this.callBase.apply(this,arguments);var n=this._input();n.prop("disabled",t)},_toggleTabIndex:function(){var t=this._input(),n=this.option("disabled"),e=this.option("focusStateEnabled");n||!e?t.attr("tabIndex",-1):t.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_unobserveLabelContainerResize:function(){this._labelContainerElement&&(Mm.unobserve(this._labelContainerElement),this._labelContainerElement=null)},_getLabelContainer:function(){return this._input()},_getLabelContainerWidth:function(){return wn(this._getLabelContainer())},_getLabelBeforeWidth:function(){return(this._$beforeButtonsContainer&&wn(this._$beforeButtonsContainer))??0},_updateLabelWidth:function(){this._label.updateBeforeWidth(this._getLabelBeforeWidth()),this._label.updateMaxWidth(this._getLabelContainerWidth())},_setLabelContainerAria:function(){this.setAria("labelledby",this._label.getId(),this._getLabelContainer())},_renderLabel:function(){this._unobserveLabelContainerResize(),this._labelContainerElement=U(this._getLabelContainer()).get(0);var{label:t,labelMode:n,labelMark:e}=this.option(),i={$editor:this.$element(),text:t,mark:e,mode:n,containsButtonsBefore:!!this._$beforeButtonsContainer,containerWidth:this._getLabelContainerWidth(),beforeWidth:this._getLabelBeforeWidth()};this._label=new class M1t{constructor(n){var{$editor:e,text:i,mode:r,mark:o,containsButtonsBefore:a,containerWidth:s,beforeWidth:l}=n;this._props={$editor:e,text:i,mode:r,mark:o,containsButtonsBefore:a,containerWidth:s,beforeWidth:l},this._id="".concat(xye,"-").concat(new Ni),this._render(),this._toggleMarkupVisibility()}_isVisible(){return!!this._props.text&&"hidden"!==this._props.mode}_render(){this._$before=U("<div>").addClass("dx-label-before"),this._$labelSpan=U("<span>"),this._$label=U("<div>").addClass("dx-label").append(this._$labelSpan),this._$after=U("<div>").addClass("dx-label-after"),this._$root=U("<div>").addClass(xye).attr("id",this._id).append(this._$before).append(this._$label).append(this._$after),this._updateMark(),this._updateText(),this._updateBeforeWidth(),this._updateMaxWidth()}_toggleMarkupVisibility(){var n=this._isVisible();this._updateEditorBeforeButtonsClass(n),this._updateEditorLabelClass(n),n?this._$root.appendTo(this._props.$editor):this._$root.detach()}_updateEditorLabelClass(n){this._props.$editor.removeClass(Sye).removeClass(wye),n&&this._props.$editor.addClass("floating"===this._props.mode?Sye:wye)}_updateEditorBeforeButtonsClass(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible();this._props.$editor.removeClass(Dye),n&&this._props.$editor.addClass(this._props.containsButtonsBefore?Dye:"")}_updateMark(){this._$labelSpan.attr("data-mark",this._props.mark)}_updateText(){this._$labelSpan.text(this._props.text)}_updateBeforeWidth(){this._$before.css({width:this._props.beforeWidth})}_updateMaxWidth(){this._$label.css({maxWidth:this._props.containerWidth})}$element(){return this._$root}isVisible(){return this._isVisible()}getId(){if(this._isVisible())return this._id}updateMode(n){this._props.mode=n,this._toggleMarkupVisibility()}updateText(n){this._props.text=n,this._updateText(),this._toggleMarkupVisibility()}updateMark(n){this._props.mark=n,this._updateMark()}updateContainsButtonsBefore(n){this._props.containsButtonsBefore=n,this._updateEditorBeforeButtonsClass()}updateBeforeWidth(n){this._props.beforeWidth=n,this._updateBeforeWidth()}updateMaxWidth(n){this._props.containerWidth=n,this._updateMaxWidth()}}(i),this._setLabelContainerAria(),this._labelContainerElement&&Mm.observe(this._labelContainerElement,this._updateLabelWidth.bind(this))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var t=this._input(),n=this.option("placeholder"),e=this._$placeholder=U("<div>").attr("data-dx_placeholder",n);e.insertAfter(t),e.addClass(Oye)},_attachPlaceholderEvents:function(){var t=kt(qn.up,this.NAME);Se.on(this._$placeholder,t,()=>{Se.trigger(this._input(),"focus")}),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||U()},_clearValueHandler:function(t){var n=this._input();t.stopPropagation(),this._saveValueChangeEvent(t),this._clearValue(),!this._isFocused()&&Se.trigger(n,"focus"),Se.trigger(n,"input")},_clearValue:function(){this.reset()},_renderEvents:function(){var t=this._input();we(BL,(n,e)=>{if(this.hasActionSubscription("on"+e)){var i=this._createActionByOption("on"+e,{excludeValidators:["readOnly"]});Se.on(t,kt(e.toLowerCase(),this.NAME),r=>{this._disposed||i({event:r})})}})},_refreshEvents:function(){var t=this._input();we(BL,(n,e)=>{Se.off(t,kt(e.toLowerCase(),this.NAME))}),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_keyDownHandler:function(t){var n=this._input(),e=t.ctrlKey&&"enter"===Wo(t),i=n.val()!==this.option("value");e&&i&&Se.trigger(n,"change")},_getValueChangeEventOptionName:function(){return"valueChangeEvent"},_renderValueChangeEvent:function(){var t=kt(this._renderValueEventName(),"".concat(this.NAME,"TextChange")),n=kt(this.option(this._getValueChangeEventOptionName()),"".concat(this.NAME,"ValueChange")),e=kt("keydown","".concat(this.NAME,"TextChange")),i=this._input();Se.on(i,t,this._keyPressHandler.bind(this)),Se.on(i,n,this._valueChangeEventHandler.bind(this)),Se.on(i,e,this._keyDownHandler.bind(this))},_cleanValueChangeEvent:function(){var t=".".concat(this.NAME,"ValueChange"),n=".".concat(this.NAME,"TextChange");Se.off(this._input(),t),Se.off(this._input(),n)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_isInput:function(t){return t===this._input().get(0)},_preventNestedFocusEvent:function(t){if(t.isDefaultPrevented())return!0;var n=this._isNestedTarget(t.relatedTarget);return"focusin"===t.type?n=n&&this._isNestedTarget(t.target)&&!this._isInput(t.target):n||this._toggleFocusClass(!1,this.$element()),n&&t.preventDefault(),n},_isNestedTarget:function(t){return!!this.$element().find(t).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(t){this._preventNestedFocusEvent(t),this.callBase.apply(this,arguments)},_focusOutHandler:function(t){this._preventNestedFocusEvent(t),this.callBase.apply(this,arguments)},_toggleFocusClass:function(t,n){this.callBase(t,this._focusClassTarget(n))},_hasFocusClass:function(t){return this.callBase(U(t||this.$element()))},_renderEmptinessEvent:function(){var t=this._input();Se.on(t,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var t=this._input().val(),n=(""===t||null===t)&&this._isValueValid();this._toggleEmptiness(n)},_valueChangeEventHandler:function(t,n){this.option("readOnly")||(this._saveValueChangeEvent(t),this.option("value",arguments.length>1?n:this._input().val()),this._saveValueChangeEvent(void 0))},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),Se.off(this._input(),"keyup.onEnterKey.dxTextEditor"),Se.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(t){this._disposed||"enter"===Wo(t)&&this._enterKeyAction({event:t})},_updateValue:function(){this._options.silent("text",null),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_hasActiveElement:function(){return this._input().is(It.getActiveElement(this._input()[0]))},_optionChanged:function(t){var{name:n,fullName:e,value:i}=t,r=n.replace("on","");if(BL.includes(r))this._refreshEvents();else switch(n){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(t),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"label":this._label.updateText(i),this._setLabelContainerAria();break;case"labelMark":this._label.updateMark(i);break;case"labelMode":this._label.updateMode(i),this._setLabelContainerAria();break;case"width":this.callBase(t),this._label.updateMaxWidth(this._getLabelContainerWidth());break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(t);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":case"showValidationMark":break;case"value":this._updateValue(),this.callBase(t);break;case"inputAttr":this._applyInputAttributes(this._input(),this.option(n));break;case"stylingMode":this._renderStylingMode(),this._updateLabelWidth();break;case"buttons":e===n&&Iye(i),this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")),this._updateLabelWidth(),this._label.updateContainsButtonsBefore(!!this._$beforeButtonsContainer);break;case"visible":this.callBase(t),i&&this.option("buttons")&&(this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")));break;case"displayValueFormatter":this._invalidate();break;default:this.callBase(t)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(t){var n=this._input();"search"===t&&(t="text");try{n.prop("type",t)}catch{n.prop("type","text")}},getButton(t){return this._buttonCollection.getButton(t)},focus:function(){Se.trigger(this._input(),"focus")},reset:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var t=this._getDefaultOptions();this.option("value")===t.value?(this._options.silent("text",""),this._renderValue()):this.option("value",t.value)},on:function(t,n){var e=this.callBase(t,n),i=t.charAt(0).toUpperCase()+t.substr(1);return BL.indexOf(i)>=0&&this._refreshEvents(),e}});const G1t=W1t;var NG="dxMask";class kye{constructor(n){this.editor=n,this.DIRECTION={FORWARD:"forward",BACKWARD:"backward"},this.NAME=this._getStrategyName()}_getStrategyName(){return"base"}editorOption(){return this.editor.option(...arguments)}editorInput(){return this.editor._input()}editorCaret(n){if(!n)return this.editor._caret();this.editor._caret(n)}getHandler(n){return(this["_".concat(n,"Handler")]||function(){}).bind(this)}attachEvents(){var n=this.editorInput();this.getHandleEventNames().forEach(e=>{var i=kt(e.toLowerCase(),NG);Se.on(n,i,this.getEventHandler(e))}),this._attachChangeEventHandlers()}getHandleEventNames(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]}getEventHandler(n){return this["_".concat(n,"Handler")].bind(this)}detachEvents(){Se.off(this.editorInput(),".".concat(NG))}_attachChangeEventHandlers(){this.editorOption("valueChangeEvent").split(" ").includes("change")&&Se.on(this.editorInput(),kt("blur beforedeactivate",NG),function(n){this._suppressCaretChanging(this._changeHandler,[n]),this._changeHandler(n)}.bind(this.editor))}_focusInHandler(){if(this.editor._showMaskPlaceholder(),this.editor._direction(this.DIRECTION.FORWARD),!this.editor._isValueEmpty()&&this.editorOption("isValid"))this.editor._adjustCaret();else{var n=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:n,end:n})}.bind(this.editor),0)}}_focusOutHandler(n){this.editor._changeHandler(n),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))}_cutHandler(n){var e=this.editorCaret(),i=this.editorInput().val().substring(e.start,e.end);this.editor._maskKeyHandler(n,()=>WU(n,i))}_dropHandler(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this.editor))}_clearDragTimer(){clearTimeout(this._dragTimer)}_keyDownHandler(){this._keyPressHandled=!1}_pasteHandler(n){var{editor:e}=this;this._keyPressHandled=!0;var i=this.editorCaret();e._maskKeyHandler(n,()=>{var r=WU(n),o=e._maskRulesChain.text().substring(i.end),a=e._handleChain({text:r,start:i.start,length:r.length}),s=i.start+a;e._handleChain({text:o,start:s,length:o.length}),e._caret({start:s,end:s})})}_autoFillHandler(n){var{editor:e}=this,i=this.editorInput().val();this._inputHandlerTimer=setTimeout(()=>{this._keyPressHandled=!0,this._isAutoFill()&&(this._keyPressHandled=!0,e._maskKeyHandler(n,()=>{e._handleChain({text:i,start:0,length:i.length})}),e._validateMask())})}_isAutoFill(){var n=this.editor._input(),e=!1;if(Ro.webkit){var i=n.get(0);e=i&&i.matches(":-webkit-autofill")}return e}runWithoutEventProcessing(n){var e=this._keyPressHandled;this._keyPressHandled=!0,n(),this._keyPressHandled=e}_backspaceHandler(){}_delHandler(n){var{editor:e}=this;this._keyPressHandled=!0,e._maskKeyHandler(n,()=>!e._hasSelection()&&e._handleKey(" "))}clean(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)}}const Z1t=class Y1t extends kye{_getStrategyName(){return"default"}getHandleEventNames(){return[...super.getHandleEventNames(),"keyPress"]}_keyPressHandler(n){if(!this._keyPressHandled&&(this._keyPressHandled=!0,!this.editor._isControlKeyFired(n))){var{editor:e}=this;e._maskKeyHandler(n,()=>e._handleKey(D2(n)))}}_inputHandler(n){if(this._backspaceInputHandled(n.originalEvent&&n.originalEvent.inputType)&&this._handleBackspaceInput(n),n.originalEvent&&this._autoFillHandler(n),!this._keyPressHandled){this._keyPressHandled=!0;var e=this.editorInput().val(),i=this.editorCaret();if(i.end){i.start=i.end-1;var r=e.substring(0,i.start)+e.substring(i.end),o=e[i.start],{editor:a}=this;this.editorInput().val(r),a._caret({start:i.start,end:i.start}),a._maskKeyHandler(n,()=>a._handleKey(o))}}}_backspaceHandler(n){var{editor:e}=this;this._keyPressHandled=!0;var i=(r,o)=>{r&&(e._direction(this.DIRECTION.FORWARD),e._adjustCaret());var a=this.editorCaret();return new Promise(s=>{clearTimeout(this._backspaceHandlerTimeout),this._backspaceHandlerTimeout=setTimeout(function(){o(a),s()})})};e._maskKeyHandler(n,()=>e._hasSelection()?i(!0,r=>{e._displayMask(r),e._maskRulesChain.reset()}):e._tryMoveCaretBackward()?i(!1,r=>{this.editorCaret(r)}):(e._handleKey(" ",this.DIRECTION.BACKWARD),i(!0,r=>{e._displayMask(r),e._maskRulesChain.reset()})))}_backspaceInputHandled(n){return"deleteContentBackward"===n&&!this._keyPressHandled}_handleBackspaceInput(n){var{start:e,end:i}=this.editorCaret();this.editorCaret({start:e+1,end:i+1}),this._backspaceHandler(n)}},Q1t=class J1t extends kye{_getStrategyName(){return"inputEvents"}getHandleEventNames(){return[...super.getHandleEventNames(),"beforeInput"]}_beforeInputHandler(){this._prevCaret=this.editorCaret()}_inputHandler(n){var{originalEvent:e}=n;if(e){var{inputType:i,data:r}=e,o=this.editorCaret();if("deleteContentBackward"===i){var a=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:o.start,length:a,text:this._getEmptyString(a)})}else{var s,l,u;if(!o.end)return;this._autoFillHandler(e),this.editorCaret(o);var f=(null===(s=this._prevCaret)||void 0===s?void 0:s.end)-(null===(l=this._prevCaret)||void 0===l?void 0:l.start),S=r+(f?this._getEmptyString(f-r.length):"");this.editor.setForwardDirection(),this._updateEditorMask({start:null===(u=this._prevCaret)||void 0===u?void 0:u.start,length:f||S.length,text:S})||this.editorCaret(this._prevCaret)}}}_getEmptyString(n){return Array(n+1).join(" ")}_updateEditorMask(n){var e=n.text.length,i=this.editor._handleChain(n);if(this.editor.isForwardDirection()){var{start:r,end:o}=this.editorCaret(),a=i-e;r<=i&&i>1&&this.editorCaret({start:r+a,end:o+a}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!i}};var eSt=function(){return{}},NL=LG,Aye="dx-texteditor-masked",VG="forward",iSt={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(t){return VL(t)},l:function(t){return VL(t)||Pye(t)},C:/\S/,c:/./,A:function(t){return VL(t)||Fye(t)},a:function(t){return VL(t)||Fye(t)||Pye(t)}};function Fye(t){return/[0-9]/.test(t)}function VL(t){var n=t.charCodeAt();return 64<n&&n<91||96<n&&n<123||n>127}function Pye(t){return" "===t}var rSt=G1t.inherit({_getDefaultOptions:function(){return se(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:ye.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var t=this,n={backspace:t._maskStrategy.getHandler("backspace"),del:t._maskStrategy.getHandler("del"),enter:t._changeHandler},e=t.callBase();return we(n,function(i,r){var o=e[i];e[i]=function(a){t.option("mask")&&r.call(t,a),o&&o(a)}}),e},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=function Xwt(){return"onbeforeinput"in It.createElement("input")&&!Ro.chrome||function Zwt(){var{android:t,version:n}=pn.real();return t&&n[0]>4}()}()?new Q1t(this):new Z1t(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){if(this._onMouseWheel!==Be){var n=this._input(),e=kt(p_,this.NAME),i=this._createAction(function(r){var{event:o}=r;l_(n)&&!Xo(o)&&(this._onMouseWheel(o),o.preventDefault(),o.stopPropagation())}.bind(this));Se.off(n,e),Se.on(n,e,function(r){i({event:r})})}},_onMouseWheel:Be,_render:function(){this._renderMask(),this.callBase(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=U("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(Aye),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(Aye),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(t,n){NL=eSt;try{t.apply(this,n)}finally{NL=LG}},_changeHandler:function(t){var n=this._input(),e=n.val();if(e!==this._changedValue){this._changedValue=e;var i=u_(t,{type:"change"});Se.trigger(n,i)}},_parseMask:function(){this._maskRules=se({},iSt,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(t){var n=this.option("mask");if(t>=n.length)return new Jwt;var e=n[t],i="\\"===e,r=i?new cye({maskChar:n[t+1]}):this._getMaskRule(e);return r.next(this._parseMaskRule(t+1+i)),r},_getMaskRule:function(t){var n;return we(this._maskRules,function(e,i){if(e===t)return n={pattern:e,allowedChars:i},!1}),Z(n)?new dye(se({maskChar:this.option("maskChar")},n)):new cye({maskChar:t})},_renderMaskedValue:function(){if(this._maskRulesChain){var t=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var n={length:t.length};n[this._isMaskedValueMode()?"text":"value"]=t,this._handleChain(n),this._displayMask()}},_replaceSelectedText:function(t,n,e){return void 0===e?t:t.slice(0,n.start)+e+t.slice(n.end)},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(t){t=t||this._caret(),this._renderValue(),this._caret(t)},_isValueEmpty:function(){return oP(this._value)},_shouldShowMask:function(){return"onFocus"!==this.option("showMaskMode")||l_(this._input())||!this._isValueEmpty()},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var t=this._maskRulesChain.text();this.option("text",t),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(t)}},_renderValue:function(){if(this._maskRulesChain&&(this._showMaskPlaceholder(),this._$hiddenElement)){var t=this._maskRulesChain.value(),n=oP(t)?"":this._getPreparedValue();this._$hiddenElement.val(n)}return this.callBase()},_getPreparedValue:function(){return this._convertToValue().replace(/\s+$/,"")},_valueChangeEventHandler:function(t){this._maskRulesChain?(this._saveValueChangeEvent(t),this.option("value",this._getPreparedValue())):this.callBase.apply(this,arguments)},_isControlKeyFired:function(t){return this._isControlKey(Wo(t))||Xo(t)},_handleChain:function(t){var n=this._maskRulesChain.handle(this._normalizeChainArguments(t));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),n},_normalizeChainArguments:function(t){return(t=t||{}).index=0,t.fullText=this._maskRulesChain.text(),t},_convertToValue:function(t){return this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(t||this._textValue||""):t||this._value||""},_replaceMaskCharWithEmpty:function(t){return t.replace(new RegExp(this.option("maskChar"),"g")," ")},_maskKeyHandler:function(t,n){if(!this.option("readOnly")){this.setForwardDirection(),t.preventDefault(),this._handleSelection();var e=this._input().val(),i=()=>{e!==this._input().val()&&this._maskStrategy.runWithoutEventProcessing(()=>Se.trigger(this._input(),"input"))},r=n();r?r.then(i):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),i())}},_handleKey:function(t,n){this._direction(n||VG),this._adjustCaret(t),this._handleKeyChain(t),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var t=this._caret(),n=new Array(t.end-t.start+1).join(" ");this._handleKeyChain(n)}},_handleKeyChain:function(t){var n=this._caret(),e=this.isForwardDirection()?n.start:n.start-1,i=this.isForwardDirection()?n.end:n.end-1;this._handleChain({text:t,start:e,length:e===i?1:i-e})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var t=this._caret().start;return this._adjustCaret(),!t||t!==this._caret().start},_adjustCaret:function(t){var n=this._caret().start,e=this.isForwardDirection(),i=this._maskRulesChain.adjustedCaret(n,e,t);this._caret({start:i,end:i})},_moveCaret:function(){var t=this._caret().start,n=t+(this.isForwardDirection()?0:-1),e=this._maskRulesChain.isAccepted(n)?t+(this.isForwardDirection()?1:-1):t;this._caret({start:e,end:e})},_caret:function(t,n){var e=this._input();if(e.length){if(!arguments.length)return NL(e);NL(e,t,n)}},_hasSelection:function(){var t=this._caret();return t.start!==t.end},_direction:function(t){if(!arguments.length)return this._typingDirection;this._typingDirection=t},setForwardDirection:function(){this._direction(VG)},setBackwardDirection:function(){this._direction("backward")},isForwardDirection:function(){return this._direction()===VG},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var t=oP(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:t,validationError:t?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(t){if(!t){var n=this.option("value");this.option({text:n,isValid:!0}),this.validationRequest.fire({value:n,editor:this}),this._renderValue()}},_optionChanged:function(t){switch(t.name){case"mask":this._updateMaskOption(),this._processEmptyMask(t.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(t),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(t)}}});const Rye=rSt;On("dxTextEditor",Rye);const Lye=Rye;var oSt=Fn(),aSt=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],Bye="dx-searchbox",Nye=Lye.inherit({ctor:function(t,n){n&&(this._showClearButton=n.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return se(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass("dx-textbox"),this.callBase(),this.setAria("role","textbox")},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_useTemplates:function(){return!1},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){var t=this._getMaxLength();t&&t>0?this._input().attr("maxLength",t):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var t=this._$element;"search"===this.option("mode")?(t.addClass(Bye),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(t.removeClass(Bye),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var t=U("<div>").addClass("dx-icon").addClass("dx-icon-search");t.prependTo(this._input().parent()),this._$searchIcon=t},_getLabelContainerWidth:function(){if(this._$searchIcon){var t=this._input().parent();return wn(t)-this._getLabelBeforeWidth()}return this.callBase()},_getLabelBeforeWidth:function(){var t=this.callBase();return this._$searchIcon&&(t+=ii(this._$searchIcon)),t},_optionChanged:function(t){switch(t.name){case"maxLength":this._toggleMaxLengthProp();break;case"mode":this.callBase(t),this._updateLabelWidth();break;case"mask":this.callBase(t),this._toggleMaxLengthProp();break;default:this.callBase(t)}},_onKeyDownCutOffHandler:function(t){var n=this._getMaxLength();if(!n||t.ctrlKey||this._hasSelection())return!0;var e=U(t.target),i=Wo(t);return this._cutOffExtraChar(e),e.val().length<n||aSt.includes(i)||""!==oSt.getSelection().toString()},_onChangeCutOffHandler:function(t){var n=U(t.target);this.option("maxLength")&&this._cutOffExtraChar(n)},_cutOffExtraChar:function(t){var n=this._getMaxLength(),e=t.val();n&&e.length>n&&t.val(e.substr(0,n))},_getMaxLength:function(){return this.option("mask")?null:this.option("maxLength")}});On("dxTextBox",Nye);const Th=Nye;var GT=function(t){if(Rn())return ii(t)},HG=function(t){return null===t&&(t=void 0),"function"==typeof t&&(t=t()),t},Vye="dx-dropdowneditor-input-wrapper",HL="dx-dropdowneditor-overlay",Hye="ios"===pn.current().platform,zye=Th.inherit({_supportedKeys:function(){return se({},this.callBase(),{tab:function(t){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var n=t.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();n&&(Se.trigger(n,"focus"),n.select()),t.preventDefault()}},escape:function(t){return this.option("opened")&&t.preventDefault(),this.close(),!0},upArrow:function(t){return!(!Xo(t)&&(t.preventDefault(),t.stopPropagation(),t.altKey)&&(this.close(),1))},downArrow:function(t){return!(!Xo(t)&&(t.preventDefault(),t.stopPropagation(),t.altKey)&&(this._validatedOpening(),1))},enter:function(t){return this.option("opened")&&(t.preventDefault(),this._valueChangeEventHandler(t)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:Wwt}])},_getDefaultOptions:function(){return se(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{showTitle:!1},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:ye.format("OK"),cancelButtonText:ye.format("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1,validationMessagePosition:"auto"})},_useTemplates:function(){return!0},_getDefaultPopupPosition:function(t){var n=Eg(t);return{offset:{h:0,v:-1},my:n+" top",at:n+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(t){return"generic"===t.platform},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+Vye).first()},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition:function(t){var{my:n,at:e}=this._getDefaultPopupPosition(t),i=this.option("popupPosition");this.option("popupPosition",se({},i,{my:n,at:e}))},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass("dx-dropdowneditor"),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this._wrapInput(),this._setDefaultAria()},_wrapInput:function(){this._$container=this.$element().wrapInner(U("<div>").addClass(Vye)).children().eq(0)},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this._isEditable()||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask:function(){this.option("fieldTemplate")||this.callBase()},_renderField:function(){var t=this._getFieldTemplate();t&&this._renderTemplatedField(t,this._fieldRenderData())},_renderPlaceholder:function(){this._getFieldTemplate()||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue(),this.callBase().always(this._renderField.bind(this))},_renderTemplatedField:function(t,n){var e;this._fieldRenderQueueLength=(null!==(e=this._fieldRenderQueueLength)&&void 0!==e?e:0)+1;var i=l_(this._input()),r=this._$container;this._detachKeyboardEvents(),this._refreshButtonsContainer(),this._detachWrapperContent(),this._detachFocusEvents(),r.empty();var o=U("<div>").addClass("dx-dropdowneditor-field-template-wrapper").appendTo(r);t.render({model:n,container:kn(o),onRendered:()=>{if(this._fieldRenderQueueLength--,0===this._fieldRenderQueueLength){var a=this._input();if(!a.length)throw Di.Error("E1010");this._integrateInput(),i&&Se.trigger(a,"focus")}}}),this._attachWrapperContent(r)},_detachWrapperContent(){var t,n,e;this.option("useHiddenSubmitElement")&&(null===(t=this._$submitElement)||void 0===t||t.detach());var r=null===(n=this._$beforeButtonsContainer)||void 0===n?void 0:n[0].parentNode,o=null===(e=this._$afterButtonsContainer)||void 0===e?void 0:e[0].parentNode;r?.removeChild(this._$beforeButtonsContainer[0]),o?.removeChild(this._$afterButtonsContainer[0])},_attachWrapperContent(t){var n,e=this.option("useHiddenSubmitElement");t.prepend(this._$beforeButtonsContainer),e&&(null===(n=this._$submitElement)||void 0===n||n.appendTo(t)),t.append(this._$afterButtonsContainer)},_refreshButtonsContainer(){this._$buttonsContainer=this.$element().children().eq(0)},_integrateInput:function(){this._renderFocusState(),this._refreshValueChangeEvent(),this._refreshEvents(),this._refreshEmptinessEvent()},_refreshEmptinessEvent:function(){Se.off(this._input(),"input blur",this._toggleEmptinessEventHandler),this._renderEmptinessEvent()},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this._templateManager.addDefaultTemplates({dropDownButton:new bg(function(t){var n=U("<div>").addClass("dx-dropdowneditor-icon");U(t.container).append(n)})}),this.callBase()},_renderOpenHandler:function(){var t=this._inputWrapper(),n=kt(Vi,this.NAME),e=this.option("openOnFieldClick");Se.off(t,n),Se.on(t,n,this._getInputClickHandler(e)),this.$element().toggleClass("dx-dropdowneditor-field-clickable",e),e&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){Hye&&(this._detachFocusOutEvents(),Se.on(this._inputWrapper(),kt("focusout",this.NAME),t=>{var n=t.relatedTarget,e=this.content?U(this.content()).closest("."+HL):this._$popup;n&&this.option("opened")&&0===U(n).closest("."+HL,e).length&&this.close()}))},_detachFocusOutEvents:function(){Hye&&Se.off(this._inputWrapper(),kt("focusout",this.NAME))},_getInputClickHandler:function(t){return t?n=>{this._executeOpenAction(n)}:n=>{this._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(t){this._openOnFieldClickAction({event:t})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!l_(this._input())&&(this._resetCaretPosition(),Se.trigger(this._input(),"focus")),!0)},_resetCaretPosition:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this._input().get(0);if(n){var{value:e}=n,i=Z(e)&&(t||this._isEditable())?e.length:0;this._caret({start:i,end:i},!0)}},_isEditable:function(){return this.option("acceptCustomValue")},_toggleOpenState:function(t){this._focusInput()&&(this.option("readOnly")||(t=arguments.length?t:!this.option("opened"),this.option("opened",t)))},_getControlsAria(){return this._popup&&this._popupContentId},_renderOpenedState:function(){var t=this.option("opened");t&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",t),this._setPopupOption("visible",t);var n={expanded:t,controls:this._getControlsAria()};this.setAria(n),this.setAria("owns",t?this._popupContentId:void 0,this.$element())},_createPopup:function(){this._$popup||(this._$popup=U("<div>").addClass(HL).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:Be,_renderPopup:function(){var t=se(this._popupConfig(),this._options.cache("dropDownOptions"));delete t.closeOnOutsideClick,t.elementAttr&&!Object.keys(t.elementAttr).length&&delete t.elementAttr,this._popup=this._createComponent(this._$popup,Ss,t),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_setPopupContentId(t){this._popupContentId="dx-"+new Ni,this.setAria("id",this._popupContentId,t)},_contentReadyHandler:Be,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:se(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),_ignoreFunctionValueDeprecation:!0,width:()=>GT(this.$element()),height:"auto",shading:!1,hideOnParentScroll:!0,hideOnOutsideClick:t=>this._closeOutsideDropDownHandler(t),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,dragEnabled:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null,_wrapperClassExternal:HL}},_popupInitializedHandler:function(){return this.option("onPopupInitialized")?t=>{this._popupInitializedAction({popup:t.component})}:null},_dimensionChanged:function(){!Rn()||this.$element().is(":visible")?this._updatePopupWidth():this.close()},_updatePopupWidth:function(){void 0===HG(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>GT(this.$element()))},_popupPositionedHandler:function(t){var n,e,{labelMode:i,stylingMode:r}=this.option();if(this._popup){var o=this._popup.$overlayContent(),a=null===(n=t.position)||void 0===n||null===(e=n.v)||void 0===e?void 0:e.flip,s="hidden"!==i&&"outlined"===r;if(t.position&&o.toggleClass("dx-dropdowneditor-overlay-flipped",a),a&&s&&this._label.isVisible()){var l=this._label.$element();kr(o,{top:Ra(o).top-parseInt(l.css("fontSize"))})}}},_popupShowingHandler:Be,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){var t;this._openAction(),null===(t=this._validationMessage)||void 0===t||t.option("positionSide",this._getValidationMessagePositionSide())},_popupHiddenHandler:function(){var t;this._closeAction(),null===(t=this._validationMessage)||void 0===t||t.option("positionSide",this._getValidationMessagePositionSide())},_getValidationMessagePositionSide:function(){var t=this.option("validationMessagePosition");if("auto"!==t)return t;var n="bottom";if(this._popup&&this._popup.option("visible")){var{top:e}=rs.setup(this.$element()),{top:i}=rs.setup(this._popup.$content());n=e+this.option("popupPosition").offset.v>i?"bottom":"top"}return n},_closeOutsideDropDownHandler:function(t){var{target:n}=t,e=U(n),i=this.getButton("dropDown"),r=i&&i.$element(),o=!!e.closest(this.$element()).length,a=!!e.closest(r).length;return!o&&!a},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(t,n){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(t){var n=U(t.currentTarget);(t.shiftKey&&n.is(this._getFirstPopupElement())||!t.shiftKey&&n.is(this._getLastPopupElement()))&&(Se.trigger(this._input(),"focus"),t.preventDefault())},_popupElementEscHandler:function(){Se.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(t){t.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),t.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var t=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(t)},_applyButtonsLocation:function(t){var n=this.option("buttonsLocation"),e=t;if("default"!==n){var i=tw(n);we(e,function(r,o){se(o,{toolbar:i[0],location:i[1]})})}return e},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_popupOptionChanged:function(t){var n=tr.getOptionsFromContainer(t);this._setPopupOption(n);var e=Object.keys(n);(-1!==e.indexOf("width")||-1!==e.indexOf("height"))&&this._dimensionChanged()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=U("<input>").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_optionChanged:function(t){var n;switch(t.name){case"width":case"height":this.callBase(t),null===(n=this._popup)||void 0===n||n.repaint();break;case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":Z(t.value)?this._renderField():this._invalidate();break;case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(t),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":break;case"deferRendering":Rn()&&this._createPopup();break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(t.value),this.callBase(t);break;default:this.callBase(t)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return kn(this._input())},content:function(){return this._popup?this._popup.content():null}});On("dxDropDownEditor",zye);const zL=zye;var Uye="dx-list-group",Wye=function(t){return(t.group<<20)+t.item},cC=function(t){return{group:t>>20,item:1048575&t}},vSt=dG.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+Uye)},_groupItemElements:function(t){return t.find(".dx-list-item")},getIndexByItemData:function(t){var n=this._collectionWidget.option("items"),e=!1;return!!t&&(t.items&&t.items.length&&(t=t.items[0]),we(n,function(i,r){if(!r.items||(we(r.items,function(o,a){return a!==t||(e={group:i,item:o},!1)}),e))return!1}),e)},getItemDataByIndex:function(t){var n=this._collectionWidget.option("items");return di(t)?this.itemsGetter()[t]:t&&n[t.group]&&n[t.group].items[t.item]||null},itemsGetter:function(){for(var t=[],n=this._collectionWidget.option("items"),e=0;e<n.length;e++)n[e]&&n[e].items?t=t.concat(n[e].items):t.push(n[e]);return t},deleteItemAtIndex:function(t){var n=cC(t);this._collectionWidget.option("items")[n.group].items.splice(n.item,1)},getKeysByItems:function(t){var e,n=[];for(e=0;e<t.length;e++)t[e]&&t[e].items?n=n.concat(t[e].items):n.push(t[e]);var i=[];for(e=0;e<n.length;e++)i.push(this._collectionWidget.keyOf(n[e]));return i},getIndexByKey:function(t,n){var e=n||this._collectionWidget.option("items"),i=-1,r=this;return we(e,function(o,a){if(a.items&&(we(a.items,function(s,l){var u=r._collectionWidget.keyOf(l);if(r._equalKeys(u,t))return i={group:o,item:s},!1}),-1!==i))return!1}),i},_getGroups:function(t){var e=this._collectionWidget._dataController.group();return e?cg.queryByOptions(Ha(t),{group:e}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(t,n){var e=[],i=this._getGroups(n),r={},o=a=>{var s=this.getIndexByKey(a,i),l=s&&i[s.group];if(l)return{groupKey:l.key,item:l.items[s.item]}};return we(t,function(a,s){var l=o(s);if(l){var u=l.groupKey,f=l.item,S=r[u];S||(r[u]=S={key:u,items:[]},e.push(S)),S.items.push(f)}}),e},moveItemAtIndexToIndex:function(t,n){var e=this._collectionWidget.option("items"),i=cC(t),r=cC(n),o=e[i.group].items,a=e[r.group].items,s=o[i.item];o.splice(i.item,1),a.splice(r.item,0,s)},_isItemIndex:function(t){return t&&di(t.group)&&di(t.item)},_getNormalizedItemIndex:function(t){var n=U(t),e=n.closest("."+Uye);return e.length?Wye({group:this._groupElements().index(e),item:this._groupItemElements(e).index(n)}):-1},_normalizeItemIndex:function(t){return Wye(t)},_denormalizeItemIndex:function(t){return cC(t)},_getItemByNormalizedIndex:function(t){var n=cC(t),e=this._groupElements().eq(n.group);return this._groupItemElements(e).eq(n.item)},_itemsFromSameParent:function(t,n){return cC(t).group===cC(n).group}});const ySt=vSt;var Gye={};function T_(t,n,e){var i=Gye,r={};r[t]=i[t]?i[t]:{},r[t][n]=e,se(i,r)}var jye=[],UL=function(t,n,e){jye.push({enabled:t,decoratorType:n,decoratorSubType:e})};UL(function(){return this.option("menuItems").length},function(){return"menu"},function(){return this.option("menuMode")}),UL(function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")},function(){var t=this.option("itemDeleteMode");return"toggle"===t||"slideButton"===t||"swipe"===t||"static"===t?"delete":"menu"},function(){var t=this.option("itemDeleteMode");return"slideItem"===t&&(t="slide"),t}),UL(function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")},function(){return"selection"},function(){return"default"}),UL(function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")},function(){return"reorder"},function(){return"default"});var OSt=ji.inherit({ctor:function(t){this._list=t,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&we(this._decorators,function(t,n){n.dispose()})},_fetchRequiredDecorators:function(){this._decorators=[],we(jye,function(t,n){if(n.enabled.call(this._list)){var i=n.decoratorType.call(this._list),r=n.decoratorSubType.call(this._list),o=this._createDecorator(i,r);this._decorators.push(o)}}.bind(this))},_createDecorator:function(t,n){return new(this._findDecorator(t,n))(this._list)},_findDecorator:function(t,n){var e,i=null===(e=Gye[t])||void 0===e?void 0:e[n];if(!i)throw Di.Error("E1012",t,n);return i},modifyItemElement:function(t){var n=U(t.itemElement),e={$itemElement:n};this._prependBeforeBags(n,e),this._appendAfterBags(n,e),this._applyDecorators("modifyElement",e)},afterItemsRendered:function(){this._applyDecorators("afterRender")},_prependBeforeBags:function(t,n){var e=this._collectDecoratorsMarkup("beforeBag",n,"dx-list-item-before-bag");t.prepend(e)},_appendAfterBags:function(t,n){var e=this._collectDecoratorsMarkup("afterBag",n,"dx-list-item-after-bag");t.append(e)},_collectDecoratorsMarkup:function(t,n,e){var i=U("<div>");return we(this._decorators,function(){var r=U("<div>").addClass(e);this[t](se({$container:r},n)),r.children().length&&i.append(r)}),i.children()},_applyDecorators:function(t,n){we(this._decorators,function(){this[t](n)})},_handlerExists:function(t){if(!this._decorators)return!1;for(var n=this._decorators,e=n.length,i=0;i<e;i++)if(n[i][t]!==Be)return!0;return!1},_eventHandler:function(t,n,e){if(!this._decorators)return!1;for(var i=!1,r=this._decorators,o=r.length,a=0;a<o&&!(i=r[a][t](n,e));a++);return i},handleClick:function(t,n){return this._eventHandler("handleClick",t,n)},handleKeyboardEvents:function(t,n){return this._eventHandler("handleKeyboardEvents",t,n)},handleEnterPressing:function(t){return this._eventHandler("handleEnterPressing",t)},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(t,n){return this._eventHandler("handleContextMenu",t,n)},getExcludedItemSelectors:function(){var t=[];return this._applyDecorators("getExcludedSelectors",t),t.join(",")}});const TSt=OSt;var WL="dxswipestart",GL="dxswipe",jT="dxswipeend",ISt={defaultItemSizeFunc:function(){return wn(this.getElement())},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(t){return(Po(t).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,t)},isFastSwipe:function(t){var n=Po(t);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(n.x-this._tickData.x)>=n.time-this._tickData.time}},kSt={defaultItemSizeFunc:function(){return Ln(this.getElement())},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(t){return(Po(t).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,t)},isFastSwipe:function(t){var n=Po(t);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(n.y-this._tickData.y)>=n.time-this._tickData.time}},MSt={horizontal:ISt,vertical:kSt},ASt=yW.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(t){this.callBase(t),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return MSt[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(t){this._tickData=Po(t)},_start:function(t){this._savedEventData=Po(t),(t=this._fireEvent(WL,t)).cancel||(this._maxLeftOffset=t.maxLeftOffset,this._maxRightOffset=t.maxRightOffset,this._maxTopOffset=t.maxTopOffset,this._maxBottomOffset=t.maxBottomOffset)},_move:function(t){var n=this._getStrategy(),e=Po(t),i=n.calcOffsetRatio.call(this,t);i=this._fitOffset(i,this.elastic),e.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=e),this._fireEvent(GL,t,{offset:i}),t.preventDefault()},_end:function(t){var n=this._getStrategy(),e=n.calcOffsetRatio.call(this,t),i=n.isFastSwipe.call(this,t),r=e,o=this._calcTargetOffset(e,i);r=this._fitOffset(r,this.elastic),o=this._fitOffset(o,!1),this._fireEvent(jT,t,{offset:r,targetOffset:o})},_fitOffset:function(t,n){var i=this._getStrategy().getBounds.call(this);return t<-i[0]?n?(-2*i[0]+t)/3:-i[0]:t>i[1]?n?(2*i[1]+t)/3:i[1]:t},_calcTargetOffset:function(t,n){var e;return n?(e=Math.ceil(Math.abs(t)),t<0&&(e=-e)):e=Math.round(t),e}});oC({emitter:ASt,events:[WL,GL,jT]});var Kye="dx-list-item-badge-container",UG="dx-list-item-chevron-container",LSt=Lw.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(t){if(this._$element.children("."+Kye).remove(),t){var n=U("<div>").addClass(Kye).append(U("<div>").addClass("dx-list-item-badge").addClass("dx-badge").text(t)),e=this._$element.children("."+UG).first();e.length>0?n.insertBefore(e):n.appendTo(this._$element)}},_renderShowChevron:function(t){if(this._$element.children("."+UG).remove(),t){var n=U("<div>").addClass(UG),e=U("<div>").addClass("dx-list-item-chevron");n.append(e).appendTo(this._$element)}}});const BSt=LSt;var WG="dxScrollbar",$ye="dx-scrollable-scrollbar",qye="".concat($ye,"-active"),Yye="horizontal",m1=null,USt=tr.inherit({_getDefaultOptions:function(){return se(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:"onScroll",containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=U("<div>").addClass("dx-scrollable-scroll"),U("<div>").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass($ye).append(this._$thumb)},isThumb:function(t){return!!this.$element().find(t).length},_isHoverMode:function(){var t=this.option("visibilityMode");return("onHover"===t||"always"===t)&&this.option("expandable")},_renderDirection:function(){var t=this.option("direction");this.$element().addClass("dx-scrollbar-"+t),this._dimension=t===Yye?"width":"height",this._prop=t===Yye?"left":"top"},_attachPointerDownHandler:function(){Se.on(this._$thumb,kt(qn.down,WG),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(qye),m1=this},feedbackOff:function(){this.$element().removeClass(qye),m1=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(t){"onScroll"===this.option("visibilityMode")&&this._$thumb.css("opacity"),t=this._adjustVisibility(t),this.option().visible=t,this._$thumb.toggleClass("dx-state-invisible",!t)},_adjustVisibility:function(t){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case"onScroll":break;case"onHover":t=t||!!this._isHovered;break;case"never":t=!1;break;case"always":t=!0}return t},moveTo:function(t){if(!this._isHidden()){wi(t)&&(t=t[this._prop]||0);var n={};n[this._prop]=this._calculateScrollBarPosition(t),kr(this._$thumb,n)}},_calculateScrollBarPosition:function(t){return-t*this._thumbRatio},_update:function(){var t=Math.round(this.option("containerSize")),n=Math.round(this.option("contentSize")),e=Math.round(this.option("baseContainerSize")),i=Math.round(this.option("baseContentSize"));isNaN(e)&&(e=t,i=n),this._baseContainerToContentRatio=i?e/i:e,this._realContainerToContentRatio=n?t/n:t;var r=Math.round(Math.max(Math.round(t*this._realContainerToContentRatio),15));this._thumbRatio=(t-r)/(this.option("scaleRatio")*(n-t)),this.option(this._dimension,r/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return"never"===this.option("visibilityMode")},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(t){return wi(t)?t[this._dimension]||0:t},_clean:function(){this.callBase(),this===m1&&(m1=null),Se.off(this._$thumb,"."+WG)},_optionChanged:function(t){if(!this._isHidden())switch(t.name){case"containerSize":case"contentSize":this.option()[t.name]=this._normalizeSize(t.value),this._update();break;case"baseContentSize":case"baseContainerSize":case"scaleRatio":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;default:this.callBase.apply(this,arguments)}},update:ew(function(){this._adjustVisibility()&&this.option("visible",!0)})});gd.add(function(){Se.subscribeGlobal(It.getDocument(),kt(qn.up,WG),function(){m1&&m1.feedbackOff()})});const Zye=USt;var Xye="dxNativeScrollable",GG="dx-scrollable-native",KT="vertical",jL="horizontal",KSt=ji.inherit({ctor:function(t){this._init(t)},_init:function(t){this._component=t,this._$element=t.$element(),this._$container=U(t.container()),this._$content=t.$content(),this._direction=t.option("direction"),this._useSimulatedScrollbar=t.option("useSimulatedScrollbar"),this.option=t.option.bind(t),this._createActionByOption=t._createActionByOption.bind(t),this._isLocked=t._isLocked.bind(t),this._isDirection=t._isDirection.bind(t),this._allowedDirection=t._allowedDirection.bind(t),this._getMaxOffset=t._getMaxOffset.bind(t),this._isRtlNativeStrategy=t._isRtlNativeStrategy.bind(t)},render:function(){var n=pn.real().platform;this._$element.addClass(GG).addClass(GG+"-"+n).toggleClass("dx-scrollable-scrollbars-hidden",!this._isScrollbarVisible()),this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateRtlPosition:function(t){t&&this.option("rtlEnabled")&&this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._moveScrollbars()},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar(KT),this._renderScrollbar(jL)},_renderScrollbar:function(t){this._isDirection(t)&&(this._scrollbars[t]=new Zye(U("<div>").appendTo(this._$element),{direction:t,expandable:this._component.option("scrollByThumb")}))},handleInit:Be,handleStart:Be,handleMove:function(t){this._isLocked()?t.cancel=!0:this._allowedDirection()&&(t.originalEvent.isScrollingEvent=!0)},handleEnd:Be,handleCancel:Be,handleStop:Be,_eachScrollbar:function(t){t=t.bind(this),we(this._scrollbars||{},function(n,e){t(e,n)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var{left:t,top:n}=this.location();return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isRtlNativeStrategy()?this._isReachedRight(-t):this._isReachedLeft(t),reachedRight:this._isRtlNativeStrategy()?this._isReachedLeft(-Math.abs(t)):this._isReachedRight(t),reachedTop:this._isDirection(KT)?Math.round(n)>=0:void 0,reachedBottom:this._isDirection(KT)?Math.round(Math.abs(n)-this._getMaxOffset().top)>=0:void 0}},_getScrollOffset:function(){var{top:t,left:n}=this.location();return{top:-t,left:this._normalizeOffsetLeft(-n)}},_normalizeOffsetLeft(t){return this._isRtlNativeStrategy()?this._getMaxOffset().left+t:t},_isReachedLeft:function(t){return this._isDirection(jL)?Math.round(t)>=0:void 0},_isReachedRight:function(t){return this._isDirection(jL)?Math.round(Math.abs(t)-this._getMaxOffset().left)>=0:void 0},_isScrollbarVisible:function(){var{showScrollbar:t}=this.option();return"never"!==t&&!1!==t},handleScroll:function(t){this._eventForUserAction=t,this._moveScrollbars(),this._scrollAction(this._createActionArgs())},_moveScrollbars:function(){var{top:t,left:n}=this._getScrollOffset();this._eachScrollbar(function(e){e.moveTo({top:-t,left:-n}),e.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(t){t.option("visible",!1)})}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:-this._$container.scrollTop()}},disabledChanged:Be,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:Ln(this._$container),width:wn(this._$container)},this._componentContentSize={height:Ln(this._component.$content()),width:wn(this._component.$content())},this._contentSize={height:Ln(this._$content),width:wn(this._$content)}},_updateScrollbars:function(){this._eachScrollbar(function(t,n){var e=n===KT?"height":"width";t.option({containerSize:this._containerSize[e],contentSize:this._componentContentSize[e]}),t.update()})},_allowedDirections:function(){return{vertical:this._isDirection(KT)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(jL)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var t=this._$element.get(0).className,n=new RegExp(GG+"\\S*","g");n.test(t)&&this._$element.removeClass(t.match(n).join(" ")),Se.off(this._$element,"."+Xye),Se.off(this._$container,"."+Xye),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(t){t.$element().remove()})},scrollBy:function(t){var n=this.location();this._$container.scrollTop(Math.round(-n.top-t.top)),this._$container.scrollLeft(Math.round(-n.left-t.left))},validate:function(t){return!(this.option("disabled")||Au(t)&&this._isScrolledInMaxDirection(t)||!this._allowedDirection())},_isScrolledInMaxDirection(t){var n=this._$container.get(0);return t.delta>0?t.shiftKey?!n.scrollLeft:!n.scrollTop:t.shiftKey?n.scrollLeft>=this._getMaxOffset().left:n.scrollTop>=this._getMaxOffset().top},getDirection:function(){return this._allowedDirection()}});const jG=KSt;var Jye="dx-scrollview-pull-down-loading",KG="dx-scrollview-pull-down-ready",JSt=jG.inherit({_init:function(t){this.callBase(t),this._$topPocket=t._$topPocket,this._$pullDown=t._$pullDown,this._$refreshingText=t._$refreshingText,this._$scrollViewContent=U(t.content()),this._$container=U(t.container()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=Zi(),this.releaseCallbacks=Zi(),this.reachBottomCallbacks=Zi()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var t=U("<div>").addClass("dx-scrollview-pull-down-image"),n=U("<div>").addClass("dx-scrollview-pull-down-indicator"),e=new bd(U("<div>")).$element(),i=this._$pullDownText=U("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=U("<div>").text(this.option("pullingDownText")).appendTo(i),this._$pulledDownText=U("<div>").text(this.option("pulledDownText")).appendTo(i),this._$refreshingText=U("<div>").text(this.option("refreshingText")).appendTo(i),this._$pullDown.empty().append(t).append(n.append(e)).append(i)},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var t=this;we([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(e,i){i.element[t._state===i.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var t=this._$scrollViewContent.get(0),n=this._$container.get(0);this._bottomBoundary=Math.max(t.clientHeight-n.clientHeight,0)},_allowedDirections:function(){var t=this.callBase();return t.vertical=t.vertical||this._pullDownEnabled,t},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){1===this._state&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(t){kr(this._$topPocket,{top:t}),kr(this._$scrollViewContent,{top:t})},handleScroll:function(t){if(this.callBase(t),2!==this._state){var n=this.location().top,e=(this._location||0)-n;this._location=n,this._isPullDown()?this._pullDownReady():e>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){3!==this._state&&(this._state=3,this.reachBottomCallbacks.fire())},_pullDownReady:function(){1!==this._state&&(this._state=1,this._$pullDown.addClass(KG),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(Jye).removeClass(KG),this._releaseState())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(Jye).removeClass(KG),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(t){t&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=t},reachBottomEnable:function(t){this._reachBottomEnabled=t},pendingRelease:function(){this._state=1},release:function(){var t=new et;return this._updateDimensions(),clearTimeout(this._releaseTimeout),3===this._state&&(this._state=0),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),t.resolve()}.bind(this),400),t.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});const QSt=JSt;var Qye="dx-scrollview-pull-down-loading",rDt=jG.inherit({_init:function(t){this.callBase(t),this._$topPocket=t._$topPocket,this._$pullDown=t._$pullDown,this._$scrollViewContent=U(t.content()),this._$container=U(t.container()),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=Zi(),this.releaseCallbacks=Zi(),this.reachBottomCallbacks=Zi()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var t=U("<div>").addClass("dx-scrollview-pull-down-indicator"),n=new bd(U("<div>")).$element();this._$icon=U("<div>").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(t.append(n))},_releaseState:function(){this._state=0,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var t=this._$scrollViewContent.get(0),n=this._$container.get(0);this._bottomBoundary=Math.max(t.clientHeight-n.clientHeight,0)},_allowedDirections:function(){var t=this.callBase();return t.vertical=t.vertical||this._pullDownEnabled,t},handleInit:function(t){this.callBase(t),0===this._state&&0===this._location&&(this._startClientY=Po(t.originalEvent).y,this._state=4)},handleMove:function(t){this.callBase(t),this._deltaY=Po(t.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(t.preventDefault(),this._movePullDown())},_movePullDown:function(){var t=this._getPullDownHeight(),n=Math.min(3*t,this._deltaY+this._getPullDownStartPosition()),e=180*n/t/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",n<t),kr(this._$pullDown,{top:n}),this._$icon.css({transform:"rotate("+e+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&5===this._state&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*Zn(this._$element))},_getPullDownStartPosition:function(){return-Math.round(1.5*Zn(this._$pullDown))},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){(4===this._state||5===this._state)&&this._releaseState()},handleScroll:function(t){if(this.callBase(t),2!==this._state){var n=this.location().top,e=this._location-n;this._location=n,e>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(Qye),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(Qye),kr(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(t){this._$topPocket.toggle(t),this._pullDownEnabled=t},reachBottomEnable:function(t){this._reachBottomEnabled=t},pendingRelease:function(){this._state=1},release:function(){var t=new et;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),t.resolve()}.bind(this),800),t.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});const oDt=rDt,tCe=ji.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,_p(this._stepAnimationFrame)},_stepCore:function(){if(!this._isStopped())return this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=Fw(this._proxiedStepCore)));this._stop()},_step:ji.abstract,_isFinished:Be,_stop:Be,_complete:Be,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});var wp,_1,nCe="dxSimulatedScrollable",YL=nCe+"Cursor",ZG=nCe+"Keyboard",XG="dx-scrollable-simulated",Hg="vertical",uu="horizontal",cDt=Math.round(1e3/60),_Dt=(1-Math.pow(.92,400/cDt))/(1-.92),oCe=tCe.inherit({ctor:function(t){this.callBase(),this.scroller=t},VELOCITY_LIMIT:1,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?.92:.5},_complete:function(){this.scroller._scrollComplete()}}),vDt=oCe.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return.92},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),aCe=ji.inherit({ctor:function(t){this._initOptions(t),this._initAnimators(),this._initScrollbar()},_initOptions:function(t){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=t.direction===uu?"x":"y",this._prop=t.direction===uu?"left":"top",this._dimension=t.direction===uu?"width":"height",this._scrollProp=t.direction===uu?"scrollLeft":"scrollTop",we(t,(n,e)=>{this["_"+n]=e})},_initAnimators:function(){this._inertiaAnimator=new oCe(this),this._bounceAnimator=new vDt(this)},_initScrollbar:function(){this._scrollbar=new Zye(U("<div>").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(t){return!0===t?"onScroll":!1===t?"never":t},_scrollStep:function(t){var n=this._location;this._location+=t,this._suppressBounce(),this._move(),!(Math.abs(n-this._location)<1)&&Se.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(t){return t=void 0!==t?t:this._location,Math.max(Math.min(t,this._maxOffset),this._minOffset)},_move:function(t){this._location=void 0!==t?t*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var t=this._location;this._$container[this._scrollProp](-t/this._getScaleRatio()),this._moveContentByTranslator(t)},_getScaleRatio:function(){if(Rn()&&!this._scaleRatio){var t=this._$element.get(0),n=this._getRealDimension(t,this._dimension),e=this._getBaseDimension(t,this._dimension);this._scaleRatio=Math.round(n/e*100)/100}return this._scaleRatio||1},_getRealDimension:function(t,n){return Math.round(Mi(t)[n])},_getBaseDimension:function(t,n){return t["offset"+hh(n)]},_moveContentByTranslator:function(t){var n,e=-this._maxScrollPropValue;if(this._translateOffset!==(n=t>0?t:t<=e?t-e:t%1)){var i={};if(i[this._prop]=n,this._translateOffset=n,0===n)return void lC(this._$content);kr(this._$content,i)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var t=this._bounceLocation=this._boundLocation();this._velocity=(t-this._location)/_Dt},_inBounds:function(t){return this._boundLocation(t=void 0!==t?t:this._location)===t},_crossBoundOnNextStep:function(){var t=this._location,n=t+this._velocity;return t<this._minOffset&&n>=this._minOffset||t>this._maxOffset&&n<=this._maxOffset},_initHandler:function(t){this._stopScrolling(),this._prepareThumbScrolling(t)},_stopScrolling:ew(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(t){if(!Au(t.originalEvent)){var n=U(t.originalEvent.target),e=this._isScrollbar(n);e&&this._moveToMouseLocation(t),this._thumbScrolling=e||this._isThumb(n),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(n),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(t){return this._isThumb(t)},_moveToMouseLocation:function(t){var n=t["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],e=this._location+n/this._containerToContentRatio()-Ln(this._$container)/2;this._scrollStep(-Math.round(e))},_startHandler:function(){this._showScrollbar()},_moveHandler:function(t){this._crossThumbScrolling||(this._thumbScrolling&&(t[this._axis]=-Math.round(t[this._axis]/this._containerToContentRatio())),this._scrollBy(t))},_scrollBy:function(t){t=t[this._axis],this._inBounds()||(t*=.5),this._scrollStep(t)},_scrollByHandler:function(t){this._scrollBy(t),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(t){return this._completeDeferred=new et,this._velocity=t[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){(!this._inertiaEnabled||this._thumbScrolling)&&(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){return this._stopScrolling(),Ns(()=>{this._resetScaleRatio(),this._updateLocation(),this._updateBounds(),this._updateScrollbar(),Zo(()=>{this._moveScrollbar(),this._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(Ra(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=this._getMaxOffset(),this._minOffset=this._getMinOffset()},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:hde(function(){var t=this._containerSize(),n=this._contentSize(),e=this._getBaseDimension(this._$container.get(0),this._dimension),i=this._getBaseDimension(this._$content.get(0),this._dimension);Zo(()=>{this._scrollbar.option({containerSize:t,contentSize:n,baseContainerSize:e,baseContentSize:i,scaleRatio:this._getScaleRatio()})})}),_moveToBounds:ew(hde(ew(function(){var t=this._boundLocation(),n=t!==this._location;this._location=t,this._move(),n&&this._scrollAction()}))),_createActionsHandler:function(t){this._scrollAction=t.scroll,this._bounceAction=t.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var t="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),n=this._getRealDimension(this._$content.get(0),this._dimension);if(!t){var e=this._$content[0]["scroll"+hh(this._dimension)]*this._getScaleRatio();n=Math.max(e,n)}return n},_validateEvent:function(t){var n=U(t.originalEvent.target);return this._isThumb(n)||this._isScrollbar(n)},_isThumb:function(t){return this._scrollByThumb&&this._scrollbar.isThumb(t)},_isScrollbar:function(t){return this._scrollByThumb&&t&&t.is(this._$scrollbar)},_reachedMin:function(){return Math.round(this._location-this._minOffset)<=0},_reachedMax:function(){return Math.round(this._location-this._maxOffset)>=0},_cursorEnterHandler:function(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:Be}),sCe=ji.inherit({ctor:function(t){this._init(t)},_init:function(t){this._component=t,this._$element=t.$element(),this._$container=U(t.container()),this._$wrapper=t._$wrapper,this._$content=t.$content(),this.option=t.option.bind(t),this._createActionByOption=t._createActionByOption.bind(t),this._isLocked=t._isLocked.bind(t),this._isDirection=t._isDirection.bind(t),this._allowedDirection=t._allowedDirection.bind(t),this._getMaxOffset=t._getMaxOffset.bind(t)},render:function(){this._$element.addClass(XG),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(uu)&&this._createScroller(uu),this._isDirection(Hg)&&this._createScroller(Hg),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar"))},_createScroller:function(t){this._scrollers[t]=new aCe(this._scrollerOptions(t))},_scrollerOptions:function(t){return{direction:t,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(t){for(var n in this._scrollers){var e=this._getPropByDirection(n);Z(t[e])&&(t[e]*=this._scrollers[n]._getScaleRatio())}return t},_isAnyThumbScrolling:function(t){var n=!1;return this._eventHandler("isThumbScrolling",t).done(function(e,i){n=e||i}),n},handleInit:function(t){this._suppressDirections(t),this._eventForUserAction=t,this._eventHandler("init",t)},_suppressDirections:function(t){Au(t.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller(function(n,e){var i=U(t.originalEvent.target),r=n._validateEvent(t)||this.option("scrollByContent")&&this._isContent(i);this._validDirections[e]=r}))},_isContent:function(t){return!!t.closest(this._$element).length},_prepareDirections:function(t){t=t||!1,this._validDirections={},this._validDirections[uu]=t,this._validDirections[Hg]=t},_eachScroller:function(t){t=t.bind(this),we(this._scrollers,function(n,e){t(e,n)})},handleStart:function(t){this._eventForUserAction=t,this._eventHandler("start").done(this._startAction)},_saveActive:function(){_1=this},_resetActive:function(){_1===this&&(_1=null)},handleMove:function(t){if(this._isLocked())return t.cancel=!0,void this._resetActive();this._saveActive(),t.preventDefault&&t.preventDefault(),this._adjustDistance(t,t.delta),this._eventForUserAction=t,this._eventHandler("move",t.delta)},_adjustDistance:function(t,n){n.x*=this._validDirections[uu],n.y*=this._validDirections[Hg];var e=this._tryGetDevicePixelRatio();e&&Au(t.originalEvent)&&(n.x=Math.round(n.x/e*100)/100,n.y=Math.round(n.y/e*100)/100)},_tryGetDevicePixelRatio:function(){if(Rn())return Fn().devicePixelRatio},handleEnd:function(t){return this._resetActive(),this._refreshCursorState(t.originalEvent&&t.originalEvent.target),this._adjustDistance(t,t.velocity),this._eventForUserAction=t,this._eventHandler("end",t.velocity).done(this._endAction)},handleCancel:function(t){return this._resetActive(),this._eventForUserAction=t,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler:function(){Se.off(this._$element,".".concat(ZG)),!this.option("disabled")&&this.option("useKeyboard")&&Se.on(this._$element,kt("keydown",ZG),this._keyDownHandler.bind(this))},_keyDownHandler:function(t){if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout(()=>{"tab"===Wo(t)&&this._eachScroller(e=>{e._updateHandler()})}),this._$container.is(It.getActiveElement(this._$container.get(0)))){var n=!0;switch(Wo(t)){case"downArrow":this._scrollByLine({y:1});break;case"upArrow":this._scrollByLine({y:-1});break;case"rightArrow":this._scrollByLine({x:1});break;case"leftArrow":this._scrollByLine({x:-1});break;case"pageDown":this._scrollByPage(1);break;case"pageUp":this._scrollByPage(-1);break;case"home":this._scrollToHome();break;case"end":this._scrollToEnd();break;default:n=!1}n&&(t.stopPropagation(),t.preventDefault())}},_scrollByLine:function(t){var n=this._tryGetDevicePixelRatio(),e=40;n&&(e=Math.abs(e/n*100)/100),this.scrollBy({top:(t.y||0)*-e,left:(t.x||0)*-e})},_scrollByPage:function(t){var n=this._wheelProp(),e=this._dimensionByProp(n),i={};i[n]=t*-("width"===e?wn:Ln)(this._$container),this.scrollBy(i)},_dimensionByProp:function(t){return"left"===t?"width":"height"},_getPropByDirection:function(t){return t===uu?"left":"top"},_scrollToHome:function(){var n={};n[this._wheelProp()]=0,this._component.scrollTo(n)},_scrollToEnd:function(){var t=this._wheelProp(),e={},i="width"===this._dimensionByProp(t)?wn:Ln;e[t]=i(this._$content)-i(this._$container),this._component.scrollTo(e)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(t){var n=this._createActionByOption(t);return()=>{n(se(this._createActionArgs(),arguments))}},_createActionArgs:function(){var{horizontal:t,vertical:n}=this._scrollers,e=this._getScrollOffset();return this._scrollOffset={top:n&&e.top,left:t&&e.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:t&&t._reachedMax(),reachedRight:t&&t._reachedMin(),reachedTop:n&&n._reachedMax(),reachedBottom:n&&n._reachedMin()}},_getScrollOffset(){return{top:-this.location().top,left:-this.location().left}},_eventHandler:function(t){var n=[].slice.call(arguments).slice(1),e=Dr(this._scrollers,i=>i["_"+t+"Handler"].apply(i,n));return Qt.apply(U,e).promise()},location:function(){var t=Ra(this._$content);return t.top-=this._$container.scrollTop(),t.left-=this._$container.scrollLeft(),t},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){Se.off(this._$element,".".concat(YL)),!this.option("disabled")&&this._isHoverMode()&&(Se.on(this._$element,kt("mouseenter",YL),this._cursorEnterHandler.bind(this)),Se.on(this._$element,kt("mouseleave",YL),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(t){(t=t||{}).originalEvent=t.originalEvent||{},!_1&&!t.originalEvent._hoverHandled&&(wp&&wp._cursorLeaveHandler(),wp=this,this._eventHandler("cursorEnter"),t.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(t){wp!==this||_1===wp||(this._eventHandler("cursorLeave"),wp=null,this._refreshCursorState(t&&t.relatedTarget))},_refreshCursorState:function(t){if(this._isHoverMode()||t&&!_1){var e=U(t).closest(".".concat(XG,":not(.dx-state-disabled)")),i=e.length&&e.data("dxScrollableStrategy");wp&&wp!==i&&wp._cursorLeaveHandler(),i&&i._cursorEnterHandler()}},update:function(){return Qt(this._eventHandler("update").done(this._updateAction),Ns(()=>{var n=this._allowedDirections();return Zo(()=>{var e=n.vertical?"pan-x":"";e=n.horizontal?"pan-y":e,this._$container.css("touchAction",e=n.vertical&&n.horizontal?"none":e)}),Qt().promise()}))},_allowedDirections:function(){var t=this.option("bounceEnabled"),n=this._scrollers[Hg],e=this._scrollers[uu];return{vertical:n&&(n._minOffset<0||t),horizontal:e&&(e._minOffset<0||t)}},_updateBounds:function(){this._scrollers[uu]&&this._scrollers[uu]._updateBounds()},_isHorizontalAndRtlEnabled:function(){return this.option("rtlEnabled")&&this.option("direction")!==Hg},updateRtlPosition:function(t){t&&(this._rtlConfig={scrollRight:0,clientWidth:this._$container.get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()}),this._updateBounds(),this._isHorizontalAndRtlEnabled()&&Ns(()=>{var n=this._getMaxOffset().left-this._rtlConfig.scrollRight;n<=0&&(n=0,this._rtlConfig.scrollRight=this._getMaxOffset().left),Zo(()=>{this._getScrollOffset().left!==n&&(this._rtlConfig.skipUpdating=!0,this._component.scrollTo({left:n}),this._rtlConfig.skipUpdating=!1)})})},_updateRtlConfig:function(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){var{clientWidth:t,scrollLeft:n}=this._$container.get(0),e=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===e&&this._rtlConfig.clientWidth===t&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-n),this._rtlConfig.clientWidth=t,this._rtlConfig.windowPixelRatio=e}},_getWindowDevicePixelRatio:function(){return Rn()?Fn().devicePixelRatio:1},scrollBy:function(t){var n=this._scrollers[Hg],e=this._scrollers[uu];n&&(t.top=n._boundLocation(t.top+n._location)-n._location),e&&(t.left=e._boundLocation(t.left+e._location)-e._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:t.left,y:t.top}),this._endAction(),this._updateRtlConfig()},validate:function(t){return!(Au(t)&&Xo(t)||this.option("disabled"))&&(!!this.option("bounceEnabled")||(Au(t)?this._validateWheel(t):this._validateMove(t)))},_validateWheel:function(t){var n=this._scrollers[this._wheelDirection(t)],e=n._reachedMin(),i=n._reachedMax(),l=(!e||!i)&&(!e&&!i||e&&t.delta>0||i&&t.delta<0);return(l=l||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout(()=>{this._validateWheelTimer=void 0},500)),l},_validateMove:function(t){return!(!this.option("scrollByContent")&&!U(t.target).closest(".".concat("dx-scrollable-scrollbar")).length)&&this._allowedDirection()},getDirection:function(t){return Au(t)?this._wheelDirection(t):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===uu?"left":"top"},_wheelDirection:function(t){switch(this.option("direction")){case uu:return uu;case Hg:return Hg;default:return t&&t.shiftKey?uu:Hg}},dispose:function(){this._resetActive(),wp===this&&(wp=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(XG),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){Se.off(this._$element,".".concat(YL)),Se.off(this._$container,".".concat(ZG))}}),yDt=Math,lCe="dx-scrollview-pull-down-loading",JG="dx-scrollview-pull-down-ready",SDt=aCe.inherit({ctor:function(){this._topPocketSize=0,this._bottomPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var t=this;we([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(e,i){i.element[t._state===i.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},_initCallbacks:function(){this.pullDownCallbacks=Zi(),this.releaseCallbacks=Zi(),this.reachBottomCallbacks=Zi()},_updateBounds:function(){if("horizontal"!==this._direction){this._topPocketSize=this._$topPocket.get(0).clientHeight,this._bottomPocketSize=this._$bottomPocket.get(0).clientHeight;var n=this._$container.get(0),e=this._$content.get(0);this._bottomBoundary=Math.max(e.clientHeight-this._bottomPocketSize-n.clientHeight,0)}this.callBase()},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():0!==this._state&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){var t=this._$container.get(0);return this._reachBottomEnabled&&Math.round(this._bottomBoundary-Math.ceil(t.scrollTop))<=1},_scrollComplete:function(){this._inBounds()&&1===this._state?this._pullDownRefreshing():this._inBounds()&&3===this._state?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){3!==this._state&&(this._state=3,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return yDt.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass(JG),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(lCe).removeClass(JG),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(lCe).removeClass(JG),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=ky(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(t){this._reachBottomEnabled!==t&&(this._reachBottomEnabled=t,this._updateBounds())},_pullDownEnablingHandler:function(t){this._pullDownEnabled!==t&&(this._pullDownEnabled=t,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=Ln(this._$topPocket)||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),DDt=sCe.inherit({_init:function(t){this.callBase(t),this._$pullDown=t._$pullDown,this._$topPocket=t._$topPocket,this._$bottomPocket=t._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=Zi(),this.releaseCallbacks=Zi(),this.reachBottomCallbacks=Zi()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var t=U("<div>").addClass("dx-scrollview-pull-down-image"),n=U("<div>").addClass("dx-scrollview-pull-down-indicator"),e=new bd(U("<div>")).$element(),i=this._$pullDownText=U("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=U("<div>").text(this.option("pullingDownText")).appendTo(i),this._$pulledDownText=U("<div>").text(this.option("pulledDownText")).appendTo(i),this._$refreshingText=U("<div>").text(this.option("refreshingText")).appendTo(i),this._$pullDown.empty().append(t).append(n.append(e)).append(i)},pullDownEnable:function(t){this._eventHandler("pullDownEnabling",t)},reachBottomEnable:function(t){this._eventHandler("reachBottomEnabling",t)},_createScroller:function(t){var n=this,e=n._scrollers[t]=new SDt(n._scrollerOptions(t));e.pullDownCallbacks.add(function(){n.pullDownCallbacks.fire()}),e.releaseCallbacks.add(function(){n.releaseCallbacks.fire()}),e.reachBottomCallbacks.add(function(){n.reachBottomCallbacks.fire()})},_scrollerOptions:function(t){return se(this.callBase(t),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var t=this.callBase();return t.top+=Ln(this._$topPocket),t},dispose:function(){we(this._scrollers,function(){this.dispose()}),this.callBase()}});const EDt=DDt;var uCe=function(){return[{device:function(){return!xg},options:{useNative:!1}},{device:function(t){return!pn.isSimulator()&&"desktop"===pn.real().deviceType&&"generic"===t.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:h_,showScrollbar:"onHover"}}]};function dCe(t,n){for(var e={left:0,top:0},i=n;null!==(r=i)&&void 0!==r&&r.offsetParent&&!i.classList.contains(t);){var r,o=i.offsetParent,a=i.getBoundingClientRect(),s=o.getBoundingClientRect();e.left+=a.left-s.left,e.top+=a.top-s.top,i=i.offsetParent}return e}var XL="vertical",cCe="horizontal",tj="both",hCe="dx-scrollable-content",zg="dxScrollable",pCe="dx-scrollable",gCe="dx-scrollable-content",Ug="vertical",Rm="horizontal",nj="both",ij=Ic.inherit({_getDefaultOptions:function(){return se(this.callBase(),{disabled:!1,onScroll:null,direction:Ug,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(uCe(),[{device:function(){return xg&&"android"===pn.real().platform&&!Ro.mozilla},options:{useSimulatedScrollbar:!0}}])},_initOptions:function(t){this.callBase(t),"useSimulatedScrollbar"in t||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(t){t?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var t=this.$element().addClass(pCe),n=this._$container=U("<div>").addClass("dx-scrollable-container"),e=this._$wrapper=U("<div>").addClass("dx-scrollable-wrapper");(this._$content=U("<div>").addClass(gCe)).append(t.contents()).appendTo(n),n.appendTo(e),e.appendTo(t)},_dimensionChanged:function(){this.update(),this._updateRtlPosition()},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition(!0)},_updateRtlPosition:function(t){this._strategy.updateRtlPosition(t)},_getMaxOffset:function(){var{scrollWidth:t,clientWidth:n,scrollHeight:e,clientHeight:i}=U(this.container()).get(0);return{left:t-n,top:e-i}},_attachEventHandlers:function(){var t=this._strategy,n={getDirection:t.getDirection.bind(t),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};Se.off(this._$wrapper,"."+zg),Se.on(this._$wrapper,kt(yd_init,zg),n,this._initHandler.bind(this)),Se.on(this._$wrapper,kt(yd_start,zg),t.handleStart.bind(t)),Se.on(this._$wrapper,kt(yd_move,zg),t.handleMove.bind(t)),Se.on(this._$wrapper,kt(yd_end,zg),t.handleEnd.bind(t)),Se.on(this._$wrapper,kt(yd_cancel,zg),t.handleCancel.bind(t)),Se.on(this._$wrapper,kt(yd_stop,zg),t.handleStop.bind(t)),Se.off(this._$container,"."+zg),Se.on(this._$container,kt("scroll",zg),t.handleScroll.bind(t))},_validate:function(t){return!this._isLocked()&&(this._updateIfNeed(),this._moveIsAllowed(t))},_moveIsAllowed(t){return this._strategy.validate(t)},handleMove(t){this._strategy.handleMove(t)},_prepareDirections(t){this._strategy._prepareDirections(t)},_initHandler:function(){var t=this._strategy;t.handleInit.apply(t,arguments)},_renderDisabledState:function(){this.$element().toggleClass("dx-scrollable-disabled",this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+Rm).removeClass("dx-scrollable-"+Ug).removeClass("dx-scrollable-"+nj).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data("dxScrollableStrategy",this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new jG(this):new sCe(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(t){switch(t.name){case"onStart":case"onEnd":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":case"scrollByContent":break;case"width":this.callBase(t),this._updateRtlPosition();break;default:this.callBase(t)}},_resetInactiveDirection:function(){var t=this._getInactiveProp();if(t&&Rn()){var n=this.scrollOffset();n[t]=0,this.scrollTo(n)}},_getInactiveProp:function(){var t=this.option("direction");return t===Ug?"left":t===Rm?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(t){if(wi(t)){var n=gr(t.left,t.x),e=gr(t.top,t.y);return{left:Z(n)?-n:void 0,top:Z(e)?-e:void 0}}var i=this.option("direction");return{left:i!==Ug?-t:void 0,top:i!==Rm?-t:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(t){var n=this.option("direction");return t===Ug?n!==Rm:t===Rm?n!==Ug:n===t},_updateAllowedDirection:function(){var t=this._strategy._allowedDirections();this._allowedDirectionValue=this._isDirection(nj)&&t.vertical&&t.horizontal?nj:this._isDirection(Rm)&&t.horizontal?Rm:this._isDirection(Ug)&&t.vertical?Ug:null},_allowedDirection:function(){return this._allowedDirectionValue},$content:function(){return this._$content},content:function(){return kn(this._$content)},container:function(){return kn(this._$container)},scrollOffset:function(){return this._strategy._getScrollOffset()},_isRtlNativeStrategy:function(){var{useNative:t,rtlEnabled:n}=this.option();return t&&n},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return Ln(this._$container)},scrollHeight:function(){return Zn(this.$content())},clientWidth:function(){return wn(this._$container)},scrollWidth:function(){return ii(this.$content())},update:function(){if(this._strategy)return Qt(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(t){((t=this._normalizeLocation(t)).top||t.left)&&(this._updateIfNeed(),this._strategy.scrollBy(t))},scrollTo:function(t){t=this._normalizeLocation(t),this._updateIfNeed();var n=this._location();this.option("useNative")||(t=this._strategy._applyScaleRatio(t),n=this._strategy._applyScaleRatio(n)),this._isRtlNativeStrategy()&&(n.left=n.left-this._getMaxOffset().left);var e=this._normalizeLocation({left:n.left-gr(t.left,n.left),top:n.top-gr(t.top,n.top)});!e.top&&!e.left||this._strategy.scrollBy(e)},scrollToElement:function(t,n){var e=U(t),i=this.$content().find(t).length,r=e.parents("."+pCe).length-e.parents("."+gCe).length==0;if(i&&r){var o={top:0,left:0},a=this.option("direction");a!==Ug&&(o.left=this.getScrollElementPosition(e,Rm,n)),a!==Rm&&(o.top=this.getScrollElementPosition(e,Ug,n)),this.scrollTo(o)}},getScrollElementPosition:function(t,n,e){var i=this.scrollOffset();return function ODt(t,n,e,i,r){var o=mt({top:0,left:0,right:0,bottom:0},r),a=n===XL,s=a?"top":"left",l=a?"bottom":"right",u=a?"height":"width",f=e["offset".concat(hh(u))],S=e["client".concat(hh(u))],T=e.getBoundingClientRect()[u],R=t.getBoundingClientRect()[u],L=1;Math.abs(T-f)>1&&(L=T/f);var z=dCe(hCe,t)[s]/L,j=i[s],Y=j-z+o[s],ie=j-z-R/L+S-o[l];return Y<=0&&ie>=0?j:j-(Math.abs(Y)>Math.abs(ie)?ie:Y)}(t.get(0),n,U(this.container()).get(0),i,e)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1},isRenovated:function(){return!!ij.IS_RENOVATED_WIDGET}});On(zg,ij);const fCe=ij,xd=fCe;var mCe="dx-loadpanel-indicator",_Ce="dx-loadpanel-message",vCe=Cd.inherit({_supportedKeys:function(){return se(this.callBase(),{escape:Be})},_getDefaultOptions:function(){return se(this.callBase(),{message:ye.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,focusStateEnabled:!1,propagateOutsideClick:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return io()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-loadpanel"),this.$wrapper().addClass("dx-loadpanel-wrapper")},_renderContentImpl:function(){this.callBase(),this.$content().addClass("dx-loadpanel-content"),this._$loadPanelContentWrapper=U("<div>").addClass("dx-loadpanel-content-wrapper"),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var t=this.option("delay");if(!t)return this.callBase();var n=new et,e=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){e().done(function(){n.resolve()})},t),n.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$loadPanelContentWrapper){var t=this.option("message");if(t){var n=U("<div>").addClass(_Ce).text(t);this._$loadPanelContentWrapper.append(n)}}},_renderLoadIndicator:function(){!this._$loadPanelContentWrapper||!this.option("showIndicator")||(this._$indicator||(this._$indicator=U("<div>").addClass(mCe).appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,bd,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+_Ce).remove(),this.$content().find("."+mCe).remove(),delete this._$indicator},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged:function(t){switch(t.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._renderLoadIndicator();break;default:this.callBase(t)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});On("dxLoadPanel",vCe);const ZT=vCe;var hC="dx-scrollview",BDt=hC+"-content",NDt=hC+"-top-pocket",VDt=hC+"-bottom-pocket",HDt=hC+"-pull-down",rj=hC+"-scrollbottom",zDt=rj+"-indicator",UDt=rj+"-text",WDt=hC+"-loadpanel",GDt={pullDown:QSt,swipeDown:oDt,simulated:EDt},jDt=!Rn(),KDt={finishLoading:Be,release:Be,refresh:Be,scrollOffset:()=>({top:0,left:0}),_optionChanged:function(t){if("onUpdated"!==t.name)return this.callBase.apply(this,arguments)}},yCe=xd.inherit(jDt?KDt:{_getDefaultOptions:function(){return se(this.callBase(),{pullingDownText:ye.format("dxScrollView-pullingDownText"),pulledDownText:ye.format("dxScrollView-pulledDownText"),refreshingText:ye.format("dxScrollView-refreshingText"),reachBottomText:ye.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"android"===pn.real().platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return io()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(hC),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var t=U("<div>").addClass(BDt);this._$content.wrapInner(t)},_initTopPocket:function(){var t=this._$topPocket=U("<div>").addClass(NDt),n=this._$pullDown=U("<div>").addClass(HDt);t.append(n),this._$content.prepend(t)},_initBottomPocket:function(){var t=this._$bottomPocket=U("<div>").addClass(VDt),n=this._$reachBottom=U("<div>").addClass(rj),e=U("<div>").addClass(zDt),i=new bd(U("<div>")).$element(),r=this._$reachBottomText=U("<div>").addClass(UDt);this._updateReachBottomText(),n.append(e.append(i)).append(r),t.append(n),this._$content.append(t)},_initLoadPanel:function(){var t=U("<div>").addClass(WDt).appendTo(this.$element()),n={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(t,ZT,n)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var t=this.option("useNative")?this.option("refreshStrategy"):"simulated";this._strategy=new(0,GDt[t])(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(t){var n=this.callBase.apply(this,arguments);return("pullDown"===t||"reachBottom"===t)&&this._tryRefreshPocketState(),n},_pullDownEnable:function(t){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(t),this._strategy.pullDownEnable(t),this._pullDownEnabled=t)},_reachBottomEnable:function(t){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(t),this._strategy.reachBottomEnable(t),this._reachBottomEnabled=t)},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(t){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=t},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(t){switch(t.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(t)}},content:function(){return kn(this._$content.children().eq(1))},release:function(t){return void 0!==t&&this.toggleLoading(!t),this._strategy.release()},toggleLoading:function(t){this._reachBottomEnable(t)},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});On("dxScrollView",yCe);const Ih=yCe,CCe={_getSpecificDataSourceOption:function(){var t=this.option("dataSource"),n=!1,e={};return this._getGroupedOption()&&(t=>Array.isArray(t)&&t.every(n=>2===Object.keys(n).length&&"key"in n&&"items"in n&&Array.isArray(n.items)))(t)&&(e=t.reduce((i,r)=>{var o=r.items.map(a=>(Jn(a)||(a={text:a},n=!0),"key"in a||(a.key=r.key),a));return i.concat(o)},[]),t={store:{type:"array",data:e},group:{selector:"key",keepInitialKeyOrder:!0}},n&&(t.searchExpr="text")),t}};function bCe(t){return t?Number(t.replace("px","")):0}function qDt(t,n){var e=function XT(t){var n,e;return t&&Rn()?null===(n=(e=Fn()).getComputedStyle)||void 0===n?void 0:n.call(e,t):null}(t);return e?bCe(e["margin".concat(hh(n))]):0}var JL="dx-list-item",ZDt="."+JL,v1="dx-list-group",oj="dx-list-group-header",QL="dx-list-group-body",xCe="dx-list-group-collapsed",wCe="dx-wrap-item-text",oEt=Ai("items"),eB=gR.inherit({_activeStateUnit:[ZDt,".dx-list-select-all"].join(","),_supportedKeys:function(){var t=this,n=function(i){var a,s,l,r=e(i);r.is(t.option("focusedElement"))&&(s=i,l=(a=r).position().top,"prev"===s&&(l=a.position().top-Ln(t.$element())+Zn(a)),t.scrollTo(l),r=e(i)),t.option("focusedElement",kn(r)),t.scrollToItem(r)};function e(i){var r=t.scrollTop(),o=Ln(t.$element()),a=U(t.option("focusedElement")),s=!0;if(!a.length)return U();for(;s;){var l=a[i]();if(!l.length)break;var u=l.position().top+Zn(l)/2;(s=u<o+r&&u>r)&&(a=l)}return a}return se(this.callBase(),{leftArrow:Be,rightArrow:Be,pageUp:function(){return n("prev"),!1},pageDown:function(){return n("next"),!1}})},_getDefaultOptions:function(){return se(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:ye.format("dxList-pullingDownText"),pulledDownText:ye.format("dxList-pulledDownText"),refreshingText:ye.format("dxList-refreshingText"),pageLoadingText:ye.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:ye.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},_listAttributes:{role:"listbox"},useInkRipple:!1,wrapItemText:!1,_swipeEnabled:!0,showChevronExpr:function(t){return t?t.showChevron:void 0},badgeExpr:function(t){return t?t.badge:void 0}})},_defaultOptionsRules:function(){var t=lu();return this.callBase().concat(uCe(),[{device:function(){return!xg},options:{useNativeScrolling:!1}},{device:function(n){return!xg&&!pn.isSimulator()&&"desktop"===pn.real().deviceType&&"generic"===n.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return io(t)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(t){t&&this._updateLoadingState(!0)},_itemClass:function(){return JL},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_saveSelectionChangeEvent:function(t){this._selectionChangeEventInstance=t},_getSelectionChangeEvent:function(){return this._selectionChangeEventInstance},_refreshItemElements:function(){this._itemElementsCache=this.option("grouped")?this._itemContainer().children("."+v1).children("."+QL).children(this._itemSelector()):this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem:function(t,n){return this.callBase(t,n).done(function(){this._refreshItemElements()})},deleteItem:function(t){return this.callBase(t).done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(t){if("single"!==this.option("selectionMode")||!this.isItemSelected(t.currentTarget))return this.callBase(t)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._dataController.resetDataSourcePageIndex(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=70,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var t=this._scrollBottomMode(),n=this._nextButtonMode();return se(this.callBase(),{paginate:gr(t||n,!0)})},_getGroupedOption:function(){return this.option("grouped")},_getGroupContainerByIndex:function(t){return this._itemContainer().find(".".concat(v1)).eq(t).find(".".concat(QL))},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var t=this.option("scrollingEnabled"),n=t&&this.option("pullRefreshEnabled"),e=t&&this._scrollBottomMode()&&!!this._dataController.getDataSource();this._scrollView=this._createComponent(this.$element(),function aEt(){return Ih}(),{height:this.option("height"),width:this.option("width"),disabled:this.option("disabled")||!t,onScroll:this._scrollHandler.bind(this),onPullDown:n?this._pullDownHandler.bind(this):null,onReachBottom:e?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=U(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass(wCe),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(t){this._scrollAction&&this._scrollAction(t)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new Ac(function(t,n){wi(n)?n.key&&t.text(n.key):t.text(String(n))},["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(t,n){if(this.callBase(t,n),t.icon){var e=Fu(t.icon).addClass("dx-list-item-icon"),i=U("<div>").addClass("dx-list-item-icon-container");i.append(e),n.prepend(i)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(t){var n=this._dataController,e=this._scrollBottomMode()&&t&&!n.isLoading()&&!this._isLastPage();this._shouldContinueLoading(e)?this._infiniteDataLoading():(this._scrollView.release(!e&&!n.isLoading()),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1))},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataController.isLoaded()},_isDataSourceFirstLoadCompleted:function(t){return Z(t)&&(this._isFirstLoadCompleted=t),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler:function(t){this._loadIndicationSuppressed()||(t&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var i;!this._itemElements().length&&!this._isDataSourceFirstLoadCompleted()||null===(i=this._scrollView)||void 0===i||i.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),t||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler:function(){!this._shouldAppendItems()&&Rn()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments),this._isDataSourceFirstLoadCompleted(!0)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(t){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=t},_scrollViewIsFull:function(){var t=this._scrollView;return!t||Ln(t.content())>Ln(t.container())},_pullDownHandler:function(t){this._pullRefreshAction(t);var n=this._dataController;n.getDataSource()&&!n.isLoading()?(this._clearSelectedItems(),n.pageIndex(0),n.reload()):this._updateLoadingState()},_shouldContinueLoading:function(t){var n,e,i=Ln(this._scrollView.content())-Ln(this._scrollView.container())<(null!==(n=null===(e=this._scrollView.scrollOffset())||void 0===e?void 0:e.top)&&void 0!==n?n:0);return t&&(!this._scrollViewIsFull()||i)},_infiniteDataLoading:function(){this.$element().is(":visible")&&(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(()=>{this._loadNextPage()}))},_scrollBottomHandler:function(t){this._pageLoadingAction(t),this._dataController.isLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(t){this.option("grouped")?(we(t,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),io()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var t=kt(Vi,this.NAME),n="."+oj,e=this.$element(),i=this.option("collapsibleGroups");e.toggleClass("dx-list-collapsible-groups",i),Se.off(e,t,n),i&&Se.on(e,t,n,function(r){this._createAction(function(o){var a=U(o.event.currentTarget).parent();this._collapseGroupHandler(a),this.option("focusStateEnabled")&&this.option("focusedElement",kn(a.find("."+JL).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:r})}.bind(this))},_collapseGroupHandler:function(t,n){var e=new et;if(t.hasClass(xCe)===n)return e.resolve();var i=t.children("."+QL),r=Zn(i),o=0;return 0===r&&(xo(i,"auto"),o=Zn(i)),t.toggleClass(xCe,n),Hi.animate(i,{type:"custom",from:{height:r},to:{height:o},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),e.resolve()}.bind(this)}),e.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=U(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=_T()},_toggleActiveState:function(t,n,e){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var r={element:t,event:e};n?io()?this._inkRippleTimer=setTimeout(function(){i._inkRipple.showWave(r)},35):i._inkRipple.showWave(r):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(r))}},_postprocessRenderItem:function(t){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent(U(t.itemElement))},_attachSwipeEvent:function(t){var n=kt(jT,this.NAME);Se.on(t,n,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(t){this._itemDXEventHandler(t,"onItemSwipe",{direction:t.offset<0?"left":"right"})},_nextButtonHandler:function(t){this._pageLoadingAction(t);var n=this._dataController;n.getDataSource()&&!n.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(t,n){var e=U("<div>").addClass(v1).appendTo(this._itemContainer()),i=U("<div>").addClass(oj).appendTo(e),r=this.option("groupTemplate"),o=this._getTemplate(n.template||r,n,t,i),a={index:t,itemData:n,container:kn(i)};this._createItemByTemplate(o,a),io()&&U("<div>").addClass("dx-list-group-header-indicator").prependTo(i),this._renderingGroupIndex=t;var s=U("<div>").addClass(QL).appendTo(e);we(oEt(n)||[],function(l,u){this._renderItem({group:t,item:l},u,s)}.bind(this)),this._groupRenderAction({groupElement:kn(e),groupIndex:t,groupData:n})},downInkRippleHandler:function(t){this._toggleActiveState(U(t.currentTarget),!0,t)},upInkRippleHandler:function(t){this._toggleActiveState(U(t.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var t="."+oj,n=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var e=[n,"dxpointerdown",t,this._downInkRippleHandler],i=[n,"dxpointerup dxpointerout",t,this._upInkRippleHandler];Se.off(...e),Se.on(...e),Se.off(...i),Se.on(...i)},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){this._isDataSourceFirstLoadCompleted(!1),clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(t){this.callBase(t),this._scrollView.option("disabled",t||!this.option("scrollingEnabled"))},_toggleNextButton:function(t){var n=this._dataController,e=this._getNextButton();this.$element().toggleClass("dx-has-next",t),t&&n.isLoaded()&&e.appendTo(this._itemContainer()),t||e.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var t=U("<div>").addClass("dx-list-next-button"),n=U("<div>").appendTo(t);return this._createComponent(n,To,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:io()?"default":void 0,integrationOptions:{}}),t},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(Rn()){var t=this._scrollView.scrollTop();this.callBase(),t&&this._scrollView.scrollTo(t)}else this.callBase()},_optionChanged:function(t){switch(t.name){case"pageLoadMode":this._toggleNextButton(t.value),this._initScrollView();break;case"dataSource":this.callBase(t),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(t),this._isDataSourceFirstLoadCompleted(!1);break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"useNativeScrolling":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":case"grouped":case"collapsibleGroups":case"groupTemplate":case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions();break;case"wrapItemText":this._$container.toggleClass(wCe,t.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(t),this._scrollView.option(t.name,t.value),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(t),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(t);break;case"_swipeEnabled":case"_listAttributes":break;default:this.callBase(t)}},_extendActionArgs:function(t){if(!this.option("grouped"))return this.callBase(t);var n=t.closest("."+v1),e=n.find("."+JL);return se(this.callBase(t),{itemIndex:{group:n.index(),item:e.index(t)}})},expandGroup:function(t){var n=new et,e=this._itemContainer().find("."+v1).eq(t);return this._collapseGroupHandler(e,!1).done(function(){n.resolveWith(this)}.bind(this)),n.promise()},collapseGroup:function(t){var n=new et,e=this._itemContainer().find("."+v1).eq(t);return this._collapseGroupHandler(e,!0).done(function(){n.resolveWith(this)}.bind(this)),n},updateDimensions:function(){var t=this,n=new et;return t._scrollView?t._scrollView.update().done(function(){!t._scrollViewIsFull()&&t._updateLoadingState(!0),n.resolveWith(t)}):n.resolveWith(t),n.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(t){this._scrollView.scrollBy(t)},scrollTo:function(t){this._scrollView.scrollTo(t)},scrollToItem:function(t){var e=this._editStrategy.getItemElement(t)?.get(0);this._scrollView.scrollToElement(e,{bottom:qDt(e,"bottom")})},_dimensionChanged:function(){this.updateDimensions()}}).include(CCe);eB.ItemClass=BSt;var uEt=eB.inherit({_supportedKeys(){var t=this,n=this.callBase(),e=(i,r)=>{var o=this._editStrategy,a=this.option("focusedElement"),s=o.getNormalizedIndex(a);if(s!==this._getLastItemIndex()||!this._dataController.isLoading())if(i.shiftKey&&t.option("itemDragging.allowReordering")){var f=o.getItemElement(s+(r?-1:1));this.reorderItem(a,f),this.scrollToItem(a),i.preventDefault()}else this._editProvider.handleKeyboardEvents(s,r)||(r?n.upArrow(i):n.downArrow(i))};return se({},n,{del:i=>{t.option("allowItemDeleting")&&(i.preventDefault(),t.deleteItem(t.option("focusedElement")))},upArrow:i=>e(i,!0),downArrow:i=>e(i),enter:function(i){this._editProvider.handleEnterPressing(i)||n.enter.apply(this,arguments)},space:function(i){this._editProvider.handleEnterPressing(i)||n.space.apply(this,arguments)}})},_updateSelection(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex(){return this._itemElements().length-1},_refreshItemElements(){this.callBase();var t=this._editProvider.getExcludedItemSelectors();t.length&&(this._itemElementsCache=this._itemElementsCache.not(t))},_isItemStrictEquals:function(t,n){var e=t&&t.__dx_key__;return!(e&&!this.key()&&this._selection.isItemSelected(e))&&this.callBase(t,n)},_getDefaultOptions(){return se(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:ye.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules(){return this.callBase().concat([{device:t=>"ios"===t.platform,options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init(){this.callBase(),this._initEditProvider()},_initDataSource(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll(){return"page"===this.option("selectAllMode")},_initEditProvider(){this._editProvider=new TSt(this)},_disposeEditProvider(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy(){this.option("grouped")?this._editStrategy=new ySt(this):this.callBase()},_initMarkup(){this._refreshEditProvider(),this.callBase()},_renderItems(){this.callBase(...arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:()=>"dx-list-item-selected",_itemResponseWaitClass:()=>"dx-list-item-response-wait",_itemClickHandler(t){var n=U(t.currentTarget);n.is(".dx-state-disabled, .dx-state-disabled *")||this._editProvider.handleClick(n,t)||(this._saveSelectionChangeEvent(t),this.callBase(...arguments))},_shouldFireContextMenuEvent(){return this.callBase(...arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler(t){var n=U(t.currentTarget);if(!n.is(".dx-state-disabled, .dx-state-disabled *")){if(ym(t)&&this._editProvider.handleContextMenu(n,t))return void(t.handledByEditProvider=!0);this.callBase(...arguments)}},_getItemContainer:function(t){if(this.option("grouped")){var n,e=null===(n=this._editStrategy.getIndexByItemData(t))||void 0===n?void 0:n.group;return this._getGroupContainerByIndex(e)}return this.callBase(t)},_itemContextMenuHandler(t){var n=U(t.currentTarget);if(!n.is(".dx-state-disabled, .dx-state-disabled *")){if(!t.handledByEditProvider&&this._editProvider.handleContextMenu(n,t))return void t.preventDefault();this.callBase(...arguments)}},_postprocessRenderItem(t){this.callBase(...arguments),this._editProvider.modifyItemElement(t)},_clean(){this._disposeEditProvider(),this.callBase()},focusListItem(t){var n=this._editStrategy.getItemElement(t);this.option("focusedElement",n),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged(t){switch(t.name){case"selectAllMode":this._initDataSource(),this._dataController.pageIndex(0),this._dataController.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(t);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(t)}},selectAll(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement(t){return this._itemElements().index(t)},getItemElementByFlatIndex(t){var n=this._itemElements();return t<0||t>=n.length?U():n.eq(t)},getItemByIndex(t){return this._editStrategy.getItemDataByIndex(t)}});const ECe=uEt;var OCe=function dEt(t){return class{constructor(){throw new Error("Module '".concat(t,"' not found"))}static getInstance(){}}}("TextBox");const pC={_getDefaultOptions:function(){return se(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var t=this.$element(),n=this.option("searchEnabled"),e=this._addWidgetPrefix("search"),i=this._addWidgetPrefix("with-search");if(!n)return t.removeClass(i),void this._removeSearchBox();var r=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(r):(t.addClass(i),this._$searchEditorElement=U("<div>").addClass(e).prependTo(t),this._searchEditor=this._createComponent(this._$searchEditorElement,OCe,r))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var t=this,n=t.option("searchEditorOptions"),e=ye.format("Search");return se({mode:"search",placeholder:e,tabIndex:t.option("tabIndex"),value:t.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":e},onValueChanged:function(i){var r=t.option("searchTimeout");t._valueChangeDeferred=new et,clearTimeout(t._valueChangeTimeout),t._valueChangeDeferred.done(function(){this.option("searchValue",i.value)}.bind(t)),i.event&&"input"===i.event.type&&r?t._valueChangeTimeout=setTimeout(function(){t._valueChangeDeferred.resolve()},r):t._valueChangeDeferred.resolve()}},n)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(t,n){this.option("searchEnabled")&&this._toggleFocusClass(n,this.$element()),this.callBase(t,n)},getOperationBySearchMode:function(t){return"equals"===t?"=":t},_cleanAria:function(t){this.setAria({role:null,activedescendant:null},t),t.attr("tabIndex",null)},_optionChanged:function(t){switch(t.name){case"searchEnabled":case"searchEditorOptions":this._cleanAria(this.option("searchEnabled")?this.$element():this._itemContainer()),this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void Di.log("W1009");"searchMode"===t.name?this._dataSource.searchOperation(this.getOperationBySearchMode(t.value)):this._dataSource[t.name](t.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(t)}},focus:function(){this.option("focusedElement")||!this.option("searchEnabled")?this.callBase():this._searchEditor&&this._searchEditor.focus()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()},setEditorClass:function(t){OCe=t}};var cEt=ECe.inherit(pC).inherit({_addWidgetPrefix:function(t){return"dx-list-"+t},_getCombinedFilter:function(){var t=this._dataController,n={filter:t.filter()};return t.addSearchFilter(n),n.filter},_initDataSource:function(){var t=this.option("searchValue"),n=this.option("searchExpr"),e=this.option("searchMode");this.callBase();var i=this._dataController;t&&t.length&&i.searchValue(t),e.length&&i.searchOperation(pC.getOperationBySearchMode(e)),n&&i.searchExpr(n)}});const TCe=cEt;On("dxList",TCe);const gC=TCe;var hEt=se({},bp,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new Fl({store:new cs(this.option("items")),pageSize:0}),this._initDataController())},_compileDisplayGetter:function(){this._displayGetter=Ai(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=Ai(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(t){var n=new et;return t=this._unwrappedValue(t),Z(t)?(this._loadSingle(this._valueGetterExpr(),t).done(function(e){this._isValueEquals(this._valueGetter(e),t)?n.resolve(e):n.reject()}.bind(this)).fail(function(){n.reject()}),this._loadValueDeferred=n,n.promise()):n.reject().promise()},_rejectValueLoading:function(){var t;null===(t=this._loadValueDeferred)||void 0===t||t.reject({shouldSkipCallback:!0})},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(t){var n;return(t=null!==(n=t)&&void 0!==n?n:this._getCurrentValue())&&this._dataSource&&"this"===this._valueGetterExpr()&&(t=this._getItemKey(t)),Tu.unwrap(t)},_getItemKey:function(t){var n=this._dataSource.key();if(Array.isArray(n)){for(var e={},i=0,r=n.length;i<r;i++)e[n[i]]=t[n[i]];return e}return n&&"object"==typeof t&&(t=t[n]),t},_isValueEquals:function(t,n){var e=this._dataSource&&this._dataSource.key(),i=this._compareValues(t,n);return!i&&e&&Z(t)&&Z(n)&&(i=Array.isArray(e)?this._compareByCompositeKey(t,n,e):this._compareByKey(t,n,e)),i},_compareByCompositeKey:function(t,n,e){var i=Jn;if(!i(t)||!i(n))return!1;for(var r=0,o=e.length;r<o;r++)if(t[e[r]]!==n[e[r]])return!1;return!0},_compareByKey:function(t,n,e){var i=Tu.unwrap,r=gr(i(t[e]),t),o=gr(i(n[e]),n);return this._compareValues(r,o)},_compareValues:function(t,n){return ns(t,!0)===ns(n,!0)},_initDynamicTemplates:Be,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var t=this.option("valueExpr");return Pn(t)&&"this"!==t||Yt(t)?t:null},_dataExpressionOptionChanged:function(t){switch(t.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}});const y1=hEt;var ICe=Fn(),_Et=["startswith","contains","endwith","notcontains"],kCe="android"!==pn.real().platform,MCe=zL.inherit({_supportedKeys:function(){var t=this.callBase();return se({},t,{tab:function(n){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(n);var e=U(this._list.option("focusedElement"));e.length&&this._setSelectedElement(e)}t.tab.apply(this,arguments)},space:Be,home:Be,end:Be})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(t){var n=this._valueGetter(this._list._getItemData(t));this._setValue(n)},_setValue:function(t){this.option("value",t)},_getDefaultOptions:function(){return se(this.callBase(),se(y1._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:ye.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,onSelectionChanged:null,onItemClick:Be,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},wrapItemText:!1,useItemTextAsTitle:!1}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),se(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_setListFocusedElementOptionChange:function(){this._list._updateParentActiveDescendant=this._updateActiveDescendant.bind(this)},_initItems:function(){var t=this.option().items;t&&!t.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new hT("item")})},_isEditable:function(){return this.callBase()||this.option("searchEnabled")},_saveFocusOnWidget:function(t){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(t,n,e){return t>e?n:t<n?e:t},_items:function(){var t=this._getPlainItems(!this._list&&this._dataSource.items());return new Ha(t).filter("disabled","<>",!0).toArray()},_calcNextItem:function(t){var n=this._items();return n[this._fitIntoRange(this._getSelectedIndex()+t,0,n.length-1)]},_getSelectedIndex:function(){var t=this._items(),n=this.option("selectedItem"),e=-1;return we(t,function(i,r){if(this._isValueEquals(r,n))return e=i,!1}.bind(this)),e},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup.$wrapper().addClass(this._popupWrapperClass());var t=this._popup.$content();Se.off(t,"mouseup"),Se.on(t,"mouseup",this._saveFocusOnWidget.bind(this))},_updateCustomBoundaryContainer:function(){var t=this.option("dropDownOptions.container"),n=t&&U(t);if(n&&n.length&&!Da(n.get(0))){var e=[].slice.call(n.parents());e.unshift(n.get(0)),we(e,function(i,r){return r!==U("body").get(0)&&("hidden"===ICe.getComputedStyle(r).overflowY?(this._$customBoundaryContainer=U(r),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return"dx-dropdownlist-popup-wrapper"},_renderInputValue:function(){var t=this._getCurrentValue();return this._rejectValueLoading(),this._loadInputValue(t,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,t))},_loadInputValue:function(t,n){return this._loadItem(t).always(n)},_getItemFromPlain:function(t,n){var e,i;return n&&"object"!=typeof t&&(n.itemByValue||(n.itemByValue={},(e=this._getPlainItems()).forEach(function(r){n.itemByValue[this._valueGetter(r)]=r},this)),i=n.itemByValue[t]),i||(e=this._getPlainItems(),i=Vs(e,function(r){return this._isValueEquals(this._valueGetter(r),t)}.bind(this))[0]),i},_loadItem:function(t,n){var e=this._getItemFromPlain(t,n);return void 0!==e?(new et).resolve(e).promise():this._loadValue(t)},_getPlainItems:function(t){var n=[];t=t||this.option("items")||this._dataSource.items()||[];for(var e=0;e<t.length;e++)t[e]&&t[e].items?n=n.concat(t[e].items):n.push(t[e]);return n},_updateActiveDescendant(){var t,n=this.option("opened"),e=null===(t=this._list)||void 0===t?void 0:t.getFocusedItemId(),i=U("#".concat(e)).length>0;this.setAria({activedescendant:n&&i&&e||null})},_setSelectedItem:function(t){var n=this._displayValue(t);this.option("selectedItem",gr(t,null)),this.option("displayValue",n)},_displayValue:function(t){return this._displayGetter(t)},_refreshSelected:function(){var t={};this._listItemElements().each(function(n,e){var i=U(e),r=this._valueGetter(i.data("dxListItemData"));this._isSelectedValue(r,t)?this._list.selectItem(i):this._list.unselectItem(i)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){!this.option("focusStateEnabled")||!this._list||this._list.option("focusedElement",null)},_isSelectedValue:function(t){return this._isValueEquals(t,this.option("value"))},_validateSearchMode:function(){var t=this.option("searchMode"),n=t.toLowerCase();if(!_Et.includes(n))throw Di.Error("E1019",t)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._initDataController(),this._setListOption("_dataController",this._dataController),this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(".dx-list-item"):U()},_popupConfig:function(){return se(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this.callBase(),this._renderList()},_getKeyboardListeners(){var t=this._canListHaveFocus();return this.callBase().concat([!t&&this._list])},_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new Ni)._value;var t=this._$list=U("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(t,gC,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlurOnListClick(),this._setListFocusedElementOptionChange()},_renderPreventBlurOnListClick:function(){var t=kt("mousedown","dxDropDownList");Se.off(this._$list,t),Se.on(this._$list,t,n=>n.preventDefault())},_getControlsAria(){return this._list&&this._listId},_renderOpenedState:function(){this.callBase(),this._list&&this._updateActiveDescendant(),this.setAria("owns",this._popup&&this._popupContentId)},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){return!!this._list.option("dataSource")!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===pn.real().deviceType},_listConfig:function(){var t={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),encodeNoDataText:this.option("encodeNoDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_dataController:this._dataController,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(t.tabIndex=null),t},_canListHaveFocus:()=>!1,_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._updatePopupWidth(),this._updateListDimensions(),this._contentReadyAction()},_setListOption:function(t,n){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(t){this._listItemClickHandler(t),this._itemClickAction(t)},_listItemClickHandler:Be,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter:function(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource:function(){var t=this._isMinSearchLengthExceeded();return this._dataController.isLoaded()&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!t&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return kt("input",this.NAME+"Search")},_getCompositionStartEvent:function(){return kt("compositionstart",this.NAME+"CompositionStart")},_getCompositionEndEvent:function(){return kt("compositionend",this.NAME+"CompositionEnd")},_getSetFocusPolicyEvent:function(){return kt("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),Se.on(this._input(),this._getSetFocusPolicyEvent(),()=>{this._setFocusPolicy()}),this._shouldRenderSearchEvent()&&(Se.on(this._input(),this._getSearchEvent(),t=>{this._searchHandler(t)}),kCe&&(Se.on(this._input(),this._getCompositionStartEvent(),()=>{this._isTextCompositionInProgress(!0)}),Se.on(this._input(),this._getCompositionEndEvent(),t=>{this._isTextCompositionInProgress(void 0),this._searchHandler(t,this._searchValue())})))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){Se.off(this._input(),this._getSearchEvent()),Se.off(this._input(),this._getSetFocusPolicyEvent()),kCe&&(Se.off(this._input(),this._getCompositionStartEvent()),Se.off(this._input(),this._getCompositionEndEvent())),this.callBase()},_isTextCompositionInProgress:function(t){if(!arguments.length)return this._isTextComposition;this._isTextComposition=t},_searchHandler:function(t,n){if(!this._isTextCompositionInProgress()){if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();var e=this.option("searchTimeout");e?(this._clearSearchTimer(),this._searchTimer=setTimeout(()=>{this._searchDataSource(n)},e)):this._searchDataSource(n)}},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._searchValue();this._filterDataSource(t)},_filterDataSource:function(t){this._clearSearchTimer();var n=this._dataController;n.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),n.searchOperation(this.option("searchMode")),n.searchValue(t),n.load().done(this._dataSourceFiltered.bind(this,t))},_clearFilter:function(){var t=this._dataController;t.searchValue()&&t.searchValue(null)},_dataSourceFiltered:function(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var t=this._shouldOpenPopup();t&&!this._isFocused()||(this.option("opened",t),t&&(this._updatePopupWidth(),this._updateListDimensions()))}},_dataSourceChangedHandler:function(t){0===this._dataController.pageIndex()?this.option().items=t:this.option().items=this.option().items.concat(t)},_hasItemsToShow:function(){var e=(this._dataController.items()||[]).length;return!(!this._needPassDataSourceToList()||!e)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._updatePopupWidth(),this._updateListDimensions()},_dimensionChanged:function(){this.callBase(),this._updateListDimensions()},_needPopupRepaint:function(){var t=this._dataController,n=t.pageIndex(),e=Z(this._pageIndex)&&n<=this._pageIndex||t.isLastPage()&&!this._list._scrollViewIsFull();return this._pageIndex=n,e},_updateListDimensions:function(){this._popup&&(this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions())},_getMaxHeight:function(){var t=this.$element(),n=this._$customBoundaryContainer,e=t.offset().top-(n?n.offset().top:0),i=Zn(ICe),r=n?Math.min(Zn(n),i):i,o=Math.max(e,r-e-Zn(t));return Math.min(.5*r,o)},_clean:function(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var t=this.option("value"),n=this._shouldUseDisplayValue(t)?this._displayGetter(t):t;this._getSubmitElement().val(n)},_shouldUseDisplayValue:function(t){return"this"===this.option("valueExpr")&&Jn(t)},_optionChanged:function(t){switch(this._dataExpressionOptionChanged(t),t.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(t.name,t.value),this.callBase(t);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":case"encodeNoDataText":case"useItemTextAsTitle":this._setListOption(t.name);break;case"displayValue":this.option("text",t.value);break;case"itemTemplate":case"searchTimeout":break;case"selectedItem":t.previousValue!==t.value&&this._selectionChangedAction({selectedItem:t.value});break;default:this.callBase(t)}}}).include(y1,CCe);On("dxDropDownList",MCe);const aj=MCe;var ACe=aj.inherit({_supportedKeys:function(){var t=this._list?this._list.option("focusedElement"):null,n=this.callBase();return t=t&&U(t),se({},n,{upArrow:function(e){return!(!Xo(e)&&(e.preventDefault(),e.stopPropagation(),t&&!this._calcNextItem(-1))&&(this._clearFocusedItem(),1))},downArrow:function(e){return!(!Xo(e)&&(e.preventDefault(),e.stopPropagation(),t&&!this._calcNextItem(1))&&(this._clearFocusedItem(),1))},enter:function(e){t||this.close();var i=this.option("opened");return i&&e.preventDefault(),i}})},_getDefaultOptions:function(){return se(this.callBase(),{minSearchLength:1,maxItemCount:10,noDataText:"",showDropDownButton:!1,searchEnabled:!0})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-autocomplete"),this.setAria("autocomplete","inline")},_displayGetterExpr:function(){return this.option("valueExpr")},_closeOutsideDropDownHandler:function(t){var{target:n}=t;return!U(n).closest(this.$element()).length},_renderDimensions:function(){this.callBase(),this._updatePopupWidth(),this._updateListDimensions()},_popupWrapperClass:function(){return this.callBase()+" dx-autocomplete-popup-wrapper"},_listConfig:function(){return se(this.callBase(),{pageLoadMode:"none",onSelectionChanged:t=>{this._setSelectedItem(t.addedItems[0])}})},_listItemClickHandler:function(t){this._saveValueChangeEvent(t.event);var n=this._displayGetter(t.itemData);this.option("value",n),this.close()},_setListDataSource:function(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:Be,_searchCanceled:function(){this.callBase(),this.close()},_loadItem:function(t,n){var e=this._getItemFromPlain(t,n);return(new et).resolve(e).promise()},_dataSourceOptions:function(){return{paginate:!0,pageSize:this.option("maxItemCount")}},_searchDataSource:function(t){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(t),this._clearFocusedItem()},_clearFocusedItem:function(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:function(){return"input keyup"},_valueChangeEventHandler:function(t){var n=this._input().val()||null;return this.callBase(t,n)},_optionChanged:function(t){switch(t.name){case"maxItemCount":this._searchDataSource();break;case"valueExpr":this._compileDisplayGetter(),this._setListOption("displayExpr",this._displayGetterExpr()),this.callBase(t);break;default:this.callBase(t)}},reset:function(){this.callBase(),this.close()}});On("dxAutocomplete",ACe);const CEt=ACe,bEt={provide:Fo,useExisting:At(()=>xEt),multi:!0};let xEt=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayValueChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxItemCountChange"},{emit:"maxLengthChange"},{emit:"minSearchLengthChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"selectedItemChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayValue(){return this._getOption("displayValue")}set displayValue(e){this._setOption("displayValue",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get grouped(){return this._getOption("grouped")}set grouped(e){this._setOption("grouped",e)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(e){this._setOption("groupTemplate",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get maxItemCount(){return this._getOption("maxItemCount")}set maxItemCount(e){this._setOption("maxItemCount",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(e){this._setOption("minSearchLength",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(e){this._setOption("searchExpr",e)}get searchMode(){return this._getOption("searchMode")}set searchMode(e){this._setOption("searchMode",e)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(e){this._setOption("searchTimeout",e)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(e){this._setOption("selectedItem",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(e){this._setOption("spellcheck",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(e){this._setOption("useItemTextAsTitle",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(e){this._setOption("wrapItemText",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new CEt(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("searchExpr",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(In(r,Ig,4),In(r,So,4)),2&e){let o;yn(o=Cn())&&(i.buttonsChildren=o),yn(o=Cn())&&(i.itemsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayValue:"displayValue",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",maxItemCount:"maxItemCount",maxLength:"maxLength",minSearchLength:"minSearchLength",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",selectedItem:"selectedItem",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useItemTextAsTitle:"useItemTextAsTitle",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onItemClick:"onItemClick",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayValueChange:"displayValueChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxItemCountChange:"maxItemCountChange",maxLengthChange:"maxLengthChange",minSearchLengthChange:"minSearchLengthChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",selectedItemChange:"selectedItemChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},features:[ot([Zt,nn,bEt,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),FCe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Wa,Us,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,$i,bi,tn,mi],Wa,Us,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,$i,tn]}),t})();var wEt={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,quarter:7776e6,year:31536e6};function tB(t){return wEt[t]}var QT=["millisecond","second","minute","hour","day","week","month","quarter","year"],BCe=function(t){var n,e,i,r=["millisecond","second","minute","hour","day","month","year"],o={};for(n=r.length-1;n>=0;n--)i=r[n],(e=Math.floor(t/tB(i)))>0&&(o[i+"s"]=e,t-=nB(i,e));return o};function nB(t,n){return tB(t)*n}function iB(t){var e,n=-1;return Pn(t)?t:Jn(t)?(we(t,function(i,r){for(e=0;e<QT.length;e++)r&&(i===QT[e]+"s"||i===QT[e])&&n<e&&(n=e)}),QT[n]):""}var OEt={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},NCe=function(t){return Math.floor(t/3)},VCe=function(t){return 3*NCe(t)};function HCe(t,n,e,i){t=new Date(t.getTime());var o,a,r=new Date(t.getTime()),s=iB(n);switch(s){case"second":t=new Date(1e3*Math.floor(r.getTime()/1e3));break;case"minute":t=new Date(6e4*Math.floor(r.getTime()/6e4));break;case"hour":t=new Date(36e5*Math.floor(r.getTime()/36e5));break;case"year":t.setMonth(0);case"month":t.setDate(1);case"day":t.setHours(0,0,0,0);break;case"week":(t=KCe(t,i||0)).setHours(0,0,0,0);break;case"quarter":o=VCe(t.getMonth()),a=t.getMonth(),t.setDate(1),t.setHours(0,0,0,0),a!==o&&t.setMonth(o)}return e&&"hour"!==s&&"minute"!==s&&"second"!==s&&XCe(r,t),t}function zCe(t){return HCe(t,"day")}function UCe(t,n,e){var i=new Date(t.getTime()),r=Pn(n)?GCe(n.toLowerCase()):di(n)?BCe(n):n;return r.years&&i.setFullYear(i.getFullYear()+r.years*e),r.quarters&&i.setMonth(i.getMonth()+3*r.quarters*e),r.months&&i.setMonth(i.getMonth()+r.months*e),r.weeks&&i.setDate(i.getDate()+7*r.weeks*e),r.days&&i.setDate(i.getDate()+r.days*e),r.hours&&i.setTime(i.getTime()+36e5*r.hours*e),r.minutes&&i.setTime(i.getTime()+6e4*r.minutes*e),r.seconds&&i.setTime(i.getTime()+1e3*r.seconds*e),r.milliseconds&&i.setTime(i.getTime()+r.milliseconds*e),i}var WCe=function(t,n,e){var i=e?-1:1;return Sa(t)?UCe(t,n,i):Kr(t+n*i,n)};function rB(t){return Lc(t.getFullYear(),t.getMonth()+1,0).getDate()}function GCe(t){var n={};switch(t){case"year":n.years=1;break;case"month":n.months=1;break;case"quarter":n.months=3;break;case"week":n.weeks=1;break;case"day":n.days=1;break;case"hour":n.hours=1;break;case"minute":n.minutes=1;break;case"second":n.seconds=1;break;case"millisecond":n.milliseconds=1}return n}function sj(t,n){return jCe(t,n)&&t.getMonth()===n.getMonth()}function jCe(t,n){return t&&n&&t.getFullYear()===n.getFullYear()}function eI(t){return t&&t.getFullYear()-t.getFullYear()%100}function tI(t){return t&&t.getFullYear()-t.getFullYear()%10}function KCe(t,n){var e=(t.getDay()-n+7)%7,i=new Date(t);return i.setDate(t.getDate()-e),i}function $Ce(t){return Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())}function qCe(t){return new Date(t,0,1)}function lj(t){return new Date(t,11,31)}function YCe(t,n){var e=t.getDay()-n+1;return e<=0&&(e+=7),e}function ZCe(t,n,e){var i=t;return Z(t)?(Z(n)&&t<n&&(i=n),Z(e)&&t>e&&(i=e),i):t}function XCe(t,n){if(Z(t)){var e=n.getHours()-t.getHours();if(0!==e){var i=1===e||-23===e?-1:1,r=new Date(n.getTime()+36e5*i);(i>0||r.getDate()===n.getDate())&&n.setTime(r.getTime())}}}function JCe(t,n){return 60*(n.getTimezoneOffset()-t.getTimezoneOffset())*1e3}var Lc=function(t){var n=new Date(...arguments);return n.setFullYear(t),n},fC={dateUnitIntervals:QT,convertMillisecondsToDateUnits:BCe,dateToMilliseconds:function(t){var n=0;return Jn(t)&&we(t,function(e,i){n+=nB(e.substr(0,e.length-1),i)}),Pn(t)&&(n=nB(t,1)),n},getNextDateUnit:function(t,n){switch(iB(t)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return n?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:nB,getDateUnitInterval:iB,getDateFormatByTickInterval:function TEt(t){return OEt[iB(t)]||""},getDatesDifferences:function(t,n){var e=0,i={year:t.getFullYear()!==n.getFullYear(),month:t.getMonth()!==n.getMonth(),day:t.getDate()!==n.getDate(),hour:t.getHours()!==n.getHours(),minute:t.getMinutes()!==n.getMinutes(),second:t.getSeconds()!==n.getSeconds(),millisecond:t.getMilliseconds()!==n.getMilliseconds()};return we(i,function(r,o){o&&e++}),0===e&&0!==JCe(t,n)&&(i.hour=!0,e++),i.count=e,i},correctDateWithUnitBeginning:HCe,trimTime:zCe,setToDayEnd:function(t){var n=zCe(t);return n.setDate(n.getDate()+1),new Date(n.getTime()-1)},roundDateByStartDayHour:function(t,n){var e=this.dateTimeFromDecimal(n),i=new Date(t);return(t.getHours()===e.hours&&t.getMinutes()<e.minutes||t.getHours()<e.hours)&&i.setHours(e.hours,e.minutes,0,0),i},dateTimeFromDecimal:function(t){return{hours:Math.floor(t),minutes:t%1*60}},addDateInterval:UCe,addInterval:WCe,getSequenceByInterval:function(t,n,e){var r,i=[];for(i.push(Sa(t)?new Date(t.getTime()):t),r=t;r<n;)r=WCe(r,e),i.push(r);return i},getDateIntervalByString:GCe,sameHoursAndMinutes:function zEt(t,n){return t&&n&&t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()},sameDate:function HEt(t,n){return sj(t,n)&&t.getDate()===n.getDate()},sameMonthAndYear:sj,sameMonth:sj,sameYear:jCe,sameDecade:function(t,n){if(Z(t)&&Z(n)){var e=t.getFullYear()-t.getFullYear()%10,i=n.getFullYear()-n.getFullYear()%10;return t&&n&&e===i}},sameCentury:function(t,n){if(Z(t)&&Z(n)){var e=t.getFullYear()-t.getFullYear()%100,i=n.getFullYear()-n.getFullYear()%100;return t&&n&&e===i}},getDifferenceInMonth:function(t){var n=1;return"year"===t&&(n=12),"decade"===t&&(n=120),"century"===t&&(n=1200),n},getDifferenceInMonthForCells:function(t){var n=1;return"decade"===t&&(n=12),"century"===t&&(n=120),n},getFirstYearInDecade:tI,getFirstDecadeInCentury:eI,getShortDateFormat:function(){return"yyyy/MM/dd"},getViewFirstCellDate:function(t,n){return"month"===t?Lc(n.getFullYear(),n.getMonth(),1):"year"===t?Lc(n.getFullYear(),0,n.getDate()):"decade"===t?Lc(tI(n),n.getMonth(),n.getDate()):"century"===t?Lc(eI(n),n.getMonth(),n.getDate()):void 0},getViewLastCellDate:function(t,n){return"month"===t?Lc(n.getFullYear(),n.getMonth(),rB(n)):"year"===t?Lc(n.getFullYear(),11,n.getDate()):"decade"===t?Lc(tI(n)+9,n.getMonth(),n.getDate()):"century"===t?Lc(eI(n)+90,n.getMonth(),n.getDate()):void 0},getViewDown:function(t){switch(t){case"century":return"decade";case"decade":return"year";case"year":return"month"}},getViewUp:function(t){switch(t){case"month":return"year";case"year":return"decade";case"decade":return"century"}},getLastMonthDay:rB,getLastMonthDate:function(t){if(Z(t))return Lc(t.getFullYear(),t.getMonth()+1,0)},getFirstMonthDate:function(t){if(Z(t))return Lc(t.getFullYear(),t.getMonth(),1)},getFirstWeekDate:KCe,getWeekNumber:function uj(t,n,e){var i=YCe(qCe(t.getFullYear()),n),r=YCe(lj(t.getFullYear()),n),o=7-i+1,a=Math.ceil((function $Et(t){var n=$Ce(t)-$Ce(qCe(t.getFullYear()));return 1+Math.floor(n/tB("day"))}(t)-o)/7);switch(e){case"fullWeek":return 7===o&&a++,0===a?uj(lj(t.getFullYear()-1),n,e):a;case"firstDay":return o>0&&a++,(a>52&&!(7===i||7===r)||54===a)&&(a=1),a;case"firstFourDays":return o>3&&a++,a>52&&!(4===i||4===r)&&(a=1),0===a?uj(lj(t.getFullYear()-1),n,e):a}},normalizeDateByWeek:function(t,n){var e=fC.getDatesInterval(t,n,"day"),i=new Date(t);return e>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},getQuarter:NCe,getFirstQuarterMonth:VCe,dateInRange:function(t,n,e,i){return"date"===i&&(n=n&&fC.correctDateWithUnitBeginning(n,"day"),e=e&&fC.correctDateWithUnitBeginning(e,"day"),t=t&&fC.correctDateWithUnitBeginning(t,"day")),ZCe(t,n,e)===t},intervalsOverlap:function(t){var{firstMin:n,firstMax:e,secondMin:i,secondMax:r}=t;return n<=i&&i<=e||n>i&&n<r||n<r&&e>r},roundToHour:function(t){var n=new Date(t.getTime());return n.setHours(n.getHours()+1),n.setMinutes(0),n},normalizeDate:ZCe,getViewMinBoundaryDate:function(t,n){var e=Lc(n.getFullYear(),n.getMonth(),1);return"month"===t||(e.setMonth(0),"year"===t)||("decade"===t&&e.setFullYear(tI(n)),"century"===t&&e.setFullYear(eI(n))),e},getViewMaxBoundaryDate:function(t,n){var e=new Date(n);return e.setDate(rB(n)),"month"===t||(e.setMonth(11),e.setDate(rB(e)),"year"===t)||("decade"===t&&e.setFullYear(tI(n)+9),"century"===t&&e.setFullYear(eI(n)+99)),e},fixTimezoneGap:XCe,getTimezonesDifference:JCe,makeDate:function(t){return new Date(t)},getDatesInterval:function(t,n,e){var i=n.getTime()-t.getTime(),r=tB(e)||1;return Math.floor(i/r)},getDatesOfInterval:function(t,n,e){for(var i=[],r=new Date(t.getTime());r<n;)i.push(new Date(r.getTime())),r=this.addInterval(r,e);return i},createDateWithFullYear:Lc,sameView:function(t,n,e){return fC[dd("same "+t)](n,e)}};const bt=fC;var QCe={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},dj=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){var n=parseInt(t[1],10),e=parseInt(t[2],10),i=parseInt(t[3],10),r=ebe(n,e,i);return[r[0],r[1],r[2],1,[n,e,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){var n=parseInt(t[1],10),e=parseInt(t[2],10),i=parseInt(t[3],10),r=tbe(n,e,i);return[r[0],r[1],r[2],1,null,[n,e,i]]}}],Lm=Math.round;function Bm(t){var n;this.baseColor=t,t&&(n=String(t).toLowerCase().replace(/ /g,""),n=function nOt(t){if("transparent"===t)return[0,0,0,0];for(var i,n=0,e=dj.length;n<e;++n)if(i=dj[n].re.exec(t))return dj[n].process(i);return null}(n=QCe[n]?"#"+QCe[n]:n)),n||(this.colorIsInvalid=!0),this.r=Wg((n=n||{})[0]),this.g=Wg(n[1]),this.b=Wg(n[2]),this.a=Wg(n[3],1,1),this.hsv=n[4]?{h:n[4][0],s:n[4][1],v:n[4][2]}:function rOt(t,n,e){var a,s,i=Math.max(t,n,e),r=Math.min(t,n,e),o=i-r,l=i;if(s=0===i?0:1-r/i,i===r)a=0;else switch(i){case t:a=(n-e)/o*60,n<e&&(a+=360);break;case n:a=(e-t)/o*60+120;break;case e:a=(t-n)/o*60+240}return s*=100,l*=100/255,{h:Math.round(a),s:Math.round(s),v:Math.round(l)}}(this.r,this.g,this.b),this.hsl=n[5]?{h:n[5][0],s:n[5][1],l:n[5][2]}:function aOt(t,n,e){t=C1(t,255),n=C1(n,255),e=C1(e,255);var a,s,i=Math.max(t,n,e),r=Math.min(t,n,e),o=i+r,l=o/2;if(i===r)a=s=0;else{var u=i-r;s=l>.5?u/(2-o):u/o,a=function oOt(t,n,e,i){switch(Math.max(t,n,e)){case t:return(n-e)/i+(n<e?6:0);case n:return(e-t)/i+2;case e:return(t-n)/i+4}}(t,n,e,u),a/=6}return{h:Lm(360*a),s:Lm(100*s),l:Lm(100*l)}}(this.r,this.g,this.b)}function Wg(t,n,e){return n=n||0,e=e||255,t<0||isNaN(t)?n:t>e?e:t}function ebe(t,n,e){var l,u,f,r=(100-n)*e/100,o=t%60/60*(e-r),a=r+o,s=e-o;switch(Math.floor(t%360/60)){case 0:l=e,u=a,f=r;break;case 1:l=s,u=e,f=r;break;case 2:l=r,u=e,f=a;break;case 3:l=r,u=s,f=e;break;case 4:l=a,u=r,f=e;break;case 5:l=e,u=r,f=s}return[Math.round(2.55*l),Math.round(2.55*u),Math.round(2.55*f)]}function cj(t,n){var e=n;return"r"===t&&(e=n+1/3),"b"===t&&(e=n-1/3),e}function hj(t,n,e){return e=function sOt(t){return t<0&&(t+=1),t>1&&(t-=1),t}(e),e<1/6?t+6*(n-t)*e:e<.5?n:e<2/3?t+(n-t)*(2/3-e)*6:t}function tbe(t,n,e){var i,r,o;if(t=C1(t,360),n=C1(n,100),e=C1(e,100),0===n)i=r=o=e;else{var a=e<.5?e*(1+n):e+n-e*n,s=2*e-a;i=hj(s,a,cj("r",t)),r=hj(s,a,cj("g",t)),o=hj(s,a,cj("b",t))}return[Lm(255*i),Lm(255*r),Lm(255*o)]}function C1(t,n){return t=Math.min(n,Math.max(0,parseFloat(t))),Math.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function pj(t,n,e){return n=n||0,e=e||255,!(t%1!=0||t<n||t>e||"number"!=typeof t||isNaN(t))}Bm.prototype={constructor:Bm,highlight:function(t){return this.alter(t=t||10).toHex()},darken:function(t){return this.alter(-(t=t||10)).toHex()},alter:function(t){var n=new Bm;return n.r=Wg(this.r+t),n.g=Wg(this.g+t),n.b=Wg(this.b+t),n},blend:function(t,n){var e=t instanceof Bm?t:new Bm(t),i=new Bm;return i.r=Wg(Lm(this.r*(1-n)+e.r*n)),i.g=Wg(Lm(this.g*(1-n)+e.g*n)),i.b=Wg(Lm(this.b*(1-n)+e.b*n)),i},toHex:function(){return function iOt(t,n,e){return"#"+(16777216|t<<16|n<<8|e).toString(16).slice(1)}(this.r,this.g,this.b)},getPureColor:function(){return new Bm("rgb("+ebe(this.hsv.h,100,100).join(",")+")")},isValidHex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},isValidRGB:function(t,n,e){return!(!pj(t)||!pj(n)||!pj(e))},isValidAlpha:function(t){return!(isNaN(t)||t<0||t>1||"number"!=typeof t)},colorIsInvalid:!1,fromHSL:function(t){var n=new Bm,e=tbe(t.h,t.s,t.l);return n.r=e[0],n.g=e[1],n.b=e[2],n}};const Ka=Bm;var{PI:gj,LN10:lOt,abs:kh,log:fj,floor:mj,ceil:oB,pow:_j,sqrt:nbe,atan2:uOt}=Math,vj=(Math,Math.max),ibe=Math.cos,rbe=Math.sin,mC=Math.round,cOt=bt.dateToMilliseconds,abe=gj/180,yj=isNaN,aB=Number,Nm=function(t,n){return t?fj(t)/fj(n):NaN},bj=function(t){return Kr(Nm(t,10))},xj=function(t,n){return _j(n,t)},Bc=function(t){return(t%360+360)%360},lbe=function(t){return 90-t},ube=function(t){return gj*t/180},Ll=function(t){var n=ube(t);return{cos:ibe(n),sin:rbe(n)}},sB=function(t,n,e,i){var r=e-t,o=i-n;return nbe(o*o+r*r)},wj=function(t){var e,n=kh(t);return yj(n)?NaN:n>0?(n=fj(n)/lOt,(e=oB(n))-n<1e-14?e:mj(n)):0},dbe=function(t){return t.toExponential().split("e")[1]};function ma(t,n){for(var o,e=0,i=t.length,r=[];e<i;)null!==(o=n(t[e],e))&&r.push(o),e++;return r}function Ri(t){return String(t).toLowerCase()}function nI(t){return t&&(t.originalTop=t.top,t.originalBottom=t.bottom,t.originalLeft=t.left,t.originalRight=t.right),t}function lB(t){return-1e10<t&&t<1e10?t:0}function cbe(t){var n=lB(mj(t.x)),e=lB(mj(t.y)),o={x:n,y:e,width:lB(oB(t.width+t.x))-n,height:lB(oB(t.height+t.y))-e};return o.isEmpty=!(o.x||o.y||o.width||o.height),o}function uB(t,n,e){var i=aB(ibe(e*abe).toFixed(3)),r=aB(rbe(e*abe).toFixed(3)),o=t.width/2,a=t.height/2,s=t.x+o,l=t.y+a,u=kh(o*i)+kh(a*r),f=kh(o*r)+kh(a*i);return cbe({x:n[0]+(s-n[0])*i+(l-n[1])*r-u,y:n[1]-(s-n[0])*r+(l-n[1])*i-f,width:2*u,height:2*f})}var wd=function(t,n){return void 0!==t?t:n},b1=function(t){var e,i,n={};for(e=0,i=t.length;e<i;++e)n[Ri(t[e])]=1;return function(r,o){var a=Ri(r);return n[a]?a:o}},_a=function(t){var n={};return we(t||{},function(e,i){if(!/^(cursor)$/i.test(e))if("opacity"===e)i=null;else if("color"===e){if(e="fill","opacity"in t){var r=new Ka(i);i="rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(t.opacity,")")}}else e="font-"+e;n[e]=i}),n};function iI(t,n,e,i){var r=i>0?i:0;e=Z(e)?e+n-90:0;var o=Ll(e);return{x:mC(t.x+r*o.cos),y:mC(t.y+r*o.sin)}}var Sj=function(t,n,e){var i=sB(t.x,t.y,n,e),r=uOt(e-t.y,n-t.x);return{phi:mC(Bc(180*r/gj)),r:mC(i)}},hbe=function(t,n){var a,l,u,e=Yt(t.customizeSeries)?t.customizeSeries:Be,i=t.nameField,r={},o=[],s=0;for(l=(n=n||[]).length;s<l;s++)i in(u=n[s])&&((a=r[u[i]])||(a=r[u[i]]={name:u[i],nameFieldValue:u[i]},o.push(a.name)));return ma(o,function(f){var S=r[f];return se(S,e.call(null,S.name))})},Gg=function(t,n,e){if(0===t.length)return{categories:[]};n=Z(n)?n:t[0],e=Z(e)?e:t[t.length-1];var a,i=ma(t,f=>f?.valueOf()),r=i.indexOf(n.valueOf()),o=i.indexOf(e.valueOf()),s=!1;r<0&&(r=0),o<0&&(o=t.length-1),o<r&&(a=o,o=r,r=a,s=!0);var l=t.slice(r,o+1),u=l.length-1;return{categories:l,start:l[s?u:0],end:l[s?0:u],inverted:s}};function rI(t){return!(t.unit%2)}var Dj=function(t){var n={};return ma(t,function(e){var i=n[e]?null:e;return n[e]=!0,i})},pbe=function(t,n,e){var i=t.x+t.width/2>=e.x,r=(i?t.x:t.x+t.width)-e.x,o=t.y-e.y,a=o+n,s=mC(nbe(r*r+o*o-a*a)),l=(i?+s:-s)||r;return{x:e.x+(i?l:l-t.width),y:t.y+n}};function Ej(t,n){return{checkInterval:t.checkInterval||n.checkInterval,size:vj(t.size||0,n.size||0),percentStick:t.percentStick||n.percentStick,sizePointNormalState:vj(t.sizePointNormalState||0,n.sizePointNormalState||0)}}function jg(t){return Array.isArray(t)?{startValue:t[0],endValue:t[1]}:t||{}}function I_(t,n){return n?t:[t.startValue,t.endValue]}function Oj(t,n){return"datetime"===t.dataType?function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new Date(e.getTime()+r*i)}:"logarithmic"===t.axisType?function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=du(e,t.base)+r*i;return _C(o,t.base)}:function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=e+r*i;return n&&o*e<=0?0:o}}function gbe(t,n,e,i){var r=Z(n.startValue),o=Z(n.endValue),a="discrete"!==t.axisType;i=i||e;var s=Oj(t,!1),l=r?n.startValue:i.min,u=o?n.endValue:i.max,f=n.length,S=i.categories;if(a&&!Z(l)&&!Z(u))return{startValue:l,endValue:u};if(Z(f))if(a)"datetime"===t.dataType&&!di(f)&&(f=cOt(f)),o&&!r||!o&&!r?(Z(e.max)&&(u=u>e.max?e.max:u),l=s(u,f,-1)):r&&!o&&(Z(e.min)&&(l=l<e.min?e.min:l),u=s(l,f));else if(f=parseInt(f),!isNaN(f)&&isFinite(f))if(f--,o||r){if(r&&!o)u=Gg(S,l,void 0).categories[f];else if(!r&&o){var R=Gg(S,void 0,u);l=R.categories[R.categories.length-1-f]}}else u=S[S.length-1],l=S[S.length-1-f];return a&&(Z(e.max)&&u>e.max&&(u=e.max),Z(e.min)&&l<e.min&&(l=e.min)),{startValue:l,endValue:u}}function du(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!e)return Nm(t,n);if(0===t)return 0;var r=Nm(kh(t),n)-(i-1);return r<0?0:Kr(gh(t)*r,Number(_j(n,i-1).toFixed(kh(i))))}function _C(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!e)return xj(t,n);if(0===t)return 0;var r=xj(kh(t)+(i-1),n);return r<0?0:Kr(gh(t)*r,Number(_j(n,i).toFixed(kh(i))))}function dB(t,n){return Array.isArray(n)?t.length===n.length&&t.every((e,i)=>Lu(e)===Lu(n[i])):Lu(t.startValue)===Lu(n.startValue)&&Lu(t.endValue)===Lu(n.endValue)}function Lu(t){return t&&t.valueOf()}function Tj(t,n,e){return n>=t.left&&n<=t.right&&e>=t.top&&e<=t.bottom}var vC=Number;function cB(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3]).setInverted(!1)}cB.prototype={constructor:cB,setDomain:function(t,n){return this._domain1=vC(t),this._domain2=vC(n),this._domainDelta=this._domain2-this._domain1,this},setCodomain:function(t,n){return this._codomain1=vC(t),this._codomain2=vC(n),this._codomainDelta=this._codomain2-this._codomain1,this},setInverted(t){this.inverted=t},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(t){var n=(vC(t)-this._domain1)/this._domainDelta;return this.inverted&&(n=1-n),0<=n&&n<=1?this._codomain1+n*this._codomainDelta:NaN},adjust:function(t){var n=(vC(t)-this._domain1)/this._domainDelta,e=NaN;return n<0?e=this._domain1:n>1?e=this._domain2:0<=n&&n<=1&&(e=vC(t)),e}};var kj,Ij=Math.floor,vOt=Math.ceil,oI=Array.isArray,aI={material:{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"},office:{simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},"harmony light":{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"},"soft pastel":{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"},pastel:{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"},bright:{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"},soft:{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"},ocean:{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"},vintage:{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"},violet:{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"},carmine:{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"},"dark moon":{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"},"soft blue":{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"},"dark violet":{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"},"green mist":{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}};function mbe(t){if(void 0===t)return kj||"material";t=Ri(t),kj=t in aI?t:void 0}function hB(t,n){n=n||{},t=t||(void 0===kj?n.themeDefault:mbe());var e,i=n.type;return oI(t)?t.slice(0):(Pn(t)&&(e=aI[Ri(t)]),e||(e=aI[mbe()]),i?e[i].slice(0):e)}function xOt(t){var n=0;this.next=function(){var e=t[n++];return n===t.length&&this.reset(),e},this.reset=function(){n=0}}function _be(t,n,e){var i={dispose(){this._extensionStrategy=null},getNextColor(a){return this._extensionStrategy.getColor(this._currentColor++,a)},generateColors(a,s){return this._extensionStrategy.generateColors(a,(s||{}).repeat)},reset(){return this._currentColor=0,this._extensionStrategy.reset(),this}},r=((n=n||{}).extensionMode||"").toLowerCase(),o=hB(t,{type:n.type||"simpleSet",themeDefault:e});return i._extensionStrategy="alternate"===r?function wOt(t,n){var e=n.useHighlight?50:0,i=new xOt([0,e,-e]),r=[];function o(){var a=i.next();r=a?function EOt(t,n){var i,e=[],r=t.length;for(i=0;i<r;++i)e.push(OOt(t[i],n));return e}(t,a):t.slice(0)}return{getColor:function(a){var s=r[a%t.length];return a%t.length==t.length-1&&o(),s},generateColors:function(a){var s=[];a=a||n.count;for(var l=0;l<a;l++)s.push(this.getColor(l));return s},reset:function(){i.reset(),o()}}}(o,n):"extrapolate"===r?function SOt(t,n){return{getColor:function(e,i){var s,l,u,f,S,T,R,L,z,j,r=t.length,o=Ij((i-1)/r+1),a=t[e%r];return o>1?(s=a,l=Ij(e/r),u=o,L=(S=(f=new Ka(s).hsl).l/100)+.5*(T=u-1/u),j=l-(z=(u-1)/2),(R=S-.5*T)<Math.min(.5,.9*S)&&(R=Math.min(.5,.9*S)),L>Math.max(.8,S+.15*(1-S))&&(L=Math.max(.8,S+.15*(1-S))),j<0?S-=(R-S)*j/z:S+=j/z*(L-S),f.l=100*S,Ka.prototype.fromHSL(f).toHex()):a},generateColors:function(e){var i=[];e=e||n.count;for(var r=0;r<e;r++)i.push(this.getColor(r,e));return i},reset:function(){}}}(o,n):function DOt(t,n){var e=t.length,i=[];function r(s,l,u,f){for(var L,z,S=Math.floor(s/l),T=s-l*S,R=u;R<u+s;)z=S,T>0&&(z+=1,T--),L=z>2?Math.floor(z/2):0,f.push(R+L),R+=z;return f.sort(function(j,Y){return j-Y})}function o(s,l,u){for(var f=0,S=l=(u+l)%u;S<2*u;S+=1){var T=(u+S)%u;if(s[T])return[s[T],f];f++}}function a(s){if(s<=e)return t;var l=[],f=0,S=[];S=n.keepLastColorInEnd?r(s-2,e-2,1,[0,s-1]):r(s-1,e-1,1,[0]);for(var T=0;T<s;T++)S.indexOf(T)>-1&&(l[T]=t[f++]);return function(R,L){for(var z=0;z<L;z++)if(!R[z]){var Y=R[z-1];if(!Y)continue;var ie=o(R,z,L),te=new Ka(ie[0]);Y=new Ka(Y);for(var re=0;re<ie[1];re++,z++)R[z]=Y.blend(te,(re+1)/(ie[1]+1)).toHex()}return R}(l,s)}return{getColor:function(s,l){return i.length!==(l=l||n.count||e)&&(i=a(l)),i[s%l]},generateColors:function(s,l){if(s=s||n.count||e,l&&s>e){for(var u=a(e),f=0;f<s-e;f++)u.push(u[f]);return u}return e>0?a(s).slice(0,s):[]},reset:function(){}}}(o,n),i.reset(),i}function OOt(t,n){var e=new Ka(t).alter(n),i=function TOt(t){return.3*t.r+.59*t.g+.11*t.b}(e);return(i>200||i<55)&&(e=new Ka(t).alter(-n/2)),e.toHex()}var ka="#ffffff",Kg="#000000",x1="#d3d3d3",w1="#303030",Mj="#ff0000",Aj="#232323",pB="#767676",ec="none",Sd="solid",Vm="top",Ds="right",yC="bottom",k_="left",Mh="center",gB="inside",fB="outside";const FOt=[{theme:{name:"generic.light",isDefault:!0,font:{color:pB,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:ka,primaryTitleColor:Aj,secondaryTitleColor:pB,gridColor:x1,axisColor:pB,title:{backgroundColor:ka,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:200},subtitle:{font:{size:16},offset:0,wordWrap:"normal",textOverflow:"ellipsis"},wordWrap:"normal",textOverflow:"ellipsis"},loadingIndicator:{text:"Loading..."},export:{backgroundColor:ka,margin:10,font:{size:14,color:Aj,weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},default:{color:"#333",borderColor:"#ddd",backgroundColor:ka},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:Kg,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:x1},tooltip:{enabled:!1,border:{width:1,color:x1,dashStyle:Sd,visible:!0},font:{color:Aj},color:ka,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,textAlignment:"center",shared:!1,location:Mh,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:Kg},interactive:!1},legend:{hoverMode:"includePoints",verticalAlignment:Vm,horizontalAlignment:Ds,position:fB,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:Sd},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:ka,margin:{left:0,bottom:9,right:0,top:0},font:{size:18,weight:200},subtitle:{offset:0,font:{size:14},wordWrap:"none",textOverflow:"ellipsis"},wordWrap:"none",textOverflow:"ellipsis"}},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:Ds,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:Ds,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:Kg,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:Mh,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:fB,font:{color:ka},border:{visible:!1,width:1,color:x1,dashStyle:Sd},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:k_}},resolveLabelOverlapping:ec},"chart:common:axis":{visible:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",aggregatedPointsPosition:"betweenTicks",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!0,width:1,length:7,shift:3},minorTick:{visible:!1,width:1,opacity:.3,length:7,shift:3},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:Kg,dashStyle:Sd,label:{visible:!0,position:gB}},marker:{label:{}}},"chart:common:annotation":{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:Sd,visible:!0},color:ka,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:Kg},image:{width:30,height:30},wordWrap:"normal",textOverflow:"ellipsis",allowDragging:!1},chart:{commonSeriesSettings:{type:"line",stack:"default",aggregation:{enabled:void 0},point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:Sd,hoverStyle:{width:3,hatching:{direction:ec}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:Sd,hoverStyle:{width:3,hatching:{direction:ec}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:Sd,hoverStyle:{width:3,hatching:{direction:ec}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:Sd,hoverStyle:{width:3,hatching:{direction:ec}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:Sd,hoverStyle:{width:3,hatching:{direction:ec}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:Sd,hoverStyle:{width:3,hatching:{direction:ec}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:ec}},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:gB}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:gB}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:Mj},hoverStyle:{width:3,hatching:{direction:ec}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:Mj},hoverStyle:{width:3,hatching:{direction:ec}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:Sd,label:{visible:!1,font:{color:ka,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,breakStyle:{width:5,color:"#ababab",line:"waved"},label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10,wordWrap:"normal",textOverflow:"none"},title:{font:{size:16},margin:6,alignment:Mh},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:yC,axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:Mh},stripStyle:{label:{horizontalAlignment:Mh,verticalAlignment:Vm}},constantLineStyle:{label:{horizontalAlignment:Ds,verticalAlignment:Vm}},constantLines:[]},verticalAxis:{position:k_,axisDivisionFactor:40,label:{alignment:Ds},stripStyle:{label:{horizontalAlignment:k_,verticalAlignment:Mh}},constantLineStyle:{label:{horizontalAlignment:k_,verticalAlignment:Vm}},constantLines:[]},argumentAxis:{endOnTick:!1,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:ec,border:{color:x1,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:Sd}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},adjustOnZoom:!0,autoHidePointMarkers:!0,rotated:!1,synchronizeMultiAxes:!0,stickyHovering:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,zoomAndPan:{dragBoxStyle:{color:"#2a2a2a",opacity:.2},panKey:"shift",allowMouseWheel:!0,allowTouchGestures:!0}},pie:{innerRadius:.5,minDiameter:.5,type:"pie",dataPrepareSettings:{_skipArgumentSorting:!0},commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:ka},hoverStyle:{hatching:{direction:Ds,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:Ds,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:ka},hoverStyle:{hatching:{direction:Ds,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:Ds,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:ka},hoverStyle:{hatching:{direction:Ds,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:Ds,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:ec},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:Mh,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:Vm,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:ec,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:ka,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:Mh,verticalAlignment:yC},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:fB,label:{indentFromTick:10}},rangeContainer:{orientation:fB},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10,beginAdaptingAtRadius:50},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{scaleDivisionFactor:25,horizontalOrientation:Ds,verticalOrientation:yC,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:Ds,verticalOrientation:yC},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:Ds,verticalOrientation:yC},trianglemarker:{offset:10,horizontalOrientation:k_,verticalOrientation:Vm},textcloud:{offset:-1,horizontalOrientation:k_,verticalOrientation:Vm}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,resolveLabelOverlapping:"hide",label:{indent:20,connectorWidth:2,font:{size:16}},legend:{visible:!1},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:Mh,verticalAlignment:yC},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:Kg,opacity:.1,showCustomBoundaryTicks:!0,label:{overlappingBehavior:"hide",alignment:Mh,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:Kg,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:Kg,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10,workWeek:[1,2,3,4,5],breakStyle:{width:5,color:"#ababab",line:"waved"},endOnTick:!1},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:Mj,font:{color:ka,size:11}},sliderHandle:{width:1,color:Kg,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callValueChanged:"onMovingComplete"},redrawOnResize:!0,chart:{barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",aggregation:{enabled:void 0},point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:ka,"stroke-width":1,"stroke-opacity":.7,font:{color:"#2b2b2b",size:12}}},"layer:area":{borderWidth:1,borderColor:ka,color:"#d2d2d2",hoveredBorderColor:w1,selectedBorderWidth:2,selectedBorderColor:w1,label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:ka,size:8,selectedStep:2,backStep:18,backColor:ka,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:w1,selectedBorderWidth:2,selectedBorderColor:w1},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:w1,selectedBorderWidth:2,selectedBorderColor:w1},"layer:marker:image":{size:20},legend:{verticalAlignment:yC,horizontalAlignment:Ds,position:gB,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:ka,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:k_}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:"#ffffff",weight:600},shadow:{opacity:.6,offsetX:0,offsetY:1,blur:2,color:"#000000"},wordWrap:"normal",textOverflow:"ellipsis"}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:pB,weight:600},textOverflow:"ellipsis"}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:ka,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:Sd,hoverStyle:{width:3,hatching:{direction:ec}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:80,height:80,keepLabels:!0},barGroupPadding:.3,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{endOnTick:!1,tick:{visible:!1}},horizontalAxis:{position:Vm,axisDivisionFactor:50,label:{alignment:Mh}},verticalAxis:{position:Vm,axisDivisionFactor:30,label:{alignment:Ds}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:ka},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:Ds},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:Ds},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:k_}},tooltip:{customizeTooltip:function(t){return{text:t.item.argument+" "+t.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:Ds,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(t){return t.item.argument+" "+t.valueText},position:"columns",font:{color:ka},border:{visible:!1,width:1,color:x1,dashStyle:Sd},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:Mh,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:Kg,weight:500},border:{visible:!1,width:2,color:ka},customizeText:function(t){return t.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:ka}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:ka,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:Ds},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:ka,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:Ds},border:{}}}}},baseThemeName:void 0},{theme:{name:"generic.light.compact"},baseThemeName:"generic.light"}];var S1="#f05b41",D1="#fff",M_="#333",E1="#dee1e3";const POt=[{theme:{name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:D1,primaryTitleColor:M_,secondaryTitleColor:"#8899a8",gridColor:E1,axisColor:"#707070",export:{backgroundColor:D1,font:{color:M_},button:{default:{color:M_,borderColor:"#b1b7bd",backgroundColor:D1},hover:{color:M_,borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:M_,borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:M_,borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:"#707070"}},tooltip:{color:D1,border:{color:E1},font:{color:M_}},"chart:common":{commonSeriesSettings:{label:{border:{color:E1}}}},"chart:common:annotation":{font:{color:M_},border:{color:E1},color:D1},chart:{commonPaneSettings:{border:{color:E1}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:S1,sliderMarker:{color:S1},sliderHandle:{color:S1,opacity:.5}},sparkline:{pointColor:D1,minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:E1,label:{font:{color:"#8899a8"}}}},bullet:{color:S1},gauge:{valueIndicators:{rangebar:{color:S1},textcloud:{color:S1}}}},baseThemeName:"generic.light"},{theme:{name:"generic.carmine.compact"},baseThemeName:"generic.carmine"}];var Dd="#ffffff",Fj="#2b2b2b",mB="#b5b5b5",_B="#303030",Pj="#c7c7c7",Rj="#8e8e8e",vB="#494949";const BOt=[{theme:{name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",gridColor:"#555555",axisColor:"#a3a3a3",export:{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:Fj,border:{color:vB},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:vB}},valueErrorBar:{color:Dd}}},"chart:common:axis":{constantLineStyle:{color:Dd}},"chart:common:annotation":{font:{color:"#929292"},border:{color:vB},color:Fj,shadow:{opacity:.008,offsetY:4,blur:8}},chart:{commonPaneSettings:{border:{color:vB}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:Dd}}},gauge:{rangeContainer:{backgroundColor:mB},valueIndicators:{_default:{color:mB},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:Dd,opacity:.32},minorTick:{color:Dd,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:mB,sliderMarker:{color:mB,font:{color:_B}},sliderHandle:{color:Dd,opacity:.2},shutter:{color:Fj,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:Dd}}},"layer:area":{borderColor:_B,color:"#686868",hoveredBorderColor:Dd,selectedBorderColor:Dd},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:Dd,selectedBorderColor:Dd},"layer:marker:pie":{hoveredBorderColor:Dd,selectedBorderColor:Dd},legend:{border:{color:"#3f3f3f"},font:{color:Dd}},controlBar:{borderColor:Pj,color:_B}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:Pj,firstLastColor:Pj,barPositiveColor:"#b8b8b8",barNegativeColor:Rj,winColor:"#b8b8b8",lossColor:Rj,pointColor:_B},bullet:{targetColor:Rj},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:Dd},shadow:{opacity:0}},node:{border:{color:"#2a2a2a"}},link:{color:"#888888",border:{color:"#2a2a2a"},hoverStyle:{color:"#bbbbbb"}}}},baseThemeName:"generic.light"},{theme:{name:"generic.dark.compact"},baseThemeName:"generic.dark"}];var yr="#ffffff",cl="#000000",sI="#cf00da";const VOt=[{theme:{name:"generic.contrast",defaultPalette:"Bright",font:{color:yr},backgroundColor:cl,primaryTitleColor:yr,secondaryTitleColor:yr,gridColor:yr,axisColor:yr,export:{backgroundColor:cl,font:{color:yr},button:{default:{color:yr,borderColor:yr,backgroundColor:cl},hover:{color:yr,borderColor:yr,backgroundColor:"#cf00d7"},focus:{color:yr,borderColor:"#cf00d7",backgroundColor:cl},active:{color:cl,borderColor:yr,backgroundColor:yr}},borderColor:yr,menuButtonColor:cl,activeBackgroundColor:yr,activeColor:cl,selectedBorderColor:sI,selectedColor:sI,shadowColor:"none"},tooltip:{border:{color:yr},font:{color:yr},color:cl},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:yr},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:yr},border:{color:yr}}}},"chart:common:axis":{constantLineStyle:{color:yr}},"chart:common:annotation":{font:{color:yr},border:{color:yr},color:cl},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:cl,border:{color:yr}},scrollBar:{color:yr},commonAxisSettings:{breakStyle:{color:"#cf00d7"}},zoomAndPan:{dragBoxStyle:{color:yr,opacity:.7}}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:yr},valueIndicators:{_default:{color:yr},rangebar:{color:yr,backgroundColor:cl},twocolorneedle:{secondColor:yr},trianglemarker:{color:yr},textcloud:{color:yr,text:{font:{color:cl}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:yr,opacity:.4},minorTick:{color:yr,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:sI,sliderMarker:{color:sI},sliderHandle:{color:sI,opacity:1},shutter:{opacity:.75},background:{color:cl}},map:{background:{borderColor:yr},layer:{label:{stroke:cl,font:{color:yr}}},"layer:area":{borderColor:cl,color:"#686868",hoveredBorderColor:yr,selectedBorderColor:yr,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:yr},"layer:marker:dot":{borderColor:cl,color:"#f8ca00",backColor:cl,backOpacity:.32},"layer:marker:bubble":{color:"#f8ca00",hoveredBorderColor:yr,selectedBorderColor:yr},"layer:marker:pie":{hoveredBorderColor:yr,selectedBorderColor:yr},controlBar:{borderColor:yr,color:cl,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:yr}}}},sparkline:{pointColor:cl},bullet:{},polar:{commonSeriesSettings:{}},funnel:{label:{connector:{opacity:1}}},sankey:{label:{font:{color:yr},shadow:{opacity:0}},node:{border:{visible:!0,width:1,color:yr}},link:{opacity:.5,border:{visible:!0,width:1,color:yr},hoverStyle:{opacity:.9}}}},baseThemeName:"generic.light"},{theme:{name:"generic.contrast.compact"},baseThemeName:"generic.contrast"}];var O1="#3debd3",$g="#465672",Hm="#fff",CC="#596980";const zOt=[{theme:{name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:$g,primaryTitleColor:Hm,secondaryTitleColor:"#919bac",gridColor:CC,axisColor:"#c7ccd4",export:{backgroundColor:$g,font:{color:Hm},button:{default:{color:Hm,borderColor:"#7a889e",backgroundColor:$g},hover:{color:Hm,borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:Hm,borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:Hm,borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:"#c7ccd4"}},tooltip:{color:"#62789e",border:{color:CC},font:{color:Hm}},"chart:common":{commonSeriesSettings:{label:{border:{color:CC}}}},"chart:common:annotation":{font:{color:Hm},border:{color:CC},color:"#62789e"},chart:{commonPaneSettings:{border:{color:CC}},commonAxisSettings:{breakStyle:{color:"#73869e"}}},gauge:{valueIndicators:{rangebar:{color:O1},textcloud:{color:O1,text:{font:{color:$g}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:$g}}},sparkline:{pointColor:$g,minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:CC,label:{font:{color:Hm}}}},map:{background:{borderColor:CC},"layer:area":{color:"#97a3b6",borderColor:$g}},rangeSelector:{shutter:{color:$g},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:O1,sliderMarker:{color:O1,font:{color:"#000"}},sliderHandle:{color:O1,opacity:.5}},bullet:{color:O1},sankey:{link:{border:{color:$g}},node:{border:{color:$g}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkmoon.compact"},baseThemeName:"generic.darkmoon"}];var T1="#9c63ff",qg="#17171f",A_="#f5f6f7",yB="#343840";const UOt=[{theme:{name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:qg,primaryTitleColor:A_,secondaryTitleColor:"#fff",gridColor:yB,axisColor:"#b2b2b6",export:{backgroundColor:qg,font:{color:A_},button:{default:{color:A_,borderColor:"#414152",backgroundColor:qg},hover:{color:A_,borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:A_,borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:A_,borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:"#b2b2b6"}},tooltip:{color:qg,border:{color:"#414152"},font:{color:A_}},"chart:common":{commonSeriesSettings:{label:{border:{color:yB}}}},"chart:common:annotation":{font:{color:A_},border:{color:"#414152"},color:qg},chart:{commonPaneSettings:{border:{color:yB}},commonAxisSettings:{breakStyle:{color:"#575e6b"}}},funnel:{item:{border:{color:qg}}},sparkline:{pointColor:qg,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:yB,label:{font:{color:"#fff"}}}},rangeSelector:{shutter:{color:qg},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:T1,sliderMarker:{color:T1,font:{color:"#fff"}},sliderHandle:{color:T1,opacity:.5}},bullet:{color:T1},gauge:{valueIndicators:{rangebar:{color:T1},textcloud:{color:T1}}},sankey:{link:{border:{color:qg}},node:{border:{color:qg}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkviolet.compact"},baseThemeName:"generic.darkviolet"}];var I1="#3cbab2",k1="#f5f5f5",F_="#28484f",M1="#dedede";const WOt=[{theme:{name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:k1,primaryTitleColor:F_,secondaryTitleColor:"#7eb2be",gridColor:M1,axisColor:"#657c80",export:{backgroundColor:k1,font:{color:F_},button:{default:{color:F_,borderColor:"#a2b4b8",backgroundColor:k1},hover:{color:F_,borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:F_,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:F_,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:"#657c80"}},tooltip:{color:"#fff",border:{color:M1},font:{color:F_}},"chart:common":{commonSeriesSettings:{label:{border:{color:M1}}}},"chart:common:annotation":{color:"#fff",border:{color:M1},font:{color:F_}},chart:{commonPaneSettings:{border:{color:M1}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}}},funnel:{item:{border:{color:k1}}},sparkline:{pointColor:k1,minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:M1,label:{font:{color:"#7eb2be"}}}},rangeSelector:{shutter:{color:k1},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:I1,sliderMarker:{color:I1},sliderHandle:{color:I1,opacity:.5}},bullet:{color:I1},gauge:{valueIndicators:{rangebar:{color:I1},textcloud:{color:I1}}}},baseThemeName:"generic.light"},{theme:{name:"generic.greenmist.compact"},baseThemeName:"generic.greenmist"}];var A1="#7ab8eb",F1="#fff",P_="#333",P1="#e8eaeb";const GOt=[{theme:{name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:F1,primaryTitleColor:P_,secondaryTitleColor:"#99a1a8",gridColor:P1,axisColor:"#707070",export:{backgroundColor:F1,font:{color:P_},button:{default:{color:P_,borderColor:"#c9d0d4",backgroundColor:F1},hover:{color:P_,borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:P_,borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:P_,borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:"#707070"}},tooltip:{color:F1,border:{color:P1},font:{color:P_}},"chart:common":{commonSeriesSettings:{label:{border:{color:P1}}}},"chart:common:annotation":{color:F1,border:{color:P1},font:{color:P_}},chart:{commonPaneSettings:{border:{color:P1}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:A1,sliderMarker:{color:A1},sliderHandle:{color:A1,opacity:.5}},sparkline:{pointColor:F1,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:P1,label:{font:{color:"#99a1a8"}}}},bullet:{color:A1},gauge:{valueIndicators:{rangebar:{color:A1},textcloud:{color:A1}}}},baseThemeName:"generic.light"},{theme:{name:"generic.softblue.compact"},baseThemeName:"generic.softblue"}];var Ibe="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",kbe="rgba(0,0,0,0.54)",Mbe="rgba(255,255,255,0.87)",Abe="rgba(255,255,255,0.54)",R_="#363640",Bl="#ffffff",CB="#b5b5b5",Lj="#c7c7c7",Bj="#8e8e8e",Lbe=[{theme:{name:"material",defaultPalette:"Material",font:{family:Ibe},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:Ibe,weight:500},horizontalAlignment:"left",subtitle:{font:{size:14},horizontalAlignment:"left"}},tooltip:{shadow:{opacity:0},border:{visible:!1},paddingLeftRight:8,paddingTopBottom:6,arrowLength:0,location:"edge",color:"#616161",font:{color:Bl},cornerRadius:4},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:Bl},border:{color:"#616161"},color:"#616161",arrowLength:14,arrowWidth:0,shadow:{opacity:.08,offsetY:4,blur:8},cornerRadius:4}},pie:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},polar:{commonAxisSettings:{minorTick:{opacity:.5}},title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},funnel:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},gauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},barGauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},rangeSelector:{sliderHandle:{opacity:.5}},treeMap:{group:{label:{font:{weight:500}}}}},baseThemeName:"generic.light"},{theme:{name:"material.light",gridColor:"#e0e0e0",axisColor:kbe,primaryTitleColor:"rgba(0,0,0,0.87)",legend:{font:{color:kbe}},chart:{scrollBar:{color:"#bfbfbf",opacity:.7}},gauge:{rangeContainer:{backgroundColor:"rgba(0,0,0,0.2)"}},barGauge:{backgroundColor:"#efefef"}},baseThemeName:"material"},{theme:{name:"material.dark",gridColor:"#515159",backgroundColor:R_,axisColor:Abe,font:{color:Abe},primaryTitleColor:Mbe,secondaryTitleColor:Mbe,tooltip:{color:"#000"},export:{backgroundColor:R_,font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:R_},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#3f3f4b"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"}},shadowColor:"#292929"},"chart:common":{commonSeriesSettings:{label:{border:{color:"#494949"}},valueErrorBar:{color:Bl}}},"chart:common:axis":{constantLineStyle:{color:Bl}},"chart:common:annotation":{border:{color:"#000"},color:"#000"},chart:{commonPaneSettings:{border:{color:"#494949"}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:Bl}}},gauge:{rangeContainer:{backgroundColor:CB},valueIndicators:{_default:{color:CB},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:Bl,opacity:.32},minorTick:{color:Bl,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:CB,sliderMarker:{color:CB,font:{color:R_}},sliderHandle:{color:Bl,opacity:.2},shutter:{color:Bl,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:Bl}}},"layer:area":{borderColor:R_,color:"#686868",hoveredBorderColor:Bl,selectedBorderColor:Bl},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:Bl,selectedBorderColor:Bl},"layer:marker:pie":{hoveredBorderColor:Bl,selectedBorderColor:Bl},legend:{border:{color:"#3f3f3f"},font:{color:Bl}},controlBar:{borderColor:Lj,color:R_}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:Lj,firstLastColor:Lj,barPositiveColor:"#b8b8b8",barNegativeColor:Bj,winColor:"#b8b8b8",lossColor:Bj,pointColor:R_},bullet:{targetColor:Bj},funnel:{item:{border:{color:R_}}},sankey:{label:{font:{color:Bl}}}},baseThemeName:"material"}];function Bbe(t,n,e){return{theme:{name:"material."+t+"."+n,rangeSelector:{selectedRangeColor:e,sliderMarker:{color:e},sliderHandle:{color:e}},map:{"layer:marker:dot":{color:e},"layer:marker:bubble":{color:e},legend:{markerColor:e}},bullet:{color:e},gauge:{valueIndicators:{rangebar:{color:e},textcloud:{color:e}}}},baseThemeName:"material."+n}}var Nj={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var L_ in Nj)if(Object.prototype.hasOwnProperty.call(Nj,L_)){var Nbe=Nj[L_];Lbe.push(Bbe(L_,"light",Nbe),Bbe(L_,"dark",Nbe),{theme:{name:"material.".concat(L_,".light.compact")},baseThemeName:"material.".concat(L_,".light")},{theme:{name:"material.".concat(L_,".dark.compact")},baseThemeName:"material.".concat(L_,".dark")})}const qOt=Lbe;var zj,bB={},B_={},Vbe={},Vj=se,Yg=we,Hj=null,YOt=0,Uj={};function Hbe(t){var n=Ri(t);return bB[n]||bB[B_[n]||function XOt(t,n){if(!arguments.length)return Hj||xB(lu())||zj;var e=Ri(n);return Hj=(t&&t.platform?ZOt(Ri(t.platform),t.version,e):xB(Ri(t),e))||Hj,this}()]}function xB(t,n){return B_[t+"."+n]||Vbe[t+"."+n]||B_[t]}function ZOt(t,n,e){return xB(t+n,e)||xB(t,e)}function hl(t,n,e,i){var r=e?e[n]:i;void 0!==r&&void 0===t[n]&&(t[n]=r)}function Nc(t,n,e,i){var r=e?e[n]:i;void 0!==r&&(t[n]=Vj(!0,{},r,t[n]))}pa(bB)&&pa(B_)&&!zj&&[].concat(FOt,POt,BOt,VOt,zOt,UOt,WOt,GOt,qOt).forEach(t=>{!function eTt(t,n){var e=Ri(t&&t.name);e&&(t.isDefault&&(zj=e),function QOt(t,n){var e=function JOt(t,n){var e=t.indexOf(n);return e>0?{name:t.substring(0,e),scheme:t.substring(e+1)}:null}(t,".")||{name:t},i=e.name,r=e.scheme;r?(B_[i]=B_[i]||n,B_[i+"."+r]=n):B_[i]=n}(e,e),bB[e]=Vj(!0,{},Hbe(n),function tTt(t){return hl((t=Vj(!0,{loadingIndicator:{font:{}},export:{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},"chart:common:annotation":{font:{},border:{}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},t)).loadingIndicator,"backgroundColor",t),hl(t.chart.commonSeriesSettings.candlestick,"innerColor",null,t.backgroundColor),hl(t.map.background,"color",null,t.backgroundColor),hl(t.title.font,"color",null,t.primaryTitleColor),Nc(t.title,"subtitle",null,t.title),hl(t.legend.font,"color",null,t.secondaryTitleColor),hl(t.legend.border,"color",null,t.gridColor),function nTt(t){var n=t["chart:common:axis"];Yg([n.grid,n.minorGrid],function(e,i){hl(i,"color",null,t.gridColor)}),Yg([n,n.tick,n.minorTick,n.label.font],function(e,i){hl(i,"color",null,t.axisColor)}),hl(n.title.font,"color",null,t.secondaryTitleColor),hl(t.gauge.scale.label.font,"color",null,t.axisColor),hl(t.gauge.scale.tick,"color",null,t.backgroundColor),hl(t.gauge.scale.minorTick,"color",null,t.backgroundColor),hl(t.rangeSelector.scale.label.font,"color",null,t.axisColor)}(t),Yg(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],function(n,e){hl(t[e],"redrawOnResize",t),hl(t[e],"containerBackgroundColor",null,t.backgroundColor),Nc(t[e],"tooltip",t),Nc(t[e],"export",t)}),Yg(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],function(n,e){Nc(t[e],"loadingIndicator",t),Nc(t[e],"legend",t),Nc(t[e],"title",t)}),Yg(["chart","pie","polar"],function(n,e){Nc(t,e,null,t["chart:common"])}),Yg(["chart","polar"],function(n,e){t[e]=t[e]||{},Nc(t[e],"commonAxisSettings",null,t["chart:common:axis"])}),Yg(["chart","polar","map","pie"],function(n,e){t[e]=t[e]||{},Nc(t[e],"commonAnnotationSettings",null,t["chart:common:annotation"])}),Nc(t.rangeSelector.chart,"commonSeriesSettings",t.chart),Nc(t.rangeSelector.chart,"dataPrepareSettings",t.chart),hl(t.treeMap.group.border,"color",null,t.gridColor),hl(t.treeMap.tile.selectionStyle.border,"color",null,t.primaryTitleColor),hl(t.treeMap.group.selectionStyle.border,"color",null,t.primaryTitleColor),hl(t.map.legend,"backgroundColor",t),function iTt(t){var n=t.map;Yg(["area","line","marker"],function(e,i){Nc(n,"layer:"+i,null,n.layer)}),Yg(["dot","bubble","pie","image"],function(e,i){Nc(n,"layer:marker:"+i,null,n["layer:marker"])})}(t),t}(t)))}(t.theme,t.baseThemeName)});var aTt=Hbe,R1=se,Wj=we;function zbe(t,n){var e=t;return n&&Wj(n.split("."),function(i,r){return e=e[r]}),e}var Gj=ji.inherit({ctor:function(t){this._themeSection=t.themeSection,this._fontFields=t.fontFields||[],function rTt(t){var n=++YOt;t._cache=n,Uj[n]=t}(this)},dispose:function(){return function oTt(t){delete Uj[t._cache]}(this),this._callback=this._theme=this._font=null,this},setCallback:function(t){return this._callback=t,this},setTheme:function(t,n){return this._current=t,this._rtl=n,this.refresh()},refresh:function(){var t=this._current||{},n=aTt(t.name||t);return this._themeName=n.name,this._defaultPalette=n.defaultPalette,this._font=R1({},n.font,t.font),this._themeSection&&Wj(this._themeSection.split("."),function(e,i){n=R1(!0,{},n[i])}),this._theme=R1(!0,{},n,Pn(t)?{}:t),this._initializeTheme(),wd(this._rtl,this._theme.rtlEnabled)&&R1(!0,this._theme,this._theme._rtl),this._callback(),this},theme:function(t){return zbe(this._theme,t)},themeName:function(){return this._themeName},createPalette:function(t,n){return _be(t,n,this._defaultPalette)},createDiscretePalette:function(t,n){return function IOt(t,n,e){var i=n>0?function kOt(t,n){var a,e=n-1,i=t.length-1,r=[],o=[];function s(l){var u=i*l,f=Ij(u),S=vOt(u);o.push(r[f].blend(r[S],u-f).toHex())}for(a=0;a<=i;++a)r.push(new Ka(t[a]));if(e>0)for(a=0;a<=e;++a)s(a/e);else s(.5);return o}(hB(t,{type:"gradientSet",themeDefault:e}),n):[];return{getColor:function(r){return i[r]||null}}}(t,n,this._defaultPalette)},createGradientPalette:function(t){return function MOt(t,n){var e=hB(t,{type:"gradientSet",themeDefault:n}),i=new Ka(e[0]),r=new Ka(e[1]);return{getColor:function(o){return 0<=o&&o<=1?i.blend(r,o).toHex():null}}}(t,this._defaultPalette)},getAccentColor:function(t){return function bOt(t,n){return(t=hB(t,{themeDefault:n})).accentColor||t[0]}(t,this._defaultPalette)},_initializeTheme:function(){var t=this;Wj(t._fontFields||[],function(n,e){t._initializeFont(zbe(t._theme,e))})},_initializeFont:function(t){R1(t,this._font,R1({},t))}}),uTt=!Rn();function jj(){this.reset()}function wB(t,n){return t!==n?se({},t,n):se({},t)}function bC(t,n){return t!==n?t.concat(n):t.slice()}function Ube(t){t._totalChangesOrder=t._optionChangesOrder.concat(t._layoutChangesOrder,t._customChangesOrder)}function dTt(t){var n=this.prototype,e=t.code;n["_change_"+e]=t.handler,t.isThemeDependent&&n._themeDependentChanges.push(e),t.option&&(n._optionChangesMap[t.option]=e),(t.isOptionChange?n._optionChangesOrder:n._customChangesOrder).push(e),Ube(n)}function Wbe(){var t=function n(){var e,r,i=n._chain.length;for(e=0;e<i;++e)r=n._chain[e].apply(this,arguments);return r};return t._chain=[],t.add=function(n){t._chain.push(n)},t.copy=function(n){t._chain=n._chain.slice()},t}function Bu(t,n,e){var i=t[n];i?i.add?(!1===Object.prototype.hasOwnProperty.call(t,n)&&(i=Wbe()).copy(t[n]),i.add(e)):((i=Wbe()).add(t[n]),i.add(e)):i=e,t[n]=i}function Gbe(t){var n=this.prototype;n._plugins.push(t),t.fontFields&&n._fontFields.push.apply(n._fontFields,t.fontFields),t.members&&se(this.prototype,t.members),t.customize&&t.customize(this),t.extenders&&Object.keys(t.extenders).forEach(function(e){Bu(n,e,t.extenders[e])},this)}jj.prototype={constructor:jj,add:function(t){var n,e=t.length,i=this._flags;for(n=0;n<e;++n)i[t[n]]=1},has:function(t){return this._flags[t]>0},count:function(){return Object.keys(this._flags).length},reset:function(){this._flags={}}};var cTt=uTt?function(t){var n=t.inherit;t.inherit=function(){var e=n.apply(this,arguments),i=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach(function(r){i[r]={}}),e.addPlugin=Be,e},t.addChange=Be,t.addPlugin=Be}:function(t){var n=t.inherit;t.inherit=function(){var e=this.prototype,i=e._plugins,r=e._fontFields,o=e._eventsMap,a=e._initialChanges,s=e._themeDependentChanges,l=e._optionChangesMap,u=e._partialOptionChangesMap,f=e._partialOptionChangesPath,S=e._optionChangesOrder,T=e._layoutChangesOrder,R=e._customChangesOrder,L=n.apply(this,arguments);return(e=L.prototype)._plugins=bC(i,e._plugins),e._fontFields=bC(r,e._fontFields),e._eventsMap=wB(o,e._eventsMap),e._initialChanges=bC(a,e._initialChanges),e._themeDependentChanges=bC(s,e._themeDependentChanges),e._optionChangesMap=wB(l,e._optionChangesMap),e._partialOptionChangesMap=wB(u,e._partialOptionChangesMap),e._partialOptionChangesPath=wB(f,e._partialOptionChangesPath),e._optionChangesOrder=bC(S,e._optionChangesOrder),e._layoutChangesOrder=bC(T,e._layoutChangesOrder),e._customChangesOrder=bC(R,e._customChangesOrder),Ube(e),L.addPlugin=Gbe,L},t.prototype._plugins=[],t.prototype._fontFields=[],t.addChange=dTt,t.addPlugin=Gbe};function hTt(){return new jj}const jbe=aP(Wr.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2005:'The value field "{0}" is absent in the data source or all its values are negative',E2006:"A cycle is detected in provided data",E2007:'The value field "{0}" is absent in the data source',E2008:'The value field "{0}" must be a string',E2009:'The value field "{0}" must be a positive numeric value',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} series cannot be drawn because the {1} data field is missing",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2108:"The browser does not support exporting images to {0} format.",W2301:"Invalid value range"});var pTt=Fn(),Kj="hidden-for-export";function Kbe(t,n){return function fTt(t){var n=!0;return-1===t.indexOf("xmlns:xlink")&&(t=t.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),(t=t.replace(/xmlns="[\s\S]*?"/gi,function(e){return n?(n=!1,e):""})).replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}(function mTt(t){return t.replace(/&quot;/gi,"&#34;").replace(/&amp;/gi,"&#38;").replace(/&apos;/gi,"&#39;").replace(/&lt;/gi,"&#60;").replace(/&gt;/gi,"&#62;").replace(/&nbsp;/gi,"&#160;").replace(/&shy;/gi,"&#173;")}(function gTt(t,n){var e=It.createElement("div"),i=t.cloneNode(!0);return n&&U(i).css("backgroundColor",n),e.appendChild(i),e.innerHTML}(t,n)))}function $be(t){return It.isNode(t)?t:(new pTt.DOMParser).parseFromString(t,"image/svg+xml").childNodes[0]}var qbe=function(){},Ybe={easeOutCubic:function(t,n,e){return 1===t?e:(1-Math.pow(1-t,3))*(e-n)+ +n},linear:function(t,n,e){return 1===t?e:t*(e-n)+ +n}},_Tt={segments:function(t,n,e,i,r){var s,l,u,f,o=n.from,a=n.to,S=[];for(u=0;u<o.length;u++){if(l=[(s=o[u])[0]],s.length>1)for(f=1;f<s.length;f++)l.push(i(e,s[f],a[u][f]));S.push(l)}r.segments=n.end&&1===e?n.end:S,t.attr({segments:S})},arc:function(t,n,e,i){var r=n.from,o=n.to,a={};for(var s in r)a[s]=i(e,r[s],o[s]);t.attr(a)},transform:function(t,n,e,i,r){var o=n.from,a=n.to,s={};for(var l in o)s[l]=r[l]=i(e,o[l],a[l]);t.attr(s)},base:function(t,n,e,i,r,o){var a={};a[o]=r[o]=i(e,n.from,n.to),t.attr(a)},_:qbe,complete:function(t,n){t.attr(n)}};function Zbe(t){var e,n=this._animateStep;for(e in this._progress=this._calcProgress(t),this.params)(n[e]||n.base)(this.element,this.params[e],this._progress,this._easing,this._currentParams,e);return this.options.step&&this.options.step(this._easing(this._progress,0,1),this._progress),1!==this._progress||this.stop()}function vTt(t){return t-this._startTime>=this.delay&&(this.tick=Zbe),!0}function yTt(t){return this._startTime=t,this.tick=this.delay?vTt:Zbe,!0}function Xbe(t,n,e){this._progress=0,this.element=t,this.params=n,this.options=e,this.duration=e.partitionDuration?e.duration*e.partitionDuration:e.duration,this.delay=e.delay&&e.duration*e.delay||0,this._animateStep=e.animateStep||_Tt,this._easing=Ybe[e.easing]||Ybe.easeOutCubic,this._currentParams={},this.tick=yTt}function Jbe(t){this._animationCount=0,this._timerId=null,this._animations={},this.element=t}Xbe.prototype={_calcProgress:function(t){return Math.min(1,(t-this.delay-this._startTime)/this.duration)},stop:function(t){var n=this.options,e=this._animateStep;this.stop=this.tick=qbe,e.complete&&e.complete(this.element,this._currentParams),n.complete&&!t&&n.complete()}},Jbe.prototype={_loop:function(){var r,t=this,n=t._animations,e=0,i=(new Date).getTime(),o=t._endAnimation;for(r in n)n[r].tick(i)||delete n[r],e++;if(0===e)return t.stop(),void(t._endAnimationTimer=o&&setTimeout(function(){0===t._animationCount&&(o(),t._endAnimation=null)}));t._timerId=Fw.call(null,function(){t._loop()},t.element)},addAnimation:function(t){var n=this;n._animations[n._animationCount++]=t,clearTimeout(n._endAnimationTimer),n._timerId||(clearTimeout(n._startDelay),n._startDelay=setTimeout(function(){n._timerId=1,n._loop()},0))},animateElement:function(t,n,e){t&&n&&e&&(t.animation&&t.animation.stop(),this.addAnimation(t.animation=new Xbe(t,n,e)))},onEndAnimation:function(t){this._animationCount?this._endAnimation=t:t()},dispose:function(){this.stop(),this.element=null},stop:function(){this._animations={},this._animationCount=0,_p(this._timerId),clearTimeout(this._startDelay),clearTimeout(this._endAnimationTimer),this._timerId=null},lock:function(){var t,e,i,n=this._animations;for(t in n)e=n[t].options.unstoppable,i=i||e,e||(n[t].stop(!0),delete n[t]);!i&&this.stop()}};var CTt=Fn(),{max:Qbe,min:bTt,floor:xTt,round:exe,sin:txe,cos:nxe,abs:ixe,PI:rxe}=Math,oxe=rxe/180,wTt={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},lI="text",zm="stroke",Ed="stroke-width",L1="stroke-opacity",uI="font-size",sxe="font-style",lxe="font-weight",uxe="text-decoration",$j="textsAlignment",N_="none",dI="...",SB=Object.create?function(t){return Object.create(t)}:function(t){var n=function(){};return n.prototype=t,new n},dxe={scaleX:1,scaleY:1,"pointer-events":null},xC=up(function(){var t=It.createElement("div");return t.style.left="-9999px",t.style.position="absolute",{backupContainer:t,backupCounter:0}}),wC=function(){var t=1;return function(){return"DevExpress_"+t++}}();function cI(t){return t&&"string"!=typeof t}function Yj(t){return It.createElementNS("http://www.w3.org/2000/svg",t)}function Zj(t,n){return null!==t?"url("+(n?CTt.location.href.split("#")[0]:"")+"#"+t+")":t}function Nu(t,n){var e;for(e in n)t[e]=n[e];return t}function cxe(t,n){return t=t.toString().split("e"),+((t=(t=exe(+(t[0]+"e"+(t[1]?+t[1]+n:n)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]-n:-n))}var ETt={full:N_,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"};function hxe(t,n){return n.hatching&&"none"!==Ri(n.hatching.direction)?((n=Nu({},n)).fill=t._hatching=t.renderer.lockHatching(n.fill,n.hatching,t._hatching),delete n.hatching):t._hatching&&(t.renderer.releaseHatching(t._hatching),t._hatching=null),n}var TTt=function(t,n,e,i,r,o,a,s,l,u){return["M",(t+i*r).toFixed(5),(n-i*o).toFixed(5),"A",i.toFixed(5),i.toFixed(5),0,u,0,(t+i*a).toFixed(5),(n-i*s).toFixed(5),l?"M":"L",(t+e*a).toFixed(5),(n-e*s).toFixed(5),"A",e.toFixed(5),e.toFixed(5),0,u,1,(t+e*r).toFixed(5),(n-e*o).toFixed(5),"Z"].join(" ")};function pxe(t,n){var e=[["M",0,0]];switch(n){case"line":e=gxe(t);break;case"area":e=gxe(t,!0);break;case"bezier":e=fxe(t);break;case"bezierarea":e=fxe(t,!0)}return e}function gxe(t,n){return mxe(t,ITt,n)}function fxe(t,n){return mxe(t,kTt,n)}function mxe(t,n,e){var i,r,o,a=[];if(null!==(i=t[0])&&void 0!==i&&i.length)for(r=0,o=t.length;r<o;++r)n(t[r],e,a);else n(t,e,a);return a}function ITt(t,n,e){var i=0,r=e.length,o=r,a=(t||[]).length;if(a){if(void 0!==t[0].x)for(;i<a;)e[o++]=["L",t[i].x,t[i++].y];else for(;i<a;)e[o++]=["L",t[i++],t[i++]];e[r][0]="M"}else e[o]=["M",0,0];return n&&e.push(["Z"]),e}function kTt(t,n,e){var i,r=e.length,o=(t||[]).length;if(o)if(void 0!==t[0].x)for(e[r++]=["M",t[0].x,t[0].y],i=1;i<o;)e[r++]=["C",t[i].x,t[i++].y,t[i].x,t[i++].y,t[i].x,t[i++].y];else for(e[r++]=["M",t[0],t[1]],i=2;i<o;)e[r++]=["C",t[i++],t[i++],t[i++],t[i++],t[i++],t[i++]];else e[r]=["M",0,0];return n&&e.push(["Z"]),e}function Xj(t,n){var e=t[t.length-2],i=t[t.length-1];switch(n){case"line":case"area":t[0]="L";break;case"bezier":case"bezierarea":t[0]="C",t[1]=t[3]=t[5]=e,t[2]=t[4]=t[6]=i}}function FTt(t,n,e){var i=t[t.length-1].slice(),r=t.length;for(Xj(i,e);r<n.length;r++)t[r]=i.slice(0)}function PTt(t,n,e){var i,r,s,l,o=t.length,a=n.length;if((o-1)%2==0&&(a-1)%2==0){s=(r=t.slice(0,1+(i=(o-1)/2-1)))[r.length-1].slice(0),l=t.slice(i+1)[0].slice(0),Xj(s,e),Xj(l,e);for(var u=i;u<(a-1)/2-1;u++)t.splice(u+1,0,s),t.splice(u+3,0,l)}}function Jj(t,n){var i,r,e=t._styles;for(i in n=n||{})Z(r=n[i])&&(e[i]=""!=(r+="number"!=typeof r||wTt[i]?"":"px")?r:null);for(i in e)(r=e[i])?t.element.style[i]=r:null===r&&(t.element.style[i]="");return t}function Qj(t,n){var e=t.element,i=t.attr(n);i&&-1!==i.indexOf("DevExpress")&&(e.removeAttribute(n),e.setAttribute(n,Zj(i,t.renderer.pathModified)))}function SC(t,n){var r,o,u,f,S,T,e=t._settings,i={},a=t.element,s=t.renderer,l=s.rtl;if(!cI(n=n||{}))return n in e?e[n]:n in dxe?dxe[n]:0;for(r in Nu(i,n),i)if(void 0!==(o=i[r])){if(e[r]=o,"align"===r)r="text-anchor",o={left:l?"end":"start",center:"middle",right:l?"start":"end"}[o]||null;else{if("dashStyle"===r){f=!0;continue}if(r===Ed)f=!0;else if(!o||"fill"!==r&&"clip-path"!==r&&"filter"!==r||0!==o.indexOf("DevExpress")){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp|sharpDirection)$/i.test(r)){u=!0;continue}/^(x|y|d)$/i.test(r)&&(u=!0)}else t._addFixIRICallback(),o=Zj(o,s.pathModified)}null===o?a.removeAttribute(r):a.setAttribute(r,o)}if(f&&"dashStyle"in e)if(S=("_originalSW"in t?t._originalSW:e[Ed])||1,r="stroke-dasharray",""===(o=null===(o=e.dashStyle)?"":Ri(o))||"solid"===o||o===N_)t.element.removeAttribute(r);else{for(T=(o=o.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(",")).length;T--;)o[T]=parseInt(o[T])*S;t.element.setAttribute(r,o.join(","))}return u&&t._applyTransformation(),t}function _xe(t,n,e,i,r){var o,a,s,l,u;if(void 0!==e.wholeText)t.push({value:e.wholeText,style:i,className:r,line:n,height:i[uI]||0});else if("BR"===e.tagName)++n;else if(It.isElementNode(e)){switch(Nu(o={},i),e.tagName){case"B":case"STRONG":o[lxe]="bold";break;case"I":case"EM":o[sxe]="italic";break;case"U":o[uxe]="underline"}for((a=e.style).color&&(o.fill=a.color),a.fontSize&&(o[uI]=a.fontSize),a.fontStyle&&(o[sxe]=a.fontStyle),a.fontWeight&&(o[lxe]=a.fontWeight),a.textDecoration&&(o[uxe]=a.textDecoration),s=0,l=(u=e.childNodes).length;s<l;++s)n=_xe(t,n,u[s],o,e.className||r)}return n}function eK(t,n,e){var i,r,o;for(i=0,r=t.length;i<r;++i)(o=t[i])[e]=Yj("tspan"),o[e].appendChild(It.createTextNode(o.value)),o.style&&Jj({element:o[e],_styles:{}},o.style),o.className&&o[e].setAttribute("class",o.className),n.appendChild(o[e])}function tK(){this._hasEllipsis&&this.attr({text:this._settings.text})}function vxe(t){var n;return t&&((n=t.cloneNode()).removeAttribute("y"),n.removeAttribute("x")),n||t}function yxe(t){for(var n=It.querySelectorAll(t,"title"),e=0;e<n.length;e++)t.removeChild(n[e]);return n}function jTt(t){var n=yxe(t);return()=>{for(var e=0;e<n.length;e++)t.appendChild(n[e])}}function Cxe(t,n,e,i){var r,o;if(e<=n&&i>n)for(r=1,o=t.value.length;r<=o;++r)if(e+t.tspan.getSubStringLength(0,r)>n)return r-1}function DB(t){return t.value.length?t.tspan.getSubStringLength(0,t.value.length):0}function bxe(t,n){var{hideOverflowEllipsis:e}=n;return e&&0===t?"":dI}function xxe(t,n,e){var i=bxe(n,e);if(t.value.length&&t.tspan.parentNode)for(var r=t.value.length-1;r>=1;r--){if(t.startBox+t.tspan.getSubStringLength(0,r)<n){hI(t,r,i);break}1===r&&hI(t,0,i)}}function wxe(t,n,e,i,r){var a,o=t.value;"none"!==i.wordWrap&&(a="normal"===i.wordWrap?function qTt(t,n){for(var e=t.startBox>0?[0]:[],i=t.value.split("").reduce((o,a,s)=>(" "===a&&o.push(s),o),e),r=0;void 0!==i[r+1]&&t.startBox+t.tspan.getSubStringLength(0,i[r+1])<n;)r++;return i[r]}(t,n):function YTt(t,n){for(var e=0;e<t.value.length-1;e++)if(t.startBox+t.tspan.getSubStringLength(0,e+1)>n)return e}(t,n));var l,s=[];if(isFinite(a)&&(0!==r||0!==a)){hI(t,a,"");var f=o.slice(a+(" "===o[a]?1:0));if(f.length){var S=vxe(t.tspan);if(S.textContent=f,t.tspan.parentNode.appendChild(S),(l=Nu(Nu({},t),{value:f,startBox:0,height:0,tspan:S,stroke:vxe(t.stroke),endBox:S.getSubStringLength(0,f.length)})).stroke&&(l.stroke.textContent=f),l.endBox>n&&!(s=wxe(l,n,e,i,a)).length)return[]}}if(t.value.length){if("ellipsis"===i.textOverflow&&t.tspan.getSubStringLength(0,t.value.length)>n&&xxe(t,e,i),"hide"===i.textOverflow&&t.tspan.getSubStringLength(0,t.value.length)>n)return[]}else t.tspan.parentNode.removeChild(t.tspan);var T=[];return l&&T.push(l),[{commonLength:o.length,parts:T}].concat(s)}function XTt(t,n,e,i,r){var o=e.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===o)return t;var a=t.reduce((s,l,u,f)=>{var[S,T]=s,R=function ZTt(t,n){return t.parts.reduce((e,i)=>Qbe(e,Sxe(i,n)),0)}(l,r);if((T+=R)<i)S.push(l);else if(l.parts.forEach(j=>{EB(j)}),"ellipsis"===o){var L=f[u-1];if(L){var z=L.parts[L.parts.length-1];z.hasEllipsis||(0===n||z.endBox<n?hI(z,z.value.length,bxe(n,e)):xxe(z,n,e))}}return[S,T]},[[],0]);return"hide"===o&&a[1]>i?(a[0].forEach(s=>{s.parts.forEach(l=>{EB(l)})}),[]):a[0]}function JTt(t,n,e,i,r){if(!n){var a={value:t.textContent,height:0,line:0};t.textContent="",eK([a],t,"tspan"),n=[a]}return n.reduce((s,l)=>{var[u,f,S,T,R]=s,L=u[u.length-1];if(T)return[u,f,S,T];if(L&&l.line===R){if(l.startBox=f,f>i&&"none"===r.wordWrap&&"ellipsis"===r.textOverflow)return EB(l),[u,f,S,T,R];L.parts.push(l),L.commonLength+=l.value.length}else l.startBox=f=0,u.push({commonLength:l.value.length,parts:[l]});if(l.endBox=S=f+DB(l),f=S,Z(e)&&S>e){var z=wxe(l,e,i,r);z.length?u=u.concat(z.filter(j=>j.parts.length>0)):(u=[],T=!0)}return[u,f,S,T,l.line]},[[],0,0,!1,0])[0]}function hI(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:dI,i=t.value.substr(0,n)+e;t.value=t.tspan.textContent=i,t.stroke&&(t.stroke.textContent=i),e===dI&&(t.hasEllipsis=!0)}function EB(t){t.tspan.parentNode&&t.tspan.parentNode.removeChild(t.tspan),t.stroke&&t.stroke.parentNode&&t.stroke.parentNode.removeChild(t.stroke)}function pI(t,n,e){t.tspan.setAttribute(n,e),t.stroke&&t.stroke.setAttribute(n,e)}function Sxe(t,n){return t.inherits?Dxe(t.height,n):t.height||n}function nK(t){if(t._texts){var r,o,n=t._texts,e=t._settings.x,i=t._getLineHeight(),a=n[0];for(pI(a,"x",e),pI(a,"y",t._settings.y),r=1,o=n.length;r<o;++r)a=n[r],parseFloat(a.height)>=0&&(pI(a,"x",e),pI(a,"dy",Sxe(a,i)))}}function Dxe(t,n){var e=parseFloat(t),i=parseFloat(n),r=e||12,o=i||12;return r>o?isNaN(e)?r:t:isNaN(i)?o:n}function iK(t,n,e,i){e=e||{};var r,o,a=t.renderer,s=t._settings,l={},u={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(e.complete=i),a.animationEnabled()){for(r in n)o=n[r],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(r)?(l.transform=l.transform||{from:{},to:{}},l.transform.from[r]=r in s?Number(s[r].toFixed(3)):u[r],l.transform.to[r]=o):l[r]="arc"===r||"segments"===r?o:{from:r in s?s[r]:parseFloat(t.element.getAttribute(r)||0),to:o};a.animateElement(t,l,Nu(Nu({},a._animation),e))}else e.step&&e.step.call(t,1,1),e.complete&&e.complete.call(t),t.attr(n);return t}function Exe(t,n){var e={is:!1,name:n.name||n,after:n.after};return t?e.to=t:e.virtual=!0,e}var Dp=function(t,n,e){this.renderer=t,this.element=Yj(n),this._settings={},this._styles={},"path"===n&&(this.type=e||"line")};function Oxe(t){MB.remove(t)}Dp.prototype={constructor:Dp,_getJQElement:function(){return this._$element||(this._$element=U(this.element))},_addFixIRICallback:function(){var t=this,n=function(){Qj(t,"fill"),Qj(t,"clip-path"),Qj(t,"filter")};t.element._fixFuncIri=n,n.renderer=t.renderer,MB.add(n),t._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){!function t(n){var e;for(e=0;e<n.childNodes.length;e++)Oxe(n.childNodes[e]._fixFuncIri),t(n.childNodes[e])}(this.element)},dispose:function(){return Oxe(this.element._fixFuncIri),this._clearChildrenFuncIri(),this._getJQElement().remove(),this},append:function(t){return(t||this.renderer.root).element.appendChild(this.element),this},remove:function(){var t=this.element;return t.parentNode&&t.parentNode.removeChild(t),this},enableLinks:function(){return this._links=[],this},virtualLink:function(t){return Ixe({_link:Exe(null,t)},this),this},linkAfter:function(t){return this._linkAfter=t,this},linkOn:function(t,n){return this._link=Exe(t,n),Ixe(this,t),this},linkOff:function(){return function rIt(t){var n,e=t._link.to._links;for(n=0;e[n]!==t;++n);e.splice(n,1),Txe(e,n)}(this),this._link=null,this},linkAppend:function(){var e,i,t=this._link,n=t.to._links;for(e=t.i+1;(i=n[e])&&!i._link.is;++e);return this._insert(t.to,i),t.is=!0,this},_insert:function(t,n){t.element.insertBefore(this.element,n?n.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._clearChildrenFuncIri(),this._getJQElement().empty(),this},toBackground:function(){var t=this.element,n=t.parentNode;return n&&n.insertBefore(t,n.firstChild),this},toForeground:function(){var t=this.element,n=t.parentNode;return n&&n.appendChild(t),this},attr:function(t){return SC(this,t)},smartAttr:function(t){return this.attr(hxe(this,t))},css:function(t){return Jj(this,t)},animate:function(t,n,e){return iK(this,t,n,e)},sharp(t,n){return this.attr({sharp:t||!0,sharpDirection:n})},_applyTransformation(){var t=this._settings,i=[],r=t.sharp,o=t.sharpDirection||1,a=t[Ed]%2;i.push("translate("+((t.translateX||0)+(!a||"h"!==r&&!0!==r?0:.5*o))+","+((t.translateY||0)+(!a||"v"!==r&&!0!==r?0:.5*o))+")"),t.rotate&&i.push("rotate("+t.rotate+","+(("rotateX"in t?t.rotateX:t.x)||0)+","+(("rotateY"in t?t.rotateY:t.y)||0)+")");var u=Z(t.scaleX),f=Z(t.scaleY);(u||f)&&i.push("scale("+(u?t.scaleX:1)+","+(f?t.scaleY:1)+")"),i.length&&this.element.setAttribute("transform",i.join(" "))},move:function(t,n,e,i){var r={};return Z(t)&&(r.translateX=t),Z(n)&&(r.translateY=n),e?this.animate(r,i):this.attr(r),this},rotate:function(t,n,e,i,r){var o={rotate:t||0};return Z(n)&&(o.rotateX=n),Z(e)&&(o.rotateY=e),i?this.animate(o,r):this.attr(o),this},_getElementBBox:function(){var n,t=this.element;try{n=t.getBBox&&t.getBBox()}catch{}return n||{x:0,y:0,width:t.offsetWidth||0,height:t.offsetHeight||0}},getBBox:function(){var t=this._settings,n=this._getElementBBox();return t.rotate?uB(n,[("rotateX"in t?t.rotateX:t.x)||0,("rotateY"in t?t.rotateY:t.y)||0],-t.rotate):cbe(n)},markup:function(){return Kbe(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(t){var n=this.animation;return n&&n.stop(t),this},setTitle:function(t){var n=Yj("title");n.textContent=t||"",this.element.appendChild(n)},removeTitle(){yxe(this.element)},data:function(t,n){var i,e=this.element;if(void 0!==n)e[t]=n;else for(i in t)e[i]=t[i];return this},on:function(){var t=[this._getJQElement()];return t.push.apply(t,arguments),Se.on.apply(Se,t),this},off:function(){var t=[this._getJQElement()];return t.push.apply(t,arguments),Se.off.apply(Se,t),this},trigger:function(){var t=[this._getJQElement()];return t.push.apply(t,arguments),Se.trigger.apply(Se,t),this}};var gI=function(t,n){Dp.call(this,t,"path",n)};Nu(gI.prototype=SB(Dp.prototype),{constructor:gI,attr:function RTt(t){var n;return cI(t)&&(n=(t=Nu({},t)).segments,"points"in t&&(n=pxe(t.points,this.type),delete t.points),n&&(t.d=function MTt(t){var i,o,a,s,n=[],e=0,r=t.length;for(i=0;i<r;++i)for(a=0,s=(o=t[i]).length;a<s;++a)n[e++]=o[a];return n.join(" ")}(n),this.segments=n,delete t.segments)),SC(this,t)},animate:function nIt(t,n,e){var r,o,i=this.segments||[];return this.renderer.animationEnabled()&&"points"in t&&(o=function ATt(t,n,e){var o,a,i=t.length,r=n.length,s=-1!==e.indexOf("area")?PTt:FTt;if(0===i)for(o=0;o<r;o++)t.push(n[o].slice(0));else i<r?s(t,n,e):i>r&&(a=n.slice(0),s(n,t,e));return a}(i,r=pxe(t.points,this.type),this.type),t.segments={from:i,to:r,end:o},delete t.points),iK(this,t,n,e)}});var OB=function(t){Dp.call(this,t,"path","arc")};Nu(OB.prototype=SB(Dp.prototype),{constructor:OB,attr:function LTt(t){var e,i,r,o,a,s,n=this._settings;return cI(t)&&("x"in(t=Nu({},t))||"y"in t||"innerRadius"in t||"outerRadius"in t||"startAngle"in t||"endAngle"in t)&&(n.x=e="x"in t?t.x:n.x,delete t.x,n.y=i="y"in t?t.y:n.y,delete t.y,n.innerRadius=r="innerRadius"in t?t.innerRadius:n.innerRadius,delete t.innerRadius,n.outerRadius=o="outerRadius"in t?t.outerRadius:n.outerRadius,delete t.outerRadius,n.startAngle=a="startAngle"in t?t.startAngle:n.startAngle,delete t.startAngle,n.endAngle=s="endAngle"in t?t.endAngle:n.endAngle,delete t.endAngle,t.d=TTt.apply(null,function OTt(t,n,e,i,r,o){var a,s=!0,l=cxe(o,3)-cxe(r,3);return l&&(ixe(l)%360==0&&(r=0,o=360,a=!0,o-=.01),r>360&&(r%=360),o>360&&(o%=360),r>o&&(r-=360),s=!1),r*=oxe,o*=oxe,[t,n,bTt(i,e),Qbe(i,e),nxe(r),txe(r),nxe(o),txe(o),a,xTt(ixe(o-r)/rxe)%2?"1":"0",s]}(e,i,r,o,a,s))),SC(this,t)},animate:function iIt(t,n,e){var i=this._settings,r={from:{},to:{}};return this.renderer.animationEnabled()&&("x"in t||"y"in t||"innerRadius"in t||"outerRadius"in t||"startAngle"in t||"endAngle"in t)&&(r.from.x=i.x||0,r.from.y=i.y||0,r.from.innerRadius=i.innerRadius||0,r.from.outerRadius=i.outerRadius||0,r.from.startAngle=i.startAngle||0,r.from.endAngle=i.endAngle||0,r.to.x="x"in t?t.x:i.x,delete t.x,r.to.y="y"in t?t.y:i.y,delete t.y,r.to.innerRadius="innerRadius"in t?t.innerRadius:i.innerRadius,delete t.innerRadius,r.to.outerRadius="outerRadius"in t?t.outerRadius:i.outerRadius,delete t.outerRadius,r.to.startAngle="startAngle"in t?t.startAngle:i.startAngle,delete t.startAngle,r.to.endAngle="endAngle"in t?t.endAngle:i.endAngle,delete t.endAngle,t.arc=r),iK(this,t,n,e)}});var TB=function(t){Dp.call(this,t,"rect")};Nu(TB.prototype=SB(Dp.prototype),{constructor:TB,attr:function BTt(t){var n,e,i,r,o,a,s;return cI(t)&&((void 0!==(t=Nu({},t)).x||void 0!==t.y||void 0!==t.width||void 0!==t.height||void 0!==t[Ed])&&(n=void 0!==t.x?this._originalX=t.x:this._originalX||0,e=void 0!==t.y?this._originalY=t.y:this._originalY||0,i=void 0!==t.width?this._originalWidth=t.width:this._originalWidth||0,r=void 0!==t.height?this._originalHeight=t.height:this._originalHeight||0,o=void 0!==t[Ed]?this._originalSW=t[Ed]:this._originalSW,t.x=n+(s=(o||0)<(a=~~((i<r?i:r)/2))?o||0:a)/2,t.y=e+s/2,t.width=i-s,t.height=r-s,((o||0)!==s||!(0===s&&void 0===o))&&(t[Ed]=s)),"sharp"in t&&delete t.sharp),SC(this,t)}});var IB=function(t){Dp.call(this,t,"text"),this.css({"white-space":"pre"})};function Txe(t,n){var e,i;for(e=n;i=t[e];++e)i._link.i=e}function Ixe(t,n){var r,o,e=n._links,i=t._link.after=t._link.after||n._linkAfter;if(i){for(r=0;(o=e[r])&&o._link.name!==i;++r);if(o)for(++r;(o=e[r])&&o._link.after===i;++r);}else r=e.length;e.splice(r,0,t),Txe(e,r)}function kB(t){this.root=this._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:N_,stroke:N_,"stroke-width":0}).attr({class:t.cssClass}).css({"line-height":"normal","-ms-user-select":N_,"-moz-user-select":N_,"-webkit-user-select":N_,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),this._init(),this.pathModified=!!t.pathModified,this._$container=U(t.container),this.root.append({element:t.container}),this._locker=0,this._backed=!1}Nu(IB.prototype=SB(Dp.prototype),{constructor:IB,attr:function NTt(t){var n;if(!cI(t))return SC(this,t);t=Nu({},t);var e=this._settings,i=Z(e[zm])&&Z(e[Ed]);void 0!==t[lI]&&(e[lI]=t[lI],delete t[lI],n=!0),void 0!==t[zm]&&(e[zm]=t[zm],delete t[zm]),void 0!==t[Ed]&&(e[Ed]=t[Ed],delete t[Ed]),void 0!==t[L1]&&(e[L1]=t[L1],delete t[L1]),void 0!==t[$j]&&(function eIt(t,n){if(t._texts&&"center"!==n)for(var e=t._texts,i="left"===n?-1:1,r=Math.max.apply(Math,e.map(l=>DB(l))),o=0;o<e.length;o++){var a=e[o],s=DB(a);0!==r&&r!==s&&pI(a,"dx",i*exe((r-s)/2*10)/10)}}(this,t[$j]),delete t[$j]);var r=Z(e[zm])&&Z(e[Ed]);return SC(this,t),(n=n||r!==i&&e[lI])&&(function QTt(t,n,e){var i,r;t._texts=null,t.clear(),null!==n&&(n=""+n,t.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(n)&&-1===n.indexOf("&")?/\n/g.test(n)?i=function WTt(t){for(var n=t.replace(/\r/g,"").split(/\n/g),e=0,i=[];e<n.length;e++)i.push({value:n[e].trim(),height:0,line:e});return i}(n):e&&(i=[{value:n.trim(),height:0}]):(r=function zTt(t){var n=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return t.replace(/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,function(e,i,r,o){return i+(r=(r&&r.match(n)||[]).map(function(a){return a}).join(" "))+o})}(n),i=function UTt(t){var n=[],e=It.createElement("div");return e.innerHTML=t.replace(/\r/g,"").replace(/\n/g,"<br/>"),_xe(n,0,e,{},""),function HTt(t){var n,e,r,i=t[0];for(n=1,e=t.length;n<e;++n)(r=t[n]).line===i.line?(i.height=Dxe(i.height,r.height),i.inherits=i.inherits||0===parseFloat(r.height),r.height=NaN):i=r}(n),n}(r)),i?i.length&&(t._texts=i,e&&eK(i,t.element,zm),eK(i,t.element,"tspan")):t.element.appendChild(It.createTextNode(n)))}(this,e.text,r),this._hasEllipsis=!1),(n||void 0!==t.x||void 0!==t.y)&&nK(this),r&&function tIt(t){if(t._texts){var o,a,s,n=t._texts,e=t._settings[zm],i=t._settings[Ed],r=t._settings[L1]||1;for(a=0,s=n.length;a<s;++a)(o=n[a].stroke).setAttribute(zm,e),o.setAttribute(Ed,i),o.setAttribute(L1,r),o.setAttribute("stroke-linejoin","round")}}(this),this},css:function VTt(t){return Jj(this,t=t||{}),uI in t&&nK(this),this},applyEllipsis:function GTt(t){var n,i,r,o,a,s,l,e=!1;tK.call(this);var u=this.renderer.text(dI).attr(this._styles).append(this.renderer.root),f=u.getBBox().width;if(this._getElementBBox().width>t)for(t-f<0?t=0:t-=f,n=function $Tt(t,n,e){var r,o,a,s,l,i=[];if(n)for(r=0,o=n.length;r<o;++r)i[(a=n[r]).line]?(a.startBox=s,i[a.line].parts.push(a),i[a.line].commonLength+=a.value.length):(a.startBox=s=0,i.push({commonLength:a.value.length,parts:[a]})),l=s+a.tspan.getSubStringLength(0,a.value.length),a.endIndex=Cxe(a,e,s,l),s=l;else(a={value:t.textContent,tspan:t}).startBox=s=0,l=s+DB(a),a.endIndex=Cxe(a,e,s,l),i=[{commonLength:t.textContent.length,parts:[a]}];return i}(this.element,this._texts,t),i=0,r=n.length;i<r;++i)if(o=n[i].parts,1!==n[i].commonLength)for(a=0,s=o.length;a<s;++a)Z((l=o[a]).endIndex)?(hI(l,l.endIndex),e=!0):l.startBox>t&&EB(l);return u.remove(),this._hasEllipsis=e,e},setMaxSize:function KTt(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,r=[],o=!1,a=!1,s=t;tK.call(i);var l=jTt(this.element),u=i.renderer.text(dI).attr(i._styles).append(i.renderer.root),f=u.getBBox().width,{width:S,height:T}=i._getElementBBox();return(S||T)&&(S>t||n&&T>n)&&(t-f<0?s=0:s-=f,r=XTt(r=JTt(i.element,i._texts,t,s,e),s,e,n,parseFloat(this._getLineHeight())),this._texts=r.reduce((R,L)=>R.concat(L.parts),[]).filter(R=>""!==R.value).map(R=>(R.stroke&&R.tspan.parentNode.appendChild(R.stroke),R)).map(R=>(R.tspan.parentNode.appendChild(R.tspan),R)),!this._texts.length&&(this._texts=null),o=!0,this._texts?nK(this):(this.element.textContent="",a=!0)),u.remove(),i._hasEllipsis=o,l(),{rowCount:r.length,textChanged:o,textIsEmpty:a}},restoreText:tK,_getLineHeight(){return isNaN(parseFloat(this._styles[uI]))?12:this._styles[uI]}}),kB.prototype={constructor:kB,_init:function(){this._defs=this._createElement("defs").append(this.root),this._animationController=new Jbe(this.root.element),this._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},setOptions:function(t){return this.rtl=!!t.rtl,this.encodeHtml=!!t.encodeHtml,this.updateAnimationOptions(t.animation||{}),this.root.attr({direction:this.rtl?"rtl":"ltr"}),this},_createElement:function(t,n,e){var i=new Dp(this,t,e);return n&&i.attr(n),i},lock:function(){return 0===this._locker&&(this._backed=!this._$container.is(":visible"),this._backed&&function STt(t){0===xC().backupCounter&&It.getBody().appendChild(xC().backupContainer),++xC().backupCounter,t.append({element:xC().backupContainer})}(this.root)),++this._locker,this},unlock:function(){return--this._locker,0===this._locker&&(this._backed&&function DTt(t,n){t.append({element:n}),--xC().backupCounter,0===xC().backupCounter&&It.getBody().removeChild(xC().backupContainer)}(this.root,this._$container[0]),this._backed=!1),this},resize:function(t,n){return t>=0&&n>=0&&this.root.attr({width:t,height:n}),this},dispose:function(){var t;for(t in this.root.dispose(),this._defs.dispose(),this._animationController.dispose(),MB.removeByRenderer(this),this)this[t]=null;return this},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(t){return Nu(this._animation,t),this},stopAllAnimations:function(t){return this._animationController[t?"lock":"stop"](),this},animateElement:function(t,n,e){return this._animationController.animateElement(t,n,e),this},svg:function(){return this.root.markup()},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(t){this._animationController.onEndAnimation(t)},rect:function(t,n,e,i){return new TB(this).attr({x:t||0,y:n||0,width:e||0,height:i||0})},simpleRect:function(){return this._createElement("rect")},circle:function(t,n,e){return this._createElement("circle",{cx:t||0,cy:n||0,r:e||0})},g:function(){return this._createElement("g")},image:function(t,n,e,i,r,o){var a=this._createElement("image",{x:t||0,y:n||0,width:e||0,height:i||0,preserveAspectRatio:ETt[Ri(o)]||N_});return a.element.setAttributeNS("http://www.w3.org/1999/xlink","href",r||""),a},path:function(t,n){return new gI(this,n).attr({points:t||[]})},arc:function(t,n,e,i,r,o){return new OB(this).attr({x:t||0,y:n||0,innerRadius:e||0,outerRadius:i||0,startAngle:r||0,endAngle:o||0})},text:function(t,n,e){return new IB(this).attr({text:t,x:n||0,y:e||0})},linearGradient:function(t){var n=wC(),e=this,i=e._createElement("linearGradient",{id:n}).append(e._defs);return i.id=n,t.forEach(r=>{e._createElement("stop",{offset:r.offset,"stop-color":r["stop-color"]}).append(i)}),i},pattern:function(t,n,e){var i=(n=n||{}).step||6,r=i/2,o=1.5*i,a=e||wC(),s="right"===Ri(n.direction)?"M "+r+" "+-r+" L "+-r+" "+r+" M 0 "+i+" L "+i+" 0 M "+o+" "+r+" L "+r+" "+o:"M 0 0 L "+i+" "+i+" M "+-r+" "+r+" L "+r+" "+o+" M "+r+" "+-r+" L "+o+" "+r,l=this._createElement("pattern",{id:a,width:i,height:i,patternUnits:"userSpaceOnUse"}).append(this._defs);return l.id=a,this.rect(0,0,i,i).attr({fill:t,opacity:n.opacity}).append(l),new gI(this).attr({d:s,"stroke-width":n.width||1,stroke:t}).append(l),l},_getPointsWithYOffset:function(t,n){return t.map(function(e,i){return i%2!=0?e+n:e})},clipShape:function(t,n){var e=wC(),i=this._createElement("clipPath",{id:e}).append(this._defs),r=t.apply(this,n).append(i);return r.id=e,r.remove=function(){throw"Not implemented"},r.dispose=function(){return i.dispose(),i=null,this},r},clipRect(t,n,e,i){return this.clipShape(this.rect,arguments)},clipCircle(t,n,e){return this.clipShape(this.circle,arguments)},shadowFilter:function(t,n,e,i,r,o,a,s,l){var u=wC(),f=this._createElement("filter",{id:u,x:t||0,y:n||0,width:e||0,height:i||0}).append(this._defs),S=this._createElement("feGaussianBlur",{in:"SourceGraphic",result:"gaussianBlurResult",stdDeviation:a||0}).append(f),T=this._createElement("feOffset",{in:"gaussianBlurResult",result:"offsetResult",dx:r||0,dy:o||0}).append(f),R=this._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(f),L=this._createElement("feComposite",{in:"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(f),z=this._createElement("feComposite",{in:"SourceGraphic",in2:"compositeResult",operator:"over"}).append(f);return f.id=u,f.gaussianBlur=S,f.offset=T,f.flood=R,f.composite=L,f.finalComposite=z,f.attr=function(j){var Y={},ie={},te={};return"x"in j&&(Y.x=j.x),"y"in j&&(Y.y=j.y),"width"in j&&(Y.width=j.width),"height"in j&&(Y.height=j.height),SC(this,Y),"blur"in j&&this.gaussianBlur.attr({stdDeviation:j.blur}),"offsetX"in j&&(ie.dx=j.offsetX),"offsetY"in j&&(ie.dy=j.offsetY),this.offset.attr(ie),"color"in j&&(te["flood-color"]=j.color),"opacity"in j&&(te["flood-opacity"]=j.opacity),this.flood.attr(te),this},f},brightFilter:function(t,n){var e=wC(),i=this._createElement("filter",{id:e}).append(this._defs),r=this._createElement("feComponentTransfer").append(i),o={type:t,slope:n};return i.id=e,this._createElement("feFuncR",o).append(r),this._createElement("feFuncG",o).append(r),this._createElement("feFuncB",o).append(r),i},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var t=wC(),n=this._createElement("filter",{id:t}).append(this._defs);return this._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(n),n.id=t,this._grayScaleFilter=n,n},initHatching:function(){var e,t=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:wC()},n=t.byHash;for(e in n)n[e].pattern.dispose();t.byHash={},t.refToHash={},t.nextId=0},lockHatching:function(t,n,e){var o,a,i=this._hatchingStorage,r=function oIt(t,n){return"@"+t+"::"+n.step+":"+n.width+":"+n.opacity+":"+n.direction}(t,n);return i.refToHash[e]!==r&&(e&&this.releaseHatching(e),(o=i.byHash[r])||(a=this.pattern(t,n,i.baseId+"-hatching-"+i.nextId++),o=i.byHash[r]={pattern:a,count:0},i.refToHash[a.id]=r),++o.count,e=o.pattern.id),e},releaseHatching:function(t){var n=this._hatchingStorage,e=n.refToHash[t],i=n.byHash[e];i&&0==--i.count&&(i.pattern.dispose(),delete n.byHash[e],delete n.refToHash[t])}};var MB=function(){var t=[];return{add:function(n){t.push(n)},remove:function(n){t=t.filter(function(e){return e!==n})},removeByRenderer:function(n){t=t.filter(function(e){return e.renderer!==n})},fire:function(){t.forEach(function(n){n()})}}}(),kxe=Math.min,Mxe=Math.max,AB=Math.round,aIt={left:0,center:1,right:2},sIt={top:0,center:1,bottom:2},lIt={horizontal:0,vertical:1},RB={};function oK(t,n,e){var i=Ri(t);return i in n?n[i]:e}function dIt(t){var n=oK(t.side,lIt,1),e=[oK(t.horizontalAlignment,aIt,1),oK(t.verticalAlignment,sIt,0)];return{side:n,primary:cIt(e[n]),secondary:e[1-n],weak:t.weak,priority:t.priority||0,header:t.header,position:t.position}}function cIt(t){return t<2?0:2}function aK(t,n){return(t>0?-1:1)*n}function gIt(t,n,e){var i=t.side,r=t.element.measure([n[2]-n[0],n[3]-n[1]]),a=r[i]<n[2+i]-n[i]-("indside"===t.position?0:e[i]);return a&&("inside"!==t.position&&(n[t.primary+i]+=aK(t.primary,r[i])),t.size=r),a}function sK(t,n,e){var i=t.side,r=function hIt(t){return 1-t}(i),o=[],a=function pIt(t,n,e,i){return RB[t](n,e,i)}(t.secondary,e[r],e[2+r],t.size[r]);return o[i]=AB(o[2+i]=n[t.primary+i]+("inside"===t.position?aK(t.primary,t.size[i]):0)),o[t.primary+i]=AB(n[t.primary+i]-aK(t.primary,t.size[i])),"inside"!==t.position&&(n[t.primary+i]=o[t.primary+i]),o[r]=AB(a[0]),o[2+r]=AB(a[1]),o}function fIt(t,n,e,i,r,o){var a=sK(t,n,e),s=sK(t,i,i);r[t.side]>0?(r[t.side]-=t.size[t.side],o[t.primary+t.side]=a[t.primary+t.side],t.element.freeSpace()):t.element.move(a,s)}function lK(){this._targets=[]}function LB(t,n){var e=n.slice(),i=sK(t,e,e);return i[t.side]=n[t.side],i[2+t.side]=n[2+t.side],i}function vIt(t,n){var e=t.side,i=t.primary;return{side:e,primary:i,secondary:t.secondary,priority:0,element:{measure:function(o){var a=o.slice(),s=n.element.measure(o.slice());o[i]-=s[i];var l=t.element.measure(o.slice());return a[e]=s[e]=l[e]=Math.max(l[e],s[e]),n.size=s,t.size=l,a},move:function(o,a){if(a[2]-a[0]<t.size[0]+n.size[0]-2)this.freeSpace();else{var s=LB(n,a);a[2+n.primary]=s[n.primary];var l=LB(t,a);a[2+n.primary]<o[2+n.primary]&&t.size[t.primary]>o[2+t.primary]-o[t.primary]&&(o[2+n.primary]=a[2+n.primary]);var u=LB(t,o);u[2+n.primary]>a[2+n.primary]&&(o[2+n.primary]=a[2+n.primary],u=LB(t,o)),n.element.move(s),t.element.move(u,l)}},freeSpace:function(){t.element.freeSpace(),n.element.freeSpace()}}}}RB[0]=function(t,n,e){return[t,kxe(n,t+e)]},RB[1]=function(t,n,e){return[Mxe(t,(t+n-e)/2),kxe(n,(t+n+e)/2)]},RB[2]=function(t,n,e){return[Mxe(t,n-e),n]},lK.prototype={constructor:lK,dispose:function(){this._targets=null},add:function(t){this._targets.push(t)},forward:function(t,n){var r,e=t.slice(),i=function mIt(t){var n,r,e=t.length,i=[];for(n=0;n<e;++n)(r=t[n].layoutOptions())&&((r=dIt(r)).element=t[n],i.push(r));return i.sort(function(o,a){return a.side-o.side||o.priority-a.priority}),i=function _It(t){var e,n=t.filter(function(i){return!0===i.weak})[0];return n&&(e=t.filter(function(i){return n.primary===i.primary&&i.side===n.side&&i!==n})[0]),n&&e?[vIt(e,n)].concat(t.filter(function(i){return!(i===e||i===n)})):t}(i),i}(this._targets),o=i.length,a=[];for(r=0;r<o;++r)gIt(i[r],e,n)?a.push(i[r]):i[r].element.freeSpace();return this._cache=a.reverse(),e},backward:function(t,n){var s,l,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],i=t.slice(),r=t.slice(),o=this._cache,a=0,u=o.length;for(l=0;l<u;++l)(s=o[l]).side!==a&&(i=t.slice()),fIt(s,i,n,r,e,t),a=s.side;return e}};const yIt=lK;var CIt=jbe.ERROR_MESSAGES,xIt=function(t,n){return function(e,i){n("incidentOccurred",{target:{id:e,type:"E"===e[0]?"error":"warning",args:i,text:Er.apply(null,[CIt[e]].concat(i||[])),widget:t,version:U7}})}};var Axe=Math.floor,EIt=jbe.log,Fxe="rtlEnabled",Pxe="dx-sized-element",Rxe=Ic.prototype.option;function Lxe(){return!0}function uK(){return!1}function TIt(t){t.component._eventsStrategy.hasEvent("incidentOccurred")||EIt.apply(null,[t.target.id].concat(t.target.args||[]))}function B1(t){return t.reduce(function(n,e){return e>0&&!n?e:n},0)}function Bxe(t){t.forEach(n=>n())}var n,e,Nxe=Rn()?Ic.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred",actionSettings:{excludeValidators:["disabled"]}},onDrawn:{name:"drawn",actionSettings:{excludeValidators:["disabled"]}}},_getDefaultOptions:function(){return se(this.callBase(),{onIncidentOccurred:TIt})},_useLinks:!0,_init:function(){var t=this;t._$element.children("."+Pxe).remove(),t.callBase.apply(t,arguments),t._changesLocker=0,t._optionChangedLocker=0,t._asyncFirstDrawing=!0,t._changes=hTt(),t._suspendChanges(),t._themeManager=t._createThemeManager(),t._themeManager.setCallback(function(){t._requestChange(t._themeDependentChanges)}),t._renderElementAttributes(),t._initRenderer();var n=t._useLinks&&t._renderer.root;n&&n.enableLinks().virtualLink("core").virtualLink("peripheral"),t._renderVisibilityChange(),t._attachVisibilityChangeHandlers(),t._toggleParentsScrollSubscription(this._isVisible()),t._initEventTrigger(),t._incidentOccurred=xIt(t.NAME,t._eventTrigger),t._layout=new yIt,n&&n.linkAfter("core"),t._initPlugins(),t._initCore(),n&&n.linkAfter(),t._change(t._initialChanges)},_createThemeManager(){return new Gj(this._getThemeManagerOptions())},_getThemeManagerOptions(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var t=this;we(t._plugins,function(n,e){e.init.call(t)})},_disposePlugins:function(){var t=this;we(t._plugins.slice().reverse(),function(n,e){e.dispose.call(t)})},_change:function(t){this._changes.add(t)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){0==--this._changesLocker&&this._changes.count()>0&&!this._applyingChanges&&(this._renderer.lock(),this._applyingChanges=!0,this._applyChanges(),this._changes.reset(),this._applyingChanges=!1,this._changesApplied(),this._renderer.unlock(),this._optionsQueue&&this._applyQueuedOptions(),this.resolveItemsDeferred(this._legend?[this._legend]:[]),this._optionChangedLocker++,this._notify(),this._optionChangedLocker--)},resolveItemsDeferred(t){this._resolveDeferred(this._getTemplatesItems(t))},_collectTemplatesFromItems:t=>t.reduce((n,e)=>({items:n.items.concat(e.getTemplatesDef()),groups:n.groups.concat(e.getTemplatesGroups())}),{items:[],groups:[]}),_getTemplatesItems(t){var n=this._collectTemplatesFromItems(t),e=this._getExtraTemplatesItems();return{items:e.items.concat(n.items),groups:e.groups.concat(n.groups),launchRequest:[e.launchRequest],doneRequest:[e.doneRequest]}},_getExtraTemplatesItems:()=>({items:[],groups:[],launchRequest:()=>{},doneRequest:()=>{}}),_resolveDeferred(t){var{items:n,launchRequest:e,doneRequest:i,groups:r}=t,o=this;if(o._setGroupsVisibility(r,"hidden"),o._changesApplying)return o._changesApplying=!1,void Bxe(i);var a=!0;Qt.apply(o,n).done(()=>{if(a)o._setGroupsVisibility(r,"visible");else{Bxe(e),o._changesApplying=!0;var s=["LAYOUT","FULL_RENDER"];o._asyncFirstDrawing?(s.push("FORCE_FIRST_DRAWING"),o._asyncFirstDrawing=!1):s.push("FORCE_DRAWING"),o._requestChange(s),o._setGroupsVisibility(r,"visible")}}),a=!1},_setGroupsVisibility(t,n){t.forEach(e=>e.attr({visibility:n}))},_applyQueuedOptions:function(){var t=this._optionsQueue;this._optionsQueue=null,this.beginUpdate(),we(t,function(n,e){e()}),this.endUpdate()},_requestChange:function(t){this._suspendChanges(),this._change(t),this._resumeChanges()},_applyChanges:function(){var e,t=this._changes,n=this._totalChangesOrder,i=n.length;for(e=0;e<i;++e)t.has(n[e])&&this["_change_"+n[e]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:["DISABLED"],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_ELEMENT_ATTR:function(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_change_DISABLED:function(){var t=this._renderer,n=t.root;this.option("disabled")?(this._initDisabledState=n.attr("pointer-events"),n.attr({"pointer-events":"none",filter:t.getGrayScaleFilter().id})):"none"===n.attr("pointer-events")&&n.attr({"pointer-events":Z(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer:function(){this._canvas=this._calculateCanvas(),this._renderer=new kB({cssClass:this._rootClassPrefix+" "+this._rootClass,pathModified:this.option("pathModified"),container:this._$element[0]}),this._renderer.resize(this._canvas.width,this._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:Be,render:function(){this._requestChange(["CONTAINER_SIZE"]);var t=this._isVisible();this._toggleParentsScrollSubscription(t),!t&&this._stopCurrentHandling()},_toggleParentsScrollSubscription:function(t){var n=U(this._renderer.root.element).parents();"generic"===pn.real().platform&&(n=n.add(Fn())),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(){this._stopCurrentHandling()}.bind(this),Se.off(U().add(this._$prevRootParents),"scroll.viz_widgets",this._proxiedTargetParentsScrollHandler),t&&(Se.on(n,"scroll.viz_widgets",this._proxiedTargetParentsScrollHandler),this._$prevRootParents=n)},_stopCurrentHandling:Be,_dispose:function(){var t=this;this._disposed||(t.callBase.apply(t,arguments),t._toggleParentsScrollSubscription(!1),t._removeResizeHandler(),t._layout.dispose(),t._eventTrigger.dispose(),t._disposeCore(),t._disposePlugins(),t._disposeRenderer(),t._themeManager.dispose(),t._themeManager=t._renderer=t._eventTrigger=null)},_initEventTrigger:function(){var t=this;t._eventTrigger=function bIt(t,n){var i,e={};return we(t,function(a,s){s.name&&r(a)}),o.change=function(a){var s=t[a];return s&&((i=i||{})[a]=s),!!s},o.applyChanges=function(){i&&(we(i,function(a,s){r(s.newName||a)}),i=null)},o.dispose=function(){t=n=e=null},o;function r(a){var s=t[a];e[s.name]=n(a,s.actionSettings)}function o(a,s,l){e[a](s),l&&l()}}(t._eventsMap,function(n,e){return t._createActionByOption(n,e)})},_calculateCanvas:function(){var t=this,n=t.option("size")||{},e=t.option("margin")||{},i=t._getDefaultSize()||{},r=(l,u,f)=>{if(function MIt(t){return Z(t)&&t>0}(l[u])||!Rn())return 0;var S=f(t._$element);return S<=1?0:S},o=r(n,"width",l=>wn(l)),a=r(n,"height",l=>Ln(l)),s={width:n.width<=0?0:Axe(B1([n.width,o,i.width])),height:n.height<=0?0:Axe(B1([n.height,a,i.height])),left:B1([e.left,i.left]),top:B1([e.top,i.top]),right:B1([e.right,i.right]),bottom:B1([e.bottom,i.bottom])};return(s.width-s.left-s.right<=0||s.height-s.top-s.bottom<=0)&&(s={width:0,height:0}),s},_updateSize:function(){var t=this._calculateCanvas();(function OIt(t,n){return!(t.width===n.width&&t.height===n.height&&t.left===n.left&&t.top===n.top&&t.right===n.right&&t.bottom===n.bottom)}(this._canvas,t)||this.__forceRender)&&(this._canvas=t,this._recreateSizeDependentObjects(!0),this._renderer.resize(t.width,t.height),this._change(["LAYOUT"]))},_recreateSizeDependentObjects:Be,_getMinSize:function(){return[0,0]},_getAlignmentRect:Be,_setContentSize:function(){var t=this._canvas,n=this._layout,e=t.width>0&&t.height>0?[t.left,t.top,t.width-t.right,t.height-t.bottom]:[0,0,0,0];e=n.forward(e,this._getMinSize());var i=this._applySize(e)||e;n.backward(i,this._getAlignmentRect()||i)},_getOption:function(t,n){var e=this._themeManager.theme(t),i=this.option(t);return n?void 0!==i?i:e:se(!0,{},e,i)},_setupResizeHandler:function(){var t=this,n=wd(t._getOption("redrawOnResize",!0),!0);t._disposeResizeHandler&&t._removeResizeHandler(),t._disposeResizeHandler=function DIt(t,n,e){var i,r=function wIt(t){return(n,e)=>{var{handler:i,dispose:r}=function SIt(t,n){var e,i=function(){clearTimeout(e),e=setTimeout(t,100)};return{handler:i,dispose(){clearTimeout(e),n(i)}}}(t,e);return n(i),r}}(e);return"windowonly"===Ri(n)?i=r(o=>fp.add(o),o=>fp.remove(o)):!0===n&&(i=r(o=>Mm.observe(t,o),()=>Mm.unobserve(t))),i}(t._$element[0],n,()=>t._requestChange(["CONTAINER_SIZE"]))},_removeResizeHandler:function(){this._disposeResizeHandler&&(this._disposeResizeHandler(),this._disposeResizeHandler=null)},_onBeginUpdate:Be,beginUpdate:function(){var t=this;return t._initialized&&t._isUpdateAllowed()&&(t._onBeginUpdate(),t._suspendChanges()),t.callBase.apply(t,arguments),t},endUpdate:function(){return this.callBase(),this._isUpdateAllowed()&&this._resumeChanges(),this},option:function(t){var n=this;if(!(n._initialized&&n._applyingChanges&&(arguments.length>1||Jn(t))))return Rxe.apply(n,arguments);n._optionsQueue=n._optionsQueue||[],n._optionsQueue.push(n._getActionForUpdating(arguments))},_getActionForUpdating:function(t){var n=this;return function(){Rxe.apply(n,t)}},_clean:Be,_render:Be,_optionChanged:function(t){var n=this;if(!n._optionChangedLocker){var e=n.getPartialChangeOptionsName(t),i=[];e.length>0?e.forEach(r=>i.push(n._partialOptionChangesMap[r])):i.push(n._optionChangesMap[t.name]),i=i.filter(r=>!!r),n._eventTrigger.change(t.name)?n._change(["EVENTS"]):i.length>0?n._change(i):n.callBase.apply(n,arguments)}},_notify:Be,_changesApplied:Be,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_partialOptionChangesPath:{},getPartialChangeOptionsName:function(t){var n=this,e=t.fullName,i=e.split(/[.]/),r=t.name,o=t.value,a=this._partialOptionChangesPath[r],s=[];return a&&(!0===a?s.push(r):(a.forEach(l=>{e.indexOf(l)>=0&&s.push(l)}),1===i.length&&("object"===Fa(o)?n._addOptionsNameForPartialUpdate(o,a,s):"array"===Fa(o)&&o.length>0&&o.every(l=>n._checkOptionsForPartialUpdate(l,a))&&o.forEach(l=>n._addOptionsNameForPartialUpdate(l,a,s))))),s.filter((l,u,f)=>f.indexOf(l)===u)},_checkOptionsForPartialUpdate:function(t,n){return!Object.keys(t).some(e=>-1===n.indexOf(e))},_addOptionsNameForPartialUpdate:function(t,n,e){var i=Object.keys(t);this._checkOptionsForPartialUpdate(t,n)&&i.forEach(r=>n.indexOf(r)>-1&&e.push(r))},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(Fxe))},_getRendererOptions:function(){return{rtl:this.option(Fxe),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var t=this._canvas||{};return{width:t.width,height:t.height}},isReady:uK,_dataIsReady:Lxe,_resetIsReady:function(){this.isReady=uK},_drawn:function(){var t=this;t.isReady=uK,t._dataIsReady()&&t._renderer.onEndAnimation(function(){t.isReady=Lxe}),t._eventTrigger("drawn",{})}}):(n=Ic.inherit({_initTemplates(){},ctor(i,r){this.callBase(i,r);var o=It.createElement("div"),a=r&&di(r.width)?r.width+"px":"100%",s=r&&di(r.height)?r.height+"px":this._getDefaultSize().height+"px";It.setStyle(o,"width",a),It.setStyle(o,"height",s),It.setClass(o,Pxe),It.insertElement(i,o)}}),e=n.inherit,n.inherit=function(i){for(var r in i)(Yt(i[r])&&"_"!==r.substr(0,1)&&"option"!==r||"_dispose"===r||"_optionChanged"===r)&&(i[r]=Be);return e.call(this,i)},n);const V_=Nxe;cTt(Nxe);var Vxe=se,AIt=Gj.inherit({ctor(t){this.callBase.apply(this,arguments),this._subTheme=t.subTheme},_initializeTheme:function(){var n,t=this;t._subTheme&&(n=Vxe(!0,{},t._theme[t._subTheme],t._theme),Vxe(!0,t._theme,n)),t.callBase.apply(t,arguments)}});const FIt={ThemeManager:AIt};var H_="gauge-tooltip",PIt=gd.add,RIt=ji.inherit({ctor:function(t){var n=this;n._element=t.renderer.g().attr({class:"dxg-tracker",stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).linkOn(t.container,{name:"tracker",after:"peripheral"}),n._showTooltipCallback=function(){var e=n._tooltipEvent.target,i=e["gauge-data-target"],r=e["gauge-data-info"];if(n._targetEvent=null,n._tooltipTarget!==e){var o=a=>{a&&(n._tooltipTarget=e)};o(n._callbacks["tooltip-show"](i,r,o))}},n._hideTooltipCallback=function(){n._hideTooltipTimeout=null,n._targetEvent=null,n._tooltipTarget&&(n._callbacks["tooltip-hide"](),n._tooltipTarget=null)},n._dispose=function(){clearTimeout(n._hideTooltipTimeout),n._showTooltipCallback=n._hideTooltipCallback=n._dispose=null}},dispose:function(){return this._dispose(),this.deactivate(),this._element.off("."+H_),this._element.linkOff(),this._element=this._context=this._callbacks=null,this},activate:function(){return this._element.linkAppend(),this},deactivate:function(){return this._element.linkRemove().clear(),this},attach:function(t,n,e){return t.data({"gauge-data-target":n,"gauge-data-info":e}).append(this._element),this},detach:function(t){return t.remove(),this},setTooltipState:function(t){if(this._element.off("."+H_),t){var n={tracker:this};this._element.on(kt([qn.move],H_),n,zxe).on(kt([qn.out],H_),n,LIt).on(kt([qn.down],H_),n,NIt).on(kt([qn.up],H_),n,VIt).on(kt([p_],H_),n,BIt)}return this},setCallbacks:function(t){return this._callbacks=t,this},_showTooltip:function(t){clearTimeout(this._hideTooltipTimeout),this._hideTooltipTimeout=null,this._tooltipTarget!==t.target&&(this._tooltipEvent=t,this._showTooltipCallback())},_hideTooltip:function(t){clearTimeout(this._hideTooltipTimeout),t?this._hideTooltipTimeout=setTimeout(this._hideTooltipCallback,t):this._hideTooltipCallback()}}),BB=null;function zxe(t){var n=t.data.tracker;n._x=t.pageX,n._y=t.pageY,n._showTooltip(t)}function LIt(t){t.data.tracker._hideTooltip(100)}function BIt(t){t.data.tracker._hideTooltip()}function NIt(t){(BB=t.data.tracker)._touch=!0,zxe(t)}function VIt(){BB._touch=!1}function HIt(t){BB&&!BB._touch&&(BB._hideTooltip(100),BB=null)}PIt(function(){Se.subscribeGlobal(It.getDocument(),kt([qn.down],H_),HIt)});const zIt=RIt,Es=ch({format:function(t,n){var e=Pn(n)&&""!==n||wi(n)||Yt(n),i=di(t)||Sa(t);return e&&i?Yt(n)?n(t):(Pn(n)&&(n={type:n}),di(t)?Gr.format(t,n):Sa(t)?Gn.format(t,n):void 0):Z(t)?t.toString():""},getTimeFormat:function(t){return t?"longtime":"shorttime"},_normalizeFormat:function(t){return Array.isArray(t)?1===t.length?t[0]:function(n){return t.map(function(e){return Gn.format(n,e)}).join(" ")}:t},getDateFormatByDifferences:function(t,n){var e=[],i=n&&t.millisecond&&!(t.year||t.month||t.day);return i?e.push(function(r){return r.getSeconds()+r.getMilliseconds()/1e3+"s"}):t.millisecond&&e.push("millisecond"),(t.hour||t.minute||!i&&t.second)&&e.unshift(this.getTimeFormat(t.second)),t.year&&t.month&&t.day?n&&"month"===n?"monthandyear":(e.unshift("shortdate"),this._normalizeFormat(e)):t.year&&t.month?"monthandyear":t.year&&t.quarter?"quarterandyear":t.year?"year":t.quarter?"quarter":t.month&&t.day?(e.unshift(n?function(r){return Gn.getMonthNames("abbreviated")[r.getMonth()]+" "+Gn.format(r,"day")}:"monthandday"),this._normalizeFormat(e)):t.month?"month":t.day?(e.unshift(n?"day":function(r){return Gn.format(r,"dayofweek")+", "+Gn.format(r,"day")}),this._normalizeFormat(e)):this._normalizeFormat(e)},getDateFormatByTicks:function(t){var n,e,i;if(t.length>1)for(n=bt.getDatesDifferences(t[0],t[1]),i=1;i<t.length-1;i++)e=bt.getDatesDifferences(t[i],t[i+1]),n.count<e.count&&(n=e);else n={year:!0,month:!0,day:!0,hour:t[0].getHours()>0,minute:t[0].getMinutes()>0,second:t[0].getSeconds()>0,millisecond:t[0].getMilliseconds()>0};return this.getDateFormatByDifferences(n)},getDateFormatByTickInterval:function(t,n,e){var i,r=function(s,l,u){switch(l){case"year":case"quarter":s.month=u;case"month":s.day=u;case"week":case"day":s.hour=u;case"hour":s.minute=u;case"minute":s.second=u;case"second":s.millisecond=u}};e=Pn(e)?e.toLowerCase():e;var s,l,u,o=bt.getDatesDifferences(t,n);return t!==n&&(s=o,l=t>n?n:t,!(u=t>n?t:n).getMilliseconds()&&u.getSeconds()?u.getSeconds()-l.getSeconds()==1&&(s.millisecond=!0,s.second=!1):!u.getSeconds()&&u.getMinutes()?u.getMinutes()-l.getMinutes()==1&&(s.second=!0,s.minute=!1):!u.getMinutes()&&u.getHours()?u.getHours()-l.getHours()==1&&(s.minute=!0,s.hour=!1):!u.getHours()&&u.getDate()>1?u.getDate()-l.getDate()==1&&(s.hour=!0,s.day=!1):1===u.getDate()&&u.getMonth()?u.getMonth()-l.getMonth()==1&&(s.day=!0,s.month=!1):!u.getMonth()&&u.getFullYear()&&u.getFullYear()-l.getFullYear()==1&&(s.month=!0,s.year=!1)),r(o,bt.getDateUnitInterval(o),!0),r(o,i=bt.getDateUnitInterval(e||"second"),!1),o[{week:"day"}[i]||i]=!0,this.getDateFormatByDifferences(o)}});var z_=Fn(),dK=cw(),Uxe={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},Wxe={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"},NB={_revokeObjectURLTimeout:3e4,_getDataUri:function(t,n){var e=this._getMimeType(t);return"data:".concat(e,";base64,").concat(n)},_getMimeType:function(t){return Wxe[t]||"application/octet-stream"},_linkDownloader:function(t,n){var e=It.createElement("a");return e.download=t,e.href=n,e.target="_blank",e},_winJSBlobSave:function(t,n,e){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary;var r=Uxe[e];if(r){var o=this._getMimeType(e);i.fileTypeChoices.insert(o,["."+r])}i.suggestedFileName=n,i.pickSaveFileAsync().then(function(a){a&&a.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(s){var l=t.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(l,s).then(function(){s.flushAsync().done(function(){l.close(),s.close()})})})})},_click:function(t){try{t.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch{var n=It.getDocument().createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,z_,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}},_saveBlobAs:function(t,n,e){if(this._blobSaved=!1,Z(dK.msSaveOrOpenBlob))dK.msSaveOrOpenBlob(e,t),this._blobSaved=!0;else if(Z(z_.WinJS))this._winJSBlobSave(e,t,n),this._blobSaved=!0;else{var i=z_.URL||z_.webkitURL||z_.mozURL||z_.msURL||z_.oURL;if(Z(i)){var r=i.createObjectURL(e),o=this._linkDownloader(t,r);setTimeout(()=>{i.revokeObjectURL(r),this._objectUrlRevoked=!0},this._revokeObjectURLTimeout),this._click(o)}else Ey.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(t,n,e){var i=Uxe[n];if(i&&(t+="."+i),Yt(z_.Blob))this._saveBlobAs(t,n,e);else{Z(dK.userAgent.match(/iPad/i))||Di.log("E1034");var r=this._linkDownloader(t,this._getDataUri(n,e));this._click(r)}}},UIt=D(586),cK=D.n(UIt),WIt={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};function Gxe(){return WIt[Ou.locale()]}var Kxe={thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},GIt=/a+/g,jIt=/E/g,KIt=/dE+/g,$It=/L/g,qIt=/h/g,YIt=/./g,hK={_applyPrecision:function(t,n){var e,i;if(n>0){for(e="decimal"!==t?".":"",i=0;i<n;i++)e+="0";return e}return""},_hasArabicDigits:function(t){for(var n,e=0;e<t.length;e++)if((n=t.charCodeAt(e))>=1632&&n<1642)return!0;return!1},_convertDateFormatToOpenXml:function(t){return t.split("/").join("\\/").split("'").map(function(n,e){return e%2==0?n.replace(GIt,"AM/PM").replace(KIt,"d").replace(jIt,"d").replace($It,"M").replace(qIt,"H").split("[").join("\\[").split("]").join("\\]"):n?n.replace(YIt,"\\$&"):"'"}).join("")},_convertDateFormat:function(t){var n=(Gn.format(new Date(2009,8,8,6,5,4),t)||"").toString(),e=nz(i=>Gn.format(i,t));return e&&(e=this._convertDateFormatToOpenXml(e),e=this._getLanguageInfo(n)+e),e},_getLanguageInfo:function(t){var n=Gxe(),e=n?n.toString(16):"",i="";if(this._hasArabicDigits(t)){for(;e.length<3;)e="0"+e;i="[$-2010"+e+"]"}else e&&(i="[$-"+e+"]");return i},_convertNumberFormat:function(t,n,e){var i,r;return(r="currency"===t?Gr.getOpenXmlCurrencyFormat(e):Kxe[t.toLowerCase()])&&(i=Er(r,this._applyPrecision(t,n))),i},convertFormat:function(t,n,e,i){if(Z(t)){if("date"===e)return hK._convertDateFormat(t);if(Pn(t)&&Kxe[t.toLowerCase()])return hK._convertNumberFormat(t,n,i)}}};const $xe=hK;var ZIt={toXml:function(t,n,e){var i=["<",t];for(var r in n){var o=n[r];Z(o)&&i.push(" ",r,'="',o,'"')}return Z(e)&&""!==e?i.push(">",e,"</",t,">"):i.push(" />"),i.join("")}};const Nl=ZIt;var VB={tryCreateTag:function(t){var n=null;return Z(t)&&VB.isEmpty(n={vertical:t.vertical,wrapText:t.wrapText,horizontal:t.horizontal})&&(n=null),n},copy:function(t){var n=null;return Z(t)&&(n={},void 0!==t.horizontal&&(n.horizontal=t.horizontal),void 0!==t.vertical&&(n.vertical=t.vertical),void 0!==t.wrapText&&(n.wrapText=t.wrapText)),n},areEqual:function(t,n){return VB.isEmpty(t)&&VB.isEmpty(n)||Z(t)&&Z(n)&&t.vertical===n.vertical&&t.wrapText===n.wrapText&&t.horizontal===n.horizontal},isEmpty:function(t){return!Z(t)||!Z(t.vertical)&&!Z(t.wrapText)&&!Z(t.horizontal)},toXml:function(t){return Nl.toXml("alignment",{vertical:t.vertical,wrapText:Z(t.wrapText)?Number(t.wrapText):void 0,horizontal:t.horizontal})}};const N1=VB;var HB={_tryConvertColor:function(t){if("string"!=typeof t)return t;var n;if(t.length>0&&"#"===t[0]){var e=t.substr(1,t.length);n=6===e.length?"FF"+e:8===e.length?e[6]+e[7]+e.substr(0,6):e}else n=t;return n},tryCreateTag:function(t){var n=null;return Z(t)&&(n="string"==typeof t?{rgb:this._tryConvertColor(t)}:{rgb:this._tryConvertColor(t.rgb),theme:t.theme},HB.isEmpty(n)&&(n=null)),n},copy:function(t){var n=null;return Z(t)&&("string"==typeof t?n=t:(n={},void 0!==t.rgb&&(n.rgb=t.rgb),void 0!==t.theme&&(n.theme=t.theme))),n},isEmpty:function(t){return!Z(t)||!Z(t.rgb)&&!Z(t.theme)},areEqual:function(t,n){return HB.isEmpty(t)&&HB.isEmpty(n)||Z(t)&&Z(n)&&t.rgb===n.rgb&&t.theme===n.theme},toXml:function(t,n){return Nl.toXml(t,{rgb:n.rgb,theme:n.theme})}};const Vc=HB;var zB={tryCreateTag:function(t){var n=null;return Z(t)&&(n={patternType:t.patternType,backgroundColor:Vc.tryCreateTag(t.backgroundColor),foregroundColor:Vc.tryCreateTag(t.foregroundColor)},zB.isEmpty(n)&&(n=null)),n},copy:function(t){var n=null;return Z(t)&&(n={},void 0!==t.patternType&&(n.patternType=t.patternType),void 0!==t.backgroundColor&&(n.backgroundColor=Vc.copy(t.backgroundColor)),void 0!==t.foregroundColor&&(n.foregroundColor=Vc.copy(t.foregroundColor))),n},areEqual:function(t,n){return zB.isEmpty(t)&&zB.isEmpty(n)||Z(t)&&Z(n)&&t.patternType===n.patternType&&Vc.areEqual(t.backgroundColor,n.backgroundColor)&&Vc.areEqual(t.foregroundColor,n.foregroundColor)},isEmpty:function(t){return!Z(t)||!Z(t.patternType)},toXml:function(t){var n=[Z(t.foregroundColor)?Vc.toXml("fgColor",t.foregroundColor):"",Z(t.backgroundColor)?Vc.toXml("bgColor",t.backgroundColor):""].join("");return Nl.toXml("patternFill",{patternType:t.patternType},n)}};const fI=zB;var UB={tryCreateTag:function(t){var n=null;return Z(t)&&(n={patternFill:fI.tryCreateTag(t.patternFill)},UB.isEmpty(n)&&(n=null)),n},tryCreateFillFromSimpleFormat:function(){var{backgroundColor:t,fillPatternType:n,fillPatternColor:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!Z(t)||Z(n)&&Z(e)?Z(n)&&Z(e)?{patternFill:{patternType:n,foregroundColor:{rgb:e},backgroundColor:{rgb:t}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:t}}}},copySimpleFormat:function(t,n){void 0!==t.backgroundColor&&(n.backgroundColor=t.backgroundColor),void 0!==t.fillPatternType&&(n.fillPatternType=t.fillPatternType),void 0!==t.fillPatternColor&&(n.fillPatternColor=t.fillPatternColor)},copy:function(t){var n=null;return Z(t)&&(n={},void 0!==t.patternFill&&(n.patternFill=fI.copy(t.patternFill))),n},areEqual:function(t,n){return UB.isEmpty(t)&&UB.isEmpty(n)||Z(t)&&Z(n)&&fI.areEqual(t.patternFill,n.patternFill)},isEmpty:function(t){return!Z(t)||fI.isEmpty(t.patternFill)},toXml:function(t){return Nl.toXml("fill",{},fI.toXml(t.patternFill))}};const U_=UB;var WB={tryCreateTag:function(t){var n=null;return Z(t)&&(n={size:t.size,name:t.name,family:t.family,scheme:t.scheme,bold:t.bold,italic:t.italic,underline:t.underline,color:Vc.tryCreateTag(t.color)},WB.isEmpty(n)&&(n=null)),n},copy:function(t){var n=null;return Z(t)&&(n={},void 0!==t.size&&(n.size=t.size),void 0!==t.name&&(n.name=t.name),void 0!==t.family&&(n.family=t.family),void 0!==t.scheme&&(n.scheme=t.scheme),void 0!==t.bold&&(n.bold=t.bold),void 0!==t.italic&&(n.italic=t.italic),void 0!==t.underline&&(n.underline=t.underline),void 0!==t.color&&(n.color=Vc.copy(t.color))),n},areEqual:function(t,n){return WB.isEmpty(t)&&WB.isEmpty(n)||Z(t)&&Z(n)&&t.size===n.size&&t.name===n.name&&t.family===n.family&&t.scheme===n.scheme&&(t.bold===n.bold||!t.bold==!n.bold)&&(t.italic===n.italic||!t.italic==!n.italic)&&t.underline===n.underline&&Vc.areEqual(t.color,n.color)},isEmpty:function(t){return!Z(t)||!Z(t.size)&&!Z(t.name)&&!Z(t.family)&&!Z(t.scheme)&&(!Z(t.bold)||!t.bold)&&(!Z(t.italic)||!t.italic)&&!Z(t.underline)&&Vc.isEmpty(t.color)},toXml:function(t){var n=[Z(t.bold)&&t.bold?Nl.toXml("b",{}):"",Z(t.size)?Nl.toXml("sz",{val:t.size}):"",Z(t.color)?Vc.toXml("color",t.color):"",Z(t.name)?Nl.toXml("name",{val:t.name}):"",Z(t.family)?Nl.toXml("family",{val:t.family}):"",Z(t.scheme)?Nl.toXml("scheme",{val:t.scheme}):"",Z(t.italic)&&t.italic?Nl.toXml("i",{}):"",Z(t.underline)?Nl.toXml("u",{val:t.underline}):""].join("");return Nl.toXml("font",{},n)}};const GB=WB;var jB={tryCreateTag:function(t,n){var e=null;if(Z(t)){var i;i="number"==typeof t.numberFormat?t.numberFormat:n.registerNumberFormat(t.numberFormat);var r=t.fill;Z(r)||(r=U_.tryCreateFillFromSimpleFormat(t)),e={numberFormatId:i,alignment:N1.tryCreateTag(t.alignment),fontId:n.registerFont(t.font),fillId:n.registerFill(r)},jB.isEmpty(e)&&(e=null)}return e},copy:function(t){var n;return null===t?n=null:Z(t)&&(n={},void 0!==t.numberFormat&&(n.numberFormat=t.numberFormat),void 0!==t.fill?n.fill=U_.copy(t.fill):U_.copySimpleFormat(t,n),void 0!==t.alignment&&(n.alignment=N1.copy(t.alignment)),void 0!==t.font&&(n.font=GB.copy(t.font))),n},areEqual:function(t,n){return jB.isEmpty(t)&&jB.isEmpty(n)||Z(t)&&Z(n)&&t.fontId===n.fontId&&t.numberFormatId===n.numberFormatId&&t.fillId===n.fillId&&N1.areEqual(t.alignment,n.alignment)},isEmpty:function(t){return!Z(t)||!Z(t.fontId)&&!Z(t.numberFormatId)&&!Z(t.fillId)&&N1.isEmpty(t.alignment)},toXml:function(t){var e,n=N1.isEmpty(t.alignment);return Z(t.numberFormatId)&&(e=t.numberFormatId>0?1:0),Nl.toXml("xf",{xfId:0,applyAlignment:n?null:1,fontId:t.fontId,applyNumberFormat:e,fillId:t.fillId,numFmtId:t.numberFormatId},n?null:N1.toXml(t.alignment))}};const KB=jB;var mI={ID_PROPERTY_NAME:"id",tryCreateTag:function(t){var n=null;return"string"==typeof t&&mI.isEmpty(n={formatCode:t})&&(n=null),n},areEqual:function(t,n){return mI.isEmpty(t)&&mI.isEmpty(n)||Z(t)&&Z(n)&&t.formatCode===n.formatCode},isEmpty:function(t){return!Z(t)||!Z(t.formatCode)||""===t.formatCode},toXml:function(t){return Nl.toXml("numFmt",{numFmtId:t[mI.ID_PROPERTY_NAME],formatCode:t.formatCode})}};const V1=mI;class qxe{constructor(){this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(U_.tryCreateTag({patternFill:{patternType:"none"}}))}registerCellFormat(n){var e,i=KB.tryCreateTag(n,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if(Z(i)){for(var r=0;r<this._cellFormatTags.length;r++)if(KB.areEqual(this._cellFormatTags[r],i)){e=r;break}void 0===e&&(e=this._cellFormatTags.push(i)-1)}return e}static copyCellFormat(n){return KB.copy(n)}generateCellFormatsXml(){var n=this._cellFormatTags.map(e=>KB.toXml(e));return Nl.toXml("cellXfs",{count:n.length},n.join(""))}registerFill(n){var e,i=U_.tryCreateTag(n);if(Z(i)){for(var r=0;r<this._fillTags.length;r++)if(U_.areEqual(this._fillTags[r],i)){e=r;break}void 0===e&&(this._fillTags.length<2&&this._fillTags.push(U_.tryCreateTag({patternFill:{patternType:"Gray125"}})),e=this._fillTags.push(i)-1)}return e}generateFillsXml(){var n=this._fillTags.map(e=>U_.toXml(e));return Nl.toXml("fills",{count:n.length},n.join(""))}registerFont(n){var e,i=GB.tryCreateTag(n);if(Z(i)){for(var r=0;r<this._fontTags.length;r++)if(GB.areEqual(this._fontTags[r],i)){e=r;break}void 0===e&&(e=this._fontTags.push(i)-1)}return e}generateFontsXml(){var n=this._fontTags.map(e=>GB.toXml(e));return Nl.toXml("fonts",{count:n.length},n.join(""))}_convertNumberFormatIndexToId(n){return 165+n}registerNumberFormat(n){var e,i=V1.tryCreateTag(n);if(Z(i)){for(var r=0;r<this._numberFormatTags.length;r++)if(V1.areEqual(this._numberFormatTags[r],i)){e=this._numberFormatTags[r][V1.ID_PROPERTY_NAME];break}void 0===e&&(i[V1.ID_PROPERTY_NAME]=this._convertNumberFormatIndexToId(this._numberFormatTags.length),e=i[V1.ID_PROPERTY_NAME],this._numberFormatTags.push(i))}return e}generateNumberFormatsXml(){if(this._numberFormatTags.length>0){var n=this._numberFormatTags.map(e=>V1.toXml(e));return Nl.toXml("numFmts",{count:n.length},n.join(""))}return""}}var H1='<?xml version="1.0" encoding="utf-8"?>',DC="http://schemas.openxmlformats.org",pK="rels",gK="workbook.xml",Yxe="sharedStrings.xml",Zxe="styles.xml",Xxe="sheet1.xml",Od={boolean:"b",date:"d",number:"n",string:"s"},ikt=Date.UTC(1899,11,30),akt={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},_I=ji.inherit({_getXMLTag:function(t,n,e){var r,a,i="<"+t,o=n.length;for(r=0;r<o;r++)void 0!==(a=n[r]).value&&(i=i+" "+a.name+'="'+a.value+'"');return Z(e)?i+">"+e+"</"+t+">":i+" />"},_convertToExcelCellRef:function(t,n){for(var i,r,e="";!r;)i=65+(n>=26?n%26:Math.ceil(n)),e=String.fromCharCode(i)+e,n>=26?n=Math.floor(n/26)-1:r=!0;return e+(t+1)},_convertToExcelCellRefAndTrackMaxIndex:function(t,n){return this._maxRowIndex<Number(t)&&(this._maxRowIndex=Number(t)),this._maxColumnIndex<Number(n)&&(this._maxColumnIndex=Number(n)),this._convertToExcelCellRef(t,n)},_getDataType:function(t){return Od[t]||Od.string},_tryGetExcelCellDataType:function(t){if(Z(t)){if("number"==typeof t)return isFinite(t)?Od.number:Od.string;if(Pn(t))return Od.string;if(Sa(t))return Od.number;if(Dy(t))return Od.boolean}},_formatObjectConverter:function(t,n){var e={format:t,precision:t&&t.precision,dataType:n};return Jn(t)?se(e,t,{format:t.formatter||t.type,currency:t.currency}):e},_tryConvertToExcelNumberFormat:function(t,n){var e=this._formatObjectConverter(t,n),i=e.currency;return n=e.dataType,Z(t=e.format)&&"date"===n&&(t=akt[t&&t.type||t]||t),$xe.convertFormat(t,e.precision,n,i)},_appendString:function(t){if(Z(t)&&(t=String(t)).length)return t=z7(t),void 0===this._stringHash[t]&&(this._stringHash[t]=this._stringArray.length,this._stringArray.push(t)),this._stringHash[t]},_tryGetExcelDateValue:function(t){var n;if(Sa(t))return(n=Math.floor((Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-ikt)/864e5))<60&&n--,n+(3600*t.getHours()+60*t.getMinutes()+t.getSeconds())/86400},_prepareValue:function(t,n){var o,e=this._dataProvider,{cellSourceData:i}=e.getCellData(t,n)||{},{value:r}=e.getCellData(t,n)||{},a=this._getDataType(e.getCellType(t,n));switch(a===Od.date&&!Sa(r)&&(a=Od.string),a){case Od.string:o=r,r=this._appendString(r);break;case Od.date:o=r,r=this._tryGetExcelDateValue(r),a=Od.number}return{value:r,type:a,sourceValue:o,cellSourceData:i}},_callCustomizeExcelCell:function(t){var{dataProvider:n,value:e,style:i,sourceData:r}=t,o=qxe.copyCellFormat(i),a={value:e,numberFormat:o.numberFormat,clearStyle:function(){this.horizontalAlignment=null,this.verticalAlignment=null,this.wrapTextEnabled=null,this.font=null,this.numberFormat=null}};Z(o)&&(Z(o.alignment)&&(a.horizontalAlignment=o.alignment.horizontal,a.verticalAlignment=o.alignment.vertical,a.wrapTextEnabled=o.alignment.wrapText),a.backgroundColor=o.backgroundColor,a.fillPatternType=o.fillPatternType,a.fillPatternColor=o.fillPatternColor,a.font=o.font),n.customizeExcelCell(a,r);var s=o||{};return s.font=a.font,s.alignment=s.alignment||{},s.alignment.horizontal=a.horizontalAlignment,s.alignment.vertical=a.verticalAlignment,s.alignment.wrapText=a.wrapTextEnabled,s.backgroundColor=a.backgroundColor,s.fillPatternType=a.fillPatternType,s.fillPatternColor=a.fillPatternColor,s.numberFormat=a.numberFormat,{value:a.value,style:s}},_getDataArray:function(){var t,n,e,i,l,r=[],o=this._dataProvider,a=o.getRowsCount(),s=o.getColumns();for(t=0;t<a;t++){for(e=[],l=s.length,n=0;n!==l;n++){i=this._prepareValue(t,n);var u=o.getStyleId(t,n),f=this._styleArrayIndexToCellStyleIdMap[u];if(o.hasCustomizeExcelCell&&o.hasCustomizeExcelCell()){var S=i.sourceValue||i.value,T=this._callCustomizeExcelCell({dataProvider:o,value:S,style:this._styleArray[u],sourceData:i.cellSourceData});if(T.value!==S){if(typeof T.value!=typeof S||"number"==typeof T.value&&!isFinite(T.value)){var R=this._tryGetExcelCellDataType(T.value);Z(R)&&(i.type=R)}switch(i.type){case Od.string:i.value=this._appendString(T.value);break;case Od.date:i.value=T.value;break;case Od.number:var L=T.value,z=this._tryGetExcelDateValue(L);Z(z)&&(L=z),i.value=L;break;default:i.value=T.value}}f=this._excelFile.registerCellFormat(T.style)}e.push({style:f,value:i.value,type:i.type})}!this._needSheetPr&&o.getGroupLevel(t)>0&&(this._needSheetPr=!0),r.push(e)}return r},_calculateWidth:function(t){return(!(t=parseInt(t,10))||t<5)&&(t=100),Math.min(255,Math.floor((t-5)/7*100+.5)/100)},_prepareStyleData:function(){var t=this,n=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach(function(i){t._colsArray.push(t._calculateWidth(i.width))});var e=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(e[0]),this._excelFile.registerFont(e[1]),n.forEach(function(i){var r=t._tryConvertToExcelNumberFormat(i.format,i.dataType);Z(r)||(r=0),t._styleArray.push({font:e[Number(!!i.bold)],numberFormat:r,alignment:{vertical:"top",wrapText:!!i.wrapText,horizontal:i.alignment||"left"}})}),t._styleArrayIndexToCellStyleIdMap=t._styleArray.map(i=>this._excelFile.registerCellFormat(i))},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(t){return this._getXMLTag("Relationships",[{name:"xmlns",value:DC+"/package/2006/relationships"}],t)},_createXMLRelationship:function(t,n,e){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+t},{name:"Type",value:DC+"/officeDocument/2006/relationships/"+n},{name:"Target",value:e}])},_getWorkbookContent:function(){return H1+this._getXMLTag("workbook",[{name:"xmlns:r",value:DC+"/officeDocument/2006/relationships"},{name:"xmlns",value:DC+"/spreadsheetml/2006/main"}],'<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>')},_getContentTypesContent:function(){return H1+'<Types xmlns="'+DC+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var t=this._zip.folder("xl"),n="";n+=this._excelFile.generateNumberFormatsXml(),n+=this._excelFile.generateFontsXml(),n+=this._excelFile.generateFillsXml(),n+='<borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',n+=this._excelFile.generateCellFormatsXml(),n+=this._getXMLTag("cellStyles",[{name:"count",value:1}],this._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),n=H1+this._getXMLTag("styleSheet",[{name:"xmlns",value:DC+"/spreadsheetml/2006/main"}],n),t.file(Zxe,n),this._styleArray=[]},_generateStringsXML:function(){var n,t=this._zip.folder("xl"),e=this._stringArray.length,i=H1;for(n=0;n<e;n++)this._stringArray[n]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[n]));i+=this._getXMLTag("sst",[{name:"xmlns",value:DC+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),t.file(Yxe,i),this._stringArray=[]},_getPaneXML:function(){var t=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],n=this._dataProvider.getFrozenArea();return n.x||n.y?(n.x&&t.push({name:"xSplit",value:n.x}),n.y&&t.push({name:"ySplit",value:n.y}),t.push({name:"topLeftCell",value:this._convertToExcelCellRefAndTrackMaxIndex(n.y,n.x)}),this._getXMLTag("pane",t)):""},_getAutoFilterXML:function(t){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+t+'" />':""},_generateWorksheetXML:function(){var t,n,e,i,a,r=[],o=this._cellsArray.length,s=this._colsArray.length,l="1:"+s,u=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,f=['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">'];for(f.push(this._needSheetPr?'<sheetPr><outlinePr summaryBelow="0"/></sheetPr>':"<sheetPr/>"),f.push('<dimension ref="A1:C1"/>'),f.push("<sheetViews><sheetView "),f.push(this._rtlEnabled?'rightToLeft="1" ':""),f.push('tabSelected="1" workbookViewId="0">'),f.push(this._getPaneXML()),f.push("</sheetView></sheetViews>"),f.push('<sheetFormatPr defaultRowHeight="15"'),f.push(' outlineLevelRow="'+(this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0)+'"'),f.push(' x14ac:dyDescent="0.25"/>'),t=0;t<s;t++)this._colsArray[t]=this._getXMLTag("col",[{name:"width",value:this._colsArray[t]},{name:"min",value:Number(t)+1},{name:"max",value:Number(t)+1},{name:"customWidth",value:1}]);for(f.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),n=0;n<o;n++){for(i=[],a=this._cellsArray[n].length,t=0;t<a;t++)n=Number(n),e=this._cellsArray[n][t],i.push(this._getXMLTag("c",[{name:"r",value:this._convertToExcelCellRefAndTrackMaxIndex(n,t)},{name:"s",value:e.style},{name:"t",value:e.type}],Z(e.value)?this._getXMLTag("v",[],e.value):null));r.push(this._getXMLTag("row",[{name:"r",value:Number(n)+1},{name:"spans",value:l},{name:"outlineLevel",value:n>=u?this._dataProvider.getGroupLevel(n):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[n]=null,r.length>1e4&&(f.push(r.join("")),r=[])}f.push(r.join(""));var S=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex);f.push("</sheetData>"+this._getAutoFilterXML(S)+this._generateMergingXML()+"</worksheet>"),this._zip.folder("xl").folder("worksheets").file(Xxe,f.join("")),this._colsArray=[],this._cellsArray=[]},_generateMergingXML:function(){var t,n,e,i,l,r=Z(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),o=this._dataProvider.getColumns().length,a=[],s=[],u="";for(i=0;i<r;i++)for(e=0;e!==o;e++)if(!Z(a[i])||!Z(a[i][e])){var f=this._dataProvider.getCellMerging(i,e);if(f.colspan||f.rowspan)for(s.push({start:this._convertToExcelCellRefAndTrackMaxIndex(i,e),end:this._convertToExcelCellRefAndTrackMaxIndex(i+(f.rowspan||0),e+(f.colspan||0))}),t=i;t<=i+f.rowspan;t++)for(n=e;n<=e+f.colspan;n++)Z(a[t])||(a[t]=[]),a[t][n]=!0}var S=s.length;for(l=0;l<S;l++)u+=this._getXMLTag("mergeCell",[{name:"ref",value:s[l].start+":"+s[l].end}]);return u.length?this._getXMLTag("mergeCells",[{name:"count",value:S}],u):""},_generateCommonXML:function(){var t=H1+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+gK)),n=this._zip.folder("xl"),e=H1;this._zip.folder("_"+pK).file("."+pK,t);var i=this._createXMLRelationship(1,"worksheet","worksheets/"+Xxe)+this._createXMLRelationship(2,"styles",Zxe)+this._createXMLRelationship(3,"sharedStrings",Yxe);e+=this._createXMLRelationships(i),n.folder("_"+pK).file(gK+".rels",e),n.file(gK,this._getWorkbookContent()),this._zip.file("[Content_Types].xml",this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(t,n){this._rtlEnabled=n&&!!n.rtlEnabled,this._options=n,this._maxRowIndex=0,this._maxColumnIndex=0,this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._needSheetPr=!1,this._dataProvider=t,this._excelFile=new qxe,this._zip=Z(_I.JSZip)?new _I.JSZip:null},_checkZipState:function(){if(!this._zip)throw Di.Error("E1041","JSZip")},ready:function(){return this._dataProvider.ready()},getData:function(t){var n={type:t?"blob":"base64",compression:"DEFLATE",mimeType:Wxe.EXCEL},e=new et;return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(n).then(e.resolve):e.resolve(this._zip.generate(n)),e}});_I.JSZip=cK();var _K,EC=Fn(),W_=Math,fK=W_.PI,lkt=W_.min,ukt=W_.abs,Jxe=W_.sqrt,qB=W_.pow,mK=W_.atan2,dkt=W_.cos,ckt=W_.sin,Jr=Number;function ewe(t,n,e,i,r,o,a,s){var l=(t+e)/2,u=(n+i)/2,f=mK(n-i,t-e),S=o?1:-1;f+=fK/180*90*(a?1:-1);var T=Jxe(qB(e-t,2)+qB(i-n,2))/2,R=Jxe(ukt(qB(r,2)-qB(T,2))),L=l+S*(R*dkt(f)),z=u+S*(R*ckt(f)),j=mK(n-z,t-L),Y=mK(i-z,e-L);s.arc(L,z,r,j,Y,!a)}function YB(t,n){var o,e=_K(t.attributes||{}),i=se({},e,{text:t.textContent.replace(/\s+/g," "),textAlign:"middle"===e["text-anchor"]?"center":e["text-anchor"]}),r=e.transform;return r&&((o=r.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(o=o[0].match(/-*\d+([.]\d+)*/g),i.translateX=Jr(o[0]),i.translateY=o[1]?Jr(o[1]):0),(o=r.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/))&&(o=o[0].match(/-*\d+([.]\d+)*/g),i.rotationAngle=Jr(o[0]),i.rotationX=o[1]&&Jr(o[1]),i.rotationY=o[2]&&Jr(o[2])),(o=r.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(o=o[0].match(/-*\d+([.]\d+)*/g),i.scaleX=Jr(o[0]),i.scaleY=o.length>1?Jr(o[1]):i.scaleX)),function Ckt(t,n,e){var r,i=t.style||{};for(r in i)""!==i[r]&&(n[dd(r)]=i[r]);e&&It.isElementNode(t)&&(i=EC.getComputedStyle(t),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach(function(o){o in i&&""!==i[o]&&(n[dd(o)]=i[o])}),["opacity","fill-opacity","stroke-opacity"].forEach(function(o){o in i&&""!==i[o]&&"1"!==i[o]&&(n[o]=Jr(i[o]))})),n.textDecoration=n.textDecoration||n.textDecorationLine,n.globalAlpha=Z(n.opacity)?n.opacity:n.globalAlpha}(t,i,n),i}function ZB(t){var n=t&&t.match(/url\(.*#(.*?)["']?\)/i);return n&&n[1]}function twe(t,n){var e=[];n.fontSize=n.fontSize||"10px",n.fontFamily=n.fontFamily||"sans-serif",n.fill=n.fill||"#000",n.fontStyle&&e.push(n.fontStyle),n.fontWeight&&e.push(n.fontWeight),e.push(n.fontSize),e.push(n.fontFamily),t.font=e.join(" "),t.textAlign=n.textAlign,t.fillStyle=n.fill,t.globalAlpha=n.globalAlpha}function Skt(t){for(var n=t.childNodes,e=0;e<n.length;e++)if("tspan"===n[e].tagName)return!0;return!1}function vK(t,n,e,i){for(var o,r=[],a=0,s=0;s<t.length;s++){var l=t[s];if(void 0===l.tagName)yK(l,n,e,i);else if("tspan"===l.tagName||"text"===l.tagName){var u=YB(l,i.rootAppended),f=se({},e,u);if("tspan"===l.tagName&&Skt(l)){vK(l.childNodes,n,f,i);continue}f.textAlign="start",(!o||void 0!==u.x)&&r.push(o={elements:[],options:[],widths:[],offsets:[]}),void 0!==u.y&&(a=0),void 0!==u.dy&&(a+=parseFloat(u.dy)),o.elements.push(l),o.options.push(f),o.offsets.push(a),twe(n,f),o.widths.push(n.measureText(f.text).width)}}r.forEach(function(S){var T=S.widths.reduce(function(z,j){return z+j},0),R=0,L=0;"center"===e.textAlign&&(R=T/2),"end"===e.textAlign&&(R=T),S.options.forEach(function(z,j){var Y=S.widths[j];z.x=z.x-R+L,z.y+=S.offsets[j],L+=Y}),S.elements.forEach(function(z,j){vK(z.childNodes,n,S.options[j],i)})})}function yK(t,n,e,i){var r=t.tagName,o="text"===r||"tspan"===r||void 0===r,a="image"===r,s=se({},e,YB(t,i.rootAppended));if("hidden"!==s.visibility&&!s[Kj]){var l;switch(n.save(),!a&&CK(n,s),bK(n,s,i),function wkt(t){t.strokeOpacity=void 0!==t["stroke-opacity"]?t["stroke-opacity"]:1,t.fillOpacity=void 0!==t["fill-opacity"]?t["fill-opacity"]:1,void 0!==t.opacity&&(t.strokeOpacity*=t.opacity,t.fillOpacity*=t.opacity)}(s),n.beginPath(),t.tagName){case void 0:!function bkt(t,n,e){twe(t,n),nwe(t,n,e),n.text&&t.fillText(n.text,n.x||0,n.y||0),xK(t,n,!0),function xkt(t,n,e){if(n.textDecoration&&"none"!==n.textDecoration){var i=n.x,r=t.measureText(n.text).width,o=parseInt(n.fontSize,10),a=.05*o<1?1:.05*o,s=n.y;switch(n.textDecoration){case"line-through":s-=o/3+a/2;break;case"overline":s-=o-a;break;case"underline":s+=a}t.rect(i,s,r,a),rwe(t,n,e),xK(t,n)}}(t,n,e)}(n,s,i);break;case"text":case"tspan":vK(t.childNodes,n,s,i);break;case"image":l=function vkt(t,n,e){var i=new et,r=new EC.Image;return r.onload=function(){t.save(),t.globalAlpha=n.globalAlpha,CK(t,n),bK(t,n,e),t.drawImage(r,n.x||0,n.y||0,n.width,n.height),t.restore(),i.resolve()},r.onerror=function(){i.resolve()},r.setAttribute("crossOrigin","anonymous"),r.src=n.href||n["xlink:href"],i}(n,s,i);break;case"path":!function ykt(t,n){var r,o,a,e=n.replace(/,/g," ").split(/([A-Z])/i).filter(l=>""!==l.trim()),i=0;do{switch(r=(e[i+1]||"").trim().split(" "),e[i]){case"M":t.moveTo(Jr(r[0]),Jr(r[1])),i+=2;break;case"L":for(var s=0;s<r.length/2;s++)t.lineTo(Jr(r[2*s]),Jr(r[2*s+1]));i+=2;break;case"C":t.bezierCurveTo(Jr(r[0]),Jr(r[1]),Jr(r[2]),Jr(r[3]),Jr(r[4]),Jr(r[5])),i+=2;break;case"a":o=e[i-1].trim().split(" "),ewe(Jr(o[(a=o.length-1)-1]),Jr(o[a]),Jr(o[a-1])+Jr(r[5]),Jr(o[a])+Jr(r[6]),Jr(r[0]),Jr(r[3]),Jr(r[4]),t),i+=2;break;case"A":o=e[i-1].trim().split(" "),ewe(Jr(o[(a=o.length-1)-1]),Jr(o[a]),Jr(r[5]),Jr(r[6]),Jr(r[0]),Jr(r[3]),Jr(r[4]),t),i+=2;break;case"Z":t.closePath(),i+=1;break;default:i++}}while(i<e.length)}(n,s.d);break;case"rect":(function _kt(t,n){var e=n.x,i=n.y,r=n.width,o=n.height,a=n.rx;a?(a=lkt(a,r/2,o/2),t.save(),t.translate(e,i),t.moveTo(r/2,0),t.arcTo(r,0,r,o,a),t.arcTo(r,o,0,o,a),t.arcTo(0,o,0,0,a),t.arcTo(0,0,a,0,a),t.lineTo(r/2,0),t.restore()):t.rect(e,i,r,o)})(n,s),n.closePath();break;case"circle":n.arc(s.cx,s.cy,s.r,0,2*fK,1)}return o||(nwe(n,s,i),rwe(n,s,i),xK(n,s)),function Dkt(t,n,e,i){var{gradients:r}=e;if(0!==r.length){var o=ZB(n.fill);if(o&&r[o]){var a=i.getBBox(),s=t.createLinearGradient(a.x,0,a.x+a.width,0);r[o].forEach(l=>{var u=parseInt(l.offset.replace(/%/,""));s.addColorStop(u/100,l.stopColor)}),t.globalAlpha=n.opacity,t.fillStyle=s,t.fill()}}}(n,s,i,t),n.restore(),l}}function nwe(t,n,e){var i,r=ZB(n.filter);r&&((i=e.filters[r])||(i={offsetX:0,offsetY:0,blur:0,color:"#000"}),t.shadowOffsetX=i.offsetX,t.shadowOffsetY=i.offsetY,t.shadowColor=i.color,t.shadowBlur=i.blur)}function CK(t,n){t.translate(n.translateX||0,n.translateY||0),n.translateX=void 0,n.translateY=void 0,n.rotationAngle&&(t.translate(n.rotationX||0,n.rotationY||0),t.rotate(n.rotationAngle*fK/180),t.translate(-(n.rotationX||0),-(n.rotationY||0)),n.rotationAngle=void 0,n.rotationX=void 0,n.rotationY=void 0),isFinite(n.scaleX)&&(t.scale(n.scaleX,n.scaleY),n.scaleX=void 0,n.scaleY=void 0)}function bK(t,n,e){n["clip-path"]&&(yK(e.clipPaths[ZB(n["clip-path"])],t,{},e),t.clip(),n["clip-path"]=void 0)}function iwe(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new et,i=0;i<t.length;i++){var r=n(t[i]);if(dh(r)){r.then(()=>{iwe(Array.prototype.slice.call(t,i+1),n,e)});break}}return i===t.length&&e.resolve(),e}function XB(t,n,e,i){return iwe(t,function(r){switch(r.tagName&&r.tagName.toLowerCase()){case"g":case"svg":var o=se({},e,YB(r,i.rootAppended));n.save(),CK(n,o),bK(n,o,i);var a=()=>{n.restore()},s=XB(r.childNodes,n,o,i);return dh(s)?s.then(a):a(),s;case"defs":return XB(r.childNodes,n,{},i);case"clippath":i.clipPaths[r.attributes.id.textContent]=r.childNodes[0];break;case"pattern":i.patterns[r.attributes.id.textContent]=r;break;case"filter":i.filters[r.id]=function Tkt(t){var i={};return we(t.childNodes,function(r,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":i.blur=Jr(a.stdDeviation.value);break;case"offsetResult":i.offsetX=Jr(a.dx.value),i.offsetY=Jr(a.dy.value);break;case"floodResult":i.color=function Ekt(t,n){var e=new Ka(t);return"rgba("+e.r+","+e.g+","+e.b+","+n+")"}(a["flood-color"]?a["flood-color"].value:"#000",a["flood-opacity"]?a["flood-opacity"].value:1)}}),i}(r);break;case"lineargradient":i.gradients[r.attributes.id.textContent]=function Okt(t){var n=[];return we(t.childNodes,(e,i)=>{var{attributes:r}=i;n.push({offset:r.offset.value,stopColor:r["stop-color"].value})}),n}(r);break;default:return yK(r,n,e,i)}})}function xK(t,n,e){var i=n.stroke;i&&"none"!==i&&0!==n["stroke-width"]&&(function Ikt(t,n){var e=n["stroke-dasharray"]&&n["stroke-dasharray"].match(/(\d+)/g);e&&e.length&&(e=Dr(e,function(i){return Jr(i)}),t.setLineDash(e))}(t,n),t.lineJoin=n["stroke-linejoin"],t.lineWidth=n["stroke-width"],t.globalAlpha=n.strokeOpacity,t.strokeStyle=i,e?t.strokeText(n.text,n.x,n.y):t.stroke(),t.globalAlpha=1)}function rwe(t,n,e){var i=n.fill;if(i&&"none"!==i){if(-1===i.search(/url/))t.fillStyle=i;else{var r=e.patterns[ZB(i)];if(!r)return;t.fillStyle=function kkt(t,n,e){var i=YB(n,e.rootAppended),r=OC._createCanvas(i.width,i.height,0),o=r.getContext("2d");return XB(n.childNodes,o,i,e),t.createPattern(r,"repeat")}(t,r,e)}t.globalAlpha=n.fillOpacity,t.fill(),t.globalAlpha=1}}function Fkt(t,n,e){return XB(t.childNodes,n.getContext("2d"),{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:e})}_K=function(t){var e,n={};return we(t,function(i,r){e=r.textContent,isFinite(e)&&(e=Jr(e)),n[r.name.toLowerCase()]=e}),n};var OC={getImageData:function(t,n){var e="image/"+n.format;return Yt(n.__parseAttributesFn)&&(_K=n.__parseAttributesFn),function Pkt(t,n){var{width:e,height:i,backgroundColor:r,margin:o,svgToCanvas:a=Fkt}=n,s=owe(e,i),l=OC._createCanvas(s.width,s.height,o),u=l.getContext("2d");u.setTransform(s.pixelRatio,0,0,s.pixelRatio,0,0);var S,f=$be(t),T=It.isElementNode(t);return u.translate(o,o),It.getBody().appendChild(l),T||(S=function Akt(){var t=It.createElement("div");return t.style.left="-9999px",t.style.position="absolute",t}(),S.appendChild(f),It.getBody().appendChild(S)),f.attributes.direction&&(l.dir=f.attributes.direction.textContent),function Mkt(t,n,e,i,r){t.fillStyle=i||"#ffffff",t.fillRect(-r,-r,n+2*r,e+2*r)}(u,e,i,r,o),ra(a(f,l,T&&Cg(It.getBody(),t))).then(()=>l).always(()=>{S&&It.getBody().removeChild(S),It.getBody().removeChild(l)})}(t,n).then(i=>function mkt(t,n){var e=t.toDataURL(n,1);return EC.atob(e.substring(("data:"+n+";base64,").length))}(i,e))},getData:function(t,n){var e=this;return OC.getImageData(t,n).then(i=>{var r="image/"+n.format;return Yt(EC.Blob)&&!n.useBase64?e._getBlob(i,r):e._getBase64(i)})},_getBlob:function(t,n){var e,i=new Uint8Array(t.length);for(e=0;e<t.length;e++)i[e]=t.charCodeAt(e);return new EC.Blob([i.buffer],{type:n})},_getBase64:function(t){return EC.btoa(t)},_createCanvas(t,n,e){var i=U("<canvas>")[0];return i.width=t+2*e,i.height=n+2*e,i.hidden=!0,i}};function owe(t,n){var e=EC.devicePixelRatio||1;return{pixelRatio:e,width:t*e,height:n*e}}var JB=Fn(),awe={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(t,n){mh.sendRequest({url:t,method:"GET",responseType:"arraybuffer"}).done(n).fail(function(){n(!1)})},_loadImages:function(){var t=this;we(t._imageArray,function(n){var e=new et;t._imageDeferreds.push(e),t._getBinaryFile(n,function(i){if(!i)return delete t._imageArray[n],void e.resolve();var r,o="",a=new Uint8Array(i),s=a.byteLength;for(r=0;r<s;r++)o+=String.fromCharCode(a[r]);t._imageArray[n]="data:image/png;base64,"+JB.btoa(o),e.resolve()})})},_parseImages:function(t){var n,e=this;"image"===t.tagName&&(n=U(t).attr("href")||U(t).attr("xlink:href"),e._imageArray[n]||(e._imageArray[n]="")),we(t.childNodes,function(i,r){e._parseImages(r)})},_prepareImages:function(t){return this._parseImages(t),this._loadImages(),Qt.apply(U,this._imageDeferreds)},getData:function(t,n){var e,i=this,r=$be(t),o=U(r);return o.find("[".concat(Kj,"]")).remove(),e='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'+Kbe(o.get(0),n.backgroundColor),i._prepareImages(r).then(()=>(we(i._imageArray,function(a,s){var l="href=['|\"]".concat(a,"['|\"]");e=e.replace(new RegExp(l,"gi"),'href="'.concat(s,'"'))}),Yt(JB.Blob)?i._getBlob(e):i._getBase64(e)))},_getBlob:function(t){return new JB.Blob([t],{type:"image/svg+xml"})},_getBase64:function(t){return JB.btoa(t)}},wK=Fn(),SK=function t(n,e){return n.length<e?t("0"+n,e):n};function QB(t,n,e){if(!t)return(new et).resolve();var i=n.exportingAction,r=n.exportedAction,o=n.fileSavingAction,a={fileName:n.fileName,format:n.format,cancel:!1};return Dy(n.selectedRowsOnly)&&(a.selectedRowsOnly=n.selectedRowsOnly),Yt(i)&&i(a),a.cancel?(new et).resolve():e(t,n).then(s=>{Yt(r)&&r(),Yt(o)&&(a.data=s,o(a)),a.cancel||NB.saveAs(a.fileName,"xlsx"===n.format?"EXCEL":n.format,s)})}var swe_getData=function skt(t,n){var e=new _I(t,n);return e._checkZipState(),e.ready().then(()=>e.getData(Yt(Fn().Blob)))},lwe={creator:OC,getData:function Rkt(t,n){return OC.getData(t,n)},testFormats:function Lkt(t){var n=OC._createCanvas(100,100,0);return t.reduce(function(e,i){var r=("image/"+i).toLowerCase();return-1!==n.toDataURL(r).indexOf(r)?e.supported.push(i):e.unsupported.push(i),e},{supported:[],unsupported:[]})}},Xkt={getData:function Zkt(t,n){return OC.getImageData(t,se({},n,{format:"JPEG"})).then(e=>{var i=function(t,n,e){var i=2*(n.margin||0),{width:r,height:o}=owe(n.width,n.height);o+=i;var a=(.75*(r+=i)).toFixed(2),s=(.75*o).toFixed(2),l="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n".replace("_width_",a).replace("_height_",s),u="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n".replace("_width_",a).replace("_height_",s),f="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n".replace("_date_",e).replace("_version_",U7),S="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n".replace("_width_",r).replace("_height_",o).replace("_length_",t.length)+t+"\r\nendstream\r\nendobj\r\n",T=function Kkt(t,n,e){return"xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n".replace("_main_",SK(t+"",10)).replace("_info_",SK(t+n+"",10)).replace("_image_",SK(t+n+e+"",10))}(l.length,u.length,f.length),R=l+u+f+S;return R+T+"trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF".replace("_length_",R.length)}(e,n,new Date),r=Yt(wK.Blob)?function(t){for(var n=0,e=new Uint8Array(t.length);n<t.length;n++)e[n]=t.charCodeAt(n);return new wK.Blob([e.buffer],{type:"application/pdf"})}(i):function(t){return wK.btoa(t)}(i);return r})}},Jkt={creator:awe,getData:function Bkt(t,n){return awe.getData(t,n)}},Qkt=[qn.down,qn.move].join(" "),eMt=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],nMt=["PNG","JPEG","GIF"],iMt=["PDF","SVG"],e4="dx-export-menu",gwe="export-element-type",fwe="export-element-format";function mwe(){var t=lwe.testFormats(nMt);return{unsupported:t.unsupported,supported:t.supported.concat(iMt)}}function EK(t,n,e){if(e=e||mwe(),t=String(t).toUpperCase(),-1!==e.supported.indexOf(t))return t;-1!==e.unsupported.indexOf(t)&&n&&n("W2108",[t])}function OK(t){return"SVG"===t?Jkt.getData:"PDF"===t?Xkt.getData:lwe.getData}function _we(t,n,e){var i={},r=e.type,o=e.format,a=function uMt(t,n,e){var r=40+30*e,o={rect:{width:118,height:30,x:-84,y:r},text:{x:(t.rtl?105:15)-85,y:r+30-8}};return"printing"===n&&(o.separator={stroke:t.button.default.borderColor,"stroke-width":1,cursor:"pointer",sharp:"v",d:"M -85 "+(r+30-1)+" L 35 "+(r+30-1)}),o}(n,r,e.itemIndex),s=_a(n.font);s["pointer-events"]="none";var l=t.g().attr({class:e4+"-list-item"});i[gwe]=r,o&&(i[fwe]=o);var u=t.rect();u.attr(a.rect).css({cursor:"pointer","pointer-events":"all"}).data(i),u.on(G2+".export",()=>u.attr({fill:n.button.hover.backgroundColor})).on(xT+".export",()=>u.attr({fill:null})),u.append(l);var f=t.text(e.text).css(s).attr(a.text).append(l);return"printing"===r&&t.path(null,"line").attr(a.separator).append(l),{g:l,rect:u,resetState:()=>u.attr({fill:null}),fixPosition:()=>{var S=f.getBBox();f.move(a.text.x-S.x-(n.rtl?S.width:0))}}}var ywe=function(t){var n=this._renderer=t.renderer;this._incidentOccurred=t.incidentOccurred,this._exportTo=t.exportTo,this._print=t.print,this._shadow=n.shadowFilter("-50%","-50%","200%","200%",2,6,3),this._shadow.attr({opacity:.8}),this._group=n.g().attr({class:e4,[Kj]:!0}).linkOn(n.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=n.g().attr({class:e4+"-button"}).append(this._group),this._listGroup=n.g().attr({class:e4+"-list"}).append(this._group),this._overlay=n.rect(-85,39,120,0),this._overlay.attr({"stroke-width":1,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=mwe(),this._subscribeEvents()};function Cwe(t,n,e,i){(i||n.format)&&(i=EK(i||n.format,t._incidentOccurred));var{width:r,height:o}=t.getSize();return{format:i||"PNG",fileName:e||n.fileName||"file",backgroundColor:n.backgroundColor,width:r,height:o,margin:n.margin,svgToCanvas:n.svgToCanvas,exportingAction:t._createActionByOption("onExporting",{excludeValidators:["disabled"]}),exportedAction:t._createActionByOption("onExported",{excludeValidators:["disabled"]}),fileSavingAction:t._createActionByOption("onFileSaving",{excludeValidators:["disabled"]})}}se(ywe.prototype,{getLayoutOptions(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var t=this._buttonGroup.getBBox();return t.cutSide="vertical",t.cutLayoutSide="top",t.height+=10,t.position={vertical:"top",horizontal:"right"},t.verticalAlignment="top",t.horizontalAlignment="right",t},shift(t,n){this._group.attr({translateY:this._group.attr("translateY")+n})},draw(t,n,e){this._group.move(t-35-2-3+e.left,Math.floor(n/2-17.5));var i=this.getLayoutOptions();return(i.width>t||i.height>n)&&this.freeSpace(),this},show(){this._group.linkAppend()},hide(){this._group.linkRemove()},setOptions(t){this._options=t,t.formats=t.formats?t.formats.reduce((n,e)=>((e=EK(e,this._incidentOccurred,this.validFormats))&&n.push(e),n),[]):this.validFormats.supported.slice(),t.printingEnabled=void 0===t.printingEnabled||t.printingEnabled,t.enabled&&(t.formats.length||t.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure(){this._fillSpace();var t=this._options.button.margin;return[35+t.left+t.right,35+t.top+t.bottom]},move(t){var n=this._options.button.margin;this._group.attr({translateX:Math.round(t[0])+n.left,translateY:Math.round(t[1])+n.top})},_fillSpace(){this._hiddenDueToLayout=!1,this.show()},freeSpace(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach(t=>t.resetState())},_showList(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(t=>t.fixPosition())},_setButtonState(t){var n=this._options.button[t];this._button.attr({stroke:n.borderColor,fill:n.backgroundColor}),this._icon.attr({fill:n.color})},_subscribeEvents(){this._renderer.root.on(qn.up+".export",t=>{var n=t.target[gwe];n?"button"===n?this._listShown?(this._setButtonState("default"),this._hideList()):(this._setButtonState("focus"),this._showList()):"printing"===n?(this._print(),this._hideList()):"exporting"===n&&(this._exportTo(t.target[fwe]),this._hideList()):this._button&&this._hideList()}),this._listGroup.on(Qkt,t=>t.stopPropagation()),this._buttonGroup.on(qn.enter,()=>this._setButtonState("hover")),this._buttonGroup.on(qn.leave,()=>this._setButtonState(this._listShown?"focus":"default")),this._buttonGroup.on(qn.down+".export",()=>this._setButtonState("active"))},_unsubscribeEvents(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton(){var t=this._renderer,n=this._options,e={"export-element-type":"button"};this._button||(this._button=t.rect(0,0,35,35).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:n.button.default.backgroundColor,stroke:n.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(e),this._icon=t.path(eMt).append(this._buttonGroup),this._icon.attr({fill:n.button.default.color,cursor:"pointer"}),this._icon.data(e),this._buttonGroup.setTitle(ye.format("vizExport-titleMenuText")))},_updateList(){var t=this._options,n=t.button.default,e=this._listGroup,i=function dMt(t,n){var e=[];return n.printingEnabled&&e.push(_we(t,n,{type:"printing",text:ye.format("vizExport-printingButtonText"),itemIndex:e.length})),n.formats.reduce((i,r)=>(i.push(_we(t,n,{type:"exporting",text:ye.getFormatter("vizExport-exportButtonText")(r),format:r,itemIndex:i.length})),i),e)}(this._renderer,t);this._shadow.attr({color:t.shadowColor}),this._overlay.attr({height:30*i.length+2,fill:n.backgroundColor,stroke:n.borderColor}),e.clear(),this._overlay.append(e),i.forEach(r=>r.g.append(e)),this._menuItems=i}});var j_={name:"export",init(){this._exportMenu=new ywe({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:()=>this.print(),exportTo:t=>this.exportTo(void 0,t)}),this._layout.add(this._exportMenu)},dispose(){this._exportMenu.dispose()},members:{_getExportMenuOptions(){return se({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents(){var t=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),t},exportTo(t,n){var e=this._exportMenu,i=Cwe(this,this._getOption("export")||{},t,n);e&&e.hide();var r=this._disablePointerEvents(),o=QB(this._renderer.root.element,i,OK(i.format)).fail(Ey.error).always(()=>{this._renderer.root.attr({"pointer-events":r})});return e&&e.show(),o},print(){var t=this._exportMenu,n=Cwe(this,this._getOption("export")||{});n.exportingAction=null,n.exportedAction=null,n.margin=0,n.format="PNG",n.useBase64=!0,n.fileSavingAction=r=>{(function aMt(t,n){var e=Fn().document,i=e.createElement("iframe");i.onload=function lMt(t,n){return function(){var e=this.contentWindow,i=e.document.createElement("img");e.document.body.appendChild(i);var r=function sMt(t){t.style.width="21cm";var n=wn(t);return t.style.width="",n}(e.document.body)/n.width;r<1&&(e.document.body.style.transform="scale(".concat(r,")"),e.document.body.style["transform-origin"]="0 0");var o=()=>{this.parentElement.removeChild(this)};i.addEventListener("load",()=>{e.focus(),e.print()}),i.addEventListener("error",o),e.addEventListener("afterprint",()=>{setTimeout(o,0)}),i.src=t}}(t,n),i.style.position="fixed",i.style.width="0",i.style.height="0",i.style.right="0",i.style.bottom="0",e.body.appendChild(i)})("data:image/png;base64,".concat(r.data),{width:n.width,__test:n.__test}),r.cancel=!0};var e=this._disablePointerEvents();t&&t.hide();var i=QB(this._renderer.root.element,n,OK(n.format)).fail(Ey.error).always(()=>{this._renderer.root.attr({"pointer-events":e})});return t&&t.show(),i}},customize(t){var n=t.prototype;t.addChange({code:"EXPORT",handler(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),n._optionChangesMap.onExporting="EXPORT",n._optionChangesMap.onExported="EXPORT",n._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]},t4=Math.round,pMt={horizontal:0,vertical:0},n4={center:.5,right:1,bottom:1,left:0,top:0};function vI(t){this._options=t}function yI(t,n){this._renderElement=t,this._cacheBBox=n}vI.prototype={constructor:vI,position:function(t){var n=t.of.getLayoutOptions(),e=this.getLayoutOptions(),i=t.at,r=t.my,o=t.offset||pMt,a=-n4[r.horizontal]*e.width+n.x+n4[i.horizontal]*n.width+parseInt(o.horizontal),s=-n4[r.vertical]*e.height+n.y+n4[i.vertical]*n.height+parseInt(o.vertical);this.shift(t4(a),t4(s))},getLayoutOptions:Be};var TK=yI.prototype=sg(vI.prototype);TK.constructor=yI,TK.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},TK.shift=function(t,n){var e=this.getLayoutOptions();this._renderElement.move(t4(t-e.x),t4(n-e.y))};var W1=Number,gMt=b1(["left","center","right"]),fMt=b1(["top","bottom"]);function IK(t){return!!(t&&String(t).length>0)}function bwe(t,n,e,i,r){t.attr({text:n}).setMaxSize(e,r,i).textChanged&&t.setTitle(n)}function i4(t){return t>=0?W1(t):10}var kK=function(t){this._params=t,this._group=t.renderer.g().attr({class:t.cssClass}).linkOn(t.root||t.renderer.root,"title"),this._hasText=!1};se(kK.prototype,vI.prototype,{dispose:function(){this._group.linkRemove(),this._group.linkOff(),this._titleElement&&(this._clipRect.dispose(),this._titleElement=this._subtitleElement=this._clipRect=null),this._params=this._group=this._options=null},_updateOptions:function(t){this._options=t,this._options.horizontalAlignment=gMt(t.horizontalAlignment,"center"),this._options.verticalAlignment=fMt(t.verticalAlignment,"top"),this._options.margin=function _Mt(t){return t>=0?{left:W1(t),top:W1(t),right:W1(t),bottom:W1(t)}:{left:i4((t=t||{}).left),top:i4(t.top),right:i4(t.right),bottom:i4(t.bottom)}}(t.margin)},_updateStructure:function(){var t=this._params.renderer,n=this._group,e=this._options,i=e.horizontalAlignment;this._titleElement||(this._titleElement=t.text().append(n),this._subtitleElement=t.text(),this._clipRect=t.clipRect(),n.attr({"clip-path":this._clipRect.id})),this._titleElement.attr({align:i,class:e.cssClass}),this._subtitleElement.attr({align:i,class:e.subtitle.cssClass}),n.linkAppend(),IK(e.subtitle.text)?this._subtitleElement.append(n):this._subtitleElement.remove()},_updateTexts:function(){var r,t=this._options,n=t.subtitle,e=this._titleElement,i=this._subtitleElement;e.attr({text:"A",y:0}).css(_a(t.font)),r=e.getBBox(),this._baseLineCorrection=r.height+r.y,e.attr({text:t.text}),r=e.getBBox(),e.attr({y:-r.y}),IK(n.text)&&i.attr({text:n.text,y:0}).css(_a(n.font))},_shiftSubtitle(){var t=this._titleElement.getBBox(),n=this._subtitleElement,e=this._options.subtitle.offset;n.move(0,t.y+t.height-n.getBBox().y-e)},_updateBoundingRectAlignment:function(){var t=this._boundingRect,n=this._options;t.verticalAlignment=n.verticalAlignment,t.horizontalAlignment=n.horizontalAlignment,t.cutLayoutSide=n.verticalAlignment,t.cutSide="vertical",t.position={horizontal:n.horizontalAlignment,vertical:n.verticalAlignment}},hasText:function(){return this._hasText},update:function(t,n){var e=se(!0,{},t,function yMt(t){var n=Pn(t)?{text:t}:t||{};return n.subtitle=Pn(n.subtitle)?{text:n.subtitle}:n.subtitle||{},n}(n)),i=IK(e.text),r=i||i!==this._hasText;return this._baseLineCorrection=0,this._updateOptions(e),this._boundingRect={},i?(this._updateStructure(),this._updateTexts()):this._group.linkRemove(),this._updateBoundingRect(),this._updateBoundingRectAlignment(),this._hasText=i,r},draw:function(t,n){return this._hasText&&(this._group.linkAppend(),this._correctTitleLength(t),this._group.getBBox().height>n&&this.freeSpace()),this},_correctTitleLength:function(t){var n=this._options,e=n.margin,i=t-e.left-e.right,r=n.placeholderSize;bwe(this._titleElement,n.text,i,n,r),this._subtitleElement&&(W1(r)>0&&(r-=this._titleElement.getBBox().height),bwe(this._subtitleElement,n.subtitle.text,i,n.subtitle,r),this._shiftSubtitle()),this._updateBoundingRect();var{x:o,y:a,height:s}=this.getCorrectedLayoutOptions();this._clipRect.attr({x:o,y:a,width:t,height:s})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(t,n){var e=this.getLayoutOptions();return this._group.move(t-e.x,n-e.y),this},_updateBoundingRect:function(){var t=this._options,n=t.margin,e=this._boundingRect,i=this._hasText?this._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0};i.isEmpty||(i.height+=n.top+n.bottom-this._baseLineCorrection,i.width+=n.left+n.right,i.x-=n.left,i.y+=this._baseLineCorrection-n.top),t.placeholderSize>0&&(i.height=t.placeholderSize),e.height=i.height,e.width=i.width,e.x=i.x,e.y=i.y},getCorrectedLayoutOptions(){var t=this.getLayoutOptions(),n=this._baseLineCorrection;return se({},t,{y:t.y-n,height:t.height+n})},layoutOptions:function(){return this._hasText?{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}:null},measure:function(t){return this.draw(t[0],t[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(t,n){!function vMt(t,n){return t[2]-t[0]<n.width||t[3]-t[1]<n.height}(t,this._boundingRect)?this.shift(Math.round(t[0]),Math.round(t[1])):this.shift(n[0],n[1])},freeSpace:function(){this._params.incidentOccurred("W2103"),this._group.linkRemove(),this._boundingRect.width=this._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(t){this._group.linkRemove(),this._group.linkOn(t,"title")}});var TC={name:"title",init:function(){this._title=new kK({renderer:this._renderer,cssClass:this._rootClassPrefix+"-title",incidentOccurred:this._incidentOccurred}),this._layout.add(this._title)},dispose:function(){this._title.dispose(),this._title=null},customize:function(t){t.addChange({code:"TITLE",handler:function(){this._title.update(this._themeManager.theme("title"),this.option("title"))&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})},fontFields:["title.font","title.subtitle.font"]},CMt=["x","y","canvas","offsetX","offsetY","offset"],IC=Math,Um=IC.round,Wm=IC.max,xwe=IC.min,Vu=IC.sin,Hu=IC.cos,CI=IC.asin,r4=IC.PI,Ah=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.join("")};function Ws(t,n,e){return"a ".concat(t," ").concat(t," 0 0 1 ").concat(n*t," ").concat(e*t)}function bI(t,n,e){return"A ".concat(t," ").concat(t," 0 0 1 ").concat(n," ").concat(e)}function bMt(t,n,e,i,r){return(t-i)*Um(Hu(e))+(n-r)*Um(Vu(e))+i}function xMt(t,n,e,i,r){return-(t-i)*Um(Vu(e))+(n-r)*Um(Hu(e))+r}function wMt(t,n){return n%90==0&&n%180!=0?{width:t.height,height:t.width}:t}function wwe(t,n,e,i,r){var{width:o,height:a}=t,s=o/2,l=a/2,u=Math.ceil(n+s),f=Math.floor(n-s),S=Math.floor(e-l),T=Math.ceil(e+l);return i<f&&r<S||i>=f&&i<=u&&r<S?270:i>u&&r>T||i>=f&&i<=u&&r>T?90:i<f&&r>T||i<f&&r>=S&&r<=T?180:0}function SMt(t,n,e,i,r,o,a){var at,{width:s,height:l}=t,{arrowWidth:u,cornerRadius:f=0}=o,S=u/2,T=s/2,R=l/2,L=Math.ceil(n+T),z=Math.floor(n-T),j=Math.floor(e-R),Y=Math.ceil(e+R),ie=[z,j],te=[L,j],re=[L,Y],he=[z,Y],fe=i<=z?z:L<=i?L:i,Te=r<=j?j:Y<=r?Y:r,Re=xwe(Te+S,Y),He=Wm(Te-S,j),Ze=Wm(fe-S,z);if(f=Math.min(s/2,l/2,f),ie[1]+=f,te[0]-=f,re[1]-=f,he[0]+=f,!a||z<=i&&i<=L&&j<=r&&r<=Y)at=Ah(ie,Ws(f,1,-1),"L",te,Ws(f,1,1),"L",re,Ws(f,-1,1),"L",he,Ws(f,-1,-1));else if(i>L&&r<j){var vt=u/f||0,Bt=r4/4+vt/2,St=r4/4-vt/2,ct=te[0]+Hu(St)*f,Nt=te[1]+(1-Vu(St))*f,Kt=Ah("L",te,Ws(f,Hu(Bt),1-Vu(Bt)),"L",[i,r,ct,Nt],bI(f,te[0]+f,te[1]+f));Math.abs(Bt)>r4/2&&(Kt=Ah("L",[Ze,j,i,r,L,Re])),at=Ah(ie,Ws(f,1,-1),Kt,"L",re,Ws(f,-1,1),"L",he,Ws(f,-1,-1))}else if(i>L&&r>=j&&r<=Y){var on;if(He>=te[1]+f&&Re<=re[1])on=Ah(Ws(f,1,1),"L",[L,He,i,r,L,Re],"L",re,Ws(f,-1,1));else if(He<te[1]+f&&Re>=te[1]+f&&Re<=re[1]){var bn=(te[1]+f-He)/f,Qn=te[0]+Hu(bn)*f,Xn=te[1]+(1-Vu(bn))*f;on=Ah(Ws(f,Hu(bn),1-Vu(bn)),"L",[Qn,Xn,i,r,L,Re],"L",re,Ws(f,-1,1))}else if(He<te[1]+f&&Re<te[1]+f){var Ve=(te[1]+f-He)/f,gt=te[0]+Hu(Ve)*f,Ct=te[1]+(1-Vu(Ve))*f,Dt=Math.sin((te[1]+f-Re)/f),wt=te[0]+f*Hu(Dt),rn=te[1]+f*(1-Vu(Dt));on=Ah(Ws(f,Hu(Ve),1-Vu(Ve)),"L",[gt,Ct,i,r,wt,rn],bI(f,te[0]+f,te[1]+f),"L",re,Ws(f,-1,1))}else if(He<=te[1]+f&&Re>=re[1]){var mn=CI((te[1]+f-He)/f),Vn=te[0]+f*Hu(mn),Yn=te[1]+f*(1-Vu(mn)),vi=CI((Re-re[1])/f),Si=re[0]+f*(Hu(vi)-1),nr=re[1]+f*Vu(vi);on=Ah(Ws(f,Hu(mn),1-Vu(mn)),"L",[Vn,Yn,i,r,Si,nr],bI(f,re[0]-f,re[1]+f))}else if(He>te[1]+f&&He<=re[1]&&Re>re[1]){var lo=CI((Re-re[1])/f),ci=re[0]+f*(Hu(lo)-1),Wi=re[1]+f*Vu(lo);on=Ah(Ws(f,1,1),"L",[L,He,i,r,ci,Wi],bI(f,re[0]-f,re[1]+f))}else if(He>te[1]+f&&Re>re[1]){var Or=CI((Re-re[1])/f),Yr=re[0]+f*(Hu(Or)-1),Ca=re[1]+f*Vu(Or),Mr=CI((He-re[1])/f),zt=re[0]+f*(Hu(Mr)-1),un=re[1]+f*Vu(Mr);on=Ah(Ws(f,1,1),"L",re,Ws(f,Hu(Mr)-1,Vu(Mr)),"L",[zt,un,i,r,Yr,Ca],bI(f,re[0]-f,re[1]+f))}at=Ah(ie,Ws(f,1,-1),"L",te,on,"L",he,Ws(f,-1,-1))}return Ah("M",at,"Z")}class Swe{constructor(n,e,i,r){var o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:(l,u)=>u.getBBox(),s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:(l,u,f,S)=>u.move(f,S);this.widget=e,this.options=n,this.root=i,this.contentTemplate=r,this.bonded=o,this.measureContent=a,this.moveContentGroup=s}draw(n){var{x:e,y:i,canvas:r={},offsetX:o,offsetY:a,offset:s=0}=n,l=ki(n,CMt),u=this.options,{x:f,y:S}=u,T=r.left,R=r.width-r.right,L=r.width-r.right-r.left,z=r.top,j=r.height-r.bottom,Y=r.height-r.bottom-r.top;if((!Z(e)||!Z(i))&&(!Z(f)||!Z(S))||Z(e)&&(e<T||R<e||i<z||j<i))return!1;this._root||this._draw();var ie=se({x:"-50%",y:"-50%",width:"200%",height:"200%"},u.shadow),te=u.width>0?u.width:null,re=u.height>0?u.height:null,he=()=>{var fe,Te=this._contentBBox=this.measureContent(this.widget,this._contentGroup),Re=this._size={width:Wm(te,Te.width)+2*u.paddingLeftRight,height:Wm(re,Te.height)+2*u.paddingTopBottom,offset:s},He=ie.offsetX,Ze=ie.offsetY,at=2*ie.blur+1,vt=Wm(at-He,0),Bt=Wm(at+He,0),St=Wm(at-Ze,0),ct=Wm(at+Ze,0);if(this.margins={lm:vt,rm:Bt,tm:St,bm:ct},Z(f)?(f+=o||0,Z(e)||(e=f)):f=Z(o)?e+o:L<Re.width?Um(T+L/2):xwe(Wm(e,Math.ceil(T+Re.width/2+vt)),Math.floor(R-Re.width/2-Bt)),Z(S))S+=a||0,Z(i)||(i=S+Re.height/2);else if(Z(a))S=i+a;else{var Nt=i-u.arrowLength-Re.height/2-s,Kt=i+u.arrowLength+Re.height/2+s;Y<Re.height+u.arrowLength?S=Um(z+Re.height/2):Nt-Re.height/2-St<z?Kt+Re.height/2+ct<j?(S=Kt,i+=s):S=Um(z+Re.height/2):(S=Nt,i-=s)}this.anchorX=e,this.anchorY=i,this.move(f,S),null===(fe=this._root)||void 0===fe||fe.append(this.root)};return this.contentTemplate.render?(this.contentTemplate.render({model:u,container:this._contentGroup.element,onRendered:he}),!0):this.contentTemplate(mt({group:this._contentGroup,onRender:he},l))}_draw(){var n=this.widget._renderer,e=this.options,i=se({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),r=this._shadow=n.shadowFilter().attr(i),o={opacity:e.opacity,"stroke-width":0,fill:e.color},a=e.border||{};a.visible&&se(o,{"stroke-width":a.width,stroke:a.color,"stroke-opacity":a.opacity,dashStyle:a.dashStyle});var s=this._root=n.g().append(this.root);e.type&&s.attr({class:"dxc-".concat(e.type,"-annotation")});var l=n.g().attr({filter:r.id}).append(s);this._cloud=n.path([],"area").attr(o).sharp().append(l),this._contentGroup=n.g().append(s)}getBBox(){var n=this._size||{},e=this.margins||{},i=wwe(n,this.x,this.y,this.anchorX,this.anchorY);return{x:Math.floor(this.x-n.width/2-e.lm),y:Math.floor(this.y-n.height/2-e.tm-(270===i?this.options.arrowLength:0)),width:n.width+e.lm+e.rm,height:n.height+e.tm+e.bm+(90===i||270===i?this.options.arrowLength:0)}}clear(){return this._root&&(this._root.remove(),this._shadow.remove(),this._root=null),this}customizeCloud(n){this._cloud&&this._cloud.attr(n)}moveRoot(n,e){this._root&&this._root.move(n,e)}move(n,e){n=Um(n),e=Um(e),this.x=n,this.y=e;var i=wwe(this._size,n,e,this.anchorX,this.anchorY),r=i*r4/180;this._cloud.attr({d:SMt(wMt(this._size,i),n,e,bMt(this.anchorX,this.anchorY,r,n,e),xMt(this.anchorX,this.anchorY,r,n,e),this.options,this.bonded)}).rotate(i,n,e),this.moveContentGroup(this.widget,this._contentGroup,n-this._contentBBox.x-this._contentBBox.width/2,e-this._contentBBox.y-this._contentBBox.height/2)}hitTest(n,e){var{width:i,height:r}=this._size||{};return Math.abs(n-this.x)<=i/2&&Math.abs(e-this.y)<=r/2}}var DMt=Es.format,MK=Math.ceil,o4=Math.max,Dwe=Math.min,AK=Fn();function Ewe(t){t.css({left:"-9999px"}).detach()}function Owe(){return U("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"})}var a4=function(t){this._eventTrigger=t.eventTrigger,this._widgetRoot=t.widgetRoot,this._widget=t.widget,this._textHtmlContainers=[],this._wrapper=U("<div>").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(t.cssClass);var n=this._renderer=new kB({pathModified:t.pathModified,container:this._wrapper[0]});n.root.attr({"pointer-events":"none"}),this._text=n.text(void 0,0,0),this._textGroupHtml=U("<div>").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(this._wrapper),this._textHtml=Owe().appendTo(this._textGroupHtml)};a4.prototype={constructor:a4,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var t=this._options,n=U(this._widgetRoot).closest(t.container);return 0===n.length&&(n=U(t.container)),(n.length?n:U("body")).get(0)},setTemplate(t){this._template=t?this._widget._getTemplate(t):null},setOptions:function(t){var n=this;n._options=t=t||{},n._textFontStyles=_a(t.font),n._textFontStyles.color=n._textFontStyles.fill,n._wrapper.css({zIndex:t.zIndex}),n._customizeTooltip=t.customizeTooltip;var e=n._textGroupHtml;this.plaque&&this.plaque.clear(),this.setTemplate(t.contentTemplate);var i=t.interactive?"auto":"none";return t.interactive&&this._renderer.root.css({"-ms-user-select":"auto","-moz-user-select":"auto","-webkit-user-select":"auto"}),this.plaque=new Swe({opacity:n._options.opacity,color:n._options.color,border:n._options.border,paddingLeftRight:n._options.paddingLeftRight,paddingTopBottom:n._options.paddingTopBottom,arrowLength:n._options.arrowLength,arrowWidth:20,shadow:n._options.shadow,cornerRadius:n._options.cornerRadius},n,n._renderer.root,r=>{var{group:o,onRender:a,eventData:s,isMoving:l,templateCallback:u=(()=>{})}=r,f=n._state;if(!l){var S=n._template,T=S&&!f.formatObject.skipTemplate;if(f.html||T){if(e.css({color:f.textColor,width:3e3,pointerEvents:i}),T){var R=n._textHtmlContainers,L=Owe().appendTo(n._textGroupHtml);return R.push(L),void S.render({model:f.formatObject,container:L,onRendered:()=>{if(function TMt(t){t.forEach(n=>n.remove())}(R.splice(0,R.length-1)),n._textHtml=cfe(n._textHtml,L),f.html=n._textHtml.html(),0===wn(n._textHtml)&&0===Ln(n._textHtml))return this.plaque.clear(),void u(!1);a(),n._riseEvents(s),n._moveWrapper(),n.plaque.customizeCloud({fill:f.color,stroke:f.borderColor,"pointer-events":i}),u(!0),n._textHtmlContainers=[]}})}n._text.attr({text:""}),n._textHtml.html(f.html)}else n._text.css({fill:f.textColor}).attr({text:f.text,class:t.cssClass,"pointer-events":i}).append(o.attr({align:t.textAlignment}));n._riseEvents(s),n.plaque.customizeCloud({fill:f.color,stroke:f.borderColor,"pointer-events":i})}return a(),n._moveWrapper(),!0},!0,(r,o)=>{if(r._state.html){var s=AK.getComputedStyle(n._textHtml.get(0));return{x:0,y:0,width:MK(parseFloat(s.width)),height:MK(parseFloat(s.height))}}return o.getBBox()},(r,o,a,s)=>{r._state.html?n._textGroupHtml.css({left:a,top:s}):o.move(a,s)}),n},_riseEvents:function(t){this._eventData&&this._eventTrigger("tooltipHidden",this._eventData),this._eventData=t,this._eventTrigger("tooltipShown",this._eventData)},setRendererOptions:function(t){return this._renderer.setOptions(t),this._textGroupHtml.css({direction:t.rtl?"rtl":"ltr"}),this},update:function(t){this.setOptions(t),Ewe(this._wrapper);var n={};for(var e in this._textFontStyles)n[dd(e)]=this._textFontStyles[e];return this._textGroupHtml.css(n),this._text.css(this._textFontStyles),this._eventData=null,this},_prepare:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,i=this._options,r={};return Yt(e)&&(r=e.call(t,t),"text"in(r=wi(r)?r:{})&&(n.text=Z(r.text)?String(r.text):""),"html"in r&&(n.html=Z(r.html)?String(r.html):"")),!("text"in n)&&!("html"in n)&&(n.text=t.valueText||t.description||""),n.color=r.color||i.color,n.borderColor=r.borderColor||(i.border||{}).color,n.textColor=r.fontColor||(this._textFontStyles||{}).color,!!n.text||!!n.html||!!this._template},show:function(t,n,e,i,r){if(this._options.forceEvents)return e.x=n.x,e.y=n.y-n.offset,this._riseEvents(e),!0;var o={formatObject:t,eventData:e,templateCallback:r};if(!this._prepare(t,o,i))return!1;this._state=o,this._wrapper.appendTo(this._getContainer()),this._clear();var a=se({},this._options,{canvas:this._getCanvas()},o,{x:n.x,y:n.y,offset:n.offset});return this.plaque.clear().draw(a)},isCursorOnTooltip:function(t,n){if(this._options.interactive){var e=this.plaque.getBBox();return t>e.x&&t<e.x+e.width&&n>e.y&&n<e.y+e.height}return!1},hide:function(t){Ewe(this._wrapper),this._eventData&&(this._eventTrigger("tooltipHidden",this._options.forceEvents?se({isPointerOut:t},this._eventData):this._eventData),this._clear(),this._eventData=null)},_clear(){this._textHtml.empty()},move:function(t,n,e){this.plaque.draw({x:t,y:n,offset:e,canvas:this._getCanvas(),isMoving:!0})},_moveWrapper:function(){var t=this.plaque.getBBox();this._renderer.resize(t.width,t.height);var n=this._wrapper.css({left:0,top:0}).offset(),e=t.x,i=t.y;this._wrapper.css({left:e-n.left,top:i-n.top}),this.plaque.moveRoot(-e,-i),this._state.html&&(this._textHtml.css({left:-e,top:-i}),this._textGroupHtml.css({width:MK(wn(this._textHtml))}))},formatValue:function(t,n){var e=n?function OMt(t,n){var e=t;switch(n){case"argument":e={format:t.argumentFormat};break;case"percent":e={format:{type:"percent",precision:t.format&&t.format.percentPrecision}}}return e}(this._options,n):this._options;return DMt(t,e.format)},getOptions(){return this._options},getLocation:function(){return Ri(this._options.location)},isEnabled:function(){return!!this._options.enabled||!!this._options.forceEvents},isShared:function(){return!!this._options.shared},_getCanvas:function(){var t=this._getContainer(),n=t.getBoundingClientRect(),e=It.getDocumentElement(),i=It.getDocument(),r=AK.pageXOffset||e.scrollLeft||0,o=AK.pageYOffset||e.scrollTop||0,a={left:r,top:o,width:o4(e.clientWidth,i.body.clientWidth)+r,height:o4(i.body.scrollHeight,e.scrollHeight,i.body.offsetHeight,e.offsetHeight,i.body.clientHeight,e.clientHeight),right:0,bottom:0};return t!==It.getBody()&&(r=o4(a.left,a.left+n.left),o=o4(a.top,a.top+n.top),a.width=Dwe(n.width,a.width)+r+a.left,a.height=Dwe(n.height,a.height)+o+a.top,a.left=r,a.top=o),a}};var kC={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new a4({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element(),widget:this})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},extenders:{_stopCurrentHandling(){this._tooltip&&this._tooltip.hide()}},customize:function(t){var n=t.prototype;n._eventsMap.onTooltipShown={name:"tooltipShown"},n._eventsMap.onTooltipHidden={name:"tooltipHidden"},t.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),t.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]},Iwe="loadingIndicatorReady",FK=function(t){var n=t.renderer;this._group=n.g().attr({class:"dx-loading-indicator"}).linkOn(n.root,{name:"loading-indicator",after:"peripheral"}),this._rect=n.rect().attr({opacity:0}).append(this._group),this._text=n.text().attr({align:"center"}).append(this._group),this._createStates(t.eventTrigger,this._group,n.root,t.notify)};FK.prototype={constructor:FK,_createStates:function(t,n,e,i){this._states=[{opacity:0,start:function(){i(!1)},complete:function(){n.linkRemove(),e.css({"pointer-events":""}),t(Iwe)}},{opacity:.85,start:function(){n.linkAppend(),e.css({"pointer-events":"none"}),i(!0)},complete:function(){t(Iwe)}}],this._state=0},setSize:function(t){var n=t.width,e=t.height;this._rect.attr({width:n,height:e}),this._text.attr({x:n/2,y:e/2})},setOptions:function(t){this._rect.attr({fill:t.backgroundColor}),this._text.css(_a(t.font)).attr({text:t.text,class:t.cssClass}),this[t.show?"show":"hide"]()},dispose:function(){this._group.linkRemove().linkOff(),this._group=this._rect=this._text=this._states=null},_transit:function(t){var n;this._state!==t&&(this._state=t,this._isHiding=!1,n=this._states[t],this._rect.stopAnimation().animate({opacity:n.opacity},{complete:n.complete,easing:"linear",duration:400,unstoppable:!0}),this._noHiding=!0,n.start(),this._noHiding=!1)},show:function(){this._transit(1)},hide:function(){this._transit(0)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}};var MC={name:"loading_indicator",init:function(){var t=this;t._loadingIndicator=new FK({eventTrigger:t._eventTrigger,renderer:t._renderer,notify:function(n){t._skipLoadingIndicatorOptions=!0,t.option("loadingIndicator",{show:n}),t._skipLoadingIndicatorOptions=!1,n&&t._stopCurrentHandling()}}),t._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._optionChangedLocker||this._scheduleLoadingIndicatorHiding()}},extenders:{_dataSourceLoadingChangedHandler(t){t&&(this._options.silent("loadingIndicator")||{}).enabled&&this._loadingIndicator.show()},_setContentSize(){this._loadingIndicator.setSize(this._canvas)},endUpdate(){this._initialized&&this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},customize:function(t){var n=t.prototype;if(n._dataSourceChangedHandler){var e=n._dataSourceChangedHandler;n._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),e.apply(this,arguments)}}t.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),n._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var i=n._drawn;n._drawn=function(){i.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]},AMt=Number,PK=se,FMt=Es.format,Ep=V_.inherit({_rootClassPrefix:"dxg",_themeSection:"gauge",_createThemeManager:function(){return new FIt.ThemeManager(this._getThemeManagerOptions())},_initCore:function(){var t=this._renderer.root;this._valueChangingLocker=0,this._translator=this._factory.createTranslator(),this._tracker=this._factory.createTracker({renderer:this._renderer,container:t}),this._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),this._onBeginUpdate(),++this._valueChangingLocker},_endValueChanging:function(){0==--this._valueChangingLocker&&this._drawn()},_setTrackerCallbacks:function(){var t=this._renderer,n=this._tooltip;this._tracker.setCallbacks({"tooltip-show":function(e,i,r){var o=e.getTooltipParameters(),a=t.getRootOffset(),s=PK({value:o.value,valueText:n.formatValue(o.value),color:o.color},i);return n.show(s,{x:o.x+a.left,y:o.y+a.top,offset:o.offset},{target:i},void 0,r)},"tooltip-hide":function(){return n.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){this._themeManager.dispose(),this._tracker.dispose(),this._translator=this._tracker=null},_cleanCore:function(){this._tracker.deactivate(),this._cleanContent()},_renderCore:function(){this._isValidDomain&&(this._renderContent(),this._tracker.setTooltipState(this._tooltip.isEnabled()),this._tracker.activate(),this._noAnimation=!1)},_applyChanges:function(){this.callBase.apply(this,arguments),this._resizing=this._noAnimation=!1},_setContentSize:function(){var t=this;t._resizing=t._noAnimation=2===t._changes.count(),t.callBase.apply(t,arguments)},_applySize:function(t){this._innerRect={left:t[0],top:t[1],right:t[2],bottom:t[3]};var n=this._layout._cache;return this._cleanCore(),this._renderCore(),this._layout._cache=this._layout._cache||n,[t[0],this._innerRect.top,t[2],this._innerRect.bottom]},_initialChanges:["DOMAIN"],_themeDependentChanges:["DOMAIN"],_optionChangesMap:{subtitle:"MOSTLY_TOTAL",indicator:"MOSTLY_TOTAL",geometry:"MOSTLY_TOTAL",animation:"MOSTLY_TOTAL",startValue:"DOMAIN",endValue:"DOMAIN"},_optionChangesOrder:["DOMAIN","MOSTLY_TOTAL"],_change_DOMAIN:function(){this._setupDomain()},_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_setupDomain:function(){this._setupDomainCore(),this._isValidDomain=isFinite(1/(this._translator.getDomain()[1]-this._translator.getDomain()[0])),this._isValidDomain||this._incidentOccurred("W2301"),this._change(["MOSTLY_TOTAL"])},_applyMostlyTotalChange:function(){this._setupCodomain(),this._setupAnimationSettings(),this._setupDefaultFormat(),this._change(["LAYOUT"])},_setupAnimationSettings:function(){var t=this.option("animation");this._animationSettings=null,(void 0===t||t)&&(t=PK({enabled:!0,duration:1e3,easing:"easeOutCubic"},t)).enabled&&t.duration>0&&(this._animationSettings={duration:AMt(t.duration),easing:t.easing}),this._containerBackgroundColor=this.option("containerBackgroundColor")||this._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var t=this._translator.getDomain();this._defaultFormatOptions=function(t,n,e){var o,i=vj(wj(t),wj(n)),r=-wj(kh(n-t)/e);return yj(i)||yj(r)?null:(kh(i)<=4?(o="fixedPoint",r<0&&(r=0),r>4&&(r=4)):(o="exponential",(r+=i-1)>3&&(r=3)),{type:o,precision:r})}(t[0],t[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new cB},createTracker:function(t){return new zIt(t)}}}),s4=function(t,n,e){Object.is(t,-0)&&(t=0);var r,i=FMt(t,(n=n||{}).format);return"function"==typeof n.customizeText?(r=PK({value:t,valueText:i},e),String(n.customizeText.call(r,r))):i},kwe=function(t,n){var e=s4(t.getDomainStart(),n),i=s4(t.getDomainEnd(),n);return e.length>=i.length?e:i};function Mwe(t,n){return t&&n&&t.length===n.length&&function PMt(t,n){var e,i=t.length;for(e=0;e<i;++e)if(!(t[e]!=t[e]&&n[e]!=n[e]||t[e]===n[e]))return!1;return!0}(t,n)}Ep.addPlugin(j_),Ep.addPlugin(TC),Ep.addPlugin(kC),Ep.addPlugin(MC);var RMt=Ep.prototype._setTooltipOptions;Ep.prototype._setTooltipOptions=function(){RMt.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())};var AC=Es.format,{abs:Fh,floor:l4}=Math,u4="exponential",xI=["fixedPoint","thousands","millions","billions","trillions",u4],FC=["millisecond","second","minute","hour","day","month","year"];function d4(t,n,e,i){var r,o,a,l,u,s=FC.length;"week"===i?i="day":"quarter"===i?i="month":"shorttime"===i?i="hour":"longtime"===i&&(i="second");var f=FC.indexOf(i);if(e){if(o=bt.getDatesDifferences(n,e),r=bt.getDatesDifferences(n,t),o[i])for(l=s-1;l>=f;l--)if(a=FC[l],l===f)BMt(o,f+(o.millisecond?2:1));else if(o[a]){RK(o,l);break}}else for(r=bt.getDatesDifferences(t,n),l=s-1;l>=f;l--)if(r[a=FC[l]]){if(l-f>1){for(u=f+1;u>=0;u--)RK(r,u);break}if(LMt(n,a)){for(u=l-1;u>0;u--)RK(r,u);break}}return e?o:r}function LMt(t,n){var r,e=[t.getMilliseconds(),t.getSeconds(),t.getMinutes(),t.getHours(),t.getDate(),t.getMonth()],i=FC.indexOf(n);for(r=0;r<i;r++)if(4===r&&1!==e[r]||4!==r&&0!==e[r])return!1;return!0}function RK(t,n){var e=FC[n];t[e]&&(t[e]=!1,t.count--)}function BMt(t,n){var e=FC[n];!1===t[e]&&(t[e]=!0,t.count++)}function Awe(t,n){var e,i,r,o=0;for(r=Fh(n-t[0]),e=1;e<t.length;e++)(i=Fh(n-t[e]))<r&&(r=i,o=e);return o}function LK(t){return t.toString().split(".")}function c4(t){var n;return Yt(t)&&(n=t,t=null),{type:t,formatter:n}}function zMt(t,n){var e=Fh(t).toString();return Jx(t)?Math.max(Fh(rO(t)-rO(n)),Fh(dP(t)-dP(n))):Fh(function NMt(t){return t.length-parseInt(t).toString().length}(e.split(".")[1])-rO(n)+1)}function h4(t,n){var e=n.tickInterval,i=Fh(t).toString(),r=n.labelOptions.format,o=n.ticks,a="logarithmic"===n.type;if(1===o.length&&0===o.indexOf(t)&&!Z(e)&&(e=Fh(t)>=1?1:Kr(1-Fh(t),t)),Object.is(t,-0)&&(t=0),!Z(r)&&"discrete"!==n.type&&t&&(10===n.logarithmBase||!a))if("datetime"!==n.dataType&&Z(e)){if(o.length&&-1===o.indexOf(t)){var s=Awe(o,t);e=Kr(Fh(t-o[s]),t)}if(a)return function VMt(t){var e,n=bj(Fh(t));if(n>0)e=xI[l4(n/3)]||u4;else{if(!(n<-4))return AC(Kr(t));e=u4}return AC(t,{type:e,precision:0})}(t);var l=LK(e);l<2&&(l=LK(t)),r=l.length>1&&!Jx(e)?{type:xI[0],precision:l[1].length}:Jx(e)&&(-1!==i.indexOf(".")||Jx(t))?{type:u4,precision:zMt(t,e)}:function UMt(t,n){var i,r,e=l4(bj(n)),o=0,a=i=l4(bj(Fh(t)));i-e>=2&&(a=e);var s=l4(a/3),l=3*s;if(s<5?(e-l==2&&i>=3&&(l=3*++s),r=xI[s]):r=xI[xI.length-1],l>0){var u=LK(n/Math.pow(10,l));u[1]&&(o=u[1].length)}return{precision:o,type:r}}(t,e)}else"datetime"===n.dataType&&(r=function HMt(t,n){var a,s,{showTransition:e,ticks:i,tickInterval:r}=n,o=bt.getDateFormatByTickInterval(r);if(e&&i.length){var l=i.map(Number).indexOf(+t);if(1===i.length&&0===l)o=Es.getDateFormatByTicks(i);else{-1===l?a=Awe(i,t):(a=0===l?i.length-1:l-1,s=0===l?1:-1);var u=d4(i[a],t,i[s],o);o=Es.getDateFormatByDifferences(u,o)}}return c4(o)}(t,n));return AC(t,r)}function $Mt(t){var{startValue:n,endValue:e,tickInterval:i,argumentFormat:r,axisOptions:{dataType:o,type:a,logarithmBase:s}}=t;if("discrete"===a)return"";if("datetime"===o)return function jMt(t,n,e){var i=d4(t,n),r=bt.getDateFormatByTickInterval(e),a=c4(Es.getDateFormatByDifferences(i,r)),s=[];if(e in i){var l=function GMt(t,n){var e=!1;for(var i in t)e?t[i]=!1:i===n?e=!0:t[i]=!0;return c4(Es.getDateFormatByDifferences(t))}(d4(t,n),e),u=AC(t,l);u&&s.push(u)}else{var f=function WMt(t){var n=!1;for(var e in t)!0===t[e]||"hour"===e||n?(t[e]=!1,n=!0):!1===t[e]&&(t[e]=!0);return c4(Es.getDateFormatByDifferences(t))}(d4(t,n)),S=AC(t,f);S&&s.push(S),s.push("".concat(AC(t,a)," - ").concat(AC(n,a)))}return s.join(", ")}(n,e,function KMt(t){if(Jn(t)){var n=Object.keys(t);if(1===n.reduce((r,o)=>t[o]+r,0)){var i=n.filter(r=>1===t[r])[0];return i.slice(0,i.length-1)}}return t}(i));var l={ticks:[],type:a,dataType:o,tickInterval:i,logarithmBase:s,labelOptions:{format:r}};return"".concat(h4(n,l)," - ").concat(h4(e,l))}const wr_validateOverlappingMode=function(t){return"ignore"===t||"none"===t?t:"hide"},wr_getTicksCountInRange=function(t,n,e){var i=1;if(t.length>1)for(;i<t.length&&!(Math.abs(t[i].coords[n]-t[0].coords[n])>=e);i++);return i},wr_areLabelsOverlap=function(t,n,e,i){var a=t.x,s=n.x,l=t.width,u=n.width;return"left"===i?(a+=l/2,s+=u/2):"right"===i&&(a-=l/2,s-=u/2),(t.x>n.x?s+u+e>a:a+l+e>s)&&(t.y>n.y?n.y+n.height>t.y:t.y+t.height>n.y)};var Pwe="yyyy/MM/dd",Rwe=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,Lwe=/^(\d{2}):(\d{2})(:(\d{2}))?$/,Bwe=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],YMt=/^(\d{4})\/(\d{2})\/(\d{2})$/,Nwe=function(t,n){var e;return Pn(t)&&!n&&(e=function JMt(t){var n=t.match(Rwe);if(!n)return(n=t.match(Lwe))?new Date(0,0,0,zu(n[1]),zu(n[2]),zu(n[4])):void 0;var e=zu(n[1]),i=--n[3],r=n[5],o=0,a=0;o=zu(n[14]),a=zu(n[16]),"-"===n[13]&&(o=-o,a=-a);var T,l=zu(n[6])-o,u=zu(n[8])-a,f=zu(n[10]),S=zu(T=(T=n[11])||"")*Math.pow(10,3-T.length);return(T=>(e<100&&T.setFullYear(e),T))(n[12]?new Date(Date.UTC(e,i,r,l,u,f,S)):new Date(e,i,r,l,u,f,S))}(t)),e||function XMt(t){var n=Vwe(t)===Pwe,e=!Sa(t)&&Date.parse(t);if(!e&&n){var i=t.match(YMt);if(i){var r=new Date(zu(i[1]),zu(i[2]),zu(i[3]));return r.setFullYear(zu(i[1])),r.setMonth(zu(i[2])-1),r.setDate(zu(i[3])),r}}return di(e)?new Date(e):t}(t)};function zu(t){return+t||0}var Vwe=function(t){return"number"==typeof t?"number":Pn(t)?(no().forceIsoDateParsing&&(n=function(t,n){var e=t.match(Rwe),i="";if(!e)return(e=t.match(Lwe))?e[3]?"HH:mm:ss":"HH:mm":void 0;for(var r=1;r<Bwe.length;r++)e[r]&&(i+=Bwe[r]||e[r]);return"Z"===e[12]&&(i+="'Z'"),e[14]&&(i+=e[15]?"xxx":e[16]?"xx":"x"),i}(t)),n||(t.indexOf(":")>=0?"yyyy/MM/dd HH:mm:ss":Pwe)):t?null:void 0;var n};const Qr={dateParser:Nwe,deserializeDate:function(t){return"number"==typeof t?new Date(t):Nwe(t,!no().forceIsoDateParsing)},serializeDate:function(t,n){return n?Sa(t)?"number"===n?t&&t.valueOf?t.valueOf():null:Mde(n,sO)(t):null:t},getDateSerializationFormat:Vwe};var nAt={string:function(t){return Z(t)?""+t:t},numeric:function(t){if(!Z(t))return t;var n=Number(t);return isNaN(n)&&(n=void 0),n},datetime:function(t){if(!Z(t))return t;var n,e=Number(t);return n=isNaN(e)?Qr.deserializeDate(t):new Date(e),isNaN(Number(n))&&(n=void 0),n}};function Hwe(t){return"numeric"===t||"datetime"===t||"string"===t?t:""}var BK=function(t){return nAt[Hwe(t)]||Be},zwe=bt.convertDateUnitToMilliseconds,K_=bt.dateToMilliseconds,PC=Math,$_=PC.abs,RC=PC.floor,LC=PC.ceil,iAt=PC.pow,Uwe=[1,2,2.5,5],rAt=[1,2,3,5],Wwe={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2],week:[1,2],month:[1,2,3,6]},oAt=se({},Wwe,{day:[1]}),aAt={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,7,14],month:[1,2,3,6]},sAt=[2,4,5,8,10],$a=t=>t,jwe=(t,n,e)=>i=>du(i,t,n,e),p4=(t,n,e)=>(i,r)=>Kr(t(n(Kr(e(i)/r))*r));function NK(t,n,e,i){return Z(i)?i?t:n:function(r,o,a,s){var l=t(r,o);return r-l==0||!Z(a)||e(r,l,o,a)||s?l:n(r,o)}}function g4(t,n,e,i){var r=e-$_(n-t),o=PC.max(LC(i.businessDelta/e),2),a=i.screenDelta/(o*e),s=PC.round(a*r),l=du(a*e/i.axisDivisionFactor,2)+1,f=PC.round((i.isSpacedMargin?2:1)*l*3);return i.businessDelta>i.interval&&s>=f}function Kwe(t){return function(n,e,i,r){return g4(du(n,t),du(e,t),i,r)}}function $we(t,n,e,i){return g4(t.valueOf(),n.valueOf(),K_(e),i)}function qwe(t,n){var e=0;return n&&(e=n.reduce((i,r)=>i+(r.to-r.from),0)),$_(t.max-t.min-e)}function f4(t,n,e,i){var r=n/e-(i||0);return t/(r<1?1:r)}function Ywe(t,n){return iAt(10,RC(du(t,10))+(n||0))}function fAt(t,n,e,i,r,o,a,s,l,u){var f=f4(t,n,r,s),S=1,T=!1===a;return(!i||!e)&&((f>=1||!T&&f>0)&&(S=VK(f,o,T)),(!e||!i&&e<S)&&(e=S)),!i&&u&&(u=VK(u,o,T))>e&&(e=u),e}function VK(t,n,e){var i=Ywe(t,-1),r=1;return n=n||Uwe,t>0&&(t/=i,r=Kr((r=n.concat(10*n[0]).map(o=>10*o).reduce((o,a)=>.1===i&&e&&25===a?o:o<t?a:o,0))*i,i)),r}function Zwe(t,n,e,i){var r=f4(t,n,i);return e||sAt.reduce((o,a)=>{var s=t/a;return s>=r?s:o},0)}function Xwe(t){return function(n,e){var i=Ywe(n);return!t&&i<1&&(i=1),(e=e||rAt).concat(10*e[0]).reduce((r,o)=>r<n?o*i:r,0)}}function vAt(t,n){return function(e,i){return!e&&t<=zwe(n,i)&&((e={})[n+"s"]=i),e}}function yAt(t,n){return function(e,i){var r=n*i;return!e&&t<=zwe("year",r)&&2.5!==r&&(e={years:r}),e}}function Jwe(t,n,e,i,r,o,a,s,l,u){if(!i||!e){var f=m4(f4(t,n,r),o,0,l);(!e||!i&&K_(e)<=K_(f))&&(e=f)}return!i&&u&&(u=m4(u,o,0,l),K_(u)>K_(e)&&(e=u)),e}function m4(t,n,e,i){var r;for(var o in n=n||function _At(t){return t&&t>2?oAt:Wwe}(i),n)if(r=n[o].reduce(vAt(t,o),r))break;if(!r)for(var a=1;!(r=Uwe.reduce(yAt(t,a),r));a*=10);return r}function CAt(t,n,e,i){return Jwe(t,n,e,!0,i,aAt)}function _4(t,n){return e=>e&&n($_(Kr(t(e[1])-t(e[0]))))||void 0}function G1(t,n,e){return bt.addInterval(t,n,e)}function v4(t,n,e){return G1(t,n,e)}function Qwe(t,n,e){return n=n.filter(i=>!i.gapSize),function(i,r,o){var a;return i=t(i,r,o),n.every(s=>(i>=t(s.from,r)&&t(i,r)<s.to&&(a=s.to-s.from-2*(t(s.from,r)-s.from)),!a))||(i=e(t(i,a),r)),i}}function HK(t,n,e,i){return function(r,o,a,s,l,u,f,S,T){var te,R=function xAt(t,n){return function(e){var i;return n.every(r=>(e>=r.from&&e<r.to&&(i=r.gapSize),!i))||(e=t(e,i)),e}}(t,s),L=r.min,z=r.max,j={screenDelta:f,businessDelta:u,axisDivisionFactor:S,isSpacedMargin:r.isSpacedMargin,interval:o},Y=n(L,o,j),ie=[];for(null!=l&&l.length&&(t=Qwe(t,l,n)),Y>z&&(Y=n(L,e(u/2),j))>z&&(Y=n(L,o,j,a=!0)),Y=R(Y);Y<z&&Y!==te||T&&Y<=z;)ie.push(Y),te=Y,Y=R(t(Y,o));return(a||Y-z==0||!Z(a)&&i(z,Y,o,j))&&ie.push(Y),ie}}function zK(t,n,e,i,r){return function(o,a,s,l,u,f,S){var T=u/l,R=s[s.length-1],L=s[0],z=S-1;if(null!=f&&f.length&&(n=Qwe(n,f,e)),0===(l=t(l,L,L,T)))return[];var j=i(e(o,u,o),l);l=t(l,L,j,T);for(var Y=[];j<L&&(!z||z>0);)j>=o&&Y.push(j),z--,j=n(j,l);var ie=s.reduce((he,fe)=>{if(z=S-1,null===he.prevTick)return he.prevTick=fe,he;l=t(l,fe,he.prevTick,T);for(var Te=i(he.prevTick,l);Te<fe&&(!z||z>0);)Te!==he.prevTick&&he.minors.push(Te),z--,Te=n(Te,l);return he.prevTick=fe,he},{prevTick:null,minors:[]});Y=Y.concat(ie.minors);var re,te=r(a,u,o);for(l=t(l,te,te,T),j=i(R,l);j<a&&j!==re;)Y.push(j),re=j,j=n(j,l);return R-a!=0&&j-a==0&&Y.push(j),Y}}function e1e(t,n){if(n.length){var e=n.reduce((i,r)=>{var a,o=[];for(a=i[1];a<t.length;a++){var s=t[a];if(s<r.from&&o.push(s),s>=r.to)break}return[i[0].concat(o),a]},[[],0]);return e[0].concat(t.slice(e[1]))}return t}function UK(t,n,e,i,r,o,a,s,l,u){function f(S,T,R){return S&&T/a(S)>=R+1&&(t.incidentOccurred("W2003"),S=void 0),S}return function(S,T,R,L,z,j,Y,ie){z=z||{};var he,te=n(S,ie),re={tickInterval:r((he=z).majors),ticks:he.majors||[],minorTickInterval:o(he.minors),minorTicks:he.minors||[]};return isNaN(te)||(0!==te||z.majors?(re=function(he,fe,Te,Re,He,Ze,at,vt){if(at.majors)return he.breaks=vt,he;var St,Bt=vt.filter(ct=>ct.gapSize);return He=t.skipCalculationLimits?He:f(He,Te,Re),He=e(Te,Re,He,Ze,t.axisDivisionFactor,t.numberMultipliers,t.allowDecimals,vt.length,Bt[0]&&Bt[0].gapSize.days,t.minTickInterval),t.skipTickGeneration||(St=e1e(St=s(fe,He,t.endOnTick,Bt,vt,Te,Re,t.axisDivisionFactor,t.generateExtraTick),vt=u(vt,St,He)),he.breaks=vt,he.ticks=he.ticks.concat(St)),he.tickInterval=He,he}(re,S,te,T,R,L,z,ie||[]),!t.skipTickGeneration&&te>0&&(re=function(he,fe,Te,Re,He,Ze,at){if(!t.calculateMinors||at.minors)return he;var vt=a(he.tickInterval),Bt=Re*vt/Te,St=he.breaks;return!He&&Ze?He=o([vt/(Ze+1),vt/(Ze+1)*2]):Ze=void 0,He=f(He,vt,Bt),He=i(vt,Bt,He,t.minorAxisDivisionFactor),he.minorTicks=e1e(he.minorTicks.concat(l(fe.min,fe.max,he.ticks,He,he.tickInterval,St,Ze)),St),he.minorTickInterval=He,he}(re,S,te,T,j,Y,z))):re.ticks=[S.min]),re}}function t1e(t,n,e,i){var[r,o]=n;return(!Z(r)||$_(i(t)-i(r))/e>.25)&&(Z(o)&&$_(i(o)-i(r))/e<2?r=o:Z(r)||(r=t)),r}function WK(t,n,e){return function(i,r,o){var a=t(o),s=.5*a;return i.reduce((l,u)=>{var f=r.filter(R=>R<=u.from),S=e(t1e(u.from,[].concat(f[f.length-1],r[f.length]),a,n),s);f=r.filter(R=>R>=u.to);var T=e(t1e(u.to,[].concat(f[0],r[r.length-f.length-1]),a,n),-s);return n(T)-n(S)<a&&!u.gapSize?l:l.concat(u.gapSize?[u]:[{from:S,to:T,cumulativeWidth:u.cumulativeWidth}])},[])}}var n1e=(t,n,e)=>(i,r)=>gh(i)*Kr(t(n(i)(Kr(e(i)/r))*r));var i1e=function(t){var n;return n=t.rangeIsEmpty?function uAt(t){return function(n,e,i,r){var o=RC(e/t.axisDivisionFactor),a=e/(o=o<1?1:o);return{ticks:a>0?Array.apply(null,new Array(o+1)).map((s,l)=>a*l):[],tickInterval:a}}}(t):"discrete"===t.axisType?function dAt(t){return function(n,e,i,r){var o=Gg(n.categories,n.min,n.max).categories;return{ticks:o,tickInterval:LC(o.length*t.axisDivisionFactor/e)}}}(t):"logarithmic"===t.axisType?function SAt(t){var n=t.logBase,e=((t,n,e)=>i=>_C(i,t,n,e))(n,t.allowNegatives,t.linearThreshold),i=jwe(n,t.allowNegatives,t.linearThreshold),r=(t=>n=>0===n?0:Nm($_(n),t))(n),o=(t=>n=>xj(n,t))(n),a=n1e(o,u=>u<0?LC:RC,r),s=n1e(o,u=>u<0?RC:LC,r),l=p4($a,LC,$a);return UK(t,function gAt(t,n,e){var i=jwe(t,n,e);return function(r,o){var a=0;return o&&(a=o.reduce((s,l)=>s+$_(i(l.to/l.from)),0)),LC($_(i(r.max)-i(r.min))-a)}}(n,t.allowNegatives,t.linearThreshold),function mAt(t){return function(n,e,i,r,o,a,s,l,u,f){var S=f4(n,e,o),T=0,R=Xwe(t);return(!r||!i)&&(S>0&&(T=R(S,a)),(!i||!r&&i<T)&&(i=T)),!r&&f&&(f=R(f,a))>i&&(i=f),i}}(t.skipCalculationLimits),Zwe,_4(i,$a),_4($a,$a),$a,HK(function bAt(t,n){return(e,i,r)=>n(G1(t(e),i,r))}(i,e),NK(a,s,Kwe(n),t.endOnTick),Xwe(t.skipCalculationLimits),Kwe(n)),zK((u,f,S,T)=>Math.max(Math.abs(f),Math.abs(S))/T,G1,a,l,s),WK($a,i,(u,f)=>e(i(u)+f)))}(t):"datetime"===t.dataType?function DAt(t){function n(i,r){var o=p4($a,RC,$a),a=Pn(r)?bt.getDateIntervalByString(r.toLowerCase()):r,s=K_(r);(a.days%7==0||r.quarters)&&(a=m4(s));var l=f=>bt.correctDateWithUnitBeginning(f,a,null,t.firstDayOfWeek),u=f=>new Date(RC((f.getTime()-6e4*f.getTimezoneOffset())/s)*s+6e4*f.getTimezoneOffset());return i=l(i),"years"in a?i.setFullYear(o(i.getFullYear(),a.years)):"quarters"in a?i=l(u(i)):"months"in a?i.setMonth(o(i.getMonth(),a.months)):"weeks"in a||"days"in a?i=l(u(i)):"hours"in a?i.setHours(o(i.getHours(),a.hours)):"minutes"in a?i.setMinutes(o(i.getMinutes(),a.minutes)):"seconds"in a?i.setSeconds(o(i.getSeconds(),a.seconds)):"milliseconds"in a&&(i=u(i)),i}var e=_4($a,bt.convertMillisecondsToDateUnits);return UK(t,qwe,Jwe,CAt,e,e,K_,HK(v4,NK(n,function(i,r){for(var o=n(i,r);i-o>0;)o=v4(o,r);return o},$we,t.endOnTick),m4,$we),zK($a,v4,n,v4,$a),WK(K_,$a,(i,r)=>new Date(i.getTime()+r)))}(t):function wAt(t){var n=p4($a,RC,$a),e=p4($a,LC,$a),i=_4($a,$a);return UK(t,qwe,fAt,Zwe,i,i,$a,HK(G1,NK(n,e,g4,t.endOnTick),VK,g4),zK($a,G1,n,G1,$a),WK($a,$a,(r,o)=>r+o))}(t),n},wI=Z,r1e=Sa,EAt=Yt,j1="min",K1="max",SI="minVisible",DI="maxVisible",y4="axisType";function $1(t,n){return n<t}function C4(t,n){return n>t}function a1e(t,n,e,i){var r=wI(n);wI(t)?r&&i(t,n)&&e(n):r&&e(n)}var Os=function(t){t&&se(this,t)};Os.prototype={constructor:Os,addRange:function(t){var n=this,e=n.categories,i=t.categories,r="discrete"===n[y4],o=function(l,u){a1e(n[l],t[l],function(f){n[l]=f},u)},a=function(l,u,f){a1e(n[l],n[u],function(S){wI(n[l])&&(n[l]=S)},f)},s=function(l){n[l]=n[l]||t[l]};return s("invert"),s("containsConstantLine"),s(y4),s("dataType"),s("isSpacedMargin"),"logarithmic"===n[y4]?s("base"):n.base=void 0,o(j1,$1),o(K1,C4),r?(s(SI),s(DI)):(o(SI,$1),o(DI,C4)),o("interval",$1),r||(a(j1,SI,$1),a(j1,DI,$1),a(K1,DI,C4),a(K1,SI,C4)),n.categories=void 0===e?i:i?Dj(e.concat(i)):e,"logarithmic"===n[y4]&&(s("allowNegatives"),o("linearThreshold",$1)),n},isEmpty:function(){return!(wI(this[j1])&&wI(this[K1])||this.categories&&0!==this.categories.length)},correctValueZeroLevel:function(){var t=this;if(r1e(t[K1])||r1e(t[j1]))return t;function n(e,i){t[e]<0&&t[i]<0&&(t[i]=0),t[e]>0&&t[i]>0&&(t[e]=0)}return n(j1,K1),n(SI,DI),t},sortCategories(t){if(!1!==t&&this.categories)if(Array.isArray(t)){var n=t.map(r=>r.valueOf()),e=this.categories.filter(r=>-1===n.indexOf(r.valueOf()));this.categories=t.concat(e)}else{var i=!EAt(t);i&&"string"!==this.dataType?t=(r,o)=>r.valueOf()-o.valueOf():i&&(t=!1),t&&this.categories.sort(t)}}};var b4=Math.round;function l1e(t){return t}const OAt={translate:function(t,n){var e=this._canvasOptions,i=this._categoriesToPoints[t?.valueOf()],r=this.translateSpecialCase(t),o=e.startPointIndex||0,a=this._options.stick?0:.5;return Z(r)?b4(r):i||0===i?b4(this._calculateProjection(e.interval*(i+a-o+.5*(n=n||0)))):null},getInterval:function(){return this._canvasOptions.interval},getEventScale:function(t){return 1-(1-(t.deltaScale||1))/(.75+this.visibleCategories.length/this._categories.length)},zoom:function(t,n){var S,e=this._categories,i=this._canvasOptions,r=this._options.stick,o=i.invert,a=i.interval*n,s=t/a,l=(this.visibleCategories||[]).length,u=parseInt((i.startPointIndex||0)+s+.5),f=parseInt(Kr(i.canvasLength/a)+(r?1:0))||1;o&&(u=parseInt((i.startPointIndex||0)+l-s+.5)-f),u<0&&(u=0),(S=u+f)>e.length&&(u=(S=e.length)-f)<0&&(u=0);var T=e.slice(parseInt(u),parseInt(S)),R=this._getDiscreteInterval(T.length,i);return n=R/i.interval,t=this.translate(o?T[T.length-1]:T[0])*n-(i.startPoint+(r?0:R/2)),{min:T[0],max:T[T.length-1],translate:t,scale:n}},getMinScale:function(t){var n=this._canvasOptions,e=(this.visibleCategories||this._categories).length;return e+=(parseInt(.1*e)||1)*(t?-2:2),n.canvasLength/(Math.max(e,1)*n.interval)},getScale:function(t,n){var e=this._canvasOptions,i=this.getCanvasVisibleArea(),r=!this._options.stick&&1,o=Z(t)?this.translate(t,-r):null,a=Z(n)?this.translate(n,+r):null;return null===o&&(o=e.invert?i.max:i.min),null===a&&(a=e.invert?i.min:i.max),this.canvasLength/Math.abs(a-o)},isValid:function(t){return!!Z(t)&&this._categoriesToPoints[t.valueOf()]>=0},getCorrectValue:l1e,to:function(t,n){var e=this._canvasOptions,i=this._categoriesToPoints[t?.valueOf()];return b4(this._calculateProjection(e.interval*(i+(this._options.stick?0:.5)-(e.startPointIndex||0)+(this._businessRange.invert?-1:1)*n*.5)))},from:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this._canvasOptions,i=e.startPoint,r=this.visibleCategories||this._categories,o=r.length,a=this._options.stick?.5:0,s=b4((t-i)/e.interval+a-.5-.5*n);return s>=o&&(s=o-1),s<0&&(s=0),e.invert&&(s=o-s-1),r[s]},_add:function(){return NaN},toValue:l1e,isValueProlonged:!0,getRangeByMinZoomValue(t,n){var e=this._categories,i=e.indexOf(n.minVisible),r=e.indexOf(n.maxVisible),o=i+t-1;return e[o]?[n.minVisible,e[o]]:[e[r-t+1],n.maxVisible]}};var u1e=Math.floor;const TAt={_intervalize:function(t,n){if(Z(t))return"datetime"===this._businessRange.dataType?(t=di(t)?new Date(t):new Date(t.getTime()),t=bt.correctDateWithUnitBeginning(t,n,null,this._options.firstDayOfWeek)):t=Kr(u1e(Kr(t/n))*n,n),t},translate:function(t,n,e){var i=this.translateSpecialCase(t);return Z(i)?Math.round(i):this.isValid(t,e=e||this._options.interval)?this.to(t,n,e):null},getInterval:function(){return Math.round(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},zoom:function(){},getMinScale:function(){},getScale:function(){},_parse:function(t){return"datetime"===this._businessRange.dataType?new Date(t):Number(t)},fromValue:function(t){return this._parse(t)},toValue:function(t){return this._parse(t)},isValid:function(t,n){var e=this._canvasOptions,i=e.rangeMin,r=e.rangeMax;return n=n||this._options.interval,!(null===t||isNaN(t)||(t="datetime"===this._businessRange.dataType&&di(t)?new Date(t):t,n!==this._options.interval&&(i=this._intervalize(i,n),r=this._intervalize(r,n)),t.valueOf()<i||t.valueOf()>=bt.addInterval(r,n)))},to:function(t,n,e){var i=this._intervalize(t,e=e||this._options.interval),r=bt.addInterval(i,e),o=this._to(i),a=this._to(r);return n?n>0&&(o=a):o=u1e((o+a)/2),o},_to:function(t){var n=this._canvasOptions,e=n.rangeMinVisible,i=n.rangeMaxVisible,r=t-e;return t<e?r=0:t>i&&(r=bt.addInterval(i,this._options.interval)-e),this._conversionValue(this._calculateProjection(r*this._canvasOptions.ratioOfCanvasRange))},from:function(t,n){var s,e=this._options.interval,i=e,r=this._canvasOptions,o=r.rangeMinVisible,a=r.rangeMaxVisible;return"datetime"===this._businessRange.dataType&&(i=bt.dateToMilliseconds(e)),s=this._calculateUnProjection((t-this._canvasOptions.startPoint)/this._canvasOptions.ratioOfCanvasRange),(s=this._intervalize(bt.addInterval(s,i/2,n>0),e))<o?s=o:s>a&&(s=a),s},_add:function(){return NaN},isValueProlonged:!0};function d1e(t){return null!==t?new Date(t):t}const IAt={fromValue:d1e,toValue:d1e,_add:bt.addDateInterval,convert:bt.dateToMilliseconds},kAt={fromValue:function(t){return null!==t?du(t,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):t},toValue:function(t){return null!==t?_C(t,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):t},getMinBarSize:function(t){var n=this.getCanvasVisibleArea(),e=this.from(n.min+t),i=this._canvasOptions;return Math.pow(i.base,i.rangeMinVisible+this.fromValue(this.from(n.min))-this.fromValue(Z(e)?e:this.from(n.max)))},checkMinBarSize:function(t,n,e){var a,s,i=this._canvasOptions,r=e-t,o=this.constructor.prototype.checkMinBarSize;return Z(n)&&r>0?(a=o(this.fromValue(e/r),this.fromValue(n)-i.rangeMinVisible),s=Math.pow(i.base,this.fromValue(r)+a)-r):s=o(t,n),s}};var GK=Math.abs,MAt=["width","height","left","top","bottom","right"],AAt={to(t){var n=this._canvasOptions.startPoint+(this._options.conversionValue?t:Math.round(t));return n>this._canvasOptions.endPoint?this._canvasOptions.endPoint:n},from(t){return t-this._canvasOptions.startPoint}},c1e=function(t){return we(MAt,function(n,e){t[e]=parseInt(t[e])||0}),t};function h1e(t){return{isStartSide:t?function(n,e,i,r){return n<=e[e.length-1][r]}:function(n,e,i,r){return n<e[0][i]},isEndSide:t?function(n,e,i,r){return n>e[0][i]}:function(n,e,i,r){return n>=e[e.length-1][r]},isInBreak:t?function(n,e,i,r){return n>e[r]&&n<=e[i]}:function(n,e,i,r){return n>=e[i]&&n<e[r]},isBetweenBreaks:t?function(n,e,i,r,o){return n>=e[o]&&n<i[r]}:function(n,e,i,r,o){return n<e[r]&&n>=i[o]},getLength:t?function(n,e){return e.length-n.length}:function(n){return n.length},getBreaksSize:t?function(n,e){return e.cumulativeWidth-n.cumulativeWidth}:function(n){return n.cumulativeWidth}}}var EI=function(t,n,e){this.update(t,n,e)};function p1e(t){return{stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,opacity:1}}function x4(t,n,e,i,r,o,a){var s=a||t._tickOffset,l=t._axisLineGroup,u=t._axisElementsGroup,f=p1e(e),S=p1e(i),T=/^\s+$/,L=t.getOptions().label,z=t._textOptions;function j(ie){var te=t._textFontStyles,re=L.customizeColor;return re&&re.call&&(te=se({},t._textFontStyles,{fill:re.call(ie,ie)})),te}function Y(ie,te){var re=t.formatHint(ie.value,L,te);Z(re)&&""!==re&&ie.getContentContainer().setTitle(re)}return function(ie){var te={value:ie,updateValue(re){this.value=ie=re},initCoords:function(){this.coords=t._getTranslatedValue(ie,s),this.labelCoords=t._getTranslatedValue(ie)},saveCoords(){this._lastStoredCoordinates={coords:this._storedCoords,labelCoords:this._storedLabelsCoords},this._storedCoords=this.coords,this._storedLabelsCoords=this.templateContainer?this._getTemplateCoords():this.labelCoords},resetCoordinates(){this._lastStoredCoordinates&&(this._storedCoords=this._lastStoredCoordinates.coords,this._storedLabelsCoords=this._lastStoredCoordinates.labelCoords)},drawMark(re){!e.visible||r===ie||t.areCoordsOutsideAxis(this.coords)||(this.mark?(this.mark.append(l),t.sharp(this.mark,t.getSharpDirectionByCoords(this.coords)),this.updateTickPosition(re)):(this.mark=t._createPathElement([],f,t.getSharpDirectionByCoords(this.coords)).append(l),this.updateTickPosition(re)))},setSkippedCategory(re){r=re},_updateLine(re,he,fe,Te,Re){if(re){if(null===he.points||null===he.r)return void re.remove();Te&&fe&&null!==fe.points?(he.opacity=1,re.attr(fe),re.animate(he)):(he.opacity=Te?0:1,re.attr(he),Te&&re.animate({opacity:1},{delay:.5,partitionDuration:.5})),this.coords.angle&&t._rotateTick(re,this.coords,Re)}},updateTickPosition:function(re,he){this._updateLine(this.mark,{points:t._getTickMarkPoints(te.coords,e.length,re)},this._storedCoords&&{points:t._getTickMarkPoints(te._storedCoords,e.length,re)},he,!1)},drawLabel:function(re,he){if(this.templateContainer&&t.isRendered())this.updateLabelPosition();else if(!L.visible||o||t.getTranslator().getBusinessRange().isEmpty()||t.areCoordsOutsideAxis(this.labelCoords))this.label&&this.removeLabel();else{var Te=L.template,Re=t.formatLabel(ie,L,re);if(this.label)return this.label.attr({text:Re,rotate:0}).append(u),Y(this,re),void this.updateLabelPosition();Te?(this.templateContainer=n.g().append(u),this._templateDef&&this._templateDef.reject(),this._templateDef=new et,he.render({model:{valueText:Re,value:this.value,labelFontStyle:j(this),labelStyle:z},container:this.templateContainer.element,onRendered:()=>{this.updateLabelPosition(),this._templateDef&&this._templateDef.resolve()}})):Z(Re)&&""!==Re&&!T.test(Re)&&(this.label=n.text(Re).css(j(this)).attr(z).append(u),this.updateLabelPosition(),Y(this,re));var He=this.getContentContainer();He&&He.data("chart-data-argument",this.value),this.templateContainer&&Y(this,re)}},getTemplateDeferred(){return this._templateDef},getContentContainer(){return this.templateContainer||this.label},fadeOutElements(){var re={opacity:1},he={opacity:0},fe={partitionDuration:.5};this.getContentContainer()&&this._fadeOutLabel(),this.grid&&this.grid.append(t._axisGridGroup).attr(re).animate(he,fe),this.mark&&this.mark.append(t._axisLineGroup).attr(re).animate(he,fe)},_fadeInLabel(){var re=t._renderer.g().attr({opacity:0}).append(t._axisElementsGroup).animate({opacity:1},{delay:.5,partitionDuration:.5});this.getContentContainer().append(re)},_fadeOutLabel(){var re=t._renderer.g().attr({opacity:1}).animate({opacity:0},{partitionDuration:.5}).append(t._axisElementsGroup).toBackground();this.getContentContainer().append(re)},_getTemplateCoords(){return t._getLabelAdjustedCoord(this,(t._constantLabelOffset||0)+(te.labelOffset||0))},updateLabelPosition:function(re){var he=this.templateContainer;if(this.getContentContainer())if(re&&this._storedLabelsCoords)if(he){he.attr(this._storedLabelsCoords);var fe=this._getTemplateCoords();he.animate(fe)}else this.label.attr({x:this._storedLabelsCoords.x,y:this._storedLabelsCoords.y}),this.label.animate({x:this.labelCoords.x,y:this.labelCoords.y});else{if(he){var Te=this._getTemplateCoords();he.attr(Te)}else this.label.attr({x:this.labelCoords.x,y:this.labelCoords.y});re&&this._fadeInLabel()}},updateMultilineTextAlignment(){L.template||!this.label||this.label.attr({textsAlignment:this.labelAlignment||t.getOptions().label.alignment})},drawGrid:function(re){i.visible&&r!==this.value&&(this.grid?(this.grid.append(t._axisGridGroup),t.sharp(this.grid,t.getSharpDirectionByCoords(this.coords)),this.updateGridPosition()):(this.grid=re(this,S),this.grid&&this.grid.append(t._axisGridGroup)))},updateGridPosition:function(re){this._updateLine(this.grid,t._getGridPoints(te.coords),this._storedCoords&&t._getGridPoints(this._storedCoords),re,!0)},removeLabel(){var re=this.getContentContainer();re&&re.remove(),this._templateDef&&this._templateDef.reject(),this._templateDef=this.templateContainer=this.label=null}};return te}}EI.prototype={constructor:EI,reinit:function(){var t=this,n=t._options,e=t._businessRange,i=e.categories||[],r={},o=t._prepareCanvasOptions(),a=Gg(i,e.minVisible,e.maxVisible).categories,s=a.length;if(e.isEmpty())r=AAt;else switch(e.axisType){case"logarithmic":r=kAt;break;case"semidiscrete":r=TAt,o.ratioOfCanvasRange=o.canvasLength/(bt.addInterval(o.rangeMaxVisible,n.interval)-o.rangeMinVisible);break;case"discrete":r=OAt,t._categories=i,o.interval=t._getDiscreteInterval(n.addSpiderCategory?s+1:s,o),t._categoriesToPoints=function(t){var n={};return t.forEach(function(e,i){n[e.valueOf()]=i}),n}(i),s&&(o.startPointIndex=t._categoriesToPoints[a[0].valueOf()],t.visibleCategories=a);break;default:"datetime"===e.dataType&&(r=IAt)}(t._oldMethods||[]).forEach(function(l){delete t[l]}),t._oldMethods=Object.keys(r),se(t,r),t._conversionValue=n.conversionValue?function(l){return l}:function(l){return Math.round(l)},t.sc={},t._checkingMethodsAboutBreaks=[h1e(!1),h1e(t.isInverted())],t._translateBreaks(),t._calculateSpecialValues()},_translateBreaks:function(){var e,i,r,o,t=this._breaks,n=this._options.breaksSize;if(void 0!==t)for(e=0,o=t.length;e<o;e++)r=this.translate((i=t[e]).to),i.end=r,i.start=i.gapSize?r:this.isInverted()?r+n:r-n},_checkValueAboutBreaks:function(t,n,e,i,r){var o,a,l,u,s={length:0,breaksSize:void 0,inBreak:!1},f=t[t.length-1];if(r.isStartSide(n,t,e,i))return s;if(r.isEndSide(n,t,e,i))return{length:f.length,breaksSize:f.cumulativeWidth,inBreak:!1};for(o=0,a=t.length;o<a;o++){if(u=t[o-1],r.isInBreak(n,l=t[o],e,i)){s.inBreak=!0,s.break=l;break}if(u&&r.isBetweenBreaks(n,l,u,e,i)){s={length:r.getLength(u,f),breaksSize:r.getBreaksSize(u,f),inBreak:!1};break}}return s},isInverted:function(){return!(this._options.isHorizontal^this._businessRange.invert)},_getDiscreteInterval:function(t,n){var e=t-(this._options.stick?1:0);return e>0?n.canvasLength/e:n.canvasLength},_prepareCanvasOptions(){var r,t=this._businessRange,n=this._canvasOptions=function LAt(t){var n=t.min,e=t.max,i=t.minVisible,r=t.maxVisible;return"logarithmic"===t.axisType&&(r=du(r,t.base,t.allowNegatives,t.linearThreshold),i=du(i,t.base,t.allowNegatives,t.linearThreshold),n=du(n,t.base,t.allowNegatives,t.linearThreshold),e=du(e,t.base,t.allowNegatives,t.linearThreshold)),{base:t.base,rangeMin:n,rangeMax:e,rangeMinVisible:i,rangeMaxVisible:r}}(t),e=this._canvas,i=this._breaks;return n.startPadding=e.startPadding||0,n.endPadding=e.endPadding||0,this._options.isHorizontal?(n.startPoint=e.left+n.startPadding,r=e.width,n.endPoint=e.width-e.right-n.endPadding,n.invert=t.invert):(n.startPoint=e.top+n.startPadding,r=e.height,n.endPoint=e.height-e.bottom-n.endPadding,n.invert=!t.invert),this.canvasLength=n.canvasLength=n.endPoint-n.startPoint,n.rangeDoubleError=Math.pow(10,dbe(n.rangeMax-n.rangeMin)-dbe(r)-2),n.ratioOfCanvasRange=n.canvasLength/(n.rangeMaxVisible-n.rangeMinVisible),void 0!==i&&(n.ratioOfCanvasRange=(n.canvasLength-i[i.length-1].cumulativeWidth)/(n.rangeMaxVisible-n.rangeMinVisible-i[i.length-1].length)),n},updateCanvas:function(t){this._canvas=c1e(t),this.reinit()},updateBusinessRange:function(t){var n=t.breaks||[];this._userBreaks=t.userBreaks||[],this._businessRange=function(t){function n(e,i){!Z(t[e])&&Z(t[i])&&(t[e]=t[i])}return t instanceof Os||(t=new Os(t)),n("minVisible","min"),n("maxVisible","max"),t}(t),this._breaks=n.length?function RAt(t,n){var r,o,a,s,e="logarithmic"===n.axisType?function(f){return du(f,n.base)}:function(f){return f},i=[],l=t.length,u=0;for(s=0;s<l;s++)o=e((r=t[s]).from),a=e(r.to),i.push({trFrom:o,trTo:a,from:r.from,to:r.to,length:u+=a-o,cumulativeWidth:r.cumulativeWidth});return i}(n,this._businessRange):void 0,this.reinit()},update:function(t,n,e){this._options=se(this._options||{},e),this._canvas=c1e(n),this.updateBusinessRange(t)},getBusinessRange:function(){return this._businessRange},getEventScale:function(t){return t.deltaScale||1},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var s,t=this._canvasOptions,n=t.startPoint-t.startPadding,e=t.endPoint+t.endPadding,i=this._businessRange,r=i.minVisible,o=i.maxVisible,a=n+t.canvasLength/2;if(r<0&&o>0&&r!==o&&(s=this.translate(0,1)),!Z(s)){var l=i.invert^(r<0&&o<=0);s=this._options.isHorizontal?l?e:n:l?n:e}this.sc={canvas_position_default:s,canvas_position_left:n,canvas_position_top:n,canvas_position_center:a,canvas_position_middle:a,canvas_position_right:e,canvas_position_bottom:e,canvas_position_start:t.invert?e:n,canvas_position_end:t.invert?n:e}},translateSpecialCase(t){return this.sc[t]},_calculateProjection:function(t){var n=this._canvasOptions;return n.invert?n.endPoint-t:n.startPoint+t},_calculateUnProjection:function(t){var n=this._canvasOptions;return"datetime"===this._businessRange.dataType&&(t=Math.round(t)),n.invert?n.rangeMaxVisible.valueOf()-t:n.rangeMinVisible.valueOf()+t},getMinBarSize:function(t){var n=this.getCanvasVisibleArea(),e=this.from(n.min+t);return GK(this.from(n.min)-(Z(e)?e:this.from(n.max)))},checkMinBarSize:function(t,n,e){return GK(t)<n?t>=0?n:-n:t},translate(t,n){var e=this.translateSpecialCase(t);return Z(e)?Math.round(e):isNaN(t)?null:this.to(t,n)},getInterval:function(t){var n,e=this._canvasOptions;return t=null!==(n=t)&&void 0!==n?n:this._businessRange.interval,Math.round(t?e.ratioOfCanvasRange*t:e.endPoint-e.startPoint)},zoom(t,n,e){var i=this._canvasOptions;if(i.rangeMinVisible.valueOf()===i.rangeMaxVisible.valueOf()&&0!==t)return this.zoomZeroLengthRange(t,n);var r=i.startPoint,o=i.endPoint,a=this.isInverted(),s=(r+t)/n,l=(o+t)/n;e=e||{};var S,T,u=this.to(a?e.endValue:e.startValue),f=this.to(a?e.startValue:e.endValue);return u>s&&(l-=s-u,s=u,S=a?e.endValue:e.startValue),f<l&&(s-=l-f,l=f,T=a?e.startValue:e.endValue),f-u<l-s&&(s=u,l=f),n=(r+(t=(o-r)*s/(l-s)-r))/s||1,S=Z(S)?S:Kr(this.from(s,1)),T=Z(T)?T:Kr(this.from(l,-1)),n<=1&&(S=this._correctValueAboutBreaks(S,1===n?t:-1),T=this._correctValueAboutBreaks(T,1===n?t:1)),S>T?(S=S>e.endValue?e.endValue:S,T=T<e.startValue?e.startValue:T):(S=S<e.startValue?e.startValue:S,T=T>e.endValue?e.endValue:T),{min:S,max:T,translate:Kr(t),scale:Kr(n)}},_correctValueAboutBreaks(t,n){var e=this._userBreaks.filter(i=>t>=i.from&&t<=i.to);return e.length?n>0?e[0].to:e[0].from:t},zoomZeroLengthRange(t,n){var e=this._canvasOptions,i=e.rangeMin,r=e.rangeMax,o=(r.valueOf()!==i.valueOf()?r.valueOf()-i.valueOf():GK(e.rangeMinVisible.valueOf()-i.valueOf()))/e.canvasLength,a=Sa(r)||Sa(i),s="logarithmic"===this._businessRange.axisType,l=e.rangeMinVisible.valueOf()-o,u=e.rangeMaxVisible.valueOf()+o;return{min:l=s?Kr(_C(l,e.base)):a?new Date(l):l,max:u=s?Kr(_C(u,e.base)):a?new Date(u):u,translate:t,scale:n}},getMinScale:function(t){var{dataType:n,interval:e}=this._businessRange;return"datetime"===n&&1===e?this.getDateTimeMinScale(t):t?1.1:.9},getDateTimeMinScale(t){var n=this._canvasOptions,e=n.canvasLength/n.ratioOfCanvasRange;return e+=(parseInt(.1*e)||1)*(t?-2:2),n.canvasLength/(Math.max(e,1)*n.ratioOfCanvasRange)},getScale:function(t,n){var e=this._canvasOptions;return e.rangeMax===e.rangeMin?1:(t=Z(t)?this.fromValue(t):e.rangeMin,n=Z(n)?this.fromValue(n):e.rangeMax,(e.rangeMax-e.rangeMin)/Math.abs(t-n))},isValid:function(t){var n=this._canvasOptions;return null!==(t=this.fromValue(t))&&!isNaN(t)&&t.valueOf()+n.rangeDoubleError>=n.rangeMin&&t.valueOf()-n.rangeDoubleError<=n.rangeMax},getCorrectValue:function(t,n){var i,e=this._breaks;return t=this.fromValue(t),this._breaks&&!0===(i=this._checkValueAboutBreaks(e,t,"trFrom","trTo",this._checkingMethodsAboutBreaks[0])).inBreak?this.toValue(n>0?i.break.trTo:i.break.trFrom):this.toValue(t)},to:function(t,n){var e=this.getBusinessRange();if(Z(e.maxVisible)&&Z(e.minVisible)&&e.maxVisible.valueOf()===e.minVisible.valueOf())return Z(t)&&e.maxVisible.valueOf()===t.valueOf()?this.translateSpecialCase(0===t&&this._options.shiftZeroValue?"canvas_position_default":"canvas_position_middle"):null;t=this.fromValue(t);var i=this._canvasOptions,r=this._breaks,o={length:0},a=0;return void 0!==r&&(o=this._checkValueAboutBreaks(r,t,"trFrom","trTo",this._checkingMethodsAboutBreaks[0]),a=Z(o.breaksSize)?o.breaksSize:0),!0===o.inBreak?n>0?o.break.start:n<0?o.break.end:null:this._conversionValue(this._calculateProjection((t-i.rangeMinVisible-o.length)*i.ratioOfCanvasRange+a))},from:function(t,n){var e=this._breaks,i={length:0},r=this._canvasOptions,o=r.startPoint,a=0;return void 0!==e&&(i=this._checkValueAboutBreaks(e,t,"start","end",this._checkingMethodsAboutBreaks[1]),a=Z(i.breaksSize)?i.breaksSize:0),!0===i.inBreak?n>0?this.toValue(i.break.trTo):n<0?this.toValue(i.break.trFrom):null:this.toValue(this._calculateUnProjection((t-o-a)/r.ratioOfCanvasRange+i.length))},isValueProlonged:!1,getRange:function(){return[this.toValue(this._canvasOptions.rangeMin),this.toValue(this._canvasOptions.rangeMax)]},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(t,n,e){return this._add(t,n,(this._businessRange.invert?-1:1)*e)},_add:function(t,n,e){return this.toValue(this.fromValue(t)+n*e)},fromValue:function(t){return null!==t?Number(t):null},toValue:function(t){return null!==t?Number(t):null},ratioOfCanvasRange(){return this._canvasOptions.ratioOfCanvasRange},convert:t=>t,getRangeByMinZoomValue(t,n){return n.minVisible+t<=this._businessRange.max?[n.minVisible,n.minVisible+t]:[n.maxVisible-t,n.maxVisible]}};var BAt=[0,1,2,3,4,5,6];function q1(t){return(t+1)%7}function VAt(t,n){for(var e=t.start,i=t.end;e!==i;){if(e===n)return!0;e=q1(e)}return!1}function HAt(t,n){for(var e=0;t!==n;)t=q1(t),e++;return e}function $At(t,n,e,i,r){var o=function UAt(t){var n=function NAt(t){return BAt.filter(function(n){return!t.some(function(e){return e===n})})}(t);if(n.length<7)for(;q1(n[n.length-1])===n[0];)n.unshift(n.pop());return n}(e),a=function WAt(t,n,e){var i=t.getDate(),r=[];return e.reduce(function(a,s){var l=a[1];return void 0===l.start?(l={start:s,end:q1(s)},a[0].push(l),[a[0],l]):l.end===s?(l.end=q1(s),a):(l={start:s,end:q1(s)},a[0].push(l),[a[0],l])},[[],{}])[0].forEach(function(a){var s=new Date(t);for(s=bt.trimTime(s);s<n;){i=s.getDay();var l=s.getDate();if(VAt(a,i)){var u=new Date(s);s.setDate(l+HAt(i,a.end));var f=new Date(s);r.push({from:u,to:f})}s.setDate(s.getDate()+1)}}),r}(t,n,o);return a.push.apply(a,function jAt(t,n,e,i){var r,o=function(l){return l===r},a=bt.trimTime(t),s=bt.trimTime(n);return s.setDate(n.getDate()+1),e.reduce(function(l,u){var f,S;return u=new Date(u),r=u.getDay(),!i.some(o)&&u>=a&&u<=s&&(f=bt.trimTime(u),(S=new Date(f)).setDate(f.getDate()+1),l.push({from:f,to:S})),l},[])}(t,n,r||[],o)),function KAt(t){return t.map(function(n){return{from:n.from,to:n.to,gapSize:bt.convertMillisecondsToDateUnits(n.to-n.from)}})}(function GAt(t,n){var i,e=t.slice(),r=function(o){if(o=bt.trimTime(new Date(o)),e[i].from<=o&&e[i].to>o){var a=function zAt(t,n){var e=[],i=new Date(n);return i.setDate(n.getDate()+1),n>t.from&&e.push({from:t.from,to:n}),i<t.to&&e.push({from:i,to:t.to}),e}(e[i],o);2===a.length?e.splice(i,1,a[0],a[1]):1===a.length?e.splice(i,1,a[0]):e.splice(i,1)}};for(i=0;i<e.length;i++)n.forEach(r);return e}(a,i||[]))}var g1e=bt.getNextDateUnit,f1e=bt.correctDateWithUnitBeginning,Op=Math,Y1=Op.max,Uu="top",pl="bottom",os="left",Wu="right",Ph="center",XAt={left:-1,top:-1,right:0,bottom:0,center:-.5};function v1e(t){return t.sort(function(n,e){return n.from-e.from})}function y1e(t,n,e,i){var r=i,o=n&&bt.getDatesDifferences(n,t);return n&&"year"!==e&&(function JAt(t,n){var e,i;if("week"===n&&(n="day"),"quarter"===n&&(n="month"),t[n])for(i=0;i<bt.dateUnitIntervals.length&&(t[e=bt.dateUnitIntervals[i]]&&(t[e]=!1,t.count--),e!==n);i++);}(o,e),r=Es.getDateFormatByDifferences(o)),r}function C1e(t,n){return n.reduce(function(e,i){return Y1(e,t(i))},0)}function b1e(t,n,e){return t.some(function(i){return i.label.verticalAlignment===n})&&e||0}function x1e(t){return Op.abs(t.x)||0}function w1e(t){return Op.abs(t.width-Op.abs(t.x))||0}const S1e={linear:{_getStep:function(t,n){var e=this._options.label.minSpacing,r=C1e(this._isHorizontal?function(o){return o.width+e}:function(o){return o.height},t);return n&&(r=function iFt(t,n){var e=(n=(n=Op.abs(n))%180>=90?90-n%90:n%90)*(Op.PI/180);return e>=Op.atan(t.height/t.width)?t.height/Op.abs(Op.sin(e)):t.width}({width:r,height:this._getMaxLabelHeight(t,0)},n)),wr_getTicksCountInRange(this._majorTicks,this._isHorizontal?"x":"y",r)},_getMaxLabelHeight:function(t,n){return C1e(function(e){return e.height},t)+n},_validateOverlappingMode:function(t,n){return this._isHorizontal&&("rotate"===n||"stagger"===n)||!this._isHorizontal?wr_validateOverlappingMode(t):t},_validateDisplayMode:function(t){return this._isHorizontal?t:"standard"},getMarkerTrackers:function(){return this._markerTrackers},_getSharpParam:function(t){return this._isHorizontal^t?"h":"v"},_createAxisElement:function(){return this._renderer.path([],"line")},_updateAxisElementPosition:function(){var t=this._axisPosition,n=this._getCanvasStartEnd();this._axisElement.attr({points:this._isHorizontal?[n.start,t,n.end,t]:[t,n.start,t,n.end]})},_getTranslatedCoord:function(t,n){return this._translator.translate(t,n)},_initAxisPositions(){this.customPositionIsAvailable()&&(this._customBoundaryPosition=this.getCustomBoundaryPosition()),this._axisPosition=!this.customPositionIsAvailable()||this.customPositionIsBoundary()?this.getPredefinedPosition(this.getResolvedBoundaryPosition()):this.getCustomPosition()},_getTickMarkPoints(t,n,e){var a,i=this._isHorizontal,r=this._options.tickOrientation,o=this._options.label.position;if(Z(r))a=XAt[r]*n;else{var s=e.shift||0;(!i&&o===os||i&&o!==pl)&&(s=-s),a=s+this.getTickStartPositionShift(n)}return[t.x+(i?0:a),t.y+(i?a:0),t.x+(i?0:a+n),t.y+(i?a+n:0)]},getTickStartPositionShift(t){var n=this._options.width,e=this.getResolvedBoundaryPosition();return t%2==1?(n%2!=0||e!==os&&e!==Uu)&&(n%2!=1||e!==Wu&&e!==pl||this.hasNonBoundaryPosition())?-Math.floor(t/2):Math.floor(-t/2):-t/2+(n%2==0?0:e===pl||e===Wu?-1:1)},_getTitleCoords:function(){var t=this._isHorizontal,n=this._axisPosition,e=this._axisPosition,i=this._options.title.alignment,r=this._getCanvasStartEnd(),o=t||this._options.position===os,l=i===os?o?r.start:r.end:i===Wu?o?r.end:r.start:r.start+(r.end-r.start)/2;return t?n=l:e=l,{x:n,y:e}},_drawTitleText:function(t,n){var e=this._options,i=e.title,r={opacity:i.opacity,align:i.alignment,class:i.cssClass};if(i.text&&t){n=n||this._getTitleCoords(),this._isHorizontal||(r.rotate=e.position===os?270:90);var o=this._renderer.text(i.text,n.x,n.y).css(_a(i.font)).attr(r).append(t);return this._checkTitleOverflow(o),o}},_updateTitleCoords:function(){this._title&&this._title.element.attr(this._getTitleCoords())},_drawTitle:function(){var t=this._drawTitleText(this._axisTitleGroup);t&&(this._title={element:t})},_measureTitle:function(){this._title&&(this._title.bBox&&!this._title.originalSize&&(this._title.originalSize=this._title.bBox),this._title.bBox=this._title.element.getBBox())},_drawDateMarker:function(t,n,e){var a,i=this._options.marker,r=this._translator.getBusinessRange().invert,o=i.width+i.textLeftIndent;if(null!==n.x){n.withoutStick||(a=this._renderer.path([n.x,n.y,n.x,n.y+i.separatorHeight],"line").attr({"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,sharp:"h"}).append(this._axisElementsGroup));var s=String(this.formatLabel(t,n.labelOptions,e));return{date:t,x:n.x,y:n.y,cropped:n.withoutStick,label:this._renderer.text(s,n.x,n.y).css(_a(i.label.font)).append(this._axisElementsGroup),line:a,getContentContainer(){return this.label},getEnd:function(){return this.x+(r?-1:1)*(o+this.labelBBox.width)},setTitle:function(){this.title=s},hideLabel:function(){this.label.dispose(),this.label=null,this.title=s},hide:function(){a&&(a.dispose(),a=null),this.label.dispose(),this.label=null,this.hidden=!0}}}},_drawDateMarkers:function(){var a,t=this,n=t._options,e=t._translator,i=t._getViewportRange(),r=i.minVisible,o=[];function s(T,R,L){return t._drawDateMarker(T,{x:e.translate(T),y:l,labelOptions:t._getLabelFormatOptions(R),withoutStick:L},i)}if(i.isEmpty()||!n.marker.visible||"datetime"!==n.argumentType||"discrete"===n.type||t._majorTicks.length<=1)return[];var l=t._axisPosition+n.marker.topIndent,u=bt.getDateUnitInterval(this._tickInterval),f=function nFt(t){var n=g1e(t);return"quarter"===n&&(n=g1e(n)),n}(u),S=function QAt(t,n,e){var r,i=t;return t=f1e(t,e),n=f1e(n,e),(r=bt.getSequenceByInterval(t,n,e)).length&&i>r[0]&&(r=r.slice(1)),r}(r,i.maxVisible,f);return(S.length>1||1===S.length&&r<S[0])&&(o=S.reduce(function(T,R,L,z){var j=s(R,y1e(R,z[L-1]||r<R&&r,u,f));return j&&T.push(j),T},[]),r<S[0]&&(a=s(r,y1e(r,S[0],u,f),!0))&&o.unshift(a)),o},_adjustDateMarkers:function(t){t=t||0;var s,n=this,e=this._options.marker,i=e.width+e.textLeftIndent,r=this._translator.getBusinessRange().invert,o=n._getCanvasStartEnd(),a=this._dateMarkers;return a.length?(a[0].cropped&&(this._checkMarkersPosition(r,a[1],a[0])||a[0].hideLabel()),a.forEach(function(l,u,f){l.cropped||((r?l.getEnd()<o.end:l.getEnd()>o.end)?l.hideLabel():n._checkMarkersPosition(r,l,s)?s=l:l.hide())}),this._dateMarkers.forEach(function(l){if(l.label){var u=l.labelBBox;l.label.attr({translateX:r?l.x-i-u.x-u.width:l.x+i-u.x,translateY:l.y+e.textTopIndent-u.y+t})}l.line&&l.line.attr({translateY:t})}),n._initializeMarkersTrackers(t),t+e.topIndent+e.separatorHeight):t},_checkMarkersPosition:function(t,n,e){return void 0===e||(t?n.x<e.getEnd():n.x>e.getEnd())},_initializeMarkersTrackers:function(t){var n=this._options.marker.separatorHeight,e=this._renderer,i=this._translator.getBusinessRange(),r=this._getCanvasStartEnd(),o=this._axisElementsGroup;this._markerTrackers=this._dateMarkers.filter(function(a){return!a.hidden}).map(function(a,s,l){var u=l[s+1]||{x:r.end,date:i.max},f=a.x,S=a.y+t,T=e.path([f,S,f,S+n,u.x,S+n,u.x,S,f,S],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(o);return T.data("range",{startValue:a.date,endValue:u.date}),a.title&&T.setTitle(a.title),T})},_getLabelFormatOptions:function(t){var n=this._markerLabelOptions;return n||(this._markerLabelOptions=n=se(!0,{},this._options.marker.label)),Z(this._options.marker.label.format)||(n.format=t),n},_adjustConstantLineLabels:function(t){var n=this,e=n._options.position,i=n.getCanvas(),r=i.left,o=i.width-i.right,a=i.top,s=i.height-i.bottom,l=a+(s-a)/2,u=r+(o-r)/2,f=0;return t.forEach(function(S){var fe,Te,R=S.options,L=R.paddingTopBottom,z=R.paddingLeftRight,j=R.label,Y=j.verticalAlignment,ie=j.horizontalAlignment,te="inside"===j.position,re=S.label,he=S.labelBBox;if(null!==re&&!he.isEmpty){if(n._isHorizontal)if(te)switch(fe=ie===os?S.coord-z-he.x-he.width:S.coord+z-he.x,Y){case Ph:Te=l-he.y-he.height/2;break;case pl:Te=s-L-he.y-he.height;break;default:Te=a+L-he.y}else e===Y&&(f=Y1(f,he.height+L)),fe=S.coord-he.x-he.width/2,Te=Y===pl?s+L-he.y:a-L-he.y-he.height;else if(te)switch(Te=Y===pl?S.coord+L-he.y:S.coord-L-he.y-he.height,ie){case Ph:fe=u-he.x-he.width/2;break;case Wu:fe=o-z-he.x-he.width;break;default:fe=r+z-he.x}else e===ie&&(f=Y1(f,he.width+z)),Te=S.coord-he.y-he.height/2,fe=ie===Wu?o+z-he.x:r-z-he.x-he.width;re.attr({translateX:fe,translateY:Te})}}),f},_drawConstantLinesForEstimating:function(t){var n=this,e=this._renderer,i=e.g();return t.forEach(function(r){n._drawConstantLineLabelText(r.label.text,0,0,r.label,i).attr({align:"center"})}),i.append(e.root)},_estimateLabelHeight:function(t,n){var e=t.height,i=n.drawingType;if(("stagger"===this._validateDisplayMode(i)||"stagger"===this._validateOverlappingMode(n.overlappingBehavior,i))&&(e=2*e+n.staggeringSpacing),"rotate"===this._validateDisplayMode(i)||"rotate"===this._validateOverlappingMode(n.overlappingBehavior,i)){var r=Ll(n.rotationAngle);e=e*r.cos+t.width*r.sin}return e&&(e+n.indentFromAxis||0)||0},estimateMargins:function(t){this.updateCanvas(t);var n=this._getViewportRange(),e=this._createTicksAndLabelFormat(n),i=e.ticks,r=e.tickInterval,o=this._options,a=this._outsideConstantLines.filter(he=>he.labelOptions.visible).map(he=>he.options),s=this._renderer.root,l=o.label.visible&&!n.isEmpty()&&i.length,u=l&&this.formatLabel(i[i.length-1],o.label,void 0,void 0,r,i),f=l&&this._renderer.text(u,0,0).css(this._textFontStyles).attr(this._textOptions).append(s),S=this._drawTitleText(s,{x:0,y:0}),T=this._drawConstantLinesForEstimating(a),R=!o.label.template&&f&&f.getBBox()||{x:0,y:0,width:0,height:0},L=S&&S.getBBox()||{x:0,y:0,width:0,height:0},z=T.getBBox(),j=L.height?L.height+o.title.margin:0,Y=this._estimateLabelHeight(R,o.label),ie=z.height?z.height+function rFt(t){return t.reduce(function(n,e){return Y1(n,e.paddingTopBottom)},0)}(a):0,te=Y+j,re={left:Y1(x1e(R),x1e(z)),right:Y1(w1e(R),w1e(z)),top:("top"===o.position?te:0)+b1e(a,"top",ie),bottom:("top"!==o.position?te:0)+b1e(a,"bottom",ie)};return f&&f.remove(),S&&S.remove(),T&&T.remove(),re},_checkAlignmentConstantLineLabels:function(t){var n=t.position,e=(t.verticalAlignment||"").toLowerCase(),i=(t.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===n?(e=e===pl?pl:Uu,i=Ph):(e=e===Ph?Ph:e===pl?pl:Uu,i=i===os?os:Wu):"outside"===n?(e=Ph,i=i===os?os:Wu):(e=e===pl?pl:Uu,i=i===Wu?Wu:i===Ph?Ph:os),t.verticalAlignment=e,t.horizontalAlignment=i},_getConstantLineLabelsCoords:function(t,n){var e=t,i=t;return this._isHorizontal?i=this._orthogonalPositions["top"===n.verticalAlignment?"start":"end"]:e=this._orthogonalPositions["right"===n.horizontalAlignment?"end":"start"],{x:e,y:i}},_getAdjustedStripLabelCoords:function(t){var n=t.options,e=n.paddingTopBottom,i=n.paddingLeftRight,r=n.label.horizontalAlignment,o=n.label.verticalAlignment,a=t.labelBBox,s=a.height,l=a.width,u=t.labelCoords,f=u.y-a.y,S=u.x-a.x;return o===Uu?f+=e:o===Ph?f-=s/2:o===pl&&(f-=e+s),r===os?S+=i:r===Ph?S-=l/2:r===Wu&&(S-=i+l),{translateX:S,translateY:f}},_adjustTitle:function(t){if(t=t||0,this._title){var n=this._options,e=n.position,i=n.title.margin,r=this._title,o=r.bBox,a=o.x,s=o.y,l=o.width,f=this._axisPosition,S=f-i-t,T=f+i+t,R={};this._isHorizontal?R.translateY=e===Uu?S-(s+o.height):T-s:R.translateX=e===os?S-(a+l):T-a,r.element.attr(R)}},_checkTitleOverflow:function(t){if(this._title||t){var n=this._getScreenDelta(),e=t?{bBox:t.getBBox(),element:t}:this._title,i=this._options.title,r=e.bBox;(this._isHorizontal?r.width:r.height)>n?(e.element.setMaxSize(n,void 0,{wordWrap:i.wordWrap||"none",textOverflow:i.textOverflow||"ellipsis"}),this._wrapped=i.wordWrap&&"none"!==i.wordWrap):!this._wrapped&&e.originalSize&&n>(this._isHorizontal?e.originalSize.width:e.originalSize.height)&&e.element.restoreText()}},coordsIn:function(t,n){var e=this.getCanvas(),i=this._options.isHorizontal,r=this._options.position,o=i?n:t;return!(i&&(t<e.left||t>e.width-e.right)||!i&&(n<e.top||n>e.height-e.bottom))&&(i&&"top"===r||!i&&"left"===r?o<e[r]:o>e[i?"height":"width"]-e[r])},_boundaryTicksVisibility:{min:!0,max:!0},adjust(){var t=this._seriesData,n=this._series.filter(e=>e.isVisible()).reduce((e,i)=>{var r=i.getViewport();return e.min=Z(r.min)?e.min<r.min?e.min:r.min:e.min,e.max=Z(r.max)?e.max>r.max?e.max:r.max:e.max,i.showZero&&(e=new Os(e)).correctValueZeroLevel(),e},{});Z(n.min)&&Z(n.max)&&(t.minVisible=n.min,t.maxVisible=n.max),t.userBreaks=this._getScaleBreaks(this._options,{minVisible:t.minVisible,maxVisible:t.maxVisible},this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},hasWrap(){return this._wrapped},getAxisPosition(){return this._axisPosition},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(t,n,e){var s,l,i=this._orthogonalPositions,o=e.horizontalAlignment,a=e.verticalAlignment;return this._isHorizontal?(o===Ph?s=t+(n-t)/2:o===os?s=t:o===Wu&&(s=n),l=i[function tFt(t){var n="start";return"center"===t&&(n="center"),"bottom"===t&&(n="end"),n}(a)]):(s=i[function eFt(t){var n="start";return"center"===t&&(n="center"),"right"===t&&(n="end"),n}(o)],a===Uu?l=t:a===Ph?l=n+(t-n)/2:a===pl&&(l=n)),{x:s,y:l}},_getTranslatedValue:function(t,n){var e=this._translator.translate(t,n,"semidiscrete"===this._options.type&&this._options.tickInterval),i=this._axisPosition,r=this._isHorizontal;return{x:r?e:i,y:r?i:e}},areCoordsOutsideAxis:function(t){var n=this._isHorizontal?t.x:t.y,e=this.getVisibleArea();return n<e[0]||n>e[1]},_getSkippedCategory:function(t){var n;return"discrete"===this._options.type&&this._tickOffset&&0!==t.length&&(n=t[t.length-1]),n},_filterBreaks:function(t,n,e){var i=n.minVisible,r=n.maxVisible,o=e?e.width:0;return t.reduce(function(a,s){var S,l=s.from,u=s.to,f=a[a.length-1];if(!Z(l)||!Z(u))return a;if(l>u&&(u=[l,l=u][0]),a.length&&l<f.to)u>f.to&&(f.to=u>r?r:u,f.gapSize&&(f.gapSize=void 0,f.cumulativeWidth+=o));else if((l>=i&&l<r||u<=r&&u>i)&&(u=u<=r?u:r)-(l=l>=i?l:i)<r-i){var T,R;S={from:l,to:u,cumulativeWidth:(null!==(T=f?.cumulativeWidth)&&void 0!==T?T:0)+o},s.gapSize&&(S.gapSize=bt.convertMillisecondsToDateUnits(u-l),S.cumulativeWidth=null!==(R=f?.cumulativeWidth)&&void 0!==R?R:0),a.push(S)}return a},[])},_getScaleBreaks:function(t,n,e,i){var r=this,o=(t.breaks||[]).map(function(a){return{from:r.parser(a.startValue),to:r.parser(a.endValue)}});return"discrete"!==t.type&&"datetime"===t.dataType&&t.workdaysOnly&&(o=o.concat($At(n.minVisible,n.maxVisible,t.workWeek,t.singleWorkdays,t.holidays))),!i&&"discrete"!==t.type&&"datetime"!==t.dataType&&t.autoBreaksEnabled&&0!==t.maxAutoBreakCount&&(o=o.concat(function aFt(t,n,e){for(var{logarithmBase:i,type:r,maxAutoBreakCount:o}=t,{minVisible:a,maxVisible:s}=e,l=[],u="logarithmic"===r?(te,re)=>Nm(re/te,i):(te,re)=>re-te,f=u(a,s),S=n.reduce((te,re)=>{var he=re.getPointsInViewPort();return te[0]=te[0].concat(he[0]),te[1]=te[1].concat(he[1]),te},[[],[]]),L=.3*f,z=function oFt(t,n,e){var i,r,s,l,u,o=null,a=[];for(i=1,r=t.length;i<r;i++)u=e(s=t[i],l=t[i-1]),n.indexOf(s)>=0?(!o||u>o.length)&&(o={start:s,end:l,length:u}):(a.push(o&&u<o.length?o:{start:s,end:l,length:u}),o=null);return o&&a.push(o),a}(S[0].concat(S[1]).sort((te,re)=>re-te),S[1].filter(te=>S[0].indexOf(te)<0),u).sort((te,re)=>re.length-te.length),j=Op.min.apply(null,z.map(te=>te.length))/1e3,Y=Z(o)?Op.min(o,z.length):z.length,ie=0;ie<Y&&z[ie].length>=L&&!(f<=z[ie].length);ie++)((f-=z[ie].length)>j||f<-j)&&(l.push({from:z[ie].start,to:z[ie].end}),L=.3*f);return v1e(l),l}(t,e,n))),v1e(o)},_drawBreak:function(t,n,e,i,r,o){var a=t-(this._translator.isInverted()?0:i+1),s={"stroke-width":1,stroke:r.borderColor,sharp:r.isWaved?void 0:r.isHorizontal?"h":"v"},l={stroke:r.color,"stroke-width":i},f=function sFt(t,n,e,i,r,o,a){var s=a?"bezier":"line",l=t.g().append(n);return function(u,f){t.path(e(function lFt(t,n,e,i,r){if(!r)return[t,n+i,e,n+i];var o,a=(n+=i)+0,s=n+2,l=n+4,u=[[t,s]];for(o=t;o<e+24;o+=24)u.push([o+6,a,o+6,a,o+12,s,o+18,l,o+18,l,o+24,s]);return[].concat.apply([],u)}(i,r,o,u,a)),s).attr(f).append(l)}}(this._renderer,o,this._isHorizontal?uFt:function(S){return S},n,a,e,r.isWaved);f(i/2,l),f(0,s),f(i,s)},_createBreakClipRect:function(t,n){var r,e=this._canvas,i=n-t;return r=this._isHorizontal?this._renderer.clipRect(e.left,t,e.width,i):this._renderer.clipRect(t,e.top,i,e.height),this._breaksElements=this._breaksElements||[],this._breaksElements.push(r),r.id},_createBreaksGroup:function(t,n){var e=this._renderer.g().attr({class:this._axisCssPrefix+"breaks","clip-path":this._createBreakClipRect(t,n)}).append(this._scaleBreaksGroup);return this._breaksElements=this._breaksElements||[],this._breaksElements.push(e),e},_disposeBreaksGroup:function(){(this._breaksElements||[]).forEach(function(t){t.dispose()}),this._breaksElements=null},drawScaleBreaks:function(t){var o,a,l,u,f,n=this,e=n._options,i=e.breakStyle,r=e.position,s=n._translator.getBusinessRange().breaks||[];if(n._disposeBreaksGroup(),s&&s.length){var S={color:n._options.containerColor,borderColor:i.color,isHorizontal:n._isHorizontal,isWaved:"straight"!==i.line.toLowerCase()};t?(o=t.start,a=t.end):(o=n._orthogonalPositions.start-(!e.visible||n._axisShift||r!==os&&r!==Uu?0:3),a=n._orthogonalPositions.end+(!e.visible||r!==Wu&&r!==pl?0:3));var T=n._createBreaksGroup(o,a);n._axisShift&&e.visible&&(l=n._createBreaksGroup(u=n._axisPosition-n._axisShift-3,f=u+6)),s.forEach(function(R){if(!R.gapSize){var L=n._getTranslatedCoord(R.to);n._drawBreak(L,o,a,i.width,S,T),n._axisShift&&e.visible&&n._drawBreak(L,u,f,i.width,S,l)}})}},_getSpiderCategoryOption:Be,shift:function(t){var n=this._options,e=n.isHorizontal,i=this.getMultipleAxesSpacing(),r=this._axisConstantLineGroups;function o(a,s){var l={translateX:0,translateY:0},u=t[a]?t[a]+i:0;return l[e?"translateY":"translateX"]=(a===os||a===Uu?-1:1)*u,(s[a]||s).attr(l),u}this._axisShift=o(n.position,this._axisGroup),o(n.position,this._axisElementsGroup),(e?[Uu,pl]:[os,Wu]).forEach(a=>{o(a,r.above),o(a,r.under)})},getCustomPosition(t){var s,n=this.getOrthogonalAxis(),e=t??this.getResolvedPositionOption(),i=this.getOptions().offset,r=n.getTranslator(),o=n.getOptions().type,a=n.validateUnit(e);return"discrete"===o&&(!r._categories||r._categories.indexOf(a)<0)&&(a=void 0),s=this.positionIsBoundary(e)?this.getPredefinedPosition(e):Z(a)?r.to(a,-1):this.getPredefinedPosition(this.getOptions().position),isFinite(s)&&isFinite(i)&&(s+=i),s},getCustomBoundaryPosition(t){var{customPosition:n,offset:e}=this.getOptions(),i=t??this.getResolvedPositionOption(),r=this.getOrthogonalAxis(),o=r.getTranslator(),a=o.getCanvasVisibleArea();if(Z(r._orthogonalPositions)&&0!==o.canvasLength){var s=this.getCustomPosition(i);if(!Z(s))return this.getResolvedBoundaryPosition();if(Z(n)){if(s<=a.min)return this._isHorizontal?Uu:os;if(s>=a.max)return this._isHorizontal?pl:Wu}else if(Z(e)){if(s<=this._orthogonalPositions.start)return this._isHorizontal?Uu:os;if(s>=this._orthogonalPositions.end)return this._isHorizontal?pl:Wu}return s}},getResolvedPositionOption(){var t,n=this.getOptions();return null!==(t=n.customPosition)&&void 0!==t?t:n.position},customPositionIsAvailable(){var t=this.getOptions();return Z(this.getOrthogonalAxis())&&(Z(t.customPosition)||isFinite(t.offset))},hasNonBoundaryPosition(){return this.customPositionIsAvailable()&&!this.customPositionIsBoundary()},getResolvedBoundaryPosition(){return this.customPositionIsBoundary()?this._customBoundaryPosition:this.getOptions().position},customPositionEqualsToPredefined(){return this.customPositionIsBoundary()&&this._customBoundaryPosition===this.getOptions().position},customPositionIsBoundary(){return this.positionIsBoundary(this._customBoundaryPosition)},positionIsBoundary:t=>[Uu,os,pl,Wu].indexOf(t)>=0,getPredefinedPosition(t){var n;return null===(n=this._orthogonalPositions)||void 0===n?void 0:n[t===Uu||t===os?"start":"end"]},resolveOverlappingForCustomPositioning(t){var n=this;if(n.hasNonBoundaryPosition()||n.customPositionIsBoundary()||t.some(i=>i.hasNonBoundaryPosition())){var e={axes:[],ticks:[]};t.filter(i=>i.pane===n.pane).forEach(i=>{for(var r=0;r<n._majorTicks.length;r++){var o=n._majorTicks[r],a=o.label;if(a){e.axes.indexOf(i)<0&&n._detectElementsOverlapping(a,i._axisElement)&&(e.axes.push(i),n._shiftThroughOrthogonalAxisOverlappedTick(a,i));for(var s=0;s<i._majorTicks.length;s++){var u=i._majorTicks[s].label;if(u&&n._detectElementsOverlapping(a,u)){e.ticks.push(o),n._shiftThroughAxisOverlappedTick(o),r=n._majorTicks.length;break}}}o.mark&&e.ticks.indexOf(o)<0&&(n._isHorizontal&&o.mark.attr("translateY")?o.mark.attr({translateY:0}):!n._isHorizontal&&o.mark.attr("translateX")&&o.mark.attr({translateX:0}))}})}},_shiftThroughOrthogonalAxisOverlappedTick(t,n){var e=t.getBBox(),i=n.getAxisPosition(),r=n.getOptions().label,o=r.position,a=r.indentFromAxis/2,s=this._isHorizontal?"translateX":"translateY",l=this._isHorizontal?os:Uu,u=t.attr(s),f=(this._isHorizontal?e.x:e.y)+u,T=i-f,R=f+(this._isHorizontal?e.width:e.height)-i,L={};L[s]=u,T>0&&R>0&&(R-T>1?L[s]+=T+a:T-R>1?L[s]-=R+a:L[s]+=o===l?T+a:-(R+a),t.attr(L))},_shiftThroughAxisOverlappedTick(t){var n,e=t.label;if(e){var i=e.getBBox(),r=null===(n=t.mark)||void 0===n?void 0:n.getBBox(),o=this.getAxisPosition(),a=this.getOptions().label,s=a.indentFromAxis,l=a.position,u=this._isHorizontal?Uu:os,f=this._isHorizontal?"translateY":"translateX",S=e.attr(f),T=(this._isHorizontal?i.y:i.x)+S,L={};L[f]=S+(l===u?o-T+s:-(T-o+(this._isHorizontal?i.height:i.width)+s)),e.attr(L),t.mark&&(L[f]=(l===u?1:-1)*((this._isHorizontal?r.height:r.width)-1),t.mark.attr(L))}},_detectElementsOverlapping(t,n){if(!t||!n)return!1;var e=t.getBBox(),i=e.x+t.attr("translateX"),r=e.y+t.attr("translateY"),o=n.getBBox(),a=o.x+n.attr("translateX"),s=o.y+n.attr("translateY");return(a>=i&&a<=i+e.width||i>=a&&i<=a+o.width)&&(s>=r&&s<=r+e.height||r>=s&&r<=s+o.height)}}};function uFt(t){var e,n=[];for(e=0;e<t.length;e+=2)n.push(t[e+1]),n.push(t[e]);return n}var S4=Math.max,D1e=function(t,n){var e=n.left,i=n.top,r=n.width-n.right,o=n.height-n.bottom;return t.reduce(function(a,s){return!s||s.isEmpty?a:{left:S4(a.left,e-s.x),top:S4(a.top,i-s.y),right:S4(a.right,s.x+s.width-r),bottom:S4(a.bottom,s.y+s.height-o)}},{left:0,right:0,top:0,bottom:0})},BC=function(t){t.forEach(function(n){var e=n.getContentContainer();n.labelBBox=e?e.getBBox():{x:0,y:0,width:0,height:0}})},{PI:jK,abs:NC,atan:E1e,round:q_}=Math,dFt=Math.min,KK=Math.max,O1e=S1e.linear;function T1e(t){var n;return(t=Bc(t))>=315&&t<=360||t<45&&t>=0?n=1:t>=45&&t<135?n=2:t>=135&&t<225?n=3:t>=225&&t<315&&(n=4),n}var Xg={_calculateValueMargins(t){var{minVisible:n,maxVisible:e}=this._getViewportRange();return t&&t.length>1&&(e=(n=n<t[0].value?n:t[0].value)>t[t.length-1].value?e:t[t.length-1].value),{minValue:n,maxValue:e}},applyMargins(){var t=this._calculateValueMargins(this._majorTicks),n=this._translator.getBusinessRange();n.addRange({minVisible:t.minValue,maxVisible:t.maxValue,interval:this._calculateRangeInterval(n.interval)}),this._translator.updateBusinessRange(n)},_getTranslatorOptions:function(){return{isHorizontal:!0,conversionValue:!0,addSpiderCategory:this._getSpiderCategoryOption(),stick:this._getStick()}},getCenter:function(){return this._center},getRadius:function(){return this._radius},getAngles:function(){var t=this._options;return[t.startAngle,t.endAngle]},_updateRadius(t){var n=dFt(t.width-t.left-t.right,t.height-t.top-t.bottom)/2;this._radius=n<0?0:n},_updateCenter:function(t){this._center={x:t.left+(t.width-t.right-t.left)/2,y:t.top+(t.height-t.top-t.bottom)/2}},_processCanvas:function(t){return this._updateRadius(t),this._updateCenter(t),{left:0,right:0,width:this._getScreenDelta()}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var t=this.getCenter();this._axisElement.attr({cx:t.x,cy:t.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_validateOptions(t){var n=t.originValue,e=t.wholeRange={},i=t.period;Z(n)&&(n=this.validateUnit(n)),i>0&&"numeric"===t.argumentType&&(e.endValue=(n=n||0)+i,this._viewport=jg([n,e.endValue])),Z(n)&&(e.startValue=n)},getMargins(){var t=this._options.tick,n=KK(t.visible?t.length/2+t.shift:0,0),e=this.getRadius(),{x:i,y:r}=this._center,o=this._majorTicks.map(l=>l.label&&l.label.getBBox()).filter(l=>l),a=se({},this._canvas,{left:i-e,top:r-e,right:this._canvas.width-(i+e),bottom:this._canvas.height-(r+e)}),s=D1e(o,a);return Object.keys(s).forEach(l=>s[l]=s[l]<n?n:s[l]),s},_updateLabelsPosition(){BC(this._majorTicks),this._adjustLabelsCoord(0,0,!0),this._checkBoundedLabelsOverlapping(this._majorTicks,this._majorTicks.map(t=>t.labelBBox))},_setVisualRange:Be,applyVisualRangeSetter:Be,_getStick:function(){return this._options.firstPointOnStartAngle||"discrete"!==this._options.type},_getTranslatedCoord:function(t,n){return this._translator.translate(t,n)-90},_getCanvasStartEnd:function(){return{start:-90,end:270}},_getStripGraphicAttributes:function(t,n){var e=this.getCenter(),i=this.getAngles()[0],r=this.getRadius();return{x:e.x,y:e.y,innerRadius:0,outerRadius:r,startAngle:-n-i,endAngle:-t-i}},_createStrip:function(t){return this._renderer.arc(t.x,t.y,t.innerRadius,t.outerRadius,t.startAngle,t.endAngle)},_getStripLabelCoords:function(t,n){var e=this._getStripGraphicAttributes(t,n),r=Ll(e.startAngle+(e.endAngle-e.startAngle)/2),o=this.getRadius()/2,a=this.getCenter();return{x:q_(a.x+o*r.cos),y:q_(a.y-o*r.sin),align:"center"}},_getConstantLineGraphicAttributes:function(t){var n=this.getCenter(),e=this.getRadius();return{points:[n.x,n.y,n.x+e,n.y]}},_createConstantLine:function(t,n){return this._createPathElement(this._getConstantLineGraphicAttributes(t).points,n)},_rotateConstantLine(t,n){var{x:e,y:i}=this.getCenter();t.rotate(n+this.getAngles()[0],e,i)},_getConstantLineLabelsCoords:function(t){var n=Ll(-t-this.getAngles()[0]),e=this.getRadius()/2,i=this.getCenter();return{x:q_(i.x+e*n.cos),y:q_(i.y-e*n.sin)}},_checkAlignmentConstantLineLabels:Be,_adjustDivisionFactor:function(t){return 180*t/(this.getRadius()*jK)},_getScreenDelta:function(){var t=this.getAngles();return NC(t[0]-t[1])},_getTickMarkPoints:function(t,n,e){var{shift:i=0}=e,r=this.getCenter(),o=this.getRadius()+n*{inside:-1,center:-.5,outside:0}[this._options.tickOrientation||"center"];return[r.x+o+i,r.y,r.x+o+n+i,r.y]},_getLabelAdjustedCoord:function(t,n,e,i){var r=t.labelCoords,o=r.y,a=r.angle,s=Ll(a),l=s.cos,u=s.sin,f=t.labelBBox,S=f.width/2,T=f.height/2,R=this._options.label.indentFromAxis||0,L=r.x+R*l,z=o+(o-f.y-T)+R*u,j=0,Y=0;switch(T1e(a)){case 1:j=S,Y=T*u;break;case 2:j=S*l,Y=T;break;case 3:j=-S,Y=T*u;break;case 4:j=S*l,Y=-T}if(i){var ie=this._canvas,te=L-r.x+j,re=z-r.y+Y;f.x+te<ie.originalLeft&&(j-=f.x+te-ie.originalLeft),f.x+f.width+te>ie.width-ie.originalRight&&(j-=f.x+f.width+te-(ie.width-ie.originalRight)),f.y+re<ie.originalTop&&(Y-=f.y+re-ie.originalTop),f.y+f.height+re>ie.height-ie.originalBottom&&(Y-=f.y+f.height+re-(ie.height-ie.originalBottom))}return{x:L+j,y:z+Y}},_getGridLineDrawer:function(){var t=this;return function(n,e){var i=t.getCenter();return t._createPathElement(t._getGridPoints().points,e).rotate(n.coords.angle,i.x,i.y)}},_getGridPoints:function(){var t=this.getRadius(),n=this.getCenter();return{points:[n.x,n.y,n.x+t,n.y]}},_getTranslatedValue:function(t,n){var e=this.getAngles()[0],i=this._translator.translate(t,-n),r=iI(this.getCenter(),e,i,this.getRadius());return{x:r.x,y:r.y,angle:this.getTranslatedAngle(i)}},_getAdjustedStripLabelCoords:function(t){var n=t.labelBBox;return{translateY:t.label.attr("y")-n.y-n.height/2}},coordsIn:function(t,n){return Sj(this.getCenter(),t,n).r>this.getRadius()},_rotateTick:function(t,n){var e=this.getCenter();t.rotate(n.angle,e.x,e.y)},_validateOverlappingMode:function(t){return wr_validateOverlappingMode(t)},_validateDisplayMode:function(){return"standard"},_getStep:function(t){var n=this.getRadius()+(this._options.label.indentFromAxis||0),e=t.reduce(function(o,a){var s=o;return o.width<a.width&&(s.width=a.width),o.height<a.height&&(s.height=a.height),s},{width:0,height:0}),i=NC(2*E1e(e.height/(2*n-e.width))*180/jK),r=NC(2*E1e(e.width/(2*n-e.height))*180/jK);return wr_getTicksCountInRange(this._majorTicks,"angle",KK(i,r))},_checkBoundedLabelsOverlapping:function(t,n,e){var i=this._options.label;if("hide"===(e=e||this._validateOverlappingMode(i.overlappingBehavior))){var r=t.reduce((o,a,s)=>a.label?s:o,null);r&&wr_areLabelsOverlap(n[0],n[r],i.minSpacing,"center")&&("first"===i.hideFirstOrLast?t[0].removeLabel():t[r].removeLabel())}},shift:function(t){this._axisGroup.attr({translateX:t.right,translateY:t.bottom}),this._axisElementsGroup.attr({translateX:t.right,translateY:t.bottom})},getTranslatedAngle(t){return t+this.getAngles()[0]-90}},cFt=Xg,I1e=se({},Xg,{_createAxisElement:function(){return this._renderer.path([],"area")},_updateAxisElementPosition:function(){this._axisElement.attr({points:ma(this.getSpiderTicks(),function(t){return{x:t.coords.x,y:t.coords.y}})})},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var t=this.getFullTicks();return this._spiderTicks=t.map(x4(this,this.renderer,{},{},this._getSkippedCategory(t),!0)),this._spiderTicks.forEach(function(n){n.initCoords()}),this._spiderTicks},_getStripGraphicAttributes:function(t,n){for(var r,o,a,s,e=this.getCenter(),i=this.getSpiderTicks(),l=[],u=0,f=i.length;u<f;)(s=i[u].coords).angle>=t&&s.angle<=n&&(r||l.push((s.x+(r=(i[u-1]||i[i.length-1]).coords).x)/2,(s.y+r.y)/2),l.push(s.x,s.y),o={x:(s.x+(a=(i[u+1]||i[0]).coords).x)/2,y:(s.y+a.y)/2}),u++;return l.push(o.x,o.y),l.push(e.x,e.y),{points:l}},_createStrip:function(t){var{points:n}=t;return this._renderer.path(n,"area")},_getTranslatedCoord:function(t,n){return this._translator.translate(t,n)-90},_setTickOffset:function(){this._tickOffset=!1}}),k1e={_resetMargins(){this._reinitTranslator(this._getViewportRange())},_getStick:O1e._getStick,_getSpiderCategoryOption:Be,_getTranslatorOptions:function(){return{isHorizontal:!0,stick:this._getStick()}},getRadius:Xg.getRadius,getCenter:Xg.getCenter,getAngles:Xg.getAngles,_updateRadius:Xg._updateRadius,_updateCenter:Xg._updateCenter,_processCanvas(t){return this._updateRadius(t),this._updateCenter(t),{left:0,right:0,startPadding:t.startPadding,endPadding:t.endPadding,width:this.getRadius()}},_createAxisElement:O1e._createAxisElement,_updateAxisElementPosition:function(){var t=this.getCenter();this._axisElement.attr({points:[t.x,t.y,t.x+this.getRadius(),t.y]}).rotate(this.getAngles()[0]-90,t.x,t.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(t,n){return[t.x-n/2,t.y,t.x+n/2,t.y]},_getLabelAdjustedCoord:function(t){var n=t.labelCoords,e=n.y,i=Ll(n.angle),r=this._options.label.indentFromAxis||0,o=t.labelBBox;return{x:n.x-NC(r*i.sin)+NC(o.width/2*i.cos)-o.width/2,y:e+(e-o.y)-NC(o.height/2*i.sin)+NC(r*i.cos)}},_getGridLineDrawer:function(){var t=this;return function(n,e){var i=t._getGridPoints(n.coords);return t._renderer.circle(i.cx,i.cy,i.r).attr(e).sharp()}},_getGridPoints:function(t){var n=this.getCenter(),e=sB(n.x,n.y,t.x,t.y);return e>this.getRadius()?{cx:null,cy:null,r:null}:{cx:n.x,cy:n.y,r:e}},_getTranslatedValue:function(t,n){var e=this.getAngles()[0],i=iI(this.getCenter(),e,0,this._translator.translate(t,n));return{x:i.x,y:i.y,angle:e-90}},_getTranslatedCoord:function(t,n){return this._translator.translate(t,n)},_getCanvasStartEnd(){var t=this.getTranslator().getBusinessRange().invert,n=[0,this.getRadius()];return t&&n.reverse(),{start:n[0],end:n[1]}},_getStripGraphicAttributes:function(t,n){var e=this.getCenter();return{x:e.x,y:e.y,innerRadius:t,outerRadius:n}},_createStrip:function(t){return this._renderer.arc(t.x,t.y,t.innerRadius,t.outerRadius,0,360)},_getAdjustedStripLabelCoords:Xg._getAdjustedStripLabelCoords,_getStripLabelCoords:function(t,n){var e=t+(n-t)/2,i=this.getCenter(),r=q_(i.y-e);return{x:i.x,y:r,align:"center"}},_getConstantLineGraphicAttributes:function(t){var n=this.getCenter();return{cx:n.x,cy:n.y,r:t}},_createConstantLine:function(t,n){var e=this._getConstantLineGraphicAttributes(t);return this._renderer.circle(e.cx,e.cy,e.r).attr(n).sharp()},_getConstantLineLabelsCoords:function(t){var n=this.getCenter(),e=q_(n.y-t);return{x:n.x,y:e}},_checkAlignmentConstantLineLabels:Be,_rotateTick:function(t,n,e){!e&&t.rotate(n.angle+90,n.x,n.y)},_validateOverlappingMode:Xg._validateOverlappingMode,_validateDisplayMode:Xg._validateDisplayMode,_getStep:function(t){var n=T1e(this.getAngles()[0]),e=this._options.label.minSpacing,i=2===n||4===n?function(o){return o.width+e}:function(o){return o.height},r=t.reduce((o,a)=>KK(o,i(a)),0);return wr_getTicksCountInRange(this._majorTicks,2===n||4===n?"x":"y",r)}},hFt=se({},k1e,{_createPathElement:function(t,n){return this._renderer.path(t,"area").attr(n).sharp()},setSpiderTicks:function(t){this._spiderTicks=t},_getGridLineDrawer:function(){var t=this;return function(n,e){return t._createPathElement(t._getGridPoints(n.coords).points,e)}},_getGridPoints:function(t){var n=this.getCenter(),e=sB(n.x,n.y,t.x,t.y);return this._getGridPointsByRadius(e)},_getGridPointsByRadius:function(t){var n=this.getCenter();return t>this.getRadius()?{points:null}:{points:ma(this._spiderTicks,function(e){var i=Ll(e.coords.angle);return{x:q_(n.x+t*i.cos),y:q_(n.y+t*i.sin)}})}},_getStripGraphicAttributes:function(t,n){var e=this._getGridPointsByRadius(n).points;return{points:[this._getGridPointsByRadius(t).points,e.reverse()]}},_createStrip:I1e._createStrip,_getConstantLineGraphicAttributes:function(t){return this._getGridPointsByRadius(t)},_createConstantLine:function(t,n){return this._createPathElement(this._getConstantLineGraphicAttributes(t).points,n)}}),Z1=function(t){return ma(t||[],function(n){return n.value})},OI=Math,Tp=OI.abs,Jg=OI.max,D4=OI.min,M1e=Array.isArray,VC="top",Z_="bottom",Rh="left",Ip="right",X1="center",Gm="keep",$K="shift",X_="reset",TI="rotate";function P1e(t,n,e,i,r,o){var a,{allowNegatives:s,linearThreshold:l}=o;return i1e({axisType:t.type,dataType:t.dataType,logBase:t.logarithmBase,allowNegatives:s,linearThreshold:l,axisDivisionFactor:r(t.axisDivisionFactor||50),minorAxisDivisionFactor:r(t.minorAxisDivisionFactor||15),numberMultipliers:t.numberMultipliers,calculateMinors:t.minorTick.visible||t.minorGrid.visible||t.calculateMinors,allowDecimals:t.allowDecimals,endOnTick:t.endOnTick,incidentOccurred:n,firstDayOfWeek:null===(a=t.workWeek)||void 0===a?void 0:a[0],skipTickGeneration:e,skipCalculationLimits:t.skipCalculationLimits,generateExtraTick:t.generateExtraTick,minTickInterval:t.minTickInterval,rangeIsEmpty:i})}function R1e(t,n,e){var i=t.getOptions();return x4(t,n,i.tick,i.grid,e,!1)}function L1e(t,n){var e=t.getOptions();return x4(t,n,e.minorTick,e.minorGrid)}function B1e(t,n,e){var i=t.getOptions();return x4(t,n,se({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,e?-1:1)}function as(t,n,e,i){(t||[]).forEach(r=>r[n](e,i))}function J1(t){as(t,"initCoords")}function qK(t,n){as(t,"drawMark",n)}function N1e(t,n){as(t,"drawGrid",n)}function YK(t,n,e){as(t,"updateTickPosition",n,e)}function V1e(t,n){as(t,"updateGridPosition",n)}function ZK(t){for(var n=t.length-1;n>=0&&H1e(t,n);n--);for(n=0;n<t.length&&H1e(t,n);n++)n--}function H1e(t,n){return(null===t[n].coords.x||null===t[n].coords.y)&&(t.splice(n,1),!0)}function bFt(t,n){return 180*OI.asin((t[0].height+n.minSpacing)/(t[1].x-t[0].x))/OI.PI<45?-45:-90}function XK(t,n,e){t.forEach(function(i,r){i.getContentContainer()&&(r%n!=0?i.removeLabel():e&&e(i,r))})}function E4(t,n){return void 0===t?n:null===t?void 0:t}var J_=function(t){this._renderer=t.renderer,this._incidentOccurred=t.incidentOccurred,this._eventTrigger=t.eventTrigger,this._stripsGroup=t.stripsGroup,this._stripLabelAxesGroup=t.stripLabelAxesGroup,this._labelsAxesGroup=t.labelsAxesGroup,this._constantLinesGroup=t.constantLinesGroup,this._scaleBreaksGroup=t.scaleBreaksGroup,this._axesContainerGroup=t.axesContainerGroup,this._gridContainerGroup=t.gridGroup,this._axisCssPrefix=t.widgetClass+"-"+(t.axisClass?t.axisClass+"-":""),this._setType(t.axisType,t.drawingType),this._createAxisGroups(),this._translator=this._createTranslator(),this.isArgumentAxis=t.isArgumentAxis,this._viewport={},this._prevDataInfo={},this._firstDrawing=!0,this._initRange={},this._getTemplate=t.getTemplate};J_.prototype={constructor:J_,_drawAxis(){var t=this._options;t.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":t.width,stroke:t.color,"stroke-opacity":t.opacity}).sharp(this._getSharpParam(!0),this.getAxisSharpDirection()).append(this._axisLineGroup))},_createPathElement(t,n,e){return this.sharp(this._renderer.path(t,"line").attr(n),e)},sharp(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.sharp(this._getSharpParam(),n)},customPositionIsAvailable:()=>!1,getOrthogonalAxis:Be,getCustomPosition:Be,getCustomBoundaryPosition:Be,resolveOverlappingForCustomPositioning:Be,hasNonBoundaryPosition:()=>!1,customPositionIsBoundaryOrthogonalAxis:()=>!1,getResolvedBoundaryPosition(){return this.getOptions().position},getAxisSharpDirection(){var t=this.getResolvedBoundaryPosition();return this.hasNonBoundaryPosition()||t!==Z_&&t!==Ip?1:-1},getSharpDirectionByCoords(t){var n=this._getCanvasStartEnd(),e=Math.max(n.start,n.end);return this.getRadius?0:e!==t[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var t=this;return function(n,e){var i=t._getGridPoints(n.coords);return i.points?t._createPathElement(i.points,e,t.getSharpDirectionByCoords(n.coords)):null}},_getGridPoints:function(t){var n=this._isHorizontal,e=n?"x":"y",i=this._orthogonalPositions,r=i.start,o=i.end,a=this.borderOptions,s=n?Rh:VC,l=n?Ip:Z_,u=this.getCanvas(),f={left:u.left,right:u.width-u.right,top:u.top,bottom:u.height-u.bottom},R=4+(a.visible&&a[s]?f[s]:void 0),L=(a.visible&&a[l]?f[l]:void 0)-4;return this.areCoordsOutsideAxis(t)||void 0===t[e]||t[e]<R||t[e]>L?{points:null}:{points:n?null!==t[e]?[t[e],r,t[e],o]:null:null!==t[e]?[r,t[e],o,t[e]]:null}},_getConstantLinePos:function(t,n,e){var i=this._getTranslatedCoord(t);if(!(!Z(i)||i<D4(n,e)||i>Jg(n,e)))return i},_getConstantLineGraphicAttributes:function(t){var n=this._orthogonalPositions.start,e=this._orthogonalPositions.end;return{points:this._isHorizontal?[t,n,t,e]:[n,t,e,t]}},_createConstantLine:function(t,n){return this._createPathElement(this._getConstantLineGraphicAttributes(t).points,n,function wFt(t,n){return Math.max(n.start,n.end)!==t?1:-1}(t,this._getCanvasStartEnd()))},_drawConstantLineLabelText:function(t,n,e,i,r){var{font:o,cssClass:a}=i;return this._renderer.text(t,n,e).css(_a(se({},this._options.label.font,o))).attr({align:"center",class:a}).append(r)},_drawConstantLineLabels:function(t,n,e,i){var r,o=n.text,s=this._options.label;this._checkAlignmentConstantLineLabels(n),o=null!==(r=o)&&void 0!==r?r:this.formatLabel(t,s);var l=this._getConstantLineLabelsCoords(e,n);return this._drawConstantLineLabelText(o,l.x,l.y,n,i)},_getStripPos:function(t,n,e,i,r){var s,l,u,f,S,o=!(!r.minVisible&&!r.maxVisible),a=(r.categories||[]).reduce(function(ie,te){return ie.push(te.valueOf()),ie},[]);if(!o&&Z(t)&&Z(n)){var T,R,L=this.parser(t),z=this.parser(n);if(f=a.indexOf(null!==(T=L?.valueOf())&&void 0!==T?T:void 0),S=a.indexOf(null!==(R=z?.valueOf())&&void 0!==R?R:void 0),-1===f||-1===S)return{from:0,to:0,outOfCanvas:!0};f>S&&(u=n,n=t,t=u)}Z(t)?(t=this.validateUnit(t,"E2105","strip"),s=this._getTranslatedCoord(t,-1)):s=e,Z(n)?(n=this.validateUnit(n,"E2105","strip"),l=this._getTranslatedCoord(n,1)):l=i;var j=s<l?{from:s,to:l}:{from:l,to:s},Y=this.getVisibleArea();return(j.from<=Y[0]&&j.to<=Y[0]||j.from>=Y[1]&&j.to>=Y[1])&&(j.outOfCanvas=!0),j},_getStripGraphicAttributes:function(t,n){var e,i,r,o,a=this._orthogonalPositions,s=a.start,l=a.end;return this._isHorizontal?(e=t,i=D4(s,l),r=n-t,o=Tp(s-l)):(e=D4(s,l),i=t,r=Tp(s-l),o=Tp(t-n)),{x:e,y:i,width:r,height:o}},_createStrip:function(t){return this._renderer.rect(t.x,t.y,t.width,t.height)},_adjustStripLabels:function(){var t=this;this._strips.forEach(function(n){n.label&&n.label.attr(t._getAdjustedStripLabelCoords(n))})},_adjustLabelsCoord(t,n,e){var i=r=>this._getLabelAdjustedCoord(r,t+(r.labelOffset||0),n,e);this._majorTicks.forEach(function(r){r.label?(r.updateMultilineTextAlignment(),r.label.attr(i(r))):r.templateContainer&&r.templateContainer.attr(i(r))})},_adjustLabels:function(t){var n=this.getOptions(),e=n.position===n.label.position,i=this._majorTicks.reduce(function(o,a){if(!a.getContentContainer())return o;var s=a.labelRotationAngle?uB(a.labelBBox,[a.labelCoords.x,a.labelCoords.y],-a.labelRotationAngle):a.labelBBox;return{width:Jg(o.width||0,s.width),height:Jg(o.height||0,s.height),offset:Jg(o.offset||0,a.labelOffset||0)}},{}),r=e?this._isHorizontal?i.height:i.width:0;return this._adjustLabelsCoord(t,i.width),t+r+(r&&this._options.label.indentFromAxis)+(e?i.offset:0)},_getLabelAdjustedCoord:function(t,n,e){n=n||0;var L,z,i=this._options,o=t.templateContainer&&t.templateContainer.getBBox()||uB(t.labelBBox,[t.labelCoords.x,t.labelCoords.y],-t.labelRotationAngle||0),a=t.labelAlignment||i.label.alignment,s="discrete"===this._options.type,l=t.labelRotationAngle%90==0,u=i.label.indentFromAxis,f=i.label.position,S=this._axisPosition,T=t.labelCoords,R=T.x;return this._isHorizontal?(z=f===Z_?S+u-o.y+n:S-u-(o.y+o.height)-n,L=a===Ip?s&&l?t.coords.x-(o.x+o.width):R-o.x-o.width:a===Rh?s&&l?R-o.x-(t.coords.x-R):R-o.x:R-o.x-o.width/2):(z=T.y-o.y-o.height/2,f===Rh?(L=a===Rh?S-u-e-o.x:a===X1?S-u-e/2-o.x-o.width/2:S-u-o.x-o.width,L-=n):(L=a===Ip?S+u+e-o.x-o.width:a===X1?S+u+e/2-o.x-o.width/2:S+u-o.x,L+=n)),{translateX:L,translateY:z}},_createAxisConstantLineGroups:function(){var t=this._renderer,e=this._axisCssPrefix+"constant-lines",i=t.g().attr({class:e}),r=t.g().attr({class:e}),o=t.g().attr({class:e});return{inside:i,outside1:r,left:r,top:r,outside2:o,right:o,bottom:o,remove:function(){this.inside.remove(),this.outside1.remove(),this.outside2.remove()},clear:function(){this.inside.clear(),this.outside1.clear(),this.outside2.clear()}}},_createAxisGroups:function(){var t=this._renderer,n=this._axisCssPrefix;this._axisGroup=t.g().attr({class:n+"axis"}).enableLinks(),this._axisStripGroup=t.g().attr({class:n+"strips"}),this._axisGridGroup=t.g().attr({class:n+"grid"}),this._axisElementsGroup=t.g().attr({class:n+"elements"}),this._axisLineGroup=t.g().attr({class:n+"line"}).linkOn(this._axisGroup,"axisLine").linkAppend(),this._axisTitleGroup=t.g().attr({class:n+"title"}).append(this._axisGroup),this._axisConstantLineGroups={above:this._createAxisConstantLineGroups(),under:this._createAxisConstantLineGroups()},this._axisStripLabelGroup=t.g().attr({class:n+"axis-labels"})},_clearAxisGroups:function(){this._axisGroup.remove(),this._axisStripGroup.remove(),this._axisStripLabelGroup.remove(),this._axisConstantLineGroups.above.remove(),this._axisConstantLineGroups.under.remove(),this._axisGridGroup.remove(),this._axisTitleGroup.clear(),(!this._options.label.template||!this.isRendered())&&(this._axisElementsGroup.remove(),this._axisElementsGroup.clear()),this._axisLineGroup&&this._axisLineGroup.clear(),this._axisStripGroup&&this._axisStripGroup.clear(),this._axisGridGroup&&this._axisGridGroup.clear(),this._axisConstantLineGroups.above.clear(),this._axisConstantLineGroups.under.clear(),this._axisStripLabelGroup&&this._axisStripLabelGroup.clear()},_getLabelFormatObject:function(t,n,e,i,r,o){e=e||this._getViewportRange();var a={value:t,valueText:h4(t,{labelOptions:n,ticks:o||Z1(this._majorTicks),tickInterval:r??this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:i})||"",min:e.minVisible,max:e.maxVisible};return i&&(a.point=i),a},formatLabel:function(t,n,e,i,r,o){var a=this._getLabelFormatObject(t,n,e,i,r,o);return Yt(n.customizeText)?n.customizeText.call(a,a):a.valueText},formatHint:function(t,n,e){var i=this._getLabelFormatObject(t,n,e);return Yt(n.customizeHint)?n.customizeHint.call(i,i):void 0},formatRange(t,n,e,i){return $Mt({startValue:t,endValue:n,tickInterval:e,argumentFormat:i,axisOptions:this.getOptions()})},_setTickOffset:function(){var n=this._options.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==n||!n)},aggregatedPointBetweenTicks(){return"crossTicks"===this._options.aggregatedPointsPosition},resetApplyingAnimation:function(t){this._resetApplyingAnimation=!0,t&&(this._firstDrawing=!0)},isFirstDrawing(){return this._firstDrawing},getMargins:function(){var he,fe,t=this,{position:n,offset:e,customPosition:i,placeholderSize:r,grid:o,tick:a,crosshairMargin:s}=t._options,l=Z(i),u=t.getResolvedBoundaryPosition(),f=t.getCanvas(),S=f.left,T=f.top,R=f.width-f.right,L=f.height-f.bottom,z=Jg(o.visible&&o.width||0,a.visible&&a.width||0),j=t._axisConstantLineGroups.above,Y=t._axisConstantLineGroups.under,ie=[t._axisElementsGroup,j.outside1,j.outside2,Y.outside1,Y.outside2,t._axisLineGroup].map(he=>he&&he.getBBox()).concat((!(fe=(he=t._axisTitleGroup)&&he.getBBox())||fe.isEmpty||(t._isHorizontal?(fe.x=S,fe.width=R-S):(fe.y=T,fe.height=L-T)),fe)),te=D1e(ie,f);if(te[n]+=s,t.hasNonBoundaryPosition()&&l&&(te[u]=0),r&&(te[n]=r),z&&(t._isHorizontal&&f.right<z&&te.right<z&&(te.right=z),!t._isHorizontal&&f.bottom<z&&te.bottom<z&&(te.bottom=z)),!l&&Z(e)){var re=t.customPositionIsBoundary()&&(e>0&&(u===Rh||u===VC)||e<0&&(u===Ip||u===Z_));te[u]-=re?e:0}return te},validateUnit:function(t,n,e){return void 0===(t=this.parser(t))&&n&&this._incidentOccurred(n,[e]),t},_setType:function(t,n){var e;switch(t){case"xyAxes":e=S1e;break;case"polarAxes":e=E}se(this,e[n])},_getSharpParam:function(){return!0},_disposeBreaksGroup:Be,dispose:function(){[this._axisElementsGroup,this._axisStripGroup,this._axisGroup].forEach(function(t){t.dispose()}),this._strips=this._title=null,this._axisStripGroup=this._axisConstantLineGroups=this._axisStripLabelGroup=this._axisBreaksGroup=null,this._axisLineGroup=this._axisElementsGroup=this._axisGridGroup=null,this._axisGroup=this._axisTitleGroup=null,this._axesContainerGroup=this._stripsGroup=this._constantLinesGroup=this._labelsAxesGroup=null,this._renderer=this._options=this._textOptions=this._textFontStyles=null,this._translator=null,this._majorTicks=this._minorTicks=null,this._disposeBreaksGroup(),this._templatesRendered&&this._templatesRendered.reject()},getOptions:function(){return this._options},setPane:function(t){this.pane=t,this._options.pane=t},setTypes:function(t,n,e){this._options.type=t||this._options.type,this._options[e]=n||this._options[e],this._updateTranslator()},resetTypes:function(t){this._options.type=this._initTypes.type,this._options[t]=this._initTypes[t]},getTranslator:function(){return this._translator},updateOptions:function(t){var n=this,e=t.label;(function CFt(t){var n,e=t.label,i=t.position,r=t.isHorizontal?Z_:Rh,o=t.isHorizontal?VC:Ip,a=e.position;i!==r&&i!==o&&(i=r),a&&"outside"!==a?"inside"===a&&(a={[VC]:Z_,[Z_]:VC,[Rh]:Ip,[Ip]:Rh}[i]):a=i,a!==r&&a!==o&&(a=i),e.alignment!==X1&&!e.userAlignment&&(e.alignment={[VC]:X1,[Z_]:X1,[Rh]:Ip,[Ip]:Rh}[a]),t.position=i,e.position=a,t.hoverMode=t.hoverMode?t.hoverMode.toLowerCase():"none",e.minSpacing=null!==(n=e.minSpacing)&&void 0!==n?n:5,t.type&&(t.type=t.type.toLowerCase()),t.argumentType&&(t.argumentType=t.argumentType.toLowerCase()),t.valueType&&(t.valueType=t.valueType.toLowerCase())})(t),n._options=t,t.tick=t.tick||{},t.minorTick=t.minorTick||{},t.grid=t.grid||{},t.minorGrid=t.minorGrid||{},t.title=t.title||{},t.marker=t.marker||{},n._initTypes={type:t.type,argumentType:t.argumentType,valueType:t.valueType},n._setTickOffset(),n._isHorizontal=t.isHorizontal,n.pane=t.pane,n.name=t.name,n.priority=t.priority,n._hasLabelFormat=""!==e.format&&Z(e.format),n._textOptions={opacity:e.opacity,align:"center",class:e.cssClass},n._textFontStyles=_a(e.font),"logarithmic"===t.type&&t.logarithmBaseError&&(n._incidentOccurred("E2104"),delete t.logarithmBaseError),n._updateTranslator(),n._createConstantLines(),n._strips=(t.strips||[]).map(i=>function gFt(t,n){var e,i,r=n.label||{};return{options:n,label:null,rect:null,_getCoord(){var o=t._getCanvasStartEnd(),a=t._translator.getBusinessRange();return t._getStripPos(n.startValue,n.endValue,o.start,o.end,a)},_drawLabel:o=>t._renderer.text(r.text,o.x,o.y).css(_a(se({},t.getOptions().label.font,r.font))).attr({align:"center",class:r.cssClass}).append(t._axisStripLabelGroup),draw(){if(!t._translator.getBusinessRange().isEmpty()&&(Z(n.startValue)||Z(n.endValue))&&Z(n.color)){var o=this._getCoord();if(this.labelCoords=r.text?t._getStripLabelCoords(o.from,o.to,r):null,o.outOfCanvas||!Z(o.to)||!Z(o.from))return;this.rect=t._createStrip(t._getStripGraphicAttributes(o.from,o.to)).attr({fill:n.color}).append(t._axisStripGroup),this.label=r.text?this._drawLabel(this.labelCoords):null}},getContentContainer(){return this.label},removeLabel(){},updatePosition(o){var a=this._getCoord();o&&e?(this.label&&this.label.attr(t._getStripLabelCoords(e.from,e.to,n.label)),this.rect&&this.rect.attr(t._getStripGraphicAttributes(e.from,e.to)),this.label&&this.label.animate(t._getStripLabelCoords(a.from,a.to,n.label)),this.rect&&this.rect.animate(t._getStripGraphicAttributes(a.from,a.to))):(this.label&&this.label.attr(t._getStripLabelCoords(a.from,a.to,n.label)),this.rect&&this.rect.attr(t._getStripGraphicAttributes(a.from,a.to)))},saveCoords(){i=e,e=this._getCoord()},resetCoordinates(){e=i}}}(n,i)),n._majorTicks=n._minorTicks=null,n._firstDrawing=!0},calculateInterval:function(t,n){var e=this._options;if(!e||"logarithmic"!==e.type)return Tp(t-n);var{allowNegatives:i,linearThreshold:r}=new Os(this.getTranslator().getBusinessRange());return Tp(du(t,e.logarithmBase,i,r)-du(n,e.logarithmBase,i,r))},getCanvasRange(){var t=this._translator;return{startValue:t.from(t.translate("canvas_position_start")),endValue:t.from(t.translate("canvas_position_end"))}},_processCanvas:function(t){return t},updateCanvas:function(t,n){if(n)this._orthogonalPositions=null;else{var e=this._orthogonalPositions={start:this._isHorizontal?t.top:t.left,end:this._isHorizontal?t.height-t.bottom:t.width-t.right};e.center=e.start+(e.end-e.start)/2}this._canvas=t,this._translator.updateCanvas(this._processCanvas(t)),this._initAxisPositions()},getCanvas:function(){return this._canvas},getAxisShift(){return this._axisShift||0},hideTitle:function(){this._options.title.text&&(this._incidentOccurred("W2105",[this._isHorizontal?"horizontal":"vertical"]),this._axisTitleGroup.clear())},getTitle:function(){return this._title},hideOuterElements:function(){(this._options.label.visible||this._outsideConstantLines.length)&&!this._translator.getBusinessRange().isEmpty()&&(this._incidentOccurred("W2106",[this._isHorizontal?"horizontal":"vertical"]),this._axisElementsGroup.clear(),as(this._outsideConstantLines,"removeLabel"))},_resolveLogarithmicOptionsForRange(t){var n=this._options;"logarithmic"===n.type&&(t.addRange({allowNegatives:void 0!==n.allowNegatives?n.allowNegatives:t.min<=0}),isNaN(n.linearThreshold)||(t.linearThreshold=n.linearThreshold))},adjustViewport(t){var n=this._options,e="discrete"===n.type,i=this._seriesData&&this._seriesData.categories||[],r=this.adjustRange(jg(n.wholeRange)),o=this.getViewport()||{},a=new Os(t);this._addConstantLinesToRange(a);var s=Z(o.startValue),l=Z(o.endValue);e||(s=s&&(!Z(r.endValue)||o.startValue<r.endValue),l=l&&(!Z(r.startValue)||o.endValue>r.startValue));var u=s?o.startValue:a.minVisible,f=l?o.endValue:a.maxVisible;if(e){var R=Gg(i,r.startValue,r.endValue);a.categories=i=R.categories}else{var S,T;a.min=null!==(S=r.startValue)&&void 0!==S?S:a.min,a.max=null!==(T=r.endValue)&&void 0!==T?T:a.max}var L=gbe({axisType:n.type,dataType:n.dataType,base:n.logarithmBase},{startValue:s?o.startValue:void 0,endValue:l?o.endValue:void 0,length:o.length},{categories:i,min:r.startValue,max:r.endValue},{categories:i,min:u,max:f});return a.minVisible=L.startValue,a.maxVisible=L.endValue,!Z(a.min)&&(a.min=a.minVisible),!Z(a.max)&&(a.max=a.maxVisible),a.addRange({}),this._resolveLogarithmicOptionsForRange(a),a},adjustRange(t){t=t||{};var n="discrete"===this._options.type,i=!1===this._options.allowNegatives;if("logarithmic"===this._options.type&&(t.startValue=i&&t.startValue<=0?null:t.startValue,t.endValue=i&&t.endValue<=0?null:t.endValue),!n&&Z(t.startValue)&&Z(t.endValue)&&t.startValue>t.endValue){var r=t.endValue;t.endValue=t.startValue,t.startValue=r}return t},_getVisualRangeUpdateMode(t,n,e){var i=this._options.visualRangeUpdateMode,r=this._translator,o=this._seriesData,a=this._prevDataInfo;if(a.isEmpty&&!a.containsConstantLine)return Gm;if(!this.isArgumentAxis){var s=this.getViewport();if(!Z(s.startValue)&&!Z(s.endValue)&&!Z(s.length))return X_}if(this.isArgumentAxis){if(-1===[$K,Gm,X_].indexOf(i)){if("discrete"===o.axisType){var l=o.categories,u=n.categories,f=this.visualRange();i=l&&u&&l.length&&-1!==u.map(z=>z.valueOf()).join(",").indexOf(l.map(z=>z.valueOf()).join(","))&&(f.startValue.valueOf()!==l[0].valueOf()||f.endValue.valueOf()!==l[l.length-1].valueOf())?Gm:X_}else{var S=r.translate(o.min),T=r.translate(t.startValue),R=r.translate(o.max),L=r.translate(t.endValue);i=S===T&&R===L?X_:S!==T&&R===L?$K:Gm}i===Gm&&a.isEmpty&&a.containsConstantLine&&(i=X_)}}else-1===[Gm,X_].indexOf(i)&&(i=e===Gm?Gm:X_);return i},_handleBusinessRangeChanged(t,n,e){var i=this.visualRange();if(!n&&!this._translator.getBusinessRange().isEmpty()){var r=this._lastVisualRangeUpdateMode=this._getVisualRangeUpdateMode(i,e,t);r===Gm?this._setVisualRange([i.startValue,i.endValue]):r===X_?this._setVisualRange([null,null]):r===$K&&this._setVisualRange({length:this.getVisualRangeLength()})}},getVisualRangeLength(t){var n=t||this._translator.getBusinessRange(),{type:e}=this._options;return"logarithmic"===e?Kr(this.calculateInterval(n.maxVisible,n.minVisible)):"discrete"===e?Gg(n.categories,n.minVisible,n.maxVisible).categories.length:n.maxVisible-n.minVisible},getVisualRangeCenter(t,n){var s,e=this.getTranslator(),i=e.getBusinessRange(),r=n?se(!0,{},i,t||{}):t||i,{type:o,logarithmBase:a}=this._options;if(Z(r.minVisible)&&Z(r.maxVisible)){if("logarithmic"===o){var{allowNegatives:l,linearThreshold:u,minVisible:f,maxVisible:S}=r;s=_C(Kr(du(S,a,l,u)+du(f,a,l,u))/2,a,l,u)}else if("discrete"===o){var T=Gg(r.categories,r.minVisible,r.maxVisible),R=Math.ceil(T.categories.length/2)-1;s=i.categories.indexOf(T.categories[R])}else s=e.toValue((r.maxVisible.valueOf()+r.minVisible.valueOf())/2);return s}},setBusinessRange(t,n,e,i){var r,o,a=this._options,s="discrete"===a.type;this._handleBusinessRangeChanged(e,n,t),this._seriesData=new Os(t);var l=this._seriesData.isEmpty(),u=new Os(this._seriesData);if(this._addConstantLinesToRange(u),this._prevDataInfo={isEmpty:l,containsConstantLine:u.containsConstantLine},this._seriesData.addRange({categories:a.categories,dataType:a.dataType,axisType:a.type,base:a.logarithmBase,invert:a.inverted}),this._resolveLogarithmicOptionsForRange(this._seriesData),!s){if(!Z(this._seriesData.min)&&!Z(this._seriesData.max)){var f=this.getViewport();f&&this._seriesData.addRange({min:f.startValue,max:f.endValue})}var S=a.synchronizedValue;Z(S)&&this._seriesData.addRange({min:S,max:S})}this._seriesData.minVisible=null!==(r=this._seriesData.minVisible)&&void 0!==r?r:this._seriesData.min,this._seriesData.maxVisible=null!==(o=this._seriesData.maxVisible)&&void 0!==o?o:this._seriesData.max,!this.isArgumentAxis&&a.showZero&&this._seriesData.correctValueZeroLevel(),this._seriesData.sortCategories(this.getCategoriesSorter(i)),this._seriesData.userBreaks=this._seriesData.isEmpty()?[]:this._getScaleBreaks(a,this._seriesData,this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},_addConstantLinesToRange(t){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(n=>{if(n.options.extendAxis){var e=n.getParsedValue();t.addRange({containsConstantLine:!0,minVisible:e,maxVisible:e,min:Z(t.min)?t.min:e,max:Z(t.max)?t.max:e})}})},setGroupSeries:function(t){this._series=t},getLabelsPosition:function(){var t=this._options,n=t.position,e=t.label.indentFromAxis+(this._axisShift||0)+this._constantLabelOffset,i=this._axisPosition;return n===VC||n===Rh?i-e:i+e},getFormattedValue:function(t,n,e){var i=this._options.label;return Z(t)?this.formatLabel(t,se(!0,{},i,n),void 0,e):null},_getBoundaryTicks:function(t,n){var e=t.length,i=this._options,r=i.customBoundTicks,o=n.minVisible,a=n.maxVisible,s=i.showCustomBoundaryTicks?this._boundaryTicksVisibility:{},l=[];return"discrete"===i.type?this._tickOffset&&0!==t.length&&(l=[t[0],t[t.length-1]]):r?(s.min&&Z(r[0])&&l.push(r[0]),s.max&&Z(r[1])&&l.push(r[1])):(s.min&&(0===e||t[0]>o)&&l.push(o),s.max&&(0===e||t[e-1]<a)&&l.push(a)),l},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},getTicksValues:function(){return{majorTicksValues:Z1(this._majorTicks),minorTicksValues:Z1(this._minorTicks)}},estimateTickInterval:function(t){return this.updateCanvas(t),this._tickInterval!==this._getTicks(this._getViewportRange(),Be,!0).tickInterval},setTicks:function(t){var n=t.majorTicks||[];this._majorTicks=n.map(R1e(this,this._renderer,this._getSkippedCategory(n))),this._minorTicks=(t.minorTicks||[]).map(L1e(this,this._renderer)),this._isSynchronized=!0},_adjustDivisionFactor:function(t){return t},_getTicks:function(t,n,e){var i=this._options,r=i.customTicks,o=i.customMinorTicks;return P1e(i,n||this._incidentOccurred,e,this._translator.getBusinessRange().isEmpty(),this._adjustDivisionFactor.bind(this),t)({min:t.minVisible,max:t.maxVisible,categories:t.categories,isSpacedMargin:t.isSpacedMargin},this._getScreenDelta(),i.tickInterval,"ignore"===i.label.overlappingBehavior||i.forceUserTickInterval,{majors:r,minors:o},i.minorTickInterval,i.minorTickCount,this._initialBreaks)},_createTicksAndLabelFormat:function(t,n){var e=this._options,i=this._getTicks(t,n,!1);return!t.isEmpty()&&"discrete"===e.type&&"datetime"===e.dataType&&!this._hasLabelFormat&&i.ticks.length&&(e.label.format=Es.getDateFormatByTicks(i.ticks)),i},getAggregationInfo(t,n){var e,i,r,o=this._options,a=this._marginOptions,s=new Os(this.getTranslator().getBusinessRange()).addRange(n),l=this.getViewport(),u=null!==(e=l?.startValue)&&void 0!==e?e:s.minVisible,f=null!==(i=l?.endValue)&&void 0!==i?i:s.maxVisible,S=[];if("discrete"===o.type&&o.aggregateByCategory)return{aggregateByCategory:!0};var T=o.aggregationInterval,R=o.aggregationGroupWidth;!R&&a&&(a.checkInterval&&(R=o.axisDivisionFactor),a.sizePointNormalState&&(R=Math.min(a.sizePointNormalState,o.axisDivisionFactor)));var L=!o.aggregationGroupWidth&&!T&&n.interval,z=function xFt(t,n,e,i,r){var o=se({},t,{endOnTick:!0,axisDivisionFactor:n,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:r});return function(a,s,l,u,f){return P1e(o,Be,s,e.isEmpty(),S=>S,e)({min:l,max:u,categories:e.categories,isSpacedMargin:e.isSpacedMargin},i,a,Z(a),void 0,void 0,void 0,f)}}(o,R,s,this._getScreenDelta(),L),j=z(T,!0,u,f,null===(r=this._seriesData)||void 0===r?void 0:r.breaks).tickInterval;if("discrete"!==o.type){var Y=t?s.min:u,ie=t?s.max:f;if(Z(Y)&&Z(ie)){var te=Oj({base:o.logarithmBase,axisType:o.type,dataType:o.dataType},!1),re=Y,he=ie;if(!t){var fe=Math.max(this.calculateInterval(ie,Y),"datetime"===o.dataType?bt.dateToMilliseconds(j):j);re=te(Y,fe,-1),he=te(ie,fe)}var Te=this._getScaleBreaks(o,{minVisible:re=re<s.min?s.min:re,maxVisible:he=he>s.max?s.max:he},this._series,this.isArgumentAxis);S=z(j,!1,re,he,this._filterBreaks(Te,{minVisible:re,maxVisible:he},o.breakStyle)).ticks}}return this._aggregationInterval=j,{interval:j,ticks:S}},getTickInterval(){return this._tickInterval},getAggregationInterval(){return this._aggregationInterval},createTicks:function(t){var n=this,e=n._renderer,i=n._options;if(t){n._isSynchronized=!1,n.updateCanvas(t);var r=n._getViewportRange();n._initialBreaks=r.breaks=this._seriesData.breaks=n._filterBreaks(this._seriesData.userBreaks,r,i.breakStyle),n._estimatedTickInterval=n._getTicks(n.adjustViewport(this._seriesData),Be,!0).tickInterval;var o=this._calculateValueMargins();r.addRange({minVisible:o.minValue,maxVisible:o.maxValue,isSpacedMargin:o.isSpacedMargin});var a=n._createTicksAndLabelFormat(r),s=n._getBoundaryTicks(a.ticks,n._getViewportRange());i.showCustomBoundaryTicks&&s.length?(n._boundaryTicks=[s[0]].map(B1e(n,e,!0)),s.length>1&&(n._boundaryTicks=n._boundaryTicks.concat([s[1]].map(B1e(n,e,!1))))):n._boundaryTicks=[];var l=(a.minorTicks||[]).filter(function(z){return!s.some(function(j){return Lu(j)===Lu(z)})});n._tickInterval=a.tickInterval,n._minorTickInterval=a.minorTickInterval;var u=n._majorTicks||[],f=u.reduce((z,j)=>(z[j.value.valueOf()]=j,z),{}),S=Fa(a.ticks[0])===Fa(u[0]&&u[0].value),T=n._getSkippedCategory(a.ticks),R=a.ticks.map(z=>{var j=f[z.valueOf()];return j&&S?(delete f[z.valueOf()],j.setSkippedCategory(T),j):R1e(n,e,T)(z)});n._majorTicks=R;var L=n._minorTicks||[];n._minorTicks=l.map((z,j)=>{var Y=L[j];return Y?(Y.updateValue(z),Y):L1e(n,e)(z)}),n._ticksToRemove=Object.keys(f).map(z=>f[z]).concat(L.slice(n._minorTicks.length,L.length)),n._ticksToRemove.forEach(z=>{var j;return null===(j=z.label)||void 0===j?void 0:j.removeTitle()}),a.breaks&&(n._seriesData.breaks=a.breaks),n._reinitTranslator(n._getViewportRange())}},_reinitTranslator:function(t){this._isSynchronized||this._translator.updateBusinessRange(t)},_getViewportRange(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(t){this._marginOptions=t},getMarginOptions(){var t;return null!==(t=this._marginOptions)&&void 0!==t?t:{}},_calculateRangeInterval:function(t){var n="datetime"===this._options.dataType,e=[],i=function(r){Z(r)&&e.push(n?bt.dateToMilliseconds(r):r)};return i(this._tickInterval),i(this._estimatedTickInterval),Z(t)&&e.push(t),i(this._aggregationInterval),this._calculateWorkWeekInterval(D4.apply(this,e))},_calculateWorkWeekInterval(t){var n=this._options;if("datetime"===n.dataType&&n.workdaysOnly&&t){var e=864e5*n.workWeek.length,i=6048e5-e;e!==t&&i<t?t-=i*Math.ceil(t/6048e5):i>=t&&t>864e5&&(t=864e5)}return t},_getConvertIntervalCoefficient(t,n){var e=this._translator.ratioOfCanvasRange();return e/(e*n/(t+n))},_calculateValueMargins(t){this._resetMargins();var z,n=this.getMarginOptions(),e=(n.size||0)/2,i=this._options,r=this._getViewportRange(),o=this.getViewport(),a=this._getScreenDelta(),s=-1!==(i.type||"").indexOf("discrete"),l=i.valueMarginsEnabled&&!s&&!this.customPositionIsBoundaryOrthogonalAxis(),u=this._translator,f=i.minValueMargin,S=i.maxValueMargin,T=0,R=0,L=0;if(r.stubData||!a)return{startPadding:0,endPadding:0};if(this.isArgumentAxis&&n.checkInterval){z=this._calculateRangeInterval(r.interval);var j=u.getInterval(z);isFinite(j)?L=Math.ceil(j/(2*this._getConvertIntervalCoefficient(j,a))):z=0}var Y,ie,te=.8*a/2;l&&(Z(f)?Y=isFinite(f)?f:0:!this.isArgumentAxis&&n.checkInterval&&Lu(r.minVisible)>0&&Lu(r.minVisible)===Lu(r.min)?T=5:(T=Math.max(e,L),T=Math.min(te,T)),Z(S)?ie=isFinite(S)?S:0:!this.isArgumentAxis&&n.checkInterval&&Lu(r.maxVisible)<0&&Lu(r.maxVisible)===Lu(r.max)?R=5:(R=Math.max(e,L),R=Math.min(te,R))),n.percentStick&&!this.isArgumentAxis&&(1===Tp(r.max)&&(R=0),1===Tp(r.min)&&(T=0));var Re,He,he=this._getCanvasStartEnd(),Te=(a-T-R)/(1+(Y||0)+(ie||0))||a;if((void 0!==Y||void 0!==ie)&&(void 0!==Y&&(T=Te*Y),void 0!==ie&&(R=Te*ie)),"discrete"!==i.type&&t&&t.length>1&&!i.skipViewportExtending&&!o.action&&!1!==i.endOnTick){var Ze=t.length,at=u.translate(t[0].value),vt=u.translate(t[Ze-1].value),Bt=at>vt?-1:1,St=Jg(Bt*(he.start-at),0),ct=Jg(Bt*(vt-he.end),0);if(St>T||ct>R){var Kt=this._getConvertIntervalCoefficient(ct+St,a);St>=T&&(Re=t[0].value),ct>=R&&(He=t[Ze-1].value),T=Jg(St,T)/Kt,R=Jg(ct,R)/Kt}}if(Y=void 0===Y?T/Te:Y,ie=void 0===ie?R/Te:ie,!s)if(this._translator.isInverted()){var on,hn;Re=null!==(on=Re)&&void 0!==on?on:u.from(he.start+a*Y,-1),He=null!==(hn=He)&&void 0!==hn?hn:u.from(he.end-a*ie,1)}else{var bn,Qn;Re=null!==(bn=Re)&&void 0!==bn?bn:u.from(he.start-a*Y,-1),He=null!==(Qn=He)&&void 0!==Qn?Qn:u.from(he.end+a*ie,1)}var{correctedMin:Xn,correctedMax:Ie,start:We,end:Ve}=this.getCorrectedValuesToZero(Re,He);return T=We??T,R=Ve??R,{startPadding:u.isInverted()?R:T,endPadding:u.isInverted()?T:R,minValue:Xn??Re,maxValue:Ie??He,interval:z,isSpacedMargin:T===R&&0!==T}},getCorrectedValuesToZero(t,n){var l,u,f,S,e=this,i=e._translator,r=e._getCanvasStartEnd(),o=e._getViewportRange(),a=e._getScreenDelta(),T=(R,L)=>{var z=Tp(r.start-R),j=Tp(r.end-L),Y=e._getConvertIntervalCoefficient(z+j,a);l=z/Y,u=j/Y};return!e.isArgumentAxis&&"datetime"!==e._options.dataType&&(t*o.min<=0&&t*o.minVisible<=0&&(T(i.translate(0),i.translate(n)),f=0),n*o.max<=0&&n*o.maxVisible<=0&&(T(i.translate(t),i.translate(0)),S=0)),{start:isFinite(l)?l:null,end:isFinite(u)?u:null,correctedMin:f,correctedMax:S}},applyMargins(){if(!this._isSynchronized){var t=this._calculateValueMargins(this._majorTicks),n=se({},this._canvas,{startPadding:t.startPadding,endPadding:t.endPadding});if(this._translator.updateCanvas(this._processCanvas(n)),isFinite(t.interval)){var e=this._translator.getBusinessRange();e.addRange({interval:t.interval}),this._translator.updateBusinessRange(e)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines(){var t=(this._options.constantLines||[]).map(n=>function pFt(t,n){var r,a,s,e=n.label||{},i=e.position||"inside",o=!1;return t._checkAlignmentConstantLineLabels(e),{options:n,labelOptions:e,labelPosition:i,label:null,line:null,getParsedValue:()=>(o||(r=t.validateUnit(n.value,"E2105","constantLine"),o=!0),r),draw(){if(!Z(n.value)||t._translator.getBusinessRange().isEmpty())return this;var l=t._getCanvasStartEnd(),u=this.getParsedValue();this.coord=t._getConstantLinePos(u,l.start,l.end);var f=n.displayBehindSeries?t._axisConstantLineGroups.under:t._axisConstantLineGroups.above,S=f[i];if(S||(S=f[t._isHorizontal?e.verticalAlignment:e.horizontalAlignment]),!Z(this.coord))return this;var R=t._createConstantLine(this.coord,{stroke:n.color,"stroke-width":n.width,dashStyle:n.dashStyle});return this.line=R.append(f.inside),this.label=e.visible?t._drawConstantLineLabels(u,e,this.coord,S):null,this.updatePosition(),this},getContentContainer(){return this.label},removeLabel(){this.label&&this.label.remove()},updatePosition(l){var u=t._getCanvasStartEnd(),f=t._getConstantLinePos(this.getParsedValue(),u.start,u.end);Z(f)&&(this.coord=f,l&&s?(this.label&&this.label.attr(t._getConstantLineLabelsCoords(s,this.labelOptions)),this.line&&this.line.attr(t._getConstantLineGraphicAttributes(s)),this.label&&this.label.animate(t._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.animate(t._getConstantLineGraphicAttributes(this.coord))):(this.label&&this.label.attr(t._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.attr(t._getConstantLineGraphicAttributes(this.coord)),t._rotateConstantLine(this.line,this.coord)))},saveCoords(){a=s,s=this.coord},resetCoordinates(){s=a}}}(this,n));this._outsideConstantLines=t.filter(n=>"outside"===n.labelPosition),this._insideConstantLines=t.filter(n=>"inside"===n.labelPosition)},draw:function(t,n){var e=this,i=this._options;e.borderOptions=n||{visible:!1},e._resetMargins(),e.createTicks(t),e.applyMargins(),e._clearAxisGroups(),J1(e._majorTicks),J1(e._minorTicks),J1(e._boundaryTicks),e._axisGroup.append(e._axesContainerGroup),e._drawAxis(),e._drawTitle(),qK(e._majorTicks,i.tick),qK(e._minorTicks,i.minorTick),qK(e._boundaryTicks,i.tick);var r=e._getGridLineDrawer();N1e(e._majorTicks,r),N1e(e._minorTicks,r),as(e._majorTicks,"drawLabel",e._getViewportRange(),e._getTemplate(i.label.template)),e._templatesRendered&&e._templatesRendered.reject(),e._templatesRendered=new et,e._majorTicks.forEach(function(a){a.labelRotationAngle=0,a.labelAlignment=void 0,a.labelOffset=0}),as(e._outsideConstantLines.concat(e._insideConstantLines),"draw"),as(e._strips,"draw"),e._dateMarkers=e._drawDateMarkers()||[],e._stripLabelAxesGroup&&e._axisStripLabelGroup.append(e._stripLabelAxesGroup),e._gridContainerGroup&&e._axisGridGroup.append(e._gridContainerGroup),e._stripsGroup&&e._axisStripGroup.append(e._stripsGroup),e._labelsAxesGroup&&e._axisElementsGroup.append(e._labelsAxesGroup),e._constantLinesGroup&&(e._axisConstantLineGroups.above.inside.append(e._constantLinesGroup.above),e._axisConstantLineGroups.above.outside1.append(e._constantLinesGroup.above),e._axisConstantLineGroups.above.outside2.append(e._constantLinesGroup.above),e._axisConstantLineGroups.under.inside.append(e._constantLinesGroup.under),e._axisConstantLineGroups.under.outside1.append(e._constantLinesGroup.under),e._axisConstantLineGroups.under.outside2.append(e._constantLinesGroup.under)),e._measureTitle(),BC(e._majorTicks),!i.label.template&&e._applyWordWrap(),BC(e._outsideConstantLines),BC(e._insideConstantLines),BC(e._strips),BC(e._dateMarkers),e._adjustConstantLineLabels(e._insideConstantLines),e._adjustStripLabels();var o=e._constantLabelOffset=e._adjustConstantLineLabels(e._outsideConstantLines);e._translator.getBusinessRange().isEmpty()||(e._setLabelsPlacement(),o=e._adjustLabels(o)),Qt.apply(this,e._majorTicks.map(a=>a.getTemplateDeferred())).done(()=>{e._templatesRendered.resolve()}),o=e._adjustDateMarkers(o),e._adjustTitle(o)},getTemplatesDef(){return this._templatesRendered},setRenderedState(t){this._drawn=t},isRendered(){return this._drawn},_applyWordWrap(){var t,n,e,i=this._options,r=this._tickInterval;Z(r)&&(t=this.getTranslator().getInterval("datetime"===i.dataType?bt.dateToMilliseconds(r):r));var o=this._validateDisplayMode(i.label.displayMode),a=this._validateOverlappingMode(i.label.overlappingBehavior,o);if(("none"!==(i.label.wordWrap||"none")||"none"!==(i.label.textOverflow||"none"))&&o!==TI&&a!==TI&&"auto"!==a){var u=Z(i.placeholderSize)?i.placeholderSize-i.label.indentFromAxis:void 0;this._isHorizontal?(n=t,e=u):(n=u,e=t);var f=!1,S=!1;n&&this._majorTicks.some(T=>T.labelBBox.width>n)&&(f=!0),e&&this._majorTicks.some(T=>T.labelBBox.height>e)&&(S=!0),(f||S)&&(this._majorTicks.forEach(T=>{T.label&&T.label.setMaxSize(n,e,i.label)}),BC(this._majorTicks))}},_measureTitle:Be,animate(){as(this._majorTicks,"animateLabels")},updateSize(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.updateCanvas(t),e&&(this._checkTitleOverflow(),this._measureTitle(),this._updateTitleCoords()),this._reinitTranslator(this._getViewportRange()),this.applyMargins();var i=!this._firstDrawing&&n,r=this._options;J1(this._majorTicks),J1(this._minorTicks),J1(this._boundaryTicks),this._resetApplyingAnimation&&!this._firstDrawing&&this._resetStartCoordinates(),ZK(this._majorTicks),ZK(this._minorTicks),ZK(this._boundaryTicks),this._axisElement&&this._updateAxisElementPosition(),YK(this._majorTicks,r.tick,i),YK(this._minorTicks,r.minorTick,i),YK(this._boundaryTicks,r.tick),as(this._majorTicks,"updateLabelPosition",i),this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(o=>o.updatePosition(i)),as(this._strips,"updatePosition",i),V1e(this._majorTicks,i),V1e(this._minorTicks,i),i&&as(this._ticksToRemove||[],"fadeOutElements"),this.prepareAnimation(),this._ticksToRemove=null,this._translator.getBusinessRange().isEmpty()||(this._firstDrawing=!1),this._resetApplyingAnimation=!1,this._updateLabelsPosition()},_updateLabelsPosition:Be,prepareAnimation(){var t="saveCoords";as(this._majorTicks,t),as(this._minorTicks,t),as(this._insideConstantLines,t),as(this._outsideConstantLines,t),as(this._strips,t)},_resetStartCoordinates(){var t="resetCoordinates";as(this._majorTicks,t),as(this._minorTicks,t),as(this._insideConstantLines,t),as(this._outsideConstantLines,t),as(this._strips,t)},applyClipRects:function(t,n){this._axisGroup.attr({"clip-path":n}),this._axisStripGroup.attr({"clip-path":t}),this._axisElementsGroup.attr({"clip-path":n})},_validateVisualRange(t){var n=jg(t);return void 0!==n.startValue&&(n.startValue=this.validateUnit(n.startValue)),void 0!==n.endValue&&(n.endValue=this.validateUnit(n.endValue)),I_(n,!M1e(t))},_validateOptions(t){t.wholeRange=this._validateVisualRange(t.wholeRange),t.visualRange=t._customVisualRange=this._validateVisualRange(t._customVisualRange),this._setVisualRange(t._customVisualRange)},validate(){var t=this._options,n=this.isArgumentAxis?t.argumentType:t.valueType,e=n?BK(n):function(i){return i};this.parser=e,t.dataType=n,this._validateOptions(t)},resetVisualRange(t){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!t,end:!!t})},_setVisualRange(t,n){var e=this.adjustRange(jg(t));n?(Z(e.startValue)&&(this._viewport.startValue=e.startValue),Z(e.endValue)&&(this._viewport.endValue=e.endValue)):this._viewport=e},_applyZooming(t,n){this._resetVisualRangeOption(),this._setVisualRange(t,n);var e=this.getViewport();this._seriesData.userBreaks=this._getScaleBreaks(this._options,{minVisible:e.startValue,maxVisible:e.endValue},this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},getZoomStartEventArg(t,n){return{axis:this,range:this.visualRange(),cancel:!1,event:t,actionType:n}},_getZoomEndEventArg(t,n,e,i,r){var o=this.visualRange();return{axis:this,previousRange:t,range:o,cancel:!1,event:n,actionType:e,zoomFactor:i,shift:r,rangeStart:o.startValue,rangeEnd:o.endValue}},getZoomBounds(){var t=jg(this._options.wholeRange),n=this.getTranslator().getBusinessRange(),e={startValue:E4(this._initRange.startValue,n.min),endValue:E4(this._initRange.endValue,n.max)};return{startValue:E4(t.startValue,e.startValue),endValue:E4(t.endValue,e.endValue)}},setInitRange(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds())},_resetVisualRangeOption(){this._options._customVisualRange={}},getTemplatesGroups(){return this._majorTicks?this._majorTicks.map(n=>n.templateContainer).filter(n=>Z(n)):[]},setCustomVisualRange(t){this._options._customVisualRange=t},visualRange(){var n,t=arguments;if(0===t.length){var o,a,e=this._getAdjustedBusinessRange(),i=e.minVisible,r=e.maxVisible;return"discrete"===this._options.type?{startValue:i=null!==(o=i)&&void 0!==o?o:e.categories[0],endValue:r=null!==(a=r)&&void 0!==a?a:e.categories[e.categories.length-1],categories:Gg(e.categories,i,r).categories}:{startValue:i,endValue:r}}n=M1e(t[0])?t[0]:wi(t[0])?se({},t[0]):[t[0],t[1]];var s=this.handleZooming(n,t[1]);s.isPrevented||this._visualRange(this,s)},handleZooming(t,n,e,i){n=n||{},Z(t)&&((t=this._validateVisualRange(t)).action=i);var r=this.getZoomStartEventArg(e,i),o=r.range;!n.start&&this._eventTrigger("zoomStart",r);var a={isPrevented:r.cancel,skipEventRising:n.skipEventRising,range:t||r.range};return r.cancel||(Z(t)&&this._applyZooming(t,n.allowPartialUpdate),Z(this._storedZoomEndParams)||(this._storedZoomEndParams={startRange:o,type:this.getOptions().type}),this._storedZoomEndParams.event=e,this._storedZoomEndParams.action=i,this._storedZoomEndParams.prevent=!!n.end),a},handleZoomEnd(){if(Z(this._storedZoomEndParams)&&!this._storedZoomEndParams.prevent){var t=this._storedZoomEndParams.startRange,n=this._storedZoomEndParams.event,e=this._storedZoomEndParams.action,i={minVisible:t.startValue,maxVisible:t.endValue,categories:t.categories},r=this.getOptions().type===this._storedZoomEndParams.type,o=r?Kr(this.getVisualRangeCenter()-this.getVisualRangeCenter(i,!1)):NaN,a=r?+(Math.round(this.getVisualRangeLength(i)/(this.getVisualRangeLength()||1)+"e+2")+"e-2"):NaN,s=this._getZoomEndEventArg(t,n,e,a,o);s.cancel=this.checkZoomingLowerLimitOvercome(1===a?"pan":"zoom",a).stopInteraction,this._eventTrigger("zoomEnd",s),s.cancel&&this._restorePreviousVisualRange(t),this._storedZoomEndParams=null}},_restorePreviousVisualRange(t){this._storedZoomEndParams=null,this._applyZooming(t),this._visualRange(this,t)},checkZoomingLowerLimitOvercome(t,n,e){var s,i=this._options,r=this._translator,o=i.minVisualRangeLength,a=e,l="zoom"===t&&n>=1,u=r.getBusinessRange();e&&(s={minVisible:(s=this.adjustRange(jg(e))).startValue,maxVisible:s.endValue,categories:u.categories});var f=this.getVisualRangeLength(u),S=this.getVisualRangeLength(s);if(Z(o)||"discrete"===i.type)o=r.convert(o),s&&o<f&&o>=S?(a=jg(r.getRangeByMinZoomValue(o,s)),l=!1):l&=o>S;else{var T=this._translator.canvasLength;l&=this.getVisualRangeLength({minVisible:u.min,maxVisible:u.max,categories:u.categories})/T>=S}return{stopInteraction:!!l,correctedRange:a}},isExtremePosition(t){var n,e;"discrete"===this._options.type?(e=this._translator.getBusinessRange(),n=t?e.categories[e.categories.length-1]:e.categories[0]):(e=this.getZoomBounds(),n=t?e.endValue:e.startValue);var i=this.getTranslator(),r=i.translate(n),o=this.visualRange(),a=i.translate(t?o.endValue:o.startValue);return Tp(a-r)<5},getViewport(){return this._viewport},getFullTicks:function(){var t=this._majorTicks||[];return"discrete"===this._options.type?Z1(t):Z1(t.concat(this._minorTicks,this._boundaryTicks)).sort(function(n,e){return Lu(n)-Lu(e)})},measureLabels:function(t,n){var o,s,e=this,i=e._options,r=i.visible?i.width:0,a=n?i.label.indentFromAxis+.5*i.tick.length:0,l=e._getViewportRange();if(l.isEmpty()||!i.label.visible||!e._axisElementsGroup)return{height:r,width:r,x:0,y:0};e._majorTicks?o=Z1(e._majorTicks):(e.updateCanvas(t),o=e._createTicksAndLabelFormat(l,Be),s=o.tickInterval,o=o.ticks);var u=o.reduce(function(T,R,L){var z=e.formatLabel(R,i.label,l,void 0,s,o);return T.length<z.length?z:T},e.formatLabel(o[0],i.label,l,void 0,s,o)),f=e._renderer.text(u,0,0).css(e._textFontStyles).attr(e._textOptions).append(e._renderer.root),S=f.getBBox();return f.remove(),{x:S.x,y:S.y,width:S.width+a,height:S.height+a}},_setLabelsPlacement:function(){if(this._options.label.visible){var o,t=this._options.label,n=this._validateDisplayMode(t.displayMode),e=this._validateOverlappingMode(t.overlappingBehavior,n),i="none"===e||"ignore"===e,r={rotationAngle:t.rotationAngle,staggeringSpacing:t.staggeringSpacing},a=this._majorTicks.map(function(l){return l.labelBBox}),s=this._getStep(a);switch(n){case TI:i&&(o=!0,s=1),this._applyLabelMode(n,s,a,t,o);break;case"stagger":i&&(s=2),this._applyLabelMode(n,Jg(s,2),a,t);break;default:this._applyLabelOverlapping(a,e,s,r)}}},_applyLabelOverlapping:function(t,n,e,i){var r=this._options.label,o=this._majorTicks;"none"===n||"ignore"===n||(e>1&&t.some(function(a,s,l){return 0!==s&&wr_areLabelsOverlap(a,l[s-1],r.minSpacing,r.alignment)})&&this._applyLabelMode(n,e,t,i),this._checkBoundedLabelsOverlapping(o,t,n),this._checkShiftedLabels(o,t,r.minSpacing,r.alignment))},_applyLabelMode:function(t,n,e,i,r){var l,u,o=this._majorTicks,a=this._options.label,s=i.rotationAngle;switch(t){case TI:a.userAlignment||(u=s<0?Ip:Rh,s%90==0&&(u=X1)),XK(o,n=r?n:this._getStep(e,s),function(S){var T=S.getContentContainer();T&&(T.rotate(s),S.labelRotationAngle=s,u&&(S.labelAlignment=u))});break;case"stagger":l=this._getMaxLabelHeight(e,i.staggeringSpacing),XK(o,n-1,function(S,T){T/(n-1)%2!=0&&(S.labelOffset=l)});break;case"auto":case"_auto":2===n?this._applyLabelMode("stagger",n,e,i):this._applyLabelMode(TI,n,e,{rotationAngle:bFt(e,a)});break;default:XK(o,n)}},getMarkerTrackers:Be,_drawDateMarkers:Be,_adjustDateMarkers:Be,coordsIn:Be,areCoordsOutsideAxis:Be,_getSkippedCategory:Be,_initAxisPositions:Be,_drawTitle:Be,_updateTitleCoords:Be,_adjustConstantLineLabels:Be,_createTranslator:function(){return new EI({},{},{})},_updateTranslator:function(){var t=this._translator;t.update(t.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var t,n,e,i=this._options;return{isHorizontal:this._isHorizontal,shiftZeroValue:!this.isArgumentAxis,interval:i.semiDiscreteInterval,firstDayOfWeek:null===(t=i.workWeek)||void 0===t?void 0:t[0],stick:this._getStick(),breaksSize:null!==(n=null===(e=i.breakStyle)||void 0===e?void 0:e.width)&&void 0!==n?n:0}},getVisibleArea(){var t=this._getCanvasStartEnd();return[t.start,t.end].sort((n,e)=>n-e)},_getCanvasStartEnd:function(){var t=this._isHorizontal,n=this._canvas||{},e=this._translator.getBusinessRange().invert,i=t?[n.left,n.width-n.right]:[n.height-n.bottom,n.top];return e&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var t=this._getCanvasStartEnd(),n=this._seriesData&&this._seriesData.breaks||[],e=n.length;return Tp(t.start-t.end)-(e?n[e-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_filterBreaks:function(){return[]},_adjustTitle:Be,_checkTitleOverflow:Be,getSpiderTicks:Be,setSpiderTicks:Be,_checkBoundedLabelsOverlapping:Be,_checkShiftedLabels:Be,drawScaleBreaks:Be,_visualRange:Be,_rotateConstantLine:Be,applyVisualRangeSetter(t){this._visualRange=t},getCategoriesSorter(t){return this.isArgumentAxis?t:this._options.categoriesSortingMethod??this._options.categories},_getAdjustedBusinessRange(){return this.adjustViewport(this._translator.getBusinessRange())}};var O4=Array.isArray,JK=isFinite,Q1=Number,QK=Math.min,e$=Math.max,t$=se,kI="value",MI="subvalues",DFt=[1,2,5];function T4(t,n){return null===t?t:JK(t)?Q1(t):n}function n$(t){return O4(t)?t:di(t)?[t]:null}var U1e=Ep.inherit({_initCore:function(){var t=this,n=t._renderer;t._setupValue(t.option(kI)),t.__subvalues=n$(t.option(MI)),t._setupSubvalues(t.__subvalues),OFt(t),t.callBase.apply(t,arguments),t._rangeContainer=new t._factory.RangeContainer({renderer:n,container:n.root,translator:t._translator,themeManager:t._themeManager}),t._initScale(),t._subvalueIndicatorContainer=t._renderer.g().attr({class:"dxg-subvalue-indicators"}).linkOn(t._renderer.root,"valueIndicator").enableLinks()},_fontFields:["scale.label.font","valueIndicators.rangebar.text.font","valueIndicators.textcloud.text.font","indicator.text.font"],_initScale:function(){this._scaleGroup=this._renderer.g().attr({class:"dxg-scale"}).linkOn(this._renderer.root,"scale"),this._labelsAxesGroup=this._renderer.g().attr({class:"dxg-scale-elements"}).linkOn(this._renderer.root,"scale-elements"),this._scale=new J_({incidentOccurred:this._incidentOccurred,renderer:this._renderer,axesContainerGroup:this._scaleGroup,labelsAxesGroup:this._labelsAxesGroup,axisType:this._scaleTypes.type,drawingType:this._scaleTypes.drawingType,widgetClass:"dxg",getTemplate(){}})},_disposeCore:function(){var t=this;t.callBase.apply(t,arguments),t._scale.dispose(),t._scaleGroup.linkOff(),t._labelsAxesGroup.linkOff(),t._rangeContainer.dispose(),t._disposeValueIndicators(),t._subvalueIndicatorContainer.linkOff(),t._scale=t._scaleGroup=t._labelsAxesGroup=t._rangeContainer=null},_disposeValueIndicators:function(){this._valueIndicator&&this._valueIndicator.dispose(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.dispose(),this._valueIndicator=this._subvalueIndicatorsSet=null},_setupDomainCore:function(){var t=this.option("scale")||{},n=this.option("startValue"),e=this.option("endValue");n=di(n)?Q1(n):di(t.startValue)?Q1(t.startValue):0,e=di(e)?Q1(e):di(t.endValue)?Q1(t.endValue):100,this._baseValue=n<e?n:e,this._translator.setDomain(n,e)},_cleanContent:function(){this._rangeContainer.clean(),this._cleanValueIndicators()},_measureScale:function(t){var n=t.tick,e=n.visible&&n.length>0&&n.width>0,i=t.minorTick,r=i.visible&&i.length>0&&i.width>0,o=t.label,a=Number(o.indentFromTick);if(!e&&!r&&!o.visible)return{};var s=this._scale.measureLabels(se({},this._canvas)),l=this._getScaleLayoutValue(),u={min:l,max:l},f=this._getTicksCoefficients(t),S=f.inner,T=f.outer;return e&&(u.min=QK(u.min,l-S*n.length),u.max=e$(u.max,l+T*n.length)),r&&(u.min=QK(u.min,l-S*i.length),u.max=e$(u.max,l+T*i.length)),o.visible&&this._correctScaleIndents(u,a,s),u},_renderContent:function(){var t=this,n=t._prepareScaleSettings();t._rangeContainer.render(t$(t._getOption("rangeContainer"),{vertical:t._area.vertical})),t._renderScale(n),t._subvalueIndicatorContainer.linkAppend();var e=ma([t._rangeContainer].concat(t._prepareValueIndicators()),function(i){return i&&i.enabled?i:null});t._applyMainLayout(e,t._measureScale(n)),e.forEach(i=>i.resize(t._getElementLayout(i.getOffset()))),t._shiftScale(t._getElementLayout(0),n),t._beginValueChanging(),t._updateActiveElements(),t._endValueChanging()},_prepareScaleSettings:function(){var t=this,n=t.option("scale"),e=se(!0,{},t._themeManager.theme("scale"),n);return e.label.indentFromAxis=0,e.isHorizontal=!t._area.vertical,e.forceUserTickInterval|=Z(n)&&Z(n.tickInterval)&&!Z(n.scaleDivisionFactor),e.axisDivisionFactor=e.scaleDivisionFactor||t._gridSpacingFactor,e.minorAxisDivisionFactor=e.minorScaleDivisionFactor||5,e.numberMultipliers=DFt,e.tickOrientation=t._getTicksOrientation(e),e.label.useRangeColors&&(e.label.customizeColor=function(){return t._rangeContainer.getColorForValue(this.value)}),e},_renderScale:function(t){var n=this._translator.getDomain(),e=n[0],i=n[1],r=this._translator.getCodomain(),o=!!(e>i^t.inverted),a=QK(e,i),s=e$(e,i);t.min=a,t.max=s,t.startAngle=90-r[0],t.endAngle=90-r[1],t.skipViewportExtending=!0,t.inverted=o,this._scale.updateOptions(t),this._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:a,max:s,invert:o}),this._updateScaleTickIndent(t),this._scaleGroup.linkAppend(),this._labelsAxesGroup.linkAppend(),this._scale.draw(se({},this._canvas))},_updateIndicatorSettings:function(t){t.currentValue=t.baseValue=JK(this._translator.translate(t.baseValue))?Q1(t.baseValue):this._baseValue,t.vertical=this._area.vertical,t.text&&!t.text.format&&(t.text.format=this._defaultFormatOptions)},_prepareIndicatorSettings:function(t,n){var e=this._themeManager.theme("valueIndicators"),i=Ri(t.type||this._themeManager.theme(n)),r=t$(!0,{},e._default,e[i],t);return r.type=i,r.animation=this._animationSettings,r.containerBackgroundColor=this._containerBackgroundColor,this._updateIndicatorSettings(r),r},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){return this._prepareValueIndicator(),null!==this.__subvalues&&this._prepareSubvalueIndicators(),[this._valueIndicator,this._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var t=this._valueIndicator,n=this._prepareIndicatorSettings(this.option("valueIndicator")||{},"valueIndicatorType");t&&t.type!==n.type&&(t.dispose(),t=null),t||(t=this._valueIndicator=this._createIndicator(n.type,this._renderer.root,"dxg-value-indicator","value-indicator")),t.render(n)},_createSubvalueIndicatorsSet:function(){var t=this,n=t._subvalueIndicatorContainer;return new i$({createIndicator:function(e,i){return t._createIndicator(e,n,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(e){return t._themeManager.createPalette(e)}})},_prepareSubvalueIndicators:function(){var t=this._subvalueIndicatorsSet,n=this._prepareIndicatorSettings(this.option("subvalueIndicator")||{},"subvalueIndicatorType");t||(t=this._subvalueIndicatorsSet=this._createSubvalueIndicatorsSet());var e=n.type!==t.type;t.type=n.type;var i=this._createIndicator(n.type,this._renderer.root);i&&(i.dispose(),t.render(n,e))},_setupValue:function(t){this.__value=T4(t,this.__value)},_setupSubvalues:function(t){var e,i,r,n=void 0===t?this.__subvalues:n$(t);if(null!==n){for(e=0,i=n.length,r=[];e<i;++e)r.push(T4(n[e],this.__subvalues[e]));this.__subvalues=r}},_updateValueIndicator:function(){this._valueIndicator&&this._valueIndicator.value(this.__value,this._noAnimation)},_updateSubvalueIndicators:function(){this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.values(this.__subvalues,this._noAnimation)},value:function(t){return void 0!==t?(this._changeValue(t),this):this.__value},subvalues:function(t){return void 0!==t?(this._changeSubvalues(t),this):null!==this.__subvalues?this.__subvalues.slice():void 0},_changeValue:function(t){this._setupValue(t),this._beginValueChanging(),this._updateValueIndicator(),this.__value!==this.option(kI)&&this.option(kI,this.__value),this._endValueChanging()},_changeSubvalues:function(t){null!==this.__subvalues?(this._setupSubvalues(t),this._beginValueChanging(),this._updateSubvalueIndicators(),this._endValueChanging()):(this.__subvalues=n$(t),this._setContentSize(),this._renderContent()),Mwe(this.__subvalues,this.option(MI))||this.option(MI,this.__subvalues)},_optionChangesMap:{scale:"DOMAIN",rangeContainer:"MOSTLY_TOTAL",valueIndicator:"MOSTLY_TOTAL",subvalueIndicator:"MOSTLY_TOTAL",containerBackgroundColor:"MOSTLY_TOTAL",value:"VALUE",subvalues:"SUBVALUES",valueIndicators:"MOSTLY_TOTAL"},_customChangesOrder:["VALUE","SUBVALUES"],_change_VALUE:function(){this._changeValue(this.option(kI))},_change_SUBVALUES:function(){this._changeSubvalues(this.option(MI))},_applyMainLayout:null,_getElementLayout:null,_createIndicator:function(t,n,e,i,r,o){var a=this._factory.createIndicator({renderer:this._renderer,translator:this._translator,owner:n,tracker:this._tracker,className:e},t,o);return a&&(a.type=t,a._trackerInfo={type:i,index:r}),a},_getApproximateScreenRange:null});function EFt(t){return t?t.value:null}function W1e(t,n,e){for(var i=t[n],r=O4(e)?ma(e,EFt):[],o=0,a=r.length,s=[];o<a;++o)s.push(T4(r[o],i[o]));t[n]=s}function OFt(t){void 0===t.option(kI)&&void 0===t.option(MI)&&void 0!==t.option("valueIndicators")&&(function TFt(t){t.value=t.subvalues=Be,t._setupValue=t._setupSubvalues=t._updateValueIndicator=t._updateSubvalueIndicators=null}(t),function IFt(t){t._indicatorValues=[],W1e(t,"_indicatorValues",t.option("valueIndicators")),t._valueIndicators=[];var n=t._applyMostlyTotalChange;t._applyMostlyTotalChange=function(){W1e(this,"_indicatorValues",this.option("valueIndicators")),n.call(this)},t._updateActiveElements=kFt,t._prepareValueIndicators=MFt,t._disposeValueIndicators=AFt,t._cleanValueIndicators=FFt,t.indicatorValue=PFt}(t))}function kFt(){var t=this;t._valueIndicators.forEach(n=>{n.value(t._indicatorValues[n.index],t._noAnimation)})}function MFt(){var o,t=this,n=t._valueIndicators||[],e=t.option("valueIndicators"),i=[],r=0;for(o=O4(e)?e.length:0;r<o;++r)i.push(e[r]);for(o=n.length;r<o;++r)i.push(null);var a=[];return i.forEach((s,l)=>{var u=n[l];if(s){var f=t._prepareIndicatorSettings(s,"valueIndicatorType");u&&u.type!==f.type&&(u.dispose(),u=null),u||(u=t._createIndicator(f.type,t._renderer.root,"dxg-value-indicator","value-indicator",l,!0)),u&&(u.index=l,u.render(f),a.push(u))}else u&&u.dispose()}),t._valueIndicators=a,t._valueIndicators}function AFt(){this._valueIndicators.forEach(t=>t.dispose()),this._valueIndicators=null}function FFt(){this._valueIndicators.forEach(t=>t.clean())}function PFt(t,n){return function RFt(t,n,e,i,r){return void 0!==r?(void 0!==e[i]&&(e[i]=T4(r,e[i]),n[i]&&n[i].value(e[i])),t):e[i]}(this,this._valueIndicators,this._indicatorValues,t,n)}function i$(t){this._parameters=t,this._indicators=[]}function G1e(t){return function(n,e,i){var r=t[Ri(e)]||!i&&t._default;return r?new r(n):null}}i$.prototype={constructor:i$,dispose:function(){return this._indicators.forEach(t=>t.dispose()),this._parameters=this._options=this._indicators=this._colorPalette=this._palette=null,this},clean:function(){return this._sample&&this._sample.clean().dispose(),this._indicators.forEach(t=>t.clean()),this._sample=this._options=this._palette=null,this},render:function(t,n){var e=this;return e._options=t,e._sample=e._parameters.createIndicator(e.type),e._sample.render(t),e.enabled=e._sample.enabled,e._palette=Z(t.palette)?e._parameters.createPalette(t.palette):null,e.enabled&&(e._generatePalette(e._indicators.length),e._indicators=ma(e._indicators,function(i,r){return n&&(i.dispose(),i=e._parameters.createIndicator(e.type,r)),i.render(e._getIndicatorOptions(r)),i})),e},getOffset:function(){return this._sample.getOffset()},resize:function(t){return this._layout=t,this._indicators.forEach(n=>n.resize(t)),this},measure:function(t){return this._sample.measure(t)},_getIndicatorOptions:function(t){var n=this._options;return this._colorPalette&&(n=t$({},n,{color:this._colorPalette[t]})),n},_generatePalette:function(t){var n=null;this._palette&&(this._palette.reset(),n=this._palette.generateColors(t,{repeat:!0})),this._colorPalette=n},_adjustIndicatorsCount:function(t){var e,i,r,n=this._indicators,o=n.length;if(o>t){for(e=t,i=o;e<i;++e)n[e].clean().dispose();this._indicators=n.slice(0,t),this._generatePalette(n.length)}else if(o<t)for(this._generatePalette(t),e=o,i=t;e<i;++e)(r=this._parameters.createIndicator(this.type,e)).render(this._getIndicatorOptions(e)).resize(this._layout),n.push(r)},values:function(t,n){if(this.enabled)return void 0!==t?(O4(t)||(t=JK(t)?[Number(t)]:null),t&&(this._adjustIndicatorsCount(t.length),this._indicators.forEach((e,i)=>e.value(t[i],n))),this):ma(this._indicators,function(e){return e.value()})}};var LFt=isFinite,j1e=Number,Lh=Math.round,K1e=s4,$1e=kwe,q1e=ji.inherit({ctor:function(t){var n=this;we(t,function(e,i){n["_"+e]=i}),n._init()},dispose:function(){var t=this;return t._dispose(),we(t,function(n){t[n]=null}),t},getOffset:function(){return j1e(this._options.offset)||0}}),I4=q1e.inherit({_init:function(){this._rootElement=this._createRoot().linkOn(this._owner,{name:"value-indicator",after:"core"}),this._trackerElement=this._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var t=this;t._options.animation&&(t._animation={step:function(n){t._actualValue=t._animation.start+t._animation.delta*n,t._actualPosition=t._translator.translate(t._actualValue),t._move()},duration:t._options.animation.duration>0?j1e(t._options.animation.duration):0,easing:t._options.animation.easing})},_runAnimation:function(t){var n=this._animation;n.start=this._actualValue,n.delta=t-this._actualValue,this._rootElement.animate({_:0},{step:n.step,duration:n.duration,easing:n.easing})},_createRoot:function(){return this._renderer.g().attr({class:this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:Be,clean:function(){return this._animation&&this._rootElement.stopAnimation(),this._rootElement.linkRemove().clear(),this._clear(),this._tracker.detach(this._trackerElement),this._options=this.enabled=this._animation=null,this},render:function(t){return this.type=t.type,this._options=t,this._actualValue=this._currentValue=this._translator.adjust(this._options.currentValue),this.enabled=this._isEnabled(),this.enabled&&(this._setupAnimation(),this._rootElement.attr({fill:this._options.color}).linkAppend(),this._tracker.attach(this._trackerElement,this,this._trackerInfo)),this},resize:function(t){return this._rootElement.clear(),this._clear(),this.visible=this._isVisible(t),this.visible&&(se(this._options,t),this._actualPosition=this._translator.translate(this._actualValue),this._render(),this._trackerElement.attr(this._getTrackerSettings()),this._move()),this},value:function(t,n){var e,i=this._rootElement,r=null;return void 0===t?this._currentValue:(null===t?(r="hidden",this._currentValue=t):(e=this._translator.adjust(t),this._currentValue!==e&&LFt(e)&&(this._currentValue=e,this.visible&&(this._animation&&!n?this._runAnimation(e):(this._actualValue=e,this._actualPosition=this._translator.translate(e),this._move())))),i.attr({visibility:r}),this)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),cu={};cu["right-bottom"]=cu.rb=[0,-1,-1,0,0,1,1,0],cu["bottom-right"]=cu.br=[-1,0,0,-1,1,0,0,1],cu["left-bottom"]=cu.lb=[0,-1,1,0,0,1,-1,0],cu["bottom-left"]=cu.bl=[1,0,0,-1,-1,0,0,1],cu["left-top"]=cu.lt=[0,1,1,0,0,-1,-1,0],cu["top-left"]=cu.tl=[1,0,0,1,-1,0,0,-1],cu["right-top"]=cu.rt=[0,1,-1,0,0,-1,1,0],cu["top-right"]=cu.tr=[-1,0,0,1,1,0,0,-1];var Y1e=I4.inherit({_move:function(){var t=this._options,n=this._getTextCloudOptions(),e=K1e(this._actualValue,t.text);this._text.attr({text:e});var i=this._text.getBBox(),r=n.x,o=n.y,a=(i.width||e.length*this._textUnitWidth)+2*t.horizontalOffset,s=(i.height||this._textHeight)+2*t.verticalOffset,l=function BFt(t){var a,s,n=t.x,e=t.y,i=cu[t.type],r=t.cloudWidth,o=t.cloudHeight,l=n,u=e;return a=s=t.tailLength,1&i[0]?s=Math.min(s,o/3):a=Math.min(a,r/3),{cx:Lh(l+i[0]*a+(i[0]+i[2])*r/2),cy:Lh(u+i[1]*s+(i[1]+i[3])*o/2),points:[Lh(n),Lh(e),Lh(n+=i[0]*(r+a)),Lh(e+=i[1]*(o+s)),Lh(n+=i[2]*r),Lh(e+=i[3]*o),Lh(n+=i[4]*r),Lh(e+=i[5]*o),Lh(n+=i[6]*(r-a)),Lh(e+=i[7]*(o-s))]}}({x:r,y:o,cloudWidth:a,cloudHeight:s,tailLength:t.arrowLength,type:this._correctCloudType(n.type,{x:r,y:o},{width:a,height:s})});this._text.attr({x:l.cx,y:l.cy+this._textVerticalOffset}),this._cloud.attr({points:l.points}),this._trackerElement&&this._trackerElement.attr({points:l.points})},_measureText:function(){var t,e,i;this._textVerticalOffset||(t=this._createRoot().append(this._owner),i=$1e(this._translator,this._options.text),e=this._renderer.text(i,0,0).attr({align:"center"}).css(_a(this._options.text.font)).append(t).getBBox(),t.remove(),this._textVerticalOffset=-e.y-e.height/2,this._textWidth=e.width,this._textHeight=e.height,this._textUnitWidth=this._textWidth/i.length,this._textFullWidth=this._textWidth+2*this._options.horizontalOffset,this._textFullHeight=this._textHeight+2*this._options.verticalOffset)},_render:function(){this._measureText(),this._cloud=this._cloud||this._renderer.path([],"area").append(this._rootElement),this._text=this._text||this._renderer.text().append(this._rootElement),this._text.attr({align:"center"}).css(_a(this._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var t=this._getTextCloudOptions();return{x:t.x,y:t.y,value:this._currentValue,color:this._options.color}},_correctCloudType:t=>t}),Z1e=I4.inherit({_measureText:function(){var t,e;this._hasText=this._isTextVisible(),this._hasText&&!this._textVerticalOffset&&(t=this._createRoot().append(this._owner),e=this._renderer.text($1e(this._translator,this._options.text),0,0).attr({class:"dxg-text",align:"center"}).css(_a(this._options.text.font)).append(t).getBBox(),t.remove(),this._textVerticalOffset=-e.y-e.height/2,this._textWidth=e.width,this._textHeight=e.height)},_move:function(){this._updateBarItemsPositions(),this._hasText&&(this._text.attr({text:K1e(this._actualValue,this._options.text)}),this._updateTextPosition(),this._updateLinePosition())},_updateBarItems:function(){var n,t=this._options,e=this._translator;this._setBarSides(),this._startPosition=e.translate(e.getDomainStart()),this._endPosition=e.translate(e.getDomainEnd()),this._basePosition=e.translate(t.baseValue),this._space=this._getSpace();var i=t.backgroundColor||"none";"none"!==i&&this._space>0?n=t.containerBackgroundColor||"none":(this._space=0,n="none"),this._backItem1.attr({fill:i}),this._backItem2.attr({fill:i}),this._spaceItem1.attr({fill:n}),this._spaceItem2.attr({fill:n})},_getSpace:function(){return 0},_updateTextItems:function(){this._hasText?(this._line=this._line||this._renderer.path([],"line").attr({class:"dxg-main-bar","stroke-linecap":"square"}).append(this._rootElement),this._text=this._text||this._renderer.text("",0,0).attr({class:"dxg-text"}).append(this._rootElement),this._text.attr({align:this._getTextAlign()}).css(this._getFontOptions()),this._setTextItemsSides()):(this._line&&(this._line.remove(),delete this._line),this._text&&(this._text.remove(),delete this._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var t=this._options,n=t.text.font;return(!n||!n.color)&&(n=se({},n,{color:t.color})),_a(n)},_updateBarItemsPositions:function(){var t=this._getPositions();this._backItem1.attr(this._buildItemSettings(t.start,t.back1)),this._backItem2.attr(this._buildItemSettings(t.back2,t.end)),this._spaceItem1.attr(this._buildItemSettings(t.back1,t.main1)),this._spaceItem2.attr(this._buildItemSettings(t.main2,t.back2)),this._mainItem.attr(this._buildItemSettings(t.main1,t.main2)),this._trackerElement&&this._trackerElement.attr(this._buildItemSettings(t.main1,t.main2))},_render:function(){this._measureText(),this._backItem1||(this._backItem1=this._createBarItem(),this._backItem1.attr({class:"dxg-back-bar"})),this._backItem2||(this._backItem2=this._createBarItem(),this._backItem2.attr({class:"dxg-back-bar"})),this._spaceItem1||(this._spaceItem1=this._createBarItem(),this._spaceItem1.attr({class:"dxg-space-bar"})),this._spaceItem2||(this._spaceItem2=this._createBarItem(),this._spaceItem2.attr({class:"dxg-space-bar"})),this._mainItem||(this._mainItem=this._createBarItem(),this._mainItem.attr({class:"dxg-main-bar"})),this._updateBarItems(),this._updateTextItems()},_clear:function(){delete this._backItem1,delete this._backItem2,delete this._spaceItem1,delete this._spaceItem2,delete this._mainItem,delete this._hasText,delete this._line,delete this._text},getTooltipParameters:function(){var t=this._getTooltipPosition();return{x:t.x,y:t.y,value:this._currentValue,color:this._options.color,offset:0}}}),Td=Number,AI=Ll,X1e=lbe;function r$(t,n){return t&&t.radius-n<=0&&(t.radius=n+1),t}var J1e=I4.inherit({_move:function(){var t=this._options,n=X1e(this._actualPosition);this._rootElement.rotate(n,t.x,t.y),this._trackerElement&&this._trackerElement.rotate(n,t.x,t.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(t){return t.radius-Td(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var t=this._options,n=this._getRadius(),e=this._getIndentFromCenter(),i=t.x,r=t.y-(n+e)/2,o=t.width/2,a=(n-e)/2;return o>10||(o=10),a>10||(a=10),{points:[i-o,r-a,i-o,r+a,i+o,r+a,i+o,r-a]}},_render:function(){this._renderPointer()},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer()},_getIndentFromCenter:function(t){return Number(this._options.indentFromCenter)||0},_getRadius:function(){return 0},measure:function(t){var n={max:t.radius};return this._options.indentFromCenter<0&&(n.inverseHorizontalOffset=n.inverseVerticalOffset=-Td(this._options.indentFromCenter)),n},getTooltipParameters:function(){var t=this._options,n=AI(this._actualPosition),e=(this._getRadius()+this._getIndentFromCenter())/2;return{x:t.x+n.cos*e,y:t.y-n.sin*e,value:this._currentValue,color:t.color,offset:t.width/2}}}),o$=J1e.inherit({_isVisible:function(t){var n=this._adjustOffset(Number(this._options.indentFromCenter),t.radius),e=this._adjustOffset(Number(this._options.offset),t.radius);return t.radius-n-e>0},getOffset:function(){return 0},_adjustOffset:function(t,n){var i=n/Number(this._options.beginAdaptingAtRadius);return i<1&&(t=Math.floor(t*i)),t||0},_getIndentFromCenter:function(t){return this._adjustOffset(Number(this._options.indentFromCenter),this._options.radius)},_getRadius:function(){var t=this._options;return t.radius-this._adjustOffset(Number(t.offset),t.radius)},_renderSpindle:function(){var t=this._options,n=t.radius,e=2*this._adjustOffset(Td(t.spindleSize)/2,n),i=2*this._adjustOffset(Td(t.spindleGapSize)/2,n)||0;i>0&&(i=i<=e?i:e),e>0&&(this._spindleOuter=this._spindleOuter||this._renderer.circle().append(this._rootElement),this._spindleInner=this._spindleInner||this._renderer.circle().append(this._rootElement),this._spindleOuter.attr({class:"dxg-spindle-border",cx:t.x,cy:t.y,r:e/2}),this._spindleInner.attr({class:"dxg-spindle-hole",cx:t.x,cy:t.y,r:i/2,fill:t.containerBackgroundColor}))},_render:function(){this.callBase(),this._renderSpindle()},_clear:function(){this.callBase(),delete this._spindleOuter,delete this._spindleInner}}),Q1e=o$.inherit({_renderPointer:function(){var t=this._options,n=t.y-this._getRadius(),e=t.y-this._getIndentFromCenter(),i=t.x-t.width/2,r=i+Td(t.width);this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[i,e,i,n,r,n,r,e]})}}),NFt=o$.inherit({_renderPointer:function(){var t=this._options,n=t.y-this._getRadius(),e=t.y-this._getIndentFromCenter(),i=t.x-t.width/2,r=t.x+t.width/2;this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[i,e,t.x,n,r,e]})}}),VFt=o$.inherit({_renderPointer:function(){var a,s,t=this._options,n=t.x-t.width/2,e=t.x+t.width/2,i=t.y-this._getRadius(),r=t.y-this._getIndentFromCenter(),o=Td(t.secondFraction)||0;a=o>=1?s=r:o<=0?s=i:(s=i+(r-i)*o)+Td(t.space),this._firstElement=this._firstElement||this._renderer.path([],"area").append(this._rootElement),this._spaceElement=this._spaceElement||this._renderer.path([],"area").append(this._rootElement),this._secondElement=this._secondElement||this._renderer.path([],"area").append(this._rootElement),this._firstElement.attr({points:[n,r,n,a,e,a,e,r]}),this._spaceElement.attr({points:[n,a,n,s,e,s,e,a],class:"dxg-hole",fill:t.containerBackgroundColor}),this._secondElement.attr({points:[n,s,n,i,e,i,e,s],class:"dxg-part",fill:t.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}}),HFt=J1e.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:t=>!0,resize(t){return this.callBase(r$(t,0))},_render:function(){var t=this._options,n=t.x,e=t.y-t.radius,i=t.width/2||0,r=e-Td(t.length);this._element=this._element||this._renderer.path([],"area").append(this._rootElement);var o={points:[n,e,n-i,r,n+i,r],stroke:"none","stroke-width":0,"stroke-linecap":"square"};t.space>0&&(o["stroke-width"]=Math.min(t.space,t.width/4)||0,o.stroke=o["stroke-width"]>0&&t.containerBackgroundColor||"none"),this._element.attr(o).sharp()},_clear:function(){delete this._element},_getTrackerSettings:function(){var t=this._options,n=t.x,e=t.y-t.radius-t.length/2,i=t.width/2,r=t.length/2;return i>10||(i=10),r>10||(r=10),{points:[n-i,e-r,n-i,e+r,n+i,e+r,n+i,e-r]}},measure:function(t){return{min:t.radius,max:t.radius+Td(this._options.length)}},getTooltipParameters:function(){var t=this._options,n=AI(this._actualPosition),e=t.radius+t.length/2,i=this.callBase();return i.x=t.x+n.cos*e,i.y=t.y-n.sin*e,i.offset=t.length/2,i}}),zFt=Y1e.inherit({_isEnabled:function(){return!0},_isVisible:t=>!0,resize(t){return this.callBase(r$(t,0))},_getTextCloudOptions:function(){var t=AI(this._actualPosition),n=Bc(this._actualPosition);return{x:this._options.x+t.cos*this._options.radius,y:this._options.y-t.sin*this._options.radius,type:n>270?"left-top":n>180?"top-right":n>90?"right-bottom":"bottom-left"}},measure:function(t){var n=Td(this._options.arrowLength)||0;this._measureText();var e=this._textFullHeight+n,i=this._textFullWidth+n;return{min:t.radius,max:t.radius,horizontalOffset:i,verticalOffset:e,inverseHorizontalOffset:i,inverseVerticalOffset:e}}}),UFt=Z1e.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:t=>!0,resize(t){return this.callBase(r$(t,Td(this._options.size)))},_createBarItem:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"}).append(this._rootElement)},_createTracker:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"})},_setBarSides:function(){this._maxSide=this._options.radius,this._minSide=this._maxSide-Td(this._options.size)},_getSpace:function(){var t=this._options;return t.space>0?180*t.space/t.radius/Math.PI:0},_isTextVisible:function(){return(this._options.text||{}).indent>0},_setTextItemsSides:function(){var t=this._options,n=Td(t.text.indent);this._lineFrom=t.y-t.radius,this._lineTo=this._lineFrom-n,this._textRadius=t.radius+n},_getPositions:function(){var e,i,t=this._basePosition,n=this._actualPosition;return t>=n?(e=t,i=n):(e=n,i=t),{start:this._startPosition,end:this._endPosition,main1:e,main2:i,back1:Math.min(e+this._space,this._startPosition),back2:Math.max(i-this._space,this._endPosition)}},_buildItemSettings:function(t,n){return{x:this._options.x,y:this._options.y,innerRadius:this._minSide,outerRadius:this._maxSide,startAngle:n,endAngle:t}},_updateTextPosition:function(){var t=AI(this._actualPosition),n=this._options.x+this._textRadius*t.cos,e=this._options.y-this._textRadius*t.sin;this._text.attr({x:n+=t.cos*this._textWidth*.6,y:(e-=t.sin*this._textHeight*.6)+this._textVerticalOffset})},_updateLinePosition:function(){var n,e,t=this._options.x;this._basePosition>this._actualPosition?(n=t-2,e=t):this._basePosition<this._actualPosition?(n=t,e=t+2):(n=t-1,e=t+1),this._line.attr({points:[n,this._lineFrom,n,this._lineTo,e,this._lineTo,e,this._lineFrom]}).rotate(X1e(this._actualPosition),t,this._options.y).sharp()},_getTooltipPosition:function(){var t=AI((this._basePosition+this._actualPosition)/2),n=(this._minSide+this._maxSide)/2;return{x:this._options.x+t.cos*n,y:this._options.y-t.sin*n}},measure:function(t){var n={min:t.radius-Td(this._options.size),max:t.radius};return this._measureText(),this._hasText&&(n.max+=Td(this._options.text.indent),n.horizontalOffset=this._textWidth,n.verticalOffset=this._textHeight),n}}),eSe=Number,tSe=Array.isArray,nSe=isFinite,WFt=q1e.inherit({_init:function(){this._root=this._renderer.g().attr({class:"dxg-range-container"}).linkOn(this._container,"range-container")},_dispose:function(){this._root.linkOff()},clean:function(){return this._root.linkRemove().clear(),this._options=this.enabled=null,this},_getRanges:function(){var s,t=this._options,n=this._translator,e=n.getDomain()[0],i=n.getDomain()[1],r=i-e,o=r>=0?KFt:$Ft,a=r>=0?GFt:jFt,l=[],u=[{start:e,end:i}],f=Pn(t.backgroundColor)?t.backgroundColor:"none",S=t.width||{},T=eSe(S>0?S:S.start),R=eSe(S>0?S:S.end),L=R-T;if(void 0!==t.ranges&&!tSe(t.ranges)||!(T>=0&&R>=0&&T+R>0))return null;s=(tSe(t.ranges)?t.ranges:[]).reduce((j,Y,ie)=>{var te=n.adjust((Y=Y||{}).startValue),re=n.adjust(Y.endValue);return nSe(te)&&nSe(re)&&o(te,re,Y)&&j.push({start:te,end:re,color:Y.color,classIndex:ie}),j},[]);var z=this._themeManager.createPalette(t.palette,{type:"indicatingSet",extensionMode:t.paletteExtensionMode,keepLastColorInEnd:!0,count:s.length});return we(s,function(j,Y){var ie=z.getNextColor();Y.color=Pn(Y.color)&&Y.color||ie||"none",Y.className="dxg-range dxg-range-"+Y.classIndex,delete Y.classIndex}),we(s,function(j,Y){var ie,te,re,he,fe,Te=[],Re=[];for(ie=0,te=l.length;ie<te;++ie)(re=(he=a((fe=l[ie]).start,fe.end,Y.start,Y.end))[0])&&(re.color=fe.color)&&(re.className=fe.className)&&Te.push(re),(re=he[1])&&(re.color=fe.color)&&(re.className=fe.className)&&Te.push(re);for(Te.push(Y),l=Te,ie=0,te=u.length;ie<te;++ie)(re=(he=a((fe=u[ie]).start,fe.end,Y.start,Y.end))[0])&&Re.push(re),(re=he[1])&&Re.push(re);u=Re}),we(u,function(j,Y){Y.color=f,Y.className="dxg-range dxg-background-range",l.push(Y)}),we(l,function(j,Y){Y.startWidth=(Y.start-e)/r*L+T,Y.endWidth=(Y.end-e)/r*L+T}),l},render:function(t){return this._options=t,this._processOptions(),this._ranges=this._getRanges(),this._ranges&&(this.enabled=!0,this._root.linkAppend()),this},resize:function(t){var n=this;return n._root.clear(),n._isVisible(t)&&we(n._ranges,function(e,i){n._createRange(i,t).attr({fill:i.color,class:i.className}).append(n._root)}),n},_processOptions:null,_isVisible:null,_createRange:null,getColorForValue:function(t){var n=null;return we(this._ranges,function(e,i){if(i.start<=t&&t<=i.end||i.start>=t&&t>=i.end)return n=i.color,!1}),n}});function GFt(t,n,e,i){var r;return e>t&&i<n?r=[{start:t,end:e},{start:i,end:n}]:e>=n||i<=t?r=[{start:t,end:n}]:e<=t&&i>=n?r=[]:e>t?r=[{start:t,end:e}]:i<n&&(r=[{start:i,end:n}]),r}function jFt(t,n,e,i){var r;return e<t&&i>n?r=[{start:t,end:e},{start:i,end:n}]:e<=n||i>=t?r=[{start:t,end:n}]:e>=t&&i<=n?r=[]:e<t?r=[{start:t,end:e}]:i>n&&(r=[{start:i,end:n}]),r}function iSe(t,n,e){var{startValue:i,endValue:r}=e;return r===i&&i===t&&n===t}function KFt(t,n,e){return n-t>0||iSe(t,n,e)}function $Ft(t,n,e){return t-n>0||iSe(t,n,e)}const rSe=WFt;var eS=Number,oSe=Math.max,qFt=rSe.inherit({_processOptions:function(){switch(this._inner=this._outer=0,Ri(this._options.orientation)){case"inside":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}},_isVisible:function(t){var n=this._options.width;return n=eS(n)||oSe(eS(n.start),eS(n.end)),t.radius-this._inner*n>0},_createRange:function(t,n){var e=(t.startWidth+t.endWidth)/2;return this._renderer.arc(n.x,n.y,n.radius-this._inner*e,n.radius+this._outer*e,this._translator.translate(t.end),this._translator.translate(t.start)).attr({"stroke-linejoin":"round"})},measure:function(t){var n=this._options.width;return n=eS(n)||oSe(eS(n.start),eS(n.end)),{min:t.radius-this._inner*n,max:t.radius+this._outer*n}}});const YFt=qFt;var aSe=isFinite,sSe=Bc,lSe=Ll,ZFt=Math.abs,kp=Math.max,FI=Math.min,a$=Math.round,XFt=we,JFt=Math.PI,PI=U1e.inherit({_rootClass:"dxg-circular-gauge",_factoryMethods:{rangeContainer:"createCircularRangeContainer",indicator:"createCircularIndicator"},_gridSpacingFactor:17,_scaleTypes:{type:"polarAxes",drawingType:"circular"},_getThemeManagerOptions(){var t=this.callBase.apply(this,arguments);return t.subTheme="_circular",t},_updateScaleTickIndent:function(t){var n=t.label.indentFromTick,e=t.tick.visible?t.tick.length:0,i=this._scale.measureLabels(se({},this._canvas)),r=t.orientation,o=e,a=n;n>=0?"outside"===r?a+=o:"center"===r&&(a+=o/2):(a-=kp(i.width,i.height),"inside"===r?a-=o:"center"===r&&(a-=o/2)),t.label.indentFromAxis=a,this._scale.updateOptions(t)},_setupCodomain:function(){var i,t=this.option("geometry")||{},n=t.startAngle,e=t.endAngle;n=aSe(n)?sSe(n):225,e=aSe(e)?sSe(e):-45,ZFt(n-e)<1?(e-=360,i={left:-1,up:-1,right:1,down:1}):(n<e&&(e-=360),i=function QFt(t,n){var e=lSe(t),i=lSe(n),r=e.cos,o=e.sin,a=i.cos,s=i.sin;return{left:o<=0&&s>=0||o<=0&&s<=0&&r<=a||o>=0&&s>=0&&r>=a?-1:FI(r,a,0),right:o>=0&&s<=0||o>=0&&s>=0&&r>=a||o<=0&&s<=0&&r<=a?1:kp(r,a,0),up:r<=0&&a>=0||r<=0&&a<=0&&o>=s||r>=0&&a>=0&&o<=s?-1:-kp(o,s,0),down:r>=0&&a<=0||r>=0&&a>=0&&o<=s||r<=0&&a<=0&&o>=s?1:-FI(o,s,0)}}(n,e)),this._area={x:0,y:0,radius:100,startCoord:n,endCoord:e,sides:i},this._translator.setCodomain(n,e)},_shiftScale:function(t){var n=this._scale,e=n.getCanvas();e.width=e.height=2*t.radius,n.draw(e);var i=n.getCenter();n.shift({right:t.x-i.x,bottom:t.y-i.y})},_getScaleLayoutValue:function(){return this._area.radius},_getTicksOrientation:function(t){return t.orientation},_getTicksCoefficients:function(t){var n={inner:0,outer:1};return"inside"===t.orientation?(n.inner=1,n.outer=0):"center"===t.orientation&&(n.inner=n.outer=.5),n},_correctScaleIndents:function(t,n,e){n>=0?(t.horizontalOffset=n+e.width,t.verticalOffset=n+e.height):(t.horizontalOffset=t.verticalOffset=0,t.min-=-n+kp(e.width,e.height)),t.inverseHorizontalOffset=e.width/2,t.inverseVerticalOffset=e.height/2},_measureMainElements:function(t,n){var e=this._area.radius,i=0,r=1/0,o=0,a=0,s=0,l=0;return XFt(t.concat(this._scale),function(f,S){var T=S.measure?S.measure({radius:e-S.getOffset()}):n;T.min>0&&(r=FI(r,T.min)),T.max>0&&(i=kp(i,T.max)),T.horizontalOffset>0&&(o=kp(o,T.max+T.horizontalOffset)),T.verticalOffset>0&&(a=kp(a,T.max+T.verticalOffset)),T.inverseHorizontalOffset>0&&(s=kp(s,T.inverseHorizontalOffset)),T.inverseVerticalOffset>0&&(l=kp(l,T.inverseVerticalOffset))}),o=kp(o-i,0),a=kp(a-i,0),{minRadius:r,maxRadius:i,horizontalMargin:o,verticalMargin:a,inverseHorizontalMargin:s,inverseVerticalMargin:l}},_applyMainLayout:function(t,n){var e=this._measureMainElements(t,n),i=this._area,r=i.sides,o={left:(r.left<-.1?e.horizontalMargin:e.inverseHorizontalMargin)||0,right:(r.right>.1?e.horizontalMargin:e.inverseHorizontalMargin)||0,top:(r.up<-.1?e.verticalMargin:e.inverseVerticalMargin)||0,bottom:(r.down>.1?e.verticalMargin:e.inverseVerticalMargin)||0},a=function ePt(t,n,e){var r,i=se({},t),o=0,a=0;return e=e||{},n>0&&(i.left+=e.left||0,i.right-=e.right||0,i.top+=e.top||0,i.bottom-=e.bottom||0,HC(i)>0&&zC(i)>0?((r=zC(i)/HC(i))>1?n<r?o=HC(i):a=zC(i):n>r?a=zC(i):o=HC(i),o>0||(o=a/n),a>0||(a=o*n),o=(HC(i)-o)/2,a=(zC(i)-a)/2,i.left+=o,i.right-=o,i.top+=a,i.bottom-=a):(i.left=i.right=(i.left+i.right)/2,i.top=i.bottom=(i.top+i.bottom)/2)),i}(this._innerRect,(r.down-r.up)/(r.right-r.left),o),s=FI(HC(a)/(r.right-r.left),zC(a)/(r.down-r.up));s=s-e.maxRadius+i.radius;var l=a.left-HC(a)*r.left/(r.right-r.left),u=a.top-zC(a)*r.up/(r.down-r.up);i.x=a$(l),i.y=a$(u),i.radius=s,a.left-=o.left,a.right+=o.right,a.top-=o.top,a.bottom+=o.bottom,this._innerRect=a},_getElementLayout:function(t){return{x:this._area.x,y:this._area.y,radius:a$(this._area.radius-t)}},_getApproximateScreenRange:function(){var t=this._area,n=FI(this._canvas.width/(t.sides.right-t.sides.left),this._canvas.height/(t.sides.down-t.sides.up));return n>t.totalRadius&&(n=t.totalRadius),n*=.8,-this._translator.getCodomainRange()*n*JFt/180},_getDefaultSize:function(){return{width:300,height:300}},_factory:sg(Ep.prototype._factory)});function HC(t){return t.right-t.left}function zC(t){return t.bottom-t.top}var Q_=PI.prototype._factory.indicators={};PI.prototype._factory.createIndicator=G1e(Q_),Q_._default=Q1e,Q_.rectangleneedle=Q1e,Q_.triangleneedle=NFt,Q_.twocolorneedle=VFt,Q_.trianglemarker=HFt,Q_.textcloud=zFt,Q_.rangebar=UFt,PI.prototype._factory.RangeContainer=YFt,On("dxCircularGauge",PI);const s$=PI;var tS=Number,k4=Math,M4=k4.round,jm=k4.max,uSe=k4.min,l$=k4.ceil,dSe=Z,cSe=Yt,nS=b1,hSe=Ri,tPt=se,Vl="center",Id="right",Bh="left",Qg="top",ef="bottom",RI="horizontal",u$="outside",F4="none",rPt=nS([Bh,Vl,Id]),oPt=nS([Qg,ef]),aPt=nS(["vertical",RI]),sPt=nS([Bh,Id,Qg,ef]),lPt=nS([u$,"inside"]),uPt=nS([Bh,Vl,Id]);function _Se(t,n,e){if(t){var i=t.fill;return se({},{state:e,fill:i===F4?n:i,opacity:t.opacity,hatching:tPt({},t.hatching,{step:5,width:2})})}}function vSe(t,n,e){var i=hxe(t,n);return i.fill&&0===i.fill.indexOf("DevExpress")&&(i.fill=Zj(i.fill)),i.opacity=i.opacity>=0?i.opacity:1,se({},i,{size:e})}function d$(t,n,e,i){var r=n&&e[n[t]];r&&r.renderMarker(r.states[i])}function pPt(t,n,e){return t?(function dPt(t){var n=t.margin;n=n>=0?{top:n=tS(t.margin),bottom:n,left:n,right:n}:{top:n.top>=0?tS(n.top):10,bottom:n.bottom>=0?tS(n.bottom):10,left:n.left>=0?tS(n.left):10,right:n.right>=0?tS(n.right):10},t.margin=n}(t),t.horizontalAlignment=rPt(t.horizontalAlignment,Id),t.verticalAlignment=oPt(t.verticalAlignment,t.horizontalAlignment===Vl?ef:Qg),t.orientation=aPt(t.orientation,t.horizontalAlignment===Vl?RI:"vertical"),t.itemTextPosition=sPt(t.itemTextPosition,t.orientation===RI?ef:Id),t.position=e?lPt(t.position,u$):u$,t.itemsAlignment=uPt(t.itemsAlignment,null),t.hoverMode=hSe(t.hoverMode),t.customizeText=cSe(t.customizeText)?t.customizeText:function(){return this[n]},t.customizeHint=cSe(t.customizeHint)?t.customizeHint:Be,t._incidentOccurred=t._incidentOccurred||Be,t):null}function gPt(t,n){return t.rect(0,0,n,n)}function fPt(t,n){return t.circle(n/2,n/2,n/2)}function _Pt(t,n,e){return n>=t.left&&n<=t.right&&e>=t.top&&e<=t.bottom}function vPt(t,n,e,i){var s,r={x:0,y:0},o=0,a=0;if(s="y"===n.direction?i.top+i.bottom:i.left+i.right,t.forEach(function(l,u){var f=l[0],S=l.length;l.forEach(function(T,R){r[n.direction]+=T[n.measure]+(R!==S-1?T.offset||n.spacing:0),o=jm(o,r[n.direction])}),r[n.direction]=0,r[n.altDirection]+=f[n.altMeasure]+f.altOffset||n.altSpacing,a=jm(a,r[n.altDirection])}),o+s>n.length)return n.countItem=function yPt(t,n){return t.altCountItem++,l$(n/t.altCountItem)}(n,e),!0}function ySe(t,n){return t.reduce((e,i)=>e+i[n.measure]+(i.offset||n.spacing),0)}function xPt(t){switch(t.itemTextPosition){case ef:return{horizontal:Vl,vertical:Qg};case Qg:return{horizontal:Vl,vertical:ef};case Bh:return{horizontal:Id,vertical:Vl};case Id:return{horizontal:Bh,vertical:Vl}}}function CSe(t,n){var e=t.reduce((i,r)=>jm(i,r?r[n]:i),0);t.forEach(i=>{i&&(i[n]=e)})}function bSe(t){var i,r,n=t.length,e=t[0].length,o=[];for(i=0;i<e;i++)for(o[i]=[],r=0;r<n;r++)o[i][r]=t[r][i];return o}function EPt(t){return t.horizontalAlignment===Vl?Vl:t.itemTextPosition===Id?Bh:t.itemTextPosition===Bh?Id:Vl}var UC=function(t){this._renderer=t.renderer,this._legendGroup=t.group,this._backgroundClass=t.backgroundClass,this._itemGroupClass=t.itemGroupClass,this._textField=t.textField,this._getCustomizeObject=t.getFormatObject,this._titleGroupClass=t.titleGroupClass,this._allowInsidePosition=t.allowInsidePosition,this._widget=t.widget,this._updated=!1},xSe=UC,OPt=xSe.prototype=sg(vI.prototype);se(OPt,{constructor:xSe,getOptions:function(){return this._options},update:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,r=(n=i._options=pPt(n,i._textField,i._allowInsidePosition)||{}).markerSize;if(this._updated=!0,this._data=t.map(a=>(a.size=tS(a.size>0?a.size:r),a.marker=vSe(a,a.states.normal),Object.defineProperty(a.marker,"size",{get:()=>a.size,set(s){a.size=s}}),Object.defineProperty(a.marker,"opacity",{get:()=>a.states.normal.opacity,set(s){a.states.normal.opacity=a.states.hover.opacity=a.states.selection.opacity=s}}),a)),n.customizeItems&&(i._data=n.customizeItems(t.slice())||t),i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new kK({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var o=n.title;e.horizontalAlignment=EPt(n),i._title.update(e,o)}return this.erase(),i},isVisible:function(){return this._options&&this._options.visible},draw:function(t,n){var e=this._getItemData();return this.erase(),this.isVisible()&&e&&e.length?(this._insideLegendGroup=this._renderer.g().enableLinks().append(this._legendGroup),this._title.changeLink(this._insideLegendGroup),this._createBackground(),this._title.hasText()&&this._title.draw(t-(this._background?2*this._options.paddingLeftRight:0),n),this._markersGroup=this._renderer.g().attr({class:this._itemGroupClass}).append(this._insideLegendGroup),this._createItems(e),this._updateElementsPosition(t,n),this):this},_measureElements:function(){var t=this._options,n=0;this._items.forEach(e=>{var i=e.label.getBBox(),r=e.marker.getBBox();e.markerBBox=r,e.markerSize=Math.max(r.width,r.height);var o=function cPt(t,n,e){var i,r;switch(t.itemTextPosition){case Bh:case Id:i=n.width+7+e.width,r=jm(n.height,e.height);break;case Qg:case ef:i=jm(n.width,e.width),r=n.height+4+e.height}return{width:i,height:r}}(t,r,i);e.labelBBox=i,e.bBox=o,n=jm(n,o.height)}),t.equalRowHeight&&this._items.forEach(e=>e.bBox.height=n)},_updateElementsPosition:function(t,n){var e=this._options;this._size={width:t,height:n},this._measureElements(),this._locateElements(e),this._finalUpdate(e);var i=this.getLayoutOptions();(i.width>t||i.height>n)&&this.freeSpace()},_createItems:function(t){var n=this,e=n._options,i=n._renderer,r=function(t){return function mPt(t){return"circle"===hSe(t)}(t)?fPt:gPt}(e.markerShape);n._markersId={};var a=n._widget._getTemplate(e.markerTemplate?e.markerTemplate:(l,u)=>{var f=l.marker;r(i,f.size).attr({fill:f.fill,opacity:f.opacity}).append({element:u})}),s=n._markersGroup;s.css(_a(e.font)),n._deferredItems=[],n._templatesGroups=[],n._items=(t||[]).map((l,u)=>{var f=l.states,S=f.normal,T=S.fill;l.size=l.marker.size;var R={normal:se(S,{fill:T||e.markerColor||e.defaultColor,state:"normal"}),hover:_Se(f.hover,T,"hovered"),selection:_Se(f.selection,T,"selected")};l.states=R;var L=i.g().append(s),z=i.g().attr({class:"dxl-marker"}).append(L);n._deferredItems[u]=new et,n._templatesGroups.push(z);var j={label:n._createLabel(l,L),marker:z,renderer:i,group:L,tracker:{id:l.id,argument:l.argument,argumentIndex:l.argumentIndex},states:R,itemTextPosition:e.itemTextPosition,markerOffset:0,bBoxes:[],renderMarker(Y){l.marker=vSe(j,Y,l.size),z.clear(),a.render({model:l,container:z.element,onRendered:n._deferredItems[u].resolve})}};return j.renderMarker(R.normal),n._createHint(l,L),void 0!==l.id&&(n._markersId[l.id]=u),j})},getTemplatesGroups:function(){return this._templatesGroups||[]},getTemplatesDef:function(){return this._deferredItems||[]},_getItemData:function(){var t=this._data||[];return(this._options||{}).inverted&&(t=t.slice().reverse()),t.filter(e=>e.visible)},_finalUpdate:function(t){this._adjustBackgroundSettings(t),this._setBoundingRect(t.margin)},erase:function(){var t=this._insideLegendGroup;return t&&t.dispose(),this._insideLegendGroup=this._markersGroup=this._x1=this._x2=this._y2=this._y2=null,this},_locateElements:function(t){this._moveInInitialValues(),this._locateRowsColumns(t)},_moveInInitialValues:function(){this._title.hasText()&&this._title.move([0,0]),this._legendGroup&&this._legendGroup.move(0,0),this._background&&this._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(t){return d$(t,this._markersId,this._items,"selection"),this},applyHover:function(t){return d$(t,this._markersId,this._items,"hover"),this},resetItem:function(t){return d$(t,this._markersId,this._items,"normal"),this},_createLabel:function(t,n){var e=this._getCustomizeObject(t),i=this._options,r=function SPt(t){switch(t){case Qg:case ef:return Vl;case Bh:return Id;case Id:return Bh}}(i.itemTextPosition),o=i.customizeText.call(e,e),a=dSe(t.textOpacity)?{color:i.font.color,opacity:t.textOpacity}:{};return this._renderer.text(o,0,0).css(_a(a)).attr({align:r,class:i.cssClass}).append(n)},_createHint:function(t,n){var e=this._getCustomizeObject(t),i=this._options.customizeHint.call(e,e);dSe(i)&&""!==i&&n.setTitle(i)},_createBackground:function(){var t="inside"===this._options.position,n=this._options.backgroundColor,e=n||(t?this._options.containerBackgroundColor:F4);(this._options.border.visible||(t||n)&&n!==F4)&&(this._background=this._renderer.rect(0,0,0,0).attr({fill:e,class:this._backgroundClass}).append(this._insideLegendGroup))},_locateRowsColumns:function(t){var r,n=0,e=this._getItemsLayoutOptions(),i=this._items.length;do{this._createLines(r=[],e),this._alignLines(r,e),n++}while(vPt(r,e,i,t.margin)&&n<i);this._applyItemPosition(r,e)},_createLines:function(t,n){this._items.forEach((e,i)=>{var s,l,r=function wPt(t,n,e){var i={};return e%n.countItem==0&&(n.markerOffset?t.push([],[]):t.push([])),n.markerOffset?(i.firstLine=t[t.length-1],i.secondLine=t[t.length-2]):i.firstLine=i.secondLine=t[t.length-1],i}(t,n,i),o={width:e.labelBBox.width,height:e.labelBBox.height,element:e.label,bBox:e.labelBBox,pos:xPt(n),itemIndex:i},a={width:e.markerBBox.width,height:e.markerBBox.height,element:e.marker,pos:{horizontal:Vl,vertical:Vl},bBox:{width:e.markerBBox.width,height:e.markerBBox.height,x:e.markerBBox.x,y:e.markerBBox.y},itemIndex:i};n.inverseLabelPosition?(s=o,l=a):(s=a,l=o),s[n.markerOffset?"altOffset":"offset"]=n.labelOffset,r.secondLine.push(s),r.firstLine.push(l)})},_alignLines:function(t,n){var e,i=n.altMeasure;if(t.forEach(o=>CSe(o,i)),i=n.measure,n.itemsAlignment){if(n.markerOffset)for(e=0;e<t.length;)bSe([t[e++],t[e++]]).forEach(r)}else bSe(t).forEach(r);function r(o){CSe(o,i)}},_applyItemPosition:function(t,n){var e=this,i={x:0,y:0},r=function CPt(t,n){return t.reduce((e,i)=>jm(e,ySe(i,n)),0)}(t,n);t.forEach(o=>{var a=o[0],s=a.altOffset||n.altSpacing;i[n.direction]=function bPt(t,n,e){var r,i=ySe(t,n);switch(n.itemsAlignment){case Id:r=e-i;break;case Vl:r=(e-i)/2;break;default:r=0}return r}(o,n,r),o.forEach(l=>{var u=l.offset||n.spacing,f=new yI(l.element,l.bBox),T=new yI(null,{x:i.x,y:i.y,width:l.width,height:l.height}),R=e._items[l.itemIndex];f.position({of:T,my:l.pos,at:l.pos}),R.bBoxes.push(T),i[n.direction]+=l[n.measure]+u}),i[n.altDirection]+=a[n.altMeasure]+s}),this._items.forEach(o=>{var a=function hPt(t,n){var e={};return e.left=uSe(t.x,n.x),e.top=uSe(t.y,n.y),e.right=jm(t.x+t.width,n.x+n.width),e.bottom=jm(t.y+t.height,n.y+n.height),e}(o.bBoxes[0].getLayoutOptions(),o.bBoxes[1].getLayoutOptions()),s=e._options.columnItemSpacing/2,l=e._options.rowItemSpacing/2;o.tracker.left=a.left-s,o.tracker.right=a.right+s,o.tracker.top=a.top-l,o.tracker.bottom=a.bottom+l})},_getItemsLayoutOptions:function(){var t=this._options,e={itemsAlignment:t.itemsAlignment,orientation:t.orientation},r=this._size.height-(this._background?2*t.paddingTopBottom:0);return t.orientation===RI?(e.length=this._size.width-(this._background?2*t.paddingLeftRight:0),e.spacing=t.columnItemSpacing,e.direction="x",e.measure="width",e.altMeasure="height",e.altDirection="y",e.altSpacing=t.rowItemSpacing,e.countItem=t.columnCount,e.altCountItem=t.rowCount,e.marginTextLabel=4,e.labelOffset=7,(t.itemTextPosition===ef||t.itemTextPosition===Qg)&&(e.labelOffset=4,e.markerOffset=!0)):(e.length=r,e.spacing=t.rowItemSpacing,e.direction="y",e.measure="height",e.altMeasure="width",e.altDirection="x",e.altSpacing=t.columnItemSpacing,e.countItem=t.rowCount,e.altCountItem=t.columnCount,e.marginTextLabel=7,e.labelOffset=4,(t.itemTextPosition===Id||t.itemTextPosition===Bh)&&(e.labelOffset=7,e.markerOffset=!0)),e.countItem||(e.countItem=e.altCountItem?l$(this._items.length/e.altCountItem):this._items.length),(t.itemTextPosition===Qg||t.itemTextPosition===Bh)&&(e.inverseLabelPosition=!0),e.itemTextPosition=t.itemTextPosition,e.altCountItem=e.altCountItem||l$(this._items.length/e.countItem),e},_adjustBackgroundSettings:function(t){if(this._background){var n=t.border,e=this._calculateTotalBox(),i={x:M4(e.x-t.paddingLeftRight),y:M4(e.y-t.paddingTopBottom),width:M4(e.width)+2*t.paddingLeftRight,height:M4(e.height),opacity:t.backgroundOpacity};n.visible&&n.width&&n.color&&n.color!==F4&&(i["stroke-width"]=n.width,i.stroke=n.color,i["stroke-opacity"]=n.opacity,i.dashStyle=n.dashStyle,i.rx=n.cornerRadius||0,i.ry=n.cornerRadius||0),this._background.attr(i)}},_setBoundingRect:function(t){if(this._insideLegendGroup){var n=this._calculateTotalBox();n.height+=t.top+t.bottom,n.widthWithoutMargins=n.width,n.width+=t.left+t.right,n.x-=t.left,n.y-=t.top,this._boundingRect=n}},_calculateTotalBox:function(){var t=this._markersGroup.getBBox(),n=this._title.getCorrectedLayoutOptions(),e=this._insideLegendGroup.getBBox();return e.height=t.height+n.height+(this._background?2*this._options.paddingTopBottom:0),n.width>e.width&&(e.width=n.width),e},getActionCallback:function(t){var n=this;return n._options.visible?function(e){n[e](t.index)}:Be},getLayoutOptions:function(){var t=this._options,n=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return t?(n.verticalAlignment=t.verticalAlignment,n.horizontalAlignment=t.horizontalAlignment,t.orientation===RI||t.horizontalAlignment===Vl?(n.cutLayoutSide=t.verticalAlignment,n.cutSide="vertical"):(n.cutLayoutSide=t.horizontalAlignment,n.cutSide="horizontal"),n.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment},n):null},shift:function(t,n){var e={};return this._insideLegendGroup&&this._insideLegendGroup.attr({translateX:t-this._boundingRect.x,translateY:n-this._boundingRect.y}),this._title&&this._shiftTitle(this._boundingRect.widthWithoutMargins),this._markersGroup&&this._shiftMarkers(),this._insideLegendGroup&&(e=this._legendGroup.getBBox()),this._x1=e.x,this._y1=e.y,this._x2=e.x+e.width,this._y2=e.y+e.height,this},_shiftTitle:function(t){var n=this._title,e=n.getCorrectedLayoutOptions();if(e&&n.hasText()){var i=t-(this._background?2*this._options.paddingLeftRight:0),r=n.getOptions(),o=e.y+r.margin.top,a=0;r.verticalAlignment===ef&&this._markersGroup&&(o+=this._markersGroup.getBBox().height),r.horizontalAlignment===Id?a=i-e.width:r.horizontalAlignment===Vl&&(a=(i-e.width)/2),n.shift(a,o)}},_shiftMarkers:function(){var t=this._title.getLayoutOptions(),n=this._markersGroup.getBBox(),e=this._title.getOptions()||{},i=0,r=0;t.width>n.width&&this._options.horizontalAlignment===Vl&&(i=t.width/2-n.width/2),e.verticalAlignment===Qg&&(r=t.height),(0!==i||0!==r)&&(this._markersGroup.attr({translateX:i,translateY:r}),this._items.forEach(o=>{o.tracker.left+=i,o.tracker.right+=i,o.tracker.top+=r,o.tracker.bottom+=r}))},getPosition:function(){return this._options.position},coordsIn:function(t,n){return t>=this._x1&&t<=this._x2&&n>=this._y1&&n<=this._y2},getItemByCoord:function(t,n){var e=this._items,i=this._insideLegendGroup;t-=i.attr("translateX"),n-=i.attr("translateY");for(var r=0;r<e.length;r++)if(_Pt(e[r].tracker,t,n))return e[r].tracker;return null},dispose:function(){return this._title&&this._title.dispose(),this._legendGroup=this._insideLegendGroup=this._title=this._renderer=this._options=this._data=this._items=null,this},layoutOptions:function(){if(!this.isVisible())return null;var t=this.getLayoutOptions();return{horizontalAlignment:this._options.horizontalAlignment,verticalAlignment:this._options.verticalAlignment,side:t.cutSide,priority:1,position:this.getPosition()}},measure:function(t){this._updated||!this._insideLegendGroup?(this.draw(t[0],t[1]),this._updated=!1):(this._items.forEach(e=>{e.bBoxes=[]}),this._updateElementsPosition(t[0],t[1]));var n=this.getLayoutOptions();return[n.width,n.height]},move:function(t){this.shift(t[0],t[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}});var m$,wSe={name:"legend",init:function(){var t=this._renderer.g().attr({class:this._rootClassPrefix+"-legend"}).enableLinks().append(this._renderer.root);this._legend=new UC({renderer:this._renderer,group:t,widget:this,itemGroupClass:this._rootClassPrefix+"-item",titleGroupClass:this._rootClassPrefix+"-title",textField:"text",getFormatObject:function(n){return{item:n.item,text:n.text}}}),this._layout.add(this._legend)},extenders:{_applyTilesAppearance:function(){var t=this;this._items.forEach(function(n){t._applyLegendItemStyle(n.id,n.getState())})},_buildNodes:function(){this._createLegendItems()}},members:{_applyLegendItemStyle:function(t,n){var e=this._legend;switch(n){case"hover":e.applyHover(t);break;case"selection":e.applySelected(t);break;default:e.resetItem(t)}},_createLegendItems:function(){this._legend.update(this._getLegendData(),this._getOption("legend"),this._themeManager.theme("legend").title)&&this._requestChange(["LAYOUT"])}},dispose:function(){this._legend.dispose()},customize:function(t){t.prototype._proxyData.push(function(n,e){if(this._legend.coordsIn(n,e)){var i=this._legend.getItemByCoord(n,e);if(i)return{id:i.id,type:"legend"}}}),t.addChange({code:"LEGEND",handler:function(){this._createLegendItems()},isThemeDependent:!0,option:"legend",isOptionChange:!0})}},TPt=Math.PI/180,c$=Math.abs,h$=Math.round,p$=Math.floor,g$=Math.min,SSe=Math.max,IPt=kwe,DSe=s4,kPt=Mwe,MPt=Array.isArray,APt=lbe,ESe=Ll,FPt=_a,LI=Number,iS=isFinite,PPt=Be,WC=se,f$="values",_$=Ep.inherit({_rootClass:"dxbg-bar-gauge",_themeSection:"barGauge",_fontFields:["label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initCore:function(){var t=this;t.callBase.apply(t,arguments),t._barsGroup=t._renderer.g().attr({class:"dxbg-bars"}).linkOn(t._renderer.root,"bars"),t._values=[],t._context={renderer:t._renderer,translator:t._translator,tracker:t._tracker,group:t._barsGroup},t._animateStep=function(n){var i,r,e=t._bars;for(i=0,r=e.length;i<r;++i)e[i].animate(n)},t._animateComplete=function(){t._bars.forEach(n=>n.endAnimation()),t._checkOverlap()}},_disposeCore:function(){var t=this;t._barsGroup.linkOff(),t._barsGroup=t._values=t._context=t._animateStep=t._animateComplete=null,t.callBase.apply(t,arguments)},_setupDomainCore:function(){var t=this.option("startValue"),n=this.option("endValue");iS(t)||(t=0),iS(n)||(n=100),this._translator.setDomain(t,n),this._baseValue=this._translator.adjust(this.option("baseValue")),iS(this._baseValue)||(this._baseValue=t<n?t:n)},_getDefaultSize:function(){return{width:300,height:300}},_setupCodomain:s$.prototype._setupCodomain,_getApproximateScreenRange:function(){var t=this._area.sides,n=this._canvas.width/(t.right-t.left),e=this._canvas.height/(t.down-t.up),i=n<e?n:e;return-this._translator.getCodomainRange()*i*TPt},_setupAnimationSettings:function(){var t=this;t.callBase.apply(t,arguments),t._animationSettings&&(t._animationSettings.step=t._animateStep,t._animationSettings.complete=t._animateComplete)},_cleanContent:function(){this._barsGroup.linkRemove(),this._animationSettings&&this._barsGroup.stopAnimation(),this._barsGroup.clear()},_renderContent:function(){var n,e,t=this.option("label"),i=this._context;this._barsGroup.linkAppend(),i.textEnabled=void 0===t||t&&(!("visible"in t)||t.visible),i.textEnabled&&(i.textColor=t&&t.font&&t.font.color||null,t=WC(!0,{},this._themeManager.theme().label,t),i.formatOptions={format:void 0!==t.format?t.format:this._defaultFormatOptions,customizeText:t.customizeText},i.textOptions={align:"center"},i.fontStyles=FPt(WC({},this._themeManager.theme().label.font,t.font,{color:null})),this._textIndent=t.indent>0?LI(t.indent):0,i.lineWidth=t.connectorWidth>0?LI(t.connectorWidth):0,i.lineColor=t.connectorColor||null,e=(n=this._renderer.text(IPt(this._translator,i.formatOptions),0,0).attr(i.textOptions).css(i.fontStyles).append(this._barsGroup)).getBBox(),n.remove(),i.textY=e.y,i.textWidth=e.width,i.textHeight=e.height),s$.prototype._applyMainLayout.call(this),this._renderBars()},_measureMainElements:function(){var t={maxRadius:this._area.radius};return this._context.textEnabled&&(t.horizontalMargin=this._context.textWidth,t.verticalMargin=this._context.textHeight,t.inverseHorizontalMargin=this._context.textWidth/2,t.inverseVerticalMargin=this._context.textHeight/2),t},_renderBars:function(){var n,t=WC({},this._themeManager.theme(),this.option()),e=this._area,i=t.relativeInnerRadius>0&&t.relativeInnerRadius<1?LI(t.relativeInnerRadius):.1;n=e.radius,this._context.textEnabled&&(this._textIndent=h$(g$(this._textIndent,n/2)),n-=this._textIndent),this._outerRadius=p$(n),this._innerRadius=p$(n*i),this._barSpacing=t.barSpacing>0?LI(t.barSpacing):0,WC(this._context,{backgroundColor:t.backgroundColor,x:e.x,y:e.y,startAngle:e.startCoord,endAngle:e.endCoord,baseAngle:this._translator.translate(this._baseValue)}),this._arrangeBars()},_arrangeBars:function(){var e,t=this._outerRadius-this._innerRadius,n=this._context,i=this._bars.length;this._beginValueChanging(),n.barSize=i>0?SSe((t-(i-1)*this._barSpacing)/i,1):0;var r=i>1?SSe(g$((t-i*n.barSize)/(i-1),this._barSpacing),0):0,o=g$(p$((t+r)/n.barSize),i);this._setBarsCount(i),n.textRadius=t=this._outerRadius,n.textIndent=this._textIndent,this._palette.reset();var a=n.barSize+r,s=this._palette.generateColors(o);for(e=0;e<o;++e,t-=a)this._bars[e].arrange({radius:t,color:s[e]});for(var l=o;l<i;l++)this._bars[l].hide();this._animationSettings&&!this._noAnimation?this._animateBars():this._updateBars(),this._endValueChanging()},_setBarsCount:function(){this._bars.length>0?this._dummyBackground&&(this._dummyBackground.dispose(),this._dummyBackground=null):(this._dummyBackground||(this._dummyBackground=this._renderer.arc().attr({"stroke-linejoin":"round"})),this._dummyBackground.attr({x:this._context.x,y:this._context.y,outerRadius:this._outerRadius,innerRadius:this._innerRadius,startAngle:this._context.endAngle,endAngle:this._context.startAngle,fill:this._context.backgroundColor}).append(this._barsGroup))},_updateBars:function(){this._bars.forEach(t=>t.applyValue()),this._checkOverlap()},_checkOverlap:function(){var t=this._bars;if("none"!==Ri(this._getOption("resolveLabelOverlapping",!0)))for(var e=t.concat().sort((s,l)=>s.getValue()-l.getValue()),i=0,r=1;i<e.length&&r<e.length;){var a=e[r];e[i].checkIntersect(a)?(a.hideLabel(),r++):r=(i=r)+1}},_animateBars:function(){var t,n=this._bars.length;if(n>0){for(t=0;t<n;++t)this._bars[t].beginAnimation();this._barsGroup.animate({_:0},this._animationSettings)}},_buildNodes(){var t=this,n=t._options.silent();t._palette=t._themeManager.createPalette(n.palette,{useHighlight:!0,extensionMode:n.paletteExtensionMode}),t._palette.reset(),t._bars=t._bars||[],t._animationSettings&&t._barsGroup.stopAnimation();var e=t._values.filter(iS),i=e.length;if(t._bars.length>i){for(var r=t._bars.length,o=i;o<r;++o)t._bars[o].dispose();t._bars.splice(i,r-i)}else if(t._bars.length<i)for(var a=t._bars.length;a<i;++a)t._bars.push(new m$(a,t._context));t._bars.forEach((s,l)=>{s.update({color:t._palette.getNextColor(i),value:e[l]})})},_updateValues:function(t){var e,r,n=MPt(t)&&t||iS(t)&&[t]||[],i=n.length;for(this._values.length=i,e=0;e<i;++e)this._values[e]=LI(iS(r=n[e])?r:this._values[e]);this._resizing||kPt(this._values,this.option(f$))||this.option(f$,this._values.slice()),this._change(["NODES"])},values:function(t){return void 0!==t?(this._updateValues(t),this):this._values.slice(0)},_optionChangesMap:{backgroundColor:"MOSTLY_TOTAL",relativeInnerRadius:"MOSTLY_TOTAL",barSpacing:"MOSTLY_TOTAL",label:"MOSTLY_TOTAL",resolveLabelOverlapping:"MOSTLY_TOTAL",palette:"MOSTLY_TOTAL",paletteExtensionMode:"MOSTLY_TOTAL",values:"VALUES"},_change_VALUES:function(){this._updateValues(this.option(f$))},_factory:sg(Ep.prototype._factory),_optionChangesOrder:["VALUES","NODES"],_initialChanges:["VALUES"],_change_NODES(){this._buildNodes()},_change_MOSTLY_TOTAL:function(){this._change(["NODES"]),this.callBase()},_proxyData:[],_getLegendData(){var t={},n=this._options.silent();return t.format=(n.legend||{}).itemTextFormat||(n.label||{}).format||this._defaultFormatOptions,(this._bars||[]).map(r=>({id:r.index,item:{value:r.getValue(),color:r.getColor(),index:r.index},text:DSe(r.getValue(),t),visible:!0,states:{normal:{fill:r.getColor()}}}))}});function OSe(t,n,e){t.startAngle=n<e?n:e,t.endAngle=n<e?e:n}function TSe(t,n){return c$(t-n)<1e-4}m$=function(t,n){this._context=n,this._tracker=n.renderer.arc().attr({"stroke-linejoin":"round"}),this.index=t},WC(m$.prototype,{dispose:function(){return this._background.dispose(),this._bar.dispose(),this._context.textEnabled&&(this._line.dispose(),this._text.dispose()),this._context.tracker.detach(this._tracker),this._context=this._settings=this._background=this._bar=this._line=this._text=this._tracker=null,this},arrange:function(t){var n=this._context;return this._visible=!0,n.tracker.attach(this._tracker,this,{index:this.index}),this._background=n.renderer.arc().attr({"stroke-linejoin":"round",fill:n.backgroundColor}).append(n.group),this._settings=this._settings||{x:n.x,y:n.y,startAngle:n.baseAngle,endAngle:n.baseAngle},this._bar=n.renderer.arc().attr(WC({"stroke-linejoin":"round"},this._settings)).append(n.group),n.textEnabled&&(this._line=n.renderer.path([],"line").attr({"stroke-width":n.lineWidth}).append(n.group),this._text=n.renderer.text().css(n.fontStyles).attr(n.textOptions).append(n.group)),this._angle=isFinite(this._angle)?this._angle:n.baseAngle,this._settings.outerRadius=t.radius,this._settings.innerRadius=t.radius-n.barSize,this._settings.x=n.x,this._settings.y=n.y,this._background.attr(WC({},this._settings,{startAngle:n.endAngle,endAngle:n.startAngle,fill:this._context.backgroundColor})),this._bar.attr({x:n.x,y:n.y,outerRadius:this._settings.outerRadius,innerRadius:this._settings.innerRadius,fill:this._color}),this._tracker.attr(this._settings),n.textEnabled&&(this._line.attr({points:[n.x,n.y-this._settings.innerRadius,n.x,n.y-n.textRadius-n.textIndent],stroke:n.lineColor||this._color}).sharp(),this._text.css({fill:n.textColor||this._color})),this},getTooltipParameters:function(){var t=ESe((this._angle+this._context.baseAngle)/2);return{x:h$(this._context.x+(this._settings.outerRadius+this._settings.innerRadius)/2*t.cos),y:h$(this._context.y-(this._settings.outerRadius+this._settings.innerRadius)/2*t.sin),offset:0,color:this._color,value:this._value}},setAngle:function(t){var i,n=this._context,e=this._settings;if(this._angle=t,OSe(e,n.baseAngle,t),this._bar.attr(e),this._tracker.attr(e),n.textEnabled){i=ESe(t);var r=n.textIndent,o=n.textRadius+r,a=n.x+o*i.cos,s=n.y-o*i.sin,l=.5*n.textWidth,u=n.textHeight,f=n.textY;c$(a-n.x)>r&&(a+=a<n.x?-l:l),c$(s-n.y)<=r?s-=f+.5*u:s-=s<n.y?f+u:f;var S=DSe(this._value,n.formatOptions,{index:this.index}),T=""===S?"hidden":null;this._text.attr({text:S,x:a,y:s,visibility:T}),this._line.attr({visibility:T}),this._line.rotate(APt(t),n.x,n.y)}return this},hideLabel:function(){this._text.attr({visibility:"hidden"}),this._line.attr({visibility:"hidden"})},checkIntersect:function(t){var n=this.calculateLabelCoords(),e=t.calculateLabelCoords();return!(!n||!e)&&Math.max(0,Math.min(n.bottomRight.x,e.bottomRight.x)-Math.max(n.topLeft.x,e.topLeft.x))*Math.max(0,Math.min(n.bottomRight.y,e.bottomRight.y)-Math.max(n.topLeft.y,e.topLeft.y))!=0},calculateLabelCoords:function(){if(this._text){var t=this._text.getBBox();return{topLeft:{x:t.x,y:t.y},bottomRight:{x:t.x+t.width,y:t.y+t.height}}}},_processValue:function(t){return this._context.translator.translate(this._context.translator.adjust(t))},applyValue(){return this._visible?this.setAngle(this._processValue(this.getValue())):this},update(t){var{color:n,value:e}=t;this._color=n,this._value=e},hide(){this._visible=!1},getColor(){return this._color},getValue(){return this._value},beginAnimation:function(){if(!this._visible)return this;var t=this._processValue(this.getValue());TSe(this._angle,t)?(this.animate=PPt,this.setAngle(this._angle)):(this._start=this._angle,this._delta=t-this._angle,this._tracker.attr({visibility:"hidden"}),this._context.textEnabled&&(this._line.attr({visibility:"hidden"}),this._text.attr({visibility:"hidden"})))},animate:function(t){if(!this._visible)return this;this._angle=this._start+this._delta*t,OSe(this._settings,this._context.baseAngle,this._angle),this._bar.attr(this._settings)},endAnimation:function(){void 0!==this._delta?TSe(this._angle,this._start+this._delta)&&(this._tracker.attr({visibility:null}),this.setAngle(this._angle)):delete this.animate,delete this._start,delete this._delta}}),On("dxBarGauge",_$),_$.addPlugin(wSe);let ISe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,aa,$w,Lo,Oa,$r,Rg,Ea,k_e,Ta,vs,_s,ms,Ia,$o,ja,bi,tn,mi],vr,aa,$w,Lo,Oa,$r,Rg,Ea,k_e,Ta,vs,_s,ms,Ia,$o,ja,tn]}),t})();var kSe="dxBoxItemData",HPt={row:"minWidth",col:"minHeight"},zPt={row:"maxWidth",col:"maxHeight"},MSe={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},ASe={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},UPt={row:"row",col:"column"},rS=(t,n,e)=>{if(e=fw(n,e),t.style[Wy(n)]=e,!Rn()){if(""===e||!Z(e))return;var r=sP(n)+": "+e+";";t.attributes.style?t.attributes.style.value.indexOf(r)<0&&(t.attributes.style.value+=" "+r):t.setAttribute("style",r)}};class WPt extends Lw{_renderVisible(n,e){super._renderVisible(n),Z(e)&&this._options.fireItemStateChangedAction({name:"visible",state:n,oldState:e})}}class GPt{constructor(n,e){this._$element=n,this._option=e}renderBox(){this._$element.css({display:ZP("flexDirection")+"flex"}),rS(this._$element.get(0),"flexDirection",UPt[this._option("direction")])}renderAlign(){this._$element.css({justifyContent:this._normalizedAlign()})}_normalizedAlign(){var n=this._option("align");return n in MSe?MSe[n]:n}renderCrossAlign(){this._$element.css({alignItems:this._normalizedCrossAlign()})}_normalizedCrossAlign(){var n=this._option("crossAlign");return n in ASe?ASe[n]:n}renderItems(n){var e=ZP("flexDirection"),i=this._option("direction");we(n,function(){var r=U(this),o=r.data(kSe);r.css({display:e+"flex"}).css(zPt[i],o.maxSize||"none").css(HPt[i],o.minSize||"0"),rS(r.get(0),"flexBasis",o.baseSize||0),rS(r.get(0),"flexGrow",o.ratio),rS(r.get(0),"flexShrink",Z(o.shrink)?o.shrink:1),r.children().each((a,s)=>{U(s).css({width:"auto",height:"auto",display:ZP("flexDirection")+"flex",flexBasis:0}),rS(s,"flexGrow",1),rS(s,"flexDirection",U(s)[0].style.flexDirection||"column")})})}}let FSe=(()=>{class t extends Fc{_getDefaultOptions(){return se(super._getDefaultOptions(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_queue:void 0})}_itemClass(){return"dx-box-item"}_itemDataKey(){return kSe}_itemElements(){return this._itemContainer().children(this._itemSelector())}_init(){super._init(),this.$element().addClass("dx-box-flex"),this._initLayout(),this._initBoxQueue()}_initLayout(){this._layout=new GPt(this.$element(),this.option.bind(this))}_initBoxQueue(){this._queue=this.option("_queue")||[]}_queueIsNotEmpty(){return!this.option("_queue")&&!!this._queue.length}_pushItemToQueue(e,i){this._queue.push({$item:e,config:i})}_shiftItemFromQueue(){return this._queue.shift()}_initMarkup(){this.$element().addClass("dx-box"),this._layout.renderBox(),super._initMarkup(),this._renderAlign(),this._renderActions()}_renderActions(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}_renderAlign(){this._layout.renderAlign(),this._layout.renderCrossAlign()}_renderItems(e){for(super._renderItems(e);this._queueIsNotEmpty();){var i=this._shiftItemFromQueue();this._createComponent(i.$item,t,se({itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},i.config))}this._layout.renderItems(this._itemElements())}_renderItemContent(e){var i=e.itemData&&e.itemData.node;return i?this._renderItemContentByNode(e,i):super._renderItemContent(e)}_postprocessRenderItem(e){var i=e.itemData.box;i&&this._pushItemToQueue(e.itemContent,i)}_createItemByTemplate(e,i){return i.itemData.box?e.source?e.source():U():super._createItemByTemplate(e,i)}_itemOptionChanged(e,i,r,o){"visible"===i&&this._onItemStateChanged({name:i,state:r,oldState:!1!==o}),super._itemOptionChanged(e,i,r)}_optionChanged(e){switch(e.name){case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:super._optionChanged(e)}}_itemOptions(){var e=super._itemOptions();return e.fireItemStateChangedAction=i=>{this._onItemStateChanged(i)},e}}return t.ItemClass=WPt,t})();On("dxBox",FSe);const BI=FSe;let PSe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,q0e,bi,tn,mi],$i,q0e,tn]}),t})();var v$="sparkline-tooltip",y$=kt([qn.down,qn.move],v$),C$=se,RSe=Math.floor;function $Pt(t){var{data:n}=t,e=n.widget;e._enableOutHandler(),e._showTooltip()}function YPt(t,n,e){var i=function qPt(t,n){var i=(t.lineSpacing??2)+t.size;return function(r){for(var o="",a=r.valueText,s=0;s<a.length;s+=2)o+="<tr><td>"+a[s]+"</td><td style='width: 15px'></td><td style='text-align: "+(n?"left":"right")+"'>"+a[s+1]+"</td></tr>";return{html:"<table style='border-spacing:0px; line-height: "+i+"px'>"+o+"</table>"}}}(n,e);return Yt(t)?function(r){var o=t.call(r,r);return!("html"in o)&&!("text"in o)&&C$(o,i.call(r,r)),o}:i}function LSe(t){var n=new EI({},{},{shiftZeroValue:!t,isHorizontal:!!t});return{getTranslator:function(){return n},update:function(e,i,r){n.update(e,i,r)},getVisibleArea(){var e=n.getCanvasVisibleArea();return[e.min,e.max]},visualRange:Be,calculateInterval:Be,getMarginOptions:()=>({}),aggregatedPointBetweenTicks:()=>!1}}var BSe,Km=V_.inherit({_getLayoutItems:Be,_useLinks:!1,_themeDependentChanges:["OPTIONS"],_initCore:function(){this._tooltipTracker=this._renderer.root,this._tooltipTracker.attr({"pointer-events":"visible"}),this._createHtmlElements(),this._initTooltipEvents(),this._argumentAxis=LSe(!0),this._valueAxis=LSe()},_getDefaultSize:function(){return this._defaultSize},_disposeCore:function(){this._disposeWidgetElements(),this._disposeTooltipEvents(),this._ranges=null},_optionChangesOrder:["OPTIONS"],_change_OPTIONS:function(){this._prepareOptions(),this._change(["UPDATE"])},_customChangesOrder:["UPDATE"],_change_UPDATE:function(){this._update()},_update:function(){this._tooltipShown&&(this._tooltipShown=!1,this._tooltip.hide()),this._cleanWidgetElements(),this._updateWidgetElements(),this._drawWidgetElements()},_updateWidgetElements:function(){var t=this._getCorrectCanvas();this._updateRange(),this._argumentAxis.update(this._ranges.arg,t,this._getStick()),this._valueAxis.update(this._ranges.val,t)},_getStick:function(){},_applySize:function(t){this._allOptions.size={width:t[2]-t[0],height:t[3]-t[1]},this._change(["UPDATE"])},_setupResizeHandler:Be,_prepareOptions:function(){return C$(!0,{},this._themeManager.theme(),this.option())},_getTooltipCoords:function(){var t=this._canvas,n=this._renderer.getRootOffset();return{x:t.width/2+n.left,y:t.height/2+n.top}},_initTooltipEvents(){var t={widget:this};this._renderer.root.off("."+v$).on(y$,t,$Pt)},_showTooltip(){this._tooltipShown||(this._tooltipShown=!0,this._getTooltip().isEnabled()&&this._tooltip.show(this._getTooltipData(),this._getTooltipCoords(),{}))},_hideTooltip(){this._tooltipShown&&(this._tooltipShown=!1,this._tooltip.hide())},_stopCurrentHandling(){this._hideTooltip()},_enableOutHandler(){var t=this;if(!t._outHandler){var n=e=>{var{pageX:i,pageY:r}=e,{left:o,top:a}=t._renderer.getRootOffset(),s=RSe(i-o),l=RSe(r-a);(function KPt(t,n,e){var{width:i,height:r}=t;return Tj({left:0,top:0,right:i,bottom:r,width:i,height:r},n,e)})(t._canvas,s,l)||(t._hideTooltip(),t._disableOutHandler())};Se.on(It.getDocument(),y$,n),this._outHandler=n}},_disableOutHandler(){this._outHandler&&Se.off(It.getDocument(),y$,this._outHandler),this._outHandler=null},_disposeTooltipEvents:function(){this._tooltipTracker.off(),this._disableOutHandler(),this._renderer.root.off("."+v$)},_getTooltip:function(){var t=this;return t._tooltip||(BSe.apply(this,arguments),t._setTooltipRendererOptions(t._tooltipRendererOptions),t._tooltipRendererOptions=null,t._setTooltipOptions()),t._tooltip}});const NSe=Km;Km.addPlugin(kC),BSe=Km.prototype._initTooltip,Km.prototype._initTooltip=Be;var ZPt=Km.prototype._disposeTooltip;Km.prototype._disposeTooltip=function(){this._tooltip&&ZPt.apply(this,arguments)},Km.prototype._setTooltipRendererOptions=function(){var t=this._getRendererOptions();this._tooltip?this._tooltip.setRendererOptions(t):this._tooltipRendererOptions=t},Km.prototype._setTooltipOptions=function(){var t=this._tooltip,n=t&&this._getOption("tooltip");t&&t.update(C$({},n,{customizeTooltip:YPt(n.customizeTooltip,n.font,this.option("rtlEnabled")),enabled:n.enabled&&this._isTooltipEnabled()}))};var XPt=se(!0,{},j_,{init:Be,dispose:Be,customize:null,members:{_getExportMenuOptions:null}});Km.addPlugin(XPt);var P4=Number,R4=isFinite,b$=NSe.inherit({_rootClassPrefix:"dxb",_rootClass:"dxb-bullet",_themeSection:"bullet",_defaultSize:{width:300,height:30,left:1,right:1,top:2,bottom:2},_disposeWidgetElements:function(){delete this._zeroLevelPath,delete this._targetPath,delete this._barValuePath},_cleanWidgetElements:function(){this._zeroLevelPath.remove(),this._targetPath.remove(),this._barValuePath.remove()},_drawWidgetElements:function(){this._drawBullet(),this._drawn()},_createHtmlElements:function(){var t=this._renderer;this._zeroLevelPath=t.path(void 0,"line").attr({class:"dxb-zero-level","stroke-linecap":"square"}),this._targetPath=t.path(void 0,"line").attr({class:"dxb-target","stroke-linecap":"square"}),this._barValuePath=t.path(void 0,"line").attr({class:"dxb-bar-value","stroke-linecap":"square"})},_prepareOptions:function(){var t,n,e,i,r,o;this._allOptions=t=this.callBase();var a=void 0===this._allOptions.value,s=void 0===this._allOptions.target;this._tooltipEnabled=!(a&&s),a&&(this._allOptions.value=0),s&&(this._allOptions.target=0),t.value=r=P4(t.value),t.target=o=P4(t.target),void 0===this._allOptions.startScaleValue&&(this._allOptions.startScaleValue=o<r?o:r,this._allOptions.startScaleValue=this._allOptions.startScaleValue<0?this._allOptions.startScaleValue:0),void 0===this._allOptions.endScaleValue&&(this._allOptions.endScaleValue=o>r?o:r),t.startScaleValue=n=P4(t.startScaleValue),t.endScaleValue=e=P4(t.endScaleValue),e<n&&(i=e,this._allOptions.endScaleValue=n,this._allOptions.startScaleValue=i,this._allOptions.inverted=!0)},_updateRange:function(){var t=this._allOptions;this._ranges={arg:{invert:t.rtlEnabled?!t.inverted:t.inverted,min:t.startScaleValue,max:t.endScaleValue,axisType:"continuous",dataType:"numeric"},val:{min:0,max:1,axisType:"continuous",dataType:"numeric"}}},_drawBullet:function(){var t=this._allOptions,n=t.startScaleValue!==t.endScaleValue,e=R4(t.startScaleValue),i=R4(t.endScaleValue),r=R4(t.value),o=R4(t.target);n&&i&&e&&o&&r&&(this._drawBarValue(),this._drawTarget(),this._drawZeroLevel())},_getTargetParams:function(){var t=this._allOptions,n=this._valueAxis.getTranslator(),e=this._argumentAxis.getTranslator().translate(t.target);return{points:[e,n.translate(.02),e,n.translate(.98)],stroke:t.targetColor,"stroke-width":t.targetWidth}},_getBarValueParams:function(){var l,u,t=this._allOptions,n=this._argumentAxis.getTranslator(),e=this._valueAxis.getTranslator(),i=t.startScaleValue,r=t.endScaleValue,o=t.value,a=e.translate(.1),s=e.translate(.9);return o>0?(l=i<=0?0:i,u=o>=r?r:o<l?l:o):(l=r>=0?0:r,u=o<i?i:o>l?l:o),{points:[l=n.translate(l),s,u=n.translate(u),s,u,a,l,a],fill:t.color}},_getCorrectCanvas:function(){return this._canvas},_getZeroLevelParams:function(){var t=this._valueAxis.getTranslator(),n=this._argumentAxis.getTranslator().translate(0);return{points:[n,t.translate(.02),n,t.translate(.98)],stroke:this._allOptions.targetColor,"stroke-width":1}},_drawZeroLevel:function(){var t=this._allOptions;0>t.endScaleValue||0<t.startScaleValue||!t.showZeroLevel||this._zeroLevelPath.attr(this._getZeroLevelParams()).sharp().append(this._renderer.root)},_drawTarget:function(){var t=this._allOptions,n=t.target;n>t.endScaleValue||n<t.startScaleValue||!t.showTarget||this._targetPath.attr(this._getTargetParams()).sharp().append(this._renderer.root)},_drawBarValue:function(){this._barValuePath.attr(this._getBarValueParams()).append(this._renderer.root)},_getTooltipCoords:function(){var t=this._canvas,n=this._renderer.getRootOffset(),e=this._barValuePath.getBBox();return{x:e.x+e.width/2+n.left,y:t.height/2+n.top}},_getTooltipData:function(){var t=this._tooltip,n=this._allOptions,e=n.value,i=n.target,r=t.formatValue(e),o=t.formatValue(i);return{originalValue:e,originalTarget:i,value:r,target:o,valueText:["Actual Value:",r,"Target Value:",o]}},_isTooltipEnabled:function(){return this._tooltipEnabled}});we(["color","targetColor","targetWidth","showTarget","showZeroLevel","value","target","startScaleValue","endScaleValue"],function(t,n){b$.prototype._optionChangesMap[n]="OPTIONS"}),On("dxBullet",b$);let WSe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Ta,Ia,$o,Ea,Oa,$r,ja,bi,tn,mi],Ta,Ia,$o,Ea,Oa,$r,ja,tn]}),t})();var NI="dx-buttongroup",i2t=NI+"-wrapper",GSe=NI+"-item",r2t=NI+"-first-item",o2t=NI+"-last-item",jSe=GSe+"-has-width",s2t=Fc.inherit({_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({item:new Ac((t,n,e)=>{this._prepareItemStyles(t);var i=this.option("buttonTemplate");this._createComponent(t,To,se({},e,n,this._getBasicButtonOptions(),{_templateData:this._hasCustomTemplate(i)?e:{},template:e.template||i}))},["text","type","icon","disabled","visible","hint"],this.option("integrationOptions.watchMethod"))})},_getBasicButtonOptions(){return{focusStateEnabled:!1,onClick:null,hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode")}},_getDefaultOptions:function(){return se(this.callBase(),{itemTemplateProperty:null})},_hasCustomTemplate(t){return Yt(t)||this.option("integrationOptions.templates")[t]},_prepareItemStyles(t){var n=t.data("dxItemIndex");0===n&&t.addClass(r2t);var e=this.option("items");e&&n===e.length-1&&t.addClass(o2t),t.addClass("dx-shape-standard")},_renderItemContent(t){return t.container=U(t.container).parent(),this.callBase(t)},_renderItemContentByNode:function(t,n){return t.container=U(t.container.children().first()),this.callBase(t,n)},_focusTarget(){return this.$element().parent()},_keyboardEventBindingTarget(){return this._focusTarget()},_refreshContent(){this._prepareContent(),this._renderContent()},_itemClass:()=>GSe,_itemSelectHandler:function(t){"single"===this.option("selectionMode")&&this.isItemSelected(t.currentTarget)||this.callBase(t)}}),KSe=tr.inherit({_getDefaultOptions(){return se(this.callBase(),{hoverStateEnabled:!0,focusStateEnabled:!0,selectionMode:"single",selectedItems:[],selectedItemKeys:[],stylingMode:"contained",keyExpr:"text",items:[],buttonTemplate:"content",onSelectionChanged:null,onItemClick:null})},_init(){this.callBase(),this._createItemClickAction()},_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_initMarkup(){this.setAria("role","group"),this.$element().addClass(NI),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_fireSelectionChangeEvent:function(t,n){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:t,removedItems:n})},_renderButtons(){var t=U("<div>").addClass(i2t).appendTo(this.$element()),n=this.option("selectedItems"),e={selectionMode:this.option("selectionMode"),items:this.option("items"),keyExpr:this.option("keyExpr"),buttonTemplate:this.option("buttonTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:i=>{var r=this.option("width");Z(r)&&U(i.itemElement).addClass(jSe)},onSelectionChanged:i=>{this._syncSelectionOptions(),this._fireSelectionChangeEvent(i.addedItems,i.removedItems)},onItemClick:i=>{this._itemClickAction(i)}};Z(n)&&n.length&&(e.selectedItems=n),this._buttonsCollection=this._createComponent(t,s2t,e)},_syncSelectionOptions(){this._setOptionWithoutOptionChange("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionWithoutOptionChange("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged(t){switch(t.name){case"stylingMode":case"selectionMode":case"keyExpr":case"buttonTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(t.name,t.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(t),this._buttonsCollection.itemElements().toggleClass(jSe,!!t.value);break;default:this.callBase(t)}}});On("dxButtonGroup",KSe);const GC=KSe;let $Se=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})();var qSe="dxSwipeable",u2t={onStart:WL,onUpdated:GL,onEnd:jT,onCancel:"dxswipecancel"},YSe=Ic.inherit({_getDefaultOptions:function(){return se(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass("dx-swipeable"),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var t=this.NAME;this._createEventData(),we(u2t,function(n,e){var i=this._createActionByOption(n,{context:this});e=kt(e,t),Se.on(this.$element(),e,this._eventData,function(r){return i({event:r})})}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){Se.off(this.$element(),"."+qSe)},_optionChanged:function(t){switch(t.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(t)}},_useTemplates:function(){return!1}});qO(YSe,qSe);const oS=YSe;var _2t=tr.inherit({_getDefaultOptions:function(){return se(this.callBase(),{onClick:null,onCaptionClick:null,text:""})},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-calendar-navigator"),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var t=this,n=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent(U("<a>"),To,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(o){t._clickAction({direction:-n,event:o})},integrationOptions:{}});var e=this._prevButton.$element().addClass("dx-calendar-navigator-previous-view").addClass("dx-calendar-navigator-previous-month");this._nextButton=this._createComponent(U("<a>"),To,{focusStateEnabled:!1,icon:"chevronright",onClick:function(o){t._clickAction({direction:n,event:o})},integrationOptions:{}});var i=this._nextButton.$element().addClass("dx-calendar-navigator-next-view").addClass("dx-calendar-navigator-next-month");this._caption=this._createComponent(U("<a>").addClass("dx-calendar-caption-button"),To,{focusStateEnabled:!1,onClick:function(o){t._captionClickAction({event:o})},integrationOptions:{}});var r=this._caption.$element();this.$element().append(e,r,i)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(t,n){var i=this["_"+t+"Button"];i&&(i.option("disabled",n),i.$element().toggleClass("dx-calendar-disabled-navigator-link",n))},_optionChanged:function(t){"text"===t.name?this._renderCaption():this.callBase(t)}});const v2t=_2t;var{abstract:ev}=tr,ZSe="dx-calendar-empty-cell",XSe="dx-calendar-selected-date",x$="dx-calendar-contoured-date",JSe=kt(Vi,"dxCalendar"),QSe="dxDateValueKey",w2t=tr.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return se(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0,_todayDate:()=>new Date})},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this.$element().append(this._createTable()),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_createTable:function(){return this._$table=U("<table>"),this.setAria({label:ye.format("dxCalendar-ariaWidgetName"),role:"grid"},this._$table),this._$table},_renderBody:function(){this.$body=U("<tbody>").appendTo(this._$table);for(var t={cellDate:this._getFirstCellData(),prevCellDate:null},n=0,e=this.option("rowCount");n<e;n++){t.row=this._createRow();for(var i=0,r=this.option("colCount");i<r;i++)this._renderCell(t,i);this._renderWeekNumberCell(t)}},_createRow:function(){var t=It.createElement("tr");return this.setAria("role","row",U(t)),this.$body.get(0).appendChild(t),t},_appendCell:function(t,n){this._appendMethodName||this._cacheAppendMethodName(),U(t)[this._appendMethodName](n)},_cacheAppendMethodName:function(t){this._appendMethodName=t??this.option("rtlEnabled")?"prepend":"append"},_createCell:function(t){var n=It.createElement("td"),e=U(n);return n.className=this._getClassNameByDate(t),n.setAttribute("data-value",Qr.serializeDate(t,bt.getShortDateFormat())),zo(n,QSe,t),this.setAria({role:"gridcell",label:this.getCellAriaLabel(t)},e),{cell:n,$cell:e}},_renderCell:function(t,n){var{cellDate:e,prevCellDate:i,row:r}=t;i&&bt.fixTimezoneGap(i,e),t.prevCellDate=e;var{cell:o,$cell:a}=this._createCell(e),s=this.option("cellTemplate");this._appendCell(r,o),s?s.render(this._prepareCellTemplateData(e,n,a)):o.innerHTML=this._getCellText(e),t.cellDate=this._getNextCellData(e)},_getClassNameByDate:function(t){var n="dx-calendar-cell";return this._isTodayCell(t)&&(n+=" ".concat("dx-calendar-today")),(this._isDateOutOfRange(t)||this.isDateDisabled(t))&&(n+=" ".concat(ZSe)),this._isOtherView(t)&&(n+=" ".concat("dx-calendar-other-view")),n},_prepareCellTemplateData:function(t,n,e){var i=t instanceof Date;return{model:{text:i?this._getCellText(t):t,date:i?t:void 0,view:this._getViewName()},container:kn(e),index:n}},_renderEvents:function(){this._createCellClickAction(),Se.off(this._$table,JSe),Se.on(this._$table,JSe,"td:not(.".concat("dx-calendar-week-number-cell",")"),t=>{U(t.currentTarget).hasClass(ZSe)||this._cellClickAction({event:t,value:U(t.currentTarget).data(QSe)})})},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var t=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(t)?this._getDefaultDisabledDatesHandler(t):t||Be},_getDefaultDisabledDatesHandler:function(t){return Be},_isTodayCell:ev,_isDateOutOfRange:ev,isDateDisabled:function(t){var n={date:t,view:this._getViewName()};return this._disabledDatesHandler(n)},_isOtherView:ev,_getCellText:ev,_getFirstCellData:ev,_getNextCellData:ev,_renderContouredDate:function(t){if(this.option("focusStateEnabled")){t=t||this.option("contouredDate");var n=this._getContouredCell(),e=this._getCellByDate(t);n.removeClass(x$),e.addClass(x$)}},_getContouredCell:function(){return this._$table.find(".".concat(x$))},_changeValue:function(t){if(t){var n=this.option("value"),e=n?new Date(n):new Date;e.setDate(t.getDate()),e.setMonth(t.getMonth()),e.setFullYear(t.getFullYear()),e.setDate(t.getDate()),this.option("value",e)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var t=this.option("value"),n=this._getCellByDate(t);this._selectedCell&&this._selectedCell.removeClass(XSe),n.addClass(XSe),this._selectedCell=n}},getCellAriaLabel:function(t){return this._getCellText(t)},_getFirstAvailableDate:function(){var t=this.option("date"),n=this.option("min");return t=bt.getFirstDateView(this._getViewName(),t),new Date(n&&t<n?n:t)},_getCellByDate:ev,isBoundary:ev,_optionChanged:function(t){var{name:n,value:e}=t;switch(n){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(e);break;case"onCellClick":this._createCellClickAction();break;case"disabledDates":case"cellTemplate":this._invalidate();break;case"rtlEnabled":this._cacheAppendMethodName(e),this.callBase(t);break;case"_todayDate":this._renderBody();break;default:this.callBase(t)}}});const L4=w2t;var O2t={month:L4.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return se(this.callBase(),{firstDayOfWeek:0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find(".".concat("dx-calendar-other-view")).addClass("dx-calendar-other-month")},_renderFocusTarget:Be,getCellAriaLabel:function(t){return Gn.format(t,"longdate")},_renderHeader:function(){var t=U("<tr>"),n=U("<thead>").append(t);this._$table.prepend(n);for(var e=0,i=this.option("colCount");e<i;e++)this._renderHeaderCell(e,t);this.option("showWeekNumbers")&&this._renderWeekHeaderCell(t)},_renderHeaderCell:function(t,n){var{firstDayOfWeek:e}=this.option(),{full:i,abbreviated:r}=this._getDayCaption(e+t),o=U("<th>").attr({scope:"col",abbr:i}).text(r);this._appendCell(n,o)},_renderWeekHeaderCell:function(t){var n=U("<th>").attr({scope:"col",abbr:"WeekNumber",class:"dx-week-number-header"}).text("#");this.option("rtlEnabled")?t.append(n):t.prepend(n)},_renderWeekNumberCell:function(t){var{showWeekNumbers:n,rtlEnabled:e,cellTemplate:i}=this.option();if(n){var r=this._getWeekNumber(t.prevCellDate),o=It.createElement("td"),a=U(o);o.className="dx-calendar-week-number-cell",i?i.render(this._prepareCellTemplateData(r,-1,a)):o.innerHTML=r,e?t.row.append(o):t.row.prepend(o),this.setAria({role:"gridcell",label:"Week ".concat(r)},a)}},_getWeekNumber:function(t){var{weekNumberRule:n,firstDayOfWeek:e}=this.option();return bt.getWeekNumber(t,e,"auto"===n?1===e?"firstFourDays":"firstDay":n)},getNavigatorCaption:function(){return Gn.format(this.option("date"),"monthandyear")},_isTodayCell:function(t){var n=this.option("_todayDate")();return bt.sameDate(t,n)},_isDateOutOfRange:function(t){var n=this.option("min"),e=this.option("max");return!bt.dateInRange(t,n,e,"date")},_isOtherView:function(t){return t.getMonth()!==this.option("date").getMonth()},_getCellText:function(t){return Gn.format(t,"d")},_getDayCaption:function(t){var e=t%this.option("colCount");return{full:Gn.getDayNames()[e],abbreviated:Gn.getDayNames("abbreviated")[e]}},_getFirstCellData:function(){var{firstDayOfWeek:t}=this.option(),n=bt.getFirstMonthDate(this.option("date")),e=t-n.getDay(),i=this.option("colCount");return e>=0&&(e-=i),n.setDate(n.getDate()+e),n},_getNextCellData:function(t){return(t=new Date(t)).setDate(t.getDate()+1),t},_getCellByDate:function(t){return this._$table.find("td[data-value='".concat(Qr.serializeDate(t,bt.getShortDateFormat()),"']"))},isBoundary:function(t){return bt.sameMonthAndYear(t,this.option("min"))||bt.sameMonthAndYear(t,this.option("max"))},_getDefaultDisabledDatesHandler:function(t){return function(n){if(t.some(function(i){return bt.sameDate(i,n.date)}))return!0}}}),year:L4.inherit({_getViewName:function(){return"year"},_isTodayCell:function(t){var n=this.option("_todayDate")();return bt.sameMonthAndYear(t,n)},_isDateOutOfRange:function(t){return!bt.dateInRange(t,bt.getFirstMonthDate(this.option("min")),bt.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(t){return Gn.getMonthNames("abbreviated")[t.getMonth()]},_getFirstCellData:function(){var t=this.option("date"),n=new Date(t);return n.setDate(1),n.setMonth(0),n},_getNextCellData:function(t){return(t=new Date(t)).setMonth(t.getMonth()+1),t},_getCellByDate:function(t){var n=new Date(t);return n.setDate(1),this._$table.find("td[data-value='".concat(Qr.serializeDate(n,bt.getShortDateFormat()),"']"))},getCellAriaLabel:function(t){return Gn.format(t,"monthandyear")},getNavigatorCaption:function(){return Gn.format(this.option("date"),"yyyy")},isBoundary:function(t){return bt.sameYear(t,this.option("min"))||bt.sameYear(t,this.option("max"))},_renderWeekNumberCell:Be}),decade:L4.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(t){var n=this.option("_todayDate")();return bt.sameYear(t,n)},_isDateOutOfRange:function(t){var n=this.option("min"),e=this.option("max");return!bt.dateInRange(t.getFullYear(),n&&n.getFullYear(),e&&e.getFullYear())},_isOtherView:function(t){var n=new Date(t);return n.setMonth(1),!bt.sameDecade(n,this.option("date"))},_getCellText:function(t){return Gn.format(t,"yyyy")},_getFirstCellData:function(){var t=bt.getFirstYearInDecade(this.option("date"))-1;return bt.createDateWithFullYear(t,0,1)},_getNextCellData:function(t){return(t=new Date(t)).setFullYear(t.getFullYear()+1),t},getNavigatorCaption:function(){var t=this.option("date"),n=bt.getFirstYearInDecade(t),e=new Date(t),i=new Date(t);return e.setFullYear(n),i.setFullYear(n+9),Gn.format(e,"yyyy")+"-"+Gn.format(i,"yyyy")},_isValueOnCurrentView:function(t,n){return bt.sameDecade(t,n)},_getCellByDate:function(t){var n=new Date(t);return n.setDate(1),n.setMonth(0),this._$table.find("td[data-value='".concat(Qr.serializeDate(n,bt.getShortDateFormat()),"']"))},isBoundary:function(t){return bt.sameDecade(t,this.option("min"))||bt.sameDecade(t,this.option("max"))},_renderWeekNumberCell:Be}),century:L4.inherit({_getViewName:function(){return"century"},_isTodayCell:function(t){var n=this.option("_todayDate")();return bt.sameDecade(t,n)},_isDateOutOfRange:function(t){var n=bt.getFirstYearInDecade(t),e=bt.getFirstYearInDecade(this.option("min")),i=bt.getFirstYearInDecade(this.option("max"));return!bt.dateInRange(n,e,i)},_isOtherView:function(t){var n=new Date(t);return n.setMonth(1),!bt.sameCentury(n,this.option("date"))},_getCellText:function(t){var n=Gn.format(t,"yyyy"),e=new Date(t);return e.setFullYear(e.getFullYear()+9),n+" - "+Gn.format(e,"yyyy")},_getFirstCellData:function(){var t=bt.getFirstDecadeInCentury(this.option("date"))-10;return bt.createDateWithFullYear(t,0,1)},_getNextCellData:function(t){return(t=new Date(t)).setFullYear(t.getFullYear()+10),t},_getCellByDate:function(t){var n=new Date(t);return n.setDate(1),n.setMonth(0),n.setFullYear(bt.getFirstYearInDecade(n)),this._$table.find("td[data-value='".concat(Qr.serializeDate(n,bt.getShortDateFormat()),"']"))},getNavigatorCaption:function(){var t=this.option("date"),n=bt.getFirstDecadeInCentury(t),e=new Date(t),i=new Date(t);return e.setFullYear(n),i.setFullYear(n+99),Gn.format(e,"yyyy")+"-"+Gn.format(i,"yyyy")},isBoundary:function(t){return bt.sameCentury(t,this.option("min"))||bt.sameCentury(t,this.option("max"))},_renderWeekNumberCell:Be})};const T2t=O2t;var eDe="dx-calendar-view",aS={month:3,year:2,decade:1,century:0},tDe=Ru.inherit({_activeStateUnit:".dx-calendar-cell",_getDefaultOptions:function(){return se(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,zoomLevel:"month",maxZoomLevel:"month",minZoomLevel:"century",showTodayButton:!1,showWeekNumbers:!1,weekNumberRule:"auto",cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,skipFocusCheck:!1,_todayDate:()=>new Date})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return se(this.callBase(),{rightArrow:function(t){t.preventDefault(),Xo(t)?this._waitRenderView(1):this._moveCurrentDateByOffset(1*this._getRtlCorrection())},leftArrow:function(t){t.preventDefault(),Xo(t)?this._waitRenderView(-1):this._moveCurrentDateByOffset(-1*this._getRtlCorrection())},upArrow:function(t){if(t.preventDefault(),Xo(t))this._navigateUp();else{if(Hi.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(-1*this._view.option("colCount"))}},downArrow:function(t){if(t.preventDefault(),Xo(t))this._navigateDown();else{if(Hi.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(1*this._view.option("colCount"))}},home:function(t){t.preventDefault();var n=this.option("zoomLevel"),e=this.option("currentDate"),i=this._dateOption("min");if(!this._view.isDateDisabled(e)){var r=bt.sameView(n,e,i)?i:bt.getViewFirstCellDate(n,e);this._moveToClosestAvailableDate(r)}},end:function(t){t.preventDefault();var n=this.option("zoomLevel"),e=this.option("currentDate"),i=this._dateOption("max");if(!this._view.isDateDisabled(e)){var r=bt.sameView(n,e,i)?i:bt.getViewLastCellDate(n,e);this._moveToClosestAvailableDate(r)}},pageUp:function(t){t.preventDefault(),this._waitRenderView(-1*this._getRtlCorrection())},pageDown:function(t){t.preventDefault(),this._waitRenderView(1*this._getRtlCorrection())},tab:Be,enter:function(t){if(this._isMaxZoomLevel()){if(!this._view.isDateDisabled(this.option("currentDate"))){var n=this._updateTimeComponent(this.option("currentDate"));this._dateValue(n,t)}}else this._navigateDown()}})},_getSerializationFormat:function(t){var n=this.option(t||"value");return this.option("dateSerializationFormat")?this.option("dateSerializationFormat"):di(n)?"number":Pn(n)?Qr.getDateSerializationFormat(n):void 0},_convertToDate:function(t,n){return Qr.deserializeDate(t)},_dateValue:function(t,n){if(n){if("keydown"===n.type){var e=this._view._getContouredCell().get(0);n.target=e}this._saveValueChangeEvent(n)}this._dateOption("value",t)},_dateOption:function(t,n){if(1===arguments.length)return this._convertToDate(this.option(t),t);var e=this._getSerializationFormat(t);this.option(t,Qr.serializeDate(n,e))},_shiftDate:function(t,n,e,i){switch(t){case"month":n.setDate(n.getDate()+e*i);break;case"year":n.setMonth(n.getMonth()+e*i);break;case"decade":n.setFullYear(n.getFullYear()+e*i);break;case"century":n.setFullYear(n.getFullYear()+10*e*i)}},_moveCurrentDateByOffset:function(t){var n=this.option("currentDate"),e=new Date(n),i=this.option("zoomLevel");this._shiftDate(i,e,t,1);for(var r=this._getMaxDate(),o=this._getMinDate(),a=this._areDatesInNeighborView(i,e,n),s=tm(e,o,r)&&a,l=new Date(e);s;){if(!this._view.isDateDisabled(l)){e=l;break}this._shiftDate(i,l,t,1),a=this._areDatesInNeighborView(i,l,n),s=tm(l,o,r)&&a}this._view.isDateDisabled(n)||this._view.isDateDisabled(e)?this._waitRenderView(t>0?1:-1):this.option("currentDate",e)},_areDatesInSameView(t,n,e){switch(t){case"month":return n.getMonth()===e.getMonth();case"year":return n.getYear()===e.getYear();case"decade":return parseInt(n.getYear()/10)===parseInt(e.getYear()/10);case"century":return parseInt(n.getYear()/100)===parseInt(e.getYear()/100)}},_areDatesInNeighborView(t,n,e){switch(t){case"month":return i=n.getMonth(),r=e.getMonth(),o=Math.abs(i-r),Math.min(o,12-o)<=1;case"year":return Math.abs(n.getYear()-e.getYear())<=1;case"decade":return Math.abs(n.getYear()-e.getYear())<=10;case"century":return Math.abs(n.getYear()-e.getYear())<=100}var i,r,o},_moveToClosestAvailableDate:function(){var a,s,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("currentDate"),n=new Date(t),e=this.option("zoomLevel"),i=!this._isDateNotAvailable(n),r=i,o=i,l=new Date(n),u=new Date(n);do{if(r){n=l;break}if(o){n=u;break}this._shiftDate(e,l,1,1),this._shiftDate(e,u,1,-1),a=this._areDatesInSameView(e,l,t),s=this._areDatesInSameView(e,u,t),r=a&&!this._isDateNotAvailable(l),o=s&&!this._isDateNotAvailable(u)}while(a||s);this.option("currentDate",n)},_isDateNotAvailable:function(t){var n=this._getMaxDate(),e=this._getMinDate();return!tm(t,e,n)||this._view.isDateDisabled(t)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var t=this.option("minZoomLevel"),n=this.option("maxZoomLevel"),e=this.option("zoomLevel");aS[n]<aS[t]||(aS[e]>aS[n]?this.option("zoomLevel",n):aS[e]<aS[t]&&this.option("zoomLevel",t))},_initCurrentDate:function(){var t=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",t)},_getNormalizedDate:function(t){return t=bt.normalizeDate(t,this._getMinDate(),this._getMaxDate()),Z(t)?this._getDate(t):t},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this._templateManager.addDefaultTemplates({cell:new bg(function(t){var n=t.model;U(t.container).append(U("<span>").text(n&&n.text||String(n)))})}),this.callBase()},_updateCurrentDate:function(t){if(Hi.isAnimating(this._$viewsWrapper)&&Hi.stop(this._$viewsWrapper,!0),this._getMinDate()>this._getMaxDate())this.option("currentDate",new Date);else{var i=this._getNormalizedDate(t);if(t.getTime()===i.getTime()){var r=this._getViewsOffset(this._view.option("date"),i);0!==r&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(r=0),this._view&&0!==r&&!this._suppressNavigation?this._navigate(r,i):(this._renderNavigator(),this._setViewContoured(i),this._updateAriaId(i))}else this.option("currentDate",new Date(i))}},_setViewContoured:function(t){(this.option("skipFocusCheck")||function z2t(t){return t.hasClass("dx-state-focused")}(this._focusTarget()))&&this._view.option("contouredDate",t)},_getMinDate:function(){return this.min||(this.min=this._dateOption("min")||new Date(1e3,0)),this.min},_getMaxDate:function(){return this.max||(this.max=this._dateOption("max")||new Date(3e3,0)),this.max},_getViewsOffset:function(t,n){var i,e=this.option("zoomLevel");if("month"===e)return this._getMonthsOffset(t,n);switch(e){case"century":i=100;break;case"decade":i=10;break;default:i=1}return parseInt(n.getFullYear()/i)-parseInt(t.getFullYear()/i)},_getMonthsOffset:function(t,n){return 12*(n.getFullYear()-t.getFullYear())+(n.getMonth()-t.getMonth())},_waitRenderView:function(t){if(!this._alreadyViewRender){this._alreadyViewRender=!0;var n=this._getDateByOffset(t*this._getRtlCorrection());this._moveToClosestAvailableDate(n),this._waitRenderViewTimeout=setTimeout(()=>{this._alreadyViewRender=!1})}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(t,n){var e,i=(n=this._getDate(null!==(e=n)&&void 0!==e?e:this.option("currentDate"))).getDate(),r=bt.getDifferenceInMonth(this.option("zoomLevel"))*t;n.setDate(1),n.setMonth(n.getMonth()+r);var o=bt.getLastMonthDate(n).getDate();return n.setDate(i>o?o:i),n},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var t=this.$element();t.addClass("dx-calendar"),this._renderBody(),t.append(this.$body),this._renderViews(),this._renderNavigator(),t.append(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this._updateAriaSelected(),this._updateAriaId(),this._moveToClosestAvailableDate()},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=U("<div>").addClass("dx-calendar-body"),this._$viewsWrapper=U("<div>").addClass("dx-calendar-views-wrapper"),this.$body.append(this._$viewsWrapper))},_getKeyboardListeners(){return this.callBase().concat([this._view])},_renderViews:function(){this.$element().addClass(eDe+"-"+this.option("zoomLevel"));var t=this.option("currentDate");if(this._view=this._renderSpecificView(t),Rn()){var n=this._getDateByOffset(-1,t);this._beforeView=this._isViewAvailable(n)?this._renderSpecificView(n):null;var e=this._getDateByOffset(1,t);e.setDate(1),this._afterView=this._isViewAvailable(e)?this._renderSpecificView(e):null}this._translateViews()},_renderSpecificView:function(t){var n=T2t[this.option("zoomLevel")],e=U("<div>").appendTo(this._$viewsWrapper),i=this._viewConfig(t);return this._createComponent(e,n,i)},_viewConfig:function(t){var n,e=this.option("disabledDates");return e=Yt(e)?this._injectComponent(e.bind(this)):e,{date:t,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:null!==(n=this.option("firstDayOfWeek"))&&void 0!==n?n:Gn.firstDayOfWeekIndex(),showWeekNumbers:this.option("showWeekNumbers"),weekNumberRule:this.option("weekNumberRule"),zoomLevel:this.option("zoomLevel"),value:this._dateOption("value"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:e,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel(),_todayDate:this.option("_todayDate")}},_injectComponent:function(t){var n=this;return function(e){return se(e,{component:n}),t(e)}},_isViewAvailable:function(t){var n=this.option("zoomLevel"),e=bt.getViewMinBoundaryDate(n,this._getMinDate()),i=bt.getViewMaxBoundaryDate(n,this._getMaxDate());return bt.dateInRange(t,e,i)},_translateViews:function(){kr(this._view.$element(),{left:0,top:0}),this._beforeView&&kr(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&kr(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(t){return 100*t*(this.option("rtlEnabled")?-1:1)+"%"},_cellClickHandler:function(t){var n=this.option("zoomLevel"),e=bt.getViewDown(n),i=this._isMaxZoomLevel();if(e&&!i)this._navigateDown(t.event.currentTarget);else{var r=this._updateTimeComponent(t.value);this._dateValue(r,t.event),this._cellClickAction(t)}},_updateTimeComponent:function(t){var n=new Date(t),e=this._dateOption("value");return e&&(n.setHours(e.getHours()),n.setMinutes(e.getMinutes()),n.setSeconds(e.getSeconds()),n.setMilliseconds(e.getMilliseconds())),n},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(t){var n=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var e=bt.getViewDown(n);if(e){var i=this._view.option("contouredDate")||this._view.option("date");t&&(i=U(t).data("dxDateValueKey")),this._isOtherViewCellClicked=!0,this.option("currentDate",i),this.option("zoomLevel",e),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate")))}}},_renderNavigator:function(){this._navigator||(this._navigator=new v2t(U("<div>"),this._navigatorConfig())),this._navigator.option("text",this._view.getNavigatorCaption()),this._updateButtonsVisibility()},_navigatorConfig:function(){return{text:this._view.getNavigatorCaption(),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),rtlEnabled:this.option("rtlEnabled")}},_navigatorClickHandler:function(t){var n=this._getDateByOffset(t.direction,this.option("currentDate"));this._moveToClosestAvailableDate(n)},_navigateUp:function(){var t=this.option("zoomLevel"),n=bt.getViewUp(t);!n||this._isMinZoomLevel(t)||(this.option("zoomLevel",n),this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate"))))},_isMinZoomLevel:function(t){var n=this._getMinDate(),e=this._getMaxDate();return bt.sameView(t,n,e)||this.option("minZoomLevel")===t},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!Z(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!Z(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),oS,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(t){Hi.stop(this._$viewsWrapper,!0),t.event.maxLeftOffset=this._getRequiredView("next")?1:0,t.event.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(t){var n,e=this.option("rtlEnabled");return"next"===t?n=e?this._beforeView:this._afterView:"prev"===t&&(n=e?this._afterView:this._beforeView),n},_swipeUpdateHandler:function(t){var n=t.event.offset;kr(this._$viewsWrapper,{left:n*this._viewWidth(),top:0}),this._updateNavigatorCaption(n)},_swipeEndHandler:function(t){var n=t.event.targetOffset,e=n?n/Math.abs(n):0;if(0!==e){var i=this._getDateByOffset(-e*this._getRtlCorrection());this._isDateInInvalidRange(i)&&(i=e>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",i)}else this._animateWrapper(0,250)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=wn(this.$element())),this._viewWidthValue},_updateNavigatorCaption:function(t){t*=this._getRtlCorrection();var n=this._view;t>.5&&this._beforeView?n=this._beforeView:t<-.5&&this._afterView&&(n=this._afterView),this._navigator.option("text",n.getNavigatorCaption())},_isDateInInvalidRange:function(t){if(!this._view.isBoundary(t)){var n=this._getMinDate(),e=this._getMaxDate(),i=bt.normalizeDate(t,n,e);return i===n||i===e}},_renderFooter:function(){var t=this.option("showTodayButton");if(t){var n=this._createComponent(U("<a>"),To,{focusStateEnabled:!1,text:ye.format("dxCalendar-todayButtonText"),onClick:function(e){this._toTodayView(e)}.bind(this),integrationOptions:{}}).$element().addClass("dx-calendar-today-button");this._$footer=U("<div>").addClass("dx-calendar-footer").append(n),this.$element().append(this._$footer)}this.$element().toggleClass("dx-calendar-with-footer",t)},_renderSubmitElement:function(){this._$submitElement=U("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(t){var n=this._convertToDate(t);this._getSubmitElement().val(Qr.serializeDate(n,"yyyy-MM-dd"))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return Hi.stop(this._view.$element(),!0),this._popAnimationView(this._view,.6,1,250).promise()},_popAnimationView:function(t,n,e,i){return Hi.animate(t.$element(),{type:"pop",from:{scale:n,opacity:n},to:{scale:e,opacity:e},duration:i})},_navigate:function(t,n){if(0!==t&&1!==Math.abs(t)&&this._isViewAvailable(n)){var e=this._renderSpecificView(n);t>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=e):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=e),this._translateViews()}var o=-this._getRtlCorrection()*(t>0?1:t<0?-1:0)*this._viewWidth();this._$viewsWrapper.position().left!==o&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(t,n):this._animateWrapper(o,250).done(this._wrapperAnimationEndHandler.bind(this,t,n)))},_animateWrapper:function(t,n){return Hi.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:t},duration:n})},_getDate:t=>new Date(t),_toTodayView:function(t){this._saveValueChangeEvent(t.event);var n=new Date;this._isMaxZoomLevel()?this._dateOption("value",n):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",n),this._animateShowView(),this._preventViewChangeAnimation=!1)},_wrapperAnimationEndHandler:function(t,n){this._rearrangeViews(t),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(n),this._updateAriaId(n)},_rearrangeViews:function(t){var n,e,i;if(0!==t&&(t<0?(n=1,e="_beforeView",i="_afterView"):(n=-1,e="_afterView",i="_beforeView"),this[e])){var r=this[e].option("date");this[i]&&this[i].$element().remove(),t===n?this[i]=this._view:(this[i]=this._renderSpecificView(this._getDateByOffset(n,r)),this._view.$element().remove()),this._view=this[e];var o=this._getDateByOffset(-n,r);this[e]=this._isViewAvailable(o)?this._renderSpecificView(o):null}},_resetLocation:function(){kr(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._beforeView,delete this._afterView},_dispose:function(){clearTimeout(this._waitRenderViewTimeout),this.callBase()},_refreshViews:function(){this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_focusInHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",this.option("currentDate"))},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",null)},_updateViewsValue:function(t){var n=t?new Date(t):null;this._view.option("value",n),this._beforeView&&this._beforeView.option("value",n),this._afterView&&this._afterView.option("value",n)},_updateAriaSelected:function(t,n){var e;t=null!==(e=t)&&void 0!==e?e:this._dateOption("value");var i=this._view._getCellByDate(n),r=this._view._getCellByDate(t);this.setAria("selected",void 0,i),this.setAria("selected",!0,r),t&&this.option("currentDate").getTime()===t.getTime()&&this._updateAriaId(t)},_updateAriaId:function(t){var n;t=null!==(n=t)&&void 0!==n?n:this.option("currentDate");var e="dx-"+new Ni,i=this._view._getCellByDate(t);this.setAria("id",e,i),this.setAria("activedescendant",e),this._onContouredChanged(e)},_suppressingNavigation:function(t,n){this._suppressNavigation=!0,t.apply(this,n),delete this._suppressNavigation},_optionChanged:function(t){var n=t.value,e=t.previousValue;switch(t.name){case"width":this.callBase(t),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(e)),this._updateCurrentDate(n);break;case"zoomLevel":this.$element().removeClass(eDe+"-"+e),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":n=this._convertToDate(n),e=this._convertToDate(e),this._updateAriaSelected(n,e),this.option("currentDate",Z(n)?new Date(n):new Date),this._updateViewsValue(n),this._setSubmitValue(n),this.callBase(t);break;case"onCellClick":this._view.option("onCellClick",n);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"skipFocusCheck":break;case"_todayDate":case"showWeekNumbers":case"weekNumberRule":this._refreshViews();break;default:this.callBase(t)}},getContouredDate:function(){return this._view.option("contouredDate")}});On("dxCalendar",tDe);const S$=tDe,U2t={provide:Fo,useExisting:At(()=>W2t),multi:!0};let W2t=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"cellTemplateChange"},{emit:"dateSerializationFormatChange"},{emit:"disabledChange"},{emit:"disabledDatesChange"},{emit:"elementAttrChange"},{emit:"firstDayOfWeekChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"maxChange"},{emit:"maxZoomLevelChange"},{emit:"minChange"},{emit:"minZoomLevelChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showTodayButtonChange"},{emit:"showWeekNumbersChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"weekNumberRuleChange"},{emit:"widthChange"},{emit:"zoomLevelChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get cellTemplate(){return this._getOption("cellTemplate")}set cellTemplate(e){this._setOption("cellTemplate",e)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(e){this._setOption("dateSerializationFormat",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get disabledDates(){return this._getOption("disabledDates")}set disabledDates(e){this._setOption("disabledDates",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get firstDayOfWeek(){return this._getOption("firstDayOfWeek")}set firstDayOfWeek(e){this._setOption("firstDayOfWeek",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get maxZoomLevel(){return this._getOption("maxZoomLevel")}set maxZoomLevel(e){this._setOption("maxZoomLevel",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get minZoomLevel(){return this._getOption("minZoomLevel")}set minZoomLevel(e){this._setOption("minZoomLevel",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showTodayButton(){return this._getOption("showTodayButton")}set showTodayButton(e){this._setOption("showTodayButton",e)}get showWeekNumbers(){return this._getOption("showWeekNumbers")}set showWeekNumbers(e){this._setOption("showWeekNumbers",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get weekNumberRule(){return this._getOption("weekNumberRule")}set weekNumberRule(e){this._setOption("weekNumberRule",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get zoomLevel(){return this._getOption("zoomLevel")}set zoomLevel(e){this._setOption("zoomLevel",e)}change(e){}_createInstance(e,i){return new S$(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("disabledDates",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("disabledDates"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-calendar"]],hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",cellTemplate:"cellTemplate",dateSerializationFormat:"dateSerializationFormat",disabled:"disabled",disabledDates:"disabledDates",elementAttr:"elementAttr",firstDayOfWeek:"firstDayOfWeek",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",max:"max",maxZoomLevel:"maxZoomLevel",min:"min",minZoomLevel:"minZoomLevel",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showTodayButton:"showTodayButton",showWeekNumbers:"showWeekNumbers",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",weekNumberRule:"weekNumberRule",width:"width",zoomLevel:"zoomLevel"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",cellTemplateChange:"cellTemplateChange",dateSerializationFormatChange:"dateSerializationFormatChange",disabledChange:"disabledChange",disabledDatesChange:"disabledDatesChange",elementAttrChange:"elementAttrChange",firstDayOfWeekChange:"firstDayOfWeekChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",maxChange:"maxChange",maxZoomLevelChange:"maxZoomLevelChange",minChange:"minChange",minZoomLevelChange:"minZoomLevelChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showTodayButtonChange:"showTodayButtonChange",showWeekNumbersChange:"showWeekNumbersChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",weekNumberRuleChange:"weekNumberRuleChange",widthChange:"widthChange",zoomLevelChange:"zoomLevelChange",onBlur:"onBlur"},features:[ot([Zt,nn,U2t,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),nDe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})();var jC="string",D$="numeric",E$="datetime",B4="discrete",O$="semidiscrete",T$="continuous",I$="logarithmic",rDe="argumentType",oDe=b1([jC,D$,E$]),j2t=Array.isArray;function aDe(t,n,e){var i=n?function(r,o){return r-o}:function(r,o){return o-r};return t.sort(function(r,o){var a=e(r),s=e(o),l=Z(a)?1:0,u=Z(s)?1:0;return l&&u?i(a,s):i(l,u)}),t}function sDe(t,n){var e=[];return t.forEach(function(i){var r=n(i);void 0!==r&&e.push(r)}),e}function lDe(t){return t}function uDe(t,n){var e=n;return n===jC||Pn(t)?e=jC:n===E$||Sa(t)?e=E$:di(t)&&(e=D$),e}function dDe(t,n,e,i){return t===jC&&(n===T$||n===I$||n===O$)&&i("E2002"),n===I$?I$:e||n===B4||t===jC?B4:n===O$?O$:T$}function k$(t,n,e){var i=t?BK(t):lDe,r=n!==B4?function(o){return isFinite(o)||void 0===o?o:null}:lDe;return function(o,a){var s=r(i(o));return void 0===s&&function Z2t(t,n,e){t&&e(di(t)||Sa(t)||Pn(t)?"E2004":"E2003",[n])}(o,a,e),s}}function J2t(t,n){var e,o,i=n.length,r=se({},t);for(e=0;e<i;++e)r[o=n[e][0]]=n[e][1](t[o],o);return r}function cDe(t,n){var e=t-n;return isNaN(e)?Z(t)?Z(n)?0:-1:1:e}function oRt(t,n){return t.slice().sort(function(e,i){return cDe(e[n],i[n])})}function M$(t,n,e,i){t=function fRt(t,n){var o,a,s,l,e=[],i=Z(t),r=i&&!j2t(t);if(i&&!r)for(o=0,a=t.length,s=0;o<a;++o)Jn(l=t[o])?e[s++]=l:l&&(r=!0);return r&&n("E2001"),e}(t,e),n.argumentType=n.argumentAxisType=null,function $2t(t){t.forEach(function(n){n.valueType=n.valueAxisType=null,n.series.forEach(function(e){e.updateDataType({})}),n.valueAxis&&n.valueAxis.resetTypes("valueType")})}(n.groups),function q2t(t){t&&t.forEach(function(n){n.resetTypes(rDe)})}(n.argumentAxes),function pRt(t,n,e){var a,i=[],r=[],o=n.argumentOptions&&oDe(n.argumentOptions.argumentType);n.groups.forEach(function(s){if(s.series.length){var l=s.valueOptions&&oDe(s.valueOptions.valueType);s.valueType=l,n.argumentType=o,!l&&i.push(s),!o&&r.push(s)}}),(i.length||r.length)&&(a=i.map(function(s,l){return l}),t.some(function(s){var l;if(i.forEach(function(u,f){(function sRt(t,n){return t.series.forEach(function(e){e.getValueFields().forEach(function(i){t.valueType=uDe(n[i],t.valueType)})}),t.valueType})(u,s)&&a.indexOf(f)>=0&&a.splice(f,1)}),l||r.forEach(function(u){l=function hRt(t,n,e){return t.forEach(function(i){e.argumentType=uDe(n[i.getArgumentField()],e.argumentType)}),e.argumentType}(u.series,s,n)}),!e&&l&&0===a.length)return!0}))}(t,n,i.checkTypeForAllData),function gRt(t,n){var e=t.argumentOptions||{},r=dDe(t.argumentType,e.type,!!(e&&e.categories||[]).length,n);t.groups.forEach(function(o){var a=o.valueOptions||{},l=dDe(o.valueType,a.type,!!(a.categories||[]).length,n);o.series.forEach(function(u){var f={};f.argumentAxisType=r,f.valueAxisType=l,t.argumentAxisType=t.argumentAxisType||f.argumentAxisType,o.valueAxisType=o.valueAxisType||f.valueAxisType,f.argumentType=t.argumentType,f.valueType=o.valueType,f.showZero=a.showZero,u.updateDataType(f)}),o.valueAxisType=o.valueAxisType||l,o.valueAxis&&(o.valueAxis.setTypes(o.valueAxisType,o.valueType,"valueType"),o.valueAxis.validate())}),t.argumentAxisType=t.argumentAxisType||r,t.argumentAxes&&t.argumentAxes.forEach(function(o){o.setTypes(t.argumentAxisType,t.argumentType,rDe),o.validate()})}(n,e),i.convertToAxisDataType&&(t=function Q2t(t,n){var i,e=[],r=t.length;for(e.length=r,i=0;i<r;++i)e[i]=J2t(t[i],n);return e}(t,function X2t(t,n){var i,r,e=k$(t.argumentType,t.argumentAxisType,n),o=[e],a={},s=[];for(var l in t.groups.forEach(function(u,f){u.series.forEach(function(S){r=k$(u.valueType,u.valueAxisType,n),i=k$(D$,T$,n),a[S.getArgumentField()]=e,S.getValueFields().forEach(function(T){o[f+1]=r,a[T]=r}),S.getSizeField()&&(a[S.getSizeField()]=i)})}),a)s.push([l,a[l]]);return s.length&&function Y2t(t,n){var e=t.argumentOptions&&t.argumentOptions.categories;t.groups.forEach(function(i,r){var o=i.valueOptions&&i.valueOptions.categories;o&&(i.valueOptions.categories=sDe(o,n[r+1]))}),e&&(t.argumentOptions.categories=sDe(e,n[0]))}(t,o),s}(n,e))),function nRt(t,n){var e=n.groups[0]&&n.groups[0].series[0];e&&("pie"===e.type||"doughnut"===e.type||"donut"===e.type)&&n.groups.forEach(function(r){r.series.forEach(function(o){!function tRt(t,n,e,i){var r=(i=i||{}).mode,o={};if(r&&"none"!==r){o[n]=String(i.groupName||"others"),o[e]=0;var a=aDe(t.slice(),!1,function(s){return s[e]});(function K2t(t,n,e,i){i>=0&&t.slice(i).forEach(function(r){Z(r[e])&&(n[e]+=r[e],r[e]=void 0)})})(a,o,e,"smallValueThreshold"===r?function eRt(t,n,e){var i,o,r=t.length;for(i=0;i<r&&!(Z(o=t[i][n])&&e>o);++i);return i}(a,e,i.threshold):i.topCount),o[e]&&t.push(o)}}(t,o.getArgumentField(),o.getValueFields()[0],o.getOptions().smallValuesGrouping)})})}(t,n);var r=function uRt(t,n,e,i){var u,r={},o=n.argumentAxisType===B4,a=o&&n.argumentOptions&&n.argumentOptions.categories,s=function(f){return f},l=e.sortingMethod;return!a&&Yt(l)&&(t=function aRt(t,n){return t.slice().sort(n)}(t,l)),o&&(n.categories=function cRt(t,n,e){var i=e?e.slice():[];return n.forEach(function(r){t.forEach(function(o){var a=o[r];Z(a)&&function dRt(t,n){return-1===t.map(function(e){return e.valueOf()}).indexOf(n.valueOf())}(i,a)&&i.push(a)})}),i}(t,i,a)),a||!Yt(l)&&n.argumentType===jC&&!e._skipArgumentSorting?s=function lRt(t){var n={};return t.forEach(function(e,i){n[e]=i}),function(e,i){return aDe(e.slice(),!0,function(r){return n[r[i]]})}}(n.categories):!0===l&&n.argumentType!==jC&&(s=oRt,u=o),i.forEach(function(f){r[f]=s(t,f)}),u&&(n.categories=n.categories.sort(cDe)),r}(t,n,i,function rRt(t){var n=[],e={};return t.groups.forEach(function(i){i.series.forEach(function(r){!function iRt(t,n,e){e[t]||(n.push(t),e[t]=!0)}(r.getArgumentField(),n,e)})}),n}(n));return r}const Mp={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4};function CRt(t,n){var e="",i=t.indexOf(":");return i>0&&(e=t.substr(i+1),t=t.substr(0,i)),function yRt(t,n){if(n){if(t instanceof Date)return Ay(t,n);if("number"==typeof t)return nit(t,n)}return t}(n[t],e)}var $m=Es.format,A$=Math,qm=A$.round,N4=A$.floor,tv=A$.abs;function pDe(t,n){var i,e=1/0;return we(n,function(r,o){var a=t[0]-o[0],s=t[1]-o[1],l=a*a+s*s;l<e&&(e=l,i=o)}),[N4(i[0]),N4(i[1])]}function gDe(t,n,e){return(n-t[0+e])/(t[2+e]-t[0+e])*(t[3-e]-t[1-e])+t[1-e]}var z4={isLabelInside:function(t,n){var e=t.x+t.width/2,i=t.y+t.height/2;return n.x<=e&&e<=n.x+n.width&&n.y<=i&&i<=n.y+n.height},prepareLabelPoints:function(t,n,e,i,r){var o=n.x,a=o+n.width/2,s=o+n.width-1,l=n.y,u=l+n.height/2,f=l+n.height-1,T=tv(i)%90==0;return r[0]>o&&r[0]<s?T?[[r[0],tv(r[1]-l)<tv(r[1]-f)?l:f]]:[[r[0],gDe([o,l,s,f],r[0],0)]]:r[1]>l&&r[1]<f?T?[[tv(r[0]-o)<tv(r[0]-s)?o:s,r[1]]]:[[gDe([o,l,s,f],r[1],1),r[1]]]:T?[[o,l],[e?o:a,e?u:l],[s,l],[o,f],[e?s:a,e?u:f],[s,f]]:[[a,u]]},isHorizontal:function(t,n){return t.x>n.x+n.width||t.x+t.width<n.x},getFigureCenter:function(t){return[N4(t.x+t.width/2),N4(t.y+t.height/2)]},findFigurePoint:function(t,n){var e=z4.getFigureCenter(t);return pDe(n,[[t.x,e[1]],[e[0],t.y+t.height],[t.x+t.width,e[1]],[e[0],t.y]])},adjustPoints:function(t){var n=tv(t[1]-t[3])<=1;return tv(t[0]-t[2])<=1&&(t[0]=t[2]),n&&(t[1]=t[3]),t}},fDe={isLabelInside:function(){return!1},prepareLabelPoints:z4.prepareLabelPoints,isHorizontal:function(t,n){return t.x>n.x+n.r||t.x+t.width<n.x-n.r},getFigureCenter:function(t){return[t.x,t.y]},findFigurePoint:function(t,n){var e=Math.atan2(t.y-n[1],n[0]-t.x);return[qm(t.x+t.r*Math.cos(e)),qm(t.y-t.r*Math.sin(e))]},adjustPoints:z4.adjustPoints},xRt={isLabelInside:function(t,n,e){return!e},prepareLabelPoints:function(t,n,e,i){var r=t.x,o=r+t.width,a=r+qm(t.width/2),s=t.y,l=s+t.height,u=s+qm(t.height/2),f=[[[r,s],[o,s]],[[o,s],[o,l]],[[o,l],[r,l]],[[r,l],[r,s]]],S=Ll(i);return 0===i?e?[[r,u],[o,u]]:[[a,s],[a,l]]:f.map(function(T){return T.map(function(R){return[qm((R[0]-a)*S.cos+(R[1]-u)*S.sin+a),qm(-(R[0]-a)*S.sin+(R[1]-u)*S.cos+u)]})}).reduce(function(T,R){var L=R[0][0],z=R[0][1],j=R[1][0],Y=R[1][1];return e?(z>=u&&u>=Y||z<=u&&u<=Y)&&T.push([(u-z)*(j-L)/(Y-z)+L,u]):(L>=a&&a>=j||L<=a&&a<=j)&&T.push([a,(a-L)*(Y-z)/(j-L)+z]),T},[])},isHorizontal:function(t,n){return t.x>n.x||n.x>t.x+t.width},getFigureCenter:fDe.getFigureCenter,findFigurePoint:function(t,n,e){if(!e)return[t.x,t.y];var i=n[0],r=qm(t.x+(t.y-n[1])/Math.tan(ube(t.angle))),o=[t.x,t.y,r,n[1]];return!(t.x<=r&&r<=i)&&!(i<=r&&r<=t.x)&&(tv(t.x-i)<12?o=[t.x,t.y]:o[2]=t.x<=i?t.x+12:t.x-12),o},adjustPoints:function(t){return t}};function mDe(t){return void 0!==t.angle&&xRt||void 0!==t.r&&fDe||z4}function U4(t,n){t[n]&&t[n].dispose(),t[n]=null}function F$(t){return t&&(t.fill&&"none"!==t.fill||t["stroke-width"]>0&&t.stroke&&"none"!==t.stroke)}function _De(t){return t&&t["stroke-width"]>0&&t.stroke&&"none"!==t.stroke}function sS(t){this._renderer=t.renderer,this._container=t.labelsGroup,this._point=t.point,this._strategy=t.strategy,this._rowCount=1}sS.prototype={constructor:sS,setColor:function(t){this._color=t},setOptions:function(t){this._options=t},setData:function(t){this._data=t},setDataField:function(t,n){this._data=this._data||{},this._data[t]=n},getData:function(){return this._data},setFigureToDrawConnector:function(t){this._figure=t},dispose:function(){U4(this,"_group"),this._data=this._options=this._textContent=this._visible=this._insideGroup=this._text=this._background=this._connector=this._figure=null},_setVisibility:function(t,n){this._group&&this._group.attr({visibility:t}),this._visible=n},isVisible:function(){return this._visible},hide:function(t){this._holdVisibility=!!t,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(t){var n=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!t,this._show(),n&&this._point.correctLabelPosition(this))},_show:function(){var t=this._renderer,n=this._container,e=this._options||{},i=this._textContent=function wRt(t,n){var e=n.format;return t.valueText=$m(t.value,e),t.argumentText=$m(t.argument,n.argumentFormat),void 0!==t.percent&&(t.percentText=$m(t.percent,{type:"percent",precision:e&&e.percentPrecision})),void 0!==t.total&&(t.totalText=$m(t.total,e)),void 0!==t.openValue&&(t.openValueText=$m(t.openValue,e)),void 0!==t.closeValue&&(t.closeValueText=$m(t.closeValue,e)),void 0!==t.lowValue&&(t.lowValueText=$m(t.lowValue,e)),void 0!==t.highValue&&(t.highValueText=$m(t.highValue,e)),void 0!==t.reductionValue&&(t.reductionValueText=$m(t.reductionValue,e)),n.customizeText?n.customizeText.call(t,t):n.displayFormat?function bRt(t,n){for(var e=t,i=!0;i;){var r=e.indexOf("{"),o=e.indexOf("}");if(r>=0&&o>0){var s=CRt(e.substring(r+1,o),n);e=e.substr(0,r)+s+e.substr(o+1)}else i=!1}return e}(n.displayFormat,t):t.valueText}(this._data,e)||null;i?(this._group||(this._group=t.g().append(n),this._insideGroup=t.g().append(this._group),this._text=t.text("",0,0).append(this._insideGroup)),this._text.css(e.attributes?_a(e.attributes.font):{}),F$(e.background)?(this._background=this._background||t.rect().append(this._insideGroup).toBackground(),this._background.attr(e.background),this._color&&this._background.attr({fill:this._color})):U4(this,"_background"),_De(e.connector)?(this._connector=this._connector||t.path([],"line").sharp().append(this._group).toBackground(),this._connector.attr(e.connector),this._color&&this._connector.attr({stroke:this._color})):U4(this,"_connector"),this._text.attr({text:i,align:e.textAlignment,class:e.cssClass}),this._updateBackground(this._text.getBBox()),this._setVisibility("visible",!0),this._drawn=!0):this._hide()},_getLabelVisibility:function(t){return this._holdVisibility?this.isVisible():t},draw:function(t){return this._getLabelVisibility(t)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(t){this._background&&(t.x-=8,t.y-=4,t.width+=16,t.height+=8,this._background.attr(t)),this._bBoxWithoutRotation=se({},t);var n=this._options.rotationAngle||0;this._insideGroup.rotate(n,t.x+t.width/2,t.y+t.height/2),t=uB(t,[t.x+t.width/2,t.y+t.height/2],-n),this._bBox=t},getFigureCenter(){var t=this._figure;return(this._strategy||mDe(t)).getFigureCenter(t)},_getConnectorPoints:function(){var o,s,t=this._figure,n=this._options,e=this._strategy||mDe(t),i=this._shiftBBox(this._bBoxWithoutRotation),r=this.getBoundingRect(),a=[];if(!e.isLabelInside(i,t,"inside"!==n.position)){s=e.isHorizontal(i,t);var l=this.getFigureCenter();o=pDe(l,a=e.prepareLabelPoints(i,r,s,-n.rotationAngle||0,l)),a=(a=e.findFigurePoint(t,o,s)).concat(o)}return e.adjustPoints(a)},fit:function(t){var e=!1;if(this._text){var i=this._text.setMaxSize(t-(this._background?16:0),void 0,this._options),r=i.rowCount;0===r&&(r=1),r!==this._rowCount&&(e=!0,this._rowCount=r),i.textIsEmpty&&U4(this,"_background")}return this._updateBackground(this._text.getBBox()),e},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(t){this._text.data({"chart-data-point":t}),this._background&&this._background.data({"chart-data-point":t})},hideInsideLabel:function(t){return this._point.hideInsideLabel(this,t)},getPoint(){return this._point},shift:function(t,n){return this._textContent&&(this._insideGroup.attr({translateX:this._x=qm(t-this._bBox.x),translateY:this._y=qm(n-this._bBox.y)}),this._connector&&this._connector.attr({points:this._getConnectorPoints()})),this},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(t){return this._textContent?{x:t.x+this._x,y:t.y+this._y,width:t.width,height:t.height}:{}},getLayoutOptions:function(){var t=this._options;return{alignment:t.alignment,background:F$(t.background),horizontalOffset:t.horizontalOffset,verticalOffset:t.verticalOffset,radialOffset:t.radialOffset,position:t.position,connectorOffset:(_De(t.connector)?12:0)+(F$(t.background)?8:0)}}};var SRt=Fn(),W4=se,P$=Math,lS=P$.round,R$=P$.floor,L$=P$.ceil,G4="canvas_position_default";const Ts={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var t=this.graphic;t&&t.attr("visibility")&&t.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var t=this.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),this._errorBar&&this._errorBar.attr({visibility:"hidden"}),this._label.draw(!1)},clearMarker:function(){var t=this.graphic;t&&t.attr(this._emptySettings)},_createLabel:function(){this._label=new sS({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_calculateVisibility:function(t,n){var{minX:e,maxX:i,minY:r,maxY:o}=this._getVisibleArea();this.inVisibleArea=e<=t&&i>=t&&r<=n&&o>=n},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(t){return Z(t)&&("string"==typeof t||Z(t.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(t,n){var e=t.symbol,i=n.symbol,r="circle"===e&&"circle"!==i||"circle"!==e&&"circle"===i,o=this._checkImage(t.image)!==this._checkImage(n.image);return!(!r&&!o)},_populatePointShape:function(t,n){switch(t){case"square":return function DRt(t){return[-t,-t,t,-t,t,t,-t,t,-t,-t]}(n);case"polygon":return function ERt(t){var n=L$(t);return[-n,0,0,-n,n,0,0,n,-n,0]}(n);case"triangle":case"triangleDown":return function TRt(t){return[-t,-t,t,-t,0,t,-t,-t]}(n);case"triangleUp":return function IRt(t){return[-t,t,t,t,0,-t,-t,t]}(n);case"cross":return function ORt(t){var n=L$(t),e=R$(n/2),i=L$(n/2);return[-n,-e,-e,-n,0,-i,e,-n,n,-e,i,0,n,e,e,n,0,i,-e,n,-n,e,-i,0]}(n)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(t){var n=this.series.getValueAxis();this.hasValue()&&(this.value=this.properValue=n.validateUnit(this.initialValue.valueOf()+t.valueOf()),this.minValue=n.validateUnit(t))},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=G4},resetValue:function(){this.hasValue()&&(this.value=this.properValue=this.initialValue=0,this.minValue=0,this._label.setDataField("value",this.value))},_getTranslates:function(t){var n=this.x,e=this.y;return t&&(this._options.rotated?n=this.defaultX:e=this.defaultY),{x:n,y:e}},_createImageMarker:function(t,n,e){var i=e.width||20,r=e.height||20;return t.image(-lS(.5*i),-lS(.5*r),i,r,e.url?e.url.toString():e.toString(),"center").attr({translateX:n.translateX,translateY:n.translateY,visibility:n.visibility})},_createSymbolMarker:function(t,n){var e,i=this._options.symbol;return"circle"===i?(delete n.points,e=t.circle().attr(n)):("square"===i||"polygon"===i||"triangle"===i||"triangleDown"===i||"triangleUp"===i||"cross"===i)&&(e=t.path([],"area").attr(n).sharp()),e},_createMarker:function(t,n,e,i){var r=this._checkImage(e)?this._createImageMarker(t,i,e):this._createSymbolMarker(t,i);return r&&r.data({"chart-data-point":this}).append(n),r},_getSymbolBBox:function(t,n,e){return{x:t-e,y:n-e,width:2*e,height:2*e}},_getImageBBox:function(t,n){var e=this._options.image,i=e.width||20,r=e.height||20;return{x:t-lS(i/2),y:n-lS(r/2),width:i,height:r}},_getGraphicBBox:function(){var t=this._options,n=this.x,e=this.y;return t.visible?this._checkImage(t.image)?this._getImageBBox(n,e):this._getSymbolBBox(n,e,t.styles.normal.r):{x:n,y:e,width:0,height:0}},hideInsideLabel:Be,_getShiftLabelCoords:function(t){var n=this._addLabelAlignmentAndOffset(t,this._getLabelCoords(t));return this._checkLabelPosition(t,n)},_drawLabel:function(){var t=this._getCustomLabelVisibility(),n=this._label,e=this._showForZeroValues()&&this.hasValue()&&!1!==t&&(this.series.getLabelVisibility()||t);n.draw(!!e)},correctLabelPosition:function(t){var n=this._getShiftLabelCoords(t);this.hideInsideLabel(t,n)||(t.setFigureToDrawConnector(this._getLabelConnector(t.pointPosition)),t.shift(lS(n.x),lS(n.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(t){var n=this._getGraphicBBox(t),e=n.width/2,i=n.height/2;return{x:n.x+e,y:n.y+i,r:this._options.visible?Math.max(e,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(t,n){return t.minX<=n.x+n.width&&t.maxX>=n.x&&t.minY<=n.y+n.height&&t.maxY>=n.y},_checkLabelPosition:function(t,n){var e=this._getVisibleArea(),i=t.getBoundingRect(),r=this._getGraphicBBox(t.pointPosition),o=this._getGraphicBBox(),a="inside"===t.getLayoutOptions().position;return this._isPointInVisibleArea(e,o)&&(this._options.rotated?(e.minX>n.x&&(n.x=a?e.minX:r.x+r.width+10),e.maxX<n.x+i.width&&(n.x=a?e.maxX-i.width:r.x-10-i.width),e.minY>n.y&&(n.y=e.minY),e.maxY<n.y+i.height&&(n.y=e.maxY-i.height)):(e.minX>n.x&&(n.x=e.minX),e.maxX<n.x+i.width&&(n.x=e.maxX-i.width),e.minY>n.y&&(n.y=a?e.minY:r.y+r.height+10),e.maxY<n.y+i.height&&(n.y=a?e.maxY-i.height:r.y-i.height-10))),n},_addLabelAlignmentAndOffset:function(t,n){var e=t.getBoundingRect(),i=t.getLayoutOptions();return this._options.rotated||("left"===i.alignment?n.x+=e.width/2:"right"===i.alignment&&(n.x-=e.width/2)),n.x+=i.horizontalOffset,n.y+=i.verticalOffset,n},_getLabelCoords:function(t){return this._getLabelCoordOfPosition(t,this._getLabelPosition(t.pointPosition))},_getLabelCoordOfPosition:function(t,n){var e=t.getBoundingRect(),i=this._getGraphicBBox(t.pointPosition),o=i.height/2-e.height/2,a=i.width/2-e.width/2,s=i.x,l=i.y;switch(n){case"left":s-=e.width+10,l+=o;break;case"right":s+=i.width+10,l+=o;break;case"top":s+=a,l-=e.height+10;break;case"bottom":s+=a,l+=i.height+10;break;case"inside":s+=a,l+=o}return{x:s,y:l}},_drawMarker:function(t,n,e){var i=this._options,r=this._getTranslates(e),o=this._getStyle();this.graphic=this._createMarker(t,n,i.image,W4({translateX:r.x,translateY:r.y,points:this._populatePointShape(i.symbol,o.r)},o))},_getErrorBarSettings:function(){return{visibility:"visible"}},_getErrorBarBaseEdgeLength(){return 2*this.getPointRadius()},_drawErrorBar:function(t,n){if(this._options.errorBars){var o,e=this._options,i=e.errorBars,r=[],a=this._errorBarPos,s=this._highErrorCoord,l=this._lowErrorCoord,u=Ri(i.displayMode),f="high"===u,S="low"===u,T=(f||!Z(l))&&Z(s)&&!S,R=(S||!Z(s))&&Z(l)&&!f,L=i.edgeLength;L<=1&&L>0&&(L=this._getErrorBarBaseEdgeLength()*i.edgeLength),L=R$(parseInt(L)/2),T&&(l=this._baseErrorBarPos),R&&(s=this._baseErrorBarPos),"none"!==u&&Z(s)&&Z(l)&&Z(a)?(!R&&r.push([a-L,s,a+L,s]),r.push([a,s,a,l]),!T&&r.push([a+L,l,a-L,l]),e.rotated&&we(r,function(z,j){j.reverse()}),o=this._getErrorBarSettings(i),this._errorBar?(o.points=r,this._errorBar.attr(o)):this._errorBar=t.path(r,"line").attr(o).append(n)):this._errorBar&&this._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var t=this.graphic;return{x:this.x,y:this.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(t,n,e,i){var r=this.value/t||0,o=this.minValue/t||0;this._label.setDataField("percent",r-o),this._label.setDataField("total",n),this.series.isFullStackedSeries()&&this.hasValue()&&(this.leftHole&&(this.leftHole/=t-e,this.minLeftHole/=t-e),this.rightHole&&(this.rightHole/=t-i,this.minRightHole/=t-i),this.value=this.properValue=r,this.minValue=o||this.minValue)},_storeTrackerR:function(){var t=SRt.navigator,n=this._options.styles.normal.r,e=VP("ontouchstart")||t.msPointerEnabled&&t.msMaxTouchPoints||t.pointerEnabled&&t.maxTouchPoints?20:6;return this._options.trackerR=n<e?e:n,this._options.trackerR},_translateErrorBars:function(){var t=this._options,n=t.rotated,e=t.errorBars,i=this._getValTranslator();e&&(Z(this.lowError)&&(this._lowErrorCoord=i.translate(this.lowError)),Z(this.highError)&&(this._highErrorCoord=i.translate(this.highError)),this._errorBarPos=R$(n?this.vy:this.vx),this._baseErrorBarPos="stdDeviation"===e.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:n?this.vx:this.vy)},_translate:function(){var t=this._getValTranslator(),n=this._getArgTranslator();this._options.rotated?(this.vx=this.x=t.translate(this.value),this.vy=this.y=n.translate(this.argument),this.minX=t.translate(this.minValue),this.defaultX=t.translate(G4)):(this.vy=this.y=t.translate(this.value),this.vx=this.x=n.translate(this.argument),this.minY=t.translate(this.minValue),this.defaultY=t.translate(G4)),this._translateErrorBars(),this._calculateVisibility(this.x,this.y)},_updateData:function(t){this.value=this.properValue=this.initialValue=this.originalValue=t.value,this.minValue=this.initialMinValue=this.originalMinValue=Z(t.minValue)?t.minValue:G4},_getImageSettings:function(t){return{href:t.url||t.toString(),width:t.width||20,height:t.height||20}},getCrosshairData:function(){var t=this._options.rotated,n=this.properValue,e=this.argument;return{x:this.vx,y:this.vy,xValue:t?n:e,yValue:t?e:n,axis:this.series.axis}},getPointRadius:function(){var t=this._getStyle(),n=this._options,e=t.r,r=n.symbol;return n.visible&&!n.image&&e?("square"===r||"triangle"===r||"triangleDown"===r||"triangleUp"===r?1.4*e:e)+t["stroke-width"]/2:0},_updateMarker:function(t,n){var i,e=this._options,r=e.image,o=this.isVisible()?{}:{visibility:"hidden"};i=this._checkImage(r)?W4({},{visibility:n.visibility},o,this._getImageSettings(r)):W4({},n,o,{points:this._populatePointShape(e.symbol,n.r)}),t||(i.translateX=this.x,i.translateY=this.y),this.graphic.attr(i).sharp()},_getLabelFormatObject:function(){return{argument:this.initialArgument,value:this.initialValue,originalArgument:this.originalArgument,originalValue:this.originalValue,seriesName:this.series.name,lowErrorValue:this.lowError,highErrorValue:this.highError,point:this}},_getLabelPosition:function(){var t=this._options.rotated;return this.initialValue>0?t?"right":"top":t?"left":"bottom"},_getFormatObject:function(t){var n=this._label.getData();return W4({},n,{argumentText:t.formatValue(this.initialArgument,"argument"),valueText:t.formatValue(this.initialValue)},Z(n.percent)?{percentText:t.formatValue(n.percent,"percent")}:{},Z(n.total)?{totalText:t.formatValue(n.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(t,n){var e=this._storeTrackerR();return t>=this.x-e&&t<=this.x+e&&n>=this.y-e&&n<=this.y+e},getMinValue:function(t){var n=this._options.errorBars;if(n&&!t){var e=n.displayMode,i="high"!==e&&Z(this.lowError)?this.lowError:this.value,r="low"!==e&&Z(this.highError)?this.highError:this.value;return i<r?i:r}return this.value},getMaxValue:function(t){var n=this._options.errorBars;if(n&&!t){var e=n.displayMode,i="high"!==e&&Z(this.lowError)?this.lowError:this.value,r="low"!==e&&Z(this.highError)?this.highError:this.value;return i>r?i:r}return this.value}};var yDe=se,CDe=Math,kRt=CDe.floor,MRt=CDe.abs;function SDe(t){var n=t.initialValue,e=t._getValTranslator().getBusinessRange().invert,i="discrete"===t.series.valueAxisType,r=t.series.isFullStackedSeries();return!i&&(n>=0&&!e||n<0&&e)||i&&!e||r?"top":"bottom"}const VI=yDe({},Ts,{correctCoordinates(t){var n=kRt(t.offset-t.width/2);this._options.rotated?(this.height=t.width,this.yCorrection=n,this.xCorrection=null):(this.width=t.width,this.xCorrection=n,this.yCorrection=null)},_calculateVisibility:function(t,n,e,i){var{minX:r,maxX:o,minY:a,maxY:s}=this._getVisibleArea();this.inVisibleArea=r<t+e&&o>t&&a<n+i&&s>n},_getGraphicBBox:function(t){var n={x:this.x,y:this.y,width:this.width,height:this.height};if(t){var e="top"===t;this._options.rotated?(n.x=e?n.x+n.width:n.x,n.width=0):(n.y=e?n.y:n.y+n.height,n.height=0)}return n},_getLabelConnector:function(t){return this._getGraphicBBox(t)},_getLabelPosition:function(){var t=SDe(this);return this._options.rotated&&(t="top"===t?"right":"left"),t},_getLabelCoords:function(t){return 0===this.initialValue&&this.series.isFullStackedSeries()?this._getLabelCoordOfPosition(t,this._options.rotated?"right":"top"):"inside"===t.getLayoutOptions().position?this._getLabelCoordOfPosition(t,"inside"):Ts._getLabelCoords.call(this,t)},_drawLabel:function(){this._label.pointPosition="inside"!==this._label.getLayoutOptions().position&&SDe(this),Ts._drawLabel.call(this)},hideInsideLabel:function(t,n){var e=this._getGraphicBBox(),i=t.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(n.y<=e.y&&n.y+i.height>=e.y+e.height||n.x<=e.x&&n.x+i.width>=e.x+e.width)||n.y>e.y+e.height||n.y+i.height<e.y||n.x>e.x+e.width||n.x+i.width<e.x||(t.draw(!1),0))},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker(t,n,e){var i=this._getStyle(),r=this._options.cornerRadius,o=this._options.rotated,{x:a,y:s,width:l,height:u}=this.getMarkerCoords();e&&(o?(l=0,a=this.defaultX):(u=0,s=this.defaultY)),this.graphic=t.rect(a,s,l,u).attr({rx:r,ry:r}).smartAttr(i).data({"chart-data-point":this}).append(n)},_getSettingsForTracker:function(){var t=this.y,n=this.height,e=this.x,i=this.width;return this._options.rotated?1===i&&(i=9,e-=4):1===n&&(n=9,t-=4),{x:e,y:t,width:i,height:n}},getGraphicSettings:function(){var t=this.graphic;return{x:t.attr("x"),y:t.attr("y"),height:t.attr("height"),width:t.attr("width")}},_getEdgeTooltipParams(){var n,e,t=this.value>=0,i=this._getValTranslator().getBusinessRange().invert,{x:r,y:o,width:a,height:s}=this;return this._options.rotated?(e=o+s/2,n=i?t?r:r+a:t?r+a:r):(n=r+a/2,e=i?t?o+s:o:t?o:o+s),{x:n,y:e,offset:0}},getTooltipParams:function(t){if("edge"===t)return this._getEdgeTooltipParams();var n=this.getCenterCoord();return n.offset=0,n},getCenterCoord(){var{width:t,height:n,x:e,y:i}=this;return{x:e+t/2,y:i+n/2}},_truncateCoord:function(t,n){return null===t?t:t<n[0]?n[0]:t>n[1]?n[1]:t},_getErrorBarBaseEdgeLength(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(t){Ts._translateErrorBars.call(this),(this._errorBarPos<t[0]||this._errorBarPos>t[1])&&(this._errorBarPos=void 0)},_translate:function(){var t=this._options.rotated,n=t?"x":"y",e=t?"y":"x",i=t?"width":"height",r=t?"height":"width",o=this._getArgTranslator(),a=this._getValTranslator(),s=this.series.getArgumentAxis().getVisibleArea(),l=this.series.getValueAxis().getVisibleArea(),u=o.translate(this.argument),f=a.translate(this.value,1),S=a.translate(this.minValue,-1);this[e]=u=null===u?u:u+(this[e+"Correction"]||0),this["v"+n]=f,this["v"+e]=u+this[r]/2,f=this._truncateCoord(f,l),S=this._truncateCoord(S,l),this[i]=MRt(f-S),f=f<S?f:S,this._calculateVisibility(t?f:u,t?u:f,this.width,this.height),this[n]=null===f?f:f+(this[n+"Correction"]||0),this["min"+n.toUpperCase()]=null===S?S:S+(this[n+"Correction"]||0),this["default"+n.toUpperCase()]=a.translate("canvas_position_default"),this._translateErrorBars(s),this.inVisibleArea&&null!==this[e]&&(this[e]<s[0]&&(this[r]=this[r]-(s[0]-this[e]),this[e]=s[0]),this[e]+this[r]>s[1]&&(this[r]=s[1]-this[e]))},_updateMarker:function(t,n){this.graphic.smartAttr(yDe({},n,t?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var t=this.x,n=this.y,e=this.width,i=this.height,r=this.series.getArgumentAxis(),o=this._options.rotated;if(r.getAxisPosition){var a=r.getOptions(),s=Math.round(a.width/2),l=r.getAxisPosition();if(a.visible)if(o){var u=this.minX===this.defaultX&&this.minX===l-r.getAxisShift();t+=u?s:0,(e-=u?s:0)<0&&(e=0)}else(i-=this.minY===this.defaultY&&this.minY===l-r.getAxisShift()?s:0)<0&&(i=0)}return{x:t,y:n,width:e,height:i}},coordsIn:function(t,n){return t>=this.x&&t<=this.x+this.width&&n>=this.y&&n<=this.y+this.height}});var H$=se;const LRt=H$({},Ts,{correctCoordinates:function(t){this.bubbleSize=t/2},_drawMarker:function(t,n,e){var i=H$({translateX:this.x,translateY:this.y},this._getStyle());this.graphic=t.circle(0,0,e?0:this.bubbleSize).smartAttr(i).data({"chart-data-point":this}).append(n)},getTooltipParams:function(t){var n=this.graphic;if(n){var e=n.getBBox().height;return{x:this.x,y:this.y,offset:e<20||"edge"===t?e/2:0}}},_getLabelFormatObject:function(){var t=Ts._getLabelFormatObject.call(this);return t.size=this.initialSize,t},_updateData:function(t){Ts._updateData.call(this,t),this.size=this.initialSize=t.size},_getGraphicBBox:function(){return this._getSymbolBBox(this.x,this.y,this.bubbleSize)},_updateMarker:function(t,n){t||(n=H$({r:this.bubbleSize,translateX:this.x,translateY:this.y},n)),this.graphic.smartAttr(n)},_getFormatObject:function(t){var n=Ts._getFormatObject.call(this,t);return n.sizeText=t.formatValue(this.initialSize),n},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(t){return"inside"===t.getLayoutOptions().position?this._getLabelCoordOfPosition(t,"inside"):Ts._getLabelCoords.call(this,t)}});var DDe=se,nv=Math.round,BRt=Math.sqrt,NRt=Math.acos,VRt=180/Math.PI,HRt=Math.abs,zRt=Mp.radialLabelIndent;const iv=DDe({},Ts,{_updateData:function(t,n){Ts._updateData.call(this,t),(n||!Z(this._visible))&&(this._visible=!0),this.minValue=this.initialMinValue=this.originalMinValue=Z(t.minValue)?t.minValue:0},animate:function(t,n,e){this.graphic.animate({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},{delay:e,partitionDuration:n},t)},correctPosition:function(t){this.correctRadius(t),this.correctLabelRadius(t.radiusOuter+zRt),this.centerX=t.centerX,this.centerY=t.centerY},correctRadius:function(t){this.radiusInner=t.radiusInner,this.radiusOuter=t.radiusOuter},correctLabelRadius:function(t){this.radiusLabels=t},correctValue:function(t,n,e){this.value=(e||this.normalInitialValue)+t,this.minValue=t,this.percent=n,this._label.setDataField("percent",n)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var t=this._label.getBoundingRect(),n=this._getLabelCoords(this._label),e=this._getVisibleArea();return this._isLabelDrawingWithoutPoints?this._checkLabelPosition(n,t,e):this._getLabelExtraCoord(n,this._checkVerticalLabelPosition(n,t,e),t)},_getLabelPosition:function(t){return t.position},getAnnotationCoords:function(t){return this._getElementCoords("edge"!==t?"inside":"outside",this.radiusOuter,0)},_getElementCoords:function(t,n,e){var u,f,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0,width:0,height:0},r=this,o=Ll(r.middleAngle),a=r.radiusInner,s=r.radiusOuter,l="columns"===t;return"inside"===t?f=r.centerX+(u=a+(s-a)/2+e)*o.cos-i.width/2:(u=n+e,f=o.cos>.1||l&&o.cos>=0?r.centerX+u*o.cos:o.cos<-.1||l&&o.cos<0?r.centerX+u*o.cos-i.width:r.centerX+u*o.cos-i.width/2),{x:f,y:nv(r.centerY-u*o.sin-i.height/2)}},_getLabelCoords:function(t){var n=t.getBoundingRect(),e=t.getLayoutOptions(),i=this._getLabelPosition(e);return this._getElementCoords(i,this.radiusLabels,e.radialOffset,n)},_correctLabelCoord:function(t,n){var e=this._label,r=e.getBoundingRect().width,o=e.getLayoutOptions(),a=this._getVisibleArea(),s=a.maxX-r,l=a.minX,u=Bc(this.middleAngle),f=this.centerX,S=o.connectorOffset,T=t.x;return"columns"===o.position?t.x=T=u<=90||u>=270?s:l:"inside"!==o.position&&n&&(u<=90||u>=270?T-S<f&&(T=f+S):T+r+S>f&&(T=f-r-S),t.x=T),t},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(t){var n=this._label.getBoundingRect(),e=this._correctLabelCoord(n,t);e=this._checkHorizontalLabelPosition(e,n,this._getVisibleArea()),this._label.shift(nv(e.x),nv(n.y))},_checkVerticalLabelPosition:function(t,n,e){var r=t.y;return t.y+n.height>e.maxY?r=e.maxY-n.height:t.y<e.minY&&(r=e.minY),{x:t.x,y:r}},_getLabelExtraCoord:function(t,n,e){return t.y!==n.y?pbe({x:t.x,y:t.y,width:e.width,height:e.height},n.y-t.y,{x:this.centerX,y:this.centerY}):t},_checkHorizontalLabelPosition:function(t,n,e){var i=t.x;return t.x+n.width>e.maxX?i=e.maxX-n.width:t.x<e.minX&&(i=e.minX),{x:i,y:t.y}},applyWordWrap:function(t){var n=this._label,e=n.getBoundingRect(),i=this._getVisibleArea(),r=n.getLayoutOptions().position,o=e.width,a=!1;return"columns"===r&&this.series.index>0?o=i.maxX-this.centerX-this.radiusLabels:"inside"===r?o>i.maxX-i.minX&&(o=i.maxX-i.minX):t&&e.x<this.centerX&&e.width+e.x>this.centerX?o=Math.floor((i.maxX-i.minX)/2):e.x+o>i.maxX?o=i.maxX-e.x:e.x<i.minX&&(o=e.x+o-i.minX),o<e.width&&(a=n.fit(o)),a},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(t,n,e){return t=this._checkHorizontalLabelPosition(t,n,e),this._checkVerticalLabelPosition(t,n,e)},_getLabelConnector:function(){var t=this.radiusOuter,n=this._options.styles.normal,e=n["stroke-width"]/2,i=this.series.getOptions().containerBackgroundColor===n.stroke?nv(e):nv(-e),r=Ll(nv(this.middleAngle));return{x:nv(this.centerX+(t-i)*r.cos),y:nv(this.centerY-(t-i)*r.sin),angle:this.middleAngle}},_drawMarker:function(t,n,e,i){var r=this.radiusOuter,o=this.radiusInner,a=this.fromAngle,s=this.toAngle;e&&(o=r=0,i||(a=s=this.shiftedAngle)),this.graphic=t.arc(this.centerX,this.centerY,o,r,s,a).attr({"stroke-linejoin":"round"}).smartAttr(this._getStyle()).data({"chart-data-point":this}).sharp().append(n)},getTooltipParams:function(){var t=Ll(this.middleAngle),n=this.radiusInner,e=this.radiusOuter;return{x:this.centerX+(n+(e-n)/2)*t.cos,y:this.centerY-(n+(e-n)/2)*t.sin,offset:0}},_translate:function(){var t=this.shiftedAngle||0,n=this.value,e=this.minValue,i=this._getValTranslator();this.fromAngle=i.translate(e)+t,this.toAngle=i.translate(n)+t,this.middleAngle=i.translate((n-e)/2+e)+t,this.isVisible()||(this.middleAngle=this.toAngle=this.fromAngle=this.fromAngle||t)},getMarkerVisibility:function(){return!0},_updateMarker:function(t,n,e,i){t||(n=DDe({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},n)),this.graphic.smartAttr(n).sharp(),i&&i()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){this._visible&&(this._visible=!1,this.hideTooltip(),this._options.visibilityChanged())},show:function(){this._visible||(this._visible=!0,this._options.visibilityChanged())},setInvisibility:function(){this._label.draw(!1)},isVisible:function(){return this._visible},_getFormatObject:function(t){var n=Ts._getFormatObject.call(this,t),e=this.percent;return n.percent=e,n.percentText=t.formatValue(e,"percent"),n},getColor:function(){return this._styles.normal.fill},coordsIn:function(t,n){var s,e=t-this.centerX,i=n-this.centerY,r=BRt(e*e+i*i),o=this.fromAngle%360,a=this.toAngle%360;return!(r<this.radiusInner||r>this.radiusOuter||0===r)&&((s=NRt(e/r)*VRt*(i>0?-1:1))<0&&(s+=360),o===a&&HRt(this.toAngle-this.fromAngle)>1e-4||(o>=a?s<=o&&s>=a:!(s>=o&&s<=a)))}});var z$=se,j4=Math,uS=j4.abs,Ap=j4.min,HI=j4.max,URt=j4.round;const Gs=z$({},Ts,{deleteLabel:function(){this._topLabel.dispose(),this._topLabel=null,this._bottomLabel.dispose(),this._bottomLabel=null},hideMarker:function(t){var n=this.graphic,e=n&&n[t+"Marker"],i=this["_"+t+"Label"];e&&"hidden"!==e.attr("visibility")&&e.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var t=this.graphic,n=t&&t.topMarker,e=t&&t.bottomMarker;n&&n.attr("visibility")&&n.attr({visibility:null}),e&&e.attr("visibility")&&e.attr({visibility:null})},clearMarker:function(){var t=this.graphic,n=t&&t.topMarker,e=t&&t.bottomMarker,i=this._emptySettings;n&&n.attr(i),e&&e.attr(i)},_getLabelPosition:function(t){var e="inside"===this._options.label.position;return this._options.rotated?"top"===t^e?"right":"left":"top"===t^e?"top":"bottom"},_getLabelMinFormatObject:function(){return{index:0,argument:this.initialArgument,value:this.initialMinValue,seriesName:this.series.name,originalValue:this.originalMinValue,originalArgument:this.originalArgument,point:this}},_updateLabelData:function(){var t=this._getLabelFormatObject();t.index=1,this._topLabel.setData(t),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var t=this._options.label;(!this._topLabel||!this._bottomLabel)&&this._createLabel(),this._topLabel.setOptions(t),this._bottomLabel.setOptions(t)},_createLabel:function(){var t={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new sS(t),this._bottomLabel=new sS(t)},_getGraphicBBox:function(t){var n=this._options,e=this._getImage(n.image),i=this._checkImage("top"===t?e.top:e.bottom),o=this._getPositionFromLocation(t);return n.visible?i?this._getImageBBox(o.x,o.y):this._getSymbolBBox(o.x,o.y,n.styles.normal.r):{x:o.x,y:o.y,width:0,height:0}},_getPositionFromLocation:function(t){var n,e,i="top"===t;return this._options.rotated?(n=i?HI(this.x,this.minX):Ap(this.x,this.minX),e=this.y):(n=this.x,e=i?Ap(this.y,this.minY):HI(this.y,this.minY)),{x:n,y:e}},_checkOverlay:function(t,n,e){return t<n+e},_getOverlayCorrections:function(t,n){var e=this._options.rotated,i=e?"x":"y",r=e?"width":"height",o=this.series.getValueAxis().getVisibleArea(),a=o[0],s=o[1],l=URt((t[i]+t[r]-n[i])/2),u=t[i]-l,f=n[i]+l;return u<a?(u+=l=a-u,f+=l):f+n[r]>s&&(u+=l=s-f-n[r],f+=l),{coord1:u,coord2:f}},_checkLabelsOverlay:function(t){var n=this._topLabel.getBoundingRect(),e=this._bottomLabel.getBoundingRect(),i={};this._options.rotated?"top"===t?this._checkOverlay(n.x,e.x,e.width)&&(i=this._getOverlayCorrections(e,n),this._topLabel.shift(i.coord2,n.y),this._bottomLabel.shift(i.coord1,e.y)):this._checkOverlay(e.x,n.x,n.width)&&(i=this._getOverlayCorrections(n,e),this._topLabel.shift(i.coord1,n.y),this._bottomLabel.shift(i.coord2,e.y)):"top"===t?this._checkOverlay(e.y,n.y,n.height)&&(i=this._getOverlayCorrections(n,e),this._topLabel.shift(n.x,i.coord1),this._bottomLabel.shift(e.x,i.coord2)):this._checkOverlay(n.y,e.y,e.height)&&(i=this._getOverlayCorrections(e,n),this._topLabel.shift(n.x,i.coord2),this._bottomLabel.shift(e.x,i.coord1))},_drawLabel:function(){var t=[],n=this._options.rotated?this.x>=this.minX:this.y<this.minY,e=this._getCustomLabelVisibility(),i=this._topLabel,r=this._bottomLabel;i.pointPosition=n?"top":"bottom",r.pointPosition=n?"bottom":"top",(this.series.getLabelVisibility()||e)&&this.hasValue()&&!1!==e?(!1!==this.visibleTopMarker&&t.push(i),!1!==this.visibleBottomMarker&&t.push(r),we(t,function(o,a){a.draw(!0)}),this._checkLabelsOverlay(this._topLabel.pointPosition)):(i.draw(!1),r.draw(!1))},_getImage:function(t){var n={};return Z(t)&&("string"==typeof t?n.top=n.bottom=t:(n.top={url:"string"==typeof t.url?t.url:t.url&&t.url.rangeMaxPoint,width:"number"==typeof t.width?t.width:t.width&&t.width.rangeMaxPoint,height:"number"==typeof t.height?t.height:t.height&&t.height.rangeMaxPoint},n.bottom={url:"string"==typeof t.url?t.url:t.url&&t.url.rangeMinPoint,width:"number"==typeof t.width?t.width:t.width&&t.width.rangeMinPoint,height:"number"==typeof t.height?t.height:t.height&&t.height.rangeMinPoint})),n},_checkSymbol:function(t,n){var e=t.symbol,i=n.symbol,r="circle"===e&&"circle"!==i||"circle"!==e&&"circle"===i,o=this._getImage(t.image),a=this._getImage(n.image),s=this._checkImage(o.top)!==this._checkImage(a.top),l=this._checkImage(o.bottom)!==this._checkImage(a.bottom);return r||s||l},_getSettingsForTwoMarkers:function(t){var n=this._options,e={},i=n.rotated?Ap(this.x,this.minX):this.x,r=n.rotated?this.y:Ap(this.y,this.minY),o=t.r,a=this._populatePointShape(n.symbol,o);return e.top=z$({translateX:i+this.width,translateY:r,r:o},t),e.bottom=z$({translateX:i,translateY:r+this.height,r:o},t),a&&(e.top.points=e.bottom.points=a),e},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(t,n,e,i){var r=this.graphic;r[n]?this._updateOneMarker(n,i):r[n]=this._createMarker(t,r,e,i)},_drawMarker:function(t,n,e,i,r){var o=this._getSettingsForTwoMarkers(r||this._getStyle()),a=this._getImage(this._options.image);this._checkImage(a.top)&&(o.top=this._getImageSettings(o.top,a.top)),this._checkImage(a.bottom)&&(o.bottom=this._getImageSettings(o.bottom,a.bottom)),this.graphic=this.graphic||t.g().append(n),this.visibleTopMarker&&this._drawOneMarker(t,"topMarker",a.top,o.top),this.visibleBottomMarker&&this._drawOneMarker(t,"bottomMarker",a.bottom,o.bottom)},_getSettingsForTracker:function(t){var n=this._options.rotated;return{translateX:n?Ap(this.x,this.minX)-t:this.x-t,translateY:n?this.y-t:Ap(this.y,this.minY)-t,width:this.width+2*t,height:this.height+2*t}},isInVisibleArea:function(){var r,o,a,t=this._options.rotated,n=t?this.y:this.x,e=t?HI(this.minX,this.x):HI(this.minY,this.y),i=t?Ap(this.minX,this.x):Ap(this.minY,this.y),s=!0,l=this.series.getArgumentAxis().getVisibleArea(),u=this.series.getValueAxis().getVisibleArea();return l[1]<n||l[0]>n||u[0]>i&&u[0]>e||u[1]<i&&u[1]<e?o=a=s=!1:(o=u[0]<=i&&u[1]>i,a=u[0]<e&&u[1]>=e,t&&(r=o,o=a,a=r)),this.visibleTopMarker=o,this.visibleBottomMarker=a,s},getTooltipParams:function(){var t,n,e=this._options.rotated,i=e?Ap(this.x,this.minX):Ap(this.y,this.minY),r=e?"width":"height",o=this._getVisibleArea(),s=e?o.maxX:o.maxY,l=HI(e?o.minX:o.minY,i),u=Ap(s,i+this[r]);return e?(n=this.y,t=l+(u-l)/2):(t=this.x,n=l+(u-l)/2),{x:t,y:n,offset:0}},_translate:function(){var t=this._options.rotated;Ts._translate.call(this),this.height=t?0:uS(this.minY-this.y),this.width=t?uS(this.x-this.minX):0},hasCoords:function(){return Ts.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(t){Ts._updateData.call(this,t),this.minValue=this.initialMinValue=this.originalMinValue=t.minValue},_getImageSettings:function(t,n){return{href:n.url||n.toString(),width:n.width||20,height:n.height||20,translateX:t.translateX,translateY:t.translateY}},getCrosshairData:function(t,n){var i=this.minX,r=this.minY,o=this.vx,a=this.vy,s=this.value,l=this.minValue,u=this.argument,f={axis:this.series.axis,x:o,y:a,yValue:s,xValue:u};return this._options.rotated?(f.yValue=u,uS(o-t)<uS(i-t)?f.xValue=s:(f.x=i,f.xValue=l)):uS(a-n)>=uS(r-n)&&(f.y=r,f.yValue=l),f},_updateOneMarker:function(t,n){this.graphic&&this.graphic[t]&&this.graphic[t].attr(n)},_updateMarker:function(t,n){this._drawMarker(void 0,void 0,!1,!1,n)},_getFormatObject:function(t){var n=this.initialMinValue,e=this.initialValue,i=this.initialArgument,r=t.formatValue(n),o=t.formatValue(e);return{argument:i,argumentText:t.formatValue(i,"argument"),valueText:r+" - "+o,rangeValue1Text:r,rangeValue2Text:o,rangeValue1:n,rangeValue2:e,seriesName:this.series.name,point:this,originalMinValue:this.originalMinValue,originalValue:this.originalValue,originalArgument:this.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:Be,coordsIn:function(t,n){var e=this._storeTrackerR(),i=t>=this.x-e&&t<=this.x+e,r=n>=this.y-e&&n<=this.y+e;return this._options.rotated?r&&(i||t>=this.minX-e&&t<=this.minX+e):i&&(r||n>=this.minY-e&&n<=this.minY+e)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValue<this.value?this.minValue:this.value:this.minValue}}),KRt=se({},VI,{deleteLabel:Gs.deleteLabel,_getFormatObject:Gs._getFormatObject,clearVisibility:function(){var t=this.graphic;t&&t.attr("visibility")&&t.attr({visibility:null})},setInvisibility:function(){var t=this.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),this._topLabel.draw(!1),this._bottomLabel.draw(!1)},getTooltipParams:function(t){var e,i,n="edge"===t;return this._options.rotated?(e=n?this.x+this.width:this.x+this.width/2,i=this.y+this.height/2):(e=this.x+this.width/2,i=n?this.y:this.y+this.height/2),{x:e,y:i,offset:0}},_translate:function(){VI._translate.call(this),this._options.rotated?this.width=this.width||1:this.height=this.height||1},hasCoords:Gs.hasCoords,_updateData:Gs._updateData,_getLabelPosition:Gs._getLabelPosition,_getLabelMinFormatObject:Gs._getLabelMinFormatObject,_updateLabelData:Gs._updateLabelData,_updateLabelOptions:Gs._updateLabelOptions,getCrosshairData:Gs.getCrosshairData,_createLabel:Gs._createLabel,_checkOverlay:Gs._checkOverlay,_checkLabelsOverlay:Gs._checkLabelsOverlay,_getOverlayCorrections:Gs._getOverlayCorrections,_drawLabel:Gs._drawLabel,_getLabelCoords:Gs._getLabelCoords,getLabel:Gs.getLabel,getLabels:Gs.getLabels,getBoundingRect:Be,getMinValue:Gs.getMinValue,getMaxValue:Gs.getMaxValue});var K4=Math,Fp=K4.abs,KC=K4.min,$4=K4.max,EDe=K4.round;const ODe=se({},VI,{_calculateVisibility:Ts._calculateVisibility,_getContinuousPoints:function(t,n){var e=this.x,i=this._options.rotated?function(u,f){return[f,u]}:function(u,f){return[u,f]},r=this.width,o=this.highY,a=Fp(o-t)<Fp(o-n)?t:n,s=a===n?t:n;return s===a?[].concat(i(e,this.highY)).concat(i(e,this.lowY)).concat(i(e,this.closeY)).concat(i(e-r/2,this.closeY)).concat(i(e+r/2,this.closeY)).concat(i(e,this.closeY)):[].concat(i(e,this.highY)).concat(i(e,a)).concat(i(e+r/2,a)).concat(i(e+r/2,s)).concat(i(e,s)).concat(i(e,this.lowY)).concat(i(e,s)).concat(i(e-r/2,s)).concat(i(e-r/2,a)).concat(i(e,a))},_getCrockPoints:function(t){var n=this.x,e=this._options.rotated?function(i,r){return[r,i]}:function(i,r){return[i,r]};return[].concat(e(n,this.highY)).concat(e(n,this.lowY)).concat(e(n,t)).concat(e(n-this.width/2,t)).concat(e(n+this.width/2,t)).concat(e(n,t))},_getPoints:function(){var n=this.closeY,e=this.openY;return null!==n&&null!==e?this._getContinuousPoints(e,n):e===n?[this.x,this.highY,this.x,this.lowY]:this._getCrockPoints(null!==e?e:n)},getColor:function(){return this._isReduction?this._options.reduction.color:this._styles.normal.stroke||this.series.getColor()},_drawMarkerInGroup:function(t,n,e){this.graphic=e.path(this._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(n).data({"chart-data-point":this}).sharp().append(t)},_fillStyle:function(){var t=this._options.styles;this._styles=this._isReduction&&this._isPositive?t.reductionPositive:this._isReduction?t.reduction:this._isPositive?t.positive:t},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(t){var n=this._getMinTrackerWidth(),e=t.width;this.width=(e=e<n?n:e>10?10:e)+e%2,this.xCorrection=t.offset},_getMarkerGroup:function(t){return this._isReduction&&this._isPositive?t.reductionPositiveMarkersGroup:this._isReduction?t.reductionMarkersGroup:this._isPositive?t.defaultPositiveMarkersGroup:t.defaultMarkersGroup},_drawMarker:function(t,n){this._drawMarkerInGroup(this._getMarkerGroup(n),this._getStyle(),t)},_getSettingsForTracker:function(){var i,r,o,a,t=this.highY,n=this.lowY,e=this._options.rotated;return t===n&&(t=e?t+2:t-2,n=e?n-2:n+2),e?(i=KC(n,t),r=this.x-this.width/2,o=Fp(n-t),a=this.width):(i=this.x-this.width/2,r=KC(n,t),o=this.width,a=Fp(n-t)),{x:i,y:r,width:o,height:a}},_getGraphicBBox:function(t){var n=this._options.rotated,e=this.x,i=this.width,r=this.lowY,o=this.highY;if(t){var a=this.series.getValueAxis().getVisibleArea();o=this._truncateCoord(o,a),r=this._truncateCoord(r,a)}var s={x:n?r:e-EDe(i/2),y:n?e-EDe(i/2):o,width:n?o-r:i,height:n?i:r-o};if(t){var l="top"===t;this._options.rotated?(s.x=l?s.x+s.width:s.x,s.width=0):(s.y=l?s.y:s.y+s.height,s.height=0)}return s},getTooltipParams:function(t){if(this.graphic){var n=KC(this.lowY,this.highY),e=$4(this.lowY,this.highY),i=this._getVisibleArea(),r=this._options.rotated,a=r?i.maxX:i.maxY,s=$4(r?i.minX:i.minY,n),l=KC(a,e),u=this.getCenterCoord();return"edge"===t&&(u[r?"x":"y"]=r?l:s),u.offset=0,u}},getCenterCoord(){if(this.graphic){var t,n,e=KC(this.lowY,this.highY),i=$4(this.lowY,this.highY),r=this._getVisibleArea(),o=this._options.rotated,s=o?r.maxX:r.maxY,l=$4(o?r.minX:r.minY,e),f=l+(KC(s,i)-l)/2;return o?(n=this.x,t=f):(t=this.x,n=f),{x:t,y:n}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var t=this._options.rotated,n=this._getValTranslator(),e=this._getArgTranslator().translate(this.argument);this.vx=this.vy=this.x=null===e?e:e+(this.xCorrection||0),this.openY=null!==this.openValue?n.translate(this.openValue):null,this.highY=n.translate(this.highValue),this.lowY=n.translate(this.lowValue),this.closeY=null!==this.closeValue?n.translate(this.closeValue):null;var i=KC(this.lowY,this.highY)+Fp(this.lowY-this.highY)/2;this._calculateVisibility(t?i:this.x,t?this.x:i)},getCrosshairData:function(t,n){var r,a,e=this._options.rotated,i=e?t:n,o=this.argument,s="low";return Fp(this.lowY-i)<Fp(this.closeY-i)?r=this.lowY:(r=this.closeY,s="close"),Fp(r-i)>=Fp(this.openY-i)&&(r=this.openY,s="open"),Fp(r-i)>=Fp(this.highY-i)&&(r=this.highY,s="high"),(a=e?{y:this.vy,x:r,xValue:this[s+"Value"],yValue:o}:{x:this.vx,y:r,xValue:o,yValue:this[s+"Value"]}).axis=this.series.axis,a},_updateData:function(t){var n=this._label,e=this._options.reduction.color;this.value=this.initialValue=t.reductionValue,this.originalValue=t.value,this.lowValue=this.originalLowValue=t.lowValue,this.highValue=this.originalHighValue=t.highValue,this.openValue=this.originalOpenValue=t.openValue,this.closeValue=this.originalCloseValue=t.closeValue,this._isPositive=t.openValue<t.closeValue,this._isReduction=t.isReduction,this._isReduction&&n.setColor(e)},_updateMarker:function(t,n,e){var i=this.graphic;i.attr({points:this._getPoints()}).smartAttr(n).sharp(),e&&i.append(this._getMarkerGroup(e))},_getLabelFormatObject:function(){return{openValue:this.openValue,highValue:this.highValue,lowValue:this.lowValue,closeValue:this.closeValue,reductionValue:this.initialValue,argument:this.initialArgument,value:this.initialValue,seriesName:this.series.name,originalOpenValue:this.originalOpenValue,originalCloseValue:this.originalCloseValue,originalLowValue:this.originalLowValue,originalHighValue:this.originalHighValue,originalArgument:this.originalArgument,point:this}},_getFormatObject:function(t){var n=t.formatValue(this.highValue),e=t.formatValue(this.openValue),i=t.formatValue(this.closeValue),r=t.formatValue(this.lowValue),a=Ts._getFormatObject.call(this,t);return se({},a,{valueText:"h: "+n+(""!==e?" o: "+e:"")+(""!==i?" c: "+i:"")+" l: "+r,highValueText:n,openValueText:e,closeValueText:i,lowValueText:r})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}});var TDe=di;const qRt=se({},ODe,{_getPoints:function(){var t=this._options.rotated?function(a,s){return[s,a]}:function(a,s){return[a,s]},n=TDe(this.openY),e=TDe(this.closeY),i=this.x,r=this.width,o=[].concat(t(i,this.highY));return n&&(o=o.concat(t(i,this.openY))),n&&(o=o.concat(t(i-r/2,this.openY))),n&&(o=o.concat(t(i,this.openY))),e&&(o=o.concat(t(i,this.closeY))),e&&(o=o.concat(t(i+r/2,this.closeY))),e&&(o=o.concat(t(i,this.closeY))),o.concat(t(i,this.lowY))},_drawMarkerInGroup:function(t,n,e){this.graphic=e.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(n).data({"chart-data-point":this}).sharp().append(t)},_getMinTrackerWidth:function(){var t=2+this._styles.normal["stroke-width"];return t+t%2}});var IDe=se,Y4=Math,YRt=Y4.max,kDe=Mp.radialLabelIndent,MDe="canvas_position_start",ADe="canvas_position_end",FDe="canvas_position_default",dS=IDe({},Ts,{_getLabelCoords:iv._getLabelCoords,_getElementCoords:iv._getElementCoords,_moveLabelOnCanvas:function(t,n,e){var i=t.x,r=t.y;return n.minX>i&&(i=n.minX),n.maxX<i+e.width&&(i=n.maxX-e.width),n.minY>r&&(r=n.minY),n.maxY<r+e.height&&(r=n.maxY-e.height),{x:i,y:r}},_getLabelPosition:function(){return"outside"},_getCoords:function(t,n){var e=this.series.getValueAxis(),i=e.getAngles()[0],r=this._getArgTranslator().translate(t),o=this._getValTranslator().translate(n),a=iI(e.getCenter(),e.getAngles()[0],r,o);return a.angle=r+i-90,a.radius=o,a},_translate(){var t=this.series.getValueAxis().getCenter(),n=this._getCoords(this.argument,this.value),e=this._getValTranslator(),i=e.isInverted()?e.translate(MDe):e.translate(ADe),r=Z(n.radius)&&n.radius>=0?n.radius:null;this.vx=Bc(n.angle),this.vy=this.radiusOuter=this.radiusLabels=r,this.radiusLabels+=kDe,this.radius=r,this.middleAngle=-n.angle,this.angle=-n.angle,this.x=n.x,this.y=n.y,this.defaultX=this.centerX=t.x,this.defaultY=this.centerY=t.y,this._translateErrorBars(),this.inVisibleArea=this._checkRadiusForVisibleArea(r,i)},_checkRadiusForVisibleArea:(t,n)=>Z(t)&&t<=n,_translateErrorBars:function(){var t=this._options.errorBars,n=this._getValTranslator();t&&(Z(this.lowError)&&(this._lowErrorCoord=this.centerY-n.translate(this.lowError)),Z(this.highError)&&(this._highErrorCoord=this.centerY-n.translate(this.highError)),this._errorBarPos=this.centerX,this._baseErrorBarPos="stdDeviation"===t.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:this.centerY-this.radius)},_getTranslates:function(t){return t?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var t=Ll(-this.angle),n=this._getValTranslator().translate(FDe);return{x:this.defaultX+n*t.cos,y:this.defaultY+n*t.sin}},_addLabelAlignmentAndOffset:function(t,n){return n},_checkLabelPosition:function(t,n){var e=this._getVisibleArea(),i=this._getGraphicBBox();return this._isPointInVisibleArea(e,i)&&(n=this._moveLabelOnCanvas(n,e,t.getBoundingRect())),n},_getErrorBarSettings:function(t,n){var e=Ts._getErrorBarSettings.call(this,t,n);return e.rotate=90-this.angle,e.rotateX=this.centerX,e.rotateY=this.centerY,e},getCoords:function(t){return t?this.getDefaultCoords():{x:this.x,y:this.y}}}),XRt=IDe({},VI,{_translateErrorBars:dS._translateErrorBars,_getErrorBarSettings:dS._getErrorBarSettings,_moveLabelOnCanvas:dS._moveLabelOnCanvas,_getLabelCoords:iv._getLabelCoords,_getElementCoords:iv._getElementCoords,_getLabelConnector:iv._getLabelConnector,getTooltipParams:iv.getTooltipParams,_getLabelPosition:iv._getLabelPosition,_getCoords:dS._getCoords,_translate(){var t=this._getValTranslator(),n=t.getBusinessRange(),e=t.isInverted()?t.translate(MDe):t.translate(ADe);this.radiusInner=t.translate(this.minValue),dS._translate.call(this),null===this.radiusInner?this.radiusInner=this.radius=e:null===this.radius?this.radius=this.value>=n.minVisible?e:0:this.radius>e&&(this.radius=e),this.radiusOuter=this.radiusLabels=YRt(this.radiusInner,this.radius),this.radiusLabels+=kDe,this.radiusInner=this.defaultRadius=Y4.min(this.radiusInner,this.radius),this.middleAngle=this.angle=-Bc(this.middleAngleCorrection-this.angle)},_checkRadiusForVisibleArea(t){return Z(t)||this._getValTranslator().translate(this.minValue)>0},_getErrorBarBaseEdgeLength(){var t=this.getMarkerCoords();return Y4.PI*t.outerRadius*Y4.abs(t.startAngle-t.endAngle)/180},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(t,n,e){var i=this._getStyle(),r=this.getMarkerCoords(),o=r.innerRadius,a=r.outerRadius,s=this._getCoords(this.argument,FDe),l=r.x,u=r.y;e&&(o=0,a=0,l=s.x,u=s.y),this.graphic=t.arc(l,u,o,a,r.startAngle,r.endAngle).attr(i).data({"chart-data-point":this}).append(n)},_checkLabelPosition:function(t,n){var e=this._getVisibleArea(),i=Ll(this.middleAngle),r=this.centerX+this.defaultRadius*i.cos,o=this.centerY-this.defaultRadius*i.sin;return r>e.minX&&r<e.maxX&&o>e.minY&&o<e.maxY&&(n=this._moveLabelOnCanvas(n,e,t.getBoundingRect())),n},_addLabelAlignmentAndOffset:function(t,n){return n},correctCoordinates:function(t){this.middleAngleCorrection=t.offset,this.interval=t.width},coordsIn:function(t,n){var e=Sj(this.series.getValueAxis().getCenter(),t,n),i=this.getMarkerCoords();return e.r>=i.innerRadius&&e.r<=i.outerRadius&&(i.startAngle<i.endAngle?-e.phi>=i.startAngle&&-e.phi<=i.endAngle:-e.phi<=i.startAngle&&-e.phi>=i.endAngle)}}),Nh={},JRt=se,cS=Mp.states,kd="symbolPoint",U$="polarSymbolPoint",W$="barPoint",PDe="polarBarPoint",G$="piePoint",j$=cS.selectedMark,K$=cS.hoverMark,RDe=cS.normalMark,$$=cS.hover,QRt=cS.normal,Z4=cS.selection,LDe={chart:{scatter:kd,line:kd,spline:kd,stepline:kd,stackedline:kd,fullstackedline:kd,stackedspline:kd,fullstackedspline:kd,stackedsplinearea:kd,fullstackedsplinearea:kd,area:kd,splinearea:kd,steparea:kd,stackedarea:kd,fullstackedarea:kd,rangearea:"rangeSymbolPoint",bar:W$,stackedbar:W$,fullstackedbar:W$,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:G$,doughnut:G$,donut:G$},polar:{scatter:U$,line:U$,area:U$,bar:PDe,stackedbar:PDe}};function BDe(t){return"none"===Ri(t)}function q$(t,n,e){this.fullState=RDe,this.series=t,this.update(n,e),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}Nh.symbolPoint=Ts,Nh.barPoint=VI,Nh.bubblePoint=LRt,Nh.piePoint=iv,Nh.rangeSymbolPoint=Gs,Nh.rangeBarPoint=KRt,Nh.candlestickPoint=ODe,Nh.stockPoint=qRt,Nh.polarSymbolPoint=dS,Nh.polarBarPoint=XRt,q$.prototype={constructor:q$,getColor:function(){return!this.hasValue()&&!this._styles.usePointCustomOptions&&this.series.customizePoint(this,this._dataItem),this._styles.normal.fill||this.series.getColor()},_getStyle:function(){return this._styles[this._currentStyle||"normal"]},update:function(t,n){this.updateOptions(n),this.updateData(t)},updateData:function(t){var n=this.argument!==t.argument;this.argument=this.initialArgument=this.originalArgument=t.argument,this.tag=t.tag,this.index=t.index,this._dataItem=t,this.data=t.data,this.lowError=t.lowError,this.highError=t.highError,this.aggregationInfo=t.aggregationInfo,this._updateData(t,n),!this.hasValue()&&this.setInvisibility(),this._fillStyle(),this._updateLabelData()},deleteMarker:function(){this.graphic&&this.graphic.dispose(),this.graphic=null},draw:function(t,n,e,i){return(this._needDeletingOnDraw||this.series.autoHidePointMarkers&&!this.isSelected())&&(this.deleteMarker(),this._needDeletingOnDraw=!1),this._needClearingOnDraw&&(this.clearMarker(),this._needClearingOnDraw=!1),this._hasGraphic()?this._updateMarker(e,this._getStyle(),n.markers):this.getMarkerVisibility()&&!this.series.autoHidePointMarkers&&this._drawMarker(t,n.markers,e,i),this._drawLabel(),this._drawErrorBar(t,n.errorBars,e),this},_getViewStyle:function(){var t=RDe,n=this.fullState,e=[QRt,$$,Z4,Z4];return this._viewCounters.hover&&(t|=K$),this._viewCounters.selection&&(t|=j$),BDe(this.getOptions().selectionMode)&&(n&=~j$),BDe(this.getOptions().hoverMode)&&(n&=~K$),e[t|=n]},applyView:function(t){var n=this._getViewStyle();this._currentStyle=n,!this.graphic&&this.getMarkerVisibility()&&this.series.autoHidePointMarkers&&(n===Z4||n===$$)&&this._drawMarker(this.series.getRenderer(),this.series.getMarkersGroup()),this.graphic&&(this.series.autoHidePointMarkers&&n!==Z4&&n!==$$?this.deleteMarker():("normal"===n?this.clearMarker():this.graphic.toForeground(),this._updateMarker(!0,this._styles[n],void 0,t)))},setView:function(t){this._viewCounters[t]++,this.applyView()},resetView:function(t){var n=this._viewCounters;--n[t],n[t]<0&&(n[t]=0),this.applyView()},releaseHoverState:function(){this.graphic&&!this.isSelected()&&this.graphic.toBackground()},select:function(){this.series.selectPoint(this)},clearSelection:function(){this.series.deselectPoint(this)},hover:function(){this.series.hoverPoint(this)},clearHover:function(){this.series.clearPointHover()},showTooltip:function(){this.series.showPointTooltip(this)},hideTooltip:function(){this.series.hidePointTooltip(this)},_checkLabelsChanging:function(t,n){var e=~n.indexOf("range"),i=~t.indexOf("range");return i&&!e||!i&&e},updateOptions:function(t){if(t){var n=this._options,i=n&&n.type,r=t.type,o=LDe[t.widgetType][r];i!==r?(this._needDeletingOnDraw=!0,this._needClearingOnDraw=!1,i&&(this._checkLabelsChanging(i,r)&&this.deleteLabel(),this._resetType(Nh[LDe[i]])),this._setType(Nh[o])):(this._needDeletingOnDraw=this._checkSymbol(n,t),this._needClearingOnDraw=this._checkCustomize(n,t)),this._options=t,this._fillStyle(),this._updateLabelOptions(o)}},translate:function(){this.hasValue()&&(this._translate(),this.translated=!0)},_checkCustomize:function(t,n){return t.styles.usePointCustomOptions&&!n.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(t){for(var n in t)delete this[n]},_setType:function(t){for(var n in t)this[n]=t[n]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&j$)},isHovered:function(){return!!(this.fullState&K$)},getOptions:function(){return this._options},animate:function(t,n,e){this.graphic?this.graphic.animate(n,{partitionDuration:e},t):t&&t()},getCoords:function(t){return t?this._options.rotated?{x:this.minX-(this.x-this.minX?0:1),y:this.y}:{x:this.x,y:this.minY+(this.y-this.minY?0:1)}:{x:this.x,y:this.y}},getDefaultCoords:function(){return this._options.rotated?{x:this.defaultX,y:this.y}:{x:this.x,y:this.defaultY}},setDefaultCoords(){var t=this.getDefaultCoords();this.x=t.x,this.y=t.y},_getVisibleArea:function(){return this.series.getVisibleArea()},_getArgTranslator:function(){return this.series.getArgumentAxis().getTranslator()},_getValTranslator:function(){return this.series.getValueAxis().getTranslator()},isArgumentCorrect(){return this.series._argumentChecker(this.argument)},isValueCorrect(){var t=this.series._valueChecker;return t(this.getMinValue())&&t(this.getMaxValue())},hasValue:function(){return null!==this.value&&null!==this.minValue&&this.isArgumentCorrect()&&this.isValueCorrect()},hasCoords:Be,correctPosition:Be,correctRadius:Be,correctLabelRadius:Be,getCrosshairData:Be,getPointRadius:Be,_populatePointShape:Be,_checkSymbol:Be,getMarkerCoords:Be,hide:Be,show:Be,hideMarker:Be,setInvisibility:Be,clearVisibility:Be,isVisible:Be,resetCorrection:Be,correctValue:Be,resetValue:Be,setPercentValue:Be,correctCoordinates:Be,coordsIn:Be,getTooltipParams:Be,applyWordWrap:Be,setLabelTrackerData:Be,updateLabelCoord:Be,drawLabel:Be,correctLabelPosition:Be,getMinValue:Be,getMaxValue:Be,_drawErrorBar:Be,getMarkerVisibility:Be,dispose:function(){this.deleteMarker(),this.deleteLabel(),this._errorBar&&this._errorBar.dispose(),this._options=this._styles=this.series=this._errorBar=null},getTooltipFormatObject:function(t,n){var e=this._getFormatObject(t),i=[],r=[];n&&(n.forEach(l=>{if(l.isVisible()){var u=l._getFormatObject(t);r.push(u),i.push(u.seriesName+": "+u.valueText)}}),JRt(e,{points:r,valueText:i.join("\n"),stackName:this.series.getStackName()||null}));var o=this.aggregationInfo;if(o){var s=this.series.getArgumentAxis().formatRange(o.intervalStart,o.intervalEnd,o.aggregationInterval,t.getOptions().argumentFormat);s&&(e.valueText+="\n".concat(s))}return e},setHole:function(t,n){var e=isFinite(this.minValue)?this.minValue:0;Z(t)&&("left"===n?(this.leftHole=this.value-t,this.minLeftHole=e-t):(this.rightHole=this.value-t,this.minRightHole=e-t))},resetHoles:function(){this.leftHole=null,this.minLeftHole=null,this.rightHole=null,this.minRightHole=null},getLabel:function(){return this._label},getLabels:function(){return[this._label]},getCenterCoord(){return{x:this.x,y:this.y}}};var X4="discrete",{abs:eLt,floor:tLt,ceil:nLt,min:NDe}=Math;function VDe(t,n,e){t.min=t.min<n?t.min:n,t.max=t.max>e?t.max:e}function HDe(t,n){if("logarithmic"!==t)return null;var e=n.getOptions().logarithmBase;return i=>{var r=Nm(eLt(i),e);return(r<0?tLt:nLt)(r)}}function Y$(t,n,e){var i=VDe;return t===X4?i=function(r,o,a){o!==a&&r.categories.push(a),r.categories.push(o)}:n&&(i=function(r,o){var a=n.calculateInterval(o,r.prevValue),s=r.interval;r.interval=(s<a?s:a)||s,r.prevValue=o,VDe(r,o,o)}),e?(r,o,a)=>{var s=[];i(r,o,a),0!==o&&s.push(e(o)),0!==a&&s.push(e(a));var l=NDe.apply(null,s);r.linearThreshold=r.linearThreshold<l?r.linearThreshold:l}:i}function J4(t,n,e){var i={axisType:t,dataType:n};return t===X4?i.categories=[]:(i.min=Jn(e)?e.min:e,i.max=Jn(e)?e.max:e),i}function Z$(t){return t.categories&&(t.categories=Dj(t.categories)),t}function rLt(t,n,e,i,r){var o=function iLt(t,n,e,i){if(n&&Z(n.value)){var r=t.value,a=t.argument,l=(e-a)*(n.value-r)/(n.argument-a)+r.valueOf();return"datetime"===i.dataType?new Date(l):l}return t.value}(e,i,r,n);t(n,o,o)}function zDe(t){return t.type.toLowerCase().indexOf("line")>=0||t.type.toLowerCase().indexOf("area")>=0}function UDe(t){var n=Y$(t.valueAxisType),e=t.getArgumentAxis(),i=e&&t.getArgumentAxis().visualRange()||{},r=zDe(t)?rLt:Be;if(e&&e.getMarginOptions().checkInterval){var o=t.getArgumentAxis().getTranslator().getBusinessRange(),a=Oj(o,!1),s=o.interval;isFinite(s)&&Z(i.startValue)&&Z(i.endValue)&&(i.startValue=a(i.startValue,s,-1),i.endValue=a(i.endValue,s))}var l=Q4(i);return function(u,f,S,T){var R=f.argument;return f.hasValue()&&(l(R)?(u.startCalc||(u.startCalc=!0,r(n,u,f,T[S-1],i.startValue)),n(u,f.getMinValue(),f.getMaxValue())):!i.categories&&Z(i.startValue)&&R>i.startValue&&(u.startCalc||r(n,u,f,T[S-1],i.startValue),u.endCalc=!0,r(n,u,f,T[S-1],i.endValue))),u}}function Q4(t){if(t.categories){var n=t.categories.reduce((e,i)=>(e[i.valueOf()]=!0,e),{});return e=>Z(e)&&n[e.valueOf()]}return Z(t.startValue)||Z(t.endValue)?Z(t.endValue)?Z(t.startValue)?e=>e>=t.startValue&&e<=t.endValue:e=>e<=t.endValue:e=>e>=t.startValue:()=>!0}const rv={getViewPortFilter:Q4,getArgumentRange:function(t){var n=t._data||[],e={};if(n.length)if(t.argumentAxisType===X4)e={categories:n.map(a=>a.argument)};else{var i;if(n.length>1){var r=t.getArgumentAxis().calculateInterval(n[0].argument,n[1].argument),o=t.getArgumentAxis().calculateInterval(n[n.length-1].argument,n[n.length-2].argument);i=NDe(r,o)}e={min:n[0].argument,max:n[n.length-1].argument,interval:i}}return Z$(e)},getRangeData:function(t){var n=t.getPoints(),e=t.useAggregation(),i=t.getArgumentAxis(),r=Y$(t.argumentAxisType,n.length>1&&i,HDe(t.argumentAxisType,i)),o=Y$(t.valueAxisType,null,HDe(t.valueAxisType,t.getValueAxis())),a=UDe(t),s=n.reduce(function(f,S,T,R){var L=S.argument;return S.isArgumentCorrect()&&(r(f.arg,L,L),S.hasValue()&&(o(f.val,S.getMinValue(),S.getMaxValue()),a(f.viewport,S,T,R))),f},{arg:J4(t.argumentAxisType,t.argumentType,null!=i&&i.aggregatedPointBetweenTicks()?void 0:t.getArgumentRangeInitialValue()),val:J4(t.valueAxisType,t.valueType,n.length?t.getValueRangeInitialValue():void 0),viewport:J4(t.valueAxisType,t.valueType,n.length?t.getValueRangeInitialValue():void 0)});if(e){var l=this.getArgumentRange(t);if(t.argumentAxisType===X4)s.arg=l;else{var u=i.getViewport();(Z(u.startValue)||Z(u.length))&&r(s.arg,l.min,l.min),(Z(u.endValue)||Z(u.length)&&Z(u.startValue))&&r(s.arg,l.max,l.max)}}return Z$(s.arg),Z$(s.val),s},getViewport:function(t){var e,n=t.getPoints(),i=UDe(t);return e=J4(t.valueAxisType,t.valueType,n.length?t.getValueRangeInitialValue():void 0),n.some(function(r,o){return i(e,r,o,n),e.endCalc}),e},getPointsInViewPort:function(t){var n=Q4(t.getArgumentAxis().visualRange()||{}),e=t.getValueAxis().visualRange()||{},i=Q4(e),r=t.getPoints(),o=function(s,l,u){var f=l.getMinValue(),S=l.getMaxValue(),T=i(f),R=i(S);T&&s.push(f),S!==f&&R&&s.push(S),u&&!T&&!R&&s.push(s.length?e.endValue:e.startValue)},a=zDe(t)?function(s,l,u){var f=l[u],S=l[u-1],T=l[u+1];T&&n(T.argument)&&o(s[1],f,!0),S&&n(S.argument)&&o(s[1],f,!0)}:Be;return r.reduce(function(s,l,u){return n(l.argument)?o(s[0],l):a(s,r,u),s},[[],[]])}};var nN,X$=Math,WDe=X$.abs,GDe=X$.sqrt,oLt=X$.max,eN="highError",tN="lowError",jDe="variance",KDe="stddeviation",$De="stderror",qDe="percent",YDe="fixed",ys={};function iN(t){var n=0;return we(t,function(e,i){n+=i}),n}function J$(t,n){return iN(ma(t,function(e){return(e-n)*(e-n)}))/t.length}function ZDe(t){return(n,e)=>{var{intervalStart:i,intervalEnd:r,data:o}=n,a=e.getValueFields()[0],s=o[0];return s=o.reduce((l,u)=>{var f=u[a];return null===l[a]&&(l=u),null!==f&&t(f,l[a])?u:l},s),se({},s,{[e.getArgumentField()]:e._getIntervalCenter(i,r)})}}var XDe={_defaultDuration:400,_defaultTrackerWidth:12,_applyStyle:Be,_updateOptions:Be,_parseStyle:Be,_prepareSegment:Be,_drawSegment:Be,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(t,n){return{fill:t.color||n,hatching:t.hatching?se({},t.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(t){t["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(t){t["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(t,n,e,i){var r=n[t]=n[t]||this._renderer.g();e&&r.append(e),i&&r.attr(i)},_applyClearingSettings:function(t){t.opacity=null,t.scale=null,this._options.rotated?t.translateX=null:t.translateY=null},_createGroups:function(){this._createGroup("_markersGroup",this,this._group),this._createGroup("_labelsGroup",this)},_setMarkerGroupSettings:function(){var t=this._createPointStyles(this._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,this._applyMarkerClipRect(t),this._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var t=this._options.valueErrorBar;return t&&this._errorBarsEnabled()&&"none"!==t.displayMode&&(function hLt(t){return[YDe,qDe,jDe,KDe,$De].includes(t)}(Ri(t.type))||Z(t.lowValueField)||Z(t.highValueField))},groupPointsByCoords(t){var n=[];return we(this.getVisiblePoints(),function(e,i){var r=parseInt(t?i.vy:i.vx);n[r]?Array.isArray(n[r])?n[r].push(i):n[r]=[n[r],i]:n[r]=i}),n},_createErrorBarGroup:function(t){var n=this._options.valueErrorBar;this.areErrorBarsVisible()&&this._createGroup("_errorBarGroup",this,this._group,{class:"dxc-error-bars",stroke:n.color,"stroke-width":n.lineWidth,opacity:t?.001:n.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":this._forceClipping?this._paneClipRectID:this._widePaneClipRectID})},_setGroupsSettings:function(t){this._setMarkerGroupSettings(),this._setLabelGroupSettings(t),this._createErrorBarGroup(t)},_getCreatingPointOptions:function(){var t,e,n=this._predefinedPointOptions;return n||(t=this._getPointOptions(),this._predefinedPointOptions=n=se(!0,{styles:{}},t),e=t.styles&&t.styles.normal||{},n.styles=n.styles||{},n.styles.normal={"stroke-width":e["stroke-width"],r:e.r,opacity:e.opacity}),n},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(t,n,e,i){var r=t.border||{},o=void 0!==t.size?t.size:i;return{fill:t.color||n,stroke:r.color||e,"stroke-width":r.visible?r.width:0,r:o/2+(r.visible&&0!==o&&~~(r.width/2)||0)}},_createPointStyles:function(t){var n=t.color||this._options.mainSeriesColor,e=this._options.containerBackgroundColor,i=this._parsePointStyle(t,n,n);return i.visibility=t.visible?"visible":"hidden",{normal:i,hover:this._parsePointStyle(t.hoverStyle,e,n,t.size),selection:this._parsePointStyle(t.selectionStyle,e,n,t.size)}},_checkData:function(t,n,e){return(e=e||{value:this.getValueFields()[0]}).argument=this.getArgumentField(),function fLt(t,n,e){var i=!0;for(var r in n){var o="argument"===r;if(o||"size"===r?!Z(t[r]):void 0===t[r]){var a=n[r];o||(e[a]=(e[a]||0)+1),i=!1}}return i}(t,e,n||{})&&t.value==t.value},getArgumentRangeInitialValue(){var n,e,t=this.getPoints();if(this.useAggregation()&&t.length)return{min:null===(n=t[0].aggregationInfo)||void 0===n?void 0:n.intervalStart,max:null===(e=t[t.length-1].aggregationInfo)||void 0===e?void 0:e.intervalEnd}},getValueRangeInitialValue:function(){},_getRangeData:function(){return rv.getRangeData(this)},_getPointDataSelector:function(){var r,o,t=this.getValueFields()[0],n=this.getArgumentField(),e=this.getTagField(),i=this.areErrorBarsVisible();if(i){var a=this._options.valueErrorBar;r=a.lowValueField||tN,o=a.highValueField||eN}return s=>{var l={value:this._processEmptyValue(s[t]),argument:s[n],tag:s[e],data:s};return i&&(l.lowError=s[r],l.highError=s[o]),l}},_errorBarsEnabled:function(){return"discrete"!==this.valueAxisType&&"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType},_drawPoint:function(t){var n=t.point;n.isInVisibleArea()?(n.clearVisibility(),n.draw(this._renderer,t.groups,t.hasAnimation,t.firstDrawing),this._drawnPoints.push(n)):n.setInvisibility()},_animateComplete:function(){var t={duration:this._defaultDuration};this._labelsGroup&&this._labelsGroup.animate({opacity:1},t),this._errorBarGroup&&this._errorBarGroup.animate({opacity:this._options.valueErrorBar.opacity||1},t)},_animate:function(){var t=this,n=t._drawnPoints.length-1;we(t._drawnPoints||[],function(e,i){i.animate(e===n?function(){t._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})})},_getIntervalCenter(t,n){var e=this.getArgumentAxis(),i=e.getOptions();return e.aggregatedPointBetweenTicks()?t:"discrete"!==i.type?e.getVisualRangeCenter({minVisible:t,maxVisible:n},!0):t},_defaultAggregator:"avg",_aggregators:{avg(t,n){var{data:e,intervalStart:i,intervalEnd:r}=t;if(e.length){var o=n.getValueFields()[0],a=e.reduce((s,l)=>{var u=l[o];return Z(u)?(s[0]+=u,s[1]++):null===u&&s[2]++,s},[0,0,0]);return function pLt(t,n,e){var i=e.getOptions().valueErrorBar,r=e.getValueFields()[0],o=i.lowValueField||tN,a=i.highValueField||eN;if(e.areErrorBarsVisible()&&void 0===i.type){var s=n.reduce(function(l,u){return Z(u[o])&&(l[0]+=u[r]-u[o],l[1]++),Z(u[a])&&(l[2]+=u[a]-u[r],l[3]++),l},[0,0,0,0]);s[1]&&(t[o]=t[r]-s[0]/s[1]),s[2]&&(t[a]=t[r]+s[2]/s[3])}return t}({[o]:a[2]===e.length?null:a[0]/a[1],[n.getArgumentField()]:n._getIntervalCenter(i,r)},e,n)}},sum(t,n){var{intervalStart:e,intervalEnd:i,data:r}=t;if(r.length){var o=n.getValueFields()[0],a=r.reduce((l,u)=>{var f=u[o];return void 0!==f&&(l[0]+=f),null===f?l[1]++:void 0===f&&l[2]++,l},[0,0,0]),s=a[0];if(a[1]===r.length&&(s=null),a[2]!==r.length)return function gLt(t,n,e){var i=e.getOptions().valueErrorBar,r=i.lowValueField||tN,o=i.highValueField||eN;return e.areErrorBarsVisible()&&void 0===i.type&&(t[r]=0,t[o]=0,t=n.reduce(function(a,s){return a[r]+=s[r],a[o]+=s[o],a},t)),t}({[o]:s,[n.getArgumentField()]:n._getIntervalCenter(e,i)},r,n)}},count(t,n){var{data:e,intervalStart:i,intervalEnd:r}=t,o=n.getValueFields()[0];return{[n.getArgumentField()]:n._getIntervalCenter(i,r),[o]:e.filter(a=>void 0!==a[o]).length}},min:ZDe((t,n)=>t<n),max:ZDe((t,n)=>t>n)},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var i,r,t=this._options,n=t.valueErrorBar,e=[t.valueField||"val"];return n&&(r=n.highValueField,Pn(i=n.lowValueField)&&e.push(i),Pn(r)&&e.push(r)),e},_calculateErrorBars:function(t){if(this.areErrorBarsVisible()){var a,u,f,S,T,e=this._options.valueErrorBar,i=Ri(e.type),r=parseFloat(e.value),o=this.getValueFields()[0],s=e.lowValueField||tN,l=e.highValueField||eN,R=function(L,z){z.lowError=(a=z.value)-r,z.highError=a+r};switch(i){case YDe:T=R;break;case qDe:T=function(L,z){var j=(a=z.value)*r/100;z.lowError=a-j,z.highError=a+j};break;case"undefined":T=function(L,z){z.lowError=z.data[s],z.highError=z.data[l]};break;default:switch(f=(u=ma(t,function(L){return Z(L.data[o])?L.data[o]:null})).length,r=r||1,i){case jDe:r=J$(u,iN(u)/f)*r,T=R;break;case KDe:S=iN(u)/f,r=GDe(J$(u,S))*r,T=function(L,z){z.lowError=S-r,z.highError=S+r};break;case $De:r=GDe(J$(u,iN(u)/f)/f)*r,T=R}}T&&we(t,T)}},_patchMarginOptions:function(t){var n=this._getCreatingPointOptions(),e=n.styles,i=[e.normal,e.hover,e.selection].reduce(function(r,o){return oLt(r,2*o.r+o["stroke-width"])},0);return t.size=n.visible?i:0,t.sizePointNormalState=n.visible?2*e.normal.r+e.normal["stroke-width"]:2,t},usePointsToDefineAutoHiding:()=>!0};ys=se({},XDe,{drawTrackers:function(){var n,e,t=this,i=t._segments||[],r=t._options.rotated;t.isVisible()&&(i.length&&(n=t._trackers=t._trackers||[],e=t._trackersGroup=(t._trackersGroup||t._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray",class:"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(t._group),we(i,function(o,a){n[o]?t._updateTrackerElement(a,n[o]):n[o]=t._drawTrackerElement(a).data({"chart-data-series":t}).append(e)})),t._trackersTranslator=t.groupPointsByCoords(r))},_checkAxisVisibleAreaCoord(t,n){var i=(t?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();return Z(n)&&i[0]<=n&&i[1]>=n},checkSeriesViewportCoord(t,n){return this.getPoints().length&&this.isVisible()},getSeriesPairCoord(t,n){for(var e=null,i=!n&&!this._options.rotated||n&&this._options.rotated,r=i?"vy":"vx",o=i?"vx":"vy",a=this.getVisiblePoints(),s=0;s<a.length;s++){var l=a[s],u=l[r]===t?l[o]:void 0;if(this._checkAxisVisibleAreaCoord(!n,u)){e=u;break}}return e},_getNearestPoints:(t,n)=>[t,n],_getBezierPoints:()=>[],_getNearestPointsByCoord(t,n){var e=this,i=e.getOptions().rotated,o=!n&&!i||n&&i?"vy":"vx",a=e.getPoints(),s=e._getBezierPoints(),l=[];return a.length>1?a.forEach((u,f)=>{var S=a[f+1];S&&(u[o]<=t&&S[o]>=t||u[o]>=t&&S[o]<=t)&&l.push(e._getNearestPoints(u,S,s))}):l.push([a[0],a[0]]),l},getNeighborPoint:function(t,n){var a,e=this._options.rotated?n:t,i=e,r=this._trackersTranslator,o=null,s=this._options.rotated?t:n,l=this._options.rotated?"vx":"vy";if(this.isVisible()&&r){o=r[e];do{o=r[i]||r[e],e--,i++}while((e>=0||i<r.length)&&!o);Array.isArray(o)&&(a=WDe(o[0][l]-s),we(o,function(u,f){var S=WDe(f[l]-s);a>=S&&(a=S,o=f)}))}return o},_applyVisibleArea:function(){var t=this._options.rotated,n=(t?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),e=(t?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();this._visibleArea={minX:n[0],maxX:n[1],minY:e[0],maxY:e[1]}},getPointCenterByArg(t){var n=this.getPointsByArg(t)[0];return n?n.getCenterCoord():void 0}}),nN=se({},XDe,{drawTrackers:function(){ys.drawTrackers.call(this);var n,t=this._trackersTranslator;this.isVisible()&&(we(t,function(e,i){if(i)return n=e,!1}),t[n+360]=t[n])},getNeighborPoint:function(t,n){var e=Sj(this.getValueAxis().getCenter(),t,n);return ys.getNeighborPoint.call(this,e.phi,e.r)},_applyVisibleArea:function(){var t=this.getValueAxis().getCanvas();this._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}},getSeriesPairCoord(t,n){for(var e=null,i=n?"argument":"radius",r=this.getVisiblePoints(),o=0;o<r.length;o++){var a=r[o],s=Z(a[i])&&Z(t[i])&&a[i].valueOf()===t[i].valueOf()?{x:a.x,y:a.y}:void 0;if(Z(s)){e=s;break}}return e}});var rN="discrete",{round:JDe,sqrt:Q$,pow:zI,min:QDe,max:eEe,abs:mLt}=Math,js={},oN={};function hS(t,n,e,i){var r=sg(t);return r.x=n,r.y=e,r.angle=i,r}function eq(t,n,e,i,r){var o=t.angle+r,a=Ll(o);return hS(n,e.x+(t.radius+i*r)*a.cos,e.y-(t.radius+i*r)*a.sin,o)}var tEe={autoHidePointMarkersEnabled:()=>!0,_applyGroupSettings:function(t,n,e){n=se(n,t),this._applyElementsClipRect(n),e.attr(n)},_setGroupsSettings:function(t){var n=this._styles.normal;this._applyGroupSettings(n.elements,{class:"dxc-elements"},this._elementsGroup),this._bordersGroup&&this._applyGroupSettings(n.border,{class:"dxc-borders"},this._bordersGroup),ys._setGroupsSettings.call(this,t),t&&this._markersGroup&&this._markersGroup.attr({opacity:.001})},_createGroups:function(){this._createGroup("_elementsGroup",this,this._group),this._areBordersVisible()&&this._createGroup("_bordersGroup",this,this._group),ys._createGroups.call(this)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(t){return{line:ma(t.line||[],function(n){return n.getDefaultCoords()})}},_prepareSegment:function(t){return{line:t}},_parseLineOptions:function(t,n){return{stroke:t.color||n,"stroke-width":t.width,dashStyle:t.dashStyle||"solid"}},_parseStyle:function(t,n){return{elements:this._parseLineOptions(t,n)}},_applyStyle:function(t){this._elementsGroup&&this._elementsGroup.attr(t.elements),we(this._graphics||[],function(n,e){e.line&&e.line.attr({"stroke-width":t.elements["stroke-width"]}).sharp()})},_drawElement:function(t,n){return{line:this._createMainElement(t.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(n)}},_removeElement:function(t){t.line.remove()},_updateElement:function(t,n,e,i){var r={points:n.line},o=t.line;e?o.animate(r,{},i):o.attr(r)},_animateComplete:function(){ys._animateComplete.call(this),this._markersGroup&&this._markersGroup.animate({opacity:1},{duration:this._defaultDuration})},_animate:function(){var t=this,n=t._graphics.length-1;we(t._graphics||[],function(e,i){var r;e===n&&(r=function(){t._animateComplete()}),t._updateElement(i,t._segments[e],!0,r)})},_drawPoint:function(t){ys._drawPoint.call(this,{point:t.point,groups:t.groups})},_createMainElement:function(t,n){return this._renderer.path(t,"line").attr(n)},_sortPoints:function(t,n){return t.sort(n?function(e,i){return i.y-e.y}:function(e,i){return e.x-i.x})},_drawSegment:function(t,n,e,i){var o=this._prepareSegment(t,this._options.rotated,i);this._segments.push(o),this._graphics[e]?n||this._updateElement(this._graphics[e],o):this._graphics[e]=this._drawElement(n?this._getDefaultSegment(o):o,this._elementsGroup)},_getTrackerSettings:function(){var t=this._defaultTrackerWidth,n=this._styles.normal.elements["stroke-width"];return{"stroke-width":n>t?n:t,fill:"none"}},_getMainPointsFromSegment:function(t){return t.line},_drawTrackerElement:function(t){return this._createMainElement(this._getMainPointsFromSegment(t),this._getTrackerSettings(t))},_updateTrackerElement:function(t,n){var e=this._getTrackerSettings(t);e.points=this._getMainPointsFromSegment(t),n.attr(e)},checkSeriesViewportCoord(t,n){if(!ys.checkSeriesViewportCoord.call(this))return!1;var e=t.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=t.getTranslator().translate(e.categories?e.categories[0]:e.min),r=t.getTranslator().translate(e.categories?e.categories[e.categories.length-1]:e.max),o=this.getOptions().rotated,a=t.getOptions().inverted;return t.isArgumentAxis&&(!o&&!a||o&&a)||!t.isArgumentAxis&&(o&&!a||!o&&a)?n>=i&&n<=r:n>=r&&n<=i}},UI=js.line=se({},ys,tEe,{getPointCenterByArg(t){var n=this.getArgumentAxis().getTranslator().translate(t);return{x:n,y:n}},getSeriesPairCoord(t,n){for(var e=null,i=this._getNearestPointsByCoord(t,n),r=n&&!this._options.rotated||!n&&this._options.rotated,o=0;o<i.length;o++){var u,a=i[o],s=(a[1].vy-a[0].vy)/(a[1].vx-a[0].vx),l=a[0].vy-a[0].vx*s;if(this._checkAxisVisibleAreaCoord(!n,u=a[1].vx-a[0].vx==0?r?a[0].vy:a[0].vx:r?s*t+l:(t-l)/s)){e=u;break}}return e}});js.stepline=se({},UI,{_calculateStepLinePoints(t){var n=[],e=this._options.rotated?"x":"y";return we(t,function(i,r){var o;if(i){var a=n[n.length-1][e];a!==r[e]&&((o=sg(r))[e]=a,n.push(o)),n.push(r)}else n.push(r)}),n},_prepareSegment:function(t){return UI._prepareSegment(this._calculateStepLinePoints(t))},getSeriesPairCoord(t,n){for(var e,i=this._options.rotated,r=!n&&!i||n&&i,o=r?"vy":"vx",a=r?"vx":"vy",s=this._getNearestPointsByCoord(t,n),l=0;l<s.length;l++){var f,u=s[l];if(this._checkAxisVisibleAreaCoord(!n,f=n?t!==u[1][o]?u[0][a]:u[1][a]:t===u[0][o]?u[0][a]:u[1][a])){e=f;break}}return e}}),js.spline=se({},UI,{_calculateBezierPoints:function(t,n){var e=[],i=t,r=function(o,a,s){return o>a&&s>o||o<a&&s<o?o:s};return 1!==i.length?i.forEach(function(o,a){var s,l,u,f,R,L,z,j,Y,ie,te,fe,S=i[a-1],T=i[a+1];if(a&&a!==i.length-1){var Te=o.x,Re=o.y;if(R=S.x,L=T.x,z=S.y,j=T.y,!n&&(Re<=S.y&&Re<=T.y||Re>=S.y&&Re>=T.y)||n&&(Te<=S.x&&Te<=T.x||Te>=S.x&&Te>=T.x))n?(u=s=Te,f=(Re+T.y)/2,l=(Re+S.y)/2):(f=l=Re,u=(Te+T.x)/2,s=(Te+S.x)/2);else{if(Y=j-z,ie=R-L,te=z*L-R*j,n){if(!Y)return void e.push(o,o,o);R-=fe=-1*(ie*Re+te)/Y-Te,L-=fe}else{if(!ie)return void e.push(o,o,o);z-=fe=-1*(Y*Te+te)/ie-Re,j-=fe}u=(Te+.5*L)/1.5,f=(Re+.5*j)/1.5,s=(Te+.5*R)/1.5,l=(Re+.5*z)/1.5}n?(s=r(S.x,Te,s),u=r(T.x,Te,u)):(l=r(S.y,Re,l),f=r(T.y,Re,f));var Ze=hS(o,s,l),at=hS(o,u,f);e.push(Ze,o,at)}else e.push(o,o)}):e.push(i[0]),e},_prepareSegment:function(t,n){return UI._prepareSegment(this._calculateBezierPoints(t,n))},_createMainElement:function(t,n){return this._renderer.path(t,"bezier").attr(n)},getSeriesPairCoord(t,n){for(var e=null,i=!n&&!this._options.rotated||n&&this._options.rotated,r=i?"vy":"vx",o=i?"y":"x",a=i?"vx":"vy",s=i?"x":"y",u=(n?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),f=this._getNearestPointsByCoord(t,n),S=function(L){var z=f[L];if(1===z.length?u[0]<=z[0][a]&&u[1]>=z[0][a]&&(e=z[0][a]):function _Lt(t,n,e,i,r){return function $tt(t,n,e,i){if(Math.abs(t)<1e-8){if(t=n,n=e,e=i,Math.abs(t)<1e-8)return t=n,n=e,Math.abs(t)<1e-8?[]:[-n/t];var r=n*n-4*t*e;return Math.abs(r)<1e-8?[-n/(2*t)]:r>0?[(-n+Math.sqrt(r))/(2*t),(-n-Math.sqrt(r))/(2*t)]:[]}var s,l,o=(3*t*e-n*n)/(3*t*t),a=(2*n*n*n-9*t*n*e+27*t*t*i)/(27*t*t*t);if(Math.abs(o)<1e-8)s=[_de(-a,3)];else if(Math.abs(a)<1e-8)s=[0].concat(o<0?[Math.sqrt(-o),-Math.sqrt(-o)]:[]);else{var u=a*a/4+o*o*o/27;if(Math.abs(u)<1e-8)s=[-1.5*a/o,3*a/o];else if(u>0)s=[(l=_de(-a/2-Math.sqrt(u),3))-o/(3*l)];else{l=2*Math.sqrt(-o/3);var f=Math.acos(3*a/o/l)/3,S=2*Math.PI/3;s=[l*Math.cos(f),l*Math.cos(f-S),l*Math.cos(f-2*S)]}}for(var T=0;T<s.length;T++)s[T]-=n/(3*t);return s}(r-3*i+3*e-n,3*i-6*e+3*n,3*e-3*n,n-t)}(t,z[0][r],z[1][o],z[2][o],z[3][r]).forEach(Y=>{if(Y>=0&&Y<=1){var ie=Math.pow(1-Y,3)*z[0][a]+3*Math.pow(1-Y,2)*Y*z[1][s]+3*(1-Y)*Y*Y*z[2][s]+Y*Y*Y*z[3][a];u[0]<=ie&&u[1]>=ie&&(e=ie)}}),null!==e)return"break"},T=0;T<f.length&&"break"!==S(T);T++);return e},_getNearestPoints(t,n,e){var i=e.indexOf(t);return[t,e[i+1],e[i+2],n]},_getBezierPoints(){return this._segments.length>0?this._segments.reduce((t,n)=>t.concat(n.line),[]):[]}}),oN.line=se({},nN,tEe,{_sortPoints:function(t){return t},_prepareSegment:function(t,n,e){var o,i=[],r=this.getValueAxis().getCenter();if(e&&this._closeSegment(t),this.argumentAxisType===rN||this.valueAxisType===rN)return UI._prepareSegment.call(this,t);for(o=1;o<t.length;o++)i=i.concat(this._getTangentPoints(t[o],t[o-1],r,o===t.length-1));return i.length||(i=t),{line:i}},_getRemainingAngle:function(t){var n=Bc(t);return t>=0?360-n:-n},_closeSegment(t){var n;n=this._segments.length?this._segments[0].line[0]:hS(t[0],t[0].x,t[0].y,t[0].angle),(n=this._modifyReflectedPoint(n,t[t.length-1]))&&t.push(n)},_modifyReflectedPoint(t,n){if(n.angle!==t.angle)return t.angle=Bc(JDe(n.angle))===Bc(JDe(t.angle))?n.angle:n.angle+this._getRemainingAngle(n.angle-t.angle),t},_getTangentPoints:function(t,n,e,i){var s,r=[],o=Math.round(n.angle-t.angle),a=(n.radius-t.radius)/o;if(0===o)r=[n,t];else if(o>0)for(s=i?o:o-1;s>=0;s--)r.push(eq(t,n,e,a,s));else{var u=i?o:o+1;for(s=0;s>=u;s--)r.push(eq(t,n,e,a,o-s))}return r},getSeriesPairCoord(t,n){var s,e=this.getArgumentAxis(),i=n?"angle":"radius",r=t[i],o=e.getCenter(),a=(ct,Nt,Kt)=>{var bn,Qn,{x:on,y:hn}=Kt;return Q$(zI((bn={x:on,y:hn}).x-(Qn=o).x,2)+zI(bn.y-Qn.y,2))<=e.getRadius()&&QDe(ct.x,Nt.x)<=on&&eEe(ct.x,Nt.x)>=on&&QDe(ct.y,Nt.y)<=hn&&eEe(ct.y,Nt.y)>=hn},l=this.getNeighborPoints(r,i);if(1===l.length)s=l[0];else if(l.length>1){var S,T,u=l[0],f=l[1];if(this.argumentAxisType!==rN&&this.valueAxisType!==rN)n?(S=(u.radius-f.radius)/(u.angle-f.angle),T=r-f.angle):T=(r-f.radius)/(S=(u.radius-f.radius)/(u.angle-f.angle)),s=eq(f,u,o,S,T);else if(n){var R=Ll(-r),L=(f.y-u.y)/(f.x-u.x),z=u.y-u.x*L,j=R.sin/R.cos,ie=(o.y-j*o.x-z)/(L-j),te=L*ie+z;if(a(u,f,{x:ie,y:te})){var re=mLt(function qtt(t){return Math.trunc?Math.trunc(t):t>0?Math.floor(t):Math.ceil(t)}((360+r)/90)%4);(0===re&&ie>=o.x&&te<=o.y||1===re&&ie<=o.x&&te<=o.y||2===re&&ie<=o.x&&te>=o.y||3===re&&ie>=o.x&&te>=o.y)&&(s={x:ie,y:te})}}else{var he=(f.y-u.y)/(f.x-u.x),fe=u.y-u.x*he,Te=1+he*he,Re=-2*o.x+2*he*fe-2*he*o.y,Ze=Re*Re-4*Te*(-zI(r,2)+zI(fe-o.y,2)+zI(o.x,2));if(Ze>=0){var at=(-Re-Q$(Ze))/(2*Te),vt=(-Re+Q$(Ze))/(2*Te),Bt=he*at+fe,St=he*vt+fe;s=a(u,f,{x:at,y:Bt})?{x:at,y:Bt}:a(u,f,{x:vt,y:St})?{x:vt,y:St}:void 0}}}return s},getNeighborPoints(t,n){var e=this.getPoints(),i=[];if(this.getOptions().closed){var r=(e=se(!0,[],e))[e.length-1],o=hS(e[0],e[0].x,e[0].y,e[0].angle),a=hS(r,r.x,r.y,r.angle),s=this._modifyReflectedPoint(o,r),l=this._modifyReflectedPoint(a,e[0]);l&&e.unshift(l),s&&e.push(s)}for(var u=1;u<e.length&&(e[u-1][n]===t?i.push(e[u-1]):e[u][n]===t?i.push(e[u]):(e[u][n]>t&&e[u-1][n]<t||e[u-1][n]>t&&e[u][n]<t)&&(i.push(e[u-1]),i.push(e[u])),!(i.length>0));u++);return i}});var aN=js.line,nEe=oN.line,sN=se,vLt=js.spline._calculateBezierPoints,Hc={},iEe={},rEe={_createBorderElement:aN._createMainElement,_createLegendState:function(t,n){return{fill:t.color||n,opacity:t.opacity,hatching:t.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&!1!==this.showZero?0:ys.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(t){var n=aN._getDefaultSegment(t);return n.area=n.line.concat(n.line.slice().reverse()),n},_updateElement:function(t,n,e,i){var r={points:n.line},o={points:n.area},a=t.line;e?(a&&a.animate(r),t.area.animate(o,{},i)):(a&&a.attr(r),t.area.attr(o))},_removeElement:function(t){t.line&&t.line.remove(),t.area.remove()},_drawElement:function(t){return{line:this._bordersGroup&&this._createBorderElement(t.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(t.area).append(this._elementsGroup)}},_applyStyle:function(t){this._elementsGroup&&this._elementsGroup.smartAttr(t.elements),this._bordersGroup&&this._bordersGroup.attr(t.border),(this._graphics||[]).forEach(function(n){n.line&&n.line.attr({"stroke-width":t.border["stroke-width"]}).sharp()})},_parseStyle:function(t,n,e){var i=t.border||{},r=aN._parseLineOptions(i,e);return r.stroke=i.visible&&r["stroke-width"]?r.stroke:"none",r["stroke-width"]=r["stroke-width"]||1,{border:r,elements:{stroke:"none",fill:t.color||n,hatching:t.hatching,opacity:t.opacity}}},_areBordersVisible:function(){var t=this._options;return t.border.visible||t.hoverStyle.border.visible||t.selectionStyle.border.visible},_createMainElement:function(t,n){return this._renderer.path(t,"area").attr(n)},_getTrackerSettings:function(t){return{"stroke-width":t.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(t){return t.area}},ov=Hc.area=sN({},aN,rEe,{_prepareSegment(t,n){var e=this._processSinglePointsAreaSegment(t,n),i=function yLt(t){return ma(t,function(n){return n.getCoords()}).concat(ma(t.slice().reverse(),function(n){return n.getCoords(!0)}))}(e),r=this.getArgumentAxis();if(r.getAxisPosition){var o=r.getAxisPosition(),a=r.getOptions(),s=(n?1:-1)*Math.round(a.width/2);a.visible&&i.forEach((l,u)=>{if(l){var f=1===t.length?0:u<t.length?u:i.length-1-u;n&&l.x===t[f].defaultX&&l.x===o-r.getAxisShift()&&(l.x+=s),!n&&l.y===t[f].defaultY&&l.y===o-r.getAxisShift()&&(l.y+=s)}})}return{line:e,area:i,singlePointSegment:e!==t}},_processSinglePointsAreaSegment:function(t,n){if(t&&1===t.length){var e=t[0],i=sg(e);return i[n?"y":"x"]+=1,i.argument=null,[e,i]}return t}});iEe.area=sN({},nEe,rEe,{_prepareSegment:function(t,n,e){return e&&nEe._closeSegment.call(this,t),ov._prepareSegment.call(this,t)},_processSinglePointsAreaSegment:function(t){return oN.line._prepareSegment.call(this,t).line}}),Hc.steparea=sN({},ov,{_prepareSegment:function(t,n){var e=js.stepline;return t=ov._processSinglePointsAreaSegment(t,n),ov._prepareSegment.call(this,e._calculateStepLinePoints.call(this,t),n)},getSeriesPairCoord:js.stepline.getSeriesPairCoord}),Hc.splinearea=sN({},ov,{_areaPointsToSplineAreaPoints:function(t){var n=t[t.length/2-1],e=t[t.length/2];t.splice(t.length/2,0,{x:n.x,y:n.y},{x:e.x,y:e.y})},_prepareSegment:function(t,n){var e=ov._processSinglePointsAreaSegment(t,n),i=ov._prepareSegment.call(this,vLt(e,n));return this._areaPointsToSplineAreaPoints(i.area),i.singlePointSegment=e!==t,i},_getDefaultSegment:function(t){var n=ov._getDefaultSegment(t);return this._areaPointsToSplineAreaPoints(n.area),n},_createMainElement:function(t,n){return this._renderer.path(t,"bezierarea").attr(n)},_createBorderElement:js.spline._createMainElement,getSeriesPairCoord:js.spline.getSeriesPairCoord,_getNearestPoints:js.spline._getNearestPoints,_getBezierPoints:js.spline._getBezierPoints,obtainCubicBezierTCoef:js.spline.obtainCubicBezierTCoef});var oEe=Hc.area,av=ys,CLt=nN,tq=se,bLt=we,$C={},lN={},nq={_createLegendState:function(t,n){return{fill:t.color||n,hatching:t.hatching}},_parsePointStyle:function(t,n,e){var i=t.color||n,r=av._parsePointStyle.call(this,t,i,e);return r.fill=i,r.hatching=t.hatching,r.dashStyle=t.border&&t.border.dashStyle||"solid",delete r.r,r},_applyMarkerClipRect:function(t){t["clip-path"]=null},_setGroupsSettings:function(t,n){var e=this,i={};av._setGroupsSettings.apply(e,arguments),t&&n?i=this._getAffineCoordOptions():t||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),e._markersGroup.attr(i)},_drawPoint:function(t){t.hasAnimation=t.hasAnimation&&!t.firstDrawing,t.firstDrawing=!1,av._drawPoint.call(this,t)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(t){var n=t.color||this._getMainColor();return{normal:this._parsePointStyle(t,n,n),hover:this._parsePointStyle(t.hoverStyle||{},n,n),selection:this._parsePointStyle(t.selectionStyle||{},n,n)}},_updatePointsVisibility:function(){var t=this._options.visible;we(this._points,function(n,e){e._options.visible=t})},_getOptionsForPoint:function(){return this._options},_animate:function(t){var n=this;n._animatePoints(t,function(){n._animateComplete()},function(e,i){var r=e.length-1;bLt(e||[],function(o,a){a.animate(o===r?i:void 0,a.getMarkerCoords())})})},getValueRangeInitialValue:oEe.getValueRangeInitialValue,_patchMarginOptions:function(t){var n;return t.checkInterval=!this.useAggregation()||(null===(n=this.getArgumentAxis())||void 0===n?void 0:n.aggregatedPointBetweenTicks()),t},_defaultAggregator:"sum",_defineDrawingState(){},usePointsToDefineAutoHiding:()=>!1};$C.bar=tq({},av,nq,{_getAffineCoordOptions:function(){var t=this._options.rotated,e={scaleX:t?.001:1,scaleY:t?1:.001};return e["translate"+(t?"X":"Y")]=this.getValueAxis().getTranslator().translate("canvas_position_default"),e},_animatePoints:function(t,n,e){this._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,n),t||e(this._drawnPoints,n)},checkSeriesViewportCoord(t,n){if(!av.checkSeriesViewportCoord.call(this))return!1;if(t.isArgumentAxis)return!0;var e=t.getTranslator(),i=this.getViewport(),r=e.translate(i.categories?i.categories[0]:i.min),o=e.translate(i.categories?i.categories[i.categories.length-1]:i.max),a=this.getOptions().rotated,s=t.getOptions().inverted;return a&&!s||!a&&s?n>=r&&n<=o:n>=o&&n<=r},getSeriesPairCoord(t,n){for(var e=null,{rotated:i}=this._options,r=!n&&!i||n&&i,o=r?"vy":"vx",a=r?"vx":"vy",s=this.getPoints(),l=0;l<s.length;l++){var f,u=s[l];if(f=n?u.getCenterCoord()[o[1]]===t?u[a]:void 0:u[o]===t?u[a]:void 0,this._checkAxisVisibleAreaCoord(!n,f)){e=f;break}}return e}}),lN.bar=tq({},CLt,nq,{_animatePoints:function(t,n,e){e(this._drawnPoints,n)},_setGroupsSettings:av._setGroupsSettings,_drawPoint:function(t,n,e){av._drawPoint.call(this,t,n,e)},_parsePointStyle:function(t){var n=nq._parsePointStyle.apply(this,arguments);return n.opacity=t.opacity,n},_createGroups:av._createGroups,_setMarkerGroupSettings:function(){var t=this._createPointStyles(this._getMarkerGroupOptions()).normal;t.class="dxc-markers",this._applyMarkerClipRect(t);var n=tq({},t);delete n.opacity,this._markersGroup.attr(n)},getSeriesPairCoord(t,n){for(var e=null,i=n?"argument":"radius",r=this.getVisiblePoints(),o=this.getArgumentAxis(),a=o.getAngles()[0],s=0;s<r.length;s++){var l=r[s],u=Z(l[i])&&Z(t[i])&&l[i].valueOf()===t[i].valueOf()?iI(o.getCenter(),a,-o.getTranslatedAngle(l.angle),l.radius):void 0;if(Z(u)){e=u;break}}return e},_createLegendState:oEe._createLegendState});var aEe=se,WI=Hc.area,iq={},sEe={areErrorBarsVisible:Be,_createErrorBarGroup:Be,_checkData:function(t,n){var e=this.getValueFields();return ys._checkData.call(this,t,n,{minValue:e[0],value:e[1]})&&t.minValue==t.minValue},getValueRangeInitialValue:ys.getValueRangeInitialValue,_getPointDataSelector:function(t){var n=this.getValueFields(),e=n[0],i=n[1],r=this.getTagField(),o=this.getArgumentField();return a=>({tag:a[r],minValue:this._processEmptyValue(a[e]),value:this._processEmptyValue(a[i]),argument:a[o],data:a})},_defaultAggregator:"range",_aggregators:{range(t,n){var{intervalStart:e,intervalEnd:i,data:r}=t;if(r.length){var o=n.getValueFields(),a=o[0],s=o[1],l=r.reduce((u,f)=>{var S=f[a],T=f[s];return!Z(S)||!Z(T)||(u[a]=Math.min(u[a],Math.min(S,T)),u[s]=Math.max(u[s],Math.max(S,T))),u},{[a]:1/0,[s]:-1/0,[n.getArgumentField()]:n._getIntervalCenter(e,i)});if(!isFinite(l[a])||!isFinite(l[s])){if(r.filter(u=>null===u[a]&&null===u[s]).length!==r.length)return;l[a]=l[s]=null}return l}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},getSeriesPairCoord(t,n){for(var e=null,{rotated:i}=this._options,r=!n&&!i||n&&i,o=r?"vy":"vx",a=i?"minX":"minY",s=r?"vx":"vy",l=this.getPoints(),u=0;u<l.length;u++){var f=l[u],S=void 0;if(n)S=f.getCenterCoord()[o[1]]===t?f[s]:void 0;else{var T=[Math.min(f[o],f[a]),Math.max(f[o],f[a])];S=t>=T[0]&&t<=T[1]?f[s]:void 0}if(this._checkAxisVisibleAreaCoord(!n,S)){e=S;break}}return e}};iq.rangebar=aEe({},$C.bar,sEe),iq.rangearea=aEe({},WI,{_drawPoint:function(t){var n=t.point;n.isInVisibleArea()?(n.clearVisibility(),n.draw(this._renderer,t.groups),this._drawnPoints.push(n),n.visibleTopMarker||n.hideMarker("top"),n.visibleBottomMarker||n.hideMarker("bottom")):n.setInvisibility()},_prepareSegment:function(t,n){var e=this._processSinglePointsAreaSegment(t,n),i=ma(e,function(r){return r.getCoords(!0)});return{line:e,bottomLine:i,area:ma(e,function(r){return r.getCoords()}).concat(i.slice().reverse()),singlePointSegment:e!==t}},_getDefaultSegment:function(t){var n=WI._getDefaultSegment.call(this,t);return n.bottomLine=n.line,n},_removeElement:function(t){WI._removeElement.call(this,t),t.bottomLine&&t.bottomLine.remove()},_drawElement:function(t,n){var e=WI._drawElement.call(this,t,n);return e.bottomLine=this._bordersGroup&&this._createBorderElement(t.bottomLine,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),e},_applyStyle:function(t){var n=this._elementsGroup,e=this._bordersGroup;n&&n.smartAttr(t.elements),e&&e.attr(t.border),(this._graphics||[]).forEach(function(i){i.line&&i.line.attr({"stroke-width":t.border["stroke-width"]}),i.bottomLine&&i.bottomLine.attr({"stroke-width":t.border["stroke-width"]})})},_updateElement:function(t,n,e,i){var r={points:n.bottomLine},o=t.bottomLine;WI._updateElement.apply(this,arguments),o&&(e?o.animate(r):o.attr(r))}},sEe);var uN=$C.bar,lEe=lN.bar,ELt=we,uEe={};uEe.bubble=se({},ys,{_calculateErrorBars:Be,_getMainColor:uN._getMainColor,_createPointStyles:uN._createPointStyles,_updatePointsVisibility:uN._updatePointsVisibility,_getOptionsForPoint:uN._getOptionsForPoint,_applyMarkerClipRect:js.line._applyElementsClipRect,_parsePointStyle:lEe._parsePointStyle,_createLegendState:Hc.area._createLegendState,_setMarkerGroupSettings:lEe._setMarkerGroupSettings,areErrorBarsVisible:Be,_createErrorBarGroup:Be,_checkData:function(t,n){return ys._checkData.call(this,t,n,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(t,n){var e=this.getSizeField(),i=ys._getPointDataSelector.call(this);return r=>{var o=i(r);return o.size=r[e],o}},_aggregators:{avg(t,n){var{data:e,intervalStart:i,intervalEnd:r}=t;if(e.length){var o=n.getValueFields()[0],a=n.getSizeField(),s=e.reduce((l,u)=>(l[0]+=u[o],l[1]+=u[a],l[2]++,l),[0,0,0]);return{[o]:s[0]/s[2],[a]:s[1]/s[2],[n.getArgumentField()]:n._getIntervalCenter(i,r)}}}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var t=this,n=t._drawnPoints.length-1,e=t._labelsGroup,i=function(){e&&e.animate({opacity:1},{duration:t._defaultDuration})};ELt(t._drawnPoints||[],function(r,o){o.animate(r===n?i:void 0,{r:o.bubbleSize,translateX:o.x,translateY:o.y})})},_patchMarginOptions:function(t){return t.processBubbleSize=!0,t}});var oq=ys,dEe=$C.bar,aq=we,cEe=ma,TLt=isFinite,ILt=Math.max,sq=se({},dEe,{_setGroupsSettings:function(){oq._setGroupsSettings.apply(this,arguments),this._labelsGroup.attr({"pointer-events":null})},_createErrorBarGroup:Be,_drawPoint:function(t){var n=t.point,e=this._legendCallback;oq._drawPoint.call(this,t),!n.isVisible()&&n.setInvisibility(),n.isSelected()&&e()},_getOldPoint:function(t,n,e){var i=(this._points||[])[e];return i&&(n[i.argument.valueOf()]=n[i.argument.valueOf()].filter(r=>r!==i)),i},adjustLabels:function(t){return(this._points||[]).reduce((n,e)=>{if(e._label.isVisible())return e.setLabelTrackerData(),n=e.applyWordWrap(t)||n,e.updateLabelCoord(t),n},!1)},_applyElementsClipRect:Be,getColor:Be,areErrorBarsVisible:Be,drawLabelsWOPoints:function(){return"inside"!==this._options.label.position&&(this._labelsGroup.append(this._extGroups.labelsGroup),(this._points||[]).forEach(function(t){t.drawLabel()}),!0)},getPointsCount:function(){return this._data.filter(t=>this._checkData(t)).length},setMaxPointsCount:function(t){this._pointsCount=t},_getCreatingPointOptions:function(t,n){return this._getPointOptions(t,n)},_updateOptions:function(t){this.labelSpace=0,this.innerRadius="pie"===this.type?0:t.innerRadius},_checkData:function(t,n){var e=dEe._checkData.call(this,t,n,{value:this.getValueFields()[0]});return this._options.paintNullPoints?e:e&&null!==t.value},_createGroups:oq._createGroups,_setMarkerGroupSettings:function(){this._markersGroup.attr({class:"dxc-markers"})},_getMainColor(t,n){var e=this.getPointsByArg(t.argument),i=n?e.indexOf(n):e.length;return this._options.mainSeriesColor(t.argument,i,this._pointsCount)},_getPointOptions:function(t){return this._parsePointOptions(this._preparePointOptions(),this._options.label,t)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(t,n,e){var i=t.color||this._getMainColor(n,e);return{normal:this._parsePointStyle(t,i,i),hover:this._parsePointStyle(t.hoverStyle,i,i),selection:this._parsePointStyle(t.selectionStyle,i,i),legendStyles:{normal:this._createLegendState(t,i),hover:this._createLegendState(t.hoverStyle,i),selection:this._createLegendState(t.selectionStyle,i)}}},_getArrangeMinShownValue:function(t,n){var e=this._options.minSegmentSize,i=0,r=0;return n=n||t.length,aq(t,function(o,a){a.isVisible()&&(a.normalInitialValue<e*n/360?i+=e:r+=a.normalInitialValue)}),i<360?e*r/(360-i):0},_applyArrangeCorrection:function(t,n,e){var i=this._options,r="anticlockwise"!==i.segmentsDirection,o=TLt(i.startAngle)?Bc(i.startAngle):0,a=i.minSegmentSize,l=0,u=0;0===e&&(e=t.filter(function(f){return f.isVisible()}).length,u=1),aq(r?t:t.concat([]).reverse(),function(f,S){var R,T=S.isVisible()?u||S.normalInitialValue:0;a&&S.isVisible()&&T<n&&(R=n),S.correctValue(l,T/e,u+(R||0)),S.shiftedAngle=o,l+=R||T}),this._rangeData={val:{min:0,max:l}}},_removePoint:function(t){var n=this.getPointsByArg(t.argument);n.splice(n.indexOf(t),1),t.dispose()},arrangePoints:function(){for(var i,t=this,n=t._points||[],e=t._options.minSegmentSize,r=!0,o=0,a=n.length;o<a&&r;)r=n[o].value<=0,o++;var s=t._points=cEe(n,function(f){return null===f.value||!r&&f.value<0?(t._removePoint(f),null):f}),l=s.reduce(function(f,S){return ILt(f,Math.abs(S.initialValue))},0);s.forEach(function(f){f.normalInitialValue=f.initialValue/(0!==l?l:1)});var u=s.reduce(function(f,S){return f+(S.isVisible()?S.normalInitialValue:0)},0);e&&(i=this._getArrangeMinShownValue(s,u)),t._applyArrangeCorrection(s,i,u)},correctPosition:function(t,n){aq(this._points,function(e,i){i.correctPosition(t)}),this.setVisibleArea(n)},correctRadius:function(t){this._points.forEach(function(n){n.correctRadius(t)})},correctLabelRadius:function(t){this._points.forEach(function(n){n.correctLabelRadius(t)})},setVisibleArea:function(t){this._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}},_applyVisibleArea:Be,_animate:function(t){var n=this,e=n._points,i=e&&e.length,r=function(){n._animateComplete()};e.forEach(t?function(a,s){a.animate(s===i-1?r:void 0,.7,(1-.7)*s/(i-1))}:function(a,s){a.animate(s===i-1?r:void 0)})},getVisiblePoints:function(){return cEe(this._points,function(t){return t.isVisible()?t:null})},getPointsByKeys:function(t,n){var e=this.getPointsByArg(t);return e[n]&&[e[n]]||[]}}),MLt=sq,ALt=sq,pEe=$C.bar,lq=se({},ys,{_animate:Be,_applyMarkerClipRect:function(t){t["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:pEe._updatePointsVisibility,_getOptionsForPoint:pEe._getOptionsForPoint,_createErrorBarGroup:Be,areErrorBarsVisible:Be,_createGroups:ys._createGroups,_setMarkerGroupSettings:function(){var t=this._markersGroup,n=this._createPointStyles(this._getMarkerGroupOptions()),e=se(n.normal,{class:"default-markers"}),i=se(n.positive.normal,{class:"default-positive-markers"}),r=se(n.reduction.normal,{class:"reduction-markers"}),o=se(n.reductionPositive.normal,{class:"reduction-positive-markers"}),a={class:"dxc-markers"};this._applyMarkerClipRect(a),t.attr(a),this._createGroup("defaultMarkersGroup",t,t,e),this._createGroup("reductionMarkersGroup",t,t,r),this._createGroup("defaultPositiveMarkersGroup",t,t,i),this._createGroup("reductionPositiveMarkersGroup",t,t,o)},_setGroupsSettings:function(){ys._setGroupsSettings.call(this,!1)},_getCreatingPointOptions:function(){var t,n=this._predefinedPointOptions;return n||(t=this._getPointOptions(),this._predefinedPointOptions=n=se(!0,{styles:{}},t),n.styles.normal=n.styles.positive.normal=n.styles.reduction.normal=n.styles.reductionPositive.normal={"stroke-width":t.styles&&t.styles.normal&&t.styles.normal["stroke-width"]}),n},_checkData:function(t,n){var e=this.getValueFields();return ys._checkData.call(this,t,n,{openValue:e[0],highValue:e[1],lowValue:e[2],closeValue:e[3]})&&t.highValue==t.highValue&&t.lowValue==t.lowValue},_getPointDataSelector:function(t,n){var i,f,e=this,r=e.getValueFields(),o=e.getArgumentField(),a=r[0],s=r[1],l=r[2],u=r[3];switch(e.level=e._options.reduction.level,Ri(e.level)){case"open":i=a;break;case"high":i=s;break;case"low":i=l;break;default:i=u,e.level="close"}return S=>{var T=S[i],R=!1;return Z(T)&&(Z(f)&&(R=T<f),f=T),{argument:S[o],highValue:this._processEmptyValue(S[s]),lowValue:this._processEmptyValue(S[l]),closeValue:this._processEmptyValue(S[u]),openValue:this._processEmptyValue(S[a]),reductionValue:T,tag:S[e.getTagField()],isReduction:R,data:S}}},_parsePointStyle:function(t,n,e){return{stroke:t.color||n,"stroke-width":t.width,fill:t.color||e}},_getDefaultStyle:function(t){var n=t.color||this._options.mainSeriesColor;return{normal:this._parsePointStyle(t,n,n),hover:this._parsePointStyle(t.hoverStyle,n,n),selection:this._parsePointStyle(t.selectionStyle,n,n)}},_getReductionStyle:function(t){var n=t.reduction.color;return{normal:this._parsePointStyle({color:n,width:t.width,hatching:t.hatching},n,n),hover:this._parsePointStyle(t.hoverStyle,n,n),selection:this._parsePointStyle(t.selectionStyle,n,n)}},_createPointStyles:function(t){var n=this._options.innerColor,e=this._getDefaultStyle(t),i=se(!0,{},e),r=this._getReductionStyle(t),o=se(!0,{},r);return i.normal.fill=i.hover.fill=i.selection.fill=n,o.normal.fill=o.hover.fill=o.selection.fill=n,e.positive=i,e.reduction=r,e.reductionPositive=o,e},_endUpdateData:function(){delete this._predefinedPointOptions},_defaultAggregator:"ohlc",_aggregators:{ohlc:(t,n)=>{var{intervalStart:e,intervalEnd:i,data:r}=t;if(r.length){var o={},a=n.getValueFields(),s=a[1],l=a[2];return o[s]=-1/0,o[l]=1/0,(o=r.reduce(function(u,f){return null!==f[s]&&(u[s]=Math.max(u[s],f[s])),null!==f[l]&&(u[l]=Math.min(u[l],f[l])),u},o))[a[0]]=r[0][a[0]],o[a[3]]=r[r.length-1][a[3]],isFinite(o[s])||(o[s]=null),isFinite(o[l])||(o[l]=null),o[n.getArgumentField()]=n._getIntervalCenter(e,i),o}}},getValueFields:function(){var t=this._options;return[t.openValueField||"open",t.highValueField||"high",t.lowValueField||"low",t.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_patchMarginOptions:function(t){var e=this._getCreatingPointOptions().styles,i=[e.normal,e.hover,e.selection].reduce(function(r,o){return Math.max(r,o["stroke-width"])},0);return t.size=10+i,t.sizePointNormalState=10,t},getSeriesPairCoord(t,n){for(var e=null,i=this.getVisiblePoints(),r=0;r<i.length;r++){var o=i[r],a=void 0;if(n)a=o.vx===t?(o.openY+o.closeY)/2:void 0;else{var s=[Math.min(o.lowY,o.highY),Math.max(o.lowY,o.highY)];a=t>=s[0]&&t<=s[1]?o.vx:void 0}if(this._checkAxisVisibleAreaCoord(!n,a)){e=a;break}}return e},usePointsToDefineAutoHiding:()=>!1}),FLt=se({},lq,{_parsePointStyle:function(t,n,e){var i=t.color||e,r=lq._parsePointStyle.call(this,t,n,i);return r.fill=i,r.hatching=t.hatching,r}}),uq=Hc.area,fEe=$C.bar,Vh={_calculateErrorBars:Be,_updateOptions:function(t){this._stackName="axis_"+(t.axis||"default")}},Gu={},mEe={};Gu.stackedline=se({},js.line,Vh,{}),Gu.stackedspline=se({},js.spline,Vh,{}),Gu.fullstackedline=se({},js.line,Vh,{getValueRangeInitialValue:Hc.area.getValueRangeInitialValue}),Gu.fullstackedspline=se({},js.spline,Vh,{getValueRangeInitialValue:Hc.area.getValueRangeInitialValue});var PLt=Gu.stackedbar=se({},fEe,Vh,{_updateOptions:function(t){Vh._updateOptions.call(this,t),this._stackName=this._stackName+"_stack_"+(t.stack||"default")}});function _Ee(t,n,e,i){return(t=sg(t)).value=n,t.minValue=e,t.translate(),t.argument=t.argument+i,t}function vEe(t){for(var e,r,n=0,i=[],o=t.length;n<o;)r=[e=t[n]],e.leftHole&&(r=[_Ee(e,e.leftHole,e.minLeftHole,"left"),e]),e.rightHole&&r.push(_Ee(e,e.rightHole,e.minRightHole,"right")),i.push(r),n++;return[].concat.apply([],i)}Gu.fullstackedbar=se({},fEe,Vh,{_updateOptions:PLt._updateOptions}),Gu.stackedarea=se({},uq,Vh,{_prepareSegment:function(t,n){return uq._prepareSegment.call(this,vEe(t),n)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),Gu.stackedsplinearea=se({},Hc.splinearea,Vh,{_prepareSegment:function(t,n){var i,e=this;if(t=vEe(t),this._prevSeries&&1!==t.length){for(var r=js.spline._calculateBezierPoints(t,n),o=ma(t,function(f){var S=f.getCoords(!0);return S.argument=f.argument,S}),a=[],s={},l=0,u=e._prevSeries._segments.length;l<u;)a=a.concat(e._prevSeries._segments[l].line),l++;we(a,function(f,S){if(null!==S.argument){var T=S.argument.valueOf();s[T]?s[T].push(S):s[T]=[S]}}),e._prevSeries._segmentByArg=s,o=js.spline._calculateBezierPoints(o,n),we(o,function(f,S){var R,T=S.argument.valueOf();f%3==0&&(R=s[T]||function RLt(t,n){for(var e;!e&&t;)e=t._segmentByArg&&t._segmentByArg[n],t=t._prevSeries;return e}(e._prevSeries,T),R&&(o[f-1]&&R[0]&&(o[f-1]=R[0]),o[f+1]&&(o[f+1]=R[2]||S)))}),i={line:r,area:r.concat(o.reverse())},e._areaPointsToSplineAreaPoints(i.area)}else i=Hc.splinearea._prepareSegment.call(this,t,n);return i},_appendInGroup:Gu.stackedarea._appendInGroup}),Gu.fullstackedarea=se({},uq,Vh,{_prepareSegment:Gu.stackedarea._prepareSegment,_appendInGroup:Gu.stackedarea._appendInGroup}),Gu.fullstackedsplinearea=se({},Hc.splinearea,Vh,{_prepareSegment:Gu.stackedsplinearea._prepareSegment,_appendInGroup:Gu.stackedarea._appendInGroup}),mEe.stackedbar=se({},lN.bar,Vh,{});var tf={},sv=Mp.states,dN="discrete",jI=sv.selectedMark,KI=sv.hoverMark,nf=sv.hover,LLt=sv.normal,lv=sv.selection,yEe=sv.applySelected,BLt=sv.applyHover,NLt=sv.resetItem,pS="none",CEe="seriesSelectionChanged",bEe="pointSelectionChanged",xEe="seriesHoverChanged",wEe="pointHoverChanged",$I="allseriespoints",cN="allargumentpoints",SEe="pointHover",DEe="clearPointHover",EEe="seriesSelect",OEe="pointSelect",TEe="pointDeselect";function kEe(t,n,e){t&&t.trigger(n,e)}function hN(t){return"includepoints"===(t=Ri(t))||t===$I}function dq(t,n){var e=se({},t,n);return e.border=se({},t&&t.border,n&&n.border),e}function qI(t,n){this.fullState=0,this._extGroups=t,this._renderer=t.renderer,this._group=t.renderer.g().attr({class:"dxc-series"}),this._eventTrigger=t.eventTrigger,this._eventPipe=t.eventPipe,this._incidentOccurred=t.incidentOccurred,this._legendCallback=Be,this.updateOptions(n,t)}function pN(t){return t.data}function MEe(t,n){return n&&"logarithmic"===t&&!1===n.getOptions().allowNegatives?e=>e>0:()=>!0}tf.mixins={chart:{},pie:{},polar:{}},tf.mixins.chart.scatter=ys,tf.mixins.polar.scatter=nN,se(tf.mixins.pie,I),se(tf.mixins.chart,js,Hc,$C,iq,uEe,C,Gu),se(tf.mixins.polar,oN,iEe,lN,mEe),qI.prototype={constructor:qI,_createLegendState:Be,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(t){var n=t.mainSeriesColor;this._styles={normal:this._parseStyle(t,n,n),hover:this._parseStyle(t.hoverStyle||{},n,n),selection:this._parseStyle(t.selectionStyle||{},n,n),legendStyles:{normal:this._createLegendState(t,n),hover:this._createLegendState(t.hoverStyle||{},n),selection:this._createLegendState(t.selectionStyle||{},n)}}},setClippingParams(t,n,e){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._paneClipRectID=t,this._widePaneClipRectID=n,this._forceClipping=e,this._clipLabels=i},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:Be,getSizeField:Be,getArgumentField:Be,getPoints:function(){return this._points},getPointsInViewPort:function(){return rv.getPointsInViewPort(this)},_createPoint:function(t,n,e){t.index=n;var i=this.pointsByArgument,r=this._getCreatingPointOptions(t),o=t.argument.valueOf(),a=e;a?a.update(t,r):(a=new q$(this,t,r),this.isSelected()&&hN(this.lastSelectionMode)&&a.setView(lv));var s=i[o];return s?s.push(a):i[o]=[a],a.hasValue()&&this.customizePoint(a,t),a},getRangeData:function(){return this._visible?this._getRangeData():{arg:{},val:{}}},getArgumentRange:function(){return this._visible?rv.getArgumentRange(this):{arg:{},val:{}}},getViewport:function(){return rv.getViewport(this)},_deleteGroup:function(t){var n=this[t];n&&(n.dispose(),this[t]=null)},updateOptions(t,n){var e=t.widgetType,i=this.type,r=t.type;if(this.type=r&&Ri(r.toString()),!this._checkType(e)||this._checkPolarBarType(e,t))return this.dispose(),void(this.isUpdated=!1);i!==this.type?(this._firstDrawing=!0,this._resetType(i,e),this._setType(this.type,e)):this._defineDrawingState(),this._options=t,this._pointOptions=null,this.name=t.name,this.pane=t.pane,this.tag=t.tag,n&&(this._seriesModes=n.commonSeriesModes||this._seriesModes,this._valueAxis=n.valueAxis||this._valueAxis,this.axis=this._valueAxis&&this._valueAxis.name,this._argumentAxis=n.argumentAxis||this._argumentAxis),this._createStyles(t),this._stackName=null,this._updateOptions(t),this._visible=t.visible,this.isUpdated=!0,this.stack=t.stack,this.barOverlapGroup=t.barOverlapGroup,this._createGroups(),this._processEmptyValue=t.ignoreEmptyPoints?o=>null===o?void 0:o:o=>o},_defineDrawingState(){this._firstDrawing=!0},_disposePoints:function(t){we(t||[],function(n,e){e.dispose()})},updateDataType:function(t){return this.argumentType=t.argumentType,this.valueType=t.valueType,this.argumentAxisType=t.argumentAxisType,this.valueAxisType=t.valueAxisType,this.showZero=t.showZero,this._argumentChecker=MEe(t.argumentAxisType,this.getArgumentAxis()),this._valueChecker=MEe(t.valueAxisType,this.getValueAxis()),this},_argumentChecker:function(){return!0},_valueChecker:function(){return!0},getOptions:function(){return this._options},_getOldPoint:function(t,n,e){var i=t.argument&&t.argument.valueOf(),r=(n[i]||[])[0];return r&&n[i].splice(0,1),r},updateData:function(t){var n=this._options,e=n.nameField;(t=t||[]).length&&(this._canRenderCompleteHandle=!0);var i=this._getPointDataSelector(),r=0;this._data=t.reduce((o,a,s)=>{var l=i(a);return Z(l.argument)?(!e||a[e]===n.nameFieldValue)&&(l.index=s,o.push(l)):r++,o},[]),r&&r===t.length&&this._incidentOccurred("W2002",[this.name,this.getArgumentField()]),this._endUpdateData()},_getData(){var t=this._data||[];return this.useAggregation()&&(t=this._resample(this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,this.argumentAxisType!==dN?this.getArgumentRange():{}),t)),t},useAggregation:function(){var t=this.getOptions().aggregation;return t&&t.enabled},autoHidePointMarkersEnabled:Be,usePointsToDefineAutoHiding:Be,createPoints(t){this._normalizeUsingAllAggregatedPoints(t),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(t){this._useAllAggregatedPoints=this.useAggregation()&&(this.argumentAxisType===dN||(this._data||[]).length>1&&!!t)},_createPoints:function(){var t=this,n=t.pointsByArgument||{},e=t._getData();t.pointsByArgument={},t._calculateErrorBars(e);var i={},r=e.reduce((a,s)=>{if(t._checkData(s,i)){var l=a.length,u=t._getOldPoint(s,n,l),f=t._createPoint(s,l,u);a.push(f)}return a},[]);for(var o in i)i[o]===e.length&&t._incidentOccurred("W2002",[t.name,o]);Object.keys(n).forEach(a=>t._disposePoints(n[a])),t._points=r},_removeOldSegments:function(){var t=this,n=t._segments.length;we(t._graphics.splice(n,t._graphics.length)||[],function(e,i){t._removeElement(i)}),t._trackers&&we(t._trackers.splice(n,t._trackers.length)||[],function(e,i){i.remove()})},_drawElements:function(t,n,e){var i=this,r=i._points||[],o=r[0]&&r[0].hasValue()&&i._options.closed,a={markers:i._markersGroup,errorBars:i._errorBarGroup};i._drawnPoints=[],i._graphics=i._graphics||[],i._segments=[];var s=r.reduce(function(l,u){var f=l[l.length-1];return(!u.translated||e)&&(u.translate(),!e&&u.setDefaultCoords()),u.hasValue()&&u.hasCoords()?(e&&i._drawPoint({point:u,groups:a,hasAnimation:t,firstDrawing:n}),f.push(u)):u.hasValue()?u.setInvisibility():f.length&&l.push([]),l},[[]]);s.forEach(function(l,u){l.length&&i._drawSegment(l,t,u,o&&u===this.length-1)},s),i._firstDrawing=!r.length,i._removeOldSegments(),t&&i._animate(n)},draw:function(t,n,e){var i=this._firstDrawing;this._legendCallback=e||this._legendCallback,this._visible?(this._appendInGroup(),this._applyVisibleArea(),this._setGroupsSettings(t,i),!i&&!this._resetApplyingAnimation&&this._drawElements(!1,i,!1),this._drawElements(t,i,!0),n&&this.hideLabels(),this.isSelected()?this._changeStyle(this.lastSelectionMode,void 0,!0):this.isHovered()?this._changeStyle(this.lastHoverMode,void 0,!0):this._applyStyle(this._styles.normal),this._resetApplyingAnimation=!1):this._group.remove()},_setLabelGroupSettings:function(t){var n={class:"dxc-labels","pointer-events":"none"};this._clipLabels&&this._applyElementsClipRect(n),this._applyClearingSettings(n),t&&(n.opacity=.001),this._labelsGroup.attr(n).append(this._extGroups.labelsGroup)},_checkType:function(t){return!!tf.mixins[t][this.type]},_checkPolarBarType:function(t,n){return"polar"===t&&n.spiderWidget&&-1!==this.type.indexOf("bar")},_resetType:function(t,n){var e;if(t)for(e in tf.mixins[n][t])delete this[e]},_setType:function(t,n){var e,i=tf.mixins[n][t];for(e in i)this[e]=i[e]},_setPointsView:function(t,n){this.getPoints().forEach(function(e){n!==e&&e.setView(t)})},_resetPointsView:function(t,n){this.getPoints().forEach(function(e){n!==e&&e.resetView(t)})},_resetNearestPoint:function(){this._nearestPoint&&null!==this._nearestPoint.series&&this._nearestPoint.resetView(nf),this._nearestPoint=null},_setSelectedState:function(t){this.lastSelectionMode=Ri(t||this._options.selectionMode),this.fullState=this.fullState|jI,this._resetNearestPoint(),this._changeStyle(this.lastSelectionMode),this.lastSelectionMode!==pS&&this.isHovered()&&hN(this.lastHoverMode)&&this._resetPointsView(nf)},_releaseSelectedState:function(){this.fullState=this.fullState&~jI,this._changeStyle(this.lastSelectionMode,lv),this.lastSelectionMode!==pS&&this.isHovered()&&hN(this.lastHoverMode)&&this._setPointsView(nf)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},resetApplyingAnimation:function(t){this._resetApplyingAnimation=!0,t&&(this._firstDrawing=!0)},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&Ri(this._options.hoverMode)!==pS},_changeStyle:function(t,n,e){var i=this.fullState,r=[LLt,nf,lv,lv];"none"===this.lastHoverMode&&(i&=~KI),"none"===this.lastSelectionMode&&(i&=~jI),hN(t)&&!e&&(n?this._resetPointsView(n):this._setPointsView(r[i])),this._legendCallback([NLt,BLt,yEe,yEe][i]),this._applyStyle(this._styles[r[i]])},updateHover:function(t,n){var e=this._nearestPoint,i=this.isHovered()&&"nearestpoint"===this.lastHoverMode&&this.getNeighborPoint(t,n);i!==e&&(!this.isSelected()||this.lastSelectionMode===pS)&&(this._resetNearestPoint(),i&&(i.setView(nf),this._nearestPoint=i))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!Z(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(t,n){var r,o,a,s,u,f,e=this._options,i=e.customizePoint,l=e.customizeLabel;l&&l.call&&((r=se({seriesName:this.name},n)).series=this,a=(u=(a=l.call(r,r))&&!pa(a))?se(!0,{},e.label,a):null),i&&i.call&&((r=r||se({seriesName:this.name},n)).series=this,f=(s=i.call(r,r))&&!pa(s)),(u||f)&&((o=this._parsePointOptions(this._preparePointOptions(s),a||e.label,n,t)).styles.useLabelCustomOptions=u,o.styles.usePointCustomOptions=f,t.updateOptions(o))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(t){this._visible=this._options.visible=t,this._updatePointsVisibility(),this.hidePointTooltip(),this._options.visibilityChanged(this)},_updatePointsVisibility:Be,hideLabels:function(){we(this._points,function(t,n){n._label.draw(!1)})},_parsePointOptions:function(t,n,e,i){var r=this._options,o=this._createPointStyles(t,e,i),a=se({},t,{type:r.type,rotated:r.rotated,styles:o,widgetType:r.widgetType,visibilityChanged:r.visibilityChanged});return a.label=function zLt(t,n){var e=t||{},i=se({},e.font)||{},r=e.border||{},o=e.connector||{},a={fill:e.backgroundColor||n,"stroke-width":r.visible&&r.width||0,stroke:r.visible&&r.width?r.color:"none",dashStyle:r.dashStyle},s={stroke:o.visible&&o.width?o.color||n:"none","stroke-width":o.visible&&o.width||0};return i.color="none"===e.backgroundColor&&"#ffffff"===Ri(i.color)&&"inside"!==e.position?n:i.color,{alignment:e.alignment,format:e.format,argumentFormat:e.argumentFormat,customizeText:Yt(e.customizeText)?e.customizeText:void 0,attributes:{font:i},visible:0!==i.size&&e.visible,showForZeroValues:e.showForZeroValues,horizontalOffset:e.horizontalOffset,verticalOffset:e.verticalOffset,radialOffset:e.radialOffset,background:a,position:e.position,connector:s,rotationAngle:e.rotationAngle,wordWrap:e.wordWrap,textOverflow:e.textOverflow,cssClass:e.cssClass,displayFormat:e.displayFormat}}(n,o.normal.fill),this.areErrorBarsVisible()&&(a.errorBars=r.valueErrorBar),a},_preparePointOptions:function(t){var n=this._getOptionsForPoint();return t?function KLt(t,n){var e=dq(t,n);return e.image=se(!0,{},t.image,n.image),e.selectionStyle=dq(t.selectionStyle,n.selectionStyle),e.hoverStyle=dq(t.hoverStyle,n.hoverStyle),e}(n,t):n},_getMarkerGroupOptions:function(){return se(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(t,n){var e=this.getOptions().aggregation,i=Ri(e.method);return"custom"===i&&e.calculate||(t&&!n?a=>{var{data:s}=a;return s[0]}:this._aggregators[i]||this._aggregators[this._defaultAggregator])},_resample(t,n){var{interval:e,ticks:i,aggregateByCategory:r}=t,o=this,a=o.argumentAxisType===dN||o.valueAxisType===dN,s=0,l=this._getPointDataSelector(),u=o.getOptions(),f=(he,fe,Te)=>{if(fe){var Re=He=>{var Ze=He&&l(He,u);Ze&&o._checkData(Ze)&&(Ze.aggregationInfo=Te,he.push(Ze))};Array.isArray(fe)?fe.forEach(Re):Re(fe)}},S=this._getAggregationMethod(a,r);if(a){if(r){var T=this.getArgumentAxis().getTranslator().getBusinessRange().categories,R=T.reduce((he,fe)=>(he[fe.valueOf()]=[],he),{});return n.forEach(he=>{R[he.argument.valueOf()].push(he)}),T.reduce((he,fe)=>(f(he,S({aggregationInterval:null,intervalStart:fe,intervalEnd:fe,data:R[fe.valueOf()].map(pN)},o)),he),[])}return n.reduce((he,fe,Te,Re)=>{if(he[1].push(fe),Te===Re.length-1||(Te+1)%e==0){var Ze={aggregationInterval:e,data:he[1].map(pN)};f(he[0],S(Ze,o)),he[1]=[]}return he},[[],[]])[0]}var L=[];if(1===i.length){var z={intervalStart:i[0],intervalEnd:i[0],aggregationInterval:null,data:n.map(pN)};f(L,S(z,o),z)}else for(var j=1;j<i.length;j++){for(var Y=i[j],ie=i[j-1],te=[];n[s]&&n[s].argument<Y;)n[s].argument>=ie&&te.push(n[s]),s++;var re={intervalStart:ie,intervalEnd:Y,aggregationInterval:e,data:te.map(pN)};f(L,S(re,o),re)}return o._endUpdateData(),L},canRenderCompleteHandle:function(){var t=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!t},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(t){return this._createAllAggregatedPoints(),(this._points||[])[t]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(t){t.isSelected()||(function GLt(t,n){t.fullState|=jI,t.applyView(n)}(t,this._legendCallback),this._eventPipe({action:OEe,target:t}),this._eventTrigger(bEe,{target:t}))},deselectPoint:function(t){t.isSelected()&&(function jLt(t,n){t.fullState&=~jI,t.applyView(n)}(t,this._legendCallback),this._eventPipe({action:TEe,target:t}),this._eventTrigger(bEe,{target:t}))},hover:function(t){var n=this._eventTrigger;this.isHovered()||(this.lastHoverMode=Ri(t||this._options.hoverMode),this.fullState=this.fullState|KI,this._changeStyle(this.lastHoverMode,void 0,this.isSelected()&&this.lastSelectionMode!==pS),n(xEe,{target:this}))},clearHover:function(){var t=this._eventTrigger;this.isHovered()&&(this._resetNearestPoint(),this.fullState=this.fullState&~KI,this._changeStyle(this.lastHoverMode,nf,this.isSelected()&&this.lastSelectionMode!==pS),t(xEe,{target:this}))},hoverPoint:function(t){t.isHovered()||(t.clearHover(),function ULt(t,n){t.fullState|=KI,t.applyView(n)}(t,this._legendCallback),this._canChangeView()&&this._applyStyle(this._styles.hover),this._eventPipe({action:SEe,target:t}),this._eventTrigger(wEe,{target:t}))},clearPointHover:function(){var t=this;t.getPoints().some(function(n){return!!n.isHovered()&&(function WLt(t,n){t.fullState&=~KI,t.applyView(n),t.releaseHoverState()}(n,t._legendCallback),t._canChangeView()&&t._applyStyle(t._styles.normal),t._eventPipe({action:DEe,target:n}),t._eventTrigger(wEe,{target:n}),!0)})},showPointTooltip:function(t){kEe(this._extGroups.seriesGroup,"showpointtooltip",t)},hidePointTooltip:function(t){kEe(this._extGroups.seriesGroup,"hidepointtooltip",t)},select:function(){this.isSelected()||(this._setSelectedState(this._options.selectionMode),this._eventPipe({action:EEe,target:this}),this._group.toForeground(),this._eventTrigger(CEe,{target:this}))},clearSelection:function(){this.isSelected()&&(this._releaseSelectedState(),this._eventTrigger(CEe,{target:this}))},getPointsByArg:function(t,n){var e=t.valueOf(),i=this.pointsByArgument[e];return!i&&!n&&this._createAllAggregatedPoints()&&(i=this.pointsByArgument[e]),i||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints||(this.createPoints(!0),0))},getPointsByKeys:function(t){return this.getPointsByArg(t)},notify:function(t){var n=this,e=t.action,i=n._seriesModes,r=t.target,o=r.getOptions(),a=Ri(o.hoverMode),s=Ri(o.selectionMode);e===SEe?n._hoverPointHandler(r,a,t.notifyLegend):e===DEe?n._clearPointHoverHandler(r,a,t.notifyLegend):e===EEe?r!==n&&"single"===i.seriesSelectionMode&&n.clearSelection():e===OEe?("single"===i.pointSelectionMode&&n.getPoints().some(function(l){return!(l===r||!l.isSelected()||(n.deselectPoint(l),0))}),n._selectPointHandler(r,s)):e===TEe&&n._deselectPointHandler(r,s)},_selectPointHandler:function(t,n){n===$I?t.series===this&&this._setPointsView(lv,t):n===cN&&this.getPointsByKeys(t.argument,t.argumentIndex).forEach(function(e){e!==t&&e.setView(lv)})},_deselectPointHandler:function(t,n){n===$I?t.series===this&&this._resetPointsView(lv,t):n===cN&&this.getPointsByKeys(t.argument,t.argumentIndex).forEach(function(e){e!==t&&e.resetView(lv)})},_hoverPointHandler:function(t,n,e){t.series!==this&&n===cN?(this.getPointsByKeys(t.argument,t.argumentIndex).forEach(function(i){i.setView(nf)}),e&&this._legendCallback(t)):n===$I&&t.series===this&&this._setPointsView(nf,t)},_clearPointHoverHandler:function(t,n,e){n===cN?(t.series!==this&&this.getPointsByKeys(t.argument,t.argumentIndex).forEach(function(i){i.resetView(nf)}),e&&this._legendCallback(t)):n===$I&&t.series===this&&this._resetPointsView(nf,t)},_deletePoints:function(){this._disposePoints(this._points),this._points=this._drawnPoints=null},_deleteTrackers:function(){we(this._trackers||[],function(t,n){n.remove()}),this._trackersGroup&&this._trackersGroup.dispose(),this._trackers=this._trackersGroup=null},dispose:function(){this._deletePoints(),this._group.dispose(),this._labelsGroup&&this._labelsGroup.dispose(),this._errorBarGroup&&this._errorBarGroup.dispose(),this._deleteTrackers(),this._group=this._extGroups=this._markersGroup=this._elementsGroup=this._bordersGroup=this._labelsGroup=this._errorBarGroup=this._graphics=this._rangeData=this._renderer=this._styles=this._options=this._pointOptions=this._drawnPoints=this.pointsByArgument=this._segments=this._prevSeries=null},correctPosition:Be,drawTrackers:Be,getNeighborPoint:Be,areErrorBarsVisible:Be,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(t,n){var e=this.getNeighborPoint(t,n);return null!=e&&e.coordsIn(t,n)?e:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup(){return this._markersGroup},getRenderer(){return this._renderer},removePointElements(){this._markersGroup&&(we(this._points,(t,n)=>n.deleteMarker()),this._markersGroup.dispose(),this._markersGroup=null)},removeGraphicElements(){var t=this;t._elementsGroup&&(t._elementsGroup.dispose(),t._elementsGroup=null),we(t._graphics||[],(n,e)=>{t._removeElement(e)}),t._graphics=null},removeBordersGroup(){this._bordersGroup&&(this._bordersGroup.dispose(),this._bordersGroup=null)}};var AEe=Gj.inherit(function(){var t=function(r){return r?((r=se(!0,{},r)).title=Pn(o=r.title)?{text:o}:o,("logarithmic"===r.type&&r.logarithmBase<=0||r.logarithmBase&&!di(r.logarithmBase))&&(r.logarithmBase=void 0,r.logarithmBaseError=!0),r.label&&r.label.alignment&&(r.label.userAlignment=!0),r):{};var o},n=function(r,o,a){var s=this._theme,l=a^"valueAxis"===r?"verticalAxis":"horizontalAxis",u=t(o),f=t(this._userOptions.commonAxisSettings),S=se(!0,{},s.commonAxisSettings,s[l],s[r],f,u);return S.workWeek=u.workWeek||s[r].workWeek,S.forceUserTickInterval|=Z(u.tickInterval)&&!Z(u.axisDivisionFactor),S},e=function(r,o){o=o||this._userOptions[r];var a=this._theme[r],s=this._mergedSettings[r];return s||(s=wi(a)&&wi(o)?se(!0,{},a,o):Z(o)?o:a,this._mergedSettings[r]=s,s)},i={base:e,argumentAxis:n,valueAxisRangeSelector:function(){return e.call(this,"valueAxis")},valueAxis:n,series:function(r,o,a){var ie,fe,s=this,l=s._theme,u=s._userOptions.commonSeriesSettings||{},f=l.commonSeriesSettings,S=s._themeSection.split(".").slice(-1)[0],T=Ri(o.type||u.type||f.type||"pie"===S&&l.type),R=s.palette,L=~T.indexOf("bar"),z=~T.indexOf("line"),j=~T.indexOf("area"),Y="bubble"===T,te=s.getOptions("resolveLabelsOverlapping"),re=s.getOptions("containerBackgroundColor"),he=i.seriesTemplate.call(this);(L||Y)&&(fe=(o=se(!0,{},u,u[T],o)).visible,u={type:{}},se(!0,o,o.point),o.visible=fe);var Te=se(!0,{aggregation:{}},f,f[T],u,u[T],o);return Te.aggregation.enabled="chart"===S&&!!Te.aggregation.enabled,Te.type=T,Te.widgetType=S,Te.containerBackgroundColor=re,ie="pie"!==S?Te.color||R.getNextColor(a):function(Re,He,Ze){var at="".concat(Re,"-").concat(He);return s._multiPieColors[at]||(s._multiPieColors[at]=R.getNextColor(Ze)),s._multiPieColors[at]},Te.mainSeriesColor=ie,Te.resolveLabelsOverlapping=te,Te.label&&(z||j&&"rangearea"!==T||"scatter"===T)&&(Te.label.position="outside"),he&&(Te.nameField=he.nameField),Te},animation:function(r){var o=this._userOptions[r];return o=wi(o)?o:Z(o)?{enabled:!!o}:{},e.call(this,r,o)},seriesTemplate(){var r=e.call(this,"seriesTemplate");return r&&(r.nameField=r.nameField||"series"),r},zoomAndPan(){function r(a){var s="pan"===(a=Ri(a))||"both"===a,l="zoom"===a||"both"===a;return{pan:s,zoom:l,none:!s&&!l}}var o=e.call(this,"zoomAndPan");return{valueAxis:r(o.valueAxis),argumentAxis:r(o.argumentAxis),dragToZoom:!!o.dragToZoom,dragBoxStyle:{class:"dxc-shutter",fill:o.dragBoxStyle.color,opacity:o.dragBoxStyle.opacity},panKey:o.panKey,allowMouseWheel:!!o.allowMouseWheel,allowTouchGestures:!!o.allowTouchGestures}}};return{_themeSection:"chart",ctor:function(r){var o=this;o.callBase.apply(o,arguments);var a=r.options||{};o._userOptions=a,o._mergeAxisTitleOptions=[],o._multiPieColors={},o._callback=Be},dispose:function(){var r=this;return r.palette&&r.palette.dispose(),r.palette=r._userOptions=r._mergedSettings=r._multiPieColors=null,r.callBase.apply(r,arguments)},resetPalette:function(){this.palette.reset(),this._multiPieColors={}},getOptions:function(r){return(i[r]||i.base).apply(this,arguments)},refresh:function(){return this._mergedSettings={},this.callBase.apply(this,arguments)},_initializeTheme:function(){var r=this;r.callBase.apply(r,arguments),r.updatePalette()},resetOptions:function(r){this._mergedSettings[r]=null},update:function(r){this._userOptions=r},updatePalette:function(){this.palette=this.createPalette(this.getOptions("palette"),{useHighlight:!0,extensionMode:this.getOptions("paletteExtensionMode")})}}}()),{floor:Pp,sqrt:$Lt}=Math,YI=Math.min,cq=Math.max,gS=Mp.radialLabelIndent;function FEe(t,n,e){return e<t?t:n<e?n:e}function PEe(t){if(t._label.isVisible()&&"inside"!==t._label.getLayoutOptions().position)return t._label.getBoundingRect()}function REe(t){return t.reduce(function(n,e){var i=e.getVisiblePoints().reduce(function(o,a){var s=PEe(a);return s&&s.width>o&&(o=s.width),o},0),r=i;return i&&(n.outerLabelsCount++,n.outerLabelsCount>1&&(i+=Mp.pieLabelSpacing),r+=Mp.pieLabelSpacing),n.sizes.push(i),n.rSizes.push(r),n.common+=i,n},{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function LEe(t,n,e,i,r,o){var a,s,l=0,u=t.sizes,f=t.rSizes;for(s=0;s<e.length;s++)0!==u[s]?(a=Pp(a?a+f[s-1]:n),e[s].correctLabelRadius(a),l+=r||u[s],f[s]=r||f[s],e[s].setVisibleArea({left:Pp(o-n-l),right:Pp(i.width-(o+n+l)),top:i.top,bottom:i.bottom,width:i.width,height:i.height})):a&&(a+=f[s-1])}function BEe(t){var{type:n,innerRadius:e}=t;return"pie"===n?0:di(e)?Number(e):.5}function gN(){}function NEe(t,n,e,i){return(t-n-gS-e.left)/i.outerLabelsCount}function JLt(t,n,e,i,r,o){var s,a=REe(e),l=function XLt(t,n,e){return t-n.left-(e.outerLabelsCount>0?e.common+gS:0)}(r,n,a);return l<i?s=NEe(r,t=i,n,a):t=YI(function YLt(t,n,e,i,r){return t.some(function(o){return o.getVisiblePoints().reduce(function(a,s){var l=PEe(s);if(l){var u=FEe(l.x,l.x+l.width,n),f=FEe(l.y,l.y+l.height,e);i=YI(cq(function ZLt(t,n,e,i){return $Lt((t-e)*(t-e)+(n-i)*(n-i))}(u,f,n,e)-gS,r),i),a=!0}return a},!1)}),i}(e,r,o,t,i),l),LEe(a,t+gS,e,n,s,r),t}function QLt(t){return new yI(null,{x:t.left,y:t.top,width:t.width-t.left-t.right,height:t.height-t.top-t.bottom})}gN.prototype={constructor:gN,setOptions:function(t){this._options=t},applyPieChartSeriesLayout:function(t,n,e){var l,u,i=t.height-t.top-t.bottom,r=t.width-t.left-t.right,o=r/2+t.left,a=i/2+t.top,s=this._options.piePercentage;return di(s)?l=u=s*YI(t.height,t.width)/2:(l=YI(r,i)/2,u=this._options.minPiePercentage*l),e||(l=JLt(l,t,n,u,o,a)),{centerX:Pp(o),centerY:Pp(a),radiusInner:Pp(l*BEe(n[0])),radiusOuter:Pp(l)}},applyEqualPieChartLayout:function(t,n){var e=n.radius;return{centerX:Pp(n.x),centerY:Pp(n.y),radiusInner:Pp(e*BEe(t[0])),radiusOuter:Pp(e)}},correctPieLabelRadius:function(t,n,e){var r,i=REe(t),o=n.radiusOuter+gS;i.common+gS>n.centerX-e.left-o&&(r=NEe(n.centerX,n.radiusOuter,e,i)),LEe(i,o,t,e,r,n.centerX)},needMoreSpaceForPanesCanvas(t,n,e){var i=this._options,r=i.width,o=i.height,a=i.piePercentage,s=di(a),l=0,u=0;return t.forEach(f=>{var S=f.canvas,T=s?YI(S.width,S.height)*a:void 0,R=e?e(f):{width:!1,height:!1},L=R.width?0:(s?T:r)-(S.width-S.left-S.right),z=R.height?0:(s?T:o)-(S.height-S.top-S.bottom);n?(l+=L>0?L:0,u=cq(z>0?z:0,u)):(l=cq(L>0?L:0,l),u+=z>0?z:0)}),(l>0||u>0)&&{width:l,height:u}},layoutInsideLegend:function(t,n){var e=t.getLayoutOptions();if(e){var i=e.position,r=e.cutSide,o={horizontal:i.horizontal,vertical:i.vertical};n[e.cutLayoutSide]+="horizontal"===e.cutSide?e.width:e.height,o[r]={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"}[o[r]],t.position({of:QLt(n),my:o,at:i})}}};var fS=Math.floor,VEe=Mp.events,HEe=Mp.states,eBt=HEe.hoverMark,tBt=HEe.normalMark,mS="dxChartTracker",fN="."+mS,hq=kt([qn.down,qn.move],mS),zEe="legendClick",pq="seriesClick",UEe="pointClick",WEe="chart-data-point",gq="chart-data-series",GEe="chart-data-argument",KEe="allargumentpoints",$Ee="includepoints",oBt=[$Ee,"excludepoints","none"];function qC(t,n,e){var i=t.target;if("tspan"===i.tagName)return i.parentNode[n];var r=i[n];return e&&!Z(r)?function o(a){if(a.parentNode)return Z(a.parentNode[n])?a.parentNode[n]:o(a.parentNode)}(i):r}function qEe(t,n,e){var{event:i,cancel:r}=t,o=i.cancel,a=r||o;return o&&Wr.log("W0003","".concat(e,"Ckick handler argument"),"event.cancel","22.1","Use the 'cancel' field instead"),a||!n.getOptions()}function YEe(t){var n=t.getOptions().hoverMode;return"none"===n?n:KEe}var Ym={ctor:function(t){var n=this,e={tracker:n};n._renderer=t.renderer,n._legend=t.legend,n._tooltip=t.tooltip,n._eventTrigger=t.eventTrigger,n._seriesGroup=t.seriesGroup,t.seriesGroup.off(fN).on(kt(VEe.showPointTooltip,mS),e,n._showPointTooltip).on(kt(VEe.hidePointTooltip,mS),e,n._hidePointTooltip),n._renderer.root.off(fN).on(hq,e,n._pointerHandler).on(kt(qn.up,mS),()=>clearTimeout(n._holdTimer)).on(kt(Vi,mS),e,n._clickHandler)},update:function(t){this._chart=t.chart},updateSeries(t,n){var e=this,i=!(null!=t&&t.some(r=>r===e.hoveredSeries)||e._hoveredPoint&&e._hoveredPoint.series);e._storedSeries!==t&&(e._storedSeries=t||[]),i&&(e._clean(),e._renderer.initHatching()),n&&(e.clearSelection(),i||(e._hideTooltip(e.pointAtShownTooltip),e.clearHover()))},setCanvases:function(t,n){this._mainCanvas=t,this._canvases=n},repairTooltip:function(){var t=this.pointAtShownTooltip;t&&t.series&&t.isVisible()?this._showTooltip(t):this._hideTooltip(t,!0)},_setHoveredPoint:function(t){t!==this._hoveredPoint&&(this._releaseHoveredPoint(),t.hover(),this._hoveredPoint=t)},_releaseHoveredPoint:function(t){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint,!1,t))},_setHoveredSeries:function(t,n){this._releaseHoveredSeries(),this._releaseHoveredPoint(),t.hover(n),this.hoveredSeries=t},_releaseHoveredSeries(){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection(){this._storedSeries.forEach(t=>{t&&(t.clearSelection(),t.getPoints().forEach(n=>n.clearSelection()))})},_clean:function(){this.hoveredPoint=this.hoveredSeries=this._hoveredArgumentPoints=null,this._hideTooltip(this.pointAtShownTooltip)},clearHover:function(t){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint(t)},_hideTooltip:function(t,n,e){!this._tooltip||t&&this.pointAtShownTooltip!==t||(!n&&this.pointAtShownTooltip&&(this.pointAtShownTooltip=null),this._tooltip.hide(!!e))},_showTooltip:function(t){var e,n=this,i={target:t};if(null!=t&&t.getOptions()){if(e=t.getTooltipFormatObject(n._tooltip,n._tooltip.isShared()&&n._chart.getStackedPoints(t)),!Z(e.valueText)&&!e.points||!t.isVisible())return;var r=t.getTooltipParams(n._tooltip.getLocation()),o=n._renderer.getRootOffset();r.x+=o.left,r.y+=o.top;var a=s=>{s&&(n.pointAtShownTooltip=t)};a(n._tooltip.show(e,r,i,void 0,a))}},_showPointTooltip:function(t,n){var e=t.data.tracker,i=e.pointAtShownTooltip;i&&i!==n&&e._hideTooltip(i),e._showTooltip(n)},_hidePointTooltip:function(t,n){t.data.tracker._hideTooltip(n,!1,!0)},_enableOutHandler:function(){if(!this._outHandler){var t=this,n=function(e){var i=t._renderer.getRootOffset(),r=fS(e.pageX-i.left),o=fS(e.pageY-i.top);!Tj(t._mainCanvas,r,o)&&!t._isCursorOnTooltip(e)&&(t._pointerOut(),t._disableOutHandler())};Se.on(It.getDocument(),hq,n),this._outHandler=n}},_isCursorOnTooltip:function(t){return this._tooltip.isEnabled()&&this._tooltip.isCursorOnTooltip(t.pageX,t.pageY)},_disableOutHandler:function(){this._outHandler&&Se.off(It.getDocument(),hq,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(t){this.clearHover(!0),(t||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip,!1,!0)},_triggerLegendClick:function(t,n){var e=this._eventTrigger;e(zEe,t,function(){!qEe(t,t.target,"Legend")&&e(n,t)})},_hoverLegendItem:function(t,n){var i,e=this._legend.getItemByCoord(t,n),r=function aBt(t){return oBt.indexOf(t)>-1?t:$Ee}(this._legend.getOptions().hoverMode);e?((!(i=this._storedSeries[e.id]).isHovered()||i.lastHoverMode!==r)&&this._setHoveredSeries(i,r),this._tooltip.isEnabled()&&this._hideTooltip(this.pointAtShownTooltip)):this.clearHover()},_hoverArgument:function(t,n){var e=this._getArgumentHoverMode();Z(t)&&(this._releaseHoveredPoint(),this._hoveredArgument=t,this._argumentIndex=n,this._notifySeries({action:"pointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{argument:t,fullState:eBt,argumentIndex:n,getOptions:function(){return{hoverMode:e}}}}))},_resetHoveredArgument:function(){var t;Z(this._hoveredArgument)&&(t=this._getArgumentHoverMode(),this._notifySeries({action:"clearPointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{fullState:tBt,argumentIndex:this._argumentIndex,argument:this._hoveredArgument,getOptions:function(){return{hoverMode:t}}}}),this._hoveredArgument=null)},_notifySeries:function(t){this._storedSeries.forEach(function(n){n.notify(t)})},_pointerHandler:function(t){var n,e=t.data.tracker,i=e._renderer.getRootOffset(),r=fS(t.pageX-i.left),o=fS(t.pageY-i.top),a=e._getCanvas(r,o),s=qC(t,gq),l=qC(t,WEe)||(null===(n=s)||void 0===n?void 0:n.getPointByCoord(r,o));if(e._isHolding=!1,clearTimeout(e._holdTimer),t.type===qn.down&&(e._holdTimer=setTimeout(()=>e._isHolding=!0,300)),l&&!l.getMarkerVisibility()&&(l=void 0),e._enableOutHandler(),e._legend.coordsIn(r,o))e._hoverLegendItem(r,o);else if(e.hoveredSeries&&e.hoveredSeries!==e._stuckSeries&&e._releaseHoveredSeries(),!e._hoverArgumentAxis(r,o,t)&&(e._isPointerOut(a,l)&&e._pointerOut(),a||l)){if(s&&!l){if(l=s.getNeighborPoint(r,o),!e._stickyHovering&&l&&!l.coordsIn(r,o)&&(l=null),s!==e.hoveredSeries)return void e._setTimeout(function(){e._setHoveredSeries(s),e._setStuckSeries(t,s,r,o),e._pointerComplete(l,r,o)},s)}else{if(l){if(t.type!==qn.move&&"touch"!==t.pointerType)return;return void(e.hoveredSeries?e._setTimeout(()=>e._pointerOnPoint(l,r,o,t),l):e._pointerOnPoint(l,r,o,t))}var u;e._setStuckSeries(t,void 0,r,o)&&e._stickyHovering?(l=(s=e._stuckSeries).getNeighborPoint(r,o),e._releaseHoveredSeries(),null!==(u=l)&&void 0!==u&&u.getMarkerVisibility()&&e._setHoveredPoint(l)):e._stickyHovering||e._pointerOut()}e._pointerComplete(l,r,o)}},_pointerOnPoint:function(t,n,e){this._resetHoveredArgument(),this._setHoveredPoint(t),this._pointerComplete(t,n,e)},_pointerComplete:function(t){this.pointAtShownTooltip!==t&&this._tooltip.isEnabled()&&this._showTooltip(t)},_clickHandler:function(t){var n,e=t.data.tracker;if(!e._isHolding){var i=e._renderer.getRootOffset(),r=fS(t.pageX-i.left),o=fS(t.pageY-i.top),a=qC(t,WEe),s=e._stuckSeries||qC(t,gq)||(null===(n=a)||void 0===n?void 0:n.series),l=e._argumentAxis;if(e._legend.coordsIn(r,o)){var u=e._legend.getItemByCoord(r,o);u&&e._legendClick(u,t)}else if(null!=l&&l.coordsIn(r,o)){var f=qC(t,GEe,!0);Z(f)&&e._eventTrigger("argumentAxisClick",{argument:f,event:t})}else if(s){var S;null!==(S=a=a||s.getPointByCoord(r,o))&&void 0!==S&&S.getMarkerVisibility()?e._pointClick(a,t):qC(t,gq)&&e._eventTrigger(pq,{target:s,event:t})}}},dispose:function(){this._disableOutHandler(),this._renderer.root.off(fN),this._seriesGroup.off(fN)}},ZEe=function(t){this.ctor(t)};se(ZEe.prototype,Ym,{_pointClick:function(t,n){var e=this._eventTrigger,i=t.series,r={target:t,event:n};e(UEe,r,function(){!qEe(r,i,"Point")&&e(pq,{target:i,event:n})})},update:function(t){Ym.update.call(this,t),this._argumentAxis=t.argumentAxis||{},this._axisHoverEnabled=this._argumentAxis&&Ri(this._argumentAxis.getOptions().hoverMode)===KEe,this._rotated=t.rotated,this._crosshair=t.crosshair,this._stickyHovering=t.stickyHovering},_getCanvas:function(t,n){for(var e=this._canvases||[],i=0;i<e.length;i++){var r=e[i];if(Tj(r,t,n))return r}return null},_isPointerOut:function(t){return!t&&this._stuckSeries},_hideCrosshair:function(){var t;null===(t=this._crosshair)||void 0===t||t.hide()},_moveCrosshair:function(t,n,e){this._crosshair&&null!=t&&t.isVisible()&&this._crosshair.show({point:t,x:n,y:e})},_clean:function(){Ym._clean.call(this),this._resetTimer(),this._stuckSeries=null},_getSeriesForShared:function(t,n){var e,i=[],r=null,o=1/0;return this._tooltip.isShared()&&!this.hoveredSeries&&(we(this._storedSeries,function(a,s){var l=s.getNeighborPoint(t,n);l&&i.push(l)}),we(i,function(a,s){var l=s.getCrosshairData(t,n),u=sB(t,n,l.x,l.y);u<o&&(r=s,o=u)})),null===(e=r)||void 0===e?void 0:e.series},_setTimeout:function(t,n){var e=this;e._timeoutKeeper!==n&&(e._resetTimer(),e._hoverTimeout=setTimeout(function(){t(),e._timeoutKeeper=null},100),e._timeoutKeeper=n)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_stopEvent:function(t){(!Z(t.cancelable)||t.cancelable)&&(t.preventDefault(),t.stopPropagation())},_setStuckSeries:function(t,n,e,i){return this._stuckSeries="mouse"!==t.pointerType?null:n||this._stuckSeries||this._getSeriesForShared(e,i),!!this._stuckSeries},_pointerOut:function(){var t=this;t._stuckSeries=null,t._hideCrosshair(),t._resetTimer(),Ym._pointerOut.apply(t,arguments)},_hoverArgumentAxis:function(t,n,e){if(this._resetHoveredArgument(),this._axisHoverEnabled&&this._argumentAxis.coordsIn(t,n))return this._hoverArgument(qC(e,GEe,!0)),!0},_pointerComplete:function(t,n,e){this.hoveredSeries&&this.hoveredSeries.updateHover(n,e),this._resetTimer(),this._moveCrosshair(t,n,e),Ym._pointerComplete.call(this,t)},_legendClick:function(t,n){this._triggerLegendClick({target:this._storedSeries[t.id],event:n},pq)},_hoverLegendItem:function(t,n){this._stuckSeries=null,this._hideCrosshair(),Ym._hoverLegendItem.call(this,t,n)},_pointerOnPoint:function(t,n,e,i){this._setStuckSeries(i,t.series,n,e),this._releaseHoveredSeries(),Ym._pointerOnPoint.call(this,t,n,e,i)},_notifyLegendOnHoverArgument:!1,_getArgumentHoverMode:function(){return YEe(this._argumentAxis)},dispose:function(){this._resetTimer(),Ym.dispose.call(this)}});var XEe=function(t){this.ctor(t)};se(XEe.prototype,Ym,{_isPointerOut:function(t,n){return!n},_legendClick:function(t,n){var e=[];this._storedSeries.forEach(i=>e.push.apply(e,i.getPointsByKeys(t.argument,t.argumentIndex))),this._eventTrigger(zEe,{target:t.argument,points:e,event:n})},_pointClick:function(t,n){this._eventTrigger(UEe,{target:t,event:n})},_hoverLegendItem:function(t,n){var e=this._legend.getItemByCoord(t,n);e&&this._hoveredArgument!==e.argument?(this._resetHoveredArgument(),this._hoverArgument(e.argument,e.argumentIndex)):e||this.clearHover()},_getArgumentHoverMode:function(){return YEe(this._legend)},_hoverArgumentAxis:Be,_setStuckSeries:Be,_getCanvas:Be,_notifyLegendOnHoverArgument:!0});var mN,sBt=bp.postCtor,JEe={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(mN in bp)"postCtor"!==mN&&(JEe[mN]=bp[mN]);var _S={name:"data_source",init:function(){sBt.call(this)},dispose:Be,members:JEe},lBt=Array.isArray,_N="_forceRender",tOe=["_reinit","_updateDataSource","_dataInit",_N,"_resize"],vN="font";function gBt(t,n){var e=n.end-n.start,i=0;for(t.forEach(function(r){i+=r.getBoundingRect().width});e<i;)i-=fBt(t)}function fBt(t){var n=t.reduce(function(i,r,o){if(!r)return i;var a=r.value();return a<i.value?{value:a,rollingStock:r,index:o}:i},{rollingStock:void 0,value:1/0,index:void 0});n.rollingStock.getLabels()[0].draw(!1);var e=n.rollingStock.getBoundingRect().width;return t[n.index]=null,e}function mBt(t){var n,e,i,r,o=!1;for(n=0,i=t.length-1;n<i;n++){for(e=n+1,r=t.length;e<r;e++)if(n!==e&&nOe(t[n],t[e],!0)){o=!0;break}if(o)break}return o}function nOe(t,n,e){if(t&&n){var i=t.getBoundingRect(),r=n.getBoundingRect();return i.end>r.start&&(!e||i.oppositeStart<=r.oppositeStart&&i.oppositeEnd>r.oppositeStart||r.oppositeStart<=i.oppositeStart&&r.oppositeEnd>i.oppositeStart)}}function vBt(t){var n=[],e=[];return t.forEach(i=>{i.value()>0?n.push(i):e.unshift(i)}),n.concat(e)}function yBt(t){var n,e,i;for(n=0;n<t.length-1;n++)nOe(e=i||t[n],t[n+1])?(e.toChain(t[n+1]),t[n+1]=null,i=e):i=t[n+1]||e}function CBt(t,n){var e,i,r,o,a;for(e=0;e<t.length;e++){if(bBt(r=t[e],n))for(a=r.getBoundingRect(),i=e+1;i<t.length;i++)if((o=t[i])&&o.getBoundingRect().end>a.start-(a.end-n.end)){o.toChain(r),t[e]=r=null;break}r&&r.setRollingStockInCanvas(n)}}function bBt(t,n){return t&&t.getBoundingRect().end>n.end}function iOe(t,n,e){var i=t.getBoundingRect(),r=i.x,o=i.y,a=i.x+i.width,s=i.y+i.height;return this.labels=[t],this.shiftFunction=e,this._bBox={start:n?r:o,width:n?i.width:i.height,end:n?a:s,oppositeStart:n?o:r,oppositeEnd:n?s:a},this._initialPosition=n?i.x:i.y,this}function SBt(t,n){return(t.x<=n.x&&n.x<=t.x+t.width||t.x>=n.x&&t.x<=n.x+n.width)&&(t.y<=n.y&&n.y<=t.y+t.height||t.y>=n.y&&t.y<=n.y+n.height)}iOe.prototype={toChain:function(t){var n=t.getBoundingRect();t.shift(n.start-this._bBox.end),this._changeBoxWidth(n.width),this.labels=this.labels.concat(t.labels)},getBoundingRect:function(){return this._bBox},shift:function(t){var n=this.shiftFunction;we(this.labels,function(e,i){var r=i.getBoundingRect(),o=n(r,t);i.hideInsideLabel(o)||i.shift(o.x,o.y)}),this._bBox.end-=t,this._bBox.start-=t},setRollingStockInCanvas:function(t){this._bBox.end>t.end&&this.shift(this._bBox.end-t.end)},getLabels:function(){return this.labels},value(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(t){this._bBox.end+=t,this._bBox.width+=t}};var mq_resolveLabelOverlappingInOneDirection=function _Bt(t,n,e,i,r){var u,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:()=>0,a=[],s={start:e?n.left:n.top,end:e?n.width-n.right:n.height-n.bottom},l=!1;if(t.forEach(function(S){S&&(l=l||S.series.isStackedSeries()||S.series.isFullStackedSeries(),S.getLabels().forEach(function(T){T.isVisible()&&a.push(new iOe(T,e,r))}))}),l)!e^i&&a.reverse(),u=i?a:vBt(a);else{var f=a.slice();u=a.sort(function(S,T){return o(S,T)||S.getInitialPosition()-T.getInitialPosition()||f.indexOf(S)-f.indexOf(T)})}return!!mBt(u)&&(gBt(u,s),yBt(u),u.reverse(),CBt(u,s),!0)},Hh=V_.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done",actionSettings:{excludeValidators:["disabled"]}},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend."+vN,"legend.title."+vN,"legend.title.subtitle."+vN,"commonSeriesSettings.label."+vN],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions(){var t=this.callBase.apply(this,arguments);return t.options=this.option(),t},_createThemeManager:function(){var t=this.option(),n=new AEe(this._getThemeManagerOptions());return n.setTheme(t.theme,t.rtlEnabled),n},_initCore:function(){this._canvasClipRect=this._renderer.clipRect(),this._createHtmlStructure(),this._createLegend(),this._createTracker(),this._needHandleRenderComplete=!0,this.layoutManager=new gN,this._createScrollBar(),Se.on(this._$element,"contextmenu",function(t){(ym(t)||FU(t))&&t.preventDefault()}),Se.on(this._$element,"MSHoldVisual",function(t){t.preventDefault()})},_getLayoutItems:Be,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit(){nI(this._canvas),this._reinitAxes(),this._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:Be,_createHtmlStructure:function(){var t=this,n=t._renderer,e=n.root,i=function(){return n.g().attr({class:"dxc-constant-lines-group"}).linkOn(e,"constant-lines")};t._constantLinesGroup={dispose:function(){this.under.dispose(),this.above.dispose()},linkOff:function(){this.under.linkOff(),this.above.linkOff()},clear:function(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend:function(){this.under.linkAppend(),this.above.linkAppend()}},t._labelsAxesGroup=n.g().attr({class:"dxc-elements-axes-group"});var r=()=>{t._labelsAxesGroup.linkOn(e,"elements")};t._backgroundRect=n.rect().attr({fill:"gray",opacity:1e-4}).append(e),t._panesBackgroundGroup=n.g().attr({class:"dxc-background"}).append(e),t._stripsGroup=n.g().attr({class:"dxc-strips-group"}).linkOn(e,"strips"),t._gridGroup=n.g().attr({class:"dxc-grids-group"}).linkOn(e,"grids"),t._panesBorderGroup=n.g().attr({class:"dxc-border"}).linkOn(e,"border"),t._axesGroup=n.g().attr({class:"dxc-axes-group"}).linkOn(e,"axes"),t._executeAppendBeforeSeries(r),t._stripLabelAxesGroup=n.g().attr({class:"dxc-strips-labels-group"}).linkOn(e,"strips-labels"),t._constantLinesGroup.under=i(),t._seriesGroup=n.g().attr({class:"dxc-series-group"}).linkOn(e,"series"),t._executeAppendAfterSeries(r),t._constantLinesGroup.above=i(),t._scaleBreaksGroup=n.g().attr({class:"dxc-scale-breaks"}).linkOn(e,"scale-breaks"),t._labelsGroup=n.g().attr({class:"dxc-labels-group"}).linkOn(e,"labels"),t._crosshairCursorGroup=n.g().attr({class:"dxc-crosshair-cursor"}).linkOn(e,"crosshair"),t._legendGroup=n.g().attr({class:"dxc-legend","clip-path":t._getCanvasClipRectID()}).linkOn(e,"legend").linkAppend(e).enableLinks(),t._scrollBarGroup=n.g().attr({class:"dxc-scroll-bar"}).linkOn(e,"scroll-bar")},_executeAppendBeforeSeries(){},_executeAppendAfterSeries(){},_disposeObjectsInArray:function(t,n){we(this[t]||[],function(e,i){n&&i?we(n,function(r,o){i[o]&&i[o].dispose()}):i&&i.dispose()}),this[t]=null},_disposeCore:function(){var t=this,n=function(r){t[r]&&(t[r].dispose(),t[r]=null)},e=function(r){t[r].linkOff()},i=this._disposeObjectsInArray;t._renderer.stopAllAnimations(),i.call(t,"series"),n("_tracker"),n("_crosshair"),t.layoutManager=t._userOptions=t._canvas=t._groupsData=null,e("_stripsGroup"),e("_gridGroup"),e("_axesGroup"),e("_constantLinesGroup"),e("_stripLabelAxesGroup"),e("_panesBorderGroup"),e("_seriesGroup"),e("_labelsGroup"),e("_crosshairCursorGroup"),e("_legendGroup"),e("_scrollBarGroup"),e("_scaleBreaksGroup"),n("_canvasClipRect"),n("_panesBackgroundGroup"),n("_backgroundRect"),n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_stripLabelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_legendGroup"),n("_scrollBarGroup"),n("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(t){return this._themeManager.getOptions(t)},_applySize:function(t){this._rect=t.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData("_resize")},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){this._tracker=new y[this._trackerType]({seriesGroup:this._seriesGroup,renderer:this._renderer,tooltip:this._tooltip,legend:this._legend,eventTrigger:this._eventTrigger})},_getTrackerSettings:function(){return se({chart:this},this._getSelectionModes())},_getSelectionModes:function(){var t=this._themeManager;return{seriesSelectionMode:t.getOptions("seriesSelectionMode"),pointSelectionMode:t.getOptions("pointSelectionMode")}},_updateTracker:function(t){this._tracker.update(this._getTrackerSettings()),this._tracker.setCanvases({left:0,right:this._canvas.width,top:0,bottom:this._canvas.height},t)},_createCanvasFromRect(t){var n=this._canvas;return nI({left:t[0],top:t[1],right:n.width-t[2],bottom:n.height-t[3],width:n.width,height:n.height})},_doRender:function(t){if(0!==this._canvas.width||0!==this._canvas.height){this._resetIsReady();var n=this._prepareDrawOptions(t),e=n.recreateCanvas;this._preserveOriginalCanvas(),e?this.__currentCanvas=this._canvas:this._canvas=this.__currentCanvas,e&&this._updateCanvasClipRect(this._canvas),this._canvas=this._createCanvasFromRect(this._rect),this._renderer.stopAllAnimations(!0),this._cleanGroups();var i=new Date;this._renderElements(n),this._lastRenderingTime=new Date-i}},_preserveOriginalCanvas(){this.__originalCanvas=this._canvas,this._canvas=se({},this._canvas)},_layoutAxes:Be,_renderElements:function(t){var a,s,l,n=this,e=n._prepareToRender(t),i=n._isRotated(),r=n._isLegendInside(),o=[];se({},n._canvas),n._renderer.lock(),t.drawLegend&&n._legend&&n._legendGroup.linkAppend(),n.layoutManager.setOptions(n._layoutManagerOptions());var u=n._getLayoutTargets();this._layoutAxes(f=>{var S=f?se({},t,{animate:!1,recreateCanvas:!0}):t,T=n._renderAxes(S,e);n._shrinkAxes(f,T)}),n._applyClipRects(e),n._appendSeriesGroups(),n._createCrosshairCursor(),u.forEach(f=>{var{canvas:S}=f;o.push({left:S.left,right:S.width-S.right,top:S.top,bottom:S.height-S.bottom})}),n._scrollBar&&("discrete"===(a=n._argumentAxes[0].getTranslator().getBusinessRange()).axisType&&a.categories&&a.categories.length<=1||"discrete"!==a.axisType&&a.min===a.max?s=l=void 0:(s=a.minVisible,l=a.maxVisible),n._scrollBar.init(a,!n._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(s,l)),n._updateTracker(o),n._updateLegendPosition(t,r),n._applyPointMarkersAutoHiding(),n._renderSeries(t,i,r),n._renderer.unlock()},_updateLegendPosition:Be,_createCrosshairCursor:Be,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(t,n,e){this._calculateSeriesLayout(t,n),this._renderSeriesElements(t,e)},_calculateSeriesLayout:function(t,n){t.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),n)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(t)},_getArgFilter:()=>()=>!0,_getValFilter:t=>()=>!0,_getPointsToAnimation(t){var n=this._getArgFilter();return t.map(e=>{var i=this._getValFilter(e);return e.getPoints().filter(r=>r.getOptions().visible&&n(r.argument)&&(i(r.getMinValue(!0))||i(r.getMaxValue(!0)))).length})},_renderSeriesElements:function(t,n){var e,r,i=this.series,o=i.length,a=this._themeManager.getOptions("resolveLabelOverlapping"),s=this._getPointsToAnimation(i);for(e=0;e<o;e++)this._applyExtraSettings(r=i[e],t),r.draw(t.animate&&s[e]<=t.animationPointsLimit&&this._renderer.animationEnabled(),t.hideLayoutLabels,this._getLegendCallBack(r));"none"===a?this._adjustSeriesLabels(!1):this._locateLabels(a),this._renderTrackers(n),this._tracker.repairTooltip(),this._renderExtraElements(),this._clearCanvas(),this._seriesElementsDrawn=!0},_changesApplied(){this._seriesElementsDrawn&&(this._seriesElementsDrawn=!1,this._drawn(),this._renderCompleteHandler())},_locateLabels(t){this._resolveLabelOverlapping(t)},_renderExtraElements(){},_clearCanvas:function(){this._canvas=this.__originalCanvas},_resolveLabelOverlapping:function(t){var n;switch(t){case"stack":n=this._resolveLabelOverlappingStack;break;case"hide":n=this._resolveLabelOverlappingHide;break;case"shift":n=this._resolveLabelOverlappingShift}return Yt(n)&&n.call(this)},_getVisibleSeries:function(){return Vs(this.getAllSeries(),function(t){return t.isVisible()})},_resolveLabelOverlappingHide:function(){var n,e,i,o,a,s,t=[],l=this._getVisibleSeries();for(o=0;o<l.length;o++)for(s=l[o].getVisiblePoints(),a=0;a<s.length;a++)t.push.apply(t,s[a].getLabels());for(o=0;o<t.length;o++)if((n=t[o]).isVisible())for(i=n.getBoundingRect(),a=o+1;a<t.length;a++)SBt(i,(e=t[a]).getBoundingRect())&&e.draw(!1)},_cleanGroups:function(){this._stripsGroup.linkRemove().clear(),this._gridGroup.linkRemove().clear(),this._axesGroup.linkRemove().clear(),this._constantLinesGroup.clear(),this._stripLabelAxesGroup.linkRemove().clear(),this._labelsGroup.linkRemove().clear(),this._crosshairCursorGroup.linkRemove().clear(),this._scaleBreaksGroup.linkRemove().clear()},_allowLegendInsidePosition:()=>!1,_createLegend:function(){var t=function wBt(t){var n=function xBt(t){return{nameField:t+"Name",colorField:t+"Color",indexField:t+"Index"}}(t);return{getFormatObject:function(e){var i={};return i[n.indexField]=e.id,i[n.colorField]=e.states.normal.fill,i[n.nameField]=e.text,i},textField:n.nameField}}(this._legendDataField);this._legend=new UC({renderer:this._renderer,widget:this,group:this._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",titleGroupClass:"dxc-title",textField:t.textField,getFormatObject:t.getFormatObject,allowInsidePosition:this._allowLegendInsidePosition()}),this._updateLegend(),this._layout.add(this._legend)},_updateLegend:function(){var t=this._themeManager,n=t.getOptions("legend"),e=this._getLegendData();n.containerBackgroundColor=t.getOptions("containerBackgroundColor"),n._incidentOccurred=this._incidentOccurred,this._legend.update(e,n,t.theme("legend").title),this._change(["LAYOUT"])},_prepareDrawOptions:function(t){var n=this._getAnimationOptions(),e=se({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:n.enabled,animationPointsLimit:n.maxPointCountSupported},t,this.__renderOptions);return Z(e.recreateCanvas)||(e.recreateCanvas=e.adjustAxes&&e.drawLegend&&e.drawTitle),e},_processRefreshData:function(t){var n=tOe.indexOf(this._currentRefreshData),e=tOe.indexOf(t);(!this._currentRefreshData||n>=0&&e<n)&&(this._currentRefreshData=t),this._requestChange(["REFRESH"])},_getLegendData:function(){return ma(this._getLegendTargets(),function(t){var n=t.legendData,e=t.getLegendStyles,i=e.normal.opacity;t.visible||((!Z(i)||i>.3)&&(i=.3),n.textOpacity=.3);var r={opacity:i};return n.states={hover:se({},e.hover,r),selection:se({},e.selection,r),normal:se({},e.normal,r)},n})},_getLegendOptions:function(t){return{legendData:{text:t[this._legendItemTextField],id:t.index,visible:!0},getLegendStyles:t.getLegendStyles(),visible:t.isVisible()}},_disposeSeries(t){var n;this.series&&(Z(t)?(this.series[t].dispose(),this.series.splice(t,1)):(we(this.series,(e,i)=>i.dispose()),this.series.length=0)),null!==(n=this.series)&&void 0!==n&&n.length||(this.series=[])},_disposeSeriesFamilies(){we(this.seriesFamilies||[],function(t,n){n.dispose()}),this.seriesFamilies=null,this._needHandleRenderComplete=!0},_optionChanged:function(t){this._themeManager.resetOptions(t.name),this.callBase.apply(this,arguments)},_applyChanges(){this._themeManager.update(this._options.silent()),this.callBase.apply(this,arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT",export:"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",commonPaneSettings:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","USE_SPIDER_WEB","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","REFRESH_AXES","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_FIRST_DRAWING","FORCE_DRAWING","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT:function(){(!this.series||this.needToPopulateSeries)&&!this._changes.has("FORCE_DATA_INIT")&&this._dataInit()},_change_FORCE_DATA_INIT:function(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(_N)},_change_FORCE_RENDER:function(){this._processRefreshData(_N)},_change_AXES_AND_PANES:function(){this._refreshSeries("INIT")},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries("INIT")},_change_REFRESH_AXES(){nI(this._canvas),this._reinitAxes(),this._requestChange(["CORRECT_AXIS","FULL_RENDER"])},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(_N)},_change_REINIT:function(){this._processRefreshData("_reinit")},_change_FORCE_DRAWING:function(){this._resetComponentsAnimation()},_change_FORCE_FIRST_DRAWING:function(){this._resetComponentsAnimation(!0)},_resetComponentsAnimation:function(t){this.series.forEach(n=>{n.resetApplyingAnimation(t)}),this._resetAxesAnimation(t)},_resetAxesAnimation:Be,_refreshSeries:function(t){this.needToPopulateSeries=!0,this._requestChange([t])},_change_CORRECT_AXIS(){this._correctAxes()},_doRefresh:function(){var t=this._currentRefreshData;t&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[t]())},_updateCanvasClipRect:function(t){var n=Math.max(t.width-t.left-t.right,0),e=Math.max(t.height-t.top-t.bottom,0);this._canvasClipRect.attr({x:t.left,y:t.top,width:n,height:e}),this._backgroundRect.attr({x:t.left,y:t.top,width:n,height:e})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit:function(){this._dataSpecificInit(!0)},_processSingleSeries:function(t){t.createPoints(!1)},_handleSeriesDataUpdated(){this._getVisibleSeries().some(t=>t.useAggregation())&&this._populateMarginOptions(),this.series.forEach(t=>this._processSingleSeries(t),this)},_dataSpecificInit(t){(!this.series||this.needToPopulateSeries)&&(this.series=this._populateSeries()),this._repopulateSeries(),this._seriesPopulatedHandlerCore(),this._populateBusinessRange(),this._tracker.updateSeries(this.series,this._changes.has("INIT")),this._updateLegend(),t&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var t=this._themeManager,n=this._dataSourceItems(),e=t.getOptions("dataPrepareSettings");t.getOptions("seriesTemplate")&&this._populateSeries(n),this._groupSeries();var r=M$(n,this._groupsData,this._incidentOccurred,e);t.resetPalette(),this.series.forEach(function(o){o.updateData(r[o.getArgumentField()])}),this._handleSeriesDataUpdated()},_renderCompleteHandler:function(){var t=!0;this._needHandleRenderComplete&&(we(this.series,function(n,e){t=t&&e.canRenderCompleteHandle()}),t&&(this._needHandleRenderComplete=!1,this._eventTrigger("done",{target:this})))},_dataIsReady:function(){return Z(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions(t){for(var s,l,n=this,e=n._themeManager,i=e.getOptions("seriesTemplate"),r=i?hbe(i,t||[]):n.option("series"),o=lBt(r)?r:r?[r]:[],a=n._getExtraOptions(),u=[],f=T=>{n._specialProcessSeries(),n._populateBusinessRange(T&&T.getValueAxis(),!0),n._renderer.stopAllAnimations(!0),n._updateLegend(),n._requestChange(["FULL_RENDER"])},S=0;S<o.length;S++)s=se(!0,{},o[S],a),(!Z(s.name)||""===s.name)&&(s.name="Series "+(S+1).toString()),s.rotated=n._isRotated(),s.customizePoint=e.getOptions("customizePoint"),s.customizeLabel=e.getOptions("customizeLabel"),s.visibilityChanged=f,s.incidentOccurred=n._incidentOccurred,l=e.getOptions("series",s,o.length),n._checkPaneName(l)&&u.push(l);return u},_populateSeries(t){var n,a,e=this,i=[],r=e._incidentOccurred,o=e._populateSeriesOptions(t),s=!1;e.needToPopulateSeries=!1,we(o,(u,f)=>{var S=e.series&&e.series.filter(T=>T.name===f.name&&-1===i.map(R=>R.series).indexOf(T))[0];S&&S.type===f.type?i.push({series:S,options:f}):(i.push({options:f}),s=!0)}),0!==(null===(n=e.series)||void 0===n?void 0:n.length)&&e._tracker.clearHover(),ede(e.series,(u,f)=>{i.some(S=>f===S.series)||(e._disposeSeries(u),s=!0)}),!s&&(s=i.some(u=>u.series.name!==o[u.series.index].name)),e.series=[],s&&e._disposeSeriesFamilies(),e._themeManager.resetPalette();var l=function(u){e.series.forEach(function(f){f.notify(u)})};return we(i,(u,f)=>{var S,T,R=f.options,L=null!==(S=null===(T=e._argumentAxes)||void 0===T?void 0:T.filter(j=>j.pane===R.pane)[0])&&void 0!==S?S:e.getArgumentAxis(),z={commonSeriesModes:e._getSelectionModes(),argumentAxis:L,valueAxis:e._getValueAxis(R.pane,R.axis)};f.series?(a=f.series).updateOptions(R,z):a=new qI(se({renderer:e._renderer,seriesGroup:e._seriesGroup,labelsGroup:e._labelsGroup,eventTrigger:e._eventTrigger,eventPipe:l,incidentOccurred:r},z),R),a.isUpdated?(a.index=e.series.length,e.series.push(a)):r("E2101",[R.type])}),e.series},getStackedPoints:function(t){var n=t.series.getStackName();return this._getVisibleSeries().reduce((e,i)=>((!Z(i.getStackName())||!Z(n)||n===i.getStackName())&&(e=e.concat(i.getPointsByArg(t.argument))),e),[])},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(t){var n=null;return we(this.series,function(e,i){if(i.name===t)return n=i,!1}),n},getSeriesByPos:function(t){return(this.series||[])[t]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},clearHover(){this._tracker.clearHover()},render:function(t){var n=this;return n.__renderOptions=t,n.__forceRender=t&&t.force,n.callBase.apply(n,arguments),n.__renderOptions=n.__forceRender=null,n},refresh:function(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize(){var t=this._layoutManagerOptions();return[t.width,t.height]},_change_REFRESH(){this._changes.has("INIT")?this._currentRefreshData=null:this._doRefresh()},_change_FULL_RENDER(){this._forceRender()},_change_INIT(){this._reinit()},_stopCurrentHandling:function(){this._tracker.stopCurrentHandling()}});["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"].forEach(function(t){Hh.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"}),["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","stickyHovering"].forEach(function(t){Hh.prototype._optionChangesMap[t]="FORCE_RENDER"}),["minBubbleSize","maxBubbleSize","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"].forEach(function(t){Hh.prototype._optionChangesMap[t]="REFRESH_SERIES_FAMILIES"}),Hh.addPlugin(j_),Hh.addPlugin(TC),Hh.addPlugin(_S),Hh.addPlugin(kC),Hh.addPlugin(MC);var DBt=Hh.prototype._change_TITLE;Hh.prototype._change_TITLE=function(){DBt.apply(this,arguments),this._change(["FORCE_RENDER"])};var yN=Math,CN=yN.floor,_q=yN.max,rOe=yN.abs,OBt=t=>({transform:function(n,e){return Kr(du(n,e,t.allowNegatives,t.linearThreshold))},getTicks:function(n,e,i){for(var r=[],o=this.transform(e[0],i);r.length<e.length;)r.push(o),o=Kr(o+n);return r}}),TBt=t=>({transform:function(n,e){return Kr(_C(n,e,t.allowNegatives,t.linearThreshold))},getTicks:function(n,e,i){for(var o,r=[],a=0;a<e.length;a+=1)o=this.transform(e[a],i),r.push(o);return r}});function oOe(t,n){if(t.isLogarithmic){var e=t.logarithmicBase,i=t.tickValues;t.minValue=n.transform(t.minValue,e),t.oldMinValue=n.transform(t.oldMinValue,e),t.maxValue=n.transform(t.maxValue,e),t.oldMaxValue=n.transform(t.oldMaxValue,e),t.tickInterval=yN.round(t.tickInterval),t.tickInterval<1&&(t.tickInterval=1);var r=n.getTicks(t.tickInterval,i,e);r.tickInterval=t.tickInterval,t.tickValues=r}}function uv(t){return t.maxValue-t.minValue||1}function aOe(t){for(var n=0;n<t.length;n++)if(!t[n].stubData)return t[n];return null}var VBt={synchronize:function(t){we(function EBt(t){var n={};return t.forEach(e=>{var i=e.pane;n[i]||(n[i]=[]),n[i].push(e)}),n}(t),function(n,e){var i,r;if(e.length>1){if(i=function IBt(t){return t.reduce(function(n,e){var l,i=e.getTicksValues(),r=i.majorTicksValues,o=e.getOptions(),a=e.getTranslator().getBusinessRange(),s=e.getVisibleArea(),u=e._tickInterval,f=o.synchronizedValue,S=e.getViewport().action;if(r&&r.length>0&&di(r[0])&&"discrete"!==o.type&&!a.isEmpty()&&(!a.breaks||!a.breaks.length)&&"zoom"!==S&&"pan"!==S){e.applyMargins();var T=e.getTranslator().from(s[0]),R=e.getTranslator().from(s[1]),L=T<R?T:R,z=T<R?R:T;L===z&&Z(f)&&(u=rOe(r[0]-f)||1,L=r[0]-u,z=r[0]+u),oOe(l={axis:e,isLogarithmic:"logarithmic"===o.type,logarithmicBase:a.base,tickValues:r,minorValues:i.minorTicksValues,minorTickInterval:e._minorTickInterval,minValue:L,oldMinValue:L,maxValue:z,oldMaxValue:z,inverted:a.invert,tickInterval:u,synchronizedValue:f},OBt(e.getTranslator().getBusinessRange())),n.push(l)}return n},[])}(e),i.length<2||!aOe(i))return;(function kBt(t){var n=t.reduce((e,i)=>_q(e,i.tickValues.length),0);t.forEach(e=>{var i,r,o=0,a=e.synchronizedValue,s=e.tickValues,l=e.tickInterval;if(Z(a))e.baseTickValue=e.invertedBaseTickValue=a,e.tickValues=[e.baseTickValue];else{if(s.length>1&&l){for(r=(i=CN((n+1)/s.length))>1?CN((n+1)/i):n,o=CN((r-s.length)/2);o>0&&0!==s[0];)s.unshift(Kr(s[0]-l)),o--;for(;s.length<r;)s.push(Kr(s[s.length-1]+l));e.tickInterval=l/i}e.baseTickValue=s[0],e.invertedBaseTickValue=s[s.length-1]}})})(i),function MBt(t){var n=aOe(t),e=n.tickInterval;t.forEach(i=>{var r,o,a,s;i!==n&&(e&&i.tickInterval&&(i.stubData&&Z(i.synchronizedValue)&&(i.oldMinValue=i.minValue=i.baseTickValue-(n.baseTickValue-n.minValue)/e*i.tickInterval,i.oldMaxValue=i.maxValue=i.baseTickValue-(n.baseTickValue-n.maxValue)/e*i.tickInterval),r=e/uv(n)/i.tickInterval*uv(i),i.maxValue=i.minValue+uv(i)/r),a=n.inverted&&!i.inverted||!n.inverted&&i.inverted?n.maxValue-n.invertedBaseTickValue:n.baseTickValue-n.minValue,s=uv(i),o=(a/uv(n)-(i.baseTickValue-i.minValue)/s)*s,i.minValue-=o,i.maxValue-=o)})}(i),r=function ABt(t){var n,e,i=0,r=0;return t.forEach(o=>{var a=o.inverted;n=o.minValue>o.oldMinValue?(o.minValue-o.oldMinValue)/uv(o):0,e=o.maxValue<o.oldMaxValue?(o.oldMaxValue-o.maxValue)/uv(o):0,i=_q(i,a?e:n),r=_q(r,a?n:e)}),{start:i,end:r}}(i),r=function NBt(t,n){return t.reduce((e,i)=>{var r=i.inverted,{start:o,end:a}=i.axis.getCorrectedValuesToZero(i.minValue,i.maxValue);return Z(o)||Z(a)?r?{start:e.start,end:Math.min(e.end,a)}:{start:Math.min(e.start,o),end:e.end}:e},n)}(i,r),function FBt(t,n){t.forEach(e=>{var i=uv(e),r=e.inverted;e.minValue=Kr(e.minValue-n[r?"end":"start"]*i),e.maxValue=Kr(e.maxValue+n[r?"start":"end"]*i)})}(i,r),function LBt(t){var e,n=[];t.forEach(i=>{i.oldMaxValue-i.oldMinValue==0?n.push(i):!Z(e)&&!Z(i.synchronizedValue)&&(e=rOe((i.maxValue-i.minValue)/(i.tickValues[CN(i.tickValues.length/2)]-i.minValue||i.maxValue)))}),Z(e)&&n.forEach(i=>{var r=i.tickValues[0],o=r*e;r>0?(i.maxValue=o,i.minValue=0):r<0&&(i.minValue=o,i.maxValue=0)})}(i),function PBt(t){var n=!1;t.forEach(e=>{n=n||Z(e.synchronizedValue)}),t.forEach(e=>{var s,i=e.tickInterval,r=e.tickValues,o=e.maxValue,a=e.minValue;if(n&&i){for(;(s=Kr(r[0]-i))>=a;)r.unshift(s);for(s=r[r.length-1];(s=Kr(s+i))<=o;)r.push(s)}for(;r[0]+i/10<a;)r.shift();for(;r[r.length-1]-i/10>o;)r.pop()})}(i),function BBt(t){t.forEach(function(n){if(n.minorTickInterval){for(var e=[],i=n.minorTickInterval,r=n.tickInterval/i-1,o=1;o<n.tickValues.length;o++)for(var a=n.tickValues[o-1],s=0;s<r;s++)e.push(a+=i);n.minorValues=e}})}(i),i.forEach(o=>{oOe(o,TBt(o.axis.getTranslator().getBusinessRange()))}),function RBt(t){t.forEach(n=>{var e=n.axis,i=e.getTranslator().getBusinessRange();i.min===i.minVisible&&(i.min=n.minValue),i.max===i.maxVisible&&(i.max=n.maxValue),i.minVisible=n.minValue,i.maxVisible=n.maxValue,i.min>i.minVisible&&(i.min=i.minVisible),i.max<i.maxVisible&&(i.max=i.maxVisible),e.getTranslator().updateBusinessRange(i),e.setTicks({majorTicks:n.tickValues,minorTicks:n.minorValues})})}(i)}})}};const HBt=VBt;var{round:YC,abs:vq,pow:sOe,sqrt:zBt}=Math,lOe=Math.min;function yq(t){return t.getStackName()||t.getBarOverlapGroup()}function uOe(t,n,e){var i,r,f,o=[],a=[],s={},l=n.barGroupWidth,u=null===(i=t[0])||void 0===i?void 0:i.getArgumentAxis();if(null!==(r=t[0])&&void 0!==r&&r.useAggregation()){var S,T="datetime"===(null===(S=t[0])||void 0===S?void 0:S.argumentType),R=u.getTickInterval(),L=u.getAggregationInterval();R=T?bt.dateToMilliseconds(R):R,f=(L=T?bt.dateToMilliseconds(L):L)<R?L:R}f=u?.getTranslator().getInterval(f);var z=l?f>l?l:f:f*(1-function GBt(t){return t<0||t>1?.3:t}(n.barGroupPadding));t.forEach(function(j,Y){var te,ie=yq(j)||Y.toString();for(te in j.pointsByArgument)-1===a.indexOf(te.valueOf())&&a.push(te.valueOf());-1===o.indexOf(ie)&&(o.push(ie),s[ie]=[]),s[ie].push(j)}),a.forEach(function(j){var Y=o.reduce((te,re)=>(function jBt(t,n){return t.some(function(e){return!e.getOptions().ignoreEmptyPoints||e.getPointsByArg(n,!0).some(function(i){return i.hasValue()})})}(s[re],j)&&te.push(re),te),[]),ie=dOe(z,Y.length);o.forEach(te=>{!function KBt(t,n,e,i,r,o,a){t.forEach(function(s){var L,l=a(n.indexOf(i),n.length),u=s.getPointsByArg(e,!0),f=function WBt(t){return t<0||t>1?void 0:t}(s.getOptions().barPadding),S=s.getOptions().barWidth,T=cOe(l,r),R=r.width;-1!==l&&((Z(f)||Z(S))&&(R=(L=dOe(o,n.length,1-f,S)).width,s.getBarOverlapGroup()||(T=cOe(l,L))),function $Bt(t,n,e){we(t,function(i,r){r.correctCoordinates({width:n,offset:e})})}(u,R,T))})}(s[te],Y,j,te,ie,z,e)})})}function dOe(t,n,e,i){var r,o;return i?(o=lOe(i,t/n),r=n>1?YC((t-YC(o)*n)/(n-1)):0):Z(e)?(o=t*e/n,r=n>1?YC((t-t*e)/(n-1)):0):o=(t-(r=YC(t/n*.2))*(n-1))/n,{width:o>1?YC(o):1,spacing:r,middleIndex:n/2,rawWidth:o}}function cOe(t,n){return(t-n.middleIndex+.5)*(n.rawWidth<1?n.rawWidth:n.width)-(n.middleIndex-t-.5)*n.spacing}function vS(t){return t.series.filter(function(n){return n.isVisible()})}function Cq(t,n,e){return((t.positive[n]||{})[e]||0)+(-(t.negative[n]||{})[e]||0)}function hOe(t){return t?function(n,e){return e-n-1}:function(n){return n}}function pOe(t){return t[0]&&t[0].getArgumentAxis().getTranslator().isInverted()}function bN(){var t=vS(this);uOe(t,this._options,hOe(pOe(t)))}function ZI(){var t=this._options.negativesAsZeroes,n=vS(this),e={positive:{},negative:{}},i={left:{},right:{}},r={},o={};n.forEach(function(a){var s=yq(a),l=!1,u=function ZBt(t){for(var e,n=t.getPoints(),i=0;i<n.length;i++){var r=n[i];if(e=r.initialValue&&r.initialValue.valueOf(),vq(e)>0)break}return gh(e)}(a)<0?o:r;a._prevSeries=u[s],u[s]=a,a.holes=se(!0,{},i),a.getPoints().forEach(function(f,S,T){var R=f.initialValue&&f.initialValue.valueOf(),L=f.argument.valueOf(),z=R>=0?e.positive:e.negative,j="bar"!==a.type;t&&R<0&&(z=e.positive,R=0,f.resetValue()),z[s]=z[s]||{};var Y=z[s];if(Y[L]?(j&&f.correctValue(Y[L]),Y[L]+=R):(Y[L]=R,j&&f.resetCorrection()),f.hasValue())l&&(l=!1,i.left[L]=(i.left[L]||0)+(f.value.valueOf()-(isFinite(f.minValue)?f.minValue.valueOf():0)),f._skipSetLeftHole=!0);else{var ie=T[S-1];!l&&ie&&ie.hasValue()&&(L=ie.argument.valueOf(),ie._skipSetRightHole=!0,i.right[L]=(i.right[L]||0)+(ie.value.valueOf()-(isFinite(ie.minValue)?ie.minValue.valueOf():0))),l=!0}})}),n.forEach(function(a){var s=a.holes;a.getPoints().forEach(function(l){var u=l.argument.valueOf();l.resetHoles(),!l._skipSetLeftHole&&l.setHole(s.left[u]||i.left[u]&&0,"left"),!l._skipSetRightHole&&l.setHole(s.right[u]||i.right[u]&&0,"right"),l._skipSetLeftHole=null,l._skipSetRightHole=null})}),this._stackKeepers=e,n.forEach(function(a){a.getPoints().forEach(function(s){var l=s.argument.valueOf(),u=yq(a),f=Cq(e,u,l),S=function YBt(t,n,e){return((t.positive[n]||{})[e]||0)+((t.negative[n]||{})[e]||0)}(e,u,l);s.setPercentValue(f,S,i.left[l],i.right[l])})})}function gOe(){var t=this,n=vS(t),e=t._stackKeepers,i={positive:{},negative:{}};we(n,function(r,o){var a=o.getOptions().minBarSize,s=o.getValueAxis().getTranslator(),l=a&&s.getMinBarSize(a),u=o.getStackName();we(o.getPoints(),function(f,S){if(S.hasValue()){var T=S.initialValue&&S.initialValue.valueOf(),R=S.argument.valueOf();t.fullStacked&&(T=T/Cq(e,u,R)||0);var L=s.checkMinBarSize(T,l,S.value),z=function qBt(t){return t>=0?"positive":"negative"}(L),j=i[z][u]=i[z][u]||{};j[R]?(S.minValue=j[R],j[R]+=L):j[R]=L,S.value=j[R]}})}),t.fullStacked&&function XBt(t,n){we(t,function(e,i){var r=i.getStackName?i.getStackName():"default";we(i.getPoints(),function(o,a){var s=Cq(n,r,a.argument.valueOf());0!==s&&(a.value=a.value/s,di(a.minValue)&&(a.minValue=a.minValue/s))})})}(n,i)}function JBt(){var t=vS(this);we(t,function(n,e){var i=e.getOptions().minBarSize,r=e.getValueAxis().getTranslator(),o=i&&r.getMinBarSize(i);o&&we(e.getPoints(),function(a,s){s.hasValue()&&s.value.valueOf()-s.minValue.valueOf()<o&&(s.value=s.value.valueOf()+o/2,s.minValue=s.minValue.valueOf()-o/2)})})}function QBt(){we(this.series,function(t,n){var e=n.getOptions().minBarSize,i=n.getValueAxis().getTranslator(),r=e&&i.getMinBarSize(e);r&&we(n.getPoints(),function(o,a){a.hasValue()&&(a.value=i.checkMinBarSize(a.initialValue,r))})})}function e4t(){var t=vS(this);uOe(t,{barGroupPadding:.3},hOe(pOe(t)))}function t4t(){var t=vS(this);if(t.length){var f,T,n=this._options,e=t[0].getArgumentAxis().getVisibleArea(),i=t[0].getValueAxis().getVisibleArea(),r=lOe(e[1]-e[0],i[1]-i[0]),o=sOe(n.minBubbleSize,2),a=sOe(r*n.maxBubbleSize,2),s=(r*n.maxBubbleSize+n.minBubbleSize)/2,l=1/0,u=-1/0;we(t,function(z,j){we(j.getPoints(),function(Y,ie){u=u>ie.size?u:ie.size,l=l<ie.size?l:ie.size})});var R=u-l,L=vq(a-o);we(t,function(z,j){we(j.getPoints(),function(Y,ie){u===l?f=YC(s):(T=vq(ie.size-l)/R,f=YC(zBt(L*T+o))),ie.correctCoordinates(f)})})}}function xN(t){switch(this.type=Ri(t.type),this.pane=t.pane,this.series=[],this.updateOptions(t),this.type){case"bar":this.adjustSeriesDimensions=bN,this.updateSeriesValues=QBt,this.adjustSeriesValues=ZI;break;case"rangebar":this.adjustSeriesDimensions=bN,this.updateSeriesValues=JBt;break;case"fullstackedbar":this.fullStacked=!0,this.adjustSeriesDimensions=bN,this.adjustSeriesValues=ZI,this.updateSeriesValues=gOe;break;case"stackedbar":this.adjustSeriesDimensions=bN,this.adjustSeriesValues=ZI,this.updateSeriesValues=gOe;break;case"fullstackedarea":case"fullstackedline":case"fullstackedspline":case"fullstackedsplinearea":this.fullStacked=!0,this.adjustSeriesValues=ZI;break;case"stackedarea":case"stackedsplinearea":case"stackedline":case"stackedspline":this.adjustSeriesValues=ZI;break;case"candlestick":case"stock":this.adjustSeriesDimensions=e4t;break;case"bubble":this.adjustSeriesDimensions=t4t}}xN.prototype={constructor:xN,adjustSeriesDimensions:Be,adjustSeriesValues:Be,updateSeriesValues:Be,updateOptions:function(t){this._options=t},dispose:function(){this.series=null},add:function(t){var n=this.type;this.series=ma(t,e=>e.type===n?e:null)}};var ZC=Array.isArray,mOe="commonAxisSettings",wN="VISUAL_RANGE";function vOe(t){return ZC(t)?0===t.length?[{}]:t:[t]}function yOe(t,n,e,i){var r,o;if(e){r={skipEventRising:!0};var a=COe(t.fullName,o=t.value);a&&(r={allowPartialUpdate:!0},o=a)}else o=(Z(i)?t.value[i]:t.value).visualRange;n.visualRange(o,r)}function COe(t,n){var e=t.split("."),i=e[e.length-1];if("endValue"===i||"startValue"===i)return{[i]:n}}var bOe=Hh.inherit({_fontFields:[mOe+".label.font",mOe+".title.font"],_partialOptionChangesMap:{visualRange:wN,_customVisualRange:wN,strips:"REFRESH_AXES",constantLines:"REFRESH_AXES"},_partialOptionChangesPath:{argumentAxis:["strips","constantLines","visualRange","_customVisualRange"],valueAxis:["strips","constantLines","visualRange","_customVisualRange"]},_initCore(){this._panesClipRects={},this.callBase()},_disposeCore(){var t=this._disposeObjectsInArray,n=this._panesClipRects;this.callBase(),t.call(n,"fixed"),t.call(n,"base"),t.call(n,"wide"),this._panesClipRects=null,this._labelsAxesGroup.linkOff(),this._labelsAxesGroup.dispose(),this._labelsAxesGroup=null},_dispose:function(){var t=this._disposeObjectsInArray;this.callBase(),this.panes=null,this._legend&&(this._legend.dispose(),this._legend=null),t.call(this,"panesBackground"),t.call(this,"seriesFamilies"),this._disposeAxes()},_createPanes:function(){this._cleanPanesClipRects("fixed"),this._cleanPanesClipRects("base"),this._cleanPanesClipRects("wide")},_cleanPanesClipRects(t){(this._panesClipRects[t]||[]).forEach(e=>e&&e.dispose()),this._panesClipRects[t]=[]},_getElementsClipRectID(t){var n=this._panesClipRects.fixed[this._getPaneIndex(t)];return n&&n.id},_getPaneIndex(t){var n,e=t||"default";return we(this.panes,(i,r)=>{if(r.name===e)return n=i,!1}),n},_updateSize(){this.callBase(),nI(this._canvas)},_reinitAxes:function(){this.panes=this._createPanes(),this._populateAxes(),this._axesReinitialized=!0},_populateAxes(){var a,f,t=this,n=t.panes,e=t._isRotated(),i=vOe(t.option("argumentAxis")||{})[0],r=t.option("valueAxis"),o=vOe(r||{}),s=[],l=[],u=0,S=t._getCrosshairMargins();f=e?"right"===i.position?n[n.length-1].name:n[0].name:"top"===i.position?n[0].name:n[n.length-1].name,a=ma(n,T=>t._populateAxesOptions("argumentAxis",i,{pane:T.name,name:null,optionPath:"argumentAxis",crosshairMargin:e?S.x:S.y},e,T.name!==f)),we(o,(T,R)=>{var L,z=[],j=R.name;j&&l.includes(j)?t._incidentOccurred("E2102"):(j&&l.push(j),R.pane&&z.push(R.pane),null!==(L=R.panes)&&void 0!==L&&L.length&&(z=z.concat(R.panes.slice(0))),(z=Dj(z)).length||z.push(void 0),we(z,(Y,ie)=>{var te=ZC(r)?"valueAxis[".concat(T,"]"):"valueAxis";s.push(t._populateAxesOptions("valueAxis",R,{name:j||"defaultAxisName"+u++,pane:ie,priority:T,optionPath:te,crosshairMargin:e?S.y:S.x},e))}))}),t._redesignAxes(a,!0,f),t._redesignAxes(s,!1)},_redesignAxes(t,n,e){var i=this,r=[],o=n?i._argumentAxes:i._valueAxes;we(t,(a,s)=>{var l=o&&o.filter(u=>u.name===s.name&&(!Z(s.pane)&&i.panes.some(f=>f.name===u.pane)||u.pane===s.pane));l&&l.length>0?we(l,(u,f)=>{var S=function o4t(t,n,e){if(e)return{argumentAxisType:t.argumentAxisType,argumentType:t.argumentType};var{valueAxisType:i,valueType:r}=t.groups.filter(o=>o.valueAxis===n)[0];return{valueAxisType:i,valueType:r}}(i._groupsData,f,n);f.updateOptions(s),n?f.setTypes(S.argumentAxisType,S.argumentType,"argumentType"):f.setTypes(S.valueAxisType,S.valueType,"valueType"),f.validate(),r.push({axis:f})}):r.push({options:s})}),o?ede(o,(a,s)=>{r.some(l=>l.axis&&l.axis===s)||i._disposeAxis(a,n)}):o=n?i._argumentAxes=[]:i._valueAxes=[],we(r,(a,s)=>{var l=s.axis;s.axis&&n?s.axis.isVirtual=s.axis.pane!==e:s.options&&(l=i._createAxis(n,s.options,n?s.options.pane!==e:void 0),o.push(l)),l.applyVisualRangeSetter(i._getVisualRangeSetter())})},_disposeAxis(t,n){var e=n?this._argumentAxes:this._valueAxes,i=e[t];i&&(i.dispose(),e.splice(t,1))},_disposeAxes:function(){var t=this._disposeObjectsInArray;t.call(this,"_argumentAxes"),t.call(this,"_valueAxes")},_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){return(this.series||[]).map(t=>{var n=this._getLegendOptions(t);return n.legendData.series=t,t.getOptions().showInLegend||(n.legendData.visible=!1),n})},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){var t;for(t=0;t<this.series.length;++t)this.series[t].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var t,r,n=this,e=[],i=[],o=n._themeManager,a=o.getOptions("negativesAsZeroes"),s=o.getOptions("negativesAsZeros"),l={minBubbleSize:o.getOptions("minBubbleSize"),maxBubbleSize:o.getOptions("maxBubbleSize"),barGroupPadding:o.getOptions("barGroupPadding"),barGroupWidth:o.getOptions("barGroupWidth"),negativesAsZeroes:Z(a)?a:s};null!==(t=n.seriesFamilies)&&void 0!==t&&t.length?we(n.seriesFamilies,function(u,f){f.updateOptions(l),f.adjustSeriesValues()}):(we(n.series,function(u,f){e.includes(f.type)||e.push(f.type)}),we(n._getLayoutTargets(),function(u,f){r=n._getSeriesForPane(f.name),we(e,function(S,T){var R=new xN({type:T,pane:f.name,minBubbleSize:l.minBubbleSize,maxBubbleSize:l.maxBubbleSize,barGroupPadding:l.barGroupPadding,barGroupWidth:l.barGroupWidth,negativesAsZeroes:l.negativesAsZeroes,rotated:n._isRotated()});R.add(r),R.adjustSeriesValues(),i.push(R)})}),n.seriesFamilies=i)},_updateSeriesDimensions:function(){var t,n=this.seriesFamilies||[];for(t=0;t<n.length;t++){var e=n[t];e.updateSeriesValues(),e.adjustSeriesDimensions()}},_getLegendCallBack:function(t){return this._legend&&this._legend.getActionCallback(t)},_appendAxesGroups:function(){this._stripsGroup.linkAppend(),this._gridGroup.linkAppend(),this._axesGroup.linkAppend(),this._labelsAxesGroup.linkAppend(),this._constantLinesGroup.linkAppend(),this._stripLabelAxesGroup.linkAppend(),this._scaleBreaksGroup.linkAppend()},_populateMarginOptions(){var t=this,n=function r4t(t,n,e,i){return Math.min(i?t.width/n:t.width,i?t.height:t.height/n)*e}(t.getSize(),t.panes.length,t._themeManager.getOptions("maxBubbleSize"),t._isRotated()),e={};t._valueAxes.forEach(i=>{var r=t.series.filter(function(a){return a.getValueAxis()===i}),o={};r.forEach(a=>{if(a.isVisible()){var s=function i4t(t,n){return t.processBubbleSize&&(t.size=n),t}(a.getMarginOptions(),n);o=Ej(o,s),e=Ej(e,s)}}),i.setMarginOptions(o)}),t._argumentAxes.forEach(i=>i.setMarginOptions(e))},_populateBusinessRange(t,n){var e=this,i=e._isRotated(),r=e._getVisibleSeries(),o={},a=new Os({rotated:!!i}),s=u=>u.pane||"default";if(e.panes.forEach(u=>o[u.name]=new Os({rotated:!!i})),e._valueAxes.forEach(u=>{var f=new Os({rotated:!!i,pane:u.pane,axis:u.name}),S=r.filter(T=>T.getValueAxis()===u);S.forEach(T=>{var R=T.getRangeData();f.addRange(R.val),o[s(u)].addRange(R.arg)}),(!t||t&&S.length&&u===t)&&(u.setGroupSeries(S),u.setBusinessRange(f,e._axesReinitialized||n,e._argumentAxes[0]._lastVisualRangeUpdateMode))}),!t||t&&r.length){Object.keys(o).forEach(u=>a.addRange(o[u]));var l=a.interval;e._argumentAxes.forEach(u=>{var f,S=null!==(f=o[s(u)].interval)&&void 0!==f?f:l;u.setBusinessRange(new Os(mt({},a,{interval:S})),e._axesReinitialized,void 0,e._groupsData.categories)})}e._populateMarginOptions()},getArgumentAxis:function(){return(this._argumentAxes||[]).filter(t=>!t.isVirtual)[0]},getValueAxis:function(t){return(this._valueAxes||[]).filter(Z(t)?n=>n.name===t:n=>n.pane===this.defaultPane)[0]},_getGroupsData:function(){var t=this,n=[];return t._valueAxes.forEach(function(e){n.push({series:t.series.filter(function(i){return i.getValueAxis()===e}),valueAxis:e,valueOptions:e.getOptions()})}),{groups:n,argumentAxes:t._argumentAxes,argumentOptions:t._argumentAxes[0].getOptions()}},_groupSeries:function(){this._correctValueAxes(!1),this._groupsData=this._getGroupsData()},_processValueAxisFormat:function(){var t=[];this.series.forEach(function(n){var e=n.getValueAxis();n.isFullStackedSeries()&&(e.setPercentLabelFormat(),t.push(e))}),this._valueAxes.forEach(function(n){-1===t.indexOf(n)&&n.resetAutoLabelFormat()})},_populateAxesOptions(t,n,e,i,r){var o=this._prepareStripsAndConstantLines(t,n,i),a=se(!0,{},o,e,this._prepareAxisOptions(t,o,i));return r&&(a.visible=a.tick.visible=a.minorTick.visible=a.label.visible=!1,a.title={}),a},_getValFilter:t=>rv.getViewPortFilter(t.getValueAxis().visualRange()||{}),_createAxis(t,n,e){var i=this,o=se({renderer:i._renderer,incidentOccurred:i._incidentOccurred,eventTrigger:i._eventTrigger,axisClass:t?"arg":"val",widgetClass:"dxc",stripsGroup:i._stripsGroup,stripLabelAxesGroup:i._stripLabelAxesGroup,constantLinesGroup:i._constantLinesGroup,scaleBreaksGroup:i._scaleBreaksGroup,axesContainerGroup:i._axesGroup,labelsAxesGroup:i._labelsAxesGroup,gridGroup:i._gridGroup,isArgumentAxis:t,getTemplate:s=>i._getTemplate(s)},i._getAxisRenderingOptions(t?"argumentAxis":"valueAxis")),a=new J_(o);return a.updateOptions(n),a.isVirtual=e,a},_applyVisualRangeByVirtualAxes:(t,n)=>!1,_applyCustomVisualRangeOption(t,n){t.getOptions().optionPath&&this._parseVisualRangeOption("".concat(t.getOptions().optionPath,".visualRange"),n)},_getVisualRangeSetter(){var t=this;return function(n,e){var{skipEventRising:i,range:r}=e;t._applyCustomVisualRangeOption(n,r),n.setCustomVisualRange(r),n.skipEventRising=i,t._applyVisualRangeByVirtualAxes(n,r)||(t._applyingChanges?t._change_VISUAL_RANGE():t._requestChange([wN]))}},_getTrackerSettings:function(){return se(this.callBase(),{argumentAxis:this.getArgumentAxis()})},_prepareStripsAndConstantLines:function(t,n,e){return(n=this._themeManager.getOptions(t,n,e)).strips&&we(n.strips,function(i){n.strips[i]=se(!0,{},n.stripStyle,n.strips[i])}),n.constantLines&&we(n.constantLines,function(i,r){n.constantLines[i]=se(!0,{},n.constantLineStyle,r)}),n},refresh:function(){this._disposeAxes(),this.callBase()},_layoutAxes(t){t();var n=this.checkForMoreSpaceForPanesCanvas();if(n){var e=this._rect.slice(),i=this._layout.backward(e,e,[n.width,n.height]);n.width=Math.max(0,i[0]),n.height=Math.max(0,i[1]),this._canvas=this._createCanvasFromRect(e),t(n)}},checkForMoreSpaceForPanesCanvas(){return this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),this._isRotated())},_parseVisualRangeOption(t,n){var e=this,i=t.split(/[.[]/)[0],r=t.match(/\d+/g);r=Z(r)?parseInt(r[0]):r,t.indexOf("visualRange")>0?("object"!==Fa(n)&&(n=COe(t,n)||n),e._setCustomVisualRange(i,r,n)):("object"===Fa(n)||ZC(n))&&i.indexOf("Axis")>0&&JSON.stringify(n).indexOf("visualRange")>0&&(Z(n.visualRange)?e._setCustomVisualRange(i,r,n.visualRange):ZC(n)&&n.forEach((o,a)=>Z(o.visualRange)&&e._setCustomVisualRange(i,a,o.visualRange)))},_setCustomVisualRange(t,n,e){var i=this._options.silent(t);i&&(Z(n)?i[n]._customVisualRange=e:i._customVisualRange=e,this._axesReinitialized=!0)},_raiseZoomEndHandlers(){this._valueAxes.forEach(t=>t.handleZoomEnd())},_setOptionsByReference(){this.callBase(),se(this._optionsByReference,{"valueAxis.visualRange":!0})},_notifyOptionChanged(t,n,e){this.callBase.apply(this,arguments),this._optionChangedLocker||this._parseVisualRangeOption(t,n)},_notifyVisualRange(){var t=this;t._valueAxes.forEach(n=>{var e=n.getOptions().optionPath;if(e){var i="".concat(e,".visualRange"),r=I_(n.visualRange(),!ZC(t.option(i)));n.skipEventRising&&dB(r,t.option(i))?n.skipEventRising=null:t.option(e)||"valueAxis"===e?t.option(i,r):t.option(e,{name:n.name,visualRange:r})}})},_notify(){this.callBase(),this._axesReinitialized=!1,!0!==this.option("disableTwoWayBinding")&&(this.skipOptionsRollBack=!0,this._notifyVisualRange(),this.skipOptionsRollBack=!1)},_getAxesForScaling(){return this._valueAxes},_getAxesByOptionPath(t,n,e){var o,i=this._getAxesForScaling(),r=[];return n?(t.fullName&&(o=t.fullName.slice(0,t.fullName.indexOf("."))),r=i.filter(a=>a.getOptions().optionPath===o)):"object"===Fa(t.value)?r=i.filter(a=>a.getOptions().optionPath===t.name):ZC(t.value)&&t.value.forEach((a,s)=>{var l=i.filter(u=>u.getOptions().optionPath==="".concat(t.name,"[").concat(s,"]"))[0];Z(a[e])&&Z(l)&&(r[s]=l)}),r},_optionChanged(t){if(!this._optionChangedLocker){var n,e=t.fullName.indexOf("visualRange")>0||!(this.getPartialChangeOptionsName(t).indexOf("visualRange")>-1)&&void 0;Z(e)&&(n=this._getAxesByOptionPath(t,e,"visualRange"))&&(n.length>1||ZC(t.value)?n.forEach((i,r)=>yOe(t,i,e,r)):1===n.length&&yOe(t,n[0],e))}this.callBase(t)},_change_VISUAL_RANGE:function(){if(this._recreateSizeDependentObjects(!1),!this._changes.has("FULL_RENDER")){var t=this.option("resizePanesOnZoom");this._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:t??(this.option("adjustAxesOnZoom")||!1),animate:!1}),this._raiseZoomEndHandlers()}},resetVisualRange(){var t=this;t._valueAxes.forEach(n=>{n.resetVisualRange(!1),t._applyCustomVisualRangeOption(n)}),t._requestChange([wN])},_getCrosshairMargins:()=>({x:0,y:0}),_legendDataField:"series",_adjustSeriesLabels:Be,_correctValueAxes:Be}),SN=Math.min,bq=Math.max,wOe=function(t,n){this._translator=new EI({},{},{}),this._scroll=t.rect().append(n),this._addEvents()};function a4t(t,n,e,i){var r=0;return"right"===n?r=t.width-t.right+e:"left"===n&&(r=t.left-e-i),r}function s4t(t,n,e,i){var r=0;return"top"===n?r=t.top-e:"bottom"===n&&(r=t.height-t.bottom+i+e),r}wOe.prototype={_addEvents:function(){var t=this._scroll.element;Se.on(t,Pc,n=>{gp({type:"dxc-scroll-start",originalEvent:n,target:t})}),Se.on(t,Qd,n=>{var e=-n.offset.x*this._scale,i=-n.offset.y*this._scale,r=this._offset-(this._layoutOptions.vertical?i:e)/this._scale;this._applyPosition(r,r+this._translator.canvasLength/this._scale),gp({type:"dxc-scroll-move",originalEvent:n,target:t,offset:{x:e,y:i}})}),Se.on(t,Rc,n=>{gp({type:"dxc-scroll-end",originalEvent:n,target:t,offset:{x:-n.offset.x*this._scale,y:-n.offset.y*this._scale}})})},update:function(t){var n=t.position,e=t.rotated,i=e?"right":"top";return n!==i&&n!==(e?"left":"bottom")&&(n=i),this._scroll.attr({rotate:t.rotated?0:-90,rotateX:0,rotateY:0,fill:t.color,width:t.width,opacity:t.opacity}),this._layoutOptions={width:t.width,offset:t.offset,vertical:e,position:n},this},init:function(t,n){var e="discrete"===t.axisType;return this._translateWithOffset=e&&!n?1:0,this._translator.update(se({},t,{minVisible:null,maxVisible:null,visibleCategories:null},e&&{min:null,max:null}||{}),this._canvas,{isHorizontal:!this._layoutOptions.vertical,stick:n}),this},getOptions:function(){return this._layoutOptions},setPane:function(t){var n=this._layoutOptions.position;return this.pane=("left"===n||"top"===n?t[0]:t[t.length-1]).name,this},updateSize:function(t){this._canvas=se({},t);var n=this._layoutOptions,e=n.position,i=n.offset,r=n.width;this._scroll.attr({translateX:a4t(t,e,i,r),translateY:s4t(t,e,i,r)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var t=this._layoutOptions,n={left:0,top:0,right:0,bottom:0};return n[t.position]=t.width+t.offset,n},shift:function(t){var n,e,i=this._layoutOptions,r=i.position,o=i.vertical,a={translateX:null!==(n=this._scroll.attr("translateX"))&&void 0!==n?n:0,translateY:null!==(e=this._scroll.attr("translateY"))&&void 0!==e?e:0};a[o?"translateX":"translateY"]+=("left"===r||"top"===r?-1:1)*t[r],this._scroll.attr(a)},hideTitle:Be,hideOuterElements:Be,setPosition:function(t,n){var e=this._translator,i=Z(t)?e.translate(t,-this._translateWithOffset):e.translate("canvas_position_start"),r=Z(n)?e.translate(n,this._translateWithOffset):e.translate("canvas_position_end");this._offset=SN(i,r),this._scale=e.getScale(t,n),this._applyPosition(SN(i,r),bq(i,r))},customPositionIsAvailable:()=>!1,dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(t,n){var e=this._translator.getCanvasVisibleArea();t=bq(t,e.min),t=SN(t,e.max),n=SN(n,e.max),n=bq(n,e.min);var i=Math.abs(n-t);this._scroll.attr({y:t,height:i<2?2:i})}};var DN=Math,SOe=DN.abs,DOe=DN.min,EOe=DN.max,OOe=DN.floor;function kOe(t){return{x:t.x-8,y:t.y-4,width:t.width+16,height:t.height+8}}function MOe(t,n,e,i){var r=e?["x","width","y","height",n,0]:["y","height","x","width",t,1];return function(o,a,s){var l={x:s.x,y:s.y},u=kOe(o),f=e?s.y-o.y-o.height/2:s.y-o.y;return l.y=e||!e&&"bottom"===a?s.y+f:s.y,u[r[0]]<0?l[r[0]]-=u[r[0]]:u[r[0]]+u[r[1]]+f*r[5]>i[r[1]]&&(l[r[0]]-=u[r[0]]+u[r[1]]+f*r[5]-i[r[1]]),r[4]-u[r[3]]/2<0?l[r[2]]-=r[4]-u[r[3]]/2:r[4]+u[r[3]]/2>i[r[3]]&&(l[r[2]]-=r[4]+u[r[3]]/2-i[r[3]]),l}}function Sq(t,n,e,i){this._renderer=t,this._crosshairGroup=i,this._options={},this.update(n,e)}Sq.prototype={constructor:Sq,update:function(t,n){var e=n.canvas;this._canvas={top:e.top,bottom:e.height-e.bottom,left:e.left,right:e.width-e.right,width:e.width,height:e.height},this._axes=n.axes,this._panes=n.panes,this._prepareOptions(t,"horizontal"),this._prepareOptions(t,"vertical")},dispose:function(){this._renderer=this._crosshairGroup=this._options=this._axes=this._canvas=this._horizontalGroup=this._verticalGroup=this._horizontal=this._vertical=this._circle=this._panes=null},_prepareOptions:function(t,n){var e=t[n+"Line"];this._options[n]={visible:e.visible,line:{stroke:e.color||t.color,"stroke-width":e.width||t.width,dashStyle:e.dashStyle||t.dashStyle,opacity:e.opacity||t.opacity,"stroke-linecap":"butt"},label:se(!0,{},t.label,e.label)}},_createLines:function(t,n,e){for(var i=[],r=this._canvas,o=[r.left,r.top,r.left,r.top],a=0;a<2;a++)i.push(this._renderer.path(o,"line").attr(t).sharp(n).append(e));return i},render:function(){var t=this._renderer,n=this._options,e=n.vertical,i=n.horizontal,r=i.visible?i.line:e.line,o={stroke:r.stroke,"stroke-width":r["stroke-width"],dashStyle:r.dashStyle,opacity:r.opacity},a=this._canvas;this._horizontal={},this._vertical={},this._circle=t.circle(a.left,a.top,0).attr(o).append(this._crosshairGroup),this._horizontalGroup=t.g().append(this._crosshairGroup),this._verticalGroup=t.g().append(this._crosshairGroup),e.visible&&(this._vertical.lines=this._createLines(e.line,"h",this._verticalGroup),this._vertical.labels=this._createLabels(this._axes[0],e,!1,this._verticalGroup)),i.visible&&(this._horizontal.lines=this._createLines(i.line,"v",this._horizontalGroup),this._horizontal.labels=this._createLabels(this._axes[1],i,!0,this._horizontalGroup)),this.hide()},_createLabels:function(t,n,e,i){var a,s,l,f,S,r=this._canvas,o=this._renderer,u=[],T=n.label;return T.visible&&t.forEach(function(R){var L=R.getOptions().position;if(!R.getTranslator().getBusinessRange().isEmpty()){S=R.getLabelsPosition(),e?(s=r.top,a=S):(a=r.left,s=S);var z="top"===L||"bottom"===L?"center":"right"===L?"left":"right";f=o.rect(0,0,0,0).attr({fill:T.backgroundColor||n.line.stroke}).append(i),l=o.text("0",0,0).css(_a(n.label.font)).attr({align:z,class:T.cssClass}).append(i),u.push({text:l,background:f,axis:R,options:T,pos:{coord:S,side:L},startXY:{x:a,y:s}})}}),u},_updateText:function(t,n,e,i,r){var o=this;e.forEach(function(a){var s=a.axis,l=a.startXY,u=a.text,f=a.background,S="";(!s.name||s.name===n)&&(S=s.getFormattedValue(t,a.options,i)),S?(u.attr({text:S,x:l.x,y:l.y}),u.attr(r(u.getBBox(),a.pos.side,l)),o._updateLinesCanvas(a),f.attr(kOe(u.getBBox()))):(u.attr({text:""}),f.attr({x:0,y:0,width:0,height:0}))})},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(t){var n=t.pos.side,e=t.pos.coord,i=this._linesCanvas,r=this._canvas;i[n]=i[n]!==r[n]&&SOe(i[n]-r[n])<SOe(e-r[n])?i[n]:e},_updateLines:function(t,n,e,i,r){for(var o=this._linesCanvas,a=this._canvas,s=r?[[DOe(n-i,o.left),a.top,n-i,a.top],[n+i,a.top,EOe(o.right,n+i),a.top]]:[[a.left,DOe(o.top,e-i),a.left,e-i],[a.left,e+i,a.left,EOe(o.bottom,e+i)]],l=0;l<2;l++)t[l].attr({points:s[l]}).sharp(r?"v":"h",r?e===a.bottom?-1:1:n===a.right?-1:1)},_resetLinesCanvas:function(){var t=this._canvas;this._linesCanvas={left:t.left,right:t.right,top:t.top,bottom:t.bottom}},_getClipRectForPane:function(t,n){var i,r,e=this._panes;for(i=0;i<e.length;i++)if((r=e[i].coords).left<=t&&r.right>=t&&r.top<=n&&r.bottom>=n)return e[i].clipRect;return{id:null}},show:function(t){var n=t.point,e=n.getCrosshairData(t.x,t.y),i=n.getPointRadius(),r=this._horizontal,o=this._vertical,a=i?i+3:0,s=this._canvas,l=OOe(e.x),u=OOe(e.y);l>=s.left&&l<=s.right&&u>=s.top&&u<=s.bottom?(this._crosshairGroup.attr({visibility:"visible"}),this._resetLinesCanvas(),this._circle.attr({cx:l,cy:u,r:a,"clip-path":this._getClipRectForPane(l,u).id}),r.lines&&(this._updateText(e.yValue,e.axis,r.labels,n,MOe(l,u,!0,s)),this._updateLines(r.lines,l,u,a,!0),this._horizontalGroup.attr({translateY:u-s.top})),o.lines&&(this._updateText(e.xValue,e.axis,o.labels,n,MOe(l,u,!1,s)),this._updateLines(o.lines,l,u,a,!1),this._verticalGroup.attr({translateX:l-s.left}))):this.hide()}};var XI=".shutter-zoom",g4t=Pc+XI,f4t=Qd+XI,m4t=Rc+XI;function AOe(t,n,e,i){var r=Math.floor(e?i.pageY-t.top:i.pageX-t.left),o=e?n.y1:n.x1,a=e?n.y2:n.x2;return r<o?r=o:r>a&&(r=a),r}const x4t={name:"shutter_zoom",init:function(){var t=this.option("shutterZoom")||{};t.enabled&&(this._shutterZoom=function b4t(t){var n=t.chart,e=t.renderer,i=t.rotated,r=e.rect(0,0,0,0).attr(t.shutterOptions),o={rect:r,root:e.root,rotated:i,triggerStart:function(){n._eventTrigger("zoomStart")},triggerEnd:function(){var a=n._argumentAxes[0].getTranslator(),s=Math.min(this.startCoord,this.curCoord),l=Math.max(this.startCoord,this.curCoord);n._eventTrigger("zoomEnd",{rangeStart:a.from(s),rangeEnd:a.from(l)})},dispose:function(){e.root.off(XI),r.dispose()},getRootOffset:function(){return e.getRootOffset()},getCanvas:function(){var a=n._canvas,s=n.panes,l=s[0].canvas,u=s[s.length-1].canvas;return{x1:l.left,y1:l.top,x2:a.width-u.right,y2:a.height-u.bottom,width:a.width-l.left-u.right,height:a.height-l.top-u.bottom}}};return e.root.off(XI).on(g4t,{direction:i?"vertical":"horizontal",immediate:!0},function v4t(t){return function(n){var e=t.getRootOffset(),i=t.getCanvas();!function _4t(t,n,e){var i=e.pageX-t.left,r=e.pageY-t.top;return i>=n.x1&&i<=n.x2&&r>=n.y1&&r<=n.y2}(e,i,n)?n.cancel=!0:(t.rootOffset=e,t.canvas=i,t.startCoord=AOe(e,i,t.rotated,n),t.triggerStart(),t.rect.attr({x:i.x1,y:i.y1,width:i.width,height:i.height}).append(t.root))}}(o)).on(f4t,function y4t(t){return function(n){var e=AOe(t.rootOffset,t.canvas,t.rotated,n),i={};t.curCoord=e,i[t.rotated?"y":"x"]=Math.min(t.startCoord,e),i[t.rotated?"height":"width"]=Math.abs(t.startCoord-e),t.rect.attr(i)}}(o)).on(m4t,function C4t(t){return function(n){t.triggerEnd(),t.rect.remove()}}(o)),o}({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:t}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}};var FOe="start",POe="",ROe="end",Eq=[],EN=function(t,n){Eq.push({name:t,args:n})};EN("transform",{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),EN("translate",{translation:!0,deltaTranslation:!0}),EN("pinch",{scale:!0,deltaScale:!0}),EN("rotate",{rotation:!0,deltaRotation:!0});var LOe=function(t){var n=t.pointers;return function(t,n){return{x:n.pageX-t.pageX,y:-n.pageY+t.pageY,centerX:.5*(n.pageX+t.pageX),centerY:.5*(n.pageY+t.pageY)}}(n[0],n[1])},ON=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},BOe=function(t,n){return ON(t)/ON(n)},NOe=function(t,n){var e=t.x*n.x+t.y*n.y,i=ON(t)*ON(n);return 0===i?0:gh(t.x*n.y-n.x*t.y)*Math.acos(al(e/i,-1,1))},VOe=function(t,n){return{x:t.centerX-n.centerX,y:t.centerY-n.centerY}},T4t=yT.inherit({validatePointers:function(t){return Uge(t)>1},start:function(t){this._accept(t);var n=LOe(t);this._startVector=n,this._prevVector=n,this._fireEventAliases(FOe,t)},move:function(t){var n=LOe(t),e=this._getEventArgs(n);this._fireEventAliases(POe,t,e),this._prevVector=n},end:function(t){var n=this._getEventArgs(this._prevVector);this._fireEventAliases(ROe,t,n)},_getEventArgs:function(t){return{scale:BOe(t,this._startVector),deltaScale:BOe(t,this._prevVector),rotation:NOe(t,this._startVector),deltaRotation:NOe(t,this._prevVector),translation:VOe(t,this._startVector),deltaTranslation:VOe(t,this._prevVector)}},_fireEventAliases:function(t,n,e){e=e||{},we(Eq,function(i,r){var o={};we(r.args,function(a){a in e&&(o[a]=e[a])}),this._fireEvent("dx"+r.name+t,n,o)}.bind(this))}}),HOe=Eq.reduce((t,n)=>([FOe,POe,ROe].forEach(e=>{t.push("dx"+n.name+e)}),t),[]);oC({emitter:T4t,events:HOe});var zOe={};we(HOe,function(t,n){zOe[n.substring("dx".length)]=n});var{pinchstart:I4t,pinch:k4t,pinchend:M4t}=zOe,Rp=".zoomAndPanNS",A4t=Pc+Rp,F4t=Qd+Rp,P4t=Rc+Rp,R4t=I4t+Rp,L4t=k4t+Rp,B4t=M4t+Rp,UOe="dxc-scroll-start"+Rp,N4t="dxc-scroll-move"+Rp,V4t="dxc-scroll-end"+Rp,yS=Math.min,WOe=Math.max,JI=Math.abs;function CS(t){return{x:t.left,y:t.top,width:t.width-t.left-t.right,height:t.height-t.top-t.bottom}}function QI(t,n){var e=n.x,i=n.y;return e>=t.x&&e<=t.width+t.x&&i>=t.y&&i<=t.height+t.y}function ek(t){return t.filter(n=>!n.getTranslator().getBusinessRange().isEmpty())}function Tq(t){return t.some(n=>!n.isExtremePosition(!1)||!n.isExtremePosition(!0))}function GOe(t,n,e,i,r,o,a){var s=n&&t!==n,l=e(t),{stopInteraction:u,correctedRange:f}=t.checkZoomingLowerLimitOvercome(r,o,l),S=t.handleZooming(u?null:f,i(s),a,r);return u&&t.handleZoomEnd(),{stopInteraction:u,result:S}}function TN(t,n,e,i,r,o){n=function z4t(t,n){return n&&(t=t.sort((e,i)=>e===n?-1:i===n?1:0)),t}(n,o);var a=!1,s=l=>({start:!!l,end:!!l});return ek(n).some(l=>{var u=l.getTranslator(),f=u.getMinScale(i),{stopInteraction:S,result:T}=GOe(l,o,e(mt({scale:f,translator:u,axis:l},r)),s,"zoom",f,t);return a=!S,o&&T.isPrevented}),a}function IN(t){t.originalEvent&&IN(t.originalEvent),!1!==t.cancelable&&(t.cancel=!0)}const U4t={name:"zoom_and_pan",init:function(){var t=this,n=this._renderer;function e(R,L){var z=[],j=R.options,Y=R.actionData;return j.argumentAxis[L]&&z.push(t.getArgumentAxis()),j.valueAxis[L]&&(z=z.concat(Y.valueAxes)),z}function i(R,L,z){ek(e(R,L)).some(Y=>Y.handleZooming(null,{end:!0},z,L).isPrevented)&&IN(z)}function r(R,L,z,j,Y){function ie(at,vt,Bt,St,ct){var Nt={zoomed:!1};return vt&&ek(at).forEach(Kt=>{var on=Kt.getOptions(),hn=Kt.visualRange(),bn=Kt.getTranslator().getEventScale(St),Qn=-j(St,ct,Bt,bn);Nt=se(!0,Nt,Kt.getTranslator().zoom(Qn,bn,Kt.getZoomBounds()));var Xn=Kt.adjustRange(jg([Nt.min,Nt.max])),{stopInteraction:Ie,correctedRange:We}=Kt.checkZoomingLowerLimitOvercome(L,bn,Xn);if(Z(hn)&&hn.startValue.valueOf()===We.startValue.valueOf()&&hn.endValue.valueOf()===We.endValue.valueOf()){if("touch"===St.pointerType&&"discrete"===on.type){var Ve=Kt.isExtremePosition(!1),gt=Kt.isExtremePosition(!0);Nt.enabled=bn>1&&!Ie||bn<1&&(!Ve||!gt)||1===bn&&!(Ve&&(Qn<0&&!on.inverted||Qn>0&&on.inverted)||gt&&(Qn>0&&!on.inverted||Qn<0&&on.inverted))}}else Kt.handleZooming(Ie?null:We,{start:!0,end:!0},St,L),Ie||(Nt.zoomed=!0,Nt.deltaTranslate=Qn-Nt.translate)}),Nt}function te(at,vt,Bt,St){Bt.zoomed&&(vt.offset[St]=(at.offset?at.offset[St]:vt.offset[St])+Bt.deltaTranslate)}function re(at,vt,Bt,St){Bt.zoomed&&(vt.center[St]=at[St]+Bt.deltaTranslate)}var he=t.option("rotated"),fe=R.actionData,Te=R.options,Re={},He={};fe.fallback||(Re=ie(t._argumentAxes,Te.argumentAxis[L],he?"y":"x",z,fe),He=ie(fe.valueAxes,Te.valueAxis[L],he?"x":"y",z,fe),t._requestChange(["VISUAL_RANGE"]),te(z,fe,Re,he?"y":"x"),te(z,fe,He,he?"x":"y"));var Ze=Y(z);return re(Ze,fe,Re,he?"y":"x"),re(Ze,fe,He,he?"x":"y"),!Re.zoomed&&!He.zoomed&&(fe.center=Ze),Re.zoomed||He.zoomed||fe.fallback||Re.enabled||He.enabled}function o(R,L,z,j){function Y(Te,Re,He,Ze){var at=!1,vt=z.scale||1,Bt=ct=>{var Nt=ct.getTranslator().zoom(-j(z,He,Re,vt),vt,ct.getZoomBounds());return{startValue:Nt.min,endValue:Nt.max}},St=ct=>({start:!0,end:ct});return ek(Te).forEach(ct=>{at=!GOe(ct,Ze,Bt,St,L,vt,z).stopInteraction}),at}var ie=t.option("rotated"),te=R.actionData,re=R.options,he=!0;if(te.fallback)he&=re.argumentAxis[L]&&Y(t._argumentAxes,ie?"y":"x",te,t.getArgumentAxis()),he|=re.valueAxis[L]&&Y(te.valueAxes,ie?"x":"y",te);else{var fe=e(R,L);ek(fe).forEach(Te=>{Te.handleZooming(null,{start:!0},z,L)}),he=fe.length}he&&t._requestChange(["VISUAL_RANGE"])}function a(R,L){var z=t._argumentAxes.filter(j=>QI(CS(j.getCanvas()),R));return{fallback:t._lastRenderingTime>300,cancel:!z.length||!Z(L),action:L,curAxisRect:z.length&&CS(z[0].getCanvas()),valueAxes:z.length&&t._valueAxes.filter(j=>QI(CS(j.getCanvas()),R)),offset:{x:0,y:0},center:R,startCenter:R}}function s(R,L){var z=n.getRootOffset();return{x:yS(WOe(L.pageX-z.left,R.x),R.width+R.x),y:yS(WOe(L.pageY-z.top,R.y),R.height+R.y)}}function l(R){var L=n.getRootOffset(),z=R.pointers[0].pageX,j=R.pointers[1].pageX,Y=R.pointers[0].pageY,ie=R.pointers[1].pageY;return{x:yS(z,j)+JI(j-z)/2-L.left,y:yS(Y,ie)+JI(ie-Y)/2-L.top}}function u(R){var L=n.getRootOffset();return{x:R.pageX-L.left,y:R.pageY-L.top}}function f(R,L,z){return R.offset[z]-L.offset[z]}function S(R){!1!==R.cancelable&&(R.preventDefault(),R.stopPropagation()),t._stopCurrentHandling()}var T={dragStartHandler:function(R){var re,L=T.options,z="touch"===R.pointerType,j=L.argumentAxis.pan||L.valueAxis.pan,Y=L.argumentAxis.zoom||L.valueAxis.zoom,ie=Z(L.panKey)&&R[Ri(L.panKey)+"Key"],te=L.dragToZoom;R._cancelPreventDefault=!0,z?L.allowTouchGestures&&j&&(re=!T.panningVisualRangeEnabled()||T.skipEvent?null:"pan"):te&&j&&ie||!te&&j?re="pan":te&&Y&&(re="zoom");var fe=a(u(R),re);if(fe.cancel)return T.skipEvent=!1,void(!1!==R.cancelable&&(R.cancel=!0));T.actionData=fe,"zoom"===re?(fe.startCoords=s(fe.curAxisRect,R),fe.rect=n.rect(0,0,0,0).attr(L.dragBoxStyle).append(n.root)):i(T,"pan",R)},dragHandler:function(R){var L=t.option("rotated"),z=T.options,j=T.actionData,Y="touch"===R.pointerType;if(R._cancelPreventDefault=!0,j&&(!Y||T.panningVisualRangeEnabled()))if("zoom"===j.action){S(R);var ie=j.curAxisRect,te=j.startCoords,re=s(ie,R),he=z.argumentAxis.zoom,fe=z.valueAxis.zoom,Te={x:yS(te.x,re.x),y:yS(te.y,re.y),width:JI(te.x-re.x),height:JI(te.y-re.y)};(!he||!fe)&&(!he&&!L||!fe&&L?(Te.x=ie.x,Te.width=ie.width):(Te.y=ie.y,Te.height=ie.height)),j.rect.attr(Te)}else if("pan"===j.action){r(T,"pan",R,f,Ze=>Ze.offset);var Re=Math.abs(R.offset.y-j.offset.y),He=Math.abs(R.offset.x-j.offset.x);if(Y&&(Re>5&&Re>Math.abs(j.offset.x)||He>5&&He>Math.abs(j.offset.y)))return;S(R)}},dragEndHandler:function(R){var L=t.option("rotated"),z=T.options,j=T.actionData,Y="touch"===R.pointerType,ie=at=>{var{translator:vt,startCoord:Bt,curCoord:St}=at;return()=>[vt.from(Bt),vt.from(St)]},te=(at,vt,Bt)=>({curCoord:at[Bt],startCoord:vt[Bt]}),re=(at,vt)=>at.zoom&&JI(vt.curCoord-vt.startCoord)>5,he=j&&"pan"===j.action&&!j.fallback&&0===j.offset.x&&0===j.offset.y;if(j&&(!Y||T.panningVisualRangeEnabled())&&!he){if(!Y&&S(R),"zoom"===j.action){var fe=s(j.curAxisRect,R),Te=te(fe,j.startCoords,L?"y":"x"),Re=te(fe,j.startCoords,L?"x":"y"),He=re(z.argumentAxis,Te)&&TN(R,t._argumentAxes,ie,!0,Te,t.getArgumentAxis());(re(z.valueAxis,Re)&&TN(R,j.valueAxes,ie,!0,Re)||He)&&t._requestChange(["VISUAL_RANGE"]),j.rect.dispose()}else"pan"===j.action&&o(T,"pan",R,f);T.actionData=null}},pinchStartHandler:function(R){var L=a(l(R),"zoom");L.cancel?IN(R):(T.actionData=L,i(T,"zoom",R))},pinchHandler:function(R){T.actionData&&(r(T,"zoom",R,(L,z,j,Y)=>l(L)[j]-z.center[j]+(z.center[j]-z.center[j]*Y),l),S(R))},pinchEndHandler:function(R){T.actionData&&(o(T,"zoom",R,(L,z,j,Y)=>z.center[j]-z.startCenter[j]+(z.startCenter[j]-z.startCenter[j]*Y)),T.actionData=null)},mouseWheelHandler:function(R){var te,L=T.options,z=t.option("rotated"),j=fe=>{var{translator:Te,coord:Re,scale:He,axis:Ze}=fe;return()=>{var at=Te.zoom(-(Re-Re*He),He,Ze.getZoomBounds());return{startValue:at.min,endValue:at.max}}},Y=u(R),ie=!1;if(L.valueAxis.zoom){if(0===(te=t._valueAxes.filter(fe=>QI(CS(fe.getCanvas()),Y))).length){var re=t._valueAxes.reduce((fe,Te)=>(!fe&&Te.coordsIn(Y.x,Y.y)&&(fe=Te.getCanvas()),fe),null);re&&(te=t._valueAxes.filter(fe=>QI(CS(fe.getCanvas()),{x:re.left,y:re.top})))}ie|=TN(R,te,j,R.delta>0,{coord:z?Y.x:Y.y})}L.argumentAxis.zoom&&(ie|=t._argumentAxes.some(fe=>!(!QI(CS(fe.getCanvas()),Y)&&!fe.coordsIn(Y.x,Y.y)))&&TN(R,t._argumentAxes,j,R.delta>0,{coord:z?Y.y:Y.x},t.getArgumentAxis())),ie&&(t._requestChange(["VISUAL_RANGE"]),(te&&Tq(te)||!te&&T.panningVisualRangeEnabled())&&S(R))},cleanup:function(){n.root.off(Rp),T.actionData&&T.actionData.rect&&T.actionData.rect.dispose(),T.actionData=null,n.root.css({"touch-action":"","-ms-touch-action":""})},setup:function(R){T.cleanup(),R.argumentAxis.pan||n.root.on(UOe,IN),(!R.argumentAxis.none||!R.valueAxis.none)&&(T.options=R,(R.argumentAxis.zoom||R.valueAxis.zoom)&&R.allowMouseWheel&&n.root.on(p_+Rp,T.mouseWheelHandler),(R.argumentAxis.zoom||R.valueAxis.zoom)&&R.allowTouchGestures&&n.root.on(R4t,{passive:!1},T.pinchStartHandler).on(L4t,{passive:!1},T.pinchHandler).on(B4t,T.pinchEndHandler),n.root.on(A4t,{immediate:!0,passive:!1},T.dragStartHandler).on(F4t,{immediate:!0,passive:!1},T.dragHandler).on(P4t,T.dragEndHandler),n.root.on(UOe,function(L){T.actionData={valueAxes:[],offset:{x:0,y:0},center:{x:0,y:0}},S(L),i(T,"pan",L)}).on(N4t,function(L){S(L),r(T,"pan",L,f,z=>z.offset)}).on(V4t,function(L){S(L),o(T,"pan",L,f),T.actionData=null}))},panningVisualRangeEnabled:function(){return Tq(t._valueAxes)||Tq(t._argumentAxes)}};this._zoomAndPan=T},members:{_setupZoomAndPan:function(){this._zoomAndPan.setup(this._themeManager.getOptions("zoomAndPan"))}},dispose:function(){this._zoomAndPan.cleanup()},customize:function(t){t.addChange({code:"ZOOM_AND_PAN",handler:function(){this._setupZoomAndPan()},isThemeDependent:!0,isOptionChange:!0,option:"zoomAndPan"})}};var Iq=It.getDocument,kq="annotations",tk="."+kq,jOe=kt([qn.down,qn.move],kq),W4t=kt(qn.up,kq),G4t=Pc+tk,j4t=Qd+tk,K4t=Rc+tk;function $4t(t,n){return{draw:function(e,i){var r=e._renderer.g().append(i).css(_a(t.font));this.plaque&&this.plaque.clear(),this.plaque=new Swe(se(!0,{},t,{cornerRadius:(t.border||{}).cornerRadius}),e,r,n,e._isAnnotationBounded(t)),this.plaque.draw(e._getAnnotationCoords(this)),t.allowDragging&&r.on(G4t,{immediate:!0},o=>{this._dragOffsetX=this.plaque.x-o.pageX,this._dragOffsetY=this.plaque.y-o.pageY}).on(j4t,o=>{this.plaque.move(o.pageX+this._dragOffsetX,o.pageY+this._dragOffsetY)}).on(K4t,o=>{this.offsetX=(this.offsetX||0)+o.offset.x,this.offsetY=(this.offsetY||0)+o.offset.y})},hitTest(e,i){return this.plaque.hitTest(e,i)},showTooltip(e,i){var{x:r,y:o}=i,a=this,s=a.options;if(e.annotation!==a){e.setTemplate(s.tooltipTemplate);var l=u=>{u&&(e.annotation=a)};l(e.show(s,{x:r,y:o},{target:s},s.customizeTooltip,l))}else e.isCursorOnTooltip(r,o)||e.move(r,o)}}}function q4t(t,n){var e;return"text"===t.type?e=function(i,r){var o=n._renderer.text(i.text).attr({class:i.cssClass}).append({element:r});(i.width>0||i.height>0)&&o.setMaxSize(i.width,i.height,{wordWrap:i.wordWrap,textOverflow:i.textOverflow})}:"image"===t.type?e=function(i,r){var{width:o,height:a,url:s,location:l}=i.image||{},{width:u,height:f}=i,S=u>0?Math.min(o,u):o,T=f>0?Math.min(a,f):a;n._renderer.image(0,0,S,T,s,l||"center").append({element:r})}:"custom"===t.type&&(e=t.template),e}function Mq(t){return"string"==typeof t?{url:t}:t}var zh={name:"annotations_chart",init(){},dispose(){},members:{_getAnnotationCoords(t){var n,e,u,S,i={offsetX:t.offsetX,offsetY:t.offsetY},r=this._options.silent("rotated")?"y":"x",o=this._options.silent("rotated")?"x":"y",a=this.getArgumentAxis(),s=a.validateUnit(t.argument),l=this.getValueAxis(t.axis),f=null===(n=l)||void 0===n?void 0:n.pane;if(t.series&&(u=this.series.filter(j=>j.name===t.series)[0],l=null===(S=u)||void 0===S?void 0:S.getValueAxis(),Z(l)&&(f=l.pane)),Z(s)){if(u){var T=u.getPointCenterByArg(s);T&&(i[r]=T[r])}else i[r]=a.getTranslator().translate(s);!Z(f)&&(f=a.pane)}var L,z,R=null===(e=l)||void 0===e?void 0:e.validateUnit(t.value);return Z(R)&&(i[o]=null===(L=l)||void 0===L?void 0:L.getTranslator().translate(R),!Z(f)&&Z(l)&&(f=l.pane)),i.canvas=this._getCanvasForPane(f),Z(i[r])&&!Z(R)&&(Z(l)||Z(u)?Z(l)&&!Z(u)?i[o]=this._argumentAxes.filter(j=>j.pane===l.pane)[0].getAxisPosition():null!==(z=u)&&void 0!==z&&z.checkSeriesViewportCoord(a,i[r])&&(i[o]=u.getSeriesPairCoord(i[r],!0)):i[o]=a.getAxisPosition()),!Z(s)&&Z(i[o])&&(Z(l)&&!Z(u)?i[r]=l.getAxisPosition():Z(u)&&u.checkSeriesViewportCoord(l,i[o])&&(i[r]=u.getSeriesPairCoord(i[o],!1))),i},_annotationsPointerEventHandler(t){if(!this._disposed){var n=t.originalEvent||{},e=n.touches&&n.touches[0]||{},i=this._renderer.getRootOffset(),r={x:e.pageX||n.pageX||t.pageX,y:e.pageY||n.pageY||t.pageY},o=this._annotations.items.filter(a=>a.hitTest(r.x-i.left,r.y-i.top))[0];if(!o||!o.options.tooltipEnabled)return void this._annotations.hideTooltip();this._clear(),o.options.allowDragging&&t.type===qn.down&&(this._annotations._hideToolTipForDrag=!0),this._annotations._hideToolTipForDrag||(o.showTooltip(this._annotations.tooltip,r),t.stopPropagation())}},_isAnnotationBounded:t=>Z(t.value)||Z(t.argument),_pullOptions:t=>({type:t.type,name:t.name,x:t.x,y:t.y,value:t.value,argument:t.argument,axis:t.axis,series:t.series,options:t,offsetX:t.offsetX,offsetY:t.offsetY}),_forceAnnotationRender(){this._change(["FORCE_RENDER"])},_clear(){this.hideTooltip(),this.clearHover()}}},Z4t={name:"annotations_polar_chart",init(){},dispose(){},members:{_getAnnotationCoords(t){var s,l,n={offsetX:t.offsetX,offsetY:t.offsetY,canvas:this._calcCanvas()},e=this.getArgumentAxis(),i=e.validateUnit(t.argument),r=this.getValueAxis().validateUnit(t.value),o=t.radius,a=t.angle;return t.series&&(l=this.series.filter(u=>u.name===t.series)[0]),se(!0,n,this.getXYFromPolar(a,o,i,r)),Z(l)&&(!Z(n.angle)||Z(r)||Z(o)?Z(n.radius)&&!Z(i)&&!Z(a)&&(s=l.getSeriesPairCoord({radius:n.radius},!1)):(Z(i)||(i=e.getTranslator().from(isFinite(a)?this.getActualAngle(a):n.angle)),s=l.getSeriesPairCoord({argument:i,angle:-n.angle},!0)),Z(s)&&(n.x=s.x,n.y=s.y)),t.series&&!Z(s)&&(n.x=n.y=void 0),n},_annotationsPointerEventHandler:zh.members._annotationsPointerEventHandler,_isAnnotationBounded:zh.members._isAnnotationBounded,_pullOptions(t){var n=se({},{radius:t.radius,angle:t.angle},zh.members._pullOptions(t));return delete n.axis,n},_forceAnnotationRender:zh.members._forceAnnotationRender,_clear:zh.members._clear}},X4t={name:"annotations_vector_map",init(){},dispose(){this._annotations._offTracker(),this._annotations._offTracker=null},members:{_getAnnotationCoords(t){var n={offsetX:t.offsetX,offsetY:t.offsetY};if(n.canvas=this._projection.getCanvas(),t.coordinates){var e=this._projection.toScreenPoint(t.coordinates);n.x=e[0],n.y=e[1]}return n},_annotationsPointerEventHandler:zh.members._annotationsPointerEventHandler,_isAnnotationBounded:t=>Z(t.coordinates),_pullOptions(t){var n=se({},{coordinates:t.coordinates},zh.members._pullOptions(t));return delete n.axis,delete n.series,delete n.argument,delete n.value,n},_forceAnnotationRender(){this._change(["EXTRA_ELEMENTS"])},_getAnnotationStyles:()=>({"text-anchor":"start"}),_clear(){}},extenders:{_prepareExtraElements(){var t=this,n=()=>{t._renderExtraElements()};t._annotations._offTracker=t._tracker.on({move:n,zoom:n,end:n})}}},J4t={name:"annotations_pie_chart",init(){},dispose(){},members:{_getAnnotationCoords(t){var e={offsetX:t.offsetX,offsetY:t.offsetY,canvas:this._canvas};if(t.argument){var i=(t.series?this.getSeriesByName(t.series):this.series[0]).getPointsByArg(t.argument)[0],{x:r,y:o}=i.getAnnotationCoords(t.location);e.x=r,e.y=o}return e},_isAnnotationBounded:t=>t.argument,_annotationsPointerEventHandler:zh.members._annotationsPointerEventHandler,_pullOptions(t){var n=se({},{location:t.location},zh.members._pullOptions(t));return delete n.axis,n},_clear:zh.members._clear,_forceAnnotationRender:zh.members._forceAnnotationRender}},Q4t={name:"annotations_core",init(){this._annotations={items:[],_hideToolTipForDrag:!1,tooltip:new a4({cssClass:"".concat(this._rootClassPrefix,"-annotation-tooltip"),eventTrigger:this._eventTrigger,widgetRoot:this.element(),widget:this}),hideTooltip(){this.tooltip.annotation=null,this.tooltip.hide()},clearItems(){this.items.forEach(t=>t.plaque.clear()),this.items=[]}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions())},dispose(){this._annotationsGroup.linkRemove().linkOff(),Se.off(Iq(),tk),this._annotationsGroup.off(tk),this._annotations.tooltip&&this._annotations.tooltip.dispose()},extenders:{_createHtmlStructure(){this._annotationsGroup=this._renderer.g().attr({class:"".concat(this._rootClassPrefix,"-annotations")}).css(this._getAnnotationStyles()).linkOn(this._renderer.root,"annotations").linkAppend(),Se.on(Iq(),jOe,t=>{this._disposed||this._annotations.tooltip.isCursorOnTooltip(t.pageX,t.pageY)||this._annotations.hideTooltip()}),Se.on(Iq(),W4t,t=>{this._annotations._hideToolTipForDrag=!1,this._annotationsPointerEventHandler(t)}),this._annotationsGroup.on(jOe,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements(){this._annotationsGroup.clear(),this._annotations.items.forEach(t=>t.draw(this,this._annotationsGroup))},_stopCurrentHandling(){this._annotations.hideTooltip()}},members:{_buildAnnotations(){this._annotations.clearItems();var t=this._getOption("annotations",!0);null!=t&&t.length&&(this._annotations.items=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,o=Mq(e.image);return n.reduce((a,s)=>{var l=Mq(s.image),u=Yt(i)?i(s):{};u&&(u.image=Mq(u.image));var f=se(!0,{},e,s,{image:o},{image:l},u),S=q4t(f,t),T=S&&se(!0,r(f),$4t(f,t._getTemplate(S)));return T&&a.push(T),a},[])}(this,t,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation",!0),this._pullOptions))},_setAnnotationTooltipOptions(){var t=se({},this._getOption("tooltip"));t.contentTemplate=t.customizeTooltip=void 0,this._annotations.tooltip.update(t)},_getAnnotationCoords:()=>({}),_pullOptions:()=>({}),_getAnnotationStyles:()=>({})},customize(t){t.addChange({code:"ANNOTATIONITEMS",handler(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),t.addChange({code:"ANNOTATIONSSETTINGS",handler(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),t.addChange({code:"ANNOTATIONS",handler(){this._buildAnnotations(),this._setAnnotationTooltipOptions(),this._forceAnnotationRender()},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]},dv={core:Q4t,chart:zh,polarChart:Z4t,vectorMap:X4t,pieChart:J4t},tNt=[{name:"default",border:{}}],kN="discrete",nk=Array.isArray;function MN(t,n,e){var i=t.getOptions().grid,r=t.getOptions().minorGrid;i.visible=n,r&&(r.visible=e)}function $Oe(t,n,e){var i,r;for(r=0;r<e.length;r++)if((i=e[r]).name===n&&i.pane===t)return i;if(t)return $Oe(void 0,n,e)}function oNt(t,n){return t.priority-n.priority}function qOe(t,n){var e=!1;return we(t,function(i,r){if(r.name===n)return e=!0,!1}),e}function bS(t,n,e,i){var r=n[t]||0,o=e[t]||0;return r+o+(r&&o?i:0)}function Uh(t,n,e){return YOe(n[t],e[t])}function YOe(t,n){return Math.max(t||0,n||0)}function AN(t){return t.getMargins()}function FN(t,n){return t.reduce(function(e,i){var r,o=n(i),a=e.panes[i.pane]=e.panes[i.pane]||{},s=i.getMultipleAxesSpacing();a.top=bS("top",a,o,s),a.bottom=bS("bottom",a,o,s),a.left=Uh("left",a,o),a.right=Uh("right",a,o),e.top=Uh("top",a,e),e.bottom=Uh("bottom",a,e),e.left=Uh("left",a,e),e.right=Uh("right",a,e);var l=null===(r=i.getOrthogonalAxis)||void 0===r?void 0:r.call(i);return l&&l.customPositionIsAvailable()&&(!i.customPositionIsBoundaryOrthogonalAxis()||!l.customPositionEqualsToPredefined())&&(e[l.getResolvedBoundaryPosition()]=0),e},{panes:{}})}function Aq(t){return t.reduce(function(n,e){var i=e.getMargins(),r=n.panes[e.pane]=n.panes[e.pane]||{},o=e.getMultipleAxesSpacing();return r.top=Uh("top",r,i),r.bottom=Uh("bottom",r,i),r.left=bS("left",r,i,o),r.right=bS("right",r,i,o),n.top=Uh("top",r,n),n.bottom=Uh("bottom",r,n),n.left=Uh("left",r,n),n.right=Uh("right",r,n),n},{panes:{}})}function rf(t,n,e,i,r){t.forEach(function(o){o[n](e&&e[o.pane],i&&i[o.pane]||i,r)})}function PN(t,n,e,i,r){function o(f,S,T){return(-1===(t?["left","right"]:["top","bottom"]).indexOf(f)?S:S.panes[T]||{})[f]}function a(f,S,T,R){return YOe(o(f,S,R),o(f,T,R))}var s=f=>"original".concat(f[0].toUpperCase()).concat(f.slice(1));function l(f,S,T,R,L,z){(S=S.sort((ie,te)=>f[te][R]-f[ie][R])).forEach(ie=>{var te=f[ie];z.forEach(re=>{te[re]=te[s(re)]+a(re,i,r,ie)})});var j=f[S[0]],Y=S.reduce((ie,te)=>ie-(a(R,i,r,te)+a(L,i,r,te)),j[T]-j[s(L)]-f[S[S.length-1]][s(R)])-10*(S.length-1);Y-=Object.keys(e).reduce((ie,te)=>ie+(rI(e[te])?0:e[te].height),0),S.reduce((ie,te)=>{var re=f[te],he=e[te];return ie-=a(L,i,r,te),re[L]=j[T]-ie,ie-=rI(he)?Math.floor(Y*he.height):he.height,re[R]=ie,ie-(a(R,i,r,te)+10)},j[T]-j[s(L)]-(Y<0?Y:0))}var u=Object.keys(n);return t?l(n,u,"width","left","right",["top","bottom"]):l(n,u,"height","top","bottom",["left","right"]),n}function Fq(t,n,e,i){n&&(rf(t,"createTicks",e),HBt.synchronize(t)),rf(t,"draw",!n&&e,i)}function RN(t,n){var e={};return function(i){if(!i.customPositionIsAvailable()||i.customPositionEqualsToPredefined()){var r=e[i.pane]=e[i.pane]||{top:0,left:0,bottom:0,right:0},o=i.getMultipleAxesSpacing(),a=i.getMargins();i.shift(r),r[t]=bS(t,r,a,o),r[n]=bS(n,r,a,o)}else i.shift({top:0,left:0,bottom:0,right:0})}}function ZOe(t,n){var i,r,e=0;for(i in n.panes)r=n.panes[i],e+="height"===t?r.top+r.bottom:r.left+r.right;return e}function XOe(t,n,e,i){var r=0;t[n]>0&&(r=ZOe(n,i(e,AN)),rf(e,"hideTitle"),t[n]-=r-ZOe(n,i(e,AN))),t[n]>0&&rf(e,"hideOuterElements")}var xS=bOe.inherit({_themeSection:"chart",_fontFields:["crosshair.label.font"],_initCore:function(){this.paneAxis={},this.callBase()},_init(){this._containerInitialHeight=Rn()?Ln(this._$element):0,this.callBase()},_correctAxes:function(){this._correctValueAxes(!0)},_getExtraOptions:Be,_createPanes:function(){var e,t=this.option("panes"),n=0;return(!t||nk(t)&&!t.length)&&(t=tNt),this.callBase(),e=this.option("defaultPane"),t=se(!0,[],nk(t)?t:[t]),we(t,function(i,r){r.name=Z(r.name)?r.name:"default"+n++}),Z(e)?qOe(t,e)||(this._incidentOccurred("W2101",[e]),e=t[t.length-1].name):e=t[t.length-1].name,this.defaultPane=e,this._isRotated()?t.reverse():t},_getAxisRenderingOptions:function(){return{axisType:"xyAxes",drawingType:"linear"}},_prepareAxisOptions:function(t,n,e){return{isHorizontal:"argumentAxis"===t!==e,containerColor:this._themeManager.getOptions("containerBackgroundColor")}},_checkPaneName:function(t){var n=ma(this.panes,function(e){return e.name});return t.pane=t.pane||this.defaultPane,n.includes(t.pane)},_initCustomPositioningAxes(){var t=this,n=t.getArgumentAxis(),e=n.getOptions().customPositionAxis,i=t._valueAxes.filter(r=>r.pane===n.pane&&(!e||e===r.name))[0];t._valueAxes.forEach(r=>{n!==r.getOrthogonalAxis()&&(r.getOrthogonalAxis=()=>n,r.customPositionIsBoundaryOrthogonalAxis=()=>n.customPositionIsBoundary())}),Z(i)&&i!==n.getOrthogonalAxis()?(n.getOrthogonalAxis=()=>i,n.customPositionIsBoundaryOrthogonalAxis=()=>t._valueAxes.some(r=>r.customPositionIsBoundary())):Z(n.getOrthogonalAxis())&&!Z(i)&&(n.getOrthogonalAxis=Be)},_getAllAxes(){return this._argumentAxes.concat(this._valueAxes)},_resetAxesAnimation(t,n){(Z(n)?n^this._isRotated()?this._argumentAxes:this._valueAxes:this._getAllAxes()).forEach(i=>{i.resetApplyingAnimation(t)})},_axesBoundaryPositioning(){var t=this._getAllAxes(),n=!1;return t.forEach(e=>{if(!e.customPositionIsAvailable())return!1;var i=e.customPositionIsBoundary();e._customBoundaryPosition=e.getCustomBoundaryPosition(),n|=i!==e.customPositionIsBoundary()}),n},_getCrosshairMargins:function(){var t=this._getCrosshairOptions()||{},n=t.enabled,e_x=8,e_y=4,i=se(!0,{},t.label,t.horizontalLine.label),r=se(!0,{},t.label,t.verticalLine.label);return{x:n&&t.horizontalLine.visible&&i.visible?e_x:0,y:n&&t.verticalLine.visible&&r.visible?e_y:0}},_getValueAxis:function(t,n){var s,l,e=this._valueAxes,i=this.option("valueAxis")||{},r=nk(i)?i:[i],o=this._isRotated(),a=this._getCrosshairMargins();return n=n||function nNt(t,n,e){for(var i,r=0;r<t.length;r++)if(t[r].pane===n||void 0===t[r].pane&&n===e){i=t[r].name;break}return i||(i=t[0].name),i}(e,t,this.defaultPane),(l=$Oe(t,n,e))||(s=function rNt(t,n,e){var i,r;for(r=0;r<n.length;r++)if(n[r].name===e){(i=n[r]).priority=r;break}if(!i)for(r=0;r<t.length;r++)if(t[r].name===e){(i=t[r].getOptions()).priority=t[r].priority;break}return i}(e,r,n),s||(this._incidentOccurred("W2102",[n]),s={name:n,priority:e.length}),(l=this._createAxis(!1,this._populateAxesOptions("valueAxis",s,{pane:t,name:n,optionPath:nk(i)?"valueAxis[".concat(s.priority,"]"):"valueAxis",crosshairMargin:o?a.y:a.x},o))).applyVisualRangeSetter(this._getVisualRangeSetter()),e.push(l)),l.setPane(t),l},_correctValueAxes:function(t){var n=this,e=n._themeManager.getOptions("synchronizeMultiAxes"),i=n._valueAxes,r={};n.series.forEach(function(a){var s=a.getValueAxis();r[s.pane]=!0}),n.panes.forEach(function(a){var s=a.name;r[s]||n._getValueAxis(s),t&&e&&function iNt(t){var n=!1,e=[],i=t.some(function(o){var a=o.getOptions().minorGrid;return a&&a.visible}),r=t.some(function(o){var a=o.getOptions().grid;return a&&a.visible});t.length>1&&(t.forEach(function(o){var a=o.getOptions().grid;n?MN(o,!1,!1):a&&a.visible&&(o.getTranslator().getBusinessRange().isEmpty()?(MN(o,!1,!1),e.push(o)):(n=!0,MN(o,r,i)))}),!n&&e.length&&MN(e[0],r,i))}(i.filter(function(l){return l.pane===s}))}),n._valueAxes=i.filter(function(a){a.pane||a.setPane(n.defaultPane);var s=qOe(n.panes,a.pane);return s||(a.dispose(),a=null),s}).sort(oNt);var o=this.getValueAxis();n._valueAxes.forEach(a=>{var s=a.getOptions().optionPath;if(s){var l=n._valueAxes.filter(u=>u.getOptions().optionPath===s);l.length>1&&(l.some(u=>u===o)?l.forEach(u=>{u!==o&&(u.getOptions().optionPath=null)}):l.forEach((u,f)=>{0!==f&&(u.getOptions().optionPath=null)}))}})},_getSeriesForPane:function(t){var n=[];return we(this.series,function(e,i){i.pane===t&&n.push(i)}),n},_createPanesBorderOptions:function(){var t=this._themeManager.getOptions("commonPaneSettings").border,n={};return this.panes.forEach(e=>n[e.name]=se(!0,{},t,e.border)),n},_createScrollBar:function(){var t=this._themeManager.getOptions("scrollBar")||{},n=this._scrollBarGroup;t.visible?(t.rotated=this._isRotated(),this._scrollBar=(this._scrollBar||new wOe(this._renderer,n)).update(t)):(n.linkRemove(),this._scrollBar&&this._scrollBar.dispose(),this._scrollBar=null)},_executeAppendAfterSeries(t){t()},_prepareToRender(t){var n=this._createPanesBorderOptions();return this._createPanesBackground(),this._appendAxesGroups(),this._adjustViewport(),n},_adjustViewport(){this._themeManager.getOptions("adjustOnZoom")&&this._valueAxes.forEach(n=>n.adjust())},_recreateSizeDependentObjects(t){var n=this,e=n._getVisibleSeries(),i=e.some(o=>o.useAggregation()),r=n._isZooming();i&&(n._argumentAxes.forEach(function(o){o.updateCanvas(n._canvas,!0)}),e.forEach(function(o){o.useAggregation()&&(t||r||!o._useAllAggregatedPoints)&&o.createPoints()}),n._processSeriesFamilies())},_isZooming(){var t=this.getArgumentAxis();if(!t||!t.getTranslator())return!1;var n=t.getTranslator().getBusinessRange(),e=t.getViewport(),i=e?e.min:0,r=e?e.max:0;"logarithmic"===n.axisType&&(i=Nm(i,n.base),r=Nm(r,n.base));var o=n.axisType===kN?Gg(n.categories,i,r).categories.length:Math.abs(r-i),a=dP(o);a=a>1?Math.pow(10,a-2):1;var s=Math.round((this._zoomLength-o)*a)/a!=0;return this._zoomLength=o,s},_handleSeriesDataUpdated:function(){var t=this,n=new Os;t.series.forEach(function(e){n.addRange(e.getArgumentRange())}),t._argumentAxes.forEach(function(e){e.updateCanvas(t._canvas,!0),e.setBusinessRange(n,t._axesReinitialized)}),t.callBase()},_isLegendInside:function(){return this._legend&&"inside"===this._legend.getPosition()},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(t){this._drawPanesBorders(t),this._createClipRectsForPanes(),this._applyClipRectsForAxes(),this._fillPanesBackground()},_updateLegendPosition:function(t,n){if(t.drawLegend&&this._legend&&n){var e=this.panes,i=se({},e[0].canvas),r=new gN;i.right=e[e.length-1].canvas.right,i.bottom=e[e.length-1].canvas.bottom,r.layoutInsideLegend(this._legend,i)}},_allowLegendInsidePosition:()=>!0,_applyExtraSettings:function(t){var n=this._getPaneIndex(t.pane),e=this._panesClipRects,i=e.wide[n];t.setClippingParams(e.base[n].id,i&&i.id,this._getPaneBorderVisibility(n))},_updatePanesCanvases:function(t){t.recreateCanvas&&function _Ot(t,n,e){var i=0,o=e?n.width-n.left-n.right:n.height-n.top-n.bottom,a=t.reduce((f,S)=>f+(rI(S)?0:S.height),0),s=o-10*(t.length-1)-a,l=e?"left":"top",u=e?"right":"bottom";t.forEach(f=>{var S=rI(f)?mC(f.height*s):f.height;f.canvas=f.canvas||{},se(f.canvas,n),f.canvas[l]=n[l]+i,f.canvas[u]=n[u]+(o-S-i),i=i+S+10,nI(f.canvas)})}(this.panes,this._canvas,this._isRotated())},_normalizePanesHeight:function(){!function mOt(t){t.forEach(l=>{var u=l.height,f=0,S=parseFloat(u)||void 0;(Pn(u)&&u.indexOf("px")>-1||di(u)&&u>1)&&(S=mC(S),f=1),!f&&S&&(Pn(u)&&u.indexOf("%")>-1?(S/=100,f=2):S<0&&(S=S<-1?1:kh(S))),l.height=S,l.unit=f});var n=t.filter(rI),e=n.reduce((l,u)=>l+(u.height||0),0),i=n.length,r=n.filter(l=>!l.height),o=r.length;if(e<1&&o)r.forEach(l=>l.height=(1-e)/o);else if(e>1||e<1&&!o||1===e&&o){if(o){var a=e/i,s=o*a;n.filter(l=>l.height).forEach(l=>l.height*=(e-s)/e),r.forEach(l=>l.height=a)}n.forEach(l=>l.height*=1/e)}}(this.panes)},_renderScaleBreaks:function(){this._valueAxes.concat(this._argumentAxes).forEach(function(t){t.drawScaleBreaks()})},_getArgFilter(){return rv.getViewPortFilter(this.getArgumentAxis().visualRange()||{})},_applyPointMarkersAutoHiding(){var t=this,n=t.series;t._themeManager.getOptions("autoHidePointMarkers")?t.panes.forEach(e=>{var{borderCoords:i,name:r}=e,o=n.filter(T=>T.pane===r&&T.usePointsToDefineAutoHiding()),a=t.getArgumentAxis(),s=function sNt(t,n,e){var i=[],r={},o=e.visualRange(),a=e.getTranslator(),s=rv.getViewPortFilter(o||{});return n.forEach(l=>{var u=l.getValueAxis(),f=u.getCanvasRange(),S=u.getTranslator(),T=t.indexOf(l),R=rv.getViewPortFilter(f||{});r[T]={},n.forEach(z=>r[T][t.indexOf(z)]=0);var L=[];l.getPoints().filter(z=>z.getOptions().visible&&s(z.argument)&&(R(z.getMinValue(!0))||R(z.getMaxValue(!0)))).forEach(z=>{var j={seriesIndex:T,argument:z.argument,value:z.getMaxValue(!0),size:z.bubbleSize||z.getOptions().size};if(z.getMinValue(!0)!==z.getMaxValue(!0)){var Y=se({},j);Y.value=z.getMinValue(!0),Y.x=a.to(Y.argument,1),Y.y=S.to(Y.value,1),L.push(Y)}j.x=a.to(j.argument,1),j.y=S.to(j.value,1),L.push(j)}),r[T].pointsCount=L.length,r[T].total=0,r[T].continuousSeries=0,i.push({name:l.name,index:T,points:L})}),{series:i,overloadedSeries:r}}(n,o,a);if(function uNt(t,n,e){for(var i=t.width*t.height,r=n.series,o=function(s){var l=e.filter(R=>R.name===r[s].name)[0],u=r[s].points,f=u.length?u[0].size:0,S=f*f*u.length;if(l.autoHidePointMarkersEnabled()&&S>=i/r.length){var T=r[s].index;l.autoHidePointMarkers=!0,r.splice(s,1),e.splice(e.indexOf(l),1),delete n.overloadedSeries[T]}},a=r.length-1;a>=0;a--)o(a)}(i,s,o),s.series.length){var l=a.visualRange(),f=a.getOptions().type===kN?(T,R)=>l.categories.indexOf(T.argument)-l.categories.indexOf(R.argument):(T,R)=>T.argument-R.argument,S=[];s.series.forEach(T=>S=S.concat(T.points)),S.sort(f),function dNt(t,n){for(var e=!1,i=0;i<t.length-1;i++){var r=t[i],o=r.size;if(Z(r.x)&&Z(r.y))for(var a=i+1;a<t.length;a++){var s=t[a],l=s?.x,u=s?.y;if(!Z(l)||Math.abs(r.x-l)>=o){e&=a!==i+1;break}var f=Z(l)&&Z(u)&&Math.sqrt(Math.pow(r.x-l,2)+Math.pow(r.y-u,2));f&&f<o&&(n[r.seriesIndex][s.seriesIndex]++,n[r.seriesIndex].total++,e||(n[r.seriesIndex].continuousSeries++,e=!0))}}}(S,s.overloadedSeries),function lNt(t,n,e,i){var r=i.getOptions().type;n.forEach(o=>{var a=t.indexOf(o);o.autoHidePointMarkers=!1;var s=i.getTicksValues().majorTicksValues.length;if(o.autoHidePointMarkersEnabled()&&(r===kN||e[a].pointsCount>s))for(var l in e[a]){var u=parseInt(l);if(!(isNaN(u)||e[a].total/e[a].continuousSeries<3))if(u===a){if(2*e[u][u]>=e[u].pointsCount){o.autoHidePointMarkers=!0;break}}else if(e[a].total>=e[a].pointsCount){o.autoHidePointMarkers=!0;break}}})}(n,o,s.overloadedSeries,a)}}):n.forEach(e=>e.autoHidePointMarkers=!1)},_renderAxes:function(t,n){function e(Ze){return Ze.map(at=>{if(!at.getTitle)return 0;var vt=at.getTitle();return vt?vt.bBox.width:0})}var i=this,r=i._isRotated(),o=i._themeManager.getOptions("synchronizeMultiAxes"),a=i._scrollBar?[i._scrollBar]:[],s=i._isArgumentAxisBeforeScrollBar()?i._argumentAxes.concat(a):a.concat(i._argumentAxes),l=r?i._argumentAxes:i._valueAxes,u=r?s:i._valueAxes,f=r?i._valueAxes:i._argumentAxes,S=r?i._valueAxes:s,T=l.concat(f),R=T.concat(a),L=l.some(Ze=>Ze.isFirstDrawing());i._normalizePanesHeight(),i._updatePanesCanvases(t);var z=i.panes.reduce(function(Ze,at){return Ze[at.name]=se({},at.canvas),Ze},{}),j=i.panes.reduce((Ze,at)=>(Ze[at.name]={height:at.height,unit:at.unit},Ze),{}),Y=se(!0,{},z);i._initCustomPositioningAxes();var ie=i._axesBoundaryPositioning();if(!t.adjustAxes&&!ie)return Fq(l,!r&&o,z,n),Fq(f,r&&o,z,n),rf(T,"prepareAnimation"),i._renderScaleBreaks(),f.forEach(Ze=>Ze.resolveOverlappingForCustomPositioning(l)),l.forEach(Ze=>Ze.resolveOverlappingForCustomPositioning(f)),!1;ie&&T.forEach(Ze=>Ze.customPositionIsAvailable()&&Ze.shift({top:0,left:0,bottom:0,right:0})),i._scrollBar&&i._scrollBar.setPane(i.panes);var te={panes:{}},re=FN(S,Ze=>Ze.estimateMargins(z[Ze.pane]));z=PN(r,z,j,te,re);var he=Ze=>{Fq(Ze?f:l,(Ze?r:!r)&&o,z,n),Ze?re=FN(S,AN):te=Aq(u),z=PN(r,z,j,te,re)};he(!1),he(!0),!i._changesApplying&&i._estimateTickIntervals(l,z)&&he(!1);var fe=e(l),Te=i._getVisibleSeries(),He=function aNt(t,n){var e=n.reduce((i,r)=>i+r,0)/n.length;return t.animate&&e<=t.animationPointsLimit}(t,i._getPointsToAnimation(Te));return rf(R,"updateSize",z,He),S.forEach(RN("top","bottom")),u.forEach(RN("left","right")),i._renderScaleBreaks(),i.panes.forEach(function(Ze){se(Ze.canvas,z[Ze.name])}),i._valueAxes.forEach(Ze=>{Ze.setInitRange()}),l.forEach((Ze,at)=>{var vt;if(null!==(vt=Ze.hasWrap)&&void 0!==vt&&vt.call(Ze)){var Bt=Ze.getTitle(),ct=(Bt?Bt.bBox.width:0)-fe[at];"right"===Ze.getOptions().position?te.right+=ct:(te.left+=ct,i.panes.forEach(Nt=>{var{name:Kt}=Nt;return te.panes[Kt].left+=ct})),z=PN(r,z,j,te,re),rf(R,"updateSize",z,!1,!1),fe=e(l)}}),l.some(Ze=>Ze.customPositionIsAvailable()&&Ze.getCustomPosition()!==Ze._axisPosition)&&(He&&i._resetAxesAnimation(L,!1),rf(l,"updateSize",z,He)),f.forEach(Ze=>Ze.resolveOverlappingForCustomPositioning(l)),l.forEach(Ze=>Ze.resolveOverlappingForCustomPositioning(f)),Y},_getExtraTemplatesItems(){var t=(this._argumentAxes||[]).concat(this._valueAxes||[]),n=this._collectTemplatesFromItems(t);return{items:n.items,groups:n.groups,launchRequest(){t.forEach(function(e){e.setRenderedState(!0)})},doneRequest(){t.forEach(function(e){e.setRenderedState(!1)})}}},_estimateTickIntervals:(t,n)=>t.some(e=>e.estimateTickInterval(n[e.pane])),checkForMoreSpaceForPanesCanvas(){var t=this._isRotated(),e=!1;if(this.panes.filter(R=>R.unit).length===this.panes.length){var i=0,r=0;if(t){var o=this.getArgumentAxis().getMargins().right,a=Math.min.apply(Math,this.panes.map(R=>R.canvas.right));i=this._canvas.right+o-a}else{var s=this.getArgumentAxis().getMargins().bottom,l=Math.min.apply(Math,this.panes.map(R=>R.canvas.bottom));r=this._canvas.bottom+s-l}if(e=(i>0||r>0)&&{width:i,height:r},0!==r){var u=this.getSize(),f=this.option("size"),T=!!parseInt(this._$element[0].style.height)||0!==this._containerInitialHeight;!t&&(!f||!f.height)&&!T&&(this._forceResize(u.width,u.height+r),e=!1)}}else e=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t,R=>({width:t&&!!R.unit,height:!t&&!!R.unit}));return e},_forceResize(t,n){this._renderer.resize(t,n),this._updateSize(),this._setContentSize(),this._preserveOriginalCanvas(),this._updateCanvasClipRect(this._canvas)},_shrinkAxes(t,n){if(t&&n){this._renderer.stopAllAnimations(!0);var e=this._isRotated(),i=this._scrollBar?[this._scrollBar]:[],r=this._isArgumentAxisBeforeScrollBar()?this._argumentAxes.concat(i):i.concat(this._argumentAxes),o=e?r:this._valueAxes,a=e?this._valueAxes:r,s=o.concat(a);if(t.width||t.height){XOe(t,"height",a,FN),XOe(t,"width",o,Aq),rf(s,"updateSize",n);var l=this.panes.reduce((u,f)=>(u[f.name]={height:f.height,unit:f.unit},u),{});rf(s,"updateSize",n=PN(e,n,l,Aq(o),FN(a,AN))),a.forEach(RN("top","bottom")),o.forEach(RN("left","right")),this.panes.forEach(u=>se(u.canvas,n[u.name]))}}},_isArgumentAxisBeforeScrollBar(){var t=this.getArgumentAxis();if(this._scrollBar){var n,e=t.getResolvedBoundaryPosition(),i=null===(n=t.getOptions().label)||void 0===n?void 0:n.position,r=this._scrollBar.getOptions().position;return t.hasNonBoundaryPosition()||r===e&&i!==r}return!1},_getPanesParameters:function(){var n,t=this.panes,e=[];for(n=0;n<t.length;n++)this._getPaneBorderVisibility(n)&&e.push({coords:t[n].borderCoords,clipRect:this._panesClipRects.fixed[n]});return e},_createCrosshairCursor:function(){var t=this._themeManager.getOptions("crosshair")||{},n=this.getArgumentAxis(),e=this._isRotated()?[this._valueAxes,[n]]:[[n],this._valueAxes],i={canvas:this._getCommonCanvas(),panes:this._getPanesParameters(),axes:e};!t||!t.enabled||(this._crosshair?this._crosshair.update(t,i):this._crosshair=new Sq(this._renderer,t,i,this._crosshairCursorGroup),this._crosshair.render())},_getCommonCanvas:function(){var t,n,e,i=this.panes;for(t=0;t<i.length;t++)n=i[t].canvas,e?(e.right=n.right,e.bottom=n.bottom):e=se({},n);return e},_createPanesBackground:function(){var n,i,r,t=this._themeManager.getOptions("commonPaneSettings").backgroundColor,e=this._renderer,o=[];for(this._panesBackgroundGroup.clear(),r=0;r<this.panes.length;r++)(n=this.panes[r].backgroundColor||t)&&"none"!==n?(i=e.rect(0,0,0,0).attr({fill:n,"stroke-width":0}).append(this._panesBackgroundGroup),o.push(i)):o.push(null);this.panesBackground=o},_fillPanesBackground:function(){var n,t=this;we(t.panes,function(e,i){n=i.borderCoords,null!==t.panesBackground[e]&&t.panesBackground[e].attr({x:n.left,y:n.top,width:n.width,height:n.height})})},_calcPaneBorderCoords:function(t){var n=t.canvas,e=t.borderCoords=t.borderCoords||{};e.left=n.left,e.top=n.top,e.right=n.width-n.right,e.bottom=n.height-n.bottom,e.width=Math.max(e.right-e.left,0),e.height=Math.max(e.bottom-e.top,0)},_drawPanesBorders:function(t){var n=this,e=n._isRotated();n._panesBorderGroup.linkRemove().clear(),we(n.panes,function(i,r){var o=t[r.name],a={fill:"none",stroke:o.color,"stroke-opacity":o.opacity,"stroke-width":o.width,dashStyle:o.dashStyle,"stroke-linecap":"square"};if(n._calcPaneBorderCoords(r,e),o.visible){var s=r.borderCoords,l=function(t,n,e,i,r){var T,o=~~((e<i?e:i)/2),a=r.width||0,s=a<o?a:o,l=(t+=s/2)+(e-=s),u=(n+=s/2)+(i-=s),f=[],S=[],R=0,L=0,z={top:[[t,n],[l,n]],right:[[l,n],[l,u]],bottom:[[l,u],[t,u]],left:[[t,u],[t,n]]};switch(we(z,function(j){R=2*R+~~!!r[j]}),R){case 13:case 9:T=["left","top","right","bottom"];break;case 11:T=["bottom","left","top","right"];break;default:T=["top","right","bottom","left"]}return we(T,function(j,Y){var ie=!!r[Y];!L&&S.length&&(f.push(S),S=[]),ie&&we(z[Y].slice(L),function(te,re){S=S.concat(re)}),L=~~ie}),S.length&&f.push(S),1===f.length&&(f=f[0]),{points:f,pathType:15===R?"area":"line"}}(s.left,s.top,s.width,s.height,o);n._renderer.path(l.points,l.pathType).attr(a).append(n._panesBorderGroup)}}),n._panesBorderGroup.linkAppend()},_createClipRect:function(t,n,e,i,r,o){var a=t[n];a?a.attr({x:e,y:i,width:r,height:o}):(a=this._renderer.clipRect(e,i,r,o),t[n]=a)},_createClipRectsForPanes:function(){var t=this,n=t._canvas;we(t.panes,function(e,i){var r=!1,o=i.borderCoords,a=o.left,s=o.top,l=o.width,u=o.height,f=t._panesClipRects;t._createClipRect(f.fixed,e,a,s,l,u),t._createClipRect(f.base,e,a,s,l,u),we(t.series,function(S,T){T.pane===i.name&&(T.isFinancialSeries()||T.areErrorBarsVisible())&&(r=!0)}),r?(t._isRotated()?(s=0,u=n.height):(a=0,l=n.width),t._createClipRect(f.wide,e,a,s,l,u)):f.wide[e]=null})},_applyClipRectsForAxes(){for(var t=this._getAllAxes(),n=this._getCanvasClipRectID(),e=0;e<t.length;e++){var i=this._getElementsClipRectID(t[e].pane);t[e].applyClipRects(i,n)}},_getPaneBorderVisibility:function(t){var n=this._themeManager.getOptions("commonPaneSettings").border.visible,i=(this.panes[t]||{}).border||{};return"visible"in i?i.visible:n},_getCanvasForPane:function(t){var i,n=this.panes,e=n.length;for(i=0;i<e;i++)if(n[i].name===t)return n[i].canvas},_getTrackerSettings:function(){var t=this._themeManager;return se(this.callBase(),{chart:this,rotated:this._isRotated(),crosshair:this._getCrosshairOptions().enabled?this._crosshair:null,stickyHovering:t.getOptions("stickyHovering")})},_resolveLabelOverlappingStack:function(){var t=this,n=t._isRotated(),e=n?function(i,r){return{x:i.x-r,y:i.y}}:function(i,r){return{x:i.x,y:i.y-r}};we(t._getStackPoints(),function(i,r){we(r,function(o,a){var s=a[0].series.getValueAxis().getOptions().inverted;mq_resolveLabelOverlappingInOneDirection(a,t._getCommonCanvas(),n,s,e,(l,u)=>{var f=n?1:0;return l.labels[0].getFigureCenter()[f]-u.labels[0].getFigureCenter()[f]==0?(l.value()-u.value())*(l.labels[0].getPoint().series.getValueAxis().getTranslator().isInverted()?-1:1):0})})})},_getStackPoints:function(){var t={},n=this._getVisibleSeries();return we(n,function(e,i){var r=i.getPoints(),o=i.getStackName()||null;we(r,function(a,s){var l=s.argument;t[l]||(t[l]={}),t[l][o]||(t[l][o]=[]),t[l][o].push(s)})}),t},_getCrosshairOptions:function(){return this._getOption("crosshair")},zoomArgument(t,n){!this._initialized||!Z(t)&&!Z(n)||this.getArgumentAxis().visualRange([t,n])},resetVisualRange(){var t=this,n=t._argumentAxes,e=t.getArgumentAxis();n.forEach(i=>{i.resetVisualRange(e!==i),t._applyCustomVisualRangeOption(i)}),t.callBase()},getVisibleArgumentBounds:function(){var n=this._argumentAxes[0].getTranslator().getBusinessRange(),e=n.axisType===kN,i=n.categories;return{minVisible:e?n.minVisible||i[0]:n.minVisible,maxVisible:e?n.maxVisible||i[i.length-1]:n.maxVisible}},_change_FULL_RENDER(){this.callBase(),this._changes.has("VISUAL_RANGE")&&this._raiseZoomEndHandlers()},_getAxesForScaling(){return[this.getArgumentAxis()].concat(this._valueAxes)},_applyVisualRangeByVirtualAxes(t,n){if(t.isArgumentAxis){if(t!==this.getArgumentAxis())return!0;this._argumentAxes.filter(e=>e!==t).forEach(e=>e.visualRange(n,{start:!0,end:!0}))}return!1},_raiseZoomEndHandlers(){this._argumentAxes.forEach(t=>t.handleZoomEnd()),this.callBase()},_setOptionsByReference(){this.callBase(),se(this._optionsByReference,{"argumentAxis.visualRange":!0})},option(){var t=this.callBase.apply(this,arguments),n=this._options.silent("valueAxis");if("array"===Fa(n))for(var e=0;e<n.length;e++){var i="valueAxis[".concat(e,"].visualRange");this._optionsByReference[i]=!0}return t},_notifyVisualRange(){var t=this._argumentAxes[0],n=I_(t.visualRange(),!nk(this.option("argumentAxis.visualRange")));t.skipEventRising&&dB(n,this.option("argumentAxis.visualRange"))?t.skipEventRising=null:this.option("argumentAxis.visualRange",n),this.callBase()}});xS.addPlugin(x4t),xS.addPlugin(U4t),xS.addPlugin(dv.core),xS.addPlugin(dv.chart),On("dxChart",xS);let JOe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Og,vr,m_,Ea,Oa,Pg,ja,xR,mR,yR,DR,CR,Lo,FR,jR,$r,YR,Lg,Qw,qR,bR,yL,Ng,l1,vs,b_,AR,t_e,x_,_R,Bw,Jd,Eh,kg,t1,KR,xL,d1,Oh,iL,u1,Nw,ER,OR,HR,zR,UR,WR,GR,__,Zw,tL,nL,i1,dL,cL,hL,o1,pL,gL,fL,mL,_L,vL,o_e,E_e,Tve,Gw,aa,Rg,Ta,_s,ms,Y_e,ove,y_,D_,Ia,$o,Dve,Mve,p_e,bi,tn,mi],Og,vr,m_,Ea,Oa,Pg,ja,xR,mR,yR,DR,CR,Lo,FR,jR,$r,YR,Lg,Qw,qR,bR,yL,Ng,l1,vs,b_,AR,t_e,x_,_R,Bw,Jd,Eh,kg,t1,KR,xL,d1,Oh,iL,u1,Nw,ER,OR,HR,zR,UR,WR,GR,__,Zw,tL,nL,i1,dL,cL,hL,o1,pL,gL,fL,mL,_L,vL,o_e,E_e,Tve,Gw,aa,Rg,Ta,_s,ms,Y_e,ove,y_,D_,Ia,$o,Dve,Mve,p_e,tn]}),t})();var QOe="dx-invalid-message-auto",eTe="dx-validation-target";class Pq extends bm{getProps(){var n=super.getProps();return n.onFocusIn=()=>{if("auto"===this.option("validationMessageMode")){var i=U(function hNt(t,n){var e,i;return(null!==(e=null===(i=t.getRootNode)||void 0===i?void 0:i.call(t))&&void 0!==e?e:document).querySelector(n)}(this.element(),".dx-invalid-message.dx-overlay-wrapper"));i?.removeClass(QOe),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>{i?.addClass(QOe)},150)}},n.saveValueChangeEvent=e=>{this._valueChangeEventInstance=e},n}_createElement(n){super._createElement(n),this.showValidationMessageTimeout=void 0,this.validationRequest=Zi(),zo(this.$element()[0],eTe,this)}_render(){var n;null===(n=this.option("_onMarkupRendered"))||void 0===n||n()}_initializeComponent(){super._initializeComponent(),this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})}_initOptions(n){super._initOptions(n),this.option(Uo.initValidationOptions(n))}_getDefaultOptions(){return se(super._getDefaultOptions(),{validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})}_bindInnerWidgetOptions(n,e){var i=se({},n.option()),r=()=>this._silent(e,i);r(),n.on("optionChanged",r)}_raiseValidation(n,e){var i=!Z(n)&&!Z(e);n!==e&&!i&&this.validationRequest.fire({value:n,editor:this})}_raiseValueChangeAction(n,e){var i;null===(i=this._valueChangeAction)||void 0===i||i.call(this,{element:this.$element(),previousValue:e,value:n,event:this._valueChangeEventInstance}),this._valueChangeEventInstance=void 0}_optionChanged(n){var{name:e,previousValue:i,value:r}=n;switch(e&&void 0!==this._getActionConfigs()[e]&&this._addAction(e),e){case"value":this._raiseValidation(r,i),this._raiseValueChangeAction(r,i);break;case"onValueChanged":this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]});break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(Uo.synchronizeValidationOptions(n,this.option()))}super._optionChanged(n)}reset(){var{value:n}=this._getDefaultOptions();this.option({value:n})}_dispose(){super._dispose(),zo(this.element(),eTe,null),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout)}}var pNt=Ru.isEditor,tTe=t=>pNt(t)||t instanceof Pq;Pq.isEditor=tTe,Ru.isEditor=tTe;class gNt extends Pq{_useTemplates(){return!1}_isFocused(){return this.$element()[0].classList.contains("dx-state-focused")}getSupportedKeyNames(){return["space"]}getProps(){var n=super.getProps();return null!==n.value&&(n.value=Boolean(n.value)),n}}var fNt=["dataSource","selectedRowKeys"],mNt={integrationOptions:!0};function ik(t,n,e){return{path:t,value:n,previousValue:e}}function nTe(t,n,e,i,r,o){if(!mNt[i]){var a=Fa(n),s=Fa(e);if(n!==e)if(a!==s)t.push(ik(i,e,n));else if("object"===a)if(wi(e)){var l=rTe(n,e,r,o);t.push(...l.map(S=>mt({},S,{path:"".concat(i,".").concat(S.path)})))}else t.push(ik(i,e,n));else if("array"===a)if(o.some(S=>r.includes(S))&&n!==e)t.push(ik(i,e,n));else if(n.length!==e.length)t.push(ik(i,e,n));else{var f=rTe(n,e,r,o);[].push.apply(t,f.map(S=>mt({},S,{path:"".concat(i).concat(S.path)})))}else t.push(ik(i,e,n))}}var iTe=t=>(n,e,i,r)=>{var o=[],a=Array.isArray(n)?s=>{nTe(o,n[s],e[s],"[".concat(s,"]"),"".concat(i,".").concat(s),r)}:s=>{nTe(o,n[s],e[s],s,"".concat(i,".").concat(s),r)};return t(n).forEach(a),Object.keys(e).filter(s=>!Object.prototype.hasOwnProperty.call(n,s)&&n[s]!==e[s]).forEach(s=>{o.push({path:s,value:e[s],previousValue:n[s]})}),o},rTe=iTe(t=>Object.keys(t)),_Nt={key:!0,ref:!0,children:!0,style:!0},vNt=iTe(t=>Object.keys(t).filter(n=>!_Nt[n])),CNt=["valueChange"],bNt=["componentProps","componentType","templateNames"],oTe=t=>Object.keys(t).reduce((n,e)=>(void 0!==t[e]&&(n[e]=t[e]),n),{}),wNt={};let Rq=(()=>{class t extends Tc{constructor(e){super(e),this.state={},this.widgetRef={current:null},this.getInstance=this.getInstance.bind(this),this.setupWidget=this.setupWidget.bind(this),this.updateWidget=this.updateWidget.bind(this)}get config(){return this.context[Rl.id]?this.context[Rl.id]:Rl.defaultValue}createEffects(){return[new yo(this.setupWidget,[]),new yo(this.updateWidget,[this.props.componentProps,this.config,this.props.templateNames])]}updateEffects(){var e;null===(e=this._effects[1])||void 0===e||e.update([this.props.componentProps,this.config,this.props.templateNames])}setupWidget(){var e=new this.props.componentType(this.widgetRef.current,this.properties);return this.instance=e,()=>{e.dispose(),this.instance=null}}updateWidget(){var e=this.getInstance();if(e){var i=function yNt(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fNt;return vNt(t,n,"",e)}(this.prevProps||{},this.properties);i.length&&(e.beginUpdate(),i.forEach(r=>{var{path:o,value:a}=r;e.option(o,a)}),e.endUpdate()),this.prevProps=this.properties}}get properties(){var e,i=oTe(this.props.componentProps),{valueChange:r}=i,o=ki(i,CNt),a=mt({rtlEnabled:!(null===(e=this.config)||void 0===e||!e.rtlEnabled),isRenovated:!0},o);return r&&(a.onValueChanged=l=>{var{value:u}=l;return r(u)}),this.props.templateNames.forEach(l=>{((t,n,e)=>{const i=n[t];return!!i&&"string"!=typeof i})(l,a)&&(a[l]=(u,f,S)=>{!function _0t(t,n,e){setTimeout(()=>{uT(E2(t,n),(t=>{var n,e;return(null===(n=t.container)||void 0===n?void 0:n.get(0))||(null===(e=t.item)||void 0===e?void 0:e.get(0))})(n))},0)}(this.props.componentProps[l],{item:u,index:f,container:S})})}),a}get restAttributes(){return ki(this.props,bNt)}getInstance(){return this.instance}render(){return(t=>{var{props:{componentProps:{className:n}},restAttributes:e,widgetRef:i}=t;return oTe(er(1,"div",n,null,1,mt({},e),null,i))})({props:mt({},this.props),widgetRef:this.widgetRef,config:this.config,properties:this.properties,restAttributes:this.restAttributes})}}return t.defaultProps=wNt,t})();var SNt=["accessKey","activeStateEnabled","boundary","className","contentId","disabled","focusStateEnabled","height","hint","hoverStateEnabled","mode","offset","onClick","onKeyDown","positionSide","rtlEnabled","tabIndex","target","validationErrors","visible","visualContainer","width"],ENt=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(K2),Object.getOwnPropertyDescriptors({mode:"auto",positionSide:"top",offset:Object.freeze({h:0,v:0}),isReactComponentWrapper:!0})));let ONt=(()=>{class t extends so{constructor(e){super(e),this.state={}}get componentProps(){return this.props}get restAttributes(){return ki(this.props,SNt)}render(){return(t=>{var{componentProps:n,restAttributes:e}=t;return Nr(Wn(2,Rq,mt({componentType:pye,componentProps:n,templateNames:[]},e)))})({props:mt({},this.props),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return t.defaultProps=ENt,t})();var TNt=["accessKey","activeStateEnabled","aria","children","className","classes","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],Ks=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(K2),Object.getOwnPropertyDescriptors({readOnly:!1,name:"",validationError:null,validationErrors:null,validationMessageMode:"auto",validationMessagePosition:"bottom",validationStatus:"valid",isValid:!0,defaultValue:null,valueChange:()=>{}}))),MNt={get readOnly(){return Ks.readOnly},get name(){return Ks.name},get validationError(){return Ks.validationError},get validationErrors(){return Ks.validationErrors},get validationMessageMode(){return Ks.validationMessageMode},get validationMessagePosition(){return Ks.validationMessagePosition},get validationStatus(){return Ks.validationStatus},get isValid(){return Ks.isValid},get defaultValue(){return Ks.defaultValue},get valueChange(){return Ks.valueChange},get className(){return Ks.className},get activeStateEnabled(){return Ks.activeStateEnabled},get disabled(){return Ks.disabled},get focusStateEnabled(){return Ks.focusStateEnabled},get hoverStateEnabled(){return Ks.hoverStateEnabled},get tabIndex(){return Ks.tabIndex},get visible(){return Ks.visible},get aria(){return $2.aria},get classes(){return $2.classes}};class LN extends Kd{constructor(n){super(n),this.widgetRef={current:null},this.rootElementRef={current:null},this.__getterCache={},this.state={validationMessageGuid:"dx-".concat(new Ni),isValidationMessageVisible:!1,value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.updateValidationMessageVisibility=this.updateValidationMessageVisibility.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onFocusIn=this.onFocusIn.bind(this)}createEffects(){return[new yo(this.updateValidationMessageVisibility,[this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors]),$d()]}updateEffects(){var n;null===(n=this._effects[0])||void 0===n||n.update([this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors])}updateValidationMessageVisibility(){this.setState(n=>({isValidationMessageVisible:this.shouldShowValidationMessage}))}onFocusIn(n){var{onFocusIn:e}=this.props;e?.(n)}get cssClasses(){return"".concat((t=>{var{classes:n,isValid:e,readOnly:i}=t;return fs({"dx-state-readonly":!!i,"dx-invalid":!e,["".concat(n)]:!!n})})(mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})))}get shouldShowValidationMessage(){var n,{isValid:e,validationStatus:i}=this.props,r=null!==(n=this.validationErrors)&&void 0!==n?n:[];return!(e&&"invalid"!==i)&&r.length>0}get aria(){var{isValid:n,readOnly:e}=this.props,i={readonly:e?"true":"false",invalid:n?"false":"true"};return this.shouldShowValidationMessage&&(i.describedBy=this.state.validationMessageGuid),mt({},i,this.props.aria)}get validationErrors(){return void 0!==this.__getterCache.validationErrors?this.__getterCache.validationErrors:this.__getterCache.validationErrors=(()=>{var{validationError:n,validationErrors:e}=this.props,i=e&&[...e];return!i&&n&&(i=[mt({},n)]),i})()}get validationMessageTarget(){var n;return null===(n=this.rootElementRef)||void 0===n?void 0:n.current}get restAttributes(){return ki(mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),TNt)}focus(){this.widgetRef.current.focus()}blur(){this.widgetRef.current.blur()}componentWillUpdate(n,e,i){super.componentWillUpdate(),(this.props.validationError!==n.validationError||this.props.validationErrors!==n.validationErrors)&&(this.__getterCache.validationErrors=void 0)}render(){return(t=>{var{aria:n,cssClasses:e,isValidationMessageVisible:i,onFocusIn:r,props:{accessKey:o,activeStateEnabled:a,children:s,className:l,disabled:u,focusStateEnabled:f,height:S,hint:T,hoverStateEnabled:R,onClick:L,onKeyDown:z,rtlEnabled:j,tabIndex:Y,validationMessageMode:ie,validationMessagePosition:te,visible:re,width:he},restAttributes:fe,rootElementRef:Te,validationErrors:Re,validationMessageGuid:He,validationMessageTarget:Ze,widgetRef:at}=t;return Nr(Wn(2,q2,mt({rootElementRef:Te,aria:n,classes:e,activeStateEnabled:a,focusStateEnabled:f,hoverStateEnabled:R,accessKey:o,className:l,rtlEnabled:j,hint:T,disabled:u,height:S,width:he,onFocusIn:r,onClick:L,onKeyDown:z,tabIndex:Y,visible:re},fe,{children:Pl([s,i&&Wn(2,ONt,{validationErrors:Re,mode:ie,positionSide:te,rtlEnabled:j,target:Ze,boundary:Ze,visualContainer:Ze,contentId:He})],0)}),null,at))})({props:mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),validationMessageGuid:this.state.validationMessageGuid,isValidationMessageVisible:this.state.isValidationMessageVisible,rootElementRef:this.rootElementRef,widgetRef:this.widgetRef,onFocusIn:this.onFocusIn,cssClasses:this.cssClasses,shouldShowValidationMessage:this.shouldShowValidationMessage,aria:this.aria,validationErrors:this.validationErrors,validationMessageTarget:this.validationMessageTarget,restAttributes:this.restAttributes})}}function sTe(t){var n,e=Fn();return t?null===(n=e.getComputedStyle)||void 0===n?void 0:n.call(e,t):null}LN.defaultProps=MNt;var FNt=[[22,16],[18,16]],PNt=[[[12,8],[20,18]],[[16,10],[16,14]]];function lTe(){var t=lu();return{isMaterialTheme:io(t),isCompactTheme:rW(t)}}var NNt=["isChecked","size"],HNt={isChecked:!1};let zNt=(()=>{class t extends Tc{constructor(e){super(e),this.state={},this.elementRef={current:null},this.__getterCache={},this.updateFontSize=this.updateFontSize.bind(this),this.setIconFontSize=this.setIconFontSize.bind(this),this.getIconSize=this.getIconSize.bind(this),this.getComputedIconSize=this.getComputedIconSize.bind(this)}createEffects(){return[new yo(this.updateFontSize,[this.props.isChecked,this.props.size])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.isChecked,this.props.size])}updateFontSize(){var{isChecked:e,size:i}=this.props;if(Rn()&&i){var o=function BNt(t,n){var e=function LNt(t){var{isCompactTheme:n,isMaterialTheme:e}=lTe();return PNt[+t][+e][+n]}(n),i=function RNt(){var{isCompactTheme:t,isMaterialTheme:n}=lTe();return FNt[+n][+t]}();return Math.ceil(e/i*t)}(this.getIconSize(i),e);this.setIconFontSize(o)}}setIconFontSize(e){this.elementRef.current.style.fontSize="".concat(e,"px")}getIconSize(e){return di(e)?e:e.endsWith("px")?parseInt(e,10):this.getComputedIconSize()}getComputedIconSize(){var i=sTe(this.elementRef.current);return parseInt(i?.width,10)}get cssStyles(){return void 0!==this.__getterCache.cssStyles?this.__getterCache.cssStyles:this.__getterCache.cssStyles=(()=>{var{size:e}=this.props,i=fw("width",e);return{height:fw("height",e),width:i}})()}get restAttributes(){return ki(this.props,NNt)}componentWillUpdate(e,i,r){super.componentWillUpdate(),this.props.size!==e.size&&(this.__getterCache.cssStyles=void 0)}render(){return(t=>{var{cssStyles:n,elementRef:e}=t;return er(1,"span","dx-checkbox-icon",null,1,{style:yg(n)},null,e)})({props:mt({},this.props),elementRef:this.elementRef,setIconFontSize:this.setIconFontSize,getIconSize:this.getIconSize,getComputedIconSize:this.getComputedIconSize,cssStyles:this.cssStyles,restAttributes:this.restAttributes})}}return t.defaultProps=HNt,t})();var UNt=["accessKey","activeStateEnabled","aria","className","defaultValue","disabled","enableThreeStateBehavior","focusStateEnabled","height","hint","hoverStateEnabled","iconSize","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","saveValueChangeEvent","tabIndex","text","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],gl=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(Ks),Object.getOwnPropertyDescriptors({text:"",enableThreeStateBehavior:!1,activeStateEnabled:!0,hoverStateEnabled:!0,get focusStateEnabled(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},defaultValue:!1,valueChange:()=>{}}))),jNt={get text(){return gl.text},get enableThreeStateBehavior(){return gl.enableThreeStateBehavior},get activeStateEnabled(){return gl.activeStateEnabled},get hoverStateEnabled(){return gl.hoverStateEnabled},get focusStateEnabled(){return gl.focusStateEnabled},get defaultValue(){return gl.defaultValue},get valueChange(){return gl.valueChange},get readOnly(){return gl.readOnly},get name(){return gl.name},get validationError(){return gl.validationError},get validationErrors(){return gl.validationErrors},get validationMessageMode(){return gl.validationMessageMode},get validationMessagePosition(){return gl.validationMessagePosition},get validationStatus(){return gl.validationStatus},get isValid(){return gl.isValid},get className(){return gl.className},get disabled(){return gl.disabled},get tabIndex(){return gl.tabIndex},get visible(){return gl.visible},get aria(){return $2.aria}};class BN extends Kd{constructor(n){super(n),this.editorRef={current:null},this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[$d()]}onWidgetClick(n){var{enableThreeStateBehavior:e,readOnly:i,saveValueChangeEvent:r}=this.props;if(!i)if(r?.(n),e){var o;this.setState(s=>({value:o=null===(void 0!==this.props.value?this.props.value:s.value)||!(void 0!==this.props.value?this.props.value:s.value)&&null})),this.props.valueChange(o)}else{var a;this.setState(s=>{var l;return{value:a=!(null!==(l=void 0!==this.props.value?this.props.value:s.value)&&void 0!==l&&l)}}),this.props.valueChange(a)}}keyDown(n){var{onKeyDown:e}=this.props,{keyName:i,originalEvent:r,which:o}=n,a=e?.(n);if(null!=a&&a.cancel)return a;("space"===i||"space"===o)&&(r.preventDefault(),this.onWidgetClick(r))}get cssClasses(){return(t=>{var{text:n,value:e}=t;return fs({"dx-checkbox":!0,"dx-checkbox-checked":!0===e,"dx-checkbox-has-text":!!n,"dx-checkbox-indeterminate":null===e})})(mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}))}get aria(){return mt({},{role:"checkbox",checked:null===(void 0!==this.props.value?this.props.value:this.state.value)?"mixed":"".concat(!0===(void 0!==this.props.value?this.props.value:this.state.value))},this.props.aria)}get restAttributes(){return ki(mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),UNt)}focus(){this.editorRef.current.focus()}blur(){this.editorRef.current.blur()}render(){return(t=>{var{aria:n,cssClasses:e,editorRef:i,keyDown:r,onWidgetClick:o,props:{accessKey:a,activeStateEnabled:s,className:l,disabled:u,focusStateEnabled:f,height:S,hint:T,hoverStateEnabled:R,iconSize:L,isValid:z,name:j,onFocusIn:Y,readOnly:ie,rtlEnabled:te,tabIndex:re,text:he,validationError:fe,validationErrors:Te,validationMessageMode:Re,validationMessagePosition:He,validationStatus:Ze,value:at,visible:vt,width:Bt},restAttributes:St}=t;return Nr(Wn(2,LN,mt({aria:n,classes:e,onClick:o,onKeyDown:r,accessKey:a,activeStateEnabled:s,focusStateEnabled:f,hoverStateEnabled:R,className:l,disabled:u,readOnly:ie,hint:T,height:S,width:Bt,rtlEnabled:te,tabIndex:re,visible:vt,validationError:fe,validationErrors:Te,validationMessageMode:Re,validationMessagePosition:He,validationStatus:Ze,isValid:z,onFocusIn:Y},St,{children:Pl([Nr(er(64,"input",null,null,1,mt({type:"hidden",value:"".concat(at)},j&&{name:j}))),er(1,"div","dx-checkbox-container",[Wn(2,zNt,{size:L,isChecked:!0===at}),he&&er(1,"span","dx-checkbox-text",he,0)],0)],4)}),null,i))})({props:mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),editorRef:this.editorRef,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,cssClasses:this.cssClasses,aria:this.aria,restAttributes:this.restAttributes})}}BN.defaultProps=jNt;var uTe=[];class Lq extends gNt{getProps(){var n=super.getProps();return n.onKeyDown=this._wrapKeyDownHandler(n.onKeyDown),n}focus(){var n;return null===(n=this.viewRef)||void 0===n?void 0:n.focus(...arguments)}blur(){var n;return null===(n=this.viewRef)||void 0===n?void 0:n.blur(...arguments)}_getActionConfigs(){return{onFocusIn:{},onClick:{}}}get _propsInfo(){return{twoWay:[["value","defaultValue","valueChange"]],allowNull:["defaultValue","validationError","validationErrors","value"],elements:[],templates:[],props:["text","iconSize","enableThreeStateBehavior","activeStateEnabled","hoverStateEnabled","focusStateEnabled","saveValueChangeEvent","defaultValue","valueChange","readOnly","name","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","isValid","onFocusIn","className","accessKey","disabled","height","hint","onClick","onKeyDown","rtlEnabled","tabIndex","visible","width","aria","value"]}}get _viewComponent(){return BN}}On("dxCheckBox",Lq),Lq.defaultOptions=function $Nt(t){uTe.push(t),BN.defaultProps=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(BN.defaultProps),Object.getOwnPropertyDescriptors(function KNt(t){var n=["value"];return Object.keys(t).reduce((e,i)=>{var r=t[i];return e[n.some(a=>a===i)?"default"+i.charAt(0).toUpperCase()+i.slice(1):i]=r,e},{})}(Iw(uTe)))))};const wS=Lq,qNt={provide:Fo,useExisting:At(()=>Bq),multi:!0};let Bq=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"enableThreeStateBehaviorChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"iconSizeChange"},{emit:"isValidChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get enableThreeStateBehavior(){return this._getOption("enableThreeStateBehavior")}set enableThreeStateBehavior(e){this._setOption("enableThreeStateBehavior",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get iconSize(){return this._getOption("iconSize")}set iconSize(e){this._setOption("iconSize",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new wS(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-check-box"]],hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",enableThreeStateBehavior:"enableThreeStateBehavior",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",iconSize:"iconSize",isValid:"isValid",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",enableThreeStateBehaviorChange:"enableThreeStateBehaviorChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",iconSizeChange:"iconSizeChange",isValidChange:"isValidChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,qNt,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),dTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})(),cTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,aa,$w,ms,Oa,Ta,eL,QR,n1,Lo,$r,Lg,Ng,Ia,CL,bL,vs,_s,$o,Ea,ja,SL,bi,tn,mi],vr,aa,$w,ms,Oa,Ta,eL,QR,n1,Lo,$r,Lg,Ng,Ia,CL,bL,vs,_s,$o,Ea,ja,SL,tn]}),t})();var NN=function(t){for(var n=0,e=0,i=0;i<t.length;++i)if("'"===t[i]&&n++,"."===t[i]&&(++e,n%2==0))return{occurrence:e,index:i};return{occurrence:1,index:-1}},Nq=function(t,n,e){for(var i=-1;e--&&i++<t.length;)i=t.indexOf(n,i);return i},Vq=function(t,n){return-1===n?[t]:[t.slice(0,n),t.slice(n+1)]},VN=function(t,n){if("string"==typeof n){var e=n.split(";"),i=Gr.getSign(t,n);e[1]=e[1]||"-"+e[0],n=(n=e[i<0?1:0]).replace(/'([^']*)'/g,s=>s.split("").map(()=>" ").join("").substr(2));var r=/^[^#0.,]*/.exec(n)[0].length,o=/[^#0.,]*$/.exec(n)[0].length;return{start:r,end:t.length-o}}return{start:0,end:t.length}},hTe=function(t,n){var e=Gr.getDecimalSeparator(),i=new RegExp("[^0-9"+z0(e)+"]","g");return n.slice(0,t).replace(i,"").length},pTe=function(t){return t.split("").reverse().join("")},gTe=function(t,n){if(!t)return-1;for(var e=/[0-9]/g,i=1,r=null,o=e.exec(n);o;){if(r=o.index,i>=t)return r;i++,o=e.exec(n)}return null===r?n.length:r},XC=function(t,n){return void 0===t.start&&(t={start:t,end:t}),{start:t.start+n,end:t.end+n}};function cv(t,n,e){t=XC(t,0);var i=VN(n,e);return{start:al(t.start,i.start,i.end),end:al(t.end,i.start,i.end)}}var fTe="dxNumberBox",mTe=kt(qn.up,fTe),_Te=kt(qn.cancel,fTe),o9t=tr.inherit({_getDefaultOptions:function(){return se(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var t="dx-numberbox-spin-"+this.option("direction");this.$element().addClass("dx-numberbox-spin-button").addClass(t),this._spinIcon=U("<div>").addClass(t+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var t=kt(qn.down,this.NAME),n=this.$element();Se.off(n,t),Se.on(n,t,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(t){t.preventDefault(),this._clearTimer(),Se.on(this.$element(),Tm_name,function(){this._feedBackDeferred=new et,iG(this._feedBackDeferred),this._spinChangeHandler({event:t}),this._holdTimer=setInterval(this._spinChangeHandler,100,{event:t})}.bind(this));var n=It.getDocument();Se.on(n,mTe,this._clearTimer.bind(this)),Se.on(n,_Te,this._clearTimer.bind(this)),this._spinChangeHandler({event:t})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){Se.off(this.$element(),Tm_name);var t=It.getDocument();Se.off(t,mTe),Se.off(t,_Te),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(t){switch(t.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(t)}}});const SS=o9t;class u9t extends RL{_attachEvents(n,e){var{editor:i}=this,r=kt(qn.down,i.NAME),o=e.children(),a=i._createAction(s=>i._spinButtonsPointerDownHandler(s));Se.off(e,r),Se.on(e,r,s=>a({event:s})),SS.getInstance(o.eq(0)).option("onChange",s=>i._spinUpChangeHandler(s)),SS.getInstance(o.eq(1)).option("onChange",s=>i._spinDownChangeHandler(s))}_create(){var{editor:n}=this,e=U("<div>").addClass("dx-numberbox-spin-container"),i=U("<div>").appendTo(e),r=U("<div>").appendTo(e),o=this._getOptions();return this._addToContainer(e),n._createComponent(i,SS,se({direction:"up"},o)),n._createComponent(r,SS,se({direction:"down"},o)),this._legacyRender(n.$element(),this._isTouchFriendly(),o.visible),{instance:e,$element:e}}_getOptions(){var{editor:n}=this;return{visible:this._isVisible(),disabled:n.option("disabled")}}_isVisible(){var{editor:n}=this;return super._isVisible()&&n.option("showSpinButtons")}_isTouchFriendly(){var{editor:n}=this;return n.option("showSpinButtons")&&n.option("useLargeSpinButtons")}_legacyRender(n,e,i){n.toggleClass("dx-numberbox-spin-touch-friendly",e),n.toggleClass("dx-numberbox-spin",i)}update(){if(super.update()){var{editor:e,instance:i}=this,r=e.$element(),o=this._isVisible(),a=this._isTouchFriendly(),s=i.children(),l=SS.getInstance(s.eq(0)),u=SS.getInstance(s.eq(1)),f=this._getOptions();l.option(f),u.option(f),this._legacyRender(r,a,o)}}}var d9t=Math,h9t=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],g9t=Lye.inherit({_supportedKeys:function(){return se(this.callBase(),{upArrow:function(t){Xo(t)||(t.preventDefault(),t.stopPropagation(),this._spinUpChangeHandler(t))},downArrow:function(t){Xo(t)||(t.preventDefault(),t.stopPropagation(),this._spinDownChangeHandler(t))},enter:function(){}})},_getDefaultOptions:function(){return se(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:ye.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_useTemplates:function(){return!1},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:u9t}])},_isSupportInputMode:function(){var t=parseFloat(Ro.version);return Ro.chrome&&t>=66||Ro.safari&&t>=12},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return pn.real().generic&&!pn.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==pn.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass("dx-numberbox"),this.callBase()},_getDefaultAttributes:function(){var t=this.callBase();return t.inputmode="decimal",t},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=U("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(t){this._getSubmitElement().val(uP(t))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(t){this.callBase(t);var n=D2(t);if(!/[\d.,eE\-+]/.test(n)){var i=Wo(t);return Xo(t)||i&&h9t.includes(i)?void 0:(t.preventDefault(),!1)}this._keyPressed=!0},_onMouseWheel:function(t){this._spinValueChange(t.delta>0?1:-1,t)},_renderValue:function(){var t=this._input().val(),n=this.option("value");(!t.length||Number(t)!==n)&&(this._forceValueRender(),this._toggleEmptinessEventHandler());var e=Z(n)?null:ye.format("dxNumberBox-noDataText");return this.setAria({valuenow:gr(n,""),valuetext:e}),this.option("text",this._input().val()),this._updateButtons(),(new et).resolve()},_forceValueRender:function(){var t=this.option("value"),n=Number(t),e=isNaN(n)?"":this._applyDisplayValueFormatter(t);this._renderDisplayText(e)},_applyDisplayValueFormatter:function(t){return this.option("displayValueFormatter")(t)},_renderProps:function(){this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:gr(this.option("min"),""),valuemax:gr(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var t=this._input();!this.option("useLargeSpinButtons")&&It.getActiveElement()!==t[0]&&Se.trigger(t,"focus")},_spinUpChangeHandler:function(t){this.option("readOnly")||this._spinValueChange(1,t.event||t)},_spinDownChangeHandler:function(t){this.option("readOnly")||this._spinValueChange(-1,t.event||t)},_spinValueChange:function(t,n){var e=parseFloat(this.option("step"));if(0!==e){var i=parseFloat(this._normalizeInputValue())||0;i=this._correctRounding(i,e*t);var r=this.option("min"),o=this.option("max");Z(r)&&(i=Math.max(r,i)),Z(o)&&(i=Math.min(o,i)),this._saveValueChangeEvent(n),this.option("value",i)}},_correctRounding:function(t,n){var e=/[,.](.*)/,i=e.test(t),r=e.test(n);if(i||r){var o=i?e.exec(t)[0].length:0,a=r?e.exec(n)[0].length:0,s=d9t.max(o,a);return this._round(t+n,s)}return t+n},_round:function(t,n){n=n||0;var e=Math.pow(10,n);return t*=e,Math.round(t)/e},_renderValueChangeEvent:function(){this.callBase();var t=kt("focusout","NumberBoxForceValueChange");Se.off(this.element(),t),Se.on(this.element(),t,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var t=this._input(),n=this._applyDisplayValueFormatter(this.option("value"));t.val(null),t.val(n)}},_valueChangeEventHandler:function(t){var n=this._input(),e=this._normalizeText(),i=this._parseValue(e),r="."!==e&&"-"!==e;!this._isValueValid()||this._validateValue(i)?(r&&this.callBase(t,isNaN(i)?null:i),this._applyValueBoundaries(e,i),this.validationRequest.fire({value:i,editor:this})):n.val(this._applyDisplayValueFormatter(i))},_applyValueBoundaries:function(t,n){var e=this._isValueIncomplete(t),i=this._isValueInRange(t);!e&&!i&&null!==n&&Number(t)!==n&&this._input().val(this._applyDisplayValueFormatter(n))},_replaceCommaWithPoint:function(t){return t.replace(",",".")},_inputIsInvalid:function(){var t="number"===this.option("mode"),n=this._input().get(0).validity;return t&&n&&n.badInput},_renderDisplayText:function(t){this._inputIsInvalid()||this.callBase(t)},_isValueIncomplete:function(t){return/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i.test(t)},_isValueInRange:function(t){return tm(t,this.option("min"),this.option("max"))},_isNumber:function(t){return null!==this._parseValue(t)},_validateValue:function(t){var n=this._normalizeText(),e=this._isValueValid(),i=!0,r=this._isNumber(n);return isNaN(Number(t))&&(i=!1),!t&&e?i=!0:!r&&!e&&(i=!1),this.option({isValid:i,validationError:i?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),i},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var t=this._input().val().trim();return this._replaceCommaWithPoint(t)},_parseValue:function(t){var n=parseFloat(t);return isNaN(n)?null:al(n,this.option("min"),this.option("max"))},_clearValue:function(){this._inputIsInvalid()&&(this._input().val(""),this._validateValue()),this.callBase()},reset:function(){null===this.option("value")?(this.option("text",""),this._renderValue()):this.option("value",null)},_optionChanged:function(t){switch(t.name){case"value":this._validateValue(t.value),this._setSubmitValue(t.value),this.callBase(t),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(t)}}}),Hq="dxNumberFormatter",rk="minus",_9t=g9t.inherit({_getDefaultOptions:function(){return se(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(t){return"del"===t},_supportedKeys:function(){return this._useMaskBehavior()?se(this.callBase(),{minus:this._revertSign.bind(this),del:this._removeHandler.bind(this),backspace:this._removeHandler.bind(this),leftArrow:this._arrowHandler.bind(this,-1),rightArrow:this._arrowHandler.bind(this,1),home:this._moveCaretToBoundaryEventHandler.bind(this,1),enter:this._updateFormattedValue.bind(this),end:this._moveCaretToBoundaryEventHandler.bind(this,-1)}):this.callBase()},_getTextSeparatorIndex:function(t){var n=Gr.getDecimalSeparator(),e=NN(this.option("format")).occurrence;return Nq(t,n,e)},_focusInHandler:function(t){this._preventNestedFocusEvent(t)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0;var n=this._caret();if(n.start===n.end&&this._useMaskBehavior()){var e=this._getInputVal(),i=this._getTextSeparatorIndex(e);i>=0?this._caret({start:i,end:i}):this._moveCaretToBoundaryEventHandler(-1,t)}}.bind(this),0)),this.callBase(t)},_focusOutHandler:function(t){var n=!this._preventNestedFocusEvent(t);n&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(t),n&&(this._focusOutOccurs=!1)},_hasValueBeenChanged(t){var n=this._getFormatPattern(),e=this.option("value");return(this._format(e,n)||"")!==t},_updateFormattedValue:function(){var t=this._getInputVal();this._hasValueBeenChanged(t)&&(this._updateParsedValue(),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&Se.trigger(this._input(),"change"))},_arrowHandler:function(t,n){if(this._useMaskBehavior()){var e=this._getInputVal(),i=this._getFormatPattern(),r=XC(this._caret(),t);(function(t,n,e){var i=cv(t=XC(t,0),n,e);return t.start>=i.start&&t.end<=i.end})(r,e,i)||(r=1===t?r.end:r.start,n.preventDefault(),this._caret(cv(r,e,i)))}},_moveCaretToBoundary:function(t){var n=VN(this._getInputVal(),this._getFormatPattern()),e=XC(1===t?n.start:n.end,0);this._caret(e)},_moveCaretToBoundaryEventHandler:function(t,n){!this._useMaskBehavior()||n&&n.shiftKey||(this._moveCaretToBoundary(t),n&&n.preventDefault())},_shouldMoveCaret:function(t,n){var e=Gr.getDecimalSeparator(),i=t.charAt(n.end)===e;return(this._lastKey===e||"."===this._lastKey||","===this._lastKey)&&i},_getInputVal:function(){return Gr.convertDigits(this._input().val(),!0)},_keyboardHandler:function(t){if(this.clearCaretTimeout(),this._lastKey=Gr.convertDigits(D2(t),!0),this._lastKeyName=Wo(t),!this._shouldHandleKey(t.originalEvent))return this.callBase(t);var n=this._getInputVal(),e=this._caret(),r=this._tryParse(n,e,this._lastKeyName===rk?"":this._lastKey);return this._shouldMoveCaret(n,e)&&(this._moveCaret(1),t.originalEvent.preventDefault()),void 0===r?this._lastKeyName!==rk&&t.originalEvent.preventDefault():this._parsedValue=r,this.callBase(t)},_keyPressHandler:function(t){this._useMaskBehavior()||this.callBase(t)},_removeHandler:function(t){var n=this._caret(),e=this._getInputVal(),i=n.start,r=n.end;this._lastKey=D2(t),this._lastKeyName=Wo(t);var o=this._isDeleteKey(this._lastKeyName),a=!o;if(i===r){if(!(a&&i>0||o&&i<e.length))return void t.preventDefault();o&&r++,a&&i--}var u=e.slice(i,r);if(this._isStub(u))return this._moveCaret(o?1:-1),(this._parsedValue<0||1/this._parsedValue==-1/0)&&(this._revertSign(t),this._setTextByParsedValue()),void t.preventDefault();var f=Gr.getDecimalSeparator();if(u!==f){if(r-i<e.length&&this._replaceSelectedText(e,{start:i,end:r},"").search(/[0-9]/)<0&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue==-1/0?-0:0);var L=this._tryParse(e,{start:i,end:r},"");void 0===L?t.preventDefault():this._parsedValue=L}else{var S=e.indexOf(f);this._isNonStubAfter(S+1)&&(this._moveCaret(o?1:-1),t.preventDefault())}},_isPercentFormat:function(){return-1!==this._getFormatPattern().replace(/'[^']+'/g,"").indexOf("%")},_parse:function(t,n){var e=this.option("format"),i=Yt(e.parser),r=i?e.parser:Gr.parse,o=0;if(!i){var a=NN(n).index,s=this._getTextSeparatorIndex(t),l=-1!==a?a:n.length,u=-1!==s?s:t.length;u>l&&-1===n.indexOf("#")&&(o=u-l)}return r(t=t.substr(o),n)},_format:function(t,n){var e=this.option("format"),i=e?.formatter||e,r=Yt(i)?i:Gr.format;return null===t?"":r(t,n)},_getFormatPattern:function(){return this._currentFormat||this._updateFormat(),this._currentFormat},_updateFormat:function(){var t=this.option("format"),n=Yt(t?.parser),e=Pn(t)&&(t.indexOf("0")>=0||t.indexOf("#")>=0);this._currentFormat=n||e||"exponential"===t||"exponential"===t?.type?t:function lnt(t){var n=".",e=t(1).indexOf("100")>=0;n=Ede(n,t,e,!0);var i=Ode(n=Ede(n,t,e,!1),t,e,!1),r=Ode(n,t,e,!0);return r==="-"+i?i:i+";"+r}(o=>{var a=this._format(o,t);return Gr.convertDigits(a,!0)})},_getFormatForSign:function(t){var n=this._getFormatPattern();if(Pn(n)){var e=n.split(";"),i=Gr.getSign(t,n);return e[1]=e[1]||"-"+e[0],i<0?e[1]:e[0]}return Gr.getSign(t)<0?"-":""},_removeStubs:function(t,n){var e=this._getFormatForSign(t),i=Gr.getThousandsSeparator(),r=this._getStubs(e),o=t;if(r.length){var a=r[0],s=new RegExp("("+z0(r[1]||"")+")$","g"),l=new RegExp("[-"+z0(n?"":i)+"]","g");o=o.replace(a,"").replace(s,"").replace(l,"")}return o},_getStubs:function(t){var n=/[^']([#0.,]+)/g.exec(t),e=n&&n[0].trim();return t.split(e).map(function(i){return i.replace(/'/g,"")})},_truncateToPrecision:function(t,n){if(Z(t)){var e=t.toString(),i=e.indexOf(".");if(e&&i>-1){var r=parseFloat(e.substr(0,i+n+1));return isNaN(r)?t:r}}return t},_tryParse:function(t,n,e){var i=this._replaceSelectedText(t,n,e),r=this._getFormatPattern(),o=n.start!==n.end,a=this._getParsedValue(i,r),s=!r.parser&&this._getPrecisionLimits(i).max,l=a!==this._parsedValue,f=e===Gr.getDecimalSeparator()&&0===s,S=!o&&!l&&"-"!==e&&!this._isValueIncomplete(i)&&this._isStub(e);if(!f&&!S&&(""===this._removeStubs(i)&&(a=Math.abs(0*this._parsedValue)),!isNaN(a)))return a=s?this._truncateToPrecision(null===a?this._parsedValue:a,s):a,!r.parser&&this._isPercentFormat()?function(t,n){return t&&Kr(t/100,n)}(a,s):a},_getParsedValue:function(t,n){var e=Gr.getSign(t,n?.formatter||n),i=this._removeStubs(t,!0),r=this._parse(i,n),o=r<0?-1:1;return di(r)&&e!==o?e*r:r},_isValueIncomplete:function(t){if(!this._useMaskBehavior())return this.callBase(t);var n=this._caret(),e=Gr.getDecimalSeparator(),i=this._getTextSeparatorIndex(t),r=i>=0&&i<n.start,o=this._removeStubs(t,!0).split(e);if(!r||2!==o.length)return!1;var a=o[1].length,l=!!this._getFormatPattern().parser,u=!l&&this._getPrecisionLimits(this._getFormatPattern(),t),f=!!l||tm(a,u.min,u.max),S="0"===o[1].charAt(a-1);return f&&(S||!a)},_isValueInRange:function(t){var n=gr(this.option("min"),-1/0),e=gr(this.option("max"),1/0);return tm(t,n,e)},_setInputText:function(t){var n=Gr.convertDigits(t,!0),e=function(t,n,e,i){e=XC(e,0);var r=Gr.getDecimalSeparator(),o=function QNt(t){return 1===t.length&&!!t.match(/^[,.][0-9]*$/g)}(t),a=NN(i).occurrence,s=o?0:Nq(t,r,a),l=Nq(n,r,a),u=Vq(t,s),f=Vq(n,l);if(-1!==s&&e.start>s){var R=hTe(e.start-s-1,u[1]);return cv(f[1]?l+1+gTe(R,f[1])+1:n.length,n,i)}var z=function(t){return t.replace(/[^0-9e]+$/,"")}(f[0]),Y=hTe(u[0].length-e.start,pTe(u[0])),ie=gTe(Y,pTe(z));return cv(z.length-(ie+1),n,i)}(this._getInputVal(),n,this._caret(),this._getFormatPattern());this._input().val(t),this._toggleEmptinessEventHandler(),this._formattedValue=t,this._focusOutOccurs||this._caret(e)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var t="number"===this.option("mode"),n="desktop"===pn.real().deviceType;this._useMaskBehavior()&&t?this._setInputType(n||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:function(t){return Pn(t)&&1===t.length},_moveCaret:function(t){if(t){var e=cv(XC(this._caret(),t),this._getInputVal(),this._getFormatPattern());this._caret(e)}},_shouldHandleKey:function(t){var n=Wo(t),e=Xo(t)||t.altKey||t.shiftKey||!this._isChar(n),i=n===rk;return this._useMaskBehavior()&&!e&&!i},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){Se.off(this._input(),"."+Hq)},_isInputFromPaste:function(t){var n=t.originalEvent&&t.originalEvent.inputType;return Z(n)?"insertFromPaste"===n:this._isValuePasted},_attachFormatterEvents:function(){var t=this._input();Se.on(t,kt("input",Hq),function(n){this._formatValue(n),this._isValuePasted=!1}.bind(this)),Se.on(t,kt("dxclick",Hq),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0,this._caret(cv(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),0))}.bind(this)),Se.on(t,"dxdblclick",function(){this.clearCaretTimeout()}.bind(this))},clearCaretTimeout:function(){clearTimeout(this._caretTimeout),this._caretTimeout=void 0},_forceRefreshInputValue:function(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter:function(t){var n=this._getInputVal().slice(t);return n&&!this._isStub(n,!0)},_isStub:function(t,n){var e=z0(Gr.getDecimalSeparator());return new RegExp("^[^0-9"+e+"]+$","g").test(t)&&(n||this._isChar(t))},_parseValue:function(t){return this._useMaskBehavior()?this._parsedValue:this.callBase(t)},_getPrecisionLimits:function(t){var n=this._getFormatForSign(t),e=NN(n).index,i=(Vq(n,e)[1]||"").replace(/[^#0]/g,"");return{min:i.replace(/^(0*)#*/,"$1").length,max:i.length}},_revertSign:function(t){if(this._useMaskBehavior()){var n=this._caret();if(n.start!==n.end){if(Wo(t)===rk)return void this._applyRevertedSign(t,n,!0);this._caret(cv(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(t,n)}},_applyRevertedSign:function(t,n,e){var i=-1*gr(this._parsedValue,null);if((this._isValueInRange(i)||0===i)&&(this._parsedValue=i,e)){var r=this._getFormatPattern(),o=this._getInputVal();this._setTextByParsedValue(),t.preventDefault();var a=this._getInputVal(),s=function(t,n,e){var i=VN(t,e);return VN(n,e).start-i.start}(o,a,r),l=cv(n=XC(n,s),a,r);this._caret(l)}},_removeMinusFromText:function(t,n){return this._lastKeyName===rk&&"-"===t.charAt(n.start-1)?this._replaceSelectedText(t,{start:n.start-1,end:n.start},""):t},_setTextByParsedValue:function(){var t=this._getFormatPattern(),n=this._parseValue(),e=this._format(n,t)||"";this._setInputText(e)},_formatValue:function(t){var n=this._getInputVal(),e=this._caret(),i=this._removeMinusFromText(n,e),r=i!==n;if(n=i,!this._isInputFromPaste(t)&&this._isValueIncomplete(i))return this._formattedValue=n,void(r&&this._setTextByParsedValue());if(Gr.convertDigits(this._formattedValue,!0)!==n){var a=this._tryParse(n,e,"");Z(a)&&(this._parsedValue=a)}this._setTextByParsedValue()},_renderDisplayText:function(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue:function(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_updateParsedValue:function(){var t=this._getInputVal();this._parsedValue=this._tryParse(t,this._caret())},_adjustParsedValue:function(){if(this._useMaskBehavior()){var n=this._removeStubs(this._getInputVal())?this._parseValue():null;if(!di(n))return void(this._parsedValue=n);this._parsedValue=al(n,this.option("min"),this.option("max"))}},_valueChangeEventHandler:function(t){if(!this._useMaskBehavior())return this.callBase(t);var n=this._caret();this._saveValueChangeEvent(t),this._lastKey=null,this._lastKeyName=null,this._updateParsedValue(),this._adjustParsedValue(),this.option("value",this._parsedValue),n&&this._caret(n)},_optionChanged:function(t){switch(t.name){case"format":case"useMaskBehavior":this._renderInputType(),this._updateFormat(),this._renderFormatter(),this._renderValue(),this._refreshValueChangeEvent(),this._refreshEvents();break;case"min":case"max":this._adjustParsedValue(),this.callBase(t);break;default:this.callBase(t)}},_clearCache:function(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean:function(){this._clearCache(),this.callBase()}});const CTe=_9t;On("dxNumberBox",CTe);const af=CTe;var Uq,zN,bTe=Fn(),sf="dxDraggable",y9t=kt(Pc,sf),C9t=kt(Qd,sf),b9t=kt(Rc,sf),x9t=kt(c1,sf),w9t=kt(h1,sf),S9t=kt(qn.down,sf),D9t=kt("keydown",sf),Wq=t=>({x:t.pageX-U(bTe).scrollLeft(),y:t.pageY-U(bTe).scrollTop()});class wTe{constructor(n,e){this._preventScroll=!0,this._component=e,"vertical"===n?(this._scrollValue="scrollTop",this._overFlowAttr="overflowY",this._sizeAttr="height",this._scrollSizeProp="scrollHeight",this._clientSizeProp="clientHeight",this._limitProps={start:"top",end:"bottom"}):(this._scrollValue="scrollLeft",this._overFlowAttr="overflowX",this._sizeAttr="width",this._scrollSizeProp="scrollWidth",this._clientSizeProp="clientWidth",this._limitProps={start:"left",end:"right"})}updateScrollable(n,e){var i=!1;n.some(r=>{var o=U(r),a=o.hasClass("dx-overlay-wrapper"),s=o.hasClass("dx-overlay-content");return!(!a&&!s)||(i=this._trySetScrollable(r,e))}),i||(this._$scrollableAtPointer=null,this._scrollSpeed=0)}isScrolling(){return!!this._scrollSpeed}isScrollable(n){return("auto"===n.css(this._overFlowAttr)||n.hasClass("dx-scrollable-container"))&&n.prop(this._scrollSizeProp)>Math.ceil("width"===this._sizeAttr?wn(n):Ln(n))}_trySetScrollable(n,e){var r,i=U(n),o=this._component.option("scrollSensitivity"),a=this.isScrollable(i);return a&&(o>(r=this._calculateDistanceToBorders(i,e))[this._limitProps.start]?this._preventScroll||(this._scrollSpeed=-this._calculateScrollSpeed(r[this._limitProps.start]),this._$scrollableAtPointer=i):o>r[this._limitProps.end]?this._preventScroll||(this._scrollSpeed=this._calculateScrollSpeed(r[this._limitProps.end]),this._$scrollableAtPointer=i):(a=!1,this._preventScroll=!1)),a}_calculateDistanceToBorders(n,e){var r,i=n.get(0);return i?(r=Mi(i),{left:e.x-r.left,top:e.y-r.top,right:r.right-e.x,bottom:r.bottom-e.y}):{}}_calculateScrollSpeed(n){var e=this._component,i=e.option("scrollSensitivity"),r=e.option("scrollSpeed");return Math.ceil(Math.pow((i-n)/i,2)*r)}scrollByStep(){if(this._$scrollableAtPointer&&this._scrollSpeed){if(this._$scrollableAtPointer.hasClass("dx-scrollable-container")){var n=this._$scrollableAtPointer.closest(".dx-scrollable"),e=n.data("dxScrollable")||n.data("dxScrollView");if(e){var i=e.scrollOffset()[this._limitProps.start]+this._scrollSpeed;e.scrollTo({[this._limitProps.start]:i})}}else{var r=this._$scrollableAtPointer[this._scrollValue]()+this._scrollSpeed;this._$scrollableAtPointer[this._scrollValue](r)}var o=this._component._dragMoveArgs;o&&this._component._dragMoveHandler(o)}}reset(){this._$scrollableAtPointer=null,this._scrollSpeed=0,this._preventScroll=!0}isOutsideScrollable(n,e){if(!n)return!1;var i=Mi(n.get(0)),r=i[this._limitProps.start],o=i[this._sizeAttr],a=Wq(e),s="width"===this._sizeAttr?a.x:a.y;return s<r||s>r+o}}var k9t=tCe.inherit({ctor:function(t){this.callBase(),this._strategy=t},_step:function(){var t=this._strategy._horizontalScrollHelper,n=this._strategy._verticalScrollHelper;t&&t.scrollByStep(),n&&n.scrollByStep()}}),STe=Ic.inherit({reset:Be,dragMove:Be,dragEnter:Be,dragLeave:Be,dragEnd:function(t){return this._getSourceDraggable()._fireRemoveEvent(t),(new et).resolve()},_fireRemoveEvent:Be,_getDefaultOptions:function(){return se(this.callBase(),{onDragStart:null,onDragMove:null,onDragEnd:null,onDragEnter:null,onDragLeave:null,onDragCancel:null,onCancelByEsc:!1,onDrop:null,immediate:!0,dragDirection:"both",boundary:void 0,boundOffset:0,allowMoveByClick:!1,itemData:null,container:void 0,dragTemplate:void 0,contentTemplate:"content",handle:"",filter:"",clone:!1,autoScroll:!0,scrollSpeed:30,scrollSensitivity:60,group:void 0,data:void 0})},_setOptionsByReference:function(){this.callBase.apply(this,arguments),se(this._optionsByReference,{component:!0,group:!0,itemData:!0,data:!0})},_init:function(){this.callBase(),this._attachEventHandlers(),this._scrollAnimator=new k9t(this),this._horizontalScrollHelper=new wTe("horizontal",this),this._verticalScrollHelper=new wTe("vertical",this)},_normalizeCursorOffset:function(t){return Jn(t)&&(t={h:t.x,v:t.y}),t=tw(t).map(n=>parseFloat(n)),{left:t[0],top:1===t.length?t[0]:t[1]}},_getNormalizedCursorOffset:function(t,n){return Yt(t)&&(t=t.call(this,n)),this._normalizeCursorOffset(t)},_calculateElementOffset:function(t){var n,e,i=t.event,r=U(t.itemElement),o=U(t.dragElement),a=this._dragElementIsCloned(),s=this.option("cursorOffset"),l={left:0,top:0},u=this._initialLocate=Ra(o);return(a||t.initialOffset||s)&&(n=t.initialOffset||r.offset(),s&&(l=this._getNormalizedCursorOffset(s,t),isFinite(l.left)&&(n.left=i.pageX),isFinite(l.top)&&(n.top=i.pageY)),e=o.offset(),n.top-=e.top+(l.top||0)-u.top,n.left-=e.left+(l.left||0)-u.left),n},_initPosition:function(t){var n=U(t.dragElement),e=this._calculateElementOffset(t);e&&this._move(e,n),this._startPosition=Ra(n)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},_addWidgetPrefix:function(t){return sP(this.NAME)+(t?"-"+t:"")},_getItemsSelector:function(){return this.option("filter")||""},_$content:function(){var t=this.$element(),n=t.children(".dx-template-wrapper");return n.length?n:t},_attachEventHandlers:function(){if(!this.option("disabled")){var t=this._$content(),n=this._getItemsSelector(),e=this.option("allowMoveByClick"),i={direction:this.option("dragDirection"),immediate:this.option("immediate"),checkDropTarget:(r,o)=>{var a=this.option("group"),s=this._getSourceDraggable().option("group"),l=this._getScrollable(r);return!this._verticalScrollHelper.isOutsideScrollable(l,o)&&!this._horizontalScrollHelper.isOutsideScrollable(l,o)&&s&&s===a}};e&&(t=this._getArea(),Se.on(t,S9t,i,this._pointerDownHandler.bind(this))),">"===n[0]&&(n=n.slice(1)),Se.on(t,y9t,n,i,this._dragStartHandler.bind(this)),Se.on(t,C9t,i,this._dragMoveHandler.bind(this)),Se.on(t,b9t,i,this._dragEndHandler.bind(this)),Se.on(t,x9t,i,this._dragEnterHandler.bind(this)),Se.on(t,w9t,i,this._dragLeaveHandler.bind(this)),this.option("onCancelByEsc")&&Se.on(t,D9t,this._keydownHandler.bind(this))}},_dragElementIsCloned:function(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix("clone"))},_getDragTemplateArgs:function(t,n){return{container:kn(n),model:{itemData:this.option("itemData"),itemElement:kn(t)}}},_createDragElement:function(t){var n=t,e=this.option("clone"),i=this._getContainer(),r=this.option("dragTemplate");return r?(r=this._getTemplate(r),n=U("<div>").appendTo(i),r.render(this._getDragTemplateArgs(t,n))):e&&(n=U("<div>").appendTo(i),t.clone().css({width:t.css("width"),height:t.css("height")}).appendTo(n)),n.toggleClass(this._addWidgetPrefix("clone"),n.get(0)!==t.get(0)).toggleClass("dx-rtl",this.option("rtlEnabled"))},_resetDragElement:function(){this._dragElementIsCloned()?this._$dragElement.remove():this._toggleDraggingClass(!1),this._$dragElement=null},_resetSourceElement:function(){this._toggleDragSourceClass(!1),this._$sourceElement=null},_detachEventHandlers:function(){Se.off(this._$content(),"."+sf),Se.off(this._getArea(),"."+sf)},_move:function(t,n){kr(n||this._$dragElement,t)},_getDraggableElement:function(t){var n=this._getSourceElement();if(n)return n;if(this.option("allowMoveByClick"))return this.$element();var i=U(t&&t.target),r=this._getItemsSelector();if(">"===r[0]){var o=this._$content().find(r);o.is(i)||(i=i.closest(o))}return i},_getSourceElement:function(){return this._getSourceDraggable()._$sourceElement},_pointerDownHandler:function(t){if(!Wge(t)){var n={},e=this.$element(),i=this.option("dragDirection");("horizontal"===i||"both"===i)&&(n.left=t.pageX-e.offset().left+Ra(e).left-wn(e)/2),("vertical"===i||"both"===i)&&(n.top=t.pageY-e.offset().top+Ra(e).top-Ln(e)/2),this._move(n,e),this._getAction("onDragMove")(this._getEventArgs(t))}},_isValidElement:function(t,n){var e=this.option("handle"),i=U(t.originalEvent&&t.originalEvent.target);return!(e&&!i.closest(e).length||!n.length||n.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler:function(t){var n=this._getDraggableElement(t);if(this.dragInProgress=!0,this._isValidElement(t,n)){if(!this._$sourceElement){var e=this._getDragStartArgs(t,n);if(this._getAction("onDragStart")(e),e.cancel)return void(t.cancel=!0);this.option("itemData",e.itemData),this._setSourceDraggable(),this._$sourceElement=n;var i=n.offset(),r=this._$dragElement=this._createDragElement(n);this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0),this._setGestureCoverCursor(r.children());var o="fixed"===r.css("position");this._initPosition(se({},e,{dragElement:r.get(0),initialOffset:o&&i})),this._getAction("onDraggableElementShown")(mt({},e,{dragElement:r}));var a=this._getArea(),s=this._getAreaOffset(a),l=this._getBoundOffset(),u=ii(a),f=Zn(a),S=wn(r),T=Ln(r),R=r.offset().left-s.left,L=r.offset().top-s.top;a.length&&(t.maxLeftOffset=R-l.left,t.maxRightOffset=u-R-S-l.right,t.maxTopOffset=L-l.top,t.maxBottomOffset=f-L-T-l.bottom),this.option("autoScroll")&&this._startAnimator()}}else t.cancel=!0},_getAreaOffset:function(t){return t&&rs.offset(t)||{left:0,top:0}},_toggleDraggingClass:function(t){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),t)},_toggleDragSourceClass:function(t,n){var e=n||this._$sourceElement;e&&e.toggleClass(this._addWidgetPrefix("source"),t)},_setGestureCoverCursor:function(t){U(".".concat("dx-gesture-cover")).css("cursor",t.css("cursor"))},_getBoundOffset:function(){var t=this.option("boundOffset");return Yt(t)&&(t=t.call(this)),function(t){var n=function(t){switch(typeof t){case"string":return t.split(/\s+/,4);case"object":return[t.x||t.h||t.left,t.y||t.v||t.top,t.x||t.h||t.right,t.y||t.v||t.bottom];case"number":return[t];default:return t}}(t),e=parseInt(n&&n[0],10),i=parseInt(n&&n[1],10),r=parseInt(n&&n[2],10),o=parseInt(n&&n[3],10);return isFinite(e)||(e=0),isFinite(i)||(i=e),isFinite(r)||(r=e),isFinite(o)||(o=i),{top:i,right:r,bottom:o,left:e}}(t)},_getArea:function(){var t=this.option("boundary");return Yt(t)&&(t=t.call(this)),U(t)},_getContainer:function(){var t=this.option("container");return void 0===t&&(t=bh()),U(t)},_dragMoveHandler:function(t,n){if(this._dragMoveArgs=t,this._$dragElement){var e=t.offset,i=this._startPosition;this._move({left:i.left+e.x,top:i.top+e.y}),n||this._updateScrollable(t);var r=this._getEventArgs(t);this._getAction("onDragMove")(r),!0!==r.cancel&&this._getTargetDraggable().dragMove(t,n)}else t.cancel=!0},_updateScrollable:function(t){if(this.option("autoScroll")){var n=Wq(t),e=It.elementsFromPoint(n.x,n.y,this.$element().get(0));this._verticalScrollHelper.updateScrollable(e,n),this._horizontalScrollHelper.updateScrollable(e,n)}},_getScrollable:function(t){var n;return t.parents().toArray().some(e=>{var i=U(e);if(this._horizontalScrollHelper.isScrollable(i)||this._verticalScrollHelper.isScrollable(i))return n=i,!0}),n},_defaultActionArgs:function(){var t=this.callBase.apply(this,arguments),n=this.option("component");return n&&(t.component=n,t.element=n.element()),t},_getEventArgs:function(t){var n=this._getSourceDraggable(),e=this._getTargetDraggable();return{event:t,itemData:n.option("itemData"),itemElement:kn(n._$sourceElement),fromComponent:n.option("component")||n,toComponent:e.option("component")||e,fromData:n.option("data"),toData:e.option("data")}},_getDragStartArgs:function(t,n){var e=this._getEventArgs(t);return{event:e.event,itemData:e.itemData,itemElement:n,fromData:e.fromData}},_revertItemToInitialPosition:function(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler:function(t){var n=new et,e=this._getEventArgs(t),i=this._getEventArgs(t),r=this._getTargetDraggable(),o=!0;this.dragInProgress=!1;try{this._getAction("onDragEnd")(e)}finally{Qt(ra(e.cancel)).done(a=>{if(!a&&(r!==this&&r._getAction("onDrop")(i),!i.cancel))return o=!1,void Qt(ra(r.dragEnd(e))).always(n.resolve);n.resolve()}).fail(n.resolve),n.done(()=>{o&&this._revertItemToInitialPosition(),this._resetDragOptions(r)})}},_isTargetOverAnotherDraggable:function(t){var n=this._getSourceDraggable();if(this===n)return!1;var e=n._$dragElement,i=n.$element(),r=this.$element(),o=Wq(t),s=It.elementsFromPoint(o.x,o.y,this.element()).filter(S=>{var T=U(S);if(T.hasClass(this._addWidgetPrefix()))return!T.closest(e).length})[0],l=this._getSourceElement(),u=s===i.get(0),f=U(s).closest(l).length;return!s||s===r.get(0)&&!u&&!f},_dragEnterHandler:function(t){this._fireDragEnterEvent(t),this._isTargetOverAnotherDraggable(t)&&this._setTargetDraggable(),this._getSourceDraggable().dragEnter(t)},_dragLeaveHandler:function(t){this._fireDragLeaveEvent(t),this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset(),this._getSourceDraggable().dragLeave(t)},_keydownHandler:function(t){this.dragInProgress&&"Escape"===t.key&&this._keydownEscapeHandler(t)},_keydownEscapeHandler:function(t){var n;if(this._getSourceElement()){var i=this._getEventArgs(t);if(this._getAction("onDragCancel")(i),!i.cancel){this.dragInProgress=!1,null===(n=zN)||void 0===n||n._toggleDraggingClass(!1),this._detachEventHandlers(),this._revertItemToInitialPosition();var r=this._getTargetDraggable();this._resetDragOptions(r),this._attachEventHandlers()}}},_getAction:function(t){return this["_"+t+"Action"]||this._createActionByOption(t)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this.option("contentTemplate")&&(this._templateManager.addDefaultTemplates({content:new xh}),this.callBase.apply(this,arguments))},_render:function(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());var t=this._templateManager.anonymousTemplateName===this.option("contentTemplate"),n=this._getTemplateByOption("contentTemplate");n&&U(n.render({container:this.element(),transclude:t}))},_optionChanged:function(t){var n=t.name;switch(n){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":case"onDragEnter":case"onDragLeave":case"onDragCancel":case"onDraggableElementShown":this["_"+n+"Action"]=this._createActionByOption(n);break;case"dragTemplate":case"contentTemplate":case"container":case"clone":case"scrollSensitivity":case"scrollSpeed":case"boundOffset":case"handle":case"group":case"data":case"itemData":break;case"allowMoveByClick":case"dragDirection":case"disabled":case"boundary":case"filter":case"immediate":this._resetDragElement(),this._detachEventHandlers(),this._attachEventHandlers();break;case"onCancelByEsc":this._keydownHandler();break;case"autoScroll":this._verticalScrollHelper.reset(),this._horizontalScrollHelper.reset();break;default:this.callBase(t)}},_getTargetDraggable:function(){return Uq||this},_getSourceDraggable:function(){return zN||this},_setTargetDraggable:function(){var t=this.option("group"),n=this._getSourceDraggable();t&&t===n.option("group")&&(Uq=this)},_setSourceDraggable:function(){zN=this},_resetSourceDraggable:function(){zN=null},_resetTargetDraggable:function(){Uq=null},_resetDragOptions:function(t){this.reset(),t.reset(),this._stopAnimator(),this._horizontalScrollHelper.reset(),this._verticalScrollHelper.reset(),this._resetDragElement(),this._resetSourceElement(),this._resetTargetDraggable(),this._resetSourceDraggable()},_dispose:function(){this.callBase(),this._detachEventHandlers(),this._resetDragElement(),this._resetTargetDraggable(),this._resetSourceDraggable(),this._$sourceElement=null,this._stopAnimator()},_fireDragEnterEvent:function(t){var n=this._getEventArgs(t);this._getAction("onDragEnter")(n)},_fireDragLeaveEvent:function(t){var n=this._getEventArgs(t);this._getAction("onDragLeave")(n)}});On(sf,STe);const JC=STe;var UN="dx-colorview-container-row",DTe="dx-colorview-palette-gradient",B9t="dx-colorview-palette-gradient-white",N9t="dx-colorview-palette-gradient-black",ETe="dx-colorview-color-preview",i8t="dx-colorview-color-preview-color-current",r8t="dx-colorview-color-preview-color-new",OTe=Ru.inherit({_supportedKeys:function(){var t=this.option("rtlEnabled"),n=this,e=function(S){var T=100/n._paletteWidth;return S.shiftKey&&(T*=n.option("keyStep")),T=T>1?T:1,Math.round(T)},i=function(S){var T=n._currentColor.hsv.s+S;T>100?T=100:T<0&&(T=0),n._currentColor.hsv.s=T,a()},r=function(S){var T=100/n._paletteHeight;return S.shiftKey&&(T*=n.option("keyStep")),T=T>1?T:1,Math.round(T)},o=function(S){var T=n._currentColor.hsv.v+S;T>100?T=100:T<0&&(T=0),n._currentColor.hsv.v=T,a()};function a(){n._placePaletteHandle(),n._updateColorFromHsv(n._currentColor.hsv.h,n._currentColor.hsv.s,n._currentColor.hsv.v)}var s=function(S){var T=360/(n._hueScaleWrapperHeight-n._hueScaleHandleHeight);return S.shiftKey&&(T*=n.option("keyStep")),T>1?T:1},l=function(S){n._currentColor.hsv.h+=S,n._placeHueScaleHandle();var T=Ra(n._$hueScaleHandle);n._updateColorHue(T.top+n._hueScaleHandleHeight/2)},u=function(S){var T=1/n._alphaChannelScaleWorkWidth;return S.shiftKey&&(T*=n.option("keyStep")),T=T>.01?T:.01,t?-T:T},f=function(S){n._currentColor.a+=S,n._placeAlphaChannelHandle();var T=Ra(n._$alphaChannelHandle);n._calculateColorTransparencyByScaleWidth(T.left+n._alphaChannelHandleWidth/2)};return se(this.callBase(),{upArrow:function(S){S.preventDefault(),S.stopPropagation(),Xo(S)?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&(this._saveValueChangeEvent(S),l(s(S))):this._currentColor.hsv.v<100&&(this._saveValueChangeEvent(S),o(r(S)))},downArrow:function(S){S.preventDefault(),S.stopPropagation(),Xo(S)?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),this._saveValueChangeEvent(S),l(-s(S))):this._currentColor.hsv.v>0&&(this._saveValueChangeEvent(S),o(-r(S)))},rightArrow:function(S){S.preventDefault(),S.stopPropagation(),Xo(S)?(t?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(S),f(-u(S))):this._currentColor.hsv.s<100&&(this._saveValueChangeEvent(S),i(e(S)))},leftArrow:function(S){S.preventDefault(),S.stopPropagation(),Xo(S)?(t?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(S),f(u(S))):this._currentColor.hsv.s>0&&(this._saveValueChangeEvent(S),i(-e(S)))},enter:function(S){this._fireEnterKeyPressed(S)}})},_getDefaultOptions:function(){return se(this.callBase(),{value:null,matchValue:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(t){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:t})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(t){var n=new Ka(t=t||"#000000");n.colorIsInvalid?this.option("value",this._currentColor.baseColor):(!this._currentColor||this._makeRgba(this._currentColor)!==this._makeRgba(n))&&(this._currentColor=n,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,n))},_setBaseColor:function(t){var e=new Ka(t||"#000000");e.colorIsInvalid||this._makeRgba(this.option("matchValue")!==this._makeRgba(e))&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,e)},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-colorview"),this._renderColorPickerContainer()},_render:function(){this.callBase(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_makeTransparentBackground:function(t,n){n instanceof Ka||(n=new Ka(n)),t.css("backgroundColor",this._makeRgba(n))},_makeRgba:function(t){return t instanceof Ka||(t=new Ka(t)),"rgba("+[t.r,t.g,t.b,t.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var t=this.$element();this._$colorPickerContainer=U("<div>").addClass("dx-colorview-container").appendTo(t),this._renderHtmlRows()},_renderHtmlRows:function(t){var n=this._$colorPickerContainer.find("."+UN),e=n.length,r=e-(this.option("editAlphaChannel")?2:1);if(r>0&&n.eq(-1).remove(),r<0){r=Math.abs(r);var a,o=[];for(a=0;a<r;a++)o.push(U("<div>").addClass(UN));if(e)for(a=0;a<o.length;a++)n.eq(0).after(o[a]);else this._$colorPickerContainer.append(o)}},_renderHtmlCellInsideRow:function(t,n,e){return U("<div>").addClass("dx-colorview-container-cell").addClass(e).appendTo(n.find("."+UN).eq(t))},_renderPalette:function(){var t=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-palette-cell"),n=U("<div>").addClass([DTe,B9t].join(" ")),e=U("<div>").addClass([DTe,N9t].join(" "));this._$palette=U("<div>").addClass("dx-colorview-palette").css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(t),this._paletteHeight=Ln(this._$palette),this._paletteWidth=wn(this._$palette),this._renderPaletteHandle(),this._$palette.append([n,e])},_renderPaletteHandle:function(){this._$paletteHandle=U("<div>").addClass("dx-colorview-palette-handle").appendTo(this._$palette),this._createComponent(this._$paletteHandle,JC,{contentTemplate:null,boundary:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDragMove:t=>{var{event:n}=t,e=Ra(this._$paletteHandle);this._updateByDrag=!0,this._saveValueChangeEvent(n),this._updateColorFromHsv(this._currentColor.hsv.h,this._calculateColorSaturation(e),this._calculateColorValue(e))}}),this._paletteHandleWidth=wn(this._$paletteHandle),this._paletteHandleHeight=Ln(this._$paletteHandle),this._placePaletteHandle()},_placePaletteHandle:function(){kr(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue:function(t){var n=Math.floor(t.top+this._paletteHandleHeight/2);return 100-Math.round(100*n/this._paletteHeight)},_calculateColorSaturation:function(t){var n=Math.floor(t.left+this._paletteHandleWidth/2);return Math.round(100*n/this._paletteWidth)},_updateColorFromHsv:function(t,n,e){var i=this._currentColor.a;this._currentColor=new Ka("hsv("+[t,n,e].join(",")+")"),this._currentColor.a=i,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var t=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-hue-scale-cell");this._$hueScaleWrapper=U("<div>").addClass("dx-colorview-hue-scale-wrapper").appendTo(t),this._$hueScale=U("<div>").addClass("dx-colorview-hue-scale").appendTo(this._$hueScaleWrapper),this._hueScaleHeight=Ln(this._$hueScale),this._hueScaleWrapperHeight=Zn(this._$hueScaleWrapper),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){this._$hueScaleHandle=U("<div>").addClass("dx-colorview-hue-scale-handle").appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,JC,{contentTemplate:null,boundary:this._$hueScaleWrapper,allowMoveByClick:!0,dragDirection:"vertical",onDragMove:t=>{var{event:n}=t;this._updateByDrag=!0,this._saveValueChangeEvent(n),this._updateColorHue(Ra(this._$hueScaleHandle).top+this._hueScaleHandleHeight/2)}}),this._hueScaleHandleHeight=Ln(this._$hueScaleHandle),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var t=this._hueScaleWrapperHeight,n=this._hueScaleHandleHeight,e=(t-n)*(360-this._currentColor.hsv.h)/360;t<e+n&&(e=t-n),e<0&&(e=0),kr(this._$hueScaleHandle,{top:Math.round(e)})},_updateColorHue:function(t){var n=360-Math.round(360*(t-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight)),e=this._currentColor.hsv.s,i=this._currentColor.hsv.v;this._isTopColorHue=!1,(n=n<0?0:n)>=360&&(this._isTopColorHue=!0,n=0),this._updateColorFromHsv(n,e,i),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var t=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=U("<div>").addClass("dx-colorview-controls-container").appendTo(t)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var t=U("<div>").addClass("dx-colorview-color-preview-container").appendTo(this._$controlsContainer),n=U("<div>").addClass("dx-colorview-color-preview-container-inner").appendTo(t);this._$currentColor=U("<div>").addClass([ETe,r8t].join(" ")),this._$baseColor=U("<div>").addClass([ETe,i8t].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),n.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find("."+UN).eq(1).addClass("dx-colorview-alpha-channel-row"),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:af,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:ye.format("dxColorView-ariaRed"),labelClass:"dx-colorview-label-red"}),this._renderEditorWithLabel({editorType:af,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:ye.format("dxColorView-ariaGreen"),labelClass:"dx-colorview-label-green"}),this._renderEditorWithLabel({editorType:af,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:ye.format("dxColorView-ariaBlue"),labelClass:"dx-colorview-label-blue"})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel:function(t){var n=U("<div>"),e=U("<label>").addClass(t.labelClass).text(t.labelText+":").append(n);Se.off(e,Vi),Se.on(e,Vi,function(a){a.preventDefault()});var i=t.editorType,r=se({value:t.value,onValueChanged:t.onValueChanged,onKeyboardHandled:a=>this._keyboardHandler(a)},{stylingMode:this.option("stylingMode")});return i===af&&(r.min=t.min||0,r.max=t.max||255,r.step=t.step||1),new i(n,r).registerKeyHandler("enter",function(a){this._fireEnterKeyPressed(a)}.bind(this)),this.setAria("label",t.labelAriaText,n),e},hexInputOptions:function(){return{editorType:Th,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:"dx-colorview-label-hex",labelText:"#",labelAriaText:ye.format("dxColorView-ariaHex")}},_renderHexInput:function(){this._hexInput=Th.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"))},_renderAlphaChannelScale:function(){var t=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,"dx-colorview-alpha-channel-cell"),n=U("<div>").addClass("dx-colorview-alpha-channel-border").appendTo(t),e=U("<div>").addClass("dx-colorview-alpha-channel-wrapper").appendTo(n);this._$alphaChannelScale=U("<div>").addClass("dx-colorview-alpha-channel-scale").appendTo(e),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(t)},_makeCSSLinearGradient:function(t){var n=this._currentColor,e=[n.r,n.g,n.b].join(","),i=n.toHex().replace("#","");t.attr("style",function(r,o){var a=this.option("rtlEnabled"),s="rgba("+r+", "+(a?"1":"0")+")",l="rgba("+r+", "+(a?"0":"1")+")";return["background-image: -webkit-linear-gradient(180deg, "+s+", "+l+")","background-image: -moz-linear-gradient(-90deg, "+s+", "+l+")","background-image: -o-linear-gradient(-90deg, "+s+", "+l+")","background-image: linear-gradient(-90deg, "+s+", "+l+")"].join(";")}.call(this,e,i))},_renderAlphaChannelInput:function(){var t=this,n=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);t._alphaChannelInput=this._renderEditorWithLabel({editorType:af,value:this._currentColor.a,max:1,step:.1,onValueChanged:function(e){var i=e.value;i=t._currentColor.isValidAlpha(i)?i:t._currentColor.a,e.event&&t._saveValueChangeEvent(e.event),t._updateColorTransparency(i),t._placeAlphaChannelHandle()},labelClass:"dx-colorview-alpha-channel-label",labelText:"Alpha",labelAriaText:ye.format("dxColorView-ariaAlpha")}).appendTo(n).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency:function(t){this._currentColor.a=t,this.applyColor()},_renderAlphaChannelHandle:function(t){this._$alphaChannelHandle=U("<div>").addClass("dx-colorview-alpha-channel-handle").appendTo(t),this._createComponent(this._$alphaChannelHandle,JC,{contentTemplate:null,boundary:t,allowMoveByClick:!0,dragDirection:"horizontal",onDragMove:n=>{var{event:e}=n;this._updateByDrag=!0;var r=Ra(this._$alphaChannelHandle).left+this._alphaChannelHandleWidth/2;this._saveValueChangeEvent(e),this._calculateColorTransparencyByScaleWidth(r)}}),this._alphaChannelHandleWidth=wn(this._$alphaChannelHandle),this._alphaChannelScaleWorkWidth=wn(t)-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth:function(t){var n=(t-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth,e=this.option("rtlEnabled");n=e?n:1-n,t>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?n=e?1:0:n<1&&(n=n.toFixed(2));var i=this._alphaChannelInput.option("value");n=Math.max(n,0),(n=Math.min(n,1))===i?this._updateByDrag=!1:this._alphaChannelInput.option("value",n)},_placeAlphaChannelHandle:function(){var t=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);t<0&&(t=0),this._alphaChannelScaleWorkWidth<t&&(t=this._alphaChannelScaleWorkWidth),kr(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-t:t})},applyColor:function(){var t=this.option("value"),n=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),n===t?this._updateByDrag=!1:this.option("value",n)},cancelColor:function(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor:function(t,n){var e,i;t?i=this._validateHex("#"+this._hexInput.option("value")):(e=this._validateRgb(),this._alphaChannelInput?(e.push(this._alphaChannelInput.option("value")),i="rgba("+e.join(", ")+")"):i="rgb("+e.join(", ")+")"),this._suppressEditorsValueUpdating||(this._currentColor=new Ka(i),this._saveValueChangeEvent(n.event),this.applyColor(),this._refreshMarkup())},_validateHex:function(t){return this._currentColor.isValidHex(t)?t:this._currentColor.toHex()},_validateRgb:function(){var t=this._rgbInputs[0].option("value"),n=this._rgbInputs[1].option("value"),e=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(t,n,e)||(t=this._currentColor.r,n=this._currentColor.g,e=this._currentColor.b),[t,n,e]},_refreshMarkup:function(){this._placeHueScaleHandle(),this._placePaletteHandle(),this._updateColorParamsAndColorPreview(),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex()),this._$alphaChannelHandle&&(this._updateColorTransparency(this._currentColor.a),this._placeAlphaChannelHandle())},_updateColorParamsAndColorPreview:function(){this._suppressEditorsValueUpdating=!0,this._hexInput.option("value",this._currentColor.toHex().replace("#","")),this._rgbInputs[0].option("value",this._currentColor.r),this._rgbInputs[1].option("value",this._currentColor.g),this._rgbInputs[2].option("value",this._currentColor.b),this._suppressEditorsValueUpdating=!1,this.option("editAlphaChannel")&&(this._makeCSSLinearGradient.call(this,this._$alphaChannelScale),this._alphaChannelInput.option("value",this._currentColor.a))},_optionChanged:function(t){var n=t.value;switch(t.name){case"value":this._setCurrentColor(n),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(t);break;case"matchValue":this._setBaseColor(n);break;case"onEnterKeyPressed":this._initEnterKeyPressedAction();break;case"editAlphaChannel":this._$colorPickerContainer&&(this._renderHtmlRows("editAlphaChannel"),this._renderAlphaChannelElements());break;case"keyStep":break;case"stylingMode":this._renderControls();break;default:this.callBase(t)}}});On("dxColorView",OTe);const TTe=OTe;var ok="dx-colorbox",ITe=ok+"-input",o8t=ITe+"-container",a8t=ok+"-color-result-preview",kTe=ok+"-color-is-not-defined",s8t=ok+"-overlay",WN=TTe.prototype,QC={makeTransparentBackground:WN._makeTransparentBackground.bind(WN),makeRgba:WN._makeRgba.bind(WN)},MTe=zL.inherit({_supportedKeys:function(){var t=function(n){if(n.stopPropagation(),this.option("opened"))return n.preventDefault(),!0};return se(this.callBase(),{tab:function(n){if(this.option("opened")){var e=n.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();e&&(Se.trigger(e,"focus"),e.select()),n.preventDefault()}},enter:this._enterKeyHandler,leftArrow:t,rightArrow:t,upArrow:function(n){return this.option("opened")?!n.altKey||(this.close(),!1):(n.preventDefault(),!1)},downArrow:function(n){return this.option("opened")||n.altKey?!(!this.option("opened")&&n.altKey&&(this._validatedOpening(),1)):(n.preventDefault(),!1)}})},_getDefaultOptions:function(){return se(this.callBase(),{editAlphaChannel:!1,applyValueMode:"useButtons",keyStep:1,fieldTemplate:null,buttonsLocation:"bottom after"})},_popupHidingHandler:function(){this.callBase(),"useButtons"===this.option("applyValueMode")&&this._updateColorViewValue(this.option("value"))},_popupConfig:function(){return se(this.callBase(),{width:""})},_contentReadyHandler:function(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses:function(){var t=this._popup.bottomToolbar();t&&(t.addClass("dx-colorview-container-cell").addClass("dx-colorview-button-cell").find(".dx-toolbar-items-container").addClass("dx-colorview-buttons-container"),t.find(".dx-popup-done").addClass("dx-colorview-apply-button"),t.find(".dx-popup-cancel").addClass("dx-colorview-cancel-button"))},_createColorView:function(){this._popup.$overlayContent().addClass(s8t);var t=U("<div>").appendTo(this._popup.$content());this._colorView=this._createComponent(t,TTe,this._colorViewConfig()),this._colorView.registerKeyHandler("escape",this._escapeHandler.bind(this)),Se.on(t,"focus",function(){this.focus()}.bind(this))},_escapeHandler:function(){this.close(),this.focus()},_getFirstPopupElement:function(){return U(this._colorView._rgbInputs[0].element()).find("input")},_applyNewColor:function(t){this.option("value",t),t&&QC.makeTransparentBackground(this._$colorResultPreview,t),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig:function(){var t=this;return{value:t.option("value"),matchValue:t.option("value"),editAlphaChannel:t.option("editAlphaChannel"),applyValueMode:t.option("applyValueMode"),focusStateEnabled:t.option("focusStateEnabled"),stylingMode:this.option("stylingMode"),onEnterKeyPressed:function(n){var{event:e}=n;t._colorViewEnterKeyPressed=!0,t._colorView.option("value")!==t.option("value")&&(t._saveValueChangeEvent(e),t._applyNewColor(t._colorView.option("value")),t.close())},onValueChanged:function(n){var{event:e,value:i,previousValue:r}=n,o="instantly"===t.option("applyValueMode");QC.makeRgba(i)===r||!o&&!t._colorViewEnterKeyPressed||t._shouldSaveEmptyValue||(e&&t._saveValueChangeEvent(e),t._applyNewColor(i))}}},_enterKeyHandler:function(t){var n=this._input().val(),{value:e,editAlphaChannel:i}=this.option(),r=e&&i?QC.makeRgba(e):e;if(!n)return!1;if(!new Ka(n).colorIsInvalid){if(n!==r&&(this._applyColorFromInput(n),this._saveValueChangeEvent(t),this.option("value",this.option("editAlphaChannel")?QC.makeRgba(n):n)),this._colorView){var a=this._colorView.option("value");e!==a&&(this._saveValueChangeEvent(t),this.option("value",a))}return this.close(),!1}this._input().val(r)},_applyButtonHandler:function(t){this._saveValueChangeEvent(t.event),this._applyNewColor(this._colorView.option("value")),this.callBase()},_cancelButtonHandler:function(){this._resetInputValue(),this.callBase()},_getKeyboardListeners(){return this.callBase().concat([this._colorView])},_init:function(){this.callBase()},_initMarkup:function(){this.$element().addClass(ok),this.callBase()},_renderInput:function(){this.callBase(),this._input().addClass(ITe),this._renderColorPreview()},_renderColorPreview:function(){this.$element().wrapInner(U("<div>").addClass(o8t)),this._$colorBoxInputContainer=this.$element().children().eq(0),this._$colorResultPreview=U("<div>").addClass(a8t).appendTo(this._$textEditorInputContainer),this.option("value")?QC.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass(kTe)},_renderValue:function(){var{value:t,editAlphaChannel:n}=this.option(),i=t&&n?QC.makeRgba(t):t;return this.option("text",i),this.callBase()},_resetInputValue:function(){var t=this._input(),n=this.option("value");t.val(n),this._updateColorViewValue(n)},_updateColorViewValue:function(t){this._colorView&&this._colorView.option({value:t,matchValue:t})},_valueChangeEventHandler:function(t){var n=this._input().val();n&&(n=this._applyColorFromInput(n),this._updateColorViewValue(n)),this.callBase(t,n)},_applyColorFromInput:function(t){return new Ka(t).colorIsInvalid&&(this._resetInputValue(),t=this.option("value")),t},_clean:function(){this.callBase(),delete this._shouldSaveEmptyValue},_optionChanged:function(t){var n=t.value,e=t.name;switch(e){case"value":this._$colorBoxInputContainer.toggleClass(kTe,!n),n?QC.makeTransparentBackground(this._$colorResultPreview,n):this._$colorResultPreview.removeAttr("style"),null===n&&(this._shouldSaveEmptyValue=!0),this._updateColorViewValue(n),this._shouldSaveEmptyValue=!1,this.callBase(t);break;case"applyButtonText":case"cancelButtonText":this.callBase(t),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"keyStep":this._colorView&&this._colorView.option(e,n);break;default:this.callBase(t)}}});On("dxColorBox",MTe);const ak=MTe,p8t={provide:Fo,useExisting:At(()=>g8t),multi:!0};let g8t=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"buttonsChange"},{emit:"cancelButtonTextChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"editAlphaChannelChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"keyStepChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(e){this._setOption("acceptCustomValue",e)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(e){this._setOption("applyButtonText",e)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(e){this._setOption("applyValueMode",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(e){this._setOption("cancelButtonText",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get editAlphaChannel(){return this._getOption("editAlphaChannel")}set editAlphaChannel(e){this._setOption("editAlphaChannel",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(e){this._setOption("fieldTemplate",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get keyStep(){return this._getOption("keyStep")}set keyStep(e){this._setOption("keyStep",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}_createInstance(e,i){return new ak(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-color-box"]],contentQueries:function(e,i,r){if(1&e&&In(r,Ig,4),2&e){let o;yn(o=Cn())&&(i.buttonsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",buttons:"buttons",cancelButtonText:"cancelButtonText",deferRendering:"deferRendering",disabled:"disabled",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",editAlphaChannel:"editAlphaChannel",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",keyStep:"keyStep",label:"label",labelMode:"labelMode",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onChange:"onChange",onClosed:"onClosed",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",buttonsChange:"buttonsChange",cancelButtonTextChange:"cancelButtonTextChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",editAlphaChannelChange:"editAlphaChannelChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",keyStepChange:"keyStepChange",labelChange:"labelChange",labelModeChange:"labelModeChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,p8t,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),ATe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Wa,Us,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,bi,tn,mi],Wa,Us,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,tn]}),t})();var f8t=ji.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(t,n){var e=this;we(t,function(i,r){var o=Z(n)?n:e._getParentId(r),a=e._convertItemToNode(r,o);e._dataStructure.push(a),e._checkForDuplicateId(a.internalFields.key),e._indexByKey[a.internalFields.key]=e._dataStructure.length-1,e._itemHasChildren(r)&&e._convertItemsToNodes(e._dataAccessors.getters.items(r),a.internalFields.key)})},_checkForDuplicateId:function(t){if(Z(this._indexByKey[t]))throw Di.Error("E1040",t)},_getParentId:function(t){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(t):void 0},_itemHasChildren:function(t){if("plain"!==this._dataType){var n=this._dataAccessors.getters.items(t);return n&&n.length}},_getUniqueKey:function(t){var n=this._dataAccessors.getters.key,e=n(t);return n&&(e||0===e)&&eO(e)?e:this.getItemsCount()},_convertItemToNode:function(t,n){this._itemsCount++,!1!==t.visible&&this._visibleItemsCount++;var e={internalFields:{disabled:this._dataAccessors.getters.disabled(t,{defaultValue:!1}),expanded:this._dataAccessors.getters.expanded(t,{defaultValue:!1}),selected:this._dataAccessors.getters.selected(t,{defaultValue:!1}),key:this._getUniqueKey(t),parentKey:Z(n)?n:this._rootValue,item:this._makeObjectFromPrimitive(t),childrenKeys:[]}};return se(e,t),delete e.items,e},setChildrenKeys:function(){var t=this;we(this._dataStructure,function(n,e){if(e.internalFields.parentKey!==t._rootValue){var i=t.getParentNode(e);i&&i.internalFields.childrenKeys.push(e.internalFields.key)}})},_makeObjectFromPrimitive:function(t){if(eO(t)){var n=t;this._dataAccessors.setters.key(t={},n)}return t},_convertToPublicNode:function(t,n){if(!t)return null;var e={text:this._dataAccessors.getters.display(t),key:t.internalFields.key,selected:t.internalFields.selected,expanded:t.internalFields.expanded,disabled:t.internalFields.disabled,parent:n||null,itemData:t.internalFields.item,children:[],items:[]};return e.parent&&(e.parent.children.push(e),e.parent.items.push(e)),e},convertToPublicNodes:function(t,n){if(!t.length)return[];var e=this,i=[];return we(t,function(r,o){o=eO(o)?e._getByKey(o):o;var a=e._convertToPublicNode(o,n);a.children=e.convertToPublicNodes(o.internalFields.childrenKeys,a),i.push(a),o.internalFields.publicNode=a}),i},setDataAccessors:function(t){this._dataAccessors=t},_getByKey:function(t){return this._dataStructure[this.getIndexByKey(t)]||null},getParentNode:function(t){return this._getByKey(t.internalFields.parentKey)},getByKey:function(t,n){if(null==n)return null;var a,e=null,i=this;return a=n,we(t,function(s,l){if((l.internalFields&&l.internalFields.key||i._dataAccessors.getters.key(l)).toString()===a.toString())return e=l,!1}),e},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var t=this;this._indexByKey={},we(this._dataStructure,function(n,e){t._checkForDuplicateId(e.internalFields.key),t._indexByKey[e.internalFields.key]=n})},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},we(this._dataStructure,function(t,n){n.internalFields.childrenKeys=[]})},getIndexByKey:function(t){return this._indexByKey[t]},createPlainStructure:function(t,n,e){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=n,this._dataType=e,this._indexByKey={},this._convertItemsToNodes(t),this.setChildrenKeys(),this._dataStructure}});const m8t=f8t;var DS="expanded",eb="selected";pC.setEditorClass(Th);var v8t=ji.inherit({ctor:function(t){this.options={},se(this.options,this._defaultOptions(),t),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(t,n){this.options[t]=n,"recursiveSelection"===t&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new m8t,onNodeChanged:Be,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(eb)},_updateExpansion:function(t){this.options.recursiveExpansion&&(t?this._updateOneBranch(t):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(DS)},_updateNodesKeysArray:function(t){var n=this,e=[];return we(n._getDataBySelectionMode(),function(i,r){n._isNodeVisible(r)&&r.internalFields[t]&&(t===DS||n.options.multipleSelection?e.push(r.internalFields.key):(e.length&&n.toggleSelection(e[0],!1,!0),e=[r.internalFields.key]))}),e},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(t){return!1!==t.internalFields.item.visible},_getByKey:function(t,n){return t===this._dataStructure?this.options.dataConverter._getByKey(n):this.options.dataConverter.getByKey(t,n)},_setChildrenSelection:function(){var t=this;we(this._dataStructure,function(n,e){if(e.internalFields.childrenKeys.length){var i=e.internalFields.selected;!0===i&&t._toggleChildrenSelection(e,i)}})},_setParentSelection:function(){var t=this;we(this._dataStructure,function(n,e){t.options.dataConverter.getParentNode(e)&&e.internalFields.parentKey!==t.options.rootValue&&t._iterateParents(e,function(r){var o=t._calculateSelectedState(r);t._setFieldState(r,eb,o)})})},_setParentExpansion:function(){var t=this;we(this._dataStructure,function(n,e){e.internalFields.expanded&&t._updateOneBranch(e.internalFields.key)})},_updateOneBranch:function(t){var n=this,e=this.getNodeByKey(t);n._iterateParents(e,function(i){n._setFieldState(i,DS,!0)})},_iterateChildren:function(t,n,e,i){if(Yt(e)){var r=this,o=t.internalFields.key;-1===(i=i||[]).indexOf(o)&&(i.push(o),we(t.internalFields.childrenKeys,function(a,s){var l=r.getNodeByKey(s);e(l),l.internalFields.childrenKeys.length&&n&&r._iterateChildren(l,n,e,i)}))}},_iterateParents:function(t,n,e){if(t.internalFields.parentKey!==this.options.rootValue&&Yt(n)){var i=t.internalFields.key;if(-1===(e=e||[]).indexOf(i)){e.push(i);var r=this.options.dataConverter.getParentNode(t);r&&(n(r),r.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(r,n,e))}}},_calculateSelectedState:function(t){for(var n=t.internalFields.childrenKeys.length,e=0,i=0,r=!1,o=0;o<=n-1;o++){var a=this.getNodeByKey(t.internalFields.childrenKeys[o]),l=a.internalFields.selected;!1===a.internalFields.item.visible?i++:l?e++:void 0===l&&(e+=.5)}return e&&(r=e===n-i||void 0),r},_toggleChildrenSelection:function(t,n){var e=this;this._iterateChildren(t,!0,function(i){e._isNodeVisible(i)&&e._setFieldState(i,eb,n)})},_setFieldState:function(t,n,e){t.internalFields[n]!==e&&(t.internalFields[n]=e,t.internalFields.publicNode&&(t.internalFields.publicNode[n]=e),this.options.dataAccessors.setters[n](t.internalFields.item,e),this.options.onNodeChanged(t))},_markChildren:function(t){var n=this;we(t,function(e,i){var r=n.getIndexByKey(i),o=n.getNodeByKey(i);n._dataStructure[r]=0,o.internalFields.childrenKeys.length&&n._markChildren(o.internalFields.childrenKeys)})},_removeNode:function(t){var n=this.getNodeByKey(t);this._dataStructure[this.getIndexByKey(t)]=0,this._markChildren(n.internalFields.childrenKeys);var e=this,i=0,r=se([],this._dataStructure);we(r,function(o,a){a||(e._dataStructure.splice(o-i,1),i++)})},_addNode:function(t){var n=this.options.dataConverter,e=n._convertItemToNode(t,this.options.dataAccessors.getters.parentKey(t));this._dataStructure=this._dataStructure.concat(e),this._initialDataStructure=this._initialDataStructure.concat(e),n._dataStructure=n._dataStructure.concat(e)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(t){var n=null;return we(this._dataStructure,function(e,i){if(i.internalFields.item===t)return n=i,!1}),n},getNodesByItems:function(t){var n=this,e=[];return we(t,function(i,r){var o=n.getNodeByItem(r);o&&e.push(o)}),e},getNodeByKey:function(t,n){return this._getByKey(n||this._getDataBySelectionMode(),t)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(t){return t.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(t){return Ha(this._dataStructure).filter(["internalFields.parentKey",t]).toArray()},getIndexByKey:function(t){return this.options.dataConverter.getIndexByKey(t)},addItem:function(t){this._addNode(t),this._updateFields()},removeItem:function(t){this._removeNode(t),this._updateFields()},toggleSelection:function(t,n,e){var i=this._isSingleModeUnselect(n),r=this._getByKey(e||i?this._initialDataStructure:this._dataStructure,t);this._setFieldState(r,eb,n),this.options.recursiveSelection&&!e&&(n?this._setChildrenSelection():this._toggleChildrenSelection(r,n),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(eb)},_isSingleModeUnselect:function(t){return!this.options.multipleSelection&&!t},toggleNodeDisabledState:function(t,n){var e=this.getNodeByKey(t);this._setFieldState(e,"disabled",n)},toggleSelectAll:function(t){if(Z(t)){var n=this,e=n._selectedNodesKeys[n._selectedNodesKeys.length-1],i=n._isSingleModeUnselect(t)?this._initialDataStructure:this._dataStructure;we(i,function(r,o){n._isNodeVisible(o)&&n._setFieldState(o,eb,t)}),n._selectedNodesKeys=n._updateNodesKeysArray(eb),!t&&n.options.selectionRequired&&n.toggleSelection(e,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(t,n){var e=this.getNodeByKey(t);this._setFieldState(e,DS,n),n&&this._updateExpansion(t),this._expandedNodesKeys=this._updateNodesKeysArray(DS)},isFiltered:function(t){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[t]).length},_createCriteria:function(t,n,e){var i=[];return Array.isArray(t)?(we(t,function(r,o){i.push([o,e,n],"or")}),i.pop(),i):[t,e,n]},_filterDataStructure:function(t,n){var e=this.options.searchExpr||this.options.dataAccessors.getters.display,i=pC.getOperationBySearchMode(this.options.searchMode),r=this._createCriteria(e,t,i);return Ha(n=n||this._initialDataStructure).filter(r).toArray()},search:function(t){var n=this,e=this._filterDataStructure(t),i=this.options.dataConverter;return function r(o,a){for(var s=o.length;a<s;){var l=o[a];if(l.internalFields.parentKey!==n.options.rootValue){var u=i.getParentNode(l);u?(u.internalFields.expanded||n._setFieldState(u,DS,!0),o.includes(u)?a++:(o.splice(a,0,u),r(o,a))):(Di.log("W1007",l.internalFields.parentKey,l.internalFields.key),a++)}else a++}}(e,0),this.options.sort&&(e=cg.queryByOptions(Ha(e),{sort:this.options.sort}).toArray()),i._indexByKey={},we(e,function(r,o){o.internalFields.childrenKeys=[],i._indexByKey[o.internalFields.key]=r}),i._dataStructure=e,i.setChildrenKeys(),i._dataStructure}});const y8t=v8t;var C8t="dx-state-disabled",b8t=Fc.inherit({_getDefaultOptions:function(){return se(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var t=this._createDataAdapterAccessors();this._dataAdapter=new y8t(se({dataAccessors:{getters:t.getters,setters:t.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:Be,_initDynamicTemplates:function(){var t=this;this._templateManager.addDefaultTemplates({item:new Ac(function(n,e){n.html(e.html).append(this._getIconContainer(e)).append(this._getTextContainer(e)).append(this._getPopoutContainer(e)),t._addContentClasses(e,n.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})})},_getIconContainer:function(t){return t.icon?Fu(t.icon):void 0},_getTextContainer:function(t){return U("<span>").text(t.text)},_getPopoutContainer:Be,_addContentClasses:Be,_initAccessors:function(){var t=this;we(this._getAccessors(),function(n,e){t._compileAccessor(e)}),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(t){var n=this,e=[];return we(t.internalFields.childrenKeys,function(i,r){var o=n._dataAdapter.getNodeByKey(r);e.push(o)}),e},_hasChildren:function(t){return t&&t.internalFields.childrenKeys.length},_compileAccessor:function(t){var n="_"+t+"Getter",e="_"+t+"Setter",i=this.option(t+"Expr");return i?Yt(i)?(this[e]=function(r,o){r[i()]=o},void(this[n]=function(r){return r[i()]})):(this[n]=Ai(i),void(this[e]=ph(i))):(this[n]=Be,void(this[e]=Be))},_createDataAdapterAccessors:function(){var t=this,n={getters:{},setters:{}};return we(this._getAccessors(),function(e,i){var o="_"+i+"Setter",a="parentId"===i?"parentKey":i;n.getters[a]=t["_"+i+"Getter"],n.setters[a]=t[o]}),n.getters.display=this._displayGetter?this._displayGetter:e=>e.text,n},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:Be,_renderItemFrame:function(t,n){var e=this.callBase.apply(this,arguments);return e.toggleClass(C8t,!!this._disabledGetter(n)),e},_optionChanged:function(t){switch(t.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(t);break;default:this.callBase(t)}}});const FTe=b8t,w8t=class x8t extends dG{_getPlainItems(){return Dr(this._collectionWidget.option("items"),function n(e){return e.items?[e].concat(Dr(e.items,n)):e})}_stringifyItem(n){return JSON.stringify(n,(e,i)=>"template"===e?this._getTemplateString(i):i)}_getTemplateString(n){return"object"==typeof n?U(n).text():n.toString()}};var sk="dx-menu",S8t=sk+"-no-icons",Wh=sk+"-item",E8t=Wh+"-content",Gq=Wh+"-selected",PTe=Wh+"-wrapper",O8t=sk+"-items-container",T8t=Wh+"-expanded",I8t=sk+"-separator",k8t=sk+"-last-group-item",M8t=Wh+"-has-text",A8t=Wh+"-has-icon",F8t=Wh+"-has-submenu",RTe=Wh+"-popout",P8t=RTe+"-container",R8t=Wh+"-text",B8t={show:50,hide:300};const LTe=(()=>{class t extends FTe{_getDefaultOptions(){return se(super._getDefaultOptions(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})}_itemDataKey(){return"dxMenuItemDataKey"}_itemClass(){return Wh}_setAriaSelected(){}_selectedItemClass(){return Gq}_widgetClass(){return"dx-menu-base"}_focusTarget(){return this._itemContainer()}_clean(){this.option("focusedElement",null),super._clean()}_supportedKeys(){return se(super._supportedKeys(),{space:()=>{var e=U(this.option("focusedElement"));!e.length||!this._isSelectionEnabled()||this.selectItem(e[0])},pageUp:Be,pageDown:Be})}_isSelectionEnabled(){return"single"===this.option("selectionMode")}_init(){this._activeStateUnit=".".concat(Wh),super._init(),this._renderSelectedItem(),this._initActions()}_getTextContainer(e){var i=e.text,r=U("<span>").addClass(R8t),o=wi(e)?i:String(e);return i&&r.text(o)}_getPopoutContainer(e){var r,i=e.items;if(i&&i.length){var o=U("<div>").addClass(RTe);r=U("<span>").addClass(P8t).append(o)}return r}_getDataAdapterOptions(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}}_selectByItem(e){if(e){var i=this._dataAdapter.getNodeByItem(e);this._dataAdapter.toggleSelection(i.internalFields.key,!0)}}_renderSelectedItem(){var e=this._dataAdapter.getSelectedNodesKeys(),i=e.length&&e[0],r=this.option("selectedItem");if(i){var o=this._dataAdapter.getNodeByKey(i);if(!1!==o.selectable){if(!r)return void this.option("selectedItem",o.internalFields.item);r!==o.internalFields.item&&(this._dataAdapter.toggleSelection(i,!1),this._selectByItem(r))}}else this._selectByItem(r)}_initActions(){}_initMarkup(){super._initMarkup(),this.option("useInkRipple")&&this._renderInkRipple()}_renderInkRipple(){this._inkRipple=_T()}_toggleActiveState(e,i,r){if(super._toggleActiveState.apply(this,arguments),this._inkRipple){var o={element:e,event:r};i?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}}_getShowSubmenuMode(){var e=this.option("showSubmenuMode");return e=Jn(e)?e.name:e,this._isDesktopDevice()?e:"onClick"}_initSelectedItems(){}_isDesktopDevice(){return"desktop"===pn.real().deviceType}_initEditStrategy(){this._editStrategy=new w8t(this)}_addCustomCssClass(e){e.addClass(this.option("cssClass"))}_itemWrapperSelector(){return".".concat(PTe)}_hoverStartHandler(e){var i=this._getItemElementByEventArgs(e);!i||this._isItemDisabled(i)||(e.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,i),this._getSubmenuDelay("show"))))}_getAvailableItems(e){return super._getAvailableItems(e).filter(function(){return"hidden"!==U(this).css("visibility")})}_isItemDisabled(e){return this._disabledGetter(e.data(this._itemDataKey()))}_showSubmenu(e){this._addExpandedClass(e)}_addExpandedClass(e){U(e).addClass(T8t)}_getSubmenuDelay(e){var{delay:i}=this.option("showSubmenuMode");return Z(i)?Jn(i)?i[e]:i:B8t[e]}_getItemElementByEventArgs(e){var i=U(e.target);if(i.hasClass(this._itemClass())||i.get(0)===e.currentTarget)return i;for(;!i.hasClass(this._itemClass());)if((i=i.parent()).hasClass("dx-submenu"))return null;return i}_hoverEndHandler(){clearTimeout(this._showSubmenusTimeout)}_hasSubmenu(e){return e&&e.internalFields.childrenKeys.length}_renderContentImpl(){this._renderItems(this._dataAdapter.getRootNodes())}_renderItems(e,i){if(e.length){this.hasIcons=!1;var r=this._renderContainer(this.$element(),i),o=-1,a=-1;we(e,(s,l)=>{var u=!1!==l.visible;u&&o<0&&(o=s),o<s&&(l.beginGroup||s===a)&&(a=u?s:s+1),s===a&&o<s&&this._renderSeparator(r),this._renderItem(s,l,r)}),this.hasIcons||r.addClass(S8t)}}_renderContainer(e){var i=U("<ul>");return this.setAria("role","none",i),i.appendTo(e).addClass(O8t)}_createDOMElement(e){var i=U("<li>");return this.setAria("role","none",i),i.appendTo(e).addClass(PTe)}_renderItem(e,i,r,o){var a=this.option("items"),s=o||this._createDOMElement(r);a[e+1]&&a[e+1].beginGroup&&s.addClass(k8t);var l=super._renderItem(e,i.internalFields.item,s);i.internalFields.item===this.option("selectedItem")&&l.addClass(Gq),l.attr("tabIndex",-1),this._hasSubmenu(i)&&this.setAria("haspopup","true",l)}_renderItemFrame(e,i,r){var o=r.children(".".concat(Wh));return o.length?o:super._renderItemFrame.apply(this,arguments)}_refreshItem(e,i){var r=this._dataAdapter.getNodeByItem(i),o=e.data(this._itemIndexKey()),a=e.closest("ul"),s=e.closest("li");this._renderItem(o,r,a,s)}_addContentClasses(e,i){var o=!!e.icon,a=!!e.items&&!!e.items.length;i.toggleClass(M8t,!!e.text&&!!e.text.length),i.toggleClass(A8t,o),this.hasIcons||(this.hasIcons=o),i.toggleClass(F8t,a)}_getItemContent(e){var i=super._getItemContent(e);return i.length||(i=e.children(".".concat(E8t))),i}_postprocessRenderItem(e){var i=U(e.itemElement),r=this._dataAdapter.getSelectedNodesKeys();r.length&&this._selectedGetter(e.itemData)&&this._isItemSelectable(e.itemData)&&this._dataAdapter.getNodeByItem(e.itemData).internalFields.key===r[0]?(i.addClass(this._selectedItemClass()),this._setAriaSelected(i,"true")):this._setAriaSelected(i,"false")}_isItemSelectable(e){return!1!==e.selectable}_renderSeparator(e){U("<li>").appendTo(e).addClass(I8t)}_itemClickHandler(e){if(!e._skipHandling){var i=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(e,"onItemClick",{},{afterExecute:i.bind(this)}),e._skipHandling=!0}}_updateSubmenuVisibilityOnClick(e){this._updateSelectedItemOnClick(e),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(e.args[0].itemElement)}_updateSelectedItemOnClick(e){var i=e.args?e.args[0]:e;if(this._isItemSelectionAllowed(i.itemData)){var r=this._dataAdapter.getSelectedNodesKeys(),o=r.length&&this._dataAdapter.getNodeByKey(r[0]);o&&this._toggleItemSelection(o,!1),o&&o.internalFields.item===i.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionWithoutOptionChange("selectedItem",null)):this.selectItem(i.itemData)}}_isItemSelectionAllowed(e){var i=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&i&&this._isItemSelectable(e)&&!this._itemsGetter(e)}_isContainerEmpty(){return this._itemContainer().is(":empty")}_syncSelectionOptions(){return fde()}_optionChanged(e){switch(e.name){case"showSubmenuMode":break;case"selectedItem":var i=this._dataAdapter.getNodeByItem(e.value),r=this._dataAdapter.getSelectedNodesKeys()[0];if(i&&i.internalFields.key!==r){if(!1===i.selectable)break;r&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(r),!1),this._toggleItemSelection(i,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:super._optionChanged(e)}}_toggleItemSelection(e,i){var r=this._getElementByItem(e.internalFields.item);r&&U(r).toggleClass(Gq),this._dataAdapter.toggleSelection(e.internalFields.key,i)}_getElementByItem(e){var i;return we(this._itemElements(),(r,o)=>U(o).data(this._itemDataKey())!==e||(i=o,!1)),i}_updateSelectedItems(e,i){(e||i)&&this._fireSelectionChangeEvent(i,e)}_fireSelectionChangeEvent(e,i){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[e],removedItems:[i]})}selectItem(e){var i=e.nodeType?this._getItemData(e):e,r=this._dataAdapter.getSelectedNodesKeys()[0],o=this.option("selectedItem"),a=this._dataAdapter.getNodeByItem(i);a.internalFields.key!==r&&(r&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(r),!1),this._toggleItemSelection(a,!0),this._updateSelectedItems(o,i),this._setOptionWithoutOptionChange("selectedItem",i))}unselectItem(e){var i=e.nodeType?this._getItemData(e):e,r=this._dataAdapter.getNodeByItem(i),o=this.option("selectedItem");r.internalFields.selected&&(this._toggleItemSelection(r,!1),this._updateSelectedItems(o,null),this._setOptionWithoutOptionChange("selectedItem",null))}}return t.ItemClass=Lw,t})();var lk="dx-menu-item",ES=lk+"-expanded",GN="dx-menu-items-container",NTe=lk+"-wrapper",tc="dx-submenu",VTe="dx-state-hover",GTe=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],K8t=["up","down","first","last"],jTe="dxcontextmenu",$8t=Fn();class KTe extends LTe{getShowEvent(n){var e=null;return Jn(n)?null!==n.name&&(e=n.name||jTe):e=n,e}getShowDelay(n){return Jn(n)&&n.delay}_getDefaultOptions(){return se(super._getDefaultOptions(),{showEvent:jTe,hideOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>!Rn(),options:{animation:null}}])}_setDeprecatedOptions(){super._setDeprecatedOptions(),se(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.2",alias:"hideOnOutsideClick"}})}_initActions(){this._actions={},we(GTe,(n,e)=>{this._actions[e]=this._createActionByOption(e)||Be})}_setOptionsByReference(){super._setOptionsByReference(),se(this._optionsByReference,{animation:!0,selectedItem:!0})}_focusInHandler(){}_itemContainer(){return this._overlay?this._overlay.$content():U()}_eventBindingTarget(){return this._itemContainer()}itemsContainer(){return this._overlay?this._overlay.$content():void 0}_supportedKeys(){return se(super._supportedKeys(),{space:()=>{var n=U(this.option("focusedElement"));this.hide(),n.length&&this._isSelectionEnabled()&&this.selectItem(n[0])},escape:this.hide})}_getActiveItem(){var n=this._getAvailableItems(),e=n.filter(".".concat("dx-state-focused")),i=n.filter(".".concat(VTe));return i.closest(".".concat(GN)).find(".".concat(lk)).index(e)>=0?e:i.length?i:super._getActiveItem()}_moveFocus(n){var s,e=this._getItemsByLocation(n),i=this._getActiveItem(!0),r=this.itemsContainer().find(".".concat(VTe)),a=!(!U(this.option("focusedElement")).length&&!r.length);switch(n){case"up":s=a?this._prevItem(e):i,this._setFocusedElement(s),i.is(e.first())&&this._actions.onLeftFirstItem(i);break;case"down":s=a?this._nextItem(e):i,this._setFocusedElement(s),i.is(e.last())&&this._actions.onLeftLastItem(i);break;case"right":s=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(e,n),this._setFocusedElement(s);break;case"left":s=this.option("rtlEnabled")?this._expandSubmenuHandler(e,n):this._hideSubmenuHandler(),this._setFocusedElement(s);break;case"first":s=e.first(),this._setFocusedElement(s);break;case"last":s=e.last(),this._setFocusedElement(s);break;default:return super._moveFocus(n)}}_setFocusedElement(n){n&&0!==n.length&&this.option("focusedElement",kn(n))}_getItemsByLocation(n){var i,e=this._getActiveItem(!0);return K8t.includes(n)&&(i=e.closest(".".concat(GN)).children().children()),this._getAvailableItems(i)}_getAriaTarget(){return this.$element()}_refreshActiveDescendant(){if(Z(this._overlay)){var n=this._overlay.$content();super._refreshActiveDescendant(n)}}_hideSubmenuHandler(){var n=this._getActiveItem(!0),e=n.parents(".".concat(ES)).first();return e.length?(this._hideSubmenusOnSameLevel(e),this._hideSubmenu(n.closest(".".concat(tc))),e):(this._actions.onCloseRootSubmenu(n),n)}_expandSubmenuHandler(n,e){var i=this._getActiveItem(!0),r=this._getItemData(i),o=this._dataAdapter.getNodeByItem(r),a=this._hasSubmenu(o),s=i.children(".".concat(tc));if(a&&!i.hasClass("dx-state-disabled"))return(!s.length||"hidden"===s.css("visibility"))&&this._showSubmenu(i),this._nextItem(this._getItemsByLocation(e));this._actions.onExpandLastSubmenu(i)}_clean(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),super._clean()}_initMarkup(){this.$element().addClass("dx-has-context-menu"),super._initMarkup()}_render(){super._render(),this._renderVisibility(this.option("visible")),this._addWidgetClass()}_renderContentImpl(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()}_attachKeyboardEvents(){!this._keyboardListenerId&&this._focusTarget().length&&super._attachKeyboardEvents()}_renderContextMenuOverlay(){if(!this._overlay){var n=this._getOverlayOptions();this._overlay=this._createComponent(U("<div>").appendTo(this._$element),Cd,n);var e=this._overlay.$content();e.addClass("dx-context-menu"),this._addCustomCssClass(e),this._addPlatformDependentClass(e),this._attachContextMenuEvent()}}preventShowingDefaultContextMenuAboveOverlay(){var n=this._itemContainer(),e=kt(uR,this.NAME);Se.off(n,e,".".concat(tc)),Se.on(n,e,".".concat(tc),(i=>{i.stopPropagation(),i.preventDefault(),Se.off(n,e,".".concat(tc))}).bind(this))}_itemContextMenuHandler(n){super._itemContextMenuHandler(n),n.stopPropagation()}_addPlatformDependentClass(n){pn.current().phone&&n.addClass("dx-menu-phone-overlay")}_detachShowContextMenuEvents(n){var e=this.getShowEvent(this.option("showEvent"));if(e){var i=kt(e,this.NAME);this._showContextMenuEventHandler?Se.off(It.getDocument(),i,n,this._showContextMenuEventHandler):Se.off(U(n),i)}}_attachShowContextMenuEvents(){var n=this._getTarget(),e=this.getShowEvent(this.option("showEvent"));if(e){var i=kt(e,this.NAME),r=this._createAction(a=>{var s=this.getShowDelay(this.option("showEvent"));s?setTimeout(()=>this._show(a.event),s):this._show(a.event)},{validatingTargetName:"target"}),o=a=>r({event:a,target:U(a.currentTarget)});r=this._createAction(r),xc(n)||n.nodeType||Da(n)?(this._showContextMenuEventHandler=void 0,Se.on(n,i,o)):(this._showContextMenuEventHandler=o,Se.on(It.getDocument(),i,n,this._showContextMenuEventHandler))}}_hoverEndHandler(n){super._hoverEndHandler(n),n.stopPropagation()}_renderDimensions(){}_renderContainer(n,e){var i=e||this._itemContainer();(n=U("<div>")).appendTo(i).addClass(tc).css("visibility",e?"hidden":"visible"),n.parent().hasClass("dx-overlay-content")||this._addCustomCssClass(n);var r=super._renderContainer(n);return e?r:this.option("width")?r.css("minWidth",this.option("width")):this.option("height")?r.css("minHeight",this.option("height")):r}_renderSubmenuItems(n,e){this._renderItems(this._getChildNodes(n),e),this._actions.onSubmenuCreated({itemElement:kn(e),itemData:n.internalFields.item,submenuElement:kn(e.children(".".concat(tc)))})}_getOverlayOptions(){var n=this.option("position");return{focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,hideOnOutsideClick:i=>this._hideOnOutsideClickHandler(i),propagateOutsideClick:!0,hideOnParentScroll:!0,deferRendering:!1,position:{at:n.at,my:n.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this),visualContainer:$8t}}_overlayShownActionHandler(n){this._actions.onShown(n)}_overlayHidingActionHandler(n){this._actions.onHiding(n),n.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))}_overlayHiddenActionHandler(n){this._actions.onHidden(n)}_shouldHideOnOutsideClick(n){var{closeOnOutsideClick:e,hideOnOutsideClick:i}=this.option();return Yt(i)?i(n):Yt(e)?e(n):i||e}_hideOnOutsideClickHandler(n){if(!this._shouldHideOnOutsideClick(n))return!1;if(It.isDocument(n.target))return!0;var e=this._getActiveItemsContainer(n.target),i=this._getItemsContainers(),r=this._searchActiveItem(n.target),o=this.$element().parents(".".concat(lk)),a=r[0]===o[0]&&r.length&&o.length;return!(this._isIncludeOverlay(e,i)&&r.length)&&!a||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(r),!1)}_getActiveItemsContainer(n){return U(n).closest(".".concat(GN))}_getItemsContainers(){return this._overlay.$content().find(".".concat(GN))}_searchActiveItem(n){return U(n).closest(".".concat(lk)).eq(0)}_isIncludeOverlay(n,e){var i=!1;return we(e,(r,o)=>{n.is(o)&&!i&&(i=!0)}),i}_hideAllShownChildSubmenus(n){var e=n.find(".".concat(tc)),i=se([],this._shownSubmenus);e.length>0&&we(i,(r,o)=>{var a=this._searchActiveItem(o.context).parent();a.parent().is(n.parent().parent())&&!a.is(n.parent())&&this._hideSubmenu(o)})}_showSubmenu(n){var e=this._dataAdapter.getNodeByItem(this._getItemData(n));if(this._hideSubmenusOnSameLevel(n),this._hasSubmenu(e)){var i=n.children(".".concat(tc)),r=i.length;super._showSubmenu(n),r||this._renderSubmenuItems(e,n),this._isSubmenuVisible(i)||this._drawSubmenu(n)}}_hideSubmenusOnSameLevel(n){var e=n.parent(".".concat(NTe)).siblings().find(".".concat(ES));e.length&&(e.removeClass(ES),this._hideSubmenu(e.find(".".concat(tc))))}_hideSubmenuGroup(n){this._isSubmenuVisible(n)&&this._hideSubmenuCore(n)}_isSubmenuVisible(n){return"visible"===n.css("visibility")}_drawSubmenu(n){var e=this.option("animation")?this.option("animation").show:{},i=n.children(".".concat(tc)),r=this._getSubmenuPosition(n);this._overlay&&this._overlay.option("visible")&&(Z(this._shownSubmenus)||(this._shownSubmenus=[]),this._shownSubmenus.includes(i)||this._shownSubmenus.push(i),e&&Hi.stop(i),rs.setup(i,r),e&&(wi(e.to)&&(e.to.position=r),this._animate(i,e)),i.css("visibility","visible"))}_animate(n,e){Hi.animate(n,e)}_getSubmenuPosition(n){var e=this.option("submenuDirection").toLowerCase(),r={collision:"flip",of:n.parent(".".concat(NTe)),offset:{h:0,v:-1}};switch(e){case"left":r.at="left top",r.my="right top";break;case"right":r.at="right top",r.my="left top";break;default:this.option("rtlEnabled")?(r.at="left top",r.my="right top"):(r.at="right top",r.my="left top")}return r}_updateSubmenuVisibilityOnClick(n){if(n.args.length){var e=n.args[0].itemData,i=this._dataAdapter.getNodeByItem(e);if(i){var r=U(n.args[0].itemElement),o=r.find(".".concat(tc));if(this._hasSubmenu(i)&&!o.length&&(this._renderSubmenuItems(i,r),o=r.find(".".concat(tc))),(r.context!==o.context||"visible"!==o.css("visibility"))&&(this._updateSelectedItemOnClick(n),e&&!e.disabled&&(!e||!1!==e.closeMenuOnClick)))if(0===o.length){var l=U(r.parents(".".concat(tc))[0]);this._hideSubmenu(l),!n.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(o)&&this._hideSubmenu(o),this._showSubmenu(r)}}}_hideSubmenu(n){var e=se([],this._shownSubmenus);we(e,(i,r)=>{(n.is(r)||Cg(n[0],r[0]))&&(r.parent().removeClass(ES),this._hideSubmenuCore(r))})}_hideSubmenuCore(n){var e=this._shownSubmenus.indexOf(n),i=this.option("animation")?this.option("animation").hide:null;e>=0&&this._shownSubmenus.splice(e,1),this._stopAnimate(n),i&&this._animate(n,i),n.css("visibility","hidden")}_stopAnimate(n){Hi.stop(n,!0)}_hideAllShownSubmenus(){var n=se([],this._shownSubmenus);this._overlay.$content().find(".".concat(ES)).removeClass(ES),we(n,(i,r)=>{this._hideSubmenu(r)})}_visibilityChanged(n){n&&this._renderContentImpl()}_optionChanged(n){if(GTe.includes(n.name))this._initActions();else switch(n.name){case"visible":this._renderVisibility(n.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":n.previousValue&&this._detachShowContextMenuEvents(n.previousValue),this._invalidate();break;case"closeOnOutsideClick":case"hideOnOutsideClick":break;default:super._optionChanged(n)}}_renderVisibility(n){return n?this._show():this._hide()}_toggleVisibility(){}_show(n){var e={jQEvent:n},i=(new et).reject().promise();if(this._actions.onShowing(e),e.cancel)return i;var o,r=this._positionContextMenu(n);return r&&(this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionWithoutOptionChange("visible",!0),this._overlay.option("position",r),i=this._overlay.show(),n&&n.stopPropagation(),this._setAriaAttributes(),(null==n||null===(o=n.originalEvent)||void 0===o?void 0:o.type)===Tm_name&&this.preventShowingDefaultContextMenuAboveOverlay()),i}_setAriaAttributes(){this._overlayContentId="dx-".concat(new Ni),this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())}_cleanAriaAttributes(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)}_getTarget(){return this.option("target")||this.option("position").of||U(It.getDocument())}_getContextMenuPosition(){return se({},this.option("position"),{of:this._getTarget()})}_positionContextMenu(n){var e=this._getContextMenuPosition(),i=this._isInitialOptionValue("position"),r=this._createActionByOption("onPositioning");n&&n.preventDefault&&i&&(e.of=n);var o={position:e,event:n};return r(o),o.cancel?e=null:o.event&&(o.event.cancel=!0,n.preventDefault()),e}_refresh(){if(Rn())if(this._overlay){var n=this._overlay.option("position");super._refresh(),this._overlay&&this._overlay.option("position",n)}else super._refresh();else super._refresh()}_hide(){var n;return this._overlay&&(n=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),n||(new et).reject().promise()}toggle(n){var e=this.option("visible");return this._renderVisibility(n=void 0===n?!e:n)}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}}On("dxContextMenu",KTe);const $Te=KTe,Zm=$Te;let qTe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,$i,E_,uL,PR,bi,tn,mi],vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,$i,E_,uL,PR,tn]}),t})();var q8t=["year","month","day"],Y8t=["year","month","day","hour","minute"],jq=function(t){return"date"===t||"datetime"===t},Kq=function(t){var n,e=[],i=["year","month","day","hour","minute","second"],r=t.headerFilter&&t.headerFilter.groupInterval,o="quarter"===r?"month":r;return jq(t.dataType)&&null!==r?(e="datetime"===t.dataType?Y8t:q8t,(n=i.indexOf(o))>=0&&(e=i.slice(0,n)).push(r),e):Z(r)?Array.isArray(r)?r:[r]:void 0};const OS=function(){var t=function(r,o){var a=r.dataField||r.selector;return"search"===o&&(a=r.displayField||r.calculateDisplayValue||a),a},n=function(r,o){var a,s,l,f,u=t(this,o);if(Array.isArray(r)&&Z(r[0])&&Z(r[1]))return s=[u,">=",r[0]],l=[u,"<=",r[1]],jq(this.dataType)&&(f=r[1]).getHours()+f.getMinutes()+f.getSeconds()+f.getMilliseconds()<1&&(a=new Date(r[1].getTime()),"date"===this.dataType&&a.setDate(r[1].getDate()+1),l=[u,"<",a]),[s,"and",l]},e=function(r,o,a){var s,l,u,T,f=Sa(T=r)?[T.getFullYear(),T.getMonth(),T.getDate(),T.getHours(),T.getMinutes(),T.getSeconds()]:Dr((""+T).split("/"),function(R,L){return 1===L?Number(R)-1:Number(R)}),S=t(this,a);switch("headerFilter"===a?u=Kq(this)[f.length-1]:"datetime"===this.dataType&&(u="minute"),u){case"year":s=new Date(f[0],0,1),l=new Date(f[0]+1,0,1);break;case"month":s=new Date(f[0],f[1],1),l=new Date(f[0],f[1]+1,1);break;case"quarter":s=new Date(f[0],3*f[1],1),l=new Date(f[0],3*f[1]+3,1);break;case"hour":s=new Date(f[0],f[1],f[2],f[3]),l=new Date(f[0],f[1],f[2],f[3]+1);break;case"minute":s=new Date(f[0],f[1],f[2],f[3],f[4]),l=new Date(f[0],f[1],f[2],f[3],f[4]+1);break;case"second":s=new Date(f[0],f[1],f[2],f[3],f[4],f[5]),l=new Date(f[0],f[1],f[2],f[3],f[4],f[5]+1);break;default:s=new Date(f[0],f[1],f[2]),l=new Date(f[0],f[1],f[2]+1)}switch(o){case"<":return[S,"<",s];case"<=":return[S,"<",l];case">":return[S,">=",l];case">=":return[S,">=",s];case"<>":return[[S,"<",s],"or",[S,">=",l]];default:return[[S,">=",s],"and",[S,"<",l]]}},i=function(r,o,a){var s=t(this,a),l=Kq(this);if("headerFilter"===a&&l&&Z(r)){var u=(""+r).split("/"),f=Number(u[u.length-1]);return[[s,">=",f],"and",[s,"<",f+l[u.length-1]]]}return[s,o||"=",r]};return{defaultCalculateFilterExpression:function(r,o,a){var s=this,l=t(s,a),u=s.calculateDisplayValue&&"search"===a,f=u&&s.lookup&&s.lookup.dataType||s.dataType,S=null;if("headerFilter"!==a&&"filterBuilder"!==a||null!==r)if("string"!==f||s.lookup&&!u){if("between"===o)return n.apply(s,[r,a]);if(jq(f)&&Z(r))return e.apply(s,arguments);if("number"===f)return i.apply(s,arguments);S=[l,o||"=",r]}else S=[l,o||"contains",r];else S=[l,o||"=",null],"string"===f&&(S=[S,"="===o?"or":"and",[l,o||"=",""]]);return S},getGroupInterval:Kq}}();var ZTe="scrolling.mode",r3t={year:function(t){return t&&t.getFullYear()},month:function(t){return t&&t.getMonth()+1},day:function(t){return t&&t.getDate()},quarter:function(t){return t&&Math.floor(t.getMonth()/3)+1},hour:function(t){return t&&t.getHours()},minute:function(t){return t&&t.getMinutes()},second:function(t){return t&&t.getSeconds()}},o3t=function(){var t=arguments[1],n=this.calculateCellValue(t);if(!Z(n))return null;if(XTe(this.dataType)){var e=arguments[0];return r3t[e](n)}if("number"===this.dataType){var i=arguments[0];return Math.floor(Number(n)/i)*i}},a3t=function(t,n){return Yt(t)&&Yt(n)&&t.originalCallback&&n.originalCallback?t.originalCallback===n.originalCallback&&t.columnIndex===n.columnIndex:t===n};function XTe(t){return"date"===t||"datetime"===t}var JTe=function(t){t.get(0).textContent="\xa0"},$q=function(t){for(var n=cm(t=t||[]),e=0;e<t.length;e++)t&&t[e]&&void 0!==t[e].isExpanded&&(n[e].isExpanded=t[e].isExpanded),t&&t[e]&&void 0!==t[e].groupInterval&&(n[e].groupInterval=t[e].groupInterval);return n},QTe=function(t,n){var e=Es.format(t,n.format)||t&&t.toString()||"",i={value:t,valueText:n.getDisplayFormat?n.getDisplayFormat(e):e,target:n.target||"row",groupInterval:n.groupInterval};return n.customizeText?n.customizeText.call(n,i):i.valueText},eIe=function(t,n){var e=t.displayFormat||t.columnCaption&&n[t.summaryType+"OtherColumn"]||n[t.summaryType];return QTe(t.value,{format:t.valueFormat,getDisplayFormat:function(i){return e?Er(e,i,t.columnCaption):i},customizeText:t.customizeText})},tIe=function(t){var n=t.data&&t.data(),e=n&&n.dxComponents,i=e&&e[0];return i&&n[i]};const vn={renderNoDataText:function(t){if(t=t||this.element()){var n=this.addWidgetPrefix("nodata"),e=t.find("."+n).last(),i=this._dataController.isEmpty(),r=this._dataController.isLoading();e.length||(e=U("<span>").addClass(n).appendTo(t)),i&&!r?e.removeClass("dx-hidden").text(this._getNoDataText()):e.addClass("dx-hidden")}},renderLoadPanel:function(t,n,e){var i;this._loadPanel&&this._loadPanel.$element().remove(),(i=this.option("loadPanel"))&&("auto"===i.enabled?!e:i.enabled)?(i=se({shading:!1,message:i.text,container:n},i),this._loadPanel=this._createComponent(U("<div>").appendTo(n),ZT,i)):this._loadPanel=null},calculateLoadPanelPosition(t){var n=U(Fn());return Ln(t)>Ln(n)?{of:n,boundary:t,collision:"fit"}:{of:t}},getIndexByKey:function(t,n,e){var i=-1;if(void 0!==t&&Array.isArray(n)){e=arguments.length<=2?"key":e;for(var r=0;r<n.length;r++){var o=Z(e)?n[r][e]:n[r];if(Tr(t,o)){i=r;break}}}return i},combineFilters:function(t,n){var e=[];n=n||"and";for(var i=0;i<t.length;i++){var r;if(t[i]){if(1===(null===(r=t[i])||void 0===r?void 0:r.length)&&"!"===t[i][0]){if("and"===n)return["!"];if("or"===n)continue}e.length&&e.push(n),e.push(t[i])}}if(1===e.length&&(e=e[0]),e.length)return e},checkChanges:function(t,n){for(var e=0,i=0;i<n.length;i++)t[n[i]]&&e++;return t.length&&t.length===e},equalFilterParameters:function t(n,e){if(Array.isArray(n)&&Array.isArray(e)){if(n.length!==e.length)return!1;for(var i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}return Yt(n)&&n.columnIndex>=0&&Yt(e)&&e.columnIndex>=0?n.columnIndex===e.columnIndex&&ns(n.filterValue)===ns(e.filterValue):ns(n)==ns(e)},proxyMethod:function(t,n,e){t[n]||(t[n]=function(){var i=this._dataSource;return i?i[n].apply(i,arguments):e})},formatValue:QTe,getFormatOptionsByColumn:function(t,n){return{format:t.format,getDisplayFormat:t.getDisplayFormat,customizeText:t.customizeText,target:n,trueText:t.trueText,falseText:t.falseText}},getDisplayValue:function(t,n,e,i){return t.displayValueMap&&void 0!==t.displayValueMap[n]?t.displayValueMap[n]:t.calculateDisplayValue&&e&&"group"!==i?t.calculateDisplayValue(e):!t.lookup||"group"===i&&(t.calculateGroupValue||t.calculateDisplayValue)?n:t.lookup.calculateCellValue(n)},getGroupRowSummaryText:function(t,n){for(var e="(",i=0;i<t.length;i++)e+=(i>0?", ":"")+eIe(t[i],n);return e+")"},getSummaryText:eIe,normalizeSortingInfo:$q,getFormatByDataType:function(t){switch(t){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(t,n){var e=[],i=t.dataField||t.name,r=OS.getGroupInterval(t);return r?(we(r,function(o,a){e.push(n?{selector:i,groupInterval:a,isExpanded:o<r.length-1}:o3t.bind(t,a))}),e):(n?e=[{selector:i,isExpanded:!1}]:(e=function(o){var a=t.calculateCellValue(o);return(void 0===a||""===a)&&(a=null),a},t.sortingMethod&&(e=[{selector:e,compare:t.sortingMethod.bind(t)}])),e)},equalSortParameters(t,n,e){if(t=$q(t),n=$q(n),Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(!a3t(t[i].selector,n[i].selector)||t[i].desc!==n[i].desc||t[i].groupInterval!==n[i].groupInterval||!e&&Boolean(t[i].isExpanded)!==Boolean(n[i].isExpanded))return!1;return!0}return(!t||!t.length)==(!n||!n.length)},getPointsByColumns:function(t,n,e,i){for(var a,s,f,r=t.length,o=!1,l=i||0,u=[],S=0;S<=r;S++){S<r&&(s=(a=t.eq(S)).offset(),f="rtl"===a.css("direction"));var T={index:l,x:s?s.left+(!e&&f^S===r?Mi(a[0]).width:0):0,y:s?s.top+(e&&S===r?Mi(a[0]).height:0):0,columnIndex:l};if(!e&&S>0){var R=t.eq(S-1).offset();R.top<T.y&&(T.y=R.top)}n&&(o=n(T)),o||u.push(T),l++}return u},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(t,n){var e=U(t);if(!Z(n.value)||n.data&&n.data.isContinuation||n.row.isNewRow)JTe(e);else{var i=n.component.getView("rowsView");e.addClass("dx-datagrid-expand").addClass("dx-selection-disabled"),U("<div>").addClass(n.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(e),i.setAria("label",i.localize(n.value?"dxDataGrid-ariaCollapse":"dxDataGrid-ariaExpand"),e)}}}},setEmptyText:JTe,isDateType:XTe,getSelectionRange:function(t){try{if(t)return{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}catch{}return{}},setSelectionRange:function(t,n){try{t&&t.setSelectionRange&&t.setSelectionRange(n.selectionStart,n.selectionEnd)}catch{}},focusAndSelectElement:function(t,n){var e=n.is(":focus");Se.trigger(n,"focus");var i=t.option("editing.selectTextOnEditStart"),r=n.get(0);if(!e&&i&&n.is(".dx-texteditor-input")&&!n.is("[readonly]")){var o=tIe(n.closest(".dx-texteditor"));Qt(o&&o._loadItemDeferred).done(function(){r.select()})}},getWidgetInstance:tIe,getLastResizableColumnIndex:function(t,n){var i,e=t.some(s=>s&&!s.command&&!s.fixed&&!1!==s.allowResizing);for(i=t.length-1;t[i];i--){var r=t[i];if(!(r.command||r.fixed||"adaptiveHidden"===(n&&n[i])||e&&!1===r.allowResizing))break}return i},isElementInCurrentGrid:function(t,n){return!(!n||!n.length)&&n.closest("."+t.getWidgetContainerClass()).parent().is(t.component.$element())},isVirtualRowRendering:function(t){var n=t.option("scrolling.rowRenderingMode"),e="virtual"===t.option(ZTe),i="infinite"===t.option(ZTe);return!(!1!==t.option("scrolling.legacyMode")||!e&&!i)||"virtual"===n},getPixelRatio:function(t){return t.devicePixelRatio||1},getContentHeightLimit(t){return t.mozilla?8e6:15e6/this.getPixelRatio(Fn())},normalizeLookupDataSource(t){var n;return t.items?n=t.items:Yt(n=t.dataSource)&&!Tu.isWrapped(n)&&(n=n({})),t_(n)},getWrappedLookupDataSource(t,n,e){if(!n)return[];var i=this.normalizeLookupDataSource(t.lookup);if(t.calculateCellValue!==t.defaultCalculateCellValue)return i;var a,r=n.remoteOperations().groupPaging,o=t.displayField&&Pn(t.displayField),s=mt({},i,{__dataGridSourceFilter:e,load:l=>{var f,S,T,u=new et;return(f=l,S=function l3t(t){return Array.isArray(t)||(t=[t]),t.map((n,e)=>Pn(n)?{selector:n,isExpanded:e<t.length-1}:n)}(o?[t.dataField,t.displayField]:t.dataField),T=new et,!r&&a?T.resolve(a):n.load({filter:e,group:S,take:r?f.take:void 0,skip:r?f.skip:void 0}).done(R=>{a=R,T.resolve(R)}).fail(T.fail),T).done(f=>{var S;if(0===f.length&&u.resolve([]),o){var T=f.map(L=>{var z;return{[t.lookup.valueExpr]:L.key,[t.lookup.displayExpr]:null!==(z=t.displayValueMap[L.key])&&void 0!==z?z:L.items[0].key}});S=new Fl(mt({},i,l,{store:new cs({data:T,key:t.lookup.valueExpr})}))}else{var R=this.combineFilters(f.flatMap(L=>L.key).map(L=>[t.lookup.valueExpr,L]),"or");S=new Fl(mt({},i,l,{filter:this.combineFilters([R,l.filter],"and")}))}r||S.on("customizeStoreLoadOptions",L=>{L.storeLoadOptions.take=l.take,L.storeLoadOptions.skip=l.skip}),S.load().done(u.resolve).fail(u.fail)}).fail(u.fail),u},key:t.lookup.valueExpr,byKey(l){var u=et();return this.load({filter:[t.lookup.valueExpr,"=",l]}).done(f=>{u.resolve(f[0])}),u.promise()}});return s}};var nIe=ji.inherit({_endUpdateCore:function(){},ctor:function(t){var n=this;n._updateLockCount=0,n.component=t,n._actions={},n._actionConfigs={},we(this.callbackNames()||[],function(e,i){var r=n.callbackFlags(i)||{};r.unique=!0,r.syncStrategy=!0,n[this]=Zi(r)})},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(t){var n=this.component,e=n._optionCache;return 1===arguments.length&&e?(t in e||(e[t]=n.option(t)),e[t]):n.option.apply(n,arguments)},_silentOption:function(t,n){var e=this.component,i=e._optionCache;return i&&(i[t]=n),e._setOptionWithoutOptionChange(t,n)},localize:function(t){var n=this.component._optionCache;return n?(t in n||(n[t]=ye.format(t)),n[t]):ye.format(t)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(t){t.name in this._actions&&(this.createAction(t.name,this._actionConfigs[t.name]),t.handled=!0)},getAction:function(t){return this._actions[t]},setAria:function(t,n,e){var i=e.get(0),r="role"!==t&&"id"!==t?"aria-":"";i.setAttribute?i.setAttribute(r+t,n):e.attr(r+t,n)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(t){return this.component._controllers[t]},createAction:function(t,n){if(Yt(t)){var e=this.component._createAction(t.bind(this),n);return function(i){e({event:i})}}this._actions[t]=this.component._createActionByOption(t,n),this._actionConfigs[t]=n},executeAction:function(t,n){var e=this._actions[t];return e&&e(n)},dispose:function(){var t=this;we(t.callbackNames()||[],function(){t[this].empty()})},addWidgetPrefix:function(t){return"dx-"+this.component.NAME.slice(2).toLowerCase()+(t?"-"+t:"")},getWidgetContainerClass:function(){return this.addWidgetPrefix("dxDataGrid"===this.component.NAME?null:"container")},elementIsInsideGrid:function(t){return t.closest("."+this.getWidgetContainerClass()).parent().is(this.component.$element())}}),jN=nIe,d3t=jN.inherit({getView:function(t){return this.component._views[t]},getViews:function(){return this.component._views}}),iIe=nIe.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(t,n){this._requireRender=!0,this.component._requireResize=Rn()&&(this.component._requireResize||t),this._requireReady=this._requireReady||n},_renderCore:function(){},_resizeCore:function(){},_parentElement:function(){return this._$parent},ctor:function(t){this.callBase(t),this.renderCompleted=Zi(),this.resizeCompleted=Zi()},element:function(){return this._$element},getElementHeight:function(){var t=this.element();if(!t)return 0;var n=parseFloat(t.css("marginTop"))||0,e=parseFloat(t.css("marginBottom"))||0;return t.get(0).offsetHeight+n+e},isVisible:function(){return!0},getTemplate:function(t){return this.component._getTemplate(t)},render:function(t,n){var e=this._$element,i=this.isVisible();if((e||t)&&(this._requireReady=!1,e||(e=this._$element=U("<div>").appendTo(t),this._$parent=t),e.toggleClass("dx-hidden",!i),i)){this.component._optionCache={};var r=this._renderCore(n);this.component._optionCache=void 0,r?r.done(()=>{this.renderCompleted.fire(n)}):this.renderCompleted.fire(n)}},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(t){this.element().get(0).focus({preventScroll:t})}});const Bo={modules:[],View:iIe,ViewController:d3t,Controller:jN,registerModule:function(t,n){for(var e=this.modules,i=0;i<e.length;i++)if(e[i].name===t)return;n.name=t,e.push(n),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(t){this.modulesOrder=t},unregisterModule:function(t){this.modules=Vs(this.modules,function(n){return n.name!==t}),delete this.controllerTypes,delete this.viewTypes},processModules:function(t,n){var e=n.modules,i=n.modulesOrder,r=n.controllerTypes||{},o=n.viewTypes||{};n.controllerTypes||(i&&e.sort(function(s,l){var u=i.indexOf(s.name),f=i.indexOf(l.name);return u<0&&(u=1e6),f<0&&(f=1e6),u-f}),we(e,function(){var s=this.controllers,l=this.name,u=this.views;s&&we(s,function(f,S){if(r[f])throw Di.Error("E1001",l,f);if(!(S&&S.subclassOf&&S.subclassOf(jN)))throw S.subclassOf(jN),Di.Error("E1002",l,f);r[f]=S}),u&&we(u,function(f,S){if(o[f])throw Di.Error("E1003",l,f);if(!(S&&S.subclassOf&&S.subclassOf(iIe)))throw Di.Error("E1004",l,f);o[f]=S})}),we(e,function(){var s=this.extenders;s&&(s.controllers&&we(s.controllers,function(l,u){r[l]&&(r[l]=r[l].inherit(u))}),s.views&&we(s.views,function(l,u){o[l]&&(o[l]=o[l].inherit(u))}))}),n.controllerTypes=r,n.viewTypes=o);var a=function(s){var l={};return we(s,function(u,f){var T,R,L,z,S=new f(t);S.name=u,T=t,R=u,(z=(L=S).publicMethods())&&we(z,function(j,Y){if(!L[Y])throw Di.Error("E1006",R,Y);if(T[Y])throw Di.Error("E1005",Y);T[Y]=function(){return L[Y].apply(L,arguments)}}),l[u]=S}),l};t._controllers=a(r),t._views=a(o)},callModuleItemsMethod:function(t,n,e){e=e||[],t._controllers&&we(t._controllers,function(){this[n]&&this[n].apply(this,e)}),t._views&&we(t._views,function(){this[n]&&this[n].apply(this,e)})}},oi=mt({},Bo,vn,{modules:[]});var tb="dxdblclick",oIe=kt(Vi,"dxDblClick"),g3t=ji.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add:function(){this._handlerCount<=0&&Se.on(It.getDocument(),oIe,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(t){var n=t.timeStamp||Date.now(),e=n-this._lastClickTimeStamp;!(e<0)&&e<300?(gp({type:tb,target:H0t(this._firstClickTarget,t.target),originalEvent:t}),this._forgetLastClick()):(this._firstClickTarget=t.target,this._lastClickTimeStamp=n)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),Se.off(It.getDocument(),oIe))}});cp(tb,new g3t);var sIe="dx-column-indicators";const lIe={_applyColumnState:function(t){var n,e=this.option("rtlEnabled"),i=this._getColumnAlignment(t.column.alignment,e),r=se(!0,{columnAlignment:i},t),o=r.rootElement.hasClass("dx-group-panel-item"),a=this._createIndicatorContainer(r,o),s=U("<span>").addClass(this._getIndicatorClassName(t.name)),u=(null===(n=this.component)||void 0===n?void 0:n.getController("columns"))?.getHeaderContentAlignment(i)||i;return r.container=a,r.indicator=s,this._renderIndicator(r),a[!o&&t.showColumnLines||"left"!==u?"prependTo":"appendTo"](t.rootElement),s},_getIndicatorClassName:Be,_getColumnAlignment:function(t,n){return n=n||this.option("rtlEnabled"),t&&"center"!==t?t:Eg(n)},_createIndicatorContainer:function(t,n){var e=this._getIndicatorContainer(t.rootElement),i="left"===t.columnAlignment?"right":"left";return e.length||(e=U("<div>").addClass(sIe)),this.setAria("role","presentation",e),e.css("float",t.showColumnLines&&!n?i:null)},_getIndicatorContainer:function(t){return t&&t.find("."+sIe)},_getIndicatorElements:function(t){var n=this._getIndicatorContainer(t);return n&&n.children()},_renderIndicator:function(t){var n=t.container,e=t.indicator;n&&e&&n.append(e)},_updateIndicators:function(t){var i,n=this.getColumns(),e=this.getColumnElements();if(e&&n.length===e.length)for(var r=0;r<n.length;r++){i=e.eq(r),this._updateIndicator(i,n[r],t);var o=i.parent().data("options");o&&o.cells&&(o.cells[i.index()].column=n[r])}},_updateIndicator:function(t,n,e){if(!n.command)return this._applyColumnState({name:e,rootElement:t,column:n,showColumnLines:this.option("showColumnLines")})}};var uIe="scroll-container",uk="dx-row",qq="dx-group-row",Yq="dx-master-detail-row",Zq="dxCellHintVisible",O3t={render:function(t){t.container.append(t.content)}},KN=function(t){return"auto"===t?"":di(t)?t+"px":t},cIe=function(t,n,e){t.style.width=t.style.maxWidth="auto"===n.width?"":e},k3t={_createScrollableOptions:function(){var t=this.option("scrolling"),n=this.option("scrolling.useNative"),e=se({},t,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===n&&(n=!0),"auto"===n?(delete e.useNative,delete e.useSimulatedScrollbar):(e.useNative=!!n,e.useSimulatedScrollbar=!n),e},_updateCell:function(t,n){n.rowType&&this._cellPrepared(t,n)},_createCell:function(t){var n=t.column,e=n.alignment||Eg(this.option("rtlEnabled")),i=It.createElement("td");i.style.textAlign=e;var r=U(i);return"data"===t.rowType&&n.headerId&&!n.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",n.headerId,r),n.cssClass&&r.addClass(n.cssClass),"expand"===n.command&&(r.addClass(n.cssClass),r.addClass(this.addWidgetPrefix("group-space"))),n.colspan>1?r.attr("colSpan",n.colspan):!n.isBand&&"auto"!==n.visibleWidth&&this.option("columnAutoWidth")&&((n.width||n.minWidth)&&(i.style.minWidth=KN(n.minWidth||n.width)),n.width&&cIe(i,n,KN(n.width))),r},_createRow:function(t,n){var e=U("<".concat(n=n||"tr",">")).addClass(uk);return this.setAria("role","row",e),e},_isAltRow:function(t){return t&&t.dataIndex%2==1},_createTable:function(t,n){var e=this,i=U("<table>").addClass(e.addWidgetPrefix("table")).addClass(e.addWidgetPrefix("table-fixed"));if(t&&!n?(i.append(e._createColGroup(t)),Ro.safari&&i.append(U("<thead>").append("<tr>")),e.setAria("role","presentation",i)):e.setAria("hidden",!0,i),this.setAria("role","presentation",U("<tbody>").appendTo(i)),n)return i;Ro.mozilla&&Se.on(i,"mousedown","td",function(o){o.ctrlKey&&o.preventDefault()}),e.option("cellHintEnabled")&&Se.on(i,"mousemove",".dx-row > td",this.createAction(function(o){var a=o.event,s=U(a.target),l=U(a.currentTarget),u=l.parent(),f=e._columnsController.getVisibleColumns(),S=u.data("options"),T=l.index(),R=S&&S.cells&&S.cells[T],L=R?R.column:f[T],z=u.hasClass("dx-header-row"),j=u.hasClass("dx-data-row"),Y=u.hasClass(Yq),ie=u.hasClass(qq),te=u.hasClass(e.addWidgetPrefix("filter-row"));Y||te||j&&R&&(S.isEditing||R.isEditing||L?.showEditorAlways)||j&&(!L||L.cellTemplate)||z&&(!L||L.headerCellTemplate)||ie&&(!L||L.groupIndex&&L.groupCellTemplate)||(s.data(Zq)&&(s.removeAttr("title"),s.data(Zq,!1)),s[0].scrollWidth-s[0].clientWidth>0&&!Z(s.attr("title"))&&(s.attr("title",s.text()),s.data(Zq,!0)))}));var r=function(o){var a=U(o.currentTarget),s=U(o.target).closest(".dx-field-item-content"),l=a.parent(),u=l.data("options"),f=u&&u.cells&&u.cells[a.index()];if(a.closest("table").is(o.delegateTarget)){var S=se({},f,{cellElement:kn(a),event:o,eventType:o.type});if(S.rowIndex=e.getRowIndex(l),s.length){var T=s.data("dx-form-item");T.column&&(S.column=T.column,S.columnIndex=e._columnsController.getVisibleIndex(S.column.index))}return S}};return Se.on(i,"mouseover",".dx-row > td",function(o){var a=r(o);a&&e.executeAction("onCellHoverChanged",a)}),Se.on(i,"mouseout",".dx-row > td",function(o){var a=r(o);a&&e.executeAction("onCellHoverChanged",a)}),Se.on(i,Vi,".dx-row > td",function(o){var a=r(o);a&&e.executeAction("onCellClick",a)}),Se.on(i,tb,".dx-row > td",function(o){var a=r(o);a&&e.executeAction("onCellDblClick",a)}),function(t,n){var e,i,r;function o(a){return setTimeout(function(){e=i=null},a)}Se.on(n,"touchstart touchend",".dx-row",function(a){clearTimeout(r),"touchstart"===a.type?(e=a.target,i=a.currentTarget,r=o(1e3)):r=o()}),Se.on(n,[Vi,tb,qn.down].join(" "),".dx-row",t.createAction(function(a){var s=a.event;e&&(s.target=e,s.currentTarget=i),U(s.target).closest("a").length||(a.rowIndex=t.getRowIndex(s.currentTarget),a.rowIndex>=0&&(a.rowElement=kn(U(s.currentTarget)),a.columns=t.getColumns(),s.type===qn.down?t._rowPointerDown(a):s.type===Vi?t._rowClick(a):t._rowDblClick(a)))}))}(e,i),i},_rowPointerDown:Be,_rowClick:Be,_rowDblClick:Be,_createColGroup:function(t){for(var n=U("<colgroup>"),e=0;e<t.length;e++)for(var i=t[e].colspan||1,r=0;r<i;r++)n.append(this._createCol(t[e]));return n},_createCol:function(t){var n=t.visibleWidth||t.width;"adaptiveHidden"===n&&(n="0.0001px");var e=U("<col>");return XP(e,n),e},renderDelayedTemplates:function(t){var n=this._delayedTemplates,e=n.filter(r=>!r.async),i=n.filter(r=>r.async);this._delayedTemplates=[],this._renderDelayedTemplatesCore(e,!1,t),this._renderDelayedTemplatesCoreAsync(i)},_renderDelayedTemplatesCoreAsync:function(t){var n=this;t.length&&Fn().setTimeout(function(){n._renderDelayedTemplatesCore(t,!0)})},_renderDelayedTemplatesCore:function(t,n,e){for(var i=new Date;t.length;){var r=t.shift(),o=r.options,a=It.getRootNode(U(o.container).get(0)),s=this._needWaitAsyncTemplates();if((!n||U(o.container).closest(a).length||s)&&(e&&(o.change=e),r.template.render(o)),n&&new Date-i>30){this._renderDelayedTemplatesCoreAsync(t);break}}!t.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()},_processTemplate:function(t){var n;if(t&&t.render&&!xc(t))n={allowRenderToDetachedContainer:t.allowRenderToDetachedContainer,render:function(i){t.render(i.container,i.model,i.change),i.deferred&&i.deferred.resolve()}};else if(Yt(t))n={render:function(i){var r=t(kn(i.container),i.model,i.change);r&&(r.nodeType||xc(r))&&i.container.append(r),i.deferred&&i.deferred.resolve()}};else{var e=Pn(t)?t:U(t).attr("id");e?(this._templatesCache[e]||(this._templatesCache[e]=this.getTemplate(t)),n=this._templatesCache[e]):n=this.getTemplate(t)}return n},renderTemplate:function(t,n,e,i,r){var o=this._processTemplate(n,e),a=e.column,s="data"===e.rowType,l=new et,u={container:t,model:e,deferred:l,onRendered:()=>{l.resolve()}};if(o){e.component=this.component;var f=a&&(a.renderAsync&&s||this.option("renderAsync")&&(!1!==a.renderAsync&&(a.command||a.showEditorAlways)&&s||"filter"===e.rowType));!o.allowRenderToDetachedContainer&&!i||f?this._delayedTemplates.push({template:o,options:u,async:f}):o.render(u),r&&(r.templateDeferreds=r.templateDeferreds||[],r.templateDeferreds.push(l))}else l.reject();return l.promise()},_getBodies:function(t){return U(t).children("tbody").not(".dx-header").not(".dx-footer")},_needWrapRow:function(t){var n;return!!this.option().rowTemplate&&!(null===(n=this._getBodies(t))||void 0===n||!n.filter("."+uk).length)},_wrapRowIfNeed:function(t,n,e){if(this._needWrapRow(e?t||this._tableElement:this._tableElement||t)){var o=U("<tbody>").addClass(n.attr("class"));return this.setAria("role","presentation",o),o.append(n)}return n},_appendRow:function(t,n,e){(e=e||O3t).render({content:n,container:t})},_resizeCore:function(){var t=this._scrollLeft;t>=0&&(this._scrollLeft=0,this.scrollTo({left:t}))},_renderCore:function(t){var n=this.element().parent();(!n||n.parent().length)&&this.renderDelayedTemplates(t)},_renderTable:function(t){(t=t||{}).columns=this._columnsController.getVisibleColumns();var n=t.change&&t.change.changeType,e=this._createTable(t.columns,"append"===n||"prepend"===n||"update"===n);return this._renderRows(e,t),e},_renderRows:function(t,n){for(var e=this._getRows(n.change),i=n.change&&n.change.columnIndices||[],r=n.change&&n.change.changeTypes||[],o=0;o<e.length;o++)this._renderRow(t,se({row:e[o],columnIndices:i[o],changeType:r[o]},n))},_renderRow:function(t,n){n.columnIndices||(n.row.cells=[]);var e=this._createRow(n.row),i=this._wrapRowIfNeed(t,e);"remove"!==n.changeType&&this._renderCells(e,n),this._appendRow(t,i);var r=se({columns:n.columns},n.row);this._addWatchMethod(r,n.row),this._rowPrepared(i,r,n.row)},_needRenderCell:function(t,n){return!n||n.indexOf(t)>=0},_renderCells:function(t,n){for(var e=0,i=n.row,r=n.columns,o=0;o<r.length;o++)this._needRenderCell(o,n.columnIndices)&&this._renderCell(t,se({column:r[o],columnIndex:e,value:i.values&&i.values[e],oldValue:i.oldValues&&i.oldValues[e]},n)),r[o].colspan>1?e+=r[o].colspan:e++},_updateCells:function(t,n,e){var i=t.children(),r=n.children(),o=this.option("highlightChanges"),a=this.addWidgetPrefix("cell-updated-animation");e.forEach(function(s,l){var u=i.eq(s),f=r.eq(l);u.replaceWith(f),o&&!f.hasClass("dx-command-expand")&&f.addClass(a)}),function(t,n){if(t&&n){var r,e=t.attributes,i=n.attributes;for(r=0;r<e.length;r++){var o=e[r].nodeName;n.hasAttribute(o)||t.removeAttribute(o)}for(r=0;r<i.length;r++)t.setAttribute(i[r].nodeName,i[r].nodeValue)}}(t.get(0),n.get(0))},_setCellAriaAttributes:function(t,n){if("freeSpace"!==n.rowType){this.setAria("role","gridcell",t);var e=this._columnsController.getColumnIndexOffset();this.setAria("colindex",n.columnIndex+e+1,t)}},_renderCell:function(t,n){var e=this._getCellOptions(n);if(n.columnIndices){if(n.row.cells){var i=n.row.cells.findIndex(o=>o.columnIndex===e.columnIndex);n.row.cells[i]=e}}else n.row.cells.push(e);var r=this._createCell(e);return this._setCellAriaAttributes(r,e),this._renderCellContent(r,e,n),t.get(0).appendChild(r.get(0)),r},_renderCellContent:function(t,n,e){var i=this._getCellTemplate(n);Qt(!i||this.renderTemplate(t,i,n,void 0,e.change)).done(()=>{this._updateCell(t,n)})},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(t){var n={column:t.column,columnIndex:t.columnIndex,rowType:t.row.rowType,isAltRow:this._isAltRow(t.row)};return this._addWatchMethod(n),n},_addWatchMethod:function(t,n){if(this.option("repaintChangesOnly")){var e=[];return(n=n||t).watch=n.watch||function(i,r,o){var a=i(n.data),s=function(l){l&&o&&o(l);var u=i(n.data);JSON.stringify(a)!==JSON.stringify(u)&&(l&&r(u),a=u)};return e.push(s),function(){var l=e.indexOf(s);l>=0&&e.splice(l,1)}},n.update=n.update||function(i,r){i&&(this.data=t.data=i.data,this.rowIndex=t.rowIndex=i.rowIndex,this.dataIndex=t.dataIndex=i.dataIndex,this.isExpanded=t.isExpanded=i.isExpanded,t.row&&!r&&(t.row=i)),e.forEach(function(o){o(i)})},n!==t&&(t.watch=n.watch.bind(n)),t}},_cellPrepared:function(t,n){n.cellElement=kn(U(t)),this.executeAction("onCellPrepared",n)},_rowPrepared:function(t,n){zo(t.get(0),"options",n),n.rowElement=kn(t),this.executeAction("onRowPrepared",n)},_columnOptionChanged:function(t){var n=t.optionNames;if(vn.checkChanges(n,["width","visibleWidth"])){var e=this._columnsController.getVisibleColumns(),i=Dr(e,function(r){var o=r.visibleWidth||r.width;return Z(o)?o:"auto"});this.setColumnWidths({widths:i,optionNames:n})}else this._requireReady||this.render()},getCellIndex:function(t){return t.length?t[0].cellIndex:-1},getTableElements:function(){return this._tableElement||U()},getTableElement:function(){return this._tableElement},setTableElement:function(t){this._tableElement=t},optionChanged:function(t){switch(this.callBase(t),t.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),t.handled=!0}},init:function(){var t=this;t._scrollLeft=-1,t._columnsController=t.getController("columns"),t._dataController=t.getController("data"),t._delayedTemplates=[],t._templatesCache={},t.createAction("onCellClick"),t.createAction("onRowClick"),t.createAction("onCellDblClick"),t.createAction("onRowDblClick"),t.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),t.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),t.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(n){t._afterRowPrepared(n)}}),t._columnsController.columnsChanged.add(t._columnOptionChanged.bind(t)),t._dataController&&t._dataController.changed.add(t._handleDataChanged.bind(t))},_afterRowPrepared:Be,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},_updateScrollLeftPosition:function(){var t=this._scrollLeft;t>=0&&(this._scrollLeft=0,this.scrollTo({left:t}))},scrollTo:function(t){var n=this.element(),e=n&&n.children("."+this.addWidgetPrefix(uIe)).not("."+this.addWidgetPrefix("content-fixed"));Z(t)&&Z(t.left)&&this._scrollLeft!==t.left&&(this._scrollLeft=t.left,e&&e.scrollLeft(t.left))},_wrapTableInScrollContainer:function(t){var n=U("<div>"),e=this.option("scrolling.useNative");return(!1===e||"auto"===e&&!xg)&&n.addClass(this.addWidgetPrefix("scrollable-simulated")),Se.on(n,"scroll",()=>{var i=n.scrollLeft();i!==this._scrollLeft&&this.scrollChanged.fire({left:i},this.name)}),n.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix(uIe)).append(t).appendTo(this.element()),this.setAria("role","presentation",n),n},_needWaitAsyncTemplates:function(){return this.option("templatesRenderAsynchronously")&&!1===this.option("renderAsync")},_waitAsyncTemplates:function(t,n){var e=this._needWaitAsyncTemplates();return Qt.apply(this,(n||e&&("update"!==t?.changeType||null!=t&&t.isLiveUpdate))&&null!=t&&t.templateDeferreds?t?.templateDeferreds:[])},_updateContent:function(t,n){return this._waitAsyncTemplates(n).done(()=>{this.setTableElement(t),this._wrapTableInScrollContainer(t)})},_findContentElement:Be,_getWidths:function(t){var e,n=[];return t&&we(t,function(i,r){if(e=r.offsetWidth,r.getBoundingClientRect){var o=Mi(r);o.width>e-1&&(e=o.width)}n.push(e)}),n},getColumnWidths:function(t){var e,i,n=[];if((this.option("forceApplyBindings")||Be)(),t=t||this.getTableElement()){e=t.children("tbody:not(.dx-header)").children();for(var r=0;r<e.length;r++){var o=e.eq(r),a="none"!==o.get(0).style.display&&!o.hasClass("dx-state-invisible");if(!o.is("."+qq)&&!o.is("."+Yq)&&!o.is(".dx-error-row")&&a){i=o.children("td");break}}n=this._getWidths(i)}return n},getVisibleColumnIndex:function(t,n){return t},setColumnWidths:function(t){var o,a,s,l,{widths:n,$tableElement:e,columns:i,fixed:r}=t,u=this.option("columnAutoWidth");if((e=e||this.getTableElement())&&e.length&&n){l=0,o=e.children("colgroup").children("col"),XP(o,"auto"),i=i||this.getColumns(null,e);for(var f=0;f<i.length;f++){if(u&&!r&&(a=i[f].width)&&!i[f].command){a=KN(a=i[f].visibleWidth||a),s=KN(i[f].minWidth||a);for(var S=S||e.children().children(".dx-row").not("."+Yq),T=0;T<S.length;T++){var R=S[T],L=void 0,z=this.getVisibleColumnIndex(f,T);(L=R.classList.contains(qq)?R.querySelector("td[aria-colindex='".concat(z+1,"']:not(.").concat("dx-group-cell",")")):R.cells[z])&&(cIe(L,i[f],a),L.style.minWidth=s)}}i[f].colspan?l+=i[f].colspan:("adaptiveHidden"===(a=n[l])&&(a="0.0001px"),"number"==typeof a&&(a=a.toFixed(3)+"px"),XP(o.eq(l),Z(a)?a:"auto"),l++)}}},getCellElements:function(t){return this._getCellElementsCore(t)},_getCellElementsCore:function(t){return this._getRowElements().eq(t).children()},_getCellElement:function(t,n){var e,i=this.getCellElements(t),r=this._getVisibleColumnIndex(i,t,n);if(i.length&&r>=0&&(e=i.eq(r)),e&&e.length)return e},_getRowElement:function(t){var n=this,e=U(),i=n.getTableElements();if(we(i,function(r,o){e=e.add(n._getRowElements(U(o)).eq(t))}),e.length)return e},getCellElement:function(t,n){return kn(this._getCellElement(t,n))},getRowElement:function(t){var n=this._getRowElement(t),e=[];if(n&&!kn(n).get)for(var i=0;i<n.length;i++)e.push(n[i]);else e=n;return e},_getVisibleColumnIndex:function(t,n,e){if(Pn(e)){var i=this._columnsController.columnOption(e,"index");return this._columnsController.getVisibleIndex(i)}return e},getColumnElements:function(){},getColumns:function(t){return this._columnsController.getVisibleColumns(t)},getCell:function(t,n,e){var r,i=n||this._getRowElements();if(i.length>0&&t.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&"virtual"!==this.option("scrolling.rowRenderingMode")&&(t.rowIndex=t.rowIndex<i.length?t.rowIndex:i.length-1),(r=e||this.getCellElements(t.rowIndex))&&r.length>0))return r.eq(r.length>t.columnIndex?t.columnIndex:r.length-1)},getRowsCount:function(){var t=this.getTableElement();return t&&1===t.length?t[0].rows.length:0},_getRowElementsCore:function(t){if(t=t||this.getTableElement()){var e=(this.option().rowTemplate||this.option("dataRowTemplate"))&&t.find("> tbody."+uk);return e&&e.length?e:t.find("> tbody > .dx-row, > ."+uk)}return U()},_getRowElements:function(t){return this._getRowElementsCore(t)},getRowIndex:function(t){return this._getRowElements().index(t)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(t){var n=this.element(),e=this.option("rtlEnabled");n&&n.css({paddingLeft:e?t:"",paddingRight:e?"":t})},isScrollbarVisible:function(t){var n=this.element(),e=this._tableElement;return!(!n||!e)&&(t?ii(e)-wn(n)>0:Zn(e)-Ln(n)>0)}},dk=Bo.View.inherit(lIe).inherit(k3t),Xq="dx-state-focused",hIe=".dx-datagrid-rowsview .dx-row",pIe="".concat(hIe," > td"),gIe=".dx-treelist-rowsview .dx-row",fIe="".concat(gIe," > td"),mIe={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:["".concat(".dx-row-focused"),"".concat(hIe,"[tabindex]"),"".concat(pIe,"[tabindex]"),"".concat(pIe),"".concat(gIe,"[tabindex]"),"".concat(fIe,"[tabindex]"),"".concat(fIe)],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},Jq=!1,$N=!1,TS=null;function _Ie(t,n){var e=U(t),i=e.attr("aria-label"),o=vIe(i,n.element()).index(e);TS=se({},{ariaLabel:i,index:o},{viewInstance:n})}function vIe(t,n){return U(n).find(t?'[aria-label="'.concat(t,'"][tabindex]'):"[tabindex]")}function P3t(t,n){var e=n?.getRootNode()||It.getDocument();for(var i in t){var r=t[i],o=U(e).find(r).first();if(o.length)return o}}function yIe(){$N="visible"===It.getDocument().visibilityState}function CIe(t,n,e,i,r,o){if(n.option("useLegacyKeyboardNavigation"))return Be;var a=()=>U(n.element()),s=f=>function F3t(t,n,e,i,r,o){var a=function R3t(t,n,e){var i={event:n,handled:!1};return e?e(i):t._createActionByOption("onKeyDown")(i),i.handled}(n,e.originalEvent,o);if(!a){var s=Wo(e);"enter"===s||"space"===s?(_Ie(e.target,n),i&&i({event:e})):"tab"===s?r.addClass(Xq):eY(t,n,e)}}(t,n,f,r,a(),o),l=()=>{Jq=!0,a().removeClass(Xq)},u=()=>{!Jq&&!$N&&a().addClass(Xq),Jq=!1};return Se.on(e,"keydown",i,s),Se.on(e,"mousedown",i,l),Se.on(e,"focusin",i,u),()=>{Se.off(e,"keydown",i,s),Se.off(e,"mousedown",i,l),Se.off(e,"focusin",i,u)}}function Qq(t){if(!t.option("useLegacyKeyboardNavigation")&&TS){var n=TS.viewInstance;if(n){var i=vIe(TS.ariaLabel,n.element()).eq(TS.index);TS=null,Se.trigger(i,"focus")}}}function eY(t,n,e){var i=Wo(e);if(e.ctrlKey&&("upArrow"===i||"downArrow"===i))for(var r=Object.keys(mIe),o=r.indexOf(t);o>=0&&o<r.length;){o="upArrow"===i?--o:++o;var l=P3t(mIe[r[o]],e.target);if(l&&l.length){l.attr("tabindex",n.option("tabindex")||0),Se.trigger(l,"focus"),l.removeClass("dx-cell-focus-disabled");break}}}var ck=function(t,n,e,i,r){var o=n.getController("keyboardNavigation");n.option("useLegacyKeyboardNavigation")||o&&!o.isKeyboardEnabled()||(n.createAction("onKeyDown"),CIe(t,n,e,i,r,a=>{n.executeAction("onKeyDown",a)}))},tY="text-content",bIe="dx-header-row",W3t="dx-column-lines",nY="dx-visibility-hidden",xIe="dx-text-content-alignment-",J3t="dx-header-multi-row",iY={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:dk.inherit(function(){var t=function(i,r,o){var a=U("<div>").addClass(i.addWidgetPrefix(tY));i.setAria("role","presentation",a),n(i,r,o.column,a);var s=i.option("showColumnLines"),l=i.getController("columns").getHeaderContentAlignment(o.column.alignment);return a[s||"right"===l?"appendTo":"prependTo"](r)};function n(i,r,o,a){var s=i._getIndicatorElements(r,!0),l=i._getIndicatorElements(r),u=s&&s.length,f=i._getColumnAlignment(o.alignment),S=".".concat(i._getIndicatorClassName("sort")),T=".".concat(i._getIndicatorClassName("sortIndex")),R=l.filter(S),L=l.children().filter(T);(a=a||r.children("."+i.addWidgetPrefix(tY))).toggleClass(xIe+f,u>0).toggleClass(xIe+("left"===f?"right":"left"),u>0&&"center"===o.alignment).toggleClass("dx-sort-indicator",!!R.length).toggleClass("dx-sort-index-indicator",!!L.length).toggleClass("dx-header-filter-indicator",!!l.filter("."+i._getIndicatorClassName("headerFilter")).length)}var e={_createTable:function(){var i=this.callBase.apply(this,arguments);return Se.on(i,"mousedown selectstart",this.createAction(function(r){var o=r.event;o.shiftKey&&o.preventDefault()})),i},_isLegacyKeyboardNavigation(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(i){var r=this;return function(o,a){var s=i.command?o:t(r,o,a),l="expand"!==i.command&&i.caption;l?s.text(l):i.command&&o.html("&nbsp;")}},_getHeaderTemplate:function(i){return i.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(i)}},_processTemplate:function(i,r){var o=this,s=r.column,l=o.callBase(i);return"header"===r.rowType&&l&&s.headerCellTemplate&&!s.command?{render:function(u){var f=t(o,u.container,u.model);l.render(se({},u,{container:f}))}}:l},_handleDataChanged:function(i){"refresh"===i.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(i,r){var o=this.callBase(i,r);return"header"===r.row.rowType&&(o.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||r.column&&!r.column.type&&o.attr("tabindex",this.option("tabindex")||0)),o},_setCellAriaAttributes:function(i,r){this.callBase(i,r),"header"===r.rowType&&(this.setAria("role","columnheader",i),r.column&&!r.column.command&&!r.column.isBand&&(i.attr("id",r.column.headerId),this.setAria("label",ye.format("dxDataGrid-ariaColumn")+" "+r.column.caption,i)))},_createRow:function(i){var r=this.callBase.apply(this,arguments);return r.toggleClass(W3t,this.option("showColumnLines")),"header"===i.rowType&&(r.addClass(bIe),this._isLegacyKeyboardNavigation()||ck("columnHeaders",this,r,"td",this._handleActionKeyDown.bind(this))),r},_handleActionKeyDown:function(i){var r=i.event,o=U(r.target);if(this._lastActionElement=r.target,o.is(".dx-header-filter")){var a=this.getController("headerFilter"),s=o.closest("td"),l=this.getColumnIndexByElement(s);l>=0&&a.showHeaderFilterMenu(l,!1)}else{var u=o.closest(".dx-row");this._processHeaderAction(r,u)}r.preventDefault()},_renderCore:function(){var i=this,r=i.element(),o={};if(!i._tableElement||i._dataController.isLoaded()||i._hasRowElements){r.addClass(i.addWidgetPrefix("headers")).toggleClass(i.addWidgetPrefix("nowrap"),!i.option("wordWrapEnabled")).empty(),i.setAria("role","presentation",r);var a=i._updateContent(i._renderTable({change:o}),o);return i.getRowCount()>1&&r.addClass(J3t),i.callBase.apply(i,arguments),a}},_renderRows:function(){var i=this;(i._dataController.isLoaded()||i._hasRowElements)&&(i.callBase.apply(i,arguments),i._hasRowElements=!0)},_getRowVisibleColumns:function(i){return this._columnsController.getVisibleColumns(i)},_renderRow:function(i,r){r.columns=this._getRowVisibleColumns(r.row.rowIndex),this.callBase(i,r)},_createCell:function(i){var r=i.column,o=this.callBase.apply(this,arguments);return r.rowspan>1&&"header"===i.rowType&&o.attr("rowSpan",r.rowspan),o},_getRows:function(){var i=[],r=this.getRowCount();if(this.option("showColumnHeaders"))for(var o=0;o<r;o++)i.push({rowType:"header",rowIndex:o});return i},_getCellTemplate:function(i){if("header"===i.rowType)return this._getHeaderTemplate(i.column)},_columnOptionChanged:function(i){var r=i.changeTypes,o=i.optionNames;r.grouping||r.groupExpanding?r.grouping&&(this._isGroupingChanged=!0):(this.callBase(i),(o.width||o.visible)&&this.resizeCompleted.fire())},_isElementVisible:function(i){return i&&i.visible},_alignCaptionByCenter:function(i){var r=this._getIndicatorContainer(i,!0);r&&r.length&&(r.filter("."+nY).remove(),(r=this._getIndicatorContainer(i)).clone().addClass(nY).css("float","").insertBefore(i.children("."+this.addWidgetPrefix(tY))))},_updateCell:function(i,r){"header"===r.rowType&&"center"===r.column.alignment&&this._alignCaptionByCenter(i),this.callBase.apply(this,arguments)},_updateIndicator:function(i,r,o){var a=this.callBase.apply(this,arguments);return"center"===r.alignment&&this._alignCaptionByCenter(i),n(this,i,r),a},_getIndicatorContainer:function(i,r){var o=this.callBase(i);return r?o:o.filter(":not(."+nY+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var i=this.getTableElement(),r=i&&i.find("."+bIe);return r&&r.toArray().reduce(function(o,a){return o+Ln(a)},0)||0},getHeaderElement:function(i){var r=this.getColumnElements();return r&&r.eq(i)},getColumnElements:function(i,r){var a,o=this,s=o._columnsController,l=o.getRowCount();if(o.option("showColumnHeaders")){if(l>1&&(!Z(i)||Z(r))){var u=[],f=Z(r)?s.getChildrenByBandColumn(r,!0):s.getVisibleColumns();return we(f,function(S,T){var R=Z(i)?i:s.getRowIndex(T.index);(a=o._getCellElement(R,s.getVisibleIndex(T.index,R)))&&u.push(a.get(0))}),U(u)}if(!i||i<l)return o.getCellElements(i||0)}},getColumnIndexByElement:function(i){var r=this.getCellIndex(i),o=i.closest(".dx-row"),s=this.getColumns(o[0].rowIndex)[r];return s?s.index:-1},getVisibleColumnIndex:function(i,r){var o=this.getColumns()[i];return o?this._columnsController.getVisibleIndex(o.index,r):-1},getColumnWidths:function(){var i=this.getColumnElements();return i&&i.length?this._getWidths(i):this.callBase.apply(this,arguments)},allowDragging:function(i,r,o){var a,R,s=0,l=i&&this._columnsController.getRowIndex(i.index),u=this.getColumns(0===l?0:null),f=i?.allowHiding&&u.length>1;for(a=0;a<u.length;a++)((R=u[a]).allowReordering||R.allowGrouping||R.allowHiding)&&s++;if(s<=1&&!f)return!1;if(!o)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&i&&i.allowReordering;for(a=0;a<o.length;a++){var T=o[a];if(T&&T.allowDragging(i,r))return!0}return!1},getBoundingRect:function(){var i=this.getColumnElements();return i&&i.length?{top:this.getTableElement().offset().top}:null},getName:function(){return"headers"},getColumnCount:function(){var i=this.getColumnElements();return i?i.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(i){switch(i.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":this._invalidate(!0,!0),i.handled=!0;break;default:this.callBase(i)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(i){var r=this,o=i.column;if(i.row&&("header"===i.row.rowType||"detailAdaptive"===i.row.rowType)){var a=r.option("sorting");if(a&&"none"!==a.mode&&o&&o.allowSorting){var s=function(l){setTimeout(function(){r._columnsController.changeSortOrder(o.index,l.itemData.value)})};return[{text:a.ascendingText,value:"asc",disabled:"asc"===o.sortOrder,icon:"context-menu-sort-asc",onItemClick:s},{text:a.descendingText,value:"desc",disabled:"desc"===o.sortOrder,icon:"context-menu-sort-desc",onItemClick:s},{text:a.clearText,value:"none",disabled:!o.sortOrder,icon:"context-menu-sort-none",onItemClick:s}]}}},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(i,r,o){var s,l,a=this,u=a.getRowCount(),f=a._columnsController.getColumns(),S=f&&f[i],T=S&&S.isBand&&S.index,R=function(L,z){z.ownerBand===T&&(l.eq(L).css({opacity:r}),z.isBand&&a.setRowsOpacity(z.index,r,s+1))};if(Z(T))for(s=o=o||0;s<u;s++)l=a.getCellElements(s),we(a.getColumns(s),R)}};return e}())}};oi.registerModule("columnHeaders",iY);var wIe=["filterValues","filterType","fixed","fixedPosition"],qN=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","added"].concat(wIe),Q3t={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},SIe=Number.MAX_SAFE_INTEGER||9007199254740991,hv="groupExpand",rY=/columns\[(\d+)\]\.?/gi,tVt=1,YN={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:ye.format("dxDataGrid-trueText"),falseText:ye.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:Bo.Controller.inherit(function(){var t={visible:!0,showInColumnChooser:!0},n={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},e={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},i=function(Ie){Ie.filterOperations=Ie.defaultFilterOperations},r=function(Ie,We,Ve,gt){var Ct={};if(We){Pn(We)&&(We={dataField:We}),Ie.setName(We);var Dt={};if(We.command)Dt=cd(Ct,We);else{Ct=Ie.getCommonSettings(We),Ve&&Ve.name&&Ve.dataField&&(We=se({},We,{dataField:Ve.dataField}));var wt=Ie._createCalculatedColumnOptions(We,gt);We.type||(Dt={headerId:"dx-col-".concat(tVt++)}),Dt=cd(Dt,t),cd(Dt,Ct),cd(Dt,wt),cd(Dt,We),cd(Dt,{selector:null})}return We.filterOperations===We.defaultFilterOperations&&i(Dt),Dt}},o=function Ie(We,Ve,gt){var Ct=[];return Ve&&we(Ve,function(Dt,wt){var rn=We._columnsUserState&&ie(wt,We._columnsUserState[Dt])&&We._columnsUserState[Dt],mn=r(We,wt,rn,gt);mn&&(gt&&(mn.ownerBand=gt),Ct.push(mn),mn.columns&&(Ct=Ct.concat(Ie(We,mn.columns,mn)),delete mn.columns,mn.hasColumns=!0))}),Ct},a=function(Ie,We){for(var Ve=[],gt=We[Ie];gt;)Ve.unshift(gt),gt=We[Ie=gt.index];return Ve},s=function(Ie,We,Ve){var gt=[],Ct=We[Ie];if(Ct)for(var Dt=0;Dt<Ct.length;Dt++){var wt=Ct[Dt];(!Z(wt.groupIndex)||wt.showWhenGrouped)&&(gt.push(wt),Ve&&wt.isBand&&(gt=gt.concat(s(wt.index,We,Ve))))}return gt},l=function(Ie,We){var gt,Ve=[],Ct=Ie.getBandColumnsCache(),Dt=function(rn){return rn.ownerBand===We.ownerBand};if(Ct.isPlain){var wt=Ie._columns.indexOf(We);wt>=0&&(Ve=["columns[".concat(wt,"]")])}else for(gt=Ie._columns.filter(Dt);gt.length&&-1!==gt.indexOf(We);)Ve.unshift("columns[".concat(gt.indexOf(We),"]")),gt=(We=Ct.columnParentByIndex[We.index])?Ie._columns.filter(Dt):[];return Ve.join(".")},u=function Ie(We,Ve){var gt=0,Ct=We.getChildrenByBandColumn(Ve,!0);return we(Ct,function(Dt,wt){wt.isBand?(wt.colspan=wt.colspan||Ie(We,wt.index),gt+=wt.colspan||1):gt+=1}),gt},f=function(Ie){var We=Fa(Ie);return"string"!==We&&"boolean"!==We&&"number"!==We&&"date"!==We&&"object"!==We&&(We=void 0),We},S=function(Ie,We){switch(Ie){case"date":case"datetime":return Qr.getDateSerializationFormat(We);case"number":if(Pn(We))return"string";if(di(We))return null}},T=function(Ie,We){Ie.deserializeValue||(vn.isDateType(We)&&(Ie.deserializeValue=function(Ve){return Qr.deserializeDate(Ve)},Ie.serializeValue=function(Ve){return Pn(Ve)?Ve:Qr.serializeDate(Ve,this.serializationFormat)}),"number"===We&&(Ie.deserializeValue=function(Ve){var gt=parseFloat(Ve);return isNaN(gt)?Ve:gt},Ie.serializeValue=function(Ve,gt){return"filter"===gt?Ve:Z(Ve)&&"string"===this.serializationFormat?Ve.toString():Ve}))},R=function(Ie){return!0===Ie.value?this.trueText||"true":!1===Ie.value?this.falseText||"false":Ie.valueText||""},L=function(Ie){if("boolean"===Ie)return R},z=function(Ie){we(Ie._columns,function(We,Ve){Ve.index=We}),we(Ie._columns,function(We,Ve){Jn(Ve.ownerBand)&&(Ve.ownerBand=Ve.ownerBand.index)}),we(Ie._commandColumns,function(We,Ve){Ve.index=-(We+1)})},j=function(Ie,We){Aw(Ie._columns,"groupIndex",We,function(Ve){var gt=Ve.grouped;return delete Ve.grouped,gt})},Y=function(Ie,We,Ve){var Dt,gt=Jn(We)?We.rowIndex:null,Ct="group"===Ve?Ie.getGroupColumns():"columnChooser"===Ve?Ie.getChooserColumns():Ie.getVisibleColumns(gt);return We=Jn(We)?We.columnIndex:We,(Dt=Ct[We])&&Dt.type===hv&&(Dt=Ie._columns.filter(wt=>Dt.type===wt.type)[0]||Dt),Dt&&Z(Dt.index)?Dt.index:-1};function ie(Ie,We){return Ie&&We&&We.name===(Ie.name||Ie.dataField)&&(We.dataField===Ie.dataField||Ie.name)}var te=function(Ie){var mn,Vn,Yn,We=Ie._columnsUserState,Ve=Ie._ignoreColumnOptionNames||[],gt=Ie._columns,Ct={},Dt=[],wt=!0,rn=[];function vi(ci,Wi){if(Wi)for(var Or=0;Or<qN.length;Or++){var Yr=qN[Or];Ve.includes(Yr)||("dataType"===Yr?ci[Yr]=ci[Yr]||Wi[Yr]:wIe.includes(Yr)?Yr in Wi&&(ci[Yr]=Wi[Yr]):("selectedFilterOperation"===Yr&&Wi[Yr]&&(ci.defaultSelectedFilterOperation=ci[Yr]||null),ci[Yr]=Wi[Yr]))}}function Si(ci,Wi){for(var Or=Wi.name||Wi.dataField,Yr=Ct[Or]||0,Ca=0;Ca<ci.length;Ca++)if(ie(Wi,ci[Ca])){if(!Yr)return Ct[Or]=Ct[Or]||0,Ct[Or]++,Ca;Yr--}return-1}if(We){for(Yn=0;Yn<gt.length;Yn++)Vn=Si(We,gt[Yn]),wt=wt&&Vn>=0,rn.push(Vn);for(Yn=0;Yn<gt.length;Yn++)mn=gt[Yn],Vn=rn[Yn],(Ie._hasUserState||wt)&&vi(mn,We[Vn]),Vn>=0&&Z(We[Vn].initialIndex)?Dt[Vn]=mn:Dt.push(mn);var nr=!1;for(Yn=0;Yn<We.length;Yn++){var lo=We[Yn];lo.added&&Si(gt,lo)<0&&(vi(mn=r(Ie,lo.added),lo),Dt.push(mn),lo.added.columns&&(nr=!0))}nr&&(z(Ie),Dt=o(Ie,Dt)),fe(Ie,Dt)}},re=function(Ie,We){var Ve,gt;z(Ie),j(Ie,We),gt=We,we((Ve=Ie)._columns,function(Ct,Dt){Z(Dt.sortIndex)&&!vt(Dt.sortOrder)&&delete Dt.sortIndex}),Aw(Ve._columns,"sortIndex",gt,function(Ct){return!Z(Ct.groupIndex)&&vt(Ct.sortOrder)}),bn(Ie),function(Ve,gt){for(var Ct,Dt=[],wt=Ve.getBandColumnsCache(),rn=[],mn=Ve._columns.filter(vi=>!vi.command),Vn=0;Vn<mn.length;Vn++)Ct=mn[Vn],a(Vn,wt.columnParentByIndex).length?rn.push(Ct):Dt.push(Ct);Aw(rn,"visibleIndex",gt),Aw(Dt,"visibleIndex",gt)}(Ie,We)},he=function(Ie){Ie.resetColumnsCache()};function fe(Ie,We){Ie._previousColumns=Ie._columns,Ie._columns=We,he(Ie),Ie.updateColumnDataTypes()}var Te=function(Ie,We,Ve,gt){var Ct=Ie._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:gt};Ve=(Ve=Ve||"all").split(".")[0];var Dt=Ct.changeTypes;We&&!Dt[We]&&(Dt[We]=!0,Dt.length++);var wt=Ct.optionNames;Ve&&!wt[Ve]&&(wt[Ve]=!0,wt.length++),(void 0===gt||gt!==Ct.columnIndex)&&delete Ct.columnIndex,Ie._columnChanges=Ct,he(Ie)},Re=function(Ie){var Ct,We=Ie.option("onColumnsChanging"),Ve=Ie._columnChanges;Ie.isInitialized()&&!Ie._updateLockCount&&Ve&&(We&&(Ie._updateLockCount++,We(se({component:Ie.component},Ve)),Ie._updateLockCount--),Ie._columnChanges=void 0,(Ct=Ve.optionNames)&&["dataField","lookup","dataType","columns"].some(Dt=>Ct[Dt])?(Ie._reinitAfterLookupChanges=Ve?.optionNames.lookup,Ie.reinit(),Ie._reinitAfterLookupChanges=void 0):Ie.columnsChanged.fire(Ve))},He=function(Ie,We,Ve,gt){if(Ve>=0)gt>=0||(We.lastSortOrder=We.sortOrder);else{var Dt=Ie.option("sorting.mode"),wt=We.lastSortOrder;"single"===Dt&&Ie._columns.some(mn=>mn!==We&&Z(mn.sortIndex))&&(wt=void 0),We.sortOrder=wt}},Ze=function(Ie,We){var Ve=We.value,gt=We.optionName,Ct=We.prevValue,wt="".concat(We.fullOptionName,".").concat(gt);!Q3t[gt]&&Ie._skipProcessingColumnsChange!==wt&&(Ie._skipProcessingColumnsChange=wt,Ie.component._notifyOptionChanged(wt,Ve,Ct),Ie._skipProcessingColumnsChange=!1)},at=function(Ie,We,Ve,gt,Ct){var rn,mn,Vn,Dt=Ai(Ve),wt=We.index;if(3===arguments.length)return Dt(We,{functionsAsIs:!0});var Yn=Dt(We,{functionsAsIs:!0});if(!Tr(Yn,gt)){"groupIndex"===Ve||"calculateGroupValue"===Ve?(mn="grouping",He(Ie,We,gt,Yn)):mn="sortIndex"===Ve||"sortOrder"===Ve||"calculateSortValue"===Ve?"sorting":"columns";var vi=ph(Ve);vi(We,gt,{functionsAsIs:!0});var Si=l(Ie,We);e[Ve]&&(re(Ie,We),gt=Dt(We)),("name"===Ve||"allowEditing"===Ve)&&Ie._checkColumns(),!Z(Yn)&&!Z(gt)&&0!==Ve.indexOf("buffer")&&(Ct=!0),Ct?he(Ie):(!qN.includes(Ve)&&"visibleWidth"!==Ve&&(rn=Ie.option("columns"),Vn=Ie.getColumnByPath(Si,rn),Pn(Vn)&&(Vn=rn[wt]={dataField:Vn}),Vn&&ie(Vn,We)&&vi(Vn,gt,{functionsAsIs:!0})),Te(Ie,mn,Ve,wt)),Si&&Ze(Ie,{fullOptionName:Si,optionName:Ve,value:gt,prevValue:Yn})}};function vt(Ie){return"asc"===Ie||"desc"===Ie}var Bt=function(Ie,We){if(this.dataField){var Ve=this.dataField.split("."),gt=Ve.length-1;this.serializeValue&&(We=this.serializeValue(We));for(var Ct=0;Ct<gt;Ct++){var Dt=Ve[Ct];Ie=Ie[Dt]=Ie[Dt]||{}}Ie[Ve[gt]]=We}},St=(Ie,We)=>!!Ie._columns.filter(Ve=>Ve.type===We.type).length,ct=function(Ie,We){var Ve=Ie.option("rtlEnabled");return We.command&&!St(Ie,We)||!We.fixedPosition?Ve?"right":"left":We.fixedPosition},Nt=function(Ie,We,Ve,gt){var Ct,Dt=this.getRowCount(),wt=Ie[gt]&&Ie[gt].rowspan,rn=We.filter(mn=>mn.type===Ve);return Ie.forEach((mn,Vn)=>{mn.type===Ve&&(Ct=Vn,wt=Ie[Vn+1]?Ie[Vn+1].rowspan:Dt)}),wt>1&&(rn=Dr(rn,function(mn){return se({},mn,{rowspan:wt})})),rn.unshift.apply(rn,Z(Ct)?[Ct,1]:[gt,0]),Ie.splice.apply(Ie,rn),wt||1},Kt=function(Ie,We){for(var Ve=Ie?Ie.toString():"0";Ve.length<We;)Ve="0"+Ve;return Ve},on=(Ie,We,Ve,gt)=>{for(var Ct,Dt,wt=We.slice().map(nr=>se({},nr)),rn=Ie._isColumnFixing(),mn=Ve.slice().map(nr=>se({fixed:rn},nr)),Vn=nr=>Ve.reduce((lo,ci,Wi)=>ci.type===(gt&&nr.type===hv?"expand":nr.type)||ci.command===nr.command?Wi:lo,-1),Yn=nr=>nr.command!==Ve[Dt].command,vi=0;vi<We.length;vi++)(Dt=(Ct=We[vi])&&(Ct.type||Ct.command)?Vn(Ct):-1)>=0&&(gt?(wt[vi]=se({fixed:rn},Ve[Dt],Ct),Ct.type!==hv&&(mn=mn.filter(Yn))):wt[vi]=se({},Ct,Ve[Dt],Ct.type===hv&&{visibleIndex:Ct.visibleIndex,index:Ct.index,headerId:Ct.headerId,allowFixing:0===Ct.groupIndex,allowReordering:0===Ct.groupIndex,groupIndex:Ct.groupIndex}));return We.length&&gt&&mn.length&&(wt=wt.concat(mn)),wt},hn=(Ie,We)=>Z(We.fixed)||!We.type?We.fixed:Ie._isColumnFixing(),bn=Ie=>{Ie._bandColumnsCache=void 0},Qn=(Ie,We)=>{var gt,Ve=Pn(We)&&We.substr(0,We.indexOf(":"));if(void 0!==We)return Ve&&(We=We.substr(Ve.length+1)),Ve?gt=Ie.filter(Ct=>""+Ct[Ve]===We)[0]:["index","name","dataField","caption"].some(Ct=>!!(gt=Ie.filter(Dt=>Dt[Ct]===We)[0])),gt},Xn={_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:"dx-command-expand",allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(Ie){var We,Ve=[];return Ie&&Ie.items().length>0&&(We=vn.normalizeSortingInfo(Ie.group()).length,Ve=function gt(Ct,Dt){if(!Ct||!Dt)return Ct;for(var wt=0;wt<Ct.length;wt++){var rn=gt(Ct[wt].items||Ct[wt].collapsedItems,Dt-1);if(rn&&rn.length)return rn}}(Ie.items(),We)||[]),Ve},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&Re(this)},init:function(Ie){var Ve,gt,We=this.option("columns");this._commandColumns=this._commandColumns||[],this._columns=this._columns||[],this._isColumnsFromOptions=!!We,this._isColumnsFromOptions?(fe(this,We?o(this,We):[]),te(this)):fe(this,this._columnsUserState?o(this,this._columnsUserState):this._columns),gt=(Ve=this)._getExpandColumnOptions(),Ve.addCommandColumn(gt),this._dataSourceApplied?this.applyDataSource(this._dataSource,!0,Ie):re(this),this._checkColumns()},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(Ie,We){var Ve,gt=[];return Ie.replace(rY,function(Ct,Dt){return gt.push(parseInt(Dt)),""}),gt.length&&(Ve=We?gt.reduce(function(Ct,Dt){return Ct&&Ct.columns&&Ct.columns[Dt]},{columns:We}):function(Ct,Dt){var wt,rn,Vn=function(vi){return vi.ownerBand===(wt?wt.index:void 0)};if(Ct.getBandColumnsCache().isPlain)wt=Ct._columns[Dt[0]];else{rn=Ct._columns.filter(Vn);for(var Yn=0;Yn<Dt.length;Yn++)(wt=rn[Dt[Yn]])&&(rn=Ct._columns.filter(Vn))}return wt}(this,gt)),Ve},optionChanged:function(Ie){var We;switch(Ie.name){case"adaptColumnWidthByRatio":Ie.handled=!0;break;case"dataSource":Ie.value!==Ie.previousValue&&!this.option("columns")&&(!Array.isArray(Ie.value)||!Array.isArray(Ie.previousValue))&&(this._columns=[]);break;case"columns":We=this._skipProcessingColumnsChange,Ie.handled=!0,this._skipProcessingColumnsChange||(Ie.name===Ie.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(Ie),We=!0)),We&&this._updateRequireResize(Ie);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":Ie.handled=!0,this.reinit("columnWidth"===Ie.fullName&&["width"]);break;case"rtlEnabled":this.reinit();break;default:this.callBase(Ie)}},_columnOptionChanged:function(Ie){var We={},Ve=this.getColumnByPath(Ie.fullName),gt=Ie.fullName.replace(rY,"");Ve&&(gt?We[gt]=Ie.value:We=Ie.value,this._skipProcessingColumnsChange=Ie.fullName,this.columnOption(Ve.index,We),this._skipProcessingColumnsChange=!1)},_updateRequireResize:function(Ie){var We=this.component;"width"===Ie.fullName.replace(rY,"")&&We._updateLockCount&&(We._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]},applyDataSource:function(Ie,We,Ve){var gt=Ie&&Ie.isLoaded();if(this._dataSource=Ie,!this._dataSourceApplied||0===this._dataSourceColumnsCount||We||this.option("regenerateColumnsByVisibleItems")){if(gt){if(!this._isColumnsFromOptions){var Ct=function(Dt,wt){for(var mn,rn=Dt._getFirstItems(wt),Vn={},Yn=[],vi=0;vi<rn.length;vi++)if(rn[vi])for(mn in rn[vi])(!Yt(rn[vi][mn])||Tu.isWrapped(rn[vi][mn]))&&(Vn[mn]=!0);for(mn in Vn)if(0!==mn.indexOf("__")){var Si=r(Dt,mn);Yn.push(Si)}return Yn}(this,Ie);Ct.length&&(fe(this,Ct),this._dataSourceColumnsCount=this._columns.length,te(this))}return this.updateColumns(Ie,We,Ve)}this._dataSourceApplied=!1,re(this)}else if(gt&&!this.isAllDataTypesDefined(!0)&&this.updateColumnDataTypes(Ie))return Te(this,"columns"),Re(this),(new et).reject().promise()},reset:function(){this._dataSource=null,this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){this._visibleColumns=void 0,this._fixedColumns=void 0,this._rowCount=void 0,bn(this)},reinit:function(Ie){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=Ie||null,this.init(),Ie&&(this._ignoreColumnOptionNames=null)},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(Ie){var We=(!Ie||!Ie.type)&&this.option("commonColumnSettings")||{},Ve=this.option("grouping")||{},gt=this.option("groupPanel")||{};return se({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:Ve.autoExpandAll,allowCollapsing:Ve.allowCollapsing,allowGrouping:gt.allowColumnDragging&&gt.visible||Ve.contextMenuEnabled},We)},isColumnOptionUsed:function(Ie){for(var We=0;We<this._columns.length;We++)if(this._columns[We][Ie])return!0},isAllDataTypesDefined:function(Ie){var We=this._columns;if(!We.length)return!1;for(var Ve=0;Ve<We.length;Ve++)if((We[Ve].dataField||We[Ve].calculateCellValue!==We[Ve].defaultCalculateCellValue)&&(!We[Ve].dataType||Ie&&We[Ve].deserializeValue&&void 0===We[Ve].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some(function(Ie){return Ie.isBand})},getGroupColumns:function(){var Ie=[];return we(this._columns,function(){Z(this.groupIndex)&&(Ie[this.groupIndex]=this)}),Ie},_shouldReturnVisibleColumns:function(){return!0},_compileVisibleColumns:function(Ie){return this._visibleColumns=this._visibleColumns||this._compileVisibleColumnsCore(),Ie=Z(Ie)?Ie:this._visibleColumns.length-1,this._visibleColumns[Ie]||[]},getVisibleColumns:function(Ie){return this._shouldReturnVisibleColumns()?this._compileVisibleColumns.apply(this,arguments):[]},getFixedColumns:function(Ie){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),Ie=Z(Ie)?Ie:this._fixedColumns.length-1,this._fixedColumns[Ie]||[]},getFilteringColumns:function(){return this.getColumns().filter(Ie=>(Ie.dataField||Ie.name)&&(Ie.allowFiltering||Ie.allowHeaderFiltering)).map(Ie=>{var We=se(!0,{},Ie);return Z(We.dataField)||(We.dataField=We.name),We.filterOperations=Ie.filterOperations!==Ie.defaultFilterOperations?We.filterOperations:null,We})},getColumnIndexOffset:function(){return 0},_getFixedColumnsCore:function(){var Dt,wt,rn,Ie=[],We=this.getRowCount(),gt={command:"transparent"},Ct=0;if(this._isColumnFixing())for(var mn=0;mn<=We;mn++){Dt=0,rn=null,wt=null;for(var Vn=this.getVisibleColumns(mn,!0),Yn=0;Yn<Vn.length;Yn++){var vi=Vn[Yn-1],Si=Vn[Yn];Si.fixed?vi&&vi.fixed&&ct(this,vi)!==ct(this,Si)?Z(wt)||(wt=Yn):rn=Si.fixedPosition:(0===mn&&(Si.isBand&&Si.colspan?Ct+=Si.colspan:Ct++),Dt++,Z(wt)||(wt=Yn))}if(0===mn&&(0===Dt||Dt>=Vn.length))return[];Z(wt)||(wt="right"===rn?0:Vn.length),Ie[mn]=Vn.slice(0),gt.colspan||(gt.colspan=Ct),Ie[mn].splice(wt,Dt,gt)}return Ie.map(nr=>nr.map(lo=>{var ci=mt({},lo);return ci.headerId&&(ci.headerId+="-fixed"),ci}))},_isColumnFixing:function(){var Ie=this.option("columnFixing.enabled");return!Ie&&we(this._columns,function(We,Ve){if(Ve.fixed)return Ie=!0,!1}),Ie},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var We,Ie=this._getExpandColumnsCore(),Ve=Ie.filter(wt=>0===wt.groupIndex)[0],gt=Ve&&Ve.fixed,Ct=this._isColumnFixing(),Dt=this.option("rtlEnabled");return Ie.length&&(We=this.columnOption("command:expand")),Dr(Ie,wt=>se({},wt,{visibleWidth:null,minWidth:null,cellTemplate:Z(wt.groupIndex)?null:wt.cellTemplate,headerCellTemplate:null,fixed:!(!Z(wt.groupIndex)||!gt)||Ct,fixedPosition:Dt?"right":"left"},We,{index:wt.index,type:wt.type||hv}))},getBandColumnsCache:function(){if(!this._bandColumnsCache){var Ie=this._columns,We={},Ve={},gt=!0;Ie.forEach(function(Ct){var Dt=Ct.ownerBand,wt=Jn(Dt)?Dt.index:Dt,rn=Ie[wt];Ct.hasColumns&&(gt=!1),Ct.colspan&&(Ct.colspan=void 0),Ct.rowspan&&(Ct.rowspan=void 0),rn?Ve[Ct.index]=rn:wt=-1,We[wt]=We[wt]||[],We[wt].push(Ct)}),this._bandColumnsCache={isPlain:gt,columnChildrenByIndex:We,columnParentByIndex:Ve}}return this._bandColumnsCache},_isColumnVisible:function(Ie){return Ie.visible&&this.isParentColumnVisible(Ie.index)},_compileVisibleColumnsCore:function(){var We,Vn,Ie=this,Ve=[],gt=0,Ct=0,Dt=Ie.getRowCount(),wt=[],rn=[],mn=0,Yn=Ie.option("rtlEnabled"),vi=Ie.getBandColumnsCache(),Si=on(Ie,Ie.getExpandColumns(),Ie._columns),nr=on(Ie,Ie._columns,Ie._commandColumns,!0),lo=function(ci){var Wi;for(Wi=0;ci>1;Wi++)ci/=10;return Wi}(nr.length);for(function(ci,Wi,Or){for(var Yr,Ca=0;Ca<Wi.length;Ca++){var Mr=Wi[Ca];(Mr.visible||Mr.command)&&(Mr.isBand&&(Mr.colspan=Mr.colspan||u(ci,Mr.index)),(!Mr.isBand||!Mr.colspan)&&(Yr=ci.getRowCount(),!Mr.command&&(!Z(Mr.groupIndex)||Mr.showWhenGrouped)&&(Yr-=a(Mr.index,Or.columnParentByIndex).length),Yr>1&&(Mr.rowspan=Yr)))}}(Ie,nr,vi),We=0;We<Dt;We++)Ve[We]=[],rn[We]=[{}],wt[We]=[{},{},{}];return we(nr,function(){var Wi,ci=this.visibleIndex,Or=a(this.index,vi.columnParentByIndex);if(Ie._isColumnVisible(this)&&(!Z(this.groupIndex)||this.showWhenGrouped)){var Ca=Or.length;if(ci<0?(ci=-ci,Wi=rn[Ca]):(this.fixed=Or.length?Or[0].fixed:this.fixed,this.fixedPosition=Or.length?Or[0].fixedPosition:this.fixedPosition,this.fixed?(Vn="right"===this.fixedPosition,Yn&&(!this.command||St(Ie,this))&&(Vn=!Vn),Wi=Vn?wt[Ca][2]:wt[Ca][0]):Wi=wt[Ca][1]),Or.length)for(ci=Kt(ci,lo),We=Or.length-1;We>=0;We--)ci=Kt(Or[We].visibleIndex,lo)+ci;Wi[ci]=Wi[ci]||[],Wi[ci].push(this),mn++}}),we(Ve,function(ci){q7(rn[ci],function(Or,Yr){Ve[ci].unshift.apply(Ve[ci],Yr)});var Wi=Ve[ci].length;we(wt[ci],function(Or,Yr){q7(Yr,function(Ca,Mr){Ve[ci].push.apply(Ve[ci],Mr)})}),Ct<ci+1&&(Ct+=Nt.call(Ie,Ve[ci],Si,"detailExpand",Wi)),gt<ci+1&&(gt+=Nt.call(Ie,Ve[ci],Si,hv,Wi))}),Ve.push(function ci(Wi,Or,Yr){var Ca=[];return Wi[Or=Or||0]&&we(Wi[Or],function(Mr,zt){(zt.ownerBand===Yr||zt.type===hv)&&(zt.isBand&&zt.colspan?Ca.push.apply(Ca,ci(Wi,Or+1,zt.index)):(!zt.command||Or<1)&&Ca.push(zt))}),Ca}(Ve)),!mn&&Ie._columns.length&&Ve[Dt].push({command:"empty"}),Ve},getInvisibleColumns:function(Ie,We){var Ct,Ve=this,gt=[];return we(Ie=Ie||Ve._columns,function(Dt,wt){if(wt.ownerBand===We){if(wt.isBand)return void((Ct=wt.visible?Ve.getInvisibleColumns(Ve.getChildrenByBandColumn(wt.index),wt.index):Ve.getChildrenByBandColumn(wt.index)).length&&(gt.push(wt),gt=gt.concat(Ct)));wt.visible||gt.push(wt)}}),gt},getChooserColumns:function(Ie){return((Ct,Dt)=>{if("asc"!==Dt&&"desc"!==Dt)return Ct;var wt="asc"===Dt?1:-1;return Ct.sort(function(rn,mn){return wt*(rn.caption||"").localeCompare(mn.caption||"")}),Ct})((Ie?this.getColumns():this.getInvisibleColumns()).filter(Ct=>Ct.showInColumnChooser),this.option("columnChooser.sortOrder"))},allowMoveColumn:function(Ie,We,Ve,gt){var Ct=Y(this,Ie,Ve),Dt=this._columns[Ct];return!(!Dt||!(Dt.allowReordering||Dt.allowGrouping||Dt.allowHiding))&&(Ve===gt?"columnChooser"!==Ve&&(Ie=Jn(Ie)?Ie.columnIndex:Ie)!==(We=Jn(We)?We.columnIndex:We)&&Ie+1!==We:"group"===Ve&&"columnChooser"!==gt||"group"===gt?Dt&&Dt.allowGrouping:"columnChooser"!==Ve&&"columnChooser"!==gt||Dt&&Dt.allowHiding)},moveColumn:function(Ie,We,Ve,gt){var Dt,mn,Ct={},wt=Y(this,Ie,Ve),rn=Y(this,We,gt);if(wt>=0){var Vn=this._columns[wt];if(We=Jn(We)?We.columnIndex:We,mn=rn>=0?this._columns[rn].groupIndex:-1,Z(Vn.groupIndex)&&"group"===Ve&&(mn>Vn.groupIndex&&mn--,"group"!==gt?Ct.groupIndex=void 0:(Dt=Vn.groupIndex,delete Vn.groupIndex,j(this))),"group"===gt)Ct.groupIndex=function(Si,nr,lo){var Wi,ci=Si.getGroupColumns();if(lo>=0)for(Wi=0;Wi<ci.length;Wi++)ci[Wi].groupIndex>=lo&&ci[Wi].groupIndex++;else for(lo=0,Wi=0;Wi<ci.length;Wi++)lo=Math.max(lo,ci[Wi].groupIndex+1);return lo}(this,0,mn),Vn.groupIndex=Dt;else if(We>=0){var Yn=this._columns[rn];Ct.visibleIndex=!Yn||Vn.ownerBand!==Yn.ownerBand||hn(this,Vn)^hn(this,Yn)?SIe:Yn.visibleIndex}var vi="columnChooser"!==gt;Vn.visible!==vi&&(Ct.visible=vi),this.columnOption(Vn.index,Ct)}},changeSortOrder:function(Ie,We){var Ve={},gt=this.option("sorting"),Ct=gt&&gt.mode,rn=this._columns[Ie];("single"===Ct||"multiple"===Ct)&&rn&&rn.allowSorting&&(("single"===Ct||!We)&&!Z(rn.groupIndex)&&we(this._columns,function(mn){mn!==Ie&&this.sortOrder&&(Z(this.groupIndex)||delete this.sortOrder,delete this.sortIndex)}),vt(We)?rn.sortOrder!==We&&(Ve.sortOrder=We):"none"===We?rn.sortOrder&&(Ve.sortIndex=void 0,Ve.sortOrder=void 0):function(mn){if("ctrl"===We){if(!("sortOrder"in mn)||!("sortIndex"in mn))return!1;Ve.sortOrder=void 0,Ve.sortIndex=void 0}else Ve.sortOrder=Z(mn.groupIndex)||Z(mn.sortIndex)?"desc"===mn.sortOrder?"asc":"desc":"asc"}(rn)),this.columnOption(rn.index,Ve)},getSortDataSourceParameters:function(Ie){var We=[],Ve=[];return we(this._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&Z(this.sortIndex)&&!Z(this.groupIndex)&&(We[this.sortIndex]=this)}),we(We,function(){if(vt(this&&this.sortOrder)){var Ct={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||Ie&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(Ct.compare=this.sortingMethod.bind(this)),Ve.push(Ct)}}),Ve.length>0?Ve:null},getGroupDataSourceParameters:function(Ie){var We=[];return we(this.getGroupColumns(),function(){var Ve=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||Ie&&this.selector||this.dataField||this.calculateCellValue;if(Ve){var gt={selector:Ve,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(gt.compare=this.sortingMethod.bind(this)),We.push(gt)}}),We.length>0?We:null},refresh:function(Ie){var We=[];return we(this._columns,function(){var Ve=this.lookup;if(Ve&&!this.calculateDisplayValue){if(Ie&&Ve.valueMap)return;Ve.update&&We.push(Ve.update())}}),Qt.apply(U,We).done(he.bind(null,this))},_updateColumnOptions:function(Ie,We){Ie.selector=Ie.selector||function(Ct){return Ie.calculateCellValue(Ct)},this._reinitAfterLookupChanges&&this._previousColumns?(Ie.selector.columnIndex=We,Ie.selector.originalCallback=this._previousColumns[We].selector.originalCallback):(Ie.selector.columnIndex=We,Ie.selector.originalCallback=Ie.selector),we(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],function(Ct,Dt){var wt=Ie[Dt];if(Yt(wt))if(wt.originalCallback)Ie[Dt].context.column=Ie;else{var rn={column:Ie};Ie[Dt]=function(mn){return wt.call(rn.column,mn)},Ie[Dt].originalCallback=wt,Ie[Dt].columnIndex=We,Ie[Dt].context=rn}}),Pn(Ie.calculateDisplayValue)&&(Ie.displayField=Ie.calculateDisplayValue,Ie.calculateDisplayValue=Ai(Ie.displayField)),Ie.calculateDisplayValue&&(Ie.displayValueMap=Ie.displayValueMap||{}),T(Ie,Ie.dataType);var Ve=Ie.lookup;Ve&&T(Ve,Ve.dataType);var gt=Ve?Ve.dataType:Ie.dataType;gt&&(Ie.alignment=Ie.alignment||function(Ct,Dt){switch(Ct){case"number":return"right";case"boolean":return"center";default:return Eg(Dt)}}(gt,this.option("rtlEnabled")),Ie.format=Ie.format||vn.getFormatByDataType(gt),Ie.customizeText=Ie.customizeText||L(gt),Ie.defaultFilterOperations=Ie.defaultFilterOperations||!Ve&&n[gt]||[],Z(Ie.filterOperations)||i(Ie),Ie.defaultFilterOperation=Ie.filterOperations&&Ie.filterOperations[0]||"=",Ie.showEditorAlways=Z(Ie.showEditorAlways)?Ie.showEditorAlways:"boolean"===gt&&!Ie.cellTemplate&&!Ie.lookup)},updateColumnDataTypes:function(Ie){var We=this,Ve=We.option("dateSerializationFormat"),gt=We._getFirstItems(Ie),Ct=!1;return we(We._columns,function(Dt,wt){var rn,mn,Vn,Yn,vi,Si=wt.lookup;if(vn.isDateType(wt.dataType)&&void 0===wt.serializationFormat&&(wt.serializationFormat=Ve),Si&&vn.isDateType(Si.dataType)&&void 0===wt.serializationFormat&&(Si.serializationFormat=Ve),wt.calculateCellValue&&gt.length){if(!wt.dataType||Si&&!Si.dataType){for(rn=0;rn<gt.length;rn++)mn=wt.calculateCellValue(gt[rn]),wt.dataType||(vi=f(mn),(Vn=Vn||vi)&&vi&&Vn!==vi&&(Vn="string")),Si&&!Si.dataType&&(vi=f(vn.getDisplayValue(wt,mn,gt[rn])),(Yn=Yn||vi)&&vi&&Yn!==vi&&(Yn="string"));(Vn||Yn)&&(Vn&&(wt.dataType=Vn),Si&&Yn&&(Si.dataType=Yn),Ct=!0)}if(void 0===wt.serializationFormat||Si&&void 0===Si.serializationFormat)for(rn=0;rn<gt.length;rn++)mn=wt.calculateCellValue(gt[rn],!0),void 0===wt.serializationFormat&&(wt.serializationFormat=S(wt.dataType,mn)),Si&&void 0===Si.serializationFormat&&(Si.serializationFormat=S(Si.dataType,Si.calculateCellValue(mn,!0)))}We._updateColumnOptions(wt,Dt)}),Ct},_customizeColumns:function(Ie){var We=this.option("customizeColumns");We&&(Ie.some(function(gt){return Jn(gt.ownerBand)})&&re(this),We(Ie),fe(this,o(this,Ie)))},updateColumns:function(Ie,We,Ve){if(We||this.updateSortingGrouping(Ie),!Ie||Ie.isLoaded()){var gt=Ie?Ie.sort()||[]:this.getSortDataSourceParameters(),Ct=Ie?Ie.group()||[]:this.getGroupDataSourceParameters(),Dt=Ie?.lastLoadOptions().filter;Ve||this._customizeColumns(this._columns),re(this);var wt=this._columns;return Qt(this.refresh(!0)).always(()=>{this._columns===wt&&(this._updateChanges(Ie,{sorting:gt,grouping:Ct,filtering:Dt}),Re(this))})}},_updateChanges:function(Ie,We){Ie&&(this.updateColumnDataTypes(Ie),this._dataSourceApplied=!0),vn.equalSortParameters(We.sorting,this.getSortDataSourceParameters())||Te(this,"sorting"),vn.equalSortParameters(We.grouping,this.getGroupDataSourceParameters())||Te(this,"grouping");var Ve=this.getController("data");Ve&&!vn.equalFilterParameters(We.filtering,Ve.getCombinedFilter())&&Te(this,"filtering"),Te(this,"columns")},updateSortingGrouping:function(Ie,We){var gt,Ct,Ve=this,Dt=function(vi,Si,nr){we(vi,function(lo,ci){if(delete ci[nr],Si)for(var Wi=0;Wi<Si.length;Wi++){var Or=Si[Wi].selector,Yr=Si[Wi].isExpanded;if(Or===ci.dataField||Or===ci.name||Or===ci.selector||Or===ci.calculateCellValue||Or===ci.calculateGroupValue||Or===ci.calculateDisplayValue){ci.sortOrder=We?"sortOrder"in ci?ci.sortOrder:Si[Wi].desc?"desc":"asc":ci.sortOrder||(Si[Wi].desc?"desc":"asc"),void 0!==Yr&&(ci.autoExpandGroup=Yr),ci[nr]=Wi;break}}})};if(Ie){gt=vn.normalizeSortingInfo(Ie.sort());var wt=vn.normalizeSortingInfo(Ie.group()),rn=Ve.getGroupDataSourceParameters(),mn=Ve.getSortDataSourceParameters(),Vn=!vn.equalSortParameters(wt,rn,!0),Yn=!Vn&&!vn.equalSortParameters(wt,rn);Ve._columns.length||(we(wt,function(vi,Si){Ve._columns.push(Si.selector)}),we(gt,function(vi,Si){Yt(Si.selector)||Ve._columns.push(Si.selector)}),fe(Ve,o(Ve,Ve._columns))),(We||!rn&&!Ve._hasUserState)&&(Vn||Yn)&&(Dt(Ve._columns,wt,"groupIndex"),We&&(Vn&&Te(Ve,"grouping"),Yn&&Te(Ve,"groupExpanding"),Ct=!0)),(We||!mn&&!Ve._hasUserState)&&!vn.equalSortParameters(gt,mn)&&(Dt(Ve._columns,gt,"sortIndex"),We&&(Te(Ve,"sorting"),Ct=!0)),Ct&&Re(Ve)}},updateFilter:function(Ie,We,Ve,gt){if(!Array.isArray(Ie))return Ie;if(Ve=void 0!==(Ie=se([],Ie)).columnIndex?Ie.columnIndex:Ve,gt=void 0!==Ie.filterValue?Ie.filterValue:gt,Pn(Ie[0])&&"!"!==Ie[0]){var Ct=this.columnOption(Ie[0]);We?no().forceIsoDateParsing&&Ct&&Ct.serializeValue&&Ie.length>1&&(Ie[Ie.length-1]=Ct.serializeValue(Ie[Ie.length-1],"filter")):Ct&&Ct.selector&&(Ie[0]=Ct.selector,Ie[0].columnIndex=Ct.index)}else Yt(Ie[0])&&(Ie[0].columnIndex=Ve,Ie[0].filterValue=gt);for(var Dt=0;Dt<Ie.length;Dt++)Ie[Dt]=this.updateFilter(Ie[Dt],We,Ve,gt);return Ie},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(Ie,We,Ve,gt){var Ct=this,Dt=Ct._columns.concat(Ct._commandColumns),wt=Qn(Dt,Ie);if(wt){if(1===arguments.length)return se({},wt);if(Pn(We)){if(2===arguments.length)return at(Ct,wt,We);at(Ct,wt,We,Ve,gt)}else Jn(We)&&we(We,function(rn,mn){at(Ct,wt,rn,mn,gt)});Re(Ct)}},clearSorting:function(){var Ie=this.columnCount();this.beginUpdate();for(var We=0;We<Ie;We++)this.columnOption(We,"sortOrder",void 0);this.endUpdate()},clearGrouping:function(){var Ie=this.columnCount();this.beginUpdate();for(var We=0;We<Ie;We++)this.columnOption(We,"groupIndex",void 0);this.endUpdate()},getVisibleIndex:function(Ie,We){for(var Ve=this.getVisibleColumns(We),gt=Ve.length-1;gt>=0;gt--)if(Ve[gt].index===Ie)return gt;return-1},getVisibleIndexByColumn:function(Ie,We){var Ve=this.getVisibleColumns(We),gt=Ve.filter(Ct=>Ct.index===Ie.index&&Ct.command===Ie.command)[0];return Ve.indexOf(gt)},getVisibleColumnIndex:function(Ie,We){var Ve=this.columnOption(Ie,"index");return this.getVisibleIndex(Ve,We)},addColumn:function(Ie){var We=r(this,Ie),Ve=this._columns.length;this._columns.push(We),We.isBand&&(this._columns=o(this,this._columns),We=this._columns[Ve]),We.added=Ie,re(this,We),this.updateColumns(this._dataSource),this._checkColumns()},deleteColumn:function(Ie){var gt,We=this.columnOption(Ie);if(We&&We.index>=0){if((gt=this._columns).forEach(Ct=>{Z(Ct.ownerBand)&&(Ct.ownerBand=gt[Ct.ownerBand])}),this._columns.splice(We.index,1),We.isBand){var Ve=this.getChildrenByBandColumn(We.index).map(Ct=>Ct.index);this._columns=this._columns.filter(Ct=>Ve.indexOf(Ct.index)<0)}re(this),this.updateColumns(this._dataSource)}},addCommandColumn:function(Ie){var We=this._commandColumns.filter(Ve=>Ve.command===Ie.command)[0];We||this._commandColumns.push(We=Ie)},getUserState:function(){var Ve,Ie=this._columns,We=[];function gt(Ct,Dt){void 0!==Ie[Ve][Dt]&&(We[Ve][Dt]=Ie[Ve][Dt])}for(Ve=0;Ve<Ie.length;Ve++)We[Ve]={},we(qN,gt);return We},setName:function(Ie){Ie.name=Ie.name||Ie.dataField||Ie.type},setUserState:function(Ie){var We=this._dataSource,Ve=this.option("stateStoring.ignoreColumnOptionNames");if(Ie?.forEach(this.setName),!Ve){Ve=[];var gt=this.getCommonSettings();this.option("columnChooser.enabled")||Ve.push("visible"),"none"===this.option("sorting.mode")&&Ve.push("sortIndex","sortOrder"),gt.allowGrouping||Ve.push("groupIndex"),gt.allowFixing||Ve.push("fixed","fixedPosition"),gt.allowResizing||Ve.push("width","visibleWidth");var Ct=!this.option("filterPanel.visible");!this.option("filterRow.visible")&&Ct&&Ve.push("filterValue","selectedFilterOperation"),!this.option("headerFilter.visible")&&Ct&&Ve.push("filterValues","filterType")}this._columnsUserState=Ie,this._ignoreColumnOptionNames=Ve,this._hasUserState=!!Ie,Te(this,"filtering"),this.init(!0),We&&(We.sort(this.getSortDataSourceParameters()),We.group(this.getGroupDataSourceParameters()))},_checkColumns:function(){var Ie={},We=!1,Ve=[];this._columns.forEach(gt=>{var Ct,Dt=gt.name,wt=null===(Ct=gt.columns)||void 0===Ct?void 0:Ct.length,rn=gt.allowEditing&&(gt.dataField||gt.setCellValue)&&!wt;Dt?(Ie[Dt]&&Ve.push('"'.concat(Dt,'"')),Ie[Dt]=!0):rn&&(We=!0)}),Ve.length&&Di.log("E1059",Ve.join(", ")),We&&Di.log("E1060")},_createCalculatedColumnOptions:function(Ie,We){var Ve={},gt=Ie.dataField;if((Array.isArray(Ie.columns)&&Ie.columns.length||Ie.isBand)&&(Ve.isBand=!0,gt=null),gt){if(Pn(gt)){var Ct=Ai(gt);Ve={caption:Oy(gt),calculateCellValue:function(Dt,wt){var rn=Ct(Dt);return this.deserializeValue&&!wt?this.deserializeValue(rn):rn},setCellValue:Bt,parseValue:function(Dt){var wt,rn;return"number"===this.dataType?Pn(Dt)&&this.format?wt=function(mn,Vn){var Yn=Gr.parse(mn);if(di(Yn)){var vi=Gr.format(Yn,Vn),Si=Gr.format(Yn,"decimal");if(vi===mn||Si===mn)return Yn}}(Dt.trim(),this.format):Z(Dt)&&di(Dt)&&(wt=Number(Dt)):"boolean"===this.dataType?Dt===this.trueText?wt=!0:Dt===this.falseText&&(wt=!1):vn.isDateType(this.dataType)?(rn=Gn.parse(Dt,this.format))&&(wt=rn):wt=Dt,wt}}}Ve.allowFiltering=!0}else Ve.allowFiltering=!!Ie.calculateFilterExpression;return Ve.calculateFilterExpression=function(){return OS.defaultCalculateFilterExpression.apply(this,arguments)},Ve.defaultFilterOperation="=",Ve.createFilterExpression=function(Dt){var wt;return this.calculateFilterExpression&&(wt=this.calculateFilterExpression.apply(this,arguments)),Yt(wt)&&(wt=[wt,"=",!0]),wt&&(wt.columnIndex=this.index,wt.filterValue=Dt),wt},(!gt||!Pn(gt))&&se(!0,Ve,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),We&&(Ve.allowFixing=!1),Ie.dataType&&(Ve.userDataType=Ie.dataType),Ie.selectedFilterOperation&&!("defaultSelectedFilterOperation"in Ve)&&(Ve.defaultSelectedFilterOperation=Ie.selectedFilterOperation),Ie.lookup&&(Ve.lookup={calculateCellValue:function(Dt,wt){return this.valueExpr&&(Dt=this.valueMap&&this.valueMap[Dt]),this.deserializeValue&&!wt?this.deserializeValue(Dt):Dt},updateValueMap:function(){if(this.valueMap={},this.items)for(var Dt=Ai(this.valueExpr),wt=Ai(this.displayExpr),rn=0;rn<this.items.length;rn++){var mn=this.items[rn],Vn=wt(mn);this.valueMap[Dt(mn)]=Vn,this.dataType=this.dataType||f(Vn)}},update:function(){var Dt=this,wt=Dt.dataSource;if(wt)if(Yt(wt)&&!Tu.isWrapped(wt)&&(wt=wt({})),wi(wt)||wt instanceof Hy||Array.isArray(wt)){if(Dt.valueExpr){var rn=t_(wt);return rn.paginate=!1,(wt=new Fl(rn)).load().done(function(mn){Dt.items=mn,Dt.updateValueMap&&Dt.updateValueMap()})}}else Di.log("E1016");else Dt.updateValueMap&&Dt.updateValueMap()}}),Ve.resizedCallbacks=Zi(),Ie.resized&&Ve.resizedCallbacks.add(Ie.resized.bind(Ie)),we(Ve,function(Dt){if(Yt(Ve[Dt])&&0!==Dt.indexOf("default")){var wt="default"+Dt.charAt(0).toUpperCase()+Dt.substr(1);Ve[wt]=Ve[Dt]}}),Ve},getRowCount:function(){return this._rowCount=this._rowCount||(We=1,gt=(Ie=this).getBandColumnsCache().columnParentByIndex,Ie._columns.forEach(function(Ct){var Dt=a(Ct.index,gt),wt=Dt.filter(function(rn){return!rn.visible});Ct.visible&&!wt.length&&(We=Math.max(We,Dt.length+1))}),We),this._rowCount;var Ie,We,gt},getRowIndex:function(Ie,We){var Ve=this._columns[Ie],gt=this.getBandColumnsCache();return Ve&&(We||Ve.visible&&!Ve.command&&!Z(Ve.groupIndex))?a(Ie,gt.columnParentByIndex).length:0},getChildrenByBandColumn:function(Ie,We){var Ve=this.getBandColumnsCache(),gt=s(Ie,Ve.columnChildrenByIndex,!We);return We?gt.filter(function(Ct){return Ct.visible&&!Ct.command}).sort(function(Ct,Dt){return Ct.visibleIndex-Dt.visibleIndex}):gt},isParentBandColumn:function(Ie,We){var Ve=!1,gt=this._columns[Ie],Ct=this.getBandColumnsCache(),Dt=gt&&a(Ie,Ct.columnParentByIndex);return Dt&&we(Dt,function(wt,rn){if(rn.index===We)return Ve=!0,!1}),Ve},isParentColumnVisible:function(Ie){var We=!0,Ve=this.getBandColumnsCache(),gt=Ie>=0&&a(Ie,Ve.columnParentByIndex);return gt&&we(gt,function(Ct,Dt){return We=We&&Dt.visible}),We},getColumnId:function(Ie){return Ie.command&&Ie.type===hv?St(this,Ie)?"type:"+Ie.type:"command:"+Ie.command:Ie.index},getCustomizeTextByDataType:L,getHeaderContentAlignment:function(Ie){return this.option("rtlEnabled")?"left"===Ie?"right":"left":Ie}};return Xn}())}};oi.registerModule("columns",{defaultOptions:function(){return se(!0,{},YN.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:YN.controllers});const DIe=oi.Controller.inherit(function(){function t(s,l){if(s&&(s=s.slice(0),l))for(var u=0;u<s.length;u++)s[u]=se({key:s[u].key},s[u]),s[u].items=t(s[u].items,l-1);return s}function n(s,l,u){var f={reload:!0,fullReload:!0};return l&&((f={sorting:!oi.equalSortParameters(s.sort,l.sort),grouping:!oi.equalSortParameters(s.group,l.group,!0),groupExpanding:!oi.equalSortParameters(s.group,l.group)||l.groupExpand,filtering:!oi.equalFilterParameters(s.filter,l.filter),pageIndex:s.pageIndex!==l.pageIndex,skip:s.skip!==l.skip,take:s.take!==l.take,pageSize:s.pageSize!==l.pageSize,fullReload:u,reload:!1,paging:!1}).reload=u||f.sorting||f.grouping||f.filtering,f.paging=f.pageIndex||f.pageSize||f.take),f}function e(s,l){var u=oi.normalizeSortingInfo(s.group||s.storeLoadOptions.group||s.loadOptions.group).length,f=[];if(i(f,s,u))return f;l&&function(S,T,R){var L=S.length,{storeLoadOptions:z}=T;if(void 0!==z.skip&&z.take&&!R){var j=[];i(j,T,R,!0);var ie,te,Y=j.length;(L||Y)&&(T.skip=null!==(ie=T.skip)&&void 0!==ie?ie:z.skip,T.take=null!==(te=T.take)&&void 0!==te?te:z.take),L&&(z.skip+=L,z.take-=L,T.cachedDataPartBegin=S),Y&&(z.take-=Y,T.cachedDataPartEnd=j.reverse())}}(f,s,u)}function i(s,l,u,f){var S,T,R,{storeLoadOptions:L}=l,z=null!==(S=null!==(T=l.take)&&void 0!==T?T:L.take)&&void 0!==S?S:0,j=null===(R=l.cachedData)||void 0===R?void 0:R.items;if(z&&j){for(var Y,ie,te=null!==(Y=null!==(ie=l.skip)&&void 0!==ie?ie:L.skip)&&void 0!==Y?Y:0,re=0;re<z;re++){var he=f?z-1-re:re,fe=he+te,Te=j[fe];if(void 0===Te&&fe in j)return!0;var Re=r(l,Te,u,he,z);if(!Re)return!1;s.push(Re)}return!0}return!1}function r(s,l,u,f,S){return u&&l?function L(z,j,Y,ie){if(j&&z){var te=mt({},z),re=Y[0]||0,he=ie[0],fe=z.items;if(fe){if(void 0===he&&!fe[re])return;te.items=[],Y.length&&(te.isContinuation=!0),ie.length&&(te.isContinuationOnNextPage=!0);for(var Te=0;void 0===he?fe[Te+re]:Te<he;Te++){var He=Te+1===he,Ze=L(fe[Te+re],j-1,0===Te?Y.slice(1):[],He?ie.slice(1):[]);if(void 0===Ze)return;te.items.push(Ze)}}return te}return z}(l,u,0===f&&s.skips||[],f===S-1&&s.takes||[]):l}function o(s,l,u,f){if(u&&l){var S=mt({},l);delete S.isContinuation,delete S.isContinuationOnNextPage;var T=f[0]||0;return l.items&&(S.items=s?.items||{},l.items.forEach((R,L)=>{var z=L+T,j=0===L?f.slice(1):[];S.items[z]=o(S.items[z],R,u-1,j)})),S}return l}var a={init:function(s,l){var u=this;u._dataSource=s,u._remoteOperations=l||{},u._isLastPage=!s.isLastPage(),u._hasLastPage=!1,u._currentTotalCount=0,u._cachedData={items:{}},u._lastOperationTypes={},u._eventsStrategy=s._eventsStrategy,u._totalCountCorrection=0,u._isLoadingAll=!1,u.changed=Zi(),u.loadingChanged=Zi(),u.loadError=Zi(),u.customizeStoreLoadOptions=Zi(),u.changing=Zi(),u.pushed=Zi(),u._dataChangedHandler=u._handleDataChanged.bind(u),u._customizeStoreLoadOptionsHandler=u._handleCustomizeStoreLoadOptions.bind(u),u._dataLoadedHandler=u._handleDataLoaded.bind(u),u._loadingChangedHandler=u._handleLoadingChanged.bind(u),u._loadErrorHandler=u._handleLoadError.bind(u),u._pushHandler=u._handlePush.bind(u),u._changingHandler=u._handleChanging.bind(u),s.on("changed",u._dataChangedHandler),s.on("customizeStoreLoadOptions",u._customizeStoreLoadOptionsHandler),s.on("customizeLoadResult",u._dataLoadedHandler),s.on("loadingChanged",u._loadingChangedHandler),s.on("loadError",u._loadErrorHandler),s.on("changing",u._changingHandler),s.store().on("beforePush",u._pushHandler),we(s,function(f,S){!u[f]&&Yt(S)&&(u[f]=function(){return this._dataSource[f].apply(this._dataSource,arguments)})})},remoteOperations:function(){return this._remoteOperations},dispose:function(s){var l=this._dataSource,u=l.store();l.off("changed",this._dataChangedHandler),l.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler),l.off("customizeLoadResult",this._dataLoadedHandler),l.off("loadingChanged",this._loadingChangedHandler),l.off("loadError",this._loadErrorHandler),l.off("changing",this._changingHandler),u&&u.off("beforePush",this._pushHandler),s||l.dispose()},refresh:function(s,l){var u=this._dataSource;l.reload&&(this.resetCurrentTotalCount(),this._isLastPage=!u.paginate(),this._hasLastPage=this._isLastPage)},resetCurrentTotalCount:function(){this._currentTotalCount=0,this._totalCountCorrection=0},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedData={items:{}}},_needClearStoreDataCache:function(){var s=this.remoteOperations(),l=n(this._lastLoadOptions||{},{});return!Object.keys(s).every(f=>!l[f]||!s[f])},push:function(s,l){var u=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&zy({keyInfo:u,data:this._cachedStoreData,changes:s}),l||this._applyBatch(s),this.pushed.fire(s)},getDataIndexGetter:function(){if(!this._dataIndexGetter){var s,l,u=this.store();this._dataIndexGetter=f=>{if(!s||l&&l!==this._cachedStoreData){l=this._cachedStoreData||[],s={};for(var T=0;T<l.length;T++)s[lg(u.keyOf(l[T]))]=T}return s[lg(u.keyOf(f))]}}return this._dataIndexGetter},_getKeyInfo:function(){return this.store()},_needToCopyDataObject:()=>!0,_applyBatch:function(s,l){var u=this._getKeyInfo(),f=this._dataSource,S=oi.normalizeSortingInfo(this.group()).length,T="reshape"===this.option("editing.refreshMode"),R="virtual"===this.option("scrolling.mode");s=s.filter(function(Y){return!f.paginate()||"insert"!==Y.type||void 0!==Y.index});var L=()=>S?this.itemsCount():this.items().length,z=L();zy({keyInfo:u,data:this._items,changes:s,groupCount:S,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),zy({keyInfo:u,data:f.items(),changes:s,groupCount:S,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(this._currentTotalCount>0||(l||!T)&&R)&&(this._totalCountCorrection+=L()-z),s.splice(0,s.length)},_handlePush:function(s){var{changes:l}=s;this.push(l,!0)},_handleChanging:function(s){this.changing.fire(s),this._applyBatch(s.changes,!0)},_needCleanCacheByOperation:function(s,l){var u=["filtering","sorting","paging"],f=u.indexOf(s);return(f>=0?u.slice(f):[s]).some(T=>l[T])},_customizeRemoteOperations:function(s,l){var u=this._cachedStoreData,f=this._cachedPagingData,S=this._cachedData;(s.storeLoadOptions.filter&&!s.remoteOperations.filtering||s.storeLoadOptions.sort&&!s.remoteOperations.sorting)&&(s.remoteOperations={filtering:s.remoteOperations.filtering,summary:s.remoteOperations.summary}),l.fullReload?(u=void 0,f=void 0,S={items:{}}):(l.reload?(f=void 0,S={items:{}}):l.groupExpanding&&(S={items:{}}),we(l,(T,R)=>{R&&this._needCleanCacheByOperation(T,s.remoteOperations)&&(u=void 0,f=void 0)})),f&&(s.remoteOperations.paging=!1),s.cachedStoreData=u,s.cachedPagingData=f,s.cachedData=S,s.isCustomLoading||(this._cachedStoreData=u,this._cachedPagingData=f,this._cachedData=S)},_handleCustomizeStoreLoadOptions(s){var l;this._handleDataLoading(s),0!==(null===(l=s.data)||void 0===l?void 0:l.length)&&(s.data=e(s,!0)||s.cachedStoreData)},_handleDataLoading:function(s){var l=this._dataSource,u=this._lastLoadOptions;this.customizeStoreLoadOptions.fire(s),s.delay=this.option("loadingTimeout"),s.originalStoreLoadOptions=s.storeLoadOptions,s.remoteOperations=se({},this.remoteOperations());var f=!this.isLoaded()&&!this._isRefreshing;this.option("integrationOptions.renderedOnServer")&&!this.isLoaded()&&(s.delay=void 0);var S=se({pageIndex:this.pageIndex(),pageSize:this.pageSize()},s.storeLoadOptions),T=n(S,u,f);if(this._customizeRemoteOperations(s,T),!s.isCustomLoading){var R=this._isRefreshing;s.pageIndex=l.pageIndex(),s.lastLoadOptions=S,s.operationTypes=T,this._loadingOperationTypes=T,this._isRefreshing=!0,Qt(R||this._isRefreshed||this.refresh(s,T)).done(()=>{this._lastOperationId===s.operationId&&(this._isRefreshed=!0,this.load().always(()=>{this._isRefreshed=!1}))}).fail(()=>{l.cancel(s.operationId)}).always(()=>{this._isRefreshing=!1}),l.cancel(this._lastOperationId),this._lastOperationId=s.operationId,this._isRefreshing&&l.cancel(this._lastOperationId)}this._handleDataLoadingCore(s)},_handleDataLoadingCore:function(s){var l=s.remoteOperations;s.loadOptions={};var u=s.cachedData.extra,f={filter:!l.filtering,sort:!l.sorting,group:!l.grouping,summary:!l.summary,skip:!l.paging,take:!l.paging,requireTotalCount:u&&"totalCount"in u||!l.paging};we(s.storeLoadOptions,function(S,T){f[S]&&(s.loadOptions[S]=T,delete s.storeLoadOptions[S])}),u&&(s.extra=u)},_handleDataLoaded:function(s){var l=s.loadOptions,u=s.remoteOperations&&!s.remoteOperations.paging,f=s.cachedData,S=s.storeLoadOptions,T=!1!==this.option("cacheEnabled")&&S,R=T&&!s.isCustomLoading&&f&&(!u||S.group),L=T&&u,z=L&&!s.isCustomLoading;if(l){u&&(s.skip=l.skip,s.take=l.take,delete l.skip,delete l.take),l.group&&(l.group=s.group||l.group);var Y,ie,j=oi.normalizeSortingInfo(s.group||S.group||l.group).length;s.cachedDataPartBegin&&(s.data=s.cachedDataPartBegin.concat(s.data)),s.cachedDataPartEnd&&(s.data=s.data.concat(s.cachedDataPartEnd)),R&&e(s)||(L&&s.cachedPagingData?s.data=t(s.cachedPagingData,j):(z&&(this._cachedStoreData?s.mergeStoreLoadData&&(s.data=this._cachedStoreData=this._cachedStoreData.concat(s.data)):this._cachedStoreData=t(s.data,oi.normalizeSortingInfo(S.group).length)),new cs(s.data).load(l).done(te=>{s.data=te,z&&(this._cachedPagingData=t(s.data,j))}).fail(te=>{s.data=(new et).reject(te)})),l.requireTotalCount&&u&&(s.extra=wi(s.extra)?s.extra:{},s.extra.totalCount=s.data.length),s.extra&&s.extra.totalCount>=0&&(!1===S.requireTotalCount||!1===l.requireTotalCount)&&(s.extra.totalCount=-1),!l.data&&(S.requireTotalCount||(null!==(Y=null===(ie=s.extra)||void 0===ie?void 0:ie.totalCount)&&void 0!==Y?Y:-1)>=0)&&(this._totalCountCorrection=0),this._handleDataLoadedCore(s),R&&(f.extra=f.extra||se({},s.extra),Qt(s.data).done(te=>{!function(re,he,fe){for(var Te,Re,He,Ze,{storeLoadOptions:at}=re,vt=null!==(Te=null!==(Re=re.skip)&&void 0!==Re?Re:at.skip)&&void 0!==Te?Te:0,Bt=null!==(He=null!==(Ze=re.take)&&void 0!==Ze?Ze:at.take)&&void 0!==He?He:0,St=0;St<Bt;St++){var ct=St+vt,Nt=re.cachedData.items;Nt[ct]=o(Nt[ct],he[St],fe,0===St&&re.skips||[])}}(s,te,j)}))),Qt(s.data).done(()=>{s.lastLoadOptions&&(this._lastLoadOptions=s.lastLoadOptions,Object.keys(s.operationTypes).forEach(te=>{this._lastOperationTypes[te]=this._lastOperationTypes[te]||s.operationTypes[te]}))}),s.storeLoadOptions=s.originalStoreLoadOptions}else this._dataSource.cancel(s.operationId)},_handleDataLoadedCore:function(s){s.remoteOperations&&!s.remoteOperations.paging&&Array.isArray(s.data)&&(void 0!==s.skip&&(s.data=s.data.slice(s.skip)),void 0!==s.take&&(s.data=s.data.slice(0,s.take)))},_handleLoadingChanged:function(s){this.loadingChanged.fire(s)},_handleLoadError:function(s){this.loadError.fire(s),this.changed.fire({changeType:"loadError",error:s})},_loadPageSize:function(){return this.pageSize()},_handleDataChanged:function(s){var l,u=this._dataSource,f=!1,S=!s||Z(s.changeType),T=this.itemsCount();S&&(this._isLastPage=!T||!this._loadPageSize()||T<this._loadPageSize(),this._isLastPage&&(this._hasLastPage=!0)),u.totalCount()>=0?u.pageIndex()>=this.pageCount()&&(u.pageIndex(this.pageCount()-1),this.pageIndex(u.pageIndex()),this.resetPagesCache(),u.load(),f=!0):S&&((l=u.pageIndex()*this.pageSize()+T)>this._currentTotalCount&&(this._currentTotalCount=l,(0===u.pageIndex()||!this.option("scrolling.legacyMode"))&&(this._totalCountCorrection=0)),0===T&&u.pageIndex()>=this.pageCount()&&(u.pageIndex(this.pageCount()-1),"infinite"!==this.option("scrolling.mode")&&(u.load(),f=!0))),f||(this._operationTypes=this._lastOperationTypes,this._lastOperationTypes={},this.component._optionCache={},this.changed.fire(s),this.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(s){var l=this;l._isCustomLoading=!0,s.always(function(){l._isCustomLoading=!1})},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},lastLoadOptions:function(){return this._lastLoadOptions||{}},isLastPage:function(){return this._isLastPage},_dataSourceTotalCount:function(){return this._dataSource.totalCount()},totalCount:function(){return parseInt((this._currentTotalCount||this._dataSourceTotalCount())+this._totalCountCorrection)},totalCountCorrection:function(){return this._totalCountCorrection},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var s=this._dataSource;return arguments.length||s.paginate()?s.pageSize.apply(s,arguments):0},pageCount:function(){var s=this.totalItemsCount()-this._totalCountCorrection,l=this.pageSize();return l&&s>0?Math.max(1,Math.ceil(s/l)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(s,l){var u=this._dataSource,f=new et;if(u)return(l=l||u.store()).load(s).done(function(S,T){S&&!Array.isArray(S)&&Array.isArray(S.data)&&(T=S,S=S.data),f.resolve(S,T)}).fail(f.reject),f},isCustomLoading:function(){return!!this._isCustomLoading},load:function(s){var L,z,l=this,u=l._dataSource,f=new et;if(s){var S=u.store(),T=u.loadOptions(),R={storeLoadOptions:s,isCustomLoading:!0};return we(S._customLoadOptions()||[],function(L,z){z in R.storeLoadOptions||(R.storeLoadOptions[z]=T[z])}),this._isLoadingAll=s.isLoadingAll,l._scheduleCustomLoadCallbacks(f),u._scheduleLoadCallbacks(f),l._handleCustomizeStoreLoadOptions(R),L=function(){if(!u.store())return f.reject("canceled");Qt(R.data||l.loadFromStore(R.storeLoadOptions)).done(function(L,z){R.data=L,R.extra=z||{},l._handleDataLoaded(R),s.requireTotalCount&&void 0===R.extra.totalCount&&(R.extra.totalCount=S.totalCount(R.storeLoadOptions)),Qt(R.data,R.extra.totalCount).done(function(j,Y){R.extra.totalCount=Y,f.resolve(j,R.extra)}).fail(f.reject)}).fail(f.reject)},z=l.option("loadingTimeout"),Z(z)?ky(L,z):L(),f.fail(function(){l._eventsStrategy.fireEvent("loadError",arguments)}).always(()=>{this._isLoadingAll=!1}).promise()}return u.load()},reload:function(s){return s?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}};return a}());var oY=DIe;const hk={extend:function(t){oY=oY.inherit(t)},create:function(t){return new oY(t)}};var ZN={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:Bo.Controller.inherit({}).include(bp).inherit(function(){var t=function(e,i,r){var o=e._dataSource;if(o){if(void 0!==r){if(e._getPagingOptionValue(i)!==r){"pageSize"===i&&o.pageIndex(0),o[i](r),e._skipProcessingPagingChange=!0,e.option("paging."+i,r),e._skipProcessingPagingChange=!1;var s=o.pageIndex();return e._isPaging="pageIndex"===i,o["pageIndex"===i?"load":"reload"]().done(()=>{e._isPaging=!1,e.pageChanged.fire(s)})}return et().resolve().promise()}return o[i]()}return 0},n={init:function(){var e=this;e._items=[],e._cachedProcessedItems=null,e._columnsController=e.getController("columns"),e._isPaging=!1,e._currentOperationTypes=null,e._dataChangedHandler=i=>{e._currentOperationTypes=this._dataSource.operationTypes(),e._handleDataChanged(i),e._currentOperationTypes=null},e._columnsChangedHandler=e._handleColumnsChanged.bind(e),e._loadingChangedHandler=e._handleLoadingChanged.bind(e),e._loadErrorHandler=e._handleLoadError.bind(e),e._customizeStoreLoadOptionsHandler=e._handleCustomizeStoreLoadOptions.bind(e),e._changingHandler=e._handleChanging.bind(e),e._dataPushedHandler=e._handleDataPushed.bind(e),e._columnsController.columnsChanged.add(e._columnsChangedHandler),e._isLoading=!1,e._isCustomLoading=!1,e._repaintChangesOnly=void 0,e._changes=[],e.createAction("onDataErrorOccurred"),e.dataErrorOccurred.add(function(i){return e.executeAction("onDataErrorOccurred",{error:i})}),e._refreshDataSource()},_getPagingOptionValue:function(e){return this._dataSource[e]()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged","pushed"]},callbackFlags:function(e){if("dataErrorOccurred"===e)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},_handleDataSourceChange(e){if(e.value===e.previousValue||this.option("columns")&&Array.isArray(e.value)&&Array.isArray(e.previousValue)){if(e.value!==e.previousValue){var r=this.store();r&&(r._array=e.value)}return this.needToRefreshOnDataSourceChange(e)&&this.refresh(this.option("repaintChangesOnly")),!0}return!1},needToRefreshOnDataSourceChange:function(e){return!0},optionChanged:function(e){var r,o,i=this;function a(){e.handled=!0}if("dataSource"===e.name&&e.name===e.fullName&&this._handleDataSourceChange(e))a();else switch(e.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":a();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":a(),i.reset();break;case"paging":if((r=i.dataSource())&&(o=i._setPagingOptions(r))){var s=r.pageIndex();this._isPaging=o.isPageIndexChanged,r.load().done(()=>{this._isPaging=!1,i.pageChanged.fire(s)})}a();break;case"rtlEnabled":i.reset();break;case"columns":(r=i.dataSource())&&r.isLoading()&&e.name===e.fullName&&(this._useSortingGroupingFromColumns=!0,r.load());break;default:i.callBase(e)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(e){return this.combinedFilter(void 0,e)},combinedFilter:function(e,i){var r=this._dataSource,o=this._columnsController;if(r){void 0===e&&(e=r.filter());var a=this._calculateAdditionalFilter();a&&(o.isDataSourceApplied()||o.isAllDataTypesDefined())&&(e=vn.combineFilters([a,e])),e=o.updateFilter(e,i||r.remoteOperations().filtering)}return e},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new et,this._readyDeferred):Qt()},_endUpdateCore:function(){var e=this._changes;if(e.length){this._changes=[];var i=e.every(r=>r.repaintChangesOnly);this.updateItems(1===e.length?e[0]:{repaintChangesOnly:i})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(e){var i,r=this._columnsController,o=this._dataSource,a=e.storeLoadOptions;e.isCustomLoading&&!a.isLoadingAll||(a.filter=this.combinedFilter(a.filter),1===(null===(i=a.filter)||void 0===i?void 0:i.length)&&"!"===a.filter[0]&&(e.data=[],e.extra=e.extra||{},e.extra.totalCount=0),r.isDataSourceApplied()||r.updateColumnDataTypes(o),this._columnsUpdating=!0,r.updateSortingGrouping(o,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,a.sort=r.getSortDataSourceParameters(),a.group=r.getGroupDataSourceParameters(),o.sort(a.sort),o.group(a.group),a.sort=r.getSortDataSourceParameters(!o.remoteOperations().sorting),e.group=r.getGroupDataSourceParameters(!o.remoteOperations().grouping))},_handleColumnsChanged:function(e){var a,s,l,i=this,r=e.changeTypes,o=e.optionNames;if(r.sorting||r.grouping)i._dataSource&&!i._columnsUpdating&&(i._dataSource.group(i._columnsController.getGroupDataSourceParameters()),i._dataSource.sort(i._columnsController.getSortDataSourceParameters()),i.reload());else if(r.columns&&(s=i._columnsController.columnOption(e.columnIndex,"filterValues"),(o.filterValues||o.filterType&&Array.isArray(s)||o.filterValue||o.selectedFilterOperation||o.allowFiltering)&&(a=i._columnsController.columnOption(e.columnIndex,"filterValue"),(Array.isArray(s)||void 0===e.columnIndex||Z(a)||!o.selectedFilterOperation||o.filterValue)&&(i._applyFilter(),l=!0)),!i._needApplyFilter&&!vn.checkChanges(o,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])&&i._columnsController.columnsChanged.add(function f(S){var T;i._columnsController.columnsChanged.remove(f),i.updateItems({repaintChangesOnly:!1,virtualColumnsScrolling:null==S||null===(T=S.changeTypes)||void 0===T?void 0:T.virtualColumnsScrolling})}),Z(o.visible))){var u=i._columnsController.columnOption(e.columnIndex);u&&(Z(u.filterValue)||Z(u.filterValues))&&(i._applyFilter(),l=!0)}!l&&r.filtering&&i.reload()},_handleDataChanged:function(e){var i=this,r=i._dataSource,o=i._columnsController,a=!1;this._useSortingGroupingFromColumns=!1,r&&!i._isDataSourceApplying&&(i._isDataSourceApplying=!0,Qt(i._columnsController.applyDataSource(r)).done(function(){i._isLoading&&i._handleLoadingChanged(!1),a&&e&&e.isDelayed&&(e.isDelayed=!1),i._isDataSourceApplying=!1;var l,s=i._needApplyFilter;i._needApplyFilter=!1,s&&!i._isAllDataTypesDefined&&(l=i._calculateAdditionalFilter())&&l.length?(Di.log("W1005",i.component.NAME),i._applyFilter()):i.updateItems(e,!0)}).fail(function(){i._isDataSourceApplying=!1}),i._isDataSourceApplying&&(a=!0,i._handleLoadingChanged(!0)),i._needApplyFilter=!i._columnsController.isDataSourceApplied(),i._isAllDataTypesDefined=o.isAllDataTypesDefined())},_handleLoadingChanged:function(e){this._isLoading=e,this._fireLoadingChanged()},_handleLoadError:function(e){this.dataErrorOccurred.fire(e)},_handleDataPushed:function(e){this.pushed.fire(e)},fireError:function(){this.dataErrorOccurred.fire(Di.Error.apply(Di,arguments))},_setPagingOptions:function(e){var i=this.option("paging.pageIndex"),r=this.option("paging.pageSize"),o=this.option("paging.enabled"),a=this.option("scrolling.mode"),s="infinite"===a,u=o||"virtual"===a||s,f=!1,S=!1,T=!1;return e.requireTotalCount(!s),void 0!==o&&e.paginate()!==u&&(e.paginate(u),f=!0),void 0!==r&&e.pageSize()!==r&&(e.pageSize(r),S=!0),void 0!==i&&e.pageIndex()!==i&&(e.pageIndex(i),T=!0),!!(f||S||T)&&{isPaginateChanged:f,isPageSizeChanged:S,isPageIndexChanged:T}},_getSpecificDataSourceOption:function(){var e=this.option("dataSource");return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("keyExpr")}}:e},_initDataSource:function(){var e=this._dataSource;this.callBase();var i=this._dataSource;if(this._useSortingGroupingFromColumns=!0,this._cachedProcessedItems=null,i){var r=this._setPagingOptions(i);this._isPaging=r?.isPageIndexChanged,this.setDataSource(i)}else e&&this.updateItems()},_loadDataSource:function(){var e=this,i=e._dataSource,r=new et;return Qt(this._columnsController.refresh(!0)).always(function(){i?i.load().done(function(){e._isPaging=!1,r.resolve.apply(r,arguments)}).fail(r.reject):r.resolve()}),r.promise()},_beforeProcessItems:function(e){return e.slice(0)},getRowIndexDelta:function(){return 0},getDataIndex:function(e){var i=this._items,r="append"===e.changeType&&i.length>0?i[i.length-1]:null;return Z(r?.dataIndex)?r.dataIndex+1:0},_processItems:function(e,i){var r=this,o=r.getRowIndexDelta(),u={visibleColumns:r._columnsController.getVisibleColumns(null,"loadingAll"===i.changeType),dataIndex:this.getDataIndex(i)},f=[];return we(e,function(S,T){Z(T)&&(u.rowIndex=S-o,T=r._processItem(T,u),f.push(T))}),f},_processItem:function(e,i){return e=this._generateDataItem(e,i),(e=this._processDataItem(e,i)).dataIndex=i.dataIndex++,e},_generateDataItem:function(e){return{rowType:"data",data:e,key:this.keyOf(e)}},_processDataItem:function(e,i){return e.values=this.generateDataValues(e.data,i.visibleColumns),e},generateDataValues:function(e,i,r){for(var a,o=[],s=0;s<i.length;s++){var l=i[s];a=r?void 0:null,l.command||(l.calculateCellValue?a=l.calculateCellValue(e):l.dataField&&(a=e[l.dataField])),o.push(a)}return o},_applyChange:function(e){"update"===e.changeType?this._applyChangeUpdate(e):this.items().length&&e.repaintChangesOnly&&"refresh"===e.changeType?this._applyChangesOnly(e):"refresh"===e.changeType&&this._applyChangeFull(e)},_applyChangeFull:function(e){this._items=e.items.slice(0)},_getRowIndices:function(e){var i=e.rowIndices.slice(0),r=this.getRowIndexDelta();i.sort(function(s,l){return s-l});for(var o=0;o<i.length;o++){var a=i[o];e.allowInvisibleRowIndices&&(a+=r),a<0&&(i.splice(o,1),o--)}return i},_applyChangeUpdate:function(e){var f,i=this,r=e.items,o=i._getRowIndices(e),a=i.getRowIndexDelta(),s=i.option("repaintChangesOnly"),l=-1,u=0;e.items=[],e.rowIndices=[],e.columnIndices=[],e.changeTypes=[];var S=function(T,R,L){var z=T&&R&&Tr(T.key,R.key);return z&&L&&(z=T.rowType===R.rowType&&("detail"!==R.rowType||T.isEditing===R.isEditing)),z};we(o,function(T,R){var L;if(l!==(R+=u+a)){l=R;var z=i._items[R],j=i._items[R+1],Y=r[R],ie=r[R+1],te=S(z,j)||S(Y,ie);if(Y&&(Y.rowIndex=R,e.items.push(Y)),z&&Y&&S(z,Y,te))f="update",i._items[R]=Y,z.visible!==Y.visible?e.items.splice(-1,1,{visible:Y.visible}):s&&!e.isFullUpdate&&(L=i._partialUpdateRow(z,Y,R-a));else if(Y&&!z||ie&&S(z,ie,te))f="insert",i._items.splice(R,0,Y),u++;else if(z&&!Y||j&&S(Y,j,te))f="remove",i._items.splice(R,1),u--,l=-1;else{if(!Y)return;f="update",i._items[R]=Y}e.rowIndices.push(R-a),e.changeTypes.push(f),e.columnIndices.push(L)}})},_isCellChanged:function(e,i,r,o,a){if(JSON.stringify(e.values[o])!==JSON.stringify(i.values[o]))return!0;function s(l,u){return!!l.modifiedValues&&void 0!==l.modifiedValues[u]}return s(e,o)!==s(i,o)},_getChangedColumnIndices:function(e,i,r,o){var a;if(e.rowType===i.rowType){if("group"!==i.rowType&&"groupFooter"!==i.rowType&&(a=[],"detail"!==i.rowType))for(var s=0;s<e.values.length;s++)this._isCellChanged(e,i,r,s,o)&&a.push(s);"group"===i.rowType&&i.isExpanded===e.isExpanded&&e.cells&&(a=e.cells.map((l,u)=>{var f;return"groupExpand"!==(null===(f=l.column)||void 0===f?void 0:f.type)?u:-1}).filter(l=>l>=0))}return a},_partialUpdateRow:function(e,i,r,o){var a,s=this._getChangedColumnIndices(e,i,r,o);return null!==(a=s)&&void 0!==a&&a.length&&this.option("dataRowTemplate")&&(s=void 0),s&&(e.cells&&e.cells.forEach(function(l,u){!(s.indexOf(u)>=0)&&l&&l.update&&l.update(i)}),i.update=e.update,i.watch=e.watch,i.cells=e.cells,o&&(i.oldValues=e.values),e.update&&e.update(i)),s},_isItemEquals:function(e,i){if(JSON.stringify(e.values)!==JSON.stringify(i.values)||["modified","isNewRow","removed","isEditing"].some(S=>e[S]!==i[S]))return!1;if("group"===e.rowType||"groupFooter"===e.rowType){var r,o,a,s,l=e.isExpanded===i.isExpanded,u=JSON.stringify(e.summaryCells)===JSON.stringify(i.summaryCells),f=(null===(r=e.data)||void 0===r?void 0:r.isContinuation)===(null===(o=i.data)||void 0===o?void 0:o.isContinuation)&&(null===(a=e.data)||void 0===a?void 0:a.isContinuationOnNextPage)===(null===(s=i.data)||void 0===s?void 0:s.isContinuationOnNextPage);if(!l||!u||!f)return!1}return!0},_applyChangesOnly:function(e){var i,r=[],o=[],a=[],s=[],l={},u=null===(i=e?.isLiveUpdate)||void 0===i||i;function f(L){if(L)return L.rowType+","+JSON.stringify(L.key)}var S=this._items,T=S.slice();e.items.forEach(function(L,z){var j=f(L);l[j]=z,L.rowIndex=z});var R=R0e(T,e.items,f,(L,z)=>!!this._isItemEquals(L,z)&&(L.cells&&(L.update&&L.update(z),L.cells.forEach(function(j){j&&j.update&&j.update(z,!0)})),!0));R?(R.forEach(L=>{switch(L.type){case"update":var z=L.index,j=L.data,ie=this._partialUpdateRow(L.oldItem,j,z,u);r.push(z),a.push("update"),s.push(j),S[z]=j,o.push(ie);break;case"insert":r.push(L.index),a.push("insert"),s.push(L.data),o.push(void 0),S.splice(L.index,0,L.data);break;case"remove":r.push(L.index),a.push("remove"),S.splice(L.index,1),s.push(L.oldItem),o.push(void 0)}}),e.repaintChangesOnly=!0,e.changeType="update",e.rowIndices=r,e.columnIndices=o,e.changeTypes=a,e.items=s,T.length&&(e.isLiveUpdate=!0),this._correctRowIndices(L=>{var z=this._rowIndexOffset||0,j=this.getRowIndexOffset(),ie=f(T[L-z]),te=l[ie];return te>=0?te+j-L:0})):this._applyChangeFull(e)},_correctRowIndices:Be,_afterProcessItems:function(e){return e},_updateItemsCore:function(e){var i,r=this._dataSource;if(e.changeType=e.changeType||"refresh",r){var a=this._cachedProcessedItems;e.useProcessedItemsCache&&a?i=a:(i=e.items||r.items(),i=this._beforeProcessItems(i),i=this._processItems(i,e),this._cachedProcessedItems=i),i=this._afterProcessItems(i,e),e.items=i;var s=this._items.length===i.length&&this._items;this._applyChange(e);var l=this.getRowIndexDelta();we(this._items,(u,f)=>{f.rowIndex=u-l,s&&(f.cells=s[u].cells||[]);var S=i[u];S&&(f.loadIndex=S.loadIndex)}),this._rowIndexOffset=this.getRowIndexOffset()}else this._items=[]},_handleChanging:function(e){var i=this.getVisibleRows();this.dataSource()&&e.changes.forEach(function(o){if("insert"===o.type&&o.index>=0){for(var a=0,s=0;s<o.index;s++){var l=i[s];l&&("data"===l.rowType||"group"===l.rowType)&&a++}o.index=a}})},updateItems:function(e,i){var r;if(e=e||{},void 0!==this._repaintChangesOnly)e.repaintChangesOnly=null!==(r=e.repaintChangesOnly)&&void 0!==r?r:this._repaintChangesOnly,e.needUpdateDimensions=e.needUpdateDimensions||this._needUpdateDimensions;else if(e.changes)e.repaintChangesOnly=this.option("repaintChangesOnly");else if(i){var o=this.dataSource().operationTypes();e.repaintChangesOnly=o&&!o.grouping&&!o.filtering&&this.option("repaintChangesOnly"),e.isDataChanged=!0,o&&(o.reload||o.paging||o.groupExpanding)&&(e.needUpdateDimensions=!0)}!this._updateLockCount||e.cancel?(this._updateItemsCore(e),!e.cancel&&this._fireChanged(e)):this._changes.push(e)},loadingOperationTypes:function(){var e=this.dataSource();return e&&e.loadingOperationTypes()||{}},_fireChanged:function(e){this._currentOperationTypes&&(e.operationTypes=this._currentOperationTypes,this._currentOperationTypes=null),Zo(()=>{this.changed.fire(e)})},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var e=this._dataSource;if(e)return e.pageIndex(0),this._isFilterApplying=!0,this.reload().done(()=>{this._isFilterApplying&&this.pageChanged.fire()})},resetFilterApplying:function(){this._isFilterApplying=!1},filter:function(e){var i=this._dataSource,r=i&&i.filter();if(0===arguments.length)return r;e=arguments.length>1?Array.prototype.slice.call(arguments,0):e,!vn.equalFilterParameters(r,e)&&(i&&i.filter(e),this._applyFilter())},clearFilter:function(e){var i=this,r=i._columnsController,o=function(a){for(var s=r.columnCount(),l=0;l<s;l++)r.columnOption(l,a,void 0)};if(i.component.beginUpdate(),arguments.length>0)switch(e){case"dataSource":i.filter(null);break;case"search":i.searchByText("");break;case"header":o("filterValues");break;case"row":o("filterValue")}else i.filter(null),i.searchByText(""),o("filterValue"),o("bufferedFilterValue"),o("filterValues");i.component.endUpdate()},_fireDataSourceChanged:function(){var e=this;e.changed.add(function i(){e.changed.remove(i),e.dataSourceChanged.fire()})},_getDataSourceAdapter:Be,_createDataSourceAdapterCore:function(e,i){var o=this._getDataSourceAdapter().create(this.component);return o.init(e,i),o},isLocalStore:function(e){return(e=e||this.store())instanceof cs},isCustomStore:function(e){return(e=e||this.store())instanceof bw},_createDataSourceAdapter:function(e){var i=this.option("remoteOperations"),r=e.store(),o={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return i&&i.groupPaging&&(i=se({},o,i)),"auto"===i&&(i=this.isLocalStore(r)||this.isCustomStore(r)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===i&&(i=o),this._createDataSourceAdapterCore(e,i)},setDataSource:function(e){var i=this._dataSource;!e&&i&&(i.cancelAll(),i.changed.remove(this._dataChangedHandler),i.loadingChanged.remove(this._loadingChangedHandler),i.loadError.remove(this._loadErrorHandler),i.customizeStoreLoadOptions.remove(this._customizeStoreLoadOptionsHandler),i.changing.remove(this._changingHandler),i.pushed.remove(this._dataPushedHandler),i.dispose(this._isSharedDataSource)),e&&(e=this._createDataSourceAdapter(e)),this._dataSource=e,e&&(this._fireDataSourceChanged(),this._isLoading=!e.isLoaded(),this._needApplyFilter=!0,this._isAllDataTypesDefined=this._columnsController.isAllDataTypesDefined(),e.changed.add(this._dataChangedHandler),e.loadingChanged.add(this._loadingChangedHandler),e.loadError.add(this._loadErrorHandler),e.customizeStoreLoadOptions.add(this._customizeStoreLoadOptionsHandler),e.changing.add(this._changingHandler),e.pushed.add(this._dataPushedHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var e=this._dataSource;return e&&e.store()},loadAll:function(e){var i=this,r=new et,o=i._dataSource;if(o)if(e){var a={data:e,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:i.getCombinedFilter(),group:o.group(),sort:o.sort()}};o._handleDataLoaded(a),Qt(a.data).done(function(l){l=i._beforeProcessItems(l),r.resolve(i._processItems(l,{changeType:"loadingAll"}),a.extra&&a.extra.summary)}).fail(r.reject)}else if(o.isLoading())r.reject();else{var s=se({},o.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});o.load(s).done(function(l,u){l=i._beforeProcessItems(l),l=i._processItems(l,{changeType:"loadingAll"}),r.resolve(l,u&&u.summary)}).fail(r.reject)}else r.resolve([]);return r},getKeyByRowIndex:function(e,i){var r=this.items(i)[e];if(r)return r.key},getRowIndexByKey:function(e,i){return vn.getIndexByKey(e,this.items(i))},keyOf:function(e){var i=this.store();if(i)return i.keyOf(e)},byKey:function(e){var o,i=this.store(),r=this.getRowIndexByKey(e);if(i)return r>=0&&(o=(new et).resolve(this.items()[r].data)),o||i.byKey(e)},key:function(){var e=this.store();if(e)return e.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(e){var i=this,r=new et,o=[],a=[];return we(e,function(s,l){o.push(i.byKey(l).done(function(u){a[s]=u}))}),Qt.apply(U,o).always(function(){r.resolve(a)}),r},pageIndex:function(e){return t(this,"pageIndex",e)},pageSize:function(e){return t(this,"pageSize",e)},beginCustomLoading:function(e){this._isCustomLoading=!0,this._loadingText=e||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(e){!0===e?e={reload:!0,changesOnly:!0}:e||(e={lookup:!0,selection:!0,reload:!0});var i=this,r=i.getDataSource(),o=e.changesOnly,a=new et,s=function(){i._repaintChangesOnly=!!o};return Qt(!e.lookup||i._columnsController.refresh()).always(function(){e.load||e.reload?(r&&r.on("customizeLoadResult",s),Qt(i.reload(e.reload,o)).always(function(){r&&r.off("customizeLoadResult",s),i._repaintChangesOnly=void 0}).done(a.resolve).fail(a.reject)):(i.updateItems({repaintChangesOnly:e.changesOnly}),a.resolve())}),a.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},repaintRows:function(e,i){((e=Array.isArray(e)?e:[e]).length>1||Z(e[0]))&&this.updateItems({changeType:"update",rowIndices:e,isFullUpdate:!i})},skipProcessingPagingChange:function(e){return this._skipProcessingPagingChange&&("paging.pageIndex"===e||"paging.pageSize"===e)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}},getCachedStoreData:function(){return this._dataSource&&this._dataSource.getCachedStoreData()},isLastPageLoaded:function(){return this.pageIndex()===this.pageCount()-1}};return vn.proxyMethod(n,"load"),vn.proxyMethod(n,"reload"),vn.proxyMethod(n,"push"),vn.proxyMethod(n,"itemsCount",0),vn.proxyMethod(n,"totalItemsCount",0),vn.proxyMethod(n,"hasKnownLastPage",!0),vn.proxyMethod(n,"isLoaded",!0),vn.proxyMethod(n,"totalCount",0),n}())}},nVt=ZN.controllers.data.inherit({_getDataSourceAdapter:function(){return hk},_getSpecificDataSourceOption:function(){var t=this.option("dataSource");return t&&!Array.isArray(t)&&this.option("keyExpr")&&Di.log("W1011"),this.callBase()}});oi.registerModule("data",{defaultOptions:ZN.defaultOptions,controllers:{data:nVt}});var OIe="dx-sort-none",TIe="dx-sort-index-icon";const aY={_applyColumnState:function(t){var n,e,i=this.option("sorting.mode"),r=t.rootElement,o=t.column,a=this._getIndicatorContainer(r);if("sort"===t.name){r.find(".dx-sort").remove(),!a.children().length&&a.remove();var s="none"!==i&&o.allowSorting;return Z(o.groupIndex)||!s&&!Z(o.sortOrder)||(n="asc"===o.sortOrder?"ascending":"descending",e=this.callBase(t).toggleClass("dx-sort-up","asc"===o.sortOrder).toggleClass("dx-sort-down","desc"===o.sortOrder),this.getController&&!!this.getController("columns").columnOption("sortIndex:1")&&this.option("sorting.showSortIndexes")&&o.sortIndex>=0&&(U("<span>").addClass(TIe).text(o.sortIndex+1).appendTo(e),e.addClass("dx-sort-index")),s&&t.rootElement.addClass(this.addWidgetPrefix("action"))),Z(o.sortOrder)?this.setAria("sort",n,r):this.setAria("sort","none",r),e}return this.callBase(t)},_getIndicatorClassName:function(t){return"sort"===t?"dx-sort":"sortIndex"===t?TIe:this.callBase(t)},_renderIndicator:function(t){var n=t.column,e=t.container,i=t.indicator;if("sort"===t.name){var r=this.option("rtlEnabled");if(Z(n.sortOrder)||i&&i.addClass(OIe),e.children().length&&(!r&&"left"===t.columnAlignment||r&&"right"===t.columnAlignment))return void e.prepend(i)}this.callBase(t)},_updateIndicator:function(t,n,e){if("sort"!==e||!Z(n.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(t,n){var e=this.callBase(t);return n?e:e&&e.not("."+OIe)}};var lVt=se({},aY,{_createRow(t){var n=this.callBase(t);return"header"===t.rowType&&Se.on(n,kt(Vi,"dxDataGridColumnHeadersView"),"td",this.createAction(e=>{this._processHeaderAction(e.event,n)})),n},_processHeaderAction:function(t,n){if(U(t.currentTarget).parent().get(0)===n.get(0)){var e=this,i=null,r=U(t.currentTarget),o=r.parent().index(),a=-1;[].slice.call(e.getCellElements(o)).some((T,R)=>{if(T===r.get(0))return a=R,!0});var l=e._columnsController.getVisibleColumns(o)[a],u=e.getController("editing"),f=e.option("editing.mode");u&&u.isEditing()&&("batch"===f||"cell"===f)||!e._isSortableElement(U(t.target))||l&&!Z(l.groupIndex)&&!l.command&&(t.shiftKey?i="shift":Xo(t)&&(i="ctrl"),setTimeout(()=>{e._columnsController.changeSortOrder(l.index,i)}))}},_renderCellContent(t,n){var e=n.column;!e.command&&"header"===n.rowType&&this._applyColumnState({name:"sort",rootElement:t,column:e,showColumnLines:this.option("showColumnLines")}),this.callBase.apply(this,arguments)},_columnOptionChanged(t){var n=t.changeTypes;1===n.length&&n.sorting?this._updateIndicators("sort"):this.callBase(t)},optionChanged(t){"sorting"===t.name?(this._invalidate(),t.handled=!0):this.callBase(t)}}),uVt=se({},aY,{_createGroupPanelItem(t,n){var e=this,i=e.callBase(...arguments);return Se.on(i,kt(Vi,"dxDataGridHeaderPanel"),e.createAction(()=>{e._processGroupItemAction(n.index)})),e._applyColumnState({name:"sort",rootElement:i,column:{alignment:e.option("rtlEnabled")?"right":"left",allowSorting:n.allowSorting,sortOrder:"desc"===n.sortOrder?"desc":"asc"},showColumnLines:!0}),i},_processGroupItemAction(t){setTimeout(()=>this.getController("columns").changeSortOrder(t))},optionChanged(t){"sorting"===t.name?(this._invalidate(),t.handled=!0):this.callBase(t)}}),IIe={defaultOptions:()=>({sorting:{mode:"single",ascendingText:ye.format("dxDataGrid-sortingAscendingText"),descendingText:ye.format("dxDataGrid-sortingDescendingText"),clearText:ye.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}),extenders:{views:{columnHeadersView:lVt,headerPanel:uVt}}};oi.registerModule("sorting",IIe);var sY="dx-group-row",kIe="dx-group-cell",pVt="dx-data-row",XN="dx-freespace-row",gVt="dx-row-lines",MIe="dx-column-lines",AIe="dx-row-alt",FIe="dx-last-row-border";function PIe(t){return t?Math.round(t.scrollWidth()-t.clientWidth()):0}var JN={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:ye.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},dataRowTemplate:null,columnAutoWidth:!1,noDataText:ye.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:dk.inherit(function(){var t=function(e,i){var r=oP(i.text)&&"data"===i.rowType,o=i.text,a=e.get(0);r?vn.setEmptyText(e):i.column.encodeHtml?a.textContent=o:a.innerHTML=o},n={_getDefaultTemplate:function(e){return"empty"===e.command?function(i){i.html("&nbsp;")}:t},_getDefaultGroupTemplate:function(e){var i=this.option("summary.texts");return function(r,o){var a=o.data,s=o.column.caption+": "+o.text,l=r.get(0);o.summaryItems&&o.summaryItems.length&&(s+=" "+vn.getGroupRowSummaryText(o.summaryItems,i)),a&&(o.groupContinuedMessage&&o.groupContinuesMessage?s+=" ("+o.groupContinuedMessage+". "+o.groupContinuesMessage+")":o.groupContinuesMessage?s+=" ("+o.groupContinuesMessage+")":o.groupContinuedMessage&&(s+=" ("+o.groupContinuedMessage+")")),r.addClass(kIe),e.encodeHtml?l.textContent=s:l.innerHTML=s}},_update:function(){},_getCellTemplate:function(e){var i=e.column;return"group"!==e.rowType||!Z(i.groupIndex)||i.showWhenGrouped||i.command?("data"===e.rowType||i.command)&&i.cellTemplate?i.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(i)}:i.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(i)}},_createRow:function(e){var i=this.callBase.apply(this,arguments);if(e){var r="group"===e.rowType,o="data"===e.rowType;if(o&&i.addClass(pVt),o&&this.option("showRowLines")&&i.addClass(gVt),this.option("showColumnLines")&&i.addClass(MIe),!1===e.visible&&i.hide(),r){i.addClass(sY);var a=e.isExpanded;this.setAria("role","row",i),this.setAria("expanded",Z(a)&&a.toString(),i)}}return i},_rowPrepared:function(e,i,r){"data"===i.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(r)&&e.addClass(AIe),i.watch&&i.watch(()=>this._isAltRow(r),o=>{e.toggleClass(AIe,o)})),this._setAriaRowIndex(i,e),i.watch&&i.watch(()=>i.rowIndex,()=>this._setAriaRowIndex(i,e))),this.callBase.apply(this,arguments)},_setAriaRowIndex:function(e,i){var r=this.component,o="standard"===r.option("scrolling.mode")&&!vn.isVirtualRowRendering(r),a=e.rowIndex+1;o?a=r.pageIndex()*r.pageSize()+a:a+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",a,i)},_afterRowPrepared:function(e){var i=e.args[0],r=this._dataController,o=r.getVisibleRows()[i.rowIndex],a=this.option("integrationOptions.watchMethod");if(i.data&&"data"===i.rowType&&!i.isNewRow&&this.option("twoWayBindingEnabled")&&a&&o){var s=a(()=>r.generateDataValues(i.data,i.columns),()=>{r.repaintRows([o.rowIndex],this.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});Se.on(i.rowElement,vg,s)}},_renderScrollable:function(e){var i=this.element();if(i.children().length||i.append("<div>"),(e||!this._loadPanel)&&this._renderLoadPanel(i,i.parent(),this._dataController.isLocalStore()),(e||!this.getScrollable())&&this._dataController.isLoaded()){for(var r=this.getColumns(),o=!0,a=0;a<r.length;a++)if(!r[a].width&&!r[a].minWidth){o=!1;break}(this.option("columnAutoWidth")||this._hasHeight||o||this._columnsController._isColumnFixing())&&this._renderScrollableCore(i)}},_handleScroll:function(e){var i=this.option("rtlEnabled"),r=e.component.option("useNative");this._scrollTop=e.scrollOffset.top,this._scrollLeft=e.scrollOffset.left;var o=e.scrollOffset.left;i&&(this._scrollRight=PIe(e.component)-this._scrollLeft,r&&(o=-this._scrollRight),this.isScrollbarVisible(!0)||(this._scrollLeft=-1)),this.scrollChanged.fire(mt({},e.scrollOffset,{left:o}),this.name)},_renderScrollableCore:function(e){var i=this._createScrollableOptions(),r=this._handleScroll.bind(this);i.onScroll=r,this._scrollable=this._createComponent(e,xd,i),this._scrollableContainer=this._scrollable&&U(this._scrollable.container())},_renderLoadPanel:vn.renderLoadPanel,_renderContent:function(e,i){return e.empty().append(i),this._findContentElement()},_updateContent:function(e,i){return this._waitAsyncTemplates(i).done(()=>{var r=this.getTableElement(),o=this._findContentElement(),a=i&&i.changeType,s=[],l=this.option("highlightChanges"),u=this.addWidgetPrefix("row-inserted-animation");"update"===a?(we(i.rowIndices,(f,S)=>{var T=this._getRowElements(e).eq(f),R=i.changeTypes&&i.changeTypes[f],L=i.items&&i.items[f];s.push(()=>{var z=this._getRowElements(),j=z.eq(S);switch(R){case"update":if(L){var Y=i.columnIndices&&i.columnIndices[f];Z(L.visible)&&L.visible!==j.is(":visible")?j.toggle(L.visible):Y?this._updateCells(j,T,Y):j.replaceWith(T)}break;case"insert":if(z.length)j.length?T.insertBefore(j):T.insertAfter(z.last());else if(r){var ie=T.is("tbody")?r:r.children("tbody");T.prependTo(ie)}l&&i.isLiveUpdate&&T.addClass(u);break;case"remove":j.remove()}})}),we(s,function(){this()}),e.remove()):(this.setTableElement(e),o.addClass(this.addWidgetPrefix("content")),this._renderContent(o,e))})},_createEmptyRow:function(e,i,r){var o,a=this._createRow(),s=i?this.getFixedColumns():this.getColumns();a.addClass(e).toggleClass(MIe,this.option("showColumnLines"));for(var l=0;l<s.length;l++)o=this._createCell({column:s[l],rowType:"freeSpace",columnIndex:l,columns:s}),di(r)&&o.css("height",r),a.append(o);return this.setAria("role","presentation",a),a},_appendEmptyRow:function(e,i,r){var o=this._getBodies(e),a=!o.length||i.is("tbody"),s=a?e:o;if("top"===r){if(s.first().prepend(i),a){var l=s.children("colgroup");s.prepend(l)}}else s.last().append(i)},_renderFreeSpaceRow:function(e,i){var r=this._createEmptyRow(XN);r=this._wrapRowIfNeed(e,r,"refresh"===i?.changeType),this._appendEmptyRow(e,r)},_checkRowKeys:function(e){var i=this,r=i._getRows(e),o=i._dataController.store()&&i._dataController.store().key();o&&r.some(function(a){if("data"===a.rowType&&void 0===a.key)return i._dataController.fireError("E1046",o),!0})},_needUpdateRowHeight:function(e){return e>0&&!this._rowHeight},_getRowsHeight:function(e){return(e=e||this._tableElement).children("tbody").children().not(".dx-virtual-row").not("."+XN).toArray().reduce(function(r,o){return r+Mi(o).height},0)},_updateRowHeight:function(){var e=this.getTableElement(),i=this._dataController.items().length;if(e&&this._needUpdateRowHeight(i)){var r=this._getRowsHeight(e);this._rowHeight=r/i}},_findContentElement:function(){var e=this.element(),i=this.getScrollable();if(e)return i&&(e=U(i.content())),e.children().first()},_getRowElements:function(e){var i=this.callBase(e);return i&&i.not("."+XN)},_getFreeSpaceRowElements:function(e){var i=e||this.getTableElements();return i&&i.children("tbody").children("."+XN)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(e){var i=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowClick",se({evaluate:function(r){return Ai(r)(i.data)}},e,i))},_rowDblClick:function(e){var i=this._dataController.items()[e.rowIndex]||{};this.executeAction("onRowDblClick",se({},e,i))},_getColumnsCountBeforeGroups:function(e){for(var i=0;i<e.length;i++)if("groupExpand"===e[i].type)return i;return 0},_getGroupCellOptions:function(e){var i=this._getColumnsCountBeforeGroups(e.columns),r=(e.row.groupIndex||0)+i;return{columnIndex:r,colspan:e.columns.length-r-1}},_needWrapRow:function(){return this.callBase.apply(this,arguments)||!!this.option("dataRowTemplate")},_renderCells:function(e,i){"group"===i.row.rowType?this._renderGroupedCells(e,i):i.row.values&&this.callBase(e,i)},_renderGroupedCells:function(e,i){for(var o,l,r=i.row,a=i.columns,s=r.rowIndex,u=this._getGroupCellOptions(i),f=0;f<=u.columnIndex;f++)f===u.columnIndex&&a[f].allowCollapsing&&"infinite"!==i.scrollingMode?(l=!!r.isExpanded,o=a[f]):(l=null,o={command:"expand",cssClass:a[f].cssClass}),this._needRenderCell(f,i.columnIndices)&&this._renderCell(e,{value:l,row:r,rowIndex:s,column:o,columnIndex:f,columnIndices:i.columnIndices,change:i.change});var S=Eg(this.option("rtlEnabled")),T=se({},a[u.columnIndex],{command:null,type:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:S});u.colspan>1&&(T.colspan=u.colspan),this._needRenderCell(u.columnIndex+1,i.columnIndices)&&this._renderCell(e,{value:r.values[r.groupIndex],row:r,rowIndex:s,column:T,columnIndex:u.columnIndex+1,columnIndices:i.columnIndices,change:i.change})},_renderRows:function(e,i){var r=this.option("scrolling.mode");this.callBase(e,se({scrollingMode:r},i)),this._checkRowKeys(i.change),this._renderFreeSpaceRow(e,i.change),this._hasHeight||this.updateFreeSpaceRowHeight(e)},_renderDataRowByTemplate(e,i,r){var o=i.row,a=se({columns:i.columns},o),s=this._createRow(o,"tbody");s.appendTo(e),this.renderTemplate(s,r,a,!0,i.change),this._rowPrepared(s,a,i.row)},_renderRow:function(e,i){var r=i.row,o=this.option().rowTemplate,a=this.option("dataRowTemplate");"data"===r.rowType&&a?this._renderDataRowByTemplate(e,i,a):"data"!==r.rowType&&"group"!==r.rowType||Z(r.groupIndex)||!o?this.callBase(e,i):this.renderTemplate(e,o,se({columns:i.columns},r),!0)},_renderTable:function(e){var i=this,r=i.callBase(e);return Z(i.getTableElement())?i._renderScrollable():(i.setTableElement(r),i._renderScrollable(!0),i.resizeCompleted.add(function o(){var a=i.getScrollable();a&&i.element().closest(Fn().document).length&&(i.resizeCompleted.remove(o),a._visibilityChanged(!0))})),r},_createTable:function(){var e=this.callBase.apply(this,arguments);return(this.option().rowTemplate||this.option().dataRowTemplate)&&e.appendTo(this.component.$element()),e},_renderCore:function(e){var i=this.element();i.addClass(this.addWidgetPrefix("rowsview")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")),i.toggleClass("dx-empty",this._dataController.isEmpty()),this.setAria("role","presentation",i);var r=this._renderTable({change:e}),o=this._updateContent(r,e);return this.callBase(e),this._lastColumnWidths=null,o},_getRows:function(e){return e&&e.items||this._dataController.items()},_getCellOptions:function(e){var i=e.column,r=e.row,o=r.data,a=r&&r.summaryCells,s=e.value,l=vn.getDisplayValue(i,s,o,r.rowType),u=this.callBase(e);if(u.value=s,u.oldValue=e.oldValue,u.displayValue=l,u.row=r,u.key=r.key,u.data=o,u.rowType=r.rowType,u.values=r.values,u.text=i.command?"":vn.formatValue(l,i),u.rowIndex=r.rowIndex,u.summaryItems=a&&a[e.columnIndex],u.resized=i.resizedCallbacks,Z(i.groupIndex)&&!i.command){var f=this.option("grouping.texts"),S=this.option("scrolling.mode");"virtual"!==S&&"infinite"!==S&&(u.groupContinuesMessage=o&&o.isContinuationOnNextPage&&f&&f.groupContinuesMessage,u.groupContinuedMessage=o&&o.isContinuation&&f&&f.groupContinuedMessage)}return u},_setRowsOpacityCore:function(e,i,r,o){var a=this._columnsController,s=a.getColumns(),l=s&&s[r],u=l&&l.isBand&&l.index;we(e,function(f,S){if(!U(S).hasClass(sY))for(var T=0;T<i.length&&(!(di(u)&&a.isParentBandColumn(i[T].index,u)||i[T].index===r)||(e.eq(f).children().eq(T).css({opacity:o}),di(u)));T++);})},_getDevicePixelRatio:function(){return Fn().devicePixelRatio},renderNoDataText:vn.renderNoDataText,getCellOptions:function(e,i){var o,a,r=this._dataController.items()[e];return r&&(a=Pn(i)?this._columnsController.columnOption(i):this._columnsController.getVisibleColumns()[i])&&(o=this._getCellOptions({value:a.calculateCellValue(r.data),rowIndex:r.rowIndex,row:r,column:a})),o},getRow:function(e){if(e>=0){var i=this._getRowElements();if(i.length>e)return U(i[e])}},updateFreeSpaceRowHeight:function(e){var i=this._dataController,r=i.items(!0).length,o=this._findContentElement(),a=this._getFreeSpaceRowElements(e);if(a&&o&&i.totalCount()>=0){var s=!1;if(r>0)if(this._hasHeight)a.hide(),Ns(()=>{var f=this.getScrollbarWidth(!0),S=Ln(this.element())-f,R=S-Zn(o)>0,L=this._getRowsHeight(o.children().first()),z=e||this.getTableElements(),ie=S-L-Math.ceil(parseFloat(z.css("borderTopWidth")))-this._getHeightCorrection();R&&Zo(()=>{a.css("height",ie),s=!0,a.show()}),Zo(()=>this._updateLastRowBorder(s))});else{var l=i.pageSize()-r,u=this.option("scrolling.mode");l>0&&i.pageCount()>1&&"virtual"!==u&&"infinite"!==u&&(JP(a,l*this._rowHeight),s=!0),!s&&e?JP(a,0):a.toggle(s),this._updateLastRowBorder(s)}else a.css("height",0),a.show(),this._updateLastRowBorder(!0)}},_getHeightCorrection:function(){var e=Ro.webkit&&this._getDevicePixelRatio()>=2,i=Ro.chrome&&Ro.version>=91,r=Ro.mozilla&&Ro.version>=70&&!this.option("showRowLines");return e||r||i?1:0},_columnOptionChanged:function(e){var i=e.optionNames;e.changeTypes.grouping||(i.width||i.visibleWidth)&&(this.callBase(e),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var e=this,i=e.getController("data");e.callBase(),e._editorFactoryController=e.getController("editorFactory"),e._rowHeight=0,e._scrollTop=0,e._scrollLeft=-1,e._scrollRight=0,e._hasHeight=!1,i.loadingChanged.add(function(r,o){e.setLoading(r,o)}),i.dataSourceChanged.add(()=>{this._scrollLeft>=0&&!this._dataController.isLoading()&&this._handleScroll({component:this.getScrollable(),forceUpdateScrollPosition:!0,scrollOffset:{top:this._scrollTop,left:this._scrollLeft}})})},_handleDataChanged:function(e){switch(e.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,e);break;default:this._update(e)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return wn(this.element())-this.getScrollbarWidth()},getScrollbarWidth:function(e){var a,i=this._scrollableContainer&&this._scrollableContainer.get(0),r=0;return i&&(e?(r=i.clientHeight?i.offsetHeight-i.clientHeight:0,r+=(a=this.getScrollable())?Math.ceil(parseFloat(U(a.content()).css("paddingBottom"))):0):r=i.clientWidth?i.offsetWidth-i.clientWidth:0),r>0?r:0},_fireColumnResizedCallbacks:function(){for(var e=this._lastColumnWidths||[],i=[],r=this.getColumns(),o=0;o<r.length;o++)i[o]=r[o].visibleWidth,r[o].resizedCallbacks&&!Z(r[o].groupIndex)&&e[o]!==i[o]&&r[o].resizedCallbacks.fire(i[o]);this._lastColumnWidths=i},_updateLastRowBorder:function(e){this.option("showBorders")&&this.option("showRowLines")&&!e?this.element().addClass(FIe):this.element().removeClass(FIe)},_updateScrollable:function(){var e=xd.getInstance(this.element());e&&(e.update(),(e.option("useNative")||null==e||!e.isRenovated())&&this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var e=this.getScrollable(),i=e&&e.scrollOffset().left;if(this.option("rtlEnabled")){var o=PIe(e);o-i!==this._scrollRight&&(this._scrollLeft=o-this._scrollRight)}this._scrollLeft>=0&&i!==this._scrollLeft&&e.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var e=this;e._fireColumnResizedCallbacks(),e._updateRowHeight(),Zo(function(){e._renderScrollable(),e.renderNoDataText(),e.updateFreeSpaceRowHeight(),Ns(function(){e._updateScrollable()})})},scrollTo:function(e){var i=this.element(),r=i&&xd.getInstance(i);r&&r.scrollTo(e)},height:function(e,i){var r=this,o=this.element();if(0===arguments.length)return o?Zn(o,!0):0;r._hasHeight=void 0===i?"auto"!==e:i,Z(e)&&o&&JP(o,e)},hasHeight:function(){return!!this._hasHeight},setLoading:function(e,i){var r=this._loadPanel,o=this._dataController,a=this.option("loadPanel")||{},s=o.isLoaded()?a.animation:null,l=this.element();if(Rn()&&(!r&&void 0!==i&&o.isLocalStore()&&"auto"===a.enabled&&l&&(this._renderLoadPanel(l,l.parent()),r=this._loadPanel),r)){var u={message:i||a.text,animation:s,visible:e};e&&(u.position=vn.calculateLoadPanelPosition(l)),clearTimeout(this._hideLoadingTimeoutID),r.option("visible")&&!e?this._hideLoadingTimeoutID=setTimeout(function(){r.option(u)},200):r.option(u)}},setRowsOpacity:function(e,i){var r=this._getRowElements().not("."+sY)||[];this._setRowsOpacityCore(r,this.getColumns(),e,i)},_getCellElementsCore:function(e){var i=this.callBase.apply(this,arguments);if(i){var r=i.filter("."+kIe).index();if(r>=0&&i.length>r+1)return i.slice(0,r+1)}return i},_getBoundaryVisibleItemIndex:function(e,i){var r=0,o=0,a=0,s=this._scrollTop,l=this._findContentElement(),u=l&&l.offset().top,S=this.getController("data").items(),T=this.getTableElement();if(S.length&&T){var R=this._getRowElements(T).filter(":visible");for(e||(s+=Zn(this._hasHeight?this.element():Fn())),r=0;r<S.length;r++){o=a;var z=U(R).eq(r);if(z.length&&(a=z.offset(),(a=(e?a.top:a.top+Zn(z))-u)>s)){r&&(i||2*s<Math.round(a+o))&&r--;break}}r&&r===S.length&&r--}return r},getTopVisibleItemIndex:function(e){return this._getBoundaryVisibleItemIndex(!0,e)},getBottomVisibleItemIndex:function(e){return this._getBoundaryVisibleItemIndex(!1,e)},getTopVisibleRowData:function(){var e=this.getTopVisibleItemIndex(),i=this._dataController.items();if(i[e])return i[e].data},_scrollToElement:function(e,i){var r=this.getScrollable();r&&r.scrollToElement(e,i)},optionChanged:function(e){switch(this.callBase(e),e.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"dataRowTemplate":case"twoWayBindingEnabled":this._invalidate(!0,!0),e.handled=!0;break;case"scrolling":this._rowHeight=null,this._tableElement=null,e.handled=!0;break;case"rtlEnabled":this._rowHeight=null,this._tableElement=null;break;case"loadPanel":this._tableElement=null,this._invalidate(!0,"loadPanel.enabled"!==e.fullName),e.handled=!0;break;case"noDataText":this.renderNoDataText(),e.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()},setScrollerSpacing:function(){},_restoreErrorRow:function(){}};return n}())}};oi.registerModule("rows",JN);var yVt={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},CVt=["columnHeadersView","rowsView","footerView","headerPanel"],bVt=Bo.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(t){if(!t)return!1;var i,r,o,a,n=this,e=U(t.target);return we(CVt,function(){var s=n.getView(this);if((i=s&&s.element())&&(i.is(e)||i.find(e).length)){var l,u;o=e.closest(".dx-row > td, .dx-row > tr"),r=o.parent();var f=s.getRowIndex(r),S=o[0]&&o[0].cellIndex,T=r.data("options"),R={event:t,targetElement:kn(e),target:yVt[this],rowIndex:f,row:s._getRows()[f],columnIndex:S,column:null==T||null===(l=T.cells)||void 0===l||null===(u=l[S])||void 0===u?void 0:u.column};if(R.items=s.getContextMenuItems&&s.getContextMenuItems(R),n.executeAction("onContextMenuPreparing",R),n._contextMenuPrepared(R),a=R.items)return!1}}),a},_contextMenuPrepared:Be}),xVt=Bo.View.inherit({_renderCore:function(){var t=this,n=t.element().addClass("dx-context-menu");this.setAria("role","presentation",n),this._createComponent(n,Zm,{onPositioning:function(e){var i=e.event,r=e.component,o=t.getController("contextMenu").getContextMenuItems(i);o?(r.option("items",o),i.stopPropagation()):e.cancel=!0},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:t.getWidgetContainerClass(),target:t.component.$element()})}}),RIe={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:bVt},views:{contextMenuView:xVt}};oi.registerModule("contextMenu",RIe);var pk="dx-error-row",LIe="dx-error-message",DVt=Bo.ViewController.inherit({init:function(){this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView")},_createErrorRow:function(t,n){var i,r,e=this,o=this._renderErrorMessage(t);return n?(i=U("<tr>").addClass(pk),r=U("<div>").addClass("dx-closebutton").addClass(e.addWidgetPrefix("action")),Se.on(r,Vi,e.createAction(function(a){var l,s=a.event,u=U(s.currentTarget).closest("."+pk).index();s.stopPropagation(),we(n,function(f,S){l=U(S).children("tbody").children("tr").eq(u),e.removeErrorRow(l)}),e.getController("resizing")&&e.getController("resizing").fireContentReadyAction()})),U("<td>").attr({colSpan:e.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(r).append(o).appendTo(i),i):o},_renderErrorMessage:function(t){var n=t.url?t.message.replace(t.url,""):t.message||t,e=U("<div>").addClass(LIe).text(n);return t.url&&U("<a>").attr("href",t.url).text(t.url).appendTo(e),e},renderErrorRow:function(t,n,e){var r,o,i=this;if(e)return e.find("."+LIe).remove(),r=i._createErrorRow(t),e.prepend(r),r;var a=n>=0||!i._columnHeadersView.isVisible()?i._rowsView:i._columnHeadersView,s=a.getTableElements();we(s,function(u,f){if(r=i._createErrorRow(t,s),o=o||r,n>=0){var S=a._getRowElements(U(f)).eq(n);i.removeErrorRow(S.next()),r.insertAfter(S)}else{var T=U(f).children("tbody"),R=T.children("tr");i._columnHeadersView.isVisible()?(i.removeErrorRow(R.last()),U(f).append(r)):(i.removeErrorRow(R.first()),T.first().prepend(r))}});var l=i.getController("resizing");return l&&l.fireContentReadyAction(),o},removeErrorRow:function(t){if(!t){var n=this._columnHeadersView&&this._columnHeadersView.element();if(!(t=n&&n.find("."+pk))||!t.length){var e=this._rowsView.element();t=e&&e.find("."+pk)}}t&&t.hasClass(pk)&&t.remove()},optionChanged:function(t){"errorRowEnabled"===t.name?t.handled=!0:this.callBase(t)}}),BIe={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:DVt},extenders:{controllers:{data:{init:function(){var t=this,n=t.getController("errorHandling");t.callBase(),t.dataErrorOccurred.add(function(e,i){t.option("errorRowEnabled")&&n.renderErrorRow(e,void 0,i)}),t.changed.add(function(e){if(!e||"loadError"!==e.changeType){var i=t.getController("errorHandling"),r=t.getController("editing");r&&!r.hasChanges()&&i&&i.removeErrorRow()}})}}}}};oi.registerModule("errorHandling",BIe);var VIe="dx-gridbase-container",QN="adaptiveHidden",lY=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],gk=function(t){return Pn(t)&&"%"===t.slice(-1)},HIe=function(t,n){var e=t._rowsView.contentWidth();return e-t._getTotalWidth(n,e)},AVt={_initPostRenderHandlers:function(){var t=this._dataController;this._refreshSizesHandler||(this._refreshSizesHandler=n=>{t.changed.remove(this._refreshSizesHandler),Qt.apply(this,n&&n.templateDeferreds||[]).done(()=>{this._refreshSizes(n)})},t.changed.add(()=>{t.changed.add(this._refreshSizesHandler)}))},_refreshSizes:function(t){var n,e=this,i=t&&t.changeType,r=t&&t.isDelayed,o=e._dataController.items();if(t&&"refresh"!==i&&"prepend"!==i&&"append"!==i){if("update"===i){var a;if(0===(null===(a=t.changeTypes)||void 0===a?void 0:a.length))return;!(o.length>1||"insert"!==t.changeTypes[0])||0===o.length&&"remove"===t.changeTypes[0]||t.needUpdateDimensions?n=e.resize():Ns(()=>Zo(()=>Ns(()=>{e._setScrollerSpacing(e._hasHeight),e._rowsView.resize()})))}}else r||(n=e.resize());i&&"updateSelection"!==i&&"updateFocusedRow"!==i&&"pageIndex"!==i&&!r&&Qt(n).done(function(){e._setAriaRowColCount(),e.fireContentReadyAction()})},fireContentReadyAction:function(){this.component._fireContentReadyAction()},_setAriaRowColCount:function(){var t=this.component;t.setAria({rowCount:this._dataController.totalItemsCount(),colCount:t.columnCount()},t.$element().children("."+VIe))},_getBestFitWidths:function(){var t,n=this._rowsView,e=this._columnHeadersView,i=n.getColumnWidths();if(null===(t=i)||void 0===t||!t.length){var r,o=e.getTableElement();e.setTableElement(null===(r=n.getTableElement())||void 0===r?void 0:r.children(".dx-header")),i=e.getColumnWidths(),e.setTableElement(o)}return i},_setVisibleWidths:function(t,n){var e=this._columnsController;e.beginUpdate(),we(t,function(i,r){var o=e.getColumnId(r);e.columnOption(o,"visibleWidth",n[i])}),e.endUpdate()},_toggleBestFitModeForView:function(t,n,e){if(t&&t.isVisible()){var i=this._rowsView.getTableElements(),r=t.getTableElements();we(i,(o,a)=>{var s,l=U(a),u=r.eq(o);u&&u.length&&((s=e?u.children("tbody").appendTo(l):l.children("."+n).appendTo(u)).toggleClass(n,e),s.toggleClass(this.addWidgetPrefix("best-fit"),e))})}},_toggleBestFitMode:function(t){var n=this._rowsView.getTableElement(),e=this._rowsView.getTableElements().eq(1);n&&(n.css("tableLayout",t?"auto":"fixed"),n.children("colgroup").css("display",t?"none":""),e.toggleClass(this.addWidgetPrefix("table-fixed"),!t),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",t),this._toggleBestFitModeForView(this._footerView,"dx-footer",t),this._toggleContentMinHeight(t),this._needStretch()&&(n.get(0).style.width=t?"auto":""))},_toggleContentMinHeight:function(t){if(this.option("wordWrapEnabled")){var n=this._rowsView.getScrollable(),e=this._rowsView._findContentElement();!1===n?.option("useNative")&&e.css({minHeight:t?vn.getContentHeightLimit(Ro):""})}},_synchronizeColumns:function(){var o,l,u,t=this._columnsController,n=t.getVisibleColumns(),e=this.option("columnAutoWidth"),i=this._needBestFit(),r=!1,a=!1,s=[];!i&&we(n,function(S,T){if("auto"===T.width)return i=!0,!1}),we(n,function(S,T){if(T.minWidth)return r=!0,!1}),this._setVisibleWidths(n,[]);var f=this.component.$element();i&&(l=It.getActiveElement(f.get(0)),u=vn.getSelectionRange(l),this._toggleBestFitMode(!0),o=!0),f&&f.get(0)&&this._maxWidth&&(delete this._maxWidth,f[0].style.maxWidth=""),Ns(()=>{var T;i?(s=this._getBestFitWidths(),we(n,function(T,R){var L=t.getColumnId(R);t.columnOption(L,"bestFitWidth",s[T],!0)})):r&&(s=this._getBestFitWidths()),we(n,function(T){var R=this.width;"auto"!==R&&(Z(R)?s[T]=di(R)||function(t){return Pn(t)&&"px"===t.slice(-2)}(R)?parseFloat(R):R:e||(s[T]=void 0))}),o&&(this._toggleBestFitMode(!1),o=!1,l&&l!==It.getActiveElement())&&(Mi(l).bottom<0||function(t,n){(function N3t(t){$N=!0,t.focus(),$N=!1})(t),vn.setSelectionRange(t,n)}(l,u)),a=this._correctColumnWidths(s,n),e&&(we(n,function(R,L){"groupExpand"===L.type&&(T=s[R])}),we(n,function(R,L){"groupExpand"===L.type&&T&&(s[R]=T)}),this._needStretch()&&this._processStretch(s,n)),Zo(()=>{(i||a)&&this._setVisibleWidths(n,s)})})},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this._columnsController.getVisibleColumns().some(t=>"auto"===t.width&&!t.command)},_getAverageColumnsWidth:function(t){return HIe(this,t)/t.filter(function(i){return void 0===i}).length},_correctColumnWidths:function(t,n){var i,e=this,r=!1,o=!1,a=!1,s=e.component.$element(),l=e._hasWidth,u=function(){var j=i,Y=n[j],ie=t[j]===QN,te=t[j],re=Y.minWidth;if(re)if(void 0===te){var he=e._getAverageColumnsWidth(t);te=he}else if(gk(te)){var fe=function(t,n,e,i){return HIe(t,i.map(function(r,o){return o===n?e:r}))}(e,j,re,t);fe<0&&(te=-1)}var Te=e._getRealColumnWidth(j,t.map(function(Re,He){return j===He?te:Re}));re&&!ie&&Te<re&&(t[j]=re,a=!0,i=-1),Z(Y.width)||(o=!0),gk(Y.width)&&(r=!0)};for(i=0;i<n.length;i++)u();if(!o&&t.length){var f=e._rowsView.element(),S=e._rowsView.contentWidth(),T=e._rowsView.getScrollbarWidth(),R=e._getTotalWidth(t,S);if(R<S){var L=vn.getLastResizableColumnIndex(n,t);if(L>=0&&(t[L]="auto",a=!0,!1===l&&!r)){var z=e.option("showBorders")?Math.ceil(ii(f)-e2(f)):0;e._maxWidth=R+T+z,s.css("maxWidth",e._maxWidth)}}}return a},_processStretch:function(t,n){var e=this._rowsView.contentWidth(),i=this._getTotalWidth(t,e),r={length:0};if(t.length){we(n,function(u){(this.width||t[u]===QN)&&(r[u]=!0,r.length++)});var o=e-i,a=Math.floor(o/(t.length-r.length)),s=o-a*(t.length-r.length);if(o>=0)for(var l=0;l<t.length;l++)r[l]||(t[l]+=a,s>0&&(s<1?(t[l]+=s,s=0):(t[l]++,s--)))}},_getRealColumnWidth:function(t,n,e){var i=1,r=n[t];if(!gk(r))return parseFloat(r);var o=n.reduce((u,f,S)=>gk(f)?u+parseFloat(f):u,0),a=n.reduce((u,f)=>!f||f===QN||gk(f)?u:u+parseFloat(f),0),s=(e=e||this._rowsView.contentWidth())-a,l=o*e/100;return a>0&&l+a>=e&&(i=l>s?s/l:1),parseFloat(r)*e*i/100},_getTotalWidth:function(t,n){for(var e=0,i=0;i<t.length;i++){var r=t[i];r&&r!==QN&&(e+=this._getRealColumnWidth(i,t,n))}return Math.ceil(e)},updateSize:function(t){var n,e,i=U(t),r=this.addWidgetPrefix("important-margin");void 0===this._hasHeight&&i&&i.is(":visible")&&wn(i)&&((n=i.children("."+this.getWidgetContainerClass())).length&&n.detach(),this._hasHeight=!!function(t){return t.get(0).clientHeight-parseFloat(t.css("paddingTop"))-parseFloat(t.css("paddingBottom"))}(i),e=wn(i),i.addClass(r),this._hasWidth=wn(i)===e,i.removeClass(r),n.length&&n.appendTo(i))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(t){var n=this;if(n._initPostRenderHandlers(),n._checkSize(t)){var e=n._resizeDeferred,i=n._resizeDeferred=new et;return Qt(e).always(function(){Zo(function(){n._dataController.isLoaded()&&n._synchronizeColumns(),n._resetGroupElementHeight(),Ns(function(){Zo(function(){Ns(function(){n._updateDimensionsCore()})})})}).done(i.resolve).fail(i.reject)}),i.promise()}},_resetGroupElementHeight:function(){var t=this.component.$element().children().get(0),n=this._rowsView.getScrollable();t&&t.style.height&&(!n||!n.scrollTop())&&(t.style.height="")},_checkSize:function(t){var n=this.component.$element();return!(t&&(this._lastWidth===wn(n)&&this._lastHeight===Ln(n)&&this._devicePixelRatio===Fn().devicePixelRatio||!n.is(":visible")))},_setScrollerSpacingCore:function(t){var n=this,e=t?n._rowsView.getScrollbarWidth():0,i=n._rowsView.getScrollbarWidth(!0);Zo(function(){n._columnHeadersView&&n._columnHeadersView.setScrollerSpacing(e),n._footerView&&n._footerView.setScrollerSpacing(e),n._rowsView.setScrollerSpacing(e,i)})},_setScrollerSpacing:function(t){!0===this.option("scrolling.useNative")?Zo(()=>{Ns(()=>{this._setScrollerSpacingCore(t)})}):this._setScrollerSpacingCore(t)},_updateDimensionsCore:function(){var S,t=this,n=t._dataController,e=t._rowsView,i=t.component.$element(),r=i.children().get(0),o=i&&(i.get(0).clientHeight||Ln(i)),a=parseInt(i.css("maxHeight")),s=a&&o>=a,l=t.option("height")||i.get(0).style.height,u=t.getController("editorFactory"),f=s&&r.scrollHeight===r.offsetHeight;t.updateSize(i);var T=t._hasHeight||s;l&&t._hasHeight^"auto"!==l&&(S=U("<div>"),xo(S,l),S.appendTo(i),t._hasHeight=!!Ln(S),S.remove()),Zo(function(){e.height(null,T),s&&!f&&U(r).css("height",a),n.isLoaded()?Ns(function(){t._updateLastSizes(i),t._setScrollerSpacing(T),we(lY,function(R,L){var z=t.getView(L);z&&z.resize()}),u&&u.resize()}):e.setLoading(n.isLoading())})},_updateLastSizes:function(t){this._lastWidth=wn(t),this._lastHeight=Ln(t),this._devicePixelRatio=Fn().devicePixelRatio},optionChanged:function(t){switch(t.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"renderAsync":return void(t.handled=!0);default:this.callBase(t)}},init:function(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._footerView=this.getView("footerView"),this._rowsView=this.getView("rowsView")}},FVt=Bo.ViewController.inherit(AVt),PVt=Bo.ViewController.inherit({_scrollChangedHandler:function(t,n,e){for(var i=0;i<t.length;i++)t[i]&&t[i].name!==e&&t[i].scrollTo({left:n.left,top:n.top})},init:function(){for(var t=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")],n=0;n<t.length;n++){var e=t[n];e&&e.scrollChanged.add(this._scrollChangedHandler.bind(this,t))}}}),RVt=Bo.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){this._resizingController=this.getController("resizing"),this._dataController=this.getController("data")},getView:function(t){return this.component._views[t]},element:function(){return this._groupElement},optionChanged:function(t){Z(this._groupElement)&&"showBorders"===t.name?(this._groupElement.toggleClass(this.addWidgetPrefix("borders"),!!t.value),t.handled=!0):this.callBase(t)},_renderViews:function(t){var n=this;we(lY,function(e,i){var r=n.getView(i);r&&r.render(t)})},_getTableRoleName:function(){return"grid"},render:function(t){var n=!this._groupElement,e=this._groupElement||U("<div>").addClass(this.getWidgetContainerClass());e.addClass(VIe),e.toggleClass(this.addWidgetPrefix("borders"),!!this.option("showBorders")),this.setAria("role","presentation",t),this.component.setAria({role:this._getTableRoleName(),label:ye.format(this._getWidgetAriaLabel())},e),this._rootElement=t||this._rootElement,n&&(this._groupElement=e,Rn()&&this.getController("resizing").updateSize(t),e.appendTo(t)),this._renderViews(e)},update:function(){var t=this._rootElement,n=this._groupElement,e=this.getController("resizing");t&&n&&(e.resize(),this._dataController.isLoaded()&&this._resizingController.fireContentReadyAction())}}),e9={defaultOptions:function(){return{showBorders:!1,renderAsync:!1}},controllers:{resizing:FVt,synchronizeScrolling:PVt},views:{gridView:RVt},VIEW_NAMES:lY};oi.registerModule("gridView",e9);var BVt=["dxAutocomplete","dxButton","dxCheckBox","dxDateBox","dxMenu","dxSelectBox","dxTabs","dxTextBox","dxButtonGroup","dxDropDownButton"];function t9(t,n){var e;if(t){var i=t._findItemElementByItem(n);if(i.length){var r=t._getItemData(i),o=!!(null!==(e=r.options)&&void 0!==e&&e.disabled||r.disabled||t.option("disabled")),{widget:a}=r;if(a&&-1!==BVt.indexOf(a)){var s=i.find(a.toLowerCase().replace("dx",".dx-"));if(s.length){var l,u,f=function(t){var n=t.data&&t.data(),e=n&&n.dxComponents,i=e&&e[0];return i&&n[i]}(s);if(!f)return;var T,S=null===(l=f._focusTarget)||void 0===l?void 0:l.call(f);S="dxDropDownButton"===a?S&&S.find(".".concat("dx-buttongroup")):null!==(T=S)&&void 0!==T?T:U(f.element());var R=null===(u=r.options)||void 0===u?void 0:u.tabIndex;S.attr("tabIndex",o?-1:R??0)}}}}}class HVt{constructor(n){this._toolbar=n}_initMarkup(){}_updateMenuVisibility(){}_renderMenuItems(){}_renderItem(){}_getMenuItems(){}_getToolbarItems(){var n;return null!==(n=this._toolbar.option("items"))&&void 0!==n?n:[]}_getItemsWidth(){return this._toolbar._getSummaryItemsWidth(this._toolbar.itemElements(),!0)}_arrangeItems(){var n=this._toolbar._$toolbarItemsContainer.find(".".concat("dx-toolbar-label")).eq(0);if(n.length){var e=wn(this._toolbar.$element()),i=ii(n)-wn(n);n.css("maxWidth",e-i)}}_hideOverflowItems(){}_dimensionChanged(){}_itemOptionChanged(){}_optionChanged(){}}var uY="dx-toolbar-menu-action",zIe="dx-toolbar-hidden-button-group",UIe="dx-toolbar-menu-section",WIe="dx-toolbar-menu-last-section";class WVt extends eB{_init(){super._init(),this._activeStateUnit=".".concat(uY,":not(.").concat(zIe,")")}_initMarkup(){this._renderSections(),super._initMarkup()}_getSections(){return this._itemContainer().children()}_itemElements(){return this._getSections().children(this._itemSelector())}_renderSections(){var n=this._itemContainer();we(["before","center","after","menu"],(e,i)=>{var r="_$".concat(i,"Section");this[r]||(this[r]=U("<div>").addClass(UIe)),this[r].appendTo(n)})}_renderItems(){super._renderItems.apply(this,arguments),this._updateSections()}_updateSections(){var n=this.$element().find(".".concat(UIe));n.removeClass(WIe),n.not(":empty").eq(-1).addClass(WIe)}_renderItem(n,e,i,r){var o,a=null!==(o=e.location)&&void 0!==o?o:"menu",s=this["_$".concat(a,"Section")],l=super._renderItem(n,e,s,r);return this._getItemTemplateName({itemData:e})&&l.addClass("dx-toolbar-menu-custom"),("menu"===a||"dxButton"===e.widget||"dxButtonGroup"===e.widget||e.isAction)&&l.addClass(uY),"dxButton"===e.widget&&l.addClass("dx-toolbar-hidden-button"),"dxButtonGroup"===e.widget&&l.addClass(zIe),l.addClass(e.cssClass),l}_getItemTemplateName(n){var e=super._getItemTemplateName(n),i=n.itemData;return i&&i.menuItemTemplate||e}_dataSourceOptions(){return{paginate:!1}}_itemClickHandler(n,e,i){U(n.target).closest(".".concat(uY)).length&&super._itemClickHandler(n,e,i)}_getAriaTarget(){var n;return null!==(n=this.option("_areaTarget"))&&void 0!==n?n:super._getAriaTarget()}_clean(){this._getSections().empty(),super._clean()}}let GIe=(()=>{class t extends Ss{_getToolbarName(){return"dxToolbar"}}return t.defaultOptions=function(n){Ss.defaultOptions(n)},t})();On("dxPopup",GIe);const dY=GIe;class ZVt extends tr{_supportedKeys(){var n={};return(!this.option("opened")||!this._list.option("focusedElement"))&&(n=this._button._supportedKeys()),se(super._supportedKeys(),n,{tab:function(){this._popup&&this._popup.hide()}})}_getDefaultOptions(){return se(super._getDefaultOptions(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",onButtonClick:null,activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,onItemRendered:null,closeOnClick:!0,useInkRipple:!1,container:void 0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}}})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return io()},options:{useInkRipple:!0,animation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}}])}_init(){super._init(),this.$element().addClass("dx-dropdownmenu"),this._initItemClickAction(),this._initButtonClickAction()}_initItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")}_initButtonClickAction(){this._buttonClickAction=this._createActionByOption("onButtonClick")}_initTemplates(){this._templateManager.addDefaultTemplates({content:new hT("content")}),super._initTemplates()}_initMarkup(){this._renderButton(),super._initMarkup()}_render(){super._render(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})}_renderContentImpl(){this.option("opened")&&this._renderPopup()}_clean(){this._cleanFocusState(),this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove(),delete this._list,delete this._popup}_renderButton(){var n=this.$element().addClass("dx-dropdownmenu-button");this._button=this._createComponent(n,To,{icon:"overflow",template:"content",useInkRipple:this.option("useInkRipple"),hoverStateEnabled:!1,focusStateEnabled:!1,onClick:e=>{this.option("opened",!this.option("opened")),this._buttonClickAction(e)}})}_toggleActiveState(n,e,i){this._button._toggleActiveState(n,e,i)}_toggleMenuVisibility(n){var e=n??!this._popup.option("visible");n&&this._renderPopup(),this._popup.toggle(e),this.setAria("expanded",e)}_renderPopup(){if(!this._$popup){this._$popup=U("<div>").appendTo(this.$element());var{rtlEnabled:n,container:e,animation:i}=this.option();this._popup=this._createComponent(this._$popup,"dxPopup",{onInitialized(r){var{component:o}=r;o.$wrapper().addClass("dx-dropdownmenu-popup-wrapper").addClass("dx-dropdownmenu-popup")},deferRendering:!1,contentTemplate:r=>this._renderList(r),_ignoreFunctionValueDeprecation:!0,maxHeight:()=>this._getMaxHeight(),position:{my:"top ".concat(n?"left":"right"),at:"bottom ".concat(n?"left":"right"),collision:"fit flip",offset:{v:3},of:this.$element()},animation:i,onOptionChanged:r=>{var{name:o,value:a}=r;"visible"===o&&this.option("opened",a)},container:e,autoResizeEnabled:!1,height:"auto",width:"auto",hideOnOutsideClick:r=>this._closeOutsideDropDownHandler(r),hideOnParentScroll:!0,shading:!1,dragEnabled:!1,showTitle:!1,fullScreen:!1,_fixWrapperPosition:!0})}}_getMaxHeight(){var n=this.$element(),e=n.offset().top,i=Zn(Fn()),r=Math.max(e,i-e-Zn(n));return Math.min(i,r-3-10)}_closeOutsideDropDownHandler(n){return!U(n.target).closest(this.$element()).length}_renderList(n){var e=U(n);e.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(e,WVt,{dataSource:this._getListDataSource(),pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:i=>{this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(i)},tabIndex:-1,focusStateEnabled:!1,activeStateEnabled:!0,onItemRendered:this.option("onItemRendered"),_areaTarget:this.$element(),_itemAttributes:{role:"menuitem"}})}_itemOptionChanged(n,e,i){var r;null===(r=this._list)||void 0===r||r._itemOptionChanged(n,e,i),t9(this._list,n)}_getListDataSource(){var n;return null!==(n=this.option("dataSource"))&&void 0!==n?n:this.option("items")}_setListDataSource(){var n;null===(n=this._list)||void 0===n||n.option("dataSource",this._getListDataSource()),delete this._deferRendering}_getKeyboardListeners(){return super._getKeyboardListeners().concat([this._list])}_toggleVisibility(n){super._toggleVisibility(n),this._button.option("visible",n)}_optionChanged(n){var e,i,r,{name:o,value:a}=n;switch(o){case"items":case"dataSource":this.option("opened")?this._setListDataSource():this._deferRendering=!0;break;case"itemTemplate":null===(e=this._list)||void 0===e||e.option(o,this._getTemplate(a));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"useInkRipple":this._invalidate();break;case"focusStateEnabled":null===(i=this._list)||void 0===i||i.option(o,a),super._optionChanged(n);break;case"onItemRendered":null===(r=this._list)||void 0===r||r.option(o,a);break;case"opened":this._deferRendering&&this._setListDataSource(),this._toggleMenuVisibility(a),this._updateFocusableItemsTabIndex();break;case"closeOnClick":break;case"container":this._popup&&this._popup.option(o,a);break;case"disabled":this._list&&this._updateFocusableItemsTabIndex();break;default:super._optionChanged(n)}}_updateFocusableItemsTabIndex(){this.option("items").forEach(n=>t9(this._list,n))}}var KIe="dx-state-invisible",n9="dx-toolbar-item-auto-hide",cY="dx-toolbar-item-invisible";class QVt{constructor(n){this._toolbar=n}_initMarkup(){Zo(()=>{this._renderOverflowMenu(),this._renderMenuItems()})}_renderOverflowMenu(){if(this._hasVisibleMenuItems()){this._renderMenuButtonContainer();var n=U("<div>").appendTo(this._overflowMenuContainer()),e=this._toolbar._createActionByOption("onItemClick"),i=this._toolbar._getTemplateByOption("menuItemTemplate");this._menu=this._toolbar._createComponent(n,ZVt,{disabled:this._toolbar.option("disabled"),itemTemplate:()=>i,onItemClick:r=>{e(r)},container:this._toolbar.option("menuContainer"),onOptionChanged:r=>{var{name:o,value:a}=r;"opened"===o&&this._toolbar.option("overflowMenuVisible",a),"items"===o&&this._updateMenuVisibility(a)}})}}renderMenuItems(){this._menu||this._renderOverflowMenu(),this._menu&&this._menu.option("items",this._getMenuItems()),this._menu&&!this._menu.option("items").length&&this._menu.option("opened",!1)}_renderMenuButtonContainer(){this._$overflowMenuContainer=U("<div>").appendTo(this._toolbar._$afterSection).addClass("dx-toolbar-button").addClass("dx-toolbar-menu-container")}_overflowMenuContainer(){return this._$overflowMenuContainer}_updateMenuVisibility(n){var e=n??this._getMenuItems(),i=e.length&&this._hasVisibleMenuItems(e);this._toggleMenuVisibility(i)}_toggleMenuVisibility(n){this._overflowMenuContainer()&&this._overflowMenuContainer().toggleClass(KIe,!n)}_renderMenuItems(){Zo(()=>{this.renderMenuItems()})}_dimensionChanged(){this.renderMenuItems()}_getToolbarItems(){var n;return Vs(null!==(n=this._toolbar.option("items"))&&void 0!==n?n:[],e=>!this._toolbar._isMenuItem(e))}_getMenuItems(){var n,e,i=Vs(null!==(n=this._toolbar.option("items"))&&void 0!==n?n:[],a=>this._toolbar._isMenuItem(a)),r=this._toolbar._itemContainer().children(".".concat(n9,".").concat(cY)).not(".".concat(KIe));return this._restoreItems=null!==(e=this._restoreItems)&&void 0!==e?e:[],[...[].slice.call(r).map(a=>{var s=this._toolbar._getItemData(a),l=U(a),u=l.children();return se({menuItemTemplate:()=>(this._restoreItems.push({container:l,item:u}),U("<div>").addClass(n9).append(u))},s)}),...i]}_hasVisibleMenuItems(n){var e=n??this._toolbar.option("items"),i=!1,r=Ai("visible"),o=Ai("locateInMenu");return we(e,function(a,s){var l=r(s,{functionsAsIs:!0}),u=o(s,{functionsAsIs:!0});(!1!==l&&("auto"===u||"always"===u)||"menu"===s.location)&&(i=!0)}),i}_arrangeItems(){var n;this._toolbar._$centerSection.css({margin:"0 auto",float:"none"}),we(null!==(n=this._restoreItems)&&void 0!==n?n:[],function(i,r){U(r.container).append(r.item)}),this._restoreItems=[];var e=wn(this._toolbar.$element());return this._hideOverflowItems(e),e}_hideOverflowItems(n){var e,i=this._toolbar.$element().find(".".concat(n9));if(i.length){n=null!==(e=n)&&void 0!==e?e:wn(this._toolbar.$element()),U(i).removeClass(cY);for(var r=this._getItemsWidth();i.length&&n<r;){var o=i.eq(-1);r-=ii(o),o.addClass(cY),i.splice(-1,1)}}}_getItemsWidth(){return this._toolbar._getSummaryItemsWidth([this._toolbar._$beforeSection,this._toolbar._$centerSection,this._toolbar._$afterSection])}_itemOptionChanged(n,e,i){var r;!this._toolbar._isMenuItem(n)||"disabled"!==e&&"options.disabled"!==e?this.renderMenuItems():null===(r=this._menu)||void 0===r||r._itemOptionChanged(n,e,i)}_renderItem(n,e){"auto"===n.locateInMenu&&e.addClass(n9)}_optionChanged(n,e){var i,r,o,a,s;switch(n){case"disabled":null===(i=this._menu)||void 0===i||i.option(n,e);break;case"overflowMenuVisible":null===(r=this._menu)||void 0===r||r.option("opened",e);break;case"onItemClick":null===(o=this._menu)||void 0===o||o.option(n,e);break;case"menuContainer":null===(a=this._menu)||void 0===a||a.option("container",e);break;case"menuItemTemplate":null===(s=this._menu)||void 0===s||s.option("itemTemplate",e)}}}class $Ie extends Qxt{_getDefaultOptions(){return se(super._getDefaultOptions(),{menuItemTemplate:"menuItem",menuContainer:void 0,overflowMenuVisible:!1,multiline:!1})}_isMultiline(){return this.option("multiline")}_dimensionChanged(n){"height"!==n&&(super._dimensionChanged(),this._layoutStrategy._dimensionChanged())}_initMarkup(){super._initMarkup(),this._updateFocusableItemsTabIndex(),this._layoutStrategy._initMarkup()}_renderToolbar(){super._renderToolbar(),this._renderLayoutStrategy()}_itemContainer(){return this._isMultiline()?this._$toolbarItemsContainer:super._itemContainer()}_renderLayoutStrategy(){this.$element().toggleClass("dx-toolbar-multiline",this._isMultiline()),this._layoutStrategy=this._isMultiline()?new HVt(this):new QVt(this)}_renderSections(){if(!this._isMultiline())return super._renderSections()}_postProcessRenderItems(){this._layoutStrategy._hideOverflowItems(),this._layoutStrategy._updateMenuVisibility(),super._postProcessRenderItems(),this._layoutStrategy._renderMenuItems()}_renderItem(n,e,i,r){var o=super._renderItem(n,e,i,r);this._layoutStrategy._renderItem(e,o);var{widget:a,showText:s}=e;return"dxButton"===a&&"inMenu"===s&&o.toggleClass("dx-toolbar-text-auto-hide"),o}_getItemsWidth(){return this._layoutStrategy._getItemsWidth()}_getMenuItems(){return this._layoutStrategy._getMenuItems()}_getToolbarItems(){return this._layoutStrategy._getToolbarItems()}_arrangeItems(){if(!this.$element().is(":hidden")){var n=this._layoutStrategy._arrangeItems();this._isMultiline()||super._arrangeItems(n)}}_itemOptionChanged(n,e,i){this._layoutStrategy._itemOptionChanged(n,e,i),this._isMenuItem(n)||super._itemOptionChanged(n,e,i),("disabled"===e||"options.disabled"===e)&&t9(this,n),"location"===e&&this.repaint()}_updateFocusableItemsTabIndex(){this._getToolbarItems().forEach(n=>t9(this,n))}_isMenuItem(n){return"menu"===n.location||"always"===n.locateInMenu}_isToolbarItem(n){return void 0===n.location||"never"===n.locateInMenu}_optionChanged(n){var{name:e,value:i}=n;switch(this._layoutStrategy._optionChanged(e,i),e){case"menuContainer":case"menuItemTemplate":case"overflowMenuVisible":break;case"multiline":this._invalidate();break;case"disabled":super._optionChanged.apply(this,arguments),this._updateFocusableItemsTabIndex();break;default:super._optionChanged.apply(this,arguments)}}updateDimensions(){this._dimensionChanged()}}On("dxToolbar",$Ie);const nb=$Ie;var qIe="toolbar-button",YIe=["addRowButton","applyFilterButton","columnChooserButton","exportButton","groupPanel","revertButton","saveButton","searchPanel"],r6t={_getToolbarItems:function(){return[]},_getButtonContainer:function(){return U("<div>").addClass(this.addWidgetPrefix(qIe))},_getToolbarButtonClass:function(t){var n=t?" "+t:"";return this.addWidgetPrefix(qIe)+n},_getToolbarOptions:function(){var t=this.option("toolbar"),n={toolbarOptions:{items:this._getToolbarItems(),visible:t?.visible,disabled:t?.disabled,onItemRendered:function(r){var o=r.itemData.onItemRendered;o&&o(r)}}},e=t?.items;if(n.toolbarOptions.items=this._normalizeToolbarItems(n.toolbarOptions.items,e),this.executeAction("onToolbarPreparing",n),n.toolbarOptions&&!Z(n.toolbarOptions.visible)){var i=n.toolbarOptions.items;n.toolbarOptions.visible=!(null==i||!i.length)}return n.toolbarOptions},_normalizeToolbarItems:function(t,n){t.forEach(a=>{if(!YIe.includes(a.name))throw new Error("Default toolbar item '".concat(a.name,"' is not added to DEFAULT_TOOLBAR_ITEM_NAMES"))});var e={location:"after"},i=Array.isArray(n);if(!Z(n))return t;i||(n=[n]);var r={};t.forEach(a=>{r[a.name]=a});var o=n.map(a=>(Pn(a)&&(a={name:a}),Z(a.name)&&(Z(r[a.name])?a=se(!0,{},r[a.name],a):YIe.includes(a.name)&&(a=mt({},a,{visible:!1}))),se(!0,{},e,a)));return i?o:o[0]},_renderCore:function(){if(this._toolbar)this._toolbar.option(this._toolbarOptions);else{var t=this.element();t.addClass(this.addWidgetPrefix("header-panel"));var n=ye.format(this.component.NAME+"-ariaToolbar"),e=U("<div>").attr("aria-label",n).appendTo(t);this._toolbar=this._createComponent(e,nb,this._toolbarOptions)}},_columnOptionChanged:Be,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(t,n){var e=this._toolbar;if(e){var i=e.option("items")||[],r=i.indexOf(i.filter(function(a){return a.name===t})[0]);if(r>=0){var o="items["+r+"]";e.option(o+".options")?e.option(o+".options.disabled",n):e.option(o+".disabled",n)}}},updateToolbarDimensions:function(){var t;null===(t=this._toolbar)||void 0===t||t.updateDimensions()},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(t){if("onToolbarPreparing"===t.name&&(this._invalidate(),t.handled=!0),"toolbar"===t.name&&(t.handled=!0,this._toolbar)){var n=Iy(t.fullName),e=t.fullName.replace(/^toolbar\./,"");if(1===n.length){var i=this._getToolbarOptions();this._toolbar.option(i)}else if("items"===n[1])if(2===n.length){var r=this._getToolbarOptions();this._toolbar.option("items",r.items)}else if(3===n.length){var o=this._normalizeToolbarItems(this._getToolbarItems(),t.value);this._toolbar.option(e,o)}else n.length>=4&&this._toolbar.option(e,t.value);else this._toolbar.option(e,t.value)}this.callBase(t)},isVisible:function(){return!(!this._toolbarOptions||!this._toolbarOptions.visible)},allowDragging:Be},hY={defaultOptions:function(){return{}},views:{headerPanel:dk.inherit(r6t)},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}};oi.registerModule("headerPanel",hY),oi.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","editingRowBased","editingFormBased","editingCellBased","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var pY=tr.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var t=this.callBase();return we(oi.modules,function(){Yt(this.defaultOptions)&&se(!0,t,this.defaultOptions())}),t},_setDeprecatedOptions:function(){this.callBase(),se(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"},rowTemplate:{since:"21.2",message:'Use the "dataRowTemplate" option instead'}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return io()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0},selection:{showCheckBoxesMode:"always"}}},{device:function(){return Ro.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(t){return"desktop"!==t.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){this.callBase(),oi.processModules(this,oi),oi.callModuleItemsMethod(this,"init")},_clean:Be,_optionChanged:function(t){oi.callModuleItemsMethod(this,"optionChanged",[t]),t.handled||this.callBase(t)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(t){t&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var t=this;Zo(function(){t._renderContentImpl()})},_getTemplate:function(t){var n=t;return Pn(n)&&"#"===n[0]&&(n=U(t),Ey.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),this.callBase(n)},_dispose:function(){this.callBase(),oi.callModuleItemsMethod(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),oi.callModuleItemsMethod(this,"beginUpdate")},endUpdate:function(){oi.callModuleItemsMethod(this,"endUpdate"),this.callBase()},getController:function(t){return this._controllers[t]},getView:function(t){return this._views[t]},focus:function(t){this.getController("keyboardNavigation").focus(t)}});pY.registerModule=oi.registerModule.bind(oi),On("dxDataGrid",pY);const l6t=pY;var u6t=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,d6t=function t(n){n&&we(n,function(e,i){if(wi(i)||Array.isArray(i))t(i);else if("string"==typeof i){var r=u6t.exec(i);r&&(n[e]=new Date(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4],+r[5],+r[6])))}})},ZIe=Bo.ViewController.inherit(function(){var t=function(e){var i="sessionStorage"===e.type?efe():Fn().localStorage;if(!i)throw new Error("E1007");return i},n=function(e){return Z(e.storageKey)?e.storageKey:"storage"};return{_loadState:function(){var e=this.option("stateStoring");if("custom"===e.type)return e.customLoad&&e.customLoad();try{return JSON.parse(t(e).getItem(n(e)))}catch(i){Di.log(i.message)}},_saveState:function(e){var i=this.option("stateStoring");if("custom"!==i.type)try{t(i).setItem(n(i),JSON.stringify(e))}catch(r){Di.log(r.message)}else i.customSave&&i.customSave(e)},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var e=this;return e._state={},e._isLoaded=!1,e._isLoading=!1,e._windowUnloadHandler=function(){void 0!==e._savingTimeoutID&&e._saveState(e.state())},Se.on(Fn(),"unload",e._windowUnloadHandler),e},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){this._isLoading=!0;var e=ra(this._loadState());return e.always(()=>{this._isLoaded=!0,this._isLoading=!1}).done(i=>{null!==i&&!pa(i)&&this.state(i)}),e},state:function(e){var i=this;if(!arguments.length)return se(!0,{},i._state);i._state=se({},e),d6t(i._state)},save:function(){var e=this;clearTimeout(e._savingTimeoutID),e._savingTimeoutID=setTimeout(function(){e._saveState(e.state()),e._savingTimeoutID=void 0},e.option("stateStoring.savingTimeout"))},optionChanged:function(e){"stateStoring"===e.name?(this.isEnabled()&&!this.isLoading()&&this.load(),e.handled=!0):this.callBase(e)},dispose:function(){clearTimeout(this._savingTimeoutID),Se.off(Fn(),"unload",this._windowUnloadHandler)}}}()),h6t=t=>{var n=t.getController("columns"),e=t.getController("selection"),i=t.getController("export"),r=t.getController("data");n&&n.columnsChanged.add(function(){t.updateState({columns:n.getUserState()})}),e&&e.selectionChanged.add(function(o){t.updateState({selectedRowKeys:o.selectedRowKeys,selectionFilter:o.selectionFilter})}),r&&(t._initialPageSize=t.option("paging.pageSize"),t._initialFilterValue=t.option("filterValue"),r.changed.add(function(){var o=(t=>{var n=t.getView("pagerView"),e=t.getController("data"),i={allowedPageSizes:n?n.getPageSizes():void 0,filterPanel:{filterEnabled:t.option("filterPanel.filterEnabled")},filterValue:t.option("filterValue"),focusedRowKey:t.option("focusedRowEnabled")?t.option("focusedRowKey"):void 0};return se(i,e.getUserState())})(t);t.updateState(o)})),i&&i.selectionOnlyChanged.add(function(){t.updateState({exportSelectionOnly:i.selectionOnly()})})},gY={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:ZIe},extenders:{views:{rowsView:{init:function(){var t=this,n=t.getController("data");t.callBase(),n.stateLoaded.add(function(){if(n.isLoaded()&&!n.getDataSource()){t.setLoading(!1),t.renderNoDataText();var e=t.component.getView("columnHeadersView");e&&e.render(),t.component._fireContentReadyAction()}})}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),h6t(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(t){var n=this.callBase.apply(this,arguments);return void 0!==t&&this.applyState(se(!0,{},t)),n},updateState:function(t){if(this.isEnabled()){var n=this.state(),e=se({},n,t),i=lg(n),r=lg(e);Tr(i,r)||(t=se(!0,{},t),se(this._state,t),this.save())}else se(this._state,t)},applyState:function(t){var n,e=t.allowedPageSizes,i=t.searchText,r=t.selectedRowKeys,o=t.selectionFilter,a=this.getController("export"),s=this.getController("columns"),l=this.getController("data"),u=this.option("scrolling.mode"),f="virtual"===u||"infinite"===u,S=!0===this.option("pager.visible")&&this.option("pager.showPageSizeSelector"),T=null===(n=this.getView("rowsView"))||void 0===n?void 0:n.hasHeight();this.component.beginUpdate(),s&&s.setUserState(t.columns),a&&a.selectionOnly(t.exportSelectionOnly),this.option("selection.deferred")||this.option("selectedRowKeys",r||[]),this.option("selectionFilter",o),e&&"auto"===this.option("pager.allowedPageSizes")&&(this.option("pager").allowedPageSizes=e),this.option("focusedRowEnabled")&&(this.option("focusedRowIndex",-1),this.option("focusedRowKey",t.focusedRowKey||null)),this.component.endUpdate(),this.option("searchPanel.text",i||""),this.option("filterValue",((t,n)=>{var e=t.getController("filterSync"),i=t.getController("columns");return e?n.columns||void 0!==n.filterValue?n.filterValue||e.getFilterValueFromColumns(n.columns):t._initialFilterValue||e.getFilterValueFromColumns(i.getColumns()):null})(this,t)),this.option("filterPanel.filterEnabled",!t.filterPanel||t.filterPanel.filterEnabled),this.option("paging.pageIndex",(!f||T)&&t.pageIndex||0),this.option("paging.pageSize",f&&!S||!Z(t.pageSize)?this._initialPageSize:t.pageSize),l&&l.reset()}},columns:{_shouldReturnVisibleColumns:function(){var t=this.callBase.apply(this,arguments),n=this.getController("stateStoring");return t&&(!n.isEnabled()||n.isLoaded())}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var t=this.callBase,n=this.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var e=new et;return this._restoreStateTimeoutID=setTimeout(()=>{n.load().always(()=>{this._restoreStateTimeoutID=null}).done(()=>{t.call(this),this.stateLoaded.fire(),e.resolve()}).fail(i=>{this.stateLoaded.fire(),this._handleLoadError(i||"Unknown error"),e.reject()})}),e.promise()}this.isStateLoading()||t.call(this)},isLoading:function(){var t=this.getController("stateStoring");return this.callBase()||t.isLoading()},isStateLoading:function(){return Z(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}},selection:{_fireSelectionChanged:function(t){var n=this.getController("stateStoring"),e=this.option("selection.deferred");n.isLoading()&&e||this.callBase.apply(this,arguments)}}}}};oi.registerModule("stateStoring",gY);var XIe="dx-editor-cell",JIe="dx-selection",ib="dx-select-checkbox",QIe="dx-command-select",eke="dx-data-row",lf="selection.showCheckBoxesMode",fk="selection.mode",tke=function(t,n){var e=t.getController("selection"),i=t.getView("rowsView"),r=U(n.target).closest("."+eke),o=i.getRowIndex(r);o<0||("onLongTap"===t.option(lf)?e.isSelectionWithCheckboxes()?e.stopSelectionWithCheckboxes():e.startSelectionWithCheckboxes():("onClick"===t.option(lf)&&e.startSelectionWithCheckboxes(),"always"!==t.option(lf)&&e.changeItemSelection(o,{control:!0})))},v6t=oi.Controller.inherit(function(){var t=(e,i)=>{var r=i.component,o=r.getView("rowsView");r.option("renderAsync")&&!r.option("selection.deferred")&&(i.value=r.isRowSelected(i.row.key)),o.renderSelectCheckBoxContainer(U(e),i)},n=(e,i)=>{var r=i.column,o=U(e),a=i.component.getView("columnHeadersView");o.addClass(XIe),a._renderSelectAllCheckBox(o,r),a._attachSelectAllCheckBoxClickEvent(o)};return{init:function(){var{deferred:e,selectAllMode:i,mode:r}=this.option("selection")||{};"infinite"===this.option("scrolling.mode")&&!e&&"multiple"===r&&"allPages"===i&&Di.log("W1018"),this._dataController=this.getController("data"),this._selectionMode=r,this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]}),this._dataController&&this._dataController.pushed.add(this._handleDataPushed.bind(this))},_handleDataPushed:function(e){var i=e.filter(r=>"remove"===r.type).map(r=>r.key);i.length&&this.deselectRows(i)},_getSelectionConfig:function(){var e=this._dataController,i=this.getController("columns"),r=this.option("selection")||{},o=r.deferred,a=this.option("scrolling.mode"),s="virtual"===a||"infinite"===a,l=this.option("selection.allowSelectAll"),u=this.option("scrolling.legacyMode");return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:o,maxFilterLengthInRequest:r.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),ignoreDisabledItems:!0,allowLoadByRange:function(){var f=i.getGroupColumns().length>0;return s&&!u&&!f&&l&&!o},key:function(){return e?.key()},keyOf:function(f){return e?.keyOf(f)},dataFields:function(){var f;return null===(f=e.dataSource())||void 0===f?void 0:f.select()},load:function(f){var S;return(null===(S=e.dataSource())||void 0===S?void 0:S.load(f))||(new et).resolve([])},plainItems:function(){return e.items(!0)},isItemSelected:function(f){return f.selected},isSelectableItem:function(f){return"data"===f?.rowType&&!f.isNewRow},getItemData:function(f){return Z(f?.rowType)?f?.oldData||f?.data:f},filter:function(){return e.getCombinedFilter(o)},totalCount:()=>e.totalCount(),getLoadOptions:function(f,S,T){var R,L,{sort:z,filter:j}=null!==(R=null===(L=e.dataSource())||void 0===L?void 0:L.lastLoadOptions())&&void 0!==R?R:{},Y=Math.min(f,S),ie=Math.max(f,S);return Z(T)&&(Y=Math.min(T,Y),ie=Math.max(T,ie)),{skip:Y,take:ie-Y+1,filter:j,sort:z}},onSelectionChanged:this._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var e=this.getController("columns"),i=this.isSelectColumnVisible();e.addCommandColumn({type:"selection",command:"select",visible:i,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:QIe,width:"auto",cellTemplate:t,headerCellTemplate:n}),e.columnOption("command:select","visible",i)},_createSelection:function(){var e=this._getSelectionConfig();return new cG(e)},_fireSelectionChanged:function(e){var i=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(i),e&&this.executeAction("onSelectionChanged",e)},_updateCheckboxesState:function(e){var i=e.isDeferredMode,r=e.selectionFilter,o=e.selectedItemKeys,a=e.removedItemKeys;"onClick"===this.option(lf)&&((i?r&&function(s,l){var u=0,f=s._dataController.store(),S=f&&f.key(),T=Array.isArray(S);if(!l.length)return!1;if(T&&Array.isArray(l[0])&&"and"===l[1]){for(var R=0;R<l.length;R++)if(Array.isArray(l[R])){if(l[R][0]!==S[u]||"="!==l[R][1])return!0;u++}return!1}return S!==l[0]}(this,r):o.length>1)?this.startSelectionWithCheckboxes():(i?r&&!r.length:0===o.length&&a.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(e){var i,r=this.option("selection.deferred"),o=this._selection.selectionFilter(),a=this._dataController,s=a.items(!0),l=a.items();if(s){var u=this.isSelectionWithCheckboxes(),f=this.getChangedItemIndexes(s),S=this.getChangedItemIndexes(l);this._updateCheckboxesState({selectedItemKeys:e.selectedItemKeys,removedItemKeys:e.removedItemKeys,selectionFilter:o,isDeferredMode:r}),(f.length||u!==this.isSelectionWithCheckboxes())&&a.updateItems({changeType:"updateSelection",itemIndexes:S}),r?(this.option("selectionFilter",o),i={}):(e.addedItemKeys.length||e.removedItemKeys.length)&&(this._selectedItemsInternalChange=!0,this.option("selectedRowKeys",e.selectedItemKeys.slice(0)),this._selectedItemsInternalChange=!1,i={selectedRowsData:e.selectedItems.slice(0),selectedRowKeys:e.selectedItemKeys.slice(0),currentSelectedRowKeys:e.addedItemKeys.slice(0),currentDeselectedRowKeys:e.removedItemKeys.slice(0)}),this._fireSelectionChanged(i)}},getChangedItemIndexes:function(e){for(var i=[],r=this.option("selection.deferred"),o=0,a=e.length;o<a;o++){var s=e[o],l=this.isRowSelected(r?s.data:s.key);this._selection.isDataItem(s)&&s.isSelected!==l&&i.push(o)}return i},callbackNames:function(){return["selectionChanged"]},optionChanged:function(e){switch(this.callBase(e),e.name){case"selection":var i=this._selectionMode;if(this.init(),"selection.showCheckBoxesMode"!==e.fullName){var r=this._selectionMode,o=this.option("selectedRowKeys");i!==r&&("single"===r?o.length>1&&(o=[o[0]]):"multiple"!==r&&(o=[])),this.selectRows(o).always(()=>{this._fireSelectionChanged()})}this.getController("columns").updateColumns(),e.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(e.value),e.handled=!0;break;case"selectedRowKeys":var a=e.value||[];Array.isArray(a)&&!this._selectedItemsInternalChange&&(this.component.getDataSource()||!a.length)&&this.selectRows(a),e.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(e){return this._selection.isItemSelected(e)},isSelectColumnVisible:function(){return"multiple"===this.option(fk)&&("always"===this.option(lf)||"onClick"===this.option(lf)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(lf)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var e=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&e.length?this.selectedItemKeys(e):(new et).resolve().promise()},selectedItemKeys:function(e,i,r,o){return this._selection.selectedItemKeys(e,i,r,o)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(e,i){return this.selectedItemKeys(e,i)},deselectRows:function(e){return this.selectedItemKeys(e,!0,!0)},selectRowsByIndexes:function(e){var i=this._dataController.items(),r=[];return Array.isArray(e)||(e=Array.prototype.slice.call(arguments,0)),we(e,function(){var o=i[this];o&&"data"===o.rowType&&r.push(o.key)}),this.selectRows(r)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(e,i,r){i=i||{},this.isSelectionWithCheckboxes()&&(i.control=!0);var o=e+this._dataController.getRowIndexOffset()-this._dataController.getRowIndexOffset(!0);return this._selection.changeItemSelection(o,i,r)},focusedItemIndex:function(e){if(!Z(e))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=e},isSelectionWithCheckboxes:function(){return"multiple"===this.option(fk)&&("always"===this.option(lf)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){return"multiple"===this.option(fk)&&!this.isSelectionWithCheckboxes()&&(this._isSelectionWithCheckboxes=!0,this._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){return!!this._isSelectionWithCheckboxes&&(this._isSelectionWithCheckboxes=!1,this._updateSelectColumn(),!0)}}}()),mk={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:v6t},extenders:{controllers:{data:{init:function(){var t=this.getController("selection"),n=this.option("selection.deferred");this.callBase.apply(this,arguments),n&&t._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var t=this;return t.callBase().done(function(){t.getController("selection").refresh()})},_processDataItem:function(t,n){var e=this,i=e.getController("selection"),r=i.isSelectColumnVisible(),o=n.isDeferredSelection=void 0===n.isDeferredSelection?this.option("selection.deferred"):n.isDeferredSelection,a=this.callBase.apply(this,arguments);if(a.isSelected=i.isRowSelected(o?a.data:a.key),r&&a.values)for(var s=0;s<n.visibleColumns.length;s++)if("select"===n.visibleColumns[s].command){a.values[s]=a.isSelected;break}return a},refresh:function(t){var n=this,e=new et;return this.callBase.apply(this,arguments).done(function(){!t||t.selection?n.getController("selection").refresh().done(e.resolve).fail(e.reject):e.resolve()}).fail(e.reject),e.promise()},_handleDataChanged:function(t){this.callBase.apply(this,arguments),(!t||"refresh"===t.changeType)&&!this._repaintChangesOnly&&this.getController("selection").focusedItemIndex(-1)},_applyChange:function(t){if(!t||"updateSelection"!==t.changeType)return this.callBase.apply(this,arguments);t.items.forEach((n,e)=>{var i=this._items[e];i&&(i.isSelected=n.isSelected,i.values=n.values)})},_endUpdateCore:function(){var t=this._changes,n=t.length>1&&t.every(i=>"updateSelection"===i.changeType);if(n){var e=t.map(i=>i.itemIndexes||[]).reduce((i,r)=>i.concat(r));this._changes=[{changeType:"updateSelection",itemIndexes:e}]}this.callBase.apply(this,arguments)}},contextMenu:{_contextMenuPrepared:function(t){var n=t.event;n.originalEvent&&"dxhold"!==n.originalEvent.type||t.items&&t.items.length>0||tke(this,n)}}},views:{columnHeadersView:{init:function(){this.callBase(),this.getController("selection").selectionChanged.add(this._updateSelectAllValue.bind(this))},_updateSelectAllValue:function(){var t=this.element(),n=t&&t.find("."+ib);if(t&&n.length&&"multiple"===this.option("selection.mode")){var e=this.getController("selection").isSelectAll(),i=!1!==e,r=this.option("selection.allowSelectAll")?!this.getController("data").isEmpty():i;n.dxCheckBox("instance").option({visible:r,value:e})}},_handleDataChanged:function(t){this.callBase(t),(!t||"refresh"===t.changeType||t.repaintChangesOnly&&"update"===t.changeType)&&this._updateSelectAllValue()},_renderSelectAllCheckBox:function(t,n){var e=this,i=e.getController("selection"),r=e.getController("data").isEmpty(),o=U("<div>").appendTo(t).addClass(ib);return e.setAria("label",ye.format("dxDataGrid-ariaSelectAll"),o),e.getController("editorFactory").createEditor(o,se({},n,{parentType:"headerRow",dataType:"boolean",value:i.isSelectAll(),editorOptions:{visible:!r&&(e.option("selection.allowSelectAll")||!1!==i.isSelectAll())},tabIndex:e.option("useLegacyKeyboardNavigation")?-1:e.option("tabIndex")||0,setValue:function(a,s){var l=e.option("selection.allowSelectAll");s.component.option("visible",l||!1!==s.component.option("value")),s.event&&i.isSelectAll()!==a&&(s.value&&!l?s.component.option("value",!1):s.value?i.selectAll():i.deselectAll(),s.event.preventDefault())}})),o},_attachSelectAllCheckBoxClickEvent:function(t){Se.on(t,Vi,this.createAction(function(n){var e=n.event;U(e.target).closest("."+ib).length||Se.trigger(U(e.currentTarget).children("."+ib),Vi),e.preventDefault()}))}},rowsView:{renderSelectCheckBoxContainer:function(t,n){"data"!==n.rowType||n.row.isNewRow?vn.setEmptyText(t):(t.addClass(XIe),this._attachCheckBoxClickEvent(t),this._renderSelectCheckBox(t,n))},_renderSelectCheckBox:function(t,n){var e=U("<div>").addClass(ib).appendTo(t);return this.setAria("label",ye.format("dxDataGrid-ariaSelectRow"),e),this.getController("editorFactory").createEditor(e,se({},n.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:n.value,setValue:function(i,r){var o;"keydown"===(null==r||null===(o=r.event)||void 0===o?void 0:o.type)&&Se.trigger(r.element,Vi,r)},row:n.row})),e},_attachCheckBoxClickEvent:function(t){Se.on(t,Vi,this.createAction(function(n){var e=this.getController("selection"),i=n.event,r=this.getRowIndex(U(i.currentTarget).closest(".dx-row"));r>=0&&(e.startSelectionWithCheckboxes(),e.changeItemSelection(r,{shift:i.shiftKey}),U(i.target).closest("."+ib).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[r]}))}))},_update:function(t){var n=this,e=n.getTableElements();"updateSelection"===t.changeType?e.length>0&&(we(e,function(i,r){we(t.itemIndexes||[],function(o,a){var s;if(t.items[a]&&(s=n._getRowElements(U(r)).eq(a)).length){var l=t.items[a].isSelected;s.toggleClass(JIe,void 0!==l&&l).find("."+ib).dxCheckBox("option","value",l),n.setAria("selected",l,s)}})}),n._updateCheckboxesClass()):n.callBase(t)},_createTable:function(){var t=this,n=t.option("selection.mode"),e=t.callBase.apply(t,arguments);return"none"!==n&&(("onLongTap"===t.option(lf)||!h_)&&Se.on(e,kt(Tm_name,"dxDataGridRowsView"),"."+eke,t.createAction(function(i){tke(t.component,i.event),i.event.stopPropagation()})),Se.on(e,"mousedown selectstart",t.createAction(function(i){var r=i.event;r.shiftKey&&r.preventDefault()}))),e},_createRow:function(t){var n=this.callBase.apply(this,arguments);if(t){var e=t.isSelected;e&&n.addClass(JIe);var i=this.option(fk);"none"!==i&&this.setAria("selected",e,n)}return n},_rowClick:function(t){var n=t.event,e=U(n.target).closest(".dx-selection-disabled").length;this.isClickableElement(U(n.target))||(!e&&("multiple"!==this.option(fk)||"always"!==this.option(lf))&&this.getController("selection").changeItemSelection(t.rowIndex,{control:Xo(n),shift:n.shiftKey})&&(n.preventDefault(),t.handled=!0),this.callBase(t))},isClickableElement:function(t){return!!t.closest("."+QIe).length},_renderCore:function(t){var n=this.callBase(t);return this._updateCheckboxesClass(),n},_updateCheckboxesClass:function(){var t=this.getTableElements(),n=this.getController("selection"),e=n.isSelectColumnVisible()&&!n.isSelectionWithCheckboxes();we(t,function(i,r){U(r).toggleClass("dx-select-checkboxes-hidden",e)})}}}}};oi.registerModule("selection",mk);var pv="dx-treeview",Md="".concat(pv,"-node"),Xm="".concat(Md,"-container"),fY="".concat(Md,"-loadindicator"),rb="".concat(Md,"-container-opened"),_k="".concat(Md,"-is-leaf"),zl="".concat(pv,"-item"),y6t="".concat(zl,"-with-checkbox"),C6t="".concat(zl,"-without-checkbox"),b6t="".concat(zl,"-data"),vk="".concat(pv,"-toggle-item-visibility"),x6t="".concat(pv,"-loadindicator"),w6t="".concat(pv,"-loadindicator-wrapper"),mY="".concat(pv,"-toggle-item-visibility-opened"),i9="".concat(pv,"-select-all-item"),nke="dx-state-invisible",yk="dx-state-disabled",_Y="dxTreeView_expand",r9="data-item-id",D6t=FTe.inherit({_supportedKeys:function(t){var n=r=>{var o=U(this.option("focusedElement"));o.length&&(r.target=o,r.currentTarget=o,this._itemClickHandler(r,o.children("."+zl)),this._getEventNameByOption(this.option("expandEvent"))===kt(Vi,_Y)&&this._expandEventHandler(r))},e=r=>{r.preventDefault();var o=U(this.option("focusedElement")),a=this._getCheckBoxInstance(o);if(!a.option("disabled")){var s=a.option("value");this._updateItemSelection(!s,o.find("."+zl).get(0),!0)}},i=function(r,o){if(this.option("expandAllEnabled")){o.preventDefault();var a=U(this.option("focusedElement"));if(a.length){var s=this._getItemData(a.find(".".concat(zl)));this._toggleExpandedNestedItems([s],r)}}};return se(this.callBase(),{enter:this._showCheckboxes()?e:n,space:this._showCheckboxes()?e:n,asterisk:i.bind(this,!0),minus:i.bind(this,!1)})},_toggleExpandedNestedItems:function(t,n){if(t)for(var e=0,i=t.length;e<i;e++){var r=t[e],o=this._dataAdapter.getNodeByItem(r);this._toggleExpandedState(o,n),this._toggleExpandedNestedItems(r.items,n)}},_getNodeElement:function(t,n){var e=this._encodeString(t.internalFields.key);if(n)return n.$nodeByKey||(n.$nodeByKey={},this.$element().find(".".concat(Md)).each(function(){var r=U(this),o=r.attr(r9);n.$nodeByKey[o]=r})),n.$nodeByKey[e]||U();var i=this.$element().get(0).querySelector("[".concat(r9,'="').concat(e,'"]'));return U(i)},_activeStateUnit:"."+zl,_widgetClass:function(){return pv},_getDefaultOptions:function(){var t=se(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:ye.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",useNativeScrolling:!0,virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null});return se(!0,t,{integrationOptions:{useDeferUpdateForTemplates:!1}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!xg},options:{useNativeScrolling:!1}}])},_initSelectedItems:Be,_syncSelectionOptions:fde,_fireSelectionChanged:function(){Qt(this._selectionChangePromise).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(t){this._selectAllValueChangedAction({value:t})},_checkBoxModeChange:function(t,n){if("none"!==n&&"none"!==t){var e=this._$selectAllItem&&this._$selectAllItem.length;switch(t){case"selectAll":e||(this._createSelectAllValueChangedAction(),this._renderSelectAllItem());break;case"normal":e&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}}else this.repaint()},_removeSelection:function(){var t=this;we(this._dataAdapter.getFullData(),function(n,e){t._hasChildren(e)&&t._dataAdapter.toggleSelection(e.internalFields.key,!1,!0)})},_optionChanged:function(t){var{name:n,value:e,previousValue:i}=t;switch(n){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",e);break;case"showCheckBoxesMode":this._checkBoxModeChange(e,i);break;case"scrollDirection":this.getScrollable().option("direction",e);break;case"useNativeScrolling":this.getScrollable().option("useNative",e);break;case"items":delete this._$selectAllItem,this.callBase(t);break;case"dataSource":this.callBase(t),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._initExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectionMode":this._initDataAdapter(),this.callBase(t);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",t.value),this.repaint();break;default:this.callBase(t)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(t){t&&t.length&&this.option("items",t)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var t=this._filter;t.custom||(t.custom=this._dataSource.filter()),t.internal||(t.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return Yt(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(t){var n=this.option("createChildren").call(this,t);return Array.isArray(n)?(new et).resolve(n).promise():n&&Yt(n.then)?ra(n):(new et).resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler:function(t){var n=this.option("items");this._initialized&&this._isVirtualMode()&&n.length||this.option("items",t)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=U("<div>").addClass(x6t),this._createComponent(this._treeViewLoadIndicator,bd,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(t){var n;if(this._isVirtualMode()&&(n=this._combineFilter(),this._dataSource.filter(n)),t&&!this._dataSource.isLoaded()){this.option("items",[]);var e=U("<div>").addClass(w6t);this._createTreeViewLoadIndicator().appendTo(e),this.itemsContainer().append(e),this._isVirtualMode()&&this._dataSource.filter()!==n&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",t=>{this.option().items=this.option("items").concat(t),this._dataAdapter.addItem(t),this._dataAdapter.isFiltered(t)&&this._updateLevel(this._parentIdGetter(t))}).on("removed",t=>{var n=this._dataAdapter.getNodeByKey(t);Z(n)&&(this.option("items")[this._dataAdapter.getIndexByKey(n.internalFields.key)]=0,this._markChildrenItemsToRemove(n),this._removeItems(),this._dataAdapter.removeItem(t),this._updateLevel(this._parentIdGetter(n)))})},_markChildrenItemsToRemove:function(t){we(t.internalFields.childrenKeys,(e,i)=>{this.option("items")[this._dataAdapter.getIndexByKey(i)]=0,this._markChildrenItemsToRemove(this._dataAdapter.getNodeByKey(i))})},_removeItems:function(){var t=se(!0,[],this.option("items")),n=0;we(t,(e,i)=>{i||(this.option("items").splice(e-n,1),n++)})},_updateLevel:function(t){var n=this._getContainerByParentKey(t);this._renderItems(n,this._dataAdapter.getChildrenNodes(t))},_getOldContainer:function(t){if(t.length)return t.children(".".concat(Xm));var n=this.getScrollable();return n?U(n.content()).children():U()},_getContainerByParentKey:function(t){var n=this._dataAdapter.getNodeByKey(t),e=n?this._getNodeElement(n):[];this._getOldContainer(e).remove();var i=this._renderNodeContainer(e);if(this._isRootLevel(t)){var r=this.getScrollable();r||this._renderScrollableContainer(),U(r.content()).append(i)}return i},_isRootLevel:function(t){return t===this.option("rootValue")},_getAccessors:function(){var t=this.callBase();return t.push("hasItems"),t},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var t=this._renderNodeContainer();U(this.getScrollable().content()).append(t),this.option("items")&&this.option("items").length&&(this._renderItems(t,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(t)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var t=this.getDataSource(),n=t&&!t.isLoaded()||this._skipContentReadyAndItemExpanded,e=this.getScrollable();e&&Rn()&&e.update(),n||this.callBase(),e&&Rn()&&e.update()},_renderScrollableContainer:function(){this._scrollable=this._createComponent(U("<div>").appendTo(this.$element()),xd,{useNative:this.option("useNativeScrolling"),direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(t){var n=U("<ul>").addClass(Xm);if(this.setAria("role","group",n),t&&t.length){var e=this._getItemData(t.children("."+zl));this._expandedGetter(e)&&n.addClass(rb),n.appendTo(t)}return n},_createDOMElement:function(t,n){var e=U("<li>").addClass(Md).attr(r9,this._encodeString(n.internalFields.key)).prependTo(t);return this.setAria({role:"treeitem",label:this._displayGetter(n.internalFields.item)||"",expanded:n.internalFields.expanded||!1,level:this._getLevel(t)},e),e},_getLevel:function(t){var n=t.parent();return n.hasClass("dx-scrollable-content")?1:parseInt(n.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")&&!this._isSingleSelection()},_renderItems:function(t,n){for(var i=n.length-1;i>=0;i--)this._renderItem(i,n[i],t);this._renderedItemsCount+=n.length},_renderItem:function(t,n,e){var i=this._createDOMElement(e,n),r=n.internalFields,o=this._showCheckboxes();i.addClass(o?y6t:C6t),i.toggleClass(nke,!1===r.item.visible),o&&this._renderCheckBox(i,n),this.setAria("selected",r.selected,i),this._toggleSelectedClass(i,r.selected),this.callBase(this._renderedItemsCount+t,r.item,i),!1!==r.item.visible&&this._renderChildren(i,n)},_setAriaSelected:function(){},_renderChildren:function(t,n){this._hasChildren(n)?(this._renderToggleItemVisibilityIcon(t,n),(!this.option("deferRendering")||n.internalFields.expanded)&&this._loadSublevel(n).done(e=>{this._renderSublevel(t,this._getActualNode(n),e)})):this._addLeafClass(t)},_getActualNode:function(t){return this._dataAdapter.getNodeByKey(t.internalFields.key)},_hasChildren:function(t){return this._isVirtualMode()||this._useCustomChildrenLoader()?!1!==this._hasItemsGetter(t.internalFields.item):this.callBase(t)},_loadSublevel:function(t){var n=new et,e=this._getChildNodes(t);return e.length?n.resolve(e):this._loadNestedItems(t).done(i=>{n.resolve(this._dataAdapter.getNodesByItems(i))}),n.promise()},_renderSublevel:function(t,n,e){var i=this._renderNodeContainer(t,n),r=e.filter(a=>-1!==n.internalFields.childrenKeys.indexOf(a.internalFields.key));if(this._renderItems(i,r),r.length&&!n.internalFields.selected){var o=r[0];this._updateParentsState(o,this._getNodeElement(o))}this._normalizeIconState(t,r.length),n.internalFields.expanded&&i.addClass(rb)},_executeItemRenderAction:function(t,n,e){var i=this._getNode(e);this._getItemRenderAction()({itemElement:e,itemIndex:t,itemData:n,node:this._dataAdapter.getPublicNode(i)})},_addLeafClass:function(t){t.addClass(_k)},_expandEventHandler:function(t){U(t.currentTarget.parentNode).hasClass(_k)||this._toggleExpandedState(t.currentTarget,void 0,t)},_initExpandEvent:function(){var t=this._getEventNameByOption(this.option("expandEvent")),n=this._itemContainer(),e=this._itemSelector();Se.off(n,"."+_Y,e),Se.on(n,t,e,this._expandEventHandler.bind(this))},_getEventNameByOption:function(t){return kt("click"===t?Vi:tb,_Y)},_getNode:function(t){if(!Z(t))return null;if(t.internalFields)return t;if(eO(t))return this._dataAdapter.getNodeByKey(t);var n=U(t).get(0);return n?It.isElementNode(n)?this._getNodeByElement(n):this._dataAdapter.getNodeByItem(n):null},_getNodeByElement:function(t){var n=U(t).closest("."+Md),e=this._decodeString(n.attr(r9));return this._dataAdapter.getNodeByKey(e)},_toggleExpandedState:function(t,n,e){var i=this._getNode(t);if(!i)return(new et).reject().promise();if(i.internalFields.disabled)return(new et).reject().promise();var r=i.internalFields.expanded;if(r===n)return(new et).resolve().promise();if(this._hasChildren(i)){var o=this._getNodeElement(i);if(o.find(".".concat(fY,":not(.").concat(nke,")")).length)return(new et).reject().promise();this._createLoadIndicator(o)}return Z(n)||(n=!r),this._dataAdapter.toggleExpansion(i.internalFields.key,n),this._updateExpandedItemsUI(i,n,e)},_createLoadIndicator:function(t){var n=t.children("."+vk),e=t.children(".".concat(Xm));n.hasClass(mY)||e.not(":empty").length||(this._createComponent(U("<div>").addClass(fY),bd,{}).$element().appendTo(t),n.hide())},_renderToggleItemVisibilityIcon:function(t,n){var e=U("<div>").addClass(vk).appendTo(t);n.internalFields.expanded&&(e.addClass(mY),t.parent().addClass(rb)),n.internalFields.disabled&&e.addClass(yk),this._renderToggleItemVisibilityIconClick(e,n)},_renderToggleItemVisibilityIconClick:function(t,n){var e=kt(Vi,this.NAME);Se.off(t,e),Se.on(t,e,i=>{this._toggleExpandedState(n.internalFields.key,void 0,i)})},_updateExpandedItemsUI:function(t,n,e){var i=this._getNodeElement(t),r=!i.length||n&&i.is(":hidden");if(this.option("expandNodesRecursive")&&r){var o=this._getNode(t.internalFields.parentKey);o&&this._updateExpandedItemsUI(o,n,e)}var a=i.children("."+vk),s=i.children(".".concat(Xm));a.toggleClass(mY,n);var l=s.length>0,u=new et;return!n||l&&!s.is(":empty")?(this._animateNodeContainer(t,n,e,u),u.promise()):0===t.internalFields.childrenKeys.length&&(this._isVirtualMode()||this._useCustomChildrenLoader())?(this._loadNestedItemsWithUpdate(t,n,e,u),u.promise()):(this._renderSublevel(i,t,this._getChildNodes(t)),this._fireContentReadyAction(),this._animateNodeContainer(t,n,e,u),u.promise())},_loadNestedItemsWithUpdate:function(t,n,e,i){var r=this._getNodeElement(t);this._loadNestedItems(t).done(o=>{var a=this._getActualNode(t);this._renderSublevel(r,a,this._dataAdapter.getNodesByItems(o)),o&&o.length?(this._fireContentReadyAction(),this._animateNodeContainer(a,n,e,i)):i.resolve()})},_loadNestedItems:function(t){if(this._useCustomChildrenLoader()){var n=this._dataAdapter.getPublicNode(t);return this._loadChildrenByCustomLoader(n).done(e=>{this._areNodesExists(e)||this._appendItems(e)})}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),t.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done(e=>{this._areNodesExists(e)||this._appendItems(e)})):(new et).resolve([]).promise()},_areNodesExists:function(t,n){var e=this.keyOf(t[0]),i=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(e,i)},_appendItems:function(t){this.option().items=this.option("items").concat(t),this._initDataAdapter()},_animateNodeContainer:function(t,n,e,i){var r=this._getNodeElement(t),o=r.children(".".concat(Xm));t&&i&&0===o.length&&i.resolve(),o.addClass(rb);var a=Ln(o);Hi.stop(o,!0),Hi.animate(o,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:n?0:a},to:{maxHeight:n?a:0},complete:function(){o.css("maxHeight","none"),o.toggleClass(rb,n),this.setAria("expanded",n,r),this.getScrollable().update(),this._fireExpandedStateUpdatedEvent(n,t,e),i&&i.resolve()}.bind(this)})},_fireExpandedStateUpdatedEvent:function(t,n,e){if(this._hasChildren(n)&&!this._skipContentReadyAndItemExpanded){var i=t?"onItemExpanded":"onItemCollapsed";if(Z(e))this._itemDXEventHandler(e,i,{node:this._dataAdapter.getPublicNode(n)});else{var r=this._getNodeElement(n);this._itemEventHandler(r,i,{event:e,node:this._dataAdapter.getPublicNode(n)})}}},_normalizeIconState:function(t,n){var i,e=t.find(".".concat(fY));e.length&&(null===(i=bd.getInstance(e))||void 0===i||i.option("visible",!1));var r=t.find(".".concat(vk));n?r.show():(r.removeClass(vk),t.addClass(_k))},_emptyMessageContainer:function(){var t=this.getScrollable();return t?U(t.content()):this.callBase()},_renderContent:function(){var t=this.option("items");t&&t.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(t){t=t||this.$element().find(".".concat(Xm)).first(),this._$selectAllItem=U("<div>").addClass(i9);var n=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,wS,{value:n,tabIndex:1,text:this.option("selectAllText"),onValueChanged:this._onSelectAllCheckboxValueChanged.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,n),t.before(this._$selectAllItem)},_onSelectAllCheckboxValueChanged:function(t){this._toggleSelectAll(t),this._fireSelectAllValueChanged(t.value)},_toggleSelectAll:function(t){this._dataAdapter.toggleSelectAll(t.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(t,n){var e=U("<div>").appendTo(t);this._createComponent(e,wS,{value:n.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(n)})},_toggleSelectedClass:function(t,n){t.toggleClass("dx-state-selected",!!n)},_toggleNodeDisabledState:function(t,n){var e=this._getNodeElement(t),i=e.find("."+zl).eq(0);this._dataAdapter.toggleNodeDisabledState(t.internalFields.key,n),i.toggleClass(yk,!!n),this._showCheckboxes()&&this._getCheckBoxInstance(e).option("disabled",!!n)},_itemOptionChanged:function(t,n,e){var i=this._dataAdapter.getNodeByItem(t);n===this.option("disabledExpr")&&this._toggleNodeDisabledState(i,e)},_changeCheckboxValue:function(t){var e=U(t.element).parent("."+Md).children("."+zl),i=this._getItemData(e),r=this._getNodeByElement(e),o=t.value;r&&r.internalFields.selected===o||this._updateItemSelection(o,i,t.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(t,n,e){var i=n.indexOf(t.key);return i>=0&&n.splice(i,1),e&&we(t.children,function(r,o){this._isLastSelectedBranch(o,n,!0)}.bind(this)),t.parent&&this._isLastSelectedBranch(t.parent,n),0===n.length},_isLastRequired:function(t){var n=this.option("selectionRequired"),e=this._isSingleSelection(),i=this.getSelectedNodeKeys();if(n)return e?1===i.length:this._isLastSelectedBranch(t.internalFields.publicNode,i.slice(),!0)},_updateItemSelection:function(t,n,e){var i=this._getNode(n);if(!i||!1===i.visible)return!1;if(i.internalFields.selected===t)return!0;if(!t&&this._isLastRequired(i)){if(this._showCheckboxes()){var r=this._getNodeElement(i);this._getCheckBoxInstance(r).option("value",!0)}return!1}if(t&&this._isSingleSelection()){var o=this.getSelectedNodeKeys();we(o,(l,u)=>{this._dataAdapter.toggleSelection(u,!1),this._updateItemsUI(),this._fireItemSelectionChanged(this._getNode(u))})}this._dataAdapter.toggleSelection(i.internalFields.key,t);var a=this._dataAdapter.isAllSelected(),s=this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value")!==a;return this._updateItemsUI(),this._fireItemSelectionChanged(i,e),this._fireSelectionChanged(),s&&this._fireSelectAllValueChanged(a),!0},_fireItemSelectionChanged:function(t,n){var e=n||this._findItemElementByItem(t.internalFields.item);(n?this._itemDXEventHandler:this._itemEventHandler).call(this,e,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(t),itemData:t.internalFields.item})},_getCheckBoxInstance:function(t){return t.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var t={};if(we(this._dataAdapter.getData(),(e,i)=>{var r=this._getNodeElement(i,t),o=i.internalFields.selected;r.length&&(this._toggleSelectedClass(r,o),this.setAria("selected",o,r),this._showCheckboxes()&&this._getCheckBoxInstance(r).option("value",o))}),this._selectAllEnabled()){var n=this._$selectAllItem.dxCheckBox("instance");n.option("onValueChanged",void 0),n.option("value",this._dataAdapter.isAllSelected()),n.option("onValueChanged",this._onSelectAllCheckboxValueChanged.bind(this))}},_updateParentsState:function(t,n){if(n){var e=this._dataAdapter.getNodeByKey(t.internalFields.parentKey),i=U(n.parents("."+Md)[0]);if(this._showCheckboxes()){var r=e.internalFields.selected;this._getCheckBoxInstance(i).option("value",r),this._toggleSelectedClass(i,r)}e.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(e,i)}},_itemEventHandlerImpl:function(t,n,e){var i=U(t).closest("."+Md).children("."+zl);return n(se(this._extendActionArgs(i),e))},_itemContextMenuHandler:function(t){this._createEventHandler("onItemContextMenu",t)},_itemHoldHandler:function(t){this._createEventHandler("onItemHold",t)},_createEventHandler:function(t,n){var e=this._getNodeByElement(n.currentTarget);this._itemDXEventHandler(n,t,{node:this._dataAdapter.getPublicNode(e)})},_itemClass:function(){return zl},_itemDataKey:function(){return b6t},_attachClickEvent:function(){var t="."+this._itemClass(),n="."+Md+", ."+i9,e=kt(Vi,this.NAME),i=kt(qn.down,this.NAME),r=this._itemContainer(),o=this;Se.off(r,e,t),Se.off(r,i,n),Se.on(r,e,t,function(a){o._itemClickHandler(a,U(this))}),Se.on(r,i,n,function(a){o._itemPointerDownHandler(a)})},_itemClickHandler:function(t,n){var e=this._getItemData(n),i=this._getNodeByElement(n);this._itemDXEventHandler(t,"onItemClick",{node:this._dataAdapter.getPublicNode(i)}),this.option("selectByClick")&&!t.isDefaultPrevented()&&this._updateItemSelection(!i.internalFields.selected,e,t)},_updateSelectionToFirstItem:function(t,n){for(var e=n;e>=0;){var i=U(t[e]);this._updateItemSelection(!0,i.find("."+zl).get(0)),e--}},_updateSelectionToLastItem:function(t,n){for(var e=t.length,i=n;i<e;){var r=U(t[i]);this._updateItemSelection(!0,r.find("."+zl).get(0)),i++}},_focusInHandler:function(t){this._updateFocusState(t,!0);var n=U(t.target).hasClass(i9);if(n||this.option("focusedElement")){clearTimeout(this._setFocusedItemTimeout);var e=n?kn(this._$selectAllItem):U(this.option("focusedElement"));this._setFocusedItemTimeout=setTimeout(()=>{this._setFocusedItem(e)})}else{var i=this._getActiveItem();this.option("focusedElement",kn(i.closest("."+Md)))}},_setFocusedItem:function(t){!t||!t.length||t.children().hasClass(yk)||this.callBase(t)},_itemPointerDownHandler:function(t){if(this.option("focusStateEnabled")){var n=U(t.target).closest("."+Md+", ."+i9);if(n.length){var e=n.hasClass(yk)?null:n;this.option("focusedElement",kn(e))}}},_findNonDisabledNodes:function(t){return t.not(function(){return U(this).children("."+zl).hasClass(yk)})},_moveFocus:function(t,n){var e="up",i="down",r="first",o="last",a=this.option("rtlEnabled")?"right":"left",s=this.option("rtlEnabled")?"left":"right";this.$element().find(".".concat(Xm)).each(function(){Hi.stop(this,!0)});var l=this._findNonDisabledNodes(this._nodeElements());if(l&&l.length)switch(t){case e:var u=this._prevItem(l);this.option("focusedElement",kn(u));var f=this._getNodeItemElement(u);this.getScrollable().scrollToElement(f),n.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,f);break;case i:var S=this._nextItem(l);this.option("focusedElement",kn(S));var T=this._getNodeItemElement(S);this.getScrollable().scrollToElement(T),n.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,T);break;case r:var R=l.first();n.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(l,l.index(this._prevItem(l))),this.option("focusedElement",kn(R)),this.getScrollable().scrollToElement(this._getNodeItemElement(R));break;case o:var L=l.last();n.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(l,l.index(this._nextItem(l))),this.option("focusedElement",kn(L)),this.getScrollable().scrollToElement(this._getNodeItemElement(L));break;case s:this._expandFocusedContainer();break;case a:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_getNodeItemElement:function(t){return t.find("."+zl).get(0)},_nodeElements:function(){return this.$element().find("."+Md).not(":hidden")},_expandFocusedContainer:function(){var t=U(this.option("focusedElement"));if(t.length&&!t.hasClass(_k)){if(t.find(".".concat(Xm)).eq(0).hasClass(rb)){var e=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return this.option("focusedElement",kn(e)),void this.getScrollable().scrollToElement(this._getNodeItemElement(e))}var i=this._getNodeByElement(t.children("."+zl));this._toggleExpandedState(i,!0)}},_getClosestNonDisabledNode:function(t){do{t=t.parent().closest("."+Md)}while(t.children(".dx-treeview-item.dx-state-disabled").length);return t},_collapseFocusedContainer:function(){var t=U(this.option("focusedElement"));if(t.length){var n=t.find(".".concat(Xm)).eq(0);if(!t.hasClass(_k)&&n.hasClass(rb)){var e=this._getNodeByElement(t.children("."+zl));this._toggleExpandedState(e,!1)}else{var i=this._getClosestNonDisabledNode(t);i.length&&this.option("focusedElement",kn(i)),this.getScrollable().scrollToElement(this._getNodeItemElement(i))}}},_encodeString:function(t){return Pn(t)?encodeURI(t):t},_decodeString:function(t){return Pn(t)?decodeURI(t):t},getScrollable:function(){return this._scrollable},updateDimensions:function(){var t=new et,n=this.getScrollable();return n?n.update().done(()=>{t.resolveWith(this)}):t.resolveWith(this),t.promise()},selectItem:function(t){return this._updateItemSelection(!0,t)},unselectItem:function(t){return this._updateItemSelection(!1,t)},expandItem:function(t){return this._toggleExpandedState(t,!0)},collapseItem:function(t){return this._toggleExpandedState(t,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodes:function(){return this.getSelectedNodeKeys().map(t=>{var n=this._dataAdapter.getNodeByKey(t);return this._dataAdapter.getPublicNode(n)})},getSelectedNodeKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},_allItemsExpandedHandler:function(){this._skipContentReadyAndItemExpanded=!1,this._fireContentReadyAction()},expandAll:function(){var t=this._dataAdapter.getData(),n=[];this._skipContentReadyAndItemExpanded=!0,t.forEach(e=>n.push(this._toggleExpandedState(e.internalFields.key,!0))),Promise.allSettled(n).then(()=>{var e;return null===(e=this._allItemsExpanded)||void 0===e?void 0:e.call(this)})},collapseAll:function(){we(this._dataAdapter.getExpandedNodesKeys(),function(t,n){this._toggleExpandedState(n,!1)}.bind(this))},scrollToItem:function(t){var n=this._getNode(t);if(!n)return(new et).reject().promise();for(var e=[],i=n.internalFields.publicNode.parent;null!=i;)i.expanded||e.push(i.key),i=i.parent;var r=new et;return this._expandNodes(e.reverse()).always(()=>{var o=this._getNodeElement(n);o&&o.length?(this.scrollToElementTopLeft(o.get(0)),r.resolve()):r.reject()}),r.promise()},scrollToElementTopLeft:function(t){var n=this.getScrollable(),{scrollDirection:e,rtlEnabled:i}=this.option(),r={top:0,left:0},o=dCe(hCe,t);if(e!==XL){var a=U(n.container()).get(0);r.left=i?o.left+t.offsetWidth-a.clientWidth:o.left}e!==cCe&&(r.top=o.top),n.scrollTo(r)},_expandNodes:function(t){if(!t||0===t.length)return(new et).resolve().promise();var n=new et,e=t.map(i=>this.expandItem(i));return Qt.apply(U,e).done(()=>n.resolve()).fail(()=>n.reject()),n.promise()},_dispose:function(){this.callBase(),clearTimeout(this._setFocusedItemTimeout),this._allItemsExpandedHandler=null}});const E6t=D6t;pC.setEditorClass(Th);var ike="dx-treeview",O6t="".concat(ike,"-node-container"),rke=E6t.inherit(pC).inherit({_addWidgetPrefix:function(t){return"".concat(ike,"-").concat(t)},_optionChanged:function(t){switch(t.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer(),this.option("focusedElement",null);break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(t)}},_updateDataAdapter:function(){this._setOptionWithoutOptionChange("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionWithoutOptionChange("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return se(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_updateSearch:function(){if(this._searchEditor){var t=this._getSearchEditorOptions();this._searchEditor.option(t)}},_repaintContainer:function(){var n,t=this.$element().find(".".concat(O6t)).first();t.length&&(t.empty(),n=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(n),this._renderItems(t,n),this._fireContentReadyAction())},_itemContainer:function(t){return this._scrollable&&t?U(this._scrollable.content()):this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});On("dxTreeView",rke);const oke=rke,IS=oke;var ake="column-chooser-button",ske="notouch-action",lke="column-chooser",uke="dx-column-chooser-item",dke=function(t,n){var e=[],i="select"===t.option("columnChooser.mode");return n.length&&we(n,function(r,o){var a={text:o.caption,cssClass:o.cssClass,allowHiding:o.allowHiding,expanded:!0,id:o.index,disabled:!1,disableCheckBox:!1===o.allowHiding,parentId:Z(o.ownerBand)?o.ownerBand:null};i&&(a.selected=o.visible),e.push(a)}),e},L6t={renderShowColumnChooserButton:function(t){var o,n=this,e=n.addWidgetPrefix(ake),i=n.option("columnChooser.enabled"),r=t.find("."+e);i?r.length?r.show():(o=U("<div>").addClass(e).appendTo(t),n._createComponent(o,To,{icon:lke,onClick:function(){n.getView("columnChooserView").showColumnChooser()},hint:n.option("columnChooser.title"),integrationOptions:{}})):r.hide()},getPosition:function(){var t=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:t&&t.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}},B6t=Bo.ViewController.inherit(L6t),N6t={_resizeCore:Be,_isWinDevice:function(){return!!pn.real().win},_updateList:function(t){var n,e=this._popupContainer.$content(),i="select"===this.option("columnChooser.mode"),r=this._columnChooserList,o=this._columnsController.getChooserColumns(i);if(this._popupContainer.setAria({role:"dialog",label:ye.format("dxDataGrid-columnChooserTitle")}),i&&r&&t&&"selection"===t.changeType){n=dke(this,o);for(var a=0;a<n.length;a++){var s=n[a].selected,l=n[a].id;l===t.columnIndex&&(s?r.selectItem(l,s):r.unselectItem(l,s))}}else(!i||!r||"full"===t)&&(this._popupContainer.$wrapper().toggleClass(this.addWidgetPrefix("column-chooser-mode-drag"),!i).toggleClass(this.addWidgetPrefix("column-chooser-mode-select"),i),n=dke(this,o),this._renderTreeView(e,n))},_initializePopupContainer:function(){var t=this,n=t.element().addClass(t.addWidgetPrefix("column-chooser")),e=t.option("columnChooser"),i=lu(),r=iW(i),o=io(i),a={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{text:e.title,toolbar:"top",location:r||o?"before":"center"}],position:t.getController("columnChooser").getPosition(),width:e.width,height:e.height,rtlEnabled:t.option("rtlEnabled"),onHidden:function(){t._isWinDevice()&&U("body").removeClass(t.addWidgetPrefix(ske))},container:e.container};r||o?se(a,{showCloseButton:!0}):a.toolbarItems[a.toolbarItems.length]={shortcut:"cancel"},Z(this._popupContainer)?this._popupContainer.option(a):(t._popupContainer=t._createComponent(n,Ss,a),t._popupContainer.on("optionChanged",function(s){"visible"===s.name&&t.renderCompleted.fire()}))},_renderCore:function(t){this._popupContainer&&this._updateList(t)},_renderTreeView:function(t,n){var e=this,i=this.option("columnChooser"),r="select"===i.mode,o={items:n,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:i.allowSearch,searchTimeout:i.searchTimeout,onItemRendered:function(l){if(l.itemData.disableCheckBox){var f,u=U(l.itemElement).closest(".dx-treeview-node");if(u.length&&(f=u.find(".dx-checkbox")).length){var S=f.data("dxCheckBox");S&&S.option("disabled",!0)}}}},a=t.find(".dx-scrollable").data("dxScrollable"),s=a&&a.scrollTop();r&&!this._columnsController.isBandColumnsUsed()&&t.addClass(this.addWidgetPrefix("column-chooser-plain")),o.onContentReady=function(l){Ns(function(){if(s){var u=U(l.element).find(".dx-scrollable").data("dxScrollable");u&&u.scrollTo({y:s})}e.renderCompleted.fire()})},this._isWinDevice()&&(o.useNativeScrolling=!1),se(o,r?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(o.searchEnabled||(o.searchValue=""),this._columnChooserList.option(o)):(this._columnChooserList=this._createComponent(t,IS,o),t.addClass(this.addWidgetPrefix("column-chooser-list")))},_prepareDragModeConfig:function(){return{noDataText:this.option("columnChooser").emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(n,e,i){U(i).text(n.text).parent().addClass(n.cssClass).addClass(uke)}}},_prepareSelectModeConfig:function(){var t=this;return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:function(n){1!==t._columnsController.getVisibleColumns().filter(function(r){return!r.command}).length||n.itemData.selected?setTimeout(function(){t._columnsController.columnOption(n.itemData.id,"visible",n.itemData.selected)},300):n.component.selectItem(n.itemElement)}}},_columnOptionChanged:function(t){var n=t.changeTypes,e=t.optionNames,i="select"===this.option("columnChooser.mode");if(this.callBase(t),i){var o=e.showInColumnChooser||e.caption||e.visible||n.columns&&e.all;e.visible&&1===e.length&&void 0!==t.columnIndex?this.render(null,{changeType:"selection",columnIndex:t.columnIndex}):o&&this.render(null,"full")}},optionChanged:function(t){"columnChooser"===t.name?(this._initializePopupContainer(),this.render(null,"full")):this.callBase(t)},getColumnElements:function(){var n,t=[],e="select"===this.option("columnChooser.mode"),i=this._columnsController.getChooserColumns(e),r=this._popupContainer&&this._popupContainer.$content(),o=r&&r.find(".dx-treeview-node");return o&&i.forEach(function(a){var s=(n=o.filter("[data-item-id = '"+a.index+"']")).length?n.children("."+uke).get(0):null;t.push(s)}),U(t)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(t,n){var e=t&&t.allowHiding&&("columnChooser"!==n||!t.visible&&this._columnsController.isParentColumnVisible(t.index));return this.isColumnChooserVisible()&&e},getBoundingRect:function(){var t=this._popupContainer&&this._popupContainer.$overlayContent();if(t&&t.is(":visible")){var n=t.offset();return{left:n.left,top:n.top,right:n.left+ii(t),bottom:n.top+Zn(t)}}return null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&U("body").addClass(this.addWidgetPrefix(ske))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var t=this._popupContainer;return t&&t.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}},o9={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:ye.format("dxDataGrid-columnChooserTitle"),emptyPanelText:ye.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:B6t},views:{columnChooserView:dk.inherit(N6t)},extenders:{views:{headerPanel:{_getToolbarItems:function(){var t=this.callBase();return this._appendColumnChooserItem(t)},_appendColumnChooserItem:function(t){var n=this;if(n.option("columnChooser.enabled")){var i=n.option("columnChooser.title");t.push({widget:"dxButton",options:{icon:lke,onClick:function(){n.component.getView("columnChooserView").showColumnChooser()},hint:i,text:i,onInitialized:function(o){U(o.element).addClass(n._getToolbarButtonClass(n.addWidgetPrefix(ake)))},elementAttr:{"aria-haspopup":"dialog"}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40})}return t},optionChanged:function(t){"columnChooser"===t.name?(this._invalidate(),t.handled=!0):this.callBase(t)},isVisible:function(){var t=this.option("columnChooser.enabled");return this.callBase()||t}}},controllers:{columns:{allowMoveColumn:function(t,n,e,i){return!("select"===this.option("columnChooser.mode")&&"columnChooser"===i)&&this.callBase(t,n,e,i)}}}}};function cke(t,n,e){for(var i=cm(n.group),r=[],o=e?t.length-1:0;o<t.length;o++){for(var a=[],s=0;s<=o;s++){var l=i[s].selector;if(o!==s||null!==t[s]&&!1!==t[s]&&!0!==t[s]){var u=[l,o===s?i[s].desc?">":"<":"=",t[s]];a.push("<"===u[1]?[u,"or",[l,"=",null]]:u)}else!1===t[s]?a.push([l,"=",!!i[s].desc||null]):(t[s]?!i[s].desc:i[s].desc)?a.push([l,"<>",t[s]]):(a.push([l,"<>",null]),a.push([l,"=",null]))}r.push(oi.combineFilters(a))}return r=oi.combineFilters(r,"or"),oi.combineFilters([r,n.filter])}oi.registerModule("columnChooser",o9);var hke=ji.inherit(function(){var t=function(e,i){var r=e.hash;return r&&r[JSON.stringify(i)]},n=function(e,i){var s,r=0,o=e.length-1;if(!e.length)return 0;do{var a=o+r>>1;e[a].offset>i?o=a:r=a}while(o-r>1);for(s=r;s<=o&&!(e[s].offset>i);s++);return s};return{ctor:function(e){this._dataSource=e,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(e){this._totalCountCorrection=e||0},isGroupItemCountable:function(e){return!this._isVirtualPaging()||!e.isContinuation},_isVirtualPaging:function(){var e=this._dataSource.option("scrolling.mode");return"virtual"===e||"infinite"===e},itemsCount:function(){var i=this._dataSource._dataSource,r=oi.normalizeSortingInfo(i.group()||[]).length;return function a(s,l,u){var f=0;if(l)if(u)for(var S=0;S<l.length;S++)s.isGroupItemCountable(l[S])&&f++,f+=a(s,l[S].items,u-1);else f=l.length;return f}(this,i.items(),r)},foreachGroups:function(e,i,r,o,a){var s=this;return function l(u,f,S,T){var R=[];function L(te,re,he,fe){var Te=re&&te(re,he);return Te&&fe.push(Te),Te}for(var z=0;z<u.length;z++){if(T.push(u[z].data),!S&&!1===L(f,u[z].data,T,R))return!1;if(!u[z].data||u[z].data.isExpanded||r){var j=u[z].children,Y=j.length&&l(j,f,S,T);if(Y&&R.push(Y),!1===Y)return!1}if(S&&!1===L(f,u[z].data,T,R))return!1;(!u[z].data||u[z].data.offset!==u[z].offset)&&(o=!0),T.pop()}var ie=a&&T.slice(0);return o&&Qt.apply(U,R).always(function(){s._updateGroupInfoOffsets(u,ie)})}(s._groupsInfo,e,i,[])},_updateGroupInfoOffsets:function(e,i){i=i||[];for(var r=0;r<e.length;r++){var o=e[r];if(o.data&&o.data.offset!==o.offset){o.offset=o.data.offset;for(var a=0;a<i.length;a++)i[a].offset=o.offset}}e.sort(function(s,l){return s.offset-l.offset})},findGroupInfo:function(e){for(var i,r=this._groupsInfo,o=0;r&&o<e.length;o++)r=(i=t(r,e[o]))&&i.children;return i&&i.data},addGroupInfo:function(e){for(var i,r=e.path,o=this._groupsInfo,a=0;a<r.length;a++){if(!(i=t(o,r[a]))){i={key:r[a],offset:e.offset,data:{offset:e.offset,isExpanded:!0,path:r.slice(0,a+1)},children:[]};var s=n(o,e.offset);o.splice(s,0,i),o.hash=o.hash||{},o.hash[JSON.stringify(i.key)]=i}a===r.length-1&&(i.data=e,i.offset!==e.offset&&this._updateGroupInfoOffsets(o)),o=i.children}},allowCollapseAll:function(){return!0},refresh:function(e){var i=e.storeLoadOptions,r=cm(i.group||[]),o="_group"in this?cm(this._group||[]):r,a=Math.min(o.length,r.length);this._group=i.group;for(var s=0;s<a;s++)if(o[s].selector!==r[s].selector){a=s;break}a?function l(u,f,S){for(var T=0;T<u.length;T++)f+1>=S?u[T].children=[]:l(u[T].children,f+1,S)}(this._groupsInfo,0,a):this.reset()},handleDataLoading:function(){},handleDataLoaded:function(e,i){i(e)},handleDataLoadedCore:function(e,i){i(e)}}}());function ob(t,n){for(var e=cm(n.group),i=[],r=0;r<t.length;r++)i.push([e[r].selector,"=",t[r]]);return n.filter&&i.push(n.filter),vn.combineFilters(i)}var vY=function(t,n){var e=new et,i=se({skip:0,take:1,requireTotalCount:!0},n);return t.load(i).done(function(r,o){e.resolve(o&&o.totalCount)}).fail(e.reject.bind(e)),e},pke=hke.inherit(function(){var t=function(o,a,s){return o.foreachGroups(function(l){if(!l.isExpanded)return a(l)},!1,!1,s,!0)},n=function(o,a){var s=0,l=a||0;return a&&(t(o,function(u){if(u.offset-s>=a)return!1;s+=u.count-1}),l+=s),l},e=function(o,a){if(o.length!==a.length)return!1;for(var s=0;s<o.length;s++)if(!EO(null,o[s],a[s]))return!1;return!0},i=function o(a,s,l,u,f){if(s){for(var S=0;S<s.length;S++){var T=s[S];if("key"in T&&void 0!==T.items){l.push(T.key),f&&e(f.path,l)&&!T.isContinuation&&(f.offset=u);var R=a.findGroupInfo(l);R&&!T.isContinuation&&(R.offset=u),R&&!R.isExpanded?u+=R.count:u=o(a,T.items,l,u,f),l.pop()}else u++}return u}},r=function o(a,s){var l=a.count||a.items.length;if(!a.count&&s>1){l=0;for(var u=0;u<a.items.length;u++)l+=o(a.items[u],s-1)}return l};return{handleDataLoading:function(o){var f,a=o.storeLoadOptions,s=[],l=0,u=!1,S=o.loadOptions.group,T=0;if(function(L,z){if(z.group){var j=oi.normalizeSortingInfo(z.group),Y=oi.normalizeSortingInfo(L.sort);L.sort=cg.arrangeSortingInfo(j,Y),delete z.group}}(a,o.loadOptions),o.group=o.group||S,!o.isCustomLoading){var R=se({},a);R.skip=n(this,a.skip),R.skip&&R.take&&S&&(R.skip--,R.take++,u=!0),R.take&&S&&(f=R.take,R.take++),t(this,function(L){if(L.offset>=R.skip+R.take+T)return!1;L.offset>=R.skip+T&&L.count&&(T+=L.count-1,s.push(L),l+=L.count)}),we(s,function(){R.filter=function(L,z,j){for(var Y=oi.normalizeSortingInfo(j||z.group),ie=[],te=0;te<L.length;te++){for(var re=[],he=0;he<=te;he++)re.push([Y[he].selector,te===he?"<>":"=",L[he]]);ie.push(oi.combineFilters(re))}return ie=oi.combineFilters(ie,"or"),oi.combineFilters([ie,z.filter])}(this.path,R,S)}),o.storeLoadOptions=R,o.collapsedGroups=s,o.collapsedItemsCount=l,o.skip=R.skip||0,o.skipFirstItem=u,o.take=f}},handleDataLoaded:function(o,a){var s=o.collapsedGroups,l=oi.normalizeSortingInfo(o.group),u=l.length;function f(L,z,j,Y,ie){if(L&&z.length&&j.length){var te,re,he=ns(z[0],!0);for(re=0;re<L.length&&(te=ns(L[re].key,!0),!(ie>=Y.offset||he===te));re++)ie+=r(L[re],j.length);(!L.length||he!==te)&&L.splice(re,0,{key:z[0],items:[],count:1===z.length?Y.count:void 0}),f(L[re].items,z.slice(1),j.slice(1),Y,ie)}}if(o.collapsedItemsCount&&o.extra&&o.extra.totalCount>=0&&(o.extra._totalCountWasIncreasedByCollapsedItems||(o.extra.totalCount+=o.collapsedItemsCount,o.extra._totalCountWasIncreasedByCollapsedItems=!0)),a(o),u){var S=o.data,T=Ha(S);if(cg.multiLevelGroup(T,l).enumerate().done(function(L){S=L}),s)for(var R=0;R<s.length;R++)f(S,s[R].path,l,s[R],o.skip);o.isCustomLoading||function L(z,j,Y,ie,te,re){for(var he=0,fe=!1,Te=0;Te<j.length;Te++){var Re=j[Te];if(void 0!==Re.items){Y.push(Re.key);var He=z.findGroupInfo(Y);if(He&&!He.isExpanded)Re.collapsedItems=Re.items,Re.items=null,ie+=He.count,--re<0&&he++,te&&(fe=!0);else if(Re.items){var Ze=L(z,Re.items,Y,ie,te,re);te&&(Ze.offset-ie>1?Re.isContinuation=!0:fe=!0),ie=Ze.offset,(re=Ze.take)<0&&(Re.items.length?Re.isContinuationOnNextPage=!0:he++)}Y.pop()}else te&&(fe=!0),ie++,--re<0&&he++;te=!1}return fe&&j.splice(0,1),he&&j.splice(-he,he),{offset:ie,take:re}}(this,S,[],o.skip,o.skipFirstItem,o.take),o.data=S}},isGroupItemCountable:function(o){return null===o.items},updateTotalItemsCount:function(){var o=0;t(this,function(a){a.count&&(o-=a.count-1)}),this.callBase(o)},changeRowExpand:function(o){var a=this,s=a._dataSource,l=s.beginPageIndex?s.beginPageIndex():s.pageIndex(),u=s.items(),f=n(a,l*s.pageSize()),S=a.findGroupInfo(o);return Qt(S&&!S.isExpanded?(new et).resolve(S.count):vY(s,{filter:ob(o,{filter:s.filter(),group:s.group()})})).done(function(R){R=parseInt(R.length?R[0]:R),S?(i(a,u,[],f),S.isExpanded=!S.isExpanded,S.count=R):(i(a,u,[],f,S={offset:-1,count:R,path:o,isExpanded:!1}),S.offset>=0&&a.addGroupInfo(S)),a.updateTotalItemsCount()}).fail(function(){s._eventsStrategy.fireEvent("loadError",arguments)})},allowCollapseAll:function(){return!1},refresh:function(o,a){var s=this,l=o.storeLoadOptions,u=s._dataSource;if(this.callBase.apply(this,arguments),a.reload)return t(s,function(f){var S=vY(u,{filter:ob(f.path,l)});return Qt(vY(u,{filter:cke(f.path,l)}),S).done(function(R,L){R=parseInt(R.length?R[0]:R),L=parseInt(L.length?L[0]:L),f.offset=R,f.count!==L&&(f.count=L,s.updateTotalItemsCount())})},!0)}}}());function yY(t,n,e,i){if(i=i||0,n>1&&e>0){var r=t-Math.floor(t/n)*n||n;return(r+=e-i-2)<0&&(r+=n),Math.floor(r/(n-i-1))}return 0}var gke=hke.inherit(function(){var t=function(S,T,R){return S.foreachGroups(function(L,z){if(L.isExpanded)return T(L,z)},!0,!1,R,R)},n=function S(T,R,L,z,j,Y,ie){var te;if(z.items=z.items||[],z.paths=z.paths||[],z.count=z.count||0,z.lastCount=z.lastCount||0,L)for(var re=0;re<R.length;re++){var he=R[re];if(void 0!==he.items){if(j.push(he.key),Y)te=!0;else{var fe=T.findGroupInfo(j);te=fe&&fe.isExpanded}te?he.items?S(T,he.items,L-1,z,j,Y,ie):1===L&&he.count&&(!Y||ie)&&(z.items.push(he),z.paths.push(j.slice(0)),z.count+=z.lastCount,z.lastCount=he.count):(he.collapsedItems=he.items,he.items=null),j.pop()}}},e=function(S,T,R,L,z){var Y,j=S.findGroupInfo(L);j?(R?j.count=T.count>0?T.count:T.items&&T.items.length||0:T.count=j.count||T.count,j.offset=z):(R&&(Y=T.count>0?T.count:T.items.length),S.addGroupInfo({isExpanded:S._isGroupExpanded(L.length-1),path:L.slice(0),offset:z,count:Y||0}))},i=function S(T,R,L,z,j,Y,ie){var Re,re=(R.group?R.group.length:0)===z,fe=0,Te=0;if(j=j||0,Y=Y||[],R.remoteOperations.paging&&!ie&&(fe=0===j?R.skip||0:R.skips[j-1]||0),j>=z)return L.length;for(var He=0;He<L.length;He++){var Ze=L[He];if(Ze){if(Y.push(Ze.key),!Ze.count&&!Ze.items||void 0===Ze.items||(e(T,Ze,re,Y,fe+He),(Re=Ze.items?S(T,R,Ze.items,z,j+1,Y,He):Ze.count||-1)<0))return-1;Te+=Re,Y.pop()}}return Te},r=function(S,T){return S&&S.length&&S[T]&&!!S[T].isExpanded},o=function(S,T,R){for(var L,z=R,j=0;j<S.length;j++)L=S[j].offset+1,j>0&&(L+=S[j-1].childrenTotalCount,T&&(L+=yY(z,T,L,j-1)*j)),z+=L;return z};function a(S,T,R,L){var z=T.items[L],j=S.skips&&S.skips[R],Y=S.takes&&S.takes[R],ie=L===T.items.length-1,te=0===L,he=z.count>Y+(te&&j||0);te&&void 0!==j&&(z.isContinuation=!0),ie&&void 0!==Y&&he&&(z.isContinuationOnNextPage=!0)}function s(S){return!Array.isArray(S)}function l(S){s(S.data)||(S.data=new et)}function u(S,T,R,L,z,j){var ie,te,re,he,fe;T.isCustomLoading||(n(S,j,R,L={},[]),he=(re=R)-1,fe=(ie=T).group?ie.group.length:0,(te=L).skip=ie.skips&&ie.skips[he],ie.takes&&void 0!==ie.takes[he]&&(te.take=fe===re&&te.count?te.count-(te.skip||0):0,te.take+=ie.takes[he])),L.paths.length&&(T.group?T.group.length:0)-R>0?(l(T),function(ie,te,re,he,fe,Te){var Re=te.group||[],He=Re[fe+1],Ze=[];we(re.paths,function(at){var vt={requireTotalCount:!1,requireGroupCount:!0,group:[He],groupSummary:te.storeLoadOptions.groupSummary,filter:ob(re.paths[at],{filter:te.storeLoadOptions.filter,group:Re}),select:te.storeLoadOptions.select};0===at&&(vt.skip=re.skip||0),at===re.paths.length-1&&(vt.take=re.take);var Bt=0===vt.take?[]:ie._dataSource.loadFromStore(vt);Qt(Bt).done(function(St){var ct=re.items[at];a(te,re,fe,at),ct.items=St}),Ze.push(Bt)}),Qt.apply(null,Ze).done(function(){i(ie,te,Te,he+1),u(ie,te,he+1,re,fe+1,Te)})}(S,T,L,R,z,j)):L.paths.length&&T.storeLoadOptions.group?(l(T),function(ie,te,re,he){var fe=[],Te=te.group||[];we(re.paths,function(at,vt){fe.push(ob(vt,{group:te.isCustomLoading?te.storeLoadOptions.group:Te}))});var Re=te.storeLoadOptions.filter;te.storeLoadOptions.isLoadingAll||(Re=oi.combineFilters([Re,oi.combineFilters(fe,"or")]));var He=se({},te.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:Te.concat(oi.normalizeSortingInfo(te.storeLoadOptions.sort||[])),filter:Re}),Ze=ie._dataSource.isLastLevelGroupItemsPagingLocal();Ze||(He.skip=re.skip,He.take=re.take),Qt(0===re.take?[]:ie._dataSource.loadFromStore(He)).done(function(at,vt){Ze&&(at=ie._dataSource.sortLastLevelGroupItems(at,Te,re.paths),at=re.skip?at.slice(re.skip):at,at=re.take?at.slice(0,re.take):at),we(re.items,function(Bt,St){var Nt=at.splice(0,St.count-(0===Bt&&re.skip||0));a(te,re,Te.length-1,Bt),St.items=Nt}),te.data.resolve(he)}).fail(te.data.reject)}(S,T,L,j)):s(T.data)&&T.data.resolve(j)}var f=function(S,T){var R=new et,L=!(!T.group||!T.group.length),z=se({skip:0,take:1,requireGroupCount:L,requireTotalCount:!L},T,{group:L?T.group:null});return S.load(z).done(function(j,Y){var ie=Y&&(L?Y.groupCount:Y.totalCount);isFinite(ie)?R.resolve(ie):R.reject(uo.Error(L?"E4022":"E4021"))}).fail(R.reject.bind(R)),R};return{updateTotalItemsCount:function(S){var T=0,R=S.extra&&S.extra.totalCount||0,L=S.extra&&S.extra.groupCount||0,z=this._dataSource.pageSize(),j=this._isVirtualPaging();t(this,function(Y){Y.childrenTotalCount=0}),t(this,function(Y,ie){var te=o(ie,j?0:z,T),re=Y.count+Y.childrenTotalCount;j||(re+=yY(te,z,re,ie.length-1)),ie[ie.length-2]?ie[ie.length-2].childrenTotalCount+=re:T+=re}),this.callBase(T-R+L)},_isGroupExpanded:function(S){var T=this._dataSource.group();return r(T,S)},_updatePagingOptions:function(S,T){var R=this._isVirtualPaging(),L=this._dataSource.pageSize(),z=[],j=[],Y=0,ie=0;S.take&&(t(this,function(te){te.childrenTotalCount=0,te.skipChildrenTotalCount=0}),t(this,function(te,re){var he,fe=0,Te=0,Re=o(re,R?0:L,ie),He=0,Ze=0,at=te.count+te.childrenTotalCount,vt=at;T&&T(te,Re);var Bt=S.skip-Re;Re<=S.skip+S.take&&at&&(he=S.take,R||(at+=(He=yY(Re,L,at,re.length-1))*re.length,vt+=He,L&&Bt>=0&&(fe=re.length,Te=re.length-1,Ze=Math.floor(Bt/L))),Bt>=0?(Re+at>S.skip&&z.unshift(Bt-Ze*fe-te.skipChildrenTotalCount),Re+at>=S.skip+he&&j.unshift(he-fe-te.childrenTotalCount+te.skipChildrenTotalCount)):Re+at>=S.skip+he&&j.unshift(he+Bt-te.childrenTotalCount)),Re<=S.skip&&(re[re.length-2]?re[re.length-2].skipChildrenTotalCount+=Math.min(vt,Bt+1-Ze*Te):Y+=Math.min(vt,Bt+1)),Re<=S.skip+he&&(at=Math.min(vt,Bt+he-(Ze+1)*Te),re[re.length-2]?re[re.length-2].childrenTotalCount+=at:ie+=at)}),S.skip-=Y,S.take-=ie-Y),S.skips=z,S.takes=j},changeRowExpand:function(S){var T=this.findGroupInfo(S),R=this._dataSource,L=R.remoteOperations().groupPaging,z=oi.normalizeSortingInfo(R.group());return T?(T.isExpanded=!T.isExpanded,L&&T.isExpanded&&S.length<z.length?f(R,{filter:ob(S,{filter:R.lastLoadOptions().filter,group:R.group()}),group:[z[S.length]],select:R.select()}).done(function(j){T.count=j}):(new et).resolve()):(new et).reject()},handleDataLoading:function(S){var T=S.storeLoadOptions,R=oi.normalizeSortingInfo(T.group||S.loadOptions.group);if(!S.isCustomLoading&&R.length){if(S.remoteOperations.grouping){var L=this._dataSource.remoteOperations().paging;T.group=oi.normalizeSortingInfo(T.group),T.group.forEach(function(z,j){z.isExpanded=!(L&&j===T.group.length-1)})}S.group=S.group||R,S.remoteOperations.paging?(S.skip=T.skip,S.take=T.take,T.requireGroupCount=!0,T.group=R.slice(0,1),this._updatePagingOptions(S),T.skip=S.skip,T.take=S.take):(S.skip=S.loadOptions.skip,S.take=S.loadOptions.take,this._updatePagingOptions(S))}},handleDataLoadedCore:function(S,T){var z,R=oi.normalizeSortingInfo(S.storeLoadOptions.group||S.loadOptions.group).length,L=S.group?S.group.length:0,j={};if(S.isCustomLoading)T(S),n(this,S.data,R,j,[],S.isCustomLoading,S.storeLoadOptions.isLoadingAll);else{if(S.remoteOperations.paging||this.foreachGroups(function(Y){Y.count=0}),(z=i(this,S,S.data,R))<0)return void(S.data=(new et).reject(Di.Error("E1037")));if(S.remoteOperations.paging||R&&S.extra&&S.loadOptions.requireTotalCount&&(S.extra.totalCount=z,S.extra.groupCount=S.data.length),L&&S.storeLoadOptions.requireGroupCount&&!isFinite(S.extra.groupCount))return void(S.data=(new et).reject(uo.Error("E4022")));this.updateTotalItemsCount(S),S.remoteOperations.paging||this._updatePagingOptions(S),T(S),S.remoteOperations.paging||this._processPaging(S,R)}u(this,S,R,j,0,S.data)},_processSkips:function(S,T,R){if(R){var L=S[0],z=T[0],j=L&&L.items;void 0!==z&&(L.isContinuation=!0,j&&(L.items=j.slice(z),this._processSkips(L.items,T.slice(1),R-1)))}},_processTakes:function(S,T,R,L,z){if(L&&S){z=z||[];var j=S[S.length-1],Y=j&&j.items,ie=R[0];j&&(void 0!==ie&&(j.count-(j.isContinuation&&T[0]||0)||Y.length)>ie&&(j.isContinuationOnNextPage=!0,z.forEach(function(he){he.isContinuationOnNextPage=!0}),Y&&(Y=Y.slice(0,ie),j.items=Y)),z.push(j),this._processTakes(Y,T.slice(1),R.slice(1),L-1,z))}},_processPaging:function(S,T){this._processSkips(S.data,S.skips,T),this._processTakes(S.data,S.skips,S.takes,T)},isLastLevelGroupItemsPagingLocal:function(){return!1},sortLastLevelGroupItems:function(S){return S},refresh:function(S,T){var ie,te,R=this,L=R._dataSource,z=S.storeLoadOptions,j=S.group||S.storeLoadOptions.group,Y=oi.normalizeSortingInfo(R._group);function re(he,fe){fe.length===te+1&&(he.isExpanded=ie)}for(te=0;te<Y.length;te++)ie=r(j,te),r(R._group,te)!==ie&&R.foreachGroups(re);if(R.callBase.apply(this,arguments),j&&S.remoteOperations.paging&&T.reload)return t(R,function(he){var fe=f(L,{filter:ob(he.path,{filter:z.filter,group:j}),group:j.slice(he.path.length),select:z.select});return Qt(f(L,{filter:cke(he.path,{filter:z.filter,group:j},!0),group:j.slice(he.path.length-1,he.path.length),select:z.select}),fe).done(function(Re,He){Re=parseInt(Re.length?Re[0]:Re),He=parseInt(He.length?He[0]:He),he.offset=Re,he.count!==He&&(he.count=He,R.updateTotalItemsCount(S))})},!0)}}}()),CY="dx-datagrid-group-panel",a9="dx-group-panel-item",fke="dx-toolbar-label",j6t={init:function(){this.callBase.apply(this,arguments),this._initGroupingHelper()},_initGroupingHelper:function(t){var n=this._grouping,e=this.option("grouping.autoExpandAll"),i=this.option("focusedRowEnabled"),r=t?t.remoteOperations:this.remoteOperations();!(r.filtering&&r.sorting&&r.paging)||r.grouping||!e&&i?(!n||n instanceof pke)&&(this._grouping=new gke(this)):(!n||n instanceof gke)&&(this._grouping=new pke(this))},totalItemsCount:function(){var t=this.callBase();return t>0&&this._dataSource.group()&&this._dataSource.requireTotalCount()?t+this._grouping.totalCountCorrection():t},itemsCount:function(){return this._dataSource.group()?this._grouping.itemsCount()||0:this.callBase.apply(this,arguments)},allowCollapseAll:function(){return this._grouping.allowCollapseAll()},isGroupItemCountable:function(t){return this._grouping.isGroupItemCountable(t)},isRowExpanded:function(t){var n=this._grouping.findGroupInfo(t);return n?n.isExpanded:!this._grouping.allowCollapseAll()},collapseAll:function(t){return this._collapseExpandAll(t,!1)},expandAll:function(t){return this._collapseExpandAll(t,!0)},_collapseExpandAll:function(t,n){var e=this._dataSource,i=e.group(),r=oi.normalizeSortingInfo(i||[]);if(r.length){for(var o=0;o<r.length;o++)void 0===t||t===o?r[o].isExpanded=n:i&&i[o]&&(r[o].isExpanded=i[o].isExpanded);e.group(r),this._grouping.foreachGroups(function(a,s){(void 0===t||t===s.length-1)&&(a.isExpanded=n)},!1,!0),this.resetPagesCache()}return!0},refresh:function(){return this.callBase.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)},changeRowExpand:function(t){var n=this._dataSource;if(n.group())return n.beginLoading(),this._lastLoadOptions&&(this._lastLoadOptions.groupExpand=!0),this._changeRowExpandCore(t).always(function(){n.endLoading()})},_changeRowExpandCore:function(t){return this._grouping.changeRowExpand(t)},_hasGroupLevelsExpandState:function(t,n){if(t&&Array.isArray(t))for(var e=0;e<t.length;e++)if(t[e].isExpanded===n)return!0},_customizeRemoteOperations:function(t,n){var e=t.remoteOperations;t.storeLoadOptions.group?(e.grouping&&!t.isCustomLoading&&(!e.groupPaging||this._hasGroupLevelsExpandState(t.storeLoadOptions.group,!0))&&(e.paging=!1),!e.grouping&&(!e.sorting||!e.filtering||t.isCustomLoading||this._hasGroupLevelsExpandState(t.storeLoadOptions.group,!1))&&(e.paging=!1)):!t.isCustomLoading&&e.paging&&n.grouping&&this.resetCache(),this.callBase.apply(this,arguments)},_handleDataLoading:function(t){return this.callBase(t),this._initGroupingHelper(t),this._grouping.handleDataLoading(t)},_handleDataLoaded:function(t){return this._grouping.handleDataLoaded(t,this.callBase.bind(this))},_handleDataLoadedCore:function(t){return this._grouping.handleDataLoadedCore(t,this.callBase.bind(this))}};hk.extend(j6t);var K6t={init:function(){this.callBase(),this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed")},_beforeProcessItems:function(t){var n=this._columnsController.getGroupColumns();return(t=this.callBase(t)).length&&n.length&&(t=this._processGroupItems(t,n.length)),t},_processItem:function(t,n){return Z(t.groupIndex)&&Pn(t.rowType)&&0===t.rowType.indexOf("group")?(t=this._processGroupItem(t,n),n.dataIndex=0):t=this.callBase.apply(this,arguments),t},_processGroupItem:function(t){return t},_processGroupItems:function(t,n,e){var i=this._columnsController.getGroupColumns(),r=i[i.length-n];if(!e){var o=this.option("scrolling.mode");e={collectContinuationItems:"virtual"!==o&&"infinite"!==o,resultItems:[],path:[],values:[]}}var a=e.resultItems;if(e.data&&(e.collectContinuationItems||!e.data.isContinuation)&&a.push({rowType:"group",data:e.data,groupIndex:e.path.length-1,isExpanded:!!e.data.items,key:e.path.slice(0),values:e.values.slice(0)}),t)if(0===n)a.push.apply(a,t);else for(var s=0;s<t.length;s++){var l=t[s];l&&"items"in l?(e.data=l,e.path.push(l.key),e.values.push(r&&r.deserializeValue&&!r.calculateDisplayValue?r.deserializeValue(l.key):l.key),this._processGroupItems(l.items,n-1,e),e.data=void 0,e.path.pop(),e.values.pop()):a.push(l)}return a},publicMethods:function(){return this.callBase().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])},collapseAll:function(t){var n=this._dataSource;n&&n.collapseAll(t)&&(n.pageIndex(0),n.reload())},expandAll:function(t){var n=this._dataSource;n&&n.expandAll(t)&&(n.pageIndex(0),n.reload())},changeRowExpand:function(t){var n=this,e=n.isRowExpanded(t),i={key:t,expanded:e};return n.executeAction(e?"onRowCollapsing":"onRowExpanding",i),i.cancel?(new et).resolve():Qt(n._changeRowExpandCore(t)).done(function(){i.expanded=!e,n.executeAction(e?"onRowCollapsed":"onRowExpanded",i)})},_changeRowExpandCore:function(t){var n=this,e=this._dataSource,i=new et;return e?Qt(e.changeRowExpand(t)).done(function(){n.load().done(i.resolve).fail(i.reject)}).fail(i.reject):i.resolve(),i},isRowExpanded:function(t){var n=this._dataSource;return n&&n.isRowExpanded(t)},expandRow:function(t){return this.isRowExpanded(t)?(new et).resolve():this.changeRowExpand(t)},collapseRow:function(t){return this.isRowExpanded(t)?this.changeRowExpand(t):(new et).resolve()},optionChanged:function(t){"grouping"===t.name&&(t.name="dataSource"),this.callBase(t)}},bY=function(t,n){var e=this._columnsController;switch(n.itemData.value){case"group":var i=e._dataSource.group()||[];e.columnOption(t.dataField,"groupIndex",i.length);break;case"ungroup":e.columnOption(t.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},$6t={_getToolbarItems:function(){var t=this.callBase();return this._appendGroupingItem(t)},_appendGroupingItem:function(t){if(this._isGroupPanelVisible()){var n=!1;t.push({template:()=>{var i=U("<div>").addClass(CY);return this._updateGroupPanelContent(i),ck("groupPanel",this,i,void 0,this._handleActionKeyDown.bind(this)),i},name:"groupPanel",onItemRendered:()=>{n&&this.renderCompleted.fire(),n=!0},location:"before",locateInMenu:"never",sortIndex:1}),this.updateToolbarDimensions()}return t},_handleActionKeyDown:function(t){var n=t.event,e=U(n.target),i=e.closest(".".concat(a9)).index(),r=this._columnsController.getGroupColumns()[i],o=r&&r.index;e.is(".dx-header-filter")?this.getController("headerFilter").showHeaderFilterMenu(o,!0):this._processGroupItemAction(o),n.preventDefault()},_isGroupPanelVisible:function(){var n,t=this.option("groupPanel");return t&&"auto"===(n=t.visible)&&(n="desktop"===pn.current().deviceType),n},_renderGroupPanelItems:function(t,n){var e=this;t.empty(),we(n,function(i,r){e._createGroupPanelItem(t,r)}),Qq(this)},_createGroupPanelItem:function(t,n){var e=U("<div>").addClass(n.cssClass).addClass(a9).data("columnData",n).appendTo(t).text(n.caption);return function V3t(t,n){t.option("useLegacyKeyboardnavigation")||n.attr("tabindex",t.option("tabindex")||0)}(this,e),e},_columnOptionChanged:function(t){if(!this._requireReady&&!oi.checkChanges(t.optionNames,["width","visibleWidth"])){var n=this.element(),e=n&&n.find("."+CY);e&&e.length&&(this._updateGroupPanelContent(e),this.updateToolbarDimensions(),this.renderCompleted.fire())}this.callBase()},_updateGroupPanelContent:function(t){var n=this.getController("columns").getGroupColumns(),e=this.option("groupPanel");this._renderGroupPanelItems(t,n),e.allowColumnDragging&&!n.length&&(U("<div>").addClass("dx-group-panel-message").text(e.emptyPanelText).appendTo(t),t.closest(".dx-toolbar-item").addClass(fke),t.closest("."+fke).css("maxWidth","none"))},allowDragging:function(t){var n=this.option("groupPanel");return this._isGroupPanelVisible()&&n.allowColumnDragging&&t&&t.allowGrouping},getColumnElements:function(){var t=this.element();return t&&t.find("."+a9)},getColumns:function(){return this.getController("columns").getGroupColumns()},getBoundingRect:function(){var t=this.element();if(t&&t.find("."+CY).length){var n=t.offset();return{top:n.top,bottom:n.top+Ln(t)}}return null},getName:function(){return"group"},getContextMenuItems:function(t){var i,n=this.option("grouping.contextMenuEnabled"),e=U(t.targetElement).closest("."+a9);if(e.length&&(t.column=e.data("columnData")),n&&t.column){var r=t.column;if(!Z(r.allowGrouping)||r.allowGrouping){var a=Z(r.groupIndex)&&r.groupIndex>-1,s=this.option("grouping.texts"),l=bY.bind(this,r);i=[{text:s.ungroup,value:"ungroup",disabled:!a,onItemClick:l},{text:s.ungroupAll,value:"ungroupAll",onItemClick:l}]}}return i},isVisible:function(){return this.callBase()||this._isGroupPanelVisible()},optionChanged:function(t){"groupPanel"===t.name?(this._invalidate(),t.handled=!0):this.callBase(t)}},q6t={getContextMenuItems:function(t){var e;if(this.option("grouping.contextMenuEnabled")&&t.row&&"group"===t.row.rowType){var r=this._columnsController.columnOption("groupIndex:"+t.row.groupIndex);if(r&&r.allowGrouping){var o=this.option("grouping.texts"),a=bY.bind(this,r);(e=[]).push({text:o.ungroup,value:"ungroup",onItemClick:a},{text:o.ungroupAll,value:"ungroupAll",onItemClick:a})}}return e},_rowClick:function(t){var n=this.option("grouping.expandMode"),i="infinite"!==this.option("scrolling.mode")&&"rowClick"===n&&U(t.event.target).closest(".dx-group-row").length,r=U(t.event.target).closest(".dx-datagrid-expand").length;(i||r)&&this._changeGroupRowState(t),this.callBase(t)},_changeGroupRowState:function(t){var n=this.getController("data"),e=n.items()[t.rowIndex],i=this._columnsController.columnOption("groupIndex:"+e.groupIndex,"allowCollapsing");("data"===e.rowType||"group"===e.rowType&&!1!==i)&&(n.changeRowExpand(e.key,!0),t.event.preventDefault(),t.handled=!0)}},Y6t={getContextMenuItems:function(t){var n=this.option("grouping.contextMenuEnabled"),e=this.callBase(t);if(n&&t.row&&("header"===t.row.rowType||"detailAdaptive"===t.row.rowType)){var i=t.column;if(!i.command&&(!Z(i.allowGrouping)||i.allowGrouping)){var r=this.option("grouping.texts"),o=Z(i.groupIndex)&&i.groupIndex>-1,a=bY.bind(this,i);(e=e||[]).push({text:r.groupByThisColumn,value:"group",beginGroup:!0,disabled:o,onItemClick:a}),i.showWhenGrouped&&e.push({text:r.ungroup,value:"ungroup",disabled:!o,onItemClick:a}),e.push({text:r.ungroupAll,value:"ungroupAll",onItemClick:a})}}return e}};oi.registerModule("grouping",{defaultOptions:function(){return{grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:ye.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:ye.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:ye.format("dxDataGrid-groupHeaderText"),ungroup:ye.format("dxDataGrid-ungroupHeaderText"),ungroupAll:ye.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:ye.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}},extenders:{controllers:{data:K6t,columns:{_getExpandColumnOptions:function(){var t=this.callBase.apply(this,arguments);return t.cellTemplate=oi.getExpandCellTemplate(),t}},editing:{_isProcessedItem:function(t){return Z(t.groupIndex)&&Pn(t.rowType)&&0===t.rowType.indexOf("group")}}},views:{headerPanel:$6t,rowsView:q6t,columnHeadersView:Y6t}}});var Z6t="dx-master-detail-cell",mke="dx-master-detail-row",X6t="dx-cell-focus-disabled",J6t="dx-row-lines",_ke={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var t=this.callBase();return this.option("masterDetail.enabled")&&t.push({type:"detailExpand",cellTemplate:vn.getExpandCellTemplate()}),t}},data:function(){var t=function(n){n._expandedItems=[],n._isExpandAll=n.option("masterDetail.autoExpandAll")};return{init:function(){t(this),this.callBase()},expandAll:function(n){var e=this;n<0?(e._isExpandAll=!0,e._expandedItems=[],e.updateItems()):e.callBase.apply(e,arguments)},collapseAll:function(n){var e=this;n<0?(e._isExpandAll=!1,e._expandedItems=[],e.updateItems()):e.callBase.apply(e,arguments)},isRowExpanded:function(n){var e=this,i=vn.getIndexByKey(n,e._expandedItems);return Array.isArray(n)?e.callBase.apply(e,arguments):!!(e._isExpandAll^(i>=0&&e._expandedItems[i].visible))},_getRowIndicesForExpand:function(n){var e=this.getRowIndexByKey(n);return[e,e+1]},_changeRowExpandCore:function(n){var i,e=this;if(Array.isArray(n))i=e.callBase.apply(e,arguments);else{var r=vn.getIndexByKey(n,e._expandedItems);if(r>=0){var o=e._expandedItems[r].visible;e._expandedItems[r].visible=!o}else e._expandedItems.push({key:n,visible:!0});e.updateItems({changeType:"update",rowIndices:e._getRowIndicesForExpand(n)}),i=(new et).resolve()}return i},_processDataItem:function(n,e){var i=this,r=i.callBase.apply(i,arguments);return r.isExpanded=i.isRowExpanded(r.key),void 0===e.detailColumnIndex&&(e.detailColumnIndex=-1,we(e.visibleColumns,function(o,a){if("expand"===a.command&&!Z(a.groupIndex))return e.detailColumnIndex=o,!1})),e.detailColumnIndex>=0&&(r.values[e.detailColumnIndex]=r.isExpanded),r},_processItems:function(n,e){var i=this,r=e.changeType,o=[];return n=i.callBase.apply(i,arguments),"loadingAll"===r?n:("refresh"===r&&(i._expandedItems=Vs(i._expandedItems,function(a){return a.visible})),we(n,function(a,s){o.push(s);var l=vn.getIndexByKey(s.key,i._expandedItems);"data"===s.rowType&&(s.isExpanded||l>=0)&&!s.isNewRow&&o.push({visible:s.isExpanded,rowType:"detail",key:s.key,data:s.data,values:[]})}),o)},optionChanged:function(n){var e,i;if("masterDetail"===n.name){switch(n.name="dataSource",n.fullName){case"masterDetail":var r=n.value||{},o=n.previousValue||{};e=r.enabled!==o.enabled,i=r.autoExpandAll!==o.autoExpandAll;break;case"masterDetail.template":t(this);break;case"masterDetail.enabled":e=!0;break;case"masterDetail.autoExpandAll":i=!0}(e||i)&&t(this)}this.callBase(n)}}}(),resizing:{fireContentReadyAction:function(){this.callBase.apply(this,arguments),this._updateParentDataGrids(this.component.$element())},_updateParentDataGrids:function(t){var n=t.closest("."+mke);n.length&&Qt(this._updateMasterDataGrid(n,t)).done(()=>{this._updateParentDataGrids(n.parent())})},_updateMasterDataGrid:function(t,n){var e=U(t).data("options"),i=U(t).closest("."+this.getWidgetContainerClass()).parent().data("dxDataGrid");if(e&&i)return this._updateMasterDataGridCore(i,e)},_updateMasterDataGridCore:function(t,n){var e=et();if(t.getView("rowsView").isFixedColumns())this._updateFixedMasterDetailGrids(t,n.rowIndex,U(n.rowElement)).done(e.resolve);else{if(!0===t.option("scrolling.useNative"))return void t.updateDimensions().done(()=>e.resolve(!0));var i=t.getScrollable();i?i?.update().done(()=>e.resolve()):e.resolve()}return e.promise()},_updateFixedMasterDetailGrids:function(t,n,e){var i=et(),r=U(t.getRowElement(n)),o=U(t.getView("rowsView").getTableElements()),a=2===r?.length&&Ln(r.eq(0))!==Ln(r.eq(1)),s=2===o?.length&&Ln(o.eq(0))!==Ln(o.eq(1));if(a||s){var l=wn(e);return t.updateDimensions().done(()=>{var u=this.option("columnAutoWidth")&&!0===t.option("scrolling.useNative"),f=u&&l!==wn(e);u&&f?this.updateDimensions().done(()=>i.resolve(!0)):i.resolve(!0)}),i.promise()}return et().resolve()},_toggleBestFitMode:function(t){if(this.callBase.apply(this,arguments),this.option("masterDetail.template")){var n=this._rowsView.getTableElement();n&&n.find(".dx-master-detail-cell").css("maxWidth",t?0:"")}}}},views:{rowsView:{_getCellTemplate:function(t){var n=this,e=t.column,i=n.getController("editing"),r=i&&i.isEditRow(t.rowIndex);return"detail"!==e.command||r?n.callBase.apply(n,arguments):n.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:n._getDefaultTemplate(e)}},_isDetailRow:function(t){return t&&t.rowType&&0===t.rowType.indexOf("detail")},_createRow:function(t){var n=this.callBase.apply(this,arguments);return t&&this._isDetailRow(t)&&(this.option("showRowLines")&&n.addClass(J6t),n.addClass(mke),Z(t.visible)&&n.toggle(t.visible)),n},_renderCells:function(t,n){var e=n.row,r=this._columnsController.getVisibleColumns();e.rowType&&this._isDetailRow(e)?this._needRenderCell(0,n.columnIndices)&&this._renderCell(t,{value:null,row:e,rowIndex:e.rowIndex,column:{command:"detail"},columnIndex:0,change:n.change}).addClass(X6t).addClass(Z6t).attr("colSpan",r.length):this.callBase.apply(this,arguments)}}}}};oi.registerModule("masterDetail",_ke);var vke="dx-radiobutton-icon",yke=Ru.inherit({_supportedKeys:function(){return se(this.callBase(),{space:function(t){t.preventDefault(),this._clickAction({event:t})}})},_getDefaultOptions:function(){return se(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-radiobutton")},_initMarkup:function(){this.callBase(),this._renderIcon(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderIcon:function(){this._$icon=U("<div>").addClass(vke),U("<div>").addClass("dx-radiobutton-icon-dot").appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(t){this.$element().toggleClass("dx-radiobutton-checked",t).find("."+vke).toggleClass("dx-radiobutton-icon-checked",t),this.setAria("checked",t)},_renderClick:function(){var t=kt(Vi,this.NAME);this._clickAction=this._createAction(function(n){this._clickHandler(n.event)}.bind(this)),Se.off(this.$element(),t),Se.on(this.$element(),t,function(n){this._clickAction({event:n})}.bind(this))},_clickHandler:function(t){this._saveValueChangeEvent(t),this.option("value",!0)},_optionChanged:function(t){"value"===t.name?(this._renderCheckedState(t.value),this.callBase(t)):this.callBase(t)}});On("dxRadioButton",yke);const iHt=yke;var xY="dxListEditDecorator",rHt=kt(WL,xY),oHt=kt(GL,xY),aHt=kt(jT,xY),sHt=ji.inherit({ctor:function(t){this._list=t,this._init()},_init:Be,_shouldHandleSwipe:!1,_attachSwipeEvent:function(t){var n={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=wn(this._list.$element()),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};Se.on(t.$itemElement,rHt,n,this._itemSwipeStartHandler.bind(this)),Se.on(t.$itemElement,oHt,this._itemSwipeUpdateHandler.bind(this)),Se.on(t.$itemElement,aHt,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(t){var n=U(t.currentTarget);n.is(".dx-state-disabled, .dx-state-disabled *")?t.cancel=!0:(clearTimeout(this._list._inkRippleTimer),this._swipeStartHandler(n,t))},_itemSwipeUpdateHandler:function(t){var n=U(t.currentTarget);this._swipeUpdateHandler(n,t)},_itemSwipeEndHandler:function(t){var n=U(t.currentTarget);this._swipeEndHandler(n,t),this._clearSwipeCache=!0},beforeBag:Be,afterBag:Be,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(t){this._shouldHandleSwipe&&(this._attachSwipeEvent(t),this._clearSwipeCache=!0)},afterRender:Be,handleClick:Be,handleKeyboardEvents:Be,handleEnterPressing:Be,handleContextMenu:Be,_swipeStartHandler:Be,_swipeUpdateHandler:Be,_swipeEndHandler:Be,visibilityChange:Be,getExcludedSelectors:Be,dispose:Be});const ab=sHt;var Cke="dx-list-select-decorator-enabled",cHt="dx-list-select-checkbox-container",hHt="dx-list-select-checkbox",pHt="dx-list-select-radiobutton-container",gHt="dx-list-select-radiobutton",bke=kt(Vi,"dxListEditDecorator");T_("selection","default",ab.inherit({_init:function(){this.callBase.apply(this,arguments);var t=this._list.option("selectionMode");this._singleStrategy="single"===t,this._containerClass=this._singleStrategy?pHt:cHt,this._controlClass=this._singleStrategy?gHt:hHt,this._controlWidget=this._singleStrategy?iHt:wS,this._list.$element().addClass(Cke)},beforeBag:function(t){var n=t.$itemElement,e=t.$container.addClass(this._containerClass),i=U("<div>").addClass(this._controlClass).appendTo(e);new this._controlWidget(i,se(this._commonOptions(),{value:this._isSelected(n),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(r){r.event&&this._list._saveSelectionChangeEvent(r.event),this._processCheckedState(n,r.value),r.event&&r.event.stopPropagation()}.bind(this)}))},modifyElement:function(t){this.callBase.apply(this,arguments);var n=t.$itemElement,e=this._controlWidget.getInstance(n.find("."+this._controlClass));Se.on(n,"stateChanged",function(i,r){e.option("value",r)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(t,n){var e=!n,i=this._list,r=this._$selectAll,o=i._getLastItemIndex();return!(!r||!(n&&0===t||e&&t===o)||(i.option("focusedElement",r),i.scrollToItem(i.option("focusedElement")),0))},handleEnterPressing:function(t){if(this._$selectAll&&this._$selectAll.hasClass("dx-state-focused"))return t.target=this._$selectAll.get(0),this._list._saveSelectionChangeEvent(t),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var t=this._$selectAll=U("<div>").addClass("dx-list-select-all"),n=this._list,e=n._supportedKeys().downArrow.bind(n);this._selectAllCheckBox=n._createComponent(U("<div>").addClass("dx-list-select-all-checkbox").appendTo(t),wS,{focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",e),U("<div>").addClass("dx-list-select-all-label").text(this._list.option("selectAllText")).appendTo(t),this._list.itemsContainer().prepend(t),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),Se.off(this._$selectAll,bke),Se.on(this._$selectAll,bke,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(t){t.event&&t.event.stopPropagation();var n=this._selectAllCheckBox.option("value");t.event&&this._list._saveSelectionChangeEvent(t.event),!0===n?this._selectAllItems():!1===n&&this._unselectAllItems(),this._list._createActionByOption("onSelectAllValueChanged")({value:n})},_checkSelectAllCapability:function(){var t=this._list,n=t._dataController;return!("allPages"===t.option("selectAllMode")&&t.option("grouped")&&!n.group()&&(Di.log("W1010"),1))},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(t){this._list._saveSelectionChangeEvent(t),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(t){return this._list.isItemSelected(t)},_processCheckedState:function(t,n){n?this._list.selectItem(t):this._list.unselectItem(t)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(Cke),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}));var xke="dx-selectbox-popup-wrapper",wke=aj.inherit({_supportedKeys:function(){var t=this,n=this.callBase(),e=function(r){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(r.preventDefault(),this.reset()),this._savedTextRemoveEvent=r,this._preventSubstitution=!0},i=function(){t.option("searchEnabled")&&t._valueSubstituted()&&t._searchHandler()};return se({},n,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._resetCaretPosition(!0),n.tab&&n.tab.apply(this,arguments),this._cancelSearchIfNeed()},upArrow:function(r){if(n.upArrow&&n.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(r),!0},downArrow:function(r){if(n.downArrow&&n.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(r),!0},leftArrow:function(){i(),n.leftArrow&&n.leftArrow.apply(this,arguments)},rightArrow:function(){i(),n.rightArrow&&n.rightArrow.apply(this,arguments)},home:function(){i(),n.home&&n.home.apply(this,arguments)},end:function(){i(),n.end&&n.end.apply(this,arguments)},escape:function(){var r=n.escape&&n.escape.apply(this,arguments);return this._cancelEditing(),r??!0},enter:function(r){var o=this.option("opened"),a=this._input().val().trim(),s=a&&this._list&&!this._list.option("focusedElement");if(!a&&Z(this.option("value"))&&this.option("allowClearing"))this._saveValueChangeEvent(r),this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return r.preventDefault(),s&&(o&&this._toggleOpenState(),this._valueChangeEventHandler(r)),o;if(n.enter&&n.enter.apply(this,arguments))return o}},space:function(r){var o=this.option("opened"),a=this.option("searchEnabled"),s=this.option("acceptCustomValue");if(o&&!a&&!s)return r.preventDefault(),this._valueChangeEventHandler(r),!0},backspace:e,del:e})},_getDefaultOptions:function(){return se(this.callBase(),{placeholder:ye.format("Select"),fieldTemplate:null,customItemCreateEvent:"change",valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(t){Z(t.customItem)||(t.customItem=t.text)},showSelectionControls:!1,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,useHiddenSubmitElement:!0})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this.$element().addClass("dx-selectbox"),this._renderTooltip(),this.callBase(),this._$container.addClass("dx-selectbox-container")},_createPopup:function(){this.callBase(),this._popup.$element().addClass("dx-selectbox-popup"),this._popup.$overlayContent().attr("tabindex",-1)},_popupWrapperClass:function(){return this.callBase()+" "+xke},_setDeprecatedOptions(){this.callBase(),se(this._deprecatedOptions,{valueChangeEvent:{since:"22.2",alias:"customItemCreateEvent"}})},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var t;if(this._searchValue()){var{items:e,selectedItem:i}=this.option(),r=this._list._itemElements(),o=null!==(t=e?.indexOf(i))&&void 0!==t?t:-1,a=-1===o||this._isCustomItemSelected()?null:r.eq(o);this._focusListElement(a)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list){if(!this._searchValue()||this.option("acceptCustomValue"))return void this._focusListElement(null);var e=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(e)}},_focusListElement:function(t){this._preventInputValueRender=!0,this._list.option("focusedElement",kn(t)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase(),this._dataController.paginate()&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new et).resolve()},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new et).resolve()},_setNextItem:function(t){var n=this._calcNextItem(t),e=this._valueGetter(n);this._setValue(e)},_setNextValue:function(t){(this._dataController.isLoaded()?(new et).resolve():this._dataController.load()).done(function(){var e=this._getSelectedIndex(),i=this._dataController.pageSize(),r=this._dataController.isLastPage(),o=e===this._items().length-1;this._saveValueChangeEvent(t);var a="downArrow"===Wo(t)?1:-1;i&&!r&&o&&a>0?(this._popup||this._createPopup(),this._dataController.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,a))):this._setNextItem(a)}.bind(this))},_setSelectedItem:function(t){var n=!this._isCustomValueAllowed()&&void 0===t;this.callBase(n?null:t),!n&&(!this._isEditable()||this._isCustomItemSelected())&&this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(t){return t=!Z(t)&&this._isCustomValueAllowed()?this.option("value"):t,this.callBase(t)},_listConfig:function(){var t=se(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&se(t,{showSelectionControls:!0,selectionByClick:!0}),t},_listFocusedItemChangeHandler:function(t){if(!this._preventInputValueRender){var n=t.component,e=U(n.option("focusedElement")),i=n._getItemData(e);this._updateField(i)}},_updateField:function(t){if(!this._getTemplateByOption("fieldTemplate")||!this.option("fieldTemplate")){var e=this._displayGetter(t);return this.option("text",e),void this._renderDisplayText(e)}this._renderField()},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):Be},_selectionChangeHandler:function(t){we(t.addedItems||[],function(n,e){this._setValue(this._valueGetter(e))}.bind(this))},_getActualSearchValue:function(){return this._dataController.searchValue()},_toggleOpenState:function(t){if(!this.option("disabled")){if(!(t=arguments.length?t:!this.option("opened"))&&!this._shouldClearFilter()&&this._restoreInputText(!0),this._wasSearch()&&t){this._wasSearch(!1);var n=this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded();if(n&&this._dataController.getDataSource()){if(this._searchTimer)return;var e=this._getActualSearchValue();e&&this._wasSearch(!0),this._filterDataSource(e||null)}else this._setListOption("items",[])}t&&this._scrollToSelectedItem(),this.callBase(t)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._updatePopupWidth(),this._updateListDimensions()},_isValueEqualInputText:function(){var t=this.option("selectedItem");if(null===t)return!1;var n=this._displayGetter(t);return(n?String(n):"")===this._searchValue()},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_popupHiddenHandler:function(){this.callBase(),this._shouldCancelSearch()&&(this._wasSearch(!1),this._searchCanceled(),this._shouldCancelSearch(!1))},_restoreInputText:function(t){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var{acceptCustomValue:n,text:e,selectedItem:i}=this.option();n?!t&&!this._isValueChanging&&(this._updateField(i??this._createCustomItem(e)),this._clearFilter()):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?this._clearTextValue():this._isValueEqualInputText()||this._renderInputValue().always(function(r){var o=gr(r,i);this._setSelectedItem(o),this._updateField(o),this._clearFilter()}.bind(this))}.bind(this))},_valueChangeEventIncludesBlur:function(){return this.option(this._getValueChangeEventOptionName()).includes("blur")},_isPreventedFocusOutEvent:function(t){return this._preventNestedFocusEvent(t)||this._valueChangeEventIncludesBlur()},_focusOutHandler:function(t){this._isPreventedFocusOutEvent(t)||(this._isOverlayNestedTarget(t.relatedTarget)||(this._restoreInputText(),this._clearSearchTimer()),this._cancelSearchIfNeed(t)),t.target=this._input().get(0),this.callBase(t)},_cancelSearchIfNeed:function(t){var{searchEnabled:n}=this.option(),e=this._isOverlayNestedTarget(t?.relatedTarget);if(this._wasSearch()&&n&&!e){var r,o=null===(r=this._popup)||void 0===r?void 0:r._hideAnimationProcessing;this._clearSearchTimer(),o?this._shouldCancelSearch(!0):(this._wasSearch(!1),this._searchCanceled())}},_shouldCancelSearch:function(t){if(!arguments.length)return this._shouldCancelSearchValue;this._shouldCancelSearchValue=t},_isOverlayNestedTarget:function(t){return!!U(t).closest(".".concat(xke)).length},_clearTextValue:function(){this.option("selectedItem")&&(this._savedTextRemoveEvent&&this._saveValueChangeEvent(this._savedTextRemoveEvent),this.option("value",null)),delete this._savedTextRemoveEvent},_shouldOpenPopup:function(){return this._needPassDataSourceToList()&&this._wasSearch()},_isFocused:function(){var t=It.getActiveElement(this.element());return this.callBase()&&U(t).closest(this._input()).length>0},_getValueChangeEventOptionName:function(){return"customItemCreateEvent"},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_fieldRenderData:function(){var t=this._list&&this.option("opened")&&U(this._list.option("focusedElement"));return t&&t.length?this._list._getItemData(t):this.option("selectedItem")},_isSelectedValue:function(t){return this._isValueEquals(t,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(t){var n=this._getCurrentValue();this._focusListElement(U(t.itemElement)),this._saveValueChangeEvent(t.event),this._completeSelection(this._valueGetter(t.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&n===this._valueGetter(t.itemData)&&this._updateField(t.itemData),this._shouldClearFilter()&&this._cancelSearchIfNeed()},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(t){this._setValue(t)},_loadItem:function(t,n){var e=this,i=new et;return this.callBase(t,n).done(function(r){i.resolve(r)}.bind(this)).fail(function(r){if(null==r||!r.shouldSkipCallback){var o=e.option("selectedItem");e.option("acceptCustomValue")&&t===e._valueGetter(o)?i.resolve(o):i.reject()}}.bind(this)),i.promise()},_loadInputValue:function(t,n){return this._loadItemDeferred=this._loadItem(t).always(n),this._loadItemDeferred},_isCustomItemSelected:function(){var t=this.option("selectedItem"),n=this._searchValue(),e=this._displayGetter(t);return!e||n!==e.toString()},_valueChangeEventHandler:function(t){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(t))},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(t){var n={text:t},e=this._customItemCreatingAction(n),i=gr(e,n.customItem);return Z(e)&&Wr.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(t){var n=this._searchValue(),e=this._createCustomItem(n);if(this._saveValueChangeEvent(t),void 0===e)throw this._renderValue(),Wr.Error("E0121");dh(e)?ra(e).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(e)},_setCustomItem:function(t){this._disposed||(this.option("selectedItem",t=t||null),this._cancelSearchIfNeed(),this._setValue(this._valueGetter(t)),this._renderDisplayText(this._displayGetter(t)),this._isValueChanging=!1)},_clearValueHandler:function(t){return this._preventFiltering=!0,this.callBase(t),this._searchCanceled(),!1},_wasSearch:function(t){if(!arguments.length)return!!this._wasSearchValue;this._wasSearchValue=t},_searchHandler:function(){this._preventFiltering?delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),this.callBase(arguments))},_dataSourceFiltered:function(t){this.callBase(),null!==t&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var t=this._input().get(0),n=this._searchValue().length,e=0===t.selectionStart&&t.selectionEnd===n,i=t.selectionStart!==t.selectionEnd,r=n===t.selectionEnd;return this._wasSearch()&&i&&!e&&r&&this._shouldSubstitutionBeRendered()},_shouldSubstitutionBeRendered:function(){return!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(this._shouldSubstitutionBeRendered()){var t=this._list&&this._getPlainItems(this._list.option("items"))[0];if(t){var n=this._input(),e=n.val().length;if(0!==e){var i=n.get(0),r=this._displayGetter(t).toString();i.value=r,this._caret({start:e,end:r.length})}}}else delete this._preventSubstitution},_dispose:function(){this._renderInputValueAsync=Be,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(t){switch(t.name){case"customItemCreateEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":this._invalidate();break;case"allowClearing":break;default:this.callBase(t)}}});On("dxSelectBox",wke);const s9=wke;var Ske=t=>t.getMonth()+1,Dke=(t,n)=>{var e=t.getDate(),i=Ck("M",t),r=al(parseInt(n),i.min,i.max);t.setMonth(r-1,1);var{min:o,max:a}=Ck("dM",t),s=al(e,o,a);t.setDate(s)},CHt={a:t=>t.getHours()<12?0:1,E:"getDay",y:"getFullYear",M:Ske,L:Ske,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},bHt=se({},rz,{a:(t,n)=>{var e=t.getHours();e>=12!=!!parseInt(n)&&t.setHours((e+12)%24)},d:(t,n)=>{n>Ck("dM",t).max&&t.setMonth(t.getMonth()+1),t.setDate(n)},h:(t,n)=>{var e=t.getHours()>=12;t.setHours(+n%12+(e?12:0))},M:Dke,L:Dke,E:(t,n)=>{n<0||t.setDate(t.getDate()-t.getDay()+parseInt(n))},y:(t,n)=>{var e=t.getFullYear(),i=String(n).length,r=String(Ck("y",t).max).length,o=parseInt(String(e).substr(0,r-i)+n);t.setFullYear(o)}}),Ck=(t,n,e)=>{var i={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(n.getFullYear(),n.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:0,max:23},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return i[e||t]||i.getAmPm},wY=["year","day","month","day"],Eke=["hours","minutes","seconds","milliseconds"],uf={SUPPORTED_FORMATS:["date","time","datetime"],ONE_MINUTE:6e4,ONE_DAY:864e5,ONE_YEAR:31536e6,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){var t=new Date;return new Date(t.getFullYear()+50,t.getMonth(),t.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:wY},time:{getStandardPattern:function(){return"HH:mm"},components:Eke},datetime:{getStandardPattern:function(){var t;return function(){var n=U("<input>").attr("type","datetime");n.val("2000-01-01T01:01Z"),n.val()&&(t="yyyy-MM-ddTHH:mmZ")}(),t||(t="yyyy-MM-ddTHH:mm:ssZ"),uf.FORMATS_INFO.datetime.getStandardPattern=function(){return t},t},components:[...wY,...Eke]},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:[...wY,"hours","minutes","seconds"]}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(t,n){var e=uf.FORMATS_INFO[n].getStandardPattern();return Qr.serializeDate(t,e)},fromStandardDateFormat:function(t){var n=Qr.dateParser(t);return Sa(n)?n:void 0},getMaxMonthDay:function(t,n){return new Date(t,n+1,0).getDate()},mergeDates:function(t,n,e){if(!n)return n||null;if(!t||isNaN(t.getTime())){var i=new Date(null);t=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var r=new Date(t.valueOf());return we(uf.FORMATS_INFO[e].components,function(){var a=uf.DATE_COMPONENTS_INFO[this];r[a.setter](n[a.getter]())}),r},getLongestCaptionIndex:function(t){var i,n=0,e=0;for(i=0;i<t.length;++i)t[i].length>e&&(n=i,e=t[i].length);return n},formatUsesMonthName:function(t){return Gn.formatUsesMonthName(t)},formatUsesDayName:function(t){return Gn.formatUsesDayName(t)},getLongestDate:function(t,n,e){var i=function(t){var n=typeof t;return"string"===n?"format":"object"===n&&void 0!==t.type?t.type:null}(t),r=9;(!i||uf.formatUsesMonthName(i))&&(r=uf.getLongestCaptionIndex(n));var o=new Date(1888,r,21,23,59,59,999);if(!i||uf.formatUsesDayName(i)){var a=o.getDate()-o.getDay()+uf.getLongestCaptionIndex(e);o.setDate(a)}return o},normalizeTime:function(t){t.setSeconds(0),t.setMilliseconds(0)}};uf.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(t,n){var e=new Date(n.getTime());return e.setFullYear(t),Gn.format(e,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(t,n){var e=new Date(n.getTime());return e.setDate(t),Gn.format(e,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(t){return Gn.getMonthNames()[t]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(t){return Gn.format(new Date(0,0,0,t),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(t){return Gn.format(new Date(0,0,0,0,t),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(t){return Gn.format(new Date(0,0,0,0,0,t),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(t){return Gn.format(new Date(0,0,0,0,0,0,t),"millisecond")},startValue:0,endValue:999}};const Jo=uf;var l9=ji.abstract,OHt=ji.inherit({ctor:function(t){this.dateBox=t},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(t){t=t||U("<div>"),this._widget=this._createWidget(t),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(t){var n=this._getWidgetName(),e=this._getWidgetOptions();return this.dateBox._createComponent(t,n,e)},_getWidgetOptions:l9,_getWidgetName:l9,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:l9,supportedKeys:Be,getKeyboardListener:Be,customizeButtons:Be,getParsedText:function(t,n){return Gn.parse(t,n)||Gn.parse(t)},renderInputMinMax:Be,renderOpenedState:function(){this._updateValue()},popupConfig:l9,_dimensionChanged:function(){var t;null===(t=this._getPopup())||void 0===t||t.repaint()},renderPopupContent:function(){var t=this._getPopup();this._renderWidget();var n=t.$content().parent();Se.off(n,"mousedown"),Se.on(n,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:Be,getLastPopupElement:Be,_preventFocusOnPopup:function(t){t.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:Be,popupHiddenHandler:Be,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},useCurrentDateByDefault:Be,getDefaultDate:function(){return new Date},textChangedHandler:Be,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var t=this._getPopup();t&&t.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});const u9=OHt;var THt=u9.inherit({NAME:"Calendar",getDefaultOptions:function(){return se(this.callBase(),{todayButtonText:ye.format("dxCalendar-todayButtonText")})},supportedKeys:function(){var t=function(n){return!!this.option("opened")&&(n.preventDefault(),!0)};return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(n){if(this.dateBox.option("opened")){if(n.preventDefault(),this._widget.option("zoomLevel")===this._widget.option("maxZoomLevel")){var e=this._getContouredValue(),i=this._lastActionElement,r=this._closeDropDownByEnter();return r&&e&&"calendar"===i&&this.dateBoxValue(e,n),r&&this.dateBox.close(),this.dateBox._valueChangeEventHandler(n),!r}return!0}this.dateBox._valueChangeEventHandler(n)}.bind(this),home:t,end:t}},getDisplayFormat:function(t){return t||"shortdate"},_closeDropDownByEnter:()=>!0,_getWidgetName:function(){return S$},_getContouredValue:function(){return this._widget._view.option("contouredDate")},getKeyboardListener(){return this._widget},_getWidgetOptions:function(){var t=this.dateBox.option("disabledDates");return se(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:Yt(t)?this._injectComponent(t.bind(this.dateBox)):t,onContouredChanged:this._refreshActiveDescendant.bind(this),skipFocusCheck:!0})},_injectComponent:function(t){var n=this;return function(e){return se(e,{component:n.dateBox}),t(e)}},_refreshActiveDescendant:function(t){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",t.actionValue)},_getTodayButtonConfig(){var t=this.dateBox.option("buttonsLocation"),e="default"===t?["bottom","center"]:tw(t);return{widget:"dxButton",toolbar:e[0],location:"after"===e[1]?"before":e[1],options:{onInitialized:function(i){i.component.registerKeyHandler("escape",this._escapeHandler.bind(this))}.bind(this),onClick:i=>{this._widget._toTodayView(i)},text:this.dateBox.option("todayButtonText"),type:"today"}}},_isCalendarVisible:function(){var{calendarOptions:t}=this.dateBox.option();return pa(t)||!1!==t.visible},_getPopupToolbarItems(t){return"useButtons"===this.dateBox.option("applyValueMode")&&this._isCalendarVisible()?[this._getTodayButtonConfig(),...t]:t},popupConfig:function(t){return se(!0,t,{position:{collision:"flipfit flip"},width:"auto"})},_escapeHandler:function(){this.dateBox.close(),this.dateBox.focus()},_valueChangedHandler:function(t){var n=t.value,e=t.previousValue;bt.sameDate(n,e)&&bt.sameHoursAndMinutes(n,e)||"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(this.getValue(),t.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(t){var n=this.dateBox;"instantly"===n.option("applyValueMode")&&(n.option("opened",!1),this.dateBoxValue(this.getValue(),t.event))}});const Ike=THt;class IHt{constructor(n){this.DIRECTION_HORIZONTAL="horizontal",this.DIRECTION_VERTICAL="vertical",this.DIRECTION_BOTH="both",this.direction=n??XL}get isHorizontal(){return this.direction===cCe||this.direction===tj}get isVertical(){return this.direction===XL||this.direction===tj}get isBoth(){return this.direction===tj}}var kke="dx-dateview-item";class Mke extends fCe{_getDefaultOptions(){return se(super._getDefaultOptions(),{showScrollbar:"never",useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null,scrollByContent:!0})}_init(){super._init(),this.option("onVisibilityChange",this._visibilityChangedHandler.bind(this)),this.option("onEnd",this._endActionHandler.bind(this))}_render(){super._render(),this._renderSelectedItemFrame(),this.$element().addClass("dx-dateviewroller"),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._renderWheelEvent(),this._renderSelectedIndexChanged()}_renderSelectedIndexChanged(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")}_renderWheelEvent(){Se.on(U(this.container()),"dxmousewheel",n=>{this._isWheelScrolled=!0})}_renderContainerClick(){if(this.option("showOnClick")){var n=kt(Vi,this.NAME),e=this._createActionByOption("onClick");Se.off(U(this.container()),n),Se.on(U(this.container()),n,function(i){e({event:i})})}}_renderItems(){var n=this.option("items")||[],e=U();U(this.content()).empty(),n.forEach(function(i){e=e.add(U("<div>").addClass(kke).append(i))}),U(this.content()).append(e),this._$items=e,this.update()}_renderSelectedItemFrame(){U("<div>").addClass("dx-dateview-item-selected-frame").append(U("<div>").addClass("dx-dateview-item-selected-border")).appendTo(U(this.container()))}_renderSelectedValue(n){var e=this._fitIndex(n??this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(e)}),this._renderActiveStateItem()}_fitIndex(n){var i=(this.option("items")||[]).length;return n>=i?i-1:n<0?0:n}_getItemPosition(n){return Math.round(this._itemHeight()*n)}_renderItemsClick(){var n=this._getItemSelector(),e=kt(Vi,this.NAME);Se.off(this.$element(),e,n),Se.on(this.$element(),e,n,this._itemClickHandler.bind(this))}_getItemSelector(){return"."+kke}_itemClickHandler(n){this.option("selectedIndex",this._itemElementIndex(n.currentTarget))}_itemElementIndex(n){return this._itemElements().index(n)}_itemElements(){return this.$element().find(this._getItemSelector())}_renderActiveStateItem(){var n=this.option("selectedIndex");we(this._$items,function(e){U(this).toggleClass("dx-dateview-item-selected",n===e)})}_shouldScrollToNeighborItem(){return"desktop"===pn.real().deviceType&&this._isWheelScrolled}_moveTo(n){var{top:e,left:i}=function kHt(t,n){if(wi(t)){var e=gr(t.left,t.x),i=gr(t.top,t.y);return{left:Z(e)?e:void 0,top:Z(i)?i:void 0}}var{isHorizontal:r,isVertical:o}=new IHt(n);return{left:r&&Z(t)?t:void 0,top:o&&Z(t)?t:void 0}}(n),r=this.scrollOffset(),o={x:r.left-i,y:r.top-e};if(this._isVisible()&&(o.x||o.y))if(this._prepareDirections(!0),this._animation&&!this._shouldScrollToNeighborItem()){var a=this;Hi.stop(U(this.content())),Hi.animate(U(this.content()),{duration:200,type:"slide",to:{top:Math.floor(o.y)},complete(){lC(U(a.content())),a.handleMove({delta:o})}}),delete this._animation}else this.handleMove({delta:o})}_validate(n){return this._moveIsAllowed(n)}_fitSelectedIndexInRange(n){var e=this.option("items").length;return Math.max(Math.min(n,e-1),0)}_isInNullNeighborhood(n){return-.1<=n&&n<=.1}_getSelectedIndexAfterScroll(n){var r=this.scrollOffset().top-n*this._itemHeight();return this._isInNullNeighborhood(r)?n:this._fitSelectedIndexInRange(n+(r>0?1:-1))}_getNewSelectedIndex(n){if(this._shouldScrollToNeighborItem())return this._getSelectedIndexAfterScroll(n);this._animation=!0;var e=this.scrollOffset().top/this._itemHeight();return Math.round(e)}_endActionHandler(){var n=this.option("selectedIndex"),e=this._getNewSelectedIndex(n);e===n?this._renderSelectedValue(e):this.option("selectedIndex",e),this._isWheelScrolled=!1}_itemHeight(){var n=this._$items.first();return Ln(n)}_toggleActive(n){this.$element().toggleClass("dx-state-active",n)}_isVisible(){return U(this.container()).is(":visible")}_fireSelectedIndexChanged(n,e){this._selectedIndexChanged({value:n,previousValue:e,event:void 0})}_visibilityChanged(n){super._visibilityChanged(n),this._visibilityChangedHandler(n)}_visibilityChangedHandler(n){n&&(this._visibilityTimer=setTimeout(()=>{this._renderSelectedValue(this.option("selectedIndex"))})),this.toggleActiveState(!1)}toggleActiveState(n){this.$element().toggleClass("dx-dateviewroller-current",n)}_refreshSelectedIndex(){var n=this.option("selectedIndex"),e=this._fitIndex(n);e===n?this._renderActiveStateItem():this.option("selectedIndex",e)}_optionChanged(n){switch(n.name){case"selectedIndex":this._fireSelectedIndexChanged(n.value,n.previousValue),this._renderSelectedValue(n.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:super._optionChanged(n)}}_dispose(){clearTimeout(this._visibilityTimer),super._dispose()}}On("dxDateViewRoller",Mke);const BHt=Mke;var SY="dx-dateview",Fke=Ru.inherit({_valueOption:function(){var t=this.option("value"),n=new Date(t);return!t||isNaN(n)?this._getDefaultDate():n},_getDefaultDate:function(){var t=new Date;return"date"===this.option("type")?new Date(t.getFullYear(),t.getMonth(),t.getDate()):t},_getDefaultOptions:function(){return se(this.callBase(),{minDate:Jo.MIN_DATEVIEW_DEFAULT_DATE,maxDate:Jo.MAX_DATEVIEW_DEFAULT_DATE,type:"date",value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(t){return"desktop"!==t.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass(SY),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(t,n){this.$element().addClass(SY+"-"+t),n&&this.$element().removeClass(SY+"-"+n)},_toggleCompactClass:function(){this.$element().toggleClass("dx-dateview-compact",this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=U("<div>").addClass("dx-dateview-wrapper"),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=U("<div>").addClass("dx-dateview-rollers")),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var t=this;we(t._rollerConfigs,function(n){var e=U("<div>").appendTo(t._$rollersContainer).addClass("dx-dateviewroller-"+t._rollerConfigs[n].type);t._rollers[t._rollerConfigs[n].type]=t._createComponent(e,BHt,{items:t._rollerConfigs[n].displayItems,selectedIndex:t._rollerConfigs[n].selectedIndex,showScrollbar:"never",scrollByContent:!0,onStart:function(i){var r=i.component;r._toggleActive(!0),t._setActiveRoller(t._rollerConfigs[n],r.option("selectedIndex"))},onEnd:function(i){i.component._toggleActive(!1)},onClick:function(i){var r=i.component;r._toggleActive(!0),t._setActiveRoller(t._rollerConfigs[n],r.option("selectedIndex")),t._setRollerState(t._rollerConfigs[n],r.option("selectedIndex")),r._toggleActive(!1)},onSelectedIndexChanged:function(i){t._setRollerState(t._rollerConfigs[n],i.component.option("selectedIndex"))}})}),t._$rollersContainer.appendTo(t._wrapper())},_createRollerConfigs:function(t){var n=this;t=t||n.option("type"),n._rollerConfigs={},Gn.getFormatParts(Jo.FORMATS_MAP[t]).forEach(function(e){n._createRollerConfig(e)})},_createRollerConfig:function(t){for(var n=Jo.DATE_COMPONENTS_INFO[t],e=this._calculateRollerConfigValueRange(t),i=e.startValue,r=e.endValue,o=n.formatter,a=this._getCurrentDate(),s={type:t,setValue:n.setter,valueItems:[],displayItems:[],getIndex:function(u){return u[n.getter]()-i}},l=i;l<=r;l++)s.valueItems.push(l),s.displayItems.push(o(l,a));s.selectedIndex=s.getIndex(a),this._rollerConfigs[t]=s},_setActiveRoller:function(t){var n=t&&this._rollers[t.type];we(this._rollers,function(){this.toggleActiveState(this===n)})},_updateRollersPosition:function(){var t=this;we(this._rollers,function(n){var e=t._rollerConfigs[n].getIndex(t._getCurrentDate());this.option("selectedIndex",e)})},_setRollerState:function(t,n){if(n!==t.selectedIndex){var e=t.valueItems[n],i=t.setValue,r=new Date(this._getCurrentDate()),o=r.getDate(),a=this.option("minDate"),s=this.option("maxDate");"month"===t.type?o=Math.min(o,Jo.getMaxMonthDay(r.getFullYear(),e)):"year"===t.type&&(o=Math.min(o,Jo.getMaxMonthDay(e,r.getMonth()))),r.setDate(o),r[i](e);var l=bt.normalizeDate(r,a,s);r=Jo.mergeDates(l,r,"time"),r=bt.normalizeDate(r,a,s),this.option("value",r),t.selectedIndex=n}"year"===t.type&&this._refreshRollers(),"month"===t.type&&(this._refreshRoller("day"),this._refreshRoller("hours"))},_refreshRoller:function(t){var n=this._rollers[t];if(n){this._createRollerConfig(t);var e=this._rollerConfigs[t];("day"===t||e.displayItems.toString()!==n.option("items").toString())&&n.option({items:e.displayItems,selectedIndex:e.selectedIndex})}},_getCurrentDate:function(){var t=this._valueOption(),n=this.option("minDate"),e=this.option("maxDate");return bt.normalizeDate(t,n,e)},_calculateRollerConfigValueRange:function(t){var n=this._getCurrentDate(),e=this.option("minDate"),i=this.option("maxDate"),r=bt.sameYear(n,e),o=r&&n.getMonth()===e.getMonth(),a=bt.sameYear(n,i),s=a&&n.getMonth()===i.getMonth(),l=o&&n.getDate()===e.getDate(),u=s&&n.getDate()===i.getDate(),f=Jo.DATE_COMPONENTS_INFO[t],S=f.startValue,T=f.endValue;return"year"===t&&(S=e.getFullYear(),T=i.getFullYear()),"month"===t&&(r&&(S=e.getMonth()),a&&(T=i.getMonth())),"day"===t&&(T=Jo.getMaxMonthDay(n.getFullYear(),n.getMonth()),r&&o&&(S=e.getDate()),a&&s&&(T=i.getDate())),"hours"===t&&(S=l?e.getHours():S,T=u?i.getHours():T),{startValue:S,endValue:T}},_refreshRollers:function(){this._refreshRoller("month"),this._refreshRoller("day"),this._refreshRoller("hours")},_optionChanged:function(t){switch(t.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(t.value,t.previousValue);break;case"visible":this.callBase(t),t.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(t)}},_clean:function(){this.callBase(),delete this._$rollersContainer}});On("dxDateView",Fke);const UHt=Fke;var WHt=Fn(),GHt=u9.inherit({NAME:"DateView",getDefaultOptions:function(){return se(this.callBase(),{openOnFieldClick:!0,applyButtonText:ye.format("OK"),"dropDownOptions.showTitle":!0})},getDisplayFormat:function(t){return t||Jo.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(t){return{toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:t.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device:function(n){var e=n.platform;return"generic"===e||"ios"===e},options:{width:"auto",height:"auto"}},{device:function(n){return"generic"===n.platform&&n.phone},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:WHt}}}]}},_renderWidget:function(){if(V2(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))this._widget&&(this._widget.$element().remove(),this._widget=null);else{var t=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var n=U("<div>").appendTo(t.$content());this._widget=this._createWidget(n)}this._widget.$element().appendTo(this._getWidgetContainer())}},_getWidgetName:function(){return UHt},renderOpenedState:function(){this.callBase(),this._widget&&this._widget.option("value",this._widget._getCurrentDate())},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*Jo.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});const jHt=GHt;var KHt=u9.inherit({NAME:"Native",popupConfig:function(t){return se({},t,{width:"auto"})},getParsedText:function(t){return t?"datetime"===this.dateBox.option("type")?new Date(t.replace(/-/g,"/").replace("T"," ").split(".")[0]):Jo.fromStandardDateFormat(t):null},renderPopupContent:Be,_getWidgetName:Be,_getWidgetOptions:Be,_getDateBoxType:function(){var t=this.dateBox.option("type");return Jo.SUPPORTED_FORMATS.includes(t)?"datetime"===t&&!V2(t)&&(t="datetime-local"):t="date",t},customizeButtons:function(){var t=this.dateBox.getButton("dropDown");pn.real().android&&t&&t.on("click",function(){this.dateBox._input().get(0).click()}.bind(this))},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(t){var n=this._getDateBoxType();return t||Jo.FORMATS_MAP[n]},renderInputMinMax:function(t){t.attr({min:Qr.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:Qr.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});const $Ht=KHt;var Pke=function(t,n,e){t7t(t,n,e)},t7t=function(t,n,e){t.css("transform","rotate("+n+"deg) translate(0,"+e+"px)")},Rke=Ru.inherit({_getDefaultOptions:function(){return se(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:5,stylingMode:void 0})},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass("dx-timeview")},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var t=U("<div>").appendTo(this.$element()),n=[];this.option("_showClock")&&n.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),n.push({ratio:0,shrink:0,baseSize:"auto",template:this._renderField.bind(this)}),this._createComponent(t,BI,{height:"100%",width:"100%",direction:"col",items:n})},_renderClock:function(t,n,e){this._$hourArrow=U("<div>").addClass("dx-timeview-hourarrow"),this._$minuteArrow=U("<div>").addClass("dx-timeview-minutearrow");var i=U(e);i.addClass("dx-timeview-clock").append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",i)},_updateClock:function(){var t=this._getValue(),n=t.getHours()/12*360+t.getMinutes()/60*30,e=t.getMinutes()/60*360;Pke(this._$hourArrow,n,this.option("_arrowOffset")),Pke(this._$minuteArrow,e,this.option("_arrowOffset"))},_getBoxItems:function(t){var n=[{ratio:0,shrink:0,baseSize:"auto",template:()=>this._hourBox.$element()},{ratio:0,shrink:0,baseSize:"auto",template:U("<div>").addClass("dx-timeview-time-separator").text(Gn.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:()=>this._minuteBox.$element()}];return t&&n.push({ratio:0,shrink:0,baseSize:"auto",template:()=>this._format12.$element()}),n},_renderField:function(){var t=!this.option("use24HourFormat");return this._createHourBox(t),this._createMinuteBox(),t&&this._createFormat12Box(),this._createComponent(U("<div>").addClass("dx-timeview-field"),BI,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(t)}).$element()},_createHourBox:function(t){var n=this._hourBox=this._createComponent(U("<div>"),af,se({min:-1,max:t?13:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this),onKeyboardHandled:e=>this._keyboardHandler(e)},this._getNumberBoxConfig()));n.setAria("label","hours")},_isPM:function(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged:function(t){var{value:n,component:e}=t,i=this._getValue(),r=new Date(i),o=this._convertMaxHourToMin(n);e.option("value",o),this._isPM()&&(o+=12),r.setHours(o),Jo.normalizeTime(r),this.option("value",r)},_convertMaxHourToMin:function(t){var n=this.option("use24HourFormat")?24:12;return(n+t)%n},_createMinuteBox:function(){var t=this._minuteBox=this._createComponent(U("<div>"),af,se({min:-1,max:60,value:this._getValue().getMinutes(),onKeyboardHandled:n=>this._keyboardHandler(n),onValueChanged:n=>{var{value:e,component:i}=n,r=(60+e)%60;i.option("value",r);var o=new Date(this._getValue());o.setMinutes(r),Jo.normalizeTime(o),this.option("value",o)}},this._getNumberBoxConfig()));t.setAria("label","minutes")},_createFormat12Box:function(){var t=Gn.getPeriodNames(),n=this._format12=this._createComponent(U("<div>").addClass("dx-timeview-format12"),s9,{items:[{value:-1,text:t[0]},{value:1,text:t[1]}],valueExpr:"value",displayExpr:"text",onKeyboardHandled:e=>this._keyboardHandler(e),onValueChanged:e=>{var{value:i}=e,r=this._getValue().getHours(),o=new Date(this._getValue());o.setHours((r+12*i)%24),this.option("value",o)},value:this._getValue().getHours()>=12?1:-1,stylingMode:this.option("stylingMode")});n.setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var n=this._getValue().getHours();this._silentEditorValueUpdate(this._format12,n>=12?1:-1)}},_silentEditorValueUpdate:function(t,n){t&&(t._suppressValueChangeAction(),t.option("value",n),t._resumeValueChangeAction())},_getNumberBoxConfig:function(){return{showSpinButtons:!0,displayValueFormatter:function(t){return(t<10?"0":"")+t},stylingMode:this.option("stylingMode")}},_normalizeHours:function(t){return this.option("use24HourFormat")?t:t%12||12},_updateField:function(){var t=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,t),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(t){t&&this._updateTime()},_optionChanged:function(t){switch(t.name){case"value":this._updateTime(),this.callBase(t);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(t)}}});On("dxTimeView",Rke);const n7t=Rke;var i7t=Fn(),Lke="dx-datebox-datetime-time-side",a7t=Ike.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return se(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after","dropDownOptions.showTitle":!1})},_closeDropDownByEnter:function(){return bt.sameDate(this._getContouredValue(),this.widgetOption("value"))},getDisplayFormat:function(t){return t||"shortdateshorttime"},_is24HourFormat:function(){return Gn.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_getContouredValue:function(){var t=this.callBase();return this._updateDateTime(t)},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent(U("<div>"),n7t,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")}),this._timeView.registerKeyHandler("escape",this._escapeHandler.bind(this))},renderOpenedState:function(){this.callBase();var t=this._getPopup();t&&t.$wrapper().toggleClass("dx-datebox-adaptivity-mode",this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var t=this._isShrinkView(),n=this._currentAdaptiveMode;return t!==n?(this._currentAdaptiveMode=t,void 0!==n):this.callBase()},_updateValue:function(t){var n=this.dateBoxValue();!n&&!t&&(n=new Date,Jo.normalizeTime(n)),this.callBase(),this._timeView&&(n&&this._timeView.option("value",n),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return wn(i7t)<=573},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var t=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||t.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),t},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var t=this._getPopup().$content();this._box=this.dateBox._createComponent(U("<div>").appendTo(t),BI,{direction:"row",crossAlign:"stretch",items:this._getBoxItems(),itemTemplate:function(n,e,i){var r=U("<div>");switch(n.name){case"calendar":r.append(this._widget.$element()),this._isShrinkView()&&(this._timeView.$element().addClass(Lke),r.append(this._timeView.$element()));break;case"time":r.append(this._timeView.$element()),U(i).addClass(Lke)}return r}.bind(this)}),this._attachTabHandler()},popupConfig:function(t){var n=this.callBase(t);return se(n,{width:"auto"})},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var t=this.dateBox;this._timeView._hourBox.registerKeyHandler("tab",function(n){n.shiftKey&&(n.preventDefault(),t.focus())})},_preventFocusOnPopup:function(t){U(t.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},_updateDateTime:function(t){var n=this._timeView.option("value");return t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t},getValue:function(){var t,n=null!==(t=this._widget.option("value"))&&void 0!==t?t:this._widget.getContouredDate();return n=n?new Date(n):new Date,this._updateDateTime(n)},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});const s7t=a7t;var l7t=Fn(),d7t={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},c7t=u9.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){var{opened:t,applyValueMode:n}=this.option();t&&"instantly"===n&&this.close()},space:Be,home:Be,end:Be}},getDefaultOptions:function(){return se(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(t){return t||"shorttime"},popupConfig:function(t){return t},getValue:function(){var t=this._widget.option("selectedIndex");return-1===t?this.dateBox.option("value"):this._getDateByItemData(this._widgetItems[t])},useCurrentDateByDefault:function(){return!0},getDefaultDate:function(){return new Date(null)},popupShowingHandler:function(){this.dateBox._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return gC},_getWidgetOptions:function(){return{itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(t){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",t.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var t=this.dateBoxValue(),n=this._getDateIndex(t);-1===n?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",n)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(t){for(var n=-1,e=0,i=this._widgetItems.length;e<i;e++)if(this._areDatesEqual(t,this._widgetItems[e])){n=e;break}return n},_areDatesEqual:function(t,n){return Sa(t)&&Sa(n)&&t.getHours()===n.getHours()&&t.getMinutes()===n.getMinutes()},_getTimeListItems:function(){var t=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),n=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),e=this.dateBox.dateOption("value")||null,i=n-t,r=t.getMinutes()%this.dateBox.option("interval");return i<0?[]:(i>Jo.ONE_DAY&&(i=Jo.ONE_DAY),e-t<Jo.ONE_DAY||((t=this._getBoundaryDate("min")).setMinutes(r),e&&Math.abs(e-n)<Jo.ONE_DAY&&(i=(60*n.getHours()+Math.abs(n.getMinutes()-r))*Jo.ONE_MINUTE)),this._getRangeItems(t,new Date(t),i))},_getRangeItems:function(t,n,e){for(var i=[],r=this.dateBox.option("interval");n-t<=e;)i.push(new Date(n)),n.setMinutes(n.getMinutes()+r);return i},_getBoundaryDate:function(t){var n=d7t[t],e=new Date(gr(this.dateBox.dateOption("value"),0));return new Date(e.getFullYear(),e.getMonth(),e.getDate(),n.getHours(),n.getMinutes())},_timeListItemTemplate:function(t){var n=this.dateBox.option("displayFormat");return Gn.format(t,this.getDisplayFormat(n))},_listItemClickHandler:function(t){if("useButtons"!==this.dateBox.option("applyValueMode")){var n=this._getDateByItemData(t.itemData);this.dateBox.option("opened",!1),this.dateBoxValue(n,t.event)}},_getDateByItemData:function(t){var n=this.dateBox.option("value"),e=t.getHours(),i=t.getMinutes(),r=t.getSeconds(),o=t.getFullYear(),a=t.getMonth(),s=t.getDate();return n?((n=this.dateBox.option("dateSerializationFormat")?Qr.deserializeDate(n):new Date(n)).setHours(e),n.setMinutes(i),n.setSeconds(r),n.setFullYear(o),n.setMonth(a),n.setDate(s)):n=new Date(o,a,s,e,i,0,0),n},getKeyboardListener:function(){return this._widget},_updatePopupHeight:function(){var t=HG(this.dateBox.option("dropDownOptions.height"));if(void 0===t||"auto"===t){this.dateBox._setPopupOption("height","auto");var n=Zn(this._widget.$element()),e=.45*Ln(l7t);this.dateBox._setPopupOption("height",Math.min(n,e))}this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()},getParsedText:function(t,n){var e=this.callBase(t,n);return e&&(e=Jo.mergeDates(e,new Date(null),"date")),e}});const h7t=c7t;var bk=Fn(),xk="dx-datebox",d9="dx-datebox-wrapper",zc={calendar:"calendar",rollers:"rollers",list:"list",native:"native"},Gh={date:"date",datetime:"datetime",time:"time"},_7t={Calendar:Ike,DateView:jHt,Native:$Ht,CalendarWithTime:s7t,List:h7t},v7t=zL.inherit({_supportedKeys:function(){return se(this.callBase(),this._strategy.supportedKeys())},_renderButtonContainers:function(){this.callBase.apply(this,arguments),this._strategy.customizeButtons()},_getDefaultOptions:function(){return se(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,pickerType:zc.calendar,invalidDateMessage:ye.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:ye.format("validation-range"),applyButtonText:ye.format("OK"),adaptivityEnabled:!1,calendarOptions:{},useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{"dropDownOptions.showTitle":!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device:function(){var n=pn.real().platform;return"ios"===n||"android"===n},options:{pickerType:zc.native}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(t){this._userOptions=se({},t),this.callBase(t),this._updatePickerOptions()},_updatePickerOptions:function(){var t=this.option("pickerType"),n=this.option("type");t===zc.list&&(n===Gh.datetime||n===Gh.date)&&(t=zc.calendar),n===Gh.time&&t===zc.calendar&&(t=zc.list),this.option("showDropDownButton","generic"!==pn.real().platform||t!==zc.native),this._pickerType=t},_init:function(){this._initStrategy(),this.option(se({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(t){return t.charAt(0).toLowerCase()+t.substr(1)},_initStrategy:function(){var t=this._getStrategyName(this._getFormatType());this._strategy&&this._strategy.NAME===t||(this._strategy=new(0,_7t[t])(this))},_getFormatType:function(){var t=this.option("type"),n=/h|m|s/g.test(t),i="";return/d|M|Y/g.test(t)&&(i+=Gh.date),n&&(i+=Gh.time),i},_getStrategyName:function(t){var n=this._pickerType;return n===zc.rollers?"DateView":n===zc.native?"Native":t===Gh.date?"Calendar":t===Gh.datetime?"CalendarWithTime":"List"},_initMarkup:function(){this.$element().addClass(xk),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render:function(){this.callBase(),this._formatValidationIcon()},_renderDimensions:function(){this.callBase(),this.$element().toggleClass("dx-auto-width",!this.option("width")),this._updatePopupWidth(),this._updatePopupHeight()},_dimensionChanged:function(){this.callBase(),this._updatePopupHeight()},_updatePopupHeight:function(){var t,n;this._popup&&(null===(t=(n=this._strategy)._updatePopupHeight)||void 0===t||t.call(n))},_refreshFormatClass:function(){var t=this.$element();we(Gh,function(n,e){t.removeClass(xk+"-"+e)}),t.addClass(xk+"-"+this.option("type"))},_refreshPickerTypeClass:function(){var t=this.$element();we(zc,function(n,e){t.removeClass(xk+"-"+e)}),t.addClass(xk+"-"+this._pickerType)},_formatValidationIcon:function(){if(Rn()){var t=this._input().get(0),n=this.option("rtlEnabled"),e=this._getClearButtonWidth(),i=this._getLongestElementDimensions(),r=parseFloat(bk.getComputedStyle(t).width)-e,o=i.width>r,a=t.style;this.$element().toggleClass("dx-show-invalid-badge",!o),o?(void 0===this._storedPadding&&(this._storedPadding=n?i.leftPadding:i.rightPadding),n?a.paddingLeft=0:a.paddingRight=0):n?a.paddingLeft=this._storedPadding+"px":a.paddingRight=this._storedPadding+"px"}},_getClearButtonWidth:function(){var t=0;if(this._isClearButtonVisible()&&""===this._input().val()){var n=this.$element().find(".dx-clear-button-area").get(0);t=parseFloat(bk.getComputedStyle(n).width)}return t},_getLongestElementDimensions:function(){var t=this._strategy.getDisplayFormat(this.option("displayFormat")),n=Gn.format(Jo.getLongestDate(t,Gn.getMonthNames(),Gn.getDayNames()),t),e=this._input(),i=e.get(0),r=dfe(e,n),a=void 0!==this._storedPadding?this._storedPadding:0;r.appendTo(this.$element());var s=parseFloat(bk.getComputedStyle(r.get(0)).width),l=parseFloat(bk.getComputedStyle(i).paddingRight),u=parseFloat(bk.getComputedStyle(i).paddingLeft),f=s+u+l+a;return r.remove(),{width:f,leftPadding:u,rightPadding:l}},_getKeyboardListeners(){return this.callBase().concat([this._strategy&&this._strategy.getKeyboardListener()])},_renderPopup:function(){this.callBase(),this._popup.$wrapper().addClass(d9),this._renderPopupWrapper()},_getPopupToolbarItems(){var t,n,e,i=this.callBase();return null!==(t=null===(n=(e=this._strategy)._getPopupToolbarItems)||void 0===n?void 0:n.call(e,i))&&void 0!==t?t:i},_popupConfig:function(){var t=this.callBase();return se(this._strategy.popupConfig(t),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var t=this.$element(),n=se({},Gh,zc);we(n,function(e,i){t.removeClass(d9+"-"+i)}.bind(this)),this._popup.$wrapper().addClass(d9+"-"+this.option("type")).addClass(d9+"-"+this._pickerType).addClass("dx-dropdowneditor-overlay")}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_getFirstPopupElement:function(){return this._strategy.getFirstPopupElement()||this.callBase()},_getLastPopupElement:function(){return this._strategy.getLastPopupElement()||this.callBase()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupShownHandler:function(){this.callBase(),this._strategy.renderOpenedState()},_popupHiddenHandler:function(){this.callBase(),this._strategy.renderOpenedState(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(t){t&&this._formatValidationIcon()},_clearValueHandler:function(t){this.option("text",""),this.callBase(t)},_readOnlyPropValue:function(){if(this._pickerType===zc.rollers)return!0;var t=pn.real().platform;return!this._isNativeType()||"ios"!==t&&"android"!==t?this.callBase():this.option("readOnly")},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var t=this.dateOption("value");return this.option("text",this._getDisplayedText(t)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var t=this.dateOption("value"),n=this.option("dateSerializationFormat"),e=Jo.SUBMIT_FORMATS_MAP[this.option("type")],i=n?Qr.serializeDate(t,n):Jo.toStandardDateFormat(t,e);this._getSubmitElement().val(i)},_getDisplayedText:function(t){var e,n=this.option("mode");if("text"===n){var i=this._strategy.getDisplayFormat(this.option("displayFormat"));e=Gn.format(t,i)}else{var r=this._getFormatByMode(n);e=r?Gn.format(t,r):Jo.toStandardDateFormat(t,n)}return e},_getFormatByMode:function(t){return V2(t)?null:Jo.FORMATS_MAP[t]},_valueChangeEventHandler:function(t){var{text:n,type:e,validationError:i}=this.option(),r=this.dateOption("value");if(n!==this._getDisplayedText(r)){var o=this._getParsedDate(n),a=r??this._getDateByDefault(),s=Jo.mergeDates(a,o,e);if(this._applyInternalValidation(o&&"time"===e?s:o).isValid){var u=this._getDisplayedText(s);a&&s&&a.getTime()===s.getTime()&&u!==n?this._renderValue():this.dateValue(s,t)}}else(!i||i.editorSpecific)&&(this._applyInternalValidation(r),this._applyCustomValidation(r))},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate:function(t){var n=this._strategy.getDisplayFormat(this.option("displayFormat"));return this._strategy.getParsedText(t,n)??void 0},_applyInternalValidation(t){var e=!!this.option("text")&&null!==t,i=!!t&&Sa(t)&&!isNaN(t.getTime()),r=i&&bt.dateInRange(t,this.dateOption("min"),this.dateOption("max"),this.option("type")),o=!e&&!t||r,a="";return i?r||(a=this.option("dateOutOfRangeMessage")):a=this.option("invalidDateMessage"),this.option({isValid:o,validationError:o?null:{editorSpecific:!0,message:a}}),{isValid:o,isDate:i}},_applyCustomValidation:function(t){this.validationRequest.fire({editor:this,value:this._serializeDate(t)})},_isValueChanged:function(t){var n=this.dateOption("value");return(n&&n.getTime())!==(t&&t.getTime())},_isTextChanged:function(t){return this.option("text")!==(t&&this._getDisplayedText(t)||"")},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy()},_getPopupTitle:function(){var t=this.option("placeholder");if(t)return t;var n=this.option("type");return n===Gh.time?ye.format("dxDateBox-simulatedDataPickerTitleTime"):n===Gh.date||n===Gh.datetime?ye.format("dxDateBox-simulatedDataPickerTitleDate"):""},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(t){var n=this._strategy.getValue();this.dateValue(n,t.event),this.callBase()},_dispose:function(){var t;this.callBase(),null===(t=this._strategy)||void 0===t||t.dispose()},_isNativeType:function(){return this._pickerType===zc.native},_updatePopupTitle:function(){var t;null===(t=this._popup)||void 0===t||t.option("title",this._getPopupTitle())},_optionChanged:function(t){switch(t.name){case"showClearButton":case"buttons":case"isValid":case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:t.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:t.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._formatValidationIcon(),this._updateValue();break;case"placeholder":this.callBase.apply(this,arguments),this._updatePopupTitle();break;case"min":case"max":var n=this.option("isValid");this._applyInternalValidation(this.dateOption("value")),n||this._applyCustomValidation(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"text":this._strategy.textChangedHandler(t.value),this.callBase.apply(this,arguments);break;case"showDropDownButton":this._formatValidationIcon(),this.callBase.apply(this,arguments);break;case"todayButtonText":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var t=this.option("value");return this.option("dateSerializationFormat")&&no().forceIsoDateParsing?this.option("dateSerializationFormat"):di(t)?"number":Pn(t)?Qr.getDateSerializationFormat(t):void 0},_updateValue:function(t){this.callBase(),this._applyInternalValidation(t??this.dateOption("value"))},dateValue:function(t,n){var e=this._isValueChanged(t);return e&&n&&this._saveValueChangeEvent(n),e||(this._isTextChanged(t)?this._updateValue(t):""===this.option("text")&&this._applyCustomValidation(t)),this.dateOption("value",t)},dateOption:function(t,n){if(1===arguments.length)return Qr.deserializeDate(this.option(t));this.option(t,this._serializeDate(n))},_serializeDate:function(t){var n=this._getSerializationFormat();return Qr.serializeDate(t,n)},_clearValue:function(){var t=this.option("value");this.callBase(),null===t&&this._applyCustomValidation(null)},reset:function(){var t=this.option("value");this.callBase(),null===t&&this._applyInternalValidation(null)}}),kS="dateBoxMask",C7t=v7t.inherit({_supportedKeys(t){var n=this.callBase(t),e=r=>{var o=n[Wo(r)];return o&&o.apply(this,[r])},i=(r,o)=>this._shouldUseOriginalHandler(r)?e.apply(this,[r]):o.apply(this,[r]);return se({},n,{del:r=>i(r,o=>{this._revertPart(1),this._isAllSelected()||o.preventDefault()}),backspace:r=>i(r,o=>{this._revertPart(-1),this._isAllSelected()||o.preventDefault()}),home:r=>i(r,o=>{this._selectFirstPart(),o.preventDefault()}),end:r=>i(r,o=>{this._selectLastPart(),o.preventDefault()}),escape:r=>i(r,o=>{this._revertChanges(o)}),enter:r=>i(r,()=>{this._enterHandler()}),leftArrow:r=>i(r,o=>{this._selectNextPart(-1),o.preventDefault()}),rightArrow:r=>i(r,o=>{this._selectNextPart(1),o.preventDefault()}),upArrow:r=>i(r,o=>{this._upDownArrowHandler(1),o.preventDefault()}),downArrow:r=>i(r,o=>{this._upDownArrowHandler(-1),o.preventDefault()})})},_shouldUseOriginalHandler(t){var n=this.option("opened")&&t&&-1===["backspace","del"].indexOf(Wo(t));return!this._useMaskBehavior()||n||t&&t.altKey},_upDownArrowHandler(t){this._setNewDateIfEmpty();var n=this._getActivePartValue(this._initialMaskValue),i=this._getActivePartValue()-n;this._loadMaskValue(this._initialMaskValue),this._partIncrease(i+t,!0)},_getDefaultOptions(){return se(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0)})},_isSingleCharKey(t){var{originalEvent:n,alt:e}=t,i=n.data||n.key;return"string"==typeof i&&1===i.length&&!e&&!Xo(n)},_isSingleDigitKey(t){var n,e=null===(n=t.originalEvent)||void 0===n?void 0:n.data;return 1===e?.length&&parseInt(e,10)},_useBeforeInputEvent:function(){return pn.real().android},_keyInputHandler(t,n){var e=this._input().val();this._processInputKey(n),t.preventDefault(),e!==this._input().val()&&Se.trigger(this._input(),"input")},_keyboardHandler(t){var n=t.originalEvent.key,e=this.callBase(t);return!this._useMaskBehavior()||this._useBeforeInputEvent()||(Ro.chrome&&"Process"===t.key&&0===t.code.indexOf("Digit")?(n=t.code.replace("Digit",""),this._processInputKey(n),this._maskInputHandler=()=>{this._renderSelectedPart()}):this._isSingleCharKey(t)&&this._keyInputHandler(t.originalEvent,n)),e},_maskBeforeInputHandler(t){this._maskInputHandler=null;var{inputType:n}=t.originalEvent;"insertCompositionText"===n&&(this._maskInputHandler=()=>{this._renderSelectedPart()});var e="deleteContentBackward"===n;if(e||"deleteContentForward"===n){var r=e?-1:1;this._maskInputHandler=()=>{this._revertPart(),this._selectNextPart(r)}}if(this._useMaskBehavior()&&this._isSingleCharKey(t))return this._keyInputHandler(t,t.originalEvent.data),!0},_keyPressHandler(t){var{originalEvent:n}=t;"insertCompositionText"===n?.inputType&&this._isSingleDigitKey(t)&&(this._processInputKey(n.data),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()),this.callBase(t),this._maskInputHandler&&(this._maskInputHandler(),this._maskInputHandler=null)},_processInputKey(t){this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(t))?this._searchString(t):this._searchNumber(t)},_isAllSelected(){var t=this._caret();return t.end-t.start===this.option("text").length},_getFormatPattern(){if(this._formatPattern)return this._formatPattern;var t=this._strategy.getDisplayFormat(this.option("displayFormat")),n=Pn(t)&&!Gn._getPatternByFormat(t);return this._formatPattern=n?t:nz(function(e){return Gn.format(e,t)}),this._formatPattern},_setNewDateIfEmpty(){if(!this._maskValue){var t="time"===this.option("type")?new Date(null):new Date;this._maskValue=t,this._initialMaskValue=t,this._renderDateParts()}},_partLimitsReached(t){var n=String(t).length,e=this._getActivePartProp("pattern").length,r=1===e?n:Math.min(e,n),o=this._searchValue.length===r,a=parseInt(this._searchValue+"0")>t;return o||a},_searchNumber(t){var{max:n}=this._getActivePartLimits(),e=String(n).length;this._searchValue=(this._searchValue+t).substr(-e),isNaN(this._searchValue)&&(this._searchValue=t),this._setActivePartValue(this._searchValue),this._partLimitsReached(n)&&this._selectNextPart(1)},_searchString(t){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var n=this._getActivePartProp("limits")(this._maskValue),e=this._searchValue+t.toLowerCase(),i=n.max-n.min,r=0;r<=i;r++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(r+1),0===this._getActivePartProp("text").toLowerCase().indexOf(e))return void(this._searchValue=e);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(t))}},_clearSearchValue(){this._searchValue=""},_revertPart:function(t){if(!this._isAllSelected()){var n=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(n),this._selectNextPart(t)}this._clearSearchValue()},_useMaskBehavior(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_prepareRegExpInfo(){this._regExpInfo=Lde(this._getFormatPattern(),Gn);var t=this._regExpInfo.regexp,n=t.source,e=t.flags,i=new RegExp(/(\{[0-9]+,?[0-9]*\})/),r=n.split(i).map(o=>i.test(o)?o:Gr.convertDigits(o,!1)).join("");this._regExpInfo.regexp=new RegExp(r,e)},_initMaskState(){this._activePartIndex=0,this._formatPattern=null,this._prepareRegExpInfo(),this._loadMaskValue()},_renderMask(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts(){if(this._useMaskBehavior()){var t=this.option("text")||this._getDisplayedText(this._maskValue);t&&(this._dateParts=((t,n)=>{for(var e=n.regexp.exec(t),i=0,r=0,o=[],a=function(l){r=(i=r)+e[l].length;var u=n.patterns[l-1].replace(/^'|'$/g,""),f=(t=>CHt[t]||(()=>t))(u[0]);o.push({index:l-1,isStub:u===e[l],caret:{start:i,end:r},pattern:u,text:e[l],limits:function(){for(var S=arguments.length,T=new Array(S),R=0;R<S;R++)T[R]=arguments[R];return Ck(u[0],...T)},setter:bHt[u[0]]||Be,getter:f})},s=1;s<e.length;s++)a(s);return o})(t,this._regExpInfo),this._input().is(":hidden")||this._selectNextPart())}},_detachMaskEvents(){Se.off(this._input(),"."+kS)},_attachMaskEvents(){Se.on(this._input(),kt("dxclick",kS),this._maskClickHandler.bind(this)),Se.on(this._input(),kt("paste",kS),this._maskPasteHandler.bind(this)),Se.on(this._input(),kt("drop",kS),()=>{this._renderSelectedPart()}),Se.on(this._input(),kt("compositionend",kS),this._maskCompositionEndHandler.bind(this)),this._useBeforeInputEvent()&&Se.on(this._input(),kt("beforeinput",kS),this._maskBeforeInputHandler.bind(this))},_renderSelectedPart(){this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()},_selectLastPart(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(-1))},_selectFirstPart(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(1))},_onMouseWheel(t){this._useMaskBehavior()&&this._partIncrease(t.delta>0?1:-1,t)},_selectNextPart(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")&&!this._disposed){t&&(this._initialMaskValue=new Date(this._maskValue));var n=al(this._activePartIndex+t,0,this._dateParts.length-1);if(this._dateParts[n].isStub){if(!(0===n&&t<0||n===this._dateParts.length-1&&t>0))return void this._selectNextPart(t>=0?t+1:t-1);n=this._activePartIndex}this._activePartIndex!==n&&this._clearSearchValue(),this._activePartIndex=n,this._caret(this._getActivePartProp("caret"))}},_getRealLimitsPattern(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits(t){return this._getActivePartProp("limits")(this._maskValue,t&&this._getRealLimitsPattern())},_getActivePartValue(t){t=t||this._maskValue;var n=this._getActivePartProp("getter");return Yt(n)?n(t):t[n]()},_addLeadingZeroes(t){var n=this._searchValue.match(/^0+/),e=this._getActivePartLimits(),i=String(e.max).length;return((n&&n[0]||"")+String(t)).substr(-i)},_setActivePartValue(t,n){n=n||this._maskValue;var e=this._getActivePartProp("setter"),i=this._getActivePartLimits();t=tm(t,i.min,i.max)?t:t%10,t=this._addLeadingZeroes(al(t,i.min,i.max)),Yt(e)?e(n,t):n[e](t),this._renderDisplayText(this._getDisplayedText(n)),this._renderDateParts()},_getActivePartProp(t){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][t]},_loadMaskValue(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=t&&new Date(t),this._initialMaskValue=t&&new Date(t)},_saveMaskValue(){var t=this._maskValue&&new Date(this._maskValue);t&&"date"===this.option("type")&&t.setHours(0,0,0,0),this._initialMaskValue=new Date(t),this.dateOption("value",t)},_revertChanges(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText(t){this.callBase(t),this._useMaskBehavior()&&this.option("text",t)},_partIncrease(t,n){this._setNewDateIfEmpty();var{max:e,min:i}=this._getActivePartLimits(n),r=e-i;1===r&&r++;var o=t+this._getActivePartValue();o>e?o=this._applyLimits(o,{limitBase:i,limitClosest:e,limitDelta:r}):o<i&&(o=this._applyLimits(o,{limitBase:e,limitClosest:i,limitDelta:r})),this._setActivePartValue(o)},_applyLimits(t,n){var{limitBase:e,limitClosest:i,limitDelta:r}=n,o=(t-i)%r;return o?e+o-1*gh(o):i},_maskClickHandler(){this._loadMaskValue(this._maskValue),this.option("text")&&(this._activePartIndex=((t,n)=>{for(var e=0;e<t.length;e++)if(!t[e].isStub&&t[e].caret.end>=n)return e;return null})(this._dateParts,this._caret().start),this._isAllSelected()||(Z(this._activePartIndex)?this._caret(this._getActivePartProp("caret")):this._selectLastPart()))},_maskCompositionEndHandler(t){this._input().val(this._getDisplayedText(this._maskValue)),this._selectNextPart(),this._maskInputHandler=()=>{this._renderSelectedPart()}},_maskPasteHandler(t){var n=this._replaceSelectedText(this.option("text"),this._caret(),WU(t)),e=Gn.parse(n,this._getFormatPattern());e&&this._isDateValid(e)&&(this._maskValue=e,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),t.preventDefault()},_isDateValid:t=>Sa(t)&&!isNaN(t),_isValueDirty(){var t=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(t&&t.getTime())},_fireChangeEvent(){this._clearSearchValue(),this._isValueDirty()&&Se.trigger(this._input(),"change")},_enterHandler(){this._fireChangeEvent(),this._selectNextPart(1)},_focusOutHandler(t){this._useMaskBehavior()&&!t.isDefaultPrevented()?(this._fireChangeEvent(),this.callBase(t),this._selectFirstPart(t)):this.callBase(t)},_valueChangeEventHandler(t){var n=this.option("text");this._useMaskBehavior()?(this._saveValueChangeEvent(t),n?null===this._maskValue&&this._loadMaskValue(n):this._maskValue=null,this._saveMaskValue()):this.callBase(t)},_optionChanged(t){switch(t.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(t),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(t),this._renderDateParts();break;case"emptyDateValue":break;default:this.callBase(t)}},_clearMaskState(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},reset(){this._clearMaskState(),this._activePartIndex=0,this.callBase()},_clean(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}});const Bke=C7t;On("dxDateBox",Bke);const Nke=Bke;var{isWrapped:b7t}=Tu,S7t=function(){var t=function(o,a){return se(o,{readOnly:a.readOnly,placeholder:a.placeholder,inputAttr:{id:a.id},tabIndex:a.tabIndex},a.editorOptions)},n=function(){return Ro.mozilla||pn.real().ios},e=function(o){var a={},s=n(),l=o.sharedData||a;return t({placeholder:o.placeholder,width:o.width,value:o.value,onValueChanged:function(u){var f="filterRow"===o.parentType||"searchPanel"===o.parentType,S=u.event&&("input"===u.event.type||"keyup"===u.event.type),T=function(R,L){o&&o.setValue(R.value,L)};clearTimeout(a.valueChangeTimeout),S&&f?l.valueChangeTimeout=a.valueChangeTimeout=setTimeout(function(){T(u,a.valueChangeTimeout!==l.valueChangeTimeout)},Z(o.updateValueTimeout)?o.updateValueTimeout:0):T(u)},onKeyDown:function(u){s&&"enter"===Wo(u.event)&&Se.trigger(U(u.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===o.parentType?" keyup input":"")},o)};function r(o){var s,l,u,a=o.lookup,f="filterRow"===o.parentType;if(a){s=Ai(a.displayExpr),Yt(l=a.dataSource)&&!b7t(l)&&(l=l(o.row||{}),function(T){if(T.row&&T.row.watch&&"dataRow"===T.parentType){var R=T.editorOptions||{};T.editorOptions=R;var L,z=R.onInitialized;R.onInitialized=function(ie){z&&z.apply(this,arguments),(L=ie.component).on("disposing",Y)};var j,Y=T.row.watch(()=>(j=T.lookup.dataSource(T.row))&&j.filter,()=>{L.option("dataSource",j)},ie=>{T.row=ie})}}(o)),(Jn(l)||Array.isArray(l))&&(l=t_(l),f&&(u=l.postProcess,l.postProcess=function(T){return 0===this.pageIndex()&&(T=T.slice(0)).unshift(null),u?u.call(this,T):T}));var S=Boolean(a.allowClearing&&!f);o.editorName="dxSelectBox",o.editorOptions=t({searchEnabled:!0,value:o.value,valueExpr:o.lookup.valueExpr,searchExpr:o.lookup.searchExpr||o.lookup.displayExpr,allowClearing:S,showClearButton:S,displayExpr:function(T){return null===T?o.showAllText:s(T)},dataSource:l,onValueChanged:function(T){var R=[T.value];!f&&R.push(T.component.option("text")),o.setValue.apply(this,R)}},o)}}return{createEditor:function(o,a){if(a.cancel=!1,a.editorElement=kn(o),Z(a.tabIndex)||(a.tabIndex=this.option("tabIndex")),a.lookup)r(a);else switch(a.dataType){case"date":case"datetime":(s=a).editorName="dxDateBox",s.editorOptions=t({value:s.value,onValueChanged:function(l){s.setValue(l.value)},onKeyDown:function(l){var{component:u,event:f}=l,S=u.option("useMaskBehavior");(n()||S)&&"enter"===Wo(f)&&(u.blur(),u.focus())},displayFormat:s.format,type:s.dataType,dateSerializationFormat:null,width:"filterBuilder"===s.parentType?void 0:"auto"},s);break;case"boolean":!function(o){var a;"filterRow"===o.parentType||"filterBuilder"===o.parentType?r(se(o,{lookup:{displayExpr:function(a){return!0===a?o.trueText||"true":!1===a?o.falseText||"false":void 0},dataSource:[!0,!1]}})):((a=o).editorName="dxCheckBox",a.editorOptions=t({elementAttr:{id:a.id},value:Z(a.value)?a.value:void 0,hoverStateEnabled:!a.readOnly,focusStateEnabled:!a.readOnly,activeStateEnabled:!1,onValueChanged:function(s){a.setValue&&a.setValue(s.value,s)}},a))}(a);break;case"number":!function(s){var l=e(s);l.value=Z(s.value)?s.value:null,s.editorName="dxNumberBox",s.editorOptions=l}(a);break;default:!function(s){var f,l=e(s),u="searchPanel"===s.parentType;l.value=s.editorType&&"dxTextBox"!==s.editorType?s.value:Z(f=s.value)?f.toString():"",l.valueChangeEvent+=u?" keyup input search":"",l.mode=l.mode||(u?"search":"text"),s.editorName="dxTextBox",s.editorOptions=l}(a)}var s;"dataRow"===a.parentType&&a.editorType&&(a.editorName=a.editorType),this.executeAction("onEditorPreparing",a),!a.cancel&&("dataRow"===a.parentType&&!a.isOnForm&&!Z(a.editorOptions.showValidationMark)&&(a.editorOptions.showValidationMark=!1),function(s,l){var u=U(l.editorElement);if(l.editorName&&l.editorOptions&&u[l.editorName]){if(("dxCheckBox"===l.editorName||"dxSwitch"===l.editorName)&&(l.isOnForm||(u.addClass(s.addWidgetPrefix("checkbox-size")),u.parent().addClass("dx-editor-inline-block"))),s._createComponent(u,l.editorName,l.editorOptions),"dxDateBox"===l.editorName){var f=u.dxDateBox("instance"),S=f._supportedKeys().enter;f.registerKeyHandler("enter",T=>(f.option("opened")&&S(T),!0))}"dxTextArea"===l.editorName&&u.dxTextArea("instance").registerKeyHandler("enter",function(T){"enter"===Wo(T)&&!T.ctrlKey&&!T.shiftKey&&T.stopPropagation()})}}(this,a),this.executeAction("onEditorPrepared",a))}}}();const Vke=S7t;var OY="dx-cell-focus-disabled",Hke="focus-overlay",TY="dx-focused",zke="dxDataGridEditorFactory",Uke=kt([qn.down,"focusin",Vi].join(" "),zke),IY="dx-hidden",T7t={_getFocusedElement:function(t){var n=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",e="td[tabindex]:focus, ".concat(n,", input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus, .dx-switch:focus, .dx-dropdownbutton .dx-buttongroup:focus, .dx-adaptive-item-text:focus"),i=t.find(e);return this.elementIsInsideGrid(i)&&i},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var n,e,t=this.component&&this.component.$element();if(t){var i=this._getFocusedElement(t);if(i&&i.length&&(!i.hasClass(OY)&&!i.hasClass("dx-row")&&(e=(n=i.closest(this._getFocusCellSelector()+", ."+OY)).get(0)!==i.get(0)&&n.hasClass("dx-editor-inline-block"),i=n),i.length&&!i.hasClass(OY)))return void this.focus(i,e)}this.loseFocus()},_updateFocus:function(t){var n=this,e=t&&t.event&&U(t.event.target).hasClass(n.addWidgetPrefix(Hke));n._isFocusOverlay=n._isFocusOverlay||e,clearTimeout(n._updateFocusTimeoutID),n._updateFocusTimeoutID=setTimeout(function(){delete n._updateFocusTimeoutID,n._isFocusOverlay||n._updateFocusCore(),n._isFocusOverlay=!1})},_updateFocusOverlaySize:function(t,n){t.hide();var e=rs.calculate(t,se({collision:"fit"},n));e.h.oversize>0&&QP(t,ii(t)-e.h.oversize),e.v.oversize>0&&RO(t,Zn(t)-e.v.oversize),t.show()},callbackNames:function(){return["focused"]},focus:function(t,n){var e=this;if(void 0===t)return e._$focusedElement;t&&(t.is(e._$focusedElement)||e._$focusedElement&&e._$focusedElement.removeClass(TY),e._$focusedElement=t,clearTimeout(e._focusTimeoutID),e._focusTimeoutID=setTimeout(function(){delete e._focusTimeoutID,e.renderFocusOverlay(t,n),t.addClass(TY),e.focused.fire(t)}))},refocus:function(){var t=this.focus();this.focus(t)},renderFocusOverlay:function(t,n){if(vn.isElementInCurrentGrid(this,t))if(this._$focusOverlay||(this._$focusOverlay=U("<div>").addClass(this.addWidgetPrefix(Hke))),n)this._$focusOverlay.addClass(IY);else if(t.length){var e=Ro.mozilla?"right bottom":"left top",i=t.closest("."+this.addWidgetPrefix("content")),r=Mi(t.get(0));this._$focusOverlay.removeClass(IY).appendTo(i),RO(this._$focusOverlay,r.bottom-r.top+1),QP(this._$focusOverlay,r.right-r.left+1);var o={precise:!0,my:e,at:e,of:t,boundary:i.length&&i};this._updateFocusOverlaySize(this._$focusOverlay,o),rs.setup(this._$focusOverlay,o),this._$focusOverlay.css("visibility","visible")}},resize:function(){var t=this._$focusedElement;t&&this.focus(t)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(TY),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(IY)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),Se.on(this._getContainerRoot(),Uke,this._updateFocusHandler),this._attachContainerEventHandlers()},_getContainerRoot:function(){var t,n=null===(t=this.component)||void 0===t?void 0:t.$element(),e=It.getRootNode(n?.get(0));return e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||e.host?e:It.getDocument()},_attachContainerEventHandlers:function(){var t=this,n=t.component&&t.component.$element();n&&Se.on(n,kt("keydown",zke),function(e){"tab"===Wo(e)&&t._updateFocusHandler(e)})},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),Se.off(this._getContainerRoot(),Uke,this._updateFocusHandler)}},Wke={defaultOptions:function(){return{}},controllers:{editorFactory:Bo.ViewController.inherit(T7t).include(Vke)}};oi.registerModule("editorFactory",Wke);var c9=Fn(),k7t={text:"OK",onClick:function(){return!0}},sb="dx-dialog",M7t="".concat(sb,"-wrapper"),A7t="".concat(sb,"-root"),F7t="".concat(sb,"-content"),P7t="".concat(sb,"-message"),R7t="".concat(sb,"-buttons"),L7t="".concat(sb,"-button"),B7t=kw.inherit({ctor:function(t,n){this.callBase(n)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}}])}}),kY=function(t){var n,e=new et,i=(new B7t).option();t=se(i,t);var r=U("<div>").addClass(sb).appendTo(bh()),a="messageHtml"in t;"message"in t&&Di.log("W1013");var s=String(a?t.messageHtml:t.message),l=U("<div>").addClass(P7t).html(s),u=[];we(t.buttons||[k7t],function(){var T=new eC(this.onClick,{context:f});u.push({toolbar:"bottom",location:pn.current().android?"after":"center",widget:"dxButton",options:se({},this,{onClick:function(){var R=T.execute(...arguments);S(R)}})})});var f=new Ss(r,se({title:null!==(n=t.title)&&void 0!==n?n:"",showTitle:gr(t.showTitle,!0),dragEnabled:gr(t.dragEnabled,!0),height:"auto",width:t.width,showCloseButton:t.showCloseButton||!1,ignoreChildEvents:!1,container:r,visualContainer:c9,dragAndResizeArea:c9,onContentReady:function(T){T.component.$content().addClass(F7t).append(l)},onShowing:function(T){T.component.bottomToolbar().addClass(R7t).find(".".concat("dx-button")).addClass(L7t),Mw()},onShown:function(T){var R=T.component.bottomToolbar().find(".".concat("dx-button")).first();Se.trigger(R,"focus")},onHiding:function(){e.reject()},toolbarItems:u,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:no().rtlEnabled,position:{boundaryOffset:{h:10,v:0}}},t.popupOptions));function S(T){e.resolve(T),f.hide().done(function(){f.$element().remove()})}return f.$wrapper().addClass(M7t),t.position&&f.option("position",t.position),f.$wrapper().addClass(A7t),{show:function(){if("android"===pn.real().platform){var T=Ln(c9)>wn(c9);f.option({width:T?"80%":"60%"})}return f.show(),e.promise()},hide:S}},MY=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2?arguments[2]:void 0,i=wi(t)?t:{title:n,messageHtml:t,showTitle:e,buttons:[{text:ye.format("Yes"),onClick:function(){return!0}},{text:ye.format("No"),onClick:function(){return!1}}],dragEnabled:e};return kY(i).show()},jke="dx-selection",Kke="edit-form",df="insert",fv="remove",h9="editing.popup",AY="editing.form",Lp="editing.editRowKey",Sk="editing.editColumnName",$ke="targetComponent",qke="input:not([type='hidden'])",Yke="[tabindex], "+qke,FY="batch",AS="row",p9="form",PY="popup",g9="last",Jke="pageBottom",RY="pageTop",Qke="viewportBottom",eMe="viewportTop",H7t=[FY,AS,"cell",p9,PY],z7t=[AS,p9,PY],U7t=[AS,p9],j7t="dx-selection",tMe="dx-command-edit",nMe=tMe+"-with-icons",mv="__DX_INSERT_INDEX__",$7t="dx-row-inserted",q7t="dx-row-modified",iMe="dx-cell-modified",Z7t="dx-cell-focus-disabled",Dk="update",J7t={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},Q7t={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},ezt={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},tzt={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},nzt=["edit","save","cancel","delete","undelete"],Jm="editing.changes",Ek=function(t){return function(n){var e=n instanceof Error?n:new Error(n&&String(n)||"Unknown error");t.reject(e)}},rMe=function(t,n){return n.isEditing||t&&n.column.allowEditing},oMe=function(t,n){var e=!!n.column.command,i=rMe(t,n);return"data"===n.rowType&&!e&&(i||n.column.showEditorAlways)},izt=Bo.ViewController.inherit(function(){var t=(i,r)=>{var o=-1;return i.some((a,s)=>{if(n(a)===r)return o=s,!0}),o};function n(i){return Jn(i)?i.name:i}var e={init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._rowsView=this.getView("rowsView"),this._lastOperation=null,this._changes=[],this._deferreds&&this._deferreds.forEach(i=>i.reject("cancel")),this._deferreds=[],this._dataChangedHandler||(this._dataChangedHandler=this._handleDataChanged.bind(this),this._dataController.changed.add(this._dataChangedHandler)),this._saveEditorHandler||(this.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceling",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceled",{excludeValidators:["disabled","readOnly"]})),this._updateEditColumn(),this._updateEditButtons(),this._internalState||(this._internalState=[]),this.component._optionsByReference[Lp]=!0,this.component._optionsByReference[Jm]=!0},getEditMode:function(){var i=this.option("editing.mode");return-1!==H7t.indexOf(i)?i:AS},_getDefaultEditorTemplate:function(){return(i,r)=>{var o=U("<div>").appendTo(i);this.getController("editorFactory").createEditor(o,se({},r.column,{value:r.value,setValue:r.setValue,row:r.row,parentType:"dataRow",width:null,readOnly:!r.setValue,isOnForm:r.isOnForm,id:r.id}))}},_getNewRowPosition:function(){var i=this.option("editing.newRowPosition");if("virtual"===this.option("scrolling.mode"))switch(i){case RY:return eMe;case Jke:return Qke;default:return i}return i},getChanges:function(){return this.option(Jm)},getInsertRowCount:function(){return this.option(Jm).filter(r=>"insert"===r.type).length},resetChanges:function(){var r=this.getChanges()?.length;r&&this._silentOption(Jm,[])},_getInternalData:function(i){return this._internalState.filter(r=>Tr(r.key,i))[0]},_addInternalData:function(i){var r=this._getInternalData(i.key);return r?se(r,i):(this._internalState.push(i),i)},_getOldData:function(i){var r;return null===(r=this._getInternalData(i))||void 0===r?void 0:r.oldData},getUpdatedData:function(i){var r=this._dataController.keyOf(i),o=this.getChanges(),a=vn.getIndexByKey(r,o);return o[a]?hm(i,o[a].data):i},getInsertedData:function(){return this.getChanges().filter(i=>i.data&&i.type===df).map(i=>i.data)},getRemovedData:function(){return this.getChanges().filter(i=>this._getOldData(i.key)&&i.type===fv).map(i=>this._getOldData(i.key))},_fireDataErrorOccurred:function(i){if("cancel"!==i){var r=this.getPopupContent();this._dataController.dataErrorOccurred.fire(i,r)}},_needToCloseEditableCell:Be,_closeEditItem:Be,_handleDataChanged:Be,_isDefaultButtonVisible:function(i,r){var o=!0;switch(i.name){case"delete":o=this.allowDeleting(r);break;case"undelete":o=!1}return o},_isButtonVisible:function(i,r){var o=i.visible;return Z(o)?Yt(o)?o.call(i,{component:r.component,row:r.row,column:r.column}):o:this._isDefaultButtonVisible(i,r)},_isButtonDisabled:function(i,r){var o=i.disabled;return Yt(o)?o.call(i,{component:r.component,row:r.row,column:r.column}):!!o},_getButtonConfig:function(i,r){var R,o=Jn(i)?i:{},a=n(i),s={save:(R=r.component.option("editing.texts")||{}).saveRowChanges,cancel:R.cancelRowChanges,edit:R.editRow,undelete:R.undeleteRow,delete:R.deleteRow,add:R.addRowToNode},l=ezt[a],u=this.option("editing"),f=tzt[a],S=!f||u[f];return se({name:a,text:s[a],cssClass:J7t[a]},{onClick:l&&(T=>{var R=T.event;R.stopPropagation(),R.preventDefault(),setTimeout(()=>{r.row&&S&&this[l]&&this[l](r.row.rowIndex)})})},o)},_getEditingButtons:function(i){var r,o=!!i.column.buttons,a=(i.column.buttons||[]).slice();return o?((r=t(a,"edit"))>=0&&(t(a,"save")<0&&a.splice(r+1,0,"save"),t(a,"cancel")<0&&a.splice(t(a,"save")+1,0,"cancel")),(r=t(a,"delete"))>=0&&t(a,"undelete")<0&&a.splice(r+1,0,"undelete")):a=nzt.slice(),a.map(s=>this._getButtonConfig(s,i))},_renderEditingButtons:function(i,r,o,a){r.forEach(s=>{this._isButtonVisible(s,o)&&this._createButton(i,s,o,a)})},_getEditCommandCellTemplate:function(){return(i,r,o)=>{var a=U(i);if("data"===r.rowType){var s=this._getEditingButtons(r);this._renderEditingButtons(a,s,r,o),r.watch&&r.watch(()=>s.map(l=>this._isButtonVisible(l,r)),()=>{a.empty(),this._renderEditingButtons(a,s,r)})}else vn.setEmptyText(a)}},isRowBasedEditMode:function(){var i=this.getEditMode();return-1!==z7t.indexOf(i)},getFirstEditableColumnIndex:function(){var r,o=this.getController("columns").getVisibleColumns();return we(o,function(a,s){if(s.allowEditing)return r=a,!1}),r},getFirstEditableCellInRow:function(i){var r=this.getView("rowsView");return r&&r._getCellElement(i||0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(i){return this.getFirstEditableCellInRow(i)},getIndexByKey:function(i,r){return vn.getIndexByKey(i,r)},hasChanges:function(i){for(var r=this.getChanges(),o=!1,a=0;a<r?.length;a++)if(r[a].type&&(!Z(i)||this._dataController.getRowIndexByKey(r[a].key)===i)){o=!0;break}return o},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),Se.off(It.getDocument(),qn.up,this._pointerUpEditorHandler),Se.off(It.getDocument(),qn.down,this._pointerDownEditorHandler),Se.off(It.getDocument(),Vi,this._saveEditorHandler)},_silentOption:function(i,r){"editing.changes"===i&&(this._changes=cd([],r)),this.callBase.apply(this,arguments)},optionChanged:function(i){if("editing"===i.name){var r=i.fullName;r===Lp?this._handleEditRowKeyChange(i):r===Jm?Tr(i.value,this._changes,-1)||(this._changes=cd([],i.value),this._handleChangesChange(i)):i.handled||(this._columnsController.reinit(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey()),i.handled=!0}else this.callBase(i)},_handleEditRowKeyChange:function(i){var r=this._dataController.getRowIndexByKey(i.value),o=this._getEditRowIndexCorrection(),a=this._dataController.getRowIndexByKey(i.previousValue)+o;Z(i.value)?i.value!==i.previousValue&&this._editRowFromOptionChanged(r,a):this.cancelEditData()},_handleChangesChange:function(i){var r=this._dataController;!i.value.length&&!i.previousValue.length||(i.value.forEach(a=>{if("insert"===a.type)this._addInsertInfo(a);else{var s,l=r.items(),u=r.getRowIndexByKey(a.key);this._addInternalData({key:a.key,oldData:null===(s=l[u])||void 0===s?void 0:s.data})}}),r.updateItems({repaintChangesOnly:!0,isLiveUpdate:!1,isOptionChanged:!0}))},publicMethods:function(){return["addRow","deleteRow","undeleteRow","editRow","saveEditData","cancelEditData","hasEditData"]},refresh:function(){Z(this._pageIndex)&&this._refreshCore.apply(this,arguments)},_refreshCore:Be,isEditing:function(){return Z(this.option(Lp))},isEditRow:function(){return!1},_setEditRowKey:function(i,r){r?this._silentOption(Lp,i):this.option(Lp,i)},_setEditRowKeyByIndex:function(i,r){var o=this._dataController.getKeyByRowIndex(i);void 0!==o?this._setEditRowKey(o,r):this._dataController.fireError("E1043")},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){return-1},isEditRowByIndex(i){var r=this._dataController.getKeyByRowIndex(i);return Z(r)&&Tr(this.option(Lp),r)&&this._getVisibleEditRowIndex()===i},isEditCell:function(i,r){return this.isEditRowByIndex(i)&&this._getVisibleEditColumnIndex()===r},getPopupContent:Be,_isProcessedItem:function(i){return!1},_getInsertRowIndex:function(i,r,o){var a=-1,s=this._dataController,l=this._getInsertAfterOrBeforeKey(r);return Z(l)||0!==i.length?Z(l)&&i.some((u,f)=>{var S=o||this._isProcessedItem(u);if(Jn(u)&&(S||Z(u[mv])?Tr(u.key,l)&&(a=f):Tr(s.keyOf(u),l)&&(a=f)),a>=0){var T=i[a+1];return T&&("detail"===T.rowType||"detailAdaptive"===T.rowType)&&Z(r.insertAfterKey)?void 0:(Z(r.insertAfterKey)&&(a+=1),!0)}}):a=0,a},_generateNewItem:function(i){var r,o={key:i},a=null===(r=this._getInternalData(i))||void 0===r?void 0:r.insertInfo;return null!=a&&a[mv]&&(o[mv]=a[mv]),o},_getLoadedRowIndex:function(i,r,o){var a=this._getInsertRowIndex(i,r,o),s=this._dataController;if(a<0){var l=this._getNewRowPosition(),u=s.pageIndex(),f=this._getInsertAfterOrBeforeKey(r);l===g9||0!==u||Z(f)?l===g9&&s.isLastPageLoaded()&&(a=i.length):a=0}return a},processItems:function(i,r){return this.update(r.changeType),this.getChanges().forEach(s=>{var l;if(s.type===df){var f=s.key,S=null===(l=this._getInternalData(f))||void 0===l?void 0:l.insertInfo;(!Z(f)||!Z(S))&&(f=(S=this._addInsertInfo(s)).key);var T=this._getLoadedRowIndex(i,s),R=this._generateNewItem(f);T>=0&&i.splice(T,0,R)}}),i},processDataItem:function(i,r,o){var a=r.visibleColumns,s=i.data[mv]?i.data.key:i.key,l=this.getChanges(),u=vn.getIndexByKey(s,l);i.isEditing=!1,u>=0&&this._processDataItemCore(i,l[u],s,a,o)},_processDataItemCore:function(i,r,o,a,s){var{data:l,type:u}=r;switch(u){case df:i.isNewRow=!0,i.key=o,i.data=l;break;case Dk:i.modified=!0,i.oldData=i.data,i.data=hm(i.data,l),i.modifiedValues=s(l,a,!0);break;case fv:i.removed=!0}},_initNewRow:function(i){if(this.executeAction("onInitNewRow",i),i.promise){var r=new et;return Qt(ra(i.promise)).done(r.resolve).fail(Ek(r)).fail(o=>this._fireDataErrorOccurred(o)),r}},_createInsertInfo:function(){var i={};return i[mv]=this._getInsertIndex(),i},_addInsertInfo:function(i,r){var o,a,{key:s}=i;if(Z(s)||(s=String(new Ni),i.key=s),a=null===(o=this._getInternalData(s))||void 0===o?void 0:o.insertInfo,!Z(a)){var l=this._getInsertAfterOrBeforeKey(i);a=this._createInsertInfo(),Z(l)||this._setInsertAfterOrBeforeKey(i,r)}return this._addInternalData({insertInfo:a,key:s}),{insertInfo:a,key:s}},_setInsertAfterOrBeforeKey:function(i,r){var o=this._dataController,a=o.items(!0),s=this.getView("rowsView"),l=this._getNewRowPosition();switch(l){case"first":case g9:break;case RY:case Jke:if(a.length){var u=l===RY?0:a.length-1;i[0===u?"insertBeforeKey":"insertAfterKey"]=a[u].key}break;default:var S=l===Qke?s?.getBottomVisibleItemIndex():s?.getTopVisibleItemIndex(),T=o.getVisibleRows()[S];T&&(!T.isEditing&&"detail"===T.rowType||"detailAdaptive"===T.rowType)&&S++;var R=o.getKeyByRowIndex(S);Z(R)&&(i.insertBeforeKey=R)}},_getInsertIndex:function(){var i=0;return this.getChanges().forEach(r=>{var o,a=null===(o=this._getInternalData(r.key))||void 0===o?void 0:o.insertInfo;Z(a)&&r.type===df&&a[mv]>i&&(i=a[mv])}),i+1},_getInsertAfterOrBeforeKey:function(i){var r;return null!==(r=i.insertAfterKey)&&void 0!==r?r:i.insertBeforeKey},_getPageIndexToInsertRow:function(){var i=this._getNewRowPosition(),r=this._dataController,o=r.pageIndex(),a=r.pageCount()-1;return"first"===i&&0!==o?0:i===g9&&o!==a?a:-1},addRow:function(i){var r=this._dataController;return r.store()?this._addRow(i):(r.fireError("E1052",this.component.NAME),(new et).reject())},_addRow:function(i){var o=this._dataController.store(),a=o&&o.key(),s={data:{}},l=this._getVisibleEditRowIndex(),u=new et;return this.refresh({allowCancelEditing:!0}),this._allowRowAdding()?(a||(s.data.__KEY__=String(new Ni)),Qt(this._initNewRow(s,i)).done(()=>{this._allowRowAdding()?Qt(this._addRowCore(s.data,i,l)).done(u.resolve).fail(u.reject):u.reject("cancel")}).fail(u.reject),u.promise()):(Qt(this._navigateToNewRow(l)).done(u.resolve).fail(u.reject),u.promise())},_allowRowAdding:function(){return!(this._getInsertIndex()>1)},_addRowCore:function(i,r,o){var a={data:i,type:df},s=this._getVisibleEditRowIndex(),l=this._addInsertInfo(a,r);return this._setEditRowKey(l.key,!0),this._addChange(a),this._navigateToNewRow(o,a,s)},_navigateToNewRow:function(i,r,o){var a,s,l=new et,u=this._dataController,f=this.getController("focus");if(o=null!==(a=o)&&void 0!==a?a:-1,!(r=null!==(s=r)&&void 0!==s?s:this.getChanges().filter(z=>z.type===df)[0]))return l.reject("cancel").promise();var S=this._getPageIndexToInsertRow(),T=this._getLoadedRowIndex(u.items(),r,!0),R=z=>{Qt(f?.navigateToRow(z)).done(()=>{T=u.getRowIndexByKey(r.key),l.resolve()})},L=this._getInsertAfterOrBeforeKey(r);return S>=0?u.pageIndex(S).done(()=>{R(r.key)}).fail(l.reject):T<0&&Z(L)?R(L):(u.updateItems({changeType:"update",rowIndices:[i,o,T]}),(T=u.getRowIndexByKey(r.key))<0?R(r.key):l.resolve()),l.done(()=>{this._showAddedRow(T),this._afterInsertRow(r.key)}),l.promise()},_showAddedRow:function(i){this._focusFirstEditableCellInRow(i)},_beforeFocusElementInRow:Be,_focusFirstEditableCellInRow:function(i){var r=this._dataController,o=r.getKeyByRowIndex(i),a=this.getFirstEditableCellInRow(i);this._editCellInProgress=!0,this._delayedInputFocus(a,()=>{i=r.getRowIndexByKey(o),this._editCellInProgress=!1,this._beforeFocusElementInRow(i)})},_isEditingStart:function(i){return this.executeAction("onEditingStart",i),i.cancel},_beforeUpdateItems:Be,_getVisibleEditColumnIndex:function(){var i=this.option(Sk);return Z(i)?this._columnsController.getVisibleColumnIndex(i):-1},_setEditColumnNameByIndex:function(i,r){var o,a=this._columnsController.getVisibleColumns();this._setEditColumnName(null===(o=a[i])||void 0===o?void 0:o.name,r)},_setEditColumnName:function(i,r){r?this._silentOption(Sk,i):this.option(Sk,i)},_resetEditColumnName:function(){this._setEditColumnName(null,!0)},_getEditColumn:function(){var i=this.option(Sk);return this._getColumnByName(i)},_getColumnByName:function(i){var o,r=this._columnsController.getVisibleColumns();return Z(i)&&r.some(a=>{if(a.name===i)return o=a,!0}),o},_getVisibleEditRowIndex:function(i){var r=this._dataController,o=this.option(Lp),a=r.getRowIndexByKey(o);return-1===a?a:a+this._getEditRowIndexCorrection(i)},_getEditRowIndexCorrection:function(i){return"adaptiveHidden"===(i?this._getColumnByName(i):this._getEditColumn())?.visibleWidth?1:0},_resetEditRowKey:function(){this._setEditRowKey(null,!0)},_resetEditIndices:function(){this._resetEditColumnName(),this._resetEditRowKey()},editRow:function(i){var r,o=this._dataController,s=o.items()[i],l={data:s&&s.data,cancel:!1},u=this._getVisibleEditRowIndex();if(s){if(i===u)return!0;if(void 0===s.key)return void this._dataController.fireError("E1043");s.isNewRow||(l.key=s.key),!this._isEditingStart(l)&&(this.resetChanges(),this.init(),this._resetEditColumnName(),this._pageIndex=o.pageIndex(),this._addInternalData({key:s.key,oldData:null!==(r=s.oldData)&&void 0!==r?r:s.data}),this._setEditRowKey(s.key))}},_editRowFromOptionChanged:function(i,r){var o=[r,i];this._beforeUpdateItems(o,i,r),this._editRowFromOptionChangedCore(o,i)},_editRowFromOptionChangedCore:function(i,r,o){this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:i,cancel:o})},_focusEditorIfNeed:Be,_showEditPopup:Be,_repaintEditPopup:Be,_getEditPopupHiddenHandler:function(){return i=>{this.isEditing()&&this.cancelEditData()}},_getPopupEditFormTemplate:Be,_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},_removeInternalData:function(i){var r=this._getInternalData(i),o=this._internalState.indexOf(r);o>-1&&this._internalState.splice(o,1)},_updateInsertAfterOrBeforeKeys:function(i,r){var o=i[r];i.forEach(a=>{var s=this._getInsertAfterOrBeforeKey(a);Tr(s,o.key)&&(a[Z(a.insertAfterKey)?"insertAfterKey":"insertBeforeKey"]=this._getInsertAfterOrBeforeKey(o))})},_removeChange:function(i){if(i>=0){var r=[...this.getChanges()],o=r[i].key;this._removeInternalData(o),this._updateInsertAfterOrBeforeKeys(r,i),r.splice(i,1),this._silentOption(Jm,r),Tr(this.option(Lp),o)&&this._resetEditIndices()}},executeOperation:function(i,r){this._lastOperation&&this._lastOperation.reject(),this._lastOperation=i,this.waitForDeferredOperations().done(()=>{"rejected"!==i.state()&&(r(),this._lastOperation=null)}).fail(()=>{i.reject(),this._lastOperation=null})},waitForDeferredOperations:function(){return Qt(...this._deferreds)},_processCanceledEditingCell:Be,_repaintEditCell:function(i,r,o){this._needFocusEditor=!0,!i||!i.showEditorAlways||r&&!r.showEditorAlways?(this._editCellInProgress=!0,this.getController("editorFactory").loseFocus(),this._dataController.updateItems({changeType:"update",rowIndices:[o,this._getVisibleEditRowIndex()]})):i!==r&&this._dataController.updateItems({changeType:"update",rowIndices:[]})},_delayedInputFocus:function(i,r,o){var a=()=>{if(r&&r(),i){var s=i.find(Yke).first();vn.focusAndSelectElement(this,s)}this._beforeFocusCallback=null};pn.real().ios||pn.real().android?a():(this._beforeFocusCallback&&this._beforeFocusCallback(),clearTimeout(this._inputFocusTimeoutID),o&&(this._beforeFocusCallback=r),this._inputFocusTimeoutID=setTimeout(a))},_focusEditingCell:function(i,r,o){var a=this.getView("rowsView"),s=this._getVisibleEditColumnIndex();(r=r||a&&a._getCellElement(this._getVisibleEditRowIndex(),s))&&this._delayedInputFocus(r,i,o)},deleteRow:function(i){this._checkAndDeleteRow(i)},_checkAndDeleteRow:function(i){var r=this.option("editing"),o=r?.texts,a=r?.confirmDelete,s=o?.confirmDeleteMessage,l=this._dataController.items()[i],u=!this.isEditing()||l.isNewRow;if(l&&u)if(a&&s){var f=o&&o.confirmDeleteTitle,S=Z(f)&&f.length>0;MY(s,f,S).done(T=>{T&&this._deleteRowCore(i)})}else this._deleteRowCore(i)},_deleteRowCore:function(i){var o=this._dataController.items()[i],a=o&&o.key,s=this._getVisibleEditRowIndex();this.refresh();var l=this.getChanges(),u=vn.getIndexByKey(a,l);return u>=0?l[u].type===df?this._removeChange(u):this._addChange({key:a,type:fv}):this._addChange({key:a,oldData:o.data,type:fv}),this._afterDeleteRow(i,s)},_afterDeleteRow:function(i,r){return this.saveEditData()},undeleteRow:function(i){var r=this._dataController,o=r.items()[i],a=this._getVisibleEditRowIndex(),s=o&&o.key,l=this.getChanges();if(o){var u=vn.getIndexByKey(s,l);if(u>=0){var{data:f}=l[u];pa(f)?this._removeChange(u):this._addChange({key:s,type:Dk}),r.updateItems({changeType:"update",rowIndices:[a,i]})}}},_fireOnSaving:function(){var i={cancel:!1,promise:null,changes:[...this.getChanges()]};this.executeAction("onSaving",i);var r=new et;return Qt(ra(i.promise)).done(()=>{r.resolve(i)}).fail(o=>{Ek(r),this._fireDataErrorOccurred(o),r.resolve({cancel:!0})}),r},_executeEditingAction:function(i,r,o){if(this.component._disposed)return null;var a=new et;return this.executeAction(i,r),Qt(ra(r.cancel)).done(function(s){s?setTimeout(function(){a.resolve("cancel")}):o(r).done(a.resolve).fail(Ek(a))}).fail(Ek(a)),a},_processChanges:function(i,r,o,a){var s=this._dataController.store();we(a,(l,u)=>{var L,z,f=this._getOldData(u.key),{data:S,type:T}=u,R=mt({},u);if(!this._beforeSaveEditData(u,l)){switch(T){case fv:L=this._executeEditingAction("onRowRemoving",z={data:f,key:u.key,cancel:!1},function(){return s.remove(u.key).done(function(Y){o.push({type:"remove",key:Y})})});break;case df:L=this._executeEditingAction("onRowInserting",z={data:S,cancel:!1},function(){return s.insert(z.data).done(function(Y,ie){Z(ie)&&(R.key=ie),Y&&Jn(Y)&&Y!==z.data&&(R.data=Y),o.push({type:"insert",data:Y,index:0})})});break;case Dk:L=this._executeEditingAction("onRowUpdating",z={newData:S,oldData:f,key:u.key,cancel:!1},function(){return s.update(u.key,z.newData).done(function(Y,ie){Y&&Jn(Y)&&Y!==z.newData&&(R.data=Y),o.push({type:"update",key:ie,data:Y})})})}if(a[l]=R,L){var j=new et;L.always(function(Y){r.push({key:u.key,result:Y})}).always(j.resolve),i.push(j.promise())}}})},_processRemoveIfError:function(i,r){return i[r]?.type===fv&&r>=0&&i.splice(r,1),!0},_processRemove:function(i,r,o){var a=i[r];if(!o||!a||a.type===fv)return this._processRemoveCore(i,r,!o||!a)},_processRemoveCore:function(i,r){return r>=0&&i.splice(r,1),!0},_processSaveEditDataResult:function(i){for(var r=!1,o=[...this.getChanges()],a=o.length,s=0;s<i.length;s++){var l=i[s].result,u="cancel"===l,f=vn.getIndexByKey(i[s].key,o),S=o[f];if(l&&l instanceof Error){if(S&&this._addInternalData({key:S.key,error:l}),this._fireDataErrorOccurred(l),this._processRemoveIfError(o,f))break}else this._processRemove(o,f,u)&&(r=!u)}return o.length<a&&this._silentOption(Jm,o),r},_fireSaveEditDataEvents:function(i){we(i,(r,o)=>{var{data:a,key:s,type:l}=o,u=this._addInternalData({key:s}),f={key:s,data:a};switch(u.error&&(f.error=u.error),l){case fv:this.executeAction("onRowRemoved",se({},f,{data:u.oldData}));break;case df:this.executeAction("onRowInserted",f);break;case Dk:this.executeAction("onRowUpdated",f)}}),this.executeAction("onSaved",{changes:i})},saveEditData:function(){var i=new et;return this.waitForDeferredOperations().done(()=>{this.isSaving()?this._resolveAfterSave(i):Qt(this._beforeSaveEditData()).done(r=>{if(r)this._resolveAfterSave(i,{cancel:r});else{this._saving=!0;var o={};this._saveEditDataInner(o).always(()=>{this._saving=!1,o.needFocusEditCell&&this._focusEditingCell()}).done(i.resolve).fail(i.reject)}}).fail(i.reject)}).fail(i.reject),i.promise()},_resolveAfterSave:function(i){var{cancel:r,error:o}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qt(this._afterSaveEditData(r)).done(function(){i.resolve(o)}).fail(i.reject)},_saveEditDataInner:function(i){var r=[],o=[],a=[],l=this._dataController.dataSource(),u=new et;return Qt(this._fireOnSaving()).done(f=>{var{cancel:S,changes:T}=f;return S?u.resolve().promise():(this._processChanges(o,r,a,T),o.length?(l?.beginLoading(),Qt(...o).done(()=>{this._processSaveEditDataResult(r)?this._endSaving(a,T,u):(l?.endLoading(),u.resolve())}).fail(R=>{l?.endLoading(),u.resolve(R)}),u.always(()=>{i.needFocusEditCell=!0}).promise()):void this._cancelSaving(u))}).fail(u.reject),u.promise()},_beforeEndSaving:function(i){this._resetEditIndices()},_endSaving:function(i,r,o){var a=this._dataController.dataSource();this._beforeEndSaving(r),a?.endLoading(),this._refreshDataAfterSave(i,r,o)},_cancelSaving:function(i){this.executeAction("onSaved",{changes:[]}),this._resolveAfterSave(i)},_refreshDataAfterSave:function(i,r,o){var a=this._dataController,s=this.option("editing.refreshMode"),l="reshape"!==s&&"repaint"!==s;l||a.push(i),Qt(a.refresh({selection:l,reload:l,load:"reshape"===s,changesOnly:this.option("repaintChangesOnly")})).always(()=>{this._fireSaveEditDataEvents(r)}).done(()=>{this._resolveAfterSave(o)}).fail(u=>{this._resolveAfterSave(o,{error:u})})},isSaving:function(){return this._saving},_updateEditColumn:function(){var i=this._isEditColumnVisible(),r=this.option("editing.useIcons"),o=tMe+(r?" "+nMe:"");this._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:i,cssClass:o,width:"auto",alignment:"center",cellTemplate:this._getEditCommandCellTemplate(),fixedPosition:"right"}),this._columnsController.columnOption("command:edit",{visible:i,cssClass:o})},_isEditColumnVisible:function(){return this.option("editing").allowDeleting},_isEditButtonDisabled:function(){var i=this.hasChanges();return!(Z(this.option("editing.editRowKey"))||i)},_updateEditButtons:function(){var i=this.getView("headerPanel"),r=this._isEditButtonDisabled();i&&(i.setToolbarItemDisabled("saveButton",r),i.setToolbarItemDisabled("revertButton",r))},_applyModified:function(i){i&&i.addClass(iMe)},_beforeCloseEditCellInBatchMode:Be,cancelEditData:function(){var i=this.getChanges(),r={cancel:!1,changes:i};this.executeAction("onEditCanceling",r),r.cancel||(this._cancelEditDataCore(),this.executeAction("onEditCanceled",{changes:i}))},_cancelEditDataCore:function(){var i=this._getVisibleEditRowIndex();this._beforeCancelEditData(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey(),this._afterCancelEditData(i)},_afterCancelEditData:function(i){this._dataController.updateItems({repaintChangesOnly:this.option("repaintChangesOnly")})},_hideEditPopup:Be,hasEditData:function(){return this.hasChanges()},update:function(i){var r=this._dataController;r&&this._pageIndex!==r.pageIndex()&&("refresh"===i&&this.refresh({isPageChanged:!0}),this._pageIndex=r.pageIndex()),this._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(i,r){return r?[]:[i.rowIndex]},addDeferred:function(i){this._deferreds.indexOf(i)<0&&(this._deferreds.push(i),i.always(()=>{var r=this._deferreds.indexOf(i);r>=0&&this._deferreds.splice(r,1)}))},_prepareChange:function(i,r,o){var a,s={},l=null===(a=i.row)||void 0===a?void 0:a.data,u=i.key,f=new et;return void 0!==u&&(i.value=r,ra(i.column.setCellValue(s,r,se(!0,{},l),o)).done(function(){f.resolve({data:s,key:u,oldData:l,type:Dk})}).fail(Ek(f)).fail(T=>this._fireDataErrorOccurred(T)),Z(o)&&i.column.displayValueMap&&(i.column.displayValueMap[r]=o),this._updateRowValues(i),this.addDeferred(f)),f},_updateRowValues:function(i){if(i.values){var r=this._dataController,o=r.getRowIndexByKey(i.key),a=r.getVisibleRows()[o];a&&(i.row.values=a.values,i.values=a.values),i.values[i.columnIndex]=i.value}},updateFieldValue:function(i,r,o,a){var s=i.key,l=new et;return void 0===s&&this._dataController.fireError("E1043"),i.column.setCellValue?this._prepareChange(i,r,o).done(u=>{Qt(this._applyChange(i,u,a)).always(()=>{l.resolve()})}):l.resolve(),l.promise()},_focusPreviousEditingCellIfNeed:function(i){if(this.hasEditData()&&!this.isEditCell(i.rowIndex,i.columnIndex))return this._focusEditingCell(),this._updateEditRow(i.row,!0),!0},_needUpdateRow:function(i){var r=this._columnsController.getVisibleColumns();i||(i=this._getEditColumn());var o=i&&i.setCellValue!==i.defaultSetCellValue,a=r.some(s=>s.calculateCellValue!==s.defaultCalculateCellValue);return o||a},_applyChange:function(i,r,o){var a=mt({},i,{forceUpdateRow:o});return this._addChange(r,a),this._updateEditButtons(),this._applyChangeCore(i,a.forceUpdateRow)},_applyChangeCore:function(i,r){var o=i.column.setCellValue!==i.column.defaultSetCellValue,a=i.row;a&&(r||o?this._updateEditRow(a,r,o):a.update&&a.update())},_updateEditRowCore:function(i,r,o){this._dataController.updateItems({changeType:"update",rowIndices:this._getRowIndicesForCascadeUpdating(i,r)})},_updateEditRow:function(i,r,o){r?this._updateRowImmediately(i,r,o):this._updateRowWithDelay(i,o)},_updateRowImmediately:function(i,r,o){this._updateEditRowCore(i,!r,o),this._validateEditFormAfterUpdate(i,o),r||this._focusEditingCell()},_updateRowWithDelay:function(i,r){var o=new et;this.addDeferred(o),setTimeout(()=>{var a,s=(null===(a=this._editForm)||void 0===a?void 0:a.element())||this.component.$element().get(0),l=U(It.getActiveElement(s)),u=this._rowsView.getCellIndex(l,i.rowIndex),f=l.get(0),S=vn.getSelectionRange(f);if(this._updateEditRowCore(i,!1,r),this._validateEditFormAfterUpdate(i,r),u>=0){var T=this._rowsView._getCellElement(i.rowIndex,u);this._delayedInputFocus(T,()=>{setTimeout(()=>{var R;f=It.getActiveElement(null===(R=this.component.$element())||void 0===R?void 0:R.get(0)),S.selectionStart>=0&&vn.setSelectionRange(f,S)})})}o.resolve()})},_validateEditFormAfterUpdate:Be,_addChange:function(i,r){var o,a=r?.row,s=[...this.getChanges()],l=vn.getIndexByKey(i.key,s);l<0&&(l=s.length,this._addInternalData({key:i.key,oldData:i.oldData}),delete i.oldData,s.push(i));var u=mt({},s[l]);return u&&(i.data&&(u.data=hm(u.data,i.data)),(!u.type||!i.data)&&i.type&&(u.type=i.type),a&&(a.oldData=this._getOldData(a.key),a.data=hm(a.data,i.data))),s[l]=u,this._silentOption(Jm,s),r&&u!==(null===(o=this.getChanges())||void 0===o?void 0:o[l])&&(r.forceUpdateRow=!0),u},_getFormEditItemTemplate:function(i,r){return r.editCellTemplate||this._getDefaultEditorTemplate()},getColumnTemplate:function(i){var a,f,r=i.column,o=i.row&&i.row.rowIndex,s=this.isRowBasedEditMode(),l=this.isEditRow(o),u=this.isEditCell(o,i.columnIndex);return!(r.showEditorAlways||r.setCellValue&&(l&&r.allowEditing||u))||"data"!==i.rowType&&"detailAdaptive"!==i.rowType||r.command?"detail"===r.command&&"detail"===i.rowType&&l&&(a=null==this?void 0:this.getEditFormTemplate(i)):(((this.allowUpdating(i)||l)&&r.allowEditing||u)&&(l||!s)&&(r.showEditorAlways&&!s&&this._isEditingStart(f={cancel:!1,key:i.row.isNewRow?void 0:i.row.key,data:i.row.data,column:r}),(!f||!f.cancel)&&(i.setValue=(T,R)=>{this.updateFieldValue(i,T,R)})),a=r.editCellTemplate||this._getDefaultEditorTemplate()),a},_createButton:function(i,r,o,a){var s=Q7t[r.name],l=this.option("editing.useIcons"),u=this.option("useLegacyColumnButtonTemplate"),f=U("<a>").attr("href","#").addClass("dx-link").addClass(r.cssClass);if(r.template&&u)this._rowsView.renderTemplate(i,r.template,o,!0);else{if(r.template)f=U("<span>").addClass(r.cssClass);else if(l&&s||r.icon){var S=fT(s=r.icon||s);"image"===S||"svg"===S?f=Fu(s).addClass(r.cssClass):f.addClass("dx-icon"+("dxIcon"===S?"-":" ")+s).attr("title",r.text),f.addClass("dx-link-icon"),i.addClass(nMe);var T=this.getButtonLocalizationNames()[r.name];T&&f.attr("aria-label",ye.format(T))}else f.text(r.text);Z(r.hint)&&f.attr("title",r.hint),this._isButtonDisabled(r,o)?f.addClass("dx-state-disabled"):(!r.template||r.onClick)&&Se.on(f,kt("click","dxDataGridEditing"),this.createAction(function(R){var L;null===(L=r.onClick)||void 0===L||L.call(r,se({},R,{row:o.row,column:o.column})),R.event.preventDefault(),R.event.stopPropagation()})),i.append(f,"&nbsp;"),r.template&&this._rowsView.renderTemplate(f,r.template,mt({},o,{column:void 0}),!0,a)}},getButtonLocalizationNames:()=>({edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges",delete:"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}),prepareButtonItem:function(i,r,o,a){var s=this.option("editing.texts")||{},u={revert:"cancel",save:"save",addRow:"addrow"}[r],f={revert:s.cancelAllChanges,save:s.saveAllChanges,addRow:s.addRow}[r],S=("save"===u||"cancel"===u)&&this._isEditButtonDisabled();return{widget:"dxButton",options:{onInitialized:T=>{U(T.element).addClass(i._getToolbarButtonClass("dx-edit-button "+this.addWidgetPrefix(u)+"-button"))},icon:"edit-button-"+u,disabled:S,onClick:()=>{setTimeout(()=>{this[o]()})},text:f,hint:f},showText:"inMenu",name:r+"Button",location:"after",locateInMenu:"auto",sortIndex:a}},prepareEditButtons:function(i){var o=[];return(this.option("editing")||{}).allowAdding&&o.push(this.prepareButtonItem(i,"addRow","addRow",20)),o},highlightDataCell:function(i,r){this.shouldHighlightCell(r)&&i.addClass(iMe)},_afterInsertRow:Be,_beforeSaveEditData:function(i){if(i&&!Z(i.key)&&Z(i.type))return!0},_afterSaveEditData:Be,_beforeCancelEditData:Be,_allowEditAction:function(i,r){var o=this.option("editing."+i);return Yt(o)&&(o=o({component:this.component,row:r.row})),o},allowUpdating:function(i,r){var o=this.option("editing.startEditAction")||"click",a=!(arguments.length>1)||o===r||"down"===r;return a&&this._allowEditAction("allowUpdating",i)},allowDeleting:function(i){return this._allowEditAction("allowDeleting",i)},isCellModified:function(i){var o=i.row&&(i.row.isNewRow?i.row.values:i.row.modifiedValues);return!!o&&void 0!==o[i.columnIndex]},isNewRowInEditMode:function(){var i=this._getVisibleEditRowIndex(),r=this._dataController.items();return i>=0&&r[i].isNewRow},shouldHighlightCell:function(i){return this.isCellModified(i)&&i.column.setCellValue&&(this.getEditMode()!==AS||!i.row.isEditing)}};return e}()),_v={defaultOptions:function(){return{editing:{mode:"row",refreshMode:"full",newRowPosition:eMe,allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,confirmDelete:!0,texts:{editRow:ye.format("dxDataGrid-editingEditRow"),saveAllChanges:ye.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:ye.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:ye.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:ye.format("dxDataGrid-editingCancelRowChanges"),addRow:ye.format("dxDataGrid-editingAddRow"),deleteRow:ye.format("dxDataGrid-editingDeleteRow"),undeleteRow:ye.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:ye.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click",editRowKey:null,editColumnName:null,changes:[]},useLegacyColumnButtonTemplate:!1}},controllers:{editing:izt},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(t,n){return!n&&this._editingController.refresh(),this.callBase.apply(this,arguments)},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(t){var r,n=this.option(Lp),i=t[vn.getIndexByKey(n,t)];i&&(i.isEditing=!0,null===(r=this._updateEditItem)||void 0===r||r.call(this,i))},_updateItemsCore:function(t){this.callBase(t),this._updateEditRow(this.items(!0))},_applyChangeUpdate:function(t){this._updateEditRow(t.items),this.callBase(t)},_applyChangesOnly:function(t){this._updateEditRow(t.items),this.callBase(t)},_processItems:function(t,n){return t=this._editingController.processItems(t,n),this.callBase(t,n)},_processDataItem:function(t,n){return this._editingController.processDataItem(t,n,this.generateDataValues),this.callBase(t,n)},_processItem:function(t,n){return(t=this.callBase(t,n)).isNewRow&&(n.dataIndex--,delete t.dataIndex),t},_getChangedColumnIndices:function(t,n,e,i){if(t.isNewRow===n.isNewRow&&t.removed===n.removed)return this.callBase.apply(this,arguments)},_isCellChanged:function(t,n,e,i,r){var o=this.getController("editing"),a=t.cells&&t.cells[i],s=o&&o.isEditCell(e,i);return(!r||!s)&&(!(!a||!a.column||a.column.showEditorAlways||a.isEditing===s)||this.callBase.apply(this,arguments))},needToRefreshOnDataSourceChange:function(t){var n=this.getController("editing");return!(Array.isArray(t.value)&&t.value===t.previousValue&&n.isSaving())},_handleDataSourceChange(t){var n=this.callBase(t),e=this.option("editing.changes"),i=t.value;if(Array.isArray(i)&&e.length){var r=i.map(l=>this.keyOf(l)),o=e.filter(l=>"insert"===l.type||r.some(u=>Tr(l.key,u)));o.length!==e.length&&this.option("editing.changes",o);var a=this.option("editing.editRowKey");!o.some(l=>"insert"===l.type&&Tr(a,l.key))&&r.every(l=>!Tr(a,l))&&this.option("editing.editRowKey",null)}return n}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellIndex:function(t,n){if(!t.is("td")&&n>=0){var e=this.getCellElements(n),i=-1;return we(e,function(r,o){U(o).find(t).length&&(i=r)}),i}return this.callBase.apply(this,arguments)},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(t){return this._editingController.getColumnTemplate(t)||this.callBase(t)},_createRow:function(t){var n=this.callBase.apply(this,arguments);if(t){var e=!!t.removed,i=!!t.isNewRow,r=!!t.modified;i&&n.addClass($7t),r&&n.addClass(q7t),(i||e)&&n.removeClass(j7t)}return n},_getColumnIndexByElement:function(t){for(var n=t.closest("table"),e=this.getTableElements();n.length&&!e.filter(n).length;)t=n.closest("td"),n=t.closest("table");return this._getColumnIndexByElementCore(t)},_getColumnIndexByElementCore:function(t){var n=t.closest(".dx-row> td:not(.dx-master-detail-cell)");return this.getCellIndex(n)},_editCellByClick:function(t,n){var e=this._editingController,i=U(t.event.target),r=this._getColumnIndexByElement(i),o=this._dataController.items()[t.rowIndex],a=e.allowUpdating({row:o},n)||o&&o.isNewRow,s=this._columnsController.getVisibleColumns()[r],l=e.isEditCell(t.rowIndex,r),u=a&&s&&(s.allowEditing||l),f=this.option("editing.startEditAction")||"click",S=s&&s.showEditorAlways;if(l)return!0;if("down"===n)return(pn.real().ios||pn.real().android)&&Mw(),S&&u&&e.editCell(t.rowIndex,r);if("click"===n&&"dblClick"===f){var T=o?.isNewRow;e.closeEditCell(!1,T)}return u&&n===f?e.editCell(t.rowIndex,r)||e.isEditRow(t.rowIndex):void 0},_rowPointerDown:function(t){this._pointerDownTimeout=setTimeout(()=>{this._editCellByClick(t,"down")})},_rowClick:function(t){var n=U(t.rowElement).hasClass(this.addWidgetPrefix(Kke));t.event[$ke]=this.component,!this._editCellByClick(t,"click")&&!n&&this.callBase.apply(this,arguments)},_rowDblClick:function(t){this._editCellByClick(t,"dblClick")||this.callBase.apply(this,arguments)},_cellPrepared:function(t,n){var e,i=this._editingController,r=!!n.column.command,o=n.setValue,a=i.isEditRow(n.rowIndex),s=rMe(a,n);if(oMe(a,n)){var l=n.column.alignment;t.toggleClass(this.addWidgetPrefix("readonly"),!o).toggleClass(Z7t,!o),l&&t.find(qke).first().css("textAlign",l)}s&&this._editCellPrepared(t);var u=!(null===(e=n.column)||void 0===e||!e.cellTemplate);n.column&&!r&&(!u||i.shouldHighlightCell(n))&&i.highlightDataCell(t,n),this.callBase.apply(this,arguments)},_editCellPrepared:Be,_formItemPrepared:Be,_getCellOptions:function(t){var n=this.callBase(t);return n.isEditing=this._editingController.isEditCell(n.rowIndex,n.columnIndex),n},_createCell:function(t){var n=this.callBase(t),e=this._editingController.isEditRow(t.rowIndex);return oMe(e,t)&&n.addClass("dx-editor-cell"),n},cellValue:function(t,n,e,i){var r=this.getCellOptions(t,n);if(r){if(void 0===e)return r.value;this._editingController.updateFieldValue(r,e,i,!0)}},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._pointerDownTimeout)},_renderCore:function(t){return this.callBase.apply(this,arguments),this._waitAsyncTemplates(t,!0).done(()=>{this._editingController._focusEditorIfNeed()})}},headerPanel:{_getToolbarItems:function(){var t=this.callBase();return this.getController("editing").prepareEditButtons(this).concat(t)},optionChanged:function(t){var n=t.fullName;switch(t.name){case"editing":n&&![h9,Jm,Sk,Lp].some(r=>r===n)&&this._invalidate(),this.callBase(t);break;case"useLegacyColumnButtonTemplate":t.handled=!0;break;default:this.callBase(t)}},isVisible:function(){var t=this.getController("editing").option("editing");return this.callBase()||t?.allowAdding}}}}};oi.registerModule("editing",se(!0,{},_v,{extenders:{controllers:{data:{_changeRowExpandCore:function(t){var n=this._editingController;return Array.isArray(t)&&n&&n.refresh(),this.callBase.apply(this,arguments)}}}}}));var aMe="dx-edit-row",sMe={extenders:{controllers:{editing:{isRowEditMode:function(){return this.getEditMode()===AS},_afterCancelEditData:function(t){var n=this._dataController;this.isRowBasedEditMode()&&t>=0?n.updateItems({changeType:"update",rowIndices:[t,t+1]}):this.callBase.apply(this,arguments)},_isDefaultButtonVisible:function(t,n){var e=this.isRowBasedEditMode(),i=n.row&&n.row.rowIndex===this._getVisibleEditRowIndex();if(e)switch(t.name){case"edit":return!i&&this.allowUpdating(n);case"delete":return this.callBase.apply(this,arguments)&&!i;case"save":case"cancel":return i;default:return this.callBase.apply(this,arguments)}return this.callBase.apply(this,arguments)},isEditRow:function(t){return this.isRowBasedEditMode()&&this.isEditRowByIndex(t)},_cancelSaving:function(){this.isRowBasedEditMode()&&(this.hasChanges()||this._cancelEditDataCore()),this.callBase.apply(this,arguments)},_refreshCore:function(t){var{allowCancelEditing:n}=t??{};if(this.isRowBasedEditMode()){var e=this.getChanges().filter(i=>"update"===i.type).length>0;this.init(),n&&e&&this._cancelEditDataCore()}this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var t=this.callBase.apply(this,arguments),n=this.option("editing"),e=this.isRowEditMode(),i=n.allowUpdating||n.allowAdding;return t||e&&i},_focusEditorIfNeed:function(){var t=this.getEditMode();if(this._needFocusEditor){if(-1!==U7t.indexOf(t)){var n=this.getFocusedCellInRow(this._getVisibleEditRowIndex());this._delayedInputFocus(n,()=>{n&&this.component.focus(n)})}this._needFocusEditor=!1}}},data:{_getChangedColumnIndices:function(t,n,e,i){var r=this.getController("editing");if(!r.isRowBasedEditMode()||t.isEditing===n.isEditing)return this.callBase.apply(this,arguments)}}},views:{rowsView:{_createRow:function(t){var n=this.callBase.apply(this,arguments);if(t){var e=this._editingController,i=e.isEditRow(t.rowIndex);i&&(n.addClass(aMe),n.removeClass(jke),"detail"===t.rowType&&n.addClass(this.addWidgetPrefix(Kke)))}return n},_update:function(t){this.callBase(t),"updateSelection"===t.changeType&&this.getTableElements().children("tbody").children("."+aMe).removeClass(jke)}}}}};oi.registerModule("editingRowBased",sMe);class lMe{constructor(){this._map={}}_findWidgetInstance(n){var e;return we(this._map,function(i,r){var{widgetInstance:o,item:a}=r;if(n(a))return e=o,!1}),e}_findFieldByCondition(n,e){var i;return we(this._map,function(r,o){if(n(o))return i="guid"===e?r:o[e],!1}),i}clear(){this._map={}}removeItemsByItems(n){we(n.getItems(),e=>this.removeItemByKey(e))}removeItemByKey(n){delete this._map[n]}add(n){var e=n.guid||new Ni;return this._map[e]=n,e}addItemsOrExtendFrom(n){n.each((e,i)=>{this._map[e]?(i.widgetInstance&&(this._map[e].widgetInstance=i.widgetInstance),this._map[e].$itemContainer=i.$itemContainer):this.add({item:i.item,widgetInstance:i.widgetInstance,guid:e,$itemContainer:i.$itemContainer})})}extendRunTimeItemInfoByKey(n,e){this._map[n]&&(this._map[n]=se(this._map[n],e))}findWidgetInstanceByItem(n){return this._findWidgetInstance(e=>e===n)}findGroupOrTabLayoutManagerByPath(n){return this._findFieldByCondition(e=>{var{path:i}=e;return i===n},"layoutManager")}findKeyByPath(n){return this._findFieldByCondition(e=>{var{path:i}=e;return i===n},"guid")}findWidgetInstanceByName(n){return this._findWidgetInstance(e=>n===e.name)}findWidgetInstanceByDataField(n){return this._findWidgetInstance(e=>n===(Pn(e)?e:e.dataField))}findItemContainerByItem(n){for(var e in this._map)if(this._map[e].item===n)return this._map[e].$itemContainer;return null}findItemIndexByItem(n){return this._findFieldByCondition(e=>{var{item:i}=e;return i===n},"itemIndex")}findPreparedItemByItem(n){return this._findFieldByCondition(e=>{var{item:i}=e;return i===n},"preparedItem")}getItems(){return this._map}each(n){we(this._map,function(e,i){n(e,i)})}removeItemsByPathStartWith(n){Object.keys(this._map).filter(r=>!!this._map[r].path&&this._map[r].path.indexOf(n,0)>-1).forEach(r=>this.removeItemByKey(r))}}var f9={move(t,n){kr(t,{left:n})}},LY={moveTo(t,n,e,i){Hi.animate(t,{type:"slide",to:{left:n},duration:e,complete:i})},complete(t){Hi.stop(t,!0)}},rzt="dx-multiview",ozt="dx-multiview-wrapper",azt="dx-multiview-item-container",uMe="dx-multiview-item",dMe=t=>+t,cMe=gR.inherit({_activeStateUnit:"."+uMe,_supportedKeys:function(){return se(this.callBase(),{pageUp:Be,pageDown:Be})},_getDefaultOptions:function(){return se(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return uMe},_itemDataKey:function(){return"dxMultiViewItemData"},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=wn(this._$wrapper)),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(t){var n=this._itemsCount();return t<0&&(t+=n),t>=n&&(t-=n),t},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var t=this.$element();t.addClass(rzt),this._$wrapper=U("<div>").addClass(ozt),this._$wrapper.appendTo(t),this._$itemContainer=U("<div>").addClass(azt),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase();var t=this._getSelectedItemIndices();this._updateItemsVisibility(t[0])},_afterItemElementDeleted:function(t,n){this.callBase(t,n),this._deferredItems&&this._deferredItems.splice(n.itemIndex,1)},_beforeItemElementInserted:function(t){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(t.index,0,null)},_executeItemRenderAction:function(t,n,e){t=(this.option("items")||[]).indexOf(n),this.callBase(t,n,e)},_renderItemContent:function(t){var n=new et,e=this,i=this.callBase,r=new et;return r.done(function(){var o=i.call(e,t);n.resolve(o)}),this._deferredItems[t.index]=r,this.option("deferRendering")||r.resolve(),n.promise()},_render:function(){this.callBase(),Zo(()=>{var t=this._getSelectedItemIndices();this._updateItems(t[0])})},_updateItems:function(t,n){this._updateItemsPosition(t,n),this._updateItemsVisibility(t,n)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var t=this._getSelectedItemIndices();this._updateItemsVisibility(t[0])},_updateItemsPosition:function(t,n){var e=this._itemElements(),i=Z(n)?-this._animationDirection(n,t):void 0,r=e.eq(t);f9.move(r,0),Z(n)&&f9.move(e.eq(n),100*i+"%")},_updateItemsVisibility:function(t,n){this._itemElements().each(function(i,r){var o=U(r),a=i!==t&&i!==n;a||this._renderSpecificItem(i),o.toggleClass("dx-multiview-item-hidden",a),this.setAria("hidden",a||void 0,o)}.bind(this))},_renderSpecificItem:function(t){var n=this._itemElements().eq(t),e=n.find(this._itemContentClass()).length>0;Z(t)&&!e&&(this._deferredItems[t].resolve(),qd(n))},_refreshItem:function(t,n){this.callBase(t,n),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:Be,_updateSelection:function(t,n){var e=t[0],i=n[0];LY.complete(this._$itemContainer),this._updateItems(i,e);var r=this._animationDirection(e,i);this._animateItemContainer(r*this._itemWidth(),function(){f9.move(this._$itemContainer,0),this._updateItems(e),wn(this._$itemContainer)}.bind(this))},_animateItemContainer:function(t,n){var e=this.option("animationEnabled")?200:0;LY.moveTo(this._$itemContainer,t,e,n)},_animationDirection:function(t,n){var e=(t=>Ra(this._$itemContainer).left)(),i=(n-t)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection();return gh(0!==e?e:i)},_getSwipeDisabledState(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable(){this._createComponent(this.$element(),oS,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:t=>this._swipeStartHandler(t.event),onUpdated:t=>this._swipeUpdateHandler(t.event),onEnd:t=>this._swipeEndHandler(t.event)})},_swipeStartHandler:function(t){LY.complete(this._$itemContainer);var n=this.option("selectedIndex"),e=this.option("loop"),i=this._itemsCount()-1,r=this.option("rtlEnabled");t.maxLeftOffset=dMe(e||(r?n>0:n<i)),t.maxRightOffset=dMe(e||(r?n<i:n>0)),this._swipeDirection=null},_swipeUpdateHandler:function(t){var n=t.offset,e=gh(n)*this._getRTLSignCorrection();if(f9.move(this._$itemContainer,n*this._itemWidth()),e!==this._swipeDirection){this._swipeDirection=e;var i=this.option("selectedIndex"),r=this._normalizeIndex(i-e);this._updateItems(i,r)}},_swipeEndHandler:function(t){var n=t.targetOffset*this._getRTLSignCorrection();if(n){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-n));var e=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",kn(e))}else this._animateItemContainer(0,Be)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(t){var n=this.callBase.apply(this,arguments);return this._itemFocusLooped=n.is(t.last()),n},_nextItem:function(t){var n=this.callBase.apply(this,arguments);return this._itemFocusLooped=n.is(t.first()),n},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(t){t&&this._dimensionChanged()},_updateSwipeDisabledState(){var t=this._getSwipeDisabledState();oS.getInstance(this.$element()).option("disabled",t)},_optionChanged:function(t){var n=t.value;switch(t.name){case"loop":this.option("loopItemFocus",n);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this.callBase(t);break;default:this.callBase(t)}}});On("dxMultiView",cMe);const hMe=cMe;var hzt=Lw.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(t){if(this._$element.children(".dx-badge").remove(),t){var n=U("<div>").addClass("dx-tabs-item-badge").addClass("dx-badge").text(t);this._$element.append(n)}}});const pzt=hzt;var gMe="dx-tabs-expanded";function fMe(t){return t.scrollWidth-t.clientWidth}var vMe="dx-tabs-stretched",yMe="dx-tabs-nav-buttons",CMe="dx-overflow-hidden",xMe="chevronnext",wMe="chevronprev",BY=gR.inherit({_activeStateUnit:".dx-tab",_getDefaultOptions:function(){return se(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(t){return t?t.badge:void 0},_itemAttributes:{role:"tab"}})},_defaultOptionsRules:function(){var t=lu();return this.callBase().concat([{device:function(){return"desktop"!==pn.real().deviceType},options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return io(t)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass("dx-tabs"),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=100},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new Ac(function(t,n){wi(n)?this._prepareDefaultItemTemplate(n,t):t.text(String(n));var e=Fu(n.icon);e&&e.prependTo(t),t.wrapInner(U("<span>").addClass("dx-tab-text"))}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(t,n){var{itemData:e,container:i,index:r}=n;return this._deferredTemplates[r]=new et,t.render({model:e,container:i,index:r,onRendered:()=>this._deferredTemplates[r].resolve()})},_itemClass:function(){return"dx-tab"},_selectedItemClass:function(){return"dx-tab-selected"},_itemDataKey:function(){return"dxTabData"},_initMarkup:function(){this._deferredTemplates=[],this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(CMe)},_render:function(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling(){Qt.apply(this,this._deferredTemplates).done(()=>this._renderScrolling())},_renderScrolling:function(){var t=[vMe,gMe,CMe];if(this.$element().removeClass(t.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()){this._scrollable||(this._renderScrollable(),this._renderNavButtons());var n=this.getScrollable();if(n.update(),this.option("rtlEnabled")){var e=fMe(U(this.getScrollable().container()).get(0));n.scrollTo({left:e})}this._updateNavButtonsVisibility(),this._scrollToItem(this.option("selectedItem"))}this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(vMe),this.$element().removeClass(yMe).addClass(gMe))},_isItemsWidthExceeded:function(){return this._getSummaryItemsWidth(this._getVisibleItems(),!0)-1>wn(this.$element())},_needStretchItems:function(){var t=this._getVisibleItems(),n=wn(this.$element()),e=[];return we(t,(r,o)=>{e.push(ii(o,!0))}),Math.max.apply(null,e)>=n/t.length},_cleanNavButtons:function(){!this._leftButton||!this._rightButton||(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=_T()},_toggleActiveState:function(t,n,e){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:t,event:e};n?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=U("<div>").addClass("dx-tabs-wrapper"),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var t=this.$element().wrapInner(U("<div>").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(t,xd,{direction:"horizontal",showScrollbar:"never",useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:()=>{this._updateNavButtonsVisibility()}}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(t){if(this._scrollable){var n=this._editStrategy.getItemElement(t);this._scrollable.scrollToElement(n)}},_renderNavButtons:function(){if(this.$element().toggleClass(yMe,this.option("showNavButtons")),this.option("showNavButtons")){var t=this.option("rtlEnabled");this._leftButton=this._createNavButton(-30,t?xMe:wMe);var n=this._leftButton.$element();n.addClass("dx-tabs-nav-button-left"),this.$element().prepend(n),this._rightButton=this._createNavButton(30,t?wMe:xMe);var e=this._rightButton.$element();e.addClass("dx-tabs-nav-button-right"),this.$element().append(e)}},_updateNavButtonsVisibility:function(){var t=this.getScrollable();this._leftButton&&this._leftButton.option("disabled",function mMe(t,n){return Math.round(t)<=n}(t.scrollLeft(),1)),this._rightButton&&this._rightButton.option("disabled",function _Me(t,n,e){return Math.round(fMe(t)-n)<=e}(U(t.container()).get(0),t.scrollLeft(),1))},_updateScrollPosition:function(t,n){this._scrollable.update(),this._scrollable.scrollBy(t/n)},_createNavButton:function(t,n){var e=this,i=e._createAction(function(){e._holdInterval=setInterval(function(){e._updateScrollPosition(t,5)},5)}),r=kt(Tm_name,"dxNavButton"),o=kt(qn.up,"dxNavButton"),a=kt(qn.out,"dxNavButton"),s=this._createComponent(U("<div>").addClass("dx-tabs-nav-button"),To,{focusStateEnabled:!1,icon:n,onClick:function(){e._updateScrollPosition(t,1)},integrationOptions:{}}),l=s.$element();return Se.on(l,r,{timeout:300},function(u){i({event:u})}.bind(this)),Se.on(l,o,function(){e._clearInterval()}),Se.on(l,a,function(){e._clearInterval()}),s},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(t){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(t[0]),{left:1,right:1})},_visibilityChanged:function(t){t&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(t){"single"===this.option("selectionMode")&&this.isItemSelected(t.currentTarget)||this.callBase(t)},_clean:function(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_optionChanged:function(t){switch(t.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":case"badgeExpr":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(t.name,t.value);break;case"width":this.callBase(t),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(t);break;default:this.callBase(t)}},_afterItemElementInserted(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted(t,n){this.callBase(t,n),this._renderScrolling()},getScrollable(){return this._scrollable}});BY.ItemClass=pzt,On("dxTabs",BY);const EMe=BY;var NY=hMe.inherit({_getDefaultOptions:function(){return se(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(t){return t?t.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!h_},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass("dx-tabpanel"),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new Ac(function(t,n){if(wi(n)){var e=Fu(n.icon);e&&t.append(e),Z(n.title)&&!wi(n.title)&&t.append(It.createTextNode(n.title))}else Z(n)&&t.text(String(n));t.wrapInner(U("<span>").addClass("dx-tab-text"))},["title","icon"],this.option("integrationOptions.watchMethod"))})},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var t=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout(function(){t._updateLayout()},0))},_renderLayout:function(){if(this._tabs)this._updateLayout();else{var t=this.$element();this._$tabContainer=U("<div>").addClass("dx-tabpanel-tabs").appendTo(t);var n=U("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(n,EMe,this._tabConfig()),this._$container=U("<div>").addClass("dx-tabpanel-container").appendTo(t),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if(Rn()){var t=Zn(this._$tabContainer);this._$container.css({marginTop:-t,paddingTop:t})}},_refreshActiveDescendant:function(){if(this._tabs){var t=this._tabs,n=t.itemElements(),e=U(n[t.option("selectedIndex")]),i=this.getFocusedItemId();this.setAria("controls",void 0,U(n)),this.setAria("controls",i,e)}},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(t){this.option("selectedIndex",t.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(t){if("focusedElement"===t.name)if(t.value){var n=U(t.value),e=this._itemElements().eq(n.index());this.option("focusedElement",kn(e))}else this.option("focusedElement",t.value)}.bind(this),onFocusIn:function(t){this._focusInHandler(t.event)}.bind(this),onFocusOut:function(t){this._isFocusOutHandlerExecuting||this._focusOutHandler(t.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1)},_updateFocusState:function(t,n){this.callBase(t,n),t.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(n,this._focusTarget())},_focusOutHandler:function(t){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(t),this._isFocusOutHandlerExecuting=!1},_setTabsOption:function(t,n){this._tabs&&this._tabs.option(t,n)},_visibilityChanged:function(t){t&&(this._tabs._dimensionChanged(),this._updateLayout())},registerKeyHandler:function(t,n){this.callBase(t,n),this._tabs&&this._tabs.registerKeyHandler(t,n)},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(t){var n=t.name,e=t.value,i=t.fullName;switch(n){case"dataSource":default:this.callBase(t);break;case"items":this._setTabsOption(n,this.option(n)),this._updateLayout(),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(t);break;case"width":this.callBase(t),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":if(this._setTabsOption(i,e),this.callBase(t),!0===this.option("focusStateEnabled")){var r=this.option("selectedIndex"),o=this._itemElements().eq(r);this.option("focusedElement",kn(o))}break;case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(i,e),this.callBase(t);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(i,e);break;case"focusedElement":var a=e&&U(e).index(),s=e&&this._tabs._itemElements().eq(a);this._setTabsOption("focusedElement",kn(s)),this.callBase(t);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",e);break;case"badgeExpr":this._invalidate()}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});NY.ItemClass=class Ozt extends Lw{_renderWatchers(){return this._startWatcher("badge",Be),super._renderWatchers()}},On("dxTabPanel",NY);const VY=NY;class lb{constructor(n){this._options=n,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}findInstance(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)}findItemContainer(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)}findPreparedItem(){return this._itemsRunTimeInfo.findPreparedItemByItem(this._options.item)}tryExecute(){ji.abstract()}}var HY=(t,n)=>"".concat(n?"tabs":"items","[").concat(t,"]"),OMe=(t,n)=>Z(t)&&Z(n)?"".concat(t,".").concat(n):t||n,zY=t=>t?t.replace(/\s/g,""):void 0,Ok=(t,n)=>"".concat(t,".").concat(n),TMe=t=>{var n=t.split(".");return n[n.length-1].replace(/\[\d+]/,"")},IMe=t=>t.indexOf("tabs")>-1,kMe=(t,n,e)=>{var i=t.indexOf(n);if(i>-1)return HY(i,e);for(var r=0;r<t.length;r++){var o=t[r],a=o.tabs||o.items;if(a){var s=kMe(a,n,o.tabs);if(s)return OMe(HY(r,e),s)}}};class Rzt extends lb{tryExecute(){var{value:n}=this._options,e=this.findInstance();return!!e&&(e.option(n),!0)}}class MMe extends lb{tryExecute(){var n=this.findInstance();if(n){var{optionName:e,item:i,value:r}=this._options,o=this._itemsRunTimeInfo.findItemIndexByItem(i);if(o>=0)return n.option(Ok("items[".concat(o,"]"),e),r),!0}return!1}}class Lzt extends lb{tryExecute(){return!1}}class Bzt extends lb{tryExecute(){var n=this.findPreparedItem();return!(null==n||!n._prepareGroupItemTemplate||!n._renderGroupContentTemplate||(n._prepareGroupItemTemplate(this._options.item.template),n._renderGroupContentTemplate(),0))}}class Nzt extends lb{tryExecute(){var n=this.findInstance();if(n){var{value:e}=this._options;return n.option("dataSource",e),!0}return!1}}class Vzt extends lb{tryExecute(){var{item:n}=this._options,e=this.findInstance(),i=e&&zo(e.$element()[0],"dxValidator");if(i&&n){var r=s=>"required"===s.type,o=(i.option("validationRules")||[]).some(r),a=(n.validationRules||[]).some(r);if(!o&&!a||o&&a)return i.option("validationRules",n.validationRules),!0}return!1}}class Hzt extends lb{tryExecute(){var n=this.findItemContainer(),{previousValue:e,value:i}=this._options;return!!n&&(n.removeClass(e).addClass(i),!0)}}var AMe="dx-responsivebox",FMe=AMe+"-screen-",PMe="dxBoxItemData",RMe=Fc.inherit({_getDefaultOptions:function(){return se(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0})},_init:function(){this.option("screenByWidth")||this._options.silent("screenByWidth",t5),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return"dx-box-item"},_itemDataKey:function(){return PMe},_initMarkup:function(){this.callBase(),this.$element().addClass(AMe)},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(t){var n=this._findItemElementByItem(t);n.length&&(this._refreshItem(n,t),this._clearItemNodeTemplates(),this._update(!0))},_setScreenSize:function(){var t=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(FMe+t),this.option("currentScreenFactor",t)},_removeScreenSizeClass:function(){var t=this.option("currentScreenFactor");t&&this.$element().removeClass(FMe+t)},_prepareGrid:function(){var t=this._grid=[];this._prepareRowsAndCols(),we(this._rows,function(){var n=[];t.push(n),we(this._cols,function(){n.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var t=this.option("rows"),n=this._screenItems.length;if(t.length){for(var e=this._filterByScreen(t),i=[],r=0;r<n;r++){var o=this._defaultSizeConfig();r<e.length&&Z(e[r].shrink)&&(o.shrink=e[r].shrink),i.push(o)}return i}return this._defaultSizeConfig(n)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort(function(t,n){return t.location.row-n.location.row||t.location.col-n.location.col}),we(this._screenItems,function(t,n){se(n.location,{row:t,col:0,rowspan:1,colspan:1})})},_sizesByScreen:function(t){return Dr(this._filterByScreen(t),function(n){return se(this._defaultSizeConfig(),n)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(t){var n=this._createDefaultSizeConfig();if(!arguments.length)return n;for(var e=[],i=0;i<t;i++)e.push(n);return e},_filterByScreen:function(t){var n=this._screenRegExp();return Vs(t,function(e){return!e.screen||n.test(e.screen)})},_screenRegExp:function(){var t=this._getCurrentScreen();return new RegExp("(^|\\s)"+t+"($|\\s)","i")},_getCurrentScreen:function(){var t=this._screenWidth();return this.option("screenByWidth")(t)},_screenWidth:function(){return Rn()?wn(Fn()):1920},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){we(this._screenItems,function(t,n){var e=n.location||{},o=this._grid[e.row];this._occupyCells(o&&o[e.col],n)}.bind(this))},_itemsByScreen:function(){return this.option("items").reduce((t,n)=>{var e=n.location||{};return e=wi(e)?[e]:e,this._filterByScreen(e).forEach(i=>{t.push({item:n,location:se({rowspan:1,colspan:1},i)})}),t},[])},_occupyCells:function(t,n){!t||this._isItemCellOccupied(t,n)||(se(t,n),this._markSpanningCell(t))},_isItemCellOccupied:function(t,n){if(!pa(t.item))return!0;var e=!1;return this._loopOverSpanning(n.location,function(i){e=e||!pa(i.item)}),e},_loopOverSpanning:function(t,n){var e=t.row+t.rowspan-1,i=t.col+t.colspan-1,r=Math.min(e,this._rows.length-1),o=Math.min(i,this._cols.length-1);t.rowspan-=e-r,t.colspan-=i-o;for(var a=t.row;a<=r;a++)for(var s=t.col;s<=o;s++)(a!==t.row||s!==t.col)&&n(this._grid[a][s])},_markSpanningCell:function(t){this._loopOverSpanning(t.location,function(n){se(n,{item:t.item,spanningCell:t})})},_linkNodeToItem:function(){we(this._itemElements(),function(t,n){var e=U(n),i=e.data(PMe);i.box||(i.node=e.children())})},_layoutItems:function(){var t=this._grid.length,n=t&&this._grid[0].length;if(t||n){var e=this._layoutBlock({direction:"col",row:{start:0,end:t-1},col:{start:0,end:n-1}}),i=this._prepareBoxConfig(e.box||{direction:"row",items:[se(e,{ratio:1})]});se(i,this._rootBoxConfig(i.items)),this._$root=U("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,BI,i)}},_rootBoxConfig:function(t){return{width:"100%",height:"100%",items:we(t,function(e,i){this._needApplyAutoBaseSize(i)&&se(i,{baseSize:"auto"})}.bind(this)),itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")}},_needApplyAutoBaseSize:function(t){return!(t.baseSize||t.minSize&&"auto"!==t.minSize||t.maxSize&&"auto"!==t.maxSize)},_prepareBoxConfig:function(t){return se(t||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(t){return this._isSingleItem(t)?this._itemByCell(t.row.start,t.col.start):this._layoutDirection(t)},_isSingleItem:function(t){var n=this._grid[t.row.start][t.col.start].location;return t.row.end-t.row.start==n.rowspan-1&&t.col.end-t.col.start==n.colspan-1},_itemByCell:function(t,n){var e=this._grid[t][n];return e.spanningCell?null:e.item},_layoutDirection:function(t){for(var r,n=[],e=t.direction,i=this._crossDirection(e);r=this._nextBlock(t);){if(this._isBlockIndivisible(t.prevBlockOptions,r))throw Di.Error("E1025");var o=this._layoutBlock({direction:i,row:r.row,col:r.col,prevBlockOptions:t});o&&(se(o,this._blockSize(r,i)),n.push(o)),t[i].start=r[i].end+1}return{box:this._prepareBoxConfig({direction:e,items:n})}},_isBlockIndivisible:function(t,n){return t&&t.col.start===n.col.start&&t.col.end===n.col.end&&t.row.start===n.row.start&&t.row.end===n.row.end},_crossDirection:function(t){return"col"===t?"row":"col"},_nextBlock:function(t){var n=t.direction,e=this._crossDirection(n),i=t[n].start,r=t[n].end,o=t[e].start;if(o>t[e].end)return null;for(var a=1,s=o;s<o+a;s++){for(var l=1,u=i;u<=r;u++){var f=this._cellByDirection(n,u,s);l=Math.max(l,f.location[e+"span"])}var S=s+l,T=o+a;S>T&&(a+=S-T)}var R={};return R[n]={start:i,end:r},R[e]={start:o,end:o+a-1},R},_cellByDirection:function(t,n,e){return"col"===t?this._grid[e][n]:this._grid[n][e]},_blockSize:function(t,n){for(var e="row"===n?"auto":0,i="row"===n?this._rows:this._cols,r=se(this._createDefaultSizeConfig(),{ratio:0}),o=t[n].start;o<=t[n].end;o++){var a=i[o];r.ratio+=a.ratio,r.baseSize+=a.baseSize,r.minSize+=a.minSize,r.maxSize+=a.maxSize,Z(a.shrink)&&(r.shrink=a.shrink)}return r.minSize=r.minSize?r.minSize:e,r.maxSize=r.maxSize?r.maxSize:"auto",this._isSingleColumnScreen()&&(r.baseSize="auto"),r},_update:function(t){var n=this._$root;this._renderItems(),n&&(t?n.remove():(n.detach(),this._saveAssistantRoot(n))),this._layoutChangedAction()},_saveAssistantRoot:function(t){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(t)},_dispose:function(){this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&we(this._assistantRoots,function(t,n){U(n).remove()})},_clearItemNodeTemplates:function(){we(this.option("items"),function(){delete this.node})},_attachClickEvent:Be,_optionChanged:function(t){switch(t.name){case"rows":case"cols":case"screenByWidth":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(t),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(t);break;case"currentScreenFactor":break;default:this.callBase(t)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});On("dxResponsiveBox",RMe);const LMe=RMe;var UY="dx-form-group",BMe="dx-col-",NMe="dx-field-item",VMe="dx-layout-manager-one-col",HMe="dx-field-item-label-content",zMe="dx-field-item-label",WY="dx-field-item-content",UMe="dx-root-simple-item",WMe="dx-field-item-tab",GMe="dx-group-colcount-",jMe="group-col-count",GY="simple",t5t=ji.inherit({ctor(t,n){this.editor=t,this.validator=n,this.validationRequestsCallbacks=[];var e=i=>{this.validationRequestsCallbacks.forEach(r=>r(i))};t.validationRequest.add(e),t.on("disposing",function(){t.validationRequest.remove(e)})},getValue(){return this.editor.option("value")},getCurrentValidationError(){return this.editor.option("validationError")},bypass(){return this.editor.option("disabled")},applyValidationResults(t){this.editor.option({validationErrors:t.brokenRules,validationStatus:t.status})},reset(){this.editor.reset()},focus(){this.editor.focus()}});const n5t=t5t;var jY="pending",$Me=Ic.inherit({_initOptions:function(t){this.callBase.apply(this,arguments),this.option(Uo.initValidationOptions(t))},_getDefaultOptions(){return se(this.callBase(),{validationRules:[]})},_init(){this.callBase(),this._initGroupRegistration(),this.focused=Zi(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration(){var t=this._findGroup();this._groupWasInit||this.on("disposing",function(n){Uo.removeRegisteredValidator(n.component._validationGroup,n.component)}),(!this._groupWasInit||this._validationGroup!==t)&&(Uo.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=t,Uo.registerValidatorInGroup(t,this))},_setOptionsByReference(){this.callBase(),se(this._optionsByReference,{validationGroup:!0})},_getEditor(){return zo(this.$element()[0],"dx-validation-target")},_initAdapter(){var t=this._getEditor(),n=this.option("adapter");if(!n){if(t)return(n=new n5t(t,this)).validationRequestsCallbacks.push(i=>{this._validationInfo.skipValidation||this.validate(i)}),void this.option("adapter",n);throw Di.Error("E0120")}var e=n.validationRequestsCallbacks;e&&e.push(i=>{this.validate(i)})},_toggleRTLDirection(t){var n,e,i,r=null!==(n=null===(e=this.option("adapter"))||void 0===e||null===(i=e.editor)||void 0===i?void 0:i.option("rtlEnabled"))&&void 0!==n?n:t;this.callBase(r)},_initMarkup(){this.$element().addClass("dx-validator"),this.callBase()},_render(){this.callBase(),this._toggleAccessibilityAttributes()},_toggleAccessibilityAttributes(){var t=this._getEditor();if(t){var e=(this.option("validationRules")||[]).some(i=>{var{type:r}=i;return"required"===r})||null;t.isInitialized()&&t.setAria("required",e),t.option("_onMarkupRendered",()=>{t.setAria("required",e)})}},_visibilityChanged(t){t&&this._initGroupRegistration()},_optionChanged(t){switch(t.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),this._toggleAccessibilityAttributes(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;case"isValid":case"validationStatus":this.option(Uo.synchronizeValidationOptions(t,this.option()));break;default:this.callBase(t)}},_getValidationRules(){return this._validationRules||(this._validationRules=Dr(this.option("validationRules"),(t,n)=>se({},t,{validator:this,index:n}))),this._validationRules},_findGroup(){var t=this.$element();return this.option("validationGroup")||Uo.findGroup(t,this._modelByElement(t))},_resetValidationRules(){delete this._validationRules},validate(t){var l,n=this.option("adapter"),e=this.option("name"),i=n.bypass&&n.bypass(),r=t&&void 0!==t.value?t.value:n.getValue(),o=n.getCurrentValidationError&&n.getCurrentValidationError(),a=this._getValidationRules(),s=this._validationInfo&&this._validationInfo.result;return s&&s.status===jY&&s.value===r?se({},s):(i?l={isValid:!0,status:"valid"}:o&&o.editorSpecific?(o.validator=this,l={isValid:!1,status:"invalid",brokenRule:o,brokenRules:[o]}):l=Uo.validate(r,a,e),l.id=(new Ni).toString(),this._applyValidationResult(l,n),l.complete&&l.complete.then(u=>{u.id===this._validationInfo.result.id&&this._applyValidationResult(u,n)}),se({},this._validationInfo.result))},reset(){var t=this.option("adapter");this._validationInfo.skipValidation=!0,t.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult({id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:"valid",complete:null},t)},_updateValidationResult(t){if(this._validationInfo.result&&this._validationInfo.result.id===t.id)for(var e in t)"id"!==e&&"complete"!==e&&(this._validationInfo.result[e]=t[e]);else this._validationInfo.result=se({},t,{complete:this._validationInfo.deferred&&this._validationInfo.result.complete})},_applyValidationResult(t,n){var e=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});if(t.validator=this,this._updateValidationResult(t),n.applyValidationResults&&n.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),this._validationInfo.result.status===jY)return this._validationInfo.deferred||(this._validationInfo.deferred=new et,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result]);this._validationInfo.result.status!==jY&&(e(t),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(t),this._validationInfo.deferred=null))},focus(){var t=this.option("adapter");t&&t.focus&&t.focus()},_useTemplates:function(){return!1}});On("dxValidator",$Me);const Tk=$Me;var o5t=["dxTagBox","dxRangeSlider"],a5t=["dxCalendar","dxCheckBox","dxHtmlEditor","dxRadioGroup","dxRangeSlider","dxSlider","dxSwitch"];function qMe(t,n){var{showRequiredMark:e,requiredMark:i,showOptionalMark:r,optionalMark:o}=t;return{showRequiredMark:e&&n,requiredMark:i,showOptionalMark:r&&!n,optionalMark:o}}var YMe="dx-field-item-label-location-";function _5t(t,n,e){var a,s,i="".concat(n," > .").concat(zMe,":not(.").concat(YMe,"top) > .").concat(HMe),r=t.find(i),o=r.length,l=0;for(s=0;s<o;s++)(a=v5t(r[s]))>l&&(l=a);for(s=0;s<o;s++)r[s].style.width=l+"px"}function v5t(t){for(var n=0,e=t.children.length,i=0;i<e;i++)n+=t.children[i].offsetWidth;return n}var ZMe="dx-field-item-content-wrapper",KY="dx-validation-target";function I5t(t){var{$parent:n,rootElementCssClassList:e,formOrLayoutManager:i,createComponentCallback:r,labelOptions:o,labelNeedBaselineAlign:a,labelLocation:s,needRenderLabel:l,formLabelLocation:u,item:f,editorOptions:S,isSimpleItem:T,isRequired:R,template:L,helpID:z,labelID:j,name:Y,helpText:ie,requiredMessageTemplate:te,validationGroup:re}=t,he=U("<div>").addClass(e.join(" ")).appendTo(n);he.addClass(R?"dx-field-item-required":"dx-field-item-optional"),T&&he.addClass("dx-flex-layout"),T&&a&&he.addClass("dx-field-item-label-align");var fe=U("<div>");fe.data("dx-form-item",f),fe.addClass(WY).addClass("dx-field-item-content-location-"+{right:"left",left:"right",top:"bottom"}[u]);var Re,Te=null;if(l&&(o.labelTemplate&&(o.labelTemplateData=QMe(f,S,i)),Te=function f5t(t){var{text:n,id:e,location:i,alignment:r,labelID:o=null,markOptions:a={},labelTemplate:s,labelTemplateData:l,onLabelTemplateRendered:u}=t;if((!Z(n)||n.length<=0)&&!Z(s))return null;var f=U("<label>").addClass(zMe+" "+YMe+i).attr("for",e).attr("id",o).css("textAlign",r),S=U("<span>").addClass(HMe),T=U("<span>").addClass("dx-field-item-label-text").text(n);return s&&(T=U("<div>").addClass("dx-field-item-custom-label-content"),l.text=n,s.render({container:kn(T),model:l,onRendered(){u?.()}})),f.append(S.append(T,function m5t(t){var n=function l5t(t){var{showRequiredMark:n,requiredMark:e,showOptionalMark:i,optionalMark:r}=t;return n||i?String.fromCharCode(160)+(n?e:r):""}(t);return""===n?null:U("<span>").addClass(t.showRequiredMark?"dx-field-item-required-mark":"dx-field-item-optional-mark").text(n)}(a)))}(o)),Te?(he.append(Te),("top"===s||"left"===s)&&he.append(fe),"right"===s&&he.prepend(fe),he.addClass("top"===s?"dx-label-v-align":"dx-label-h-align"),("dxCheckBox"===f.editorType||"dxSwitch"===f.editorType)&&Se.on(Te,Vi,function(){Se.trigger(fe.children(),Vi)})):he.append(fe),L)L.render({container:kn(fe),model:QMe(f,S,i),onRendered(){var hn=function k5t(t){var n,e;return t?.data(KY)||(null==t||null===(n=t.parent)||void 0===n||null===(e=n.call(t))||void 0===e?void 0:e.data(KY))}(XMe(fe));JMe(hn)}});else{var He=U("<div>").appendTo(fe);try{(Re=r(He,f.editorType,S)).setAria("describedby",z),j&&Re.setAria("labelledby",j),Re.setAria("required",R)}catch(on){Di.log("E1035",on.message)}}var Ze=XMe(fe),at=Ze&&Ze.data(KY);if(at){var ct,vt=f.label&&f.label.text,Bt=vt?null:Y,St=vt?f.label.text:Bt&&Oy(Bt);if(T)if(f.validationRules)ct=f.validationRules;else{var Nt=Er(te,St||"");ct=f.isRequired?[{type:"required",message:Nt}]:null}Array.isArray(ct)&&ct.length&&r(Ze,Tk,{validationRules:ct,validationGroup:re,dataGetter:function(){return{formItem:f}}}),JMe(at)}return ie&&T&&fe.parent().append(U("<div>").addClass(ZMe).append(fe).append(U("<div>").addClass("dx-field-item-help-text").attr("id",z).text(ie))),{$fieldEditorContainer:fe,$rootElement:he,widgetInstance:Re}}function XMe(t){var n=t.children().first();return n.hasClass("dx-template-wrapper")?n.children().first():n}function JMe(t){if(t&&io()){var n=".".concat(ZMe),e=i=>{var{element:r,component:o}=i,{isValid:a,validationMessageMode:s}=o.option();U(r).parents(n).toggleClass("dx-invalid",!1===a&&(o._isFocused()||"always"===s))};t.on("optionChanged",i=>{"isValid"===i.name&&e(i)}),t.on("focusIn",e).on("focusOut",e).on("enterKey",e)}}function QMe(t,n,e){return{dataField:t.dataField,editorType:t.editorType,editorOptions:n,component:e,name:t.name}}function eAe(t){var{$parent:n,rootElementCssClassList:e}=t;return U("<div>").addClass("dx-field-empty-item").html("&nbsp;").addClass(e.join(" ")).appendTo(n)}var z5t=tr.inherit({_getDefaultOptions:function(){return se(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",labelMode:"outside",optionalMark:ye.format("dxForm-optionalMark"),requiredMessage:ye.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),se(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var t=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new lMe,this._updateReferencedOptions(t),this._initDataAndItems(t)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(t){this._syncDataWithItems(),this._updateItems(t)},_syncDataWithItems:function(){var t=this.option("layoutData"),n=this.option("items");Z(n)&&n.forEach(e=>{var i;e.dataField&&void 0===this._getDataByField(e.dataField)&&(e.editorOptions&&(i=e.editorOptions.value),(Z(i)||e.dataField in t)&&this._updateFieldValue(e.dataField,i))})},_getDataByField:function(t){return t?this.option("layoutData."+t):null},_isCheckboxUndefinedStateEnabled:function(t){var{allowIndeterminateState:n,editorType:e,dataField:i}=t;if(!0===n&&"dxCheckBox"===e){var r=["layoutData",...i.split(".")],o=r.pop(),a=this.option(r.join("."));return a&&o in a}return!1},_updateFieldValue:function(t,n){var e=this.option("layoutData"),i=n;!Tu.isWrapped(e[t])&&Z(t)?this.option("layoutData."+t,i):Tu.isWritableWrapped(e[t])&&(i=Yt(i)?i():i,e[t](i)),this._triggerOnFieldDataChanged({dataField:t,value:i})},_triggerOnFieldDataChanged:function(t){this._createActionByOption("onFieldDataChanged")(t)},_updateItems:function(t){var n=this,e=this.option("items"),i=Z(e),r=n.option("customizeItem"),o=i?e:this._generateItemsByData(t);if(Z(o)){var a=[];we(o,function(s,l){n._isAcceptableItem(l)&&(l=n._processItem(l),r&&r(l),Jn(l)&&!1!==Tu.unwrap(l.visible)&&a.push(l))}),(!n._itemWatchers.length||!i)&&n._updateItemWatchers(o),this._setItems(a),this._sortItems()}},_cleanItemWatchers:function(){this._itemWatchers.forEach(function(t){t()}),this._itemWatchers=[]},_updateItemWatchers:function(t){var n=this,e=n._getWatch();t.forEach(function(i){Jn(i)&&Z(i.visible)&&Yt(e)&&n._itemWatchers.push(e(function(){return Tu.unwrap(i.visible)},function(){n._updateItems(n.option("layoutData")),n.repaint()},{skipImmediate:!0}))})},_generateItemsByData:function(t){var n=[];return Z(t)&&we(t,function(e){n.push({dataField:e})}),n},_isAcceptableItem:function(t){var e=this._getDataByField(t.dataField||t);return!(Yt(e)&&!Tu.isWrapped(e))},_processItem:function(t){if("string"==typeof t&&(t={dataField:t}),"object"==typeof t&&!t.itemType&&(t.itemType=GY),!Z(t.editorType)&&Z(t.dataField)){var n=this._getDataByField(t.dataField);t.editorType=Z(n)?this._getEditorTypeByDataType(Fa(n)):"dxTextBox"}var e;return"dxCheckBox"===t.editorType&&(t.allowIndeterminateState=null===(e=t.allowIndeterminateState)||void 0===e||e),t},_getEditorTypeByDataType:function(t){switch(t){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){Aw(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort(function(t,n){var e=t.visibleIndex,i=n.visibleIndex;return e>i?1:e<i?-1:0})},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass("dx-layout-manager"),this.callBase(),this._renderResponsiveBox()},_renderResponsiveBox:function(){var t=[];if(this._items&&this._items.length){var n=this._getColCount(),e=U("<div>").appendTo(this.$element());this._prepareItemsWithMerging(n);var i=this._generateLayoutItems();this._responsiveBox=this._createComponent(e,LMe,this._getResponsiveBoxConfig(i,n,t)),Rn()||this._renderTemplates(t)}},_itemStateChangedHandler:function(t){this._refresh()},_renderTemplates:function(t){var n=this,e=0;t.forEach(i=>{var r,{item:o}=i;null!=o&&null!==(r=o.label)&&void 0!==r&&r.template&&e++}),we(t,function(i,r){switch(r.itemType){case"empty":eAe(r);break;case"button":n._renderButtonItem(r);break;default:n._renderFieldItem(r,e)}})},_getResponsiveBoxConfig:function(t,n,e){var i=this,r=i.option("colCountByScreen"),o=r&&r.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),onLayoutChanged:function(){var a=i.option("onLayoutChanged"),s=i.isSingleColumnMode();a&&(i.$element().toggleClass(VMe,s),a(s))},onContentReady:function(a){Rn()&&i._renderTemplates(e),i.option("onLayoutChanged")&&i.$element().toggleClass(VMe,i.isSingleColumnMode(a.component))},itemTemplate:function(a,s,l){if(a.location){var u=U(l),S=i._items[a.location.col+a.location.row*n];if(S){var T=[S.cssClass];u.toggleClass("dx-single-column-item-content",i.isSingleColumnMode(this)),0===a.location.row&&T.push("dx-first-row"),0===a.location.col&&T.push("dx-first-col"),S.itemType===GY&&i.option("isRoot")&&u.addClass(UMe);var R=a.location.col===n-1||a.location.col+a.location.colspan===n,L=i._getRowsCount(),z=a.location.row===L-1;R&&T.push("dx-last-col"),z&&T.push("dx-last-row"),"empty"!==S.itemType&&(T.push(NMe),T.push(i.option("cssItemClass")),Z(S.col)&&T.push("dx-col-"+S.col)),e.push({itemType:S.itemType,item:S,$parent:u,rootElementCssClassList:T})}}},cols:i._generateRatio(n),rows:i._generateRatio(i._getRowsCount(),!0),dataSource:t,screenByWidth:i.option("screenByWidth"),singleColumnScreen:!o&&"xs"}},_getColCount:function(){var t=this.option("colCount"),n=this.option("colCountByScreen");if(n){var e=this.option("form").getTargetScreenFactor();e||(e=Rn()?n5(this.option("screenByWidth")):"lg"),t=n[e]||t}if("auto"===t){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=t=this._getMaxColCount()}return t<1?1:t},_getMaxColCount:function(){if(!Rn())return 1;var t=this.option("minColWidth"),n=wn(this.$element()),e=this._items.length,i=Math.floor(n/t)||1;return e<i?e:i},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(t){var e,i,o,a,n=this._items.slice(0),r=[];for(a=0;a<n.length;a++)if(r.push(e=n[a]),(this.option("alignItemLabels")||e.alignItemLabels||e.colSpan)&&(e.col=this._getColByIndex(r.length-1,t)),e.colSpan>1&&e.col+e.colSpan<=t){for(i=[],o=0;o<e.colSpan-1;o++)i.push({merged:!0});r=r.concat(i)}else delete e.colSpan;this._setItems(r)},_getColByIndex:function(t,n){return t%n},_setItems:function(t){this._items=t,this._cashedColCount=null},_generateLayoutItems:function(){var i,r,t=this._items,n=this._getColCount(),e=[];for(r=0;r<t.length;r++)if(!(i=t[r]).merged){var o={location:{row:parseInt(r/n),col:this._getColByIndex(r,n)}};Z(i.disabled)&&(o.disabled=i.disabled),Z(i.visible)&&(o.visible=i.visible),Z(i.colSpan)&&(o.location.colspan=i.colSpan),Z(i.rowSpan)&&(o.location.rowspan=i.rowSpan),e.push(o)}return e},_renderEmptyItem:function(t){eAe({$container:t})},_renderButtonItem:function(t){var{item:n,$parent:e,rootElementCssClassList:i}=t,{$rootElement:r,buttonInstance:o}=function A5t(t){var{item:n,$parent:e,rootElementCssClassList:i,validationGroup:r,createComponentCallback:o}=t,a=U("<div>").appendTo(e).addClass(i.join(" ")).addClass("dx-field-button-item").css("textAlign",function F5t(t){return Z(t)?t:"right"}(n.horizontalAlignment));return e.css("justifyContent",function P5t(t){switch(t){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}}(n.verticalAlignment)),{$rootElement:a,buttonInstance:o(U("<div>").appendTo(a),"dxButton",se({validationGroup:r},n.buttonOptions))}}({item:n,$parent:e,rootElementCssClassList:i,validationGroup:this.option("validationGroup"),createComponentCallback:this._createComponent.bind(this)});this._itemsRunTimeInfo.add({item:n,widgetInstance:o,guid:n.guid,$itemContainer:r})},_renderFieldItem:function(t,n){var e,i,{item:r,$parent:o,rootElementCssClassList:a}=t,s=this._getDataByField(r.dataField),l=!1;if(void 0===s){var{allowIndeterminateState:u,editorType:f,dataField:S}=r;l=this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:u,editorType:f,dataField:S})}var T=r.dataField||r.name,R=this._getFormOrThis(),{$fieldEditorContainer:L,widgetInstance:z,$rootElement:j}=I5t(function s5t(t){var{$parent:n,rootElementCssClassList:e,formOrLayoutManager:i,createComponentCallback:r,item:o,template:a,labelTemplate:s,name:l,formLabelLocation:u,requiredMessageTemplate:f,validationGroup:S,editorValue:T,canAssignUndefinedValueToEditor:R,editorValidationBoundary:L,editorStylingMode:z,showColonAfterLabel:j,managerLabelLocation:Y,itemId:ie,managerMarkOptions:te,labelMode:re,onLabelTemplateRendered:he}=t,fe=Z(o.isRequired)?o.isRequired:!!function d5t(t){var n;return t&&t.length&&we(t,function(e,i){if("required"===i.type)return n=!0,!1}),n}(o.validationRules),Te=o.itemType===GY,Re=o.helpText?"dx-"+new Ni:null,He=function c5t(t){var{item:n,id:e,isRequired:i,managerMarkOptions:r,showColonAfterLabel:o,labelLocation:a,labelTemplate:s,formLabelMode:l,onLabelTemplateRendered:u}=t,f=a5t.includes(n.editorType),S=se({showColon:o,location:a,id:e,visible:"outside"===l||f&&"hidden"!==l,isRequired:i},n?n.label:{},{markOptions:qMe(r,i),labelTemplate:s,onLabelTemplateRendered:u});return["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor"].includes(n.editorType)&&(S.labelID="dx-label-".concat(new Ni)),!S.text&&n.dataField&&(S.text=Oy(n.dataField)),S.text&&(S.textWithoutColon=S.text,S.text+=S.showColon?":":""),S}({item:o,id:ie,isRequired:fe,managerMarkOptions:te,showColonAfterLabel:j,labelLocation:Y,formLabelMode:re,labelTemplate:s,onLabelTemplateRendered:he}),Ze=He.visible&&(He.text||He.labelTemplate&&Te),{location:at,labelID:vt}=He,Bt="top"!==at&&["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"].includes(o.editorType),St=function u5t(t){var{editorType:n,defaultEditorName:e,editorValue:i,canAssignUndefinedValueToEditor:r,externalEditorOptions:o,editorInputId:a,editorValidationBoundary:s,editorStylingMode:l,formLabelMode:u,labelText:f,labelMark:S}=t,T={};(void 0!==i||r)&&(T.value=i),-1!==o5t.indexOf(n)&&(T.value=T.value||[]);var R=o?.labelMode;Z(R)||(R="outside"===u?"hidden":u);var z=se(!0,T,o,{inputAttr:{id:a},validationBoundary:s,stylingMode:o?.stylingMode||l,label:f,labelMode:R,labelMark:S});return o&&(z.dataSource&&(z.dataSource=o.dataSource),z.items&&(z.items=o.items)),e&&!z.name&&(z.name=e),z}({editorType:o.editorType,editorValue:T,defaultEditorName:o.dataField,canAssignUndefinedValueToEditor:R,externalEditorOptions:o.editorOptions,editorInputId:ie,editorValidationBoundary:L,editorStylingMode:z,formLabelMode:re,labelText:He.textWithoutColon,labelMark:He.markOptions.showRequiredMark?String.fromCharCode(160)+He.markOptions.requiredMark:""});return{$parent:n,rootElementCssClassList:e,formOrLayoutManager:i,createComponentCallback:r,labelOptions:He,labelNeedBaselineAlign:Bt,labelLocation:at,needRenderLabel:Ze,item:o,isSimpleItem:Te,isRequired:fe,template:a,helpID:Re,labelID:vt,name:l,helpText:!He.markOptions.showOptionalMark||He.visible||"hidden"===St.labelMode||Z(o.helpText)?o.helpText:He.markOptions.optionalMark,formLabelLocation:u,requiredMessageTemplate:f,validationGroup:S,editorOptions:St}}({$parent:o,rootElementCssClassList:a,item:r,name:T,editorValue:s,canAssignUndefinedValueToEditor:l,formOrLayoutManager:this._getFormOrThis(),createComponentCallback:this._createComponent.bind(this),formLabelLocation:this.option("labelLocation"),requiredMessageTemplate:this.option("requiredMessage"),validationGroup:this.option("validationGroup"),editorValidationBoundary:this.option("validationBoundary"),editorStylingMode:this.option("form")&&this.option("form").option("stylingMode"),showColonAfterLabel:this.option("showColonAfterLabel"),managerLabelLocation:this.option("labelLocation"),template:r.template?this._getTemplate(r.template):null,labelTemplate:null!==(e=r.label)&&void 0!==e&&e.template?this._getTemplate(r.label.template):null,itemId:this.option("form")&&this.option("form").getItemID(T),managerMarkOptions:this._getMarkOptions(),labelMode:this.option("labelMode"),onLabelTemplateRendered:()=>{this._incTemplateRenderedCallCount(),this._shouldAlignLabelsOnTemplateRendered(R,n)&&R._alignLabels(this,this.isSingleColumnMode(R))}}));null===(i=this.option("onFieldItemRendered"))||void 0===i||i(),z&&r.dataField&&this._bindDataField(z,r.dataField,r.editorType,L),this._itemsRunTimeInfo.add({item:r,widgetInstance:z,guid:r.guid,$itemContainer:j})},_incTemplateRenderedCallCount(){var t;this._labelTemplateRenderedCallCount=(null!==(t=this._labelTemplateRenderedCallCount)&&void 0!==t?t:0)+1},_shouldAlignLabelsOnTemplateRendered(t,n){return t.option("templatesRenderAsynchronously")&&this._labelTemplateRenderedCallCount===n},_getMarkOptions:function(){return{showRequiredMark:this.option("showRequiredMark"),requiredMark:this.option("requiredMark"),showOptionalMark:this.option("showOptionalMark"),optionalMark:this.option("optionalMark")}},_getFormOrThis:function(){return this.option("form")||this},_bindDataField:function(t,n,e,i){var r=this._getFormOrThis();t.on("enterKey",function(o){r._createActionByOption("onEditorEnterKey")(se(o,{dataField:n}))}),this._createWatcher(t,i,n),this.linkEditorToDataField(t,n,e)},_createWatcher:function(t,n,e){var i=this,r=i._getWatch();if(Yt(r)){var o=r(function(){return i._getDataByField(e)},function(){var a=i._getDataByField(e);if("dxTagBox"===t.NAME){var s=t.option("value");if(a!==s&&function(l,u){if(!Array.isArray(l)||!Array.isArray(u)||l.length!==u.length)return!1;for(var f=0;f<l.length;f++)if(l[f]!==u[f])return!1;return!0}(a,s))return}t.option("value",a)},{deep:!0,skipImmediate:!0});Se.on(n,vg,o)}},_getWatch:function(){if(!Z(this._watch)){var t=this.option("form");this._watch=t&&t.option("integrationOptions.watchMethod")}return this._watch},_createComponent:function(t,n,e){var i=this.option("readOnly"),r=this.callBase(t,n,e);return i&&r.option("readOnly",i),this.on("optionChanged",function(o){"readOnly"===o.name&&!Z(e.readOnly)&&r.option(o.name,o.value)}),r},_generateRatio:function(t,n){var i,r,e=[];for(r=0;r<t;r++)i={ratio:1},n&&(i.baseSize="auto"),e.push(i);return e},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(t){var n=this.option("layoutData");Jn(n)&&Object.getOwnPropertyNames(n).forEach(e=>delete this._optionsByReference["layoutData."+e]),Jn(t)&&Object.getOwnPropertyNames(t).forEach(e=>this._optionsByReference["layoutData."+e]=!0)},_resetWidget(t){this._disableEditorValueChangedHandler=!0,t.reset(),this._disableEditorValueChangedHandler=!1,t.option("isValid",!0)},_optionChanged(t){if(0!==t.fullName.search("layoutData."))switch(t.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(t.value),this.option("items")?pa(t.value)||this._itemsRunTimeInfo.each((n,e)=>{if(Z(e.item)){var i=e.item.dataField;if(i&&Z(e.widgetInstance)){var o=Ai(i)(t.value),{allowIndeterminateState:a,editorType:s}=e.item;void 0!==o||this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:a,editorType:s,dataField:i})?e.widgetInstance.option("value",o):this._resetWidget(e.widgetInstance)}}}):(this._initDataAndItems(t.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(t.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"labelMode":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":case"onFieldDataChanged":break;case"width":this.callBase(t),"auto"===this.option("colCount")&&this._resetColCount();break;default:this.callBase(t)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField(t,n){this.on("optionChanged",e=>{e.fullName==="layoutData.".concat(n)&&t._setOptionWithoutOptionChange("value",e.value)}),t.on("valueChanged",e=>{var i=Jn(e.value)||Array.isArray(e.value);!this._disableEditorValueChangedHandler&&(!i||e.value!==e.previousValue)&&this._updateFieldValue(n,e.value)})},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this._eventsStrategy.fireEvent("autoColCountChanged")},updateData:function(t,n){var e=this;Jn(t)?we(t,function(i,r){e._updateFieldValue(i,r)}):"string"==typeof t&&e._updateFieldValue(t,n)},getEditor:function(t){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(t)||this._itemsRunTimeInfo.findWidgetInstanceByName(t)},isSingleColumnMode:function(t){var n=this._responsiveBox||t;if(n)return n.option("currentScreenFactor")===n.option("singleColumnScreen")},getItemsRunTimeInfo:function(){return this._itemsRunTimeInfo}});On("dxLayoutManager",z5t);var $Y="dx-validationsummary",U5t=$Y+"-item",W5t=$Y+"-item-data",tAe=Fc.inherit({_getDefaultOptions(){return se(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference(){this.callBase(),se(this._optionsByReference,{validationGroup:!0})},_init(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration(){var t=this.$element(),n=this.option("validationGroup")||Uo.findGroup(t,this._modelByElement(t)),e=Uo.addGroup(n);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=n,this.groupSubscription=this._groupValidationHandler.bind(this),e.on("validated",this.groupSubscription)},_unsubscribeGroup(){var t=Uo.getGroupConfig(this._validationGroup);t&&t.off("validated",this.groupSubscription)},_getOrderedItems(t,n){var e=[];return we(t,function(i,r){var o=Vs(n,function(a){if(a.validator===r)return!0});o.length&&(e=e.concat(o))}),e},_groupValidationHandler(t){var n=this._getOrderedItems(t.validators,Dr(t.brokenRules,function(e){return{text:e.message,validator:e.validator,index:e.index}}));this.validators=t.validators,we(this.validators,(e,i)=>{if(i._validationSummary!==this){var r=this._itemValidationHandler.bind(this);i.on("validated",r),i.on("disposing",function(){i.off("validated",r),i._validationSummary=null,r=null}),i._validationSummary=this}}),this.option("items",n)},_itemValidationHandler(t){for(var{isValid:n,validator:e,brokenRules:i}=t,r=this.option("items"),o=!1,a=0,s=function(){var u=r[a];if(u.validator===e){var f=Vs(i||[],function(S){return S.index===u.index})[0];if(n||!f)return r.splice(a,1),o=!0,"continue";f.message!==u.text&&(u.text=f.message,o=!0)}a++};a<r.length;)s();we(i,function(u,f){Vs(r,function(T){return T.validator===e&&T.index===f.index})[0]||(r.push({text:f.message,validator:e,index:f.index}),o=!0)}),o&&(r=this._getOrderedItems(this.validators,r),this.option("items",r))},_initMarkup(){this.$element().addClass($Y),this.callBase()},_optionChanged(t){"validationGroup"===t.name?this._initGroupRegistration():this.callBase(t)},_itemClass:()=>U5t,_itemDataKey:()=>W5t,_postprocessRenderItem(t){Se.on(t.itemElement,"click",function(){t.itemData.validator&&t.itemData.validator.focus&&t.itemData.validator.focus()})},_dispose(){this.callBase(),this._unsubscribeGroup()},refreshValidationGroup(){this._initGroupRegistration()}});On("dxValidationSummary",tAe);const nAe=tAe;var iAe="dx-validationgroup";On("dxValidationGroup",class rAe extends Ic{_getDefaultOptions(){return super._getDefaultOptions()}_init(){super._init(),Uo.addGroup(this)}_initMarkup(){var n=this.$element();n.addClass(iAe),n.find(".".concat("dx-validator")).each(function(e,i){Tk.getInstance(U(i))._initGroupRegistration()}),n.find(".".concat("dx-validationsummary")).each(function(e,i){nAe.getInstance(U(i)).refreshValidationGroup()}),super._initMarkup()}validate(){return Uo.validateGroup(this)}reset(){return Uo.resetGroup(this)}_dispose(){Uo.removeGroup(this),this.$element().removeClass(iAe),super._dispose()}_useTemplates(){return!1}});var oAe="dx-state-focused",$5t=["items","isRequired","validationRules","visible"],aAe=tr.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._itemsRunTimeInfo=new lMe,this._groupsColCount=[],this._attachSyncSubscriptions()},_getDefaultOptions:function(){return se(this.callBase(),{formID:"dx-"+new Ni,formData:{},colCount:1,screenByWidth:t5,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,alignRootItemLabels:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:ye.format("dxForm-optionalMark"),requiredMessage:ye.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:no().editorStylingMode,labelMode:"outside"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return io()},options:{showColonAfterLabel:!1,labelLocation:"top"}}])},_setOptionsByReference:function(){this.callBase(),se(this._optionsByReference,{formData:!0,validationGroup:!0})},_getGroupColCount:function(t){return parseInt(t.attr(jMe))},_applyLabelsWidthByCol:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.inOneColumn?NMe:BMe+n,o=e.excludeTabbed?":not(.".concat(WMe,")"):"";_5t(t,".".concat(r).concat(o))},_applyLabelsWidth:function(t,n,e,i,r){i=e?1:i||this._getGroupColCount(t);var a,o={excludeTabbed:n,inOneColumn:e};for(a=0;a<i;a++)this._applyLabelsWidthByCol(t,a,o,r)},_getGroupElementsInColumn:function(t,n,e){var i=Z(e)?"."+GMe+e:"";return t.find("."+BMe+n+" > ."+WY+" > ."+UY+i)},_applyLabelsWidthWithGroups:function(t,n,e,i){if(!0===this.option("alignRootItemLabels"))for(var r=t.find(".".concat(UMe)),o=0;o<n;o++)this._applyLabelsWidthByCol(r,o,e,i);if(this.option("alignItemLabelsInAllGroups"))this._applyLabelsWidthWithNestedGroups(t,n,e,i);else{var l,s=this.$element().find("."+UY);for(l=0;l<s.length;l++)this._applyLabelsWidth(s.eq(l),e,void 0,void 0,i)}},_applyLabelsWidthWithNestedGroups:function(t,n,e,i){var o,a,s,l,r={excludeTabbed:e};for(o=0;o<n;o++)for(l=this._getGroupElementsInColumn(t,o),this._applyLabelsWidthByCol(l,0,r,i),a=0;a<this._groupsColCount.length;a++){l=this._getGroupElementsInColumn(t,o,this._groupsColCount[a]);var u=this._getGroupColCount(l);for(s=1;s<u;s++)this._applyLabelsWidthByCol(l,s,r,i)}},_labelLocation:function(){return this.option("labelLocation")},_alignLabelsInColumn:function(t){var{layoutManager:n,inOneColumn:e,$container:i,excludeTabbed:r,items:o}=t;if(Rn()&&"top"!==this._labelLocation()){var a=qMe(n._getMarkOptions());e?this._applyLabelsWidth(i,r,!0,void 0,a):this._checkGrouping(o)?this._applyLabelsWidthWithGroups(i,n._getColCount(),r,a):this._applyLabelsWidth(i,r,!1,n._getColCount(),a)}},_prepareFormData:function(){Z(this.option("formData"))||this.option("formData",{})},_setStylingModeClass:function(){"underlined"===this.option("stylingMode")&&this.$element().addClass("dx-form-styling-mode-underlined")},_initMarkup:function(){Uo.addGroup(this._getValidationGroup()),this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass("dx-form"),this._setStylingModeClass(),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor(),this._attachResizeObserverSubscription()},_attachResizeObserverSubscription:function(){if(Rn()){var t=this.$element().get(0);Mm.unobserve(t),Mm.observe(t,()=>{this._resizeHandler()})}},_resizeHandler:function(){this._cachedLayoutManagers.length&&we(this._cachedLayoutManagers,(t,n)=>{var e;null===(e=n.option("onLayoutChanged"))||void 0===e||e(n.isSingleColumnMode())})},_getCurrentScreenFactor:function(){return Rn()?n5(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(t,n){this._alignLabelsInColumn({$container:this.$element(),layoutManager:t,excludeTabbed:!0,items:this.option("items"),inOneColumn:n}),qd(this.$element().find(".".concat(Hve)))},_clean:function(){this._clearValidationSummary(),this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0,Mm.unobserve(this.$element().get(0))},_renderScrollable:function(){var t=this.option("useNativeScrolling");this._scrollable=new xd(this.$element(),{useNative:!!t,useSimulatedScrollbar:!t,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?U(this._scrollable.content()):this.$element()},_clearValidationSummary:function(){var t;null===(t=this._$validationSummary)||void 0===t||t.remove(),this._$validationSummary=void 0,this._validationSummary=void 0},_renderValidationSummary:function(){this._clearValidationSummary(),this.option("showValidationSummary")&&(this._$validationSummary=U("<div>").addClass("dx-form-validation-summary").appendTo(this._getContent()),this._validationSummary=this._$validationSummary.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance"))},_prepareItems(t,n,e,i){if(t){for(var r=[],o=0;o<t.length;o++){var a=t[o],s=OMe(e,HY(o,i)),l={item:a,itemIndex:o,path:s},u=this._itemsRunTimeInfo.add(l);if(Pn(a)&&(a={dataField:a}),Jn(a)){var f=mt({},a);l.preparedItem=f,f.guid=u,this._tryPrepareGroupItem(f),this._tryPrepareTabbedItem(f,s),this._tryPrepareItemTemplate(f),n&&(f.cssItemClass=WMe),f.items&&(f.items=this._prepareItems(f.items,n,s)),r.push(f)}else r.push(a)}return r}},_tryPrepareGroupItem:function(t){"group"===t.itemType&&(t.alignItemLabels=gr(t.alignItemLabels,!0),t._prepareGroupItemTemplate=n=>{t.template&&(t.groupContentTemplate=this._getTemplate(n)),t.template=this._itemGroupTemplate.bind(this,t)},t._prepareGroupItemTemplate(t.template))},_tryPrepareTabbedItem:function(t,n){"tabbed"===t.itemType&&(t.template=this._itemTabbedTemplate.bind(this,t),t.tabs=this._prepareItems(t.tabs,!0,n,!0))},_tryPrepareItemTemplate:function(t){t.template&&(t.template=this._getTemplate(t.template))},_checkGrouping:function(t){if(t)for(var n=0;n<t.length;n++)if("group"===t[n].itemType)return!0},_renderLayout:function(){var t=this,n=t.option("items"),e=t._getContent();n=t._prepareItems(n),t._rootLayoutManager=t._renderLayoutManager(e,this._createLayoutManagerOptions(n,{isRoot:!0,colCount:t.option("colCount"),alignItemLabels:t.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(i){t._alignLabels.bind(t)(t._rootLayoutManager,i)},onContentReady:function(i){t._alignLabels(i.component,i.component.isSingleColumnMode())}}))},_tryGetItemsForTemplate:function(t){return t.items||[]},_itemTabbedTemplate:function(t,n,e){var i=U("<div>").appendTo(e),r=se({},t.tabPanelOptions,{dataSource:t.tabs,onItemRendered:s=>{var l,u;null===(l=t.tabPanelOptions)||void 0===l||null===(u=l.onItemRendered)||void 0===u||u.call(l,s),M2(s.itemElement)},itemTemplate:(s,l,u)=>{var f=U(u),S=gr(s.alignItemLabels,!0),T=this._renderLayoutManager(f,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(s),{colCount:s.colCount,alignItemLabels:S,screenByWidth:this.option("screenByWidth"),colCountByScreen:s.colCountByScreen,cssItemClass:s.cssItemClass,onLayoutChanged:R=>{this._alignLabelsInColumn({$container:f,layoutManager:T,items:s.items,inOneColumn:R})}}));this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(s.guid,{layoutManager:T}),S&&this._alignLabelsInColumn({$container:f,layoutManager:T,items:s.items,inOneColumn:T.isSingleColumnMode()})}}),o=(s,l)=>{Array.isArray(s)&&s.forEach(u=>this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(u.guid,{widgetInstance:l}))},a=this._createComponent(i,VY,r);U(e).parent().addClass("dx-field-item-has-tabs"),a.on("optionChanged",s=>{"dataSource"===s.fullName&&o(s.value,s.component)}),o([{guid:t.guid},...t.tabs],a)},_itemGroupTemplate:function(t,n,e){var r,o,i=U("<div>").toggleClass("dx-form-group-with-caption",Z(t.caption)&&t.caption.length).addClass(UY).appendTo(e);U(e).parent().addClass("dx-field-item-has-group"),t.caption&&U("<span>").addClass("dx-form-group-caption").text(t.caption).appendTo(i);var a=U("<div>").addClass("dx-form-group-content").appendTo(i);t.groupContentTemplate?(t._renderGroupContentTemplate=()=>{a.empty();var s={formData:this.option("formData"),component:this};t.groupContentTemplate.render({model:s,container:kn(a)})},t._renderGroupContentTemplate()):(o=this._renderLayoutManager(a,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(t),{colCount:t.colCount,colCountByScreen:t.colCountByScreen,alignItemLabels:t.alignItemLabels,cssItemClass:t.cssItemClass})),this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(t.guid,{layoutManager:o}),r=o._getColCount(),this._groupsColCount.includes(r)||this._groupsColCount.push(r),i.addClass(GMe+r),i.attr(jMe,r))},_createLayoutManagerOptions:function(t,n){return function Pzt(t){var{form:n,$formElement:e,formOptions:i,items:r,validationGroup:o,extendedLayoutManagerOptions:a,onFieldDataChanged:s,onContentReady:l,onDisposing:u,onFieldItemRendered:f}=t;return se({form:n,items:r,$formElement:e,validationGroup:o,onFieldDataChanged:s,onContentReady:l,onDisposing:u,onFieldItemRendered:f,validationBoundary:i.scrollingEnabled?e:void 0,scrollingEnabled:i.scrollingEnabled,showRequiredMark:i.showRequiredMark,showOptionalMark:i.showOptionalMark,requiredMark:i.requiredMark,optionalMark:i.optionalMark,requiredMessage:i.requiredMessage,screenByWidth:i.screenByWidth,layoutData:i.formData,labelLocation:i.labelLocation,customizeItem:i.customizeItem,minColWidth:i.minColWidth,showColonAfterLabel:i.showColonAfterLabel,onEditorEnterKey:i.onEditorEnterKey,labelMode:i.labelMode},{isRoot:a.isRoot,colCount:a.colCount,alignItemLabels:a.alignItemLabels,cssItemClass:a.cssItemClass,colCountByScreen:a.colCountByScreen,onLayoutChanged:a.onLayoutChanged,width:a.width})}({form:this,formOptions:this.option(),$formElement:this.$element(),items:t,validationGroup:this._getValidationGroup(),extendedLayoutManagerOptions:n,onFieldDataChanged:e=>{this._isDataUpdating||this._triggerOnFieldDataChanged(e)},onContentReady:e=>{this._itemsRunTimeInfo.addItemsOrExtendFrom(e.component._itemsRunTimeInfo),n.onContentReady&&n.onContentReady(e)},onDisposing:e=>{var{component:i}=e,r=i.getItemsRunTimeInfo();this._itemsRunTimeInfo.removeItemsByItems(r)},onFieldItemRendered:()=>{var e;null===(e=this._validationSummary)||void 0===e||e.refreshValidationGroup()}})},_renderLayoutManager:function(t,n){this._cachedColCountOptions.push({colCountByScreen:se({lg:n.colCount,md:n.colCount,sm:n.colCount,xs:1},n.colCountByScreen)});var i=U("<div>");i.appendTo(t);var r=this._createComponent(i,"dxLayoutManager",n);return r.on("autoColCountChanged",()=>{this._clearAutoColCountChangedTimeout(),this.autoColCountChangedTimeoutId=setTimeout(()=>!this._disposed&&this._refresh(),0)}),this._cachedLayoutManagers.push(r),r},_getValidationGroup:function(){return this.option("validationGroup")||this},_createComponent:function(t,n,e){return this._extendConfig(e=e||{},{readOnly:this.option("readOnly")}),this.callBase(t,n,e)},_attachSyncSubscriptions:function(){var t=this;t.on("optionChanged",function(n){var e=n.fullName;"formData"===e&&(Z(n.value)||t._options.silent("formData",n.value={}),t._triggerOnFieldDataChangedByDataSet(n.value)),t._cachedLayoutManagers.length&&we(t._cachedLayoutManagers,function(i,r){"formData"===e&&(t._isDataUpdating=!0,r.option("layoutData",n.value),t._isDataUpdating=!1),("readOnly"===n.name||"disabled"===n.name)&&r.option(e,n.value)})})},_optionChanged:function(t){var n=t.fullName.split(".");n.length>1&&-1!==n[0].search("items")&&this._itemsOptionChangedHandler(t)||n.length>1&&-1!==n[0].search("formData")&&this._formDataOptionChangedHandler(t)||this._defaultOptionChangedHandler(t)},_defaultOptionChangedHandler:function(t){switch(t.name){case"formData":this.option("items")?pa(t.value)&&this._resetValues():this._invalidate();break;case"onFieldDataChanged":case"alignRootItemLabels":case"readOnly":break;case"items":case"colCount":case"onEditorEnterKey":case"labelLocation":case"labelMode":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"width":this.callBase(t),this._rootLayoutManager.option(t.name,t.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"validationGroup":Uo.removeGroup(t.previousValue||this),this._invalidate();break;default:this.callBase(t)}},_itemsOptionChangedHandler:function(t){var n=t.fullName.split("."),e=t.value,i=this._getItemPath(n),r=this.option(i),o=t.fullName.replace(i+".",""),a=o.split(".")[0].replace(/\[\d+]/,""),s=this._tryCreateItemOptionAction(a,r,r[a],t.previousValue,i),l=this._tryExecuteItemOptionAction(s)||this._tryChangeLayoutManagerItemOption(t.fullName,e);if(!l&&r){this._changeItemOption(r,o,e);var u=this._generateItemsFromData(this.option("items"));this.option("items",u),l=!0}return l},_formDataOptionChangedHandler:function(t){var n=t.fullName.split("."),e=t.value,i=n.slice(1).join("."),r=this.getEditor(i);return r?r.option("value",e):this._triggerOnFieldDataChanged({dataField:i,value:e}),!0},_tryCreateItemOptionAction:function(t,n,e,i,r){return"tabs"===t&&(this._itemsRunTimeInfo.removeItemsByPathStartWith("".concat(r,".tabs")),e=this._prepareItems(e,!0,r,!0)),((t,n)=>{switch(t){case"editorOptions":case"buttonOptions":return new Rzt(n);case"validationRules":return new Vzt(n);case"cssClass":return new Hzt(n);case"badge":case"disabled":case"icon":case"tabTemplate":case"title":return new MMe(se(n,{optionName:t}));case"tabs":return new Nzt(n);case"template":var e,i,r,o=null!==(e=null==n||null===(i=n.item)||void 0===i?void 0:i.itemType)&&void 0!==e?e:null===(r=n.itemsRunTimeInfo.findPreparedItemByItem(n?.item))||void 0===r?void 0:r.itemType;return"simple"===o?new Lzt(n):"group"===o?new Bzt(n):new MMe(se(n,{optionName:t}));default:return null}})(t,{item:n,value:e,previousValue:i,itemsRunTimeInfo:this._itemsRunTimeInfo})},_tryExecuteItemOptionAction:function(t){return t&&t.tryExecute()},_updateValidationGroupAndSummaryIfNeeded:function(t){var e,n=TMe(t);$5t.indexOf(n)>-1&&(Uo.addGroup(this._getValidationGroup()),this.option("showValidationSummary"))&&(null===(e=this._validationSummary)||void 0===e||e.refreshValidationGroup())},_setLayoutManagerItemOption(t,n,e,i){if(this._updateLockCount>0){!t._updateLockCount&&t.beginUpdate();var r=this._itemsRunTimeInfo.findKeyByPath(i);this.postponedOperations.add(r,()=>(!t._disposed&&t.endUpdate(),(new et).resolve()))}var o=a=>{if(a.component.off("contentReady",o),IMe(i)){var s=(t=>{for(var n=t.split("."),e=[...n],i=n.length-1;i>=0;i--){if(IMe(n[i]))return e.join(".");e.splice(i,1)}return""})(i),l=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(s);l&&this._alignLabelsInColumn({items:l.option("items"),layoutManager:l,$container:l.$element(),inOneColumn:l.isSingleColumnMode()})}else this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())};t.on("contentReady",o),t.option(n,e),this._updateValidationGroupAndSummaryIfNeeded(n)},_tryChangeLayoutManagerItemOption(t,n){var e=t.split("."),i=TMe(t);if("items"===i&&e.length>1){var r=this._getItemPath(e),o=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(r);if(o){this._itemsRunTimeInfo.removeItemsByItems(o.getItemsRunTimeInfo());var a=this._prepareItems(n,!1,r);return this._setLayoutManagerItemOption(o,i,a,r),!0}}else if(e.length>2){var s=e.length-2,l=this._getItemPath(e.slice(0,s)),u=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(l);if(u){var f=Ok(e[s],i);if("editorType"===i&&u.option(f)!==n)return!1;if("visible"===i){var S=this.option(Ok(l,"items"));if(S&&S.length){var T=u.option("items");S.forEach((R,L)=>{T[L].visibleIndex=R.visibleIndex})}}return this._setLayoutManagerItemOption(u,f,n,l),!0}}return!1},_tryChangeLayoutManagerItemOptions(t,n){var e;return this.beginUpdate(),we(n,(i,r)=>{if(!(e=this._tryChangeLayoutManagerItemOption(Ok(t,i),r)))return!1}),this.endUpdate(),e},_getItemPath:function(t){var e,n=t[0];for(e=1;e<t.length&&-1!==t[e].search(/items\[\d+]|tabs\[\d+]/);e++)n+="."+t[e];return n},_triggerOnFieldDataChanged:function(t){this._createActionByOption("onFieldDataChanged")(t)},_triggerOnFieldDataChangedByDataSet:function(t){var n=this;t&&Jn(t)&&we(t,function(e,i){n._triggerOnFieldDataChanged({dataField:e,value:i})})},_updateFieldValue:function(t,n){if(Z(this.option("formData"))){var e=this.getEditor(t);this.option("formData."+t,n),e&&e.option("value")!==n&&e.option("value",n)}},_generateItemsFromData:function(t){var n=this.option("formData"),e=[];return!t&&Z(n)&&we(n,function(i){e.push({dataField:i})}),t&&we(t,function(i,r){Jn(r)?e.push(r):e.push({dataField:r})}),e},_getItemByField:function(t,n){var a,e=this,i=Jn(t)?t:e._getFieldParts(t),r=i.fieldName,o=i.fieldPath;return n.length&&we(n,function(s,l){var u=l.itemType;if(o.length){var f=o.slice();l=e._getItemByFieldPath(f,r,l)}else if("group"===u&&!l.caption&&!l.name||"tabbed"===u&&!l.name){var S=e._getSubItemField(u);l.items=e._generateItemsFromData(l.items),l=e._getItemByField({fieldName:r,fieldPath:o},l[S])}if(((t,n)=>!!t&&(t.dataField===n||t.name===n||zY(t.title)===n||"group"===t.itemType&&zY(t.caption)===n))(l,r))return a=l,!1}),a},_getFieldParts:function(t){for(var n=t,e=n.indexOf("."),i=[];-1!==e;)i.push(n.substr(0,e)),e=(n=n.substr(e+1)).indexOf(".");return{fieldName:n,fieldPath:i.reverse()}},_getItemByFieldPath:function(t,n,e){var a,i=e.itemType,r=this._getSubItemField(i),o="group"===i||"tabbed"===i||e.title;do{if(!o)break;var s=e.name||e.caption||e.title,l=Z(s),u=zY(s),f=void 0;if(e[r]=this._generateItemsFromData(e[r]),l&&(f=t.pop()),!t.length&&(a=this._getItemByField(n,e[r])))break;(!l||l&&u===f)&&t.length&&(a=this._searchItemInEverySubItem(t,n,e[r]))}while(t.length&&!Z(a));return a},_getSubItemField:function(t){return"tabbed"===t?"tabs":"items"},_searchItemInEverySubItem:function(t,n,e){var r,i=this;return we(e,function(o,a){if(r=i._getItemByFieldPath(t.slice(),n,a))return!1}),r||(r=!1),r},_changeItemOption:function(t,n,e){Jn(t)&&(t[n]=e)},_dimensionChanged:function(){var t=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==t&&(this._isColCountChanged(this._lastMarkupScreenFactor,t)&&(this._targetScreenFactor=t,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=t)},_isColCountChanged:function(t,n){var e=!1;return we(this._cachedColCountOptions,function(i,r){if(r.colCountByScreen[t]!==r.colCountByScreen[n])return e=!0,!1}),e},_refresh:function(){var t="."+oAe+" input, ."+oAe+" textarea";Se.trigger(this.$element().find(t),"change"),this.callBase()},_resetValues:function(){this._itemsRunTimeInfo.each(function(t,n){Z(n.widgetInstance)&&Ru.isEditor(n.widgetInstance)&&(n.widgetInstance.reset(),n.widgetInstance.option("isValid",!0))}),Uo.resetGroup(this._getValidationGroup())},_updateData:function(t,n,e){var i=this,r=e?n:t;Jn(r)?we(r,function(o,a){i._updateData(e?t+"."+o:o,a,Jn(a))}):Pn(t)&&i._updateFieldValue(t,n)},registerKeyHandler:function(t,n){this.callBase(t,n),this._itemsRunTimeInfo.each(function(e,i){Z(i.widgetInstance)&&i.widgetInstance.registerKeyHandler(t,n)})},_focusTarget:function(){return this.$element().find("."+WY+" [tabindex]").first()},_visibilityChanged:function(){this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())},_clearAutoColCountChangedTimeout:function(){this.autoColCountChangedTimeoutId&&(clearTimeout(this.autoColCountChangedTimeoutId),this.autoColCountChangedTimeoutId=void 0)},_dispose:function(){this._clearAutoColCountChangedTimeout(),Uo.removeGroup(this._getValidationGroup()),this.callBase()},resetValues:function(){this._resetValues()},updateData:function(t,n){this._updateData(t,n)},getEditor:function(t){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(t)||this._itemsRunTimeInfo.findWidgetInstanceByName(t)},getButton:function(t){return this._itemsRunTimeInfo.findWidgetInstanceByName(t)},updateDimensions:function(){var t=this,n=new et;return t._scrollable?t._scrollable.update().done(function(){n.resolveWith(t)}):n.resolveWith(t),n.promise()},itemOption:function(t,n,e){var i=this._generateItemsFromData(this.option("items")),r=this._getItemByField(t,i),o=kMe(i,r);if(r)switch(arguments.length){case 1:return r;case 3:var a=this._tryCreateItemOptionAction(n,r,e,r[n],o);this._changeItemOption(r,n,e);var s=Ok(o,n);!this._tryExecuteItemOptionAction(a)&&!this._tryChangeLayoutManagerItemOption(s,e)&&this.option("items",i);break;default:var l;Jn(n)&&!this._tryChangeLayoutManagerItemOptions(o,n)&&(we(n,(u,f)=>{var S=this._tryCreateItemOptionAction(u,r,f,r[u],o);this._changeItemOption(r,u,f),!l&&!this._tryExecuteItemOptionAction(S)&&(l=!0)}),l&&this.option("items",i))}},validate:function(){return Uo.validateGroup(this._getValidationGroup())},getItemID:function(t){return"dx_"+this.option("formID")+"_"+(t||new Ni)},getTargetScreenFactor:function(){return this._targetScreenFactor}});On("dxForm",aAe);const vv=aAe;var sAe="edit-form-item",Y5t="edit-popup",X5t=xd.IS_RENOVATED_WIDGET?"dx-scrollable":"dx-scrollable-container",lAe=(t,n)=>{t.forEach(e=>{e.items||e.tabs?lAe(e.items||e.tabs,n):n(e)})},uAe={extenders:{controllers:{editing:{init:function(){this._editForm=null,this._updateEditFormDeferred=null,this.callBase.apply(this,arguments)},isFormOrPopupEditMode:function(){return this.isPopupEditMode()||this.isFormEditMode()},isPopupEditMode:function(){return this.option("editing.mode")===PY},isFormEditMode:function(){return this.option("editing.mode")===p9},getFirstEditableColumnIndex:function(){var t=this._firstFormItem;if(this.isFormEditMode()&&t){var n=this.option(Lp),e=this._dataController.getRowIndexByKey(n),i=this._rowsView.getCellElements(e);return this._rowsView._getEditFormEditorVisibleIndex(i,t.column)}return this.callBase.apply(this,arguments)},getEditFormRowIndex:function(){return this.isFormOrPopupEditMode()?this._getVisibleEditRowIndex():this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var t=this.callBase.apply(this,arguments),n=this.option("editing");return this.isFormOrPopupEditMode()&&n.allowUpdating||t},_handleDataChanged:function(t){if(this.isPopupEditMode()){var n,e,i=this.option("editing.editRowKey"),r=null==t||null===(n=t.items)||void 0===n?void 0:n.some(a=>Tr(a.key,i)),o=(null===(e=t.changeTypes)||void 0===e?void 0:e.length)&&t.changeTypes.every(a=>"insert"===a);("refresh"===t.changeType||r&&t.isOptionChanged)&&!o&&this._repaintEditPopup()}this.callBase.apply(this,arguments)},getPopupContent:function(){var t,n=null===(t=this._editPopup)||void 0===t?void 0:t.option("visible");if(this.isPopupEditMode()&&n)return this._$popupContent},_showAddedRow:function(t){this.isPopupEditMode()?this._showEditPopup(t):this.callBase.apply(this,arguments)},_cancelEditDataCore:function(){this.callBase.apply(this,arguments),this.isPopupEditMode()&&this._hideEditPopup()},_updateEditRowCore:function(t,n,e){var i=this._editForm;if(this.isPopupEditMode())if(this.option("repaintChangesOnly")){var r;null===(r=t.update)||void 0===r||r.call(t,t),this._rowsView.renderDelayedTemplates()}else i&&(this._updateEditFormDeferred=(new et).done(()=>i.repaint()),this._updateLockCount||this._updateEditFormDeferred.resolve());else this.callBase.apply(this,arguments)},_showEditPopup:function(t,n){var e="desktop"!==pn.current().deviceType,i=se({showTitle:!1,fullScreen:e,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getCancelButtonConfig()}],contentTemplate:this._getPopupEditFormTemplate(t)},this.option(h9));if(!this._editPopup){var r=U("<div>").appendTo(this.component.$element()).addClass(this.addWidgetPrefix(Y5t));this._editPopup=this._createComponent(r,Ss,{copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0}),this._editPopup.on("hiding",this._getEditPopupHiddenHandler()),this._editPopup.on("shown",o=>{var a;Se.trigger(o.component.$content().find(Yke).not(".".concat(X5t)).first(),"focus"),n&&(null===(a=this._editForm)||void 0===a||a.repaint())})}this._editPopup.option(i),this._editPopup.show(),this.callBase.apply(this,arguments)},_getPopupEditFormTemplate:function(t){var n=this.component.getVisibleRows()[t],e={row:n,values:n.values,rowType:n.rowType,key:n.key,rowIndex:t};return this._rowsView._addWatchMethod(e,n),i=>{var r=this.getEditFormTemplate(),o=this._createComponent(U("<div>").appendTo(i),xd);this._$popupContent=U(o.content()),r(this._$popupContent,e,{isPopupForm:!0}),this._rowsView.renderDelayedTemplates()}},_repaintEditPopup:function(){var t=this._getVisibleEditRowIndex();if(t>=0){var n,e,i=null===(n=this._editPopup)||void 0===n?void 0:n.option("animation");null===(e=this._editPopup)||void 0===e||e.option("animation",null),this._showEditPopup(t,!0),void 0!==i&&this._editPopup.option("animation",i)}},_hideEditPopup:function(){var t;null===(t=this._editPopup)||void 0===t||t.option("visible",!1)},optionChanged:function(t){if("editing"===t.name&&this.isFormOrPopupEditMode()){var n=t.fullName;0===n.indexOf(AY)?(this._handleFormOptionChange(t),t.handled=!0):0===n.indexOf(h9)&&(this._handlePopupOptionChange(t),t.handled=!0)}this.callBase.apply(this,arguments)},_handleFormOptionChange:function(t){var n;if(this.isFormEditMode()){var e=this._getVisibleEditRowIndex();e>=0&&this._dataController.updateItems({changeType:"update",rowIndices:[e]})}else null!==(n=this._editPopup)&&void 0!==n&&n.option("visible")&&0===t.fullName.indexOf(AY)&&this._repaintEditPopup()},_handlePopupOptionChange:function(t){var n=this._editPopup;if(n){var e=t.fullName.slice(h9.length+1);e?n.option(e,t.value):n.option(t.value)}},renderFormEditTemplate:function(t,n,e,i,r){var o=this,a=U(i),s=n.column,l=(t=>{var n;return t.isCustomEditorType?t.editorType:null===(n=t.column.formItem)||void 0===n?void 0:n.editorType})(n),u=t?.row.data,f=e.component,{label:S,labelMark:T,labelMode:R}=e.editorOptions||{},L=se({},t,{data:u,cellElement:null,isOnForm:!0,item:n,id:f.getItemID(n.name||n.dataField),column:se({},s,{editorType:l,editorOptions:se({label:S,labelMark:T,labelMode:R},s.editorOptions,n.editorOptions)}),columnIndex:s.index,setValue:!r&&s.allowEditing&&function(j,Y){o.updateFieldValue(L,j,Y)}});L.value=s.calculateCellValue(u);var z=this._getFormEditItemTemplate.bind(this)(L,s);return this._rowsView.renderTemplate(a,z,L,!!k2(a)).done(()=>{this._rowsView._updateCell(a,L)}),L},getFormEditorTemplate:function(t,n){var e=this.component.columnOption(n.dataField);return(i,r)=>{var o,a,s=U(r);null===(o=(a=t.row).watch)||void 0===o||o.call(a,function(){return e.selector(t.row.data)},()=>{var l,u=s.find(".dx-widget").first(),f=u.data("dxValidator"),S=null===(l=f)||void 0===l?void 0:l.option();s.contents().remove(),t=this.renderFormEditTemplate.bind(this)(t,n,i,s),f=(u=s.find(".dx-widget").first()).data("dxValidator"),S&&!f&&u.dxValidator({validationRules:S.validationRules,validationGroup:S.validationGroup,dataGetter:S.dataGetter})}),t=this.renderFormEditTemplate.bind(this)(t,n,i,s)}},getEditFormOptions:function(t){var n,e=null===(n=this._getValidationGroupsInForm)||void 0===n?void 0:n.call(this,t),i=this.option("editing.form.customizeItem"),r=this.addWidgetPrefix(sAe),o=this.option("editing.form.items"),a={};if(o)lAe(o,l=>{var u=l?.name||l?.dataField;u&&(a[u]=!!l.editorType)});else{var s=this.getController("columns").getColumns();o=[],we(s,function(l,u){!u.isBand&&!u.type&&o.push({column:u,name:u.name,dataField:u.dataField})})}return se({},e,{items:o,formID:"dx-"+new Ni,customizeItem:l=>{var u,f=l.name||l.dataField;if((l.column||f)&&(u=l.column||this._columnsController.columnOption(l.name?"name:"+l.name:"dataField:"+l.dataField)),u){if(l.label=l.label||{},l.label.text=l.label.text||u.caption,"boolean"===u.dataType&&void 0===l.label.visible){var S=this.option("editing.form.labelMode");("floating"===S||"static"===S)&&(l.label.visible=!0)}l.template=l.template||this.getFormEditorTemplate(t,l),l.column=u,l.isCustomEditorType=a[f],u.formItem&&se(l,u.formItem),void 0===l.isRequired&&u.validationRules&&(l.isRequired=u.validationRules.some(function(R){return"required"===R.type}),l.validationRules=[]);var T=!Z(l.visible)||l.visible;!this._firstFormItem&&T&&(this._firstFormItem=l)}i?.call(this,l),l.cssClass=Pn(l.cssClass)?l.cssClass+" "+r:r}})},getEditFormTemplate:function(){return(t,n,e)=>{var i=this.option(AY),r=this.getEditFormOptions(n),o=U("<div>").appendTo(t),a=e?.isPopupForm;if(this._firstFormItem=void 0,a&&o.addClass(this.addWidgetPrefix("edit-popup-form")),this._editForm=this._createComponent(o,vv,se({},i,r)),!a){var s=U("<div>").addClass(this.addWidgetPrefix("form-buttons-container")).appendTo(t);this._createComponent(U("<div>").appendTo(s),To,this._getSaveButtonConfig()),this._createComponent(U("<div>").appendTo(s),To,this._getCancelButtonConfig())}this._editForm.on("contentReady",()=>{var l;this._rowsView.renderDelayedTemplates(),null===(l=this._editPopup)||void 0===l||l.repaint()})}},getEditForm:function(){return this._editForm},_endUpdateCore:function(){var t;null===(t=this._updateEditFormDeferred)||void 0===t||t.resolve()},_beforeEndSaving:function(){var t;this.callBase.apply(this,arguments),this.isPopupEditMode()&&(null===(t=this._editPopup)||void 0===t||t.hide())},_processDataItemCore:function(t,n){var{type:e}=n;this.isPopupEditMode()&&e===df&&(t.visible=!1),this.callBase.apply(this,arguments)},_editRowFromOptionChangedCore:function(t,n){var e=this.isPopupEditMode();this.callBase(t,n,e),e&&this._showEditPopup(n)}},data:{_updateEditItem:function(t){this._editingController.isFormEditMode()&&(t.rowType="detail")},_getChangedColumnIndices:function(t,n,e,i){if(!1!==i||!n.isEditing||!this._editingController.isFormEditMode())return this.callBase.apply(this,arguments)}}},views:{rowsView:{_renderCellContent:function(t,n){"data"===n.rowType&&this._editingController.isPopupEditMode()&&!1===n.row.visible||this.callBase.apply(this,arguments)},getCellElements:function(t){var n=this.callBase(t),e=this._editingController,i=e.getEditForm();return e.getEditFormRowIndex()===t&&n&&i?i.$element().find("."+this.addWidgetPrefix(sAe)+", .dx-button"):n},_getVisibleColumnIndex:function(t,n,e){var i=this._editingController.getEditFormRowIndex();if(i===n&&Pn(e)){var r=this._columnsController.columnOption(e);return this._getEditFormEditorVisibleIndex(t,r)}return this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(t,n){var e=-1;return we(t,function(i,r){var o=U(r).find(".dx-field-item-content").data("dx-form-item");if(null!=o&&o.column&&n&&o.column.index===n.index)return e=i,!1}),e},_isFormItem:function(t){var n="detail"===t.rowType||"detailAdaptive"===t.rowType,e="data"===t.rowType&&this._editingController.isPopupEditMode();return(n||e)&&t.item},_updateCell:function(t,n){this._isFormItem(n)?this._formItemPrepared(n,t):this.callBase(t,n)}}}}};oi.registerModule("editingFormBased",uAe);var tUt="focus-overlay",nUt="addrow-button",iUt="dx-dropdowneditor-overlay",rUt="dx-editor-cell",sUt="dx-data-row",lUt="dx-row-removed",uUt="editing.editRowKey",dAe="editing.editColumnName";const cAe={extenders:{controllers:{editing:{init:function(){var n,e,t=!this._saveEditorHandler;this.callBase.apply(this,arguments),t&&(this._pointerUpEditorHandler=()=>{var i;e=null===(i=this.getController("columnsResizer"))||void 0===i?void 0:i.isResizing()},this._pointerDownEditorHandler=i=>n=U(i.target),this._saveEditorHandler=this.createAction(function(i){var r=i.event,o=U(r.target),a=r[$ke],s=this.component;if((!n||!n.is("input")||n.is(o))&&this.isCellOrBatchEditMode()&&!this._editCellInProgress){var u=l(o)||l(a?.$element()),f=a&&!a._disposed&&a!==this.component,S=!!o.closest(".".concat(this.addWidgetPrefix(nUt))).length,T=o.hasClass(this.addWidgetPrefix(tUt)),R=this.isCellEditMode();!e&&!u&&!T&&!(S&&R&&this.isEditing())&&(k2(o)||f)&&this._closeEditItem.bind(this)(o)}function l(L){if(!L)return!1;var z=L.closest(".".concat(iUt)),j=s.$element();return z.length>0&&0===j.closest(z).length}}),Se.on(It.getDocument(),qn.up,this._pointerUpEditorHandler),Se.on(It.getDocument(),qn.down,this._pointerDownEditorHandler),Se.on(It.getDocument(),Vi,this._saveEditorHandler))},isCellEditMode:function(){return"cell"===this.option("editing.mode")},isBatchEditMode:function(){return this.option("editing.mode")===FY},isCellOrBatchEditMode:function(){return this.isCellEditMode()||this.isBatchEditMode()},_needToCloseEditableCell:function(t){var n=this.component.$element(),e=this.isEditing(),i=!n||!!t.closest(n).length;if(i){var r=t.closest("."+sUt).length;if(r){var o=this.getView("rowsView"),a=t.closest(".dx-row> td"),s=o.getRowIndex(a.parent()),l=o.getCellElements(s).index(a),u=this._columnsController.getVisibleColumns(),f=u[l]&&u[l].allowEditing;e=e&&!f&&!this.isEditCell(s,l)}}return e||this.callBase.apply(this,arguments)},_closeEditItem:function(t){this._needToCloseEditableCell(t)&&this.closeEditCell()},_focusEditorIfNeed:function(){if(this._needFocusEditor&&this.isCellOrBatchEditMode()){var t,n=this._getVisibleEditColumnIndex(),e=null===(t=this._rowsView)||void 0===t?void 0:t._getCellElement(this._getVisibleEditRowIndex(),n);e&&!e.find(":focus").length?this._focusEditingCell(()=>{this._editCellInProgress=!1},e,!0):this._editCellInProgress=!1,this._needFocusEditor=!1}else this.callBase.apply(this,arguments)},isEditing:function(){if(this.isCellOrBatchEditMode()){var t=Z(this.option(uUt)),n=Z(this.option(dAe));return t&&n}return this.callBase.apply(this,arguments)},_handleEditColumnNameChange:function(t){var n=this._getVisibleEditRowIndex(t.previousValue);if(this.isCellOrBatchEditMode()&&-1!==n&&Z(t.value)&&t.value!==t.previousValue){var e=this._columnsController.getVisibleColumnIndex(t.value),i=this._columnsController.getVisibleColumnIndex(t.previousValue);this._editCellFromOptionChanged(e,i,n)}},_addRow:function(t,n){if(this.isCellEditMode()&&this.hasChanges()){var e=new et;return this.saveEditData().done(()=>{this.hasChanges()?e.reject("cancel"):this.addRow(t).done(e.resolve).fail(e.reject)}),e.promise()}return this.callBase.apply(this,arguments)},editCell:function(t,n){return this._editCell({rowIndex:t,columnIndex:n})},_editCell:function(t){var e,n=new et;return this.executeOperation(n,()=>{Qt(e=this._editCellCore(t)).done(n.resolve).fail(n.reject)}),void 0!==e?e:n.promise()},_editCellCore:function(t){var n=this._dataController,e=Z(t.oldColumnIndex)||Z(t.oldRowIndex),{columnIndex:i,rowIndex:r,column:o,item:a}=this._getNormalizedEditCellOptions(t),s={data:a?.data,cancel:!1,column:o};if(void 0!==a.key){if(o&&("data"===a.rowType||"detailAdaptive"===a.rowType)&&!a.removed&&this.isCellOrBatchEditMode()){if(!e&&this.isEditCell(r,i))return!0;var l=r+n.getRowIndexOffset();return Qt(this._beforeEditCell(r,i,a)).done(u=>{u||this._prepareEditCell(s,a,i,l)||this._processCanceledEditingCell()})}return!1}this._dataController.fireError("E1043")},_beforeEditCell:function(t,n,e){if(this.isCellEditMode()&&!e.isNewRow&&this.hasChanges()){var i=new et;return this.saveEditData().always(()=>{i.resolve(this.hasChanges())}),i}},publicMethods:function(){var t=this.callBase.apply(this,arguments);return t.concat(["editCell","closeEditCell"])},_getNormalizedEditCellOptions:function(t){var u,{oldColumnIndex:n,oldRowIndex:e,columnIndex:i,rowIndex:r}=t,o=this._columnsController,a=o.getVisibleColumns(),l=this._dataController.items()[r];return u=Z(n)?a[n]:this._getEditColumn(),Z(e)||(e=this._getVisibleEditRowIndex()),Pn(i)&&(i=o.columnOption(i,"index"),i=o.getVisibleIndex(i)),{oldColumn:u,columnIndex:i,oldRowIndex:e,rowIndex:r,column:a[i],item:l}},_prepareEditCell:function(t,n,e,i){return n.isNewRow||(t.key=n.key),!this._isEditingStart(t)&&(this._pageIndex=this._dataController.pageIndex(),this._setEditRowKey(n.key),this._setEditColumnNameByIndex(e),t.column.showEditorAlways||this._addInternalData({key:n.key,oldData:null!==(r=n.oldData)&&void 0!==r?r:n.data}),!0);var r},closeEditCell:function(t,n){var e=Qt(),i=this._getVisibleEditRowIndex();if(this.isCellOrBatchEditMode()){var r=new et;e=new et,this.executeOperation(r,()=>{this._closeEditCellCore(t,i,n).always(e.resolve)})}return e.promise()},_closeEditCellCore:function(t,n,e){var i=this._dataController,r=new et,o=r.promise();if(this.isCellEditMode()&&this.hasChanges()){if(!e)return this.saveEditData().done(s=>{this.hasChanges()?r.resolve():this.closeEditCell(!!s).always(r.resolve)}),o}else if(this._resetEditRowKey(),this._resetEditColumnName(),n>=0){var a=[n];this._beforeCloseEditCellInBatchMode(a),t||i.updateItems({changeType:"update",rowIndices:a})}return r.resolve(),o},_resetModifiedClassCells:function(t){if(this.isBatchEditMode()){var n=this._columnsController.getVisibleColumns().length;t.forEach(e=>{var{key:i}=e,r=this._dataController.getRowIndexByKey(i);if(-1!==r)for(var o=0;o<n;o++)this._rowsView._getCellElement(r,o).removeClass("dx-cell-modified")})}},_prepareChange:function(t,n,e){var i=U(t.cellElement);return this.isBatchEditMode()&&void 0!==t.key&&this._applyModified(i,t),this.callBase.apply(this,arguments)},_cancelSaving:function(){var t=this._dataController;this.isCellOrBatchEditMode()&&(this.isBatchEditMode()&&this._resetEditIndices(),t.updateItems()),this.callBase.apply(this,arguments)},optionChanged:function(t){"editing"===t.name&&t.fullName===dAe?(this._handleEditColumnNameChange(t),t.handled=!0):this.callBase(t)},_editCellFromOptionChanged:function(t,n,e){var i=this._columnsController.getVisibleColumns();t>-1&&Zo(()=>{this._repaintEditCell(i[t],i[n],e)})},_handleEditRowKeyChange:function(t){if(this.isCellOrBatchEditMode()){var r,n=this._getVisibleEditColumnIndex(),e=this._getEditRowIndexCorrection(),i=this._dataController.getRowIndexByKey(t.previousValue)+e;Z(t.value)&&t.value!==t.previousValue&&(null===(r=this._editCellFromOptionChanged)||void 0===r||r.call(this,n,n,i))}else this.callBase.apply(this,arguments)},deleteRow:function(t){if(this.isCellEditMode()&&this.isEditing()){var n=this._dataController.items()[t].isNewRow,e=this._dataController.getKeyByRowIndex(t);this.closeEditCell(null,n).always(()=>{t=this._dataController.getRowIndexByKey(e),this._checkAndDeleteRow(t)})}else this.callBase.apply(this,arguments)},_checkAndDeleteRow:function(t){this.isBatchEditMode()?this._deleteRowCore(t):this.callBase.apply(this,arguments)},_refreshCore:function(t){var{isPageChanged:n}=t??{},e=this.isBatchEditMode()||n&&"virtual"!==this.option("scrolling.mode");this.isCellOrBatchEditMode()?e&&(this._resetEditColumnName(),this._resetEditRowKey()):this.callBase.apply(this,arguments)},_allowRowAdding:function(t){return!!this.isBatchEditMode()||this.callBase.apply(this,arguments)},_afterDeleteRow:function(t,n){var e=this._dataController;return this.isBatchEditMode()?(e.updateItems({changeType:"update",rowIndices:[n,t]}),(new et).resolve()):this.callBase.apply(this,arguments)},_updateEditRow:function(t,n,e){this.isCellOrBatchEditMode()?this._updateRowImmediately(t,n,e):this.callBase.apply(this,arguments)},_isDefaultButtonVisible:function(t,n){if(this.isCellOrBatchEditMode()){var e=this.isBatchEditMode();switch(t.name){case"save":case"cancel":case"edit":return!1;case"delete":return this.callBase.apply(this,arguments)&&(!e||!n.row.removed);case"undelete":return e&&this.allowDeleting(n)&&n.row.removed;default:return this.callBase.apply(this,arguments)}}return this.callBase.apply(this,arguments)},_isRowDeleteAllowed:function(){var t=this.callBase.apply(this,arguments);return t||this.isBatchEditMode()},_beforeEndSaving:function(t){var n;this.isCellEditMode()?"update"!==(null===(n=t[0])||void 0===n?void 0:n.type)&&this.callBase.apply(this,arguments):(this.isBatchEditMode()&&this._resetModifiedClassCells(t),this.callBase.apply(this,arguments))},prepareEditButtons:function(t){var n=this.option("editing")||{},e=this.callBase.apply(this,arguments);return(n.allowUpdating||n.allowAdding||n.allowDeleting)&&this.isBatchEditMode()&&(e.push(this.prepareButtonItem(t,"save","saveEditData",21)),e.push(this.prepareButtonItem(t,"revert","cancelEditData",22))),e},_saveEditDataInner:function(){var t,o,n=this._dataController.getVisibleRows()[this.getEditRowIndex()],e=this._getEditColumn(),i=e?.showEditorAlways,r=this.isCellEditMode()&&!(null!=n&&n.isNewRow);return r&&i&&(o=new et,this.addDeferred(o)),this.callBase.apply(this,arguments).always(null===(t=o)||void 0===t?void 0:t.resolve)},_applyChange:function(t,n,e){var i=this.isCellEditMode()&&t.row&&!t.row.isNewRow,r=t.column.showEditorAlways,o=t.column.setCellValue!==t.column.defaultSetCellValue,a=r&&!e&&i&&this.hasEditData()&&!this.isEditCell(t.rowIndex,t.columnIndex);return a?(this._focusEditingCell(),void this._updateEditRow(t.row,!0,o)):this.callBase.apply(this,arguments)},_applyChangeCore:function(t,n){var e=t.column.showEditorAlways,i=this.isCellEditMode()&&t.row&&!t.row.isNewRow;if(e&&!n){if(i)return this._setEditRowKey(t.row.key,!0),this._setEditColumnNameByIndex(t.columnIndex,!0),this.saveEditData();if(this.isBatchEditMode())return n=this._needUpdateRow(t.column),this.callBase(t,n)}return this.callBase.apply(this,arguments)},_processDataItemCore:function(t,n){var{data:e,type:i}=n;this.isBatchEditMode()&&"remove"===i&&(t.data=hm(t.data,e)),this.callBase.apply(this,arguments)},_processRemoveCore:function(t,n,e){if(!this.isBatchEditMode()||e)return this.callBase.apply(this,arguments)},_processRemoveIfError:function(){if(!this.isBatchEditMode())return this.callBase.apply(this,arguments)},_beforeFocusElementInRow:function(t){this.callBase.apply(this,arguments);var n=t>=0?t:0,e=this.getFirstEditableColumnIndex();e>=0&&this.editCell(n,e)}}},views:{rowsView:{_createTable:function(){var t=this.callBase.apply(this,arguments),n=this._editingController;return n.isCellOrBatchEditMode()&&this.option("editing.allowUpdating")&&Se.on(t,kt(Tm_name,"dxDataGridRowsView"),"td:not(."+rUt+")",this.createAction(()=>{n.isEditing()&&n.closeEditCell()})),t},_createRow:function(t){var n=this.callBase.apply(this,arguments);if(t){var e=this._editingController,i=!!t.removed;e.isBatchEditMode()&&i&&n.addClass(lUt)}return n}},headerPanel:{isVisible:function(){var t=this.getController("editing").option("editing");return this.callBase()||t&&(t.allowUpdating||t.allowDeleting)&&t.mode===FY}}}}};oi.registerModule("editingCellBased",cAe);var hAe="invalid",m9="revert-tooltip",qY="invalid-message",pAe="validator",YY="dx-pending-indicator",gAe="dx-validation-pending",mAe="__DX_INSERT_INDEX__",ZY="batch",Ik="cell",_Ae=["popup","form"],kk="insert",Mk="cancel",Ak=function(t){return Z(t)&&t!==Mk},vAe=function(t,n){return void 0!==t||void 0===t&&n&&!n.isNewRow},xUt=Bo.Controller.inherit({init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating"),this._validationState||this.initValidationState()},initValidationState(){this._validationState=[],this._validationStateCache={}},_rowIsValidated:function(t){var n=this._getValidationData(t?.key);return!!n&&!!n.validated},_getValidationData:function(t,n){var r,e=lg(t),i=Jn(e);return!(r=i?this._validationState.filter(o=>Tr(o.key,t))[0]:this._validationStateCache[e])&&n&&(this._validationState.push(r={key:t,isValid:!0}),i||(this._validationStateCache[e]=r)),r},_getBrokenRules:function(t,n){return n?n.brokenRules||n.brokenRule&&[n.brokenRule]:t.brokenRules||[]},_rowValidating:function(t,n){var e=new et,i=this._editingController.getChangeByKey(t?.key),r=this._getBrokenRules(t,n),a={brokenRules:r,isValid:n?n.isValid:t.isValid,key:i.key,newData:i.data,oldData:this._editingController._getOldData(i.key),promise:null,errorText:this.getHiddenValidatorsErrorText(r)};return this.executeAction("onRowValidating",a),Qt(ra(a.promise)).always(function(){t.isValid=a.isValid,t.errorText=a.errorText,e.resolve(a)}),e.promise()},getHiddenValidatorsErrorText:function(t){var n=[];return we(t,function(e,i){var r=i.column,o=r&&void 0!==r.groupIndex&&!r.showWhenGrouped,a=r&&r.visible;!i.validator.$element().parent().length&&(!a||o)&&n.push(i.message)}),n.join(", ")},validate:function(t){var n=!0,e=this._editingController,i=new et,r=[],o=e.getEditMode();if(t=t||"row"===o,this._isValidationInProgress)return i.resolve(!1).promise();if(this._isValidationInProgress=!0,t){e.addDeferred(i);var a=e.getChanges();we(a,(l,u)=>{var{type:f,key:S}=u;if("remove"!==f){var T=this._getValidationData(S,!0),R=this.validateGroup(T);r.push(R),R.done(L=>{T.validated=!0,n=n&&L.isValid})}})}else if(this._currentCellValidator){var s=this.validateGroup(this._currentCellValidator._findGroup());r.push(s),s.done(l=>{n=l.isValid})}return Qt(...r).done(()=>{this._isValidationInProgress=!1,i.resolve(n)}),i.promise()},validateGroup:function(t){var n,r,e=new et,i=t&&Uo.getGroupConfig(t);return null!=i&&i.validators.length&&(this.resetRowValidationResults(t),r=Uo.validateGroup(t)),Qt((null===(n=r)||void 0===n?void 0:n.complete)||r).done(o=>{Qt(this._rowValidating(t,o)).done(e.resolve)}),e.promise()},isRowDataModified:t=>!pa(t.data),updateValidationState:function(t){var n=this._editingController.getEditMode(),i=this._getValidationData(t.key,!0);if(-1===_Ae.indexOf(n)){if(t.type===kk&&!this.isRowDataModified(t))return void(i.isValid=!0);if(this.setDisableApplyValidationResults(!0),Uo.getGroupConfig(i)){var o=Uo.validateGroup(i);Qt(o.complete||o).done(a=>{i.isValid=a.isValid,i.brokenRules=a.brokenRules})}else(!i.brokenRules||!i.brokenRules.length)&&(i.isValid=!0);this.setDisableApplyValidationResults(!1)}else i.isValid=!0},setValidator:function(t){this._currentCellValidator=t},renderCellPendingIndicator:function(t){var n=t.find("."+YY);if(!n.length){var e=t;n=U("<div>").appendTo(e).addClass(YY),this._createComponent(n,bd),t.addClass(gAe)}},disposeCellPendingIndicator:function(t){var n=t.find("."+YY);if(n.length){var e=bd.getInstance(n);e&&(e.dispose(),e.$element().remove()),t.removeClass(gAe)}},validationStatusChanged:function(t){var n=t.validator,e=n.option("validationGroup"),i=n.option("dataGetter")().column;this.updateCellValidationResult({rowKey:e.key,columnIndex:i.index,validationResult:t})},validatorInitialized:function(t){t.component.on("validating",this.validationStatusChanged.bind(this)),t.component.on("validated",this.validationStatusChanged.bind(this))},validatorDisposing:function(t){var n=t.component,e=n.option("validationGroup"),i=n.option("dataGetter")().column,r=this.getCellValidationResult({rowKey:e?.key,columnIndex:i.index});Ak(r)&&"pending"===r.status&&this.cancelCellValidationResult({change:e,columnIndex:i.index})},applyValidationResult:function(t,n){var e=n.validator,i=e.option("validationGroup"),r=e.option("dataGetter")().column;if(n.brokenRules&&n.brokenRules.forEach(u=>{u.columnIndex=r.index,u.column=r}),t){var o=this.getCellValidationResult({rowKey:i.key,columnIndex:r.index}),a=Ak(o)&&o.disabledPendingId===n.id;if(this._disableApplyValidationResults||a)return;if("invalid"===n.status){var s=t.find(":focus");l_(s)||(Se.trigger(s,"focus"),Se.trigger(s,qn.down))}var l=!r.editCellTemplate&&this.getController("editorFactory").getEditorInstance(t);"pending"===n.status?l?l.option("validationStatus","pending"):this.renderCellPendingIndicator(t):l?l.option("validationStatus","valid"):this.disposeCellPendingIndicator(t),t.toggleClass(this.addWidgetPrefix(hAe),"invalid"===n.status)}},_syncInternalEditingData:function(t){var n,e=this._editingController,i=e.getChangeByKey(t.key),r=e._getOldData(t.key),o=null===(n=t.row)||void 0===n?void 0:n.oldData;i&&o&&!r&&e._addInternalData({key:t.key,oldData:o})},createValidator:function(t,n){var e=this._editingController,i=t.column,r=i.showEditorAlways;if(!Z(i.command)&&i.validationRules&&Array.isArray(i.validationRules)&&i.validationRules.length){var a=e.getIndexByKey(t.key,e.getChanges())>-1;if(!a){r||(r=(this.getController("columns")?.getVisibleColumns()||[]).some(function(ie){return ie.showEditorAlways}));var S,T,u=Tr(this.option("editing.editRowKey"),t.key),f=e.isCellOrBatchEditMode()&&e.allowUpdating({row:t.row});a=u||f&&r,f&&r&&e._addInternalData({key:t.key,oldData:null!==(S=null===(T=t.row)||void 0===T?void 0:T.oldData)&&void 0!==S?S:t.data})}if(a){if(n&&!n.length)return void Di.log("E1050");this._syncInternalEditingData(t);var R=this._getValidationData(t.key,!0),L=()=>{var ie=e.getChangeByKey(R?.key),te=i.calculateCellValue(ie?.data||{});return void 0!==te?te:t.value},z=n&&n.hasClass("dx-widget");n&&n.addClass(this.addWidgetPrefix(pAe));var j=new Tk(n||U("<div>"),{name:i.caption,validationRules:se(!0,[],i.validationRules),validationGroup:R,adapter:z?null:{getValue:L,applyValidationResults:ie=>{this.applyValidationResult(n,ie)}},dataGetter:function(){var ie=R?.key,te=e.getChangeByKey(ie);return{data:hm(e._getOldData(ie),te?.data),column:i}},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(z){var Y=j.option("adapter");Y&&(Y.getValue=L,Y.validationRequestsCallbacks=[],Y.bypass=()=>t.row.isNewRow&&!this._isValidationInProgress&&!e.isCellModified(t))}return j}}},setDisableApplyValidationResults:function(t){this._disableApplyValidationResults=t},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults},isCurrentValidatorProcessing:function(t){var{rowKey:n,columnIndex:e}=t;return this._currentCellValidator&&Tr(this._currentCellValidator.option("validationGroup").key,n)&&this._currentCellValidator.option("dataGetter")().column.index===e},validateCell:function(t){var n={rowKey:t.option("validationGroup").key,columnIndex:t.option("dataGetter")().column.index},e=this.getCellValidationResult(n),i=Ak(e);i||(e=t.validate());var r=new et,o=t.option("adapter");return i&&"pending"===e.status&&(this.updateCellValidationResult(n),o.applyValidationResults(e)),Qt(e.complete||e).done(a=>{i&&o.applyValidationResults(a),r.resolve(a)}),r.promise()},updateCellValidationResult:function(t){var{rowKey:n,columnIndex:e,validationResult:i}=t,r=this._getValidationData(n);if(r){var o;if(r.validationResults||(r.validationResults={}),i){if(o=se({},i),r.validationResults[e]=o,"pending"===i.status&&(this._editingController.getEditMode()===Ik&&(o.deferred=new et,o.complete.always(()=>{o.deferred.resolve()}),this._editingController.addDeferred(o.deferred)),this._disableApplyValidationResults))return void(o.disabledPendingId=i.id)}else o=r.validationResults[e];o&&o.disabledPendingId&&delete o.disabledPendingId}},getCellValidationResult:function(t){var n,{rowKey:e,columnIndex:i}=t,r=this._getValidationData(e,!0);return null==r||null===(n=r.validationResults)||void 0===n?void 0:n[i]},removeCellValidationResult:function(t){var{change:n,columnIndex:e}=t,i=this._getValidationData(n?.key);i&&i.validationResults&&(this.cancelCellValidationResult({change:n,columnIndex:e}),delete i.validationResults[e])},cancelCellValidationResult:function(t){var{change:n,columnIndex:e}=t,i=this._getValidationData(n.key);if(n&&i.validationResults){var r=i.validationResults[e];r&&(r.deferred&&r.deferred.reject(Mk),i.validationResults[e]=Mk)}},resetRowValidationResults:function(t){t&&(t.validationResults&&delete t.validationResults,delete t.validated)},isInvalidCell:function(t){var{rowKey:n,columnIndex:e}=t,i=this.getCellValidationResult({rowKey:n,columnIndex:e});return Ak(i)&&"invalid"===i.status},getCellValidator:function(t){var{rowKey:n,columnIndex:e}=t,i=this._getValidationData(n),r=i&&Uo.getGroupConfig(i),o=r&&r.validators;return o&&o.filter(a=>{var s=a.option("dataGetter")().column;return!!s&&s.index===e})[0]},setCellValidationStatus:function(t){var n=this.getCellValidationResult({rowKey:t.key,columnIndex:t.column.index});Z(n)?t.validationStatus=n!==Mk?n.status:Mk:delete t.validationStatus}}),FS={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:ye.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:xUt},extenders:{controllers:{editing:{_addChange:function(t){var n=this.callBase.apply(this,arguments),e=this.getController("validating");return n&&"remove"!==t.type&&e.updateValidationState(n),n},_handleChangesChange:function(t){this.callBase.apply(this,arguments);var n=this.getController("validating");t.value.forEach(e=>{void 0===n._getValidationData(e.key)&&n.updateValidationState(e)})},_updateRowAndPageIndices:function(){var t=this,n=t.getView("rowsView").getTopVisibleItemIndex(),e=n;we(t.getChanges(),(i,r)=>{var{key:o,type:a}=r,s=this.getController("validating")._getValidationData(o);s&&!s.isValid&&s.pageIndex!==t._pageIndex&&(s.pageIndex=t._pageIndex,s.rowIndex=a===kk?n:e,e++)})},_getValidationGroupsInForm:function(t){return{validationGroup:this.getController("validating")._getValidationData(t.key,!0)}},_validateEditFormAfterUpdate:function(t,n){n&&this._editForm&&this._editForm.validate(),this.callBase.apply(this,arguments)},_prepareEditCell:function(t){var n=this.callBase.apply(this,arguments),e=this.getController("validating");return n&&t.column.showEditorAlways&&e.updateValidationState({key:t.key}),n},processItems:function(t,n){var e=this.getChanges(),i=this.getController("data"),r=this.getController("validating"),o=(t=this.callBase(t,n)).length;return this.getEditMode()===ZY&&"prepend"!==n&&"append"!==n&&e.forEach(s=>{var u=r._getValidationData(s.key);u&&s.type&&u.pageIndex===this._pageIndex&&s?.pageIndex!==this._pageIndex&&function(s,l){var T,L,z,j,u={key:s.key};if(L=-1,z=(T=s).type===kk,j=T.key,we(t,function(Y,ie){if(Tr(j,z?ie.key:i.keyOf(ie)))return L=Y,!1}),!(L>=0)){l.rowIndex=l.rowIndex>o?l.rowIndex%o:l.rowIndex;var S=l.rowIndex;u[mAe]=1,t.splice(S,0,u)}}(s,u)}),t},processDataItem:function(t){var n=t.data[mAe],e=n?t.data.key:t.key,i=this.getEditMode();if(i===ZY&&n&&e){var r=this.getChanges(),o=vn.getIndexByKey(e,r);if(o>=0){var a=r[o];if(a.type!==kk){var s=this._getOldData(a.key);t.data=se(!0,{},s,a.data),t.key=e}}}this.callBase.apply(this,arguments)},_createInvisibleColumnValidators:function(t){var n=this,e=this.getController("validating"),i=this.getController("columns"),r=i.getColumns(),o=i.getInvisibleColumns().filter(u=>!u.isBand),a=i.getGroupColumns().filter(u=>!u.showWhenGrouped&&-1===o.indexOf(u)),s=[],l=(u,f)=>this._dataController.getRowIndexByKey(f)>=0&&o.indexOf(u)<0;return o.push(...a),-1===_Ae.indexOf(this.getEditMode())&&we(r,function(u,f){t.forEach(function(S){var T;if(!l(f,S.key)&&(S.type===kk?T=S.data:"update"===S.type&&(T=hm(n._getOldData(S.key),S.data)),T)){var L=e.createValidator({column:f,key:S.key,value:f.calculateCellValue(T)});L&&s.push(L)}})}),function(){s.forEach(function(u){u.dispose()})}},_beforeSaveEditData:function(t,n){var e=this.callBase.apply(this,arguments),i=this.getController("validating"),r=i._getValidationData(t?.key);if(t){var o="remove"===t.type||r.isValid;e=e||!o}else{var a=this._createInvisibleColumnValidators(this.getChanges());e=new et,this.executeOperation(e,()=>{i.validate(!0).done(s=>{switch(a(),this._updateRowAndPageIndices(),this.getEditMode()){case Ik:s||this._focusEditingCell();break;case ZY:s||(this._resetEditRowKey(),this._resetEditColumnName(),this.getController("data").updateItems())}e.resolve(!s)})})}return e.promise?e.promise():e},_beforeEditCell:function(t,n,e){var i=this.callBase(t,n,e);if(this.getEditMode()===Ik){var r=this._rowsView._getCellElement(t,n),o=r&&r.data("dxValidator"),a=r&&r.closest(".dx-row").data("options"),s=o&&o.option("adapter").getValue();if(o&&vAe(s,a)){var l=this.getController("validating"),u=new et;return Qt(l.validateCell(o),i).done((f,S)=>{u.resolve("valid"===f.status&&S)}),u.promise()}if(!o)return i}},_afterSaveEditData:function(t){var n,e=this.getEditMode()===Ik;if(we(this.getChanges(),(l,u)=>{var f=this._showErrorRow(u);n=n||f}),n){var i=this._rowsView.getScrollable();i&&(i.update(),i.scrollToElement(n))}if(t&&e&&this._needUpdateRow()){var r=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[r]}),this._focusEditingCell()}else if(!t){var o=!0;e&&(o=!(this.getController("columns").getColumns().filter(l=>{var u;return l.showEditorAlways&&(null===(u=l.validationRules)||void 0===u?void 0:u.length)>0}).length>0)),o&&this.getController("validating").initValidationState()}},_handleDataChanged:function(t){var n=this.getController("validating")._validationState;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===t.changeType&&we(n,function(e,i){i.rowIndex+=t.items.length}),this.callBase(t)},resetRowAndPageIndices:function(){var t=this.getController("validating")._validationState;we(t,(n,e)=>{e.pageIndex!==this._pageIndex&&(delete e.pageIndex,delete e.rowIndex)})},_beforeCancelEditData:function(){this.getController("validating").initValidationState(),this.callBase()},_showErrorRow:function(t){var n,e=this.getController("errorHandling"),i=this.getController("data").items(),r=this.getIndexByKey(t.key,i),o=this.getController("validating")._getValidationData(t.key);if((null==o||!o.isValid)&&null!=o&&o.errorText&&r>=0)return n=this.getPopupContent(),e&&e.renderErrorRow(o?.errorText,r,n)},updateFieldValue:function(t){var n=this.getController("validating"),e=new et;return n.removeCellValidationResult({change:this.getChangeByKey(t.key),columnIndex:t.column.index}),this.callBase.apply(this,arguments).done(()=>{var i=n.getCellValidator({rowKey:t.key,columnIndex:t.column.index});Qt(i&&n.validateCell(i)).done(r=>{this.getController("editorFactory").refocus(),e.resolve(r)})}),e.promise()},highlightDataCell:function(t,n){this.callBase.apply(this,arguments);var e=this.getController("validating");e.setCellValidationStatus(n);var i=!!n.setValue,r=this.isCellModified(n),o=Z(n.validationStatus),a=r&&n.column.setCellValue||i&&!r&&!(n.row.isNewRow||!o);if(a){var s=t.data("dxValidator");s&&Qt(this.getController("validating").validateCell(s)).done(()=>{e.setCellValidationStatus(n)})}},getChangeByKey:function(t){var n=this.getChanges();return n[vn.getIndexByKey(t,n)]},isCellModified:function(t){var n=this.callBase(t),e=this.getChangeByKey(t.key),i=!!t.row&&this.getController("validating").isInvalidCell({rowKey:t.key,columnIndex:t.column.index});return n||this.getController("validating")._rowIsValidated(e)&&i}},editorFactory:{_showRevertButton:function(t){if(t&&t.length){var n=this._rowsView.element().find("."+this.addWidgetPrefix(m9)),e=t.closest(".".concat(this.addWidgetPrefix("content")));n&&n.remove(),n=U("<div>").addClass(this.addWidgetPrefix(m9)).appendTo(t);var i={animation:null,visible:!0,width:"auto",height:"auto",shading:!1,container:e,propagateOutsideClick:!0,hideOnOutsideClick:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,contentTemplate:()=>{var r=U("<div>").addClass("dx-revert-button"),o={icon:"revert",hint:this.option("editing.texts.validationCancelChanges"),onClick:()=>{this._editingController.cancelEditData()}};return new To(r,o).$element()},position:{my:"left top",at:"right top",offset:"1 0",collision:"flip",boundaryOffset:"0 0",boundary:this._rowsView.element(),of:t},onPositioned:this._positionedHandler.bind(this)};return new Cd(n,i)}},_hideFixedGroupCell:function(t,n){var e,i,r=this._rowsView.isFixedColumns(),o=this._editingController.isFormOrPopupEditMode();if(r&&!o){var a=t.closest(".dx-row").next().data("options");a&&"group"===a.rowType&&(e=U(this._rowsView.getRowElement(a.rowIndex)).last(),(i=e.find(".dx-group-cell")).length&&"hidden"!==i.get(0).style.visibility&&(i.css("visibility","hidden"),n.onDisposing=function(){i.css("visibility","")}))}},_positionedHandler:function(t,n){if(!t.component.__skipPositionProcessing){var e=U(t.element).hasClass(this.addWidgetPrefix(m9)),i=!e&&this._rowsView.updateFreeSpaceRowHeight(),r=this._normalizeValidationMessagePositionAndMaxWidth(t,e,n);t.component.__skipPositionProcessing=!(!i&&!r),r?t.component.option(r):i&&t.component.repaint()}},_showValidationMessage:function(t,n,e,i){var r=t.find(".dx-dropdowneditor-overlay").data("dxPopup"),o=r&&r.option("visible"),a=o?"top right":"top "+e,s=o?"top left":"bottom "+e,l=t.closest(".".concat(this.addWidgetPrefix("content"))),u="";n&&n.forEach(function(R){u+=(u.length?"<br/>":"")+z7(R)});var f=this.addWidgetPrefix(qY);this._rowsView.element().find("."+f).remove();var S=U("<div>").addClass("dx-invalid-message").addClass("dx-invalid-message-always").addClass(f).html(u).appendTo(t),T={container:l,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,hideOnOutsideClick:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",offset:{x:0,y:!o&&Ro.mozilla?-1:0},my:a,at:s,of:t},onPositioned:R=>{this._positionedHandler(R,o),this._shiftValidationMessageIfNeed(R.component.$content(),i&&i.$content(),t)}};this._hideFixedGroupCell(t,T),new Cd(S,T)},_normalizeValidationMessagePositionAndMaxWidth:function(t,n,e){var z,j,Y,i=this._columnsController.getFixedColumns();if(i&&i.length){var r,l,u,o=!n&&(l=U(t.element).closest("tr").index(),u=U(this._rowsView.getRowElement(l)).first().children().filter(":not(.dx-hidden-cell)"),this._rowsView._getWidths(u).reduce((z,j)=>z+j,0)),f=t.component.$content(),S=ii(f,!0),T=!n&&S>o,R=this._rowsView.getCellIndex(U(t.element).closest("td")),L=((z=i).some((ie,te)=>{if("transparent"===ie.command)return j=0===te?-1:te,Y=te===z.length-1?-1:te+ie.colspan-1,!0}),{startColumnIndex:j,endColumnIndex:Y});return n||R!==L.startColumnIndex&&!T?R===L.endColumnIndex&&(r={collision:"none flip",my:"top right",at:n||e?"top left":"bottom right"},n&&(r.offset="-1 0")):r={collision:"none flip",my:"top left",at:e?"top right":"bottom left"},r&&{position:r,maxWidth:T?o-2:void 0}}},_shiftValidationMessageIfNeed:function(t,n,e){if(n){var i=t.offset(),r=n.offset();if(i.top===r.top&&i.left+wn(t)>r.left){var o=wn(n)+2;t.css("left",r.left<e.offset().left?-o:o)}}},_getTooltipsSelector:function(){var t=this.addWidgetPrefix(qY);return".dx-editor-cell ."+this.addWidgetPrefix(m9)+", .dx-editor-cell ."+t+", .dx-cell-modified ."+t},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(t){t||this.getController("validating").setValidator(null),this.callBase()},updateCellState:function(t,n,e){var i,f,r=t?.closest(this._getFocusCellSelector()),o=null!=r&&r.is("td")?r:null,a=r?.closest(".dx-row").data("options"),s=a?this.getController("editing").getChangeByKey(a.key):null,l=o&&this.getController("columns").getVisibleColumns()[o.index()],u=void 0!==(null==s||null===(i=s.data)||void 0===i?void 0:i[l?.name])&&!this._editingController.isSaving();if(("invalid"===n?.status||u)&&this._editingController.getEditMode()===Ik&&(f=this._showRevertButton(r)),n&&"invalid"===n.status&&o&&l&&n&&n.brokenRules){var T=[];n.brokenRules.forEach(function(R){R.message&&T.push(R.message)}),T.length&&this._showValidationMessage(r,T,l.alignment||"left",f)}!e&&this._rowsView.element()&&this._rowsView.updateFreeSpaceRowHeight()},focus:function(t,n){if(!arguments.length)return this.callBase();var e=t&&t.closest("."+this.addWidgetPrefix("rowsview")).find(this._getTooltipsSelector());if(e&&e.remove(),null!=t&&t.hasClass("dx-row")||null!=t&&t.hasClass("dx-master-detail-cell"))return this.callBase(t,n);var u,i=t?.closest(this._getFocusCellSelector()),r=this.callBase,o=i&&(i.data("dxValidator")||t.find("."+this.addWidgetPrefix(pAe)).eq(0).data("dxValidator")),a=i&&i.closest(".dx-row").data("options"),s=this.getController("editing"),l=a?s.getChangeByKey(a.key):null,f=this.getController("validating");if(o){f.setValidator(o);var S=o.option("adapter").getValue();if(vAe(S,a)||f._rowIsValidated(l))return s.waitForDeferredOperations().done(()=>{Qt(f.validateCell(o)).done(T=>{var R=(u=T).validator.option("dataGetter")().column;l&&R&&!f.isCurrentValidatorProcessing({rowKey:l.key,columnIndex:R.index})||("invalid"===u.status&&(n=!0),this.updateCellState(t,u,n),r.call(this,t,n))})}),this.callBase(t,n)}return this.updateCellState(t,u,n),this.callBase(t,n)},getEditorInstance:function(t){var n=t.find(".dx-texteditor").eq(0);return vn.getWidgetInstance(n)}},data:{_getValidationStatus:function(t){return(Ak(t)?t.status:t)||"valid"},_isCellChanged:function(t,n,e,i,r){var o,a,s=null===(o=t.cells)||void 0===o?void 0:o[i],l=this._getValidationStatus({status:s?.validationStatus}),u=this.getController("validating"),f=u.getCellValidationResult({rowKey:t.key,columnIndex:i}),S=u._getValidationData(t.key),T=this._getValidationStatus(f),R=JSON.stringify(n.modifiedValues)!==JSON.stringify(t.modifiedValues),L=l!==T&&R,z=U(s?.cellElement).hasClass(this.addWidgetPrefix(hAe)),j=null==s||null===(a=s.column.validationRules)||void 0===a?void 0:a.length,Y=t.isEditing!==n.isEditing&&j,ie=L||S.isValid&&z;return!(!Y&&!ie)||this.callBase.apply(this,arguments)}}},views:{rowsView:{updateFreeSpaceRowHeight:function(t){var n,e,i,r=this.element(),o=r&&r.find("."+this.addWidgetPrefix(qY)+" .dx-overlay-content");if(this.callBase(t),o&&o.length&&(n=this._getRowElements(),(e=(i=this._getFreeSpaceRowElements(t)).first())&&1===n.length&&(!e.is(":visible")||Zn(o)>Zn(e))))return i.show(),xo(i,Zn(o)),!0},_formItemPrepared:function(t,n){this.callBase.apply(this,arguments),Ns(()=>{var e=n.find(".dx-widget").first();e.length&&!e.children().length||this.getController("validating").createValidator(t,e)})},_cellPrepared:function(t,n){this.getController("editing").isFormOrPopupEditMode()||this.getController("validating").createValidator(n,t),this.callBase.apply(this,arguments)},_restoreErrorRow:function(t){var n=this.getController("editing");n&&n.hasChanges()&&this._getRowElements(t).each((e,i)=>{var r=U(i).data("options");if(r){var o=n.getChangeByKey(r.key);o&&n._showErrorRow(o)}})}}}}};oi.registerModule("validating",FS);var XY="scrolling.legacyMode",yAe=t=>t.option("scrolling.loadTwoPagesOnStart")||t._controller.isVirtual()||t._controller.getViewportItemIndex()>0,_9=t=>t._cache.length?t._cache[0].pageIndex:-1,JY=t=>t._cache.length?t._cache[t._cache.length-1].pageIndex:-1,v9=(t,n,e)=>{t._isChangedFiring=!0,n(e),t._isChangedFiring=!1},CAe=(t,n,e)=>{if(t._isDelayChanged)return t._isDelayChanged=!1,v9(t,n,e),!0},y9=(t,n)=>{var e=t.option("scrolling.preloadEnabled"),i=(t=>{var n=t._dataOptions.pageSize();if(t.option("scrolling.preventPreload"))return 0;var i=t._controller.viewportSize();if(t._controller.isVirtualMode()&&t.option("scrolling.removeInvisiblePages")){i=0;for(var r=t._controller.viewportSize()*t._controller.viewportItemSize(),o=t._controller.getContentOffset(),a=t._controller.getViewportPosition(),s=t._controller.virtualItemsCount(),l=t._dataOptions.totalItemsCount(),u=s.begin;u<l&&!(o>=a+r);u++)(o+=t._controller.getItemSizes()[u]||t._controller.viewportItemSize())>=a&&i++}return n&&i>0?Math.ceil(i/n):1})(t),r=t._controller.isAppendMode();return i&&(n?i=e?1:0:(e&&i++,(r||!yAe(t))&&i--)),i},bAe=(t,n,e,i,r)=>{var o=t._dataOptions,a=o.items().slice(),s=Jn(e)?e:void 0,l="prepend"===e,u=o.viewportItems();e&&Pn(e)&&!t._isDelayChanged&&(s={changeType:e,items:a},r&&(s.removeCount=r.itemsCount,s.removeCount&&o.correctCount&&(s.removeCount=o.correctCount(u,s.removeCount,l))));var f=r?r.itemsLength:0;f&&o.correctCount&&(f=o.correctCount(u,f,l)),"append"===e?(u.push.apply(u,a),r&&u.splice(0,f)):l?(u.unshift.apply(u,a),r&&u.splice(-f)):t._dataOptions.viewportItems(a),o.updateLoading(),t._lastPageIndex=t.pageIndex(),t._isDelayChanged=i,i||v9(t,n,s)};class EUt{constructor(n,e){this._controller=n,this._dataOptions=e,this._pageIndex=this._lastPageIndex=e.pageIndex(),this._cache=[],this._loadingPageIndexes={}}option(){return this._controller.option.apply(this._controller,arguments)}viewportItemIndexChanged(n){var s,e=this._dataOptions.pageSize(),i=this._dataOptions.pageCount(),r=this._controller.isVirtualMode(),o=this._controller.isAppendMode(),a=this._dataOptions.totalItemsCount();if(e&&(r||o)&&a>=0){var l=this._controller.viewportSize();if(l&&n+l>=a&&!this._controller.isVirtual())if(this._dataOptions.hasKnownLastPage()){var u=a%e;(s=i-1)>0&&u>0&&u<l&&s--}else s=i;else{s=Math.floor(n/e);var f=i-1;s=Math.max(s,0),s=Math.min(s,f)}return this.pageIndex(s),this.load()}}pageIndex(n){var e=this._controller.isVirtualMode(),i=this._controller.isAppendMode();return!1!==this.option(XY)&&(e||i)?(void 0!==n&&(this._pageIndex=n),this._pageIndex):this._dataOptions.pageIndex(n)}beginPageIndex(n){var e=_9(this);return e<0&&(e=void 0!==n?n:this.pageIndex()),e}endPageIndex(){var n=JY(this);return n>0?n:this._lastPageIndex}pageSize(){return this._dataOptions.pageSize()}load(){var e,n=this._dataOptions,i=this._controller.isVirtualMode(),r=this._controller.isAppendMode();if(!1!==this.option(XY)&&(i||r)){var o=(t=>{var n=-1,e=_9(t),i=t._dataOptions;return e<0?n=t._pageIndex:t._cache[t._pageIndex-e]?e>=0&&t._controller.viewportSize()>=0&&(e>0&&(JY(t)+1===i.pageCount()&&t._cache.length<y9(t)+1||t._pageIndex===e&&y9(t,!0))&&(n=e-1),n<0&&e+t._cache.length<=t._pageIndex+y9(t)&&(n=e+t._cache.length)):n=t._pageIndex,t._loadingPageIndexes[n]&&(n=-1),n})(this);if(o>=0){var a=((t,n)=>{var e=t._dataOptions;if(n===t.pageIndex()||!e.isLoading()&&n<e.pageCount()||!e.hasKnownLastPage()&&n===e.pageCount())return e.pageIndex(n),t._loadingPageIndexes[n]=!0,Qt(e.load()).always(()=>{t._loadingPageIndexes[n]=!1})})(this,o);a&&(e=new et,a.done(()=>{var s=this._delayDeferred;s?s.done(e.resolve).fail(e.reject):e.resolve()}).fail(e.reject),n.updateLoading())}}else e=n.load();return!e&&this._lastPageIndex!==this.pageIndex()&&this._dataOptions.onChanged({changeType:"pageIndex"}),e||(new et).resolve()}loadIfNeed(){var n=this._controller.isVirtualMode(),e=this._controller.isAppendMode();if((n||e)&&!this._dataOptions.isLoading()&&(!this._isChangedFiring||this._controller.isVirtual())){var i=this._controller.getViewportPosition();i>0?this._controller._setViewportPositionCore(i):this.load()}}handleDataChanged(n,e){var o,a,i=this._dataOptions,r=this._cache.length,s=this._controller.isVirtualMode(),l=this._controller.isAppendMode();if(e&&e.changes)v9(this,n,e);else if(!1!==this.option(XY)&&(s||l)){var u=_9(this);if(u>=0&&(s&&u+this._cache.length!==i.pageIndex()&&u-1!==i.pageIndex()&&(r=0,this._cache=[]),l))if(0===i.pageIndex())this._cache=[];else if(i.pageIndex()<JY(this))return void v9(this,n,{changeType:"append",items:[]});var S,f={pageIndex:i.pageIndex(),itemsLength:i.items(!0).length,itemsCount:this.itemsCount(!0)};this.option("scrolling.removeInvisiblePages")&&s?a=this._cache.length>Math.max(y9(this)+(this.option("scrolling.preloadEnabled")?1:0),2):CAe(this,n,{isDelayed:!0}),u===i.pageIndex()+1?(a&&(S=this._cache.pop()),o="prepend",this._cache.unshift(f)):(a&&(S=this._cache.shift()),o="append",this._cache.push(f));var T=s&&0===r&&yAe(this);bAe(this,n,this._cache.length>1?o:void 0,T,S),this._delayDeferred=this.load().done(()=>{CAe(this,n)&&this.load()})}else bAe(this,n,e)}getDelayDeferred(){return this._delayDeferred}itemsCount(n){var e=0,i=this._controller.isVirtualMode();return!n&&i?this._cache.forEach(r=>{e+=r.itemsCount}):e=this._dataOptions.itemsCount(),e}virtualItemsCount(){var n=_9(this);n<0&&(n=this._dataOptions.pageIndex());var e=n*this._dataOptions.pageSize(),i=this._cache.length*this._dataOptions.pageSize();return{begin:e,end:Math.max(0,this._dataOptions.totalItemsCount()-i-e)}}reset(){this._loadingPageIndexes={},this._cache=[]}}var C9="scrolling.legacyMode",wAe=t=>"virtual"===t.option("scrolling.mode")||t._isVirtual;function SAe(t,n,e){var i,r=[],o=[],a=[];function s(S){var T=S.element?S.$element():S,R=rs.offset(T);return R?S.scrollTop()-(R.top-t.offset().top):t.offset().top}var S,T,l={on:function(S,T,R){S.on("scroll",R)},off:function(S,T,R){S.off("scroll",R)}};function u(S){var Y,T="#document"===S.get(0).nodeName,R=S.get(0).nodeType===Fn().Node.ELEMENT_NODE,L=S.data("dxScrollable"),z=l;if(L||(L=T&&U(Fn())||R&&"auto"===S.css("overflowY")&&S,z=Se,L)){var j=(Y=L,function(){var ie=Y.scrollTop()-s(Y);n(ie=ie>0?ie:0)});z.on(L,"scroll",j),o.push(function(Y){var ie=s(L);Y-ie>=0&&L[L.scrollTo?"scrollTo":"scrollTop"](Y+ie)}),r.push(L),a.push(function(){z.off(L,"scroll",j)})}}for(i=(e=e||t).parent();i.length;void 0,i=U(null!==(T=(S=i).get(0).parentNode)&&void 0!==T?T:S.get(0).host))u(i);return{scrollTo:function(S){we(o,function(T,R){R(S)})},dispose:function(){we(a,function(S,T){T()})}}}var QY=ji.inherit(function(){var t={ctor:function(n,e,i){this._dataOptions=e,this.component=n,this._viewportSize=!1===n.option(C9)?15:0,this._viewportItemSize=20,this._viewportItemIndex=0,this._position=0,this._isScrollingBack=!1,this._contentSize=0,this._itemSizes={},this._sizeRatio=1,this._isVirtual=i,this.positionChanged=Zi(),this._dataLoader=new EUt(this,this._dataOptions)},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},isVirtual:function(){return this._isVirtual},virtualItemsCount:function(){if(wAe(this)){var n=this._dataOptions,e=n.totalItemsCount();if(!1===this.option(C9)&&-1!==e){var i=this.getViewportParams(),r=n.loadedOffset(),o=n.loadedItemCount(),a=Math.max(i.skip,r),s=Math.min(i.take,o),l=Math.max(e-(a+s),0);return{begin:a,end:l}}return this._dataLoader.virtualItemsCount.apply(this._dataLoader,arguments)}},getScrollingTimeout:function(){var n=this.option("scrolling.renderAsync"),e=0;if(Z(n)){if(n){var i;e=null!==(i=this.option("scrolling.timeout"))&&void 0!==i?i:0}}else(e=Math.min(this.option("scrolling.timeout")||0,this._dataOptions.changingDuration()))<this.option("scrolling.renderingThreshold")&&(e=this.option("scrolling.minTimeout")||0);return e},setViewportPosition:function(n){var e=new et,i=this.getScrollingTimeout();return clearTimeout(this._scrollTimeoutID),i>0?this._scrollTimeoutID=setTimeout(()=>{this._setViewportPositionCore(n),e.resolve()},i):(this._setViewportPositionCore(n),e.resolve()),e.promise()},getViewportPosition:function(){return this._position},getItemIndexByPosition:function(n,e,i){var r;n=null!==(r=n)&&void 0!==r?r:this._position;for(var o=this.getItemSize(),a=0,s=0,l=Object.keys(this._itemSizes).concat(-1),u=0;u<l.length&&a<n;u++){var f=parseInt(l[u]),S=(n-a)/o;if(f<0||s+S<f){s+=S,this._sizeRatio<1&&Z(e)&&(s=e+i/this._viewportItemSize);break}a+=(S=f-s)*o,s+=S;var T=this._itemSizes[f];s+=(a+=T)<n?1:(n-a+T)/T}return Math.round(50*s)/50},isScrollingBack:function(){return this._isScrollingBack},_setViewportPositionCore:function(n){var e=this._position||0;this._position=n,e!==this._position&&(this._isScrollingBack=this._position<e);var i=this.getItemIndexByPosition(),r=this.setViewportItemIndex(i);return this.positionChanged.fire(),r},setContentItemSizes:function(n){var e=this.virtualItemsCount();if(this._contentSize=n.reduce((o,a)=>o+a,0),e){n.forEach((o,a)=>{this._itemSizes[e.begin+a]=o});var i=(e.begin+e.end+this.itemsCount())*this._viewportItemSize,r=vn.getContentHeightLimit(Ro);this._sizeRatio=i>r?r/i:1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(n,e){var i=this.virtualItemsCount(),r=n;if(!i)return 0;var o=0,a=this._dataOptions.totalItemsCount();return Object.keys(this._itemSizes).forEach(s=>{r&&(e?s>=a-n:s<n)&&(o+=this._itemSizes[s],r--)}),Math.floor(o+r*this._viewportItemSize*this._sizeRatio)},getContentOffset:function(n){var e="end"===n,i=this.virtualItemsCount();return i?this.getItemOffset(e?i.end:i.begin,e):0},getVirtualContentSize:function(){return this.virtualItemsCount()?this.getContentOffset("begin")+this.getContentOffset("end")+this._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(n){if(this._viewportItemIndex=n,!1!==this.option(C9))return this._dataLoader.viewportItemIndexChanged.apply(this._dataLoader,arguments)},viewportItemSize:function(n){return void 0!==n&&(this._viewportItemSize=n),this._viewportItemSize},viewportSize:function(n){return void 0!==n&&(this._viewportSize=n),this._viewportSize},viewportHeight:function(n,e){var i=e??this._position,r=this.getItemIndexByPosition(i),o=this.getItemIndexByPosition(i+n,r,n);this.viewportSize(Math.ceil(o-r)),!Z(e)&&this._viewportItemIndex!==r&&this._setViewportPositionCore(i)},reset:function(n){this._dataLoader.reset(),n||(this._itemSizes={})},subscribeToWindowScrollEvents:function(n){this._windowScroll=this._windowScroll||SAe(n,e=>{this.viewportItemSize()&&this.setViewportPosition(e)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(n){this._windowScroll&&this._windowScroll.scrollTo(n)},isVirtualMode:function(){return wAe(this)},isAppendMode:function(){return(t=>"infinite"===t.option("scrolling.mode")&&!t._isVirtual)(this)},getViewportParams:function(){var n,e="virtual"===this.option("scrolling.mode"),i=this._dataOptions.totalItemsCount(),o=this._dataOptions.hasKnownLastPage()&&this._viewportItemIndex>i?i:this._viewportItemIndex,a=this._viewportSize+o,s=this.option("scrolling.prerenderedRowChunkSize")||1,l=this.isScrollingBack(),u=null!==(n=this.option("scrolling.prerenderedRowCount"))&&void 0!==n?n:1,S=l?0:u,T=Math.floor(Math.max(0,o-(l?u:0))/s)*s,R=Math.ceil((a+S-T)/s)*s;if(e){var L=Math.max(0,i-T);R=Math.min(R,L)}return{skip:T,take:R}},itemsCount:function(){return this.option(C9)?this._dataLoader.itemsCount.apply(this._dataLoader,arguments):this._dataOptions.itemsCount()}};return["pageIndex","beginPageIndex","endPageIndex","pageSize","load","loadIfNeed","handleDataChanged","getDelayDeferred"].forEach(function(n){t[n]=function(){return this._dataLoader[n].apply(this._dataLoader,arguments)}}),t}()),DAe="bottom-load-panel",IUt="table-content",EAe="dx-freespace-row",b9="dx-virtual-row",Sr="scrolling.legacyMode",eZ="paging.pageIndex",ju=function(t){return"virtual"===t.option("scrolling.mode")},cf=function(t){return"infinite"===t.option("scrolling.mode")},hf=function(t){return ju(t)||cf(t)},TAe=function(t,n,e,i){for(var r=0;r<n+1;r++){var o=t[e?t.length-1-r:r];o&&!i(o,r===n,e)&&n++}return n},x9=function(t,n){return"data"===t.rowType&&!t.isNewRow||"group"===t.rowType&&n.isGroupItemCountable(t.data)},LUt=function(t){return t.forEach(function(n,e){n.rowIndex=e}),t},BUt=function(){var t=function(e){var i=e._virtualScrollController.beginPageIndex(-1);ju(e)&&(i<0||e.viewportSize()>=0&&e.getViewportItemIndex()>=0&&(i*e.pageSize()>e.getViewportItemIndex()||i*e.pageSize()+e.itemsCount()<e.getViewportItemIndex()+e.viewportSize())&&e._dataSource.isLoading()?e._isLoading||(e._isLoading=!0,e.loadingChanged.fire(!0)):e._isLoading&&(e._isLoading=!1,e.loadingChanged.fire(!1)))},n={init:function(){this.callBase.apply(this,arguments),this._items=[],this._totalCount=-1,this._isLoaded=!0,this._loadPageCount=1,this._virtualScrollController=new QY(this.component,this._getVirtualScrollDataOptions())},_getVirtualScrollDataOptions:function(){var e=this;return{pageSize:function(){return e.pageSize()},totalItemsCount:function(){return e.totalItemsCount()},hasKnownLastPage:function(){return e.hasKnownLastPage()},pageIndex:function(i){return e._dataSource.pageIndex(i)},isLoading:function(){return e._dataSource.isLoading()&&!e.isCustomLoading()},pageCount:function(){return e.pageCount()},load:function(){return e._dataSource.load()},updateLoading:function(){t(e)},itemsCount:function(){return e.itemsCount(!0)},items:function(){return e._dataSource.items()},viewportItems:function(i){return i&&(e._items=i),e._items},onChanged:function(i){e.changed.fire(i)},changingDuration:function(i){return e.isLoading()?300:e._renderTime||0}}},_handleLoadingChanged:function(e){!1!==this.option(Sr)?((!ju(this)||this._isLoadingAll)&&(this._isLoading=e,this.callBase.apply(this,arguments)),this._startLoadTime=e?new Date:void 0):this.callBase.apply(this,arguments)},_handleLoadError:function(){!1!==this.option(Sr)&&(this._isLoading=!1,this.loadingChanged.fire(!1)),this.callBase.apply(this,arguments)},_handleDataChanged:function(e){if(!1===this.option(Sr))return this._items=this._dataSource.items().slice(),this._totalCount=this._dataSourceTotalCount(!0),void this.callBase.apply(this,arguments);var i=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(i,e)},_customizeRemoteOperations:function(e,i){var r=!1===this.option(Sr),o=this.option("scrolling.renderAsync");Z(o)||(o=this._renderTime>=this.option("scrolling.renderingThreshold")),(ju(this)||cf(this)&&r)&&!i.reload&&(i.skip||r)&&!o&&(e.delay=void 0),this.callBase.apply(this,arguments)},items:function(){return this._items},_dataSourceTotalCount:function(e){return!1===this.option(Sr)&&ju(this)&&!e?this._totalCount:this.callBase()},itemsCount:function(e){return e||!1===this.option(Sr)?this.callBase():this._virtualScrollController.itemsCount()},load:function(e){return!1===this.option(Sr)||e?this.callBase(e):this._virtualScrollController.load()},isLoading:function(){return!1===this.option(Sr)?this._dataSource.isLoading():this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},resetPagesCache:function(e){e||this._virtualScrollController.reset(!0),this.callBase.apply(this,arguments)},_changeRowExpandCore:function(){var e=this.callBase.apply(this,arguments);return!1===this.option(Sr)||(this.resetPagesCache(),t(this)),e},reload:function(){this._dataSource.pageIndex(this.pageIndex());var e=this._virtualScrollController;if(!1!==this.option(Sr)&&e){var i=new et;return this.callBase.apply(this,arguments).done(function(r){var o=e.getDelayDeferred();o?o.done(i.resolve).fail(i.reject):i.resolve(r)}).fail(i.reject),i}return this.callBase.apply(this,arguments)},refresh:function(e,i){if(!1!==this.option(Sr)){var r=e.storeLoadOptions,o=this._dataSource;i.reload?(this._virtualScrollController.reset(),o.items().length=0,this._isLoaded=!1,t(this),this._isLoaded=!0,cf(this)?(this.pageIndex(0),o.pageIndex(0),r.pageIndex=0,e.pageIndex=0,r.skip=0):(o.pageIndex(this.pageIndex()),o.paginate()&&(e.pageIndex=this.pageIndex(),r.skip=this.pageIndex()*this.pageSize()))):cf(this)&&r.skip&&this._totalCountCorrection<0&&(r.skip+=this._totalCountCorrection)}return this.callBase.apply(this,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)},loadPageCount:function(e){if(!Z(e))return this._loadPageCount;this._loadPageCount=e},_handleDataLoading:function(e){var i=this.loadPageCount(),r=this.pageSize(),o=!1===this.option(Sr),a=e.storeLoadOptions,s=Z(a.take);e.loadPageCount=i,!e.isCustomLoading&&o&&s&&i>1&&r>0&&(a.take=i*r),this.callBase.apply(this,arguments)},_loadPageSize:function(){return this.callBase.apply(this,arguments)*this.loadPageCount()}};return["beginPageIndex","endPageIndex","pageIndex"].forEach(function(e){n[e]=function(){if(!1===this.option(Sr)){var i=this._dataSource;return i.pageIndex.apply(i,arguments)}var r=this._virtualScrollController;return r[e].apply(r,arguments)}}),["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentItemSizes","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","loadIfNeed"].forEach(function(e){n[e]=function(){var i=this._virtualScrollController;return i[e].apply(i,arguments)}}),n}(),NUt=function(){var t=function(n,e){var i=n.toArray().map(a=>U(a).parent("."+e).get(0)).filter(a=>a);i.length&&(n=U(i));for(var r=e===EAe?n.length-1:n.length,o=0;o<r;o++)n.eq(o).remove()};return{init:function(){var n,e=this.getController("data");this.callBase(),e.pageChanged.add(i=>{var r=this._scrollTop;this.scrollToPage(i??e.pageIndex()),!1===this.option(Sr)&&this._scrollTop===r&&e.updateViewport()}),e.dataSourceChanged.add(()=>{!this._scrollTop&&this._scrollToCurrentPageOnResize()}),null===(n=e.stateLoaded)||void 0===n||n.add(()=>{this._scrollToCurrentPageOnResize()}),this._scrollToCurrentPageOnResize()},_scrollToCurrentPageOnResize:function(){var n=this.getController("data");if(n.pageIndex()>0){var e=()=>{this.resizeCompleted.remove(e),this.scrollToPage(n.pageIndex())};this.resizeCompleted.add(e)}},scrollToPage:function(n){var r,e=this._dataController,i=e?e.pageSize():0;if(ju(this)||cf(this)){var o=e.getItemSize(),a=e.getItemSizes(),s=n*i;for(var l in r=s*o,a)l<s&&(r+=a[l]-o)}else r=0;this.scrollTo({y:r,x:this._scrollLeft})},renderDelayedTemplates:function(n){this._waitAsyncTemplates(n).done(()=>{this._updateContentPosition(!0)}),this.callBase.apply(this,arguments)},_renderCore:function(n){var e=new Date,i=this.callBase.apply(this,arguments),r=this._dataController._dataSource;if(r&&n){var o=n.items?n.items.length:20,a=this._dataController.viewportSize()||20;r._renderTime=vn.isVirtualRowRendering(this)&&o>0&&!1!==this.option(Sr)?(new Date-e)*a/o:new Date-e}return i},_getRowElements:function(n){var e=this.callBase(n);return e&&e.not("."+b9)},_removeRowsElements:function(n,e,i){var r=this._getRowElements(n).toArray();r="append"===i?r.slice(0,e):r.slice(-e);var o=this.getController("errorHandling");r.map(a=>{var s=U(a);o&&o.removeErrorRow(s.next()),s.remove()})},_updateContent:function(n,e){var i,r=this._findContentElement(),o=e&&e.changeType,a=et(),s=r.children().first();return"append"===o||"prepend"===o?this._waitAsyncTemplates(e).done(()=>{var l=this._getBodies(n);1===l.length?this._getBodies(s)["append"===o?"append":"prepend"](l.children()):l["append"===o?"appendTo":"prependTo"](s),n.remove(),i=this._getFreeSpaceRowElements(s),t(i,EAe),e.removeCount&&this._removeRowsElements(s,e.removeCount,o),this._restoreErrorRow(s),a.resolve()}).fail(a.reject):this.callBase.apply(this,arguments).done(()=>{"update"===o&&this._restoreErrorRow(s),a.resolve()}).fail(a.reject),a.promise().done(()=>{this._updateBottomLoading()})},_addVirtualRow:function(n,e,i,r){if(r){var o=this._createEmptyRow(b9,e,r);o=this._wrapRowIfNeed(n,o),this._appendEmptyRow(n,o,i)}},_updateContentItemSizes:function(){var n=this._getRowHeights(),e=this._correctRowHeights(n);this._dataController.setContentItemSizes(e)},_updateViewportSize:function(n,e){Z(n)||(n=Zn(this._hasHeight?this.element():Fn())),this._dataController.viewportHeight(n,e)},_getRowHeights:function(){var n,e,i=null===(n=this.getController("editing"))||void 0===n||null===(e=n.isPopupEditMode)||void 0===e?void 0:e.call(n),r=this._getRowElements(this._tableElement).toArray();return i&&(r=r.filter(o=>!U(o).hasClass("dx-row-inserted"))),r.map(o=>Mi(o).height)},_correctRowHeights:function(n){for(var e=this._dataController,i=e._dataSource,r=[],o=e.getVisibleRows(),a=0,s=!0,l=-1,u=0;u<n.length;u++){var f=o[u];Z(f)&&(!1===this.option(Sr)?(l>=0&&l!==f.loadIndex&&(r.push(a),a=0),l=f.loadIndex):x9(f,i)&&(s?s=!1:(r.push(a),a=0)),a+=n[u])}return a>0&&r.push(a),r},_updateContentPosition:function(n){var e=this._dataController;if(e.viewportItemSize(this._rowHeight||20),ju(this)||vn.isVirtualRowRendering(this)){n||this._updateContentItemSizes();var r=e.getContentOffset("begin"),o=e.getContentOffset("end"),a=this.getTableElements(),s=a.children("tbody").children("."+b9);t(s,b9),a.each((l,u)=>{var f=l>0,S=this._isFixedTableRendering;this._isFixedTableRendering=f,this._addVirtualRow(U(u),f,"top",r),this._addVirtualRow(U(u),f,"bottom",o),this._isFixedTableRendering=S})}},_isTableLinesDisplaysCorrect:function(n){return n.find(".dx-column-lines").length>0===this.option("showColumnLines")},_isColumnElementsEqual:function(n,e){var i=n.length===e.length;return i&&we(n,function(r,o){if(o.style.width!==e[r].style.width)return i=!1}),i},_getCellClasses:function(n){var e=[],i=n.cssClass,r="expand"===n.command;return i&&e.push(i),r&&e.push(this.addWidgetPrefix("group-space")),e},_findBottomLoadPanel:function(n){var e=n||this.element(),i=e&&e.find("."+this.addWidgetPrefix(DAe));if(i&&i.length)return i},_updateBottomLoading:function(){var n=ju(this),e=cf(this),i=!this._dataController.hasKnownLastPage()&&this._dataController.isLoaded()&&(n||e),r=this._findContentElement(),o=this._findBottomLoadPanel(r);i?o||U("<div>").addClass(this.addWidgetPrefix(DAe)).append(this._createComponent(U("<div>"),bd).$element()).appendTo(r):o&&o.remove()},_handleScroll:function(n){var e=!0===this.option(Sr),i=0===n.scrollOffset.top,r=this._scrollTop!==n.scrollOffset.top;(r||n.forceUpdateScrollPosition)&&(this._hasHeight||!e&&i)&&this._rowHeight&&(this._scrollTop=n.scrollOffset.top,ju(this)&&!1===this.option(Sr)&&(this._updateContentItemSizes(),this._updateViewportSize(null,this._scrollTop)),this._dataController.setViewportPosition(n.scrollOffset.top)),this.callBase.apply(this,arguments)},_needUpdateRowHeight:function(n){return this.callBase.apply(this,arguments)||n>0&&cf(this)&&!vn.isVirtualRowRendering(this)},_updateRowHeight:function(){if(this.callBase.apply(this,arguments),this._rowHeight){this._updateContentPosition();var n=Zn(this._hasHeight?this.element():Fn()),e=this._dataController;!1===this.option(Sr)?(this._updateViewportSize(n),e.updateViewport()):e.viewportSize(Math.ceil(n/this._rowHeight))}},updateFreeSpaceRowHeight:function(){var n=this.callBase.apply(this,arguments);return n&&this._updateContentPosition(),n},setLoading:function(n,e){var i=this._dataController,r=i.pageIndex()>0&&i.isLoaded()&&!!this._findBottomLoadPanel();!1===this.option(Sr)&&n&&i.isViewportChanging()||(r&&(n=!1),this.callBase.call(this,n,e))},_resizeCore:function(){var n=this,e=n.element();n.callBase(),n.component.$element()&&!n._windowScroll&&k2(e)&&(n._windowScroll=SAe(e,function(i){!n._hasHeight&&n._rowHeight&&n._dataController.setViewportPosition(i)},n.component.$element()),n.on("disposing",function(){n._windowScroll.dispose()})),!1!==this.option(Sr)&&n.loadIfNeed()},loadIfNeed:function(){var n,e=this._dataController;null==e||null===(n=e.loadIfNeed)||void 0===n||n.call(e)},setColumnWidths:function(n){var i,e=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(i=e?U(e.content()):this.element(),this.callBase(n,i.children("."+this.addWidgetPrefix("content")).children(":not(."+this.addWidgetPrefix(IUt)+")")))},_restoreErrorRow:function(){if(!1===this.option(Sr)){var n=this.getController("errorHandling");n?.removeErrorRow()}this.callBase.apply(this,arguments)},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}(),Qm={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,prerenderedRowChunkSize:1,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard",loadTwoPagesOnStart:!1,legacyMode:!1,prerenderedRowCount:1}}},extenders:{dataSourceAdapter:BUt,controllers:{data:function(){var t={_refreshDataSource:function(){var n=this.callBase.apply(this,arguments)||(new et).resolve().promise();return n.done(this.initVirtualRows.bind(this)),n},_loadDataSource:function(){if(this._rowsScrollController&&hf(this)){var n,{loadPageCount:e}=Z(this._loadViewportParams)?this.getLoadPageParams():{};e>=1&&(null===(n=this._dataSource)||void 0===n||n.loadPageCount(e))}return this.callBase.apply(this,arguments)},getRowPageSize:function(){var n=this.option("scrolling.rowPageSize"),e=this.pageSize();return e&&e<n?e:n},reload:function(){var n=this._rowsScrollController||this._dataSource,e=n&&n.getItemIndexByPosition(),i=this.callBase.apply(this,arguments);return i&&i.done(()=>{if(ju(this)||vn.isVirtualRowRendering(this)){var r=this.getRowIndexOffset(),o=Math.floor(e)-r,a=this.component,s=a.getScrollable&&a.getScrollable(),l=this.dataSource().operationTypes().sorting;if(s&&!l&&o>=0){var u=a.getRowElement(o),f=u&&u[0]&&U(u[0]),S=f&&f.position().top;S>(Ro.mozilla||Ro.chrome&&Ro.version>=91?1:0)&&(S=Math.round(S+Zn(f)*(e%1)),s.scrollTo({y:S}))}}})},initVirtualRows:function(){var n=vn.isVirtualRowRendering(this);if(this._allItems=null,this._loadViewportParams=null,"virtual"!==this.option("scrolling.mode")&&!0!==n||!1===n||!1!==this.option(Sr)&&!this.option("scrolling.rowPageSize"))return this._visibleItems=null,void(this._rowsScrollController=null);var e=!ju(this)&&this.pageIndex()>=this.pageCount()?this.pageCount()-1:this.pageIndex();this._rowPageIndex=Math.ceil(e*this.pageSize()/this.getRowPageSize()),this._visibleItems=!1===this.option(Sr)?null:[],this._viewportChanging=!1,this._needUpdateViewportAfterLoading=!1,this._rowsScrollController||(this._rowsScrollController=new QY(this.component,this._getRowsScrollDataOptions(),!0),this._rowsScrollController.positionChanged.add(()=>{var i;if(!1===this.option(Sr))return this._viewportChanging=!0,this.loadViewport(),void(this._viewportChanging=!1);null===(i=this._dataSource)||void 0===i||i.setViewportItemIndex(this._rowsScrollController.getViewportItemIndex())})),!1===this.option(Sr)&&this._updateLoadViewportParams(),this.isLoaded()&&!1!==this.option(Sr)&&this._rowsScrollController.load()},isViewportChanging:function(){return this._viewportChanging},_getRowsScrollDataOptions:function(){var n=this,e=function(i){return x9(i,n._dataSource)};return{pageSize:function(){return n.getRowPageSize()},loadedOffset:function(){var i;return ju(n)&&(null===(i=n._dataSource)||void 0===i?void 0:i.lastLoadOptions().skip)||0},loadedItemCount:function(){return n._itemCount},totalItemsCount:function(){return hf(n)?n.totalItemsCount():!1===n.option(Sr)?n._itemCount:n._items.filter(e).length},hasKnownLastPage:function(){return!1!==n.option(Sr)||n.hasKnownLastPage()},pageIndex:function(i){return void 0!==i&&(n._rowPageIndex=i),n._rowPageIndex},isLoading:function(){return n.isLoading()},pageCount:function(){return Math.ceil(this.totalItemsCount()/this.pageSize())||1},load:function(){n._rowsScrollController.pageIndex()>=this.pageCount()&&(n._rowPageIndex=this.pageCount()-1,n._rowsScrollController.pageIndex(n._rowPageIndex)),(this.items().length||!this.totalItemsCount())&&n._rowsScrollController.handleDataChanged(i=>{(i=i||{}).changeType=i.changeType||"refresh",i.items=i.items||n._visibleItems,n._visibleItems.forEach((r,o)=>{r.rowIndex=o}),n._fireChanged(i)})},updateLoading:function(){},itemsCount:function(){return this.items(!0).length},correctCount:function(i,r,o){return TAe(i,r,o,(a,s,l)=>a.isNewRow?s&&!l:s&&l?!a.isNewRow:e(a))},items:function(i){var r=n._items;if(n.option(Sr)){var a=n.dataSource()?.virtualItemsCount(),s=a?a.begin:0,l=n.getRowPageSize(),u=n._rowPageIndex*l-s,f=l;if(u<0)return[];u&&(u=this.correctCount(r,u),r=r.slice(u)),f&&(f=this.correctCount(r,f),r=r.slice(0,f))}return i?r.filter(e):r},viewportItems:function(i){return i&&!1!==n.option(Sr)&&(n._visibleItems=i),n._visibleItems},onChanged:function(){},changingDuration:function(i){var r=n.dataSource();return null!=r&&r.isLoading()&&!1!==n.option(Sr)?300:r?._renderTime||0}}},_updateItemsCore:function(n){var e=this.getRowIndexDelta();if(this.callBase.apply(this,arguments),!1===this.option(Sr)&&vn.isVirtualRowRendering(this))"update"===n.changeType&&0===n.rowIndices.length&&n.cancelEmptyChanges&&(n.cancel=!0);else{var i=this._rowsScrollController;if(i){var r=this._visibleItems,o="refresh"===n.changeType||n.isLiveUpdate;if("append"===n.changeType&&n.items&&!n.items.length)return;o||"append"===n.changeType||"prepend"===n.changeType?(n.cancel=!0,o&&i.reset(!0),i.load()):("update"===n.changeType?n.rowIndices.forEach((a,s)=>{var l=n.changeTypes[s],u=n.items[s];"update"===l?r[a]=u:"insert"===l?r.splice(a,0,u):"remove"===l&&r.splice(a,1)}):(r.forEach((a,s)=>{r[s]=this._items[s+e]||r[s]}),n.items=r),LUt(r))}}},_updateLoadViewportParams:function(){var n=this._rowsScrollController.getViewportParams(),e=this.pageSize();if(n&&!hf(this)&&e>0){var i=this.pageIndex()*e;n.skip+=i}this._loadViewportParams=n},_processItems:function(n){var e=this.callBase.apply(this,arguments);if(!1===this.option(Sr)){var i,a,s,l,r=this._dataSource,o=null!==(i=r?.lastLoadOptions().skip)&&void 0!==i?i:0,u=!1;e.forEach(f=>{var S=f.rowType,T=x9(f,r),R="group"===S&&(a||T||"group"!==s&&o>0),L="data"===S&&T&&(a||"group"!==s);!f.isNewRow&&Z(a)&&(R||L)&&(!l||u)&&o++,(R||L)&&(u=!0),f.loadIndex=o,a=T,s=S,l=f.isNewRow})}return e},_afterProcessItems:function(n){if(this._itemCount=n.filter(a=>x9(a,this._dataSource)).length,Z(this._loadViewportParams)){this._updateLoadViewportParams();var e=n;if(this._allItems=n,n.length){var{skipForCurrentPage:i}=this.getLoadPageParams(!0),r=n[0].loadIndex+i,o=this._loadViewportParams.take;e=n.filter(a=>(a.loadIndex>=r||a.isNewRow&&a.loadIndex>=r-1)&&(a.loadIndex<r+o||a.isNewRow&&a.loadIndex===r&&0===o))}return e}return this.callBase.apply(this,arguments)},_applyChange:function(n){var e=this,i=n.items,r=n.changeType,o=n.removeCount;switch(o&&(o=TAe(e._items,o,"prepend"===r,function(s,l){return"data"===s.rowType&&!s.isNewRow||"group"===s.rowType&&(e._dataSource.isGroupItemCountable(s.data)||l)}),n.removeCount=o),r){case"prepend":e._items.unshift.apply(e._items,i),o&&e._items.splice(-o);break;case"append":e._items.push.apply(e._items,i),o&&e._items.splice(0,o);break;default:e.callBase(n)}},items:function(n){return n?this._allItems||this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var n=0;if(this.option(Sr)){var e=this._visibleItems;e&&e[0]&&(n=this._items.indexOf(e[0]))}return n<0?0:n},getRowIndexOffset:function(n){var e=0,i=this.dataSource(),r=this._rowsScrollController,o=!1===this.option(Sr),a=hf(this);if(r&&!n)if(o&&Z(this._loadViewportParams)){var{skipForCurrentPage:s,pageIndex:l}=this.getLoadPageParams(!0),u=this.items(!0);if(e=a?l*this.pageSize():0,u.length){var f=u[0].loadIndex;e+=u.filter(T=>T.loadIndex<f+s).length}}else e=r.beginPageIndex()*r.pageSize();else if(a&&o&&i){var S;e=null!==(S=i.lastLoadOptions().skip)&&void 0!==S?S:0}else ju(this)&&i&&(e=i.beginPageIndex()*i.pageSize());return e},getDataIndex:function(n){return!1===this.option(Sr)?this.getRowIndexOffset(!0):this.callBase.apply(this,arguments)},viewportSize:function(){var n=this._rowsScrollController,e=this._dataSource,i=n?.viewportSize.apply(n,arguments);return!1===this.option(Sr)?i:e?.viewportSize.apply(e,arguments)},viewportHeight:function(n,e){var i;null===(i=this._rowsScrollController)||void 0===i||i.viewportHeight(n,e)},viewportItemSize:function(){var n=this._rowsScrollController,e=this._dataSource,i=n?.viewportItemSize.apply(n,arguments);return!1===this.option(Sr)?i:e?.viewportItemSize.apply(e,arguments)},setViewportPosition:function(){var n=this._rowsScrollController,e=this._dataSource;this._isPaging=!1,n?n.setViewportPosition.apply(n,arguments):e?.setViewportPosition.apply(e,arguments)},setContentItemSizes:function(n){var i=this._dataSource,r=this._rowsScrollController?.setContentItemSizes(n);return!1===this.option(Sr)?r:i?.setContentItemSizes(n)},getPreloadedRowCount:function(){var n=this.option("scrolling.preloadedRowCount"),e=this.option("scrolling.preloadEnabled");if(Z(n))return n;var i=this.viewportSize();return e?2*i:i},getLoadPageParams:function(n){var e,i,r=this.pageSize(),o=this._loadViewportParams,a=null===(e=this._dataSource)||void 0===e?void 0:e.lastLoadOptions(),s=a?.pageIndex||0,l=a?.take||0,u=this._rowsScrollController.isScrollingBack(),f=u?this.getPreloadedRowCount():0,S=u?0:this.getPreloadedRowCount(),T=(null===(i=this._dataSource)||void 0===i?void 0:i.totalCountCorrection())||0,R=Math.max(0,o.skip-f),L=n?s:Math.floor(r?R/r:0),j=o.skip-L*r,te=Math.ceil(r?(n?l:o.take+j+S-T)/r:0);return{pageIndex:L,loadPageCount:Math.max(1,te),skipForCurrentPage:Math.max(0,j)}},_updateVisiblePageIndex:function(n){if(this._rowsScrollController){if(Z(n))return this._silentOption(eZ,n),void this.pageChanged.fire();var e=this._rowsScrollController.getViewportItemIndex(),i=Math.floor(e/this.pageSize());this.pageIndex()!==i&&(this._silentOption(eZ,i),this.updateItems({changeType:"pageIndex"}))}},_getChangedLoadParams:function(){var n=this.getLoadPageParams(!0),{pageIndex:e,loadPageCount:i}=this.getLoadPageParams(),r=this._pageIndexIsValid(e),o=null;return!this._isLoading&&r&&(e!==n.pageIndex||i!==n.loadPageCount)&&(o={pageIndex:e,loadPageCount:i}),o},_pageIndexIsValid:function(n){var e=!0;return(cf(this)&&this.hasKnownLastPage()||ju(this))&&(e=n*this.pageSize()<this.totalItemsCount()),e},_loadItems:function(n,e){var i,r,o=hf(this),a=this._dataSource,s=this._getChangedLoadParams(),l=null!==(i=a?.loadPageCount())&&void 0!==i?i:0,u=this.pageSize()*l,f=null!==(r=a?.pageIndex())&&void 0!==r?r:0,S=s?.pageIndex===f,T=cf(this)&&this.totalItemsCount()<u,R="repaint"===this.option("editing.refreshMode"),z=!1;if(!a||o&&n&&(R&&e||s?.pageIndex>f||S&&T))return z;if(o&&this._isLoading&&(this._needUpdateViewportAfterLoading=!0),o&&s){z=!0,a.pageIndex(s.pageIndex),a.loadPageCount(s.loadPageCount),this._repaintChangesOnly=!0,this._needUpdateDimensions=!0;var j=this._viewportChanging;this.load().always(()=>{this._repaintChangesOnly=void 0,this._needUpdateDimensions=void 0}).done(()=>{var Y=this.pageCount()>0&&this.pageIndex()===this.pageCount()-1;(j||Y)&&this._updateVisiblePageIndex(),this._needUpdateViewportAfterLoading&&(this._needUpdateViewportAfterLoading=!1,this.loadViewport({checkLoadedParamsOnly:!0}))})}return z},loadViewport:function(n){var{checkLoadedParamsOnly:e,checkLoading:i,viewportIsNotFilled:r}=n??{};(hf(this)||vn.isVirtualRowRendering(this))&&(this._updateLoadViewportParams(),!this._loadItems(i,!r)&&(!this._isLoading||!i)&&!e&&this.updateItems({repaintChangesOnly:!0,needUpdateDimensions:!0,useProcessedItemsCache:!0,cancelEmptyChanges:!0}))},updateViewport:function(){var n,e,i=this.viewportSize(),r=this.items().length,o=i>r,a=null!==(n=null===(e=this._loadViewportParams)||void 0===e?void 0:e.take)&&void 0!==n?n:0,l=this._rowsScrollController?.getViewportParams().take;(o||a<l)&&!this._isPaging&&r&&this.loadViewport({checkLoading:!0,viewportIsNotFilled:o})},loadIfNeed:function(){if(!1!==this.option(Sr)){var n=this._rowsScrollController;n&&n.loadIfNeed();var e=this._dataSource;return e&&e.loadIfNeed()}},getItemSize:function(){var n=this._rowsScrollController;if(n)return n.getItemSize.apply(n,arguments);var e=this._dataSource;return e&&e.getItemSize.apply(e,arguments)},getItemSizes:function(){var n=this._rowsScrollController;if(n)return n.getItemSizes.apply(n,arguments);var e=this._dataSource;return e&&e.getItemSizes.apply(e,arguments)},getContentOffset:function(){var n=this._rowsScrollController;if(n)return n.getContentOffset.apply(n,arguments);var e=this._dataSource;return e&&e.getContentOffset.apply(e,arguments)},refresh:function(n){var e=this._dataSource;return e&&n&&n.load&&cf(this)&&e.resetCurrentTotalCount(),this.callBase.apply(this,arguments)},dispose:function(){var n=this._rowsScrollController;n&&n.dispose(),this.callBase.apply(this,arguments)},topItemIndex:function(){var n;return null===(n=this._loadViewportParams)||void 0===n?void 0:n.skip},bottomItemIndex:function(){var n=this._loadViewportParams;return n&&n.skip+n.take},virtualItemsCount:function(){var n=this._rowsScrollController;if(n)return n.virtualItemsCount.apply(n,arguments);var e=this._dataSource;return e?.virtualItemsCount.apply(e,arguments)},pageIndex:function(n){var r,e=hf(this),i=this._rowsScrollController;return!1===this.option(Sr)&&e&&i&&void 0===n?null!==(r=this.option(eZ))&&void 0!==r?r:0:this.callBase.apply(this,arguments)},_fireChanged:function(n){this.callBase.apply(this,arguments);var{operationTypes:e}=n;if(!1===this.option(Sr)&&hf(this)&&e){var{fullReload:i,pageIndex:r}=e;n.isDataChanged&&!i&&r&&this._updateVisiblePageIndex(this._dataSource.pageIndex())}},_getPagingOptionValue:function(n){var e=this.callBase.apply(this,arguments);return!1===this.option(Sr)&&hf(this)&&(e=this[n]()),e},isEmpty:function(){return!1===this.option(Sr)?!this.items(!0).length:this.callBase(this,arguments)},isLastPageLoaded:function(){var n=!1;if(!1===this.option(Sr)&&hf(this)){var{pageIndex:e,loadPageCount:i}=this.getLoadPageParams(!0),r=this.pageCount();n=e+i>=r}else n=this.callBase.apply(this,arguments);return n},reset:function(){this._itemCount=0,this._allItems=null,this.callBase.apply(this,arguments)},_applyFilter:function(){var n;null===(n=this._dataSource)||void 0===n||n.loadPageCount(1),this.callBase.apply(this,arguments)}};return vn.proxyMethod(t,"getVirtualContentSize"),vn.proxyMethod(t,"setViewportItemIndex"),t}(),resizing:{_updateMasterDataGridCore:function(t){return Qt(this.callBase.apply(this,arguments)).done(n=>{var e=ju(t)&&!1===t.option(Sr);!n&&e&&t.getScrollable()&&t.updateDimensions()})},resize:function(){var e,t=this,n=t.callBase;if(ju(t)||vn.isVirtualRowRendering(t)){clearTimeout(t._resizeTimeout);var i=new Date-t._lastTime,r=t.option("scrolling.updateTimeout");t._lastTime&&i<r?(e=new et,t._resizeTimeout=setTimeout(function(){n.apply(t).done(e.resolve).fail(e.reject),t._lastTime=new Date},r),t._lastTime=new Date):(e=n.apply(t),t._dataController.isLoaded()&&(t._lastTime=new Date))}else e=n.apply(t);return e},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:NUt}}};oi.registerModule("virtualScrolling",Qm),hk.extend(Qm.extenders.dataSourceAdapter);var tZ=(t,n)=>{var r,e=U(Fn()),{top:i}=t.offset();if(di(n)){if(n<i)return i-n;r=vw(e)-n+e.scrollTop()}else{var o=i-e.scrollTop(),a=vw(e)-o-Zn(t);r=Math.max(o,a)}return.9*r};const nZ=class UUt extends Zm{_getDefaultOptions(){return se(super._getDefaultOptions(),{orientation:"horizontal",tabIndex:null,onHoverStart:Be})}_initDataAdapter(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||super._initDataAdapter()}_renderContentImpl(){this._renderContextMenuOverlay(),super._renderContentImpl();var n=this._dataAdapter.getNodeByKey(this.option("_parentKey"));n&&this._renderItems(this._getChildNodes(n)),this._renderDelimiter()}_renderDelimiter(){this.$contentDelimiter=U("<div>").appendTo(this._itemContainer()).addClass("dx-context-menu-content-delimiter")}_getOverlayOptions(){return se(super._getOverlayOptions(),{onPositioned:this._overlayPositionedActionHandler.bind(this)})}_overlayPositionedActionHandler(n){this._showDelimiter(n)}_hoverEndHandler(n){super._hoverEndHandler(n),this._toggleFocusClass(!1,n.currentTarget)}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_hoverStartHandler(n){this.option("onHoverStart")(n),super._hoverStartHandler(n),this._toggleFocusClass(!0,n.currentTarget)}_drawSubmenu(n){this._actions.onShowing({rootItem:kn(n),submenu:this}),super._drawSubmenu(n),this._actions.onShown({rootItem:kn(n),submenu:this})}_hideSubmenu(n){this._actions.onHiding({cancel:!0,rootItem:kn(n),submenu:this}),super._hideSubmenu(n),this._actions.onHidden({rootItem:kn(n),submenu:this})}_showDelimiter(n){if(this.$contentDelimiter){var e=this._itemContainer().children(".".concat("dx-submenu")).eq(0),i=this.option("position").of,r={of:e},o=n.position,a=o.v.location,s=o.h.location,l=i.offset(),u=Math.round(l.left),f=Math.round(l.top),S=wn(i),T=Ln(i),R=wn(e),L=Ln(e);this.$contentDelimiter.css("display","block"),oa(this.$contentDelimiter,this._isMenuHorizontal()?S<R?S-2:R:2),xo(this.$contentDelimiter,this._isMenuHorizontal()?2:T<L?T-2:L),this._isMenuHorizontal()?a>f?Math.round(s)===u?(r.offset="1 -1",r.at=r.my="left top"):(r.offset="-1 -1",r.at=r.my="right top"):(xo(this.$contentDelimiter,5),Math.round(s)===u?(r.offset="1 4",r.at=r.my="left bottom"):(r.offset="-1 2",r.at=r.my="right bottom")):s>u?Math.round(a)===f?(r.offset="-1 1",r.at=r.my="left top"):(r.offset="-1 -1",r.at=r.my="left bottom"):Math.round(a)===f?(r.offset="1 1",r.at=r.my="right top"):(r.offset="1 -1",r.at=r.my="right bottom"),rs.setup(this.$contentDelimiter,r)}}_getContextMenuPosition(){return this.option("position")}isOverlayVisible(){return this._overlay.option("visible")}getOverlayContent(){return this._overlay.$content()}};var ub="dx-menu",WUt=ub+"-vertical",IAe=ub+"-horizontal",iZ=ub+"-item",kAe=ub+"-items-container",rZ=iZ+"-expanded",w9="dx-context-menu",oZ=w9+"-container-border",MAe="dx-state-hover",S9=ub+"-adaptive-mode",AAe=ub+"-hamburger-button",qUt=S9+"-overlay-wrapper",Fk="showSubmenu",PS="nextItem",yv="prevItem",QUt={show:50,hide:300},FAe=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged","onItemRendered"];class PAe extends LTe{_getDefaultOptions(){return se(super._getDefaultOptions(),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})}_setOptionsByReference(){super._setOptionsByReference(),se(this._optionsByReference,{animation:!0,selectedItem:!0})}_itemElements(){var n=super._itemElements(),e=this._submenuItemElements();return n.add(e)}_submenuItemElements(){var n=[],e=".".concat(iZ),i=this._submenus.length&&this._submenus[0];return i&&i.itemsContainer()&&(n=i.itemsContainer().find(e)),n}_focusTarget(){return this.$element()}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_moveFocus(n){var a,l,e=this._getAvailableItems(),i=this._isMenuHorizontal(),r=this._getActiveItem(!0);switch(n){case"up":a=i?Fk:this._getItemsNavigationOperation(yv),l=this._getKeyboardNavigationAction(a,i?r:e)();break;case"down":a=i?Fk:this._getItemsNavigationOperation(PS),l=this._getKeyboardNavigationAction(a,i?r:e)();break;case"right":a=i?this._getItemsNavigationOperation(PS):Fk,l=this._getKeyboardNavigationAction(a,i?e:r)();break;case"left":a=i?this._getItemsNavigationOperation(yv):Fk,l=this._getKeyboardNavigationAction(a,i?e:r)();break;default:return super._moveFocus(n)}l&&0!==l.length&&this.option("focusedElement",kn(l))}_getItemsNavigationOperation(n){var e=n;return this.option("rtlEnabled")&&(e=n===yv?PS:yv),e}_getKeyboardNavigationAction(n,e){var i=Be;switch(n){case Fk:e.hasClass("dx-state-disabled")||(i=this._showSubmenu.bind(this,e));break;case PS:i=this._nextItem.bind(this,e);break;case yv:i=this._prevItem.bind(this,e)}return i}_clean(){super._clean(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)}_visibilityChanged(n){n&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())}_isAdaptivityEnabled(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")}_updateItemsWidthCache(){var n=this.$element().find("ul").first().children("li").children(".".concat(iZ));this._menuItemsWidth=this._getSummaryItemsWidth(n,!0)}_dimensionChanged(){if(this._isAdaptivityEnabled()){var n=ii(this.$element());this._toggleAdaptiveMode(this._menuItemsWidth>n)}}_init(){super._init(),this._submenus=[]}_initActions(){this._actions={},we(FAe,(n,e)=>{this._actions[e]=this._createActionByOption(e)})}_initMarkup(){this._visibleSubmenu=null,this.$element().addClass(ub),super._initMarkup(),this._addCustomCssClass(this.$element()),this.setAria("role","menubar")}_render(){super._render(),this._initAdaptivity()}_renderHamburgerButton(){return this._hamburger=new To(U("<div>").addClass(AAe),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}_toggleTreeView(n){wi(n)&&(n=!this._overlay.option("visible")),this._overlay.option("visible",n),this._toggleHamburgerActiveState(n)}_toggleHamburgerActiveState(n){this._hamburger&&this._hamburger.$element().toggleClass("dx-state-active",n)}_toggleAdaptiveMode(n){var e=this.$element().find(".".concat(IAe)),i=this.$element().find(".".concat(S9));n?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(n)),e.toggle(!n),i.toggle(n)}_removeAdaptivity(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}_treeviewItemClickHandler(n){this._actions.onItemClick(n),n.node.children.length||this._toggleTreeView(!1)}_getAdaptiveOverlayOptions(){var e=this.option("rtlEnabled")?"right":"left";return{_ignoreFunctionValueDeprecation:!0,maxHeight:()=>tZ(this.$element()),deferRendering:!1,shading:!1,animation:!1,hideOnParentScroll:!0,onHidden:()=>{this._toggleHamburgerActiveState(!1)},height:"auto",hideOnOutsideClick:i=>!U(i.target).closest(".".concat(AAe)).length,position:{collision:"flipfit",at:"bottom "+e,my:"top "+e,of:this._hamburger.$element()}}}_getTreeViewOptions(){var n={};return we(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],(e,i)=>{n[i]=this.option(i)}),we(["onItemContextMenu","onSelectionChanged","onItemRendered"],(e,i)=>{n[i]=r=>{this._actions[i](r)}}),se(n,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:e=>{this._overlay.repaint(),this._actions.onSubmenuShown(e)},onItemCollapsed:e=>{this._overlay.repaint(),this._actions.onSubmenuHidden(e)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})}_initAdaptivity(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=U("<div>").addClass(S9);var n=this._renderHamburgerButton();this._treeView=this._createComponent(U("<div>"),IS,this._getTreeViewOptions()),this._overlay=this._createComponent(U("<div>"),Cd,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(S9).addClass(this.option("cssClass")),this._overlay.$wrapper().addClass(qUt),this._$adaptiveContainer.append(n),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}}_getDelay(n){var e=this.option("showFirstSubmenuMode").delay;return Z(e)?Jn(e)?e[n]:e:QUt[n]}_keyboardHandler(n){return super._keyboardHandler(n,!!this._visibleSubmenu)}_renderContainer(){var n=U("<div>");return n.appendTo(this.$element()).addClass(this._isMenuHorizontal()?IAe:WUt),super._renderContainer(n)}_renderSubmenuItems(n,e){var i=this._createSubmenu(n,e);return this._submenus.push(i),this._renderBorderElement(e),i}_getKeyboardListeners(){return super._getKeyboardListeners().concat(this._visibleSubmenu)}_createSubmenu(n,e){var i=U("<div>").addClass(w9).appendTo(e),r=this._getChildNodes(n),o=this._createComponent(i,nZ,se(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:n.internalFields.key,items:r,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(e)}));return this._attachSubmenuHandlers(e,o),o}_getSubmenuOptions(){var n=U("<div>"),e=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:n,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:i=>{i.component.option("visible")&&this.option("focusedElement",i.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this._nestedItemOnItemRenderedHandler.bind(this),onLeftFirstItem:e?null:this._moveMainMenuFocus.bind(this,yv),onLeftLastItem:e?null:this._moveMainMenuFocus.bind(this,PS),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,e?yv:null),onExpandLastSubmenu:e?this._moveMainMenuFocus.bind(this,PS):null}}_getShowFirstSubmenuMode(){if(!this._isDesktopDevice())return"onClick";var n=this.option("showFirstSubmenuMode");return Jn(n)?n.name:n}_moveMainMenuFocus(n){var e=this._getAvailableItems(),i=e.length,r=e.filter(".".concat(rZ)).eq(0),o=e.index(r);this._hideSubmenu(this._visibleSubmenu),(o+=n===yv?-1:1)>=i?o=0:o<0&&(o=i-1);var a=e.eq(o);this.option("focusedElement",kn(a))}_nestedItemOnSelectionChangedHandler(n){var e=n.addedItems.length&&n.addedItems[0],i=nZ.getInstance(n.element);(0,this._actions.onSelectionChanged)(n),e&&this._clearSelectionInSubmenus(e[0],i),this._clearRootSelection(),this._setOptionWithoutOptionChange("selectedItem",e)}_clearSelectionInSubmenus(n,e){var i=!arguments.length;we(this._submenus,(r,o)=>{var a=o._itemContainer(),s=!a.is(e&&e._itemContainer()),l=a.find(".".concat(this._selectedItemClass()));if(s&&l.length||i){l.removeClass(this._selectedItemClass());var u=this._getItemData(l);u&&(u.selected=!1),o._clearSelectedItems()}})}_clearRootSelection(){var n=this.$element().find(".".concat(kAe)).first().children().children().filter(".".concat(this._selectedItemClass()));n.length&&(this._getItemData(n).selected=!1,n.removeClass(this._selectedItemClass()))}_nestedItemOnItemClickHandler(n){this._actions.onItemClick(n)}_nestedItemOnItemRenderedHandler(n){this._actions.onItemRendered(n)}_attachSubmenuHandlers(n,e){var r=e.getOverlayContent().find(".".concat("dx-submenu")),o=kt(xT,this.NAME+"_submenu");e.option({onShowing:this._submenuOnShowingHandler.bind(this,n,e),onShown:this._submenuOnShownHandler.bind(this,n,e),onHiding:this._submenuOnHidingHandler.bind(this,n,e),onHidden:this._submenuOnHiddenHandler.bind(this,n,e)}),we(r,(a,s)=>{Se.off(s,o),Se.on(s,o,null,this._submenuMouseLeaveHandler.bind(this,n))})}_submenuOnShowingHandler(n,e){var i=n.children(".".concat(oZ));this._actions.onSubmenuShowing({rootItem:kn(n),submenu:e}),i.show(),n.addClass(rZ)}_submenuOnShownHandler(n,e){this._actions.onSubmenuShown({rootItem:kn(n),submenu:e})}_submenuOnHidingHandler(n,e,i){var r=n.children(".".concat(oZ)),o=i;o.rootItem=kn(n),o.submenu=e,this._actions.onSubmenuHiding(o),(i=o).cancel||(this._visibleSubmenu===e&&(this._visibleSubmenu=null),r.hide(),n.removeClass(rZ))}_submenuOnHiddenHandler(n,e){this._actions.onSubmenuHidden({rootItem:kn(n),submenu:e})}_submenuMouseLeaveHandler(n,e){var i=U(e.relatedTarget).parents(".".concat(w9))[0],r=this._getSubmenuByRootElement(n).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&i!==r&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}_hideSubmenuAfterTimeout(){if(this._visibleSubmenu){var n=U(this._visibleSubmenu.$element().context).hasClass(MAe),e=this._visibleSubmenu.getOverlayContent().find(".".concat(MAe)).length;!this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover")&&!e&&!n&&this._visibleSubmenu.hide()}}_getSubmenuByRootElement(n){if(!n)return!1;var e=n.children(".".concat(w9));return e.length&&nZ.getInstance(e)}getSubmenuPosition(n){var e=this._isMenuHorizontal(),i=this.option("submenuDirection").toLowerCase(),r=this.option("rtlEnabled"),o={collision:"flip",of:n};switch(i){case"leftortop":o.at="left top",o.my=e?"left bottom":"right top";break;case"rightorbottom":o.at=e?"left bottom":"right top",o.my="left top";break;default:e?(o.at=r?"right bottom":"left bottom",o.my=r?"right top":"left top"):(o.at=r?"left top":"right top",o.my=r?"right top":"left top")}return o}_renderBorderElement(n){U("<div>").appendTo(n).addClass(oZ).hide()}_itemPointerDownHandler(n){U(n.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu")?this.option("focusedElement",null):super._itemPointerDownHandler(n)}_hoverStartHandler(n){var e=kt(qn.move,this.NAME),i=this._getItemElementByEventArgs(n),r=this._dataAdapter.getNodeByItem(this._getItemData(i)),o=Z(n.buttons)&&1===n.buttons||!Z(n.buttons)&&1===n.which;if(!this._isItemDisabled(i)){if(Se.off(i,e),!this._hasChildren(r))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!o){var a=this._getSubmenuByElement(i);this._clearTimeouts(),a.isOverlayVisible()||(Se.on(i,e,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}}_hoverEndHandler(n){var e=this._getItemElementByEventArgs(n),i=U(n.relatedTarget);super._hoverEndHandler(n),this._clearTimeouts(),!this._isItemDisabled(e)&&(i.hasClass("dx-context-menu-content-delimiter")||this.option("hideSubmenuOnMouseLeave")&&!i.hasClass(kAe)&&(this._hideSubmenuTimer=setTimeout(()=>{this._hideSubmenuAfterTimeout()},this._getDelay("hide"))))}_hideVisibleSubmenu(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}_showSubmenu(n){var e=this._getSubmenuByElement(n);this._visibleSubmenu!==e&&this._hideVisibleSubmenu(),e&&(this._clearTimeouts(),this.focus(),e.show(),this.option("focusedElement",e.option("focusedElement"))),this._visibleSubmenu=e,this._hoveredRootItem=n}_hideSubmenu(n){n&&n.hide(),this._visibleSubmenu===n&&(this._visibleSubmenu=null),this._hoveredRootItem=null}_itemMouseMoveHandler(n){if(!n.pointers||!n.pointers.length){var e=U(n.currentTarget);Z(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout(()=>{var i=this._getSubmenuByElement(e);i&&!i.isOverlayVisible()&&this._showSubmenu(e)},this._getDelay("show")))}}_clearTimeouts(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}_getSubmenuByElement(n,e){var i=this._getSubmenuByRootElement(n);if(i)return i;e=e||this._getItemData(n);var r=this._dataAdapter.getNodeByItem(e);return this._hasChildren(r)&&this._renderSubmenuItems(r,n)}_updateSubmenuVisibilityOnClick(n){var e=n.args.length&&n.args[0];if(e&&!this._disabledGetter(e.itemData)){var i=U(e.itemElement),r=this._getSubmenuByElement(i,e.itemData);if(this._updateSelectedItemOnClick(n),this._visibleSubmenu){if(this._visibleSubmenu===r)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(r&&!r.isOverlayVisible())return void this._showSubmenu(i)}}_optionChanged(n){if(FAe.indexOf(n.name)>=0)this._initActions();else switch(n.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(n.name,n.value);break;case"adaptivityEnabled":n.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(n.name,n.value),this._overlay.option(n.name,n.value)),super._optionChanged(n),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!n.value),super._optionChanged(n);break;default:this._isAdaptivityEnabled()&&(n.name===n.fullName||"items"===n.name)&&this._treeView.option(n.fullName,n.value),super._optionChanged(n)}}_changeSubmenusOption(n,e){we(this._submenus,(i,r)=>{r.option(n,e)})}selectItem(n){this._hideSubmenu(this._visibleSubmenu),super.selectItem(n)}unselectItem(n){this._hideSubmenu(this._visibleSubmenu),super.selectItem(n)}}On("dxMenu",PAe);const RAe=PAe,aZ=RAe;var sZ={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},LAe={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},Pk="filter-row",D9="filter-range-overlay",E9="filter-range-start",VAe="dx-editor-with-menu",db="dx-editor-container",lZ="dx-editor-cell",uZ="dx-highlight-outline",HAe="dx-focused",dZ="dx-filter-range-content",cZ="dx-filter-modified",Rk="input:not([type='hidden'])",oWt=["date","datetime","number"];function RS(t){return"onClick"===t.option("filterRow.applyFilter")}var hZ=function(t){var n=t&&t.children(),e=n&&n.data("dxComponents"),i=e&&e.length&&n.data(e[0]);if(i instanceof Ru)return i},aWt=function(){var t=function(o,a){var s="",l="",u=n(o,a),f=vn.getFormatOptionsByColumn(a,"filterRow");return Array.isArray(u)?(s=vn.formatValue(u[0],f),""!==(l=vn.formatValue(u[1],f))&&(s+=" - "+l)):Z(u)&&(s=vn.formatValue(u,f)),s};function n(o,a){if(a)return RS(o)&&void 0!==a.bufferedFilterValue?a.bufferedFilterValue:a.filterValue}var e=function(o,a){if(a)return RS(o)&&void 0!==a.bufferedSelectedFilterOperation?a.bufferedSelectedFilterOperation:a.selectedFilterOperation},i=function(o,a,s){var T,R,l=o._columnsController.columnOption(a),u=n(o,l),f=s.closest("."+o.addWidgetPrefix(D9)).length,S=s.hasClass(o.addWidgetPrefix(E9));return u&&Array.isArray(u)&&"between"===e(o,l)?S?u[0]:u[1]:f||(T=u,(R=l)&&oWt.indexOf(R.dataType)>=0&&Array.isArray(T)||void 0===T)?null:u};return{_updateEditorValue:function(o,a){var s=hZ(a);s&&s.option("value",i(this,o.index,a))},_columnOptionChanged:function(o){var s,l,u,f,a=o.optionNames;if(vn.checkChanges(a,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","filterValues","filterType"])&&void 0!==o.columnIndex){var S=this._columnsController.getVisibleIndex(o.columnIndex),T=this._columnsController.columnOption(o.columnIndex);if(l=(s=this._getCellElement(this.element().find("."+this.addWidgetPrefix(Pk)).index(),S)||U()).find("."+db).first(),a.filterValue||a.bufferedFilterValue){this._updateEditorValue(T,l);var R=s.find("."+this.addWidgetPrefix(D9)).data("dxOverlay");R&&(u=R.$content().find("."+db),this._updateEditorValue(T,u.first()),this._updateEditorValue(T,u.last())),(!R||!R.option("visible"))&&this._updateFilterRangeContent(s,t(this,T))}(a.selectedFilterOperation||a.bufferedSelectedFilterOperation)&&S>=0&&T&&(f=s.find(".dx-menu")).length&&(this._updateFilterOperationChooser(f,T,l),"between"===e(this,T)?this._renderFilterRangeContent(s,T):l.find("."+dZ).length&&(this._renderEditor(l,this._getEditorOptions(l,T)),this._hideFilterRange()))}else this.callBase(o)},_renderCore:function(){return this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(o,a){var s=this,l={},u=o.find(".dx-editor-container"),f=U("<div>").addClass(s.addWidgetPrefix(D9)).appendTo(o);return s._createComponent(f,Cd,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,hideOnOutsideClick:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,animation:!1,position:{my:"top",at:"top",of:u.length&&u||o,offset:"0 -1"},contentTemplate:function(S){var T,R=U("<div>").addClass(db+" "+s.addWidgetPrefix(E9)).appendTo(S);return a=s._columnsController.columnOption(a.index),(T=s._getEditorOptions(R,a)).sharedData=l,s._renderEditor(R,T),Se.on(R.find(Rk),"keydown",function(L){var z=o.find("[tabindex]").not(L.target).first();"tab"===Wo(L)&&L.shiftKey&&(L.preventDefault(),s._hideFilterRange(),z.length||(z=o.prev().find("[tabindex]").last()),Se.trigger(z,"focus"))}),R=U("<div>").addClass(db+" "+s.addWidgetPrefix("filter-range-end")).appendTo(S),(T=s._getEditorOptions(R,a)).sharedData=l,s._renderEditor(R,T),Se.on(R.find(Rk),"keydown",function(L){"tab"===Wo(L)&&!L.shiftKey&&(L.preventDefault(),s._hideFilterRange(),Se.trigger(o.next().find("[tabindex]").first(),"focus"))}),U(S).addClass(s.getWidgetContainerClass())},onShown:function(S){var T=S.component.$content().find("."+db).first();Se.trigger(T.find(Rk),"focus")},onHidden:function(){a=s._columnsController.columnOption(a.index),o.find(".dx-menu").parent().addClass(VAe),"between"===e(s,a)&&(s._updateFilterRangeContent(o,t(s,a)),s.component.updateDimensions())}})},_updateFilterRangeOverlay:function(o){var a=this._filterRangeOverlayInstance;a&&a.option(o)},_showFilterRange:function(o,a){var s=o.children("."+this.addWidgetPrefix(D9)),l=s.length&&s.data("dxOverlay");!l&&a&&(l=this._initFilterRangeOverlay(o,a)),l.option("visible")||(this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.hide(),this._filterRangeOverlayInstance=l,this._updateFilterRangeOverlay({width:ii(o,!0)+1}),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var o=this._filterRangeOverlayInstance;o&&o.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(o){var a=this.callBase(o);return"filter"===o.rowType&&(a.addClass(this.addWidgetPrefix(Pk)),this.option("useLegacyKeyboardNavigation")||Se.on(a,"keydown",s=>eY("filterRow",this,s))),a},_getRows:function(){var o=this.callBase();return this.isFilterRowVisible()&&o.push({rowType:"filter"}),o},_renderFilterCell:function(o,a){var s=a.column,l=U(o);this.component.option("showColumnHeaders")&&this.setAria("describedby",s.headerId,l),this.setAria("label",ye.format("dxDataGrid-ariaFilterCell"),l),l.addClass(lZ);var u=U("<div>").appendTo(l),f=U("<div>").addClass(db).appendTo(u);if("between"===e(this,s))this._renderFilterRangeContent(l,s);else{var S=this._getEditorOptions(f,s);this._renderEditor(f,S)}var T=s.alignment;T&&"center"!==T&&l.find(Rk).first().css("textAlign",s.alignment),s.filterOperations&&s.filterOperations.length&&this._renderFilterOperationChooser(u,s,f)},_renderCellContent:function(o,a){var s=this,l=a.column;if("filter"===a.rowType)if(l.command)o.html("&nbsp;");else if(l.allowFiltering)return void s.renderTemplate(o,s._renderFilterCell.bind(s),a).done(()=>{s._updateCell(o,a)});this.callBase.apply(this,arguments)},_getEditorOptions:function(o,a){var s=this,l={editorOptions:{inputAttr:s._getFilterInputAccessibilityAttributes(a)}},u=se(l,a,{value:i(s,a.index,o),parentType:"filterRow",showAllText:s.option("filterRow.showAllText"),updateValueTimeout:"onClick"===s.option("filterRow.applyFilter")?0:700,width:null,setValue:function(f,S){!function(o,a){var s=""===a.value?null:a.value,l=a.container,u=o._columnsController.columnOption(a.column.index),f=i(o,u.index,l);if(Z(f)||Z(s)){o._applyFilterViewController.setHighLight(l,f!==s);var S=RS(o)?"bufferedFilterValue":"filterValue",T=function(z,j,Y,ie){if("between"===e(z,Y)){var te=n(z,Y);return ie.hasClass(z.addWidgetPrefix(E9))?[j,Array.isArray(te)?te[1]:void 0]:[Array.isArray(te)?te[0]:te,j]}return j}(o,s,u,l),R="between"===e(o,u),L=a.notFireEvent||R&&Array.isArray(T)&&T.indexOf(void 0)>=0;o._columnsController.columnOption(u.index,S,T,L)}}(s,{column:a,value:f,container:o,notFireEvent:S})}});return"between"===e(s,a)&&(u.placeholder=o.hasClass(s.addWidgetPrefix(E9))?s.option("filterRow.betweenStartText"):s.option("filterRow.betweenEndText")),u},_getFilterInputAccessibilityAttributes:function(o){var a=ye.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":a,"aria-describedby":o.headerId}:{"aria-label":a}},_renderEditor:function(o,a){o.empty();var s=U("<div>").appendTo(o),l=this.getController("editorFactory"),u=this.getController("data").dataSource(),f=this.getController("applyFilter");if(a.lookup&&this.option("syncLookupFilterValues")){f.setCurrentColumnForFiltering(a);var S=this.getController("data").getCombinedFilter();f.setCurrentColumnForFiltering(null);var T=vn.getWrappedLookupDataSource(a,u,S),R=mt({},a,{lookup:mt({},a.lookup,{dataSource:T})});return l.createEditor(s,R)}return l.createEditor(s,a)},_renderFilterRangeContent:function(o,a){var s=this,l=o.find("."+db).first();l.empty();var u=U("<div>").addClass(dZ).attr("tabindex",this.option("tabIndex"));Se.on(u,"focusin",function(){s._showFilterRange(o,a)}),u.appendTo(l),s._updateFilterRangeContent(o,t(s,a))},_updateFilterRangeContent:function(o,a){var s=o.find("."+dZ);s.length&&(""===a?s.html("&nbsp;"):s.text(a))},_updateFilterOperationChooser:function(o,a,s){var u,l=this,f=function(){var S=aZ.getInstance(o);S&&S.option("focusedElement",null),u&&l._focusEditor(s)};l._createComponent(o,aZ,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:l.getWidgetContainerClass()+" dx-cell-focus-disabled dx-filter-menu",showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!(a.filterOperations&&a.filterOperations.length),icon:sZ[e(l,a)||"default"],selectable:!1,items:l._getFilterOperationMenuItems(a)}],onItemClick:function(S){var T=S.itemData.name,R=e(l,a),L=!1,z=RS(l),j={};if(!(S.itemData.items||T&&T===R)){if(T?(j[z?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=T,("between"===T||"between"===R)&&(L="between"===T,j[z?"bufferedFilterValue":"filterValue"]=null)):(j[z?"bufferedFilterValue":"filterValue"]=null,j[z?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=a.defaultSelectedFilterOperation||null),l._columnsController.columnOption(a.index,j),l._applyFilterViewController.setHighLight(s,!0),!T){var Y=hZ(s);Y&&"dxDateBox"===Y.NAME&&!Y.option("isValid")&&(Y.reset(),Y.option("isValid",!0))}L?l._showFilterRange(s.closest("."+lZ),a):l._focusEditor(s)}},onSubmenuShowing:function(){u=l._isEditorFocused(s),l.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){Se.trigger(o,"blur"),f()},onContentReady:function(S){Se.on(o,"blur",()=>{S.component._hideSubmenuAfterTimeout(),f()})},rtlEnabled:l.option("rtlEnabled")})},_isEditorFocused:function(o){return o.hasClass(HAe)||o.parents("."+HAe).length},_focusEditor:function(o){this.getController("editorFactory").focus(o),Se.trigger(o.find(Rk),"focus")},_renderFilterOperationChooser:function(o,a,s){var l;this.option("filterRow.showOperationChooser")&&(o.addClass(VAe),l=U("<div>").prependTo(o),this._updateFilterOperationChooser(l,a,s))},_getFilterOperationMenuItems:function(o){var a=this,s=[{}],l=a.option("filterRow"),u=l&&l.operationDescriptions||{};if(o.filterOperations&&o.filterOperations.length){var f=o.filterOperations.filter(function(S){return Z(LAe[S])});(s=Dr(f,function(S){var T=LAe[S];return{name:S,selected:(e(a,o)||o.defaultFilterOperation)===S,text:u[T],icon:sZ[S]}})).push({name:null,text:l&&l.resetOperationText,icon:sZ.default})}return s},_handleDataChanged:function(o){var a,s,l;this.callBase.apply(this,arguments),(null!==(a=o.operationTypes)&&void 0!==a&&a.filtering||null!==(s=o.operationTypes)&&void 0!==s&&s.fullReload)&&this.updateLookupDataSource(null===(l=o.operationTypes)||void 0===l?void 0:l.filtering)},updateLookupDataSource:function(o){if(this.option("syncLookupFilterValues")&&this.element()){var a=this._columnsController.getVisibleColumns(),s=this._dataController.dataSource(),l=this._applyFilterViewController,u=this.element().find("."+this.addWidgetPrefix(Pk)).index();-1!==u&&a.forEach((f,S)=>{if(f.lookup&&f.calculateCellValue===f.defaultCalculateCellValue){var T=this._getCellElement(u,S),R=hZ(T?.find(".dx-editor-container"));if(R){l.setCurrentColumnForFiltering(f);var L=this._dataController.getCombinedFilter()||null;l.setCurrentColumnForFiltering(null);var z=R.option("dataSource");if(!o||!Tr(z.__dataGridSourceFilter,L)){var Y=vn.getWrappedLookupDataSource(f,s,L);R.option("dataSource",Y)}}}})}},optionChanged:function(o){switch(o.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),o.handled=!0;break;case"syncLookupFilterValues":o.value?this.updateLookupDataSource():this.render(),o.handled=!0;break;default:this.callBase(o)}}}}(),sWt={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var t=[this.callBase()],n=this._columnsController.getVisibleColumns(null,!0),e=this.getController("applyFilter");return we(n,function(){var i,r=(null===(i=e.getCurrentColumnForFiltering())||void 0===i?void 0:i.index)===this.index;if(this.allowFiltering&&this.calculateFilterExpression&&Z(this.filterValue)&&!r){var o=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");t.push(o)}}),vn.combineFilters(t)}},lWt=Bo.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(t,n){RS(this)&&(t&&t.toggleClass(uZ,n)&&t.closest("."+lZ).toggleClass(cZ,n),this._getHeaderPanel().enableApplyButton(n))},applyFilter:function(){var t=this.getController("columns"),n=t.getColumns();t.beginUpdate();for(var e=0;e<n.length;e++){var i=n[e];void 0!==i.bufferedFilterValue&&(t.columnOption(e,"filterValue",i.bufferedFilterValue),i.bufferedFilterValue=void 0),void 0!==i.bufferedSelectedFilterOperation&&(t.columnOption(e,"selectedFilterOperation",i.bufferedSelectedFilterOperation),i.bufferedSelectedFilterOperation=void 0)}t.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(RS(this)){var t=this.getView("columnHeadersView").element();t.find("."+this.addWidgetPrefix(Pk)+" ."+uZ).removeClass(uZ),t.find("."+this.addWidgetPrefix(Pk)+" ."+cZ).removeClass(cZ),this._getHeaderPanel().enableApplyButton(!1)}},setCurrentColumnForFiltering:function(t){this._currentColumn=t},getCurrentColumnForFiltering:function(){return this._currentColumn}}),zAe={defaultOptions:function(){return{syncLookupFilterValues:!0,filterRow:{visible:!1,showOperationChooser:!0,showAllText:ye.format("dxDataGrid-filterRowShowAllText"),resetOperationText:ye.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:ye.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:ye.format("dxDataGrid-filterRowOperationEquals"),notEqual:ye.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:ye.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:ye.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:ye.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:ye.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:ye.format("dxDataGrid-filterRowOperationStartsWith"),contains:ye.format("dxDataGrid-filterRowOperationContains"),notContains:ye.format("dxDataGrid-filterRowOperationNotContains"),endsWith:ye.format("dxDataGrid-filterRowOperationEndsWith"),between:ye.format("dxDataGrid-filterRowOperationBetween"),isBlank:ye.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:ye.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:ye.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:ye.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:lWt},extenders:{controllers:{data:sWt,columnsResizer:{_startResizing:function(){var t=this;if(t.callBase.apply(t,arguments),t.isResizing()){var n=t._columnHeadersView.getFilterRangeOverlayInstance();if(n){var e=n.$element().closest("td").index();(e===t._targetPoint.columnIndex||e===t._targetPoint.columnIndex+1)&&n.$content().hide()}}},_endResizing:function(){var n,t=this;if(t.isResizing()){var e=t._columnHeadersView.getFilterRangeOverlayInstance();e&&(n=e.$element().closest("td"),t._columnHeadersView._updateFilterRangeOverlay({width:ii(n,!0)+1}),e.$content().show())}t.callBase.apply(t,arguments)}},editing:{updateFieldValue(t){return t.column.lookup&&(this._needUpdateLookupDataSource=!0),this.callBase.apply(this,arguments)},_afterSaveEditData(t){var n;return this._needUpdateLookupDataSource&&!t&&(null===(n=this.getView("columnHeadersView"))||void 0===n||n.updateLookupDataSource()),this._needUpdateLookupDataSource=!1,this.callBase.apply(this,arguments)},_afterCancelEditData(){return this._needUpdateLookupDataSource=!1,this.callBase.apply(this,arguments)}}},views:{columnHeadersView:aWt,headerPanel:{_getToolbarItems:function(){var t=this.callBase();return this._prepareFilterItem(t).concat(t)},_prepareFilterItem:function(){var t=this,n=[];if(t._isShowApplyFilterButton()){var e=t.option("filterRow.applyFilterText"),r=!t._columnsController.getColumns().filter(function(a){return void 0!==a.bufferedFilterValue}).length;n.push({widget:"dxButton",options:{icon:"apply-filter",disabled:r,onClick:function(){t._applyFilterViewController.applyFilter()},hint:e,text:e,onInitialized:function(a){U(a.element).addClass(t._getToolbarButtonClass("dx-apply-button"))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10})}return n},_isShowApplyFilterButton:function(){var t=this.option("filterRow");return t&&t.visible&&"onClick"===t.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(t){this.setToolbarItemDisabled("applyFilterButton",!t)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(t){"filterRow"===t.name?(this._invalidate(),t.handled=!0):this.callBase(t)}}}}};oi.registerModule("filterRow",zAe),pC.setEditorClass(Th);var UAe="dx-header-filter";function WAe(t){t=t||[];for(var n=0;n<t.length;n++)t[n].selected=!1,WAe(t[n].items)}function GAe(t,n){if(!t.component.option("searchValue")){var e=U(t.element).find(".dx-list-select-all-checkbox").data("dxCheckBox");e&&n&&n.length&&e.option("value",void 0)}}function cWt(t,n){var e=n.headerFilter;return e&&Z(e.allowSearch)?e.allowSearch:t.option("headerFilter.allowSearch")}function jAe(t,n,e){if(n^e){if(t.selected=!0,e&&t.items)for(var i=0;i<t.items.length;i++)if(!t.items[i].selected){t.selected=void 0;break}}else(e||t.selected)&&(t.selected=!1,WAe(t.items))}var KAe=Bo.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(t){var n=this.getListContainer(),e=n.option("searchValue"),r=[];e||t.isFilterBuilder||!n.$element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked")?"tree"===t.type&&(t.filterType&&(t.filterType="include"),function o(a,s,l){we(s,function(u,f){if(void 0!==f.selected&&!!f.selected^l){var S=n._getNode(f),R=n._hasChildren(S)&&f.items&&f.items.some(L=>L.selected);if(!e||!R)return void a.push(f.value)}f.items&&f.items.length&&o(a,f.items,l)})}(r,n.option("items"),!1),t.filterValues=r):("tree"===t.type&&(t.filterType="exclude"),Array.isArray(t.filterValues)&&(t.filterValues=[])),t.filterValues&&!t.filterValues.length&&(t.filterValues=null),t.apply(),this.hideHeaderFilterMenu()},showHeaderFilterMenu:function(t,n){if(n){this._initializePopupContainer(n);var e=this.getPopupContainer();this.hideHeaderFilterMenu(),this.updatePopup(t,n),e.show()}},hideHeaderFilterMenu:function(){var t=this.getPopupContainer();t&&t.hide()},updatePopup:function(t,n){var e=this.option("showColumnLines"),i="right"===n.alignment^!e?"left":"right";this._popupContainer.setAria({role:"dialog",label:ye.format("dxDataGrid-headerFilterLabel")}),this._popupContainer&&(this._cleanPopupContent(),this._popupContainer.option("position",{my:i+" top",at:i+" bottom",of:t,collision:"flip fit"}))},_getSearchExpr:function(t){var n=t.lookup,i=t.headerFilter&&t.headerFilter.dataSource;if(t.useDefaultSearchExpr||Z(i)&&!Yt(i))return"text";if(n)return n.displayExpr||"this";if(t.dataSource){var r=t.dataSource.group;if(Array.isArray(r)&&r.length>0)return r[0].selector;if(Yt(r)&&!t.remoteFiltering)return r}return t.dataField||t.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(t){var n=this,e=n.element(),i=n.option("headerFilter"),a={width:t.headerFilter&&t.headerFilter.width||i&&i.width,height:t.headerFilter&&t.headerFilter.height||i&&i.height,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,hideOnParentScroll:!1,dragEnabled:!1,hideOnOutsideClick:!0,focusStateEnabled:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.ok,onClick:function(){n.applyHeaderFilter(t)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.cancel,onClick:function(){n.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(s){s.component.$content().parent().addClass("dx-dropdowneditor-overlay"),n._initializeListContainer(t),t.onShowing&&t.onShowing(s)},onShown:function(){n.getListContainer().focus()},onHidden:t.onHidden,onInitialized:function(s){var l=s.component;l.option("animation",l._getDefaultOptions().animation)}};Z(n._popupContainer)?n._popupContainer.option(a):n._popupContainer=n._createComponent(e,Ss,a)},_initializeListContainer:function(t){var n=this,e=n._popupContainer.$content(),i={searchEnabled:cWt(n,t),searchTimeout:n.option("headerFilter.searchTimeout"),searchMode:t.headerFilter&&t.headerFilter.searchMode||"",dataSource:t.dataSource,onContentReady:function(){n.renderCompleted.fire()},itemTemplate:function(o,a,s){var l=U(s);return t.encodeHtml?l.text(o.text):l.html(o.text)}};function r(o){"searchValue"===o.fullName&&!t.isFilterBuilder&&!1!==n.option("headerFilter.hideSelectAllOnSearch")&&("tree"===t.type?o.component.option("showCheckBoxesMode",o.value?"normal":"selectAll"):o.component.option("selectionMode",o.value?"multiple":"all"))}n._listContainer="tree"===t.type?n._createComponent(U("<div>").appendTo(e),IS,se(i,{showCheckBoxesMode:t.isFilterBuilder?"normal":"selectAll",onOptionChanged:r,keyExpr:"id"})):n._createComponent(U("<div>").appendTo(e),gC,se(i,{searchExpr:n._getSearchExpr(t),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:t.isFilterBuilder?"multiple":"all",onOptionChanged:r,onSelectionChanged:function(o){var a=o.component.option("items"),s=o.component.option("selectedItems");if(!o.component._selectedItemsUpdating&&!o.component.option("searchValue")&&!t.isFilterBuilder){var l=t.filterValues||[];0===s.length&&a.length&&(l.length<=1||"exclude"===t.filterType&&l.length===a.length-1)?(t.filterType="include",t.filterValues=[]):s.length===a.length&&(t.filterType="exclude",t.filterValues=[])}we(a,function(f,S){var T=vn.getIndexByKey(S,s,null)>=0;if(!!S.selected!==T){S.selected=T,t.filterValues=t.filterValues||[];var L=vn.getIndexByKey(S.value,t.filterValues,null);L>=0&&t.filterValues.splice(L,1),T^"exclude"===t.filterType&&t.filterValues.push(S.value)}}),GAe(o,t.filterValues)},onContentReady:function(o){var a=o.component,s=a.option("items"),l=[];we(s,function(){this.selected&&l.push(this)}),a._selectedItemsUpdating=!0,a.option("selectedItems",l),a._selectedItemsUpdating=!1,GAe(o,t.filterValues)}}))},_renderCore:function(){this.element().addClass("dx-header-filter-menu")}}),O9=function(t){return Z(t.allowHeaderFiltering)?t.allowHeaderFiltering:t.allowFiltering},pZ={_applyColumnState:function(t){var n,i=t.column;if("headerFilter"===t.name){if(t.rootElement.find("."+UAe).remove(),O9(i)){n=this.callBase(t).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(i)),this.option("useLegacyKeyboardNavigation")||n.attr("tabindex",this.option("tabindex")||0);var r=ye.format("dxDataGrid-headerFilterIndicatorLabel",i.caption);n.attr("aria-label",r),n.attr("aria-haspopup","dialog"),n.attr("role","button")}return n}return this.callBase(t)},_isHeaderFilterEmpty:function(t){return!t.filterValues||!t.filterValues.length},_getIndicatorClassName:function(t){return"headerFilter"===t?UAe:this.callBase(t)},_renderIndicator:function(t){var n=t.container,e=t.indicator;if("headerFilter"===t.name){var i=this.option("rtlEnabled");if(n.children().length&&(!i&&"right"===t.columnAlignment||i&&"left"===t.columnAlignment))return void n.prepend(e)}this.callBase(t)},optionChanged:function(t){if("headerFilter"===t.name){var n="columnHeadersView"===this.name;this._invalidate(n,n),t.handled=!0}else this.callBase(t)}},hWt={month:function(t){return Gn.getMonthNames()[t-1]},quarter:function(t){return Gn.format(new Date(2e3,3*t-1),"quarter")}};function $Ae(t,n,e){return n=n||[],e=e||[],t.forEach(i=>{if(Z(i.key)){if(n.push(1===n.length?i.key-1:i.key),i.items)$Ae(i.items,n,e);else{var o=new Date(Date.UTC.apply(Date,n));e.push(o)}n.pop()}else e.push(null)}),e}function pWt(t,n){var e=$Ae(t),i=Ha(e),r=vn.getHeaderFilterGroupParameters(mt({},n,{calculateCellValue:o=>o}));return cg.queryByOptions(i,{group:r}).toArray()}var fWt=Bo.ViewController.inherit({init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(t,n){for(var e=t.length,i="exclude"===n.filterType;e--;){var r=t[e];"items"in t[e]&&this._updateSelectedState(t[e].items,n),jAe(r,vn.getIndexByKey(t[e].value,n.filterValues,null)>-1,i)}},_normalizeGroupItem:function(t,n,e){var i,r,o=e.path,a=e.valueSelector,s=e.displaySelector,l=e.column;return a&&s?(i=a(t),r=s(t)):r=i=t.key,t=Jn(t)?se({},t):{},o.push(i),t.value=1===o.length?o[0]:o.join("/"),t.text=this.getHeaderItemText(r,l,n,e.headerFilterOptions),t},getHeaderItemText:function(t,n,e,i){var o,a,s,l,u,r=vn.formatValue(t,(o=t,s=e,l=OS.getGroupInterval(a=n),u=vn.getFormatOptionsByColumn(a,"headerFilter"),l&&(u.groupInterval=l[s],vn.isDateType(a.dataType)?u.format=hWt[l[s]]:"number"===a.dataType&&(u.getDisplayFormat=function(){var f={format:a.format,target:"headerFilter"},S=vn.formatValue(o,f),R=vn.formatValue(o+l[s],f);return S&&R?S+" - "+R:""})),u));return r||(r=i.texts.emptyValue),r},_processGroupItems:function(t,n,e,i){var r,o,s=i.column.lookup,l=i.level;e=e||[],n=n||0,s&&(r=Ai(s.displayExpr),o=Ai(s.valueExpr));for(var u=0;u<t.length;u++)t[u]=this._normalizeGroupItem(t[u],n,{column:i.column,headerFilterOptions:i.headerFilterOptions,displaySelector:r,valueSelector:o,path:e}),"items"in t[u]&&(n!==l&&Z(t[u].value)?this._processGroupItems(t[u].items,n+1,e,i):delete t[u].items),e.pop()},getDataSource:function(t){var n,e=this._dataController.dataSource(),i=e?.remoteOperations().grouping,r=vn.getHeaderFilterGroupParameters(t,i),o=null===(n=t.headerFilter)||void 0===n?void 0:n.dataSource,a=this.option("headerFilter"),s=!1,l={component:this.component};if(e){if(Z(o)&&!Yt(o))l.dataSource=t_(o);else if(t.lookup)if(s=!0,this.option("syncLookupFilterValues")){this._currentColumn=t;var u=this._dataController.getCombinedFilter();this._currentColumn=null,l.dataSource=vn.getWrappedLookupDataSource(t,e,u)}else l.dataSource=vn.normalizeLookupDataSource(t.lookup);else{var f=Array.isArray(r)?r.length-1:0;this._currentColumn=t;var S=this._dataController.getCombinedFilter();this._currentColumn=null,l.dataSource={filter:S,group:r,useDefaultSearch:!0,load:L=>{var z=new et;return L.dataField=t.dataField||t.name,e.load(L).done(function(j){var Y=i&&function gWt(t){return"Z"===t?.slice(-1)||"'Z'"===t?.slice(-3)}(t.serializationFormat)&&f>3;Y&&(j=pWt(j,t)),R._processGroupItems(j,null,null,{level:f,column:t,headerFilterOptions:a}),z.resolve(j)}).fail(z.reject),z}}}Yt(o)&&o.call(t,l);var T=l.dataSource.postProcess,R=this;return l.dataSource.postProcess=function(L){var z=L;return s&&(0===this.pageIndex()&&!this.searchValue()&&(z=z.slice(0)).unshift(null),R._processGroupItems(z,null,null,{level:0,column:t,headerFilterOptions:a})),z=T&&T.call(this,z)||z,R._updateSelectedState(z,t),z},l.dataSource}},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(t,n){var e=this._columnsController,i=se(!0,{},this._columnsController.getColumns()[t]);if(i){var r=e.getVisibleIndex(t),o=this.getView(n?"headerPanel":"columnHeadersView"),a=a||o.getColumnElements().eq(n?i.groupIndex:r);this.showHeaderFilterMenuBase({columnElement:a,column:i,applyFilter:!0,apply:function(){e.columnOption(t,{filterValues:this.filterValues,filterType:this.filterType})}})}},showHeaderFilterMenuBase:function(t){var n=this,e=t.column;if(e){var i=OS.getGroupInterval(e),r=n._dataController.dataSource(),o=r&&r.remoteOperations().filtering;se(t,e,{type:i&&i.length>1?"tree":"list",remoteFiltering:o,onShowing:function(a){var s=a.component.$overlayContent().dxResizable("instance");s&&s.option("onResizeEnd",function(l){var u=n.getController("columns"),f=u.columnOption(t.dataField,"headerFilter");(f=f||{}).width=l.width,f.height=l.height,u.columnOption(t.dataField,"headerFilter",f,!0)})},onHidden:()=>Qq(this)}),t.dataSource=n.getDataSource(t),t.isFilterBuilder&&(t.dataSource.filter=null,t.alignment="right"),n._headerFilterView.showHeaderFilterMenu(t.columnElement,t)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}),mWt=se({},pZ,{_renderCellContent:function(t,n){var i,e=this,r=n.column;!r.command&&O9(r)&&e.option("headerFilter.visible")&&"header"===n.rowType&&(i=e._applyColumnState({name:"headerFilter",rootElement:t,column:r,showColumnLines:e.option("showColumnLines")}))&&e._subscribeToIndicatorEvent(i,r,"headerFilter"),this.callBase.apply(this,arguments)},_subscribeToIndicatorEvent:function(t,n,e){"headerFilter"===e&&Se.on(t,Vi,this.createAction(i=>{i.event.stopPropagation(),_Ie(t,this),this.getController("headerFilter").showHeaderFilterMenu(n.index,!1)}))},_updateIndicator:function(t,n,e){var i=this.callBase(t,n,e);i&&this._subscribeToIndicatorEvent(i,n,e)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(t){vn.checkChanges(t.optionNames,["filterValues","filterType"])?this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators():this.callBase(t)}}),_Wt=se({},pZ,{_createGroupPanelItem:function(t,n){var r,e=this,i=e.callBase.apply(e,arguments);return!n.command&&O9(n)&&e.option("headerFilter.visible")&&(r=e._applyColumnState({name:"headerFilter",rootElement:i,column:{alignment:Eg(e.option("rtlEnabled")),filterValues:n.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}))&&Se.on(r,Vi,e.createAction(function(o){o.event.stopPropagation(),e.getController("headerFilter").showHeaderFilterMenu(n.index,!0)})),i}}),vWt={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var t=[this.callBase()],n=this._columnsController.getVisibleColumns(null,!0),i=this.getController("headerFilter").getCurrentColumn();return we(n,function(r,o){var a;if((!i||i.index!==o.index)&&O9(o)&&o.calculateFilterExpression&&Array.isArray(o.filterValues)&&o.filterValues.length){var s=[];we(o.filterValues,function(l,u){Array.isArray(u)?a=u:(o.deserializeValue&&!vn.isDateType(o.dataType)&&"number"!==o.dataType&&(u=o.deserializeValue(u)),a=o.createFilterExpression(u,"=","headerFilter")),a&&(a.columnIndex=o.index),s.push(a)}),s=vn.combineFilters(s,"or"),t.push("exclude"===o.filterType?["!",s]:s)}}),vn.combineFilters(t)}},qAe={defaultOptions:function(){return{syncLookupFilterValues:!0,headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:ye.format("dxDataGrid-headerFilterEmptyValue"),ok:ye.format("dxDataGrid-headerFilterOK"),cancel:ye.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:fWt},views:{headerFilterView:KAe},extenders:{controllers:{data:vWt},views:{columnHeadersView:mWt,headerPanel:_Wt}}};oi.registerModule("headerFilter",qAe);var T9="dx-filterbuilder-range",yWt=T9+"-start",CWt=T9+"-end",bWt=T9+"-separator";function xWt(t,n){var e=U("<div>").addClass(yWt),i=U("<div>").addClass(CWt),r=t.value||[],o=function(s){return s&&s.length>0?s[0]:null},a=function(s){return s&&2===s.length?s[1]:null};n.append(e),n.append(U("<span>").addClass(bWt).text("\u2013")),n.append(i),n.addClass(T9),this._editorFactory.createEditor.call(this,e,se({},t.field,t,{value:o(r),parentType:"filterBuilder",setValue:function(s){r=[s,a(r)],t.setValue(r)}})),this._editorFactory.createEditor.call(this,i,se({},t.field,t,{value:a(r),parentType:"filterBuilder",setValue:function(s){r=[o(r),s],t.setValue(r)}}))}function ZAe(t,n){return{name:"between",caption:t,icon:"range",valueSeparator:"\u2013",dataTypes:["number","date","datetime"],editorTemplate:xWt.bind(n),notForLookup:!0}}var wWt={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},SWt={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"};const XAe_getIconByFilterOperation=function(t){return wWt[t]};var gZ="string",Cv="and",EWt={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},OWt={date:"shortDate",datetime:"shortDateShortTime"},TWt=["=","<>","isblank","isnotblank"],IWt=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"],QAe="dx-filterbuilder-text",MWt=QAe+"-part",eFe=QAe+"-separator",AWt=eFe+"-empty";function cb(t){return t&&t.length>1&&"!"===t[0]&&!Is(t)}function e0(t){return cb(t)?t[1]:t}function tFe(t){if(Is(t))return Cv;for(var n="",e=0;e<t.length;e++){var i=t[e];if(!Array.isArray(i)){if(n&&n!==i)throw new uo.Error("E4019");"!"!==i&&(n=i)}}return n}function hb(t){var n=e0(t),e=tFe(n);return e||(e=Cv),n!==t&&(e="!"+e),e}function nFe(t){var n=function VWt(t){return Array.isArray(t)&&t.length}(t.filterOperations)?t.filterOperations:function NWt(t){return t.lookup&&TWt||EWt[t.dataType||gZ]}(t);return se([],n)}function mZ(t,n){var e=function(t){return SWt[t]}(t);return n&&n[e]?n[e]:e}function t0(t,n){var e=t.filter(function(i){return i.name===n});return e.length?e[0]:null}function _Z(t){return t.defaultFilterOperation||nFe(t)[0]}function vZ(t,n){var e=e0(t),i=e.indexOf(n);return e.splice(i,1),1!==e.length&&e.splice(i,1),t}function iFe(t){var n=yZ(t),e=n?CZ(t):t;return n?["!",[e]]:[e]}function I9(t,n){var e=e0(n),i=hb(e);return 1===e.length?e.unshift(t):e.push(t,i),n}function k9(t,n){for(var e=0;e<n.length;e++)if(n[e].name===t||n[e].dataField.toLowerCase()===t.toLowerCase())return n[e];var i=hFe(n,!0).filter(function(r){return r.dataField.toLowerCase()===t.toLowerCase()});if(i.length>0)return i[0];throw new Di.Error("E1047",t)}function bv(t){return!!Array.isArray(t)&&(t.length<2||Array.isArray(t[0])||Array.isArray(t[1]))}function Is(t){return!!Array.isArray(t)&&t.length>1&&!Array.isArray(t[0])&&!Array.isArray(t[1])}function rFe(t,n,e){e=e||Cv;for(var i=tFe(t).toLowerCase()||e,r=[],o=0;o<t.length;o++)bv(t[o])?(r.push(wZ(t[o],n,e)),r=xZ(r,i)):Is(t[o])&&(r.push(M9(t[o],n)),r=xZ(r,i));return 0===r.length&&(r=xZ(r,i)),r}function M9(t,n){return function WWt(t,n){var e=t0(n,t[1]);return e&&e.name===t[1]}(t,n)||t.length<3&&(t[2]=t[1],t[1]="="),t}function yZ(t){return-1!==t.indexOf("not")}function CZ(t){return t.substring(3).toLowerCase()}function bZ(t,n){var e=yZ(n);return n=e?CZ(n):n,e?["!",t,n]:[t,n]}function xZ(t,n){var e=yZ(n);n=e?CZ(n):n,t.push(n);var i=t;return e&&(i=["!",i]),i}function wZ(t,n,e){return e=e||Cv,t?Is(t=se(!0,[],t))?bZ(M9(t,n),e):cb(t)?["!",Is(t[1])?bZ(M9(t[1],n),e):cb(t[1])?bZ(wZ(t[1],n),e):rFe(t[1],n,e)]:rFe(t,n,e):iFe(e)}function oFe(t,n,e,i){var r=k9(t[0],n),o=M9(t,e),a=e.length&&t0(e,o[1]);return a&&a.calculateFilterExpression?a.calculateFilterExpression.apply(a,[o[2],r,n]):r.createFilterExpression?r.createFilterExpression.apply(r,[o[2],o[1],i]):r.calculateFilterExpression?r.calculateFilterExpression.apply(r,[o[2],o[1],i]):r.defaultCalculateFilterExpression.apply(r,[o[2],o[1],i])}function LS(t,n,e,i){if(!Z(t))return null;if(cb(t))return["!",LS(t[1],n,e,i)];var o=e0(t);if(Is(o))return oFe(o,n,e,i)||null;for(var s,a=[],l=hb(o),u=0;u<o.length;u++)bv(o[u])?(s=LS(o[u],n,e,i))&&(u&&a.push(l),a.push(s)):Is(o[u])&&(s=oFe(o[u],n,e,i))&&(a.length&&a.push(l),a.push(s));return 1===a.length&&(a=a[0]),a.length?a:null}function Lk(t){var e,n=e0(t);if(0===n.length)return null;var i=[];for(e=0;e<n.length;e++)if(bv(n[e])){var r=Lk(n[e]);r?n[e]=r:i.push(n[e])}else Is(n[e])&&(KWt(n[e])||i.push(n[e]));for(e=0;e<i.length;e++)vZ(n,i[e]);return 1===n.length||(n.splice(n.length-1,1),1===n.length&&(t=function PWt(t,n){return cb(t)?t[1]=n:t=n,t}(t,n[0])),0===t.length)?null:t}function aFe(t,n,e){if(""!==n){var i=t.lookup;if(i.items)e(i.calculateCellValue(n)||"");else{var r=Yt(i.dataSource)?i.dataSource({}):i.dataSource;new Fl(r).loadSingle(i.valueExpr,n).done(function(a){var s="";a&&(s=i.displayExpr?Ai(i.displayExpr)(a):a),t.customizeText&&(s=t.customizeText({value:n,valueText:s})),e(s)}).fail(function(){e("")})}}else e("")}function sFe(t,n,e,i,r){var o;return o=!0===n?t.trueText||ye.format("dxDataGrid-trueText"):!1===n?t.falseText||ye.format("dxDataGrid-falseText"):function FWt(t,n){return Es.format(n,t.format||OWt[t.dataType])}(t,n),t.customizeText&&(o=t.customizeText.call(t,{value:n,valueText:o,target:i})),e&&e.customizeText&&(o=e.customizeText.call(e,{value:n,valueText:o,field:t,target:i},r)),o}function jWt(t,n,e,i){var r={values:n};return n.map(o=>sFe(t,o,e,i,r))}function SZ(t){return""===t||null===t}function lFe(t,n,e){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(SZ(n))return"";if(Array.isArray(n)){var r=new et;return Qt.apply(this,jWt(t,n,e,i)).done(function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=a.some(u=>!SZ(u))?a.map(u=>SZ(u)?"?":u):"";r.resolve(l)}),r}return sFe(t,n,e,i)}function uFe(t,n){return t.some(function(e){return e.dataField===n})}function dFe(t,n,e){var i=e.dataField;DZ(i)&&(e.parentId=pFe(i),!uFe(n,e.parentId)&&!uFe(t,e.parentId)&&dFe(t,n,{id:e.parentId,dataType:"object",dataField:e.parentId,caption:cFe(e.parentId,!0),filterOperations:["isblank","isnotblank"]})),n.push(e)}function cFe(t,n){var e="";if(n)t=t.substring(t.lastIndexOf(".")+1);else if(DZ(t))return t.split(".").forEach(function(i,r,o){e+=Oy(i),r!==o.length-1&&(e+=".")}),e;return Oy(t)}function hFe(t,n){for(var e=[],i=0;i<t.length;i++){var r=se(!0,{caption:cFe(t[i].dataField,n)},t[i]);r.id=r.name||r.dataField,n?dFe(t,e,r):e.push(r)}return e}function DZ(t){return-1!==t.lastIndexOf(".")}function pFe(t){return t.substring(0,t.lastIndexOf("."))}function gFe(t,n){if(DZ(t.dataField))for(var e=pFe(t.dataField),i=0;i<n.length;i++)if(n[i].dataField===e)return gFe(n[i],n)+"."+t.caption;return t.caption}function EZ(t,n,e){var i=t0(e,n);return i?(!1===i.hasValue?(t[1]=n,t.length=2):(t[1]=n,t[2]=""),t):("isblank"===n?(t[1]="=",t[2]=null):"isnotblank"===n?(t[1]="<>",t[2]=null):(((i=t0(e,t[1]))||2===t.length||null===t[2])&&(t[2]=""),t[1]=n),t)}function fFe(t){return null===t[2]?"="===t[1]?"isblank":"isnotblank":t[1]}function KWt(t){return""!==t[2]}function Bk(t,n){return t[0]===n}function OZ(t,n){return t&&0!==t.length?Is(t)?Bk(t,n)?null:t:mFe(t,[n],!1):null}function mFe(t,n,e){var i=[];return t.forEach(function(r){Is(r)?Bk(r,n[0])?e?(i.push(n),e=!1):i.splice(i.length-1,1):i.push(r):(i.length||bv(r))&&i.push(r)}),0===i.length?null:(e&&(i.push(Cv),i.push(n)),1===i.length?i[0]:i)}function _Fe(t,n){return null===t||0===t.length?n:Is(t)?Bk(t,n[0])?n:[t,Cv,n]:hb(t)!==Cv?[n,"and",t]:mFe(t,n,!0)}function vFe(t,n){return null!==t&&0!==t.length&&(Is(t)?t[0]===n:t.some(function(e){return(Is(e)||bv(e))&&vFe(e,n)}))}var TZ=function(t,n,e){if(Array.isArray(n)){var i=n.length-1;t.empty(),n.forEach((r,o)=>{U("<span>").addClass(MWt).text(r).appendTo(t),o!==i&&U("<span>").addClass(eFe).text(e&&e.valueSeparator?e.valueSeparator:"|").addClass(AWt).appendTo(t)})}else t.text(n||ye.format("dxFilterBuilder-enterValueText"))};function yFe(t){var n=function(i,r){return r?r+"/"+i:i},e=t&&t.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(i,r,o){var a=[],s=i.length-1;return i&&i.forEach(function(l,u){if(Is(l)||bv(l)){var f=LS(l,o,[],"headerFilter");a.push(f)}else a.push(LS([r.dataField,"=",l],o,[],"headerFilter"));u!==s&&a.push("or")}),1===a.length&&(a=a[0]),a},editorTemplate:function(i,r){var o=U("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(r),a=se(!0,{},t.columnOption(i.field.dataField));return TZ(o,i.text&&i.text.split("|")),a.filterType="include",a.filterValues=i.value?i.value.slice():[],e.showHeaderFilterMenuBase({columnElement:o,column:a,apply:function(){i.setValue(this.filterValues),e.hideHeaderFilterMenu(),i.closeEditor()},onHidden:function(){i.closeEditor()},isFilterBuilder:!0}),r},customizeText:function(i,r){r=r||{};var o=i.value,a=t.columnOption(i.field.dataField),s=a&&a.headerFilter,l=a&&a.lookup,u=r.values||[o];if(s&&s.dataSource||l&&l.dataSource){var f=new et,S=r.items||new et;if(!r.items){a=se({},a,{filterType:"include",filterValues:u});var T=e.getDataSource(a);T.paginate=!1;var R=new Fl(T),L=R.store().key();if(L){var{values:z}=r;if(z&&z.length>1){var j=z.reduce((ie,te)=>(ie.length&&ie.push("or"),ie.push([L,"=",te]),ie),[]);R.filter(j)}else R.filter([L,"=",i.value])}else i.field.calculateDisplayValue&&Di.log("W1017");r.items=S,R.load().done(S.resolve)}return S.done(ie=>{var te=u.indexOf(i.value);f.resolve(function re(he,fe){var Te=[];return he.forEach(function(Re){if(Re.items){var He=re(Re.items,n(Re.text,fe));Te=Te.concat(He)}Re.selected&&Te.push(n(Re.text,fe))}),Te}(ie)[te])}),f}return e.getHeaderItemText(o,a,0,t.option("headerFilter"))}}}function YWt(t){return se(yFe(t),{name:"anyof",icon:"selectall",caption:ye.format("dxFilterBuilder-filterOperationAnyOf")})}function ZWt(t){var n=yFe(t);return se({},n,{calculateFilterExpression:function(e,i,r){var o=n.calculateFilterExpression(e,i,r);return o&&0!==o.length?"!"===o[0]?o:["!",o]:null},name:"noneof",icon:"unselectall",caption:ye.format("dxFilterBuilder-filterOperationNoneOf")})}var XWt=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],Nk="exclude";function pf(t){return t.name||t.dataField}var QWt=Bo.Controller.inherit(function(){var n=function(a){var s=a.filterValues||[];return!OS.getGroupInterval(a)&&!(a.headerFilter&&a.headerFilter.dataSource)||1===s.length&&null===s[0]},e=function(a){if(Z(a.filterValue)){var l=a.selectedFilterOperation||a.defaultFilterOperation||_Z(a);return[pf(a),l,a.filterValue]}return null},i=function(a){var s,l,u=a.filterValues;return u?(1===u.length&&n(a)&&!Array.isArray(u[0])?(s=a.filterType===Nk?"<>":"=",l=u[0]):(s=a.filterType===Nk?"noneof":"anyof",l=u),[pf(a),s,l]):null},r=function(a,s,l){var u=function(f,S){if(!f)return{filterType:"include",filterValues:void 0};var T,R=f[1],L=f[2],z=Array.isArray(L);if(!z&&!n(S))return{filterType:"include",filterValues:void 0};switch(R){case"anyof":case"=":T="include";break;case"noneof":case"<>":T=Nk;break;default:return{filterType:"include",filterValues:void 0}}return{filterType:T,filterValues:z?L:[L]}}(l,s);a.columnOption(pf(s),u)},o=function(a,s,l){var u,f=l?.[1],S=l?.[2],T=s.filterOperations||s.defaultFilterOperations;(!T||T.indexOf(f)>=0||f===s.defaultFilterOperation)&&XWt.indexOf(f)>=0&&null!==S?(f===s.defaultFilterOperation&&!Z(s.selectedFilterOperation)&&(f=s.selectedFilterOperation),u={filterValue:S,selectedFilterOperation:f}):u={filterValue:void 0,selectedFilterOperation:void 0},a.columnOption(pf(s),u)};return{syncFilterValue:function(){var a=this,s=a.getController("columns"),l=s.getFilteringColumns();this._skipSyncColumnOptions=!0,l.forEach(function(u){var f=function qWt(t,n){return null===t||0===t.length?[]:Is(t)?Bk(t,n)?[t]:[]:hb(t)!==Cv?[]:t.filter(function(r){return Is(r)&&Bk(r,n)})}(a.option("filterValue"),pf(u));if(1===f.length){var S=f[0];r(s,u,S),o(s,u,S)}else Z(u.filterValues)&&r(s,u),Z(u.filterValue)&&o(s,u)}),this._skipSyncColumnOptions=!1},_initSync:function(){var a=this.getController("columns").getColumns(),s=this.getController("data"),l=s.pageIndex();if(function JWt(t){t.forEach(n=>{var e=pf(n);if(!Z(e)&&n.allowFiltering)throw new Di.Error("E1049",n.caption)})}(a),!this.option("filterValue")){var u=this.getController("columns").getFilteringColumns(),f=this.getFilterValueFromColumns(u);this.option("filterValue",f)}this.syncFilterValue(),s.pageIndex(l)},init:function(){var a=this.getController("data");a.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():a.dataSourceChanged.add(()=>this._initSync()))},_getSyncFilterRow:function(a,s){var l=e(s);return Z(l)?_Fe(a,l):OZ(a,pf(s))},_getSyncHeaderFilter:function(a,s){var l=i(s);return l?_Fe(a,l):OZ(a,pf(s))},getFilterValueFromColumns:function(a){if(!this.getController("data").isFilterSyncActive())return null;var s=["and"];return a&&a.forEach(l=>{var u=i(l),f=e(l);u&&I9(u,s),f&&I9(f,s)}),Lk(s)},syncFilterRow:function(a,s){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),a))},syncHeaderFilter:function(a){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),a))},getCustomFilterOperations:function(){var a=this.option("filterBuilder.customOperations")||[];return[YWt(this.component),ZWt(this.component)].concat(a)},publicMethods:function(){return["getCustomFilterOperations"]}}}()),eGt={isFilterSyncActive:function(){var t=this.option("filterSyncEnabled");return"auto"===t?this.option("filterPanel.visible"):t},skipCalculateColumnFilters:function(){var t=this.getController("filterSync");return(Z(this.option("filterValue"))||t._skipSyncColumnOptions)&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){if(!1===this.option("filterPanel.filterEnabled"))return this.callBase();var t=[this.callBase()],n=this.getController("columns").getFilteringColumns(),e=this.option("filterValue");if(this.isFilterSyncActive()){var i=this.getController("headerFilter").getCurrentColumn();i&&e&&(e=OZ(e,pf(i)))}var o=LS(e,n,this.getController("filterSync").getCustomFilterOperations(),"filterBuilder");return o&&t.push(o),vn.combineFilters(t)},_parseColumnPropertyName:function(t){var n=t.match(/.*\.(.*)/);return n?n[1]:null},clearFilter:function(t){this.component.beginUpdate(),arguments.length>0?("filterValue"===t&&this.option("filterValue",null),this.callBase(t)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(t){switch(t.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),t.handled=!0;break;case"filterSyncEnabled":t.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var n=this.getController("columns").getColumnByPath(t.fullName),e=this.getController("filterSync");if(n&&!e._skipSyncColumnOptions){var i=this._parseColumnPropertyName(t.fullName);e._skipSyncColumnOptions=!0,"filterType"===i?(Nk===t.value||Nk===t.previousValue)&&e.syncHeaderFilter(n):"filterValues"===i?e.syncHeaderFilter(n):["filterValue","selectedFilterOperation"].indexOf(i)>-1&&e.syncFilterRow(n,n.filterValue),e._skipSyncColumnOptions=!1}}this.callBase(t);break;default:this.callBase(t)}}},tGt={_isHeaderFilterEmpty:function(t){return this.getController("data").isFilterSyncActive()?!vFe(this.option("filterValue"),pf(t)):this.callBase(t)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(t){"filterValue"===t.name?this._updateHeaderFilterIndicators():this.callBase(t)}},bFe={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:QWt},extenders:{controllers:{data:eGt},views:{columnHeadersView:tGt}}};oi.registerModule("filterSync",bFe);var Uc="dx-filterbuilder",BS=Uc+"-group",xFe=BS+"-item",wFe=BS+"-content",nGt=BS+"-operations",iGt=BS+"-operation",IZ=Uc+"-action",SFe=IZ+"-icon",Vk=Uc+"-text",aGt=Uc+"-item-field",sGt=Uc+"-item-operation",DFe=Uc+"-item-value",lGt=Uc+"-item-value-text",uGt=Uc+"-overlay",dGt=Uc+"-operations",cGt=Uc+"-fields",hGt=Uc+"-add-condition",A9="dx-state-active",pGt=Uc+"-menu-custom-operation",EFe="filterBuilder",kZ="enter",fGt=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],IFe={and:"and",or:"or",notAnd:"!and",notOr:"!or"},mGt=ji.inherit(Vke),kFe=tr.inherit({_getDefaultOptions:function(){return se(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:ye.format("dxFilterBuilder-and"),or:ye.format("dxFilterBuilder-or"),notAnd:ye.format("dxFilterBuilder-notAnd"),notOr:ye.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:ye.format("dxFilterBuilder-filterOperationBetween"),equal:ye.format("dxFilterBuilder-filterOperationEquals"),notEqual:ye.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:ye.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:ye.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:ye.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:ye.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:ye.format("dxFilterBuilder-filterOperationStartsWith"),contains:ye.format("dxFilterBuilder-filterOperationContains"),notContains:ye.format("dxFilterBuilder-filterOperationNotContains"),endsWith:ye.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:ye.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:ye.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(t){switch(t.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(t.value!==t.previousValue){var n=this._disableInvalidateForValue;n||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:t.value,previousValue:t.previousValue}),this._disableInvalidateForValue=n}break;default:this.callBase(t)}},getFilterExpression:function(){var t=this._getNormalizedFields();return LS(Lk(se(!0,[],this._model)),t,this._customOperations,EFe)},_getNormalizedFields:function(){return function GWt(t){return t.reduce(function(n,e){if(Z(e.dataField)){var i={};for(var r in e)e[r]&&IWt.indexOf(r)>-1&&(i[r]=e[r]);i.defaultCalculateFilterExpression=OS.defaultCalculateFilterExpression,Z(i.dataType)||(i.dataType=gZ),Z(i.trueText)||(i.trueText=ye.format("dxDataGrid-trueText")),Z(i.falseText)||(i.falseText=ye.format("dxDataGrid-falseText")),n.push(i)}return n},[])}(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var n=Lk(se(!0,[],this._model)),e=Lk(this._getModel(this.option("value")));JSON.stringify(e)!==JSON.stringify(n)&&this.option("value",n),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new mGt},_initCustomOperations:function(){this._customOperations=function $Wt(t,n,e){var i=se(!0,[],t),r=-1;return i.some(function(o,a){if("between"===o.name)return r=a,!0}),-1!==r?i[r]=se(ZAe(n,e),i[r]):i.unshift(ZAe(n,e)),i}(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)},_getDefaultGroupOperation:function(){var t,n;return null!==(t=null===(n=this.option("groupOperations"))||void 0===n?void 0:n[0])&&void 0!==t?t:IFe.and},_getModel:function(t){return wZ(t,this._customOperations,this._getDefaultGroupOperation())},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var t=this;t._actions={},fGt.forEach(function(n){var e=se({},n.config);t._actions[n.name]=t._createActionByOption(n.name,e)})},executeAction:function(t,n){var e=this._actions[t];return e&&e(n)},_initMarkup:function(){this.$element().addClass(Uc),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(t,n){return U("<div>").addClass(BS).append(this._createConditionItem(t,n))},_createGroupElementByCriteria:function(t,n){for(var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._createGroupElement(t,n,e),r=i.find("."+wFe),o=e0(t),a=0;a<o.length;a++){var s=o[a];bv(s)?this._createGroupElementByCriteria(s,t,e+1).appendTo(r):Is(s)&&this._createConditionElement(s,t).appendTo(r)}return i},_createGroupElement:function(t,n,e){var i=U("<div>").addClass(xFe),r=U("<div>").addClass(wFe),o=U("<div>").addClass(BS).append(i).append(r);return null!=n&&this._createRemoveButton(()=>{vZ(n,t),o.remove(),this._updateFilter()}).appendTo(i),this._createGroupOperationButton(t).appendTo(i),this._createAddButton(()=>{var a=iFe(this._getDefaultGroupOperation());I9(a,t),this._createGroupElement(a,t,e+1).appendTo(r),this._updateFilter()},()=>{var s=function UWt(t,n){var e=[t.dataField,"",""];return EZ(e,_Z(t),n),e}(this.option("fields")[0],this._customOperations);I9(s,t),this._createConditionElement(s,t).appendTo(r),this._updateFilter()},e).appendTo(i),o},_createButton:function(t){return U("<div>").text(t)},_createGroupOperationButton:function(t){var n=this._getGroupOperations(t),e=function BWt(t,n){var e=hb(t);return n.filter(function(i){return i.value===e})[0]}(t,n),i=e.text,r=n&&n.length<2?this._createButton(i).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:i,menu:{items:n,displayExpr:"text",keyExpr:"value",onItemClick:o=>{e!==o.itemData&&(function LWt(t,n){var i,r;return function RWt(t,n){!function(e){return-1!==e.indexOf("!")}(n)?cb(t)&&function(e){var i=e0(e);e.length=0,[].push.apply(e,i)}(t):cb(t)||function(e){var i=e.slice(0);e.length=0,e.push("!",i)}(t)}(t,n),function(r,o){for(i=0;i<r.length;i++)Array.isArray(r[i])||(r[i]=o)}(e0(t),n=-1===(r=n).indexOf("!")?r:r.substring(1)),t}(t,o.itemData.value),r.text(o.itemData.text),e=o.itemData,this._updateFilter())},onContentReady:function(o){o.component.selectItem(e)},cssClass:nGt}});return r.addClass(Vk).addClass(iGt).attr("tabindex",0)},_createButtonWithMenu:function(t){var a,n=this,e=function(){n.$element().find("."+A9).removeClass(A9),n.$element().find(".dx-overlay .dx-treeview").remove(),n.$element().find(".dx-overlay").remove()},i=this.option("rtlEnabled"),r=i?"right":"left",o=this._createButton(t.caption);return se(t.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:(a=t.menu.onItemClick,function(s){a(s),"dxclick"===s.event.type&&e()}),onHiding:function(s){o.removeClass(A9)},position:{my:r+" top",at:r+" bottom",offset:"0 1",of:o,collision:"flip"},animation:null,onHidden:function(){e()},cssClass:uGt+" "+t.menu.cssClass,rtlEnabled:i}),t.popup={onShown:function(s){var l=U(s.component.content()).find(".dx-treeview"),u=l.dxTreeView("instance");Se.on(l,"keyup keydown",function(f){var S=Wo(f);("keydown"===f.type&&"tab"===S||"keyup"===f.type&&("escape"===S||S===kZ))&&(s.component.hide(),Se.trigger(t.menu.position.of,"focus"))}),u.focus(),u.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(o,function(){e(),n._createPopupWithTreeView(t,n.$element()),o.addClass(A9)}),o},_hasValueButton:function(t){var n=t0(this._customOperations,t[1]);return n?!1!==n.hasValue:null!==t[2]},_createOperationButtonWithMenu:function(t,n){var e=this,i=function zWt(t,n,e){var i=nFe(t),r=!!t.lookup;return e.forEach(function(o){if(!t.filterOperations&&-1===i.indexOf(o.name)){var a=o&&o.dataTypes;(!r||!o.notForLookup)&&a&&a.indexOf(t.dataType||gZ)>=0&&i.push(o.name)}}),i.map(function(o){var a=t0(e,o);return a?{icon:a.icon||"icon-none",text:a.caption||Oy(a.name),value:a.name,isCustom:!0}:{icon:XAe_getIconByFilterOperation(o)||"icon-none",text:mZ(o,n),value:o}})}(n,this.option("filterOperationDescriptions"),this._customOperations),r=function HWt(t,n){for(var e=0;e<n.length;e++)if(n[e].value===t)return n[e];throw new Di.Error("E1048",t)}(fFe(t),i),o=this._createButtonWithMenu({caption:r.text,menu:{items:i,displayExpr:"text",onItemRendered:function(a){a.itemData.isCustom&&U(a.itemElement).addClass(pGt)},onContentReady:function(a){a.component.selectItem(r)},onItemClick:a=>{if(r!==a.itemData){EZ(t,(r=a.itemData).value,e._customOperations);var s=o.siblings().filter("."+DFe);e._hasValueButton(t)?(0!==s.length&&s.remove(),e._createValueButton(t,n).appendTo(o.parent())):s.remove(),o.html(r.text),this._updateFilter()}},cssClass:dGt}}).addClass(Vk).addClass(sGt).attr("tabindex",0);return o},_createOperationAndValueButtons:function(t,n,e){this._createOperationButtonWithMenu(t,n).appendTo(e),this._hasValueButton(t)&&this._createValueButton(t,n).appendTo(e)},_createFieldButtonWithMenu:function(t,n,e){var i=this,r=this.option("allowHierarchicalFields"),o=hFe(t,r),a=k9(e.name||e.dataField,o),s=function(u,f){return r?gFe(u,f):u.caption},l=this._createButtonWithMenu({caption:s(a,o),menu:{items:o,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:u=>{if(a!==u.itemData){n[0]=(a=u.itemData).name||a.dataField,n[2]="object"===a.dataType?null:"",EZ(n,_Z(a),i._customOperations),l.siblings().filter("."+Vk).remove(),i._createOperationAndValueButtons(n,a,l.parent());var f=s(a,u.component.option("items"));l.html(f),this._updateFilter()}},onContentReady:function(u){u.component.selectItem(a)},cssClass:cGt}}).addClass(Vk).addClass(aGt).attr("tabindex",0);return l},_createConditionItem:function(t,n){var e=U("<div>").addClass(xFe),i=this._getNormalizedFields(),r=k9(t[0],i);return this._createRemoveButton(()=>{vZ(n,t),1===e.parent().children().length?e.parent().remove():e.remove(),this._updateFilter()}).appendTo(e),this._createFieldButtonWithMenu(i,t,r).appendTo(e),this._createOperationAndValueButtons(t,r,e),e},_getGroupOperations:function(t){var n=this.option("groupOperations"),e=this.option("groupOperationDescriptions");return(!n||!n.length)&&(n=[hb(t).replace("!","not")]),n.map(i=>({text:e[i],value:IFe[i]}))},_createRemoveButton:function(t){var n=U("<div>").addClass(SFe).addClass("dx-icon-remove").addClass(IZ).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(n,t),n},_createAddButton:function(t,n,e){var i,r=this.option("maxGroupLevel");return Z(r)&&e>=r?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,n)):i=this._createButtonWithMenu({menu:{items:[{caption:ye.format("dxFilterBuilder-addCondition"),click:n},{caption:ye.format("dxFilterBuilder-addGroup"),click:t}],displayExpr:"caption",onItemClick:function(o){o.itemData.click()},cssClass:hGt}}),i.addClass(SFe).addClass("dx-icon-plus").addClass(IZ).attr("tabindex",0)},_createValueText:function(t,n,e){var i=this,r=U("<div>").html("&nbsp;").addClass(lGt).attr("tabindex",0).appendTo(e),o=t[2],a=t0(i._customOperations,t[1]);return!a&&n.lookup?aFe(n,o,function(s){TZ(r,s)}):Qt(lFe(n,o,a)).done(s=>{TZ(r,s,a)}),i._subscribeOnClickAndEnterKey(r,function(s){"keyup"===s.type&&s.stopPropagation(),i._createValueEditorWithEvents(t,n,e)}),r},_updateConditionValue:function(t,n,e){t[2]!==n&&(t[2]=n),e(),this._updateFilter()},_addDocumentKeyUp:function(t,n){var e=!1,i=!1,r=It.getDocument(),o=s=>{e||i?i=!1:n(s)};Se.on(r,"keyup",o);var a=t.find("input");Se.on(a,"compositionstart",()=>{e=!0}),Se.on(a,"compositionend",()=>{e=!1,i=!0}),Se.on(a,"keydown",s=>{229!==s.which&&(i=!1)}),this._documentKeyUpHandler=o},_addDocumentClick:function(t,n){var e=It.getDocument(),i=r=>{this._isFocusOnEditorParts(t,r.target)||(Se.trigger(t.find("input"),"change"),n())};Se.on(e,"dxpointerdown",i),this._documentClickHandler=i},_isFocusOnEditorParts:function(t,n){var e=n||It.getActiveElement();return U(e).closest(t.children()).length||U(e).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var t=It.getDocument();Z(this._documentKeyUpHandler)&&Se.off(t,"keyup",this._documentKeyUpHandler),Z(this._documentClickHandler)&&Se.off(t,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(t,n,e){var i=t[2],r=()=>(e.empty(),this._removeEvents(),this._createValueText(t,n,e)),o=()=>{this._updateConditionValue(t,i,function(){r()})},a={value:""===i?null:i,filterOperation:fFe(t),setValue:function(l){i=null===l?"":l},closeEditor:o,text:e.text()};e.empty();var s=this._createValueEditor(e,n,a);Se.trigger(s.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(s,o),this._addDocumentKeyUp(s,l=>{var u=Wo(l);if("tab"===u){if(this._isFocusOnEditorParts(s))return;this._updateConditionValue(t,i,function(){r(),l.shiftKey&&Se.trigger(e.prev(),"focus")})}"escape"===u&&Se.trigger(r(),"focus"),u===kZ&&this._updateConditionValue(t,i,function(){Se.trigger(r(),"focus")})}),this._fireContentReadyAction()},_createValueButton:function(t,n){var e=U("<div>").addClass(Vk).addClass(DFe);return this._createValueText(t,n,e),e},_createValueEditor:function(t,n,e){var i=U("<div>").attr("tabindex",0).appendTo(t),r=t0(this._customOperations,e.filterOperation),o=r&&r.editorTemplate?r.editorTemplate:n.editorTemplate;return o?this._getTemplate(o).render({model:se({field:n},e),container:i}):this._editorFactory.createEditor.call(this,i,se({},n,e,{parentType:EFe})),i},_createPopupWithTreeView:function(t,n){var e=this,i=U("<div>").addClass(t.menu.cssClass).appendTo(n);this._createComponent(i,Ss,{onHiding:t.menu.onHiding,onHidden:t.menu.onHidden,rtlEnabled:t.menu.rtlEnabled,position:t.menu.position,animation:t.menu.animation,contentTemplate:function(r){var o=U("<div>").appendTo(r);e._createComponent(o,IS,t.menu),this.repaint()},_ignoreFunctionValueDeprecation:!0,maxHeight:function(){return tZ(t.menu.position.of)},visible:!0,focusStateEnabled:!1,hideOnParentScroll:this.option("closePopupOnTargetScroll"),hideOnOutsideClick:!0,onShown:t.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1,_wrapperClassExternal:t.menu.cssClass})},_subscribeOnClickAndEnterKey:function(t,n){Se.on(t,"dxclick",n),Se.on(t,"keyup",function(e){Wo(e)===kZ&&n(e)})}});On("dxFilterBuilder",kFe);const MFe=kFe;var _Gt=Bo.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var t=this;t._disposePopup(),t._filterBuilderPopup=t._createComponent(t.element(),Ss,se({title:ye.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(n){return t._getPopupContentTemplate(n)},onOptionChanged:function(n){"visible"===n.name&&t.option("filterBuilderPopup.visible",n.value)},toolbarItems:t._getPopupToolbarItems()},t.option("filterBuilderPopup"),{onHidden:function(n){Qq(t),t._disposePopup()}}))},_getPopupContentTemplate:function(t){var n=U(t),e=U("<div>").appendTo(U(t));this._filterBuilder=this._createComponent(e,MFe,se({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(n,Ih,{direction:"both"})},_getPopupToolbarItems:function(){var t=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:ye.format("OK"),onClick:function(n){var e=t._filterBuilder.option("value");t.option("filterValue",e),t._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:ye.format("Cancel"),onClick:function(n){t._filterBuilderPopup.hide()}}}]},optionChanged:function(t){switch(t.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),t.handled=!0;break;default:this.callBase(t)}}}),AFe={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:ye.format("dxFilterBuilder-and"),or:ye.format("dxFilterBuilder-or"),notAnd:ye.format("dxFilterBuilder-notAnd"),notOr:ye.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:ye.format("dxFilterBuilder-filterOperationBetween"),equal:ye.format("dxFilterBuilder-filterOperationEquals"),notEqual:ye.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:ye.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:ye.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:ye.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:ye.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:ye.format("dxFilterBuilder-filterOperationStartsWith"),contains:ye.format("dxFilterBuilder-filterOperationContains"),notContains:ye.format("dxFilterBuilder-filterOperationNotContains"),endsWith:ye.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:ye.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:ye.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:_Gt}};oi.registerModule("filterBuilder",AFe);var Hk="filter-panel",vGt=Hk+"-text",yGt=Hk+"-checkbox",CGt=Hk+"-clear-filter",bGt=Hk+"-left",wGt=Bo.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){this.getController("data").dataSourceChanged.add(()=>this.render())},_renderCore:function(){var t=this.element();t.empty().addClass(this.addWidgetPrefix(Hk));var n=U("<div>").addClass(this.addWidgetPrefix(bGt)).appendTo(t);this.option("filterValue")||this._filterValueBuffer?(n.append(this._getCheckElement()).append(this._getFilterElement()).append(this._getTextElement()),t.append(this._getRemoveButtonElement())):n.append(this._getFilterElement()).append(this._getTextElement())},_getCheckElement:function(){var t=this,n=U("<div>").addClass(this.addWidgetPrefix(yGt));return t._createComponent(n,wS,{value:t.option("filterPanel.filterEnabled"),onValueChanged:function(e){t.option("filterPanel.filterEnabled",e.value)}}),n.attr("title",this.option("filterPanel.texts.filterEnabledHint")),n},_getFilterElement:function(){var t=this,n=U("<div>").addClass("dx-icon-filter");return Se.on(n,"click",()=>t._showFilterBuilder()),ck("filterPanel",t,n,void 0,()=>t._showFilterBuilder()),t._addTabIndexToElement(n),n},_getTextElement:function(){var e,t=this,n=U("<div>").addClass(t.addWidgetPrefix(vGt)),i=t.option("filterValue");return i?Qt(t.getFilterText(i,t.getController("filterSync").getCustomFilterOperations())).done(function(r){var o=t.option("filterPanel.customizeText");if(o){var a=o({component:t.component,filterValue:i,text:r});"string"==typeof a&&(r=a)}n.text(r)}):(e=t.option("filterPanel.texts.createFilter"),n.text(e)),Se.on(n,"click",()=>t._showFilterBuilder()),ck("filterPanel",t,n,void 0,()=>t._showFilterBuilder()),t._addTabIndexToElement(n),n},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var t=this,n=()=>t.option("filterValue",null),e=U("<div>").addClass(t.addWidgetPrefix(CGt)).text(t.option("filterPanel.texts.clearFilter"));return Se.on(e,"click",n),ck("filterPanel",this,e,void 0,n),t._addTabIndexToElement(e),e},_addTabIndexToElement:function(t){if(!this.option("useLegacyKeyboardNavigation")){var n=this.option("tabindex")||0;t.attr("tabindex",n)}},optionChanged:function(t){switch(t.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),t.handled=!0;break;case"filterPanel":this._invalidate(),t.handled=!0;break;default:this.callBase(t)}},_getConditionText:function(t,n,e){var i="[".concat(t,"] ").concat(n);return Z(e)&&(i+=e),i},_getValueMaskedText:function(t){return Array.isArray(t)?"('".concat(t.join("', '"),"')"):" '".concat(t,"'")},_getValueText:function(t,n,e){var i=new et,r=n&&n.customizeText;return Z(e)||r?!r&&t.lookup?aFe(t,e,a=>{i.resolve(this._getValueMaskedText(a))}):Qt(lFe(t,Array.isArray(e)?e:vn.getDisplayValue(t,e),n,"filterPanel")).done(a=>{i.resolve(this._getValueMaskedText(a))}):i.resolve(""),i.promise()},getConditionText:function(t,n){var a,e=this,i=t[1],r=new et,o=t0(n.customOperations,i),s=k9(t[0],n.columns),l=s.caption||"",u=t[2];return a=o?o.caption||Oy(o.name):mZ(null===u?"="===i?"isblank":"isnotblank":i,n.filterOperationDescriptions),this._getValueText(s,o,u).done(f=>{r.resolve(e._getConditionText(l,a,f))}),r},getGroupText:function(t,n,e){var i=this,r=new et,o=[],a=hb(t);return t.forEach(s=>{Is(s)?o.push(i.getConditionText(s,n)):bv(s)&&o.push(i.getGroupText(s,n,!0))}),Qt.apply(this,o).done(function(){for(var s,l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];if("!"===a[0]){var S=n.groupOperationDescriptions["not"+a.substring(1,2).toUpperCase()+a.substring(2)].split(" ");s="".concat(S[0]," ").concat(u[0])}else s=u.join(" ".concat(n.groupOperationDescriptions[a]," "));e&&(s="(".concat(s,")")),r.resolve(s)}),r},getFilterText:function(t,n){var e={customOperations:n,columns:this.getController("columns").getFilteringColumns(),filterOperationDescriptions:this.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:this.option("filterBuilder.groupOperationDescriptions")};return Is(t)?this.getConditionText(t,e):this.getGroupText(t,e)}}),FFe={defaultOptions:function(){return{filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:ye.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:ye.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:ye.format("dxDataGrid-filterPanelFilterEnabledHint")}}}},views:{filterPanelView:wGt},extenders:{controllers:{data:{optionChanged:function(t){"filterPanel"===t.name?(this._applyFilter(),t.handled=!0):this.callBase(t)}}}}};oi.registerModule("filterPanel",FFe);var PFe="search-panel",RFe="search-text";function LFe(t){return Z(t.allowSearch)?t.allowSearch:t.allowFiltering}function BFe(t,n){var e=t.lookup;return t.parseValue?e?t.parseValue.call(e,n):t.parseValue(n):n}var NFe={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:ye.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var t=this.callBase(),n=function(e,i){var r,o,l,a=e._columnsController.getColumns(),s=e.option("searchPanel.searchVisibleColumnsOnly"),u=[];if(!i)return null;function f(T){for(var R=Ai(l.valueExpr),L=0;L<T.length;L++){var z=R(T[L]);u.push(o.createFilterExpression(z,null,"search"))}}for(r=0;r<a.length;r++)if(o=a[r],(!s||o.visible)&&LFe(o)&&o.calculateFilterExpression){l=o.lookup;var S=BFe(o,i);l&&l.items?Ha(l.items).filter(o.createFilterExpression.call({dataField:l.displayExpr,dataType:l.dataType,calculateFilterExpression:o.calculateFilterExpression},S,null,"search")).enumerate().done(f):void 0!==S&&u.push(o.createFilterExpression(S,null,"search"))}return 0===u.length?["!"]:vn.combineFilters(u,"or")}(this,this.option("searchPanel.text"));return vn.combineFilters([t,n])},searchByText:function(t){this.option("searchPanel.text",t)},optionChanged:function(t){switch(t.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),t.handled=!0;break;default:this.callBase(t)}}}},views:{headerPanel:function(){var t=function(n){return n.option("searchPanel")};return{_getToolbarItems:function(){var n=this.callBase();return this._prepareSearchItem(n)},_prepareSearchItem:function(n){var e=this,i=e.getController("data"),r=t(e);return r&&r.visible&&n.push({template:function(a,s,l){var u=U("<div>").addClass(e.addWidgetPrefix(PFe)).appendTo(l);e.getController("editorFactory").createEditor(u,{width:r.width,placeholder:r.placeholder,parentType:"searchPanel",value:e.option("searchPanel.text"),updateValueTimeout:700,setValue:function(f){i.searchByText(f)},editorOptions:{inputAttr:{"aria-label":ye.format("".concat(e.component.NAME,"-ariaSearchInGrid"))}}}),e.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40}),n},getSearchTextEditor:function(){var n=this,e=n.element(),i=e.find("."+n.addWidgetPrefix(PFe)).filter(function(){return U(this).closest("."+n.addWidgetPrefix("header-panel")).is(e)});return i.length?i.dxTextBox("instance"):null},isVisible:function(){var n=t(this);return this.callBase()||n&&n.visible},optionChanged:function(n){if("searchPanel"===n.name){if("searchPanel.text"===n.fullName){var e=this.getSearchTextEditor();e&&e.option("value",n.value)}else this._invalidate();n.handled=!0}else this.callBase(n)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(t,n){var e=BFe(t,n),i=vn.getFormatOptionsByColumn(t,"search");return vn.formatValue(e,i)},_getStringNormalizer:function(){var t=this.option("searchPanel.highlightCaseSensitive");return function(n){return t?n:n.toLowerCase()}},_findHighlightingTextNodes:function(t,n,e){var i,o,r=n.parent(),a=this._getStringNormalizer(),s=a(e),l=[];if(r.length){if(t)if(t.groupIndex>=0&&!t.showWhenGrouped)o=n;else{var u=this._columnsController.getVisibleIndex(t.index);o=r.children("td").eq(u).find("*")}}else r=U("<div>").append(n);return(o=null!==(i=o)&&void 0!==i&&i.length?o:r.find("*")).each(function(f,S){for(var T=U(S).contents(),R=0;R<T.length;R++){var L=T.get(R);3===L.nodeType&&a(L.textContent||L.nodeValue).indexOf(s)>-1&&l.push(L)}}),l},_highlightSearchTextCore:function(t,n){var e=U("<span>").addClass(this.addWidgetPrefix(RFe)),i=t.text(),r=t[0],o=this._getStringNormalizer(),a=o(i).indexOf(o(n));if(a>=0)return r.textContent?r.textContent=i.substr(0,a):r.nodeValue=i.substr(0,a),t.after(e.text(i.substr(a,n.length))),t=U(It.createTextNode(i.substr(a+n.length))).insertAfter(e),this._highlightSearchTextCore(t,n)},_highlightSearchText:function(t,n,e){var i=this,r=this._getStringNormalizer(),o=i.option("searchPanel.text");n&&e&&(o=o&&i._getFormattedSearchText(e,o)),o&&i.option("searchPanel.highlightSearchText")&&i._findHighlightingTextNodes(e,t,o).forEach(s=>{n?r(U(s).text())===r(o)&&U(s).replaceWith(U("<span>").addClass(i.addWidgetPrefix(RFe)).text(U(s).text())):i._highlightSearchTextCore(U(s),o)})},_renderCore:function(){var t=this.callBase.apply(this,arguments);return(this.option().rowTemplate||this.option("dataRowTemplate"))&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this.getTableElement())}.bind(this))):this._highlightSearchText(this.getTableElement())),t},_updateCell:function(t,n){var e=n.column,r="string"!==(e.lookup&&e.lookup.dataType||e.dataType);LFe(e)&&!n.isOnForm&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(o){this._highlightSearchText.apply(this,o)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([t,r,e])):this._highlightSearchText(t,r,e)),this.callBase(t,n)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}};oi.registerModule("search",NFe);class EGt extends bm{_optionChanged(n){switch(n.name){case"pageIndex":var e=this.option("pageIndexChanged");e&&e(n.value);break;case"pageSize":var i=this.option("pageSizeChanged");i&&i(n.value)}super._optionChanged(n)}}function n0(t,n){var e;return bCe((null!==(e=sTe(n))&&void 0!==e?e:{})[t])}function F9(t){return n0("marginLeft",t)+n0("marginRight",t)+n0("width",t)}function VFe(t){return n0("minWidth",t)}var TGt=["contentTemplate","pagerProps"];var FGt={},PGt=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let RGt=(()=>{class t extends Tc{constructor(e){super(e),this.parentRef={current:null},this.pageSizesRef={current:null},this.infoTextRef={current:null},this.pagesRef={current:null},this.actualIsLargeDisplayMode=!0,this.actualInfoTextVisible=!0,this.state={infoTextVisible:!0,isLargeDisplayMode:!0},this.subscribeToResize=this.subscribeToResize.bind(this),this.effectUpdateChildProps=this.effectUpdateChildProps.bind(this),this.updateAdaptivityProps=this.updateAdaptivityProps.bind(this)}createEffects(){return[new yo(this.subscribeToResize,[this.state.infoTextVisible,this.state.isLargeDisplayMode]),new yo(this.effectUpdateChildProps,[this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])]}updateEffects(){var e,i;null===(e=this._effects[0])||void 0===e||e.update([this.state.infoTextVisible,this.state.isLargeDisplayMode]),null===(i=this._effects[1])||void 0===i||i.update([this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])}subscribeToResize(){var e=()=>{this.parentWidth>0&&this.updateAdaptivityProps()};return fp.add(e),()=>{fp.remove(e)}}effectUpdateChildProps(){this.parentWidth>0&&this.updateAdaptivityProps()}get contentAttributes(){var{className:e,displayMode:i,gridCompatibility:r,hasKnownLastPage:o,infoText:a,label:s,lightModeEnabled:l,maxPagesCount:u,onKeyDown:f,pageCount:S,pageIndex:T,pageIndexChange:R,pageSize:L,pageSizeChange:z,pageSizes:j,pagesCountText:Y,pagesNavigatorVisible:ie,rtlEnabled:te,showInfo:re,showNavigationButtons:he,showPageSizes:fe,totalCount:Te,visible:Re}=this.props.pagerProps;return mt({},this.restAttributes,{pageSize:L,pageIndex:T,pageIndexChange:R,pageSizeChange:z,gridCompatibility:r,className:e,showInfo:re,infoText:a,lightModeEnabled:l,displayMode:i,maxPagesCount:u,pageCount:S,pagesCountText:Y,visible:Re,hasKnownLastPage:o,pagesNavigatorVisible:ie,showPageSizes:fe,pageSizes:j,rtlEnabled:te,showNavigationButtons:he,totalCount:Te,onKeyDown:f,label:s})}get parentWidth(){return this.parentRef.current?F9(this.parentRef.current):0}updateAdaptivityProps(){var e=function AGt(t){var{info:n,pageSizes:e,pages:i,parent:r}=t,o=function OGt(t){var n=n0("paddingLeft",t)+n0("paddingRight",t);return n0("width",t)-n}(r),a=F9(e),s=F9(n),l=F9(i);return{parent:o,pageSizes:a,info:s+n0("marginLeft",n)+n0("marginRight",n),pages:l}}({parent:this.parentRef.current,pageSizes:this.pageSizesRef.current,info:this.infoTextRef.current,pages:this.pagesRef.current});if(this.actualInfoTextVisible===this.state.infoTextVisible&&this.actualIsLargeDisplayMode===this.state.isLargeDisplayMode){var i=!Z(this.elementsWidth);i&&(this.elementsWidth={}),(i||this.state.isLargeDisplayMode)&&(this.elementsWidth.pageSizes=e.pageSizes,this.elementsWidth.pages=e.pages),(i||this.state.infoTextVisible)&&(this.elementsWidth.info=e.info),this.actualIsLargeDisplayMode=function kGt(t){var{pageSizes:n,pages:e,parent:i}=t;return i-(n+e)>0}(mt({parent:e.parent},{pageSizes:this.elementsWidth.pageSizes,pages:this.elementsWidth.pages})),this.actualInfoTextVisible=function MGt(t){var{info:n,pageSizes:e,pages:i,parent:r}=t;return r-(e+i+n)>0}(mt({},e,{info:this.elementsWidth.info})),this.setState(r=>({infoTextVisible:this.actualInfoTextVisible})),this.setState(r=>({isLargeDisplayMode:this.actualIsLargeDisplayMode}))}}get restAttributes(){return ki(this.props,TGt)}render(){var e=this.props;return(t=>{var{contentAttributes:n,infoTextRef:e,infoTextVisible:i,isLargeDisplayMode:r,pageSizesRef:o,pagesRef:a,parentRef:s,props:{contentTemplate:l}}=t;return l(mt({rootElementRef:s,pageSizesRef:o,infoTextRef:e,pagesRef:a,infoTextVisible:i,isLargeDisplayMode:r},n))})({props:mt({},e,{contentTemplate:PGt(e.contentTemplate)}),infoTextVisible:this.state.infoTextVisible,isLargeDisplayMode:this.state.isLargeDisplayMode,parentRef:this.parentRef,pageSizesRef:this.pageSizesRef,infoTextRef:this.infoTextRef,pagesRef:this.pagesRef,contentAttributes:this.contentAttributes,parentWidth:this.parentWidth,updateAdaptivityProps:this.updateAdaptivityProps,restAttributes:this.restAttributes})}}return t.defaultProps=FGt,t})();var HFe={gridCompatibility:!0,showInfo:!1,displayMode:"adaptive",maxPagesCount:10,pageCount:10,visible:!0,hasKnownLastPage:!0,pagesNavigatorVisible:"auto",showPageSizes:!0,pageSizes:Object.freeze([5,10]),showNavigationButtons:!1,totalCount:0,get label(){return ye.format("dxPager-ariaLabel")}},LGt=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(HFe),Object.getOwnPropertyDescriptors({defaultPageSize:5,pageSizeChange:()=>{},defaultPageIndex:1,pageIndexChange:()=>{}}))),fl=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(HFe),Object.getOwnPropertyDescriptors({pageSize:5,pageIndex:1}))),BGt=["infoText","pageCount","pageIndex","rootElementRef","totalCount"],VGt={get pageIndex(){return fl.pageIndex},get pageCount(){return fl.pageCount},get totalCount(){return fl.totalCount}};let HGt=(()=>{class t extends so{constructor(e){super(e),this.state={}}get infoText(){var e;return(null!==(e=this.props.infoText)&&void 0!==e?e:"")||ye.getFormatter("dxPager-infoText")()}get text(){var{pageCount:e,pageIndex:i,totalCount:r}=this.props;return Er(this.infoText,(i+1).toString(),e.toString(),r.toString())}get restAttributes(){return ki(this.props,BGt)}render(){return(t=>{var{props:{rootElementRef:n},text:e}=t;return er(1,"div","dx-info",e,0,null,null,n)})({props:mt({},this.props),infoText:this.infoText,text:this.text,restAttributes:this.restAttributes})}}return t.defaultProps=VGt,t})();var zk=BU(void 0),zGt=["children","className","label","onClick","selected","tabIndex"],WGt={className:"",label:"",tabIndex:0,selected:!1};let P9=(()=>{class t extends Tc{constructor(e){super(e),this.state={},this.widgetRef={current:null},this.keyboardEffect=this.keyboardEffect.bind(this),this.subscribeToClick=this.subscribeToClick.bind(this)}get keyboardContext(){return this.context[zk.id]?this.context[zk.id]:zk.defaultValue}createEffects(){return[new yo(this.keyboardEffect,[this.keyboardContext,this.props.onClick]),new yo(this.subscribeToClick,[this.props.onClick])]}updateEffects(){var e,i;null===(e=this._effects[0])||void 0===e||e.update([this.keyboardContext,this.props.onClick]),null===(i=this._effects[1])||void 0===i||i.update([this.props.onClick])}keyboardEffect(){return this.keyboardContext.registerKeyboardAction(this.widgetRef.current,this.props.onClick)}subscribeToClick(){return Tvt(this.widgetRef.current,this.props.onClick)}get restAttributes(){return ki(this.props,zGt)}render(){return(t=>{var{props:{children:n,className:e,label:i,selected:r,tabIndex:o},widgetRef:a}=t;return er(1,"div",e,n,0,{tabIndex:o,role:"button","aria-label":i,"aria-current":r?"page":void 0},null,a)})({props:mt({},this.props),widgetRef:this.widgetRef,keyboardContext:this.keyboardContext,restAttributes:this.restAttributes})}}return t.defaultProps=WGt,t})();var UFe="dx-selection",WFe="dx-page-size",ZGt="".concat(WFe," ").concat(UFe),JGt=["className","index","onClick","selected"],ejt={index:0,selected:!1,className:"dx-page"};let GFe=(()=>{class t extends so{constructor(e){super(e),this.state={}}get label(){return Er(ye.getFormatter("dxPager-page"),this.value)}get value(){return this.props.index+1}get className(){var{selected:e}=this.props;return fs({["".concat(this.props.className)]:!!this.props.className,[UFe]:!!e})}get restAttributes(){return ki(this.props,JGt)}render(){return(t=>{var{className:n,label:e,props:{onClick:i,selected:r},value:o}=t;return Wn(2,P9,{className:n,label:e,onClick:i,selected:r,children:o})})({props:mt({},this.props),label:this.label,value:this.value,className:this.className,restAttributes:this.restAttributes})}}return t.defaultProps=ejt,t})();var tjt=["pageIndexes"],njt=["maxPagesCount","pageCount","pageIndex","pageIndexChange"];function jFe(t,n,e){return 1===t?"high":t+n===e-1?"low":"both"}function KFe(t,n,e){var i=[],r=[];switch(e){case"none":i=[...t];break;case"both":i=[0,"low",...t,"high",n-1],r=t.slice(1,-1);break;case"high":i=[0,...t,"high",n-1],r=t.slice(0,-1);break;case"low":i=[0,"low",...t,n-1],r=t.slice(1)}return{slidingWindowIndexes:t,indexesForReuse:r,pageIndexes:i}}function $Fe(t,n,e,i){for(var r=[],o=0;o<n;o+=1)r.push(o+t);return KFe(r,e,i)}var ojt={get pageIndex(){return fl.pageIndex},get maxPagesCount(){return fl.maxPagesCount},get pageCount(){return fl.pageCount}};let ajt=(()=>{class t extends so{constructor(e){super(e),this.state={},this.canReuseSlidingWindow=this.canReuseSlidingWindow.bind(this),this.generatePageIndexes=this.generatePageIndexes.bind(this),this.isSlidingWindowMode=this.isSlidingWindowMode.bind(this),this.onPageClick=this.onPageClick.bind(this)}get config(){return this.context[Rl.id]?this.context[Rl.id]:Rl.defaultValue}get slidingWindowState(){return this.slidingWindowStateHolder||{indexesForReuse:[],slidingWindowIndexes:[]}}canReuseSlidingWindow(e,i){var{indexesForReuse:r}=this.slidingWindowState,o=r.slice(-1)[0]<e-1,a=r.includes(i);return o&&a}generatePageIndexes(){var r,{pageCount:e,pageIndex:i}=this.props,{slidingWindowIndexes:o}=this.slidingWindowState,l=$Fe(r=i===o[0]?i-1:i===o[o.length-1]?i+2-4:i<4?1:i>=e-4?e-4-1:i-1,4,e,jFe(r,4,e)),{pageIndexes:u}=l,f=ki(l,tjt);return this.slidingWindowStateHolder=f,u}isSlidingWindowMode(){var{maxPagesCount:e,pageCount:i}=this.props;return i<=4||i<=e}onPageClick(e){this.props.pageIndexChange(e)}get pageIndexes(){var{pageCount:e}=this.props;if(this.isSlidingWindowMode())return $Fe(0,e,e,"none").pageIndexes;if(this.canReuseSlidingWindow(e,this.props.pageIndex)){var{slidingWindowIndexes:i}=this.slidingWindowState;return KFe(i,e,jFe(i[0],4,e)).pageIndexes}return this.generatePageIndexes()}get pages(){var e,{pageIndex:i}=this.props,r=a=>{var s="low"===a||"high"===a?null:{index:a,onClick:()=>this.onPageClick(a),selected:i===a};return{key:a.toString(),pageProps:s}};return(null!==(e=this.config)&&void 0!==e&&e.rtlEnabled?[...this.pageIndexes].reverse():this.pageIndexes).map(a=>r(a))}get restAttributes(){return ki(this.props,njt)}render(){return(t=>{var{pages:n}=t;return Pl(n.map(i=>{var{key:r,pageProps:o}=i;return o?Wn(2,GFe,{index:o.index,selected:o.selected,onClick:o.onClick},r):er(1,"div","dx-separator",". . .",16,null,r)}),0)})({props:mt({},this.props),config:this.config,pageIndexes:this.pageIndexes,pages:this.pages,restAttributes:this.restAttributes})}}return t.defaultProps=ojt,t})();var NS={hoverStateEnabled:!0,activeStateEnabled:!0,get focusStateEnabled(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()}},R9={label:"",get labelMode(){return io(lu())?"floating":"static"}},sjt=["accessKey","activeStateEnabled","className","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","invalidValueMessage","isValid","label","labelMode","max","min","mode","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","showSpinButtons","step","tabIndex","useLargeSpinButtons","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],Wc=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(Ks),Object.getOwnPropertyDescriptors({defaultValue:0,isReactComponentWrapper:!0}))),djt={get defaultValue(){return Wc.defaultValue},get readOnly(){return Wc.readOnly},get name(){return Wc.name},get validationError(){return Wc.validationError},get validationErrors(){return Wc.validationErrors},get validationMessageMode(){return Wc.validationMessageMode},get validationMessagePosition(){return Wc.validationMessagePosition},get validationStatus(){return Wc.validationStatus},get isValid(){return Wc.isValid},get className(){return Wc.className},get activeStateEnabled(){return NS.activeStateEnabled},get disabled(){return Wc.disabled},get focusStateEnabled(){return NS.focusStateEnabled},get hoverStateEnabled(){return NS.hoverStateEnabled},get tabIndex(){return Wc.tabIndex},get visible(){return Wc.visible},get label(){return R9.label},get labelMode(){return R9.labelMode},isReactComponentWrapper:!0};let cjt=(()=>{class t extends so{constructor(e){super(e),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){return ki(mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),sjt)}render(){return(t=>{var{componentProps:n,restAttributes:e}=t;return Nr(Wn(2,Rq,mt({componentType:af,componentProps:n,templateNames:[]},e)))})({props:mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return t.defaultProps=djt,t})();function qFe(t,n){return t+10*Math.max(...n).toString().length}var pjt=["pageCount","pageIndex","pageIndexChange","pagesCountText"],gjt="".concat("dx-info","  dx-info-text"),YFe="dx-page-index",vjt={get pageIndex(){return fl.pageIndex},get pageCount(){return fl.pageCount}};let yjt=(()=>{class t extends Tc{constructor(e){super(e),this.pageIndexRef={current:null},this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this),this.selectLastPageIndex=this.selectLastPageIndex.bind(this),this.valueChange=this.valueChange.bind(this)}createEffects(){return[new yo(this.updateWidth,[this.state.minWidth])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.state.minWidth])}updateWidth(){var e,i=null===(e=this.pageIndexRef.current)||void 0===e?void 0:e.querySelector(".".concat(YFe));this.setState(r=>({minWidth:i&&VFe(i)||r.minWidth}))}get value(){return this.props.pageIndex+1}get width(){var{pageCount:e}=this.props;return qFe(this.state.minWidth,[e])}get pagesCountText(){var e;return(null!==(e=this.props.pagesCountText)&&void 0!==e?e:"")||ye.getFormatter("dxPager-pagesCountText")()}selectLastPageIndex(){this.props.pageIndexChange(this.props.pageCount-1)}valueChange(e){this.props.pageIndexChange(e-1)}get restAttributes(){return ki(this.props,pjt)}render(){return(t=>{var{pageIndexRef:n,pagesCountText:e,props:{pageCount:i},selectLastPageIndex:r,value:o,valueChange:a,width:s}=t;return er(1,"div","dx-light-pages",[Wn(2,cjt,{className:YFe,min:1,max:i,width:s,value:o,valueChange:a}),er(1,"span",gjt,e,0),Wn(2,GFe,{className:"dx-pages-count",selected:!1,index:i-1,onClick:r})],4,null,null,n)})({props:mt({},this.props),pageIndexRef:this.pageIndexRef,value:this.value,width:this.width,pagesCountText:this.pagesCountText,selectLastPageIndex:this.selectLastPageIndex,valueChange:this.valueChange,restAttributes:this.restAttributes})}}return t.defaultProps=vjt,t})();var Cjt=["hasKnownLastPage","isLargeDisplayMode","maxPagesCount","pageCount","pageIndex","pageIndexChange","pagesCountText","showNavigationButtons","totalCount"],L9="dx-navigate-button",ZFe="dx-prev-button",XFe="dx-next-button",JFe="dx-button-disable",wjt={nextEnabledClass:"".concat(L9," ").concat(XFe),prevEnabledClass:"".concat(L9," ").concat(ZFe),nextDisabledClass:"".concat(JFe," ").concat(L9," ").concat(XFe),prevDisabledClass:"".concat(JFe," ").concat(L9," ").concat(ZFe)},Sjt={next:"prev",prev:"next"},Tjt={get pageIndex(){return fl.pageIndex},get maxPagesCount(){return fl.maxPagesCount},get pageCount(){return fl.pageCount},get hasKnownLastPage(){return fl.hasKnownLastPage},get showNavigationButtons(){return fl.showNavigationButtons},get totalCount(){return fl.totalCount},get isLargeDisplayMode(){return true}};let Ijt=(()=>{class t extends so{constructor(e){super(e),this.state={},this.__getterCache={},this.pageIndexChange=this.pageIndexChange.bind(this),this.getButtonProps=this.getButtonProps.bind(this),this.canNavigateToPage=this.canNavigateToPage.bind(this),this.getNextPageIndex=this.getNextPageIndex.bind(this),this.canNavigateTo=this.canNavigateTo.bind(this),this.navigateToPage=this.navigateToPage.bind(this)}get config(){return this.context[Rl.id]?this.context[Rl.id]:Rl.defaultValue}pageIndexChange(e){this.canNavigateToPage(e)&&this.props.pageIndexChange(e)}getButtonProps(e){var i,r=null!==(i=this.config)&&void 0!==i&&i.rtlEnabled?Sjt[e]:e,o=this.canNavigateTo(r);return{className:wjt["".concat(e).concat(o?"Enabled":"Disabled","Class")],tabIndex:o?0:-1,navigate:()=>this.navigateToPage(r)}}canNavigateToPage(e){return this.props.hasKnownLastPage?e>=0&&e<=this.props.pageCount-1:e>=0}getNextPageIndex(e){return this.props.pageIndex+function Ejt(t){return"next"===t?1:-1}(e)}canNavigateTo(e){return this.canNavigateToPage(this.getNextPageIndex(e))}navigateToPage(e){this.pageIndexChange(this.getNextPageIndex(e))}get renderPrevButton(){var{isLargeDisplayMode:e,showNavigationButtons:i}=this.props;return!e||i}get renderNextButton(){return this.renderPrevButton||!this.props.hasKnownLastPage}get prevButtonProps(){return void 0!==this.__getterCache.prevButtonProps?this.__getterCache.prevButtonProps:this.__getterCache.prevButtonProps=(()=>this.getButtonProps("prev"))()}get nextButtonProps(){return void 0!==this.__getterCache.nextButtonProps?this.__getterCache.nextButtonProps:this.__getterCache.nextButtonProps=(()=>this.getButtonProps("next"))()}get restAttributes(){return ki(this.props,Cjt)}componentWillUpdate(e,i,r){(this.context[Rl.id]!==r[Rl.id]||this.props.hasKnownLastPage!==e.hasKnownLastPage||this.props.pageCount!==e.pageCount||this.props.pageIndex!==e.pageIndex||this.props.pageIndexChange!==e.pageIndexChange)&&(this.__getterCache.prevButtonProps=void 0),(this.context[Rl.id]!==r[Rl.id]||this.props.hasKnownLastPage!==e.hasKnownLastPage||this.props.pageCount!==e.pageCount||this.props.pageIndex!==e.pageIndex||this.props.pageIndexChange!==e.pageIndexChange)&&(this.__getterCache.nextButtonProps=void 0)}render(){return(t=>{var{nextButtonProps:n,pageIndexChange:e,prevButtonProps:i,props:{isLargeDisplayMode:r,maxPagesCount:o,pageCount:a,pageIndex:s,pagesCountText:l},renderNextButton:u,renderPrevButton:f}=t;return Pl([f&&Wn(2,P9,{label:ye.getFormatter("dxPager-prevPage")(),className:i.className,tabIndex:i.tabIndex,onClick:i.navigate}),r&&Wn(2,ajt,{maxPagesCount:o,pageCount:a,pageIndex:s,pageIndexChange:e}),!r&&Wn(2,yjt,{pageCount:a,pageIndex:s,pageIndexChange:e,pagesCountText:l}),u&&Wn(2,P9,{label:ye.getFormatter("dxPager-nextPage")(),className:n.className,tabIndex:n.tabIndex,onClick:n.navigate})],0)})({props:mt({},this.props),config:this.config,pageIndexChange:this.pageIndexChange,renderPrevButton:this.renderPrevButton,renderNextButton:this.renderNextButton,prevButtonProps:this.prevButtonProps,nextButtonProps:this.nextButtonProps,restAttributes:this.restAttributes})}}return t.defaultProps=Tjt,t})();var kjt=["accessKey","activeStateEnabled","className","dataSource","defaultValue","disabled","displayExpr","focusStateEnabled","height","hint","hoverStateEnabled","isValid","label","labelMode","name","onClick","onFocusIn","onKeyDown","placeholder","readOnly","rtlEnabled","searchEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","valueExpr","visible","width"],Ad=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(Ks),Object.getOwnPropertyDescriptors({placeholder:"",hoverStateEnabled:!0,searchEnabled:!1,defaultValue:null,isReactComponentWrapper:!0}))),Ajt={get placeholder(){return Ad.placeholder},get hoverStateEnabled(){return NS.hoverStateEnabled},get searchEnabled(){return Ad.searchEnabled},get defaultValue(){return Ad.defaultValue},get readOnly(){return Ad.readOnly},get name(){return Ad.name},get validationError(){return Ad.validationError},get validationErrors(){return Ad.validationErrors},get validationMessageMode(){return Ad.validationMessageMode},get validationMessagePosition(){return Ad.validationMessagePosition},get validationStatus(){return Ad.validationStatus},get isValid(){return Ad.isValid},get className(){return Ad.className},get activeStateEnabled(){return NS.activeStateEnabled},get disabled(){return Ad.disabled},get focusStateEnabled(){return NS.focusStateEnabled},get tabIndex(){return Ad.tabIndex},get visible(){return Ad.visible},get label(){return R9.label},get labelMode(){return R9.labelMode},isReactComponentWrapper:!0};let Fjt=(()=>{class t extends so{constructor(e){super(e),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){return ki(mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),kjt)}render(){return(t=>{var{componentProps:n,restAttributes:e}=t;return Nr(Wn(2,Rq,mt({componentType:s9,componentProps:n,templateNames:["dropDownButtonTemplate","groupTemplate","itemTemplate"]},e)))})({props:mt({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return t.defaultProps=Ajt,t})();var Pjt=["pageSize","pageSizeChange","pageSizes","parentRef"],Ljt={get pageSize(){return fl.pageSize}};let Bjt=(()=>{class t extends Tc{constructor(e){super(e),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this)}createEffects(){return[new yo(this.updateWidth,[this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes])}updateWidth(){this.setState(e=>({minWidth:VFe(this.props.parentRef.current)||e.minWidth}))}get width(){return qFe(this.state.minWidth,this.props.pageSizes.map(e=>e.value))}get restAttributes(){return ki(this.props,Pjt)}render(){return(t=>{var{props:{pageSize:n,pageSizeChange:e,pageSizes:i},width:r}=t;return Wn(2,Fjt,{displayExpr:"text",valueExpr:"value",dataSource:i,value:n,valueChange:e,width:r})})({props:mt({},this.props),width:this.width,restAttributes:this.restAttributes})}}return t.defaultProps=Ljt,t})();var Njt=["pageSize","pageSizeChange","pageSizes"],Hjt={get pageSize(){return fl.pageSize}};let zjt=(()=>{class t extends so{constructor(e){super(e),this.state={},this.__getterCache={},this.onPageSizeChange=this.onPageSizeChange.bind(this)}get pageSizesText(){return void 0!==this.__getterCache.pageSizesText?this.__getterCache.pageSizesText:this.__getterCache.pageSizesText=(()=>{var{pageSize:e,pageSizes:i}=this.props;return i.map((r,o)=>{var{text:a,value:s}=r;return{className:fs({[s===e?ZGt:WFe]:!0,"dx-first-child":0===o}),click:this.onPageSizeChange(s),label:Er(ye.getFormatter("dxPager-pageSize"),s||ye.getFormatter("dxPager-pageSizesAllText")),text:a}})})()}onPageSizeChange(e){return()=>(this.props.pageSizeChange(e),this.props.pageSize)}get restAttributes(){return ki(this.props,Njt)}componentWillUpdate(e,i,r){(this.props.pageSize!==e.pageSize||this.props.pageSizes!==e.pageSizes||this.props.pageSizeChange!==e.pageSizeChange)&&(this.__getterCache.pageSizesText=void 0)}render(){return(t=>{var{pageSizesText:n}=t;return Pl(n.map(e=>{var{className:i,click:r,label:o,text:a}=e;return Wn(2,P9,{className:i,label:o,onClick:r,children:a},a)}),0)})({props:mt({},this.props),pageSizesText:this.pageSizesText,restAttributes:this.restAttributes})}}return t.defaultProps=Hjt,t})();var Ujt=["isLargeDisplayMode","pageSize","pageSizeChange","pageSizes","rootElementRef"],Kjt={get pageSize(){return fl.pageSize},get pageSizes(){return fl.pageSizes},get isLargeDisplayMode(){return true}};let $jt=(()=>{class t extends Tc{constructor(e){super(e),this.state={},this.htmlRef={current:null},this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this)}createEffects(){return[new yo(this.setRootElementRef,[])]}setRootElementRef(){var{rootElementRef:e}=this.props;e&&(e.current=this.htmlRef.current)}get normalizedPageSizes(){return void 0!==this.__getterCache.normalizedPageSizes?this.__getterCache.normalizedPageSizes:this.__getterCache.normalizedPageSizes=(()=>{var{pageSizes:e}=this.props;return e.map(i=>"all"===i||0===i?{text:ye.getFormatter("dxPager-pageSizesAllText")(),value:0}:{text:String(i),value:i})})()}get restAttributes(){return ki(this.props,Ujt)}componentWillUpdate(e,i,r){super.componentWillUpdate(),this.props.pageSizes!==e.pageSizes&&(this.__getterCache.normalizedPageSizes=void 0)}render(){return(t=>{var{htmlRef:n,normalizedPageSizes:e,props:{isLargeDisplayMode:i,pageSize:r,pageSizeChange:o}}=t;return er(1,"div","dx-page-sizes",[i&&Wn(2,zjt,{pageSizes:e,pageSize:r,pageSizeChange:o}),!i&&Wn(2,Bjt,{parentRef:n,pageSizes:e,pageSize:r,pageSizeChange:o})],0,null,null,n)})({props:mt({},this.props),htmlRef:this.htmlRef,normalizedPageSizes:this.normalizedPageSizes,restAttributes:this.restAttributes})}}return t.defaultProps=Kjt,t})();var qjt=["className","displayMode","gridCompatibility","hasKnownLastPage","infoText","infoTextRef","infoTextVisible","isLargeDisplayMode","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pageSizesRef","pagesCountText","pagesNavigatorVisible","pagesRef","rootElementRef","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"],Zjt=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(fl),Object.getOwnPropertyDescriptors({infoTextVisible:!0,isLargeDisplayMode:!0})));let Xjt=(()=>{class t extends Tc{constructor(e){super(e),this.state={},this.widgetRootElementRef={current:null},this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this),this.createFakeInstance=this.createFakeInstance.bind(this)}createEffects(){return[new yo(this.setRootElementRef,[])]}getChildContext(){return mt({},this.context,{[zk.id]:this.keyboardAction||zk.defaultValue})}setRootElementRef(){var{rootElementRef:e}=this.props;e&&(e.current=this.widgetRootElementRef.current)}createFakeInstance(){return{option:()=>!1,element:()=>this.widgetRootElementRef.current,_createActionByOption:()=>e=>{var i,r;null===(i=(r=this.props).onKeyDown)||void 0===i||i.call(r,e)}}}get keyboardAction(){return void 0!==this.__getterCache.keyboardAction?this.__getterCache.keyboardAction:this.__getterCache.keyboardAction=(()=>({registerKeyboardAction:(e,i)=>CIe("pager",this.createFakeInstance(),e,void 0,i)}))()}get infoVisible(){var{infoTextVisible:e,showInfo:i}=this.props;return i&&e}get pageIndexSelectorVisible(){return 0!==this.props.pageSize}get normalizedDisplayMode(){var{displayMode:e,lightModeEnabled:i}=this.props;return"adaptive"===e&&void 0!==i?i?"compact":"full":e}get pagesContainerVisible(){return!!this.props.pagesNavigatorVisible&&this.props.pageCount>0}get pagesContainerVisibility(){if("auto"===this.props.pagesNavigatorVisible&&1===this.props.pageCount&&this.props.hasKnownLastPage)return"hidden"}get isLargeDisplayMode(){var e=this.normalizedDisplayMode;return"adaptive"===e?this.props.isLargeDisplayMode:"full"===e}get classes(){return fs({["".concat(this.props.className)]:!!this.props.className,"dx-pager":!0,"dx-light-mode":!this.isLargeDisplayMode})}get aria(){return{role:"navigation",label:this.props.label}}get restAttributes(){return ki(this.props,qjt)}componentWillUpdate(e,i,r){super.componentWillUpdate(),this.props.onKeyDown!==e.onKeyDown&&(this.__getterCache.keyboardAction=void 0)}render(){return(t=>{var{aria:n,classes:e,infoVisible:i,isLargeDisplayMode:r,pageIndexSelectorVisible:o,pagesContainerVisibility:a,pagesContainerVisible:s,props:{hasKnownLastPage:l,infoText:u,infoTextRef:f,maxPagesCount:S,pageCount:T,pageIndex:R,pageIndexChange:L,pageSize:z,pageSizeChange:j,pageSizes:Y,pageSizesRef:ie,pagesCountText:te,pagesRef:re,rtlEnabled:he,showNavigationButtons:fe,showPageSizes:Te,totalCount:Re,visible:He},restAttributes:Ze,widgetRootElementRef:at}=t;return Nr(Wn(2,q2,mt({rootElementRef:at,rtlEnabled:he,classes:e,visible:He,aria:n},Ze,{children:[Te&&Wn(2,$jt,{rootElementRef:ie,isLargeDisplayMode:r,pageSize:z,pageSizeChange:j,pageSizes:Y}),s&&er(1,"div","dx-pages",[i&&Wn(2,HGt,{rootElementRef:f,infoText:u,pageCount:T,pageIndex:R,totalCount:Re}),o&&er(1,"div","dx-page-indexes",Wn(2,Ijt,{hasKnownLastPage:l,isLargeDisplayMode:r,maxPagesCount:S,pageCount:T,pageIndex:R,pageIndexChange:L,pagesCountText:te,showNavigationButtons:fe,totalCount:Re}),2,null,null,re)],0,{style:yg({visibility:a})})]})))})({props:mt({},this.props),widgetRootElementRef:this.widgetRootElementRef,keyboardAction:this.keyboardAction,infoVisible:this.infoVisible,pageIndexSelectorVisible:this.pageIndexSelectorVisible,pagesContainerVisible:this.pagesContainerVisible,pagesContainerVisibility:this.pagesContainerVisibility,isLargeDisplayMode:this.isLargeDisplayMode,classes:this.classes,aria:this.aria,restAttributes:this.restAttributes})}}return t.defaultProps=Zjt,t})();var Jjt=["className","defaultPageIndex","defaultPageSize","displayMode","gridCompatibility","hasKnownLastPage","infoText","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pagesCountText","pagesNavigatorVisible","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"];let eKt=(()=>{class t extends Kd{constructor(e){super(e),this.__getterCache={},this.state={pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.props.defaultPageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.props.defaultPageIndex},this.pageIndexChange=this.pageIndexChange.bind(this),this.pageSizeChange=this.pageSizeChange.bind(this)}createEffects(){return[$d()]}pageIndexChange(e){var i,r;this.props.gridCompatibility?(this.setState(o=>({pageIndex:i=e+1})),this.props.pageIndexChange(i)):(this.setState(o=>({pageIndex:r=e})),this.props.pageIndexChange(r))}get pageIndex(){return this.props.gridCompatibility?(void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex)-1:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}pageSizeChange(e){var i;this.setState(r=>({pageSize:i=e})),this.props.pageSizeChange(i)}get className(){return this.props.gridCompatibility?fs({"dx-datagrid-pager":!0,["".concat(this.props.className)]:!!this.props.className}):this.props.className}get pagerProps(){return void 0!==this.__getterCache.pagerProps?this.__getterCache.pagerProps:this.__getterCache.pagerProps=(()=>mt({},mt({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),{className:this.className,pageIndex:this.pageIndex,pageIndexChange:e=>this.pageIndexChange(e),pageSizeChange:e=>this.pageSizeChange(e)}))()}get restAttributes(){return ki(mt({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),Jjt)}componentWillUpdate(e,i,r){super.componentWillUpdate(),(this.props!==e||this.props.gridCompatibility!==e.gridCompatibility||this.props.className!==e.className||this.state.pageIndex!==i.pageIndex||this.props.pageIndex!==e.pageIndex||this.props.pageIndexChange!==e.pageIndexChange||this.props.pageSizeChange!==e.pageSizeChange)&&(this.__getterCache.pagerProps=void 0)}render(){return(t=>{var{pagerProps:n,restAttributes:e}=t;return Nr(Wn(2,RGt,mt({contentTemplate:Xjt,pagerProps:n},e)))})({props:mt({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),pageIndexChange:this.pageIndexChange,pageIndex:this.pageIndex,pageSizeChange:this.pageSizeChange,className:this.className,pagerProps:this.pagerProps,restAttributes:this.restAttributes})}}return t.defaultProps=LGt,t})();class QFe extends EGt{getProps(){var n=super.getProps();return n.onKeyDown=this._wrapKeyDownHandler(n.onKeyDown),n}get _propsInfo(){return{twoWay:[["pageSize","defaultPageSize","pageSizeChange"],["pageIndex","defaultPageIndex","pageIndexChange"]],allowNull:[],elements:[],templates:[],props:["defaultPageSize","pageSizeChange","defaultPageIndex","pageIndexChange","gridCompatibility","className","showInfo","infoText","lightModeEnabled","displayMode","maxPagesCount","pageCount","pagesCountText","visible","hasKnownLastPage","pagesNavigatorVisible","showPageSizes","pageSizes","rtlEnabled","showNavigationButtons","totalCount","label","onKeyDown","pageSize","pageIndex"]}}get _viewComponent(){return eKt}}On("dxPager",QFe);const tKt=QFe;var ePe=function(t){return 1+(parseInt(t.pageIndex())||0)},rKt=Bo.View.inherit({init:function(){var t=this.getController("data");t.changed.add(n=>{if(n&&n.repaintChangesOnly){var e=this._pager;e?e.option({pageIndex:ePe(t),pageSize:t.pageSize(),pageCount:t.pageCount(),totalCount:t.totalCount(),hasKnownLastPage:t.hasKnownLastPage()}):this.render()}else(!n||"update"!==n.changeType&&"updateSelection"!==n.changeType&&"updateFocusedRow"!==n.changeType)&&(this._pager=null,this.render())})},_renderCore:function(){var t=this.element().addClass(this.addWidgetPrefix("pager")),n=this.option("pager")||{},e=this.getController("data"),i=this.getController("keyboardNavigation"),r={maxPagesCount:10,pageIndex:ePe(e),pageCount:e.pageCount(),pageSize:e.pageSize(),showPageSizes:n.showPageSizeSelector,showInfo:n.showInfo,displayMode:n.displayMode,pagesNavigatorVisible:n.visible,showNavigationButtons:n.showNavigationButtons,label:n.label,pageSizes:this.getPageSizes(),totalCount:e.totalCount(),hasKnownLastPage:e.hasKnownLastPage(),pageIndexChanged:function(o){e.pageIndex()!==o-1&&e.pageIndex(o-1)},pageSizeChanged:function(o){e.pageSize(o)},onKeyDown:o=>i&&i.executeAction("onKeyDown",o),useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};Z(n.infoText)&&(r.infoText=n.infoText),this._pager?this._pager.repaint():Rn()?this._pager=this._createComponent(t,tKt,r):t.addClass("dx-pager").html('<div class="dx-pages"><div class="dx-page"></div></div>')},getPager:function(){return this._pager},getPageSizes:function(){var t=this.getController("data"),n=this.option("pager"),e=n&&n.allowedPageSizes,i=t.pageSize();return(!Z(this._pageSizes)||!this._pageSizes.includes(i))&&(this._pageSizes=[],n&&(Array.isArray(e)?this._pageSizes=e:e&&i>1&&(this._pageSizes=[Math.floor(i/2),i,2*i]))),this._pageSizes},isVisible:function(){var t=this.getController("data"),n=this.option("pager"),e=n&&n.visible,i=this.option("scrolling");return"auto"===e&&(e=(!i||"virtual"!==i.mode&&"infinite"!==i.mode)&&(t.pageCount()>1||t.isLoaded()&&!t.hasKnownLastPage())),e},getHeight:function(){return this.getElementHeight()},optionChanged:function(t){var n=t.name,e="pager"===n,i="paging"===n,r="dataSource"===n,o="scrolling"===n,a=this.getController("data");if(e||i||o||r){if(t.handled=!0,a.skipProcessingPagingChange(t.fullName))return;(e||i)&&(this._pageSizes=null),r||(this._pager=null,this._invalidate(),Rn()&&e&&this.component&&this.component.resize())}},dispose:function(){this._pager=null}}),tPe={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto",label:ye.format("dxPager-ariaLabel")}}},views:{pagerView:rKt}};oi.registerModule("pager",tPe);var nPe="columns-separator-transparent",iPe="drag-header",MZ="drag-action",oPe="drop-highlight",aPe="dx-block-separator",sPe="dx-header-row",rc="dxDataGridResizingReordering",Uk=function(t){return t.option("allowColumnResizing")||t.getController("columns").isColumnOptionUsed("allowResizing")},uPe=function(t){return t.option("allowColumnReordering")||t.getController("columns").isColumnOptionUsed("allowReordering")},dKt=Bo.View.inherit({_renderCore:function(){var t=this.callBase();return this.element().addClass(this.addWidgetPrefix("tracker")),this.hide(),t},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var t=this;t._positionChanged=function(n){var e=t.element();e&&e.hasClass(t.addWidgetPrefix("tracker"))&&(e.css({top:n.top}),xo(e,n.height))},this._tablePositionController.positionChanged.add(t._positionChanged)},optionChanged:function(t){"allowColumnResizing"===t.name&&(this._unsubscribeFromCallback(),t.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(t)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return Uk(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(t){xo(this.element(),t)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),dPe=Bo.View.inherit({_renderSeparator:function(){},_renderCore:function(t){var n=this.callBase(t);return this._isShown=!0,this._renderSeparator(),this.hide(),n},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(t){var n=this.element();if(n){if(!Z(t))return Ln(n);xo(n,t)}},width:function(t){var n=this.element();if(n){if(!Z(t))return wn(n);oa(n,t)}}}),cKt=dPe.inherit({_renderSeparator:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix("columns-separator"))},_subscribeToCallback:function(){var n,t=this;t._positionChanged=function(e){(n=t.element())&&(n.css({top:e.top}),xo(n,e.height))},t._tablePositionController.positionChanged.add(t._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=Uk(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(uPe(this)||Uk(this))},optionChanged:function(t){"allowColumnResizing"===t.name&&(t.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=Uk(this),this.hide(!0))),this.callBase(t)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var t=this.element();t&&!this._isShown&&(this._isTransparent?t.removeClass(this.addWidgetPrefix(nPe)):t.show()),this.callBase()},hide:function(t){var n=this.element(),e=this.addWidgetPrefix(nPe);n&&(this._isShown||t)&&(this._isTransparent?(n.addClass(e),n.css("left",""),n.show()):(n.hasClass(e)&&n.removeClass(e),n.hide())),this.callBase()},moveByX:function(t){var n=this.element();n&&n.css("left",null===t?0:t-this._parentElement().offset().left)},changeCursor:function(t){t=Z(t)?t:"";var n=this.element();n&&n.css("cursor",t)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),hKt=dPe.inherit({init:function(){var t=this;this.callBase(),this.getController("data").loadingChanged.add(function(n){n||t.hide()})},_renderSeparator:function(){this.callBase(),this.element().addClass(aPe).html("&nbsp;")},hide:function(){var t=this._parentElement(),n=this.element();n&&this._isShown&&n.css("display","none"),t&&!t.children("."+aPe).length&&t.prepend(this.element()),this.callBase()},isVisible:function(){var t=this.option("groupPanel"),n=this.option("columnChooser");return t&&t.visible||n&&n.enabled},show:function(t){var n=this.element(),e=function(i){Hi.stop(n,!0),Hi.animate(n,{type:"slide",from:{width:0,display:i.display},to:i,duration:300,easing:"swing"})};if(n&&!this._isShown)switch(t){case"group":e({width:"50px",display:"inline-block"});break;case"columnChooser":e({width:"100%",display:"block"});break;default:n.css("display","")}this.callBase()}}),pKt=Bo.View.inherit({_isDragging:!1,isDragging:function(){return this._isDragging},_getDraggingPanelByPos:function(t){var n;return we(this._dragOptions.draggingPanels,function(e,i){if(i){var r=i.getBoundingRect();if(r&&(void 0===r.bottom||t.y<r.bottom)&&(void 0===r.top||t.y>r.top)&&(void 0===r.left||t.x>r.left)&&(void 0===r.right||t.x<r.right))return n=i,!1}}),n},_renderCore:function(){this.element().addClass(this.addWidgetPrefix(iPe)+" "+this.addWidgetPrefix("text-content")+" dx-widget").hide()},_resetTargetColumnOptions:function(){var t=this._dropOptions;t.targetColumnIndex=-1,delete t.targetColumnElement,delete t.isLast,delete t.posX,delete t.posY},_getVisibleIndexObject:function(t,n){return Z(t)?{columnIndex:n,rowIndex:t}:n},dispose:function(){var t=this.element();this._dragOptions=null,t&&t.parent().find("."+this.addWidgetPrefix(iPe)).remove()},isVisible:function(){var n=this.getController("columns").getCommonSettings();return this.option("showColumnHeaders")&&(uPe(this)||n.allowGrouping||n.allowHiding)},init:function(){var t=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add(function(n){var e=t.element();!n&&e&&e.hide()})},dragHeader:function(t){var n=t.columnElement,e=!!t.sourceColumn.type;this._isDragging=!0,this._dragOptions=t,this._dropOptions={sourceIndex:t.index,sourceColumnIndex:this._getVisibleIndexObject(t.rowIndex,t.columnIndex),sourceColumnElement:t.columnElement,sourceLocation:t.sourceLocation};var i=It.getDocument();this._onSelectStart=i.onselectstart,i.onselectstart=function(){return!1},this._controller.drag(this._dropOptions),this.element().css({textAlign:n&&n.css("textAlign"),height:n&&(e&&n.get(0).clientHeight||Ln(n)),width:n&&(e&&n.get(0).clientWidth||wn(n)),whiteSpace:n&&n.css("whiteSpace")}).addClass(this.addWidgetPrefix(MZ)).toggleClass("dx-drag-command-cell",e).text(e?"":t.sourceColumn.caption),this.element().appendTo(UT.getSwatchContainer(n))},moveHeader:function(t){var n=t.event,e=n.data.that,i=Po(n),r=!!e._columnsResizerViewController&&e._columnsResizerViewController.isResizing(),o=e._dragOptions;if(e._isDragging&&!r){var a=e.element(),s=Math.abs(i.x-o.columnElement.offset().left-o.deltaX),l=Math.abs(i.y-o.columnElement.offset().top-o.deltaY);(a.is(":visible")||s>5||l>5)&&(a.show(),a.css({left:i.x-o.deltaX,top:i.y-o.deltaY}),e.dockHeader(i)),n.preventDefault()}},dockHeader:function(t){var n=this._getDraggingPanelByPos(t),e=this._controller,i=this._dropOptions,r=this._dragOptions;if(n){var o=this.option("rtlEnabled"),a="columnChooser"===n.getName(),s=a?"y":"x",l=n.getName(),u="headers"===l?r.rowIndex:void 0,S=n.getColumnElements(u,r.sourceColumn?.ownerBand)||[],T=r.pointsByTarget=r.pointsByTarget||{},R="columnChooser"===l?[]:T[l]||e._generatePointsByColumns(se({},r,{targetDraggingPanel:n,columns:n.getColumns(u),columnElements:S,isVerticalOrientation:a,startColumnIndex:"headers"===l&&U(S[0]).index()}));if(T[l]=R,i.targetLocation=l,R.length>0)for(var L=0;L<R.length;L++){var z=R[L+1]&&(R[L][s]+R[L+1][s])/2;if(void 0===z||(o&&"x"===s?t[s]>z:t[s]<z)){i.targetColumnIndex=this._getVisibleIndexObject(u,R[L].columnIndex),S[L]?(i.targetColumnElement=S.eq(L),i.isLast=!1):(i.targetColumnElement=S.last(),i.isLast=!0),i.posX=R[L].x,i.posY=R[L].y,e.dock(i);break}}else this._resetTargetColumnOptions(),e.dock(i)}},dropHeader:function(t){var e=t.event.data.that,i=e._controller;e.element().hide(),i&&e._isDragging&&i.drop(e._dropOptions),e.element().appendTo(e._parentElement()),e._dragOptions=null,e._dropOptions=null,e._isDragging=!1,It.getDocument().onselectstart=e._onSelectStart||null}}),FZ=function(t){return"widget"!==t.option("columnResizingMode")},gKt=Bo.ViewController.inherit({_isHeadersRowArea:function(t){if(this._columnHeadersView){var n=this._columnHeadersView.element();if(n){var e=n.offset().top,i=this._columnHeadersView.getHeadersRowHeight();return t>=e&&t<=e+i}}return!1},_isRtlParentStyle:function(){var t;return this.option("rtlEnabled")&&"rtl"===(null===(t=this._$parentContainer)||void 0===t?void 0:t.parent().css("direction"))},_pointCreated:function(t,n,e){var i=FZ(this),r=this.option("rtlEnabled"),o=this._isRtlParentStyle(),a=i||!r||o?1:0;if(t.index>=a&&t.index<n+(i||r&&!o?0:1)){t.columnIndex-=a;var s=e[t.columnIndex]||{};return!(i?s.allowResizing&&(e[t.columnIndex+1]||{}).allowResizing:s.allowResizing)}return!0},_getTargetPoint:function(t,n,e){if(t)for(var i=0;i<t.length;i++)if((t[i].x!==t[0].x||!t[i+1]||t[i].x!==t[i+1].x)&&t[i].x-e<=n&&n<=t[i].x+e)return t[i];return null},_moveSeparator:function(t){var n,e=t.event,i=e.data,r=i._columnsSeparatorView.width(),o=FZ(i),a=r/2,s=i._$parentContainer.offset(),l=s.left,u=Po(e),f=i.option("rtlEnabled"),S=this._isRtlParentStyle(),T=null===(n=i._draggingHeaderView)||void 0===n?void 0:n.isDragging();if(i._isResizing&&i._resizingInfo){if((l<=u.x||!o&&S)&&(!o||u.x<=l+wn(i._$parentContainer))&&i._updateColumnsWidthIfNeeded(u.x)){var R=i._columnHeadersView.getColumnElements().eq(i._resizingInfo.currentColumnIndex),L=R[0];if(L){var z=L.getBoundingClientRect().width;i._columnsSeparatorView.moveByX(R.offset().left+((o||S)&&f?0:z)),i._tablePositionController.update(i._targetPoint.y),e.preventDefault()}}}else T||(i._isHeadersRowArea(u.y)?(i._previousParentOffset&&(i._previousParentOffset.left!==s.left||i._previousParentOffset.top!==s.top)&&i.pointsByColumns(null),i._targetPoint=i._getTargetPoint(i.pointsByColumns(),u.x,r),i._previousParentOffset=s,i._isReadyResizing=!1,i._targetPoint?(i._columnsSeparatorView.changeCursor("col-resize"),i._columnsSeparatorView.moveByX(i._targetPoint.x-a),i._tablePositionController.update(i._targetPoint.y),i._isReadyResizing=!0,e.preventDefault()):(i._columnsSeparatorView.changeCursor(),i._columnsSeparatorView.moveByX(null))):(i.pointsByColumns(null),i._isReadyResizing=!1,i._columnsSeparatorView.changeCursor(),i._columnsSeparatorView.moveByX(null)))},_endResizing:function(t){var e=t.event.data;e._isResizing&&(e.pointsByColumns(null),e._resizingInfo=null,e._columnsSeparatorView.hide(),e._columnsSeparatorView.changeCursor(),e._trackerView.hide(),e._isReadyResizing=!1,e._isResizing=!1)},_getNextColumnIndex:function(t){return t+1},_setupResizingInfo:function(t){var n=this._targetPoint.columnIndex,e=this._getNextColumnIndex(n),i=this._columnHeadersView.getHeaderElement(n),r=this._columnHeadersView.getHeaderElement(e);this._resizingInfo={startPosX:t,currentColumnIndex:n,currentColumnWidth:i&&i.length>0?Mi(i[0]).width:0,nextColumnIndex:e,nextColumnWidth:r&&r.length>0?Mi(r[0]).width:0}},_startResizing:function(t){var n=t.event,e=n.data,i=Po(n);if(ym(n)&&(e._isHeadersRowArea(i.y)?(e._targetPoint=e._getTargetPoint(e.pointsByColumns(),i.x,10),e._targetPoint&&(e._columnsSeparatorView.moveByX(e._targetPoint.x-e._columnsSeparatorView.width()/2),e._isReadyResizing=!0)):e._isReadyResizing=!1),e._isReadyResizing){e._setupResizingInfo(i.x),e._isResizing=!0,e._tablePositionController.update(e._targetPoint.y),e._columnsSeparatorView.show(),e._trackerView.show();var r=e.component.getScrollable();r&&e._isRtlParentStyle()&&(e._scrollRight=wn(r.$content())-wn(r.container())-r.scrollLeft()),n.preventDefault(),n.stopPropagation()}this.isResizing()&&this.getController("editorFactory").loseFocus()},_generatePointsByColumns:function(){var t=this,n=t._columnsController?t._columnsController.getVisibleColumns():[],e=t._columnHeadersView.getColumnElements(),i=[];e&&e.length>0&&(i=vn.getPointsByColumns(e,function(r){return t._pointCreated(r,e.length,n)})),t._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&Se.off(It.getDocument(),kt(qn.move,rc),this._moveSeparatorHandler),this._startResizingHandler&&Se.off(this._$parentContainer,kt(qn.down,rc),this._startResizingHandler),this._endResizingHandler&&(Se.off(this._columnsSeparatorView.element(),kt(qn.up,rc),this._endResizingHandler),Se.off(It.getDocument(),kt(qn.up,rc),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),Se.on(It.getDocument(),kt(qn.move,rc),this,this._moveSeparatorHandler),Se.on(this._$parentContainer,kt(qn.down,rc),this,this._startResizingHandler),Se.on(this._columnsSeparatorView.element(),kt(qn.up,rc),this,this._endResizingHandler),Se.on(It.getDocument(),kt(qn.up,rc),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(t){var n,e,i=this._rowsView.contentWidth(),r=this._resizingInfo,o=this._columnsController,a=o.getVisibleColumns(),s=this._columnsSeparatorView.width(),l=FZ(this),u=l&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth"),f=this.option("rtlEnabled"),S=this._isRtlParentStyle(),T=a[r.currentColumnIndex],R=a[r.nextColumnIndex];function L(Re){return Pn(Re)&&"%"===Re.slice(-1)}function z(Re,He,Ze,at){if(Re){var vt=Re.width;vt&&(at=L(vt)),at?(o.columnOption(Re.index,"visibleWidth",He),o.columnOption(Re.index,"width",(He/Ze*100).toFixed(3)+"%")):(o.columnOption(Re.index,"visibleWidth",null),o.columnOption(Re.index,"width",He))}}n=t-r.startPosX,(l||S)&&f&&(n=-n);var Re,He,Ze,at,vt,Bt,St,{cellWidth:j,nextCellWidth:Y}=(St={},(vt=r.currentColumnWidth+(Re=n))>=(Bt=T&&T.minWidth||s)?St.cellWidth=vt:(St.cellWidth=Bt,at=!0),l&&((Ze=r.nextColumnWidth-Re)>=(He=R&&R.minWidth||s)?St.nextCellWidth=at?r.nextColumnWidth-(Re+Bt-vt):Ze:(St.nextCellWidth=He,St.cellWidth=r.currentColumnWidth+(Re-He+Ze))),St);if(e=T.width!==j){if(o.beginUpdate(),j=Math.floor(j),i=function(Re,He){var Ze=He.every(vt=>vt.width);if(Ze){var at=He.reduce((vt,Bt)=>(L(Bt.width)&&(vt+=parseFloat(Bt.width)),vt),0);at>100&&(Re=Re/at*100)}return Re}(i,a),z(T,j,i,u),l)z(R,Y=Math.floor(Y),i,u);else{var ie=this._columnHeadersView.getColumnWidths();ie[r.currentColumnIndex]=j;var te=ie.reduce((Re,He)=>Re+He,0)>this._rowsView.contentWidth();if(!te){var re=vn.getLastResizableColumnIndex(a);re>=0&&o.columnOption(a[re].index,"visibleWidth","auto")}for(var he=0;he<ie.length;he++)a[he]&&a[he]!==T&&void 0===a[he].width&&o.columnOption(a[he].index,"width",ie[he])}if(o.endUpdate(),!l){this.component.updateDimensions();var fe=this.component.getScrollable();if(fe&&S){var Te=wn(fe.$content())-wn(fe.container())-this._scrollRight;fe.scrollTo({left:Te})}}}return e},_subscribeToCallback:function(t,n){t.add(n),this._subscribesToCallbacks.push({callback:t,handler:n})},_unsubscribeFromCallbacks:function(){for(var t=0;t<this._subscribesToCallbacks.length;t++){var n=this._subscribesToCallbacks[t];n.callback.remove(n.handler)}this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){var t=this,n=function(){t._isResizing||t.pointsByColumns(null)},e=function(o){t._scrollLeft!==o.left&&(t._scrollLeft=o.left,t.pointsByColumns(null))};t._columnsSeparatorView=t.getView("columnsSeparatorView"),t._columnHeadersView=t.getView("columnHeadersView"),t._trackerView=t.getView("trackerView"),t._rowsView=t.getView("rowsView"),t._columnsController=t.getController("columns"),t._tablePositionController=t.getController("tablePosition"),t._$parentContainer=t.component.$element(),t._draggingHeaderView=t.component.getView("draggingHeaderView"),t._subscribeToCallback(t._columnHeadersView.renderCompleted,n),t._subscribeToCallback(t._columnHeadersView.resizeCompleted,n),t._subscribeToCallback(t._columnsSeparatorView.renderCompleted,function(){t._unsubscribeFromEvents(),t._subscribeToEvents()}),t._subscribeToCallback(t._rowsView.renderCompleted,function(){t._rowsView.scrollChanged.remove(e),t._rowsView.scrollChanged.add(e)});var i=0!==t._rowsView.getScrollbarWidth(),r=0;t._subscribeToCallback(t.getController("tablePosition").positionChanged,function(o){if(t._isResizing&&!t._rowsView.isResizing){var a=0!==t._rowsView.getScrollbarWidth();i!==a||r&&r!==o.height?(i=a,r=o.height,t.component.updateDimensions()):t._rowsView.updateFreeSpaceRowHeight()}r=o.height})},optionChanged:function(t){this.callBase(t),"allowColumnResizing"===t.name&&(t.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],Uk(this)&&this._init()},pointsByColumns:function(t){if(void 0===t)return this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns;this._pointsByColumns=t},dispose:function(){this._unsubscribes(),this.callBase()}}),fKt=Bo.ViewController.inherit({update:function(t){var n={},e=this._columnHeadersView.element(),i=e&&e.offset(),r=i&&i.top||0,o=Z(t)?Math.abs(t-r):0,a=this._columnHeadersView?this._columnHeadersView.getHeight():0,s=this._rowsView.getScrollbarWidth(!0),l=this._rowsView?this._rowsView.height()-s:0,u=this.component.getController("columnsResizer"),f=this.component.getView("draggingHeaderView");n.height=a,(u.isResizing()||f.isDragging())&&(n.height+=l-o),null!==t&&e&&e.length&&(n.top=e[0].offsetTop+o),this.positionChanged.fire(n)},init:function(){var t=this;t.callBase(),t._columnHeadersView=this.getView("columnHeadersView"),t._rowsView=this.getView("rowsView"),t._pagerView=this.getView("pagerView"),t._rowsView.resizeCompleted.add(function(){if(t.option("allowColumnResizing")){var n=t.getController("columnsResizer")._targetPoint;t.update(n?n.y:null)}})},ctor:function(t){this.callBase(t),this.positionChanged=Zi()}}),mKt=Bo.ViewController.inherit({_generatePointsByColumns:function(t){var n=this;return vn.getPointsByColumns(t.columnElements,function(e){return n._pointCreated(e,t.columns,t.targetDraggingPanel.getName(),t.sourceColumn)},t.isVerticalOrientation,t.startColumnIndex)},_pointCreated:function(t,n,e,i){var r=n[t.columnIndex],o=n[t.columnIndex-1];switch(e){case"columnChooser":return!0;case"headers":return i&&!i.allowReordering||(!r||!r.allowReordering)&&(!o||!o.allowReordering);default:return 0===n.length}},_subscribeToEvents:function(t,n){var e=this;we(n,function(i,r){if(r)for(var o,a=r.getRowCount?r.getRowCount():1,s=r.getName(),l=function(S,T){if(T){var R=U(T),L=o[S];r.allowDragging(L,s,n)&&(R.addClass(e.addWidgetPrefix(MZ)),Se.on(R,kt(Pc,rc),e.createAction(function(z){var j=z.event,Y=Po(j);t.dragHeader({deltaX:Y.x-U(j.currentTarget).offset().left,deltaY:Y.y-U(j.currentTarget).offset().top,sourceColumn:L,index:L.index,columnIndex:S,columnElement:R,sourceLocation:s,draggingPanels:n,rowIndex:e._columnsController.getRowIndex(L.index,!0)})})),Se.on(R,kt(Qd,rc),{that:t},e.createAction(t.moveHeader)),Se.on(R,kt(Rc,rc),{that:t},e.createAction(t.dropHeader)))}},u=0;u<a;u++){var f=r.getColumnElements(u)||[];f.length&&(o=r.getColumns(u)||[],we(f,l))}})},_unsubscribeFromEvents:function(t,n){var e=this;we(n,function(i,r){if(r){var o=r.getColumnElements()||[];we(o,function(a,s){var l=U(s);Se.off(l,kt(Pc,rc)),Se.off(l,kt(Qd,rc)),Se.off(l,kt(Rc,rc)),l.removeClass(e.addWidgetPrefix(MZ))})}})},_getSeparator:function(t){return"headers"===t?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(t){var n=this._blockSeparatorView,e=this._columnsSeparatorView;this._animationColumnIndex=null,n&&n.hide(),"block"!==t&&e&&e.hide()},init:function(){var t=this;t.callBase(),t._columnsController=t.getController("columns"),t._columnHeadersView=t.getView("columnHeadersView"),t._columnsSeparatorView=t.getView("columnsSeparatorView"),t._draggingHeaderView=t.getView("draggingHeaderView"),t._rowsView=t.getView("rowsView"),t._blockSeparatorView=t.getView("blockSeparatorView"),t._headerPanelView=t.getView("headerPanel"),t._columnChooserView=t.getView("columnChooserView");var n=function(){if(t._draggingHeaderView){var e=[t._columnChooserView,t._columnHeadersView,t._headerPanelView];t._unsubscribeFromEvents(t._draggingHeaderView,e),t._subscribeToEvents(t._draggingHeaderView,e)}};t._columnHeadersView.renderCompleted.add(n),t._headerPanelView&&t._headerPanelView.renderCompleted.add(n),t._columnChooserView&&t._columnChooserView.renderCompleted.add(n)},allowDrop:function(t){return this._columnsController.allowMoveColumn(t.sourceColumnIndex,t.targetColumnIndex,t.sourceLocation,t.targetLocation)},drag:function(t){var n=t.sourceIndex,e=t.sourceLocation,i=t.sourceColumnElement,r=this._columnHeadersView,o=this._rowsView;i&&(i.css({opacity:.5}),"headers"===e&&(r&&r.setRowsOpacity(n,.5),o&&o.setRowsOpacity(n,.5)))},dock:function(t){var n=this,e=Jn(t.targetColumnIndex)?t.targetColumnIndex.columnIndex:t.targetColumnIndex,i=t.sourceLocation,r=t.targetLocation,o=n._getSeparator(r),a=e>=0;n._columnHeadersView.element().find("."+sPe).toggleClass(n.addWidgetPrefix(oPe),"headers"!==i&&"headers"===r&&!a),o&&(n.allowDrop(t)&&a?"group"===r||"columnChooser"===r?n._animationColumnIndex!==e&&(n.hideSeparators(),o.element()[t.isLast?"insertAfter":"insertBefore"](t.targetColumnElement),n._animationColumnIndex=e,o.show(r)):(n.hideSeparators("block"),n.getController("tablePosition").update(t.posY),o.moveByX(t.posX-o.width()),o.show()):n.hideSeparators())},drop:function(t){var n=t.sourceColumnElement;if(n&&(n.css({opacity:""}),this._columnHeadersView.setRowsOpacity(t.sourceIndex,""),this._rowsView.setRowsOpacity(t.sourceIndex,""),this._columnHeadersView.element().find("."+sPe).removeClass(this.addWidgetPrefix(oPe))),this.allowDrop(t)){var e=this._getSeparator(t.targetLocation);e&&e.hide(),this._columnsController.moveColumn(t.sourceColumnIndex,t.targetColumnIndex,t.sourceLocation,t.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}}),xv={views:{columnsSeparatorView:cKt,blockSeparatorView:hKt,draggingHeaderView:pKt,trackerView:dKt},controllers:{draggingHeader:mKt,tablePosition:fKt,columnsResizer:gKt},extenders:{views:{rowsView:{_needUpdateRowHeight:function(t){var n=this.option("wordWrapEnabled"),e=this.getController("columnsResizer"),i=e.isResizing();return this.callBase.apply(this,arguments)||t>0&&n&&i}}},controllers:{editorFactory:{renderFocusOverlay:function(){if(!this.getController("columnsResizer").isResizing())return this.callBase.apply(this,arguments)}}}}};oi.registerModule("columnsResizingReordering",xv);var PZ="rowsview",VS="dx-row",hPe="dx-freespace-row",pPe="dx-master-detail-cell",gPe="dx-editor-cell",B9="dx-command-expand",fPe="dx-command-select",mPe="[class^=dx-command]",N9="dx-cell-focus-disabled",_Pe="dx-state-focused",RZ="delete",V9="input:not([type='hidden']), textarea, a, select, button, [tabindex], .dx-checkbox",vPe="".concat(V9,", .dx-dropdowneditor-icon"),SPe="columnHeadersView",kKt=["shift","control","alt"];function HS(t){return t&&t.hasClass("dx-group-row")}function H9(t){return t&&t.hasClass("dx-master-detail-row")}function Wk(t){return t&&!HS(t)&&!H9(t)}function DPe(t,n){return!t._isRowEditMode()&&n&&!n.hasClass(fPe)&&n.hasClass(gPe)}function jh(t){return Z(t)&&t.length>0}function EPe(){return"desktop"!==pn.current().deviceType}function OPe(t){return!!t.parent(".".concat("dx-header-row")).length}var PKt={init:function(){this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._editingController=this.getController("editing"),this._headerPanel=this.getView("headerPanel"),this._columnsController=this.getController("columns"),this._editorFactory=this.getController("editorFactory"),this.isKeyboardEnabled()&&(function L3t(){Se.on(It.getDocument(),"visibilitychange",yIe)}(),this._updateFocusTimeout=null,this._fastEditingStarted=!1,this._focusedCellPosition={},this._canceledCellPosition=null,this._editorFactory.focused.add(t=>{this.setupFocusedView(),this._isNeedScroll&&t.is(":visible")&&this._focusedView&&this._focusedView.getScrollable&&(this._focusedView._scrollToElement(t),this._isNeedScroll=!1)}),this._initViewHandlers(),this._initDocumentHandlers(),this.createAction("onKeyDown"))},_initViewHandlers:function(){var t=this.getView("rowsView"),n=e=>{var i=U(e.target),r=U(e.relatedTarget).closest(t.element()).length,o=i.is("a");if(e.relatedTarget&&o&&!r&&this._isEventInCurrentGrid(e)){var a=this._getFocusedCell();a=jh(a)?a:t.getCellElements(0).filter("[tabindex]").eq(0),i.closest(a).length||(e.preventDefault(),Se.trigger(a,"focus"))}};t.renderCompleted.add(e=>{var i=t.element(),r=!e||"refresh"===e.changeType,o=this._focusedView&&this._focusedView.name===t.name,s=e&&("append"===e.changeType||"prepend"===e.changeType),u=U(It.getRootNode(i.get&&i.get(0))).find(":focus"),f=!u.length||u.closest(i).length;Se.off(i,"focusin",n),Se.on(i,"focusin",n),this._initPointerEventHandler(),this._initKeyDownHandler(),this._setRowsViewAttributes(),o&&f&&(this._isNeedFocus?!s:this._isHiddenFocus&&r&&(null==e||!e.virtualColumnsScrolling))&&this._updateFocus(!0)})},_initDocumentHandlers:function(){var t=It.getDocument();this._documentClickHandler=this.createAction(n=>{var e=U(n.event.target),i=this._isEventInCurrentGrid(n.event)&&e.closest(".".concat(this.addWidgetPrefix(PZ))).length,r=e.closest(".".concat("dx-dropdowneditor-overlay")).length,o=this.getController("columnsResizer"),a=!!o&&o.isResizing();i||r||a||(!(this._focusedView&&e.parents().filter(this._focusedView.element()).length>0)&&this._resetFocusedCell(!0),this._resetFocusedView())}),Se.on(t,kt(qn.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_setRowsViewAttributes:function(){var t=this._getRowsViewElement();!this._dataController.getVisibleRows().length&&this._applyTabIndexToElement(t)},_initPointerEventHandler:function(){var t=EPe()?Vi:qn.down,n=".".concat(VS," > td, .").concat(VS),e=this._getRowsViewElement();Z(this._pointerEventAction)||(this._pointerEventAction=this.createAction(this._pointerEventHandler)),Se.off(e,kt(t,"dxDataGridKeyboardNavigation"),this._pointerEventAction),Se.on(e,kt(t,"dxDataGridKeyboardNavigation"),n,this._pointerEventAction)},_initKeyDownHandler:function(){var t=this._getRowsViewElement();Cm_off(this._keyDownListener),this._keyDownListener=Cm_on(t,null,n=>this._keyDownHandler(n))},dispose:function(){this.callBase(),this._resetFocusedView(),Cm_off(this._keyDownListener),Se.off(It.getDocument(),kt(qn.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),clearTimeout(this._updateFocusTimeout),function B3t(){Se.off(It.getDocument(),"visibilitychange",yIe)}()},optionChanged:function(t){switch(t.name){case"keyboardNavigation":case"useLegacyKeyboardNavigation":t.handled=!0;break;default:this.callBase(t)}},isRowFocusType:function(){return"row"===this.focusType},isCellFocusType:function(){return"cell"===this.focusType},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType="row")},setCellFocusType:function(){this.focusType="cell"},_keyDownHandler:function(t){var n,e=!0;this._isNeedFocus=!0,this._isNeedScroll=!0;var i=this._processOnKeyDown(t),r=null===(n=this._editingController)||void 0===n?void 0:n.isEditing(),o=t.originalEvent;if(o.isDefaultPrevented())return this._isNeedFocus=!1,void(this._isNeedScroll=!1);if(kKt.indexOf(t.keyName)<0&&this._updateFocusedCellPositionByTarget(o.target),!i){switch(t.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(t,r),i=!0;break;case"upArrow":case"downArrow":t.ctrl?eY("rowsView",this,o):this._upDownKeysHandler(t,r),i=!0;break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(t),i=!0;break;case"space":i=this._spaceKeyHandler(t,r);break;case"A":Xo(t.originalEvent)?(this._ctrlAKeyHandler(t,r),i=!0):i=this._beginFastEditing(t.originalEvent);break;case"tab":this._tabKeyHandler(t,r),i=!0;break;case"enter":this._enterKeyHandler(t,r),i=!0;break;case"escape":this._escapeKeyHandler(t,r),i=!0;break;case"F":Xo(t.originalEvent)?(this._ctrlFKeyHandler(t),i=!0):i=this._beginFastEditing(t.originalEvent);break;case"F2":this._f2KeyHandler(),i=!0;break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&(i=this._beginFastEditing(o,!0))}!i&&!this._beginFastEditing(o)&&(this._isNeedFocus=!1,this._isNeedScroll=!1,e=!1),e&&o.stopPropagation()}},_processOnKeyDown:function(t){var n=t.originalEvent,e={handled:!1,event:n};return this.executeAction("onKeyDown",e),t.ctrl=n.ctrlKey,t.alt=n.altKey,t.shift=n.shiftKey,!!e.handled},_closeEditCell:function(){setTimeout(()=>{this._editingController.closeEditCell()})},_leftRightKeysHandler:function(t,n){var e=this.getVisibleRowIndex(),i=t.originalEvent,r=this._focusedView&&this._focusedView.getRow(e),o=this._getDirectionCodeByKey(t.keyName),a=this._isFastEditingStarted();if((!n||a)&&Wk(r)){this.setCellFocusType(),a&&this._closeEditCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(o);var l=this._getNextCell(o);jh(l)&&this._arrowKeysHandlerFocusCell(i,l,o),i&&i.preventDefault()}},_upDownKeysHandler:function(t,n){var e,i,r=this.getVisibleRowIndex(),o=this._focusedView&&this._focusedView.getRow(r),a=t.originalEvent,s="upArrow"===t.keyName,l=this._dataController.dataSource(),u=null===(e=this._editingController)||void 0===e||null===(i=e.isEditRowByIndex)||void 0===i?void 0:i.call(e,r),f=this._isFastEditingStarted();if((!u||!n||f)&&o&&!H9(o)){if(f&&this._closeEditCell(),!this._navigateNextCell(a,t.keyName)&&this._isVirtualRowRender()&&s&&l&&!l.isLoading()){var T=Zn(o);this._scrollBy(0,-T,this._focusedCellPosition.rowIndex-1,a)}a&&a.preventDefault()}},_pageUpDownKeyHandler:function(t){var n=this._dataController.pageIndex(),e=this._dataController.pageCount(),i=this.option("paging.enabled"),r="pageUp"===t.keyName,o=r?-1:1,a=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(r?n>0:n<e-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(n+o),t.originalEvent.preventDefault()):a&&Ln(a.container())<Ln(a.$content())&&(this._scrollBy(0,Ln(a.container())*o),t.originalEvent.preventDefault())},_spaceKeyHandler:function(t,n){var e=this.getVisibleRowIndex(),i=U(t.originalEvent&&t.originalEvent.target);if(this.option("selection")&&"none"!==this.option("selection").mode&&!n){var r="row"===this._getElementType(i)&&this.isRowFocusType()&&Wk(i);return i.hasClass(fPe)&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),!!(r||i.parent().hasClass("dx-data-row")||i.hasClass(this.addWidgetPrefix(PZ)))&&(this._selectionController.changeItemSelection(e,{shift:t.shift,control:t.ctrl}),t.originalEvent.preventDefault(),!0)}return this._beginFastEditing(t.originalEvent)},_ctrlAKeyHandler:function(t,n){!n&&!t.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),t.originalEvent.preventDefault())},_tabKeyHandler:function(t,n){var e=this.option("editing"),i=t.shift?"previous":"next",o=!(Z(this._focusedCellPosition)&&!pa(this._focusedCellPosition))||!t.shift&&this._isLastValidCell(this._focusedCellPosition)||t.shift&&this._isFirstValidCell(this._focusedCellPosition),a=t.originalEvent.target,s=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(a,i)){if(U(s).addClass(_Pe),e&&a&&!o)if(U(a).hasClass(this.addWidgetPrefix(PZ))&&this._resetFocusedCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(i),n){if(!this._editingCellTabHandler(t,i))return}else this._targetCellTabHandler(t,i)&&(o=!0);o?(this._editorFactory.loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(!0),this._resetFocusedView(),this._closeEditCell())):t.originalEvent.preventDefault()}},_getMaxHorizontalOffset:function(){var t=this.component.getScrollable(),n=this.getView("rowsView");return t?t.scrollWidth()-wn(n.element()):0},_isColumnRendered:function(t){var n=this._columnsController.getVisibleColumns(null,!0),e=this._columnsController.getVisibleColumns(),i=n[t],r=!1;return i&&(r=e.indexOf(i)>=0),r},_isFixedColumn:function(t){var e=this._columnsController.getVisibleColumns(null,!0)[t];return!!e&&!!e.fixed},_isColumnVirtual:function(t){var n=t-this._columnsController.getColumnIndexOffset(),i=this._columnsController.getVisibleColumns()[n];return!!i&&"virtual"===i.command},_processVirtualHorizontalPosition:function(t){var i,n=this.component.getScrollable(),e=this.getColumnIndex(),r=0,o=!1;switch(t){case"next":case"nextInRow":var a=this._getVisibleColumnCount();i=e+1,r=this.option("rtlEnabled")?this._getMaxHorizontalOffset():0,o="next"===t?a===i||this._isFixedColumn(e)&&!this._isColumnRendered(i):a>i&&this._isFixedColumn(e)&&!this._isColumnRendered(i);break;case"previous":case"previousInRow":if(i=e-1,r=this.option("rtlEnabled")?0:this._getMaxHorizontalOffset(),"previous"===t){var s=this._columnsController.getColumnIndexOffset();o=i<0&&0===s||this._isFixedColumn(e)&&!this._isColumnRendered(i)}else o=i>=0&&this._isFixedColumn(e)&&!this._isColumnRendered(i)}o?n.scrollTo({left:r}):Z(i)&&Z(t)&&this._isColumnVirtual(i)&&0!==(r=this._getHorizontalScrollPositionOffset(t))&&n.scrollBy({left:r,top:0})},_getHorizontalScrollPositionOffset:function(t){var n=0,e=this._getCell(this._focusedCellPosition),i=e&&ii(e);if(i>0){var r=this.option("rtlEnabled")?-1:1;n="nextInRow"===t||"next"===t?i*r:i*r*-1}return n},_editingCellTabHandler:function(t,n){var r,e=t.originalEvent.target,i=this._getCellElementFromTarget(e),o=t.originalEvent,a=this._getElementType(e);if(i.is(mPe))return!this._targetCellTabHandler(t,n);this._updateFocusedCellPosition(i);var s=this._getNextCellByTabKey(o,n,a);if(!(i=s.$cell)||this._handleTabKeyOnMasterDetailCell(i,n))return!1;var l=this._columnsController,f=this.getView("rowsView").getCellIndex(i)+l.getColumnIndexOffset(),S=l.getVisibleColumns(null,!0)[f],T=i.parent(),R=this._getRowIndex(T),L=this._dataController.items()[R];if(S&&S.allowEditing){var j=!L||"data"===L.rowType;r=this._editingController.allowUpdating({row:L})?j:L&&L.isNewRow}return r||this._closeEditCell(),this._focusCell(i,!s.isHighlighted)&&(!this._isRowEditMode()&&r?this._editFocusedCell():this._focusInteractiveElement(i,t.shift)),!0},_targetCellTabHandler:function(t,n){var s,e=t.originalEvent,i=e.target,r=this._getCellElementFromTarget(i),o=this._getInteractiveElement(r,!t.shift),a=!1;if(!DPe(this,r)&&o.length&&i!==o.get(0))a=!0;else{void 0===this._focusedCellPosition.rowIndex&&U(i).hasClass(VS)&&this._updateFocusedCellPosition(r),s=this._getElementType(i),this.isRowFocusType()&&(this.setCellFocusType(),"row"===s&&Wk(U(i))&&(i=this.getFirstValidCellInRow(U(i)),s=this._getElementType(i)));var l=this._getNextCellByTabKey(e,n,s);if(!(r=l.$cell)||!(r=this._checkNewLineTransition(e,r)))return!1;this._focusCell(r,!l.isHighlighted),DPe(this,r)||this._focusInteractiveElement(r,t.shift)}return a},_getNextCellByTabKey:function(t,n,e){var i=this._getNextCell(n,e),r=i&&this._fireFocusedCellChanging(t,i,!0);return!r||r.cancel?{}:(r.$newCellElement&&(i=r.$newCellElement),{$cell:i,isHighlighted:r.isHighlighted})},_checkNewLineTransition:function(t,n){var e=this.getVisibleRowIndex(),i=n.parent();if(e!==this._getRowIndex(i)){var r=this._getCellPosition(n),o=this._fireFocusedRowChanging(t,i);if(o.cancel)return;o.rowIndexChanged&&(this.setFocusedColumnIndex(r.columnIndex),n=this._getFocusedCell())}return n},_enterKeyHandler:function(t,n){var e=this._getFocusedCell(),i=this.getVisibleRowIndex(),r=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&HS(r)||this.option("masterDetail.enabled")&&e&&e.hasClass(B9)){var o=this._dataController.getKeyByRowIndex(i),a=this._dataController.items()[i];void 0!==o&&a&&a.data&&!a.data.isContinuation&&this._dataController.changeRowExpand(o)}else this._processEnterKeyForDataCell(t,n)},_processEnterKeyForDataCell:function(t,n){var e=this._getEnterKeyDirection(t),i=this._allowEditingOnEnterKey();n||!i&&e?(this._handleEnterKeyEditingCell(t.originalEvent),"next"===e||"previous"===e?this._targetCellTabHandler(t,e):("upArrow"===e||"downArrow"===e)&&this._navigateNextCell(t.originalEvent,e)):i&&this._startEditing(t)},_getEnterKeyDirection:function(t){var n=this.option("keyboardNavigation.enterKeyDirection"),e=t.shift;return"column"===n?e?"upArrow":"downArrow":"row"===n?e?"previous":"next":void 0},_handleEnterKeyEditingCell:function(t){var n=t.target,e=this._getCellElementFromTarget(n),i=this._isRowEditMode();this._updateFocusedCellPosition(e),i?(this._focusEditFormCell(e),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(Se.trigger(U(n),"change"),this._closeEditCell(),t.preventDefault())},_escapeKeyHandler:function(t,n){var e=this._getCellElementFromTarget(t.originalEvent.target);n&&(this._updateFocusedCellPosition(e),this._isRowEditMode()?(this._focusEditFormCell(e),this._editingController.cancelEditData(),0===this._dataController.items().length&&(this._resetFocusedCell(),this._editorFactory.loseFocus())):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),t.originalEvent.preventDefault())},_ctrlFKeyHandler:function(t){if(this.option("searchPanel.visible")){var n=this._headerPanel.getSearchTextEditor();n&&(n.focus(),t.originalEvent.preventDefault())}},_f2KeyHandler:function(){var t=this._editingController.isEditing(),n=this.getVisibleRowIndex(),e=this._focusedView&&this._focusedView.getRow(n);!t&&Wk(e)&&this._startEditing()},_navigateNextCell:function(t,n){var e=this._getNextCell(n),i=this._getDirectionCodeByKey(n);return!(!e||!this._isCellValid(e))&&this._arrowKeysHandlerFocusCell(t,e,i)},_arrowKeysHandlerFocusCell:function(t,n,e){var r=this._fireFocusChangingEvents(t,n,"prevRow"===e||"nextRow"===e,!0);return n=r.$newCellElement,!(r.cancel||!this._isCellValid(n)||(this._focus(n,!r.isHighlighted),0))},_beginFastEditing:function(t,n){if(!this._isFastEditingAllowed()||t.altKey||t.ctrlKey||this._editingController.isEditing())return!1;if(n)this._startEditing(t,RZ);else{var i=t.keyCode||t.which,r=t.key||i&&String.fromCharCode(i);r&&(1===r.length||r===RZ)&&this._startEditing(t,r)}return!0},_pointerEventHandler:function(t){var n=t.event||t,e=U(n.currentTarget),i=this.getView("rowsView"),r=i&&i.element(),o=e.parent(),a=U(n.target).is(V9),s=!!U(n.target).closest(".".concat("dx-revert-button")).length,l=e.hasClass(B9);this._isEventInCurrentGrid(n)&&(s||!this._isCellValid(e,!a)&&!l?e.is("td")&&this._resetFocusedCell():(e=this._isInsideEditForm(e)?U(n.target):e,this._focusView(),U(r).removeClass(_Pe),o.hasClass(hPe)?(this._updateFocusedCellPosition(e),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus(!0)):this._isMasterDetailCell(e)?this._updateFocusedCellPosition(e):this._clickTargetCellHandler(n,e)))},_clickTargetCellHandler:function(t,n){var e=this.getView("rowsView").getCellIndex(n),i=this._columnsController.getVisibleColumns()[e],r=this._isCellEditMode();this.setCellFocusType();var o=this._fireFocusChangingEvents(t,n,!0);if(n=o.$newCellElement,o.cancel)this.setRowFocusType(),this.setFocusedRowIndex(o.prevRowIndex),this._editingController.isEditing()&&r&&this._closeEditCell();else{if(o.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(o.rowIndexChanged&&(n=this._getFocusedCell()),!o.isHighlighted&&!r&&this.setRowFocusType(),this._updateFocusedCellPosition(n),this._allowRowUpdating()&&r&&i&&i.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{n=this._getFocusedCell();var a=t&&U(t.target).closest(vPe+", td"),s=a&&a.not(n).is(vPe),l=!!i&&!i.command&&n.hasClass(gPe);this._focus(n,!l&&(!o.isHighlighted||s),s)}}},_allowRowUpdating:function(){var t=this.getVisibleRowIndex(),n=this._dataController.items()[t];return this._editingController.allowUpdating({row:n},"click")},focus:function(t){var n,e=this.option("focusedRowEnabled"),i=this._isCellElement(U(t));t||(n=".dx-datagrid-rowsview .dx-row[tabindex]",e||(n+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),t=this.component.$element().find(n).first()),t&&this._focusElement(U(t),i)},getFocusedView:function(){return this._focusedView},setupFocusedView:function(){this.isKeyboardEnabled()&&!Z(this._focusedView)&&this._focusView()},_focusElement:function(t,n){var e=U(this._getRowsViewElement()),i=t.closest(e),r=this.isRowFocusType(),o={};!i.length||this._isCellElement(t)&&!this._isCellValid(t)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(this._isCellElement(t)||HS(t))&&(this.setCellFocusType(),t=(o=this._fireFocusChangingEvents(null,t,!1,n)).$newCellElement,r&&!o.isHighlighted&&this.setRowFocusType()),o.cancel||(this._focus(t,!o.isHighlighted),this._focusInteractiveElement(t)))},_getFocusedViewByElement:function(t){var n=this.getFocusedView(),e=n&&U(n.element());return t&&0!==t.closest(e).length},_focusView:function(){this._focusedView=this.getView("rowsView")},_resetFocusedView:function(){this.setRowFocusType(),this._focusedView=null},_focusInteractiveElement:function(t,n){if(t){var e=this._getInteractiveElement(t,n);vn.focusAndSelectElement(this,e)}},_focus:function(t,n,e){var i=t&&!t.hasClass(VS)?t.closest(".".concat(VS)):t;if(!i||!function MKt(t){return!t||t.hasClass(hPe)||t.hasClass("dx-virtual-row")}(i)){var a,r=this._focusedView,o=r&&r.element();this._isHiddenFocus=n;var s=HS(i)||this.isRowFocusType();s?(a=i,r&&this.setFocusedRowIndex(this._getRowIndex(i))):this._isCellElement(t)&&(a=t,this._updateFocusedCellPosition(t)),a&&(o&&o.find(".dx-row[tabindex], .dx-row > td[tabindex]").not(a).removeClass(N9).removeAttr("tabindex"),Se.one(a,"blur",l=>{l.relatedTarget&&a.removeClass(N9)}),e||(this._applyTabIndexToElement(a),Se.trigger(a,"focus")),n?(a.addClass(N9),s&&t.addClass(N9)):this._editorFactory.focus(a))}},_updateFocus:function(t){this._updateFocusTimeout=setTimeout(()=>{var n=this._editingController,e="cell"===n.getEditMode(),i="batch"===n.getEditMode();if(e&&n.hasChanges()||i&&n.isNewRowInEditMode())n._focusEditingCell();else{var r=this._getFocusedCell(),o=n.isEditing();if(r&&(!this._isMasterDetailCell(r)||this._isRowEditMode())&&(this._hasSkipRow(r.parent())&&(r=this._getNextCell(this._focusedCellPosition&&this._focusedCellPosition.rowIndex>0?"upArrow":"downArrow")),jh(r)))if(r.is("td")||r.hasClass(this.addWidgetPrefix("edit-form-item"))){var s=r.is(mPe),l=r.find(":focus"),u=jh(l);if(!t&&s||!this._editorFactory.focus())!u&&(this._isNeedFocus||this._isHiddenFocus)&&this._focus(r,this._isHiddenFocus);else{if(s&&u)return void vn.focusAndSelectElement(this,l);!u&&this._focus(r)}o&&this._focusInteractiveElement.bind(this)(r)}else Se.trigger(r,"focus")}})},_getFocusedCell:function(){return U(this._getCell(this._focusedCellPosition))},_updateFocusedCellPositionByTarget:function(t){var n;if("row"===this._getElementType(t)&&Z(null===(n=this._focusedCellPosition)||void 0===n?void 0:n.columnIndex)){var i=U(t);this._focusedView&&HS(i)&&this.setFocusedRowIndex(this._getRowIndex(i))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(t))},_updateFocusedCellPosition:function(t,n){var e=this._getCellPosition(t,n);return e&&(!t.length||e.rowIndex>=0&&e.columnIndex>=0)&&this.setFocusedCellPosition(e.rowIndex,e.columnIndex),e},_getFocusedColumnIndexOffset:function(t){var n=0,e=this._columnsController.getVisibleColumns()[t];return e&&e.fixed?n=this._getFixedColumnIndexOffset(e):t>=0&&(n=this._columnsController.getColumnIndexOffset()),n},_getFixedColumnIndexOffset:function(t){var n=function AKt(t,n){return t.option("rtlEnabled")?!("right"===n.fixedPosition||Z(n.command)&&!Z(n.fixedPosition)):!(!Z(n.fixedPosition)||"left"===n.fixedPosition)}(this,t)?this._getVisibleColumnCount()-this._columnsController.getVisibleColumns().length:0;return n},_getCellPosition:function(t,n){var e,i=jh(t)&&t.closest("tr"),r=this.getView("rowsView");if(jh(i)){var o=this._getRowIndex(i);return e=r.getCellIndex(t,o),e+=this._getFocusedColumnIndexOffset(e),n&&(e=this._applyColumnIndexBoundaries(e="previous"===n?e-1:e+1)),{rowIndex:o,columnIndex:e}}},_focusCell:function(t,n){if(this._isCellValid(t))return this._focus(t,n),!0},_focusEditFormCell:function(t){t.hasClass(pPe)&&this._editorFactory.focus(t,!0)},_resetFocusedCell:function(t){var n,e=this._getFocusedCell();jh(e)&&e.removeAttr("tabindex"),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={},clearTimeout(this._updateFocusTimeout),null===(n=this._focusedView)||void 0===n||n.renderFocusState({preventScroll:t})},restoreFocusableElement:function(t,n){var e,i,r=Z(t),o=this.getView("rowsView"),a=o.element(),s=this._focusedCellPosition.columnIndex,l=this._dataController.getRowIndexOffset();t=r?t:o.getTopVisibleItemIndex()+l,r?(i=o.getRow(t-l),!(e=this._fireFocusedRowChanging(n,i)).cancel&&e.rowIndexChanged&&(t=e.newRowIndex)):(this._editorFactory.loseFocus(),this._applyTabIndexToElement(a),Se.trigger(a,"focus")),(!r||!e.cancel)&&this.setFocusedCellPosition(t,s),r&&this._updateFocus()},_getNewPositionByCode:function(t,n,e){var i=t.columnIndex,r=t.rowIndex;if(void 0===t.rowIndex&&"next"===e)return{columnIndex:0,rowIndex:0};switch(e){case"nextInRow":case"next":i<this._getVisibleColumnCount()-1&&"row"!==n&&this._hasValidCellAfterPosition({columnIndex:i,rowIndex:r})?i++:!this._isLastRow(r)&&"next"===e&&(i=0,r++);break;case"previousInRow":case"previous":i>0&&"row"!==n&&this._hasValidCellBeforePosition({columnIndex:i,rowIndex:r})?i--:r>0&&"previous"===e&&(r--,i=this._getVisibleColumnCount()-1);break;case"upArrow":r=r>0?r-1:r;break;case"downArrow":r=this._isLastRow(r)?r:r+1}return{columnIndex:i,rowIndex:r}},setFocusedCellPosition:function(t,n){this.setFocusedRowIndex(t),this.setFocusedColumnIndex(n)},setFocusedRowIndex:function(t){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=t},setFocusedColumnIndex:function(t){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=t},getRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex:-1},getColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:-1},getVisibleRowIndex:function(){var t=this._focusedCellPosition&&this._focusedCellPosition.rowIndex;return!Z(t)||t<0?-1:t-this._dataController.getRowIndexOffset()},getVisibleColumnIndex:function(){var t=this._focusedCellPosition&&this._focusedCellPosition.columnIndex;return Z(t)?t-this._columnsController.getColumnIndexOffset():-1},_applyColumnIndexBoundaries:function(t){var n=this._getVisibleColumnCount();return t<0?t=0:t>=n&&(t=n-1),t},_isCellByPositionValid:function(t){var n=U(this._getCell(t));return this._isCellValid(n)},_isLastRow:function(t){var n=this._dataController,e=n.items().filter(i=>!1!==i.visible);return this._isVirtualRowRender()?t>=n.getMaxRowIndex():t===e.length-1},_isFirstValidCell:function(t){var n=!1;return 0===t.rowIndex&&t.columnIndex>=0&&(n=n||!this._hasValidCellBeforePosition(t)),n},_hasValidCellBeforePosition:function(t){for(var n=t.columnIndex,e=!1;n>0&&!e;){var i={columnIndex:--n,rowIndex:t.rowIndex};e=this._isCellByPositionValid(i)}return e},_hasValidCellAfterPosition:function(t){for(var n=t.columnIndex,e=!1,i=this._getVisibleColumnCount();n<i-1&&!e;){var r={columnIndex:++n,rowIndex:t.rowIndex};e=this._isCellByPositionValid(r)}return e},_isLastValidCell:function(t){var e=t.rowIndex,i={columnIndex:t.columnIndex>=0?t.columnIndex+1:0,rowIndex:e},r=this._dataController.getVisibleRows(),o=r&&r[e];return!!this._isLastRow(e)&&(!!(o&&"group"===o.rowType&&t.columnIndex>0||t.columnIndex===this._getVisibleColumnCount()-1)||!this._isCellByPositionValid(i)&&this._isLastValidCell(i))},_isCellValid:function(t,n){if(jh(t)){var e=this.getView("rowsView"),i=t.parent(),r=this._columnsController,o=e.getCellIndex(t)+r.getColumnIndexOffset(),a=r.getVisibleColumns(null,!0)[o],s=this._getVisibleColumnCount(),l=this._editingController,u=H9(i),f=a&&a.showWhenGrouped,S=a&&!t.hasClass(B9)&&Wk(i);if(this._isMasterDetailCell(t))return!0;if(s>o&&(!u&&a&&(!Z(a.groupIndex)||f&&S)||parseInt(t.attr("colspan"))>1)){var T=this._dataController.items(),R=e.getRowIndex(i),L=T[R],z=l&&this._isCellEditMode()&&l.isEditing(),j=l&&l.isEditRow(R),Y=j||z;return a.command?this._isLegacyNavigation()?!Y&&"expand"===a.command:!z&&(j?"select"!==a.command:!Y):(!z||!L||"data"===L.rowType)&&(!Y||a.allowEditing||n)}}},getFirstValidCellInRow:function(t,n){for(var i,r,e=t.find("> td"),o=n=n||0;o<e.length;++o)if(i=e.eq(o),this._isCellValid(i)){r=i;break}return r},_getNextCell:function(t,n,e){var a,s,i=e||this._focusedCellPosition,r=this.isRowFocusType(),o=r||["next","previous"].includes(t);if(this._focusedView&&i){var l=this._getNewPositionByCode(i,n,t);a=U(this._getCell(l));var u="previous"===t?this._isFirstValidCell(l):this._isLastValidCell(l);if(jh(a)&&!this._isCellValid(a)&&this._isCellInRow(l,o)&&!u&&(a=r?this.getFirstValidCellInRow(a.parent(),l.columnIndex):this._getNextCell(t,"cell",l)),s=jh(a)&&a.parent(),this._hasSkipRow(s)){var f=this._getRowIndex(s);if(this._isLastRow(f))return null;a=this._getNextCell(t,"row",{columnIndex:i.columnIndex,rowIndex:f})}return jh(a)?a:null}return null},_startEditing:function(t,n){var e=this._focusedCellPosition,i=this.getVisibleRowIndex(),r=this.getVisibleColumnIndex(),o=this._dataController.items()[i],a=this._columnsController.getVisibleColumns()[r];this._isAllowEditing(o,a)&&(this._isRowEditMode()?this._editingController.editRow(i):e&&this._startEditCell(t,n))},_isAllowEditing:function(t,n){return this._editingController.allowUpdating({row:t})&&n&&n.allowEditing},_editFocusedCell:function(){var t=this.getVisibleRowIndex(),n=this.getVisibleColumnIndex();return this._editingController.editCell(t,n)},_startEditCell:function(t,n){this._fastEditingStarted=Z(n);var e=this._editFocusedCell();if(this._isFastEditingStarted())if(!0===e)this._editingCellHandler(t,n);else if(e&&e.done){var i=n!==RZ?n:"";e.done(()=>this._editingCellHandler(t,i))}},_editingCellHandler:function(t,n){var e,i,r=this._getFocusedCell().find(V9).eq(0),o=u_(t,{type:"keydown",target:r.get(0)}),a=u_(t,{type:"keypress",target:r.get(0)}),s=u_(t,{type:"input",target:r.get(0)});s.originalEvent&&(s.originalEvent=u_(s.originalEvent,{data:n})),null===(e=(i=r.get(0)).select)||void 0===e||e.call(i),Se.trigger(r,o),o.isDefaultPrevented()||(Se.trigger(r,a),a.isDefaultPrevented())||setTimeout(()=>{r.val(n);var u=r.closest(".".concat("dx-widget"));Se.off(u,"focusout"),Se.one(u,"focusout",function(){Se.trigger(r,"change")}),Se.trigger(r,s)},Ro.mozilla?25:0)},_fireFocusChangingEvents:function(t,n,e,i){var r={},o=this._getCellPosition(n)||{};return this.isCellFocusType()&&((r=this._fireFocusedCellChanging(t,n,i)).cancel||(o.columnIndex=r.newColumnIndex,o.rowIndex=r.newRowIndex,i=r.isHighlighted,n=U(this._getCell(o)))),!r.cancel&&e&&n&&((r=this._fireFocusedRowChanging(t,n.parent())).cancel||(o.rowIndex=r.newRowIndex,r.isHighlighted=i)),r.$newCellElement=U(this._getCell(o)),r.$newCellElement.length||(r.$newCellElement=n),r},_fireFocusedCellChanging:function(t,n,e){var i=this.option("focusedColumnIndex"),r=this.option("focusedRowIndex"),o=this._getCellPosition(n),a=o?o.columnIndex:-1,s=o?o.rowIndex:-1,l={cellElement:n,prevColumnIndex:i,prevRowIndex:r,newColumnIndex:a,newRowIndex:s,rows:this._dataController.getVisibleRows(),columns:this._columnsController.getVisibleColumns(),event:t,isHighlighted:e||!1,cancel:!1};return this._canceledCellPosition=null,this.executeAction("onFocusedCellChanging",l),(l.newColumnIndex!==a||l.newRowIndex!==s)&&(l.$newCellElement=U(this._getCell({columnIndex:l.newColumnIndex,rowIndex:l.newRowIndex}))),l.cancel&&(this._canceledCellPosition={rowIndex:s,columnIndex:a}),l},_fireFocusedCellChanged:function(t,n,e){var i=this._dataController,r=this.getView("rowsView").getCellIndex(t),o=this._getRowIndex(t&&t.parent()),a=Math.min(o-i.getRowIndexOffset(),i.items().length-1),s=this._editingController.isEditCell(a,r),l=i.items()[a];!s&&(n!==r||e!==o)&&this.executeAction("onFocusedCellChanged",{cellElement:t,columnIndex:r,rowIndex:o,row:l,column:this._columnsController.getVisibleColumns()[r]})},_fireFocusedRowChanging:function(t,n){var e=this._getRowIndex(n),i=this._dataController,r=this.option("focusedRowIndex"),o=i.loadingOperationTypes(),a={rowElement:n,prevRowIndex:r,newRowIndex:e,event:t,rows:i.getVisibleRows(),cancel:!1};return!i||i.isLoading()&&(o.reload||o.paging)?(a.cancel=!0,a):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",a),!a.cancel&&a.newRowIndex!==e&&(a.resetFocusedRow=a.newRowIndex<0,a.resetFocusedRow||this.setFocusedRowIndex(a.newRowIndex),a.rowIndexChanged=!0)),a)},_fireFocusedRowChanged:function(t){var n,e=this.option("focusedRowKey"),r=this.getController("focus")?.getFocusedRowIndexByKey(e);if(this.option("focusedRowEnabled")){if(r>=0){var o=this._dataController;n=r>=0&&o.getVisibleRows()[r-o.getRowIndexOffset()]}this.executeAction("onFocusedRowChanged",{rowElement:t,rowIndex:r,row:n})}},_isEventInCurrentGrid:function(t){return vn.isElementInCurrentGrid(this,U(t.target))},_isRowEditMode:function(){var t=this._editingController.getEditMode();return"row"===t||"form"===t},_isCellEditMode:function(){var t=this._editingController.getEditMode();return"cell"===t||"batch"===t},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_getInteractiveElement:function(t,n){var e=t.find(V9).filter(":visible");return n?e.last():e.first()},_applyTabIndexToElement:function(t){var n=this.option("tabIndex")||0;t.attr("tabindex",Z(n)?n:0)},_getCell:function(t){if(this._focusedView&&t){var n=this._dataController.getRowIndexOffset(),e=this._columnsController.getVisibleColumns(null,!0)[t.columnIndex],i=e&&e.fixed?this._getFixedColumnIndexOffset(e):this._columnsController.getColumnIndexOffset();return this._focusedView.getCell({rowIndex:t.rowIndex>=0?t.rowIndex-n:-1,columnIndex:t.columnIndex>=0?t.columnIndex-i:-1})}},_getRowIndex:function(t){var e=this.getView("rowsView").getRowIndex(t);return e>=0&&(e+=this._dataController.getRowIndexOffset()),e},_hasSkipRow:function(t){var n=t&&t.get(0);return n&&("none"===n.style.display||t.hasClass(this.addWidgetPrefix("group-footer"))||H9(t)&&!t.hasClass(this.addWidgetPrefix("edit-form")))},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDirectionCodeByKey:function(t){var n;switch(t){case"upArrow":n="prevRow";break;case"downArrow":n="nextRow";break;case"leftArrow":n=this.option("rtlEnabled")?"nextInRow":"previousInRow";break;case"rightArrow":n=this.option("rtlEnabled")?"previousInRow":"nextInRow"}return n},_isVirtualScrolling:function(){var t=this.option("scrolling.mode");return"virtual"===t||"infinite"===t},_isVirtualRowRender:function(){return this._isVirtualScrolling()||vn.isVirtualRowRendering(this)},_isVirtualColumnRender:function(){return"virtual"===this.option("scrolling.columnRenderingMode")},_scrollBy:function(t,n,e,i){var r=this,o=this.getView("rowsView").getScrollable();return r._focusedCellPosition&&o.on("scroll",function a(){o.off("scroll",a),setTimeout(r.restoreFocusableElement.bind(r,e,i))}),o.scrollBy({left:t,top:n})},_isInsideEditForm:function(t){var n=U(t).closest("."+this.addWidgetPrefix("edit-form"));return n.length&&this.elementIsInsideGrid(n)},_isMasterDetailCell:function(t){var n=U(t).closest("."+pPe);return n.length&&this.elementIsInsideGrid(n)},_processNextCellInMasterDetail:function(t){!this._isInsideEditForm(t)&&t&&this._applyTabIndexToElement(t)},_handleTabKeyOnMasterDetailCell:function(t,n){if(this._isMasterDetailCell(t)){this._updateFocusedCellPosition(U(t),n);var e=this._getNextCell(n,"row");return this._processNextCellInMasterDetail(e,U(t)),!0}return!1},_getElementType:function(t){return U(t).is("tr")?"row":"cell"},_isFastEditingStarted:function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},_getVisibleColumnCount:function(){return this._columnsController.getVisibleColumns(null,!0).length},_isCellInRow:function(t,n){var e=t.columnIndex,i=this._getVisibleColumnCount();return n?e>=0&&e<=i-1:e>0&&e<i-1},_isCellElement:function(t){return t.length&&"TD"===t[0].tagName},_getCellElementFromTarget:function(t){var n=this._getElementType(t),e=U(t);return"cell"===n?e.closest(".".concat(VS," > td")):e.children().not("."+B9).first()},_getRowsViewElement:function(){var t=this.getView("rowsView");return t&&t.element()},isKeyboardEnabled:function(){return this.option("keyboardNavigation.enabled")},_processCanceledEditCellPosition:function(t,n){if(this._canceledCellPosition){var e=this._canceledCellPosition.rowIndex===t&&this._canceledCellPosition.columnIndex===n;return this._canceledCellPosition=null,e}},updateFocusedRowIndex:function(){var t=this._dataController,n=this.getVisibleRowIndex(),e=t.items(),i=e.length?e.length-1:-1,r=t.getRowIndexOffset();i>=0&&n>i&&this.setFocusedRowIndex(i+r)}},TPe={defaultOptions:function(){return{useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:Bo.ViewController.inherit(PKt)},extenders:{views:{rowsView:{_rowClick:function(t){var n=this.getController("editing").getEditRowIndex(),e=this.getController("keyboardNavigation"),i=e.isKeyboardEnabled();n===t.rowIndex&&e.setCellFocusType();var r=(EPe()||!i)&&this.option("focusedRowEnabled");r&&this._triggerPointerDownEventHandler(t,!i),this.callBase.apply(this,arguments)},_triggerPointerDownEventHandler:function(t,n){var e=t.event.originalEvent;if(e){var i=this.getController("keyboardNavigation"),r=U(e.target),o=this.getCellIndex(r),a=this.getController("columns").getVisibleColumns()[o],s=this.getController("data").items()[t.rowIndex];if(i._isAllowEditing(s,a)||n){var l=u_(e,{currentTarget:e.target});i._pointerEventHandler(l)}}},renderFocusState:function(t){var{preventScroll:n,pageSizeChanged:e}=t??{},i=this.getController("keyboardNavigation"),r=this.element();r&&!l_(r)&&r.attr("tabindex",null),e&&i.updateFocusedRowIndex();var o=i.getVisibleRowIndex();(!Z(o)||o<0)&&(o=0);var a=this.getCellElements(o);i.isKeyboardEnabled()&&a.length&&this.updateFocusElementTabIndex(a,n)},updateFocusElementTabIndex:function(t){var n=this.getController("keyboardNavigation"),e=t.eq(0).parent();if(HS(e))n._applyTabIndexToElement(e);else{var i=n.getColumnIndex();(!Z(i)||i<0)&&(i=0),this._updateFocusedCellTabIndex(t,i)}},_updateFocusedCellTabIndex:function(t,n){var e=this.getController("keyboardNavigation"),i=t?t.length:-1,r=function(s){var l=e._isMasterDetailCell(s),u=e._isCellValid(s);if(!l&&u&&e._isCellElement(s))return e._applyTabIndexToElement(s),e.setCellFocusType(),!0},o=t.filter("[aria-colindex='".concat(n+1,"']"));if(o.length)r(o);else{i<=n&&(n=i-1);for(var a=n;a<i&&!r(U(t[a]));++a);}},renderDelayedTemplates:function(t){this.callBase.apply(this,arguments),this._renderFocusByChange(t)},_renderFocusByChange(t){var{operationTypes:n,repaintChangesOnly:e}=t??{},{fullReload:i,pageSize:r}=n??{};if(!t||!e||i||r){var o=function FKt(t){var n=t.getController("keyboardNavigation");return!!n._isVirtualScrolling()&&t.option("focusedRowIndex")===n.getRowIndex()}(this);this.renderFocusState({preventScroll:o,pageSizeChanged:r})}},_renderCore:function(t){var n=this.callBase.apply(this,arguments);return this._renderFocusByChange(t),n},_editCellPrepared:function(t){var n=this._getEditorInstance(t),e=this.getController("keyboardNavigation"),i=e&&e._isFastEditingStarted();n&&i&&this._handleEditingNavigationMode(n),this.callBase.apply(this,arguments)},_handleEditingNavigationMode:function(t){["downArrow","upArrow"].forEach(function(e){var i=t._supportedKeys()[e];t.registerKeyHandler(e,r=>{if("true"===t._input().attr("aria-expanded"))return i&&i.call(t,r)})}),t.registerKeyHandler("leftArrow",Be),t.registerKeyHandler("rightArrow",Be),"dxDateBox"===t.NAME&&t.option("useMaskBehavior")&&t.registerKeyHandler("enter",Be)},_getEditorInstance:function(t){var n=t.find(".dx-texteditor").eq(0);return vn.getWidgetInstance(n)}}},controllers:{editing:{editCell:function(t,n){var e=this.getController("keyboardNavigation");if(e._processCanceledEditCellPosition(t,n))return!1;var i=this.callBase(t,n);return i&&e.setupFocusedView(),i},editRow:function(t){var n=this.getController("keyboardNavigation"),e=n.getVisibleColumnIndex(),i=this._columnsController.getVisibleColumns()[e];(i&&i.type||"form"===this.option("editing.mode"))&&n._resetFocusedCell(),this.callBase(t)},addRow:function(t){var n=this.getController("keyboardNavigation");return n.setupFocusedView(),n.setCellFocusType(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(t){var n=this.getController("keyboardNavigation"),e=this.callBase(t);if(n.isKeyboardEnabled()&&n._focusedCellPosition.rowIndex===t){var i=n._getFocusedCell();jh(i)&&!i.hasClass("dx-command-edit")&&(e=i)}return e},_processCanceledEditingCell:function(){this.closeEditCell().done(()=>{this.getController("keyboardNavigation")._updateFocus()})},init:function(){this.callBase(),this._keyboardNavigationController=this.getController("keyboardNavigation")},closeEditCell:function(){var t=this._keyboardNavigationController;t._fastEditingStarted=!1;var n=this.callBase.apply(this,arguments);return t._updateFocus(),n},_delayedInputFocus:function(){this._keyboardNavigationController._isNeedScroll=!0,this.callBase.apply(this,arguments)},_isEditingStart:function(){var t=this.getController("keyboardNavigation"),n=this.callBase.apply(this,arguments);if(n&&!t._isNeedFocus){var e=t._getFocusedCell();t._focus(e,!0)}return n}},data:{_correctRowIndices:function(t){var n=this,e=n.getController("keyboardNavigation"),i=n.getController("editorFactory"),r=e._focusedCellPosition;if(n.callBase.apply(n,arguments),r&&r.rowIndex>=0){var o=t(r.rowIndex);o&&(r.rowIndex+=o,i.refocus())}},getMaxRowIndex:function(){var t=this.items().length-1,n=this.virtualItemsCount();return n&&(t+=this.getRowIndexOffset()+n.end),t}},adaptiveColumns:{_showHiddenCellsInView:function(t){var{viewName:n,$cells:e,isCommandColumn:i}=t;this.callBase.apply(this,arguments),n===SPe&&!i&&e.each((r,o)=>{var a=U(o);OPe(a)&&a.attr("tabindex",0)})},_hideVisibleCellInView:function(t){var{viewName:n,$cell:e,isCommandColumn:i}=t;this.callBase.apply(this,arguments),n===SPe&&!i&&OPe(e)&&e.removeAttr("tabindex")}}}}};function LZ(t,n,e,i){var r=0;if(t<n)for(;r<e.items.length;r++)LZ(t+1,n,e.items[r],i);t===n&&i(e)}function z9(t,n){var e;if("map"in t)return t.map(n);var i=new Array(t.length);for(e in t)i[e]=n(t[e],e);return i}function BKt(t){return t===DO.count}function IPe(t){var n=Ai(t.selector),e=!("skipEmptyValues"in t)||t.skipEmptyValues,i=t.aggregator;if("string"==typeof i&&!(i=DO[i]))throw uo.Error("E4001",t.aggregator);return{selector:n,aggregator:i,skipEmptyValues:e}}oi.registerModule("keyboardNavigation",TPe);const NKt=ji.inherit({ctor:function(t){this._data=t.data,this._groupLevel=t.groupLevel||0,this._totalAggregates=z9(t.totalAggregates||[],IPe),this._groupAggregates=z9(t.groupAggregates||[],IPe),this._totals=[]},calculate:function(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})},totalAggregates:function(){return this._totals},_aggregate:function(t,n,e){for(var i=n.items?n.items.length:0,r=0;r<t.length;r++)if(BKt(t[r].aggregator))e[r]=(e[r]||0)+i;else for(var o=0;o<i;o++)this._accumulate(r,t[r],e,n.items[o])},_calculateTotals:function(t,n){if(0===t&&(this._totals=this._seed(this._totalAggregates)),t===this._groupLevel)this._aggregate(this._totalAggregates,n,this._totals);else for(var e=0;e<n.items.length;e++)this._calculateTotals(t+1,n.items[e]);0===t&&(this._totals=this._finalize(this._totalAggregates,this._totals))},_calculateGroups:function(t){var n=this._groupLevel,e=n+1,i=this._seed.bind(this,this._groupAggregates),r=this._aggregate.bind(this,this._groupAggregates),o=this._finalize.bind(this,this._groupAggregates);function a(s){s.aggregates=i(e-1),e===n?r(s,s.aggregates):LZ(e,n,s,function(l){r(l,s.aggregates)}),s.aggregates=o(s.aggregates)}for(;--e>0;)LZ(0,e,t,a)},_seed:function(t,n){return z9(t,function(e){var i=e.aggregator;return"seed"in i?Yt(i.seed)?i.seed(n):i.seed:NaN})},_accumulate:function(t,n,e,i){var r=n.selector(i),o=n.aggregator;n.skipEmptyValues&&function LKt(t){return t!=t||""===t||null==t}(r)||(e[t]=e[t]!=e[t]?r:o.step(e[t],r))},_finalize:function(t,n){return z9(t,function(e,i){var r=e.aggregator.finalize;return r?r(n[i]):n[i]})}});var UKt="dx-datagrid-group-footer",jKt="dx-footer-row",BZ="groupFooter",kPe="totalFooter",MPe=function(t,n){var e=U(t),i=n.column,r=n.summaryItems,o=[];if(!i.command&&r){for(var a=0;a<r.length;a++){var s=r[a];o.push(U("<div>").css("textAlign",s.alignment||i.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(s.cssClass).toggleClass("dx-datagrid-group-text-content","group"===n.rowType).text(oi.getSummaryText(s,n.summaryTexts)))}e.append(o)}},APe=function(t,n){var e=t.option("summary.texts")||{};return{totalItem:n.row,summaryItems:n.row.summaryCells[n.columnIndex],summaryTexts:e}},NZ=function(t){return t.summary||t.aggregates||[]},VZ=function(t){return t.option("summary.recalculateWhileEditing")},KKt=dk.inherit({_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(t){return se(this.callBase(t),APe(this,t))},_renderCellContent:function(t,n){MPe(t,n),this.callBase.apply(this,arguments)},_renderCore:function(t){var n=!1,e=this._dataController.footerItems()[0];(!t||!t.columnIndices)&&(this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),n=!0),e&&e.summaryCells&&e.summaryCells.length&&(this._updateContent(this._renderTable({change:t}),t),n&&this._updateScrollLeftPosition())},_updateContent:function(t,n){return n&&"update"===n.changeType&&n.columnIndices?this._waitAsyncTemplates(n).done(()=>{var e=this.getTableElement().find(".dx-row"),i=t.find(".dx-row");this._updateCells(e,i,n.columnIndices[0])}):this.callBase.apply(this,arguments)},_rowClick:function(t){var n=this._dataController.footerItems()[t.rowIndex]||{};this.executeAction("onRowClick",se({},t,n))},_columnOptionChanged:function(t){var n=t.optionNames;t.changeTypes.grouping||(n.width||n.visibleWidth)&&this.callBase(t)},_handleDataChanged:function(t){var n=t.changeType;"update"===t.changeType&&t.repaintChangesOnly?t.totalColumnIndices?t.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[t.totalColumnIndices]}):this.render():("refresh"===n||"append"===n||"prepend"===n)&&this.render()},_createRow:function(t){var n=this.callBase.apply(this,arguments);return t.rowType===kPe&&n.addClass(jKt),n},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}}),$Kt={init:function(){this.callBase.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=Be},summaryGetter:function(t){if(!arguments.length)return this._summaryGetter;Yt(t)&&(this._summaryGetter=t)},summary:function(t){if(!arguments.length)return this._summaryGetter();this._summaryGetter=function(){return t}},totalAggregates:function(){return this._totalAggregates},isLastLevelGroupItemsPagingLocal:function(){var t=this.summary(),n=t&&t.sortByGroups();return n&&n.length},sortLastLevelGroupItems:function(t,n,e){var i=cg.multiLevelGroup(Ha(t),n).toArray(),r=[];return e.forEach(function(o){!function a(s,l,u,f){f=f||[];for(var S=0;S<s.length;S++)f.push(s[S].key),1===l?u(f,s[S].items):a(s[S].items,l-1,u,f),f.pop()}(i,n.length,function(a,s){o.toString()===a.toString()&&(r=r.concat(s))})}),r}},qKt=function(){var t=function(e,i,r,o){var a;if(VZ(e)){var s=e.getController("editing");if(s){var l=s.getInsertedData();l.length&&(r=function f(S,T,R){return R?f(S,T.map(L=>({items:[L]}),R-1)):S.concat(T)}(r,l,o));var u=s.getRemovedData();u.length&&(r=function f(S,T,R){return R?S.map(L=>{var z={},j=f(L.items||[],T,R-1);return Object.defineProperty(z,"aggregates",{get:()=>L.aggregates,set:Y=>{L.aggregates=Y}}),se(z,L,{items:j})}):S.filter(L=>T.indexOf(L)<0)}(r,u,o))}}return i&&(a=new NKt({totalAggregates:i.totalAggregates,groupAggregates:i.groupAggregates,data:r,groupLevel:o})).calculate(),a?a.totalAggregates():[]},n=function(e,i,r){var o=r&&r.sortByGroups&&r.sortByGroups();return o&&o.length?function a(s,l,u){if(!s||!l.length)return s;var T,S=u[0];return l[0]&&S&&S.length&&(T=Ha(s),we(S,function(R){T=0===R?T.sortBy(this.selector,this.desc):T.thenBy(this.selector,this.desc)}),T.enumerate().done(function(R){s=R})),l=l.slice(1),u=u.slice(1),l.length&&u.length&&we(s,function(){this.items=a(this.items,l,u)}),s}(e,i,o):e};return{_customizeRemoteOperations:function(e){var i=this.summary();i&&(e.remoteOperations.summary?(!e.isCustomLoading||e.storeLoadOptions.isLoadingAll)&&(e.storeLoadOptions.group&&(e.remoteOperations.grouping?e.storeLoadOptions.groupSummary=i.groupAggregates:i.groupAggregates.length&&(e.remoteOperations.paging=!1)),e.storeLoadOptions.totalSummary=i.totalAggregates):(i.totalAggregates.length||i.groupAggregates.length&&e.storeLoadOptions.group)&&(e.remoteOperations.paging=!1)),this.callBase.apply(this,arguments);var r=e.cachedData.extra;r&&r.summary&&!e.isCustomLoading&&(e.storeLoadOptions.totalSummary=void 0)},_handleDataLoadedCore:function(e){var i=cm(e.storeLoadOptions.group||e.loadOptions.group||[]),r=e.remoteOperations||{},o=this.summaryGetter()(r);if(!e.isCustomLoading||e.storeLoadOptions.isLoadingAll)if(r.summary)!r.paging&&i.length&&o&&(r.grouping||t(this,{groupAggregates:o.groupAggregates},e.data,i.length),e.data=n(e.data,i,o));else if(!r.paging&&o){var a,s,l=e.operationTypes||{};if(!Object.keys(l).some(S=>l[S])||null===(a=e.cachedData)||void 0===a||null===(s=a.extra)||void 0===s||!s.summary||i.length&&o.groupAggregates.length){var f=t(this,o,e.data,i.length);e.extra=wi(e.extra)?e.extra:{},e.extra.summary=f,e.cachedData&&(e.cachedData.extra=e.extra)}e.data=n(e.data,i,o)}e.isCustomLoading||(this._totalAggregates=e.extra&&e.extra.summary||this._totalAggregates),this.callBase(e)}}}();hk.extend($Kt),hk.extend(qKt),oi.registerModule("summary",{defaultOptions:function(){return{summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:ye.format("dxDataGrid-summarySum"),sumOtherColumn:ye.format("dxDataGrid-summarySumOtherColumn"),min:ye.format("dxDataGrid-summaryMin"),minOtherColumn:ye.format("dxDataGrid-summaryMinOtherColumn"),max:ye.format("dxDataGrid-summaryMax"),maxOtherColumn:ye.format("dxDataGrid-summaryMaxOtherColumn"),avg:ye.format("dxDataGrid-summaryAvg"),avgOtherColumn:ye.format("dxDataGrid-summaryAvgOtherColumn"),count:ye.format("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}},views:{footerView:KKt},extenders:{controllers:{data:{_isDataColumn:function(t){return t&&(!Z(t.groupIndex)||t.showWhenGrouped)},_isGroupFooterVisible:function(){for(var t=this.option("summary.groupItems")||[],n=0;n<t.length;n++){var e=t[n],i=this._columnsController.columnOption(e.showInColumn||e.column);if(e.showInGroupFooter&&this._isDataColumn(i))return!0}return!1},_processGroupItems:function(t,n,e){var i=e&&e.data,r=this.callBase.apply(this,arguments);return e&&(void 0===e.isGroupFooterVisible&&(e.isGroupFooterVisible=this._isGroupFooterVisible()),i&&i.items&&e.isGroupFooterVisible&&(e.collectContinuationItems||!i.isContinuationOnNextPage)&&r.push({rowType:BZ,key:e.path.slice(),data:i,groupIndex:e.path.length-1,values:[]})),r},_processGroupItem:function(t,n){var e=this;if(n.summaryGroupItems||(n.summaryGroupItems=e.option("summary.groupItems")||[]),"group"===t.rowType){var i=-1,r=-1;we(n.visibleColumns,function(o){t.groupIndex===this.groupIndex&&(i=this.index),o>0&&"expand"===n.visibleColumns[o-1].command&&"expand"!==this.command&&(r=this.index)}),t.summaryCells=this._calculateSummaryCells(n.summaryGroupItems,NZ(t.data),n.visibleColumns,function(o,a){return o.showInGroupFooter?-1:o.alignByColumn&&a&&!Z(a.groupIndex)&&a.index!==r?a.index:i},!0)}return t.rowType===BZ&&(t.summaryCells=this._calculateSummaryCells(n.summaryGroupItems,NZ(t.data),n.visibleColumns,function(o,a){return o.showInGroupFooter&&e._isDataColumn(a)?a.index:-1})),t},_calculateSummaryCells:function(t,n,e,i,r){var o=this,a=[],s={};return we(t,function(l,u){var f=o._columnsController.columnOption(u.column),S=u.showInColumn&&o._columnsController.columnOption(u.showInColumn)||f,T=i(u,S);if(T>=0){s[T]||(s[T]=[]);var L,R=n[l];R==R&&(Z(u.valueFormat)?L=u.valueFormat:"count"!==u.summaryType&&(L=oi.getFormatByDataType(f&&f.dataType)),s[T].push(se({},u,{value:Pn(R)&&f&&f.deserializeValue?f.deserializeValue(R):R,valueFormat:L,columnCaption:f&&f.index!==T?f.caption:void 0})))}}),pa(s)||e.forEach((l,u)=>{var f=e[u-1];a.push(s[!r||"expand"!==f?.command&&"expand"!==l.command?l.index:f?.index]||[])}),a},_getSummaryCells:function(t,n){var e=this;return e._calculateSummaryCells(t,n,e._columnsController.getVisibleColumns(),function(r,o){return e._isDataColumn(o)?o.index:-1})},_updateItemsCore:function(t){var n,e=this._dataSource,i=this._footerItems,r=i&&i[0]&&i[0].summaryCells,o=this.option("summary.totalItems");if(this._footerItems=[],e&&o&&o.length){var a=e.totalAggregates();n=this._getSummaryCells(o,a),t&&t.repaintChangesOnly&&r&&(t.totalColumnIndices=n.map(function(s,l){return JSON.stringify(s)!==JSON.stringify(r[l])?l:-1}).filter(s=>s>=0)),n.length&&this._footerItems.push({rowType:kPe,summaryCells:n})}this.callBase(t)},_prepareUnsavedDataSelector:function(t){if(VZ(this)){var n=this.getController("editing");if(n)return function(e){return e=n.getUpdatedData(e),t(e)}}return t},_prepareAggregateSelector:function(t,n){return t=this._prepareUnsavedDataSelector(t),"avg"===n||"sum"===n?function(e){var i=t(e);return Z(i)?Number(i):i}:t},_getAggregates:function(t,n){var e=this,i=e.getController("columns"),r=e.option("summary.calculateCustomSummary"),o=e.option("summary.skipEmptyValues");return Dr(t||[],function(a){var s=i.columnOption(a.column),l=s&&s.calculateCellValue?s.calculateCellValue.bind(s):Ai(s?s.dataField:a.column),u=a.summaryType||"count",f=Z(a.skipEmptyValues)?a.skipEmptyValues:o;if(n)return{selector:a.column,summaryType:u};var S=e._prepareAggregateSelector(l,u);if("custom"===u){r||(Di.log("E1026"),r=function(){});var T={component:e.component,name:a.name};r(T),T.summaryProcess="calculate",u={seed:function(R){return T.summaryProcess="start",T.totalValue=void 0,T.groupIndex=R,delete T.value,r(T),T.totalValue},step:function(R,L){return T.summaryProcess="calculate",T.totalValue=R,T.value=L,r(T),T.totalValue},finalize:function(R){return T.summaryProcess="finalize",T.totalValue=R,delete T.value,r(T),T.totalValue}}}return{selector:S,aggregator:u,skipEmptyValues:f}})},_addSortInfo:function(t,n,e,i){if(n){var r=n.groupIndex;i=i||n.sortOrder,Z(r)&&(t[r]=t[r]||[],t[r].push({selector:e,desc:"desc"===i}))}},_findSummaryItem:function(t,n){var e=-1;return Z(n)&&we(t||[],function(i){if(this.name===n||i===n||this.summaryType===n||this.column===n||(a=this.column,((o=this.summaryType)&&a&&o+"_"+a)===n))return e=i,!1;var o,a}),e},_getSummarySortByGroups:function(t,n){var e=this,i=e._columnsController,r=i.getGroupColumns(),o=[];if(n&&n.length)return we(t||[],function(){var a=this.sortOrder,s=this.groupColumn,l=e._findSummaryItem(n,this.summaryItem);if(!(l<0)){var u=function(f){return NZ(f)[l]};Z(s)?(s=i.columnOption(s),e._addSortInfo(o,s,u,a)):we(r,function(f,S){e._addSortInfo(o,S,u,a)})}}),o},_createDataSourceAdapterCore:function(t,n){var e=this,i=this.callBase(t,n);return i.summaryGetter(function(r){return e._getSummaryOptions(r||n)}),i},_getSummaryOptions:function(t){var n=this,e=n.option("summary.groupItems"),i=n.option("summary.totalItems"),r=n.option("sortByGroupSummaryInfo"),o=n._getAggregates(e,t&&t.grouping&&t.summary),a=n._getAggregates(i,t&&t.summary);if(o.length||a.length)return{groupAggregates:o,totalAggregates:a,sortByGroups:function(){return n._getSummarySortByGroups(r,e)}}},publicMethods:function(){var t=this.callBase();return t.push("getTotalSummaryValue"),t},getTotalSummaryValue:function(t){var n=this._findSummaryItem(this.option("summary.totalItems"),t),e=this._dataSource.totalAggregates();if(e.length&&n>-1)return e[n]},optionChanged:function(t){("summary"===t.name||"sortByGroupSummaryInfo"===t.name)&&(t.name="dataSource"),this.callBase(t)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}},editing:{_refreshSummary:function(){VZ(this)&&!this.isSaving()&&this._dataController.refresh({load:!0,changesOnly:!0})},_addChange:function(t){var n=this.callBase.apply(this,arguments);return t.type&&this._refreshSummary(),n},_removeChange:function(){var t=this.callBase.apply(this,arguments);return this._refreshSummary(),t},cancelEditData:function(){var t=this.callBase.apply(this,arguments);return this._refreshSummary(),t}}},views:{rowsView:{_createRow:function(t){var n=this.callBase.apply(this,arguments);return t&&n.addClass(t.rowType===BZ?UKt:""),n},_renderCells:function(t,n){this.callBase.apply(this,arguments),"group"===n.row.rowType&&n.row.summaryCells&&n.row.summaryCells.length&&this._renderGroupSummaryCells(t,n)},_hasAlignByColumnSummaryItems:function(t,n){return!Z(n.columns[t].groupIndex)&&n.row.summaryCells[t].length},_getAlignByColumnCellCount:function(t,n){for(var e=0,i=1;i<t;i++)e=this._hasAlignByColumnSummaryItems(n.row.summaryCells.length-i,n)?i:e;return e},_renderGroupSummaryCells:function(t,n){var e=t.children().last(),i=Number(e.attr("colSpan"))||1,r=this._getAlignByColumnCellCount(i,n);this._renderGroupSummaryCellsCore(e,n,i,r)},_renderGroupSummaryCellsCore:function(t,n,e,i){if(i>0){t.attr("colSpan",e-i);for(var r=0;r<i;r++){var o=n.columns.length-i+r;this._renderCell(t.parent(),se({column:n.columns[o],columnIndex:this._getSummaryCellIndex(o,n.columns)},n))}}},_getSummaryCellIndex:function(t){return t},_getCellTemplate:function(t){return!t.column.command&&!Z(t.column.groupIndex)&&t.summaryItems&&t.summaryItems.length?MPe:this.callBase(t)},_getCellOptions:function(t){var n=this.callBase(t);return t.row.summaryCells?se(n,APe(this,t)):n}}}}});var Gk="content-fixed",YKt="dx-master-detail-cell",PPe="dx-first-cell",ZKt="dx-last-cell",RPe="dx-state-hover",LPe="dx-col-fixed",HZ="dx-pointer-events-none",gb="transparent",BPe="dx-group-row",r0=function(t){var n=-1;return we(t,function(e,i){if(i.command===gb)return n=e,!1}),n},NPe=function(t,n,e){var i=0;if(t&&n&&e)for(var r=0;r<t.length;r++)t[r].command===gb?i+=t[r].colspan:(n[i]<e[r]&&(n[i]=e[r]),i++);return n},zZ={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(t){return this.callBase(t).toggleClass(LPe,!(!this._isFixedTableRendering||!(t.fixed||t.command&&t.command!==gb)))},_correctColumnIndicesForFixedColumns:function(t,n){var e=r0(t),i=t[e].colspan,r=n&&n.columnIndices;r&&(n.columnIndices=r.map(function(o){if(o)return o.map(function(a){return a<e?a:a>=e+i?a-i+1:-1}).filter(function(a){return a>=0})}))},_partialUpdateFixedTable(t){var n=this._fixedTableElement,e=this._getRowElementsCore(n);n.children("colgroup").replaceWith(this._createColGroup(t));for(var r=0;r<e.length;r++)this._partialUpdateFixedRow(U(e[r]),t)},_partialUpdateFixedRow(t,n){var a,e=t.get(0).childNodes,i=r0(n),r=n[i],s=this._columnsController.getColumnIndexOffset()+1,l=r.colspan;if(t.hasClass("dx-master-detail-row")){var u;e[0].setAttribute("colspan",null===(u=this._columnsController.getVisibleColumns())||void 0===u?void 0:u.length)}else{t.hasClass(BPe)&&(l=(a=this._getGroupCellOptions({row:t.data("options"),columns:this._columnsController.getVisibleColumns()})).colspan-Math.max(0,e.length-(a.columnIndex+2)));for(var f=0;f<e.length;f++){var S=a?f===a.columnIndex+1:f===i;e[f].setAttribute("aria-colindex",s),S?(e[f].setAttribute("colspan",l),s+=l):s++}}},_renderTable:function(t){var n,e=this.getFixedColumns();this._isFixedColumns=!!e.length;var i=this.callBase(t);if(this._isFixedColumns){var r=t?.change;if(this._isFixedTableRendering=!0,null!=r&&r.virtualColumnsScrolling&&!0!==this.option("scrolling.legacyMode"))this._partialUpdateFixedTable(e),this._isFixedTableRendering=!1;else{var o=r?.columnIndices;this._correctColumnIndicesForFixedColumns(e,r),n=this._createTable(e),this._renderRows(n,se({},t,{columns:e})),Qt(this._updateContent(n,r)).done(()=>{this._isFixedTableRendering=!1}),o&&(r.columnIndices=o)}}else this._fixedTableElement&&this._fixedTableElement.parent().remove(),this._fixedTableElement=null;return i},_renderRow:function(t,n){var e,i=n.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&i&&i.length){e=0;var r=n.row.cells||[];i=i.slice(),n.row.cells=i;for(var o=0;o<r.length;o++)r[o].column&&r[o].column.command===gb?e=(r[o].column.colspan||1)-1:i[o+e]=r[o]}},_createCell:function(t){var a,s,l,n=this,e=t.column,i=e&&e.command,r=t.rowType,o=n.callBase.apply(n,arguments);(n._isFixedTableRendering||"filter"===r)&&(s=(a=n.getFixedColumns())[(l=r0(a))-1]),n._isFixedTableRendering?i===gb&&(o.addClass(HZ).toggleClass(PPe,0===l||s&&"expand"===s.command).toggleClass(ZKt,a.length&&l===a.length-1),"freeSpace"!==r&&vn.setEmptyText(o)):"filter"===r&&o.toggleClass(PPe,t.columnIndex===l);var u=n.option("rowAlternationEnabled")&&t.isAltRow,f="multiple"===n.option("selection.mode")&&0===t.columnIndex&&"header"===t.rowType;return Ro.mozilla&&t.column.fixed&&"group"!==t.rowType&&!u&&!f&&o.addClass(LPe),o},_wrapTableInScrollContainer:function(){var t=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&t.addClass(this.addWidgetPrefix(Gk)),t},_renderCellContent:function(t,n){var e,i=n.column,r=this._isFixedTableRendering,o="group"===n.rowType&&Z(i.groupIndex);if(r&&o&&!i.command&&!i.groupCellTemplate&&t.css("pointerEvents","none"),!r&&this._isFixedColumns){if(e=i.fixed||i.command&&!1!==i.fixed,o&&(e=!1,n.row.summaryCells&&n.row.summaryCells.length)){var a=this._columnsController.getVisibleColumns(),s=this._getAlignByColumnCellCount?this._getAlignByColumnCellCount(i.colspan,{columns:a,row:n.row,isFixed:!0}):0;if(s>0){var l=r0(this._columnsController.getFixedColumns());e=a.length-s<l}}if(e){if(i.command&&"buttons"!==i.type||"group"===n.rowType)return void t.html("&nbsp;").addClass(i.cssClass);t.addClass("dx-hidden-cell")}}i.command!==gb&&this.callBase.apply(this,arguments)},_getCellElementsCore:function(t){var n=this.callBase.apply(this,arguments),e=n.parent().hasClass(BPe),i="columnHeadersView"===this.name?t:void 0;if(this._fixedTableElement&&n){var r=this.getFixedColumns(i),o=this._getRowElements(this._fixedTableElement).eq(t).children("td");we(o,(a,s)=>{if(e)n[a]&&"hidden"!==s.style.visibility&&(n[a]=s);else{var l=r[a];if(l)if(l.command===gb)o.eq(a).hasClass(YKt)&&(n[a]=s||n[a]);else{var u=this._columnsController.getVisibleIndexByColumn(l,i);n[u]=s||n[u]}}})}return n},getColumnWidths:function(){var t,n=this.callBase(),e=this.getFixedColumns();return this._fixedTableElement&&n.length&&(t=this.callBase(this._fixedTableElement)),NPe(e,n,t)},getTableElement:function(){return this._isFixedTableRendering?this._fixedTableElement:this.callBase()},setTableElement:function(t){this._isFixedTableRendering?this._fixedTableElement=t.addClass(HZ):this.callBase(t)},getColumns:function(t,n){return n=n||this.getTableElement(),this._isFixedTableRendering||n&&n.closest("table").parent("."+this.addWidgetPrefix(Gk)).length?this.getFixedColumns(t):this.callBase(t,n)},getRowIndex:function(t){var n=this._fixedTableElement;return n&&n.find(t).length?this._getRowElements(n).index(t):this.callBase(t)},getTableElements:function(){var t=this.callBase.apply(this,arguments);return this._fixedTableElement&&(t=U([t.get(0),this._fixedTableElement.get(0)])),t},getFixedColumns:function(t){return this._columnsController.getFixedColumns(t)},getFixedColumnsOffset:function(){var n,t={left:0,right:0};if(this._fixedTableElement){var e=(n=this.getTransparentColumnElement()).position();t={left:e.left,right:ii(this.element(),!0)-(ii(n,!0)+e.left)}}return t},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find("."+HZ).first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(t){var n,e=this._columnsController.getVisibleColumns(),i=t.widths,r=i&&i.length&&Z(e[0].visibleWidth),o=t.optionNames,a=o&&o.width;if(this.callBase.apply(this,arguments),this._fixedTableElement){var l=i&&i.some(function(u){return"auto"===u});l&&(!r||!this.isScrollbarVisible(!0))&&(n=e),this.callBase(se({},t,{$tableElement:this._fixedTableElement,columns:n,fixed:!0}))}(r||a&&this.option("wordWrapEnabled"))&&this.synchronizeRows()},_createColGroup:function(t){if(this._isFixedTableRendering&&!this.option("columnAutoWidth")){var n=this._columnsController.getVisibleColumns();n.filter(function(i){return!i.width}).length&&(t=n)}return this.callBase(t)},_getClientHeight:function(t){var n=t.getBoundingClientRect&&Mi(t);return n&&n.height?n.height:t.clientHeight},synchronizeRows:function(){var e,i,r,o,t=[],n=[];if(this._isFixedColumns&&this._tableElement&&this._fixedTableElement){var a=this._getClientHeight(this._tableElement.get(0)),s=this._getClientHeight(this._fixedTableElement.get(0));if(i=this._getRowElements(this._tableElement),r=this._getRowElements(this._fixedTableElement),o=this._findContentElement(),a!==s){for(o&&o.css("height",a),i.css("height",""),r.css("height",""),e=0;e<i.length;e++)t.push(this._getClientHeight(i.get(e))),n.push(this._getClientHeight(r.get(e)));for(e=0;e<i.length;e++){var l=t[e],u=n[e];l>u?r.eq(e).css("height",l):l<u&&i.eq(e).css("height",u)}o&&o.css("height","")}}},setScrollerSpacing:function(t){var n=this.option("rtlEnabled");this.callBase(t),this.element().children("."+this.addWidgetPrefix(Gk)).css({paddingLeft:n?t:"",paddingRight:n?"":t})}},QKt=se({},zZ,{_getRowVisibleColumns:function(t){return this._isFixedTableRendering?this.getFixedColumns(t):this.callBase(t)},getContextMenuItems:function(t){var n=t.column,e=this.option("columnFixing"),i=this.callBase(t);if(t.row&&"header"===t.row.rowType&&!0===e.enabled&&n&&n.allowFixing){var r=o=>{switch(o.itemData.value){case"none":this._columnsController.columnOption(n.index,"fixed",!1);break;case"left":this._columnsController.columnOption(n.index,{fixed:!0,fixedPosition:"left"});break;case"right":this._columnsController.columnOption(n.index,{fixed:!0,fixedPosition:"right"})}};(i=i||[]).push({text:e.texts.fix,beginGroup:!0,items:[{text:e.texts.leftPosition,value:"left",disabled:n.fixed&&(!n.fixedPosition||"left"===n.fixedPosition),onItemClick:r},{text:e.texts.rightPosition,value:"right",disabled:n.fixed&&"right"===n.fixedPosition,onItemClick:r}]},{text:e.texts.unfix,value:"none",disabled:!n.fixed,onItemClick:r})}return i},getFixedColumnElements:function(t){if(Z(t))return this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(t).children();var n=this.getColumnElements(),e=this.getTransparentColumnElement();if(n&&e&&e.length){var i=r0(this.getFixedColumns());n.splice(i,e.get(0).colSpan,e.get(0))}return n},getColumnWidths:function(){var t,n=this.callBase(),e=this.getFixedColumnElements(),i=this.getFixedColumns();return this._fixedTableElement&&(t=e&&e.length?this._getWidths(e):this.callBase(this._fixedTableElement)),NPe(i,n,t)}}),e$t=se({},zZ,{_detachHoverEvents:function(){this._fixedTableElement&&Se.off(this._fixedTableElement,"mouseover mouseout",".dx-data-row"),this._tableElement&&Se.off(this._tableElement,"mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var t=this,n=function(e){Se.on(e,"mouseover mouseout",".dx-data-row",t.createAction(function(i){var r=i.event,o=t.getRowIndex(U(r.target).closest(".dx-row")),a="mouseover"===r.type;o>=0&&(t._tableElement&&t._getRowElements(t._tableElement).eq(o).toggleClass(RPe,a),t._fixedTableElement&&t._getRowElements(t._fixedTableElement).eq(o).toggleClass(RPe,a))}))};t._fixedTableElement&&t._tableElement&&(n(t._fixedTableElement),n(t._tableElement))},_findContentElement:function(){var n,e,t=this,i=t.addWidgetPrefix("content"),r=t.element(),o=Ro.mozilla?60:0;if(r&&t._isFixedTableRendering){n=r.children("."+i);var a=t.getScrollable();return!n.length&&a&&(n=U("<div>").addClass(i),Se.on(n,"scroll",function(s){var l=s.target;clearTimeout(t._fixedScrollTimeout),t._fixedScrollTimeout=setTimeout(function(){e=U(l).scrollTop(),a.scrollTo({y:e})},o)}),Se.on(n,p_,function(s){var l=U(s.target).closest(".dx-scrollable"),u=!1;if(a&&a.$element().is(l))u=!0;else{var f=l.length&&xd.getInstance(l.get(0)),S=f&&f.scrollHeight()-f.clientHeight()>0;u=f&&!S}if(u&&(e=a.scrollTop(),a.scrollTo({y:e-s.delta}),a.scrollTop()>0&&a.scrollTop()+a.clientHeight()<a.scrollHeight()+t.getScrollbarWidth()))return!1}),n.appendTo(r)),n}return t.callBase()},_updateScrollable:function(){this.callBase();var t=this.getScrollable();if(null==t||!t._disposed){var n=t&&t.scrollOffset().top;this._updateFixedTablePosition(n)}},_renderContent:function(t,n){return this._isFixedTableRendering?t.empty().addClass(this.addWidgetPrefix("content")+" "+this.addWidgetPrefix(Gk)).append(n):this.callBase(t,n)},_getGroupCellOptions:function(t){return this.callBase(this._isFixedTableRendering?se({},t,{columns:this._columnsController.getVisibleColumns()}):t)},_renderGroupedCells:function(t,n){return this.callBase(t,se({},n,{columns:this._columnsController.getVisibleColumns()}))},_renderGroupSummaryCells:function(t,n){this.callBase(t,this._isFixedTableRendering?se({},n,{columns:this._columnsController.getVisibleColumns()}):n)},_hasAlignByColumnSummaryItems:function(t,n){var e=this.callBase.apply(this,arguments),i=n.columns[t];return n.isFixed?i.fixed&&(e||"right"===i.fixedPosition):e&&(!this._isFixedColumns||!i.fixed)},_renderGroupSummaryCellsCore:function(t,n,e,i){var r;if(this._isFixedTableRendering){n.isFixed=!0,r=this._getAlignByColumnCellCount(e,n),n.isFixed=!1;var o=n.columns.length-r;n=se({},n,{columns:this.getFixedColumns()});var a=r0(n.columns);o<a?(r-=n.columns[a].colspan-1||0,e-=n.columns[a].colspan-1||0):i>0&&t.css("visibility","hidden"),i=r}this.callBase(t,n,e,i)},_getSummaryCellIndex:function(t,n){if(this._isFixedTableRendering){var e=r0(n);return t>e&&(t+=n[e].colspan-1),t}return this.callBase.apply(this,arguments)},_renderCore:function(t){this._detachHoverEvents();var n=this.callBase(t),e=this._isFixedColumns;return this.element().toggleClass("dx-fixed-columns",e),this.option("hoverStateEnabled")&&e&&this._attachHoverEvents(),n},setRowsOpacity:function(t,n){this.callBase(t,n);var e=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(e,this.getFixedColumns(),t,n)},optionChanged:function(t){this.callBase(t),"hoverStateEnabled"===t.name&&this._isFixedColumns&&(t.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(t){var n=this._fixedTableElement,e=0;if(n&&t.is("td")&&t.closest(n).length){var i=this.getFixedColumns();return we(i,function(r,o){if(r===t[0].cellIndex)return!1;o.colspan?e+=o.colspan:e++}),e}return this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(t,n){if(this._fixedTableElement&&this._tableElement){var e,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(t),n&&i&&(e=i.focus())&&i.focus(e)}},setScrollerSpacing:function(t,n){var e={marginBottom:0},i=this.element().children("."+this.addWidgetPrefix(Gk));i.length&&this._fixedTableElement&&(i.css(e),this._fixedTableElement.css(e),e[this.option("rtlEnabled")?"marginLeft":"marginRight"]=t,e.marginBottom=n,(this._scrollable&&this._scrollable.option("useNative")?i:this._fixedTableElement).css(e))},_getElasticScrollTop:function(t){var n=0;if(t.scrollOffset.top<0)n=-t.scrollOffset.top;else if(t.reachedBottom){var e=U(t.component.content()),i=U(t.component.container());n=Math.max(e.get(0).clientHeight-i.get(0).clientHeight,0)-t.scrollOffset.top}return Math.floor(n)},_applyElasticScrolling:function(t){if(this._fixedTableElement){var n=this._getElasticScrollTop(t);0!==Math.ceil(n)?kr(this._fixedTableElement,{top:n}):this._fixedTableElement.css("transform","")}},_handleScroll:function(t){this._updateFixedTablePosition(t.scrollOffset.top,!0),this._applyElasticScrolling(t),this.callBase(t)},_updateContentPosition:function(t){this.callBase.apply(this,arguments),t||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(t){this._isFixedTableRendering||this.callBase(t)},_scrollToElement:function(t){this.callBase(t,this.getFixedColumnsOffset())},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),VPe={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:ye.format("dxDataGrid-columnFixingFix"),unfix:ye.format("dxDataGrid-columnFixingUnfix"),leftPosition:ye.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:ye.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:QKt,rowsView:e$t,footerView:zZ},controllers:{draggingHeader:{_generatePointsByColumns:function(t){var r,o,a,s,l,n=t.columns,e=t.targetDraggingPanel;if(e&&"headers"===e.getName()&&e.isFixedColumns()&&t.sourceColumn.fixed){t.rowIndex||(t.columnElements=e.getFixedColumnElements(0)),t.columns=e.getFixedColumns(t.rowIndex);var i=this.callBase(t);return r=n,a=i,s=r0(o=t.columns),l=r.length-o.length,we(a,function(u,f){f.index>s&&(f.columnIndex+=l,f.index+=l)}),i}return this.callBase(t)},_pointCreated:function(t,n,e,i){var r=this.callBase.apply(this,arguments),o=n[t.columnIndex],a=this._columnHeadersView.getTransparentColumnElement();if(!r&&"headers"===e&&a&&a.length){var s=Mi(a.get(0));return i&&i.fixed?"right"===i.fixedPosition?t.x<s.right:t.x>s.left:!(!o||!o.fixed||"right"===o.fixedPosition)||t.x<s.left||t.x>s.right}return r}},columnsResizer:{_generatePointsByColumns:function(){var t=this,n=t._columnsController,e=n&&t._columnsController.getVisibleColumns(),i=n&&t._columnsController.getFixedColumns(),r=r0(i),o=e.length-i.length,a=t._columnHeadersView.getFixedColumnElements();t.callBase(),a&&a.length>0&&(t._pointsByFixedColumns=vn.getPointsByColumns(a,function(s){return s.index>r&&(s.columnIndex+=o,s.index+=o),t._pointCreated(s,e.length,e)}))},_getTargetPoint:function(t,n,e){var i=this._columnHeadersView.getTransparentColumnElement();if(i&&i.length){var r=Mi(i.get(0));if(n<=r.left||n>=r.right)return this.callBase(this._pointsByFixedColumns,n,e)}return this.callBase(t,n,e)}}}}};oi.registerModule("columnFixing",VPe);var HPe="columnHeadersView",UZ=[HPe,"rowsView","footerView"],o0="adaptiveHidden",fb="detailAdaptive",WZ="dx-field-item-content",jk="hidden-column",UPe="dx-command-adaptive",U9="dx-command-adaptive-hidden",a$t="dx-adaptive-detail-row",GZ="dx-adaptive-item-text",W9="adaptive",WPe="dx-group-cell",GPe="dxDataGrid-ariaAdaptiveExpand",f$t="scrolling.legacyMode";function G9(t,n){return t._columnsController.getColumnId(n)}function _$t(t,n){var e,i=U(t),r=n.component.getController("adaptiveColumns");"data"===n.rowType?(e=U("<span>").addClass(r.addWidgetPrefix("adaptive-more")),Se.on(e,kt(Vi,"dxDataGridAdaptivity"),r.createAction(function(){r.toggleExpandAdaptiveDetailRow(n.key)})),e.appendTo(i)):vn.setEmptyText(i)}function KZ(t){var n,e=null===(n=t.data)||void 0===n?void 0:n.$nextCell;Se.off(e,"focus",KZ),Se.trigger(e,"dxclick")}var v$t={_isRowEditMode:function(){return"row"===this._getEditMode()},_isItemModified:function(t,n){var e=this._columnsController.getVisibleIndex(t.column.index),i=this._dataController.getRowIndexByKey(n.key),r=this._dataController.items()[i+1];return r&&r.modifiedValues&&Z(r.modifiedValues[e])},_renderFormViewTemplate:function(t,n,e){var i=this,r=t.column,o=i.createAction(function(){i._editingController.isEditing()&&Se.trigger(e,Vi)}),a=n.row.data,s=r.calculateCellValue(a),l=vn.getDisplayValue(r,s,a,n.rowType),u=vn.formatValue(l,r),f=this._editingController.isCellOrBatchEditMode(),S=i._rowsView;if(r.allowEditing&&i.getController("keyboardNavigation").isKeyboardEnabled()&&(e.attr("tabIndex",i.option("tabIndex")),f&&(Se.off(e,"focus",o),Se.on(e,"focus",o))),r.cellTemplate){var T=se({},n,{value:s,displayValue:l,text:u,column:r});S.renderTemplate(e,r.cellTemplate,T,k2(e)).done(()=>{S._cellPrepared(e,n)})}else{var R=e.get(0);r.encodeHtml?R.textContent=u:R.innerHTML=u,e.addClass(GZ),(!Z(u)||""===u)&&e.html("&nbsp;"),i._isRowEditMode()||i._isItemModified(t,n)&&e.addClass("dx-item-modified"),S._cellPrepared(e,n)}},_getTemplate:function(t,n){var e=this,i=t.column,r=this.getController("editing");return function(o,a){var s=U(a),l=e._columnsController.getVisibleIndex(i.index),u=se({},n),f=function(){var S=e._isItemEdited(t);u.value=n.row.values[l],S||i.showEditorAlways?r.renderFormEditTemplate(u,t,o,s,!S):(u.column=i,u.columnIndex=l,e._renderFormViewTemplate(t,u,s))};f(),u.watch&&u.watch(function(){return{isItemEdited:e._isItemEdited(t),value:n.row.values[l]}},function(){s.contents().remove(),s.removeClass(GZ),f()})}},_isVisibleColumnsValid:function(t){return!(t<2||t.length-function(){for(var n=0,e=0;e<t.length;e++)t[e].command&&n++;return n}()<=1)},_calculatePercentWidths:function(t,n){var e=this,i=0;return n.forEach(function(r,o){t[o]!==o0&&(i+=e._getItemPercentWidth(r))}),i},_isPercentWidth:function(t){return Pn(t)&&"%"===t.slice(-1)},_isColumnHidden:function(t){return this._hiddenColumns.filter(function(n){return n.index===t.index}).length>0},_getAverageColumnsWidth:function(t,n,e){var i=this,r=0,o=0;return n.forEach(function(a){if(!i._isColumnHidden(a)){var s=a.width;Z(s)&&!isNaN(parseFloat(s))?r+=i._isPercentWidth(s)?i._calculatePercentWidth({visibleIndex:a.visibleIndex,columnsCount:n.length,columnsCanFit:e,bestFitWidth:a.bestFitWidth,columnWidth:s,containerWidth:t}):parseFloat(s):o++}}),(t-r)/o},_calculateColumnWidth:function(t,n,e,i){var l,r=G9(this,t),o=this._columnsController.columnOption(r,"width"),a=this._columnsController.columnOption(r,"bestFitWidth"),s=e.length;if(o&&"auto"!==o){if(!this._isPercentWidth(o))return parseFloat(o);l=this._calculatePercentWidth({visibleIndex:t.visibleIndex,columnsCount:s,columnsCanFit:i,bestFitWidth:a,columnWidth:o,containerWidth:n})}else l=this.option("columnAutoWidth")||t.command?a:this._getAverageColumnsWidth(n,e,i);return l},_calculatePercentWidth:function(t){var n=t.visibleIndex<t.columnsCount-1&&t.columnsCanFit,e=t.containerWidth*parseFloat(t.columnWidth)/100,i=t.columnsCanFit&&e<t.bestFitWidth?t.bestFitWidth:e;return n?t.containerWidth*parseFloat(t.columnWidth)/100:i},_getNotTruncatedColumnWidth:function(t,n,e,i){var r=G9(this,t),o=this._columnsController.columnOption(r,"width"),a=this._columnsController.columnOption(r,"bestFitWidth");if(o&&"auto"!==o&&!this._isPercentWidth(o))return parseFloat(o);var s=this._calculateColumnWidth(t,n,e,i);return s<a?null:s},_getItemPercentWidth:function(t){var n=0;return t.width&&this._isPercentWidth(t.width)&&(n=parseFloat(t.width)),n},_getCommandColumnsWidth:function(){var t=this,n=t._columnsController.getVisibleColumns(),e=0;return we(n,function(i,r){(r.index<0||r.command)&&(e+=t._columnsController.columnOption(G9(t,r),"bestFitWidth")||0)}),e},_isItemEdited:function(t){if(this.isFormOrPopupEditMode())return!1;if(!this._isRowEditMode()){var e=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=this._columnsController.getVisibleIndex(t.column.index);return this._editingController.isEditCell(e,i)}var n=this.option("editing.editRowKey");return!!Tr(n,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(t){var n=[];return we(t,function(e,i){n.push({column:i,name:i.name,dataField:i.dataField,visibleIndex:i.visibleIndex})}),n},_getAdaptiveColumnVisibleIndex:function(t){for(var n=0;n<t.length;n++)if(t[n].command===W9)return n},_hideAdaptiveColumn:function(t,n){var e=this._getAdaptiveColumnVisibleIndex(n);Z(e)&&(t[e]=o0,this._hideVisibleColumn({isCommandColumn:!0,visibleIndex:e}))},_showHiddenCellsInView:function(t){var{$cells:n,isCommandColumn:e}=t,i=this.addWidgetPrefix(jk);e?(i=U9,n.attr({tabIndex:0,"aria-hidden":null}).removeClass(i)):n.removeClass(i)},_showHiddenColumns:function(){for(var t=0;t<UZ.length;t++){var n=this.getView(UZ[t]);if(n&&n.isVisible()&&n.element()){var e=n.name,i=n.element().find("."+U9);this._showHiddenCellsInView({viewName:e,$cells:i,isCommandColumn:!0});var r=n.element().find("."+this.addWidgetPrefix(jk));this._showHiddenCellsInView({viewName:e,$cells:r})}}},_isCellValid:function(t){return t&&t.length&&!t.hasClass("dx-master-detail-cell")&&!t.hasClass(WPe)},_hideVisibleColumn:function(t){var{isCommandColumn:n,visibleIndex:e}=t,i=this;UZ.forEach(function(r){var o=i.getView(r);o&&i._hideVisibleColumnInView({view:o,isCommandColumn:n,visibleIndex:e})})},_hideVisibleColumnInView:function(t){var o,{view:n,isCommandColumn:e,visibleIndex:i}=t,r=n.name,a=this._columnsController.getVisibleColumns()[i],s=this._editingController&&this._editingController.getEditFormRowIndex();if(n&&n.isVisible()&&a)for(var l=n.getRowsCount(),u=n._getRowElements(),f=0;f<l;f++)if(f!==s||"rowsView"!==r||"popup"===this.option("editing.mode")){var T=r===HPe?this._columnsController.getVisibleIndex(a.index,f):i;if(T>=0){var R=u.eq(f);o=this._findCellElementInRow(R,T),this._isCellValid(o)&&this._hideVisibleCellInView({viewName:r,isCommandColumn:e,$cell:o})}}},_findCellElementInRow(t,n){var e=t.children(),i=n,r=!1;if(t.hasClass("dx-group-row")){var o=t.find(".".concat(WPe)),a=o.attr("colspan");if(o.length&&Z(a)){var s=parseInt(a);n>o.index()+s-1?i=n-s+1:r=!0}}return r?void 0:e.eq(i)},_hideVisibleCellInView:function(t){var{$cell:n,isCommandColumn:e}=t,i=e?U9:this.addWidgetPrefix(jk);n.attr({tabIndex:-1,"aria-hidden":!0}).addClass(i)},_getEditMode:function(){return this._editingController.getEditMode()},isFormOrPopupEditMode:function(){var t=this._getEditMode();return"form"===t||"popup"===t},hideRedundantColumns:function(t,n,e){if(this._hiddenColumns=[],this._isVisibleColumnsValid(n)&&e.length){var u,f,S,i=0,r=this.component.$element(),o=wn(r)-this._getCommandColumnsWidth(),a=function(){return n.filter(fe=>!fe.command&&0===this._hiddenColumns.filter(Te=>Te.index===fe.index).length)}.bind(this),s=a(),l=s.length;do{S=!1,i=0;var T=this._calculatePercentWidths(t,n),R=T<100&&0!==T;for(u=0;u<n.length;u++){var L=n[u],z=this._getNotTruncatedColumnWidth(L,o,s,R),j=G9(this,L),Y=this._columnsController.columnOption(j,"width"),ie=this._columnsController.columnOption(j,"minWidth"),te=this._columnsController.columnOption(j,"bestFitWidth");if(t[u]!==o0){if(!z&&!L.command&&!L.fixed){S=!0;break}(!Y||"auto"===Y)&&(z=Math.max(te||0,ie||0)),(L.command!==W9||f)&&(i+=z)}else f=!0}if(S=S||i>wn(r)){var re=e.pop(),he=this._columnsController.getVisibleIndex(re.index);o+=this._calculateColumnWidth(re,o,s,R),this._hideVisibleColumn({visibleIndex:he}),t[he]=o0,this._hiddenColumns.push(re),s=a()}}while(S&&s.length>1&&e.length);l===s.length&&this._hideAdaptiveColumn(t,n)}else this._hideAdaptiveColumn(t,n)},getAdaptiveDetailItems:function(){return this._$itemContents},getItemContentByColumnIndex:function(t){for(var n,e=0;e<this._$itemContents.length;e++){var i=(n=this._$itemContents.eq(e)).data("dx-form-item");if(i&&i.column&&this._columnsController.getVisibleIndex(i.column.index)===t)return n}},toggleExpandAdaptiveDetailRow:function(t,n){this.isFormOrPopupEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(t,n)},createFormByHiddenColumns:function(t,n){var e=this,i=U(t),r={items:e._getFormItemsByHiddenColumns(e._hiddenColumns),formID:"dx-"+new Ni},o=io()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:r}),e._$itemContents=null,e._form=e._createComponent(U("<div>").appendTo(i),vv,se(o,r,{customizeItem:function(a){var s=a.column||e._columnsController.columnOption(a.name||a.dataField);s&&(a.label=a.label||{},a.label.text=a.label.text||s.caption,a.column=s,a.template=e._getTemplate(a,n,e.updateForm.bind(e))),r.customizeItem&&r.customizeItem.call(this,a)},onContentReady:function(a){r.onContentReady&&r.onContentReady.call(this,a),e._$itemContents=i.find("."+WZ)}}))},hasAdaptiveDetailRowExpanded:function(){return Z(this._dataController.adaptiveExpandedKey())},updateForm:function(t){this.hasAdaptiveDetailRowExpanded()&&this._form&&Z(this._form._contentReadyAction)&&(t&&t.length?this._form.option("items",this._getFormItemsByHiddenColumns(t)):this._form.repaint())},updateHidingQueue:function(t){var e,i,n=t.filter(function(o){return o.visible&&!o.type&&!o.fixed&&!(Z(o.groupIndex)&&o.groupIndex>=0)});if(this._hidingColumnsQueue=[],this.option("allowColumnResizing")&&"widget"===this.option("columnResizingMode"))return this._hidingColumnsQueue;for(i=0;i<n.length;i++)Z(n[i].hidingPriority)&&n[i].hidingPriority>=0&&(e=!0,this._hidingColumnsQueue[n[i].hidingPriority]=n[i]);if(e)this._hidingColumnsQueue.reverse();else if(this.option("columnHidingEnabled"))for(i=0;i<n.length;i++){var r=this._columnsController.getVisibleIndex(n[i].index);this._hidingColumnsQueue[r]=n[i]}return this._hidingColumnsQueue=this._hidingColumnsQueue.filter(Object),this._hidingColumnsQueue},getHiddenColumns:function(){return this._hiddenColumns},hasHiddenColumns:function(){return this._hiddenColumns.length>0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var t=this;t._columnsController=t.getController("columns"),t._dataController=t.getController("data"),t._rowsView=t.getView("rowsView"),t._columnsController.addCommandColumn({type:W9,command:W9,visible:!0,adaptiveHidden:!0,cssClass:UPe,alignment:"center",width:"auto",cellTemplate:_$t,fixedPosition:"right"}),t._columnsController.columnsChanged.add(function(){var n=!!t.updateHidingQueue(t._columnsController.getColumns()).length;t._columnsController.columnOption("command:adaptive","adaptiveHidden",!n,!0)}),t._editingController=t.getController("editing"),t._hidingColumnsQueue=[],t._hiddenColumns=[],t.createAction("onAdaptiveDetailRowPreparing"),t.callBase()},optionChanged:function(t){"columnHidingEnabled"===t.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!t.value),this.callBase(t)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(t){return this._dataController.adaptiveExpandedKey()&&Tr(this._dataController.adaptiveExpandedKey(),t)},expandAdaptiveDetailRow:function(t){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(t)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()},updateCommandAdaptiveAriaLabel:function(t,n){var e=this._dataController.getRowIndexByKey(t);if(-1!==e){var i=U(this.component.getRowElement(e));this.setCommandAdaptiveAriaLabel(i,n)}},setCommandAdaptiveAriaLabel:function(t,n){t.find(".dx-command-adaptive").attr("aria-label",ye.format(n))}},jPe={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:Bo.ViewController.inherit(v$t)},extenders:{views:{rowsView:{_getCellTemplate:function(t){var n=this;return t.rowType===fb&&"detail"===t.column.command?function(i,r){n._adaptiveColumnsController.createFormByHiddenColumns(U(i),r)}:n.callBase(t)},_createRow:function(t){var n=this.callBase.apply(this,arguments);return t&&t.rowType===fb&&t.key===this._dataController.adaptiveExpandedKey()&&n.addClass(a$t),n},_renderCells:function(t,n){this.callBase(t,n);var e=this._adaptiveColumnsController,i=e.getHidingColumnsQueue().length,r=e.getHiddenColumns().length;i&&!r&&function m$t(t){return t.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}(t).last().addClass("dx-last-data-cell"),"data"===n.row.rowType&&e.setCommandAdaptiveAriaLabel(t,GPe)},_getColumnIndexByElementCore:function(t){var n=t.closest("."+WZ);if(n.length&&n.closest(this.component.$element()).length){var e=n.length?n.first().data("dx-form-item"):null;return e&&e.column&&this._columnsController.getVisibleIndex(e.column.index)}return this.callBase(t)},_cellPrepared:function(t,n){this.callBase.apply(this,arguments),n.row.rowType!==fb&&n.column.visibleWidth===o0&&t.addClass(this.addWidgetPrefix(jk))},getCell:function(t,n){var e=this._dataController.items()[t?.rowIndex];if(e?.rowType===fb){var i=this._adaptiveColumnsController.getAdaptiveDetailItems();return this.callBase(t,n,i)}return this.callBase.apply(this,arguments)},_getCellElement:function(t,n){var e=this._dataController.items()[t];return e&&e.rowType===fb?this._adaptiveColumnsController.getItemContentByColumnIndex(n):this.callBase.apply(this,arguments)},getContextMenuItems:function(t){if(t.row&&"detailAdaptive"===t.row.rowType){var n=this.component.getView("columnHeadersView"),e=U(t.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return t.column=e?e.column:t.column,n.getContextMenuItems&&n.getContextMenuItems(t)}return this.callBase&&this.callBase(t)},isClickableElement:function(t){return!!this.callBase&&this.callBase(t)||!!t.closest("."+UPe).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{export:{_updateColumnWidth:function(t,n){this.callBase(t,t.visibleWidth===o0?t.bestFitWidth:n)}},columnsResizer:{_pointCreated:function(t,n,e){var i=this.callBase(t,n,e),r=e[t.columnIndex]||{},o=this._getNextColumnIndex(t.columnIndex);return i||r.visibleWidth===o0||o!==t.columnIndex+1&&(e[o]||{}).command},_getNextColumnIndex:function(t){for(var n=this._columnsController.getVisibleColumns(),e=this.callBase(t);n[e]&&n[e].visibleWidth===o0;)e++;return e}},draggingHeader:{_pointCreated:function(t,n,e,i){return this.callBase(t,n,e,i)||(n[t.columnIndex-1]||{}).visibleWidth===o0}},editing:{_isRowEditMode:function(){return"row"===this.getEditMode()},_getFormEditItemTemplate:function(t,n){return"row"!==this.getEditMode()&&"detailAdaptive"===t.rowType?(t.columnIndex=this._columnsController.getVisibleIndex(n.index),this.getColumnTemplate(t)):this.callBase(t,n)},_closeEditItem:function(t){var n=t.closest("."+WZ),e=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=n.length?n.first().data("dx-form-item"):null,r=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(e,r)||this.callBase(t)},_beforeUpdateItems:function(t,n){if(!this._adaptiveController.isFormOrPopupEditMode()&&this._adaptiveController.hasHiddenColumns()){var e=this._dataController.items(),i=e[n],r=vn.getIndexByKey(this._dataController.adaptiveExpandedKey(),e);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),r>=0&&t.push(r+1),t.push(n+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(t){this.callBase.apply(this,arguments),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(t,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){this.callBase.apply(this,arguments);var t=new et;return this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()?Qt(this.getController("validating").validate(!0)).done(n=>{n&&this._cancelEditAdaptiveDetailRow(),t.resolve()}):t.resolve(),t.promise()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(t){var n=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(t.key)&&n.push(t.rowType===fb?t.rowIndex-1:t.rowIndex+1),n},_beforeCloseEditCellInBatchMode:function(t){var n=this._dataController._adaptiveExpandedKey;if(n){var e=vn.getIndexByKey(n,this._dataController.items());e>-1&&t.unshift(e)}},editRow:function(t){this._adaptiveController.isFormOrPopupEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(t)},deleteRow:function(t){var n=this._dataController.getKeyByRowIndex(t);"batch"===this.getEditMode()&&this._adaptiveController.isAdaptiveDetailRowExpanded(n)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(t)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_correctColumnWidths:function(t,n){var e=this._adaptiveColumnsController,i=e.getHiddenColumns(),r=e.updateHidingQueue(this._columnsController.getColumns());e.hideRedundantColumns(t,n,r);var o=e.getHiddenColumns();return e.hasAdaptiveDetailRowExpanded()&&i.length!==o.length&&e.updateForm(o),!o.length&&e.collapseAdaptiveDetailRow(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(t){t&&this._adaptiveColumnsController._showHiddenColumns(),this.callBase(t)},_needStretch:function(){var t=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||t.getHidingColumnsQueue().length||t.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(t,n){var e=n.changeType;if(t=this.callBase.apply(this,arguments),"loadingAll"===e||!Z(this._adaptiveExpandedKey))return t;var i=vn.getIndexByKey(this._adaptiveExpandedKey,t),r=!1===this.option(f$t);if(i>=0){var o=t[i];t.splice(i+1,0,{visible:!0,rowType:fb,key:o.key,data:o.data,node:o.node,modifiedValues:o.modifiedValues,isNewRow:o.isNewRow,values:o.values})}else"refresh"===e&&(!r||!n.repaintChangesOnly)&&(this._adaptiveExpandedKey=void 0);return t},_getRowIndicesForExpand:function(t){var n=this.callBase.apply(this,arguments);if(this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(t)){var e=n[n.length-1];n.push(e+1)}return n},adaptiveExpandedKey:function(t){if(!Z(t))return this._adaptiveExpandedKey;this._adaptiveExpandedKey=t},toggleExpandAdaptiveDetailRow:function(t,n){var e=vn.getIndexByKey(this._adaptiveExpandedKey,this._items),i=vn.getIndexByKey(t,this._items);e>=0&&e===i&&!n&&(t=void 0,i=-1);var r=this._adaptiveExpandedKey;this._adaptiveExpandedKey=t,e>=0&&e++,i>=0&&i++;var o=this.getRowIndexDelta();this.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[e-o,i-o]});var a=this.getController("adaptiveColumns");a.updateCommandAdaptiveAriaLabel(t,"dxDataGrid-ariaAdaptiveCollapse"),a.updateCommandAdaptiveAriaLabel(r,GPe)},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix("revert-tooltip")}},columns:{_isColumnVisible:function(t){return this.callBase(t)&&!t.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(t){return this.callBase.apply(this,arguments)&&!t.hasClass(this.addWidgetPrefix(jk))&&!t.hasClass(U9)},_processNextCellInMasterDetail:function(t,n){this.callBase(t);var e=this._editingController.isCellOrBatchEditMode();this._editingController.isEditing()&&t&&e&&!this._isInsideEditForm(t)&&(Se.off(t,"focus",KZ),Se.on(t,"focus",{$nextCell:t},KZ),Se.trigger(n,"focus"))},_isCellElement:function(t){return this.callBase.apply(this,arguments)||t.hasClass(GZ)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}};function j9(t,n,e,i,r,o){o=o||[],(i=i||[])[e=e||0]=i[e]||0;var u,a=t[e],l=0;if(a){for(u=o[e]+1||0;u<a.length;u++){var f=a[u],S=u+i[e],T=f.colspan||1;if(j9(t,n,e+(f.rowspan||1),i,T,o),i[e]+=T-1,l+=T,f.rowspan)for(var R=e+1;R<e+f.rowspan;R++)i[R]=i[R]||0,i[R]+=f.colspan||1;if(!1===n(f,S,e,u)||void 0!==r&&l>=r)break}o[e]=u}}function K9(t,n,e){var i=[];j9(t,function(o,a,s){var u,l=o,f=l.colspan||1,S=a+f-1>=n&&a<e;if(i[s]=i[s]||[],S)a<n?(u=f-(n-a),a=n):u=f,a+u>e&&(u=e-a),u!==f&&(l=se({},l,{colspan:u})),i[s].push(l);else if(a>e)return!1});for(var r=0;r<i.length;r++)i[r]=i[r]||[];return i}oi.registerModule("adaptivity",jPe);var b$t={_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(t){var n=this,e=this.getScrollable(),i=t.scrollOffset.left;n.callBase.apply(n,arguments),n.option("rtlEnabled")&&e&&(i=wn(e.$content())-wn(e.$element())-i),n._columnsController.setScrollPosition(i)}},w$t=function(){var t=function(e){return e.map(i=>i.visibleWidth||parseFloat(i.width)||50)},n={init:function(){var e=this;e.callBase.apply(this,arguments),e._beginPageIndex=null,e._endPageIndex=null,e._position=0,e._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(e){for(var i=this.getVisibleColumns(void 0,!0),r=t(i),o=0,a=0;a<r.length;a++){if(o>=e)return Math.floor(a/this.getColumnPageSize());o+=r[a]}return 0},getTotalWidth:function(){var e=this.option("width");return"number"==typeof e?e:this.getController("resizing")._lastWidth||ii(this.component.$element())},getEndPageIndex:function(e){var i=this.getVisibleColumns(void 0,!0),r=t(i),o=0;e+=this.getTotalWidth();for(var a=0;a<r.length;a++){if(o>=e)return Math.ceil(a/this.getColumnPageSize());o+=r[a]}return Math.ceil(r.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var e=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,virtualColumnsScrolling:!0,length:2}}),this._renderTime=new Date-e},getScrollingTimeout:function(){var e=this.option("scrolling.columnRenderingThreshold"),i=this.option("scrolling.renderAsync"),r=0;return(!Z(i)&&this._renderTime>e||i)&&(r=this.option("scrolling.timeout")),r},setScrollPosition:function(e){var i=this.getScrollingTimeout();i>0?(clearTimeout(this._changedTimeout),this._changedTimeout=setTimeout(()=>{this._setScrollPositionCore(e)},i)):this._setScrollPositionCore(e)},isVirtualMode:function(){return Rn()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(e){if(this.isVirtualMode()){var i=this.getBeginPageIndex(e),r=this.getEndPageIndex(e),o=e<this._position?this._beginPageIndex>i:this._endPageIndex<r;this._position=e,o&&(this._beginPageIndex=i,this._endPageIndex=r,this._fireColumnsChanged())}},getFixedColumns:function(e,i){var r=this.callBase(e);if(this.isVirtualMode()&&!i&&r.length){var o=r.map(a=>a.command).indexOf("transparent");return r[o].colspan=this.getVisibleColumns().length-this.callBase().length+1,r}return r},_compileVisibleColumns:function(e,i){var r;if(i||!this.isVirtualMode()||!this._shouldReturnVisibleColumns())return this.callBase(e);null!==(r=this._columns)&&void 0!==r&&r.length&&!Z(this._beginPageIndex)&&!Z(this._endPageIndex)&&(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var o=this._beginPageIndex,a=this._endPageIndex,s=e+"-"+o+"-"+a;if(this._virtualVisibleColumns[s])return this._virtualVisibleColumns[s];var l=this.callBase(),u=this.getRowCount(),f=this.getColumnPageSize(),S=o*f,T=a*f,R=this.getFixedColumns(void 0,!0),L=R.map(He=>He.command).indexOf("transparent"),z=R.length?L:0,j=l.slice(0,z),Y=l.slice(z,S),ie=t(Y).reduce((He,Ze)=>He+Ze,0);ie||(S=0);var te=R.length?R.length-L-1:0,re=l.slice(l.length-te),he=l.slice(T,l.length-te),fe=t(he).reduce((He,Ze)=>He+Ze,0);if(fe||(T=l.length),u>1&&"number"==typeof e){for(var Te=[],Re=0;Re<u;Re++)Te.push(this.callBase(Re));j=K9(Te,0,j.length)[e]||[],re=K9(Te,l.length-re.length,l.length)[e]||[],l=K9(Te,S,T)[e]||[]}else l=l.slice(S,T);return ie&&(l.unshift({command:"virtual",width:ie}),l=j.concat(l)),fe&&(l.push({command:"virtual",width:fe}),l=l.concat(re)),this._virtualVisibleColumns[s]=l,l},getColumnIndexOffset:function(){var e=0;if(this._beginPageIndex>0){var r=this.getFixedColumns().map(a=>a.command).indexOf("transparent"),o=r>=0?r:0;e=this._beginPageIndex*this.getColumnPageSize()-o-1}return e>0?e:0},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}};return n}(),KPe={defaultOptions:function(){return{scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}},extenders:{controllers:{columns:w$t},views:{columnHeadersView:{_renderCore:function(){var t=this.callBase.apply(this,arguments);return this._columnsController.isVirtualMode()&&this._updateScrollLeftPosition(),t}},rowsView:b$t}}};function $Pe(t,n){for(var e=f=>f||1,i=[],r=(t[0]||[]).reduce((f,S)=>f+e(S.colspan),0),o=(f=>{var S=0,T=0;return()=>{var R=f[S]||[],L=R[T++];return T>=R.length&&(S++,T=0),L&&(L.colspan=e(L.colspan),L.rowspan=e(L.rowspan)),L}})(t),a=(f,S,T)=>{if((i[f]=i[f]||[])[S]=T,T.colspan>1||T.rowspan>1){for(var L=se({},T,n),z=1;z<T.colspan;z++)a(f,S+z,L);for(var j=1;j<T.rowspan;j++)for(var Y=0;Y<T.colspan;Y++)a(f+j,S+Y,L)}},s=o(),l=0;s;){for(var u=0;u<r&&s;u++)i[l]&&i[l][u]||(a(l,u,s),u+=s.colspan-1,s=o());l++}return i}oi.registerModule("virtualColumns",KPe);var qPe="dx-dropdownbutton",YPe="dx-dropdownbutton-action",ZPe="dx-dropdownbutton-toggle",XPe=tr.inherit({_getDefaultOptions(){return se(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:void 0,selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:ye.format("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,text:"",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",wrapItemText:!1,useItemTextAsTitle:!0,grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference(){this.callBase(),se(this._optionsByReference,{selectedItem:!0})},_init(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._initDataSource(),this._compileKeyGetter(),this._compileDisplayGetter(),this._itemsToDataSource(this.option("items")),this._options.cache("buttonGroupOptions",this.option("buttonGroupOptions")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_initTemplates(){this._templateManager.addDefaultTemplates({content:new bg(t=>{var n=U(t.container),e=U("<div>").appendTo(n);this._list=this._createComponent(e,gC,this._listOptions()),this._list.registerKeyHandler("escape",this._escHandler.bind(this)),this._list.registerKeyHandler("tab",this._escHandler.bind(this)),this._list.registerKeyHandler("leftArrow",this._escHandler.bind(this)),this._list.registerKeyHandler("rightArrow",this._escHandler.bind(this))})}),this.callBase()},_itemsToDataSource:function(t){this._dataSource||(this._dataSource=new Fl({store:new cs({key:this._getKey(),data:t}),pageSize:0}))},_getKey:function(){var t,n=this.option("keyExpr"),e=null===(t=this._dataSource)||void 0===t?void 0:t.key();return!Z(e)||Z(n)&&"this"!==n?n:e},_compileKeyGetter(){this._keyGetter=Ai(this._getKey())},_compileDisplayGetter(){this._displayGetter=Ai(this.option("displayExpr"))},_initMarkup(){this.callBase(),this.$element().addClass(qPe),this._renderButtonGroup(),this._updateArrowClass(),Z(this.option("selectedItemKey"))&&this._loadSelectedItem().done(this._updateActionButton.bind(this))},_renderFocusTarget:Be,_render(){(!this.option("deferRendering")||this.option("opened"))&&this._renderPopup(),this.callBase()},_renderContentImpl(){return this._popup&&this._renderPopupContent(),this.callBase()},_loadSelectedItem(){var t;null===(t=this._loadSingleDeferred)||void 0===t||t.reject();var n=new et;if(this._list&&void 0!==this._lastSelectedItemData){var e=this.option("useSelectMode")?this._list.option("selectedItem"):this._lastSelectedItemData;return n.resolve(e)}this._lastSelectedItemData=void 0;var i=this.option("selectedItemKey");return this._loadSingle(this._getKey(),i).done(n.resolve).fail(()=>{n.resolve(null)}),this._loadSingleDeferred=n,n.promise()},_createActionClickAction(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction(t){var{previousValue:n,value:e}=t;this._selectionChangedAction({item:e,previousItem:n})},_fireItemClickAction(t){var{event:n,itemElement:e,itemData:i}=t;return this._itemClickAction({event:n,itemElement:e,itemData:this._actionItem||i})},_actionButtonConfig(){return{text:this.option("text"),icon:this.option("icon"),elementAttr:{class:YPe}}},_getButtonGroupItems(){var t=[];return t.push(this._actionButtonConfig()),this.option("splitButton")&&t.push({icon:"spindown",elementAttr:{class:ZPe}}),t},_buttonGroupItemClick(t){var{event:n,itemData:e}=t,i=e.elementAttr.class===YPe;e.elementAttr.class===ZPe?this.toggle():i&&(this._actionClickAction({event:n,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions(){var{splitButton:t,showArrowIcon:n,focusStateEnabled:e,hoverStateEnabled:i,stylingMode:r,accessKey:o,tabIndex:a}=this.option(),s=t||!n?"content":(l,u)=>{var{text:f,icon:S}=l,T=Fu(S),R=f?U("<span>").text(f).addClass("dx-button-text"):void 0,L=Fu("spindown").addClass("dx-icon-right");U(u).append(T,R,L)};return se({items:this._getButtonGroupItems(),onItemClick:this._buttonGroupItemClick.bind(this),width:"100%",height:"100%",selectionMode:"none",onKeyboardHandled:l=>this._keyboardHandler(l),buttonTemplate:s,focusStateEnabled:e,hoverStateEnabled:i,stylingMode:r,accessKey:o,tabIndex:a},this._options.cache("buttonGroupOptions"))},_renderPopupContent(){var t=this._popup.$content(),n=this._getTemplateByOption("dropDownContentTemplate");return t.empty(),this._popupContentId="dx-"+new Ni,this.setAria("id",this._popupContentId,t),n.render({container:kn(t),model:this.option("items")||this._dataSource})},_popupOptions(){var t=this.option("rtlEnabled")?"right":"left";return se({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),hideOnOutsideClick:n=>{var e=this.$element();return!U(n.target).closest(".".concat(qPe)).is(e)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},_ignoreFunctionValueDeprecation:!0,width:()=>GT(this.$element()),height:"auto",shading:!1,position:{of:this.$element(),collision:"flipfit",my:t+" top",at:t+" bottom"},_wrapperClassExternal:"dx-dropdowneditor-overlay"},this._options.cache("dropDownOptions"),{visible:this.option("opened")})},_listOptions(){var t=this.option("selectedItemKey"),n=this.option("useSelectMode");return{selectionMode:n?"single":"none",wrapItemText:this.option("wrapItemText"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:()=>this._fireContentReadyAction(),selectedItemKeys:Z(t)&&n?[t]:[],grouped:this.option("grouped"),groupTemplate:this.option("groupTemplate"),keyExpr:this._getKey(),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataSource,onItemClick:e=>{this.option("useSelectMode")||(this._lastSelectedItemData=e.itemData),this.option("selectedItemKey",this._keyGetter(e.itemData)),!1!==this._fireItemClickAction(e)&&(this.toggle(!1),this._buttonGroup.focus())}}},_upDownKeyHandler(){return this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open(),!0},_escHandler(){return this.close(),this._buttonGroup.focus(),!0},_tabHandler(){return this.close(),!0},_renderPopup(){var t=U("<div>");this.$element().append(t),this._popup=this._createComponent(t,Ss,this._popupOptions()),this._popup.$content().addClass("dx-dropdownbutton-content"),this._popup.$wrapper().addClass("dx-dropdownbutton-popup-wrapper"),this._popup.on("hiding",this._popupHidingHandler.bind(this)),this._popup.on("showing",this._popupShowingHandler.bind(this)),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_popupHidingHandler(){this.option("opened",!1),this._setAriaExpanded(!1)},_popupOptionChanged:function(t){var n=tr.getOptionsFromContainer(t);this._setPopupOption(n);var e=Object.keys(n);(-1!==e.indexOf("width")||-1!==e.indexOf("height"))&&this._dimensionChanged()},_dimensionChanged:function(){void 0===HG(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>GT(this.$element()))},_setPopupOption:function(t,n){this._setWidgetOption("_popup",arguments)},_popupShowingHandler(){this.option("opened",!0),this._setAriaExpanded(!0)},_setAriaExpanded(t){this._ariaExpandedElements.forEach(n=>{this.setAria({expanded:t,owns:t?this._popupContentId:void 0},U(n))})},_renderButtonGroup(){var t=this._buttonGroup&&this._buttonGroup.$element()||U("<div>");this._buttonGroup||this.$element().append(t),this._buttonGroup=this._createComponent(t,GC,this._buttonGroupOptions());var n=this._buttonGroup.$element().find(".dx-button").toArray();this._ariaExpandedElements=[...n,this.$element()],this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this._tabHandler.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions"),this._setAriaExpanded(this.option("opened"))},_updateArrowClass(){var t=this.option("splitButton")||this.option("showArrowIcon");this.$element().toggleClass("dx-dropdownbutton-has-arrow",t)},toggle(t){return this._popup||(this._renderPopup(),this._renderContent()),this._popup.toggle(t)},open(){return this.toggle(!0)},close(){return this.toggle(!1)},_setListOption(t,n){this._list&&this._list.option(t,n)},_getDisplayValue(t){var e=wi(t)?this._displayGetter(t):t;return wi(e)?"":String(gr(e,""))},_updateActionButton(t){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(t),icon:wi(t)?t.icon:void 0}),this._setOptionWithoutOptionChange("selectedItem",t),this._setOptionWithoutOptionChange("selectedItemKey",this._keyGetter(t))},_clean(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged(t){this._setListOption("selectedItemKeys",this.option("useSelectMode")&&Z(t)?[t]:[]);var n=this.option("selectedItem");this._loadSelectedItem().done(e=>{this._updateActionButton(e),this._displayGetter(n)!==this._displayGetter(e)&&this._fireSelectionChangedAction({previousValue:n,value:e})})},_actionButtonOptionChanged(t){var{name:n,value:e}=t,i={};i[n]=e,this._buttonGroup.option("items[0]",se({},this._actionButtonConfig(),i)),this._popup&&this._popup.repaint()},_selectModeChanged(t){if(t){this._setListOption("selectionMode","single");var n=this.option("selectedItemKey");this._setListOption("selectedItemKeys",Z(n)?[n]:[]),this._selectedItemKeyChanged(this.option("selectedItemKey"))}else this._setListOption("selectionMode","none"),this.option({selectedItemKey:void 0,selectedItem:void 0}),this._actionButtonOptionChanged({text:this.option("text")})},_updateItemCollection(t){var n=this.option("selectedItemKey");this._setListOption("selectedItem",null),this._setWidgetOption("_list",[t]),Z(n)&&this._loadSelectedItem().done(e=>{this._setListOption("selectedItemKeys",[n]),this._setListOption("selectedItem",e)}).fail(e=>{this._setListOption("selectedItemKeys",[])}).always(this._updateActionButton.bind(this))},_updateDataSource:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._dataSource.items();this._dataSource=void 0,this._itemsToDataSource(t),this._updateKeyExpr()},_updateKeyExpr:function(){this._compileKeyGetter(),this._setListOption("keyExpr",this._getKey())},focus:function(){this._buttonGroup.focus()},_optionChanged(t){var n,{name:e,value:i}=t;switch(e){case"useSelectMode":this._selectModeChanged(i);break;case"splitButton":this._updateArrowClass(),this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter(),this._setListOption(e,i),this._updateActionButton(this.option("selectedItem"));break;case"keyExpr":this._updateDataSource();break;case"buttonGroupOptions":this._innerWidgetOptionChanged(this._buttonGroup,t);break;case"dropDownOptions":if("dropDownOptions.visible"===t.fullName)break;void 0!==t.value.visible&&delete t.value.visible,this._popupOptionChanged(t),this._innerWidgetOptionChanged(this._popup,t);break;case"opened":this.toggle(i);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(e,i),this._buttonGroup.option(e,i),this.callBase(t);break;case"items":this._updateDataSource(this.option("items")),this._updateItemCollection(e);break;case"dataSource":Array.isArray(i)?this._updateDataSource(this.option("dataSource")):(this._initDataSource(),this._updateKeyExpr()),this._updateItemCollection(e);break;case"icon":case"text":this._actionButtonOptionChanged(t);break;case"showArrowIcon":this._updateArrowClass(),this._renderButtonGroup(),this._popup&&this._popup.repaint();break;case"width":case"height":this.callBase(t),null===(n=this._popup)||void 0===n||n.repaint();break;case"stylingMode":case"tabIndex":this._buttonGroup.option(e,i);break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":case"wrapItemText":case"useItemTextAsTitle":this._setListOption(e,i);break;case"dropDownContentTemplate":this._renderContent();break;case"selectedItemKey":this._selectedItemKeyChanged(i);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":this.toggle(this.option("opened"));break;default:this.callBase(t)}}}).include(bp);On("dxDropDownButton",XPe);var JPe="dx-datagrid-export-button",L$t=ji.inherit({ctor:function(t,n,e){this._exportController=t,this._initialColumnWidthsByColumnIndex=n,this._selectedRowsOnly=e},_getGroupValue:function(t){var{key:n,data:e,rowType:i,groupIndex:r,summaryCells:o}=t,a=this._options.groupColumns[r],s=oi.getDisplayValue(a,a.deserializeValue?a.deserializeValue(n[r]):n[r],e,i),l=a.caption+": "+oi.formatValue(s,a);return o&&o[0]&&o[0].length&&(l+=" "+oi.getGroupRowSummaryText(o[0],this._options.summaryTexts)),l},_correctCellIndex:function(t){return t},_initOptions:function(){var t=this._exportController,n=t._columnsController.getGroupColumns(),e=t.option("export.excelWrapTextEnabled");this._options={columns:t._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:n,items:this._selectedRowsOnly||t._selectionOnly?t._getSelectedItems():t._getAllItems(),getVisibleIndex:t._columnsController.getVisibleIndex.bind(t._columnsController),isHeadersVisible:t.option("showColumnHeaders"),summaryTexts:t.option("summary.texts"),customizeExportData:t.option("customizeExportData"),rtlEnabled:t.option("rtlEnabled"),wrapTextEnabled:Z(e)?e:!!t.option("wordWrapEnabled"),customizeExcelCell:t.option("export.customizeExcelCell")}},hasCustomizeExcelCell:function(){return Z(this._options.customizeExcelCell)},customizeExcelCell:function(t,n){this._options.customizeExcelCell&&(t.gridCell=n,Z(this._exportController)&&Z(this._exportController.component)&&(t.component=this._exportController.component),this._options.customizeExcelCell(t))},getHeaderStyles:()=>[{bold:!0,alignment:"center",wrapText:!0},{bold:!0,alignment:"left",wrapText:!0},{bold:!0,alignment:"right",wrapText:!0}],getGroupRowStyle(){return{bold:!0,wrapText:!1,alignment:Eg(this._options.rtlEnabled)}},getColumnStyles(){var t=this._options.wrapTextEnabled,n=[];return this.getColumns().forEach(e=>{n.push({alignment:e.alignment||"left",format:e.format,wrapText:t,dataType:e.dataType})}),n},getStyles:function(){return[...this.getHeaderStyles(),...this.getColumnStyles(),this.getGroupRowStyle()]},_getTotalCellStyleId:function(t){var n,e=(null===(n=this.getColumns()[t])||void 0===n?void 0:n.alignment)||"right";return this.getHeaderStyles().map(i=>i.alignment).indexOf(e)},getStyleId:function(t,n){return t<this.getHeaderRowCount()?0:this.isTotalCell(t-this.getHeaderRowCount(),n)?this._getTotalCellStyleId(n):this.isGroupRow(t-this.getHeaderRowCount())?this.getHeaderStyles().length+this.getColumns().length:n+this.getHeaderStyles().length},getColumns:function(t){var{columns:n}=this._options;return t?n:n[n.length-1]},getColumnsWidths:function(){var t=this.getColumns();return Z(t)?t.map(n=>n.width):void 0},getRowsCount:function(){return this._options.items.length+this.getHeaderRowCount()},getHeaderRowCount:function(){return this.isHeadersVisible()?this._options.columns.length-1:0},isGroupRow:function(t){return t<this._options.items.length&&"group"===this._options.items[t].rowType},getGroupLevel:function(t){var n=this._options.items[t-this.getHeaderRowCount()],e=n&&n.groupIndex;return n&&"totalFooter"===n.rowType?0:Z(e)?e:this._options.groupColumns.length},getCellType:function(t,n){var e=this.getColumns();if(t<this.getHeaderRowCount())return"string";if(t-=this.getHeaderRowCount(),n<e.length){var i=this._options.items.length&&this._options.items[t],r=e[n];return i&&"data"===i.rowType&&isFinite(i.values[this._correctCellIndex(n)])&&!Z(r.customizeText)?Z(r.lookup)?r.lookup.dataType:r.dataType:"string"}},ready:function(){var t=this;t._initOptions();var n=t._options;return Qt(n.items).done(function(e){n.customizeExportData&&n.customizeExportData(t.getColumns(t.getHeaderRowCount()>1),e),n.items=e}).fail(function(){n.items=[]})},_convertFromGridGroupSummaryItems:function(t){if(Z(t)&&t.length>0)return t.map(function(n){return{value:n.value,name:n.name}})},getCellData:function(t,n,e){var i,r,o={cellSourceData:{},value:i},a=this.getColumns(),s=this._correctCellIndex(n);if(t<this.getHeaderRowCount())r=this.getColumns(!0)[t][n],o.cellSourceData.rowType="header",o.cellSourceData.column=r&&r.gridColumn,o.value=r&&r.caption;else{t-=this.getHeaderRowCount();var u=this._options.items.length&&this._options.items[t];if(u){var f=u.values;switch(o.cellSourceData.rowType=u.rowType,o.cellSourceData.column=a[n]&&a[n].gridColumn,u.rowType){case"groupFooter":case"totalFooter":s<f.length&&(Z(i=f[s])?(o.cellSourceData.value=i.value,o.cellSourceData.totalSummaryItemName=i.name,o.value=oi.getSummaryText(i,this._options.summaryTexts)):o.cellSourceData.value=void 0);break;case"group":if(o.cellSourceData.groupIndex=u.groupIndex,n<1)o.cellSourceData.column=this._options.groupColumns[u.groupIndex],o.cellSourceData.value=u.key[u.groupIndex],o.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(u.summaryCells[0]),o.value=this._getGroupValue(u);else{var S=u.values[s];if(Array.isArray(S)){o.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(S),i="";for(var T=0;T<S.length;T++)i+=(T>0?e?"\n":" \n ":"")+oi.getSummaryText(S[T],this._options.summaryTexts);o.value=i}else o.cellSourceData.value=void 0}break;default:if(r=a[n]){var R=f[s],L=oi.getDisplayValue(r,R,u.data,u.rowType);o.value=!isFinite(L)||Z(r.customizeText)?e&&Z(r.customizeText)&&r.customizeText===this._exportController._columnsController.getCustomizeTextByDataType("boolean")?L:oi.formatValue(L,r):L,o.cellSourceData.value=R}o.cellSourceData.data=u.data}}}return o},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(t,n){var i=this._options.items[t],r=this._correctCellIndex(n);return i&&"groupFooter"===i.rowType||"totalFooter"===i.rowType||i.summaryCells&&i.summaryCells[r]&&i.summaryCells[r].length>0&&i.summaryCells[r][0].alignByColumn},getCellMerging:function(t,n){var e=this._options.columns,i=e[t]&&e[t][n];return i?{colspan:(i.exportColspan||1)-1,rowspan:(i.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:0,y:this.getHeaderRowCount()}}}),B$t=oi.ViewController.inherit({}).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(t,n){t.width=n},_getColumns:function(t){var e,i,n=[],r=this._columnsController,o=r.getRowCount();for(e=0;e<=o;e++){var a=[];i=r.getVisibleColumns(e,!0);var s=void 0;if(e===o)if(this._updateLockCount)s=t;else{var l=this._getColumnWidths(this._headersView,this._rowsView);if(l&&l.length){s={};for(var u=0;u<i.length;u++)s[i[u].index]=l[u]}}for(var f=0;f<i.length;f++){var S=se({},i[f],{dataType:"datetime"===i[f].dataType?"date":i[f].dataType,gridColumn:i[f]});if(this._needColumnExporting(S)){var T=this._calculateExportColspan(S);Z(T)&&(S.exportColspan=T),s&&this._updateColumnWidth(S,s[S.index]),a.push(S)}}n.push(a)}return i=n[o],(n=$Pe(n.slice(0,-1),this._getEmptyCell())).push(i),n},_calculateExportColspan:function(t){if(t.isBand){var n=this._columnsController.getChildrenByBandColumn(t.index,!0);if(Z(n))return n.reduce((e,i)=>this._needColumnExporting(i)?e+(this._calculateExportColspan(i)||1):e,0)}},_needColumnExporting:function(t){return!t.command&&(t.allowExporting||void 0===t.allowExporting)},_getFooterSummaryItems:function(t,n){var e=[],i=1,r=0;do{for(var o=[],a=0;a<t.length;a++){var s=t[a],l=s.length;i<l&&(i=l),o.push(s[r])}e.push({values:o,rowType:n?"totalFooter":"groupFooter"})}while(r++<i-1);return e},_hasSummaryGroupFooters:function(){var t=this.option("summary.groupItems");if(Z(t))for(var n=0;n<t.length;n++)if(t[n].showInGroupFooter)return!0;return!1},_getItemsWithSummaryGroupFooters:function(t){for(var n=[],e=[],i=[],r=0;r<t.length;r++){var o=t[r];"groupFooter"===o.rowType?(i=this._getFooterSummaryItems(o.summaryCells),n=n.concat(e,i),e=[]):e.push(o)}return n.length?n:e},_updateGroupValuesWithSummaryByColumn:function(t){for(var n=[],e=0;e<t.length;e++){var i=t[e],r=i.summaryCells;if("group"===i.rowType&&r&&r.length>1){for(var o=i.values.length,a=1;a<r.length;a++)for(var s=0;s<r[a].length;s++){var l=r[a][s];l&&l.alignByColumn&&(Array.isArray(n[a-o])||(n[a-o]=[]),n[a-o].push(l))}n.length>0&&(i.values.push(...n),n=[])}}},_processUnExportedItems:function(t){for(var i,r,n=this._columnsController.getVisibleColumns(null,!0),e=this._columnsController.getGroupColumns(),o=0;o<t.length;o++){var a=t[o],s=!1;i=[],r=[];for(var l=0;l<n.length;l++){var u=n[l];if(s||(s=["detailExpand","buttons"].includes(u.type)),this._needColumnExporting(u)&&(a.values&&i.push("group"!==a.rowType||i.length?a.values[l]:a.key[a.groupIndex]),a.summaryCells))if("group"!==a.rowType||r.length)r.push(a.summaryCells[l]);else{var f=l-e.length+a.groupIndex;r.push(a.summaryCells[s?f:f+1])}}i.length&&(a.values=i),r.length&&(a.summaryCells=r)}},_getAllItems:function(t){var s,n=this,e=new et,i=this.getController("data"),r=i.footerItems(),o=r.length&&r[0],a=n.option("summary.totalItems");return Qt(t).done(function(l){i.loadAll(l).done(function(u,f){n._updateGroupValuesWithSummaryByColumn(u),n._hasSummaryGroupFooters()&&(u=n._getItemsWithSummaryGroupFooters(u)),s=o&&o.summaryCells,Z(f)&&a&&(s=n._getSummaryCells(a,f));var S=o&&n._getFooterSummaryItems(s,!0);S&&(u=u.concat(S)),n._processUnExportedItems(u),e.resolve(u)}).fail(e.reject)}).fail(e.reject),e},_getSummaryCells:function(t,n){var e=this.getController("data");return e._calculateSummaryCells(t,n,e._columnsController.getVisibleColumns(null,!0),function(r,o){return e._isDataColumn(o)?o.index:-1})},_getSelectedItems:function(){var n=this.getController("selection").getSelectedRowsData();return this._getAllItems(n)},_getColumnWidths:function(t,n){return t&&t.isVisible()?t.getColumnWidths():n.getColumnWidths()},init:function(){this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onExported",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFileSaving",{excludeValidators:["disabled","readOnly"]})},callbackNames:function(){return["selectionOnlyChanged"]},getDataProvider:function(t){var e,n=this._getColumnWidths(this._headersView,this._rowsView);if(n&&n.length){e={};for(var i=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),r=0;r<i.length;r++)e[i[r].index]=n[r]}return new L$t(this,e,t)},exportToExcel:function(t){this._selectionOnly=t,QB(this.component.getDataProvider(),{fileName:this.option("export.fileName"),format:"xlsx",selectedRowsOnly:!!t,autoFilterEnabled:!!this.option("export.excelFilterEnabled"),rtlEnabled:this.option("rtlEnabled"),exportingAction:this.getAction("onExporting"),exportedAction:this.getAction("onExported"),fileSavingAction:this.getAction("onFileSaving")},swe_getData)},exportTo:function(t,n){this._selectionOnly=t;var e=this.getAction("onExporting"),i={selectedRowsOnly:!!t,format:n,fileName:this.option("export.fileName"),cancel:!1};Yt(e)&&e(i)},publicMethods:function(){return["getDataProvider","exportToExcel"]},selectionOnly:function(t){if(!Z(t))return this._isSelectedRows;this._isSelectedRows=t,this.selectionOnlyChanged.fire()}});oi.registerModule("export",{defaultOptions:function(){return{export:{enabled:!1,fileName:"DataGrid",excelFilterEnabled:!1,formats:["xlsx"],excelWrapTextEnabled:void 0,allowExportSelectedData:!1,texts:{exportTo:ye.format("dxDataGrid-exportTo"),exportAll:ye.format("dxDataGrid-exportAll"),exportSelectedRows:ye.format("dxDataGrid-exportSelectedRows")}}}},controllers:{export:B$t},extenders:{controllers:{editing:{callbackNames:function(){var t=this.callBase();return Z(t)?t.push("editingChanged"):["editingChanged"]},_updateEditButtons:function(){this.callBase(),this.editingChanged.fire(this.hasChanges())}}},views:{headerPanel:{_getToolbarItems:function(){var t=this.callBase(),n=this._getExportToolbarButton();return n&&(t.push(n),this._correctItemsPosition(t)),t},_getExportToolbarButton:function(){var t=this._getExportToolbarItems();if(0===t.length)return null;var n={name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30,options:{items:t}};if(1===t.length){var e=mt({},t[0],{hint:t[0].text,elementAttr:{class:JPe}});n.widget="dxButton",n.showText="inMenu",n.options=e}else{var i={icon:"export",displayExpr:"text",items:t,hint:this.option("export.texts.exportTo"),elementAttr:{class:JPe},dropDownOptions:{width:"auto",_wrapperClassExternal:"dx-datagrid-export-menu"}};n.options=i,n.widget="dxDropDownButton",n.menuItemTemplate=(r,o,a)=>{this._createComponent(U(a),gC,{items:t})}}return n},_getExportToolbarItems:function(){var t,n=this.option("export"),e=this.option("export.texts"),i=null!==(t=this.option("export.formats"))&&void 0!==t?t:[];if(!n.enabled)return[];var r=[];return i.forEach(o=>{var a="exportTo",s=o.toUpperCase(),l="export";"xlsx"===o&&(a="exportToExcel",s="Excel",l="xlsxfile"),"pdf"===o&&(l="pdffile"),r.push({text:Er(e.exportAll,s),icon:l,onClick:()=>{this._exportController[a](!1,o)}}),n.allowExportSelectedData&&r.push({text:Er(e.exportSelectedRows,s),icon:"exportselected",onClick:()=>{this._exportController[a](!0,o)}})}),r},_correctItemsPosition:function(t){t.sort(function(n,e){return n.sortIndex-e.sortIndex})},_isExportButtonVisible:function(){return this.option("export.enabled")},optionChanged:function(t){this.callBase(t),"export"===t.name&&(t.handled=!0,this._invalidate())},init:function(){var t=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add(function(n){t.setToolbarItemDisabled("exportButton",n)})},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}});var Kk="dx-row-focused",N$t=".dx-row."+Kk,e2e="dx-cell-focus-disabled",H$t=Bo.ViewController.inherit(function(){var t={init:function(){this._dataController=this.getController("data"),this._keyboardController=this.getController("keyboardNavigation"),this.component._optionsByReference.focusedRowKey=!0},optionChanged:function(n){if("focusedRowIndex"===n.name){var e=this.option("focusedRowKey");this._focusRowByIndex(n.value),this._triggerFocusedRowChangedIfNeed(e,n.value),n.handled=!0}else if("focusedRowKey"===n.name){if(n.handled=!0,Array.isArray(n.value)&&JSON.stringify(n.value)===JSON.stringify(n.previousValue))return;var i=this.option("focusedRowIndex");this._focusRowByKey(n.value),this._triggerFocusedRowChangedIfNeed(n.value,i)}else"focusedColumnIndex"===n.name||"focusedRowEnabled"===n.name||"autoNavigateToFocusedRow"===n.name?n.handled=!0:this.callBase(n)},_triggerFocusedRowChangedIfNeed:function(n,e){if(e===this.getFocusedRowIndexByKey(n)){var r=this._dataController.getRowIndexByKey(n);if(r>=0){var o=U(this.getView("rowsView").getRowElement(r));this.getController("keyboardNavigation")._fireFocusedRowChanged(o,e)}}},isAutoNavigateToFocusedRow:function(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")},_focusRowByIndex:function(n,e){this.option("focusedRowEnabled")&&((n=void 0!==n?n:this.option("focusedRowIndex"))<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(n,e))},_focusRowByIndexCore:function(n,e){var i=this.getController("data"),r=i.pageSize(),o=()=>{if(this._isValidFocusedRowIndex(n)){var s=n-i.getRowIndexOffset(!0);if(!e||e.paging&&!e.filtering){var l=i._getLastItemIndex();s=Math.min(s,l)}var u=i.getKeyByRowIndex(s,!0);Z(u)&&!this.isRowFocused(u)&&this.option("focusedRowKey",u)}};if(r>=0)if(this._isLocalRowIndex(n))o();else{var a=Math.floor(n/i.pageSize());Qt(i.pageIndex(a),i.waitReady()).done(()=>{o()})}},_isLocalRowIndex(n){var e=this.getController("data");if(this.getController("keyboardNavigation")._isVirtualScrolling()){var r=Math.floor(n/e.pageSize()),o=e.virtualItemsCount(),a=o?o.begin:-1,s=e.getVisibleRows().length+e.getRowIndexOffset(),l=Math.ceil(s/e.pageSize());return a<=n&&l>r}return!0},_setFocusedRowKeyByIndex:function(n){var e=this.getController("data");if(this._isValidFocusedRowIndex(n)){var i=Math.min(n-e.getRowIndexOffset(),e.items().length-1),r=e.getKeyByRowIndex(i);Z(r)&&!this.isRowFocused(r)&&this.option("focusedRowKey",r)}},_focusRowByKey:function(n){Z(n)?this._navigateToRow(n,!0):this._resetFocusedRow()},_resetFocusedRow:function(){var n=this.option("focusedRowKey"),e=Z(n);if(e||!(this.option("focusedRowIndex")<0)){var i=this.getController("keyboardNavigation");e&&this.option("focusedRowKey",null),i.setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:null}),i._fireFocusedRowChanged(void 0,-1)}},_isValidFocusedRowIndex:function(n){var i=this.getController("data").getVisibleRows()[n];return!i||"data"===i.rowType||"group"===i.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(n){return this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(n)},_navigateToRow:function(n,e){var i=this,r=i.getController("data"),o=i.isAutoNavigateToFocusedRow(),a=new et;if(void 0===n||!r.dataSource())return a.reject().promise();var s=i.getFocusedRowIndexByKey(n);return!o&&e||s>=0?i._navigateTo(n,a,e):r.getPageIndexByKey(n).done(function(l){l<0?a.resolve(-1):l===r.pageIndex()?r.reload().done(function(){i.isRowFocused(n)&&r.getRowIndexByKey(n)>=0?a.resolve(i.getFocusedRowIndexByKey(n)):i._navigateTo(n,a,e)}).fail(a.reject):r.pageIndex(l).done(function(){i._navigateTo(n,a,e)}).fail(a.reject)}).fail(a.reject),a.promise()},_navigateTo:function(n,e,i){var r=this.getController("data").getRowIndexByKey(n),o=vn.isVirtualRowRendering(this);this.isAutoNavigateToFocusedRow()&&o&&r<0?this._navigateToVirtualRow(n,e,i):this._navigateToVisibleRow(n,e,i)},_navigateToVisibleRow:function(n,e,i){if(i)this._triggerUpdateFocusedRow(n,e);else{var r=this.getFocusedRowIndexByKey(n);this.getView("rowsView").scrollToRowElement(n,e).done(function(){e.resolve(r)})}},_navigateToVirtualRow:function(n,e,i){var r=this,o=this.getController("data"),a=o._rowsScrollController,s=vn.getIndexByKey(n,o.items(!0)),l=r.getView("rowsView").getScrollable();if(a&&l&&s>=0){var u=s+o.getRowIndexOffset(!0),f=a.getItemOffset(u);r.component.on("contentReady",function S(){r.component.off("contentReady",S),i?r._triggerUpdateFocusedRow(n,e):e.resolve(u)}),this.getView("rowsView").scrollTopPosition(f)}else e.resolve(-1)},_triggerUpdateFocusedRow:function(n,e){var o,i=this.getController("data"),r=this.getFocusedRowIndexByKey(n);this._isValidFocusedRowIndex(r)?(this.option("focusedRowEnabled")?i.updateItems({changeType:"updateFocusedRow",focusedRowKey:n}):o=this.getView("rowsView").scrollToRowElement(n),Qt(o).done(()=>{this.getController("keyboardNavigation").setFocusedRowIndex(r),e&&e.resolve(r)})):e&&e.resolve(-1)},getFocusedRowIndexByKey:function(n){var e=this.getController("data"),i=e.getRowIndexByKey(n,!0);return i>=0?i+e.getRowIndexOffset(!0):-1},_focusRowByKeyOrIndex:function(){var n=this.option("focusedRowKey"),e=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),r=this.getController("data");if(Z(n)){var o=r.getRowIndexByKey(n);o>=0?(i._isVirtualScrolling()&&(e=o+r.getRowIndexOffset()),i.setFocusedRowIndex(e),this._triggerUpdateFocusedRow(n)):this._navigateToRow(n,!0).done(a=>{e>=0&&a<0?this._focusRowByIndex():e<0&&a>=0&&i.setFocusedRowIndex(a)})}else e>=0&&this.getController("focus")._focusRowByIndex(e)},isRowFocused:function(n){var e=this.option("focusedRowKey");if(Z(e))return Tr(n,this.option("focusedRowKey"))},updateFocusedRow:function(n){var o,a,e=this,i=e._dataController.getRowIndexByKey(n.focusedRowKey),r=e.getView("rowsView");we(r.getTableElements(),function(s,l){var u=0===s;o=U(l),e._clearPreviousFocusedRow(o,i);var f=e._prepareFocusedRow({changedItem:e._dataController.getVisibleRows()[i],$tableElement:o,focusedRowIndex:i});u&&(a=f)}),a&&r.scrollToElementVertically(a)},_clearPreviousFocusedRow:function(n,e){var i=n.find(N$t).filter((o,a)=>{var s=U(a).closest(".".concat(this.addWidgetPrefix("table")));return n.is(s)});i.removeClass(Kk).removeClass(e2e).removeAttr("tabindex"),i.children("td").removeAttr("tabindex"),0!==e&&U(this.getView("rowsView").getRowElement(0)).removeClass(e2e).removeAttr("tabIndex")},_prepareFocusedRow:function(n){var e,i=n.changedItem;if(i&&("data"===i.rowType||"group"===i.rowType)){var r=n.focusedRowIndex,o=n.$tableElement,a=this.option("tabindex")||0,s=this.getView("rowsView");(e=U(s._getRowElements(o).eq(r))).addClass(Kk).attr("tabindex",a)}return e}};return t}()),t2e={defaultOptions:function(){return{focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:null,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:H$t},extenders:{controllers:{keyboardNavigation:{init:function(){var t=this.option("focusedRowIndex"),n=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},Z(t)&&t>=0&&(this._focusedCellPosition.rowIndex=t),Z(n)&&n>=0&&(this._focusedCellPosition.columnIndex=n)},setFocusedRowIndex:function(t){var n=this.getController("data");this.callBase(t);var e=t-n.getRowIndexOffset(),i=n.getVisibleRows()[e];(!i||!i.isNewRow)&&this.option("focusedRowIndex",t)},setFocusedColumnIndex:function(t){this.callBase(t),this.option("focusedColumnIndex",t)},_escapeKeyHandler:function(t,n){!n&&this.option("focusedRowEnabled")?this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(t.originalEvent.target),!0)):this.callBase(t,n)},_updateFocusedCellPosition:function(t,n){var e=this.option("focusedRowIndex"),i=this.option("focusedColumnIndex"),r=this.callBase(t,n);r&&r.columnIndex>=0&&this._fireFocusedCellChanged(t,i,e)}},editorFactory:{renderFocusOverlay:function(t,n){var o,e=this.getController("keyboardNavigation"),i=this.option("focusedRowEnabled"),r=this.getController("editing");i&&null!=e&&e.isRowFocusType()&&!r.isEditing()?i&&"row"===e._getElementType(t)&&!t.hasClass(Kk)&&(o=e.getFirstValidCellInRow(t),e.focus(o)):this.callBase(t,n)}},columns:{getSortDataSourceParameters:function(t,n){var e=this.callBase.apply(this,arguments),i=this.getController("data"),r=i._dataSource,o=i.store(),a=o&&o.key(),s=r&&r.remoteOperations()||{},l=Object.keys(s).every(f=>!s[f]);if(a&&(this.option("focusedRowEnabled")&&!1!==this.getController("focus").isAutoNavigateToFocusedRow()||n)){var u=(a=Array.isArray(a)?a:[a]).filter(f=>!this.columnOption(f,"sortOrder"));u.length&&(e=e||[],l?e.push({selector:r.getDataIndexGetter(),desc:!1}):u.forEach(f=>e.push({selector:f,desc:!1})))}return e}},data:{_applyChange:function(t){if(!t||"updateFocusedRow"!==t.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(t){if(this.callBase(t),this.option("focusedRowEnabled")&&this._dataSource){var e="update"===t.changeType&&t.repaintChangesOnly&&t.changeTypes&&t.changeTypes.indexOf("remove")>=0;"refresh"===t.changeType&&t.items.length||e?(this._updatePageIndexes(),this.processUpdateFocusedRow(t)):"append"===t.changeType||"prepend"===t.changeType?this._updatePageIndexes():"update"===t.changeType&&t.repaintChangesOnly&&this.processUpdateFocusedRow(t)}},_updatePageIndexes:function(){var t=this._lastRenderingPageIndex||0,n=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=n,this._isPagingByRendering=n!==t},isPagingByRendering:function(){return this._isPagingByRendering},processUpdateFocusedRow:function(t){var n=t.operationTypes||{},e=this.getController("focus"),{reload:i,fullReload:r}=n,a=this.getController("keyboardNavigation")._isVirtualScrolling(),s=this.option("focusedRowKey"),l=e.isAutoNavigateToFocusedRow();if(i&&!r&&Z(s))e._navigateToRow(s,!0).done(function(R){R<0&&e._focusRowByIndex(void 0,n)});else if(n.paging&&!a)if(l){var u=this.getRowIndexByKey(s),f=u>=0,S=this.option("focusedRowIndex");S>=0&&(S===u||!f)&&e._focusRowByIndex(void 0,n)}else this.getRowIndexByKey(s)<0&&this.option("focusedRowIndex",-1);else n.fullReload&&e._focusRowByKeyOrIndex()},getPageIndexByKey:function(t){var n=this,e=new et;return n.getGlobalRowIndexByKey(t).done(function(i){e.resolve(i>=0?Math.floor(i/n.pageSize()):-1)}).fail(e.reject),e.promise()},getGlobalRowIndexByKey:function(t){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(t):this._calculateGlobalRowIndexByFlatData(t)},_calculateGlobalRowIndexByFlatData:function(t,n,e){var i=this,r=new et,o=i._dataSource;if(Array.isArray(t))return r.resolve(-1).promise();var a=i._generateFilterByKey(t);return o.load({filter:i._concatWithCombinedFilter(a),skip:0,take:1}).done(function(s){s.length>0?(a=i._generateOperationFilterByKey(t,s[0],e),o.load({filter:i._concatWithCombinedFilter(a,n),skip:0,take:1,requireTotalCount:!0}).done(function(l,u){r.resolve(u.totalCount)})):r.resolve(-1)}),r.promise()},_concatWithCombinedFilter:function(t,n){var e=this.getCombinedFilter();return vn.combineFilters([t,e,n])},_generateBooleanFilter:function(t,n,e){var i;return!1===n?i=[t,"=",!!e.desc||null]:(!0===n?!e.desc:e.desc)&&(i=[t,"<>",n]),i},_generateOperationFilterByKey:function(t,n,e){var i=this,r=i._dataSource,o=i._generateFilterByKey(t,"<"),a=i._columnsController.getSortDataSourceParameters(!r.remoteOperations().filtering,!0);if(e){var s=i._columnsController.getGroupDataSourceParameters(!r.remoteOperations().filtering);s&&(a=a?s.concat(a):s)}return a&&a.slice().reverse().forEach(function(l){var f,u=l.selector,S=(f="function"==typeof u?u:i._columnsController.columnOption(u,"selector"))?f(n):n[u];if(o=[[u,"=",S],"and",o],null===S||Dy(S)){var T=i._generateBooleanFilter(u,S,l);T&&(o=[T,"or",o])}else{var L,R=l.desc?">":"<";l.compare?L=z=>"<"===R?l.compare(S,f(z))>=1:l.compare(S,f(z))<=-1:(L=[u,R,S],l.desc||(L=[L,"or",[u,"=",null]])),o=[L,"or",o]}}),o},_generateFilterByKey:function(t,n){var e=this._dataSource.key(),i=[];if(n||(n="="),Array.isArray(e))for(var r=0;r<e.length;++r){var o=t[e[r]];o&&(i.length>0&&i.push("and"),i.push([e[r],n,o]))}else i=[e,n,t];return i},_getLastItemIndex:function(){return this.items(!0).length-1}},editing:{_deleteRowCore:function(t){var n=this.callBase.apply(this,arguments),e=this.getController("data"),i=e.getKeyByRowIndex(t);n.done(()=>{var r=e.getRowIndexByKey(i),o=e.getVisibleRows();-1===r&&!o.length&&this.getController("focus")._resetFocusedRow()})}}},views:{rowsView:{_createRow:function(t){var n=this.callBase.apply(this,arguments);return this.option("focusedRowEnabled")&&t&&this.getController("focus").isRowFocused(t.key)&&n.addClass(Kk),n},_checkRowKeys:function(t){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var n=this._dataController.store();n&&!n.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(t){"updateFocusedRow"===t.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(t):this.callBase(t)},updateFocusElementTabIndex:function(t,n){var e=this.getController("keyboardNavigation").getVisibleRowIndex(),i=this._dataController.getVisibleRows()[e];!this.option("focusedRowEnabled")||null!=i&&i.isNewRow?this.callBase(t):this._setFocusedRowElementTabIndex(n)},_setFocusedRowElementTabIndex:function(t){var n=this.option("focusedRowKey"),e=this.option("tabIndex")||0,i=this._dataController,r=this._columnsController,o=i.getRowIndexByKey(n),a=this.option("focusedColumnIndex"),s=this._findRowElementForTabIndex();if(Z(this._scrollToFocusOnResize)||(this._scrollToFocusOnResize=()=>{this.scrollToElementVertically(this._findRowElementForTabIndex()),this.resizeCompleted.remove(this._scrollToFocusOnResize)}),s.attr("tabIndex",e),o>=0&&!t&&(a<0&&(a=0),o+=i.getRowIndexOffset(),a+=r.getColumnIndexOffset(),this.getController("keyboardNavigation").setFocusedCellPosition(o,a),this.getController("focus").isAutoNavigateToFocusedRow())){var l=i.dataSource(),u=l&&l.operationTypes();u&&!u.paging&&!i.isPagingByRendering()&&(this.resizeCompleted.remove(this._scrollToFocusOnResize),this.resizeCompleted.add(this._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var t=this.option("focusedRowKey"),n=this._dataController.getRowIndexByKey(t);return U(this.getRowElement(n>=0?n:0))},scrollToRowElement:function(t){var n=this.getController("data").getRowIndexByKey(t),e=U(this.getRow(n));return this.scrollToElementVertically(e)},scrollToElementVertically:function(t){var n=this.getScrollable();if(n&&t.length){var e=n.getScrollElementPosition(t,"vertical");return this.scrollTopPosition(e)}return(new et).resolve()},scrollTopPosition:function(t){var n=new et,e=this.getScrollable();if(e){var i=e.scrollTop(),r=()=>{e.off("scroll",r),n.resolve()};if(t!==i)return e.on("scroll",r),this._dataController.resetFilterApplying(),e.scrollTo({top:t}),n.promise()}return n.resolve()}}}}},z$t=Number.MAX_SAFE_INTEGER||9007199254740991;oi.registerModule("focus",se(!0,{},t2e,{extenders:{controllers:{data:{changeRowExpand:function(t,n){if(this.option("focusedRowEnabled")&&Array.isArray(t)&&this.isRowExpanded(t)){var e=this.getController("keyboardNavigation");(!n||!e.isKeyboardEnabled())&&this._isFocusedRowInsideGroup(t)&&this.option("focusedRowKey",t)}return this.callBase.apply(this,arguments)},_isFocusedRowInsideGroup:function(t){var n=this.getController("columns"),e=this.option("focusedRowKey"),i=this.getRowIndexByKey(e),r=i>=0&&this.getVisibleRows()[i],o=n.getGroupDataSourceParameters(!0);if(r)for(var a=0;a<t.length;++a)if(Ai(o[a]&&o[a].selector)(r.data)!==t[a])return!1;return!0},_getGroupPath:function(t,n){for(var e=[],i=[t];i&&i[0]&&n;){var r=i[0];void 0!==r.key&&e.push(r.key),i=r.items,n--}return e},_expandGroupByPath:function(t,n,e){var i=new et;return e++,t.expandRow(n.slice(0,e)).done(function(){e===n.length?i.resolve():t._expandGroupByPath(t,n,e).done(i.resolve).fail(i.reject)}).fail(i.reject),i.promise()},_calculateGlobalRowIndexByGroupedData:function(t){var n=this,e=n._dataSource,i=n._generateFilterByKey(t),r=new et,o=Array.isArray(t),a=e.group();return o?r.resolve(-1).promise():e._grouping._updatePagingOptions?(e.load({filter:n._concatWithCombinedFilter(i),group:a}).done(function(s){if(!s||0===s.length||!Z(s[0].key)||-1===s[0].key)return r.resolve(-1).promise();var l=n._getGroupPath(s[0],a.length);n._expandGroupByPath(n,l,0).done(function(){n._calculateExpandedRowGlobalIndex(r,t,l,a)}).fail(r.reject)}).fail(r.reject),r.promise()):(n._calculateGlobalRowIndexByFlatData(t,null,!0).done(r.resolve).fail(r.reject),r)},_calculateExpandedRowGlobalIndex:function(t,n,e,i){var u,r=ob(e,{group:i}),o=this._dataSource,a=this.option("scrolling.mode"),s="virtual"===a||"infinite"===a,l=o.pageSize();o._grouping._updatePagingOptions({skip:0,take:z$t},function(f,S){Tr(f.path,e)&&(u=S)}),this._calculateGlobalRowIndexByFlatData(n,r).done(function(f){var S,T;f<0?t.resolve(-1):(S=(u%l||l)+f-e.length,T=s?0:Math.floor(S/(l-e.length))*e.length,t.resolve(S=u+f+T))}).fail(t.reject)}}}}}));var n2e=Fn(),i2e="placeholder",r2e=t=>U(t).is(":visible"),G$t=(t,n)=>{var e,i;if(t){var r=(null===(e=n.to)||void 0===e?void 0:e.left)||0,o=(null===(i=n.to)||void 0===i?void 0:i.top)||0;t.style.transform="translate(".concat(r,"px,").concat(o,"px)"),t.style.transition=Hi.off?"":"transform ".concat(n.duration,"ms ").concat(n.easing)}},j$t=t=>{t&&(t.style.transform="",t.style.transition="")},o2e=JC.inherit({_init:function(){this.callBase(),this._sourceScrollHandler=this._handleSourceScroll.bind(this),this._sourceScrollableInfo=null},_getDefaultOptions:function(){return se(this.callBase(),{clone:!0,filter:"> *",itemOrientation:"vertical",dropFeedbackMode:"push",allowDropInsideItem:!1,allowReordering:!0,moveItemOnDrop:!1,onDragChange:null,onAdd:null,onRemove:null,onReorder:null,onPlaceholderPrepared:null,animation:{type:"slide",duration:300,easing:"ease"},fromIndex:null,toIndex:null,dropInsideItem:!1,itemPoints:null,fromIndexOffset:0,offset:0,autoUpdate:!1,draggableElementSize:0})},reset:function(){this.option({dropInsideItem:!1,toIndex:null,fromIndex:null,itemPoints:null,fromIndexOffset:0,draggableElementSize:0}),this._$placeholderElement&&this._$placeholderElement.remove(),this._$placeholderElement=null,!this._isIndicateMode()&&this._$modifiedItem&&(this._$modifiedItem.css("marginBottom",this._modifiedItemMargin),this._$modifiedItem=null)},_getPrevVisibleItem:function(t,n){return t.slice(0,n).reverse().filter(r2e)[0]},_dragStartHandler:function(t){if(this.callBase.apply(this,arguments),!0!==t.cancel){var n=this._getSourceElement();this._updateItemPoints(),this._subscribeToSourceScroll(t),this.option("fromIndex",this._getElementIndex(n)),this.option("fromIndexOffset",this.option("offset"))}},_subscribeToSourceScroll:function(t){var n=this._getScrollable(U(t.target));n&&(this._sourceScrollableInfo={element:n,scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop()},Se.off(n,"scroll",this._sourceScrollHandler),Se.on(n,"scroll",this._sourceScrollHandler))},_unsubscribeFromSourceScroll:function(){this._sourceScrollableInfo&&(Se.off(this._sourceScrollableInfo.element,"scroll",this._sourceScrollHandler),this._sourceScrollableInfo=null)},_handleSourceScroll:function(t){var n=this._sourceScrollableInfo;n&&["scrollLeft","scrollTop"].forEach(e=>{t.target[e]!==n[e]&&(this._correctItemPoints(t.target[e]-n[e]),this._movePlaceholder(),n[e]=t.target[e])})},_dragEnterHandler:function(t){if(this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&(this._subscribeToSourceScroll(t),this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){var n=this.option("itemPoints"),e=n[n.length-1];if(e){var i=this.$element(),r=this._getSourceElement(),o=this._isVerticalOrientation(),a=o?Zn(r,!0):ii(r,!0),s=i.get(0)[o?"scrollHeight":"scrollWidth"],l=i.get(0)[o?"scrollTop":"scrollLeft"],u=o?"top":"left",f=e[u],S=i.offset()[u],T=S+s-l-f;if(T<a&&o){var R=this._getItems(),L=U(this._getPrevVisibleItem(R));this._$modifiedItem=L,this._modifiedItemMargin=L.get(0).style.marginBottom,L.css("marginBottom",a-T);var z=L.closest(".dx-sortable"),j=z.data("dxScrollable")||z.data("dxScrollView");j&&j.update()}}}},_dragLeaveHandler:function(){this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&this._unsubscribeFromSourceScroll()},dragEnter:function(){this!==this._getTargetDraggable()&&this.option("toIndex",-1)},dragLeave:function(){this!==this._getTargetDraggable()&&this.option("toIndex",this.option("fromIndex"))},_allowDrop:function(t){var e=this._getTargetDraggable().$element(),i=this._getScrollable(e);if(i){var{left:r,right:o,top:a,bottom:s}=function K$t(t){var n=t.offset(),e=t[0].style,i=parseFloat(e.paddingLeft)||0,r=parseFloat(e.paddingRight)||0,o=parseFloat(e.paddingTop)||0,a=t[0].clientWidth-(i+r),s=Ln(t),l=n.left+i,u=n.top+o;return{left:l,right:l+a,top:u,bottom:u+s}}(i),l=this.option("toIndex"),f=this.option("itemPoints")?.filter(T=>T.index===l)[0];if(f&&void 0!==f.top)return this._isVerticalOrientation()?a<=Math.ceil(f.top)&&Math.floor(f.top)<=s:r<=Math.ceil(f.left)&&Math.floor(f.left)<=o}return!0},dragEnd:function(t){this._unsubscribeFromSourceScroll();var s,l,n=this._getSourceElement(),e=this._getSourceDraggable(),i=e.NAME!==this.NAME,r=this.option("toIndex"),o=t.event,a=this._allowDrop(o);return null!==r&&r>=0&&a&&(e!==this&&((s=this._fireAddEvent(o))||(l=this._fireRemoveEvent(o))),i&&lC(n),this.option("moveItemOnDrop")&&!s&&this._moveItem(n,r,l),e===this)?this._fireReorderEvent(o):(new et).resolve()},dragMove:function(t){var n=this.option("itemPoints");if(n){for(var a,e=this._isVerticalOrientation(),i=e?"top":"left",r=e?t.pageY:t.pageX,o=this.option("rtlEnabled"),s=n.length-1;s>=0;s--){var l=n[s+1]&&(n[s][i]+n[s+1][i])/2;if(!(!e&&o?r>l:l>r)&&void 0!==l)break;a=n[s]}a&&(this._updatePlaceholderPosition(t,a),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())}},_isIndicateMode:function(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder:function(){var t;return this._isIndicateMode()&&(t=U("<div>").addClass(this._addWidgetPrefix(i2e)).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=t,t},_getItems:function(){var t=this._getItemsSelector();return this._$content().find(t).not("."+this._addWidgetPrefix(i2e)).not("."+this._addWidgetPrefix("clone")).toArray()},_allowReordering:function(){return this._getSourceDraggable()!==this._getTargetDraggable()||this.option("allowReordering")},_isValidPoint:function(t,n,e){var i=this.option("allowDropInsideItem");return!!(e||this._allowReordering()||0===t&&i)&&(!this._isIndicateMode()||-1===n||t!==n&&(e||t!==n+1))},_getItemPoints:function(){var n,e,i,t=[],r=this.option("rtlEnabled"),o=this._isVerticalOrientation(),a=this._getItems(),s=a.filter(r2e),l=s.length,u=this._getDraggableElement(),f=s.indexOf(u.get(0));if(l){for(var S=0;S<=l;S++){var T=!o&&r^S===l,R=o&&S===l;S<l&&(e=(n=U(s[S])).offset(),i=ii(n)),t.push({dropInsideItem:!1,left:e.left+(T?i:0),top:e.top+(R?t[S-1].height:0),index:S===l?a.length:a.indexOf(n.get(0)),$item:n,width:ii(n),height:Zn(n),isValid:this._isValidPoint(S,f)})}if(this.option("allowDropInsideItem")){var L=t;t=[];for(var z=0;z<L.length;z++)t.push(L[z]),L[z+1]&&t.push(se({},L[z],{dropInsideItem:!0,top:Math.floor((L[z].top+L[z+1].top)/2),left:Math.floor((L[z].left+L[z+1].left)/2),isValid:this._isValidPoint(z,f,!0)}))}}else t.push({dropInsideItem:!1,index:0,isValid:!0});return t},_updateItemPoints:function(t){(t||this.option("autoUpdate")||!this.option("itemPoints"))&&this.option("itemPoints",this._getItemPoints())},_correctItemPoints:function(t){var n=this.option("itemPoints");if(t&&n&&!this.option("autoUpdate")){var i=this._isVerticalOrientation()?"top":"left";n.forEach(r=>{r[i]-=t})}},_getElementIndex:function(t){return this._getItems().indexOf(t.get(0))},_getDragTemplateArgs:function(t){var n=this.callBase.apply(this,arguments);return n.model.fromIndex=this._getElementIndex(t),n},_togglePlaceholder:function(t){this._$placeholderElement&&this._$placeholderElement.toggle(t)},_isVerticalOrientation:function(){return"vertical"===this.option("itemOrientation")},_normalizeToIndex:function(t,n){var e=this._getSourceDraggable()!==this._getTargetDraggable(),i=this.option("fromIndex");return null===t?i:Math.max(e||i>=t||n?t:t-1,0)},_updatePlaceholderPosition:function(t,n){var e=this._getSourceDraggable(),i=this._normalizeToIndex(n.index,n.dropInsideItem),r=se(this._getEventArgs(t),{toIndex:i,dropInsideItem:n.dropInsideItem});n.isValid&&this._getAction("onDragChange")(r),!r.cancel&&n.isValid?(this.option({dropInsideItem:n.dropInsideItem,toIndex:n.index}),this._getAction("onPlaceholderPrepared")(se(this._getEventArgs(t),{placeholderElement:kn(this._$placeholderElement),dragElement:kn(e._$dragElement)})),this._updateItemPoints()):n.isValid||this.option({dropInsideItem:!1,toIndex:null})},_makeWidthCorrection:function(t,n){if(this._$scrollable=this._getScrollable(t),this._$scrollable){var e=wn(this._$scrollable),i=this._$scrollable.offset().left-t.offset().left,r=ii(t)-i-e;i>0&&(n-=i),r>0&&(n-=r)}return n},_updatePlaceholderSizes:function(t,n){var e=this.option("dropInsideItem"),i=U(n),r=this._isVerticalOrientation(),o="",a="";t.toggleClass(this._addWidgetPrefix("placeholder-inside"),e),(r||e)&&(o=ii(i)),(!r||e)&&(a=Zn(i)),o=this._makeWidthCorrection(i,o),t.css({width:o,height:a})},_moveItem:function(t,n,e){var i,r=this._getItems(),o=r[n],a=this._getSourceDraggable();e&&(t=t.clone(),a._toggleDragSourceClass(!1,t)),o||(i=r[n-1]),this._moveItemCore(t,o,i)},_moveItemCore:function(t,n,e){n||e?e?t.insertAfter(U(e)):t.insertBefore(U(n)):t.appendTo(this.$element())},_getDragStartArgs:function(t,n){return se(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(n)})},_getEventArgs:function(t){var n,e,i,r=this._getSourceDraggable(),o=this._getTargetDraggable(),a=null===(n=null===(e=this._getSourceElement())||void 0===e||null===(i=e.parent())||void 0===i?void 0:i.length)||void 0===n||n,s=o.option("dropInsideItem"),l=s||!a;return se(this.callBase.apply(this,arguments),{fromIndex:r.option("fromIndex"),toIndex:this._normalizeToIndex(o.option("toIndex"),l),dropInsideItem:s})},_optionChanged:function(t){var n=t.name;switch(n){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this["_"+n+"Action"]=this._createActionByOption(n);break;case"itemOrientation":case"allowDropInsideItem":case"moveItemOnDrop":case"dropFeedbackMode":case"itemPoints":case"animation":case"allowReordering":case"fromIndexOffset":case"offset":case"draggableElementSize":case"autoUpdate":break;case"fromIndex":[!1,!0].forEach(e=>{var i=e?t.value:t.previousValue;if(null!==i){var r=U(this._getItems()[i]);this._toggleDragSourceClass(e,r)}});break;case"dropInsideItem":this._optionChangedDropInsideItem(t);break;case"toIndex":this._optionChangedToIndex(t);break;default:this.callBase(t)}},_optionChangedDropInsideItem:function(){this._isIndicateMode()&&this._$placeholderElement&&this._movePlaceholder()},_isPositionVisible:function(t){var e,n=this.$element();if("hidden"!==n.css("overflow")?e=n.get(0):n.parents().each(function(){if("visible"!==U(this).css("overflow"))return e=this,!1}),e){var i=Mi(e),r=this._isVerticalOrientation(),o=r?"top":"left",s=r?n2e.pageYOffset:n2e.pageXOffset;if(t[o]<i[o]+s||t[o]>i[r?"bottom":"right"]+s)return!1}return!0},_optionChangedToIndex:function(t){var n=t.value;if(this._isIndicateMode()){var e=null!==n&&n>=0;this._togglePlaceholder(e),e&&this._movePlaceholder()}else this._moveItems(t.previousValue,t.value,t.fullUpdate)},update:function(){if(null!==this.option("fromIndex")||null!==this.option("toIndex")){this._updateItemPoints(!0),this._updateDragSourceClass();var t=this.option("toIndex");this._optionChangedToIndex({value:t,fullUpdate:!0})}},_updateDragSourceClass:function(){var t=this._getActualFromIndex(),n=U(this._getItems()[t]);n.length&&(this._$sourceElement=n,this._toggleDragSourceClass(!0,n))},_makeLeftCorrection:function(t){var n=this._$scrollable;if(n&&this._isVerticalOrientation()){var e=n.offset().left-t;e>0&&(t+=e)}return t},_movePlaceholder:function(){var t=this._$placeholderElement||this._createPlaceholder();if(t){var n=this._getItems(),e=this.option("toIndex"),i=this._isVerticalOrientation(),r=this.option("rtlEnabled"),o=this.option("dropInsideItem"),a=null,s=n[e];if(s){var l=U(s);a=l.offset(),!i&&r&&!o&&(a.left+=ii(l,!0))}else{var u=s=this._getPrevVisibleItem(n,e);u&&(a=U(u).offset(),i?a.top+=Zn(u,!0):r||(a.left+=ii(u,!0)))}this._updatePlaceholderSizes(t,s),a&&!this._isPositionVisible(a)&&(a=null),a&&(a.left=this._makeLeftCorrection(a.left),this._move(a,t)),t.toggle(!!a)}},_getPositions:function(t,n,e,i){for(var r=[],o=0;o<t.length;o++){var a=0;null!==i&&null!==e?(-1===e?o>=i&&(a=n):-1===i?o>e&&(a=-n):e<i?o>e&&o<i&&(a=-n):e>i&&o>=i&&o<e&&(a=n),r.push(a)):r.push(a)}return r},_getDraggableElementSize:function(t){var n=this._getDraggableElement(),e=this.option("draggableElementSize");return e||(e=t?(Zn(n)+Zn(n,!0))/2:(ii(n)+ii(n,!0))/2,this.option("autoUpdate")||this.option("draggableElementSize",e)),e},_getActualFromIndex:function(){var{fromIndex:t,fromIndexOffset:n,offset:e}=this.option();return null==t?null:t+n-e},_moveItems:function(t,n,e){for(var i=this._getActualFromIndex(),r=this._isVerticalOrientation(),o=r?"top":"left",a=this._getDraggableElementSize(r),s=this._getItems(),l=this._getPositions(s,a,i,t),u=this._getPositions(s,a,i,n),f=this.option("animation"),S=this.option("rtlEnabled"),T=0;T<s.length;T++){var R=s[T],L=l[T],z=u[T];null===n||null===i?j$t(R):(L!==z||e&&z)&&G$t(R,se({},f,{to:{[o]:!r&&S?-z:z}}))}},_toggleDragSourceClass:function(t,n){var e=n||this._$sourceElement;this.callBase.apply(this,arguments),this._isIndicateMode()||e&&e.toggleClass(this._addWidgetPrefix("source-hidden"),t)},_dispose:function(){this.reset(),this.callBase()},_fireAddEvent:function(t){var n=this._getEventArgs(t);return this._getAction("onAdd")(n),n.cancel},_fireRemoveEvent:function(t){var n=this._getSourceDraggable(),e=this._getEventArgs(t);return n._getAction("onRemove")(e),e.cancel},_fireReorderEvent:function(t){var n=this._getEventArgs(t);return this._getAction("onReorder")(n),n.promise||(new et).resolve()}});On("dxSortable",o2e);const $Z=o2e;var a2e="dx-command-drag",Z$t="dx-sortable-without-handle",X$t={init:function(){this.callBase.apply(this,arguments),this._updateHandleColumn()},_allowReordering:function(){var t=this.option("rowDragging");return!(!t||!(t.allowReordering||t.allowDropInsideItem||t.group))},_updateHandleColumn:function(){var t=this.option("rowDragging"),n=this._allowReordering(),e=this._columnsController,i=n&&t.showDragIcons;e&&e.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",cssClass:a2e,width:"auto",cellTemplate:this._getHandleTemplate(),visible:i}),e.columnOption("type:drag","visible",i)},_renderContent:function(){var t=this.option("rowDragging"),n=this._allowReordering(),e=this.callBase.apply(this,arguments),i=this._isFixedTableRendering,r="_sortable",o="_sortableFixed",a=i?o:r,s=i?r:o,l=S=>{var T;null===(T=this[o])||void 0===T||T.$element().css("pointerEvents",S?"auto":"")},u=".dx-row:not(.dx-freespace-row):not(.dx-virtual-row):not(.dx-header-row):not(.dx-footer-row)",f=this.option("dataRowTemplate")?"> table > tbody".concat(u):"> table > tbody > ".concat(u);return(n||this[a])&&e.length&&(this[a]=this._createComponent(e,$Z,se({component:this.component,contentTemplate:null,filter:f,cursorOffset:S=>{var T=S.event,R=U(this.element()).offset();return{x:T.pageX-R.left}},onDraggableElementShown:S=>{if(!t.dragTemplate){var R=U(S.dragElement).children(".dx-widget").data(this.component.NAME);this._synchronizeScrollLeftPosition(R)}},dragTemplate:this._getDraggableRowTemplate(),handle:t.showDragIcons&&".".concat(a2e),dropFeedbackMode:"indicate"},t,{onDragStart:S=>{var T,R;null===(T=this.getController("keyboardNavigation"))||void 0===T||T._resetFocusedCell();var L=S.component.getVisibleRows()[S.fromIndex];S.itemData=L&&L.data,S.cancel=!n||!(L&&"data"===L.rowType),null===(R=t.onDragStart)||void 0===R||R.call(t,S)},onDragEnter:()=>{l(!0)},onDragLeave:()=>{l(!1)},onDragEnd:S=>{var T;l(!1),null===(T=t.onDragEnd)||void 0===T||T.call(t,S)},onAdd:S=>{var T;l(!1),null===(T=t.onAdd)||void 0===T||T.call(t,S)},dropFeedbackMode:t.dropFeedbackMode,onOptionChanged:S=>{this[o]&&("fromIndex"===S.name||"toIndex"===S.name)&&this[s].option(S.name,S.value)}})),e.toggleClass("dx-scrollable-container",i),e.toggleClass(Z$t,n&&!t.showDragIcons)),e},_renderCore(t){this.callBase.apply(this,arguments),t&&"update"===t.changeType&&t.repaintChangesOnly&&vn.isVirtualRowRendering(this)&&Ns(()=>{this._updateSortable()})},_updateSortable(){var t=this._dataController.getRowIndexOffset();[this._sortable,this._sortableFixed].forEach(n=>{n?.option("offset",t),n?.update()})},_resizeCore:function(){this.callBase.apply(this,arguments),this._updateSortable()},_getDraggableGridOptions:function(t){var n=this.option(),e=this.getColumns(),i=U(this.getRowElement(t.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:"never"},pager:{visible:!1},loadingTimeout:null,columnFixing:n.columnFixing,columnAutoWidth:n.columnAutoWidth,showColumnLines:n.showColumnLines,columns:e.map(r=>({width:r.width||r.visibleWidth,fixed:r.fixed,fixedPosition:r.fixedPosition})),onRowPrepared:r=>{var o=r.component.getView("rowsView");U(r.rowElement).replaceWith(i.eq(o._isFixedTableRendering?1:0).clone())}}},_synchronizeScrollLeftPosition:function(t){var n=t?.getScrollable();n?.scrollTo({x:this._scrollLeft})},_getDraggableRowTemplate:function(){return t=>{var n=this.component.$element(),e=U("<div>");oa(e,wn(n));var i=this._dataController.items(),o=this._getDraggableGridOptions(i&&i[t.fromIndex]);return this._createComponent(e,this.component.NAME,o),e.find(".dx-gridbase-container").children(":not(.".concat(this.addWidgetPrefix("rowsview"),")")).hide(),e}},_getHandleTemplate:function(){return(t,n)=>{if("data"===n.rowType)return U(t).addClass("dx-cell-focus-disabled"),U("<span>").addClass(this.addWidgetPrefix("drag-icon"));vn.setEmptyText(U(t))}},optionChanged:function(t){"rowDragging"===t.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),t.handled=!0),this.callBase.apply(this,arguments)}},s2e={defaultOptions:function(){return{rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}},extenders:{views:{rowsView:X$t}}};oi.registerModule("rowDragging",s2e);const l2e=l6t,J$t=l2e;let Q$t=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this._createEventEmitters([{subscribe:"adaptiveDetailRowPreparing",emit:"onAdaptiveDetailRowPreparing"},{subscribe:"cellClick",emit:"onCellClick"},{subscribe:"cellDblClick",emit:"onCellDblClick"},{subscribe:"cellHoverChanged",emit:"onCellHoverChanged"},{subscribe:"cellPrepared",emit:"onCellPrepared"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"contextMenuPreparing",emit:"onContextMenuPreparing"},{subscribe:"dataErrorOccurred",emit:"onDataErrorOccurred"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"editCanceled",emit:"onEditCanceled"},{subscribe:"editCanceling",emit:"onEditCanceling"},{subscribe:"editingStart",emit:"onEditingStart"},{subscribe:"editorPrepared",emit:"onEditorPrepared"},{subscribe:"editorPreparing",emit:"onEditorPreparing"},{subscribe:"exporting",emit:"onExporting"},{subscribe:"focusedCellChanged",emit:"onFocusedCellChanged"},{subscribe:"focusedCellChanging",emit:"onFocusedCellChanging"},{subscribe:"focusedRowChanged",emit:"onFocusedRowChanged"},{subscribe:"focusedRowChanging",emit:"onFocusedRowChanging"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"initNewRow",emit:"onInitNewRow"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"rowClick",emit:"onRowClick"},{subscribe:"rowCollapsed",emit:"onRowCollapsed"},{subscribe:"rowCollapsing",emit:"onRowCollapsing"},{subscribe:"rowDblClick",emit:"onRowDblClick"},{subscribe:"rowExpanded",emit:"onRowExpanded"},{subscribe:"rowExpanding",emit:"onRowExpanding"},{subscribe:"rowInserted",emit:"onRowInserted"},{subscribe:"rowInserting",emit:"onRowInserting"},{subscribe:"rowPrepared",emit:"onRowPrepared"},{subscribe:"rowRemoved",emit:"onRowRemoved"},{subscribe:"rowRemoving",emit:"onRowRemoving"},{subscribe:"rowUpdated",emit:"onRowUpdated"},{subscribe:"rowUpdating",emit:"onRowUpdating"},{subscribe:"rowValidating",emit:"onRowValidating"},{subscribe:"saved",emit:"onSaved"},{subscribe:"saving",emit:"onSaving"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"toolbarPreparing",emit:"onToolbarPreparing"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowColumnReorderingChange"},{emit:"allowColumnResizingChange"},{emit:"autoNavigateToFocusedRowChange"},{emit:"cacheEnabledChange"},{emit:"cellHintEnabledChange"},{emit:"columnAutoWidthChange"},{emit:"columnChooserChange"},{emit:"columnFixingChange"},{emit:"columnHidingEnabledChange"},{emit:"columnMinWidthChange"},{emit:"columnResizingModeChange"},{emit:"columnsChange"},{emit:"columnWidthChange"},{emit:"customizeColumnsChange"},{emit:"dataRowTemplateChange"},{emit:"dataSourceChange"},{emit:"dateSerializationFormatChange"},{emit:"disabledChange"},{emit:"editingChange"},{emit:"elementAttrChange"},{emit:"errorRowEnabledChange"},{emit:"exportChange"},{emit:"filterBuilderChange"},{emit:"filterBuilderPopupChange"},{emit:"filterPanelChange"},{emit:"filterRowChange"},{emit:"filterSyncEnabledChange"},{emit:"filterValueChange"},{emit:"focusedColumnIndexChange"},{emit:"focusedRowEnabledChange"},{emit:"focusedRowIndexChange"},{emit:"focusedRowKeyChange"},{emit:"groupingChange"},{emit:"groupPanelChange"},{emit:"headerFilterChange"},{emit:"heightChange"},{emit:"highlightChangesChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"keyboardNavigationChange"},{emit:"keyExprChange"},{emit:"loadPanelChange"},{emit:"masterDetailChange"},{emit:"noDataTextChange"},{emit:"pagerChange"},{emit:"pagingChange"},{emit:"remoteOperationsChange"},{emit:"renderAsyncChange"},{emit:"repaintChangesOnlyChange"},{emit:"rowAlternationEnabledChange"},{emit:"rowDraggingChange"},{emit:"rowTemplateChange"},{emit:"rtlEnabledChange"},{emit:"scrollingChange"},{emit:"searchPanelChange"},{emit:"selectedRowKeysChange"},{emit:"selectionChange"},{emit:"selectionFilterChange"},{emit:"showBordersChange"},{emit:"showColumnHeadersChange"},{emit:"showColumnLinesChange"},{emit:"showRowLinesChange"},{emit:"sortByGroupSummaryInfoChange"},{emit:"sortingChange"},{emit:"stateStoringChange"},{emit:"summaryChange"},{emit:"syncLookupFilterValuesChange"},{emit:"tabIndexChange"},{emit:"toolbarChange"},{emit:"twoWayBindingEnabledChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wordWrapEnabledChange"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get allowColumnReordering(){return this._getOption("allowColumnReordering")}set allowColumnReordering(e){this._setOption("allowColumnReordering",e)}get allowColumnResizing(){return this._getOption("allowColumnResizing")}set allowColumnResizing(e){this._setOption("allowColumnResizing",e)}get autoNavigateToFocusedRow(){return this._getOption("autoNavigateToFocusedRow")}set autoNavigateToFocusedRow(e){this._setOption("autoNavigateToFocusedRow",e)}get cacheEnabled(){return this._getOption("cacheEnabled")}set cacheEnabled(e){this._setOption("cacheEnabled",e)}get cellHintEnabled(){return this._getOption("cellHintEnabled")}set cellHintEnabled(e){this._setOption("cellHintEnabled",e)}get columnAutoWidth(){return this._getOption("columnAutoWidth")}set columnAutoWidth(e){this._setOption("columnAutoWidth",e)}get columnChooser(){return this._getOption("columnChooser")}set columnChooser(e){this._setOption("columnChooser",e)}get columnFixing(){return this._getOption("columnFixing")}set columnFixing(e){this._setOption("columnFixing",e)}get columnHidingEnabled(){return this._getOption("columnHidingEnabled")}set columnHidingEnabled(e){this._setOption("columnHidingEnabled",e)}get columnMinWidth(){return this._getOption("columnMinWidth")}set columnMinWidth(e){this._setOption("columnMinWidth",e)}get columnResizingMode(){return this._getOption("columnResizingMode")}set columnResizingMode(e){this._setOption("columnResizingMode",e)}get columns(){return this._getOption("columns")}set columns(e){this._setOption("columns",e)}get columnWidth(){return this._getOption("columnWidth")}set columnWidth(e){this._setOption("columnWidth",e)}get customizeColumns(){return this._getOption("customizeColumns")}set customizeColumns(e){this._setOption("customizeColumns",e)}get dataRowTemplate(){return this._getOption("dataRowTemplate")}set dataRowTemplate(e){this._setOption("dataRowTemplate",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(e){this._setOption("dateSerializationFormat",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get editing(){return this._getOption("editing")}set editing(e){this._setOption("editing",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get errorRowEnabled(){return this._getOption("errorRowEnabled")}set errorRowEnabled(e){this._setOption("errorRowEnabled",e)}get export(){return this._getOption("export")}set export(e){this._setOption("export",e)}get filterBuilder(){return this._getOption("filterBuilder")}set filterBuilder(e){this._setOption("filterBuilder",e)}get filterBuilderPopup(){return this._getOption("filterBuilderPopup")}set filterBuilderPopup(e){this._setOption("filterBuilderPopup",e)}get filterPanel(){return this._getOption("filterPanel")}set filterPanel(e){this._setOption("filterPanel",e)}get filterRow(){return this._getOption("filterRow")}set filterRow(e){this._setOption("filterRow",e)}get filterSyncEnabled(){return this._getOption("filterSyncEnabled")}set filterSyncEnabled(e){this._setOption("filterSyncEnabled",e)}get filterValue(){return this._getOption("filterValue")}set filterValue(e){this._setOption("filterValue",e)}get focusedColumnIndex(){return this._getOption("focusedColumnIndex")}set focusedColumnIndex(e){this._setOption("focusedColumnIndex",e)}get focusedRowEnabled(){return this._getOption("focusedRowEnabled")}set focusedRowEnabled(e){this._setOption("focusedRowEnabled",e)}get focusedRowIndex(){return this._getOption("focusedRowIndex")}set focusedRowIndex(e){this._setOption("focusedRowIndex",e)}get focusedRowKey(){return this._getOption("focusedRowKey")}set focusedRowKey(e){this._setOption("focusedRowKey",e)}get grouping(){return this._getOption("grouping")}set grouping(e){this._setOption("grouping",e)}get groupPanel(){return this._getOption("groupPanel")}set groupPanel(e){this._setOption("groupPanel",e)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(e){this._setOption("headerFilter",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get highlightChanges(){return this._getOption("highlightChanges")}set highlightChanges(e){this._setOption("highlightChanges",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get keyboardNavigation(){return this._getOption("keyboardNavigation")}set keyboardNavigation(e){this._setOption("keyboardNavigation",e)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(e){this._setOption("keyExpr",e)}get loadPanel(){return this._getOption("loadPanel")}set loadPanel(e){this._setOption("loadPanel",e)}get masterDetail(){return this._getOption("masterDetail")}set masterDetail(e){this._setOption("masterDetail",e)}get noDataText(){return this._getOption("noDataText")}set noDataText(e){this._setOption("noDataText",e)}get pager(){return this._getOption("pager")}set pager(e){this._setOption("pager",e)}get paging(){return this._getOption("paging")}set paging(e){this._setOption("paging",e)}get remoteOperations(){return this._getOption("remoteOperations")}set remoteOperations(e){this._setOption("remoteOperations",e)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(e){this._setOption("renderAsync",e)}get repaintChangesOnly(){return this._getOption("repaintChangesOnly")}set repaintChangesOnly(e){this._setOption("repaintChangesOnly",e)}get rowAlternationEnabled(){return this._getOption("rowAlternationEnabled")}set rowAlternationEnabled(e){this._setOption("rowAlternationEnabled",e)}get rowDragging(){return this._getOption("rowDragging")}set rowDragging(e){this._setOption("rowDragging",e)}get rowTemplate(){return this._getOption("rowTemplate")}set rowTemplate(e){this._setOption("rowTemplate",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get scrolling(){return this._getOption("scrolling")}set scrolling(e){this._setOption("scrolling",e)}get searchPanel(){return this._getOption("searchPanel")}set searchPanel(e){this._setOption("searchPanel",e)}get selectedRowKeys(){return this._getOption("selectedRowKeys")}set selectedRowKeys(e){this._setOption("selectedRowKeys",e)}get selection(){return this._getOption("selection")}set selection(e){this._setOption("selection",e)}get selectionFilter(){return this._getOption("selectionFilter")}set selectionFilter(e){this._setOption("selectionFilter",e)}get showBorders(){return this._getOption("showBorders")}set showBorders(e){this._setOption("showBorders",e)}get showColumnHeaders(){return this._getOption("showColumnHeaders")}set showColumnHeaders(e){this._setOption("showColumnHeaders",e)}get showColumnLines(){return this._getOption("showColumnLines")}set showColumnLines(e){this._setOption("showColumnLines",e)}get showRowLines(){return this._getOption("showRowLines")}set showRowLines(e){this._setOption("showRowLines",e)}get sortByGroupSummaryInfo(){return this._getOption("sortByGroupSummaryInfo")}set sortByGroupSummaryInfo(e){this._setOption("sortByGroupSummaryInfo",e)}get sorting(){return this._getOption("sorting")}set sorting(e){this._setOption("sorting",e)}get stateStoring(){return this._getOption("stateStoring")}set stateStoring(e){this._setOption("stateStoring",e)}get summary(){return this._getOption("summary")}set summary(e){this._setOption("summary",e)}get syncLookupFilterValues(){return this._getOption("syncLookupFilterValues")}set syncLookupFilterValues(e){this._setOption("syncLookupFilterValues",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get toolbar(){return this._getOption("toolbar")}set toolbar(e){this._setOption("toolbar",e)}get twoWayBindingEnabled(){return this._getOption("twoWayBindingEnabled")}set twoWayBindingEnabled(e){this._setOption("twoWayBindingEnabled",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get wordWrapEnabled(){return this._getOption("wordWrapEnabled")}set wordWrapEnabled(e){this._setOption("wordWrapEnabled",e)}get columnsChildren(){return this._getOption("columns")}set columnsChildren(e){this.setChildren("columns",e)}get sortByGroupSummaryInfoChildren(){return this._getOption("sortByGroupSummaryInfo")}set sortByGroupSummaryInfoChildren(e){this.setChildren("sortByGroupSummaryInfo",e)}_createInstance(e,i){return new J$t(e,i)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("columns",e),this.setupChanges("dataSource",e),this.setupChanges("keyExpr",e),this.setupChanges("selectedRowKeys",e),this.setupChanges("sortByGroupSummaryInfo",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("columns"),this._idh.doCheck("dataSource"),this._idh.doCheck("keyExpr"),this._idh.doCheck("selectedRowKeys"),this._idh.doCheck("sortByGroupSummaryInfo"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-data-grid"]],contentQueries:function(e,i,r){if(1&e&&(In(r,NT,4),In(r,Qbt,4)),2&e){let o;yn(o=Cn())&&(i.columnsChildren=o),yn(o=Cn())&&(i.sortByGroupSummaryInfoChildren=o)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowColumnReordering:"allowColumnReordering",allowColumnResizing:"allowColumnResizing",autoNavigateToFocusedRow:"autoNavigateToFocusedRow",cacheEnabled:"cacheEnabled",cellHintEnabled:"cellHintEnabled",columnAutoWidth:"columnAutoWidth",columnChooser:"columnChooser",columnFixing:"columnFixing",columnHidingEnabled:"columnHidingEnabled",columnMinWidth:"columnMinWidth",columnResizingMode:"columnResizingMode",columns:"columns",columnWidth:"columnWidth",customizeColumns:"customizeColumns",dataRowTemplate:"dataRowTemplate",dataSource:"dataSource",dateSerializationFormat:"dateSerializationFormat",disabled:"disabled",editing:"editing",elementAttr:"elementAttr",errorRowEnabled:"errorRowEnabled",export:"export",filterBuilder:"filterBuilder",filterBuilderPopup:"filterBuilderPopup",filterPanel:"filterPanel",filterRow:"filterRow",filterSyncEnabled:"filterSyncEnabled",filterValue:"filterValue",focusedColumnIndex:"focusedColumnIndex",focusedRowEnabled:"focusedRowEnabled",focusedRowIndex:"focusedRowIndex",focusedRowKey:"focusedRowKey",grouping:"grouping",groupPanel:"groupPanel",headerFilter:"headerFilter",height:"height",highlightChanges:"highlightChanges",hint:"hint",hoverStateEnabled:"hoverStateEnabled",keyboardNavigation:"keyboardNavigation",keyExpr:"keyExpr",loadPanel:"loadPanel",masterDetail:"masterDetail",noDataText:"noDataText",pager:"pager",paging:"paging",remoteOperations:"remoteOperations",renderAsync:"renderAsync",repaintChangesOnly:"repaintChangesOnly",rowAlternationEnabled:"rowAlternationEnabled",rowDragging:"rowDragging",rowTemplate:"rowTemplate",rtlEnabled:"rtlEnabled",scrolling:"scrolling",searchPanel:"searchPanel",selectedRowKeys:"selectedRowKeys",selection:"selection",selectionFilter:"selectionFilter",showBorders:"showBorders",showColumnHeaders:"showColumnHeaders",showColumnLines:"showColumnLines",showRowLines:"showRowLines",sortByGroupSummaryInfo:"sortByGroupSummaryInfo",sorting:"sorting",stateStoring:"stateStoring",summary:"summary",syncLookupFilterValues:"syncLookupFilterValues",tabIndex:"tabIndex",toolbar:"toolbar",twoWayBindingEnabled:"twoWayBindingEnabled",visible:"visible",width:"width",wordWrapEnabled:"wordWrapEnabled"},outputs:{onAdaptiveDetailRowPreparing:"onAdaptiveDetailRowPreparing",onCellClick:"onCellClick",onCellDblClick:"onCellDblClick",onCellHoverChanged:"onCellHoverChanged",onCellPrepared:"onCellPrepared",onContentReady:"onContentReady",onContextMenuPreparing:"onContextMenuPreparing",onDataErrorOccurred:"onDataErrorOccurred",onDisposing:"onDisposing",onEditCanceled:"onEditCanceled",onEditCanceling:"onEditCanceling",onEditingStart:"onEditingStart",onEditorPrepared:"onEditorPrepared",onEditorPreparing:"onEditorPreparing",onExporting:"onExporting",onFocusedCellChanged:"onFocusedCellChanged",onFocusedCellChanging:"onFocusedCellChanging",onFocusedRowChanged:"onFocusedRowChanged",onFocusedRowChanging:"onFocusedRowChanging",onInitialized:"onInitialized",onInitNewRow:"onInitNewRow",onKeyDown:"onKeyDown",onOptionChanged:"onOptionChanged",onRowClick:"onRowClick",onRowCollapsed:"onRowCollapsed",onRowCollapsing:"onRowCollapsing",onRowDblClick:"onRowDblClick",onRowExpanded:"onRowExpanded",onRowExpanding:"onRowExpanding",onRowInserted:"onRowInserted",onRowInserting:"onRowInserting",onRowPrepared:"onRowPrepared",onRowRemoved:"onRowRemoved",onRowRemoving:"onRowRemoving",onRowUpdated:"onRowUpdated",onRowUpdating:"onRowUpdating",onRowValidating:"onRowValidating",onSaved:"onSaved",onSaving:"onSaving",onSelectionChanged:"onSelectionChanged",onToolbarPreparing:"onToolbarPreparing",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowColumnReorderingChange:"allowColumnReorderingChange",allowColumnResizingChange:"allowColumnResizingChange",autoNavigateToFocusedRowChange:"autoNavigateToFocusedRowChange",cacheEnabledChange:"cacheEnabledChange",cellHintEnabledChange:"cellHintEnabledChange",columnAutoWidthChange:"columnAutoWidthChange",columnChooserChange:"columnChooserChange",columnFixingChange:"columnFixingChange",columnHidingEnabledChange:"columnHidingEnabledChange",columnMinWidthChange:"columnMinWidthChange",columnResizingModeChange:"columnResizingModeChange",columnsChange:"columnsChange",columnWidthChange:"columnWidthChange",customizeColumnsChange:"customizeColumnsChange",dataRowTemplateChange:"dataRowTemplateChange",dataSourceChange:"dataSourceChange",dateSerializationFormatChange:"dateSerializationFormatChange",disabledChange:"disabledChange",editingChange:"editingChange",elementAttrChange:"elementAttrChange",errorRowEnabledChange:"errorRowEnabledChange",exportChange:"exportChange",filterBuilderChange:"filterBuilderChange",filterBuilderPopupChange:"filterBuilderPopupChange",filterPanelChange:"filterPanelChange",filterRowChange:"filterRowChange",filterSyncEnabledChange:"filterSyncEnabledChange",filterValueChange:"filterValueChange",focusedColumnIndexChange:"focusedColumnIndexChange",focusedRowEnabledChange:"focusedRowEnabledChange",focusedRowIndexChange:"focusedRowIndexChange",focusedRowKeyChange:"focusedRowKeyChange",groupingChange:"groupingChange",groupPanelChange:"groupPanelChange",headerFilterChange:"headerFilterChange",heightChange:"heightChange",highlightChangesChange:"highlightChangesChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",keyboardNavigationChange:"keyboardNavigationChange",keyExprChange:"keyExprChange",loadPanelChange:"loadPanelChange",masterDetailChange:"masterDetailChange",noDataTextChange:"noDataTextChange",pagerChange:"pagerChange",pagingChange:"pagingChange",remoteOperationsChange:"remoteOperationsChange",renderAsyncChange:"renderAsyncChange",repaintChangesOnlyChange:"repaintChangesOnlyChange",rowAlternationEnabledChange:"rowAlternationEnabledChange",rowDraggingChange:"rowDraggingChange",rowTemplateChange:"rowTemplateChange",rtlEnabledChange:"rtlEnabledChange",scrollingChange:"scrollingChange",searchPanelChange:"searchPanelChange",selectedRowKeysChange:"selectedRowKeysChange",selectionChange:"selectionChange",selectionFilterChange:"selectionFilterChange",showBordersChange:"showBordersChange",showColumnHeadersChange:"showColumnHeadersChange",showColumnLinesChange:"showColumnLinesChange",showRowLinesChange:"showRowLinesChange",sortByGroupSummaryInfoChange:"sortByGroupSummaryInfoChange",sortingChange:"sortingChange",stateStoringChange:"stateStoringChange",summaryChange:"summaryChange",syncLookupFilterValuesChange:"syncLookupFilterValuesChange",tabIndexChange:"tabIndexChange",toolbarChange:"toolbarChange",twoWayBindingEnabledChange:"twoWayBindingEnabledChange",visibleChange:"visibleChange",widthChange:"widthChange",wordWrapEnabledChange:"wordWrapEnabledChange"},features:[ot([Zt,nn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),u2e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[kR,MR,Bg,C_,Wa,Fg,Jw,$r,NR,Lo,v_,Ag,TR,VR,zw,$i,s1,Tg,Hw,JR,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,aa,LR,Ww,w_,jw,qw,RR,BR,Kw,e1,S_e,x_e,$R,Xw,V_e,ZR,XR,rL,oL,Mg,S_,sL,lL,cve,r1,a1,_ve,b_e,Eve,mve,Vg,bi,tn,mi],kR,MR,Bg,C_,Wa,Fg,Jw,$r,NR,Lo,v_,Ag,TR,VR,zw,$i,s1,Tg,Hw,JR,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,aa,LR,Ww,w_,jw,qw,RR,BR,Kw,e1,S_e,x_e,$R,Xw,V_e,ZR,XR,rL,oL,Mg,S_,sL,lL,cve,r1,a1,_ve,b_e,Eve,mve,Vg,tn]}),t})();const eqt={provide:Fo,useExisting:At(()=>tqt),multi:!0};let tqt=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"adaptivityEnabledChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"buttonsChange"},{emit:"calendarOptionsChange"},{emit:"cancelButtonTextChange"},{emit:"dateOutOfRangeMessageChange"},{emit:"dateSerializationFormatChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"disabledDatesChange"},{emit:"displayFormatChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"intervalChange"},{emit:"invalidDateMessageChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxChange"},{emit:"maxLengthChange"},{emit:"minChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"pickerTypeChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showAnalogClockChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"todayButtonTextChange"},{emit:"typeChange"},{emit:"useMaskBehaviorChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(e){this._setOption("acceptCustomValue",e)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get adaptivityEnabled(){return this._getOption("adaptivityEnabled")}set adaptivityEnabled(e){this._setOption("adaptivityEnabled",e)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(e){this._setOption("applyButtonText",e)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(e){this._setOption("applyValueMode",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get calendarOptions(){return this._getOption("calendarOptions")}set calendarOptions(e){this._setOption("calendarOptions",e)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(e){this._setOption("cancelButtonText",e)}get dateOutOfRangeMessage(){return this._getOption("dateOutOfRangeMessage")}set dateOutOfRangeMessage(e){this._setOption("dateOutOfRangeMessage",e)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(e){this._setOption("dateSerializationFormat",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get disabledDates(){return this._getOption("disabledDates")}set disabledDates(e){this._setOption("disabledDates",e)}get displayFormat(){return this._getOption("displayFormat")}set displayFormat(e){this._setOption("displayFormat",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get interval(){return this._getOption("interval")}set interval(e){this._setOption("interval",e)}get invalidDateMessage(){return this._getOption("invalidDateMessage")}set invalidDateMessage(e){this._setOption("invalidDateMessage",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get pickerType(){return this._getOption("pickerType")}set pickerType(e){this._setOption("pickerType",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showAnalogClock(){return this._getOption("showAnalogClock")}set showAnalogClock(e){this._setOption("showAnalogClock",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(e){this._setOption("spellcheck",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get todayButtonText(){return this._getOption("todayButtonText")}set todayButtonText(e){this._setOption("todayButtonText",e)}get type(){return this._getOption("type")}set type(e){this._setOption("type",e)}get useMaskBehavior(){return this._getOption("useMaskBehavior")}set useMaskBehavior(e){this._setOption("useMaskBehavior",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}_createInstance(e,i){return new Nke(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("disabledDates",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("disabledDates"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-date-box"]],contentQueries:function(e,i,r){if(1&e&&In(r,Ig,4),2&e){let o;yn(o=Cn())&&(i.buttonsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",adaptivityEnabled:"adaptivityEnabled",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",buttons:"buttons",calendarOptions:"calendarOptions",cancelButtonText:"cancelButtonText",dateOutOfRangeMessage:"dateOutOfRangeMessage",dateSerializationFormat:"dateSerializationFormat",deferRendering:"deferRendering",disabled:"disabled",disabledDates:"disabledDates",displayFormat:"displayFormat",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",interval:"interval",invalidDateMessage:"invalidDateMessage",isValid:"isValid",label:"label",labelMode:"labelMode",max:"max",maxLength:"maxLength",min:"min",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",pickerType:"pickerType",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showAnalogClock:"showAnalogClock",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",todayButtonText:"todayButtonText",type:"type",useMaskBehavior:"useMaskBehavior",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",adaptivityEnabledChange:"adaptivityEnabledChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",buttonsChange:"buttonsChange",calendarOptionsChange:"calendarOptionsChange",cancelButtonTextChange:"cancelButtonTextChange",dateOutOfRangeMessageChange:"dateOutOfRangeMessageChange",dateSerializationFormatChange:"dateSerializationFormatChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",disabledDatesChange:"disabledDatesChange",displayFormatChange:"displayFormatChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",intervalChange:"intervalChange",invalidDateMessageChange:"invalidDateMessageChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxChange:"maxChange",maxLengthChange:"maxLengthChange",minChange:"minChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",pickerTypeChange:"pickerTypeChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showAnalogClockChange:"showAnalogClockChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",todayButtonTextChange:"todayButtonTextChange",typeChange:"typeChange",useMaskBehaviorChange:"useMaskBehaviorChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,eqt,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),d2e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Wa,Us,Z0e,h_e,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,bi,tn,mi],Wa,Us,Z0e,h_e,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,tn]}),t})();var $9={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},iqt=kw.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return se(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(t){return t.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return pn.current().android||pn.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(t){return"preset_"+t},_createAndroidSlideAnimationConfig:function(t,n){var e=this,i=function(r){return{type:"slide",delay:void 0===r.delay?e.option("defaultAnimationDelay"):r.delay,duration:void 0===r.duration?e.option("defaultAnimationDuration"):r.duration}};return{enter:function(r,o){var a=wn(r.parent())*n,s=o.direction,l=i(o);return l.to={left:0,opacity:1},l.from="forward"===s?{left:a,opacity:t}:"backward"===s?{left:-a,opacity:t}:{left:0,opacity:0},Hi.createAnimation(r,l)},leave:function(r,o){var a=wn(r.parent())*n,s=o.direction,l=i(o);return l.from={left:0,opacity:1},l.to="forward"===s?{left:-a,opacity:t}:"backward"===s?{left:a,opacity:t}:{left:0,opacity:0},Hi.createAnimation(r,l)}}},_createOpenDoorConfig:function(){var t=this,n=function(e){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===e.delay?t.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?t.option("defaultAnimationDuration"):e.duration}};return{enter:function(e,i){var r=i.direction,o=n(i);return o.delay="none"===r?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+$9[r],o.to="dx-enter-active",Hi.createAnimation(e,o)},leave:function(e,i){var r=i.direction,o=n(i);return o.from="dx-leave dx-opendoor-animation"+$9[r],o.to="dx-leave-active",Hi.createAnimation(e,o)}}},_createWinPopConfig:function(){var t=this,n={type:"css",extraCssClasses:"dx-win-pop-animation",duration:t.option("defaultAnimationDuration")};return{enter:function(e,i){var r=n,o=i.direction;return r.delay="none"===o?t.option("defaultAnimationDelay"):t.option("defaultAnimationDuration")/2,r.from="dx-enter dx-win-pop-animation"+$9[o],r.to="dx-enter-active",Hi.createAnimation(e,r)},leave:function(e,i){var r=n,o=i.direction;return r.delay=t.option("defaultAnimationDelay"),r.from="dx-leave dx-win-pop-animation"+$9[o],r.to="dx-leave-active",Hi.createAnimation(e,r)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(t){var n=this,e=[];we(this._registeredPresets,function(i,r){t&&t!==r.name?e.push(r):n.option(n._getPresetOptionName(r.name),void 0)}),this._registeredPresets=e,this.applyChanges()},registerPreset:function(t,n){this._registeredPresets.push({name:t,config:n})},applyChanges:function(){var t=this,n=[];we(this._registeredPresets,function(e,i){var r={device:i.config.device,options:{}};r.options[t._getPresetOptionName(i.name)]=i.config.animation,n.push(r)}),this._setOptionsByDevice(n)},getPreset:function(t){for(var n=t;"string"==typeof n;)n=this.option(this._getPresetOptionName(n));return n},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return pn.current().android||pn.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!pn.current().android&&!pn.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!pn.current().android&&!pn.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return pn.current().android||pn.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}}),rqt=new iqt,oqt={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c2e="dx-animating",aqt=ji.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(t,n,e,i){t=U(t);var r=this,o=[],a=this._prepareElementAnimationConfig(n,e=e||{},i);return a&&t.each(function(){var s=r._createAnimation(U(this),a,e);s&&(s.element.addClass(c2e),s.setup(),o.push(s))}),o},_prepareElementAnimationConfig:function(t,n,e){var i;if("string"==typeof t&&(t=rqt.getPreset(t)),t)if(Yt(t[e]))i=t[e];else{if(!(i=se({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},t,n)).type||"css"===i.type){var o="dx-"+e,a=(i.extraCssClasses?" "+i.extraCssClasses:"")+oqt[i.direction];i.type="css",i.from=(i.from||o)+a,i.to=i.to||o+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[e],this._accumulatedDelays[e]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(t,n,e){var i;return wi(n)?i=Hi.createAnimation(t,n):Yt(n)&&(i=n(t,e)),i},_startAnimations:function(){for(var t=this._animations,n=0;n<t.length;n++)t[n].start()},_stopAnimations:function(t){for(var n=this._animations,e=0;e<n.length;e++)n[e].stop(t)},_clearAnimations:function(){for(var t=this._animations,n=0;n<t.length;n++)t[n].element.removeClass(c2e);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new et,this._completePromise=this._completeDeferred.promise()},enter:function(t,n,e){var i=this._createAnimations(t,n,e,"enter");this._animations.push.apply(this._animations,i)},leave:function(t,n,e){var i=this._createAnimations(t,n,e,"leave");this._animations.push.apply(this._animations,i)},start:function(){var n,t=this;if(this._animations.length){var e=Dr(this._animations,function(i){var r=new et;return i.deferred.always(function(){r.resolve()}),r.promise()});n=Qt.apply(U,e).always(function(){t._completeDeferred.resolve(),t.reset()}),ky(function(){t._startAnimations()})}else t.reset(),n=(new et).resolve().promise();return n},stop:function(t){this._stopAnimations(t)}}),h2e=Fn(),p2e="dx-pending-rendering",g2e="dx-pending-rendering-manual",f2e="dx-pending-rendering-active",fqt=["onRendered","onShown"],m2e=tr.inherit({_getDefaultOptions:function(){return se(this.callBase(),{showLoadIndicator:!1,renderWhen:void 0,animation:void 0,staggerItemSelector:void 0,onRendered:null,onShown:null})},_getAnonymousTemplateName:function(){return"content"},_init:function(){this.transitionExecutor=new aqt,this._initElement(),this._initRender(),this._$initialContent=this.$element().clone().contents(),this._initActions(),this.callBase()},_initElement:function(){this.$element().addClass("dx-deferrendering")},_initRender:function(){var t=this,n=this.$element(),e=this.option("renderWhen"),i=()=>t._renderDeferredContent();dh(e)?ra(e).done(i):(n.data("dx-render-delegate",i),void 0===e&&n.addClass(g2e))},_initActions:function(){this._actions={},we(fqt,(t,n)=>{this._actions[n]=this._createActionByOption(n)||Be})},_initMarkup:function(){this.callBase(),this._initContent||(this._initContent=this._renderContent,this._renderContent=()=>{}),this._initContent()},_renderContentImpl:function(){this.$element().removeClass("dx-widget"),this.$element().append(this._$initialContent),this._setLoadingState()},_renderDeferredContent:function(){var t=this,n=this.$element(),e=new et;return n.removeClass(g2e),n.addClass(f2e),this._abortRenderTask(),this._renderTask=ky(()=>{t._renderImpl().done(()=>{var i={element:n};t._actions.onShown([i]),e.resolve(i)}).fail(function(){e.rejectWith(e,arguments)})}),e.promise()},_isElementInViewport:function(t){var n=Mi(t);return n.bottom>=0&&n.right>=0&&n.top<=(h2e.innerHeight||It.getDocumentElement().clientHeight)&&n.left<=(h2e.innerWidth||It.getDocumentElement().clientWidth)},_animate:function(){var r,t=this,n=this.$element(),e=Rn()&&this.option("animation"),i=this.option("staggerItemSelector");return t.transitionExecutor.stop(),e?(i?n.find(i).each(function(){t._isElementInViewport(this)&&t.transitionExecutor.enter(U(this),e)}):t.transitionExecutor.enter(n,e),r=t.transitionExecutor.start()):r=(new et).resolve().promise(),r},_renderImpl:function(){var t=this.$element(),n={element:t},e=this._getTemplate(this._templateManager.anonymousTemplateName);return e&&e.render({container:t.empty(),noModel:!0}),this._setRenderedState(t),Se.trigger(t,"dxcontentrendered"),this._actions.onRendered([n]),this._isRendered=!0,this._animate()},_setLoadingState:function(){var t=this.$element(),n=!!t.find(".dx-visible-while-pending-rendering").length;t.addClass(p2e),n||t.children().addClass("dx-invisible-while-pending-rendering"),this.option("showLoadIndicator")&&this._showLoadIndicator(t)},_showLoadIndicator:function(t){this._$loadIndicator=new bd(U("<div>"),{visible:!0}).$element().addClass("dx-deferrendering-load-indicator"),U("<div>").addClass("dx-loadindicator-container").addClass("dx-deferrendering-loadindicator-container").append(this._$loadIndicator).appendTo(t)},_setRenderedState:function(){var t=this.$element();this._$loadIndicator&&this._$loadIndicator.remove(),t.removeClass(p2e),t.removeClass(f2e),M2(t.children())},_optionChanged:function(t){var n=t.value,e=t.previousValue;switch(t.name){case"renderWhen":!1===e&&!0===n?this._renderOrAnimate():!0===e&&!1===n&&(this.transitionExecutor.stop(),this._setLoadingState());break;case"showLoadIndicator":case"onRendered":case"onShown":break;default:this.callBase(t)}},_renderOrAnimate:function(){var t;return this._isRendered?(this._setRenderedState(),t=this._animate()):t=this._renderDeferredContent(),t},renderContent:function(){return this._renderOrAnimate()},_abortRenderTask:function(){this._renderTask&&(this._renderTask.abort(),this._renderTask=void 0)},_dispose:function(){this.transitionExecutor.stop(!0),this._abortRenderTask(),this._actions=void 0,this._$initialContent=void 0,this.callBase()}});On("dxDeferRendering",m2e);let _2e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,go,_o,co,ho,po,fo,mo,vo,bi,tn,mi],vr,go,_o,co,ho,po,fo,mo,vo,tn]}),t})();var v2e=D(991),_qt=D.n(v2e);function or(){if(!_qt())throw Di.Error("E1041","devexpress-diagram");return v2e}const qZ=class vqt{constructor(n){var{EventDispatcher:e}=or();this.onChanged=new e,this._owner=n}raiseBarCommandExecuted(n,e){this.onChanged.raise("notifyBarCommandExecuted",parseInt(n),e)}getCommandKeys(){throw"Not Implemented"}setItemValue(n,e){}setItemEnabled(n,e){}setItemVisible(n,e){}setEnabled(n){}setItemSubItems(n,e){}isVisible(){return!0}_getKeys(n){return n.reduce((i,r)=>(void 0!==r.command&&i.push(r.command),r.items&&(i=i.concat(this._getKeys(r.items))),i),[])}};var y2e=kt(qn.up,"dxDiagramPanel");const C2e=class Cqt extends tr{_init(){super._init(),this._createOnPointerUpAction()}_render(){super._render(),this._attachPointerUpEvent()}_getPointerUpElements(){return[this.$element()]}_attachPointerUpEvent(){this._getPointerUpElements().forEach(e=>{Se.off(e,y2e),Se.on(e,y2e,i=>{U(i.target).closest(".dx-textbox").length||this._onPointerUpAction()})})}_createOnPointerUpAction(){this._onPointerUpAction=this._createActionByOption("onPointerUp")}_optionChanged(n){"onPointerUp"===n.name?this._createOnPointerUpAction():super._optionChanged(n)}};var YZ={getContextMenuItemTemplate(t,n,e,i){var r=U(i);r.empty();var o=void 0!==n.rootCommand?n.rootCommand:-1;if(n.icon&&!n.checked){var a=Fu(n.icon);r.append(a)}else if(t._menuHasCheckedItems&&!0===t._menuHasCheckedItems[o]){var s=Fu("check");s.css("visibility",n.checked?"visible":"hidden"),r.append(s)}r.append('<span class="dx-menu-item-text">'+n.text+"</span>"),Array.isArray(n.items)&&n.items.length>0&&r.append('<span class="dx-menu-item-popout-container"><div class="dx-menu-item-popout"></div></span>')},getContextMenuCssClass:()=>"dx-diagram-contextmenu",onContextMenuItemClick(t,n,e){if(void 0===n.command&&void 0===n.name||Array.isArray(n.items)&&n.items.length){if(void 0!==n.rootCommand&&void 0!==n.value){var r=YZ.getItemCommandParameter(t,n,n.value);e.call(this,n.rootCommand,void 0,r)}}else{var i=YZ.getItemCommandParameter(t,n);e.call(this,n.command,n.name,i)}},getItemValue:t=>"object"==typeof t.value?JSON.stringify(t.value):t.value,getItemOptionText(t,n){if(t){n=n.slice();var e=this._getParentItemOptionText(n);t._originalItemsInfo&&t._originalItemsInfo[e]&&(n[n.length-1]+=t._originalItemsInfo[e].indexPathCorrection)}return this._getItemOptionTextCore(n)},_getParentItemOptionText(t){var n=t.slice(0,t.length-1);return this._getItemOptionTextCore(n)},_getItemOptionTextCore:t=>t.reduce((n,e)=>n+"items[".concat(e,"]."),""),getItemCommandParameter:(t,n,e)=>n.getParameter?n.getParameter(t):e,updateContextMenuItems(t,n,e,i){t._originalItemsInfo||(t._originalItemsInfo={}),t._originalItemsInfo[n]||(t._originalItemsInfo[n]={items:t.option(n+"items")||[]}),i=i.map(o=>({value:this.getItemValue(o),text:o.text,checked:o.checked,widget:t,rootCommand:e}));var r=t._originalItemsInfo[n].items;t.option(n+"items",i.concat(r)),t._originalItemsInfo[n]&&r.length&&(t._originalItemsInfo[n].indexPathCorrection=i.length)},updateContextMenuItemVisible(t,n,e){t.option(n+"visible",e)},updateContextMenuItemValue(t,n,e,i){var r=t.option(n+"items");"boolean"!=typeof i||r&&r.length?void 0!==i&&(this._setContextMenuHasCheckedItems(t,e),Array.isArray(r)&&r.forEach((o,a)=>{o.checked=o.value===i})):(this._setContextMenuHasCheckedItems(t,-1),t.option(n+"checked",i))},_setContextMenuHasCheckedItems(t,n){t._menuHasCheckedItems||(t._menuHasCheckedItems={}),t._menuHasCheckedItems[n]=!0}};const Ul=YZ;var ZZ="dx-diagram-mobile-toolbar-color-box-opened";class Oqt extends qZ{getCommandKeys(){return this._getKeys(this._owner._commands)}setItemValue(n,e){this._owner._setItemValue(n,e)}setItemEnabled(n,e){this._owner._setItemEnabled(n,e)}setEnabled(n){this._owner._setEnabled(n)}setItemSubItems(n,e){this._owner._setItemSubItems(n,e)}}class b2e{constructor(n){this._widget=n}canUpdate(n){return void 0===n}setEnabled(n){this._widget.option("disabled",!n)}setValue(n,e,i,r){"value"in this._widget.option()?this._updateEditorValue(n,e):void 0!==n&&this._updateButtonValue(n),i&&this._updateContextMenuItemValue(i,"",r,n)}setItems(n,e,i){e?this._updateContextMenuItems(e,"",i,n):this._updateEditorItems(n)}_updateContextMenuItems(n,e,i,r){Ul.updateContextMenuItems(n,e,i,r)}_updateEditorItems(n){"items"in this._widget.option()&&this._widget.option("items",n.map(e=>({value:Ul.getItemValue(e),text:e.text})))}_updateEditorValue(n,e){this._widget.option("value",n),!this._widget.option("selectedItem")&&e&&this._widget.option("value",e)}_updateButtonValue(n){this._widget.option("iconChecked")&&this._widget.option("iconUnchecked")?this._widget.option("icon",this._widget.option(n?"iconChecked":"iconUnchecked")):this._widget.$element().toggleClass("dx-format-active",n)}_updateContextMenuItemValue(n,e,i,r){Ul.updateContextMenuItemValue(n,e,i,r)}}class Tqt extends b2e{constructor(n,e,i,r){super(n),this._indexPath=e,this._rootCommandKey=i,this._rootWidget=r}canUpdate(n){return super.canUpdate(n)||n===this._widget}setEnabled(n){this._widget.option(this._getItemOptionText()+"disabled",!n);var e=this._hasEnabledCommandItems(this._widget.option("items"));this._rootWidget.option("disabled",!e)}_hasEnabledCommandItems(n){return!!n&&n.some(e=>void 0!==e.command&&!e.disabled||this._hasEnabledCommandItems(e.items))}setValue(n){this._updateContextMenuItemValue(this._widget,this._getItemOptionText(),this._rootCommandKey,n)}setItems(n){this._updateContextMenuItems(this._widget,this._getItemOptionText(),this._rootCommandKey,n)}_getItemOptionText(){return Ul.getItemOptionText(this._widget,this._indexPath)}}const $k=class Eqt extends C2e{_init(){this._commands=[],this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[],this._valueConverters={},this.bar=new Oqt(this),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnSubMenuVisibilityChangingAction(),super._init()}_initMarkup(){super._initMarkup();var n=!Rn();!this.option("skipAdjustSize")&&!n&&oa(this.$element(),""),this._commands=this._getCommands(),this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[];var e=this._createMainElement();if(this._renderToolbar(e),!this.option("skipAdjustSize")&&!n){var i=this.$element().find(".dx-toolbar-before");oa(this.$element(),wn(i))}}_createMainElement(){return U("<div>").addClass("dx-diagram-toolbar").appendTo(this._$element)}_getCommands(){return this.option("commands")||[]}_renderToolbar(n){var e=this._commands.filter(a=>-1===["after","center"].indexOf(a.location)),i=this._commands.filter(a=>"center"===a.location),r=this._commands.filter(a=>"after"===a.location),o=[].concat(this._prepareToolbarItems(e,"before",this._executeCommand)).concat(this._prepareToolbarItems(i,"center",this._executeCommand)).concat(this._prepareToolbarItems(r,"after",this._executeCommand));this._toolbarInstance=this._createComponent(n,nb,{dataSource:o})}_prepareToolbarItems(n,e,i){return n.map(r=>se(!0,{location:e,locateInMenu:this.option("locateInMenu")},this._createItem(r,e,i),this._createItemOptions(r),this._createItemActionOptions(r,i)))}_createItem(n,e,i){return(n.getCommandValue||n.getEditorValue||n.getEditorDisplayValue)&&(this._valueConverters[n.command]={getCommandValue:n.getCommandValue,getEditorValue:n.getEditorValue,getEditorDisplayValue:n.getEditorDisplayValue}),"separator"===n.widget?{template:(r,o,a)=>{U(a).addClass("dx-diagram-toolbar-separator")},menuItemTemplate:(r,o,a)=>{U(a).addClass("dx-diagram-toolbar-menu-separator")}}:{widget:n.widget||"dxButton",cssClass:n.cssClass,options:{stylingMode:this.option("buttonStylingMode"),type:this.option("buttonType"),text:n.text,hint:n.hint,icon:n.icon||n.iconUnchecked||n.iconChecked,iconChecked:n.iconChecked,iconUnchecked:n.iconUnchecked,onInitialized:r=>this._onItemInitialized(r.component,n),onContentReady:r=>this._onItemContentReady(r.component,n,i)}}}_createItemOptions(n){var{widget:e,command:i,items:r,valueExpr:o,displayExpr:a,showText:s,hint:l,icon:u}=n;return"dxSelectBox"===e?this._createSelectBoxItemOptions(i,l,r,o,a):"dxTextBox"===e?this._createTextBoxItemOptions(i,l):"dxColorBox"===e?this._createColorBoxItemOptions(i,l,u):e&&"dxButton"!==e?void 0:{showText:s||"inMenu"}}_createSelectBoxItemOptions(n,e,i,r,o){var a=this._createTextEditorItemOptions(e);return a=se(!0,a,{options:{dataSource:i,displayExpr:o||"text",valueExpr:r||"value"}}),i&&i.every(l=>void 0!==l.icon)&&(a=se(!0,a,{options:{fieldTemplate:(l,u)=>{U("<i>").addClass(l&&l.icon||"dx-diagram-i-selectbox-null-icon dx-diagram-i").appendTo(u),U("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(u)},itemTemplate:(l,u,f)=>(U(f).attr("title",l.hint),'<i class="'.concat(l.icon,'"></i>'))}})),a}_createTextBoxItemOptions(n,e){var i=this._createTextEditorItemOptions(e);return se(!0,i,{options:{readOnly:!0,focusStateEnabled:!1,hoverStateEnabled:!1,buttons:[{name:"dropDown",location:"after",options:{icon:"spindown",disabled:!1,stylingMode:"text",onClick:r=>{var o=this._commandContextMenus[n];o&&this._toggleContextMenu(o)}}}]}})}_createColorBoxItemOptions(n,e,i){var r=this._createTextEditorItemOptions(e);return i&&(r=se(!0,r,{options:{openOnFieldClick:!0,fieldTemplate:(o,a)=>{U("<i>").addClass(i).css("borderBottomColor",o).appendTo(a),U("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(a)}}})),se(!0,r,{options:{onOpened:()=>{this.option("isMobileView")&&U("body").addClass(ZZ)},onClosed:()=>{U("body").removeClass(ZZ)}}})}_createTextEditorItemOptions(n){return{options:{stylingMode:this.option("editorStylingMode"),hint:n}}}_createItemActionOptions(n,e){switch(n.widget){case"dxSelectBox":case"dxColorBox":case"dxCheckBox":return{options:{onValueChanged:i=>{var r=Ul.getItemCommandParameter(this,n,i.component.option("value"));e.call(this,n.command,n.name,r)}}};case"dxTextBox":return{};default:return{options:{onClick:i=>{if(n.items){var o=i.component._contextMenu;o&&this._toggleContextMenu(o)}else{var r=Ul.getItemCommandParameter(this,n);e.call(this,n.command,n.name,r)}}}}}}_toggleContextMenu(n){this._contextMenuList.forEach(e=>{n!==e&&e.hide()}),n.toggle()}_onItemInitialized(n,e){this._addItemHelper(e.command,new b2e(n))}_onItemContentReady(n,e,i){if(("dxButton"===n.NAME||"dxTextBox"===n.NAME)&&e.items){var r=this._isTouchMode(),o=U("<div>").appendTo(this.$element());n._contextMenu=this._createComponent(o,Zm,{items:e.items,target:n.$element(),cssClass:Ul.getContextMenuCssClass(),showEvent:"",hideOnOutsideClick:a=>!r&&0===U(a.target).closest(n._contextMenu._dropDownButtonElement).length,focusStateEnabled:!1,position:{at:"left bottom"},itemTemplate:function(a,s,l){Ul.getContextMenuItemTemplate(this,a,s,l)},onItemClick:a=>{var{component:s,itemData:l}=a;Ul.onContextMenuItemClick(this,l,i.bind(this)),(!l.items||!l.items.length)&&s.hide()},onShowing:a=>{this._showingSubMenu||(this._showingSubMenu=a.component,this._onSubMenuVisibilityChangingAction({visible:!0,component:this}),a.component.option("items",a.component.option("items")),delete this._showingSubMenu)},onInitialized:a=>{var{component:s}=a;return this._onContextMenuInitialized(s,e,n)},onDisposing:a=>{var{component:s}=a;return this._onContextMenuDisposing(s,e)}}),r||(n._contextMenu._dropDownButtonElement=n.$element(),"dxTextBox"===n.NAME&&(n._contextMenu._dropDownButtonElement=n.getButton("dropDown").element()))}}_isTouchMode(){var{Browser:n}=or();return n.TouchUI}_onContextMenuInitialized(n,e,i){this._contextMenuList.push(n),e.command&&(this._commandContextMenus[e.command]=n),this._addContextMenuHelper(e,n,[],i)}_addItemHelper(n,e){if(void 0!==n){if(this._itemHelpers[n])throw new Error("Toolbar cannot contain duplicated commands.");this._itemHelpers[n]=e}}_addContextMenuHelper(n,e,i,r){n.items&&n.items.forEach((o,a)=>{var s=i.concat(a);this._addItemHelper(o.command,new Tqt(e,s,o.command,r)),this._addContextMenuHelper(o,e,s,r)})}_onContextMenuDisposing(n,e){this._contextMenuList.splice(this._contextMenuList.indexOf(n),1),delete this._commandContextMenus[e.command]}_executeCommand(n,e,i){if(!this._updateLocked){if("number"==typeof n){var r=this._valueConverters[n];r&&r.getCommandValue&&(i=r.getCommandValue(i)),this.bar.raiseBarCommandExecuted(n,i)}else"string"==typeof n&&this._onInternalCommandAction({command:n});void 0!==e&&this._onCustomCommandAction({name:e})}}_createOnInternalCommand(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")}_createOnCustomCommand(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")}_setItemEnabled(n,e){if(n in this._itemHelpers){var i=this._itemHelpers[n];i.canUpdate(this._showingSubMenu)&&i.setEnabled(e)}}_setEnabled(n){this._toolbarInstance.option("disabled",!n),this._contextMenuList.forEach(e=>{e.option("disabled",!n)})}_setItemValue(n,e){try{if(this._updateLocked=!0,n in this._itemHelpers){var i=this._itemHelpers[n];if(i.canUpdate(this._showingSubMenu)){var o,r=this._valueConverters[n];r&&r.getEditorValue&&(e=r.getEditorValue(e)),r&&r.getEditorDisplayValue&&(o=r.getEditorDisplayValue(e));var a=this._commandContextMenus[n];i.setValue(e,o,a,a&&n)}}}finally{this._updateLocked=!1}}_setItemSubItems(n,e){if(this._updateLocked=!0,n in this._itemHelpers){var i=this._itemHelpers[n];if(i.canUpdate(this._showingSubMenu)){var r=this._commandContextMenus[n];i.setItems(e,r,r&&n)}}this._updateLocked=!1}_createOnSubMenuVisibilityChangingAction(){this._onSubMenuVisibilityChangingAction=this._createActionByOption("onSubMenuVisibilityChanging")}_optionChanged(n){switch(n.name){case"isMobileView":U("body").removeClass(ZZ),this._invalidate();break;case"onSubMenuVisibilityChanging":this._createOnSubMenuVisibilityChangingAction();break;case"onInternalCommand":this._createOnInternalCommand();break;case"onCustomCommand":this._createOnCustomCommand();break;case"container":case"commands":this._invalidate();break;case"export":break;default:super._optionChanged(n)}}_getDefaultOptions(){return se(super._getDefaultOptions(),{isMobileView:!1,export:{fileName:"Diagram"},locateInMenu:"auto",buttonStylingMode:"text",buttonType:"normal",editorStylingMode:"filled",skipAdjustSize:!1})}setCommandChecked(n,e){this._setItemValue(n,e)}setCommandEnabled(n,e){this._setItemEnabled(n,e)}};var q9="separator",XZ={widget:q9},ss_LARGE_ICON_ITEM="dx-diagram-lg-icon-item",Iqt={SHOW_TOOLBOX_COMMAND_NAME:"toolbox",SHOW_PROPERTIES_PANEL_COMMAND_NAME:"propertiesPanel",getAllCommands:function(){var{DiagramCommand:t}=or();return this._allCommands||(this._allCommands={separator:XZ,exportSvg:{command:t.ExportSvg,text:ye.format("dxDiagram-commandExportToSvg"),getParameter:n=>e=>this._exportTo(n,e,"SVG","image/svg+xml")},exportPng:{command:t.ExportPng,text:ye.format("dxDiagram-commandExportToPng"),getParameter:n=>e=>this._exportTo(n,e,"PNG","image/png")},exportJpg:{command:t.ExportJpg,text:ye.format("dxDiagram-commandExportToJpg"),getParameter:n=>e=>this._exportTo(n,e,"JPEG","image/jpeg")},undo:{command:t.Undo,hint:ye.format("dxDiagram-commandUndo"),text:ye.format("dxDiagram-commandUndo"),icon:"undo",menuIcon:"undo"},redo:{command:t.Redo,hint:ye.format("dxDiagram-commandRedo"),text:ye.format("dxDiagram-commandRedo"),icon:"redo",menuIcon:"redo"},cut:{command:t.Cut,hint:ye.format("dxDiagram-commandCut"),text:ye.format("dxDiagram-commandCut"),icon:"cut",menuIcon:"cut"},copy:{command:t.Copy,hint:ye.format("dxDiagram-commandCopy"),text:ye.format("dxDiagram-commandCopy"),icon:"copy",menuIcon:"copy"},paste:{command:t.PasteInPosition,hint:ye.format("dxDiagram-commandPaste"),text:ye.format("dxDiagram-commandPaste"),icon:"paste",menuIcon:"paste"},selectAll:{command:t.SelectAll,hint:ye.format("dxDiagram-commandSelectAll"),text:ye.format("dxDiagram-commandSelectAll"),icon:"dx-diagram-i-button-select-all dx-diagram-i",menuIcon:"dx-diagram-i-menu-select-all dx-diagram-i"},delete:{command:t.Delete,hint:ye.format("dxDiagram-commandDelete"),text:ye.format("dxDiagram-commandDelete"),icon:"remove",menuIcon:"remove"},fontName:{command:t.FontName,hint:ye.format("dxDiagram-commandFontName"),text:ye.format("dxDiagram-commandFontName"),widget:"dxSelectBox",items:["Arial","Arial Black","Helvetica","Times New Roman","Courier New","Courier","Verdana","Georgia","Comic Sans MS","Trebuchet MS"].map(n=>({text:n,value:n})),cssClass:"dx-diagram-md-edit-item"},fontSize:{command:t.FontSize,hint:ye.format("dxDiagram-commandFontSize"),text:ye.format("dxDiagram-commandFontSize"),widget:"dxSelectBox",items:[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72].map(n=>({text:n+"pt",value:n+"pt"})),cssClass:"dx-diagram-sm-edit-item"},bold:{command:t.Bold,hint:ye.format("dxDiagram-commandBold"),text:ye.format("dxDiagram-commandBold"),icon:"bold",menuIcon:"bold"},italic:{command:t.Italic,hint:ye.format("dxDiagram-commandItalic"),text:ye.format("dxDiagram-commandItalic"),icon:"italic",menuIcon:"italic"},underline:{command:t.Underline,hint:ye.format("dxDiagram-commandUnderline"),text:ye.format("dxDiagram-commandUnderline"),icon:"underline",menuIcon:"underline"},fontColor:{command:t.FontColor,text:ye.format("dxDiagram-commandTextColor"),hint:ye.format("dxDiagram-commandTextColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-color",menuIcon:"dx-icon dx-icon-color",cssClass:"dx-diagram-color-edit-item"},lineColor:{command:t.StrokeColor,text:ye.format("dxDiagram-commandLineColor"),hint:ye.format("dxDiagram-commandLineColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-background",menuIcon:"dx-icon dx-icon-background",cssClass:"dx-diagram-color-edit-item"},lineWidth:{command:t.StrokeWidth,text:ye.format("dxDiagram-commandLineWidth"),hint:ye.format("dxDiagram-commandLineWidth"),widget:"dxSelectBox",items:[1,2,3,4,5,6,7,8].map(n=>({text:n+"px",value:n.toString()})),cssClass:"dx-diagram-sm-edit-item"},lineStyle:{command:t.StrokeStyle,text:ye.format("dxDiagram-commandLineStyle"),hint:ye.format("dxDiagram-commandLineStyle"),widget:"dxSelectBox",items:[{value:"",menuIcon:"dx-diagram-i-line-solid dx-diagram-i",hint:ye.format("dxDiagram-commandLineStyleSolid")},{value:"2,2",menuIcon:"dx-diagram-i-line-dotted dx-diagram-i",hint:ye.format("dxDiagram-commandLineStyleDotted")},{value:"6,2",menuIcon:"dx-diagram-i-line-dashed dx-diagram-i",hint:ye.format("dxDiagram-commandLineStyleDashed")}],cssClass:"dx-diagram-image-dropdown-item"},fillColor:{command:t.FillColor,text:ye.format("dxDiagram-commandFillColor"),hint:ye.format("dxDiagram-commandFillColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",menuIcon:"dx-diagram-i dx-diagram-i-menu-fill",cssClass:"dx-diagram-color-edit-item"},textAlignLeft:{command:t.TextLeftAlign,hint:ye.format("dxDiagram-commandAlignLeft"),text:ye.format("dxDiagram-commandAlignLeft"),icon:"alignleft",menuIcon:"alignleft"},textAlignCenter:{command:t.TextCenterAlign,hint:ye.format("dxDiagram-commandAlignCenter"),text:ye.format("dxDiagram-commandAlignCenter"),icon:"aligncenter",menuIcon:"aligncenter"},textAlignRight:{command:t.TextRightAlign,hint:ye.format("dxDiagram-commandAlignRight"),text:ye.format("dxDiagram-commandAlignRight"),icon:"alignright",menuIcon:"alignright"},lock:{command:t.Lock,hint:ye.format("dxDiagram-commandLock"),text:ye.format("dxDiagram-commandLock"),icon:"dx-diagram-i-button-lock dx-diagram-i",menuIcon:"dx-diagram-i-menu-lock dx-diagram-i"},unlock:{command:t.Unlock,hint:ye.format("dxDiagram-commandUnlock"),text:ye.format("dxDiagram-commandUnlock"),icon:"dx-diagram-i-button-unlock dx-diagram-i",menuIcon:"dx-diagram-i-menu-unlock dx-diagram-i"},bringToFront:{command:t.BringToFront,hint:ye.format("dxDiagram-commandBringToFront"),text:ye.format("dxDiagram-commandBringToFront"),icon:"dx-diagram-i-button-bring-to-front dx-diagram-i",menuIcon:"dx-diagram-i-menu-bring-to-front dx-diagram-i"},sendToBack:{command:t.SendToBack,hint:ye.format("dxDiagram-commandSendToBack"),text:ye.format("dxDiagram-commandSendToBack"),icon:"dx-diagram-i-button-send-to-back dx-diagram-i",menuIcon:"dx-diagram-i-menu-send-to-back dx-diagram-i"},insertShapeImage:{command:t.InsertShapeImage,text:ye.format("dxDiagram-commandInsertShapeImage"),icon:"dx-diagram-i-button-image-insert dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-insert dx-diagram-i"},editShapeImage:{command:t.EditShapeImage,text:ye.format("dxDiagram-commandEditShapeImage"),icon:"dx-diagram-i-button-image-edit dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-edit dx-diagram-i"},deleteShapeImage:{command:t.DeleteShapeImage,text:ye.format("dxDiagram-commandDeleteShapeImage"),icon:"dx-diagram-i-button-image-delete dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-delete dx-diagram-i"},connectorLineType:{command:t.ConnectorLineOption,widget:"dxSelectBox",hint:ye.format("dxDiagram-commandConnectorLineType"),text:ye.format("dxDiagram-commandConnectorLineType"),items:[{value:0,menuIcon:"dx-diagram-i-connector-straight dx-diagram-i",hint:ye.format("dxDiagram-commandConnectorLineStraight"),text:ye.format("dxDiagram-commandConnectorLineStraight")},{value:1,menuIcon:"dx-diagram-i-connector-orthogonal dx-diagram-i",hint:ye.format("dxDiagram-commandConnectorLineOrthogonal"),text:ye.format("dxDiagram-commandConnectorLineOrthogonal")}],cssClass:"dx-diagram-image-dropdown-item"},connectorLineStart:{command:t.ConnectorStartLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-begin-none dx-diagram-i",hint:ye.format("dxDiagram-commandConnectorLineNone"),text:ye.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-begin-arrow dx-diagram-i",hint:ye.format("dxDiagram-commandConnectorLineArrow"),text:ye.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-begin-outlined-triangle dx-diagram-i",hint:ye.format("dxDiagram-commandConnectorLineArrow"),text:ye.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-begin-filled-triangle dx-diagram-i",hint:ye.format("dxDiagram-commandConnectorLineArrow"),text:ye.format("dxDiagram-commandConnectorLineArrow")}],hint:ye.format("dxDiagram-commandConnectorLineStart"),text:ye.format("dxDiagram-commandConnectorLineStart"),cssClass:"dx-diagram-image-dropdown-item"},connectorLineEnd:{command:t.ConnectorEndLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-end-none dx-diagram-i",hint:ye.format("dxDiagram-commandConnectorLineNone"),text:ye.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-end-arrow dx-diagram-i",hint:ye.format("dxDiagram-commandConnectorLineArrow"),text:ye.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-end-outlined-triangle dx-diagram-i",hint:ye.format("dxDiagram-commandConnectorLineArrow"),text:ye.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-end-filled-triangle dx-diagram-i",hint:ye.format("dxDiagram-commandConnectorLineArrow"),text:ye.format("dxDiagram-commandConnectorLineArrow")}],hint:ye.format("dxDiagram-commandConnectorLineEnd"),text:ye.format("dxDiagram-commandConnectorLineEnd"),cssClass:"dx-diagram-image-dropdown-item"},layoutTreeTopToBottom:{command:t.AutoLayoutTreeVertical,text:ye.format("dxDiagram-commandLayoutTopToBottom"),hint:ye.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-tree-tb dx-diagram-i",cssClass:ss_LARGE_ICON_ITEM},layoutTreeBottomToTop:{command:t.AutoLayoutTreeVerticalBottomToTop,text:ye.format("dxDiagram-commandLayoutBottomToTop"),hint:ye.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-tree-bt dx-diagram-i",cssClass:ss_LARGE_ICON_ITEM},layoutTreeLeftToRight:{command:t.AutoLayoutTreeHorizontal,text:ye.format("dxDiagram-commandLayoutLeftToRight"),hint:ye.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-tree-lr dx-diagram-i",cssClass:ss_LARGE_ICON_ITEM},layoutTreeRightToLeft:{command:t.AutoLayoutTreeHorizontalRightToLeft,text:ye.format("dxDiagram-commandLayoutRightToLeft"),hint:ye.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-tree-rl dx-diagram-i",cssClass:ss_LARGE_ICON_ITEM},layoutLayeredTopToBottom:{command:t.AutoLayoutLayeredVertical,text:ye.format("dxDiagram-commandLayoutTopToBottom"),hint:ye.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-layered-tb dx-diagram-i",cssClass:ss_LARGE_ICON_ITEM},layoutLayeredBottomToTop:{command:t.AutoLayoutLayeredVerticalBottomToTop,text:ye.format("dxDiagram-commandLayoutBottomToTop"),hint:ye.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-layered-bt dx-diagram-i",cssClass:ss_LARGE_ICON_ITEM},layoutLayeredLeftToRight:{command:t.AutoLayoutLayeredHorizontal,text:ye.format("dxDiagram-commandLayoutLeftToRight"),hint:ye.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-layered-lr dx-diagram-i",cssClass:ss_LARGE_ICON_ITEM},layoutLayeredRightToLeft:{command:t.AutoLayoutLayeredHorizontalRightToLeft,text:ye.format("dxDiagram-commandLayoutRightToLeft"),hint:ye.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-layered-rl dx-diagram-i",cssClass:ss_LARGE_ICON_ITEM},fullScreen:{command:t.Fullscreen,hint:ye.format("dxDiagram-commandFullscreen"),text:ye.format("dxDiagram-commandFullscreen"),icon:"dx-diagram-i dx-diagram-i-button-fullscreen",menuIcon:"dx-diagram-i dx-diagram-i-menu-fullscreen",cssClass:"dx-diagram-color-edit-item"},units:{command:t.ViewUnits,hint:ye.format("dxDiagram-commandUnits"),text:ye.format("dxDiagram-commandUnits"),widget:"dxSelectBox"},simpleView:{command:t.ToggleSimpleView,hint:ye.format("dxDiagram-commandSimpleView"),text:ye.format("dxDiagram-commandSimpleView"),widget:"dxCheckBox"},showGrid:{command:t.ShowGrid,hint:ye.format("dxDiagram-commandShowGrid"),text:ye.format("dxDiagram-commandShowGrid"),widget:"dxCheckBox"},snapToGrid:{command:t.SnapToGrid,hint:ye.format("dxDiagram-commandSnapToGrid"),text:ye.format("dxDiagram-commandSnapToGrid"),widget:"dxCheckBox"},gridSize:{command:t.GridSize,hint:ye.format("dxDiagram-commandGridSize"),text:ye.format("dxDiagram-commandGridSize"),widget:"dxSelectBox"},pageSize:{command:t.PageSize,hint:ye.format("dxDiagram-commandPageSize"),text:ye.format("dxDiagram-commandPageSize"),widget:"dxSelectBox",cssClass:"dx-diagram-lg-edit-item",getCommandValue:n=>JSON.parse(n),getEditorValue:n=>JSON.stringify(n)},pageOrientation:{command:t.PageLandscape,hint:ye.format("dxDiagram-commandPageOrientation"),text:ye.format("dxDiagram-commandPageOrientation"),widget:"dxSelectBox",items:[{value:!0,text:ye.format("dxDiagram-commandPageOrientationLandscape")},{value:!1,text:ye.format("dxDiagram-commandPageOrientationPortrait")}],cssClass:"dx-diagram-md-edit-item"},pageColor:{command:t.PageColor,hint:ye.format("dxDiagram-commandPageColor"),text:ye.format("dxDiagram-commandPageColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",menuIcon:"dx-diagram-i dx-diagram-i-menu-fill",cssClass:"dx-diagram-color-edit-item"},zoomLevel:{command:t.ZoomLevel,hint:ye.format("dxDiagram-commandZoomLevel"),text:ye.format("dxDiagram-commandZoomLevel"),widget:"dxTextBox",items:[XZ,{command:t.FitToScreen,hint:ye.format("dxDiagram-commandFitToContent"),text:ye.format("dxDiagram-commandFitToContent")},{command:t.FitToWidth,hint:ye.format("dxDiagram-commandFitToWidth"),text:ye.format("dxDiagram-commandFitToWidth")},XZ,{command:t.AutoZoomToContent,hint:ye.format("dxDiagram-commandAutoZoomByContent"),text:ye.format("dxDiagram-commandAutoZoomByContent")},{command:t.AutoZoomToWidth,hint:ye.format("dxDiagram-commandAutoZoomByWidth"),text:ye.format("dxDiagram-commandAutoZoomByWidth")}],getEditorDisplayValue:n=>Math.round(100*n)+"%",cssClass:"dx-diagram-sm-edit-item"},toolbox:{command:this.SHOW_TOOLBOX_COMMAND_NAME,iconChecked:"dx-diagram-i dx-diagram-i-button-toolbox-close",iconUnchecked:"dx-diagram-i dx-diagram-i-button-toolbox-open",hint:ye.format("dxDiagram-uiShowToolbox"),text:ye.format("dxDiagram-uiShowToolbox")},propertiesPanel:{command:this.SHOW_PROPERTIES_PANEL_COMMAND_NAME,iconChecked:"close",iconUnchecked:"dx-diagram-i dx-diagram-i-button-properties-panel-open",hint:ye.format("dxDiagram-uiProperties"),text:ye.format("dxDiagram-uiProperties")}})},getMainToolbarCommands:function(t,n){var e=this.getAllCommands(),i=t?this._getPreparedCommands(e,t):this._getDefaultMainToolbarCommands(e);return this._prepareToolbarCommands(i,n)},_getDefaultMainToolbarCommands:function(t){return this._defaultMainToolbarCommands||(this._defaultMainToolbarCommands=[t.undo,t.redo,t.separator,t.fontName,t.fontSize,t.bold,t.italic,t.underline,t.separator,t.lineWidth,t.lineStyle,t.separator,t.fontColor,t.lineColor,t.fillColor,t.separator,t.textAlignLeft,t.textAlignCenter,t.textAlignRight,t.separator,t.connectorLineType,t.connectorLineStart,t.connectorLineEnd,t.separator,{text:ye.format("dxDiagram-uiLayout"),showText:"always",items:[{text:ye.format("dxDiagram-uiLayoutTree"),items:[t.layoutTreeTopToBottom,t.layoutTreeBottomToTop,t.layoutTreeLeftToRight,t.layoutTreeRightToLeft]},{text:ye.format("dxDiagram-uiLayoutLayered"),items:[t.layoutLayeredTopToBottom,t.layoutLayeredBottomToTop,t.layoutLayeredLeftToRight,t.layoutLayeredRightToLeft]}]}])},getHistoryToolbarCommands:function(t,n){var e=this.getAllCommands(),i=t?this._getPreparedCommands(e,t):this._getDefaultHistoryToolbarCommands(e);return this._prepareToolbarCommands(i,n)},_getDefaultHistoryToolbarCommands:function(t){return this._defaultHistoryToolbarCommands||(this._defaultHistoryToolbarCommands=[t.undo,t.redo,t.separator,t.toolbox])},getViewToolbarCommands:function(t,n){var e=this.getAllCommands(),i=t?this._getPreparedCommands(e,t):this._getDefaultViewToolbarCommands(e);return this._prepareToolbarCommands(i,n)},_getDefaultViewToolbarCommands:function(t){return this._defaultViewToolbarCommands||(this._defaultViewToolbarCommands=[t.zoomLevel,t.separator,t.fullScreen,t.separator,{widget:"dxButton",icon:"export",text:ye.format("dxDiagram-uiExport"),hint:ye.format("dxDiagram-uiExport"),items:[t.exportSvg,t.exportPng,t.exportJpg]},{icon:"preferences",hint:ye.format("dxDiagram-uiSettings"),text:ye.format("dxDiagram-uiSettings"),items:[t.units,t.separator,t.showGrid,t.snapToGrid,t.gridSize,t.separator,t.simpleView,t.toolbox]}])},getPropertiesToolbarCommands:function(t,n){var e=this.getAllCommands(),i=t?this._getPreparedCommands(e,t):this._getDefaultPropertiesToolbarCommands(e);return this._prepareToolbarCommands(i,n)},_getDefaultPropertiesToolbarCommands:function(t){return this._defaultPropertiesToolbarCommands||(this._defaultPropertiesToolbarCommands=[t.propertiesPanel])},_getDefaultPropertyPanelCommandGroups:function(){return this._defaultPropertyPanelCommandGroups||(this._defaultPropertyPanelCommandGroups=[{title:ye.format("dxDiagram-uiStyle"),groups:[{title:ye.format("dxDiagram-uiText"),commands:["fontName","fontSize","bold","italic","underline","textAlignLeft","textAlignCenter","textAlignRight","fontColor"]},{title:ye.format("dxDiagram-uiObject"),commands:["lineStyle","lineWidth","lineColor","fillColor"]},{title:ye.format("dxDiagram-uiConnector"),commands:["connectorLineType","connectorLineStart","connectorLineEnd"]}]},{title:ye.format("dxDiagram-uiLayout"),groups:[{title:ye.format("dxDiagram-uiLayoutLayered"),commands:["layoutLayeredTopToBottom","layoutLayeredBottomToTop","layoutLayeredLeftToRight","layoutLayeredRightToLeft"]},{title:ye.format("dxDiagram-uiLayoutTree"),commands:["layoutTreeTopToBottom","layoutTreeBottomToTop","layoutTreeLeftToRight","layoutTreeRightToLeft"]}]},{title:ye.format("dxDiagram-uiDiagram"),groups:[{title:ye.format("dxDiagram-uiPage"),commands:["pageSize","pageOrientation","pageColor"]}]}])},_preparePropertyPanelGroups:function(t){var n=this.getAllCommands(),e=[];return t.forEach(i=>{var o,r=i.commands;r&&(r=this._getPreparedCommands(n,r),r=this._prepareToolbarCommands(r)),i.groups&&(o=[],i.groups.forEach(a=>{var s=a.commands;s&&(s=this._getPreparedCommands(n,s),s=this._prepareToolbarCommands(s)),o.push({title:a.title,commands:s})})),e.push({title:i.title,commands:r,groups:o})}),e},getPropertyPanelCommandTabs:function(t){return t=t||this._getDefaultPropertyPanelCommandGroups(),this._preparePropertyPanelGroups(t)},getContextMenuCommands:function(t){var n=this.getAllCommands(),e=t?this._getPreparedCommands(n,t):this._getDefaultContextMenuCommands(n);return this._prepareContextMenuCommands(e)},_getDefaultContextMenuCommands:function(t){return this._defaultContextMenuCommands||(this._defaultContextMenuCommands=[t.cut,t.copy,t.paste,t.delete,t.separator,t.selectAll,t.separator,t.bringToFront,t.sendToBack,t.separator,t.lock,t.unlock,t.separator,t.insertShapeImage,t.editShapeImage,t.deleteShapeImage])},_getPreparedCommands(t,n){return n.map(e=>{if(e.widget&&e.widget===q9)return{command:e,location:e.location};if(t[e])return t[e];if(e.text||e.icon||e.name){var r=e.name&&t[e.name],o={command:r&&r.command,name:e.name,location:e.location,text:e.text||r&&r.text,hint:e.text||r&&r.hint,icon:e.icon||r&&r.icon,menuIcon:e.icon||r&&r.menuIcon,widget:r&&r.widget,cssClass:r&&r.cssClass,getParameter:r&&r.getParameter,getCommandValue:r&&r.getCommandValue,getEditorValue:r&&r.getEditorValue,getEditorDisplayValue:r&&r.getEditorDisplayValue,iconChecked:r&&r.iconChecked,iconUnchecked:r&&r.iconUnchecked};return o.items=Array.isArray(e.items)?this._getPreparedCommands(t,e.items):r&&r.items,o}}).filter(e=>e)},_prepareContextMenuCommands(t,n,e){var i=!1;return t.map(r=>{if(this._isValidCommand(r,n)){if(!r.widget||r.widget!==q9){var o=this._cloneCommand(r,n);return o.icon=o.menuIcon,o.beginGroup=i,o.rootCommand=o.command?void 0:e&&e.command,i=!1,o}i=!0}}).filter(r=>r)},_prepareToolbarCommands(t,n){return t.map(e=>{if(this._isValidCommand(e,n))return this._cloneCommand(e,n)}).filter(e=>e).filter((e,i,r)=>(e.widget!==q9||i!==r.length-1)&&e)},_cloneCommand(t,n){var e=se({},t);return Array.isArray(t.items)&&(e.items=this._prepareContextMenuCommands(t.items,n,e)),e},_isValidCommand:(t,n)=>-1===(n=n||[]).indexOf(t.command),_exportTo(t,n,e,i){var r=Fn();if(r&&r.atob&&Yt(r.Blob)){var o=this._getBlobByDataURI(r,n,i),a=t.option("export");NB.saveAs(a.fileName||"foo",e,o)}},_getBlobByDataURI(t,n,e){for(var i=t.atob(n.split(",")[1]),r=new Uint8Array(i.length),o=0;o<i.length;o++)r[o]=i.charCodeAt(o);return new t.Blob([r.buffer],{type:e})}};const hu=Iqt,Mqt=class kqt extends $k{_getCommands(){return hu.getMainToolbarCommands(this.option("commands"),this.option("excludeCommands"))}},Fqt=class Aqt extends $k{_getCommands(){return hu.getHistoryToolbarCommands(this.option("commands"),this._getExcludeCommands())}_getExcludeCommands(){var n=[].concat(this.option("excludeCommands"));return this.option("isMobileView")||n.push(hu.SHOW_TOOLBOX_COMMAND_NAME),n}},Rqt=class Pqt extends $k{_getCommands(){return hu.getViewToolbarCommands(this.option("commands"),this.option("excludeCommands"))}},Bqt=class Lqt extends $k{_getCommands(){return hu.getPropertiesToolbarCommands()}};class S2e extends Zm{_renderContextMenuOverlay(){super._renderContextMenuOverlay(),this._overlay&&this.option("isTouchBarMode")&&this._overlay&&this._overlay.option("onShown",()=>{U(this._overlay.$content()).parent().addClass("dx-diagram-touchbar-overlay")})}}class Uqt extends qZ{constructor(n){super(n)}getCommandKeys(){return this._getKeys(this._owner._commands)}setItemValue(n,e){this._owner._setItemValue(n,e)}setItemEnabled(n,e){this._owner._setItemEnabled(n,e)}setItemVisible(n,e){this._owner._setItemVisible(n,e)}setItemSubItems(n,e){this._owner._setItemSubItems(n,e)}setEnabled(n){this._owner._setEnabled(n)}isVisible(){return this._owner.isVisible()}}const Wqt_DiagramContextMenuWrapper=class zqt extends tr{_init(){super._init(),this._createOnVisibilityChangingAction(),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnItemClickAction(),this._tempState=void 0,this._commands=[],this._commandToIndexMap={},this.bar=new Uqt(this)}_initMarkup(){super._initMarkup(),this._commands=this._getCommands(),this._commandToIndexMap={},this._fillCommandToIndexMap(this._commands,[]),this._$contextMenuTargetElement=U("<div>").addClass("dx-diagram-touchbar-target").appendTo(this.$element());var n=U("<div>").appendTo(this.$element());this._contextMenuInstance=this._createComponent(n,S2e,{isTouchBarMode:this._isTouchBarMode(),cssClass:this._isTouchBarMode()?"dx-diagram-touchbar":Ul.getContextMenuCssClass(),hideOnOutsideClick:!1,showEvent:"",focusStateEnabled:!1,items:this._commands,position:this._isTouchBarMode()?{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},of:this._$contextMenuTargetElement}:{},itemTemplate:function(e,i,r){Ul.getContextMenuItemTemplate(this,e,i,r)},onItemClick:e=>{var{itemData:i}=e;return this._onItemClick(i)},onShowing:e=>{!0!==this._inOnShowing&&(this._inOnShowing=!0,this._onVisibilityChangingAction({visible:!0,component:this}),e.component.option("items",e.component.option("items")),delete this._inOnShowing)}})}_show(n,e,i){if(this._contextMenuInstance.hide(),this._isTouchBarMode()){this._$contextMenuTargetElement.show(),i||(i={x:n,y:e,width:0,height:0});var r=i.width>800?0:(800-i.width)/2;this._$contextMenuTargetElement.css({left:i.x-r,top:i.y-32,width:i.width+2*r,height:i.height+64}),this._contextMenuInstance.show()}else this._contextMenuInstance.option("position",{offset:n+" "+e}),this._contextMenuInstance.show()}_hide(){this._$contextMenuTargetElement.hide(),this._contextMenuInstance.hide()}_isTouchBarMode(){var{Browser:n}=or();return n.TouchUI}_onItemClick(n){var e=!1;this._onItemClickAction&&(e=this._onItemClickAction(n)),e||(Ul.onContextMenuItemClick(this,n,this._executeCommand.bind(this)),this._contextMenuInstance.hide())}_executeCommand(n,e,i){"number"==typeof n?this.bar.raiseBarCommandExecuted(n,i):"string"==typeof n&&this._onInternalCommandAction({command:n}),void 0!==e&&this._onCustomCommandAction({name:e})}_createOnInternalCommand(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")}_createOnCustomCommand(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")}_getCommands(){return hu.getContextMenuCommands(this.option("commands"))}_fillCommandToIndexMap(n,e){n.forEach((i,r)=>{var o=e.concat([r]);void 0!==i.command&&(this._commandToIndexMap[i.command]=o),Array.isArray(i.items)&&this._fillCommandToIndexMap(i.items,o)})}_setItemEnabled(n,e){this._setItemVisible(n,e)}_setItemVisible(n,e){var i=Ul.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[n]);Ul.updateContextMenuItemVisible(this._contextMenuInstance,i,e)}_setItemValue(n,e){var i=Ul.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[n]);Ul.updateContextMenuItemValue(this._contextMenuInstance,i,n,e)}_setItemSubItems(n,e){var i=Ul.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[n]);Ul.updateContextMenuItems(this._contextMenuInstance,i,n,e)}_setEnabled(n){this._contextMenuInstance.option("disabled",!n)}isVisible(){return this._inOnShowing}_createOnVisibilityChangingAction(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")}_createOnItemClickAction(){this._onItemClickAction=this._createActionByOption("onItemClick")}_optionChanged(n){switch(n.name){case"onVisibilityChanging":this._createOnVisibilityChangingAction();break;case"onInternalCommand":this._createOnInternalCommand();break;case"onCustomCommand":this._createOnCustomCommand();break;case"onItemClick":this._createOnItemClickAction();break;case"commands":this._invalidate();break;case"export":break;default:super._optionChanged(n)}}};var D2e="dx-diagram-context-toolbox-content";const qqt=class $qt extends tr{_init(){super._init(),this._onShownAction=this._createActionByOption("onShown"),this._popoverPositionData=[{my:{x:"center",y:"top"},at:{x:"center",y:"bottom"},offset:{x:0,y:5}},{my:{x:"right",y:"center"},at:{x:"left",y:"center"},offset:{x:-5,y:0}},{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},offset:{x:0,y:-5}},{my:{x:"left",y:"center"},at:{x:"right",y:"center"},offset:{x:5,y:0}}]}_initMarkup(){super._initMarkup(),this._$popoverTargetElement=U("<div>").addClass("dx-diagram-context-toolbox-target").appendTo(this.$element());var n=U("<div>").appendTo(this.$element()),e="dx-diagram-context-toolbox";this._isTouchMode()&&(e+=" dx-diagram-touch-context-toolbox"),this._popoverInstance=this._createComponent(n,dC,{hideOnOutsideClick:!1,container:this.$element()}),this._popoverInstance.$element().addClass(e)}_isTouchMode(){var{Browser:n}=or();return n.TouchUI}_show(n,e,i,r,o){this._popoverInstance.hide();var a=U("<div>").addClass(D2e);void 0!==this.option("toolboxWidth")&&a.css("width",this.option("toolboxWidth")),this._$popoverTargetElement.css({left:n+this._popoverPositionData[i].offset.x,top:e+this._popoverPositionData[i].offset.y}).show();var s=Fn(),l=this._$popoverTargetElement.get(0);this._$popoverTargetElement.css({left:l.offsetLeft-(l.getBoundingClientRect().left+s.scrollX-l.offsetLeft),top:l.offsetTop-(l.getBoundingClientRect().top+s.scrollY-l.offsetTop)}),this._popoverInstance.option({position:{my:this._popoverPositionData[i].my,at:this._popoverPositionData[i].at,of:this._$popoverTargetElement},contentTemplate:a,onContentReady:function(){var u=this.$element().find("."+D2e);this._onShownAction({category:r,callback:o,$element:u,hide:()=>this._popoverInstance.hide()})}.bind(this)}),this._popoverInstance.show()}_hide(){this._$popoverTargetElement.hide(),this._popoverInstance.hide()}},Zqt=class Yqt extends tr{_init(){super._init(),this._command=void 0,this._isShown=!1,this._createOnGetContentOption(),this._createOnHiddenOption()}_initMarkup(){super._initMarkup(),this._command=this.option("command"),this._$popupElement=U("<div>").appendTo(this.$element()),this._popup=this._createComponent(this._$popupElement,Ss,{title:this.option("title"),maxWidth:this.option("maxWidth"),height:this.option("height"),toolbarItems:this.option("toolbarItems"),onHidden:this._onHiddenAction})}_clean(){delete this._popup,this._$popupElement&&this._$popupElement.remove()}_getDefaultOptions(){return se(super._getDefaultOptions(),{title:"",maxWidth:500,height:"auto",toolbarItems:this._getToolbarItems()})}_getToolbarItems(){return[this._getOkToolbarItem(),this._getCancelToolbarItem()]}_getOkToolbarItem(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:ye.format("dxDiagram-dialogButtonOK"),onClick:function(){this._command.execute(this._commandParameter),this._hide()}.bind(this)}}}_getCancelToolbarItem(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:ye.format("dxDiagram-dialogButtonCancel"),onClick:this._hide.bind(this)}}}_optionChanged(n){switch(n.name){case"title":case"maxWidth":case"height":case"toolbarItems":this._popup.option(n.name,n.value);break;case"command":this._command=n.value;break;case"onGetContent":this._createOnGetContentOption();break;case"onHidden":this._createOnHiddenOption();break;default:super._optionChanged(n)}}_createOnGetContentOption(){this._onGetContentAction=this._createActionByOption("onGetContent")}_createOnHiddenOption(){this._onHiddenAction=this._createActionByOption("onHidden")}_hide(){this._popup.hide(),this._isShown=!1}_show(){this._popup.$content().empty().append(this._onGetContentAction()),this._popup.show(),this._isShown=!0}isVisible(){return this._isShown}};var E2e=up(function(){var t=It.getDocument();t.body.insertAdjacentHTML("beforeend","<div style='position: absolute; overflow: scroll; width: 100px; height: 100px; top: -9999;'></div>");var n=t.body.lastElementChild,e=function Xqt(t){return t.offsetWidth-t.clientWidth}(n);return t.body.removeChild(n),e});const Qqt=class Jqt extends tr{_init(){super._init();var{EventDispatcher:n}=or();this.onScroll=new n,this._createOnCreateDiagramAction()}_initMarkup(){super._initMarkup();var n=U("<div>").appendTo(this.$element()),e={direction:"both",bounceEnabled:!1,scrollByContent:!1,onScroll:r=>{var{scrollOffset:o}=r;this._raiseOnScroll(o.left,o.top)}},i=this.option("useNativeScrolling");void 0!==i&&(e.useNative=i),this._scrollView=this._createComponent(n,Ih,e),this._onCreateDiagramAction({$parent:U(this._scrollView.content()),scrollView:this})}setScroll(n,e){this._scrollView.scrollTo({left:n,top:e}),this._raiseOnScrollWithoutPoint()}offsetScroll(n,e){this._scrollView.scrollBy({left:n,top:e}),this._raiseOnScrollWithoutPoint()}getSize(){var{Size:n}=or(),e=this._scrollView.$element();return new n(Math.floor(wn(e)),Math.floor(Ln(e)))}getScrollContainer(){return this._scrollView.$element()[0]}getScrollBarWidth(){return this.option("useNativeScrolling")?E2e():0}detachEvents(){}_raiseOnScroll(n,e){var{Point:i}=or();this.onScroll.raise("notifyScrollChanged",()=>new i(n,e))}_raiseOnScrollWithoutPoint(){var{Point:n}=or();this.onScroll.raise("notifyScrollChanged",()=>new n(this._scrollView.scrollLeft(),this._scrollView.scrollTop()))}_createOnCreateDiagramAction(){this._onCreateDiagramAction=this._createActionByOption("onCreateDiagram")}_optionChanged(n){switch(n.name){case"onCreateDiagram":this._createOnCreateDiagramAction();break;case"useNativeScrolling":break;default:super._optionChanged(n)}}};var eYt={getDefaultGroups(){return this._groups||(this._groups={general:{category:"general",title:ye.format("dxDiagram-categoryGeneral")},flowchart:{category:"flowchart",title:ye.format("dxDiagram-categoryFlowchart")},orgChart:{category:"orgChart",title:ye.format("dxDiagram-categoryOrgChart")},containers:{category:"containers",title:ye.format("dxDiagram-categoryContainers")},custom:{category:"custom",title:ye.format("dxDiagram-categoryCustom")}})},getGroups:function(t){var n=this.getDefaultGroups();return t?t.map(function(e){return"string"==typeof e?{category:e,title:n[e]&&n[e].title||e}:e}).filter(function(e){return e}):[n.general,n.flowchart,n.orgChart,n.containers]}};const tYt=eYt;var O2e=dC.inherit({_getDefaultOptions:function(){return se(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.$element().addClass("dx-tooltip"),this.$wrapper().addClass("dx-tooltip-wrapper"),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new Ni,this.$overlayContent().attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(t){var n=U(this.option("target")),e=t?this._contentId:void 0;Da(n.get(0))||this.setAria("describedby",e,n)}});On("dxTooltip",O2e);const T2e=O2e,Y9=T2e,I2e=class oYt extends C2e{_init(){super._init(),this._createOnVisibilityChangingAction(),this._createOnVisibilityChangedAction()}isVisible(){return this.option("isVisible")}isMobileView(){return this.option("isMobileView")}_initMarkup(){super._initMarkup();var n=this.$element(),e=U("<div>").addClass(this._getPopupClass()).addClass(this.isMobileView()&&"dx-diagram-mobile-popup").appendTo(n);this._popup=this._createComponent(e,Ss,this._getPopupOptions()),this._updatePopupVisible()}show(){this.option("isVisible",!0)}hide(){this.option("isVisible",!1)}toggle(){this.option("isVisible",!this.isVisible())}repaint(){this._popup.repaint()}_getPopupContent(){return this._popup.content()}_getPopupTitle(){return U(this._getPopupContent()).parent().find(".dx-popup-title")}_getPointerUpElements(){return[this._getPopupContent(),this._getPopupTitle()]}_getVerticalPaddingsAndBorders(){var n=U(this._getPopupContent());return Zn(n)-Ln(n)}_getHorizontalPaddingsAndBorders(){var n=U(this._getPopupContent());return ii(n)-wn(n)}_getPopupClass(){return""}_getPopupWidth(){return this.option("width")||"auto"}_getPopupMaxWidth(){return this.option("maxWidth")}_getPopupMinWidth(){return this.option("minWidth")}_getPopupHeight(){return this.option("height")||"auto"}_getPopupMaxHeight(){return this.option("maxHeight")}_getPopupMinHeight(){return this.option("minHeight")}_getPopupPosition(){return{}}_getPopupContainer(){return this.option("container")}_getPopupSlideAnimationObject(n){return se({type:"slide",start:()=>{U("body").css("overflow","hidden")},complete:()=>{U("body").css("overflow","")}},n)}_getPopupAnimation(){return{hide:{type:"fadeOut"},show:{type:"fadeIn"}}}_getPopupOptions(){var n=this;return{animation:Rn()?this._getPopupAnimation():null,shading:!1,showTitle:!1,focusStateEnabled:!1,container:this._getPopupContainer(),width:this._getPopupWidth(),height:this._getPopupHeight(),maxWidth:this._getPopupMaxWidth(),maxHeight:this._getPopupMaxHeight(),minWidth:this._getPopupMinWidth(),minHeight:this._getPopupMinHeight(),position:this._getPopupPosition(),showCloseButton:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,onContentReady:function(){n._renderPopupContent(n._popup.content())},onShowing:()=>{this._onVisibilityChangingAction({visible:!0,component:this})},onShown:()=>{this.option("isVisible",!0),this._onVisibilityChangedAction({visible:!0,component:this})},onHiding:()=>{this._onVisibilityChangingAction({visible:!1,component:this})},onHidden:()=>{this.option("isVisible",!1),this._onVisibilityChangedAction({visible:!1,component:this})}}}_renderPopupContent(n){}_updatePopupVisible(){this._popup.option("visible",this.isVisible())}_createOnVisibilityChangingAction(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")}_createOnVisibilityChangedAction(){this._onVisibilityChangedAction=this._createActionByOption("onVisibilityChanged")}_optionChanged(n){switch(n.name){case"onVisibilityChanging":this._createOnVisibilityChangingAction();break;case"onVisibilityChanged":this._createOnVisibilityChangedAction();break;case"container":this._popup.option("container",this._getPopupContainer());break;case"width":this._popup.option("width",this._getPopupWidth());break;case"height":this._popup.option("height",this._getPopupHeight());break;case"maxWidth":this._popup.option("maxWidth",this._getPopupMaxWidth());break;case"maxHeight":this._popup.option("maxHeight",this._getPopupMaxHeight());break;case"minWidth":this._popup.option("minWidth",this._getPopupMinWidth());break;case"minHeight":this._popup.option("minHeight",this._getPopupMinHeight());break;case"isMobileView":this._invalidate();break;case"isVisible":this._updatePopupVisible();break;default:super._optionChanged(n)}}_getDefaultOptions(){return se(super._getDefaultOptions(),{isVisible:!0,isMobileView:!1,offsetX:0,offsetY:0})}};var k2e="shape-toolbox-tooltip";const pYt=class hYt extends I2e{_init(){super._init(),this._toolboxes=[],this._filterText="",this._createOnShapeCategoryRenderedAction(),this._createOnFilterChangedAction()}_getPopupClass(){return"dx-diagram-toolbox-popup"}_getPopupHeight(){return this.isMobileView()?"100%":super._getPopupHeight()}_getPopupMaxHeight(){return this.isMobileView()?"100%":super._getPopupMaxHeight()}_getPopupMinHeight(){return 130}_getPopupPosition(){var e={my:"left top",at:"left top",of:this.option("offsetParent")};return this.isMobileView()?e:se(e,{offset:this.option("offsetX")+" "+this.option("offsetY")})}_getPopupAnimation(){var n=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"left",from:{position:{my:"left top",at:"left top",of:n}},to:{position:{my:"right top",at:"left top",of:n}}}),show:this._getPopupSlideAnimationObject({direction:"right",from:{position:{my:"right top",at:"left top",of:n}},to:{position:{my:"left top",at:"left top",of:n}}})}:super._getPopupAnimation()}_getPopupOptions(){var n=super._getPopupOptions();return this.isMobileView()?n:se(n,{showTitle:!0,toolbarItems:[{widget:"dxButton",location:"center",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"diagram-toolbox-drag",stylingMode:"outlined",type:"normal"}}]})}_renderPopupContent(n){var e="100%";if(this.option("showSearch")){var i=U("<div>").addClass("dx-diagram-toolbox-input-container").appendTo(n);this._updateElementWidth(i),this._renderSearchInput(i),Rn()&&(e="calc(100% - "+Ln(this._searchInput.$element())+"px)")}var r=U("<div>").addClass("dx-diagram-toolbox-panel").appendTo(n);xo(r,e),this._updateElementWidth(r),this._renderScrollView(r)}_updateElementWidth(n){void 0!==this.option("toolboxWidth")&&n.css("width",this.option("toolboxWidth"))}updateMaxHeight(){if(!this.isMobileView()){var n=6;if(this._popup){var e=this._getPopupTitle();n+=Zn(e)}this._accordion&&(n+=Zn(this._accordion.$element())),this._searchInput&&(n+=Zn(this._searchInput.$element())),this.option("maxHeight",n)}}_renderSearchInput(n){var e=U("<div>").addClass("dx-diagram-toolbox-input").appendTo(n);this._searchInput=this._createComponent(e,Th,{stylingMode:"outlined",placeholder:ye.format("dxDiagram-uiSearch"),onValueChanged:i=>{this._onInputChanged(i.value)},valueChangeEvent:"keyup",buttons:[{name:"search",location:"after",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"search",stylingMode:"outlined",type:"normal",onClick:()=>{this._searchInput.focus()}}}]})}_renderScrollView(n){var e=U("<div>").appendTo(n);this._scrollView=this._createComponent(e,Ih);var i=this._scrollView._moveIsAllowed.bind(this._scrollView);this._scrollView._moveIsAllowed=o=>{for(var a=0;a<this._toolboxes.length;a++)if(U(this._toolboxes[a]).children(".dxdi-tb-start-drag-flag").length)return!1;return i(o)};var r=U("<div>").appendTo(this._scrollView.content());this._updateElementWidth(r),this._renderAccordion(r)}_getAccordionDataSource(){for(var n=[],e=this.option("toolboxGroups"),i=0;i<e.length;i++){var r=e[i].category;n.push({category:r,title:e[i].title||r,expanded:e[i].expanded,displayMode:e[i].displayMode,shapes:e[i].shapes,onTemplate:(s,l,u)=>{var f=U(l);this._onShapeCategoryRenderedAction({category:u.category,displayMode:u.displayMode,dataToggle:k2e,shapes:u.shapes,$element:f}),this._toolboxes.push(f),""!==this._filterText&&this._onFilterChangedAction({text:this._filterText,filteringToolboxes:this._toolboxes.length-1}),this._createTooltips(f)}})}return n}_createTooltips(n){if(!this._isTouchMode()){var e=n.find('[data-toggle="'+k2e+'"]'),i=this.$element();e.each((r,o)=>{var a=U(o),s=a.attr("title");if(s){var l=U("<div>").text(s).appendTo(i);this._createComponent(l,Y9,{target:a.get(0),showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",animation:{show:{type:"fade",from:0,to:1,delay:500},hide:{type:"fade",from:1,to:0,delay:100}}})}})}}_isTouchMode(){var{Browser:n}=or();return n.TouchUI}_renderAccordion(n){this._accordion=this._createComponent(n,V0e,{multiple:!0,animationDuration:0,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,collapsible:!0,displayExpr:"title",dataSource:this._getAccordionDataSource(),disabled:this.option("disabled"),itemTemplate:(e,i,r)=>{e.onTemplate(this,r,e)},onSelectionChanged:e=>{this._updateScrollAnimateSubscription(e.component)},onContentReady:e=>{e.component.option("selectedItems",[]);for(var i=e.component.option("dataSource"),r=0;r<i.length;r++)!1===i[r].expanded?e.component.collapseItem(r):!0===i[r].expanded&&e.component.expandItem(r);i.length&&void 0===i[0].expanded&&e.component.expandItem(0),this._updateScrollAnimateSubscription(e.component)}})}_updateScrollAnimateSubscription(n){n._deferredAnimate=new et,n._deferredAnimate.done(()=>{this.updateMaxHeight(),this._scrollView.update(),this._updateScrollAnimateSubscription(n)})}_onInputChanged(n){this._filterText=n,this._onFilterChangedAction({text:this._filterText,filteringToolboxes:this._toolboxes.map((e,i)=>i)}),this.updateTooltips(),this.updateMaxHeight(),this._scrollView.update()}updateFilter(){this._onInputChanged(this._filterText)}updateTooltips(){this._toolboxes.forEach(n=>{var e=U(n);this._createTooltips(e)})}_createOnShapeCategoryRenderedAction(){this._onShapeCategoryRenderedAction=this._createActionByOption("onShapeCategoryRendered")}_createOnFilterChangedAction(){this._onFilterChangedAction=this._createActionByOption("onFilterChanged")}_optionChanged(n){switch(n.name){case"onShapeCategoryRendered":this._createOnShapeCategoryRenderedAction();break;case"onFilterChanged":this._createOnFilterChangedAction();break;case"showSearch":case"toolboxWidth":this._invalidate();break;case"toolboxGroups":this._accordion.option("dataSource",this._getAccordionDataSource());break;default:super._optionChanged(n)}}},xYt=class bYt extends I2e{_init(){super._init(),this._commandTabs=hu.getPropertyPanelCommandTabs(this.option("propertyTabs")),this._createOnCreateToolbar(),this._createOnSelectedGroupChanged()}_initMarkup(){this._toolbars=[],this._selectedToolbar=void 0,super._initMarkup()}_getPopupClass(){var n="dx-diagram-properties-popup";return this._hasTabPanel()||(n+=" dx-diagram-properties-popup-notabs"),n}_getPopupWidth(){return this.isMobileView()?"100%":420}_getPopupHeight(){return 340}_getPopupPosition(){var n=this.option("offsetParent");return this.isMobileView()?{my:"left bottom",at:"left bottom",of:n}:{my:"right bottom",at:"right bottom",of:n,offset:"-"+this.option("offsetX")+" -"+this.option("offsetY")}}_getPopupAnimation(){var n=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"bottom",from:{position:{my:"left bottom",at:"left bottom",of:n}},to:{position:{my:"left top",at:"left bottom",of:n}}}),show:this._getPopupSlideAnimationObject({direction:"top",from:{position:{my:"left top",at:"left bottom",of:n}},to:{position:{my:"left bottom",at:"left bottom",of:n}}})}:super._getPopupAnimation()}_getPopupOptions(){return se(super._getPopupOptions(),{showTitle:this.isMobileView(),showCloseButton:this.isMobileView()})}_renderPopupContent(n){if(this._commandTabs.length){var e=U("<div>").addClass("dx-diagram-properties-panel").appendTo(n);this._hasTabPanel()?this._renderTabPanel(e):this._renderTabContent(e,this._commandTabs[0],0,!0)}}_hasTabPanel(){return this._commandTabs.length>1}_renderTabPanel(n){var e=U("<div>").appendTo(n);this._tabPanel=this._createComponent(e,VY,{focusStateEnabled:!1,dataSource:this._commandTabs,itemTemplate:(i,r,o)=>{this._renderTabContent(o,i,r)},onSelectionChanged:i=>{this._onSelectedGroupChangedAction(),this._onPointerUpAction()},onContentReady:i=>{this._popup.option("height",Ln(i.component.$element())+this._getVerticalPaddingsAndBorders()),this._firstScrollView&&(this._scrollViewHeight=Zn(this._firstScrollView.$element()),this._firstScrollView.option("height",this._scrollViewHeight))}})}_renderTabContent(n,e,i,r){var o=U("<div>").appendTo(n),a=this._createComponent(o,Ih,{height:this._scrollViewHeight});this._renderTabInnerContent(a.content(),e,i),r?this._popup.option("height",Ln(a.$element())+this._getVerticalPaddingsAndBorders()):this._firstScrollView=this._firstScrollView||a}_renderTabInnerContent(n,e,i){e.groups?e.groups.forEach((r,o)=>{this._renderTabGroupContent(n,i,r.title,r.commands)}):e.commands&&this._renderTabGroupContent(n,i,void 0,e.commands)}_renderTabGroupContent(n,e,i,r){i&&U("<div>").addClass("dx-diagram-properties-panel-group-title").appendTo(n).text(i);var a={$parent:U("<div>").addClass("dx-diagram-properties-panel-group-toolbar").appendTo(n),commands:r};this._onCreateToolbarAction(a),this._toolbars[e]||(this._toolbars[e]=[]),this._toolbars[e].push(a.toolbar),this._selectedToolbar=a.toolbar}getActiveToolbars(){var n=this._tabPanel?this._tabPanel.option("selectedIndex"):0;return this._toolbars[n]}_createOnCreateToolbar(){this._onCreateToolbarAction=this._createActionByOption("onCreateToolbar")}_createOnSelectedGroupChanged(){this._onSelectedGroupChangedAction=this._createActionByOption("onSelectedGroupChanged")}_optionChanged(n){switch(n.name){case"onCreateToolbar":this._createOnCreateToolbar();break;case"onSelectedGroupChanged":this._createOnSelectedGroupChanged();break;case"propertyTabs":this._invalidate();break;default:super._optionChanged(n)}}},SYt=class wYt extends qZ{constructor(n){super(n);var{DiagramCommand:e}=or();this.commandOptions={},this.commandOptions[e.Fullscreen]="fullScreen",this.commandOptions[e.ZoomLevel]=function(i){"object"==typeof this._getOption("zoomLevel")?this._setOption("zoomLevel.value",i):this._setOption("zoomLevel",i)},this.commandOptions[e.SwitchAutoZoom]=function(i){var{AutoZoomMode:r}=or();switch(i){case r.FitContent:this._setOption("autoZoomMode","fitContent");break;case r.FitToWidth:this._setOption("autoZoomMode","fitWidth");break;case r.Disabled:this._setOption("autoZoomMode","disabled")}},this.commandOptions[e.ToggleSimpleView]="simpleView",this.commandOptions[e.ShowGrid]="showGrid",this.commandOptions[e.SnapToGrid]="snapToGrid",this.commandOptions[e.GridSize]=function(i){"object"==typeof this._getOption("gridSize")?this._setOption("gridSize.value",i):this._setOption("gridSize",i)},this.commandOptions[e.ViewUnits]="viewUnits",this.commandOptions[e.PageSize]=function(i){var r=this._getOption("pageSize");(void 0===r||r.width!==i.width||r.height!==i.height)&&this._setOption("pageSize",i)},this.commandOptions[e.PageLandscape]=function(i){this._setOption("pageOrientation",i?"landscape":"portrait")},this.commandOptions[e.ViewUnits]=function(i){var{DiagramUnit:r}=or();switch(i){case r.In:this._setOption("viewUnits","in");break;case r.Cm:this._setOption("viewUnits","cm");break;case r.Px:this._setOption("viewUnits","px")}},this.commandOptions[e.PageColor]="pageColor",this._updateLock=0}getCommandKeys(){return Object.keys(this.commandOptions).map(function(n){return parseInt(n)})}setItemValue(n,e){if(!this.isUpdateLocked()){this.beginUpdate();try{"function"==typeof this.commandOptions[n]?this.commandOptions[n].call(this,e):this._setOption(this.commandOptions[n],e)}finally{this.endUpdate()}}}beginUpdate(){this._updateLock++}endUpdate(){this._updateLock--}isUpdateLocked(){return this._updateLock>0}_getOption(n){return this._owner.option(n)}_setOption(n,e){this._owner.option(n,e)}};var M2e=Ru.inherit({_getDefaultOptions:function(){return se(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass("dx-trackbar"),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=U("<div>").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer:function(){this._$bar=U("<div>").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange:function(){this._$range=U("<div>").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue:function(){var t=this.option("value"),n=this.option("min"),e=this.option("max");if(!(n>e)){if(t<n)return this.option("value",n),void(this._currentRatio=0);if(t>e)return this.option("value",e),void(this._currentRatio=1);var i=n===e?0:(t-n)/(e-n);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:e,valuenow:t}),this._currentRatio=i}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(t){Hi.stop(this._$range),t?this._needPreventAnimation||!Rn()||Hi.animate(this._$range,{type:"custom",duration:100,to:t}):this._$range.css({width:0})},_optionChanged:function(t){switch(t.name){case"value":this._renderValue(),this.callBase(t);break;case"max":case"min":this._renderValue();break;default:this.callBase(t)}},_dispose:function(){Hi.stop(this._$range),this.callBase()}});On("dxTrackBar",M2e);const A2e=M2e;var F2e="dx-progressbar-animating-segment",P2e=A2e.inherit({_getDefaultOptions:function(){return se(this.callBase(),{value:0,statusFormat:function(t){return"Progress: "+Math.round(100*t)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(t){return"android"===t.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass("dx-progressbar"),this._$wrapper.addClass("dx-progressbar-wrapper"),this._$bar.addClass("dx-progressbar-container"),this.setAria("role","progressbar"),U("<div>").addClass("dx-progressbar-range-container").appendTo(this._$wrapper).append(this._$bar),this._$range.addClass("dx-progressbar-range"),this._toggleStatus(this.option("showStatus"))},_useTemplates:function(){return!1},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=U("<div>").addClass("dx-progressbar-status")},_renderIndeterminateState:function(){this._$segmentContainer=U("<div>").addClass("dx-progressbar-animating-container");for(var t=this.option("_animatingSegmentCount"),n=0;n<t;n++)U("<div>").addClass(F2e).addClass(F2e+"-"+(n+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(t){var n=this.option("statusPosition").split(" ");t?"top"===n[0]||"left"===n[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var n=this.option("statusPosition").split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var e="dx-position-"+n[0];n[1]&&(e+="-"+n[1]),this._$wrapper.addClass(e)},_toggleIndeterminateState:function(t){t?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var t=this.option("value"),n=this.option("max");t||0===t?(this._$segmentContainer&&this._toggleIndeterminateState(!1),t===n&&this._completeAction(),this.callBase(),this._setStatus()):this._toggleIndeterminateState(!0)},_setStatus:function(){var t=this.option("statusFormat");t=Yt(t)?t.bind(this):function(e){return e};var n=t(this._currentRatio,this.option("value"));this._$status.text(n)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(t){switch(t.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(t.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(t)}}});On("dxProgressBar",P2e);const JZ=P2e;var qk=Fn(),R2e="dx-fileuploader-dragover",L2e="dx-fileuploader-file-container",B2e="dx-fileuploader-file-name",N2e="dx-fileuploader-file-size",Yk="dx-fileuploader-button",QZ="dx-fileuploader-button-container",V2e="dx-fileuploader-upload-button",eX=()=>!!qk.FormData;class z2e extends Ru{_supportedKeys(){var n=e=>{e.preventDefault();var i=this._selectButton.$element();Se.trigger(i,Vi)};return se(super._supportedKeys(),{space:n,enter:n})}_setOptionsByReference(){super._setOptionsByReference(),se(this._optionsByReference,{value:!0})}_getDefaultOptions(){return se(super._getDefaultOptions(),{chunkSize:0,value:[],selectButtonText:ye.format("dxFileUploader-selectFile"),uploadButtonText:ye.format("dxFileUploader-upload"),labelText:ye.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,dialogTrigger:void 0,dropZone:void 0,readyToUploadMessage:ye.format("dxFileUploader-readyToUpload"),uploadedMessage:ye.format("dxFileUploader-uploaded"),uploadFailedMessage:ye.format("dxFileUploader-uploadFailedMessage"),uploadAbortedMessage:ye.format("dxFileUploader-uploadAbortedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},uploadCustomData:{},onBeforeSend:null,onUploadStarted:null,onUploaded:null,onFilesUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,onDropZoneEnter:null,onDropZoneLeave:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,inputAttr:{},invalidFileExtensionMessage:ye.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:ye.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:ye.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",uploadFile:null,uploadChunk:null,abortUpload:null,validationMessageOffset:{h:0,v:0},hoverStateEnabled:!0,useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal"})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>"desktop"===pn.real().deviceType&&!pn.isSimulator(),options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{validationMessageOffset:{v:0}}},{device:()=>"desktop"!==pn.real().deviceType,options:{useDragOver:!1}},{device:()=>!eX(),options:{uploadMode:"useForm"}},{device:()=>"desktop"!==pn.real().deviceType,options:{nativeDropSupported:!1}},{device:()=>io(),options:{_uploadButtonType:"default"}}])}_initOptions(n){var e="labelText"in n;super._initOptions(n),!e&&!this._shouldDragOverBeRendered()&&this.option("labelText","")}_init(){super._init(),this._initFileInput(),this._initLabel(),this._setUploadStrategy(),this._createFiles(),this._createBeforeSendAction(),this._createUploadStartedAction(),this._createUploadedAction(),this._createFilesUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction(),this._createDropZoneEnterAction(),this._createDropZoneLeaveAction()}_setUploadStrategy(){var n=null;if(this.option("chunkSize")>0){var e=this.option("uploadChunk");n=e&&Yt(e)?new nZt(this):new tZt(this)}else{var i=this.option("uploadFile");n=i&&Yt(i)?new rZt(this):new iZt(this)}this._uploadStrategy=n}_initFileInput(){this._isCustomClickEvent=!1,this._$fileInput||(this._$fileInput=U("<input>").attr("type","file"),Se.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),Se.on(this._$fileInput,"click",n=>(n.stopPropagation(),this._resetInputValue(),this.option("useNativeInputClick")||this._isCustomClickEvent))),this._$fileInput.prop({multiple:this.option("multiple"),accept:this.option("accept"),tabIndex:-1})}_inputChangeHandler(){if(!this._doPreventInputChange){var n=this._$fileInput.val().replace(/^.*\\/,""),e=this._$fileInput.prop("files");if(!e||e.length||"useForm"===this.option("uploadMode")){var i=e?this._getFiles(e):[{name:n}];this._changeValue(i),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}}_shouldFileListBeExtended(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")}_changeValue(n){var e=this._shouldFileListBeExtended()?this.option("value").slice():[];this.option("value",e.concat(n))}_getFiles(n){var e=[];return we(n,(i,r)=>e.push(r)),e}_getFile(n){var e=di(n)?this.option("value")[n]:n;return this._files.filter(i=>i.value===e)[0]}_initLabel(){this._$inputLabel||(this._$inputLabel=U("<div>")),this._updateInputLabelText()}_updateInputLabelText(){var n=this._isInteractionDisabled()?"":this.option("labelText");this._$inputLabel.text(n)}_focusTarget(){return this.$element().find("."+Yk)}_getSubmitElement(){return this._$fileInput}_initMarkup(){super._initMarkup(),this.$element().addClass("dx-fileuploader"),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0,this._activeDropZone=null}_render(){this._preventRecreatingFiles=!1,this._attachDragEventHandlers(this._$inputWrapper),this._attachDragEventHandlers(this.option("dropZone")),this._renderFiles(),super._render()}_createFileProgressBar(n){n.progressBar=this._createProgressBar(n.value.size),n.progressBar.$element().appendTo(n.$file),this._initStatusMessage(n),this._ensureCancelButtonInitialized(n)}_setStatusMessage(n,e){setTimeout(()=>{this.option("showFileList")&&n.$statusMessage&&(n.$statusMessage.text(e),n.$statusMessage.css("display",""),n.progressBar.$element().remove())},400)}_getUploadAbortedStatusMessage(){return"instantly"===this.option("uploadMode")?this.option("uploadAbortedMessage"):this.option("readyToUploadMessage")}_createFiles(){var n=this.option("value");this._files&&(0===n.length||!this._shouldFileListBeExtended())&&(this._preventFilesUploading(this._files),this._files=null),this._files||(this._files=[]),we(n.slice(this._files.length),(e,i)=>{var r=this._createFile(i);this._validateFile(r),this._files.push(r)})}_preventFilesUploading(n){n.forEach(e=>this._uploadStrategy.abortUpload(e))}_validateFile(n){n.isValidFileExtension=this._validateFileExtension(n),n.isValidMinSize=this._validateMinFileSize(n),n.isValidMaxSize=this._validateMaxFileSize(n)}_validateFileExtension(n){var e=this.option("allowedFileExtensions"),i=this.option("accept"),r=this._getAllowedFileTypes(i),o=n.value.name.substring(n.value.name.lastIndexOf(".")).toLowerCase();if(0!==i.length&&!this._isFileTypeAllowed(n.value,r))return!1;if(0===e.length)return!0;for(var a=0;a<e.length;a++)if(o===e[a].toLowerCase())return!0;return!1}_validateMaxFileSize(n){var e=n.value.size,i=this.option("maxFileSize");return!(i>0)||e<=i}_validateMinFileSize(n){var e=n.value.size,i=this.option("minFileSize");return!(i>0)||e>=i}_createBeforeSendAction(){this._beforeSendAction=this._createActionByOption("onBeforeSend",{excludeValidators:["readOnly"]})}_createUploadStartedAction(){this._uploadStartedAction=this._createActionByOption("onUploadStarted",{excludeValidators:["readOnly"]})}_createUploadedAction(){this._uploadedAction=this._createActionByOption("onUploaded",{excludeValidators:["readOnly"]})}_createFilesUploadedAction(){this._filesUploadedAction=this._createActionByOption("onFilesUploaded",{excludeValidators:["readOnly"]})}_createProgressAction(){this._progressAction=this._createActionByOption("onProgress",{excludeValidators:["readOnly"]})}_createUploadAbortedAction(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted",{excludeValidators:["readOnly"]})}_createUploadErrorAction(){this._uploadErrorAction=this._createActionByOption("onUploadError",{excludeValidators:["readOnly"]})}_createDropZoneEnterAction(){this._dropZoneEnterAction=this._createActionByOption("onDropZoneEnter")}_createDropZoneLeaveAction(){this._dropZoneLeaveAction=this._createActionByOption("onDropZoneLeave")}_createFile(n){return{value:n,loadedSize:0,onProgress:Zi(),onAbort:Zi(),onLoad:Zi(),onError:Zi(),onLoadStart:Zi(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize},isInitialized:!1}}_resetFileState(n){n.isAborted=!1,n.uploadStarted=!1,n.isStartLoad=!1,n.loadedSize=0,n.chunksData=void 0,n.request=void 0}_renderFiles(){var n,e=this.option("value");this._$filesContainer?(!this._shouldFileListBeExtended()||0===e.length)&&this._$filesContainer.empty():this._$filesContainer=U("<div>").addClass("dx-fileuploader-files-container").appendTo(this._$content);var i=this.option("showFileList");i&&we(this._files,(r,o)=>{o.$file||this._renderFile(o)}),this.$element().toggleClass("dx-fileuploader-show-file-list",i),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),null===(n=this._validationMessage)||void 0===n||n.repaint()}_renderFile(n){var e=n.value,i=U("<div>").addClass(L2e).appendTo(this._$filesContainer);this._renderFileButtons(n,i),n.$file=U("<div>").addClass("dx-fileuploader-file").appendTo(i);var r=U("<div>").addClass("dx-fileuploader-file-info").appendTo(n.$file);n.$statusMessage=U("<div>").addClass("dx-fileuploader-file-status-message").appendTo(n.$file),U("<div>").addClass(B2e).text(e.name).appendTo(r),Z(e.size)&&U("<div>").addClass(N2e).text(this._getFileSize(e.size)).appendTo(r),n.isValid()?n.$statusMessage.text(this.option("readyToUploadMessage")):(n.isValidFileExtension||n.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),n.isValidMaxSize||n.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),n.isValidMinSize||n.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),i.addClass("dx-fileuploader-invalid"))}_createValidationElement(n){return U("<span>").text(this.option(n))}_updateFileNameMaxWidth(){var n=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,e="useButtons"===this.option("uploadMode")?1:0,i=wn(this._$filesContainer.find("."+L2e).first())||wn(this._$filesContainer),r=this._$filesContainer.find("."+QZ).eq(0),o=wn(r)*(n+e),a=this._$filesContainer.find("."+N2e).eq(0),s=a.text();a.text("1000 Mb");var l=wn(a);a.text(s),this._$filesContainer.find("."+B2e).css("maxWidth",i-o-l)}_renderFileButtons(n,e){var i=this._getCancelButton(n);i&&e.append(i);var r=this._getUploadButton(n);r&&e.append(r)}_getCancelButton(n){return"useForm"===this.option("uploadMode")?null:(n.cancelButton=this._createComponent(U("<div>").addClass(Yk+" dx-fileuploader-cancel-button"),To,{onClick:()=>this._removeFile(n),icon:"close",visible:this.option("allowCanceling"),disabled:this.option("readOnly"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")}),U("<div>").addClass(QZ).append(n.cancelButton.$element()))}_getUploadButton(n){return n.isValid()&&"useButtons"===this.option("uploadMode")?(n.uploadButton=this._createComponent(U("<div>").addClass(Yk+" "+V2e),To,{onClick:()=>this._uploadFile(n),icon:"upload",hoverStateEnabled:this.option("hoverStateEnabled")}),n.onLoadStart.add(()=>n.uploadButton.option({visible:!1,disabled:!0})),n.onAbort.add(()=>n.uploadButton.option({visible:!0,disabled:!1})),U("<div>").addClass(QZ).append(n.uploadButton.$element())):null}_removeFile(n){var e;null===(e=n.$file)||void 0===e||e.parent().remove(),this._files.splice(this._files.indexOf(n),1);var i=this.option("value").slice();i.splice(i.indexOf(n.value),1),this._preventRecreatingFiles=!0,this.option("value",i),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._resetInputValue(!0)}removeFile(n){if("useForm"!==this.option("uploadMode")&&Z(n)){var e=this._getFile(n);e&&(e.uploadStarted&&this._preventFilesUploading([e]),this._removeFile(e))}}_toggleFileUploaderEmptyClassName(){this.$element().toggleClass("dx-fileuploader-empty",!this._files.length||this._hasInvalidFile(this._files))}_hasInvalidFile(n){for(var e=0;e<n.length;e++)if(!n[e].isValid())return!0;return!1}_getFileSize(n){for(var e=0,i=[ye.format("dxFileUploader-bytes"),ye.format("dxFileUploader-kb"),ye.format("dxFileUploader-Mb"),ye.format("dxFileUploader-Gb")],r=i.length-1;e<r&&n>=1024;)n/=1024,e++;return Math.round(n)+" "+i[e]}_renderSelectButton(){var n=U("<div>").addClass(Yk).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(n,To,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{},disabled:this.option("readOnly"),hoverStateEnabled:this.option("hoverStateEnabled")}),this._selectFileDialogHandler=this._selectButtonClickHandler.bind(this),"desktop"===pn.real().deviceType?this._selectButton.option("onClick",this._selectFileDialogHandler):this._attachSelectFileDialogHandler(this._selectButton.$element()),this._attachSelectFileDialogHandler(this.option("dialogTrigger"))}_selectButtonClickHandler(){if(!this.option("useNativeInputClick")){if(this._isInteractionDisabled())return!1;this._isCustomClickEvent=!0,Se.trigger(this._$fileInput,"click"),this._isCustomClickEvent=!1}}_attachSelectFileDialogHandler(n){Z(n)&&(this._detachSelectFileDialogHandler(n),Se.on(U(n),"click",this._selectFileDialogHandler))}_detachSelectFileDialogHandler(n){Z(n)&&Se.off(U(n),"click",this._selectFileDialogHandler)}_renderUploadButton(){if("useButtons"===this.option("uploadMode")){var n=U("<div>").addClass(Yk).addClass(V2e).appendTo(this._$content);this._uploadButton=this._createComponent(n,To,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")})}}_uploadButtonClickHandler(){this._uploadFiles()}_shouldDragOverBeRendered(){return!this.option("readOnly")&&("useForm"!==this.option("uploadMode")||this.option("nativeDropSupported"))}_isInteractionDisabled(){return this.option("readOnly")||this.option("disabled")}_renderInputContainer(){this._$inputContainer=U("<div>").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper),this._$fileInput.addClass("dx-fileuploader-input"),this._renderInput();var n="dx-fileuploader-input-label-".concat(new Ni);this._$inputLabel.attr("id",n).addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer),this.setAria("labelledby",n,this._$fileInput)}_renderInput(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content")),this._applyInputAttributes(this.option("inputAttr"))}_selectButtonInputTemplate(n,e){var i=U(e),r=U("<span>").addClass("dx-button-text").text(n.text);return i.append(r).append(this._$fileInput),i}_renderInputWrapper(){this._$inputWrapper=U("<div>").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)}_detachDragEventHandlers(n){Z(n)&&Se.off(U(n),kt("",this.NAME))}_attachDragEventHandlers(n){var e=n!==this._$inputWrapper;!Z(n)||!this._shouldDragOverBeRendered()||(this._detachDragEventHandlers(n),n=U(n),Se.on(n,kt("dragenter",this.NAME),this._dragEnterHandler.bind(this,e)),Se.on(n,kt("dragover",this.NAME),this._dragOverHandler.bind(this,e)),Se.on(n,kt("dragleave",this.NAME),this._dragLeaveHandler.bind(this,e)),Se.on(n,kt("drop",this.NAME),this._dropHandler.bind(this,e)))}_applyInputAttributes(n){this._$fileInput.attr(n)}_useInputForDrop(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")}_getDropZoneElement(n,e){var i=n?Array.from(U(this.option("dropZone"))):[this._$inputWrapper];return(i=i.map(r=>U(r).get(0)))[i.indexOf(e.currentTarget)]}_dragEnterHandler(n,e){if(this.option("disabled"))return!1;this._useInputForDrop()||e.preventDefault();var i=this._getDropZoneElement(n,e);Z(i)&&null===this._activeDropZone&&this.isMouseOverElement(e,i,!1)&&(this._activeDropZone=i,this._tryToggleDropZoneActive(!0,n,e))}_dragOverHandler(n,e){if(this._useInputForDrop()||e.preventDefault(),e.originalEvent.dataTransfer.dropEffect="copy",!n){var i=this._getDropZoneElement(!1,e);null===this._activeDropZone&&this.isMouseOverElement(e,i,!1)&&this._dragEnterHandler(!1,e),null!==this._activeDropZone&&this._shouldRaiseDragLeave(e,!1)&&this._dragLeaveHandler(!1,e)}}_dragLeaveHandler(n,e){this._useInputForDrop()||e.preventDefault(),null!==this._activeDropZone&&this._shouldRaiseDragLeave(e,n)&&(this._tryToggleDropZoneActive(!1,n,e),this._activeDropZone=null)}_shouldRaiseDragLeave(n,e){return!this.isMouseOverElement(n,this._activeDropZone,!e)}_tryToggleDropZoneActive(n,e,i){var r=n?"addClass":"removeClass";this[n?"_dropZoneEnterAction":"_dropZoneLeaveAction"]({event:i,dropZoneElement:this._activeDropZone}),e||this.$element()[r](R2e)}_dropHandler(n,e){if(this._activeDropZone=null,n||this.$element().removeClass(R2e),!(this._useInputForDrop()||n&&this._isInteractionDisabled())){e.preventDefault();var r=this._getFiles(e.originalEvent.dataTransfer.files);!this.option("multiple")&&r.length>1||(this._changeValue(r),"instantly"===this.option("uploadMode")&&this._uploadFiles())}}_areAllFilesLoaded(){return this._files.every(n=>!n.isValid()||n._isError||n._isLoaded||n.isAborted)}_handleAllFilesUploaded(){this._recalculateProgress(),this._areAllFilesLoaded()&&this._filesUploadedAction()}_getAllowedFileTypes(n){return n.length?n.split(",").map(e=>e.trim()):[]}_isFileTypeAllowed(n,e){for(var i=0,r=e.length;i<r;i++){var o=e[i];if("."===o[0]){if(o=o.replace(".","\\."),n.name.match(new RegExp(o+"$","i")))return!0}else if(o=o.replace(new RegExp("\\*","g"),""),n.type.match(new RegExp(o,"i")))return!0}return!1}_renderWrapper(){var n=U("<div>").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),e=U("<div>").addClass("dx-fileuploader-container").appendTo(n);this._$content=U("<div>").addClass("dx-fileuploader-content").appendTo(e)}_clean(){this._$fileInput.detach(),delete this._$filesContainer,this._detachSelectFileDialogHandler(this.option("dialogTrigger")),this._detachDragEventHandlers(this.option("dropZone")),this._files&&this._files.forEach(n=>{n.$file=null,n.$statusMessage=null}),super._clean()}abortUpload(n){if("useForm"!==this.option("uploadMode"))if(Z(n)){var e=this._getFile(n);e&&this._preventFilesUploading([e])}else this._preventFilesUploading(this._files)}upload(n){if("useForm"!==this.option("uploadMode"))if(Z(n)){var e=this._getFile(n);e&&eX()&&this._uploadFile(e)}else this._uploadFiles()}_uploadFiles(){eX()&&we(this._files,(n,e)=>this._uploadFile(e))}_uploadFile(n){this._uploadStrategy.upload(n)}_updateProgressBar(n,e){n.progressBar&&n.progressBar.option({value:e.loaded,showStatus:!0}),this._progressAction({file:n.value,segmentSize:e.currentSegmentSize,bytesLoaded:e.loaded,bytesTotal:e.total,event:e.event,request:n.request})}_updateTotalProgress(n,e){var i=0;Z(n)&&(this._files.length>0&&this._areAllFilesLoaded()&&0===n&&0===e?i=this._getProgressValue(1):n&&(i=this._getProgressValue(e/n))),this.option("progress",i),this._setLoadedSize(e)}_getProgressValue(n){return Math.floor(100*n)}_initStatusMessage(n){n.$statusMessage.css("display","none")}_ensureCancelButtonInitialized(n){if(!n.isInitialized){n.cancelButton.option("onClick",()=>{this._preventFilesUploading([n]),this._removeFile(n)});var e=()=>{setTimeout(()=>{n.cancelButton.option({visible:!1})},400)};n.onLoad.add(e),n.onError.add(e)}}_createProgressBar(n){return this._createComponent(U("<div>"),JZ,{value:void 0,min:0,max:n,statusFormat:e=>this._getProgressValue(e)+"%",showStatus:!1,statusPosition:"right"})}_getTotalFilesSize(){return this._totalFilesSize||(this._totalFilesSize=0,we(this._files,(n,e)=>{this._totalFilesSize+=e.value.size})),this._totalFilesSize}_getTotalLoadedFilesSize(){return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,we(this._files,(n,e)=>{this._totalLoadedFilesSize+=e.loadedSize})),this._totalLoadedFilesSize}_setLoadedSize(n){this._totalLoadedFilesSize=n}_recalculateProgress(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())}isMouseOverElement(n,e,i){if(!e)return!1;var r=i?parseFloat(qk.getComputedStyle(e,":before").height):0,o=i?parseFloat(qk.getComputedStyle(e,":after").height):0,a=LO(e).left,s=LO(e).top+r,l=e.offsetWidth,u=e.offsetHeight-r-o,f=this._getEventX(n),S=this._getEventY(n);return f>=a&&f<a+l&&S>=s&&S<s+u}_getEventX(n){return ym(n)?this._getTouchEventX(n):n.clientX+this._getDocumentScrollLeft()}_getEventY(n){return ym(n)?this._getTouchEventY(n):n.clientY+this._getDocumentScrollTop()}_getTouchEventX(n){var e=null;return n.changedTouches.length>0?e=n.changedTouches:n.targetTouches.length>0&&(e=n.targetTouches),e?e[0].pageX:0}_getTouchEventY(n){var e=null;return n.changedTouches.length>0?e=n.changedTouches:n.targetTouches.length>0&&(e=n.targetTouches),e?e[0].pageY:0}_getDocumentScrollTop(){var n=It.getDocument();return n.documentElement.scrollTop||n.body.scrollTop}_getDocumentScrollLeft(){var n=It.getDocument();return n.documentElement.scrollLeft||n.body.scrollLeft}_updateReadOnlyState(){var n=this.option("readOnly");this._selectButton.option("disabled",n),this._files.forEach(e=>{var i;return null===(i=e.cancelButton)||void 0===i?void 0:i.option("disabled",n)}),this._updateInputLabelText(),this._attachDragEventHandlers(this._$inputWrapper)}_updateHoverState(){var n,e,i=this.option("hoverStateEnabled");null===(n=this._selectButton)||void 0===n||n.option("hoverStateEnabled",i),null===(e=this._uploadButton)||void 0===e||e.option("hoverStateEnabled",i),this._files.forEach(r=>{var o,a;null===(o=r.uploadButton)||void 0===o||o.option("hoverStateEnabled",i),null===(a=r.cancelButton)||void 0===a||a.option("hoverStateEnabled",i)})}_optionChanged(n){var{name:e,value:i,previousValue:r}=n;switch(e){case"height":case"width":this._updateFileNameMaxWidth(),super._optionChanged(n);break;case"value":!i.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),super._optionChanged(n);break;case"name":this._initFileInput(),super._optionChanged(n);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),n.value||this.reset();break;case"readOnly":this._updateReadOnlyState(),super._optionChanged(n);break;case"disabled":this._updateInputLabelText(),super._optionChanged(n);break;case"selectButtonText":this._selectButton.option("text",i);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",i);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",i);break;case"dialogTrigger":this._detachSelectFileDialogHandler(r),this._attachSelectFileDialogHandler(i);break;case"dropZone":this._detachDragEventHandlers(r),this._attachDragEventHandlers(i);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":case"uploadAbortedMessage":case"nativeDropSupported":this._invalidate();break;case"labelText":this._updateInputLabelText();break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"uploadFile":case"uploadChunk":case"chunkSize":this._setUploadStrategy();break;case"abortUpload":case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"uploadCustomData":case"extendSelection":break;case"hoverStateEnabled":this._updateHoverState(),super._optionChanged(n);break;case"allowCanceling":case"uploadMode":this.reset(),this._invalidate();break;case"onBeforeSend":this._createBeforeSendAction();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onFilesUploaded":this._createFilesUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"onDropZoneEnter":this._createDropZoneEnterAction();break;case"onDropZoneLeave":this._createDropZoneLeaveAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._attachDragEventHandlers(this._$inputWrapper);break;case"inputAttr":this._applyInputAttributes(this.option(e));break;default:super._optionChanged(n)}}_resetInputValue(n){"useForm"===this.option("uploadMode")&&!n||(this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1)}reset(){this.option("value",[])}}class eZt{constructor(n,e){this.file=n,this.chunkSize=e,this.index=0}read(){if(!this.file)return null;var n=this.createBlobResult(this.file,this.index,this.chunkSize);return n.isCompleted&&(this.file=null),this.index++,n}createBlobResult(n,e,i){var r=e*i;return{blob:this.sliceFile(n,r,i),index:e,isCompleted:r+i>=n.size}}sliceFile(n,e,i){return n.slice?n.slice(e,e+i):n.webkitSlice?n.webkitSlice(e,e+i):null}}class U2e{constructor(n){this.fileUploader=n}upload(n){n.isInitialized&&n.isAborted&&this.fileUploader._resetFileState(n),n.isValid()&&!n.uploadStarted&&(this._prepareFileBeforeUpload(n),this._uploadCore(n))}abortUpload(n){if(!(n._isError||n._isLoaded||n.isAborted)&&n.uploadStarted&&(n.isAborted=!0,n.request&&n.request.abort(),this._isCustomCallback("abortUpload"))){var e=this.fileUploader.option("abortUpload"),i=this._createUploadArgument(n),r=null;try{r=ra(e(n.value,i))}catch(a){r=(new et).reject(a).promise()}r.done(()=>n.onAbort.fire()).fail(a=>this._handleFileError(n,a))}}_beforeSend(n,e){var i=this._createUploadArgument(e);this.fileUploader._beforeSendAction({request:n,file:e.value,uploadInfo:i}),e.request=n}_createUploadArgument(n){}_uploadCore(n){}_isCustomCallback(n){var e=this.fileUploader.option(n);return e&&Yt(e)}_handleProgress(n,e){n._isError||(n._isProgressStarted=!0,this._handleProgressCore(n,e))}_handleProgressCore(n,e){}_handleFileError(n,e){n._isError=!0,n.onError.fire(e)}_prepareFileBeforeUpload(n){var e;n.$file&&(null===(e=n.progressBar)||void 0===e||e.dispose(),this.fileUploader._createFileProgressBar(n)),n.isInitialized||(n.onLoadStart.add(this._onUploadStarted.bind(this,n)),n.onLoad.add(this._onLoadedHandler.bind(this,n)),n.onError.add(this._onErrorHandler.bind(this,n)),n.onAbort.add(this._onAbortHandler.bind(this,n)),n.onProgress.add(this._onProgressHandler.bind(this,n)),n.isInitialized=!0)}_shouldHandleError(n,e){return(this._isStatusError(e.status)||!n._isProgressStarted)&&!n.isAborted}_isStatusError(n){return 400<=n&&n<500||500<=n&&n<600}_onUploadStarted(n,e){n.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:n.value,event:e,request:n.request})}_onAbortHandler(n,e){var i={file:n.value,event:e,request:n.request,message:this.fileUploader._getUploadAbortedStatusMessage()};this.fileUploader._uploadAbortedAction(i),this.fileUploader._setStatusMessage(n,i.message),this.fileUploader._handleAllFilesUploaded()}_onErrorHandler(n,e){var i={file:n.value,event:void 0,request:n.request,error:e,message:this.fileUploader.option("uploadFailedMessage")};this.fileUploader._uploadErrorAction(i),this.fileUploader._setStatusMessage(n,i.message),this.fileUploader._handleAllFilesUploaded()}_onLoadedHandler(n,e){var i={file:n.value,event:e,request:n.request,message:this.fileUploader.option("uploadedMessage")};n._isLoaded=!0,this.fileUploader._uploadedAction(i),this.fileUploader._setStatusMessage(n,i.message),this.fileUploader._handleAllFilesUploaded()}_onProgressHandler(n,e){if(n){var i=this.fileUploader._getTotalFilesSize(),r=this.fileUploader._getTotalLoadedFilesSize(),o=Math.min(e.loaded,n.value.size),a=o-n.loadedSize;n.loadedSize=o,this.fileUploader._updateTotalProgress(i,r+a),this.fileUploader._updateProgressBar(n,this._getLoadedData(o,e.total,a,e))}}_getLoadedData(n,e,i,r){return{loaded:n,total:e,currentSegmentSize:i}}_extendFormData(n){var e=this.fileUploader.option("uploadCustomData");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&Z(e[i])&&n.append(i,e[i])}}class W2e extends U2e{constructor(n){super(n),this.chunkSize=this.fileUploader.option("chunkSize")}_uploadCore(n){var e=n.value,i={name:e.name,loadedBytes:0,type:e.type,blobReader:new eZt(e,this.chunkSize),guid:new Ni,fileSize:e.size,count:this._getFileChunksCount(e),customData:{}};n.chunksData=i,this._sendChunk(n,i)}_getFileChunksCount(n){return 0===n.size?1:Math.ceil(n.size/this.chunkSize)}_sendChunk(n,e){var i=e.blobReader.read();e.currentChunk=i,i&&this._sendChunkCore(n,e,i).done(()=>{n.isAborted||(e.loadedBytes+=i.blob.size,n.onProgress.fire({loaded:e.loadedBytes,total:n.value.size}),i.isCompleted&&n.onLoad.fire(),setTimeout(()=>this._sendChunk(n,e)))}).fail(r=>{this._shouldHandleError(n,r)&&this._handleFileError(n,r)})}_sendChunkCore(n,e,i){}_tryRaiseStartLoad(n){n.isStartLoad||(n.isStartLoad=!0,n.onLoadStart.fire())}_getEvent(n){return null}_createUploadArgument(n){return this._createChunksInfo(n.chunksData)}_createChunksInfo(n){return{bytesUploaded:n.loadedBytes,chunkCount:n.count,customData:n.customData,chunkBlob:n.currentChunk.blob,chunkIndex:n.currentChunk.index}}}class tZt extends W2e{_sendChunkCore(n,e,i){return mh.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:r=>this._beforeSend(r,n),upload:{onprogress:r=>this._handleProgress(n,r),onloadstart:()=>this._tryRaiseStartLoad(n),onabort:()=>n.onAbort.fire()},data:this._createFormData({fileName:e.name,blobName:this.fileUploader.option("name"),blob:i.blob,index:i.index,count:e.count,type:e.type,guid:e.guid,size:e.fileSize})})}_createFormData(n){var e=new qk.FormData;return e.append(n.blobName,n.blob),e.append("chunkMetadata",JSON.stringify({FileName:n.fileName,Index:n.index,TotalCount:n.count,FileSize:n.size,FileType:n.type,FileGuid:n.guid})),this._extendFormData(e),e}}class nZt extends W2e{_sendChunkCore(n,e){this._tryRaiseStartLoad(n);var i=this._createChunksInfo(e),r=this.fileUploader.option("uploadChunk");try{return ra(r(n.value,i))}catch(a){return(new et).reject(a).promise()}}_shouldHandleError(n,e){return!0}}class G2e extends U2e{_uploadCore(n){n.loadedSize=0,this._uploadFile(n).done(()=>{n.isAborted||n.onLoad.fire()}).fail(e=>{this._shouldHandleError(n,e)&&this._handleFileError(n,e)})}_uploadFile(n){}_handleProgressCore(n,e){n.onProgress.fire(e)}_getLoadedData(n,e,i,r){var o=super._getLoadedData(n,e,i,r);return o.event=r,o}}class iZt extends G2e{_uploadFile(n){return mh.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:e=>this._beforeSend(e,n),upload:{onprogress:e=>this._handleProgress(n,e),onloadstart:()=>n.onLoadStart.fire(),onabort:()=>n.onAbort.fire()},data:this._createFormData(this.fileUploader.option("name"),n.value)})}_createFormData(n,e){var i=new qk.FormData;return i.append(n,e,e.name),this._extendFormData(i),i}}class rZt extends G2e{_uploadFile(n){n.onLoadStart.fire();var e=this.fileUploader.option("uploadFile");try{return ra(e(n.value,r=>{this._handleProgress(n,{loaded:r,total:n.value.size})}))}catch(r){return(new et).reject(r).promise()}}_shouldHandleError(n,e){return!0}}On("dxFileUploader",z2e);const Zk=z2e;var oZt={getConfigurations:function(){var{DiagramCommand:t}=or();return this.dialogList||(this.dialogList=[{command:t.InsertShapeImage,title:ye.format("dxDiagram-dialogInsertShapeImageTitle"),onGetContent:this.getChangeImageDialogContent},{command:t.EditShapeImage,title:ye.format("dxDiagram-dialogEditShapeImageTitle"),onGetContent:this.getChangeImageDialogContent}])},getChangeImageDialogContent:function(t){var n=U("<div>");return t.component._createComponent(n,Zk,{selectButtonText:ye.format("dxDiagram-dialogEditShapeImageSelectButton"),accept:"image/*",uploadMode:"useForm",onValueChanged:function(e){var r=new(Fn().FileReader);r.onload=function(o){t.component._commandParameter=o.target.result},r.readAsDataURL(e.value[0])}}),n},getDialogParameters(t){var n=this.getConfigurations().map(e=>e.command).indexOf(t);return n>=0?this.getConfigurations()[n]:null}};const aZt=oZt;var sZt=kw.inherit({}).include(bp);const j2e=class lZt extends sZt{constructor(n){super(),this._diagramWidget=n,this._resetCache()}_dataSourceChangedHandler(n,e){if(this._resetCache(),this._items=n.map(o=>se(!0,{},o)),this._dataSourceItems=n.slice(),e&&e.changes){var i=e.changes.filter(o=>o.internalChange),r=e.changes.filter(o=>!o.internalChange);i.length&&this._reloadContentByChanges(i,!1),r.length&&this._reloadContentByChanges(r,!0)}else this._diagramWidget._onDataSourceChanged()}_dataSourceLoadingChangedHandler(n){n&&!this._dataSource.isLoaded()?this._diagramWidget._showLoadingIndicator():this._diagramWidget._hideLoadingIndicator()}_prepareData(n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&void 0===n[e]&&(n[e]=null);return n}insert(n,e,i){this._resetCache();var r=this._getStore();r.insert(this._prepareData(n)).done((o,a)=>{r.push([{type:"insert",key:a,data:o,internalChange:!0}]),e&&e(o),this._resetCache()}).fail(o=>{i&&i(o),this._resetCache()})}update(n,e,i,r){var o=this._getStore(),a=this._getStoreKey(o,n,e);o.update(a,this._prepareData(e)).done((s,l)=>{o.push([{type:"update",key:l,data:s,internalChange:!0}]),i&&i(l,s)}).fail(s=>{r&&r(s)})}remove(n,e,i,r){this._resetCache();var o=this._getStore(),a=this._getStoreKey(o,n,e);o.remove(a).done(s=>{o.push([{type:"remove",key:s,internalChange:!0}]),i&&i(s),this._resetCache()}).fail(s=>{r&&r(s),this._resetCache()})}findItem(n){return this._items?this._getItemByKey(n):null}getItems(){return this._items}hasItems(){return!!this._items}_reloadContentByChanges(n,e){n=n.map(i=>se(i,{internalKey:this._getInternalKey(i.key)})),this._diagramWidget._reloadContentByChanges(n,e)}_getItemByKey(n){this._ensureCache();var e=this._cache,i=this._getIndexByKey(n);return e.items[i]}_getIndexByKey(n){this._ensureCache();var e=this._cache;if("object"!=typeof n){var o=e.keySet||e.keys.reduce((a,s,l)=>(a[s]=l,a),{});return e.keySet||(e.keySet=o),o[n]}for(var i=0,r=e.keys.length;i<r;i++)if(e.keys[i]===n)return i;return-1}_ensureCache(){var n=this._cache;n.keys||(n.keys=[],n.items=[],this._fillCache(n,this._items))}_fillCache(n,e){if(e&&e.length){var i=this._getKeyExpr();i&&e.forEach(a=>{n.keys.push(i(a)),n.items.push(a)});var r=this._getItemsExpr();r&&e.forEach(a=>this._fillCache(n,r(a)));var o=this._getContainerChildrenExpr();o&&e.forEach(a=>this._fillCache(n,o(a)))}}_getKeyExpr(){throw"Not Implemented"}_getItemsExpr(){}_getContainerChildrenExpr(){}_initDataSource(){super._initDataSource(),this._dataSource&&this._dataSource.paginate(!1)}_dataSourceOptions(){return{paginate:!1}}_getStore(){return this._dataSource&&this._dataSource.store()}_getStoreKey(n,e,i){var r=n.keyOf(i);if(r===i){var o=this._getKeyExpr();this._dataSourceItems.forEach(a=>{o(a)===e&&(r=a)})}return r}_getInternalKey(n){return"object"==typeof n?this._getKeyExpr()(n):n}_resetCache(){this._cache={}}},dZt=class uZt extends j2e{_getKeyExpr(){return this._diagramWidget._createOptionGetter("nodes.keyExpr")}_getItemsExpr(){return this._diagramWidget._createOptionGetter("nodes.itemsExpr")}_getContainerChildrenExpr(){return this._diagramWidget._createOptionGetter("nodes.containerChildrenExpr")}},hZt=class cZt extends j2e{_getKeyExpr(){return this._diagramWidget._createOptionGetter("edges.keyExpr")}};var wv="dx-diagram",gZt=wv+"-toolbar-wrapper",fZt=wv+"-content-wrapper",mZt=wv+"-content",_Zt=wv+"-scroll-view",tX=wv+"-floating-toolbar-container",vZt=wv+"-properties-panel-toolbar-container",yZt=wv+"-loading-indicator",X9="dxDiagramEvent",Z2e=kt("fullscreenchange",X9),X2e=kt("msfullscreenchange",X9),J2e=kt("webkitfullscreenchange",X9),Q2e=kt("mozfullscreenchange",X9);On("dxDiagram",class eRe extends tr{_init(){this._updateDiagramLockCount=0,this.toggleFullscreenLock=0,this._toolbars=[],super._init(),this._initDiagram(),this._createCustomCommand()}_initMarkup(){super._initMarkup(),this._toolbars=[],delete this._isMobileScreenSize;var n=!Rn();this.$element().addClass(wv),delete this._mainToolbar,this.option("mainToolbar.visible")&&this._renderMainToolbar();var e=U("<div>").addClass(fZt).appendTo(this.$element());if(delete this._historyToolbar,delete this._historyToolbarResizeCallback,this._isHistoryToolbarVisible()&&this._renderHistoryToolbar(e),delete this._propertiesToolbar,delete this._propertiesToolbarResizeCallback,this._isPropertiesPanelEnabled()&&this._renderPropertiesToolbar(e),delete this._viewToolbar,delete this._viewToolbarResizeCallback,this.option("viewToolbar.visible")&&this._renderViewToolbar(e),delete this._toolbox,delete this._toolboxResizeCallback,this._isToolboxEnabled()&&this._renderToolbox(e),delete this._propertiesPanel,delete this._propertiesPanelResizeCallback,this._isPropertiesPanelEnabled()&&this._renderPropertiesPanel(e),this._$content=U("<div>").addClass(mZt).appendTo(e),delete this._contextMenu,this._diagramInstance.settings.contextMenuEnabled=this.option("contextMenu.enabled"),this._diagramInstance.settings.contextMenuEnabled&&this._renderContextMenu(e),delete this._contextToolbox,this.option("contextToolbox.enabled")&&this._renderContextToolbox(e),this._renderDialog(e),!n){var i=U("<div>").addClass(_Zt).appendTo(this._$content);this._createComponent(i,Qqt,{useNativeScrolling:this.option("useNativeScrolling"),onCreateDiagram:r=>{this._diagramInstance.createDocument(r.$parent[0],r.scrollView,e[0])}})}this._setCustomCommandChecked(hu.SHOW_PROPERTIES_PANEL_COMMAND_NAME,this._isPropertiesPanelVisible()),this._setCustomCommandChecked(hu.SHOW_TOOLBOX_COMMAND_NAME,this._isToolboxVisible()),this._createOptionsUpdateBar()}_dimensionChanged(){this._isMobileScreenSize=void 0,this._processDiagramResize()}_visibilityChanged(n){n&&(this._bindDiagramData(),this.repaint())}_processDiagramResize(){this._diagramInstance.onDimensionChanged(),this._historyToolbarResizeCallback&&this._historyToolbarResizeCallback.call(this),this._propertiesToolbarResizeCallback&&this._propertiesToolbarResizeCallback.call(this),this._propertiesPanelResizeCallback&&this._propertiesPanelResizeCallback.call(this),this._viewToolbarResizeCallback&&this._viewToolbarResizeCallback.call(this),this._toolboxResizeCallback&&this._toolboxResizeCallback.call(this)}isMobileScreenSize(){return void 0===this._isMobileScreenSize&&(this._isMobileScreenSize=Rn()&&ii(this.$element())<576),this._isMobileScreenSize}_captureFocus(){this._diagramInstance&&this._diagramInstance.captureFocus()}_captureFocusOnTimeout(){this._captureFocusTimeout=setTimeout(()=>{this._captureFocus(),delete this._captureFocusTimeout},100)}_killCaptureFocusTimeout(){this._captureFocusTimeout&&(clearTimeout(this._captureFocusTimeout),delete this._captureFocusTimeout)}notifyBarCommandExecuted(){this._captureFocusOnTimeout()}_registerToolbar(n){this._registerBar(n),this._toolbars.push(n)}_registerBar(n){n.bar.onChanged.add(this),this._diagramInstance.registerBar(n.bar)}_getExcludeCommands(){var n=[];return this._isToolboxEnabled()||n.push(hu.SHOW_TOOLBOX_COMMAND_NAME),this._isPropertiesPanelEnabled()||n.push(hu.SHOW_PROPERTIES_PANEL_COMMAND_NAME),n}_getToolbarBaseOptions(){return{onContentReady:n=>{var{component:e}=n;return this._registerToolbar(e)},onSubMenuVisibilityChanging:n=>{var{component:e}=n;return this._diagramInstance.updateBarItemsState(e.bar)},onPointerUp:this._onPanelPointerUp.bind(this),export:this.option("export"),excludeCommands:this._getExcludeCommands(),onInternalCommand:this._onInternalCommand.bind(this),onCustomCommand:this._onCustomCommand.bind(this),isMobileView:this.isMobileScreenSize()}}_onInternalCommand(n){switch(n.command){case hu.SHOW_TOOLBOX_COMMAND_NAME:this._toolbox&&this._toolbox.toggle();break;case hu.SHOW_PROPERTIES_PANEL_COMMAND_NAME:this._propertiesPanel&&this._propertiesPanel.toggle()}}_onCustomCommand(n){this._customCommandAction({name:n.name})}_renderMainToolbar(){var n=U("<div>").addClass(gZt).appendTo(this.$element());this._mainToolbar=this._createComponent(n,Mqt,se(this._getToolbarBaseOptions(),{commands:this.option("mainToolbar.commands"),skipAdjustSize:!0}))}_isHistoryToolbarVisible(){return this.option("historyToolbar.visible")&&!this.isReadOnlyMode()}_renderHistoryToolbar(n){var e=U("<div>").addClass(tX).appendTo(n);this._historyToolbar=this._createComponent(e,Fqt,se(this._getToolbarBaseOptions(),{commands:this.option("historyToolbar.commands"),locateInMenu:"never"})),this._updateHistoryToolbarPosition(),this._historyToolbarResizeCallback=()=>{this._historyToolbar.option("isMobileView",this.isMobileScreenSize())}}_updateHistoryToolbarPosition(){Rn()&&rs.setup(this._historyToolbar.$element(),{my:"left top",at:"left top",of:this._historyToolbar.$element().parent(),offset:"12 12"})}_isToolboxEnabled(){return"disabled"!==this.option("toolbox.visibility")&&!this.isReadOnlyMode()}_isToolboxVisible(){return"visible"===this.option("toolbox.visibility")||"auto"===this.option("toolbox.visibility")&&!this.isMobileScreenSize()}_renderToolbox(n){var e=!Rn(),i=U("<div>").appendTo(n),r=this._getToolboxBounds(n,e);this._toolbox=this._createComponent(i,pYt,{isMobileView:this.isMobileScreenSize(),isVisible:this._isToolboxVisible(),container:this.$element(),height:r.height,offsetParent:n,offsetX:r.offsetX,offsetY:r.offsetY,showSearch:this.option("toolbox.showSearch"),toolboxGroups:this._getToolboxGroups(),toolboxWidth:this.option("toolbox.width"),onShapeCategoryRendered:o=>{e||this._diagramInstance.createToolbox(o.$element[0],"texts"===o.displayMode,o.shapes||o.category,{shapeIconSpacing:12,shapeIconCountInRow:this.option("toolbox.shapeIconsPerRow"),shapeIconAttributes:{"data-toggle":o.dataToggle}})},onFilterChanged:o=>{e||this._diagramInstance.applyToolboxFilter(o.text,o.filteringToolboxes)},onVisibilityChanging:o=>{e||(this._setCustomCommandChecked(hu.SHOW_TOOLBOX_COMMAND_NAME,o.visible),this._propertiesPanel&&o.visible&&this.isMobileScreenSize()&&this._propertiesPanel.hide(),this._historyToolbar&&o.visible&&this.isMobileScreenSize()&&(this._historyToolbarZIndex=AL(Cd.baseZIndex()),this._historyToolbar.$element().css("zIndex",this._historyToolbarZIndex),this._historyToolbar.$element().css("boxShadow","none")),this._viewToolbar&&(this._viewToolbar.$element().css("opacity",o.visible&&this.isMobileScreenSize()?"0":"1"),this._viewToolbar.$element().css("pointerEvents",o.visible&&this.isMobileScreenSize()?"none":"")))},onVisibilityChanged:o=>{!o.visible&&!this._textInputStarted&&this._captureFocus(),e||this._historyToolbar&&!o.visible&&this.isMobileScreenSize()&&this._historyToolbarZIndex&&(zT(this._historyToolbarZIndex),this._historyToolbar.$element().css("zIndex",""),this._historyToolbar.$element().css("boxShadow",""),this._historyToolbarZIndex=void 0)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._toolbox._popup.option("propagateOutsideClick",!this.option("fullScreen")),this._toolboxResizeCallback=()=>{var o=this._getToolboxBounds(n,e);this._toolbox.option("height",o.height),this._toolbox.option("isMobileView")!==this.isMobileScreenSize()&&(this._toolbox.option({isMobileView:this.isMobileScreenSize(),isVisible:this._isToolboxVisible()}),this._setCustomCommandChecked(hu.SHOW_TOOLBOX_COMMAND_NAME,this._isToolboxVisible())),this._toolbox.updateMaxHeight()}}_getToolboxBounds(n,e){var i={offsetX:12,offsetY:12,height:e?0:Ln(n)-24};return this._historyToolbar&&!e&&(i.offsetY+=Zn(this._historyToolbar.$element())+12,i.height-=Zn(this._historyToolbar.$element())+12),this._viewToolbar&&!e&&(i.height-=Zn(this._viewToolbar.$element())+this._getViewToolbarYOffset(e)),i}_renderViewToolbar(n){var e=!Rn(),i=U("<div>").addClass(tX).appendTo(n);this._viewToolbar=this._createComponent(i,Rqt,se(this._getToolbarBaseOptions(),{commands:this.option("viewToolbar.commands"),locateInMenu:"never"})),this._updateViewToolbarPosition(i,n,e),this._viewToolbarResizeCallback=()=>{this._updateViewToolbarPosition(i,n,e)}}_getViewToolbarYOffset(n){if(!n){var e=12;return this._viewToolbar&&this._propertiesToolbar&&(e+=(Zn(this._propertiesToolbar.$element())-Zn(this._viewToolbar.$element()))/2),e}}_updateViewToolbarPosition(n,e,i){i||rs.setup(n,{my:"left bottom",at:"left bottom",of:e,offset:"12 -"+this._getViewToolbarYOffset(i)})}_isPropertiesPanelEnabled(){return"disabled"!==this.option("propertiesPanel.visibility")&&!this.isReadOnlyMode()}_isPropertiesPanelVisible(){return"visible"===this.option("propertiesPanel.visibility")}_renderPropertiesToolbar(n){var e=!Rn(),i=U("<div>").addClass(tX).addClass(vZt).appendTo(n);this._propertiesToolbar=this._createComponent(i,Bqt,se(this._getToolbarBaseOptions(),{buttonStylingMode:"contained",buttonType:"default",locateInMenu:"never"})),this._updatePropertiesToolbarPosition(i,n,e),this._propertiesToolbarResizeCallback=()=>{this._updatePropertiesToolbarPosition(i,n,e)}}_updatePropertiesToolbarPosition(n,e,i){i||rs.setup(n,{my:"right bottom",at:"right bottom",of:e,offset:"-12 -12"})}_renderPropertiesPanel(n){var e=!Rn(),i=U("<div>").appendTo(n),o=24+(e?0:Zn(this._propertiesToolbar.$element()));this._propertiesPanel=this._createComponent(i,xYt,{isMobileView:this.isMobileScreenSize(),isVisible:this._isPropertiesPanelVisible(),container:this.$element(),offsetParent:n,offsetX:12,offsetY:o,propertyTabs:this.option("propertiesPanel.tabs"),onCreateToolbar:a=>{a.toolbar=this._createComponent(a.$parent,$k,se(this._getToolbarBaseOptions(),{commands:a.commands,locateInMenu:"never",editorStylingMode:"outlined"}))},onVisibilityChanging:a=>{e||(this._updatePropertiesPanelGroupBars(a.component),this._setCustomCommandChecked(hu.SHOW_PROPERTIES_PANEL_COMMAND_NAME,a.visible),this._toolbox&&a.visible&&this.isMobileScreenSize()&&this._toolbox.hide())},onVisibilityChanged:a=>{!a.visible&&!this._textInputStarted&&this._captureFocus()},onSelectedGroupChanged:a=>{var{component:s}=a;return this._updatePropertiesPanelGroupBars(s)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._propertiesPanelResizeCallback=()=>{this._propertiesPanel.option("isMobileView")!==this.isMobileScreenSize()&&(this._propertiesPanel.option({isMobileView:this.isMobileScreenSize(),isVisible:this._isPropertiesPanelVisible()}),this._setCustomCommandChecked(hu.SHOW_PROPERTIES_PANEL_COMMAND_NAME,this._isPropertiesPanelVisible()))}}_updatePropertiesPanelGroupBars(n){n.getActiveToolbars().forEach(e=>{this._diagramInstance.updateBarItemsState(e.bar)})}_onPanelPointerUp(){this._captureFocusOnTimeout()}_renderContextMenu(n){var e=U("<div>").appendTo(n);this._contextMenu=this._createComponent(e,Wqt_DiagramContextMenuWrapper,{commands:this.option("contextMenu.commands"),onContentReady:i=>{var{component:r}=i;return this._registerBar(r)},onVisibilityChanging:i=>{var{component:r}=i;return this._diagramInstance.updateBarItemsState(r.bar)},onItemClick:i=>this._onBeforeCommandExecuted(i.command),export:this.option("export"),excludeCommands:this._getExcludeCommands(),onInternalCommand:this._onInternalCommand.bind(this),onCustomCommand:this._onCustomCommand.bind(this)})}_renderContextToolbox(n){var e=!Rn(),i=this.option("contextToolbox.category"),r=this.option("contextToolbox.displayMode"),o=this.option("contextToolbox.shapes"),a=U("<div>").appendTo(n);this._contextToolbox=this._createComponent(a,qqt,{toolboxWidth:this.option("contextToolbox.width"),onShown:s=>{if(!e){var l=U(s.$element),u="texts"===r;if(!o&&!i&&!u){var f=this._getToolboxGroups().filter(function(S){return S.category===s.category})[0];f&&(u="texts"===f.displayMode)}this._diagramInstance.createContextToolbox(l[0],u,o||i||s.category,{shapeIconSpacing:12,shapeIconCountInRow:this.option("contextToolbox.shapeIconsPerRow")},S=>{s.callback(S),this._captureFocus(),s.hide()})}}})}_setCustomCommandChecked(n,e){this._toolbars.forEach(i=>{i.setCommandChecked(n,e)})}_onBeforeCommandExecuted(n){var e=aZt.getDialogParameters(n);return e&&this._showDialog(e),!!e}_renderDialog(n){var e=U("<div>").appendTo(n);this._dialogInstance=this._createComponent(e,Zqt,{})}_showDialog(n){this._dialogInstance&&(this._dialogInstance.option("onGetContent",n.onGetContent),this._dialogInstance.option("onHidden",function(){this._captureFocus()}.bind(this)),this._dialogInstance.option("command",this._diagramInstance.getCommand(n.command)),this._dialogInstance.option("title",n.title),this._dialogInstance._show())}_showLoadingIndicator(){this._loadingIndicator=U("<div>").addClass(yZt),this._createComponent(this._loadingIndicator,bd,{}),(this._$content||this.$element()).append(this._loadingIndicator)}_hideLoadingIndicator(){this._loadingIndicator&&(this._loadingIndicator.remove(),this._loadingIndicator=null)}_initDiagram(){var{DiagramControl:n}=or();if(this._diagramInstance=new n,this._diagramInstance.onChanged=this._raiseDataChangeAction.bind(this),this._diagramInstance.onEdgeInserted=this._raiseEdgeInsertedAction.bind(this),this._diagramInstance.onEdgeUpdated=this._raiseEdgeUpdatedAction.bind(this),this._diagramInstance.onEdgeRemoved=this._raiseEdgeRemovedAction.bind(this),this._diagramInstance.onNodeInserted=this._raiseNodeInsertedAction.bind(this),this._diagramInstance.onNodeUpdated=this._raiseNodeUpdatedAction.bind(this),this._diagramInstance.onNodeRemoved=this._raiseNodeRemovedAction.bind(this),this._diagramInstance.onToolboxDragStart=this._raiseToolboxDragStart.bind(this),this._diagramInstance.onToolboxDragEnd=this._raiseToolboxDragEnd.bind(this),this._diagramInstance.onTextInputStart=this._raiseTextInputStart.bind(this),this._diagramInstance.onTextInputEnd=this._raiseTextInputEnd.bind(this),this._diagramInstance.onToggleFullscreen=this._onToggleFullScreen.bind(this),this._diagramInstance.onShowContextMenu=this._onShowContextMenu.bind(this),this._diagramInstance.onHideContextMenu=this._onHideContextMenu.bind(this),this._diagramInstance.onShowContextToolbox=this._onShowContextToolbox.bind(this),this._diagramInstance.onHideContextToolbox=this._onHideContextToolbox.bind(this),this._diagramInstance.onNativeAction.add({notifyItemClick:this._raiseItemClickAction.bind(this),notifyItemDblClick:this._raiseItemDblClickAction.bind(this),notifySelectionChanged:this._raiseSelectionChanged.bind(this)}),this._diagramInstance.onRequestOperation=this._raiseRequestEditOperation.bind(this),this._updateEventSubscriptionMethods(),this._updateDefaultItemProperties(),this._updateEditingSettings(),this._updateShapeTexts(),this._updateUnitItems(),this._updateFormatUnitsMethod(),"in"!==this.option("units")&&this._updateUnitsState(),this.isReadOnlyMode()&&this._updateReadOnlyState(),this.option("pageSize")&&(this.option("pageSize.items")&&this._updatePageSizeItemsState(),this.option("pageSize.width")&&this.option("pageSize.height")&&this._updatePageSizeState()),"portrait"!==this.option("pageOrientation")&&this._updatePageOrientationState(),"#ffffff"!==this.option("pageColor")&&this._updatePageColorState(),"in"!==this.option("viewUnits")&&this._updateViewUnitsState(),this.option("showGrid")||this._updateShowGridState(),this.option("snapToGrid")||this._updateSnapToGridState(),this.option("gridSize")&&this._updateGridSizeState(),1!==this.option("zoomLevel")&&this._updateZoomLevelState(),this.option("simpleView")&&this._updateSimpleViewState(),"disabled"!==this.option("autoZoomMode")&&this._updateAutoZoomState(),this.option("fullScreen")){var e=Fn();e&&e.self!==e.top?this.option("fullScreen",!1):this._updateFullscreenState()}this._createOptionsUpdateBar(),Rn()&&this._diagramInstance.initMeasurer(this.$element()[0]),this._updateCustomShapes(this._getCustomShapes()),this._refreshDataSources()}_createOptionsUpdateBar(){this.optionsUpdateBar||(this.optionsUpdateBar=new SYt(this),this._diagramInstance.registerBar(this.optionsUpdateBar))}_deleteOptionsUpdateBar(){delete this.optionsUpdateBar}_clean(){this._diagramInstance&&(this._diagramInstance.cleanMarkup(n=>{U(n).empty()}),this._deleteOptionsUpdateBar()),super._clean()}_dispose(){this._killCaptureFocusTimeout(),super._dispose(),this._diagramInstance&&(this._diagramInstance.dispose(),this._diagramInstance=void 0)}_executeDiagramCommand(n,e){this._diagramInstance.getCommand(n).execute(e)}getNodeDataSource(){return this._nodesOption&&this._nodesOption.getDataSource()}getEdgeDataSource(){return this._edgesOption&&this._edgesOption.getDataSource()}_refreshDataSources(){this._beginUpdateDiagram(),this._refreshNodesDataSource(),this._refreshEdgesDataSource(),this._endUpdateDiagram()}_refreshNodesDataSource(){this._nodesOption&&(this._nodesOption._disposeDataSource(),delete this._nodesOption),this.option("nodes.dataSource")&&(this._nodesOption=new dZt(this),this._nodesOption.option("dataSource",this.option("nodes.dataSource")),this._nodesOption._refreshDataSource())}_refreshEdgesDataSource(){this._edgesOption&&(this._edgesOption._disposeDataSource(),delete this._edgesOption),this.option("edges.dataSource")&&(this._edgesOption=new hZt(this),this._edgesOption.option("dataSource",this.option("edges.dataSource")),this._edgesOption._refreshDataSource())}_getDiagramData(){var n,{DiagramCommand:e}=or();return this._executeDiagramCommand(e.Export,function(i){n=i}),n}_setDiagramData(n,e){var{DiagramCommand:i}=or();this._executeDiagramCommand(i.Import,{data:n,keepExistingItems:e})}isReadOnlyMode(){return this.option("readOnly")||this.option("disabled")}_onDataSourceChanged(){this._bindDiagramData()}_getChangesKeys(n){return n.map(e=>Z(e.internalKey)?e.internalKey:Z(e.key)?e.key:null).filter(e=>Z(e))}_createOptionGetter(n){var e=this.option(n);return e&&Ai(e)}_onRequestUpdateLayout(n){this._requestLayoutUpdateAction||this._createRequestLayoutUpdateAction();var e={changes:n,allowed:!1};return this._requestLayoutUpdateAction(e),e.allowed}_createOptionSetter(n){var e=this.option(n);return Yt(e)?e:e&&ph(e)}_bindDiagramData(){if(!this._updateDiagramLockCount&&this._isBindingMode()){var r,o,a,s,l,u,f,S,{DiagramCommand:n,ConnectorLineOption:e,ConnectorLineEnding:i}=or(),T={nodeDataSource:this._nodesOption&&this._nodesOption.getItems(),edgeDataSource:this._edgesOption&&this._edgesOption.getItems(),nodeDataImporter:{getKey:this._createOptionGetter("nodes.keyExpr"),setKey:this._createOptionSetter("nodes.keyExpr"),getCustomData:this._createOptionGetter("nodes.customDataExpr"),setCustomData:this._createOptionSetter("nodes.customDataExpr"),getLocked:this._createOptionGetter("nodes.lockedExpr"),setLocked:this._createOptionSetter("nodes.lockedExpr"),getStyle:this._createOptionGetter("nodes.styleExpr"),setStyle:this._createOptionSetter("nodes.styleExpr"),getStyleText:this._createOptionGetter("nodes.textStyleExpr"),setStyleText:this._createOptionSetter("nodes.textStyleExpr"),getZIndex:this._createOptionGetter("nodes.zIndexExpr"),setZIndex:this._createOptionSetter("nodes.zIndexExpr"),getType:this._createOptionGetter("nodes.typeExpr"),setType:this._createOptionSetter("nodes.typeExpr"),getText:this._createOptionGetter("nodes.textExpr"),setText:this._createOptionSetter("nodes.textExpr"),getImage:this._createOptionGetter("nodes.imageUrlExpr"),setImage:this._createOptionSetter("nodes.imageUrlExpr"),getLeft:this._createOptionGetter("nodes.leftExpr"),setLeft:this._createOptionSetter("nodes.leftExpr"),getTop:this._createOptionGetter("nodes.topExpr"),setTop:this._createOptionSetter("nodes.topExpr"),getWidth:this._createOptionGetter("nodes.widthExpr"),setWidth:this._createOptionSetter("nodes.widthExpr"),getHeight:this._createOptionGetter("nodes.heightExpr"),setHeight:this._createOptionSetter("nodes.heightExpr"),getParentKey:this._createOptionGetter("nodes.parentKeyExpr"),setParentKey:this._createOptionSetter("nodes.parentKeyExpr"),getItems:this._createOptionGetter("nodes.itemsExpr"),setItems:this._createOptionSetter("nodes.itemsExpr"),getChildren:f=this._createOptionGetter("nodes.containerChildrenExpr"),setChildren:S=this._createOptionSetter("nodes.containerChildrenExpr"),getContainerKey:!f&&!S&&this._createOptionGetter("nodes.containerKeyExpr"),setContainerKey:!f&&!S&&this._createOptionSetter("nodes.containerKeyExpr")},edgeDataImporter:{getKey:this._createOptionGetter("edges.keyExpr"),setKey:this._createOptionSetter("edges.keyExpr"),getCustomData:this._createOptionGetter("edges.customDataExpr"),setCustomData:this._createOptionSetter("edges.customDataExpr"),getLocked:this._createOptionGetter("edges.lockedExpr"),setLocked:this._createOptionSetter("edges.lockedExpr"),getStyle:this._createOptionGetter("edges.styleExpr"),setStyle:this._createOptionSetter("edges.styleExpr"),getStyleText:this._createOptionGetter("edges.textStyleExpr"),setStyleText:this._createOptionSetter("edges.textStyleExpr"),getZIndex:this._createOptionGetter("edges.zIndexExpr"),setZIndex:this._createOptionSetter("edges.zIndexExpr"),getFrom:this._createOptionGetter("edges.fromExpr"),setFrom:this._createOptionSetter("edges.fromExpr"),getFromPointIndex:this._createOptionGetter("edges.fromPointIndexExpr"),setFromPointIndex:this._createOptionSetter("edges.fromPointIndexExpr"),getTo:this._createOptionGetter("edges.toExpr"),setTo:this._createOptionSetter("edges.toExpr"),getToPointIndex:this._createOptionGetter("edges.toPointIndexExpr"),setToPointIndex:this._createOptionSetter("edges.toPointIndexExpr"),getPoints:this._createOptionGetter("edges.pointsExpr"),setPoints:this._createOptionSetter("edges.pointsExpr"),getText:this._createOptionGetter("edges.textExpr"),setText:this._createOptionSetter("edges.textExpr"),getLineOption:(r=this._createOptionGetter("edges.lineTypeExpr"))&&function(R){var L=r(R);return this._getConnectorLineOption(L)}.bind(this),setLineOption:(o=this._createOptionSetter("edges.lineTypeExpr"))&&function(R,L){switch(L){case e.Straight:L="straight";break;case e.Orthogonal:L="orthogonal"}o(R,L)}.bind(this),getStartLineEnding:(a=this._createOptionGetter("edges.fromLineEndExpr"))&&function(R){var L=a(R);return this._getConnectorLineEnding(L)}.bind(this),setStartLineEnding:(s=this._createOptionSetter("edges.fromLineEndExpr"))&&function(R,L){switch(L){case i.Arrow:L="arrow";break;case i.OutlinedTriangle:L="outlinedTriangle";break;case i.FilledTriangle:L="filledTriangle";break;case i.None:L="none"}s(R,L)}.bind(this),getEndLineEnding:(l=this._createOptionGetter("edges.toLineEndExpr"))&&function(R){var L=l(R);return this._getConnectorLineEnding(L)}.bind(this),setEndLineEnding:(u=this._createOptionSetter("edges.toLineEndExpr"))&&function(R,L){switch(L){case i.Arrow:L="arrow";break;case i.OutlinedTriangle:L="outlinedTriangle";break;case i.FilledTriangle:L="filledTriangle";break;case i.None:L="none"}u(R,L)}.bind(this)},layoutParameters:this._getDataBindingLayoutParameters()};this._executeDiagramCommand(n.BindDocument,T)}}_reloadContentByChanges(n,e){var i=this._getChangesKeys(n),r=this._onRequestUpdateLayout(n);this._reloadContent(i,r,e)}_reloadContent(n,e,i){this._diagramInstance.reloadContent(n,()=>{var r,o;return this._nodesOption&&i&&(r=this._nodesOption.getItems()),this._edgesOption&&i&&(o=this._edgesOption.getItems()),{nodeDataSource:r,edgeDataSource:o}},e&&this._getDataBindingLayoutParameters(),i)}_getConnectorLineOption(n){var{ConnectorLineOption:e}=or();return"straight"===n?e.Straight:e.Orthogonal}_getConnectorLineEnding(n){var{ConnectorLineEnding:e}=or();switch(n){case"arrow":return e.Arrow;case"outlinedTriangle":return e.OutlinedTriangle;case"filledTriangle":return e.FilledTriangle;default:return e.None}}_getDataBindingLayoutParameters(){var{DataLayoutType:n,DataLayoutOrientation:e}=or(),i=this.option("nodes.autoLayout")||"off",r=i.type||i,o={};if("off"!==r&&("auto"!==r||!this._hasNodePositionExprs())){switch(o.type="tree"===r?n.Tree:n.Sugiyama,i.orientation){case"vertical":o.orientation=e.Vertical;break;case"horizontal":o.orientation=e.Horizontal}(this.option("edges.fromPointIndexExpr")||this.option("edges.toPointIndexExpr"))&&(o.skipPointIndices=!0)}return o.autoSizeEnabled=!!this.option("nodes.autoSizeEnabled"),o}_hasNodePositionExprs(){return this.option("nodes.topExpr")&&this.option("nodes.leftExpr")}_getAutoZoomValue(n){var{AutoZoomMode:e}=or();switch(n){case"fitContent":return e.FitContent;case"fitWidth":return e.FitToWidth;default:return e.Disabled}}_isBindingMode(){return this._nodesOption&&this._nodesOption.hasItems()||this._edgesOption&&this._edgesOption.hasItems()}_beginUpdateDiagram(){this._updateDiagramLockCount++}_endUpdateDiagram(){this._updateDiagramLockCount=Math.max(this._updateDiagramLockCount-1,0),this._updateDiagramLockCount||this._bindDiagramData()}_getCustomShapes(){return this.option("customShapes")||[]}_getToolboxGroups(){return tYt.getGroups(this.option("toolbox.groups"))}_updateAllCustomShapes(){this._diagramInstance.removeAllCustomShapes(),this._updateCustomShapes(this._getCustomShapes())}_updateCustomShapes(n,e){Array.isArray(e)&&this._diagramInstance.removeCustomShapes(e.map(i=>i.type)),Array.isArray(n)&&this._diagramInstance.addCustomShapes(n.map(i=>{var r=i.template||this.option("customShapeTemplate"),o=r&&this._getTemplate(r),a=i.toolboxTemplate||this.option("customShapeToolboxTemplate"),s=a&&this._getTemplate(a);return{category:i.category,type:i.type,baseType:i.baseType,title:i.title,svgUrl:i.backgroundImageUrl,svgToolboxUrl:i.backgroundImageToolboxUrl,svgLeft:i.backgroundImageLeft,svgTop:i.backgroundImageTop,svgWidth:i.backgroundImageWidth,svgHeight:i.backgroundImageHeight,defaultWidth:i.defaultWidth,defaultHeight:i.defaultHeight,toolboxWidthToHeightRatio:i.toolboxWidthToHeightRatio,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,allowResize:i.allowResize,defaultText:i.defaultText,allowEditText:i.allowEditText,textLeft:i.textLeft,textTop:i.textTop,textWidth:i.textWidth,textHeight:i.textHeight,defaultImageUrl:i.defaultImageUrl,allowEditImage:i.allowEditImage,imageLeft:i.imageLeft,imageTop:i.imageTop,imageWidth:i.imageWidth,imageHeight:i.imageHeight,connectionPoints:i.connectionPoints&&i.connectionPoints.map(l=>({x:l.x,y:l.y})),createTemplate:o&&((l,u)=>{o.render({model:this._nativeItemToDiagramItem(u),container:kn(U(l))})}),createToolboxTemplate:s&&((l,u)=>{s.render({model:this._nativeItemToDiagramItem(u),container:kn(U(l))})}),destroyTemplate:o&&(l=>{U(l).empty()}),templateLeft:i.templateLeft,templateTop:i.templateTop,templateWidth:i.templateWidth,templateHeight:i.templateHeight,keepRatioOnAutoSize:i.keepRatioOnAutoSize}}))}_getViewport(){var n=this.$element().closest(".dx-viewport");return n.length?n:U("body")}_onToggleFullScreen(n){this.toggleFullscreenLock>0||(this._changeNativeFullscreen(n),n?(this._prevParent=this.$element().parent(),this._prevFullScreenZIndex=this.$element().css("zIndex"),this._fullScreenZIndex=AL(Cd.baseZIndex()),this.$element().css("zIndex",this._fullScreenZIndex),this.$element().appendTo(this._getViewport())):(this.$element().appendTo(this._prevParent),this._fullScreenZIndex&&(zT(this._fullScreenZIndex),this.$element().css("zIndex",this._prevFullScreenZIndex))),this.$element().toggleClass("dx-diagram-fullscreen",n),this._processDiagramResize(),this._toolbox&&(this._toolbox.repaint(),this._toolbox._popup.option("propagateOutsideClick",!n)),this._propertiesPanel&&this._propertiesPanel.repaint(),this._historyToolbar&&this._updateHistoryToolbarPosition())}_changeNativeFullscreen(n){var e=Fn();e.self===e.top||n===this._inNativeFullscreen()||(n?this._subscribeFullscreenNativeChanged():this._unsubscribeFullscreenNativeChanged(),this._setNativeFullscreen(n))}_setNativeFullscreen(n){var e=Fn(),i=e.self.document,r=e.self.document.body;n?r.requestFullscreen?r.requestFullscreen():r.mozRequestFullscreen?r.mozRequestFullscreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen():r.msRequestFullscreen&&r.msRequestFullscreen():i.exitFullscreen?i.exitFullscreen():i.mozCancelFullscreen?i.mozCancelFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.msExitFullscreen&&i.msExitFullscreen()}_inNativeFullscreen(){var n=Fn().document;return!((n.fullscreenElement||n.msFullscreenElement||n.webkitFullscreenElement)!==n.body&&!n.webkitIsFullscreen)}_subscribeFullscreenNativeChanged(){var n=Fn().document,e=this._onNativeFullscreenChangeHandler.bind(this);Se.on(n,Z2e,e),Se.on(n,X2e,e),Se.on(n,J2e,e),Se.on(n,Q2e,e)}_unsubscribeFullscreenNativeChanged(){var n=Fn().document;Se.off(n,Z2e),Se.off(n,X2e),Se.off(n,J2e),Se.off(n,Q2e)}_onNativeFullscreenChangeHandler(){this._inNativeFullscreen()||(this._unsubscribeFullscreenNativeChanged(),this.option("fullScreen",!1))}_executeDiagramFullscreenCommand(n){var{DiagramCommand:e}=or();this.toggleFullscreenLock++,this._executeDiagramCommand(e.Fullscreen,n),this.toggleFullscreenLock--}_onShowContextMenu(n,e,i){this._contextMenu&&this._contextMenu._show(n,e,i)}_onHideContextMenu(){this._contextMenu&&this._contextMenu._hide()}_onShowContextToolbox(n,e,i,r,o){this._contextToolbox&&this._contextToolbox._show(n,e,i,r,o)}_onHideContextToolbox(){this._contextToolbox&&this._contextToolbox._hide()}_getDiagramUnitValue(n){var{DiagramUnit:e}=or();switch(n){case"in":default:return e.In;case"cm":return e.Cm;case"px":return e.Px}}_updateReadOnlyState(){var{DiagramCommand:n}=or(),e=this.isReadOnlyMode();this._executeDiagramCommand(n.ToggleReadOnly,e)}_updateZoomLevelState(){if(this.option("zoomLevel.items")){this._updateZoomLevelItemsState();var n=this.option("zoomLevel.value");if(!n)return;var{DiagramCommand:e}=or();this._executeDiagramCommand(e.ZoomLevel,n)}else{var i=this.option("zoomLevel.value")||this.option("zoomLevel");if(!i)return;var{DiagramCommand:r}=or();this._executeDiagramCommand(r.ZoomLevel,i)}}_updateZoomLevelItemsState(){var n=this.option("zoomLevel.items");if(Array.isArray(n)){var{DiagramCommand:e}=or();this._executeDiagramCommand(e.ZoomLevelItems,n)}}_updateAutoZoomState(){var{DiagramCommand:n}=or();this._executeDiagramCommand(n.SwitchAutoZoom,this._getAutoZoomValue(this.option("autoZoomMode")))}_updateSimpleViewState(){var{DiagramCommand:n}=or();this._executeDiagramCommand(n.ToggleSimpleView,this.option("simpleView"))}_updateFullscreenState(){var n=this.option("fullScreen");this._executeDiagramFullscreenCommand(n),this._onToggleFullScreen(n)}_updateShowGridState(){var{DiagramCommand:n}=or();this._executeDiagramCommand(n.ShowGrid,this.option("showGrid"))}_updateSnapToGridState(){var{DiagramCommand:n}=or();this._executeDiagramCommand(n.SnapToGrid,this.option("snapToGrid"))}_updateGridSizeState(){if(this.option("gridSize.items")){this._updateGridSizeItemsState();var n=this.option("gridSize.value");if(!n)return;var{DiagramCommand:e}=or();this._executeDiagramCommand(e.GridSize,n)}else{var i=this.option("gridSize.value")||this.option("gridSize");if(!i)return;var{DiagramCommand:r}=or();this._executeDiagramCommand(r.GridSize,i)}}_updateGridSizeItemsState(){var n=this.option("gridSize.items");if(Array.isArray(n)){var{DiagramCommand:e}=or();this._executeDiagramCommand(e.GridSizeItems,n)}}_updateUnitItems(){var{DiagramLocalizationService:n}=or(),e=this._getUnitItems();this._unitItems!==e&&(this._unitItems=e,n.unitItems=e)}_getUnitItems(){var{DiagramUnit:n}=or(),e={};return e[n.In]=ye.format("dxDiagram-unitIn"),e[n.Cm]=ye.format("dxDiagram-unitCm"),e[n.Px]=ye.format("dxDiagram-unitPx"),e}_updateFormatUnitsMethod(){var{DiagramLocalizationService:n}=or();n.formatUnit=function(e){return Gr.format(e)}}_updateViewUnitsState(){var{DiagramCommand:n}=or();this._executeDiagramCommand(n.ViewUnits,this._getDiagramUnitValue(this.option("viewUnits")))}_updateUnitsState(){var{DiagramCommand:n}=or();this._executeDiagramCommand(n.Units,this._getDiagramUnitValue(this.option("units")))}_updatePageSizeState(){var n=this.option("pageSize");if(n&&n.width&&n.height){var{DiagramCommand:e}=or();this._executeDiagramCommand(e.PageSize,n)}}_updatePageSizeItemsState(){var n=this.option("pageSize.items");if(Array.isArray(n)){var{DiagramCommand:e}=or();this._executeDiagramCommand(e.PageSizeItems,n)}}_updatePageOrientationState(){var{DiagramCommand:n}=or();this._executeDiagramCommand(n.PageLandscape,"landscape"===this.option("pageOrientation"))}_updatePageColorState(){var{DiagramCommand:n}=or();this._executeDiagramCommand(n.PageColor,this.option("pageColor"))}_updateShapeTexts(){var{DiagramLocalizationService:n}=or(),e=this._getShapeTexts();this._shapeTexts!==e&&(this._shapeTexts=e,n.shapeTexts=e)}_getShapeTexts(){var{ShapeTypes:n}=or(),e={};return e[n.Text]=ye.format("dxDiagram-shapeText"),e[n.Rectangle]=ye.format("dxDiagram-shapeRectangle"),e[n.Ellipse]=ye.format("dxDiagram-shapeEllipse"),e[n.Cross]=ye.format("dxDiagram-shapeCross"),e[n.Triangle]=ye.format("dxDiagram-shapeTriangle"),e[n.Diamond]=ye.format("dxDiagram-shapeDiamond"),e[n.Heart]=ye.format("dxDiagram-shapeHeart"),e[n.Pentagon]=ye.format("dxDiagram-shapePentagon"),e[n.Hexagon]=ye.format("dxDiagram-shapeHexagon"),e[n.Octagon]=ye.format("dxDiagram-shapeOctagon"),e[n.Star]=ye.format("dxDiagram-shapeStar"),e[n.ArrowLeft]=ye.format("dxDiagram-shapeArrowLeft"),e[n.ArrowUp]=ye.format("dxDiagram-shapeArrowUp"),e[n.ArrowRight]=ye.format("dxDiagram-shapeArrowRight"),e[n.ArrowDown]=ye.format("dxDiagram-shapeArrowDown"),e[n.ArrowUpDown]=ye.format("dxDiagram-shapeArrowUpDown"),e[n.ArrowLeftRight]=ye.format("dxDiagram-shapeArrowLeftRight"),e[n.Process]=ye.format("dxDiagram-shapeProcess"),e[n.Decision]=ye.format("dxDiagram-shapeDecision"),e[n.Terminator]=ye.format("dxDiagram-shapeTerminator"),e[n.PredefinedProcess]=ye.format("dxDiagram-shapePredefinedProcess"),e[n.Document]=ye.format("dxDiagram-shapeDocument"),e[n.MultipleDocuments]=ye.format("dxDiagram-shapeMultipleDocuments"),e[n.ManualInput]=ye.format("dxDiagram-shapeManualInput"),e[n.Preparation]=ye.format("dxDiagram-shapePreparation"),e[n.Data]=ye.format("dxDiagram-shapeData"),e[n.Database]=ye.format("dxDiagram-shapeDatabase"),e[n.HardDisk]=ye.format("dxDiagram-shapeHardDisk"),e[n.InternalStorage]=ye.format("dxDiagram-shapeInternalStorage"),e[n.PaperTape]=ye.format("dxDiagram-shapePaperTape"),e[n.ManualOperation]=ye.format("dxDiagram-shapeManualOperation"),e[n.Delay]=ye.format("dxDiagram-shapeDelay"),e[n.StoredData]=ye.format("dxDiagram-shapeStoredData"),e[n.Display]=ye.format("dxDiagram-shapeDisplay"),e[n.Merge]=ye.format("dxDiagram-shapeMerge"),e[n.Connector]=ye.format("dxDiagram-shapeConnector"),e[n.Or]=ye.format("dxDiagram-shapeOr"),e[n.SummingJunction]=ye.format("dxDiagram-shapeSummingJunction"),e[n.Container]=ye.format("dxDiagram-shapeContainerDefaultText"),e[n.VerticalContainer]=ye.format("dxDiagram-shapeVerticalContainer"),e[n.HorizontalContainer]=ye.format("dxDiagram-shapeHorizontalContainer"),e[n.Card]=ye.format("dxDiagram-shapeCardDefaultText"),e[n.CardWithImageOnLeft]=ye.format("dxDiagram-shapeCardWithImageOnLeft"),e[n.CardWithImageOnTop]=ye.format("dxDiagram-shapeCardWithImageOnTop"),e[n.CardWithImageOnRight]=ye.format("dxDiagram-shapeCardWithImageOnRight"),e}_updateEventSubscriptionMethods(){var{RenderHelper:n}=or();n.addEventListener=(e,i,r)=>{Se.on(e,i,r)},n.removeEventListener=(e,i,r)=>{Se.off(e,i,r)}}_updateDefaultItemProperties(){this.option("defaultItemProperties.style")&&this._diagramInstance.setInitialStyleProperties(this.option("defaultItemProperties.style")),this.option("defaultItemProperties.textStyle")&&this._diagramInstance.setInitialTextStyleProperties(this.option("defaultItemProperties.textStyle")),this._diagramInstance.setInitialConnectorProperties({lineOption:this._getConnectorLineOption(this.option("defaultItemProperties.connectorLineType")),startLineEnding:this._getConnectorLineEnding(this.option("defaultItemProperties.connectorLineStart")),endLineEnding:this._getConnectorLineEnding(this.option("defaultItemProperties.connectorLineEnd"))}),this._diagramInstance.applyShapeSizeSettings({shapeMinWidth:this.option("defaultItemProperties.shapeMinWidth"),shapeMaxWidth:this.option("defaultItemProperties.shapeMaxWidth"),shapeMinHeight:this.option("defaultItemProperties.shapeMinHeight"),shapeMaxHeight:this.option("defaultItemProperties.shapeMaxHeight")})}_updateEditingSettings(){this._diagramInstance.applyOperationSettings({addShape:this.option("editing.allowAddShape"),addShapeFromToolbox:this.option("editing.allowAddShape"),deleteShape:this.option("editing.allowDeleteShape"),deleteConnector:this.option("editing.allowDeleteConnector"),changeConnection:this.option("editing.allowChangeConnection"),changeConnectorPoints:this.option("editing.allowChangeConnectorPoints"),changeShapeText:this.option("editing.allowChangeShapeText"),changeConnectorText:this.option("editing.allowChangeConnectorText"),resizeShape:this.option("editing.allowResizeShape"),moveShape:this.option("editing.allowMoveShape")})}fitToContent(){var{DiagramCommand:n}=or();this._executeDiagramCommand(n.FitToScreen)}fitToWidth(){var{DiagramCommand:n}=or();this._executeDiagramCommand(n.FitToWidth)}focus(){this._captureFocus()}export(){return this._getDiagramData()}exportTo(n,e){var i=this._getDiagramExportToCommand(n);this._executeDiagramCommand(i,e)}_getDiagramExportToCommand(n){var{DiagramCommand:e}=or();switch(n){case"png":return e.ExportPng;case"jpg":return e.ExportJpg;default:return e.ExportSvg}}import(n,e){this._setDiagramData(n,e),this._raiseDataChangeAction()}updateToolbox(){this._diagramInstance&&this._diagramInstance.refreshToolbox(),this._toolbox&&(this._toolbox.updateTooltips(),this._toolbox.updateFilter(),this._toolbox.updateMaxHeight())}_getDefaultOptions(){return se(super._getDefaultOptions(),{readOnly:!1,zoomLevel:1,simpleView:!1,autoZoomMode:"disabled",fullScreen:!1,showGrid:!0,snapToGrid:!0,units:"in",viewUnits:"in",pageOrientation:"portrait",pageColor:"#ffffff",hasChanges:!1,nodes:{dataSource:null,keyExpr:"id",customDataExpr:void 0,lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,typeExpr:"type",textExpr:"text",imageUrlExpr:void 0,parentKeyExpr:void 0,itemsExpr:void 0,leftExpr:void 0,topExpr:void 0,widthExpr:void 0,heightExpr:void 0,containerKeyExpr:"containerKey",containerChildrenExpr:void 0,autoLayout:"auto",autoSizeEnabled:!0},edges:{dataSource:null,keyExpr:"id",customDataExpr:void 0,lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,fromExpr:"from",fromPointIndexExpr:void 0,toExpr:"to",toPointIndexExpr:void 0,pointsExpr:void 0,textExpr:void 0,lineTypeExpr:void 0,fromLineEndExpr:void 0,toLineEndExpr:void 0},customShapes:[],toolbox:{visibility:"auto",shapeIconsPerRow:3,showSearch:!0},mainToolbar:{visible:!1},historyToolbar:{visible:!0},viewToolbar:{visible:!0},contextMenu:{enabled:!0},contextToolbox:{enabled:!0,shapeIconsPerRow:4,width:152},propertiesPanel:{visibility:"auto"},defaultItemProperties:{connectorLineType:"orthogonal",connectorLineStart:"none",connectorLineEnd:"arrow"},editing:{allowAddShape:!0,allowDeleteShape:!0,allowDeleteConnector:!0,allowChangeConnection:!0,allowChangeConnectorPoints:!0,allowChangeShapeText:!0,allowChangeConnectorText:!0,allowResizeShape:!0,allowMoveShape:!0},export:{fileName:"Diagram"},onItemClick:null,onItemDblClick:null,onSelectionChanged:null,onRequestEditOperation:null,onRequestLayoutUpdate:null})}_raiseDataChangeAction(){this._initialized&&this.option("hasChanges",!0)}_raiseEdgeInsertedAction(n,e,i){this._edgesOption&&this._edgesOption.insert(n,e,i)}_raiseEdgeUpdatedAction(n,e,i,r){this._edgesOption&&this._edgesOption.update(n,e,i,r)}_raiseEdgeRemovedAction(n,e,i,r){this._edgesOption&&this._edgesOption.remove(n,e,i,r)}_raiseNodeInsertedAction(n,e,i){this._nodesOption&&this._nodesOption.insert(n,e,i)}_raiseNodeUpdatedAction(n,e,i,r){this._nodesOption&&this._nodesOption.update(n,e,i,r)}_raiseNodeRemovedAction(n,e,i,r){this._nodesOption&&this._nodesOption.remove(n,e,i,r)}_raiseToolboxDragStart(){this._toolbox&&this.isMobileScreenSize()&&(this._toolbox.hide(),this._toolboxDragHidden=!0)}_raiseToolboxDragEnd(){this._toolbox&&this._toolboxDragHidden&&(this._toolbox.show(),delete this._toolboxDragHidden)}_raiseTextInputStart(){this._textInputStarted=!0,this._propertiesPanel&&this.isMobileScreenSize()&&this._propertiesPanel.isVisible()&&(this._propertiesPanel.hide(),this._propertiesPanelTextInputHidden=!0),this._toolbox&&this.isMobileScreenSize()&&this._toolbox.isVisible()&&(this._toolbox.hide(),this._toolboxTextInputHidden=!0)}_raiseTextInputEnd(){this._propertiesPanel&&this._propertiesPanelTextInputHidden&&(this._propertiesPanel.show(),delete this._propertiesPanelTextInputHidden),this._toolbox&&this._toolboxTextInputHidden&&(this._toolbox.show(),delete this._toolboxTextInputHidden),this._textInputStarted=!1}_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")}_createItemDblClickAction(){this._itemDblClickAction=this._createActionByOption("onItemDblClick")}_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}_createRequestEditOperationAction(){this._requestEditOperationAction=this._createActionByOption("onRequestEditOperation")}_createRequestLayoutUpdateAction(){this._requestLayoutUpdateAction=this._createActionByOption("onRequestLayoutUpdate")}_createCustomCommand(){this._customCommandAction=this._createActionByOption("onCustomCommand")}_raiseItemClickAction(n){this._itemClickAction||this._createItemClickAction(),this._itemClickAction({item:this._nativeItemToDiagramItem(n)})}_raiseItemDblClickAction(n){this._itemDblClickAction||this._createItemDblClickAction(),this._itemDblClickAction({item:this._nativeItemToDiagramItem(n)})}_raiseSelectionChanged(n){this._selectionChangedAction||this._createSelectionChangedAction(),this._selectionChangedAction({items:n.map(this._nativeItemToDiagramItem.bind(this))})}_raiseRequestEditOperation(n,e){this._requestEditOperationAction||this._createRequestEditOperationAction();var i=this._getRequestEditOperationEventArgs(n,e);this._requestEditOperationAction(i),e.allowed=i.allowed}_getModelOperation(n){var{DiagramModelOperation:e}=or();switch(n){case e.AddShape:return"addShape";case e.AddShapeFromToolbox:return"addShapeFromToolbox";case e.DeleteShape:return"deleteShape";case e.DeleteConnector:return"deleteConnector";case e.ChangeConnection:return"changeConnection";case e.ChangeConnectorPoints:return"changeConnectorPoints";case e.BeforeChangeShapeText:return"beforeChangeShapeText";case e.ChangeShapeText:return"changeShapeText";case e.BeforeChangeConnectorText:return"beforeChangeConnectorText";case e.ChangeConnectorText:return"changeConnectorText";case e.ResizeShape:return"resizeShape";case e.MoveShape:return"moveShape"}}_getRequestEditOperationEventArgs(n,e){var{DiagramModelOperation:i,ConnectorPosition:r}=or(),o={operation:this._getModelOperation(n),allowed:e.allowed,updateUI:e.updateUI,reason:e.updateUI?"checkUIElementAvailability":"modelModification"};switch(n){case i.AddShape:o.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape),position:e.position&&{x:e.position.x,y:e.position.y}};break;case i.AddShapeFromToolbox:o.args={shapeType:e.shapeType};break;case i.DeleteShape:o.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape)};break;case i.DeleteConnector:o.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector)};break;case i.ChangeConnection:o.args={newShape:e.shape&&this._nativeItemToDiagramItem(e.shape),oldShape:e.oldShape&&this._nativeItemToDiagramItem(e.oldShape),connector:e.connector&&this._nativeItemToDiagramItem(e.connector),connectionPointIndex:e.connectionPointIndex,connectorPosition:e.position===r.Begin?"start":"end"};break;case i.ChangeConnectorPoints:o.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector),newPoints:e.points&&e.points.map(a=>({x:a.x,y:a.y})),oldPoints:e.oldPoints&&e.oldPoints.map(a=>({x:a.x,y:a.y}))};break;case i.BeforeChangeShapeText:o.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape)};break;case i.ChangeShapeText:o.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape),text:e.text};break;case i.BeforeChangeConnectorText:o.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector),index:e.index};break;case i.ChangeConnectorText:o.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector),index:e.index,text:e.text};break;case i.ResizeShape:o.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape),newSize:e.size&&{width:e.size.width,height:e.size.height},oldSize:e.oldSize&&{width:e.oldSize.width,height:e.oldSize.height}};break;case i.MoveShape:o.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape),newPosition:e.position&&{x:e.position.x,y:e.position.y},oldPosition:e.oldPosition&&{x:e.oldPosition.x,y:e.oldPosition.y}}}return o}_nativeItemToDiagramItem(n){var{NativeShape:e}=or(),i=n instanceof e?this._nativeShapeToDiagramShape.bind(this):this._nativeConnectorToDiagramConnector.bind(this);return se({id:n.id,key:n.key,dataItem:void 0},i(n))}_nativeShapeToDiagramShape(n){return{dataItem:this._nodesOption&&this._nodesOption.findItem(n.key),itemType:"shape",text:n.text,type:n.type,position:{x:n.position.x,y:n.position.y},size:{width:n.size.width,height:n.size.height},attachedConnectorIds:n.attachedConnectorIds,containerId:n.containerId,containerChildItemIds:n.containerChildItemIds,containerExpanded:n.containerExpanded}}_nativeConnectorToDiagramConnector(n){return{dataItem:this._edgesOption&&this._edgesOption.findItem(n.key),itemType:"connector",texts:n.texts,fromKey:n.fromKey,toKey:n.toKey,fromId:n.fromId,fromPointIndex:n.fromPointIndex,toId:n.toId,toPointIndex:n.toPointIndex,points:n.points.map(e=>({x:e.x,y:e.y}))}}getItemByKey(n){var e=this._diagramInstance&&this._diagramInstance.getNativeItemByDataKey(n);return e&&this._nativeItemToDiagramItem(e)}getItemById(n){var e=this._diagramInstance&&this._diagramInstance.getNativeItemByKey(n);return e&&this._nativeItemToDiagramItem(e)}getItems(){return this._diagramInstance.getNativeItems().map(n=>n&&this._nativeItemToDiagramItem(n))}getSelectedItems(){return this._diagramInstance.getNativeSelectedItems().map(n=>n&&this._nativeItemToDiagramItem(n))}setSelectedItems(n){return this._diagramInstance.setSelectedItems(n.map(e=>e.id))}scrollToItem(n){return this._diagramInstance.scrollToItems([n.id])}_invalidateContextMenuCommands(){this._contextMenu&&this._contextMenu.option({commands:this.option("contextMenu.commands")})}_invalidateMainToolbarCommands(){this._mainToolbar&&this._mainToolbar.option({commands:this.option("mainToolbar.commands")})}_invalidateHistoryToolbarCommands(){this._historyToolbar&&this._historyToolbar.option({commands:this.option("historyToolbar.commands")})}_invalidateViewToolbarCommands(){this._viewToolbar&&this._viewToolbar.option({commands:this.option("viewToolbar.commands")})}_invalidateToolboxGroups(){this._toolbox&&this._toolbox.option({toolboxGroups:this._getToolboxGroups()})}_optionChanged(n){if(this.optionsUpdateBar&&!this.optionsUpdateBar.isUpdateLocked()){this.optionsUpdateBar.beginUpdate();try{this._optionChangedCore(n)}finally{this.optionsUpdateBar.endUpdate()}}}_optionChangedCore(n){switch(n.name){case"readOnly":case"disabled":this._updateReadOnlyState(),this._invalidate();break;case"zoomLevel":("zoomLevel"===n.fullName||"zoomLevel.items"===n.fullName||"zoomLevel.value"===n.fullName)&&this._updateZoomLevelState();break;case"autoZoomMode":this._updateAutoZoomState();break;case"simpleView":this._updateSimpleViewState();break;case"useNativeScrolling":case"contextToolbox":case"propertiesPanel":this._invalidate();break;case"fullScreen":this._updateFullscreenState();break;case"showGrid":this._updateShowGridState();break;case"snapToGrid":this._updateSnapToGridState();break;case"gridSize":("gridSize"===n.fullName||"gridSize.items"===n.fullName||"gridSize.value"===n.fullName)&&this._updateGridSizeState();break;case"viewUnits":this._updateViewUnitsState();break;case"units":this._updateUnitsState();break;case"pageSize":("pageSize"===n.fullName||"pageSize.items"===n.fullName)&&this._updatePageSizeItemsState(),("pageSize"===n.fullName||"pageSize.width"===n.fullName||"pageSize.height"===n.fullName)&&this._updatePageSizeState();break;case"pageOrientation":this._updatePageOrientationState();break;case"pageColor":this._updatePageColorState();break;case"nodes":0===n.fullName.indexOf("nodes.autoLayout")?this._refreshDataSources():this._refreshNodesDataSource();break;case"edges":this._refreshEdgesDataSource();break;case"customShapes":n.fullName!==n.name?this._updateAllCustomShapes():this._updateCustomShapes(n.value,n.previousValue),this._invalidate();break;case"contextMenu":"contextMenu.commands"===n.fullName?this._invalidateContextMenuCommands():this._invalidate();break;case"toolbox":"toolbox.groups"===n.fullName?this._invalidateToolboxGroups():this._invalidate();break;case"mainToolbar":"mainToolbar.commands"===n.fullName?this._invalidateMainToolbarCommands():this._invalidate();break;case"historyToolbar":"historyToolbar.commands"===n.fullName?this._invalidateHistoryToolbarCommands():this._invalidate();break;case"viewToolbar":"viewToolbar.commands"===n.fullName?this._invalidateViewToolbarCommands():this._invalidate();break;case"onItemClick":this._createItemClickAction();break;case"onItemDblClick":this._createItemDblClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onRequestEditOperation":this._createRequestEditOperationAction();break;case"onRequestLayoutUpdate":this._createRequestLayoutUpdateAction();break;case"onCustomCommand":this._createCustomCommand();break;case"defaultItemProperties":this._updateDefaultItemProperties();break;case"editing":this._updateEditingSettings();break;case"export":this._toolbars.forEach(e=>{e.option("export",this.option("export"))}),this._contextMenu&&this._contextMenu.option("export",this.option("export"));break;case"hasChanges":break;default:super._optionChanged(n)}}});let tRe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Uw,j0e,$i,i_e,s_e,n_e,u_e,g_e,Ag,aa,C_e,D_e,L_e,K_e,W0e,q_e,J_e,Tg,$0e,xve,kve,Ave,bi,tn,mi],Uw,j0e,$i,i_e,s_e,n_e,u_e,g_e,Ag,aa,C_e,D_e,L_e,K_e,W0e,q_e,J_e,Tg,$0e,xve,kve,Ave,tn]}),t})(),nRe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Mg,bi,tn,mi],Mg,tn]}),t})();var mb={moveTo(t){var o,n=t.$element,e=t.position,r={};switch(t.direction||"left"){case"right":r.transform="translate("+e+"px, 0px)",o="custom";break;case"left":r.left=e,o="slide";break;case"top":case"bottom":r.top=e,o="slide"}Hi.animate(n,{type:o,to:r,duration:t.duration,complete:t.complete})},margin(t){var n=t.$element,e=t.margin,r={};r["margin"+dd(t.direction||"left",!0)]=e,Hi.animate(n,{to:r,duration:t.duration,complete:t.complete})},fade(t,n,e,i){Hi.animate(t,{type:"fade",to:n.to,from:n.from,duration:e,complete:i})},size(t){var n=t.$element,e=t.size,i=t.direction||"left",r=t.marginTop||0,o=t.duration,a={};"right"===i||"left"===i?a.width=e:a.height=e,"bottom"===i&&(a.marginTop=r),Hi.animate(n,{to:a,duration:o,complete:t.complete})},complete(t){Hi.stop(t,!0)}};const nX=class TZt{constructor(n){this._drawer=n}getDrawerInstance(){return this._drawer}renderPanelContent(n){var e=this.getDrawerInstance(),i=e._getTemplate(e.option("template"));i&&i.render({container:e.content(),onRendered:()=>{n.resolve()}})}renderPosition(n,e){var i=new et,r=new et,o=this.getDrawerInstance();n&&Qt.apply(U,[i,r]).done(()=>{o._animationCompleteHandler()}),this._internalRenderPosition(n,i),n||o.resizeViewContent(),this.renderShaderVisibility(n,e,r)}_getPanelOffset(n){var e=this.getDrawerInstance(),i=e.isHorizontalDirection()?e.getRealPanelWidth():e.getRealPanelHeight();return n?-(i-e.getMaxSize()):-(i-e.getMinSize())}_getPanelSize(n){return n?this.getDrawerInstance().getMaxSize():this.getDrawerInstance().getMinSize()}renderShaderVisibility(n,e,i){var r=this.getDrawerInstance(),o=r.option("opened"),a=o?{from:0,to:1}:{from:1,to:0};n?mb.fade(U(r._$shader),a,e,()=>{this._drawer._toggleShaderVisibility(o),i.resolve()}):(r._toggleShaderVisibility(o),r._$shader.css("opacity",a.to))}getPanelContent(){return U(this.getDrawerInstance().content())}setPanelSize(n){this.refreshPanelElementSize(n)}refreshPanelElementSize(n){var e=this.getDrawerInstance(),i=this._getPanelSize(e.option("opened"));e.isHorizontalDirection()?oa(U(e.content()),n?e.getRealPanelWidth():i):xo(U(e.content()),n?e.getRealPanelHeight():i)}isViewContentFirst(){return!1}onPanelContentRendered(){}},iRe=class IZt extends nX{_internalRenderPosition(n,e){var i=this.getDrawerInstance(),r=this._getPanelSize(!0),o=this._getPanelSize(i.option("opened"))*i._getPositionCorrection();if(U(i.content()).css(i.isHorizontalDirection()?"width":"height",r),i.getMinSize()){var a="padding";switch(i.calcTargetPosition()){case"left":a+="Right";break;case"right":a+="Left";break;case"top":a+="Bottom";break;case"bottom":a+="Top"}U(i.viewContent()).css(a,i.getMinSize())}n?mb.moveTo({$element:U(i.viewContent()),position:o,direction:i.calcTargetPosition(),duration:i.option("animationDuration"),complete:()=>{e.resolve()}}):i.isHorizontalDirection()?kr(U(i.viewContent()),{left:o}):kr(U(i.viewContent()),{top:o})}onPanelContentRendered(){U(this.getDrawerInstance().viewContent()).addClass("dx-theme-background-color")}},MZt=class kZt extends nX{_internalRenderPosition(n,e){var i=this.getDrawerInstance(),r=i.calcTargetPosition(),o=U(i.content()),a=this._getPanelSize(i.option("opened")),s=this._getPanelOffset(i.option("opened")),l=i.option("revealMode");n?"slide"===l?mb.margin({complete:()=>{e.resolve()},$element:o,duration:i.option("animationDuration"),direction:r,margin:s}):"expand"===l&&mb.size({complete:()=>{e.resolve()},$element:o,duration:i.option("animationDuration"),direction:r,size:a}):"slide"===l?o.css("margin"+dd(r,!0),s):"expand"===l&&o.css(i.isHorizontalDirection()?"width":"height",a)}isViewContentFirst(n,e){return(e?"left"===n:"right"===n)||"bottom"===n}},FZt=class AZt extends nX{renderPanelContent(n){delete this._initialPosition;var e=this.getDrawerInstance(),{opened:i,minSize:r}=e.option();e._overlay=e._createComponent(e.content(),Cd,{shading:!1,container:e.content(),visualContainer:e.getOverlayTarget(),position:this._getOverlayPosition(),width:i?"auto":r||0,height:"100%",templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),animation:{show:{duration:0}},onPositioned:function(o){this._fixOverlayPosition(o.component.$content())}.bind(this),contentTemplate:e.option("template"),onContentReady:o=>{n.resolve(),this._processOverlayZIndex(o.component.content())},visible:!0,propagateOutsideClick:!0})}_fixOverlayPosition(n){var e=gr(this._initialPosition,{left:0,top:0});kr(n,e),"right"===this.getDrawerInstance().calcTargetPosition()&&n.css("left","auto"),"bottom"===this.getDrawerInstance().calcTargetPosition()&&(n.css("top","auto"),n.css("bottom","0px"))}_getOverlayPosition(){var n=this.getDrawerInstance(),e=n.calcTargetPosition(),i={};switch(e){case"left":i={my:"top left",at:"top left"};break;case"right":i={my:n.option("rtlEnabled")?"top left":"top right",at:"top right"};break;case"top":case"bottom":i={my:e,at:e}}return i.of=n.getOverlayTarget(),i}refreshPanelElementSize(n){var e=this.getDrawerInstance(),i=e.getOverlay();e.isHorizontalDirection()?(i.option("height","100%"),i.option("width",n?e.getRealPanelWidth():this._getPanelSize(e.option("opened")))):(i.option("width",wn(e.getOverlayTarget())),i.option("height",n?e.getRealPanelHeight():this._getPanelSize(e.option("opened"))))}onPanelContentRendered(){this._updateViewContentStyles()}_updateViewContentStyles(){var n=this.getDrawerInstance();U(n.viewContent()).css("padding"+dd(n.calcTargetPosition(),!0),n.option("minSize")),U(n.viewContent()).css("transform","inherit")}_internalRenderPosition(n,e){var i=this.getDrawerInstance(),r=U(i.content()),o=i.getOverlay().$content(),a=i.option("revealMode"),s=i.calcTargetPosition(),l=this._getPanelSize(i.option("opened")),u=this._getPanelOffset(i.option("opened"))*i._getPositionCorrection(),f=i.getRealPanelHeight()-l;this._updateViewContentStyles(),n?"slide"===a?(this._initialPosition=i.isHorizontalDirection()?{left:u}:{top:u},mb.moveTo({complete:()=>{e.resolve()},duration:i.option("animationDuration"),direction:s,$element:r,position:u})):"expand"===a&&(this._initialPosition={left:0},kr(o,this._initialPosition),mb.size({complete:()=>{e.resolve()},duration:i.option("animationDuration"),direction:s,$element:o,size:l,marginTop:f})):"slide"===a?(this._initialPosition=i.isHorizontalDirection()?{left:u}:{top:u},kr(r,this._initialPosition)):"expand"===a&&(this._initialPosition={left:0},kr(o,this._initialPosition),i.isHorizontalDirection()?U(o).css("width",l):(U(o).css("height",l),"bottom"===s&&U(o).css("marginTop",f)))}getPanelContent(){return U(this.getDrawerInstance().getOverlay().content())}_processOverlayZIndex(n){var i=U(n).get(0).style.zIndex||1;this.getDrawerInstance().setZIndex(i)}isViewContentFirst(n){return"right"===n||"bottom"===n}};var _b="dx-drawer",rRe="dx-drawer-panel-content",oRe="dx-drawer-shader",aRe="dx-state-invisible",iX="content",lRe=tr.inherit({_getDefaultOptions(){return se(this.callBase(),{position:"left",opened:!1,minSize:null,maxSize:null,shading:!1,template:"panel",openedStateMode:"shrink",revealMode:"slide",animationEnabled:!0,animationDuration:400,closeOnOutsideClick:!1,contentTemplate:iX})},_init(){this.callBase(),this._initStrategy(),this.$element().addClass(_b),this._whenAnimationCompleted=void 0,this._whenPanelContentRendered=void 0,this._whenPanelContentRefreshed=void 0,this._$wrapper=U("<div>").addClass("dx-drawer-wrapper"),this._$viewContentWrapper=U("<div>").addClass("dx-drawer-content"),this._$wrapper.append(this._$viewContentWrapper),this.$element().append(this._$wrapper)},_initStrategy(){switch(this.option("openedStateMode")){case"push":default:this._strategy=new iRe(this);break;case"shrink":this._strategy=new MZt(this);break;case"overlap":this._strategy=new FZt(this)}},_getAnonymousTemplateName:function(){return iX},_initTemplates(){var t={};t.panel=new xh,t[iX]=new xh,this._templateManager.addDefaultTemplates(t),this.callBase()},_viewContentWrapperClickHandler(t){var n=this.option("closeOnOutsideClick");Yt(n)&&(n=n(t)),n&&this.option("opened")&&(this.stopAnimations(),this.option("shading")&&t.preventDefault(),this.hide())},_initMarkup(){this.callBase(),this._toggleOpenedStateClass(this.option("opened")),this._renderPanelContentWrapper(),this._refreshOpenedStateModeClass(),this._refreshRevealModeClass(),this._renderShader(),this._refreshPositionClass(),this._whenPanelContentRendered=new et,this._strategy.renderPanelContent(this._whenPanelContentRendered),this._strategy.onPanelContentRendered(),this._renderViewContent(),Se.off(this._$viewContentWrapper,Vi),Se.on(this._$viewContentWrapper,Vi,this._viewContentWrapperClickHandler.bind(this)),this._refreshWrapperChildrenOrder()},_render(){this._initMinMaxSize(),this.callBase(),this._whenPanelContentRendered.always(()=>{this._initMinMaxSize(),this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")||!this.isHorizontalDirection()),this._renderPosition(this.option("opened"),!0),this._removePanelManualPosition()})},_removePanelManualPosition(){this._$panelContentWrapper.attr("manualposition")&&(this._$panelContentWrapper.removeAttr("manualPosition"),this._$panelContentWrapper.css({position:"",top:"",left:"",right:"",bottom:""}))},_renderPanelContentWrapper(){this._$panelContentWrapper=U("<div>").addClass(rRe);var t=this.calcTargetPosition();"push"===this.option("openedStateMode")&&["top","bottom"].indexOf(t)>-1&&this._$panelContentWrapper.addClass(rRe+"-push-top-or-bottom"),"overlap"!==this.option("openedStateMode")&&!this.option("opened")&&!this.option("minSize")&&(this._$panelContentWrapper.attr("manualposition",!0),this._$panelContentWrapper.css({position:"absolute",top:"-10000px",left:"-10000px",right:"auto",bottom:"auto"})),this._$wrapper.append(this._$panelContentWrapper)},_refreshOpenedStateModeClass(t){t&&this.$element().removeClass(_b+"-"+t),this.$element().addClass(_b+"-"+this.option("openedStateMode"))},_refreshPositionClass(t){t&&this.$element().removeClass(_b+"-"+t),this.$element().addClass(_b+"-"+this.calcTargetPosition())},_refreshWrapperChildrenOrder(){var t=this.calcTargetPosition();this._strategy.isViewContentFirst(t,this.option("rtlEnabled"))?this._$wrapper.prepend(this._$viewContentWrapper):this._$wrapper.prepend(this._$panelContentWrapper)},_refreshRevealModeClass(t){t&&this.$element().removeClass(_b+"-"+t),this.$element().addClass(_b+"-"+this.option("revealMode"))},_renderViewContent(){var t=this.option("contentTemplate"),n=this._getTemplate(t);if(n){var e=n.render({container:this.viewContent(),noModel:!0,transclude:this._templateManager.anonymousTemplateName===t});e.hasClass("ng-scope")&&U(this._$viewContentWrapper).children().not(".".concat(oRe)).replaceWith(e)}},_renderShader(){this._$shader=this._$shader||U("<div>").addClass(oRe),this._$shader.appendTo(this.viewContent()),this._toggleShaderVisibility(this.option("opened"))},_initSize(){this._initMinMaxSize()},_initMinMaxSize(){var t=this.isHorizontalDirection()?this.getRealPanelWidth():this.getRealPanelHeight();this._maxSize=this.option("maxSize")||t,this._minSize=this.option("minSize")||0},calcTargetPosition(){var t=this.option("position"),n=this.option("rtlEnabled"),e=t;return"before"===t?e=n?"right":"left":"after"===t&&(e=n?"left":"right"),e},getOverlayTarget(){return this._$wrapper},getOverlay(){return this._overlay},getMaxSize(){return this._maxSize},getMinSize(){return this._minSize},getRealPanelWidth(){return Rn()?Z(this.option("templateSize"))?this.option("templateSize"):Mi(this._getPanelTemplateElement()).width:0},getRealPanelHeight(){return Rn()?Z(this.option("templateSize"))?this.option("templateSize"):Mi(this._getPanelTemplateElement()).height:0},_getPanelTemplateElement(){var t=this._strategy.getPanelContent(),n=t;return t.children().length&&(n=t.children().eq(0),t.hasClass("dx-overlay-content")&&n.hasClass("dx-template-wrapper")&&n.children().length&&(n=n.children().eq(0))),n.get(0)},getElementHeight(t){var n=t.children();return n.length?Mi(n.eq(0).get(0)).height:Mi(t.get(0)).height},isHorizontalDirection(){var t=this.calcTargetPosition();return"left"===t||"right"===t},stopAnimations(t){Hi.stop(this._$shader,t),Hi.stop(U(this.content()),t),Hi.stop(U(this.viewContent()),t);var n=this.getOverlay();n&&Hi.stop(U(n.$content()),t)},setZIndex(t){this._$shader.css("zIndex",t-1),this._$panelContentWrapper.css("zIndex",t)},resizeContent(){},resizeViewContent(){qd(this.viewContent())},_isInvertedPosition(){var t=this.calcTargetPosition();return"right"===t||"bottom"===t},_renderPosition(t,n,e){if(this.stopAnimations(e),Rn()){U(this.viewContent()).css("paddingLeft",0),U(this.viewContent()).css("paddingRight",0),U(this.viewContent()).css("paddingTop",0),U(this.viewContent()).css("paddingBottom",0);var i=this.option("animationEnabled");!0===n&&(i=!1),t&&this._toggleShaderVisibility(t),this._strategy.renderPosition(i,this.option("animationDuration"))}},_animationCompleteHandler(){this.resizeViewContent(),this._whenAnimationCompleted&&this._whenAnimationCompleted.resolve()},_getPositionCorrection(){return this._isInvertedPosition()?-1:1},_dispose(){mb.complete(U(this.viewContent())),this.callBase()},_visibilityChanged(t){t&&this._dimensionChanged()},_dimensionChanged(){this._initMinMaxSize(),this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!0)},_toggleShaderVisibility(t){this.option("shading")?(this._$shader.toggleClass(aRe,!t),this._$shader.css("visibility",t?"visible":"hidden")):this._$shader.toggleClass(aRe,!0)},_toggleOpenedStateClass(t){this.$element().toggleClass("dx-drawer-opened",t)},_refreshPanel(){U(this.viewContent()).css("left",0),U(this.viewContent()).css("transform","translate(0px, 0px)"),U(this.viewContent()).removeClass("dx-theme-background-color"),this._removePanelContentWrapper(),this._removeOverlay(),this._renderPanelContentWrapper(),this._refreshWrapperChildrenOrder(),this._whenPanelContentRefreshed=new et,this._strategy.renderPanelContent(this._whenPanelContentRefreshed),this._strategy.onPanelContentRendered(),Rn()&&this._whenPanelContentRefreshed.always(()=>{this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!0,!0),this._removePanelManualPosition()})},_clean(){this._cleanFocusState(),this._removePanelContentWrapper(),this._removeOverlay()},_removePanelContentWrapper(){this._$panelContentWrapper&&this._$panelContentWrapper.remove()},_removeOverlay(){this._overlay&&(this._overlay.dispose(),delete this._overlay,delete this._$panelContentWrapper)},_optionChanged(t){switch(t.name){case"width":this.callBase(t),this._dimensionChanged();break;case"opened":this._renderPosition(this.option("opened")),this._toggleOpenedStateClass(t.value);break;case"position":this._refreshPositionClass(t.previousValue),this._refreshWrapperChildrenOrder(),this._invalidate();break;case"contentTemplate":case"template":this._invalidate();break;case"openedStateMode":this._initStrategy(),this._refreshOpenedStateModeClass(t.previousValue),this._refreshPanel();break;case"minSize":case"maxSize":this._initMinMaxSize(),this._renderPosition(this.option("opened"),!0);break;case"revealMode":this._refreshRevealModeClass(t.previousValue),this._refreshPanel();break;case"shading":this._toggleShaderVisibility(this.option("opened"));break;case"animationEnabled":case"animationDuration":case"closeOnOutsideClick":break;default:this.callBase(t)}},content(){return kn(this._$panelContentWrapper)},viewContent(){return kn(this._$viewContentWrapper)},show(){return this.toggle(!0)},hide(){return this.toggle(!1)},toggle(t){var n=void 0===t?!this.option("opened"):t;return this._whenAnimationCompleted=new et,this.option("opened",n),this._whenAnimationCompleted.promise()}});On("dxDrawer",lRe);const rX=lRe;let uRe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})();var VZt=It.getActiveElement,J9="content",dRe=pn.real(),cRe=zL.inherit({_supportedKeys:function(){return se({},this.callBase(),{tab:function(t){if(this.option("opened")){var n=this._getTabbableElements(),e=t.shiftKey?n.last():n.first();e&&Se.trigger(e,"focus"),t.preventDefault()}}})},_getTabbableElements:function(){return this._getElements().filter(MU)},_getElements:function(){return U(this.content()).find("*")},_getDefaultOptions:function(){return se(this.callBase(),{acceptCustomValue:!1,contentTemplate:J9,openOnFieldClick:!0,displayValueFormatter:function(t){return Array.isArray(t)?t.join(", "):t},useHiddenSubmitElement:!0})},_getAnonymousTemplateName:function(){return J9},_initTemplates:function(){this.callBase()},_initMarkup:function(){this._initDataExpressions(),this.$element().addClass("dx-dropdownbox"),this.callBase()},_setSubmitValue:function(){var t=this.option("value"),n=this._shouldUseDisplayValue(t)?this._displayGetter(t):t;this._getSubmitElement().val(n)},_shouldUseDisplayValue:function(t){return"this"===this.option("valueExpr")&&Jn(t)},_renderInputValue:function(){this._rejectValueLoading();var t=[];if(!this._dataSource)return this.callBase(t),(new et).resolve();var e=this._getCurrentValue()??[];e=Array.isArray(e)?e:[e];var i=Dr(e,o=>{var a=new et;return this._loadItem(o).always(s=>{var l=this._displayGetter(s);Z(l)?t.push(l):this.option("acceptCustomValue")&&t.push(o),a.resolve()}),a}),r=this.callBase.bind(this);return Qt.apply(this,i).always(()=>{this.option("displayValue",t),r(t.length&&t)})},_loadItem:function(t){var n=new et,e=this,i=Vs(this.option("items")||[],function(r){return this._isValueEquals(this._valueGetter(r),t)}.bind(this))[0];return void 0!==i?n.resolve(i):this._loadValue(t).done(function(r){n.resolve(r)}).fail(function(r){null!=r&&r.shouldSkipCallback||(e.option("acceptCustomValue")?n.resolve(t):n.reject())}),n.promise()},_popupElementTabHandler:function(t){if("tab"===Wo(t)){var n=this._getTabbableElements().first().get(0),e=this._getTabbableElements().last().get(0),i=t.originalEvent.target,r=!(i!==n||!t.shift);(r||i===e&&!t.shift)&&(this.close(),Se.trigger(this._input(),"focus"),r&&t.originalEvent.preventDefault())}},_renderPopup:function(t){this.callBase(),this.option("focusStateEnabled")&&Cm_on(this.content(),null,n=>this._popupElementTabHandler(n))},_renderPopupContent:function(){if(this.option("contentTemplate")!==J9){var t=this._getTemplateByOption("contentTemplate");if(t&&this.option("contentTemplate")){var n=this._popup.$content(),e={value:this._fieldRenderData(),component:this};n.empty(),t.render({container:kn(n),model:e})}}},_canShowVirtualKeyboard:function(){return dRe.mac},_isNestedElementActive:function(){var t=VZt();return t&&this._popup.$content().get(0).contains(t)},_shouldHideOnParentScroll:function(){return"desktop"===dRe.deviceType&&this._canShowVirtualKeyboard()&&this._isNestedElementActive()},_popupHiddenHandler:function(){this.callBase(),this._popupPosition=void 0},_popupPositionedHandler:function(t){this.callBase(t),this._popupPosition=t.position},_getDefaultPopupPosition:function(t){var{my:n,at:e}=this.callBase(t);return{my:n,at:e,offset:{v:-1},collision:"flipfit"}},_popupConfig:function(){var{focusStateEnabled:t}=this.option();return se(this.callBase(),{tabIndex:-1,dragEnabled:!1,focusStateEnabled:t,contentTemplate:J9,hideOnParentScroll:this._shouldHideOnParentScroll.bind(this),position:se(this.option("popupPosition"),{of:this.$element()}),onKeyboardHandled:n=>this.option("focusStateEnabled")&&this._popupElementTabHandler(n),_ignoreFunctionValueDeprecation:!0,maxHeight:function(){var n,e=null===(n=this._popupPosition)||void 0===n?void 0:n.v.location;return tZ(this.$element(),e)}.bind(this)})},_popupShownHandler:function(){this.callBase();var t=this._getTabbableElements().first();Se.trigger(t,"focus")},_setCollectionWidgetOption:Be,_optionChanged:function(t){switch(this._dataExpressionOptionChanged(t),t.name){case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",t.value);break;case"displayExpr":this._renderValue();break;case"contentTemplate":this._invalidate();break;default:this.callBase(t)}}}).include(y1);On("dxDropDownBox",cRe);const zZt=cRe,UZt=["*"],WZt={provide:Fo,useExisting:At(()=>GZt),multi:!0};let GZt=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"contentTemplateChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"displayValueFormatterChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxLengthChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(e){this._setOption("acceptCustomValue",e)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(e){this._setOption("contentTemplate",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get displayValueFormatter(){return this._getOption("displayValueFormatter")}set displayValueFormatter(e){this._setOption("displayValueFormatter",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(e){this._setOption("fieldTemplate",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new zZt(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-drop-down-box"]],contentQueries:function(e,i,r){if(1&e&&(In(r,Ig,4),In(r,So,4)),2&e){let o;yn(o=Cn())&&(i.buttonsChildren=o),yn(o=Cn())&&(i.itemsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",contentTemplate:"contentTemplate",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",displayValueFormatter:"displayValueFormatter",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",label:"label",labelMode:"labelMode",maxLength:"maxLength",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width"},outputs:{onChange:"onChange",onClosed:"onClosed",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",contentTemplateChange:"contentTemplateChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",displayValueFormatterChange:"displayValueFormatterChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxLengthChange:"maxLengthChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,WZt,ue,Sn]),qe,hi],ngContentSelectors:UZt,decls:1,vars:0,template:function(e,i){1&e&&(nl(),As(0))},encapsulation:2}),t})(),hRe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Wa,Us,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,$i,bi,tn,mi],Wa,Us,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,$i,tn]}),t})(),pRe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,$i,bi,tn,mi],Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,$i,tn]}),t})();var gRe=Fn(),vb="dx-toast-",KZt=vb+"wrapper",$Zt=vb+"content",qZt=vb+"message",YZt=vb+"icon",XZt=["info","warning","error","success"],oX=[],yb=null,QZt={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}},eXt={h:0,v:0};(0,gd.add)(function(){Se.subscribeGlobal(It.getDocument(),qn.down,function(t){for(var n=oX.length-1;n>=0;n--)if(!oX[n]._proxiedDocumentDownHandler(t))return})});var mRe=Cd.inherit({_getDefaultOptions:function(){return se(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},shading:!1,height:"auto",hideTopOverlayHandler:null,closeOnSwipe:!0,closeOnClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{hideOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:gRe}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:gRe}}}}}},{device:function(t){return"phone"===t.deviceType&&"android"===t.platform},options:{width:"100vw",position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(t){return"phone"===t.deviceType},options:{width:"100vw"}},{device:function(){return io()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=U("<div>").addClass(qZt).text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),XZt.includes(this.option("type").toLowerCase())&&this.$content().prepend(U("<div>").addClass(YZt)),this.callBase()},_render:function(){this.callBase(),this.$element().addClass("dx-toast"),this.$wrapper().addClass(KZt),this.$content().addClass(vb+String(this.option("type")).toLowerCase()),this.$content().addClass($Zt),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:Be,_toggleCloseEvents:function(t){var n="dx"+t.toLowerCase();Se.off(this.$content(),n),this.option("closeOn"+t)&&Se.on(this.$content(),n,this.hide.bind(this))},_posStringToObject:function(){if(Pn(this.option("position"))){var t=this.option("position").split(" ")[0],n=this.option("position").split(" ")[1];switch(this.option("position",se({boundaryOffset:eXt},QZt[t])),n){case"center":case"left":case"right":this.option("position").at+=" "+n,this.option("position").my+=" "+n}}},_show:function(){return yb&&yb!==this&&(clearTimeout(yb._hideTimeout),yb.hide()),yb=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return yb=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return oX},_zIndexInitValue:function(){return this.callBase()+8e3},_dispose:function(){clearTimeout(this._hideTimeout),yb=null,this.callBase()},_optionChanged:function(t){switch(t.name){case"type":this.$content().removeClass(vb+t.previousValue),this.$content().addClass(vb+String(t.value).toLowerCase());break;case"message":this._message&&this._message.text(t.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":break;default:this.callBase(t)}}});On("dxToast",mRe);const _Re=mRe;var vRe=Fn(),yRe=null,CRe={},sXt=(t,n)=>{var{toastWidth:e,toastHeight:i,windowHeight:r,windowWidth:o}=n;switch(t){case"top left":return{top:10,left:10};case"top right":return{top:10,right:10};case"bottom left":return{bottom:10,left:10};case"bottom right":return{bottom:10,right:10};case"top center":return{top:10,left:Math.round(o/2-e/2)};case"left center":return{top:Math.round(r/2-i/2),left:10};case"right center":return{top:Math.round(r/2-i/2),right:10};case"center":return{top:Math.round(r/2-i/2),left:Math.round(o/2-e/2)};default:return{bottom:10,left:Math.round(o/2-e/2)}}},lXt=(t,n,e)=>{var i,r,o,a,s,l,u,f,S,T,R,L,{toastWidth:z,toastHeight:j,windowHeight:Y,windowWidth:ie}=e;switch(t.replace(/-push|-stack/g,"")){case"up":return{bottom:null!==(i=n.bottom)&&void 0!==i?i:Y-j-n.top,top:"",left:null!==(r=n.left)&&void 0!==r?r:"",right:null!==(o=n.right)&&void 0!==o?o:""};case"down":return{top:null!==(a=n.top)&&void 0!==a?a:Y-j-n.bottom,bottom:"",left:null!==(s=n.left)&&void 0!==s?s:"",right:null!==(l=n.right)&&void 0!==l?l:""};case"left":return{right:null!==(u=n.right)&&void 0!==u?u:ie-z-n.left,left:"",top:null!==(f=n.top)&&void 0!==f?f:"",bottom:null!==(S=n.bottom)&&void 0!==S?S:""};case"right":return{left:null!==(T=n.left)&&void 0!==T?T:ie-z-n.right,right:"",top:null!==(R=n.top)&&void 0!==R?R:"",bottom:null!==(L=n.bottom)&&void 0!==L?L:""}}};const Q9=function tXt(t,n,e){var i=wi(t)?t:{message:t},r=wi(n)?n:void 0,o=wi(n)?void 0:n,{onHidden:a}=i;if(null!=r&&r.position){var{position:s}=r,l=r.direction||(t=>Pn(t)&&t.includes("top")?"down-push":"up-push")(s),u=Pn(s)?s:"".concat(s.top,"-").concat(s.left,"-").concat(s.bottom,"-").concat(s.right),{onShowing:f}=i,S=(t=>CRe[t]||(t=>{var n=U("<div>").appendTo(bh());return CRe[t]=n,n})(t))(u);((t,n)=>{var e="dx-toast-stack dx-toast-stack-".concat(n,"-direction");t.removeAttr("class").addClass(e)})(S,l),se(i,{container:S,onShowing:function(T){((t,n,e)=>{var{offsetWidth:i,offsetHeight:r}=t.children().first().get(0),o={toastWidth:i,toastHeight:r,windowHeight:vRe.innerHeight,windowWidth:vRe.innerWidth},a=Pn(e)?sXt(e,o):e,s=lXt(n,a,o);t.css(s)})(S,l,s),f?.(T)}})}se(i,{type:o,displayTime:e,onHidden:function(T){U(T.element).remove(),a?.(T)}}),yRe=U("<div>").appendTo(bh()),new _Re(yRe,i).show()};var aX=function(t,n,e){n=n||Be,e=e||Be,Array.isArray(t)||(t=[t]);var i=t.map((r,o)=>Qt(r).then(a=>(Yt(n)&&n({item:r,index:o,result:a}),a),a=>(a||(a={}),a.index=o,Yt(e)&&e(a),(new et).resolve().promise())));return Qt.apply(null,i)},bRe=function(t){for(var n=["B","KB","MB","GB","TB"],e=0,i=t;i>=1024&&e<=n.length-1;)i/=1024,e++;return i=Math.round(10*i)/10,"".concat(i," ").concat(n[e])},Cb=function(t,n,e){return e.forEach(i=>{se(!0,t,Z(n[i])?{[i]:n[i]}:{})}),t},xRe=function(t){var n=Object.keys(t),e=[];return n.forEach(i=>e.push(t[i])),{keys:n,values:e}},wRe=t=>{var n=t.lastIndexOf(".");return-1!==n?t.substr(n):""},SRe=t=>{var n=t.lastIndexOf("/");return-1!==n?t.substr(n+"/".length):t},DRe=(t,n)=>{if(!t||"/"===t)return[];for(var e=[],i="",r=0;r<t.length;r++){var o=t.charAt(r);if("/"===o){var a=t.charAt(r+1);"/"!==a&&(i&&(e.push(i),i=""),o=a),r++}i+=o}if(i&&e.push(i),n)for(var s=0;s<e.length;s++)e[s]=gf(0===s?"":e[s-1],sX(e[s]));return e},sX=function(t){return t.replace(/\/{1,1}/g,"//")},gf=function(){var t="";return we(arguments,(n,e)=>{e&&(t&&(t+="/"),t+=e)}),t};class lX{constructor(){(Pn(arguments[0])?this._publicCtor:this._internalCtor).apply(this,arguments)}_internalCtor(n,e,i,r){this.name=e||"",this.pathInfo=n&&[...n]||[],this.parentPath=this._getPathByPathInfo(this.pathInfo),this.relativeName=gf(this.parentPath,e),this.key=r||this._getPathByPathInfo(this.getFullPathInfo(),!0),this.path=gf(this.parentPath,e),this.pathKeys=this.pathInfo.map(o=>{var{key:a}=o;return a}),this.isRoot()||this.pathKeys.push(this.key),this._initialize(i)}_publicCtor(n,e,i){this.path=n||"",this.pathKeys=i||[];for(var r=[],o=DRe(n,!0),a=0;a<o.length-1;a++){var s=o[a],l={key:this.pathKeys[a]||s,name:SRe(s)};r.push(l)}this.pathInfo=r,this.relativeName=n,this.name=SRe(n),this.key=this.pathKeys.length?this.pathKeys[this.pathKeys.length-1]:n,this.parentPath=o.length>1?o[o.length-2]:"",this._initialize(e)}_initialize(n){this.isDirectory=!!n,this.size=0,this.dateModified=new Date,this.thumbnail="",this.tooltipText=""}getFullPathInfo(){var n=[...this.pathInfo];return this.isRoot()||n.push({key:this.key,name:this.name}),n}isRoot(){return""===this.path}getFileExtension(){return this.isDirectory?"":wRe(this.name)}equals(n){return n&&this.key===n.key}createClone(){var n=new lX(this.pathInfo,this.name,this.isDirectory,this.key);return n.key=this.key,n.size=this.size,n.dateModified=this.dateModified,n.thumbnail=this.thumbnail,n.tooltipText=this.tooltipText,n.hasSubDirectories=this.hasSubDirectories,n.dataItem=this.dataItem,n}_getPathByPathInfo(n,e){return n.map(i=>e?sX(i.name):i.name).join("/")}}const e8=lX,t8=class cXt{constructor(n){n=gr(n,{}),this._keyGetter=Ai(this._getKeyExpr(n)),this._nameGetter=Ai(this._getNameExpr(n)),this._isDirGetter=Ai(this._getIsDirExpr(n)),this._sizeGetter=Ai(this._getSizeExpr(n)),this._dateModifiedGetter=Ai(this._getDateModifiedExpr(n)),this._thumbnailGetter=Ai(n.thumbnailExpr||"thumbnail")}getItems(n){return[]}renameItem(n,e){}createDirectory(n,e){}deleteItems(n){}moveItems(n,e){}copyItems(n,e){}uploadFileChunk(n,e,i){}abortFileUpload(n,e,i){}downloadItems(n){}getItemsContent(n){}getFileUploadChunkSize(){return 2e5}_convertDataObjectsToFileItems(n,e){var i=[];return we(n,(r,o)=>{var a=this._createFileItem(o,e);i.push(a)}),i}_createFileItem(n,e){var i=this._keyGetter(n),r=new e8(e,this._nameGetter(n),!!this._isDirGetter(n),i);return r.size=this._sizeGetter(n),void 0===r.size&&(r.size=0),r.dateModified=Qr.deserializeDate(this._dateModifiedGetter(n)),void 0===r.dateModified&&(r.dateModified=new Date),r.isDirectory&&(r.hasSubDirectories=this._hasSubDirs(n)),i||(r.key=r.relativeName),r.thumbnail=this._thumbnailGetter(n)||"",r.dataItem=n,r}_hasSubDirs(n){return!0}_getKeyExpr(n){return n.keyExpr||this._defaultKeyExpr}_defaultKeyExpr(n){if(2!==arguments.length)return Object.prototype.hasOwnProperty.call(n,"__KEY__")?n.__KEY__:null;n.__KEY__=arguments[1]}_getNameExpr(n){return n.nameExpr||"name"}_getIsDirExpr(n){return n.isDirectoryExpr||"isDirectory"}_getSizeExpr(n){return n.sizeExpr||"size"}_getDateModifiedExpr(n){return n.dateModifiedExpr||"dateModified"}_executeActionAsDeferred(n,e){var i=new et;try{var r=n();dh(r)?ra(r).done(o=>i.resolve(e&&o||void 0)).fail(o=>i.reject(o)):i.resolve(e&&r||void 0)}catch(o){return i.reject(o)}return i.promise()}},Xk=class hXt{constructor(n,e,i){this.errorCode=n,this.fileSystemItem=e,this.errorText=i}},Ku_NoAccess=0,Ku_FileExists=1,Ku_FileNotFound=2,Ku_DirectoryExists=3,Ku_DirectoryNotFound=4,Ku_WrongFileExtension=5,Ku_MaxFileSizeExceeded=6,Ku_InvalidSymbols=7,Ku_Other=32767;var uX=Fn();const ERe=class gXt extends t8{constructor(n){super(n=gr(n,{}));var e=n.data;if(e&&!Array.isArray(e))throw uo.Error("E4006");var i=n.itemsExpr||"items";this._subFileItemsGetter=Ai(i),this._subFileItemsSetter=this._getSetter(i);var r=n.contentExpr||"content";this._contentGetter=Ai(r),this._contentSetter=this._getSetter(r);var o=this._getNameExpr(n);this._nameSetter=this._getSetter(o);var a=this._getIsDirExpr(n);this._getIsDirSetter=this._getSetter(a);var s=this._getKeyExpr(n);this._keySetter=this._getSetter(s);var l=this._getSizeExpr(n);this._sizeSetter=this._getSetter(l);var u=this._getDateModifiedExpr(n);this._dateModifiedSetter=this._getSetter(u),this._data=e||[]}getItems(n){return this._executeActionAsDeferred(()=>this._getItems(n),!0)}renameItem(n,e){return this._executeActionAsDeferred(()=>this._renameItemCore(n,e))}_renameItemCore(n,e){if(n){var i=this._findDataObject(n);this._nameSetter(i,e),n.name=e,n.key=this._ensureDataObjectKey(i)}}createDirectory(n,e){return this._executeActionAsDeferred(()=>{this._validateDirectoryExists(n),this._createDataObject(n,e,!0)})}deleteItems(n){return n.map(e=>this._executeActionAsDeferred(()=>this._deleteItem(e)))}moveItems(n,e){var i=this._findDataObject(e),r=this._getDirectoryDataItems(i);return n.map(a=>this._executeActionAsDeferred(()=>{this._checkAbilityToMoveOrCopyItem(a,e);var s=this._findDataObject(a);this._deleteItem(a),r.push(s)}))}copyItems(n,e){var i=this._findDataObject(e),r=this._getDirectoryDataItems(i);return n.map(a=>this._executeActionAsDeferred(()=>{this._checkAbilityToMoveOrCopyItem(a,e);var s=this._findDataObject(a),l=this._createCopy(s);r.push(l)}))}uploadFileChunk(n,e,i){if(e.chunkIndex>0)return e.customData.deferred;this._validateDirectoryExists(i);var r=e.customData.deferred=new et,o=this._createFileReader();return o.readAsDataURL(n),o.onload=()=>{var a=o.result.split(",")[1],s=this._createDataObject(i,n.name,!1);this._sizeSetter(s,n.size),this._dateModifiedSetter(s,n.lastModifiedDate),this._contentSetter(s,a),r.resolve()},o.onerror=a=>r.reject(a),r}downloadItems(n){1===n.length?this._downloadSingleFile(n[0]):this._downloadMultipleFiles(n)}_downloadSingleFile(n){for(var e=this._getFileContent(n),i=uX.atob(e),r=new ArrayBuffer(i.length),o=new Uint8Array(r),a=0;a<i.length;a++)o[a]=i.charCodeAt(a);var s=new uX.Blob([r],{type:"application/octet-stream"});NB.saveAs(n.name,null,s)}_downloadMultipleFiles(n){var i=new(function fXt(){if(!cK())throw Di.Error("E1041","JSZip");return cK()}());n.forEach(a=>i.file(a.name,this._getFileContent(a),{base64:!0}));var r={type:"blob",compression:"DEFLATE",mimeType:"application/zip"},o=new et;i.generateAsync?i.generateAsync(r).then(o.resolve):o.resolve(i.generate(r)),o.done(a=>NB.saveAs("files.zip",null,a))}_getFileContent(n){var e=this._findDataObject(n);return this._contentGetter(e)||""}_validateDirectoryExists(n){if(!this._isFileItemExists(n)||this._isDirGetter(n.fileItem))throw new Xk(Ku_DirectoryNotFound,n)}_checkAbilityToMoveOrCopyItem(n,e){var i=this._findDataObject(n),r=this._getKeyFromDataObject(i,n.parentPath),o=e.getFullPathInfo(),a="";o.forEach(s=>{if(a=gf(a,s.name),this._getDataObjectKey(s.key,a)===r)throw new Xk(Ku_Other,n)})}_createDataObject(n,e,i){var r={};this._nameSetter(r,e),this._getIsDirSetter(r,i),this._keySetter(r,String(new Ni));var o=this._findDataObject(n);return this._getDirectoryDataItems(o).push(r),r}_createCopy(n){var e={};this._nameSetter(e,this._nameGetter(n)),this._getIsDirSetter(e,this._isDirGetter(n));var i=this._subFileItemsGetter(n);if(Array.isArray(i)){var r=[];i.forEach(o=>{var a=this._createCopy(o);r.push(a)}),this._subFileItemsSetter(e,r)}return e}_deleteItem(n){var e=this._findDataObject(n),i=this._findFileItemObj(n.pathInfo),r=this._getDirectoryDataItems(i),o=r.indexOf(e);r.splice(o,1)}_getDirectoryDataItems(n){if(!n)return this._data;var e=this._subFileItemsGetter(n);return Array.isArray(e)||this._subFileItemsSetter(n,e=[]),e}_getItems(n){this._validateDirectoryExists(n);var e=n.getFullPathInfo(),r=this._data;if(e&&e.length>0&&e[e.length-1].key){var o=this._findFileItemObj(e);r=o&&this._subFileItemsGetter(o)||[]}return this._ensureKeysForDuplicateNameItems(r),this._convertDataObjectsToFileItems(r,e)}_ensureKeysForDuplicateNameItems(n){var e={};n.forEach(i=>{var r=this._nameGetter(i);e[r]?this._ensureDataObjectKey(i):e[r]=!0})}_findDataObject(n){if(n.isRoot())return null;var e=this._findFileItemObj(n.getFullPathInfo());if(!e)throw new Xk(n.isDirectory?Ku_DirectoryNotFound:Ku_FileNotFound,n);return e}_findFileItemObj(n){var e=this;Array.isArray(n)||(n=[]);for(var i="",r=null,o=this._data,a=function(l){(r=o.find(u=>{var f=e._isDirGetter(u)||l===n.length-1;return e._getKeyFromDataObject(u,i)===n[l].key&&e._nameGetter(u)===n[l].name&&f}))&&(i=gf(i,e._nameGetter(r)),o=e._subFileItemsGetter(r))},s=0;s<n.length&&(0===s||r);s++)a(s);return r}_getKeyFromDataObject(n,e){var i=this._keyGetter(n),r=gf(e,this._nameGetter(n));return this._getDataObjectKey(i,r)}_getDataObjectKey(n,e){return n||e}_ensureDataObjectKey(n){var e=this._keyGetter(n);return e||(e=String(new Ni),this._keySetter(n,e)),e}_hasSubDirs(n){var e=gr(this._subFileItemsGetter(n),[]);if(!Array.isArray(e))return!0;for(var i=0;i<e.length;i++)if(!0===this._isDirGetter(e[i]))return!0;return!1}_getSetter(n){return Yt(n)?n:ph(n)}_isFileItemExists(n){return n.isDirectory&&n.isRoot()||!!this._findFileItemObj(n.getFullPathInfo())}_createFileReader(){return new uX.FileReader}};var mXt=Fn();const yXt=class vXt extends t8{constructor(n){super(n=gr(n,{})),this._endpointUrl=n.endpointUrl,this._beforeAjaxSend=n.beforeAjaxSend,this._beforeSubmit=n.beforeSubmit,this._requestHeaders=n.requestHeaders,this._hasSubDirsGetter=Ai(n.hasSubDirectoriesExpr||"hasSubDirectories")}getItems(n){var e=n.getFullPathInfo();return this._executeRequest("GetDirContents",{pathInfo:e}).then(i=>this._convertDataObjectsToFileItems(i.result,e))}renameItem(n,e){return this._executeRequest("Rename",{pathInfo:n.getFullPathInfo(),isDirectory:n.isDirectory,name:e})}createDirectory(n,e){return this._executeRequest("CreateDir",{pathInfo:n.getFullPathInfo(),name:e})}deleteItems(n){return n.map(e=>this._executeRequest("Remove",{pathInfo:e.getFullPathInfo(),isDirectory:e.isDirectory}))}moveItems(n,e){return n.map(i=>this._executeRequest("Move",{sourcePathInfo:i.getFullPathInfo(),sourceIsDirectory:i.isDirectory,destinationPathInfo:e.getFullPathInfo()}))}copyItems(n,e){return n.map(i=>this._executeRequest("Copy",{sourcePathInfo:i.getFullPathInfo(),sourceIsDirectory:i.isDirectory,destinationPathInfo:e.getFullPathInfo()}))}uploadFileChunk(n,e,i){0===e.chunkIndex&&(e.customData.uploadId=new Ni);var r={destinationPathInfo:i.getFullPathInfo(),chunkMetadata:JSON.stringify({UploadId:e.customData.uploadId,FileName:n.name,Index:e.chunkIndex,TotalCount:e.chunkCount,FileSize:n.size})},o={url:this._endpointUrl,headers:this._requestHeaders||{},method:"POST",dataType:"json",data:{chunk:e.chunkBlob,arguments:JSON.stringify(r),command:"UploadChunk"},upload:{onprogress:Be,onloadstart:Be,onabort:Be},xhrFields:{},cache:!1},a=new et;return this._beforeSendInternal(o),mh.sendRequest(o).done(s=>{!s.success&&a.reject(s)||a.resolve()}).fail(a.reject),a.promise()}abortFileUpload(n,e,i){return this._executeRequest("AbortUpload",{uploadId:e.customData.uploadId})}downloadItems(n){var e=this._getDownloadArgs(n),i=U("<form>").css({display:"none"}).attr({method:"POST",action:e.url}),r={command:e.command,arguments:e.arguments};this._beforeSubmitInternal(r),this._appendFormDataInputsToForm(r,i),i.appendTo("body"),Se.trigger(i,"submit"),setTimeout(()=>i.remove())}getItemsContent(n){var e=this._getDownloadArgs(n),i={url:e.url,headers:this._requestHeaders||{},method:"POST",responseType:"arraybuffer",data:{command:e.command,arguments:e.arguments},upload:{onprogress:Be,onloadstart:Be,onabort:Be},xhrFields:{},cache:!1};return this._beforeSendInternal(i),mh.sendRequest(i)}_getDownloadArgs(n){var e=n.map(o=>o.getFullPathInfo()),r=JSON.stringify({pathInfoList:e});return{url:this._endpointUrl,arguments:r,command:"Download"}}_getItemsIds(n){return n.map(e=>e.relativeName)}_executeRequest(n,e){var i="GetDirContents"===n?"GET":"POST",r=new et,o={url:this._getEndpointUrl(n,e),headers:this._requestHeaders||{},method:i,dataType:"json",data:{},xhrFields:{},cache:!1};return this._beforeSendInternal(o),mh.sendRequest(o).then(a=>{!a.success&&r.reject(a)||r.resolve(a)},a=>r.reject(a)),r.promise()}_beforeSubmitInternal(n){Yt(this._beforeSubmit)&&this._beforeSubmit({formData:n})}_beforeSendInternal(n){if(Yt(this._beforeAjaxSend)){var e={headers:n.headers,formData:n.data,xhrFields:n.xhrFields};this._beforeAjaxSend(e),n.headers=e.headers,n.data=e.formData,n.xhrFields=e.xhrFields}pa(n.data)?delete n.data:(n.responseType||n.upload)&&(n.data=this._createFormData(n.data))}_createFormData(n){var e=new mXt.FormData;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&Z(n[i])&&e.append(i,n[i]);return e}_appendFormDataInputsToForm(n,e){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&Z(n[i])&&U("<input>").attr({type:"hidden",name:i,value:n[i]}).appendTo(e)}_getEndpointUrl(n,e){var i=this._getQueryString({command:n,arguments:JSON.stringify(e)}),r=this._endpointUrl&&this._endpointUrl.indexOf("?")>0?"&":"?";return this._endpointUrl+r+i}_getQueryString(n){for(var e=[],i=Object.keys(n),r=0;r<i.length;r++){var o=i[r],a=n[o];if(void 0!==a)if(null===a&&(a=""),Array.isArray(a))this._processQueryStringArrayParam(o,a,e);else{var s=this._getQueryStringPair(o,a);e.push(s)}}return e.join("&")}_processQueryStringArrayParam(n,e,i){we(e,(r,o)=>{var a=this._getQueryStringPair(n,o);i.push(a)})}_getQueryStringPair(n,e){return encodeURIComponent(n)+"="+encodeURIComponent(e)}_hasSubDirs(n){var e=this._hasSubDirsGetter(n);return"boolean"!=typeof e||e}_getKeyExpr(n){return n.keyExpr||"key"}},bXt=class CXt extends t8{constructor(n){super(n=gr(n,{})),this._hasSubDirsGetter=Ai(n.hasSubDirectoriesExpr||"hasSubDirectories"),this._getItemsFunction=this._ensureFunction(n.getItems,()=>[]),this._renameItemFunction=this._ensureFunction(n.renameItem),this._createDirectoryFunction=this._ensureFunction(n.createDirectory),this._deleteItemFunction=this._ensureFunction(n.deleteItem),this._moveItemFunction=this._ensureFunction(n.moveItem),this._copyItemFunction=this._ensureFunction(n.copyItem),this._uploadFileChunkFunction=this._ensureFunction(n.uploadFileChunk),this._abortFileUploadFunction=this._ensureFunction(n.abortFileUpload),this._downloadItemsFunction=this._ensureFunction(n.downloadItems),this._getItemsContentFunction=this._ensureFunction(n.getItemsContent)}getItems(n){var e=n.getFullPathInfo();return this._executeActionAsDeferred(()=>this._getItemsFunction(n),!0).then(i=>this._convertDataObjectsToFileItems(i,e))}renameItem(n,e){return this._executeActionAsDeferred(()=>this._renameItemFunction(n,e))}createDirectory(n,e){return this._executeActionAsDeferred(()=>this._createDirectoryFunction(n,e))}deleteItems(n){return n.map(e=>this._executeActionAsDeferred(()=>this._deleteItemFunction(e)))}moveItems(n,e){return n.map(i=>this._executeActionAsDeferred(()=>this._moveItemFunction(i,e)))}copyItems(n,e){return n.map(i=>this._executeActionAsDeferred(()=>this._copyItemFunction(i,e)))}uploadFileChunk(n,e,i){return this._executeActionAsDeferred(()=>this._uploadFileChunkFunction(n,e,i))}abortFileUpload(n,e,i){return this._executeActionAsDeferred(()=>this._abortFileUploadFunction(n,e,i))}downloadItems(n){return this._executeActionAsDeferred(()=>this._downloadItemsFunction(n))}getItemsContent(n){return this._executeActionAsDeferred(()=>this._getItemsContentFunction(n))}_hasSubDirs(n){var e=this._hasSubDirsGetter(n);return"boolean"!=typeof e||e}_getKeyExpr(n){return n.keyExpr||"key"}_ensureFunction(n,e){return e=e||Be,Yt(n)?n:e}};class xXt{constructor(n){this._options=se({},n=n||{}),this._isInitialized=!1,this._dataLoading=!1,this._dataLoadingDeferred=null,this._rootDirectoryInfo=this._createRootDirectoryInfo(n.rootText),this._currentDirectoryInfo=this._rootDirectoryInfo,this._defaultIconMap=this._createDefaultIconMap(),this.startSingleLoad(),this._setSecurityController(),this._setProvider(n.fileProvider),this._initialize()}_initialize(){var n=this._options.currentPathKeys&&this._options.currentPathKeys.length?this.setCurrentPathByKeys(this._options.currentPathKeys):this.setCurrentPath(this._options.currentPath),e=()=>{this._isInitialized=!0,this._raiseInitialized()};n?Qt(n).always(e):e()}_setSecurityController(){this._securityController=new wXt({allowedFileExtensions:this._options.allowedFileExtensions,maxFileSize:this._options.uploadMaxFileSize}),this._resetState()}setAllowedFileExtensions(n){Z(n)&&(this._options.allowedFileExtensions=n),this._setSecurityController(),this.refresh()}setUploadOptions(n){var{maxFileSize:e,chunkSize:i}=n;Z(i)&&(this._options.uploadChunkSize=i),Z(e)&&(this._options.uploadMaxFileSize=e,this._setSecurityController(),this.refresh())}_setProvider(n){this._fileProvider=this._createFileProvider(n),this._resetState()}updateProvider(n,e){return Z(e)?Qt(this._getDirectoryByPathParts(this._rootDirectoryInfo,e,!0)).then(i=>{i!==this._rootDirectoryInfo&&this._resetCurrentDirectory(),this._setProvider(n)}).then(()=>this.setCurrentPathByKeys(e)):this._updateProviderOnly(n)}_updateProviderOnly(n){return this._resetCurrentDirectory(),this._setProvider(n),Qt(this.refresh())}_createFileProvider(n){if(n||(n=[]),Array.isArray(n))return new ERe({data:n});if(n instanceof t8)return n;switch(n.type){case"remote":return new yXt(n);case"custom":return new bXt(n)}return new ERe(n)}setCurrentPath(n){var e=DRe(n),i=gf(...e);return this.getCurrentDirectory().fileItem.relativeName===i?(new et).resolve().promise():this._setCurrentDirectoryByPathParts(e)}setCurrentPathByKeys(n){return Tr(this.getCurrentDirectory().fileItem.pathKeys,n,0,!0)?(new et).resolve().promise():this._setCurrentDirectoryByPathParts(n,!0)}getCurrentPath(){for(var n="",e=this.getCurrentDirectory();e&&!e.fileItem.isRoot();){var i=sX(e.fileItem.name);n=gf(i,n),e=e.parentDirectory}return n}getCurrentPathKeys(){return this.getCurrentDirectory().fileItem.pathKeys}getCurrentDirectory(){return this._currentDirectoryInfo}setCurrentDirectory(n,e){if(n){if(e&&(n=this._getActualDirectoryInfo(n)),this._currentDirectoryInfo&&this._currentDirectoryInfo===n)return void this._raisePathPotentiallyChanged();var i=this._currentDirectoryInfo.fileItem.key!==n.fileItem.key;this._currentDirectoryInfo=n,i&&this._isInitialized&&(this._dataLoading||this._raiseDataLoading("navigation"),this._raiseSelectedDirectoryChanged(n))}}_resetCurrentDirectory(){this._currentDirectoryInfo=this._rootDirectoryInfo}getCurrentItems(n){return this._dataLoadingDeferred?this._dataLoadingDeferred.then(()=>this._getCurrentItemsInternal(n)):this._getCurrentItemsInternal(n)}_getCurrentItemsInternal(n){var e=this.getCurrentDirectory();return this.getDirectoryContents(e).then(r=>{var o=this._separateItemsByType(r);return e.fileItem.hasSubDirectories=!!o.folders.length,n?o.files:r})}getDirectories(n,e){return this.getDirectoryContents(n,e).then(i=>i.filter(r=>r.fileItem.isDirectory))}_separateItemsByType(n){var e=[],i=[];return n.forEach(r=>r.fileItem.isDirectory?e.push(r):i.push(r)),{folders:e,files:i}}getDirectoryContents(n,e){if(!n)return(new et).resolve([this._rootDirectoryInfo]).promise();if(n.itemsLoaded)return(new et).resolve(n.items).promise();if(this._singleOperationLockId&&n.itemsSingleLoadErrorId===this._singleOperationLockId)return this._changeDirectoryOnError(n,e,!0),(new et).reject().promise();var i=n.getInternalKey(),r=this._loadedItems[i];return r||(r=this._getFileItems(n,e).then(o=>(n.items=(o=o||[]).map(a=>a.isDirectory&&this._createDirectoryInfo(a,n)||this._createFileInfo(a,n)),n.itemsLoaded=!0,n.items),()=>(this._singleOperationLockId&&n.itemsSingleLoadErrorId!==this._singleOperationLockId&&(n.itemsSingleLoadErrorId=this._singleOperationLockId),[])),this._loadedItems[i]=r,r.always(()=>{delete this._loadedItems[i]}),r)}_getFileItems(n,e){var i=null;try{i=this._fileProvider.getItems(n.fileItem)}catch(r){return this._handleItemLoadError(n,r,e)}return Qt(i).then(r=>this._securityController.getAllowedItems(r),r=>this._handleItemLoadError(n,r,e))}createDirectory(n,e){var i=n.fileItem,r=this._createDirInfoByName(e,n),o=this._createEditActionInfo("create",r,n);return this._processEditAction(o,a=>{a.parentDirectory=i,a.name=e,this._editingEvents.onDirectoryCreating(a)},()=>this._fileProvider.createDirectory(i,e).done(a=>(i.isRoot()||(i.hasSubDirectories=!0),a)),()=>{this._editingEvents.onDirectoryCreated({parentDirectory:i,name:e})},()=>this._resetDirectoryState(n,!0))}renameItem(n,e){var i=n.fileItem.createClone(),r=this._createEditActionInfo("rename",n,n.parentDirectory,{itemNewName:e});return this._processEditAction(r,(o,a)=>{a.fileItem.isDirectory||this._securityController.validateExtension(e),o.item=i,o.newName=e,this._editingEvents.onItemRenaming(o)},o=>this._fileProvider.renameItem(o,e),()=>{this._editingEvents.onItemRenamed({sourceItem:i,itemName:e})},()=>{var o=this._getActualDirectoryInfo(n.parentDirectory);this._resetDirectoryState(o),this.setCurrentDirectory(o)})}moveItems(n,e){var i=this._createEditActionInfo("move",n,e);return this._processEditAction(i,(r,o)=>{r.item=o.fileItem,r.destinationDirectory=e.fileItem,this._editingEvents.onItemMoving(r)},r=>this._fileProvider.moveItems([r],e.fileItem),r=>{var o={sourceItem:r.fileItem,parentDirectory:e.fileItem,itemName:r.fileItem.name,itemPath:gf(e.fileItem.path,r.fileItem.name)};this._editingEvents.onItemMoved(o)},r=>{n.forEach(o=>this._resetDirectoryState(o.parentDirectory,!0)),r&&(this._resetDirectoryState(e),this.setCurrentPathByKeys(e.fileItem.pathKeys),e.expanded=!0)})}copyItems(n,e){var i=this._createEditActionInfo("copy",n,e);return this._processEditAction(i,(r,o)=>{r.item=o.fileItem,r.destinationDirectory=e.fileItem,this._editingEvents.onItemCopying(r)},r=>this._fileProvider.copyItems([r],e.fileItem),r=>{var o={sourceItem:r.fileItem,parentDirectory:e.fileItem,itemName:r.fileItem.name,itemPath:gf(e.fileItem.path,r.fileItem.name)};this._editingEvents.onItemCopied(o)},r=>{r&&(e=this._getActualDirectoryInfo(e),this._resetDirectoryState(e),this.setCurrentDirectory(e),e.expanded=!0)})}deleteItems(n){var i=this._createEditActionInfo("delete",n,n.length>0?n[0].parentDirectory:null);return this._processEditAction(i,(r,o)=>{r.item=o.fileItem,this._editingEvents.onItemDeleting(r)},r=>this._fileProvider.deleteItems([r]),r=>this._editingEvents.onItemDeleted({item:r.fileItem}),()=>{n.forEach(r=>{var o=this._getActualDirectoryInfo(r.parentDirectory);this._resetDirectoryState(o),this.setCurrentDirectory(o)})})}processUploadSession(n,e){var i=this._getItemInfosForUploaderFiles(n.files,e),r=this._createEditActionInfo("upload",i,e,{sessionInfo:n});return this._processEditAction(r,()=>{},(o,a)=>n.deferreds[a],()=>{},()=>this._resetDirectoryState(e,!0))}uploadFileChunk(n,e,i){var r=null;0===e.chunkIndex?(this._securityController.validateMaxFileSize(n.size),this._securityController.validateExtension(n.name),r=this._processBeforeItemEditAction(a=>{a.fileData=n,a.destinationDirectory=i,this._editingEvents.onFileUploading(a)})):r=(new et).resolve().promise();var o=r.then(()=>this._fileProvider.uploadFileChunk(n,e,i));return e.chunkIndex===e.chunkCount-1&&(o=o.done(()=>{this._editingEvents.onFileUploaded({fileData:n,parentDirectory:i})})),o}abortFileUpload(n,e,i){return Qt(this._fileProvider.abortFileUpload(n,e,i))}getFileUploadChunkSize(){var n=this._options.uploadChunkSize;return n&&n>0?n:this._fileProvider.getFileUploadChunkSize()}downloadItems(n){return Qt(...n.map(i=>this._processBeforeItemEditAction(r=>{r.item=i.fileItem,this._editingEvents.onItemDownloading(r)},i))).then(()=>{var i=n.map(r=>r.fileItem);return Qt(this._getItemActionResult(this._fileProvider.downloadItems(i))).then(()=>{},r=>{this._raiseDownloadItemsError(n,n[0].parentDirectory,r)})},i=>{this._raiseDownloadItemsError(n,n[0].parentDirectory,i)})}getItemContent(n){var e=n.map(i=>i.fileItem);return Qt(this._fileProvider.getItemsContent(e))}_handleItemLoadError(n,e,i){return n=this._getActualDirectoryInfo(n),this._raiseGetItemsError(n,e),this._changeDirectoryOnError(n,i),(new et).reject().promise()}_raiseGetItemsError(n,e){var i=this._createEditActionInfo("getItems",n,n);this._raiseEditActionStarting(i),this._raiseEditActionResultAcquired(i),this._raiseEditActionError(i,{errorCode:e.errorCode,errorText:e.errorText,fileItem:n.fileItem,index:0})}_raiseDownloadItemsError(n,e,i){var r=this._createEditActionInfo("download",n,e),o=n.length;r.singleRequest=1===o,this._raiseEditActionStarting(r),this._raiseEditActionResultAcquired(r);for(var a=0;a<o-1;a++)this._raiseEditActionItemError(r,{errorCode:i.errorCode,errorText:i.errorText,fileItem:n[a].fileItem,index:a});this._raiseEditActionError(r,{errorCode:i.errorCode,errorText:i.errorText,fileItem:n[o-1].fileItem,index:o-1})}_changeDirectoryOnError(n,e,i){i&&(n=this._getActualDirectoryInfo(n)),this._resetDirectoryState(n),n.expanded=!1,e||this.setCurrentDirectory(n.parentDirectory)}_getItemActionResult(n){return Array.isArray(n)?n[0]:n}_processEditAction(n,e,i,r,o){var a=!1;this._raiseEditActionStarting(n);var s=n.itemInfos.map((l,u)=>this._processBeforeItemEditAction(e,l).then(()=>this._getItemActionResult(i(l.fileItem,u)).done(()=>r(l))));return n.singleRequest=1===s.length,this._raiseEditActionResultAcquired(n),aX(s,l=>{a=!0,this._raiseCompleteEditActionItem(n,l)},l=>this._raiseEditActionItemError(n,l)).then(()=>{o(a),this._raiseCompleteEditAction(n)})}_createEditActionInfo(n,e,i,r){r=r||{};var o=(e=Array.isArray(e)?e:[e]).map(a=>a.fileItem);return{name:n,itemInfos:e,items:o,directory:i,customData:r,singleRequest:!0}}_processBeforeItemEditAction(n,e){var i=new et,r=this._createBeforeActionArgs();try{n(r,e)}catch(o){return i.reject(o).promise()}if(r.cancel){if(!0===r.cancel)return i.reject({errorText:r.errorText,errorCode:r.errorCode});dh(r.cancel)&&Qt(r.cancel).then(o=>{!0===o?i.reject():Jn(o)&&!0===o.cancel&&i.reject({errorText:o.errorText,errorCode:o.errorCode}),i.resolve()},i.resolve)}else i.resolve();return i.promise()}_createBeforeActionArgs(){return{errorCode:void 0,errorText:"",cancel:!1}}_getItemInfosForUploaderFiles(n,e){for(var i=this._getPathInfo(e),r=[],o=0;o<n.length;o++){var s=new e8(i,n[o].name,!1),l=this._createFileInfo(s,e);r.push(l)}return r}refresh(){return this._lockRefresh?this._refreshDeferred:(this._lockRefresh=!0,this._executeDataLoad(()=>this._refreshDeferred=this._refreshInternal(),"refresh"))}startSingleLoad(){this._singleOperationLockId=(new Ni).toString()}endSingleLoad(){delete this._singleOperationLockId}_refreshInternal(){var n={items:this._rootDirectoryInfo.items},e=this._getDirectoryPathKeyParts(this.getCurrentDirectory());return this._resetDirectoryState(this._rootDirectoryInfo),this._loadItemsRecursive(this._rootDirectoryInfo,n).then(()=>{var i=this._findDirectoryByPathKeyParts(e);this.setCurrentDirectory(i),delete this._lockRefresh})}_loadItemsRecursive(n,e){var i=this;return this.getDirectories(n).then(r=>{for(var o=[],a=function(u){var f=e.items.find(S=>r[u].fileItem.key===S.fileItem.key);if(!f)return"continue";r[u].expanded=f.expanded,r[u].expanded&&o.push(i._loadItemsRecursive(r[u],f))},s=0;s<r.length;s++)a(s);return aX(o)},()=>null)}_setCurrentDirectoryByPathParts(n,e){return this._executeDataLoad(()=>this._setCurrentDirectoryByPathPartsInternal(n,e),"navigation")}_setCurrentDirectoryByPathPartsInternal(n,e){return this._getDirectoryByPathParts(this._rootDirectoryInfo,n,e).then(i=>{for(var r=i.parentDirectory;r;r=r.parentDirectory)r.expanded=!0;this.setCurrentDirectory(i)},()=>{this._raisePathPotentiallyChanged()})}_executeDataLoad(n,e){return this._dataLoadingDeferred?this._dataLoadingDeferred.then(()=>this._executeDataLoad(n,e)):(this._dataLoading=!0,this._dataLoadingDeferred=new et,this._isInitialized&&this._raiseDataLoading(e),n().always(()=>{var i=this._dataLoadingDeferred;this._dataLoadingDeferred=null,this._dataLoading=!1,i.resolve()}))}_getDirectoryByPathParts(n,e,i){if(e.length<1)return(new et).resolve(n).promise();var r=i?"key":"name";return this.getDirectories(n).then(o=>{var a=o.find(l=>l.fileItem[r]===e[0]);if(!a)return(new et).reject().promise();var s=[...e].splice(1);return this._getDirectoryByPathParts(a,s,i)})}_getDirectoryPathKeyParts(n){for(var e=[];n&&n.parentDirectory;)e.unshift(n.fileItem.key),n=n.parentDirectory;return e}_findDirectoryByPathKeyParts(n){var e=this._rootDirectoryInfo;if(0===n.length)return e;for(var i=0,r=e;r&&i<n.length;)(r=e.items.find(o=>o.fileItem.key===n[i]))&&(e=r),i++;return e}_getActualDirectoryInfo(n){var e=this._getDirectoryPathKeyParts(n);return this._findDirectoryByPathKeyParts(e)}_createDirInfoByName(n,e){var i=this._getPathInfo(e),r=new e8(i,n,!0);return this._createDirectoryInfo(r,e)}_createDirectoryInfo(n,e){return se(this._createFileInfo(n,e),{icon:"folder",expanded:n.isRoot(),items:[]})}_createFileInfo(n,e){return{fileItem:n,parentDirectory:e,icon:this._getFileItemDefaultIcon(n),getInternalKey(){return"FIK_".concat(this.fileItem.key)},getDisplayName(){return this.displayName||this.fileItem.name}}}_resetDirectoryState(n,e){e&&(n=this._getActualDirectoryInfo(n)),n.itemsLoaded=!1,n.items=[]}_getFileItemDefaultIcon(n){if(n.isDirectory)return"folder";var e=n.getFileExtension();return this._defaultIconMap[e]||"doc"}_createDefaultIconMap(){var n={".txt":"txtfile",".rtf":"rtffile",".doc":"docfile",".docx":"docxfile",".xls":"xlsfile",".xlsx":"xlsxfile",".ppt":"pptfile",".pptx":"pptxfile",".pdf":"pdffile"};return[".png",".gif",".jpg",".jpeg",".ico",".bmp"].forEach(e=>{n[e]="image"}),n}_createRootDirectoryInfo(n){var e=new e8(null,"",!0),i=this._createDirectoryInfo(e,null);return i.displayName=n||"Files",i}setRootText(n){this._rootDirectoryInfo.displayName=n||"Files"}_raiseInitialized(){this._tryCallAction("onInitialized",{controller:this})}_raiseDataLoading(n){this._tryCallAction("onDataLoading",{operation:n})}_raiseSelectedDirectoryChanged(n){this._tryCallAction("onSelectedDirectoryChanged",{selectedDirectoryInfo:n})}_raiseEditActionStarting(n){this._tryCallAction("onEditActionStarting",n)}_raiseEditActionResultAcquired(n){this._tryCallAction("onEditActionResultAcquired",n)}_raiseEditActionError(n,e){this._tryCallAction("onEditActionError",n,e)}_raiseEditActionItemError(n,e){this._tryCallAction("onEditActionItemError",n,e)}_raiseCompleteEditActionItem(n,e){this._tryCallAction("onCompleteEditActionItem",n,e)}_raiseCompleteEditAction(n){this._tryCallAction("onCompleteEditAction",n)}_raisePathPotentiallyChanged(){this._tryCallAction("onPathPotentiallyChanged")}_tryCallAction(n){var e=Array.prototype.slice.call(arguments,1);this._isInitialized&&this._options[n]&&this._options[n](...e)}_resetState(){this._selectedDirectory=null,this._rootDirectoryInfo.items=[],this._rootDirectoryInfo.itemsLoaded=!1,this._loadedItems={}}_getPathInfo(n){for(var e=[],i=n;i&&!i.fileItem.isRoot();i=i.parentDirectory)e.unshift({key:i.fileItem.key,name:i.fileItem.name});return e}on(n,e){var i="on".concat(n);this._options[i]=e}get _editingEvents(){return this._options.editingEvents}}class wXt{constructor(n){this._options=se({allowedFileExtensions:[],maxFileSize:0},n),this._extensionsMap={},this._allowedFileExtensions.forEach(e=>{this._extensionsMap[e.toUpperCase()]=!0})}getAllowedItems(n){return 0===this._allowedFileExtensions.length?n:n.filter(e=>e.isDirectory||this._isValidExtension(e.name))}validateExtension(n){if(!this._isValidExtension(n))throw new Xk(Ku_WrongFileExtension,null)}validateMaxFileSize(n){if(this._maxFileSize&&n>this._maxFileSize)throw new Xk(Ku_MaxFileSizeExceeded,null)}_isValidExtension(n){if(0===this._allowedFileExtensions.length)return!0;var e=wRe(n).toUpperCase();return this._extensionsMap[e]}get _allowedFileExtensions(){return this._options.allowedFileExtensions}get _maxFileSize(){return this._options.maxFileSize}}var TRe={create:!1,copy:!1,move:!1,delete:!1,rename:!1,upload:!1,download:!1};class SXt{constructor(n){this._actions={},this._permissions=n||{},this._initCommands()}_initCommands(){this._commands=[{name:"create",text:ye.format("dxFileManager-commandCreate"),icon:"newfolder",enabled:this._permissions.create,noFileItemRequired:!0},{name:"rename",text:ye.format("dxFileManager-commandRename"),icon:"rename",enabled:this._permissions.rename,isSingleFileItemCommand:!0},{name:"move",text:ye.format("dxFileManager-commandMove"),icon:"movetofolder",enabled:this._permissions.move},{name:"copy",text:ye.format("dxFileManager-commandCopy"),icon:"copy",enabled:this._permissions.copy},{name:"delete",text:ye.format("dxFileManager-commandDelete"),icon:"trash",enabled:this._permissions.delete},{name:"download",text:ye.format("dxFileManager-commandDownload"),icon:"download",enabled:this._permissions.download},{name:"upload",text:ye.format("dxFileManager-commandUpload"),icon:"upload",enabled:this._permissions.upload,noFileItemRequired:!0},{name:"refresh",text:ye.format("dxFileManager-commandRefresh"),icon:"dx-filemanager-i dx-filemanager-i-refresh",enabled:!0,noFileItemRequired:!0},{name:"thumbnails",text:ye.format("dxFileManager-commandThumbnails"),icon:"mediumiconslayout",enabled:!0,noFileItemRequired:!0},{name:"details",text:ye.format("dxFileManager-commandDetails"),icon:"detailslayout",enabled:!0,noFileItemRequired:!0},{name:"clearSelection",text:ye.format("dxFileManager-commandClearSelection"),icon:"remove",enabled:!0},{name:"showNavPane",hint:ye.format("dxFileManager-commandShowNavPane"),icon:"menu",enabled:!1,noFileItemRequired:!0}],this._commandMap={},this._commands.forEach(n=>{this._commandMap[n.name]=n})}registerActions(n){this._actions=se(this._actions,n)}executeCommand(n,e){var i=Pn(n)?n:n.name,r=this._actions[i];if(r)return r(e)}updatePermissions(n){var e=se({},TRe,n);this._permissions=e,we(this._permissions,i=>{this._commandMap[i].enabled=this._permissions[i]})}setCommandEnabled(n,e){var i=this.getCommandByName(n);i&&(i.enabled=e)}getCommandByName(n){return this._commandMap[n]}isCommandAvailable(n,e){var i=this.getCommandByName(n);if(!i||!i.enabled)return!1;if(i.noFileItemRequired)return!0;var r=e&&e.length||0;return 0!==r&&!e.some(o=>o.fileItem.isRoot()||o.fileItem.isParentFolder)&&("download"===n?e.every(o=>!o.fileItem.isDirectory):!i.isSingleFileItemCommand||1===r)}}var IRe={create:{},upload:{},download:{},rename:{},move:{},copy:{},delete:{},refresh:{beginGroup:!0}},EXt=["beginGroup","closeMenuOnClick","disabled","icon","selectable","selected","text","visible"];const TXt=class OXt extends tr{_initMarkup(){this._initActions(),this._isVisible=!1;var n=U("<div>").appendTo(this.$element());this._contextMenu=this._createComponent(n,$Te,{cssClass:"dx-filemanager-context-menu",showEvent:"",onItemClick:e=>this._onContextMenuItemClick(e.itemData.name,e),onShowing:e=>this._onContextMenuShowing(e),onShown:()=>this._onContextMenuShown(),onHidden:()=>this._onContextMenuHidden()}),super._initMarkup()}showAt(n,e,i,r){var{itemData:o,itemElement:a,isActionButton:s=!1}=r;this._isVisible&&this._onContextMenuHidden(),this._menuShowingContext={targetElement:a,itemData:o,fileItems:n,event:i,isActionButton:s};var l={of:e,at:"top left",my:"top left",offset:""};i?l.offset=i.offsetX+" "+i.offsetY:(l.my="left top",l.at="left bottom",l.boundaryOffset="1"),this._contextMenu.option({target:e,position:l}),this._contextMenu.show()}createContextMenuItems(n,e,i){this._targetFileItems=n,this._targetFileItem=Z(i)?i:n?.[0];var r=[];return(e||this.option("items")).forEach(a=>{var s=Pn(a)?a:a.name,l=this._configureItemByCommandName(s,a,n,this._targetFileItem);this._isContextMenuItemAvailable(l,n)&&r.push(l)}),r}_isContextMenuItemAvailable(n,e){return this._isDefaultItem(n.name)&&n._autoHide?!(this._isIsolatedCreationItemCommand(n.name)&&e&&e.length)&&this._commandManager.isCommandAvailable(n.name,e):gr(n.visible,!0)}_isIsolatedCreationItemCommand(n){return("create"===n||"upload"===n)&&this.option("isolateCreationItemCommands")}_isDefaultItem(n){return!!IRe[n]}_configureItemByCommandName(n,e,i,r){if(!this._isDefaultItem(n)){var o=se(!0,{},e);return o.originalItemData=e,this._addItemClickHandler(n,o),Array.isArray(e.items)&&(o.items=this.createContextMenuItems(i,e.items,r)),o}var a=this._createMenuItemByCommandName(n);return se(a,IRe[n]),a.originalItemData=e,Cb(a,e,EXt),Z(a.visible)||(a._autoHide=!0),n&&!a.name&&se(a,{name:n}),a}_createMenuItemByCommandName(n){var{text:e,icon:i}=this._commandManager.getCommandByName(n),r={name:n,text:e,icon:i};return this._addItemClickHandler(n,r),r}_addItemClickHandler(n,e){e.onItemClick=i=>this._onContextMenuItemClick(n,i)}_onContextMenuItemClick(n,e){var i,r=se(!0,{},e);if(r.itemData=e.itemData.originalItemData,r.fileSystemItem=null===(i=this._targetFileItem)||void 0===i?void 0:i.fileItem,r.viewArea=this.option("viewArea"),this._actions.onItemClick(r),this._isDefaultItem(n)){var o=this._isIsolatedCreationItemCommand(n)?null:this._targetFileItems;this._commandManager.executeCommand(n,o)}}_initActions(){this._actions={onContextMenuHidden:this._createActionByOption("onContextMenuHidden"),onContextMenuShowing:this._createActionByOption("onContextMenuShowing"),onItemClick:this._createActionByOption("onItemClick")}}_onContextMenuShowing(n){if(this._isVisible&&this._onContextMenuHidden(!0),n=se(n,this._menuShowingContext,{options:this.option(),cancel:!1}),this._actions.onContextMenuShowing(n),!n.cancel){var e=this.createContextMenuItems(this._menuShowingContext.fileItems,null,this._menuShowingContext.fileSystemItem);this._contextMenu.option("dataSource",e)}}tryUpdateVisibleContextMenu(){if(this._isVisible){var n=this.createContextMenuItems(this._targetFileItems);this._contextMenu.option("dataSource",n)}}_onContextMenuShown(){this._isVisible=!0}_onContextMenuHidden(n){this._isVisible=!1,n||(this._menuShowingContext={}),this._contextMenu.option("visible",!1),this._raiseContextMenuHidden()}_raiseContextMenuHidden(){this._actions.onContextMenuHidden()}_getDefaultOptions(){return se(super._getDefaultOptions(),{commandManager:null,onContextMenuHidden:null,onItemClick:null})}_optionChanged(n){var e=n.name;switch(e){case"commandManager":this.repaint();break;case"items":this.tryUpdateVisibleContextMenu();break;case"onItemClick":case"onContextMenuShowing":case"onContextMenuHidden":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(n)}}get _commandManager(){return this.option("commandManager")}},kRe=class AXt extends tr{_initMarkup(){this._createClickAction();var n=U("<div>");this.$element().append(n).addClass("dx-filemanager-file-actions-button"),this._button=this._createComponent(n,To,{icon:"overflow",stylingMode:"text",onClick:e=>this._raiseClick(e)}),super._initMarkup()}_createClickAction(){this._clickAction=this._createActionByOption("onClick")}_raiseClick(n){this._clickAction(n)}_getDefaultOptions(){return se(super._getDefaultOptions(),{cssClass:"",onClick:null})}_optionChanged(n){switch(n.name){case"cssClass":this.repaint();break;case"onClick":this._createClickAction();break;default:super._optionChanged(n)}}setActive(n){this.$element().toggleClass("dx-filemanager-file-actions-button-activated",n),setTimeout(()=>this._button.$element().toggleClass("dx-state-active",n))}};var MRe="dx-filemanager-focused-item";const ARe=class LXt extends tr{_initMarkup(){this._initActions(),this._getCurrentDirectory=this.option("getCurrentDirectory"),this._createFileActionsButton=Be,this._storeExpandedState=this.option("storeExpandedState")||!1;var n=U("<div>").addClass("dx-filemanager-dirs-tree").appendTo(this.$element()),e={dataStructure:"plain",rootValue:"",createChildren:this._onFilesTreeViewCreateSubDirectories.bind(this),itemTemplate:this._createFilesTreeViewItemTemplate.bind(this),keyExpr:"getInternalKey",parentIdExpr:"parentDirectory.getInternalKey",displayExpr:i=>i.getDisplayName(),hasItemsExpr:"fileItem.hasSubDirectories",onItemClick:i=>this._actions.onDirectoryClick(i),onItemExpanded:i=>this._onFilesTreeViewItemExpanded(i),onItemCollapsed:i=>this._onFilesTreeViewItemCollapsed(i),onItemRendered:i=>this._onFilesTreeViewItemRendered(i),onContentReady:()=>this._actions.onFilesTreeViewContentReady()};this._contextMenu&&(this._contextMenu.option("onContextMenuHidden",()=>this._onContextMenuHidden()),e.onItemContextMenu=i=>this._onFilesTreeViewItemContextMenu(i),this._createFileActionsButton=(i,r)=>this._createComponent(i,kRe,r)),this._filesTreeView=this._createComponent(n,oke,e)}_initActions(){this._actions={onDirectoryClick:this._createActionByOption("onDirectoryClick"),onFilesTreeViewContentReady:this._createActionByOption("onFilesTreeViewContentReady")}}_render(){super._render();var n=this;setTimeout(()=>{n._updateFocusedElement()})}_onFilesTreeViewCreateSubDirectories(n){var e=this.option("getDirectories");return e&&e(n&&n.itemData||null,!0)}_onFilesTreeViewItemRendered(n){var{itemData:e}=n,i=this._getCurrentDirectory();i&&i.fileItem.equals(e.fileItem)&&(this._updateFocusedElement(),this._restoreScrollTopPosition())}_onFilesTreeViewItemExpanded(n){var{itemData:e}=n;this._storeExpandedState&&(e.expanded=!0)}_onFilesTreeViewItemCollapsed(n){var{itemData:e}=n;this._storeExpandedState&&(e.expanded=!1)}_createFilesTreeViewItemTemplate(n,e,i){var r=U(i);r.closest(this._filesTreeViewItemSelector).data("item",n);var a=Fu(n.icon),s=U("<span>").text(n.getDisplayName()).addClass("dx-filemanager-dirs-tree-item-text"),l=U("<div>");r.append(a,s,l),this._createFileActionsButton(l,{onClick:u=>this._onFileItemActionButtonClick(u)})}_onFilesTreeViewItemContextMenu(n){var{itemElement:e,event:i}=n;i.preventDefault(),i.stopPropagation();var r=U(e).data("item");this._contextMenu.showAt([r],e,i,{itemData:r,itemElement:e})}_onFileItemActionButtonClick(n){var{component:e,element:i,event:r}=n;r.stopPropagation();var o=e.$element().closest(this._filesTreeViewItemSelector),a=o.data("item");this._contextMenu.showAt([a],i,r,{itemData:a,itemElement:o,isActionButton:!0}),this._activeFileActionsButton=e,this._activeFileActionsButton.setActive(!0)}_onContextMenuHidden(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}toggleNodeDisabledState(n,e){var i=this._getNodeByKey(n);if(i){var o=this._filesTreeView.option("items").map(a=>a.getInternalKey()).indexOf(i.getInternalKey());-1!==o&&this._filesTreeView.option("items[".concat(o,"].disabled"),e)}}_saveScrollTopPosition(){Rn()&&(this._scrollTopPosition=this._filesTreeView.getScrollable().scrollTop())}_restoreScrollTopPosition(){!Rn()||!di(this._scrollTopPosition)||setTimeout(()=>this._filesTreeView.getScrollable().scrollTo(this._scrollTopPosition))}_updateFocusedElement(){var n=this._getCurrentDirectory(),e=this._getItemElementByKey(n?.getInternalKey());this._$focusedElement&&this._$focusedElement.toggleClass(MRe,!1),this._$focusedElement=e||U(),this._$focusedElement.toggleClass(MRe,!0)}_getNodeByKey(n){var e;return null===(e=this._filesTreeView)||void 0===e?void 0:e._getNode(n)}_getPublicNode(n){for(var e,i=[...null===(e=this._filesTreeView)||void 0===e?void 0:e.getNodes()];i.length;){var r=i.shift();if(r.itemData.getInternalKey()===n)return r;r.children.length&&i.push(...r.children)}}_getItemElementByKey(n){var e=this._getNodeByKey(n);if(e){var i=this._filesTreeView._getNodeElement(e);if(i)return i.children(this._filesTreeViewItemSelector)}return null}_getDefaultOptions(){return se(super._getDefaultOptions(),{storeExpandedState:!1,initialFolder:null,contextMenu:null,getItems:null,getCurrentDirectory:null,onDirectoryClick:null})}_optionChanged(n){var e=n.name;switch(e){case"storeExpandedState":this._storeExpandedState=this.option(e);break;case"getItems":case"rootFolderDisplayName":case"initialFolder":case"contextMenu":this.repaint();break;case"getCurrentDirectory":this.getCurrentDirectory=this.option(e);break;case"onDirectoryClick":case"onFilesTreeViewContentReady":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(n)}}get _filesTreeViewItemSelector(){return".".concat("dx-treeview-item")}get _contextMenu(){return this.option("contextMenu")}toggleDirectoryExpandedState(n,e){var i=new et,r=this._getPublicNode(n?.getInternalKey());return r?r.expanded===e||r.itemsLoaded&&!r.itemData.fileItem.hasSubDirectories?i.resolve().promise():this._filesTreeView[e?"expandItem":"collapseItem"](n.getInternalKey()):i.reject().promise()}refresh(){this._$focusedElement=null,this._saveScrollTopPosition(),this._filesTreeView.option("dataSource",[])}updateCurrentDirectory(){this._disposed||(this._updateFocusedElement(),this._storeExpandedState&&this._updateExpandedStateToCurrentDirectory())}_updateExpandedStateToCurrentDirectory(){return this.toggleDirectoryExpandedStateRecursive(this._getCurrentDirectory().parentDirectory,!0)}toggleDirectoryExpandedStateRecursive(n,e){for(var i=[],r=n;r;r=r.parentDirectory)i.unshift(r);return this.toggleDirectoryLineExpandedState(i,e)}toggleDirectoryLineExpandedState(n,e){return n.length?this.toggleDirectoryExpandedState(n.shift(),e).then(()=>this.toggleDirectoryLineExpandedState(n,e)):(new et).resolve().promise()}},FRe=class VXt extends tr{_init(){this._initActions(),this._lockFocusedItemProcessing=!1,this._focusedItemKey=this.option("focusedItemKey"),super._init()}_initMarkup(){this.$element().addClass("dx-filemanager-files-view");var n=kt(tb,"dxFileManager_open");Se.on(this.$element(),n,this._getItemSelector(),this._onItemDblClick.bind(this)),super._initMarkup()}_initActions(){this._actions={onError:this._createActionByOption("onError"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged"),onSelectedItemOpened:this._createActionByOption("onSelectedItemOpened"),onContextMenuShowing:this._createActionByOption("onContextMenuShowing"),onItemListDataLoaded:this._createActionByOption("onItemListDataLoaded")}}_getDefaultOptions(){return se(super._getDefaultOptions(),{selectionMode:"single",selectedItemKeys:[],focusedItemKey:void 0,contextMenu:null,getItems:null,getItemThumbnail:null,onError:null,onSelectionChanged:null,onFocusedItemChanged:null,onSelectedItemOpened:null,onContextMenuShowing:null})}_optionChanged(n){var e=n.name;switch(e){case"selectionMode":case"contextMenu":case"getItems":case"getItemThumbnail":this.repaint();break;case"selectedItemKeys":this._setSelectedItemKeys(n.value);break;case"focusedItemKey":this._lockFocusedItemProcessing||this._setFocusedItemKey(n.value);break;case"onError":case"onSelectedItemOpened":case"onSelectionChanged":case"onFocusedItemChanged":case"onContextMenuShowing":case"onItemListDataLoaded":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(n)}}_getItems(){return this._getItemsInternal().done(n=>{this._itemCount=n.length,0===this._itemCount&&this._resetFocus();var e=this._findParentDirectoryItem(n);this._hasParentDirectoryItem=!!e,this._parentDirectoryItemKey=e?e.fileItem.key:null}).always(()=>{this._onDataLoaded()})}_getItemsInternal(){var n=this.option("getItems");return Qt(n?n():[])}_raiseOnError(n){this._actions.onError({error:n})}_raiseSelectionChanged(n){this._actions.onSelectionChanged(n)}_raiseFocusedItemChanged(n){this._actions.onFocusedItemChanged(n)}_raiseSelectedItemOpened(n){this._actions.onSelectedItemOpened({fileItemInfo:n})}_raiseContextMenuShowing(n){this._actions.onContextMenuShowing(n)}_raiseItemListDataLoaded(){this._actions.onItemListDataLoaded()}_onDataLoaded(){var n;this._raiseItemListDataLoaded(),null===(n=this._refreshDeferred)||void 0===n||n.resolve()}_tryRaiseSelectionChanged(n){var{selectedItemInfos:e,selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:o,currentDeselectedItemKeys:a}=n,s=this._findParentDirectoryItem(this.getSelectedItems());s&&this._deselectItem(s);var l=!this._hasParentDirectoryItem;(l=l||this._hasValidKeys(o)||this._hasValidKeys(a))&&(e=this._filterOutItemByPredicate(e,u=>u.fileItem.key===this._parentDirectoryItemKey),i=this._filterOutParentDirectory(i),r=this._filterOutParentDirectoryKey(r,!0),o=this._filterOutParentDirectoryKey(o,!0),a=this._filterOutParentDirectoryKey(a,!0),this._raiseSelectionChanged({selectedItemInfos:e,selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:o,currentDeselectedItemKeys:a}))}_onFocusedItemChanged(n){this._focusedItemKey!==n.itemKey&&(this._focusedItemKey=n.itemKey,this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",n.itemKey),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(n))}_resetFocus(){}_getItemThumbnail(n){var e=this.option("getItemThumbnail");return e?e(n):{thumbnail:""}}_getItemThumbnailContainer(n){var{thumbnail:e,cssClass:i}=this._getItemThumbnail(n),r=Fu(e).addClass(this._getItemThumbnailCssClass());return i&&r.addClass(i),r}_getItemThumbnailCssClass(){return""}_getItemSelector(){}_onItemDblClick(n){}_isDesktop(){return"desktop"===pn.real().deviceType}_showContextMenu(n,e,i,r){this._contextMenu.showAt(n,e,i,r)}get _contextMenu(){return this.option("contextMenu")}_findParentDirectoryItem(n){for(var e=0;e<n.length;e++){var i=n[e];if(this._isParentDirectoryItem(i))return i}return null}_getFileItemsForContextMenu(n){var e=this.getSelectedItems();return this._isParentDirectoryItem(n)&&e.push(n),e}_isParentDirectoryItem(n){return n.fileItem.isParentFolder}_hasValidKeys(n){return n.length>1||1===n.length&&n[0]!==this._parentDirectoryItemKey}_filterOutParentDirectory(n,e){return this._filterOutItemByPredicate(n,i=>i.key===this._parentDirectoryItemKey,e)}_filterOutParentDirectoryKey(n,e){return this._filterOutItemByPredicate(n,i=>i===this._parentDirectoryItemKey,e)}_filterOutItemByPredicate(n,e,i){for(var r=n,o=-1,a=0;a<n.length;a++)if(e(n[a])){o=a;break}return-1!==o&&(i&&(r=[...n]),r.splice(o,1)),r}_isMultipleSelectionMode(){return"multiple"===this.option("selectionMode")}_deselectItem(n){}_setSelectedItemKeys(n){}_setFocusedItemKey(n){}_createDataSource(){return{store:new bw({key:"fileItem.key",load:this._getItems.bind(this)})}}getSelectedItems(){}clearSelection(){}selectItem(){}};var PRe={thumbnail:{caption:"",calculateSortValue:"isDirectory",width:36,alignment:"center",cssClass:"dx-filemanager-details-item-is-directory"},name:{caption:ye.format("dxFileManager-listDetailsColumnCaptionName")},dateModified:{caption:ye.format("dxFileManager-listDetailsColumnCaptionDateModified"),width:110,hidingPriority:1},size:{caption:ye.format("dxFileManager-listDetailsColumnCaptionFileSize"),width:90,alignment:"right",hidingPriority:0},isParentFolder:{caption:"isParentFolder",visible:!1,sortIndex:0,sortOrder:"asc"}};const qXt=class $Xt extends FRe{_initMarkup(){this._itemCount=0,this._focusedItem=null,this._hasParentDirectoryItem=!1,this._parentDirectoryItemKey=null,this._selectAllCheckBox=null,this._selectAllCheckBoxUpdating=!1,this.$element().addClass("dx-filemanager-details"),this._createFilesView(),this._contextMenu.option("onContextMenuHidden",()=>this._onContextMenuHidden()),super._initMarkup()}_createFilesView(){var n=U("<div>").appendTo(this.$element()),e=this._isMultipleSelectionMode()?"multiple":"none";this._filesView=this._createComponent(n,l2e,{dataSource:this._createDataSource(),hoverStateEnabled:!0,selection:{mode:e,showCheckBoxesMode:this._isDesktop()?"onClick":"none"},selectedRowKeys:this.option("selectedItemKeys"),focusedRowKey:this.option("focusedItemKey"),focusedRowEnabled:!0,allowColumnResizing:!0,scrolling:{mode:"virtual"},sorting:{mode:"single",showSortIndexes:!1},loadPanel:{shading:!0},showColumnLines:!1,showRowLines:!1,columnHidingEnabled:!1,columns:this._createColumns(),onEditorPreparing:this._onEditorPreparing.bind(this),onRowPrepared:this._onRowPrepared.bind(this),onContextMenuPreparing:this._onContextMenuPreparing.bind(this),onSelectionChanged:this._onFilesViewSelectionChanged.bind(this),onFocusedRowChanged:this._onFilesViewFocusedRowChanged.bind(this),onOptionChanged:this._onFilesViewOptionChanged.bind(this)})}_createColumns(){var n=this.option("detailColumns");n=(n=n.slice(0)).map(i=>{var r=i;return Pn(i)&&(r={dataField:i}),this._getPreparedColumn(r)});var e=this.option("customizeDetailColumns");return Yt(e)&&(n=e(n)),n.push(this._getPreparedColumn({dataField:"isParentFolder"})),n.forEach(i=>this._updateColumnDataField(i)),n}_getPreparedColumn(n){var e={},i="";if(this._isDefaultColumn(n.dataField)){var r=se(!0,{},PRe[n.dataField]);switch(i=r.cssClass||"",n.dataField){case"thumbnail":r.cellTemplate=this._createThumbnailColumnCell.bind(this),r.calculateSortValue="fileItem.".concat(r.calculateSortValue);break;case"name":r.cellTemplate=this._createNameColumnCell.bind(this),r.caption=ye.format("dxFileManager-listDetailsColumnCaptionName");break;case"size":r.calculateCellValue=this._calculateSizeColumnCellValue.bind(this),r.caption=ye.format("dxFileManager-listDetailsColumnCaptionFileSize"),r.calculateSortValue=o=>o.fileItem.isDirectory?-1:o.fileItem.size;break;case"dateModified":r.caption=ye.format("dxFileManager-listDetailsColumnCaptionDateModified")}se(!0,e,r)}return Cb(e,n,["alignment","caption","dataField","dataType","hidingPriority","sortIndex","sortOrder","visible","visibleIndex","width"]),n.cssClass&&(i="".concat(i," ").concat(n.cssClass)),i&&(e.cssClass=i),e}_updateColumnDataField(n){var e=this._isDefaultColumn(n.dataField)?"":"dataItem.";return n.dataField="fileItem."+e+n.dataField,n}_isDefaultColumn(n){return!!PRe[n]}_onFileItemActionButtonClick(n){var{component:e,element:i,event:r}=n;r.stopPropagation();var o=e.$element().closest(this._getItemSelector()),a=o.data("item");this._selectItem(a);var s={itemData:a,itemElement:o,isActionButton:!0},l=this._getFileItemsForContextMenu(a);this._showContextMenu(l,i,r,s),this._activeFileActionsButton=e,this._activeFileActionsButton.setActive(!0)}_onContextMenuHidden(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}_getItemThumbnailCssClass(){return"dx-filemanager-details-item-thumbnail"}_getItemSelector(){return".".concat("dx-data-row")}_onItemDblClick(n){var i=U(n.currentTarget).data("item");this._raiseSelectedItemOpened(i)}_isAllItemsSelected(){var n=this._hasParentDirectoryItem?this._itemCount-1:this._itemCount,e=this._filesView.option("selectedRowKeys");return!!e.length&&(e.length>=n||void 0)}_onEditorPreparing(n){var{component:e,command:i,row:r,parentType:o,editorOptions:a}=n;this._filesView||(this._filesView=e),"select"===i&&r?this._isParentDirectoryItem(r.data)&&(a.disabled=!0):"headerRow"===o&&(a.onInitialized=s=>{var{component:l}=s;this._selectAllCheckBox=l},a.value=this._isAllItemsSelected(),a.onValueChanged=s=>this._onSelectAllCheckBoxValueChanged(s))}_onSelectAllCheckBoxValueChanged(n){var{event:e,previousValue:i,value:r}=n;e?this._isAllItemsSelected()!==r&&(r?this._filesView.selectAll():this._filesView.deselectAll(),e.preventDefault()):i&&!this._selectAllCheckBoxUpdating&&this._selectAllCheckBox&&this._selectAllCheckBox.option("value",i)}_onRowPrepared(n){var{rowType:e,rowElement:i,data:r}=n;if("data"===e){var o=U(i);o.data("item",r),this._isParentDirectoryItem(r)&&o.addClass("dx-filemanager-parent-directory-item")}}_onContextMenuPreparing(n){if(this._isDesktop()){var e=null,i={};n.row&&"data"===n.row.rowType&&(this._selectItem(i=n.row.data),e=this._getFileItemsForContextMenu(i));var r=se({},{targetElement:"content"===n.target&&Z(n.row)?this._filesView.getRowElement(n.rowIndex):void 0,itemData:i,options:this._contextMenu.option(),event:n.event,isActionButton:!1,cancel:!1});this._raiseContextMenuShowing(r),n.items=r.cancel?[]:this._contextMenu.createContextMenuItems(e,null,i)}}_onFilesViewSelectionChanged(n){var{component:e,selectedRowsData:i,selectedRowKeys:r,currentSelectedRowKeys:o,currentDeselectedRowKeys:a}=n;this._filesView=this._filesView||e,this._selectAllCheckBox&&(this._selectAllCheckBoxUpdating=!0,this._selectAllCheckBox.option("value",this._isAllItemsSelected()),this._selectAllCheckBoxUpdating=!1);var s=i.map(l=>l.fileItem);this._tryRaiseSelectionChanged({selectedItemInfos:i,selectedItems:s,selectedItemKeys:r,currentSelectedItemKeys:o,currentDeselectedItemKeys:a})}_onFilesViewFocusedRowChanged(n){var e,i;this._isMultipleSelectionMode()||this._selectItemSingleSelection(null===(i=n.row)||void 0===i?void 0:i.data);var r=(null===(e=n.row)||void 0===e?void 0:e.data.fileItem)||null;this._onFocusedItemChanged({item:r,itemKey:r?.key,itemElement:n.rowElement})}_onFilesViewOptionChanged(n){var{fullName:e}=n;e.indexOf("sortOrder")>-1&&this._filesView.columnOption("isParentFolder",{sortOrder:"asc",sortIndex:0})}_resetFocus(){this._setFocusedItemKey(void 0)}_createThumbnailColumnCell(n,e){this._getItemThumbnailContainer(e.data).appendTo(n)}_createNameColumnCell(n,e){var i=U("<div>"),r=U("<span>").text(e.data.fileItem.name).addClass("dx-filemanager-details-item-name"),o=U("<div>").append(r,i).addClass("dx-filemanager-details-item-name-wrapper");U(n).append(o),this._createComponent(i,kRe,{onClick:a=>this._onFileItemActionButtonClick(a)})}_calculateSizeColumnCellValue(n){return n.fileItem.isDirectory?"":bRe(n.fileItem.size)}_selectItem(n){(this._isMultipleSelectionMode()?this._selectItemMultipleSelection:this._selectItemSingleSelection).call(this,n)}_deselectItem(n){this._filesView.deselectRows([n.fileItem.key])}_selectItemSingleSelection(n){if(!this._focusedItem||!n||this._focusedItem.fileItem.key!==n.fileItem.key){var e=this._focusedItem;this._focusedItem=n;var i=[];e&&i.push(e.fileItem.key);var r=[],o=[];n&&!this._isParentDirectoryItem(n)&&(r.push(n.fileItem),o.push(n.fileItem.key)),this._raiseSelectionChanged({selectedItems:r,selectedItemKeys:o,currentSelectedItemKeys:[...o],currentDeselectedItemKeys:i})}}_selectItemMultipleSelection(n){var{fileItem:e}=n;if(!this._filesView.isRowSelected(e.key)){var r=this._filesView.getController("selection").isSelectionWithCheckboxes();this._filesView.selectRows([e.key],r)}}_setSelectedItemKeys(n){this._filesView.option("selectedRowKeys",n)}_setFocusedItemKey(n){var e;null===(e=this._filesView)||void 0===e||e.option("focusedRowKey",n)}clearSelection(){this._isMultipleSelectionMode()?this._filesView.clearSelection():this._filesView.option("focusedRowIndex",-1)}refresh(n){var e={dataSource:this._createDataSource()};return n&&Object.prototype.hasOwnProperty.call(n,"focusedItemKey")&&(Z(n.focusedItemKey)?e.focusedRowKey=n.focusedItemKey:e.focusedRowIndex=-1),this._filesView.option(e),this._refreshDeferred=new et,this._refreshDeferred.promise()}getSelectedItems(){return this._isMultipleSelectionMode()?this._filesView.getSelectedRowsData():this._focusedItem&&!this._isParentDirectoryItem(this._focusedItem)?[this._focusedItem]:[]}};var RRe=kt(Tm_name,"dxFileManagerThumbnailsListBox");class iJt{constructor(n,e,i,r){this._layoutModel=null,this._scrollView=n,this._$viewPort=e,this._$itemContainer=i,this._$item=r}updateItems(n){this._$item=n}reset(){this._layoutModel=null}getLayoutModel(){return this._layoutModel||(this._layoutModel=this._createLayoutModel()),this._layoutModel}_createLayoutModel(){if(!this._$item)return null;var n=ii(this._$item,!0);if(0===n)return null;var e=Zn(this._$item,!0),i=e2(this._$itemContainer),r=vw(this._$viewPort),o=this._scrollView.scrollTop();return{itemWidth:n,itemHeight:e,viewPortWidth:i,viewPortHeight:r,viewPortScrollTop:o,viewPortScrollBottom:o+r,itemPerRowCount:Math.floor(i/n),rowPerPageRate:r/e}}createItemLayoutModel(n){var e=this.getLayoutModel();if(!e)return null;var i=Math.floor(n/e.itemPerRowCount),o=i*e.itemHeight;return{itemRowIndex:i,itemColumnIndex:n%e.itemPerRowCount,itemTop:o,itemBottom:o+e.itemHeight}}scrollToItem(n){var e=this.getLayoutModel();if(e){var r=Math.floor(n/e.itemPerRowCount)*e.itemHeight,o=r+e.itemHeight,a=e.viewPortScrollTop;r<e.viewPortScrollTop?a=r:o>e.viewPortScrollBottom&&(a=o-e.viewPortHeight),this._scrollView.scrollTo(a)}}}const rJt=class nJt extends Fc{_initMarkup(){this._initActions(),this._lockFocusedItemProcessing=!1,this.$element().addClass("dx-filemanager-thumbnails-view-port"),this._renderScrollView(),this._renderItemsContainer(),this._createScrollViewControl(),super._initMarkup(),this.onFocusedItemChanged=this._onFocusedItemChanged.bind(this),this._layoutUtils=new iJt(this._scrollView,this.$element(),this._$itemContainer,this.itemElements().first()),this._syncFocusedItemKey()}_initActions(){this._actions={onItemEnterKeyPressed:this._createActionByOption("onItemEnterKeyPressed"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged")}}_initTemplates(){super._initTemplates(),this._itemThumbnailTemplate=this.option("itemThumbnailTemplate"),this._getTooltipText=this.option("getTooltipText"),this._templateManager.addDefaultTemplates({item:new Ac(function(n,e,i){var r=this._getDefaultItemTemplate(i,n);n.append(r)}.bind(this),["fileItem"],this.option("integrationOptions.watchMethod"))})}_createScrollViewControl(){this._scrollView||(this._scrollView=this._createComponent(this._$scrollView,Ih,{scrollByContent:!0,scrollByThumb:!0,useKeyboard:!1,showScrollbar:"onHover"}))}_renderScrollView(){this._$scrollView||(this._$scrollView=U("<div>").appendTo(this.$element()))}_renderItemsContainer(){this._$itemContainer||(this._$itemContainer=U("<div>").addClass("dx-filemanager-thumbnails-container").appendTo(this._$scrollView))}_render(){super._render(),this._detachEventHandlers(),this._attachEventHandlers()}_clean(){this._detachEventHandlers(),super._clean()}_supportedKeys(){return se(super._supportedKeys(),{upArrow(n){this._beforeKeyProcessing(n),this._processArrowKeys(-1,!1,n)},downArrow(n){this._beforeKeyProcessing(n),this._processArrowKeys(1,!1,n)},home(n){this._beforeKeyProcessing(n),this._processHomeEndKeys(0,!0,n)},end(n){this._beforeKeyProcessing(n),this._processHomeEndKeys(this._getItemsLength()-1,!0,n)},pageUp(n){this._beforeKeyProcessing(n),this._processPageChange(!0,n)},pageDown(n){this._beforeKeyProcessing(n),this._processPageChange(!1,n)},enter(n){this._beforeKeyProcessing(n),this._actions.onItemEnterKeyPressed(this._getFocusedItem())},A(n){this._beforeKeyProcessing(n),Xo(n)&&this.selectAll()}})}_beforeKeyProcessing(n){n.preventDefault(),this._layoutUtils.reset()}_processArrowKeys(n,e,i){var r=this._getFocusedItem();if(r){if(!e){var o=this._layoutUtils.getLayoutModel();if(!o)return;n*=o.itemPerRowCount}var a=this._getIndexByItem(r)+n;this._focusItemByIndex(a,!0,i)}}_processHomeEndKeys(n,e,i){this._focusItemByIndex(n,e,i)}_processPageChange(n,e){var i=this._getFocusedItem();if(i){var r=this._layoutUtils.getLayoutModel();if(r){var o=this._layoutUtils.createItemLayoutModel(this._getIndexByItem(i)),f=(n?Math.ceil:Math.floor)(o.itemRowIndex-(n?r.rowPerPageRate:-r.rowPerPageRate))*r.itemPerRowCount+o.itemColumnIndex;f<0?f=0:f>=this._getItemsLength()&&(f=this._getItemsLength()-1),this._focusItemByIndex(f,!0,e)}}}_processLongTap(n){var e=this._closestItemElement(U(n.target)),i=this._getIndexByItemElement(e);this._selection.changeItemSelection(i,{control:!0})}_attachEventHandlers(){"multiple"===this.option("selectionMode")&&Se.on(this._itemContainer(),RRe,".".concat(this._itemContentClass()),n=>{this._processLongTap(n),n.stopPropagation()}),Se.on(this._itemContainer(),"mousedown selectstart",n=>{n.shiftKey&&n.preventDefault()})}_detachEventHandlers(){Se.off(this._itemContainer(),RRe),Se.off(this._itemContainer(),"mousedown selectstart")}_itemContainer(){return this._$itemContainer}_itemClass(){return"dx-filemanager-thumbnails-item"}_itemDataKey(){return"dxFileManagerItemData"}_getDefaultItemTemplate(n,e){e.attr("title",this._getTooltipText(n));var i=this._itemThumbnailTemplate(n),r=U("<div>").addClass("dx-filemanager-thumbnails-item-spacer"),o=U("<div>").addClass("dx-filemanager-thumbnails-item-name").text(n.fileItem.name);e.append(i,r,o)}_itemSelectHandler(n){var e={};"multiple"===this.option("selectionMode")&&(this._isPreserveSelectionMode||(this._isPreserveSelectionMode=Xo(n)||n.shiftKey),e={control:this._isPreserveSelectionMode,shift:n.shiftKey});var i=this._getIndexByItemElement(n.currentTarget);this._selection.changeItemSelection(i,e)}_initSelectionModule(){super._initSelectionModule();var n=se(this._selection.options,{selectedKeys:this.option("selectedItemKeys"),onSelectionChanged:e=>{this.option("selectedItems",this._getItemsByKeys(e.selectedItemKeys,e.selectedItems)),this._updateSelectedItems(e)}});this._selection=new cG(n)}_updateSelectedItems(n){var e=n.addedItemKeys,i=n.removedItemKeys;if(this._rendered&&(e.length||i.length)){var r=this._selectionChangePromise;if(!this._rendering){var a,o=[],s=[];this._editStrategy.beginCache();for(var l=0;l<i.length;l++)a=this._getIndexByKey(i[l]),s.push(a),this._removeSelection(a);for(var u=0;u<e.length;u++)a=this._getIndexByKey(e[u]),o.push(a),this._addSelection(a);this._editStrategy.endCache(),this._updateSelection(o,s)}Qt(r).done(()=>this._fireSelectionChangeEvent(n))}}_fireSelectionChangeEvent(n){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})(n)}_updateSelection(n,e){0===this.getSelectedItems().length&&(this._isPreserveSelectionMode=!1)}_normalizeSelectedItems(){var n=this._getKeysByItems(this.option("selectedItems")),e=this._selection.getSelectedItemKeys();return this._compareKeys(e,n)||this._selection.setSelection(n),(new et).resolve().promise()}_focusOutHandler(){}_getItems(){return this.option("items")||[]}_getItemsLength(){return this._getItems().length}_getIndexByItemElement(n){return this._editStrategy.getNormalizedIndex(n)}_getItemByIndex(n){return this._getItems()[n]}_getFocusedItem(){return this.getItemByItemElement(this.option("focusedElement"))}_focusItem(n,e){this.option("focusedElement",this.getItemElementByItem(n)),e&&this._layoutUtils.scrollToItem(this._getIndexByItem(n))}_focusItemByIndex(n,e,i){if(n>=0&&n<this._getItemsLength()){var r=this._getItemByIndex(n);this._focusItem(r,e,i)}}_syncFocusedItemKey(){this._syncFocusedItemKeyDeferred||(this._syncFocusedItemKeyDeferred=new et);var n=this._syncFocusedItemKeyDeferred;if(this._dataSource&&this._dataSource.isLoading())return n.promise();var e=this.option("focusedItemKey");if(Z(e)){var r=this.option("items").find(o=>this.keyOf(o)===e);r?(this._focusItem(r,!0),n.resolve()):(this.option("focusedItemKey",void 0),n.reject())}else n.resolve();return this._syncFocusedItemKeyDeferred=null,n.promise()}_onFocusedItemChanged(){var n=this._getFocusedItem(),e=this.keyOf(n);e!==this.option("focusedItemKey")&&(this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",e),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(n))}_raiseFocusedItemChanged(n){var e={item:n,itemElement:this.option("focusedElement")};this._actions.onFocusedItemChanged(e)}_changeItemSelection(n,e){if(this.isItemSelected(n)!==e){var i=this.getItemElementByItem(n),r=this._getIndexByItemElement(i);this._selection.changeItemSelection(r,{control:this._isPreserveSelectionMode})}}_chooseSelectOption(){return"selectedItemKeys"}getSelectedItems(){return this._selection.getSelectedItems()}getItemElementByItem(n){return this._editStrategy.getItemElement(n)}getItemByItemElement(n){return this._getItemByIndex(this._getIndexByItemElement(n))}selectAll(){"multiple"===this.option("selectionMode")&&(this._selection.selectAll(),this._isPreserveSelectionMode=!0)}selectItem(n){this._changeItemSelection(n,!0)}deselectItem(n){this._changeItemSelection(n,!1)}clearSelection(){this._selection.deselectAll()}_optionChanged(n){switch(n.name){case"items":this._layoutUtils&&this._layoutUtils.updateItems(this.itemElements().first()),super._optionChanged(n);break;case"focusedItemKey":if(this._lockFocusedItemProcessing)break;Z(n.value)?this._syncFocusedItemKey().done(()=>{var e=this._getFocusedItem();this._raiseFocusedItemChanged(e)}):(this.option("focusedElement",null),this._raiseFocusedItemChanged(null));break;case"onItemEnterKeyPressed":case"onFocusedItemChanged":this._actions[n.name]=this._createActionByOption(n.name);break;default:super._optionChanged(n)}}},dJt=class uJt extends FRe{_initMarkup(){super._initMarkup(),this.$element().addClass("dx-filemanager-thumbnails");var n=kt(uR,"dxFileManager_thumbnails");Se.on(this.$element(),n,this._onContextMenu.bind(this)),this._createItemList()}_createItemList(){var n=this._isMultipleSelectionMode()?"multiple":"single",e=U("<div>").appendTo(this.$element());this._itemList=this._createComponent(e,rJt,{dataSource:this._createDataSource(),selectionMode:n,selectedItemKeys:this.option("selectedItemKeys"),focusedItemKey:this.option("focusedItemKey"),activeStateEnabled:!0,hoverStateEnabled:!0,loopItemFocus:!1,focusStateEnabled:!0,onItemEnterKeyPressed:this._tryOpen.bind(this),itemThumbnailTemplate:this._getItemThumbnailContainer.bind(this),getTooltipText:this._getTooltipText.bind(this),onSelectionChanged:this._onItemListSelectionChanged.bind(this),onFocusedItemChanged:this._onItemListFocusedItemChanged.bind(this)})}_onContextMenu(n){if(n.preventDefault(),n.stopPropagation(),this._isDesktop()){var e=null,i=U(n.target).closest(this._getItemSelector()),r=null;i.length>0&&(r=this._itemList.getItemByItemElement(i),this._itemList.selectItem(r),e=this._getFileItemsForContextMenu(r)),this._showContextMenu(e,n.target,n,{itemData:r,itemElement:i.length?i:void 0})}}_getItemThumbnailCssClass(){return"dx-filemanager-thumbnails-item-thumbnail"}_getItemSelector(){return".".concat("dx-filemanager-thumbnails-item")}_getTooltipText(n){var e=n.fileItem;if(e.tooltipText)return e.tooltipText;var i="".concat(e.name,"\r\n");return e.isDirectory||(i+="".concat(ye.format("dxFileManager-listThumbnailsTooltipTextSize"),": ").concat(bRe(e.size),"\r\n")),i+"".concat(ye.format("dxFileManager-listThumbnailsTooltipTextDateModified"),": ").concat(e.dateModified)}_onItemDblClick(n){var e=U(n.currentTarget),i=this._itemList.getItemByItemElement(e);this._tryOpen(i)}_tryOpen(n){n&&this._raiseSelectedItemOpened(n)}_getItemsInternal(){return super._getItemsInternal().then(n=>{var e=new et;return setTimeout(()=>e.resolve(n)),e.promise()})}_disableDragging(){return!1}_getDefaultOptions(){return se(super._getDefaultOptions(),{focusStateEnabled:!0})}_onItemListSelectionChanged(n){var{addedItemKeys:e,removedItemKeys:i}=n,r=this.getSelectedItems(),o=r.map(s=>s.fileItem),a=o.map(s=>s.key);this._tryRaiseSelectionChanged({selectedItemInfos:r,selectedItems:o,selectedItemKeys:a,currentSelectedItemKeys:e,currentDeselectedItemKeys:i})}_onItemListFocusedItemChanged(n){var{item:e,itemElement:i}=n;this._isMultipleSelectionMode()||this._selectItemSingleSelection(e);var r=e?.fileItem||null;this._onFocusedItemChanged({item:r,itemKey:r?.key,itemElement:i||void 0})}_setSelectedItemKeys(n){this._itemList.option("selectedItemKeys",n)}_setFocusedItemKey(n){this._itemList.option("focusedItemKey",n)}refresh(n){var e={dataSource:this._createDataSource()};return n&&Object.prototype.hasOwnProperty.call(n,"focusedItemKey")&&(e.focusedItemKey=n.focusedItemKey),n&&Object.prototype.hasOwnProperty.call(n,"selectedItemKeys")&&(e.selectedItemKeys=n.selectedItemKeys),this._itemList.option(e),this._refreshDeferred=new et,this._refreshDeferred.promise()}_deselectItem(n){var e=this._itemList.getItemElementByItem(n);this._itemList.unselectItem(e)}_selectItemSingleSelection(n){n?this._itemList.selectItem(n):this._itemList.clearSelection()}clearSelection(){this._itemList.clearSelection()}getSelectedItems(){return this._itemList.getSelectedItems()}};var n8="dx-filemanager-toolbar",LRe="dx-filemanager-general-toolbar",hJt=n8+"-separator-item",pJt=n8+"-viewmode-item",BRe={showNavPane:{location:"before"},create:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},upload:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},refresh:{location:"after",showText:"inMenu",cssClass:n8+"-has-large-icon",compactMode:{showText:"inMenu",locateInMenu:"auto"}},switchView:{location:"after"},download:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},move:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},copy:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},rename:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},delete:{location:"before",compactMode:{showText:"inMenu"}},clearSelection:{location:"after",locateInMenu:"never",compactMode:{showText:"inMenu"}},separator:{location:"before"}},mJt=["visible","location","locateInMenu","disabled","showText"],_Jt=["accessKey","elementAttr","height","hint","icon","stylingMode","tabIndex","text","width"],vJt=["separator","switchView"],NRe={default:"dx-filemanager-i dx-filemanager-i-refresh",progress:"dx-filemanager-i dx-filemanager-i-progress",success:"dx-filemanager-i dx-filemanager-i-done",error:"dx-filemanager-i dx-filemanager-i-danger"};const bJt=class CJt extends tr{_init(){super._init(),this._generalToolbarVisible=!0,this._refreshItemState={message:"",status:"default"}}_initMarkup(){this._createItemClickedAction(),this._$viewSwitcherPopup=U("<div>").addClass("dx-filemanager-view-switcher-popup"),this._generalToolbar=this._createToolbar(this.option("generalItems"),!this._generalToolbarVisible),this._fileToolbar=this._createToolbar(this.option("fileItems"),this._generalToolbarVisible),this._$viewSwitcherPopup.appendTo(this.$element()),this.$element().addClass(n8+" "+LRe)}_render(){super._render();var n=this._getVisibleToolbar();this._checkCompactMode(n)}_clean(){delete this._commandManager,delete this._itemClickedAction,delete this._$viewSwitcherPopup,delete this._generalToolbar,delete this._fileToolbar,super._clean()}_dimensionChanged(n){if(!n||"height"!==n){var e=this._getVisibleToolbar();this._checkCompactMode(e)}}_getVisibleToolbar(){return this._generalToolbarVisible?this._generalToolbar:this._fileToolbar}_createToolbar(n,e){var i=this._getPreparedItems(n),r=U("<div>").appendTo(this.$element()),o=this._createComponent(r,nb,{items:i,visible:!e,onItemClick:a=>this._raiseItemClicked(a)});return o.compactMode=!1,o}_getPreparedItems(n){return n=n.map(e=>{var i=e;Pn(e)&&(i={name:e});var r=i.name,o=this._configureItemByCommandName(r,i);return o.originalItemData=e,"separator"!==r&&this._setItemVisibleAvailable(o),o}),this._updateSeparatorsVisibility(n),n}_updateSeparatorsVisibility(n,e){var i=!1,r=this._getMenuItems(e),o={before:!1,center:!1,after:!1},a={before:this._getItemsInGroup(n,r,"before"),center:this._getItemsInGroup(n,r,"center"),after:this._getItemsInGroup(n,r,"after")};return n.forEach((s,l)=>{var u=s.location;if("separator"===s.name){var f=o[u]&&this._groupHasItemsAfter(a[u]);s.visible!==f&&(i=!0,s.visible=f),o[u]=!1}else this._isItemInMenu(r,s)||(o[u]=o[u]||s.visible),a[u].shift()}),e&&i&&e.repaint(),i}_getMenuItems(n){return(n?n._getMenuItems():[]).map(i=>i.originalItemData)}_isItemInMenu(n,e){return!!n.length&&"never"!==gr(e.locateInMenu,"never")&&-1!==n.indexOf(e.originalItemData)}_getItemsInGroup(n,e,i){return n.filter(r=>r.location===i&&!this._isItemInMenu(e,r))}_groupHasItemsAfter(n){for(var e=0;e<n.length;e++)if("separator"!==n[e].name&&n[e].visible)return!0;return!1}_configureItemByCommandName(n,e){var i,r={},o=this._commandManager.getCommandByName(n);switch(o&&(r=this._createCommandItem(o)),n){case"separator":r=this._createSeparatorItem();break;case"switchView":r=this._createViewModeItem()}if(this._isDefaultItem(n)){se(!0,r,BRe[n]);var s=r.cssClass||"";Cb(r,e,mJt),Z(e.options)&&Cb(r.options,e.options,_Jt),Cb(r.options,e,["text","icon"]),e.cssClass&&(s="".concat(s," ").concat(e.cssClass)),s&&(r.cssClass=s),Z(e.visible)||(r._autoHide=!0),"dxButton"===r.widget&&("inMenu"===r.showText&&!Z(r.options.hint)&&(r.options.hint=r.options.text),r.compactMode&&!Z(r.options.hint)&&this._configureHintForCompactMode(r))}else se(!0,r,e),r.widget||(r.widget="dxButton"),"dxButton"===r.widget&&!r.compactMode&&!r.showText&&r.options&&r.options.icon&&r.options.text&&(r.compactMode={showText:"inMenu"});return n&&!r.name&&se(r,{name:n}),r.location=gr(r.location,"before"),Z(null===(i=r.options)||void 0===i?void 0:i.stylingMode)||("dxButton"===r.widget&&se(!0,r,{options:{stylingMode:"text"}}),"dxSelectBox"===r.widget&&se(!0,r,{options:{stylingMode:"filled"}})),r}_isDefaultItem(n){return!!BRe[n]}_createCommandItem(n){return{widget:"dxButton",options:{text:n.text,hint:n.hint,commandText:n.text,icon:n.icon,stylingMode:"text",onClick:e=>this._executeCommand(n)}}}_createSeparatorItem(){return{template:(n,e,i)=>{U(i).addClass(hJt)}}}_createViewModeItem(){var n=["details","thumbnails"].map(i=>{var{text:r,icon:o}=this._commandManager.getCommandByName(i);return{name:i,text:r,icon:o}}),e="thumbnails"===this.option("itemViewMode")?1:0;return{cssClass:pJt,widget:"dxDropDownButton",options:{items:n,keyExpr:"name",selectedItemKey:this.option("itemViewMode"),displayExpr:" ",hint:n[e].text,stylingMode:"text",showArrowIcon:!1,useSelectMode:!0,dropDownOptions:{container:this._$viewSwitcherPopup},onItemClick:i=>this._executeCommand(i.itemData.name)}}}_configureHintForCompactMode(n){n.options.hint="",n.compactMode.options=n.compactMode.options||{},n.compactMode.options.hint=n.options.text}_checkCompactMode(n){n.compactMode&&this._toggleCompactMode(n,!1);var e=this._toolbarHasItemsOverflow(n);n.compactMode!==e?(n.compactMode||this._toggleCompactMode(n,e),n.compactMode=e):n.compactMode&&this._toggleCompactMode(n,!0)}_toolbarHasItemsOverflow(n){return wn(n.$element())<n._getItemsWidth()}_toggleCompactMode(n,e){var i=!1,r=n.option("items");r.forEach(o=>{if(o.compactMode){var a=null;e?(o.saved=this._getCompactModeOptions(o,o._available),a=o.compactMode):a=o.saved;var s=this._getCompactModeOptions(a,o._available);se(!0,o,s),i=!0}}),(i=this._updateSeparatorsVisibility(r)||i)&&n.repaint(),this._updateSeparatorsVisibility(r,n)}_getCompactModeOptions(n,e){var{showText:i,locateInMenu:r,options:o}=n;return{visible:e,showText:gr(i,"always"),locateInMenu:gr(r,"never"),options:{hint:o?.hint}}}_ensureAvailableCommandsVisible(n){var e=!1,i=n.option("items");i.forEach(r=>{if("separator"!==r.name){var o=r._available;this._setItemVisibleAvailable(r),r._available!==o&&(e=!0)}}),(e=this._updateSeparatorsVisibility(i)||e)&&n.repaint(),this._updateSeparatorsVisibility(i,n)}_setItemVisibleAvailable(n){var e,i=null===(e=n.originalItemData)||void 0===e?void 0:e.visible;n._available=this._isToolbarItemAvailable(n),n.visible=Z(i)?i:n._available}_fileToolbarHasEffectiveItems(){return this._fileToolbar.option("items").some(e=>this._isFileToolbarItemAvailable(e))}_executeCommand(n){this._commandManager.executeCommand(n)}_isToolbarItemAvailable(n){return this._isDefaultItem(n.name)&&n._autoHide?"refresh"===n.name?this._generalToolbarVisible||!!this._isRefreshVisibleInFileToolbar:vJt.indexOf(n.name)>-1||this._isCommandAvailable(n.name):gr(n.visible,!0)}_isFileToolbarItemAvailable(n){var{name:e,visible:i}=n;return!this._isDefaultItem(e)&&gr(i,!0)||"clearSelection"!==e&&"refresh"!==e&&this._isCommandAvailable(e)}_isCommandAvailable(n){return this._commandManager.isCommandAvailable(n,this.option("contextItems"))}_updateItemInToolbar(n,e,i){n.beginUpdate();for(var r=n.option("items"),o=0;o<r.length;o++)if(r[o].name===e){n.option("items[".concat(o,"]"),i);break}n.endUpdate()}_raiseItemClicked(n){var e=se(!0,{},n);e.itemData=n.itemData.originalItemData,this._itemClickedAction(e)}_createItemClickedAction(){this._itemClickedAction=this._createActionByOption("onItemClick")}_getDefaultOptions(){return se(super._getDefaultOptions(),{commandManager:null,generalItems:[],fileItems:[],contextItems:[],itemViewMode:"details",onItemClick:null})}_optionChanged(n){var e=n.name;switch(e){case"commandManager":case"itemViewMode":case"generalItems":case"fileItems":this.repaint();break;case"contextItems":this._update();break;case"onItemClick":this._itemClickedAction=this._createActionByOption(e);break;default:super._optionChanged(n)}}updateItemPermissions(){this.repaint(),this._restoreRefreshItemState()}_restoreRefreshItemState(){this.updateRefreshItem(this._refreshItemState.message,this._refreshItemState.status)}updateRefreshItem(n,e){var i=null,r=ye.format("dxFileManager-commandRefresh"),o="inMenu";this._isRefreshVisibleInFileToolbar=!1,this._refreshItemState={message:n,status:e},"default"===e?i={options:{icon:NRe.default}}:(i={options:{icon:NRe[e]}},this._isRefreshVisibleInFileToolbar=!0,r=n,o="always");var a=se({},i,{visible:this._isRefreshVisibleInFileToolbar});this._applyRefreshItemOptions(i,a),this._refreshItemTextTimeout=this._updateRefreshItemText("progress"===e,r,o)}_updateRefreshItemText(n,e,i){var r={showText:i,options:{text:e}};if(n)return setTimeout(()=>{this._applyRefreshItemOptions(r),this._refreshItemTextTimeout=void 0},500);this._refreshItemTextTimeout&&clearTimeout(this._refreshItemTextTimeout),this._applyRefreshItemOptions(r)}_applyRefreshItemOptions(n,e){e||(e=se({},n)),this._updateItemInToolbar(this._generalToolbar,"refresh",n),this._updateItemInToolbar(this._fileToolbar,"refresh",e)}_update(){var n=0===this.option("contextItems").length||!this._fileToolbarHasEffectiveItems();this._generalToolbarVisible!==n&&(this._generalToolbar.option("visible",n),this._fileToolbar.option("visible",!n),this._generalToolbarVisible=n,this.$element().toggleClass(LRe,n),this.$element().toggleClass("dx-filemanager-file-toolbar",!n));var e=this._getVisibleToolbar();this._ensureAvailableCommandsVisible(e),this._checkCompactMode(e)}get _commandManager(){return this.option("commandManager")}};var Bp="dx-filemanager-progress-panel",xJt="".concat(Bp,"-container"),wJt="".concat(Bp,"-title"),SJt="".concat(Bp,"-title-text"),DJt="".concat(Bp,"-close-button"),EJt="".concat(Bp,"-infos-container"),VRe="".concat(Bp,"-separator"),OJt="".concat(Bp,"-info"),TJt="".concat(Bp,"-common"),IJt="".concat(Bp,"-info-with-details"),kJt="".concat(Bp,"-details"),Sv="dx-filemanager-progress-box",MJt="".concat(Sv,"-error"),HRe="".concat(Sv,"-without-close-button"),AJt="".concat(Sv,"-image"),FJt="".concat(Sv,"-wrapper"),PJt="".concat(Sv,"-common"),RJt="".concat(Sv,"-progress-bar"),LJt="".concat(Sv,"-close-button");const VJt=class NJt extends tr{_initMarkup(){super._initMarkup(),this._initActions(),this._operationCount=0,this.$element().addClass(Bp);var n=U("<div>").appendTo(this.$element()),e=U("<div>").addClass(xJt).appendTo(n);this._scrollView=this._createComponent(n,Ih,{scrollByContent:!0,scrollByThumb:!0,showScrollbar:"onScroll"});var i=U("<div>").addClass(wJt).appendTo(e);U("<div>").text(ye.format("dxFileManager-notificationProgressPanelTitle")).addClass(SJt).appendTo(i);var r=U("<div>").addClass(DJt).appendTo(i);this._createComponent(r,To,{icon:"close",stylingMode:"text",onClick:()=>this._raisePanelClosed()}),this._$infosContainer=U("<div>").addClass(EJt).appendTo(e),this._renderEmptyListText()}_getDefaultOptions(){return se(super._getDefaultOptions(),{onOperationClosed:null,onOperationCanceled:null,onOperationItemCanceled:null,onPanelClosed:null})}_initActions(){this._actions={onOperationClosed:this._createActionByOption("onOperationClosed"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled"),onPanelClosed:this._createActionByOption("onPanelClosed")}}_optionChanged(n){var e=n.name;switch(e){case"test":break;case"onOperationClosed":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(n)}}addOperation(n,e,i){this._operationCount?U("<div>").addClass(VRe).prependTo(this._$infosContainer):this._$infosContainer.empty(),this._operationCount++;var r={customCloseHandling:e,allowProgressAutoUpdate:gr(i,!0)},o=U("<div>").addClass(OJt).prependTo(this._$infosContainer);r.$info=o;var a=U("<div>").addClass(TJt).appendTo(o);return r.common=this._createProgressBox(a,{commonText:n,showCloseButton:!0,showCloseButtonAlways:e,onCloseButtonClick:()=>this._closeOperation(r)}),r}addOperationDetails(n,e,i){n.$info.addClass(IJt);var r=U("<div>").addClass(kJt).appendTo(n.$info);n.details=e.map((o,a)=>(o.info=n,this._createDetailsItem(r,o,a,!1,i)))}_createDetailsItem(n,e,i,r,o){var a=U("<div>").appendTo(n);return-1!==i&&a.addClass("dx-card"),this._createProgressBox(a,{commonText:e.commonText,imageUrl:e.imageUrl,skipProgressBox:r,showCloseButton:o,showCloseButtonAlways:o,onCloseButtonClick:()=>this._cancelOperationItem(e,i)})}completeOperationItem(n,e,i){n.allowProgressAutoUpdate&&this.updateOperationItemProgress(n,e,100,i),this._setCloseButtonVisible(n.details[e],!1)}updateOperationItemProgress(n,e,i,r){this.updateOperationCommonProgress(n,r),n.details&&n.details[e].progressBar.option("value",i)}updateOperationCommonProgress(n,e){var i;null===(i=n.common.progressBar)||void 0===i||i.option("value",e)}completeOperation(n,e,i,r){n.completed=!0,n.common.$commonText.text(e),i?this._removeProgressBar(n.common):n.allowProgressAutoUpdate&&this.updateOperationCommonProgress(n,100),r&&this._setProgressBarText(n.common,r),this._setCloseButtonVisible(n.common,!0)}completeSingleOperationWithError(n,e){var i,r=null===(i=n.details)||void 0===i?void 0:i[0];n.completed=!0,this._renderOperationError(r||n.common,e),this._setCloseButtonVisible(n.common,!0),r&&this._setCloseButtonVisible(r,!1)}addOperationDetailsError(n,e,i){var r=n.details[e];this._renderOperationError(r,i),this._setCloseButtonVisible(r,!1)}_renderError(n,e,i){U("<div>").text(i).addClass(MJt).appendTo(n)}_renderEmptyListText(){this._$infosContainer.text(ye.format("dxFileManager-notificationProgressPanelEmptyListText"))}_renderOperationError(n,e){this._removeProgressBar(n),this._renderError(n.$wrapper,n.$commonText,e)}_removeProgressBar(n){n.progressBar&&(n.progressBar.dispose(),n.progressBar.$element().remove(),n.progressBar=null)}_createProgressBox(n,e){n.addClass(Sv),e.showCloseButtonAlways||n.addClass(HRe),e.imageUrl&&Fu(e.imageUrl).addClass(AJt).appendTo(n);var i=U("<div>").addClass(FJt).appendTo(n),r=U("<div>").addClass(PJt).text(e.commonText).appendTo(i),o=null;if(!e.skipProgressBox){var a=U("<div>").addClass(RJt).appendTo(i);o=this._createComponent(a,JZ,{min:0,max:100,width:"100%",validationMessageMode:"always",statusFormat:(u,f)=>this._getStatusString(u,f)})}var s=null;if(e.showCloseButton){var l=U("<div>").addClass(LJt).appendTo(n);s=this._createComponent(l,To,{icon:"dx-filemanager-i dx-filemanager-i-cancel",stylingMode:"text",visible:e.showCloseButtonAlways,onClick:e.onCloseButtonClick})}return{$commonText:r,progressBar:o,$element:n,$wrapper:i,closeButton:s}}_setCloseButtonVisible(n,e){n.closeButton&&(n.$element.toggleClass(HRe,!e),n.closeButton.option("visible",e))}_setProgressBarText(n,e){n.progressBar.option("statusFormat",()=>e)}_closeOperation(n){n.customCloseHandling&&!n.completed?(this._raiseOperationCanceled(n),this._setCloseButtonVisible(n.common,!1),n.details.forEach(e=>this._displayClosedOperationItem(e))):(this._raiseOperationClosed(n),n.$info.next(".".concat(VRe)).remove(),n.$info.remove(),this._operationCount--,this._operationCount||this._renderEmptyListText())}_cancelOperationItem(n,e){this._raiseOperationItemCanceled(n,e),this._displayClosedOperationItem(n.info.details[e])}_displayClosedOperationItem(n){this._setProgressBarText(n,ye.format("dxFileManager-notificationProgressPanelOperationCanceled")),this._setCloseButtonVisible(n,!1)}_getStatusString(n,e){return 1===n?ye.format("Done"):Math.round(100*n)+"%"}_raiseOperationClosed(n){this._actions.onOperationClosed({info:n})}_raiseOperationCanceled(n){this._actions.onOperationCanceled({info:n})}_raiseOperationItemCanceled(n,e){this._actions.onOperationItemCanceled({item:n,itemIndex:e})}_raisePanelClosed(){this._actions.onPanelClosed()}};var Qk="dx-filemanager-progress-box",HJt="".concat(Qk,"-error"),zJt="".concat(Qk,"-image"),UJt="".concat(Qk,"-wrapper"),WJt="".concat(Qk,"-common"),dX="__operationInfoManager";class zRe{constructor(n){var{onActionProgressStatusChanged:e,isActual:i}=n;this._id=(new Ni).toString(),this._isActual=i||!1,this._actionProgressStatus="default",this._raiseActionProgress=e}getId(){return this._id}isActual(){return this._isActual}createErrorDetailsProgressBox(n,e,i){var r=this._createDetailsItem(n,e);this.renderError(r.$wrapper,i)}renderError(n,e){U("<div>").text(e).addClass(HJt).appendTo(n)}isActionProgressStatusDefault(){return"default"===this._actionProgressStatus}_createDetailsItem(n,e){var i=U("<div>").appendTo(n);return this._createProgressBox(i,{commonText:e.commonText,imageUrl:e.imageUrl})}_createProgressBox(n,e){n.addClass(Qk),e.imageUrl&&Fu(e.imageUrl).addClass(zJt).appendTo(n);var i=U("<div>").addClass(UJt).appendTo(n);return{$commonText:U("<div>").addClass(WJt).text(e.commonText).appendTo(i),$element:n,$wrapper:i}}}class GJt extends zRe{addOperation(){return{[dX]:this._id}}addOperationDetails(){}updateOperationItemProgress(){}completeOperationItem(){}completeOperation(){}completeSingleOperationWithError(){}addOperationDetailsError(){}handleDimensionChanged(){return!1}ensureProgressPanelCreated(){}tryHideActionProgress(){this._updateActionProgress("","default")}updateActionProgressStatus(){this._updateActionProgress("","default")}_updateActionProgress(n,e){"default"!==e&&"progress"!==e||(this._actionProgressStatus=e,this._raiseActionProgress(n,e))}hasNoOperations(){return!0}get _operationInProgressCount(){return 0}set _operationInProgressCount(n){}get _failedOperationCount(){return 0}set _failedOperationCount(n){}}class jJt extends zRe{constructor(n){super(n),this._failedOperationCount=0,this._operationInProgressCount=0}addOperation(n,e,i){this._operationInProgressCount++;var r=this._progressPanel.addOperation(n,e,i);return r[dX]=this._id,this._updateActionProgress(n,"progress"),r}addOperationDetails(n,e,i){this._progressPanel.addOperationDetails(n,e,i)}updateOperationItemProgress(n,e,i,r){this._progressPanel.updateOperationItemProgress(n,e,i,r)}completeOperationItem(n,e,i){this._progressPanel.completeOperationItem(n,e,i)}finishOperation(n,e){this._progressPanel.updateOperationCommonProgress(n,e)}completeOperation(n,e,i,r){this._operationInProgressCount--,i&&this._failedOperationCount++,this._progressPanel.completeOperation(n,e,i,r)}completeSingleOperationWithError(n,e){this._progressPanel.completeSingleOperationWithError(n,e.detailErrorText),this._notifyError(e)}addOperationDetailsError(n,e){this._progressPanel.addOperationDetailsError(n,e.itemIndex,e.detailErrorText),this._notifyError(e)}handleDimensionChanged(){return this._progressPanel&&this._progressPanel.$element().detach(),!0}ensureProgressPanelCreated(n,e){if(this._progressPanel)this._progressPanel.$element().appendTo(n);else{var i=U("<div>").appendTo(n),r=this._getProgressPanelComponent();this._progressPanel=new r(i,se({},e,{onOperationClosed:o=>{var{info:a}=o;return this._onProgressPanelOperationClosed(a)}}))}}_getProgressPanelComponent(){return VJt}_onProgressPanelOperationClosed(n){n.hasError&&(this._failedOperationCount--,this.tryHideActionProgress())}tryHideActionProgress(){this.hasNoOperations()&&this._updateActionProgress("","default")}updateActionProgressStatus(n){n&&this._updateActionProgress("",0===this._failedOperationCount?"success":"error")}_notifyError(n){var e=this.hasNoOperations()?"default":"error";this._updateActionProgress(n.commonErrorText,e)}_updateActionProgress(n,e){this._actionProgressStatus=e,this._raiseActionProgress(n,e)}hasNoOperations(){return 0===this._operationInProgressCount&&0===this._failedOperationCount}get _operationInProgressCount(){return this._operationInProgressCountInternal}set _operationInProgressCount(n){this._operationInProgressCountInternal=n}get _failedOperationCount(){return this._failedOperationCountInternal}set _failedOperationCount(n){this._failedOperationCountInternal=n}}var KJt=Fn(),xb="dx-filemanager-notification",URe="".concat(xb,"-drawer"),WRe="".concat(URe,"-panel"),qJt="".concat(xb,"-popup"),YJt="".concat(xb,"-popup-error"),ZJt="".concat(xb,"-common"),XJt="".concat(xb,"-separator"),JJt="".concat(xb,"-details"),QJt="".concat(xb,"-common-no-item");class eQt extends tr{_initMarkup(){super._initMarkup(),this._initActions(),this._isInAdaptiveState=this._isSmallScreen(),this._managerMap={},this._notificationManagerStubId=null,this._setNotificationManager();var n=this.option("progressPanelContainer"),e=U("<div>").addClass(URe).appendTo(n);U("<div>").addClass(WRe).appendTo(e);var i=se({opened:!1,position:"right",template:a=>this._ensureProgressPanelCreated(a)},this._getProgressDrawerAdaptiveOptions());this._progressDrawer=this._createComponent(e,rX,i);var r=e.find(".".concat(WRe)).first(),o=this.option("contentTemplate");Yt(o)&&o(r,this)}_setNotificationManager(n){if(n=se({onActionProgressStatusChanged:this._raiseActionProgress.bind(this)},n),!this._notificationManagerStubId){var e=new GJt(n);this._notificationManagerStubId=e.getId(),this._managerMap[this._notificationManagerStubId]=e}if(!this._isProgressDrawerDisabled()){var i=this._getProgressManagerComponent();n.isActual=!0;var r=new i(n);this._managerMap[r.getId()]=r}}_getNotificationManager(n){var e=n?.[dX]||this._getActualNotificationManagerId();return this._managerMap[e]||this._managerMap[this._notificationManagerStubId]}_clearManagerMap(){var n=this._managerMap[this._notificationManagerStubId];delete this._managerMap,this._managerMap={[this._notificationManagerStubId]:n}}_getActualNotificationManagerId(){return Object.keys(this._managerMap).filter(n=>this._managerMap[n].isActual())[0]}tryShowProgressPanel(){var n=new et,e=this._getNotificationManager();return e.isActionProgressStatusDefault()||this._isProgressDrawerOpened()||this._isProgressDrawerDisabled()?n.resolve().promise():(setTimeout(()=>{this._progressDrawer.show().done(n.resolve),this._hidePopup(),e.tryHideActionProgress()}),n.promise())}addOperation(n,e,i){return this._getNotificationManager().addOperation(n,e,i)}addOperationDetails(n,e,i){this._getNotificationManager(n).addOperationDetails(n,e,i)}updateOperationItemProgress(n,e,i,r){this._getNotificationManager(n).updateOperationItemProgress(n,e,i,r)}completeOperationItem(n,e,i){this._getNotificationManager(n).completeOperationItem(n,e,i)}finishOperation(n,e){this._getNotificationManager(n).finishOperation(n,e)}completeOperation(n,e,i,r){var o=this._getNotificationManager(n);i||this._showPopup(e),o.completeOperation(n,e,i,r),this._isProgressDrawerOpened()&&o.hasNoOperations()?o.tryHideActionProgress():o.updateActionProgressStatus(n)}completeSingleOperationWithError(n,e){this._getNotificationManager(n).completeSingleOperationWithError(n,e),this._showPopupError(e)}addOperationDetailsError(n,e){this._getNotificationManager(n).addOperationDetailsError(n,e),this._showPopupError(e)}_hideProgressPanel(){setTimeout(()=>this._progressDrawer.hide())}_isSmallScreen(){return!!Rn()&&wn(KJt)<=1e3}_dimensionChanged(n){n&&"height"===n||this._checkAdaptiveState()}_checkAdaptiveState(){var n=this._isInAdaptiveState;if(this._isInAdaptiveState=this._isSmallScreen(),n!==this._isInAdaptiveState&&this._progressDrawer&&this._getNotificationManager().handleDimensionChanged()){var i=this._getProgressDrawerAdaptiveOptions();this._progressDrawer.option(i)}}_getProgressDrawerAdaptiveOptions(){return this._isInAdaptiveState?{openedStateMode:"overlap",shading:!0,hideOnOutsideClick:!0}:{openedStateMode:"shrink",shading:!1,hideOnOutsideClick:!1}}_ensureProgressPanelCreated(n){this._getNotificationManager().ensureProgressPanelCreated(n,{onOperationCanceled:i=>{var{info:r}=i;return this._raiseOperationCanceled(r)},onOperationItemCanceled:i=>{var{item:r,itemIndex:o}=i;return this._raiseOperationItemCanceled(r,o)},onPanelClosed:()=>this._hideProgressPanel()})}_getProgressManagerComponent(){return jJt}_isProgressDrawerDisabled(){return!this.option("showProgressPanel")}_isProgressDrawerOpened(){return this._progressDrawer.option("opened")}_hidePopup(n){!this.option("showNotificationPopup")&&!n||this._getNotificationPopup().hide()}_showPopup(n,e){this._isProgressDrawerOpened()||!this.option("showNotificationPopup")||(this._getNotificationPopup().$wrapper().toggleClass(YJt,!!e),this._getNotificationPopup().option("contentTemplate",n),this._getNotificationPopup().option("visible")||this._getNotificationPopup().show())}_showPopupError(n){if(this.option("showNotificationPopup")){var e=this._getNotificationManager(),i=U("<div>"),r=U("<div>").addClass(ZJt).text(n.commonErrorText),o=U("<div>").addClass(XJt);U("<div>").appendTo(o);var a=U("<div>").addClass(JJt);n.item?e.createErrorDetailsProgressBox(a,n.item,n.detailErrorText):(r.addClass(QJt),e.renderError(a,n.detailErrorText)),i.append(r,o,a),this._showPopup(i,!0)}}_getNotificationPopup(){if(!this._notificationPopup){var n=U("<div>").appendTo(this.$element());this._notificationPopup=this._createComponent(n,Ss,{container:this.$element(),width:"auto",height:"auto",showTitle:!1,dragEnabled:!1,shading:!1,visible:!1,hideOnOutsideClick:!0,animation:{duration:0},position:{my:"right top",at:"right top",of:this.option("positionTarget"),offset:"-10 -5"},_wrapperClassExternal:qJt})}return this._notificationPopup}_raiseActionProgress(n,e){this._actions.onActionProgress({message:n,status:e})}_raiseOperationCanceled(n){this._actions.onOperationCanceled({info:n})}_raiseOperationItemCanceled(n,e){this._actions.onOperationItemCanceled({item:n,itemIndex:e})}_initActions(){this._actions={onActionProgress:this._createActionByOption("onActionProgress"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled")}}_getDefaultOptions(){return se(super._getDefaultOptions(),{progressPanelContainer:null,contentTemplate:null,onActionProgress:null,onOperationCanceled:null,onOperationItemCanceled:null,showProgressPanel:!0,showNotificationPopup:!0})}_optionChanged(n){var e=n.name;switch(e){case"progressPanelContainer":case"contentTemplate":break;case"showProgressPanel":this._setNotificationManager(),this._getNotificationManager().updateActionProgressStatus(),n.value||(this._hideProgressPanel(),this._clearManagerMap()),this._progressDrawer.repaint();break;case"showNotificationPopup":n.value||this._hidePopup(!0);break;case"onActionProgress":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(n)}}}const cX=class iQt extends tr{_initMarkup(){var n;super._initMarkup(),this._createOnClosedAction();var e=this._getDialogOptions(),i=U("<div>").appendTo(this.$element()),r={showTitle:!0,title:e.title,visible:!1,hideOnOutsideClick:!0,contentTemplate:this._createContentTemplate.bind(this),toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:e.buttonText,onClick:this._applyDialogChanges.bind(this)}},{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:ye.format("dxFileManager-dialogButtonCancel"),onClick:this._closeDialog.bind(this)}}],onInitialized:o=>{var{component:a}=o;a.registerKeyHandler("enter",this._applyDialogChanges.bind(this))},onHidden:this._onPopupHidden.bind(this),onShown:this._onPopupShown.bind(this),_wrapperClassExternal:"".concat("dx-filemanager-dialog-popup"," ").concat(null!==(n=e.popupCssClass)&&void 0!==n?n:"")};Z(e.height)&&(r.height=e.height),Z(e.maxHeight)&&(r.maxHeight=e.maxHeight),this._popup=this._createComponent(i,Ss,r)}show(){this._dialogResult=null,this._popup.show()}_getDialogOptions(){return{title:"Title",buttonText:"ButtonText",contentCssClass:"",popupCssClass:""}}_createContentTemplate(n){this._$contentElement=U("<div>").appendTo(n).addClass("dx-filemanager-dialog");var e=this._getDialogOptions().contentCssClass;e&&this._$contentElement.addClass(e)}_getDialogResult(){return null}_applyDialogChanges(){var n=this._getDialogResult();n&&(this._dialogResult=n,this._closeDialog())}_closeDialog(){this._popup.hide()}_onPopupHidden(){this._onClosedAction({dialogResult:this._dialogResult})}_onPopupShown(){}_createOnClosedAction(){this._onClosedAction=this._createActionByOption("onClosed")}_setTitle(n){this._popup.option("title",n)}_setApplyButtonOptions(n){this._popup.option("toolbarItems[0].options",n)}_getDefaultOptions(){return se(super._getDefaultOptions(),{onClosed:null})}_optionChanged(n){"onClosed"===n.name?this._createOnPathChangedAction():super._optionChanged(n)}},GRe=class aQt extends cX{show(n){n=n||"",this._nameTextBox?this._nameTextBox.option("value",n):this._initialNameValue=n,super.show()}_onPopupShown(){if(this._nameTextBox){var n=this._nameTextBox._input();n.length&&n[0].select(),this._nameTextBox.focus()}}_getDialogOptions(){return se(super._getDialogOptions(),{title:this.option("title"),buttonText:this.option("buttonText"),contentCssClass:"dx-filemanager-dialog-name-editor",popupCssClass:"dx-filemanager-dialog-name-editor-popup"})}_createContentTemplate(n){super._createContentTemplate(n),this._nameTextBox=this._createComponent(U("<div>"),Th,{value:this._initialNameValue,onEnterKey:()=>this._hasCompositionJustEnded&&this._applyDialogChanges(),onKeyDown:e=>this._checkCompositionEnded(e)}),this._$contentElement.append(this._nameTextBox.$element())}_checkCompositionEnded(n){var{event:e}=n;this._hasCompositionJustEnded=229!==e.which}_getDialogResult(){var n=this._nameTextBox.option("value");return n?{name:n}:null}_getDefaultOptions(){return se(super._getDefaultOptions(),{title:"",buttonText:""})}},dQt=class uQt extends cX{show(){var n;this._setSelectedDirInfo(null),null===(n=this._filesTreeView)||void 0===n||n.refresh(),super.show()}switchToCopyDialog(n){this._targetItemInfos=n,this._setTitle(ye.format("dxFileManager-dialogDirectoryChooserCopyTitle")),this._setApplyButtonOptions({text:ye.format("dxFileManager-dialogDirectoryChooserCopyButtonText"),disabled:!0})}switchToMoveDialog(n){this._targetItemInfos=n,this._setTitle(ye.format("dxFileManager-dialogDirectoryChooserMoveTitle")),this._setApplyButtonOptions({text:ye.format("dxFileManager-dialogDirectoryChooserMoveButtonText"),disabled:!0})}_getDialogOptions(){return se(super._getDialogOptions(),{contentCssClass:"dx-filemanager-dialog-folder-chooser",popupCssClass:"dx-filemanager-dialog-folder-chooser-popup"})}_createContentTemplate(n){super._createContentTemplate(n),this._filesTreeView=this._createComponent(U("<div>"),ARe,{getDirectories:this.option("getDirectories"),getCurrentDirectory:()=>this._getDialogSelectedDirectory(),onDirectoryClick:e=>this._onFilesTreeViewDirectoryClick(e),onFilesTreeViewContentReady:()=>this._toggleUnavailableLocationsDisabled(!0)}),this._$contentElement.append(this._filesTreeView.$element())}_getDialogResult(){var n=this._getDialogSelectedDirectory();return n&&{folder:n}}_getDefaultOptions(){return se(super._getDefaultOptions(),{getItems:null})}_getDialogSelectedDirectory(){return this._selectedDirectoryInfo}_onFilesTreeViewDirectoryClick(n){var{itemData:e}=n;this._setSelectedDirInfo(e),this._filesTreeView.updateCurrentDirectory()}_setSelectedDirInfo(n){this._selectedDirectoryInfo=n,this._setApplyButtonOptions({disabled:!n})}_onPopupShown(){this._toggleUnavailableLocationsDisabled(!0),super._onPopupShown()}_onPopupHidden(){this._toggleUnavailableLocationsDisabled(!1),super._onPopupHidden()}_toggleUnavailableLocationsDisabled(n){if(this._filesTreeView){var e=this._getLocationsToProcess(n);this._filesTreeView.toggleDirectoryExpandedStateRecursive(e.locationsToExpand[0],n).then(()=>this._filesTreeView.toggleDirectoryLineExpandedState(e.locationsToCollapse,!n).then(()=>e.locationKeysToDisable.forEach(i=>this._filesTreeView.toggleNodeDisabledState(i,n))))}}_getLocationsToProcess(n){var e={},i={};this._targetItemInfos.forEach(a=>{a.parentDirectory&&(e[a.parentDirectory.getInternalKey()]=a.parentDirectory),a.fileItem.isDirectory&&(i[a.getInternalKey()]=a)});var r=xRe(e),o=xRe(i);return{locationsToExpand:n?r.values:[],locationsToCollapse:n?o.values:[],locationKeysToDisable:r.keys.concat(...o.keys)}}},gQt=class pQt extends cX{show(n){var{itemName:e,itemCount:i}=n,r=1===i?ye.format("dxFileManager-dialogDeleteItemSingleItemConfirmation",e):ye.format("dxFileManager-dialogDeleteItemMultipleItemsConfirmation",i);this._$text?this._$text.text(r):this._initialText=r,super.show()}_getDialogOptions(){return se(super._getDialogOptions(),{title:ye.format("dxFileManager-dialogDeleteItemTitle"),buttonText:ye.format("dxFileManager-dialogDeleteItemButtonText"),contentCssClass:"dx-filemanager-dialog-delete-item",popupCssClass:"dx-filemanager-dialog-delete-item-popup",height:"auto",maxHeight:"80vh"})}_createContentTemplate(n){super._createContentTemplate(n),this._$text=U("<div>").text(this._initialText).appendTo(this._$contentElement),this._createComponent(this._$contentElement,Ih,{width:"100%",height:"100%"})}_getDialogResult(){return{}}},CQt=class yQt extends tr{_initMarkup(){this._initActions(),this.$element().addClass("dx-filemanager-fileuploader"),this._uploaderInfos=[],this._createInternalFileUploader(),this._createDropZonePlaceholder(),this._setDropZonePlaceholderVisible(!1),super._initMarkup()}_createInternalFileUploader(){var n=this._getController().chunkSize,e=U("<div>").appendTo(this.$element()),i=this._createComponent(e,Zk,{name:"file",multiple:!0,showFileList:!1,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,labelText:"",readyToUploadMessage:"",accept:"*",chunkSize:n,dropZone:this.option("dropZone"),onValueChanged:o=>this._onFileUploaderValueChanged(o),onProgress:o=>this._onFileUploaderProgress(o),onUploaded:o=>this._onFileUploaderUploaded(o),onFilesUploaded:o=>this._onFileUploaderAllFilesUploaded(o),onUploadAborted:o=>this._onFileUploaderUploadAborted(o),onUploadError:o=>this._onFileUploaderUploadError(o),onDropZoneEnter:()=>this._setDropZonePlaceholderVisible(!0),onDropZoneLeave:()=>this._setDropZonePlaceholderVisible(!1)});i.option({uploadChunk:(o,a)=>this._fileUploaderUploadChunk(i,o,a),abortUpload:(o,a)=>this._fileUploaderAbortUpload(i,o,a)}),i._shouldRaiseDragLeaveBase=i._shouldRaiseDragLeave,i._shouldRaiseDragLeave=o=>this._shouldRaiseDragLeave(o,i),this._uploaderInfos.push({fileUploader:i})}tryUpload(){var n=this._findAndUpdateAvailableUploaderInfo();n&&n.fileUploader._selectButtonClickHandler()}cancelUpload(n){this._cancelUpload(n)}cancelFileUpload(n,e){this._cancelUpload(n,e)}_cancelUpload(n,e){var{fileUploader:i}=this._findUploaderInfoBySessionId(n);i.abortUpload(e)}_fileUploaderUploadChunk(n,e,i){var{session:r,fileIndex:o}=this._findSessionByFile(n,e),a=r.controller;return i.fileIndex=o,a.uploadFileChunk(e,i)}_fileUploaderAbortUpload(n,e,i){var{session:r,fileIndex:o}=this._findSessionByFile(n,e),a=r.controller;return i.fileIndex=o,a.abortFileUpload(e,i)}_onFileUploaderValueChanged(n){var{component:e,value:i}=n;if(0!==i.length){var r=i.slice(),o=this._findUploaderInfo(e);this._uploadFiles(o,r),setTimeout(()=>{this._findAndUpdateAvailableUploaderInfo()||this._createInternalFileUploader()})}}_onFileUploaderProgress(n){var{component:e,file:i,bytesLoaded:r,bytesTotal:o}=n,{session:a,fileIndex:s}=this._findSessionByFile(e,i),l=0!==o?r/o:1,u=e.option("progress")/100;this._raiseUploadProgress({sessionId:a.id,fileIndex:s,commonValue:u,fileValue:l})}_onFileUploaderAllFilesUploaded(n){var{component:e}=n,{session:i}=this._findSessionByFile(e,e._files[0].value);this._raiseUploadFinished({sessionId:i.id,commonValue:e.option("progress")/100})}_onFileUploaderUploaded(n){var{component:e,file:i}=n;this._getDeferredForFile(e,i).resolve()}_onFileUploaderUploadAborted(n){var{component:e,file:i}=n;this._getDeferredForFile(e,i).resolve({canceled:!0})}_onFileUploaderUploadError(n){var{component:e,file:i,error:r}=n;this._getDeferredForFile(e,i).reject(r)}_createDropZonePlaceholder(){this._$dropZonePlaceholder=U("<div>").addClass("dx-filemanager-fileuploader-dropzone-placeholder").appendTo(this.option("dropZonePlaceholderContainer"))}_adjustDropZonePlaceholder(){var n=this.option("dropZone");if(Rn()&&0!==n.length){var e=parseFloat(this._$dropZonePlaceholder.css("borderTopWidth")),i=parseFloat(this._$dropZonePlaceholder.css("borderLeftWidth")),r=this.option("dropZonePlaceholderContainer"),o=parseFloat(r.css("borderBottomWidth")),a=parseFloat(r.css("borderLeftWidth")),s=vw(r),l=r.offset(),u=n.offset();this._$dropZonePlaceholder.css({top:u.top-l.top-s-o,left:u.left-l.left-a}),xo(this._$dropZonePlaceholder,n.get(0).offsetHeight-2*e),oa(this._$dropZonePlaceholder,n.get(0).offsetWidth-2*i)}}_setDropZonePlaceholderVisible(n){n?(this._adjustDropZonePlaceholder(),this._$dropZonePlaceholder.css("display","")):this._$dropZonePlaceholder.css("display","none")}_shouldRaiseDragLeave(n,e){return e.isMouseOverElement(n,this.option("splitterElement"))||e._shouldRaiseDragLeaveBase(n,!0)}_uploadFiles(n,e){this._setDropZonePlaceholderVisible(!1);var i=(new Ni).toString(),r=this._getController(),o=e.map(()=>new et);return n.session={id:i,controller:r,files:e,deferreds:o},this._raiseUploadSessionStarted({sessionId:i,deferreds:o,files:e}),aX(o).always(()=>setTimeout(()=>{n.fileUploader.reset(),n.session=null}))}_getDeferredForFile(n,e){var{session:i,fileIndex:r}=this._findSessionByFile(n,e);return i.deferreds[r]}_findSessionByFile(n,e){var r=this._findUploaderInfo(n).session,o=r.files.indexOf(e);return{session:r,fileIndex:o}}_findUploaderInfoBySessionId(n){for(var e=0;e<this._uploaderInfos.length;e++){var i=this._uploaderInfos[e],r=i.session;if(r&&r.id===n)return i}return null}_findAndUpdateAvailableUploaderInfo(){for(var n,e=null,i=0;i<this._uploaderInfos.length;i++){var r=this._uploaderInfos[i];r.fileUploader.option("dropZone",""),!e&&!r.session&&(e=r)}return null===(n=e)||void 0===n||n.fileUploader.option("dropZone",this.option("dropZone")),e}_findUploaderInfo(n){for(var e=0;e<this._uploaderInfos.length;e++){var i=this._uploaderInfos[e];if(i.fileUploader===n)return i}return null}_getController(){return this.option("getController")()}_raiseUploadSessionStarted(n){this._actions.onUploadSessionStarted({sessionInfo:n})}_raiseUploadProgress(n){this._actions.onUploadProgress(n)}_raiseUploadFinished(n){this._actions.onUploadFinished(n)}_initActions(){this._actions={onUploadSessionStarted:this._createActionByOption("onUploadSessionStarted"),onUploadProgress:this._createActionByOption("onUploadProgress"),onUploadFinished:this._createActionByOption("onUploadFinished")}}_getDefaultOptions(){return se(super._getDefaultOptions(),{getController:null,onUploadSessionStarted:null,onUploadProgress:null,onUploadFinished:null,splitterElement:null})}_optionChanged(n){var e=n.name;switch(e){case"getController":this.repaint();break;case"onUploadSessionStarted":case"onUploadProgress":case"onUploadFinished":this._actions[e]=this._createActionByOption(e);break;case"dropZone":this._findAndUpdateAvailableUploaderInfo(),this._adjustDropZonePlaceholder();break;case"dropZonePlaceholderContainer":this._$dropZonePlaceholder.detach(),this._$dropZonePlaceholder.appendTo(n.value);break;case"splitterElement":break;default:super._optionChanged(n)}}};class wQt{constructor(n,e,i){this._actionMetadata=n,this._itemInfos=e,this._onlyFiles=!this._actionMetadata.affectsAllItems&&this._itemInfos.every(r=>!r.fileItem.isDirectory),this._items=this._itemInfos.map(r=>r.fileItem),this._multipleItems=this._items.length>1,this._location=i.getDisplayName(),this._singleRequest=!0,this._completedItems=[],this._commonProgress=0,this._errorState={failedCount:0},this._itemNewName=""}completeOperationItem(n){this._singleRequest?this._completedItems=[...this._items]:this._completedItems.push(this._items[n]),this._actionMetadata.allowItemProgress||(this._commonProgress=this._completedItems.length/this._items.length*100)}processSingleRequestError(n){this._errorState.failedCount=1,this._errorState.commonErrorText=this._multipleItems?this._actionMetadata.commonErrorMessage:this._actionMetadata.singleItemErrorMessage;var e=this._multipleItems?-1:1,i=this.getItemForSingleRequestError();this._setCurrentDetailError(e,i,n)}processMultipleRequestError(n,e){this._errorState.failedCount++,this._errorState.commonErrorText=this._errorState.failedCount>1?Er(this._actionMetadata.multipleItemsErrorMessage,this._errorState.failedCount):this._actionMetadata.singleItemErrorMessage;var i=this.getItemForMultipleRequestError(n);this._setCurrentDetailError(n,i,e)}hasModifiedItems(){return this._hasCompletedItems()||this._singleRequest&&!this.success&&this._multipleItems}getItemForSingleRequestError(){return this._multipleItems?null:this._itemInfos[0]}getItemForMultipleRequestError(n){return this._itemInfos[n]}getItemName(n,e){var r=(this.singleRequest?this.getItemForSingleRequestError():this.getItemForMultipleRequestError(e))?.fileItem.name;return this.itemNewName&&this._isItemExistsErrorCode(n)&&(r=this.itemNewName),r}_isItemExistsErrorCode(n){return n===Ku_DirectoryExists||n===Ku_FileExists}_setCurrentDetailError(n,e,i){this._errorState.currentDetailError={itemIndex:n,itemInfo:e,errorText:i}}_hasCompletedItems(){return this._completedItems.length>0}get actionMetadata(){return this._actionMetadata}get itemInfos(){return this._itemInfos}get itemNewName(){return this._itemNewName}set itemNewName(n){this._itemNewName=n}get errorState(){return this._errorState}get singleRequest(){return this._singleRequest}set singleRequest(n){this._singleRequest=n}get multipleItems(){return this._multipleItems}get onlyFiles(){return this._onlyFiles}get processingMessage(){return this._multipleItems?Er(this._actionMetadata.multipleItemsProcessingMessage,this._items.length,this._location):Er(this._actionMetadata.singleItemProcessingMessage,this._location)}get successMessage(){return this._hasCompletedItems()?this._multipleItems?Er(this._actionMetadata.multipleItemsSuccessMessage,this._completedItems.length,this._location):Er(this._actionMetadata.singleItemSuccessMessage,this._location):this._multipleItems?Er(this._actionMetadata.multipleItemsErrorMessage,this._items.length):this._actionMetadata.singleItemErrorMessage}get completionMessage(){return this.success?this.successMessage:this.errorState.commonErrorText}get statusText(){return this.success&&!this._hasCompletedItems()?this._actionMetadata.canceledMessage:void 0}get commonProgress(){return this._commonProgress}get success(){return!this._errorState.failedCount}}const SQt=class xQt extends tr{_initMarkup(){super._initMarkup(),this._initActions(),this._controller=this.option("controller"),this._controller.on("EditActionStarting",this._onEditActionStarting.bind(this)),this._controller.on("EditActionResultAcquired",this._onEditActionResultAcquired.bind(this)),this._controller.on("EditActionItemError",this._onEditActionItemError.bind(this)),this._controller.on("EditActionError",this._onEditActionError.bind(this)),this._controller.on("CompleteEditActionItem",this._onCompleteEditActionItem.bind(this)),this._controller.on("CompleteEditAction",this._onCompleteEditAction.bind(this)),this._model=this.option("model"),this._uploadOperationInfoMap={},this._dialogManager=new class fQt{constructor(n,e){this._$element=n,this._options=e;var i={onClosed:this._options.onDialogClosed,rtlEnabled:this._options.rtlEnabled},r=U("<div>").appendTo(this._$element);this._chooseDirectoryDialog=new dQt(r,se(i,this._options.chooseDirectoryDialog));var o=U("<div>").appendTo(this._$element);this._renameItemDialog=new GRe(o,se(i,{title:ye.format("dxFileManager-dialogRenameItemTitle"),buttonText:ye.format("dxFileManager-dialogRenameItemButtonText")}));var a=U("<div>").appendTo(this._$element);this._createItemDialog=new GRe(a,se(i,{title:ye.format("dxFileManager-dialogCreateDirectoryTitle"),buttonText:ye.format("dxFileManager-dialogCreateDirectoryButtonText")}));var s=U("<div>").appendTo(this._$element);this._deleteItemDialog=new gQt(s,i)}getCopyDialog(n){return this._chooseDirectoryDialog.switchToCopyDialog(n),this._chooseDirectoryDialog}getMoveDialog(n){return this._chooseDirectoryDialog.switchToMoveDialog(n),this._chooseDirectoryDialog}getRenameItemDialog(){return this._renameItemDialog}getCreateItemDialog(){return this._createItemDialog}getDeleteItemDialog(){return this._deleteItemDialog}updateDialogRtl(n){[this._chooseDirectoryDialog,this._renameItemDialog,this._createItemDialog,this._deleteItemDialog].forEach(e=>{e.option("rtlEnabled",n)})}}(this.$element(),{chooseDirectoryDialog:{provider:this._controller._fileProvider,getDirectories:this._controller.getDirectories.bind(this._controller),getCurrentDirectory:this._controller.getCurrentDirectory.bind(this._controller)},rtlEnabled:this.option("rtlEnabled"),onDialogClosed:this._onDialogClosed.bind(this)}),this._fileUploader=this._createFileUploader();var n=this.option("notificationControl");n&&this._initNotificationControl(n),this._createMetadataMap()}_initNotificationControl(n){this._notificationControl=n,this._notificationControl.option({onOperationCanceled:e=>{var{info:i}=e;return this._onCancelUploadSession(i)},onOperationItemCanceled:e=>{var{item:i,itemIndex:r}=e;return this._onCancelFileUpload(i,r)}})}_getFileUploaderComponent(){return CQt}_createFileUploader(){var n=U("<div>").appendTo(this.$element());return this._createComponent(n,this._getFileUploaderComponent(),{getController:this._getFileUploaderController.bind(this),dropZonePlaceholderContainer:this.option("uploadDropZonePlaceholderContainer"),onUploadSessionStarted:e=>this._onUploadSessionStarted(e),onUploadProgress:e=>this._onUploadProgress(e),onUploadFinished:e=>this._onUploadFinished(e)})}setUploaderDropZone(n){this._fileUploader.option("dropZone",n)}setUploaderSplitterElement(n){this._fileUploader.option("splitterElement",n)}_getFileUploaderController(){var n=this.uploadDirectoryInfo.fileItem;return{chunkSize:this._controller.getFileUploadChunkSize(),uploadFileChunk:(e,i)=>this._controller.uploadFileChunk(e,i,n),abortFileUpload:(e,i)=>this._controller.abortFileUpload(e,i,n)}}_createMetadataMap(){this._metadataMap={create:{action:n=>this._tryCreate(n),affectsAllItems:!0,singleItemProcessingMessage:ye.format("dxFileManager-editingCreateSingleItemProcessingMessage"),singleItemSuccessMessage:ye.format("dxFileManager-editingCreateSingleItemSuccessMessage"),singleItemErrorMessage:ye.format("dxFileManager-editingCreateSingleItemErrorMessage"),commonErrorMessage:ye.format("dxFileManager-editingCreateCommonErrorMessage")},rename:{action:n=>this._tryRename(n),singleItemProcessingMessage:ye.format("dxFileManager-editingRenameSingleItemProcessingMessage"),singleItemSuccessMessage:ye.format("dxFileManager-editingRenameSingleItemSuccessMessage"),singleItemErrorMessage:ye.format("dxFileManager-editingRenameSingleItemErrorMessage"),commonErrorMessage:ye.format("dxFileManager-editingRenameCommonErrorMessage")},delete:{action:n=>this._tryDelete(n),singleItemProcessingMessage:ye.format("dxFileManager-editingDeleteSingleItemProcessingMessage"),multipleItemsProcessingMessage:ye.format("dxFileManager-editingDeleteMultipleItemsProcessingMessage"),singleItemSuccessMessage:ye.format("dxFileManager-editingDeleteSingleItemSuccessMessage"),multipleItemsSuccessMessage:ye.format("dxFileManager-editingDeleteMultipleItemsSuccessMessage"),singleItemErrorMessage:ye.format("dxFileManager-editingDeleteSingleItemErrorMessage"),multipleItemsErrorMessage:ye.format("dxFileManager-editingDeleteMultipleItemsErrorMessage"),commonErrorMessage:ye.format("dxFileManager-editingDeleteCommonErrorMessage")},move:{action:n=>this._tryMove(n),singleItemProcessingMessage:ye.format("dxFileManager-editingMoveSingleItemProcessingMessage"),multipleItemsProcessingMessage:ye.format("dxFileManager-editingMoveMultipleItemsProcessingMessage"),singleItemSuccessMessage:ye.format("dxFileManager-editingMoveSingleItemSuccessMessage"),multipleItemsSuccessMessage:ye.format("dxFileManager-editingMoveMultipleItemsSuccessMessage"),singleItemErrorMessage:ye.format("dxFileManager-editingMoveSingleItemErrorMessage"),multipleItemsErrorMessage:ye.format("dxFileManager-editingMoveMultipleItemsErrorMessage"),commonErrorMessage:ye.format("dxFileManager-editingMoveCommonErrorMessage")},copy:{action:n=>this._tryCopy(n),singleItemProcessingMessage:ye.format("dxFileManager-editingCopySingleItemProcessingMessage"),multipleItemsProcessingMessage:ye.format("dxFileManager-editingCopyMultipleItemsProcessingMessage"),singleItemSuccessMessage:ye.format("dxFileManager-editingCopySingleItemSuccessMessage"),multipleItemsSuccessMessage:ye.format("dxFileManager-editingCopyMultipleItemsSuccessMessage"),singleItemErrorMessage:ye.format("dxFileManager-editingCopySingleItemErrorMessage"),multipleItemsErrorMessage:ye.format("dxFileManager-editingCopyMultipleItemsErrorMessage"),commonErrorMessage:ye.format("dxFileManager-editingCopyCommonErrorMessage")},upload:{action:n=>this._tryUpload(n),allowCancel:!0,allowItemProgress:!0,singleItemProcessingMessage:ye.format("dxFileManager-editingUploadSingleItemProcessingMessage"),multipleItemsProcessingMessage:ye.format("dxFileManager-editingUploadMultipleItemsProcessingMessage"),singleItemSuccessMessage:ye.format("dxFileManager-editingUploadSingleItemSuccessMessage"),multipleItemsSuccessMessage:ye.format("dxFileManager-editingUploadMultipleItemsSuccessMessage"),singleItemErrorMessage:ye.format("dxFileManager-editingUploadSingleItemErrorMessage"),multipleItemsErrorMessage:ye.format("dxFileManager-editingUploadMultipleItemsErrorMessage"),canceledMessage:ye.format("dxFileManager-editingUploadCanceledMessage")},download:{action:n=>this._download(n),singleItemProcessingMessage:"",multipleItemsProcessingMessage:"",singleItemErrorMessage:ye.format("dxFileManager-editingDownloadSingleItemErrorMessage"),multipleItemsErrorMessage:ye.format("dxFileManager-editingDownloadMultipleItemsErrorMessage")},getItemContent:{action:n=>this._getItemContent(n)},getItems:{singleItemProcessingMessage:"",singleItemErrorMessage:ye.format("dxFileManager-errorDirectoryOpenFailed"),commonErrorMessage:ye.format("dxFileManager-errorDirectoryOpenFailed")}}}getCommandActions(){var n={};return we(this._metadataMap,e=>{Object.prototype.hasOwnProperty.call(this._metadataMap,e)&&(n[e]=i=>this._executeAction(e,i))}),n}_executeAction(n,e){var i=this._metadataMap[n];return i?i.action(e):null}_onCancelUploadSession(n){this._fileUploader.cancelUpload(n.uploadSessionId)}_onCancelFileUpload(n,e){this._fileUploader.cancelFileUpload(n.info.uploadSessionId,e)}_onUploadProgress(n){var{sessionId:e,fileIndex:i,commonValue:r,fileValue:o}=n,{operationInfo:a}=this._uploadOperationInfoMap[e];this._notificationControl.updateOperationItemProgress(a,i,100*o,100*r)}_onUploadFinished(n){var{sessionId:e,commonValue:i}=n,{operationInfo:r}=this._uploadOperationInfoMap[e];this._notificationControl.finishOperation(r,100*i),this._scheduleUploadSessionDisposal(e,"uploader")}_onUploadSessionStarted(n){var{sessionInfo:e}=n;this._controller.processUploadSession(e,this.uploadDirectoryInfo)}_onEditActionStarting(n){var e=this._metadataMap[n.name],i=new wQt(e,n.itemInfos,n.directory),r=this._notificationControl.addOperation(i.processingMessage,e.allowCancel,!e.allowItemProgress);switch(se(n.customData,{context:i,operationInfo:r}),n.name){case"upload":var o=n.customData.sessionInfo.sessionId;r.uploadSessionId=o,this._uploadOperationInfoMap[o]={operationInfo:r};break;case"rename":n.customData.context.itemNewName=n.customData.itemNewName}}_onEditActionResultAcquired(n){var{context:e,operationInfo:i}=n.customData;e.singleRequest=n.singleRequest;var r=e.itemInfos.map(o=>this._getItemProgressDisplayInfo(o));this._notificationControl.addOperationDetails(i,r,e.actionMetadata.allowCancel)}_onEditActionError(n,e){var{context:i,operationInfo:r}=n.customData;i.singleRequest=n.singleRequest,this._handleActionError(r,i,e),this._completeAction(r,i)}_onEditActionItemError(n,e){var{context:i,operationInfo:r}=n.customData;this._handleActionError(r,i,e)}_onCompleteEditActionItem(n,e){var{context:i,operationInfo:r}=n.customData;(!e.result||!e.result.canceled)&&(i.completeOperationItem(e.index),this._notificationControl.completeOperationItem(r,e.index,i.commonProgress))}_onCompleteEditAction(n){var{context:e,operationInfo:i}=n.customData;this._completeAction(i,e),"upload"===n.name&&this._scheduleUploadSessionDisposal(n.customData.sessionInfo.sessionId,"controller")}_scheduleUploadSessionDisposal(n,e){Z(this._uploadOperationInfoMap[n].requester)&&this._uploadOperationInfoMap[n].requester!==e?delete this._uploadOperationInfoMap[n]:this._uploadOperationInfoMap[n].requester=e}_tryCreate(n){var e=n&&n[0]||this._getCurrentDirectory(),i=ye.format("dxFileManager-newDirectoryName");return this._showDialog(this._dialogManager.getCreateItemDialog(),i).then(r=>{var{name:o}=r;return this._controller.createDirectory(e,o)})}_tryRename(n){var e=n&&n[0]||this._model.getMultipleSelectedItems()[0];return e?this._showDialog(this._dialogManager.getRenameItemDialog(),e.fileItem.name).then(i=>{var{name:r}=i;return this._controller.renameItem(e,r)}):(new et).reject().promise()}_tryDelete(n){if(0===(n=n||this._model.getMultipleSelectedItems()).length)return(new et).reject().promise();var e=n[0].fileItem.name,i=n.length;return this._showDialog(this._dialogManager.getDeleteItemDialog(),{itemName:e,itemCount:i}).then(()=>this._controller.deleteItems(n))}_tryMove(n){return 0===(n=n||this._model.getMultipleSelectedItems()).length?(new et).reject().promise():this._showDialog(this._dialogManager.getMoveDialog(n)).then(e=>{var{folder:i}=e;return this._controller.moveItems(n,i)})}_tryCopy(n){return 0===(n=n||this._model.getMultipleSelectedItems()).length?(new et).reject().promise():this._showDialog(this._dialogManager.getCopyDialog(n)).then(e=>{var{folder:i}=e;return this._controller.copyItems(n,i)})}_tryUpload(n){this._uploadDirectoryInfo=n?.[0],this._fileUploader.tryUpload()}_download(n){return 0===(n=n||this._model.getMultipleSelectedItems()).length?(new et).reject().promise():this._controller.downloadItems(n)}_getItemContent(n){return n=n||this._model.getMultipleSelectedItems(),this._controller.getItemContent(n)}_completeAction(n,e){this._notificationControl.completeOperation(n,e.completionMessage,!e.success,e.statusText),e.hasModifiedItems()&&this._raiseOnSuccess(e.onlyFiles)}_handleActionError(n,e,i){n.hasError=!0,e.singleRequest?this._handleSingleRequestActionError(n,e,i):this._handleMultipleRequestActionError(n,e,i)}_handleSingleRequestActionError(n,e,i){var r=e.getItemForSingleRequestError(),o=e.getItemName(i.errorCode),a=this._getErrorText(i,r,o);e.processSingleRequestError(a);var s=this._getOperationErrorInfo(e);this._notificationControl.completeSingleOperationWithError(n,s),e.multipleItems&&this._raiseOnSuccess(e.onlyFiles)}_handleMultipleRequestActionError(n,e,i){var r=e.getItemForMultipleRequestError(i.index),o=e.getItemName(i.errorCode,i.index),a=this._getErrorText(i,r,o);e.processMultipleRequestError(i.index,a);var s=this._getOperationErrorInfo(e);this._notificationControl.addOperationDetailsError(n,s)}_getOperationErrorInfo(n){var e=n.errorState.currentDetailError;return{commonErrorText:n.errorState.commonErrorText,item:e.itemInfo?this._getItemProgressDisplayInfo(e.itemInfo):null,itemIndex:e.itemIndex,detailErrorText:e.errorText}}_getErrorText(n,e,i){var r=n.errorText||((t,n)=>{switch(t){case Ku_NoAccess:return ye.format("dxFileManager-errorNoAccess");case Ku_FileExists:return ye.format("dxFileManager-errorFileExistsFormat",n);case Ku_FileNotFound:return ye.format("dxFileManager-errorFileNotFoundFormat",n);case Ku_DirectoryExists:return ye.format("dxFileManager-errorDirectoryExistsFormat",n);case Ku_DirectoryNotFound:return ye.format("dxFileManager-errorDirectoryNotFoundFormat",n);case Ku_WrongFileExtension:return ye.format("dxFileManager-errorWrongFileExtension");case Ku_MaxFileSizeExceeded:return ye.format("dxFileManager-errorMaxFileSizeExceeded");case Ku_InvalidSymbols:return ye.format("dxFileManager-errorInvalidSymbols")}return ye.format("dxFileManager-errorDefault")})(n.errorCode,i),o={fileSystemItem:e?.fileItem,errorCode:n.errorCode,errorText:r};return this._raiseOnError(o),o.errorText}_getItemProgressDisplayInfo(n){return{commonText:n.fileItem.name,imageUrl:this._getItemThumbnail(n)}}_showDialog(n,e){return this._dialogDeferred=new et,n.show(e),this._dialogDeferred.promise()}_onDialogClosed(n){var e=n.dialogResult;e?this._dialogDeferred.resolve(e):this._dialogDeferred.reject()}updateDialogRtl(n){this._dialogManager.updateDialogRtl(n)}_getItemThumbnail(n){var e=this.option("getItemThumbnail");if(!e)return null;var i=e(n);return i?i.thumbnail:null}_initActions(){this._actions={onSuccess:this._createActionByOption("onSuccess"),onError:this._createActionByOption("onError")}}_getDefaultOptions(){return se(super._getDefaultOptions(),{model:{getMultipleSelectedItems:null},notificationControl:null,getItemThumbnail:null,onSuccess:null,onError:null})}_optionChanged(n){var e=n.name;switch(e){case"model":this.repaint();break;case"notificationControl":this._initNotificationControl(n.value);break;case"getItemThumbnail":break;case"uploadDropZonePlaceholderContainer":this._fileUploader.option("dropZonePlaceholderContainer",n.value);break;case"onSuccess":case"onError":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(n)}}_raiseOnSuccess(n){this._actions.onSuccess({updatedOnlyFiles:n})}_raiseOnError(n){this._actions.onError(n)}_getCurrentDirectory(){return this._controller.getCurrentDirectory()}get uploadDirectoryInfo(){return this._uploadDirectoryInfo||this._getCurrentDirectory()}};var i8="dx-filemanager-breadcrumbs",DQt=i8+"-parent-folder-item",EQt=i8+"-separator-item",OQt=i8+"-path-separator-item";const IQt=class TQt extends tr{_init(){super._init(),this._currentDirectory=null}_initMarkup(){super._initMarkup(),this._initActions(),this._currentDirectory&&this._renderMenu(),this.$element().addClass(i8)}setCurrentDirectory(n){this._areDirsEqual(this._currentDirectory,n)||(this._currentDirectory=n,this.repaint())}_renderMenu(){var n=U("<div>").appendTo(this.$element());this._menu=this._createComponent(n,RAe,{dataSource:this._getMenuItems(),onItemClick:this._onItemClick.bind(this),onItemRendered:this._onItemRendered.bind(this)})}_getMenuItems(){var n=this._getParentDirsLine(),e=[{icon:"arrowup",directory:this._currentDirectory.parentDirectory,isPathItem:!0,cssClass:DQt},{text:"\xa0",cssClass:EQt}];return n.forEach((i,r)=>{e.push({text:i.getDisplayName(),directory:i,isPathItem:!0}),r!==n.length-1&&e.push({icon:"spinnext",cssClass:OQt})}),e}_onItemClick(n){var{itemData:e}=n;if(e.isPathItem){var i=e.directory;this._areDirsEqual(i,this._currentDirectory)||this._raiseCurrentDirectoryChanged(i)}}_onItemRendered(n){var{itemElement:e,itemData:i}=n;i.cssClass&&U(e).addClass(i.cssClass)}_getParentDirsLine(){for(var n=this._currentDirectory,e=[];n;)e.unshift(n),n=n.parentDirectory;return e}_areDirsEqual(n,e){return n&&e&&n===e&&n.fileItem.key===e.fileItem.key}_initActions(){this._actions={onCurrentDirectoryChanging:this._createActionByOption("onCurrentDirectoryChanging")}}_raiseCurrentDirectoryChanged(n){this._actions.onCurrentDirectoryChanging({currentDirectory:n})}_getDefaultOptions(){return se(super._getDefaultOptions(),{rootFolderDisplayName:"Files",onCurrentDirectoryChanging:null})}_optionChanged(n){var e=n.name;switch(e){case"rootFolderDisplayName":this.repaint();break;case"onCurrentDirectoryChanging":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(n)}}};var jRe=Fn(),eM="dx-splitter",kQt="".concat(eM,"-wrapper"),hX="".concat(eM,"-inactive"),MQt="".concat(eM,"-border"),pX="".concat(eM,"-initial"),KRe="dx-state-disabled",gX="dxSplitterResizing";class $Re extends tr{_init(){super._init();var n=(new Ni).toString();this.SPLITTER_POINTER_DOWN_EVENT_NAME=kt(qn.down,gX+n),this.SPLITTER_POINTER_MOVE_EVENT_NAME=kt(qn.move,gX+n),this.SPLITTER_POINTER_UP_EVENT_NAME=kt(qn.up,gX+n)}_initMarkup(){super._initMarkup(),this._initActions(),this._$container=this.option("container"),this._$leftElement=this.option("leftElement"),this._$rightElement=this.option("rightElement"),this.$element().addClass(kQt).addClass(pX),this._$splitterBorder=U("<div>").addClass(MQt).appendTo(this.$element()),this._$splitter=U("<div>").addClass(eM).addClass(hX).appendTo(this._$splitterBorder)}_initActions(){this._actions={onApplyPanelSize:this._createActionByOption("onApplyPanelSize"),onActiveStateChanged:this._createActionByOption("onActiveStateChanged")}}_render(){super._render(),this._detachEventHandlers(),this._attachEventHandlers()}_clean(){this._detachEventHandlers(),super._clean()}_attachEventHandlers(){var n=It.getDocument();Se.on(this._$splitterBorder,this.SPLITTER_POINTER_DOWN_EVENT_NAME,this._onMouseDownHandler.bind(this)),Se.on(n,this.SPLITTER_POINTER_MOVE_EVENT_NAME,this._onMouseMoveHandler.bind(this)),Se.on(n,this.SPLITTER_POINTER_UP_EVENT_NAME,this._onMouseUpHandler.bind(this))}_detachEventHandlers(){var n=It.getDocument();Se.off(this._$splitterBorder,this.SPLITTER_POINTER_DOWN_EVENT_NAME),Se.off(n,this.SPLITTER_POINTER_MOVE_EVENT_NAME),Se.off(n,this.SPLITTER_POINTER_UP_EVENT_NAME)}_dimensionChanged(n){(!n||"height"!==n)&&(this._containerWidth=this._$container.get(0).clientWidth,this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))}_onMouseDownHandler(n){n.preventDefault(),this._offsetX=n.pageX-this._$splitterBorder.offset().left<=this._getSplitterBorderWidth()?n.pageX-this._$splitterBorder.offset().left:0,this._containerWidth=this._$container.get(0).clientWidth,this.$element().removeClass(pX),this._toggleActive(!0),this._setSplitterPositionLeft({needUpdatePanels:!0})}_onMouseMoveHandler(n){this._isSplitterActive&&this._setSplitterPositionLeft({splitterPositionLeft:this._getNewSplitterPositionLeft(n),needUpdatePanels:!0})}_onMouseUpHandler(){this._isSplitterActive&&(this._leftPanelPercentageWidth=null,this._toggleActive(!1),this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))}_getNewSplitterPositionLeft(n){var e=n.pageX-this._getContainerLeftOffset()-this._offsetX;return e=Math.max(0-this._getSplitterOffset(),e),Math.min(this._containerWidth-this._getSplitterOffset()-this._getSplitterWidth(),e)}_getContainerLeftOffset(){var n=this._$container.offset().left;if(jRe){var e=jRe.getComputedStyle(this._$container.get(0));n+=(parseFloat(e.paddingLeft)||0)+(parseFloat(e.borderLeftWidth)||0)}return n}_getSplitterOffset(){return(this._getSplitterBorderWidth()-this._getSplitterWidth())/2}_getSplitterWidth(){return this._$splitter.get(0).clientWidth}_getSplitterBorderWidth(){return this._$splitterBorder.get(0).clientWidth}_getLeftPanelWidth(){return this._$leftElement.get(0).clientWidth}getSplitterBorderElement(){return this._$splitterBorder}_toggleActive(n){this.$element().toggleClass(hX,!n),this._$splitter.toggleClass(hX,!n),this._isSplitterActive=n,this._actions.onActiveStateChanged({isActive:n})}toggleDisabled(n){this.$element().toggleClass(KRe,n),this._$splitter.toggleClass(KRe,n)}isSplitterMoved(){return!this.$element().hasClass(pX)}disableSplitterCalculation(n){this._isSplitterCalculationDisabled=n}_setSplitterPositionLeft(){var{splitterPositionLeft:n=null,needUpdatePanels:e=!1,usePercentagePanelsWidth:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(n=n||this._getLeftPanelWidth()-this._getSplitterOffset())+this._getSplitterOffset(),o=this._containerWidth-r;this._isSplitterCalculationDisabled||this.$element().css("left",n),this._leftPanelPercentageWidth=this._leftPanelPercentageWidth||this._convertToPercentage(r);var a=this._convertToPercentage(this._containerWidth-this._convertToPixels(this._leftPanelPercentageWidth));e&&this._actions.onApplyPanelSize({leftPanelWidth:i?"".concat(this._leftPanelPercentageWidth,"%"):r,rightPanelWidth:i?"".concat(a,"%"):o})}_optionChanged(n){switch(n.name){case"initialLeftPanelWidth":this._leftPanelPercentageWidth=this._convertToPercentage(n.value),this._dimensionChanged();break;case"leftElement":this.repaint();break;case"onActiveStateChanged":case"onApplyPanelSize":this._actions[n.name]=this._createActionByOption(n.name);break;default:super._optionChanged(n)}}_convertToPercentage(n){return n/this._$container.get(0).clientWidth*100}_convertToPixels(n){return n/100*this._$container.get(0).clientWidth}}var AQt=Fn(),qRe="dx-filemanager-adaptivity-drawer-panel",YRe="dx-drawer-panel-content-initial";const LQt=class RQt extends tr{_initMarkup(){super._initMarkup(),this._initActions(),this._isInAdaptiveState=!1;var n=U("<div>").appendTo(this.$element());U("<div>").addClass(qRe).appendTo(n),this._drawer=this._createComponent(n,rX),this._drawer.option({opened:!0,template:this._createDrawerTemplate.bind(this)}),U(this._drawer.content()).addClass(YRe);var e=n.find(".".concat(qRe)).first(),i=this.option("contentTemplate");Yt(i)&&i(e),this._updateDrawerMaxSize()}_createDrawerTemplate(n){this.option("drawerTemplate")(n),this._splitter=this._createComponent("<div>",$Re,{container:this.$element(),leftElement:U(this._drawer.content()),rightElement:U(this._drawer.viewContent()),onApplyPanelSize:this._onApplyPanelSize.bind(this),onActiveStateChanged:this._onActiveStateChanged.bind(this)}),this._splitter.$element().appendTo(n),this._splitter.disableSplitterCalculation(!0)}_render(){super._render(),this._checkAdaptiveState()}_onApplyPanelSize(n){if(Rn()){if(!this._splitter.isSplitterMoved())return void this._setDrawerWidth("");U(this._drawer.content()).removeClass(YRe),this._setDrawerWidth(n.leftPanelWidth)}}_onActiveStateChanged(n){var{isActive:e}=n;this._splitter.disableSplitterCalculation(!e),!e&&this._splitter.$element().css("left","auto")}_setDrawerWidth(n){U(this._drawer.content()).css("width",n),this._updateDrawerMaxSize(),this._drawer.resizeViewContent()}_updateDrawerMaxSize(){this._drawer.option("maxSize",this._drawer.getRealPanelWidth())}_dimensionChanged(n){(!n||"height"!==n)&&this._checkAdaptiveState()}_checkAdaptiveState(){var n=this._isInAdaptiveState;this._isInAdaptiveState=this._isSmallScreen(),n!==this._isInAdaptiveState&&(this.toggleDrawer(!this._isInAdaptiveState,!0),U(this._drawer.content()).toggleClass("dx-drawer-panel-content-adaptive",this._isInAdaptiveState),this._raiseAdaptiveStateChanged(this._isInAdaptiveState)),this._isInAdaptiveState&&this._isDrawerOpened()&&this._updateDrawerMaxSize()}_isSmallScreen(){return wn(AQt)<=573}_isDrawerOpened(){return this._drawer.option("opened")}_initActions(){this._actions={onAdaptiveStateChanged:this._createActionByOption("onAdaptiveStateChanged")}}_raiseAdaptiveStateChanged(n){this._actions.onAdaptiveStateChanged({enabled:n})}_getDefaultOptions(){return se(super._getDefaultOptions(),{drawerTemplate:null,contentTemplate:null,onAdaptiveStateChanged:null})}_optionChanged(n){var e=n.name;switch(e){case"drawerTemplate":case"contentTemplate":this.repaint();break;case"onAdaptiveStateChanged":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(n)}}isInAdaptiveState(){return this._isInAdaptiveState}toggleDrawer(n,e){this._updateDrawerMaxSize(),this._drawer.option("animationEnabled",!e),this._drawer.toggle(n);var i=this._isDrawerOpened()&&!this.isInAdaptiveState();this._splitter.toggleDisabled(!i)}getSplitterElement(){return this._splitter.getSplitterBorderElement().get(0)}};var wb="dx-filemanager",BQt=wb+"-wrapper",ZRe=wb+"-container",NQt=wb+"-dirs-panel",VQt=wb+"-editing-container",HQt=wb+"-items-panel",zQt=wb+"-item-custom-thumbnail";On("dxFileManager",class XRe extends tr{_initTemplates(){}_init(){super._init(),this._initActions(),this._providerUpdateDeferred=null,this._lockCurrentPathProcessing=!1,this._wasRendered=!1,this._controller=new xXt({currentPath:this.option("currentPath"),currentPathKeys:this.option("currentPathKeys"),rootText:this.option("rootFolderName"),fileProvider:this.option("fileSystemProvider"),allowedFileExtensions:this.option("allowedFileExtensions"),uploadMaxFileSize:this.option("upload").maxFileSize,uploadChunkSize:this.option("upload").chunkSize,onInitialized:this._onControllerInitialized.bind(this),onDataLoading:this._onDataLoading.bind(this),onSelectedDirectoryChanged:this._onSelectedDirectoryChanged.bind(this),onPathPotentiallyChanged:this._checkPathActuality.bind(this),editingEvents:this._actions.editing})}_initMarkup(){super._initMarkup(),this._firstItemViewLoad=!0,this._lockSelectionProcessing=!1,this._lockFocusedItemProcessing=!1,this._itemKeyToFocus=void 0,this._loadedWidgets=[],this._commandManager=new SXt(this.option("permissions")),this.$element().addClass(wb),this._wasRendered?this._prepareToLoad():this._wasRendered=!0,this._createNotificationControl(),this._initCommandManager()}_createNotificationControl(){var n=U("<div>").addClass("dx-filemanager-notification-container").appendTo(this.$element());this._notificationControl=this._createComponent(n,eQt,{progressPanelContainer:this.$element(),contentTemplate:(e,i)=>this._createWrapper(e,i),onActionProgress:e=>this._onActionProgress(e),positionTarget:".".concat(ZRe),showProgressPanel:this.option("notifications.showPanel"),showNotificationPopup:this.option("notifications.showPopup")})}_createWrapper(n,e){this._$wrapper=U("<div>").addClass(BQt).appendTo(n),this._createEditing(e);var i=U("<div>").appendTo(this._$wrapper);this._toolbar=this._createComponent(i,bJt,{commandManager:this._commandManager,generalItems:this.option("toolbar.items"),fileItems:this.option("toolbar.fileSelectionItems"),itemViewMode:this.option("itemView").mode,onItemClick:r=>this._actions.onToolbarItemClick(r)}),this._createAdaptivityControl()}_createAdaptivityControl(){var n=U("<div>").addClass(ZRe).appendTo(this._$wrapper);this._adaptivityControl=this._createComponent(n,LQt,{drawerTemplate:e=>this._createFilesTreeView(e),contentTemplate:e=>this._createItemsPanel(e),onAdaptiveStateChanged:e=>this._onAdaptiveStateChanged(e)}),this._editing.setUploaderSplitterElement(this._adaptivityControl.getSplitterElement())}_createEditing(n){var e=U("<div>").addClass(VQt).appendTo(this.$element());this._editing=this._createComponent(e,SQt,{controller:this._controller,model:{getMultipleSelectedItems:this._getSelectedItemInfos.bind(this)},getItemThumbnail:this._getItemThumbnailInfo.bind(this),notificationControl:n,uploadDropZonePlaceholderContainer:this.$element(),rtlEnabled:this.option("rtlEnabled"),onSuccess:i=>{var{updatedOnlyFiles:r}=i;return this._redrawComponent(r)},onError:i=>this._onEditingError(i)})}_createItemsPanel(n){this._$itemsPanel=U("<div>").addClass(HQt).appendTo(n),this._createBreadcrumbs(this._$itemsPanel),this._createItemView(this._$itemsPanel),this._updateUploadDropZone()}_updateUploadDropZone(){var n=this._commandManager.isCommandAvailable("upload")?this._$itemsPanel:U();this._editing.setUploaderDropZone(n)}_createFilesTreeView(n){this._filesTreeViewContextMenu=this._createContextMenu(!1,"navPane");var e=U("<div>").addClass(NQt).appendTo(n);this._filesTreeView=this._createComponent(e,ARe,{storeExpandedState:!0,contextMenu:this._filesTreeViewContextMenu,getDirectories:this.getDirectories.bind(this),getCurrentDirectory:this._getCurrentDirectory.bind(this),onDirectoryClick:i=>{var{itemData:r}=i;return this._setCurrentDirectory(r)},onItemListDataLoaded:()=>this._tryEndLoading("navPane")}),this._filesTreeView.updateCurrentDirectory()}_createItemView(n,e){this._itemViewContextMenu=this._createContextMenu(!0,"itemView");var i=this.option("itemView"),r={selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),focusedItemKey:this.option("focusedItemKey"),contextMenu:this._itemViewContextMenu,getItems:this._getItemViewItems.bind(this),onError:s=>{var{error:l}=s;return this._showError(l)},onSelectionChanged:this._onItemViewSelectionChanged.bind(this),onFocusedItemChanged:this._onItemViewFocusedItemChanged.bind(this),onSelectedItemOpened:this._onSelectedItemOpened.bind(this),onContextMenuShowing:s=>this._onContextMenuShowing("itemView",s),onItemListItemsLoaded:()=>this._tryEndLoading("itemView"),getItemThumbnail:this._getItemThumbnailInfo.bind(this),customizeDetailColumns:this.option("customizeDetailColumns"),detailColumns:this.option("itemView.details.columns")},o=U("<div>").appendTo(n);this._itemView=this._createComponent(o,"thumbnails"===(e=e||i.mode)?dJt:qXt,r)}_createBreadcrumbs(n){var e=U("<div>").appendTo(n);this._breadcrumbs=this._createComponent(e,IQt,{rootFolderDisplayName:this.option("rootFolderName"),onCurrentDirectoryChanging:i=>{var{currentDirectory:r}=i;return this._setCurrentDirectory(r,!0)}}),this._breadcrumbs.setCurrentDirectory(this._getCurrentDirectory())}_createContextMenu(n,e){var i=U("<div>").appendTo(this._$wrapper);return this._createComponent(i,TXt,{commandManager:this._commandManager,items:this.option("contextMenu.items"),onItemClick:r=>this._actions.onContextMenuItemClick(r),onContextMenuShowing:r=>this._onContextMenuShowing(e,r),isolateCreationItemCommands:n,viewArea:e})}_initCommandManager(){var n=se(this._editing.getCommandActions(),{refresh:()=>this._refreshAndShowProgress(),thumbnails:()=>this.option("itemView.mode","thumbnails"),details:()=>this.option("itemView.mode","details"),clearSelection:()=>this._clearSelection(),showNavPane:()=>this._adaptivityControl.toggleDrawer()});this._commandManager.registerActions(n)}_onItemViewSelectionChanged(n){var{selectedItemInfos:e,selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:o,currentDeselectedItemKeys:a}=n;this._lockSelectionProcessing=!0,this.option("selectedItemKeys",r),this._lockSelectionProcessing=!1,this._actions.onSelectionChanged({selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:o,currentDeselectedItemKeys:a}),this._updateToolbar(e)}_onItemViewFocusedItemChanged(n){this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",n.itemKey),this._lockFocusedItemProcessing=!1,this._actions.onFocusedItemChanged({item:n.item,itemElement:n.itemElement})}_onAdaptiveStateChanged(n){var{enabled:e}=n;this._commandManager.setCommandEnabled("showNavPane",e),this._updateToolbar()}_onActionProgress(n){var{message:e,status:i}=n;this._toolbar.updateRefreshItem(e,i),this._updateToolbar()}_onEditingError(n){var e=Cb({},n,["errorCode","errorText","fileSystemItem"]);this._actions.onErrorOccurred(e),n.errorText=e.errorText}_refreshAndShowProgress(){return this._prepareToLoad(),Qt(this._notificationControl.tryShowProgressPanel(),this._controller.refresh()).then(()=>this._filesTreeView.refresh())}_isAllWidgetsLoaded(){return 2===this._loadedWidgets.length&&-1!==this._loadedWidgets.indexOf("navPane")&&-1!==this._loadedWidgets.indexOf("itemView")}_tryEndLoading(n){this._loadedWidgets.push(n),this._isAllWidgetsLoaded()&&this._controller.endSingleLoad()}_prepareToLoad(){this._loadedWidgets=[],this._controller.startSingleLoad()}_updateToolbar(n){var e=n||this._getSelectedItemInfos();this._toolbar.option("contextItems",gr(e,[]))}_switchView(n){this._disposeWidget(this._itemView.option("contextMenu")),this._disposeWidget(this._itemView),this._createItemView(this._$itemsPanel,n),this._toolbar.option({itemViewMode:n})}_disposeWidget(n){n.dispose(),n.$element().remove()}_clearSelection(){this._itemView.clearSelection()}_showError(n){this._showNotification(n,!1)}_showNotification(n,e){Q9({message:n,width:450},e?"success":"error",5e3)}_redrawComponent(n){this._itemView.refresh().then(()=>!n&&this._filesTreeView.refresh())}_getItemViewItems(){var n=this.option("itemView").showFolders,e=this._controller.getCurrentItems(!n);return this._updateToolbarWithSelectionOnFirstLoad(e),this.option("itemView.showParentFolder")&&(e=Qt(e).then(i=>this._getPreparedItemViewItems(i))),e}_updateToolbarWithSelectionOnFirstLoad(n){if(this._firstItemViewLoad){this._firstItemViewLoad=!1;var e=this.option("selectedItemKeys");e.length>0&&Qt(n).done(i=>{var r=((t,n)=>{var e={};n.forEach(r=>{e[r]=null}),t.forEach(r=>{var o=r.fileItem.key;Object.prototype.hasOwnProperty.call(e,o)&&(e[o]=r)});var i=[];return n.forEach(r=>{var o=e[r];o&&i.push(o)}),i})(i,e);r.length>0&&this._updateToolbar(r)})}}_getPreparedItemViewItems(n){var e=this._getCurrentDirectory();if(e.fileItem.isRoot())return n;var i=e.fileItem.createClone();i.isParentFolder=!0,i.name="..",i.relativeName="..",i.key="".concat("[*DXPDK*]$40F96F03-FBD8-43DF-91BE-F55F4B8BA871$").concat(e.fileItem.key);var r=[...n];return r.unshift({fileItem:i,icon:"parentfolder"}),r}_onContextMenuShowing(n,e){var i,r=Cb({},e,["targetElement","cancel","event"]);r=se(r,{viewArea:n,fileSystemItem:null===(i=e.itemData)||void 0===i?void 0:i.fileItem,_isActionButton:e.isActionButton}),this._actions.onContextMenuShowing(r),e.cancel=gr(r.cancel,!1)}_getItemThumbnailInfo(n){var e=this.option("customizeThumbnail"),i=Yt(e)?e(n.fileItem):n.fileItem.thumbnail;return i?{thumbnail:i,cssClass:zQt}:{thumbnail:n.icon}}_getDefaultOptions(){return se(super._getDefaultOptions(),{fileSystemProvider:null,currentPath:"",currentPathKeys:[],rootFolderName:ye.format("dxFileManager-rootDirectoryName"),selectionMode:"multiple",selectedItemKeys:[],focusedItemKey:void 0,toolbar:{items:["showNavPane","create","upload","switchView",{name:"separator",location:"after"},"refresh"],fileSelectionItems:["download","separator","move","copy","rename","separator","delete","clearSelection",{name:"separator",location:"after"},"refresh"]},contextMenu:{items:["create","upload","rename","move","copy","delete","refresh","download"]},itemView:{details:{columns:["thumbnail","name","dateModified","size"]},mode:"details",showFolders:!0,showParentFolder:!0},customizeThumbnail:null,customizeDetailColumns:null,onContextMenuItemClick:null,onContextMenuShowing:null,onCurrentDirectoryChanged:null,onSelectedFileOpened:null,onSelectionChanged:null,onFocusedItemChanged:null,onToolbarItemClick:null,onErrorOccurred:null,onDirectoryCreating:null,onDirectoryCreated:null,onItemRenaming:null,onItemRenamed:null,onItemDeleting:null,onItemDeleted:null,onItemCopying:null,onItemCopied:null,onItemMoving:null,onItemMoved:null,onFileUploading:null,onFileUploaded:null,onItemDownloading:null,allowedFileExtensions:[],upload:{maxFileSize:0,chunkSize:2e5},permissions:se({},TRe),notifications:{showPanel:!0,showPopup:!0}})}option(n,e){var i=afe(n,e),r=arguments.length<2&&"object"!==Fa(n),o=s=>Z(i[s]),a=s=>{if(!o(s))return!1;var l=this.option(s);return!Qge(l,i[s])};return!r&&o("fileSystemProvider")&&(this._providerUpdateDeferred=new et,(a("currentPath")||a("currentPathKeys"))&&(this._lockCurrentPathProcessing=!0)),super.option(...arguments)}_optionChanged(n){var e=n.name;switch(e){case"currentPath":var i=()=>(this._lockCurrentPathProcessing=!1,this._controller.setCurrentPath(n.value));this._lockCurrentPathProcessing=!0,this._providerUpdateDeferred?this._providerUpdateDeferred.then(i):i();break;case"currentPathKeys":var r=()=>(this._lockCurrentPathProcessing=!1,this._controller.setCurrentPathByKeys(n.value));this._lockCurrentPathProcessing=!0,this._providerUpdateDeferred?this._providerUpdateDeferred.then(r):r();break;case"selectedItemKeys":!this._lockSelectionProcessing&&this._itemView&&this._itemView.option("selectedItemKeys",n.value);break;case"focusedItemKey":!this._lockFocusedItemProcessing&&this._itemView&&this._itemView.option("focusedItemKey",n.value);break;case"rootFolderName":this._controller.setRootText(n.value),this._invalidate();break;case"fileSystemProvider":this._lockCurrentPathProcessing||(this._providerUpdateDeferred=new et);var o=this._lockCurrentPathProcessing?void 0:this.option("currentPathKeys");this._controller.updateProvider(n.value,o).then(()=>this._providerUpdateDeferred.resolve()).always(()=>{this._providerUpdateDeferred=null,this.repaint()});break;case"allowedFileExtensions":this._controller.setAllowedFileExtensions(n.value),this._invalidate();break;case"upload":this._controller.setUploadOptions(this.option("upload")),this._invalidate();break;case"permissions":this._commandManager.updatePermissions(this.option("permissions")),this._filesTreeViewContextMenu.tryUpdateVisibleContextMenu(),this._itemViewContextMenu.tryUpdateVisibleContextMenu(),this._toolbar.updateItemPermissions(),this._updateUploadDropZone();break;case"selectionMode":case"customizeThumbnail":case"customizeDetailColumns":this._invalidate();break;case"itemView":"itemView.mode"===n.fullName?this._switchView(n.value):this._invalidate();break;case"toolbar":var a={};"toolbar"===n.fullName&&(n.value.items&&(a.generalItems=n.value.items),n.value.fileSelectionItems&&(a.fileItems=n.value.fileSelectionItems)),0===n.fullName.indexOf("toolbar.items")&&(a.generalItems=this.option("toolbar.items")),0===n.fullName.indexOf("toolbar.fileSelectionItems")&&(a.fileItems=this.option("toolbar.fileSelectionItems")),this._toolbar.option(a);break;case"contextMenu":if("contextMenu"===n.fullName&&n.value.items||0===n.fullName.indexOf("contextMenu.items")){var s=this.option("contextMenu.items");this._filesTreeViewContextMenu.option("items",s),this._itemViewContextMenu.option("items",s)}break;case"notifications":this._notificationControl.option("showProgressPanel",this.option("notifications.showPanel")),this._notificationControl.option("showNotificationPopup",this.option("notifications.showPopup"));break;case"onContextMenuItemClick":case"onContextMenuShowing":case"onCurrentDirectoryChanged":case"onSelectedFileOpened":case"onSelectionChanged":case"onFocusedItemChanged":case"onToolbarItemClick":case"onErrorOccurred":this._actions[e]=this._createActionByOption(e);break;case"onDirectoryCreating":case"onDirectoryCreated":case"onItemRenaming":case"onItemRenamed":case"onItemDeleting":case"onItemDeleted":case"onItemCopying":case"onItemCopied":case"onItemMoving":case"onItemMoved":case"onFileUploading":case"onFileUploaded":case"onItemDownloading":this._actions.editing[e]=this._createActionByOption(e);break;case"rtlEnabled":this._editing.updateDialogRtl(n.value),super._optionChanged(n);break;default:super._optionChanged(n)}}_initActions(){this._actions={onContextMenuItemClick:this._createActionByOption("onContextMenuItemClick"),onContextMenuShowing:this._createActionByOption("onContextMenuShowing"),onCurrentDirectoryChanged:this._createActionByOption("onCurrentDirectoryChanged"),onSelectedFileOpened:this._createActionByOption("onSelectedFileOpened"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged"),onToolbarItemClick:this._createActionByOption("onToolbarItemClick"),onErrorOccurred:this._createActionByOption("onErrorOccurred"),editing:{onDirectoryCreating:this._createActionByOption("onDirectoryCreating"),onDirectoryCreated:this._createActionByOption("onDirectoryCreated"),onItemRenaming:this._createActionByOption("onItemRenaming"),onItemRenamed:this._createActionByOption("onItemRenamed"),onItemDeleting:this._createActionByOption("onItemDeleting"),onItemDeleted:this._createActionByOption("onItemDeleted"),onItemCopying:this._createActionByOption("onItemCopying"),onItemCopied:this._createActionByOption("onItemCopied"),onItemMoving:this._createActionByOption("onItemMoving"),onItemMoved:this._createActionByOption("onItemMoved"),onFileUploading:this._createActionByOption("onFileUploading"),onFileUploaded:this._createActionByOption("onFileUploaded"),onItemDownloading:this._createActionByOption("onItemDownloading")}}}executeCommand(n){return this._commandManager.executeCommand(n)}_setCurrentDirectory(n,e){this._controller.setCurrentDirectory(n,e)}_getCurrentDirectory(){return this._controller.getCurrentDirectory()}_onControllerInitialized(n){var{controller:e}=n;this._controller=this._controller||e,this._syncToCurrentDirectory()}_onDataLoading(n){var{operation:e}=n,i=null;"navigation"===e&&(i={focusedItemKey:this._itemKeyToFocus,selectedItemKeys:this.option("selectedItemKeys")},this._itemKeyToFocus=void 0),this._itemView.refresh(i)}_onSelectedDirectoryChanged(){var n=this._getCurrentDirectory();this._syncToCurrentDirectory(),this._actions.onCurrentDirectoryChanged({directory:n.fileItem})}_syncToCurrentDirectory(){var n=this._getCurrentDirectory();this._filesTreeView&&this._filesTreeView.updateCurrentDirectory(),this._breadcrumbs&&this._breadcrumbs.setCurrentDirectory(n),this._checkPathActuality()}_checkPathActuality(){if(!this._lockCurrentPathProcessing){var n=this._controller.getCurrentPath(),e=this._controller.getCurrentPathKeys(),i={};this.option("currentPath")!==n&&(i.currentPath=n),Tr(this.option("currentPathKeys"),e)||(i.currentPathKeys=e),pa(i)||this.option(i)}}getDirectories(n,e){return this._controller.getDirectories(n,e)}_getSelectedItemInfos(){return this._itemView?this._itemView.getSelectedItems():[]}refresh(){return this.executeCommand("refresh")}getCurrentDirectory(){var n=this._getCurrentDirectory();return n&&n.fileItem||null}getSelectedItems(){return this._getSelectedItemInfos().map(n=>n.fileItem)}_onSelectedItemOpened(n){var{fileItemInfo:e}=n,i=e.fileItem;if(i.isDirectory){i.isParentFolder&&(this._itemKeyToFocus=this._getCurrentDirectory().fileItem.key);var r=i.isParentFolder?this._getCurrentDirectory().parentDirectory:e;this._setCurrentDirectory(r),r&&this._filesTreeView.toggleDirectoryExpandedState(r.parentDirectory,!0)}else this._actions.onSelectedFileOpened({file:i})}});let JRe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Uw,$i,M_e,c_e,C_,$_e,Z_e,Vg,__e,wve,bi,tn,mi],Uw,$i,M_e,c_e,C_,$_e,Z_e,Vg,__e,wve,tn]}),t})();const GQt={provide:Fo,useExisting:At(()=>tM),multi:!0};let tM=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"beforeSend",emit:"onBeforeSend"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"dropZoneEnter",emit:"onDropZoneEnter"},{subscribe:"dropZoneLeave",emit:"onDropZoneLeave"},{subscribe:"filesUploaded",emit:"onFilesUploaded"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"progress",emit:"onProgress"},{subscribe:"uploadAborted",emit:"onUploadAborted"},{subscribe:"uploaded",emit:"onUploaded"},{subscribe:"uploadError",emit:"onUploadError"},{subscribe:"uploadStarted",emit:"onUploadStarted"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"abortUploadChange"},{emit:"acceptChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowCancelingChange"},{emit:"allowedFileExtensionsChange"},{emit:"chunkSizeChange"},{emit:"dialogTriggerChange"},{emit:"disabledChange"},{emit:"dropZoneChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"invalidFileExtensionMessageChange"},{emit:"invalidMaxFileSizeMessageChange"},{emit:"invalidMinFileSizeMessageChange"},{emit:"isValidChange"},{emit:"labelTextChange"},{emit:"maxFileSizeChange"},{emit:"minFileSizeChange"},{emit:"multipleChange"},{emit:"nameChange"},{emit:"progressChange"},{emit:"readOnlyChange"},{emit:"readyToUploadMessageChange"},{emit:"rtlEnabledChange"},{emit:"selectButtonTextChange"},{emit:"showFileListChange"},{emit:"tabIndexChange"},{emit:"uploadAbortedMessageChange"},{emit:"uploadButtonTextChange"},{emit:"uploadChunkChange"},{emit:"uploadCustomDataChange"},{emit:"uploadedMessageChange"},{emit:"uploadFailedMessageChange"},{emit:"uploadFileChange"},{emit:"uploadHeadersChange"},{emit:"uploadMethodChange"},{emit:"uploadModeChange"},{emit:"uploadUrlChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get abortUpload(){return this._getOption("abortUpload")}set abortUpload(e){this._setOption("abortUpload",e)}get accept(){return this._getOption("accept")}set accept(e){this._setOption("accept",e)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get allowCanceling(){return this._getOption("allowCanceling")}set allowCanceling(e){this._setOption("allowCanceling",e)}get allowedFileExtensions(){return this._getOption("allowedFileExtensions")}set allowedFileExtensions(e){this._setOption("allowedFileExtensions",e)}get chunkSize(){return this._getOption("chunkSize")}set chunkSize(e){this._setOption("chunkSize",e)}get dialogTrigger(){return this._getOption("dialogTrigger")}set dialogTrigger(e){this._setOption("dialogTrigger",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get dropZone(){return this._getOption("dropZone")}set dropZone(e){this._setOption("dropZone",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get invalidFileExtensionMessage(){return this._getOption("invalidFileExtensionMessage")}set invalidFileExtensionMessage(e){this._setOption("invalidFileExtensionMessage",e)}get invalidMaxFileSizeMessage(){return this._getOption("invalidMaxFileSizeMessage")}set invalidMaxFileSizeMessage(e){this._setOption("invalidMaxFileSizeMessage",e)}get invalidMinFileSizeMessage(){return this._getOption("invalidMinFileSizeMessage")}set invalidMinFileSizeMessage(e){this._setOption("invalidMinFileSizeMessage",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get labelText(){return this._getOption("labelText")}set labelText(e){this._setOption("labelText",e)}get maxFileSize(){return this._getOption("maxFileSize")}set maxFileSize(e){this._setOption("maxFileSize",e)}get minFileSize(){return this._getOption("minFileSize")}set minFileSize(e){this._setOption("minFileSize",e)}get multiple(){return this._getOption("multiple")}set multiple(e){this._setOption("multiple",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get progress(){return this._getOption("progress")}set progress(e){this._setOption("progress",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get readyToUploadMessage(){return this._getOption("readyToUploadMessage")}set readyToUploadMessage(e){this._setOption("readyToUploadMessage",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get selectButtonText(){return this._getOption("selectButtonText")}set selectButtonText(e){this._setOption("selectButtonText",e)}get showFileList(){return this._getOption("showFileList")}set showFileList(e){this._setOption("showFileList",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get uploadAbortedMessage(){return this._getOption("uploadAbortedMessage")}set uploadAbortedMessage(e){this._setOption("uploadAbortedMessage",e)}get uploadButtonText(){return this._getOption("uploadButtonText")}set uploadButtonText(e){this._setOption("uploadButtonText",e)}get uploadChunk(){return this._getOption("uploadChunk")}set uploadChunk(e){this._setOption("uploadChunk",e)}get uploadCustomData(){return this._getOption("uploadCustomData")}set uploadCustomData(e){this._setOption("uploadCustomData",e)}get uploadedMessage(){return this._getOption("uploadedMessage")}set uploadedMessage(e){this._setOption("uploadedMessage",e)}get uploadFailedMessage(){return this._getOption("uploadFailedMessage")}set uploadFailedMessage(e){this._setOption("uploadFailedMessage",e)}get uploadFile(){return this._getOption("uploadFile")}set uploadFile(e){this._setOption("uploadFile",e)}get uploadHeaders(){return this._getOption("uploadHeaders")}set uploadHeaders(e){this._setOption("uploadHeaders",e)}get uploadMethod(){return this._getOption("uploadMethod")}set uploadMethod(e){this._setOption("uploadMethod",e)}get uploadMode(){return this._getOption("uploadMode")}set uploadMode(e){this._setOption("uploadMode",e)}get uploadUrl(){return this._getOption("uploadUrl")}set uploadUrl(e){this._setOption("uploadUrl",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new Zk(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("allowedFileExtensions",e),this.setupChanges("validationErrors",e),this.setupChanges("value",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("allowedFileExtensions"),this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-file-uploader"]],hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{abortUpload:"abortUpload",accept:"accept",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowCanceling:"allowCanceling",allowedFileExtensions:"allowedFileExtensions",chunkSize:"chunkSize",dialogTrigger:"dialogTrigger",disabled:"disabled",dropZone:"dropZone",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",invalidFileExtensionMessage:"invalidFileExtensionMessage",invalidMaxFileSizeMessage:"invalidMaxFileSizeMessage",invalidMinFileSizeMessage:"invalidMinFileSizeMessage",isValid:"isValid",labelText:"labelText",maxFileSize:"maxFileSize",minFileSize:"minFileSize",multiple:"multiple",name:"name",progress:"progress",readOnly:"readOnly",readyToUploadMessage:"readyToUploadMessage",rtlEnabled:"rtlEnabled",selectButtonText:"selectButtonText",showFileList:"showFileList",tabIndex:"tabIndex",uploadAbortedMessage:"uploadAbortedMessage",uploadButtonText:"uploadButtonText",uploadChunk:"uploadChunk",uploadCustomData:"uploadCustomData",uploadedMessage:"uploadedMessage",uploadFailedMessage:"uploadFailedMessage",uploadFile:"uploadFile",uploadHeaders:"uploadHeaders",uploadMethod:"uploadMethod",uploadMode:"uploadMode",uploadUrl:"uploadUrl",validationError:"validationError",validationErrors:"validationErrors",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onBeforeSend:"onBeforeSend",onContentReady:"onContentReady",onDisposing:"onDisposing",onDropZoneEnter:"onDropZoneEnter",onDropZoneLeave:"onDropZoneLeave",onFilesUploaded:"onFilesUploaded",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onProgress:"onProgress",onUploadAborted:"onUploadAborted",onUploaded:"onUploaded",onUploadError:"onUploadError",onUploadStarted:"onUploadStarted",onValueChanged:"onValueChanged",abortUploadChange:"abortUploadChange",acceptChange:"acceptChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowCancelingChange:"allowCancelingChange",allowedFileExtensionsChange:"allowedFileExtensionsChange",chunkSizeChange:"chunkSizeChange",dialogTriggerChange:"dialogTriggerChange",disabledChange:"disabledChange",dropZoneChange:"dropZoneChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",invalidFileExtensionMessageChange:"invalidFileExtensionMessageChange",invalidMaxFileSizeMessageChange:"invalidMaxFileSizeMessageChange",invalidMinFileSizeMessageChange:"invalidMinFileSizeMessageChange",isValidChange:"isValidChange",labelTextChange:"labelTextChange",maxFileSizeChange:"maxFileSizeChange",minFileSizeChange:"minFileSizeChange",multipleChange:"multipleChange",nameChange:"nameChange",progressChange:"progressChange",readOnlyChange:"readOnlyChange",readyToUploadMessageChange:"readyToUploadMessageChange",rtlEnabledChange:"rtlEnabledChange",selectButtonTextChange:"selectButtonTextChange",showFileListChange:"showFileListChange",tabIndexChange:"tabIndexChange",uploadAbortedMessageChange:"uploadAbortedMessageChange",uploadButtonTextChange:"uploadButtonTextChange",uploadChunkChange:"uploadChunkChange",uploadCustomDataChange:"uploadCustomDataChange",uploadedMessageChange:"uploadedMessageChange",uploadFailedMessageChange:"uploadFailedMessageChange",uploadFileChange:"uploadFileChange",uploadHeadersChange:"uploadHeadersChange",uploadMethodChange:"uploadMethodChange",uploadModeChange:"uploadModeChange",uploadUrlChange:"uploadUrlChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,GQt,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),QRe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})();const jQt={provide:Fo,useExisting:At(()=>KQt),multi:!0};let KQt=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"editorPrepared",emit:"onEditorPrepared"},{subscribe:"editorPreparing",emit:"onEditorPreparing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowHierarchicalFieldsChange"},{emit:"customOperationsChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"fieldsChange"},{emit:"filterOperationDescriptionsChange"},{emit:"focusStateEnabledChange"},{emit:"groupOperationDescriptionsChange"},{emit:"groupOperationsChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxGroupLevelChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get allowHierarchicalFields(){return this._getOption("allowHierarchicalFields")}set allowHierarchicalFields(e){this._setOption("allowHierarchicalFields",e)}get customOperations(){return this._getOption("customOperations")}set customOperations(e){this._setOption("customOperations",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fields(){return this._getOption("fields")}set fields(e){this._setOption("fields",e)}get filterOperationDescriptions(){return this._getOption("filterOperationDescriptions")}set filterOperationDescriptions(e){this._setOption("filterOperationDescriptions",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get groupOperationDescriptions(){return this._getOption("groupOperationDescriptions")}set groupOperationDescriptions(e){this._setOption("groupOperationDescriptions",e)}get groupOperations(){return this._getOption("groupOperations")}set groupOperations(e){this._setOption("groupOperations",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get maxGroupLevel(){return this._getOption("maxGroupLevel")}set maxGroupLevel(e){this._setOption("maxGroupLevel",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get customOperationsChildren(){return this._getOption("customOperations")}set customOperationsChildren(e){this.setChildren("customOperations",e)}get fieldsChildren(){return this._getOption("fields")}set fieldsChildren(e){this.setChildren("fields",e)}_createInstance(e,i){return new MFe(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("customOperations",e),this.setupChanges("fields",e),this.setupChanges("groupOperations",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("customOperations"),this._idh.doCheck("fields"),this._idh.doCheck("groupOperations"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-filter-builder"]],contentQueries:function(e,i,r){if(1&e&&(In(r,a_e,4),In(r,bG,4)),2&e){let o;yn(o=Cn())&&(i.customOperationsChildren=o),yn(o=Cn())&&(i.fieldsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowHierarchicalFields:"allowHierarchicalFields",customOperations:"customOperations",disabled:"disabled",elementAttr:"elementAttr",fields:"fields",filterOperationDescriptions:"filterOperationDescriptions",focusStateEnabled:"focusStateEnabled",groupOperationDescriptions:"groupOperationDescriptions",groupOperations:"groupOperations",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxGroupLevel:"maxGroupLevel",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onEditorPrepared:"onEditorPrepared",onEditorPreparing:"onEditorPreparing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowHierarchicalFieldsChange:"allowHierarchicalFieldsChange",customOperationsChange:"customOperationsChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",fieldsChange:"fieldsChange",filterOperationDescriptionsChange:"filterOperationDescriptionsChange",focusStateEnabledChange:"focusStateEnabledChange",groupOperationDescriptionsChange:"groupOperationDescriptionsChange",groupOperationsChange:"groupOperationsChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",maxGroupLevelChange:"maxGroupLevelChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,jQt,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),eLe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Ww,w_,$r,Jw,jw,qw,bi,tn,mi],Ww,w_,$r,Jw,jw,qw,tn]}),t})(),$Qt=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"editorEnterKey",emit:"onEditorEnterKey"},{subscribe:"fieldDataChanged",emit:"onFieldDataChanged"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"alignItemLabelsChange"},{emit:"alignItemLabelsInAllGroupsChange"},{emit:"colCountChange"},{emit:"colCountByScreenChange"},{emit:"customizeItemChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"formDataChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemsChange"},{emit:"labelLocationChange"},{emit:"labelModeChange"},{emit:"minColWidthChange"},{emit:"optionalMarkChange"},{emit:"readOnlyChange"},{emit:"requiredMarkChange"},{emit:"requiredMessageChange"},{emit:"rtlEnabledChange"},{emit:"screenByWidthChange"},{emit:"scrollingEnabledChange"},{emit:"showColonAfterLabelChange"},{emit:"showOptionalMarkChange"},{emit:"showRequiredMarkChange"},{emit:"showValidationSummaryChange"},{emit:"tabIndexChange"},{emit:"validationGroupChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(e){this._setOption("alignItemLabels",e)}get alignItemLabelsInAllGroups(){return this._getOption("alignItemLabelsInAllGroups")}set alignItemLabelsInAllGroups(e){this._setOption("alignItemLabelsInAllGroups",e)}get colCount(){return this._getOption("colCount")}set colCount(e){this._setOption("colCount",e)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(e){this._setOption("colCountByScreen",e)}get customizeItem(){return this._getOption("customizeItem")}set customizeItem(e){this._setOption("customizeItem",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get formData(){return this._getOption("formData")}set formData(e){this._setOption("formData",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get labelLocation(){return this._getOption("labelLocation")}set labelLocation(e){this._setOption("labelLocation",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get minColWidth(){return this._getOption("minColWidth")}set minColWidth(e){this._setOption("minColWidth",e)}get optionalMark(){return this._getOption("optionalMark")}set optionalMark(e){this._setOption("optionalMark",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get requiredMark(){return this._getOption("requiredMark")}set requiredMark(e){this._setOption("requiredMark",e)}get requiredMessage(){return this._getOption("requiredMessage")}set requiredMessage(e){this._setOption("requiredMessage",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get screenByWidth(){return this._getOption("screenByWidth")}set screenByWidth(e){this._setOption("screenByWidth",e)}get scrollingEnabled(){return this._getOption("scrollingEnabled")}set scrollingEnabled(e){this._setOption("scrollingEnabled",e)}get showColonAfterLabel(){return this._getOption("showColonAfterLabel")}set showColonAfterLabel(e){this._setOption("showColonAfterLabel",e)}get showOptionalMark(){return this._getOption("showOptionalMark")}set showOptionalMark(e){this._setOption("showOptionalMark",e)}get showRequiredMark(){return this._getOption("showRequiredMark")}set showRequiredMark(e){this._setOption("showRequiredMark",e)}get showValidationSummary(){return this._getOption("showValidationSummary")}set showValidationSummary(e){this._setOption("showValidationSummary",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(e){this._setOption("validationGroup",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new vv(e,i)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("items",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-form"]],contentQueries:function(e,i,r){if(1&e&&In(r,So,4),2&e){let o;yn(o=Cn())&&(i.itemsChildren=o)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",alignItemLabels:"alignItemLabels",alignItemLabelsInAllGroups:"alignItemLabelsInAllGroups",colCount:"colCount",colCountByScreen:"colCountByScreen",customizeItem:"customizeItem",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",formData:"formData",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",items:"items",labelLocation:"labelLocation",labelMode:"labelMode",minColWidth:"minColWidth",optionalMark:"optionalMark",readOnly:"readOnly",requiredMark:"requiredMark",requiredMessage:"requiredMessage",rtlEnabled:"rtlEnabled",screenByWidth:"screenByWidth",scrollingEnabled:"scrollingEnabled",showColonAfterLabel:"showColonAfterLabel",showOptionalMark:"showOptionalMark",showRequiredMark:"showRequiredMark",showValidationSummary:"showValidationSummary",tabIndex:"tabIndex",validationGroup:"validationGroup",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onEditorEnterKey:"onEditorEnterKey",onFieldDataChanged:"onFieldDataChanged",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",alignItemLabelsChange:"alignItemLabelsChange",alignItemLabelsInAllGroupsChange:"alignItemLabelsInAllGroupsChange",colCountChange:"colCountChange",colCountByScreenChange:"colCountByScreenChange",customizeItemChange:"customizeItemChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",formDataChange:"formDataChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",itemsChange:"itemsChange",labelLocationChange:"labelLocationChange",labelModeChange:"labelModeChange",minColWidthChange:"minColWidthChange",optionalMarkChange:"optionalMarkChange",readOnlyChange:"readOnlyChange",requiredMarkChange:"requiredMarkChange",requiredMessageChange:"requiredMessageChange",rtlEnabledChange:"rtlEnabledChange",screenByWidthChange:"screenByWidthChange",scrollingEnabledChange:"scrollingEnabledChange",showColonAfterLabelChange:"showColonAfterLabelChange",showOptionalMarkChange:"showOptionalMarkChange",showRequiredMarkChange:"showRequiredMarkChange",showValidationSummaryChange:"showValidationSummaryChange",tabIndexChange:"tabIndexChange",validationGroupChange:"validationGroupChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[ot([Zt,nn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),tLe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[zw,$i,Lo,v_,s1,Tg,Hw,bi,tn,mi],zw,$i,Lo,v_,s1,Tg,Hw,tn]}),t})();var nLe,fX={};function iLe(t,n,e){fX[t]=n,e&&(nLe=fX[t])}const YQt={getFigures:function(t){var n=1/t.length;return t.map(function(e,i,r){var o=r[i+1]?r[i+1]:r[i];return[.5-e/2,n*i,.5+e/2,n*i,.5+o/2,n*(i+1),.5-o/2,n*(i+1)]})},normalizeValues:function(t){var n=t.reduce(function(e,i){return Math.max(i.value,e)},t[0]&&t[0].value||0);return t.map(function(e){return e.value/n})}};var JQt=["normal","hover","selection","selection"];function vX(t,n,e){var i=n.border,r=e.border,o=Z(i.visible)?i.visible:r.visible,a=Z(i.width)?i.width:r.width;return{fill:t,hatching:n.hatching,stroke:i.color||r.color,"stroke-width":o?a:0}}function rLe(t,n){var e=n.data;this.code=0,this.widget=t,this.figure=n.figure,this.argument=e.argument,this.value=e.value,this.data=e.dataItem,this.percent=n.percent,this.id=n.id,this.color=n.color,this.states={normal:vX(n.color,n.itemOptions,n.itemOptions),hover:vX(n.color,n.itemOptions.hoverStyle,n.itemOptions),selection:vX(n.color,n.itemOptions.selectionStyle,n.itemOptions)}}rLe.prototype={getState:function(){return JQt[this.code]},getNormalStyle:function(){return this.states.normal},setHover:function(){this.hover(!0)},hover:function(t){!this.widget._getOption("hoverEnabled",!0)||t===this.isHovered()||(this.widget._suspend(),t&&this.widget.clearHover(),this.setState(1,t),this.widget._eventTrigger("hoverChanged",{item:this}),this.widget._resume())},setState:function(t,n){n?this.code|=t:this.code&=~t,this.widget._applyTilesAppearance()},select:function(t){var n=this.widget._getOption("selectionMode",!0);"none"===n||t===this.isSelected()||(this.widget._suspend(),t&&"multiple"!==n&&this.widget.clearSelection(),this.setState(2,t),this.widget._eventTrigger("selectionChanged",{item:this}),this.widget._resume())},showTooltip:function(t){this.widget._showTooltip(this.id,t)},getColor:function(){return this.color},isHovered:function(){return!!(1&this.code)},isSelected:function(){return!!(2&this.code)}};const QQt=rLe;var oc="NODES_CREATE";function yX(t){return{fill:t.fill,hatching:t.hatching}}iLe("dynamicslope",YQt,!0),iLe("dynamicheight",{getFigures:function(t,n,e){var i=0,r=0,o=0,a=0,s=n/2,l=.5-s,u=1-e,f=.5-s,S=.5+s;return t.map(function(T){return o=a,r=i,a=l*(i+=T)/u,r<=u&&i<=u?[o,r,1-o,r,1-a,i,0+a,i]:r<=u&&i>u?[o,r,1-o,r,S,u,S,i,f,i,f,u]:[f,r,S,r,S,i,f,i]})},normalizeValues:function(t){var n=t.reduce(function(e,i){return e+i.value},0);return t.map(function(e){return e.value/n})}});var CX=V_.inherit({_rootClass:"dxf-funnel",_rootClassPrefix:"dxf",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",neckWidth:oc,neckHeight:oc,inverted:oc,algorithm:oc,item:oc,valueField:oc,argumentField:oc,colorField:oc,palette:oc,paletteExtensionMode:oc,sortData:oc},_themeDependentChanges:[oc],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"funnel",_fontFields:["legend.title.font","legend.title.subtitle.font","legend.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._group=this._renderer.g().append(this._renderer.root),this._items=[]},_eventsMap:{onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_disposeCore:Be,_applySize:function(t){return this._rect=t.slice(),this._change(["TILING"]),this._rect},_getAlignmentRect:function(){return this._rect},_change_TILING:function(){var t=this,n=t._items,e=t._rect,i=function(r,o){var a=o%2;return e[0+a]+(e[2+a]-e[0+a])*r};this._group.clear(),n.forEach(function(r,o){var a=r.figure.map(i),s=t._renderer.path([],"area").attr({points:a}).append(t._group);r.coords=a,r.element=s}),this._requestChange(["TILES"])},_customChangesOrder:[oc,"LAYOUT","TILING","TILES","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange([oc])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_NODES_CREATE:function(){this._buildNodes()},_change_TILES:function(){this._applyTilesAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_applyTilesAppearance:function(){this._items.forEach(function(t){var n=t.getState();t.element.smartAttr(t.states[n])})},_hitTestTargets:function(t,n){var i,e=this;return this._proxyData.some(function(r){if(i=r.call(e,t,n))return!0}),i},clearHover:function(){this._suspend(),this._items.forEach(function(t){t.isHovered()&&t.hover(!1)}),this._resume()},clearSelection:function(){this._suspend(),this._items.forEach(function(t){t.isSelected()&&t.select(!1)}),this._resume()},_getData:function(){var t=this._dataSourceItems()||[],n=this._getOption("valueField",!0),e=this._getOption("argumentField",!0),i=this._getOption("colorField",!0),r=t.reduce(function(a,s){var l=Number(s[n]);return l>=0&&(a[0].push({value:l,color:s[i],argument:s[e],dataItem:s}),a[1]+=l),a},[[],0]),o=r[0];return t.length>0&&0===o.length&&this._incidentOccurred("E2005",n),r[1]?(this._getOption("sortData",!0)&&o.sort(function(a,s){return s.value-a.value}),o):[]},_buildNodes:function(){var t=this,n=t._getData(),e=function qQt(t){return fX[Ri(t)]||nLe}(t._getOption("algorithm",!0)),i=e.normalizeValues(n),r=t._getOption("item"),o=e.getFigures(i,t._getOption("neckWidth",!0),t._getOption("neckHeight",!0)),a=t._themeManager.createPalette(t._getOption("palette",!0),{useHighlight:!0,extensionMode:t._getOption("paletteExtensionMode",!0),count:o.length});t._items=o.map(function(s,l){var u=n[l];return new QQt(t,{figure:s,data:u,percent:i[l],id:l,color:u.color||a.getNextColor(),itemOptions:r})}),t._getOption("inverted",!0)&&t._items.forEach(function(s){s.figure=function een(t){return t.map(function(n,e){return e%2?1-n:n})}(s.figure)}),t._renderer.initHatching(),t._change(["TILING","DRAWN"])},_showTooltip:Be,hideTooltip:Be,getAllItems:function(){return this._items.slice()},_getLegendData(){return this._items.map(t=>{var n=t.states;return{id:t.id,visible:!0,text:t.argument,item:t,states:{normal:yX(n.normal),hover:yX(n.hover),selection:yX(n.selection)}}})},_getMinSize:function(){var t=this._getOption("adaptiveLayout");return[t.width,t.height]}});On("dxFunnel",CX);const a0=CX;CX.addPlugin(_S);var bX="outside";function Db(t){return(t=Ri(t))===bX||"inside"!==t}function o8(t,n,e){return e?t-n.height:t}function nen(t,n,e,i){return{x:t[2]+e.horizontalOffset+5,y:o8(t[3]+e.verticalOffset,n,i)}}function ien(t,n,e,i){return{x:t[0]-n.width-e.horizontalOffset-5,y:o8(t[1]+e.verticalOffset,n,i)}}function ren(t,n,e){return{x:t[0]+(t[2]-t[0])/2+e.horizontalOffset-n.width/2,y:t[1]+e.verticalOffset+(t[7]-t[1])/2-n.height/2}}var cen={name:"lables",init:Be,dispose:Be,extenders:{_initCore:function(){this._labelsGroup=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._labels=[]},_applySize:function(){var t=this._getOption("label"),n=this._getOption("adaptiveLayout"),e=this._rect,i=0,r=e[2]-e[0];this._labelRect=e.slice(),this._labels.length&&Db(t.position)?(i=this._labels.map(function(a){return a.resetEllipsis(),a.getBoundingRect().width}).reduce(function(a,s){return Math.max(a,s)},0)+t.horizontalOffset+function ten(t){return(t=Ri(t))===bX?5:"inside"===t?0:20}(t.position),!n.keepLabels&&r-i<n.width?this._labels.forEach(function(a){a.draw(!1)}):(r-i<n.width&&(i=(i=r-n.width)>0?i:0),this._labels.forEach(function(a){a.draw(!0)}),"left"===t.horizontalAlignment?e[0]+=i:e[2]-=i)):Ri("none"!==this._getOption("resolveLabelOverlapping",!0))&&this._labels.forEach(a=>!a.isVisible()&&a.draw(!0))},_buildNodes:function(){this._createLabels()},_change_TILING:function(){var r,t=this,n=t._getOption("label"),e=ren,i=t._getOption("inverted",!0);Db(n.position)&&(Ri(n.position)===bX?e="left"===n.horizontalAlignment?ien:nen:(r=this._defaultLabelTextAlignment(),e="left"===n.horizontalAlignment?function aen(t,n,e){return function(i,r,o,a){return{x:"left"===e?t[0]:n[0]-r.width-o.horizontalOffset-20,y:o8(i[3]+o.verticalOffset,r,a)}}}(this._labelRect,this._rect,r):function oen(t,n,e){return function(i,r,o,a){return{x:"left"===e?n[2]+o.horizontalOffset+20:t[2]-r.width,y:o8(i[3]+o.verticalOffset,r,a)}}}(this._labelRect,this._rect,r))),t._labels.forEach(function(o,a){var s=t._items[a],l=s.getNormalStyle()["stroke-width"],u=i?l/2:-l/2,f=u?s.coords.map(function(R,L){return 1===L||3===L?R-u:2===L?R-l:0===L?R+l:R}):s.coords;if(n.showForZeroValues||0!==s.value){Db(n.position)&&t._correctLabelWidth(o,s.coords,n);var S=o.getBoundingRect(),T=function uen(t,n,e){return t.x<e[0]&&(t.x=e[0]),t.x+n.width>e[2]&&(t.x=e[2]-n.width),t.y<e[1]&&(t.y=e[1]),t.y+n.height>e[3]&&(t.y=e[3]-n.height),t}(e(f,S,n,i),S,t._labelRect);o.setFigureToDrawConnector(f),o.shift(T.x,T.y)}else o.draw(!1)}),t._resolveLabelOverlapping()}},members:{_resolveLabelOverlapping(){var t=this,n=Ri(t._getOption("resolveLabelOverlapping",!0)),e=this._getOption("inverted",!0)?t._labels.slice().reverse():t._labels;if("hide"===n)e.reduce((r,o)=>(o.getBoundingRect().y<r?o.hide():r=o.getBoundingRect().y+o.getBoundingRect().height,r),0);else if("shift"===n){var i=this._labelRect[3];e.reduce((r,o,a,s)=>{var[l,u]=r,f=o.getBoundingRect(),S=f.y;return f.y<l&&(o.shift(f.x,l),S=l),S-l>0&&(u+=S-l),S+f.height>i?u&&u>S+f.height-i?(function den(t,n,e){t.reduce((i,r,o,a)=>{var s=a[o+1];if(i>0){var l=r.getBoundingRect(),u=s?s.getBoundingRect().y+s.getBoundingRect().height:e,S=Math.min(l.y-u,i);a.slice(0,o+1).forEach(T=>{var R=T.getBoundingRect();T.shift(R.x,R.y-S)}),i-=S}return i},n)}(s.slice(0,a).reverse(),S+f.height-i,t._labelRect[1]),u-=S+f.height-i,o.shift(f.x,S-(S+f.height-i)),l=S-(S+f.height-i)+f.height):o.hide():l=S+f.height,[l,u]},[this._labelRect[1],0])}},_defaultLabelTextAlignment:function(){return this._getOption("rtlEnabled",!0)?"right":"left"},_correctLabelWidth:function(t,n,e){var i="left"===e.horizontalAlignment,a=(i?n[0]:this._labelRect[2])-(i?this._labelRect[0]:n[2]);t.getBoundingRect().width>a&&t.fit(a)},_createLabels:function(){var t=this,n=t._getOption("label"),e=function sen(t,n){var e="left"===t.horizontalAlignment,i=e?4:-4,r=n?-1:0;function o(a){return e?[a[0]+1,a[1]+r]:[a[2]-1,a[3]+r]}return{isLabelInside:function(){return!Db(t.position)},getFigureCenter:o,prepareLabelPoints:function(a){var s=a.x+i,l=a.y,u=s+a.width;return[...Array(a.height+1)].map((f,S)=>[s,l+S]).concat([...Array(a.height+1)].map((f,S)=>[u,l+S]))},isHorizontal:function(){return!0},findFigurePoint:function(a){return o(a)},adjustPoints:function(a){return a.map(Math.round)}}}(n,t._getOption("inverted",!0));this._labelsGroup.clear(),n.visible&&(this._labels=t._items.map(function(i){var r=new sS({renderer:t._renderer,labelsGroup:t._labelsGroup,strategy:e});return r.setOptions(function len(t,n,e){var i=t||{},r=se({},i.font)||{},o=i.border||{},a=i.connector||{},s={fill:i.backgroundColor||n,"stroke-width":o.visible&&o.width||0,stroke:o.visible&&o.width?o.color:"none",dashStyle:o.dashStyle},l={stroke:a.visible&&a.width?a.color||n:"none","stroke-width":a.visible&&a.width||0,opacity:a.opacity};return r.color="none"===i.backgroundColor&&"#ffffff"===Ri(r.color)&&"inside"!==i.position?n:r.color,{format:i.format,textAlignment:i.textAlignment||(Db(i.position)?e:"center"),customizeText:i.customizeText,attributes:{font:r},visible:0!==r.size&&i.visible,showForZeroValues:i.showForZeroValues,horizontalOffset:i.horizontalOffset,verticalOffset:i.verticalOffset,background:s,connector:l,wordWrap:t.wordWrap,textOverflow:t.textOverflow}}(n,i.color,t._defaultLabelTextAlignment())),r.setData({item:i,value:i.value,percent:i.percent}),r.draw(!0),r}),this._labels.length&&Db(n.position)&&this._requestChange(["LAYOUT"]))}},customize:function(t){t.prototype._proxyData.push(function(n,e){var r,i=this;return i._labels.forEach(function(o,a){var s=o.getBoundingRect();if(n>=s.x&&n<=s.x+s.width&&e>=s.y&&e<=s.y+s.height){var l=Db(i._getOption("label").position)?"outside":"inside";return r={id:a,type:l+"-label"},!0}}),r}),["label","resolveLabelOverlapping"].forEach(n=>{t.addChange({code:n.toUpperCase(),handler:function(){this._createLabels(),this._requestChange(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:n})})},fontFields:["label.font"]},a8=qn.down,sLe=qn.move;function nM(t){this._initHandlers(t)}nM.prototype={constructor:nM,_initHandlers:function(t){var n=It.getDocument();function e(a){!function hen(t,n){var e=n.getData(t);e>=0&&n.click({node:n.getNode(e),coords:n.getCoords(t),event:t})}(a,t)}t.getCoords=function(a){var s=Po(a),l=t.widget._renderer.getRootOffset();return[s.x-l.left,s.y-l.top]},t.root.on(Vi,e),t.root.on(a8,r),Se.on(n,a8,r),Se.on(n,sLe,o),this._disposeHandlers=function(){t.root.off(Vi,e),t.root.off(a8,r),Se.off(n,a8,r),Se.off(n,sLe,o)};var i=!1;function r(a){i?i=!1:(void 0!==t.getData(a)&&(i=!0),o(a))}function o(a){(function pen(t,n){var e=n.getData(t);e>=0?n.getNode(e).setHover():n.widget.clearHover()})(a,t),t.widget._getOption("tooltip").enabled&&function gen(t,n){var i,e=n.getData(t,!0);e>=0?(i=Po(t),n.getNode(e).showTooltip([i.x,i.y])):n.widget.hideTooltip()}(a,t)}},dispose:function(){this._disposeHandlers()}};var men=0,lLe=a0.prototype;lLe._eventsMap.onItemClick={name:"itemClick"},lLe._eventsMap.onLegendClick={name:"legendClick"};var ven={name:"tracker",init:function(){var t=this,n="__funnel_data_"+men++,e=function(i){var r=t._renderer.getRootOffset(),o=Math.floor(i.pageX-r.left),a=Math.floor(i.pageY-r.top);return t._hitTestTargets(o,a)};t._tracker=new nM({widget:t,root:t._renderer.root,getData:function(i,r){var a=i.target[n];if(Z(a))return a;var s=e(i);return r&&s&&"inside-label"!==s.type?void 0:s&&s.id},getNode:function(i){return t._items[i]},click:function(i){var r=e(i.event);t._eventTrigger("legend"===(r&&r.type)?"legendClick":"itemClick",{item:i.node,event:i.event})}}),this._dataKey=n},dispose:function(){this._tracker.dispose()},extenders:{_change_TILING:function(){var t=this._dataKey;this._items.forEach(function(n,e){n.element.data(t,e)})}}};function uLe(t,n,e){var i=e.getRootOffset();return t||n&&[(n[0]+n[2])/2+i.left,(n[1]+n[5])/2+i.top]||[-1e3,-1e3]}var yen={name:"funnel-tooltip",init:Be,dispose:Be,extenders:{_buildNodes:function(){this.hideTooltip()},_change_TILING:function(){this._tooltipIndex>=0&&this._moveTooltip(this._items[this._tooltipIndex])}},members:{hideTooltip:function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},_moveTooltip:function(t,n){var e=uLe(n,t.coords,this._renderer);this._tooltip.move(e[0],e[1],0)},_showTooltip:function(t,n){var e=this,i=e._tooltip,r=e._items[t];if(e._tooltipIndex!==t){var o=s=>{void 0!==s&&(s||i.hide(),e._tooltipIndex=s?t:-1)},a=uLe(n,r.coords,this._renderer);o(i.show({value:r.value,valueText:i.formatValue(r.value),percentText:i.formatValue(r.percent,"percent"),percent:r.percent,item:r},{x:a[0],y:a[1],offset:0},{item:r},void 0,o))}else e._moveTooltip(r,n)}},customize:function(t){t.addPlugin(kC)}};a0.addPlugin(cen),a0.addPlugin(j_),a0.addPlugin(TC),a0.addPlugin(wSe),a0.addPlugin(ven),a0.addPlugin(yen),a0.addPlugin(MC);let dLe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Og,aa,A_e,Ea,Jd,Eh,Oh,Lo,kg,Oa,$r,Rg,Ta,vs,_s,ms,Ia,$o,ja,bi,tn,mi],Og,aa,A_e,Ea,Jd,Eh,Oh,Lo,kg,Oa,$r,Rg,Ta,vs,_s,ms,Ia,$o,ja,tn]}),t})();var Dv="dx-gallery",ben=Dv+"-wrapper",cLe="dx-gallery-loop",xen=Dv+"-container",hLe=Dv+"-active",iM=Dv+"-item",rM=Dv+"-item-invisible",oM=iM+"-loop",wen="."+iM,DX=iM+"-selected",pLe=Dv+"-indicator",EX=pLe+"-item",gLe="."+EX,fLe=EX+"-selected",_Le=tr.inherit({_supportedKeys:function(){return se(this.callBase(),{pageUp:Be,pageDown:Be})},_getDefaultOptions:function(){return se(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render:function(){this.callBase();var t=this,n=this.$element(),e=kt(Vi,this.NAME);n.addClass(Dv+"-nav-button-"+this.option("direction")),Se.off(n,e),Se.on(n,e,function(i){t._createActionByOption("onClick")({event:i})})},_optionChanged:function(t){switch(t.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(t)}}}),vLe=Fc.inherit({_activeStateUnit:wen,_wasAnyItemTemplateRendered:!1,_getDefaultOptions:function(){return se(this.callBase(),{activeStateEnabled:!1,animationDuration:400,animationEnabled:!0,loop:!1,swipeEnabled:!0,indicatorEnabled:!0,showIndicator:!0,selectedIndex:0,slideshowDelay:0,showNavButtons:!1,wrapAround:!1,initialItemWidth:void 0,stretchImages:!1,_itemAttributes:{role:"option"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new Ac(function(t,n){var e=U("<img>").addClass("dx-gallery-item-image");wi(n)?(this._prepareDefaultItemTemplate(n,t),e.attr({src:n.imageSrc,alt:n.imageAlt}).appendTo(t)):e.attr("src",String(n)).appendTo(t)}.bind(this),["imageSrc","imageAlt","text","html"],this.option("integrationOptions.watchMethod"))})},_dataSourceOptions:function(){return{paginate:!1}},_itemContainer:function(){return this._$container},_itemClass:function(){return iM},_itemDataKey:function(){return"dxGalleryItemData"},_actualItemWidth:function(){var t=this.option("wrapAround");return this.option("stretchImages")?1/(t?this._itemsPerPage()+1:this._itemsPerPage()):t?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth:function(){var n=ii(this.$element()),e=this.option("initialItemWidth");return e&&e<=n?e/n:1},_itemsPerPage:function(){var t=Rn()?Math.floor(1/this._itemPercentWidth()):1;return Math.min(t,this._itemsCount())},_pagesCount:function(){return Math.ceil(this._itemsCount()/this._itemsPerPage())},_itemsCount:function(){return(this.option("items")||[]).length},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_initMarkup:function(){this._renderWrapper(),this._renderItemsContainer(),this.$element().addClass(Dv),this.$element().toggleClass(cLe,this.option("loop")),this.callBase(),this.setAria({role:"listbox",label:"gallery"})},_render:function(){this._renderDragHandler(),this._renderContainerPosition(),this._renderItemSizes(),this._renderItemPositions(),this._renderNavButtons(),this._renderIndicator(),this._renderSelectedItem(),this._renderItemVisibility(),this._renderUserInteraction(),this._setupSlideShow(),this._reviseDimensions(),this.callBase()},_dimensionChanged:function(){var t=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._cloneDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(t),!0),this._renderItemVisibility()},_renderDragHandler:function(){var t=kt("dragstart",this.NAME);Se.off(this.$element(),t),Se.on(this.$element(),t,"img",function(){return!1})},_renderWrapper:function(){this._$wrapper||(this._$wrapper=U("<div>").addClass(ben).appendTo(this.$element()))},_renderItems:function(t){if(!Rn()){var n=this.option("selectedIndex");t=t.length>n?t.slice(n,n+1):t.slice(0,1)}this.callBase(t),this._loadNextPageIfNeeded()},_onItemTemplateRendered(){return()=>{this._wasAnyItemTemplateRendered||(this._wasAnyItemTemplateRendered=!0,qd(this.$element()))}},_renderItemsContainer:function(){this._$container||(this._$container=U("<div>").addClass(xen).appendTo(this._$wrapper))},_cloneDuplicateItems:function(){if(this.option("loop")){var i,n=(this.option("items")||[]).length,e=n-1;if(n){this._getLoopedItems().remove();var r=Math.min(this._itemsPerPage(),n),o=this._getRealItems(),a=this._itemContainer();for(i=0;i<r;i++)this._cloneItemForDuplicate(o[i],a);for(i=0;i<r;i++)this._cloneItemForDuplicate(o[e-i],a)}}},_cloneItemForDuplicate:function(t,n){t&&U(t).clone(!1).addClass(oM).css("margin",0).appendTo(n)},_getRealItems:function(){var t="."+iM+":not(."+oM+")";return this.$element().find(t)},_getLoopedItems:function(){return this.$element().find("."+oM)},_emptyMessageContainer:function(){return this._$wrapper},_renderItemSizes:function(t){var n=this._itemElements(),e=this._actualItemWidth();void 0!==t&&(n=n.slice(t)),n.each(function(i){QP(U(n[i]),100*e+"%")})},_renderItemPositions:function(){var t=this._actualItemWidth(),n=this._itemsCount(),e=this._itemsPerPage(),i=this.$element().find("."+oM).length,r=n+i-1,o=this.option("wrapAround")?.5:0,a=this._itemFreeSpace(),s=!!a,l=this.option("rtlEnabled"),u=this.option("selectedIndex"),f=l?"Right":"Left";this._itemElements().each(function(S){var T=S,R=U(this).hasClass(oM);if(S>n+e-1&&(T=r-T-e),R||0===T){var L=t*(T+o)+a*(T+1-o),z=R?f.toLowerCase():"margin"+f;U(this).css(z,100*L+"%")}else s&&U(this).css("margin"+f,100*a+"%")}),this._relocateItems(u,u,!0)},_itemFreeSpace:function(){var t=this._itemsPerPage();return this.option("wrapAround")&&(t+=1),(1-this._actualItemWidth()*t)/(t+1)},_renderContainerPosition:function(t,n,e){this._releaseInvisibleItems(),t=t||0;var s,i=this,r=this._actualItemWidth(),o=t,a=this._offsetDirection()*o*(r+this._itemFreeSpace());return Z(this._animationOverride)&&(e=this._animationOverride,delete this._animationOverride),e?(i._startSwipe(),s=i._animate(a).done(i._endSwipe.bind(i))):(kr(this._$container,{left:a*this._elementWidth(),top:0}),s=(new et).resolveWith(i)),s.done(function(){this._deferredAnimate&&i._deferredAnimate.resolveWith(i),n&&this._renderItemVisibility()}),s.promise()},_startSwipe:function(){this.$element().addClass(hLe)},_endSwipe:function(){this.$element().removeClass(hLe)},_animate:function(t,n){var e=this,i=this._$container,r=new et;return Hi.animate(this._$container,se({type:"slide",to:{left:t*this._elementWidth()},duration:e.option("animationDuration"),complete:function(){e._needMoveContainerForward()&&kr(i,{left:0,top:0}),e._needMoveContainerBack()&&kr(i,{left:e._maxContainerOffset()*e._elementWidth(),top:0}),r.resolveWith(e)}},n||{})),r},_needMoveContainerForward:function(){return this._$container.position().left*this._offsetDirection()<=-this._maxItemWidth()*this._elementWidth()*this._itemsCount()+1},_needMoveContainerBack:function(){return this._$container.position().left*this._offsetDirection()>=this._actualItemWidth()*this._elementWidth()-1},_maxContainerOffset:function(){return-this._maxItemWidth()*(this._itemsCount()-this._itemsPerPage())*this._offsetDirection()},_maxItemWidth:function(){return this._actualItemWidth()+this._itemFreeSpace()},_reviseDimensions:function(){var t=this._itemElements().first().find(".dx-item-content");!t||t.is(":hidden")||(this.option("height")||this.option("height",Zn(t)),this.option("width")||this.option("width",ii(t)),this._dimensionChanged())},_renderIndicator:function(){if(this._cleanIndicators(),this.option("showIndicator")){for(var t=this._$indicator=U("<div>").addClass(pLe).appendTo(this._$wrapper),n=this.option("indicatorEnabled"),e=0;e<this._pagesCount();e++){var i=U("<div>").addClass(EX).appendTo(t);n&&this._attachIndicatorClickHandler(i,e)}this._renderSelectedPageIndicator()}},_attachIndicatorClickHandler:function(t,n){Se.on(t,kt(Vi,this.NAME),function(e){this._indicatorSelectHandler(e,n)}.bind(this))},_detachIndicatorClickHandler:function(t){Se.off(t,kt(Vi,this.NAME))},_toggleIndicatorInteraction:function(t){var n,e=(null===(n=this._$indicator)||void 0===n?void 0:n.find(gLe))||[];e.length&&e.each(function(i,r){t?this._attachIndicatorClickHandler(U(r),i):this._detachIndicatorClickHandler(U(r))}.bind(this))},_cleanIndicators:function(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem:function(){var t=this.option("selectedIndex");this._itemElements().removeClass(DX).eq(t).addClass(DX)},_renderItemVisibility:function(){this.option("initialItemWidth")||this.option("wrapAround")?this._releaseInvisibleItems():(this._itemElements().each(function(t,n){this.option("selectedIndex")===t?U(n).removeClass(rM):U(n).addClass(rM)}.bind(this)),this._getLoopedItems().addClass(rM))},_releaseInvisibleItems:function(){this._itemElements().removeClass(rM),this._getLoopedItems().removeClass(rM)},_renderSelectedPageIndicator:function(){if(this._$indicator){var t=this.option("selectedIndex"),n=this._pagesCount()-1,e=Math.ceil(t/this._itemsPerPage());e=Math.min(n,e),this._$indicator.find(gLe).removeClass(fLe).eq(e).addClass(fLe)}},_renderUserInteraction:function(){var t=this.$element(),n=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(t,oS,{disabled:this.option("disabled")||!n,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)})},_indicatorSelectHandler:function(t,n){if(this.option("indicatorEnabled")){var e=this._fitPaginatedIndex(n*this._itemsPerPage());this._needLongMove=!0,this.option("selectedIndex",e),this._loadNextPageIfNeeded(e)}},_renderNavButtons:function(){var t=this;t.option("showNavButtons")?(t._prevNavButton=U("<div>").appendTo(this._$wrapper),t._createComponent(t._prevNavButton,_Le,{direction:"prev",onClick:function(){t._prevPage()}}),t._nextNavButton=U("<div>").appendTo(this._$wrapper),t._createComponent(t._nextNavButton,_Le,{direction:"next",onClick:function(){t._nextPage()}}),this._renderNavButtonsVisibility()):t._cleanNavButtons()},_prevPage:function(){var t=this._itemsPerPage(),n=this.option("selectedIndex")-t;return n===-t&&t===this._itemsCount()?this._relocateItems(n,0):this.goToItem(this._fitPaginatedIndex(n))},_nextPage:function(){var t=this._itemsPerPage(),n=this.option("selectedIndex")+t;return n===t&&t===this._itemsCount()?this._relocateItems(n,0):this.goToItem(this._fitPaginatedIndex(n)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded:function(t){t=void 0===t?this.option("selectedIndex"):t,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(t)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(function(){this._renderIndicator(),this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(t)}.bind(this))},_shouldLoadNextPage:function(t){return t+2*this._itemsPerPage()>this.option("items").length},_allowDynamicItemsAppend:function(){return!0},_fitPaginatedIndex:function(t){var n=this._itemsPerPage(),e=t<0?n+t:this._itemsCount()-t;return t>this._itemsCount()-1?(t=0,this._goToGhostItem=!0):e<n&&e>0&&(t>0?t-=n-e:t+=n-e),t},_cleanNavButtons:function(){this._prevNavButton&&(this._prevNavButton.remove(),delete this._prevNavButton),this._nextNavButton&&(this._nextNavButton.remove(),delete this._nextNavButton)},_renderNavButtonsVisibility:function(){if(this.option("showNavButtons")&&this._prevNavButton&&this._nextNavButton){var t=this.option("selectedIndex"),n=this.option("loop"),e=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===e&&(this._prevNavButton.hide(),this._nextNavButton.hide()),!n){var i=t===e-this._itemsPerPage(),r=e<2||0===t;i=this._dataSource&&this._dataSource.paginate()?i&&this._isLastPage():i||e<2,r&&this._prevNavButton.hide(),i&&this._nextNavButton.hide()}}},_setupSlideShow:function(){var t=this,n=t.option("slideshowDelay");clearTimeout(t._slideshowTimer),n&&(t._slideshowTimer=setTimeout(function(){t._userInteraction?t._setupSlideShow():t.nextItem(!0).done(t._setupSlideShow)},n))},_elementWidth:function(){return this._cacheElementWidth||(this._cacheElementWidth=wn(this.$element())),this._cacheElementWidth},_clearCacheWidth:function(){delete this._cacheElementWidth},_swipeStartHandler:function(t){this._releaseInvisibleItems(),this._clearCacheWidth(),this._elementWidth();var n=this._itemsCount();if(n){if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){var e=this.option("selectedIndex"),i=n-e-this._itemsPerPage(),r=e,o=this.option("rtlEnabled");t.event.maxLeftOffset=o?r:i,t.event.maxRightOffset=o?i:r}}else t.event.cancel=!0},_stopItemAnimations:function(){Hi.stop(this._$container,!0)},_swipeUpdateHandler:function(t){var n=this.option("wrapAround")?1:0,e=this._offsetDirection()*t.event.offset*(this._itemsPerPage()+n)-this.option("selectedIndex");e<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(e))),this._renderContainerPosition(e)},_swipeEndHandler:function(t){var n=t.event.targetOffset*this._offsetDirection()*this._itemsPerPage(),e=this.option("selectedIndex"),i=this._fitIndex(e-n),r=this._fitPaginatedIndex(i);Math.abs(n)<this._itemsPerPage()?this._relocateItems(e):this._itemsPerPage()!==this._itemsCount()?this.option("selectedIndex",r):this._relocateItems(n>0?-n:0)},_setFocusOnSelect:function(){this._userInteraction=!0;var t=this.itemElements().filter("."+DX);this.option("focusedElement",kn(t)),this._userInteraction=!1},_flipIndex:function(t){var n=this._itemsCount();return(t%=n)>(n+1)/2&&(t-=n),t<-(n-1)/2&&(t+=n),t},_fitIndex:function(t){if(!this.option("loop"))return t;var n=this._itemsCount();return(t>=n||t<0)&&(this._goToGhostItem=!0),t>=n&&(t=n-t),(t%=n)<0&&(t+=n),t},_clean:function(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose:function(){this._wasAnyItemTemplateRendered=null,clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection:function(t,n){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(t[0],n[0]),this._renderSelectedPageIndicator()},_relocateItems:function(t,n,e){void 0===n&&(n=t);var i=this._calculateIndexOffset(t,n);this._renderContainerPosition(i,!0,this.option("animationEnabled")&&!e).done(function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()})},_focusInHandler:function(){Hi.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler:function(){Hi.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:Be,_moveFocus:function(){this._stopItemAnimations(),this.callBase.apply(this,arguments);var t=this.itemElements().index(U(this.option("focusedElement")));this.goToItem(t,this.option("animationEnabled"))},_visibilityChanged:function(t){t&&this._reviseDimensions()},_calculateIndexOffset:function(t,n){void 0===n&&(n=t);var e=n-t;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(t)&&this._isItemOnLastPage(n)?e=-this._itemsPerPage():this._isItemOnLastPage(t)&&this._isItemOnFirstPage(n)&&(e=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,e-n},_isItemOnLastPage:function(t){return t>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage:function(t){return t<=this._itemsPerPage()},_optionChanged:function(t){switch(t.name){case"width":case"initialItemWidth":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"animationDuration":this._renderNavButtonsVisibility();break;case"animationEnabled":break;case"loop":this.$element().toggleClass(cLe,t.value),this.option("loopItemFocus",t.value),Rn()&&(this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility());break;case"showIndicator":this._renderIndicator();break;case"showNavButtons":this._renderNavButtons();break;case"slideshowDelay":this._setupSlideShow();break;case"wrapAround":case"stretchImages":Rn()&&(this._renderItemSizes(),this._renderItemPositions(),this._renderItemVisibility());break;case"swipeEnabled":this._renderUserInteraction();break;case"indicatorEnabled":this._toggleIndicatorInteraction(t.value);break;default:this.callBase(t)}},goToItem:function(t,n){var e=this.option("selectedIndex"),i=this._itemsCount();return void 0!==n&&(this._animationOverride=n),t=this._fitIndex(t),this._deferredAnimate=new et,t>i-1||t<0||e===t?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",t),this._deferredAnimate.promise())},prevItem:function(t){return this.goToItem(this.option("selectedIndex")-1,t)},nextItem:function(t){return this.goToItem(this.option("selectedIndex")+1,t)}});On("dxGallery",vLe);let yLe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})();var Eb="tasks",s8="dependencies",l8="resources",u8="resourceAssignments",Oen_create=t=>({NotifyTaskCreated:(n,e,i)=>{t._onRecordInserted(Eb,n,e)},NotifyTaskRemoved:(n,e,i)=>{t._onRecordRemoved(Eb,n,i)},NotifyTaskUpdated:(n,e,i)=>{t._onRecordUpdated(Eb,n,e)},NotifyParentTaskUpdated:(n,e)=>{t._onParentTaskUpdated(n)},NotifyDependencyInserted:(n,e,i)=>{t._onRecordInserted(s8,n,e)},NotifyDependencyRemoved:(n,e,i)=>{t._onRecordRemoved(s8,n,i)},NotifyResourceCreated:(n,e,i)=>{t._onRecordInserted(l8,n,e)},NotifyResourceRemoved:(n,e,i)=>{t._onRecordRemoved(l8,n,i)},NotifyResourceAssigned:(n,e,i)=>{t._onRecordInserted(u8,n,e)},NotifyResourceUnassigned:(n,e,i)=>{t._onRecordRemoved(u8,n,i)},NotifyParentDataRecalculated:n=>{t._onParentTasksRecalculated(n)},NotifyTaskCreating:n=>{t._actionsManager.raiseInsertingAction(Eb,n)},NotifyTaskRemoving:n=>{t._actionsManager.raiseDeletingAction(Eb,n)},NotifyTaskUpdating:n=>{t._actionsManager.raiseUpdatingAction(Eb,n)},NotifyTaskMoving:n=>{t._actionsManager.raiseUpdatingAction(Eb,n,t._actionsManager.getTaskMovingAction())},NotifyTaskEditDialogShowing:n=>{t._actionsManager.raiseTaskEditDialogShowingAction(n)},NotifyResourceManagerDialogShowing:n=>{t._actionsManager.raiseResourceManagerDialogShowingAction(n)},NotifyDependencyInserting:n=>{t._actionsManager.raiseInsertingAction(s8,n)},NotifyDependencyRemoving:n=>{t._actionsManager.raiseDeletingAction(s8,n)},NotifyResourceCreating:n=>{t._actionsManager.raiseInsertingAction(l8,n)},NotifyResourceRemoving:n=>{t._actionsManager.raiseDeletingAction(l8,n)},NotifyResourceAssigning:n=>{t._actionsManager.raiseInsertingAction(u8,n)},NotifyResourceUnassigning:n=>{t._actionsManager.raiseDeletingAction(u8,n)},NotifyScaleCellPrepared:n=>{t._actionsManager.raiseScaleCellPreparedAction(n)}});class CLe extends kw{constructor(n,e,i){super(),this._optionName=n,this._getLoadPanel=e,this._dataSourceChangedCallback=i}insert(n,e,i){this._showLoadPanel(),this._getStore().insert(n).done(r=>{e&&e(r),this._hideLoadPanel()}).fail(r=>{i&&i(r),this._hideLoadPanel()})}update(n,e,i,r){this._showLoadPanel(),this._getStore().update(n,e).done((o,a)=>{i&&i(o,a),this._hideLoadPanel()}).fail(o=>{r&&r(o),this._hideLoadPanel()})}remove(n,e,i){this._showLoadPanel(),this._getStore().remove(n).done(r=>{e&&e(r),this._hideLoadPanel()}).fail(r=>{i&&i(r),this._hideLoadPanel()})}_dataSourceChangedHandler(n,e){this._dataSourceChangedCallback(this._optionName,n)}_dataSourceOptions(){return{paginate:!1}}_dataSourceLoadingChangedHandler(n){n&&!this._dataSource.isLoaded()?this._showLoadPanel():this._hideLoadPanel()}_showLoadPanel(){var n;null===(n=this._getLoadPanel())||void 0===n||n.show()}_hideLoadPanel(){var n;null===(n=this._getLoadPanel())||void 0===n||n.hide()}_getStore(){return this._dataSource.store()}_getItems(){return this._getStore()._array||this._dataSource.items()}_reloadDataSource(){return this._dataSource.load()}dispose(){this._disposeDataSource()}_optionChanged(n){}}CLe.include(bp);const Ten=CLe;var ac="tasks",d8="dependencies",aM="resources",c8="resourceAssignments";class ken{constructor(n){this._gantt=n,this._mappingHelper=n._mappingHelper,this._customFieldsManager=n._customFieldsManager}_createActionByOption(n){return this._gantt._createActionByOption(n)}_getTaskData(n){return this._gantt.getTaskData(n)}_convertCoreToMappedData(n,e){return this._mappingHelper.convertCoreToMappedData(n,e)}_convertMappedToCoreData(n,e){return this._mappingHelper.convertMappedToCoreData(n,e)}_convertMappedToCoreFields(n,e){return this._mappingHelper.convertMappedToCoreFields(n,e)}_convertCoreToMappedFields(n,e){return this._mappingHelper.convertCoreToMappedFields(n,e)}_saveCustomFieldsDataToCache(n,e){this._customFieldsManager.saveCustomFieldsDataToCache(n,e,arguments.length>2&&void 0!==arguments[2]&&arguments[2],arguments.length>3&&void 0!==arguments[3]&&arguments[3])}createTaskDblClickAction(){this._taskDblClickAction=this._createActionByOption("onTaskDblClick")}taskDblClickAction(n){this._taskDblClickAction||this.createTaskDblClickAction(),this._taskDblClickAction(n)}raiseTaskDblClickAction(n,e){var i={cancel:!1,data:this._getTaskData(n),event:e,key:n};return this.taskDblClickAction(i),!i.cancel}createTaskClickAction(){this._taskClickAction=this._createActionByOption("onTaskClick")}taskClickAction(n){this._taskClickAction||this.createTaskClickAction(),this._taskClickAction(n)}raiseTaskClickAction(n,e){var i={key:n,event:e,data:this._getTaskData(n)};this.taskClickAction(i)}createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}selectionChangedAction(n){this._selectionChangedAction||this.createSelectionChangedAction(),this._selectionChangedAction(n)}raiseSelectionChangedAction(n){this.selectionChangedAction({selectedRowKey:n})}createCustomCommandAction(){this._customCommandAction=this._createActionByOption("onCustomCommand")}customCommandAction(n){this._customCommandAction||this.createCustomCommandAction(),this._customCommandAction(n)}raiseCustomCommand(n){this.customCommandAction({name:n})}createContextMenuPreparingAction(){this._contextMenuPreparingAction=this._createActionByOption("onContextMenuPreparing")}contextMenuPreparingAction(n){this._contextMenuPreparingAction||this.createContextMenuPreparingAction(),this._contextMenuPreparingAction(n)}raiseContextMenuPreparing(n){this.contextMenuPreparingAction(n)}_getInsertingAction(n){switch(n){case ac:return this._getTaskInsertingAction();case d8:return this._getDependencyInsertingAction();case aM:return this._getResourceInsertingAction();case c8:return this._getResourceAssigningAction()}return()=>{}}raiseInsertingAction(n,e){var i=this._getInsertingAction(n);if(i){var r={cancel:!1,values:this._convertCoreToMappedData(n,e.values)};i(r),e.cancel=r.cancel,e.values=this._convertMappedToCoreData(n,r.values),n===ac&&this._saveCustomFieldsDataToCache("gantt_new_task_key",r.values)}}createTaskInsertingAction(){this._taskInsertingAction=this._createActionByOption("onTaskInserting")}taskInsertingAction(n){this._getTaskInsertingAction()(n)}_getTaskInsertingAction(){return this._taskInsertingAction||this.createTaskInsertingAction(),this._taskInsertingAction}createDependencyInsertingAction(){this._dependencyInsertingAction=this._createActionByOption("onDependencyInserting")}dependencyInsertingAction(n){this._getDependencyInsertingAction()(n)}_getDependencyInsertingAction(){return this._dependencyInsertingAction||this.createDependencyInsertingAction(),this._dependencyInsertingAction}createResourceInsertingAction(){this._resourceInsertingAction=this._createActionByOption("onResourceInserting")}resourceInsertingAction(n){this._getResourceInsertingAction()(n)}_getResourceInsertingAction(){return this._resourceInsertingAction||this.createResourceInsertingAction(),this._resourceInsertingAction}createResourceAssigningAction(){this._resourceAssigningAction=this._createActionByOption("onResourceAssigning")}resourceAssigningAction(n){this._getResourceAssigningAction()(n)}_getResourceAssigningAction(){return this._resourceAssigningAction||this.createResourceAssigningAction(),this._resourceAssigningAction}_getInsertedAction(n){switch(n){case ac:return this._getTaskInsertedAction();case d8:return this._getDependencyInsertedAction();case aM:return this._getResourceInsertedAction();case c8:return this._getResourceAssignedAction()}return()=>{}}raiseInsertedAction(n,e,i){var r=this._getInsertedAction(n);r&&r({values:e,key:i})}createTaskInsertedAction(){this._taskInsertedAction=this._createActionByOption("onTaskInserted")}taskInsertedAction(n){this._getTaskInsertedAction()(n)}_getTaskInsertedAction(){return this._taskInsertedAction||this.createTaskInsertedAction(),this._taskInsertedAction}createDependencyInsertedAction(){this._dependencyInsertedAction=this._createActionByOption("onDependencyInserted")}dependencyInsertedAction(n){this._getDependencyInsertedAction()(n)}_getDependencyInsertedAction(){return this._dependencyInsertedAction||this.createDependencyInsertedAction(),this._dependencyInsertedAction}createResourceInsertedAction(){this._resourceInsertedAction=this._createActionByOption("onResourceInserted")}resourceInsertedAction(n){this._getResourceInsertedAction()(n)}_getResourceInsertedAction(){return this._resourceInsertedAction||this.createResourceInsertedAction(),this._resourceInsertedAction}createResourceAssignedAction(){this._resourceAssignedAction=this._createActionByOption("onResourceAssigned")}resourceAssignedAction(n){this._getResourceAssignedAction()(n)}_getResourceAssignedAction(){return this._resourceAssignedAction||this.createResourceAssignedAction(),this._resourceAssignedAction}_getDeletingAction(n){switch(n){case ac:return this._getTaskDeletingAction();case d8:return this._getDependencyDeletingAction();case aM:return this._getResourceDeletingAction();case c8:return this._getResourceUnassigningAction()}return()=>{}}raiseDeletingAction(n,e){var i=this._getDeletingAction(n);if(i){var r={cancel:!1,key:e.key,values:this._convertCoreToMappedData(n,e.values)};i(r),e.cancel=r.cancel}}createTaskDeletingAction(){this._taskDeletingAction=this._createActionByOption("onTaskDeleting")}taskDeletingAction(n){this._getTaskDeletingAction()(n)}_getTaskDeletingAction(){return this._taskDeletingAction||this.createTaskDeletingAction(),this._taskDeletingAction}createDependencyDeletingAction(){this._dependencyDeletingAction=this._createActionByOption("onDependencyDeleting")}dependencyDeletingAction(n){this._getDependencyDeletingAction()(n)}_getDependencyDeletingAction(){return this._dependencyDeletingAction||this.createDependencyDeletingAction(),this._dependencyDeletingAction}createResourceDeletingAction(){this._resourceDeletingAction=this._createActionByOption("onResourceDeleting")}resourceDeletingAction(n){this._getResourceDeletingAction()(n)}_getResourceDeletingAction(){return this._resourceDeletingAction||this.createResourceDeletingAction(),this._resourceDeletingAction}createResourceUnassigningAction(){this._resourceUnassigningAction=this._createActionByOption("onResourceUnassigning")}resourceUnassigningAction(n){this._getResourceUnassigningAction()(n)}_getResourceUnassigningAction(){return this._resourceUnassigningAction||this.createResourceUnassigningAction(),this._resourceUnassigningAction}_getDeletedAction(n){switch(n){case ac:return this._getTaskDeletedAction();case d8:return this._getDependencyDeletedAction();case aM:return this._getResourceDeletedAction();case c8:return this._getResourceUnassignedAction()}return()=>{}}raiseDeletedAction(n,e,i){var r=this._getDeletedAction(n);r&&r({key:e,values:i})}createTaskDeletedAction(){this._taskDeletedAction=this._createActionByOption("onTaskDeleted")}taskDeletedAction(n){this._getTaskDeletedAction()(n)}_getTaskDeletedAction(){return this._taskDeletedAction||this.createTaskDeletedAction(),this._taskDeletedAction}createDependencyDeletedAction(){this._dependencyDeletedAction=this._createActionByOption("onDependencyDeleted")}dependencyDeletedAction(n){this._getDependencyDeletedAction()(n)}_getDependencyDeletedAction(){return this._dependencyDeletedAction||this.createDependencyDeletedAction(),this._dependencyDeletedAction}createResourceDeletedAction(){this._resourceDeletedAction=this._createActionByOption("onResourceDeleted")}resourceDeletedAction(n){this._getResourceDeletedAction()(n)}_getResourceDeletedAction(){return this._resourceDeletedAction||this.createResourceDeletedAction(),this._resourceDeletedAction}createResourceUnassignedAction(){this._resourceUnassignedAction=this._createActionByOption("onResourceUnassigned")}resourceUnassignedAction(n){this._getResourceUnassignedAction()(n)}_getResourceUnassignedAction(){return this._resourceUnassignedAction||this.createResourceUnassignedAction(),this._resourceUnassignedAction}_getUpdatingAction(n){return n===ac?this._getTaskUpdatingAction():()=>{}}raiseUpdatingAction(n,e,i){if(i=i||this._getUpdatingAction(n)){var r=n===ac,o={cancel:!1,key:e.key,newValues:this._convertCoreToMappedData(n,e.newValues),values:r?this._getTaskData(e.key):this._convertCoreToMappedData(n,e.values)};if(r&&this._customFieldsManager.cache.hasData(o.key)&&this._customFieldsManager.addCustomFieldsDataFromCache(o.key,o.newValues),i(o),e.cancel=o.cancel,e.newValues=this._convertMappedToCoreData(n,o.newValues),r)if(o.cancel)this._customFieldsManager.resetCustomFieldsDataCache(o.key);else{var a=!Object.keys(e.newValues).length;this._saveCustomFieldsDataToCache(o.key,o.newValues,a)}}}createTaskUpdatingAction(){this._taskUpdatingAction=this._createActionByOption("onTaskUpdating")}taskUpdatingAction(n){this._getTaskUpdatingAction()(n)}_getTaskUpdatingAction(){return this._taskUpdatingAction||this.createTaskUpdatingAction(),this._taskUpdatingAction}_getUpdatedAction(n){return n===ac?this._getTaskUpdatedAction():()=>{}}raiseUpdatedAction(n,e,i){var r=this._getUpdatedAction(n);r&&r({values:e,key:i})}createTaskUpdatedAction(){this._taskUpdatedAction=this._createActionByOption("onTaskUpdated")}taskUpdatedAction(n){this._getTaskUpdatedAction()(n)}_getTaskUpdatedAction(){return this._taskUpdatedAction||this.createTaskUpdatedAction(),this._taskUpdatedAction}createTaskEditDialogShowingAction(){this._taskEditDialogShowingAction=this._createActionByOption("onTaskEditDialogShowing")}taskEditDialogShowingAction(n){this._getTaskEditDialogShowingAction()(n)}_getTaskEditDialogShowingAction(){return this._taskEditDialogShowingAction||this.createTaskEditDialogShowingAction(),this._taskEditDialogShowingAction}raiseTaskEditDialogShowingAction(n){var e=this._getTaskEditDialogShowingAction();if(e){var i={cancel:!1,key:n.key,values:this._convertCoreToMappedData(ac,n.values),readOnlyFields:this._convertCoreToMappedFields(ac,n.readOnlyFields),hiddenFields:this._convertCoreToMappedFields(ac,n.hiddenFields)};e(i),n.cancel=i.cancel,n.values=this._convertMappedToCoreData(ac,i.values),n.readOnlyFields=this._convertMappedToCoreFields(ac,i.readOnlyFields),n.hiddenFields=this._convertMappedToCoreFields(ac,i.hiddenFields)}}createResourceManagerDialogShowingAction(){this._resourceManagerDialogShowingAction=this._createActionByOption("onResourceManagerDialogShowing")}resourceManagerDialogShowingAction(n){this._getResourceManagerDialogShowingAction()(n)}_getResourceManagerDialogShowingAction(){return this._resourceManagerDialogShowingAction||this.createResourceManagerDialogShowingAction(),this._resourceManagerDialogShowingAction}raiseResourceManagerDialogShowingAction(n){var e=this._getResourceManagerDialogShowingAction();if(e){var r={cancel:!1,values:n.values.resources.items.map(o=>this._convertMappedToCoreData(aM,o))};e(r),n.cancel=r.cancel}}createTaskMovingAction(){this._taskMovingAction=this._createActionByOption("onTaskMoving")}taskMovingAction(n){this.getTaskMovingAction()(n)}getTaskMovingAction(){return this._taskMovingAction||this.createTaskMovingAction(),this._taskMovingAction}getScaleCellPreparedAction(){return this._scaleCellPreparedAction||this.createScaleCellPreparedAction(),this._scaleCellPreparedAction}createScaleCellPreparedAction(){this._scaleCellPreparedAction=this._createActionByOption("onScaleCellPrepared")}raiseScaleCellPreparedAction(n){var e=this.getScaleCellPreparedAction();e&&e({scaleIndex:n.scaleIndex,scaleType:this._getScaleType(n.scaleType),scaleElement:kn(U(n.scaleElement)),separatorElement:kn(U(n.separatorElement)),startDate:new Date(n.start),endDate:new Date(n.end)})}_getScaleType(n){switch(n){case 0:return"minutes";case 1:return"hours";case 2:return"sixHours";case 3:return"days";case 4:return"weeks";case 5:return"months";case 6:return"quarters";case 7:return"years";case 8:return"fiveYears";default:return}}}class Men{constructor(){this._cache={},this._timers={}}saveData(n,e,i){if(e){this._clearTimer(n);var r=this._getCache(n,!0);rP(r,e,!0),i&&this._setExpireTimer(n,i)}}pullDataFromCache(n,e){var i=this._getCache(n);i&&rP(e,i),this._onKeyExpired(n)}hasData(n){return!!this._cache[n]}resetCache(n){this._onKeyExpired(n)}_getCache(n,e){return!this._cache[n]&&e&&(this._cache[n]={}),this._cache[n]}_setExpireTimer(n,e){this._timers[n]=setTimeout(()=>{e(n,this._getCache(n)),this._onKeyExpired(n)},200)}_onKeyExpired(n){this._clearCache(n),this._clearTimer(n)}_clearCache(n){delete this._cache[n]}_clearTimer(n){var e=this._timers;e&&e[n]&&(clearTimeout(e[n]),delete e[n])}}var $s={prepareMapHandler:t=>n=>Object.keys(t).reduce((e,i)=>(e["key"===i?"id":i]=t[i](n),e),{}),prepareSetterMapHandler:t=>n=>Object.keys(t).reduce((e,i)=>(t[i](e,n["key"===i?"id":i]),e),{}),compileGettersByOption(t){var n={};for(var e in t){var i=e.match(/(\w*)Expr/);i&&(n[i[1]]=Ai(t[i[0]]))}return n},compileSettersByOption(t){var n={};for(var e in t){var i=e.match(/(\w*)Expr/);i&&(n[i[1]]=ph(t[i[0]]))}return n},getStoreObject(t,n){var e=$s.compileSettersByOption(t);return Object.keys(e).reduce((i,r)=>("key"!==r&&e[r](i,n[r]),i),{})},getInvertedData(t,n){var e={};if(t)for(var i=0;i<t.length;i++){var r=t[i];e[n(r)]=r}return e},getArrayFromOneElement:t=>null==t?[]:[t],getSelectionMode:t=>t?"single":"none",convertTreeToList(t,n){null!=t&&t.data&&null!=t&&t.visible&&n.push(t.data);for(var e=0;e<(null===(i=t.children)||void 0===i?void 0:i.length);e++){var i;$s.convertTreeToList(t.children[e],n)}},getAllParentNodesKeys(t,n){var e;null!=t&&t.data&&n.push(t.key),null!=t&&null!==(e=t.parent)&&void 0!==e&&e.data&&$s.getAllParentNodesKeys(t.parent,n)},getDefaultOptions:()=>({tasks:{dataSource:null,keyExpr:"id",parentIdExpr:"parentId",startExpr:"start",endExpr:"end",progressExpr:"progress",titleExpr:"title",colorExpr:"color"},dependencies:{dataSource:null,keyExpr:"id",predecessorIdExpr:"predecessorId",successorIdExpr:"successorId",typeExpr:"type"},resources:{dataSource:null,keyExpr:"id",textExpr:"text",colorExpr:"color"},resourceAssignments:{dataSource:null,keyExpr:"id",taskIdExpr:"taskId",resourceIdExpr:"resourceId"},columns:void 0,taskListWidth:300,showResources:!0,showDependencies:!0,taskTitlePosition:"inside",firstDayOfWeek:void 0,selectedRowKey:void 0,onSelectionChanged:null,onTaskClick:null,onTaskDblClick:null,onTaskInserting:null,onTaskInserted:null,onTaskDeleting:null,onTaskDeleted:null,onTaskUpdating:null,onTaskUpdated:null,onTaskMoving:null,onTaskEditDialogShowing:null,onDependencyInserting:null,onDependencyInserted:null,onDependencyDeleting:null,onDependencyDeleted:null,onResourceInserting:null,onResourceInserted:null,onResourceDeleting:null,onResourceDeleted:null,onResourceAssigning:null,onResourceAssigned:null,onResourceUnassigning:null,onResourceUnassigned:null,onCustomCommand:null,onContextMenuPreparing:null,allowSelection:!0,showRowLines:!0,stripLines:void 0,scaleType:"auto",scaleTypeRange:{min:"minutes",max:"years"},editing:{enabled:!1,allowTaskAdding:!0,allowTaskDeleting:!0,allowTaskUpdating:!0,allowDependencyAdding:!0,allowDependencyDeleting:!0,allowResourceAdding:!0,allowResourceDeleting:!0,allowResourceUpdating:!0,allowTaskResourceUpdating:!0},validation:{validateDependencies:!1,autoUpdateParentTasks:!1,enablePredecessorGap:!1},toolbar:null,contextMenu:{enabled:!0,items:void 0},taskTooltipContentTemplate:null,taskProgressTooltipContentTemplate:null,taskTimeTooltipContentTemplate:null,taskContentTemplate:null,rootValue:0,sorting:{ascendingText:ye.format("dxGantt-sortingAscendingText"),descendingText:ye.format("dxGantt-sortingDescendingText"),clearText:ye.format("dxGantt-sortingClearText"),mode:"single",showSortIndexes:!1},filterRow:void 0,headerFilter:void 0,rtlEnabled:!1})},OX="tasks";class Aen{constructor(n){this._gantt=n,this._mappingHelper=n._mappingHelper,this.cache=new Men}_getTaskCustomFields(){var n=this._gantt.option("columns"),e=n&&n.map(r=>r.dataField),i=this._mappingHelper.getTaskMappedFieldNames();return e?e.filter(r=>i.indexOf(r)<0):[]}_getCustomFieldsData(n){return this._getTaskCustomFields().reduce((e,i)=>(n&&void 0!==n[i]&&(e[i]=n[i]),e),{})}addCustomFieldsData(n,e){if(e){var i=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),r=Ai(this._gantt.option("".concat(OX,".keyExpr"))),o=i&&i.filter(u=>r(u)===n)[0],a=this._getTaskCustomFields();if(o)for(var s=0;s<a.length;s++){var l=a[s];Object.prototype.hasOwnProperty.call(o,l)&&(e[l]=o[l])}}}appendCustomFields(n){var e=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),i=this._gantt._getTaskKeyGetter(),r=$s.getInvertedData(e,i);return n.reduce((o,a)=>{var s=i(a),l=r[s];if(l){var u={};for(var f in l)u[f]=Object.prototype.hasOwnProperty.call(a,f)?a[f]:l[f];o.push(u)}else o.push(a);return o},[])}addCustomFieldsDataFromCache(n,e){this.cache.pullDataFromCache(n,e)}saveCustomFieldsDataToCache(n,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this._getCustomFieldsData(e);Object.keys(o).length>0&&this.cache.saveData(n,o,i?(a,s)=>{var l=this._gantt["_".concat(OX,"Option")];l&&s&&l.update(a,s,(u,f)=>{var S={};this.addCustomFieldsData(f,S),l._reloadDataSource().done(R=>{this._gantt._ganttTreeList.updateDataSource(R??l._dataSource,!1,r)});var T=this._gantt.option("selectedRowKey");this._gantt._ganttView._selectTask(T),this._gantt._actionsManager.raiseUpdatedAction(OX,S,f)})}:null)}resetCustomFieldsDataCache(n){this.cache.resetCache(n)}}var TX=function(t,n,e){var i=U(t),r=e?i.scrollLeft():i.scrollTop(),o=e?"Width":"Height",l=i.prop("scroll".concat(o))-i.prop("client".concat(o))-r|0;return(0!==r||0!==l)&&(!!(0===r&&n>=0||0===l&&n<=0||r>0&&l>0)||void 0)},bLe=function(t,n){var e=U(t);return{validate:function(i){if(Au(i)&&(!n||U(i.target).is(t)))return!!TX(e,-i.delta,i.shiftKey)&&(i._needSkipEvent=!0,!0)}}},sM="dxTagData",lM="dx-tag",xLe="dx-tagbox-multi-tag",wLe="dx-tag-custom",SLe="dx-tag-remove-button",DLe="dx-tagbox-single-line",ELe=s9.inherit({_supportedKeys:function(){var t=this.callBase(),n=i=>this._list._keyboardHandler(i),e=this.option("rtlEnabled");return se({},t,{backspace:function(i){if(this._isCaretAtTheStart()){this._processKeyboardEvent(i),this._isTagRemoved=!0;var r=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==r.length&&(this._preserveFocusedTag=!0,this._removeTagElement(r),delete this._preserveFocusedTag)}},upArrow:(i,r)=>i.altKey||!this._list?t.upArrow.call(this,i):n(r),downArrow:(i,r)=>i.altKey||!this._list?t.downArrow.call(this,i):n(r),del:function(i){if(this._$focusedTag&&this._isCaretAtTheStart()){this._processKeyboardEvent(i),this._isTagRemoved=!0;var r=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(r),delete this._preserveFocusedTag}},enter:function(i,r){var o=this._list&&null!==this._list.option("focusedElement");if(this.option("acceptCustomValue")&&!o)return i.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler(i));this.option("opened")&&(this._saveValueChangeEvent(i),n(r),i.preventDefault())},space:function(i,r){var o=this.option("opened"),a=this._shouldRenderSearchEvent();o&&!a&&(this._saveValueChangeEvent(i),n(r),i.preventDefault())},leftArrow:function(i){if(!(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&e&&!this._$focusedTag)){i.preventDefault();var r=e?"next":"prev";this._moveTagFocus(r),!this.option("multiline")&&this._scrollContainer(r)}},rightArrow:function(i){if(this._isCaretAtTheStart()&&!this._isEmpty()&&(!this._isEditable()||e||this._$focusedTag)){i.preventDefault();var r=e?"prev":"next";this._moveTagFocus(r),!this.option("multiline")&&this._scrollContainer(r)}}})},_processKeyboardEvent:function(t){t.preventDefault(),t.stopPropagation(),this._saveValueChangeEvent(t)},_isEmpty:function(){return 0===this._getValue().length},_updateTagsContainer:function(t){this._$tagsContainer=t.addClass("dx-tag-container")},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var t=LG(this._input());return 0===t.start&&0===t.end},_moveTagFocus:function(t,n){if(!this._$focusedTag){var e=this._tagElements();return this._$focusedTag="next"===t?e.first():e.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[t](".".concat(lM));i.length>0?this._replaceFocusedTag(i):(n||"next"===t&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(t){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=t,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(t){return t&&t.length&&t[0]!==this._focusTarget()[0]?t:this.callBase()},_getLabelContainer:function(){return this._$tagsContainer},_scrollContainer:function(t){if(!this.option("multiline")&&Rn()&&this._$tagsContainer){var n=this._getScrollPosition(t);this._$tagsContainer.scrollLeft(n)}},_getScrollPosition:function(t){return"start"===t||"end"===t?this._getBorderPosition(t):this._$focusedTag?this._getFocusedTagPosition(t):this._getBorderPosition("end")},_getBorderPosition:function(t){var n=this.option("rtlEnabled");return"end"===t^n^!n?0:(n?-1:1)*(this._$tagsContainer.get(0).scrollWidth-ii(this._$tagsContainer))},_getFocusedTagPosition:function(t){var e="next"===t^this.option("rtlEnabled"),{left:i}=this._$focusedTag.position(),r=this._$tagsContainer.scrollLeft();return e&&(i+=ii(this._$focusedTag,!0)-ii(this._$tagsContainer)),e^i<0&&(r+=i),r},_setNextValue:Be,_getDefaultOptions:function(){return se(this.callBase(),{value:[],showDropDownButton:!1,maxFilterQueryLength:1500,tagTemplate:"tag",selectAllText:ye.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(t){this._multiTagPreparingHandler(t.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(t){var{length:n}=this._getValue();t.text=this.option("showMultiTagOnly")?ye.getFormatter("dxTagBox-selected")(n):ye.getFormatter("dxTagBox-moreSelected")(n-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({tag:new Ac((t,n)=>{var e,i=U("<div>").addClass("dx-tag-content");U("<span>").text(null!==(e=n.text)&&void 0!==e?e:n).appendTo(i),U("<div>").addClass(SLe).appendTo(i),t.append(i)},["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})})},_toggleSubmitElement:function(t){t?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=U("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var t=this._getValue(),n=[],e=0,i=t.length;e<i;e++){var r=this._shouldUseDisplayValue(t[e]);n.push(U("<option>").val(r?this._displayGetter(t[e]):t[e]).attr("selected","selected"))}this._getSubmitElement().empty().append(n)}},_initMarkup:function(){this._tagElementsCache=U();var t=!this.option("multiline");this.$element().addClass("dx-tagbox").toggleClass("dx-tagbox-only-select",!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(DLe,t),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var t=!Z(this.option("fieldTemplate"));this.$element().toggleClass("dx-tagbox-default-template",t).toggleClass("dx-tagbox-custom-template",!t),this.callBase()},_renderTagRemoveAction:function(){var t=this._createAction(this._removeTagHandler.bind(this)),n=kt(Vi,"dxTagBoxTagRemove");Se.off(this._$tagsContainer,n),Se.on(this._$tagsContainer,n,".".concat(SLe),e=>{t({event:e})})},_renderSingleLineScroll:function(){var t=kt("dxmousewheel",this.NAME),n=this.$element(),e=this.option("multiline");Se.off(n,t),"desktop"===pn.real().deviceType?e||Se.on(n,t,this._tagContainerMouseWheelHandler.bind(this)):this._$tagsContainer&&this._$tagsContainer.css("overflowX",e?"":"auto")},_tagContainerMouseWheelHandler:function(t){var n=this._$tagsContainer.scrollLeft(),e=-.3*t.delta;if(!Xo(t)&&TX(this._$tagsContainer,e,!0))return this._$tagsContainer.scrollLeft(n+e),!1},_renderEvents:function(){this.callBase();var t=this._input(),n=kt("keydown",this.NAME);Se.on(t,n,e=>{var i=Wo(e);!this._isControlKey(i)&&this._isEditable()&&this._clearTagFocus()})},_popupWrapperClass:function(){return this.callBase()+" dx-tagbox-popup-wrapper"},_renderInput:function(){this.callBase(),this._renderPreventBlurOnInputClick()},_renderPreventBlurOnInputClick:function(){var t=kt("mousedown","dxTagBox");Se.off(this._inputWrapper(),t),Se.on(this._inputWrapper(),t,n=>{n.target!==this._input()[0]&&this._isFocused()&&n.preventDefault()})},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return Qt()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler(),this.option("text","")},_focusInHandler:function(t){this._preventNestedFocusEvent(t)||this._scrollContainer("end"),this.callBase(t)},_renderInputValue:function(){return this.option("displayValue",this._searchValue()),this.callBase()},_restoreInputText:function(t){t||this._clearTextValue()},_focusOutHandler:function(t){this._preventNestedFocusEvent(t)||(this._clearTagFocus(),this._scrollContainer("start")),this.callBase(t)},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._list.$element():this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")&&(this._list.registerKeyHandler("tab",t=>this._popupElementTabHandler(t)),this._list.registerKeyHandler("escape",t=>this._popupElementEscHandler(t)))},_canListHaveFocus:function(){return"useButtons"===this.option("applyValueMode")},_listConfig:function(){var t=this.option("showSelectionControls")?"all":"multiple";return se(this.callBase(),{selectionMode:t,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:n=>{var{value:e}=n;this._selectAllValueChangeAction({value:e})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var t=new et;return this._updateTagsContainer(this._$textEditorInputContainer),this._renderInputSize(),this._renderTags().done(()=>{this._popup&&this._popup.refreshPosition(),t.resolve()}).fail(t.reject),t.promise()},_listItemClickHandler:function(t){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&(this.callBase(t),this._saveValueChangeEvent(void 0))},_shouldClearFilter:function(){var t=this.callBase();return!this.option("showSelectionControls")&&t},_renderInputSize:function(){var t=this._input(),n=t.val(),e=Pn(n)&&n,i="",r="",o=this.option("searchEnabled")||this.option("acceptCustomValue");if(e&&o){var a=dfe(t,n,{includePaddings:!0});a.insertAfter(t),i=ii(a)+5,a.remove()}else n||(r=1);t.css("width",i),t.attr("size",r)},_renderInputSubstitution:function(){this.callBase(),this._updateWidgetHeight()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var t=this._getValue(),n=this.option("maxDisplayedTags");return Z(n)&&t.length>n},_renderMultiTag:function(t){var n=U("<div>").addClass(lM).addClass(xLe),e={multiTagElement:kn(n),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(e),!e.cancel&&(n.data(sM,e.text),n.insertBefore(t),this._tagTemplate.render({model:e.text,container:kn(n)}),n)},_getFilter:function(t){var n=this._dataController.filter(),e=t.getCombinedFilter(this.option("valueExpr"),n),i=encodeURI(JSON.stringify(e)).length,r=this.option("maxFilterQueryLength");if(i<=r)return e;Di.log("W1019",r)},_getFilteredItems:function(t){var n,e;null===(n=this._loadFilteredItemsPromise)||void 0===n||n.reject();var i=new L0e(t),r=null===(e=this._list)||void 0===e?void 0:e.option("selectedItems"),o=!!r&&this._list._dataController.isLoaded(),a=r||this.option("selectedItems"),s=i.getLocalFilter(this._valueGetter),l=a.filter(s),u=l.length===t.length,f=new et,S=this._dataController;if((!this._isDataSourceChanged||o)&&u)return f.resolve(l).promise();var{customQueryParams:T,expand:R,select:L}=S.loadOptions(),z=this._getFilter(i);return S.loadFromStore({filter:z,customQueryParams:T,expand:R,select:L}).done((j,Y)=>{if(this._isDataSourceChanged=!1,this._disposed)f.reject();else{var{data:ie}=NO(j,Y),te=S.applyMapFunction(ie);f.resolve(te.filter(s))}}).fail(f.reject),this._loadFilteredItemsPromise=f,f.promise()},_createTagsData:function(t,n){var e=[],i={},r="this"===this._valueGetterExpr(),o={};n.forEach(l=>{var u=r?JSON.stringify(l):this._valueGetter(l);o[u]=l});var a=[];t.forEach((l,u)=>{var f=o[r?JSON.stringify(l):l];if(r&&!Z(f))a.push(this._loadItem(l,i).always(T=>{var R=this._createTagData(e,T,l,u);e.splice(u,0,R)}));else{var S=this._createTagData(e,f,l,u);e.splice(u,0,S)}});var s=new et;return Qt.apply(this,a).always(function(){s.resolve(e)}),s.promise()},_createTagData:function(t,n,e,i){if(Z(n))return this._selectedItems.push(n),n;var r=this.option("selectedItem");return this._valueGetter(r)===e?r:e},_isGroupedData:function(){return this.option("grouped")&&!this._dataController.group()},_getItemsByValues:function(t){var n=[];return t.forEach(function(e){var i=this._getItemFromPlain(e);Z(i)&&n.push(i)}.bind(this)),n},_getFilteredGroupedItems:function(t){var n=new et;return this._filteredGroupedItemsLoadPromise&&this._dataController.cancel(this._filteredGroupedItemsLoadPromise.operationId),this._dataController.items().length?n.resolve(this._getItemsByValues(t)):this._filteredGroupedItemsLoadPromise=this._dataController.load().done(()=>{n.resolve(this._getItemsByValues(t))}).fail(()=>{n.resolve([])}).always(()=>{this._filteredGroupedItemsLoadPromise=void 0}),n.promise()},_loadTagsData:function(){var t=this._getValue(),n=new et;return this._selectedItems=[],(this._isGroupedData()?this._getFilteredGroupedItems(t):this._getFilteredItems(t)).done(i=>{this._createTagsData(t,i).always(function(o){n.resolve(o)})}).fail(n.reject.bind(this)),n.promise()},_renderTags:function(){var t=new et,n=!1;return this._shouldGetItemsFromPlain(this._valuesToUpdate)&&(this._selectedItems=this._getItemsFromPlain(this._valuesToUpdate),this._selectedItems.length===this._valuesToUpdate.length&&(this._renderTagsImpl(this._selectedItems),n=!0,t.resolve())),n||this._loadTagsData().done(e=>{this._disposed?t.reject():(this._renderTagsImpl(e),t.resolve())}).fail(t.reject),t.promise()},_renderTagsImpl:function(t){this._renderTagsCore(t),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus()},_shouldGetItemsFromPlain:function(t){return t&&this._dataController.isLoaded()&&t.length<=this._getPlainItems().length},_getItemsFromPlain:function(t){var n=this._getSelectedItemsFromList(t);if(0===n.length&&t.length>0||n.length<t.length){var i=this._getPlainItems();n=this._filterSelectedItems(i,t)}return n},_getSelectedItemsFromList:function(t){var n,e=null===(n=this._list)||void 0===n?void 0:n.option("selectedItems"),i=[];return t.length===e?.length&&(i=this._filterSelectedItems(e,t)),i},_filterSelectedItems:function(t,n){return t.filter(i=>{for(var r,o=0;o<n.length;o++)if(Jn(r=n[o])){if(this._isValueEquals(i,r))return!0}else if(this._isValueEquals(this._valueGetter(i),r))return!0;return!1},this)},_integrateInput:function(){this._isInputReady.resolve(),this.callBase();var t=this.$element().find(".".concat("dx-texteditor-input-container"));this._updateTagsContainer(t),this._renderTagRemoveAction()},_renderTagsCore:function(t){var n;null===(n=this._isInputReady)||void 0===n||n.reject(),this._isInputReady=new et,this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags(),this._input().length>0&&this._isInputReady.resolve(),Qt(this._isInputReady).done(()=>{this._renderTagsElements(t)})},_renderTagsElements(t){var n=this._multiTagRequired()&&this._renderMultiTag(this._input()),e=this.option("showMultiTagOnly"),i=this.option("maxDisplayedTags");t.forEach((r,o)=>{if(n&&e||n&&!e&&o-i>=-1)return!1;this._renderTag(r,n||this._input())}),this._isFocused()&&this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var t=this._tagElements(),n=this._getValue();we(t,function(e,i){var r=U(i),o=r.data(sM);null!=n&&n.includes(o)||r.remove()})}},_renderEmptyState:function(){var t=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(t),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find(".".concat(lM))},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(t,n){this._tagTemplate.render({model:t,container:kn(n)})},_renderTag:function(t,n){var e=this._valueGetter(t);if(Z(e)){var i=this._getTag(e),r=this._displayGetter(t),o=this._getItemModel(t,r);i?(Z(r)&&(i.empty(),this._applyTagTemplate(o,i)),i.removeClass(wLe)):(i=this._createTag(e,n),Z(t)?this._applyTagTemplate(o,i):(i.addClass(wLe),this._applyTagTemplate(e,i)))}},_getItemModel:function(t,n){return Jn(t)&&Z(n)?t:gr(n,"")},_getTag:function(t){for(var n=this._tagElements(),e=n.length,i=!1,r=0;r<e;r++){var o=n[r],a=zo(o,sM);if(t===a||Tr(t,a)){i=U(o);break}}return i},_createTag:function(t,n){return U("<div>").addClass(lM).data(sM,t).insertBefore(n)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(t){this.callBase(t),this._clearTextValue()},_removeTagHandler:function(t){var n=t.event;n.stopPropagation(),this._saveValueChangeEvent(n);var e=U(n.target).closest(".".concat(lM));this._removeTagElement(e)},_removeTagElement:function(t){if(t.hasClass(xLe))this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags")));else{var n=t.data(sM);this._removeTagWithUpdate(n),this._refreshTagElements()}},_updateField:Be,_removeTagWithUpdate:function(t){var n=this._getValue().slice();this._removeTag(n,t),this.option("value",n),0===n.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(t){if("useButtons"!==this.option("applyValueMode")){var n=this._getValue().slice();if(we(t.removedItems||[],(i,r)=>{this._removeTag(n,this._valueGetter(r))}),we(t.addedItems||[],(i,r)=>{this._addTag(n,this._valueGetter(r))}),this._updateWidgetHeight(),!Tr(this._list.option("selectedItemKeys"),this.option("value"))){var e=this._list._getSelectionChangeEvent();e&&this._saveValueChangeEvent(e),this.option("value",n)}this._list._saveSelectionChangeEvent(void 0)}},_removeTag:function(t,n){var e=this._valueIndex(n,t);e>=0&&t.splice(e,1)},_addTag:function(t,n){this._valueIndex(n)<0&&t.push(n)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(t){this.option("showSelectionControls")||this._setValue(t)},_setValue:function(t){if(null!==t){var n="useButtons"===this.option("applyValueMode"),e=this._valueIndex(t),i=(n?this._list.option("selectedItemKeys"):this._getValue()).slice();e>=0?i.splice(e,1):i.push(t),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",i):this.option("value",i)}},_isSelectedValue:function(t,n){return this._valueIndex(t,null,n)>-1},_valueIndex:function(t,n,e){var i=-1;return e&&"object"!=typeof t&&(e.indexByValues||(e.indexByValues={},(n=n||this._getValue()).forEach(function(r,o){e.indexByValues[r]=o})),t in e.indexByValues)?e.indexByValues[t]:(n=n||this._getValue(),we(n,(r,o)=>{if(this._isValueEquals(t,o))return i=r,!1}),i)},_lastValue:function(){var t=this._getValue();return t[t.length-1]??null},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(t){this.option("searchEnabled")&&t&&!this._isTagRemoved&&(this.callBase(arguments),this._setListDataSourceFilter()),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var t=this.$element(),n=Ln(t);this._renderInputSize();var e=Ln(t);this._popup&&this.option("opened")&&this._isEditable()&&e!==n&&this._popup.repaint()},_refreshSelected:function(){var t;null!==(t=this._list)&&void 0!==t&&t.getDataSource()&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var t=this._dataController;delete this._userFilter,t.filter(null),t.reload()},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var t=this._dataController,n=this._valueGetterExpr();if(Pn(n)&&"this"!==n){var e=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=t.filter()||null),this._userFilter&&e.push(this._userFilter),t.filter(e.length?e:null)}else t.filter(this._dataSourceFilterFunction.bind(this));t.load()}},_dataSourceFilterExpr:function(){var t=[];return this._getValue().forEach(n=>t.push(["!",[this._valueGetterExpr(),n]])),t},_dataSourceFilterFunction:function(t){var n=this._valueGetter(t),e=!0;return we(this._getValue(),(i,r)=>{if(this._isValueEquals(r,n))return e=!1,!1}),e},_dataSourceChangedHandler:function(){this._isDataSourceChanged=!0,this.callBase.apply(this,arguments)},_applyButtonHandler:function(t){this._saveValueChangeEvent(t.event),this.option("value",this._getSortedListValues()),this._clearTextValue(),this.callBase(),this._cancelSearchIfNeed()},_getSortedListValues:function(){var t=this._getListValues(),n=this.option("value")||[],e=t.length?function(t,n){var e=gfe(n);return t.filter(i=>e[i]--)}(n,t):[],i=e.length?jU(t,n):t;return e.concat(i)},_getListValues:function(){return this._list?this._getPlainItems(this._list.option("selectedItems")).map(t=>this._valueGetter(t)):[]},_setListDataSource:function(){var t=this._getValue();this.callBase(),t!==this.option("value")&&this.option("value",t),this._refreshSelected()},_renderOpenedState:function(){this.callBase(),"useButtons"===this.option("applyValueMode")&&!this.option("opened")&&this._refreshSelected()},reset:function(){this._restoreInputText();var t=this._getDefaultOptions().value,n=this.option("value");t&&0===t.length&&n&&t.length===n.length||this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._valuesToUpdate,delete this._tagTemplate},_getSelectedItemsDifference(t,n){if(!t.length)return{addedItems:[],removedItems:n.slice()};if(!n.length)return{addedItems:t.slice(),removedItems:[]};var e=n.reduce((r,o)=>(r[this._valueGetter(o)]=o,r),{}),i=[];return t.forEach(r=>{var o=this._valueGetter(r);e[o]||i.push(r),delete e[o]}),{addedItems:i,removedItems:Object.values(e)}},_optionChanged:function(t){var{name:n,value:e,previousValue:i}=t;switch(n){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":e?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(e);break;case"displayExpr":this.callBase(t),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"readOnly":case"disabled":this.callBase(t),!e&&this._refreshEvents();break;case"value":this._valuesToUpdate=e,this.callBase(t),this._valuesToUpdate=void 0,this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(n,e);break;case"selectedItem":case"maxFilterQueryLength":break;case"selectedItems":this._selectionChangedAction(this._getSelectedItemsDifference(e,i));break;case"multiline":this.$element().toggleClass(DLe,!e),this._renderSingleLineScroll();break;default:this.callBase(t)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});On("dxTagBox",ELe);const Uen=ELe;var OLe="dx-radiobutton",TLe="dx-radiobutton-icon";class Xen extends Fc{_focusTarget(){return this.$element().parent()}_nullValueSelectionSupported(){return!0}_getDefaultOptions(){var n=super._getDefaultOptions();return se(n,y1._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})}_initMarkup(){super._initMarkup(),Zo(()=>{this.itemElements().addClass(OLe)})}_keyboardEventBindingTarget(){return this._focusTarget()}_postprocessRenderItem(n){var{itemData:{html:e},itemElement:i}=n;if(!e){var r=U("<div>").addClass(TLe);U("<div>").addClass("dx-radiobutton-icon-dot").appendTo(r);var o=U("<div>").append(r).addClass("dx-radio-value-container");U(i).prepend(o)}super._postprocessRenderItem(n)}_processSelectableItem(n,e){super._processSelectableItem(n,e),n.toggleClass("dx-radiobutton-checked",e).find(".".concat(TLe)).first().toggleClass("dx-radiobutton-icon-checked",e),this.setAria("checked",e,n)}_refreshContent(){this._prepareContent(),this._renderContent()}_supportedKeys(){var n=super._supportedKeys();return se({},n,{enter:function(e){return e.preventDefault(),n.enter.apply(this,arguments)},space:function(e){return e.preventDefault(),n.space.apply(this,arguments)}})}_itemElements(){return this._itemContainer().children(this._itemSelector())}_setAriaSelected(){}}class IX extends Ru{_dataSourceOptions(){return{paginate:!1}}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:()=>"desktop"===pn.real().deviceType&&!pn.isSimulator(),options:{focusStateEnabled:!0}}])}_fireContentReadyAction(n){n&&super._fireContentReadyAction()}_focusTarget(){return this.$element()}_getAriaTarget(){return this.$element()}_getDefaultOptions(){var n=super._getDefaultOptions();return se(n,se(y1._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical"}))}_getItemValue(n){return this._valueGetter?this._valueGetter(n):n.text}_getSubmitElement(){return this._$submitElement}_init(){super._init(),this._activeStateUnit=".".concat(OLe),this._feedbackHideTimeout=100,this._initDataExpressions()}_initMarkup(){this.$element().addClass("dx-radiogroup"),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this._renderLayout(),super._initMarkup()}_itemClickHandler(n){var{itemElement:e,event:i,itemData:r}=n;if(this.itemElements().is(e)){var o=this._getItemValue(r);o!==this.option("value")&&(this._saveValueChangeEvent(i),this.option("value",o))}}_getSelectedItemKeys(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("value");return"this"!==this.option("valueExpr")&&null===n||Z(n)?[n]:[]}_setSelection(n){var e=this._unwrappedValue(n);this._setCollectionWidgetOption("selectedItemKeys",this._getSelectedItemKeys(e))}_optionChanged(n){var{name:e,value:i}=n;switch(this._dataExpressionOptionChanged(n),e){case"dataSource":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(e,i);break;case"disabled":super._optionChanged(n),this._setCollectionWidgetOption(e,i);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setSelection(i),this._setSubmitValue(i),super._optionChanged(n);break;case"items":this._setSelection(this.option("value"));break;case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:super._optionChanged(n)}}_render(){super._render(),this._updateItemsSize()}_renderLayout(){var n=this.option("layout"),e=this.$element();e.toggleClass("dx-radiogroup-vertical","vertical"===n),e.toggleClass("dx-radiogroup-horizontal","horizontal"===n)}_renderRadios(){this._areRadiosCreated=new et;var n=U("<div>").appendTo(this.$element()),{displayExpr:e,accessKey:i,focusStateEnabled:r,itemTemplate:o,tabIndex:a}=this.option();this._createComponent(n,Xen,{onInitialized:s=>{var{component:l}=s;this._radios=l},onContentReady:s=>{this._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),displayExpr:e,accessKey:i,dataSource:this._dataSource,focusStateEnabled:r,itemTemplate:o,keyExpr:this._getCollectionKeyExpr(),noDataText:"",scrollingEnabled:!1,selectionByClick:!1,selectionMode:"single",selectedItemKeys:this._getSelectedItemKeys(),tabIndex:a}),this._areRadiosCreated.resolve()}_renderSubmitElement(){this._$submitElement=U("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()}_setOptionsByReference(){super._setOptionsByReference(),se(this._optionsByReference,{value:!0})}_setSubmitValue(n){var e;n=null!==(e=n)&&void 0!==e?e:this.option("value");var i="this"===this.option("valueExpr")?this._displayGetter(n):n;this._$submitElement.val(i)}_setCollectionWidgetOption(){this._areRadiosCreated.done(this._setWidgetOption.bind(this,"_radios",arguments))}_updateItemsSize(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var n=this.option("items").length;this.itemElements().css("height",100/n+"%")}}focus(){var n;null===(n=this._radios)||void 0===n||n.focus()}itemElements(){var n;return null===(n=this._radios)||void 0===n?void 0:n.itemElements()}}IX.include(y1),On("dxRadioGroup",IX);const Jen=IX,ILe={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(t,n){this._list._itemEventHandlerByHandler(t,n,{},{excludeValidators:["disabled","readOnly"]})}};var kLe="dx-list-context-menu";T_("menu","context",ab.inherit({_init:function(){var t=U("<div>").addClass(kLe);this._list.$element().append(t),this._menu=this._renderOverlay(t)},_renderOverlay:function(t){return this._list._createComponent(t,Cd,{shading:!1,deferRendering:!0,hideOnParentScroll:!0,hideOnOutsideClick:function(n){return!U(n.target).closest("."+kLe).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return Zn(this._$menuList)}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},_ignoreFunctionValueDeprecation:!0,height:function(){return this._$menuList?Zn(this._$menuList):0}.bind(this),width:function(){return ii(this._list.$element())}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(t){var n=t.component.$content(),e=this._menuItems().slice();this._deleteEnabled()&&e.push({text:ye.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=U("<div>"),this._list._createComponent(this._$menuList,eB,{items:e,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),n.addClass("dx-list-context-menucontent"),n.append(this._$menuList)},_menuItemClickHandler:function(t){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,t.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(t){return this._$itemWithMenu=t,this._menu.option({position:{my:"top",at:"bottom",of:t,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(ILe));var MLe=ab.abstract,ALe="dxListEditDecorator",FLe=kt(qn.down,ALe),PLe=kt(PT,ALe),kX="dx-list-switchable-delete-ready",RLe="dx-list-switchable-menu-item-shield-positioning",stn=ab.inherit({_init:function(){this._$topShield=U("<div>").addClass("dx-list-switchable-delete-top-shield"),this._$bottomShield=U("<div>").addClass("dx-list-switchable-delete-bottom-shield"),this._$itemContentShield=U("<div>").addClass("dx-list-switchable-delete-item-content-shield"),Se.on(this._$topShield,FLe,this._cancelDeleteReadyItem.bind(this)),Se.on(this._$bottomShield,FLe,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(t){this._toggleDeleteReady(t,!1)},_toggleDeleteReady:function(t,n){void 0===n&&(n=!this._isReadyToDelete(t)),this._toggleShields(t,n),this._toggleScrolling(n),this._cacheReadyToDeleteItem(t,n),this._animateToggleDelete(t,n)},_isReadyToDelete:function(t){return t.hasClass(kX)},_toggleShields:function(t,n){this._list.$element().toggleClass("dx-list-switchable-menu-shield-positioning",n),this._$topShield.toggle(n),this._$bottomShield.toggle(n),n&&this._updateShieldsHeight(t),this._toggleContentShield(t,n)},_updateShieldsHeight:function(t){var n=this._list.$element(),e=n.offset().top,i=Zn(n),a=t.offset().top-e,s=i-Zn(t)-a;xo(this._$topShield,Math.max(a,0)),xo(this._$bottomShield,Math.max(s,0))},_toggleContentShield:function(t,n){n?t.find(".dx-list-item-content").first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(t){var n=this._list.$element().dxScrollView("instance");t?n.on("start",this._cancelScrolling):n.off("start",this._cancelScrolling)},_cancelScrolling:function(t){t.event.cancel=!0},_cacheReadyToDeleteItem:function(t,n){n?this._$readyToDeleteItem=t:delete this._$readyToDeleteItem},_animateToggleDelete:function(t,n){n?(this._enablePositioning(t),this._prepareDeleteReady(t),this._animatePrepareDeleteReady(t),Se.off(t,qn.up)):(this._forgetDeleteReady(t),this._animateForgetDeleteReady(t).done(this._disablePositioning.bind(this,t)))},_enablePositioning:function(t){t.addClass(RLe),Se.on(t,PLe,Be),Se.one(t,qn.up,this._disablePositioning.bind(this,t))},_disablePositioning:function(t){t.removeClass(RLe),Se.off(t,PLe)},_prepareDeleteReady:function(t){t.addClass(kX)},_forgetDeleteReady:function(t){t.removeClass(kX)},_animatePrepareDeleteReady:MLe,_animateForgetDeleteReady:MLe,_getDeleteButtonContainer:function(t){return(t=t||this._$readyToDeleteItem).children(".dx-list-switchable-delete-button-container")},_deleteItem:function(t){this._getDeleteButtonContainer(t=t||this._$readyToDeleteItem).detach(),!t.is(".dx-state-disabled, .dx-state-disabled *")&&this._list.deleteItem(t).always(this._cancelDelete.bind(this,t))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});const LLe=stn;var ltn="dx-list-switchable-delete-button-container",utn="dx-list-switchable-delete-button-wrapper",dtn="dx-list-switchable-delete-button-inner-wrapper",ctn="dx-list-switchable-delete-button",NLe=LLe.inherit({_init:function(){this.callBase.apply(this,arguments);var t=U("<div>").addClass(ltn),n=U("<div>").addClass(utn),e=U("<div>").addClass(dtn),i=U("<div>").addClass(ctn);this._list._createComponent(i,To,{text:ye.format("dxListEditDecorator-delete"),type:"danger",onClick:function(r){this._deleteItem(),r.event.stopPropagation()}.bind(this),integrationOptions:{}}),t.append(n),n.append(e),e.append(i),this._$buttonContainer=t},_enablePositioning:function(t){this.callBase.apply(this,arguments),Hi.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(t)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var t=this._isRtlEnabled(),n=wn(this._list.$element()),e=this._buttonWidth();return Hi.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:t?n:-e},to:{right:t?n-e:0}})},_animateForgetDeleteReady:function(){var t=this._isRtlEnabled(),n=wn(this._list.$element()),e=this._buttonWidth();return Hi.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:t?n-e:0},to:{right:t?n:-e}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=ii(this._$buttonContainer)),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}});T_("delete","toggle",NLe.inherit({beforeBag:function(t){var n=t.$itemElement,e=t.$container,i=U("<div>").addClass("dx-list-toggle-delete-switch");this._list._createComponent(i,To,{icon:"toggle-delete",onClick:function(r){Hi.stop(this._$buttonContainer,!1),this._toggleDeleteReady(n),r.event.stopPropagation()}.bind(this),integrationOptions:{}}),e.addClass("dx-list-toggle-delete-switch-container"),e.append(i)}})),T_("delete","slideButton",NLe.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(t,n){return 0!==n.targetOffset&&(Hi.stop(this._$buttonContainer,!1),this._toggleDeleteReady(t)),!0}}));var VLe="dxListEditDecorator",HLe=kt(Vi,VLe),gtn=kt(PT,VLe),mtn="dx-list-slide-menu-wrapper",MX="dx-list-slide-menu-content",_tn="dx-list-slide-menu-buttons-container",vtn="dx-list-slide-menu-buttons",zLe="dx-list-slide-menu-button";T_("menu","slide",LLe.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=U("<div>").addClass(_tn),Se.on(this._$buttonsContainer,gtn,Be),this._$buttons=U("<div>").addClass(vtn).appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var t=this._menuItems();if(1===t.length){var n=t[0];this._renderMenuButton(n.text,function(r){r.stopPropagation(),this._fireAction(n)}.bind(this))}else{var e=U("<div>").addClass("dx-list-slide-menu");this._menu=this._list._createComponent(e,sye,{showTitle:!1,items:t,onItemClick:function(r){this._fireAction(r.itemData)}.bind(this),integrationOptions:{}}),e.appendTo(this._list.$element());var i=this._renderMenuButton(ye.format("dxListEditDecorator-more"),function(r){r.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",i)}}},_renderMenuButton:function(t,n){var e=U("<div>").addClass(zLe).addClass("dx-list-slide-menu-button-menu").text(t);return this._$buttons.append(e),Se.on(e,HLe,n),e},_renderDeleteButton:function(){if(this._deleteEnabled()){var t=U("<div>").addClass(zLe).addClass("dx-list-slide-menu-button-delete").text(io()?"":ye.format("dxListEditDecorator-delete"));Se.on(t,HLe,function(n){n.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(t)}},_fireAction:function(t){this._fireMenuAction(U(this._cachedNode),t.action),this._cancelDeleteReadyItem()},modifyElement:function(t){this.callBase.apply(this,arguments);var n=t.$itemElement;n.addClass(mtn);var e=U("<div>").addClass(MX);n.wrapInner(e)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(t,n){return!!U(n.target).closest("."+MX).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(t){this._enablePositioning(t),this._cacheItemData(t),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(t,n){var i=this._isRtlEnabled()?-1:1,r=this._isReadyToDelete(t);if(this._getCurrentPositions().content!==this._getStartPositions().content||r||!(n.offset*i>0)){var a=this._cachedItemWidth*n.offset,s=r?-this._cachedButtonWidth*i:0,u=(a+s)*i<0?Math.abs((a+s)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(u)),!0}n.cancel=!0},_getStartPositions:function(){var t=this._isRtlEnabled();return{content:0,buttonsContainer:t?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*(t?-1:1)}},_getPositions:function(t){var e=this._isRtlEnabled()?-1:1,i=this._getStartPositions();return{content:i.content-t*this._cachedButtonWidth*e,buttonsContainer:i.buttonsContainer-Math.min(t,1)*this._cachedButtonWidth*e,buttons:i.buttons+Math.min(t,1)*this._cachedButtonWidth*e}},_getCurrentPositions:function(){return{content:Ra(this._$cachedContent).left,buttonsContainer:Ra(this._$buttonsContainer).left,buttons:Ra(this._$buttons).left}},_setPositions:function(t){kr(this._$cachedContent,{left:t.content}),kr(this._$buttonsContainer,{left:t.buttonsContainer}),kr(this._$buttons,{left:t.buttons})},_cacheItemData:function(t){t[0]!==this._cachedNode&&(this._$cachedContent=t.find("."+MX),this._cachedItemWidth=ii(t),this._cachedButtonWidth=this._cachedButtonWidth||ii(this._$buttons),oa(this._$buttonsContainer,this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=t[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(t,n){this._cacheItemData(t);var e=this._isRtlEnabled()?1:-1,i=this._cachedItemWidth*n.offset,r=!this._isReadyToDelete(t)&&i*e>.2*this._cachedButtonWidth;return this._toggleDeleteReady(t,n.targetOffset===e&&r),!0},_enablePositioning:function(t){Hi.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(t)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(t){return this._cacheItemData(t),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(t){var n=this,e=this._getCurrentPositions(),i=Math.min(Math.abs(e.content-t.content)/this._cachedButtonWidth,1);return Hi.animate(this._$cachedContent,{from:e,to:t,easing:"cubic-bezier(0.075, 0.82, 0.165, 1)",duration:400*i,strategy:"frame",draw:function(r){n._setPositions(r)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(ILe)),T_("delete","static",ab.inherit({afterBag:function(t){var n=t.$itemElement,e=t.$container,i=U("<div>").addClass("dx-list-static-delete-button");this._list._createComponent(i,To,{icon:"remove",onClick:function(r){r.event.stopPropagation(),this._deleteItem(n)}.bind(this),integrationOptions:{}}),e.addClass("dx-list-static-delete-button-container").append(i)},_deleteItem:function(t){t.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(t)}})),T_("delete","swipe",ab.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(t,n,e){var i=new et,r=n*this._itemElementWidth;return e?Hi.animate(t,{to:{left:r},type:"slide",complete:function(){i.resolve(t,n)}}):(kr(t,{left:r}),i.resolve()),i.promise()},_swipeStartHandler:function(t){return this._itemElementWidth=wn(t),!0},_swipeUpdateHandler:function(t,n){return this._renderItemPosition(t,n.offset),!0},_swipeEndHandler:function(t,n){return this._renderItemPosition(t,n.targetOffset,!0).done(function(i,r){Math.abs(r)&&this._list.deleteItem(i).fail(function(){this._renderItemPosition(i,0,!0)}.bind(this))}.bind(this)),!0}}));class Dtn{constructor(n,e){this._popupInstance=n._createComponent(e,Ss),this.infoMap={TaskEdit:Etn,Resources:Otn,Confirmation:Ttn,ConstraintViolation:Itn}}_apply(){if(this._dialogInfo.isValidated()){var n=this._dialogInfo.getResult();this._callback(n),this.hide()}}show(n,e,i,r,o){if(this._callback=i,this._afterClosing=r,this.infoMap[n]){var a=this._popupInstance._isVisible()&&this._dialogInfo&&this._dialogInfo instanceof this.infoMap[n];this._dialogInfo=new this.infoMap[n](e,this._apply.bind(this),this.hide.bind(this),o),this._popupInstance.option({showTitle:!!this._dialogInfo.getTitle(),title:this._dialogInfo.getTitle(),toolbarItems:this._dialogInfo.getToolbarItems(),maxWidth:this._dialogInfo.getMaxWidth(),height:this._dialogInfo.getHeight(),contentTemplate:this._dialogInfo.getContentTemplate()}),this._afterClosing&&this._popupInstance.option("onHidden",this._afterClosing),a||this._popupInstance.show()}}hide(){this._popupInstance.hide(),this._afterClosing&&this._afterClosing()}}class h8{constructor(n,e,i,r){this._parameters=n,this._applyAction=e,this._hideAction=i,this._editingOptions=r}_getFormItems(){return{}}_getFormCssClass(){return""}_getFormData(){return this._parameters}_updateParameters(){}_getOkToolbarItem(){return this._getToolbarItem("OK",this._applyAction)}_getCancelToolbarItem(){return this._getToolbarItem("Cancel",this._hideAction)}_getYesToolbarItem(){return this._getToolbarItem("Yes",this._applyAction)}_getNoToolbarItem(){return this._getToolbarItem("No",this._hideAction)}_getToolbarItem(n,e){return{widget:"dxButton",toolbar:"bottom",options:{text:ye.format(n),onClick:e}}}getTitle(){return""}getToolbarItems(){return this._editingOptions.enabled?[this._getOkToolbarItem(),this._getCancelToolbarItem()]:[this._getCancelToolbarItem()]}getMaxWidth(){return 400}getHeight(){return"auto"}getContentTemplate(){return n=>(this._form=new vv(n,{formData:this._getFormData(),items:this._getFormItems(),elementAttr:{class:this._getFormCssClass()},rtlEnabled:!1}),n)}getResult(){var n=this.getFormData();return this._updateParameters(n),this._parameters}getFormData(){return this._form&&this._form.option("formData")}isValidated(){return!0}}class Etn extends h8{getTitle(){return ye.format("dxGantt-dialogTaskDetailsTitle")}_getFormItems(){var n=!this._editingOptions.enabled||!this._editingOptions.allowTaskUpdating,e=n||!this._parameters.enableRangeEdit;return[{dataField:"title",editorType:"dxTextBox",label:{text:ye.format("dxGantt-dialogTitle")},editorOptions:{readOnly:n||this._isReadOnlyField("title")},visible:!this._isHiddenField("title")},{dataField:"start",editorType:"dxDateBox",label:{text:ye.format("dxGantt-dialogStartTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:e||this._isReadOnlyField("start")},visible:!this._isHiddenField("start"),validationRules:[{type:"required",message:ye.format("validation-required-formatted",ye.format("dxGantt-dialogStartTitle"))},{type:"custom",validationCallback:i=>{if(this._parameters.isValidationRequired){var r=this._parameters.getCorrectDateRange(this._parameters.id,i.value,this._parameters.end);if(r.start.getTime()!==i.value.getTime())return i.rule.message=this._getValidationMessage(!0,r.start),!1}return!0}}]},{dataField:"end",editorType:"dxDateBox",label:{text:ye.format("dxGantt-dialogEndTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:e||this._isReadOnlyField("end")},visible:!this._isHiddenField("end"),validationRules:[{type:"required",message:ye.format("validation-required-formatted",ye.format("dxGantt-dialogEndTitle"))},{type:"custom",validationCallback:i=>{if(this._parameters.isValidationRequired){var r=this._parameters.getCorrectDateRange(this._parameters.id,this._parameters.start,i.value);if(r.end.getTime()!==i.value.getTime())return i.rule.message=this._getValidationMessage(!1,r.end),!1}return!0}}]},{dataField:"progress",editorType:"dxNumberBox",label:{text:ye.format("dxGantt-dialogProgressTitle")},editorOptions:{showSpinButtons:!0,min:0,max:1,format:"#0%",step:.01,readOnly:e||this._isReadOnlyField("progress")},visible:!this._isHiddenField("progress")},{dataField:"assigned.items",editorType:"dxTagBox",label:{text:ye.format("dxGantt-dialogResourcesTitle")},editorOptions:{readOnly:n||!this._editingOptions.allowTaskResourceUpdating,dataSource:this._parameters.resources.items,displayExpr:"text",buttons:[{name:"editResources",location:"after",options:{disabled:!this._editingOptions.allowResourceAdding&&!this._editingOptions.allowResourceDeleting,text:"...",hint:ye.format("dxGantt-dialogEditResourceListHint"),onClick:()=>{this._parameters.showResourcesDialogCommand.execute(()=>{this._parameters.showTaskEditDialogCommand.execute()})}}}]}}]}_getValidationMessage(n,e){return ye.format(n?"dxGantt-dialogStartDateValidation":"dxGantt-dialogEndDateValidation",this._getFormattedDateText(e))}_getFormattedDateText(n){return n?Gn.format(n,"shortDateShortTime"):""}_isReadOnlyField(n){return this._parameters.readOnlyFields.indexOf(n)>-1}_isHiddenField(n){return this._parameters.hiddenFields.indexOf(n)>-1}_getFormData(){var n={};for(var e in this._parameters)n[e]="progress"===e?this._parameters[e]/100:this._parameters[e];return n}_updateParameters(n){this._parameters.title=n.title,this._parameters.start=n.start,this._parameters.end=n.end,this._parameters.progress=100*n.progress,this._parameters.assigned=n.assigned}isValidated(){var n;return(null===(n=this._form)||void 0===n?void 0:n.validate())?.isValid}}class Otn extends h8{getTitle(){return ye.format("dxGantt-dialogResourceManagerTitle")}_getFormItems(){return[{label:{visible:!1},dataField:"resources.items",editorType:"dxList",editorOptions:{allowItemDeleting:this._editingOptions.enabled&&this._editingOptions.allowResourceDeleting,itemDeleteMode:"static",selectionMode:"none",items:this._parameters.resources.items,height:250,noDataText:ye.format("dxGantt-dialogEditNoResources"),onInitialized:n=>{this.list=n.component},onItemDeleted:n=>{this._parameters.resources.remove(n.itemData)}}},{label:{visible:!1},editorType:"dxTextBox",editorOptions:{readOnly:!this._editingOptions.enabled||!this._editingOptions.allowResourceAdding,onInitialized:n=>{this.textBox=n.component},onInput:n=>{var e=n.component.getButton("addResource"),i=n.component.option("text");e.option("disabled",0===i.length)},buttons:[{name:"addResource",location:"after",options:{text:ye.format("dxGantt-dialogButtonAdd"),disabled:!0,onClick:n=>{var e=this._parameters.resources.createItem();e.text=this.textBox.option("text"),this._parameters.resources.add(e),this.list.option("items",this._parameters.resources.items),this.list.scrollToItem(e),this.textBox.reset(),n.component.option("disabled",!0)}}}]}}]}}class Ttn extends h8{getContentTemplate(){return n=>this._getConfirmMessage()}_getConfirmMessage(){switch(this._parameters.type){case 0:return ye.format("dxGantt-dialogTaskDeleteConfirmation");case 1:return ye.format("dxGantt-dialogDependencyDeleteConfirmation");case 2:return ye.format("dxGantt-dialogResourcesDeleteConfirmation",this._parameters.message);default:return""}}getToolbarItems(){return[this._getYesToolbarItem(),this._getNoToolbarItem()]}}class Itn extends h8{_getFormItems(){var a,n=this._parameters.hasCriticalErrors,e=this._parameters.errorsCount>1,i=[],r=e?"dxGantt-dialogDeleteDependenciesMessage":"dxGantt-dialogDeleteDependencyMessage",o=e?"dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"dxGantt-dialogMoveTaskAndKeepDependencyMessage";return a=n?e?"dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"dxGantt-dialogConstraintCriticalViolationMessage":e?"dxGantt-dialogConstraintViolationSeveralTasksMessage":"dxGantt-dialogConstraintViolationMessage",i.push({text:ye.format("dxGantt-dialogCancelOperationMessage"),value:0}),i.push({text:ye.format(r),value:1}),n||i.push({text:ye.format(o),value:2}),[{template:ye.format(a)},{cssClass:"dx-cv-dialog-row",dataField:"option",label:{visible:!1},editorType:"dxRadioGroup",editorOptions:{items:i,valueExpr:"value",value:0}}]}_getFormCssClass(){return"dx-cv-dialog"}_updateParameters(n){this._parameters.option=n.option}}var p8=Fn();class Atn{constructor(n){this._gantt=n,this._treeList=n._treeList,this._cache={}}reset(){this._cache={}}getTreeListTableStyle(){var n=this._getTreeListTable(),e=p8.getComputedStyle(n);return{color:e.color,backgroundColor:e.backgroundColor,fontSize:e.fontSize,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontStyle:e.fontStyle,textAlign:"left",verticalAlign:"middle"}}getTreeListColCount(){return this._getHeaderView().getColumnWidths().filter(i=>i>0).length}getTreeListHeaderInfo(n){var e=this._getHeaderElement(n);if(!e)return null;var i=p8.getComputedStyle(e),r={color:i.color,padding:i.padding,paddingLeft:i.paddingLeft,paddingTop:i.paddingTop,paddingRight:i.paddingRight,paddingBottom:i.paddingBottom,verticalAlign:i.verticalAlign,width:this._getColumnWidth(n)};return{content:e.textContent,styles:r}}getTreeListCellInfo(n,e){var i,r=this._treeList.getNodeByKey(n),o=this._treeList.getRowIndexByKey(n),a=o>-1?this._getDataCell(o,e):null,s=a?p8.getComputedStyle(a):this._getColumnCellStyle(e),l={color:s.color,padding:s.padding,paddingLeft:s.paddingLeft,paddingTop:s.paddingTop,paddingRight:s.paddingRight,paddingBottom:s.paddingBottom,width:this._getColumnWidth(e)};return 0===e&&(l.extraLeftPadding=this._getEmptySpaceWidth(r.level)),{content:null!==(i=a?.textContent)&&void 0!==i?i:this._getDisplayText(n,e),styles:l}}getTreeListEmptyDataCellInfo(){return{content:this._treeList.option("noDataText")}}_ensureColumnWidthCache(n){var e,i;if(null!==(i=(e=this._cache).columnWidths)&&void 0!==i||(e.columnWidths={}),!this._cache.columnWidths[n]){var r,o=this._getHeaderElement(n);this._cache.columnWidths[n]=null!==(r=o?.clientWidth)&&void 0!==r?r:0}}_getColumnWidth(n){this._ensureColumnWidthCache(n);var e=this._cache.columnWidths;return e&&e[n]}_getEmptySpaceWidth(n){if(!this._cache.emptyWidth){var e,i,r,o=this._getTreeListElement("dx-treelist-empty-space");null!==(i=(e=this._cache).emptyWidth)&&void 0!==i||(e.emptyWidth=null!==(r=o.offsetWidth)&&void 0!==r?r:0)}return this._cache.emptyWidth*(n+1)}_getColumnCellStyle(n){return this._ensureColumnCellStyleCache(n),this._cache.columnStyles[n]}_ensureColumnCellStyleCache(n){var e,i;if(null!==(i=(e=this._cache).columnStyles)&&void 0!==i||(e.columnStyles={}),!this._cache.columnStyles[n]){var r=this._getDataCell(0,n);this._cache.columnStyles[n]=p8.getComputedStyle(r)}}_getTask(n){return this._ensureTaskCache(n),this._cache.tasks[n]}_ensureTaskCache(n){var e,i,r,o;null!==(i=(e=this._cache).tasks)&&void 0!==i||(e.tasks={}),null!==(o=(r=this._cache.tasks)[n])&&void 0!==o||(r[n]=this._gantt._findTaskByKey(n))}_getTreeListTable(){return this._getTreeListElement("dx-treelist-table")}_getTreeListElement(n){return this._treeList._$element.find("."+n).get(0)}_getDataCell(n,e){var r=this._treeList.getCellElement(n,e);return r&&r.length?r[0]:r}_getHeaderElement(n){return this._getHeaderView().getHeaderElement(n).get(0)}_getHeaderView(){return this._treeList._views.columnHeadersView}_getDisplayText(n,e){var i=this._getTask(n);return i&&this._getGridDisplayText(e,i)}_getGridDisplayText(n,e){var r=this._treeList.getController("columns").getColumns()[n],o=r?.dataField,a=r?.format,s=vn.getDisplayValue(r,e[o],e,"data");if(Z(a)){if("date"===r?.dataType||"datetime"===r?.dataType){var l=Sa(s)?s:new Date(s);return Gn.format(l,a)}if(di(s))return Gr.format(s,a)}return"string"==typeof s?s:s?.toString()}}var AX=/(\w*)Expr/;class Ptn{constructor(n){this._gantt=n}_getMappedFieldName(n,e){var i=e;return"id"===e&&(i="key"),this._gantt.option("".concat(n,".").concat(i,"Expr"))}getTaskMappedFieldNames(){var n=[],e=this._gantt.option("tasks");for(var i in e){var r=i.match(AX),o=r&&e[r[0]];o&&n.push(o)}return n}convertCoreToMappedData(n,e){return Object.keys(e).reduce((i,r)=>{var o=this._getMappedFieldName(n,r);return o&&ph(o)(i,e[r]),i},{})}convertMappedToCoreData(n,e){var i={};if(e){var r=this._gantt.option(n);for(var o in r){var a=o.match(AX),s=a&&r[a[0]];if(s&&void 0!==e[s]){var l=Ai(s);i[a[1]]=l(e)}}}return i}convertCoreToMappedFields(n,e){return e.reduce((i,r)=>{var o=this._getMappedFieldName(n,r);return o&&i.push(o),i},[])}convertMappedToCoreFields(n,e){var i=[],r=this._gantt.option(n);for(var o in r){var a=o.match(AX),s=a&&r[a[0]];s&&e.indexOf(s)>-1&&i.push(a[1])}return i}}class Rtn{constructor(n){this._gantt=n}_setTreeListDimension(n,e){var i,o="width"===n?wn:Ln;("width"===n?oa:xo)(this._gantt._$treeListWrapper,e),null===(i=this._gantt._ganttTreeList)||void 0===i||i.setOption(n,o(this._gantt._$treeListWrapper))}_setGanttViewDimension(n,e){var r="width"===n?wn:Ln;("width"===n?oa:xo)(this._gantt._$ganttView,e),this._gantt._setGanttViewOption(n,r(this._gantt._$ganttView))}_getPanelsWidthByOption(){var n,e,o,i=wn(this._gantt._$element),r=this._gantt.option("taskListWidth");return isNaN(r)?(null===(n=r.indexOf)||void 0===n?void 0:n.call(r,"px"))>0?o=i-parseInt(r.replace("px",""))+"px":(null===(e=r.indexOf)||void 0===e?void 0:e.call(r,"%"))>0&&(o=100-parseInt(r.replace("%",""))+"%"):o=i-parseInt(r),{leftPanelWidth:r,rightPanelWidth:o}}onAdjustControl(){var n=Ln(this._gantt._$element);this.updateGanttWidth(),this.setGanttHeight(n)}onApplyPanelSize(n){this.setInnerElementsWidth(n),this.updateGanttRowHeights()}updateGanttRowHeights(){var e,n=this._gantt._ganttTreeList.getRowHeight();this._gantt._getGanttViewOption("rowHeight")!==n&&(this._gantt._setGanttViewOption("rowHeight",n),null===(e=this._gantt._ganttView)||void 0===e||e._ganttViewCore.updateRowHeights(n))}adjustHeight(){this._gantt._hasHeight||(this._gantt._setGanttViewOption("height",0),this._gantt._setGanttViewOption("height",this._gantt._ganttTreeList.getOffsetHeight()))}setInnerElementsWidth(n){Rn()&&(n||(n=this._getPanelsWidthByOption(),this._gantt._splitter._setSplitterPositionLeft({splitterPositionLeft:n.leftPanelWidth}),this._setTreeListDimension("width",0),this._setGanttViewDimension("width",0)),this._setTreeListDimension("width",n.leftPanelWidth),this._setGanttViewDimension("width",n.rightPanelWidth))}updateGanttWidth(){this._gantt._splitter._dimensionChanged()}setGanttHeight(n){var e,r=n-this._gantt._$toolbarWrapper.get(0).offsetHeight;this._setTreeListDimension("height",r),this._setGanttViewDimension("height",r),null===(e=this._gantt._ganttView)||void 0===e||e._ganttViewCore.resetAndUpdate()}}class Ltn{constructor(n){this._gantt=n}getTaskTooltipContentTemplateFunc(n){var e=n&&this._gantt._getTemplate(n);return e&&((r,o,a)=>(e.render({model:this._gantt.getTaskDataByCoreData(o),container:kn(U(r)),onRendered:()=>{a()}}),!0))}getTaskProgressTooltipContentTemplateFunc(n){var e=n&&this._gantt._getTemplate(n);return e&&((r,o,a)=>(e.render({model:o,container:kn(U(r)),onRendered:()=>{a()}}),!0))}getTaskTimeTooltipContentTemplateFunc(n){var e=n&&this._gantt._getTemplate(n);return e&&((r,o,a)=>(e.render({model:o,container:kn(U(r)),onRendered:()=>{a()}}),!0))}getTaskContentTemplateFunc(n){var e=n&&this._gantt._getTemplate(n);return e&&((r,o,a,s)=>(o.taskData=this._gantt.getTaskDataByCoreData(o.taskData),e.render({model:o,container:kn(U(r)),onRendered:()=>{a(r,s)}}),!0))}}class ULe{constructor(n,e){this._element=n,this._owner=e,this._items=[],this._createControl()}createItems(n){this._cache=null,this._items=this._createItemsCore(n),this._menu.option("items",this._items)}_createItemsCore(n){return n.map(e=>{var i;return i="string"==typeof e?this._createItemByText(e):se(e.name?this._createItemByText(e.name):this._getDefaultItemOptions(),e),e.items&&(i.items=this._createItemsCore(e.items)),i})}_createItemByText(n){switch(n.toLowerCase()){case"separator":return this._createSeparator();case"undo":return this._createDefaultItem(6,ye.format("dxGantt-undo"),this._getIcon("undo"));case"redo":return this._createDefaultItem(7,ye.format("dxGantt-redo"),this._getIcon("redo"));case"expandall":return this._createDefaultItem(12,ye.format("dxGantt-expandAll"),this._getIcon("expand"));case"collapseall":return this._createDefaultItem(11,ye.format("dxGantt-collapseAll"),this._getIcon("collapse"));case"addtask":return this._createDefaultItem(0,ye.format("dxGantt-addNewTask"),this._getIcon("add"));case"addsubtask":return this._createDefaultItem(1,ye.format("dxGantt-contextMenuNewSubtask"),this._getIcon("add-sub-task"));case"deletetask":return this._createDefaultItem(2,ye.format("dxGantt-deleteSelectedTask"),this._getIcon("delete"));case"deletedependency":return this._createDefaultItem(3,ye.format("dxGantt-contextMenuDeleteDependency"),this._getIcon("delete-dependency"));case"zoomin":return this._createDefaultItem(8,ye.format("dxGantt-zoomIn"),this._getIcon("zoom-in"));case"zoomout":return this._createDefaultItem(9,ye.format("dxGantt-zoomOut"),this._getIcon("zoom-out"));case"fullscreen":return this._createDefaultItem(10,ye.format("dxGantt-fullScreen"),this._getIcon("full-screen"));case"taskdetails":return this._createDefaultItem(4,ye.format("dxGantt-dialogTaskDetailsTitle")+"...",this._getIcon("task-details"));case"resourcemanager":return this._createDefaultItem(13,ye.format("dxGantt-dialogResourceManagerTitle"),this._getIcon("resource-manager"));case"showresources":return this._createDefaultItem(14,ye.format("dxGantt-showResources"),this._getIcon("toggle-resources"));case"showdependencies":return this._createDefaultItem(15,ye.format("dxGantt-showDependencies"),this._getIcon("toggle-dependencies"));default:return se(this._getDefaultItemOptions(),{options:{text:n}})}}_getDefaultItemOptions(){return{}}_getItemsCache(){return this._cache||(this._cache={},this._fillCache(this._items)),this._cache}_fillCache(n){n.forEach(e=>{var i=e.commandId;void 0!==i&&(this._cache[i]||(this._cache[i]=[]),this._cache[i].push(e)),e.items&&this._fillCache(e.items)})}_getIcon(n){return"dx-gantt-i dx-gantt-i-"+n}getCommandKeys(){var n=this._getItemsCache(),e=[];for(var i in n)e.push(parseInt(i));return e}setItemEnabled(n,e){this._getItemsCache()[n].forEach(r=>{r.disabled=!e})}setItemVisible(n,e){this._getItemsCache()[n].forEach(r=>{r.visible=e})}setItemValue(n,e){}setEnabled(n){this._menu.option("disabled",!n)}updateItemsList(){}isVisible(){return!0}isContextMenu(){return!1}completeUpdate(){}}class Ntn extends ULe{_createControl(){this._menu=this._owner._createComponent(this._element,nb,{onItemClick:n=>{void 0!==n.itemData.commandId&&this._executeCommand(n.itemData.commandId)}})}_executeCommand(n){switch(n){case 14:this._owner.option("showResources",!this._owner.option("showResources"));break;case 15:this._owner.option("showDependencies",!this._owner.option("showDependencies"));break;default:this._owner._executeCoreCommand(n)}}_createDefaultItem(n,e,i){return{commandId:n,disabled:!0,widget:"dxButton",location:"before",options:{icon:i,stylingMode:"text",hint:e}}}_createSeparator(){return{location:"before",template:(n,e,i)=>{U(i).addClass("dx-gantt-toolbar-separator")}}}_getDefaultItemOptions(){return{location:"before",widget:"dxButton"}}completeUpdate(){this._menu.option("items",this._items)}}class Vtn extends ULe{_createControl(){this._menu=this._owner._createComponent(this._element,Zm,{showEvent:void 0,onItemClick:n=>{void 0!==n.itemData.commandId?this._owner._executeCoreCommand(n.itemData.commandId):void 0!==n.itemData.name&&this._owner._actionsManager.raiseCustomCommand(n.itemData.name)}})}createItems(n){(!n||0===n.length)&&(n=this._getDefaultItems()),super.createItems(n)}_getDefaultItems(){return[{text:ye.format("dxGantt-dialogButtonAdd"),commandId:5,icon:this._getIcon("add"),items:[{text:ye.format("dxGantt-contextMenuNewTask"),commandId:0,icon:this._getIcon("add-task")},{text:ye.format("dxGantt-contextMenuNewSubtask"),commandId:1,icon:this._getIcon("add-sub-task")}]},{text:ye.format("dxGantt-dialogTaskDetailsTitle")+"...",commandId:4,icon:this._getIcon("task-details")},{text:ye.format("dxGantt-contextMenuDeleteTask"),commandId:2,icon:this._getIcon("delete")},{text:ye.format("dxGantt-contextMenuDeleteDependency"),commandId:3,icon:this._getIcon("delete-dependency")}]}_createDefaultItem(n,e,i){return{commandId:n,text:e,icon:i}}show(n,e){this._menu.option("items",e||this._items),this._menu.option("position.offset",{x:n.x,y:n.y}),this._menu.option("position.collision","fit"),this._menu.show()}hide(){this._menu.hide()}isContextMenu(){return!0}}const Cr=se({},Bo,{modules:[],foreachNodes:function(t,n,e){for(var i=0;i<t.length;i++)!1!==n(t[i])&&(e||t[i].hasChildren)&&t[i].children.length&&this.foreachNodes(t[i].children,n,e)}});Cr.registerModule("columnHeaders",iY);var Htn=YN.controllers.columns.inherit({_getFirstItems:function(t){return this.callBase(t).map(function(n){return n.data})},getFirstDataColumnIndex:function(){for(var t=this.getVisibleColumns(),n=t.length,e=0,i=0;i<=n-1;i++)if(!Z(t[i].command)){e=t[i].index;break}return e}});Cr.registerModule("columns",{defaultOptions:YN.defaultOptions,controllers:{columns:Htn}});var{queryByOptions:ztn}=cg,g8=t=>"fullBranch"===t.option("filterMode"),FX=DIe.inherit({_createKeyGetter:function(){var t=this.getKeyExpr();return Ai(t)},_createKeySetter:function(){var t=this.getKeyExpr();return Yt(t)?t:ph(t)},createParentIdGetter:function(){return Ai(this.option("parentIdExpr"))},createParentIdSetter:function(){var t=this.option("parentIdExpr");return Yt(t)?t:ph(t)},_createItemsGetter:function(){return Ai(this.option("itemsExpr"))},_createHasItemsGetter:function(){var t=this.option("hasItemsExpr");return t&&Ai(t)},_createHasItemsSetter:function(){var t=this.option("hasItemsExpr");return Yt(t)?t:t&&ph(t)},_updateIndexByKeyObject:function(t){var n=this;n._indexByKey={},we(t,function(e,i){n._indexByKey[i.key]=e})},_calculateHasItems:function(t,n){var i,e=n.storeLoadOptions.parentIds,r=g8(this);return this._hasItemsGetter&&(e||!n.storeLoadOptions.filter||r)&&(i=this._hasItemsGetter(t.data)),void 0===i&&(i=!(this._isChildrenLoaded[t.key]||!n.remoteOperations.filtering||!e&&!r)||(n.loadOptions.filter&&!n.remoteOperations.filtering&&r?t.children.length:t.hasChildren)),!!i},_fillVisibleItemsByNodes:function(t,n,e){for(var i=0;i<t.length;i++)t[i].visible&&e.push(t[i]),(this.isRowExpanded(t[i].key,n)||!t[i].visible)&&t[i].hasChildren&&t[i].children.length&&this._fillVisibleItemsByNodes(t[i].children,n,e)},_convertItemToNode:function(t,n,e){var i=this._keyGetter(t),r=this._parentIdGetter(t),o=e[r=Z(r)?r:n]=e[r]||{key:r,children:[]},a=e[i]=e[i]||{key:i,children:[]};return a.data=t,a.parent=o,a},_createNodesByItems:function(t,n){var o,e=this.option("rootValue"),i={},r=this._nodeByKey={};if(n)for(o=0;o<n.length;o++)i[this._keyGetter(n[o])]=!0;for(o=0;o<t.length;o++){var a=this._convertItemToNode(t[o],e,r);if(void 0===a.key)return;a.visible=!n||!!i[a.key],a.parent&&a.parent.children.push(a)}var s=r[e]||{key:e,children:[]};return s.level=-1,s},_convertDataToPlainStructure:function(t,n,e){var i;if(this._itemsGetter&&!t.isConverted){e=e||[];for(var r=0;r<t.length;r++){var o=hm(t[r]);void 0===(i=this._keyGetter(o))&&this._keySetter(o,i=e.length+1),this._parentIdSetter(o,void 0===n?this.option("rootValue"):n),e.push(o);var a=this._itemsGetter(o);if(a&&a.length){this._convertDataToPlainStructure(a,i,e);var s=this.option("itemsExpr");Yt(s)||delete o[s]}}return e.isConverted=!0,e}return t},_createIdFilter:function(t,n){for(var e=[],i=0;i<n.length;i++)e.push([t,"=",n[i]]);return vn.combineFilters(e,"or")},_customizeRemoteOperations:function(t,n){this.callBase.apply(this,arguments),t.remoteOperations.paging=!1;var e=!1;this.option("autoExpandAll")&&(t.remoteOperations.sorting=!1,t.remoteOperations.filtering=!1,(!this._lastLoadOptions||n.filtering&&!t.storeLoadOptions.filter)&&!t.isCustomLoading&&(e=!0)),t.isCustomLoading||(this._isReload=this._isReload||n.reload,t.cachedStoreData||(this._isChildrenLoaded={},this._isReload&&(this._nodeByKey={})),this.option("expandNodesOnFiltering")&&(n.filtering||this._isReload&&t.storeLoadOptions.filter)&&(t.storeLoadOptions.filter?e=!0:t.collapseVisibleNodes=!0)),t.expandVisibleNodes=e},_getParentIdsToLoad:function(t){for(var n=[],e=0;e<t.length;e++){var i=this.getNodeByKey(t[e]);(!i||i.hasChildren&&!i.children.length)&&n.push(t[e])}return n},_handleCustomizeStoreLoadOptions:function(t){var n=this.option("rootValue"),e=this.option("parentIdExpr"),i=t.storeLoadOptions.parentIds;if(i&&(t.isCustomLoading=!1),this.callBase.apply(this,arguments),t.remoteOperations.filtering&&!t.isCustomLoading&&(g8(this)&&t.cachedStoreData||!t.storeLoadOptions.filter)){var r=t.collapseVisibleNodes?[]:this.option("expandedRowKeys");i=[n].concat(r).concat(i||[]);var o=t.data?this._getParentIdsToLoad(i):i;o.length&&(t.cachedPagingData=void 0,t.data=void 0,t.mergeStoreLoadData=!0,t.delay=this.option("loadingTimeout")),t.storeLoadOptions.parentIds=o,t.storeLoadOptions.filter=this._createIdFilter(e,o)}},_generateInfoToLoad:function(t,n){var e,s,i={},r={},o=[],a=this.option("rootValue");for(s=0;s<t.length;s++)i[e=n?this._parentIdGetter(t[s]):this._keyGetter(t[s])]=!0;for(s=0;s<t.length;s++){e=n?this._keyGetter(t[s]):this._parentIdGetter(t[s]);var l=n?this.isRowExpanded(e):e!==a;!i[e]&&!r[e]&&l&&(r[e]=!0,o.push(e))}return{keyMap:r,keys:o}},_loadParentsOrChildren:function(t,n,e){var r,o,i=this,{keys:a,keyMap:s}=i._generateInfoToLoad(t,e),l=new et,u=n.remoteOperations.filtering,f=i.option("maxFilterLengthInRequest"),S=u?n.storeLoadOptions:n.loadOptions;function T(Y){return u&&(i._cachedStoreData=i._cachedStoreData.concat(Y)),t.concat(Y)}if(!a.length)return l.resolve(t);var R=a.map(Y=>this.getNodeByKey(Y)).filter(Y=>Y&&Y.data);if(R.length===a.length&&(e&&(R=R.reduce((Y,ie)=>Y.concat(ie.children),[])),R.length))return i._loadParentsOrChildren(T(R.map(Y=>Y.data)),n,e);var L=e?i.option("parentIdExpr"):i.getKeyExpr();r=i._createIdFilter(L,a),encodeURI(JSON.stringify(r)).length>f&&(r=function(Y){return s[e?i._parentIdGetter(Y):i._keyGetter(Y)]},o=u),S=se({},S,{filter:o?null:r});var j=n.fullData?new cs(n.fullData):i._dataSource.store();return i.loadFromStore(S,j).done(function(Y){Y.length?(o&&(Y=Ha(Y).filter(r).toArray()),i._loadParentsOrChildren(T(Y),n,e).done(l.resolve).fail(l.reject)):l.resolve(t)}).fail(l.reject),l},_loadParents:function(t,n){return this._loadParentsOrChildren(t,n)},_loadChildrenIfNeed:function(t,n){return g8(this)?this._loadParentsOrChildren(t,n,!0):Qt(t)},_updateHasItemsMap:function(t){var n=t.storeLoadOptions.parentIds;if(n)for(var e=0;e<n.length;e++)this._isChildrenLoaded[n[e]]=!0},_getKeyInfo:function(){return{key:()=>"key",keyOf:t=>t.key}},_processChanges:function(t){var n=[];return t.forEach(e=>{"insert"===e.type?n=n.concat(this._applyInsert(e)):"remove"===e.type?n=n.concat(this._applyRemove(e)):"update"===e.type&&n.push({type:e.type,key:e.key,data:{data:e.data}})}),n},_handleChanging:function(t){this.callBase.apply(this,arguments);var n=e=>{var i=e.filter(r=>"update"===r.type);return this._processChanges(i)};t.postProcessChanges=n},_applyBatch:function(t){var n=this._processChanges(t);this.callBase(n)},_setHasItems:function(t,n){var e=this._hasItemsSetter;t.hasChildren=n,e&&t.data&&e(t.data,n)},_applyInsert:function(t){var n=[],e=this.parentKeyOf(t.data),i=this.getNodeByKey(e);if(i){var r=this.option("rootValue"),o=this._convertItemToNode(t.data,r,this._nodeByKey);if(o.hasChildren=!1,o.level=i.level+1,o.visible=!0,i.children.push(o),this._isChildrenLoaded[o.key]=!0,this._setHasItems(i,!0),(!i.parent||this.isRowExpanded(i.key))&&void 0!==t.index){var a=this.items().indexOf(i)+1;a+=t.index>=0?Math.min(t.index,i.children.length):i.children.length,n.push({type:t.type,data:o,index:a})}}return n},_needToCopyDataObject:function(){return!1},_applyRemove:function(t){var n=[],e=this.getNodeByKey(t.key),i=e&&e.parent;if(i){var r=i.children.indexOf(e);r>=0&&(i.children.splice(r,1),i.children.length||this._setHasItems(i,!1),n.push(t),n=n.concat(this.getChildNodeKeys(t.key).map(o=>({type:t.type,key:o}))))}return n},_handleDataLoaded:function(t){var n=t.data=this._convertDataToPlainStructure(t.data);!t.remoteOperations.filtering&&t.loadOptions.filter&&(t.fullData=ztn(Ha(t.data),{sort:t.loadOptions&&t.loadOptions.sort}).toArray()),this._updateHasItemsMap(t),this.callBase(t),n.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(t,n,e,i){var r=g8(this);i=i||0;for(var o=0;o<t.length;o++){var a=t[o],s=!1;this._fillNodes(t[o].children,n,e,i+1),a.level=i,a.hasChildren=this._calculateHasItems(a,n),a.visible&&a.hasChildren&&(r?a.children.filter(l=>l.visible).length?s=!0:a.children.length&&Cr.foreachNodes(a.children,function(l){l.visible=!0}):s=!0,n.expandVisibleNodes&&s&&e.push(a.key)),(a.visible||a.hasChildren)&&(a.parent.hasChildren=!0)}},_processTreeStructure:function(t,n){var e=t.data,i=t.storeLoadOptions.parentIds,r=[];if(i&&i.length||this._isReload){if(t.fullData&&t.fullData.length>t.data.length&&(e=t.fullData,n=n||t.data),this._rootNode=this._createNodesByItems(e,n),!this._rootNode)return void(t.data=(new et).reject(Di.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,t,r),this._isNodesInitializing=!0,(t.collapseVisibleNodes||r.length)&&this.option("expandedRowKeys",r),this._isReload=!1,this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1}var o=[];this._fillVisibleItemsByNodes(this._rootNode.children,t,o),t.data=o,this._totalItemsCount=o.length},_handleDataLoadedCore:function(t){var a,n=this,e=t.data,i=n.callBase,r=t.storeLoadOptions.filter||t.loadOptions.filter,o=n.option("filterMode"),s=t.storeLoadOptions.parentIds;if(!t.isCustomLoading){if(r&&(!s||!s.length)&&"standard"!==o){var u=t.data=new et;return"matchOnly"===o&&(a=e),n._loadParents(e,t).done(function(f){n._loadChildrenIfNeed(f,t).done(S=>{t.data=S,n._processTreeStructure(t,a),i.call(n,t),u.resolve(t.data)})}).fail(u.reject)}n._processTreeStructure(t)}n.callBase(t)},_handlePush:function(t){var{changes:n}=t,e=this._dataSource._reshapeOnPush,i=e&&!!n.length;i&&(this._isReload=!0),n.forEach(r=>{var o;return null!==(o=r.index)&&void 0!==o?o:r.index=-1}),this.callBase.apply(this,arguments)},init:function(t,n){this.callBase.apply(this,arguments);var e=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this.createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===e&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var t=this.store(),n=t&&t.key(),e=this.option("keyExpr");if(Z(n)&&Z(e)&&!Tr(n,e))throw Di.Error("E1044");return n||e||"id"},keyOf:function(t){return this._keyGetter&&this._keyGetter(t)},parentKeyOf:function(t){return this._parentIdGetter&&this._parentIdGetter(t)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount+this._totalCountCorrection},isRowExpanded:function(t,n){if(n){var e=n.isExpandedByKey;return e||(e=n.isExpandedByKey={},this.option("expandedRowKeys").forEach(function(r){e[r]=!0})),!!e[t]}return vn.getIndexByKey(t,this.option("expandedRowKeys"),null)>=0},_changeRowExpandCore:function(t){var n=this.option("expandedRowKeys").slice(),e=vn.getIndexByKey(t,n,null);e<0?n.push(t):n.splice(e,1),this.option("expandedRowKeys",n)},changeRowExpand:function(t){return this._changeRowExpandCore(t),this._isNodesInitializing?(new et).resolve():this.load()},getNodeByKey:function(t){if(this._nodeByKey)return this._nodeByKey[t]},getNodeLeafKeys:function(){var t=this,n=[];return(t._rootNode?[t._rootNode.key]:[]).forEach(function(i){var r=t.getNodeByKey(i);r&&Cr.foreachNodes([r],function(o){!o.children.length&&n.push(o.key)})}),n},getChildNodeKeys:function(t){var n=this.getNodeByKey(t),e=[];return n&&Cr.foreachNodes(n.children,function(i){e.push(i.key)}),e},loadDescendants:function(t,n){var e=this,i=new et,r=e.remoteOperations();if(t=Z(t)?Array.isArray(t)?t:[t]:e.getNodeLeafKeys(),!r.filtering||!t.length)return i.resolve();var o=e._dataSource._createStoreLoadOptions();return o.parentIds=t,e.load(o).done(function(){if(!n){var a=(s=e,u=[],t.forEach(function(f){var S=s.getNodeByKey(f);S&&S.children.forEach(function(T){u.push(T.key)})}),u);if(a.length)return void e.loadDescendants(a,n).done(i.resolve).fail(i.reject)}var s,u;i.resolve()}).fail(i.reject),i.promise()},forEachNode:function(){var n,t=[];if(1===arguments.length){n=arguments[0];var e=this.getRootNode();t=e&&e.children||[]}else 2===arguments.length&&(n=arguments[1],t=arguments[0],t=Array.isArray(t)?t:[t]);Cr.foreachNodes(t,n)}});const WLe={extend:function(t){FX=FX.inherit(t)},create:function(t){return new FX(t)}};var Wtn=ZN.controllers.data.inherit({_getDataSourceAdapter:function(){return WLe},_getNodeLevel:function(t){for(var n=-1;t.parent;)t.visible&&n++,t=t.parent;return n},_generateDataItem:function(t,n){return{rowType:"data",node:t,key:t.key,data:t.data,isExpanded:this.isRowExpanded(t.key,n),level:this._getNodeLevel(t)}},_loadOnOptionChange:function(){this._dataSource.load()},_isItemEquals:function(t,n){return!(!this.callBase.apply(this,arguments)||t.node&&n.node&&t.node.hasChildren!==n.node.hasChildren||t.level!==n.level||t.isExpanded!==n.isExpanded)},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(t){var n=this._dataSource;if(n)return n.keyOf(t)},key:function(){var t=this._dataSource;if(t)return t.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey","loadDescendants","forEachNode"])},changeRowExpand:function(t){if(this._dataSource){var n={key:t},e=this.isRowExpanded(t);if(this.executeAction(e?"onRowCollapsing":"onRowExpanding",n),!n.cancel)return this._dataSource.changeRowExpand(t).done(()=>{this.executeAction(e?"onRowCollapsed":"onRowExpanded",n)})}return(new et).resolve()},isRowExpanded:function(t,n){return this._dataSource&&this._dataSource.isRowExpanded(t,n)},expandRow:function(t){return this.isRowExpanded(t)?(new et).resolve():this.changeRowExpand(t)},collapseRow:function(t){return this.isRowExpanded(t)?this.changeRowExpand(t):(new et).resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(t){switch(t.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),t.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":this._dataSource&&!this._dataSource._isNodesInitializing&&!Tr(t.value,t.previousValue)&&this._loadOnOptionChange(),t.handled=!0;break;case"maxFilterLengthInRequest":t.handled=!0;break;default:this.callBase(t)}},getNodeByKey:function(t){if(this._dataSource)return this._dataSource.getNodeByKey(t)},getChildNodeKeys:function(t){if(this._dataSource)return this._dataSource.getChildNodeKeys(t)},loadDescendants:function(t,n){if(this._dataSource)return this._dataSource.loadDescendants(t,n)},forEachNode:function(){this._dataSource.forEachNode.apply(this,arguments)}});Cr.registerModule("data",{defaultOptions:function(){return se({},ZN.defaultOptions(),{itemsExpr:"items",parentIdExpr:"parentId",rootValue:0,dataStructure:"plain",expandedRowKeys:[],filterMode:"withAncestors",expandNodesOnFiltering:!0,autoExpandAll:!1,onNodesInitialized:null,maxFilterLengthInRequest:1500,paging:{enabled:!1}})},controllers:{data:Wtn}}),Cr.registerModule("sorting",IIe);var GLe="dx-treelist-text-content",jLe="dx-treelist-expanded",KLe="dx-treelist-collapsed",$tn=JN.views.rowsView.inherit(function(){var t=function(n,e){var i=U("<div>").addClass("dx-treelist-empty-space");return n&&i.toggleClass(jLe,e).toggleClass(KLe,!e).append(U("<span>")),i};return{_renderIconContainer:function(n,e){var i=U("<div>").addClass("dx-treelist-icon-container").appendTo(n);return e.watch&&e.watch(function(){return[e.row.level,e.row.isExpanded,e.row.node.hasChildren]},()=>{i.empty(),this._renderIcons(i,e)}),n.addClass("dx-treelist-cell-expandable"),this._renderIcons(i,e)},_renderIcons:function(n,e){for(var i=e.row,r=i.level,o=0;o<=r;o++)n.append(t(o===r&&i.node.hasChildren,i.isExpanded));return n},_renderCellCommandContent:function(n,e){return this._renderIconContainer(n,e),!0},_processTemplate:function(n,e){var i,r=this,a=this.callBase(n),s=r._columnsController.getFirstDataColumnIndex();return a&&(null===(i=e.column)||void 0===i?void 0:i.index)===s?{render:function(l){var f,u=l.container;r._renderCellCommandContent(u,l.model)&&(l.container=(f=u,U("<div>").addClass(GLe).appendTo(f))),a.render(l)}}:a},_updateCell:function(n,e){n=n.hasClass(GLe)?n.parent():n,this.callBase(n,e)},_rowClick:function(n){var e=this._dataController,i=U(n.event.target),r=this.isExpandIcon(i),o=e&&e.items()[n.rowIndex];r&&o&&e.changeRowExpand(o.key),this.callBase(n)},_createRow:function(n){var e=n&&n.node,i=this.callBase.apply(this,arguments);return e&&(this.setAria("level",n.level+1,i),e.hasChildren&&this.setAria("expanded",n.isExpanded,i)),i},isExpandIcon:function(n){return!!n.closest("."+jLe+", ."+KLe).length}}}());Cr.registerModule("rows",{defaultOptions:JN.defaultOptions,views:{rowsView:$tn}}),Cr.registerModule("contextMenu",RIe),Cr.registerModule("errorHandling",BIe);var qtn=e9.views.gridView.inherit({_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"},_getTableRoleName:function(){return"treegrid"}});Cr.registerModule("gridView",{defaultOptions:e9.defaultOptions,controllers:e9.controllers,views:{gridView:qtn},extenders:{controllers:{resizing:{_synchronizeColumns:function(){var t=this.option("wordWrapEnabled");t&&this._toggleContentMinHeight(!0),this.callBase(arguments),t&&Ns(()=>{Zo(()=>{Ns(()=>{this._toggleContentMinHeight(!1)})})})},_toggleBestFitMode:function(t){this.callBase(t),this._rowsView.getTableElement().find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"),t)}}}}}),Cr.registerModule("headerPanel",hY);var uM=Cr.callModuleItemsMethod,Ztn="dx-treelist";Cr.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editingRowBased","editingFormBased","editingCellBased","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var PX=tr.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var t=this.callBase();return we(Cr.modules,function(){Yt(this.defaultOptions)&&se(!0,t,this.defaultOptions())}),t},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return io()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}}])},_init:function(){this.callBase(),Cr.processModules(this,Cr),uM(this,"init")},_clean:Be,_optionChanged:function(t){uM(this,"optionChanged",[t]),t.handled||this.callBase(t)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(t){t&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass(Ztn),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var t=this;Zo(function(){t._renderContentImpl()})},_dispose:function(){this.callBase(),uM(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),uM(this,"beginUpdate")},endUpdate:function(){uM(this,"endUpdate"),this.callBase()},getController:function(t){return this._controllers[t]},getView:function(t){return this._views[t]},focus:function(t){this.callBase(),Z(t)&&this.getController("keyboardNavigation").focus(t)}});PX.registerModule=Cr.registerModule.bind(Cr),On("dxTreeList",PX);const Xtn=PX;var Jtn=gY.extenders.controllers.stateStoring.applyState;Cr.registerModule("stateStoring",se(!0,{},gY,{extenders:{controllers:{stateStoring:{applyState:function(t){Jtn.apply(this,arguments),this.option("expandedRowKeys",t.expandedRowKeys?t.expandedRowKeys.slice():[])}},data:{getUserState:function(){var t=this.callBase.apply(this,arguments);return this.option("autoExpandAll")||(t.expandedRowKeys=this.option("expandedRowKeys")),t}}}}})),Cr.registerModule("columnChooser",o9),Cr.registerModule("masterDetail",se(!0,{},_ke,{extenders:{controllers:{data:{isRowExpanded:function(){return this.callBase.apply(this,arguments)},_processItems:function(){return this.callBase.apply(this,arguments)},_processDataItem:function(){return this.callBase.apply(this,arguments)}}}}})),Cr.registerModule("editorFactory",Wke);var $Le="dx-treelist-icon-container",tnn=_v.controllers.editing.inherit({_generateNewItem:function(t){var n=this.callBase(t);return n.data={key:t},n.children=[],n.level=0,n.parentKey=this.option("rootValue"),n},_isProcessedItem:function(){return!0},_setInsertAfterOrBeforeKey:function(t,n){void 0!==n&&n!==this.option("rootValue")?t.insertAfterKey=n:this.callBase.apply(this,arguments)},_getLoadedRowIndex:function(t,n){var e=this.getController("data"),i=e.dataSource(),r=i?.parentKeyOf(n.data);if(void 0!==r&&r!==this.option("rootValue")){var o=vn.getIndexByKey(r,t);return o>=0&&this._dataController.isRowExpanded(r)?o+1:-1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var t=this.callBase.apply(this,arguments),n=this.option("editing");return t||n.allowAdding},_isDefaultButtonVisible:function(t,n){var e=this.callBase.apply(this,arguments),i=n.row;return"add"===t.name?this.allowAdding(n)&&i.rowIndex!==this._getVisibleEditRowIndex()&&!(i.removed||i.isNewRow):e},_getEditingButtons:function(t){var n=this.callBase.apply(this,arguments);return t.column.buttons||n.unshift(this._getButtonConfig("add",t)),n},_beforeSaveEditData:function(t){var n=this._dataController,e=this.callBase.apply(this,arguments);if(t&&"insert"!==t.type){var i=n?.store(),r=i?.key();if(!Z(r))throw Di.Error("E1045")}return e},addRowByRowIndex:function(t){var e=this.getController("data").getVisibleRows()[t];return this.addRow(e?e.key:void 0)},addRow:function(t){return void 0===t&&(t=this.option("rootValue")),this.callBase.call(this,t)},_addRowCore:function(t,n,e){var i=this.callBase,r=this.option("rootValue"),o=this.getController("data"),s=o.dataSource().createParentIdGetter();if(void 0!==(n=s(t))&&n!==r&&!o.isRowExpanded(n)){var l=new et;return o.expandRow(n).done(()=>{setTimeout(()=>{i.call(this,t,n,e).done(l.resolve).fail(l.reject)})}).fail(l.reject),l.promise()}return i.call(this,t,n,e)},_initNewRow:function(t,n){var e=this.getController("data"),i=e.dataSource(),r=i.createParentIdSetter();return r(t.data,n),this.callBase.apply(this,arguments)},allowAdding:function(t){return this._allowEditAction("allowAdding",t)},_needToCloseEditableCell:function(t){return this.callBase.apply(this,arguments)||t.closest("."+$Le).length&&this.isEditing()},getButtonLocalizationNames(){var t=this.callBase.apply(this);return t.add="dxTreeList-editingAddRowToNode",t}}),nnn=_v.extenders.views.rowsView._rowClick,inn=_v.extenders.views.rowsView._rowDblClick,qLe=function(t){var n=U(t.event.target),e="dxdblclick"===t.event.type?inn:nnn;return!n.closest(".dx-select-checkbox").length&&!rnn.call(this,t,e)};function rnn(t,n){return!U(t.event.target).closest("."+$Le).length&&(n.call(this,t),!0)}var onn=se({},_v.extenders.views.rowsView,{_renderCellCommandContent:function(t,n){var e=this._editingController,i=n.row&&e.isEditRow(n.row.rowIndex),r=n.isEditing||i;return!r&&this.callBase.apply(this,arguments)},_rowClick:function(t){qLe.call(this,t)&&this.callBase.apply(this,arguments)},_rowDblClick:function(t){qLe.call(this,t)&&this.callBase.apply(this,arguments)}});Cr.registerModule("editing",{defaultOptions:function(){return se(!0,_v.defaultOptions(),{editing:{texts:{addRowToNode:ye.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:tnn},extenders:{controllers:se(!0,{},_v.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:onn,headerPanel:_v.extenders.views.headerPanel}}}),Cr.registerModule("editingRowBased",sMe),Cr.registerModule("editingFormBased",uAe),Cr.registerModule("editingCellBased",cAe);var RX=se({},FS.extenders.controllers.editing);delete RX.processItems,delete RX.processDataItem,Cr.registerModule("validating",{defaultOptions:FS.defaultOptions,controllers:FS.controllers,extenders:{controllers:{editing:RX,editorFactory:FS.extenders.controllers.editorFactory},views:FS.extenders.views}});var ann=Qm.defaultOptions,lnn=Qm.extenders.dataSourceAdapter;Qm.extenders.controllers.data=se({},Qm.extenders.controllers.data,{_loadOnOptionChange:function(){var t=this._dataSource&&this._dataSource._virtualScrollController;t&&t.reset(),this.callBase()}}),Qm.extenders.dataSourceAdapter=se({},lnn,{changeRowExpand:function(){return this.callBase.apply(this,arguments).done(()=>{var t=this.getViewportItemIndex();t>=0&&this.setViewportItemIndex(t)})}}),Cr.registerModule("virtualScrolling",se({},Qm,{defaultOptions:function(){return se(!0,ann(),{scrolling:{mode:"virtual"}})}})),WLe.extend(Qm.extenders.dataSourceAdapter),Cr.registerModule("filterRow",zAe),Cr.registerModule("headerFilter",qAe),Cr.registerModule("filterSync",bFe),Cr.registerModule("filterBuilder",AFe),Cr.registerModule("filterPanel",FFe),Cr.registerModule("pager",tPe),Cr.registerModule("columnsResizingReordering",xv),Cr.registerModule("columnFixing",VPe),Cr.registerModule("adaptivity",jPe);var hnn=mk.extenders.views.rowsView._rowClick,pnn=mk.extenders.controllers.data._handleDataChanged,gnn=function(t,n){return!!t.filter(function(e){return e===n}).length};Cr.registerModule("selection",se(!0,{},mk,{defaultOptions:function(){return se(!0,mk.defaultOptions(),{selection:{showCheckBoxesMode:"always",recursive:!1}})},extenders:{controllers:{data:{_handleDataChanged:function(t){var n=this.getController("selection"),e=n.isRecursiveSelection();e&&(!t||"updateSelectionState"!==t.changeType)&&n.updateSelectionState({selectedItemKeys:this.option("selectedRowKeys")}),pnn.apply(this,arguments)},loadDescendants:function(){var t=this,n=t.callBase.apply(t,arguments),e=t.getController("selection"),i=e.isRecursiveSelection();return i&&n.done(function(){e.updateSelectionState({selectedItemKeys:t.option("selectedRowKeys")})}),n}},selection:{init:function(){this.callBase.apply(this,arguments),this._selectionStateByKey={}},_getSelectionConfig:function(){var t=this.callBase.apply(this,arguments),n=t.plainItems;return t.plainItems=e=>{var i;return e&&(i=this._dataController.getCachedStoreData()),i||(i=n.apply(this,arguments).map(r=>r.data)),i||[]},t.isItemSelected=e=>{var i=this._dataController.keyOf(e);return this.isRowSelected(i)},t.isSelectableItem=e=>!!e,t.getItemData=e=>e,t.allowLoadByRange=()=>!1,t},renderSelectCheckBoxContainer:function(t,n){var e=this.component.getView("rowsView");t.addClass("dx-cell-focus-disabled");var i=e._renderSelectCheckBox(t,{value:n.row.isSelected,row:n.row,column:n.column});e._attachCheckBoxClickEvent(i)},_updateSelectColumn:Be,_getSelectAllNodeKeys:function(){var t=this.component,n=t.getRootNode(),e={},i=[],r=this.isRecursiveSelection();return n&&Cr.foreachNodes(n.children,function(o){return void 0!==o.key&&(o.visible||r)&&i.push(o.key),!o.visible||!r&&t.isRowExpanded(o.key,e)}),i},isSelectAll:function(){if(0===(this.option("selectedRowKeys")||[]).length)return!1;var n=this.component,e=this._getSelectAllNodeKeys(),i=this.isRecursiveSelection(),r=!1,o=e.filter(function(a){var s=n.isRowSelected(a,i);return void 0===s&&(r=!0),s});return o.length?o.length===e.length||void 0:!!r&&void 0},selectAll:function(){var t=this._getSelectAllNodeKeys().filter(n=>!this.isRowSelected(n));return this.focusedItemIndex(-1),this.selectRows(t,!0)},deselectAll:function(){var t=this._getSelectAllNodeKeys();return this.focusedItemIndex(-1),this.deselectRows(t)},selectedItemKeys:function(t,n,e,i){var r=this,o=r.option("selectedRowKeys"),s=this.isRecursiveSelection()&&r._normalizeSelectionArgs({keys:Z(t)?t:[]},n,!e);return s&&!Tr(s.selectedRowKeys,o)?(r._isSelectionNormalizing=!0,this.callBase(s.selectedRowKeys,!1,!1,!1).always(function(){r._isSelectionNormalizing=!1}).done(function(l){s.selectedRowsData=l,r._fireSelectionChanged(s)})):this.callBase(t,n,e,i)},changeItemSelection:function(t,n){var e=this.isRecursiveSelection();if(e&&!n.shift){var i=this._dataController.getKeyByRowIndex(t);return this.selectedItemKeys(i,!0,this.isRowSelected(i)).done(()=>{this.isRowSelected(i)&&this.callBase(t,n,!0)})}return this.callBase.apply(this,arguments)},_updateParentSelectionState:function(t,n){var e=this,i=n,r=t.parent;r&&(r.children.length>1&&(!1===n?i=!!r.children.some(function(s,l,u){return e._selectionStateByKey[s.key]})&&void 0:!0===n&&(i=!r.children.some(function(s){return!e._selectionStateByKey[s.key]})||void 0)),this._selectionStateByKey[r.key]=i,r.parent&&r.parent.level>=0&&this._updateParentSelectionState(r,i))},_updateChildrenSelectionState:function(t,n){var e=this,i=t.children;i&&i.forEach(function(r){e._selectionStateByKey[r.key]=n,r.children.length>0&&e._updateChildrenSelectionState(r,n)})},_updateSelectionStateCore:function(t,n){for(var e=this._dataController,i=0;i<t.length;i++){this._selectionStateByKey[t[i]]=n;var r=e.getNodeByKey(t[i]);r&&(this._updateParentSelectionState(r,n),this._updateChildrenSelectionState(r,n))}},_getSelectedParentKeys:function(t,n,e){for(var i,r=this._dataController.getNodeByKey(t),o=r&&r.parent,a=[];o&&o.level>=0;){if(a.unshift(o.key),e?!gnn(n,o.key)&&this.isRowSelected(o.key):n.indexOf(o.key)>=0){a=this._getSelectedParentKeys((i=o).key,n,e).concat(a);break}if(e)break;o=o.parent}return i&&a||[]},_getSelectedChildKeys:function(t,n){var e=[],i=this._dataController.getNodeByKey(t);return i&&Cr.foreachNodes(i.children,r=>{var o=n.indexOf(r.key);return o<0&&e.push(r.key),o>0||o<0&&void 0===this._selectionStateByKey[r.key]}),e},_normalizeParentKeys:function(t,n){var e=[t],i=this._getSelectedParentKeys(t,n.selectedRowKeys);if(i.length){(e=e.concat(i)).forEach(function(o){var a=n.selectedRowKeys.indexOf(o);a>=0&&n.selectedRowKeys.splice(a,1)});var r=this._getSelectedChildKeys(i[0],e);n.selectedRowKeys=n.selectedRowKeys.concat(r)}},_normalizeChildrenKeys:function(t,n){var e=this._dataController.getNodeByKey(t);e&&e.children.forEach(i=>{var r=n.selectedRowKeys.indexOf(i.key);r>=0&&n.selectedRowKeys.splice(r,1),this._normalizeChildrenKeys(i.key,n)})},_normalizeSelectedRowKeysCore:function(t,n,e,i){var r=this;t.forEach(function(o){if(!e||r.isRowSelected(o)!==i){r._normalizeChildrenKeys(o,n);var a=n.selectedRowKeys.indexOf(o);i?(a<0&&n.selectedRowKeys.push(o),n.currentSelectedRowKeys.push(o)):(a>=0&&n.selectedRowKeys.splice(a,1),n.currentDeselectedRowKeys.push(o),r._normalizeParentKeys(o,n))}})},_normalizeSelectionArgs:function(t,n,e){var i,r=Array.isArray(t.keys)?t.keys:[t.keys],o=this.option("selectedRowKeys")||[];return r.length&&(i={currentSelectedRowKeys:[],currentDeselectedRowKeys:[],selectedRowKeys:n?o.slice(0):[]},this._normalizeSelectedRowKeysCore(r,i,n,e)),i},_updateSelectedItems:function(t){this.updateSelectionState(t),this.callBase(t)},_fireSelectionChanged:function(){this._isSelectionNormalizing||this.callBase.apply(this,arguments)},_isModeLeavesOnly:function(t){return"leavesOnly"===t},_removeDuplicatedKeys:function(t){var n=[],e={};return t.forEach(i=>{e[i]||(e[i]=!0,n.push(i))}),n},_getAllChildKeys(t){var n=[],e=this._dataController.getNodeByKey(t);return e&&Cr.foreachNodes(e.children,function(i){n.push(i.key)},!0),n},_getAllSelectedRowKeys:function(t){var n=[];return t.forEach(e=>{var i=this._getSelectedParentKeys(e,[],!0),r=this._getAllChildKeys(e);n.push.apply(n,i.concat([e],r))}),n=this._removeDuplicatedKeys(n)},_getParentSelectedRowKeys:function(t){var n=this,e=[];return t.forEach(i=>{!n._getSelectedParentKeys(i,t).length&&e.push(i)}),e},_getLeafSelectedRowKeys:function(t){var n=[],e=this._dataController;return t.forEach(function(i){var r=e.getNodeByKey(i);r&&!r.hasChildren&&n.push(i)}),n},isRecursiveSelection:function(){var t=this.option("selection.mode"),n=this.option("selection.recursive");return"multiple"===t&&n},updateSelectionState:function(t){var n=t.removedItemKeys||[],e=t.selectedItemKeys||[];this.isRecursiveSelection()&&(this._updateSelectionStateCore(n,!1),this._updateSelectionStateCore(e,!0))},isRowSelected:function(t,n){var e,i=this.callBase.apply(this,arguments);return n=null!==(e=n)&&void 0!==e?e:this.isRecursiveSelection(),!i&&n?t in this._selectionStateByKey&&this._selectionStateByKey[t]:i},getSelectedRowKeys(t){if(!this._dataController)return[];var n=this.callBase.apply(this,arguments);return t&&(this.isRecursiveSelection()&&(n=this._getAllSelectedRowKeys(n)),"all"!==t&&("excludeRecursive"===t?n=this._getParentSelectedRowKeys(n):this._isModeLeavesOnly(t)&&(n=this._getLeafSelectedRowKeys(n)))),n},getSelectedRowsData:function(t){var n=this._dataController,e=this.getSelectedRowKeys(t)||[],i=[];return e.forEach(function(r){var o=n.getNodeByKey(r);o&&i.push(o.data)}),i},refresh:function(){return this._selectionStateByKey={},this.callBase.apply(this,arguments)}}},views:{columnHeadersView:{_processTemplate:function(t,n){var e=this,r=this.callBase(t,n),o=e._columnsController.getFirstDataColumnIndex();return r&&"header"===n.rowType&&n.column.index===o?{render:function(a){"multiple"===e.option("selection.mode")&&e.renderSelectAll(a.container,a.model),r.render(a)}}:r},renderSelectAll:function(t,n){t.addClass("dx-treelist-select-all"),this._renderSelectAllCheckBox(t)},_isSortableElement:function(t){return this.callBase(t)&&!t.closest(".dx-select-checkbox").length}},rowsView:{_renderIcons:function(t,n){return this.callBase.apply(this,arguments),!n.row.isNewRow&&"multiple"===this.option("selection.mode")&&this.getController("selection").renderSelectCheckBoxContainer(t,n),t},_rowClick:function(t){var n=U(t.event.target);this.isExpandIcon(n)?this.callBase.apply(this,arguments):hnn.apply(this,arguments)}}}}})),Cr.registerModule("search",NFe),Cr.registerModule("keyboardNavigation",se(!0,{},TPe,{extenders:{controllers:{keyboardNavigation:{_leftRightKeysHandler:function(t,n){var e=this.getVisibleRowIndex(),i=this._dataController;if(!t.ctrl)return this.callBase.apply(this,arguments);var r=this._getDirectionCodeByKey(t.keyName),o=i.getKeyByRowIndex(e);"nextInRow"===r?i.expandRow(o):i.collapseRow(o)}}}}})),Cr.registerModule("virtualColumns",KPe),Cr.registerModule("focus",se(!0,{},t2e,{extenders:{controllers:{data:{changeRowExpand:function(t){return this.option("focusedRowEnabled")&&this.isRowExpanded(t)&&this._isFocusedRowInside(t)&&this.option("focusedRowKey",t),this.callBase.apply(this,arguments)},_isFocusedRowInside:function(t){for(var n=this.option("focusedRowKey"),e=this.getRowIndexByKey(n),i=e>=0&&this.getVisibleRows()[e],r=i&&i.node.parent;r;){if(r.key===t)return!0;r=r.parent}return!1},getParentKey:function(t){var n=this._dataSource,e=this.getNodeByKey(t),i=new et;return e?i.resolve(e.parent?e.parent.key:void 0):n.load({filter:[n.getKeyExpr(),"=",t]}).done(function(r){var o=r[0];o?i.resolve(n.parentKeyOf(o)):i.reject()}).fail(i.reject),i.promise()},expandAscendants:function(t){var n=this,e=n._dataSource,i=new et;return n.getParentKey(t).done(function(r){e&&void 0!==r&&r!==n.option("rootValue")?(e._isNodesInitializing=!0,n.expandRow(r),e._isNodesInitializing=!1,n.expandAscendants(r).done(i.resolve).fail(i.reject)):i.resolve()}).fail(i.reject),i.promise()},getPageIndexByKey:function(t){var n=this,e=n._dataSource,i=new et;return n.expandAscendants(t).done(function(){e.load({parentIds:[]}).done(function(r){var o=function fnn(t,n){var e=-1;return t.forEach(function(i,r){n(i)&&(e=r)}),e}(r,function(s){return n.keyOf(s.data)===t}),a=-1;o>=0&&(a=Math.floor(o/n.pageSize())),i.resolve(a)}).fail(i.reject)}).fail(i.reject),i.promise()}}}}})),Cr.registerModule("rowDragging",s2e);const YLe=Xtn;var dM="tasks";class _nn{constructor(n){this._gantt=n,this._$treeList=this._gantt._$treeList}getTreeList(){var{keyExpr:n,parentIdExpr:e}=this._gantt.option(dM);return this._treeList=this._gantt._createComponent(this._$treeList,YLe,{dataSource:this.createDataSource(this._gantt._tasksRaw,n),keyExpr:n,filterSyncEnabled:!0,parentIdExpr:e,columns:this.getColumns(),columnResizingMode:"nextColumn",height:this._getHeight(),width:this._gantt.option("taskListWidth"),selection:{mode:$s.getSelectionMode(this._gantt.option("allowSelection"))},selectedRowKeys:$s.getArrayFromOneElement(this._gantt.option("selectedRowKey")),sorting:this._gantt.option("sorting"),filterRow:this._gantt.option("filterRow"),headerFilter:this._gantt.option("headerFilter"),scrolling:{showScrollbar:"onHover",mode:"virtual"},allowColumnResizing:!0,autoExpandAll:!0,showRowLines:this._gantt.option("showRowLines"),rootValue:this._gantt.option("rootValue"),onContentReady:i=>{this._onContentReady(i)},onSelectionChanged:i=>{this._onSelectionChanged(i)},onRowCollapsed:i=>{this._onRowCollapsed(i)},onRowExpanded:i=>{this._onRowExpanded(i)},onRowPrepared:i=>{this._onRowPrepared(i)},onContextMenuPreparing:i=>{this._onContextMenuPreparing(i)},onRowClick:i=>{this.onRowClick(i)},onRowDblClick:i=>{this.onRowDblClick(i)},onNodesInitialized:i=>{this._onNodesInitialized(i)}}),this._treeList}onAfterTreeListCreate(){this._postponedGanttInitRequired&&(this._initGanttOnContentReady({component:this._treeList}),delete this._postponedGanttInitRequired)}_onContentReady(n){this._treeList?this._initGanttOnContentReady(n):this._postponedGanttInitRequired=!0,this._gantt._onTreeListContentReady(n)}_initGanttOnContentReady(n){n.component.getDataSource()&&(this._gantt._initGanttView(),this._initScrollSync(n.component)),this._gantt._sortAndFilter(),this._gantt._sizeHelper.updateGanttRowHeights()}_onSelectionChanged(n){var e=n.currentSelectedRowKeys[0];this._gantt._setGanttViewOption("selectedRowKey",e),this._gantt._setOptionWithoutOptionChange("selectedRowKey",e),this._gantt._actionsManager.raiseSelectionChangedAction(e)}_onRowCollapsed(n){this._gantt._onTreeListRowExpandChanged(n,!1)}_onRowExpanded(n){this._gantt._onTreeListRowExpandChanged(n,!0)}_onRowPrepared(n){"data"===n.rowType&&n.node.children.length>0&&U(n.rowElement).addClass("dx-gantt-collapsable-row")}_onContextMenuPreparing(n){var e,i;if("header"!==n.target){"data"===(null===(e=n.row)||void 0===e?void 0:e.rowType)&&this.setOption("selectedRowKeys",[n.row.data[this._gantt.option("tasks.keyExpr")]]),n.items=[];var r={cancel:!1,event:n.event,type:"task",key:null===(i=n.row)||void 0===i?void 0:i.key,position:{x:n.event.pageX,y:n.event.pageY}};this._gantt._showPopupMenu(r)}}_getHeight(){return Ln(this._$treeList)?Ln(this._$treeList):(this._gantt._hasHeight=Z(this._gantt.option("height"))&&""!==this._gantt.option("height"),this._gantt._hasHeight?"100%":"")}_initScrollSync(n){var e=n.getScrollable();e&&(e.off("scroll"),e.on("scroll",i=>{this._onScroll(i)}))}_onScroll(n){var e=this._gantt._ganttView.getTaskAreaContainer();e.scrollTop!==n.component.scrollTop()&&(e.scrollTop=n.component.scrollTop())}_correctRowsViewRowHeight(n){var e=this._treeList._views&&this._treeList._views.rowsView;e?._rowHeight!==n&&(e._rowHeight=n)}_skipUpdateTreeListDataSource(){return this._gantt.option("validation.autoUpdateParentTasks")}selectRows(n){this.setOption("selectedRowKeys",n)}scrollBy(n){var e=this._treeList.getScrollable();if(e){var i=n-e.scrollTop();0!==i&&e.scrollBy({left:0,top:i})}}updateDataSource(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this._skipUpdateTreeListDataSource()||e)this.setDataSource(n);else if(i){var r=this._treeList.option("dataSource");this._gantt._onParentTasksRecalculated(r)}}setDataSource(n){this.setOption("dataSource",this.createDataSource(n))}createDataSource(n,e){return n&&new Fl({store:new cs({data:n,key:e||this.getOption("keyExpr")})})}onRowClick(n){this._gantt._actionsManager.raiseTaskClickAction(n.key,n.event)}onRowDblClick(n){this._gantt._actionsManager.raiseTaskDblClickAction(n.key,n.event)&&this._gantt._ganttView._ganttViewCore.showTaskEditDialog()}saveExpandedKeys(){var n,e=(null===(n=this._treeList)||void 0===n?void 0:n.getVisibleRows().length)>0,i=this.getOption("expandedRowKeys");e&&i&&(this._savedExpandedKeys=i)}_onNodesInitialized(n){var e;(null===(e=this._savedExpandedKeys)||void 0===e?void 0:e.filter(r=>!!this._treeList.getNodeByKey(r)))&&this.setOption("expandedRowKeys",this._savedExpandedKeys),delete this._savedExpandedKeys}getOffsetHeight(){return this._gantt._treeList._$element.get(0).offsetHeight}getRowHeight(){var n=this._treeList._$element.find(".dx-data-row"),e=n.length?Mi(n.last().get(0)).height:34;return e||(e=34),this._correctRowsViewRowHeight(e),e}getHeaderHeight(){return Mi(this._treeList._$element.find(".dx-treelist-headers").get(0)).height}getColumns(){var n=this._gantt.option("columns");if(n)for(var e=0;e<n.length;e++){var i=n[e];(i.dataField===this._gantt.option("".concat(dM,".keyExpr"))||i.dataField===this._gantt.option("".concat(dM,".parentIdExpr")))&&!i.dataType&&(i.dataType="object")}return n}getSievedItems(){var n=this._treeList.getRootNode();if(n){var e=[];$s.convertTreeToList(n,e);var i=$s.compileGettersByOption(this._gantt.option(dM));return this._gantt._validateSourceData(dM,e).map($s.prepareMapHandler(i))}}setOption(n,e){this._treeList&&this._treeList.option(n,e)}getOption(n){return this._treeList.option(n)}onTaskInserted(n,e){if(Z(e)){var i=this.getOption("expandedRowKeys");-1===i.indexOf(e)&&(i.push(e),this.setOption("expandedRowKeys",i))}this.selectRows($s.getArrayFromOneElement(n)),this.setOption("focusedRowKey",n)}getDataSource(){var n;return null===(n=this._treeList)||void 0===n?void 0:n.getDataSource()}}var vnn=D(660),XLe=D.n(vnn);class Cnn{constructor(n,e){this._element=n,this._scrollView=e._createComponent(this._element,Ih,{scrollByContent:!1,scrollByThumb:!0,showScrollbar:"onHover",direction:"both",onScroll:()=>{e.updateView()}})}get scrollTop(){return this._scrollView.scrollTop()}set scrollTop(n){var e=n-this._scrollView.scrollTop();0!==e&&this._scrollView.scrollBy({left:0,top:e})}get scrollLeft(){return this._scrollView.scrollLeft()}set scrollLeft(n){var e=n-this._scrollView.scrollLeft();0!==e&&this._scrollView.scrollBy({left:e,top:0})}get scrollWidth(){return this._scrollView.scrollWidth()}get scrollHeight(){return this._scrollView.scrollHeight()}get isExternal(){return!0}getWidth(){return this._element.offsetWidth}getHeight(){return this._element.offsetHeight}getElement(){return this._element}}class bnn extends tr{_init(){super._init(),this._onSelectionChanged=this._createActionByOption("onSelectionChanged"),this._onScroll=this._createActionByOption("onScroll"),this._onDialogShowing=this._createActionByOption("onDialogShowing"),this._onPopupMenuShowing=this._createActionByOption("onPopupMenuShowing"),this._onPopupMenuHiding=this._createActionByOption("onPopupMenuHiding"),this._expandAll=this._createActionByOption("onExpandAll"),this._collapseAll=this._createActionByOption("onCollapseAll"),this._taskClick=this._createActionByOption("onTaskClick"),this._taskDblClick=this._createActionByOption("onTaskDblClick"),this._onAdjustControl=this._createActionByOption("onAdjustControl")}_initMarkup(){var n=function ynn(){if(!XLe())throw Di.Error("E1041","devexpress-gantt");return XLe()}();this._ganttViewCore=new n(this.$element().get(0),this,{showResources:this.option("showResources"),showDependencies:this.option("showDependencies"),taskTitlePosition:this._getTaskTitlePosition(this.option("taskTitlePosition")),firstDayOfWeek:this._getFirstDayOfWeek(this.option("firstDayOfWeek")),allowSelectTask:this.option("allowSelection"),startDateRange:this.option("startDateRange"),endDateRange:this.option("endDateRange"),editing:this._parseEditingSettings(this.option("editing")),validation:this.option("validation"),stripLines:{stripLines:this.option("stripLines")},areHorizontalBordersEnabled:this.option("showRowLines"),areAlternateRowsEnabled:!1,viewType:this._getViewTypeByScaleType(this.option("scaleType")),viewTypeRange:this._parseViewTypeRangeSettings(this.option("scaleTypeRange")),cultureInfo:this._getCultureInfo(),taskTooltipContentTemplate:this.option("taskTooltipContentTemplate"),taskProgressTooltipContentTemplate:this.option("taskProgressTooltipContentTemplate"),taskTimeTooltipContentTemplate:this.option("taskTimeTooltipContentTemplate"),taskContentTemplate:this.option("taskContentTemplate"),sieve:this.option("sieve")}),this._selectTask(this.option("selectedRowKey")),this.updateBarItemsState()}_getFirstDayOfWeek(n){return Z(n)?n:Gn.firstDayOfWeekIndex()}getTaskAreaContainer(){return this._ganttViewCore.getTaskAreaContainer()}getBarManager(){return this._ganttViewCore.barManager}executeCoreCommand(n){var e=this._ganttViewCore.getCommandByKey(n);e&&e.execute()}changeTaskExpanded(n,e){this._ganttViewCore.changeTaskExpanded(n,e)}updateView(){var n;null===(n=this._ganttViewCore)||void 0===n||n.updateView()}updateBarItemsState(){this._ganttViewCore.barManager.updateItemsState([])}setWidth(n){this._ganttViewCore.setWidth(n)}_onDimensionChanged(){this._ganttViewCore.onBrowserWindowResize()}_selectTask(n){this._ganttViewCore.selectTaskById(n)}_update(n){var e;null===(e=this._ganttViewCore)||void 0===e||e.updateWithDataReload(n)}_getCultureInfo(){return{monthNames:Gn.getMonthNames("wide"),dayNames:Gn.getDayNames("wide"),abbrMonthNames:Gn.getMonthNames("abbreviated"),abbrDayNames:Gn.getDayNames("abbreviated"),quarterNames:this._getQuarterNames(),amText:this._getAmText(),pmText:this._getPmText(),start:ye.format("dxGantt-dialogStartTitle"),end:ye.format("dxGantt-dialogEndTitle"),progress:ye.format("dxGantt-dialogProgressTitle")}}_getAmText(){return this._hasAmPM()?Gn.getPeriodNames()[0]:""}_getPmText(){return this._hasAmPM()?Gn.getPeriodNames()[1]:""}_hasAmPM(){var n=new Date(Date.UTC(2012,11,12,3,0,0));return n.toLocaleTimeString(Ou.locale()).match(/am|pm/i)||n.toString().match(/am|pm/i)}_getQuarterNames(){var n=ye.format("dxGantt-quarter");return n?[Er(n,1),Er(n,2),Er(n,3),Er(n,4)]:Gn.getQuarterNames()}_getTaskTitlePosition(n){switch(n){case"outside":return 1;case"none":return 2;default:return 0}}_getViewTypeByScaleType(n){switch(n){case"minutes":return 0;case"hours":return 1;case"sixHours":return 2;case"days":return 3;case"weeks":return 4;case"months":return 5;case"quarters":return 6;case"years":return 7;default:return}}_parseEditingSettings(n){return{enabled:n.enabled,allowDependencyDelete:n.allowDependencyDeleting,allowDependencyInsert:n.allowDependencyAdding,allowTaskDelete:n.allowTaskDeleting,allowTaskInsert:n.allowTaskAdding,allowTaskUpdate:n.allowTaskUpdating,allowResourceDelete:n.allowResourceDeleting,allowResourceInsert:n.allowResourceAdding,allowResourceUpdate:n.allowResourceUpdating,allowTaskResourceUpdate:n.allowTaskResourceUpdating}}_parseViewTypeRangeSettings(n){return{min:this._getViewTypeByScaleType(n.min),max:this._getViewTypeByScaleType(n.max)}}_optionChanged(n){switch(n.name){case"width":super._optionChanged(n),this._ganttViewCore.setWidth(n.value);break;case"height":this._ganttViewCore.setHeight(n.value);break;case"tasks":case"dependencies":case"resources":case"resourceAssignments":this._sieveOptions=void 0,this._update(!0);break;case"showResources":this._ganttViewCore.setShowResources(n.value);break;case"showDependencies":this._ganttViewCore.setShowDependencies(n.value);break;case"taskTitlePosition":this._ganttViewCore.setTaskTitlePosition(this._getTaskTitlePosition(n.value));break;case"firstDayOfWeek":this._ganttViewCore.setFirstDayOfWeek(this._getFirstDayOfWeek(n.value));break;case"startDateRange":this._ganttViewCore.setStartDateRange(n.value);break;case"endDateRange":this._ganttViewCore.setEndDateRange(n.value);break;case"allowSelection":this._ganttViewCore.setAllowSelection(n.value);break;case"selectedRowKey":this._selectTask(n.value);break;case"editing":this._ganttViewCore.setEditingSettings(this._parseEditingSettings(n.value));break;case"validation":this._ganttViewCore.setValidationSettings(n.value),this._update(!0);break;case"showRowLines":this._ganttViewCore.setRowLinesVisible(n.value);break;case"scaleType":this._ganttViewCore.setViewType(this._getViewTypeByScaleType(n.value));break;case"scaleTypeRange":this._ganttViewCore.setViewTypeRange(this._getViewTypeByScaleType(n.value.min),this._getViewTypeByScaleType(n.value.max));break;case"stripLines":this._ganttViewCore.setStripLines({stripLines:n.value});break;case"taskTooltipContentTemplate":this._ganttViewCore.setTaskTooltipContentTemplate(n.value);break;case"taskProgressTooltipContentTemplate":this._ganttViewCore.setTaskProgressTooltipContentTemplate(n.value);break;case"taskTimeTooltipContentTemplate":this._ganttViewCore.setTaskTimeTooltipContentTemplate(n.value);break;case"taskContentTemplate":this._ganttViewCore.setTaskContentTemplate(n.value);break;case"sieve":this._sortAndFilter(n.value);break;default:super._optionChanged(n)}}get bars(){return this.option("bars")}getRowHeight(){return this.option("rowHeight")}getHeaderHeight(){return this.option("headerHeight")}getGanttTasksData(){var n=this.option("tasks"),e=this.getSieveOptions();return null!=e&&e.sievedItems&&null!=e&&e.sieveColumn?e.sievedItems:n}_sortAndFilter(n){this._sieveOptions=n,this._update(!(null!=n&&n.expandTasks));var e=this.option("selectedRowKey");this._selectTask(e)}getSieveOptions(){return this._sieveOptions}getGanttDependenciesData(){return this.option("dependencies")}getGanttResourcesData(){return this.option("resources")}getGanttResourceAssignmentsData(){return this.option("resourceAssignments")}getGanttWorkTimeRules(){return null}getExternalTaskAreaContainer(n){return this._taskAreaContainer||(this._taskAreaContainer=new Cnn(n,this)),this._taskAreaContainer}prepareExternalTaskAreaContainer(n,e){null!=e&&e.height&&this._taskAreaContainer._scrollView.option("height",e.height)}changeGanttTaskSelection(n,e){this._onSelectionChanged({id:n,selected:e})}onGanttScroll(n){this._onScroll({scrollTop:n})}showDialog(n,e,i,r){this._onDialogShowing({name:n,parameters:e,callback:i,afterClosing:r})}getModelChangesListener(){return this.option("modelChangesListener")}getExportInfo(){return this.option("exportInfo")}showPopupMenu(n){this._onPopupMenuShowing(n)}hidePopupMenu(n){this._onPopupMenuHiding(n)}getMainElement(){return this.option("mainElement").get(0)}adjustControl(){this._onAdjustControl()}getRequireFirstLoadParentAutoCalc(){return this.option("validation.autoUpdateParentTasks")}collapseAll(){this._collapseAll()}expandAll(){this._expandAll()}onTaskClick(n,e){return this._taskClick({key:n,event:e}),!0}onTaskDblClick(n,e){return this._taskDblClick({key:n,event:e})}onGanttViewContextMenu(n,e,i){return!0}getFormattedDateText(n){var e="";if(n){var i=Gn.format(n,"shortDate"),r=this._hasAmPM()?"hh:mm a":"HH:mm";e=i+" "+Gn.format(n,r)}return e}destroyTemplate(n){U(n).empty()}onTaskAreaSizeChanged(n){var e=this._taskAreaContainer._scrollView;if(Z(n?.height)){var i=n?.height>this._taskAreaContainer.getHeight()?"both":"horizontal";e.option("direction",i)}}getTreeListTableStyle(){return this.callExportHelperMethod("getTreeListTableStyle")}getTreeListColCount(){return this.callExportHelperMethod("getTreeListColCount")}getTreeListHeaderInfo(n){return this.callExportHelperMethod("getTreeListHeaderInfo",n)}getTreeListCellInfo(n,e,i){return this.callExportHelperMethod("getTreeListCellInfo",i,e)}getTreeListEmptyDataCellInfo(){return this.callExportHelperMethod("getTreeListEmptyDataCellInfo")}callExportHelperMethod(n){for(var e=this.option("exportHelper"),i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return e[n](...r)}}var JLe=Fn(),Fd="tasks",f8="dependencies",cM="resources",LX="resourceAssignments",QLe="gantt_new_task_key";On("dxGantt",class eBe extends tr{_init(){super._init(),this._initGantt(),this._isGanttRendered=!1,this._initHelpers()}_initGantt(){this._refreshDataSources()}_initMarkup(){super._initMarkup(),this.$element().addClass("dx-gantt"),this._$toolbarWrapper=U("<div>").addClass("dx-gantt-toolbar-wrapper").appendTo(this.$element()),this._$toolbar=U("<div>").appendTo(this._$toolbarWrapper),this._$mainWrapper=U("<div>").addClass("dx-gantt-main-wrapper").appendTo(this.$element()),this._$treeListWrapper=U("<div>").addClass("dx-gantt-treelist-wrapper").appendTo(this._$mainWrapper),this._$treeList=U("<div>").appendTo(this._$treeListWrapper),this._$splitter=U("<div>").appendTo(this._$mainWrapper),this._$ganttView=U("<div>").addClass("dx-gantt-view").appendTo(this._$mainWrapper),this._$dialog=U("<div>").appendTo(this.$element()),this._$loadPanel=U("<div>").appendTo(this.$element()),this._$contextMenu=U("<div>").appendTo(this.$element())}_clean(){var n;null===(n=this._ganttView)||void 0===n||n._ganttViewCore.cleanMarkup(),delete this._ganttView,delete this._dialogInstance,delete this._loadPanel,delete this._exportHelper,super._clean()}_refresh(){this._isGanttRendered=!1,this._contentReadyRaised=!1,super._refresh()}_fireContentReadyAction(){this._contentReadyRaised||super._fireContentReadyAction(),this._contentReadyRaised=!0}_dimensionChanged(){var n;null===(n=this._ganttView)||void 0===n||n._onDimensionChanged()}_visibilityChanged(n){n&&this._refreshGantt()}_refreshGantt(){this._refreshDataSources(),this._refresh()}_refreshDataSources(){this._refreshDataSource(Fd),this._refreshDataSource(f8),this._refreshDataSource(cM),this._refreshDataSource(LX)}_renderContent(){this._isMainElementVisible=this.$element().is(":visible"),this._isMainElementVisible&&!this._isGanttRendered&&(this._isGanttRendered=!0,this._renderBars(),this._renderTreeList(),this._renderSplitter())}_renderTreeList(){this._ganttTreeList=new _nn(this),this._treeList=this._ganttTreeList.getTreeList(),this._ganttTreeList.onAfterTreeListCreate()}_renderSplitter(){this._splitter=this._createComponent(this._$splitter,$Re,{container:this.$element(),leftElement:this._$treeListWrapper,rightElement:this._$ganttView,onApplyPanelSize:n=>{this._sizeHelper.onApplyPanelSize(n)}}),this._splitter.option("initialLeftPanelWidth",this.option("taskListWidth"))}_renderBars(){this._bars=[],this._toolbar=new Ntn(this._$toolbar,this),this._updateToolbarContent(),this._bars.push(this._toolbar),this._contextMenuBar=new Vtn(this._$contextMenu,this),this._updateContextMenu(),this._bars.push(this._contextMenuBar)}_initHelpers(){this._mappingHelper=new Ptn(this),this._customFieldsManager=new Aen(this),this._actionsManager=new ken(this),this._ganttTemplatesManager=new Ltn(this),this._sizeHelper=new Rtn(this)}_initGanttView(){this._ganttView||(this._ganttView=this._createComponent(this._$ganttView,bnn,{width:"100%",height:this._ganttTreeList.getOffsetHeight(),rowHeight:this._ganttTreeList.getRowHeight(),headerHeight:this._ganttTreeList.getHeaderHeight(),tasks:this._tasks,dependencies:this._dependencies,resources:this._resources,resourceAssignments:this._resourceAssignments,allowSelection:this.option("allowSelection"),selectedRowKey:this.option("selectedRowKey"),showResources:this.option("showResources"),showDependencies:this.option("showDependencies"),startDateRange:this.option("startDateRange"),endDateRange:this.option("endDateRange"),taskTitlePosition:this.option("taskTitlePosition"),firstDayOfWeek:this.option("firstDayOfWeek"),showRowLines:this.option("showRowLines"),scaleType:this.option("scaleType"),scaleTypeRange:this.option("scaleTypeRange"),editing:this.option("editing"),validation:this.option("validation"),stripLines:this.option("stripLines"),bars:this._bars,mainElement:this.$element(),onSelectionChanged:n=>{this._ganttTreeList.selectRows($s.getArrayFromOneElement(n.id))},onScroll:n=>{this._ganttTreeList.scrollBy(n.scrollTop)},onDialogShowing:this._showDialog.bind(this),onPopupMenuShowing:this._showPopupMenu.bind(this),onPopupMenuHiding:this._hidePopupMenu.bind(this),onExpandAll:this._expandAll.bind(this),onCollapseAll:this._collapseAll.bind(this),modelChangesListener:Oen_create(this),exportHelper:this._getExportHelper(),taskTooltipContentTemplate:this._ganttTemplatesManager.getTaskTooltipContentTemplateFunc(this.option("taskTooltipContentTemplate")),taskProgressTooltipContentTemplate:this._ganttTemplatesManager.getTaskProgressTooltipContentTemplateFunc(this.option("taskProgressTooltipContentTemplate")),taskTimeTooltipContentTemplate:this._ganttTemplatesManager.getTaskTimeTooltipContentTemplateFunc(this.option("taskTimeTooltipContentTemplate")),taskContentTemplate:this._ganttTemplatesManager.getTaskContentTemplateFunc(this.option("taskContentTemplate")),onTaskClick:n=>{this._ganttTreeList.onRowClick(n)},onTaskDblClick:n=>{this._ganttTreeList.onRowDblClick(n)},onAdjustControl:()=>{this._sizeHelper.onAdjustControl()},onContentReady:this._onGanttViewContentReady.bind(this)}))}_onGanttViewContentReady(n){this._isParentAutoUpdateMode()||this._fireContentReadyAction()}_isParentAutoUpdateMode(){return this.option("validation.autoUpdateParentTasks")}_onTreeListContentReady(n){this._isParentAutoUpdateMode()&&this._treeListParentRecalculatedDataUpdating&&this._fireContentReadyAction(),delete this._treeListParentRecalculatedDataUpdating}_refreshDataSource(n){var e=this["_".concat(n,"Option")];e&&(e.dispose(),delete this["_".concat(n,"Option")],delete this["_".concat(n)]),(e=new Ten(n,this._getLoadPanel.bind(this),(i,r)=>{this._dataSourceChanged(i,r)})).option("dataSource",this._getSpecificDataSourceOption(n)),e._refreshDataSource(),this["_".concat(n,"Option")]=e}_getSpecificDataSourceOption(n){var e=this.option("".concat(n,".dataSource"));return!e||Array.isArray(e)?{store:{type:"array",data:e??[],key:this.option("".concat(n,".keyExpr"))}}:e}_dataSourceChanged(n,e){var i=$s.compileGettersByOption(this.option(n)),r=this._validateSourceData(n,e),o=r.map($s.prepareMapHandler(i));if(this["_".concat(n)]=o,this._setGanttViewOption(n,o),n===Fd){var a,s,l;this._tasksRaw=r;var u=!(null!==(a=this._ganttTreeList)&&void 0!==a&&a.getDataSource()||this._ganttView);null===(s=this._ganttTreeList)||void 0===s||s.saveExpandedKeys(),null===(l=this._ganttTreeList)||void 0===l||l.updateDataSource(r,u)}}_validateSourceData(n,e){return e&&n===Fd?this._validateTaskData(e):e}_validateTaskData(n){for(var e,i=Ai(this.option("".concat(Fd,".keyExpr"))),r=Ai(this.option("".concat(Fd,".parentIdExpr"))),o=null!==(e=this.option("rootValue"))&&void 0!==e?e:"dx_dxt_gantt_default_root_value",a={},s=0;s<n.length;s++){var l=n[s];if(l){var u,f=i(l),S=f===o,T=null!==(u=a[f])&&void 0!==u?u:a[f]={key:f,children:[]};if(!S){var R,L,z=null!==(R=r(l))&&void 0!==R?R:o,j=null!==(L=a[z])&&void 0!==L?L:a[z]={key:z,children:[]};j.children.push(T),T.parent=j}}}var Y=[o];return this._appendChildKeys(a[o],Y),n.filter(ie=>Y.indexOf(i(ie))>-1)}_appendChildKeys(n,e){for(var i=n?.children,r=0;r<i?.length;r++){var o=i[r];e.push(o.key),this._appendChildKeys(o,e)}}_onRecordInserted(n,e,i){var r=this["_".concat(n,"Option")];if(r){var o=$s.getStoreObject(this.option(n),e),a=n===Fd;a&&this._customFieldsManager.addCustomFieldsDataFromCache(QLe,o),r.insert(o,s=>{var u=Ai(this.option("".concat(n,".keyExpr")))(s);i(u),this._ganttTreeList.saveExpandedKeys(),r._reloadDataSource().done(f=>{a&&this._ganttTreeList.onTaskInserted(u,e.parentId)}),this._actionsManager.raiseInsertedAction(n,o,u)})}}_onRecordUpdated(n,e,i){var r=this["_".concat(n,"Option")],o=n===Fd;if(r){var a=this._mappingHelper.convertCoreToMappedData(n,i);o&&this._customFieldsManager.cache.hasData(e)&&this._customFieldsManager.addCustomFieldsDataFromCache(e,a),r.update(e,a,()=>{this._ganttTreeList.saveExpandedKeys(),r._reloadDataSource(),this._actionsManager.raiseUpdatedAction(n,a,e)})}}_onRecordRemoved(n,e,i){var r=this["_".concat(n,"Option")];r&&r.remove(e,()=>{this._ganttTreeList.saveExpandedKeys(),r._reloadDataSource(),this._actionsManager.raiseDeletedAction(n,e,this._mappingHelper.convertCoreToMappedData(n,i))})}_onParentTaskUpdated(n){var e=this.getTaskDataByCoreData(n);this._actionsManager.raiseUpdatedAction(Fd,e,n.id)}_onParentTasksRecalculated(n){if(!this.isSieving){var e=$s.compileSettersByOption(this.option(Fd)),i=this._customFieldsManager.appendCustomFields(n.map($s.prepareSetterMapHandler(e)));setTimeout(()=>{var r;this._treeListParentRecalculatedDataUpdating=!0,null===(r=this._ganttTreeList)||void 0===r||r.setDataSource(i)})}this.isSieving=!1}_sortAndFilter(){var n,e,i,r=this._treeList,o=r.getVisibleColumns(),a=o.filter(L=>L.sortIndex>-1),s=a.map(L=>({sortIndex:L.sortIndex,sortOrder:L.sortOrder})),l=!this._compareSortedState(null===(n=this._savedSortFilterState)||void 0===n?void 0:n.sort,s),u=r.option("filterValue"),f=r.option("expandNodesOnFiltering")&&u!==(null===(e=this._savedSortFilterState)||void 0===e?void 0:e.filter),S=a[0]||o.filter(L=>{var z;return Z(L.filterValue)||(null===(z=L.filterValues)||void 0===z?void 0:z.length)})[0],T=(null===(i=this._savedSortFilterState)||void 0===i?void 0:i.sieveColumn)&&!S;if(S||T){var R=S&&{sievedItems:this._ganttTreeList.getSievedItems(),sieveColumn:S,expandTasks:f||u&&l};this.isSieving=!T,this._setGanttViewOption("sieve",R)}this._savedSortFilterState={sort:s,filter:u,sieveColumn:S}}_compareSortedState(n,e){return!(!n||!e||n.length!==e.length)&&n.every((i,r)=>i.sortIndex===e[r].sortIndex&&i.sortOrder===e[r].sortOrder)}_getToolbarItems(){return this.option("toolbar.items")||[]}_updateToolbarContent(){var n=this._getToolbarItems();n.length?this._$toolbarWrapper.show():this._$toolbarWrapper.hide(),this._toolbar&&this._toolbar.createItems(n),this._updateBarItemsState()}_updateContextMenu(){var n=this.option("contextMenu");n.enabled&&this._contextMenuBar&&(this._contextMenuBar.createItems(n.items),this._updateBarItemsState())}_updateBarItemsState(){this._ganttView&&this._ganttView.updateBarItemsState()}_showDialog(n){this._dialogInstance||(this._dialogInstance=new Dtn(this,this._$dialog)),this._dialogInstance.show(n.name,n.parameters,n.callback,n.afterClosing,this.option("editing"))}_showPopupMenu(n){if(this.option("contextMenu.enabled")){this._ganttView.getBarManager().updateContextMenu();var e={cancel:!1,event:n.event,targetType:n.type,targetKey:n.key,items:se(!0,[],this._contextMenuBar._items),data:"task"===n.type?this.getTaskData(n.key):this.getDependencyData(n.key)};this._actionsManager.raiseContextMenuPreparing(e),e.cancel||this._contextMenuBar.show(n.position,e.items)}}_hidePopupMenu(){this._contextMenuBar.hide()}_getLoadPanel(){return this._loadPanel||(this._loadPanel=this._createComponent(this._$loadPanel,ZT,{position:{of:this.$element()}})),this._loadPanel}_getTaskKeyGetter(){return Ai(this.option("".concat(Fd,".keyExpr")))}_findTaskByKey(n){var e,i=null===(e=this._tasksOption)||void 0===e?void 0:e._getItems(),r=this._getTaskKeyGetter();return i.find(o=>r(o)===n)}_setGanttViewOption(n,e){this._ganttView&&this._ganttView.option(n,e)}_getGanttViewOption(n,e){var i;return null===(i=this._ganttView)||void 0===i?void 0:i.option(n)}_getExportHelper(){var n;return null!==(n=this._exportHelper)&&void 0!==n||(this._exportHelper=new Atn(this)),this._exportHelper}_executeCoreCommand(n){this._ganttView.executeCoreCommand(n)}_expandAll(){this._changeExpandAll(!0)}_collapseAll(){this._changeExpandAll(!1)}_onTreeListRowExpandChanged(n,e){this._lockRowExpandEvent||(this._ganttView.changeTaskExpanded(n.key,e),this._sizeHelper.adjustHeight())}_changeExpandAll(n,e,i){var r,l,o=[],a=[];if(this._treeList.forEachNode(f=>{var S;null!==(S=f.children)&&void 0!==S&&S.length&&o.push(f)}),i){var s=this._treeList.getNodeByKey(i);$s.getAllParentNodesKeys(s,a)}this._lockRowExpandEvent=o.length>0;var u=o.reduce((f,S,T)=>{i?n=a.includes(S.key):e&&(n=S.level<e),f[S.key]=n;var R=n?this._treeList.expandRow:this._treeList.collapseRow;return T===o.length-1?l=R(S.key):R(S.key),f},{});null===(r=l)||void 0===r||r.then(()=>{this._ganttView._ganttViewCore.applyTasksExpandedState(u),this._sizeHelper.adjustHeight(),delete this._lockRowExpandEvent})}getTaskResources(n){return Z(n)?this._ganttView._ganttViewCore.getTaskResources(n).map(i=>this._mappingHelper.convertCoreToMappedData(cM,i)):null}getVisibleTaskKeys(){return this._ganttView._ganttViewCore.getVisibleTaskKeys()}getVisibleDependencyKeys(){return this._ganttView._ganttViewCore.getVisibleDependencyKeys()}getVisibleResourceKeys(){return this._ganttView._ganttViewCore.getVisibleResourceKeys()}getVisibleResourceAssignmentKeys(){return this._ganttView._ganttViewCore.getVisibleResourceAssignmentKeys()}getTaskData(n){if(!Z(n))return null;var e=this._ganttView._ganttViewCore.getTaskData(n);return this.getTaskDataByCoreData(e)}getTaskDataByCoreData(n){var e=n?this._mappingHelper.convertCoreToMappedData(Fd,n):null;return this._customFieldsManager.addCustomFieldsData(n.id,e),e}insertTask(n){this._customFieldsManager.saveCustomFieldsDataToCache(QLe,n),this._ganttView._ganttViewCore.insertTask(this._mappingHelper.convertMappedToCoreData(Fd,n))}deleteTask(n){this._ganttView._ganttViewCore.deleteTask(n)}updateTask(n,e){var i=this._mappingHelper.convertMappedToCoreData(Fd,e),r=!Object.keys(i).length;if(this._customFieldsManager.saveCustomFieldsDataToCache(n,e,!0,r),r){var o=this._customFieldsManager._getCustomFieldsData(e);Object.keys(o).length>0&&this._actionsManager.raiseUpdatingAction(Fd,{cancel:!1,key:n,newValues:{}})}else this._ganttView._ganttViewCore.updateTask(n,i)}getDependencyData(n){if(!Z(n))return null;var e=this._ganttView._ganttViewCore.getDependencyData(n);return e?this._mappingHelper.convertCoreToMappedData(f8,e):null}insertDependency(n){this._ganttView._ganttViewCore.insertDependency(this._mappingHelper.convertMappedToCoreData(f8,n))}deleteDependency(n){this._ganttView._ganttViewCore.deleteDependency(n)}getResourceData(n){var e=this._ganttView._ganttViewCore.getResourceData(n);return e?this._mappingHelper.convertCoreToMappedData(cM,e):null}deleteResource(n){this._ganttView._ganttViewCore.deleteResource(n)}insertResource(n,e){this._ganttView._ganttViewCore.insertResource(this._mappingHelper.convertMappedToCoreData(cM,n),e)}getResourceAssignmentData(n){var e=this._ganttView._ganttViewCore.getResourceAssignmentData(n);return e?this._mappingHelper.convertCoreToMappedData(LX,e):null}assignResourceToTask(n,e){this._ganttView._ganttViewCore.assignResourceToTask(n,e)}unassignResourceFromTask(n,e){this._ganttView._ganttViewCore.unassignResourceFromTask(n,e)}unassignAllResourcesFromTask(n){this._ganttView._ganttViewCore.unassignAllResourcesFromTask(n)}updateDimensions(){this._sizeHelper.onAdjustControl()}scrollToDate(n){this._ganttView._ganttViewCore.scrollToDate(n)}showResourceManagerDialog(){this._ganttView._ganttViewCore.showResourcesDialog()}showTaskDetailsDialog(n){this._ganttView._ganttViewCore.showTaskDetailsDialog(n)}exportToPdf(n){return this._exportToPdf(n)}_exportToPdf(n){var e,i,r,o,a;this._exportHelper.reset();var s=se({},n);return s.createDocumentMethod&&(s.docCreateMethod=s.createDocumentMethod),null!==(e=s.pdfDocument)&&void 0!==e||(s.pdfDocument=s.jsPDFDocument),null!==(i=s.docCreateMethod)&&void 0!==i||(s.docCreateMethod=null!==(r=null===(o=JLe.jspdf)||void 0===o?void 0:o.jsPDF)&&void 0!==r?r:JLe.jsPDF),null!==(a=s.format)&&void 0!==a||(s.format="a4"),new Promise(l=>{var u;l(null===(u=this._ganttView)||void 0===u?void 0:u._ganttViewCore.exportToPdf(s))})}refresh(){return new Promise((n,e)=>{try{this._refreshGantt(),n()}catch(i){e(i.message)}})}expandAll(){this._expandAll()}collapseAll(){this._collapseAll()}expandAllToLevel(n){this._changeExpandAll(!1,n)}expandToTask(n){var e,i=this._treeList.getNodeByKey(n);this._changeExpandAll(!1,0,null==i||null===(e=i.parent)||void 0===e?void 0:e.key)}collapseTask(n){this._treeList.collapseRow(n)}expandTask(n){this._treeList.expandRow(n)}showResources(n){this.option("showResources",n)}showDependencies(n){this.option("showDependencies",n)}zoomIn(){this._ganttView._ganttViewCore.zoomIn()}zoomOut(){this._ganttView._ganttViewCore.zoomOut()}_getDefaultOptions(){return se(super._getDefaultOptions(),$s.getDefaultOptions())}_optionChanged(n){var e,i,r,o,a,s,l,u,f,S,T,R,L,z,j,Y,ie,te,re,he,fe,Te,Re,He,Ze,at,vt,Bt,St,ct,Nt,Kt,on,hn,bn,Qn,Xn,Ie,We,Ve,gt,Ct;switch(n.name){case"tasks":this._refreshDataSource(Fd);break;case"dependencies":this._refreshDataSource(f8);break;case"resources":this._refreshDataSource(cM);break;case"resourceAssignments":this._refreshDataSource(LX);break;case"columns":null===(e=this._ganttTreeList)||void 0===e||e.setOption("columns",this._ganttTreeList.getColumns());break;case"taskListWidth":null===(i=this._sizeHelper)||void 0===i||i.setInnerElementsWidth();break;case"showResources":this._setGanttViewOption("showResources",n.value);break;case"showDependencies":this._setGanttViewOption("showDependencies",n.value);break;case"taskTitlePosition":this._setGanttViewOption("taskTitlePosition",n.value);break;case"firstDayOfWeek":this._setGanttViewOption("firstDayOfWeek",n.value);break;case"startDateRange":this._setGanttViewOption("startDateRange",n.value);break;case"endDateRange":this._setGanttViewOption("endDateRange",n.value);break;case"selectedRowKey":null===(r=this._ganttTreeList)||void 0===r||r.selectRows($s.getArrayFromOneElement(n.value));break;case"onSelectionChanged":null===(o=this._actionsManager)||void 0===o||o.createSelectionChangedAction();break;case"onTaskClick":null===(a=this._actionsManager)||void 0===a||a.createTaskClickAction();break;case"onTaskDblClick":null===(s=this._actionsManager)||void 0===s||s.createTaskDblClickAction();break;case"onTaskInserting":null===(l=this._actionsManager)||void 0===l||l.createTaskInsertingAction();break;case"onTaskInserted":null===(u=this._actionsManager)||void 0===u||u.createTaskInsertedAction();break;case"onTaskDeleting":null===(f=this._actionsManager)||void 0===f||f.createTaskDeletingAction();break;case"onTaskDeleted":null===(S=this._actionsManager)||void 0===S||S.createTaskDeletedAction();break;case"onTaskUpdating":null===(T=this._actionsManager)||void 0===T||T.createTaskUpdatingAction();break;case"onTaskUpdated":null===(R=this._actionsManager)||void 0===R||R.createTaskUpdatedAction();break;case"onTaskMoving":null===(L=this._actionsManager)||void 0===L||L.createTaskMovingAction();break;case"onTaskEditDialogShowing":null===(z=this._actionsManager)||void 0===z||z.createTaskEditDialogShowingAction();break;case"onResourceManagerDialogShowing":null===(j=this._actionsManager)||void 0===j||j.createResourceManagerDialogShowingAction();break;case"onDependencyInserting":null===(Y=this._actionsManager)||void 0===Y||Y.createDependencyInsertingAction();break;case"onDependencyInserted":null===(ie=this._actionsManager)||void 0===ie||ie.createDependencyInsertedAction();break;case"onDependencyDeleting":null===(te=this._actionsManager)||void 0===te||te.createDependencyDeletingAction();break;case"onDependencyDeleted":null===(re=this._actionsManager)||void 0===re||re.createDependencyDeletedAction();break;case"onResourceInserting":null===(he=this._actionsManager)||void 0===he||he.createResourceInsertingAction();break;case"onResourceInserted":null===(fe=this._actionsManager)||void 0===fe||fe.createResourceInsertedAction();break;case"onResourceDeleting":null===(Te=this._actionsManager)||void 0===Te||Te.createResourceDeletingAction();break;case"onResourceDeleted":null===(Re=this._actionsManager)||void 0===Re||Re.createResourceDeletedAction();break;case"onResourceAssigning":null===(He=this._actionsManager)||void 0===He||He.createResourceAssigningAction();break;case"onResourceAssigned":null===(Ze=this._actionsManager)||void 0===Ze||Ze.createResourceAssignedAction();break;case"onResourceUnassigning":null===(at=this._actionsManager)||void 0===at||at.createResourceUnassigningAction();break;case"onResourceUnassigned":null===(vt=this._actionsManager)||void 0===vt||vt.createResourceUnassignedAction();break;case"onCustomCommand":null===(Bt=this._actionsManager)||void 0===Bt||Bt.createCustomCommandAction();break;case"onContextMenuPreparing":null===(St=this._actionsManager)||void 0===St||St.createContextMenuPreparingAction();break;case"onScaleCellPrepared":null===(ct=this._actionsManager)||void 0===ct||ct.createScaleCellPreparedAction();break;case"allowSelection":null===(Nt=this._ganttTreeList)||void 0===Nt||Nt.setOption("selection.mode",$s.getSelectionMode(n.value)),this._setGanttViewOption("allowSelection",n.value);break;case"showRowLines":null===(Kt=this._ganttTreeList)||void 0===Kt||Kt.setOption("showRowLines",n.value),this._setGanttViewOption("showRowLines",n.value);break;case"stripLines":this._setGanttViewOption("stripLines",n.value);break;case"scaleType":this._setGanttViewOption("scaleType",n.value);break;case"scaleTypeRange":this._setGanttViewOption("scaleTypeRange",this.option(n.name));break;case"editing":this._setGanttViewOption("editing",this.option(n.name));break;case"validation":this._setGanttViewOption("validation",this.option(n.name));break;case"toolbar":this._updateToolbarContent();break;case"contextMenu":this._updateContextMenu();break;case"taskTooltipContentTemplate":this._setGanttViewOption("taskTooltipContentTemplate",null===(on=this._ganttTemplatesManager)||void 0===on?void 0:on.getTaskTooltipContentTemplateFunc(n.value));break;case"taskProgressTooltipContentTemplate":this._setGanttViewOption("taskProgressTooltipContentTemplate",null===(hn=this._ganttTemplatesManager)||void 0===hn?void 0:hn.getTaskProgressTooltipContentTemplateFunc(n.value));break;case"taskTimeTooltipContentTemplate":this._setGanttViewOption("taskTimeTooltipContentTemplate",null===(bn=this._ganttTemplatesManager)||void 0===bn?void 0:bn.getTaskTimeTooltipContentTemplateFunc(n.value));break;case"taskContentTemplate":this._setGanttViewOption("taskContentTemplate",null===(Qn=this._ganttTemplatesManager)||void 0===Qn?void 0:Qn.getTaskContentTemplateFunc(n.value));break;case"rootValue":null===(Xn=this._ganttTreeList)||void 0===Xn||Xn.setOption("rootValue",n.value);break;case"width":super._optionChanged(n),null===(Ie=this._sizeHelper)||void 0===Ie||Ie.updateGanttWidth();break;case"height":super._optionChanged(n),null===(We=this._sizeHelper)||void 0===We||We.setGanttHeight(Ln(this._$element));break;case"sorting":null===(Ve=this._ganttTreeList)||void 0===Ve||Ve.setOption("sorting",this.option(n.name));break;case"filterRow":null===(gt=this._ganttTreeList)||void 0===gt||gt.setOption("filterRow",this.option(n.name));break;case"headerFilter":null===(Ct=this._ganttTreeList)||void 0===Ct||Ct.setOption("headerFilter",this.option(n.name));break;default:super._optionChanged(n)}}});let tBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[C_,$r,Fg,Uw,$i,d_e,Ag,Kw,e1,Bg,Q_e,tve,rve,r1,gve,Cve,Vg,Sve,bi,tn,mi],C_,$r,Fg,Uw,$i,d_e,Ag,Kw,e1,Bg,Q_e,tve,rve,r1,gve,Cve,Vg,Sve,tn]}),t})();var BX,Tnn=D(699),No=D.n(Tnn);function nBe(){if(!No())throw Di.Error("E1041","Quill");return No()}if(No()){var Inn=No().import("core/theme");BX=class extends Inn{constructor(t,n){super(t,n),this.quill.root.classList.add("dx-htmleditor-content"),this.quill.root.setAttribute("role","textbox")}}}else BX={};const knn=BX;var NX={};if(No()){var Mnn=No().import("formats/image");NX=class extends Mnn{static create(t){var e=super.create(t&&t.src||t);if(Jn(t)){var i=(r,o)=>{t[r]&&e.setAttribute(r,o)};i("alt",t.alt),i("width",t.width),i("height",t.height)}return e}static formats(t){var n=super.formats(t);return n.imageSrc=t.getAttribute("src"),n}formats(){var t=super.formats(),n=this.domNode.style.float;return n&&(t.float=n),t}format(t,n){"float"===t?this.domNode.style[t]=n:super.format(t,n)}static value(t){return{src:t.getAttribute("src"),width:t.getAttribute("width"),height:t.getAttribute("height"),alt:t.getAttribute("alt")}}},NX.blotName="extendedImage"}const Ann=NX;var iBe={};if(No()){var Fnn=No().import("formats/link");iBe=class ize extends Fnn{static create(n){var i=super.create(n&&n.href||n);return Jn(n)&&(n.text&&(i.innerText=n.text),n.target||i.removeAttribute("target")),i}static formats(n){return{href:n.getAttribute("href"),target:n.getAttribute("target")}}formats(){var n=super.formats(),{href:e,target:i}=ize.formats(this.domNode);return n.link=e,n.target=i,n}format(n,e){"link"===n&&Jn(e)?(e.text&&(this.domNode.innerText=e.text),e.target?this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target"),this.domNode.setAttribute("href",e.href)):super.format(n,e)}static value(n){return{href:n.getAttribute("href"),text:n.innerText,target:!!n.getAttribute("target")}}}}const Pnn=iBe;var VX={};No()&&((VX=No().import("attributors/style/font")).whitelist=null);const Rnn=VX;var HX={};No()&&((HX=No().import("attributors/style/size")).whitelist=null);const Lnn=HX;var zX={};No()&&(zX=No().import("attributors/style/align")).whitelist.push("left");const Bnn=zX;var rBe=class Nnn{};if(No()){var Vnn=No().import("core/module");rBe=class extends Vnn{constructor(t,n){super(t,n),this.editorInstance=n.editorInstance}saveValueChangeEvent(t){this.editorInstance._saveValueChangeEvent(t)}addCleanCallback(t){this.editorInstance.addCleanCallback(t)}handleOptionChangeValue(t){Jn(t)?Object.entries(t).forEach(n=>{var[e,i]=n;return this.option(e,i)}):Z(t)||null==this||this.clean()}}}const $u=rBe;class Hnn{constructor(){this._collection=[]}clear(){this._collection=[]}add(n,e){this._collection.push({name:n,instance:e})}remove(n){this._collection=this._collection.filter(e=>e.name!==n)}getByName(n){var e=null;return we(this._collection,(i,r)=>{var{name:o,instance:a}=r;if(o===n)return e=a,!1}),e}each(n){this._collection.forEach(e=>{var{name:i,instance:r}=e;return r&&n(i,r)})}}var znn=["table","tableHeaderCell"],Unn=["insertTable","insertHeaderRow","insertRowAbove","insertRowBelow","insertColumnLeft","insertColumnRight","deleteColumn","deleteRow","deleteTable","cellProperties","tableProperties"];function oBe(t){var n=t.getModule("table");return null!=n&&n.tableFormats?n.tableFormats():znn}function aBe(t,n){return!!n&&t.quill.getText(n).trim().length<n.length}function hM(t,n){var{tableBlot:e,quill:i}=n;(e??i.scroll.find(t.get(0))).format("tableWidth","initial")}function m8(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.find("tr").eq(n).find("th, td")}function pM(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"horizontal",e=[],i="horizontal"===n,r=i?m8(t):UX(t);return r.each((o,a)=>{var s=U(a);""===s.get(0).style[i?"width":"height"]&&e.push(s)}),e}function $h(t,n){var{elements:e,property:i,value:r}=n,o=t.quill.getModule("table").tableBlots,a="cell".concat(dd(i,!0));we(e,(s,l)=>{var u,f=t.quill.scroll.find(l);if(!o.includes(f.statics.blotName)){var S=f.descendant(T=>o.includes(T.statics.blotName));f=S?S[0]:null}null===(u=f)||void 0===u||u.format(a,r+"px")})}function mf(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"horizontal";return"horizontal"===e?UX(t,n):m8(t,n)}function UX(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.find("th:nth-child(".concat(1+n,"), td:nth-child(").concat(1+n,")"))}function Ev(t,n){for(var e=arguments.length,i=new Array(e>2?e-2:0),r=2;r<e;r++)i[r-2]=arguments[r];return()=>{var o=t.getModule("table");if(o)return t.focus(),o[n](...i)}}var Wnn=["imageSrc","src"],Gnn="phone"===pn.current().deviceType,sBe="dx-formdialog";class sin{constructor(n,e){this.module=n,this.config=e??{},this.quill=this.module.quill,this.editorInstance=this.module.editorInstance}render(){this.editorInstance._formDialog&&(this.editorInstance._formDialog.beforeAddButtonAction=()=>this.getCurrentTab().upload()),this.tabPanelIndex=0,this.formData=this.getFormData(),this.isUpdating=this.isImageUpdating(),this.tabsModel=this.createTabsModel(this.config.tabs),this.tabs=this.createTabs(this.formData);var n=this.getFormConfig();this.updatePopupConfig(),this.updateAddButtonState(),this.editorInstance.showFormDialog(n).done((e,i)=>{this.tabs[this.getActiveTabIndex()].strategy.pasteImage(e,i)}).always(()=>{this.resetDialogPopupOptions(),this.quill.focus()})}getCurrentTab(){return this.tabs[this.tabPanelIndex]}updateAddButtonState(){var n=this.getCurrentTab().isDisableButton();this.setAddButtonDisabled(n)}setAddButtonDisabled(n){this.editorInstance.formDialogOption({"toolbarItems[0].options.disabled":n})}getActiveTabIndex(){return this.isUpdating?0:this.tabPanelIndex}getFormData(){return this.getUpdateDialogFormData(this.quill.getFormat())}getUpdateDialogFormData(n){var{imageSrc:e,src:i}=n;return mt({src:e??i},ki(n,Wnn))}createUrlTab(n){return new lin(this.module,{config:this.config,formData:n,isUpdating:this.isUpdating},()=>this.updateAddButtonState())}createFileTab(){return new uin(this.module,{config:this.config},()=>this.updateAddButtonState())}createTabsModel(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===n.length||this.isUpdating?["url"]:n.map(e=>"object"==typeof e?e.name:e)}createTabs(n){return this.tabsModel.map(e=>"url"===e?this.createUrlTab(n):this.createFileTab())}isImageUpdating(){var n;return Object.prototype.hasOwnProperty.call(null!==(n=this.module.quill.getFormat())&&void 0!==n?n:{},"imageSrc")}updatePopupConfig(){var n="".concat("dx-htmleditor-add-image-popup"," ").concat(sBe);this.useTabbedItems()&&(n+=" ".concat("dx-htmleditor-add-image-popup-with-tabs"));var i=this.isUpdating?"dxHtmlEditor-dialogImageUpdateButton":"dxHtmlEditor-dialogImageAddButton";this.editorInstance.formDialogOption({title:ye.format(this.isUpdating?"dxHtmlEditor-dialogUpdateImageCaption":"dxHtmlEditor-dialogImageCaption"),"toolbarItems[0].options.text":ye.format(i),wrapperAttr:{class:n}})}resetDialogPopupOptions(){this.editorInstance.formDialogOption({"toolbarItems[0].options.text":ye.format("OK"),"toolbarItems[0].options.visible":!0,"toolbarItems[0].options.disabled":!1,wrapperAttr:{class:sBe}})}useTabbedItems(){return this.tabsModel.length>1}getFormWidth(){return Gnn?"100%":493}getFormConfig(){return{formData:this.formData,width:this.getFormWidth(),labelLocation:"top",colCount:this.useTabbedItems()?1:11,items:this.getItemsConfig()}}getItemsConfig(){if(this.useTabbedItems()){var n=Dr(this.tabs,e=>({title:e.getTabName(),colCount:11,items:e.getItemsConfig()}));return[{itemType:"tabbed",tabPanelOptions:{onSelectionChanged:e=>{this.tabPanelIndex=e.component.option("selectedIndex"),this.updateAddButtonState()}},tabs:n}]}return this.tabs[0].getItemsConfig()}}class dBe{constructor(n,e,i){var{config:r,formData:o,isUpdating:a}=e;this.module=n,this.config=r,this.formData=o,this.isUpdating=a,this.onFileSelected=i,this.strategy=this.createStrategy()}getItemsConfig(){return this.strategy.getItemsConfig()}createStrategy(){return this.isUpdating?new din(this.module,this.config,this.formData):new hBe(this.module,this.config,this.onFileSelected)}isDisableButton(){return!1}upload(){return this.strategy.upload()}}class lin extends dBe{getTabName(){return ye.format("dxHtmlEditor-dialogImageSpecifyUrl")}}class uin extends dBe{getTabName(){return ye.format("dxHtmlEditor-dialogImageSelectFile")}createStrategy(){return new cin(this.module,this.config,this.onFileSelected)}isDisableButton(){return!this.strategy.isValid()}}class cBe{constructor(n,e){this.module=n,this.config=e,this.editorInstance=n.editorInstance,this.quill=n.quill,this.selection=this.getQuillSelection()}getQuillSelection(){return this.quill.getSelection()??{index:this.quill.getLength(),length:0}}pasteImage(){}isValid(){return!0}upload(){}}class hBe extends cBe{constructor(n,e,i){super(n,e,i),this.shouldKeepAspectRatio=!0}pasteImage(n,e){this.module.saveValueChangeEvent(e),WX(this.quill,this.selection.index,n)}keepAspectRatio(n,e){var{dependentEditor:i,e:r}=e,o=parseInt(r.value),a=parseInt(r.previousValue),s=parseInt(i.option("value"));n.component.updateData(n.dataField,o),this.shouldKeepAspectRatio&&s&&a&&!this.preventRecalculating&&(this.preventRecalculating=!0,i.option("value",Math.round(o*s/parseInt(a)).toString())),this.preventRecalculating=!1}createKeepAspectRatioEditor(n,e,i){return this.editorInstance._createComponent(n,Th,se(!0,e.editorOptions,{value:e.component.option("formData")[e.dataField],onEnterKey:e.component.option("onEditorEnterKey").bind(this.editorInstance._formDialog,e),onValueChanged:r=>{this.keepAspectRatio(e,{dependentEditor:this[i+"Editor"],e:r})}}))}upload(){return this.editorInstance._formDialog._form.validate().isValid}getItemsConfig(){return[{dataField:"src",colSpan:11,label:{text:ye.format("dxHtmlEditor-dialogImageUrlField")},validationRules:[{type:"required"},{type:"stringLength",min:1}]},{dataField:"width",colSpan:6,label:{text:ye.format("dxHtmlEditor-dialogImageWidthField")},template:n=>{var e=U("<div>").addClass("dx-fix-ratio-container"),i=U("<div>").appendTo(e);this.widthEditor=this.createKeepAspectRatioEditor(i,n,"height");var r=U("<div>").appendTo(e);return this.editorInstance._createComponent(r,GC,{items:[{icon:"imgarlock",value:"keepRatio"}],hint:ye.format("dxHtmlEditor-dialogImageKeepAspectRatio"),focusStateEnabled:!1,keyExpr:"value",stylingMode:"outlined",selectionMode:"multiple",selectedItemKeys:["keepRatio"],onSelectionChanged:o=>{this.shouldKeepAspectRatio=!!o.component.option("selectedItems").length}}),e}},{dataField:"height",colSpan:5,label:{text:ye.format("dxHtmlEditor-dialogImageHeightField")},template:n=>{var e=U("<div>");return this.heightEditor=this.createKeepAspectRatioEditor(e,n,"width"),e}},{dataField:"alt",colSpan:11,label:{text:ye.format("dxHtmlEditor-dialogImageAltField")}}]}}class din extends hBe{constructor(n,e,i,r){super(n,e,r),this.formData=i,this.modifyFormData()}modifyFormData(){var{imageSrc:n}=this.quill.getFormat(this.selection.index-1,1);(!n||0===this.selection.index)&&(this.selection={index:this.selection.index+1,length:0},this.quill.setSelection(this.selection.index,this.selection.length,"silent"));var i,r,e=this.quill.getLeaf(this.selection.index)[0].domNode;e&&(this.formData.width=null!==(i=this.formData.width)&&void 0!==i?i:wn(U(e)),this.formData.height=null!==(r=this.formData.height)&&void 0!==r?r:Ln(U(e)))}pasteImage(n,e){this.quill.deleteText(this.embedFormatIndex(),1,"silent"),this.selection.index-=1,super.pasteImage(n,e)}embedFormatIndex(){var n,e=null!==(n=this.selection)&&void 0!==n?n:this.quill.getSelection();return e?e.length?e.index:e.index-1:this.quill.getLength()}}class cin extends cBe{constructor(n,e,i){super(n,e,i),this.useBase64=!Z(this.config.fileUploadMode)||"base64"===this.config.fileUploadMode,this.isValidInternal=!1,this.onFileSelected=i,this.data=null}upload(){return this.useBase64?this.base64Upload(this.data):this.data.value.length&&this.data.component.upload(),!0}isValid(){return this.isValidInternal}closeDialogPopup(n){this.editorInstance._formDialog.hide({file:n.value?n.value[0]:n.file},n.event)}serverUpload(n){if(!this.useBase64){var e=pBe(this.config.uploadDirectory)+n.file.name;WX(this.quill,this.selection.index,{src:e}),this.closeDialogPopup(n)}}base64Upload(n){this.quill.getModule("uploader").upload(this.selection,n.value,!0),this.closeDialogPopup(n)}pasteImage(n,e){this.useBase64&&super.pasteImage(n,e)}isBase64Editable(){return"both"===this.config.fileUploadMode}validate(n){var e=n.component;this.isValidInternal=!e._files.some(i=>!i.isValid()),0===e._files.length&&(this.isValidInternal=!1)}getFileUploaderOptions(){var n={uploadUrl:this.config.uploadUrl,onValueChanged:e=>{this.validate(e),this.data=e,this.onFileSelected()},onUploaded:e=>this.serverUpload(e)};return se({},{value:[],name:"dx-htmleditor-image",accept:"image/*",uploadMode:"useButtons"},n,this.config.fileUploaderOptions)}getItemsConfig(){return[{itemType:"simple",dataField:"files",colSpan:11,label:{visible:!1},template:()=>{var n=U("<div>");return this.module.editorInstance._createComponent(n,Zk,this.getFileUploaderOptions()),n}},{itemType:"simple",colSpan:11,label:{visible:!1},editorType:"dxCheckBox",editorOptions:{value:this.useBase64,visible:this.isBase64Editable(),text:ye.format("dxHtmlEditor-dialogImageEncodeToBase64"),onValueChanged:n=>{this.isBase64Editable()&&(this.useBase64=n.value)}}}]}}function pBe(t){return"/"!==t[t.length-1]?t+"/":t}function WX(t,n,e){t.insertEmbed(n,"extendedImage",e,"user"),t.setSelection(n+1,0,"user")}var fBe=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Ov="user",mBe={insertHeaderRow:"header",clear:"clearformat"};function _Be(t){return{clear:n=>{var r,{event:e}=n,i=t.quill.getSelection();i&&(t.saveValueChangeEvent(e),t.quill.removeFormat(i),null===(r=GX(t))||void 0===r||r.updateFormatWidgets())},link:Ein(t),image:Oin(t,t.editorInstance.option("imageUpload")),color:CBe(t,"color"),background:CBe(t,"background"),orderedList:Tv(t,"list","ordered"),bulletList:Tv(t,"list","bullet"),alignLeft:Tv(t,"align","left"),alignCenter:Tv(t,"align","center"),alignRight:Tv(t,"align","right"),alignJustify:Tv(t,"align","justify"),codeBlock:jX(t,"code-block"),undo:n=>{var{event:e}=n;t.saveValueChangeEvent(e),t.quill.history.undo()},redo:n=>{var{event:e}=n;t.saveValueChangeEvent(e),t.quill.history.redo()},increaseIndent:n=>{var{event:e}=n;Ob(t,["indent","+1",Ov],e)},decreaseIndent:n=>{var{event:e}=n;Ob(t,["indent","-1",Ov],e)},superscript:Tv(t,"script","super"),subscript:Tv(t,"script","sub"),insertTable:kin(t),insertHeaderRow:Ev(t.quill,"insertHeaderRow"),insertRowAbove:Ev(t.quill,"insertRowAbove"),insertRowBelow:Ev(t.quill,"insertRowBelow"),insertColumnLeft:Ev(t.quill,"insertColumnLeft"),insertColumnRight:Ev(t.quill,"insertColumnRight"),deleteColumn:Ev(t.quill,"deleteColumn"),deleteRow:Ev(t.quill,"deleteRow"),deleteTable:Ev(t.quill,"deleteTable"),cellProperties:yBe(t,"cell"),tableProperties:yBe(t,"table")}}function vBe(t,n){var{contentTemplate:e,title:i,minHeight:r,minWidth:o,maxWidth:a}=n;t.formDialogOption({contentTemplate:e,title:i,minHeight:r??0,minWidth:o??0,maxWidth:a??"none"})}function yBe(t,n){return e=>{var i,r;null!==(i=e)&&void 0!==i&&i.length||(e=U(function Sin(t,n){var e=t.quill.getModule("table").getTable();return"table"===n?e[0].domNode:e[2].domNode}(t,n)));var z,[o,a]=null!==(r=t.quill.getModule("table").getTable())&&void 0!==r?r:[],s=t.quill.getFormat(t.editorInstance.getSelection(!0)),l=function Fin(t){return"cell"===t?Ain:Min}(n)(t,{$element:e,formats:s,tableBlot:o,rowBlot:a}),{contentTemplate:u,title:f,minHeight:S,minWidth:T,maxWidth:R}=t.editorInstance._formDialog._popup.option(),L={contentTemplate:u,title:f,minHeight:S,minWidth:T,maxWidth:R};t.editorInstance.formDialogOption({contentTemplate:Y=>{var ie=U("<div>").appendTo(Y),te=U("<div>").appendTo(ie);return t.editorInstance._createComponent(te,vv,l.formOptions),t.editorInstance._createComponent(ie,Ih,{}),z=te.dxForm("instance"),ie},title:ye.format("dxHtmlEditor-".concat(n,"Properties")),minHeight:400,minWidth:Math.min(800,.9*wn(Fn())-1),maxWidth:.9*wn(Fn())});var j=t.editorInstance.showFormDialog();j.done((Y,ie)=>{t.saveValueChangeEvent(ie),l.applyHandler(z),vBe(t.editorInstance,L)}),j.fail(()=>{t.quill.focus(),vBe(t.editorInstance,L)})}}function Ob(t,n,e){t.editorInstance._saveValueChangeEvent(e),t.quill.format(...n)}function Ein(t){return()=>{var n;t.quill.focus();var e=t.quill.getSelection(),i=aBe(t,e),r=e?t.quill.getFormat():{},o=r.link&&0===(null===(n=e)||void 0===n?void 0:n.length),a=r.link||"";if(o){var s=function Din(t,n){var i=nBe().import("formats/link"),[r,o]=t.quill.scroll.descendant(i,n.index);return r?{index:n.index-o,length:r.length()}:null}(t,e);s?e=s:a=""}var l={href:a,text:e&&!i?t.quill.getText(e):"",target:!Object.prototype.hasOwnProperty.call(r,"target")||!!r.target};t.editorInstance.formDialogOption("title",ye.format("dxHtmlEditor-dialogLinkCaption"));var u=t.editorInstance.showFormDialog({formData:l,items:Tin(t,e)});u.done((f,S)=>{if(e&&!i){var T=f.text||f.href,{index:R,length:L}=e;f.text=void 0,t.saveValueChangeEvent(S),L&&t.quill.deleteText(R,L,"silent"),t.quill.insertText(R,T,"link",f,Ov),t.quill.setSelection(R+T.length,0,Ov)}else f.text=e||f.text?f.text:f.href,Ob(t,["link",f,Ov],S)}),u.fail(()=>{t.quill.focus()})}}function Oin(t,n){var e=new sin(t,n);return()=>{e.render()}}function Tin(t,n){return[{dataField:"href",label:{text:ye.format("dxHtmlEditor-dialogLinkUrlField")}},{dataField:"text",label:{text:ye.format("dxHtmlEditor-dialogLinkTextField")},visible:!aBe(t,n)},{dataField:"target",editorType:"dxCheckBox",editorOptions:{text:ye.format("dxHtmlEditor-dialogLinkTargetField")},cssClass:"dx-formdialog-field-target",label:{visible:!1}}]}function CBe(t,n){return()=>{var e=t.quill.getFormat();t.editorInstance.formDialogOption("title",ye.format("color"===n?"dxHtmlEditor-dialogColorCaption":"dxHtmlEditor-dialogBackgroundCaption"));var r=t.editorInstance.showFormDialog({formData:e,items:[{dataField:n,editorType:"dxColorView",editorOptions:{focusStateEnabled:!1},label:{visible:!1}}]});r.done((o,a)=>{Ob(t,[n,o[n],Ov],a)}),r.fail(()=>{t.quill.focus()})}}function Tv(t,n,e){return i=>{var r,{event:o}=i,a=t.quill.getFormat();Ob(t,[n,a[n]!==e&&e,Ov],o),null===(r=GX(t))||void 0===r||r.updateFormatWidgets(!0)}}function GX(t){return t._updateFormatWidget?t:t.quill.getModule("toolbar")}function jX(t,n){return e=>{var i,{event:r}=e,o=t.quill.getFormat(),a=o[n],s=!(Dy(a)?a:Z(a));Ob(t,[n,s,Ov],r),null===(i=GX(t))||void 0===i||i._updateFormatWidget(n,s,o)}}function kin(t){return()=>{var n=t.quill.getFormat();t._tableFormats.some(r=>Object.prototype.hasOwnProperty.call(n,r))?t.quill.focus():(t.editorInstance.formDialogOption("title",ye.format("dxHtmlEditor-dialogInsertTableCaption")),t.editorInstance.showFormDialog({formData:{rows:1,columns:1},items:[{dataField:"columns",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:ye.format("dxHtmlEditor-dialogInsertTableRowsField")}},{dataField:"rows",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:ye.format("dxHtmlEditor-dialogInsertTableColumnsField")}}]}).done((r,o)=>{t.quill.focus();var a=t.quill.getModule("table");if(a){t.saveValueChangeEvent(o);var{columns:s,rows:l}=r;a.insertTable(s,l)}}).always(()=>{t.quill.focus()}))}}function Min(t,n){var a,s,l,{$element:e,formats:i,tableBlot:r}=n,o=Fn(),u=e,f=t.editorInstance,S=parseInt(i.tableWidth)||ii(u),T=o.getComputedStyle(u.get(0)),R="start"===T.textAlign?"left":T.textAlign;return{formOptions:{colCount:2,formData:{width:S,height:Z(i.tableHeight)?parseInt(i.tableHeight):Zn(u),backgroundColor:i.tableBackgroundColor||T.backgroundColor,borderStyle:i.tableBorderStyle||T.borderTopStyle,borderColor:i.tableBorderColor||T.borderTopColor,borderWidth:parseInt(Z(i.tableBorderWidth)?i.tableBorderWidth:T.borderTopWidth),alignment:i.tableAlign||R},items:[{itemType:"group",caption:ye.format("dxHtmlEditor-border"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"borderStyle",label:{text:ye.format("dxHtmlEditor-style")},editorType:"dxSelectBox",editorOptions:{items:fBe,placeholder:"Select style"}},{dataField:"borderWidth",label:{text:ye.format("dxHtmlEditor-borderWidth")},editorOptions:{placeholder:ye.format("dxHtmlEditor-pixels")}},{itemType:"simple",dataField:"borderColor",label:{text:ye.format("dxHtmlEditor-borderColor")},colSpan:2,template:z=>{var j=U("<div>");return f._createComponent(j,ak,{editAlphaChannel:!0,value:z.component.option("formData").borderColor,onInitialized:Y=>{s=Y.component}}),j}}]},{itemType:"group",caption:ye.format("dxHtmlEditor-dimensions"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"width",label:{text:ye.format("dxHtmlEditor-width")},editorOptions:{min:0,placeholder:ye.format("dxHtmlEditor-pixels")}},{dataField:"height",label:{text:ye.format("dxHtmlEditor-height")},editorOptions:{min:0,placeholder:ye.format("dxHtmlEditor-pixels")}}]},{itemType:"group",caption:ye.format("dxHtmlEditor-tableBackground"),items:[{itemType:"simple",dataField:"backgroundColor",label:{text:ye.format("dxHtmlEditor-borderColor")},template:z=>{var j=U("<div>");return f._createComponent(j,ak,{editAlphaChannel:!0,value:z.component.option("formData").backgroundColor,onInitialized:Y=>{l=Y.component}}),j}}]},{itemType:"group",caption:ye.format("dxHtmlEditor-alignment"),items:[{itemType:"simple",label:{text:ye.format("dxHtmlEditor-horizontal")},template:()=>{var z=U("<div>");return f._createComponent(z,GC,{items:[{value:"left",icon:"alignleft"},{value:"center",icon:"aligncenter"},{value:"right",icon:"alignright"},{value:"justify",icon:"alignjustify"}],keyExpr:"value",selectedItemKeys:[R],onInitialized:j=>{a=j.component}}),z}}]}],showColonAfterLabel:!0,labelLocation:"top",minColWidth:400},applyHandler:z=>{var j=z.option("formData");(function Pin(t,n){var{$table:e,newHeight:i,newWidth:r,tableBlot:o}=n;if(Z(r))if(pM(e).length>0)t.editorInstance.format("tableWidth",r+"px");else{var s=m8(e),l=ii(e);hM(e,{tableBlot:o}),we(s,(T,R)=>{var L=U(R),z=r/l*ii(L),j=mf(e,L.index(),"horizontal");$h(t,{elements:j,property:"width",value:z})})}if(pM(e,"vertical")?.length>0)o.format("tableHeight",i+"px");else{var f=UX(e),S=Zn(e);we(f,(T,R)=>{var L=U(R),z=i/S*Zn(L),j=mf(e,T,"vertical");$h(t,{elements:j,property:"height",value:z})})}})(t,{$table:u,newHeight:j.height,newWidth:j.width===S?void 0:j.width,tableBlot:r}),t.editorInstance.format("tableBorderStyle",j.borderStyle),t.editorInstance.format("tableBorderWidth",j.borderWidth+"px"),t.editorInstance.format("tableBorderColor",s.option("value")),t.editorInstance.format("tableBackgroundColor",l.option("value")),t.editorInstance.format("tableTextAlign",a.option("selectedItemKeys")[0])}}}function Ain(t,n){var s,l,u,f,{$element:e,formats:i,tableBlot:r,rowBlot:o}=n,a=Fn(),S=e,T=Z(i.cellWidth)?parseInt(i.cellWidth):ii(S),R=t.editorInstance,L=a.getComputedStyle(S.get(0)),z="start"===L.textAlign?"left":L.textAlign;return{formOptions:{colCount:2,formData:{width:T,height:Z(i.cellHeight)?parseInt(i.cellHeight):Zn(S),backgroundColor:i.cellBackgroundColor||L.backgroundColor,borderStyle:i.cellBorderStyle||L.borderTopStyle,borderColor:i.cellBorderColor||L.borderTopColor,borderWidth:parseInt(Z(i.cellBorderWidth)?i.cellBorderWidth:L.borderTopWidth),alignment:i.cellTextAlign||z,verticalAlignment:i.cellVerticalAlign||L.verticalAlign,verticalPadding:parseInt(Z(i.cellPaddingTop)?i.cellPaddingTop:L.paddingTop),horizontalPadding:parseInt(Z(i.cellPaddingLeft)?i.cellPaddingLeft:L.paddingLeft)},items:[{itemType:"group",caption:ye.format("dxHtmlEditor-border"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"borderStyle",label:{text:ye.format("dxHtmlEditor-style")},editorType:"dxSelectBox",editorOptions:{items:fBe}},{dataField:"borderWidth",label:{text:ye.format("dxHtmlEditor-borderWidth")},editorOptions:{placeholder:ye.format("dxHtmlEditor-pixels")}},{itemType:"simple",dataField:"borderColor",colSpan:2,label:{text:ye.format("dxHtmlEditor-borderColor")},template:Y=>{var ie=U("<div>");return R._createComponent(ie,ak,{editAlphaChannel:!0,value:Y.component.option("formData").borderColor,onInitialized:te=>{u=te.component}}),ie}}]},{itemType:"group",caption:ye.format("dxHtmlEditor-dimensions"),colCount:2,colCountByScreen:{xs:2},items:[{dataField:"width",label:{text:ye.format("dxHtmlEditor-width")},editorOptions:{min:0,placeholder:ye.format("dxHtmlEditor-pixels")}},{dataField:"height",label:{text:ye.format("dxHtmlEditor-height")},editorOptions:{min:0,placeholder:ye.format("dxHtmlEditor-pixels")}},{dataField:"verticalPadding",label:{text:ye.format("dxHtmlEditor-paddingVertical")},editorOptions:{placeholder:ye.format("dxHtmlEditor-pixels")}},{label:{text:ye.format("dxHtmlEditor-paddingHorizontal")},dataField:"horizontalPadding",editorOptions:{placeholder:ye.format("dxHtmlEditor-pixels")}}]},{itemType:"group",caption:ye.format("dxHtmlEditor-tableBackground"),items:[{itemType:"simple",dataField:"backgroundColor",label:{text:ye.format("dxHtmlEditor-borderColor")},template:Y=>{var ie=U("<div>");return R._createComponent(ie,ak,{editAlphaChannel:!0,value:Y.component.option("formData").backgroundColor,onInitialized:te=>{f=te.component}}),ie}}]},{itemType:"group",caption:ye.format("dxHtmlEditor-alignment"),colCount:2,items:[{itemType:"simple",label:{text:ye.format("dxHtmlEditor-horizontal")},template:()=>{var Y=U("<div>");return R._createComponent(Y,GC,{items:[{value:"left",icon:"alignleft"},{value:"center",icon:"aligncenter"},{value:"right",icon:"alignright"},{value:"justify",icon:"alignjustify"}],keyExpr:"value",selectedItemKeys:[z],onInitialized:ie=>{s=ie.component}}),Y}},{itemType:"simple",label:{text:ye.format("dxHtmlEditor-vertical")},template:()=>{var Y=U("<div>");return R._createComponent(Y,GC,{items:[{value:"top",icon:"verticalaligntop"},{value:"middle",icon:"verticalaligncenter"},{value:"bottom",icon:"verticalalignbottom"}],keyExpr:"value",selectedItemKeys:[L.verticalAlign],onInitialized:ie=>{l=ie.component}}),Y}}]}],showColonAfterLabel:!0,labelLocation:"top",minColWidth:400},applyHandler:Y=>{var ie=Y.option("formData"),te=ie.width===parseInt(T)?void 0:ie.width;(function Rin(t,n){var{$cell:e,newHeight:i,newWidth:r,tableBlot:o,rowBlot:a}=n,s=U(e.closest("table"));if(Z(r)){var l=U(e).index(),u=mf(s,l),f=r-ii(e);r>ii(s)&&hM(s,{tableBlot:o}),$h(t,{elements:u,property:"width",value:r});var T=e.next();if(0===pM(s).length)if(hM(s,{tableBlot:o}),1===T.length){u=mf(s,l+1);var L=ii(u.eq(0))-f;$h(t,{elements:u,property:"width",value:Math.max(L,0)})}else if(1===e.prev().length){u=mf(s,l-1);var j=ii(u.eq(0))-f;$h(t,{elements:u,property:"width",value:Math.max(j,0)})}}a.children.forEach(ie=>{ie.format("cellHeight",i+"px")}),0===pM(s,"vertical").length&&s.css("height","auto")})(t,{$cell:S,newHeight:ie.height,newWidth:te,tableBlot:r,rowBlot:o}),t.editorInstance.format("cellBorderWidth",ie.borderWidth+"px"),t.editorInstance.format("cellBorderColor",u.option("value")),t.editorInstance.format("cellBorderStyle",ie.borderStyle),t.editorInstance.format("cellBackgroundColor",f.option("value")),t.editorInstance.format("cellTextAlign",s.option("selectedItemKeys")[0]),t.editorInstance.format("cellVerticalAlign",l.option("selectedItemKeys")[0]),t.editorInstance.format("cellPaddingLeft",ie.horizontalPadding+"px"),t.editorInstance.format("cellPaddingRight",ie.horizontalPadding+"px"),t.editorInstance.format("cellPaddingTop",ie.verticalPadding+"px"),t.editorInstance.format("cellPaddingBottom",ie.verticalPadding+"px")}}}var bBe=$u;if(No()){var xBe="dx-htmleditor-toolbar-wrapper",wBe="dx-format-active",Gin={66:"bold",73:"italic",85:"underline"},KX={b:66,i:73,u:85},zS=t=>ye.format("dxHtmlEditor-".concat(dd(t)));bBe=class extends $u{constructor(t,n){var e;if(super(t,n),e=this,this._toolbarWidgets=new Hnn,this._formatHandlers=_Be(this),this._tableFormats=oBe(t),Z(n.items)){this._addCallbacks(),this._renderToolbar();var i=this.toolbarInstance._layoutStrategy._menu;if(i){var r=i._renderPopup;i._renderPopup=function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];r.apply(i,...a),i._popup.on("showing",()=>{e._updateToolbar(!0)})}}this.quill.on("editor-change",(o,a,s,l)=>{"silent"===l&&pa(this.quill.getFormat())||this._updateToolbar("selection-change"===o)})}}_addCallbacks(){this.addCleanCallback(this.clean.bind(this)),this.editorInstance.addContentInitializedCallback(this.updateHistoryWidgets.bind(this))}_updateToolbar(t){this.updateFormatWidgets(t),this.updateHistoryWidgets(),this.updateTableWidgets()}_updateFormatWidget(t,n,e){var i=this._toolbarWidgets.getByName(t);i&&(n?this._markActiveFormatWidget(t,i,e):(this._resetFormatWidget(t,i),Object.prototype.hasOwnProperty.call(t)&&delete e[t]),this._toggleClearFormatting(n||!pa(e)))}_renderToolbar(){var t=this.options.container||this._getContainer();this._$toolbar=U("<div>").addClass("dx-htmleditor-toolbar").appendTo(t),this._$toolbarContainer=U(t).addClass(xBe),Se.on(this._$toolbarContainer,kt("mousedown",this.editorInstance.NAME),n=>{n.preventDefault()}),this._subscribeFormatHotKeys(),this.toolbarInstance=this.editorInstance._createComponent(this._$toolbar,nb,this.toolbarConfig),this.editorInstance.on("optionChanged",n=>{var{name:e}=n;("readOnly"===e||"disabled"===e)&&this.toolbarInstance.option("disabled",this.isInteractionDisabled)})}get toolbarConfig(){return{dataSource:this._prepareToolbarItems(),disabled:this.isInteractionDisabled,menuContainer:this._$toolbarContainer,multiline:this.isMultilineMode()}}get isInteractionDisabled(){return this.editorInstance.option("readOnly")||this.editorInstance.option("disabled")}isMultilineMode(){var t;return null===(t=this.options.multiline)||void 0===t||t}clean(){this._toolbarWidgets.clear(),this._$toolbarContainer&&this._$toolbarContainer.empty().removeClass(xBe)}repaint(){this.toolbarInstance&&this.toolbarInstance.repaint()}_getContainer(){var t=U("<div>");return this.editorInstance.$element().prepend(t),t}_detectRenamedOptions(t){Jn(t)&&we([{newName:"name",oldName:"formatName"},{newName:"acceptedValues",oldName:"formatValues"}],(n,e)=>{Object.prototype.hasOwnProperty.call(t,e.oldName)&&Di.log("W1016",e.oldName,e.newName)})}_subscribeFormatHotKeys(){this.quill.keyboard.addBinding({which:KX.b,shortKey:!0},this._handleFormatHotKey.bind(this)),this.quill.keyboard.addBinding({which:KX.i,shortKey:!0},this._handleFormatHotKey.bind(this)),this.quill.keyboard.addBinding({which:KX.u,shortKey:!0},this._handleFormatHotKey.bind(this))}_handleFormatHotKey(t,n,e){var{which:i}=e;this._updateButtonState(Gin[i])}_updateButtonState(t){var n=this._toolbarWidgets.getByName(t),e=this.quill.getFormat();e[t]?this._markActiveFormatWidget(t,n,e):this._resetFormatWidget(t,n)}_prepareToolbarItems(){var t=[];return we(this.options.items,(n,e)=>{var i;if(this._detectRenamedOptions(e),Jn(e))i=this._handleObjectItem(e);else if(Pn(e)){var r=this._prepareButtonItemConfig(e);i=this._getToolbarItem(r)}i&&t.push(i)}),t}_handleObjectItem(t){if(t.name&&t.acceptedValues&&this._isAcceptableItem(t.widget,"dxSelectBox")){var n=this._prepareSelectItemConfig(t);return this._getToolbarItem(n)}if(t.name&&this._isAcceptableItem(t.widget,"dxButton")){var e=this._prepareButtonItemConfig(t.name),i=se(!0,e,t);return this._getToolbarItem(i)}return this._getToolbarItem(t)}_isAcceptableItem(t,n){return!t||t===n}_prepareButtonItemConfig(t){var n,e=null!==(n=mBe[t])&&void 0!==n?n:t,i=hh(t);return{widget:"dxButton",name:t,options:{hint:zS(i),text:zS(i),icon:e.toLowerCase(),onClick:this._formatHandlers[t]||jX(this,t),stylingMode:"text"},showText:"inMenu"}}_prepareSelectItemConfig(t){var{name:n,acceptedValues:e}=t;return se(!0,{widget:"dxSelectBox",name:n,options:{stylingMode:"filled",dataSource:e,displayExpr:i=>((t,n)=>"header"===n?Z(t)&&!1!==t?"".concat(zS("heading")," ").concat(t):zS("normalText"):zS(t)||t)(i,n),placeholder:zS(n),onValueChanged:i=>{this._isReset||(this._hideAdaptiveMenu(),Ob(this,[n,i.value,"user"],i.event),this._setValueSilent(i.component,i.value))}}},t)}_hideAdaptiveMenu(){this.toolbarInstance.option("overflowMenuVisible")&&this.toolbarInstance.option("overflowMenuVisible",!1)}_getToolbarItem(t){var n={options:{onInitialized:e=>{t.name&&(e.component.$element().addClass("dx-htmleditor-toolbar-format"),e.component.$element().toggleClass("dx-".concat(t.name.toLowerCase(),"-format"),!!t.name),this._toolbarWidgets.add(t.name,e.component))},onDisposing:()=>{this._toolbarWidgets.remove(t.name)}}};return se(!0,{location:"before",locateInMenu:"auto"},this._getDefaultConfig(t.name),t,n)}_getDefaultItemsConfig(){return{clear:{options:{disabled:!0}},undo:{options:{disabled:!0}},redo:{options:{disabled:!0}},insertRowAbove:{options:{disabled:!0}},insertRowBelow:{options:{disabled:!0}},insertHeaderRow:{options:{disabled:!0}},insertColumnLeft:{options:{disabled:!0}},insertColumnRight:{options:{disabled:!0}},deleteRow:{options:{disabled:!0}},deleteColumn:{options:{disabled:!0}},deleteTable:{options:{disabled:!0}},cellProperties:{options:{disabled:!0}},tableProperties:{options:{disabled:!0}},separator:{template:(t,n,e)=>{U(e).addClass("dx-htmleditor-toolbar-separator")},menuItemTemplate:(t,n,e)=>{U(e).addClass("dx-htmleditor-toolbar-menu-separator")}}}}_getDefaultConfig(t){return this._getDefaultItemsConfig()[t]}updateHistoryWidgets(){var t=this.quill.history;if(t){var{undo:n,redo:e}=t.stack;this._updateManipulationWidget(this._toolbarWidgets.getByName("undo"),Boolean(n.length)),this._updateManipulationWidget(this._toolbarWidgets.getByName("redo"),Boolean(e.length))}}updateTableWidgets(){if(this.quill.getModule("table")){var n=this.quill.getSelection(),e=n&&this.quill.getFormat(n)||{},i=this._tableFormats.some(r=>Boolean(e[r]));Unn.forEach(r=>{var o="insertTable"===r,a=this._toolbarWidgets.getByName(r);this._updateManipulationWidget(a,o?!i:i)})}}_updateManipulationWidget(t,n){t&&t.option("disabled",!n)}updateFormatWidgets(t){var n=this.quill.getSelection();if(n){var e=this.quill.getFormat(n),i=!pa(e);for(var r in(!i||t)&&this._resetFormatWidgets(),e){var o=this._getFormatWidgetName(r,e),a=this._toolbarWidgets.getByName(o)||this._toolbarWidgets.getByName(r);a&&this._markActiveFormatWidget(r,a,e)}this._toggleClearFormatting(i||n.length>1)}}_markActiveFormatWidget(t,n,e){this._isColorFormat(t)&&this._updateColorWidget(t,e[t]),"value"in n.option()?this._setValueSilent(n,e[t]):n.$element().addClass(wBe)}_toggleClearFormatting(t){var n=this._toolbarWidgets.getByName("clear");n&&n.option("disabled",!t)}_isColorFormat(t){return"color"===t||"background"===t}_updateColorWidget(t,n){var e=this._toolbarWidgets.getByName(t);e&&e.$element().find(".".concat("dx-icon")).css("borderBottomColor",n||"transparent")}_getFormatWidgetName(t,n){var e;switch(t){case"align":e=t+hh(n[t]);break;case"list":e=n[t]+hh(t);break;case"code-block":e="codeBlock";break;case"script":e=n[t]+t;break;case"imageSrc":e="image";break;default:e=t}return e}_setValueSilent(t,n){this._isReset=!0,t.option("value",n),this._isReset=!1}_resetFormatWidgets(){this._toolbarWidgets.each((t,n)=>{this._resetFormatWidget(t,n)})}_resetFormatWidget(t,n){n.$element().removeClass(wBe),this._isColorFormat(t)&&this._updateColorWidget(t),"clear"===t&&n.option("disabled",!0),"dxSelectBox"===n.NAME&&this._setValueSilent(n,null)}addClickHandler(t,n){this._formatHandlers[t]=n;var e=this._toolbarWidgets.getByName(t);e&&"dxButton"===e.NAME&&e.option("onClick",n)}}}const Kin=bBe;var SBe=$u;No()&&(SBe=class extends $u{constructor(t,n){super(t,n);var e=this.editorInstance.NAME;Se.on(this.quill.root,kt("drop",e),this._dropHandler.bind(this)),Se.on(this.quill.root,kt("paste",e),this._pasteHandler.bind(this))}_dropHandler(t){var n,e=t.originalEvent.dataTransfer,i=null==e||null===(n=e.files)||void 0===n?void 0:n.length;this.saveValueChangeEvent(t),t.preventDefault(),i&&this._getImage(e.files,this._addImage.bind(this))}_pasteHandler(t){var n,{clipboardData:e}=t.originalEvent;if(this.saveValueChangeEvent(t),e){var i=null===(n=e.items)||void 0===n?void 0:n.length;!e.getData("text/html")&&i&&this._getImage(e.items,o=>{this._isBrowserSupportImagePaste(Ro)||this._addImage(o)})}}_isBrowserSupportImagePaste(t){var{mozilla:n,chrome:e,version:i}=t;return n||e&&i>82}_isImage(t){return!!t.type.match(/^image\/(a?png|bmp|gif|p?jpe?g|svg|vnd\.microsoft\.icon|webp)/i)}_getImage(t,n){var e=Fn();we(t,(i,r)=>{if(this._isImage(r)){var o=new e.FileReader;o.onload=s=>{var{target:l}=s;n(l.result)};var a=r.getAsFile?r.getAsFile():r;a instanceof e.Blob&&o.readAsDataURL(a)}})}_addImage(t){var n=this.quill.getSelection(),e=n?n.index:this.quill.getLength();this.quill.insertEmbed(e,"extendedImage",t,"user")}});const $in=SBe;var DBe=$u;No()&&(DBe=class extends $u{_getDefaultOptions(){return{dataSource:null}}constructor(t,n){super(t,n),this.options=se({},this._getDefaultOptions(),n),this._popup=this.renderPopup(),this._popup.$wrapper().addClass("dx-suggestion-list-wrapper"),this._renderPreventFocusOut()}renderList(t,n){var e=U("<div>").addClass("dx-suggestion-list").appendTo(t);this._list=this.options.editorInstance._createComponent(e,gC,n)}renderPopup(){var t=this.options.editorInstance,n=U("<div>").appendTo(t.$element()),e=this._getPopupConfig();return t._createComponent(n,dY,e)}_getPopupConfig(){return{contentTemplate:t=>{var n=this._getListConfig(this.options);this.renderList(U(t),n)},deferRendering:!1,onShown:()=>{this._list.focus()},onHidden:()=>{this._list.unselectAll(),this._list.option("focusedElement",null)},showTitle:!1,width:"auto",height:"auto",shading:!1,hideOnParentScroll:!0,hideOnOutsideClick:!0,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},fullScreen:!1,maxHeight:this.maxHeight}}_getListConfig(t){return{dataSource:t.dataSource,onSelectionChanged:this.selectionChangedHandler.bind(this),selectionMode:"single",pageLoadMode:"scrollBottom"}}get maxHeight(){var t=Fn(),n=t&&Ln(t)||0;return Math.max(100,.5*n)}selectionChangedHandler(t){this._popup.option("visible")&&(this._popup.hide(),this.insertEmbedContent(t))}_renderPreventFocusOut(){var t=kt("mousedown","dxHtmlEditorPopupModule");Se.on(this._popup.$wrapper(),t,n=>{n.preventDefault()})}insertEmbedContent(t){}showPopup(){this._popup&&this._popup.show()}savePosition(t){this.caretPosition=t}getPosition(){return this.caretPosition}});const EBe=DBe;var gM={};if(No()){var Jin=No().import("blots/embed");gM=class extends Jin{static create(t){var e,i,n=super.create(),r=t.value;return Array.isArray(t.escapeChar)?(e=gr(t.escapeChar[0],""),i=gr(t.escapeChar[1],"")):e=i=t.escapeChar,n.innerText=e+r+i,n.dataset.varStartEscChar=e,n.dataset.varEndEscChar=i,n.dataset.varValue=t.value,n}static value(t){return se({},{value:t.dataset.varValue,escapeChar:[t.dataset.varStartEscChar||"",t.dataset.varEndEscChar||""]})}},gM.blotName="variable",gM.tagName="span",gM.className="dx-variable"}const ern=gM;var OBe=$u;No()&&(No().register({"formats/variable":ern},!0),OBe=class extends EBe{_getDefaultOptions(){var t=super._getDefaultOptions();return se(t,{escapeChar:""})}constructor(t,n){super(t,n);var e=t.getModule("toolbar");e&&e.addClickHandler("variable",this.showPopup.bind(this)),t.keyboard.addBinding({key:"P",altKey:!0},this.showPopup.bind(this)),this._popup.on("shown",i=>{var r=U(i.component.option("position").of);r.hasClass("dx-variable-format")&&r.addClass("dx-format-active")})}showPopup(t){var n=this.quill.getSelection(!0),e=n?n.index:this.quill.getLength();this.savePosition(e),this._resetPopupPosition(t,e),super.showPopup()}_resetPopupPosition(t,n){if(t&&t.element)this._popup.option("position",{of:t.element,offset:{h:0,v:0},my:"top center",at:"bottom center",collision:"fit"});else{var e=this.quill.getBounds(n),i=Mi(this.quill.root);this._popup.option("position",{of:this.quill.root,offset:{h:e.left,v:e.bottom-i.height},my:"top center",at:"bottom left",collision:"fit flip"})}}insertEmbedContent(t){var n=this.getPosition(),e=t.component.option("selectedItem"),i=se({},{value:e,escapeChar:this.options.escapeChar});setTimeout(function(){this.quill.insertEmbed(n,"variable",i),this.quill.setSelection(n+1)}.bind(this))}});const irn=OBe;var fM="dxHtmlResizingModule",TBe=kt("keydown",fM),arn=kt("scroll",fM),srn=kt("mousedown",fM);class lrn extends $u{constructor(n,e){super(n,e),this.allowedTargets=e.allowedTargets||["image"],this.enabled=!!e.enabled,this._hideFrameWithContext=this.hideFrame.bind(this),this._framePositionChangedHandler=this._prepareFramePositionChangedHandler(),this.enabled&&(this._attachEvents(),this._createResizeFrame())}_attachEvents(){Se.on(this.quill.root,kt(Vi,fM),this._clickHandler.bind(this)),Se.on(this.quill.root,arn,this._framePositionChangedHandler),this.editorInstance.on("focusOut",this._hideFrameWithContext),this.quill.on("text-change",this._framePositionChangedHandler)}_detachEvents(){Se.off(this.quill.root,fM),this.editorInstance.off("focusOut",this._hideFrameWithContext),this.quill.off("text-change",this._framePositionChangedHandler)}_clickHandler(n){if(this._isAllowedTarget(n.target)){if(this._$target===n.target)return;this._$target=n.target;var e=U(this._$target),i=Math.max(ii(e)-wn(e),this.resizable.option("minWidth")),r=Math.max(Zn(e)-Ln(e),this.resizable.option("minHeight"));this.resizable.option({minWidth:i,minHeight:r}),this.updateFramePosition(),this.showFrame(),this._adjustSelection()}else this._$target&&this.hideFrame()}_prepareFramePositionChangedHandler(n){return()=>{this._$target&&this.updateFramePosition()}}_adjustSelection(){this.quill.getSelection()||this.quill.setSelection(0,0)}_isAllowedTarget(n){return this._isImage(n)}_isImage(n){return-1!==this.allowedTargets.indexOf("image")&&"IMG"===n.tagName.toUpperCase()}showFrame(){this._$resizeFrame.show(),Se.on(this.quill.root,TBe,this._handleFrameKeyDown.bind(this))}_handleFrameKeyDown(n){var e=Wo(n);("del"===e||"backspace"===e)&&this._deleteImage(),this.hideFrame()}hideFrame(){this._$target=null,this._$resizeFrame.hide(),Se.off(this.quill.root,TBe)}updateFramePosition(){var{height:n,width:e,top:i,left:r}=Mi(this._$target),{top:o,left:a}=Mi(this.quill.root),s=this._getBorderWidth();this._$resizeFrame.css({height:n,width:e,padding:1,top:i-o-s-1,left:r-a-s-1}),kr(this._$resizeFrame,{left:0,top:0})}_getBorderWidth(){return parseInt(this._$resizeFrame.css("borderTopWidth"))}_createResizeFrame(){if(!this._$resizeFrame){var{deviceType:n}=pn.current();this._$resizeFrame=U("<div>").addClass("dx-resize-frame").toggleClass("dx-touch-device","desktop"!==n).appendTo(this.editorInstance._getQuillContainer()).hide(),Se.on(this._$resizeFrame,srn,e=>{e.preventDefault()}),this.resizable=this.editorInstance._createComponent(this._$resizeFrame,kL,{onResize:e=>{this._$target&&(U(this._$target).attr({height:e.height,width:e.width}),this.updateFramePosition())}})}}_deleteImage(){var n;this._isAllowedTarget(this._$target)&&(null===(n=No().find(this._$target))||void 0===n||n.deleteAt(0))}option(n,e){"mediaResizing"!==n?"enabled"===n?(this.enabled=e,e?this._attachEvents():this._detachEvents()):"allowedTargets"===n&&Array.isArray(e)&&(this.allowedTargets=e):this.handleOptionChangeValue(e)}clean(){this._detachEvents(),this._$resizeFrame.remove(),this._$resizeFrame=void 0}}var IBe="dx-htmleditor-column-resizer",kBe="dx-htmleditor-row-resizer",drn={minColumnWidth:40,minRowHeight:24},YX="dxHtmlTableResizingModule",MBe=kt("dxpointerdown",YX),hrn=kt("scroll",YX);class prn extends $u{constructor(n,e){super(n,e),this.enabled=!!e.enabled,this._tableResizeFrames=[],this._minColumnWidth=this._minSizeLimit("minColumnWidth",e.minColumnWidth),this._minRowHeight=this._minSizeLimit("minRowHeight",e.minRowHeight),this._quillContainer=this.editorInstance._getQuillContainer(),this._tableData=[],this.enabled&&this._applyResizing()}_applyResizing(n){n?this._applyResizingImpl():this.editorInstance.addContentInitializedCallback(this._applyResizingImpl.bind(this)),this.addCleanCallback(this.clean.bind(this)),this._resizeHandlerWithContext=fp.add(this._resizeHandler.bind(this))}_minSizeLimit(n,e){return Z(e)?Math.max(e,0):drn[n]}_applyResizingImpl(){var n=this._findTables();n.length&&(this._fixTablesWidths(n),this._createResizeFrames(n),this._updateFramesPositions(),this._updateFramesSeparators()),this._attachEvents()}_attachEvents(){Se.on(this.editorInstance._getContent(),hrn,this._updateFramesPositions.bind(this)),this.quill.on("text-change",this._getQuillTextChangeHandler())}_detachEvents(){Se.off(this.editorInstance._getContent(),YX),this.quill.off("text-change",this._quillTextChangeHandler)}_getQuillTextChangeHandler(n,e,i){return(r,o,a)=>{if(this._isTableChanging()){var s=this._findTables();this._removeResizeFrames(),"api"===a&&this._fixTablesWidths(s),this._updateTablesColumnsWidth(s),this._createResizeFrames(s),this._updateFramesPositions(),this._updateFramesSeparators()}else this._updateFramesPositions(),this._isDragging||this._updateFramesSeparators()}}_getFrameForTable(n){var e;return null===(e=this._framesForTables)||void 0===e?void 0:e.get(n.get(0))}_resizeHandler(){this._windowResizeTimeout=setTimeout(()=>{var n=this._findTables();we(n,(e,i)=>{var r=U(i),o=this._tableResizeFrames[e],a=ii(r),s=this._tableLastWidth(o);Math.abs(a-s)>1&&(this._tableLastWidth(o,a),this._updateColumnsWidth(r,e))}),this._updateFramesPositions(),this._updateFramesSeparators()})}_findTables(){return U(this._quillContainer).find("table")}_getWidthStyleValue(n){var e=n[0].style.width;return""!==e?parseInt(e):void 0}_tableLastWidth(n,e){if(!Z(e))return n?.lastWidth;n.lastWidth=e}_fixTablesWidths(n){we(n,(e,i)=>{var r=U(i),o=this._getTableDeterminantElements(r,"horizontal");this._tableResizeFrames[e]||(this._tableResizeFrames[e]={lastWidth:void 0});var a=this._getFrameForTable(r);if(a||this._tableResizeFrames.push({$table:r}),0===pM(r).length){var s,{columnsSum:l}=this._getColumnElementsSum(o);hM(r,{quill:this.quill});var u=null!==(s=this._tableLastWidth(a))&&void 0!==s?s:ii(r);a&&this._tableLastWidth(a,Math.max(l,u))}})}_createResizeFrames(n){this._framesForTables=new Map,n.each((e,i)=>{var r,o=U(i),a=null===(r=this._tableResizeFrames[e])||void 0===r?void 0:r.$table,s=this._tableResizeFrames[e].lastWidth;this._tableResizeFrames[e]={$frame:this._createTableResizeFrame(i),$table:o,index:e,lastWidth:a&&i===a.get(0)?s:void 0,columnsCount:this._getTableDeterminantElements(o,"horizontal").length,rowsCount:this._getTableDeterminantElements(o,"vertical").length},this._framesForTables.set(i,this._tableResizeFrames[e])}),this._tableResizeFrames.length=n.length}_isTableChanging(){var n=this._findTables(),e=!1;return n.length!==this._tableResizeFrames.length?e=!0:we(n,(i,r)=>{var o=U(r),a=this._tableResizeFrames[i],s=a?.columnsCount!==this._getTableDeterminantElements(o,"horizontal").length,l=a?.rowsCount!==this._getTableDeterminantElements(o,"vertical").length;if(s||l)return e=!0,!1}),e}_removeResizeFrames(n){var e;we(this._tableResizeFrames,(i,r)=>{if(r.$frame){var o,a=".".concat(IBe,", .").concat(kBe);this._detachSeparatorEvents(null===(o=r.$frame)||void 0===o?void 0:o.find(a)),r.$frame.remove()}}),null===(e=this._framesForTables)||void 0===e||e.clear(),n&&(this._tableResizeFrames=[])}_detachSeparatorEvents(n){n.each((e,i)=>{Se.off(i,MBe)})}_createTableResizeFrame(){return U("<div>").addClass("dx-table-resize-frame").appendTo(this._quillContainer)}_updateFramesPositions(){we(this._tableResizeFrames,(n,e)=>{this._updateFramePosition(e.$table,e.$frame)})}_updateFramePosition(n,e){var{height:i,width:r,top:o,left:a}=Mi(n.get(0)),{top:s,left:l}=Mi(this.quill.root);e.css({height:i,width:r,top:o-s,left:a-l}),kr(e,{left:0,top:0})}_updateFramesSeparators(n){we(this._tableResizeFrames,(e,i)=>{n?this._updateFrameSeparators(i,n):(this._updateFrameSeparators(i,"vertical"),this._updateFrameSeparators(i,"horizontal"))})}_isDraggable(n){return n.hasClass("dx-draggable")&&n.is(":visible")}_removeDraggable(n,e){this._isDraggable(n)&&(U(n).dxDraggable("instance").dispose(),U(n).addClass(e))}_getDirectionInfo(n){return"vertical"===n?{lineResizerClass:kBe,sizeFunction:e=>Zn(e),positionCoordinate:"top",positionStyleProperty:"height",positionCoordinateName:"y"}:{lineResizerClass:IBe,sizeFunction:e=>ii(e),positionCoordinate:this.editorInstance.option("rtlEnabled")?"right":"left",positionStyleProperty:"width",positionCoordinateName:"x"}}_getSize(n,e){return e.sizeFunction(n)}_updateFrameSeparators(n,e){for(var i=this._getTableDeterminantElements(n.$table,e),o=i.length-1,a=this._getDirectionInfo(e),s=n.$frame.find(".".concat(a.lineResizerClass)),l={transform:"none"},u=0,f=0;f<=o;f++){u+=this._getSize(i.eq(f),a),Z(s[f])||(s[f]=U("<div>").addClass(a.lineResizerClass).appendTo(n.$frame).get(0));var S=U(s[f]);this._removeDraggable(S,a.lineResizerClass),l[a.positionCoordinate]=u-2,U(S).css(l),this._attachColumnSeparatorEvents({lineSeparator:s[f],index:f,$determinantElements:i,frame:n,direction:e})}}_getTableDeterminantElements(n,e){return"vertical"===e?n.find("th:first-child, td:first-child"):m8(n)}_attachColumnSeparatorEvents(n){Se.on(n.lineSeparator,MBe,()=>{this._createDraggableElement(n)})}_dragStartHandler(n){var{$determinantElements:e,index:i,frame:r,direction:o,lineSeparator:a}=n,s=this._getDirectionInfo(o);this._isDragging=!0,this._fixColumnsWidth(r.$table),this._startLineSize=parseInt(this._getSize(U(e[i]),s)),this._startTableWidth=ii(r.$table),this._startLineSeparatorPosition=parseInt(U(a).css(s.positionCoordinate)),this._nextLineSize=0,e[i+1]?this._nextLineSize=parseInt(this._getSize(U(e[i+1]),s)):"horizontal"===o&&hM(r.$table,{quill:this.quill})}_shouldRevertOffset(n){return"horizontal"===n&&this.editorInstance.option("rtlEnabled")}_isNextColumnWidthEnough(n,e,i){if(!this._nextLineSize)return!0;if(n>=this._minColumnWidth){var r=this._nextColumnOffsetLimit?i<this._nextColumnOffsetLimit:i<0,o=Math.abs(this._getWidthStyleValue(e)-ii(e))>3;return r||!o}return!1}_shouldSetNextColumnWidth(n){return this._nextLineSize&&n>0}_horizontalDragHandler(n){var{currentLineNewSize:e,directionInfo:i,eventOffset:r,$determinantElements:o,index:a,frame:s}=n,l=this._nextLineSize&&this._nextLineSize-r,u=e>=this._minColumnWidth,f=mf(s.$table,a),S=mf(s.$table,a+1),T=ii(f.eq(0))-e;if(u)if(this._isNextColumnWidthEnough(l,o.eq(a+1),r)){$h(this,{elements:f,property:i.positionStyleProperty,value:e}),this._shouldSetNextColumnWidth(l)&&$h(this,{elements:S,property:i.positionStyleProperty,value:l});var R=Math.abs(this._startTableWidth-ii(s.$table))<3;(Math.abs(T)>3||!this._nextLineSize&&R)&&($h(this,{elements:f,property:i.positionStyleProperty,value:ii(f.eq(0))}),l+=e-ii(f.eq(0)),this._shouldSetNextColumnWidth(l)&&$h(this,{elements:S,property:i.positionStyleProperty,value:l}))}else this._nextColumnOffsetLimit=this._nextColumnOffsetLimit||r;this._$highlightedElement.css(i.positionCoordinate,this._startLineSeparatorPosition+r+T+"px")}_verticalDragHandler(n){var{currentLineNewSize:e,directionInfo:i,eventOffset:r,$determinantElements:o,index:a,frame:s}=n,l=Math.max(e,this._minRowHeight);$h(this,{elements:mf(s.$table,a,"vertical"),property:i.positionStyleProperty,value:l});var f=Zn(o.eq(a))-e;this._$highlightedElement.css(i.positionCoordinate,this._startLineSeparatorPosition+r+f+"px")}_dragMoveHandler(n,e){var{$determinantElements:i,index:r,frame:o,direction:a}=e,s=this._getDirectionInfo(a),l=n.offset[s.positionCoordinateName];this.editorInstance._saveValueChangeEvent(n),this._shouldRevertOffset(a)&&(l=-l);var u=this._startLineSize+l;"horizontal"===a?this._horizontalDragHandler({currentLineNewSize:u,directionInfo:s,eventOffset:l,$determinantElements:i,index:r,frame:o}):this._verticalDragHandler({currentLineNewSize:u,directionInfo:s,eventOffset:l,$determinantElements:i,index:r,frame:o}),this._updateFramePosition(o.$table,o.$frame)}_dragEndHandler(n){var e;null===(e=this._$highlightedElement)||void 0===e||e.remove(),this._isDragging=void 0,this._nextColumnOffsetLimit=void 0,this._tableLastWidth(n.frame,ii(n.frame.$table)),this._updateFramesPositions(),this._updateFramesSeparators()}_isLastColumnResizing(n){var{$determinantElements:e,index:i}=n;return!Z(e[i+1])}_getBoundaryConfig(n){var e={};if("vertical"===n.direction)e.boundary=n.frame.$table,e.boundOffset={bottom:Rn()?-Ln(Fn()):-Zn(this._quillContainer),top:0,left:0,right:0};else if(this._isLastColumnResizing(n)){var i=this.editorInstance._getContent();e.boundary=i,e.boundOffset={bottom:0,top:0,left:i.css("paddingLeft"),right:i.css("paddingRight")}}else e.boundary=n.frame.$table;return e}_createDraggableElement(n){var e,i=this._getBoundaryConfig(n),r="vertical"===n.direction?"dx-htmleditor-highlighted-row":"dx-htmleditor-highlighted-column";null===(e=this._$highlightedElement)||void 0===e||e.remove(),this._$highlightedElement=U("<div>").addClass("".concat(r)).insertAfter(U(n.lineSeparator));var o={contentTemplate:null,allowMoveByClick:!1,dragDirection:n.direction,onDragMove:a=>{var{event:l}=a;this._dragMoveHandler(l,n)},onDragStart:()=>{this._dragStartHandler(n)},onDragEnd:()=>{this._dragEndHandler(n)}};se(o,i),this._currentDraggableElement=this.editorInstance._createComponent(n.lineSeparator,JC,o)}_fixColumnsWidth(n){var e=this._getTableDeterminantElements(n);we(e,(i,r)=>{var o=ii(r);$h(this,{elements:mf(n,i),property:"width",value:Math.max(o,this._minColumnWidth)})})}_getColumnElementsSum(n){var e=[],i=0;return we(n,(r,o)=>{var a=U(o),s=this._getWidthStyleValue(a)||ii(a);e[r]=Math.max(s,this._minColumnWidth),i+=e[r]}),{columnsWidths:e,columnsSum:i}}_setColumnsRatioWidth(n,e,i,r){we(n,o=>{$h(this,{elements:mf(r,o),property:"width",value:e>0?this._minColumnWidth+Math.round((i[o]-this._minColumnWidth)*e):this._minColumnWidth})})}_updateColumnsWidth(n,e){var i=this._getTableDeterminantElements(n),r=this._tableResizeFrames[e];r||(this._tableResizeFrames[e]={});var a,o=this._tableLastWidth(r=this._tableResizeFrames[e])||ii(n),{columnsWidths:s,columnsSum:l}=this._getColumnElementsSum(i),u=i.length*this._minColumnWidth;this._tableLastWidth(r,(a=l>u?(o-u)/(l-u):-1)>0?o:u),this._setColumnsRatioWidth(i,a,s,n)}_updateTablesColumnsWidth(n){we(n,(e,i)=>{this._updateColumnsWidth(U(i),e)})}option(n,e){"tableResizing"!==n?"enabled"===n?(this.enabled=e,e?this._applyResizing(!0):this.clean()):["minColumnWidth","minRowHeight"].includes(n)&&(this["_".concat(n)]=this._minSizeLimit(n,e)):this.handleOptionChangeValue(e)}clean(){this._removeResizeFrames(!0),this._detachEvents(),fp.remove(this._resizeHandlerWithContext),clearTimeout(this._windowResizeTimeout),this._resizeHandlerWithContext=void 0,this._isDragging=void 0,this._startTableWidth=void 0,clearTimeout(this._attachResizerTimeout)}}var ABe=kt("dxcontextmenu","dxHtmlEditorTableContextMenu"),FBe=$u,ZX=t=>ye.format("dxHtmlEditor-".concat(dd(t)));No()&&(FBe=class extends $u{constructor(t,n){super(t,n),this.enabled=!!n.enabled,this._quillContainer=this.editorInstance._getQuillContainer(),this.addCleanCallback(this.prepareCleanCallback()),this._formatHandlers=_Be(this),this._tableFormats=oBe(t),this.enabled&&this._enableContextMenu(n.items)}_enableContextMenu(t){var n;null===(n=this._contextMenu)||void 0===n||n.dispose(),this._contextMenu=this._createContextMenu(t),this._attachEvents()}_attachEvents(){Se.on(this.editorInstance._getContent(),ABe,this._prepareContextMenuHandler())}_detachEvents(){Se.off(this.editorInstance._getContent(),ABe)}_createContextMenu(t){var n=U("<div>").appendTo(this.editorInstance.$element()),e=this._getMenuConfig(t);return this.editorInstance._createComponent(n,Zm,e)}showPropertiesForm(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cell",n=U(this._targetElement).closest("cell"===t?"th, td":"table");this._contextMenu.hide(),this._formatHandlers["".concat(t,"Properties")](n),this._targetElement=null}_isAcceptableItem(t,n){return!t||t===n}_handleObjectItem(t){if(t.name&&this._isAcceptableItem(t.widget,"dxButton")){var n=this._prepareMenuItemConfig(t.name);return se(!0,n,t)}return t.items&&(t.items=this._prepareMenuItems(t.items)),t}_prepareMenuItemConfig(t){var n,e,i=null!==(n=mBe[t])&&void 0!==n?n:t,r=hh(t);return{text:ZX(r),icon:i.toLowerCase(),onClick:null!==(e=this._formatHandlers[t])&&void 0!==e?e:jX(this,t)}}_prepareMenuItems(t){var n=[];return we(t,(e,i)=>{var r;Jn(i)?r=this._handleObjectItem(i):Pn(i)&&(r=this._prepareMenuItemConfig(i)),r&&n.push(r)}),n}_getMenuConfig(t){var n=[{text:ZX("insert"),items:["insertHeaderRow","insertRowAbove","insertRowBelow",se(this._prepareMenuItemConfig("insertColumnLeft"),{beginGroup:!0}),"insertColumnRight"]},{text:ZX("delete"),items:["deleteColumn","deleteRow","deleteTable"]},se(this._prepareMenuItemConfig("cellProperties"),{onClick:i=>{this.showPropertiesForm("cell")}}),se(this._prepareMenuItemConfig("tableProperties"),{onClick:i=>{this.showPropertiesForm("table")}})],e=this._prepareMenuItems(null!=t&&t.length?t:n);return{target:this._quillContainer,showEvent:null,hideOnParentScroll:!1,items:e}}_prepareContextMenuHandler(){return t=>{this._isTableTarget(t.target)&&(this._targetElement=t.target,this._setContextMenuPosition(t),this._contextMenu.show(),t.preventDefault())}}_setContextMenuPosition(t){var n=this._quillContainer.get(0).getBoundingClientRect();this._contextMenu.option({position:{my:"left top",at:"left top",collision:"fit fit",offset:{x:t.clientX-n.left,y:t.clientY-n.top}}})}_isTableTarget(t){return!!U(t).closest(".dx-htmleditor-content td, .dx-htmleditor-content th").length}clean(){this._detachEvents()}option(t,n){if("tableContextMenu"!==t){if("enabled"===t)this.enabled=n,n?this._enableContextMenu():this.clean();else if("items"===t){var e;null===(e=this._contextMenu)||void 0===e||e.dispose(),this._contextMenu=this._createContextMenu(n)}}else this.handleOptionChangeValue(n)}prepareCleanCallback(){return()=>{this.clean()}}});const frn=FBe;var XX="dxHtmlEditorImageUpload",PBe=$u;No()&&(PBe=class extends $u{constructor(t,n){super(t,n),this.options=n,this._quillContainer=this.editorInstance._getQuillContainer(),this.addCleanCallback(this.prepareCleanCallback()),this._handleServerUpload()}_handleServerUpload(){Z(this.options.fileUploadMode)&&"base64"!==this.options.fileUploadMode?this._enableDragAndDropUploading():this._disableDragAndDropUploading()}_getUploaderModule(){return this._uploaderModule||(this._uploaderModule=this.quill.getModule("uploader")),this._uploaderModule}_disableDragAndDropUploading(){var t;this._getUploaderModule().preventImageUploading(!1),this._detachEvents(),null===(t=this._fileUploader)||void 0===t||t.dispose()}_enableDragAndDropUploading(){this._initFileUploader(),this._getUploaderModule().preventImageUploading(!0),this._attachEvents()}_initFileUploader(){var t=U("<div>").addClass("dx-htmleditor-hidden-content").appendTo(this._quillContainer),n=se({},{value:[],name:"dx-htmleditor-image",accept:"image/*",uploadMode:"useButtons"},{uploadUrl:this.options.uploadUrl,onUploaded:this._onUploaded.bind(this)},this.options.fileUploaderOptions);return this._fileUploader=this.editorInstance._createComponent(t,Zk,n),t}_onUploaded(t){var n,{index:e}=null!==(n=this.quill.getSelection())&&void 0!==n?n:{index:this.quill.getLength()},i=pBe(this.options.uploadDirectory)+t.file.name;WX(this.quill,e,{src:i}),this.quill.setSelection(e+1,0)}_attachEvents(){Se.on(this.quill.root,kt("drop",XX),this._dropHandler.bind(this)),Se.on(this.quill.root,kt("paste",XX),this._pasteHandler.bind(this))}_detachEvents(){Se.off(this.quill.root,XX)}_dropHandler(t){this._handleInsertImages(t,"dataTransfer")}_pasteHandler(t){this._handleInsertImages(t,"clipboardData")}_handleInsertImages(t,n){this.saveValueChangeEvent(t);var i=Array.from(t.originalEvent[n].files||[]);i.length&&(t.preventDefault(),t.stopPropagation(),this._fileUploader.option("value",i),this._fileUploader.upload())}clean(){this._disableDragAndDropUploading()}prepareCleanCallback(){return()=>{this.clean()}}option(t,n){switch(t){case"imageUpload":this.handleOptionChangeValue(n);break;case"fileUploadMode":this.options.fileUploadMode=n,this._handleServerUpload();break;case"fileUploaderOptions":this._fileUploader.option(n)}}});const _rn=PBe;var RBe=kt("dxclick","dxHtmlEditorImageCursor"),LBe=$u;No()&&(LBe=class extends $u{constructor(t,n){super(t,n),this.addCleanCallback(this.clean.bind(this)),this._attachEvents()}_attachEvents(){Se.on(this.quill.root,RBe,this._clickHandler.bind(this))}_detachEvents(){Se.off(this.quill.root,RBe)}_clickHandler(t){this._isAllowedTarget(t.target)&&this._adjustSelection(t)}_isAllowedTarget(t){return this._isImage(t)}_isImage(t){return"IMG"===t.tagName.toUpperCase()}_adjustSelection(t){var n=this.quill.scroll.find(t.target);if(n){var e=n.offset(this.quill.scroll);this.quill.setSelection(e+1,0)}else this.quill.setSelection(0,0)}clean(){this._detachEvents()}});const yrn=LBe;var US={};if(No()){var Crn=No().import("blots/embed");US=class extends Crn{static create(t){var n=super.create();return n.setAttribute("spellcheck",!1),n.dataset.marker=t.marker,n.dataset.mentionValue=t.value,n.dataset.id=t.id,this.renderContent(n,t),n}static value(t){return{marker:t.dataset.marker,id:t.dataset.id,value:t.dataset.mentionValue}}static renderContent(t,n){var e=this._templates.get(n.marker);e?e.render({model:n,container:t}):this.baseContentRender(t,n)}static baseContentRender(t,n){var e=U("<span>").text(n.marker);U(t).append(e).append(n.value)}static addTemplate(t,n){this._templates.set(t,n)}static removeTemplate(t){this._templates.delete(t)}},US.blotName="mention",US.tagName="span",US.className="dx-mention",US._templates=new Map}const JX=US;var BBe=$u;if(No()){var sc={ARROW_UP:"upArrow",ARROW_DOWN:"downArrow",ARROW_LEFT:"leftArrow",ARROW_RIGHT:"rightArrow",ENTER:"enter",ESCAPE:"escape",SPACE:"space",PAGE_UP:"pageUp",PAGE_DOWN:"pageDown",END:"end",HOME:"home"},Srn=[sc.ARROW_LEFT,sc.ARROW_RIGHT,sc.PAGE_UP,sc.PAGE_DOWN,sc.END,sc.HOME],Drn=[" ","\n"];No().register({"formats/mention":JX},!0),BBe=class extends EBe{_getDefaultOptions(){var t=super._getDefaultOptions();return se(t,{itemTemplate:"item",valueExpr:"this",displayExpr:"this",template:null,searchExpr:null,searchTimeout:500,minSearchLength:0})}constructor(t,n){super(t,n),this._mentions={},n.mentions.forEach(e=>{var i=e.marker;i||(e.marker=i="@");var r=e.template;if(r){var o=this.editorInstance._getTemplate(r);o&&JX.addTemplate(i,o)}this._mentions[i]=se({},this._getDefaultOptions(),e)}),this._attachKeyboardHandlers(),this.addCleanCallback(this.clean.bind(this)),this.quill.on("text-change",this.onTextChange.bind(this))}_attachKeyboardHandlers(){this.quill.keyboard.addBinding({key:sc.ARROW_UP},this._moveToItem.bind(this,"prev")),this.quill.keyboard.addBinding({key:sc.ARROW_DOWN},this._moveToItem.bind(this,"next")),this.quill.keyboard.addBinding({key:[sc.ENTER,sc.SPACE]},this._selectItemHandler.bind(this));var t=this.quill.keyboard.bindings[sc.ENTER];t.unshift(t.pop()),this.quill.keyboard.addBinding({key:sc.ESCAPE},this._escapeKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:[sc.ARROW_LEFT,sc.ARROW_RIGHT],shiftKey:!0},this._ignoreKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:Srn},this._ignoreKeyHandler.bind(this))}_moveToItem(t){var n=this._list.getDataSource();if(this._isMentionActive&&!n.isLoading()){var i="next"===t?"first":"last",r=U(this._list.option("focusedElement"))[t]();r=r.length?r:this._activeListItems[i](),this._list.option("focusedElement",kn(r)),this._list.scrollToItem(r)}return!this._isMentionActive}_ignoreKeyHandler(){return!this._isMentionActive}_fitIntoRange(t,n,e){return t>e?n:t<n?e:t}_selectItemHandler(){return this._isMentionActive&&(this._list.option("items").length?this._list.selectItem(this._list.option("focusedElement")):this._popup.hide()),!this._isMentionActive}_escapeKeyHandler(){return this._isMentionActive&&this._popup.hide(),!this._isMentionActive}renderList(t,n){this.compileGetters(this.options),super.renderList(t,n)}compileGetters(t){var{displayExpr:n,valueExpr:e}=t;this._valueGetter=Ai(n),this._idGetter=Ai(e)}_getListConfig(t){var n=super._getListConfig(t);return se(n,{itemTemplate:this.options.itemTemplate,onContentReady:()=>{this._hasSearch&&(this._popup.repaint(),this._focusFirstElement(),this._hasSearch=!1)}})}insertEmbedContent(){var t=this._activeMentionConfig.marker.length,n=t+this._searchValue.length,e=this.getPosition(),i=this._list.option("selectedItem"),r={value:this._valueGetter(i),id:this._idGetter(i),marker:this._activeMentionConfig.marker},o=No().import("delta"),a=Math.max(0,e-t),s=(new o).retain(a).delete(n).insert({mention:r}).insert(" ");this.quill.updateContents(s),this.quill.setSelection(a+2)}_getLastInsertOperation(t){var n=t[t.length-1];if("insert"in n)return n;var i="delete"in n;if(i&&t.length>=2){var r=t[t.length-2];if(i&&"insert"in r)return r}return null}onTextChange(t,n,e){if("user"===e)if(this._isMentionActive&&this._isPopupVisible)this._processSearchValue(t.ops[t.ops.length-1])&&this._filterList(this._searchValue);else{var{ops:r}=t,o=this._getLastInsertOperation(r);o&&this.checkMentionRequest(o,r)}}get _isPopupVisible(){var t;return null===(t=this._popup)||void 0===t?void 0:t.option("visible")}_processSearchValue(t){if("insert"in t)this._searchValue+=t.insert;else{if(!this._searchValue.length||t.delete>1)return this._popup.hide(),!1;this._searchValue=this._searchValue.slice(0,-1)}return!0}checkMentionRequest(t,n){var{insert:e}=t,i=this.quill.getSelection();if(e&&Pn(e)&&i&&!this._isMarkerPartOfText(n[0].retain)&&(this._activeMentionConfig=this._mentions[e],this._activeMentionConfig)){this._updateList(this._activeMentionConfig);var r=i.index&&"\n"===this._getCharByIndex(i.index-1);this.savePosition(i.index+r),this._popup.option("position",this._popupPosition),this._searchValue="",this._popup.show()}}_isMarkerPartOfText(t){return!(!t||-1!==Drn.indexOf(this._getCharByIndex(t-1)))}_getCharByIndex(t){return this.quill.getContents(t,1).ops[0].insert}_updateList(t){var{dataSource:n,displayExpr:e,valueExpr:i,itemTemplate:r,searchExpr:o}=t;this.compileGetters({displayExpr:e,valueExpr:i}),this._list.unselectAll(),this._list.option({dataSource:n,displayExpr:e,itemTemplate:r,searchExpr:o})}_filterList(t){if(this._isMinSearchLengthExceeded(t)){var n=this._activeMentionConfig.searchTimeout;n?(clearTimeout(this._searchTimer),this._searchTimer=setTimeout(()=>{this._search(t)},n)):this._search(t)}else this._resetFilter()}_isMinSearchLengthExceeded(t){return t.length>=this._activeMentionConfig.minSearchLength}_resetFilter(){clearTimeout(this._searchTimer),this._search(null)}_search(t){this._hasSearch=!0,this._list.option("searchValue",t)}_focusFirstElement(){if(this._list){var t=this._activeListItems.first();this._list.option("focusedElement",kn(t)),this._list.scrollToItem(t)}}get _popupPosition(){var t=this.getPosition(),{left:n,top:e,height:i}=this.quill.getBounds(t&&t-1),{left:r,top:o}=U(this.quill.root).offset();return{of:Se.Event("positionEvent",{pageX:r+n,pageY:o+e}),offset:{v:i},my:"top left",at:"top left",collision:{y:"flip",x:"flipfit"}}}_getPopupConfig(){return se(super._getPopupConfig(),{hideOnParentScroll:!1,onShown:()=>{this._isMentionActive=!0,this._hasSearch=!1,this._focusFirstElement()},onHidden:()=>{this._list.unselectAll(),this._list.option("focusedElement",null),this._isMentionActive=!1,this._search(null)},focusStateEnabled:!1})}get _activeListItems(){return this._list.itemElements().filter(":not(.".concat("dx-state-disabled",")"))}clean(){Object.keys(this._mentions).forEach(t=>{this._mentions[t].template&&JX.removeTemplate(t)})}}}const Orn=BBe;class _8{constructor(){if(!_8.initialized){var n=this.getQuill(),e=n.import("attributors/style/direction");n.register({"formats/align":Bnn,"formats/direction":e,"formats/font":Rnn,"formats/size":Lnn,"formats/extendedImage":Ann,"formats/link":Pnn,"modules/toolbar":Kin,"modules/dropImage":$in,"modules/variables":irn,"modules/resizing":lrn,"modules/tableResizing":prn,"modules/tableContextMenu":frn,"modules/imageUpload":_rn,"modules/imageCursor":yrn,"modules/mentions":Orn,"themes/basic":knn},!0),this._customModules=[],_8._initialized=!0}}createEditor(n,e){return new(this.getQuill())(n,e)}registerModules(n){var e=RegExp("modules/*"),i=this.getQuill();for(var o in n)e.test(o)&&!i.imports[o]&&this._customModules.push(o.slice(8));i.register(n,!0)}getRegisteredModuleNames(){return this._customModules}getQuill(){return nBe()}}const Trn=_8;var krn=new class Irn{constructor(){this._converters={}}addConverter(n,e){this._converters[n]=e}getConverter(n){return this._converters[n]}};const QX=krn;function Arn(t){return t[1].match(/\S+\./)?"ordered":"bullet"}QX.addConverter("delta",class Mrn{setQuillInstance(n){this.quillInstance=n}toHtml(){if(this.quillInstance)return this._isQuillEmpty()?"":this.quillInstance.getSemanticHTML(0,this.quillInstance.getLength()+1)}_isQuillEmpty(){var n=this.quillInstance.getContents();return 1===n.length()&&this._isDeltaEmpty(n)}_isDeltaEmpty(n){return n.reduce((e,i)=>{var{insert:r}=i;return-1!==r.indexOf("\n")})}});var NBe="dx-formdialog";var v8="markdown",eJ="htmlContent",jrn="ios"===pn.current().platform,VBe=Ru.inherit({_getDefaultOptions:function(){return se(this.callBase(),{focusStateEnabled:!0,valueType:"html",placeholder:"",toolbar:null,variables:null,mediaResizing:null,tableResizing:null,mentions:null,customizeModules:null,tableContextMenu:null,allowSoftLineBreak:!1,formDialogOptions:null,imageUpload:null,stylingMode:"outlined"})},_init:function(){this.callBase(),this._cleanCallback=Zi(),this._contentInitializedCallback=Zi()},_getAnonymousTemplateName:function(){return eJ},_initTemplates:function(){this._templateManager.addDefaultTemplates({[eJ]:new xh}),this.callBase()},_focusTarget:function(){return this._getContent()},_getContent:function(){return this.$element().find(".".concat("dx-htmleditor-content"))},_focusInHandler:function(t){var{relatedTarget:n}=t;this._shouldSkipFocusEvent(n)||(this._toggleFocusClass(!0,this.$element()),this.callBase.apply(this,arguments))},_focusOutHandler:function(t){var{relatedTarget:n}=t;this._shouldSkipFocusEvent(n)||(this._toggleFocusClass(!1,this.$element()),this.callBase.apply(this,arguments))},_shouldSkipFocusEvent:function(t){return U(t).hasClass("ql-clipboard")},_initMarkup:function(){this._$htmlContainer=U("<div>").addClass("dx-quill-container"),this.$element().attr("role","application").addClass("dx-htmleditor").wrapInner(this._$htmlContainer),this._renderStylingMode();var t=this._getTemplate(eJ);this._$templateResult=t&&t.render({container:kn(this._$htmlContainer),noModel:!0,transclude:!0}),this._renderSubmitElement(),this.callBase(),this._updateContainerMarkup()},_renderSubmitElement:function(){this._$submitElement=U("<textarea>").addClass("dx-htmleditor-submit-element").attr("hidden",!0).appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(t){this._getSubmitElement().val(t)},_getSubmitElement:function(){return this._$submitElement},_removeXSSVulnerableHtml:function(t){var n=U("<iframe>").css("display","none").attr({id:"xss-frame",sandbox:"allow-same-origin"}).appendTo("body"),o=n.get(0).contentWindow.document.body;o.innerHTML=t;var a=l=>{if(l.attributes)for(var u=0;u<l.attributes.length;u++){var f=l.attributes[u].name;f.startsWith("on")&&l.removeAttribute(f)}if(l.childNodes)for(var S=0;S<l.childNodes.length;S++)a(l.childNodes[S])};a(o),U(o).find("script").remove();var s=o.innerHTML;return n.remove(),s},_updateContainerMarkup:function(){var t=this.option("value");if(this._isMarkdownValue()&&(this._prepareMarkdownConverter(),t=this._markdownConverter.toHtml(t)),t){var n=this._removeXSSVulnerableHtml(t);this._$htmlContainer.html(n)}},_prepareMarkdownConverter:function(){var t=QX.getConverter("markdown");if(!t)throw Di.Error("E1051","markdown");this._markdownConverter=new t},_render:function(){this._prepareConverters(),this.callBase()},_prepareQuillRegistrator:function(){this._quillRegistrator||(this._quillRegistrator=new Trn)},_getRegistrator:function(){return this._prepareQuillRegistrator(),this._quillRegistrator},_prepareConverters:function(){if(!this._deltaConverter){var t=QX.getConverter("delta");t&&(this._deltaConverter=new t)}this.option("valueType")===v8&&!this._markdownConverter&&this._prepareMarkdownConverter()},_renderContentImpl:function(){this._contentRenderedDeferred=new et;var t=this._contentRenderedDeferred.promise();return this.callBase(),this._renderHtmlEditor(),this._renderFormDialog(),this._addKeyPressHandler(),t},_pointerMoveHandler:function(t){jrn&&t.stopPropagation()},_attachFocusEvents:function(){Zo(this.callBase.bind(this))},_addKeyPressHandler:function(){var t=kt("keydown","".concat(this.NAME,"TextChange"));Se.on(this._$htmlContainer,t,this._keyDownHandler.bind(this))},_keyDownHandler:function(t){this._saveValueChangeEvent(t)},_renderHtmlEditor:function(){var t=this.option("customizeModules"),n=this._getModulesConfig();Yt(t)&&t(n),this._quillInstance=this._getRegistrator().createEditor(this._$htmlContainer[0],{placeholder:this.option("placeholder"),readOnly:this.option("readOnly")||this.option("disabled"),modules:n,theme:"basic"}),this._deltaConverter.setQuillInstance(this._quillInstance),this._textChangeHandlerWithContext=this._textChangeHandler.bind(this),this._quillInstance.on("text-change",this._textChangeHandlerWithContext),this._renderScrollHandler(),this._hasTranscludedContent()?this._updateContentTask=ky(()=>{this._applyTranscludedContent()}):this._finalizeContentRendering()},_renderScrollHandler:function(){var t=this._getContent(),n=bLe(t);Se.on(t,kt(yd_init,this.NAME),n,Be),Se.on(t,kt(qn.move,this.NAME),this._pointerMoveHandler.bind(this))},_applyTranscludedContent:function(){var t=this.option("value");if(!Z(t)){var n=this._deltaConverter.toHtml(),e=this._quillInstance.clipboard.convert({html:n});if(e.ops.length)return void this._quillInstance.setContents(e)}this._finalizeContentRendering()},_hasTranscludedContent:function(){return this._$templateResult&&this._$templateResult.length},_getModulesConfig:function(){var n=(t=>{var n=t.import("delta");return(e,i)=>{var r=i.ops.slice(),o=r[0];o.insert=o.insert.replace(/^\s+/,"");var a=o.insert.match(/^(\S+)\s+/),s=a&&function Frn(t){var n=t.getAttribute("style");if(n){var e=n.replace(/\n+/g,"").match(/level(\d+)/);return e?e[1]-1:0}return!1}(e);return a&&!1!==s?(o.insert=o.insert.substring(a[0].length,o.insert.length),function Prn(t){var n=t[t.length-1];n.insert=n.insert.trim()}(r),r.push({insert:"\n",attributes:{list:Arn(a),indent:s}}),new n(r)):i}})(this._getRegistrator().getQuill());return se({},{table:!0,toolbar:this._getModuleConfigByOption("toolbar"),variables:this._getModuleConfigByOption("variables"),resizing:this._getModuleConfigByOption("mediaResizing"),tableResizing:this._getModuleConfigByOption("tableResizing"),tableContextMenu:this._getModuleConfigByOption("tableContextMenu"),imageUpload:this._getModuleConfigByOption("imageUpload"),imageCursor:this._getBaseModuleConfig(),mentions:this._getModuleConfigByOption("mentions"),uploader:{onDrop:i=>this._saveValueChangeEvent(Y2(i)),imageBlot:"extendedImage"},keyboard:{onKeydown:i=>this._saveValueChangeEvent(Y2(i))},clipboard:{onPaste:i=>this._saveValueChangeEvent(Y2(i)),onCut:i=>this._saveValueChangeEvent(Y2(i)),matchers:[["p.MsoListParagraphCxSpFirst",n],["p.MsoListParagraphCxSpMiddle",n],["p.MsoListParagraphCxSpLast",n]]},multiline:Boolean(this.option("allowSoftLineBreak"))},this._getCustomModules())},_getModuleConfigByOption:function(t){var n=this.option(t),e={};if(Z(n))return Array.isArray(n)?e[t]=n:e=n,se(this._getBaseModuleConfig(),e)},_getBaseModuleConfig:function(){return{editorInstance:this}},_getCustomModules:function(){var t={};return this._getRegistrator().getRegisteredModuleNames().forEach(e=>{t[e]=this._getBaseModuleConfig()}),t},_textChangeHandler:function(t,n,e){var i=this._deltaConverter.toHtml(),r=this._isMarkdownValue()?this._updateValueByType(v8,i):i,o=this.option("value");o!==r&&!this._isNullValueConverted(o,r)&&(this._isEditorUpdating=!0,this.option("value",r)),this._finalizeContentRendering()},_isNullValueConverted:function(t,n){return null===t&&""===n},_finalizeContentRendering:function(){this._contentRenderedDeferred&&(this.clearHistory(),this._contentInitializedCallback.fire(),this._contentRenderedDeferred.resolve(),this._contentRenderedDeferred=void 0)},_updateValueByType:function(t,n){var e=this._markdownConverter;if(Z(e)){var i=gr(n,this.option("value"));return t===v8?e.toMarkdown(i):e.toHtml(i)}},_isMarkdownValue:function(){return this.option("valueType")===v8},_resetEnabledState:function(){if(this._quillInstance){var t=!(this.option("readOnly")||this.option("disabled"));this._quillInstance.enable(t)}},_renderFormDialog:function(){var t=se(!0,{width:"auto",height:"auto",hideOnOutsideClick:!0},this.option("formDialogOptions"));this._formDialog=new class Nrn{constructor(n,e){this._editorInstance=n,this._popupUserConfig=e,this._renderPopup(),this._attachOptionChangedHandler()}_renderPopup(){var n=this._editorInstance,e=U("<div>").addClass(NBe).appendTo(n.$element()),i=this._getPopupConfig();return n._createComponent(e,dY,i)}_attachOptionChangedHandler(){var n;null===(n=this._popup)||void 0===n||n.on("optionChanged",e=>{var{name:i,value:r}=e;"title"===i&&this._updateFormLabel(r)})}_escKeyHandler(){this._popup.hide()}_addEscapeHandler(n){n.component.registerKeyHandler("escape",this._escKeyHandler.bind(this))}_isSmallScreen(){var n=Rn()?n5():null;return"phone"===pn.real().deviceType||"xs"===n}_getPopupConfig(){return se({onInitialized:n=>{this._popup=n.component,this._popup.on("hiding",()=>this.onHiding()),this._popup.on("shown",()=>{this._form.focus()})},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,fullScreen:this._isSmallScreen(),contentTemplate:n=>{var e=U("<div>").appendTo(n);this._renderForm(e,{onEditorEnterKey:i=>this.callAddButtonAction(i.event),customizeItem:i=>{"simple"===i.itemType&&(i.editorOptions=se(!0,{},i.editorOptions,{onInitialized:this._addEscapeHandler.bind(this)}))}})},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:ye.format("OK"),onClick:n=>this.callAddButtonAction(n.event)}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:ye.format("Cancel"),onClick:()=>{this._popup.hide()}}}],_wrapperClassExternal:NBe},this._popupUserConfig)}onHiding(){this.beforeAddButtonAction=void 0,this.deferred.reject()}callAddButtonAction(n){this.beforeAddButtonAction&&!this.beforeAddButtonAction()||this.hide(this._form.option("formData"),n)}_renderForm(n,e){n.addClass("dx-formdialog-form"),this._form=this._editorInstance._createComponent(n,vv,e),this._updateFormLabel()}_updateFormLabel(n){var e,i=n??this.popupOption("title");null===(e=this._form)||void 0===e||e.$element().attr("aria-label",i)}_getDefaultFormOptions(){return{colCount:1,width:"auto",labelLocation:io()?"top":"left"}}formOption(n,e){return this._form.option.apply(this._form,arguments)}show(n){if(!this._popup.option("visible")){this.deferred=new et;var e=se(this._getDefaultFormOptions(),n);return this._form.option(e),this._popup.show(),this.deferred.promise()}}hide(n,e){this.deferred.resolve(n,e),this._popup.hide()}popupOption(n,e){return this._popup.option.apply(this._popup,arguments)}}(this,t)},_getStylingModePrefix:function(){return"dx-htmleditor-"},_getQuillContainer:function(){return this._$htmlContainer},_prepareModuleOptions(t){var n,e=null===(n=t.fullName)||void 0===n?void 0:n.split("."),i=t.value;return 3===e.length&&(i={[e[2]]:i}),[e.length>=2?e[1]:t.name,i]},_moduleOptionChanged:function(t,n){var e,i=null===(e=this._quillInstance)||void 0===e?void 0:e.getModule(t);Boolean(i)?i.option(...this._prepareModuleOptions(n)):this._invalidate()},_optionChanged:function(t){switch(t.name){case"value":if(this._quillInstance)if(this._isEditorUpdating)this._isEditorUpdating=!1;else{var n=this._isMarkdownValue()?this._updateValueByType("HTML",t.value):t.value;this._updateHtmlContent(n)}else this._$htmlContainer.html(t.value);this._setSubmitValue(t.value),this.callBase(t);break;case"placeholder":case"variables":case"toolbar":case"mentions":case"customizeModules":case"allowSoftLineBreak":this._invalidate();break;case"tableResizing":this._moduleOptionChanged("tableResizing",t);break;case"valueType":this._prepareConverters();var e=this._updateValueByType(t.value);"html"===t.value&&this._quillInstance?this._updateHtmlContent(e):this.option("value",e);break;case"stylingMode":this._renderStylingMode();break;case"readOnly":case"disabled":this.callBase(t),this._resetEnabledState();break;case"formDialogOptions":this._renderFormDialog();break;case"tableContextMenu":this._moduleOptionChanged("tableContextMenu",t);break;case"mediaResizing":t.previousValue&&t.value?this._quillInstance.getModule("resizing").option(t.name,t.value):this._invalidate();break;case"width":this.callBase(t),this._repaintToolbar();break;case"imageUpload":this._moduleOptionChanged("imageUpload",t);break;default:this.callBase(t)}},_repaintToolbar:function(){var t=this._quillInstance.getModule("toolbar");t&&t.repaint()},_updateHtmlContent:function(t){var n=this._quillInstance.clipboard.convert({html:t});this._quillInstance.setContents(n)},_clean:function(){this._quillInstance&&(Se.off(this._getContent(),".".concat(this.NAME)),this._quillInstance.off("text-change",this._textChangeHandlerWithContext),this._cleanCallback.fire()),this._abortUpdateContentTask(),this._cleanCallback.empty(),this._contentInitializedCallback.empty(),this.callBase()},_abortUpdateContentTask:function(){this._updateContentTask&&(this._updateContentTask.abort(),this._updateContentTask=void 0)},_applyQuillMethod(t,n){if(this._quillInstance)return this._quillInstance[t].apply(this._quillInstance,n)},_applyQuillHistoryMethod(t){this._quillInstance&&this._quillInstance.history&&this._quillInstance.history[t]()},addCleanCallback(t){this._cleanCallback.add(t)},addContentInitializedCallback(t){this._contentInitializedCallback.add(t)},register:function(t){this._getRegistrator().registerModules(t),this._quillInstance&&this.repaint()},get:function(t){return this._getRegistrator().getQuill().import(t)},getModule:function(t){return this._applyQuillMethod("getModule",arguments)},getQuillInstance:function(){return this._quillInstance},getSelection:function(t){return this._applyQuillMethod("getSelection",arguments)},setSelection:function(t,n){this._applyQuillMethod("setSelection",arguments)},getText:function(t,n){return this._applyQuillMethod("getText",arguments)},format:function(t,n){this._applyQuillMethod("format",arguments)},formatText:function(t,n,e,i){this._applyQuillMethod("formatText",arguments)},formatLine:function(t,n,e,i){this._applyQuillMethod("formatLine",arguments)},getFormat:function(t,n){return this._applyQuillMethod("getFormat",arguments)},removeFormat:function(t,n){return this._applyQuillMethod("removeFormat",arguments)},clearHistory:function(){this._applyQuillHistoryMethod("clear")},undo:function(){this._applyQuillHistoryMethod("undo")},redo:function(){this._applyQuillHistoryMethod("redo")},getLength:function(){return this._applyQuillMethod("getLength")},getBounds:function(t,n){return this._applyQuillMethod("getBounds",arguments)},delete:function(t,n){this._applyQuillMethod("deleteText",arguments)},insertText:function(t,n,e){this._applyQuillMethod("insertText",arguments)},insertEmbed:function(t,n,e){this._applyQuillMethod("insertEmbed",arguments)},showFormDialog:function(t){return this._formDialog.show(t)},formDialogOption:function(t,n){return this._formDialog.popupOption.apply(this._formDialog,arguments)},focus:function(){this.callBase(),this._applyQuillMethod("focus")},blur:function(){this._applyQuillMethod("blur")}});On("dxHtmlEditor",VBe);const Krn=VBe,$rn=["*"],qrn={provide:Fo,useExisting:At(()=>HBe),multi:!0};let HBe=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowSoftLineBreakChange"},{emit:"customizeModulesChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"imageUploadChange"},{emit:"isValidChange"},{emit:"mediaResizingChange"},{emit:"mentionsChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"tableContextMenuChange"},{emit:"tableResizingChange"},{emit:"toolbarChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueTypeChange"},{emit:"variablesChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get allowSoftLineBreak(){return this._getOption("allowSoftLineBreak")}set allowSoftLineBreak(e){this._setOption("allowSoftLineBreak",e)}get customizeModules(){return this._getOption("customizeModules")}set customizeModules(e){this._setOption("customizeModules",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get imageUpload(){return this._getOption("imageUpload")}set imageUpload(e){this._setOption("imageUpload",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get mediaResizing(){return this._getOption("mediaResizing")}set mediaResizing(e){this._setOption("mediaResizing",e)}get mentions(){return this._getOption("mentions")}set mentions(e){this._setOption("mentions",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get tableContextMenu(){return this._getOption("tableContextMenu")}set tableContextMenu(e){this._setOption("tableContextMenu",e)}get tableResizing(){return this._getOption("tableResizing")}set tableResizing(e){this._setOption("tableResizing",e)}get toolbar(){return this._getOption("toolbar")}set toolbar(e){this._setOption("toolbar",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueType(){return this._getOption("valueType")}set valueType(e){this._setOption("valueType",e)}get variables(){return this._getOption("variables")}set variables(e){this._setOption("variables",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get mentionsChildren(){return this._getOption("mentions")}set mentionsChildren(e){this.setChildren("mentions",e)}_createInstance(e,i){return new Krn(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("mentions",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("mentions"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-html-editor"]],contentQueries:function(e,i,r){if(1&e&&In(r,Vbt,4),2&e){let o;yn(o=Cn())&&(i.mentionsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowSoftLineBreak:"allowSoftLineBreak",customizeModules:"customizeModules",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",imageUpload:"imageUpload",isValid:"isValid",mediaResizing:"mediaResizing",mentions:"mentions",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",stylingMode:"stylingMode",tabIndex:"tabIndex",tableContextMenu:"tableContextMenu",tableResizing:"tableResizing",toolbar:"toolbar",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueType:"valueType",variables:"variables",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowSoftLineBreakChange:"allowSoftLineBreakChange",customizeModulesChange:"customizeModulesChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",imageUploadChange:"imageUploadChange",isValidChange:"isValidChange",mediaResizingChange:"mediaResizingChange",mentionsChange:"mentionsChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",tableContextMenuChange:"tableContextMenuChange",tableResizingChange:"tableResizingChange",toolbarChange:"toolbarChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueTypeChange:"valueTypeChange",variablesChange:"variablesChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,qrn,ue,Sn]),qe,hi],ngContentSelectors:$rn,decls:1,vars:0,template:function(e,i){1&e&&(nl(),As(0))},encapsulation:2}),t})(),zBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[O_e,v_e,Tg,z_e,U_e,vve,$i,yve,Vg,Ove,bi,tn,mi],O_e,v_e,Tg,z_e,U_e,vve,$i,yve,Vg,Ove,tn]}),t})();var _f=Number,y8=I4.inherit({_move:function(){var t=this._actualPosition-this._zeroPosition;this._rootElement.move(this.vertical?0:t,this.vertical?t:0),this._trackerElement&&this._trackerElement.move(this.vertical?0:t,this.vertical?t:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var n,e,i,r,t=this._options,o=t.width/2,a=t.length/2,s=this._zeroPosition;return o>10||(o=10),a>10||(a=10),this.vertical?(n=t.x-a,e=t.x+a,i=s+o,r=s-o):(n=s-o,e=s+o,i=t.y+a,r=t.y-a),{points:[n,i,n,r,e,r,e,i]}},_render:function(){this._zeroPosition=this._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(t){var n=this.vertical?t.x:t.y;return{min:n-this._options.length/2,max:n+this._options.length/2}},getTooltipParameters:function(){var t=this._options,n=this._actualPosition,e={x:n,y:n,value:this._currentValue,color:t.color,offset:t.width/2};return this.vertical?e.x=t.x:e.y=t.y,e}}),Yrn=y8.inherit({_render:function(){var n,e,i,r,t=this._options;this.callBase();var o=this._zeroPosition;this.vertical?(n=t.x-t.length/2,e=t.x+t.length/2,i=o+t.width/2,r=o-t.width/2):(n=o-t.width/2,e=o+t.width/2,i=t.y+t.length/2,r=t.y-t.length/2),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[n,i,n,r,e,r,e,i]})}}),Zrn=y8.inherit({_render:function(){var n,e,i,r,t=this._options;this.callBase(),this.vertical?(n=t.x,e=this._zeroPosition,i=t.length/2||0,r=t.width/2||0):(n=this._zeroPosition,e=t.y,i=t.width/2||0,r=t.length/2||0),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[n-i,e,n,e-r,n+i,e,n,e+r]})}}),Xrn=y8.inherit({_render:function(){var n,e,t=this._options;this.callBase(),this.vertical?(n=t.x,e=this._zeroPosition):(n=this._zeroPosition,e=t.y);var i=t.length/2||0;this._element=this._element||this._renderer.circle().append(this._rootElement),this._element.attr({cx:n,cy:e,r:i})}}),Jrn=y8.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===Ri(this._options.horizontalOrientation):"bottom"===Ri(this._options.verticalOrientation),this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_render:function(){var n,e,i,r,t=this._options,o={stroke:"none","stroke-width":0,"stroke-linecap":"square"};this.callBase(),this.vertical?(i=this._zeroPosition,e=(n=t.x)+_f(this._inverted?t.length:-t.length),o.points=[n,i,e,i-t.width/2,e,i+t.width/2]):(n=this._zeroPosition,r=(i=t.y)+_f(this._inverted?t.length:-t.length),o.points=[n,i,n-t.width/2,r,n+t.width/2,r]),t.space>0&&(o["stroke-width"]=Math.min(t.space,t.width/4)||0,o.stroke=o["stroke-width"]>0&&t.containerBackgroundColor||"none"),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr(o).sharp()},_getTrackerSettings:function(){var i,r,o,a,t=this._options,n=t.width/2,e=_f(t.length);return n>10||(n=10),e>20||(e=20),{points:this.vertical?[i=t.x,o=this._zeroPosition+n,r=i+(this._inverted?e:-e),o,r,a=this._zeroPosition-n,i,a]:[i=this._zeroPosition-n,o=t.y,i,a=o+(this._inverted?e:-e),r=this._zeroPosition+n,a,r,o]}},measure:function(t){var e,i,n=_f(this._options.length);return this.vertical?(e=i=t.x,this._inverted?i=e+n:e=i-n):(e=i=t.y,this._inverted?i=e+n:e=i-n),{min:e,max:i}},getTooltipParameters:function(){var t=this._options,n=(this._inverted?t.length:-t.length)/2,e=this.callBase();return this.vertical?e.x+=n:e.y+=n,e.offset=t.length/2,e}}),Qrn=Y1e.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===Ri(this._options.horizontalOrientation):"bottom"===Ri(this._options.verticalOrientation),!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var e,t=this._actualPosition,n=this._actualPosition;return this.vertical?(t=this._options.x,e=this._inverted?"top-left":"top-right"):(n=this._options.y,e=this._inverted?"right-top":"right-bottom"),{x:t,y:n,type:e}},measure:function(t){var n,e,i=_f(this._options.arrowLength)||0;return this._measureText(),this.vertical?this._inverted?(n=t.x,e=t.x+i+this._textFullWidth):(n=t.x-i-this._textFullWidth,e=t.x):this._inverted?(n=t.y,e=t.y+i+this._textFullHeight):(n=t.y-i-this._textFullHeight,e=t.y),{min:n,max:e,indent:0}},_correctCloudType(t,n,e){var{x:i,y:r}=n,{width:o,height:a}=e;return"right-top"===t||"right-bottom"===t?i-o<this._translator.getCodomainStart()&&(t="left-".concat(t.split("-")[1])):("top-left"===t||"top-right"===t)&&r+a>this._translator.getCodomainStart()&&(t="bottom-".concat(t.split("-")[1])),t}}),UBe=Z1e.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===Ri(this._options.horizontalOrientation):"bottom"===Ri(this._options.verticalOrientation),this._options.size>0},_isVisible:function(){return!0},_createBarItem:function(){return this._renderer.path([],"area").append(this._rootElement)},_createTracker:function(){return this._renderer.path([],"area")},_setBarSides:function(){var e,i,t=this._options,n=_f(t.size);this.vertical?this._inverted?(e=t.x,i=t.x+n):(e=t.x-n,i=t.x):this._inverted?(e=t.y,i=t.y+n):(e=t.y-n,i=t.y),this._minSide=e,this._maxSide=i,this._minBound=e,this._maxBound=i},_getSpace:function(){var t=this._options;return t.space>0?_f(t.space):0},_isTextVisible:function(){var t=this._options.text||{};return t.indent>0||t.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var t=_f(this._options.text.indent);t>0?(this._lineStart=this._maxSide,this._lineEnd=this._maxSide+t,this._textPosition=this._lineEnd+(this.vertical?2:this._textHeight/2),this._maxBound=this._textPosition+(this.vertical?this._textWidth:this._textHeight/2)):t<0&&(this._lineStart=this._minSide,this._lineEnd=this._minSide+t,this._textPosition=this._lineEnd-(this.vertical?2:this._textHeight/2),this._minBound=this._textPosition-(this.vertical?this._textWidth:this._textHeight/2))},_getPositions:function(){var o,a,s,l,t=this._startPosition,n=this._endPosition,e=this._space,i=this._basePosition,r=this._actualPosition;return t<n?(i<r?(o=i,a=r):(o=r,a=i),s=o-e,l=a+e):(i>r?(o=i,a=r):(o=r,a=i),s=o+e,l=a-e),{start:t,end:n,main1:o,main2:a,back1:s,back2:l}},_buildItemSettings:function(t,n){var e=this._minSide,i=this._maxSide;return{points:this.vertical?[e,t,e,n,i,n,i,t]:[t,e,t,i,n,i,n,e]}},_updateTextPosition:function(){this._text.attr(this.vertical?{x:this._textPosition,y:this._actualPosition+this._textVerticalOffset}:{x:this._actualPosition,y:this._textPosition+this._textVerticalOffset})},_updateLinePosition:function(){var n,e,i,t=this._actualPosition;this.vertical?(this._basePosition>=t?(n=t,e=t+2):(n=t-2,e=t),i=[this._lineStart,n,this._lineStart,e,this._lineEnd,e,this._lineEnd,n]):(this._basePosition<=t?(n=t-2,e=t):(n=t,e=t+2),i=[n,this._lineStart,n,this._lineEnd,e,this._lineEnd,e,this._lineStart]),this._line.attr({points:i}).sharp()},_getTooltipPosition:function(){var t=(this._minSide+this._maxSide)/2,n=(this._basePosition+this._actualPosition)/2;return this.vertical?{x:t,y:n}:{x:n,y:t}},measure:function(t){var i,r,o,n=_f(this._options.size),e=_f(this._options.text.indent);return this._measureText(),this.vertical?(i=r=t.x,this._inverted?r+=n:i-=n,this._hasText&&(o=this._textHeight/2,e>0&&(r+=e+this._textWidth),e<0&&(i+=e-this._textWidth))):(i=r=t.y,this._inverted?r+=n:i-=n,this._hasText&&(o=this._textWidth/2,e>0&&(r+=e+this._textHeight),e<0&&(i+=e-this._textHeight))),{min:i,max:r,indent:o}}}),tJ=Number,eon=Math.max,ton=rSe.inherit({_processOptions:function(){if(this.vertical=this._options.vertical,this._inner=this._outer=0,this.vertical)switch(Ri(this._options.horizontalOrientation)){case"left":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}else switch(Ri(this._options.verticalOrientation)){case"top":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}},_isVisible:function(){return!0},_createRange:function(t,n){var e=this._inner,i=this._outer,r=this._translator.translate(t.start),o=this._translator.translate(t.end),s=n.x,l=n.y,u=t.startWidth,f=t.endWidth;return this._renderer.path(this.vertical?[s-u*e,r,s-f*e,o,s+f*i,o,s+u*i,r]:[r,l+u*i,r,l-u*e,o,l-f*e,o,l+f*i],"area")},measure:function(t){var e,n={};return n.min=n.max=t[this.vertical?"x":"y"],e=tJ(e=this._options.width)||eon(tJ(e.start),tJ(e.end)),n.min-=this._inner*e,n.max+=this._outer*e,n}});const non=ton;var WBe=Math.max,ion=Math.min,C8=Math.round,mM=U1e.inherit({_rootClass:"dxg-linear-gauge",_factoryMethods:{rangeContainer:"createLinearRangeContainer",indicator:"createLinearIndicator"},_gridSpacingFactor:25,_scaleTypes:{type:"xyAxes",drawingType:"linear"},_getTicksOrientation:function(t){return t.isHorizontal?t.verticalOrientation:t.horizontalOrientation},_getThemeManagerOptions(){var t=this.callBase.apply(this,arguments);return t.subTheme="_linear",t},_getInvertedState(){return!this._area.vertical&&this.option("rtlEnabled")},_prepareScaleSettings:function(){var t=this.callBase();return t.inverted=this._getInvertedState(),t},_updateScaleTickIndent:function(t){var s,l,n=t.label.indentFromTick,e=t.tick.length,i=this._scale.measureLabels(se({},this._canvas)),o=n>0;t.isHorizontal?(l=e*(o?{center:.5,top:0,bottom:1}:{center:.5,top:1,bottom:0})[t.verticalOrientation],s=i.y):(l=e*(o?{center:.5,left:0,right:1}:{center:.5,left:1,right:0})[t.horizontalOrientation],s=-i.width),t.label.indentFromAxis=-n+(o?-l+s:l-(t.isHorizontal?i.height+i.y:0)),this._scale.updateOptions(t)},_shiftScale:function(t,n){var e=se({},this._canvas),i=n.isHorizontal,r=this._scale;e[i?"left":"top"]=this._area[i?"startCoord":"endCoord"],e[i?"right":"bottom"]=e[i?"width":"height"]-this._area[i?"endCoord":"startCoord"],r.draw(e),r.shift({left:-t.x,top:-t.y})},_setupCodomain:function(){var n="vertical"===Ri((this.option("geometry")||{}).orientation);this._area={vertical:n,x:0,y:0,startCoord:-100,endCoord:100},this._rangeContainer.vertical=n,this._translator.setInverted(this._getInvertedState()),this._translator.setCodomain(-100,100)},_getScaleLayoutValue:function(){return this._area[this._area.vertical?"x":"y"]},_getTicksCoefficients:function(t){var n={inner:0,outer:1};return this._area.vertical?"left"===t.horizontalOrientation?(n.inner=1,n.outer=0):"center"===t.horizontalOrientation&&(n.inner=n.outer=.5):"top"===t.verticalOrientation?(n.inner=1,n.outer=0):"center"===t.verticalOrientation&&(n.inner=n.outer=.5),n},_correctScaleIndents:function(t,n,e){var i=this._area.vertical;n>=0?t.max+=n+e[i?"width":"height"]:t.min-=-n+e[i?"width":"height"],t.indent=e[i?"height":"width"]/2},_measureMainElements:function(t,n){var e=this._area.x,i=this._area.y,r=1e3,o=0,a=0;return we(t.concat(this._scale),function(l,u){var f=u.measure?u.measure({x:e+u.getOffset(),y:i+u.getOffset()}):n;void 0!==f.max&&(o=WBe(o,f.max)),void 0!==f.min&&(r=ion(r,f.min)),f.indent>0&&(a=WBe(a,f.indent))}),{minBound:r,maxBound:o,indent:a}},_applyMainLayout:function(t,n){var r,o,e=this._measureMainElements(t,n),i=this._area;i.vertical?(o=((r=GBe(this._innerRect,{width:e.maxBound-e.minBound})).left+r.right)/2-(e.minBound+e.maxBound)/2,i.startCoord=r.bottom-e.indent,i.endCoord=r.top+e.indent,i.x=C8(i.x+o)):(o=((r=GBe(this._innerRect,{height:e.maxBound-e.minBound})).top+r.bottom)/2-(e.minBound+e.maxBound)/2,i.startCoord=r.left+e.indent,i.endCoord=r.right-e.indent,i.y=C8(i.y+o)),this._translator.setCodomain(i.startCoord,i.endCoord),this._innerRect=r},_getElementLayout:function(t){return{x:C8(this._area.x+t),y:C8(this._area.y+t)}},_getApproximateScreenRange:function(){var t=this._area,n=t.vertical?this._canvas.height:this._canvas.width;return n>t.totalSize&&(n=t.totalSize),.8*n},_getDefaultSize:function(){return"vertical"===(this.option("geometry")||{}).orientation?{width:100,height:300}:{width:300,height:100}},_factory:sg(Ep.prototype._factory)});function GBe(t,n,e){var r,i=se({},t);return e=e||{},n&&(i.left+=e.left||0,i.right-=e.right||0,i.top+=e.top||0,i.bottom-=e.bottom||0,n.width>0&&(r=(i.right-i.left-n.width)/2)>0&&(i.left+=r,i.right-=r),n.height>0&&(r=(i.bottom-i.top-n.height)/2)>0&&(i.top+=r,i.bottom-=r)),i}var Iv=mM.prototype._factory.indicators={};mM.prototype._factory.createIndicator=G1e(Iv),Iv._default=UBe,Iv.rectangle=Yrn,Iv.rhombus=Zrn,Iv.circle=Xrn,Iv.trianglemarker=Jrn,Iv.textcloud=Qrn,Iv.rangebar=UBe,mM.prototype._factory.RangeContainer=non,On("dxLinearGauge",mM);let jBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,aa,$w,ms,Oa,Ta,eL,QR,d1,n1,Lo,$r,Lg,Ng,Ia,CL,bL,vs,_s,$o,Ea,ja,SL,bi,tn,mi],vr,aa,$w,ms,Oa,Ta,eL,QR,d1,n1,Lo,$r,Lg,Ng,Ia,CL,bL,vs,_s,$o,Ea,ja,SL,tn]}),t})();var KBe="dx-list-reorder-handle";T_("reorder","default",ab.inherit({_init:function(){var t=this._list;this._groupedEnabled=this._list.option("grouped"),this._lockedDrag=!1;var n=this._groupedEnabled?"> .dx-list-group > .dx-list-group-body > .dx-list-item":"> .dx-list-item";this._sortable=t._createComponent(t._scrollView.content(),$Z,se({component:t,contentTemplate:null,allowReordering:!1,filter:n,container:t.$element(),dragDirection:t.option("itemDragging.group")?"both":"vertical",handle:".".concat(KBe),dragTemplate:this._dragTemplate,onDragStart:this._dragStartHandler.bind(this),onDragChange:this._dragChangeHandler.bind(this),onReorder:this._reorderHandler.bind(this)},t.option("itemDragging")))},afterRender:function(){this._sortable.update()},_dragTemplate:function(t){var n=U(t.itemElement).clone().addClass("dx-list-item-ghost-reordering").addClass("dx-state-hover");return oa(n,wn(t.itemElement)),n},_dragStartHandler:function(t){this._lockedDrag&&(t.cancel=!0)},_dragChangeHandler:function(t){!this._groupedEnabled||this._sameParent(t.fromIndex,t.toIndex)||(t.cancel=!0)},_sameParent:function(t,n){var e=this._list.getItemElementByFlatIndex(t);return this._list.getItemElementByFlatIndex(n).parent().get(0)===e.parent().get(0)},_reorderHandler:function(t){var n=this._list.getItemElementByFlatIndex(t.toIndex);this._list.reorderItem(U(t.itemElement),n)},afterBag:function(t){var n=U("<div>").addClass(KBe);Se.on(n,"dxpointerdown",e=>{this._lockedDrag=!pp(e)}),Se.on(n,"dxhold",{timeout:30},e=>{e.cancel=!0,this._lockedDrag=!1}),t.$container.addClass("dx-list-reorder-handle-container").append(n)}}));const lon=gC;let nJ=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"groupRendered",emit:"onGroupRendered"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemDeleted",emit:"onItemDeleted"},{subscribe:"itemDeleting",emit:"onItemDeleting"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"itemReordered",emit:"onItemReordered"},{subscribe:"itemSwipe",emit:"onItemSwipe"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"pageLoading",emit:"onPageLoading"},{subscribe:"pullRefresh",emit:"onPullRefresh"},{subscribe:"scroll",emit:"onScroll"},{subscribe:"selectAllValueChanged",emit:"onSelectAllValueChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowItemDeletingChange"},{emit:"bounceEnabledChange"},{emit:"collapsibleGroupsChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"indicateLoadingChange"},{emit:"itemDeleteModeChange"},{emit:"itemDraggingChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"keyExprChange"},{emit:"menuItemsChange"},{emit:"menuModeChange"},{emit:"nextButtonTextChange"},{emit:"noDataTextChange"},{emit:"pageLoadingTextChange"},{emit:"pageLoadModeChange"},{emit:"pulledDownTextChange"},{emit:"pullingDownTextChange"},{emit:"pullRefreshEnabledChange"},{emit:"refreshingTextChange"},{emit:"repaintChangesOnlyChange"},{emit:"rtlEnabledChange"},{emit:"scrollByContentChange"},{emit:"scrollByThumbChange"},{emit:"scrollingEnabledChange"},{emit:"searchEditorOptionsChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"searchValueChange"},{emit:"selectAllModeChange"},{emit:"selectAllTextChange"},{emit:"selectedItemKeysChange"},{emit:"selectedItemsChange"},{emit:"selectionModeChange"},{emit:"showScrollbarChange"},{emit:"showSelectionControlsChange"},{emit:"tabIndexChange"},{emit:"useNativeScrollingChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get allowItemDeleting(){return this._getOption("allowItemDeleting")}set allowItemDeleting(e){this._setOption("allowItemDeleting",e)}get bounceEnabled(){return this._getOption("bounceEnabled")}set bounceEnabled(e){this._setOption("bounceEnabled",e)}get collapsibleGroups(){return this._getOption("collapsibleGroups")}set collapsibleGroups(e){this._setOption("collapsibleGroups",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get grouped(){return this._getOption("grouped")}set grouped(e){this._setOption("grouped",e)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(e){this._setOption("groupTemplate",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get indicateLoading(){return this._getOption("indicateLoading")}set indicateLoading(e){this._setOption("indicateLoading",e)}get itemDeleteMode(){return this._getOption("itemDeleteMode")}set itemDeleteMode(e){this._setOption("itemDeleteMode",e)}get itemDragging(){return this._getOption("itemDragging")}set itemDragging(e){this._setOption("itemDragging",e)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(e){this._setOption("itemHoldTimeout",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(e){this._setOption("keyExpr",e)}get menuItems(){return this._getOption("menuItems")}set menuItems(e){this._setOption("menuItems",e)}get menuMode(){return this._getOption("menuMode")}set menuMode(e){this._setOption("menuMode",e)}get nextButtonText(){return this._getOption("nextButtonText")}set nextButtonText(e){this._setOption("nextButtonText",e)}get noDataText(){return this._getOption("noDataText")}set noDataText(e){this._setOption("noDataText",e)}get pageLoadingText(){return this._getOption("pageLoadingText")}set pageLoadingText(e){this._setOption("pageLoadingText",e)}get pageLoadMode(){return this._getOption("pageLoadMode")}set pageLoadMode(e){this._setOption("pageLoadMode",e)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(e){this._setOption("pulledDownText",e)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(e){this._setOption("pullingDownText",e)}get pullRefreshEnabled(){return this._getOption("pullRefreshEnabled")}set pullRefreshEnabled(e){this._setOption("pullRefreshEnabled",e)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(e){this._setOption("refreshingText",e)}get repaintChangesOnly(){return this._getOption("repaintChangesOnly")}set repaintChangesOnly(e){this._setOption("repaintChangesOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(e){this._setOption("scrollByContent",e)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(e){this._setOption("scrollByThumb",e)}get scrollingEnabled(){return this._getOption("scrollingEnabled")}set scrollingEnabled(e){this._setOption("scrollingEnabled",e)}get searchEditorOptions(){return this._getOption("searchEditorOptions")}set searchEditorOptions(e){this._setOption("searchEditorOptions",e)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(e){this._setOption("searchEnabled",e)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(e){this._setOption("searchExpr",e)}get searchMode(){return this._getOption("searchMode")}set searchMode(e){this._setOption("searchMode",e)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(e){this._setOption("searchTimeout",e)}get searchValue(){return this._getOption("searchValue")}set searchValue(e){this._setOption("searchValue",e)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(e){this._setOption("selectAllMode",e)}get selectAllText(){return this._getOption("selectAllText")}set selectAllText(e){this._setOption("selectAllText",e)}get selectedItemKeys(){return this._getOption("selectedItemKeys")}set selectedItemKeys(e){this._setOption("selectedItemKeys",e)}get selectedItems(){return this._getOption("selectedItems")}set selectedItems(e){this._setOption("selectedItems",e)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(e){this._setOption("selectionMode",e)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(e){this._setOption("showScrollbar",e)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(e){this._setOption("showSelectionControls",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get useNativeScrolling(){return this._getOption("useNativeScrolling")}set useNativeScrolling(e){this._setOption("useNativeScrolling",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}get menuItemsChildren(){return this._getOption("menuItems")}set menuItemsChildren(e){this.setChildren("menuItems",e)}_createInstance(e,i){return new lon(e,i)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("menuItems",e),this.setupChanges("searchExpr",e),this.setupChanges("selectedItemKeys",e),this.setupChanges("selectedItems",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("menuItems"),this._idh.doCheck("searchExpr"),this._idh.doCheck("selectedItemKeys"),this._idh.doCheck("selectedItems"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-list"]],contentQueries:function(e,i,r){if(1&e&&(In(r,So,4),In(r,Hbt,4)),2&e){let o;yn(o=Cn())&&(i.itemsChildren=o),yn(o=Cn())&&(i.menuItemsChildren=o)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowItemDeleting:"allowItemDeleting",bounceEnabled:"bounceEnabled",collapsibleGroups:"collapsibleGroups",dataSource:"dataSource",disabled:"disabled",displayExpr:"displayExpr",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",indicateLoading:"indicateLoading",itemDeleteMode:"itemDeleteMode",itemDragging:"itemDragging",itemHoldTimeout:"itemHoldTimeout",items:"items",itemTemplate:"itemTemplate",keyExpr:"keyExpr",menuItems:"menuItems",menuMode:"menuMode",nextButtonText:"nextButtonText",noDataText:"noDataText",pageLoadingText:"pageLoadingText",pageLoadMode:"pageLoadMode",pulledDownText:"pulledDownText",pullingDownText:"pullingDownText",pullRefreshEnabled:"pullRefreshEnabled",refreshingText:"refreshingText",repaintChangesOnly:"repaintChangesOnly",rtlEnabled:"rtlEnabled",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",scrollingEnabled:"scrollingEnabled",searchEditorOptions:"searchEditorOptions",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",searchValue:"searchValue",selectAllMode:"selectAllMode",selectAllText:"selectAllText",selectedItemKeys:"selectedItemKeys",selectedItems:"selectedItems",selectionMode:"selectionMode",showScrollbar:"showScrollbar",showSelectionControls:"showSelectionControls",tabIndex:"tabIndex",useNativeScrolling:"useNativeScrolling",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onGroupRendered:"onGroupRendered",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemDeleted:"onItemDeleted",onItemDeleting:"onItemDeleting",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onItemReordered:"onItemReordered",onItemSwipe:"onItemSwipe",onOptionChanged:"onOptionChanged",onPageLoading:"onPageLoading",onPullRefresh:"onPullRefresh",onScroll:"onScroll",onSelectAllValueChanged:"onSelectAllValueChanged",onSelectionChanged:"onSelectionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowItemDeletingChange:"allowItemDeletingChange",bounceEnabledChange:"bounceEnabledChange",collapsibleGroupsChange:"collapsibleGroupsChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",indicateLoadingChange:"indicateLoadingChange",itemDeleteModeChange:"itemDeleteModeChange",itemDraggingChange:"itemDraggingChange",itemHoldTimeoutChange:"itemHoldTimeoutChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",keyExprChange:"keyExprChange",menuItemsChange:"menuItemsChange",menuModeChange:"menuModeChange",nextButtonTextChange:"nextButtonTextChange",noDataTextChange:"noDataTextChange",pageLoadingTextChange:"pageLoadingTextChange",pageLoadModeChange:"pageLoadModeChange",pulledDownTextChange:"pulledDownTextChange",pullingDownTextChange:"pullingDownTextChange",pullRefreshEnabledChange:"pullRefreshEnabledChange",refreshingTextChange:"refreshingTextChange",repaintChangesOnlyChange:"repaintChangesOnlyChange",rtlEnabledChange:"rtlEnabledChange",scrollByContentChange:"scrollByContentChange",scrollByThumbChange:"scrollByThumbChange",scrollingEnabledChange:"scrollingEnabledChange",searchEditorOptionsChange:"searchEditorOptionsChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",searchValueChange:"searchValueChange",selectAllModeChange:"selectAllModeChange",selectAllTextChange:"selectAllTextChange",selectedItemKeysChange:"selectedItemKeysChange",selectedItemsChange:"selectedItemsChange",selectionModeChange:"selectionModeChange",showScrollbarChange:"showScrollbarChange",showSelectionControlsChange:"showSelectionControlsChange",tabIndexChange:"tabIndexChange",useNativeScrollingChange:"useNativeScrollingChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[ot([Zt,nn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),$Be=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[I_e,Mg,$i,W_e,aL,Wa,Us,bi,tn,mi],I_e,Mg,$i,W_e,aL,Wa,Us,tn]}),t})(),qBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})(),YBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,bi,tn,mi],vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,tn]}),t})();var WS=Fn(),ZBe="dx-lookup-field-wrapper",XBe="dx-list-item-selected",JBe=aj.inherit({_supportedKeys:function(){return se(this.callBase(),{space:function(t){t.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_getDefaultOptions:function(){return se(this.callBase(),{placeholder:ye.format("Select"),searchPlaceholder:ye.format("Search"),searchEnabled:!0,searchStartEvent:"input change keyup",cleanSearchOnOpening:!0,showCancelButton:!0,showClearButton:!1,clearButtonText:ye.format("Clear"),applyButtonText:ye.format("OK"),pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:ye.format("dxList-pullingDownText"),pulledDownText:ye.format("dxList-pulledDownText"),refreshingText:ye.format("dxList-refreshingText"),pageLoadingText:ye.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:ye.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,focusStateEnabled:!1,dropDownOptions:{showTitle:!0,width:function(){return.8*wn(WS)},height:function(){return.8*Ln(WS)},shading:!0,hideOnOutsideClick:!1,position:void 0,animation:{},title:"",titleTemplate:"title",onTitleRendered:null,fullScreen:!1},dropDownCentered:!1,_scrollToSelectedItemEnabled:!1,useHiddenSubmitElement:!0})},_setDeprecatedOptions(){this.callBase(),se(this._deprecatedOptions,{valueChangeEvent:{since:"22.1",alias:"searchStartEvent"}})},_defaultOptionsRules:function(){var t=lu();return this.callBase().concat([{device:function(){return!xg},options:{useNativeScrolling:!1}},{device:function(n){return!pn.isSimulator()&&"desktop"===pn.real().deviceType&&"generic"===n.platform},options:{usePopover:!0,dropDownOptions:{height:"auto"}}},{device:{platform:"ios",phone:!0},options:{dropDownOptions:{fullScreen:!0}}},{device:{platform:"ios",tablet:!0},options:{dropDownOptions:{width:function(){return.4*Math.min(wn(WS),Ln(WS))},height:"auto"},usePopover:!0}},{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return io(t)},options:{usePopover:!1,searchEnabled:!1,showCancelButton:!1,dropDownCentered:!0,_scrollToSelectedItemEnabled:!0,dropDownOptions:{hideOnOutsideClick:!0,_ignoreFunctionValueDeprecation:!0,width:()=>GT(this.$element()),height:function(){return this._getPopupHeight()}.bind(this),showTitle:!1,shading:!1}}}])},_init:function(){this.callBase(),this._initActions()},_initActions(){this.callBase(),this._initScrollAction(),this._initPageLoadingAction(),this._initPullRefreshAction()},_initPageLoadingAction:function(){this._pageLoadingAction=this._createActionByOption("onPageLoading")},_initPullRefreshAction:function(){this._pullRefreshAction=this._createActionByOption("onPullRefresh")},_initScrollAction:function(){this._scrollAction=this._createActionByOption("onScroll")},_scrollHandler:function(t){this._scrollAction(t)},_pullRefreshHandler:function(t){this._pullRefreshAction(t)},_pageLoadingHandler:function(t){this._pageLoadingAction(t)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({group:new hT("group"),title:new hT("title")})},_initMarkup:function(){this.$element().addClass("dx-lookup").toggleClass("dx-lookup-popover-mode",this.option("usePopover")),this.callBase()},_inputWrapper:function(){return this.$element().find("."+ZBe)},_dataSourceOptions:function(){return se(this.callBase(),{paginate:!0})},_fireContentReadyAction:Be,_popupWrapperClass:function(){return""},_renderInput:function(){var t=this._createAction(()=>{this._toggleOpenState()});this._$field=U("<div>").addClass("dx-lookup-field"),Se.on(this._$field,kt(Vi,this.NAME),e=>{t({event:e})});var n=U("<div>").addClass("dx-lookup-arrow");this._$fieldWrapper=U("<div>").addClass(ZBe).append(this._$field).append(n).appendTo(this.$element())},_getInputContainer(){return this._$fieldWrapper},_renderField:function(){var t=this._getTemplateByOption("fieldTemplate");if(t&&this.option("fieldTemplate"))this._renderFieldTemplate(t);else{var n=this.option("displayValue");this._updateField(n),this.$element().toggleClass("dx-lookup-empty",!this.option("selectedItem"))}},_getLabelContainer:function(){return this._$field},_renderDisplayText:function(t){this._input().length?this.callBase(t):this._updateField(t)},_updateField:function(t){t=Z(t)&&String(t)||this.option("placeholder"),this._$field.text(t)},_renderFieldTemplate:function(t){this._$field.empty();var n=this._fieldRenderData();t.render({model:n,container:kn(this._$field)})},_fieldRenderData:function(){return this.option("selectedItem")},_popupShowingHandler:function(){this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled()),this._list&&this._list.option("focusedElement",null)),this.option("dropDownOptions.fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&(this._popup.option("position").of=U(WS))},_popupShownHandler:function(){var t=this.option("_scrollToSelectedItemEnabled");!this.option("dropDownOptions.fullScreen")&&t&&this._setPopupPosition(),this.callBase()},_scrollToSelectedItem:function(){var t=this._list.option("selectedIndex"),n=this._list.option("items"),e=n.length;0!==e&&(this._list.option("grouped")?this._list.scrollToItem({group:e-1,item:n[e-1].items.length-1}):this._list.scrollToItem(e-1),this._list.scrollToItem(t))},_getDifferenceOffsets:function(t){return t.offset().top-U(this.element()).offset().top},_isCenteringEnabled:(t,n)=>1<t&&t<n-2,_getPopupOffset:function(){var t=this._listItemElements().length;if(0!==t){var n=U(this._list.element()).find("."+XBe),e=this._listItemElements().index(n),i=(Ln(n)-Ln(this.element()))/2,r=U(this._list.element()).offset().top,o=this.option("dropDownOptions.height"),a="function"==typeof o?o():o,s=Ln(WS),l=0;if(-1!==e){if(this._isCenteringEnabled(e,t)){this._scrollToSelectedItem();var u=(a-Ln(n))/2-this._getDifferenceOffsets(n);this._list.scrollTo(this._list.scrollTop()+4-u),r<(l=i+this._getDifferenceOffsets(n))&&e!==t-3&&(this._list.scrollTo(this._list.scrollTop()+this._getDifferenceOffsets(n)/2),l=i+this._getDifferenceOffsets(n))}else e<=1?(this._list.scrollTo(0),l=i+this._getDifferenceOffsets(n)):e>=t-2&&(this._scrollToSelectedItem(),l=i+this._getDifferenceOffsets(n));r<l&&(this._scrollToSelectedItem(),l=i+8)}var f=a-l-Ln(this.element());return s-r<f&&(this._list.scrollTo(this._list.scrollTop()+i-f),l=a-Ln(this.element())-8),l}},_setPopupPosition:function(){if(this.option("dropDownCentered")&&!this._popup.$wrapper().hasClass("dx-popover-flipped-vertical")){var n=U(this._popup.$content()).parent(),e=this._getPopupOffset(),i=Ra(n);kr(n,{top:i.top-e})}},_listItemGroupedElements:function(){var t=this._list._itemContainer().children(),n=[];return t.each((e,i)=>{n.push(U(i).find(".dx-list-group-header")[0]),U(i).find(".dx-list-item").each((o,a)=>{n.push(a)})}),U(n)},_calculateListHeight:function(t){var n=t?this._listItemGroupedElements():this._listItemElements(),e=U("."+XBe),i=n.index(e),r=0;return 0===n.length?r+=8:n.length<5?n.each((a,s)=>{r+=Zn(s)}):(i<=1?n.slice(0,5):this._isCenteringEnabled(i,n.length)?n.slice(i-2,i+3):n.slice(n.length-5,n.length)).each((a,s)=>{r+=Zn(s)}),r+(t?8:16)},_getPopupHeight:function(){var t;return null!==(t=this._list)&&void 0!==t&&t.itemElements().length?this._calculateListHeight(this.option("grouped"))+(this._$searchWrapper?Zn(this._$searchWrapper):0)+(this._popup._$bottom?Zn(this._popup._$bottom):0)+(this._popup._$title?Zn(this._popup._$title):0):"auto"},_renderPopup:function(){this.option("usePopover")&&!this.option("dropDownOptions.fullScreen")?this.option("_scrollToSelectedItemEnabled")?this.callBase():this._renderPopover():this.callBase(),this._$popup.addClass("dx-lookup-popup"),this._popup.$wrapper().addClass("dx-lookup-popup-wrapper")},_renderPopover:function(){this._popup=this._createComponent(this._$popup,dC,se(this._popupConfig(),this._options.cache("dropDownOptions"),{showEvent:null,hideEvent:null,target:this.$element(),fullScreen:!1,shading:!1,hideOnParentScroll:!0,_fixWrapperPosition:!1,width:this._isInitialOptionValue("dropDownOptions.width")?function(){return ii(this.$element())}.bind(this):this._popupConfig().width})),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this.option("_scrollToSelectedItemEnabled")&&this._popup._$arrow.remove(),this._setPopupContentId(this._popup.$content()),this._contentReadyHandler()},_popupHidingHandler:function(){this.callBase(),this.option("focusStateEnabled")&&this.focus()},_popupHiddenHandler:function(){this.callBase(),this.option("_scrollToSelectedItemEnabled")&&lC(U(this._popup.content()).parent())},_preventFocusOnPopup:Be,_popupConfig:function(){var t=se(this.callBase(),{toolbarItems:this._getPopupToolbarItems(),hideOnParentScroll:!1,onPositioned:null,maxHeight:"100vh",showTitle:this.option("dropDownOptions.showTitle"),title:this.option("dropDownOptions.title"),titleTemplate:this._getTemplateByOption("dropDownOptions.titleTemplate"),onTitleRendered:this.option("dropDownOptions.onTitleRendered"),fullScreen:this.option("dropDownOptions.fullScreen"),shading:this.option("dropDownOptions.shading"),hideOnOutsideClick:this.option("dropDownOptions.hideOnOutsideClick")||this.option("dropDownOptions.closeOnOutsideClick")});return delete t.animation,delete t.position,this.option("_scrollToSelectedItemEnabled")&&(t.position=this.option("dropDownCentered")?{my:"left top",at:"left top",of:this.element()}:{my:"left top",at:"left bottom",of:this.element()},t.hideOnParentScroll=!0),we(["position","animation","width","height"],(n,e)=>{var i=this.option("dropDownOptions.".concat(e));void 0!==i&&(t[e]=i)}),t},_getPopupToolbarItems:function(){var t="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],n=this._getCancelButtonConfig();n&&t.push(n);var e=this._getClearButtonConfig();return e&&t.push(e),this._applyButtonsLocation(t)},_popupToolbarItemsConfig:function(){return[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}}]},_getCancelButtonConfig:function(){return this.option("showCancelButton")?{shortcut:"cancel",onClick:this._cancelButtonHandler.bind(this),options:{onInitialized:t=>{t.component.registerKeyHandler("escape",this.close.bind(this))},text:this.option("cancelButtonText")}}:null},_getClearButtonConfig:function(){return this.option("showClearButton")?{shortcut:"clear",onClick:this._resetValue.bind(this),options:{text:this.option("clearButtonText")}}:null},_applyButtonHandler:function(t){t&&this._saveValueChangeEvent(t.event),this.option("value",this._valueGetter(this._currentSelectedItem())),this.callBase()},_cancelButtonHandler:function(){this._refreshSelected(),this.callBase()},_refreshPopupVisibility:function(){this.option("opened")&&this._updateListDimensions()},_dimensionChanged:function(){this.option("usePopover")&&!this.option("dropDownOptions.width")&&this.option("dropDownOptions.width",wn(this.$element())),this._updateListDimensions()},_input:function(){return this._$searchBox||this.callBase()},_renderPopupContent:function(){this.callBase(),this._renderSearch()},_renderValueChangeEvent:Be,_renderSearch:function(){var t=this.option("searchEnabled");if(this._toggleSearchClass(t),t){var n=this._$searchWrapper=U("<div>").addClass("dx-lookup-search-wrapper"),e=this._$searchBox=U("<div>").addClass("dx-lookup-search").appendTo(n),i=pn.current(),o=!1;this._searchBox=this._createComponent(e,Th,{onDisposing:()=>o=!1,onFocusIn:()=>o=!0,onFocusOut:()=>o=!1,onKeyboardHandled:a=>o&&this._list._keyboardHandler(a),mode:i.android?"text":"search",showClearButton:!0,valueChangeEvent:this.option("searchStartEvent"),onValueChanged:a=>{this._searchHandler(a)}}),this._registerSearchKeyHandlers(),n.insertBefore(this._$list),this._setSearchPlaceholder()}},_removeSearch:function(){this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox},_selectListItemHandler:function(t){var n=U(this._list.option("focusedElement"));n.length&&(t.preventDefault(),t.target=n.get(0),this._saveValueChangeEvent(t),this._selectListItem(t.itemData,n))},_registerSearchKeyHandlers:function(){this._searchBox.registerKeyHandler("escape",this.close.bind(this)),this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",Be),this._searchBox.registerKeyHandler("home",Be)},_toggleSearchClass:function(t){this._popup&&this._popup.$wrapper().toggleClass("dx-lookup-popup-search",t)},_setSearchPlaceholder:function(){if(this._$searchBox){var t=this.option("minSearchLength"),n=this.option("searchPlaceholder");t&&n===ye.format("Search")&&(n=ye.getFormatter("dxLookup-searchPlaceholder")(t)),this._searchBox.option("placeholder",n)}},_setAriaTargetForList:Be,_renderList:function(){this.callBase(),this._list.registerKeyHandler("escape",()=>{this.close()})},_listConfig:function(){return se(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this._scrollHandler.bind(this),onPullRefresh:this._pullRefreshHandler.bind(this),onPageLoading:this._pageLoadingHandler.bind(this),pageLoadMode:this.option("pageLoadMode"),nextButtonText:this.option("nextButtonText"),indicateLoading:this.option("searchEnabled"),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):Be},_listContentReadyHandler:function(){this.callBase(...arguments),this._refreshSelected()},_runWithoutCloseOnScroll:function(t){var{_scrollToSelectedItemEnabled:n}=this.option(),e=this._popup.option("hideOnParentScroll");n?(this._popup.option("hideOnParentScroll",!1),t(),this._hideOnParentScrollTimer=setTimeout(()=>{this._popup.option("hideOnParentScroll",e)})):t()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._runWithoutCloseOnScroll(()=>{this.option("searchEnabled")?this._searchBox.focus():Se.trigger(this._$list,"focus")})},_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(t){this._saveValueChangeEvent(t.event),this._selectListItem(t.itemData,t.event.currentTarget)},_selectListItem:function(t,n){this._list.selectItem(n),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem:function(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue:function(t){this._saveValueChangeEvent(t.event),this.option("value",null),this.option("opened",!1)},_searchValue:function(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue:function(){return this.callBase().always(()=>{this._refreshSelected()})},_renderPlaceholder:function(){0!==this.$element().find(".dx-texteditor-input").length&&this.callBase()},_clean:function(){this._$fieldWrapper.remove(),clearTimeout(this._hideOnParentScrollTimer),this._hideOnParentScrollTimer=null,this._$searchBox=null,this.callBase()},_optionChanged:function(t){var n,{name:e,fullName:i,value:r}=t;switch(e){case"dataSource":this.callBase(...arguments),this._renderField();break;case"searchEnabled":this._popup&&(this._removeSearch(),this._renderSearch());break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase(...arguments);break;case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":default:this.callBase(...arguments);break;case"onPageLoading":this._initPageLoadingAction();break;case"onPullRefresh":this._initPullRefreshAction();break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(e);break;case"searchStartEvent":null===(n=this._searchBox)||void 0===n||n.option("valueChangeEvent",r);break;case"onScroll":this._initScrollAction();break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;case"dropDownOptions":switch(i){case"dropDownOptions.width":case"dropDownOptions.height":this._popupOptionChanged({name:e,fullName:i,value:"auto"===r?this.initialOption("dropDownOptions")[VU(i)]:r}),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;default:this.callBase(...arguments)}break;case"dropDownCentered":this.option("_scrollToSelectedItemEnabled")&&(this.option("dropDownOptions.position",void 0),this._renderPopup())}},focus:function(){this.option("opened")?this._setFocusPolicy():Se.trigger(this._focusTarget(),"focus")},field:function(){return this._$field}});On("dxLookup",JBe);const won=JBe,Son={provide:Fo,useExisting:At(()=>Don),multi:!0};let Don=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"pageLoading",emit:"onPageLoading"},{subscribe:"pullRefresh",emit:"onPullRefresh"},{subscribe:"scroll",emit:"onScroll"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"cancelButtonTextChange"},{emit:"cleanSearchOnOpeningChange"},{emit:"clearButtonTextChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"displayValueChange"},{emit:"dropDownCenteredChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"fullScreenChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"minSearchLengthChange"},{emit:"nameChange"},{emit:"nextButtonTextChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"pageLoadingTextChange"},{emit:"pageLoadModeChange"},{emit:"placeholderChange"},{emit:"pulledDownTextChange"},{emit:"pullingDownTextChange"},{emit:"pullRefreshEnabledChange"},{emit:"refreshingTextChange"},{emit:"rtlEnabledChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchPlaceholderChange"},{emit:"searchStartEventChange"},{emit:"searchTimeoutChange"},{emit:"selectedItemChange"},{emit:"showCancelButtonChange"},{emit:"showClearButtonChange"},{emit:"showDataBeforeSearchChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"useNativeScrollingChange"},{emit:"usePopoverChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(e){this._setOption("applyButtonText",e)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(e){this._setOption("applyValueMode",e)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(e){this._setOption("cancelButtonText",e)}get cleanSearchOnOpening(){return this._getOption("cleanSearchOnOpening")}set cleanSearchOnOpening(e){this._setOption("cleanSearchOnOpening",e)}get clearButtonText(){return this._getOption("clearButtonText")}set clearButtonText(e){this._setOption("clearButtonText",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get displayValue(){return this._getOption("displayValue")}set displayValue(e){this._setOption("displayValue",e)}get dropDownCentered(){return this._getOption("dropDownCentered")}set dropDownCentered(e){this._setOption("dropDownCentered",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(e){this._setOption("fieldTemplate",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get fullScreen(){return this._getOption("fullScreen")}set fullScreen(e){this._setOption("fullScreen",e)}get grouped(){return this._getOption("grouped")}set grouped(e){this._setOption("grouped",e)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(e){this._setOption("groupTemplate",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(e){this._setOption("minSearchLength",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get nextButtonText(){return this._getOption("nextButtonText")}set nextButtonText(e){this._setOption("nextButtonText",e)}get noDataText(){return this._getOption("noDataText")}set noDataText(e){this._setOption("noDataText",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get pageLoadingText(){return this._getOption("pageLoadingText")}set pageLoadingText(e){this._setOption("pageLoadingText",e)}get pageLoadMode(){return this._getOption("pageLoadMode")}set pageLoadMode(e){this._setOption("pageLoadMode",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(e){this._setOption("pulledDownText",e)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(e){this._setOption("pullingDownText",e)}get pullRefreshEnabled(){return this._getOption("pullRefreshEnabled")}set pullRefreshEnabled(e){this._setOption("pullRefreshEnabled",e)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(e){this._setOption("refreshingText",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(e){this._setOption("searchEnabled",e)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(e){this._setOption("searchExpr",e)}get searchMode(){return this._getOption("searchMode")}set searchMode(e){this._setOption("searchMode",e)}get searchPlaceholder(){return this._getOption("searchPlaceholder")}set searchPlaceholder(e){this._setOption("searchPlaceholder",e)}get searchStartEvent(){return this._getOption("searchStartEvent")}set searchStartEvent(e){this._setOption("searchStartEvent",e)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(e){this._setOption("searchTimeout",e)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(e){this._setOption("selectedItem",e)}get showCancelButton(){return this._getOption("showCancelButton")}set showCancelButton(e){this._setOption("showCancelButton",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(e){this._setOption("showDataBeforeSearch",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(e){this._setOption("useItemTextAsTitle",e)}get useNativeScrolling(){return this._getOption("useNativeScrolling")}set useNativeScrolling(e){this._setOption("useNativeScrolling",e)}get usePopover(){return this._getOption("usePopover")}set usePopover(e){this._setOption("usePopover",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(e){this._setOption("wrapItemText",e)}change(e){}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new won(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("searchExpr",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-lookup"]],contentQueries:function(e,i,r){if(1&e&&In(r,So,4),2&e){let o;yn(o=Cn())&&(i.itemsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",cancelButtonText:"cancelButtonText",cleanSearchOnOpening:"cleanSearchOnOpening",clearButtonText:"clearButtonText",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",displayValue:"displayValue",dropDownCentered:"dropDownCentered",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",fullScreen:"fullScreen",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",minSearchLength:"minSearchLength",name:"name",nextButtonText:"nextButtonText",noDataText:"noDataText",opened:"opened",pageLoadingText:"pageLoadingText",pageLoadMode:"pageLoadMode",placeholder:"placeholder",pulledDownText:"pulledDownText",pullingDownText:"pullingDownText",pullRefreshEnabled:"pullRefreshEnabled",refreshingText:"refreshingText",rtlEnabled:"rtlEnabled",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchPlaceholder:"searchPlaceholder",searchStartEvent:"searchStartEvent",searchTimeout:"searchTimeout",selectedItem:"selectedItem",showCancelButton:"showCancelButton",showClearButton:"showClearButton",showDataBeforeSearch:"showDataBeforeSearch",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useItemTextAsTitle:"useItemTextAsTitle",useNativeScrolling:"useNativeScrolling",usePopover:"usePopover",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onClosed:"onClosed",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPageLoading:"onPageLoading",onPullRefresh:"onPullRefresh",onScroll:"onScroll",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",cancelButtonTextChange:"cancelButtonTextChange",cleanSearchOnOpeningChange:"cleanSearchOnOpeningChange",clearButtonTextChange:"clearButtonTextChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",displayValueChange:"displayValueChange",dropDownCenteredChange:"dropDownCenteredChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",fullScreenChange:"fullScreenChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",minSearchLengthChange:"minSearchLengthChange",nameChange:"nameChange",nextButtonTextChange:"nextButtonTextChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",pageLoadingTextChange:"pageLoadingTextChange",pageLoadModeChange:"pageLoadModeChange",placeholderChange:"placeholderChange",pulledDownTextChange:"pulledDownTextChange",pullingDownTextChange:"pullingDownTextChange",pullRefreshEnabledChange:"pullRefreshEnabledChange",refreshingTextChange:"refreshingTextChange",rtlEnabledChange:"rtlEnabledChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchPlaceholderChange:"searchPlaceholderChange",searchStartEventChange:"searchStartEventChange",searchTimeoutChange:"searchTimeoutChange",selectedItemChange:"selectedItemChange",showCancelButtonChange:"showCancelButtonChange",showClearButtonChange:"showClearButtonChange",showDataBeforeSearchChange:"showDataBeforeSearchChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",useNativeScrollingChange:"useNativeScrollingChange",usePopoverChange:"usePopoverChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},features:[ot([Zt,nn,Son,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),QBe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Yw,E_,Ga,$i,bi,tn,mi],Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Yw,E_,Ga,$i,tn]}),t})();var jc=ji.abstract,Eon=ji.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},ctor:function(t,n){this._mapWidget=t,this._$container=n},render:function(t,n){return this._renderImpl().then(function(){return Promise.all([this._applyFunctionIfNeeded("addMarkers",t),this._applyFunctionIfNeeded("addRoutes",n)]).then(function(){return!0})}.bind(this))},_renderImpl:jc,updateDimensions:jc,updateMapType:jc,updateBounds:jc,updateCenter:jc,updateZoom:jc,updateControls:jc,updateMarkers:function(t,n){return new Promise(function(e){return this._applyFunctionIfNeeded("removeMarkers",t).then(function(i){this._applyFunctionIfNeeded("addMarkers",n).then(function(r){e(r||i)})}.bind(this))}.bind(this))},addMarkers:jc,removeMarkers:jc,adjustViewport:jc,updateRoutes:function(t,n){return new Promise(function(e){return this._applyFunctionIfNeeded("removeRoutes",t).then(function(i){this._applyFunctionIfNeeded("addRoutes",n).then(function(r){e(r||i)})}.bind(this))}.bind(this))},addRoutes:jc,removeRoutes:jc,clean:jc,map:function(){return this._map},isEventsCanceled:function(){return!1},_option:function(t,n){if(void 0===n)return this._mapWidget.option(t);this._mapWidget.setOptionSilent(t,n)},_keyOption:function(t){var n=this._option("apiKey");return void 0===n[t]?n:n[t]},_parseTooltipOptions:function(t){return{text:t.text||t,visible:t.isShown||!1}},_getLatLng:function(t){if("string"==typeof t){var n=Dr(t.split(","),function(i){return i.trim()}),e=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===n.length&&n[0].match(e)&&n[1].match(e))return{lat:parseFloat(n[0]),lng:parseFloat(n[1])}}else{if(Array.isArray(t)&&2===t.length)return{lat:t[0],lng:t[1]};if(wi(t)&&di(t.lat)&&di(t.lng))return t}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(t){return kt(t,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(t,n){return n.length?this[t](n):Promise.resolve()},_fireAction:function(t,n){this._mapWidget._createActionByOption(t)(n)},_fireClickAction:function(t){this._fireAction("onClick",t)},_fireMarkerAddedAction:function(t){this._fireAction("onMarkerAdded",t)},_fireMarkerRemovedAction:function(t){this._fireAction("onMarkerRemoved",t)},_fireRouteAddedAction:function(t){this._fireAction("onRouteAdded",t)},_fireRouteRemovedAction:function(t){this._fireAction("onRouteRemoved",t)}});const rJ=Eon;var Ton=rJ.inherit({_locationToString:function(t){var n=this._getLatLng(t);return n?n.lat+","+n.lng:t.toString().replace(/ /g,"+")},_renderImpl:function(){return this._updateMap()},updateDimensions:function(){return this._updateMap()},updateMapType:function(){return this._updateMap()},updateBounds:function(){return Promise.resolve()},updateCenter:function(){return this._updateMap()},updateZoom:function(){return this._updateMap()},updateControls:function(){return Promise.resolve()},addMarkers:function(t){var n=this;return this._updateMap().then(function(e){return we(t,function(i,r){n._fireMarkerAddedAction({options:r})}),e})},removeMarkers:function(t){var n=this;return this._updateMap().then(function(e){return we(t,function(i,r){n._fireMarkerRemovedAction({options:r})}),e})},adjustViewport:function(){return Promise.resolve()},addRoutes:function(t){var n=this;return this._updateMap().then(function(e){return we(t,function(i,r){n._fireRouteAddedAction({options:r})}),e})},removeRoutes:function(t){var n=this;return this._updateMap().then(function(e){return we(t,function(i,r){n._fireRouteRemovedAction({options:r})}),e})},clean:function(){return this._$container.css("backgroundImage","none"),Se.off(this._$container,this._addEventNamespace(Vi)),Promise.resolve()},mapRendered:function(){return!0},_updateMap:function(){var t=this._keyOption("googleStatic"),n=this._$container,e=["sensor=false","size="+Math.round(wn(n))+"x"+Math.round(Ln(n)),"maptype="+this._option("type"),"center="+this._locationToString(this._option("center")),"zoom="+this._option("zoom"),this._markersSubstring()];e.push.apply(e,this._routeSubstrings()),t&&e.push("key="+t);var i="https://maps.google.com/maps/api/staticmap?"+e.join("&");return this._$container.css("background",'url("'+i+'") no-repeat 0 0'),this._attachClickEvent(),Promise.resolve(!0)},_markersSubstring:function(){var t=this,n=[],e=this._option("markerIconSrc");return e&&n.push("icon:"+e),we(this._option("markers"),function(i,r){n.push(t._locationToString(r.location))}),"markers="+n.join("|")},_routeSubstrings:function(){var t=this,n=[];return we(this._option("routes"),function(e,i){var r=new Ka(i.color||t._defaultRouteColor()).toHex().replace("#","0x"),o=Math.round(255*(i.opacity||t._defaultRouteOpacity())).toString(16),a=i.weight||t._defaultRouteWeight(),s=[];we(i.locations,function(l,u){s.push(t._locationToString(u))}),n.push("path=color:"+r+o+"|weight:"+a+"|"+s.join("|"))}),n},_attachClickEvent:function(){var t=this,n=this._addEventNamespace(Vi);Se.off(this._$container,n),Se.on(this._$container,n,function(e){t._fireClickAction({event:e})})}});const Ion=Ton;var s0=rJ.abstract,kon=rJ.inherit({_geocodeLocation:function(t){return new Promise(function(n){var e=this._geocodedLocations,i=e[t];i?n(i):this._geocodeLocationImpl(t).then(function(r){e[t]=r,n(r)})}.bind(this))},_renderImpl:function(){return this._load().then(function(){return this._init()}.bind(this)).then(function(){return Promise.all([this.updateMapType(),this._areBoundsSet()?this.updateBounds():this.updateCenter()])}.bind(this)).then(function(){return this._attachHandlers(),new Promise(function(t){var n=setTimeout(function(){clearTimeout(n),t()})})}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:s0,_init:s0,_attachHandlers:s0,addMarkers:function(t){return Promise.all(Dr(t,function(n){return this._addMarker(n)}.bind(this))).then(function(n){return this._fitBounds(),[!1,Dr(n,function(e){return e.marker})]}.bind(this))},_addMarker:function(t){return this._renderMarker(t).then(function(n){return this._markers.push(se({options:t},n)),this._fireMarkerAddedAction({options:t,originalMarker:n.marker}),n}.bind(this))},_renderMarker:s0,removeMarkers:function(t){var n=this;return we(t,function(e,i){n._removeMarker(i)}),Promise.resolve()},_removeMarker:function(t){var n=this;we(this._markers,function(e,i){return i.options!==t||(n._destroyMarker(i),n._markers.splice(e,1),n._fireMarkerRemovedAction({options:i.options}),!1)})},_destroyMarker:s0,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(t){return Promise.all(Dr(t,function(n){return this._addRoute(n)}.bind(this))).then(function(n){return this._fitBounds(),[!1,Dr(n,function(e){return e.instance})]}.bind(this))},_addRoute:function(t){return this._renderRoute(t).then(function(n){return this._routes.push(se({options:t},n)),this._fireRouteAddedAction({options:t,originalRoute:n.instance}),n}.bind(this))},_renderRoute:s0,removeRoutes:function(t){var n=this;return we(t,function(e,i){n._removeRoute(i)}),Promise.resolve()},_removeRoute:function(t){var n=this;we(this._routes,function(e,i){return i.options!==t||(n._destroyRoute(i),n._routes.splice(e,1),n._fireRouteRemovedAction({options:t}),!1)})},_destroyRoute:s0,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},isEventsCanceled:function(){return!0},_fitBounds:s0,_updateBounds:function(){var t=this;this._clearBounds(),this._option("autoAdjust")&&(we(this._markers,function(n,e){t._extendBounds(e.location)}),we(this._routes,function(n,e){e.northEast&&t._extendBounds(e.northEast),e.southWest&&t._extendBounds(e.southWest)}))},_clearBounds:function(){this._bounds=null},_extendBounds:s0});const e4e=kon;var jS,oJ,_M=Fn(),b8="_googleScriptReady",Mon="https://maps.googleapis.com/maps/api/js?callback="+b8,t4e=function(){return _M.google&&_M.google.maps},Pon=e4e.inherit({_mapType:function(t){var n={hybrid:google.maps.MapTypeId.HYBRID,roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE};return n[t]||n.hybrid},_movementMode:function(t){var n={driving:google.maps.TravelMode.DRIVING,walking:google.maps.TravelMode.WALKING};return n[t]||n.driving},_resolveLocation:function(t){return new Promise(function(n){var e=this._getLatLng(t);e?n(new google.maps.LatLng(e.lat,e.lng)):this._geocodeLocation(t).then(function(i){n(i)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(t){return new Promise(function(n){Z(t)?(new google.maps.Geocoder).geocode({address:t},function(i,r){r===google.maps.GeocoderStatus.OK?n(i[0].geometry.location):(Di.log("W1006",r),n(new google.maps.LatLng(0,0)))}):n(new google.maps.LatLng(0,0))})},_normalizeLocation:function(t){return{lat:t.lat(),lng:t.lng()}},_normalizeLocationRect:function(t){return{northEast:this._normalizeLocation(t.getNorthEast()),southWest:this._normalizeLocation(t.getSouthWest())}},_loadImpl:function(){return new Promise(function(t){t4e()?t():(oJ||(oJ=this._loadMapScript()),oJ.then(function(){t4e()?t():this._loadMapScript().then(t)}.bind(this)))}.bind(this)).then(function(){jS=function(t){this._position=t.position,this._offset=t.offset,this._$overlayContainer=U("<div>").css({position:"absolute",display:"none",cursor:"pointer"}).append(t.html),this.setMap(t.map)},jS.prototype=new google.maps.OverlayView,jS.prototype.onAdd=function(){U(this.getPanes().overlayMouseTarget).append(this._$overlayContainer),this._clickListener=google.maps.event.addDomListener(this._$overlayContainer.get(0),"click",function(n){google.maps.event.trigger(this,"click"),n.preventDefault()}.bind(this)),this.draw()},jS.prototype.onRemove=function(){google.maps.event.removeListener(this._clickListener),this._$overlayContainer.remove()},jS.prototype.draw=function(){var t=this.getProjection().fromLatLngToDivPixel(this._position);this._$overlayContainer.css({left:t.x+this._offset.left,top:t.y+this._offset.top,display:"block"})}})},_loadMapScript:function(){return new Promise(function(t){var n=this._keyOption("google");_M[b8]=t,mh.sendRequest({url:Mon+(n?"&key="+n:""),dataType:"script"})}.bind(this)).then(function(){try{delete _M[b8]}catch{_M[b8]=void 0}})},_init:function(){return new Promise(function(t){this._resolveLocation(this._option("center")).then(function(n){var e=this._option("controls");this._map=new google.maps.Map(this._$container[0],{zoom:this._option("zoom"),center:n,disableDefaultUI:!e});var i=google.maps.event.addListener(this._map,"idle",function(){t(i)})}.bind(this))}.bind(this)).then(function(t){google.maps.event.removeListener(t)})},_attachHandlers:function(){this._boundsChangeListener=google.maps.event.addListener(this._map,"bounds_changed",this._boundsChangeHandler.bind(this)),this._clickListener=google.maps.event.addListener(this._map,"click",this._clickActionHandler.bind(this))},_boundsChangeHandler:function(){var t=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(t));var n=this._map.getCenter();this._option("center",this._normalizeLocation(n)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(t){this._fireClickAction({location:this._normalizeLocation(t.latLng)})},updateDimensions:function(){var t=this._option("center");return google.maps.event.trigger(this._map,"resize"),this._option("center",t),this.updateCenter()},updateMapType:function(){return this._map.setMapTypeId(this._mapType(this._option("type"))),Promise.resolve()},updateBounds:function(){return Promise.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(t){var n=new google.maps.LatLngBounds;n.extend(t[0]),n.extend(t[1]),this._map.fitBounds(n)}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(t){this._map.setCenter(t),this._option("center",this._normalizeLocation(t))}.bind(this))},updateZoom:function(){return this._map.setZoom(this._option("zoom")),Promise.resolve()},updateControls:function(){var t=this._option("controls");return this._map.setOptions({disableDefaultUI:!t}),Promise.resolve()},isEventsCanceled:function(t){var n=this._map&&this._map.get("gestureHandling");return!(U(t.target).closest(".".concat("gm-style-iw")).length>0||"desktop"!==pn.real().deviceType&&"cooperative"===n)&&this.callBase()},_renderMarker:function(t){return this._resolveLocation(t.location).then(function(n){var e;e=t.html?new jS({map:this._map,position:n,html:t.html,offset:se({top:0,left:0},t.htmlOffset)}):new google.maps.Marker({position:n,map:this._map,icon:t.iconSrc||this._option("markerIconSrc")});var r,i=this._renderTooltip(e,t.tooltip);if(t.onClick||t.tooltip){var o=this._mapWidget._createAction(t.onClick||Be),a=this._normalizeLocation(n);r=google.maps.event.addListener(e,"click",function(){o({location:a}),i&&i.open(this._map,e)}.bind(this))}return{location:n,marker:e,listener:r}}.bind(this))},_renderTooltip:function(t,n){if(n){n=this._parseTooltipOptions(n);var e=new google.maps.InfoWindow({content:n.text});return n.visible&&e.open(this._map,t),e}},_destroyMarker:function(t){t.marker.setMap(null),t.listener&&google.maps.event.removeListener(t.listener)},_renderRoute:function(t){return Promise.all(Dr(t.locations,function(n){return this._resolveLocation(n)}.bind(this))).then(function(n){return new Promise(function(e){var a={origin:n.shift(),destination:n.pop(),waypoints:Dr(n,function(s){return{location:s,stopover:!0}}),optimizeWaypoints:!0,travelMode:this._movementMode(t.mode)};(new google.maps.DirectionsService).route(a,function(s,l){if(l===google.maps.DirectionsStatus.OK){var u=new Ka(t.color||this._defaultRouteColor()).toHex(),f={directions:s,map:this._map,suppressMarkers:!0,preserveViewport:!0,polylineOptions:{strokeWeight:t.weight||this._defaultRouteWeight(),strokeOpacity:t.opacity||this._defaultRouteOpacity(),strokeColor:u}},S=new google.maps.DirectionsRenderer(f),T=s.routes[0].bounds;e({instance:S,northEast:T.getNorthEast(),southWest:T.getSouthWest()})}else Di.log("W1006",l),e({instance:new google.maps.DirectionsRenderer({})})}.bind(this))}.bind(this))}.bind(this))},_destroyRoute:function(t){t.instance.setMap(null)},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var t=this._map.getZoom();this._preventZoomChangeEvent=!0,this._map.fitBounds(this._bounds),this._boundsChangeHandler();var n=this._map.getZoom();t<n?this._map.setZoom(t):this._option("zoom",n),delete this._preventZoomChangeEvent}return Promise.resolve()},_extendBounds:function(t){this._bounds||(this._bounds=new google.maps.LatLngBounds),this._bounds.extend(t)},clean:function(){return this._map&&(google.maps.event.removeListener(this._boundsChangeListener),google.maps.event.removeListener(this._clickListener),this._clearMarkers(),this._clearRoutes(),delete this._map,this._$container.empty()),Promise.resolve()}});const Ron=Pon;var aJ,vM=Fn(),x8="_bingScriptReady",Lon="https://www.bing.com/api/maps/mapcontrol?callback="+x8,i4e=function(){return vM.Microsoft&&vM.Microsoft.Maps},Von=e4e.inherit({_mapType:function(t){var n={roadmap:Microsoft.Maps.MapTypeId.road,hybrid:Microsoft.Maps.MapTypeId.aerial,satellite:Microsoft.Maps.MapTypeId.aerial};return n[t]||n.road},_movementMode:function(t){var n={driving:Microsoft.Maps.Directions.RouteMode.driving,walking:Microsoft.Maps.Directions.RouteMode.walking};return n[t]||n.driving},_resolveLocation:function(t){return new Promise(function(n){var e=this._getLatLng(t);e?n(new Microsoft.Maps.Location(e.lat,e.lng)):this._geocodeLocation(t).then(function(i){n(i)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(t){return new Promise(function(n){Z(t)?new Microsoft.Maps.Search.SearchManager(this._map).geocode({where:t,count:1,callback:function(r){if(r.results[0]){var a=r.results[0].location;n(new Microsoft.Maps.Location(a.latitude,a.longitude))}else n(new Microsoft.Maps.Location(0,0))}}):n(new Microsoft.Maps.Location(0,0))}.bind(this))},_normalizeLocation:function(t){return{lat:t.latitude,lng:t.longitude}},_normalizeLocationRect:function(t){var n=this._normalizeLocation(t.getNorthwest()),e=this._normalizeLocation(t.getSoutheast());return{northEast:{lat:n.lat,lng:e.lng},southWest:{lat:e.lat,lng:n.lng}}},_loadImpl:function(){return new Promise(function(t){i4e()?t():(aJ||(aJ=this._loadMapScript()),aJ.then(function(){i4e()?t():this._loadMapScript().then(t)}.bind(this)))}.bind(this)).then(function(){return Promise.all([new Promise(function(t){Microsoft.Maps.loadModule("Microsoft.Maps.Search",{callback:t})}),new Promise(function(t){Microsoft.Maps.loadModule("Microsoft.Maps.Directions",{callback:t})})])})},_loadMapScript:function(){return new Promise(function(t){vM[x8]=t,mh.sendRequest({url:Lon,dataType:"script"})}).then(function(){try{delete vM[x8]}catch{vM[x8]=void 0}})},_init:function(){return this._createMap(),Promise.resolve()},_createMap:function(){var t=this._option("controls");this._map=new Microsoft.Maps.Map(this._$container[0],{credentials:this._keyOption("bing")||"AhuxC0dQ1DBTNo8L-H9ToVMQStmizZzBJdraTSgCzDSWPsA1Qd8uIvFSflzxdaLH",zoom:this._option("zoom"),showDashboard:t,showMapTypeSelector:t,showScalebar:t})},_attachHandlers:function(){this._providerViewChangeHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",this._viewChangeHandler.bind(this)),this._providerClickHandler=Microsoft.Maps.Events.addHandler(this._map,"click",this._clickActionHandler.bind(this))},_viewChangeHandler:function(){var t=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(t));var n=this._map.getCenter();this._option("center",this._normalizeLocation(n)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(t){"map"===t.targetType&&this._fireClickAction({location:this._normalizeLocation(t.location)})},updateDimensions:function(){var t=this._$container;return this._map.setOptions({width:wn(t),height:Ln(t)}),Promise.resolve()},updateMapType:function(){var t=this._option("type"),n=Microsoft.Maps.LabelOverlay;return this._map.setView({animate:!1,mapTypeId:this._mapType(t),labelOverlay:"satellite"===t?n.hidden:n.visible}),Promise.resolve()},updateBounds:function(){return Promise.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(t){var n=new Microsoft.Maps.LocationRect.fromLocations(t[0],t[1]);this._map.setView({animate:!1,bounds:n})}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(t){this._map.setView({animate:!1,center:t})}.bind(this))},updateZoom:function(){return this._map.setView({animate:!1,zoom:this._option("zoom")}),Promise.resolve()},updateControls:function(){return this.clean(),this.render.apply(this,arguments)},_renderMarker:function(t){return this._resolveLocation(t.location).then(function(n){var e={icon:t.iconSrc||this._option("markerIconSrc")};if(t.html){se(e,{htmlContent:t.html,width:null,height:null});var i=t.htmlOffset;i&&(e.anchor=new Microsoft.Maps.Point(-i.left,-i.top))}var r=new Microsoft.Maps.Pushpin(n,e);this._map.entities.push(r);var a,o=this._renderTooltip(n,t.tooltip);if(t.onClick||t.tooltip){var s=this._mapWidget._createAction(t.onClick||Be),l=this._normalizeLocation(n);a=Microsoft.Maps.Events.addHandler(r,"click",function(){s({location:l}),o&&o.setOptions({visible:!0})})}return{location:n,marker:r,infobox:o,handler:a}}.bind(this))},_renderTooltip:function(t,n){if(n){n=this._parseTooltipOptions(n);var e=new Microsoft.Maps.Infobox(t,{description:n.text,offset:new Microsoft.Maps.Point(0,13),visible:n.visible});return e.setMap(this._map),e}},_destroyMarker:function(t){this._map.entities.remove(t.marker),t.infobox&&t.infobox.setMap(null),t.handler&&Microsoft.Maps.Events.removeHandler(t.handler)},_renderRoute:function(t){return Promise.all(Dr(t.locations,function(n){return this._resolveLocation(n)}.bind(this))).then(function(n){return new Promise(function(e){var i=new Microsoft.Maps.Directions.DirectionsManager(this._map),r=new Ka(t.color||this._defaultRouteColor()).toHex(),o=new Microsoft.Maps.Color.fromHex(r);o.a=255*(t.opacity||this._defaultRouteOpacity()),i.setRenderOptions({autoUpdateMapView:!1,displayRouteSelector:!1,waypointPushpinOptions:{visible:!1},drivingPolylineOptions:{strokeColor:o,strokeThickness:t.weight||this._defaultRouteWeight()},walkingPolylineOptions:{strokeColor:o,strokeThickness:t.weight||this._defaultRouteWeight()}}),i.setRequestOptions({routeMode:this._movementMode(t.mode),routeDraggable:!1}),we(n,function(s,l){var u=new Microsoft.Maps.Directions.Waypoint({location:l});i.addWaypoint(u)});var a=[];a.push(Microsoft.Maps.Events.addHandler(i,"directionsUpdated",function(s){for(;a.length;)Microsoft.Maps.Events.removeHandler(a.pop());var l=s.routeSummary[0];e({instance:i,northEast:l.northEast,southWest:l.southWest})})),a.push(Microsoft.Maps.Events.addHandler(i,"directionsError",function(s){for(;a.length;)Microsoft.Maps.Events.removeHandler(a.pop());Di.log("W1006","RouteResponseCode: "+s.responseCode+" - "+s.message),e({instance:i})})),i.calculateDirections()}.bind(this))}.bind(this))},_destroyRoute:function(t){t.instance.dispose()},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var t=this._map.getZoom();this._preventZoomChangeEvent=!0;var n=this._bounds.clone();n.height=1.1*n.height,n.width=1.1*n.width,this._map.setView({animate:!1,bounds:n,zoom:t});var e=this._map.getZoom();t<e?this._map.setView({animate:!1,zoom:t}):this._option("zoom",e),delete this._preventZoomChangeEvent}return Promise.resolve()},_extendBounds:function(t){this._bounds=this._bounds?new Microsoft.Maps.LocationRect.fromLocations(this._bounds.getNorthwest(),this._bounds.getSoutheast(),t):new Microsoft.Maps.LocationRect(t,1e-16,1e-16)},clean:function(){return this._map&&(Microsoft.Maps.Events.removeHandler(this._providerViewChangeHandler),Microsoft.Maps.Events.removeHandler(this._providerClickHandler),this._clearMarkers(),this._clearRoutes(),this._map.dispose()),Promise.resolve()}}),Hon={googleStatic:Ion,google:Ron,bing:Von},r4e="dx-map-shield",o4e=tr.inherit({_getDefaultOptions:function(){return se(this.callBase(),{bounds:{northEast:null,southWest:null},center:{lat:0,lng:0},zoom:1,width:300,height:300,type:"roadmap",provider:"google",autoAdjust:!0,markers:[],markerIconSrc:null,onMarkerAdded:null,onMarkerRemoved:null,routes:[],onRouteAdded:null,onRouteRemoved:null,apiKey:{bing:"",google:"",googleStatic:""},controls:!1,onReady:null,onUpdated:null,onClick:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-map"),this._lastAsyncAction=Promise.resolve(),this._checkOption("provider"),this._checkOption("markers"),this._checkOption("routes"),this._initContainer(),this._grabEvents(),this._rendered={}},_useTemplates:function(){return!1},_checkOption:function(t){var n=this.option(t);if("markers"===t&&!Array.isArray(n))throw Di.Error("E1022");if("routes"===t&&!Array.isArray(n))throw Di.Error("E1023")},_initContainer:function(){this._$container=U("<div>").addClass("dx-map-container"),this.$element().append(this._$container)},_grabEvents:function(){var t=kt(qn.down,this.NAME);Se.on(this.$element(),t,this._cancelEvent.bind(this))},_cancelEvent:function(t){this._provider&&this._provider.isEventsCanceled(t)&&!this.option("disabled")&&t.stopPropagation()},_saveRendered:function(t){var n=this.option(t);this._rendered[t]=n.slice()},_render:function(){this.callBase(),this._renderShield(),this._saveRendered("markers"),this._saveRendered("routes"),this._provider=new(Hon[this.option("provider")])(this,this._$container),this._queueAsyncAction("render",this._rendered.markers,this._rendered.routes)},_renderShield:function(){var t;this.option("disabled")?(t=U("<div>").addClass(r4e),this.$element().append(t)):(t=this.$element().find("."+r4e)).remove()},_clean:function(){this._cleanFocusState(),this._provider&&this._provider.clean(),this._provider=null,this._lastAsyncAction=Promise.resolve(),this.setOptionSilent("bounds",{northEast:null,southWest:null}),delete this._suppressAsyncAction},_optionChanged:function(t){var n=t.name,e=this._optionChangeBag;switch(this._optionChangeBag=null,n){case"disabled":this._renderShield(),this.callBase(t);break;case"width":case"height":this.callBase(t),this._dimensionChanged();break;case"provider":this._suppressAsyncAction=!0,this._invalidate();break;case"apiKey":Di.log("W1001");break;case"bounds":this._queueAsyncAction("updateBounds");break;case"center":this._queueAsyncAction("updateCenter");break;case"zoom":this._queueAsyncAction("updateZoom");break;case"type":this._queueAsyncAction("updateMapType");break;case"controls":this._queueAsyncAction("updateControls",this._rendered.markers,this._rendered.routes);break;case"autoAdjust":this._queueAsyncAction("adjustViewport");break;case"markers":case"routes":this._checkOption(n);var i=this._rendered[n];this._saveRendered(n),this._queueAsyncAction("update"+hh(n),e?e.removed:i,e?e.added:this._rendered[n]).then(function(r){e&&e.resolve(r)});break;case"markerIconSrc":this._queueAsyncAction("updateMarkers",this._rendered.markers,this._rendered.markers);break;case"onReady":case"onUpdated":case"onMarkerAdded":case"onMarkerRemoved":case"onRouteAdded":case"onRouteRemoved":case"onClick":break;default:this.callBase.apply(this,arguments)}},_visibilityChanged:function(t){t&&this._dimensionChanged()},_dimensionChanged:function(){this._queueAsyncAction("updateDimensions")},_queueAsyncAction:function(t){var n=[].slice.call(arguments).slice(1),e=this._suppressAsyncAction;return this._lastAsyncAction=this._lastAsyncAction.then(function(){return!this._provider||e?Promise.resolve():this._provider[t].apply(this._provider,n).then(function(i){return(i=mp(i))[0]&&!this._disposed&&this._triggerReadyAction(),i[1]}.bind(this))}.bind(this)),this._lastAsyncAction},_triggerReadyAction:function(){this._createActionByOption("onReady")({originalMap:this._provider.map()})},_triggerUpdateAction:function(){this._createActionByOption("onUpdated")()},setOptionSilent:function(t,n){this._setOptionWithoutOptionChange(t,n)},addMarker:function(t){return this._addFunction("markers",t)},removeMarker:function(t){return this._removeFunction("markers",t)},addRoute:function(t){return this._addFunction("routes",t)},removeRoute:function(t){return this._removeFunction("routes",t)},_addFunction:function(t,n){var e=this.option(t),i=mp(n);return e.push.apply(e,i),this._partialArrayOptionChange(t,e,i,[])},_removeFunction:function(t,n){var e=this.option(t),i=mp(n);return we(i,function(r,o){var a=di(o)?o:e?.indexOf(o);if(-1===a)throw Di.log("E1021",hh(t.substring(0,t.length-1)),o);var s=e.splice(a,1)[0];i.splice(r,1,s)}),this._partialArrayOptionChange(t,e,[],i)},_partialArrayOptionChange:function(t,n,e,i){return ra(new Promise(function(r){this._optionChangeBag={resolve:r,added:e,removed:i},this.option(t,n)}.bind(this)).then(function(r){return r&&1===r.length?r[0]:r}),this)}});On("dxMap",o4e);let a4e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[z0e,X0e,B_e,SR,$o,nve,bi,tn,mi],z0e,X0e,B_e,SR,$o,nve,tn]}),t})(),s4e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,$i,ave,PR,uL,bi,tn,mi],vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,$i,ave,PR,uL,tn]}),t})(),l4e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})();const Gon={provide:Fo,useExisting:At(()=>jon),multi:!0};let jon=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"formatChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"invalidValueMessageChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"modeChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showSpinButtonsChange"},{emit:"stepChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useLargeSpinButtonsChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get format(){return this._getOption("format")}set format(e){this._setOption("format",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get invalidValueMessage(){return this._getOption("invalidValueMessage")}set invalidValueMessage(e){this._setOption("invalidValueMessage",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get mode(){return this._getOption("mode")}set mode(e){this._setOption("mode",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showSpinButtons(){return this._getOption("showSpinButtons")}set showSpinButtons(e){this._setOption("showSpinButtons",e)}get step(){return this._getOption("step")}set step(e){this._setOption("step",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get useLargeSpinButtons(){return this._getOption("useLargeSpinButtons")}set useLargeSpinButtons(e){this._setOption("useLargeSpinButtons",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}_createInstance(e,i){return new af(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-number-box"]],contentQueries:function(e,i,r){if(1&e&&In(r,Ig,4),2&e){let o;yn(o=Cn())&&(i.buttonsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",format:"format",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",invalidValueMessage:"invalidValueMessage",isValid:"isValid",label:"label",labelMode:"labelMode",max:"max",min:"min",mode:"mode",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showSpinButtons:"showSpinButtons",step:"step",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useLargeSpinButtons:"useLargeSpinButtons",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",formatChange:"formatChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",invalidValueMessageChange:"invalidValueMessageChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxChange:"maxChange",minChange:"minChange",modeChange:"modeChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showSpinButtonsChange:"showSpinButtonsChange",stepChange:"stepChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useLargeSpinButtonsChange:"useLargeSpinButtonsChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,Gon,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),u4e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Wa,Us,$r,bi,tn,mi],Wa,Us,$r,tn]}),t})();var{states:Tb}=Mp,d4e=Mp.pieSeriesSpacing,$on=Tb.normalMark,qon=Tb.hoverMark,Yon=Tb.selectedMark,Xon=[Tb.resetItem,Tb.applyHover,Tb.applySelected,Tb.applySelected];function c4e(t){return di(t)?t>1?t=1:t<0&&(t=0):t=void 0,t}var h4e=function(){function t(i,r){return i.filter(function(o){return o!==r})}var n=[],e={};return{queue:function(i){var a,r=i.getSizeGroup();n=t(n,a=i).concat(a),clearTimeout(e[r]),e[r]=setTimeout(function(){var s,u,f,S;s=r,u=n.filter(T=>T._isVisible()&&T.getSizeGroup()===s),f=Math.min.apply(null,u.map(T=>T.getSizeGroupLayout().radius)),S=u.filter(T=>T.getSizeGroupLayout().radius===f),u.forEach(T=>T.render({force:!0,sizeGroupLayout:S.length?S[0].getSizeGroupLayout():{}}))})},remove:function(i){(n=t(n,i)).length||(e={})}}}(),yM=Hh.inherit({_themeSection:"pie",_layoutManagerOptions:function(){return se(!0,{},this.callBase(),{piePercentage:c4e(this._themeManager.getOptions("diameter")),minPiePercentage:c4e(this._themeManager.getOptions("minDiameter"))})},_customChangesOrder:["CENTER_TEMPLATE"],_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT",centerTemplate:"CENTER_TEMPLATE"},_change_CENTER_TEMPLATE(){this._renderCenterTemplate()},_disposeCore:function(){h4e.remove(this),this.callBase(),this._centerTemplateGroup.linkOff().dispose()},_groupSeries:function(){var t=this.series;this._groupsData={groups:[{series:t,valueOptions:{valueType:"numeric"}}],argumentOptions:t[0]&&t[0].getOptions()}},getArgumentAxis:function(){return null},_getValueAxis:function(){var t=(new cB).setCodomain(360,0);return{getTranslator:function(){return t},setBusinessRange:function(n){t.setDomain(n.min,n.max)}}},_populateBusinessRange:function(){this.series.map(function(t){var n=new Os;return n.addRange(t.getRangeData().val),t.getValueAxis().setBusinessRange(n),n})},_specialProcessSeries:function(){we(this.series,function(t,n){n.arrangePoints()})},_checkPaneName:function(){return!0},_processSingleSeries:function(t){this.callBase(t),t.arrangePoints()},_handleSeriesDataUpdated:function(){var t=0;this.series.forEach(function(n){t=Math.max(n.getPointsCount(),t)}),this.series.forEach(function(n){n.setMaxPointsCount(t)}),this.callBase()},_getLegendOptions:function(t){var n=this.callBase(t),e=n.legendData;return e.argument=t.argument,e.argumentIndex=t.argumentIndex,e.points=[t],n},_getLegendTargets:function(){var t=this,n={};(t.series||[]).forEach(function(i){i.getPoints().forEach(function(r){var o=r.argument.valueOf(),a=i.getPointsByArg(o).indexOf(r),s=o.valueOf().toString()+a;n[s]=n[s]||[];var l=n[s].push(r);r.index=n[s][l-2]?n[s][l-2].index:Object.keys(n).length-1,r.argumentIndex=a})});var e=[];return we(n,function(i,r){r.forEach(function(o,a){if(0!==a){var s=e[e.length-1];s.legendData.points.push(o),s.visible||(s.visible=o.isVisible())}else e.push(t._getLegendOptions(o))})}),e},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(t,n){var e,i=this._canvas,r=!1;return e=this.layoutManager.applyPieChartSeriesLayout(i,t,!0),t.forEach(function(o){o.correctPosition(e,i),r=o.drawLabelsWOPoints()||r}),r&&(e=this.layoutManager.applyPieChartSeriesLayout(i,t,n.hideLayoutLabels)),t.forEach(function(o){o.hideLabels()}),this._sizeGroupLayout={x:e.centerX,y:e.centerY,radius:e.radiusOuter,drawOptions:n},e},_getLayoutSeriesForEqualPies:function(t,n){var e=this._canvas,i=this.layoutManager.applyEqualPieChartLayout(t,n);return t.forEach(function(r){r.correctPosition(i,e),r.drawLabelsWOPoints()}),this.layoutManager.correctPieLabelRadius(t,i,e),i},_updateSeriesDimensions:function(t){var i,r,o,n=this._getVisibleSeries(),e=n.length,a=t.sizeGroupLayout;e&&(o=a?this._getLayoutSeriesForEqualPies(n,a):this._getLayoutSeries(n,t),r=(o.radiusOuter-o.radiusInner-d4e*(e-1))/e,i=o.radiusInner,this._setGeometry(o),n.forEach(function(s){s.correctRadius({radiusInner:i,radiusOuter:i+r}),i+=r+d4e}))},_renderSeries:function(t,n,e){if(this._calculateSeriesLayout(t,n),!t.sizeGroupLayout&&this.getSizeGroup())return h4e.queue(this),void this._clearCanvas();this._renderSeriesElements(t,e)},_createHtmlStructure(){this.callBase(),this._centerTemplateGroup=this._renderer.g().attr({class:"dxc-hole-template"}).linkOn(this._renderer.root,"center-template").css(_a(this._themeManager._font)).linkAppend()},_renderExtraElements(){this._requestChange(["CENTER_TEMPLATE"])},_renderCenterTemplate(){var t=this.option("centerTemplate"),n=this._centerTemplateGroup.clear();t&&(n.attr({visibility:"hidden"}),(t=this._getTemplate(t)).render({model:this,container:n.element,onRendered:()=>{var e=n,i=e.getBBox();e.move(this._center.x-(i.x+i.width/2),this._center.y-(i.y+i.height/2)),e.attr({visibility:"visible"})}}))},getInnerRadius(){return this._innerRadius},_getLegendCallBack:function(){var t=this,n=this._legend,e=this._getLegendTargets().map(function(i){return i.legendData});return function(i){e.forEach(function(r){var o=[],a=n.getActionCallback({index:r.id});t.series.forEach(function(s){var l=s.getPointsByKeys(r.argument,r.argumentIndex);o.push.apply(o,l)}),i&&i.argument===r.argument&&i.argumentIndex===r.argumentIndex&&o.push(i),a(function Jon(t){var n=$on;return t.forEach(e=>{var i,r=null===(i=e.series)||void 0===i?void 0:i.getOptions(),o=e.fullState;"none"===r?.hoverMode&&(o&=~qon),"none"===r?.selectionMode&&(o&=~Yon),n|=o}),Xon[n]}(o))})}},_locateLabels(t){var e,i,n=0;do{i=this._adjustSeriesLabels("shift"===t),e=this._resolveLabelOverlapping(t)}while((e||i)&&++n<5)},_adjustSeriesLabels:function(t){return this.series.reduce((n,e)=>e.adjustLabels(t)||n,!1)},_applyExtraSettings:Be,_resolveLabelOverlappingShift:function(){var t=this,n="anticlockwise"===t.option("segmentsDirection"),e=t.series.reduce(function(s,l){return(s[l.getOptions().label.position]||s.outside).push(l),s},{inside:[],columns:[],outside:[]}),i=!1;return e.inside.length>0&&(i=o(e.inside.reduce(function(s,l){return l.getVisiblePoints().reduce(function(u,f){return u.left.push(f),u},s)},{left:[],right:[]}),a)||i),i=e.columns.reduce((s,l)=>o(r(l),a)||s,i),e.outside.length>0&&(i=o(e.outside.reduce(function(s,l){return r(l,s)},null),function(s,l){return pbe(s,-l,t._center)})||i),i;function r(s,l){return s.getVisiblePoints().reduce(function(u,f){var S=Bc(f.middleAngle);return(S<=90||S>=270?u.right:u.left).push(f),u},l||{left:[],right:[]})}function o(s,l){var u;return n&&(s.left.reverse(),s.right.reverse()),u=mq_resolveLabelOverlappingInOneDirection(s.left,t._canvas,!1,!1,l),mq_resolveLabelOverlappingInOneDirection(s.right,t._canvas,!1,!1,l)||u}function a(s,l){return{x:s.x,y:s.y-l}}},_setGeometry:function(t){var{centerX:n,centerY:e,radiusInner:i}=t;this._center={x:n,y:e},this._innerRadius=i},_disposeSeries(t){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:Be,_renderTrackers:Be,_trackerType:"PieTracker",_createScrollBar:Be,_updateAxesLayout:Be,_applyClipRects:Be,_appendAdditionalSeriesGroups:Be,_prepareToRender:Be,_isLegendInside:Be,_renderAxes:Be,_shrinkAxes:Be,_isRotated:Be,_seriesPopulatedHandlerCore:Be,_reinitAxes:Be,_correctAxes:Be,_getExtraOptions:function(){return{startAngle:this.option("startAngle"),innerRadius:this.option("innerRadius"),segmentsDirection:this.option("segmentsDirection"),type:this.option("type")}},getSizeGroup:function(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout:function(){return this._sizeGroupLayout||{}}});we(["startAngle","innerRadius","segmentsDirection","type"],function(t,n){yM.prototype._optionChangesMap[n]="REFRESH_SERIES_DATA_INIT"}),yM.addPlugin(dv.core),yM.addPlugin(dv.pieChart),On("dxPieChart",yM);let p4e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Og,vr,m_,Ea,Oa,Pg,ja,b_,x_,Jd,Eh,Lo,__,kg,$r,Oh,dve,aa,Rg,Ta,vs,_s,ms,y_,D_,Ia,$o,bi,tn,mi],Og,vr,m_,Ea,Oa,Pg,ja,b_,x_,Jd,Eh,Lo,__,kg,$r,Oh,dve,aa,Rg,Ta,vs,_s,ms,y_,D_,Ia,$o,tn]}),t})();var l0=function(t,n,e,i){var r=t._initProperties=t._initProperties||{},o=i?e:t[n];(!Object.prototype.hasOwnProperty.call(r,n)||i)&&(r[n]=o),t[n]=e},g4e=new Date;function f4e(t){return function n(e,i,r,o,a,s){var l,u;function f(R,L,z){Qt(n(e,i,r,o,L,z)).done(R.resolve)}for(o=o||[],e=e||[],l=a=a||0;l<e.length;l++){if(t&&l>a&&l%1e4==0&&new Date-g4e>=300)return g4e=new Date,u=new et,setTimeout(f(u,l,!1),0),u;var S=e[l];if(!s){if(o.unshift(S),r&&!1===i(o,l))return;if(S.children){var T=n(S.children,i,r,o);if(t&&T)return u=new et,T.done(f(u,l,!0)),u}}if(s=!1,!r&&!1===i(o,l))return;o.shift(),e[l]!==S&&l--}}}var ml=f4e(!1),kv=f4e(!0);function KS(t,n){if(t&&Z(n))for(var e=0;e<t.length;e++){var i=t[e];if(i.name===n||i.caption===n||i.dataField===n||i.index===n)return e}return-1}function sJ(t,n){var i={value:t,valueText:t==t&&Es.format(t,n.format)||""};return n.customizeText?n.customizeText.call(n,i):i.valueText}function lJ(t){return function(n,e){var i=0,r=t(n),o=t(e),a=Z(r),s=Z(o);return a&&s&&(r>o?i=1:r<o&&(i=-1)),a&&!s&&(i=1),!a&&s&&(i=-1),i}}function Kc(t){for(var n=[],e=t.length-1;e>=0;e--)n.push(t[e].key||t[e].value);return n}function uJ(t,n,e,i){e=e||0,i=i||"children",t.length&&n(t,e);for(var r=0;r<t.length;r++){var o=t[r];o[i]&&o[i].length&&uJ(o[i],n,e+1,i)}}function dJ(t,n){var e=t[n],i=0;for(t.headerName===n?i=t.path.length:t.headerName&&t.headerName!==n&&t.oppositePath?i=t.oppositePath.length:we(("columns"===n?t.columnExpandedPaths:t.rowExpandedPaths)||[],function(o,a){i=Math.max(i,a.length)});e[i+1]&&e[i].expanded;)i++;return i}function m4e(t,n,e,i){var r=[];return Object.keys(n||[]).forEach(function(o){if(!o||0!==o.indexOf("__")){for(var S,a=1,s=e.length?e+"."+o:o,l=i[s],u=Ai(s),f=n[o];!Z(f)&&t[a];)f=u(t[a]),a++;!l&&Z(f)&&(l=Fa(f)),S=[{dataField:s,dataType:l,groupName:"date"===l?o:void 0,groupInterval:void 0,displayFolder:e}],"date"===l?S=S.concat(function nan(t){return Dr(["year","quarter","month"],function(n,e){return se({},t,{groupInterval:n,groupIndex:e})})}(S[0])):"object"===l&&(S=m4e(t,f,s,i)),r.push.apply(r,S)}}),r}function _4e(t,n){var e=v4e(n);return m4e(t,t[0],"",e)}function v4e(t){var n={};return we(t,function(e,i){n[i.dataField]=n[i.dataField]||i.dataType}),n}var ian={month:function(t){return Gn.getMonthNames()[t-1]},quarter:function(t){return Gn.format(new Date(2e3,3*t-1),"quarter")},dayOfWeek:function(t){return Gn.getDayNames()[t]}};function y4e(t){if("date"===t.dataType)t.format||l0(t,"format",ian[t.groupInterval]);else if("number"===t.dataType){var n=di(t.groupInterval)&&t.groupInterval>0&&t.groupInterval;n&&!t.customizeText&&l0(t,"customizeText",function(e){var r=Es.format(e.value+n,t.format);return e.valueText&&r?e.valueText+" - "+r:""})}}function $S(t,n){var e=[];n=n||[];for(var i=0;i<n.length;i++)e.push(se({},t[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[n[i]]}));return e}var C4e={createDrillDownDataSource:function(t,n){var e=this.getDrillDownItems(t,n);function i(o){return function(a){var s;return s=new et,Qt(e).done(function(l){new cs(l)[o](a).done(s.resolve).fail(s.reject)}).fail(s.reject),s}}return new Fl({load:i("load"),totalCount:i("totalCount"),key:this.key()})}};function b4e(t){return t.charAt(0).toUpperCase()+t.slice(1)}var ran=ji.inherit(function(){var t={year:function(te){return te&&te.getFullYear()},quarter:function(te){return te&&Math.floor(te.getMonth()/3)+1},month:function(te){return te&&te.getMonth()+1},day:function(te){return te&&te.getDate()},dayOfWeek:function(te){return te&&te.getDay()}};function n(te){return-1!==te.indexOf(".")?Ai(te):function(re){return re[te]}}function e(te){return function(re){var he=te(re);return he&&!(he instanceof Date)&&(he=Qr.deserializeDate(he)),he}}function i(te){we(te||[],function(re,he){var fe,Te,He,at,Re=he.dataField,Ze=he.levels;if(!he.selector){if(at=Re?n(Re):function(Bt){return Bt},Ze&&i(Ze),"date"===he.dataType){Te=t[he.groupInterval];var vt=e(at);fe=function(Bt){var St=vt(Bt);return Te?Te(St):St}}else"number"===he.dataType?(He=di(he.groupInterval)&&he.groupInterval>0&&he.groupInterval,fe=function(Bt){var St=at(Bt);return Pn(St)&&(St=Number(St)),He?Math.floor(St/He)*He:St}):fe=at;y4e(he),l0(he,"selector",fe)}})}function r(te,re,he,fe){var Te=[0],He="rows"===fe?re.rowExpandedPaths:re.columnExpandedPaths;return function at(vt,Bt,St,ct,Nt){var hn,bn,Xn,Ie,We,Ve,Kt=Bt.dimensions[ct],on=Bt.expandedPathsHash;Kt&&(hn=Kt.selector(Bt.data),Xn=St,(Ve=(We=Bt.childrenHash)[Ie=Nt=void 0!==Nt?Nt+"/./"+hn:hn+""])||(Ve={value:hn,index:We.length++},We[Ie]=Ve,Xn.push(Ve)),vt.push((bn=Ve).index),(on&&on[Nt]||Kt.expanded)&&(bn.children||(bn.children=[]),at(vt,Bt,bn.children,ct+1,Nt)))}(Te,{data:te,childrenHash:he[fe+"Hash"],dimensions:re[fe],expandedPathsHash:re.headerName!==fe&&He&&He.hash},he[fe],re.headerName===fe?re.path.length:0),Te}function o(te,re,he,fe){var Re,He,Ze,at,Te=[],vt=r(te,fe,he,"rows"),Bt=r(te,fe,he,"columns");for(He=0;He<vt.length;He++)for(re[Ze=vt[He]]=re[Ze]||[],Re=0;Re<Bt.length;Re++)Te.push(re[Ze][at=Bt[Re]]=re[Ze][at]||[]);return Te}function a(te){if(te){var re=te.hash={};te.forEach(function(he){var fe=he.map(function(Te){return Te+""}).join("/./");re[fe]=!0})}}function s(te){te.rows=te.rows||[],te.columns=te.columns||[],te.filters=te.filters||[],a(te.columnExpandedPaths),a(te.rowExpandedPaths),i(te.columns),i(te.rows),i(te.values),i(te.filters)}function l(te){return"custom"===te.summaryType?(te.calculateCustomSummary=te.calculateCustomSummary||Be,{seed:function(){var re={summaryProcess:"start",totalValue:void 0};return te.calculateCustomSummary(re),re},step:function(re,he){return re.summaryProcess="calculate",re.value=he,te.calculateCustomSummary(re),re},finalize:function(re){return re.summaryProcess="finalize",delete re.value,te.calculateCustomSummary(re),re.totalValue}}):DO[te.summaryType]||DO.count}function u(te,re,he){for(var fe=0;fe<te.length;fe++)for(var Te=te[fe],Re=Te.selector(he),He=l(Te),Ze="function"==typeof He.seed,at=0;at<re.length;at++){var vt=re[at];vt.length<=fe&&(vt[fe]=Ze?He.seed():He.seed),void 0===vt[fe]?vt[fe]=Re:Z(Re)&&(vt[fe]=He.step(vt[fe],Re))}}function f(te,re){var he=te&&te.valueOf(),fe=re&&re.valueOf();if(Array.isArray(te)){re=re||[];for(var Te=0;Te<te.length;Te++)if((he=te[Te]&&te[Te].valueOf())!==(fe=re[Te]&&re[Te].valueOf()))return!1;return!0}return he===fe}function S(te){var re=[];return we(te,function(he,fe){var Te=fe.filterValues||[];fe.groupName&&di(fe.groupIndex)||Te.length&&re.push(function(He){for(var Ze=fe.levels?function(Bt,St){var ct=[];return we(Bt,function(Nt,Kt){ct.push(Kt.selector(St))}),ct}(fe.levels,He):fe.selector(He),at=!1,vt=0;vt<Te.length;vt++)if(f(Te[vt],Ze)){at=!0;break}return"exclude"===fe.filterType?!at:at})}),re}function T(te){var re=S(te.rows).concat(S(te.columns)).concat(S(te.filters)),he=te[te.headerName],fe=te.path;return he&&re.push(function(Te){for(var Re,He=0;He<fe.length;He++)if(Re=he[He].selector(Te),ns(Re,!0)!==ns(fe[He],!0))return!1;return!0}),function(Te){for(var Re=0;Re<re.length;Re++)if(!re[Re](Te))return!1;return!0}}function L(te,re){var he=te.filter();return te.store()instanceof bw&&he?(he=ie(he,re),Ha(te.items()).filter(he).toArray()):te.items()}function z(te,re,he){var fe=new et,Te=function(He){te.store()instanceof cs&&(He.storeLoadOptions.filter=ie(He.storeLoadOptions.filter,re))};return te.on("customizeStoreLoadOptions",Te),!te.isLoaded()||he?Qt(he?te.load():te.reload()).done(function(){z(te,re).done(function(){fe.resolve(L(te,re))}).fail(fe.reject)}).fail(fe.reject):fe.resolve(L(te,re)),fe.always(function(){te.off("customizeStoreLoadOptions",Te)})}function j(te,re){re.forEach(function(he){if(he.dataField&&"date"===he.dataType){var fe=e(n(he.dataField));te[he.dataField]=function(Te){return fe(Te)}}})}function Y(te){var re={};return Array.isArray(te)?j(re,te):te&&["rows","columns","filters"].forEach(function(he){te[he]&&j(re,te[he])}),re}function ie(te,re){if(!Array.isArray(te))return te;te=te.slice(0),Pn(te[0])&&(te[1]instanceof Date||te[2]instanceof Date)&&(te[0]=re[te[0]]);for(var he=0;he<te.length;he++)te[he]=ie(te[he],re);return te}return{ctor:function(te){this._progressChanged=te.onProgressChanged||Be,this._dataSource=new Fl(te),this._dataSource.paginate(!1)},getFields:function(te){var re=this._dataSource,he=new et;return z(re,Y(te)).done(function(fe){he.resolve(_4e(fe,te))}).fail(he.reject),he},key:function(){return this._dataSource.key()},load:function(te){var re=this,he=re._dataSource,fe=new et;return s(te),z(he,Y(te),te.reload).done(function(Te){Qt(function R(te,re,he){var Re,He,fe={columns:[],rows:[],columnsHash:{length:1},rowsHash:{length:1}},Te=[],Ze=new et,at=0,vt=T(re);return function Bt(){for(var St=new Date,ct=at;at<te.length;at++){if(at>ct&&at%1e4==0&&new Date-St>=300)return he(at/te.length),void setTimeout(Bt,0);vt(He=te[at])&&(Re=o(He,Te,fe,re),u(re.values,Re,He))}var Kt;Kt=Te,we(re.values,function(on,hn){var bn=l(hn);bn.finalize&&we(Kt,function(Qn,Xn){we(Xn,function(Ie,We){We&&void 0!==We[on]&&(We[on]=bn.finalize(We[on]))})})}),he(1),Ze.resolve({rows:fe.rows,columns:fe.columns,values:Te,grandTotalRowIndex:0,grandTotalColumnIndex:0})}(),Ze}(Te,te,re._progressChanged)).done(fe.resolve)}).fail(fe.reject),fe},filter:function(){var te=this._dataSource;return te.filter.apply(te,arguments)},supportPaging:function(){return!1},getDrillDownItems:function(te,re){re=re||{},s(te=te||{});for(var Te,he=[],fe=this._dataSource.items(),Re=re.maxRowCount,He=re.customColumns,Ze=T(te),at=T({rows:$S(te.rows,re.rowPath),columns:$S(te.columns,re.columnPath),filters:[]}),vt=0;vt<fe.length;vt++){if(at(fe[vt])&&Ze(fe[vt])){if(He){Te={};for(var Bt=0;Bt<He.length;Bt++)Te[He[Bt]]=fe[vt][He[Bt]]}else Te=fe[vt];he.push(Te)}if(Re>0&&he.length===Re)break}return he}}}()).include(C4e),oan=function t(n,e,i){n=n||[],i=i||0;for(var r=0;r<n.length;r++){var o=n[r];e(o,i),o&&o.items&&o.items.length&&t(o.items,e,i+1)}};function w4e(t,n){var e=[];return we(t,function(i,r){e.push({selector:r.dataField,groupInterval:r.groupInterval,desc:n&&"desc"===r.sortOrder,isExpanded:i<t.length-1})}),e}function S4e(t,n,e,i){return[[t,i?"<":">=",e],i?"or":"and",[t,i?">=":"<",e+n]]}function D4e(t,n){var e=[];return t.searchValue?[t.dataField,"contains",t.searchValue]:(n="exclude"===t.filterType?n||"and":n||"or",we(t.filterValues,function(i,r){var o=[];Array.isArray(r)?t.levels&&t.levels.length&&(o=D4e({filterValues:r,filterType:t.filterType,levels:t.levels},"and")):o=function san(t,n){var e=function aan(t){var n=t.dataField,e=t.groupInterval;return"date"===t.dataType&&"string"==typeof e&&("quarter"===e.toLowerCase()&&(e="Month"),n=n+"."+b4e(e)),n}(t),i="exclude"===t.filterType,r=[e,i?"<>":"=",n];return Z(t.groupInterval)&&("string"==typeof t.groupInterval&&"quarter"===t.groupInterval.toLowerCase()?r=S4e(e,3,3*(n-1)+1,i):"number"==typeof t.groupInterval&&"date"!==t.dataType&&(r=S4e(e,t.groupInterval,n,i))),r}(t.levels?t.levels[i]:t,r),o.length&&(e.length&&e.push(n),e.push(o))}),e)}function E4e(t){var n=[];return we(t,function(e,i){var r=D4e(i);if(!r.length)return[];n.length&&n.push("and"),n.push(r)}),1===n.length&&(n=n[0]),n}function O4e(t,n){var i=function(r){return r&&r.length};return i(t)&&i(n)?[t,"and",n]:i(t)?t:n}function T4e(t,n,e,i,r){t[e]=t[e]||[],t[e][i]=t[e][i]||[],Z(t[e][i][r])||(t[e][i][r]=n)}function uan(t,n){return n&&"number"===n.dataType&&Pn(t)?Number(t):!n||"date"!==n.dataType||n.groupInterval||t instanceof Date?t:Qr.deserializeDate(t)}function dan(t,n,e,i){var r=[],o=[],a=i.rowHash,s=i.columnHash;function u(f,S,T,R,L){var j,ie,re,z=i[S+"Hash"],te=T.slice(0,R+1).join("/");return void 0!==z[te]?ie=z[te]:(ie={value:uan(f.key,L),index:i[S+"Index"]++,displayText:f.displayText},re=T.slice(0,R).join("/"),(R>0&&void 0!==z[re]?(j=z[re]).children=j.children||[]:i[S+"s"]).push(ie),z[te]=ie),ie}return n&&n.summary&&we(n.summary,function(f,S){T4e(i.values,S,i.grandTotalRowIndex,i.grandTotalColumnIndex,f)}),n&&n.groupCount>=0&&((t=[...Array(e.rows.length?e.rowSkip:e.columnSkip)].concat(t)).length=n.groupCount),oan(t,function(f,S){var L,z,T=S>=e.rows.length?e.rows.length:S,R=S>=e.rows.length?S-e.rows.length:0;if(!(S>=e.rows.length&&R>=e.columns.length)){S<e.rows.length&&(o=[]),S>=e.rows.length?f?(o[R]=f.key+"",L=u(f,"column",o,R,e.columns[R]),z=a[r.slice(0,T+1).join("/")]):i.columns.push({}):f?(r[T]=f.key+"",z=u(f,"row",r,T,e.rows[T]),L=s[o.slice(0,R+1).join("/")]):i.rows.push({});var j=z&&z.index||i.grandTotalRowIndex,Y=L&&L.index||i.grandTotalColumnIndex;we(f&&f.summary||[],function(ie,te){T4e(i.values,te,j,Y,ie)})}}),i}function w8(t){return(t||[]).filter(n=>n.filterValues&&n.filterValues.length||n.searchValue)}function I4e(t,n){if(t.headerName){if(n===t.headerName)return t.path.length;if(t.oppositePath)return t.oppositePath.length}return 0}function cJ(t,n,e,i){var r=[],o=e>i?0:i,a=t.headerName!==n?t[n].slice(o,e):[],s="rows"===n?t.rowExpandedPaths:t.columnExpandedPaths;return we(a,function(l,u){var f=[];we(s,function(S,T){if(T=T.slice(o,e),l<T.length){var R=T[l];-1===f.indexOf(R)&&f.push(R)}}),f.length&&r.push(se({},u,{filterType:"include",filterValues:f}))}),r}function k4e(t,n,e,i,r,o){var f,s="columns"===n?"rows":"columns",l=t[n],u=[];if((("columns"===n?t.columnExpandedPaths:t.rowExpandedPaths)||[]).length)for(var S=e;S<i+1;S++)(f={filters:r.concat(cJ(t,n,S,o))})[n]=l.slice(e,S+1),f[s]=[],u.push(se({},t,f));else(f={filters:r})[n]=l.slice(e,i+1),f[s]=[],u.push(se({},t,f));return u[0].includeTotalSummary=!0,u}function M4e(t){var n=0;return we(t,function(e,i){if(!i.expanded)return n=e,!1}),n}function S8(t){we(t||[],function(n,e){var i=e.levels;i&&S8(i),y4e(e)})}const pan=ji.inherit({ctor:function(t){this._dataSource=new Fl(t),this._store=this._dataSource.store()},getFields:function(t){var n=new et;return this._store.load({skip:0,take:20}).done(function(e){var i=NO(e);n.resolve(_4e(i.data,t))}).fail(n.reject),n},key:function(){return this._store.key()},load:function(t){var n=this,e=new et,i={rows:[],columns:[],values:[],grandTotalRowIndex:0,grandTotalColumnIndex:0,rowHash:{},columnHash:{},rowIndex:1,columnIndex:1},r=function han(t){var n=dJ(t,"rows"),e=dJ(t,"columns"),i=t.filters||[],r=I4e(t,"columns"),o=M4e(t.columns),a=M4e(t.rows),s=I4e(t,"rows"),l=[],u=k4e(t,"columns",r,e,i=i.concat(w8(t.rows)).concat(w8(t.columns)).concat(function can(t){return $S(t[t.headerName],t.path).concat($S(t["rows"===t.headerName?"columns":"rows"],t.oppositePath||[]))}(t)),o);if(t.rows.length&&t.columns.length){"rows"!==t.headerName&&(l=l.concat(u));for(var f=s;f<n+1;f++)for(var S=t.rows.slice(s,f+1),T=cJ(t,"rows",f,a),R=r;R<e+1;R++){var L=se({},t,{columns:t.columns.slice(r,R+1),rows:S,filters:i.concat(cJ(t,"columns",R,o)).concat(T)});l.push(L)}}else l=t.columns.length?u:k4e(t,"rows",s,n,i,a);return l}(t),o=[];return S8(t.rows),S8(t.columns),S8(t.filters),we(r,function(a,s){o.push(n._store.load(function lan(t,n,e){var i=E4e(t.filters),r=w4e(t.rows,t.rowTake).concat(w4e(t.columns,t.columnTake)),o={groupSummary:[],totalSummary:[],group:r.length?r:void 0,take:r.length?void 0:1};return t.rows.length&&t.rowTake?(o.skip=t.rowSkip,o.take=t.rowTake,o.requireGroupCount=!0):t.columns.length&&t.columnTake&&!e&&(o.skip=t.columnSkip,o.take=t.columnTake,o.requireGroupCount=!0),n&&(i=O4e(i,n)),i.length&&(o.filter=i),we(t.values,function(a,s){var l={selector:s.dataField,summaryType:s.summaryType||"count"};o.groupSummary.push(l),t.includeTotalSummary&&o.totalSummary.push(l)}),o}(s,n.filter(),t.rows.length)))}),Qt.apply(null,o).done(function(){var a=o.length>1?arguments:[arguments];we(a,function(s,l){var u=NO(l[0],l[1]);dan(u.data,u.extra,r[s],i)}),e.resolve({rows:i.rows,columns:i.columns,values:i.values,grandTotalRowIndex:i.grandTotalRowIndex,grandTotalColumnIndex:i.grandTotalColumnIndex})}).fail(e.reject),e},filter:function(){return this._dataSource.filter.apply(this._dataSource,arguments)},supportPaging:function(){return!1},createDrillDownDataSource:function(t,n){var e=this._store,r=E4e($S((t=t||{}).rows,(n=n||{}).rowPath).concat($S(t.columns,n.columnPath)).concat(w8(t.rows)).concat(t.filters||[]).concat(w8(t.columns)));return new Fl({load:function(o){return e.load(se({},o,{filter:O4e(r,o.filter),select:n.customColumns}))}})}});function A4e(t,n,e,i){var r=n[e]||[],a=[];uJ(t[e],function(s,l){var f=a[l]=a[l]||function fan(t,n,e,i,r){var o=r?"asc":t.sortOrder,a=function _an(t,n){var e="text";return"none"===t?e="index":(n||"displayText"!==t)&&(e="value"),e}(t.sortBy,r),s=t.sortingMethod?function(f,S){return t.sortingMethod(f,S)}:lJ(function(f){return f[a]}),l=!r&&function man(t,n,e,i){var r=n.values,o=KS(e.values,t.sortBySummaryField),a="rows"===i,l=a?n.grandTotalRowIndex:n.grandTotalColumnIndex,u=t.sortBySummaryPath||[],f=u.length?function van(t,n){var e=null,i=(n||[]).join(".");return i.length&&ml(t,function(r){var o=r[0],a=Kc(r).join("."),s=Dr(r,function(l){return l.text}).reverse().join(".");if(i===a||o.key&&s===i)return e=r[0].index,!1}),e}(a?n.columns:n.rows,u):l;if(r&&r.length&&o>=0&&Z(f))return function(S){var L=((r[a?S.index:f]||[[]])[a?f:S.index]||[])[o];return Z(L)?L:null}}(t,n,e,i),u=l&&lJ(l);return function(f,S){var T=u&&u(f,S)||s(f,S);return"desc"===o?-T:T}}(r[l]||{},t,n,e,i);s.sort(f)},n.headerName===e?n.path.length:0)}var yan=Fn(),Can=ji.inherit(function(){var t='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Discover xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>{2}</RequestType><Restrictions><RestrictionList><CATALOG_NAME>{0}</CATALOG_NAME><CUBE_NAME>{1}</CUBE_NAME></RestrictionList></Restrictions><Properties><PropertyList><Catalog>{0}</Catalog>{3}</PropertyList></Properties></Discover></Body></Envelope>',n="SELECT {2} FROM {0} {1} CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS";function e(ct,Nt){var Kt=new et,on=ct.beforeSend,hn={url:ct.url,dataType:"text",data:Nt,headers:{"Content-Type":"text/xml"},xhrFields:{},method:"POST"};return Yt(on)&&on(hn),function ean(t){return mh.sendRequest(t)}(hn).fail(function(){Kt.reject(arguments)}).done(function(bn){var Xn,Qn=new yan.DOMParser;try{try{Xn=Qn.parseFromString(bn,"text/xml")}catch{Xn=void 0}if(!Xn||Xn.getElementsByTagName("parsererror").length||0===Xn.childNodes.length)throw new uo.Error("E4023",bn)}catch(Ie){Kt.reject({statusText:Ie.message,stack:Ie.stack,responseText:bn})}Kt.resolve(Xn)}),Kt}function i(){var ct=Gxe();return void 0!==ct?Er("<LocaleIdentifier>{0}</LocaleIdentifier>",ct):""}function r(ct){return(ct.hierarchyName||ct.dataField)+".[All]"}function o(ct){var Nt=ct.dataField+".allMembers",Kt=ct.searchValue;return Kt&&(Kt=Kt.replace(/'/g,"''"),Nt="Filter("+Nt+", instr("+ct.dataField+".currentmember.member_caption,'"+Kt+"') > 0)"),Nt}function a(ct){var Nt=ct.join(",");return ct.length>1?Er("CrossJoin({0})",Nt):Nt}function s(ct,Nt,Kt,on,hn,bn,Qn,Xn){for(var gt,Ct,Dt,Ie=[],We=bn[Qn],Ve=[],wt=on;wt<=Nt;wt++){var rn=We[wt],mn=rn.dataField,Vn=We[wt-1]&&We[wt-1].hierarchyName,Yn=rn.hierarchyName,vi=!Yn||!We[wt+1]||We[wt+1].hierarchyName!==Yn,Si=ct.length+Kt+on;if(gt=null,Ve.push(rn),wt<ct.length)vi&&(gt="("+mn+"."+fe(ct[wt],mn)+")");else if(wt<=Si)if(0===wt&&0===Kt){var nr=r(We[on]);gt=Yn?nr+","+We[on].dataField:o(We[on])}else Yn?(Dt=fe(hn[hn.length-1]),(vi||wt===Si)&&(Vn===Yn?(hn.length&&(Ct=We[hn.length-1]),(!Ct||Ct.hierarchyName!==Yn)&&(Ct=We[wt-1],Dt=""),gt="Descendants({"+(Dt||Ct.dataField)+"}, "+mn+", SELF_AND_BEFORE)"):gt=o(rn))):gt=o(rn);else(!Yn||Vn!==Yn)&&(gt="("+r(rn)+")");gt&&(gt=Er("{{0}}",gt),Xn&&(gt=Er("Order({0}, {1}, {2})",gt,(rn.hierarchyName||rn.dataField)+("displayText"===rn.sortBy?".MEMBER_CAPTION":".MEMBER_VALUE"),"desc"===rn.sortOrder?"DESC":"ASC")),Ie.push(gt))}return a(Ie)}function l(ct,Nt,Kt,on,hn,bn,Qn,Xn,Ie,We){var Ct,Ve=-1,gt=bn[Qn];do{Ve++,Ct=Nt.length+Ve+on;var Dt=s(Nt,Kt,Ve,on,hn,bn,Qn,Ie);!Ie&&!We&&(Dt=Er("NonEmpty({0}, {1})",Dt,Xn)),ct.push(Dt)}while(gt[Ct]&&gt[Ct+1]&&gt[Ct].expanded)}function u(ct,Nt,Kt,on){return Nt.push(Er("{0} {1} as {2}",on=on||"set",Kt=Kt||"[DX_Set_"+Nt.length+"]",ct)),Kt}function f(ct,Nt,Kt,on,hn){var mn,Vn,bn=ct[Nt],Qn=[],Xn=[],Ie=[],We=0,Ve=0,gt=[],Ct=Er("{{0}}",Kt.join(","));if(bn&&bn.length){ct.headerName===Nt?We=(Xn=ct.path).length:ct.headerName&&ct.oppositePath?We=(Xn=ct.oppositePath).length:Ie=("columns"===Nt?ct.columnExpandedPaths:ct.rowExpandedPaths)||Ie,Ve=dJ(ct,Nt),l(Qn,[],Ve,We,Xn,ct,Nt,Ct,"rows"===Nt?ct.rowTake:ct.columnTake,ct.totalsOnly),we(Ie,function(Yn,vi){l(Qn,vi,Ve,We,vi,ct,Nt,Ct)});for(var Dt=Ve;Dt>=Xn.length;Dt--)bn[Dt].hierarchyName&&(hn.visibleLevels[bn[Dt].hierarchyName]=hn.visibleLevels[bn[Dt].hierarchyName]||[],hn.visibleLevels[bn[Dt].hierarchyName].push(bn[Dt].dataField))}if(Qn.length){var wt=(Vn=(mn=Qn).join(","),mn.length>1?"Union("+Vn+")":Vn);"rows"===Nt&&ct.rowTake&&(wt=Er("Subset({0}, {1}, {2})",wt,ct.rowSkip>0?ct.rowSkip+1:0,ct.rowSkip>0?ct.rowTake:ct.rowTake+1)),"columns"===Nt&&ct.columnTake&&(wt=Er("Subset({0}, {1}, {2})",wt,ct.columnSkip>0?ct.columnSkip+1:0,ct.columnSkip>0?ct.columnTake:ct.columnTake+1));var rn="[DX_".concat(Nt,"]");gt.push(u(wt,on,rn)),ct.totalsOnly&&gt.push(u("COUNT(".concat(rn,")"),on,"[DX_".concat(Nt,"_count]"),"member"))}return"columns"===Nt&&Kt.length&&!ct.skipValues&&gt.push(Ct),Er("{0} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME, MEMBER_VALUE ON {1}",a(gt),Nt)}function S(ct){var Nt=[];return we(ct,function(Kt,on){var Xn,hn=on.dataField,bn=[],Qn=on.filterValues||[];on.hierarchyName&&di(on.groupIndex)||(we(Qn,function(Ie,We){var Ve=hn+"."+fe(Array.isArray(We)?We[We.length-1]:We,hn);"exclude"===on.filterType&&(bn.push(Ve+".parent"),Ve="Descendants("+Ve+")"),bn.push(Ve)}),Qn.length&&(Xn=Er("{{0}}",bn.join(",")),"exclude"===on.filterType&&(Xn="Except("+o(on)+","+Xn+")"),Nt.push(Xn)))}),Nt.length?a(Nt):""}function T(ct,Nt,Kt,on){var hn="["+on+"]";return we([ct,Nt,Kt],function(bn,Qn){Qn&&(hn=Er("(SELECT {0} FROM {1})",Qn+"on 0",hn))}),hn}function R(ct,Nt,Kt,on,hn,bn,Qn){var Xn=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},Ie="",We=(Nt.length?"with "+Nt.join(" "):"")+" ";if(ct.length){var Ve;if(Xn.totalsOnly){var gt=[];on.length&&gt.push("[DX_rows_count]"),Kt.length&&gt.push("[DX_columns_count]"),Ve="{".concat(gt.join(","),"} on columns")}else Ve=ct.join(",");Ie=We+Er(n,T(S(Kt),S(on),S(hn||[]),Qn),bn.length?Er("WHERE ({0})",bn.join(",")):"",Ve)}return Ie}function L(ct,Nt){return Dr(Nt,function(Kt){return Pn(Kt.expression)&&u(Kt.expression,ct,Kt.dataField,"member"),Kt.dataField})}function z(ct,Nt,Kt,on){we(on,function(hn,bn){var Qn=Nt[Kt][hn];(!Qn.hierarchyName||Qn.hierarchyName!==Nt[Kt][hn+1].hierarchyName)&&ct.push(Qn.dataField+"."+fe(bn,Qn.dataField))})}function j(ct,Nt,Kt){var on=ct.columns||[],hn=ct.rows||[],bn=ct.values&&ct.values.length?ct.values:[{dataField:"[Measures]"}],Qn=[],Xn=[],Ie=[],We=L(Xn,bn);return Kt.measureCount=ct.skipValues?1:bn.length,Kt.visibleLevels={},ct.headerName&&ct.path&&z(Qn,ct,ct.headerName,ct.path),ct.headerName&&ct.oppositePath&&z(Qn,ct,"rows"===ct.headerName?"columns":"rows",ct.oppositePath),(on.length||We.length)&&Ie.push(f(ct,"columns",We,Xn,Kt)),hn.length&&Ie.push(f(ct,"rows",We,Xn,Kt)),R(Ie,Xn,on,hn,ct.filters,Qn,Nt,ct)}function Y(ct,Nt,Kt){we(Kt,function(on,hn){var bn=Nt[on];bn.hierarchyName&&(Nt[on+1]||{}).hierarchyName===bn.hierarchyName||ct.push(bn.dataField+"."+fe(hn,bn.dataField))})}function ie(ct){return parseInt(ct,10)}function te(ct,Nt){return re((ct.getElementsByTagName(Nt)||[])[0])}function re(ct){return ct&&(ct.textContent||ct.text||ct.innerHTML)||""}function he(ct,Nt,Kt){for(var on=[],hn=[],bn=0,Qn=[],Xn=ct.getElementsByTagName("Cell"),Ie={},We=0;We<Xn.length;We++){var Ve=Xn[We],gt=Ve.getElementsByTagName("Value")[0],Ct=gt&&gt.getElementsByTagName("Error")||[],Dt=0===Ct.length?re(gt):"#N/A",wt=parseFloat(Dt),rn=Dt-wt+1>0,mn=ie(Ve.getAttribute("CellOrdinal"));Ct.length&&(Ie[re(Ct[0].getElementsByTagName("ErrorCode")[0])]=re(Ct[0].getElementsByTagName("Description")[0])),Qn[mn]={value:rn?wt:Dt||null}}return we(Nt[1],function(){var Vn=[];on.push(Vn),we(Nt[0],function(){0==bn%Kt&&Vn.push(hn=[]),hn.push(Qn[bn]?Qn[bn].value:null),bn++})}),Object.keys(Ie).forEach(function(Vn){uo.log("W4002",Ie[Vn])}),on}function fe(ct,Nt){return ct&&(ct=Pn(ct)&&-1!==ct.indexOf("&")?ct:"["+ct+"]",Nt&&0===ct.indexOf(Nt+".")&&(ct=ct.slice(Nt.length+1,ct.length))),ct}function Te(ct,Nt,Kt,on){var hn=ct[Nt];return hn||(ct[Nt]=hn={}),!Z(hn.value)&&Kt&&(hn.text=Kt.caption,hn.value=Kt.value,hn.key=Nt||"",hn.levelName=Kt.levelName,hn.hierarchyName=Kt.hierarchyName,hn.parentName=Kt.parentName,hn.index=on,hn.level=Kt.level),hn}function Re(ct,Nt){var Kt=[],on=ct.children&&(ct.children.length?ct.children:Object.keys(ct.children.grandTotalHash||{}).reduce((Xn,Ie)=>Xn.concat(ct.children.grandTotalHash[Ie].children),[])),hn=on&&on[0];if(hn&&(Nt[hn.hierarchyName]&&Nt[hn.hierarchyName].includes(hn.levelName)||!Nt[hn.hierarchyName]||0===hn.level)){var bn=on.filter(Xn=>Xn.hierarchyName===hn.hierarchyName);return bn.grandTotalHash=on.grandTotalHash,bn}if(hn)for(var Qn=0;Qn<on.length;Qn++)on[Qn].hierarchyName===hn.hierarchyName&&Kt.push.apply(Kt,Re(on[Qn],Nt));return Kt}function He(ct,Nt,Kt,on){var hn=[];we(Nt,function(Xn,Ie){var We={children:hn},Ve=Z(Kt)?Math.floor(Xn/Kt):Xn;we(Ie,function(gt,Ct){We=function(Dt,wt,rn){var mn=rn.children=rn.children||[],Vn=mn.hash=mn.hash||{},Yn=mn.grandTotalHash=mn.grandTotalHash||{};wt.parentName&&(mn=(rn=Te(Vn,wt.parentName)).children=rn.children||[]);var vi=Te(Vn,wt.name,wt,Dt);return wt.hasValue&&!vi.added&&(vi.index=Dt,vi.added=!0,mn.push(vi)),rn.value&&rn.parentName||!wt.parentName?Yn[rn.name]&&delete Yn[wt.parentName]:Yn[wt.parentName]=rn,vi}(Ve,Ct,We)})});var bn={children:hn};bn.children=Re(bn,on);var Qn=function(Xn,Ie){var We;if(1===Xn.children.length&&""===Xn.children[0].parentName){We=Xn.children[0].index;var Ve=Xn.children.grandTotalHash;Xn.children=Xn.children[0].children||[],Xn.children.grandTotalHash=Ve,Xn.children=Re(Xn,Ie)}else 0===Xn.children.length&&(We=0);return We}(bn,on);return ml(bn.children,function(Xn){var Ie=Xn[0],We=Re(Ie,on);We.length?Ie.children=We:delete Ie.children,delete Ie.levelName,delete Ie.hierarchyName,delete Ie.added,delete Ie.parentName,delete Ie.level},!0),we(bn.children||[],function(Xn,Ie){ct.push(Ie)}),Qn}function Ze(ct){var Nt=ct.getElementsByTagName("soap:Fault"),Kt=ct.getElementsByTagName("Fault"),on=U([].slice.call(Kt.length?Kt:Nt)).find("Error");if(on.length){var hn=on.attr("Description"),bn=new uo.Error("E4000",hn);return uo.log("E4000",hn),bn}return null}function vt(ct,Nt,Kt,on){var hn=[],bn="MEASURE"===Nt,Qn=bn?"MEASUREGROUP_NAME":Nt+"_DISPLAY_FOLDER";return we(ct.getElementsByTagName("row"),function(Xn,Ie){var We="LEVEL"===Nt?te(Ie,"HIERARCHY_UNIQUE_NAME"):void 0,Ve=te(Ie,"LEVEL_NUMBER"),gt=te(Ie,Qn);if(bn&&(gt=on[gt]||gt),("0"!==Ve||"true"!==te(Ie,Nt+"_IS_VISIBLE"))&&"2"!==te(Ie,"DIMENSION_TYPE")){var Ct=bn?"DX_MEASURES":te(Ie,"DIMENSION_UNIQUE_NAME"),Dt=te(Ie,Nt+"_UNIQUE_NAME");hn.push({dimension:Kt.names[Ct]||Ct,groupIndex:Ve?ie(Ve)-1:void 0,dataField:Dt,caption:te(Ie,Nt+"_CAPTION"),hierarchyName:We,groupName:We,displayFolder:gt,isMeasure:bn,isDefault:!!Kt.defaultHierarchies[Dt]})}}),hn}function Bt(ct){var Nt=(ct=ct.replace(/_x(....)_/g,function(Kt,on){return String.fromCharCode(parseInt(on,16))})).match(/\[.+?\]/gi);return Nt&&Nt.length&&(ct=Nt[Nt.length-1]),ct.replace(/\[/gi,"").replace(/\]/gi,"").replace(/\$/gi,"").replace(/\./gi," ")}function St(ct,Nt){return e(ct,Er('<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement>{0}</Statement></Command><Properties><PropertyList><Catalog>{1}</Catalog><ShowHiddenCubes>True</ShowHiddenCubes><SspropInitAppName>Microsoft SQL Server Management Studio</SspropInitAppName><Timeout>3600</Timeout>{2}</PropertyList></Properties></Execute></Body></Envelope>',Nt=U("<div>").text(Nt).html(),ct.catalog,i()))}return{ctor:function(ct){this._options=ct},getFields:function(){var ct=this._options,Nt=ct.catalog,Kt=ct.cube,on=i(),hn=e(ct,Er(t,Nt,Kt,"MDSCHEMA_DIMENSIONS",on)),bn=e(ct,Er(t,Nt,Kt,"MDSCHEMA_MEASURES",on)),Qn=e(ct,Er(t,Nt,Kt,"MDSCHEMA_HIERARCHIES",on)),Xn=e(ct,Er(t,Nt,Kt,"MDSCHEMA_LEVELS",on)),Ie=new et;return Qt(hn,bn,Qn,Xn).then(function(We,Ve,gt,Ct){e(ct,Er(t,Nt,Kt,"MDSCHEMA_MEASUREGROUPS",on)).done(function(Dt){var nr,wt=(nr={names:{},defaultHierarchies:{}},we(U(We).find("row"),function(){var lo=U(this),Wi="2"===lo.children("DIMENSION_TYPE").text()?"DX_MEASURES":lo.children("DIMENSION_UNIQUE_NAME").text();nr.names[Wi]=lo.children("DIMENSION_CAPTION").text(),nr.defaultHierarchies[lo.children("DEFAULT_HIERARCHY").text()]=!0}),nr),rn=vt(gt,"HIERARCHY",wt),mn=vt(Ct,"LEVEL",wt),Vn=function(Si){var nr={};return we(Si.getElementsByTagName("row"),function(lo,ci){nr[te(ci,"MEASUREGROUP_NAME")]=te(ci,"MEASUREGROUP_CAPTION")}),nr}(Dt),Yn=vt(Ve,"MEASURE",wt,Vn).concat(rn),vi={};we(mn,function(Si,nr){vi[nr.hierarchyName]=vi[nr.hierarchyName]||[],vi[nr.hierarchyName].push(nr)}),we(rn,function(Si,nr){vi[nr.dataField]&&vi[nr.dataField].length>1&&(nr.groupName=nr.hierarchyName=nr.dataField,Yn.push.apply(Yn,vi[nr.hierarchyName]))}),Ie.resolve(Yn)}).fail(Ie.reject)}).fail(Ie.reject),Ie},load:function(ct){var bn,Nt=new et,Kt=this._options,on={skipValues:ct.skipValues},hn=j(ct,Kt.cube,on);(ct.rowSkip||ct.rowTake||ct.columnTake||ct.columnSkip)&&(bn=j(se({},ct,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),Kt.cube,{}));var Qn=()=>{hn?Qt(St(Kt,hn),bn&&St(Kt,bn)).done(function(Xn,Ie){var We=Ze(Xn)||Ie&&Ze(Ie);if(We)Nt.reject(We);else{var Ve=function at(ct,Nt){var Kt={columns:[],rows:[]},on=Nt.measureCount,hn=function(bn,Qn){var Xn=[];for(we(bn.getElementsByTagName("Axis"),function(Ie,We){var Ve=We.getAttribute("name"),gt=[],Ct=0;0===Ve.indexOf("Axis")&&di(ie(Ve.substr(4)))&&(Xn.push(gt),we(We.getElementsByTagName("Tuple"),function(Dt,wt){var ci,rn=wt.childNodes,mn=0,Vn=[],Yn=Qn?rn.length:rn.length-1;1===Xn.length&&Yn--,gt.push(Vn);for(var Si=Yn;Si>=0;Si--){var nr=rn[Si],lo=ie(te(nr,"LNum"));Vn[Si]={caption:te(nr,"Caption"),value:(ci=te(nr,"MEMBER_VALUE"),di(ci)?parseFloat(ci):ci),level:lo,index:Ct++,hasValue:!(mn||!lo&&0!==Si),name:te(nr,"UName"),hierarchyName:rn[Si].getAttribute("Hierarchy"),parentName:te(nr,"PARENT_UNIQUE_NAME"),levelName:te(nr,"LName")},mn+=lo}}))});Xn.length<2;)Xn.push([[{level:0}]]);return Xn}(ct,Nt.skipValues);return Kt.grandTotalColumnIndex=He(Kt.columns,hn[0],on,Nt.visibleLevels),Kt.grandTotalRowIndex=He(Kt.rows,hn[1],void 0,Nt.visibleLevels),Kt.values=he(ct,hn,on),Kt}(Xn,on);Ie&&function(gt,Ct,Dt){var wt=[],rn=Ct.columns||[],mn=Ct.rows||[];rn.length&&wt.push({}),mn.length&&wt.push({});var Vn=he(Dt,[[{}],[{},{}]],1);if(!rn.length&&mn.length&&(gt.rowCount=Math.max(Vn[0][0][0]-1,0)),!mn.length&&rn.length&&(gt.columnCount=Math.max(Vn[0][0][0]-1,0)),mn.length&&rn.length&&(gt.rowCount=Math.max(Vn[0][0][0]-1,0),gt.columnCount=Math.max(Vn[1][0][0]-1,0)),void 0!==gt.rowCount&&Ct.rowTake){gt.rows=[...Array(Ct.rowSkip)].concat(gt.rows),gt.rows.length=gt.rowCount;for(var Yn=0;Yn<gt.rows.length;Yn++)gt.rows[Yn]=gt.rows[Yn]||{}}if(void 0!==gt.columnCount&&Ct.columnTake){gt.columns=[...Array(Ct.columnSkip)].concat(gt.columns),gt.columns.length=gt.columnCount;for(var vi=0;vi<gt.columns.length;vi++)gt.columns[vi]=gt.columns[vi]||{}}}(Ve,ct,Ie),Nt.resolve(Ve)}}).fail(Nt.reject):Nt.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return ct.delay?setTimeout(Qn,ct.delay):Qn(),Nt},supportPaging:function(){return!0},getDrillDownItems:function(ct,Nt){var Kt=new et,on=this._options,hn=function(bn,Qn,Xn){var Ie=bn.columns||[],We=bn.rows||[],gt=[],Ct=[],Dt=[],wt=L(Ct,bn.values&&bn.values.length?bn.values:[{dataField:"[Measures]"}]),rn=Xn.maxRowCount,mn=Xn.customColumns||[],Vn=mn.length>0?" return "+mn.join(","):"";Y(gt,Ie,Xn.columnPath||[]),Y(gt,We,Xn.rowPath||[]),(Ie.length||wt.length)&&Dt.push([(wt[Xn.dataIndex]||wt[0])+" on 0"]);var Yn=R(Dt,Ct,Ie,We,bn.filters,gt,Qn);return Yn&&"drillthrough"+(rn>0?" maxrows "+rn:"")+Yn+Vn}(ct,on.cube,Nt);return hn?Qt(St(on,hn)).done(function(bn){var Qn=Ze(bn);Qn?Kt.reject(Qn):Kt.resolve(function(Xn){for(var Ie=Xn.getElementsByTagName("row"),We=[],Ve={},gt=0;gt<Ie.length;gt++){for(var Ct=Ie[gt].childNodes,Dt={},wt=0;wt<Ct.length;wt++){var rn=Ct[wt].tagName;Dt[Ve[rn]=Ve[rn]||Bt(rn)]=re(Ct[wt])}We.push(Dt)}return We}(bn))}).fail(Kt.reject):Kt.resolve([]),Kt},key:Be,filter:Be}}()).include(C4e),Ib="column",qS="row",Pd=null,F4e=function(t,n){var e=t/n;return(!Z(t)||isNaN(e))&&(e=Pd),e},hJ=function(t,n){return F4e(t.value(),t.grandTotal(n).value())},P4e=function(t,n){var e=t.parent(n),i=e?e.value():t.value();return F4e(t.value(),i)},R4e=function(t){return function(n){var e=n.prev(Ib,t),i=e&&e.value();return Z(i)&&Z(n.value())?n.value()-i:Pd}},xan={percentOfColumnTotal:function(t){return P4e(t,qS)},percentOfRowTotal:function(t){return P4e(t,Ib)},percentOfColumnGrandTotal:function(t){return hJ(t,qS)},percentOfRowGrandTotal:function(t){return hJ(t,Ib)},percentOfGrandTotal:function(t){return hJ(t)}},wan=function t(n,e){if(n&&n.parent(e)){var i=n.prev(e);return i||(i=t(n.parent(e),e)),i}},San=function(t){if(t.runningTotal){var n=t.runningTotal===Ib?qS:Ib;return function(e){var i=t.allowCrossGroupCalculation?wan(e,n):e.prev(n,!1),r=e.value(!0),o=i&&i.value(!0);return Z(o)&&Z(r)?r=o+r:Z(o)&&(r=o),r}}};function gJ(t,n,e){var i={index:-1};if(!Jn(n))if(e.fields[n])n=e[n];else{var r=t.columns.concat(t.rows).concat(t.values),o=KS(r,n);n=e[n]=r[o]}if(n){var a=n.area||"data";i=e.positions[n.index]=e.positions[n.index]||{area:a,index:t["data"===a?"values":a+"s"].indexOf(n)}}return i}function CM(t){return t===qS?"_rowPath":"_columnPath"}var YS=function(t,n,e,i,r,o){this._columnPath=t,this._rowPath=n,this._fieldIndex=r,this._fieldsCache=o||{fields:{},positions:{}},this._data=e,this._descriptions=i;var a=e.values&&e.values[n[0].index]&&e.values[n[0].index][t[0].index];a&&(a.originalCell=a.originalCell||a.slice(),a.postProcessedFlags=a.postProcessedFlags||[],this._cell=a)};function Dan(t){var n=t.summaryDisplayMode,e=t.allowCrossGroupCalculation,i=Pd;return Yt(t.calculateSummaryValue)?i=t.calculateSummaryValue:n&&(i="absoluteVariation"===n?R4e(e):"percentVariation"===n?function(t){var n=R4e(t);return function(e){var i=n(e),r=e.prev(Ib,t),o=r&&r.value();return i!==Pd&&o?i/o:Pd}}(e):xan[n],i&&!t.format&&-1!==n.indexOf("percent")&&l0(t,"format","percent")),i}function L4e(t,n,e,i){var r=t.values[n][e]=t.values[n][e]||[],o=r.originalCell;o&&((r.allowResetting||!i)&&(t.values[n][e]=o.slice()),t.values[n][e].allowResetting=i)}YS.prototype=se(YS.prototype,{_getPath:function(t){return this[CM(t)]},_getDimension:function(t){return this._descriptions[t=t===qS?"rows":"columns"]},_createCell:function(t){return new YS(t._columnPath||this._columnPath,t._rowPath||this._rowPath,this._data,this._descriptions,this._fieldIndex)},parent:function(t){var n=this._getPath(t).slice(),e={};return n.shift(),n.length?(e[CM(t)]=n,this._createCell(e)):Pd},children:function(t){var n=this._getPath(t).slice(),e=n[0],i=[],r={};if(e.children)for(var o=0;o<e.children.length;o++)r[CM(t)]=[e.children[o]].concat(n.slice()),i.push(this._createCell(r));return i},grandTotal:function(t){var n={},e=this._rowPath,i=this._columnPath,r=this._getPath(t),o=CM(t);return t?n[o]=[r[r.length-1]]:(n._rowPath=[e[e.length-1]],n._columnPath=[i[i.length-1]]),this._createCell(n)},next:function(t,n){var o,e=this._getPath(t),i=e[0],r=this.parent(t);if(r){var a=e[1].children.indexOf(i);if((o=r.children(t))[a+1])return o[a+1]}if(n&&r){do{o=(r=r.next(t,n))?r.children(t):[]}while(r&&!o.length);return o[0]||Pd}return Pd},prev:function(t,n){var o,e=this._getPath(t),i=e[0],r=this.parent(t);if(r){var a=e[1].children.indexOf(i);if((o=r.children(t))[a-1])return o[a-1]}if(n&&r){do{o=(r=r.prev(t,n))?r.children(t):[]}while(r&&!o.length);return o[o.length-1]||Pd}return Pd},cell:function(){return this._cell},field:function(t){if("data"===t)return this._descriptions.values[this._fieldIndex];var n=this._getPath(t);return this._getDimension(t)[n.length-2]||Pd},child:function(t,n){for(var e=this.children(t),i=0;i<e.length;i++){var r=r||e[i].field(t);if(e[i].value(r)===n)return e[i]}return Pd},slice:function(t,n){var e={},i=gJ(this._descriptions,t,this._fieldsCache),r=i.area,o=i.index,a=Pd;if(r===qS||r===Ib){var s=this._getPath(r).slice(),l=-1!==o&&s.length-2-o;if(s[l]){for(var u=l;u>=0;u--){if(s[u+1]){var f=s[u+1].children||[],S=u===l?n:s[u].value;s[u]=void 0;for(var T=0;T<f.length;T++)if(f[T].value===S){s[u]=f[T];break}}if(void 0===s[u])return a}e[CM(r)]=s,a=this._createCell(e)}}return a},value:function(t,n){var e=this._cell,i=this._fieldIndex,r=!0===t||!1===t,o=r?Pd:t,a=r&&t||n;if(Z(o)){var s=gJ(this._descriptions,o,this._fieldsCache);if(i=s.index,"data"!==s.area){var l=this._getPath(s.area),u=-1!==i&&l.length-2-i;return l[u]&&l[u].value}}return e&&e.originalCell?a?e[i]:e.originalCell[i]:Pd},isPostProcessed(t){var n=this._fieldIndex;if(Z(t)){var e=gJ(this._descriptions,t,this._fieldsCache);if(n=e.index,"data"!==e.area)return!1}return!(!this._cell||!this._cell.postProcessedFlags[n])}});var fJ={row:"rows",column:"columns",data:"values",filter:"filters"},mJ=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],_J=["format","selector","customizeText","caption"],B4e=_J.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);function vJ(t,n){var e=t._initProperties||{};we(n,function(i,r){Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})}function yJ(t,n){vJ(t,n),Z(t.caption)||l0(t,"caption",function Ian(t){var n=t.dataField||t.groupName||"",e=(t.summaryType||"").toLowerCase();return Pn(t.groupInterval)&&(n+="_"+t.groupInterval),e&&"custom"!==e?(e=e.replace(/^./,e[0].toUpperCase()),n.length&&(e=" ("+e+")")):e="",hh(n)+e}(t))}function Aan(t){return t.rows.length||t.columns.length||t.values.length}const N4e=ji.inherit(function(){var t=function(re,he){if(re._cacheByPath)return re._cacheByPath[he.join(".")]||null},n=function re(he,fe){var Te,He,Re=-1;if(he)for(Te=0;Te<he.length;Te++)void 0!==(He=he[Te]).index&&(Re=Math.max(Re,He.index)),He.children?Re=Math.max(Re,re(He.children)):He.collapsedChildren&&(Re=Math.max(Re,re(He.collapsedChildren)));return Z(fe)&&(Re=Math.max(Re,fe)),Re},e=function(re,he,fe,Te){var Ze,Re=n(fe)+1,He=n(re,Te)+1,at=[],vt=!1,Bt=new et;if(he.children&&he.children.length===fe.length)for(var St=0;St<fe.length;St++){var ct=fe[St];void 0!==ct.index&&(void 0===he.children[St].index?(ct.index=at[ct.index]=He++,he.children[St]=ct):at[ct.index]=he.children[St].index)}else{for(vt=!0,Ze=0;Ze<Re;Ze++)at[Ze]=He++;he.children=fe}return Qt(kv(he.children,function(Nt){vt&&(Nt[0].index=at[Nt[0].index])})).done(function(){Bt.resolve(at)}),Bt},i=function(re,he,fe){var Te=new et,Re=fe>=0&&n(re,fe)+1,He=[];return Qt(kv(re,function(Ze){delete Ze[0].collapsedChildren})).done(function(){Qt(kv(he,function(Ze,at){var vt=Ze[0];if(vt.index>=0){var Bt=t(re,Kc(Ze));if(Bt&&Bt.index>=0)He[vt.index]=Bt.index;else if(Re){var St=Kc(Ze.slice(1));Bt=t(re,St);var ct=St.length?Bt&&Bt.children:re;ct&&(ct[at]=vt,vt.index=He[vt.index]=Re++)}}})).done(function(){Te.resolve(He)})}),Te},r=function(re,he,fe,Te){var Re,He,Ze,at,vt,Bt,St=re.values;if(he)for(Re=0;Re<he.length;Re++)if(Ze=he[Re],Z(vt=fe[Re])||(vt=re.grandTotalRowIndex),Ze&&Z(vt))for(St[vt]||(St[vt]=[]),He=0;He<Ze.length;He++)at=Ze[He],Z(Bt=Te[He])||(Bt=re.grandTotalColumnIndex),Z(at)&&Z(Bt)&&(St[vt][Bt]=at)};function o(re,he){return new(re.remoteOperations||re.paginate?pan:ran)(se(t_(re),{onChanged:null,onLoadingChanged:null,onProgressChanged:he}))}function a(re,he,fe,Te){var Re=[],He=he&&he[fe]||[],Ze=Te&&Te[fe]||[];return ml(re[fe],function(at){var vt=at[0],Bt=Kc(at);vt.children&&He[Bt.length-1]&&!He[Bt.length-1].expanded&&Bt.length<He.length&&(!Te||function(St,ct,Nt){for(var Kt=0;Kt<Nt;Kt++)if(!St[Kt]||!ct[Kt]||St[Kt].index!==ct[Kt].index)return!1;return!0}(He,Ze,Bt.length))&&Re.push(Bt.slice())},!0),Re}function s(re,he,fe,Te){return he?we(Te,function(Re,He){if(fe)re[He]=he[He];else{if(("summaryType"===He||"summaryDisplayMode"===He)&&void 0===he[He])return;l0(re,He,he[He])}}):vJ(re,Te),re}function l(re,he){var fe=[];return we(re,function(Te,Re){fe.push(s({dataField:Re.dataField,name:Re.name},Re,!0,he))}),fe}function u(re){return re.name?re.name:re.dataField+""}function f(re,he){var fe=[];return we(re||[],function(Te,Re){u(Re)===he&&fe.push(Re)}),fe}function S(re,he){re=re||[];var Te,fe={};return we(he,function(Re,He){Te=u(He),fe[Te]||(fe[Te]=f(he,u(He)))}),we(fe,function(Re,He){var Ze;Ze=(Ze=f(re,Re))||[],we(He,function(vt,Bt){s(Bt,Ze[vt],!1,mJ),yJ(Bt,_J)})}),he}function T(re){re.sort(function(he,fe){return he.areaIndex-fe.areaIndex||he.groupIndex-fe.groupIndex})}function R(re,he){var fe=re.groupName||"";return(re.dataField||fe)+(re.groupInterval?fe+re.groupInterval:"NOGROUP")+(he?"":fe)}function L(re,he,fe){var at,Te=[],Re={},He={},Ze=v4e(re);return he?(we(he,function(at,vt){Re[R(vt,fe)]=vt}),we(re,function(at,vt){var ct,Bt=R(vt,fe),St=Re[Bt]||He[Bt];St?(St._initProperties&&vJ(St,B4e),ct=se({},St,vt,{_initProperties:null})):Re[Bt]=ct=vt,se(ct,{dataType:Ze[vt.dataField]}),delete Re[Bt],He[Bt]=St,Te.push(ct)}),fe&&we(Re,function(at,vt){Te.push(vt)})):Te=re,Te.push.apply(Te,[]),(at=Te).forEach(vt=>{if(vt.groupName&&vt.groupInterval&&void 0===vt.groupIndex){var Bt=at.filter(St=>St.groupName===vt.groupName&&di(St.groupIndex)).map(St=>St.groupIndex).reduce((St,ct)=>Math.max(St,ct),-1);vt.groupIndex=Bt+1}}),Te}function z(re){var Re,he=new et,fe=re._store;return Qt(fe&&fe.getFields(re._fields)).done(function(He){re._storeFields=He,Re=L(re._fields,He,re._retrieveFields),he.resolve(Re)}).fail(he.reject),he}function j(re,he,fe){return kv(re[fe],function(Te){var Re=Te[0];Re.text=Re.text||sJ(Re.value,he[fe][Kc(Te).length-1])})}function Y(re,he){return Qt(j(he,re,"columns"),j(he,re,"rows"))}function ie(re){var he=new et,fe={};return Qt(kv(re,function(Te){var Re=Kc(Te).join(".");fe[Re]=Te[0]})).done(he.resolve),re._cacheByPath=fe,he}function te(re,he){var fe=[];return we(re,function(){var Re,He;He="data"===(Re=he)||!1!==this.visible,this.area===Re&&!Z(this.groupIndex)&&He&&fe.push(this)}),fe}return{ctor:function(re){re=re||{},this._eventsStrategy=new Z0(this);var Te,Re,He,Ze,he=this,fe=(Re=function(Te){he._eventsStrategy.fireEvent("progressChanged",[Te])},wi(Te=re)&&Te.load?He=o(Te,Re):(Te&&!Te.store&&(Te={store:Te}),"xmla"===(Ze=Te.store).type?He=new Can(Ze):wi(Ze)&&Ze.type||Ze instanceof Hy||Array.isArray(Ze)?He=o(Te,Re):Ze instanceof ji&&(He=Ze)),He);he._store=fe,he._paginate=!!re.paginate,he._pageSize=re.pageSize||40,he._data={rows:[],columns:[],values:[]},he._loadingCount=0,he._isFieldsModified=!1,we(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(Te,Re){var He="on"+Re[0].toUpperCase()+Re.slice(1);Object.prototype.hasOwnProperty.call(re,He)&&this.on(Re,re[He])}.bind(this)),he._retrieveFields=!Z(re.retrieveFields)||re.retrieveFields,he._fields=re.fields||[],he._descriptions=re.descriptions?se(he._createDescriptions(),re.descriptions):void 0,fe||se(!0,he._data,re.store||re)},getData:function(){return this._data},getAreaFields:function(re,he){var fe=[];return he||"data"===re?T(fe=te(this._fields,re)):fe=(this._descriptions||{})[fJ[re]]||[],fe},fields:function(re){return re&&(this._fields=L(re,this._storeFields,this._retrieveFields),this._fieldsPrepared(this._fields)),this._fields},field:function(re,he){var Re,fe=this._fields,Te=fe&&fe[di(re)?re:KS(fe,re)];return Te&&he&&(we(he,function(He,Ze){var at=!mJ.includes(He);if(l0(Te,He,Ze,at),"sortOrder"===He){Re=Te.levels||[];for(var vt=0;vt<Re.length;vt++)Re[vt][He]=Ze}}),yJ(Te,_J),this._descriptions=this._createDescriptions(Te),this._isFieldsModified=!0,this._eventsStrategy.fireEvent("fieldChanged",[Te])),Te},getFieldValues:function(re,he,fe){var vt,Te=this,Re=this._fields&&this._fields[re],He=this.store(),Ze=[],at={columns:Ze,rows:[],values:this.getAreaFields("data"),filters:he?this._fields.filter(St=>St!==Re&&St.area&&St.filterValues&&St.filterValues.length):[],skipValues:!0},Bt=new et;return fe&&(vt=fe.searchValue,at.columnSkip=fe.skip,at.columnTake=fe.take),Re&&He?(we(Re.levels||[Re],function(){Ze.push(se({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null,searchValue:vt}))}),He.load(at).done(function(St){at.columnSkip&&(St.columns=St.columns.slice(at.columnSkip)),at.columnTake&&(St.columns=St.columns.slice(0,at.columnTake)),Y(at,St),at.columnTake||Te._sort(at,St),Bt.resolve(St.columns)}).fail(Bt)):Bt.reject(),Bt},reload:function(){return this.load({reload:!0})},filter:function(){var re=this._store;return re.filter.apply(re,arguments)},load:function(re){var he=this,fe=new et;function Te(){he._delayedLoadTask=void 0,he._descriptions?he._loadCore(re,fe):Qt(z(he)).done(function(Re){he._fieldsPrepared(Re),he._loadCore(re,fe)}).fail(fe.reject).fail(he._loadErrorHandler)}return re=re||{},he.beginLoading(),fe.fail(function(Re){he._eventsStrategy.fireEvent("loadError",[Re])}).always(function(){he.endLoading()}),he.store()?he._delayedLoadTask=ky(Te):Te(),fe},createDrillDownDataSource:function(re){return this._store.createDrillDownDataSource(this._descriptions,re)},_createDescriptions:function(re){var he=this.fields(),fe={rows:[],columns:[],values:[],filters:[]};we(["row","column","data","filter"],function(Re,He){Aw(te(he,He),"areaIndex",re)}),we(he||[],function(Re,He){var St,at=fe[fJ[He.area]],vt=He.groupName;vt&&!di(He.groupIndex)&&(He.levels=(St=He,he.filter(ct=>ct.groupName===St.groupName&&di(ct.groupIndex)&&!1!==ct.visible).map(function(ct){return se(ct,{areaIndex:St.areaIndex,area:St.area,expanded:Z(ct.expanded)?ct.expanded:St.expanded,dataField:ct.dataField||St.dataField,dataType:ct.dataType||St.dataType,sortBy:ct.sortBy||St.sortBy,sortOrder:ct.sortOrder||St.sortOrder,sortBySummaryField:ct.sortBySummaryField||St.sortBySummaryField,sortBySummaryPath:ct.sortBySummaryPath||St.sortBySummaryPath,visible:ct.visible||St.visible,showTotals:Z(ct.showTotals)?ct.showTotals:St.showTotals,showGrandTotals:Z(ct.showGrandTotals)?ct.showGrandTotals:St.showGrandTotals})}).sort(function(ct,Nt){return ct.groupIndex-Nt.groupIndex}))),!(!at||vt&&di(He.groupIndex)||!1===He.visible&&"data"!==He.area&&"filter"!==He.area)&&(He.levels&&at!==fe.filters&&at!==fe.values?(at.push.apply(at,He.levels),He.filterValues&&He.filterValues.length&&fe.filters.push(He)):at.push(He))}),we(fe,function(Re,He){T(He)});var Te={};return we(fe.values,function(Re,He){var Ze=He.calculateSummaryValue;if(Yt(Ze)){var at=function Tan(t,n,e){var i=new YS([],[],{},t,0);return i.value=function(r){if(Z(r)){var o=KS(n,r),a=n[o];!e[o]&&a&&!Z(a.area)&&(t.values.push(a),e[o]=!0)}},i.grandTotal=function(){return this},i.children=function(){return[]},i}(fe,he,Te);Ze(at)}}),fe},_fieldsPrepared:function(re){this._fields=re,we(re,function(Te,Re){Re.index=Te,yJ(Re,B4e)});var he=l(re,["caption"]);this._eventsStrategy.fireEvent("fieldsPrepared",[re]);for(var fe=0;fe<re.length;fe++)re[fe].caption!==he[fe].caption&&l0(re[fe],"caption",re[fe].caption,!0);this._descriptions=this._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(re,he){var fe=this;if(!arguments.length)return{fields:l(fe._fields,mJ),columnExpandedPaths:a(fe._data,fe._descriptions,"columns",fe._lastLoadOptions),rowExpandedPaths:a(fe._data,fe._descriptions,"rows",fe._lastLoadOptions)};re=se({rowExpandedPaths:[],columnExpandedPaths:[]},re),fe._descriptions?(fe._fields=S(re.fields,fe._fields),fe._descriptions=fe._createDescriptions(),!he&&fe.load(re)):(fe.beginLoading(),Qt(z(fe)).done(function(Te){fe._fields=S(re.fields,Te),fe._fieldsPrepared(Te),!he&&fe.load(re)}).always(function(){fe.endLoading()}))},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(re){var he=this.isLoading();this._loadingCount+=re;var fe=this.isLoading();he^fe&&this._eventsStrategy.fireEvent("loadingChanged",[fe])},_hasPagingValues:function(re,he,fe){var Te=he+"Take",Re=he+"Skip",He=this._data.values,Ze=this._data[he+"s"],at="row"===he?"column":"row",vt=[];if(re.path&&re.area===he){var Bt=t(Ze,re.path);if(!(Ze=Bt&&Bt.children))return!1}if(re.oppositePath&&re.area===at){var St=t(Ze,re.oppositePath);if(!(Ze=St&&St.children))return!1}for(var ct=re[Re];ct<re[Re]+re[Te];ct++)Ze[ct]&&vt.push(Ze[ct].index);return vt.every(Nt=>{if(void 0!==Nt)return"row"===he?(He[Nt]||[])[fe]:(He[fe]||[])[Nt]})},_processPagingCacheByArea:function(re,he,fe){var at,Te=fe+"Take",Re=fe+"Skip",He=this._data[fe+"s"],Ze="row"===fe?"column":"row";if(re[Te]){if(re.path&&re.area===fe){var vt=t(He,re.path);He=vt&&vt.children||[]}if(re.oppositePath&&re.area===Ze){var Bt=t(He,re.oppositePath);He=Bt&&Bt.children||[]}do{if((at=He[re[Re]])&&void 0!==at.index){if(!this._hasPagingValues(re,Ze,at.index))break;re[Re]++,re[Te]--}}while(at&&void 0!==at.index&&re[Te]);if(re[Te]){var St=Math.floor(re[Re]/he)*he,ct=Math.ceil((re[Re]+re[Te])/he)*he;re[Re]=St,re[Te]=ct-St}}},_processPagingCache:function(re){var he=this._pageSize;if(!(he<0))for(var fe=0;fe<re.length;fe++)this._processPagingCacheByArea(re[fe],he,"row"),this._processPagingCacheByArea(re[fe],he,"column")},_loadCore:function(re,he){var fe=this,Te=this._store,Re=this._descriptions,He=re.reload||this.paginate()&&fe._isFieldsModified,Ze=this.paginate(),at=fJ[re.area];if(re=re||{},Te){se(re,Re),re.columnExpandedPaths=re.columnExpandedPaths||a(this._data,re,"columns",fe._lastLoadOptions),re.rowExpandedPaths=re.rowExpandedPaths||a(this._data,re,"rows",fe._lastLoadOptions),Ze&&(re.pageSize=this._pageSize),at&&(re.headerName=at),fe.beginLoading(),he.always(function(){fe.endLoading()});var vt=[re];if(fe._eventsStrategy.fireEvent("customizeStoreLoadOptions",[vt,He]),He||fe._processPagingCache(vt),!(vt=vt.filter(St=>!(St.rows.length&&0===St.rowTake||St.columns.length&&0===St.columnTake))).length)return void fe._update(he);var Bt=vt.map(St=>Te.load(St));Qt.apply(null,Bt).done(function(){for(var St=arguments,ct=0;ct<St.length;ct++){var Nt=vt[ct],Kt=St[ct],on=ct===St.length-1;Nt.path?fe.applyPartialDataSource(Nt.area,Nt.path,Kt,!!on&&he,Nt.oppositePath):Ze&&!He&&Aan(fe._data)?fe.mergePartialDataSource(Kt,!!on&&he):(se(fe._data,Kt),fe._lastLoadOptions=Nt,fe._update(!!on&&he))}}).fail(he.reject)}else fe._update(he)},_sort:function(re,he,fe){this._store&&!this._paginate&&function gan(t,n,e){A4e(n,t,"rows",e),A4e(n,t,"columns",e)}(re,he,fe)},paginate:function(){return this._paginate&&this._store&&this._store.supportPaging()},isEmpty:function(){var re=this.getAreaFields("data").filter(fe=>!1!==fe.visible),he=this.getData();return!re.length||!he.values.length},_update:function(re){var he=this,fe=he._descriptions,Te=he._data,Re=fe.values,He=function kan(t){return t.some(function(n){return n.summaryDisplayMode||n.calculateSummaryValue})}(Re);return Qt(Y(fe,Te),ie(Te.rows),ie(Te.columns)).done(function(){He&&(he._sort(fe,Te,He),!he.isEmpty()&&function Ean(t,n){var e=[],i=[{index:n.grandTotalColumnIndex,children:n.columns}],r=[{index:n.grandTotalRowIndex,children:n.rows}],o=t.values,a={fields:{},positions:{}};n.values=n.values||[],ml(i,s=>{s[0].isEmpty=[]},!1),ml(r,function(s){var l=s[0];l.isEmpty=[],n.values[l.index]=n.values[l.index]||[],ml(i,function(u){var S,f=u[0];L4e(n,l.index,f.index,!1);for(var T=0;T<o.length;T++){var L=e[T]=void 0===e[T]?Dan(o[T]):e[T];if(S=!1,L){var z=new YS(u,s,n,t,T,a),j=z.cell(),Y=j[T]=L(z);j.postProcessedFlags[T]=!0,S=null==Y}void 0===f.isEmpty[T]&&(f.isEmpty[T]=!0),void 0===l.isEmpty[T]&&(l.isEmpty[T]=!0),S||(l.isEmpty[T]=f.isEmpty[T]=!1)}},!1)},!1),n.isEmptyGrandTotalRow=r[0].isEmpty,n.isEmptyGrandTotalColumn=i[0].isEmpty}(fe,Te)),he._sort(fe,Te),!he.isEmpty()&&function Man(t){return t.some(function(n){return!!n.runningTotal})}(Re)&&function Oan(t,n){var e=[],i=[{index:n.grandTotalColumnIndex,children:n.columns}],r=[{index:n.grandTotalRowIndex,children:n.rows}],o=t.values,a={fields:{},positions:{}};n.values=n.values||[],ml(r,function(s){var l=s[0];n.values[l.index]=n.values[l.index]||[],ml(i,function(u){L4e(n,l.index,u[0].index,!0);for(var S=0;S<o.length;S++){var R=e[S]=void 0===e[S]?San(o[S]):e[S];if(R){var L=new YS(u,s,n,t,S,a),z=L.cell();z[S]=R(L),z.postProcessedFlags[S]=!0}}},!1)},!1)}(fe,Te),he._data=Te,!1!==re&&Qt(re).done(function(){he._isFieldsModified=!1,he._eventsStrategy.fireEvent("changed"),Z(he._data.grandTotalRowIndex)&&(Te.grandTotalRowIndex=he._data.grandTotalRowIndex),Z(he._data.grandTotalColumnIndex)&&(Te.grandTotalColumnIndex=he._data.grandTotalColumnIndex)}),re&&re.resolve(he._data)}),re},store:function(){return this._store},collapseHeaderItem:function(re,he){var Te=t("column"===re?this._data.columns:this._data.rows,he),Re=this.getAreaFields(re)[he.length-1];return!(!Te||!Te.children||(this._eventsStrategy.fireEvent("expandValueChanging",[{area:re,path:he,expanded:!1}]),Re&&(Re.expanded=!1),Te.collapsedChildren=Te.children,delete Te.children,this._update(),this.paginate()&&this.load(),0))},collapseAll:function(re){var he=!1,fe=this.field(re)||{},Te=[this.getAreaFields(fe.area).indexOf(fe)];fe.expanded=!1,fe&&fe.levels&&(Te=[],fe.levels.forEach(Re=>{Te.push(this.getAreaFields(fe.area).indexOf(Re)),Re.expanded=!1})),ml(this._data[fe.area+"s"],function(Re){var He=Re[0],Ze=Kc(Re);He&&He.children&&-1!==Te.indexOf(Ze.length-1)&&(He.collapsedChildren=He.children,delete He.children,he=!0)},!0),he&&this._update()},expandAll:function(re){var he=this.field(re);he&&he.area&&(he.expanded=!0,he&&he.levels&&he.levels.forEach(fe=>{fe.expanded=!0}),this.load())},expandHeaderItem:function(re,he){var Te=t("column"===re?this._data.columns:this._data.rows,he);if(Te&&!Te.children){var Re=!!Te.collapsedChildren,He={area:re,path:he,expanded:!0,needExpandData:!Re};return this._eventsStrategy.fireEvent("expandValueChanging",[He]),Re?(Te.children=Te.collapsedChildren,delete Te.collapsedChildren,this._update()):this.store()&&this.load(He),Re}return!1},mergePartialDataSource:function(re,he){var fe=this,Te=fe._data;re&&re.values&&(re.rows=re.rows||[],re.columns=re.columns||[],Qt(i(Te.rows,re.rows,Te.grandTotalColumnIndex),i(Te.columns,re.columns,Te.grandTotalColumnIndex)).done(function(Ze,at){(Ze.length||at.length)&&r(Te,re.values,Ze,at),fe._update(he)}))},applyPartialDataSource:function(re,he,fe,Te,Re){var vt,St,ct,Nt,He=this,Ze=He._data,at="column"===re?Ze.columns:Ze.rows,Bt="column"===re?Ze.rows:Ze.columns;fe&&fe.values&&(fe.rows=fe.rows||[],fe.columns=fe.columns||[],vt=t(at,he),St=Re&&t(Bt,Re),vt&&("column"===re?(Nt=e(at,vt,fe.columns,Ze.grandTotalColumnIndex),ct=St?e(Bt,St,fe.rows,Ze.grandTotalRowIndex):i(Ze.rows,fe.rows,Ze.grandTotalRowIndex)):(ct=e(at,vt,fe.rows,Ze.grandTotalRowIndex),Nt=St?e(Bt,St,fe.columns,Ze.grandTotalColumnIndex):i(Ze.columns,fe.columns,Ze.grandTotalColumnIndex)),Qt(ct,Nt).done(function(Kt,on){("row"===re&&Kt.length||"column"===re&&on.length)&&r(Ze,fe.values,Kt,on),He._update(Te)})))},on(re,he){return this._eventsStrategy.on(re,he),this},off(re,he){return this._eventsStrategy.off(re,he),this},dispose:function(){var re=this._delayedLoadTask;this._eventsStrategy.dispose(),re&&re.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}());var CJ=Math,xM=function(t,n,e){t[n]||(t[n]=function(){var i=this._dataSource;return i?i[n].apply(i,arguments):e})},Ran=ji.inherit(function(){function t(s,l,u){return"#N/A"===s?u:sJ(s,l)}var n=function(){function u(f,S,T){var L=(f[S]=f[S]||[])[T]={};if(f[S+1]){L.children=f[S+1];for(var z=S+1;z<f.length;z++)f[z]=void 0;f.length=S+1}return L}return function(f,S,T,R,L){var te,z=[],j=(te=0,ml(f,function(re){te=CJ.max(te,re.length)}),te||1),Y=new et;return function(f,S,T,R,L){var te,re,Re,he,fe,Te,z=T.length,j=(te=f,he=(re=S)&&re.length||0,fe=[],Te=new et,Qt(kv(te,function(He,Ze){var at=He[0],vt=Kc(He);(Re=u(fe,vt.length,Ze)).type="D",Re.value=at.value,Re.path=vt,Re.text=at.text,Re.index=at.index,Re.displayText=at.displayText,Re.key=at.key,Re.isEmpty=at.isEmpty,vt.length<he&&(!at.children||0!==at.children.length)&&(Re.expanded=!!at.children)})).done(function(){Te.resolve(u(fe,0,0).children||[])}),Te),Y=L.dataFields,ie=new et;return Qt(j).done(function(te){L.notifyProgress(.5),L.showGrandTotals&&te[L.showTotalsPrior?"unshift":"push"]({type:"GT",isEmpty:L.isEmptyGrandTotal});var re=!1===L.showTotals||Y.length>0&&Y.length===L.hiddenTotals.length,he=Y.length>0&&L.hiddenValues.length===Y.length;he&&re&&(R=1),(!re||"tree"===L.layout)&&function(fe,Te,Re,He){Re=Re||He,ml(fe,function(Ze,at){var vt=Ze[0];"D"===vt.type&&vt.expanded&&(!1!==Te[Ze.length-1].showTotals||He)&&(-1!==at&&((Ze[1]?Ze[1].children:fe)||[]).splice(Re?at:at+1,0,se({},vt,{children:null,type:"T",expanded:!!Re||null,isAdditionalTotal:!0})),Re&&(vt.expanded=null))})}(te,S,L.showTotalsPrior,"tree"===L.layout),Qt(kv(te,function(fe){var Te=fe[0];(!Te.children||0===Te.children.length)&&(Te.depthSize=R-fe.length+1)})).done(function(){z>1&&function(fe,Te,Re){ml(fe,function(He){var at,Ze=He[0];if(!Ze.children||0===Ze.children.length)for(Ze.children=[],at=0;at<Te.length;at++){var Bt="T"===Ze.type,St="D"===Ze.type;!1===Te[at].visible||"GT"===Ze.type&&Re.hiddenGrandTotals.includes(at)||Bt&&Re.hiddenTotals.includes(at)||St&&Re.hiddenValues.includes(at)||Ze.children.push({caption:Te[at].caption,path:Ze.path,type:Ze.type,value:at,index:Ze.index,dataIndex:at,isMetric:!0,isEmpty:Ze.isEmpty&&Ze.isEmpty[at]})}})}(te,T,L),!L.showEmpty&&function(fe){ml([{children:fe}],function(Te,Re){var He=Te[0],Ze=(Te[1]?Te[1].children:fe)||[],at=He.isEmpty;at&&at.length&&(at=He.isEmpty.filter(function(vt){return vt}).length===at.length),He&&!He.children&&at&&(Ze.splice(Re,1),function vt(Bt,St){var ct=Bt[St+1];!Bt[St].children.length&&ct&&ct.children&&(ct.children.splice(ct.children.indexOf(Bt[St]),1),vt(Bt,St+1))}(Te,1))})}(te),L.notifyProgress(.75),Qt(kv(te,function(fe){var Te=fe[0],Re=Te.isMetric,He=S[fe.length-1]||{};if("D"===Te.type&&!Re&&(Te.width=He.width),!0!==he||"D"!==Te.type){var at,Bt,St;Te.wordWrapEnabled=Re?T[Te.dataIndex].wordWrapEnabled:He.wordWrapEnabled,Te.isLast=!Te.children||!Te.children.length,Te.isLast&&we(L.sortBySummaryPaths,function(at,vt){if(Z(Te.dataIndex)||(vt=vt.slice(0)).pop(),Nt=(Bt=fe)[0],Kt=Pn((St=vt)[0]),on=Nt.dataIndex>=0?Bt[1]:Nt,ct=Kt&&-1!==St[0].indexOf("&[")&&on.key||!on.key?Kc(Bt):Dr(Bt,function(hn){return hn.dataIndex>=0?hn.value:hn.text}).reverse(),"GT"===Nt.type&&(ct=ct.slice(1)),ct.join("/")===St.join("/"))return Te.sorted=!0,!1;var Bt,St,ct,Nt,Kt,on}),Te.text=(Bt=L,St=(at=Te).text,Z(at.displayText)?St=at.displayText:Z(at.caption)?St=at.caption:"GT"===at.type&&(St=Bt.texts.grandTotal),at.isAdditionalTotal&&(St=Er(Bt.texts.total||"",St)),St)}else{var Ze=(fe[1]?fe[1].children:te)||[];Ze.splice(Ze.indexOf(Te),1)}})).done(function(){te.length||te.push({}),L.notifyProgress(1),ie.resolve(te)})})}),ie}(f,S,T,j,L).done(function(ie){(function(te,re,he,fe,Te){var Ze,Re=0,at=[0];ml(re,function(vt){var Bt=vt[0];for(Ze=Bt.isMetric?he:vt.length-1;at.length-1<Ze;)at.push(at[at.length-1]);Re=function(f,S){var L,z,j,Y,ie;return function(L,z,j,Y,ie){for(var te=ie?Y:j;!L[te];)L.push([]);ie?L[te].push(z):L[te].unshift(z)}(f,(z=S.lastIndex-S.index||1,j=S.isHorizontal,Y=S.isTree,ie={type:(L=S.headerItem).type,text:L.text},L.path&&(ie.path=L.path),L.width&&(ie.width=L.width),Z(L.wordWrapEnabled)&&(ie.wordWrapEnabled=L.wordWrapEnabled),L.isLast&&(ie.isLast=!0),L.sorted&&(ie.sorted=!0),L.isMetric&&(ie.dataIndex=L.dataIndex),Z(L.expanded)&&(ie.expanded=L.expanded),z>1&&(ie[j?"colspan":"rowspan"]=z),L.depthSize&&L.depthSize>1&&(ie[j?"rowspan":"colspan"]=L.depthSize),L.index>=0&&(ie.dataSourceIndex=L.index),Y&&L.children&&L.children.length&&!L.children[0].isMetric&&(ie.width=null,ie.isWhiteSpace=!0),ie),S.index,S.depth,S.isHorizontal),S.headerItem.children&&0!==S.headerItem.children.length?S.lastIndex:S.lastIndex+1}(te,{headerItem:Bt,index:at[Ze]||0,lastIndex:Re,depth:Ze,isHorizontal:fe,isTree:Te}),at.length=Ze,at.push(Re)})})(z,ie,j,R,"tree"===L.layout),L.notifyProgress(1),Y.resolve(z)}),Y}}();function e(s,l){var u=[];return we(s,function(f,S){var T=KS(l,S.sortBySummaryField);T>=0&&u.push((S.sortBySummaryPath||[]).concat([T]))}),u}function i(s,l){for(var u=0,f=[],S=0;S<s.length;S++)for(var T=0;T<s[S].length;T++){var L=S+((s[S][T].rowspan||1)-1);if(f[S]&&(u-=f[S],f[S]=0),!1===l(s[S][T],L,S,T,u))break;f[S+(s[S][T].rowspan||1)]=(f[S+(s[S][T].rowspan||1)]||0)+1,u++}}function r(s,l){var u=0,f=[];return ml(s,function(S){var T=S[0],R=Kc(S);if(!T.children||!1!==l.showTotals){var L=se(!0,{},T,{visibleIndex:u++,path:R});Z(L.index)?f[L.index]=L:f.push(L)}}),f}function o(s,l,u){return new QY(l,se({hasKnownLastPage:function(){return!0},pageCount:function(){return CJ.ceil(this.totalItemsCount()/this.pageSize())},updateLoading:function(){},itemsCount:function(){return this.pageIndex()<this.pageCount()-1?this.pageSize():this.totalItemsCount()%this.pageSize()},items:function(){return[]},viewportItems:function(){return[]},onChanged:function(){},isLoading:function(){return s.isLoading()},changingDuration:function(){return s._dataSource.paginate()?300:s._changingDuration||0}},u))}var a={ctor:function(s){var l=this,u=l._fireChanged.bind(l);s=l._options=s||{},l.dataSourceChanged=Zi(),l._dataSource=l._createDataSource(s),s.component&&"virtual"===s.component.option("scrolling.mode")&&(l._rowsScrollController=o(l,s.component,{totalItemsCount:function(){return l.totalRowCount()},pageIndex:function(f){return l.rowPageIndex(f)},pageSize:function(){return l.rowPageSize()},load:function(){return l._rowsScrollController.pageIndex()>=this.pageCount()&&l._rowsScrollController.pageIndex(this.pageCount()-1),l._rowsScrollController.handleDataChanged(function(){l._dataSource.paginate()?l._dataSource.load():u.apply(this,arguments)})}}),l._columnsScrollController=o(l,s.component,{totalItemsCount:function(){return l.totalColumnCount()},pageIndex:function(f){return l.columnPageIndex(f)},pageSize:function(){return l.columnPageSize()},load:function(){return l._columnsScrollController.pageIndex()>=this.pageCount()&&l._columnsScrollController.pageIndex(this.pageCount()-1),l._columnsScrollController.handleDataChanged(function(){l._dataSource.paginate()?l._dataSource.load():u.apply(this,arguments)})}})),l._stateStoringController=new ZIe(s.component).init(),l._columnsInfo=[],l._rowsInfo=[],l._cellsInfo=[],l.expandValueChanging=Zi(),l.loadingChanged=Zi(),l.progressChanged=Zi(),l.scrollChanged=Zi(),l.load(),l._update(),l.changed=Zi()},_fireChanged:function(){var s=new Date;this.changed&&!this._lockChanged&&this.changed.fire(),this._changingDuration=new Date-s},_correctSkipsTakes:function(s,l,u,f,S,T){var R=u?s+u-1:s;S[f.length]=S[f.length]||0,T[f.length]=T[f.length]||0,R<l?S[f.length]++:T[f.length]++},_calculatePagingForRowExpandedPaths:function(s,l,u,f,S){var Y,ie,te,T=this._rowsInfo,R=Math.min(s.rowSkip+s.rowTake,T.length),z=[],j={};for(s.rowExpandedPaths.forEach((fe,Te)=>{j[fe]=Te}),Y=0;Y<R;Y++){for(u.length=l.length=z.length+1,ie=0;ie<T[Y].length;ie++){var re=T[Y][ie];if("D"===re.type){this._correctSkipsTakes(Y,s.rowSkip,re.rowspan,z,l,u);var he=(te=re.path||te)&&te.length>1?j[te.slice(0,-1)]:-1;he>=0&&(f[he]=l[z.length]||0,S[he]=u[z.length]||0),re.rowspan&&z.push(re.rowspan)}}z=z.map(fe=>fe-1).filter(fe=>fe>0)}},_calculatePagingForColumnExpandedPaths:function(s,l,u,f,S){var T={},R={};j9(this._columnsInfo,function(L,z){if("D"===L.type&&L.path&&void 0===L.dataIndex){var j=L.colspan||1,Y=L.path.slice(0,-1).toString();T[Y]=T[Y]||0,R[Y]=R[Y]||0,z+j<=s.columnSkip?T[Y]++:z<s.columnSkip+s.columnTake&&R[Y]++}}),l[0]=T[""],u[0]=R[""],s.columnExpandedPaths.forEach(function(L,z){var j=T[L],Y=R[L];void 0!==j&&(f[z]=j),void 0!==Y&&(S[z]=Y)})},_processPagingForExpandedPaths:function(s,l,u,f){var S=s[l+"ExpandedPaths"],T=S.map(()=>0),R=S.map(()=>f?s.pageSize:0),L=[],z=[];f||("row"===l?this._calculatePagingForRowExpandedPaths(s,L,z,T,R):this._calculatePagingForColumnExpandedPaths(s,L,z,T,R)),this._savePagingForExpandedPaths(s,l,u,L[0],z[0],T,R)},_savePagingForExpandedPaths:function(s,l,u,f,S,T,R){var L=s[l+"ExpandedPaths"];s[l+"ExpandedPaths"]=[],s[l+"Skip"]=void 0!==f?f:s[l+"Skip"],s[l+"Take"]=void 0!==S?S:s[l+"Take"];for(var z=0;z<L.length;z++)R[z]&&u.push(se({area:l,headerName:l+"s"},s,{[l+"Skip"]:T[z],[l+"Take"]:R[z],[s.area&&s.area!==l?"oppositePath":"path"]:L[z]}))},_handleCustomizeStoreLoadOptions:function(s,l){var u=s[0],f=this._rowsScrollController;if(this._dataSource.paginate()&&f){var S=f.pageSize();"rows"===u.headerName?(u.rowSkip=0,u.rowTake=S,u.rowExpandedPaths=[]):(u.rowSkip=f.beginPageIndex()*S,u.rowTake=(f.endPageIndex()-f.beginPageIndex()+1)*S,this._processPagingForExpandedPaths(u,"row",s,l))}var T=this._columnsScrollController;if(this._dataSource.paginate()&&T){var R=T.pageSize();s.forEach((L,z)=>{"columns"===L.headerName?(L.columnSkip=0,L.columnTake=R,L.columnExpandedPaths=[]):(L.columnSkip=T.beginPageIndex()*R,L.columnTake=(T.endPageIndex()-T.beginPageIndex()+1)*R,this._processPagingForExpandedPaths(L,"column",s,l))})}},load:function(){var s=this,l=this._stateStoringController;l.isEnabled()&&!l.isLoaded()?l.load().always(function(u){u?s._dataSource.state(u):s._dataSource.load()}):s._dataSource.load()},calculateVirtualContentParams:function(s){var l=this._rowsScrollController,u=this._columnsScrollController;if(l&&u)return l.viewportItemSize(s.virtualRowHeight),l.viewportSize(s.viewportHeight/l.viewportItemSize()),l.setContentItemSizes(s.itemHeights),u.viewportItemSize(s.virtualColumnWidth),u.viewportSize(s.viewportWidth/u.viewportItemSize()),u.setContentItemSizes(s.itemWidths),Ns(function(){u.loadIfNeed(),l.loadIfNeed()}),this.scrollChanged.fire({left:u.getViewportPosition(),top:l.getViewportPosition()}),{contentTop:l.getContentOffset(),contentLeft:u.getContentOffset(),width:u.getVirtualContentSize(),height:l.getVirtualContentSize()}},setViewportPosition:function(s,l){this._rowsScrollController.setViewportPosition(l||0),this._columnsScrollController.setViewportPosition(s||0)},subscribeToWindowScrollEvents:function(s){this._rowsScrollController&&this._rowsScrollController.subscribeToWindowScrollEvents(s)},updateWindowScrollPosition:function(s){this._rowsScrollController&&this._rowsScrollController.scrollTo(s)},updateViewOptions:function(s){se(this._options,s),this._update()},_handleExpandValueChanging:function(s){this.expandValueChanging.fire(s)},_handleLoadingChanged:function(s){this.loadingChanged.fire(s)},_handleProgressChanged:function(s){this.progressChanged.fire(s)},_handleFieldsPrepared:function(s){this._options.onFieldsPrepared&&this._options.onFieldsPrepared(s)},_createDataSource:function(s){var f,l=this,u=s.dataSource;return l._isSharedDataSource=u instanceof N4e,f=l._isSharedDataSource?u:new N4e(u),l._expandValueChangingHandler=l._handleExpandValueChanging.bind(l),l._loadingChangedHandler=l._handleLoadingChanged.bind(l),l._fieldsPreparedHandler=l._handleFieldsPrepared.bind(l),l._customizeStoreLoadOptionsHandler=l._handleCustomizeStoreLoadOptions.bind(l),l._changedHandler=function(){l._update(),l.dataSourceChanged.fire()},l._progressChangedHandler=function(S){l._handleProgressChanged(.8*S)},f.on("changed",l._changedHandler),f.on("expandValueChanging",l._expandValueChangingHandler),f.on("loadingChanged",l._loadingChangedHandler),f.on("progressChanged",l._progressChangedHandler),f.on("fieldsPrepared",l._fieldsPreparedHandler),f.on("customizeStoreLoadOptions",l._customizeStoreLoadOptionsHandler),f},getDataSource:function(){return this._dataSource},isLoading:function(){return this._dataSource.isLoading()},beginLoading:function(){this._dataSource.beginLoading()},endLoading:function(){this._dataSource.endLoading()},_update:function(){var Re,s=this,l=s._dataSource,u=s._options,f=l.getAreaFields("column"),S=l.getAreaFields("row"),T=l.getAreaFields("data"),R="row"===u.dataFieldArea?T:[],L="row"!==u.dataFieldArea?T:[],z=l.getData(),j=(Re=[],we(T,function(He,Ze){!1===Ze.showTotals&&Re.push(He)}),Re),Y=function(Te){var Re=[];return Te.forEach(function(He,Ze){(void 0===He.showValues&&!1===He.showTotals||!1===He.showValues)&&Re.push(Ze)}),Re}(T),ie=function(Te,Re){var He=[];return we(Te,function(Ze,at){!1===at.showGrandTotals&&He.push(Ze)}),0===Re.length&&He.length===Te.length&&(He=[]),He}(T,f),te=!(T.length>0)||ie.length!==T.length,re={isEmptyGrandTotal:z.isEmptyGrandTotalRow,texts:u.texts||{},hiddenTotals:j,hiddenValues:Y,hiddenGrandTotals:[],showTotals:u.showRowTotals,showGrandTotals:!1!==u.showRowGrandTotals&&te,sortBySummaryPaths:e(f,T),showTotalsPrior:"rows"===u.showTotalsPrior||"both"===u.showTotalsPrior,showEmpty:!u.hideEmptySummaryCells,layout:u.rowHeaderLayout,fields:S,dataFields:T,progress:0},he={isEmptyGrandTotal:z.isEmptyGrandTotalColumn,texts:u.texts||{},hiddenTotals:j,hiddenValues:Y,hiddenGrandTotals:ie,showTotals:u.showColumnTotals,showTotalsPrior:"columns"===u.showTotalsPrior||"both"===u.showTotalsPrior,showGrandTotals:!1!==u.showColumnGrandTotals&&te,sortBySummaryPaths:e(S,T),showEmpty:!u.hideEmptySummaryCells,fields:f,dataFields:T,progress:0},fe=function(Te){this.progress=Te,s._handleProgressChanged(.8+.1*re.progress+.1*he.progress)};re.notifyProgress=fe,he.notifyProgress=fe,Z(z.grandTotalRowIndex)||(z.grandTotalRowIndex=r(z.rows,re).length),Z(z.grandTotalColumnIndex)||(z.grandTotalColumnIndex=r(z.columns,he).length),l._changeLoadingCount(1),Qt(n(z.columns,f,L,!0,he),n(z.rows,S,R,!1,re)).always(function(){l._changeLoadingCount(-1)}).done(function(Te,Re){s._columnsInfo=Te,s._rowsInfo=Re,s._rowsScrollController&&s._columnsScrollController&&s.changed&&!s._dataSource.paginate()&&(s._rowsScrollController.reset(!0),s._columnsScrollController.reset(!0),s._lockChanged=!0,s._rowsScrollController.load(),s._columnsScrollController.load(),s._lockChanged=!1)}).done(function(){s._fireChanged(),s._stateStoringController.isEnabled()&&!s._dataSource.isLoading()&&(s._stateStoringController.state(s._dataSource.state()),s._stateStoringController.save())})},getRowsInfo:function(s){var f,l=this._rowsInfo,u=this._rowsScrollController;if(u&&!s){var S=u.beginPageIndex()*this.rowPageSize(),T=u.endPageIndex()*this.rowPageSize()+this.rowPageSize(),R=[],L=1;return i(l,function(z,j,Y,ie,te){var he=Y<S?0:Y-S,fe=z;if(!(j>=S&&Y<T))return!1;R[he]=R[he]||[],S+he+(f=Y<S?z.rowspan-(S-Y)||1:z.rowspan)>T&&(f=T-(he+S)||1),f!==z.rowspan&&(fe=se({},fe,{rowspan:f})),R[he].push(fe),L=CJ.max(L,te+1)}),i(R,function(z,j,Y,ie,te){te+(z.colspan||1)>L&&(R[Y][ie]=se({},z,{colspan:L-te||1}))}),R}return l},getColumnsInfo:function(s){var l=this._columnsInfo,u=this._columnsScrollController;return u&&!s&&(l=K9(l,u.beginPageIndex()*this.columnPageSize(),u.endPageIndex()*this.columnPageSize()+this.columnPageSize())),l},totalRowCount:function(){return this._rowsInfo.length},rowPageIndex:function(s){return void 0!==s&&(this._rowPageIndex=s),this._rowPageIndex||0},totalColumnCount:function(){var s=0;if(this._columnsInfo&&this._columnsInfo.length)for(var l=0;l<this._columnsInfo[0].length;l++)s+=this._columnsInfo[0][l].colspan||1;return s},rowPageSize:function(s){return void 0!==s&&(this._rowPageSize=s),this._rowPageSize||20},columnPageSize:function(s){return void 0!==s&&(this._columnPageSize=s),this._columnPageSize||20},columnPageIndex:function(s){return void 0!==s&&(this._columnPageIndex=s),this._columnPageIndex||0},getCellsInfo:function(s){var T,R,L,z,Y,ie,te,re,l=this.getRowsInfo(s),u=this.getColumnsInfo(s),f=this._dataSource.getData(),S=this._options.texts||{};return T=l,R=u,L=f,z=this._dataSource.getAreaFields("data"),Y=S.dataNotAvailable,ie=[],te="row"===this._options.dataFieldArea,(re=L.values).length&&i(T,function(he,fe){var Te=ie[fe]=[],Re=re[he.dataSourceIndex>=0?he.dataSourceIndex:L.grandTotalRowIndex]||[];he.isLast&&j9(R,function(He,Ze){var at=(te?he.dataIndex:He.dataIndex)||0,vt=z[at];if(He.isLast&&vt&&!1!==vt.visible){var Bt=Re[He.dataSourceIndex>=0?He.dataSourceIndex:L.grandTotalColumnIndex];Array.isArray(Bt)||(Bt=[Bt]);var St=Bt[at];Te[Ze]={text:t(St,vt,Y),value:St,format:vt.format,dataType:vt.dataType,columnType:He.type,rowType:he.type,rowPath:he.path||[],columnPath:He.path||[],dataIndex:at},vt.width&&(Te[Ze].width=vt.width)}})}),ie},dispose:function(){this._isSharedDataSource?(this._dataSource.off("changed",this._changedHandler),this._dataSource.off("expandValueChanging",this._expandValueChangingHandler),this._dataSource.off("loadingChanged",this._loadingChangedHandler),this._dataSource.off("progressChanged",this._progressChangedHandler),this._dataSource.off("fieldsPrepared",this._fieldsPreparedHandler),this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler)):this._dataSource.dispose(),this._columnsScrollController&&this._columnsScrollController.dispose(),this._rowsScrollController&&this._rowsScrollController.dispose(),this._stateStoringController.dispose(),this.expandValueChanging.empty(),this.changed.empty(),this.loadingChanged.empty(),this.progressChanged.empty(),this.scrollChanged.empty(),this.dataSourceChanged.empty()}};return xM(a,"applyPartialDataSource"),xM(a,"collapseHeaderItem"),xM(a,"expandHeaderItem"),xM(a,"getData"),xM(a,"isEmpty"),a}()),Ban=function(t){var n=0,e=t.offsetWidth;if(t.getBoundingClientRect){var i=Mi(t);(n=i.width)||(n=i.right-i.left),n<=e-1&&(n=e)}return n>0?n:e};function H4e(t,n,e,i){var r=0,o=0,a=e/2;return t+i-(n+e)>1?(t>=n+e+a&&(o=parseInt((t-(n+e))/a,10)),r=n+e+a*o):t<n?(t<=n-a&&(o=parseInt((t-(n-a))/a,10)),r=n-(e-a*o)):r=n,r}var bJ=ji.inherit({ctor:function(t){this.component=t},option:function(){return this.component.option.apply(this.component,arguments)},_getRowElement:function(t){return this._tableElement&&this._tableElement.length>0?this._tableElement[0].rows[t]:null},_createGroupElement:function(){return U("<div>")},_createTableElement:function(){return U("<table>")},_getCellText:function(t,n){var e=t.isWhiteSpace?"&nbsp":t.text||"&nbsp";return n&&(-1!==e.indexOf("<")||-1!==e.indexOf(">"))&&(e=U("<div>").text(e).html()),e},_getRowClassNames:function(){},_applyCustomStyles:function(t){t.cell.width&&t.cssArray.push("min-width:"+t.cell.width+"px"),t.cell.sorted&&t.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(t,n){var i,r,o,a,s,S,e=n.length,l=this.option("rtlEnabled"),u=[],f=this.option("encodeHtml");for(t.data("area",this._getAreaName()),t.data("data",n),t.css("width",""),u.push(this._getMainElementMarkup()),o=0;o<e;o++){i=n[o];var T=[];for(S=[],u.push("<tr "),a=0;a<i.length;a++){if(this._getRowClassNames(o,r=i[a],S),T.push("<td "),r){r.rowspan&&T.push("rowspan='"+(r.rowspan||1)+"'"),r.colspan&&T.push("colspan='"+(r.colspan||1)+"'");var R={cellElement:void 0,cell:r,cellsCount:i.length,cellIndex:a,rowElement:void 0,rowIndex:o,rowsCount:e,rtlEnabled:l,classArray:[],cssArray:[]};this._applyCustomStyles(R),R.cssArray.length&&(T.push("style='"),T.push(R.cssArray.join(";")),T.push("'")),R.classArray.length&&(T.push("class='"),T.push(R.classArray.join(" ")),T.push("'")),T.push(">"),Z(r.expanded)&&T.push("<div class='dx-expand-icon-container'><span class='dx-expand'></span></div>"),s=this._getCellText(r,f)}else s="";T.push("<span "),Z(r.wordWrapEnabled)&&T.push("style='white-space:",r.wordWrapEnabled?"normal":"nowrap",";'"),T.push(">"+s+"</span>"),r.sorted&&T.push("<span class='dx-icon-sorted'></span>"),T.push("</td>")}S.length&&(u.push("class='"),u.push(S.join(" ")),u.push("'")),u.push(">"),u.push(T.join("")),u.push("</tr>")}u.push(this._getCloseMainElementMarkup()),t.append(u.join("")),this._triggerOnCellPrepared(t,n)},_triggerOnCellPrepared:function(t,n){var a,l,f,S,T,R,e=t.find("tr"),i=this._getAreaName(),r=this.option("onCellPrepared"),o=this.component._eventsStrategy.hasEvent("cellPrepared"),u=this.component._defaultActionArgs();if(r||o)for(T=0;T<n.length;T++)for(f=n[T],a=e.eq(T),R=0;R<f.length;R++)S=f[R],l={area:i,rowIndex:T,columnIndex:R,cellElement:kn(a.children().eq(R)),cell:S},o?this.component._trigger("onCellPrepared",l):r(se(l,u))},_getRowHeight:function(t){var n=this._getRowElement(t),e=0,i=n.offsetHeight;return n&&n.lastChild?(n.getBoundingClientRect&&(e=Mi(n).height)<=i-1&&(e=i),e>0?e:i):0},_setRowHeight:function(t,n){var e=this._getRowElement(t);e&&(e.style.height=n+"px")},getRowsLength:function(){return this._tableElement&&this._tableElement.length>0?this._tableElement[0].rows.length:0},getRowsHeight:function(){var e,t=[],n=this.getRowsLength();for(e=0;e<n;e++)t.push(this._getRowHeight(e));return t},setRowsHeight:function(t){var i,n=0,e=t.length;for(i=0;i<e;i++)n+=t[i],this._setRowHeight(i,t[i]);this._tableHeight=n,this._tableElement[0].style.height=n+"px"},getColumnsWidth:function(){var n,e,i,r,t=this.getRowsLength(),o=[],a=[],s=function(l,u,f,S,T){var R,L;for(R=0;R<S;R++)for(L=0;L<T;L++)l[u+R]=l[u+R]||[],l[u+R][f+L]=!0};if(t)for(n=0;n<t;n++)for(o[n]=o[n]||[],e=this._getRowElement(n),i=0;i<e.cells.length;i++){for(r=0;o[n][r];r++);s(o,n,r,e.cells[i].rowSpan,e.cells[i].colSpan),1===e.cells[i].colSpan&&(a[r]=a[r]||Ban(e.cells[i]))}return a},setColumnsWidth:function(t){var n,e=this._tableElement[0],i="",r=this.getColumnsCount(),o=[];for(n=0;n<r;n++)o.push(t[n]||0);for(n=r;n<t.length&&t;n++)o[r-1]+=t[n];for(n=0;n<r;n++)i+='<col style="width: '+o[n]+'px">';this._colgroupElement.html(i),this._tableWidth=o.reduce((a,s)=>a+s,0),e.style.width=this._tableWidth+"px",e.style.tableLayout="fixed"},resetColumnsWidth:function(){oa(this._colgroupElement.find("col"),"auto"),this._tableElement.css({width:"",tableLayout:""})},setGroupWidth:function(t){this._getScrollable().option("width",t)},setGroupHeight:function(t){this._getScrollable().option("height",t)},getGroupHeight:function(){return this._getGroupElementSize("height")},getGroupWidth:function(){return this._getGroupElementSize("width")},_getGroupElementSize(t){var n=this.groupElement()[0].style[t];return n.indexOf("px")>0?parseFloat(n):null},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(t){this.option("rtlEnabled")&&(t.right=t.left,delete t.left),this.tableElement().css(t)},setVirtualContentParams:function(t){this._virtualContent.css({width:t.width,height:t.height});var n=this._getScrollable();null!=n&&n.isRenovated()?this._getScrollable().option("classes","dx-virtual-mode"):this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){var t=this._getScrollable();null!=t&&t.isRenovated()?this._getScrollable().option("classes",""):this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){!this._virtualContent&&"virtual"===this.option("scrolling.mode")&&(this._virtualContent=U("<div>").addClass("dx-virtual-content").insertBefore(this._tableElement))},reset:function(){var t=this._tableElement[0];if(this._fakeTable&&this._fakeTable.detach(),this._fakeTable=null,this.disableVirtualMode(),this.setGroupWidth("100%"),this.setGroupHeight("auto"),this.resetColumnsWidth(),t){for(var n=0;n<t.rows.length;n++)t.rows[n].style.height="";t.style.height="",t.style.width="100%"}},_updateFakeTableVisibility:function(){var t=this.tableElement()[0],n=this.option("rtlEnabled")?"right":"left",e=this._fakeTable[0];t.style.top===e.style.top&&e.style[n]===t.style[n]?this._fakeTable.addClass("dx-hidden"):this._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(t){var e=this.option("rtlEnabled")?"right":"left",r=H4e(t,parseFloat(this.tableElement()[0].style[e]),this._tableWidth,this.getGroupWidth());parseFloat(this._fakeTable[0].style[e])!==r&&(this._fakeTable[0].style[e]=r+"px")},_moveFakeTableTop:function(t){var e=H4e(t,parseFloat(this.tableElement()[0].style.top),this._tableHeight,this.getGroupHeight());parseFloat(this._fakeTable[0].style.top)!==e&&(this._fakeTable[0].style.top=e+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){this._fakeTable||(this._fakeTable=this.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(this._virtualContent))},render:function(t,n){if(this._tableElement){try{this._tableElement[0].innerHTML=""}catch{this._tableElement.empty()}this._tableElement.attr("style","")}else this._groupElement=this._createGroupElement(),this._tableElement=this._createTableElement(),this._tableElement.appendTo(this._groupElement),this._groupElement.appendTo(t),this._rootElement=t;this._colgroupElement=U("<colgroup>").appendTo(this._tableElement),this._renderTableContent(this._tableElement,n),this._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},_getMaxLeftOffset(t){var n=U(t.container()).get(0);return n.scrollWidth-n.clientWidth},on:function(t,n){var e=this,i=e._getScrollable();return i&&i.on(t,function(r){e.option("rtlEnabled")&&Z(r.scrollOffset.left)&&(r.scrollOffset.left=e._getMaxLeftOffset(i)-r.scrollOffset.left),n(r)}),this},off:function(t){var n=this._getScrollable();return n&&n.off(t),this},scrollTo:function(t){var n=this._getScrollable(),e=t;n&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?e=this._getMaxLeftOffset(n)-t.left:"data"===this._getAreaName()&&(e={left:this._getMaxLeftOffset(n)-t.left,top:t.top})),n.scrollTo(e),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(t)))},updateScrollable:function(){var t=this._getScrollable();if(t)return t.update()},getColumnsCount:function(){var e,t=0,n=this._getRowElement(0);if(n)for(var i=0,r=(e=n.cells).length;i<r;++i)t+=e[i].colSpan;return t},getData:function(){var t=this._tableElement;return t?t.data("data"):[]}}),Wan=bJ.inherit({_getAreaName:function(){return"data"},_createGroupElement:function(){return U("<div>").addClass("dx-pivotgrid-area").addClass("dx-pivotgrid-area-data").css("borderTopWidth",0)},_applyCustomStyles:function(t){var n=t.cell,e=t.classArray;("T"===n.rowType||"T"===n.columnType)&&e.push("dx-total"),("GT"===n.rowType||"GT"===n.columnType)&&e.push("dx-grandtotal"),("T"===n.rowType||"GT"===n.rowType)&&e.push("dx-row-total"),t.rowIndex===t.rowsCount-1&&t.cssArray.push("border-bottom: 0px"),this.callBase(t)},_moveFakeTable:function(t){this._moveFakeTableHorizontally(t.x),this._moveFakeTableTop(t.y),this.callBase()},renderScrollable:function(){this._groupElement.dxScrollable({useNative:this.getUseNativeValue(),useSimulatedScrollbar:!1,rtlEnabled:this.component.option("rtlEnabled"),bounceEnabled:!1,updateManually:!0})},getUseNativeValue:function(){var{useNative:t}=this.component.option("scrolling");return"auto"===t?!!xg:!!t},getScrollbarWidth:function(){return this.getUseNativeValue()?E2e():0},updateScrollableOptions:function(t){var{direction:n,rtlEnabled:e}=t,i=this._getScrollable();i.option("useNative",this.getUseNativeValue()),i.option({direction:n,rtlEnabled:e})},getScrollableDirection:function(t,n){return t&&!n?"horizontal":!t&&n?"vertical":"both"},reset:function(){this.callBase(),this._virtualContent&&this._virtualContent.parent().css("height","auto")},setVirtualContentParams:function(t){this.callBase(t),this._virtualContent.parent().css("height",t.height),this._setTableCss({top:t.top,left:t.left})}}),z4e="dx-expand-border",U4e=!!xd.IS_RENOVATED_WIDGET;function W4e(t,n){if(n){var e=t.data().data,i=n.parentNode.rowIndex,r=n.cellIndex;return e[i]&&e[i][r]&&e[i][r].path}}var G4e=bJ.inherit({ctor:function(t){this.callBase(t),this._scrollBarWidth=0},_getAreaName:function(){return"column"},_getAreaClassName:function(){return"dx-pivotgrid-horizontal-headers"},_createGroupElement:function(){return U("<div>").addClass(this._getAreaClassName()).addClass("dx-pivotgrid-area")},_applyCustomStyles:function(t){var n=t.cssArray,e=t.cell,i=t.rowsCount,r=t.classArray;t.cellIndex===t.cellsCount-1&&n.push((t.rtlEnabled?"border-left:":"border-right:")+"0px"),(e.rowspan===i-t.rowIndex||t.rowIndex+1===i)&&n.push("border-bottom-width:0px"),("T"===e.type||"GT"===e.type)&&r.push("dx-row-total"),"T"===t.cell.type&&r.push("dx-total"),"GT"===t.cell.type&&r.push("dx-grandtotal"),Z(e.expanded)&&r.push(e.expanded?"dx-pivotgrid-expanded":"dx-pivotgrid-collapsed"),this.callBase(t)},_getMainElementMarkup:function(){return"<thead class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</thead>"},setVirtualContentParams:function(t){this.callBase(t),this._setTableCss({left:t.left,top:0}),this._virtualContentWidth=t.width},hasScroll:function(){var t=this._virtualContent?this._virtualContentWidth:this._tableWidth,n=this.getGroupWidth();return!(!n||!t)&&t-n>=1},renderScrollable:function(){this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:"never",bounceEnabled:!1,direction:"horizontal",rtlEnabled:!!U4e&&this.component.option("rtlEnabled"),updateManually:!0})},updateScrollableOptions:function(t){var{rtlEnabled:n}=t,e=this._getScrollable();U4e&&e.option({rtlEnabled:n})},processScrollBarSpacing:function(t){var n=this.option("rtlEnabled")?"right":"left",e=this.getGroupWidth();e&&this.setGroupWidth(e-t),this._scrollBarWidth&&this._groupElement.next().remove(),this._groupElement.toggleClass("dx-vertical-scroll",t>0),oa(this._groupElement.css("float",n),this.getGroupHeight()),this._scrollBarWidth=t},getScrollPath:function(t){var e,n=this.tableElement();return t-=parseInt(n[0].style.left,10)||0,we(n.find("td"),function(i,r){if(1===r.colSpan&&r.offsetLeft<=t&&r.offsetWidth+r.offsetLeft>t)return e=r,!1}),W4e(n,e)},_moveFakeTable:function(t){this._moveFakeTableHorizontally(t),this.callBase()}}),esn=G4e.inherit({_getAreaClassName:function(){return"dx-pivotgrid-vertical-headers"},_applyCustomStyles:function(t){this.callBase(t),t.cellIndex===t.cellsCount-1&&t.classArray.push("dx-last-cell"),t.rowIndex===t.rowsCount-1&&t.cssArray.push("border-bottom: 0px"),t.cell.isWhiteSpace&&t.classArray.push("dx-white-space-column")},_getAreaName:function(){return"row"},setVirtualContentParams:function(t){this.callBase(t),this._setTableCss({top:t.top,left:0}),this._virtualContentHeight=t.height},hasScroll:function(){var t=this._virtualContent?this._virtualContentHeight:this._tableHeight,n=this.getGroupHeight();return!(!n||!t)&&t-n>=1},renderScrollable:function(){this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:"never",bounceEnabled:!1,direction:"vertical",updateManually:!0})},processScrollBarSpacing:function(t){var n=this.getGroupHeight();if(n&&this.setGroupHeight(n-t),this._scrollBarWidth&&this._groupElement.next().remove(),t){var e=U("<div>");oa(e,"100%"),xo(e,t-1),this._groupElement.after(e)}this._scrollBarWidth=t},getScrollPath:function(t){var e,n=this.tableElement();return t-=parseInt(n[0].style.top,10)||0,we(n.find("tr"),function(i,r){var o=r.childNodes[r.childNodes.length-1];if(o&&1===o.rowSpan&&o.offsetTop<=t&&o.offsetHeight+o.offsetTop>t)return e=o,!1}),W4e(n,e)},_moveFakeTable:function(t){this._moveFakeTableTop(t),this.callBase()},_getRowClassNames:function(t,n,e){0!==t&n.expanded&&!e.includes(z4e)&&e.push(z4e)},_getMainElementMarkup:function(){return"<tbody class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</tbody>"},updateColspans:function(t){var n=this.tableElement()[0].rows,e=0,i=[];if(!(this.getColumnsCount()-t>0))for(var r=0;r<n.length;r++)for(var o=0;o<n[r].cells.length;o++){var a=n[r].cells[o],s=a.rowSpan;i[r]&&(e-=i[r],i[r]=0);var l=t-(e+a.colSpan);o===n[r].cells.length-1&&l>0&&(a.colSpan=a.colSpan+l),i[r+s]=(i[r+s]||0)+a.colSpan,e+=a.colSpan}}}),{getSwatchContainer:tsn}=UT,E8="dxSortable",j4e="dx-sortable-old";function rsn(t,n,e){return!Z(n.posHorizontal)||(e?t>n.posHorizontal:t<n.posHorizontal)}var q4e=Ic.inherit({_getDefaultOptions:function(){return se(this.callBase(),{onChanged:null,onDragging:null,itemRender:null,groupSelector:null,itemSelector:".dx-sort-item",itemContainerSelector:".dx-sortable-old",sourceClass:"dx-drag-source",dragClass:"dx-drag",targetClass:"dx-drag-target",direction:"vertical",allowDragging:!0,groupFilter:null,useIndicator:!1})},_renderItem:function(t,n){var i,e=this.option("itemRender");return e?i=e(t,n):(i=t.clone()).css({width:wn(t),height:Ln(t)}),i},_renderIndicator:function(t,n,e,i){var r=Zn(t,!0),o=ii(t,!0),a=t.offset().top-e.offset().top,s=t.offset().left-e.offset().left;this._indicator.css({position:"absolute",top:i&&n?a+r:a,left:i&&!n?s+o:s}).toggleClass("dx-position-indicator-horizontal",!n).toggleClass("dx-position-indicator-vertical",!!n).toggleClass("dx-position-indicator-last",!!i).appendTo(e),xo(this._indicator,""),oa(this._indicator,""),n?oa(this._indicator,o):xo(this._indicator,r)},_renderDraggable:function(t){this._$draggable&&this._$draggable.remove(),this._$draggable=this._renderItem(t,"drag").addClass(this.option("dragClass")).appendTo(tsn(t)).css({zIndex:1e6,position:"absolute"})},_detachEventHandlers:function(){var t=[Qd,Pc,Rc,c1,h1,HT].join(" ");Se.off(this._getEventListener(),kt(t,E8))},_getItemOffset:function(t,n,e){for(var i=0;i<n.length;i++){var r=void 0,o=e.pageY<n[i].posVertical;if(t?r=o:o&&!(r=rsn(e.pageX,n[i],this.option("rtlEnabled")))&&n[i+1]&&n[i+1].posVertical>n[i].posVertical&&(r=!0),r)return n[i]}},_getEventListener:function(){var t=this.option("groupSelector"),n=this.$element();return t?n.find(t):n},_attachEventHandlers:function(){var l,u,f,S,T,R,z,t=this,n=t.option("itemSelector"),e=t.option("itemContainerSelector"),i=t.option("groupSelector"),r=t.option("sourceClass"),o=t.option("targetClass"),a=t.option("onDragging"),s=t.option("groupFilter"),L=t.$element(),j=null,Y=-1,ie=function(){j&&j.dispose(),j=null};if(t._detachEventHandlers(),t.option("allowDragging")){var te=t._getEventListener();Se.on(te,kt(Pc,E8),n,function(re){var fe,he=(l=U(re.currentTarget)).closest(i);R=he.attr("group"),u=function osn(t,n){var e=-1,i=n.get(0);return we(t,function(r,o){var a=U(o);if(a.attr("item-group")&&a.attr("item-group")===t.eq(r-1).attr("item-group")||e++,o===i)return!1}),e===t.length?-1:e}((i?he:L).find(n),l),l.attr("item-group")&&(l=he.find("[item-group='"+l.attr("item-group")+"']")),t._renderDraggable(l),f=t._renderItem(l,"target").addClass(o),l.addClass(r),T=[],we(l,function(fe,Te){T.push(U(Te).offset())}),fe=It.getRootNode(t.$element().get(0)),z=i?s?U(fe).find(i).filter(s):L.find(i):L,t._indicator=U("<div>").addClass("dx-position-indicator")}),Se.on(te,kt(Qd,E8),function(re){var he,fe,Te,on;if(l){if(Y=-1,t._indicator.detach(),we(t._$draggable,function(on,hn){U(hn).css({top:T[on].top+re.offset.y,left:T[on].left+re.offset.x})}),S&&S.removeClass(o),(S=function asn(t,n){var e;return we(n,function(){(function isn(t,n,e){var i=U(t),r=i.offset();if(n>=r.left&&n<=r.left+ii(i,!0)&&e>=r.top&&e<=r.top+Zn(i,!0))return!0})(this,t.pageX,t.pageY)&&(e=U(this))}),e}(re,z))&&(on={sourceGroup:R,sourceIndex:u,sourceElement:l,targetGroup:S.attr("group"),targetIndex:S.find(n).index(f)},a&&a(on),on.cancel&&(S=void 0)),S&&j&&S.get(0)!==j.element().get(0)&&ie(),j&&j.moveIfNeed(re),!S)return void f.detach();!j&&S.attr("allow-scrolling")&&(j=function lsn(t){var n=null,e=t.scrollTop(),i=t.$element(),r=i.offset().top,o=Ln(i),a=0;function s(f){e=f.scrollOffset.top}function l(){u(),t.scrollTo(e+=a),n=setTimeout(l,10)}function u(){clearTimeout(n)}return t.on("scroll",s),{moveIfNeed:function(f){if(f.pageY<=r+20)a=-2;else{if(!(f.pageY>=r+o-20))return a=0,void u();a=2}l()},element:function(){return i},dispose:function(){u(),t.off("scroll",s)}}}(S.dxScrollable("instance"))),S.addClass(o);var Re=S.find(e),He=Re.find(n),Ze=S.closest("."+j4e).data("dxSortableOld"),at=Ze.option("useIndicator"),vt="vertical"===(Ze||t).option("direction"),Bt=function ssn(t,n,e){for(var i=[],r=[],o=0;o<t.length;o+=r.length)if((r=t.eq(o)).attr("item-group")&&(r=e.find("[item-group='"+r.attr("item-group")+"']")),r.is(":visible")){var a={item:r,index:i.length,posHorizontal:n?void 0:(ii(r.last(),!0)+r.last().offset().left+r.offset().left)/2};a.posVertical=n?(r.last().offset().top+r.offset().top+Zn(r.last(),!0))/2:Zn(r.last(),!0)+r.last().offset().top,i.push(a)}return i}(He,vt,Re),St=t._getItemOffset(vt,Bt,re);if(St){if(Te=Bt[St.index-1]&&Bt[St.index-1].item,(he=St.item).hasClass(r)||Te&&Te.hasClass(r)&&Te.is(":visible"))return void f.detach();if(Y=St.index,!at)return void f.insertBefore(he);var ct=S.attr("group")!==R,Nt=Y===u,Kt=Y===u+1;if(ct)return void t._renderIndicator(he,vt,S,t.option("rtlEnabled")&&!vt);!Nt&&!Kt&&t._renderIndicator(he,vt,S,t.option("rtlEnabled")&&!vt)}else{if((fe=He.last()).is(":visible")&&fe.hasClass(r))return;Re.length&&(Y=Bt.length?Bt[Bt.length-1].index+1:0),at?He.length&&t._renderIndicator(fe,vt,S,!t.option("rtlEnabled")||vt):f.appendTo(Re)}}}),Se.on(te,kt(Rc,E8),function(){if(ie(),l){var re=t.option("onChanged"),he={sourceIndex:u,sourceElement:l,sourceGroup:R,targetIndex:Y,removeSourceElement:!0,removeTargetElement:!1,removeSourceClass:!0};S&&(S.removeClass(o),he.targetGroup=S.attr("group"),(R!==he.targetGroup||Y>-1)&&(re&&re(he),he.removeSourceElement&&l.remove())),t._indicator.detach(),he.removeSourceClass&&l.removeClass(r),l=null,t._$draggable.remove(),t._$draggable=null,he.removeTargetElement&&f.remove(),f.removeClass(o),f=null}})}},_init:function(){this.callBase(),this._attachEventHandlers()},_render:function(){this.callBase(),this.$element().addClass(j4e)},_dispose:function(){var t=this;t.callBase.apply(t,arguments),t._$draggable&&t._$draggable.detach(),t._indicator&&t._indicator.detach()},_optionChanged:function(t){switch(t.name){case"onDragging":case"onChanged":case"itemRender":case"groupSelector":case"itemSelector":case"itemContainerSelector":case"sourceClass":case"targetClass":case"dragClass":case"allowDragging":case"groupFilter":case"useIndicator":this._attachEventHandlers();break;case"direction":break;default:this.callBase(t)}},_useTemplates:function(){return!1}});On("dxSortableOld",q4e);const usn=q4e;var vf_targets_drag="drag",vf_classes_areaBox="dx-area-box",vf_classes_areaField="dx-area-field",vf_classes_fieldsContainer="dx-pivotgrid-fields-container",vf_classes_widget="dx-widget",vf_attrs_treeViewItem="tree-view-item";function fsn(t,n){var e=function psn(t,n){var e=t.hasClass(vf_classes_areaBox),i=t.attr(vf_attrs_treeViewItem);return e?function csn(t,n){var e=t.clone();return n===vf_targets_drag&&we(t,(i,r)=>{var o=parseInt(ii(r),10);e.eq(i).css("width",o)}),e}(t,n):i?function dsn(t){return t.clone().addClass(vf_classes_areaBox).css("width",parseInt(ii(t)))}(t):function hsn(t){return U("<div>").addClass(vf_classes_areaField).addClass(vf_classes_areaBox).text(t.text())}(t)}(t,n);return n===vf_targets_drag?function gsn(t){return U("<div>").addClass(vf_classes_fieldsContainer).addClass(vf_classes_widget).append(t)}(e):e}var msn=KAe.inherit({_getSearchExpr:function(t){return t.useDefaultSearchExpr=!0,this.callBase(t)}});function xJ(t,n){var e=n;return Z(n.groupIndex)&&(e=t.getAreaFields(n.area,!0)[n.areaIndex]),e}function Z4e(t){return t=t||{},JSON.stringify([t.fields,t.columnExpandedPaths,t.rowExpandedPaths])}var X4e=tr.inherit(lIe).inherit(aY).inherit(pZ).inherit({_getDefaultOptions:function(){return se(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:ye.format("dxDataGrid-headerFilterEmptyValue"),ok:ye.format("dxDataGrid-headerFilterOK"),cancel:ye.format("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new msn(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var t=this.option("dataSource");t&&t.fields&&t.load&&(this._dataSource=t)},_optionChanged:function(t){switch(t.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&Z4e(this._dataSource.state())!==Z4e(t.value)?this._dataSource.state(t.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(t)}},renderField:function(t,n){var e=U("<div>").addClass("dx-area-field-content").text(t.caption||t.dataField),i=U("<div>").addClass("dx-area-field").addClass("dx-area-box").data("field",t).append(e),r=xJ(this._dataSource,t);return"data"!==t.area&&(t.allowSorting&&this._applyColumnState({name:"sort",rootElement:i,column:{alignment:this.option("rtlEnabled")?"right":"left",sortOrder:"desc"===t.sortOrder?"desc":"asc",allowSorting:t.allowSorting},showColumnLines:n}),this._applyColumnState({name:"headerFilter",rootElement:i,column:{alignment:this.option("rtlEnabled")?"right":"left",filterValues:r.filterValues,allowFiltering:r.allowFiltering&&!t.groupIndex,allowSorting:t.allowSorting},showColumnLines:n})),t.groupName&&i.attr("item-group",t.groupName),i},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var t=this;t._createComponent(t.$element(),usn,se({allowDragging:t.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var n=t._dataSource,e=U(this).closest(".dx-sortable-old"),i=e.data("dxPivotGrid"),r=e.data("dxPivotGridFieldChooser");return i?i.getDataSource()===n:!!r&&r.option("dataSource")===n},itemRender:fsn,onDragging:function(n){var e=n.sourceElement.data("field"),i=n.targetGroup;n.cancel=!1,!0===e.isMeasure?("column"===i||"row"===i||"filter"===i)&&(n.cancel=!0):!1===e.isMeasure&&"data"===i&&(n.cancel=!0)},useIndicator:!0,onChanged:function(n){var e=n.sourceElement.data("field");if(n.removeSourceElement=!!n.sourceGroup,t._adjustSortableOnChangedArgs(n),e){var r,i=n.targetIndex,o=0;t._processDemandState(a=>{var s=a.getAreaFields(e.area,!0);r=xJ(a,e);var u=s.filter(f=>!1!==f.visible)[i-1];u&&(o=s.filter(f=>!1===f.visible&&f.areaIndex<=u.areaIndex).length)}),t._applyChanges([r],{area:n.targetGroup,areaIndex:i+o})}}},t._getSortableOptions()))},_processDemandState:function(t){var n="instantly"===this.option("applyChangesMode"),e=this._dataSource;if(n)t(e,n);else{var i=e.state(),r=this.option("state");r&&e.state(r,!0),t(e,n),e.state(i,!0)}},_applyChanges(t,n){var e=this;e._processDemandState(function(i,r){t.forEach(o=>{var{index:a}=o;i.field(a,n)}),r?i.load():e._changedHandler()})},_adjustSortableOnChangedArgs:function(t){t.removeSourceElement=!1,t.removeTargetElement=!0,t.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(t){var n=this;Se.on(t||n.$element(),Vi,".dx-area-field.dx-area-box",function(i){var r=U(i.currentTarget).data("field"),o=se(!0,{},xJ(n._dataSource,r)),a=U(i.target).hasClass("dx-header-filter"),s=n._dataSource,l=o.groupName?"tree":"list",u=s.paginate()&&"list"===l;a?n._headerFilterView.showHeaderFilterMenu(U(i.currentTarget),se(o,{type:l,encodeHtml:n.option("encodeHtml"),dataSource:{useDefaultSearch:!u,load:function(f){var S=f.userData;if(S.store)return S.store.load(f);var T=new et;return s.getFieldValues(o.index,n.option("headerFilter.showRelevantValues"),u?f:void 0).done(function(R){var L=n.option("headerFilter.texts.emptyValue");R.forEach(z=>{z.text||(z.text=L)}),u?T.resolve(R):(S.store=new cs(R),S.store.load(f).done(T.resolve).fail(T.reject))}).fail(T.reject),T},postProcess:function(f){return function(t,n){var e=[],i=!!n.groupName,r="exclude"===n.filterType;n.filterValues&&we(n.filterValues,function(o,a){e.push(Array.isArray(a)?a.join("/"):a&&a.valueOf())}),ml(t,function(o){var a=o[0],s=Kc(o),l=i?Dr(o,function(f){return f.text}).reverse().join("/"):a.text;a.value=i?s.slice(0):a.key||a.value;var u=i?s.join("/"):a.value&&a.value.valueOf();a.children&&(a.items=a.children,a.children=null),jAe(a,a.key&&e.includes(l)||e.includes(u),r)})}(f,o),f}},apply:function(){n._applyChanges([o],{filterValues:this.filterValues,filterType:this.filterType})}})):r.allowSorting&&"data"!==r.area&&n._applyChanges([r],{sortOrder:"desc"===r.sortOrder?"asc":"desc"})})},_initTemplates:Be,addWidgetPrefix:function(t){return"dx-pivotgrid-"+t}});On("dxPivotGridFieldChooserBase",X4e);const J4e=X4e;var ZS="<div>",O8=bJ.inherit({ctor:function(t,n){this.callBase(t),this._area=n},_getAreaName:function(){return"fields"},_createGroupElement:function(){return U(ZS).addClass("dx-pivotgrid-fields-area").addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").attr("group",this._area)},isVisible:function(){return!!this.option("fieldPanel.visible")&&this.option("fieldPanel.show"+b4e(this._area)+"Fields")},_renderButton:function(t){var n=this,e=U("<td>").appendTo(U("<tr>").appendTo(t));n.component._createComponent(U(ZS).appendTo(e),To,{text:"Fields",icon:"menu",width:"auto",onClick:function(){var r=n.tableElement().find(".dx-fields-area-popup").dxPopup("instance");r.option("visible")||r.show()}}).$element().addClass("dx-pivotgrid-fields-area-hamburger")},_getPopupOptions:function(t,n){return{contentTemplate:function(){return U("<table>").addClass("dx-area-field-container").append(U("<thead>").addClass("dx-pivotgrid-fields-area-head").append(t))},height:"auto",width:"auto",position:{at:"left",my:"left",of:n},dragEnabled:!1,animation:{show:{type:"pop",duration:200}},shading:!1,showTitle:!1,hideOnOutsideClick:!0,container:n.parent()}},_renderPopup:function(t,n){var e=t.find(".dx-button"),i=this._getPopupOptions(n,e),r=this.component.$element().dxPivotGridFieldChooserBase("instance");this._rowPopup&&this._rowPopup.$element().remove(),this._rowPopup=this.component._createComponent(U(ZS).appendTo(t),Ss,i),this._rowPopup.$element().addClass("dx-fields-area-popup"),this._rowPopup.content().addClass("dx-pivotgrid-fields-container"),this._rowPopup.content().parent().attr("group","row"),r.subscribeToEvents(this._rowPopup.content()),r.renderSortable(this._rowPopup.content())},_shouldCreateButton:function(){return!1},_renderTableContent:function(t,n){var e=this,i=this.groupElement(),r=this.isVisible(),o=e.component.$element().dxPivotGridFieldChooserBase("instance"),a=U("<thead>").addClass("dx-pivotgrid-fields-area-head").appendTo(t),s=e._area,l=U("<tr>");i.toggleClass("dx-hidden",!r),t.addClass("dx-area-field-container"),r&&(we(n,function(u,f){if(f.area===s&&!1!==f.visible){var S=U("<td>").append(o.renderField(f,"row"===f.area)),T=S.find(".dx-column-indicators");T.length&&e._shouldCreateButton()&&T.insertAfter(T.next()),S.appendTo(l),function ysn(t,n,e,i){e&&e.groupName&&e.groupName===t.groupName&&U(ZS).addClass("dx-group-connector").addClass("dx-group-connector-prev").appendTo(i),n&&n.groupName&&n.groupName===t.groupName&&U(ZS).addClass("dx-group-connector").addClass("dx-group-connector-next").appendTo(i)}(f,n[u+1],n[u-1],S)}}),l.children().length||U("<td>").append(U(ZS).addClass("dx-empty-area-text").text(this.option("fieldPanel.texts."+s+"FieldArea"))).appendTo(l),e._shouldCreateButton()?(e._renderButton(a),e._renderPopup(t,l)):a.append(l))},setGroupWidth:function(t){XP(this.groupElement(),t)},setGroupHeight:function(t){JP(this.groupElement(),t)},reset:function(){this.callBase(),this.groupElement().css("marginTop",0)},_renderVirtualContent:Be}),Wl="<div>",Csn=Rn(),Q4e="dx-pivotgridfieldchooser-container";function eNe(t,n){var e=[];if(t.items)for(var i=0;i<t.items.length;i++)e.push.apply(e,eNe(t.items[i],n));else Z(t.index)&&e.push(n[t.index]);return e}function wJ(t,n){if(t.items)for(var e=0;e<t.items.length;e++){var i=wJ(t.items[e],n);if(i)return i}if(n(t))return t}var tNe=[function(t,n){return+!!n.isMeasure-!!t.isMeasure},function(t,n){return+!(!n.items||!n.items.length)-!(!t.items||!t.items.length)},function(t,n){return+!!(!1===t.isMeasure&&t.field&&t.field.levels&&t.field.levels.length)-!!(!1===n.isMeasure&&n.field&&n.field.levels&&n.field.levels.length)},lJ(function(t){return t.text})];function Ssn(t,n){for(var e=0,i=0;!e&&tNe[i];)e=tNe[i++](t,n);return e}function nNe(t){return t.find(".dx-scrollable").dxScrollable("instance")}var iNe=J4e.inherit({_getDefaultOptions:function(){return se(this.callBase(),{height:400,layout:0,dataSource:null,encodeHtml:!0,onContextMenuPreparing:null,allowSearch:!1,searchTimeout:500,texts:{columnFields:ye.format("dxPivotGrid-columnFields"),rowFields:ye.format("dxPivotGrid-rowFields"),dataFields:ye.format("dxPivotGrid-dataFields"),filterFields:ye.format("dxPivotGrid-filterFields"),allFields:ye.format("dxPivotGrid-allFields")}})},_refreshDataSource:function(){var t=this;t._expandedPaths=[],t._changedHandler=t._changedHandler||function(){we(t._dataChangedHandlers,function(n,e){e()}),t._fireContentReadyAction(),t._skipStateChange=!0,t.option("state",t._dataSource.state()),t._skipStateChange=!1},t._disposeDataSource(),t.callBase(),t._dataSource&&t._dataSource.on("changed",t._changedHandler)},_disposeDataSource:function(){var t=this._dataSource;t&&(t.off("changed",this._changedHandler),this._dataSource=void 0)},_dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},_init:function(){this.callBase(),this._refreshDataSource(),this._dataChangedHandlers=[],this._initActions()},_initActions:function(){this._actions={onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing")}},_trigger:function(t,n){this._actions[t](n)},_setOptionsByReference:function(){this.callBase(),se(this._optionsByReference,{dataSource:!0})},_optionChanged:function(t){switch(t.name){case"dataSource":this._refreshDataSource(),this._invalidate();break;case"layout":case"texts":case"allowSearch":case"searchTimeout":case"encodeHtml":this._invalidate();break;case"onContextMenuPreparing":this._actions[t.name]=this._createActionByOption(t.name);break;default:this.callBase(t)}},_clean:function(t){!t&&this._dataSource&&this.option("state",this._dataSource.state()),this.$element().children("."+Q4e).remove()},_renderLayout0:function(t){t.addClass("dx-layout-0");var n=U(Wl).addClass("dx-row").appendTo(t),e=U(Wl).addClass("dx-row").appendTo(t),i=U(Wl).addClass("dx-col").appendTo(n),r=U(Wl).addClass("dx-col").appendTo(n),o=U(Wl).addClass("dx-col").appendTo(e),a=U(Wl).addClass("dx-col").appendTo(e);this._renderArea(i,"all"),this._renderArea(r,"row"),this._renderArea(r,"column"),this._renderArea(o,"filter"),this._renderArea(a,"data")},_renderLayout1:function(t){var n=U(Wl).addClass("dx-col").appendTo(t),e=U(Wl).addClass("dx-col").appendTo(t);this._renderArea(n,"all"),this._renderArea(e,"filter"),this._renderArea(e,"row"),this._renderArea(e,"column"),this._renderArea(e,"data")},_renderLayout2:function(t){t.addClass("dx-layout-2");var n=U(Wl).addClass("dx-row").appendTo(t);this._renderArea(n,"all");var e=U(Wl).addClass("dx-row").appendTo(t),i=U(Wl).addClass("dx-col").appendTo(e),r=U(Wl).addClass("dx-col").appendTo(e);this._renderArea(i,"filter"),this._renderArea(i,"row"),this._renderArea(r,"column"),this._renderArea(r,"data")},_initMarkup:function(){var t=this.$element(),n=U(Wl).addClass(Q4e).appendTo(t),e=this.option("layout");this.callBase(),t.addClass("dx-pivotgridfieldchooser").addClass("dx-pivotgrid-fields-container"),this._dataChangedHandlers=[];var i=this._dataSource,r="instantly"!==this.option("applyChangesMode")&&i&&i.state();r&&this.option("state")&&i.state(this.option("state"),!0),0===e?this._renderLayout0(n):1===e?this._renderLayout1(n):this._renderLayout2(n),r&&i.state(r,!0)},_renderContentImpl:function(){this.callBase(),this.renderSortable(),this._renderContextMenu(),this.updateDimensions()},_fireContentReadyAction:function(){(!this._dataSource||!this._dataSource.isLoading())&&this.callBase()},_getContextMenuArgs:function(t){var i,r,n=U(t.target).closest(".dx-area-field"),e=U(t.target).closest(".dx-area-fields");if(n.length){var o=n.data("field");o&&(i=this.getDataSource().field(o.index)||o)}return e.length&&(r=e.attr("group")),{event:t,field:i,area:r,items:[]}},_renderContextMenu:function(){var t=this,n=t.$element();t._contextMenu&&t._contextMenu.$element().remove(),t._contextMenu=t._createComponent(U(Wl).appendTo(n),Zm,{onPositioning:function(e){var i=e.event;if(i){var r=t._getContextMenuArgs(i);t._trigger("onContextMenuPreparing",r),r.items&&r.items.length?e.component.option("items",r.items):e.cancel=!0}},target:n,onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:"dx-pivotgridfieldchooser-context-menu"})},_createTreeItems:function(t,n,e){var r,i=this,o=[],a=[],s=n[0],l={};return s?(we(t,function(u,f){var S=f[s]||"";l[S]=l[S]||[],l[S].push(f),void 0===r&&(r=!0),r=r&&!0===f.isMeasure}),we(l,function(u,f){var S=e?e+"."+u:u,T=i._createTreeItems(f,n.slice(1),S);u?a.push({key:u,text:u,path:S,isMeasure:T.isMeasure,expanded:i._expandedPaths.includes(S),items:T}):o=T}),(o=a.concat(o)).isMeasure=r):we(t,function(u,f){var S;!0===f.isMeasure&&(S="measure"),!1===f.isMeasure&&(S=f.groupName?"hierarchy":"dimension"),o.push({index:f.index,field:f,key:f.dataField,selected:Z(f.area),text:f.caption||f.dataField,icon:S,isMeasure:f.isMeasure,isDefault:f.isDefault})}),o},_createFieldsDataSource:function(t){var n=t&&t.fields()||[];n=n.filter(i=>!1!==i.visible&&!Z(i.groupIndex));var e=this._createTreeItems(n,["dimension","displayFolder"]);return uJ(e,function(i){i.sort(Ssn)},0,"items"),e},_renderFieldsTreeView:function(t){var n=this,e=n._dataSource,i=n._createComponent(t,IS,{dataSource:n._createFieldsDataSource(e),showCheckBoxesMode:"normal",expandNodesRecursive:!1,searchEnabled:n.option("allowSearch"),searchTimeout:n.option("searchTimeout"),useNativeScrolling:!1,itemTemplate:function(r,o,a){var s=U("<div>").toggleClass("dx-area-field",!r.items).attr(vf_attrs_treeViewItem,!0).data("field",r.field).appendTo(a);r.icon&&Fu(r.icon).appendTo(s),U("<span>").text(r.text).appendTo(s)},onItemCollapsed:function(r){var o=n._expandedPaths.indexOf(r.itemData.path);o>=0&&n._expandedPaths.splice(o,1)},onItemExpanded:function(r){n._expandedPaths.indexOf(r.itemData.path)<0&&n._expandedPaths.push(r.itemData.path)},onItemSelectionChanged:function(r){var a,s,u,o=r.itemData,l=!0;if(o.items){if(o.selected)return void i.unselectItem(o);if(n._processDemandState(()=>{s=eNe(o,e.fields());for(var S=0;S<s.length;S++)if(s[S].area){l=!1;break}}),l){var f=wJ(o,function(S){return S.isDefault})||wJ(o,function(S){return Z(S.index)});return void(f&&i.selectItem(f))}}else a=e.fields()[o.index],o.selected&&(u=a.isMeasure?"data":"column"),a&&(s=[a]);n._applyChanges(s,{area:u,areaIndex:void 0})}});n._dataChangedHandlers.push(function(){var r=nNe(t),o=r?r.scrollTop():0;i.option({dataSource:n._createFieldsDataSource(e)}),(r=nNe(t))&&(r.scrollTo({y:o}),r.update())})},_renderAreaFields:function(t,n){var e=this,i=e._dataSource,r=i?se(!0,[],i.getAreaFields(n,!0)):[];t.empty(),we(r,function(o,a){!1!==a.visible&&e.renderField(a,!0).appendTo(t)})},_renderArea:function(t,n){var a,s,e=this,i=U(Wl).addClass("dx-area").appendTo(t),r=U(Wl).addClass("dx-area-fields-header").appendTo(i),o=e.option("texts."+n+"Fields");U("<span>").addClass("dx-area-icon").addClass("dx-area-icon-"+n).appendTo(r),U("<span>").html("&nbsp;").appendTo(r),U("<span>").addClass("dx-area-caption").text(o).appendTo(r);var l=U(Wl).addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").appendTo(i);"all"!==n?(l.attr("group",n).attr("allow-scrolling",!0),a=U(Wl).addClass("dx-area-field-container").appendTo(l),s=function(){e._renderAreaFields(a,n)},e._dataChangedHandlers.push(s),s(),l.dxScrollable({useNative:!1})):(i.addClass("dx-all-fields"),l.addClass("dx-treeview-border-visible"),e._renderFieldsTreeView(l))},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var t=this.$element().find(".dx-treeview").dxTreeView("instance");t&&(t.option("searchValue",""),t.collapseAll())},applyChanges:function(){var t=this.option("state");Z(t)&&this._dataSource.state(t)},cancelChanges:function(){var t=this._dataSource;return!t.isLoading()&&(this.option("state",t.state()),!0)},getDataSource:function(){return this._dataSource},updateDimensions:function(){this.$element().find(".dx-area .dx-scrollable").dxScrollable("update")},_visibilityChanged:function(t){t&&Csn&&this.updateDimensions()}});On("dxPivotGridFieldChooser",iNe);const rNe=iNe;var Esn={exportToExcel:function(){QB(this.getDataProvider(),{fileName:this.option("export.fileName"),format:"EXCEL",rtlEnabled:this.option("rtlEnabled"),exportingAction:this._actions.onExporting,exportedAction:this._actions.onExported,fileSavingAction:this._actions.onFileSaving},swe_getData)},_getLength:function(t){var n,e=t[0].length,i=0;for(n=0;n<e;n++)i+=t[0][n].colspan||1;return i},_correctCellsInfoItemLengths:function(t,n){for(var e=0;e<t.length;e++)for(;t[e].length<n;)t[e].push({});return t},_calculateCellInfoItemLength:function(t){for(var n=0,e=0;e<t.length;e++)n+=Z(t[e].colspan)?t[e].colspan:1;return n},_getEmptyCell:function(){return{text:"",value:void 0,colspan:1,rowspan:1}},_getAllItems:function(t,n,e){var i,r,o=e,a=this._getLength(n),s=t.length;if(t.length>0&&t[0].length>0&&e.length>0&&0===e[0].length){var l=this._calculateCellInfoItemLength(t[0]);l>0&&(o=this._correctCellsInfoItemLengths(e,l))}var u=t.concat(o);for(r=0;r<n.length;r++)for(i=n[r].length-1;i>=0;i--)Z(u[r+s])||(u[r+s]=[]),u[r+s].splice(0,0,se({},n[r][i]));return u[0].splice(0,0,se({},this._getEmptyCell(),{alignment:Eg(this._options.rtlEnabled),colspan:a,rowspan:s})),$Pe(u,this._getEmptyCell())},getDataProvider:function(){return new Osn(this)}},Osn=ji.inherit({ctor:function(t){this._exportController=t},ready:function(){this._initOptions();var t=this._options;return Qt(t.items).done(n=>{var i=n[n[0][0].rowspan-1];we(i,(r,o)=>{o.width=100}),t.columns=i,t.items=n})},_initOptions:function(){var t=this._exportController,n=t._dataController,e=new et;n.beginLoading(),setTimeout(function(){var i=se(!0,[],n.getColumnsInfo(!0)),r=se(!0,[],n.getRowsInfo(!0)),o=n.getCellsInfo(!0);e.resolve(t._getAllItems(i,r,o)),n.endLoading()}),this._options={items:e,rtlEnabled:t.option("rtlEnabled"),dataFields:t.getDataSource().getAreaFields("data"),customizeExcelCell:t.option("export.customizeExcelCell"),rowsArea:t._rowsArea,columnsArea:t._columnsArea}},getColumns:function(){return this._options.columns},getColumnsWidths:function(){var t=this._options.columnsArea,n=this._options.rowsArea,e=this._options.columns;return!Rn()||"virtual"===t.option("scrolling.mode")||t.element().is(":hidden")?e.map(r=>100):n.getColumnsWidth().concat(t.getColumnsWidth())},getRowsCount:function(){return this._options.items.length},getGroupLevel:function(){return 0},getCellMerging:function(t,n){var e=this._options.items,i=e[t]&&e[t][n];return i?{colspan:i.colspan-1,rowspan:i.rowspan-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:this.getRowAreaColCount(),y:this.getColumnAreaRowCount()}},getCellType:function(t,n){var e=this.getStyles()[this.getStyleId(t,n)];return e&&e.dataType||"string"},getCellData:function(t,n,e){var i={},r=this._options.items,o=r[t]&&r[t][n]||{};if(e){i.cellSourceData=o;var a=this._tryGetAreaName(o,t,n);a&&(i.cellSourceData.area=a),i.cellSourceData.rowIndex=t,i.cellSourceData.columnIndex=n}return i.value="string"===this.getCellType(t,n)?o.text:o.value,i.cellSourceData&&i.cellSourceData.isWhiteSpace&&(i.value=""),i},_tryGetAreaName(t,n,e){return this.isColumnAreaCell(n,e)?"column":this.isRowAreaCell(n,e)?"row":Z(t.dataIndex)?"data":void 0},isRowAreaCell(t,n){return t>=this.getColumnAreaRowCount()&&n<this.getRowAreaColCount()},isColumnAreaCell(t,n){return n>=this.getRowAreaColCount()&&t<this.getColumnAreaRowCount()},getColumnAreaRowCount(){return this._options.items[0][0].rowspan},getRowAreaColCount(){return this._options.items[0][0].colspan},getHeaderStyles(){return[{alignment:"center",dataType:"string"},{alignment:Eg(this._options.rtlEnabled),dataType:"string"}]},getDataFieldStyles(){var t=this._options.dataFields,n={alignment:this._options.rtlEnabled?"left":"right"},e=[];return t.length?(t.forEach(i=>{e.push(mt({},n,{format:i.format,dataType:this.getCellDataType(i)}))}),e):[n]},getStyles:function(){return this._styles||(this._styles=[...this.getHeaderStyles(),...this.getDataFieldStyles()]),this._styles},getCellDataType:function(t){if(t&&t.customizeText)return"string";if(t.dataType)return t.dataType;if(t.format){if(1===Gr.parse(Es.format(1,t.format)))return"number";if(Es.format(new Date,t.format))return"date"}return"string"},getStyleId:function(t,n){var e=this._options.items,i=e[t]&&e[t][n]||{};return 0===n&&0===t||this.isColumnAreaCell(t,n)?0:this.isRowAreaCell(t,n)?1:this.getHeaderStyles().length+(i.dataIndex||0)},hasCustomizeExcelCell:function(){return Z(this._options.customizeExcelCell)},customizeExcelCell:function(t){this._options.customizeExcelCell&&this._options.customizeExcelCell(t)}}),Tsn={number:"numeric",date:"datetime"},SJ="dxPivotGridUnbinding";function aNe(t,n){var e=[],i=n.length-1;return we(t,function(r,o){e.push(o.text||sJ(o.value,n[i-r]))}),e.reverse()}function sNe(t){var n=0;return ml(t,function(e){n=Math.max(n,e.length-1)}),n}function Msn(t,n){var e=t.getAreaFields("data");if("args"!==n.putDataFieldsInto&&"singleAxis"!==n.dataFieldsDisplayMode||1===e.length){var i=[];return we(e,function(r,o){var a={name:o.caption,title:o.caption,valueType:Tsn[o.dataType]||o.dataType,label:{format:o.format}};o.customizeText&&(a.label.customizeText=function(s){return o.customizeText.call(o,s)}),"splitPanes"===n.dataFieldsDisplayMode&&(a.pane=o.caption),i.push(a)}),i}return[{}]}function Asn(t,n){var e=[],i=t.getAreaFields("data");return i.length>1&&"splitPanes"===n.dataFieldsDisplayMode&&"args"!==n.putDataFieldsInto&&we(i,function(r,o){e.push({name:o.caption})}),e.length||e.push({}),e}const Lsn={bindChart:function(t,n){n=se({},n);var e=this,i=function(){n.grandTotalText=e.option("texts.grandTotal");var o=function Fsn(t,n){var e=n.customizeSeries,i=n.customizeChart,r={valueAxis:Msn(t,n),panes:Asn(t,n)},o={};return i&&(r=se(!0,{},r,i(r))),r.dataSource=function ksn(t,n,e){var T,R,L,z,j,Y,ie,te,re,he,i=t.getData(),r=[],o=t.getAreaFields("data"),a=t.getAreaFields("row"),s=t.getAreaFields("column"),l=[{index:i.grandTotalColumnIndex,children:i.columns}],u=[{index:i.grandTotalRowIndex,children:i.rows}],f=sNe(u),S=sNe(l);function fe(){var at,He=(i.values[L]||[])[ie]||[],Ze=He[T],vt={rowPath:Y,maxRowLevel:f,rowPathFormatted:j,rowFields:a,columnPathFormatted:he,maxColumnLevel:S,columnPath:re,columnFields:s,dataFields:o,dataIndex:T,dataValues:He,visible:te&&z},Bt=(n.inverted?he:j).join(" - "),St=(n.inverted?j:he).join("/");o.length>1&&(("args"===n.putDataFieldsInto||"both"===n.putDataFieldsInto)&&(St+=" | "+R.caption),"args"!==n.putDataFieldsInto&&(Bt+=" | "+R.caption,"singleAxis"!==n.dataFieldsDisplayMode&&(at=R.caption))),vt.chartDataItem={val:void 0===Ze?null:Ze,series:Bt,arg:St},vt=function Isn(t,n){var e=t.chartDataItem,i=n&&n(t);return i?(e=se({},e,i.chartDataItem),i=se({},t,i,{chartDataItem:e})):t}(vt,n.processCell),vt.visible&&(e[vt.chartDataItem.series]=e[vt.chartDataItem.series]||at,r.push(vt.chartDataItem))}function Te(He){ml(u,function(Ze){L=Ze[0].index,Ze=Ze.slice(0,Ze.length-1),z=f===Ze.length,Y=Kc(Ze),j=aNe(Ze,a),0===Y.length&&(j=[n.grandTotalText]),ml(l,function(at){ie=at[0].index,at=at.slice(0,at.length-1),te=S===at.length,re=Kc(at),he=aNe(at,s),0===re.length&&(he=[n.grandTotalText]),He()})})}function Re(He){we(o,function(Ze,at){R=at,T=Ze,He()})}return!1===n.alternateDataFields?Re(function(){Te(fe)}):Te(function(){Re(fe)}),r}(t,n,o),r.seriesTemplate={nameField:"series",customizeSeries:function(a){var s={};return"splitPanes"===n.dataFieldsDisplayMode?s.pane=o[a]:"singleAxis"!==n.dataFieldsDisplayMode&&(s.axis=o[a]),e&&(s=se(s,e(a,s))),s}},r}(e.getDataSource(),n);t.option(o)};if(t=function Psn(t){if(!t)return!1;if(t.NAME)return"dxChart"===t.NAME&&t;var n=U(t);return n.data("dxChart")&&n.dxChart("instance")}(t),!t)return null;(function Rsn(t){var n=t.$element().data(SJ);n&&n()})(t),e.on("changed",i),i();var r=function(){t.$element().removeData(SJ),e.off("changed",i)};return t.on("disposing",r),this.on("disposing",r),t.$element().data(SJ,r),r}};var lNe=Fn(),uNe="dx-area-data-cell",DJ="dx-area-row-cell",dNe="dx-area-column-cell",EJ="dx-area-description-cell",cNe="dx-pivotgrid-border",hNe="dx-pivotgrid",T8="dx-bottom-border",pNe="dx-area-fields",gNe="dx-incompressible-fields",OJ="dx-overflow-hidden",I8="<tr>",XS="<td>",kb="<div>",mNe=["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"];function TJ(t){var n=0;return we(t,function(e,i){n+=i||0}),n}function IJ(t,n){for(var e=n/t.length,i=0;i<t.length;i++)t[i]-=e}function _Ne(t){t.off("scroll").off("stop")}function vNe(t,n){var e="width"===n?["borderLeftWidth","borderRightWidth"]:["borderTopWidth","borderBottomWidth"],i=0;return we(t,function(r,o){var a=lNe.getComputedStyle(o.get(0));e.forEach(function(s){i+=parseFloat(a[s])||0})}),i}var yNe=tr.inherit({_getDefaultOptions:function(){return se(this.callBase(),{scrolling:{timeout:300,renderingThreshold:150,minTimeout:10,mode:"standard",useNative:"auto",removeInvisiblePages:!0,virtualRowHeight:50,virtualColumnWidth:100,loadTwoPagesOnStart:!0},encodeHtml:!0,dataSource:null,activeStateEnabled:!1,fieldChooser:{minWidth:250,minHeight:250,enabled:!0,allowSearch:!1,searchTimeout:500,layout:0,title:ye.format("dxPivotGrid-fieldChooserTitle"),width:600,height:600,applyChangesMode:"instantly"},onContextMenuPreparing:null,allowSorting:!1,allowSortingBySummary:!1,allowFiltering:!1,allowExpandAll:!1,wordWrapEnabled:!0,fieldPanel:{showColumnFields:!0,showFilterFields:!0,showDataFields:!0,showRowFields:!0,allowFieldDragging:!0,visible:!1,texts:{columnFieldArea:ye.format("dxPivotGrid-columnFieldArea"),rowFieldArea:ye.format("dxPivotGrid-rowFieldArea"),filterFieldArea:ye.format("dxPivotGrid-filterFieldArea"),dataFieldArea:ye.format("dxPivotGrid-dataFieldArea")}},dataFieldArea:"column",export:{enabled:!1,fileName:"PivotGrid"},showRowTotals:!0,showRowGrandTotals:!0,showColumnTotals:!0,showColumnGrandTotals:!0,hideEmptySummaryCells:!0,showTotalsPrior:"none",rowHeaderLayout:"standard",loadPanel:{enabled:!0,text:ye.format("Loading"),width:200,height:70,showIndicator:!0,indicatorSrc:"",showPane:!0},texts:{grandTotal:ye.format("dxPivotGrid-grandTotal"),total:ye.getFormatter("dxPivotGrid-total"),noData:ye.format("dxDataGrid-noDataText"),showFieldChooser:ye.format("dxPivotGrid-showFieldChooser"),expandAll:ye.format("dxPivotGrid-expandAll"),collapseAll:ye.format("dxPivotGrid-collapseAll"),sortColumnBySummary:ye.getFormatter("dxPivotGrid-sortColumnBySummary"),sortRowBySummary:ye.getFormatter("dxPivotGrid-sortRowBySummary"),removeAllSorting:ye.format("dxPivotGrid-removeAllSorting"),exportToExcel:ye.format("dxDataGrid-exportToExcel"),dataNotAvailable:ye.format("dxPivotGrid-dataNotAvailable")},onCellClick:null,onCellPrepared:null,showBorders:!1,stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3},onExpandValueChanging:null,renderCellCountLimit:2e4,onExporting:null,onExported:null,onFileSaving:null,headerFilter:{width:252,height:325,allowSearch:!1,showRelevantValues:!1,searchTimeout:500,texts:{emptyValue:ye.format("dxDataGrid-headerFilterEmptyValue"),ok:ye.format("dxDataGrid-headerFilterOK"),cancel:ye.format("dxDataGrid-headerFilterCancel")}}})},_updateCalculatedOptions:function(t){var n=this;we(t,function(e,i){we(mNe,function(r,o){(void 0===i[o]||i._initProperties&&o in i._initProperties&&void 0===i._initProperties[o])&&l0(i,o,n.option(o))})})},_getDataControllerOptions:function(){var t=this;return{component:t,dataSource:t.option("dataSource"),texts:t.option("texts"),showRowTotals:t.option("showRowTotals"),showRowGrandTotals:t.option("showRowGrandTotals"),showColumnTotals:t.option("showColumnTotals"),showTotalsPrior:t.option("showTotalsPrior"),showColumnGrandTotals:t.option("showColumnGrandTotals"),dataFieldArea:t.option("dataFieldArea"),rowHeaderLayout:t.option("rowHeaderLayout"),hideEmptySummaryCells:t.option("hideEmptySummaryCells"),onFieldsPrepared:function(n){t._updateCalculatedOptions(n)}}},_initDataController:function(){var t=this;t._dataController&&t._dataController.dispose(),t._dataController=new Ran(t._getDataControllerOptions()),Rn()&&t._dataController.changed.add(function(){t._render()}),t._dataController.scrollChanged.add(function(e){t._scrollLeft=e.left,t._scrollTop=e.top}),t._dataController.loadingChanged.add(function(e){t._updateLoading()}),t._dataController.progressChanged.add(t._updateLoading.bind(t)),t._dataController.dataSourceChanged.add(function(){t._trigger("onChanged")});var n=t.option("onExpandValueChanging");n&&t._dataController.expandValueChanging.add(function(e){n(e)})},_init:function(){this.callBase(),this._initDataController(),this._scrollLeft=this._scrollTop=null,this._initActions()},_initActions:function(){this._actions={onChanged:this._createActionByOption("onChanged"),onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing"),onCellClick:this._createActionByOption("onCellClick"),onExporting:this._createActionByOption("onExporting"),onExported:this._createActionByOption("onExported"),onFileSaving:this._createActionByOption("onFileSaving"),onCellPrepared:this._createActionByOption("onCellPrepared")}},_trigger:function(t,n){this._actions[t](n)},_optionChanged:function(t){if(mNe.indexOf(t.name)>=0){var n=this.getDataSource().fields();this._updateCalculatedOptions(n)}switch(t.name){case"dataSource":case"allowSorting":case"allowFiltering":case"allowExpandAll":case"allowSortingBySummary":case"scrolling":case"stateStoring":this._initDataController(),this._fieldChooserPopup.hide(),this._renderFieldChooser(),this._invalidate();break;case"texts":case"showTotalsPrior":case"showRowTotals":case"showRowGrandTotals":case"showColumnTotals":case"showColumnGrandTotals":case"hideEmptySummaryCells":case"dataFieldArea":this._dataController.updateViewOptions(this._getDataControllerOptions());break;case"useNativeScrolling":case"encodeHtml":case"renderCellCountLimit":case"onExpandValueChanging":break;case"rtlEnabled":this.callBase(t),this._renderFieldChooser(),this._renderContextMenu(),Rn()&&this._renderLoadPanel(this._dataArea.groupElement(),this.$element()),this._invalidate();break;case"export":this._renderDescriptionArea();break;case"onCellClick":case"onContextMenuPreparing":case"onExporting":case"onExported":case"onFileSaving":case"onCellPrepared":this._actions[t.name]=this._createActionByOption(t.name);break;case"fieldChooser":this._renderFieldChooser(),this._renderDescriptionArea();break;case"loadPanel":Rn()&&("loadPanel.enabled"===t.fullName?(clearTimeout(this._hideLoadingTimeoutID),this._renderLoadPanel(this._dataArea.groupElement(),this.$element())):(this._renderLoadPanel(this._dataArea.groupElement(),this.$element()),this._invalidate()));break;case"fieldPanel":this._renderDescriptionArea(),this._invalidate();break;case"headerFilter":this._renderFieldChooser(),this._invalidate();break;case"showBorders":this._tableElement().toggleClass(cNe,!!t.value),this.updateDimensions();break;case"wordWrapEnabled":this._tableElement().toggleClass("dx-word-wrap",!!t.value),this.updateDimensions();break;case"rowHeaderLayout":this._tableElement().find("."+DJ).toggleClass("dx-area-tree-view","tree"===t.value),this._dataController.updateViewOptions(this._getDataControllerOptions());break;case"height":case"width":this._hasHeight=null,this.callBase(t),this.resize();break;default:this.callBase(t)}},_updateScrollPosition:function(t,n,e){var i,r,o=this._scrollTop||this._scrollLeft;this._scrollUpdating||(this._scrollUpdating=!0,n&&!n.hasScroll()&&this._hasHeight&&(this._scrollTop=null),t&&!t.hasScroll()&&(this._scrollLeft=null),(null!==this._scrollTop||null!==this._scrollLeft||o||this.option("rtlEnabled"))&&(e.scrollTo({left:r=this._scrollLeft||0,top:i=this._scrollTop||0}),t.scrollTo({left:r}),n.scrollTo({top:i}),this._dataController.updateWindowScrollPosition(this._scrollTop)),this._scrollUpdating=!1)},_subscribeToEvents:function(t,n,e){var i=this;we([t,n,e],function(r,o){!function zsn(t,n){_Ne(t),t.on("scroll",n).on("stop",n)}(o,a=>{return u=a.scrollOffset,S="vertical"!==(f=o._getScrollable()).option("direction")?u.left:i._scrollLeft,T="horizontal"!==f.option("direction")&&i._hasHeight?u.top:i._scrollTop,void(((i._scrollLeft||0)!==(S||0)||(i._scrollTop||0)!==(T||0))&&(i._scrollLeft=S,i._scrollTop=T,i._updateScrollPosition(t,n,e),"virtual"===i.option("scrolling.mode")&&i._dataController.setViewportPosition(i._scrollLeft,i._scrollTop)));var u,f,S,T})}),!i._hasHeight&&i._dataController.subscribeToWindowScrollEvents(e.groupElement())},_clean:Be,_needDelayResizing:function(t){return t.length*(t.length?t[0].length:0)>this.option("renderCellCountLimit")},_renderFieldChooser:function(){var t,n=this,e=n._pivotGridContainer,i=n.option("fieldChooser")||{},r="onDemand"===i.applyChangesMode?[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:ye.format("OK"),onClick:function(s){n._fieldChooserPopup.$content().dxPivotGridFieldChooser("applyChanges"),n._fieldChooserPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:ye.format("Cancel"),onClick:function(s){n._fieldChooserPopup.hide()}}}]:[],o={layout:i.layout,texts:i.texts||{},dataSource:n.getDataSource(),allowSearch:i.allowSearch,searchTimeout:i.searchTimeout,width:void 0,height:void 0,headerFilter:n.option("headerFilter"),encodeHtml:null!==(t=n.option("fieldChooser.encodeHtml"))&&void 0!==t?t:n.option("encodeHtml"),applyChangesMode:i.applyChangesMode,onContextMenuPreparing:function(s){n._trigger("onContextMenuPreparing",s)}},a={shading:!1,title:i.title,width:i.width,height:i.height,showCloseButton:!0,resizeEnabled:!0,minWidth:i.minWidth,minHeight:i.minHeight,toolbarItems:r,onResize:function(s){s.component.$content().dxPivotGridFieldChooser("updateDimensions")},onShown:function(s){n._createComponent(s.component.content(),rNe,o)},onHidden:function(s){var l=s.component.$content().dxPivotGridFieldChooser("instance");l.resetTreeView(),l.cancelChanges()}};n._fieldChooserPopup?(n._fieldChooserPopup.option(a),n._fieldChooserPopup.$content().dxPivotGridFieldChooser(o)):n._fieldChooserPopup=n._createComponent(U(kb).addClass("dx-fieldchooser-popup").appendTo(e),Ss,a)},_renderContextMenu:function(){var t=this,n=t._pivotGridContainer;t._contextMenu&&t._contextMenu.$element().remove(),t._contextMenu=t._createComponent(U(kb).appendTo(n),Zm,{onPositioning:function(e){var i=e.event;if(e.cancel=!0,i){var r=i.target.cellIndex>=0?i.target:U(i.target).closest("td").get(0);if(r){var o=t._createEventArgs(r,i),a=t._getContextMenuItems(o);if(a)return e.component.option("items",a),void(e.cancel=!1)}}},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:hNe,target:t.$element()})},_getContextMenuItems:function(t){var n=this,e=[],i=n.option("texts");if("row"===t.area||"column"===t.area){var o=t["column"===t.area?"rowFields":"columnFields"],a=t.cell.path&&t[t.area+"Fields"][t.cell.path.length-1],s=n.getDataSource();if(a&&a.allowExpandAll&&t.cell.path.length<t[t.area+"Fields"].length&&!s.paginate()&&(e.push({beginGroup:!0,icon:"none",text:i.expandAll,onItemClick:function(){s.expandAll(a.index)}}),e.push({text:i.collapseAll,icon:"none",onItemClick:function(){s.collapseAll(a.index)}})),t.cell.isLast&&!s.paginate()){var l=0;we(o,function(u,f){f.allowSortingBySummary&&we(t.dataFields,function(S,T){if(!Z(t.cell.dataIndex)||t.cell.dataIndex===S){var R=!Z(t.cell.dataIndex)&&t.dataFields.length>1,L="column"===t.area?i.sortColumnBySummary:i.sortRowBySummary,z=KS(t.dataFields,f.sortBySummaryField)===S&&(t.cell.path||[]).join("/")===(f.sortBySummaryPath||[]).join("/"),j=Er(L,R?f.caption+" - "+T.caption:f.caption);e.push({beginGroup:0===l,icon:z?"desc"===f.sortOrder?"sortdowntext":"sortuptext":"none",text:j,onItemClick:function(){s.field(f.index,{sortBySummaryField:T.name||T.caption||T.dataField,sortBySummaryPath:t.cell.path,sortOrder:"desc"===f.sortOrder?"asc":"desc"}),s.load()}}),l++}})}),we(o,function(u,f){if(f.allowSortingBySummary&&Z(f.sortBySummaryField))return e.push({beginGroup:0===l,icon:"none",text:i.removeAllSorting,onItemClick:function(){we(o,function(S,T){s.field(T.index,{sortBySummaryField:void 0,sortBySummaryPath:void 0,sortOrder:void 0})}),s.load()}}),!1})}}if(n.option("fieldChooser.enabled")&&e.push({beginGroup:!0,icon:"columnchooser",text:i.showFieldChooser,onItemClick:function(){n._fieldChooserPopup.show()}}),n.option("export.enabled")&&e.push({beginGroup:!0,icon:"xlsxfile",text:i.exportToExcel,onItemClick:function(){n.exportToExcel()}}),t.items=e,n._trigger("onContextMenuPreparing",t),(e=t.items)&&e.length)return e},_createEventArgs:function(t,n){var e=this.getDataSource(),i={rowFields:e.getAreaFields("row"),columnFields:e.getAreaFields("column"),dataFields:e.getAreaFields("data"),event:n};return function Usn(t){return t.closest("."+pNe).length||t.find("."+pNe).length}(U(t))?se(this._createFieldArgs(t),i):se(this._createCellArgs(t),i)},_createFieldArgs:function(t){var n=U(t).children().data("field"),e={field:n};return Z(n)?e:{}},_createCellArgs:function(t){var n=U(t),e=t.cellIndex,i=t.parentElement.rowIndex,r=n.closest("table"),o=r.data("data"),a=o&&o[i]&&o[i][e];return{area:r.data("area"),rowIndex:i,columnIndex:e,cellElement:kn(n),cell:a}},_handleCellClick:function(t){var n=this,e=n._createEventArgs(t.currentTarget,t),i=e.cell;!i||!e.area&&(e.rowIndex||e.columnIndex)||(n._trigger("onCellClick",e),i&&!e.cancel&&Z(i.expanded)&&setTimeout(function(){n._dataController[i.expanded?"collapseHeaderItem":"expandHeaderItem"](e.area,i.path)}))},_getNoDataText:function(){return this.option("texts.noData")},_renderNoDataText:vn.renderNoDataText,_renderLoadPanel:vn.renderLoadPanel,_updateLoading:function(t){var n=this,e=n._dataController.isLoading();if(n._loadPanel){var i=n._loadPanel.option("visible");if(i||(n._startLoadingTime=new Date),e&&(t?new Date-n._startLoadingTime>=1e3&&n._loadPanel.option("message",Math.floor(100*t)+"%"):n._loadPanel.option("message",n.option("loadPanel.text"))),clearTimeout(n._hideLoadingTimeoutID),i&&!e)n._hideLoadingTimeoutID=setTimeout(function(){n._loadPanel.option("visible",!1),n.$element().removeClass(OJ)});else{var r={visible:e};e&&(r.position=vn.calculateLoadPanelPosition(n._dataArea.groupElement())),n._loadPanel.option(r),n.$element().toggleClass(OJ,!e)}}},_renderDescriptionArea:function(){var a,t=this.$element(),n=t.find("."+EJ),e=U(kb).addClass("dx-pivotgrid-toolbar"),i=this.option("fieldPanel"),r=t.find(".dx-filter-header"),o=t.find(".dx-column-header");if(a=i.visible&&i.showFilterFields?r:i.visible&&(i.showDataFields||i.showColumnFields)?o:n,o.toggleClass(T8,!(!i.visible||!i.showDataFields&&!i.showColumnFields)),r.toggleClass(T8,!(!i.visible||!i.showFilterFields)),n.toggleClass("dx-pivotgrid-background",i.visible&&(i.showDataFields||i.showColumnFields||i.showRowFields)),this.$element().find(".dx-pivotgrid-toolbar").remove(),e.prependTo(a),this.option("fieldChooser.enabled")){var s=U(kb).appendTo(e).addClass("dx-pivotgrid-field-chooser-button"),l={icon:"columnchooser",hint:this.option("texts.showFieldChooser"),onClick:()=>{this.getFieldChooserPopup().show()}};this._createComponent(s,"dxButton",l)}if(this.option("export.enabled")){var u=U(kb).appendTo(e).addClass("dx-pivotgrid-export-button"),f={icon:"xlsxfile",hint:this.option("texts.exportToExcel"),onClick:()=>{this.exportToExcel()}};this._createComponent(u,"dxButton",f)}},_detectHasContainerHeight:function(){var t=this.$element();if(Z(this._hasHeight)){var n=this.option("height")||this.$element().get(0).style.height;n&&this._hasHeight^"auto"!==n&&(this._hasHeight=null)}if(!Z(this._hasHeight)&&!t.is(":hidden")){this._pivotGridContainer.addClass("dx-hidden");var e=U(kb);xo(e,66666),t.append(e),this._hasHeight=66666!==Ln(t),this._pivotGridContainer.removeClass("dx-hidden"),e.remove()}},_renderHeaders:function(t,n,e,i){var r=this.getDataSource();this._rowFields=this._rowFields||new O8(this,"row"),this._rowFields.render(t,r.getAreaFields("row")),this._columnFields=this._columnFields||new O8(this,"column"),this._columnFields.render(n,r.getAreaFields("column")),this._filterFields=this._filterFields||new O8(this,"filter"),this._filterFields.render(e,r.getAreaFields("filter")),this._dataFields=this._dataFields||new O8(this,"data"),this._dataFields.render(i,r.getAreaFields("data")),this.$element().dxPivotGridFieldChooserBase("instance").renderSortable()},_createTableElement:function(){var t=U("<table>").css({width:"100%"}).toggleClass(cNe,!!this.option("showBorders")).toggleClass("dx-word-wrap",!!this.option("wordWrapEnabled"));return Se.on(t,kt(Vi,"dxPivotGrid"),"td",this._handleCellClick.bind(this)),t},_renderDataArea:function(t){var n=this._dataArea||new Wan(this);return this._dataArea=n,n.render(t,this._dataController.getCellsInfo()),n},_renderRowsArea:function(t){var n=this._rowsArea||new esn(this);return this._rowsArea=n,n.render(t,this._dataController.getRowsInfo()),n},_renderColumnsArea:function(t){var n=this._columnsArea||new G4e(this);return this._columnsArea=n,n.render(t,this._dataController.getColumnsInfo()),n},_initMarkup:function(){var t=this;t.callBase.apply(this,arguments),t.$element().addClass(hNe)},_renderContentImpl:function(){var t,n,e,i,o,a,s,l,r=!this._pivotGridContainer;(i=!r&&this._tableElement())||(this.$element().addClass("dx-row-lines").addClass("dx-pivotgrid-fields-container"),this._pivotGridContainer=U(kb).addClass("dx-pivotgrid-container"),this._renderFieldChooser(),this._renderContextMenu(),t=U(XS).addClass(dNe),n=U(XS).addClass(DJ),e=U(XS).addClass(uNe),i=this._createTableElement(),l=U(XS).addClass("dx-data-header"),s=U("<td>").attr("colspan","2").addClass("dx-filter-header"),a=U(XS).addClass("dx-column-header"),o=U(XS).addClass(EJ),U(I8).append(s).appendTo(i),U(I8).append(l).append(a).appendTo(i),U(I8).append(o).append(t).appendTo(i),U(I8).addClass("dx-bottom-row").append(n).append(e).appendTo(i),this._pivotGridContainer.append(i),this.$element().append(this._pivotGridContainer),"tree"===this.option("rowHeaderLayout")&&n.addClass("dx-area-tree-view")),this.$element().addClass(OJ),this._createComponent(this.$element(),J4e,{dataSource:this.getDataSource(),encodeHtml:this.option("encodeHtml"),allowFieldDragging:this.option("fieldPanel.allowFieldDragging"),headerFilter:this.option("headerFilter"),visible:this.option("visible")});var u=this._renderDataArea(e),f=this._renderRowsArea(n),S=this._renderColumnsArea(t);u.tableElement().prepend(S.headElement()),r&&(this._renderLoadPanel(u.groupElement().parent(),this.$element()),this._renderDescriptionArea(),f.renderScrollable(),S.renderScrollable(),u.renderScrollable()),[u,f,S].forEach(function(T){_Ne(T)}),this._renderHeaders(o,a,s,l),this._update(r)},_update:function(t){var n=this,e=function(){n.updateDimensions()};n._needDelayResizing(n._dataArea.getData())&&t?setTimeout(e):e()},_fireContentReadyAction:function(){this._dataController.isLoading()||this.callBase()},getScrollPath:function(t){return"column"===t?this._columnsArea.getScrollPath(this._scrollLeft):this._rowsArea.getScrollPath(this._scrollTop)},getDataSource:function(){return this._dataController.getDataSource()},getFieldChooserPopup:function(){return this._fieldChooserPopup},hasScroll:function(t){return"column"===t?this._columnsArea.hasScroll():this._rowsArea.hasScroll()},_dimensionChanged:function(){this.updateDimensions()},_visibilityChanged:function(t){t&&this.updateDimensions()},_dispose:function(){var t=this;clearTimeout(t._hideLoadingTimeoutID),t.callBase.apply(t,arguments),t._dataController&&t._dataController.dispose()},_tableElement:function(){return this.$element().find("table").first()},addWidgetPrefix:function(t){return"dx-pivotgrid-"+t},resize:function(){this.updateDimensions()},isReady:function(){return this.callBase()&&!this._dataController.isLoading()},updateDimensions:function(){var n,i,s,l,t=this,e=t._tableElement(),r=0,o=0,a=0,u=e.find("."+uNe),f=e.find("."+DJ),S=e.find("."+dNe),T=e.find("."+EJ),R=e.find(".dx-filter-header"),L=e.find(".dx-column-header"),z=t._rowFields,j=new et;if(Rn()){var Y=z.isVisible()&&"tree"!==t.option("rowHeaderLayout");t._detectHasContainerHeight(),t._dataArea.headElement().length||t._dataArea.tableElement().prepend(t._columnsArea.headElement()),Y&&(t._rowsArea.updateColspans(z.getColumnsCount()),t._rowsArea.tableElement().prepend(z.headElement())),e.addClass(gNe),t._dataArea.reset(),t._rowsArea.reset(),t._columnsArea.reset(),z.reset();var ie=(re,he)=>he-re>=1,te=(re,he,fe,Te,Re)=>fe?re:he+(Te?Re:0);return Ns(function(){var re=t._rowsArea.getRowsHeight(),he=Zn(T[0],!0)+(Y?re[0]:0),fe=0,Te=0;if(t._hasHeight){fe=Ln(R);var Re=e.find(".dx-data-header"),He=Ln(Re);i=vNe([S,u,e,L,R],"height"),Te=Ln(t.$element())-fe-He-(Math.max(Ln(t._dataArea.headElement()),Ln(S),he)+i)}var Ze=t._dataArea.getScrollbarWidth(),at=ie(Te,Ln(t._dataArea.tableElement()));t._dataArea.tableElement().css({width:t._hasHeight&&at&&Ze?"calc(100% - ".concat(Ze,"px)"):"100%"});var vt=t._dataArea.getColumnsWidth(),Bt=Y?re.slice(1):re,St=t._dataArea.getRowsHeight(),ct=t._dataController.getColumnsInfo().length,Nt=function tan(t,n){for(var e=[],i=0;i<t.length;i++)e.push(Math.max(t[i]||0,n[i]||0));return e}(Bt,St.slice(ct)),Kt=St.slice(0,ct),on=TJ(Kt),hn=t._rowsArea.getColumnsWidth();if(r=wn(t._dataArea.tableElement()),o=TJ(Nt),r&&o){a=TJ(hn);var bn=wn(t.$element());i=vNe([f,u,e],"width");var Qn=r-(n=(n=bn-a-i)>0?n:r);Qn>=0&&Qn<=2&&(IJ(vt,Qn),r=n),s=t._hasHeight&&ie(Te,o),l=ie(n,r);var Ie=te(Te,o,s,l,Ze);Zo(function(){if(t._columnsArea.tableElement().append(t._dataArea.headElement()),z.tableElement().append(t._rowsArea.headElement()),he>on&&(IJ(Kt,on-he),t._columnsArea.setRowsHeight(Kt)),e.removeClass(gNe),L.children().css("maxWidth",n),t._columnsArea.setGroupWidth(n),t._columnsArea.processScrollBarSpacing(s?Ze:0),t._columnsArea.setColumnsWidth(vt),t._rowsArea.setGroupHeight(t._hasHeight?Ie:"auto"),t._rowsArea.processScrollBarSpacing(l?Ze:0),t._rowsArea.setColumnsWidth(hn),t._rowsArea.setRowsHeight(Nt),t._dataArea.setColumnsWidth(vt),t._dataArea.setRowsHeight(Nt),t._dataArea.setGroupWidth(n),t._dataArea.setGroupHeight(t._hasHeight?Ie:"auto"),Y&&z.setColumnsWidth(hn),u.toggleClass(T8,!s),f.toggleClass(T8,!s),!t._hasHeight&&bn!==wn(t.$element())){var We=bn-wn(t.$element());l||(IJ(vt,We),t._columnsArea.setColumnsWidth(vt),t._dataArea.setColumnsWidth(vt)),t._dataArea.setGroupWidth(n-We),t._columnsArea.setGroupWidth(n-We)}if(t._hasHeight&&t._filterFields.isVisible()&&Ln(R)!==fe){var Ve=Ln(R)-fe;if(Ve>0){s=ie(Te-Ve,o);var gt=te(Te-Ve,o,s,l,Ze);t._dataArea.setGroupHeight(gt),t._rowsArea.setGroupHeight(gt)}}var Ct=t.option("scrolling");"virtual"===Ct.mode&&t._setVirtualContentParams(Ct,vt,Nt,n,Ie,t._hasHeight,a);var Dt=[];t._dataArea.updateScrollableOptions({direction:t._dataArea.getScrollableDirection(l,s),rtlEnabled:t.option("rtlEnabled")}),t._columnsArea.updateScrollableOptions({rtlEnabled:t.option("rtlEnabled")}),we([t._columnsArea,t._rowsArea,t._dataArea],function(wt,rn){Dt.push(rn&&rn.updateScrollable())}),t._updateLoading(),t._renderNoDataText(u),Qt.apply(U,Dt).done(function(){t._updateScrollPosition(t._columnsArea,t._rowsArea,t._dataArea),t._subscribeToEvents(t._columnsArea,t._rowsArea,t._dataArea),j.resolve()})})}else j.resolve()}),j}},_setVirtualContentParams:function(t,n,e,i,r,o,a){var s=this._dataController.calculateVirtualContentParams({virtualRowHeight:t.virtualRowHeight,virtualColumnWidth:t.virtualColumnWidth,itemWidths:n,itemHeights:e,rowCount:e.length,columnCount:n.length,viewportWidth:i,viewportHeight:o?r:Zn(lNe)});this._dataArea.setVirtualContentParams({top:s.contentTop,left:s.contentLeft,width:s.width,height:s.height}),this._rowsArea.setVirtualContentParams({top:s.contentTop,width:a,height:s.height}),this._columnsArea.setVirtualContentParams({left:s.contentLeft,width:s.width,height:Ln(this._columnsArea.groupElement())})},applyPartialDataSource:function(t,n,e){this._dataController.applyPartialDataSource(t,n,e)}}).inherit(Esn).include(Lsn);On("dxPivotGrid",yNe);let CNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[l_e,w_,$r,Fg,pve,aa,f_e,Bg,m_e,Xw,S_,a1,bi,tn,mi],l_e,w_,$r,Fg,pve,aa,f_e,Bg,m_e,Xw,S_,a1,tn]}),t})(),bNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Fg,Bg,bi,tn,mi],Fg,Bg,tn]}),t})();var k8=bOe.inherit({_themeSection:"polar",_createPanes:function(){return this.callBase(),[{name:"default"}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(t){var e="argumentAxis"===t?"circular":"linear";return this.option("useSpiderWeb")&&(e+="Spider"),{axisType:"polarAxes",drawingType:e}},_executeAppendBeforeSeries(t){t()},_prepareAxisOptions:function(t,n){var e="argumentAxis"===t,i=this._themeManager,r=this.option("argumentAxis"),o=i.getOptions("argumentAxis",r)||{},a=isFinite(o.startAngle)?Bc(o.startAngle):0;return{type:this.option("useSpiderWeb")&&e?"discrete":n.type,isHorizontal:!0,showCustomBoundaryTicks:e,startAngle:a,endAngle:a+360}},_optionChangesMap:{useSpiderWeb:"USE_SPIDER_WEB"},_change_USE_SPIDER_WEB(){this._disposeAxes(),this._requestChange(["AXES_AND_PANES"])},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_prepareToRender:function(){return this._appendAxesGroups(),{}},_calcCanvas:function(){var t=se({},this._canvas),e=this.getArgumentAxis().getMargins();return Object.keys(e).forEach(i=>t[i]=t["original".concat(i[0].toUpperCase()).concat(i.slice(1))]+e[i]),t},_renderAxes:function(t){var n=this._getValueAxis(),e=this.getArgumentAxis();e.draw(this._canvas),n.setSpiderTicks(e.getSpiderTicks());var i=this._calcCanvas();return e.updateSize(i),n.draw(i),i},_getValueAxis:function(){return this._valueAxes[0]},_shrinkAxes:function(t){var n=this._getValueAxis(),e=this.getArgumentAxis();if(t&&(t.width||t.height)){e.hideOuterElements();var i=this._calcCanvas();e.updateSize(i),n.updateSize(i)}},checkForMoreSpaceForPanesCanvas(){return this.layoutManager.needMoreSpaceForPanesCanvas([{canvas:this.getArgumentAxis().getCanvas()}],this._isRotated())},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getSeriesForPane:function(){return this.series},_applyClipRects(){var t=this._getCanvasClipRectID();this._createClipPathForPane(),this.getArgumentAxis().applyClipRects(this._getElementsClipRectID(),t),this._getValueAxis().applyClipRects(this._getElementsClipRectID(),t)},_createClipPathForPane(){var t=this._getValueAxis(),n=t.getCenter(),e=t.getRadius(),i=this._panesClipRects;n={x:Math.round(n.x),y:Math.round(n.y)},this._createClipCircle(i.fixed,n.x,n.y,e),this._createClipCircle(i.base,n.x,n.y,e),this.series.some(r=>r.areErrorBarsVisible())?this._createClipCircle(i.wide,n.x,n.y,e):i.wide[0]=null},_createClipCircle(t,n,e,i){var r=t[0];r?r.attr({cx:n,cy:e,r:i}):(r=this._renderer.clipCircle(n,e,i),t[0]=r)},_applyExtraSettings(t){var n=this._panesClipRects.wide[0];t.setClippingParams(this._panesClipRects.base[0].id,n&&n.id,!1,!1)},getActualAngle(t){return this.getArgumentAxis().getOptions().inverted?360-t:t},getXYFromPolar(t,n,e,i){var r={angle:void 0,radius:void 0,x:void 0,y:void 0};if(!(Z(t)||Z(n)||Z(e)||Z(i)))return r;var s,l,o=this.getArgumentAxis(),a=o.getAngles()[0];if(Z(e)?s=o.getTranslator().translate(e):isFinite(t)?s=this.getActualAngle(t):Z(t)||(s=0),Z(i)?l=this.getValueAxis().getTranslator().translate(i):isFinite(n)?l=n:Z(n)||(l=o.getRadius()),Z(s)&&Z(l)){var u=iI(o.getCenter(),a,s,l);se(r,u,{angle:o.getTranslatedAngle(s),radius:l})}return r},_applyPointMarkersAutoHiding:Be,_createScrollBar:Be,_isRotated:Be,_getCrosshairOptions:Be,_isLegendInside:Be});k8.addPlugin(dv.core),k8.addPlugin(dv.polarChart),On("dxPolarChart",k8);let xNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Og,vr,m_,Ea,Oa,Pg,ja,xR,CR,Lo,FR,jR,$r,YR,Lg,Qw,bR,yL,Ng,l1,b_,AR,x_,Bw,Jd,Eh,kg,t1,Oh,u1,Nw,__,Zw,i1,o1,Gw,aa,Rg,Ta,vs,_s,ms,y_,D_,Ia,$o,wL,qR,bi,tn,mi],Og,vr,m_,Ea,Oa,Pg,ja,xR,CR,Lo,FR,jR,$r,YR,Lg,Qw,bR,yL,Ng,l1,b_,AR,x_,Bw,Jd,Eh,kg,t1,Oh,u1,Nw,__,Zw,i1,o1,Gw,aa,Rg,Ta,vs,_s,ms,y_,D_,Ia,$o,wL,qR,tn]}),t})(),wNe=(()=>{class t extends dC{_getToolbarName(){return"dxToolbar"}}return t.defaultOptions=function(n){dC.defaultOptions(n)},t})();On("dxPopover",wNe);let SNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Yw,E_,Ga,bi,tn,mi],vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Yw,E_,Ga,tn]}),t})();const Zsn=["*"];let kJ=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"hidden",emit:"onHidden"},{subscribe:"hiding",emit:"onHiding"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"resize",emit:"onResize"},{subscribe:"resizeEnd",emit:"onResizeEnd"},{subscribe:"resizeStart",emit:"onResizeStart"},{subscribe:"showing",emit:"onShowing"},{subscribe:"shown",emit:"onShown"},{subscribe:"titleRendered",emit:"onTitleRendered"},{emit:"accessKeyChange"},{emit:"animationChange"},{emit:"closeOnOutsideClickChange"},{emit:"containerChange"},{emit:"contentTemplateChange"},{emit:"copyRootClassesToWrapperChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"dragAndResizeAreaChange"},{emit:"dragEnabledChange"},{emit:"dragOutsideBoundaryChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"fullScreenChange"},{emit:"heightChange"},{emit:"hideOnOutsideClickChange"},{emit:"hideOnParentScrollChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxHeightChange"},{emit:"maxWidthChange"},{emit:"minHeightChange"},{emit:"minWidthChange"},{emit:"positionChange"},{emit:"resizeEnabledChange"},{emit:"restorePositionChange"},{emit:"rtlEnabledChange"},{emit:"shadingChange"},{emit:"shadingColorChange"},{emit:"showCloseButtonChange"},{emit:"showTitleChange"},{emit:"tabIndexChange"},{emit:"titleChange"},{emit:"titleTemplateChange"},{emit:"toolbarItemsChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapperAttrChange"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get animation(){return this._getOption("animation")}set animation(e){this._setOption("animation",e)}get closeOnOutsideClick(){return this._getOption("closeOnOutsideClick")}set closeOnOutsideClick(e){this._setOption("closeOnOutsideClick",e)}get container(){return this._getOption("container")}set container(e){this._setOption("container",e)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(e){this._setOption("contentTemplate",e)}get copyRootClassesToWrapper(){return this._getOption("copyRootClassesToWrapper")}set copyRootClassesToWrapper(e){this._setOption("copyRootClassesToWrapper",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get dragAndResizeArea(){return this._getOption("dragAndResizeArea")}set dragAndResizeArea(e){this._setOption("dragAndResizeArea",e)}get dragEnabled(){return this._getOption("dragEnabled")}set dragEnabled(e){this._setOption("dragEnabled",e)}get dragOutsideBoundary(){return this._getOption("dragOutsideBoundary")}set dragOutsideBoundary(e){this._setOption("dragOutsideBoundary",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get fullScreen(){return this._getOption("fullScreen")}set fullScreen(e){this._setOption("fullScreen",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hideOnOutsideClick(){return this._getOption("hideOnOutsideClick")}set hideOnOutsideClick(e){this._setOption("hideOnOutsideClick",e)}get hideOnParentScroll(){return this._getOption("hideOnParentScroll")}set hideOnParentScroll(e){this._setOption("hideOnParentScroll",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(e){this._setOption("maxHeight",e)}get maxWidth(){return this._getOption("maxWidth")}set maxWidth(e){this._setOption("maxWidth",e)}get minHeight(){return this._getOption("minHeight")}set minHeight(e){this._setOption("minHeight",e)}get minWidth(){return this._getOption("minWidth")}set minWidth(e){this._setOption("minWidth",e)}get position(){return this._getOption("position")}set position(e){this._setOption("position",e)}get resizeEnabled(){return this._getOption("resizeEnabled")}set resizeEnabled(e){this._setOption("resizeEnabled",e)}get restorePosition(){return this._getOption("restorePosition")}set restorePosition(e){this._setOption("restorePosition",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get shading(){return this._getOption("shading")}set shading(e){this._setOption("shading",e)}get shadingColor(){return this._getOption("shadingColor")}set shadingColor(e){this._setOption("shadingColor",e)}get showCloseButton(){return this._getOption("showCloseButton")}set showCloseButton(e){this._setOption("showCloseButton",e)}get showTitle(){return this._getOption("showTitle")}set showTitle(e){this._setOption("showTitle",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get title(){return this._getOption("title")}set title(e){this._setOption("title",e)}get titleTemplate(){return this._getOption("titleTemplate")}set titleTemplate(e){this._setOption("titleTemplate",e)}get toolbarItems(){return this._getOption("toolbarItems")}set toolbarItems(e){this._setOption("toolbarItems",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get wrapperAttr(){return this._getOption("wrapperAttr")}set wrapperAttr(e){this._setOption("wrapperAttr",e)}get toolbarItemsChildren(){return this._getOption("toolbarItems")}set toolbarItemsChildren(e){this.setChildren("toolbarItems",e)}_createInstance(e,i){return new dY(e,i)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("toolbarItems",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("toolbarItems"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-popup"]],contentQueries:function(e,i,r){if(1&e&&In(r,VT,4),2&e){let o;yn(o=Cn())&&(i.toolbarItemsChildren=o)}},inputs:{accessKey:"accessKey",animation:"animation",closeOnOutsideClick:"closeOnOutsideClick",container:"container",contentTemplate:"contentTemplate",copyRootClassesToWrapper:"copyRootClassesToWrapper",deferRendering:"deferRendering",disabled:"disabled",dragAndResizeArea:"dragAndResizeArea",dragEnabled:"dragEnabled",dragOutsideBoundary:"dragOutsideBoundary",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",fullScreen:"fullScreen",height:"height",hideOnOutsideClick:"hideOnOutsideClick",hideOnParentScroll:"hideOnParentScroll",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",position:"position",resizeEnabled:"resizeEnabled",restorePosition:"restorePosition",rtlEnabled:"rtlEnabled",shading:"shading",shadingColor:"shadingColor",showCloseButton:"showCloseButton",showTitle:"showTitle",tabIndex:"tabIndex",title:"title",titleTemplate:"titleTemplate",toolbarItems:"toolbarItems",visible:"visible",width:"width",wrapperAttr:"wrapperAttr"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onHidden:"onHidden",onHiding:"onHiding",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onResize:"onResize",onResizeEnd:"onResizeEnd",onResizeStart:"onResizeStart",onShowing:"onShowing",onShown:"onShown",onTitleRendered:"onTitleRendered",accessKeyChange:"accessKeyChange",animationChange:"animationChange",closeOnOutsideClickChange:"closeOnOutsideClickChange",containerChange:"containerChange",contentTemplateChange:"contentTemplateChange",copyRootClassesToWrapperChange:"copyRootClassesToWrapperChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",dragAndResizeAreaChange:"dragAndResizeAreaChange",dragEnabledChange:"dragEnabledChange",dragOutsideBoundaryChange:"dragOutsideBoundaryChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",fullScreenChange:"fullScreenChange",heightChange:"heightChange",hideOnOutsideClickChange:"hideOnOutsideClickChange",hideOnParentScrollChange:"hideOnParentScrollChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",maxHeightChange:"maxHeightChange",maxWidthChange:"maxWidthChange",minHeightChange:"minHeightChange",minWidthChange:"minWidthChange",positionChange:"positionChange",resizeEnabledChange:"resizeEnabledChange",restorePositionChange:"restorePositionChange",rtlEnabledChange:"rtlEnabledChange",shadingChange:"shadingChange",shadingColorChange:"shadingColorChange",showCloseButtonChange:"showCloseButtonChange",showTitleChange:"showTitleChange",tabIndexChange:"tabIndexChange",titleChange:"titleChange",titleTemplateChange:"titleTemplateChange",toolbarItemsChange:"toolbarItemsChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapperAttrChange:"wrapperAttrChange"},features:[ot([Zt,nn,ue,Sn]),qe,hi],ngContentSelectors:Zsn,decls:1,vars:0,template:function(e,i){1&e&&(nl(),As(0))},encapsulation:2}),t})(),DNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,bi,tn,mi],vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,tn]}),t})();const Xsn={provide:Fo,useExisting:At(()=>Jsn),multi:!0};let Jsn=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"complete",emit:"onComplete"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showStatusChange"},{emit:"statusFormatChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showStatus(){return this._getOption("showStatus")}set showStatus(e){this._setOption("showStatus",e)}get statusFormat(){return this._getOption("statusFormat")}set statusFormat(e){this._setOption("statusFormat",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new JZ(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-progress-bar"]],hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{disabled:"disabled",elementAttr:"elementAttr",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",max:"max",min:"min",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showStatus:"showStatus",statusFormat:"statusFormat",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onComplete:"onComplete",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",maxChange:"maxChange",minChange:"minChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showStatusChange:"showStatusChange",statusFormatChange:"statusFormatChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,Xsn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),ENe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})();const Qsn={provide:Fo,useExisting:At(()=>eln),multi:!0};let eln=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"layoutChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get layout(){return this._getOption("layout")}set layout(e){this._setOption("layout",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new Jen(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-radio-group"]],contentQueries:function(e,i,r){if(1&e&&In(r,So,4),2&e){let o;yn(o=Cn())&&(i.itemsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",dataSource:"dataSource",disabled:"disabled",displayExpr:"displayExpr",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",layout:"layout",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueExpr:"valueExpr",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",layoutChange:"layoutChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,Qsn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),ONe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})();var TNe_animationSettings={duration:250},A8=function(t,n,e,i,r,o){var a={value:t,valueText:h4(t,{labelOptions:n,ticks:e?e.ticks:[],tickInterval:e?e.tickInterval:void 0,dataType:i,type:r,logarithmBase:o})};return String(Yt(n.customizeText)?n.customizeText.call(a,a):a.valueText)};function MJ(t,n,e){this._isLeftPointer=e,this._isOverlapped=!1,this._group=t.g().attr({class:"slider-marker"}).append(n),this._area=t.path(null,"area").append(this._group),this._label=t.text().attr({align:"left"}).append(this._group),this._tracker=t.rect().attr({class:"slider-marker-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(this._group),this._border=t.rect(0,0,1,0)}MJ.prototype={constructor:MJ,_getRectSize:function(t){return{width:Math.round(2*this._paddingLeftRight+t.width),height:Math.round(2*this._paddingTopBottom+t.height)}},_getTextSize:function(){var t=this._label.getBBox();return!this._textHeight&&isFinite(t.height)&&(this._textHeight=t.height),{width:t.width,height:this._textHeight,y:t.y}},_getAreaPointsInfo:function(t){var n=this._getRectSize(t),e=n.width,i=n.height,r=-e,o=0,a=4,s=0,l=-4,u=this._position,f=this._isLeftPointer,S=function(){r++,o++,a++,s++,l++},T=function(){a>o?a=o:l<r&&(l=r),f&&S()},R=u;return f?u>this._range[1]-e?(r=(o=-u+this._range[1])-e,T(),R+=r):(r=l=0,o=e):u-this._range[0]<e?(o=(r=-(u-this._range[0]))+e,T(),R+=o):(a=0,S()),this._borderPosition=R,{offset:r,isCut:(!f||s!==l)&&(f||s!==a),points:[r,0,o,0,o,i,a,i,s,i+4,l,i,r,i]}},_update:function(){var n,t=this;clearTimeout(t._timeout),t._label.attr({text:t._text||""});var e=t._getTextSize(),i=t._getRectSize(e);function r(o,a){a=a||t._getRectSize(o),t._group.attr({translateY:-(a.height+4)});var s=t._getAreaPointsInfo(o),l=s.points,u=s.offset;t._area.attr({points:l}),t._border.attr({x:t._isLeftPointer?l[0]-1:l[2],height:s.isCut?a.height:a.height+4}),t._tracker.attr({translateX:u,width:a.width,height:a.height+4}),t._label.attr({translateX:t._paddingLeftRight+u,translateY:a.height/2-(o.y+o.height/2)})}n=t._textSize=e.width>(n=t._textSize||e).width||e.height>n.height?e:n,t._timeout=setTimeout(function(){r(e,i),t._textSize=e},75),r(n)},setText:function(t){this._text=t},setPosition:function(t){this._position=t,this._update()},applyOptions:function(t,n){this._range=n,this._paddingLeftRight=t.paddingLeftRight,this._paddingTopBottom=t.paddingTopBottom,this._textHeight=null,this._colors=[t.invalidRangeColor,t.color],this._area.attr({fill:t.color}),this._border.attr({fill:t.borderColor}),this._label.css(_a(t.font)),this._update()},getTracker:function(){return this._tracker},setValid:function(t){this._area.attr({fill:this._colors[Number(t)]})},setColor:function(t){this._area.attr({fill:t})},dispose:function(){clearTimeout(this._timeout)},setOverlapped:function(t){this._isOverlapped!==t&&(t?this._border.append(this._group):this._isOverlapped&&this._border.remove(),this._isOverlapped=t)},getBorderPosition:function(){return this._borderPosition}};const oln=MJ;var INe=TNe_animationSettings;function AJ(t,n){this._translator=t.translator,this._sliderGroup=t.renderer.g().attr({class:"slider"}).append(t.root),this._line=t.renderer.path(null,"line").append(this._sliderGroup),this._marker=new oln(t.renderer,this._sliderGroup,1===n),this._tracker=t.renderer.rect().attr({class:"slider-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"w-resize"}).append(t.trackersGroup)}AJ.prototype={constructor:AJ,cancelAnimation:function(){this._sliderGroup.stopAnimation(),this._tracker.stopAnimation()},applyPosition:function(t){var n=this._sliderGroup,e=this._tracker,i={translateX:this._position};this._marker.setPosition(this._position),t?(n.animate(i,INe),e.animate(i,INe)):(n.attr(i),e.attr(i))},_setValid:function(t){this._marker.setValid(t),this._line.attr({stroke:this._colors[Number(t)]})},_setText:function(t){this._marker.setText(t)},update:function(t,n,e){this._formatOptions={format:e.format,customizeText:e.customizeText},this._marker.applyOptions(e,this._translator.getScreenRange()),this._colors=[e.invalidRangeColor,n.color],this._sliderGroup.attr({translateY:t[0]}),this._line.attr({"stroke-width":n.width,stroke:n.color,"stroke-opacity":n.opacity,sharp:"h",points:[0,0,0,t[1]-t[0]]});var i=function sln(t){return sW||H2?20:8<t?t:8}(n.width);this._tracker.attr({x:-i/2,y:0,width:i,height:t[1]-t[0],translateY:t[0]})},toForeground:function(){this._sliderGroup.toForeground()},getSliderTracker:function(){return this._tracker},getPosition:function(){return this._position},setDisplayValue:function(t){this._value=t,this._setText(A8(t,this._formatOptions))},setOverlapped:function(t){this._marker.setOverlapped(t)},getValue:function(){return this._value},on:function(t,n){this._tracker.on(t,n),this._marker.getTracker().on(t,n)},getCloudBorder:function(){return this._marker.getBorderPosition()},dispose:function(){this._marker.dispose()}};const MNe=AJ;var lln=TNe_animationSettings;function F8(t,n,e,i){return[t,n,e,n,e,i,t,i]}function P8(t,n){return t<n}function R8(t,n){return t>n}function Mv(t,n){for(var r,e=0,i=n?n.length-1:0,o=t;i-e>1;){if((o=n[r=e+i>>1])===t)return t;t<o?i=r:e=r}return n&&(o=n[t-n[e]<=n[i]-t?e:i]),o}function FNe(){this._lastSelectedRange=this.getSelectedRange(),delete this._processSelectionChanged}function FJ(t){var n={renderer:t.renderer,root:t.root,trackersGroup:t.trackersGroup,translator:t.translator};this._params=t,this._areaTracker=t.renderer.path(null,"area").attr({class:"area-tracker",fill:"#000000",opacity:1e-4}).append(t.trackersGroup),this._selectedAreaTracker=t.renderer.path(null,"area").attr({class:"selected-area-tracker",fill:"#000000",opacity:1e-4}).append(t.trackersGroup),this._shutter=t.renderer.path(null,"area").append(t.root),this._sliders=[new MNe(n,0),new MNe(n,1)],this._processSelectionChanged=FNe}FJ.prototype={constructor:FJ,dispose:function(){this._sliders[0].dispose(),this._sliders[1].dispose()},getTrackerTargets:function(){return{area:this._areaTracker,selectedArea:this._selectedAreaTracker,sliders:this._sliders}},_processSelectionChanged:function(t){var n=this.getSelectedRange();dB(n,this._lastSelectedRange)||(this._params.updateSelectedRange(n,this._lastSelectedRange,t),this._lastSelectedRange=n)},update:function(t,n,e,i,r,o,a,s,l){var u=this._params.translator.getScreenRange();this._verticalRange=t,this._minRange=a.minRange,this._maxRange=a.maxRange,this._animationEnabled=n.animationEnabled&&this._params.renderer.animationEnabled(),this._allowSlidersSwap=n.allowSlidersSwap,this._sliders[0].update(t,i,r),this._sliders[1].update(t,i,r),this._sliders[0]._position=this._sliders[1]._position=u[0],this._values=!this._params.translator.isValueProlonged&&n.snapToTicks?s:null,this._areaTracker.attr({points:F8(u[0],t[0],u[1],t[1])}),this._isCompactMode=e,this._shutterOffset=i.width/2,this._updateSelectedView(o,l),this._isOnMoving="onmoving"===Ri(n.callValueChanged),this._updateSelectedRange(),this._applyTotalPosition(!1)},_updateSelectedView:function(t,n){var e={fill:null,"fill-opacity":null,stroke:null,"stroke-width":null};this._isCompactMode?(e.stroke=n,e["stroke-width"]=3,e.sharp="v"):(e.fill=t.color,e["fill-opacity"]=t.opacity),this._shutter.attr(e)},_updateSelectedRange:function(){var t=this._sliders;t[0].cancelAnimation(),t[1].cancelAnimation(),this._shutter.stopAnimation(),this._params.translator.getBusinessRange().isEmpty()?(t[0]._setText(". . ."),t[1]._setText(". . ."),t[0]._value=t[1]._value=void 0,t[0]._position=this._params.translator.getScreenRange()[0],t[1]._position=this._params.translator.getScreenRange()[1],this._applyTotalPosition(!1),function uln(t){t.setSelectedRange=Be,t._processSelectionChanged===FNe&&t._processSelectionChanged()}(this)):function dln(t){delete t.setSelectedRange}(this)},_applyTotalPosition:function(t){var n=this._sliders;n[0].applyPosition(t=this._animationEnabled&&t),n[1].applyPosition(t);var e=n[0].getCloudBorder()>n[1].getCloudBorder();n[0].setOverlapped(e),n[1].setOverlapped(e),this._applyAreaTrackersPosition(),this._applySelectedRangePosition(t)},_applyAreaTrackersPosition:function(){var t=this._sliders[0].getPosition(),n=this._sliders[1].getPosition();this._selectedAreaTracker.attr({points:F8(t,this._verticalRange[0],n,this._verticalRange[1])}).css({cursor:Math.abs(this._params.translator.getScreenRange()[1]-this._params.translator.getScreenRange()[0]-n+t)<.001?"default":"pointer"})},_applySelectedRangePosition:function(t){var r,o,n=this._verticalRange,e=this._sliders[0].getPosition(),i=this._sliders[1].getPosition();o=this._isCompactMode?[e+Math.ceil(this._shutterOffset),(n[0]+n[1])/2,i-Math.floor(this._shutterOffset),(n[0]+n[1])/2]:[F8((r=this._params.axis.getVisibleArea())[0],n[0],Math.max(e-Math.floor(this._shutterOffset),r[0]),n[1]),F8(r[1],n[0],Math.min(i+Math.ceil(this._shutterOffset),r[1]),n[1])],t?this._shutter.animate({points:o},lln):this._shutter.attr({points:o})},getSelectedRange:function(){return{startValue:this._sliders[0].getValue(),endValue:this._sliders[1].getValue()}},setSelectedRange:function(t,n){t=t||{};var e=this._params.translator,i=e.getBusinessRange(),r="discrete"===i.axisType?function(l,u){return l<u}:function(l,u){return l<=u},{startValue:o,endValue:a}=gbe({dataType:i.dataType,axisType:i.axisType,base:i.base},{startValue:e.isValid(t.startValue)?e.getCorrectValue(t.startValue,1):void 0,endValue:e.isValid(t.endValue)?e.getCorrectValue(t.endValue,-1):void 0,length:t.length},{min:i.minVisible,max:i.maxVisible,categories:i.categories});o=di(o)?Kr(o):o,a=di(a)?Kr(a):a;var s=r(e.to(o,-1),e.to(a,1))?[o,a]:[a,o];this._sliders[0].setDisplayValue(s[0]),this._sliders[1].setDisplayValue(s[1]),this._sliders[0]._position=e.to(s[0],-1),this._sliders[1]._position=e.to(s[1],1),this._applyTotalPosition(!0),this._processSelectionChanged(n)},beginSelectedAreaMoving:function(t){var n=this,e=n._sliders,i=(e[0].getPosition()+e[1].getPosition())/2-t,r=t;return o.complete=function(a){n._dockSelectedArea(a)},o;function o(a,s){a!==r&&a>r==a>(e[0].getPosition()+e[1].getPosition())/2-i&&n._moveSelectedArea(a+i,!1,s),r=a}},_dockSelectedArea:function(t){var n=this._params.translator,e=this._sliders;e[0]._position=n.to(e[0].getValue(),-1),e[1]._position=n.to(e[1].getValue(),1),this._applyTotalPosition(!0),this._processSelectionChanged(t)},moveSelectedArea:function(t,n){this._moveSelectedArea(t,!0,n),this._dockSelectedArea(n)},_moveSelectedArea:function(t,n,e){var i=this._params.translator,r=this._sliders,o=r[1].getPosition()-r[0].getPosition(),a=t-o/2,s=t+o/2;a<i.getScreenRange()[0]&&(s=(a=i.getScreenRange()[0])+o),s>i.getScreenRange()[1]&&(a=(s=i.getScreenRange()[1])-o);var l=Mv(i.from(a,-1),this._values);r[0].setDisplayValue(l),r[1].setDisplayValue(Mv(i.from(i.to(l,-1)+o,1),this._values)),r[0]._position=a,r[1]._position=s,this._applyTotalPosition(n),this._isOnMoving&&this._processSelectionChanged(e)},placeSliderAndBeginMoving:function(t,n,e){var i=this._params.translator,r=this._sliders,o=t<n?0:1,a=o>0?1:-1,s=o>0?R8:P8,l=o>0?P8:R8,f=[],S=[];S[o]=i.from(t,a),S[1-o]=i.from(n,-a),f[1-o]=n,i.isValueProlonged&&(s(t,i.to(S[o],a))&&(S[o]=i.from(t,-a)),s(n,i.to(S[o],-a))&&(S[1-o]=S[o])),this._minRange&&(s(n,i.to(i.add(Mv(S[o],this._values),this._minRange,-a),-a))&&(S[1-o]=i.add(S[o],this._minRange,-a)),l(t,i.to(i.add(i.getRange()[1-o],this._minRange,a),-a))&&(S[1-o]=i.getRange()[1-o],S[o]=i.add(S[1-o],this._minRange,a),f[1-o]=t)),S[0]=Mv(S[0],this._values),S[1]=Mv(S[1],this._values),f[o]=i.to(S[o],a),r[0].setDisplayValue(S[0]),r[1].setDisplayValue(S[1]),r[0]._position=f[0],r[1]._position=f[1],this._applyTotalPosition(!0),this._isOnMoving&&this._processSelectionChanged(e);var T=this.beginSliderMoving(1-o,n);return r[1-o]._sliderGroup.stopAnimation(),this._shutter.stopAnimation(),T(n),T},beginSliderMoving:function(t,n){var e=this,i=e._params.translator,r=e._sliders,o=i.getScreenRange()[0],a=i.getScreenRange()[1],s=t,l=r[1-s].getPosition(),u=n,f=s>0?1:-1,S=s>0?P8:R8,T=s>0?R8:P8,R=r[s].getPosition()-n,L=S(r[s].getPosition(),n)?-R:R;return z.complete=function(j){r[s]._setValid(!0),e._dockSelectedArea(j)},z;function z(j,Y){var ie,te,re,he,fe,Te;j!==u&&(S(j+L,l)&&((ie=e._allowSlidersSwap)&&!i.isValueProlonged&&e._minRange&&(ie=i.isValid(i.add(r[1-s].getValue(),e._minRange,-f))),ie&&(e._changeMovingSlider(s),s=1-s,te=S,S=T,T=te,R=-(f=-f)*Math.abs(R),L=-R)),T(j+R,l))&&(he=r[s],fe=r[1-s].getValue(),re=Math.max(Math.min(j+R,a),o),(ie=!i.isValueProlonged||!S(re,i.to(fe,f)))&&e._minRange&&((ie=!S(re,i.to(i.add(fe,e._minRange,f),f)))||(Te=i.add(fe,e._minRange,f))),ie&&e._maxRange&&((ie=!T(re,i.to(i.add(fe,e._maxRange,f),f)))||(Te=i.add(fe,e._maxRange,f))),he._setValid(ie),he.setDisplayValue(ie?Mv(i.from(re,f),e._values):Z(Te)?Te:he.getValue()),he._position=re,e._applyTotalPosition(!1),he.toForeground(),e._isOnMoving&&e._processSelectionChanged(Y)),u=j}},_changeMovingSlider:function(t){var o,n=this._params.translator,e=this._sliders,i=e[1-t].getPosition(),r=t>0?1:-1;e[t].setDisplayValue(Mv(n.from(i,r),this._values)),o=n.from(i,-r),n.isValueProlonged?o=n.from(i,r):this._minRange&&(o=n.add(o,this._minRange,-r)),e[1-t].setDisplayValue(Mv(o,this._values)),e[t]._setValid(!0),e[t]._marker._update(),e[0]._position=e[1]._position=i},foregroundSlider:function(t){this._sliders[t].toForeground()}};var cln=Fn();function QS(t){var n=t||cln.event,e=n.originalEvent,i=n.touches,r=!!e&&e.pointerType,o=!!e&&e.touches;return 1===n.which||e&&void 0!==r&&(r===(e.MSPOINTER_TYPE_TOUCH||"touch")||r===(e.MSPOINTER_TYPE_MOUSE||"mouse")&&1===e.buttons)||i&&i.length>0||o&&o.length>0}function RNe(t){var n=t.originalEvent,e=t.touches,i=n&&n.touches;return e&&e.length>1||i&&i.length>1||null}function LNe(t){RNe(t)||t.preventDefault()}function BNe(t){RNe(t)||(t.stopPropagation(),t.preventDefault())}function eD(t){return t&&t.type&&0===t.type.indexOf("touch")}function Mb(t){var n=t.originalEvent,e=0;return t.pageX?e=t.pageX:n&&n.pageX&&(e=n.pageX),n&&n.touches&&(n.touches.length>0?e=n.touches[0].pageX:n.changedTouches.length>0&&(e=n.changedTouches[0].pageX)),e}function hln(t,n,e,i){var r,a,o=!1,s=null,l={[qn.move](f){var S,T;r===eD(f)&&(QS(f)||u(f),o&&(S=Mb(f),T=i(),s?s(S-T,f):e.manualRangeSelectionEnabled&&Math.abs(a-S)>=10&&(s=t.placeSliderAndBeginMoving(a-T,S-T,f))))},[qn.up](f){var S;o&&(S=Mb(f),!s&&e.moveSelectedRangeByClick&&Math.abs(a-S)<10&&t.moveSelectedArea(S-i(),f),u(f))}};function u(f){o&&(o=!1,s&&(s.complete(f),s=null))}return n.on(qn.down,function(f){!e.enabled||!QS(f)||o||(o=!0,r=eD(f),a=Mb(f))}),l}function pln(t,n,e,i){var r,o=!1,a=null,s={[qn.move](u){r===eD(u)&&(QS(u)||l(u),o&&(LNe(u),a(Mb(u)-i(),u)))},[qn.up]:l};function l(u){o&&(o=!1,a.complete(u),a=null)}return n.on(qn.down,function(u){!e.enabled||!QS(u)||o||(o=!0,r=eD(u),a=t.beginSelectedAreaMoving(Mb(u)-i()),BNe(u))}),s}function gln(t,n,e,i){var r,o=!1,a=null,s={[qn.move](u){r===eD(u)&&(QS(u)||l(u),o&&(LNe(u),a(Mb(u)-i(),u)))},[qn.up]:l};function l(u){o&&(o=!1,a.complete(u),a=null)}return we(n,function(u,f){f.on({[qn.down](S){!e.enabled||!QS(S)||o||(o=!0,r=eD(S),a=t.beginSliderMoving(u,Mb(S)-i()),BNe(S))},[qn.move](){a||t.foregroundSlider(u)}})}),s}function PJ(t){var n=this._state={},e=t.controller.getTrackerTargets();function i(){return t.renderer.getRootOffset().left}H2&&t.renderer.root.css({msTouchAction:"pinch-zoom"}),this._docEvents=[pln(t.controller,e.selectedArea,n,i),hln(t.controller,e.area,n,i),gln(t.controller,e.sliders,n,i)],we(this._docEvents,function(r,o){Se.on(It.getDocument(),o)})}function RJ(t,n){return void 0!==t?t:n}function LJ(t){this._params=t,this._clipRect=t.renderer.clipRect(),t.root.attr({"clip-path":this._clipRect.id})}PJ.prototype={constructor:PJ,dispose:function(){we(this._docEvents,function(t,n){Se.off(It.getDocument(),n)})},update:function(t,n){var e=this._state;e.enabled=t,e.moveSelectedRangeByClick=n.moveSelectedRangeByClick,e.manualRangeSelectionEnabled=n.manualRangeSelectionEnabled}},LJ.prototype={constructor:LJ,update:function(t,n,e,i,r,o){var a=this._params.renderer,s=this._params.root,l=e.width-e.left;t=t||{},s.clear(),this._clipRect.attr({x:e.left,y:e.top,width:l,height:e.height}),i||(RJ(t.visible,n.visible)&&(t.color&&a.rect(e.left,e.top,l+1,e.height).attr({fill:RJ(t.color,n.color),class:"dx-range-selector-background"}).append(s),t.image&&t.image.url&&a.image(e.left,e.top,l+1,e.height,t.image.url,RJ(t.image.location,n.image.location)).append(s)),o&&o.isShowChart()&&function fln(t,n,e,i){var r=n.getSeries();if(r.length){var o=r[0].getValueAxis();o.updateCanvas({top:e.top,bottom:0,height:e.height+e.top}),n.adjustSeriesDimensions();var a=n.getBoundRange().val;a.sortCategories(o.getCategoriesSorter()),o.setBusinessRange(a),r.forEach(s=>{s._extGroups.seriesGroup=s._extGroups.labelsGroup=t,s.draw(i)})}}(a.g().attr({class:"dxrs-series-group"}).append(s),o,e,r))}};var BJ=function(t){var n=this._themeManager=function(t){return new AEe({options:t,themeSection:"rangeSelector.chart",fontFields:["commonSeriesSettings.label.font"]})}(t.chart);n.setTheme(t.chart.theme);var e=n.getOptions("topIndent"),i=n.getOptions("bottomIndent");this._indent={top:e>=0&&e<1?e:0,bottom:i>=0&&i<1?i:0},this._valueAxis=n.getOptions("valueAxisRangeSelector")||{},this._hideChart=!1,this._series=this._calculateSeries(t),this._seriesFamilies=[]};BJ.prototype={constructor:BJ,_calculateSeries:function(t){var e,i,o,u,S,T,R,n=[],r=t.dataSource||[],a=this._themeManager,s=a.getOptions("seriesTemplate"),l=s?hbe(s,r):t.chart.series,f=this._valueAxis;for(t.dataSource&&!l&&(l={argumentField:u=t.dataSourceField||"arg",valueField:u},this._hideChart=!0),l=Array.isArray(l)?l:l?[l]:[],S=0;S<l.length;S++)(e=se(!0,{},l[S])).rotated=!1,(i=a.getOptions("series",e,l.length)).argumentField=i.argumentField||t.dataSourceField,i.name||(i.name="Series "+(S+1).toString()),r&&r.length>0&&(T=new qI({renderer:t.renderer,argumentAxis:t.argumentAxis,valueAxis:t.valueAxis,incidentOccurred:t.incidentOccurred},i),n.push(T));if(n.length)for(o=M$(r,R={groups:[{series:n,valueAxis:t.valueAxis,valueOptions:{type:f.type,valueType:u?t.valueType:f.valueType}}],argumentOptions:{categories:t.categories,argumentType:t.valueType,type:t.axisType}},t.incidentOccurred,a.getOptions("dataPrepareSettings")),this.argCategories=R.categories,S=0;S<n.length;S++)n[S].updateData(o[n[S].getArgumentField()]);return n},createPoints(){if(0!==this._series.length){var t=this._series,n=new Os,e=t[0].getArgumentAxis(),i=this._themeManager,r=i.getOptions("negativesAsZeroes"),o=i.getOptions("negativesAsZeros");t.forEach(function(a){n.addRange(a.getArgumentRange())}),e.getTranslator().updateBusinessRange(n),t.forEach(function(a){a.createPoints()}),this._seriesFamilies=function(t,n,e,i,r){var o=[],a=[];return we(t,function(s,l){a.includes(l.type)||a.push(l.type)}),we(a,function(s,l){var u=new xN({type:l,minBubbleSize:n,maxBubbleSize:e,barGroupPadding:i.barGroupPadding,barGroupWidth:i.barGroupWidth,negativesAsZeroes:r});u.add(t),u.adjustSeriesValues(),o.push(u)}),o}(t,i.getOptions("minBubbleSize"),i.getOptions("maxBubbleSize"),{barGroupPadding:i.getOptions("barGroupPadding"),barGroupWidth:i.getOptions("barGroupWidth")},Z(r)?r:o)}},adjustSeriesDimensions:function(){we(this._seriesFamilies,function(t,n){n.adjustSeriesDimensions()})},getBoundRange:function(){var t,r,o,a,s,n=this._valueAxis,e=new Os({min:n.min,minVisible:n.min,max:n.max,maxVisible:n.max,axisType:n.type,base:n.logarithmBase}),i=new Os({});return we(this._series,function(l,u){t=u.getRangeData(),e.addRange(t.val),i.addRange(t.arg)}),!e.isEmpty()&&!i.isEmpty()&&(a=n.inverted?this._indent.top:this._indent.bottom,s=n.inverted?this._indent.bottom:this._indent.top,r=e.max-e.min,o=(di(e.maxVisible)?e.maxVisible:e.max)-(di(e.minVisible)?e.minVisible:e.min),Sa(e.min)?e.min=new Date(e.min.valueOf()-r*a):e.min-=r*a,Sa(e.max)?e.max=new Date(e.max.valueOf()+r*s):e.max+=r*s,di(o)&&(e.maxVisible=e.maxVisible?e.maxVisible+o*s:void 0,e.minVisible=e.minVisible?e.minVisible-o*a:void 0),e.invert=n.inverted),{arg:i,val:e}},getMarginOptions:function(t){var n=Math.min(t.width,t.height)*this._themeManager.getOptions("maxBubbleSize");return this._series.reduce(function(e,i){var r=i.getMarginOptions();return!0===r.processBubbleSize&&(r.size=n),Ej(e,r)},{})},getSeries:function(){return this._series},isEmpty:function(){return 0===this.getSeries().length},isShowChart:function(){return!this._hideChart},getCalculatedValueType:function(){return this._series[0]?.argumentType},getThemeManager:function(){return this._themeManager}};var NJ=Math.max,tD=Math.ceil,L8=Math.floor,NNe="startValue",B8="datetime",Av="value",nD="discrete",iD="semidiscrete",N8="string",VNe=Av+"Changed",HNe="containerBackgroundColor",zNe="logarithmic",VJ="reset";function KNe(t,n,e){var r=HJ(t,void 0===n?". . .":A8(n,e),e.font);return tD(r.height)+2*e.paddingTopBottom+4}function $Ne(t,n,e,i){var o=HJ(t,A8(n,e.label,i,e.valueType,e.type,e.logarithmBase),e.label.font);return tD(o.width/2)}function qNe(t,n){var e=Fa(t),i=Fa(n),r=function(o){return e===o||i===o};return r("date")?B8:r("number")?"numeric":r(N8)?N8:""}function Dln(t){return t.valueType===B8&&t.marker.visible}function YNe(t,n,e){if(t){var i=t.logarithmBase;t.type===zNe&&i<=0||i&&!di(i)?(t.logarithmBase=n,e("E2104")):t.type!==zNe&&(t.logarithmBase=void 0)}}function Oln(t,n,e,i){var r=n.label,o=n.marker,a=n.placeholderHeight,l=A8(("semidiscrete"===n.type?n.customTicks:i.ticks)[0],r);return a||(r.visible?r.topIndent+HJ(t,l,r.font).height:0)+(e?o.topIndent+o.separatorHeight:0)}function Iln(t,n,e){return t?e?t=bt.getNextDateUnit(t):t+=n:t=n,t}function ZNe(t){var n;return null===(n=t.workWeek)||void 0===n?void 0:n[0]}function HJ(t,n,e){var i=t.text(n,-1e3,-1e3).css(_a(e)).append(t.root),r=i.getBBox();return i.remove(),r}function Fv(t,n,e,i){return Z(t)&&(t=n?bt.correctDateWithUnitBeginning(new Date(t),e,null,i):Kr(L8(Kr(t/e))*e)),t}function Nln(t,n,e){var i=Math.abs(n-t)/e,r=i-L8(i);return r>0?tD(Math.abs(Kr(Nm(r,10)))):0}var Ab=V_.inherit({_toggleParentsScrollSubscription(){},_eventsMap:{onValueChanged:{name:VNe}},_rootClassPrefix:"dxrs",_rootClass:"dxrs-range-selector",_dataIsReady:function(){return this._dataIsLoaded()},_initialChanges:["DATA_SOURCE","VALUE"],_themeDependentChanges:["MOSTLY_TOTAL"],_themeSection:"rangeSelector",_fontFields:["scale.label.font","sliderMarker.font"],_initCore:function(){var t=this,n=t._renderer,e=n.root;e.css({"touch-action":"pan-y"}),t._clipRect=n.clipRect();var i=n.g().attr({class:"dxrs-view"}).append(e),r=n.g().attr({class:"dxrs-slidersContainer","clip-path":t._clipRect.id}).append(e),o=n.g().attr({class:"dxrs-scale","clip-path":t._clipRect.id}).append(e),a=n.g().attr({class:"dxrs-scale-elements","clip-path":t._clipRect.id}).append(e),s=n.g().attr({class:"dxrs-scale-breaks"}).append(e),l=n.g().attr({class:"dxrs-trackers"}).append(e);t._axis=new wM({renderer:n,root:o,scaleBreaksGroup:s,labelsAxesGroup:a,updateSelectedRange:function(u,f){t.setValue(I_(u),f)},incidentOccurred:t._incidentOccurred}),t._rangeView=new LJ({renderer:n,root:i,translator:t._axis.getTranslator()}),t._slidersController=new FJ({renderer:n,root:r,trackersGroup:l,updateSelectedRange:function(u,f,S){t._rangeOption||t.option(Av,I_(u,wi(t._options.silent(Av)))),t._eventTrigger(VNe,{value:I_(u),previousValue:I_(f),event:S})},axis:t._axis,translator:t._axis.getTranslator()}),t._tracker=new PJ({renderer:n,controller:t._slidersController})},_getDefaultSize:function(){return{width:400,height:160}},_disposeCore:function(){this._axis.dispose(),this._slidersController.dispose(),this._tracker.dispose()},_applySize:function(t){this._clientRect=t.slice(),this._change(["MOSTLY_TOTAL"])},_optionChangesMap:{scale:"SCALE",value:"VALUE",dataSource:"DATA_SOURCE"},_optionChangesOrder:["SCALE","DATA_SOURCE"],_change_SCALE:function(){this._change(["MOSTLY_TOTAL"])},_setValueByDataSource(){var t=this._options.silent(),n=this._axis;if(t.dataSource){var e=this.option("selectedRangeUpdateMode"),i=this.getValue(),r=Z(i[0])&&Z(i[1]);if(Z(e)?(e=Ri(e),this.__skipAnimation=!0):r&&!this._dataSourceIsAsync&&(e=VJ),"auto"===e&&r){var o=n.allScaleSelected(i);e=o.startValue&&o.endValue?VJ:o.endValue?"shift":"keep"}if(e===VJ)t[Av]=null;else if("shift"===e&&r){var a=this.getValue();this.__skipAnimation=!0,t[Av]={length:n.getVisualRangeLength({minVisible:a[0],maxVisible:a[1]})}}else"keep"===e&&(this.__skipAnimation=!0)}this._dataSourceIsAsync=void 0},_change_DATA_SOURCE:function(){this._options.silent("dataSource")&&this._updateDataSource()},_customChangesOrder:["MOSTLY_TOTAL","VALUE","SLIDER_SELECTION"],_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_change_SLIDER_SELECTION:function(){var t=this._options.silent(Av);this._slidersController.setSelectedRange(t&&jg(t))},_change_VALUE:function(){var t=this._rangeOption;this._dataSourceIsAsync=!this._dataIsReady(),t&&(this._options.silent(Av,t),this.setValue(t))},_validateRange:function(t,n){var e=i=>Z(i)&&!this._axis.getTranslator().isValid(i);this._dataIsReady()&&(e(t)||e(n))&&this._incidentOccurred("E2203")},_applyChanges:function(){var t=this,n=t._options.silent(Av);t._changes.has("VALUE")&&n&&(t._rangeOption=n),t.callBase.apply(t,arguments),t._rangeOption=null,t.__isResizing=t.__skipAnimation=!1},_applyMostlyTotalChange:function(){var e,t=this._renderer,n=this._clientRect,i={left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1]};(this.__isResizing||this.__skipAnimation)&&(e=t.animationEnabled(),t.updateAnimationOptions({enabled:!1})),this._clipRect.attr({x:n[0],y:n[1],width:n[2]-n[0],height:n[3]-n[1]}),this._axis.getTranslator().update(new Os,i,{isHorizontal:!0}),this._updateContent({left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1]}),(this.__isResizing||this.__skipAnimation)&&t.updateAnimationOptions({enabled:e}),this._drawn()},_dataSourceChangedHandler:function(){this._setValueByDataSource(),this._requestChange(["MOSTLY_TOTAL"])},_completeSeriesDataSourceCreation(t,n){var e=this._clientRect,i={left:e[0],top:e[1],width:e[2]-e[0],height:e[3]-e[1]};this._axis.updateOptions(se({},t,{isHorizontal:!0,label:{}})),n.isShowChart()&&this._axis.setMarginOptions(n.getMarginOptions(i)),this._axis.updateCanvas(i),n.createPoints()},_updateContent:function(t){var n=this.option("chart"),e=this._createSeriesDataSource(n),i=!(e&&e.isShowChart()||this.option("background.image.url")),r=function Lln(t,n,e,i){var r=0,o=Hwe(Ri(t.valueType)),a=function(l,u){var f=l===NNe?"start":"end";Z(t[l])&&(r=u(t[l]),Z(r)?t[l]=r:(t[l]=void 0,e("E2202",[f])))};(o=n||o)||(o=qNe(t.startValue,t.endValue)||"numeric"),(o===N8||t.categories)&&(t.type=nD,o=N8),t.containerColor=i,t.valueType=o,t.dataType=o;var s=BK(o);return a(NNe,s),a("endValue",s),YNe(t,10,e),t.type||(t.type="continuous"),t.parser=s,t.type===iD&&(t.minorTick.visible=!1,t.minorTickInterval=t.minRange,t.marker.visible=!1,t.maxRange=void 0),t.forceUserTickInterval|=Z(t.tickInterval)&&!Z(t.axisDivisionFactor),t.axisDivisionFactor=Z(t.axisDivisionFactor)?t.axisDivisionFactor:30,t.minorAxisDivisionFactor=Z(t.minorAxisDivisionFactor)?t.minorAxisDivisionFactor:15,t}(this._getOption("scale"),e&&e.getCalculatedValueType(),this._incidentOccurred,this._getOption("containerBackgroundColor",!0));e&&this._completeSeriesDataSourceCreation(r,e);var o=function Aln(t,n){var e,i,s,l,f,r=!1,o=n.startValue,a=n.endValue,u=t?t.getBoundRange().arg:new Os,S="datetime"===n.valueType,T=ZNe(n),R=n.minRange;return n.type===nD&&((f=new Os({minVisible:o,maxVisible:a})).addRange(u),u=f,n._categoriesInfo=l=Gg(s=(s=t?t.argCategories:n.categories||o&&a&&[o,a])||[],o,a)),n.type===iD&&(o=n.startValue=Fv(n.startValue,S,R,T),a=n.endValue=Fv(n.endValue,S,R,T),u.minVisible=Fv(u.minVisible,S,R,T),u.maxVisible=Fv(u.maxVisible,S,R,T),u.min=Fv(u.min,S,R,T),u.max=Fv(u.max,S,R,T)),Z(o)&&Z(a)?(r=l?l.inverted:o>a,e=l?l.start:r?a:o,i=l?l.end:r?o:a):Z(o)||Z(a)?(e=o,i=a):l&&(e=l.start,i=l.end),u.addRange({invert:r,min:e,max:i,minVisible:e,maxVisible:i,dataType:n.valueType}),u.addRange({categories:t?void 0:s,base:n.logarithmBase,axisType:n.type,dataType:n.valueType}),t&&u.sortCategories(s),u}(e,r),a=function Mln(t,n,e,i){var r,l,u,o=Z(i.minVisible)?i.minVisible:i.min,a=Z(i.maxVisible)?i.maxVisible:i.max,s=t._categoriesInfo,f={};return t.type===iD?r=function kln(t,n,e,i){var a,u,f,r=t.minorTickInterval,o=t.tickInterval,s="datetime"===t.valueType,l=t.axisDivisionFactor||{};if(!o)do{if(o===(a=Iln(o,r,s)))break;o=a,s&&(a=bt.dateToMilliseconds(o)),u=tD((e-n)/a),f=L8(i/(l[o]||50))||1}while(a&&u>f);return{tickInterval:o,minorTickInterval:r,bounds:{minVisible:n,maxVisible:e},ticks:[]}}(t,o,a,n):(u=(l=i1e({axisType:t.type,dataType:t.valueType,logBase:t.logarithmBase,allowNegatives:!0,linearThreshold:Math.abs(t.linearThreshold||0),axisDivisionFactor:t.axisDivisionFactor,minorAxisDivisionFactor:t.minorAxisDivisionFactor,calculateMinors:!0,allowDecimals:t.allowDecimals,endOnTick:t.endOnTick,incidentOccurred:e,rangeIsEmpty:i.isEmpty()})({min:o,max:a,categories:Z(s)?s.categories:[]},n,t.tickInterval,t.forceUserTickInterval,void 0,t.minorTickInterval,t.minorTickCount)).ticks.length,f.minVisible=l.ticks[0]<o?l.ticks[0]:o,f.maxVisible=l.ticks[u-1]>a?l.ticks[u-1]:a,r={tickInterval:l.tickInterval,minorTickInterval:0===t.minorTickInterval?0:l.minorTickInterval,bounds:f,ticks:l.ticks}),r}(r,t.width,this._incidentOccurred,o),s=e&&e.isShowChart()&&e.getThemeManager();s&&YNe(n&&n.valueAxis,s.getOptions("valueAxis").logarithmBase,this._incidentOccurred),function Rln(t,n,e,i,r){var o,a,l,s=t._categoriesInfo,u=t.valueType===B8;n&&!n.isEmpty()&&!e.isEmpty()&&(e.addRange(o=i.bounds),t.startValue=e.invert?o.maxVisible:o.minVisible,t.endValue=e.invert?o.minVisible:o.maxVisible),t.marker.visible=r(u&&-1===t.type.indexOf(nD),t.marker.visible,t.startValue,t.endValue,i.tickInterval),s&&(t.startValue=s.start,t.endValue=s.end),-1===t.type.indexOf(nD)&&(a=Sa(t.startValue)&&Sa(t.endValue)&&t.startValue.getTime()===t.endValue.getTime()||t.startValue===t.endValue),t.isEmpty=function Fln(t,n){return!Z(t)||!Z(n)}(t.startValue,t.endValue)||a,t.isEmpty?t.startValue=t.endValue=void 0:(t.minorTickInterval=i.minorTickInterval,t.tickInterval=i.tickInterval,u&&(!Z(t.label.format)||t.type===iD&&t.minorTickInterval!==t.tickInterval)&&(t.label.format=t.type===nD?Es.getDateFormatByTicks(i.ticks):t.marker.visible?bt.getDateFormatByTickInterval(t.tickInterval):Es.getDateFormatByTickInterval(t.startValue,t.endValue,t.tickInterval))),t.type===iD&&(l=function Bln(t){var n=t.startValue,e=t.endValue,i="datetime"===t.valueType,r=ZNe(t),o=t.tickInterval,a={intervals:[]};return!Z(n)||!Z(e)||(a.intervals=bt.getSequenceByInterval(n,e,t.minorTickInterval),o!==t.minorTickInterval&&(a.altIntervals=a.intervals,n=Fv(n,i,o,r),e=Fv(e,i,o,r),a.intervals=bt.getSequenceByInterval(n,e,o),a.intervals[0]=a.altIntervals[0])),a}(t),t.customMinorTicks=l.altIntervals,t.customTicks=l.intervals,t.customBoundTicks=[t.customTicks[0]])}(r,e,o,a,function Pln(t){return function(n,e,i,r,o){return e&&n&&(!Z(o)||o.years||o.months>=6||t/50<tD((r-i)/bt.dateToMilliseconds("year"))+1)&&(e=!1),e}}(t.width)),function Eln(t,n){var e=n.minorTickInterval||n.tickInterval;"datetime"===n.valueType&&(e=bt.dateToMilliseconds(e)),t.addRange({interval:e})}(o,r);var l=this._prepareSliderMarkersOptions(r,t.width,a,o),u=function Sln(t,n,e,i,r){var o,l,u,f,S,R,L,a=0,s=0,T="semidiscrete"===n.type?n.customTicks:r.ticks;return u=(i=i||{}).left,f=i.right,S=e.placeholderHeight,e.visible&&(o=KNe(t,n.startValue,e),l=KNe(t,n.endValue,e),void 0===S&&(S=NJ(o,l))),n.label.visible&&(R=Z(n.startValue)?T[0]:void 0,L=Z(n.endValue)?T[T.length-1]:void 0,a=$Ne(t,R,n,r),s=$Ne(t,L,n,r)),{left:u=void 0!==u?u:a,right:f=(void 0!==f?f:s)||1,top:S||0,bottom:0}}(this._renderer,r,l,this.option("indent"),a),f={left:t.left+u.left,top:t.top+u.top,width:t.left+u.left+NJ(t.width-u.left-u.right,1),height:NJ(i?24:t.height-u.top-u.bottom-Oln(this._renderer,r,Dln(r),a),0),right:0,bottom:0};this._axis.update(r,i,f,o,e),r.minorTickInterval=r.isEmpty?0:r.minorTickInterval,this._updateElements(r,l,i,f,e),s&&s.dispose()},_updateElements:function(t,n,e,i,r){var o=this._getOption("behavior"),a=this._getOption("shutter"),s=t.type!==iD;a.color=a.color||this._getOption(HNe,!0),this._rangeView.update(this.option("background"),this._themeManager.theme("background"),i,e,o.animationEnabled&&this._renderer.animationEnabled(),r),this._isUpdating=!0,this._slidersController.update([i.top,i.top+i.height],o,e,this._getOption("sliderHandle"),n,a,{minRange:s?this.option("scale.minRange"):void 0,maxRange:s?this.option("scale.maxRange"):void 0},this._axis.getFullTicks(),this._getOption("selectedRangeColor",!0)),this._requestChange(["SLIDER_SELECTION"]),this._isUpdating=!1,this._tracker.update(!this._axis.getTranslator().getBusinessRange().isEmpty(),o)},_createSeriesDataSource:function(t){var n,e=this._dataSourceItems(),i=this._getOption("scale"),r=i.valueType||qNe(i.startValue,i.endValue),o=new J_({renderer:this._renderer,axisType:"xyAxes",drawingType:"linear"});return o.updateOptions({isHorizontal:!1,label:{},categoriesSortingMethod:this._getOption("chart").valueAxis.categoriesSortingMethod}),(e||t&&t.series)&&(t=se({},t,{theme:this.option("theme")}),n=new BJ({renderer:this._renderer,dataSource:e,valueType:Ri(r),axisType:i.type,chart:t,dataSourceField:this.option("dataSourceField"),incidentOccurred:this._incidentOccurred,categories:i.categories,argumentAxis:this._axis,valueAxis:o})),n},_prepareSliderMarkersOptions:function(t,n,e,i){var r=e.minorTickInterval,o=e.tickInterval,a=o,s=t.endValue,l=t.startValue,u=this._getOption("sliderMarker"),f=!this._getOption("behavior").snapToTicks,S=t.type===nD,T=t.valueType===B8;return u.borderColor=this._getOption(HNe,!0),!u.format&&!i.isEmpty()&&(f&&di(t.startValue)&&(u.format={type:"fixedPoint",precision:Nln(l,s,n)}),T&&!S&&(Z(r)&&0!==r&&(a=function Tln(t,n,e){var i=bt.getDateUnitInterval(n),r=bt.getDateUnitInterval(t),o=bt.dateUnitIntervals.indexOf(i);return e&&i===r&&o>0&&(i=bt.dateUnitIntervals[o-1]),i}(o,r,f)),t.marker.visible?u.format=bt.getDateFormatByTickInterval(a):Z(l)&&Z(s)&&(u.format=Es.getDateFormatByTickInterval(l,s,a))),T&&S&&e.ticks.length&&(u.format=Es.getDateFormatByTicks(e.ticks))),u},getValue:function(){return I_(this._slidersController.getSelectedRange())},setValue:function(t,n){var e=jg(t);!this._isUpdating&&t&&(this._validateRange(e.startValue,e.endValue),!dB(e,this._slidersController.getSelectedRange())&&this._slidersController.setSelectedRange(e,n))},_setContentSize:function(){this.__isResizing=2===this._changes.count(),this.callBase.apply(this,arguments)}});function zln(){return 1}function Uln(t){return t%2==1?-L8(t/2):-t/2}function Wln(t,n,e,i){function r(a){2===a.length&&wr_areLabelsOverlap(n[a[0]],n[a[1]],e,i)&&t[a[0]].removeLabel()}function o(a){for(var s=[],l=a;s.length<2&&l<t.length;l++)t[l].label&&s.push(l);return s}t.length<3||(r(o(0)),r(o(t.length-2).reverse()))}function wM(t){this._axis=new J_({renderer:t.renderer,axesContainerGroup:t.root,scaleBreaksGroup:t.scaleBreaksGroup,labelsAxesGroup:t.labelsAxesGroup,incidentOccurred:t.incidentOccurred,axisType:"xyAxes",drawingType:"linear",widgetClass:"dxrs",axisClass:"range-selector",isArgumentAxis:!0,getTemplate(){}}),this._updateSelectedRangeCallback=t.updateSelectedRange,this._axis.getAxisSharpDirection=this._axis.getSharpDirectionByCoords=zln,this._axis.getTickStartPositionShift=Uln,this._axis._checkShiftedLabels=Wln}we(["selectedRangeColor","containerBackgroundColor","sliderMarker","sliderHandle","shutter","background","behavior","chart","indent"],function(t,n){Ab.prototype._optionChangesMap[n]="MOSTLY_TOTAL"}),wM.prototype={constructor:wM,update:function(t,n,e,i,r){var o=this._axis;o.updateOptions(function Vln(t,n,e,i){return t.marker.label.font=t.label.font,t.color=t.marker.color=t.tick.color,t.opacity=t.marker.opacity=t.tick.opacity,t.width=t.marker.width=t.tick.width,t.placeholderSize=(t.placeholderHeight||0)+i,t.argumentType=t.valueType,t.visible=n,t.isHorizontal=!0,t.calculateMinors=!0,t.semiDiscreteInterval=t.minRange,n||(t.minorTick.length=t.tick.length=e),t.label.indentFromAxis=t.label.topIndent+i,t}(t,n,e.height,e.height/2-tD(t.width/2))),o.validate(),o.setBusinessRange(i,!0),void 0!==r&&r.isShowChart()&&o.setMarginOptions(r.getMarginOptions(e)),o.draw(e),o.shift({left:0,bottom:-e.height/2+e.top}),o.getMarkerTrackers()&&function Hln(t,n,e){function i(r){var o=r.target.range,a=t.minRange?bt.addInterval(o.startValue,t.minRange):void 0,s=t.maxRange?bt.addInterval(o.startValue,t.maxRange):void 0;a&&a>o.endValue||s&&s<o.endValue||e(o,r)}we(n,function(r,o){o.on("dxpointerdown",i)})}(t,o.getMarkerTrackers(),this._updateSelectedRangeCallback),o.drawScaleBreaks({start:e.top,end:e.top+e.height})},visualRange:function(){},getViewport:function(){return{}},allScaleSelected(t){var{startValue:n,endValue:e}=this._axis.visualRange();return{startValue:t[0].valueOf()===n.valueOf(),endValue:t[1].valueOf()===e.valueOf()}},getOptions(){return this._axis.getOptions()||{}}},we(J_.prototype,t=>{"constructor"!==t&&"_"!==t[0]&&Yt(J_.prototype[t])&&!(t in wM.prototype)&&(wM.prototype[t]=function(){var n=this._axis;return n[t].apply(n,arguments)})}),On("dxRangeSelector",Ab);const Gln=Ab;Ab.addPlugin(j_),Ab.addPlugin(TC),Ab.addPlugin(MC),Ab.addPlugin(_S);const jln=Gln,Kln={provide:Fo,useExisting:At(()=>$ln),multi:!0};let $ln=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"drawn",emit:"onDrawn"},{subscribe:"exported",emit:"onExported"},{subscribe:"exporting",emit:"onExporting"},{subscribe:"fileSaving",emit:"onFileSaving"},{subscribe:"incidentOccurred",emit:"onIncidentOccurred"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"backgroundChange"},{emit:"behaviorChange"},{emit:"chartChange"},{emit:"containerBackgroundColorChange"},{emit:"dataSourceChange"},{emit:"dataSourceFieldChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"exportChange"},{emit:"indentChange"},{emit:"loadingIndicatorChange"},{emit:"marginChange"},{emit:"pathModifiedChange"},{emit:"redrawOnResizeChange"},{emit:"rtlEnabledChange"},{emit:"scaleChange"},{emit:"selectedRangeColorChange"},{emit:"selectedRangeUpdateModeChange"},{emit:"shutterChange"},{emit:"sizeChange"},{emit:"sliderHandleChange"},{emit:"sliderMarkerChange"},{emit:"themeChange"},{emit:"titleChange"},{emit:"valueChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get background(){return this._getOption("background")}set background(e){this._setOption("background",e)}get behavior(){return this._getOption("behavior")}set behavior(e){this._setOption("behavior",e)}get chart(){return this._getOption("chart")}set chart(e){this._setOption("chart",e)}get containerBackgroundColor(){return this._getOption("containerBackgroundColor")}set containerBackgroundColor(e){this._setOption("containerBackgroundColor",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get dataSourceField(){return this._getOption("dataSourceField")}set dataSourceField(e){this._setOption("dataSourceField",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get export(){return this._getOption("export")}set export(e){this._setOption("export",e)}get indent(){return this._getOption("indent")}set indent(e){this._setOption("indent",e)}get loadingIndicator(){return this._getOption("loadingIndicator")}set loadingIndicator(e){this._setOption("loadingIndicator",e)}get margin(){return this._getOption("margin")}set margin(e){this._setOption("margin",e)}get pathModified(){return this._getOption("pathModified")}set pathModified(e){this._setOption("pathModified",e)}get redrawOnResize(){return this._getOption("redrawOnResize")}set redrawOnResize(e){this._setOption("redrawOnResize",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get scale(){return this._getOption("scale")}set scale(e){this._setOption("scale",e)}get selectedRangeColor(){return this._getOption("selectedRangeColor")}set selectedRangeColor(e){this._setOption("selectedRangeColor",e)}get selectedRangeUpdateMode(){return this._getOption("selectedRangeUpdateMode")}set selectedRangeUpdateMode(e){this._setOption("selectedRangeUpdateMode",e)}get shutter(){return this._getOption("shutter")}set shutter(e){this._setOption("shutter",e)}get size(){return this._getOption("size")}set size(e){this._setOption("size",e)}get sliderHandle(){return this._getOption("sliderHandle")}set sliderHandle(e){this._setOption("sliderHandle",e)}get sliderMarker(){return this._getOption("sliderMarker")}set sliderMarker(e){this._setOption("sliderMarker",e)}get theme(){return this._getOption("theme")}set theme(e){this._setOption("theme",e)}get title(){return this._getOption("title")}set title(e){this._setOption("title",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}change(e){}_createInstance(e,i){return new jln(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("dataSource",e),this.setupChanges("value",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-range-selector"]],hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{background:"background",behavior:"behavior",chart:"chart",containerBackgroundColor:"containerBackgroundColor",dataSource:"dataSource",dataSourceField:"dataSourceField",disabled:"disabled",elementAttr:"elementAttr",export:"export",indent:"indent",loadingIndicator:"loadingIndicator",margin:"margin",pathModified:"pathModified",redrawOnResize:"redrawOnResize",rtlEnabled:"rtlEnabled",scale:"scale",selectedRangeColor:"selectedRangeColor",selectedRangeUpdateMode:"selectedRangeUpdateMode",shutter:"shutter",size:"size",sliderHandle:"sliderHandle",sliderMarker:"sliderMarker",theme:"theme",title:"title",value:"value"},outputs:{onDisposing:"onDisposing",onDrawn:"onDrawn",onExported:"onExported",onExporting:"onExporting",onFileSaving:"onFileSaving",onIncidentOccurred:"onIncidentOccurred",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",backgroundChange:"backgroundChange",behaviorChange:"behaviorChange",chartChange:"chartChange",containerBackgroundColorChange:"containerBackgroundColorChange",dataSourceChange:"dataSourceChange",dataSourceFieldChange:"dataSourceFieldChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",exportChange:"exportChange",indentChange:"indentChange",loadingIndicatorChange:"loadingIndicatorChange",marginChange:"marginChange",pathModifiedChange:"pathModifiedChange",redrawOnResizeChange:"redrawOnResizeChange",rtlEnabledChange:"rtlEnabledChange",scaleChange:"scaleChange",selectedRangeColorChange:"selectedRangeColorChange",selectedRangeUpdateModeChange:"selectedRangeUpdateModeChange",shutterChange:"shutterChange",sizeChange:"sizeChange",sliderHandleChange:"sliderHandleChange",sliderMarkerChange:"sliderMarkerChange",themeChange:"themeChange",titleChange:"titleChange",valueChange:"valueChange",onBlur:"onBlur"},features:[ot([Zt,nn,Kln,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},styles:["[_nghost-%COMP%] {  display: block; }"]}),t})(),XNe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[wR,Pg,G0e,J0e,x_,_R,Bw,Ea,Jd,Eh,Lo,kg,t1,KR,xL,d1,Oh,iL,u1,Nw,ER,OR,HR,zR,UR,WR,GR,__,Oa,$r,Zw,tL,nL,i1,dL,cL,hL,o1,pL,gL,fL,mL,_L,vL,Gw,y_,D_,wL,aa,T_e,ms,Ta,n1,mR,yR,DR,N_e,H_e,Lg,Qw,G_e,Ng,l1,sve,Ia,lve,uve,vs,_s,bi,tn,mi],wR,Pg,G0e,J0e,x_,_R,Bw,Ea,Jd,Eh,Lo,kg,t1,KR,xL,d1,Oh,iL,u1,Nw,ER,OR,HR,zR,UR,WR,GR,__,Oa,$r,Zw,tL,nL,i1,dL,cL,hL,o1,pL,gL,fL,mL,_L,vL,Gw,y_,D_,wL,aa,T_e,ms,Ta,n1,mR,yR,DR,N_e,H_e,Lg,Qw,G_e,Ng,l1,sve,Ia,lve,uve,vs,_s,tn]}),t})();var qln={top:{my:"bottom center",at:"top center",collision:"fit none"},bottom:{my:"top center",at:"bottom center",collision:"fit none"}},Yln={h:2,v:1};class Xln extends eye{_normalizePosition(n){var e=this._props.target,i=".".concat("dx-slider"),r=e?.closest(i),o={of:e,boundaryOffset:Yln,boundary:r?.get(0)},a=se(!0,{},o,this._positionToObject(n));return this._positionSide=this._getDisplaySide(a),a}_renderContentInitialPosition(){super._renderContentInitialPosition(),this._fitIntoSlider()}_fitIntoSlider(){var{collisionSide:n,oversize:e}=rs.calculate(this._$content,this._position).h;kr(this._$content,{left:this._visualPosition.left+("left"===n?1:-1)*e}),this._updateVisualPositionValue()}_positionToObject(n){return Pn(n)?se({},qln[n]):n}}var Qln=Y9.inherit({_getDefaultOptions(){return se(this.callBase(),{visible:!1,position:"top",hideOnOutsideClick:!1,hideTopOverlayHandler:null,hideOnParentScroll:!1,animation:null,arrowPosition:null,templatesRenderAsynchronously:!1,_fixWrapperPosition:!1,useResizeObserver:!1,showMode:"onHover",format:t=>t,value:0})},_initMarkup(){this.callBase(),this._attachToMarkup(this.option("visible")),this._toggleShowModeClass()},_renderContent(){this.callBase(),this._renderContentText()},_renderContentText(){var{value:t,format:n}=this.option(),e=Gr.format(t??0,n);this.$content().text(e),this._renderPosition()},_toggleShowModeClass(){var t="onHover"===this.option("showMode");this.option("target").toggleClass("dx-slider-tooltip-visible-on-hover",t)},_initPositionController(){this._positionController=new Xln(this._getPositionControllerConfig())},_attachToMarkup(t){var n=this.option("target");t?this.$element().appendTo(n):this.$element().detach()},_optionChanged(t){var{name:n,value:e}=t;switch(n){case"visible":this._attachToMarkup(e),this.callBase(t);break;case"showMode":this._toggleShowModeClass();break;case"format":case"value":this._renderContentText();break;default:this.callBase(t)}},updatePosition(){this._renderPosition()}});const eun=Qln;var nun=tr.inherit({_getDefaultOptions:function(){return se(this.callBase(),{hoverStateEnabled:!1,value:0,tooltip:{enabled:!1,format:t=>t,position:"top",showMode:"onHover"}})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-slider-handle"),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this.callBase(),this._renderTooltip()},_renderTooltip:function(){var{tooltip:t,value:n}=this.option(),{position:e,format:i,enabled:r,showMode:o}=t,a=U("<div>");this._sliderTooltip=this._createComponent(a,eun,{target:this.$element(),container:a,position:e,visible:r,showMode:o,format:i,value:n})},_clean:function(){this.callBase(),this._sliderTooltip=null},_updateTooltipOptions(t){var n,e=tr.getOptionsFromContainer(t);this._setWidgetOption("_sliderTooltip",[e]),null===(n=this._sliderTooltip)||void 0===n||n.option("visible",e.enabled)},_optionChanged:function(t){var{name:n,value:e}=t;switch(n){case"value":var i;null===(i=this._sliderTooltip)||void 0===i||i.option("value",e),this.setAria("valuenow",e);break;case"tooltip":this._updateTooltipOptions(t);break;default:this.callBase(t)}},updateTooltipPosition:function(){var t;null===(t=this._sliderTooltip)||void 0===t||t.updatePosition()},repaint:function(){var t;null===(t=this._sliderTooltip)||void 0===t||t.repaint()}});const yf=nun;var JNe="dx-slider-label",zJ="dx-slider-label-position-",QNe="dx-slider-tooltip-position-",e9e="Validation",t9e=A2e.inherit({_activeStateUnit:".dx-slider-handle",_supportedKeys:function(){var t=this.option("rtlEnabled"),n=(r,o)=>{r=this._valueStep(r);var a=this.option("step"),s=this.option("value"),u=function Ytt(t,n,e){if(n===parseInt(n))return t%n;var i=cP(t/n,e);return(i-parseInt(i))*n}(s-this.option("min"),a,this._getValueExponentLength()),f=o?s-r+(u?a-u:0):s+r-u,S=this.option("min"),T=this.option("max");return f<S?f=S:f>T&&(f=T),this._roundToExponentLength(f)},e=r=>{this.option("value",n(r,t))},i=r=>{this.option("value",n(r,!t))};return se(this.callBase(),{leftArrow:function(r){this._processKeyboardEvent(r),i(this.option("step"))},rightArrow:function(r){this._processKeyboardEvent(r),e(this.option("step"))},pageUp:function(r){this._processKeyboardEvent(r),e(this.option("step")*this.option("keyStep"))},pageDown:function(r){this._processKeyboardEvent(r),i(this.option("step")*this.option("keyStep"))},home:function(r){this._processKeyboardEvent(r);var o=this.option("min");this.option("value",o)},end:function(r){this._processKeyboardEvent(r);var o=this.option("max");this.option("value",o)}})},_processKeyboardEvent:function(t){t.preventDefault(),t.stopPropagation(),this._saveValueChangeEvent(t)},_getDefaultOptions:function(){return se(this.callBase(),{value:50,hoverStateEnabled:!0,activeStateEnabled:!0,step:1,showRange:!0,tooltip:{enabled:!1,format:function(t){return t},position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:function(t){return t}},keyStep:1,useInkRipple:!1,validationMessageOffset:io()?{h:18,v:0}:{h:7,v:4},focusStateEnabled:!0,valueChangeMode:"onHandleMove"})},_toggleValidationMessage:function(t){this.option("isValid")||this.$element().toggleClass("dx-invalid-message-visible",t)},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return io(lu())},options:{useInkRipple:!0}}])},_initMarkup:function(){this.$element().addClass("dx-slider"),this._renderSubmitElement(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._renderLabels(),this._renderStartHandler(),this._renderAriaMinAndMax()},_attachFocusEvents:function(){this.callBase();var t=this.NAME+e9e,n=kt("focusin",t),e=kt("focusout",t),i=this._focusTarget();Se.on(i,n,this._toggleValidationMessage.bind(this,!0)),Se.on(i,e,this._toggleValidationMessage.bind(this,!1))},_detachFocusEvents:function(){this.callBase();var t=this._focusTarget();this._toggleValidationMessage(!1),Se.off(t,this.NAME+e9e)},_render:function(){this.callBase(),this._repaintHandle()},_renderSubmitElement:function(){this._$submitElement=U("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=_T({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_renderInkWave:function(t,n,e,i){if(this._inkRipple){var r={element:t,event:n,wave:i};e?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},_visibilityChanged:function(){this.repaint()},_renderWrapper:function(){this.callBase(),this._$wrapper.addClass("dx-slider-wrapper"),this._createComponent(this._$wrapper,oS,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._itemWidthFunc.bind(this)})},_renderContainer:function(){this.callBase(),this._$bar.addClass("dx-slider-bar")},_renderRange:function(){this.callBase(),this._$range.addClass("dx-slider-range"),this._renderHandle(),this._renderRangeVisibility()},_renderRangeVisibility:function(){this._$range.toggleClass("dx-slider-range-visible",Boolean(this.option("showRange")))},_renderHandle:function(){this._$handle=this._renderHandleImpl(this.option("value"),this._$handle)},_renderHandleImpl:function(t,n){var e=n||U("<div>").appendTo(this._$range),i=this.option("tooltip");return this.$element().toggleClass(QNe+"bottom",i.enabled&&"bottom"===i.position).toggleClass(QNe+"top",i.enabled&&"top"===i.position),this._createComponent(e,yf,{value:t,tooltip:i}),e},_renderAriaMinAndMax:function(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_toggleActiveState:function(t,n){this.callBase(t,n),this._renderInkWave(t,null,!!n,1)},_toggleFocusClass:function(t,n){if(this.callBase(t,n),!this._disposed){var e=U(n||this._focusTarget());this._renderInkWave(e,null,t,0)}},_renderLabels:function(){if(this.$element().removeClass(zJ+"bottom").removeClass(zJ+"top"),this.option("label.visible")){var t=this.option("min"),n=this.option("max"),e=this.option("label.position"),i=this.option("label.format");this._$minLabel||(this._$minLabel=U("<div>").addClass(JNe).appendTo(this._$wrapper)),this._$minLabel.text(Gr.format(t,i)),this._$maxLabel||(this._$maxLabel=U("<div>").addClass(JNe).appendTo(this._$wrapper)),this._$maxLabel.text(Gr.format(n,i)),this.$element().addClass(zJ+e)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderStartHandler:function(){var t=kt(qn.down,this.NAME),n=kt(Vi,this.NAME),e=this._createAction(this._startHandler.bind(this)),i=this.$element();Se.off(i,t),Se.on(i,t,r=>{pp(r)&&e({event:r})}),Se.off(i,n),Se.on(i,n,r=>{var o=this._activeHandle();o&&(Se.trigger(o,"focusin"),Se.trigger(o,"focus")),e({event:r}),"onHandleRelease"===this.option("valueChangeMode")&&(this.option("value",this._getActualValue()),this._actualValue=void 0)})},_itemWidthFunc:function(){return this._itemWidthRatio},_swipeStartHandler:function(t){var n=this.option("rtlEnabled");ym(t.event)&&this._createAction(this._startHandler.bind(this))({event:t.event}),this._feedbackDeferred=new et,iG(this._feedbackDeferred),this._toggleActiveState(this._activeHandle(),this.option("activeStateEnabled")),this._startOffset=this._currentRatio;var e=this._startOffset*this._swipePixelRatio(),i=(1-this._startOffset)*this._swipePixelRatio();t.event.maxLeftOffset=n?i:e,t.event.maxRightOffset=n?e:i,this._itemWidthRatio=wn(this.$element())/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler:function(t){if(!this._isSingleValuePossible()){this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);var n=this.option("rtlEnabled")?-1:1,e=this._startOffset+n*t.event.targetOffset/this._swipePixelRatio();delete this._needPreventAnimation,this._saveValueChangeEvent(t.event),this._changeValueOnSwipe(e),"onHandleRelease"===this.option("valueChangeMode")&&this.option("value",this._getActualValue()),this._actualValue=void 0,delete this._startOffset,this._renderValue()}},_activeHandle:function(){return this._$handle},_swipeUpdateHandler:function(t){this._isSingleValuePossible()||(this._saveValueChangeEvent(t.event),this._updateHandlePosition(t))},_updateHandlePosition:function(t){var n=this.option("rtlEnabled")?-1:1,e=Math.min(this._startOffset+n*t.event.offset/this._swipePixelRatio(),1);oa(this._$range,100*e+"%"),yf.getInstance(this._activeHandle()),this._changeValueOnSwipe(e)},_swipePixelRatio:function(){var t=this.option("min");return(this.option("max")-t)/this._valueStep(this.option("step"))},_valueStep:function(t){return(!t||isNaN(t))&&(t=1),t},_getValueExponentLength:function(){var{step:t,min:n}=this.option();return Math.max(vde(t),vde(n))},_roundToExponentLength:function(t){return cP(t,this._getValueExponentLength())},_changeValueOnSwipe:function(t){var n=this.option("min"),e=this.option("max"),i=this._valueStep(this.option("step")),o=n+t*(e-n);if(!(i<0))if(o===e||o===n)this._setValueOnSwipe(o);else{var a=Math.round((o-n)/i);o=this._roundToExponentLength(a*i+n),this._setValueOnSwipe(Math.max(Math.min(o,e),n))}},_setValueOnSwipe:function(t){this._actualValue=t,"onHandleRelease"===this.option("valueChangeMode")?yf.getInstance(this._activeHandle()).option("value",t):(this.option("value",t),this._saveValueChangeEvent(void 0))},_getActualValue:function(){var t;return null!==(t=this._actualValue)&&void 0!==t?t:this.option("value")},_isSingleValuePossible:function(){var{min:t,max:n}=this.option();return t===n},_startHandler:function(t){if(!this._isSingleValuePossible()){var n=t.event;this._currentRatio=(Po(n).x-this._$bar.offset().left)/wn(this._$bar),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(n),this._changeValueOnSwipe(this._currentRatio)}},_renderValue:function(){this.callBase();var t=this._getActualValue();this._getSubmitElement().val(uP(t)),yf.getInstance(this._activeHandle()).option("value",t)},_setRangeStyles:function(t){t&&this._$range.css(t)},_callHandlerMethod:function(t,n){yf.getInstance(this._$handle)[t](n)},_repaintHandle:function(){this._callHandlerMethod("repaint")},_fitTooltip:function(){this._callHandlerMethod("updateTooltipPosition")},_optionChanged:function(t){switch(t.name){case"visible":this.callBase(t),this._renderHandle(),this._repaintHandle();break;case"min":case"max":this._renderValue(),this.callBase(t),this._renderLabels(),this._renderAriaMinAndMax(),this._fitTooltip();break;case"step":this._renderValue();break;case"keyStep":case"valueChangeMode":break;case"showRange":this._renderRangeVisibility();break;case"tooltip":this._renderHandle();break;case"label":this._renderLabels();break;case"useInkRipple":this._invalidate();break;default:this.callBase(t)}},_refresh:function(){this._toggleRTLDirection(this.option("rtlEnabled")),this._renderDimensions(),this._renderValue(),this._renderHandle(),this._repaintHandle()},_clean:function(){delete this._inkRipple,delete this._actualValue,this.callBase()}});On("dxSlider",t9e);const n9e=t9e;var UJ="dx-rangeslider",V8=UJ+"-start-handle",dun=UJ+"-end-handle",i9e=n9e.inherit({_supportedKeys:function(){var t=this.option("rtlEnabled"),n=this,e=function(a,s){n.option("start")===n.option("end")&&(n._capturedHandle=s,a.target=n._capturedHandle,Se.trigger(n._capturedHandle,"focus"))},i=function(a,s,l){var f=U(a.target).hasClass(V8)?"start":"end",S=n.option(f);s=n._valueStep(s),n.option(f,S+=l*(t?-s:s))},r=function(a,s){e(a,t?n._$handleStart:n._$handleEnd),i(a,s,1)},o=function(a,s){e(a,t?n._$handleEnd:n._$handleStart),i(a,s,-1)};return se(this.callBase(),{leftArrow:function(a){this._processKeyboardEvent(a),o(a,this.option("step"))},rightArrow:function(a){this._processKeyboardEvent(a),r(a,this.option("step"))},pageUp:function(a){this._processKeyboardEvent(a),r(a,this.option("step")*this.option("keyStep"))},pageDown:function(a){this._processKeyboardEvent(a),o(a,this.option("step")*this.option("keyStep"))},home:function(a){this._processKeyboardEvent(a);var s=U(a.target).hasClass(V8),l=s?"start":"end",f=this.option(s?"min":"start");this.option(l,f)},end:function(a){this._processKeyboardEvent(a);var s=U(a.target).hasClass(V8),l=s?"start":"end",f=this.option(s?"end":"max");this.option(l,f)}})},_getDefaultOptions:function(){return se(this.callBase(),{start:40,end:60,value:[40,60],startName:"",endName:""})},_renderSubmitElement:function(){var t=this.$element();this._$submitStartElement=U("<input>").attr("type","hidden").attr("name",this.option("startName")).appendTo(t),this._$submitEndElement=U("<input>").attr("type","hidden").attr("name",this.option("endName")).appendTo(t)},_initOptions:function(t){this.callBase(t);var n=this.initialOption("value"),e=this.option("value");e[0]===n[0]&&e[1]===n[1]?this.option("value",[this.option("start"),this.option("end")]):this.option({start:e[0],end:e[1]})},_initMarkup:function(){this.$element().addClass(UJ),this.callBase()},_renderContentImpl:function(){this._callHandlerMethod("repaint"),this.callBase()},_renderHandle:function(){this._$handleStart=this._renderHandleImpl(this.option("start"),this._$handleStart).addClass(V8),this._$handleEnd=this._renderHandleImpl(this.option("end"),this._$handleEnd).addClass(dun),this._updateHandleAriaLabels()},_startHandler:function(t){var n=t.event,e=this._$range,i=wn(e),r=Po(n).x-this._$bar.offset().left,o=e.position().left,a=e.position().left+i,s=this.option("rtlEnabled");this._capturedHandle=(s?-1:1)*((o+a)/2-r)>0?this._$handleStart:this._$handleEnd,this.callBase(t)},_updateHandleAriaLabels:function(){this.setAria("label",ye.getFormatter("dxRangeSlider-ariaFrom")(this.option("dxRangeSlider-ariaFrom")),this._$handleStart),this.setAria("label",ye.getFormatter("dxRangeSlider-ariaTill")(this.option("dxRangeSlider-ariaTill")),this._$handleEnd)},_activeHandle:function(){return this._capturedHandle},_updateHandlePosition:function(t){var e=this.option("rtlEnabled")?-1:1,i=this.option("max"),r=this.option("min"),o=this._startOffset+e*t.event.offset/this._swipePixelRatio(),a=(o=o.toPrecision(12))*(i-r)+r;this._updateSelectedRangePosition(o,o),yf.getInstance(this._activeHandle()),this._changeValueOnSwipe(o);var u,[s,l]=this._getActualValue();s===l&&(Se.trigger(u=a<s?this._$handleStart:this._$handleEnd,"focus"),u&&u!==this._capturedHandle&&(this._updateSelectedRangePosition((s-r)/(i-r),(l-r)/(i-r)),this._toggleActiveState(this._activeHandle(),!1),this._toggleActiveState(u,!0),this._capturedHandle=u),this._updateSelectedRangePosition(o,o),this._changeValueOnSwipe(o))},_updateSelectedRangePosition:function(t,n){var e=this.option("rtlEnabled"),i=this._capturedHandle===this._$handleStart&&e||this._capturedHandle===this._$handleEnd&&!e;this._$range.css(i?"right":"left",e^i?100-100*n+"%":100*t+"%")},_setValueOnSwipe:function(t){var n=this._capturedHandle===this._$handleStart?"start":"end",[e,i]=this._getActualValue(),r=this.option("max"),o=this.option("min");e=Math.min(Math.max(e,o),r),i=Math.min(Math.max(i,o),r),"start"===n?e=t>i?i:t:i=t<e?e:t,"onHandleMove"===this.option("valueChangeMode")?this.option("value",[e,i]):(this._actualValue=[e,i],this._renderValue())},_renderValue:function(){var[t,n]=this._getActualValue(),e=this.option("min"),i=this.option("max"),r=this.option("rtlEnabled");t=Math.max(e,Math.min(t,i)),n=Math.max(t,Math.min(n,i)),"onHandleMove"===this.option("valueChangeMode")&&(this._setOptionWithoutOptionChange("start",t),this._setOptionWithoutOptionChange("end",n),this._setOptionWithoutOptionChange("value",[t,n])),this._$submitStartElement.val(uP(t)),this._$submitEndElement.val(uP(n));var a=i===e?0:(n-e)/(i-e),s=parseFloat((100*(i===e?0:(t-e)/(i-e))).toPrecision(12))+"%",l=parseFloat((100*(1-a)).toPrecision(12))+"%";!this._needPreventAnimation&&this._setRangeStyles({right:r?s:l,left:r?l:s}),yf.getInstance(this._$handleStart).option("value",t),yf.getInstance(this._$handleEnd).option("value",n)},_callHandlerMethod:function(t,n){yf.getInstance(this._$handleStart)[t](n),yf.getInstance(this._$handleEnd)[t](n)},_setValueOption:function(){var t=this.option("start"),n=this.option("end");this.option("value",[t,n])},_optionChanged:function(t){switch(t.name){case"value":if(t.value[0]===t.previousValue[0]&&t.value[1]===t.previousValue[1])break;this._setOptionWithoutOptionChange("start",t.value[0]),this._setOptionWithoutOptionChange("end",t.value[1]),this._renderValue();var n=this.option("start"),e=this.option("end");this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})({start:n,end:e,value:[n,e],event:this._valueChangeEventInstance,previousValue:t.previousValue}),this.validationRequest.fire({value:[n,e],editor:this}),this._saveValueChangeEvent(void 0);break;case"start":case"end":this._setValueOption();break;case"startName":this._$submitStartElement.attr("name",t.value);break;case"endName":this._$submitEndElement.attr("name",t.value);break;case"name":break;default:this.callBase(t)}}});On("dxRangeSlider",i9e);const cun=i9e,hun={provide:Fo,useExisting:At(()=>pun),multi:!0};let pun=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"endChange"},{emit:"endNameChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"keyStepChange"},{emit:"labelChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showRangeChange"},{emit:"startChange"},{emit:"startNameChange"},{emit:"stepChange"},{emit:"tabIndexChange"},{emit:"tooltipChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeModeChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get end(){return this._getOption("end")}set end(e){this._setOption("end",e)}get endName(){return this._getOption("endName")}set endName(e){this._setOption("endName",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get keyStep(){return this._getOption("keyStep")}set keyStep(e){this._setOption("keyStep",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showRange(){return this._getOption("showRange")}set showRange(e){this._setOption("showRange",e)}get start(){return this._getOption("start")}set start(e){this._setOption("start",e)}get startName(){return this._getOption("startName")}set startName(e){this._setOption("startName",e)}get step(){return this._getOption("step")}set step(e){this._setOption("step",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get tooltip(){return this._getOption("tooltip")}set tooltip(e){this._setOption("tooltip",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeMode(){return this._getOption("valueChangeMode")}set valueChangeMode(e){this._setOption("valueChangeMode",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new cun(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e),this.setupChanges("value",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-range-slider"]],hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",end:"end",endName:"endName",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",keyStep:"keyStep",label:"label",max:"max",min:"min",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showRange:"showRange",start:"start",startName:"startName",step:"step",tabIndex:"tabIndex",tooltip:"tooltip",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeMode:"valueChangeMode",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",endChange:"endChange",endNameChange:"endNameChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",keyStepChange:"keyStepChange",labelChange:"labelChange",maxChange:"maxChange",minChange:"minChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showRangeChange:"showRangeChange",startChange:"startChange",startNameChange:"startNameChange",stepChange:"stepChange",tabIndexChange:"tabIndexChange",tooltipChange:"tooltipChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeModeChange:"valueChangeModeChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,hun,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),r9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Lo,$r,$o,bi,tn,mi],Lo,$r,$o,tn]}),t})();var WJ=["MO","TU","WE","TH","FR","SA","SU"],Rd=function(){function t(n,e){if(0===e)throw new Error("Can't create weekday with n == 0");this.weekday=n,this.n=e}return t.fromStr=function(n){return new t(WJ.indexOf(n))},t.prototype.nth=function(n){return this.n===n?this:new t(this.weekday,n)},t.prototype.equals=function(n){return this.weekday===n.weekday&&this.n===n.n},t.prototype.toString=function(){var n=WJ[this.weekday];return this.n&&(n=(this.n>0?"+":"")+String(this.n)+n),n},t.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},t}(),qs=function(t){return null!=t},Cf=function(t){return"number"==typeof t},o9e=function(t){return"string"==typeof t&&WJ.includes(t)},$c=Array.isArray,bf=function(t,n){void 0===n&&(n=t),1===arguments.length&&(n=t,t=0);for(var e=[],i=t;i<n;i++)e.push(i);return e},Vo=function(t,n){var e=0,i=[];if($c(t))for(;e<n;e++)i[e]=[].concat(t);else for(;e<n;e++)i[e]=t;return i},gun=function(t){return $c(t)?t:[t]};function rD(t,n,e){void 0===e&&(e=" ");var i=String(t);return i.length>(n>>=0)?String(i):((n-=i.length)>e.length&&(e+=Vo(e,n/e.length)),e.slice(0,n)+String(i))}var qh=function(t,n){var e=t%n;return e*n<0?e+n:e},GJ=function(t,n){return{div:Math.floor(t/n),mod:qh(t,n)}},xf=function(t){return!qs(t)||0===t.length},Gl=function(t){return!xf(t)},ya=function(t,n){return Gl(t)&&-1!==t.indexOf(n)},Fb=function(t,n,e,i,r,o){return void 0===i&&(i=0),void 0===r&&(r=0),void 0===o&&(o=0),new Date(Date.UTC(t,n-1,e,i,r,o))},mun=[31,28,31,30,31,30,31,31,30,31,30,31],s9e=Fb(1970,1,1),_un=[6,0,1,2,3,4,5],SM=function(t){return t%4==0&&t%100!=0||t%400==0},l9e=function(t){return t instanceof Date},DM=function(t){return l9e(t)&&!isNaN(t.getTime())},u9e=function(t){return 60*t.getTimezoneOffset()*1e3},KJ=function(t){return function(t,n){var e=t.getTime()-u9e(t),i=n.getTime()-u9e(n);return Math.round((e-i)/864e5)}(t,s9e)},d9e=function(t){return new Date(s9e.getTime()+864e5*t)},yun=function(t){var n=t.getUTCMonth();return 1===n&&SM(t.getUTCFullYear())?29:mun[n]},oD=function(t){return _un[t.getUTCDay()]},c9e=function(t,n){var e=Fb(t,n+1,1);return[oD(e),yun(e)]},h9e=function(t,n){return n=n||t,new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()))},$J=function(t){return new Date(t.getTime())},p9e=function(t){for(var n=[],e=0;e<t.length;e++)n.push($J(t[e]));return n},EM=function(t){t.sort(function(n,e){return n.getTime()-e.getTime()})},qJ=function(t,n){void 0===n&&(n=!0);var e=new Date(t);return[rD(e.getUTCFullYear().toString(),4,"0"),rD(e.getUTCMonth()+1,2,"0"),rD(e.getUTCDate(),2,"0"),"T",rD(e.getUTCHours(),2,"0"),rD(e.getUTCMinutes(),2,"0"),rD(e.getUTCSeconds(),2,"0"),n?"Z":""].join("")},YJ=function(t){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(t);if(!e)throw new Error("Invalid UNTIL value: ".concat(t));return new Date(Date.UTC(parseInt(e[1],10),parseInt(e[2],10)-1,parseInt(e[3],10),parseInt(e[5],10)||0,parseInt(e[6],10)||0,parseInt(e[7],10)||0))},g9e=function(t,n){return t.toLocaleString("sv-SE",{timeZone:n}).replace(" ","T")+"Z"},bun=function(){function t(n,e){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=n,this.args=e,"between"===n?(this.maxDate=e.inc?e.before:new Date(e.before.getTime()-1),this.minDate=e.inc?e.after:new Date(e.after.getTime()+1)):"before"===n?this.maxDate=e.inc?e.dt:new Date(e.dt.getTime()-1):"after"===n&&(this.minDate=e.inc?e.dt:new Date(e.dt.getTime()+1))}return t.prototype.accept=function(n){++this.total;var e=this.minDate&&n<this.minDate,i=this.maxDate&&n>this.maxDate;if("between"===this.method){if(e)return!0;if(i)return!1}else if("before"===this.method){if(i)return!1}else if("after"===this.method)return!!e||(this.add(n),!1);return this.add(n)},t.prototype.add=function(n){return this._result.push(n),!0},t.prototype.getValue=function(){var n=this._result;switch(this.method){case"all":case"between":return n;default:return n.length?n[n.length-1]:null}},t.prototype.clone=function(){return new t(this.method,this.args)},t}();const aD=bun;var ZJ=function(t,n){return ZJ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},ZJ(t,n)};function Pv(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}ZJ(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var Qo=function(){return Qo=Object.assign||function(n){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},Qo.apply(this,arguments)};function _i(t,n,e){if(e||2===arguments.length)for(var o,i=0,r=n.length;i<r;i++)(o||!(i in n))&&(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return t.concat(o||Array.prototype.slice.call(n))}var Sun=function(t){function n(e,i,r){var o=t.call(this,e,i)||this;return o.iterator=r,o}return Pv(n,t),n.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},n}(aD);const _9e=Sun,z8={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}};var v9e=function(t,n){return-1!==t.indexOf(n)},Eun=function(t){return t.toString()},Oun=function(t,n,e){return"".concat(n," ").concat(e,", ").concat(t)},Tun=function(){function t(n,e,i,r){if(void 0===e&&(e=Eun),void 0===i&&(i=z8),void 0===r&&(r=Oun),this.text=[],this.language=i||z8,this.gettext=e,this.dateFormatter=r,this.rrule=n,this.options=n.options,this.origOptions=n.origOptions,this.origOptions.bymonthday){var o=[].concat(this.options.bymonthday),a=[].concat(this.options.bynmonthday);o.sort(function(f,S){return f-S}),a.sort(function(f,S){return S-f}),this.bymonthday=o.concat(a),this.bymonthday.length||(this.bymonthday=null)}if(qs(this.origOptions.byweekday)){var s=$c(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],l=String(s);this.byweekday={allWeeks:s.filter(function(f){return!f.n}),someWeeks:s.filter(function(f){return Boolean(f.n)}),isWeekdays:-1!==l.indexOf("MO")&&-1!==l.indexOf("TU")&&-1!==l.indexOf("WE")&&-1!==l.indexOf("TH")&&-1!==l.indexOf("FR")&&-1===l.indexOf("SA")&&-1===l.indexOf("SU"),isEveryDay:-1!==l.indexOf("MO")&&-1!==l.indexOf("TU")&&-1!==l.indexOf("WE")&&-1!==l.indexOf("TH")&&-1!==l.indexOf("FR")&&-1!==l.indexOf("SA")&&-1!==l.indexOf("SU")};var u=function(f,S){return f.weekday-S.weekday};this.byweekday.allWeeks.sort(u),this.byweekday.someWeeks.sort(u),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return t.isFullyConvertible=function(n){if(!(n.options.freq in t.IMPLEMENTED)||n.origOptions.until&&n.origOptions.count)return!1;for(var i in n.origOptions){if(v9e(["dtstart","wkst","freq"],i))return!0;if(!v9e(t.IMPLEMENTED[n.options.freq],i))return!1}return!0},t.prototype.isFullyConvertible=function(){return t.isFullyConvertible(this.rrule)},t.prototype.toString=function(){var n=this.gettext;if(!(this.options.freq in t.IMPLEMENTED))return n("RRule error: Unable to fully convert this rrule to text");if(this.text=[n("every")],this[fr.FREQUENCIES[this.options.freq]](),this.options.until){this.add(n("until"));var e=this.options.until;this.add(this.dateFormatter(e.getUTCFullYear(),this.language.monthNames[e.getUTCMonth()],e.getUTCDate()))}else this.options.count&&this.add(n("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?n("times"):n("time"));return this.isFullyConvertible()||this.add(n("(~ approximate)")),this.text.join("")},t.prototype.HOURLY=function(){var n=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?n("hours"):n("hour"))},t.prototype.MINUTELY=function(){var n=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?n("minutes"):n("minute"))},t.prototype.DAILY=function(){var n=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.byweekday&&this.byweekday.isWeekdays?this.plural(this.options.interval)?n("weekdays"):n("weekday"):this.plural(this.options.interval)?n("days"):n("day")),this.origOptions.bymonth&&(this.add(n("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},t.prototype.WEEKLY=function(){var n=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?n("weeks"):n("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?n("weekdays"):n("weekday")):this.add(n("on")).add(n("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?n("days"):n("day")):(1===this.options.interval&&this.add(n("week")),this.origOptions.bymonth&&(this.add(n("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},t.prototype.MONTHLY=function(){var n=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(n("months")),this.plural(this.options.interval)&&this.add(n("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?n("months"):n("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(n("on")).add(n("weekdays")):this.byweekday&&this._byweekday()},t.prototype.YEARLY=function(){var n=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(n("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?n("years"):n("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(n("on the")).add(this.list(this.options.byyearday,this.nth,n("and"))).add(n("day")),this.options.byweekno&&this.add(n("in")).add(this.plural(this.options.byweekno.length)?n("weeks"):n("week")).add(this.list(this.options.byweekno,void 0,n("and")))},t.prototype._bymonthday=function(){var n=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(n("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,n("or"))).add(n("the")).add(this.list(this.bymonthday,this.nth,n("or"))):this.add(n("on the")).add(this.list(this.bymonthday,this.nth,n("and")))},t.prototype._byweekday=function(){var n=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(n("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(n("and")),this.add(n("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,n("and"))))},t.prototype._byhour=function(){var n=this.gettext;this.add(n("at")).add(this.list(this.origOptions.byhour,void 0,n("and")))},t.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},t.prototype.nth=function(n){n=parseInt(n.toString(),10);var e,i=this.gettext;if(-1===n)return i("last");var r=Math.abs(n);switch(r){case 1:case 21:case 31:e=r+i("st");break;case 2:case 22:e=r+i("nd");break;case 3:case 23:e=r+i("rd");break;default:e=r+i("th")}return n<0?e+" "+i("last"):e},t.prototype.monthtext=function(n){return this.language.monthNames[n-1]},t.prototype.weekdaytext=function(n){var e=Cf(n)?(n+1)%7:n.getJsWeekday();return(n.n?this.nth(n.n)+" ":"")+this.language.dayNames[e]},t.prototype.plural=function(n){return n%100!=1},t.prototype.add=function(n){return this.text.push(" "),this.text.push(n),this},t.prototype.list=function(n,e,i,r){var o=this;void 0===r&&(r=","),$c(n)||(n=[n]),e=e||function(l){return l.toString()};var s=function(l){return e&&e.call(o,l)};return i?function(l,u,f){for(var S="",T=0;T<l.length;T++)0!==T&&(S+=T===l.length-1?" "+f+" ":u+" "),S+=l[T];return S}(n.map(s),r,i):n.map(s).join(r+" ")},t}();const u0=Tun;var Iun=function(){function t(n){this.done=!0,this.rules=n}return t.prototype.start=function(n){return this.text=n,this.done=!1,this.nextSymbol()},t.prototype.isDone=function(){return this.done&&null===this.symbol},t.prototype.nextSymbol=function(){var n,e;this.symbol=null,this.value=null;do{if(this.done)return!1;for(var r in n=null,this.rules){var o=this.rules[r].exec(this.text);o&&(null===n||o[0].length>n[0].length)&&(n=o,e=r)}if(null!=n&&(this.text=this.text.substr(n[0].length),""===this.text&&(this.done=!0)),null==n)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===e);return this.symbol=e,this.value=n,!0},t.prototype.accept=function(n){if(this.symbol===n){if(this.value){var e=this.value;return this.nextSymbol(),e}return this.nextSymbol(),!0}return!1},t.prototype.acceptNumber=function(){return this.accept("number")},t.prototype.expect=function(n){if(this.accept(n))return!0;throw new Error("expected "+n+" but found "+this.symbol)},t}();function y9e(t,n){void 0===n&&(n=z8);var e={},i=new Iun(n.tokens);return i.start(t)?(function r(){i.expect("every");var T=i.acceptNumber();if(T&&(e.interval=parseInt(T[0],10)),i.isDone())throw new Error("Unexpected end");switch(i.symbol){case"day(s)":e.freq=fr.DAILY,i.nextSymbol()&&(function a(){if(i.accept("at"))do{var R=i.acceptNumber();if(!R)throw new Error("Unexpected symbol "+i.symbol+", expected hour");for(e.byhour=[parseInt(R[0],10)];i.accept("comma");){if(!(R=i.acceptNumber()))throw new Error("Unexpected symbol "+i.symbol+"; expected hour");e.byhour.push(parseInt(R[0],10))}}while(i.accept("comma")||i.accept("at"))}(),S());break;case"weekday(s)":e.freq=fr.WEEKLY,e.byweekday=[fr.MO,fr.TU,fr.WE,fr.TH,fr.FR],i.nextSymbol(),S();break;case"week(s)":e.freq=fr.WEEKLY,i.nextSymbol()&&(o(),S());break;case"hour(s)":e.freq=fr.HOURLY,i.nextSymbol()&&(o(),S());break;case"minute(s)":e.freq=fr.MINUTELY,i.nextSymbol()&&(o(),S());break;case"month(s)":e.freq=fr.MONTHLY,i.nextSymbol()&&(o(),S());break;case"year(s)":e.freq=fr.YEARLY,i.nextSymbol()&&(o(),S());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":e.freq=fr.WEEKLY;var R=i.symbol.substr(0,2).toUpperCase();if(e.byweekday=[fr[R]],!i.nextSymbol())return;for(;i.accept("comma");){if(i.isDone())throw new Error("Unexpected end");var L=l();if(!L)throw new Error("Unexpected symbol "+i.symbol+", expected weekday");e.byweekday.push(fr[L]),i.nextSymbol()}(function f(){i.accept("on"),i.accept("the");var T=u();if(T)for(e.bymonthday=[T],i.nextSymbol();i.accept("comma");){if(!(T=u()))throw new Error("Unexpected symbol "+i.symbol+"; expected monthday");e.bymonthday.push(T),i.nextSymbol()}})(),S();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(e.freq=fr.YEARLY,e.bymonth=[s()],!i.nextSymbol())return;for(;i.accept("comma");){if(i.isDone())throw new Error("Unexpected end");var z=s();if(!z)throw new Error("Unexpected symbol "+i.symbol+", expected month");e.bymonth.push(z),i.nextSymbol()}o(),S();break;default:throw new Error("Unknown symbol")}}(),e):null;function o(){var T=i.accept("on"),R=i.accept("the");if(T||R)do{var L=u(),z=l(),j=s();if(L)z?(i.nextSymbol(),e.byweekday||(e.byweekday=[]),e.byweekday.push(fr[z].nth(L))):(e.bymonthday||(e.bymonthday=[]),e.bymonthday.push(L),i.accept("day(s)"));else if(z)i.nextSymbol(),e.byweekday||(e.byweekday=[]),e.byweekday.push(fr[z]);else if("weekday(s)"===i.symbol)i.nextSymbol(),e.byweekday||(e.byweekday=[fr.MO,fr.TU,fr.WE,fr.TH,fr.FR]);else if("week(s)"===i.symbol){i.nextSymbol();var Y=i.acceptNumber();if(!Y)throw new Error("Unexpected symbol "+i.symbol+", expected week number");for(e.byweekno=[parseInt(Y[0],10)];i.accept("comma");){if(!(Y=i.acceptNumber()))throw new Error("Unexpected symbol "+i.symbol+"; expected monthday");e.byweekno.push(parseInt(Y[0],10))}}else{if(!j)return;i.nextSymbol(),e.bymonth||(e.bymonth=[]),e.bymonth.push(j)}}while(i.accept("comma")||i.accept("the")||i.accept("on"))}function s(){switch(i.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function l(){switch(i.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return i.symbol.substr(0,2).toUpperCase();default:return!1}}function u(){switch(i.symbol){case"last":return i.nextSymbol(),-1;case"first":return i.nextSymbol(),1;case"second":return i.nextSymbol(),i.accept("last")?-2:2;case"third":return i.nextSymbol(),i.accept("last")?-3:3;case"nth":var T=parseInt(i.value[1],10);if(T<-366||T>366)throw new Error("Nth out of range: "+T);return i.nextSymbol(),i.accept("last")?-T:T;default:return!1}}function S(){if("until"===i.symbol){var T=Date.parse(i.text);if(!T)throw new Error("Cannot parse until date:"+i.text);e.until=new Date(T)}else i.accept("for")&&(e.count=parseInt(i.value[0],10),i.expect("number"))}}var Io=(()=>(function(t){t[t.YEARLY=0]="YEARLY",t[t.MONTHLY=1]="MONTHLY",t[t.WEEKLY=2]="WEEKLY",t[t.DAILY=3]="DAILY",t[t.HOURLY=4]="HOURLY",t[t.MINUTELY=5]="MINUTELY",t[t.SECONDLY=6]="SECONDLY"}(Io||(Io={})),Io))();function XJ(t){return t<Io.HOURLY}var sD=["count","until","interval","byweekday","bymonthday","bymonth"];u0.IMPLEMENTED=[],u0.IMPLEMENTED[Io.HOURLY]=sD,u0.IMPLEMENTED[Io.MINUTELY]=sD,u0.IMPLEMENTED[Io.DAILY]=["byhour"].concat(sD),u0.IMPLEMENTED[Io.WEEKLY]=sD,u0.IMPLEMENTED[Io.MONTHLY]=sD,u0.IMPLEMENTED[Io.YEARLY]=["byweekno","byyearday"].concat(sD);var Aun=u0.isFullyConvertible,U8=function(){function t(n,e,i,r){this.hour=n,this.minute=e,this.second=i,this.millisecond=r||0}return t.prototype.getHours=function(){return this.hour},t.prototype.getMinutes=function(){return this.minute},t.prototype.getSeconds=function(){return this.second},t.prototype.getMilliseconds=function(){return this.millisecond},t.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},t}(),Fun=function(t){function n(e,i,r,o,a,s,l){var u=t.call(this,o,a,s,l)||this;return u.year=e,u.month=i,u.day=r,u}return Pv(n,t),n.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},n.prototype.getWeekday=function(){return oD(new Date(this.getTime()))},n.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},n.prototype.getDay=function(){return this.day},n.prototype.getMonth=function(){return this.month},n.prototype.getYear=function(){return this.year},n.prototype.addYears=function(e){this.year+=e},n.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var i=Math.floor(this.month/12),r=qh(this.month,12);this.month=r,this.year+=i,0===this.month&&(this.month=12,--this.year)}},n.prototype.addWeekly=function(e,i){i>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-i))+7*e:this.day+=-(this.getWeekday()-i)+7*e,this.fixDay()},n.prototype.addDaily=function(e){this.day+=e,this.fixDay()},n.prototype.addHours=function(e,i,r){for(i&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var o=GJ(this.hour,24),a=o.div;if(a&&(this.hour=o.mod,this.addDaily(a)),xf(r)||ya(r,this.hour))break}},n.prototype.addMinutes=function(e,i,r,o){for(i&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var a=GJ(this.minute,60),s=a.div;if(s&&(this.minute=a.mod,this.addHours(s,!1,r)),(xf(r)||ya(r,this.hour))&&(xf(o)||ya(o,this.minute)))break}},n.prototype.addSeconds=function(e,i,r,o,a){for(i&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var s=GJ(this.second,60),l=s.div;if(l&&(this.second=s.mod,this.addMinutes(l,!1,r,o)),(xf(r)||ya(r,this.hour))&&(xf(o)||ya(o,this.minute))&&(xf(a)||ya(a,this.second)))break}},n.prototype.fixDay=function(){if(!(this.day<=28)){var e=c9e(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>9999))return;e=c9e(this.year,this.month-1)[1]}}},n.prototype.add=function(e,i){var o=e.interval,a=e.wkst,s=e.byhour,l=e.byminute,u=e.bysecond;switch(e.freq){case Io.YEARLY:return this.addYears(o);case Io.MONTHLY:return this.addMonths(o);case Io.WEEKLY:return this.addWeekly(o,a);case Io.DAILY:return this.addDaily(o);case Io.HOURLY:return this.addHours(o,i,s);case Io.MINUTELY:return this.addMinutes(o,i,s,l);case Io.SECONDLY:return this.addSeconds(o,i,s,l,u)}},n}(U8);function C9e(t){for(var n=[],i=0,r=Object.keys(t);i<r.length;i++){var o=r[i];ya(ddn,o)||n.push(o),l9e(t[o])&&!DM(t[o])&&n.push(o)}if(n.length)throw new Error("Invalid options: "+n.join(", "));return Qo({},t)}function JJ(t){var n=t.split("\n").map(Lun).filter(function(e){return null!==e});return Qo(Qo({},n[0]),n[1])}function W8(t){var n={},e=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);if(!e)return n;var i=e[1],r=e[2];return i&&(n.tzid=i),n.dtstart=YJ(r),n}function Lun(t){if(!(t=t.replace(/^\s+|\s+$/,"")).length)return null;var n=/^([A-Z]+?)[:;]/.exec(t.toUpperCase());if(!n)return b9e(t);var e=n[1];switch(e.toUpperCase()){case"RRULE":case"EXRULE":return b9e(t);case"DTSTART":return W8(t);default:throw new Error("Unsupported RFC prop ".concat(e," in ").concat(t))}}function b9e(t){var e=W8(t.replace(/^RRULE:/i,""));return t.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach(function(r){var o=r.split("="),a=o[0],s=o[1];switch(a.toUpperCase()){case"FREQ":e.freq=Io[s.toUpperCase()];break;case"WKST":e.wkst=Np[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var l=function Bun(t){return-1!==t.indexOf(",")?t.split(",").map(x9e):x9e(t)}(s),u=a.toLowerCase();e[u]=l;break;case"BYWEEKDAY":case"BYDAY":e.byweekday=function Nun(t){return t.split(",").map(function(e){if(2===e.length)return Np[e];var i=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!i||i.length<3)throw new SyntaxError("Invalid weekday string: ".concat(e));var r=Number(i[1]);return new Rd(Np[i[2]].weekday,r)})}(s);break;case"DTSTART":case"TZID":var f=W8(t);e.tzid=f.tzid,e.dtstart=f.dtstart;break;case"UNTIL":e.until=YJ(s);break;case"BYEASTER":e.byeaster=Number(s);break;default:throw new Error("Unknown RRULE property '"+a+"'")}}),e}function x9e(t){return/^[+-]?\d+$/.test(t)?Number(t):t}var G8=function(){function t(n,e){if(isNaN(n.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=n,this.tzid=e}return Object.defineProperty(t.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var n=qJ(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(n):";TZID=".concat(this.tzid,":").concat(n)},t.prototype.getTime=function(){return this.date.getTime()},t.prototype.rezonedDate=function(){return this.isUTC?this.date:function(t,n){var e=Intl.DateTimeFormat().resolvedOptions().timeZone,i=new Date(g9e(t,e)),o=new Date(g9e(t,n??"UTC")).getTime()-i.getTime();return new Date(t.getTime()-o)}(this.date,this.tzid)},t}();function QJ(t){for(var n=[],e="",i=Object.keys(t),r=Object.keys(eQ),o=0;o<i.length;o++)if("tzid"!==i[o]&&ya(r,i[o])){var a=i[o].toUpperCase(),s=t[i[o]],l="";if(qs(s)&&(!$c(s)||s.length)){switch(a){case"FREQ":l=fr.FREQUENCIES[t.freq];break;case"WKST":l=Cf(s)?new Rd(s).toString():s.toString();break;case"BYWEEKDAY":a="BYDAY",l=gun(s).map(function(R){return R instanceof Rd?R:$c(R)?new Rd(R[0],R[1]):new Rd(R)}).toString();break;case"DTSTART":e=Vun(s,t.tzid);break;case"UNTIL":l=qJ(s,!t.tzid);break;default:if($c(s)){for(var u=[],f=0;f<s.length;f++)u[f]=String(s[f]);l=u.toString()}else l=String(s)}l&&n.push([a,l])}}var S=n.map(function(R){var z=R[1];return"".concat(R[0],"=").concat(z.toString())}).join(";"),T="";return""!==S&&(T="RRULE:".concat(S)),[e,T].filter(function(R){return!!R}).join("\n")}function Vun(t,n){return t?"DTSTART"+new G8(new Date(t),n).toString():""}function Hun(t,n){return Array.isArray(t)?!(!Array.isArray(n)||t.length!==n.length)&&t.every(function(e,i){return e.getTime()===n[i].getTime()}):t instanceof Date?n instanceof Date&&t.getTime()===n.getTime():t===n}var zun=function(){function t(){this.all=!1,this.before=[],this.after=[],this.between=[]}return t.prototype._cacheAdd=function(n,e,i){e&&(e=e instanceof Date?$J(e):p9e(e)),"all"===n?this.all=e:(i._value=e,this[n].push(i))},t.prototype._cacheGet=function(n,e){var i=!1,r=e?Object.keys(e):[],o=function(f){for(var S=0;S<r.length;S++){var T=r[S];if(!Hun(e[T],f[T]))return!0}return!1},a=this[n];if("all"===n)i=this.all;else if($c(a))for(var s=0;s<a.length;s++){var l=a[s];if(!r.length||!o(l)){i=l._value;break}}if(!i&&this.all){var u=new aD(n,e);for(s=0;s<this.all.length&&u.accept(this.all[s]);s++);i=u.getValue(),this._cacheAdd(n,i,e)}return $c(i)?p9e(i):i instanceof Date?$J(i):i},t}(),Uun=_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i([],Vo(1,31),!0),Vo(2,28),!0),Vo(3,31),!0),Vo(4,30),!0),Vo(5,31),!0),Vo(6,30),!0),Vo(7,31),!0),Vo(8,31),!0),Vo(9,30),!0),Vo(10,31),!0),Vo(11,30),!0),Vo(12,31),!0),Vo(1,7),!0),Wun=_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i([],Vo(1,31),!0),Vo(2,29),!0),Vo(3,31),!0),Vo(4,30),!0),Vo(5,31),!0),Vo(6,30),!0),Vo(7,31),!0),Vo(8,31),!0),Vo(9,30),!0),Vo(10,31),!0),Vo(11,30),!0),Vo(12,31),!0),Vo(1,7),!0),Gun=bf(1,29),jun=bf(1,30),Rv=bf(1,31),qu=bf(1,32),Kun=_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i([],qu,!0),jun,!0),qu,!0),Rv,!0),qu,!0),Rv,!0),qu,!0),qu,!0),Rv,!0),qu,!0),Rv,!0),qu,!0),qu.slice(0,7),!0),$un=_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i([],qu,!0),Gun,!0),qu,!0),Rv,!0),qu,!0),Rv,!0),qu,!0),qu,!0),Rv,!0),qu,!0),Rv,!0),qu,!0),qu.slice(0,7),!0),qun=bf(-28,0),Yun=bf(-29,0),Lv=bf(-30,0),Yu=bf(-31,0),Zun=_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i([],Yu,!0),Yun,!0),Yu,!0),Lv,!0),Yu,!0),Lv,!0),Yu,!0),Yu,!0),Lv,!0),Yu,!0),Lv,!0),Yu,!0),Yu.slice(0,7),!0),Xun=_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i(_i([],Yu,!0),qun,!0),Yu,!0),Lv,!0),Yu,!0),Lv,!0),Yu,!0),Yu,!0),Lv,!0),Yu,!0),Lv,!0),Yu,!0),Yu.slice(0,7),!0),Jun=[0,31,60,91,121,152,182,213,244,274,305,335,366],Qun=[0,31,59,90,120,151,181,212,243,273,304,334,365],w9e=function(){for(var t=[],n=0;n<55;n++)t=t.concat(bf(7));return t}();var rdn=function(){function t(n){this.options=n}return t.prototype.rebuild=function(n,e){var i=this.options;if(n!==this.lastyear&&(this.yearinfo=function edn(t,n){var e=Fb(t,1,1),i=SM(t)?366:365,r=SM(t+1)?366:365,o=KJ(e),a=oD(e),s=Qo(Qo({yearlen:i,nextyearlen:r,yearordinal:o,yearweekday:a},function tdn(t){var n=SM(t)?366:365,e=Fb(t,1,1),i=oD(e);return 365===n?{mmask:Uun,mdaymask:$un,nmdaymask:Xun,wdaymask:w9e.slice(i),mrange:Qun}:{mmask:Wun,mdaymask:Kun,nmdaymask:Zun,wdaymask:w9e.slice(i),mrange:Jun}}(t)),{wnomask:null});if(xf(n.byweekno))return s;s.wnomask=Vo(0,i+7);var l,u,f=l=qh(7-a+n.wkst,7);f>=4?(f=0,u=s.yearlen+qh(a-n.wkst,7)):u=i-f;for(var S=Math.floor(u/7),T=qh(u,7),R=Math.floor(S+T/4),L=0;L<n.byweekno.length;L++){var z=n.byweekno[L];if(z<0&&(z+=R+1),z>0&&z<=R){var j=void 0;z>1?(j=f+7*(z-1),f!==l&&(j-=7-l)):j=f;for(var Y=0;Y<7&&(s.wnomask[j]=1,j++,s.wdaymask[j]!==n.wkst);Y++);}}if(ya(n.byweekno,1)&&(j=f+7*R,f!==l&&(j-=7-l),j<i))for(L=0;L<7&&(s.wnomask[j]=1,s.wdaymask[j+=1]!==n.wkst);L++);if(f){var ie=void 0;if(ya(n.byweekno,-1))ie=-1;else{var te=oD(Fb(t-1,1,1)),re=qh(7-te.valueOf()+n.wkst,7),he=SM(t-1)?366:365,fe=void 0;re>=4?(re=0,fe=he+qh(te-n.wkst,7)):fe=i-f,ie=Math.floor(52+qh(fe,7)/4)}if(ya(n.byweekno,ie))for(j=0;j<f;j++)s.wnomask[j]=1}return s}(n,i)),Gl(i.bynweekday)&&(e!==this.lastmonth||n!==this.lastyear)){var r=this.yearinfo;this.monthinfo=function ndn(t,n,e,i,r,o){var a={lastyear:t,lastmonth:n,nwdaymask:[]},s=[];if(o.freq===fr.YEARLY)if(xf(o.bymonth))s=[[0,e]];else for(var l=0;l<o.bymonth.length;l++)s.push(i.slice((n=o.bymonth[l])-1,n+1));else o.freq===fr.MONTHLY&&(s=[i.slice(n-1,n+1)]);if(xf(s))return a;for(a.nwdaymask=Vo(0,e),l=0;l<s.length;l++)for(var u=s[l],f=u[0],S=u[1]-1,T=0;T<o.bynweekday.length;T++){var R=void 0,L=o.bynweekday[T],z=L[0],j=L[1];j<0?(R=S+7*(j+1),R-=qh(r[R]-z,7)):(R=f+7*(j-1),R+=qh(7-r[R]+z,7)),f<=R&&R<=S&&(a.nwdaymask[R]=1)}return a}(n,e,r.yearlen,r.mrange,r.wdaymask,i)}qs(i.byeaster)&&(this.eastermask=function idn(t,n){void 0===n&&(n=0);var e=t%19,i=Math.floor(t/100),r=t%100,o=Math.floor(i/4),a=i%4,s=Math.floor((i+8)/25),l=Math.floor((i-s+1)/3),u=Math.floor(19*e+i-o-l+15)%30,f=Math.floor(r/4),T=Math.floor(32+2*a+2*f-u-r%4)%7,R=Math.floor((e+11*u+22*T)/451),L=Math.floor((u+T-7*R+114)/31),j=Date.UTC(t,L-1,(u+T-7*R+114)%31+1+n),Y=Date.UTC(t,0,1);return[Math.ceil((j-Y)/864e5)]}(n,i.byeaster))},Object.defineProperty(t.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),t.prototype.ydayset=function(){return[bf(this.yearlen),0,this.yearlen]},t.prototype.mdayset=function(n,e){for(var i=this.mrange[e-1],r=this.mrange[e],o=Vo(null,this.yearlen),a=i;a<r;a++)o[a]=a;return[o,i,r]},t.prototype.wdayset=function(n,e,i){for(var r=Vo(null,this.yearlen+7),o=KJ(Fb(n,e,i))-this.yearordinal,a=o,s=0;s<7&&(r[o]=o,++o,this.wdaymask[o]!==this.options.wkst);s++);return[r,a,o]},t.prototype.ddayset=function(n,e,i){var r=Vo(null,this.yearlen),o=KJ(Fb(n,e,i))-this.yearordinal;return r[o]=o,[r,o,o+1]},t.prototype.htimeset=function(n,e,i,r){var o=this,a=[];return this.options.byminute.forEach(function(s){a=a.concat(o.mtimeset(n,s,i,r))}),EM(a),a},t.prototype.mtimeset=function(n,e,i,r){var o=this.options.bysecond.map(function(a){return new U8(n,e,a,r)});return EM(o),o},t.prototype.stimeset=function(n,e,i,r){return[new U8(n,e,i,r)]},t.prototype.getdayset=function(n){switch(n){case Io.YEARLY:return this.ydayset.bind(this);case Io.MONTHLY:return this.mdayset.bind(this);case Io.WEEKLY:return this.wdayset.bind(this);default:return this.ddayset.bind(this)}},t.prototype.gettimeset=function(n){switch(n){case Io.HOURLY:return this.htimeset.bind(this);case Io.MINUTELY:return this.mtimeset.bind(this);case Io.SECONDLY:return this.stimeset.bind(this)}},t}();const odn=rdn;function adn(t,n,e,i,r,o){for(var a=[],s=0;s<t.length;s++){var l=void 0,u=void 0,f=t[s];f<0?(l=Math.floor(f/n.length),u=qh(f,n.length)):(l=Math.floor((f-1)/n.length),u=qh(f-1,n.length));for(var S=[],T=e;T<i;T++){var R=o[T];qs(R)&&S.push(R)}var L;L=l<0?S.slice(l)[0]:S[l];var z=n[u],j=d9e(r.yearordinal+L),Y=h9e(j,z);ya(a,Y)||a.push(Y)}return EM(a),a}function S9e(t,n){var e=n.dtstart,i=n.freq,o=n.until,a=n.bysetpos,s=n.count;if(0===s||0===n.interval)return d0(t);var l=Fun.fromDate(e),u=new odn(n);u.rebuild(l.year,l.month);for(var f=function udn(t,n,e){var i=e.freq,r=e.byhour,o=e.byminute,a=e.bysecond;return XJ(i)?function Run(t){var n=t.dtstart.getTime()%1e3;if(!XJ(t.freq))return[];var e=[];return t.byhour.forEach(function(i){t.byminute.forEach(function(r){t.bysecond.forEach(function(o){e.push(new U8(i,r,o,n))})})}),e}(e):i>=fr.HOURLY&&Gl(r)&&!ya(r,n.hour)||i>=fr.MINUTELY&&Gl(o)&&!ya(o,n.minute)||i>=fr.SECONDLY&&Gl(a)&&!ya(a,n.second)?[]:t.gettimeset(i)(n.hour,n.minute,n.second,n.millisecond)}(u,l,n);;){var S=u.getdayset(i)(l.year,l.month,l.day),T=S[0],R=S[1],L=S[2],z=ldn(T,R,L,u,n);if(Gl(a))for(var j=adn(a,f,R,L,u,T),Y=0;Y<j.length;Y++){var ie=j[Y];if(o&&ie>o)return d0(t);if(ie>=e){var te=D9e(ie,n);if(!t.accept(te)||s&&!--s)return d0(t)}}else for(Y=R;Y<L;Y++){var re=T[Y];if(qs(re))for(var he=d9e(u.yearordinal+re),fe=0;fe<f.length;fe++){if(ie=h9e(he,f[fe]),o&&ie>o)return d0(t);if(ie>=e&&(te=D9e(ie,n),!t.accept(te)||s&&!--s))return d0(t)}}if(0===n.interval||(l.add(n,z),l.year>9999))return d0(t);XJ(i)||(f=u.gettimeset(i)(l.hour,l.minute,l.second,0)),u.rebuild(l.year,l.month)}}function sdn(t,n,e){var i=e.bymonth,r=e.byweekno,o=e.byweekday,a=e.byeaster,s=e.bymonthday,l=e.bynmonthday,u=e.byyearday;return Gl(i)&&!ya(i,t.mmask[n])||Gl(r)&&!t.wnomask[n]||Gl(o)&&!ya(o,t.wdaymask[n])||Gl(t.nwdaymask)&&!t.nwdaymask[n]||null!==a&&!ya(t.eastermask,n)||(Gl(s)||Gl(l))&&!ya(s,t.mdaymask[n])&&!ya(l,t.nmdaymask[n])||Gl(u)&&(n<t.yearlen&&!ya(u,n+1)&&!ya(u,-t.yearlen+n)||n>=t.yearlen&&!ya(u,n+1-t.yearlen)&&!ya(u,-t.nextyearlen+n-t.yearlen))}function D9e(t,n){return new G8(t,n.tzid).rezonedDate()}function d0(t){return t.getValue()}function ldn(t,n,e,i,r){for(var o=!1,a=n;a<e;a++){var s=t[a];(o=sdn(i,s,r))&&(t[s]=null)}return o}var Np={MO:new Rd(0),TU:new Rd(1),WE:new Rd(2),TH:new Rd(3),FR:new Rd(4),SA:new Rd(5),SU:new Rd(6)},eQ={freq:Io.YEARLY,dtstart:null,interval:1,wkst:Np.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},ddn=Object.keys(eQ),fr=function(){function t(n,e){void 0===n&&(n={}),void 0===e&&(e=!1),this._cache=e?null:new zun,this.origOptions=C9e(n);var i=function Pun(t){var n=Qo(Qo({},eQ),C9e(t));if(qs(n.byeaster)&&(n.freq=fr.YEARLY),!qs(n.freq)||!fr.FREQUENCIES[n.freq])throw new Error("Invalid frequency: ".concat(n.freq," ").concat(t.freq));if(n.dtstart||(n.dtstart=new Date((new Date).setMilliseconds(0))),qs(n.wkst)?Cf(n.wkst)||(n.wkst=n.wkst.weekday):n.wkst=fr.MO.weekday,qs(n.bysetpos)){Cf(n.bysetpos)&&(n.bysetpos=[n.bysetpos]);for(var e=0;e<n.bysetpos.length;e++)if(0===(i=n.bysetpos[e])||!(i>=-366&&i<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}if(!(Boolean(n.byweekno)||Gl(n.byweekno)||Gl(n.byyearday)||Boolean(n.bymonthday)||Gl(n.bymonthday)||qs(n.byweekday)||qs(n.byeaster)))switch(n.freq){case fr.YEARLY:n.bymonth||(n.bymonth=n.dtstart.getUTCMonth()+1),n.bymonthday=n.dtstart.getUTCDate();break;case fr.MONTHLY:n.bymonthday=n.dtstart.getUTCDate();break;case fr.WEEKLY:n.byweekday=[oD(n.dtstart)]}if(qs(n.bymonth)&&!$c(n.bymonth)&&(n.bymonth=[n.bymonth]),qs(n.byyearday)&&!$c(n.byyearday)&&Cf(n.byyearday)&&(n.byyearday=[n.byyearday]),qs(n.bymonthday))if($c(n.bymonthday)){var r=[],o=[];for(e=0;e<n.bymonthday.length;e++){var i;(i=n.bymonthday[e])>0?r.push(i):i<0&&o.push(i)}n.bymonthday=r,n.bynmonthday=o}else n.bymonthday<0?(n.bynmonthday=[n.bymonthday],n.bymonthday=[]):(n.bynmonthday=[],n.bymonthday=[n.bymonthday]);else n.bymonthday=[],n.bynmonthday=[];if(qs(n.byweekno)&&!$c(n.byweekno)&&(n.byweekno=[n.byweekno]),qs(n.byweekday))if(Cf(n.byweekday))n.byweekday=[n.byweekday],n.bynweekday=null;else if(o9e(n.byweekday))n.byweekday=[Rd.fromStr(n.byweekday).weekday],n.bynweekday=null;else if(n.byweekday instanceof Rd)!n.byweekday.n||n.freq>fr.MONTHLY?(n.byweekday=[n.byweekday.weekday],n.bynweekday=null):(n.bynweekday=[[n.byweekday.weekday,n.byweekday.n]],n.byweekday=null);else{var a=[],s=[];for(e=0;e<n.byweekday.length;e++){var l=n.byweekday[e];Cf(l)?a.push(l):o9e(l)?a.push(Rd.fromStr(l).weekday):!l.n||n.freq>fr.MONTHLY?a.push(l.weekday):s.push([l.weekday,l.n])}n.byweekday=Gl(a)?a:null,n.bynweekday=Gl(s)?s:null}else n.bynweekday=null;return qs(n.byhour)?Cf(n.byhour)&&(n.byhour=[n.byhour]):n.byhour=n.freq<fr.HOURLY?[n.dtstart.getUTCHours()]:null,qs(n.byminute)?Cf(n.byminute)&&(n.byminute=[n.byminute]):n.byminute=n.freq<fr.MINUTELY?[n.dtstart.getUTCMinutes()]:null,qs(n.bysecond)?Cf(n.bysecond)&&(n.bysecond=[n.bysecond]):n.bysecond=n.freq<fr.SECONDLY?[n.dtstart.getUTCSeconds()]:null,{parsedOptions:n}}(n).parsedOptions;this.options=i}return t.parseText=function(n,e){return y9e(n,e)},t.fromText=function(n,e){return function(t,n){return void 0===n&&(n=z8),new fr(y9e(t,n)||void 0)}(n,e)},t.fromString=function(n){return new t(t.parseString(n)||void 0)},t.prototype._iter=function(n){return S9e(n,this.options)},t.prototype._cacheGet=function(n,e){return!!this._cache&&this._cache._cacheGet(n,e)},t.prototype._cacheAdd=function(n,e,i){if(this._cache)return this._cache._cacheAdd(n,e,i)},t.prototype.all=function(n){if(n)return this._iter(new _9e("all",{},n));var e=this._cacheGet("all");return!1===e&&(e=this._iter(new aD("all",{})),this._cacheAdd("all",e)),e},t.prototype.between=function(n,e,i,r){if(void 0===i&&(i=!1),!DM(n)||!DM(e))throw new Error("Invalid date passed in to RRule.between");var o={before:e,after:n,inc:i};if(r)return this._iter(new _9e("between",o,r));var a=this._cacheGet("between",o);return!1===a&&(a=this._iter(new aD("between",o)),this._cacheAdd("between",a,o)),a},t.prototype.before=function(n,e){if(void 0===e&&(e=!1),!DM(n))throw new Error("Invalid date passed in to RRule.before");var i={dt:n,inc:e},r=this._cacheGet("before",i);return!1===r&&(r=this._iter(new aD("before",i)),this._cacheAdd("before",r,i)),r},t.prototype.after=function(n,e){if(void 0===e&&(e=!1),!DM(n))throw new Error("Invalid date passed in to RRule.after");var i={dt:n,inc:e},r=this._cacheGet("after",i);return!1===r&&(r=this._iter(new aD("after",i)),this._cacheAdd("after",r,i)),r},t.prototype.count=function(){return this.all().length},t.prototype.toString=function(){return QJ(this.origOptions)},t.prototype.toText=function(n,e,i){return function(t,n,e,i){return new u0(t,n,e,i).toString()}(this,n,e,i)},t.prototype.isFullyConvertibleToText=function(){return Aun(this)},t.prototype.clone=function(){return new t(this.origOptions)},t.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],t.YEARLY=Io.YEARLY,t.MONTHLY=Io.MONTHLY,t.WEEKLY=Io.WEEKLY,t.DAILY=Io.DAILY,t.HOURLY=Io.HOURLY,t.MINUTELY=Io.MINUTELY,t.SECONDLY=Io.SECONDLY,t.MO=Np.MO,t.TU=Np.TU,t.WE=Np.WE,t.TH=Np.TH,t.FR=Np.FR,t.SA=Np.SA,t.SU=Np.SU,t.parseString=JJ,t.optionsToString=QJ,t}(),E9e={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function O9e(t,n){return void 0===n&&(n={}),function pdn(t,n){var e=function hdn(t,n){var e=[],i=[],r=[],o=[],a=W8(t),s=a.dtstart,l=a.tzid,u=function _dn(t,n){if(void 0===n&&(n=!1),!(t=t&&t.trim()))throw new Error("Invalid empty string");if(!n)return t.split(/\s/);for(var e=t.split("\n"),i=0;i<e.length;){var r=e[i]=e[i].replace(/\s+$/g,"");r?i>0&&" "===r[0]?(e[i-1]+=r.slice(1),e.splice(i,1)):i+=1:e.splice(i,1)}return e}(t,n.unfold);return u.forEach(function(f){var S;if(f){var T=function mdn(t){var n=function fdn(t){if(-1===t.indexOf(":"))return{name:"RRULE",value:t};var n=function(t,n,e){var i=t.split(":");return i.slice(0,1).concat([i.slice(1).join(":")])}(t);return{name:n[0],value:n[1]}}(t),i=n.value,r=n.name.split(";");if(!r)throw new Error("empty property name");return{name:r[0].toUpperCase(),parms:r.slice(1),value:i}}(f),R=T.name,L=T.parms,z=T.value;switch(R.toUpperCase()){case"RRULE":if(L.length)throw new Error("unsupported RRULE parm: ".concat(L.join(",")));e.push(JJ(f));break;case"RDATE":var Y=(null!==(S=/RDATE(?:;TZID=([^:=]+))?/i.exec(f))&&void 0!==S?S:[])[1];Y&&!l&&(l=Y),i=i.concat(T9e(z,L));break;case"EXRULE":if(L.length)throw new Error("unsupported EXRULE parm: ".concat(L.join(",")));r.push(JJ(z));break;case"EXDATE":o=o.concat(T9e(z,L));break;case"DTSTART":break;default:throw new Error("unsupported property: "+R)}}}),{dtstart:s,tzid:l,rrulevals:e,rdatevals:i,exrulevals:r,exdatevals:o}}(t,n),i=e.rrulevals,r=e.rdatevals,o=e.exrulevals,a=e.exdatevals,s=e.dtstart,l=e.tzid,u=!1===n.cache;if(n.compatible&&(n.forceset=!0,n.unfold=!0),n.forceset||i.length>1||r.length||o.length||a.length){var f=new k9e(u);return f.dtstart(s),f.tzid(l||void 0),i.forEach(function(T){f.rrule(new fr(tQ(T,s,l),u))}),r.forEach(function(T){f.rdate(T)}),o.forEach(function(T){f.exrule(new fr(tQ(T,s,l),u))}),a.forEach(function(T){f.exdate(T)}),n.compatible&&n.dtstart&&f.rdate(s),f}var S=i[0]||{};return new fr(tQ(S,S.dtstart||n.dtstart||s,S.tzid||n.tzid||l),u)}(t,function gdn(t){var n=[],e=Object.keys(t),i=Object.keys(E9e);if(e.forEach(function(r){ya(i,r)||n.push(r)}),n.length)throw new Error("Invalid options: "+n.join(", "));return Qo(Qo({},E9e),t)}(n))}function tQ(t,n,e){return Qo(Qo({},t),{dtstart:n,tzid:e})}function T9e(t,n){return function vdn(t){t.forEach(function(n){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(n))throw new Error("unsupported RDATE/EXDATE parm: "+n)})}(n),t.split(",").map(function(e){return YJ(e)})}function I9e(t){var n=this;return function(e){if(void 0!==e&&(n["_".concat(t)]=e),void 0!==n["_".concat(t)])return n["_".concat(t)];for(var i=0;i<n._rrule.length;i++){var r=n._rrule[i].origOptions[t];if(r)return r}}}var k9e=function(t){function n(e){void 0===e&&(e=!1);var i=t.call(this,{},e)||this;return i.dtstart=I9e.apply(i,["dtstart"]),i.tzid=I9e.apply(i,["tzid"]),i._rrule=[],i._rdate=[],i._exrule=[],i._exdate=[],i}return Pv(n,t),n.prototype._iter=function(e){return function cdn(t,n,e,i,r,o){var a={},s=t.accept;function l(T,R){e.forEach(function(L){L.between(T,R,!0).forEach(function(z){a[Number(z)]=!0})})}r.forEach(function(T){var R=new G8(T,o).rezonedDate();a[Number(R)]=!0}),t.accept=function(T){var R=Number(T);return isNaN(R)?s.call(this,T):!(!a[R]&&(l(new Date(R-1),new Date(R+1)),!a[R]))||(a[R]=!0,s.call(this,T))},"between"===t.method&&(l(t.args.after,t.args.before),t.accept=function(T){var R=Number(T);return!!a[R]||(a[R]=!0,s.call(this,T))});for(var u=0;u<i.length;u++){var f=new G8(i[u],o).rezonedDate();if(!t.accept(new Date(f.getTime())))break}n.forEach(function(T){S9e(t,T.options)});var S=t._result;switch(EM(S),t.method){case"all":case"between":return S;case"before":return S.length&&S[S.length-1]||null;default:return S.length&&S[0]||null}}(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},n.prototype.rrule=function(e){M9e(e,this._rrule)},n.prototype.exrule=function(e){M9e(e,this._exrule)},n.prototype.rdate=function(e){A9e(e,this._rdate)},n.prototype.exdate=function(e){A9e(e,this._exdate)},n.prototype.rrules=function(){return this._rrule.map(function(e){return O9e(e.toString())})},n.prototype.exrules=function(){return this._exrule.map(function(e){return O9e(e.toString())})},n.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},n.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},n.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(QJ({dtstart:this._dtstart}))),this._rrule.forEach(function(i){e=e.concat(i.toString().split("\n"))}),this._exrule.forEach(function(i){e=e.concat(i.toString().split("\n").map(function(r){return r.replace(/^RRULE:/,"EXRULE:")}).filter(function(r){return!/^DTSTART/.test(r)}))}),this._rdate.length&&e.push(F9e("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(F9e("EXDATE",this._exdate,this.tzid())),e},n.prototype.toString=function(){return this.valueOf().join("\n")},n.prototype.clone=function(){var e=new n(!!this._cache);return this._rrule.forEach(function(i){return e.rrule(i.clone())}),this._exrule.forEach(function(i){return e.exrule(i.clone())}),this._rdate.forEach(function(i){return e.rdate(new Date(i.getTime()))}),this._exdate.forEach(function(i){return e.exdate(new Date(i.getTime()))}),e},n}(fr);function M9e(t,n){if(!(t instanceof fr))throw new TypeError(String(t)+" is not RRule instance");ya(n.map(String),String(t))||n.push(t)}function A9e(t,n){if(!(t instanceof Date))throw new TypeError(String(t)+" is not Date instance");ya(n.map(Number),Number(t))||(n.push(t),EM(n))}function F9e(t,n,e){var i=!e||"UTC"===e.toUpperCase(),r=i?"".concat(t,":"):"".concat(t,";TZID=").concat(e,":"),o=n.map(function(a){return qJ(a.valueOf(),i)}).join(",");return"".concat(r).concat(o)}var P9e=t=>{var s,e=t.offsetIndices,i=t.untils,r=t.offsets.split("|").map(l=>parseInt(l)),o=e.split("").map(l=>parseInt(l)),a=(t=>t.split("|").map(n=>"Infinity"===n?null:1e3*parseInt(n,36)))(i).map((s=0,l=>s+=l));return{offsetList:r,offsetIndexList:o,dateList:a}},nQ=new class bdn{constructor(){this.map=new Map}tryGet(n){if(!this.map.get(n)){var e=R9e.getTimezoneById(n);if(!e)return!1;var i=P9e(e);this.map.set(n,i)}return this.map.get(n)}},R9e={_tzCache:nQ,_timeZones:[{id:"Africa/Abidjan",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Accra",untils:"-r507yk|1e3pak|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|Infinity",offsets:"0.8667|0|-20",offsetIndices:"012121212121212121212121212121212121212121212121"},{id:"Africa/Addis_Ababa",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Algiers",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|53c00|9idxc0|3i040|51mw0|253uk0|9o2k0|92040|8l3s0|jutc0|4uy840|3rdzw0|46xc00|7x6o0|2xco40|8n180|7x9g0|9d440|kiqg0|9d440|9q2s0|9cyk0|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"0121212121212121232321212122321212"},{id:"Africa/Asmara",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Asmera",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Bamako",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Bangui",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Banjul",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Bissau",untils:"-u9rek0|wvoyo0|Infinity",offsets:"62.3333|60|0",offsetIndices:"012"},{id:"Africa/Blantyre",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Brazzaville",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Bujumbura",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Cairo",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Africa/Casablanca",untils:"-tblt9g|di7nxg|3huk0|51k40|2znuk0|2dp9g0|776k0|8nt2s0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|xqqk0|bp56s0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|25s00|g7c00|1stc0|g7c00|25s00|Infinity",offsets:"30.3333|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Africa/Ceuta",untils:"-qyiys0|7x3w0|2vt440|8sqs0|ssyk0|8n6s0|9px80|905g0|a2yo0|902o0|k69dc0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|129us0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Africa/Conakry",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Dakar",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Dar_es_Salaam",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Djibouti",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Douala",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/El_Aaiun",untils:"-isdxk0|m2g0c0|vek0|4qak0|e1ms0|7pp80|cnms0|3afw0|fke5g0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|25s00|g7c00|1stc0|g7c00|25s00|Infinity",offsets:"52.8|60|0|-60",offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Africa/Freetown",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Gaborone",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Harare",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Johannesburg",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Juba",untils:"-kcrsis|kixuys|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|Infinity",offsets:"-126.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212"},{id:"Africa/Kampala",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Khartoum",untils:"-kcrsow|kixv4w|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|9ac180|Infinity",offsets:"-130.1333|-120|-180",offsetIndices:"012121212121212121212121212121212121"},{id:"Africa/Kigali",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Kinshasa",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lagos",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Libreville",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lome",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Luanda",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lubumbashi",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Lusaka",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Malabo",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Maputo",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Maseru",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Mbabane",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Mogadishu",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Monrovia",untils:"-qj6zc4|rl202a|Infinity",offsets:"43.1333|44.5|0",offsetIndices:"012"},{id:"Africa/Nairobi",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Ndjamena",untils:"-u9rk4c|zdk5cc|7iak0|Infinity",offsets:"-60.2|-60|-120",offsetIndices:"0121"},{id:"Africa/Niamey",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Nouakchott",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Ouagadougou",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Porto-Novo",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Sao_Tome",untils:"-u9rhc0|1jbm840|irxc0|Infinity",offsets:"36.75|0|-60",offsetIndices:"0121"},{id:"Africa/Timbuktu",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Tripoli",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity",offsets:"-52.7333|-60|-120",offsetIndices:"012121212121212121212121212122122"},{id:"Africa/Tunis",untils:"-uozn3l|enxevl|b5uo0|53c00|u8w00|7x9g0|c8w80|7k800|z3w0|ew40|8bx80|9d440|9nx00|925o0|8l100|gi3440|7k800|b9k00|7vc00|51mw00|5ytc0|9d1c0|9d1c0|b9k00|7thc0|7m0tc0|7tk40|93us0|b5uo0|7k800|b5uo0|7x6o0|asw00|Infinity",offsets:"-9.35|-60|-120",offsetIndices:"0121212121212121212121212121212121"},{id:"Africa/Windhoek",untils:"-yvtdi0|kn7o60|9cyk0|oj2nw0|235k00|8lho0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|Infinity",offsets:"-90|-120|-180|-60",offsetIndices:"01211313131313131313131313131313131313131313131313131"},{id:"America/Adak",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Anchorage",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"600|540|480",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Anguilla",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Antigua",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Araguaina",untils:"-t85j2o|99k8mo|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|51udg0|64ak0|Infinity",offsets:"192.8|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121"},{id:"America/Argentina/Buenos_Aires",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232323232"},{id:"America/Argentina/Catamarca",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Argentina/ComodRivadavia",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Argentina/Cordoba",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Argentina/Jujuy",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121323232"},{id:"America/Argentina/La_Rioja",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231232321232"},{id:"America/Argentina/Mendoza",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|5unes0|6hes0|1p7mk0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232312121321232"},{id:"America/Argentina/Rio_Gallegos",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232321232"},{id:"America/Argentina/Salta",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231323232"},{id:"America/Argentina/San_Juan",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|5v2840|2txg0|1sgak0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231232321232"},{id:"America/Argentina/San_Luis",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|7pp80|b2aw0|71mk0|4qg40|6s8ik0|2txg0|1sgak0|14nw0|2gys0|b5xg0|7k580|b5xg0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121212321212"},{id:"America/Argentina/Tucuman",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|mas0|1um2k0|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"0121212121212121212121212121212121212121212323232313232123232"},{id:"America/Argentina/Ushuaia",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|5v0dg0|12ys0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232321232"},{id:"America/Aruba",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Asuncion",untils:"-jy93zk|ldwofk|s4vw0|s6w40|7tek0|b0dg0|7rjw0|b0dg0|7rjw0|b0dg0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|ahus0|8a2k0|9eys0|9cyk0|9o840|7k580|b7s40|93p80|9gtg0|7nuk0|b42s0|7lzw0|b5xg0|7tek0|b9ms0|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|7kas0|b5rw0|7x9g0|ast80|a31g0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|776k0|biw40|8zzw0|905g0|9px80|905g0|9px80|9d440|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|Infinity",offsets:"230.6667|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Atikokan",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity",offsets:"360|300",offsetIndices:"0101111"},{id:"America/Atka",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Bahia_Banderas",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|asqg0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"421|420|360|480|300",offsetIndices:"0121212131212121212121212121212121212142424242424242424242424242424242424242424242424242424242"},{id:"America/Bahia",untils:"-t85kv8|99kaf8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|4irc40|6u7w0|Infinity",offsets:"154.0667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121"},{id:"America/Barbados",untils:"-o0aiaj|46b400|npv1mj|5rbw0|a31g0|8n180|a31g0|8n180|ag040|84ik0|Infinity",offsets:"238.4833|240|180",offsetIndices:"00121212121"},{id:"America/Belem",untils:"-t85j0s|99k8ks|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity",offsets:"193.9333|180|120",offsetIndices:"012121212121212121212121212121"},{id:"America/Belize",untils:"-u52ic0|3edkc0|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|g2t2q0|3e580|4mcys0|2vmk0|Infinity",offsets:"352.8|360|330|300",offsetIndices:"01212121212121212121212121212121212121212121212121213131"},{id:"America/Blanc-Sablon",untils:"-qzp0o0|a2vw0|c5jxg0|1tzdw0|2dnc0|Infinity",offsets:"240|180",offsetIndices:"010110"},{id:"America/Boa_Vista",untils:"-t85grk|99k93k|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|62xk40|7k580|biw40|cvw0|Infinity",offsets:"242.6667|240|180",offsetIndices:"0121212121212121212121212121212121"},{id:"America/Bogota",untils:"-srdoy8|14f1hi8|ha580|Infinity",offsets:"296.2667|300|240",offsetIndices:"0121"},{id:"America/Boise",untils:"-r0emw0|ast80|7x9g0|ast80|1um840|9s7jw0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|51k40|doik0|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|360",offsetIndices:"0101012212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Buenos_Aires",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232323232"},{id:"America/Cambridge_Bay",untils:"-q3gdc0|bjeec0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x6o0|ast80|ct40|7kj40|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|420|360|300",offsetIndices:"0122131212121212121212121212121212121212121212233221212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Campo_Grande",untils:"-t85hvw|99ka7w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"218.4667|240|180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Cancun",untils:"-p1u7c0|vauo00|7ggw40|afuk0|8a840|afuk0|8a840|64ak0|4bms0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|51k40|Infinity",offsets:"347.0667|360|300|240",offsetIndices:"0123232321212121212121212121212121212121212"},{id:"America/Caracas",untils:"-u7lcxw|rlo83w|meoxm0|4dps00|Infinity",offsets:"267.6667|270|240",offsetIndices:"01212"},{id:"America/Catamarca",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Cayenne",untils:"-uj7yb4|tcw6r4|Infinity",offsets:"209.3333|240|180",offsetIndices:"012"},{id:"America/Cayman",untils:"-w757vc|Infinity",offsets:"319.6|300",offsetIndices:"01"},{id:"America/Chicago",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Chihuahua",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"424.3333|420|360|300",offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Coral_Harbour",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity",offsets:"360|300",offsetIndices:"0101111"},{id:"America/Cordoba",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Costa_Rica",untils:"-pjw8fn|ubtl3n|51ek0|doo40|51ek0|5jso40|8drw0|acas0|2xh80|Infinity",offsets:"336.2167|360|300",offsetIndices:"0121212121"},{id:"America/Creston",untils:"-rshz80|vbus0|Infinity",offsets:"420|480",offsetIndices:"010"},{id:"America/Cuiaba",untils:"-t85hm4|99k9y4|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|w5hg0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"224.3333|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Curacao",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Danmarkshavn",untils:"-rvusjk|x8nx3k|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|53hk0|Infinity",offsets:"74.6667|180|120|0",offsetIndices:"01212121212121212121212121212121213"},{id:"America/Dawson_Creek",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|69uk0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101011"},{id:"America/Dawson",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|465k00|3e2is0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Denver",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Detroit",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlbxo|71s2c|9d440|9cyk0|2cmdg0|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"332.1833|360|300|240",offsetIndices:"0123323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Dominica",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Edmonton",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|ctzk40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"453.8667|420|360",offsetIndices:"0121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Eirunepe",untils:"-t85f28|99ka68|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|7hg2s0|2t2t80|Infinity",offsets:"279.4667|300|240",offsetIndices:"0121212121212121212121212121212121"},{id:"America/El_Salvador",untils:"-pkm4tc|ymao5c|7k580|b5xg0|7k580|Infinity",offsets:"356.8|360|300",offsetIndices:"012121"},{id:"America/Ensenada",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Fort_Nelson",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"480|420",offsetIndices:"01011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"America/Fort_Wayne",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Fortaleza",untils:"-t85kvc|99kafc|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|puk0|id6s0|6h980|Infinity",offsets:"154|180|120",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/Glace_Bay",untils:"-z94kwc|89fk8c|a2vw0|c5jxg0|1tzdw0|2dnc0|3y8g40|7x3w0|9pa5g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"239.8|240|180",offsetIndices:"012122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Godthab",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"206.9333|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Goose_Bay",untils:"-qzp20k|a2vw0|8kjbw0|kzjyk|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|6y2s0|22420|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|240|180|120",offsetIndices:"010232323232323233232323232323232323232323232323232323232324545454545454545454545454545454545454545454546454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454"},{id:"America/Grand_Turk",untils:"-u85og2|z3brw2|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|18ais0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"307.1667|300|240",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121222121212121212121212121212121212121212121"},{id:"America/Grenada",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Guadeloupe",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Guatemala",untils:"-qqqskk|ss0akk|4ofw0|4tidg0|6djw0|3wwas0|8n180|7n5ms0|7x3w0|Infinity",offsets:"362.0667|360|300",offsetIndices:"0121212121"},{id:"America/Guayaquil",untils:"-kcr84o|wb620o|3jp80|Infinity",offsets:"314|300|240",offsetIndices:"0121"},{id:"America/Guyana",untils:"-smcak8|vj4sz8|81rf90|Infinity",offsets:"232.6667|225|180|240",offsetIndices:"0123"},{id:"America/Halifax",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"254.4|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Havana",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity",offsets:"329.6|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Hermosillo",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|Infinity",offsets:"443.8667|420|360|480",offsetIndices:"0121212131212121"},{id:"America/Indiana/Indianapolis",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Knox",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Indiana/Marengo",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|2wsas0|7x3w0|1c9440|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|fvt9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101011010101010101010101212121212111212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Petersburg",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|sfzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|eu02o0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010101010101010101010111011212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Tell_City",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|1tw580|9d440|9cyk0|9d440|9cvs0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101021211010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Indiana/Vevay",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|4gyis0|7txx80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|hfzhg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101101212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Vincennes",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010121211011212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Winamac",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8l40|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010101010121211021212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indianapolis",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Inuvik",untils:"-8ve5c0|6fce80|9q000|71i2w0|ipzw0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|480|360|420",offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Iqaluit",untils:"-eb6ao0|1l3h80|2dq40|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|240|300|180|360",offsetIndices:"01123212121212121212121212121212121212121212142212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Jamaica",untils:"-u85og2|wbl182|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity",offsets:"307.1667|300|240",offsetIndices:"0121212121212121212121"},{id:"America/Jujuy",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121323232"},{id:"America/Juneau",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9d1c0|9d1c0|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010001010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202"},{id:"America/Kentucky/Louisville",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|ast9o|1sw2c|21gis0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Kentucky/Monticello",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|bs6g40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Knox_IN",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Kralendijk",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/La_Paz",untils:"-jxzspo|84ik0|Infinity",offsets:"272.6|212.6|240",offsetIndices:"012"},{id:"America/Lima",untils:"-w25lpo|fcxjlo|4ml80|93us0|9cyk0|9d440|9cyk0|nw16s0|4ml80|e5c40|4ml80|1fr1g0|4ml80|1yiys0|4ml80|Infinity",offsets:"308.6|300|240",offsetIndices:"0121212121212121"},{id:"America/Los_Angeles",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Louisville",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|ast9o|1sw2c|21gis0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Lower_Princes",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Maceio",untils:"-t85ldw|99kaxw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|1wf1g0|7k580|biw40|puk0|id6s0|6h980|Infinity",offsets:"142.8667|180|120",offsetIndices:"012121212121212121212121212121212121212121"},{id:"America/Managua",untils:"-ijh6oo|ka1i0o|xqqk0|24p6s0|53980|dmtg0|53980|60itw0|dq240|53es0|235h80|4beis0|8zzw0|at4c0|7x140|Infinity",offsets:"345.2|360|300",offsetIndices:"0121212121212121"},{id:"America/Manaus",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity",offsets:"240.0667|240|180",offsetIndices:"01212121212121212121212121212121"},{id:"America/Marigot",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Martinique",untils:"-umcvcs|zz5x4s|8zzw0|Infinity",offsets:"244.3333|240|180",offsetIndices:"0121"},{id:"America/Matamoros",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"400|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Mazatlan",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"425.6667|420|360|480",offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Mendoza",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|5unes0|6hes0|1p7mk0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232312121321232"},{id:"America/Menominee",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|a7n9g0|9px80|1at9g0|2396k0|9d1c0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010110101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Merida",untils:"-p1u7c0|vauo00|hoyk0|6ys0c0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"358.4667|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Metlakatla",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|gpc840|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|3ylc0|2itg0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010101010102020200202020202020202020202020202020202020202"},{id:"America/Mexico_City",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"396.6|420|360|300",offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Miquelon",untils:"-ulmyxk|zzqbdk|3m59g0|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"224.6667|240|180|120",offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Moncton",untils:"-z94i40|89fhg0|a2vw0|7mqqo0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|dmtg0|64ak0|cao40|6fek0|bkqs0|7iak0|6y5k0|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a2lo|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6uiyc|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240|180",offsetIndices:"012121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Monterrey",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"401.2667|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Montevideo",untils:"-w4mll9|67elc0|1s74p9|9et80|9exe0|9czy0|9exe0|9czy0|3ydyq0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7k6m0|9q1e0|9czy0|asxe0|7x5a0|6do20|ppvy0|4mmm0|8g9qq0|901a0|38pe0|2inw0|2nf9g0|8zzw0|1e3s40|9o3y0|q8he0|2kik0|yxhg0|4bh80|s36s0|2vl60|905g0|5rg20|51ek0|weqs0|3yik0|e1ms0|4ofw0|erk40|3yik0|2vs40|gk7w0|41iys0|3wnw0|erk40|4bh80|c8tg0|64ak0|c8tg0|6u7w0|c8tg0|6h980|bvus0|6u7w0|614qs0|9q2s0|a31g0|7x3w0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"224.85|240|180|210|150|120|90",offsetIndices:"001232323232323232323232324242525242525264252525252525252525252525252525252525252525252"},{id:"America/Montreal",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Montserrat",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Nassau",untils:"-u6m4c6|r7u7s6|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"309.5|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/New_York",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Nipigon",untils:"-qzoxw0|a2vw0|bfxjw0|pmdk0|1tzb40|2dq40|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Nome",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l6c0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540|480",offsetIndices:"011001010101010101010101010101010122323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Noronha",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"129.6667|120|60",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/North_Dakota/Beulah",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121"},{id:"America/North_Dakota/Center",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/North_Dakota/New_Salem",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Nuuk",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"206.9333|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Ojinaga",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"417.6667|420|360|300",offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Panama",untils:"-w757vc|Infinity",offsets:"319.6|300",offsetIndices:"01"},{id:"America/Pangnirtung",untils:"-pkmlc0|b0ke00|1tzdw0|2dnc0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|asw00|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|240|180|120|300|360",offsetIndices:"012213121212121212121212121212121212114141414154414141414141414141414141414141414141414141414141414141414141414141414141414"},{id:"America/Paramaribo",untils:"-usj4g8|cixc0c|5lydbk|kcrm6c|Infinity",offsets:"220.6667|220.8667|220.6|210|180",offsetIndices:"01234"},{id:"America/Phoenix",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity",offsets:"420|360",offsetIndices:"01010101010"},{id:"America/Port_of_Spain",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Port-au-Prince",untils:"-rmk9ac|ylcf6c|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8aaw0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|3vpjw0|ast80|7x9g0|ast80|2stv00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|pkg40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"289|300|240",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Porto_Acre",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"America/Porto_Velho",untils:"-t85g60|99k8i0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity",offsets:"255.6|240|180",offsetIndices:"012121212121212121212121212121"},{id:"America/Puerto_Rico",untils:"-efsnk0|1ppu40|2dnc0|Infinity",offsets:"240|180",offsetIndices:"0110"},{id:"America/Punta_Arenas",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|2fnh80|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Rainy_River",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Rankin_Inlet",untils:"-6s8lc0|4c6oo0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|360|240|300",offsetIndices:"012131313131313131313131313131313131313131313331313131313131313131313131313131313131313131313131313131313131313131313131"},{id:"America/Recife",untils:"-t85ljc|99kb3c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"139.6|180|120",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/Regina",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity",offsets:"418.6|420|360",offsetIndices:"012121212121212121212121221212121212121212121212121212"},{id:"America/Resolute",untils:"-bnp9c0|97nco0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|360|240|300",offsetIndices:"012131313131313131313131313131313131313131313331313131313331313131313131313131313131313131313131313131313131313131313131"},{id:"America/Rio_Branco",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"America/Rosario",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Santa_Isabel",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Santarem",untils:"-t85hvc|99ka7c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|Infinity",offsets:"218.8|240|180",offsetIndices:"0121212121212121212121212121212"},{id:"America/Santiago",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Santo_Domingo",untils:"-j6hz1c|hiw29c|67zw0|1dy840|62ha0|cnle0|4h2m0|elyq0|47ta0|ei9e0|4bim0|eek20|4dda0|ecpe0|dkmtg0|1stc0|Infinity",offsets:"280|300|240|270",offsetIndices:"01213131313131212"},{id:"America/Sao_Paulo",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"186.4667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Scoresbysund",untils:"-rvurxk|x8ntpk|902o0|9cvs0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"87.8667|120|60|0",offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Shiprock",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Sitka",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010101010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202"},{id:"America/St_Barthelemy",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Johns",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|90",offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/St_Kitts",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Lucia",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Thomas",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Vincent",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Swift_Current",untils:"-xkq9d4|6l1h14|a2vw0|c5jxg0|1tz5k0|2dvo0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|3yles0|9cyk0|s36s0|9cyk0|9d440|7x3w0|b5xg0|7k580|5j4lg0|Infinity",offsets:"431.3333|420|360",offsetIndices:"012122121212121212121212"},{id:"America/Tegucigalpa",untils:"-pfzh6k|yho0ik|7k580|b5xg0|7k580|96x1g0|4qak0|Infinity",offsets:"348.8667|360|300",offsetIndices:"01212121"},{id:"America/Thule",untils:"-rvuj9g|12yzilg|9cyk0|9d440|9cyk0|9q2s0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"275.1333|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Thunder_Bay",untils:"-vbavc0|gr8qs0|1tzb40|2dq40|ctmlg0|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Tijuana",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Toronto",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Tortola",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Vancouver",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Virgin",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Whitehorse",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Winnipeg",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Yakutat",untils:"-ek1tg0|1tz000|2e180|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1lbw0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"540|480",offsetIndices:"01101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Yellowknife",untils:"-i9m2o0|3pk3o0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|420|360|300",offsetIndices:"012213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Antarctica/Casey",untils:"-irxc0|lag4o0|73bo0|uz1o0|60l80|2fnh80|pz9g0|Infinity",offsets:"0|-480|-660",offsetIndices:"01212121"},{id:"Antarctica/Davis",untils:"-6rmdc0|42jdw0|27wgs0|l8uss0|7eqs0|unmk0|60qs0|Infinity",offsets:"0|-420|-300",offsetIndices:"01012121"},{id:"Antarctica/DumontDUrville",untils:"-c05eo0|2mks80|2i72g0|Infinity",offsets:"0|-600",offsetIndices:"0101"},{id:"Antarctica/Macquarie",untils:"-rsj4w0|8zzw0|11wqk0|f4kh40|a6p8g0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660|0",offsetIndices:"0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101011"},{id:"Antarctica/Mawson",untils:"-8aelc0|t22y80|Infinity",offsets:"0|-360|-300",offsetIndices:"012"},{id:"Antarctica/McMurdo",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Antarctica/Palmer",untils:"-2lxhc0|31ho0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|46b6s0|8c2s0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|Infinity",offsets:"0|180|240|120",offsetIndices:"0121212121213121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Antarctica/Rothera",untils:"3lxs00|Infinity",offsets:"0|180",offsetIndices:"01"},{id:"Antarctica/South_Pole",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Antarctica/Syowa",untils:"-6qsqo0|Infinity",offsets:"0|-180",offsetIndices:"01"},{id:"Antarctica/Troll",untils:"ibruo0|27pg0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-120",offsetIndices:"00101010101010101010101010101010101010101010101010101010101010101010"},{id:"Antarctica/Vostok",untils:"-6aaao0|Infinity",offsets:"0|-360",offsetIndices:"01"},{id:"Arctic/Longyearbyen",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Aden",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Almaty",untils:"-nu1a90|37a0d0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity",offsets:"-307.8|-300|-360|-420",offsetIndices:"012323232323232323232321232323232323232323232323232"},{id:"Asia/Amman",untils:"-kcrtbk|m566fk|60l80|awo40|7v980|awo40|7v980|ayis0|9gnw0|9b9g0|7v980|autg0|7v980|3e6840|9et80|9io40|9cyk0|9d440|9cyk0|9d440|9px80|ayis0|7rjw0|ag040|8a2k0|9zc40|8drw0|a31g0|8zzw0|9d440|9cyk0|9d440|8n180|ag040|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|epmo0|4deo0|9o5c0|9ew00|9b6o0|9ew00|9d1c0|9d1c0|9d1c0|asw00|7x6o0|afxc0|8n400|9d1c0|9d1c0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|wel80|51k40|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity",offsets:"-143.7333|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Anadyr",untils:"-nu1sv8|379zj8|qi27w0|9et80|is040|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-709.9333|-720|-780|-840|-660",offsetIndices:"01232121212121212121214121212121212121212121212121212121212141"},{id:"Asia/Aqtau",untils:"-nu15b4|379y74|qrh3w0|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-201.0667|-240|-300|-360",offsetIndices:"012323232323232323232123232312121212121212121212"},{id:"Asia/Aqtobe",untils:"-nu16l4|379zh4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity",offsets:"-228.6667|-240|-300|-360",offsetIndices:"0123232323232323232321232323232323232323232323232"},{id:"Asia/Ashgabat",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|Infinity",offsets:"-233.5333|-240|-300|-360",offsetIndices:"0123232323232323232323212"},{id:"Asia/Ashkhabad",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|Infinity",offsets:"-233.5333|-240|-300|-360",offsetIndices:"0123232323232323232323212"},{id:"Asia/Atyrau",untils:"-nu15m8|37a1a8|qrh140|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|j3440|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-207.7333|-180|-300|-360|-240",offsetIndices:"01232323232323232323242323232323232324242424242"},{id:"Asia/Baghdad",untils:"-r50g80|xkn3w0|7v980|9b9g0|9gnw0|9eys0|9et80|9d440|9b9g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9f1k0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|Infinity",offsets:"-177.6|-180|-240",offsetIndices:"012121212121212121212121212121212121212121212121212121"},{id:"Asia/Bahrain",untils:"-q3gmvk|rctnrk|Infinity",offsets:"-206.1333|-240|-180",offsetIndices:"012"},{id:"Asia/Baku",untils:"-nu158c|h4tkwc|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9d1c0|239ew0|asw00|7x3w0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-199.4|-180|-240|-300",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Bangkok",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Barnaul",untils:"-q4ljic|5hu6uc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|38fo0|64og0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-335|-360|-420|-480",offsetIndices:"0123232323232323232323212323232321212121212121212121212121212121212"},{id:"Asia/Beirut",untils:"-pyzew0|aunw0|88dg0|9et80|8yas0|a2vw0|a31g0|7k580|hjqo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|5lhs40|56yk0|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|autg0|7v980|2wxus0|8n180|a4w40|8n180|a4w40|8n180|a4w40|8n180|bs5g0|71mk0|alk40|86d80|a4w40|8n180|a4w40|8n180|a6qs0|80t80|905g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Bishkek",untils:"-nu19tc|379zxc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|h8dc0|bkl80|8n180|a31g0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9db20|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|Infinity",offsets:"-298.4|-300|-360|-420",offsetIndices:"012323232323232323232321212121212121212121212121212"},{id:"Asia/Brunei",untils:"-mvofy4|3khxs4|Infinity",offsets:"-459.6667|-450|-480",offsetIndices:"012"},{id:"Asia/Calcutta",untils:"-xehava|innm9a|bmfw0|5lxg0|1mn180|Infinity",offsets:"-321.1667|-330|-390",offsetIndices:"012121"},{id:"Asia/Chita",untils:"-q4cfog|5hkxgg|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnew0|Infinity",offsets:"-453.8667|-480|-540|-600",offsetIndices:"012323232323232323232321232323232323232323232323232323232323232312"},{id:"Asia/Choibalsan",untils:"-xmct7c|11sndrc|2qk2k0|9eqg0|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|s6qk0|3nc0c0|9ct00|9d9o0|9ct00|Infinity",offsets:"-458|-420|-480|-600|-540",offsetIndices:"0123434343434343434343434343434343434343434343424242"},{id:"Asia/Chongqing",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Chungking",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Colombo",untils:"-xehask|isle6k|cajy0|1mp2u0|qetjw0|7x5a0|4xvqq0|Infinity",offsets:"-319.5333|-330|-360|-390",offsetIndices:"01231321"},{id:"Asia/Dacca",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|u4ijy0|a1400|Infinity",offsets:"-353.3333|-390|-330|-360|-420",offsetIndices:"0121343"},{id:"Asia/Damascus",untils:"-q3gk20|5k6q0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|k4hk40|7yyk0|awo40|7tek0|b0dg0|7v980|awo40|7tek0|alk40|887w0|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|6bp80|cg840|6bp80|2eh1g0|8zzw0|9ts40|8zzw0|pvk40|c33w0|7cw40|cjrw0|6zxg0|btuk0|7rpg0|9gnw0|9d440|9cyk0|9et80|9et80|9rxg0|91uk0|92040|9et80|9o840|9et80|9d440|9et80|9eys0|9et80|9b9g0|9gnw0|99es0|9iik0|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|8y580|9q2s0|b5rw0|7x9g0|aunw0|7ig40|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|Infinity",offsets:"-145.2|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Dhaka",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|u4ijy0|a1400|Infinity",offsets:"-353.3333|-390|-330|-360|-420",offsetIndices:"0121343"},{id:"Asia/Dili",untils:"-u9s4l8|fqcu98|hufs00|cpz440|Infinity",offsets:"-502.3333|-480|-540",offsetIndices:"01212"},{id:"Asia/Dubai",untils:"-q3gnko|Infinity",offsets:"-221.2|-240",offsetIndices:"01"},{id:"Asia/Dushanbe",untils:"-nu18qo|379yuo|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|hp440|Infinity",offsets:"-275.2|-300|-360|-420",offsetIndices:"012323232323232323232321"},{id:"Asia/Famagusta",untils:"-p4bqac|rvhy2c|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|8h8w0|leog0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-135.8|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212212121212121212121212121212121212121212121"},{id:"Asia/Gaza",untils:"-ffv9k0|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|5hoqs0|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|1sns0|3p6is0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|66as0|4vxc0|8n400|a2yo0|8n400|a2yo0|8n400|asw00|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|8n400|a2yo0|8ulg0|97ek0|8y580|9ts40|8hms0|a4qk0|7x3w0|asys0|8a5c0|ahs1o|71mic|bzk5o|69uic|cg840|902o0|9q000|9cyk0|9d440|ast80|7z440|aqyk0|7z6w0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Harbin",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Hebron",untils:"-ffv9k0|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|5hoqs0|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|1sns0|3p6is0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|66as0|4vxc0|8n400|a2yo0|8n400|a2yo0|8n400|asw00|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|8n400|a2yo0|8ulg0|97ek0|8y580|9ts40|8hms0|a4qk0|82nw0|anes0|8a5c0|afxc0|73h80|bzk5o|69uic|1hs40|1lbw0|9d440|902o0|9q000|9cyk0|9d440|ast80|7z440|aqyk0|7z6w0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Ho_Chi_Minh",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity",offsets:"-426.6667|-426.5|-420|-480|-540",offsetIndices:"0123423232"},{id:"Asia/Hong_Kong",untils:"-y0i0s0|j44dk0|5k000|4d4y0|2195i0|7x3w0|bj320|6uao0|bvs00|7x6o0|9d1c0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-456.7|-480|-540|-510",offsetIndices:"0123212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Hovd",untils:"-xmcoz0|11sncb0|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-366.6|-360|-420|-480",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Irkutsk",untils:"-q28gn5|5fh175|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-417.0833|-420|-480|-540",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Istanbul",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"Asia/Jakarta",untils:"-o0bdpc|4lzxc0|4wdzjc|1tu960|1cx860|11jta0|74uc20|Infinity",offsets:"-427.2|-440|-450|-540|-480|-420",offsetIndices:"01232425"},{id:"Asia/Jayapura",untils:"-jebm20|66bqe0|a37vy0|Infinity",offsets:"-562.8|-540|-570",offsetIndices:"0121"},{id:"Asia/Jerusalem",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Kabul",untils:"-d1pkg0|Infinity",offsets:"-240|-270",offsetIndices:"01"},{id:"Asia/Kamchatka",untils:"-olrupo|3z045o|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-634.6|-660|-720|-780",offsetIndices:"012323232323232323232321232323232323232323232323232323232323212"},{id:"Asia/Karachi",untils:"-wvpb30|im3zt0|1mn180|33xpg0|a63o20|g72qo0|9cyk0|2y85g0|7v980|8hms0|aaak0|Infinity",offsets:"-268.2|-330|-390|-300|-360",offsetIndices:"012133434343"},{id:"Asia/Kashgar",untils:"-lx5pjw|Infinity",offsets:"-350.3333|-360",offsetIndices:"01"},{id:"Asia/Kathmandu",untils:"-q3gt4s|yg2lus|Infinity",offsets:"-341.2667|-330|-345",offsetIndices:"012"},{id:"Asia/Katmandu",untils:"-q3gt4s|yg2lus|Infinity",offsets:"-341.2667|-330|-345",offsetIndices:"012"},{id:"Asia/Khandyga",untils:"-q4cjrp|5hl1jp|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|3fx40|4h6s0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity",offsets:"-542.2167|-480|-540|-600|-660",offsetIndices:"0123232323232323232323212323232323232323232323232343434343434343432"},{id:"Asia/Kolkata",untils:"-xehava|innm9a|bmfw0|5lxg0|1mn180|Infinity",offsets:"-321.1667|-330|-390",offsetIndices:"012121"},{id:"Asia/Krasnoyarsk",untils:"-q37l72|5gg8j2|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-371.4333|-360|-420|-480",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Kuala_Lumpur",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Asia/Kuching",untils:"-mvof3k|3khwxk|1epvy0|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|3ajlc|1v2qk0|Infinity",offsets:"-441.3333|-450|-480|-500|-540",offsetIndices:"0123232323232323242"},{id:"Asia/Kuwait",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Macao",untils:"-y0i2cy|jdvyoy|6onw0|ac580|8fs40|7v980|11luw0|awlc0|7vc00|ac800|bko00|7x6o0|9d1c0|7vc00|asw00|7x6o0|asw00|7x6o0|auqo0|88ao0|asw00|7x6o0|asw00|779c0|bitc0|779c0|bvs00|6uao0|bw1q0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cvs0|9d6w0|9cvs0|9d6w0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-454.1667|-480|-540|-600",offsetIndices:"012323212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Macau",untils:"-y0i2cy|jdvyoy|6onw0|ac580|8fs40|7v980|11luw0|awlc0|7vc00|ac800|bko00|7x6o0|9d1c0|7vc00|asw00|7x6o0|asw00|7x6o0|auqo0|88ao0|asw00|7x6o0|asw00|779c0|bitc0|779c0|bvs00|6uao0|bw1q0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cvs0|9d6w0|9cvs0|9d6w0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-454.1667|-480|-540|-600",offsetIndices:"012323212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Magadan",untils:"-nu1nxc|37a05c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|s39k0|Infinity",offsets:"-603.2|-600|-660|-720",offsetIndices:"012323232323232323232321232323232323232323232323232323232323232312"},{id:"Asia/Makassar",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity",offsets:"-477.6|-480|-540",offsetIndices:"00121"},{id:"Asia/Manila",untils:"-hb5y80|4qak0|2qidg0|1b2d80|4xf440|442k0|cdqdg0|9et80|Infinity",offsets:"-480|-540",offsetIndices:"010101010"},{id:"Asia/Muscat",untils:"-q3gnko|Infinity",offsets:"-221.2|-240",offsetIndices:"01"},{id:"Asia/Nicosia",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-133.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Novokuznetsk",untils:"-nu36tc|37bu5c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-348.8|-360|-420|-480",offsetIndices:"012323232323232323232321232323232323232323232323232323232323212"},{id:"Asia/Novosibirsk",untils:"-q4do0s|5hmbcs|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|2vh00|6hn40|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|wrpg0|Infinity",offsets:"-331.6667|-360|-420|-480",offsetIndices:"0123232323232323232323212323212121212121212121212121212121212121212"},{id:"Asia/Omsk",untils:"-q5xmx6|5j6d16|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-293.5|-300|-360|-420",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Oral",untils:"-nu15ic|37a16c|qi2540|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|9d1c0|5reo0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-205.4|-180|-300|-360|-240",offsetIndices:"01232323232323232424242424242424242424242424242"},{id:"Asia/Phnom_Penh",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Pontianak",untils:"-w6piww|cse2o0|4tnu2w|1wkei0|1cx860|11jta0|74uc20|cixam0|Infinity",offsets:"-437.3333|-450|-540|-480|-420",offsetIndices:"001213134"},{id:"Asia/Pyongyang",untils:"-w895yc|1yh10c|hk5da0|10ipmo0|1f4qo0|Infinity",offsets:"-503|-510|-540",offsetIndices:"012212"},{id:"Asia/Qatar",untils:"-q3gmvk|rctnrk|Infinity",offsets:"-206.1333|-240|-180",offsetIndices:"012"},{id:"Asia/Qostanay",untils:"-nu17s4|37a0o4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-254.4667|-240|-300|-360",offsetIndices:"012323232323232323232123232323232323232323232323"},{id:"Asia/Qyzylorda",untils:"-nu184g|37a10g|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|ohhc0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|7osl00|Infinity",offsets:"-261.8667|-240|-300|-360",offsetIndices:"01232323232323232323232323232323232323232323232"},{id:"Asia/Rangoon",untils:"-q3gv5b|bnjp3b|1kh520|Infinity",offsets:"-384.7833|-390|-540",offsetIndices:"0121"},{id:"Asia/Riyadh",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Saigon",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity",offsets:"-426.6667|-426.5|-420|-480|-540",offsetIndices:"0123423232"},{id:"Asia/Sakhalin",untils:"-xl87rc|kvnarc|ikvh40|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|iq5g0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-570.8|-540|-660|-720|-600",offsetIndices:"01232323232323232323232423232323232424242424242424242424242424242"},{id:"Asia/Samarkand",untils:"-nu18eh|37a1ah|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|Infinity",offsets:"-267.8833|-240|-300|-360",offsetIndices:"01232323232323232323232"},{id:"Asia/Seoul",untils:"-w8966g|1yh18g|hkx5a0|1faao0|5cik0|ae5g0|8a2k0|ae5g0|8bx80|c8tg0|6h980|1bj6s0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity",offsets:"-507.8667|-510|-540|-600|-570",offsetIndices:"012232323232141414141414123232"},{id:"Asia/Shanghai",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Singapore",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Asia/Srednekolymsk",untils:"-nu1ogs|37a0os|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-614.8667|-600|-660|-720",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Taipei",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010101010101010"},{id:"Asia/Tashkent",untils:"-nu18tz|379yxz|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|Infinity",offsets:"-277.1833|-300|-360|-420",offsetIndices:"012323232323232323232321"},{id:"Asia/Tbilisi",untils:"-nu14an|h4tjyn|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9cvs0|9cyk0|9d440|9cyk0|9d440|ipzw0|9cyk0|9q2s0|tivw0|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|4ofw0|6hn40|7k800|Infinity",offsets:"-179.1833|-180|-240|-300",offsetIndices:"0123232323232323232323212121232323232323232323212"},{id:"Asia/Tehran",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity",offsets:"-205.7333|-210|-240|-300|-270",offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141"},{id:"Asia/Tel_Aviv",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Thimbu",untils:"-bojclo|kxymno|Infinity",offsets:"-358.6|-330|-360",offsetIndices:"012"},{id:"Asia/Thimphu",untils:"-bojclo|kxymno|Infinity",offsets:"-358.6|-330|-360",offsetIndices:"012"},{id:"Asia/Tokyo",untils:"-bb4900|6uao0|afxc0|8a5c0|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-540|-600",offsetIndices:"010101010"},{id:"Asia/Tomsk",untils:"-q3zbqf|5h7z2f|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|1leo0|97k40|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|tw040|Infinity",offsets:"-339.85|-360|-420|-480",offsetIndices:"0123232323232323232323212323232323232323232323212121212121212121212"},{id:"Asia/Ujung_Pandang",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity",offsets:"-477.6|-480|-540",offsetIndices:"00121"},{id:"Asia/Ulaanbaatar",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-427.5333|-420|-480|-540",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Ulan_Bator",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-427.5333|-420|-480|-540",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Urumqi",untils:"-lx5pjw|Infinity",offsets:"-350.3333|-360",offsetIndices:"01"},{id:"Asia/Ust-Nera",untils:"-q4cl6u|5hl2yu|qi27w0|9eno0|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity",offsets:"-572.9|-480|-540|-720|-660|-600",offsetIndices:"012343434343434343434345434343434343434343434343434343434343434345"},{id:"Asia/Vientiane",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Vladivostok",untils:"-oligf7|3yqvf7|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-527.5167|-540|-600|-660",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Yakutsk",untils:"-q4cioy|5hl0gy|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-518.9667|-480|-540|-600",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Yangon",untils:"-q3gv5b|bnjp3b|1kh520|Infinity",offsets:"-384.7833|-390|-540",offsetIndices:"0121"},{id:"Asia/Yekaterinburg",untils:"-rx5hw9|1kybx4|5pfyv5|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-242.55|-225.0833|-240|-300|-360",offsetIndices:"012343434343434343434343234343434343434343434343434343434343434343"},{id:"Asia/Yerevan",untils:"-nu148o|h4tjwo|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|11t180|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity",offsets:"-178|-180|-240|-300",offsetIndices:"0123232323232323232323212121212323232323232323232323232323232"},{id:"Atlantic/Azores",untils:"-u9rbs0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"114.5333|120|60|0",offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323233323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Bermuda",untils:"-kvj2fu|n4pr3u|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"259.3|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Canary",untils:"-oytbtc|ctvupc|hhq7s0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"61.6|60|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Cape_Verde",untils:"-u9rbs0|g06lc0|1mn180|fpqwc0|Infinity",offsets:"94.0667|120|60",offsetIndices:"01212"},{id:"Atlantic/Faeroe",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"27.0667|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Faroe",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"27.0667|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Jan_Mayen",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Atlantic/Madeira",untils:"-u9rek0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"67.6|60|0|-60",offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Reykjavik",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity",offsets:"88|60|0",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212"},{id:"Atlantic/South_Georgia",untils:"Infinity",offsets:"120",offsetIndices:"0"},{id:"Atlantic/St_Helena",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Atlantic/Stanley",untils:"-u63pac|dbvxqc|8zzw0|9q2s0|8zzw0|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|4xp80|l1pus0|7k580|b5rw0|77c40|biqk0|id6s0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|77c40|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5xg0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|77c40|biqk0|77c40|biqk0|77c40|Infinity",offsets:"231.4|240|180|120",offsetIndices:"012121212121212323212121212121212121212121212121212121212121212121212"},{id:"Australia/ACT",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Adelaide",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Brisbane",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"01010101010101010"},{id:"Australia/Broken_Hill",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Canberra",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Currie",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Darwin",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity",offsets:"-570|-630",offsetIndices:"010101010"},{id:"Australia/Eucla",untils:"-rnstlc|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-525|-585",offsetIndices:"0101010101010101010"},{id:"Australia/Hobart",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/LHI",untils:"5tp880|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity",offsets:"-600|-630|-690|-660",offsetIndices:"0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313"},{id:"Australia/Lindeman",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010"},{id:"Australia/Lord_Howe",untils:"5tp880|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity",offsets:"-600|-630|-690|-660",offsetIndices:"0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313"},{id:"Australia/Melbourne",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/North",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity",offsets:"-570|-630",offsetIndices:"010101010"},{id:"Australia/NSW",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Perth",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-480|-540",offsetIndices:"0101010101010101010"},{id:"Australia/Queensland",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"01010101010101010"},{id:"Australia/South",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Sydney",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Tasmania",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Victoria",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/West",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-480|-540",offsetIndices:"0101010101010101010"},{id:"Australia/Yancowinna",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Brazil/Acre",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"Brazil/DeNoronha",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"129.6667|120|60",offsetIndices:"0121212121212121212121212121212121212121"},{id:"Brazil/East",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"186.4667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Brazil/West",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity",offsets:"240.0667|240|180",offsetIndices:"01212121212121212121212121212121"},{id:"Canada/Atlantic",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"254.4|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Canada/Central",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Eastern",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Mountain",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|ctzk40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"453.8667|420|360",offsetIndices:"0121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Canada/Newfoundland",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|90",offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Canada/Pacific",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Saskatchewan",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity",offsets:"418.6|420|360",offsetIndices:"012121212121212121212121221212121212121212121212121212"},{id:"Canada/Yukon",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"CET",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Chile/Continental",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Chile/EasterIsland",untils:"-jhfaew|ivmeuw|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|iq2o0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"437.4667|420|360|300",offsetIndices:"012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"CST6CDT",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Cuba",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity",offsets:"329.6|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"EET",untils:"3s9ms0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Egypt",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Eire",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8800|8a5c0|bvs00|8n400|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"25.35|-34.65|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"EST",untils:"Infinity",offsets:"300",offsetIndices:"0"},{id:"EST5EDT",untils:"-r0ev80|ast80|7x9g0|ast80|bmtus0|1tzb40|2dq40|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Etc/GMT-0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT-1",untils:"Infinity",offsets:"-60",offsetIndices:"0"},{id:"Etc/GMT-10",untils:"Infinity",offsets:"-600",offsetIndices:"0"},{id:"Etc/GMT-11",untils:"Infinity",offsets:"-660",offsetIndices:"0"},{id:"Etc/GMT-12",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Etc/GMT-13",untils:"Infinity",offsets:"-780",offsetIndices:"0"},{id:"Etc/GMT-14",untils:"Infinity",offsets:"-840",offsetIndices:"0"},{id:"Etc/GMT-2",untils:"Infinity",offsets:"-120",offsetIndices:"0"},{id:"Etc/GMT-3",untils:"Infinity",offsets:"-180",offsetIndices:"0"},{id:"Etc/GMT-4",untils:"Infinity",offsets:"-240",offsetIndices:"0"},{id:"Etc/GMT-5",untils:"Infinity",offsets:"-300",offsetIndices:"0"},{id:"Etc/GMT-6",untils:"Infinity",offsets:"-360",offsetIndices:"0"},{id:"Etc/GMT-7",untils:"Infinity",offsets:"-420",offsetIndices:"0"},{id:"Etc/GMT-8",untils:"Infinity",offsets:"-480",offsetIndices:"0"},{id:"Etc/GMT-9",untils:"Infinity",offsets:"-540",offsetIndices:"0"},{id:"Etc/GMT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT+0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT+1",untils:"Infinity",offsets:"60",offsetIndices:"0"},{id:"Etc/GMT+10",untils:"Infinity",offsets:"600",offsetIndices:"0"},{id:"Etc/GMT+11",untils:"Infinity",offsets:"660",offsetIndices:"0"},{id:"Etc/GMT+12",untils:"Infinity",offsets:"720",offsetIndices:"0"},{id:"Etc/GMT+2",untils:"Infinity",offsets:"120",offsetIndices:"0"},{id:"Etc/GMT+3",untils:"Infinity",offsets:"180",offsetIndices:"0"},{id:"Etc/GMT+4",untils:"Infinity",offsets:"240",offsetIndices:"0"},{id:"Etc/GMT+5",untils:"Infinity",offsets:"300",offsetIndices:"0"},{id:"Etc/GMT+6",untils:"Infinity",offsets:"360",offsetIndices:"0"},{id:"Etc/GMT+7",untils:"Infinity",offsets:"420",offsetIndices:"0"},{id:"Etc/GMT+8",untils:"Infinity",offsets:"480",offsetIndices:"0"},{id:"Etc/GMT+9",untils:"Infinity",offsets:"540",offsetIndices:"0"},{id:"Etc/GMT0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Greenwich",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/UCT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Universal",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/UTC",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Zulu",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Europe/Amsterdam",untils:"-s0dvkk|7v980|a51o0|7x6o0|a2yo0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9b6o0|a2yo0|c51c0|6l1c0|902o0|9q000|ci000|682o0|bgyo0|79400|bitc0|779c0|bmio0|7gio0|bbeo0|7eo00|bd9c0|7ctc0|bf400|7ayo0|bvs00|6uao0|bko00|7idc0|b9k00|7gio0|bbeo0|7eo00|bf400|7ayo0|btxc0|21uc0|4uaz8|bitc0|779c0|bko00|7idc0|bd3s0|1aarpc|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-19.5333|-79.5333|-80|-20|-120|-60",offsetIndices:"010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545"},{id:"Europe/Andorra",untils:"-c4xmo0|k3ctg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Astrakhan",untils:"-nu2zkc|37bv8c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-192.2|-180|-240|-300",offsetIndices:"012323232323232323212121212121212121212121212121212121212121212"},{id:"Europe/Athens",untils:"-rvv0cg|8bjasg|2vmk0|4hiw40|16ik0|scog0|7lx40|9o2k0|9eys0|4atzw0|6djw0|bplus0|bq800|71uw0|9d1c0|902o0|91xc0|9o5c0|905g0|9qgo0|9akg0|9iik0|99980|9dcg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-94.8667|-120|-180|-60",offsetIndices:"012121313121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Belfast",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Belgrade",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Berlin",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|2o7w0|6bs00|2txg0|7k800|91xc0|9b9g0|1sqk0|2inw0|51k40|a2yo0|8n400|9q000|902o0|fx91c0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|-180",offsetIndices:"01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Bratislava",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|b5uo0|7vc00|2vs40|4bk00|2vmk0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|0",offsetIndices:"01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Brussels",untils:"-ss5uo0|rrx80|7vc00|a4yw0|7x6o0|asw00|7x6o0|2wh40|5omo0|b5uo0|6uao0|cyo00|7ayo0|bko00|7rmo0|a2yo0|a2yo0|8n400|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|90b00|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|4deo0|1a36k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0121212101010101010101010101010101010101010101010101212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Bucharest",untils:"-k29zi0|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|kp0dc0|6h980|9q000|905g0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-104.4|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Budapest",untils:"-s0e080|7ves0|a4yw0|7x6o0|a31g0|8n180|autg0|bgvw0|b5jeg0|th9k0|7k800|9q000|9d1c0|9d1c0|awd00|9ew00|7q0c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|a4tc0|9q000|1va2g0|6u7w0|bxpg0|6u7w0|cjxg0|64ak0|cluw0|64g40|br3ek0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Busingen",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Chisinau",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-115|-104.4|-120|-180|-60|-240",offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Copenhagen",untils:"-rzo2w0|75bw0|cbs2w0|1aco80|7k800|9q000|9d1c0|9d1c0|9d1c0|6y000|dbmo0|6bs00|clpc0|51hc0|e1k00|4oio0|giutc0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Dublin",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8800|8a5c0|bvs00|8n400|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"25.35|-34.65|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Gibraltar",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|d0tp80|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101012121212121010121010101010101010101012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Guernsey",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Helsinki",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99.8167|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Isle_of_Man",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Istanbul",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"Europe/Jersey",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Kaliningrad",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|el00|z6o0|9kd80|82tg0|i9avw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-60|-120|-180|-240",offsetIndices:"01010101010101121232323232323232322121212121212121212121212121212121212121212121"},{id:"Europe/Kiev",untils:"-nu11ng|37a03g|5vd6k0|kzv40|7k800|9q000|1oyg0|jipzs0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|51ek0|neqw0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-122.0667|-120|-180|-60|-240",offsetIndices:"0121313242424242424242424242121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Kirov",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-198.8|-180|-240|-300",offsetIndices:"01232323232323232321212121212121212121212121212121212121212121"},{id:"Europe/Lisbon",untils:"-u9rhc0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"36.75|0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Ljubljana",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/London",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Luxembourg",untils:"-y89550|68l290|75hg0|ast80|796s0|at1k0|7x6o0|3lh40|4zmo0|b6300|6u2c0|cytk0|7at40|bktk0|7rh40|a31g0|a2vw0|8n9k0|8zx40|9q2s0|9et80|9b9g0|a2vw0|8n6s0|9px80|905g0|a2vw0|905g0|a2vw0|8ncc0|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|42ao0|1aeak0|7k800|9q000|9d1c0|8n400|a2yo0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-24.6|-60|-120|0",offsetIndices:"0121212131313131313131313131313131313131313131313131212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Madrid",untils:"-qzlus0|8yas0|9cyk0|9eys0|2d2vw0|8sqs0|ssyk0|8n6s0|9px80|905g0|a2yo0|902o0|a2vw0|8n6s0|40lh80|5k2s0|9cyk0|1frw0|7z1c0|j1c80|8a2k0|13yt80|685g0|brzw0|8n6s0|a2vw0|8n6s0|a2vw0|8n6s0|a2vw0|8n6s0|1clx80|7x9g0|cswik0|905g0|9px80|905g0|8zzw0|9d440|9px80|905g0|9q5k0|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101210121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Malta",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9b6o0|8n400|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|9b6o0|9d1c0|ahs00|7m2o0|b45k0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|a4w40|8y580|9q2s0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Mariehamn",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99.8167|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Minsk",untils:"-nu113c|379zjc|5r1mk0|pbf40|7k800|9q000|9d1c0|4oac0|j6dmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sg2o0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|Infinity",offsets:"-110|-120|-180|-60|-240",offsetIndices:"01213131242424242424242424221212121212121212121212121212121212121212"},{id:"Europe/Monaco",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|mdbo0|7x3w0|7x9g0|c8w80|7k800|9q000|9d1c0|9nzs0|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"01212121212121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Moscow",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jwk7|2cvk0|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-150.2833|-151.3167|-211.3167|-271.3167|-240|-180|-300|-120",offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545"},{id:"Europe/Nicosia",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-133.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Oslo",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Paris",untils:"-uozn1x|2qx1lx|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|5p8w0|18rcc0|7k800|9q000|9d1c0|7efo0|29k40|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"0121212121212121212121212121212121212121212121212123232332323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Podgorica",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Prague",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|b5uo0|7vc00|2vs40|4bk00|2vmk0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|0",offsetIndices:"01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Riga",untils:"-qznlky|7x6o0|a4tc0|2mg00|3myns0|7fhlky|gz180|p5v40|7k800|9q000|9d1c0|9d1c0|k7s0|j14ns0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|asw00|7x6o0|asw00|7x6o0|b5uo0|qaao0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-96.5667|-156.5667|-120|-180|-60|-240",offsetIndices:"010102324242435353535353535353323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Rome",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Samara",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|jt1g0|89zs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-200.3333|-180|-240|-300",offsetIndices:"0123232323232323232121232323232323232323232323232323232323212"},{id:"Europe/San_Marino",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Sarajevo",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Saratov",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|13m040|Infinity",offsets:"-184.3|-180|-240|-300",offsetIndices:"012323232323232321212121212121212121212121212121212121212121212"},{id:"Europe/Simferopol",untils:"-nu12ao|37a0qo|5xiyk0|iu340|7k800|9q000|9d1c0|iac0|jajmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|wrjw0|9cyk0|9d440|9cyk0|9d440|1sqk0|7k580|9d440|9cyk0|9q2s0|at4c0|7x9g0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x3w0|asqg0|Infinity",offsets:"-136|-120|-180|-60|-240",offsetIndices:"012131312424242424242424242121212424242212121212121212121212121212121212142"},{id:"Europe/Skopje",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Sofia",untils:"-e6dzw0|7k800|9q000|9d1c0|9d1c0|9d440|hqq240|9eys0|9o2k0|92040|9o2k0|90880|9pug0|90b00|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-120|-60|-180",offsetIndices:"01010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020"},{id:"Europe/Stockholm",untils:"-rzo2w0|75hg0|x5bew0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Tallinn",untils:"-r3exx0|3re10|7x6o0|et6g0|ygov0|a1zgd0|ktx80|l94g0|7k800|9q000|9d1c0|8uac0|j27mk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asys0|7x6o0|b5uo0|19dc00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99|-60|-120|-180|-240",offsetIndices:"012102321212343434343434343433232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Tirane",untils:"-t85vo8|dt2gw8|18pew0|7k800|m800|g7ot40|7rjw0|autg0|7x3w0|ayis0|7x3w0|b5xg0|7k580|b42s0|7lzw0|b42s0|7lzw0|b42s0|7x3w0|ahus0|7x3w0|b5xg0|7x3w0|a4w40|8jbw0|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-79.3333|-60|-120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Tiraspol",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-115|-104.4|-120|-180|-60|-240",offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Ulyanovsk",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-193.6|-180|-240|-300|-120",offsetIndices:"01232323232323232321214121212121212121212121212121212121212121212"},{id:"Europe/Uzhgorod",untils:"-fizzw0|1cm000|7k800|9q000|9d1c0|al900|cnms0|int140|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|e1sc0|iprk0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|-180|-240",offsetIndices:"010101023232323232323232320121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Vaduz",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vatican",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vienna",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|t6000|8a5c0|a7a800|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|iio0|ivmo0|91xc0|9b6o0|9d1c0|a2yo0|8n400|gfyyg0|8zzw0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vilnius",untils:"-rns980|1g224o|e75nc|4kqk0|acbs40|gpp40|pits0|7k800|9q000|9d1c0|65zo0|j4vx80|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x9g0|asw00|7x6o0|b5uo0|1s3eo0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-95.6|-60|-120|-180|-240",offsetIndices:"012324323234545454545454545443434343434343434332334343434343434343434343434343434343434343434343434343434343434343434343"},{id:"Europe/Volgograd",untils:"-q3cw84|5glrw4|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|239c40|Infinity",offsets:"-177.6667|-180|-240|-300",offsetIndices:"012323232323232321212121212121212121212121212121212121212121212"},{id:"Europe/Warsaw",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-60|-120|-180",offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Zagreb",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Zaporozhye",untils:"-nu12hc|37a0xc|5u1180|mc0g0|7k800|9q000|12qg0|jjc7s0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9cvs0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-140|-120|-180|-60|-240",offsetIndices:"01213132424242424242424242422121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Zurich",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GB-Eire",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GB",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GMT-0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT+0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Greenwich",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Hongkong",untils:"-y0i0s0|j44dk0|5k000|4d4y0|2195i0|7x3w0|bj320|6uao0|bvs00|7x6o0|9d1c0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-456.7|-480|-540|-510",offsetIndices:"0123212121212121212121212121212121212121212121212121212121212121212121"},{id:"HST",untils:"Infinity",offsets:"600",offsetIndices:"0"},{id:"Iceland",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity",offsets:"88|60|0",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212"},{id:"Indian/Antananarivo",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Chagos",untils:"-wvpc2s|1ag64us|Infinity",offsets:"-289.6667|-300|-360",offsetIndices:"012"},{id:"Indian/Christmas",untils:"Infinity",offsets:"-420",offsetIndices:"0"},{id:"Indian/Cocos",untils:"Infinity",offsets:"-390",offsetIndices:"0"},{id:"Indian/Comoro",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Kerguelen",untils:"-afrs00|Infinity",offsets:"0|-300",offsetIndices:"01"},{id:"Indian/Mahe",untils:"-x6pjlo|Infinity",offsets:"-221.8|-240",offsetIndices:"01"},{id:"Indian/Maldives",untils:"-57x6y0|Infinity",offsets:"-294|-300",offsetIndices:"01"},{id:"Indian/Mauritius",untils:"-wvp9bc|13jnu7c|8bx80|dd0wc0|7x3w0|Infinity",offsets:"-230|-240|-300",offsetIndices:"012121"},{id:"Indian/Mayotte",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Reunion",untils:"-uks29s|Infinity",offsets:"-221.8667|-240",offsetIndices:"01"},{id:"Iran",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity",offsets:"-205.7333|-210|-240|-300|-270",offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141"},{id:"Israel",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Jamaica",untils:"-u85og2|wbl182|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity",offsets:"307.1667|300|240",offsetIndices:"0121212121212121212121"},{id:"Japan",untils:"-bb4900|6uao0|afxc0|8a5c0|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-540|-600",offsetIndices:"010101010"},{id:"Kwajalein",untils:"-h817w0|27sas0|1hjus0|ddxug0|cgv6k0|Infinity",offsets:"-660|-600|-540|720|-720",offsetIndices:"012034"},{id:"Libya",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity",offsets:"-52.7333|-60|-120",offsetIndices:"012121212121212121212121212122122"},{id:"MET",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Mexico/BajaNorte",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Mexico/BajaSur",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"425.6667|420|360|480",offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Mexico/General",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"396.6|420|360|300",offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"MST",untils:"Infinity",offsets:"420",offsetIndices:"0"},{id:"MST7MDT",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Navajo",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"NZ-CHAT",untils:"-ciya10|f1tq90|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-735|-765|-825",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"NZ",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Apia",untils:"-usiiv4|kcrmt4|vp3la0|9odo0|902o0|4zbk0|4qog0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"686.9333|690|660|600|-840|-780",offsetIndices:"01232345454545454545454545454545454545454545454545454545454"},{id:"Pacific/Auckland",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Bougainville",untils:"-ecsh40|1n05g0|1071c40|Infinity",offsets:"-600|-540|-660",offsetIndices:"0102"},{id:"Pacific/Chatham",untils:"-ciya10|f1tq90|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-735|-765|-825",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Pacific/Chuuk",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Pacific/Easter",untils:"-jhfaew|ivmeuw|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|iq2o0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"437.4667|420|360|300",offsetIndices:"012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Efate",untils:"-u964i4|11f4ba4|9cyk0|awo40|7tek0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|64ak0|e1ms0|4ofw0|Infinity",offsets:"-673.2667|-660|-720",offsetIndices:"0121212121212121212121"},{id:"Pacific/Enderbury",untils:"535io0|7yiqk0|Infinity",offsets:"720|660|-780",offsetIndices:"012"},{id:"Pacific/Fakaofo",untils:"lx0jw0|Infinity",offsets:"660|-780",offsetIndices:"01"},{id:"Pacific/Fiji",untils:"-sa2x4w|17bs00w|64dc0|cyo00|5reo0|53a5c0|64dc0|asw00|6uao0|bvs00|4oio0|e1k00|4oio0|eeio0|4bh80|erk40|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3lmo0|fheo0|38o00|fheo0|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|f4g00|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|f4g00|3lmo0|Infinity",offsets:"-715.7333|-720|-780",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121"},{id:"Pacific/Funafuti",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Galapagos",untils:"-kcr62o|spdryo|3lsas0|3jp80|Infinity",offsets:"358.4|300|360",offsetIndices:"01212"},{id:"Pacific/Gambier",untils:"-tvndoc|Infinity",offsets:"539.8|540",offsetIndices:"01"},{id:"Pacific/Guadalcanal",untils:"-tvowac|Infinity",offsets:"-639.8|-660",offsetIndices:"01"},{id:"Pacific/Guam",untils:"-en8eg0|1dl9g0|7s1k40|txp80|3frms0|qdrpo|7kgac|3ljw0|c8tg0|6u7w0|bvus0|6u7w0|16uo40|3ljw0|16aas0|4ivxo|cls2c|6h980|c65zw0|Infinity",offsets:"-600|-540|-660",offsetIndices:"01020202020202020200"},{id:"Pacific/Honolulu",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"Pacific/Johnston",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"Pacific/Kiritimati",untils:"535eyo|7yirhc|Infinity",offsets:"640|600|-840",offsetIndices:"012"},{id:"Pacific/Kosrae",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|cm2540|f9l3w0|Infinity",offsets:"-660|-540|-600|-720",offsetIndices:"01021030"},{id:"Pacific/Kwajalein",untils:"-h817w0|27sas0|1hjus0|ddxug0|cgv6k0|Infinity",offsets:"-660|-600|-540|720|-720",offsetIndices:"012034"},{id:"Pacific/Majuro",untils:"-su52k0|29hhk0|9cmd40|27sas0|1h6w40|deat40|Infinity",offsets:"-660|-540|-600|-720",offsetIndices:"0102103"},{id:"Pacific/Marquesas",untils:"-tvncu0|Infinity",offsets:"558|570",offsetIndices:"01"},{id:"Pacific/Midway",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Nauru",untils:"-pjxiws|ba66ys|1kwca0|hfzda0|Infinity",offsets:"-667.6667|-690|-540|-720",offsetIndices:"01213"},{id:"Pacific/Niue",untils:"-9wyz6o|ehcj4o|Infinity",offsets:"680|690|660",offsetIndices:"012"},{id:"Pacific/Norfolk",untils:"-9x0ps0|cfj8q0|6hc00|l6nk00|239aq0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-672|-690|-750|-660|-720",offsetIndices:"012134343434343434343434343434343434343434"},{id:"Pacific/Noumea",untils:"-u9645o|ye0ixo|4dbw0|ecqs0|4f6k0|99p700|4oio0|Infinity",offsets:"-665.8|-660|-720",offsetIndices:"01212121"},{id:"Pacific/Pago_Pago",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Palau",untils:"Infinity",offsets:"-540",offsetIndices:"0"},{id:"Pacific/Pitcairn",untils:"es2cy0|Infinity",offsets:"510|480",offsetIndices:"01"},{id:"Pacific/Pohnpei",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|Infinity",offsets:"-660|-540|-600",offsetIndices:"010210"},{id:"Pacific/Ponape",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|Infinity",offsets:"-660|-540|-600",offsetIndices:"010210"},{id:"Pacific/Port_Moresby",untils:"Infinity",offsets:"-600",offsetIndices:"0"},{id:"Pacific/Rarotonga",untils:"4mj960|5rbw0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|Infinity",offsets:"630|570|600",offsetIndices:"012121212121212121212121212"},{id:"Pacific/Saipan",untils:"-en8eg0|1dl9g0|7s1k40|txp80|3frms0|qdrpo|7kgac|3ljw0|c8tg0|6u7w0|bvus0|6u7w0|16uo40|3ljw0|16aas0|4ivxo|cls2c|6h980|c65zw0|Infinity",offsets:"-600|-540|-660",offsetIndices:"01020202020202020200"},{id:"Pacific/Samoa",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Tahiti",untils:"-tvnayw|Infinity",offsets:"598.2667|600",offsetIndices:"01"},{id:"Pacific/Tarawa",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Tongatapu",untils:"-f4vrlc|uo2edc|8fpc0|bvs00|4bh80|eelg0|4bh80|7pmis0|3lmo0|Infinity",offsets:"-740|-780|-840",offsetIndices:"0121212121"},{id:"Pacific/Truk",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Pacific/Wake",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Wallis",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Yap",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Poland",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-60|-120|-180",offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Portugal",untils:"-u9rhc0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"36.75|0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"PRC",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"PST8PDT",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"ROC",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010101010101010"},{id:"ROK",untils:"-w8966g|1yh18g|hkx5a0|1faao0|5cik0|ae5g0|8a2k0|ae5g0|8bx80|c8tg0|6h980|1bj6s0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity",offsets:"-507.8667|-510|-540|-600|-570",offsetIndices:"012232323232141414141414123232"},{id:"Singapore",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Turkey",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"UCT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Universal",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"US/Alaska",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"600|540|480",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Aleutian",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Arizona",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity",offsets:"420|360",offsetIndices:"01010101010"},{id:"US/Central",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/East-Indiana",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Eastern",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Hawaii",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"US/Indiana-Starke",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Michigan",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlbxo|71s2c|9d440|9cyk0|2cmdg0|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"332.1833|360|300|240",offsetIndices:"0123323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"US/Mountain",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Pacific-New",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Pacific",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Samoa",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"UTC",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"W-SU",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jwk7|2cvk0|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-150.2833|-151.3167|-211.3167|-271.3167|-240|-180|-300|-120",offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545"},{id:"WET",untils:"3s9ms0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Zulu",untils:"Infinity",offsets:"0",offsetIndices:"0"}],getDisplayedTimeZones:function(t){var n=this._timeZones.map(e=>{var i=P9e(e),r=this.getUtcOffset(i,t);return{offset:r,title:"(GMT ".concat(this.formatOffset(r),") ").concat(this.formatId(e.id)),id:e.id}});return Ha(n).sortBy("offset").toArray()},formatOffset:function(t){var n=Math.floor(t),e=t-n;return(gh(t)>=0?"+":"-")+"0".concat(Math.abs(n)).slice(-2)+(e>0?":".concat(60*e):":00")},formatId:function(t){return t.split("/").join(" - ").split("_").join(" ")},getTimezoneById:function(t){if(t){for(var n=this._timeZones,e=0;e<n.length;e++)if(n[e].id===t)return n[e];Wr.log("W0009",t)}},getTimeZoneOffsetById:function(t,n){var e=nQ.tryGet(t);return e?this.getUtcOffset(e,n):void 0},getTimeZoneDeclarationTuple:function(t,n){var e=nQ.tryGet(t);return e?this.getTimeZoneDeclarationTupleCore(e,n):[]},getTimeZoneDeclarationTupleCore:function(t,n){for(var e=t.offsetList,i=t.offsetIndexList,r=t.dateList,o=[],a=0;a<r.length;a++){var s=r[a],l=new Date(s).getFullYear();if(l===n&&o.push({date:s,offset:-e[i[a+1]]/60}),l>n)break}return o},getUtcOffset:function(t,n){for(var e=t.offsetList,i=t.offsetIndexList,r=t.dateList,a=r.length-1-1;a>=0&&n<r[a];)a--;var s=e[i[a+1]];return-s/60||s}};const OM=R9e;var xdn=bt.dateToMilliseconds;class wdn{constructor(n){this._source=new Date(n.getTime?n.getTime():n)}get source(){return this._source}result(){return this._source}getTimezoneOffset(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this._source.getTimezoneOffset();return"minute"===n?e*xdn("minute"):e}getTime(){return this._source.getTime()}setTime(n){return this._source.setTime(n),this}addTime(n){return this._source.setTime(this._source.getTime()+n),this}setMinutes(n){return this._source.setMinutes(n),this}addMinutes(n){return this._source.setMinutes(this._source.getMinutes()+n),this}subtractMinutes(n){return this._source.setMinutes(this._source.getMinutes()-n),this}}var j8=bt.dateToMilliseconds,iQ=t=>new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes())),L9e=(t,n,e,i)=>K8(e,i)-K8(t,n),K8=(t,n)=>new Date(t).getTimezoneOffset()-new Date(n).getTimezoneOffset(),rQ=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if("string"==typeof t){var e=iQ(n);return OM.getTimeZoneOffsetById(t,e.getTime())}return t},$8=(t,n,e)=>rQ(e,t)-rQ(e,n),B9e=t=>{var n=new Date(new Date(t).setHours(0,0,0,0)),e=new Date(new Date(t).setHours(23,59,59,0));return n.getTimezoneOffset()-e.getTimezoneOffset()!=0},oQ=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return 6e4*t.getTimezoneOffset()},N9e=()=>{var[t,n]=Vdn();return t.getTimezoneOffset()!==n.getTimezoneOffset()},V9e=(t,n)=>{var e=n.getFullYear(),i=R=>-R.getTimezoneOffset()/60,r=R=>new Date(R-36e5),o=OM.getTimeZoneDeclarationTuple(t,e),[a,s]=o;if(o.length<2)return OM.getTimeZoneOffsetById(t,n)===i(n)&&!N9e();var S=i(new Date(a.date)),T=i(new Date(s.date));return!(S!==a.offset||S===i(r(a.date))||T!==s.offset||T===i(r(s.date)))},Vdn=()=>{var t=new Date(Date.now()),n=new Date,e=new Date;return n.setFullYear(t.getFullYear(),0,1),e.setFullYear(t.getFullYear(),6,1),[n,e]},zdn={getDaylightOffset:K8,getDaylightOffsetInMs:(t,n)=>K8(t,n)*j8("minute"),getTimezoneOffsetChangeInMinutes:L9e,getTimezoneOffsetChangeInMs:(t,n,e,i)=>L9e(t,n,e,i)*j8("minute"),calculateTimezoneByValue:rQ,getCorrectedDateByDaylightOffsets:(t,n,e,i,r)=>{var s=$8(t,n,i)-$8(t,n,r);return new Date(e.getTime()-s*j8("hour"))},isSameAppointmentDates:(t,n)=>(n=new Date(n.getTime()-1),bt.sameDate(t,n)),correctRecurrenceExceptionByTimezone:function(t,n,e,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=(t.getTimezoneOffset()-n.getTimezoneOffset())/60;return i?o=$8(n,t,i):e&&(o=$8(n,t,e)),new Date(t.getTime()+(r?-1:1)*o*j8("hour"))},getClientTimezoneOffset:oQ,getDiffBetweenClientTimezoneOffsets:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return oQ(t)-oQ(n)},createUTCDateWithLocalOffset:t=>t?new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds())):null,createDateFromUTCWithLocalOffset:t=>{var n=(t=>new wdn(t))(t),e=n.getTimezoneOffset();return n.addTime(n.getTimezoneOffset("minute")),n.subtractMinutes(e-n.getTimezoneOffset()),n.source},createUTCDate:iQ,isTimezoneChangeInDate:B9e,getDateWithoutTimezoneChange:t=>{var n=new Date(t);if(B9e(n)){var e=new Date(n);return new Date(e.setDate(e.getDate()+1))}return n},hasDSTInLocalTimeZone:N9e,isEqualLocalTimeZone:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(Intl){var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e===t)return!0}return V9e(t,n)},isEqualLocalTimeZoneByDeclaration:V9e,getTimeZones:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,n=iQ(t);return OM.getDisplayedTimeZones(n.getTime())},setOffsetsToDate:(t,n)=>{var e=n.reduce((i,r)=>i+r,t.getTime());return new Date(e)}};const qr=zdn;var Udn=bt.dateToMilliseconds,Wdn=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],Gdn=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],jdn={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},H9e=[],aQ=null;function wf(){return aQ||(aQ=new $dn),aQ}class $dn{constructor(){this.rRule=null,this.rRuleSet=null,this.validator=new qdn}generateDates(n){var e=this.evalRecurrenceRule(n.rule),i=e.rule;if(!e.isValid||!i.freq)return[];var r=this._createRruleIntervalParams(n);return this._initializeRRule(n,r.startIntervalDate,i.until),this.rRuleSet.between(r.minViewDate,r.maxViewDate,!0).filter(o=>o.getTime()+r.appointmentDuration>=r.minViewTime).map(o=>this._convertRruleResult(r,n,o))}_createRruleIntervalParams(n){var{start:e,min:i,max:r,appointmentTimezoneOffset:o}=n,a=qr.getClientTimezoneOffset(e),s=qr.getClientTimezoneOffset(i),l=qr.getClientTimezoneOffset(r),u=n.end?n.end.getTime()-n.start.getTime():0,f=qr.setOffsetsToDate(n.start,[-a,o]),S=n.min.getTime()-s+o,T=new Date(S-u),R=qr.setOffsetsToDate(n.max,[-l,o]),L=qr.getDiffBetweenClientTimezoneOffsets(n.start,f);return{startIntervalDate:f,minViewTime:S,minViewDate:T,maxViewDate:R,startIntervalDateDSTShift:L<0?0:L,appointmentDuration:u}}_convertRruleResult(n,e,i){var r=qr.getClientTimezoneOffset(i),a=qr.setOffsetsToDate(i,[r,r/36e5<=-13?-864e5:0,-e.appointmentTimezoneOffset,n.startIntervalDateDSTShift]),s=qr.getDiffBetweenClientTimezoneOffsets(a,i),l=s<0,u=qr.setOffsetsToDate(a,[s]),f=qr.getDiffBetweenClientTimezoneOffsets(u,a);return f&&l?new Date(u.getTime()+f):u}hasRecurrence(n){return!!this.generateDates(n).length}evalRecurrenceRule(n){var e={rule:{},isValid:!1};return n&&(e.rule=this._parseRecurrenceRule(n),e.isValid=this.validator.validateRRule(e.rule,n)),e}isValidRecurrenceRule(n){return this.evalRecurrenceRule(n).isValid}daysFromByDayRule(n){var e=[];return n.byday&&(e=Array.isArray(n.byday)?n.byday:n.byday.split(",")),e.map(i=>{var r=i.match(/[A-Za-z]+/);return!!r&&r[0]}).filter(i=>!!i)}getAsciiStringByDate(n){var e=n.getTimezoneOffset()*Udn("minute"),i=new Date(n.getTime()+e);return i.getFullYear()+("0"+(i.getMonth()+1)).slice(-2)+("0"+i.getDate()).slice(-2)+"T"+("0"+i.getHours()).slice(-2)+("0"+i.getMinutes()).slice(-2)+("0"+i.getSeconds()).slice(-2)+"Z"}getRecurrenceString(n){if(n&&n.freq){var e="";for(var i in n){var r=n[i];"interval"===i&&r<2||("until"===i&&(r=this.getAsciiStringByDate(r)),e+=i+"="+r+";")}return(e=e.substring(0,e.length-1)).toUpperCase()}}_parseExceptionToRawArray(n){return n.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/)}getDateByAsciiString(n){if("string"!=typeof n)return n;var e=this._parseExceptionToRawArray(n);if(!e)return null;var[i,r,o,a,s,l,u]=this._createDateTuple(e);return u?new Date(Date.UTC(i,r,o,a,s,l)):new Date(i,r,o,a,s,l)}_dispose(){this.rRuleSet&&(delete this.rRuleSet,this.rRuleSet=null),this.rRule&&(delete this.rRule,this.rRule=null)}_getTimeZoneOffset(){return(new Date).getTimezoneOffset()}_initializeRRule(n,e,i){var r=fr.parseString(n.rule),o=n.firstDayOfWeek;r.dtstart=e,!r.wkst&&o&&(r.wkst=[6,0,1,2,3,4,5][o]),i&&(r.until=qr.setOffsetsToDate(i,[-qr.getClientTimezoneOffset(i),n.appointmentTimezoneOffset])),this._createRRule(r),n.exception&&n.exception.split(",").map(l=>this.getDateByAsciiString(l)).forEach(l=>{n.getPostProcessedException&&(l=n.getPostProcessedException(l));var u=qr.setOffsetsToDate(l,[-qr.getClientTimezoneOffset(l),n.appointmentTimezoneOffset]);this.rRuleSet.exdate(u)})}_createRRule(n){this._dispose(),this.rRuleSet=new k9e,this.rRule=new fr(n),this.rRuleSet.rrule(this.rRule)}_parseRecurrenceRule(n){for(var e={},i=n.split(";"),r=0,o=i.length;r<o;r++){var a=i[r].split("=");e[a[0].toLowerCase()]=a[1]}var u=parseInt(e.count);if(isNaN(u)||(e.count=u),e.interval){var f=parseInt(e.interval);isNaN(f)||(e.interval=f)}else e.interval=1;return e.freq&&e.until&&(e.until=this.getDateByAsciiString(e.until)),e}_createDateTuple(n){var e=void 0!==n[8];return n.shift(),void 0===n[3]?n.splice(3):(n.splice(3,1),n.splice(6)),n[1]--,n.unshift(null),[parseInt(n[1]),parseInt(n[2]),parseInt(n[3]),parseInt(n[4])||0,parseInt(n[5])||0,parseInt(n[6])||0,e]}}class qdn{validateRRule(n,e){return!(this._brokenRuleNameExists(n)||!Gdn.includes(n.freq)||this._wrongCountRule(n)||this._wrongIntervalRule(n)||this._wrongDayOfWeek(n)||this._wrongByMonthDayRule(n)||this._wrongByMonth(n)||this._wrongUntilRule(n))||(this._logBrokenRule(e),!1)}_wrongUntilRule(n){var e=!1,i=n.until;return void 0!==i&&!(i instanceof Date)&&(e=!0),e}_wrongCountRule(n){var e=!1,i=n.count;return i&&"string"==typeof i&&(e=!0),e}_wrongByMonthDayRule(n){var e=!1,i=n.bymonthday;return i&&isNaN(parseInt(i))&&(e=!0),e}_wrongByMonth(n){var e=!1,i=n.bymonth;return i&&isNaN(parseInt(i))&&(e=!0),e}_wrongIntervalRule(n){var e=!1,i=n.interval;return i&&"string"==typeof i&&(e=!0),e}_wrongDayOfWeek(n){var e=n.byday,i=wf().daysFromByDayRule(n),r=!1;return""===e&&(r=!0),we(i,function(o,a){if(!Object.prototype.hasOwnProperty.call(jdn,a))return r=!0,!1}),r}_brokenRuleNameExists(n){var e=!1;return we(n,function(i){if(!Wdn.includes(i))return e=!0,!1}),e}_logBrokenRule(n){H9e.includes(n)||(Wr.log("W0006",n),H9e.push(n))}}var lD="-label",q8="-wrapper",Pb="dx-recurrence-repeat-end",U9e="dx-recurrence-selectbox-freq",sQ="dx-recurrence-numberbox-interval",W9e="dx-recurrence-repeat-on",Y8=[{recurrence:"dxScheduler-recurrenceHourly",value:"hourly"},{recurrence:"dxScheduler-recurrenceDaily",value:"daily"},{recurrence:"dxScheduler-recurrenceWeekly",value:"weekly"},{recurrence:"dxScheduler-recurrenceMonthly",value:"monthly"},{recurrence:"dxScheduler-recurrenceYearly",value:"yearly"}],rcn=Y8.map(t=>({text:()=>ye.format(t.recurrence),value:t.value})),ocn=[{type:"never"},{type:"until"},{type:"count"}],TM=["SU","MO","TU","WE","TH","FR","SA"];class acn{constructor(n){this._recurrenceProcessor=wf(),this._recurrenceRule=this._recurrenceProcessor.evalRecurrenceRule(n).rule}makeRules(n){this._recurrenceRule=this._recurrenceProcessor.evalRecurrenceRule(n).rule}makeRule(n,e){!e||Array.isArray(e)&&!e.length?delete this._recurrenceRule[n]:Z(n)&&("until"===n&&delete this._recurrenceRule.count,"count"===n&&delete this._recurrenceRule.until,this._recurrenceRule[n]=e)}getRepeatEndRule(){var n=this._recurrenceRule;return"count"in n?"count":"until"in n?"until":"never"}getRecurrenceString(){return this._recurrenceProcessor.getRecurrenceString(this._recurrenceRule)}getRules(){return this._recurrenceRule}getDaysFromByDayRule(){return this._recurrenceProcessor.daysFromByDayRule(this._recurrenceRule)}}class G9e extends Ru{_getDefaultOptions(){var n=super._getDefaultOptions();return se(n,{value:null,startDate:new Date,firstDayOfWeek:void 0})}_getFirstDayOfWeek(){var n=this.option("firstDayOfWeek");return Z(n)?n:Gn.firstDayOfWeekIndex()}_createComponent(n,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._extendConfig(i,{readOnly:this.option("readOnly")}),super._createComponent(n,e,i)}_init(){super._init(),this._recurrenceRule=new acn(this.option("value"))}_render(){super._render(),this.$element().addClass("dx-recurrence-editor"),this._$container=U("<div>").addClass("dx-recurrence-editor-container").appendTo(this.$element()),this._prepareEditors(),this._renderEditors(this._$container)}getEditorByField(n){var e=this.getRecurrenceForm().getEditor(n);if(!Z(e))switch(n){case"byday":e=this._weekEditor;break;case"count":e=this._repeatCountEditor;break;case"until":e=this._repeatUntilDate}return e}_prepareEditors(){var n=(this._recurrenceRule.getRules().freq||Y8[1].value).toLowerCase();return this._editors=[this._createFreqEditor(n),this._createIntervalEditor(n),this._createRepeatOnLabel(n),{itemType:"group",cssClass:W9e,colCount:2,colCountByScreen:{xs:2},items:this._createRepeatOnEditor(n)},{itemType:"group",items:this._createRepeatEndEditor()}],this._editors}_createFreqEditor(n){return{dataField:"freq",name:"FREQ",editorType:"dxSelectBox",cssClass:U9e,editorOptions:{items:rcn,value:n,field:"freq",valueExpr:"value",displayExpr:"text",layout:"horizontal",elementAttr:{class:U9e},onValueChanged:e=>this._valueChangedHandler(e)},label:{text:ye.format("dxScheduler-editorLabelRecurrence")}}}_createIntervalEditor(n){var e=this._recurrenceRule.getRules().interval||1;return{itemType:"group",colCount:2,cssClass:"".concat(sQ).concat(q8),colCountByScreen:{xs:2},items:[{dataField:"interval",editorType:"dxNumberBox",editorOptions:{format:"#",width:70,min:1,field:"interval",value:e,showSpinButtons:!0,useLargeSpinButtons:!1,elementAttr:{class:sQ},onValueChanged:i=>this._valueChangedHandler(i)},label:{text:ye.format("dxScheduler-recurrenceRepeatEvery")}},{name:"intervalLabel",cssClass:"".concat(sQ).concat(lD),template:()=>ye.format("dxScheduler-recurrenceRepeat".concat(n.charAt(0).toUpperCase()).concat(n.substr(1).toLowerCase()))}]}}_createRepeatOnLabel(n){return{itemType:"group",cssClass:"".concat(W9e).concat(lD),items:[{name:"repeatOnLabel",colSpan:2,template:()=>ye.format("dxScheduler-recurrenceRepeatOn"),visible:n&&"daily"!==n&&"hourly"!==n}]}}_createRepeatOnEditor(n){return[this._createByDayEditor(n),this._createByMonthEditor(n),this._createByMonthDayEditor(n)]}_createByDayEditor(n){return{dataField:"byday",colSpan:2,template:(e,i)=>{var r=this._getFirstDayOfWeek(),o=this._daysOfWeekByRules(),a=Gn.getDayNames("abbreviated"),s=TM.slice(r).concat(TM.slice(0,r)),l=a.slice(r).concat(a.slice(0,r)).map((u,f)=>({text:u,key:s[f]}));this._$repeatOnWeek=U("<div>").addClass("dx-recurrence-button-group").appendTo(i),this._weekEditor=this._createComponent(this._$repeatOnWeek,GC,{items:l,field:"byday",selectionMode:"multiple",selectedItemKeys:o,keyExpr:"key",onSelectionChanged:u=>{var f=u.component.option("selectedItemKeys");this._recurrenceRule.makeRule("byday",f),this._changeEditorValue()}})},visible:"weekly"===n,label:{visible:!1}}}_createByMonthEditor(n){var e=Gn.getMonthNames("wide");return{dataField:"bymonth",editorType:"dxSelectBox",editorOptions:{field:"bymonth",items:[...Array(12)].map((r,o)=>({value:"".concat(o+1),text:e[o]})),value:this._monthOfYearByRules(),width:120,displayExpr:"text",valueExpr:"value",elementAttr:{class:"dx-recurrence-selectbox-month-of-year"},onValueChanged:r=>this._valueChangedHandler(r)},visible:"yearly"===n,label:{visible:!1}}}_createByMonthDayEditor(n){return{dataField:"bymonthday",editorType:"dxNumberBox",editorOptions:{min:1,max:31,format:"#",width:70,field:"bymonthday",showSpinButtons:!0,useLargeSpinButtons:!1,value:this._dayOfMonthByRules(),elementAttr:{class:"dx-recurrence-numberbox-day-of-month"},onValueChanged:e=>this._valueChangedHandler(e)},visible:"monthly"===n||"yearly"===n,label:{visible:!1}}}_createRepeatEndEditor(){var n=this._recurrenceRule.getRepeatEndRule();return[{dataField:"repeatEnd",editorType:"dxRadioGroup",editorOptions:{items:ocn,value:n,valueExpr:"type",field:"repeatEnd",itemTemplate:e=>"count"===e.type?this._renderRepeatCountEditor():"until"===e.type?this._renderRepeatUntilEditor():this._renderDefaultRepeatEnd(),layout:"vertical",elementAttr:{class:"dx-recurrence-radiogroup-repeat-type"},onValueChanged:e=>this._repeatEndValueChangedHandler(e)},label:{text:ye.format("dxScheduler-recurrenceEnd")}}]}_renderEditors(n){this._recurrenceForm=this._createComponent(n,vv,{items:this._editors,showValidationSummary:!1,scrollingEnabled:!0,showColonAfterLabel:!1,labelLocation:"top"}),this._disableRepeatEndParts()}_setAriaDescribedBy(n,e){var i="label-".concat(new Ni);n.setAria("describedby",i),n.setAria("id",i,e)}getRecurrenceForm(){return this._recurrenceForm}changeValueByVisibility(n){n?this.option("value")||this._handleDefaults():(this._recurrenceRule.makeRules(""),this.option("value",""))}_handleDefaults(){this._recurrenceRule.makeRule("freq",Y8[1].value),this._changeEditorValue()}_changeEditorValue(){this.option("value",this._recurrenceRule.getRecurrenceString()||"")}_daysOfWeekByRules(){var n=this._recurrenceRule.getDaysFromByDayRule();return n.length||(n=[TM[this.option("startDate").getDay()]]),n}_dayOfMonthByRules(){var n=this._recurrenceRule.getRules().bymonthday;return n||(n=this.option("startDate").getDate()),n}_monthOfYearByRules(){var n=this._recurrenceRule.getRules().bymonth;return n||(n=this.option("startDate").getMonth()+1),String(n)}_renderDefaultRepeatEnd(){var n=U("<div>").addClass(Pb+q8);return U("<div>").text(ye.format("dxScheduler-recurrenceNever")).addClass(Pb+lD).appendTo(n),n}_repeatEndValueChangedHandler(n){var e=n.value;this._disableRepeatEndParts(e),"until"===e&&this._recurrenceRule.makeRule(e,this._getUntilValue()),"count"===e&&this._recurrenceRule.makeRule(e,this._repeatCountEditor.option("value")),"never"===e&&(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until","")),this._changeEditorValue()}_disableRepeatEndParts(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._recurrenceRule.getRepeatEndRule();"until"===n&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!1)),"count"===n&&(this._repeatCountEditor.option("disabled",!1),this._repeatUntilDate.option("disabled",!0)),"never"===n&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!0))}_renderRepeatCountEditor(){var n=this._recurrenceRule.getRules().count||1,e=U("<div>").addClass(Pb+q8);return U("<div>").text(ye.format("dxScheduler-recurrenceAfter")).addClass(Pb+lD).appendTo(e),this._$repeatCountEditor=U("<div>").addClass("dx-recurrence-numberbox-repeat-count").appendTo(e),U("<div>").text(ye.format("dxScheduler-recurrenceRepeatCount")).addClass(Pb+lD).appendTo(e),this._repeatCountEditor=this._createComponent(this._$repeatCountEditor,af,{field:"count",format:"#",width:70,min:1,showSpinButtons:!0,useLargeSpinButtons:!1,value:n,onValueChanged:this._repeatCountValueChangeHandler.bind(this)}),e}_repeatCountValueChangeHandler(n){"count"===this._recurrenceRule.getRepeatEndRule()&&(this._recurrenceRule.makeRule("count",n.value),this._changeEditorValue())}_formatUntilDate(n){return this._recurrenceRule.getRules().until&&bt.sameDate(this._recurrenceRule.getRules().until,n)?n:bt.setToDayEnd(n)}_renderRepeatUntilEditor(){var n=this._recurrenceRule.getRules().until||this._formatUntilDate(new Date),e=U("<div>").addClass(Pb+q8);return U("<div>").text(ye.format("dxScheduler-recurrenceOn")).addClass(Pb+lD).appendTo(e),this._$repeatDateEditor=U("<div>").addClass("dx-recurrence-datebox-until-date").appendTo(e),this._repeatUntilDate=this._createComponent(this._$repeatDateEditor,Nke,{field:"until",value:n,type:"date",onValueChanged:this._repeatUntilValueChangeHandler.bind(this),calendarOptions:{firstDayOfWeek:this._getFirstDayOfWeek()},useMaskBehavior:!0}),e}_repeatUntilValueChangeHandler(n){if("until"===this._recurrenceRule.getRepeatEndRule()){var e=this._formatUntilDate(new Date(n.value));this._repeatUntilDate.option("value",e),this._recurrenceRule.makeRule("until",e),this._changeEditorValue()}}_valueChangedHandler(n){var{value:e,previousValue:i}=n,r=n.component.option("field");this.option("visible")?(this._recurrenceRule.makeRule(r,e),"freq"===r&&(this._makeRepeatOnRule(e),this._changeRepeatOnVisibility(e,i)),this._changeEditorValue()):this.option("value","")}_makeRepeatOnRule(n){("daily"===n||"hourly"===n)&&(this._recurrenceRule.makeRule("byday",""),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"weekly"===n&&(this._recurrenceRule.makeRule("byday",this._daysOfWeekByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"monthly"===n&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("byday","")),"yearly"===n&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",this._monthOfYearByRules()),this._recurrenceRule.makeRule("byday",""))}_optionChanged(n){var e,i,r,o;switch(n.name){case"readOnly":null===(e=this._recurrenceForm)||void 0===e||e.option("readOnly",n.value),null===(i=this._repeatCountEditor)||void 0===i||i.option("readOnly",n.value),null===(r=this._weekEditor)||void 0===r||r.option("readOnly",n.value),null===(o=this._repeatUntilDate)||void 0===o||o.option("readOnly",n.value),super._optionChanged(n);break;case"value":this._recurrenceRule.makeRules(n.value),this._changeRepeatIntervalLabel(),this._disableRepeatEndParts(),this._changeEditorsValue(this._recurrenceRule.getRules()),super._optionChanged(n);break;case"startDate":this._makeRepeatOnRule(this._recurrenceRule.getRules().freq),Z(this._recurrenceRule.getRecurrenceString())&&this._changeEditorValue();break;case"firstDayOfWeek":if(this._weekEditor){var a=Gn.getDayNames("abbreviated"),s=TM.slice(n.value).concat(TM.slice(0,n.value)),l=a.slice(n.value).concat(a.slice(0,n.value)).map((u,f)=>({text:u,key:s[f]}));this._weekEditor.option("items",l)}this._$repeatDateEditor&&this._repeatUntilDate.option("calendarOptions.firstDayOfWeek",this._getFirstDayOfWeek());break;default:super._optionChanged(n)}}_changeRepeatOnVisibility(n,e){n!==e&&(this._recurrenceForm.itemOption("byday","visible",!1),this._recurrenceForm.itemOption("bymonthday","visible",!1),this._recurrenceForm.itemOption("bymonth","visible",!1),this._recurrenceForm.itemOption("repeatOnLabel","visible",n&&"daily"!==n&&"hourly"!==n),"weekly"===n&&this._recurrenceForm.itemOption("byday","visible",!0),"monthly"===n&&this._recurrenceForm.itemOption("bymonthday","visible",!0),"yearly"===n&&(this._recurrenceForm.itemOption("bymonthday","visible",!0),this._recurrenceForm.itemOption("bymonth","visible",!0)))}_changeRepeatIntervalLabel(){var n=this._recurrenceRule.getRules().freq;n&&this._recurrenceForm.itemOption("intervalLabel","template",ye.format("dxScheduler-recurrenceRepeat".concat(n.charAt(0).toUpperCase()).concat(n.substr(1).toLowerCase())))}_changeEditorsValue(n){this._recurrenceForm.getEditor("freq").option("value",(n.freq||Y8[1].value).toLowerCase()),this._changeDayOfWeekValue(),this._changeDayOfMonthValue(),this._changeMonthOfYearValue(),this._changeIntervalValue(n.interval),this._changeRepeatCountValue(),this._changeRepeatEndValue(),this._changeRepeatUntilValue()}_changeIntervalValue(n){this._recurrenceForm.getEditor("interval").option("value",n||1)}_changeRepeatEndValue(){var n=this._recurrenceRule.getRepeatEndRule();this._recurrenceForm.getEditor("repeatEnd").option("value",n)}_changeDayOfWeekValue(){if(this._recurrenceForm.itemOption("byday").visible){var e=this._daysOfWeekByRules();this.getEditorByField("byday").option("selectedItemKeys",e)}}_changeDayOfMonthValue(){if(this._recurrenceForm.itemOption("bymonthday").visible){var e=this._dayOfMonthByRules();this._recurrenceForm.getEditor("bymonthday").option("value",e)}}_changeMonthOfYearValue(){if(this._recurrenceForm.itemOption("bymonth").visible){var e=this._monthOfYearByRules();this._recurrenceForm.getEditor("bymonth").option("value",e)}}_changeRepeatCountValue(){var n=this._recurrenceRule.getRules().count||1;this._repeatCountEditor.option("value",n)}_changeRepeatUntilValue(){this._repeatUntilDate.option("value",this._getUntilValue())}_getUntilValue(){return this._recurrenceRule.getRules().until||this._formatUntilDate(new Date)}toggle(){this._freqEditor.focus()}setAria(){this._switchEditor&&this._switchEditor.setAria(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])}}On("dxRecurrenceEditor",G9e);const scn=G9e,lcn={provide:Fo,useExisting:At(()=>ucn),multi:!0};let ucn=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new scn(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-recurrence-editor"]],hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",readOnly:"readOnly",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,lcn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),j9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})(),K9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})(),$9e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Q0e,$i,SR,ive,bi,tn,mi],Q0e,$i,SR,ive,tn]}),t})();var ccn=["normal","hover"];function dQ(t,n,e){var i=n.border,r=e.border,o=Z(i.visible)?i.visible:r.visible,a=Z(i.width)?i.width:r.width,s=Z(i.opacity)?i.opacity:Z(r.opacity)?r.opacity:1,l=Z(n.opacity)?n.opacity:Z(e.opacity)?e.opacity:1;return{fill:n.color||t,"stroke-width":o?a:0,stroke:n.border.color||e.border.color,"stroke-opacity":s,opacity:l,hatching:n.hatching}}function X9e(t,n){var e=t._renderer.getRootOffset();this.code=0,this.widget=t,this.color=n.color,this.options=n.options,this.rect=n.rect,this.label=this.title=n.rect._name,this.coords={x:n.rect.x+n.rect.width/2+e.left,y:n.rect.y+n.rect.height/2+e.top},this.id=n.id,this.linksIn=n.linksIn,this.linksOut=n.linksOut,this.states={normal:dQ(this.color,this.options,this.options),hover:dQ(this.color,this.options.hoverStyle,this.options)}}X9e.prototype={compileAttrs:function(){return dQ(this.color,this.options)},getState:function(){return ccn[this.code]},isHovered:function(){return!!(1&this.code)},setState:function(t,n){n?this.code|=t:this.code&=~t,n?this.linksIn.concat(this.linksOut).forEach(e=>{this.widget._links[e.index].setAdjacentNodeHover(!0)}):(this.widget._links.forEach(function(e){e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)}),this.hideTooltip()),this.widget._applyNodesAppearance(),this.widget._applyLinksAppearance()},hover:function(t){!this.widget._getOption("hoverEnabled",!0)||t===this.isHovered()||(this.widget._suspend(),t&&this.widget.clearHover(),this.setState(1,t),this.widget._eventTrigger("nodeHoverChanged",{target:this}),this.widget._resume())},setHover:function(){this.hover(!0)},showTooltip:function(t){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"node",info:{label:this.label,title:this.label,weightIn:this.linksIn.reduce(function(n,e){return n+e.weight},0),weightOut:this.linksOut.reduce(function(n,e){return n+e.weight},0)}},typeof t<"u"?{x:t[0],y:t[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()},getLabelAttributes:function(t,n){return function hcn(t,n,e){var i=_a;t.useNodeColors&&(t.font.color=e.color);var r=!!Z(t.border.visible)&&t.border.visible,o=Z(t.border.width)?t.border.width:0,a=Z(t.border.color)?t.border.color:t.font.color,s=Z(t.border.opacity)?t.border.opacity:1,l={filter:n};return r&&o&&(l.stroke=a,l["stroke-width"]=r?o:0,l["stroke-opacity"]=s),{attr:l,css:i(t.font)}}(t,n,this)}};const pcn=X9e;var gcn=["normal","adjacentNodeHover","hover"];function uD(t,n,e,i){var r=n.border,o=e.border,a=Z(r.visible)?r.visible:o.visible,s=Z(r.width)?r.width:o.width,l=Z(r.opacity)?r.opacity:Z(o.opacity)?o.opacity:1,u=Z(n.opacity)?n.opacity:Z(e.opacity)?e.opacity:1,f=n.color||t;return"target"===e.colorMode||"source"===e.colorMode?f=t:"gradient"===e.colorMode&&i&&Z(i.id)&&(f=i.id),{fill:f,"stroke-width":a?s:0,stroke:n.border.color||e.border.color,"stroke-opacity":l,opacity:u,hatching:n.hatching}}function J9e(t,n){var e=t._renderer.getRootOffset();this.code=0,this.widget=t,this.color=n.color,this.connection=n.connection,this.d=n.d,this.options=n.options,this.boundingRect=n.boundingRect,this.coords={x:n.boundingRect.x+n.boundingRect.width/2+e.left,y:n.boundingRect.y+n.boundingRect.height/2+e.top},this.states={normal:uD(this.color,this.options,this.options,n.gradient),adjacentNodeHover:uD(this.color,{opacity:0,border:{}},this.options,n.gradient),hover:uD(this.color,{opacity:0,border:{}},this.options,n.gradient)},this.overlayStates={normal:uD(this.color,{opacity:0,border:{}},this.options),adjacentNodeHover:uD(this.color,this.options.hoverStyle,this.options),hover:uD(this.color,this.options.hoverStyle,this.options)}}J9e.prototype={getState:function(){return gcn[this.code]},isHovered:function(){return 2===this.code},isAdjacentNodeHovered:function(){return 1===this.code},setState:function(t,n){n?this.code=t:(this.code=0,this.hideTooltip()),this.widget._applyLinksAppearance()},setHover:function(){this.hover(!0)},hover:function(t){!this.widget._getOption("hoverEnabled",!0)||t===this.isHovered()||(this.widget._suspend(),t&&this.widget.clearHover(),this.setState(2,t),this.widget._eventTrigger("linkHoverChanged",{target:this}),this.widget._resume())},adjacentNodeHover:function(t){!this.widget._getOption("hoverEnabled",!0)||t===this.isAdjacentNodeHovered()||(this.widget._suspend(),this.setState(1,t),this.widget._resume())},setAdjacentNodeHover:function(){this.adjacentNodeHover(!0)},showTooltip:function(t){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"link",info:{source:this.connection.source,target:this.connection.target,weight:this.connection.weight}},typeof t<"u"?{x:t[0],y:t[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()}};const fcn=J9e;var cQ="white",e8e={maxOfArray:function(t,n){var e=0,i=o=>o;n&&(i=n);for(var r=0;r<t.length;r++)i(t[r])>e&&(e=i(t[r]));return e}},t8e=function(t){var n=[];return t.forEach(e=>{-1===n.indexOf(e[0])&&n.push(e[0]),-1===n.indexOf(e[1])&&n.push(e[1])}),n},hQ=function(t,n){var e=[];return t.forEach(i=>{i[0]===n&&-1===e.indexOf(i[1])&&e.push(i[1])}),e},pQ=function(t,n){var e=[];return t.forEach(i=>{i[1]===n&&-1===e.indexOf(i[0])&&e.push(i[0])}),e},_cn={_hasCycle:!1,_sortedList:[],hasCycle:function(t){this._hasCycle=!1,this._sortedList=[];var n={},e=t8e(t);return e.forEach(i=>{n[i]={color:cQ}}),e.forEach(i=>{n[i].color===cQ&&this._depthFirstSearch(t,n,i)}),this._sortedList.reverse(),this._hasCycle},_depthFirstSearch:function(t,n,e){n[e].color="gray";for(var i=hQ(t,e),r=0;r<i.length;r++)n[i[r]].color===cQ?this._depthFirstSearch(t,n,i[r]):"gray"===n[i[r]].color&&(this._hasCycle=!0);this._sortedList.push({name:e,lp:null,incoming:pQ(t,e),outgoing:hQ(t,e)}),n[e].color="black"},computeLongestPaths(t){var n=this._sortedList;return n.forEach(e=>{var i=pQ(t,e.name);if(0===i.length)e.lp=0;else{var r=[];i.forEach(o=>{r.push(n.filter(a=>a.name===o)[0].lp)}),e.lp=e8e.maxOfArray(r)+1}}),this._sortedList}};const dD={struct:_cn,routines:e8e,getVertices:t8e,getAdjacentVertices:hQ,getReverseAdjacentVertices:pQ};var vcn={validate:function(t,n){var e=null;return this._hasCycle(t)&&(e="E2006",n("E2006")),e},_hasCycle:function(t){return dD.struct.hasCycle(t)}};const ycn=vcn;var i8e={_weightPerPixel:null,_getCascadeIdx:function(t,n){var e=n.filter(i=>i.name===t)[0];return e.outgoing.length>0?e.lp:dD.routines.maxOfArray(n.map(i=>i.lp))},_getInWeightForNode:function(t,n){var e=0;return n.forEach(i=>{i[1]===t&&(e+=i[2])}),e},_getOutWeightForNode:function(t,n){var e=0;return n.forEach(i=>{i[0]===t&&(e+=i[2])}),e},_computeCascades:function(t){for(var n=dD.struct.computeLongestPaths(t),e=dD.routines.maxOfArray(n.map(o=>o.lp)),i=[],r=0;r<e+1;r++)i.push({});return t.forEach(o=>{var a=i[this._getCascadeIdx(o[0],n)];a[o[0]]||(a[o[0]]={nodeTitle:o[0]}),(a=i[this._getCascadeIdx(o[1],n)])[o[1]]||(a[o[1]]={nodeTitle:o[1]})}),i.forEach(o=>{Object.keys(o).forEach(a=>{var s=o[a];s.inWeight=this._getInWeightForNode(s.nodeTitle,t),s.outWeight=this._getOutWeightForNode(s.nodeTitle,t),s.maxWeight=Math.max(s.inWeight,s.outWeight)})}),i},_getWeightForCascade:function(t,n){var e=0,i=t[n];return Object.keys(i).forEach(r=>{e+=Math.max(i[r].inWeight,i[r].outWeight)}),e},_getMaxWeightThroughCascades:function(t){var n=[];return t.forEach(e=>{var i=0;Object.keys(e).forEach(r=>{var o=e[r];i+=Math.max(o.inWeight,o.outWeight)}),n.push(i)}),dD.routines.maxOfArray(n)},_computeNodes:function(t,n){var e=[],i=this._getMaxWeightThroughCascades(t),r=dD.routines.maxOfArray(t.map(l=>Object.keys(l).length)),o=n.nodePadding,a=n.height-o*(r-1);a<0&&(a=n.height-(o=0)*(r-1)),this._weightPerPixel=i/a;var s=0;return t.forEach(l=>{var R,u=[],f=0,S=Object.keys(l).length,T=this._getWeightForCascade(t,s)/this._weightPerPixel+o*(S-1);"bottom"===(R=Array.isArray(n.nodeAlign)?s<n.nodeAlign.length?n.nodeAlign[s]:"center":n.nodeAlign)?f=n.height-T:"center"===R&&(f=.5*(n.height-T)),f=Math.round(f),Object.keys(l).forEach(L=>{l[L].sort=this._sort&&Object.prototype.hasOwnProperty.call(this._sort,L)?this._sort[L]:1}),Object.keys(l).sort((L,z)=>l[L].sort-l[z].sort).forEach(L=>{var j=Math.floor(a*l[L].maxWeight/i),Y=Math.round(s*n.width/(t.length-1))-(0===s?0:n.nodeWidth),ie={};ie._name=L,ie.width=n.nodeWidth,ie.height=j,ie.x=Y+n.x,ie.y=f+n.y,f+=j+o,u.push(ie)}),s++,e.push(u)}),e},_findRectByName:function(t,n){for(var e=0;e<t.length;e++)for(var i=0;i<t[e].length;i++)if(n===t[e][i]._name)return t[e][i];return null},_findIndexByName:function(t,n){for(var e=0,i=0;i<t.length;i++)for(var r=0;r<t[i].length;r++){if(n===t[i][r]._name)return e;e++}return null},_computeLinks:function(t,n,e){var i={},r=[],o=[];return e.forEach(a=>{Object.keys(a).forEach(s=>{i[s]={in:0,out:0}})}),n.forEach(a=>{a.forEach(s=>{var l=s._name,u=this._findRectByName(n,l),f=t.filter(S=>S[0]===l);f.forEach(S=>{S.sort=this._findIndexByName(n,S[1])}),f.sort((S,T)=>S.sort-T.sort).forEach(S=>{var T=this._findRectByName(n,S[1]),R=Math.round(S[2]/this._weightPerPixel);r.push({from:{x:u.x,y:u.y+i[S[0]].out,width:u.width,height:i[S[0]].out+R>u.height?u.height-i[S[0]].out:R,node:u,weight:S[2]},to:{x:T.x,y:T.y+i[S[1]].in,width:T.width,height:i[S[1]].in+R>T.height?T.height-i[S[1]].in:R,node:T}}),i[S[0]].out+=R,i[S[1]].in+=R})})}),r.forEach(a=>{var s={d:this._spline(a.from,a.to),_boundingRect:{x:a.from.x+a.from.width,y:Math.min(a.from.y,a.to.y),width:a.to.x-(a.from.x+a.from.width),height:Math.max(a.from.x+a.from.height,a.to.y+a.to.height)-Math.min(a.from.y,a.to.y)},_weight:a.from.weight,_from:a.from.node,_to:a.to.node};o.push(s)}),this._fitAllNodesHeight(n,r),o},_fitNodeHeight:function(t,n,e){var i=this._findRectByName(n,t),r=0,o=0;e.forEach(function(a){a.from.node._name===t&&(o+=a.from.height),a.to.node._name===t&&(r+=a.to.height)}),i.height=Math.max(r,o)},_fitAllNodesHeight:function(t,n){for(var e=0;e<t.length;e++)for(var i=0;i<t[e].length;i++)this._fitNodeHeight(t[e][i]._name,t,n)},_spline:function(t,n){var e={x:t.x+t.width,y:t.y},i={x:t.x+t.width,y:t.y+t.height},r={x:n.x,y:n.y},o={x:n.x,y:n.y+n.height},a=.3*(r.x-e.x);return"M ".concat(e.x," ").concat(e.y," C ").concat(e.x+a," ").concat(e.y," ").concat(r.x-a," ").concat(r.y," ").concat(r.x," ").concat(r.y," L ").concat(o.x," ").concat(o.y," C ").concat(o.x-a," ").concat(o.y," ").concat(i.x+a," ").concat(i.y," ").concat(i.x," ").concat(i.y," Z")},computeLayout:function(t,n,e,i){this._sort=n;var r={},o=ycn.validate(t,i);return o?r.error=o:(r.cascades=this._computeCascades(t),r.nodes=this._computeNodes(r.cascades,{width:e.availableRect.width,height:e.availableRect.height,x:e.availableRect.x,y:e.availableRect.y,nodePadding:e.nodePadding,nodeWidth:e.nodeWidth,nodeAlign:e.nodeAlign}),r.links=this._computeLinks(t,r.nodes,r.cascades)),r},overlap:function(t,n){return!(n.x>t.x+t.width||n.x+n.width<t.x||n.y>=t.y+t.height||n.y+n.height<=t.y)}};function r8e(t,n,e){var i=[],r="in"===e?"_to":"_from",o="in"===e?"_from":"_to";return t.links.map(a=>a[r]._name===n).forEach((a,s)=>{a&&i.push({index:s,weight:t.links[s]._weight,node:t.links[s][o]._name})}),i}var gQ=V_.inherit({_rootClass:"dxs-sankey",_rootClassPrefix:"dxs",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",sortData:"DATA_SOURCE",alignment:"DATA_SOURCE",node:"BUILD_LAYOUT",link:"BUILD_LAYOUT",palette:"BUILD_LAYOUT",paletteExtensionMode:"BUILD_LAYOUT"},_themeDependentChanges:["BUILD_LAYOUT"],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"sankey",_fontFields:["label.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._groupLinks=this._renderer.g().append(this._renderer.root),this._groupNodes=this._renderer.g().append(this._renderer.root),this._groupLabels=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._drawLabels=!0,this._nodes=[],this._links=[],this._gradients=[]},_disposeCore:Be,_applySize:function(t){this._rect=t.slice();var n=this._getOption("adaptiveLayout");return this._drawLabels=!!(n.keepLabels||this._rect[2]-this._rect[0]>n.width),this._change(["BUILD_LAYOUT"]),this._rect},_eventsMap:{onNodeHoverChanged:{name:"nodeHoverChanged"},onLinkHoverChanged:{name:"linkHoverChanged"}},_customChangesOrder:["BUILD_LAYOUT","NODES_DRAW","LINKS_DRAW","LABELS","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange(["BUILD_LAYOUT"])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_BUILD_LAYOUT:function(){this._groupNodes.clear(),this._groupLinks.clear(),this._groupLabels.clear(),this._buildLayout()},_change_NODES_DRAW:function(){var t=this;t._nodes.forEach(function(e,i){var r=t._renderer.rect().attr(e.rect).append(t._groupNodes);e.element=r}),this._applyNodesAppearance()},_change_LINKS_DRAW:function(){var t=this;t._links.forEach(function(e,i){var r=t._renderer.g().attr({class:"link","data-link-idx":i}).append(t._groupLinks);e.overlayElement=t._renderer.path([],"area").attr({d:e.d}).append(r),e.element=t._renderer.path([],"area").attr({d:e.d}).append(r)}),this._applyLinksAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_showTooltip:Be,hideTooltip:Be,clearHover:function(){this._suspend(),this._nodes.forEach(function(t){t.isHovered()&&t.hover(!1)}),this._links.forEach(function(t){t.isHovered()&&t.hover(!1),t.isAdjacentNodeHovered()&&t.adjacentNodeHover(!1)}),this._resume()},_applyNodesAppearance:function(){this._nodes.forEach(function(t){var n=t.getState();t.element.smartAttr(t.states[n])})},_applyLinksAppearance:function(){this._links.forEach(function(t){var n=t.getState();t.element.smartAttr(t.states[n]),t.overlayElement.smartAttr(t.overlayStates[n])})},_hitTestTargets:function(t,n){var i,e=this;return this._proxyData.some(function(r){if(i=r.call(e,t,n))return!0}),i},_getData:function(){var t=this,n=t._dataSourceItems()||[],e=t._getOption("sourceField",!0),i=t._getOption("targetField",!0),r=t._getOption("weightField",!0),o=[];return n.forEach(function(a){var s=Object.prototype.hasOwnProperty.bind(a);s(e)?s(i)?s(r)?Pn(a[e])?Pn(a[i])?!di(a[r])||a[r]<=0?t._incidentOccurred("E2009",r):o.push([a[e],a[i],a[r]]):t._incidentOccurred("E2008",i):t._incidentOccurred("E2008",e):t._incidentOccurred("E2007",r):t._incidentOccurred("E2007",i):t._incidentOccurred("E2007",e)}),o},_buildLayout:function(){var t=this,n=t._getData(),e=this._rect,i=t._getOption("node"),r=t._getOption("sortData"),s=(t._getOption("layoutBuilder",!0)||i8e).computeLayout(n,r,{availableRect:{x:e[0],y:e[1],width:e[2]-e[0],height:e[3]-e[1]},nodePadding:i.padding,nodeWidth:i.width,nodeAlign:t._getOption("alignment",!0)},t._incidentOccurred);if(t._layoutMap=s,!Object.prototype.hasOwnProperty.call(s,"error")){var l={},u=0,f=t._getOption("link"),S=s.nodes.map(R=>R.length).reduce((R,L)=>R+L,0),T=t._themeManager.createPalette(t._getOption("palette",!0),{useHighlight:!0,extensionMode:t._getOption("paletteExtensionMode",!0),count:S});t._nodes=[],t._links=[],t._gradients.forEach(R=>{R.dispose()}),t._gradients=[],t._shadowFilter&&t._shadowFilter.dispose(),s.nodes.forEach(R=>{R.forEach(L=>{var z=i.color||T.getNextColor(),j=new pcn(t,{id:u,color:z,rect:L,options:i,linksIn:r8e(s,L._name,"in"),linksOut:r8e(s,L._name,"out")});t._nodes.push(j),u++,l[L._name]=z})}),s.links.forEach(R=>{var L=null;"gradient"===f.colorMode&&(L=t._renderer.linearGradient([{offset:"0%","stop-color":l[R._from._name]},{offset:"100%","stop-color":l[R._to._name]}]),this._gradients.push(L));var z=f.color;"source"===f.colorMode?z=l[R._from._name]:"target"===f.colorMode&&(z=l[R._to._name]);var j=new fcn(t,{d:R.d,boundingRect:R._boundingRect,color:z,options:f,connection:{source:R._from._name,target:R._to._name,weight:R._weight},gradient:L});t._links.push(j)}),t._renderer.initHatching(),t._change(["NODES_DRAW","LINKS_DRAW","LABELS"])}t._change(["DRAWN"])},_applyLabelsAppearance:function(){var t=this,n=t._getOption("label"),e=t._rect[2]-t._rect[0],i=t._getOption("node");if(t._shadowFilter=t._renderer.shadowFilter("-50%","-50%","200%","200%").attr(n.shadow),t._groupLabels.clear(),t._drawLabels&&n.visible){var r=(e-(i.width+n.horizontalOffset)-t._layoutMap.cascades.length*i.width)/(t._layoutMap.cascades.length-1)-n.horizontalOffset;t._nodes.forEach(function(o){t._createLabel(o,n,t._shadowFilter.id),function wcn(t,n,e,i){t._label.getBBox().width>e&&t.labelText.applyEllipsis(e);var r=t._label.getBBox(),o=n.verticalOffset,a=n.horizontalOffset,s=Math.round(t.rect.y+t.rect.height/2-r.y-r.height/2)+o,l=t.rect.x+a+t.rect.width-r.x;l+r.width>=i[2]-i[0]&&(l=t.rect.x-a-r.x-r.width),s>=i[3]&&(s=i[3]),s-r.height<i[1]&&(s=t.rect.y-r.y+o),t.labelText.attr({translateX:l,translateY:s})}(o,n,r,t._rect)}),"none"!==n.overlappingBehavior&&t._nodes.forEach(function(o){var a=o._label.getBBox();t._nodes.forEach(function(s){var l=s._label.getBBox();o.id!==s.id&&i8e.overlap(a,l)&&("ellipsis"===n.overlappingBehavior?o.labelText.applyEllipsis(l.x-a.x):"hide"===n.overlappingBehavior&&o.labelText.remove())})})}},_createLabel:function(t,n,e){var i=n.customizeText(t),r=t.getLabelAttributes(n,e);i&&(t._label=this._renderer.g().append(this._groupLabels),t.labelText=this._renderer.text(i).attr(r.attr).css(r.css),t.labelText.append(t._label))},_getMinSize:function(){var t=this._getOption("adaptiveLayout");return[t.width,t.height]},getAllNodes:function(){return this._nodes.slice()},getAllLinks:function(){return this._links.slice()}});On("dxSankey",gQ);const Bv=gQ;gQ.addPlugin(_S);var o8e=function(t,n){return function(e){var i=Yt(t)?t.call(e,e):{},r=Object.prototype.hasOwnProperty.bind(i);return!r("html")&&!r("text")&&(i=se(i,n.call(e,e))),i}},a8e=Bv.prototype,Tcn=0;a8e._eventsMap.onNodeClick={name:"nodeClick"},a8e._eventsMap.onLinkClick={name:"linkClick"};var kcn={name:"tracker",init:function(){var t=this,n="__sankey_data_"+Tcn++;t._tracker=new nM({widget:t,root:t._renderer.root,getData:function(e){return e.target[n]},getNode:function(e){return e<t._nodes.length?t._nodes[e]:t._links[e-t._nodes.length]},click:function(e){var i=this.getData(e.event)<t._nodes.length?"nodeClick":"linkClick";t._eventTrigger(i,{target:e.node,event:e.event})}}),this._dataKey=n},dispose:function(){this._tracker.dispose()},extenders:{_change_LINKS_DRAW:function(){var t=this._dataKey;this._nodes.concat(this._links).forEach(function(n,e){n.element.data(t,e)})}}};Bv.addPlugin(j_),Bv.addPlugin(TC),Bv.addPlugin(kcn),Bv.addPlugin(MC),Bv.addPlugin(kC),function Ecn(t){t.prototype._setTooltipOptions=function(){var i,r,n=this._tooltip,e=n&&this._getOption("tooltip");e.linkTooltipTemplate&&(i=this._getTemplate(e.linkTooltipTemplate)),e.nodeTooltipTemplate&&(r=this._getTemplate(e.nodeTooltipTemplate)),n&&n.update(se({},e,{customizeTooltip:function(o){i&&"link"===o.type||r&&"node"===o.type||(o.skipTemplate=!0);var a=s=>n.formatValue(s);return"node"===o.type?o8e(e.customizeNodeTooltip,(t=>function(n){return{html:"<strong>".concat(n.label,"</strong><br/>Incoming weight: ").concat(t(n.weightIn),"<br/>Outgoing weight: ").concat(t(n.weightOut))}})(a))(o.info):"link"===o.type?o8e(e.customizeLinkTooltip,(t=>function(n){return{html:"<strong>".concat(n.source," > ").concat(n.target,"</strong><br/>Weight: ").concat(t(n.weight))}})(a))(o.info):{}},contentTemplate(o,a){var s={model:o.info,container:a};return i&&"link"===o.type?i.render(s):r&&"node"===o.type?r.render(s):void 0},enabled:e.enabled}))},t.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()}}(Bv);let s8e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Og,aa,Lo,Ea,Oa,ja,R_e,Jd,Eh,ms,Ta,j_e,Ia,vs,_s,$o,$r,bi,tn,mi],Og,aa,Lo,Ea,Oa,ja,R_e,Jd,Eh,ms,Ta,j_e,Ia,vs,_s,$o,$r,tn]}),t})();var Rb=null,l8e=function(){Rb&&(Rb.$element().remove(),Rb=null)};function u8e(t){return l8e(),Rb=function(t){return new ZT(U("<div>").appendTo(t&&t.container||bh()),t)}(t),Rb.show()}function Z8(){return Rb?Rb.hide().done(l8e).promise():(new et).resolve()}var ea_getField=(t,n,e)=>{if(Z(t.getter[n]))return t.getter[n](e)},ea_setField=(t,n,e,i)=>{if(Z(t.setter[n]))return t.setter[n](e,i),e};class fQ{constructor(n,e,i,r){this.rawAppointment=n,this.dataAccessors=e,this.timeZoneCalculator=i,this.options=r}get duration(){return this.endDate?this.endDate-this.startDate:0}get startDate(){var n=this.getField("startDate");return void 0===n?n:new Date(n)}set startDate(n){this.setField("startDate",n)}get endDate(){var n=this.getField("endDate");return void 0===n?n:new Date(n)}set endDate(n){this.setField("endDate",n)}get allDay(){return this.getField("allDay")}set allDay(n){this.setField("allDay",n)}get text(){return this.getField("text")}set text(n){this.setField("text",n)}get description(){return this.getField("description")}set description(n){this.setField("description",n)}get startDateTimeZone(){return this.getField("startDateTimeZone")}get endDateTimeZone(){return this.getField("endDateTimeZone")}get recurrenceRule(){return this.getField("recurrenceRule")}set recurrenceRule(n){this.setField("recurrenceRule",n)}get recurrenceException(){return this.getField("recurrenceException")}set recurrenceException(n){this.setField("recurrenceException",n)}get disabled(){return!!this.getField("disabled")}get isRecurrent(){return wf().isValidRecurrenceRule(this.recurrenceRule)}getField(n){return ea_getField(this.dataAccessors,n,this.rawAppointment)}setField(n,e){return ea_setField(this.dataAccessors,n,this.rawAppointment,e)}calculateStartDate(n){if(!this.startDate||isNaN(this.startDate.getTime()))throw Di.Error("E1032",this.text);return this.calculateDate(this.startDate,this.startDateTimeZone,n)}calculateEndDate(n){return this.calculateDate(this.endDate,this.endDateTimeZone,n)}calculateDate(n,e,i){if(n)return this.timeZoneCalculator.createDate(n,{appointmentTimeZone:e,path:i})}clone(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=new fQ(cd({},this.rawAppointment),this.dataAccessors,this.timeZoneCalculator,n);return null!=n&&n.pathTimeZone&&(e.startDate=e.calculateStartDate(n.pathTimeZone),e.endDate=e.calculateEndDate(n.pathTimeZone)),e}source(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]){var e=this.clone();return e.startDate=this.startDate,e.endDate=this.endDate,e.source()}return se({},this.rawAppointment)}}var sa=(t,n,e,i)=>new fQ(t,n,e,i),d8e=(t,n)=>Z(t.find(e=>Tr(e,n))),IM=t=>t.valueExpr||"id",mQ=t=>t.displayExpr||"text",Nv=t=>t.fieldExpr||t.field,X8=t=>{if(t instanceof Fl)return t;var n=mt({},t_(t),{pageSize:0});return Array.isArray(t)||(n.filter=t.filter),new Fl(n)},kM=t=>{var n=0,e=(i,r,o,a)=>{o=o||[];for(var s=0;s<i.items.length;s++){var l,u=i.items[s],f={name:i.name,value:u.id,title:u.text,data:null===(l=i.data)||void 0===l?void 0:l[s],children:[],parent:a||null},S=r+1;t[S]&&e(t[S],S,f.children,f),f.children.length||(f.leafIndex=n,n++),o.push(f)}return o};return e(t[0],0)},c8e=(t,n)=>{var e=kM(n),i=(a,s)=>{for(var l=0;l<a.length;l++){if(a[l].leafIndex===s)return a[l];var u=i(a[l].children,s);if(u)return u}},r=(a,s)=>((s=s||[]).push(a.value),a.parent&&r(a.parent,s),s),o=i(e,t);return r(o).reverse()},cD=(t,n)=>{var e=[];if(c0(n)){if(t<0)return;for(var i=c8e(t,n),r=0;r<n.length;r++)e.push({name:n[r].name,id:i[r]})}return e},c0=t=>{for(var n=0,e=0,i=t.length;e<i;e++)e?n*=t[e].items.length:n=t[e].items.length;return n},J8=t=>t.reduce((n,e)=>{var{name:i,id:r}=e;return mt({},n,{[i]:r})},{}),h8e=t=>{var n=c0(t);return[...new Array(n)].map((e,i)=>{var r=cD(i,t);return J8(r)})},p8e=(t,n)=>{var e=t.find(i=>Nv(i)===n);return!(null==e||!e.allowMultiple)},Q8=(t,n)=>t.filter(e=>{var i=Nv(e);return n.indexOf(i)>-1}),e3=(t,n,e)=>t[e][n],Ncn=(t,n,e)=>{var i=kM(e),r={};return n.forEach(o=>{for(var a=_Q((l,u)=>e3(t.dataAccessors,l,u),i,o),s=0;s<a.length;s++)r[a[s]]||(r[a[s]]=[]),r[a[s]].push(cd({},o,!0))}),r},_Q=(t,n,e,i)=>{i=i||[];for(var r=0;r<n.length;r++)Vcn(t,e,n[r].name,n[r].value)&&(Z(n[r].leafIndex)&&i.push(n[r].leafIndex),n[r].children&&_Q(t,n[r].children,e,i));return i},Vcn=(t,n,e,i)=>{var r=t(e,"getter")(n);return d8e(mp(r),i)},g8e=(t,n,e,i)=>(i=i?i.children:[],n.forEach(function(r,o){var a=!1,s=r.name,l=r.value,u=r.title,f=r.data,S=t(s,"getter");e.forEach(function(T){if(!a){var R=S(T);Array.isArray(R)?R.indexOf(l)>-1&&(i.push({name:s,value:l,title:u,data:f,children:[]}),a=!0):R===l&&(i.push({name:s,value:l,title:u,data:f,children:[]}),a=!0)}}),a&&r.children&&r.children.length&&g8e(t,r.children,e,i[o])}),i),f8e=(t,n)=>{var{resources:e,dataAccessors:i,loadedResources:r,resourceLoaderMap:o}=t,{groupIndex:a,groups:s,itemData:l}=n,u=((t,n)=>{var e=n||[],i=t.find(o=>o.useColorAsDefault);if(i)return i;var r=e.length?Q8(t,e):t;return r[r.length-1]})(e||[],s);if(u){for(var f=Nv(u),S=cD(a,r),T=e3(i,f,"getter"),L=mp(T(l))[0],z=0;z<S.length;z++)if(S[z].name===f){L=S[z].id;break}return((t,n,e,i)=>{var r=new et,o=Q8(t,[e])[0]||{},s=Ai(o.colorExpr||"color");return((t,n,e,i)=>{var r=new et;return t.filter(o=>Nv(o)===e&&Z(o.dataSource)).forEach(o=>{var a=X8(o.dataSource),s=IM(o);n.has(e)||n.set(e,a.load()),n.get(e).done(l=>{var u=Ai(s),f=l.filter(S=>Tr(u(S),i));r.resolve(f[0])}).fail(()=>{n.delete(e),r.reject()})}),r.promise()})(t,n,e,i).done(l=>r.resolve(s(l))).fail(()=>r.reject()),r.promise()})(e,o,f,L)}return(new et).resolve().promise()},m8e=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n={getter:{},setter:{}};return t.forEach(e=>{var i=Nv(e);n.getter[i]=Ai(i),n.setter[i]=ph(i)}),n},_8e=(t,n,e)=>{var i=new et,r=[],s=[];return Q8(n||[],t||[]).forEach(l=>{var u=new et,f=Nv(l);r.push(u);var S=X8(l.dataSource).load();e.set(f,S),S.done(T=>{var R=((t,n)=>{var e=Ai(IM(t)),i=Ai(mQ(t));return n.map(r=>{var o={id:e(r),text:i(r)};return r.color&&(o.color=r.color),o})})(l,T);u.resolve({name:f,items:R,data:T})}).fail(()=>u.reject())}),r.length?(Qt.apply(null,r).done(function(){for(var l=arguments.length,u=new Array(l),f=0;f<l;f++)u[f]=arguments[f];var S=u.some(T=>0===T.items.length);i.resolve(s=S?[]:u)}).fail(()=>i.reject()),i.promise()):i.resolve(s)},v8e=(t,n,e)=>{var i={};return we(n.resources.getter,r=>{var o=n.resources.getter[r](t);if(Z(o)){var s=p8e(e,r)?mp(o):o;i[r]=s}}),i},MM_MOBILE_DEFAULT=350,MM_MOBILE_FULLSCREEN=500,y8e=()=>"desktop"!==pn.current().deviceType,x8e=bt.dateToMilliseconds,Ycn=x8e("day"),Zcn={height:"auto",maxHeight:"100%",showCloseButton:!1,showTitle:!1,defaultOptionsRules:[{device:()=>pn.current().android,options:{showTitle:!1}}]};class Xcn{constructor(n,e){this.scheduler=n,this.form=e,this.popup=null,this.state={action:null,lastEditData:null,saveChangesLocker:!1,appointment:{data:null}}}get visible(){return!!this.popup&&this.popup.option("visible")}show(n,e){if(this.state.appointment.data=n,this.state.action=e.action,this.state.excludeInfo=e.excludeInfo,!this.popup){var i=this._createPopupConfig();this.popup=this._createPopup(i)}this.popup.option("toolbarItems",((t,n)=>{var e=[],i={doneButton:{shortcut:"done",options:{text:ye.format("Done")},location:"after"},cancelButton:{shortcut:"cancel",location:"ios"===pn.current().platform?"before":"after"}};return t&&e.push(mt({},i.doneButton,{onClick:n})),e.push(i.cancelButton),e})(e.isToolbarVisible,r=>this._doneButtonClickHandler(r))),this.popup.show()}hide(){this.popup.hide()}dispose(){var n;null===(n=this.popup)||void 0===n||n.$element().remove()}_createPopup(n){var e=U("<div>").addClass("dx-scheduler-appointment-popup").appendTo(this.scheduler.getElement());return this.scheduler.createComponent(e,Ss,n)}_createPopupConfig(){return mt({},Zcn,{onHiding:()=>this.scheduler.focus(),contentTemplate:()=>this._createPopupContent(),onShowing:n=>this._onShowing(n),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}_onShowing(n){this._updateForm();var e={form:this.form.dxForm,popup:this.popup,appointmentData:this.state.appointment.data,cancel:!1};this.scheduler.getAppointmentFormOpening()(e),this.scheduler.processActionResult(e,i=>{i?n.cancel=!0:this.updatePopupFullScreenMode()})}_createPopupContent(){return this._createForm(),this.form.dxForm.$element()}_createFormData(n){var e=this._createAppointmentAdapter(n),i=this.scheduler.getDataAccessors(),r=this.scheduler.getResources();return mt({},n,v8e(n,i,r),{repeat:!!e.recurrenceRule})}_createForm(){var e=this._createFormData(this.state.appointment.data);this.form.create(this.triggerResize.bind(this),this.changeSize.bind(this),e)}_isReadOnly(n){var e=this._createAppointmentAdapter(n);return!(!n||!e.disabled)||0!==this.state.action&&!this.scheduler.getEditingConfig().allowUpdating}_createAppointmentAdapter(n){return sa(n,this.scheduler.getDataAccessors(),this.scheduler.getTimeZoneCalculator())}_updateForm(){var{data:n}=this.state.appointment,e=this._createAppointmentAdapter(this._createFormData(n));e.startDate&&(e.startDate=e.calculateStartDate("toAppointment")),e.endDate&&(e.endDate=e.calculateEndDate("toAppointment"));var i=e.source();this.form.readOnly=this._isReadOnly(i),this.form.updateFormData(i)}triggerResize(){this.popup&&qd(this.popup.$element())}changeSize(n){if(this.popup){var e=(()=>{var t=Fn(),n=t&&wn(t);return!!n&&(y8e()?n<MM_MOBILE_FULLSCREEN:n<1e3)})(),i=e?"100%":(t=>y8e()?MM_MOBILE_DEFAULT:t?970:485)(n);this.popup.option("fullScreen",e),this.popup.option("maxWidth",i)}}updatePopupFullScreenMode(){if(this.form.dxForm){var e=this.form.formData[this.scheduler.getDataAccessors().expr.recurrenceRuleExpr];this.visible&&this.changeSize(e)}}saveChangesAsync(n){var e=new et,i=this.form.dxForm.validate();return n&&this._showLoadPanel(),Qt(i&&i.complete||i).done(r=>{if(r&&!r.isValid)return Z8(),void e.resolve(!1);var o=this._createAppointmentAdapter(this.form.formData),a=o.clone({pathTimeZone:"fromAppointment"});this._addMissingDSTTime(o,a);var s=a.source();switch(delete s.repeat,this.state.action){case 0:this.scheduler.addAppointment(s).done(e.resolve);break;case 1:this.scheduler.updateAppointment(this.state.appointment.data,s).done(e.resolve);break;case 2:this.scheduler.updateAppointment(this.state.excludeInfo.sourceAppointment,this.state.excludeInfo.updatedAppointment),this.scheduler.addAppointment(s).done(e.resolve)}e.done(()=>{Z8(),this.state.lastEditData=s})}),e.promise()}_doneButtonClickHandler(n){n.cancel=!0,this.saveEditDataAsync()}saveEditDataAsync(){var n=new et;return this._tryLockSaveChanges()&&Qt(this.saveChangesAsync(!0)).done(()=>{if(this.state.lastEditData){var e=this._createAppointmentAdapter(this.state.lastEditData),{startDate:i,endDate:r,allDay:o}=e,a=i.getTime(),s=r.getTime(),l=o||s-a>=Ycn,u=this.scheduler.getDataAccessors(),f=this.scheduler.getResources(),S=v8e(this.state.lastEditData,u,f);this.scheduler.updateScrollPosition(i,S,l),this.state.lastEditData=null}this._unlockSaveChanges(),n.resolve()}),n.promise()}_showLoadPanel(){var n=this.popup.$overlayContent();u8e({container:n,position:{of:n},copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}_tryLockSaveChanges(){return!1===this.state.saveChangesLocker&&(this.state.saveChangesLocker=!0,!0)}_unlockSaveChanges(){this.state.saveChangesLocker=!1}_addMissingDSTTime(n,e){var i=this.scheduler.getTimeZoneCalculator();e.startDate=this._addMissingDSTShiftToDate(i,n.startDate,e.startDate),e.endDate&&(e.endDate=this._addMissingDSTShiftToDate(i,n.endDate,e.endDate))}_addMissingDSTShiftToDate(n,e,i){var r,o,l=(null===(r=n.getOffsets(e))||void 0===r?void 0:r.common)-(null===(o=n.getOffsets(i))||void 0===o?void 0:o.common);return l?new Date(i.getTime()+l*x8e("hour")):i}}class w8e{constructor(){this.counter=0}isFree(){return 0===this.counter}take(){this.counter+=1}release(){this.counter-=1,this.counter<0&&(this.counter=0)}}var S8e=Th.inherit({_getDefaultOptions:function(){return se(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass("dx-textarea"),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var t=U("<textarea>");return this._applyInputAttributes(t,this.option("inputAttr")),this._updateInputAutoResizeAppearance(t),t},_applyInputAttributes:function(t,n){t.attr(n).addClass("dx-texteditor-input")},_renderScrollHandler:function(){this._eventY=0;var t=this._input(),n=bLe(t,!0);Se.on(t,kt(yd_init,this.NAME),n,Be),Se.on(t,kt(qn.down,this.NAME),this._pointerDownHandler.bind(this)),Se.on(t,kt(qn.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler:function(t){this._eventY=Po(t).y},_pointerMoveHandler:function(t){var n=Po(t).y,e=this._eventY-n;TX(this._input(),e)&&(t.isScrollingEvent=!0,t.stopPropagation()),this._eventY=n},_renderDimensions:function(){var t=this.$element(),n=t.get(0),e=this._getOptionValue("width",n),i=this._getOptionValue("height",n),r=this.option("minHeight"),o=this.option("maxHeight");t.css({minHeight:void 0!==r?r:"",maxHeight:void 0!==o?o:"",width:e,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&Se.on(this._input(),kt("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){Se.off(this._input(),kt("input paste",this.NAME)),this.callBase()},_getHeightDifference(t){return _w(this._$element.get(0),!1)+_w(this._$textEditorContainer.get(0),!1)+_w(this._$textEditorInputContainer.get(0),!1)+W5("height",Fn().getComputedStyle(t.get(0))).margin},_updateInputHeight:function(){if(Rn()){var t=this._input(),n=this.option("height"),e=void 0===n&&this.option("autoResizeEnabled");if(!(e||void 0===n&&this.option("minHeight")))return void t.css("height","");this._resetDimensions(),this._$element.css("height",Zn(this._$element)),t.css("height",0);var r=this._getHeightDifference(t);this._renderDimensions();var o=this._getBoundaryHeight("minHeight"),a=this._getBoundaryHeight("maxHeight"),s=t[0].scrollHeight;if(void 0!==o&&(s=Math.max(s,o-r)),void 0!==a){var l=a-r,u=s>l;s=Math.min(s,l),this._updateInputAutoResizeAppearance(t,!u)}t.css("height",s),e&&this._$element.css("height","auto")}},_getBoundaryHeight:function(t){var n=this.option(t);if(Z(n))return"number"==typeof n?n:Dhe(n,this.$element().get(0).parentElement)},_renderInputType:Be,_visibilityChanged:function(t){t&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(t,n){if(t){var e=gr(n,this.option("autoResizeEnabled"));t.toggleClass("dx-texteditor-input-auto-resize",e)}},_dimensionChanged:function(){this.option("visible")&&this._updateInputHeight()},_optionChanged:function(t){switch(t.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input(),t.value),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(t),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(t),t.value&&this._updateInputHeight();break;default:this.callBase(t)}}});On("dxTextArea",S8e);const thn=S8e;var Vv="dx-switch",nhn=Vv+"-wrapper",ihn=Vv+"-container",rhn=Vv+"-inner",ohn=Vv+"-handle",D8e=Vv+"-on-value",ahn=Vv+"-on",shn=Vv+"-off",E8e=Ru.inherit({_supportedKeys:function(){var t=this.option("rtlEnabled"),n=function(i){i.preventDefault(),this._clickAction({event:i})},e=function(i,r){r.preventDefault(),r.stopPropagation(),this._saveValueChangeEvent(r),this._animateValue(i)};return se(this.callBase(),{space:n,enter:n,leftArrow:e.bind(this,!!t),rightArrow:e.bind(this,!t)})},_useTemplates:function(){return!1},_getDefaultOptions:function(){return se(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,switchedOnText:ye.format("dxSwitch-switchedOnText"),switchedOffText:ye.format("dxSwitch-switchedOffText"),value:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}}])},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.$element().addClass(Vv).append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(t,n){return(n-this._offsetDirection()*Number(!t))/2*100+"%"},_getHandleOffset:function(t,n){return this.option("rtlEnabled")&&(t=!t),t?100*-n-100+"%":100*-n+"%"},_renderSwitchInner:function(){this._$switchInner=U("<div>").addClass(rhn).appendTo(this._$switchContainer),this._$handle=U("<div>").addClass(ohn).appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=U("<div>").addClass(ahn).prependTo(this._$switchInner),this._$labelOff=U("<div>").addClass(shn).appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=U("<div>").addClass(ihn),this._$switchWrapper=U("<div>").addClass(nhn).append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),oS,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc:function(){return ii(this._$switchContainer,!0)-Mi(this._$handle.get(0)).width},_renderSubmitElement:function(){this._$submitElement=U("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(t,n){var e=this._getInnerOffset(t,n),i=this._getHandleOffset(t,n);this._$switchInner.css("transform"," translateX("+e+")"),this._$handle.css("transform"," translateX("+i+")")},_validateValue:function(){var t=this.option("value");"boolean"!=typeof t&&this._options.silent("value",!!t)},_renderClick:function(){var t=kt(Vi,this.NAME),n=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),Se.off(n,t),Se.on(n,t,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(t){this._saveValueChangeEvent(t.event),!this._animating&&!this._swiping&&this._animateValue(!this.option("value"))},_animateValue:function(t){var n=this.option("value"),e=t;if(n!==e){this._animating=!0;var i=this._getInnerOffset(n,0),r=this._getInnerOffset(e,0),o=this._getHandleOffset(n,0),a=this._getHandleOffset(e,0),s=this,l={},u={},f={},S={};l.transform=" translateX("+i+")",u.transform=" translateX("+r+")",f.transform=" translateX("+o+")",S.transform=" translateX("+a+")",this.$element().toggleClass(D8e,e),Hi.animate(this._$handle,{from:f,to:S,duration:100}),Hi.animate(this._$switchInner,{from:l,to:u,duration:100,complete:function(){s._animating=!1,s.option("value",e)}})}},_swipeStartHandler:function(t){var n=this.option("value"),e=this.option("rtlEnabled"),i=e?0:1,r=e?1:0;t.event.maxLeftOffset=n?i:r,t.event.maxRightOffset=n?r:i,this._swiping=!0,this._feedbackDeferred=new et,iG(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(t){this._renderPosition(this.option("value"),t.event.offset)},_swipeEndHandler:function(t){var n=this,e=this._offsetDirection(),i={},r={},o=this._getInnerOffset(n.option("value"),t.event.targetOffset),a=this._getHandleOffset(n.option("value"),t.event.targetOffset);i.transform=" translateX("+o+")",r.transform=" translateX("+a+")",Hi.animate(this._$handle,{to:r,duration:100}),Hi.animate(this._$switchInner,{to:i,duration:100,complete:function(){n._swiping=!1;var s=n.option("value")+e*t.event.targetOffset;n._saveValueChangeEvent(t.event),n.option("value",Boolean(s)),n._feedbackDeferred.resolve(),n._toggleActiveState(n.$element(),!1)}})},_renderValue:function(){this._validateValue();var t=this.option("value");this._renderPosition(t,0),this.$element().toggleClass(D8e,t),this._getSubmitElement().val(t),this.setAria({pressed:t,label:this.option(t?"switchedOnText":"switchedOffText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_visibilityChanged:function(t){t&&this.repaint()},_optionChanged:function(t){switch(t.name){case"width":delete this._marginBound,this._refresh();break;case"switchedOnText":case"switchedOffText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(t);break;default:this.callBase(t)}}});On("dxSwitch",E8e);const lhn=E8e;var Sf={Main:"mainGroup",Recurrence:"recurrenceGroup"},O8e=(t,n,e,i,r)=>({editorType:"dxDateBox",dataField:t,colSpan:n,label:{text:ye.format(i)},validationRules:[{type:"required"}],editorOptions:{width:"100%",calendarOptions:{firstDayOfWeek:e},onValueChanged:r,useMaskBehavior:!0}});class phn{constructor(n){this.scheduler=n,this.form=null,this.semaphore=new w8e}get dxForm(){return this.form}set readOnly(n){this.form.option("readOnly",n);var{recurrenceRuleExpr:e}=this.scheduler.getDataAccessors().expr;this.form.getEditor(e)?.option("readOnly",n)}get formData(){return this.form.option("formData")}set formData(n){this.form.option("formData",n)}create(n,e,i){var r=this.scheduler.getEditingConfig().allowTimeZoneEditing,{expr:o}=this.scheduler.getDataAccessors(),a=!!i[o.recurrenceRuleExpr],s=a?1:2,l=[...this._createMainItems(o,n,e,r),...this.scheduler.createResourceEditorModel()];e(a);var u=[{itemType:"group",name:Sf.Main,colCountByScreen:{lg:2,xs:1},colSpan:s,items:l},{itemType:"group",name:Sf.Recurrence,visible:a,colSpan:s,items:this._createRecurrenceEditor(o)}],f=U("<div>");this.form=this.scheduler.createComponent(f,vv,{items:u,showValidationSummary:!0,scrollingEnabled:!0,colCount:"auto",colCountByScreen:{lg:2,xs:1},formData:i,showColonAfterLabel:!1,labelLocation:"top",customizeItem:S=>{if(this.form&&"group"===S.itemType){var T=this.scheduler.getDataAccessors().expr,R=new Date(this.formData[T.startDateExpr]),L=new Date(this.formData[T.endDateExpr]),z=S.items.find(Y=>Y.dataField===T.startDateTimeZoneExpr),j=S.items.find(Y=>Y.dataField===T.endDateTimeZoneExpr);z&&(z.editorOptions.dataSource=this.createTimeZoneDataSource(R)),j&&(j.editorOptions.dataSource=this.createTimeZoneDataSource(L))}},screenByWidth:S=>S<600||"desktop"!==pn.current().deviceType?"xs":"lg"})}createTimeZoneDataSource(n){return new fm({store:OM.getDisplayedTimeZones(n),paginate:!0,pageSize:10})}_dateBoxValueChanged(n,e,i){((t,n,e)=>{null!==n&&!n&&(null===e||e)&&t.option("value",e)})(n.component,n.value,n.previousValue);var r=Qr.deserializeDate(n.value),o=Qr.deserializeDate(n.previousValue),a=this.form.getEditor(e),s=Qr.deserializeDate(a.option("value"));if(this.semaphore.isFree()&&s&&r&&i(s,r)){var l=o?s.getTime()-o.getTime():0;a.option("value",new Date(r.getTime()+l))}}_createTimezoneEditor(n,e,i,r,o){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return{dataField:n,editorType:"dxSelectBox",visibleIndex:i,colSpan:r,label:{text:" "},editorOptions:{displayExpr:"title",valueExpr:"id",placeholder:ye.format("dxScheduler-noTimezoneTitle"),searchEnabled:!0,onValueChanged:l=>{var f=this.form.getEditor(e);o&&f.option("value",l.value)}},visible:a}}_createDateBoxItems(n,e){var i=e?2:1,r=this.scheduler.getFirstDayOfWeek();return[O8e(n.startDateExpr,i,r,"dxScheduler-editorLabelStartDate",o=>{this._dateBoxValueChanged(o,n.endDateExpr,(a,s)=>a<s)}),this._createTimezoneEditor(n.startDateTimeZoneExpr,n.endDateTimeZoneExpr,1,i,!0,e),O8e(n.endDateExpr,i,r,"dxScheduler-editorLabelEndDate",o=>{this._dateBoxValueChanged(o,n.startDateExpr,(a,s)=>s<a)}),this._createTimezoneEditor(n.endDateTimeZoneExpr,n.startDateTimeZoneExpr,3,i,!1,e)]}_changeFormItemDateType(n,e){var o=mt({},this.form.itemOption(n).editorOptions,{type:e?"date":"datetime"});this.form.itemOption(n,"editorOptions",o)}_createMainItems(n,e,i,r){return[{dataField:n.textExpr,editorType:"dxTextBox",colSpan:2,label:{text:ye.format("dxScheduler-editorLabelTitle")}},{itemType:"group",colSpan:2,colCountByScreen:{lg:2,xs:1},items:this._createDateBoxItems(n,r)},{itemType:"group",colCountByScreen:{lg:3,xs:3},colSpan:2,items:[{dataField:n.allDayExpr,cssClass:"dx-appointment-form-switch",editorType:"dxSwitch",label:{text:ye.format("dxScheduler-allDay"),location:"right"},editorOptions:{onValueChanged:o=>{var a=o.value,s=this.form.getEditor(n.startDateExpr),l=this.form.getEditor(n.endDateExpr),u=Qr.deserializeDate(s.option("value"));if(this.semaphore.isFree()&&u)if(a){var f=bt.trimTime(u);s.option("value",new Date(f)),l.option("value",new Date(f))}else{var S=((t,n)=>new Date(new Date(t).setHours(n)))(u,this.scheduler.getStartDayHour()),T=this.scheduler.getCalculatedEndDate(S);s.option("value",S),l.option("value",T)}var R="".concat(Sf.Main,".").concat(n.startDateExpr),L="".concat(Sf.Main,".").concat(n.endDateExpr);this._changeFormItemDateType(R,a),this._changeFormItemDateType(L,a)}}},{editorType:"dxSwitch",dataField:"repeat",cssClass:"dx-appointment-form-switch",name:"visibilityChanged",label:{text:ye.format("dxScheduler-editorLabelRecurrence"),location:"right"},editorOptions:{onValueChanged:o=>{var a=this.form,s=o.value?1:2;a.itemOption(Sf.Main,"colSpan",s),a.itemOption(Sf.Recurrence,"colSpan",s),((t,n,e)=>{var i;e.itemOption(Sf.Recurrence,"visible",n),!n&&e.updateData(t,""),null===(i=e.getEditor(t))||void 0===i||i.changeValueByVisibility(n)})(n.recurrenceRuleExpr,o.value,a),i(o.value),e()}}}]},{itemType:"empty",colSpan:2},{dataField:n.descriptionExpr,editorType:"dxTextArea",colSpan:2,label:{text:ye.format("dxScheduler-editorLabelDescription")}},{itemType:"empty",colSpan:2}]}_createRecurrenceEditor(n){return[{dataField:n.recurrenceRuleExpr,editorType:"dxRecurrenceEditor",editorOptions:{firstDayOfWeek:this.scheduler.getFirstDayOfWeek()},label:{text:" ",visible:!1}}]}setEditorsType(n){var{startDateExpr:e,endDateExpr:i}=this.scheduler.getDataAccessors().expr,r="".concat(Sf.Main,".").concat(e),o="".concat(Sf.Main,".").concat(i),a=this.form.itemOption(r),s=this.form.itemOption(o);if(a&&s){var l=a.editorOptions,u=s.editorOptions;l.type=u.type=n?"date":"datetime",this.form.itemOption(r,"editorOptions",l),this.form.itemOption(o,"editorOptions",u)}}updateRecurrenceEditorStartDate(n,e){this.setEditorOptions(e,"Recurrence",{startDate:n})}setEditorOptions(n,e,i){var r="".concat(Sf.groupName,".").concat(n),o=this.form.itemOption(r);o&&this.form.itemOption(r,"editorOptions",se({},o.editorOptions,i))}setTimeZoneEditorDataSource(n,e){var i=this.createTimeZoneDataSource(n);this.setEditorOptions(e,"Main",{dataSource:i})}updateFormData(n){this.semaphore.take(),this.form.option("formData",n);var e=this.scheduler.getDataAccessors().expr,i=n[e.allDayExpr],r=new Date(n[e.startDateExpr]),o=new Date(n[e.endDateExpr]);this.setTimeZoneEditorDataSource(r,e.startDateTimeZoneExpr),this.setTimeZoneEditorDataSource(o,e.endDateTimeZoneExpr),this.updateRecurrenceEditorStartDate(r,e.recurrenceRuleExpr),this.setEditorsType(i),this.semaphore.release()}}class T8e{constructor(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];this.appointment=n,this.targetedAppointment=e,this.color=i,this.settings=r}}var yQ="dxListItemData",h0="dxAppointmentSettings",I8e="horizontal",La={DAY:"day",WEEK:"week",WORK_WEEK:"workWeek",MONTH:"month",TIMELINE_DAY:"timelineDay",TIMELINE_WEEK:"timelineWeek",TIMELINE_WORK_WEEK:"timelineWorkWeek",TIMELINE_MONTH:"timelineMonth",AGENDA:"agenda"},M8e=(t,n)=>n&&t?t.toString():"0",AM=(t,n)=>{var e=n??{},i=mt({},e);return t.forEach(r=>{var{attr:o,value:a}=r;i[o]=a||e[o]}),i},CQ=(t,n)=>{var e=t?"".concat(t,"px"):"";return AM([{attr:"height",value:e}],n)},A8e=(t,n)=>{var e=t?"".concat(t,"px"):"";return AM([{attr:"width",value:e}],n)},F8e=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return fs({"dx-scheduler-first-group-cell":t,"dx-scheduler-last-group-cell":n,[e]:!0})},P8e=(t,n)=>t&&n,n3=(t,n)=>"vertical"===n&&!!t.length,FM=(t,n)=>"horizontal"===n&&!!t.length,mhn=(t,n,e)=>{var i=FM(t,n);return e&&i},R8e=(t,n)=>f8e(mt({},t,{dataAccessors:t.resourcesDataAccessors}),n),bQ="dx-scheduler-appointment-collector",Chn=bQ+"-compact",bhn=bQ+"-content";class Shn{constructor(n){this.instance=n,this.elements=[]}render(n){var{isCompact:e,items:i,buttonColor:r}=n,o=this._createTemplate(i.data.length,e),s=this._createCompactButton(o,n).$element();return this._makeBackgroundColor(s,i.colors,r),this._makeBackgroundDarker(s),this.elements.push(s),s.data("items",this._createTooltipInfos(i)),s}clear(){this.elements.forEach(n=>{n.detach(),n.remove()}),this.elements=[]}_createTooltipInfos(n){return n.data.map((e,i)=>{var r,o=sa(e,this.instance._dataAccessors,this.instance.timeZoneCalculator).clone();if((null===(r=n.settings)||void 0===r?void 0:r.length)>0){var{info:a}=n.settings[i];o.startDate=a.sourceAppointment.startDate,o.endDate=a.sourceAppointment.endDate}return new T8e(e,o.source(),n.colors[i],n.settings[i])})}_onButtonClick(n,e){var i=U(n.element);this.instance.showAppointmentTooltipCore(i,i.data("items"),this._getExtraOptionsForTooltip(e,i))}_getExtraOptionsForTooltip(n,e){return{clickEvent:this._clickEvent(n.onAppointmentClick).bind(this),dragBehavior:n.allowDrag&&this._createTooltipDragBehavior(e).bind(this),dropDownAppointmentTemplate:this.instance.option().dropDownAppointmentTemplate,isButtonClick:!0}}_clickEvent(n){return e=>{var r=rP(this.instance.fire("mapAppointmentFields",{itemData:e.itemData.appointment,itemElement:e.itemElement,targetedAppointment:e.itemData.targetedAppointment}),e,!1);delete r.itemData,delete r.itemIndex,delete r.itemElement,n(r)}}_createTooltipDragBehavior(n){return e=>{var i=U(e.element),r=U(this.instance.element()),o=this.instance.getWorkSpace(),a=Ra(n),s={filter:".".concat("dx-list-item"),isSetCursorOffset:!0,initialPosition:a,getItemData:l=>{var u;return null===(u=U(l).data(yQ))||void 0===u?void 0:u.appointment},getItemSettings:(l,u)=>u.itemSettings};o._createDragBehaviorBase(i,r,s)}}_getCollectorOffset(n,e){return e-n-this._getCollectorRightOffset()}_getCollectorRightOffset(){return this.instance.getRenderingStrategyInstance()._isCompactTheme()?1:5}_makeBackgroundDarker(n){n.css("boxShadow","inset ".concat(Mi(n.get(0)).width,"px 0 0 0 rgba(0, 0, 0, 0.3)"))}_makeBackgroundColor(n,e,i){Qt.apply(null,e).done(function(){this._makeBackgroundColorCore(n,i,[...arguments])}.bind(this))}_makeBackgroundColorCore(n,e,i){e&&e.done(r=>{var o=((t,n)=>n.length&&0!==n.filter(e=>e!==t).length?void 0:t)(r,i);o&&n.css("backgroundColor",o)})}_setPosition(n,e){kr(n,{top:e.top,left:e.left})}_createCompactButton(n,e){var i=this._createCompactButtonElement(e);return this.instance._createComponent(i,To,{type:"default",width:e.width,height:e.height,onClick:r=>this._onButtonClick(r,e),template:this._renderTemplate(n,e.items,e.isCompact)})}_createCompactButtonElement(n){var{isCompact:e,$container:i,coordinates:r}=n,o=U("<div>").addClass(bQ).toggleClass(Chn,e).appendTo(i);return this._setPosition(o,r),o}_renderTemplate(n,e,i){return new bg(r=>n.render({model:{appointmentCount:e.data.length,isCompact:i},container:r.container}))}_createTemplate(n,e){return this._initButtonTemplate(n,e),this.instance._getAppointmentTemplate("appointmentCollectorTemplate")}_initButtonTemplate(n,e){this.instance._templateManager.addDefaultTemplates({appointmentCollector:new bg(i=>this._createButtonTemplate(n,U(i.container),e))})}_createButtonTemplate(n,e,i){var r=i?n:ye.getFormatter("dxScheduler-moreAppointments")(n);return e.append(U("<span>").text(r)).addClass(bhn)}}var Hv="dx-tooltip-appointment-item",Dhn=Hv+"-content",Ehn=Hv+"-content-subject",Ohn=Hv+"-content-date",Thn=Hv+"-marker",Ihn=Hv+"-marker-body",khn=Hv+"-delete-button-container",Mhn=Hv+"-delete-button";class L8e{constructor(n){this._tooltip=null,this._options=n,this._extraOptions=null}show(n,e,i){this._canShowTooltip(e)&&(this.hide(),this._extraOptions=i,this._showCore(n,e))}_showCore(n,e){this._tooltip?(this._shouldUseTarget()&&this._tooltip.option("target",n),this._list.option("dataSource",e)):this._tooltip=this._createTooltip(n,e),this._prepareBeforeVisibleChanged(e),this._tooltip.option("visible",!0)}_prepareBeforeVisibleChanged(n){}_getContentTemplate(n){return e=>{var i=U("<div>");U(e).append(i),this._list=this._createList(i,n)}}isAlreadyShown(n){if(this._tooltip&&this._tooltip.option("visible"))return this._tooltip.option("target")[0]===n[0]}_onShown(){this._list.option("focusStateEnabled",this._extraOptions.focusStateEnabled)}dispose(){}hide(){this._tooltip&&this._tooltip.option("visible",!1)}_shouldUseTarget(){return!0}_createTooltip(){}_canShowTooltip(n){return!!n.length}_createListOption(n){return{dataSource:n,onContentReady:this._onListRender.bind(this),onItemClick:e=>this._onListItemClick(e),itemTemplate:(e,i)=>this._renderTemplate(e.appointment,e.targetedAppointment,i,e.color),_swipeEnabled:!1,pageLoadMode:"scrollBottom"}}_onListRender(){}_createTooltipElement(n){return U("<div>").appendTo(this._options.container).addClass(n)}_createList(n,e){return this._options.createComponent(n,ECe,this._createListOption(e))}_renderTemplate(n,e,i,r){var o=this._createItemListContent(n,e,r);this._options.addDefaultTemplates({[this._getItemListTemplateName()]:new bg(s=>{var l=U(s.container);return l.append(o),l})});var a=this._options.getAppointmentTemplate(this._getItemListTemplateName()+"Template");return this._createFunctionTemplate(a,n,e,i)}_createFunctionTemplate(n,e,i,r){var o=!!this._extraOptions.isButtonClick,a=this._isEmptyDropDownAppointmentTemplate();return new bg(s=>n.render({model:a?{appointmentData:e,targetedAppointmentData:i,isButtonClicked:o}:e,container:s.container,index:r}))}_getItemListTemplateName(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltip":"dropDownAppointment"}_isEmptyDropDownAppointmentTemplate(){return!this._extraOptions.dropDownAppointmentTemplate||"dropDownAppointment"===this._extraOptions.dropDownAppointmentTemplate}_onListItemClick(n){this.hide(),this._extraOptions.clickEvent&&this._extraOptions.clickEvent(n),this._options.showAppointmentPopup(n.itemData.appointment,!1,n.itemData.targetedAppointment)}_createItemListContent(n,e,i){var r=this._extraOptions.editing,o=U("<div>").addClass(Hv);return o.append(this._createItemListMarker(i)),o.append(this._createItemListInfo(this._options.createFormattedDateText(n,e))),!this._options.getAppointmentDisabled(n)&&(r&&!0===r.allowDeleting||!0===r)&&o.append(this._createDeleteButton(n,e)),o}_createItemListMarker(n){var e=U("<div>").addClass(Thn),i=U("<div>").addClass(Ihn);return e.append(i),n&&n.done(r=>i.css("background",r)),e}_createItemListInfo(n){var e=U("<div>").addClass(Dhn),i=U("<div>").addClass(Ehn).text(n.text),r=U("<div>").addClass(Ohn).text(n.formatDate);return e.append(i).append(r)}_createDeleteButton(n,e){var i=U("<div>").addClass(khn),r=U("<div>").addClass(Mhn);return i.append(r),this._options.createComponent(r,To,{icon:"trash",stylingMode:"text",onClick:o=>{this.hide(),o.event.stopPropagation(),this._options.checkAndDeleteAppointment(n,e)}}),i}}class Phn extends L8e{_prepareBeforeVisibleChanged(n){this._tooltip.option("position",{my:"bottom",at:"top",boundary:this._getBoundary(n),offset:this._extraOptions.offset,collision:"fit flipfit"})}_getBoundary(n){return this._options.isAppointmentInAllDayPanel(n[0].appointment)?this._options.container:this._options.getScrollableContainer()}_onShown(){super._onShown(),this._extraOptions.isButtonClick&&(this._list.focus(),this._list.option("focusedElement",null))}_createListOption(n,e){var i=super._createListOption(n,e);return i.showScrollbar=h_?"always":"onHover",i}_createTooltip(n,e){var i=this._createTooltipElement("dx-scheduler-appointment-tooltip-wrapper");return this._options.createComponent(i,Y9,{target:n,maxHeight:200,rtlEnabled:this._extraOptions.rtlEnabled,onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(e),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}_onListRender(n){return this._extraOptions.dragBehavior&&this._extraOptions.dragBehavior(n)}}var Bhn={show:{type:"slide",duration:300,from:{position:{my:"top",at:"bottom",of:Fn()}},to:{position:{my:"center",at:"center",of:Fn()}}},hide:{type:"slide",duration:300,to:{position:{my:"top",at:"bottom",of:Fn()}},from:{position:{my:"center",at:"center",of:Fn()}}}};class Hhn extends L8e{_shouldUseTarget(){return!1}_onShowing(){var n=wn(Fn())>700;this._tooltip.option("height","auto");var e=Zn(this._list.$element());this._tooltip.option(n?(t=>({shading:!0,width:"80%",height:t>.9*Ln(Fn())?"90%":"auto",position:{my:"center",at:"center",of:Fn()}}))(e):(t=>({shading:!1,width:"100%",height:t>250?250:"auto",position:{my:"bottom",at:"bottom",of:Fn()}}))(e))}_createTooltip(n,e){var i=this._createTooltipElement("dx-scheduler-overlay-panel");return this._options.createComponent(i,Cd,{target:Fn(),hideOnOutsideClick:!0,animation:Bhn,onShowing:()=>this._onShowing(),onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(e),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}}var pD=null,N8e=null,V8e=function(){pD&&(N8e(),pD=null)};var H8e="dx-scheduler-fixed-appointments",Yhn={head:"dx-scheduler-appointment-head",body:"dx-scheduler-appointment-body",tail:"dx-scheduler-appointment-tail"},Zhn={horizontal:"dx-scheduler-appointment-horizontal",vertical:"dx-scheduler-appointment-vertical"},z8e="dx-scheduler-appointment-drag-source",i3="dx-scheduler-header-panel-current-time-cell",r3="dx-scheduler-virtual-cell",U8e="dx-scheduler-time-panel",xQ="dx-scheduler-date-table",wQ="dx-scheduler-date-table-row",gD="dx-scheduler-group-row",SQ="dx-scheduler-group-header-content",o3="dx-scheduler-last-group-cell",a3="dx-scheduler-first-group-cell",s3=["dx-scheduler-group-column-count-one","dx-scheduler-group-column-count-two","dx-scheduler-group-column-count-three"],W8e=kt(qn.enter,"dxSchedulerAppointment"),G8e=kt(qn.leave,"dxSchedulerAppointment");class DQ extends Ic{get coloredElement(){return this.$element()}get rawAppointment(){return this.option("data")}_getDefaultOptions(){return se(super._getDefaultOptions(),{data:{},groupIndex:-1,groups:[],geometry:{top:0,left:0,width:0,height:0},allowDrag:!0,allowResize:!0,reduced:null,isCompact:!1,direction:"vertical",resizableConfig:{keepAspectRatio:!1},cellHeight:0,cellWidth:0,isDragSource:!1})}notifyObserver(n,e){var i=this.option("observer");i&&i.fire(n,e)}invoke(){var n=this.option("observer");if(n)return n.fire.apply(n,arguments)}_optionChanged(n){switch(n.name){case"data":case"groupIndex":case"geometry":case"allowDrag":case"allowResize":case"reduced":case"sortedIndex":case"isCompact":case"direction":case"resizableConfig":case"cellHeight":case"cellWidth":this._invalidate();break;case"isDragSource":this._renderDragSourceClass();break;default:super._optionChanged(n)}}_getHorizontalResizingRule(){var n={head:this.option("rtlEnabled")?"right":"left",body:"",tail:this.option("rtlEnabled")?"left":"right"},e=this.option("getResizableStep"),i=e?e():0;return{handles:this.option("reduced")?n[this.option("reduced")]:"left right",minHeight:0,minWidth:this.invoke("getCellWidth"),step:i,roundStepValue:!1}}_getVerticalResizingRule(){var n=Math.round(this.invoke("getCellHeight"));return{handles:"top bottom",minWidth:0,minHeight:n,step:n,roundStepValue:!0}}_render(){super._render(),this._renderAppointmentGeometry(),this._renderEmptyClass(),this._renderReducedAppointment(),this._renderAllDayClass(),this._renderDragSourceClass(),this._renderDirection(),this.$element().data("dxAppointmentStartDate",this.option("startDate"));var n=ea_getField(this.option("dataAccessors"),"text",this.rawAppointment);this.$element().attr("title",n),this.$element().attr("role","button"),this._renderRecurrenceClass(),this._renderResizable(),this._setResourceColor()}_setResourceColor(){var n={itemData:this.rawAppointment,groupIndex:this.option("groupIndex"),groups:this.option("groups")};this.option("getAppointmentColor")(n).done(i=>i&&this.coloredElement.css("backgroundColor",i))}_renderAppointmentGeometry(){var n=this.option("geometry"),e=this.$element();kr(e,{top:n.top,left:n.left}),e.css({width:n.width<0?0:n.width,height:n.height<0?0:n.height})}_renderEmptyClass(){(this.option("geometry").empty||this.option("isCompact"))&&this.$element().addClass("dx-scheduler-appointment-empty")}_renderReducedAppointment(){var n=this.option("reduced");n&&(this.$element().toggleClass("dx-scheduler-appointment-reduced",!0).toggleClass(Yhn[n],!0),this._renderAppointmentReducedIcon())}_renderAppointmentReducedIcon(){var n=U("<div>").addClass("dx-scheduler-appointment-reduced-icon").appendTo(this.$element()),e=this._getEndDate(),r=[ye.format("dxScheduler-editorLabelEndDate"),": ",Gn.format(e,"monthAndDay"),", ",Gn.format(e,"year")].join("");Se.off(n,W8e),Se.on(n,W8e,function(){!function Uhn(t){return V8e(),function(t){var n=(t=se({position:"top"},t)).content;delete t.content;var e=U("<div>").html(n).appendTo(bh());N8e=function(){e.remove()},pD=new T2e(e,t)}(t),pD.show()}({target:n,content:r})}),Se.off(n,G8e),Se.on(n,G8e,function(){!function Whn(){pD?pD.hide().done(V8e).promise():(new et).resolve()}()})}_getEndDate(){var n=ea_getField(this.option("dataAccessors"),"endDate",this.rawAppointment);return n&&new Date(n)}_renderAllDayClass(){this.$element().toggleClass("dx-scheduler-all-day-appointment",!!this.option("allDay"))}_renderDragSourceClass(){this.$element().toggleClass(z8e,!!this.option("isDragSource"))}_renderRecurrenceClass(){var n=ea_getField(this.option("dataAccessors"),"recurrenceRule",this.rawAppointment);wf().isValidRecurrenceRule(n)&&this.$element().addClass("dx-scheduler-appointment-recurrence")}_renderDirection(){this.$element().addClass(Zhn[this.option("direction")])}_createResizingConfig(){var n="vertical"===this.option("direction")?this._getVerticalResizingRule():this._getHorizontalResizingRule();return this.invoke("isGroupedByDate")||(n.stepPrecision="strict"),n}_renderResizable(){this.option("allowResize")&&this._createComponent(this.$element(),kL,se(this._createResizingConfig(),this.option("resizableConfig")))}_useTemplates(){return!1}}On("dxSchedulerAppointment",DQ);class tpn extends DQ{get coloredElement(){return this.$element().find(".".concat("dx-scheduler-agenda-appointment-marker"))}_getDefaultOptions(){return se(super._getDefaultOptions(),{createPlainResourceListAsync:new et})}_renderResourceList(n,e){e.forEach(i=>{var r=U("<div>").addClass("dx-scheduler-appointment-resource-item").appendTo(n);U("<div>").text("".concat(i.label,":")).appendTo(r),U("<div>").addClass("dx-scheduler-appointment-resource-item-value").text(i.values.join(", ")).appendTo(r)})}_render(){super._render(),this.option("createPlainResourceListAsync")(this.rawAppointment).done(e=>{var i=this.$element().find(".".concat("dx-scheduler-appointment-content-details")),r=U("<div>").addClass("dx-scheduler-appointment-resource-list").appendTo(i);this._renderResourceList(r,e)})}}var j8e=" "+ye.format("dxScheduler-allDay")+": ",EQ=bt.dateToMilliseconds,OQ=t=>!bt.sameDate(t.startDate,t.endDate),dpn=(t,n,e,i)=>{t=t.replace(/\s/g,"");var r=l=>e.createDate(l,{path:"toGrid"}),o=Qr.deserializeDate(t),a=r(n),s=r(o);return s=qr.correctRecurrenceExceptionByTimezone(s,a,i),Qr.serializeDate(s,"yyyyMMddTHHmmss")},K8e=(t,n,e,i,r)=>{if(((t,n)=>!n||isNaN(n.getTime())||t.getTime()>n.getTime())(n,e)){var o=(s=n,t.allDay?bt.setToDayEnd(new Date(s)):new Date(s.getTime()+i*EQ("minute")));r.setter.endDate(t,o)}var s},$8e=(t,n)=>{t.sort((e,i)=>{var r=new Date(ea_getField(n,"startDate",e.settings||e)),o=new Date(ea_getField(n,"startDate",i.settings||i));return Math.sign(r.getTime()-o.getTime())})},q8e=(t,n,e,i)=>{if(!t.considerTime)return n;var r=new Date(n);r.setHours(e.getHours(),e.getMinutes(),e.getSeconds());var{startDayHour:o,endDayHour:a,appointmentSettings:{allDay:s}}=t,l=new Date(n),u=new Date(n);return l.setHours(o,0,0,0),u.setHours(a,0,0,0),(i?r<l.getTime()||r>=u.getTime():r<=l.getTime()||r>u.getTime())&&(r=s?l:u),r},Y8e=(t,n,e)=>q8e(t,n,e,!0),Z8e=(t,n,e)=>q8e(t,n,e,!1),X8e=t=>{var{cellHeight:n,cellWidth:e,viewDataProvider:i,relativeAppointmentRect:r,appointmentSettings:o,rtlEnabled:a}=t,s=Math.floor(r.top/n),l=Math.round(r.left/e);return i.getCellData(s,l,o.allDay,a)},J8e=kt(tb,"dxSchedulerAppointment"),Q8e=bt.dateToMilliseconds;class e3e extends Fc{get isAgendaView(){return this.invoke("isCurrentViewAgenda")}get isVirtualScrolling(){return this.invoke("isVirtualScrolling")}get appointmentDataProvider(){return this.option("getAppointmentDataProvider")()}constructor(n,e){super(n,e),this._virtualAppointments={}}notifyObserver(n,e){var i=this.option("observer");i&&i.fire(n,e)}invoke(){var n=this.option("observer");if(n)return n.fire.apply(n,arguments)}_dispose(){clearTimeout(this._appointmentClickTimeout),super._dispose()}_supportedKeys(){var n=super._supportedKeys(),e=this._$currentAppointment;return se(n,{escape:function(){var i,r,o;this.resizeOccur&&(this.moveAppointmentBack(),this.resizeOccur=!1,null===(i=e.dxResizable("instance"))||void 0===i||i._detachEventHandlers(),null===(r=e.dxResizable("instance"))||void 0===r||r._attachEventHandlers(),null===(o=e.dxResizable("instance"))||void 0===o||o._toggleResizingClass(!1))}.bind(this),del:function(i){if(this.option("allowDelete")){i.preventDefault();var r=this._getItemData(i.target);this.notifyObserver("onDeleteButtonPress",{data:r,target:i.target})}}.bind(this),tab:function(i){var r=this._getAccessAppointments(),a=r.filter(".dx-state-focused").data(h0).sortedIndex;if(a>0&&i.shiftKey||a<r.length-1&&!i.shiftKey){i.preventDefault(),i.shiftKey?a--:a++;var l=this._getAppointmentByIndex(a);this._resetTabIndex(l),Se.trigger(l,"focus")}}})}_getAppointmentByIndex(n){return this._getAccessAppointments().filter(function(i,r){return zo(r,h0).sortedIndex===n}).eq(0)}_getAccessAppointments(){return this._itemElements().filter(":visible").not(".dx-state-disabled")}_resetTabIndex(n){this._focusTarget().attr("tabIndex",-1),n.attr("tabIndex",this.option("tabIndex"))}_moveFocus(){}_focusTarget(){return this._itemElements()}_renderFocusTarget(){var n=this._getAppointmentByIndex(0);this._resetTabIndex(n)}_focusInHandler(n){super._focusInHandler(n),this._$currentAppointment=U(n.target),this.option("focusedElement",kn(U(n.target)))}_focusOutHandler(n){var e=this._getAppointmentByIndex(0);this.option("focusedElement",kn(e)),super._focusOutHandler(n)}_eventBindingTarget(){return this._itemContainer()}_getDefaultOptions(){return se(super._getDefaultOptions(),{noDataText:null,activeStateEnabled:!0,hoverStateEnabled:!0,tabIndex:0,fixedContainer:null,allDayContainer:null,allowDrag:!0,allowResize:!0,allowAllDayResize:!0,onAppointmentDblClick:null,_collectorOffset:0,groups:[],resources:[]})}_optionChanged(n){if(!this.option("isRenovatedAppointments"))switch(n.name){case"items":this._cleanFocusState(),this._clearDropDownItems(),this._clearDropDownItemsElements(),this._repaintAppointments(n.value),this._renderDropDownAppointments(),this._attachAppointmentsEvents();break;case"fixedContainer":case"allDayContainer":case"onAppointmentDblClick":case"allowDelete":break;case"allowDrag":case"allowResize":case"allowAllDayResize":this._invalidate();break;case"focusedElement":this._resetTabIndex(U(n.value)),super._optionChanged(n);break;case"focusStateEnabled":this._clearDropDownItemsElements(),this._renderDropDownAppointments(),super._optionChanged(n);break;default:super._optionChanged(n)}}_isAllDayAppointment(n){return n.settings.length&&n.settings[0].allDay||!1}_isRepaintAppointment(n){return!Z(n.needRepaint)||!0===n.needRepaint}_isRepaintAll(n){if(this.isAgendaView)return!0;for(var e=0;e<n.length;e++)if(!this._isRepaintAppointment(n[e]))return!1;return!0}_applyFragment(n,e){n.children().length>0&&this._getAppointmentContainer(e).append(n)}_onEachAppointment(n,e,i,r){!0===n?.needRemove?this._clearItem(n):(r||this._isRepaintAppointment(n))&&(n.needRepaint=!1,this._clearItem(n),this._renderItem(e,n,i))}_repaintAppointments(n){this._renderByFragments((e,i)=>{var r=this._isRepaintAll(n);r&&(this._getAppointmentContainer(!0).html(""),this._getAppointmentContainer(!1).html("")),!n.length&&this._cleanItemContainer(),n.forEach((o,a)=>{var s=this._isAllDayAppointment(o)?i:e;this._onEachAppointment(o,a,s,r)})})}_renderByFragments(n){if(this.isVirtualScrolling){var e=U(It.createDocumentFragment()),i=U(It.createDocumentFragment());n(e,i),this._applyFragment(e,!1),this._applyFragment(i,!0)}else n(this._getAppointmentContainer(!1),this._getAppointmentContainer(!0))}_attachAppointmentsEvents(){this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent(),this._attachAppointmentDblClick(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()}_clearItem(n){var e=this._findItemElementByItem(n.itemData);e.length&&we(e,function(i,r){r.detach(),r.remove()})}_clearDropDownItems(){this._virtualAppointments={}}_clearDropDownItemsElements(){this.invoke("clearCompactAppointments")}_findItemElementByItem(n){var e=[],i=this;return this.itemElements().each(function(){var r=U(this);r.data(i._itemDataKey())===n&&e.push(r)}),e}_itemClass(){return"dx-scheduler-appointment"}_itemContainer(){var n=super._itemContainer(),e=n,i=this.option("allDayContainer");return i&&(e=n.add(i)),e}_cleanItemContainer(){super._cleanItemContainer();var n=this.option("allDayContainer");n&&n.empty(),this._virtualAppointments={}}_clean(){super._clean(),delete this._$currentAppointment,delete this._initialSize,delete this._initialCoordinates}_init(){super._init(),this.$element().addClass("dx-scheduler-scrollable-appointments"),this._preventSingleAppointmentClick=!1}_renderAppointmentTemplate(n,e,i){var r={isAllDay:e.allDay,isRecurrence:e.recurrenceRule,html:wi(e)&&e.html?e.html:void 0},o=this.invoke("getTextAndFormatDate",i.appointmentData,this._currentAppointmentSettings.agendaSettings||i.targetedAppointmentData,"TIME");n.append(this.isAgendaView?((t,n)=>{var e=U(It.createDocumentFragment()),i=U("<div>").addClass("dx-scheduler-agenda-appointment-left-layout").appendTo(e),r=U("<div>").addClass("dx-scheduler-agenda-appointment-right-layout").appendTo(e),o=U("<div>").addClass("dx-scheduler-agenda-appointment-marker").appendTo(i);n.isRecurrence&&U("<span>").addClass("dx-scheduler-appointment-recurrence-icon dx-icon-repeat").appendTo(o),U("<div>").addClass("dx-scheduler-appointment-title").text(t.text).appendTo(r);var a=U("<div>").addClass("dx-scheduler-appointment-content-details").appendTo(r);return U("<div>").addClass("dx-scheduler-appointment-content-date").text(t.formatDate).appendTo(a),n.isAllDay&&U("<div>").text(j8e).addClass("dx-scheduler-appointment-content-allday").prependTo(a),e})(o,r):((t,n)=>{var e=U(It.createDocumentFragment());U("<div>").text(t.text).addClass("dx-scheduler-appointment-title").appendTo(e),n.html&&e.html(n.html);var i=U("<div>").addClass("dx-scheduler-appointment-content-details").appendTo(e);return U("<div>").addClass("dx-scheduler-appointment-content-date").text(t.formatDate).appendTo(i),n.isRecurrence&&U("<span>").addClass("dx-scheduler-appointment-recurrence-icon dx-icon-repeat").appendTo(e),n.isAllDay&&U("<div>").text(j8e).addClass("dx-scheduler-appointment-content-allday").prependTo(i),e})(o,r))}_executeItemRenderAction(n,e,i){var r=this._getItemRenderAction();r&&r(this.invoke("mapAppointmentFields",{itemData:e,itemElement:i})),delete this._currentAppointmentSettings}_itemClickHandler(n){super._itemClickHandler(n,{},{afterExecute:function(e){this._processItemClick(e.args[0].event)}.bind(this)})}_processItemClick(n){var e=U(n.currentTarget),i=this._getItemData(e);"keydown"===n.type||(t=>{var{screenX:n,offsetX:e,pageX:i}=t;return 0===n&&!e&&0===i})(n)?this.notifyObserver("showEditAppointmentPopup",{data:i,target:e}):this._appointmentClickTimeout=setTimeout(function(){!this._preventSingleAppointmentClick&&It.getBody().contains(e[0])&&this.notifyObserver("showAppointmentTooltip",{data:i,target:e}),this._preventSingleAppointmentClick=!1}.bind(this),300)}_extendActionArgs(n){var e=super._extendActionArgs(n);return this.invoke("mapAppointmentFields",e)}_render(){super._render(),this._attachAppointmentDblClick()}_attachAppointmentDblClick(){var n=this,e=n._itemSelector(),i=this._itemContainer();Se.off(i,J8e,e),Se.on(i,J8e,e,function(r){n._itemDXEventHandler(r,"onAppointmentDblClick",{},{afterExecute:function(o){n._dblClickHandler(o.args[0].event)}})})}_dblClickHandler(n){var e=U(n.currentTarget),i=this._getItemData(e);clearTimeout(this._appointmentClickTimeout),this._preventSingleAppointmentClick=!0,this.notifyObserver("showEditAppointmentPopup",{data:i,target:e})}_renderItem(n,e,i){for(var r=e.itemData,o=[],a=0;a<e.settings.length;a++){var s=e.settings[a];this._currentAppointmentSettings=s;var l=super._renderItem(n,r,i);l.data(h0,s),o.push(l)}return o}_getItemContent(n){return n.data(h0,this._currentAppointmentSettings),super._getItemContent(n)}_createItemByTemplate(n,e){var{itemData:i,container:r,index:o}=e;return n.render({model:{appointmentData:i,targetedAppointmentData:this.invoke("getTargetedAppointmentData",i,U(r).parent())},container:r,index:o})}_getAppointmentContainer(n){var e=this.option("allDayContainer"),i=this.itemsContainer().not(e);return n&&e&&(i=e),i}_postprocessRenderItem(n){this._renderAppointment(n.itemElement,this._currentAppointmentSettings)}_renderAppointment(n,e){n.data(h0,e),this._applyResourceDataAttr(n);var i=this._getItemData(n),r=this.invoke("getAppointmentGeometry",e),o=this.option("allowResize")&&(!Z(e.skipResizing)||Pn(e.skipResizing)),a=this.option("allowDrag"),s=e.allDay;if(this.invoke("setCellDataCacheAlias",this._currentAppointmentSettings,r),e.virtual){var l={itemData:i,groupIndex:e.groupIndex,groups:this.option("groups")},u=this.option("getAppointmentColor")(l);this._processVirtualAppointment(e,n,i,u)}else{var f,S={data:i,groupIndex:e.groupIndex,observer:this.option("observer"),geometry:r,direction:e.direction||"vertical",allowResize:o,allowDrag:a,allDay:s,reduced:e.appointmentReduced,isCompact:e.isCompact,startDate:new Date(null===(f=e.info)||void 0===f?void 0:f.appointment.startDate),cellWidth:this.invoke("getCellWidth"),cellHeight:this.invoke("getCellHeight"),resizableConfig:this._resizableConfig(i,e),groups:this.option("groups"),getAppointmentColor:this.option("getAppointmentColor"),getResourceDataAccessors:this.option("getResourceDataAccessors")};if(this.isAgendaView){var T=this.option("getAgendaResourceProcessor")();S.createPlainResourceListAsync=R=>T.createListAsync(R)}this._createComponent(n,this.isAgendaView?tpn:DQ,mt({},S,{dataAccessors:this.option("dataAccessors"),getResizableStep:this.option("getResizableStep")}))}}_applyResourceDataAttr(n){var e=this.option("getResourceDataAccessors")(),i=this._getItemData(n);we(e.getter,function(r){var o=e.getter[r](i);if(Z(o)){var a="data-".concat(gde(r.toLowerCase()),"-");mp(o).forEach(s=>n.attr(a+gde(s),!0))}})}_resizableConfig(n,e){return{area:this._calculateResizableArea(e,n),onResizeStart:function(i){if(this.resizeOccur=!0,this._$currentAppointment=U(i.element),this.invoke("needRecalculateResizableArea")){var r=this._calculateResizableArea(this._$currentAppointment.data(h0),this._$currentAppointment.data("dxItemData"));i.component.option("area",r),i.component._renderDragOffsets(i.event)}this._initialSize={width:i.width,height:i.height},this._initialCoordinates=Ra(this._$currentAppointment)}.bind(this),onResizeEnd:function(i){this.resizeOccur=!1,this._resizeEndHandler(i)}.bind(this)}}_calculateResizableArea(n,e){var i=this.$element().closest(".dx-scrollable-content");return this.invoke("getResizableAppointmentArea",{coordinates:{left:n.left,top:0,groupIndex:n.groupIndex},allDay:n.allDay})||i}_resizeEndHandler(n){var e=U(n.element),{allDay:i,info:r}=e.data("dxAppointmentSettings"),o=this._getItemData(e),a={};if(i)a=this.resizeAllDay(n);else{var s=this._getEndResizeAppointmentStartDate(n,o,r.appointment);a=this._getDateRange(n,s,r.appointment.endDate)}this.updateResizedAppointment(e,a,this.option("dataAccessors"),this.option("timeZoneCalculator"))}resizeAllDay(n){var e=U(n.element),i=this.option("timeZoneCalculator"),r=this.option("dataAccessors");return(t=>{var{appointmentSettings:n}=t,e=((t,n)=>{var e=t.left-n.left,i=t.top-n.top,r=e<0?t.width+e:t.width,o=i<0?t.height+i:t.height;return{left:Math.max(0,e),top:Math.max(0,i),width:r,height:o}})(t.appointmentRect,t.parentAppointmentRect),i=(t=>{var{appointmentSettings:n,isVerticalGroupedWorkSpace:e,DOMMetaData:i}=t,r=n.allDay&&!e?[i.allDayPanelCellsMeta]:i.dateTableCellsMeta,{positionByMap:o}=n,{height:a,width:s}=r[o.rowIndex][o.columnIndex];return{cellWidth:s,cellHeight:a,cellCountInRow:r[o.rowIndex].length}})(t),o=mt({},t,i,{considerTime:!t.isDateAndTimeView||n.allDay,relativeAppointmentRect:e});return t.rtlEnabled?(t=>{var{viewDataProvider:n,cellCountInRow:e,appointmentSettings:i,handles:r,cellWidth:o,relativeAppointmentRect:a}=t,s=X8e(t),{allDay:l,sourceAppointment:u}=i.info;if(r.right){var f=s.index,T=f-Math.round(a.width/o)+1,R=Math.floor(f/e),L=n.getCellData(R,T,l,!0);return{startDate:Y8e(t,L.startDate,u.endDate),endDate:u.endDate}}var j=t.considerTime?s.startDate:s.endDate;return j=Z8e(t,j,u.endDate),{startDate:u.startDate,endDate:j}})(o):(t=>{var{cellWidth:n,cellCountInRow:e,relativeAppointmentRect:i,viewDataProvider:r,appointmentSettings:o,handles:a}=t,s=X8e(t),l=Math.round(i.width/n),u=s.index+(l-1),{allDay:f,sourceAppointment:S}=o.info;if(a.left)return{startDate:Y8e(t,s.startDate,S.startDate),endDate:S.endDate};var R=Math.floor(u/e),z=r.getCellData(R,u%e,f),j=t.considerTime?z.startDate:z.endDate;return j=Z8e(t,j,S.endDate),{startDate:S.startDate,endDate:j}})(o)})({handles:n.handles,appointmentSettings:e.data("dxAppointmentSettings"),isVerticalViewDirection:this.option("isVerticalViewDirection")(),isVerticalGroupedWorkSpace:this.option("isVerticalGroupedWorkSpace")(),appointmentRect:Mi(e[0]),parentAppointmentRect:Mi(e.parent()[0]),viewDataProvider:this.option("getViewDataProvider")(),isDateAndTimeView:this.option("isDateAndTimeView")(),startDayHour:this.invoke("getStartDayHour"),endDayHour:this.invoke("getEndDayHour"),timeZoneCalculator:i,dataAccessors:r,rtlEnabled:this.option("rtlEnabled"),DOMMetaData:this.option("getDOMElementsMetaData")()})}updateResizedAppointment(n,e,i,r){var o=this._getItemData(n),a=sa(o,i,r).clone();a.startDate=new Date(e.startDate),a.endDate=new Date(e.endDate),this.notifyObserver("updateAppointmentAfterResize",{target:o,data:a.clone({pathTimeZone:"fromGrid"}).source(),$appointment:n})}_getEndResizeAppointmentStartDate(n,e,i){var r=this.option("timeZoneCalculator"),o=sa(e,this.option("dataAccessors"),r),a=i.startDate,s=wf(),{recurrenceRule:l,startDateTimeZone:u}=o,f=this.invoke("isAllDay",e),S=s.isValidRecurrenceRule(l);return!n.handles.top&&!S&&!f&&(a=r.createDate(o.startDate,{appointmentTimeZone:u,path:"toGrid"})),a}_getDateRange(n,e,i){var f,S,r=this._getItemData(n.element),o=this.invoke("getDeltaTime",n,this._initialSize,r),a=this.invoke("getRenderingStrategyDirection"),l=this.invoke("isAllDay",r),u=this.invoke("needCorrectAppointmentDates")&&!l;return("vertical"!==a||l?this.option("rtlEnabled")?n.handles.right:n.handles.left:n.handles.top)?(f=u?this._correctStartDateByDelta(e,o):e.getTime()-o,f+=qr.getTimezoneOffsetChangeInMs(e,i,f,i),S=i.getTime()):(f=e.getTime(),S=u?this._correctEndDateByDelta(i,o):i.getTime()+o,S-=qr.getTimezoneOffsetChangeInMs(e,i,e,S)),{startDate:new Date(f),endDate:new Date(S)}}_correctEndDateByDelta(n,e){var i=this.invoke("getEndDayHour"),r=this.invoke("getStartDayHour"),o=n.getTime()+e,a=(i-r)*Q8e("hour"),s=e>0?Math.ceil(e/a):Math.floor(e/a),l=new Date(n),u=new Date(n);if(u.setHours(r,0,0,0),l.setHours(i,0,0,0),o>l.getTime()||o<=u.getTime()){var S=e-(l.getTime()-n.getTime()),T=new Date(n).setDate(n.getDate()+s),R=new Date(T);R.setHours(r,0,0,0),o=R.getTime()+S-a*(s-1)}return o}_correctStartDateByDelta(n,e){var i=this.invoke("getEndDayHour"),r=this.invoke("getStartDayHour"),o=n.getTime()-e,a=(i-r)*Q8e("hour"),s=e>0?Math.ceil(e/a):Math.floor(e/a),l=new Date(n),u=new Date(n);if(u.setHours(r,0,0,0),l.setHours(i,0,0,0),o<u.getTime()||o>=l.getTime()){var S=e-(n.getTime()-u.getTime()),T=new Date(n.setDate(n.getDate()-s));T.setHours(i,0,0,0),o=T.getTime()-S+a*(s-1)}return o}_processVirtualAppointment(n,e,i,r){var o=n.virtual,a=o.index;Z(this._virtualAppointments[a])||(this._virtualAppointments[a]={coordinates:{top:o.top,left:o.left},items:{data:[],colors:[],settings:[]},isAllDay:!!o.isAllDay,buttonColor:r}),n.targetedAppointmentData=this.invoke("getTargetedAppointmentData",i,e),this._virtualAppointments[a].items.settings.push(n),this._virtualAppointments[a].items.data.push(i),this._virtualAppointments[a].items.colors.push(r),e.remove()}_renderContentImpl(){super._renderContentImpl(),this._renderDropDownAppointments()}_renderDropDownAppointments(){this._renderByFragments((n,e)=>{we(this._virtualAppointments,function(i){var r=this._virtualAppointments[i],o=r.items,a=r.coordinates,s=r.isAllDay?e:n,l=a.left,u=this.invoke("getDropDownAppointmentWidth",r.isAllDay),f=this.invoke("getDropDownAppointmentHeight"),S=this.option("rtlEnabled")?u:0;this.notifyObserver("renderCompactAppointments",{$container:s,coordinates:{top:a.top,left:l+S},items:o,buttonColor:r.buttonColor,width:u-this.option("_collectorOffset"),height:f,onAppointmentClick:this.option("onItemClick"),allowDrag:this.option("allowDrag"),cellWidth:this.invoke("getCellWidth"),isCompact:this.invoke("isAdaptive")||this._isGroupCompact(r)})}.bind(this))})}_isGroupCompact(n){return!n.isAllDay&&this.invoke("supportCompactDropDownAppointments")}_sortAppointmentsByStartDate(n){return $8e(n,this.option("dataAccessors"))}_processRecurrenceAppointment(n,e,i){var r=ea_getField(this.option("dataAccessors"),"recurrenceRule",n),o={parts:[],indexes:[]};if(r){for(var a=n.settings||n,s=new Date(ea_getField(this.option("dataAccessors"),"startDate",a)),l=ea_getField(this.option("dataAccessors"),"startDateTimeZone",n),u=new Date(ea_getField(this.option("dataAccessors"),"endDate",a)),f=u.getTime()-s.getTime(),S=ea_getField(this.option("dataAccessors"),"recurrenceException",n),T=this.invoke("getStartViewDate"),R=this.invoke("getEndViewDate"),L=this.option("timeZoneCalculator"),z=wf().generateDates({rule:r,exception:S,start:s,end:u,min:T,max:R,appointmentTimezoneOffset:L.getOriginStartDateOffsetInMs(s,l,!1)}),j=n.settings?1:z.length,Y=0;Y<j;Y++){var ie=se({},n,!0);if(z[Y]){var te=this._applyStartDateToObj(z[Y],{});this._applyEndDateToObj(new Date(z[Y].getTime()+f),te),ie.settings=te}else ie.settings=a;o.parts.push(ie),i||this._processLongAppointment(ie,o)}o.indexes.push(e)}return o}_processLongAppointment(n,e){var i=this.splitAppointmentByDay(n),r=i.length,o=this.invoke("getEndViewDate").getTime(),a=this.invoke("getStartViewDate").getTime(),s=this.option("timeZoneCalculator");if(e=e||{parts:[]},r>1){se(n,i[0]);for(var l=1;l<r;l++){var u=ea_getField(this.option("dataAccessors"),"startDate",i[l].settings).getTime();(u=s.createDate(u,{path:"toGrid"}))<o&&u>a&&e.parts.push(i[l])}}return e}_reduceRecurrenceAppointments(n,e){we(n,function(i,r){e.splice(r-i,1)})}_combineAppointments(n,e){e.length&&n.push(...e),this._sortAppointmentsByStartDate(n)}_applyStartDateToObj(n,e){return ea_setField(this.option("dataAccessors"),"startDate",e,n),e}_applyEndDateToObj(n,e){return ea_setField(this.option("dataAccessors"),"endDate",e,n),e}moveAppointmentBack(n){var e=this._$currentAppointment,i=this._initialSize,r=this._initialCoordinates;n&&(this._removeDragSourceClassFromDraggedAppointment(),tO(n.cancel)?n.cancel.resolve(!0):n.cancel=!0),e&&!n&&(r&&(kr(e,r),delete this._initialSize),i&&(QP(e,i.width),RO(e,i.height),delete this._initialCoordinates))}focus(){if(this._$currentAppointment){var n=kn(this._$currentAppointment);this.option("focusedElement",n),Se.trigger(n,"focus")}}splitAppointmentByDay(n){var e=n.settings||n,i=this.option("dataAccessors"),r=new Date(ea_getField(i,"startDate",e)),o=bt.makeDate(r),a=bt.makeDate(ea_getField(i,"endDate",e)),s=this.invoke("getEndViewDate"),l=this.invoke("getStartDayHour"),u=this.invoke("getEndDayHour"),f=this.option("timeZoneCalculator"),S=sa(n,i,f),T=OQ(S),R=[];for(o=f.createDate(o,{path:"toGrid"}),a=f.createDate(a,{path:"toGrid"}),o.getHours()<=u&&o.getHours()>=l&&!T&&(R.push(this._applyStartDateToObj(new Date(o),{appointmentData:n})),o.setDate(o.getDate()+1));T&&o.getTime()<a.getTime()&&o<s;){var L=new Date(o),z=new Date(o);this._checkStartDate(L,r,l),this._checkEndDate(z,a,u);var j=cd({},n,!0),Y={};this._applyStartDateToObj(L,Y),this._applyEndDateToObj(z,Y),j.settings=Y,R.push(j),(o=bt.trimTime(o)).setDate(o.getDate()+1),o.setHours(l)}return R}_checkStartDate(n,e,i){!bt.sameDate(n,e)||n.getHours()<=i?n.setHours(i,0,0,0):n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}_checkEndDate(n,e,i){!bt.sameDate(n,e)||n.getHours()>i?n.setHours(i,0,0,0):n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}_removeDragSourceClassFromDraggedAppointment(){this._itemElements().filter(".".concat(z8e)).each((e,i)=>{U(i).dxSchedulerAppointment("instance").option("isDragSource",!1)})}_setDragSourceAppointment(n,e){var i=this._findItemElementByItem(n),{startDate:r,endDate:o}=e.info.sourceAppointment,{groupIndex:a}=e;i.forEach(s=>{var{info:l,groupIndex:u}=s.data(h0),{startDate:f,endDate:S}=l.sourceAppointment,T=s.dxSchedulerAppointment("instance"),R=r.getTime()===f.getTime()&&o.getTime()===S.getTime()&&a===u;T.option("isDragSource",R)})}updateResizableArea(){var n=this.$element().find(".dx-scheduler-appointment.dx-resizable"),e=Vs(n,i=>{var o=U(i).dxResizable("instance"),{area:a,handles:s}=o.option();return("right left"===s||"left right"===s)&&wi(a)});we(e,(i,r)=>{var o=U(r),a=Ra(o),s=this._getItemData(o),l=this._calculateResizableArea({left:a.left},s);o.dxResizable("instance").option("area",l)})}}On("dxSchedulerAppointments",e3e);const _pn=e3e,n3e=class Spn{constructor(n){this._renderingStrategy=n}getDropDownAppointmentWidth(n,e){return e||!Z(e)?75*this._renderingStrategy.cellWidth/100:24}getCollectorTopOffset(){return 3}getCollectorLeftOffset(){return 3}getAppointmentDefaultOffset(){return this._renderingStrategy._isCompactTheme()?22:this._renderingStrategy.appointmentOffset}getDynamicAppointmentCountPerCell(){var n=this._renderingStrategy,i=Math.floor((n.cellHeight-n._getAppointmentDefaultOffset())/n._getAppointmentDefaultHeight())||this._getAppointmentMinCount();return n.allDaySupported()?{allDay:"vertical"===n.groupOrientation?i:this._renderingStrategy.appointmentCountPerCell,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:i}getDropDownAppointmentHeight(){}_getAppointmentMinCount(){return 1}_calculateDynamicAppointmentCountPerCell(){return Math.floor(this._renderingStrategy._getAppointmentMaxWidth()/50)}_getAppointmentDefaultWidth(){return 40}},Ipn=class Tpn extends n3e{getDropDownAppointmentWidth(n,e){return this.getDropDownButtonAdaptiveSize()}getDropDownButtonAdaptiveSize(){return 28}getCollectorTopOffset(n){var e=this._renderingStrategy;return e.allDaySupported()&&n?(e.allDayHeight-e.getDropDownButtonAdaptiveSize())/2:this._renderingStrategy.cellHeight-40}getCollectorLeftOffset(){var n=this._renderingStrategy.getDropDownAppointmentWidth();return(this._renderingStrategy.cellWidth-n)/2}getAppointmentDefaultOffset(){return 35}getDynamicAppointmentCountPerCell(){return this._renderingStrategy.allDaySupported()?{allDay:0,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:0}getDropDownAppointmentHeight(){return 28}_getAppointmentMinCount(){return 0}_getAppointmentDefaultWidth(){return this._renderingStrategy.allDaySupported()?30:super._getAppointmentDefaultWidth()}_calculateDynamicAppointmentCountPerCell(){return Math.floor(this._renderingStrategy._getAppointmentMaxWidth()/this._renderingStrategy._getAppointmentDefaultWidth())}};class r3e{constructor(n){this.options=n}get DOMMetaData(){return this.options.DOMMetaData}get appointments(){return this.options.dateSettings}get viewDataProvider(){return this.options.viewDataProvider}get positionHelper(){return this.options.positionHelper}get startViewDate(){return this.options.startViewDate}get viewStartDayHour(){return this.options.viewStartDayHour}get viewEndDayHour(){return this.options.viewEndDayHour}get cellDuration(){return this.options.cellDuration}get getPositionShift(){return this.options.getPositionShiftCallback}get groupCount(){return this.options.groupCount}get rtlEnabled(){return this.options.rtlEnabled}get isVerticalGrouping(){return this.options.isVerticalGroupOrientation}get showAllDayPanel(){return this.options.showAllDayPanel}get supportAllDayRow(){return this.options.supportAllDayRow}get isGroupedAllDayPanel(){return this.options.isGroupedAllDayPanel}get isVirtualScrolling(){return!1}calculateCellPositions(n,e,i){var r=[];return this.appointments.forEach((o,a)=>{this.getCoordinateInfos({appointment:o,groupIndices:n,isAllDayRowAppointment:e,isRecurrentAppointment:i}).forEach(l=>{l&&r.push(this._prepareObject(l,a))})}),r}getCoordinateInfos(n){var{appointment:e,isAllDayRowAppointment:i,groupIndices:r,recurrent:o}=n,{startDate:a}=e;return this.getCoordinatesByDateInGroup(a,r,i,o?void 0:e.source.groupIndex)}_prepareObject(n,e){return n.dateSettingIndex=e,{coordinates:n,dateSettingIndex:e}}getCoordinatesByDate(n,e,i){var r=e||0,a=this.viewDataProvider.findCellPositionInMap({groupIndex:r,startDate:n,isAllDay:i});if(a){var s=this.getCellPosition(a,i&&!this.isVerticalGrouping),l=i?0:this.getTimeShift(n),u=this.getPositionShift(l,i),f=this.positionHelper.getHorizontalMax(r,n),S=this.positionHelper.getVerticalMax({groupIndex:r,isVirtualScrolling:this.isVirtualScrolling,showAllDayPanel:this.showAllDayPanel,supportAllDayRow:this.supportAllDayRow,isGroupedAllDayPanel:this.isGroupedAllDayPanel,isVerticalGrouping:this.isVerticalGrouping});return{positionByMap:a,cellPosition:s.left+u.cellPosition,top:s.top+u.top,left:s.left+u.left,rowIndex:s.rowIndex,columnIndex:s.columnIndex,hMax:f,vMax:S,groupIndex:r}}}getCoordinatesByDateInGroup(n,e,i,r){var o=[];if(this.viewDataProvider.isSkippedDate(n))return o;var a=[r];return Z(r)||(a=this.groupCount?e:[0]),a.forEach(s=>{var l=this.getCoordinatesByDate(n,s,i);l&&o.push(l)}),o}getCellPosition(n,e){var{dateTableCellsMeta:i,allDayPanelCellsMeta:r}=this.DOMMetaData,{columnIndex:o,rowIndex:a}=n,s=e?r[o]:i[a][o],l=mt({},s);return this.rtlEnabled&&(l.left+=s.width),l&&(l.rowIndex=n.rowIndex,l.columnIndex=n.columnIndex),l}getTimeShift(n){var e=new Date(n),i=new Date(new Date(n).setHours(this.viewEndDayHour,0,0));n.getTime()<=i.getTime()&&e.setHours(this.viewStartDayHour,0,0,0);var r=bt.getTimezonesDifference(n,e),o=n.getTime(),a=e.getTime();return o>this.startViewDate.getTime()?(o-a+r)%this.cellDuration/this.cellDuration:0}}class kpn extends r3e{get isVirtualScrolling(){return!0}calculateCellPositions(n,e,i){var r=e?this.appointments:this.appointments.filter(o=>{var{source:a,startDate:s,endDate:l}=o;return this.viewDataProvider.isGroupIntersectDateInterval(a.groupIndex,s,l)});return i?this.createRecurrentAppointmentInfos(r,e):super.calculateCellPositions(n,e,i)}createRecurrentAppointmentInfos(n,e){var i=[];return n.forEach((r,o)=>{var{source:a,startDate:s}=r,l=this.getCoordinatesByDate(s,a.groupIndex,e);l&&i.push(this._prepareObject(l,o))}),i}}class Mpn{constructor(n){this.options=n}calculateCellPositions(n,e,i){return(this.options.isVirtualScrolling?new kpn(this.options):new r3e(this.options)).calculateCellPositions(n,e,i)}}var Apn={timelineDay:!0,timelineWeek:!0,timelineWorkWeek:!0,timelineMonth:!0},o3e=(t,n,e,i)=>i>0?bt.dateInRange(t,n,new Date(e.getTime()-1)):bt.dateInRange(t,e,n,"date"),zv=(t,n)=>{var e=new Date(t);return Z(n)&&e.setHours(n,n%1*60,0,0),e},l3=(t,n,e,i)=>{if(!t)return new Date(n);for(var r=bt.trimTime(i),o=r.getTime()<=n.getTime()?1:-1,a=new Date(r.getTime()+e*o);!o3e(n,r,a,o);)r=a,a=new Date(r.getTime()+e*o);return o>0?r:a},a3e=t=>Z(t)?t:Gn.firstDayOfWeekIndex(),s3e=(t,n)=>{var e=qr.getDateWithoutTimezoneChange(t);return e.setHours(n),e},TQ=(t,n)=>{if(t>=n)throw Di.Error("E1058")},l3e=(t,n)=>{var e=Math.floor(n);return qr.isTimezoneChangeInDate(t)&&e!==t.getHours()?bt.dateToMilliseconds("hour"):0},IQ=t=>Gn.getDayNames("abbreviated")[t.getDay()],u3=t=>"".concat(IQ(t)," ").concat(Gn.format(t,"day")),u3e=(t,n)=>{var e=t??new Date;return n?.createDate(e,{path:"toGrid"})||e},d3e=t=>{switch(t?.length){case 1:return s3[0];case 2:return s3[1];case 3:return s3[2];default:return}},Bb=t=>t!==La.TIMELINE_MONTH&&t!==La.MONTH,kQ=t=>!!Apn[t],MQ=(t,n)=>{var e=c0(t)||1;return n3(t,n)?1:e},c3e=(t,n,e)=>n3(t,n)&&e,AQ=(t,n)=>n-t,h3e=t=>{switch(t){case La.TIMELINE_DAY:case La.TIMELINE_WEEK:case La.TIMELINE_WORK_WEEK:case La.TIMELINE_MONTH:case La.MONTH:return!0;default:return!1}},FQ=t=>t[t.length-1].length,p3e=t=>t.length,g3e=(t,n)=>t??FQ(n),PQ=(t,n)=>t??p3e(n),f3e=(t,n,e,i)=>{switch(t){case"month":return 36e5*AQ(n,e);case"timelineMonth":return bt.dateToMilliseconds("day");default:return 36e5*i}},m3e=(t,n,e,i)=>e?"DATE":i&&bt.sameDate(t,n)?"TIME":"DATETIME",_3e=(t,n,e)=>{var i=t.getDate()===n.getDate();switch(e){case"DATETIME":return[Gn.format(t,"monthandday")," ",Gn.format(t,"shorttime")," - ",i?"":Gn.format(n,"monthandday")+" ",Gn.format(n,"shorttime")].join("");case"TIME":return"".concat(Gn.format(t,"shorttime")," - ").concat(Gn.format(n,"shorttime"));case"DATE":return"".concat(Gn.format(t,"monthandday")).concat(i?"":" - "+Gn.format(n,"monthandday"))}},Nb=bt.dateToMilliseconds;class v3e{constructor(n){this.options=n}get rawAppointment(){return this.options.rawAppointment}get timeZoneCalculator(){return this.options.timeZoneCalculator}get viewDataProvider(){return this.options.viewDataProvider}get appointmentTakesAllDay(){return this.options.appointmentTakesAllDay}get supportAllDayRow(){return this.options.supportAllDayRow}get isAllDayRowAppointment(){return this.options.isAllDayRowAppointment}get timeZone(){return this.options.timeZone}get dateRange(){return this.options.dateRange}get firstDayOfWeek(){return this.options.firstDayOfWeek}get viewStartDayHour(){return this.options.viewStartDayHour}get viewEndDayHour(){return this.options.viewEndDayHour}get endViewDate(){return this.options.endViewDate}get viewType(){return this.options.viewType}get isGroupedByDate(){return this.options.isGroupedByDate}get isVerticalOrientation(){return this.options.isVerticalGroupOrientation}get dataAccessors(){return this.options.dataAccessors}get loadedResources(){return this.options.loadedResources}get isDateAppointment(){return!Bb(this.viewType)&&this.appointmentTakesAllDay}getIntervalDuration(){return this.appointmentTakesAllDay?this.options.allDayIntervalDuration:this.options.intervalDuration}generate(n){var e=this._getGroupIndices(this.rawAppointment),i=this._createAppointments(n,e);i=this._getProcessedByAppointmentTimeZone(i,n),this._canProcessNotNativeTimezoneDates(n)&&(i=this._getProcessedNotNativeTimezoneDates(i,n));var r=this._createGridAppointmentList(i,n),o=this._getAppointmentsFirstViewDate(r);this._fillNormalizedStartDate(r,o),r=this._cropAppointmentsByStartDayHour(r,o,this.rawAppointment),r=this._fillNormalizedEndDate(r,this.rawAppointment),this._needSeparateLongParts()&&(r=this._separateLongParts(r,n));var{isRecurrent:a}=n;return{dateSettings:r,itemGroupIndices:e,isRecurrent:a}}_getProcessedByAppointmentTimeZone(n,e){if(!pa(e.startDateTimeZone)||!pa(e.endDateTimeZone)){var r={startDate:this.timeZoneCalculator.getOffsets(e.startDate,e.startDateTimeZone),endDate:this.timeZoneCalculator.getOffsets(e.endDate,e.endDateTimeZone)};n.forEach(o=>{var a=this.timeZoneCalculator.getOffsets(o.startDate,e.startDateTimeZone),s=this.timeZoneCalculator.getOffsets(o.endDate,e.endDateTimeZone),l=r.startDate.appointment-a.appointment,u=r.endDate.appointment-s.appointment;a.appointment!==a.common&&(o.startDate=new Date(o.startDate.getTime()+l*Nb("hour"))),s.appointment!==s.common&&(o.endDate=new Date(o.endDate.getTime()+u*Nb("hour")))})}return n}_createAppointments(n,e){var i=this._createRecurrenceAppointments(n,e);return!n.isRecurrent&&0===i.length&&i.push({startDate:n.startDate,endDate:n.endDate}),i.map(r=>{var o,a=null===(o=r.endDate)||void 0===o?void 0:o.getTime();return r.startDate.getTime()===a&&r.endDate.setTime(a+Nb("minute")),mt({},r,{exceptionDate:new Date(r.startDate)})})}_canProcessNotNativeTimezoneDates(n){return!(pa(this.timeZone)||!n.isRecurrent||qr.isEqualLocalTimeZone(this.timeZone,n.startDate))}_getProcessedNotNativeDateIfCrossDST(n,e){if(e<0){var i=new Date(n),r=new Date(i);if(r.setHours(r.getHours()-1),this.timeZoneCalculator.getOffsets(i).common!==this.timeZoneCalculator.getOffsets(r).common)return 0}return e}_getCommonOffset(n){return this.timeZoneCalculator.getOffsets(n).common}_getProcessedNotNativeTimezoneDates(n,e){return n.map(i=>{var r=this._getCommonOffset(e.startDate)-this._getCommonOffset(i.startDate),o=this._getCommonOffset(e.endDate)-this._getCommonOffset(i.endDate);if(0===r&&0===o)return i;r=this._getProcessedNotNativeDateIfCrossDST(i.startDate,r),o=this._getProcessedNotNativeDateIfCrossDST(i.endDate,o);var a=new Date(i.startDate.getTime()+r*Nb("hour")),s=new Date(i.endDate.getTime()+o*Nb("hour")),l=this.timeZoneCalculator.createDate(a,{path:"toGrid"}),u=this.timeZoneCalculator.createDate(s,{path:"toGrid"});return e.duration>u.getTime()-l.getTime()&&(s=new Date(a.getTime()+e.duration)),mt({},i,{startDate:a,endDate:s,exceptionDate:new Date(a)})})}_needSeparateLongParts(){return this.isVerticalOrientation?this.isGroupedByDate:this.isGroupedByDate&&this.appointmentTakesAllDay}normalizeEndDateByViewEnd(n,e){var i=new Date(e.getTime());if(!Bb(this.viewType)||!this.appointmentTakesAllDay){var o=bt.roundToHour(this.endViewDate);i>o&&(i=o)}var a=this.viewEndDayHour,s=ea_getField(this.dataAccessors,"allDay",n),l=new Date(new Date(e.getTime()).setHours(a,0,0,0));return(i.getTime()>l.getTime()||s&&i.getHours()<a)&&(i=l),i}_fillNormalizedEndDate(n,e){return n.map(i=>{var{endDate:r}=i;return mt({},i,{normalizedEndDate:this.normalizeEndDateByViewEnd(e,r)})})}_separateLongParts(n,e){var i=[];return n.forEach(r=>{var o=new Date(this.dateRange[1]),{normalizedEndDate:a}=r,l=bt.getDatesOfInterval(r.startDate,a,{milliseconds:this.getIntervalDuration(this.appointmentTakesAllDay)}).filter(u=>new Date(u)<o).map(u=>{var f=new Date(new Date(u).setMilliseconds(e.duration));return{startDate:u,endDate:f,normalizedEndDate:this.normalizeEndDateByViewEnd(this.rawAppointment,f),source:r.source}});i=i.concat(l)}),i}_createGridAppointmentList(n,e){return n.map(i=>{var r=e.startDate.getTimezoneOffset()-i.startDate.getTimezoneOffset();return 0!==r&&this._canProcessNotNativeTimezoneDates(e)&&(i.startDate=new Date(i.startDate.getTime()+r*Nb("minute")),i.endDate=new Date(i.endDate.getTime()+r*Nb("minute")),i.exceptionDate=new Date(i.startDate)),{startDate:this.timeZoneCalculator.createDate(i.startDate,{path:"toGrid"}),endDate:this.timeZoneCalculator.createDate(i.endDate,{path:"toGrid"}),allDay:e.allDay||!1,source:i}})}_createExtremeRecurrenceDates(){var n=this.appointmentTakesAllDay?bt.trimTime(this.dateRange[0]):this.dateRange[0],e=this.dateRange[1];if(this.timeZone){n=this.timeZoneCalculator.createDate(n,{path:"fromGrid"}),e=this.timeZoneCalculator.createDate(e,{path:"fromGrid"});var i=qr.getDaylightOffsetInMs(n,e);i&&(e=new Date(e.getTime()+i))}return[n,e]}_createRecurrenceOptions(n,e){var[i,r]=this._createExtremeRecurrenceDates(e);return{rule:n.recurrenceRule,exception:n.recurrenceException,min:i,max:r,firstDayOfWeek:this.firstDayOfWeek,start:n.startDate,end:n.endDate,appointmentTimezoneOffset:this.timeZoneCalculator.getOriginStartDateOffsetInMs(n.startDate,n.rawAppointment.startDateTimeZone,!0),getPostProcessedException:o=>{if(pa(this.timeZone)||qr.isEqualLocalTimeZone(this.timeZone,o))return o;var l=this.timeZoneCalculator.getOffsets(n.startDate).common-this.timeZoneCalculator.getOffsets(o).common;return l=this._getProcessedNotNativeDateIfCrossDST(o,l),new Date(o.getTime()-l*bt.dateToMilliseconds("hour"))}}}_createRecurrenceAppointments(n,e){var{duration:i}=n,r=this._createRecurrenceOptions(n);return wf().generateDates(r).map(a=>{var s=qr.createUTCDateWithLocalOffset(a);s.setTime(s.getTime()+i);var l=qr.createDateFromUTCWithLocalOffset(s);return{startDate:new Date(a),endDate:l}})}_getAppointmentsFirstViewDate(n){return n.map(e=>this._getAppointmentFirstViewDate(e))}_fillNormalizedStartDate(n,e,i){n.forEach((r,o)=>{r.startDate=this._getAppointmentResultDate({appointment:r,rawAppointment:i,startDate:new Date(r.startDate),startDayHour:this.viewStartDayHour,firstViewDate:e[o]})})}_cropAppointmentsByStartDayHour(n,e){return n.filter((i,r)=>!!e[r]&&(!!this.appointmentTakesAllDay||i.endDate>i.startDate))}_getAppointmentResultDate(n){var a,{appointment:e,startDayHour:i,firstViewDate:r}=n,{startDate:o}=n;return this.appointmentTakesAllDay?a=bt.normalizeDate(o,r):(o<r&&(o=r),a=bt.normalizeDate(e.startDate,o)),this.isDateAppointment?a:bt.roundDateByStartDayHour(a,i)}_getAppointmentFirstViewDate(n){var e=n.source.groupIndex||0,{startDate:i,endDate:r}=n;return this.isAllDayRowAppointment||n.allDay?this.viewDataProvider.findAllDayGroupCellStartDate(e,i):this.viewDataProvider.findGroupCellStartDate(e,i,r,this.isDateAppointment)}_getGroupIndices(n){var e=[];if(n&&this.loadedResources.length){var i=kM(this.loadedResources);e=_Q((r,o)=>e3(this.options.dataAccessors.resources,r,o),i,n)}return e}}class Npn extends v3e{get groupCount(){return c0(this.loadedResources)}_createRecurrenceAppointments(n,e){var{duration:i}=n,r=[];return(this.groupCount?e:[0]).forEach(a=>{var s=this._createRecurrenceOptions(n,a),u=wf().generateDates(s).map(f=>{var S=new Date(f),T=qr.createUTCDateWithLocalOffset(f);return T.setTime(T.getTime()+i),{startDate:S,endDate:qr.createDateFromUTCWithLocalOffset(T),groupIndex:a}});r.push(...u)}),r}_updateGroupIndices(n,e){var i=[];return e.forEach(r=>{this.viewDataProvider.getGroupStartDate(r)&&n.forEach(a=>{var s=se({},a);s.groupIndex=r,i.push(s)})}),i}_getGroupIndices(n){var e,i=super._getGroupIndices(n),r=this.viewDataProvider.getGroupIndices();return null!==(e=i)&&void 0!==e&&e.length||(i=[0]),i.filter(o=>-1!==r.indexOf(o))}_createAppointments(n,e){var i=super._createAppointments(n,e);return n.isRecurrent?i:this._updateGroupIndices(i,e)}}class Vpn{constructor(n){this.options=n,this.appointmentAdapter=sa(this.rawAppointment,this.dataAccessors,this.timeZoneCalculator)}get rawAppointment(){return this.options.rawAppointment}get dataAccessors(){return this.options.dataAccessors}get timeZoneCalculator(){return this.options.timeZoneCalculator}get isAllDayRowAppointment(){return this.options.appointmentTakesAllDay&&this.options.supportAllDayRow}get groups(){return this.options.groups}get dateSettingsStrategy(){var n=mt({},this.options,{isAllDayRowAppointment:this.isAllDayRowAppointment});return this.options.isVirtualScrolling?new Npn(n):new v3e(n)}create(){var{dateSettings:n,itemGroupIndices:e,isRecurrent:i}=this._generateDateSettings(),r=this._calculateCellPositions(n,e);return this._prepareAppointmentInfos(n,r,i)}_generateDateSettings(){return this.dateSettingsStrategy.generate(this.appointmentAdapter)}_calculateCellPositions(n,e){return new Mpn(mt({},this.options,{dateSettings:n})).calculateCellPositions(e,this.isAllDayRowAppointment,this.appointmentAdapter.isRecurrent)}_prepareAppointmentInfos(n,e,i){var r=[];return e.forEach(o=>{var{coordinates:a,dateSettingIndex:s}=o,l=n[s],u=this._getAppointmentDateText(l);r.push(mt({},a,{info:{appointment:l,sourceAppointment:l.source,dateText:u,isRecurrent:i}}))}),r}_getAppointmentDateText(n){var{startDate:e,endDate:i,allDay:r}=n;return(t=>{var{startDate:n,endDate:e,allDay:i,format:r}=t,o=r||m3e(n,e,i);return _3e(n,e,o)})({startDate:e,endDate:i,allDay:r,format:"TIME"})}}var y3e=(t,n)=>(n.getTime()-t.getTime())/bt.dateToMilliseconds("hour"),fD=(t,n,e,i)=>{var r=()=>t.allDay;switch(i){case"hidden":return!1;case"allDay":return r();default:if(r())return!0;var{endDate:o,startDate:a}=t;return!!Z(o)&&(y3e(a,o)>=24||((t,n,e,i)=>{var r=y3e(t,n),o=i-e,a=t.getHours(),s=n.getHours();return r>=o&&a===e&&s===i})(a,o,n,e))}},d3=bt.dateToMilliseconds;const RQ=class $pn{constructor(n){this.options=n,this._initPositioningStrategy()}get isAdaptive(){return this.options.adaptivityEnabled}get rtlEnabled(){return this.options.rtlEnabled}get startDayHour(){return this.options.startDayHour}get endDayHour(){return this.options.endDayHour}get maxAppointmentsPerCell(){return this.options.maxAppointmentsPerCell}get cellWidth(){return this.options.cellWidth}get cellHeight(){return this.options.cellHeight}get allDayHeight(){return this.options.allDayHeight}get resizableStep(){return this.options.resizableStep}get isGroupedByDate(){return this.options.isGroupedByDate}get visibleDayDuration(){return this.options.visibleDayDuration}get viewStartDayHour(){return this.options.viewStartDayHour}get viewEndDayHour(){return this.options.viewEndDayHour}get cellDuration(){return this.options.cellDuration}get cellDurationInMinutes(){return this.options.cellDurationInMinutes}get leftVirtualCellCount(){return this.options.leftVirtualCellCount}get topVirtualCellCount(){return this.options.topVirtualCellCount}get positionHelper(){return this.options.positionHelper}get showAllDayPanel(){return this.options.showAllDayPanel}get isGroupedAllDayPanel(){return this.options.isGroupedAllDayPanel}get groupOrientation(){return this.options.groupOrientation}get rowCount(){return this.options.rowCount}get groupCount(){return this.options.groupCount}get currentDate(){return this.options.currentDate}get appointmentCountPerCell(){return this.options.appointmentCountPerCell}get appointmentOffset(){return this.options.appointmentOffset}get allowResizing(){return this.options.allowResizing}get allowAllDayResizing(){return this.options.allowAllDayResizing}get viewDataProvider(){return this.options.viewDataProvider}get dataAccessors(){return this.options.dataAccessors}get timeZoneCalculator(){return this.options.timeZoneCalculator}get intervalCount(){return this.options.intervalCount}get allDayPanelMode(){return this.options.allDayPanelMode}get isVirtualScrolling(){return this.options.isVirtualScrolling}_correctCollectorCoordinatesInAdaptive(n,e){n.top=n.top+this.getCollectorTopOffset(e),n.left=n.left+this.getCollectorLeftOffset()}_initPositioningStrategy(){this._positioningStrategy=this.isAdaptive?new Ipn(this):new n3e(this)}getPositioningStrategy(){return this._positioningStrategy}getAppointmentMinSize(){return 2}keepAppointmentSettings(){return!1}getDeltaTime(){}getAppointmentGeometry(n){return n}needCorrectAppointmentDates(){return!0}getDirection(){return"horizontal"}createTaskPositionMap(n){delete this._maxAppointmentCountPerCell;var e=n?.length;if(e){for(var i=[],r=0;r<e;r++){var o=this._getItemPosition(n[r]);o.length&&this.rtlEnabled&&(o=this._correctRtlCoordinates(o)),o.forEach(l=>{l.leftVirtualCellCount=this.leftVirtualCellCount,l.topVirtualCellCount=this.topVirtualCellCount,l.leftVirtualWidth=this.leftVirtualCellCount*this.cellWidth,l.topVirtualHeight=this.topVirtualCellCount*this.cellHeight}),i.push(o)}var a=this._getSortedPositions(i),s=this._getResultPositions(a);return this._getExtendedPositionMap(i,s)}}_getDeltaWidth(n,e){var i=this.resizableStep||this.getAppointmentMinSize();return Math.round((n.width-e.width)/i)}_correctRtlCoordinates(n){var e=n[0].width||this._getAppointmentMaxWidth();return n.forEach(i=>{i.appointmentReduced||(i.left-=e)}),n}_getAppointmentMaxWidth(){return this.cellWidth}_getItemPosition(n){for(var e=this.generateAppointmentSettings(n),i=this.isAllDay(n),r=[],o=0;o<e.length;o++){var a=this.calculateAppointmentHeight(n,e[o]),s=this.calculateAppointmentWidth(n,e[o]),l=s,u=null,f=[],S=e[o].rowIndex,T=e[o].columnIndex;if(this._needVerifyItemSize()||i){var R=e[o].hMax;this.isAppointmentGreaterThan(R,{left:e[o].left,width:s})&&(u="head",S=e[o].rowIndex,T=e[o].columnIndex,l=this._reduceMultiWeekAppointment(s,{left:e[o].left,right:R}),f=this._getAppointmentParts({sourceAppointmentWidth:s,reducedWidth:l,height:a},e[o]),this.rtlEnabled&&(e[o].left=R))}se(e[o],{height:a,width:l,allDay:i,rowIndex:S,columnIndex:T,appointmentReduced:u}),r=this._getAppointmentPartsPosition(f,e[o],r)}return r}_getAppointmentPartsPosition(n,e,i){return n.length?(n.unshift(e),i=i.concat(n)):i.push(e),i}getAppointmentSettingsGenerator(n){return new Vpn(mt({rawAppointment:n,appointmentTakesAllDay:this.isAppointmentTakesAllDay(n),getPositionShiftCallback:this.getPositionShift.bind(this)},this.options))}generateAppointmentSettings(n){return this.getAppointmentSettingsGenerator(n).create()}isAppointmentTakesAllDay(n){var e=sa(n,this.dataAccessors,this.timeZoneCalculator);return fD(e,this.viewStartDayHour,this.viewEndDayHour,this.allDayPanelMode)}_getAppointmentParts(){return[]}_getCompactAppointmentParts(n){var e=this.cellWidth||this.getAppointmentMinSize();return Math.round(n/e)}_reduceMultiWeekAppointment(n,e){return this.rtlEnabled?Math.floor(e.left-e.right):e.right-Math.floor(e.left)}calculateAppointmentHeight(){return 0}calculateAppointmentWidth(){return 0}isAppointmentGreaterThan(n,e){var i=e.left+e.width-n;return this.rtlEnabled&&(i=n+e.width-e.left),i>this.cellWidth/2}isAllDay(){return!1}cropAppointmentWidth(n,e){return this.isGroupedByDate?e:n}_getSortedPositions(n){for(var e=[],i=z=>Math.round(100*z)/100,o=0,a=n.length;o<a;o++)for(var s=0,l=n[o].length;s<l;s++){var{top:u,left:f,height:S,width:T,cellPosition:R,allDay:L}=n[o][s];e.push((ie=f,te=u+S,re=f+T,he=R,fe=L,{i:o,j:s,top:i(u),left:i(ie),bottom:i(te),right:i(re),cellPosition:he,allDay:fe}))}var ie,te,re,he,fe;return e.sort((z,j)=>this._sortCondition(z,j))}_sortCondition(){}_getConditions(n,e){var i=this._isSomeEdge(n,e);return{columnCondition:i||this._normalizeCondition(n.left,e.left),rowCondition:i||this._normalizeCondition(n.top,e.top),cellPositionCondition:i||this._normalizeCondition(n.cellPosition,e.cellPosition)}}_rowCondition(n,e){var i=this._getConditions(n,e);return i.columnCondition||i.rowCondition}_columnCondition(n,e){var i=this._getConditions(n,e);return i.rowCondition||i.columnCondition}_isSomeEdge(n,e){return n.i===e.i&&n.j===e.j}_normalizeCondition(n,e){var i=n-e;return Math.abs(i)>1?i:0}_isItemsCross(n,e){if(!!n.allDay==!!e.allDay){var o=this._getOrientation(n.allDay&&e.allDay);return this._checkItemsCrossing(n,e,o)}return!1}_checkItemsCrossing(n,e,i){var r=Math.floor(n[i[0]]),o=Math.floor(n[i[1]]),a=Math.ceil(e[i[0]]),s=Math.ceil(e[i[1]]);return Math.abs(n[i[2]]-e[i[2]])<=1&&(r<=a&&o>a||r<s&&o>=s||r===a&&o===s)}_getOrientation(n){return n?["left","right","top"]:["top","bottom","left"]}_getResultPositions(n){var i,o,a,s,e=[],r=0,l=0,u={},f=(L,z)=>L.some(Y=>Y===z)?f(L,++z):z,S=(L,z)=>{var j=z||0;return{index:j,i:L.i,j:L.j,left:L.left,right:L.right,top:L.top,bottom:L.bottom,allDay:L.allDay,sortedIndex:this._skipSortedIndex(j)?null:r++}},T=L=>{u.items=[S(L)],u.left=L.left,u.right=L.right,u.top=L.top,u.bottom=L.bottom,u.allDay=L.allDay},R=L=>{L.forEach(z=>{e.push({index:z.index,count:l+1,i:z.i,j:z.j,sortedIndex:z.sortedIndex})})};for(i=0;i<n.length;i++)o=n[i],a=[],u.items?this._isItemsCross(u,o)?(u.items.forEach((L,z)=>{this._isItemsCross(L,o)&&a.push(L.index)}),s=a.length?f(a,0):0,u.items.push(S(o,s)),l=Math.max(s,l),u.left=Math.min(u.left,o.left),u.right=Math.max(u.right,o.right),u.top=Math.min(u.top,o.top),u.bottom=Math.max(u.bottom,o.bottom),u.allDay=o.allDay):(R(u.items),u={},T(o),l=0):T(o);return u.items&&R(u.items),e.sort(function(L,z){return L.i-z.i||L.j-z.j})}_skipSortedIndex(n){return n>this._getMaxAppointmentCountPerCell()-1}_findIndexByKey(n,e,i,r,o){for(var a=0,s=0,l=n.length;s<l;s++)if(n[s][e]===r&&n[s][i]===o){a=s;break}return a}_getExtendedPositionMap(n,e){for(var i=0,r=[],o=0,a=n.length;o<a;o++){for(var s=[],l=0,u=n[o].length;l<u;l++)n[o][l].index=e[i].index,n[o][l].sortedIndex=e[i].sortedIndex,n[o][l].count=e[i++].count,s.push(n[o][l]),this._checkLongCompactAppointment(n[o][l],s);r.push(s)}return r}_checkLongCompactAppointment(n,e){return this._splitLongCompactAppointment(n,e),e}_splitLongCompactAppointment(n,e){var i=this._getMaxAppointmentCountPerCellByType(n.allDay),r=0;if(void 0!==i&&n.index>i-1){n.isCompact=!0,r=this._getCompactAppointmentParts(n.width);for(var o=1;o<r;o++){var a=se(!0,{},n);a.left=this._getCompactLeftCoordinate(n.left,o),a.columnIndex=a.columnIndex+o,a.sortedIndex=null,e.push(a)}}return e}_adjustDurationByDaylightDiff(n,e,i){var r=qr.getDaylightOffset(e,i);return this._needAdjustDuration(r)?this._calculateDurationByDaylightDiff(n,r):n}_needAdjustDuration(n){return 0!==n}_calculateDurationByDaylightDiff(n,e){return n+e*d3("minute")}_getCollectorLeftOffset(n){if(n||!this.isApplyCompactAppointmentOffset())return 0;var e=this.getDropDownAppointmentWidth(this.intervalCount,n),i=this._isCompactTheme()?1:5;return this.cellWidth-e-i}_markAppointmentAsVirtual(n){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this._getMaxAppointmentCountPerCellByType(e);if(n.count-i>0){var{top:r,left:o}=n,a=this.isAdaptive||!e&&this.supportCompactDropDownAppointments();n.virtual={left:o+this._getCollectorLeftOffset(e),top:r,width:this.getDropDownAppointmentWidth(this.intervalCount,e),height:this.getDropDownAppointmentHeight(),index:this._generateAppointmentCollectorIndex(n,e),isAllDay:e,groupIndex:n.groupIndex,isCompact:a}}}isApplyCompactAppointmentOffset(){return this.supportCompactDropDownAppointments()}supportCompactDropDownAppointments(){return!0}_generateAppointmentCollectorIndex(n,e){var{groupIndex:i,rowIndex:r,columnIndex:o}=n;return"".concat(i,"-").concat(r,"-").concat(o,"-").concat(e)}_getMaxAppointmentCountPerCellByType(n){var e=this._getMaxAppointmentCountPerCell();return Jn(e)?n?e.allDay:e.simple:e}getDropDownAppointmentWidth(n,e){return this.getPositioningStrategy().getDropDownAppointmentWidth(n,e)}getDropDownAppointmentHeight(){return this.getPositioningStrategy().getDropDownAppointmentHeight()}getDropDownButtonAdaptiveSize(){return 28}getCollectorTopOffset(n){return this.getPositioningStrategy().getCollectorTopOffset(n)}getCollectorLeftOffset(){return this.getPositioningStrategy().getCollectorLeftOffset()}getAppointmentDataCalculator(){}getVerticalAppointmentHeight(n,e,i){var r=i;if(di(this.maxAppointmentsPerCell)){var o=this._getDynamicAppointmentCountPerCell(),s=Math.max(e,o.allDay||o);r=Math.min(s,i)}return n/r}_customizeCoordinates(n,e,i,r,o){var{index:a,count:s}=n,l=this.getVerticalAppointmentHeight(e,s,i),f=n.top+a*l+r,S=n.width,T=n.left;return n.isCompact&&(this.isAdaptive&&this._correctCollectorCoordinatesInAdaptive(n,o),this._markAppointmentAsVirtual(n,o)),{height:l,width:S,top:f,left:T,empty:this._isAppointmentEmpty(e,S)}}_isAppointmentEmpty(n,e){return n<this._getAppointmentMinHeight()||e<this._getAppointmentMinWidth()}_calculateGeometryConfig(n){var e=this.maxAppointmentsPerCell,i=this._getOffsets(),r=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(e,n),a=this._getDefaultRatio(n,o),s=this._getMaxHeight();di(o)||(o=n.count,a=(s-i.unlimited)/s);var l=(1-a)*s;return("auto"===e||di(e))&&(a=1,s-=r,l=r),{height:a*s,appointmentCountPerCell:o,offset:l}}_getAppointmentCount(){}_getDefaultRatio(){}_getOffsets(){}_getMaxHeight(){}_needVerifyItemSize(){return!1}_getMaxAppointmentCountPerCell(){if(!this._maxAppointmentCountPerCell){var e,n=this.maxAppointmentsPerCell;di(n)&&(e=n),"auto"===n&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===n&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell}_getDynamicAppointmentCountPerCell(){return this.getPositioningStrategy().getDynamicAppointmentCountPerCell()}allDaySupported(){return!1}_isCompactTheme(){return"compact"===(lu()||"").split(".").pop()}_getAppointmentDefaultOffset(){return this.getPositioningStrategy().getAppointmentDefaultOffset()}_getAppointmentDefaultHeight(){return this._getAppointmentHeightByTheme()}_getAppointmentMinHeight(){return this._getAppointmentDefaultHeight()}_getAppointmentHeightByTheme(){return this._isCompactTheme()?18:20}_getAppointmentDefaultWidth(){return this.getPositioningStrategy()._getAppointmentDefaultWidth()}_getAppointmentMinWidth(){return this._getAppointmentDefaultWidth()}_needVerticalGroupBounds(){return!1}_needHorizontalGroupBounds(){return!1}getAppointmentDurationInMs(n,e,i){if(i){var r=e.getTime()-n.getTime();return Math.ceil(r/d3("day"))*this.visibleDayDuration}var a=d3("hour"),s=bt.trimTime(n),l=bt.trimTime(e),f=(l-s)/d3("day")+1,S=this.endDayHour-this.startDayHour,T=S*f,L=Math.max(0,(n-s)/a-this.startDayHour),z=Math.max(0,(e-l)/a-this.startDayHour);return(T-(L+Math.max(0,S-z)))*a}getPositionShift(n,e){return{top:n*this.cellHeight,left:0,cellPosition:0}}},C3e=(t,n,e)=>{for(var i=bt.dateToMilliseconds("hour"),r=bt.trimTime(t).getTime(),o=bt.setToDayEnd(new Date(n.getTime()-1)).getTime(),a=24*i,s=0,l=r;l<o;l+=a){var u=new Date(l);e.isSkippedDate(u)&&(s+=24)}return s};var c3=bt.dateToMilliseconds;const b3e=class Xpn extends RQ{getDeltaTime(n,e,i){var r=0;if(this.isAllDay(i))r=this._getDeltaWidth(n,e)*c3("day");else{var o=n.height-e.height;r=c3("minute")*Math.round(o/this.cellHeight*this.cellDurationInMinutes)}return r}_correctCollectorCoordinatesInAdaptive(n,e){if(e)super._correctCollectorCoordinatesInAdaptive(n,e);else if(0===this._getMaxAppointmentCountPerCellByType()){var r=this.cellWidth;n.top+=(this.cellHeight-this.getDropDownButtonAdaptiveSize())/2,n.left+=(r-this.getDropDownButtonAdaptiveSize())/2}}getAppointmentGeometry(n){var e;return e=n.allDay?this._getAllDayAppointmentGeometry(n):this.isAdaptive&&n.isCompact?this._getAdaptiveGeometry(n):this._getVerticalAppointmentGeometry(n),super.getAppointmentGeometry(e)}_getAdaptiveGeometry(n){var e=this._calculateGeometryConfig(n);return this._customizeCoordinates(n,e.height,e.appointmentCountPerCell,e.offset)}_getItemPosition(n){var e=this.isAllDay(n);if(e)return super._getItemPosition(n);for(var i=sa(n,this.dataAccessors,this.timeZoneCalculator),r=!!i.recurrenceRule,o=i.calculateStartDate("toGrid"),a=i.calculateEndDate("toGrid"),s=a-o,l=this.options.startViewDate<o,u=!qr.isSameAppointmentDates(o,a),f=this.generateAppointmentSettings(n),S=[],T=0;T<f.length;T++){var R=f[T],L=this.calculateAppointmentHeight(n,R),z=this.calculateAppointmentWidth(n,R),j=L,Y=null,ie=[],te=R.vMax;if(this._isMultiViewAppointment(R,L)||u&&!r){(bt.trimTime(o)<=bt.trimTime(R.info.appointment.startDate)||r)&&(j=this._reduceMultiDayAppointment(L,{top:R.top,bottom:te}),ie=this._getAppointmentParts({sourceAppointmentHeight:L,reducedHeight:j,width:z},R));var{startDate:Te,normalizedEndDate:Re}=R.info.appointment;Y=Re-Te<s?l?"head":"body":l?"head":"tail"}se(R,{height:j,width:z,allDay:e,appointmentReduced:Y}),S=this._getAppointmentPartsPosition(ie,R,S)}return S}_isMultiViewAppointment(n,e){var{vMax:i,top:r}=n;return cP(e,2)>cP(i-r,2)}_reduceMultiDayAppointment(n,e){return Math.min(n,e.bottom-Math.floor(e.top))}_getGroupHeight(){return this.cellHeight*this.rowCount}_getGroupTopOffset(n){var{groupIndex:e}=n,i=Math.max(0,this.positionHelper.getGroupTop({groupIndex:e,showAllDayPanel:this.showAllDayPanel,isGroupedAllDayPanel:this.isGroupedAllDayPanel})),r=this.positionHelper.getOffsetByAllDayPanel({groupIndex:e,supportAllDayRow:this.allDaySupported(),showAllDayPanel:this.showAllDayPanel});return n.top-i-r}_getTailHeight(n,e){if(!this.isVirtualScrolling)return n.sourceAppointmentHeight-n.reducedHeight;var i=this._getGroupTopOffset(e),{sourceAppointmentHeight:r}=n;return i+r-this._getGroupHeight()}_getAppointmentParts(n,e){var i=n.width,r=[],o=Math.max(0,this.positionHelper.getGroupTop({groupIndex:e.groupIndex,showAllDayPanel:this.showAllDayPanel,isGroupedAllDayPanel:this.isGroupedAllDayPanel})),a=this.isGroupedByDate?this.groupCount:1,s=this.cellWidth*a;o+=this.positionHelper.getOffsetByAllDayPanel({groupIndex:e.groupIndex,supportAllDayRow:this.allDaySupported(),showAllDayPanel:this.showAllDayPanel});for(var u=this.getAppointmentMinSize(),{vMax:f,hMax:S}=e,T=this.options.endViewDate>e.info.appointment.endDate,R=Math.round(e.left+s),L=this._getTailHeight(n,e);L>0&&R<S;){L=Math.max(u,L);var z=e.columnIndex+a,j=Math.min(L,f);r.push(mt({},e,{top:o,left:R,height:j,width:i,appointmentReduced:"body",rowIndex:0,columnIndex:z})),R+=s,L-=f}return T&&r.length>0&&(r[r.length-1].appointmentReduced="tail"),r}_getMinuteHeight(){return this.cellHeight/this.cellDurationInMinutes}_getCompactLeftCoordinate(n,e){return n+(1+(this.cellWidth||this.getAppointmentMinSize()))*e}_getVerticalAppointmentGeometry(n){var e=this._calculateVerticalGeometryConfig(n);return this._customizeVerticalCoordinates(n,e.width,e.appointmentCountPerCell,e.offset)}_customizeVerticalCoordinates(n,e,i,r,o){var a=Math.max(e/i,e/n.count),s=n.height,l=n.left+n.index*a,u=n.top;return n.isCompact&&this._markAppointmentAsVirtual(n,o),{height:s,width:a,top:u,left:l,empty:this._isAppointmentEmpty(s,e)}}_calculateVerticalGeometryConfig(n){var e=this.maxAppointmentsPerCell,i=this._getOffsets(),r=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(e,n),a=this._getDefaultRatio(n,o),s=this._getMaxWidth();o||(o=n.count,a=(s-i.unlimited)/s);var l=(1-a)*s;return("auto"===e||di(e))&&(a=1,s-=r,l=0),{width:a*s,appointmentCountPerCell:o,offset:l}}_getMaxWidth(){return this.cellWidth}isAllDay(n){return fD(sa(n,this.dataAccessors,this.timeZoneCalculator),this.startDayHour,this.endDayHour,this.allDayPanelMode)}_getAppointmentMaxWidth(){return this.cellWidth-this._getAppointmentDefaultOffset()}calculateAppointmentWidth(n,e){if(!this.isAllDay(n))return 0;var i=bt.trimTime(e.info.appointment.startDate),{normalizedEndDate:r}=e.info.appointment,o=this.cellWidth||this.getAppointmentMinSize(),a=(r.getTime()-i.getTime())/c3("hour"),s=C3e(e.info.appointment.startDate,e.info.appointment.endDate,this.viewDataProvider),l=Math.ceil((a-s)/24)*o;return this.cropAppointmentWidth(l,o)}calculateAppointmentHeight(n,e){if(this.isAllDay(n))return 0;var i=e.info.appointment.startDate,{normalizedEndDate:r}=e.info.appointment,o=ea_getField(this.dataAccessors,"allDay",n),a=this.getAppointmentDurationInMs(i,r,o);return this._adjustDurationByDaylightDiff(a,i,r)/c3("minute")*this._getMinuteHeight()}getDirection(){return"vertical"}_sortCondition(n,e){var i=n.allDay-e.allDay,o="vertical"===this.groupOrientation&&n.allDay&&e.allDay?this._columnCondition(n,e):this._rowCondition(n,e);return i||o}allDaySupported(){return!0}_getAllDayAppointmentGeometry(n){var e=this._calculateGeometryConfig(n);return this._customizeCoordinates(n,e.height,e.appointmentCountPerCell,e.offset,!0)}_calculateGeometryConfig(n){(!this.allowResizing||!this.allowAllDayResizing)&&(n.skipResizing=!0);var e=super._calculateGeometryConfig(n),i=Math.min(e.appointmentCountPerCell,this._getDynamicAppointmentCountPerCell().allDay);return n.allDay&&n.count<=i&&(e.offset=0),e}_getAppointmentCount(n,e){return"auto"===n||1!==e.count||di(n)?this._getMaxAppointmentCountPerCellByType(e.allDay):e.count}_getDefaultRatio(n,e){return n.count>this.appointmentCountPerCell?.65:1}_getOffsets(){return{unlimited:5,auto:20}}_getMaxHeight(){return this.allDayHeight||this.getAppointmentMinSize()}_needVerticalGroupBounds(n){return!n}_needHorizontalGroupBounds(){return!1}getPositionShift(n,e){return!e&&this.isAdaptive&&0===this._getMaxAppointmentCountPerCellByType(e)?{top:0,left:0,cellPosition:0}:super.getPositionShift(n,e)}};var LQ=bt.dateToMilliseconds;const x3e=class ign extends RQ{_needVerifyItemSize(){return!0}calculateAppointmentWidth(n,e){var i=this.cellWidth||this.getAppointmentMinSize(),r=ea_getField(this.dataAccessors,"allDay",n),o=e.info.appointment.startDate,a=e.info.appointment.endDate,{normalizedEndDate:s}=e.info.appointment,l=this.getAppointmentDurationInMs(o,s,r);l=this._adjustDurationByDaylightDiff(l,o,s);var u=this.cellDurationInMinutes*LQ("minute"),S=(l-C3e(o,a,this.viewDataProvider)*LQ("hour"))/u;return this.cropAppointmentWidth(S*i,i)}_needAdjustDuration(n){return n<0}getAppointmentGeometry(n){var e=this._customizeAppointmentGeometry(n);return super.getAppointmentGeometry(e)}_customizeAppointmentGeometry(n){var e=this._calculateGeometryConfig(n);return this._customizeCoordinates(n,e.height,e.appointmentCountPerCell,e.offset)}_getOffsets(){return{unlimited:0,auto:0}}_getCompactLeftCoordinate(n,e){return n+(this.cellWidth||this.getAppointmentMinSize())*e}_getMaxHeight(){return this.cellHeight||this.getAppointmentMinSize()}_getAppointmentCount(n,e){return this._getMaxAppointmentCountPerCellByType(!1)}_getAppointmentDefaultHeight(){return 60}_getAppointmentMinHeight(){return 35}_sortCondition(n,e){return this._columnCondition(n,e)}_getOrientation(){return["left","right","top"]}getDropDownAppointmentWidth(){return this.cellWidth-4}getDeltaTime(n,e){var r=n.width-e.width;return LQ("minute")*Math.round(r/this.cellWidth*this.cellDurationInMinutes)}isAllDay(n){return ea_getField(this.dataAccessors,"allDay",n)}_isItemsCross(n,e){var i=this._getOrientation();return this._checkItemsCrossing(n,e,i)}getPositionShift(n){var e=super.getPositionShift(n),i=this.cellWidth*n;return this.rtlEnabled&&(i*=-1),{top:0,left:i+=e.left,cellPosition:i}}supportCompactDropDownAppointments(){return!1}},w3e=class lgn extends x3e{calculateAppointmentWidth(n,e){var i=bt.trimTime(e.info.appointment.startDate),{normalizedEndDate:r}=e.info.appointment,o=this.cellWidth||this.getAppointmentMinSize(),a=Math.ceil(this._getDurationInDays(i,r)),s=this.cropAppointmentWidth(a*o,o);return this.isVirtualScrolling&&(s-=this.viewDataProvider.getSkippedDaysCount(e.groupIndex,i,r,a)*o),s}_getDurationInDays(n,e){return this._adjustDurationByDaylightDiff(e.getTime()-n.getTime(),n,e)/bt.dateToMilliseconds("day")||1}getDeltaTime(n,e){return 864e5*this._getDeltaWidth(n,e)}isAllDay(){return!1}createTaskPositionMap(n,e){return e||$8e(n,this.dataAccessors),super.createTaskPositionMap(n)}_getSortedPositions(n,e){var i=super._getSortedPositions(n);return e||(i=Ha(i).sortBy("top").thenBy("left").thenBy("cellPosition").thenBy("i").toArray()),i}needCorrectAppointmentDates(){return!1}getPositionShift(){return{top:0,left:0,cellPosition:0}}};var S3e=t=>{var{dateTableCellsMeta:n}=t,e=n?.length;if(!e)return{width:0,height:0};var r=n[e>1?1:0][0];return{width:r.width,height:r.height}},BQ=t=>S3e(t).height,h3=t=>S3e(t).width,PM=(t,n,e)=>{if(!t)return 0;if(n){var{dateTableCellsMeta:i}=e,r=i?.length;return r?i[0][0].height:0}var{allDayPanelCellsMeta:o}=e;return null!=o&&o.length?o[0].height:0},NQ=(t,n,e,i)=>((t,n,e,i)=>{var{dateTableCellsMeta:r}=i,o=r[0];if(!o)return 0;var{columnIndex:a}=n.getLastGroupCellPosition(t),s=o[a];return s?e?s.left:s.left+s.width:0})(t||0,n,e,i);class cgn{get viewDataProvider(){return this.options.viewDataProvider}get rtlEnabled(){return this.options.rtlEnabled}get isGroupedByDate(){return this.options.isGroupedByDate}get groupCount(){return this.options.groupCount}get DOMMetaData(){return this.options.getDOMMetaDataCallback()}constructor(n){this.options=n,this.groupStrategy=this.options.isVerticalGrouping?new D3e(this.options):new hgn(this.options)}getHorizontalMax(n){var e=r=>NQ(r,this.viewDataProvider,this.rtlEnabled,this.DOMMetaData);if(this.isGroupedByDate){var i=this.viewDataProvider.getViewPortGroupCount();return Math.max(e(n),e(i-1))}return e(n)}getResizableStep(){var n=h3(this.DOMMetaData);return this.isGroupedByDate?this.groupCount*n:n}getVerticalMax(n){return this.groupStrategy.getVerticalMax(n)}getOffsetByAllDayPanel(n){return this.groupStrategy.getOffsetByAllDayPanel(n)}getGroupTop(n){return this.groupStrategy.getGroupTop(n)}}class D3e{constructor(n){this.options=n}get viewDataProvider(){return this.options.viewDataProvider}get isGroupedByDate(){return this.options.isGroupedByDate}get rtlEnabled(){return this.options.rtlEnabled}get groupCount(){return this.options.groupCount}get DOMMetaData(){return this.options.getDOMMetaDataCallback()}getOffsetByAllDayPanel(n){var{groupIndex:e,supportAllDayRow:i,showAllDayPanel:r}=n,o=0;return i&&r&&(o=PM(r,!0,this.DOMMetaData)*(e+1)),o}getVerticalMax(n){return this._getMaxAllowedVerticalPosition(mt({},n,{viewDataProvider:this.viewDataProvider,rtlEnabled:this.rtlEnabled,DOMMetaData:this.DOMMetaData}))+this.getOffsetByAllDayPanel(n)}getGroupTop(n){var{groupIndex:e,showAllDayPanel:i,isGroupedAllDayPanel:r}=n,o=this.viewDataProvider.getRowCountInGroup(e);return this._getMaxAllowedVerticalPosition({groupIndex:e,viewDataProvider:this.viewDataProvider,showAllDayPanel:i,isGroupedAllDayPanel:r,isVerticalGrouping:!0,DOMMetaData:this.DOMMetaData})-BQ(this.DOMMetaData)*o}_getAllDayHeight(n){return PM(n,!0,this.DOMMetaData)}_getMaxAllowedVerticalPosition(n){var{groupIndex:e,showAllDayPanel:i,isGroupedAllDayPanel:r}=n,{rowIndex:o}=this.viewDataProvider.getLastGroupCellPosition(e),{dateTableCellsMeta:a}=this.DOMMetaData,s=a[o];if(!s)return 0;var l=s[0].top+s[0].height;return r&&(l-=(e+1)*this._getAllDayHeight(i)),l}}class hgn extends D3e{getOffsetByAllDayPanel(n){return 0}getVerticalMax(n){var{isVirtualScrolling:e,groupIndex:i}=n;return this._getMaxAllowedVerticalPosition(mt({},n,{groupIndex:e?i:0}))}getGroupTop(n){return 0}_getAllDayHeight(n){return PM(n,!1,this.DOMMetaData)}}var vgn=bt.dateToMilliseconds;var Dgn=t=>{var{height:n,left:e,top:i,width:r}=t;return"".concat(e,"-").concat(i,"-").concat(r,"-").concat(n)},E3e=(t,n)=>t?AM([{attr:"backgroundColor",value:t}],n):n,Egn={horizontal:x3e,horizontalMonth:class ygn extends w3e{get endViewDate(){return this.options.endViewDate}get adaptivityEnabled(){return this.options.adaptivityEnabled}get DOMMetaData(){return this.options.DOMMetaData}_getLeftPosition(n){var e=this.getGroupWidth(n.groupIndex);return this._calculateMultiWeekAppointmentLeftOffset(n.hMax,e)}_getChunkCount(n,e,i,r){var{groupIndex:o,info:{appointment:{startDate:a}}}=r,l=Math.ceil((n-e+i)/i),u=this._tryGetRowIndexInView(a);if(void 0!==u){var S=this.viewDataProvider.getRowCountInGroup(o)-u;return l<=S?l:S}return l}_tryGetRowIndexInView(n){var e,i=this.viewDataProvider.getColumnsCount();if(!((null===(e=this.options.dataRange)||void 0===e?void 0:e.length)<1)&&i){var[r]=this.options.dateRange,o=vgn("day"),a=n.getTime()-r.getTime();return Math.floor(a/o/i)}}_getChunkWidths(n){var e=n.reducedWidth,i=Math.floor(n.sourceAppointmentWidth);return[e,i,i-e]}_getTailChunkSettings(n,e,i){var r=n%e||e;return[r,this.rtlEnabled?i+(e-r):i]}_getAppointmentParts(n,e){for(var i=[],r=Math.round(this.getGroupWidth(e.groupIndex)),[o,a,s]=this._getChunkWidths(n,e,r),l=this._getLeftPosition(e),u=this.endViewDate>e.info.appointment.endDate,f=this._getChunkCount(a,o,r,e),[S,T]=this._getTailChunkSettings(s,r,l),R=1;R<f;R++){var z=u&&R===f-1;i.push(mt({},e,{top:e.top+this.cellHeight*R,left:z?T:l,height:n.height,width:z?S:r,appointmentReduced:z?"tail":"body",rowIndex:++e.rowIndex,columnIndex:0}))}return i}_calculateMultiWeekAppointmentLeftOffset(n,e){return this.rtlEnabled?n:n-e}getGroupWidth(n){return((t,n,e)=>{var{isVirtualScrolling:i,rtlEnabled:r,DOMMetaData:o}=e,a=h3(o),s=n.getCellCount(e)*a;i&&(s=n.groupedDataMap.dateTableGroupedMap[t][0].length*a);var f=NQ(t,n,r,o),S=f[t];return S&&(s=r?S-f[t+1]:0===t?S:S-f[t-1]),s})(n,this.viewDataProvider,{intervalCount:this.options.intervalCount,currentDate:this.options.currentDate,viewType:this.options.viewType,hoursInterval:this.options.hoursInterval,startDayHour:this.options.startDayHour,endDayHour:this.options.endDayHour,isVirtualScrolling:this.isVirtualScrolling,rtlEnabled:this.rtlEnabled,DOMMetaData:this.DOMMetaData})}_getAppointmentDefaultHeight(){return this._getAppointmentHeightByTheme()}_getAppointmentMinHeight(){return this._getAppointmentDefaultHeight()}_columnCondition(n,e){var i=this._getConditions(n,e);return i.rowCondition||i.columnCondition||i.cellPositionCondition}createTaskPositionMap(n){return super.createTaskPositionMap(n,!0)}_getSortedPositions(n){return super._getSortedPositions(n,!0)}_getDefaultRatio(){return.6}_getOffsets(){return{unlimited:26,auto:30}}getDropDownAppointmentWidth(n){return this.adaptivityEnabled?this.getDropDownButtonAdaptiveSize():this.cellWidth-(n>1?60:36)}needCorrectAppointmentDates(){return!1}_needVerticalGroupBounds(){return!1}_needHorizontalGroupBounds(){return!0}getPositionShift(n){return{cellPosition:n*this.cellWidth,top:0,left:0}}},horizontalMonthLine:w3e,vertical:b3e,week:class Jpn extends b3e{isApplyCompactAppointmentOffset(){return(!this.isAdaptive||0!==this._getMaxAppointmentCountPerCellByType())&&this.supportCompactDropDownAppointments()}},agenda:class bgn extends RQ{get instance(){return this.options.instance}get agendaDuration(){return this.options.agendaDuration}getAppointmentMinSize(){}getDeltaTime(){}keepAppointmentSettings(){return!0}getAppointmentGeometry(n){return n}groupAppointmentByResources(n){var e=this.instance._getCurrentViewOption("groups");return function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={0:n};e.length&&t.loadedResources.length&&(i=Ncn(t,n,t.loadedResources));var r=0;t.loadedResources.forEach((s,l)=>{l?r*=s.items.length:r=s.items.length});for(var o=0;o<r;o++){var a=o.toString();i[a]||(i[a]=[])}return i}({loadedResources:this.options.loadedResources,resources:this.options.resources,dataAccessors:this.dataAccessors.resources},n,e)}createTaskPositionMap(n){var e,i;if(this.calculateRows(n,this.agendaDuration,this.currentDate),n.length){e=this.instance.fire("getAgendaVerticalStepHeight"),i=this.groupAppointmentByResources(n);var r=[];we(i,function(s,l){var u=[],f=[];we(l,function(S,T){var R=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(T,S),L=null;R.indexes.length||(L=this.instance.getAppointmentsInstance()._processLongAppointment(T),u=u.concat(L.parts)),u=u.concat(R.parts),f=f.concat(R.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(f,l),this.instance.getAppointmentsInstance()._combineAppointments(l,u),r=r.concat(l)}.bind(this)),Array.prototype.splice.apply(n,[0,n.length].concat(r))}var o=[],a=0;return n.forEach(function(s,l){o.push([{height:e,width:"100%",sortedIndex:a++,groupIndex:this._calculateGroupIndex(l,i),agendaSettings:s.settings}]),delete s.settings}.bind(this)),o}_calculateGroupIndex(n,e){var i,r=0;for(var o in e){var a=e[o].length;if(n>=r&&n<r+a){i=Number(o);break}r+=a}return i}_getDeltaWidth(){}_getAppointmentMaxWidth(){return this.cellWidth}_needVerifyItemSize(){return!1}_getAppointmentParts(){}_reduceMultiWeekAppointment(){}calculateAppointmentHeight(){return 0}calculateAppointmentWidth(){return 0}isAppointmentGreaterThan(){}isAllDay(){return!1}_sortCondition(){}_rowCondition(){}_columnCondition(){}_findIndexByKey(){}_markAppointmentAsVirtual(){}getDropDownAppointmentWidth(){}getCollectorLeftOffset(){}getCollectorTopOffset(){}replaceWrongAppointmentEndDate(n,e,i){var r=sa(n,this.dataAccessors,this.timeZoneCalculator);K8e(r,e,i,this.cellDuration,this.dataAccessors)}calculateRows(n,e,i,r){this._rows=[],i=bt.trimTime(new Date(i));var o=this.groupAppointmentByResources(n);return we(o,function(a,s){var l=[],u={indexes:[],parts:[]};if(!s.length)return this._rows.push([]),!0;we(s,function(ie,te){var re=ea_getField(this.dataAccessors,"startDate",te),he=ea_getField(this.dataAccessors,"endDate",te);this.replaceWrongAppointmentEndDate(te,re,he),r&&delete te.settings;var fe=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(te,ie,!1);u.parts=u.parts.concat(fe.parts),u.indexes=u.indexes.concat(fe.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(u.indexes,s),s.push(...u.parts);for(var f=s.length,S=0;S<e;S++){var T=new Date(i);T.setMilliseconds(T.getMilliseconds()+864e5*S),void 0===l[S]&&(l[S]=0);for(var R=0;R<f;R++){var L=s[R].settings||s[R],z=sa(s[R],this.dataAccessors,this.timeZoneCalculator),j=OQ(z),Y=ea_getField(this.dataAccessors,"recurrenceRule",s[R]);(this.instance.fire("dayHasAppointment",T,L,!0)||!Y&&j&&this.instance.fire("dayHasAppointment",T,s[R],!0))&&(l[S]+=1)}}this._rows.push(l)}.bind(this)),this._rows}_iterateRow(n,e,i){for(var r=0;r<n.length;r++)if(e.counter=e.counter+n[r],e.counter>=i){e.indexInRow=r;break}}getDateByIndex(n,e,i){var r={counter:0,indexInRow:0};n++;for(var o=0;o<e.length&&(this._iterateRow(e[o],r,n),!r.indexInRow);o++);return new Date(new Date(i).setDate(i.getDate()+r.indexInRow))}getAppointmentDataCalculator(){return function(n,e){var i=n.index(),r=this.instance.getStartViewDate(),o=this.getDateByIndex(i,this._rows,r),a=new Date(e);return{startDate:new Date(o.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()))}}.bind(this)}}};class Ogn{initRenderingStrategy(n){this.renderingStrategy=new(0,Egn[n.appointmentRenderingStrategyName])(n)}generate(n,e){var{isRenovatedAppointments:i}=e,r=n?n.slice():[];this.initRenderingStrategy(e);var a=this.getRenderingStrategy().createTaskPositionMap(r),s=this.postProcess(r,a,i);return i?this.makeRenovatedViewModels(s,e.supportAllDayRow,e.isVerticalGroupOrientation):{positionMap:a,viewModel:s}}postProcess(n,e,i){var r=this.getRenderingStrategy();return n.map((o,a)=>{r.keepAppointmentSettings()||delete o.settings;var s=e[a];s.forEach(u=>{u.direction="vertical"!==r.getDirection()||u.allDay?"horizontal":"vertical"});var l={itemData:o,settings:s};return i||(l.needRepaint=!0,l.needRemove=!1),l})}makeRenovatedViewModels(n,e,i){var r=this.getRenderingStrategy(),o=[],a=[],s=[],l=e&&!i;n.forEach(S=>{var{itemData:T,settings:R}=S;R.forEach(L=>{var z=this.prepareViewModel(L,r,T);L.isCompact?s.push({compactViewModel:L.virtual,appointmentViewModel:z}):L.allDay&&l?a.push(z):o.push(z)})});var u=this.prepareCompactViewModels(s,e);return mt({allDay:a,regular:o},u)}prepareViewModel(n,e,i){var r=e.getAppointmentGeometry(n);return{key:Dgn(r),appointment:i,geometry:mt({},r,{leftVirtualWidth:n.leftVirtualWidth,topVirtualHeight:n.topVirtualHeight}),info:mt({},n.info,{allDay:n.allDay,direction:n.direction,appointmentReduced:n.appointmentReduced,groupIndex:n.groupIndex})}}getCompactViewModelFrame(n){return{isAllDay:!!n.isAllDay,isCompact:n.isCompact,groupIndex:n.groupIndex,geometry:{left:n.left,top:n.top,width:n.width,height:n.height},items:{colors:[],data:[],settings:[]}}}prepareCompactViewModels(n,e){var i={},r={};n.forEach(l=>{var{compactViewModel:u,appointmentViewModel:f}=l,{index:S,isAllDay:T}=u,R=T&&e?r:i;R[S]||(R[S]=this.getCompactViewModelFrame(u));var{settings:L,data:z,colors:j}=R[S].items;L.push(f),z.push(f.appointment),j.push(f.info.resourceColor)});var o=l=>Object.keys(l).map(u=>mt({key:u},l[u]));return{allDayCompact:o(r),regularCompact:o(i)}}getRenderingStrategy(){return this.renderingStrategy}}class T3e extends tr{show(n){this._isMobileLayout()||this._overlay.option("target",n),this._overlay.show()}hide(){this._overlay.hide()}_keyboardHandler(n){var e;null===(e=this._calendar)||void 0===e||e._keyboardHandler(n)}_init(){super._init(),this.$element()}_render(){super._render(),this._renderOverlay()}_renderOverlay(){this.$element().addClass("dx-scheduler-navigator-calendar-popover");var n=this._isMobileLayout(),e=n?Ss:dC;this._overlay=this._createComponent(this.$element(),e,{contentTemplate:()=>this._createOverlayContent(),onShown:()=>this._calendar.focus(),defaultOptionsRules:[{device:()=>n,options:{fullScreen:!0,showCloseButton:!1,toolbarItems:[{shortcut:"cancel"}]}}]})}_createOverlayContent(){var n=U("<div>").addClass("dx-scheduler-navigator-calendar");return this._calendar=this._createComponent(n,S$,this._getCalendarOptions()),this._isMobileLayout()?this._createScrollable(n).$element():n}_createScrollable(n){var e=this._createComponent("<div>",xd,{direction:"vertical"});return e.$content().append(n),e}_getCalendarOptions(){return{value:this.option("date"),min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),focusStateEnabled:this.option("focusStateEnabled"),onValueChanged:this.option("onValueChanged"),skipFocusCheck:!0,tabIndex:this.option("tabIndex"),width:"100%"}}_isMobileLayout(){return!pn.current().generic}}On("dxSchedulerCalendarPopup",T3e);var{correctDateWithUnitBeginning:Rgn,getFirstWeekDate:Lgn,getLastMonthDay:I3e,addDateInterval:Vb}=bt,{format:p0}=Gn,k3e={milliseconds:1},Bgn={days:1},Ngn={days:7},p3=t=>Vb(t,Bgn,1),M3e=t=>Vb(t,Ngn,1),VQ=t=>6===t.getDay()||0===t.getDay(),Ygn=(t,n)=>{for(var a,{intervalCount:e,step:i,agendaDuration:r}=n,s=new Date(t),l=0;l<e;l++)a=Zgn(s,i,r),s=Xgn(a,i);return a},Zgn=(t,n,e)=>{var i;switch(n){case"day":i=p3(t);break;case"week":i=M3e(t);break;case"month":i=(t=>{var n=I3e(t);return Vb(t,{days:n},1)})(t);break;case"workWeek":i=(t=>{for(var n=new Date(t),e=0;e<5;)VQ(n)||e++,n=p3(n);return n})(t);break;case"agenda":i=((t,n)=>Vb(t,{days:n},1))(t,e)}return(t=>Vb(t,k3e,-1))(i)},Xgn=(t,n)=>{var e=(t=>Vb(t,k3e,1))(t);if("workWeek"===n)for(;VQ(e);)e=p3(e);return e},HQ=t=>{var e=Gn.getMonthNames(t?"abbreviated":"wide");return i=>{var r=p0(i,"day"),o=e[i.getMonth()];return"".concat(r," ").concat(o)}},A3e=t=>{var e=Gn.getMonthNames("abbreviated")[t.getMonth()],i=p0(t,"year");return"".concat(e," ").concat(i)},zQ=t=>n=>{var i=HQ(t)(n),r=p0(n,"year");return"".concat(i," ").concat(r)},ofn=(t,n,e,i)=>bt.sameDate(t,n)?((t,n,e)=>{var o=HQ("agenda"===n&&e)(t),a=p0(t,"year");return"".concat(o," ").concat(a)})(t,i,e):"month"===i?((t,n)=>{if(bt.sameMonth(t,n))return p0(t,"monthandyear");var i=bt.sameYear(t,n)?Gn.getMonthNames("abbreviated")[t.getMonth()]:A3e(t),r=A3e(n);return"".concat(i,"-").concat(r)})(t,n):((t,n,e)=>t.getFullYear()!==n.getFullYear()?((t,n)=>{var e=p0(t,zQ(!0)),i=p0(n,zQ(!0));return"".concat(e,"-").concat(i)})(t,n):((t,n,e)=>{var i=t.getMonth()!==n.getMonth(),r=i||e,o=i?HQ(r):"d",a=p0(t,o),s=p0(n,zQ(r));return"".concat(a,"-").concat(s)})(t,n,e))(t,n,e),afn=(t,n,e)=>{var{startDate:i,endDate:r}=(t=>{var n=(t=>{var{date:n,step:e,firstDayOfWeek:i}=t;switch(e){case"day":case"week":case"month":return Rgn(n,e,!1,i);case"workWeek":return(t=>{for(var n=new Date(t);VQ(n);)n=p3(n);return n})(Lgn(n,i));case"agenda":return new Date(n)}})(t);return{startDate:n,endDate:Ygn(n,t)}})(t),o=ofn(i,r,n,t.step);return Yt(e)&&(o=e({startDate:i,endDate:r,text:o})),{startDate:i,endDate:r,text:o}},sfn={day:"day",week:"week",workWeek:"workWeek",month:"month",timelineDay:"day",timelineWeek:"week",timelineWorkWeek:"workWeek",timelineMonth:"month",agenda:"agenda"},g3=t=>Jn(t)&&t.type?t.type:t,mD=t=>Jn(t)?t.name?t.name:t.type:t,F3e=t=>{t.forEach(n=>{var e=g3(n);(t=>Object.values(La).includes(t))(e)||Wr.log("W0008",e)})},P3e=t=>(F3e(t),t.map(n=>{var e=(t=>{if(t.name)return t.name;var n=dd(t.type||t,!0);return ye.format("dxScheduler-switcher"+n)})(n),i=g3(n),r=mD(n);return{text:e,name:r,view:{text:e,type:i,name:r}}})),R3e=(t,n)=>1===t.length&&t[0].name===n,L3e="dx-scheduler-view-switcher",B3e=t=>{var n=P3e(t.views),e=mD(t.currentView),i=n.some(r=>r.name===e);return{selectedView:e=i?e:void 0,views:n}},{trimTime:ffn}=bt,wfn=t=>({key:"previous",icon:"chevronprev",elementAttr:{class:"dx-scheduler-navigator-previous"},clickHandler:()=>t._updateDateByDirection(-1),onContentReady:n=>{var e=n.component;e.option("disabled",f3(t)),t._addEvent("min",()=>{e.option("disabled",f3(t))}),t._addEvent("currentDate",()=>{e.option("disabled",f3(t))}),t._addEvent("startViewDate",()=>{e.option("disabled",f3(t))})}}),Sfn=t=>({key:"calendar",text:t.captionText,elementAttr:{class:"dx-scheduler-navigator-caption"},clickHandler:n=>t._showCalendar(n),onContentReady:n=>{var e=n.component;t._addEvent("currentView",()=>{e.option("text",t.captionText)}),t._addEvent("currentDate",()=>{e.option("text",t.captionText)}),t._addEvent("startViewDate",()=>{e.option("text",t.captionText)}),t._addEvent("views",()=>{e.option("text",t.captionText)}),t._addEvent("firstDayOfWeek",()=>{e.option("text",t.captionText)})}}),Dfn=t=>({key:"next",icon:"chevronnext",elementAttr:{class:"dx-scheduler-navigator-next"},clickHandler:()=>t._updateDateByDirection(1),onContentReady:n=>{var e=n.component;e.option("disabled",m3(t)),t._addEvent("min",()=>{e.option("disabled",m3(t))}),t._addEvent("currentDate",()=>{e.option("disabled",m3(t))}),t._addEvent("startViewDate",()=>{e.option("disabled",m3(t))})}}),f3=t=>{var n=t.option("min");if(!n)return!1;n=new Date(n);var e=t._getCaption();return n=ffn(n),t._getNextDate(-1,e.endDate)<n},m3=t=>{var n=t.option("max");if(!n)return!1;n=new Date(n);var e=t._getCaption();return n=n.setHours(23,59,59),t._getNextDate(1,e.startDate)>n},Ofn=["day","week","workWeek","month","timelineDay","timelineWeek","timelineWorkWeek","timelineMonth","agenda"],_3=(t,n)=>{var e=n.find(i=>!!(Jn(i)?[i.name,i.type]:[i]).includes(t));return void 0===e&&(Ofn.includes(t)?e=t:[e]=n),e},N3e="defaultElement";class V3e extends tr{get views(){return this.option("views")}get captionText(){return this._getCaption().text}get intervalOptions(){return{step:(t=>sfn[g3(this.currentView)])(),intervalCount:this.option("intervalCount"),firstDayOfWeek:this.option("firstDayOfWeek"),agendaDuration:this.option("agendaDuration")}}_getDefaultOptions(){return se(super._getDefaultOptions(),{_useShortDateFormat:!pn.real().generic||pn.isSimulator()})}_createEventMap(){this.eventMap=new Map([["currentView",[n=>{this.currentView=_3(mD(n),this.option("views"))}]],["items",[this.repaint.bind(this)]],["views",[F3e]],["currentDate",[this._getCalendarOptionUpdater("date")]],["min",[this._getCalendarOptionUpdater("min")]],["max",[this._getCalendarOptionUpdater("max")]],["tabIndex",[this.repaint.bind(this)]],["focusStateEnabled",[this.repaint.bind(this)]],["useDropDownViewSwitcher",[this.repaint.bind(this)]]])}_addEvent(n,e){this.eventMap.has(n)||this.eventMap.set(n,[]);var i=this.eventMap.get(n);this.eventMap.set(n,[...i,e])}_optionChanged(n){var{name:e,value:i}=n;this.eventMap.has(e)&&this.eventMap.get(e).forEach(o=>{o(i)})}_init(){super._init(),this._createEventMap(),this.$element().addClass("dx-scheduler-header"),this.currentView=_3(mD(this.option("currentView")),this.option("views"))}_render(){super._render(),this._createEventMap(),this._renderToolbar()}_renderToolbar(){var n=this._createToolbarConfig(),e=U("<div>");e.appendTo(this.$element()),this._toolbar=this._createComponent(e,nb,n)}_createToolbarConfig(){return{items:this.option("items").map(i=>this._parseItem(i))}}_parseItem(n){if(this._isDefaultItem(n)){var i=n[N3e];switch(i){case"viewSwitcher":return this.option("useDropDownViewSwitcher")?((t,n)=>{var{selectedView:e,views:i}=B3e(t),r=R3e(i,e);return mt({widget:"dxDropDownButton",locateInMenu:"never",cssClass:L3e,options:{items:i,useSelectMode:!0,keyExpr:"name",selectedItemKey:e,displayExpr:"text",showArrowIcon:!r,elementAttr:{class:"dx-scheduler-view-switcher-dropdown-button"},onItemClick:o=>{t._updateCurrentView(o.itemData.view)},onContentReady:o=>{var a=o.component;t._addEvent("currentView",s=>{var l=P3e(t.views);R3e(l,s)&&t.repaint(),a.option("selectedItemKey",mD(s))})},dropDownOptions:{onShowing:o=>{r&&(o.cancel=!0)},width:"max-content",_wrapperClassExternal:"dx-scheduler-view-switcher-dropdown-button-content"}}},n)})(this,n):((t,n)=>{var{selectedView:e,views:i}=B3e(t);return mt({widget:"dxButtonGroup",locateInMenu:"auto",cssClass:L3e,options:{items:i,keyExpr:"name",selectedItemKeys:[e],stylingMode:"contained",onItemClick:r=>{t._updateCurrentView(r.itemData.view)},onContentReady:r=>{var o=r.component;t._addEvent("currentView",a=>{o.option("selectedItemKeys",[mD(a)])})}}},n)})(this,n);case"dateNavigator":return this._renderCalendar(),((t,n)=>mt({widget:"dxButtonGroup",cssClass:"dx-scheduler-navigator",options:{items:[wfn(t),Sfn(t),Dfn(t)],stylingMode:io()?"text":"contained",selectionMode:"none",onItemClick:r=>{r.itemData.clickHandler(r)}}},n))(this,n);default:Wr.log("Unknown default element type: ".concat(i))}}return n}_callEvent(n,e){this.eventMap.has(n)&&this.eventMap.get(n).forEach(r=>r(e))}_updateCurrentView(n){this.option("onCurrentViewChange")(n.name),this._callEvent("currentView",n)}_updateCurrentDate(n){this.option("onCurrentDateChange")(n),this._callEvent("currentDate",n)}_renderCalendar(){this._calendar=this._createComponent("<div>",T3e,{date:this.option("currentDate"),min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),onValueChanged:n=>{this._updateCurrentDate(n.value),this._calendar.hide()}}),this._calendar.$element().appendTo(this.$element())}_getCalendarOptionUpdater(n){return e=>{this._calendar&&this._calendar.option(n,e)}}_getNextDate(n){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||this.option("currentDate");return((t,n)=>{var a,{date:e,step:i,intervalCount:r,agendaDuration:o}=t;switch(i){case"day":a=1*r;break;case"week":case"workWeek":a=7*r;break;case"agenda":a=o;break;case"month":return((t,n,e)=>{var i=t.getDate(),r=new Date(new Date(t.getTime()).setDate(1)),o=new Date(r.setMonth(r.getMonth()+n*e)),a=I3e(o),s=i<a?i:a,l=new Date(new Date(t.getTime()).setDate(s));return new Date(l.setMonth(l.getMonth()+n*e))})(e,r,n)}return Vb(e,{days:a},n)})(mt({},this.intervalOptions,{date:i}),n)}_isMonth(){return"month"===g3(this.currentView)}_getDisplayedDate(){var n=this.option("startViewDate");return this._isMonth()?M3e(n):new Date(n)}_getCaption(){var n=this.option("currentDate");this.option("startViewDate")&&(n=this._getDisplayedDate()),n=bt.trimTime(n);var e=mt({},this.intervalOptions,{date:n}),i=this.option("customizeDateNavigatorText"),r=this.option("_useShortDateFormat");return afn(e,r,i)}_updateDateByDirection(n){var e=this._getNextDate(n);this._updateCurrentDate(e)}_showCalendar(n){this._calendar.show(n.element)}_hideCalendar(){this._calendar.hide()}_isDefaultItem(n){return Object.prototype.hasOwnProperty.call(n,N3e)}}On("dxSchedulerHeader",V3e);var gu={dataAccessors:{getAppointmentSettings:t=>U(t).data(h0),getAppointmentInfo:t=>gu.dataAccessors.getAppointmentSettings(t)?.info,create:(t,n,e,i)=>{var r=n?mt({},n):{getter:{},setter:{},expr:{}};return we(t,(o,a)=>{if(a){var u,f,S,s=Ai(a),l=ph(a);("startDate"===(T=o)||"endDate"===T)&&(u=R=>{var L=s(R);return e&&(L=Qr.deserializeDate(L)),L},f=(R,L)=>{if(i)S=i;else if(e&&!S){var z=s(R);S=Qr.getDateSerializationFormat(z)}var j=Qr.serializeDate(L,S);l(R,j)}),r.getter[o]=u||s,r.setter[o]=f||l,r.expr["".concat(o,"Expr")]=a}else delete r.getter[o],delete r.setter[o],delete r.expr["".concat(o,"Expr")];var T}),r}},DOM:{getHeaderHeight:t=>t?t._$element&&parseInt(Zn(t._$element),10):0},renovation:{renderComponent:(t,n,e,i,r)=>{var o=t[i];if(o){var s=o.$element(),l=s.get(0).style,u=l.height,f=l.width;o.option(r),u&&xo(s,u),f&&oa(s,f)}else{var a=kn(n);o=t._createComponent(a,e,r),t[i]=o}}}},Afn=bt.dateToMilliseconds,Ffn={isCurrentViewAgenda:function(){return"agenda"===this.currentViewType},currentViewUpdated:function(t){this.option("currentView",t)},currentDateUpdated:function(t){this.option("currentDate",t)},getOption:function(t){return this.option(t)},getWorkspaceOption:function(t){return this.getWorkSpace().option(t)},isVirtualScrolling:function(){return this.isVirtualScrolling()},setCellDataCacheAlias:function(t,n){this._workSpace.setCellDataCacheAlias(t,n)},isGroupedByDate:function(){return this.getWorkSpace().isGroupedByDate()},showAppointmentTooltip:function(t){var n=this.getTargetedAppointment(t.data,t.target);this.showAppointmentTooltip(t.data,t.target,n)},hideAppointmentTooltip:function(){this.hideAppointmentTooltip()},showEditAppointmentPopup:function(t){var n=this.getTargetedAppointment(t.data,t.target);this.showAppointmentPopup(t.data,!1,n)},updateAppointmentAfterResize:function(t){var n=gu.dataAccessors.getAppointmentInfo(t.$appointment);this._checkRecurringAppointment(t.target,t.data,n.sourceAppointment.exceptionDate,function(){this._updateAppointment(t.target,t.data,function(){this._appointments.moveAppointmentBack()})}.bind(this))},getUpdatedData:function(t){return this._getUpdatedData(t)},updateAppointmentAfterDrag:function(t){var{event:n,element:e,rawAppointment:i,newCellIndex:r,oldCellIndex:o}=t,a=gu.dataAccessors.getAppointmentInfo(e),s=sa(i,this._dataAccessors,this.timeZoneCalculator),l=sa(se({},i,this._getUpdatedData(i)),this._dataAccessors,this.timeZoneCalculator),u=l.source(),f=l.allDay,S=s.allDay,T=this._workSpace.supportAllDayRow()&&(S&&!f||!S&&f),R=n.fromComponent!==n.toComponent;-1!==r?r!==o||R||T?this._checkRecurringAppointment(i,u,a.sourceAppointment.exceptionDate,()=>{this._updateAppointment(i,u,function(){this._appointments.moveAppointmentBack(n)},n)},void 0,void 0,n):this._appointments.moveAppointmentBack(n):R||this._appointments.moveAppointmentBack(n)},onDeleteButtonPress:function(t){var n=this.getTargetedAppointment(t.data,U(t.target));this.checkAndDeleteAppointment(t.data,n),this.hideAppointmentTooltip()},getTextAndFormatDate(t,n,e){var i=sa(t,this._dataAccessors,this.timeZoneCalculator),r=sa(n||t,this._dataAccessors,this.timeZoneCalculator),o=this.timeZoneCalculator.createDate(r.startDate,{path:"toGrid"}),a=this.timeZoneCalculator.createDate(r.endDate,{path:"toGrid"}),s=e||m3e(o,a,r.allDay,"month"!==this.currentViewType);return{text:r.text||i.text,formatDate:_3e(o,a,s)}},_createAppointmentTitle:t=>wi(t)?t.text:String(t),getResizableAppointmentArea:function(t){var n=t.allDay,e=this._getCurrentViewOption("groups");if(e&&e.length){if(n||this.getLayoutManager().getRenderingStrategyInstance()._needHorizontalGroupBounds()){var i=this._workSpace.getGroupBounds(t.coordinates);return{left:i.left,right:i.right,top:0,bottom:0}}if(this.getLayoutManager().getRenderingStrategyInstance()._needVerticalGroupBounds(n)&&this._workSpace._isVerticalGroupedWorkSpace()){var r=this._workSpace.getGroupBounds(t.coordinates);return{left:0,right:0,top:r.top,bottom:r.bottom}}}},needRecalculateResizableArea:function(){return this.getWorkSpace().needRecalculateResizableArea()},getAppointmentGeometry:function(t){return this.getLayoutManager().getRenderingStrategyInstance().getAppointmentGeometry(t)},isAllDay:function(t){return this.getLayoutManager().getRenderingStrategyInstance().isAllDay(t)},getDeltaTime:function(t,n,e){return this.getLayoutManager().getRenderingStrategyInstance().getDeltaTime(t,n,e)},getDropDownAppointmentWidth:function(t){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentWidth(this._getViewCountConfig().intervalCount,t)},getDropDownAppointmentHeight:function(){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentHeight()},getCellWidth:function(){return this.getWorkSpace().getCellWidth()},getCellHeight:function(){return this.getWorkSpace().getCellHeight()},getMaxAppointmentCountPerCellByType:function(t){return this.getRenderingStrategyInstance()._getMaxAppointmentCountPerCellByType(t)},needCorrectAppointmentDates:function(){return this.getRenderingStrategyInstance().needCorrectAppointmentDates()},getRenderingStrategyDirection:function(){return this.getRenderingStrategyInstance().getDirection()},updateAppointmentEndDate:function(t){var n=t.endDate,e=this._getCurrentViewOption("endDayHour"),i=this._getCurrentViewOption("startDayHour"),r=n;return n.getHours()>=e?r.setHours(e,0,0,0):!t.isSameDate&&i>0&&60*n.getHours()+n.getMinutes()<60*i&&(r=new Date(r.getTime()-Afn("day"))).setHours(e,0,0,0),r},renderCompactAppointments:function(t){this._compactAppointmentsHelper.render(t)},clearCompactAppointments:function(){this._compactAppointmentsHelper.clear()},supportCompactDropDownAppointments:function(){return this.getLayoutManager().getRenderingStrategyInstance().supportCompactDropDownAppointments()},getGroupCount:function(){return this._workSpace._getGroupCount()},mapAppointmentFields:function(t){var{itemData:n,itemElement:e,targetedAppointment:i}=t,r=i||this.getTargetedAppointment(n,e);return{appointmentData:t.itemData,appointmentElement:t.itemElement,targetedAppointmentData:r}},dayHasAppointment:function(t,n,e){return this.dayHasAppointment(t,n,e)},getLayoutManager:function(){return this._layoutManager},getAgendaVerticalStepHeight:function(){return this.getWorkSpace().getAgendaVerticalStepHeight()},getAgendaDuration:function(){return this._getCurrentViewOption("agendaDuration")},getStartViewDate:function(){return this.getStartViewDate()},getEndViewDate:function(){return this.getEndViewDate()},forceMaxAppointmentPerCell:function(){return this.forceMaxAppointmentPerCell()},onAgendaReady:function(t){for(var n=this.getAppointmentsInstance()._itemElements(),e=0,i=function(o,a){n.eq(a+e-1).addClass("dx-scheduler-last-in-date-agenda-appointment"),e+=a},r=0;r<t.length;r++)we(t[r],i)},getTimezone:function(){return this._getTimezoneOffsetByOption()},getTargetedAppointmentData:function(t,n){return this.getTargetedAppointment(t,n)},getEndDayHour:function(){return this._workSpace.option("endDayHour")||this.option("endDayHour")},getStartDayHour:function(){return this._workSpace.option("startDayHour")||this.option("startDayHour")},isAdaptive:function(){return this.option("adaptivityEnabled")},removeDroppableCellClass:function(){this._workSpace.removeDroppableCellClass()}};const H3e=Ffn,Rfn=class Pfn{constructor(n){this._workSpace=n}prepareCellIndexes(n,e,i){return this._workSpace.isGroupedByDate()?{rowIndex:n.rowIndex,columnIndex:n.columnIndex*this._workSpace._getGroupCount()+e}:{rowIndex:n.rowIndex,columnIndex:n.columnIndex+e*this._workSpace._getCellCount()}}getGroupIndex(n,e){var i=this._workSpace.isGroupedByDate(),r=this._workSpace._getGroupCount();return i?e%r:Math.floor(e/this._workSpace._getCellCount())}calculateHeaderCellRepeatCount(){return this._workSpace._getGroupCount()||1}insertAllDayRowsIntoDateTable(){return!1}getTotalCellCount(n){return n=n||1,this._workSpace._getCellCount()*n}getTotalRowCount(){return this._workSpace._getRowCount()}calculateTimeCellRepeatCount(){return 1}getWorkSpaceMinWidth(){return Mi(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()}getAllDayOffset(){return this._workSpace.getAllDayHeight()}getGroupCountClass(n){}getLeftOffset(){return this._workSpace.getTimePanelWidth()}_createGroupBoundOffset(n,e,i){var r=i/2;return{left:n?n.offset().left-r:0,right:e?e.offset().left+i+r:0,top:0,bottom:0}}_getGroupedByDateBoundOffset(n,e){var i=n.length-1,r=n.eq(0),o=n.eq(i);return this._createGroupBoundOffset(r,o,e)}getGroupBoundsOffset(n,e,i,r,o){if(this._workSpace.isGroupedByDate())return this._getGroupedByDateBoundOffset(e,i);var a,s,l=this._workSpace.getCellIndexByCoordinates(r),u=r.groupIndex||Math.floor(l/n),f=o.dateTableGroupedMap[u];if(f){var R=f[0][f[0].length-1].position;a=e.eq(f[0][0].position.columnIndex),s=e.eq(R.columnIndex)}return this._createGroupBoundOffset(a,s,i)}shiftIndicator(n,e,i,r){var o=this._getIndicatorOffset(r);n.css("left",i?i-o:o),n.css("top",e)}_getIndicatorOffset(n){return this._workSpace.isGroupedByDate()?this._calculateGroupByDateOffset(n):this._calculateOffset(n)}_calculateOffset(n){return this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(n-1,0)*n+this._workSpace.getIndicatorOffset(n)+n}_calculateGroupByDateOffset(n){return this._workSpace.getIndicatorOffset(0)*this._workSpace._getGroupCount()+this._workSpace.getRoundedCellWidth(n-1,0)*n}getShaderOffset(n,e){var i=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(n-1)*n;return this._workSpace.option("rtlEnabled")?Mi(this._workSpace._dateTableScrollable.$content().get(0)).width-i-this._workSpace.getTimePanelWidth()-e:i}getShaderTopOffset(n){return-this.getShaderMaxHeight()*(n>0?1:0)}getShaderHeight(){return this._workSpace.getIndicationHeight()}getShaderMaxHeight(){return Mi(this._workSpace._dateTableScrollable.$content().get(0)).height}getShaderWidth(n){return this._workSpace.getIndicationWidth(n)}getScrollableScrollTop(n){return n?0:this._workSpace.getScrollable().scrollTop()}addAdditionalGroupCellClasses(n,e,i,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return n=this._addLastGroupCellClass(n,e,o),this._addFirstGroupCellClass(n,e,o)}_addLastGroupCellClass(n,e,i){if(i)return"".concat(n," ").concat(o3);if(this._workSpace.isGroupedByDate()){if(e%this._workSpace._getGroupCount()==0)return"".concat(n," ").concat(o3)}else if(e%this._workSpace._getCellCount()==0)return"".concat(n," ").concat(o3);return n}_addFirstGroupCellClass(n,e,i){if(i)return"".concat(n," ").concat(a3);if(this._workSpace.isGroupedByDate()){if((e-1)%this._workSpace._getGroupCount()==0)return"".concat(n," ").concat(a3)}else if((e-1)%this._workSpace._getCellCount()==0)return"".concat(n," ").concat(a3);return n}};class z3e{constructor(){this._cache=new Map}get size(){return this._cache.size}clear(){this._cache.clear()}get(n,e){return!this._cache.has(n)&&e&&this.set(n,e()),this._cache.get(n)}set(n,e){Z(e)&&this._cache.set(n,e)}}const U3e=class Nfn{constructor(n){this._workSpace=n,this.cache=new z3e}prepareCellIndexes(n,e,i){var r=n.rowIndex+e*this._workSpace._getRowCount();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(r+=e,i||(r+=1)),{rowIndex:r,columnIndex:n.columnIndex}}getGroupIndex(n){return Math.floor(n/this._workSpace._getRowCount())}calculateHeaderCellRepeatCount(){return 1}insertAllDayRowsIntoDateTable(){return this._workSpace.option("showAllDayPanel")}getTotalCellCount(){return this._workSpace._getCellCount()}getTotalRowCount(){return this._workSpace._getRowCount()*this._workSpace._getGroupCount()}calculateTimeCellRepeatCount(){return this._workSpace._getGroupCount()||1}getWorkSpaceMinWidth(){var n=this._workSpace._getWorkSpaceWidth(),e=Mi(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()-this._workSpace.getGroupTableWidth()-2;return n<e&&(n=e),n}getAllDayOffset(){return 0}getGroupCountClass(n){return d3e(n)}getLeftOffset(){return this._workSpace.getTimePanelWidth()+this._workSpace.getGroupTableWidth()}getGroupBoundsOffset(n,e){var[i,r]=e;return this.cache.get("groupBoundsOffset".concat(n),()=>{var o=this._workSpace.option("startDayHour"),a=this._workSpace.option("endDayHour"),s=this._workSpace.option("hoursInterval"),l=AQ(o,a)/s*this._workSpace.getCellHeight(),u=this.getScrollableScrollTop(),f=n*l+Mi(this._workSpace._$thead.get(0)).height+this._workSpace.option("getHeaderHeight")()+10-u;this._workSpace.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(f+=this._workSpace.getCellHeight()*(n+1));var S=f+l,{left:T}=i.getBoundingClientRect(),{right:R}=r.getBoundingClientRect();return this._groupBoundsOffset={left:T,right:R,top:f,bottom:S}})}shiftIndicator(n,e,i,r){var o=this._workSpace.getIndicatorOffset(0),a=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth(),s=i?i-o:o,l=this._workSpace._getRowCount()*this._workSpace.getCellHeight()*r;this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(l+=this._workSpace.getAllDayHeight()*(r+1)),n.css("left",s+a),n.css("top",e+l)}getShaderOffset(n,e){var i=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth();return this._workSpace.option("rtlEnabled")?Mi(this._$container.get(0)).width-i-this._workSpace.getWorkSpaceLeftOffset()-e:i}getShaderTopOffset(n){return 0}getShaderHeight(){var n=this._workSpace.getIndicationHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(n+=this._workSpace.getCellHeight()),n}getShaderMaxHeight(){var n=this._workSpace._getRowCount()*this._workSpace.getCellHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(n+=this._workSpace.getCellHeight()),n}getShaderWidth(){return this._workSpace.getIndicationWidth(0)}getScrollableScrollTop(){return this._workSpace.getScrollable().scrollTop()}addAdditionalGroupCellClasses(n,e,i,r){return n=this._addLastGroupCellClass(n,i+1),this._addFirstGroupCellClass(n,i+1)}_addLastGroupCellClass(n,e){return e%this._workSpace._getRowCount()==0?"".concat(n," ").concat(o3):n}_addFirstGroupCellClass(n,e){return(e-1)%this._workSpace._getRowCount()==0?"".concat(n," ").concat(a3):n}},UQ={tableCreator:new class Vfn{constructor(){this.VERTICAL="vertical",this.HORIZONTAL="horizontal"}insertAllDayRow(n,e,i){if(n[i]){var r=n[i].find("tr");r.length||(r=U(It.createElement("tr"))).append(n[i].get(0)),e.appendChild(r.get?r.get(0):r)}}makeTable(n){var r,e=It.createElement("tbody"),i=[],o=n.groupCount?n.rowCount/n.groupCount:n.rowCount,a=0,s=n.allDayElements,l=n.groupIndex,u=n.rowCount;U(n.container).append(e),s&&(this.insertAllDayRow(s,e,0),a++);for(var f=0;f<u;f++){r=It.createElement("tr"),e.appendChild(r);var S=(f+1)%o==0;n.rowClass&&(r.className=n.rowClass);for(var T=0;T<n.cellCount;T++){var R,L=It.createElement("td");r.appendChild(L),n.cellClass&&(L.className=Yt(n.cellClass)?n.cellClass(f,T):n.cellClass);var z=void 0,j=void 0,Y=void 0;if(n.getCellData&&(Y=(z=n.getCellData(L,f,T,l)).value,(j=z.key)&&zo(L,j,Y)),null===(R=n.setAdditionalClasses)||void 0===R||R.call(n,U(L),Y),n.cellTemplate&&n.cellTemplate.render){var ie=n.getTemplateData?n.getTemplateData(f):{},te={model:mt({text:n.getCellText?n.getCellText(f,T):"",date:n.getCellDate?n.getCellDate(f):void 0},ie),container:kn(U(L)),index:f*n.cellCount+T};Y&&(Y.startDate&&(te.model.startDate=Y.startDate),Y.endDate&&(te.model.endDate=Y.endDate),Y.groups&&(te.model.groups=Y.groups),Y.allDay&&(te.model.allDay=Y.allDay)),i.push(n.cellTemplate.render.bind(n.cellTemplate,te))}else n.getCellText&&U("<div>").text(n.getCellText(f,T)).addClass(n.getCellTextClass).appendTo(U(L))}s&&S&&(this.insertAllDayRow(s,e,a),a++)}return i}makeGroupedTable(n,e,i,r,o,a,s){return n===this.VERTICAL?this._makeVerticalGroupedRows(e,i,o,a):this._makeHorizontalGroupedRows(e,i,r,o,s)}makeGroupedTableFromJSON(n,e,i){var r,o=[],a=0,s=(i=i||{}).cellTag||"td",l=i.childrenField||"children",u=i.titleField||"title",f=i.groupTableClass,S=i.groupRowClass,T=i.groupCellClass,R=i.groupCellCustomContent;function L(j){return j[l]?j[l].length:0}function z(j,Y,ie,te){var re={element:It.createElement(s),childCount:Y};T&&(re.element.className=T);var he=It.createTextNode(j);return"function"==typeof R?R(re.element,he,ie,te):re.element.appendChild(he),re}return r=It.createElement("table"),f&&(r.className=f),function j(Y){for(var ie=0;ie<Y.length;ie++){var te=L(Y[ie]),re=z(Y[ie][u],te,ie,Y[ie]);o[a]||(o[a]=[]),o[a].push(re),te?j(Y[ie][l]):a++}}(e),o.forEach(function(j){var Y=It.createElement("tr");S&&(Y.className=S);for(var ie=[],te=j.length-1;te>=0;te--){var re=j[te+1],he=j[te].childCount;re&&re.childCount&&(he*=re.childCount),ie.push(he)}ie.reverse(),j.forEach(function(fe,Te){ie[Te]&&fe.element.setAttribute("rowSpan",ie[Te]),Y.appendChild(fe.element)}),r.appendChild(Y)}),r}_makeFlexGroupedRowCells(n,e,i,r){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=[],s=n.items,l=s.length,u=0;u<e*o;u++)for(var f=0;f<l;f++){var S=U("<div>"),T={};if(r&&r.render){var R={model:s[f],container:kn(S),index:u*l+f};n.data&&(R.model.data=n.data[f]),T.template=r.render.bind(r,R)}else S.text(s[f].text).attr("title",s[f].text).addClass("dx-scheduler-group-header-content"),S=U("<div>").append(S);var L=Yt(i.groupHeaderClass)?i.groupHeaderClass(f):i.groupHeaderClass;T.element=S.addClass(L),a.push(T)}return a}_makeVerticalGroupedRows(n,e,i){for(var r=[],o=1,a=[],s=function(j){j.template&&r.push(j.template)},l=0;l<n.length;l++){l>0&&(o*=n[l-1].items.length);var u=this._makeFlexGroupedRowCells(n[l],o,e,i);u.forEach(s),a.push(u)}for(var f=[],S=a.length,T=0;T<S;T++)f.push(U("<div>").addClass(e.groupHeaderRowClass));for(var R=S-1;R>=0;R--)for(var L=a[R].length,z=0;z<L;z++)f[R].append(a[R][z].element);return{elements:U("<div>").addClass("dx-scheduler-group-flex-container").append(f),cellTemplates:r}}_makeHorizontalGroupedRows(n,e,i,r,o){for(var a=1,s=n.length,l=[],u=[],f=o?i:1,S=function(ie){return ie.template&&u.push(ie.template),ie.element},T=0;T<s;T++){T>0&&(a*=n[T-1].items.length);var R=this._makeGroupedRowCells(n[T],a,e,r,f);l.push(U("<tr>").addClass(e.groupRowClass).append(R.map(S)))}for(var L=l[s-1].find("th").length,z=0;z<s;z++){var j=l[z].find("th"),Y=L/j.length;o||(Y*=i),(Y>1&&1===f||o&&s>1)&&j.attr("colSpan",Y)}return{elements:l,cellTemplates:u}}_makeGroupedRowCells(n,e,i,r,o){e*=o=o||1;for(var a=[],s=n.items,l=s.length,u=0;u<e;u++)for(var f=0;f<l;f++){var S=U("<div>"),T={};if(r&&r.render){var R={model:s[f],container:kn(S),index:u*l+f};n.data&&(R.model.data=n.data[f]),T.template=r.render.bind(r,R)}else S.text(s[f].text),S=U("<div>").append(S);S.addClass(i.groupHeaderContentClass);var L;L=Yt(i.groupHeaderClass)?i.groupHeaderClass(f):i.groupHeaderClass,T.element=U("<th>").addClass(L).append(S),a.push(T)}return a}}};var W3e="dx-scheduler-date-time-shader";const G3e=class Hfn{constructor(n){this._workSpace=n,this._$container=this._workSpace._dateTableScrollable.$content()}render(){this.initShaderElements(),this.renderShader(),this._shader.forEach((n,e)=>{this._$container.append(n)})}initShaderElements(){this._$shader=this.createShader(),this._shader=[],this._shader.push(this._$shader)}renderShader(){}createShader(){return U("<div>").addClass(W3e)}clean(){this._$container&&this._$container.find("."+W3e).remove()}};var j3e="dx-scheduler-date-time-shader-all-day";const Gfn=class Wfn extends G3e{renderShader(){var n=this._getShaderHeight(),e=this._getShaderMaxHeight(),i=n>e;n>e&&(n=e),xo(this._$shader,n);var r=this._workSpace._getGroupCount()||1;this._workSpace.isGroupedByDate()?this._renderGroupedByDateShaderParts(r,n,e,i):this._renderShaderParts(r,n,e,i)}_renderShaderParts(n,e,i,r){for(var o=0;o<n;o++){var a=this._getShaderWidth(o);this._renderTopShader(this._$shader,e,a,o),!r&&this._renderBottomShader(this._$shader,i,e,a,o),this._renderAllDayShader(a,o)}}_renderGroupedByDateShaderParts(n,e,i,r){var o=this._getShaderWidth(0),a=o-this._workSpace.getCellWidth();e<0&&(e=0,a=o),this._renderTopShader(this._$shader,e,o*n,0),!r&&this._renderBottomShader(this._$shader,i,e,a*n+this._workSpace.getCellWidth(),0),this._renderAllDayShader(o*n,0)}_renderTopShader(n,e,i,r){this._$topShader=U("<div>").addClass("dx-scheduler-date-time-shader-top"),i&&oa(this._$topShader,i),e&&xo(this._$topShader,e),this._$topShader.css("marginTop",this._getShaderTopOffset(r)),this._$topShader.css("left",this._getShaderOffset(r,i)),n.append(this._$topShader)}_renderBottomShader(n,e,i,r,o){this._$bottomShader=U("<div>").addClass("dx-scheduler-date-time-shader-bottom");var a=i<0?r:r-this._workSpace.getCellWidth(),s=i<0?e:e-i;oa(this._$bottomShader,a),xo(this._$bottomShader,s),this._$bottomShader.css("left",this._getShaderOffset(o,r-this._workSpace.getCellWidth())),n.append(this._$bottomShader)}_renderAllDayShader(n,e){this._workSpace.option("showAllDayPanel")&&(this._$allDayIndicator=U("<div>").addClass(j3e),xo(this._$allDayIndicator,this._workSpace.getAllDayHeight()),oa(this._$allDayIndicator,n),this._$allDayIndicator.css("left",this._getShaderOffset(e,n)),this._workSpace._$allDayPanel.prepend(this._$allDayIndicator))}_getShaderOffset(n,e){return this._workSpace.getGroupedStrategy().getShaderOffset(n,e)}_getShaderTopOffset(n){return this._workSpace.getGroupedStrategy().getShaderTopOffset(n)}_getShaderHeight(n,e){return this._workSpace.getGroupedStrategy().getShaderHeight()}_getShaderMaxHeight(n,e){return this._workSpace.getGroupedStrategy().getShaderMaxHeight()}_getShaderWidth(n){return this._workSpace.getGroupedStrategy().getShaderWidth(n)}clean(){super.clean(),this._workSpace&&this._workSpace._$allDayPanel&&this._workSpace._$allDayPanel.find("."+j3e).remove()}};class qfn{constructor(n){this.scheduler=n,this.workspace=n._workSpace,this.appointments=n._appointments,this.initialPosition={left:0,top:0},this.appointmentInfo=null,this.dragBetweenComponentsPromise=null}isAllDay(n){return n.data("dxAppointmentSettings").allDay}onDragStart(n){var{itemSettings:e,itemData:i,initialPosition:r}=n;this.initialPosition=r,this.appointmentInfo={appointment:i,settings:e},this.appointments.notifyObserver("hideAppointmentTooltip")}onDragMove(n){n.fromComponent!==n.toComponent&&this.appointments.notifyObserver("removeDroppableCellClass")}getAppointmentElement(n){return U(n.event.data&&n.event.data.itemElement||n.itemElement)}onDragEnd(n){var e=this.getAppointmentElement(n),i=this.appointments._getItemData(e);this.appointments._getAppointmentContainer(this.isAllDay(e)).append(e);var o=this.workspace.getDroppableCellIndex(),a=this.workspace.getCellIndexByCoordinates(this.initialPosition);this.appointments.notifyObserver("updateAppointmentAfterDrag",{event:n,element:e,rawAppointment:i,newCellIndex:o,oldCellIndex:a})}onDragCancel(){this.removeDroppableClasses()}getItemData(n){var i=U(n).data(yQ)?.appointment,r=this.appointments._getItemData(n);return i||r}getItemSettings(n){var e=U(n).data(yQ);return e&&e.settings||[]}createDragStartHandler(n,e){return i=>{i.itemData=this.getItemData(i.itemElement),i.itemSettings=this.getItemSettings(i.itemElement),e.onDragStart&&e.onDragStart(i),i.cancel||n.onDragStart(i)}}createDragMoveHandler(n,e){return i=>{e.onDragMove&&e.onDragMove(i),i.cancel||n.onDragMove(i)}}createDragEndHandler(n,e){return i=>{this.appointmentInfo=null,e.onDragEnd&&e.onDragEnd(i),i.cancel||(n.onDragEnd(i),i.fromComponent!==i.toComponent&&e.onRemove&&e.onRemove(i)),!0===i.cancel&&this.removeDroppableClasses(),!0!==i.cancel&&function Kfn(t){return"dxScheduler"===t.NAME}(i.toComponent)&&(i.toComponent._getDragBehavior().dragBetweenComponentsPromise=new et)}}createDropHandler(n){return e=>{var i=this.appointments.invoke("getUpdatedData",e.itemData);e.itemData=se({},e.itemData,i),e.fromComponent!==e.toComponent&&n.onAdd&&n.onAdd(e),this.dragBetweenComponentsPromise&&this.dragBetweenComponentsPromise.resolve()}}addTo(n,e){var i=this.scheduler.option("appointmentDragging")||{},r=se({component:this.scheduler,contentTemplate:null,filter:".".concat("dx-scheduler-appointment"),immediate:!1,onDragStart:this.onDragStart.bind(this),onDragMove:this.onDragMove.bind(this),onDragEnd:this.onDragEnd.bind(this),onDragCancel:this.onDragCancel.bind(this)},e);this.appointments._createComponent(n,JC,se({},r,i,{onDragStart:this.createDragStartHandler(r,i),onDragMove:this.createDragMoveHandler(r,i),onDragEnd:this.createDragEndHandler(r,i),onDrop:this.createDropHandler(i),onCancelByEsc:!0}))}updateDragSource(n,e){var{appointmentInfo:i}=this;(i||n)&&this.appointments._setDragSourceAppointment(n||i.appointment,e||i.settings)}removeDroppableClasses(){this.appointments._removeDragSourceClassFromDraggedAppointment(),this.workspace.removeDroppableCellClass()}}const K3e=class Yfn extends tr{notifyObserver(n,e){var i=this.option("observer");i&&i.fire(n,e)}invoke(){var n=this.option("observer");if(n)return n.fire.apply(n,arguments)}};var q3e=kt("scroll","dxSchedulerVirtualScrolling");class emn{constructor(n){this.options=n,n&&(this._rowHeight=this.getCellHeight(),this._cellWidth=this.getCellWidth(),this._createVirtualScrollingBase())}get isRTL(){return this.options.isRTL()}get verticalVirtualScrolling(){return this._verticalVirtualScrolling}set verticalVirtualScrolling(n){this._verticalVirtualScrolling=n}get horizontalVirtualScrolling(){return this._horizontalVirtualScrolling}set horizontalVirtualScrolling(n){this._horizontalVirtualScrolling=n}get document(){return It.getDocument()}get height(){return this.options.getSchedulerHeight()}get width(){return this.options.getSchedulerWidth()}get rowHeight(){return this._rowHeight}set rowHeight(n){this._rowHeight=n}get outlineCount(){return this.options.getScrolling().outlineCount}get cellWidth(){return this._cellWidth}set cellWidth(n){this._cellWidth=n}get viewportWidth(){var n=this.width&&this.options.getViewWidth();return n>0?n:this.options.getWindowWidth()}get viewportHeight(){var n=this.height&&this.options.getViewHeight();return n>0?n:this.options.getWindowHeight()}get cellCountInsideTopVirtualRow(){var n;return(null===(n=this.verticalScrollingState)||void 0===n?void 0:n.virtualItemCountBefore)||0}get cellCountInsideLeftVirtualCell(){var n;return(null===(n=this.horizontalScrollingState)||void 0===n?void 0:n.virtualItemCountBefore)||0}get cellCountInsideRightVirtualCell(){var n;return(null===(n=this.horizontalScrollingState)||void 0===n?void 0:n.virtualItemCountAfter)||0}get topVirtualRowsCount(){return this.cellCountInsideTopVirtualRow>0?1:0}get leftVirtualCellsCount(){return(this.isRTL?this.cellCountInsideRightVirtualCell:this.cellCountInsideLeftVirtualCell)>0?1:0}get virtualRowOffset(){var n;return(null===(n=this.verticalScrollingState)||void 0===n?void 0:n.virtualItemSizeBefore)||0}get virtualCellOffset(){var n;return(null===(n=this.horizontalScrollingState)||void 0===n?void 0:n.virtualItemSizeBefore)||0}get scrollingState(){var n,e;return{vertical:null===(n=this.verticalVirtualScrolling)||void 0===n?void 0:n.state,horizontal:null===(e=this.horizontalVirtualScrolling)||void 0===e?void 0:e.state}}get verticalScrollingState(){return this.scrollingState.vertical}get horizontalScrollingState(){return this.scrollingState.horizontal}get scrollingOrientation(){var n=this.options.getScrolling();return"standard"===n.mode?"none":n.orientation||"both"}get verticalScrollingAllowed(){return"vertical"===this.scrollingOrientation||"both"===this.scrollingOrientation}get horizontalScrollingAllowed(){return"horizontal"===this.scrollingOrientation||"both"===this.scrollingOrientation}setViewOptions(n){this.options=n,this.verticalVirtualScrolling&&(this.verticalVirtualScrolling.options=n,this.verticalVirtualScrolling.itemSize=this.rowHeight,this.verticalVirtualScrolling.viewportSize=this.viewportHeight),this.horizontalVirtualScrolling&&(this.horizontalVirtualScrolling.options=n,this.verticalVirtualScrolling.itemSize=this.cellWidth,this.verticalVirtualScrolling.viewportSize=this.viewportWidth)}getRenderState(){var n,e;return mt({},(null===(n=this.verticalVirtualScrolling)||void 0===n?void 0:n.getRenderState())||{},(null===(e=this.horizontalVirtualScrolling)||void 0===e?void 0:e.getRenderState())||{})}getCellHeight(){var n=this.options.getCellHeight();return Math.floor(n>0?n:50)}getCellWidth(){var n=this.options.getCellWidth(),e=this.options.getCellMinWidth();return(!n||n<e)&&(n=e),Math.floor(n>0?n:1)}calculateCoordinatesByDataAndPosition(n,e,i,r,o){var{rowIndex:a,columnIndex:s}=e,{startDate:l,endDate:u,allDay:f}=n,S=i.getTime(),T=l.getTime(),R=u.getTime(),L=f||!r?0:(S-T)/(R-T),z=this.getCellWidth(),j=this.getCellHeight(),Y=o?(a+L)*j:a*j,ie=o?s*z:(s+L)*z;return this.isRTL&&(ie=this.options.getScrollableOuterWidth()-ie),{top:Y,left:ie}}dispose(){this._onScrollHandler&&Se.off(this.document,q3e,this._onScrollHandler)}createVirtualScrolling(){(this.verticalScrollingAllowed!==!!this.verticalVirtualScrolling||this.horizontalScrollingAllowed!==!!this.horizontalVirtualScrolling)&&(this._rowHeight=this.getCellHeight(),this._cellWidth=this.getCellWidth(),this._createVirtualScrollingBase())}_createVirtualScrollingBase(){this.verticalScrollingAllowed&&(this.verticalVirtualScrolling=new tmn(mt({},this.options,{viewportHeight:this.viewportHeight,rowHeight:this.rowHeight,outlineCount:this.outlineCount}))),this.horizontalScrollingAllowed&&(this.horizontalVirtualScrolling=new nmn(mt({},this.options,{viewportWidth:this.viewportWidth,cellWidth:this.cellWidth,outlineCount:this.outlineCount})))}isAttachWindowScrollEvent(){return(this.horizontalScrollingAllowed||this.verticalScrollingAllowed)&&!this.height}attachScrollableEvents(){this.isAttachWindowScrollEvent()&&this._attachWindowScroll()}_attachWindowScroll(){var n=Fn();this._onScrollHandler=this.options.createAction(()=>{var{scrollX:e,scrollY:i}=n;(e>=10||i>=10)&&this.handleOnScrollEvent({left:e,top:i})}),Se.on(this.document,q3e,this._onScrollHandler)}handleOnScrollEvent(n){if(n){var e,i,l,u,{left:r,top:o}=n,a=Z(o)&&(null===(e=this.verticalVirtualScrolling)||void 0===e?void 0:e.updateState(o)),s=Z(r)&&(null===(i=this.horizontalVirtualScrolling)||void 0===i?void 0:i.updateState(r));(a||s)&&(null===(l=(u=this.options).updateRender)||void 0===l||l.call(u))}}updateDimensions(n){var e=this.getCellHeight(),i=this.verticalScrollingAllowed&&e!==this.rowHeight;(i||n)&&this.verticalVirtualScrolling&&(this.rowHeight=e,this.verticalVirtualScrolling.viewportSize=this.viewportHeight,this.verticalVirtualScrolling.reinitState(e,n));var a,s,r=this.getCellWidth(),o=this.horizontalScrollingAllowed&&r!==this.cellWidth;(o||n)&&this.horizontalVirtualScrolling&&(this.cellWidth=r,this.horizontalVirtualScrolling.viewportSize=this.viewportWidth,this.horizontalVirtualScrolling.reinitState(r,n)),(i||o)&&(null===(a=(s=this.options).updateGrid)||void 0===a||a.call(s))}}class Y3e{constructor(n){this.options=n,this._state=this.defaultState,this.viewportSize=n.viewportSize,this._itemSize=n.itemSize,this._position=-1,this._itemSizeChanged=!1,this.updateState(0)}get itemSize(){return this._itemSize}set itemSize(n){this._itemSizeChanged=this._itemSize!==n,this._itemSize=n}get state(){return this._state}set state(n){this._state=n}get startIndex(){return this.state.startIndex}get pageSize(){return Math.ceil(this.viewportSize/this.itemSize)}get outlineCount(){return Z(this.options.outlineCount)?this.options.outlineCount:Math.floor(this.pageSize/2)}get groupCount(){return this.options.getGroupCount()}get isVerticalGrouping(){return this.options.isVerticalGrouping()}get defaultState(){return{prevPosition:0,startIndex:-1,itemCount:0,virtualItemCountBefore:0,virtualItemCountAfter:0,outlineCountBefore:0,outlineCountAfter:0,virtualItemSizeBefore:0,virtualItemSizeAfter:0,outlineSizeBefore:0,outlineSizeAfter:0}}get maxScrollPosition(){return this.getTotalItemCount()*this.itemSize-this.viewportSize}get position(){return this._position}set position(n){this._position=n}needUpdateState(n){var{prevPosition:e,startIndex:i}=this.state;if(i<0)return!0;var o=!1;if(this._validateAndSavePosition(n)){if(0===n||n===this.maxScrollPosition)return!0;var s=Math.floor(e/this.itemSize),l=Math.floor(n/this.itemSize);o=Math.abs(s-l)>=this.outlineCount}return o}_validateAndSavePosition(n){if(!Z(n))return!1;var e=this.position!==n;return this.position=n,e}_correctPosition(n){return n>=0?Math.min(n,this.maxScrollPosition):-1}updateState(n,e){if(n=this._correctPosition(n),!this.needUpdateState(n)&&!e)return!1;var i=this._calcItemInfoBefore(n),r=this._calcItemDeltaBefore(i),{outlineCountAfter:o,virtualItemCountAfter:a,itemCountWithAfter:s}=this._calcItemInfoAfter(r),{virtualItemCountBefore:l,outlineCountBefore:u}=i,f=u+s+o,S=Math.floor(n/this.itemSize);return this.state.prevPosition=S*this.itemSize,this.state.startIndex=S-u,this.state.virtualItemCountBefore=l,this.state.outlineCountBefore=u,this.state.itemCount=f,this.state.outlineCountAfter=o,this.state.virtualItemCountAfter=a,this._updateStateCore(),!0}reinitState(n,e){var{position:i}=this;this.itemSize=n,this.updateState(0,e),i>0&&this.updateState(i,e)}_calcItemInfoBefore(n){var e=Math.floor(n/this.itemSize),i=Math.min(e,this.outlineCount);return{virtualItemCountBefore:e-=i,outlineCountBefore:i}}_calcItemDeltaBefore(n){var{virtualItemCountBefore:e,outlineCountBefore:i}=n;return this.getTotalItemCount()-e-i}getTotalItemCount(){throw"getTotalItemCount method should be implemented"}getRenderState(){throw"getRenderState method should be implemented"}_calcItemInfoAfter(n){var e=n>=this.pageSize?this.pageSize:n,i=n-e,r=i>0?Math.min(i,this.outlineCount):0;return i>0&&(i-=r),{virtualItemCountAfter:i,outlineCountAfter:r,itemCountWithAfter:e}}_updateStateCore(){var{state:n}=this,f=this.itemSize*n.virtualItemCountBefore,S=this.itemSize*n.virtualItemCountAfter;(this._itemSizeChanged||n.virtualItemSizeBefore+n.outlineSizeBefore<f+this.itemSize*n.outlineCountBefore||n.virtualItemSizeAfter+n.outlineSizeAfter<S+this.itemSize*n.outlineCountAfter)&&this._updateStateVirtualItems(f,S)}_updateStateVirtualItems(n,e){var{state:i}=this;i.virtualItemSizeBefore=n,i.virtualItemSizeAfter=e}}class tmn extends Y3e{constructor(n){super(mt({},n,{itemSize:n.rowHeight,viewportSize:n.viewportHeight}))}get prevTopPosition(){return this.state.prevPosition}get rowCount(){return this.state.itemCount}get topVirtualRowCount(){return this.state.virtualItemCountBefore}get bottomVirtualRowCount(){return this.state.virtualItemCountAfter}getTotalItemCount(){return this.options.getTotalRowCount(this.groupCount,this.isVerticalGrouping)}getRenderState(){return{topVirtualRowHeight:this.state.virtualItemSizeBefore,bottomVirtualRowHeight:this.state.virtualItemSizeAfter,startRowIndex:this.state.startIndex,rowCount:this.state.itemCount,startIndex:this.state.startIndex}}}class nmn extends Y3e{constructor(n){super(mt({},n,{itemSize:n.cellWidth,viewportSize:n.viewportWidth}))}get isRTL(){return this.options.isRTL()}getTotalItemCount(){return this.options.getTotalCellCount(this.groupCount,this.isVerticalGrouping)}getRenderState(){return{leftVirtualCellWidth:this.state.virtualItemSizeBefore,rightVirtualCellWidth:this.state.virtualItemSizeAfter,startCellIndex:this.state.startIndex,cellCount:this.state.itemCount,cellWidth:this.itemSize}}_updateStateVirtualItems(n,e){if(this.isRTL){var{state:i}=this;i.virtualItemSizeAfter=n,i.virtualItemSizeBefore=e,i.startIndex=this.getTotalItemCount()-this.startIndex-this.state.itemCount}else super._updateStateVirtualItems(n,e)}}class imn{constructor(n){this._workspace=n,this._renderAppointmentTimeoutID=null}getRenderTimeout(){return this._workspace.option("isRenovatedAppointments")?-1:15}get workspace(){return this._workspace}updateRender(){this._renderGrid(),this._renderAppointments()}_renderGrid(){this.workspace.renderWorkSpace(!1)}_renderAppointments(){var n=this.getRenderTimeout();n>=0?(clearTimeout(this._renderAppointmentTimeoutID),this._renderAppointmentTimeoutID=setTimeout(()=>this.workspace.updateAppointments(),n)):this.workspace.updateAppointments()}}var amn=["startDate","endDate","isFirstGroupCell","isLastGroupCell"];class smn{constructor(n){this._viewDataGenerator=n}getCompleteDateHeaderMap(n,e){var{isGenerateWeekDaysHeaderData:i}=n,r=[];if(i){var o=this._generateWeekDaysHeaderRowMap(n,e);r.push(o)}var a=this._generateHeaderDateRow(n,e);return r.push(a),r}_generateWeekDaysHeaderRowMap(n,e){for(var{isGroupedByDate:i,groups:r,groupOrientation:o,startDayHour:a,endDayHour:s,hoursInterval:l,isHorizontalGrouping:u,intervalCount:f}=n,S=this._viewDataGenerator.getCellCountInDay(a,s,l),T=MQ(r,o),R=e[0][0].allDay?1:0,L=i?T*S:S,z=c0(r),ie=this._viewDataGenerator.daysInInterval*f*(u&&!i?z:1),te=[],re=0;re<ie;re+=1){var he=e[R][re*L];te.push(mt({},he,{colSpan:L,text:u3(he.startDate),isFirstGroupCell:!1,isLastGroupCell:!1}))}return te}_generateHeaderDateRow(n,e){var{today:i,isGroupedByDate:r,groupOrientation:o,groups:a,headerCellTextFormat:s,getDateForHeaderText:l,interval:u,startViewDate:f,startDayHour:S,endDayHour:T,hoursInterval:R,intervalCount:L,currentDate:z,viewType:j}=n,Y=MQ(a,o),ie=e[0][0].allDay?1:0,te=r?Y:1,re="vertical"===o,he=this._viewDataGenerator.getCellCount({intervalCount:L,currentDate:z,viewType:j,hoursInterval:R,startDayHour:S,endDayHour:T}),fe=this._viewDataGenerator.getCellCountInDay(S,T,R);return(r?e[ie].filter((Re,He)=>He%Y==0):e[ie]).map((Re,He)=>{var{startDate:Ze,isFirstGroupCell:at,isLastGroupCell:vt}=Re,Bt=ki(Re,amn),St=((t,n,e,i,r)=>{var o=i(t,n,r);return Gn.format(o,e)})(He%he,Ze,s,l,{interval:u,startViewDate:f,startDayHour:S,cellCountInDay:fe});return mt({},Bt,{startDate:Ze,text:St,today:bt.sameDate(Ze,i),colSpan:te,isFirstGroupCell:r||at&&!re,isLastGroupCell:r||vt&&!re})})}generateDateHeaderData(n,e,i){var{isGenerateWeekDaysHeaderData:r,cellWidth:o,isProvideVirtualCellsWidth:a,startDayHour:s,endDayHour:l,hoursInterval:u,isMonthDateHeader:f}=i,S=[],T={},R=o||0;r&&(T=this._generateDateHeaderDataRow(i,n,e,this._viewDataGenerator.getCellCountInDay(s,l,u),0,R),S.push(T.dateRow));var L=this._generateDateHeaderDataRow(i,n,e,1,r?1:0,R);return S.push(L.dateRow),{dataMap:S,leftVirtualCellWidth:a?L.leftVirtualCellWidth:void 0,rightVirtualCellWidth:a?L.rightVirtualCellWidth:void 0,leftVirtualCellCount:L.leftVirtualCellCount,rightVirtualCellCount:L.rightVirtualCellCount,weekDayLeftVirtualCellWidth:T.leftVirtualCellWidth,weekDayRightVirtualCellWidth:T.rightVirtualCellWidth,weekDayLeftVirtualCellCount:T.leftVirtualCellCount,weekDayRightVirtualCellCount:T.rightVirtualCellCount,isMonthDateHeader:f}}_generateDateHeaderDataRow(n,e,i,r,o,a){var{startCellIndex:s,cellCount:l,isProvideVirtualCellsWidth:u,groups:f,groupOrientation:S,isGroupedByDate:T}=n,R=MQ(f,S),L=T?R*r:r,z=Math.floor(s/L),j=g3e(l,i),Y=Math.ceil((s+j)/L),re=z*L,fe=FQ(i)-Y*L;return{dateRow:e[o].slice(z,Y),leftVirtualCellCount:re,leftVirtualCellWidth:u?re*a:void 0,rightVirtualCellCount:fe,rightVirtualCellWidth:u?fe*a:void 0}}}class Z3e{constructor(n,e,i,r){this.groupedDataMap=n.generateGroupedDataMap(e),this.completeViewDataMap=i,this._viewOptions=r}getGroupStartDate(n){var e=this.getFirstGroupRow(n);if(e){var{startDate:i}=e[0].cellData;return i}}getGroupEndDate(n){var e=this.getLastGroupRow(n);if(e){var i=e.length-1,{cellData:r}=e[i],{endDate:o}=r;return o}}findGroupCellStartDate(n,e,i,r){var o=this.getGroupFromDateTableGroupMap(n),a=(u,f)=>{var{cellData:S}=o[u][f],{startDate:T,endDate:R}=S;if(r&&(T=bt.trimTime(T),R=bt.setToDayEnd(T)),bt.intervalsOverlap({firstMin:e,firstMax:i,secondMin:T,secondMax:R}))return T},s=(()=>{for(var u=o[0].length,f=0;f<u;++f)for(var S=0;S<o.length;++S){var T=a(S,f);if(T)return T}})(),l=(()=>{for(var u=0;u<o.length;++u)for(var f=o[u],S=0;S<f.length;++S){var T=a(u,S);if(T)return T}})();return s>l?l:s}findAllDayGroupCellStartDate(n,e){var i=this.getGroupStartDate(n);return i>e?i:e}findCellPositionInMap(n){for(var{groupIndex:e,startDate:i,isAllDay:r,index:o}=n,a=r?bt.trimTime(i).getTime():i.getTime(),s=j=>{if(!Bb(this._viewOptions.viewType))return bt.sameDate(i,j.startDate);var Y=j.startDate.getTime(),ie=j.endDate.getTime();return r?j.allDay&&a>=Y&&a<=ie:a>=Y&&a<ie},{allDayPanelGroupedMap:l,dateTableGroupedMap:u}=this.groupedDataMap,f=r&&!this._viewOptions.isVerticalGrouping?l[e]?[l[e]]:[]:u[e]||[],S=0;S<f.length;++S)for(var T=f[S],R=0;R<T.length;++R){var L=T[R],{cellData:z}=L;if(this._isSameGroupIndexAndIndex(z,e,o)&&s(z))return L.position}}_isSameGroupIndexAndIndex(n,e,i){return n.groupIndex===e&&(void 0===i||n.index===i)}getCellsGroup(n){var{dateTableGroupedMap:e}=this.groupedDataMap,i=e[n];if(i){var{cellData:r}=i[0][0];return r.groups}}getCompletedGroupsInfo(){var{dateTableGroupedMap:n}=this.groupedDataMap;return n.map(e=>{var i=e[0][0],{allDay:r,groupIndex:o}=i.cellData;return{allDay:r,groupIndex:o,startDate:this.getGroupStartDate(o),endDate:this.getGroupEndDate(o)}}).filter(e=>{var{startDate:i}=e;return!!i})}getGroupIndices(){return this.getCompletedGroupsInfo().map(n=>{var{groupIndex:e}=n;return e})}getGroupFromDateTableGroupMap(n){var{dateTableGroupedMap:e}=this.groupedDataMap;return e[n]}getFirstGroupRow(n){var e=this.getGroupFromDateTableGroupMap(n);if(e){var{cellData:i}=e[0][0];return i.allDay?e[1]:e[0]}}getLastGroupRow(n){var{dateTableGroupedMap:e}=this.groupedDataMap,i=e[n];if(i)return i[i.length-1]}getLastGroupCellPosition(n){var e=this.getLastGroupRow(n);return e?.[e?.length-1].position}getRowCountInGroup(n){var e=this.getLastGroupRow(n);return(e[e.length-1].cellData.index+1)/e.length}}var X3e=(t,n)=>t?bt.getFirstWeekDate(t,n):void 0,hmn=(t,n,e,i,r)=>{if(t%2==0){var o=((t,n,e,i,r)=>{if(!qr.isTimezoneChangeInDate(n))return n;var o=qr.getDateWithoutTimezoneChange(e),a=new Date(o),s=Math.round(i),l=l3e(e,r);return a.setMilliseconds(a.getMilliseconds()+s*t-l),a})(t,n,e,i,r);return Gn.format(o,"shorttime")}return""},pmn=["allDay","startDate","endDate","groups","groupIndex","isFirstGroupCell","isLastGroupCell","index"];class gmn{constructor(n){this._viewDataGenerator=n}getCompleteTimePanelMap(n,e){var{startViewDate:i,cellDuration:r,startDayHour:o,isVerticalGrouping:a,intervalCount:s,currentDate:l,viewType:u,hoursInterval:f,endDayHour:S}=n,T=this._viewDataGenerator.getRowCount({intervalCount:s,currentDate:l,viewType:u,hoursInterval:f,startDayHour:o,endDayHour:S}),R=this._viewDataGenerator.getCellCount({intervalCount:s,currentDate:l,viewType:u,hoursInterval:f,startDayHour:o,endDayHour:S}),L=0;return e.map((z,j)=>{var Y=z[0],{allDay:ie,startDate:te,groups:re,groupIndex:he,isFirstGroupCell:fe,isLastGroupCell:Te,index:Re}=Y,He=ki(Y,pmn);return ie&&(L+=1),mt({},He,{startDate:te,allDay:ie,text:hmn((j-L)%T,te,i,r,o),groups:a?re:void 0,groupIndex:a?he:void 0,isFirstGroupCell:a&&fe,isLastGroupCell:a&&Te,index:Math.floor(Re/R)})})}generateTimePanelData(n,e){var{startRowIndex:i,rowCount:r,topVirtualRowHeight:o,bottomVirtualRowHeight:a,isGroupedAllDayPanel:s,isVerticalGrouping:l,isAllDayPanelVisible:u}=e,S=i+(l||!u?0:1),T=PQ(r,n),R=n.slice(S,S+T),L={topVirtualRowHeight:o,bottomVirtualRowHeight:a,isGroupedAllDayPanel:s},{previousGroupedData:z}=this._generateTimePanelDataFromMap(R,l);return L.groupedData=z,L}_generateTimePanelDataFromMap(n,e){return n.reduce((i,r)=>{var{previousGroupIndex:o,previousGroupedData:a}=i,s=r.groupIndex;return s!==o&&a.push({dateTable:[],isGroupedAllDayPanel:P8e(!!r.allDay,e),groupIndex:s,key:M8e(s,e)}),r.allDay?a[a.length-1].allDayPanel=r:a[a.length-1].dateTable.push(r),{previousGroupIndex:s,previousGroupedData:a}},{previousGroupIndex:-1,previousGroupedData:[]})}}var J3e=bt.dateToMilliseconds("hour"),Q3e=bt.dateToMilliseconds("day");class RM{get daysInInterval(){return 1}get isWorkView(){return!1}get tableAllDay(){return!1}isSkippedDate(){return!1}getStartViewDate(n){return this._calculateStartViewDate(n)}getCompleteViewDataMap(n){var{groups:e,isGroupedByDate:i,isHorizontalGrouping:r,isVerticalGrouping:o,intervalCount:a,currentDate:s,viewType:l,startDayHour:u,endDayHour:f,hoursInterval:S}=n;this._setVisibilityDates(n),this.setHiddenInterval(u,f,S);var T=h8e(e),R=this.getCellCount({intervalCount:a,currentDate:s,viewType:l,startDayHour:u,endDayHour:f,hoursInterval:S}),L=this.getRowCount({intervalCount:a,currentDate:s,viewType:l,hoursInterval:S,startDayHour:u,endDayHour:f}),z=[],j=this._generateAllDayPanelData(n,L,R),Y=this._generateViewCellsData(n,L,R);return j&&z.push(j),z.push(...Y),r&&!i&&(z=this._transformViewDataMapForHorizontalGrouping(z,T)),o&&(z=this._transformViewDataMapForVerticalGrouping(z,T)),i&&(z=this._transformViewDataMapForGroupingByDate(z,T)),this._addKeysToCells(z)}_transformViewDataMapForHorizontalGrouping(n,e){var i=n.map(r=>r.slice());return e.slice(1).forEach((r,o)=>{var a=o+1;n.forEach((s,l)=>{var u=s.map(f=>mt({},f,{groups:r,groupIndex:a}));i[l].push(...u)})}),i}_transformViewDataMapForVerticalGrouping(n,e){var i=n.map(r=>r.slice());return e.slice(1).forEach((r,o)=>{var a=o+1,s=n.map(l=>l.map(f=>mt({},f,{groupIndex:a,groups:r})));i.push(...s)}),i}_transformViewDataMapForGroupingByDate(n,e){var i=e.slice(1),r=i.length;return n.map(a=>a.reduce((l,u)=>[...l,mt({},u,{isFirstGroupCell:!0,isLastGroupCell:0===r}),...i.map((S,T)=>mt({},u,{groups:S,groupIndex:T+1,isFirstGroupCell:!1,isLastGroupCell:T===r-1}))],[]))}_addKeysToCells(n){var e=n[0].length,{currentViewDataMap:i}=n.reduce((r,o,a)=>{var{allDayPanelsCount:s,currentViewDataMap:l}=r,f=(a-s)*e,S=o[0].allDay?s+1:s;return l[a].forEach((T,R)=>{T.key=f+R}),{allDayPanelsCount:S,currentViewDataMap:l}},{allDayPanelsCount:0,currentViewDataMap:n});return i}generateViewDataMap(n,e){var{rowCount:i,startCellIndex:r,startRowIndex:o,cellCount:a,isVerticalGrouping:s,isAllDayPanelVisible:l}=e,u=(L,z,j,Y)=>L.slice(j,void 0!==Y?j+Y:void 0).map((te,re)=>({cellData:te,position:{rowIndex:z,columnIndex:re}})),f=o,S=[];this._isStandaloneAllDayPanel(s,l)&&(f++,S=u(n[0],0,r,a));var T=PQ(i,n);return{allDayPanelMap:S,dateTableMap:n.slice(f,f+T).map((L,z)=>u(L,z,r,a))}}_isStandaloneAllDayPanel(n,e){return!n&&e}getViewDataFromMap(n,e,i){var{topVirtualRowHeight:r,bottomVirtualRowHeight:o,leftVirtualCellWidth:a,rightVirtualCellWidth:s,cellCount:l,rowCount:u,startRowIndex:f,startCellIndex:S,isProvideVirtualCellsWidth:T,isGroupedAllDayPanel:R,isVerticalGrouping:L,isAllDayPanelVisible:z}=i,{allDayPanelMap:j,dateTableMap:Y}=e,{groupedData:ie}=Y.reduce((Te,Re)=>{var{previousGroupIndex:He,groupedData:Ze}=Te,at=Re.map(ct=>{var{cellData:Nt}=ct;return Nt}),vt=at[0],Bt=vt.allDay,St=vt.groupIndex;return St!==He&&Ze.push({dateTable:[],isGroupedAllDayPanel:P8e(!!Bt,L),groupIndex:St,key:M8e(St,L)}),Bt?Ze[Ze.length-1].allDayPanel=at:Ze[Ze.length-1].dateTable.push({cells:at,key:at[0].key-S}),{groupedData:Ze,previousGroupIndex:St}},{previousGroupIndex:-1,groupedData:[]});this._isStandaloneAllDayPanel(L,z)&&(ie[0].allDayPanel=j.map(Te=>{var{cellData:Re}=Te;return Re}));var te=FQ(n),re=p3e(n),he=g3e(l,n),fe=PQ(u,n);return{groupedData:ie,topVirtualRowHeight:r,bottomVirtualRowHeight:o,leftVirtualCellWidth:T?a:void 0,rightVirtualCellWidth:T?s:void 0,isGroupedAllDayPanel:R,leftVirtualCellCount:S,rightVirtualCellCount:void 0===l?0:te-S-he,topVirtualRowCount:f,bottomVirtualRowCount:re-f-fe}}_generateViewCellsData(n,e,i){for(var r=[],o=0;o<e;o+=1)r.push(this._generateCellsRow(n,!1,o,e,i));return r}_generateAllDayPanelData(n,e,i){return n.isAllDayPanelVisible?this._generateCellsRow(n,!0,0,e,i):null}_generateCellsRow(n,e,i,r,o){for(var a=[],s=0;s<o;++s){var l=this.getCellData(i,s,n,e);l.index=i*o+s,l.isFirstGroupCell=this._isFirstGroupCell(i,s,n,r,o),l.isLastGroupCell=this._isLastGroupCell(i,s,n,r,o),a.push(l)}return a}getCellData(n,e,i,r){return r?this.prepareAllDayCellData(i,n,e):this.prepareCellData(i,n,e)}prepareCellData(n,e,i){var{groups:r,startDayHour:o,endDayHour:a,interval:s,hoursInterval:l}=n,u=h8e(r),f=this.getDateByCellIndices(n,e,i,this.getCellCountInDay(o,a,l)),T={startDate:f,endDate:this.calculateEndDate(f,s,a),allDay:this.tableAllDay,groupIndex:0};return u.length>0&&(T.groups=u[0]),T}prepareAllDayCellData(n,e,i){var r=this.prepareCellData(n,e,i),o=bt.trimTime(r.startDate);return mt({},r,{startDate:o,endDate:o,allDay:!0})}getDateByCellIndices(n,e,i,r){var o=n.startViewDate,{startDayHour:a,interval:s,firstDayOfWeek:l,intervalCount:u}=n,f=o.getHours()!==Math.floor(a);if(f){var S=s3e(o,a);o=new Date(S-bt.dateToMilliseconds("day"))}var T=this.getCellCount(n),R=this.getRowCount(n),L=this._calculateCellIndex(e,i,R,T),z=this.getMillisecondsOffset(L,s,r),j=this.isWorkView?this.getTimeOffsetByColumnIndex(i,this.getFirstDayOfWeek(l),T,u):0,Y=o.getTime(),ie=new Date(Y+z+j),te=f?0:bt.getTimezonesDifference(o,ie);return ie.setTime(ie.getTime()+te),ie}getMillisecondsOffset(n,e,i){return e*n+Math.floor(n/i)*this.hiddenInterval}getTimeOffsetByColumnIndex(n,e,i,r){var o=Math.max(0,e-1),s=Math.floor((n+o)/(i/r));return Q3e*s*2}calculateEndDate(n,e,i){var r=new Date(n);return r.setMilliseconds(r.getMilliseconds()+Math.round(e)),r}_calculateCellIndex(n,e,i,r){return((t,n,e)=>n*e+t)(n,e,i)}generateGroupedDataMap(n){var{allDayPanelMap:e,dateTableMap:i}=n,{previousGroupedDataMap:r}=i.reduce((a,s)=>{var{previousGroupedDataMap:l,previousRowIndex:u,previousGroupIndex:f}=a,{groupIndex:S}=s[0].cellData,T=S===f?u+1:0;return s.forEach(R=>{var{groupIndex:L}=R.cellData;l[L]||(l[L]=[]),l[L][T]||(l[L][T]=[]),l[L][T].push(R)}),{previousGroupedDataMap:l,previousRowIndex:T,previousGroupIndex:S}},{previousGroupedDataMap:[],previousRowIndex:-1,previousGroupIndex:-1}),o=[];return e?.forEach(a=>{var{groupIndex:s}=a.cellData;o[s]||(o[s]=[]),o[s].push(a)}),{allDayPanelGroupedMap:o,dateTableGroupedMap:r}}_isFirstGroupCell(n,e,i,r,o){var{groupOrientation:a,groups:s,isGroupedByDate:l}=i,u=c0(s);return l?e%u==0:a===I8e?e%o==0:n%r==0}_isLastGroupCell(n,e,i,r,o){var{groupOrientation:a,groups:s,isGroupedByDate:l}=i,u=c0(s);return l?(e+1)%u==0:a===I8e?(e+1)%o==0:(n+1)%r==0}markSelectedAndFocusedCells(n,e){var{selectedCells:i,focusedCell:r}=e;if(!i&&!r)return n;var{allDayPanelMap:o,dateTableMap:a}=n,s=a.map(u=>this._markSelectedAndFocusedCellsInRow(u,i,r));return{allDayPanelMap:this._markSelectedAndFocusedCellsInRow(o,i,r),dateTableMap:s}}_markSelectedAndFocusedCellsInRow(n,e,i){return n.map(r=>{var{index:o,groupIndex:a,allDay:s,startDate:l}=r.cellData,u=e.findIndex(S=>{var{index:T,groupIndex:R,allDay:L,startDate:z}=S;return a===R&&(o===T||void 0===T&&l.getTime()===z.getTime())&&!!s==!!L}),f=!!i&&o===i.cellData.index&&a===i.cellData.groupIndex&&s===i.cellData.allDay;return f||-1!==u?mt({},r,{cellData:mt({},r.cellData,{isSelected:u>-1,isFocused:f})}):r})}getInterval(n){return n*J3e}_getIntervalDuration(n){return bt.dateToMilliseconds("day")*n}_setVisibilityDates(){}getCellCountInDay(n,e,i){var r=AQ(n,e)/i;return Math.ceil(r)}getCellCount(n){var{intervalCount:e,viewType:i,startDayHour:r,endDayHour:o,hoursInterval:a}=n,s=this.getCellCountInDay(r,o,a),l=h3e(i)?s:1;return this.daysInInterval*e*l}getRowCount(n){var{viewType:e,startDayHour:i,endDayHour:r,hoursInterval:o}=n,a=this.getCellCountInDay(i,r,o);return h3e(e)?1:a}setHiddenInterval(n,e,i){this.hiddenInterval=Q3e-this.getVisibleDayDuration(n,e,i)}getVisibleDayDuration(n,e,i){return i*this.getCellCountInDay(n,e,i)*J3e}getFirstDayOfWeek(n){return n}}class mmn extends RM{_calculateStartViewDate(n){return((t,n,e,i)=>{var r=l3(e,t,i,e);return zv(r,n)})(n.currentDate,n.startDayHour,n.startDate,this._getIntervalDuration(n.intervalCount))}}var LM=(t,n,e,i)=>{if(!t)return new Date(n);for(var r=new Date(i),o=new Date(i),a=r.getTime()<=n.getTime()?1:-1,s=new Date(new Date(o.setMonth(o.getMonth()+a*e)));!o3e(n,r,s,a);)r=new Date(s),a>0&&r.setDate(1),s=new Date(new Date(s.setMonth(s.getMonth()+a*e)));return a>0?r:s},eVe=(t,n,e,i)=>t*i+n,tVe=(t,n)=>1===t.getDate()&&n>1,nVe=(t,n)=>tVe(t,n)?[Gn.getMonthNames("abbreviated")[t.getMonth()],Gn.format(t,"day")].join(" "):Gn.format(t,"dd"),vmn=bt.dateToMilliseconds("day");class bmn extends RM{get tableAllDay(){}getCellData(n,e,i,r){var o=super.getCellData(n,e,i,!1),a=o.startDate,{indicatorTime:s,timeZoneCalculator:l,intervalCount:u}=i;return o.today=this.isCurrentDate(a,s,l),o.otherMonth=this.isOtherMonth(a,this._minVisibleDate,this._maxVisibleDate),o.firstDayOfMonth=tVe(a,u),o.text=nVe(a,u),o}isCurrentDate(n,e,i){return bt.sameDate(n,u3e(e,i))}isOtherMonth(n,e,i){return!bt.dateInRange(n,e,i,"date")}_calculateCellIndex(n,e,i,r){return eVe(n,e,0,r)}calculateEndDate(n,e,i){return zv(n,i)}getInterval(){return vmn}_calculateStartViewDate(n){return((t,n,e,i,r)=>{var o=LM(e,t,i,bt.getFirstMonthDate(e)),a=bt.getFirstMonthDate(o),s=a3e(r),l=bt.getFirstWeekDate(a,s);return zv(l,n)})(n.currentDate,n.startDayHour,n.startDate,n.intervalCount,this.getFirstDayOfWeek(n.firstDayOfWeek))}_setVisibilityDates(n){var{intervalCount:e,startDate:i,currentDate:r}=n,o=bt.getFirstMonthDate(i),a=LM(i,r,e,o);this._minVisibleDate=new Date(a.setDate(1));var s=new Date(a.setMonth(a.getMonth()+e));this._maxVisibleDate=new Date(s.setDate(0))}getCellCount(){return 7}getRowCount(n){return 4*n.intervalCount+2}getCellCountInDay(){return 1}setHiddenInterval(){this.hiddenInterval=0}}var wmn=bt.dateToMilliseconds("day");class Smn extends RM{_calculateCellIndex(n,e,i,r){return eVe(n,e,0,r)}calculateEndDate(n,e,i){return zv(n,i)}getInterval(){return wmn}_calculateStartViewDate(n){return((t,n,e,i)=>{var r=bt.getFirstMonthDate(LM(e,t,i,bt.getFirstMonthDate(e)));return zv(r,n)})(n.currentDate,n.startDayHour,n.startDate,n.intervalCount)}getCellCount(n){for(var{intervalCount:e,currentDate:i}=n,r=0,o=1;o<=e;o++)r+=new Date(i.getFullYear(),i.getMonth()+o,0).getDate();return r}setHiddenInterval(){this.hiddenInterval=0}}class iVe extends RM{get daysInInterval(){return 7}_getIntervalDuration(n){return(t=>7*bt.dateToMilliseconds("day")*t)(n)}_calculateStartViewDate(n){return((t,n,e,i,r)=>{var o=a3e(r),a=l3(e,t,i,X3e(e,o)),s=bt.getFirstWeekDate(a,o);return zv(s,n)})(n.currentDate,n.startDayHour,n.startDate,this._getIntervalDuration(n.intervalCount),this.getFirstDayOfWeek(n.firstDayOfWeek))}}var rVe=t=>{var n=t.getDay();return 6===n||0===n},oVe=t=>2*Math.floor(t/7);class kmn extends iVe{get daysInInterval(){return 5}get isWorkView(){return!0}isSkippedDate(n){return rVe(n)}_calculateStartViewDate(n){return((t,n,e,i,r)=>{var o=l3(e,t,i,X3e(e,r)),a=bt.getFirstWeekDate(o,r);if(rVe(a)){var l=(8-a.getDay())%7;a.setDate(a.getDate()+l)}return zv(a,n)})(n.currentDate,n.startDayHour,n.startDate,this._getIntervalDuration(n.intervalCount),this.getFirstDayOfWeek(n.firstDayOfWeek))}getFirstDayOfWeek(n){return n||0}}var aVe=t=>{switch(t){case La.MONTH:return new bmn;case La.TIMELINE_MONTH:return new Smn;case La.DAY:case La.TIMELINE_DAY:return new mmn;case La.WEEK:case La.TIMELINE_WEEK:return new iVe;case La.WORK_WEEK:case La.TIMELINE_WORK_WEEK:return new kmn;default:return new RM}},Mmn=["groups","groupOrientation","groupByDate","isAllDayPanelVisible"];class Amn{constructor(n){this.viewDataGenerator=aVe(n),this.viewData={},this.completeViewDataMap=[],this.completeDateHeaderMap=[],this.viewDataMap={},this._groupedDataMapProvider=null}get groupedDataMap(){return this._groupedDataMapProvider.groupedDataMap}get hiddenInterval(){return this.viewDataGenerator.hiddenInterval}isSkippedDate(n){return this.viewDataGenerator.isSkippedDate(n)}update(n,e){this.viewDataGenerator=aVe(n.viewType);var i=this.viewDataGenerator,r=new smn(i),o=new gmn(i),a=this._transformRenderOptions(n);a.interval=this.viewDataGenerator.getInterval(a.hoursInterval),this._options=a,e&&(this.completeViewDataMap=i.getCompleteViewDataMap(a),this.completeDateHeaderMap=r.getCompleteDateHeaderMap(a,this.completeViewDataMap),a.isGenerateTimePanelData&&(this.completeTimePanelMap=o.getCompleteTimePanelMap(a,this.completeViewDataMap))),this.viewDataMap=i.generateViewDataMap(this.completeViewDataMap,a),this.updateViewData(a),this._groupedDataMapProvider=new Z3e(this.viewDataGenerator,this.viewDataMap,this.completeViewDataMap,{isVerticalGrouping:a.isVerticalGrouping,viewType:a.viewType}),this.dateHeaderData=r.generateDateHeaderData(this.completeDateHeaderMap,this.completeViewDataMap,a),a.isGenerateTimePanelData&&(this.timePanelData=o.generateTimePanelData(this.completeTimePanelMap,a))}createGroupedDataMapProvider(){this._groupedDataMapProvider=new Z3e(this.viewDataGenerator,this.viewDataMap,this.completeViewDataMap,{isVerticalGrouping:this._options.isVerticalGrouping,viewType:this._options.viewType})}updateViewData(n){var e=this._transformRenderOptions(n);this.viewDataMapWithSelection=this.viewDataGenerator.markSelectedAndFocusedCells(this.viewDataMap,e),this.viewData=this.viewDataGenerator.getViewDataFromMap(this.completeViewDataMap,this.viewDataMapWithSelection,e)}_transformRenderOptions(n){var{groups:e,groupOrientation:i,groupByDate:r,isAllDayPanelVisible:o}=n;return mt({},ki(n,Mmn),{startViewDate:this.viewDataGenerator._calculateStartViewDate(n),isVerticalGrouping:n3(e,i),isHorizontalGrouping:FM(e,i),isGroupedByDate:mhn(e,i,r),isGroupedAllDayPanel:c3e(e,i,o),groups:e,groupOrientation:i,isAllDayPanelVisible:o})}getGroupPanelData(n){var e=this._transformRenderOptions(n);if(e.groups.length>0){var i=this.getCellCount(e);return((t,n,e,i)=>{var r=1,o=t.map(a=>{for(var s=[],{data:l,items:u,name:f}=a,S=function(R){s.push(...u.map((L,z)=>{var{color:j,id:Y,text:ie}=L;return{id:Y,text:ie,color:j,key:"".concat(R,"_").concat(f,"_").concat(Y),resourceName:f,data:l?.[z]}}))},T=0;T<r;T+=1)S(T);return r*=u.length,s});return e&&(o=((t,n)=>[...new Array(n)].reduce((e,i,r)=>t.map((o,a)=>[...e[a]||[],...o.map((l,u)=>mt({},l,{key:"".concat(l.key,"_group_by_date_").concat(r),isFirstGroupCell:0===u,isLastGroupCell:u===o.length-1}))]),[]))(o,n)),{groupPanelItems:o,baseColSpan:i}})(e.groups,i,e.isGroupedByDate,e.isGroupedByDate?1:i)}}getGroupStartDate(n){return this._groupedDataMapProvider.getGroupStartDate(n)}getGroupEndDate(n){return this._groupedDataMapProvider.getGroupEndDate(n)}findGroupCellStartDate(n,e,i){return this._groupedDataMapProvider.findGroupCellStartDate(n,e,i,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}findAllDayGroupCellStartDate(n,e){return this._groupedDataMapProvider.findAllDayGroupCellStartDate(n,e)}findCellPositionInMap(n){return this._groupedDataMapProvider.findCellPositionInMap(n)}hasAllDayPanel(){var{viewData:n}=this.viewDataMap,{allDayPanel:e}=n.groupedData[0];return!n.isGroupedAllDayPanel&&e?.length>0}getCellsGroup(n){return this._groupedDataMapProvider.getCellsGroup(n)}getCompletedGroupsInfo(){return this._groupedDataMapProvider.getCompletedGroupsInfo()}getGroupIndices(){return this._groupedDataMapProvider.getGroupIndices()}getLastGroupCellPosition(n){return this._groupedDataMapProvider.getLastGroupCellPosition(n)}getRowCountInGroup(n){return this._groupedDataMapProvider.getRowCountInGroup(n)}getCellData(n,e,i,r){var o=i&&!this._options.isVerticalGrouping?this.viewDataMap.allDayPanelMap:this.viewDataMap.dateTableMap[n],a=r?o.length-1-e:e,{cellData:s}=o[a];return s}getCellsByGroupIndexAndAllDay(n,e){var i=this._getRowCountWithAllDayRows(),o=this._options.isVerticalGrouping?n*i:0,s=this._options.isAllDayPanelVisible&&!e?o+1:o;return this.completeViewDataMap.slice(s,(e?s:this._options.isVerticalGrouping?(n+1)*i-1:i)+1).map(u=>u.filter(f=>{var{groupIndex:S}=f;return n===S}))}getCellCountWithGroup(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,{dateTableGroupedMap:i}=this.groupedDataMap;return i.filter((r,o)=>o<=n).reduce((r,o)=>r+o[e].length,0)}hasGroupAllDayPanel(n){var e,i;return this._options.isVerticalGrouping?!(null===(i=this.groupedDataMap.dateTableGroupedMap[n])||void 0===i||!i[0][0].cellData.allDay):(null===(e=this.groupedDataMap.allDayPanelGroupedMap[n])||void 0===e?void 0:e.length)>0}isGroupIntersectDateInterval(n,e,i){var r=this.getGroupStartDate(n);return e<this.getGroupEndDate(n)&&i>r}findGlobalCellPosition(n){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{completeViewDataMap:r}=this,o=this._options.isAllDayPanelVisible,a=0;a<r.length;a+=1)for(var s=r[a],l=0;l<s.length;l+=1){var u=s[l],{startDate:f,endDate:S,groupIndex:T,allDay:R}=u;if(e===T&&i===!!R&&this._compareDatesAndAllDay(n,f,S,i))return{position:{columnIndex:l,rowIndex:o&&!this._options.isVerticalGrouping?a-1:a},cellData:u}}}_compareDatesAndAllDay(n,e,i,r){var o=n.getTime(),a=bt.trimTime(n).getTime(),s=e.getTime(),l=i.getTime();return!r&&o>=s&&o<l||r&&a===s}getSkippedDaysCount(n,e,i,r){for(var{dateTableGroupedMap:o}=this._groupedDataMapProvider.groupedDataMap,a=o[n],s=0,l=0;l<a.length;l+=1)for(var u=0;u<a[l].length;u+=1){var f=a[l][u].cellData;e.getTime()<f.endDate.getTime()&&i.getTime()>f.startDate.getTime()&&(s+=1)}var T=bt.trimTime(a[a.length-1][a[0].length-1].cellData.startDate),R=Math.floor((i.getTime()-T.getTime())/bt.dateToMilliseconds("day"));return r-s-(R>0?R:0)}getColumnsCount(){var{dateTableMap:n}=this.viewDataMap;return n?n[0].length:0}getViewEdgeIndices(n){return n?{firstColumnIndex:0,lastColumnIndex:this.viewDataMap.allDayPanelMap.length-1,firstRowIndex:0,lastRowIndex:0}:{firstColumnIndex:0,lastColumnIndex:this.viewDataMap.dateTableMap[0].length-1,firstRowIndex:0,lastRowIndex:this.viewDataMap.dateTableMap.length-1}}getGroupEdgeIndices(n,e){var i=this.groupedDataMap.dateTableGroupedMap[n],a=i[0][0].position.columnIndex,s=i[0][i[0].length-1].position.columnIndex;return e?{firstColumnIndex:a,lastColumnIndex:s,firstRowIndex:0,lastRowIndex:0}:{firstColumnIndex:a,lastColumnIndex:s,firstRowIndex:i[0][0].position.rowIndex,lastRowIndex:i[i.length-1][0].position.rowIndex}}isSameCell(n,e){var{startDate:i,groupIndex:r,allDay:o,index:a}=n,{startDate:s,groupIndex:l,allDay:u,index:f}=e;return i.getTime()===s.getTime()&&r===l&&o===u&&a===f}getLastViewDate(){var n=this.completeViewDataMap,e=n.length-1;return n[e][n[e].length-1].endDate}getStartViewDate(){return this._options.startViewDate}getIntervalDuration(n){return this.viewDataGenerator._getIntervalDuration(n)}getLastCellEndDate(){return new Date(this.getLastViewDate().getTime()-bt.dateToMilliseconds("minute"))}getLastViewDateByEndDayHour(n){var e=this.getLastCellEndDate(),i=bt.dateTimeFromDecimal(n),r=new Date(e.setHours(i.hours,i.minutes));return this._adjustEndDateByDaylightDiff(e,r)}_adjustEndDateByDaylightDiff(n,e){var i=qr.getDaylightOffsetInMs(n,e),r=new Date(e.getTime()-i);return new Date(r.getTime()-bt.dateToMilliseconds("minute"))}getCellCountInDay(n,e,i){return this.viewDataGenerator.getCellCountInDay(n,e,i)}getCellCount(n){return this.viewDataGenerator.getCellCount(n)}getRowCount(n){return this.viewDataGenerator.getRowCount(n)}getVisibleDayDuration(n,e,i){return this.viewDataGenerator.getVisibleDayDuration(n,e,i)}_getRowCountWithAllDayRows(){var n=this._options.isAllDayPanelVisible?1:0;return this.getRowCount(this._options)+n}getFirstDayOfWeek(n){return this.viewDataGenerator.getFirstDayOfWeek(n)}setViewOptions(n){this._options=this._transformRenderOptions(n)}getViewOptions(){return this._options}getViewPortGroupCount(){var{dateTableGroupedMap:n}=this.groupedDataMap;return n?.length||0}}class WQ extends bm{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=mt({},this._optionsByReference,{dataCellTemplate:!0})}}var Fmn=["children","className","colSpan","styles"],sVe={};let Rmn=(()=>{class t extends so{constructor(e){super(e),this.state={}}get restAttributes(){return ki(this.props,Fmn)}render(){return(t=>{var{props:{children:n,className:e,colSpan:i,styles:r}}=t;return er(1,"td",e,n,0,{style:yg(r),colSpan:i})})({props:mt({},this.props),restAttributes:this.restAttributes})}}return t.defaultProps=sVe,t})();var Lmn=["children","className","colSpan","styles"];let Nmn=(()=>{class t extends so{constructor(e){super(e),this.state={}}get restAttributes(){return ki(this.props,Lmn)}render(){return(t=>{var{props:{children:n,className:e,colSpan:i,styles:r}}=t;return er(1,"th",e,n,0,{style:yg(r),colSpan:i})})({props:mt({},this.props),restAttributes:this.restAttributes})}}return t.defaultProps=sVe,t})();var Vmn=["colSpan","isHeaderCell","width"],zmn={width:0,isHeaderCell:!1};let GQ=(()=>{class t extends so{constructor(e){super(e),this.state={}}get style(){var{width:e}=this.props,{style:i}=this.restAttributes;return A8e(e,i)}get restAttributes(){return ki(this.props,Vmn)}render(){return(t=>{var{props:{colSpan:n,isHeaderCell:e},style:i}=t;return Wn(2,e?Nmn:Rmn,{className:"dx-scheduler-virtual-cell",styles:i,colSpan:n})})({props:mt({},this.props),style:this.style,restAttributes:this.restAttributes})}}return t.defaultProps=zmn,t})();var Umn=["children","className","isHeaderRow","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","styles"],lVe={className:"",leftVirtualCellWidth:0,rightVirtualCellWidth:0,isHeaderRow:!1};let Hb=(()=>{class t extends so{constructor(e){super(e),this.state={}}get hasLeftVirtualCell(){var{leftVirtualCellCount:e}=this.props;return!!e}get hasRightVirtualCell(){var{rightVirtualCellCount:e}=this.props;return!!e}get restAttributes(){return ki(this.props,Umn)}render(){return(t=>{var{hasLeftVirtualCell:n,hasRightVirtualCell:e,props:{children:i,className:r,isHeaderRow:o,leftVirtualCellCount:a,leftVirtualCellWidth:s,rightVirtualCellCount:l,rightVirtualCellWidth:u,styles:f}}=t;return er(1,"tr",r,[n&&Wn(2,GQ,{width:s,colSpan:a,isHeaderCell:o}),i,e&&Wn(2,GQ,{width:u,colSpan:l,isHeaderCell:o})],0,{style:yg(f)})})({props:mt({},this.props),hasLeftVirtualCell:this.hasLeftVirtualCell,hasRightVirtualCell:this.hasRightVirtualCell,restAttributes:this.restAttributes})}}return t.defaultProps=lVe,t})();var Gmn=["cellsCount","children","className","height","isHeaderRow","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","styles"],Kmn=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(lVe),Object.getOwnPropertyDescriptors({leftVirtualCellWidth:0,rightVirtualCellWidth:0,cellsCount:1})));let uVe=(()=>{class t extends so{constructor(e){super(e),this.state={},this.__getterCache={}}get style(){var{height:e}=this.props,{style:i}=this.restAttributes;return CQ(e,i)}get classes(){var{className:e}=this.props;return"dx-scheduler-virtual-row ".concat(e)}get virtualCells(){return void 0!==this.__getterCache.virtualCells?this.__getterCache.virtualCells:this.__getterCache.virtualCells=(()=>{var{cellsCount:e}=this.props;return[...Array(e)]})()}get restAttributes(){return ki(this.props,Gmn)}componentWillUpdate(e,i,r){this.props.cellsCount!==e.cellsCount&&(this.__getterCache.virtualCells=void 0)}render(){return(t=>{var{classes:n,props:{leftVirtualCellCount:e,leftVirtualCellWidth:i,rightVirtualCellCount:r,rightVirtualCellWidth:o},style:a,virtualCells:s}=t;return Wn(2,Hb,{styles:a,className:n,leftVirtualCellWidth:i,rightVirtualCellWidth:o,leftVirtualCellCount:e,rightVirtualCellCount:r,children:s.map((l,u)=>Wn(2,GQ,null,u.toString()))})})({props:mt({},this.props),style:this.style,classes:this.classes,virtualCells:this.virtualCells,restAttributes:this.restAttributes})}}return t.defaultProps=Kmn,t})();var $mn=["bottomVirtualRowHeight","children","className","height","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","tableRef","topVirtualRowHeight","virtualCellsCount","width"],Ymn={className:"",topVirtualRowHeight:0,bottomVirtualRowHeight:0,leftVirtualCellWidth:0,rightVirtualCellWidth:0,virtualCellsCount:0};let jQ=(()=>{class t extends so{constructor(e){super(e),this.state={},this.elementRef={current:null}}get style(){var{height:e,width:i}=this.props,{style:r}=this.restAttributes,o=CQ(e,r);return A8e(i,o)}get hasTopVirtualRow(){var{topVirtualRowHeight:e}=this.props;return!!e}get hasBottomVirtualRow(){var{bottomVirtualRowHeight:e}=this.props;return!!e}get restAttributes(){return ki(this.props,$mn)}render(){return(t=>{var{hasBottomVirtualRow:n,hasTopVirtualRow:e,props:{bottomVirtualRowHeight:i,children:r,className:o,leftVirtualCellCount:a,leftVirtualCellWidth:s,rightVirtualCellCount:l,rightVirtualCellWidth:u,tableRef:f,topVirtualRowHeight:S,virtualCellsCount:T},style:R}=t;return er(1,"table",o,er(1,"tbody",null,[e&&Wn(2,uVe,{height:S,cellsCount:T,leftVirtualCellWidth:s,rightVirtualCellWidth:u,leftVirtualCellCount:a,rightVirtualCellCount:l}),r,n&&Wn(2,uVe,{height:i,cellsCount:T,leftVirtualCellWidth:s,rightVirtualCellWidth:u,leftVirtualCellCount:a,rightVirtualCellCount:l})],0),2,{style:yg(R)},null,f)})({props:mt({},this.props),elementRef:this.elementRef,style:this.style,hasTopVirtualRow:this.hasTopVirtualRow,hasBottomVirtualRow:this.hasBottomVirtualRow,restAttributes:this.restAttributes})}}return t.defaultProps=Ymn,t})();var e0n=["allDay","ariaLabel","children","className","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text"],y3={className:"",isFirstGroupCell:!1,isLastGroupCell:!1,startDate:Object.freeze(new Date),endDate:Object.freeze(new Date),allDay:!1,text:"",index:0,contentTemplateProps:Object.freeze({data:{},index:0})};let KQ=(()=>{class t extends so{constructor(e){super(e),this.state={}}get classes(){var{className:e,isFirstGroupCell:i,isLastGroupCell:r}=this.props;return F8e(i,r,e)}get restAttributes(){return ki(this.props,e0n)}render(){return(t=>er(1,"td",t.classes,t.props.children,0,{"aria-label":t.props.ariaLabel}))({props:mt({},this.props),classes:this.classes,restAttributes:this.restAttributes})}}return t.defaultProps=y3,t})();var n0n=["allDay","ariaLabel","children","className","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"],$Q=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(y3),Object.getOwnPropertyDescriptors({otherMonth:!1,today:!1,firstDayOfMonth:!1,isSelected:!1,isFocused:!1}))),o0n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let C3=(()=>{class t extends so{constructor(e){super(e),this.state={},this.__getterCache={}}get classes(){var{allDay:e,className:i,isFocused:r,isSelected:o}=this.props;return fs({"dx-scheduler-cell-sizes-horizontal":!0,"dx-scheduler-cell-sizes-vertical":!e,"dx-scheduler-date-table-cell":!e,"dx-state-focused":o,"dx-scheduler-focused-cell":r,[i]:!0})}get dataCellTemplateProps(){return void 0!==this.__getterCache.dataCellTemplateProps?this.__getterCache.dataCellTemplateProps:this.__getterCache.dataCellTemplateProps=(()=>{var{allDay:e,contentTemplateProps:i,endDate:r,groupIndex:o,groups:a,index:s,startDate:l}=this.props;return{data:mt({startDate:l,endDate:r,groups:a,groupIndex:a?o:void 0,text:"",allDay:!!e||void 0},i.data),index:s}})()}get ariaLabel(){return this.props.isSelected?"Add appointment":void 0}get restAttributes(){return ki(this.props,n0n)}componentWillUpdate(e,i,r){(this.props.allDay!==e.allDay||this.props.contentTemplateProps!==e.contentTemplateProps||this.props.endDate!==e.endDate||this.props.groupIndex!==e.groupIndex||this.props.groups!==e.groups||this.props.index!==e.index||this.props.startDate!==e.startDate)&&(this.__getterCache.dataCellTemplateProps=void 0)}render(){var e=this.props;return(t=>{var{ariaLabel:n,classes:e,dataCellTemplateProps:i,props:{children:r,dataCellTemplate:o,isFirstGroupCell:a,isLastGroupCell:s}}=t;return Wn(2,KQ,{isFirstGroupCell:a,isLastGroupCell:s,className:e,ariaLabel:n,children:[!o&&r,!!o&&o({index:i.index,data:i.data})]})})({props:mt({},e,{dataCellTemplate:o0n(e.dataCellTemplate)}),classes:this.classes,dataCellTemplateProps:this.dataCellTemplateProps,ariaLabel:this.ariaLabel,restAttributes:this.restAttributes})}}return t.defaultProps=$Q,t})();var a0n=["allDay","ariaLabel","children","className","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"],l0n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let u0n=(()=>{class t extends so{constructor(e){super(e),this.state={}}get restAttributes(){return ki(this.props,a0n)}render(){var e=this.props;return(t=>{var{props:{className:n,dataCellTemplate:e,endDate:i,groupIndex:r,groups:o,index:a,isFirstGroupCell:s,isFocused:l,isLastGroupCell:u,isSelected:f,startDate:S}}=t;return Wn(2,C3,{className:"".concat("dx-scheduler-all-day-table-cell"," ").concat(n),startDate:S,endDate:i,groups:o,groupIndex:r,allDay:!0,isFirstGroupCell:s,isLastGroupCell:u,index:a,dataCellTemplate:e,isSelected:f,isFocused:l})})({props:mt({},e,{dataCellTemplate:l0n(e.dataCellTemplate)}),restAttributes:this.restAttributes})}}return t.defaultProps=$Q,t})();var d0n=["className","dataCellTemplate","isVerticalGroupOrientation","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","viewData"],h0n={viewData:Object.freeze([]),isVerticalGroupOrientation:!1,className:"",leftVirtualCellWidth:0,rightVirtualCellWidth:0},p0n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let dVe=(()=>{class t extends so{constructor(e){super(e),this.state={}}get classes(){var{className:e}=this.props;return fs({"dx-scheduler-all-day-table-row":!0,[e]:!!e})}get restAttributes(){return ki(this.props,d0n)}render(){var e=this.props;return(t=>Wn(2,Hb,{leftVirtualCellWidth:t.props.leftVirtualCellWidth,rightVirtualCellWidth:t.props.rightVirtualCellWidth,leftVirtualCellCount:t.props.leftVirtualCellCount,rightVirtualCellCount:t.props.rightVirtualCellCount,className:t.classes,children:t.props.viewData.map(n=>{var{endDate:e,groupIndex:i,groups:r,index:o,isFirstGroupCell:a,isFocused:s,isLastGroupCell:l,isSelected:u,key:f,startDate:S}=n;return Wn(2,u0n,{isFirstGroupCell:!t.props.isVerticalGroupOrientation&&a,isLastGroupCell:!t.props.isVerticalGroupOrientation&&l,startDate:S,endDate:e,groups:r,groupIndex:i,index:o,dataCellTemplate:t.props.dataCellTemplate,isSelected:u,isFocused:s},f)})}))({props:mt({},e,{dataCellTemplate:p0n(e.dataCellTemplate)}),classes:this.classes,restAttributes:this.restAttributes})}}return t.defaultProps=h0n,t})();var qQ={viewData:Object.freeze({groupedData:[],leftVirtualCellCount:0,rightVirtualCellCount:0,topVirtualRowCount:0,bottomVirtualRowCount:0}),leftVirtualCellWidth:0,rightVirtualCellWidth:0,topVirtualRowHeight:0,bottomVirtualRowHeight:0,addDateTableClass:!0,addVerticalSizesClassToRows:!0},g0n=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","viewData","width"],m0n=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(qQ),Object.getOwnPropertyDescriptors({cellTemplate:C3}))),cVe=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let _0n=(()=>{class t extends so{constructor(e){super(e),this.state={}}get rowClasses(){var{addVerticalSizesClassToRows:e}=this.props;return fs({"dx-scheduler-date-table-row":!0,"dx-scheduler-cell-sizes-vertical":e})}get restAttributes(){return ki(this.props,g0n)}render(){var e=this.props;return(t=>{var{props:{cellTemplate:n,dataCellTemplate:e,viewData:i},rowClasses:r}=t;return Pl(i.groupedData.map(o=>{var{allDayPanel:a,dateTable:s,isGroupedAllDayPanel:l,key:u}=o;return Pl([l&&Wn(2,dVe,{viewData:a,dataCellTemplate:e,isVerticalGroupOrientation:!0,leftVirtualCellWidth:i.leftVirtualCellWidth,rightVirtualCellWidth:i.rightVirtualCellWidth,leftVirtualCellCount:i.leftVirtualCellCount,rightVirtualCellCount:i.rightVirtualCellCount}),s.map(f=>{var{cells:S,key:T}=f;return Wn(2,Hb,{className:r,leftVirtualCellWidth:i.leftVirtualCellWidth,rightVirtualCellWidth:i.rightVirtualCellWidth,leftVirtualCellCount:i.leftVirtualCellCount,rightVirtualCellCount:i.rightVirtualCellCount,children:S.map(R=>{var{endDate:L,firstDayOfMonth:z,groupIndex:j,groups:Y,index:ie,isFirstGroupCell:te,isFocused:re,isLastGroupCell:he,isSelected:fe,key:Te,otherMonth:Re,startDate:He,text:Ze,today:at}=R;return n({isFirstGroupCell:te,isLastGroupCell:he,startDate:He,endDate:L,groups:Y,groupIndex:j,index:ie,dataCellTemplate:e,key:Te,text:Ze,today:at,otherMonth:Re,firstDayOfMonth:z,isSelected:fe,isFocused:re})})},T)})],0,u)}),0)})({props:mt({},e,{cellTemplate:cVe(e.cellTemplate),dataCellTemplate:cVe(e.dataCellTemplate)}),rowClasses:this.rowClasses,restAttributes:this.restAttributes})}}return t.defaultProps=m0n,t})();var v0n=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"],hVe=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(qQ),Object.getOwnPropertyDescriptors({cellTemplate:C3}))),pVe=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let gVe=(()=>{class t extends Kd{constructor(e){super(e),this.state={}}createEffects(){return[$d()]}get classes(){var{addDateTableClass:e}=this.props;return e?"dx-scheduler-date-table":void 0}get topVirtualRowHeight(){var e;return null!==(e=this.props.viewData.topVirtualRowHeight)&&void 0!==e?e:0}get bottomVirtualRowHeight(){var e;return null!==(e=this.props.viewData.bottomVirtualRowHeight)&&void 0!==e?e:0}get leftVirtualCellWidth(){var e;return null!==(e=this.props.viewData.leftVirtualCellWidth)&&void 0!==e?e:0}get rightVirtualCellWidth(){var e;return null!==(e=this.props.viewData.rightVirtualCellWidth)&&void 0!==e?e:0}get virtualCellsCount(){return this.props.viewData.groupedData[0].dateTable[0].cells.length}get restAttributes(){return ki(this.props,v0n)}render(){var e=this.props;return(t=>{var{bottomVirtualRowHeight:n,classes:e,leftVirtualCellWidth:i,props:{addVerticalSizesClassToRows:r,cellTemplate:o,dataCellTemplate:a,groupOrientation:s,tableRef:l,viewData:u,width:f},restAttributes:S,rightVirtualCellWidth:T,topVirtualRowHeight:R,virtualCellsCount:L}=t;return Nr(Wn(2,jQ,mt({},S,{tableRef:l,topVirtualRowHeight:R,bottomVirtualRowHeight:n,leftVirtualCellWidth:i,rightVirtualCellWidth:T,leftVirtualCellCount:u.leftVirtualCellCount,rightVirtualCellCount:u.rightVirtualCellCount,virtualCellsCount:L,className:e,width:f,children:Wn(2,_0n,{cellTemplate:o,viewData:u,dataCellTemplate:a,leftVirtualCellWidth:i,rightVirtualCellWidth:T,groupOrientation:s,addVerticalSizesClassToRows:r})})))})({props:mt({},e,{cellTemplate:pVe(e.cellTemplate),dataCellTemplate:pVe(e.dataCellTemplate)}),classes:this.classes,topVirtualRowHeight:this.topVirtualRowHeight,bottomVirtualRowHeight:this.bottomVirtualRowHeight,leftVirtualCellWidth:this.leftVirtualCellWidth,rightVirtualCellWidth:this.rightVirtualCellWidth,virtualCellsCount:this.virtualCellsCount,restAttributes:this.restAttributes})}}return t.defaultProps=hVe,t})();class fVe extends WQ{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["cellTemplate","dataCellTemplate"],props:["cellTemplate","viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}get _viewComponent(){return gVe}}On("dxDateTableLayoutBase",fVe);var C0n=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"],x0n=qQ,w0n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let S0n=(()=>{class t extends Kd{constructor(e){super(e),this.state={},this.__getterCache={}}createEffects(){return[$d()]}get allDayPanelData(){return void 0!==this.__getterCache.allDayPanelData?this.__getterCache.allDayPanelData:this.__getterCache.allDayPanelData=(()=>this.props.viewData.groupedData[0].allDayPanel)()}get emptyTableHeight(){return this.allDayPanelData?void 0:25}get restAttributes(){return ki(this.props,C0n)}componentWillUpdate(e,i,r){super.componentWillUpdate(),this.props.viewData!==e.viewData&&(this.__getterCache.allDayPanelData=void 0)}render(){var e=this.props;return(t=>{var{allDayPanelData:n,emptyTableHeight:e,props:{dataCellTemplate:i,tableRef:r,viewData:o,width:a}}=t;return Wn(2,jQ,{className:"dx-scheduler-all-day-table",height:e,width:a,tableRef:r,children:Wn(2,dVe,{viewData:n,leftVirtualCellWidth:o.leftVirtualCellWidth,rightVirtualCellWidth:o.rightVirtualCellWidth,leftVirtualCellCount:o.leftVirtualCellCount,rightVirtualCellCount:o.rightVirtualCellCount,dataCellTemplate:i})})})({props:mt({},e,{dataCellTemplate:w0n(e.dataCellTemplate)}),allDayPanelData:this.allDayPanelData,emptyTableHeight:this.emptyTableHeight,restAttributes:this.restAttributes})}}return t.defaultProps=x0n,t})();class mVe extends WQ{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["dataCellTemplate"],props:["viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}get _viewComponent(){return S0n}}On("dxAllDayTable",mVe);var O0n={};let _Ve=(()=>{class t extends Kd{constructor(e){super(e),this.state={}}createEffects(){return[$d()]}get text(){return ye.format("dxScheduler-allDay")}get restAttributes(){var e=this.props,i=mt({},(function D0n(t){if(null==t)throw new TypeError("Cannot destructure "+t)}(e),e));return i}render(){return(t=>er(1,"div","dx-scheduler-all-day-title",t.text,0))({props:mt({},this.props),text:this.text,restAttributes:this.restAttributes})}}return t.defaultProps=O0n,t})();class vVe extends bm{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:[],props:[]}}get _viewComponent(){return _Ve}}On("dxAllDayPanelTitle",vVe);class T0n extends bm{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=mt({},this._optionsByReference,{timeCellTemplate:!0})}}var I0n=["allDay","ariaLabel","children","className","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text","timeCellTemplate"],M0n=y3,A0n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let F0n=(()=>{class t extends so{constructor(e){super(e),this.state={},this.__getterCache={}}get timeCellTemplateProps(){return void 0!==this.__getterCache.timeCellTemplateProps?this.__getterCache.timeCellTemplateProps:this.__getterCache.timeCellTemplateProps=(()=>{var{groupIndex:e,groups:i,index:r,startDate:o,text:a}=this.props;return{data:{date:o,groups:i,groupIndex:e,text:a},index:r}})()}get restAttributes(){return ki(this.props,I0n)}componentWillUpdate(e,i,r){(this.props.groupIndex!==e.groupIndex||this.props.groups!==e.groups||this.props.index!==e.index||this.props.startDate!==e.startDate||this.props.text!==e.text)&&(this.__getterCache.timeCellTemplateProps=void 0)}render(){var e=this.props;return(t=>{var{props:{className:n,isFirstGroupCell:e,isLastGroupCell:i,text:r,timeCellTemplate:o},timeCellTemplateProps:a}=t;return Wn(2,KQ,{isFirstGroupCell:e,isLastGroupCell:i,className:"dx-scheduler-time-panel-cell dx-scheduler-cell-sizes-vertical ".concat(n),children:[!o&&er(1,"div",null,r,0),!!o&&o({index:a.index,data:a.data})]})})({props:mt({},e,{timeCellTemplate:A0n(e.timeCellTemplate)}),timeCellTemplateProps:this.timeCellTemplateProps,restAttributes:this.restAttributes})}}return t.defaultProps=M0n,t})();var P0n=["groupOrientation","tableRef","timeCellTemplate","timePanelData"],L0n={timePanelData:Object.freeze({groupedData:[],leftVirtualCellCount:0,rightVirtualCellCount:0,topVirtualRowCount:0,bottomVirtualRowCount:0})},B0n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let N0n=(()=>{class t extends Kd{constructor(e){super(e),this.state={}}createEffects(){return[$d()]}get topVirtualRowHeight(){var e;return null!==(e=this.props.timePanelData.topVirtualRowHeight)&&void 0!==e?e:0}get bottomVirtualRowHeight(){var e;return null!==(e=this.props.timePanelData.bottomVirtualRowHeight)&&void 0!==e?e:0}get restAttributes(){return ki(this.props,P0n)}render(){var e=this.props;return(t=>{var{bottomVirtualRowHeight:n,props:{tableRef:e,timeCellTemplate:i,timePanelData:r},restAttributes:o,topVirtualRowHeight:a}=t;return Nr(Wn(2,jQ,mt({},o,{topVirtualRowHeight:a,bottomVirtualRowHeight:n,virtualCellsCount:1,className:"dx-scheduler-time-panel",tableRef:e,children:r.groupedData.map(s=>{var{dateTable:l,groupIndex:u,isGroupedAllDayPanel:f,key:S}=s;return Pl([f&&Wn(2,Hb,{children:Wn(2,KQ,{className:"dx-scheduler-time-panel-title-cell",children:Wn(2,_Ve)})}),l.map(T=>{var{groups:R,index:L,isFirstGroupCell:z,isLastGroupCell:j,key:Y,startDate:ie,text:te}=T;return Wn(2,Hb,{className:"dx-scheduler-time-panel-row",children:Wn(2,F0n,{startDate:ie,text:te,groups:R,groupIndex:u,isFirstGroupCell:z,isLastGroupCell:j,index:L,timeCellTemplate:i})},Y)})],0,S)})})))})({props:mt({},e,{timeCellTemplate:B0n(e.timeCellTemplate)}),topVirtualRowHeight:this.topVirtualRowHeight,bottomVirtualRowHeight:this.bottomVirtualRowHeight,restAttributes:this.restAttributes})}}return t.defaultProps=L0n,t})();class yVe extends T0n{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["timeCellTemplate"],props:["groupOrientation","timePanelData","timeCellTemplate"]}}get _viewComponent(){return N0n}}On("dxTimePanelTableLayout",yVe);class V0n extends bm{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=mt({},this._optionsByReference,{resourceCellTemplate:!0})}}var CVe={groupPanelData:Object.freeze({groupPanelItems:[],baseColSpan:1}),groupByDate:!1},bVe={id:0,text:"",data:Object.freeze({id:0}),className:""},H0n=["cellTemplate","className","color","data","id","index","text"],U0n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let W0n=(()=>{class t extends so{constructor(e){super(e),this.state={}}get restAttributes(){return ki(this.props,H0n)}render(){var e=this.props;return(t=>{var n=t.props.cellTemplate;return er(1,"div","dx-scheduler-group-header ".concat(t.props.className),[!!t.props.cellTemplate&&n({data:{data:t.props.data,id:t.props.id,color:t.props.color,text:t.props.text},index:t.props.index}),!t.props.cellTemplate&&er(1,"div","dx-scheduler-group-header-content",t.props.text,0)],0)})({props:mt({},e,{cellTemplate:U0n(e.cellTemplate)}),restAttributes:this.restAttributes})}}return t.defaultProps=bVe,t})();var xVe={groupItems:Object.freeze([]),className:""},G0n=["cellTemplate","className","groupItems"],K0n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let $0n=(()=>{class t extends so{constructor(e){super(e),this.state={}}get restAttributes(){return ki(this.props,G0n)}render(){var e=this.props;return(t=>er(1,"div","dx-scheduler-group-row ".concat(t.props.className),t.props.groupItems.map((n,e)=>{var{color:i,data:r,id:o,key:a,text:s}=n;return Wn(2,W0n,{text:s,id:o,data:r,index:e,color:i,cellTemplate:t.props.cellTemplate},a)}),0))({props:mt({},e,{cellTemplate:K0n(e.cellTemplate)}),restAttributes:this.restAttributes})}}return t.defaultProps=xVe,t})();var wVe=CVe,q0n=["className","elementRef","groupByDate","groupPanelData","height","resourceCellTemplate","styles"],Z0n=wVe,X0n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let J0n=(()=>{class t extends so{constructor(e){super(e),this.state={}}get style(){var{height:e,styles:i}=this.props;return CQ(e,i)}get restAttributes(){return ki(this.props,q0n)}render(){var e=this.props;return(t=>{var{props:{className:n,elementRef:e,groupPanelData:i,resourceCellTemplate:r},style:o}=t;return er(1,"div",n,er(1,"div","dx-scheduler-group-flex-container",i.groupPanelItems.map(a=>Wn(2,$0n,{groupItems:a,cellTemplate:r},a[0].key)),0),2,{style:yg(o)},null,e)})({props:mt({},e,{resourceCellTemplate:X0n(e.resourceCellTemplate)}),style:this.style,restAttributes:this.restAttributes})}}return t.defaultProps=Z0n,t})();var Q0n=["cellTemplate","className","colSpan","color","data","id","index","isFirstGroupCell","isLastGroupCell","text"],t_n=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(bVe),Object.getOwnPropertyDescriptors({isFirstGroupCell:!1,isLastGroupCell:!1,colSpan:1}))),n_n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let i_n=(()=>{class t extends so{constructor(e){super(e),this.state={}}get classes(){var{className:e,isFirstGroupCell:i,isLastGroupCell:r}=this.props;return fs({"dx-scheduler-group-header":!0,"dx-scheduler-first-group-cell":i,"dx-scheduler-last-group-cell":r,[e]:!!e})}get restAttributes(){return ki(this.props,Q0n)}render(){var e=this.props;return(t=>{var{classes:n,props:{cellTemplate:e,colSpan:i,color:r,data:o,id:a,index:s,text:l}}=t;return er(1,"th",n,er(1,"div","dx-scheduler-group-header-content",[!!e&&e({data:{data:o,id:a,color:r,text:l},index:s}),!e&&er(1,"div",null,l,0)],0),2,{colSpan:i})})({props:mt({},e,{cellTemplate:n_n(e.cellTemplate)}),classes:this.classes,restAttributes:this.restAttributes})}}return t.defaultProps=t_n,t})();var r_n=["cellTemplate","className","groupItems"],a_n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let s_n=(()=>{class t extends so{constructor(e){super(e),this.state={}}get restAttributes(){return ki(this.props,r_n)}render(){var e=this.props;return(t=>{var{props:{cellTemplate:n,className:e,groupItems:i}}=t;return er(1,"tr","dx-scheduler-group-row ".concat(e),i.map((r,o)=>{var{colSpan:a,color:s,data:l,id:u,isFirstGroupCell:f,isLastGroupCell:S,key:T,text:R}=r;return Wn(2,i_n,{text:R,id:u,data:l,index:o,color:s,colSpan:a,isFirstGroupCell:!!f,isLastGroupCell:!!S,cellTemplate:n},T)}),0)})({props:mt({},e,{cellTemplate:a_n(e.cellTemplate)}),restAttributes:this.restAttributes})}}return t.defaultProps=xVe,t})();var l_n=["className","elementRef","groupByDate","groupPanelData","height","resourceCellTemplate","styles"],d_n=wVe,c_n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let h_n=(()=>{class t extends so{constructor(e){super(e),this.state={},this.__getterCache={}}get groupPanelItems(){return void 0!==this.__getterCache.groupPanelItems?this.__getterCache.groupPanelItems:this.__getterCache.groupPanelItems=(()=>{var{groupPanelData:e}=this.props,{baseColSpan:i,groupPanelItems:r}=e,o=r.reduceRight((a,s,l)=>{var u=a,f=s.length;return u[l]=(l===r.length-1?f:r[l+1].length)/f*(l===r.length-1?i:a[l+1]),u},[...new Array(r.length)]);return r.map((a,s)=>{var l=o[s];return a.map(u=>mt({},u,{colSpan:l}))})})()}get restAttributes(){return ki(this.props,l_n)}componentWillUpdate(e,i,r){this.props.groupPanelData!==e.groupPanelData&&(this.__getterCache.groupPanelItems=void 0)}render(){var e=this.props;return(t=>{var{groupPanelItems:n,props:{resourceCellTemplate:e}}=t;return Pl(n.map(i=>Wn(2,s_n,{groupItems:i,cellTemplate:e},i[0].key)),0)})({props:mt({},e,{resourceCellTemplate:c_n(e.resourceCellTemplate)}),groupPanelItems:this.groupPanelItems,restAttributes:this.restAttributes})}}return t.defaultProps=d_n,t})();var p_n=["className","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","resourceCellTemplate"],SVe=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(CVe),Object.getOwnPropertyDescriptors({groups:Object.freeze([]),groupOrientation:"vertical"}))),f_n=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let YQ=(()=>{class t extends Kd{constructor(e){super(e),this.state={}}createEffects(){return[$d()]}get isVerticalLayout(){var{groupOrientation:e,groups:i}=this.props;return n3(i,e)}get restAttributes(){return ki(this.props,p_n)}render(){var e=this.props;return(t=>{var{isVerticalLayout:n,props:{className:e,elementRef:i,groupPanelData:r,height:o,resourceCellTemplate:a},restAttributes:s}=t;return Wn(2,n?J0n:h_n,{height:o,resourceCellTemplate:a,className:e,groupPanelData:r,elementRef:i,styles:s.style})})({props:mt({},e,{resourceCellTemplate:f_n(e.resourceCellTemplate)}),isVerticalLayout:this.isVerticalLayout,restAttributes:this.restAttributes})}}return t.defaultProps=SVe,t})();class DVe extends V0n{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["resourceCellTemplate"],props:["groups","groupOrientation","groupPanelData","groupByDate","height","className","resourceCellTemplate"]}}get _viewComponent(){return YQ}}On("dxGroupPanel",DVe);class EVe extends bm{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=mt({},this._optionsByReference,{dateHeaderData:!0,resourceCellTemplate:!0,dateCellTemplate:!0,timeCellTemplate:!0})}}var m_n=["splitText","text"],v_n={text:"",splitText:!1};let y_n=(()=>{class t extends so{constructor(e){super(e),this.state={},this.__getterCache={}}get textParts(){return void 0!==this.__getterCache.textParts?this.__getterCache.textParts:this.__getterCache.textParts=(()=>{var{text:e}=this.props;return e?e.split(" "):[""]})()}get restAttributes(){return ki(this.props,m_n)}componentWillUpdate(e,i,r){this.props.text!==e.text&&(this.__getterCache.textParts=void 0)}render(){return(t=>{var{props:{splitText:n,text:e},textParts:i}=t;return Pl(n?i.map(r=>er(1,"span","dx-scheduler-header-panel-cell-date",r,0)):e,0)})({props:mt({},this.props),textParts:this.textParts,restAttributes:this.restAttributes})}}return t.defaultProps=v_n,t})();var C_n=["allDay","ariaLabel","children","className","colSpan","contentTemplateProps","dateCellTemplate","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","isTimeCellTemplate","isWeekDayCell","splitText","startDate","text","timeCellTemplate","today"],x_n=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(y3),Object.getOwnPropertyDescriptors({today:!1,colSpan:1,isWeekDayCell:!1,splitText:!1,isTimeCellTemplate:!1}))),OVe=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let TVe=(()=>{class t extends so{constructor(e){super(e),this.state={}}get classes(){var{className:e,isFirstGroupCell:i,isLastGroupCell:r,isWeekDayCell:o,today:a}=this.props,s=fs({"dx-scheduler-header-panel-cell":!0,"dx-scheduler-cell-sizes-horizontal":!0,"dx-scheduler-header-panel-current-time-cell":a,"dx-scheduler-header-panel-week-cell":o,[e]:!!e});return F8e(i,r,s)}get useTemplate(){var{dateCellTemplate:e,isTimeCellTemplate:i,timeCellTemplate:r}=this.props;return!i&&!!e||i&&!!r}get restAttributes(){return ki(this.props,C_n)}render(){var e=this.props;return(t=>{var{classes:n,props:{colSpan:e,dateCellTemplate:i,groupIndex:r,groups:o,index:a,isTimeCellTemplate:s,splitText:l,startDate:u,text:f,timeCellTemplate:S},useTemplate:T}=t;return er(1,"th",n,T?Pl([s&&S&&S({data:{date:u,text:f,groups:o,groupIndex:r},index:a}),!s&&i&&i({data:{date:u,text:f,groups:o,groupIndex:r},index:a})],0):Wn(2,y_n,{splitText:l,text:f}),0,{colSpan:e,title:f})})({props:mt({},e,{timeCellTemplate:OVe(e.timeCellTemplate),dateCellTemplate:OVe(e.dateCellTemplate)}),classes:this.classes,useTemplate:this.useTemplate,restAttributes:this.restAttributes})}}return t.defaultProps=x_n,t})();const IVe=()=>{var t=lu();return{isCompact:rW(t),isMaterial:io(t)}};var S_n=["dateCellTemplate","dateHeaderData","groupByDate","groupOrientation","groups","timeCellTemplate"],{isMaterial:D_n}=IVe(),kVe={groupOrientation:"horizontal",groupByDate:!1,groups:Object.freeze([])},MVe=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let O_n=(()=>{class t extends so{constructor(e){super(e),this.state={}}get isHorizontalGrouping(){var{groupByDate:e,groupOrientation:i,groups:r}=this.props;return FM(r,i)&&!e}get restAttributes(){return ki(this.props,S_n)}render(){var e=this.props;return(t=>{var{isHorizontalGrouping:n,props:{dateCellTemplate:e,dateHeaderData:i}}=t,{dataMap:r,leftVirtualCellCount:o,leftVirtualCellWidth:a,rightVirtualCellCount:s,rightVirtualCellWidth:l}=i;return Pl(r.map((u,f)=>Wn(2,Hb,{className:"dx-scheduler-header-row",leftVirtualCellWidth:a,leftVirtualCellCount:o,rightVirtualCellWidth:l,rightVirtualCellCount:s,isHeaderRow:!0,children:u.map(S=>{var{colSpan:T,endDate:R,groupIndex:L,groups:z,index:j,isFirstGroupCell:Y,isLastGroupCell:ie,key:te,startDate:re,text:he,today:fe}=S;return Wn(2,TVe,{startDate:re,endDate:R,groups:n?z:void 0,groupIndex:n?L:void 0,today:fe,index:j,text:he,isFirstGroupCell:Y,isLastGroupCell:ie,dateCellTemplate:e,colSpan:T,splitText:D_n},te)})},f.toString())),0)})({props:mt({},e,{dateCellTemplate:MVe(e.dateCellTemplate),timeCellTemplate:MVe(e.timeCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})}}return t.defaultProps=kVe,t})();var T_n=["className","dateCellTemplate","dateHeaderData","dateHeaderTemplate","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","isRenderDateHeader","resourceCellTemplate","timeCellTemplate"],AVe=Object.create(Object.prototype,mt(Object.getOwnPropertyDescriptors(SVe),Object.getOwnPropertyDescriptors({isRenderDateHeader:!0,dateHeaderTemplate:O_n}))),b3=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let FVe=(()=>{class t extends Kd{constructor(e){super(e),this.state={}}createEffects(){return[$d()]}get isHorizontalGrouping(){var{groupOrientation:e,groups:i}=this.props;return FM(i,e)}get restAttributes(){return ki(this.props,T_n)}render(){var e=this.props;return(t=>{var{isHorizontalGrouping:n,props:{dateCellTemplate:e,dateHeaderData:i,dateHeaderTemplate:r,groupByDate:o,groupOrientation:a,groupPanelData:s,groups:l,isRenderDateHeader:u,resourceCellTemplate:f,timeCellTemplate:S}}=t;return er(1,"thead",null,[n&&!o&&Wn(2,YQ,{groupPanelData:s,groups:l,groupByDate:o,groupOrientation:a,resourceCellTemplate:f}),u&&r({groupByDate:o,dateHeaderData:i,groupOrientation:a,groups:l,dateCellTemplate:e,timeCellTemplate:S}),o&&Wn(2,YQ,{groupPanelData:s,groups:l,groupByDate:o,groupOrientation:a,resourceCellTemplate:f})],0)})({props:mt({},e,{dateCellTemplate:b3(e.dateCellTemplate),timeCellTemplate:b3(e.timeCellTemplate),dateHeaderTemplate:b3(e.dateHeaderTemplate),resourceCellTemplate:b3(e.resourceCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})}}return t.defaultProps=AVe,t})();class ZQ extends EVe{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["dateCellTemplate","timeCellTemplate","dateHeaderTemplate","resourceCellTemplate"],props:["dateHeaderData","isRenderDateHeader","dateCellTemplate","timeCellTemplate","dateHeaderTemplate","groups","groupOrientation","groupPanelData","groupByDate","height","className","resourceCellTemplate"]}}get _viewComponent(){return FVe}}On("dxHeaderPanelLayout",ZQ),bt.dateToMilliseconds("day"),bt.dateToMilliseconds("hour");class L_n{constructor(n){this._viewDataProvider=n,this._focusedCell=null,this._selectedCells=null,this._firstSelectedCell=null,this._prevFocusedCell=null,this._prevSelectedCells=null}get viewDataProvider(){return this._viewDataProvider}get focusedCell(){var n=this._focusedCell;if(n){var{groupIndex:e,startDate:i,allDay:r}=n;return{coordinates:this.viewDataProvider.findCellPositionInMap({groupIndex:e,startDate:i,isAllDay:r,index:n.index}),cellData:n}}}setFocusedCell(n,e,i){if(n>=0){var r=this._viewDataProvider.getCellData(n,e,i);this._focusedCell=r}}setSelectedCells(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this._viewDataProvider,{rowIndex:r,columnIndex:o,allDay:a}=n;if(!(r<0)){var s=e?i.getCellData(e.rowIndex,e.columnIndex,e.allDay):this._firstSelectedCell,l=i.getCellData(r,o,a);this._firstSelectedCell=s,this._selectedCells=((t,n,e,i)=>{var r=n,o=e;r.startDate.getTime()>o.startDate.getTime()&&([r,o]=[o,r]);var{groupIndex:a,index:s,startDate:l}=r,{index:u,startDate:f}=o,T=t.getCellsByGroupIndexAndAllDay(a??0,i).reduce((L,z)=>{var Y=((t,n)=>{var{firstDate:e,firstIndex:i,lastDate:r,lastIndex:o}=n,a=bt.trimTime(e).getTime(),s=bt.trimTime(r).getTime();return t.filter(l=>{var{index:u,startDate:f}=l;return(t=>{var{date:n,firstDate:e,firstIndex:i,index:r,lastDate:o,lastIndex:a}=t;if(e===o){var s=i,l=a;return s>l&&([s,l]=[l,s]),e===n&&r>=s&&r<=l}return n===e&&r>=i||n===o&&r<=a||e<n&&n<o})({date:bt.trimTime(f).getTime(),index:u,firstDate:a,firstIndex:i,lastDate:s,lastIndex:o})})})(z,{firstDate:l,lastDate:f,firstIndex:s,lastIndex:u});return L.push(...Y),L},[]);return T.sort((L,z)=>L.startDate.getTime()-z.startDate.getTime())})(this._viewDataProvider,s,l,a)}}setSelectedCellsByData(n){this._selectedCells=n}getSelectedCells(){return this._selectedCells}releaseSelectedAndFocusedCells(){this.releaseSelectedCells(),this.releaseFocusedCell()}releaseSelectedCells(){this._prevSelectedCells=this._selectedCells,this._prevFirstSelectedCell=this._firstSelectedCell,this._selectedCells=null,this._firstSelectedCell=null}releaseFocusedCell(){this._prevFocusedCell=this._focusedCell,this._focusedCell=null}restoreSelectedAndFocusedCells(){this._selectedCells=this._selectedCells||this._prevSelectedCells,this._focusedCell=this._focusedCell||this._prevFocusedCell,this._firstSelectedCell=this._firstSelectedCell||this._prevFirstSelectedCell,this._prevSelectedCells=null,this._prevFirstSelectedCell=null,this._prevFocusedCell=null}clearSelectedAndFocusedCells(){this._prevSelectedCells=null,this._selectedCells=null,this._prevFocusedCell=null,this._focusedCell=null}}class B_n{handleArrowClick(n){var s,{key:e,focusedCellPosition:i,edgeIndices:r,getCellDataByPosition:o,isAllDayPanelCell:a}=n;switch(e){case"down":s=this.getCellFromNextRowPosition(i,"next",r);break;case"up":s=this.getCellFromNextRowPosition(i,"prev",r);break;case"left":s=this.getCellFromNextColumnPosition(mt({},n,{direction:"prev"}));break;case"right":s=this.getCellFromNextColumnPosition(mt({},n,{direction:"next"}))}var l=o(s.rowIndex,s.columnIndex,a);return this.moveToCell(mt({},n,{currentCellData:l}))}getCellFromNextRowPosition(n,e,i){var{columnIndex:r,rowIndex:o}=n,s=o+("next"===e?1:-1);return{columnIndex:r,rowIndex:s>=0&&s<=i.lastRowIndex?s:o}}getCellFromNextColumnPosition(n){var{focusedCellPosition:e,direction:i,edgeIndices:r,isRTL:o,isGroupedByDate:a,groupCount:s,isMultiSelection:l,viewType:u}=n,{columnIndex:f,rowIndex:S}=e,{firstColumnIndex:T,lastColumnIndex:R,firstRowIndex:L,lastRowIndex:z}=r,j=a&&l?s:1,Y=o?-1:1,te=f+("next"===i?Y*j:-1*Y*j);return te>=T&&te<=R?{columnIndex:te,rowIndex:S}:Bb(u)?e:this._processEdgeCell({nextColumnIndex:te,rowIndex:S,columnIndex:f,firstColumnIndex:T,lastColumnIndex:R,firstRowIndex:L,lastRowIndex:z,step:j})}_processEdgeCell(n){var{nextColumnIndex:e,rowIndex:i,columnIndex:r,firstColumnIndex:o,lastColumnIndex:a,firstRowIndex:s,lastRowIndex:l,step:u}=n,f=e,S=i;if(e<o){var z=i-1,j=z>=s;S=j?z:i,f=j?a-(u-r%u-1):r}if(e>a){var ie=i+1,te=ie<=l;S=te?ie:i,f=te?o+r%u:r}return{columnIndex:f,rowIndex:S}}moveToCell(n){var{isMultiSelection:e,isMultiSelectionAllowed:i,focusedCellData:r,currentCellData:o}=n;return e&&i?this._getNextCellData(o,r):o}_getNextCellData(n,e,i){return i?e:this._isValidNextFocusedCell(n,e)?n:e}_isValidNextFocusedCell(n,e){if(!e)return!0;var{groupIndex:i,allDay:r}=e,{groupIndex:o,allDay:a}=n;return i===o&&r===a}}class JQ{constructor(){this.semaphore=new w8e,this.position={left:-1,top:-1}}isFree(n){return this.isInitialPosition()?(this.setPosition(n),this.semaphore.isFree()):this.semaphore.isFree()&&!this.comparePosition(n)}take(n){this.semaphore.take(),this.setPosition(n)}release(){this.semaphore.release()}setPosition(n){var e,i;this.position.left=null!==(e=n.left)&&void 0!==e?e:-1,this.position.top=null!==(i=n.top)&&void 0!==i?i:-1}isInitialPosition(){return-1===this.position.left&&-1===this.position.top}comparePosition(n){var e,i,r=null!==(e=n.left)&&void 0!==e?e:-1,o=null!==(i=n.top)&&void 0!==i?i:-1;return this.position.left===r&&this.position.top===o}}var{tableCreator:BM}=UQ,N_n=K3e.abstract,x3=bt.dateToMilliseconds,PVe="dx-scheduler-work-space-vertical-group-table",RVe="dx-scheduler-time-panel-cell",QQ="dx-scheduler-all-day-panel",eee="dx-scheduler-all-day-table",LVe="dx-scheduler-all-day-title",g0="dx-scheduler-all-day-table-cell",BVe="dx-scheduler-work-space-mouse-selection",tee="dx-scheduler-cell-sizes-horizontal",NVe="dx-scheduler-cell-sizes-vertical",VVe="dx-scheduler-group-header",Vp="dx-scheduler-date-table-cell",w3="dx-scheduler-date-table-droppable-cell",HVe=kt(qn.down,"dxSchedulerWorkSpace"),vD={ENTER:kt(c1,"dxSchedulerDateTable"),DROP:kt(HT,"dxSchedulerDateTable"),LEAVE:kt(h1,"dxSchedulerDateTable")},zVe=kt(Vi,"dxSchedulerDateTable"),UVe=kt(qn.down,"dxSchedulerDateTable"),nee=kt(qn.up,"dxSchedulerDateTable"),WVe=kt(qn.move,"dxSchedulerDateTable"),GVe="dxCellData",jVe=x3("day"),avn=x3("hour"),S3=".".concat(xQ," td, .").concat(eee," td"),svn=".".concat(Vp,", .").concat(g0);const KVe=class uvn extends K3e{get viewDataProvider(){return this._viewDataProvider||(this._viewDataProvider=new Amn(this.type)),this._viewDataProvider}get cache(){return this._cache||(this._cache=new z3e),this._cache}get cellsSelectionState(){if(!this._cellsSelectionState){this._cellsSelectionState=new L_n(this.viewDataProvider);var n=this.option("selectedCellData");if(n?.length>0){var e=n.map(i=>{var r=i.groups;return r&&0!==this._getGroupCount()?mt({},i,{groupIndex:this._getGroupIndexByResourceId(r)}):mt({},i,{groupIndex:0})});this._cellsSelectionState.setSelectedCellsByData(e)}}return this._cellsSelectionState}get cellsSelectionController(){return this._cellsSelectionController||(this._cellsSelectionController=new B_n),this._cellsSelectionController}get isAllDayPanelVisible(){return this._isShowAllDayPanel()&&this.supportAllDayRow()}get verticalGroupTableClass(){return PVe}get viewDirection(){return"vertical"}get renovatedHeaderPanelComponent(){return ZQ}get timeZoneCalculator(){return this.option("timeZoneCalculator")}get isDefaultDraggingMode(){return"default"===this.option("draggingMode")}_supportedKeys(){var n=function(i){i.preventDefault(),i.stopPropagation();var r=this.cellsSelectionState.getSelectedCells();if(null!=r&&r.length){var o=r.map(a=>this._getCellByData(a)).filter(a=>!!a);i.target=o,this._showPopup=!0,this._cellClickAction({event:i,cellElement:U(o),cellData:r[0]})}},e=(i,r)=>{var o;i.preventDefault(),i.stopPropagation();var a=null===(o=this.cellsSelectionState.focusedCell)||void 0===o?void 0:o.cellData;if(a){var s=a.allDay&&!this._isVerticalGroupedWorkSpace(),l=i.shiftKey,u=this.option("allowMultipleCellSelection"),f=this._isRTL(),S=this._getGroupCount(),T=this.isGroupedByDate(),R=this._isHorizontalGroupedWorkSpace(),L=this.viewDataProvider.findCellPositionInMap(mt({},a,{isAllDay:a.allDay})),z=R&&l&&!T?this.viewDataProvider.getGroupEdgeIndices(a.groupIndex,s):this.viewDataProvider.getViewEdgeIndices(s),j=this.cellsSelectionController.handleArrowClick({focusedCellPosition:L,edgeIndices:z,isRTL:f,isGroupedByDate:T,groupCount:S,isMultiSelection:l,isMultiSelectionAllowed:u,viewType:this.type,key:r,getCellDataByPosition:this.viewDataProvider.getCellData.bind(this.viewDataProvider),isAllDayPanelCell:s,focusedCellData:a});this._processNextSelectedCell(j,a,l&&u)}};return se(super._supportedKeys(),{enter:n,space:n,downArrow:i=>{e(i,"down")},upArrow:i=>{e(i,"up")},rightArrow:i=>{e(i,"right")},leftArrow:i=>{e(i,"left")}})}_isRTL(){return this.option("rtlEnabled")}_moveToCell(n,e){if(Z(n)&&n.length){var i=this.option("allowMultipleCellSelection"),r=this._getFullCellData(n),o=this.cellsSelectionState.focusedCell.cellData,a=this.cellsSelectionController.moveToCell({isMultiSelection:e,isMultiSelectionAllowed:i,currentCellData:r,focusedCellData:o,isVirtualCell:n.hasClass(r3)});this._processNextSelectedCell(a,o,i&&e)}}_processNextSelectedCell(n,e,i){var r=this.viewDataProvider.findCellPositionInMap({startDate:n.startDate,groupIndex:n.groupIndex,isAllDay:n.allDay,index:n.index});if(!this.viewDataProvider.isSameCell(e,n)){var o=n.allDay&&!this._isVerticalGroupedWorkSpace()?this._dom_getAllDayPanelCell(r.columnIndex):this._dom_getDateCell(r);this._setSelectedCellsStateAndUpdateSelection(n.allDay,r,i,o),this._dateTableScrollable.scrollToElement(o)}}_setSelectedCellsStateAndUpdateSelection(n,e,i,r){var o={rowIndex:e.rowIndex,columnIndex:e.columnIndex,allDay:n};this.cellsSelectionState.setFocusedCell(o.rowIndex,o.columnIndex,n),i?this.cellsSelectionState.setSelectedCells(o):this.cellsSelectionState.setSelectedCells(o,o),this.updateCellsSelection(),this._updateSelectedCellDataOption(this.cellsSelectionState.getSelectedCells(),r)}_hasAllDayClass(n){return n.hasClass(g0)}_focusInHandler(n){if(U(n.target).is(this._focusTarget())&&!1!==this._isCellClick){if(delete this._isCellClick,delete this._contextMenuHandled,super._focusInHandler.apply(this,arguments),this.cellsSelectionState.restoreSelectedAndFocusedCells(),!this.cellsSelectionState.focusedCell){var e={columnIndex:0,rowIndex:0,allDay:this._isVerticalGroupedWorkSpace()&&this.isAllDayPanelVisible};this.cellsSelectionState.setFocusedCell(e.rowIndex,e.columnIndex,e.allDay),this.cellsSelectionState.setSelectedCells(e,e)}this.updateCellsSelection(),this._updateSelectedCellDataOption(this.cellsSelectionState.getSelectedCells())}}_focusOutHandler(){super._focusOutHandler.apply(this,arguments),!this._contextMenuHandled&&!this._disposed&&(this.cellsSelectionState.releaseSelectedAndFocusedCells(),this.viewDataProvider.updateViewData(this.generateRenderOptions()),this.updateCellsSelection())}_focusTarget(){return this.$element()}_isVerticalGroupedWorkSpace(){return!!this.option("groups").length&&"vertical"===this.option("groupOrientation")}_isHorizontalGroupedWorkSpace(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")}_isWorkSpaceWithCount(){return this.option("intervalCount")>1}_isWorkspaceWithOddCells(){return.5===this.option("hoursInterval")&&!this.isVirtualScrolling()}_getRealGroupOrientation(){return this._isVerticalGroupedWorkSpace()?"vertical":"horizontal"}createRAllDayPanelElements(){this._$allDayPanel=U("<div>").addClass(QQ),this._$allDayTitle=U("<div>").appendTo(this._$headerPanelEmptyCell)}_dateTableScrollableConfig(){var n={useKeyboard:!1,bounceEnabled:!1,updateManually:!0,onScroll:()=>{var i;null===(i=this._groupedStrategy.cache)||void 0===i||i.clear()}};if(this._needCreateCrossScrolling()&&(n=se(n,this._createCrossScrollingConfig(n))),this.isVirtualScrolling()&&(this.virtualScrollingDispatcher.horizontalScrollingAllowed||this.virtualScrollingDispatcher.height)){var e=n.onScroll;n=mt({},n,{onScroll:i=>{e?.(i),this.virtualScrollingDispatcher.handleOnScrollEvent(i?.scrollOffset)}})}return n}_createCrossScrollingConfig(n){var e={direction:"both"},i=n.onScroll;return e.onScroll=r=>{var o,a;i(),this._dataTableSemaphore.take(r.scrollOffset),this._sideBarSemaphore.isFree(r.scrollOffset)&&(null===(o=this._sidebarScrollable)||void 0===o||o.scrollTo({top:r.scrollOffset.top})),this._headerSemaphore.isFree(r.scrollOffset)&&(null===(a=this._headerScrollable)||void 0===a||a.scrollTo({left:r.scrollOffset.left})),this._dataTableSemaphore.release()},e.onEnd=()=>{this.option("onScrollEnd")()},e}_headerScrollableConfig(){var n={useKeyboard:!1,showScrollbar:"never",direction:"horizontal",useNative:!1,updateManually:!0,bounceEnabled:!1,onScroll:e=>{this._headerSemaphore.take(e.scrollOffset),this._dataTableSemaphore.isFree(e.scrollOffset)&&this._dateTableScrollable.scrollTo({left:e.scrollOffset.left}),this._headerSemaphore.release()}};return n}_visibilityChanged(n){this.cache.clear(),n&&this._updateGroupTableHeight(),n&&this._needCreateCrossScrolling()&&this._setTableSizes()}_setTableSizes(){this.cache.clear(),this._attachTableClasses();var n=this.getCellWidth();n<this.getCellMinWidth()&&(n=this.getCellMinWidth());var e=this.getWorkSpaceMinWidth(),i=this._getGroupCount(),o=n*this._getTotalCellCount(i);o<e&&(o=e),oa(this._$headerPanel,o),oa(this._$dateTable,o),this._$allDayTable&&oa(this._$allDayTable,o),this._attachHeaderTableClasses(),this._updateGroupTableHeight(),this._updateScrollable()}getWorkSpaceMinWidth(){return this._groupedStrategy.getWorkSpaceMinWidth()}_dimensionChanged(){this._isVisible()&&(this.option("crossScrollingEnabled")&&this._setTableSizes(),this.updateHeaderEmptyCellWidth(),this._updateScrollable(),this.cache.clear())}_needCreateCrossScrolling(){return this.option("crossScrollingEnabled")}_getElementClass(){}_getRowCount(){return this.viewDataProvider.getRowCount({intervalCount:this.option("intervalCount"),currentDate:this.option("currentDate"),viewType:this.type,hoursInterval:this.option("hoursInterval"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour")})}_getCellCount(){return this.viewDataProvider.getCellCount({intervalCount:this.option("intervalCount"),currentDate:this.option("currentDate"),viewType:this.type,hoursInterval:this.option("hoursInterval"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour")})}isRenovatedRender(){return this.renovatedRenderSupported()&&this.option("renovateRender")}_isVirtualModeOn(){return"virtual"===this.option("scrolling.mode")}isVirtualScrolling(){return this.isRenovatedRender()&&this._isVirtualModeOn()}_initVirtualScrolling(){this.virtualScrollingDispatcher&&(this.virtualScrollingDispatcher.dispose(),this.virtualScrollingDispatcher=null),this.virtualScrollingDispatcher=new emn(this._getVirtualScrollingDispatcherOptions()),this.virtualScrollingDispatcher.attachScrollableEvents(),this.renderer=new imn(this)}onDataSourceChanged(){}isGroupedAllDayPanel(){return c3e(this.option("groups"),this.option("groupOrientation"),this.isAllDayPanelVisible)}generateRenderOptions(n){var e,r=this._getGroupCount()>0?this.option("groupOrientation"):this._getDefaultGroupStrategy();return mt({groupByDate:this.option("groupByDate"),startRowIndex:0,startCellIndex:0,groupOrientation:r,today:null===(e=this._getToday)||void 0===e?void 0:e.call(this),groups:this.option("groups"),isProvideVirtualCellsWidth:n,isAllDayPanelVisible:this.isAllDayPanelVisible,selectedCells:this.cellsSelectionState.getSelectedCells(),focusedCell:this.cellsSelectionState.focusedCell,headerCellTextFormat:this._getFormat(),getDateForHeaderText:(a,s)=>s,startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),cellDuration:this.getCellDuration(),viewType:this.type,intervalCount:this.option("intervalCount"),hoursInterval:this.option("hoursInterval"),currentDate:this.option("currentDate"),startDate:this.option("startDate"),firstDayOfWeek:this.option("firstDayOfWeek")},this.virtualScrollingDispatcher.getRenderState())}renovatedRenderSupported(){return!0}_updateGroupTableHeight(){this._isVerticalGroupedWorkSpace()&&Rn()&&this._setHorizontalGroupHeaderCellsHeight()}updateHeaderEmptyCellWidth(){if(Rn()&&this._isRenderHeaderPanelEmptyCell()){var n=this.getTimePanelWidth(),e=this.getGroupTableWidth();this._$headerPanelEmptyCell.css("width",n+e)}}_isGroupsSpecified(n){return this.option("groups").length&&n}_getGroupIndexByResourceId(n){var e=this.option("groups"),i=kM(e);return i.length?this._getGroupIndexRecursively(i,n):0}_getGroupIndexRecursively(n,e){var r=e[n[0].name];return n.reduce((o,a)=>{var{leafIndex:s,value:l,children:u}=a,f=r===l;return f&&void 0!==s?s:f?this._getGroupIndexRecursively(u,e):o},0)}_getViewStartByOptions(){return l3(this.option("startDate"),this.option("currentDate"),this._getIntervalDuration(),this.option("startDate")?this._calculateViewStartDate():void 0)}_getIntervalDuration(){return this.viewDataProvider.getIntervalDuration(this.option("intervalCount"))}_getHeaderDate(){return this.getStartViewDate()}_calculateViewStartDate(){return this.option("startDate")}_firstDayOfWeek(){return this.viewDataProvider.getFirstDayOfWeek(this.option("firstDayOfWeek"))}_attachEvents(){this._createSelectionChangedAction(),this._attachClickEvent(),this._attachContextMenuEvent()}_attachClickEvent(){var n=this,e=this._createAction(function(o){n._pointerDownHandler(o.event)});this._createCellClickAction();var i="."+Vp+",."+g0,r=this.$element();Se.off(r,HVe),Se.off(r,zVe),Se.on(r,HVe,function(o){pp(o)&&o.which>1?o.preventDefault():e({event:o})}),Se.on(r,zVe,i,function(o){var a=U(o.target);n._cellClickAction({event:o,cellElement:kn(a),cellData:n.getCellData(a)})})}_createCellClickAction(){this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:n=>this._cellClickHandler(n.args[0].event)})}_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}_cellClickHandler(){this._showPopup&&(delete this._showPopup,this._handleSelectedCellsClick())}_pointerDownHandler(n){var e=U(n.target);if(e.hasClass(Vp)||e.hasClass(g0))if(this._isCellClick=!0,e.hasClass("dx-scheduler-focused-cell"))this._showPopup=!0;else{var i=this._getCoordinatesByCell(e),r=this._hasAllDayClass(e);this._setSelectedCellsStateAndUpdateSelection(r,i,!1,e)}else this._isCellClick=!1}_handleSelectedCellsClick(){var n=this.cellsSelectionState.getSelectedCells(),i=n[n.length-1],r={startDate:n[0].startDate,endDate:i.endDate};void 0!==i.allDay&&(r.allDay=i.allDay),this.option("onSelectedCellsClick")(r,i.groups)}_attachContextMenuEvent(){this._createContextMenuAction();var n="."+Vp+",."+g0,e=this.$element(),i=kt(uR,this.NAME);Se.off(e,i,n),Se.on(e,i,n,this._contextMenuHandler.bind(this))}_contextMenuHandler(n){var e=U(n.target);this._contextMenuAction({event:n,cellElement:kn(e),cellData:this.getCellData(e)}),this._contextMenuHandled=!0}_createContextMenuAction(){this._contextMenuAction=this._createActionByOption("onCellContextMenu")}_getGroupHeaderContainer(){return this._isVerticalGroupedWorkSpace()?this._$groupTable:this._$thead}_getDateHeaderContainer(){return this._$thead}_getCalculateHeaderCellRepeatCount(){return this._groupedStrategy.calculateHeaderCellRepeatCount()}_updateScrollable(){var n,e;this._dateTableScrollable.update(),null===(n=this._headerScrollable)||void 0===n||n.update(),null===(e=this._sidebarScrollable)||void 0===e||e.update()}_getTimePanelRowCount(){return this._getCellCountInDay()}_getCellCountInDay(){var n=this.option("hoursInterval"),e=this.option("startDayHour"),i=this.option("endDayHour");return this.viewDataProvider.getCellCountInDay(e,i,n)}_getTotalCellCount(n){return this._groupedStrategy.getTotalCellCount(n)}_getTotalRowCount(n,e){var i=this._groupedStrategy.getTotalRowCount(n);return e&&this.isAllDayPanelVisible&&(i+=n),i}_getGroupIndex(n,e){return this._groupedStrategy.getGroupIndex(n,e)}calculateEndDate(n){var e=this.viewDataProvider.viewDataGenerator;return e.calculateEndDate(n,e.getInterval(this.option("hoursInterval")),this.option("endDayHour"))}_getGroupCount(){return c0(this.option("groups"))}_attachTablesEvents(){var n=this.$element();this._attachDragEvents(n),this._attachPointerEvents(n)}_detachDragEvents(n){Se.off(n,vD.ENTER),Se.off(n,vD.LEAVE),Se.off(n,vD.DROP)}_attachDragEvents(n){this._detachDragEvents(n),Se.on(n,vD.ENTER,S3,{checkDropTarget:(e,i)=>!this._isOutsideScrollable(e,i)},e=>{this.preventDefaultDragging||(this.removeDroppableCellClass(),U(e.target).addClass(w3))}),Se.on(n,vD.LEAVE,()=>{this.preventDefaultDragging||this.removeDroppableCellClass()}),Se.on(n,vD.DROP,S3,()=>{var e,i;if(this.dragBehavior){if(null===(e=this.dragBehavior)||void 0===e||!e.dragBetweenComponentsPromise)return void this.dragBehavior.removeDroppableClasses();null===(i=this.dragBehavior.dragBetweenComponentsPromise)||void 0===i||i.then(()=>{this.dragBehavior.removeDroppableClasses()})}})}_attachPointerEvents(n){var e=!1;Se.off(n,WVe),Se.off(n,UVe),Se.on(n,UVe,S3,i=>{pp(i)&&1===i.which&&(e=!0,this.$element().addClass(BVe),Se.off(It.getDocument(),nee),Se.on(It.getDocument(),nee,()=>{e=!1,this.$element().removeClass(BVe)}))}),Se.on(n,WVe,S3,i=>{e&&this._dateTableScrollable&&!this._dateTableScrollable.option("scrollByContent")&&(i.preventDefault(),i.stopPropagation(),this._moveToCell(U(i.target),!0))})}_getFormat(){return N_n()}getWorkArea(){return this._$dateTableContainer}getScrollable(){return this._dateTableScrollable}getScrollableScrollTop(){return this._dateTableScrollable.scrollTop()}getGroupedScrollableScrollTop(n){return this._groupedStrategy.getScrollableScrollTop(n)}getScrollableScrollLeft(){return this._dateTableScrollable.scrollLeft()}getScrollableOuterWidth(){return this._dateTableScrollable.scrollWidth()}getScrollableContainer(){return U(this._dateTableScrollable.container())}getHeaderPanelHeight(){return this._$headerPanel&&Zn(this._$headerPanel,!0)}getTimePanelWidth(){return this._$timePanel&&Mi(this._$timePanel.get(0)).width}getGroupTableWidth(){return this._$groupTable?ii(this._$groupTable):0}getWorkSpaceLeftOffset(){return this._groupedStrategy.getLeftOffset()}_getCellCoordinatesByIndex(n){var e=Math.floor(n/this._getRowCount());return{columnIndex:e,rowIndex:n-this._getRowCount()*e}}_getDateGenerationOptions(){var n;return{startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),isWorkView:this.viewDataProvider.viewDataGenerator.isWorkView,interval:null===(n=this.viewDataProvider.viewDataGenerator)||void 0===n?void 0:n.getInterval(this.option("hoursInterval")),startViewDate:this.getStartViewDate(),firstDayOfWeek:this._firstDayOfWeek()}}_getIntervalBetween(n,e){var i=this.getStartViewDate(),r=this.option("startDayHour")*avn,o=bt.getTimezonesDifference(i,n),a=n.getTime()-i.getTime()-o,s=this._getDaysOfInterval(a,r),l=this._getWeekendsCount(s),u=(s-l)*jVe;return e||(u=a-s*this.viewDataProvider.hiddenInterval-l*this.getVisibleDayDuration()),u}_getWeekendsCount(){return 0}_getDaysOfInterval(n,e){return Math.floor((n+e)/jVe)}_updateIndex(n){return n*this._getRowCount()}_getDroppableCell(){return this._getDateTables().find("."+w3)}_getWorkSpaceWidth(){return this.cache.get("workspaceWidth",()=>this._needCreateCrossScrolling()?Mi(this._$dateTable.get(0)).width:Mi(this.$element().get(0)).width-this.getTimePanelWidth()-this.getGroupTableWidth())}_getCellByCoordinates(n,e,i){var r=this._groupedStrategy.prepareCellIndexes(n,e,i);return this._dom_getDateCell(r)}_dom_getDateCell(n){return this._$dateTable.find("tr:not(.".concat("dx-scheduler-virtual-row",")")).eq(n.rowIndex).find("td:not(.".concat(r3,")")).eq(n.columnIndex)}_dom_getAllDayPanelCell(n){return this._$allDayPanel.find("tr").eq(0).find("td").eq(n)}_getCells(n,e){var i=n?g0:Vp;if("vertical"===e){for(var r=[],o=1;;o++){var a=this.$element().find("tr .".concat(i,":nth-child(").concat(o,")"));if(!a.length)break;r=r.concat(a.toArray())}return U(r)}return this.$element().find("."+i)}_getFirstAndLastDataTableCell(){var n=this.isVirtualScrolling()?".".concat(Vp,", .").concat(r3):".".concat(Vp),e=this.$element().find(n);return[e[0],e[e.length-1]]}_getAllCells(n){if(this._isVerticalGroupedWorkSpace())return this._$dateTable.find("td:not(.".concat(r3,")"));var e=n&&this.supportAllDayRow()?g0:Vp;return this.$element().find(".".concat(e))}_setHorizontalGroupHeaderCellsHeight(){var n=Mi(this._$dateTable.get(0)).height;RO(this._$groupTable,n)}_getGroupHeaderCells(){return this.$element().find("."+VVe)}_getScrollCoordinates(n,e,i,r,o){var a=i||new Date(this.option("currentDate")),s=this.option("startDayHour"),l=this.option("endDayHour");n<s&&(n=s),n>=l&&(n=l-1),a.setHours(n,e,0,0);var u=this.viewDataProvider.findGlobalCellPosition(a,r,o),{position:f,cellData:S}=u;return this.virtualScrollingDispatcher.calculateCoordinatesByDataAndPosition(S,f,a,Bb(this.type),"vertical"===this.viewDirection)}_isOutsideScrollable(n,e){var i=this._dateTableScrollable.$element(),r=Mi(i.get(0)),o=Fn(),a=!U(n).closest(i).length,s=e.pageX<r.left||e.pageX>r.left+r.width+(o.scrollX||0);return!(a&&!s)&&(e.pageY<r.top||e.pageY>r.top+r.height+(o.scrollY||0)||s)}setCellDataCache(n,e,i){var r=JSON.stringify({rowIndex:n.rowIndex,columnIndex:n.columnIndex,groupIndex:e});this.cache.set(r,this.getCellData(i))}setCellDataCacheAlias(n,e){var i=JSON.stringify({rowIndex:n.rowIndex,columnIndex:n.columnIndex,groupIndex:n.groupIndex}),r=JSON.stringify({top:e.top,left:e.left});this.cache.set(r,this.cache.get(i))}supportAllDayRow(){return!0}keepOriginalHours(){return!1}_filterCellDataFields(n){return se(!0,{},{startDate:n.startDate,endDate:n.endDate,groups:n.groups,groupIndex:n.groupIndex,allDay:n.allDay})}getCellData(n){var e=this._getFullCellData(n)||{};return this._filterCellDataFields(e)}_getFullCellData(n){if(n[0])return this._getDataByCell(n)}_getVirtualRowOffset(){return this.virtualScrollingDispatcher.virtualRowOffset}_getVirtualCellOffset(){return this.virtualScrollingDispatcher.virtualCellOffset}_getDataByCell(n){var e=n.parent().index()-this.virtualScrollingDispatcher.topVirtualRowsCount,i=n.index()-this.virtualScrollingDispatcher.leftVirtualCellsCount,{viewDataProvider:r}=this,o=this._hasAllDayClass(n);return r.getCellData(e,i,o)||void 0}isGroupedByDate(){return this.option("groupByDate")&&this._isHorizontalGroupedWorkSpace()&&this._getGroupCount()>0}getCellIndexByDate(n,e){var r=e?864e5:this.viewDataProvider.viewDataGenerator.getInterval(this.option("hoursInterval")),o=l3e(this.getStartViewDate(),this.option("startDayHour")),a=this._getIntervalBetween(n,e)+o,s=Math.floor(a/r);return e&&(s=this._updateIndex(s)),s<0&&(s=0),s}getDroppableCellIndex(){var n=this._getDroppableCell(),e=n.parent();return e.index()*e.find("td").length+n.index()}getDataByDroppableCell(){var n=this.getCellData(U(this._getDroppableCell()));return{startDate:n.startDate,endDate:n.endDate,allDay:n.allDay,groups:n.groups}}getDateRange(){return[this.getStartViewDate(),this.getEndViewDateByEndDayHour()]}getCellMinWidth(){return 75}getRoundedCellWidth(n,e,i){if(n<0||!Rn())return 0;var o=0,a=this.$element().find(".".concat(wQ)).eq(0).find("."+Vp),s=this._getCellCount()*n;i=i||this._getCellCount(),Z(e)||(e=s);for(var l=e;l<s+i;l++){var u=U(a).eq(l).get(0);o+=u?Mi(u).width:0}return o/(s+i-e)}getCellWidth(){return h3(this.getDOMElementsMetaData())}getCellHeight(){return BQ(this.getDOMElementsMetaData())}getAllDayHeight(){return PM(this.option("showAllDayPanel"),this._isVerticalGroupedWorkSpace(),this.getDOMElementsMetaData())}getMaxAllowedPosition(n){return NQ(n,this.viewDataProvider,this.option("rtlEnabled"),this.getDOMElementsMetaData())}getAllDayOffset(){return this._groupedStrategy.getAllDayOffset()}getCellIndexByCoordinates(n,e){var i=this._getTotalCellCount(this._getGroupCount()),r=this.getCellWidth(),o=e?this.getAllDayHeight():this.getCellHeight(),a=Math.floor(Math.floor(n.top)/Math.floor(o)),s=n.left/r;return s=Math.floor(s+.05),this._isRTL()&&(s=i-s-1),i*a+s}getStartViewDate(){return this.viewDataProvider.getStartViewDate()}getEndViewDate(){return this.viewDataProvider.getLastCellEndDate()}getEndViewDateByEndDayHour(){return this.viewDataProvider.getLastViewDateByEndDayHour(this.option("endDayHour"))}getCellDuration(){return f3e(this.type,this.option("startDayHour"),this.option("endDayHour"),this.option("hoursInterval"))}getIntervalDuration(n){return n?x3("day"):this.getCellDuration()}getVisibleDayDuration(){var n=this.option("startDayHour"),e=this.option("endDayHour"),i=this.option("hoursInterval");return this.viewDataProvider.getVisibleDayDuration(n,e,i)}getGroupBounds(n){var e=this._groupedStrategy instanceof U3e?this.getGroupBoundsVertical(n.groupIndex):this.getGroupBoundsHorizontal(n);return this._isRTL()?this.getGroupBoundsRtlCorrection(e):e}getGroupBoundsVertical(n){var e=this._getFirstAndLastDataTableCell();return this._groupedStrategy.getGroupBoundsOffset(n,e)}getGroupBoundsHorizontal(n){var e=this._getCellCount(),i=this._getCells(),r=this.getCellWidth();return this._groupedStrategy.getGroupBoundsOffset(e,i,r,n,this.viewDataProvider.groupedDataMap)}getGroupBoundsRtlCorrection(n){var e=this.getCellWidth();return mt({},n,{left:n.right-2*e,right:n.left+2*e})}needRecalculateResizableArea(){return this._isVerticalGroupedWorkSpace()&&0!==this.getScrollable().scrollTop()}getCellDataByCoordinates(n,e){var i=JSON.stringify({top:n.top,left:n.left});return this.cache.get(i,()=>{var r=this._getCells(e),o=this.getCellIndexByCoordinates(n,e),a=r.eq(o);return this.getCellData(a)})}getVisibleBounds(){var n={},e=this.getScrollable().$element(),i=this.getCellHeight(),r=this.getScrollableScrollTop()/i,o=r+Ln(e)/i;return n.top={hours:Math.floor(r*this.option("hoursInterval"))+this.option("startDayHour"),minutes:r%2?30:0},n.bottom={hours:Math.floor(o*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(o)%2?30:0},n}updateScrollPosition(n,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.timeZoneCalculator.createDate(n,{path:"toGrid"}),o=i&&this.isAllDayPanelVisible;this.needUpdateScrollPosition(r,e,o)&&this.scrollTo(r,e,o,!1)}needUpdateScrollPosition(n,e,i){var r=this._getCellsInViewport(i),o=this._isGroupsSpecified(e)?this._getGroupIndexByResourceId(e):0,a=n.getTime(),s=bt.trimTime(n).getTime();return r.reduce((l,u)=>{var{startDate:f,endDate:S,groupIndex:T}=this.getCellData(u),R=f.getTime(),L=S.getTime();return(!(!i&&R<=a&&a<L||i&&s===R)||o!==T)&&l},!0)}_getCellsInViewport(n){var e=this.getScrollable().$element(),i=this.getCellHeight(),r=this.getCellWidth(),o=this._getTotalCellCount(this._getGroupCount()),a=this.getScrollableScrollTop(),s=this.getScrollableScrollLeft(),l=a/i-this.virtualScrollingDispatcher.topVirtualRowsCount,u=Math.floor(l);a%i!=0&&(u+=1);var f=s/r,S=Math.floor(f);s%r!=0&&(S+=1);var T=Math.floor(l+Ln(e)/i),R=Math.floor(f+wn(e)/r),L=this._getAllCells(n),z=[];return L.each(function(j){var Y=U(this),ie=j%o,te=j/o;S<=ie&&ie<R&&u<=te&&te<T&&z.push(Y)}),z}scrollToTime(n,e,i){if(this._isValidScrollDate(i)){var r=this._getScrollCoordinates(n,e,i),o=this.getScrollable();o.scrollBy({top:r.top-o.scrollTop(),left:0})}}scrollTo(n,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._isValidScrollDate(n,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])){var o=this._getGroupCount()&&e?this._getGroupIndexByResourceId(e):0,a=i&&this.isAllDayPanelVisible,s=this._getScrollCoordinates(n.getHours(),n.getMinutes(),n,o,a),l=this.getScrollable(),u=l.$element(),f=this.getCellWidth(),S=this.option("rtlEnabled")?f:0,T=Ln(u),z=(wn(u)-f)/2,j=(T-this.getCellHeight())/2,Y=s.left-l.scrollLeft()-z-S,ie=s.top-l.scrollTop()-j;a&&!this._isVerticalGroupedWorkSpace()&&(ie=0),this.option("templatesRenderAsynchronously")?setTimeout(()=>{l.scrollBy({left:Y,top:ie})}):l.scrollBy({left:Y,top:ie})}}_isValidScrollDate(n){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.getStartViewDate(),r=this.getEndViewDate();return!(n<i||n>r)||(e&&Di.log("W1008",n),!1)}needApplyCollectorOffset(){return!1}removeDroppableCellClass(n){(n||this._getDroppableCell())?.removeClass(w3)}_getCoordinatesByCell(n){var e=n.index()-this.virtualScrollingDispatcher.leftVirtualCellsCount,i=n.parent().index(),r=this._hasAllDayClass(n),o=this._isVerticalGroupedWorkSpace();return r&&!o||(i-=this.virtualScrollingDispatcher.topVirtualRowsCount),{rowIndex:i,columnIndex:e}}_isShowAllDayPanel(){return this.option("showAllDayPanel")}_getTimePanelCells(){return this.$element().find(".".concat(RVe))}_getRDateTableProps(){return{viewData:this.viewDataProvider.viewData,dataCellTemplate:this.option("dataCellTemplate"),addDateTableClass:!this.option("crossScrollingEnabled")||this.isVirtualScrolling(),groupOrientation:this.option("groupOrientation"),addVerticalSizesClassToRows:!1}}_updateSelectedCellDataOption(n){var e=n.map(i=>{var{startDate:r,endDate:o,allDay:a,groupIndex:s,groups:l}=i;return{startDate:r,endDate:o,allDay:a,groupIndex:s,groups:l}});this.option("selectedCellData",e),this._selectionChangedAction({selectedCellData:e})}_getCellByData(n){var{startDate:e,groupIndex:i,allDay:r,index:o}=n,a=this.viewDataProvider.findCellPositionInMap({startDate:e,groupIndex:i,isAllDay:r,index:o});if(a)return r&&!this._isVerticalGroupedWorkSpace()?this._dom_getAllDayPanelCell(a.columnIndex):this._dom_getDateCell(a)}getDOMElementsMetaData(){return this.cache.get("cellElementsMeta",()=>({dateTableCellsMeta:this._getDateTableDOMElementsInfo(),allDayPanelCellsMeta:this._getAllDayPanelDOMElementsInfo()}))}_getDateTableDOMElementsInfo(){var n=this._getAllCells(!1);if(!n.length||!Rn())return[[{}]];var e=this._getDateTable(),i=Mi(e.get(0)),r=this.viewDataProvider.getColumnsCount(),o=[];return n.each((a,s)=>{var l=Math.floor(a/r);o.length===l&&o.push([]),this._addCellMetaData(o[l],s,i)}),o}_getAllDayPanelDOMElementsInfo(){var n=[];if(this.isAllDayPanelVisible&&!this._isVerticalGroupedWorkSpace()&&Rn()){var e=this._getAllCells(!0);if(!e.length)return[{}];var r=Mi(this._$allDayPanel.get(0));e.each((o,a)=>{this._addCellMetaData(n,a,r)})}return n}_addCellMetaData(n,e,i){var r=Mi(e);n.push({left:r.left-i.left,top:r.top-i.top,width:r.width,height:r.height})}_oldRender_getAllDayCellData(n){return(e,i,r)=>{var o=r%this._getCellCount(),a=this._getDateGenerationOptions(!0),s=this.viewDataProvider.viewDataGenerator.getDateByCellIndices(a,i,o,this._getCellCountInDay());s=bt.trimTime(s);var l=n||0;this.isGroupedByDate()?l=Math.floor(r%this._getGroupCount()):this._isHorizontalGroupedWorkSpace()&&(l=Math.floor(r/this._getCellCount()));var u={startDate:s,endDate:s,allDay:!0,groupIndex:l},f=cD(l,this.option("groups"));return f.length&&(u.groups=J8(f)),{key:GVe,value:u}}}renderRWorkSpace(n){var e=n??{header:!0,timePanel:!0,dateTable:!0,allDayPanel:!0};e.header&&this.renderRHeaderPanel(),e.timePanel&&this.renderRTimeTable(),e.dateTable&&this.renderRDateTable(),e.allDayPanel&&this.renderRAllDayPanel()}renderRDateTable(){gu.renovation.renderComponent(this,this._$dateTable,fVe,"renovatedDateTable",this._getRDateTableProps())}renderRGroupPanel(){var n={groups:this.option("groups"),groupOrientation:this.option("groupOrientation"),groupByDate:this.isGroupedByDate(),resourceCellTemplate:this.option("resourceCellTemplate"),className:this.verticalGroupTableClass,groupPanelData:this.viewDataProvider.getGroupPanelData(this.generateRenderOptions())};this.option("groups").length?(this._attachGroupCountClass(),gu.renovation.renderComponent(this,this._getGroupHeaderContainer(),DVe,"renovatedGroupPanel",n)):this._detachGroupCountClass()}renderRAllDayPanel(){if(this.isAllDayPanelVisible&&!this.isGroupedAllDayPanel()){var e;this._toggleAllDayVisibility(!1);var i=mt({viewData:this.viewDataProvider.viewData,dataCellTemplate:this.option("dataCellTemplate"),startCellIndex:0},(null===(e=this.virtualScrollingDispatcher.horizontalVirtualScrolling)||void 0===e?void 0:e.getRenderState())||{});gu.renovation.renderComponent(this,this._$allDayTable,mVe,"renovatedAllDayPanel",i),gu.renovation.renderComponent(this,this._$allDayTitle,vVe,"renovatedAllDayPanelTitle",{})}this._toggleAllDayVisibility(!0)}renderRTimeTable(){gu.renovation.renderComponent(this,this._$timePanel,yVe,"renovatedTimePanel",{timePanelData:this.viewDataProvider.timePanelData,timeCellTemplate:this.option("timeCellTemplate"),groupOrientation:this.option("groupOrientation")})}renderRHeaderPanel(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.option("groups").length?this._attachGroupCountClass():this._detachGroupCountClass(),gu.renovation.renderComponent(this,this._$thead,this.renovatedHeaderPanelComponent,"renovatedHeaderPanel",{dateHeaderData:this.viewDataProvider.dateHeaderData,groupPanelData:this.viewDataProvider.getGroupPanelData(this.generateRenderOptions()),dateCellTemplate:this.option("dateCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),groups:this.option("groups"),groupByDate:this.isGroupedByDate(),groupOrientation:this.option("groupOrientation"),resourceCellTemplate:this.option("resourceCellTemplate"),isRenderDateHeader:n})}initDragBehavior(n){if(!this.dragBehavior&&n){this.dragBehavior=new qfn(n);var e=U(n.element());this._createDragBehavior(this.getWorkArea(),e),this._createDragBehavior(this.getAllDayContainer(),e)}}_createDragBehavior(n,e){this._createDragBehaviorBase(n,e,{getItemData:(r,o)=>o._getItemData(r),getItemSettings:r=>r.data(h0)})}_createDragBehaviorBase(n,e,i){var r=this.$element().find(".".concat(H8e));this.dragBehavior.addTo(n,((t,n,e,i,r,o,a,s,l,u,f)=>{var S={dragElement:void 0,itemData:void 0},T=()=>{var{itemData:L}=S;return!L||Ai("disabled")(L)};return{container:t,dragTemplate:()=>S.dragElement,onDragStart:L=>{e||o();var z=L.cancel,j=L.event,Y=U(L.itemElement),ie=L.component._appointments;S.itemData=f.getItemData(L.itemElement,ie);var he,fe,Te,Re,te=f.getItemSettings(Y,L),re=f.initialPosition;T()||(j.data=j.data||{},z||(te.isCompact||i.updateDragSource(S.itemData,te),S.dragElement=(he=S.itemData,fe=te,Re=(Te=ie).option("items").length,fe.isCompact=!1,fe.virtual=!1,Te._renderItem(Re,{itemData:he,settings:[fe]})[0]),j.data.itemElement=S.dragElement,j.data.initialPosition=re??Ra(U(S.dragElement)),j.data.itemData=S.itemData,j.data.itemSettings=te,i.onDragStart(j.data),lC(U(S.dragElement))))},onDragMove:()=>{if(!e){var L=wn(S.dragElement),j=L>u(),Y=U(S.dragElement).parent(),ie=Mi(Y.get(0)),te=ie.left+10,he=It.elementsFromPoint(j?te:te+L/2,ie.top+10),fe=!!he.find(He=>He===n.get(0)),Te=s(),Re=he.find(He=>{var Ze=He.classList;return 1===Te.find(He).length&&(Ze.contains(Vp)||Ze.contains(g0))});Re?(a().is(Re)||l(),U(Re).addClass(w3)):fe||l()}},onDragEnd:L=>{var z;e||r(),T()||i.onDragEnd(L),null===(z=S.dragElement)||void 0===z||z.remove(),l()},cursorOffset:f.isSetCursorOffset?()=>{var L=U(S.dragElement);return{x:wn(L)/2,y:Ln(L)/2}}:void 0,filter:f.filter}})(r,e,this.isDefaultDraggingMode,this.dragBehavior,()=>{this.isDefaultDraggingMode||(this.preventDefaultDragging=!1)},()=>{this.isDefaultDraggingMode||(this.preventDefaultDragging=!0)},()=>this._getDroppableCell(),()=>this._getDateTables(),()=>this.removeDroppableCellClass(),()=>this.getCellWidth(),i))}_isRenderHeaderPanelEmptyCell(){return this._isVerticalGroupedWorkSpace()}_dispose(){super._dispose(),this.virtualScrollingDispatcher.dispose()}_getDefaultOptions(){return se(super._getDefaultOptions(),{currentDate:new Date,intervalCount:1,startDate:null,firstDayOfWeek:void 0,startDayHour:0,endDayHour:24,hoursInterval:.5,activeStateEnabled:!0,hoverStateEnabled:!0,groups:[],showAllDayPanel:!0,allDayExpanded:!1,onCellClick:null,crossScrollingEnabled:!1,dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,allowMultipleCellSelection:!0,indicatorTime:new Date,indicatorUpdateInterval:5*x3("minute"),shadeUntilCurrentTime:!0,groupOrientation:"horizontal",selectedCellData:[],groupByDate:!1,scrolling:{mode:"standard"},allDayPanelMode:"all",renovateRender:!0,height:void 0,draggingMode:"outlook",onScrollEnd:()=>{},getHeaderHeight:void 0,onRenderAppointments:()=>{},onShowAllDayPanel:()=>{},onSelectedCellsClick:()=>{},timeZoneCalculator:void 0,schedulerHeight:void 0,schedulerWidth:void 0})}_optionChanged(n){switch(n.name){case"startDayHour":TQ(n.value,this.option("endDayHour")),this._cleanWorkSpace();break;case"endDayHour":TQ(this.option("startDayHour"),n.value),this._cleanWorkSpace();break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"startDate":this._cleanWorkSpace();break;case"groups":this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint();break;case"groupOrientation":this._initGroupedStrategy(),this._createAllDayPanelElements(),this._removeAllDayElements(),this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"showAllDayPanel":this._isVerticalGroupedWorkSpace()?(this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint()):this.isRenovatedRender()?this.renderWorkSpace():this._toggleAllDayVisibility(!0);break;case"allDayExpanded":this._changeAllDayVisibility(),this._attachTablesEvents(),this._updateScrollable();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onCellClick":this._createCellClickAction();break;case"onCellContextMenu":this._attachContextMenuEvent();break;case"intervalCount":this._cleanWorkSpace(),this._toggleWorkSpaceCountClass();break;case"groupByDate":this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"crossScrollingEnabled":this._toggleHorizontalScrollClass(),this._dateTableScrollable.option(this._dateTableScrollableConfig());break;case"allDayPanelMode":this.updateShowAllDayPanel(),this.updateAppointments();break;case"width":super._optionChanged(n),this._dimensionChanged();break;case"timeZoneCalculator":case"allowMultipleCellSelection":case"selectedCellData":break;case"renovateRender":case"scrolling":this.repaint();break;case"schedulerHeight":case"schedulerWidth":this.virtualScrollingDispatcher.updateDimensions(!0);break;default:super._optionChanged(n)}}updateShowAllDayPanel(){var n="hidden"===this.option("allDayPanelMode");this.option("onShowAllDayPanel")(!n)}_getVirtualScrollingDispatcherOptions(){return{getCellHeight:this.getCellHeight.bind(this),getCellWidth:this.getCellWidth.bind(this),getCellMinWidth:this.getCellMinWidth.bind(this),isRTL:this._isRTL.bind(this),getSchedulerHeight:()=>this.option("schedulerHeight"),getSchedulerWidth:()=>this.option("schedulerWidth"),getViewHeight:()=>this.$element().height?this.$element().height():Ln(this.$element()),getViewWidth:()=>this.$element().width?this.$element().width():wn(this.$element()),getWindowHeight:()=>Fn().innerHeight,getWindowWidth:()=>Fn().innerWidth,getScrolling:()=>this.option("scrolling"),getScrollableOuterWidth:this.getScrollableOuterWidth.bind(this),getScrollable:this.getScrollable.bind(this),createAction:this._createAction.bind(this),updateRender:this.updateRender.bind(this),updateGrid:this.updateGrid.bind(this),getGroupCount:this._getGroupCount.bind(this),isVerticalGrouping:this._isVerticalGroupedWorkSpace.bind(this),getTotalRowCount:this._getTotalRowCount.bind(this),getTotalCellCount:this._getTotalCellCount.bind(this)}}_cleanWorkSpace(){this._cleanView(),this._toggleGroupedClass(),this._toggleWorkSpaceWithOddCells(),this.virtualScrollingDispatcher.updateDimensions(!0),this._renderView(),this.option("crossScrollingEnabled")&&this._setTableSizes(),this.cache.clear()}_init(){this._headerSemaphore=new JQ,this._sideBarSemaphore=new JQ,this._dataTableSemaphore=new JQ,this._viewDataProvider=null,this._cellsSelectionState=null,this._activeStateUnit=svn,super._init(),this._initGrouping(),this._toggleHorizontalScrollClass(),this._toggleWorkSpaceCountClass(),this._toggleGroupByDateClass(),this._toggleWorkSpaceWithOddCells(),this.$element().addClass("dx-scheduler-work-space").addClass(this._getElementClass())}_initPositionHelper(){this.positionHelper=new cgn({key:this.option("key"),viewDataProvider:this.viewDataProvider,viewStartDayHour:this.option("startDayHour"),viewEndDayHour:this.option("endDayHour"),cellDuration:this.getCellDuration(),groupedStrategy:this._groupedStrategy,isGroupedByDate:this.isGroupedByDate(),rtlEnabled:this.option("rtlEnabled"),startViewDate:this.getStartViewDate(),isVerticalGrouping:this._isVerticalGroupedWorkSpace(),groupCount:this._getGroupCount(),isVirtualScrolling:this.isVirtualScrolling(),getDOMMetaDataCallback:this.getDOMElementsMetaData.bind(this)})}_initGrouping(){this._initGroupedStrategy(),this._toggleGroupingDirectionClass(),this._toggleGroupByDateClass()}isVerticalOrientation(){return"vertical"===(this.option("groups").length?this.option("groupOrientation"):this._getDefaultGroupStrategy())}_initGroupedStrategy(){var n=this.isVerticalOrientation()?U3e:Rfn;this._groupedStrategy=new n(this)}_getDefaultGroupStrategy(){return"horizontal"}_toggleHorizontalScrollClass(){this.$element().toggleClass("dx-scheduler-work-space-both-scrollbar",this.option("crossScrollingEnabled"))}_toggleGroupByDateClass(){this.$element().toggleClass("dx-scheduler-work-space-group-by-date",this.isGroupedByDate())}_toggleWorkSpaceCountClass(){this.$element().toggleClass("dx-scheduler-work-space-count",this._isWorkSpaceWithCount())}_toggleWorkSpaceWithOddCells(){this.$element().toggleClass("dx-scheduler-work-space-odd-cells",this._isWorkspaceWithOddCells())}_toggleGroupingDirectionClass(){this.$element().toggleClass("dx-scheduler-work-space-vertical-grouped",this._isVerticalGroupedWorkSpace())}_getDateTableCellClass(n,e){return this._groupedStrategy.addAdditionalGroupCellClasses(Vp+" "+tee+" "+NVe,e+1,n,e)}_getGroupHeaderClass(n){return this._groupedStrategy.addAdditionalGroupCellClasses(VVe,n+1)}_initWorkSpaceUnits(){this._$headerPanelContainer=U("<div>").addClass("dx-scheduler-header-panel-container"),this._$headerTablesContainer=U("<div>").addClass("dx-scheduler-header-tables-container"),this._$headerPanel=U("<table>"),this._$thead=U("<thead>").appendTo(this._$headerPanel),this._$headerPanelEmptyCell=U("<div>").addClass("dx-scheduler-header-panel-empty-cell"),this._$allDayTable=U("<table>"),this._$fixedContainer=U("<div>").addClass(H8e),this._$allDayContainer=U("<div>").addClass("dx-scheduler-all-day-appointments"),this._$dateTableScrollableContent=U("<div>").addClass("dx-scheduler-date-table-scrollable-content"),this._$sidebarScrollableContent=U("<div>").addClass("dx-scheduler-side-bar-scrollable-content"),this._initAllDayPanelElements(),this.isRenovatedRender()?this.createRAllDayPanelElements():this._createAllDayPanelElements(),this._$timePanel=U("<table>").addClass(U8e),this._$dateTable=U("<table>"),this._$dateTableContainer=U("<div>").addClass("dx-scheduler-date-table-container"),this._$groupTable=U("<div>").addClass(PVe)}_initAllDayPanelElements(){this._allDayTitles=[],this._allDayTables=[],this._allDayPanels=[]}_initDateTableScrollable(){var n=U("<div>").addClass("dx-scheduler-date-table-scrollable");this._dateTableScrollable=this._createComponent(n,xd,this._dateTableScrollableConfig())}_createWorkSpaceElements(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()}_createWorkSpaceStaticElements(){var n;this._$dateTableContainer.append(this._$dateTable),this._isVerticalGroupedWorkSpace()?(this._$dateTableContainer.append(this._$allDayContainer),this._$dateTableScrollableContent.append(this._$groupTable,this._$timePanel,this._$dateTableContainer),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._$headerTablesContainer.append(this._$headerPanel)):(this._$dateTableScrollableContent.append(this._$timePanel,this._$dateTableContainer),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._$headerTablesContainer.append(this._$headerPanel,this._$allDayPanel),null===(n=this._$allDayPanel)||void 0===n||n.append(this._$allDayContainer,this._$allDayTable)),this._appendHeaderPanelEmptyCellIfNecessary(),this._$headerPanelContainer.append(this._$headerTablesContainer),this.$element().append(this._$fixedContainer,this._$headerPanelContainer,this._dateTableScrollable.$element())}_createWorkSpaceScrollableElements(){var n;this.$element().append(this._$fixedContainer),this._$flexContainer=U("<div>").addClass("dx-scheduler-work-space-flex-container"),this._createHeaderScrollable(),this._headerScrollable.$content().append(this._$headerPanel),this._appendHeaderPanelEmptyCellIfNecessary(),this._$headerPanelContainer.append(this._$headerTablesContainer),this.$element().append(this._$headerPanelContainer),this.$element().append(this._$flexContainer),this._createSidebarScrollable(),this._$flexContainer.append(this._dateTableScrollable.$element()),this._$dateTableContainer.append(this._$dateTable),this._$dateTableScrollableContent.append(this._$dateTableContainer),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._isVerticalGroupedWorkSpace()?(this._$dateTableContainer.append(this._$allDayContainer),this._$sidebarScrollableContent.append(this._$groupTable,this._$timePanel)):(this._headerScrollable.$content().append(this._$allDayPanel),null===(n=this._$allDayPanel)||void 0===n||n.append(this._$allDayContainer,this._$allDayTable),this._$sidebarScrollableContent.append(this._$timePanel)),this._sidebarScrollable.$content().append(this._$sidebarScrollableContent)}_appendHeaderPanelEmptyCellIfNecessary(){this._isRenderHeaderPanelEmptyCell()&&this._$headerPanelContainer.append(this._$headerPanelEmptyCell)}_createHeaderScrollable(){var n=U("<div>").addClass("dx-scheduler-header-scrollable").appendTo(this._$headerTablesContainer);this._headerScrollable=this._createComponent(n,xd,this._headerScrollableConfig())}_createSidebarScrollable(){var n=U("<div>").addClass("dx-scheduler-sidebar-scrollable").appendTo(this._$flexContainer);this._sidebarScrollable=this._createComponent(n,xd,{useKeyboard:!1,showScrollbar:"never",direction:"vertical",useNative:!1,updateManually:!0,bounceEnabled:!1,onScroll:e=>{this._sideBarSemaphore.take(e.scrollOffset),this._dataTableSemaphore.isFree(e.scrollOffset)&&this._dateTableScrollable.scrollTo({top:e.scrollOffset.top}),this._sideBarSemaphore.release()}})}_attachTableClasses(){if(this._addTableClass(this._$dateTable,xQ),this._isVerticalGroupedWorkSpace())for(var n=this._getGroupCount(),e=0;e<n;e++)this._addTableClass(this._allDayTables[e],eee);else this.isRenovatedRender()||this._addTableClass(this._$allDayTable,eee)}_attachHeaderTableClasses(){this._addTableClass(this._$headerPanel,"dx-scheduler-header-panel")}_addTableClass(n,e){n&&!n.hasClass(e)&&n.addClass(e)}_initMarkup(){this.cache.clear(),this._initWorkSpaceUnits(),this._initVirtualScrolling(),this._initDateTableScrollable(),this._createWorkSpaceElements(),super._initMarkup(),this.option("crossScrollingEnabled")||(this._attachTableClasses(),this._attachHeaderTableClasses()),this._toggleGroupedClass(),this._renderView(),this._attachEvents()}_render(){super._render(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()}_toggleGroupedClass(){this.$element().toggleClass("dx-scheduler-work-space-grouped",this._getGroupCount()>0)}_renderView(){this.isRenovatedRender()?this._isVerticalGroupedWorkSpace()&&this.renderRGroupPanel():this._applyCellTemplates(this._renderGroupHeader()),this.renderWorkSpace(),this.isRenovatedRender()&&this.virtualScrollingDispatcher.updateDimensions(),this._updateGroupTableHeight(),this.updateHeaderEmptyCellWidth(),this._shader=new Gfn(this)}updateCellsSelection(){var n=this.generateRenderOptions();this.viewDataProvider.updateViewData(n),this.renderRWorkSpace({timePanel:!0,dateTable:!0,allDayPanel:!0})}_renderDateTimeIndication(){}_setIndicationUpdateInterval(){}_refreshDateTimeIndication(){}_detachGroupCountClass(){[...s3].forEach(n=>{this.$element().removeClass(n)})}_attachGroupCountClass(){var n=this._groupedStrategy.getGroupCountClass(this.option("groups"));this.$element().addClass(n)}_getDateHeaderTemplate(){return this.option("dateCellTemplate")}_toggleAllDayVisibility(n){var e=this._isShowAllDayPanel();this.$element().toggleClass("dx-scheduler-work-space-all-day",e),this._changeAllDayVisibility(),n&&this._updateScrollable()}_changeAllDayVisibility(){this.cache.clear(),this.$element().toggleClass("dx-scheduler-work-space-all-day-collapsed",!this.option("allDayExpanded")&&this._isShowAllDayPanel())}_getDateTables(){return this._$dateTable.add(this._$allDayTable)}_getDateTable(){return this._$dateTable}_removeAllDayElements(){this._$allDayTable&&this._$allDayTable.remove(),this._$allDayTitle&&this._$allDayTitle.remove()}_cleanView(){var n,e,i;this.cache.clear(),this._cleanTableWidths(),this.cellsSelectionState.clearSelectedAndFocusedCells(),this.isRenovatedRender()||(this._$thead.empty(),this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable.empty(),null===(e=this._$allDayTable)||void 0===e||e.empty(),null===(i=this._$sidebarTable)||void 0===i||i.empty()),null===(n=this._shader)||void 0===n||n.clean(),delete this._interval}_clean(){Se.off(It.getDocument(),nee),this._disposeRenovatedComponents(),super._clean()}_cleanTableWidths(){this._$headerPanel.css("width",""),this._$dateTable.css("width",""),this._$allDayTable&&this._$allDayTable.css("width","")}_disposeRenovatedComponents(){var n,e,i,r,o;null===(n=this.renovatedAllDayPanel)||void 0===n||n.dispose(),this.renovatedAllDayPanel=void 0,null===(e=this.renovatedDateTable)||void 0===e||e.dispose(),this.renovatedDateTable=void 0,null===(i=this.renovatedTimePanel)||void 0===i||i.dispose(),this.renovatedTimePanel=void 0,null===(r=this.renovatedGroupPanel)||void 0===r||r.dispose(),this.renovatedGroupPanel=void 0,null===(o=this.renovatedHeaderPanel)||void 0===o||o.dispose(),this.renovatedHeaderPanel=void 0}getGroupedStrategy(){return this._groupedStrategy}getFixedContainer(){return this._$fixedContainer}getAllDayContainer(){return this._$allDayContainer}updateRender(){this.renderer.updateRender()}updateGrid(){this.renderer._renderGrid()}updateAppointments(){var n;this.option("onRenderAppointments")(),null===(n=this.dragBehavior)||void 0===n||n.updateDragSource()}_createAllDayPanelElements(){var n=this._getGroupCount();if(this._isVerticalGroupedWorkSpace()&&0!==n)for(var e=0;e<n;e++){var i=U("<div>").addClass(LVe).text(ye.format("dxScheduler-allDay"));this._allDayTitles.push(i),this._$allDayTable=U("<table>"),this._allDayTables.push(this._$allDayTable),this._$allDayPanel=U("<div>").addClass(QQ).append(this._$allDayTable),this._allDayPanels.push(this._$allDayPanel)}else this._$allDayTitle=U("<div>").addClass(LVe).text(ye.format("dxScheduler-allDay")).appendTo(this.$element()),this._$allDayTable=U("<table>"),this._$allDayPanel=U("<div>").addClass(QQ).append(this._$allDayTable)}renderWorkSpace(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.cache.clear(),this.viewDataProvider.update(this.generateRenderOptions(),n),this.isRenovatedRender()?this.renderRWorkSpace():(this._renderDateHeader(),this._renderTimePanel(),this._renderGroupAllDayPanel(),this._renderDateTable(),this._renderAllDayPanel()),this._initPositionHelper()}_renderGroupHeader(){var n=this._getGroupHeaderContainer(),i=[];if(this._getGroupCount()){var r=this._makeGroupRows(this.option("groups"),this.option("groupByDate"));this._attachGroupCountClass(),n.append(r.elements),i=r.cellTemplates}else this._detachGroupCountClass();return i}_applyCellTemplates(n){n?.forEach(function(e){e()})}_makeGroupRows(n,e){var i=this._isVerticalGroupedWorkSpace()?BM.VERTICAL:BM.HORIZONTAL;return BM.makeGroupedTable(i,n,{groupHeaderRowClass:gD,groupRowClass:gD,groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:SQ},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getGroupCount(),e)}_renderDateHeader(){var n=this._getDateHeaderContainer(),e=U("<tr>").addClass("dx-scheduler-header-row"),i=this._getCellCount(),r=this._getDateHeaderTemplate(),o=this._getCalculateHeaderCellRepeatCount(),a=[],s=this.isGroupedByDate();if(s){for(var S=s?this._getGroupCount():1,T=0;T<i;T++)this._renderDateHeaderTemplate(e,T,T*o,r,a).attr("colSpan",S);n.prepend(e)}else{for(var l=0;l<o;l++)for(var u=0;u<i;u++)this._renderDateHeaderTemplate(e,u,l*i+u,r,a);n.append(e)}return this._applyCellTemplates(a),e}_renderDateHeaderTemplate(n,e,i,r,o){var a=this.isGroupedByDate()?Math.floor(i/this._getGroupCount()):i,s=this.viewDataProvider.completeDateHeaderMap,{text:l,startDate:u}=s[s.length-1][a],f=U("<th>").addClass(this._getHeaderPanelCellClass(e)).attr("title",l);return null!=r&&r.render?o.push(r.render.bind(r,{model:mt({text:l,date:u},this._getGroupsForDateHeaderTemplate(i)),index:i,container:kn(f)})):f.text(l),n.append(f),f}_getGroupsForDateHeaderTemplate(n){var i,r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()){i=this._getGroupIndex(0,n*e);var o=cD(i,this.option("groups"));r=J8(o)}return{groups:r,groupIndex:i}}_getHeaderPanelCellClass(n){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-header-panel-cell "+tee,n+1,void 0,void 0,this.isGroupedByDate())}_renderAllDayPanel(n){var e=this._getCellCount();this._isVerticalGroupedWorkSpace()||(e*=this._getGroupCount()||1);var i=this._renderTableBody({container:kn(this._allDayPanels.length?this._allDayTables[n]:this._$allDayTable),rowCount:1,cellCount:e,cellClass:this._getAllDayPanelCellClass.bind(this),rowClass:"dx-scheduler-all-day-table-row",cellTemplate:this.option("dataCellTemplate"),getCellData:this._oldRender_getAllDayCellData(n),groupIndex:n},!0);this._toggleAllDayVisibility(!0),this._applyCellTemplates(i)}_renderGroupAllDayPanel(){if(this._isVerticalGroupedWorkSpace())for(var n=this._getGroupCount(),e=0;e<n;e++)this._renderAllDayPanel(e)}_getAllDayPanelCellClass(n,e){return this._groupedStrategy.addAdditionalGroupCellClasses(g0+" "+tee,e+1)}_renderTimePanel(){var n=this._groupedStrategy.calculateTimeCellRepeatCount(),e=(i,r)=>{var o=0;return this.isAllDayPanelVisible&&(o=1),this.isGroupedAllDayPanel()&&(o=Math.ceil((i+1)/this._getRowCount())),this.viewDataProvider.completeTimePanelMap[i+o][r]};this._renderTableBody({container:kn(this._$timePanel),rowCount:this._getTimePanelRowCount()*n,cellCount:1,cellClass:this._getTimeCellClass.bind(this),rowClass:"dx-scheduler-time-panel-row",cellTemplate:this.option("timeCellTemplate"),getCellText:i=>e(i,"text"),getCellDate:i=>e(i,"startDate"),groupCount:this._getGroupCount(),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayTitles:void 0,getTemplateData:(i=>{if(!this._isVerticalGroupedWorkSpace())return{};var r=this._getGroupIndex(i,0),o=cD(r,this.option("groups"));return{groupIndex:r,groups:J8(o)}}).bind(this)})}_getTimeCellClass(n){var e=RVe+" "+NVe;return this._isVerticalGroupedWorkSpace()?this._groupedStrategy.addAdditionalGroupCellClasses(e,n,n):e}_renderDateTable(){var n=this._getGroupCount();this._renderTableBody({container:kn(this._$dateTable),rowCount:this._getTotalRowCount(n),cellCount:this._getTotalCellCount(n),cellClass:this._getDateTableCellClass.bind(this),rowClass:wQ,cellTemplate:this.option("dataCellTemplate"),getCellData:(e,i,r)=>{var a=i;if(this.isGroupedAllDayPanel()){var s=this._getRowCount();a+=Math.ceil(i/s)}var u=this.viewDataProvider.viewDataMap.dateTableMap[a][r].cellData;return{value:this._filterCellDataFields(u),fullValue:u,key:GVe}},allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayPanels:void 0,groupCount:n,groupByDate:this.option("groupByDate")})}_insertAllDayRowsIntoDateTable(){return this._groupedStrategy.insertAllDayRowsIntoDateTable()}_renderTableBody(n,e){var i=[];return e?i=BM.makeTable(n):this._applyCellTemplates(BM.makeTable(n)),i}};var{tableCreator:$Ve}=UQ,qVe="dx-scheduler-group-table";class YVe extends KVe{get type(){return La.AGENDA}get renderingStrategy(){return this.invoke("getLayoutManager").getRenderingStrategyInstance()}get appointmentDataProvider(){return this.option("getAppointmentDataProvider")()}getStartViewDate(){return this._startViewDate}_init(){super._init(),this._activeStateUnit=void 0}_getDefaultOptions(){return se(super._getDefaultOptions(),{agendaDuration:7,rowHeight:60,noDataText:""})}_optionChanged(n){var i=n.value;switch(n.name){case"agendaDuration":break;case"noDataText":case"rowHeight":this._recalculateAgenda(this._rows);break;case"groups":i&&i.length?this._$groupTable||(this._initGroupTable(),this._dateTableScrollable.$content().prepend(this._$groupTable)):this._$groupTable&&(this._$groupTable.remove(),this._$groupTable=null,this._detachGroupCountClass()),super._optionChanged(n);break;default:super._optionChanged(n)}}_renderFocusState(){}_renderFocusTarget(){}_cleanFocusState(){}supportAllDayRow(){return!1}_isVerticalGroupedWorkSpace(){return!1}_getElementClass(){return"dx-scheduler-agenda"}_calculateStartViewDate(){return((t,n)=>{var e=new Date(t);return zv(e,n)})(this.option("currentDate"),this.option("startDayHour"))}_getRowCount(){return this.option("agendaDuration")}_getCellCount(){return 1}_getTimePanelRowCount(){return this.option("agendaDuration")}_renderAllDayPanel(){}_toggleAllDayVisibility(){}_initWorkSpaceUnits(){this._initGroupTable(),this._$timePanel=U("<table>").addClass(U8e),this._$dateTable=U("<table>").addClass(xQ),this._$dateTableScrollableContent=U("<div>").addClass("dx-scheduler-date-table-scrollable-content"),this._$dateTableContainer=U("<div>").addClass("dx-scheduler-date-table-container")}_initGroupTable(){var n=this.option("groups");n&&n.length&&(this._$groupTable=U("<table>").addClass(qVe))}_renderView(){this._startViewDate=this._calculateStartViewDate(),this._rows=[],this._initPositionHelper()}_recalculateAgenda(n){var e=[];this._cleanView(),this._rowsIsEmpty(n)?this._renderNoData():(this._rows=n,this._$groupTable&&(e=this._renderGroupHeader(),this._setGroupHeaderCellsHeight()),this._renderTimePanel(),this._renderDateTable(),this.invoke("onAgendaReady",n),this._applyCellTemplates(e),this._dateTableScrollable.update())}_renderNoData(){this._$noDataContainer=U("<div>").addClass("dx-scheduler-agenda-nodata").html(this.option("noDataText")),this._dateTableScrollable.$content().append(this._$noDataContainer)}_setTableSizes(){}_toggleHorizontalScrollClass(){}_createCrossScrollingConfig(){}_setGroupHeaderCellsHeight(){var n=this._getGroupHeaderCells().filter(function(o,a){return!a.getAttribute("rowSpan")}),e=this._removeEmptyRows(this._rows);if(e.length)for(var i=0;i<n.length;i++){var r=n.eq(i).find(".dx-scheduler-group-header-content");RO(r,this._getGroupRowHeight(e[i]))}}_rowsIsEmpty(n){for(var e=!0,i=0;i<n.length;i++)for(var r=n[i],o=0;o<r.length;o++)if(r[o]){e=!1;break}return e}_attachGroupCountClass(){var n=d3e(this.option("groups"));this.$element().addClass(n)}_removeEmptyRows(n){for(var e=[],i=0;i<n.length;i++)n[i].length&&n[i].some(function(o){return o>0})&&e.push(n[i]);return e}_getGroupHeaderContainer(){return this._$groupTable}_makeGroupRows(){var n=((t,n,e)=>{var i=kM(t);return g8e(n,i,e)})(this.option("loadedResources"),(a,s)=>e3(this.option("getResourceDataAccessors")(),a,s),this.option("getFilteredItems")()),e=this.option("resourceCellTemplate"),i=SQ,r=[],o=$Ve.makeGroupedTableFromJSON($Ve.VERTICAL,n,{cellTag:"th",groupTableClass:qVe,groupRowClass:gD,groupCellClass:this._getGroupHeaderClass(),groupCellCustomContent(a,s,l,u){var f=It.createElement("div"),S=It.createElement("div");f.className=i,S.appendChild(s),f.appendChild(S),f.className=i,e&&e.render?r.push(e.render.bind(e,{model:{data:u.data,id:u.value,color:u.color,text:s.textContent},container:kn(U(f)),index:l})):(S.appendChild(s),f.appendChild(S)),a.appendChild(f)},cellTemplate:e});return{elements:U(o).find(".".concat(gD)),cellTemplates:r}}_cleanView(){this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable&&this._$groupTable.empty(),this._$noDataContainer&&(this._$noDataContainer.empty(),this._$noDataContainer.remove(),delete this._$noDataContainer)}_createWorkSpaceElements(){this._createWorkSpaceStaticElements()}_createWorkSpaceStaticElements(){this._$dateTableContainer.append(this._$dateTable),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._$groupTable&&this._$dateTableScrollableContent.prepend(this._$groupTable),this._$dateTableScrollableContent.append(this._$timePanel,this._$dateTableContainer),this.$element().append(this._dateTableScrollable.$element())}_renderDateTable(){this._renderTableBody({container:kn(this._$dateTable),rowClass:wQ,cellClass:this._getDateTableCellClass()})}_attachTablesEvents(){}_attachEvents(){}_cleanCellDataCache(){}isIndicationAvailable(){return!1}_prepareCellTemplateOptions(n,e,i,r){var o=this.option("groups"),a={},s=!!o.length;(s&&c8e(i,o)||[]).forEach(function(f,S){a[o[S].name]=f});var u=s?this._getGroupIndexByResourceId(a):void 0;return{model:{text:n,date:e,groups:a,groupIndex:u},container:kn(r),index:i}}_renderTableBody(n){var e=[],i=n.cellTemplate;this._$rows=[];var r,o=function(a,s){if(s){var l,u,f,S=U("<tr>"),T=U("<td>");if(xo(T,this._getRowHeight(s)),n.getStartDate&&(l=n.getStartDate&&n.getStartDate(a),u=Gn.format(l,"d"),f=Gn.format(l,IQ)),i&&i.render){var R=this._prepareCellTemplateOptions(u+" "+f,l,r,T);e.push(i.render.bind(i,R))}else u&&f&&T.addClass("dx-scheduler-agenda-date").text(u+" "+f);n.rowClass&&S.addClass(n.rowClass),n.cellClass&&T.addClass(n.cellClass),S.append(T),this._$rows.push(S)}}.bind(this);for(r=0;r<this._rows.length;r++)we(this._rows[r],o),this._setLastRowClass();U(n.container).append(U("<tbody>").append(this._$rows)),this._applyCellTemplates(e)}_setLastRowClass(){this._rows.length>1&&this._$rows.length&&this._$rows[this._$rows.length-1].addClass("dx-scheduler-date-table-last-row")}_renderTimePanel(){this._renderTableBody({container:kn(this._$timePanel),rowCount:this._getTimePanelRowCount(),cellCount:1,rowClass:"dx-scheduler-time-panel-row",cellClass:"dx-scheduler-time-panel-cell",cellTemplate:this.option("dateCellTemplate"),getStartDate:this._getTimePanelStartDate.bind(this)})}_getTimePanelStartDate(n){var e=new Date(this.option("currentDate"));return new Date(e.setDate(e.getDate()+n))}_getRowHeight(n){var e=this.option("rowHeight");return n?e*n+5*(n-1)+20:0}_getGroupRowHeight(n){if(n){for(var e=0,i=0;i<n.length;i++)e+=this._getRowHeight(n[i]);return e}}_calculateRows(n){return this.renderingStrategy.calculateRows(n,this.option("agendaDuration"),this.option("currentDate"))}onDataSourceChanged(n){super.onDataSourceChanged(),this._renderView();var e=this._calculateRows(n);this._recalculateAgenda(e)}getAgendaVerticalStepHeight(){return this.option("rowHeight")}getEndViewDate(){var n=new Date(this.option("currentDate")),e=this.option("agendaDuration");n.setHours(this.option("endDayHour"));var i=n.setDate(n.getDate()+e-1)-6e4;return new Date(i)}getEndViewDateByEndDayHour(){return this.getEndViewDate()}getCellDataByCoordinates(){return{startDate:null,endDate:null}}updateScrollPosition(n){var e=this.timeZoneCalculator.createDate(n,{path:"toGrid"}),i=this.getVisibleBounds(),r=e.getHours(),o=e.getMinutes();this.needUpdateScrollPosition(r,o,i,e)&&this.scrollToTime(r,o,e)}needUpdateScrollPosition(n,e,i){var r=!1;return(n<i.top.hours||n>i.bottom.hours)&&(r=!0),n===i.top.hours&&e<i.top.minutes&&(r=!0),n===i.bottom.hours&&e>i.top.minutes&&(r=!0),r}renovatedRenderSupported(){return!1}_setSelectedCellsByCellData(){}_getIntervalDuration(){return bt.dateToMilliseconds("day")*this.option("intervalCount")}getDOMElementsMetaData(){return{dateTableCellsMeta:[[{}]],allDayPanelCellsMeta:[{}]}}}On("dxSchedulerAgenda",YVe);const Cvn=YVe;var yD=bt.dateToMilliseconds,ZVe="dx-scheduler-date-time-indicator",iee="dx-scheduler-time-panel-current-time-cell";class XVe extends KVe{_getToday(){return u3e(this.option("indicatorTime"),this.timeZoneCalculator)}isIndicationOnView(){if(this.option("showCurrentTimeIndicator")){var n=this._getToday(),e=bt.trimTime(this.getEndViewDate());return bt.dateInRange(n,this.getStartViewDate(),new Date(e.getTime()+yD("day")))}return!1}isIndicationAvailable(){return!!Rn()&&this._getToday()>=bt.trimTime(new Date(this.getStartViewDate()))}isIndicatorVisible(){var n=this._getToday(),e=new Date(this.getEndViewDate().getTime()+yD("minute")-1),i=new Date(this.getStartViewDate());return i.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),bt.dateInRange(n,i,e)}_renderDateTimeIndication(){if(this.isIndicationAvailable()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(),this.isIndicationOnView()&&this.isIndicatorVisible())){var n=this._getGroupCount()||1,e=this._dateTableScrollable.$content(),i=this.getIndicationHeight(),r=this._getRtlOffset(this.getCellWidth());this._renderIndicator(i,r,e,n),this._setCurrentTimeCells()}}_renderIndicator(n,e,i,r){for(var o=this.isGroupedByDate(),a=o?1:r,s=0;s<a;s++){var l=this._createIndicator(i);oa(l,o?this.getCellWidth()*r:this.getCellWidth()),this._groupedStrategy.shiftIndicator(l,n,e,s)}}_createIndicator(n){var e=U("<div>").addClass(ZVe);return n.append(e),e}_getRtlOffset(n){return this.option("rtlEnabled")?Mi(this._dateTableScrollable.$content().get(0)).width-this.getTimePanelWidth()-n:0}_setIndicationUpdateInterval(){!this.option("showCurrentTimeIndicator")||0===this.option("indicatorUpdateInterval")||(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))}_clearIndicatorUpdateInterval(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)}_isVerticalShader(){return!0}getIndicationWidth(n){var e=this.getCellWidth()*this._getCellCount(),i=this._getIndicatorDuration();i>this._getCellCount()&&(i=this._getCellCount());var r=i*this.getRoundedCellWidth(n,n*this._getCellCount(),i);return e<r?e:r}getIndicatorOffset(n){var e=this._getIndicatorDuration()-1;return e*this.getRoundedCellWidth(n,n*this._getCellCount(),e)}_getIndicatorDuration(){var n=this._getToday(),e=new Date(this.getStartViewDate()),i=n.getTime()-e.getTime();return"workWeek"===this.option("type")&&(i-=this._getWeekendsCount(Math.round(i/yD("day")))*yD("day")),Math.ceil((i+1)/yD("day"))}getIndicationHeight(){var n=qr.getDateWithoutTimezoneChange(this._getToday()),e=this.getCellHeight(),i=new Date(this.getStartViewDate());return this.isIndicationOnView()&&i.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),(n.getTime()-i.getTime())/this.getCellDuration()*e}_dispose(){this._clearIndicatorUpdateInterval(),super._dispose.apply(this,arguments)}_refreshDateTimeIndication(){var n;this._cleanDateTimeIndicator(),this._cleanCurrentTimeCells(),null===(n=this._shader)||void 0===n||n.clean(),this._renderDateTimeIndication()}_setCurrentTimeCells(){var n=this._getTimePanelCells();this._getCurrentTimePanelCellIndices().forEach(i=>{n.eq(i).addClass(iee)})}_isCurrentTimeHeaderCell(n){if(this.isIndicationOnView()){var e=this.viewDataProvider.completeDateHeaderMap;return bt.sameDate(e[e.length-1][n].startDate,this._getToday())}return!1}_getHeaderPanelCellClass(n){var e=super._getHeaderPanelCellClass(n);return this._isCurrentTimeHeaderCell(n)?e+" "+i3:e}_cleanView(){super._cleanView(),this._cleanDateTimeIndicator()}_dimensionChanged(){super._dimensionChanged(),this._refreshDateTimeIndication()}_cleanDateTimeIndicator(){this.$element().find("."+ZVe).remove()}_cleanCurrentTimeCells(){this.$element().find(".".concat(iee)).removeClass(iee)}_cleanWorkSpace(){super._cleanWorkSpace(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()}_optionChanged(n){switch(n.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":case"allDayExpanded":case"crossScrollingEnabled":super._optionChanged(n),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:super._optionChanged(n)}}_getDefaultOptions(){return se(super._getDefaultOptions(),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*yD("minute"),shadeUntilCurrentTime:!0})}_getCurrentTimePanelCellIndices(){var o,n=this._getTimePanelRowCount(),e=this._getToday(),i=this.getCellIndexByDate(e),{rowIndex:r}=this._getCellCoordinatesByIndex(i);if(void 0===r)return[];o=0===r?[r]:r%2==0?[r-1,r]:[r,r+1];var a=this._isVerticalGroupedWorkSpace()?this._getGroupCount():1;return[...new Array(a)].reduce((s,l,u)=>[...s,...o.map(f=>n*u+f)],[])}}On("dxSchedulerWorkSpace",XVe);const ree=XVe,xvn=class bvn extends G3e{renderShader(){for(var n=this._workSpace._isHorizontalGroupedWorkSpace()?this._workSpace._getGroupCount():1,e=0;e<n;e++){var i=0===e,r=i?this._$shader:this.createShader();this._workSpace.isGroupedByDate()?this._customizeGroupedByDateShader(r,e):this._customizeShader(r,e),!i&&this._shader.push(r)}}_customizeShader(n,e){var i=this._workSpace.getIndicationWidth();if(this._applyShaderWidth(n,i),e>=1){var r=this._workSpace,o=r._getCellCount()*r.getCellWidth();n.css("left",o)}else n.css("left",0)}_applyShaderWidth(n,e){var i=Mi(this._$container.get(0)).width;e>i&&(e=i),e>0&&oa(n,e)}_customizeGroupedByDateShader(n,e){var u,i=this._workSpace.getIndicationCellCount(),r=Math.floor(i),o=i-r,a=0===e,s=this._workSpace,l=a?s.getIndicationWidth():o*s.getCellWidth();this._applyShaderWidth(n,l),u=a?s._getCellCount()*s.getCellWidth()*e:s.getCellWidth()*r*s._getGroupCount()+e*s.getCellWidth(),n.css("left",u)}};var wvn=(t,n,e)=>{if(!qr.isTimezoneChangeInDate(n))return n;var{cellCountInDay:i,interval:r,startDayHour:o,startViewDate:a}=e,s=s3e(a,o),l=t%i;return s.setTime(s.getTime()+l*r),s},Svn=["dateCellTemplate","dateHeaderData","groupByDate","groupOrientation","groups","timeCellTemplate"],{isMaterial:Dvn}=IVe(),JVe=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let Ovn=(()=>{class t extends so{constructor(e){super(e),this.state={}}get isHorizontalGrouping(){var{groupByDate:e,groupOrientation:i,groups:r}=this.props;return FM(r,i)&&!e}get restAttributes(){return ki(this.props,Svn)}render(){var e=this.props;return(t=>{var{isHorizontalGrouping:n,props:{dateCellTemplate:e,dateHeaderData:i,timeCellTemplate:r}}=t,{dataMap:o,isMonthDateHeader:a,leftVirtualCellCount:s,leftVirtualCellWidth:l,rightVirtualCellCount:u,rightVirtualCellWidth:f,weekDayLeftVirtualCellCount:S,weekDayLeftVirtualCellWidth:T,weekDayRightVirtualCellCount:R,weekDayRightVirtualCellWidth:L}=i;return Pl(o.map((z,j)=>{var Y=o.length,ie=Y-1===j,te=Y>1&&0===j,re=Dvn&&(a||te),he=s,fe=u,Te=f,Re=l;return te&&(he=S,fe=R,Te=L,Re=T),Wn(2,Hb,{className:"dx-scheduler-header-row",leftVirtualCellWidth:Re,leftVirtualCellCount:he,rightVirtualCellWidth:Te,rightVirtualCellCount:fe,children:z.map(He=>{var{colSpan:Ze,endDate:at,groupIndex:vt,groups:Bt,index:St,isFirstGroupCell:ct,isLastGroupCell:Nt,key:Kt,startDate:on,text:hn,today:bn}=He;return Wn(2,TVe,{startDate:on,endDate:at,groups:n?Bt:void 0,groupIndex:n?vt:void 0,today:bn,index:St,text:hn,isFirstGroupCell:ct,isLastGroupCell:Nt,isWeekDayCell:te,colSpan:Ze,splitText:re,dateCellTemplate:e,timeCellTemplate:r,isTimeCellTemplate:ie},Kt)})},j.toString())}),0)})({props:mt({},e,{dateCellTemplate:JVe(e.dateCellTemplate),timeCellTemplate:JVe(e.timeCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})}}return t.defaultProps=kVe,t})();var Tvn=["className","dateCellTemplate","dateHeaderData","dateHeaderTemplate","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","isRenderDateHeader","resourceCellTemplate","timeCellTemplate"],D3=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let kvn=(()=>{class t extends Kd{constructor(e){super(e),this.state={}}createEffects(){return[$d()]}get restAttributes(){return ki(this.props,Tvn)}render(){var e=this.props;return(t=>{var{props:{dateCellTemplate:n,dateHeaderData:e,groupByDate:i,groupOrientation:r,groupPanelData:o,groups:a,isRenderDateHeader:s,resourceCellTemplate:l,timeCellTemplate:u}}=t;return Wn(2,FVe,{dateHeaderTemplate:Ovn,dateHeaderData:e,groupPanelData:o,groupByDate:i,groups:a,groupOrientation:r,isRenderDateHeader:s,resourceCellTemplate:l,dateCellTemplate:n,timeCellTemplate:u})})({props:mt({},e,{dateCellTemplate:D3(e.dateCellTemplate),timeCellTemplate:D3(e.timeCellTemplate),dateHeaderTemplate:D3(e.dateHeaderTemplate),resourceCellTemplate:D3(e.resourceCellTemplate)}),restAttributes:this.restAttributes})}}return t.defaultProps=AVe,t})();class QVe extends EVe{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["dateCellTemplate","timeCellTemplate","dateHeaderTemplate","resourceCellTemplate"],props:["dateHeaderData","isRenderDateHeader","dateCellTemplate","timeCellTemplate","dateHeaderTemplate","groups","groupOrientation","groupPanelData","groupByDate","height","className","resourceCellTemplate"]}}get _viewComponent(){return kvn}}On("dxTimelineHeaderPanelLayout",QVe);var{tableCreator:oee}=UQ,e6e="dx-scheduler-group-table",t6e="dx-scheduler-header-panel-cell",n6e="dx-scheduler-header-panel-week-cell",Uv=bt.dateToMilliseconds;class i6e extends ree{get verticalGroupTableClass(){return e6e}get viewDirection(){return"horizontal"}get renovatedHeaderPanelComponent(){return QVe}getGroupTableWidth(){return this._$sidebarTable?ii(this._$sidebarTable):0}_getTotalRowCount(n){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(n=n||1,this._getRowCount()*n)}_getFormat(){return"shorttime"}_getWorkSpaceHeight(){return this.option("crossScrollingEnabled")&&Rn()?Mi(this._$dateTable.get(0)).height:Mi(this.$element().get(0)).height}_dateTableScrollableConfig(){var n=super._dateTableScrollableConfig();return this.option("crossScrollingEnabled")?n:se(n,{direction:"horizontal"})}_needCreateCrossScrolling(){return!0}_headerScrollableConfig(){var n=super._headerScrollableConfig();return se(n,{scrollByContent:!0})}supportAllDayRow(){return!1}_getGroupHeaderContainer(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable}_insertAllDayRowsIntoDateTable(){return!1}_needRenderWeekHeader(){return!1}_incrementDate(n){n.setDate(n.getDate()+1)}getIndicationCellCount(){var n=this._getTimeDiff();return this._calculateDurationInCells(n)}_getTimeDiff(){var n=this._getToday(),e=this._getIndicationFirstViewDate(),i=this.getStartViewDate(),r=qr.getDaylightOffsetInMs(i,n);return r&&(n=new Date(n.getTime()+r)),n.getTime()-e.getTime()}_calculateDurationInCells(n){var e=this._getToday(),i=Math.floor(n/Uv("day")),r=(n-i*Uv("day")-this.option("startDayHour")*Uv("hour"))/this.getCellDuration();return e.getHours()>this.option("endDayHour")&&(r=this._getCellCountInDay()),r<0&&(r=0),i*this._getCellCountInDay()+r}getIndicationWidth(){if(this.isGroupedByDate()){var n=this.getIndicationCellCount(),e=Math.floor(n),i=n-e;return this.getCellWidth()*(e*this._getGroupCount()+i)}return this.getIndicationCellCount()*this.getCellWidth()}_isVerticalShader(){return!1}_isCurrentTimeHeaderCell(){return!1}_setTableSizes(){var n=this._getWorkSpaceMinHeight();xo(this._$sidebarTable,n),xo(this._$dateTable,n),super._setTableSizes(),this.virtualScrollingDispatcher.updateDimensions()}_getWorkSpaceMinHeight(){var n=this._getWorkSpaceHeight(),e=Zn(this.$element(),!0)-this.getHeaderPanelHeight()-2-10;return n<e&&(n=e),n}_getCellCoordinatesByIndex(n){return{columnIndex:n%this._getCellCount(),rowIndex:0}}_getCellByCoordinates(n,e){var i=this._groupedStrategy.prepareCellIndexes(n,e);return this._$dateTable.find("tr").eq(i.rowIndex).find("td").eq(i.columnIndex)}_getWorkSpaceWidth(){return ii(this._$dateTable,!0)}_getIndicationFirstViewDate(){return bt.trimTime(new Date(this.getStartViewDate()))}_getIntervalBetween(n,e){var i=this.option("startDayHour"),r=this.option("endDayHour"),o=this.getStartViewDate(),a=o.getTime(),s=(24-r+i)*Uv("hour"),l=bt.getTimezonesDifference(o,n),u=n.getTime(),f=u-a-l,S=Math.floor(f/Uv("day")),T=f-S*Uv("day"),R=0,L=this._getCellCountInDay()*(S-this._getWeekendsCount(S)),z=u-bt.trimTime(new Date(n)).getTime(),j=L*this.option("hoursInterval")*Uv("hour");return e||(n.getHours()<i?R=T-s+z:n.getHours()>=i&&n.getHours()<r?R=T:n.getHours()>=i&&n.getHours()>=r?R=T-(z-r*Uv("hour")):S||(j=f),j+=R),j}_getWeekendsCount(){return 0}getAllDayContainer(){return null}getTimePanelWidth(){return 0}getIntervalDuration(n){return this.getCellDuration()}getCellMinWidth(){return 0}getWorkSpaceLeftOffset(){return 0}scrollToTime(n,e,i){var r=this._getScrollCoordinates(n,e,i),o=this.getScrollable(),a=this.option("rtlEnabled")?Mi(this.getScrollableContainer().get(0)).width:0;this.option("templatesRenderAsynchronously")?setTimeout(function(){o.scrollBy({left:r.left-o.scrollLeft()-a,top:0})}):o.scrollBy({left:r.left-o.scrollLeft()-a,top:0})}renderRAllDayPanel(){}renderRTimeTable(){}_renderGroupAllDayPanel(){}generateRenderOptions(){return mt({},super.generateRenderOptions(!0),{isGenerateWeekDaysHeaderData:this._needRenderWeekHeader(),getDateForHeaderText:wvn})}_init(){super._init(),this.$element().addClass("dx-scheduler-timeline"),this._$sidebarTable=U("<div>").addClass(e6e)}_getDefaultGroupStrategy(){return"vertical"}_toggleGroupingDirectionClass(){this.$element().toggleClass("dx-scheduler-work-space-horizontal-grouped",this._isHorizontalGroupedWorkSpace())}_getDefaultOptions(){return se(super._getDefaultOptions(),{groupOrientation:"vertical"})}_createWorkSpaceElements(){this._createWorkSpaceScrollableElements()}_toggleAllDayVisibility(){}_changeAllDayVisibility(){}_getDateHeaderTemplate(){return this.option("timeCellTemplate")}_renderView(){var n;this.isRenovatedRender()||(n=this._renderGroupHeader()),this.renderWorkSpace(),this.isRenovatedRender()&&this.virtualScrollingDispatcher.updateDimensions(),this._shader=new xvn(this),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this.isRenovatedRender()&&this._isVerticalGroupedWorkSpace()&&this.renderRGroupPanel(),this.updateHeaderEmptyCellWidth(),this._applyCellTemplates(n)}_setHorizontalGroupHeaderCellsHeight(){}_setCurrentTimeCells(){var n=this._getTimePanelCells();this._getCurrentTimePanelCellIndices().forEach(i=>{n.eq(i).addClass(i3)})}_cleanCurrentTimeCells(){this.$element().find(".".concat(i3)).removeClass(i3)}_getTimePanelCells(){return this.$element().find(".".concat(t6e,":not(.").concat(n6e,")"))}_getCurrentTimePanelCellIndices(){var n=this._getCellCount(),e=this._getToday(),i=this.getCellIndexByDate(e),{columnIndex:r}=this._getCellCoordinatesByIndex(i);if(void 0===r)return[];var o=this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()?this._getGroupCount():1;return[...new Array(o)].map((a,s)=>n*s+r)}_renderTimePanel(){}_renderAllDayPanel(){}_createAllDayPanelElements(){}_renderDateHeader(){var n=super._renderDateHeader();if(this._needRenderWeekHeader()){for(var e=new Date(this.getStartViewDate()),i=new Date(e),r=[],o=this._getGroupCount(),a=this._getCellCountInDay(),s=this.isGroupedByDate()?a*o:a,l=this.option("dateCellTemplate"),u=this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()?o:1,f=this.viewDataProvider.viewDataGenerator.daysInInterval*this.option("intervalCount"),S=f*u,T=0;T<S;T++){var R=U("<th>"),L=u3(i);if(l){var z={model:mt({text:L,date:new Date(i)},this._getGroupsForDateHeaderTemplate(T,s)),container:R,index:T};l.render(z)}else R.text(L);R.addClass(t6e).addClass(n6e).attr("colSpan",s),r.push(R),T%f==f-1?i=new Date(e):this._incrementDate(i)}var j=U("<tr>").addClass("dx-scheduler-header-row").append(r);n.before(j)}}_renderIndicator(n,e,i,r){var o,a=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))o=this._createIndicator(i),xo(o,Mi(i.get(0)).height),o.css("left",e?e-a:a);else for(var s=0;s<r;s++){var l=this.isGroupedByDate()?s*this.getCellWidth():this._getCellCount()*this.getCellWidth()*s;o=this._createIndicator(i),xo(o,Mi(i.get(0)).height),o.css("left",e?e-a-l:a+l)}}_makeGroupRows(n,e){var i="vertical"===this.option("groupOrientation")?oee.VERTICAL:oee.HORIZONTAL;return oee.makeGroupedTable(i,n,{groupRowClass:gD,groupHeaderRowClass:gD,groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:SQ},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()),e)}}On("dxSchedulerTimeline",i6e);const aee=i6e;class r6e extends aee{get type(){return La.TIMELINE_DAY}_getElementClass(){return"dx-scheduler-timeline-day"}_needRenderWeekHeader(){return this._isWorkSpaceWithCount()}}On("dxSchedulerTimelineDay",r6e);const Nvn=r6e;class o6e extends aee{get type(){return La.TIMELINE_MONTH}get viewDirection(){return"horizontal"}get renovatedHeaderPanelComponent(){return ZQ}_renderView(){super._renderView(),this._updateScrollable()}_getElementClass(){return"dx-scheduler-timeline-month"}_getDateHeaderTemplate(){return this.option("dateCellTemplate")}_calculateDurationInCells(n){return n/this.getCellDuration()}isIndicatorVisible(){return!0}_getFormat(){return u3}_getIntervalBetween(n){var e=this.getStartViewDate(),i=bt.getTimezonesDifference(e,n);return n.getTime()-(e.getTime()-36e5*this.option("startDayHour"))-i}_getViewStartByOptions(){return LM(this.option("startDate"),this.option("currentDate"),this.option("intervalCount"),bt.getFirstMonthDate(this.option("startDate")))}generateRenderOptions(){return mt({},super.generateRenderOptions(!0),{getDateForHeaderText:(e,i)=>i})}}On("dxSchedulerTimelineMonth",o6e);const Hvn=o6e;class see extends aee{get type(){return La.TIMELINE_WEEK}_getElementClass(){return"dx-scheduler-timeline-week"}_getHeaderPanelCellWidth(n){return Mi(n.children().first().get(0)).width}_needRenderWeekHeader(){return!0}_incrementDate(n){n.setDate(n.getDate()+1)}}On("dxSchedulerTimelineWeek",see);class a6e extends see{get type(){return La.TIMELINE_WORK_WEEK}constructor(){super(...arguments),this._getWeekendsCount=oVe}_getElementClass(){return"dx-scheduler-timeline-work-week"}_incrementDate(n){5===n.getDay()&&n.setDate(n.getDate()+2),super._incrementDate(n)}}On("dxSchedulerTimelineWorkWeek",a6e);const Gvn=a6e,s6e=class jvn extends ree{_getFormat(){return u3}generateRenderOptions(){return mt({},super.generateRenderOptions(),{isGenerateTimePanelData:!0})}_isRenderHeaderPanelEmptyCell(){return!0}};class l6e extends s6e{get type(){return La.DAY}_getElementClass(){return"dx-scheduler-work-space-day"}_renderDateHeader(){return 1===this.option("intervalCount")?null:super._renderDateHeader()}renderRHeaderPanel(){1===this.option("intervalCount")?super.renderRHeaderPanel(!1):super.renderRHeaderPanel(!0)}}On("dxSchedulerWorkSpaceDay",l6e);const $vn=l6e;var qvn=["allDay","ariaLabel","children","className","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"],Zvn=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let Xvn=(()=>{class t extends so{constructor(e){super(e),this.state={},this.__getterCache={}}get classes(){var{className:e,firstDayOfMonth:i,otherMonth:r,today:o}=this.props;return fs({"dx-scheduler-date-table-other-month":!!r,"dx-scheduler-date-table-current-date":!!o,"dx-scheduler-date-table-first-of-month":!!i,[e]:!!e})}get contentTemplateProps(){return void 0!==this.__getterCache.contentTemplateProps?this.__getterCache.contentTemplateProps:this.__getterCache.contentTemplateProps=(()=>{var{index:e,text:i}=this.props;return{data:{text:i},index:e}})()}get restAttributes(){return ki(this.props,qvn)}componentWillUpdate(e,i,r){(this.props.index!==e.index||this.props.text!==e.text)&&(this.__getterCache.contentTemplateProps=void 0)}render(){var e=this.props;return(t=>{var{classes:n,contentTemplateProps:e,props:{dataCellTemplate:i,endDate:r,groupIndex:o,groups:a,index:s,isFirstGroupCell:l,isFocused:u,isLastGroupCell:f,isSelected:S,startDate:T,text:R}}=t;return Wn(2,C3,{className:n,dataCellTemplate:i,startDate:T,endDate:r,text:R,groups:a,groupIndex:o,index:s,isFirstGroupCell:l,isLastGroupCell:f,isSelected:S,isFocused:u,contentTemplateProps:e,children:er(1,"div","dx-scheduler-date-table-cell-text",R,0)})})({props:mt({},e,{dataCellTemplate:Zvn(e.dataCellTemplate)}),classes:this.classes,contentTemplateProps:this.contentTemplateProps,restAttributes:this.restAttributes})}}return t.defaultProps=$Q,t})();var Jvn=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"],u6e=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let eyn=(()=>{class t extends Kd{constructor(e){super(e),this.state={}}createEffects(){return[$d()]}get restAttributes(){return ki(this.props,Jvn)}render(){var e=this.props;return(t=>{var{props:{addDateTableClass:n,addVerticalSizesClassToRows:e,dataCellTemplate:i,groupOrientation:r,tableRef:o,viewData:a,width:s},restAttributes:l}=t;return Nr(Wn(2,gVe,mt({viewData:a,groupOrientation:r,addDateTableClass:n,dataCellTemplate:i,cellTemplate:Xvn,tableRef:o,addVerticalSizesClassToRows:e,width:s},l)))})({props:mt({},e,{cellTemplate:u6e(e.cellTemplate),dataCellTemplate:u6e(e.dataCellTemplate)}),restAttributes:this.restAttributes})}}return t.defaultProps=hVe,t})();class d6e extends WQ{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["cellTemplate","dataCellTemplate"],props:["cellTemplate","viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}get _viewComponent(){return eyn}}On("dxMonthDateTableLayout",d6e);var ayn=bt.dateToMilliseconds;class c6e extends ree{get type(){return La.MONTH}_getElementClass(){return"dx-scheduler-work-space-month"}_getFormat(){return IQ}_getIntervalBetween(n){var e=this.getStartViewDate(),i=bt.getTimezonesDifference(e,n);return n.getTime()-(e.getTime()-36e5*this.option("startDayHour"))-i}_getDateGenerationOptions(){return mt({},super._getDateGenerationOptions(),{cellCountInDay:1})}getCellWidth(){return this.cache.get("cellWidth",()=>{var n=0,e=this._getCells().slice(0,7);return e.each((i,r)=>{n+=Rn()?Mi(r).width:0}),0===e.length?void 0:n/7})}_insertAllDayRowsIntoDateTable(){return!1}_getCellCoordinatesByIndex(n){var e=Math.floor(n/this._getCellCount());return{rowIndex:e,columnIndex:n-this._getCellCount()*e}}_needCreateCrossScrolling(){return this.option("crossScrollingEnabled")||this._isVerticalGroupedWorkSpace()}_getViewStartByOptions(){return LM(this.option("startDate"),this.option("currentDate"),this.option("intervalCount"),bt.getFirstMonthDate(this.option("startDate")))}_updateIndex(n){return n}isIndicationAvailable(){return!1}getIntervalDuration(){return ayn("day")}getTimePanelWidth(){return 0}supportAllDayRow(){return!1}keepOriginalHours(){return!0}getWorkSpaceLeftOffset(){return 0}needApplyCollectorOffset(){return!0}_getHeaderDate(){return this._getViewStartByOptions()}scrollToTime(){}renderRAllDayPanel(){}renderRTimeTable(){}renderRDateTable(){gu.renovation.renderComponent(this,this._$dateTable,d6e,"renovatedDateTable",this._getRDateTableProps())}_createWorkSpaceElements(){this._isVerticalGroupedWorkSpace()?this._createWorkSpaceScrollableElements():super._createWorkSpaceElements()}_toggleAllDayVisibility(){}_changeAllDayVisibility(){}_renderTimePanel(){}_renderAllDayPanel(){}_setMonthClassesToCell(n,e){n.toggleClass("dx-scheduler-date-table-current-date",e.isCurrentDate).toggleClass("dx-scheduler-date-table-first-of-month",e.firstDayOfMonth).toggleClass("dx-scheduler-date-table-other-month",e.otherMonth)}_createAllDayPanelElements(){}_renderTableBody(n){n.getCellText=(e,i)=>nVe(this.viewDataProvider.completeViewDataMap[e][i].startDate,this.option("intervalCount")),n.getCellTextClass="dx-scheduler-date-table-cell-text",n.setAdditionalClasses=this._setMonthClassesToCell.bind(this),super._renderTableBody(n)}}On("dxSchedulerWorkSpaceMonth",c6e);const syn=c6e;class h6e extends s6e{get type(){return La.WEEK}_getElementClass(){return"dx-scheduler-work-space-week"}_calculateViewStartDate(){return((t,n)=>{var e=this._firstDayOfWeek()??Gn.firstDayOfWeekIndex();return bt.getFirstWeekDate(t,e)})(this.option("startDate"))}}On("dxSchedulerWorkSpaceWeek",h6e);const p6e=h6e;class g6e extends p6e{get type(){return La.WORK_WEEK}constructor(){super(...arguments),this._getWeekendsCount=oVe}_getElementClass(){return"dx-scheduler-work-space-work-week"}}On("dxSchedulerWorkSpaceWorkWeek",g6e);const dyn=g6e;var cyn=["dateText"],pyn={dateText:""};let gyn=(()=>{class t extends so{constructor(e){super(e),this.state={}}get restAttributes(){return ki(this.props,cyn)}render(){return(t=>{var{props:{dateText:n}}=t;return er(1,"div","dx-scheduler-appointment-content-details",er(1,"div","dx-scheduler-appointment-content-date",n,0),2)})({props:mt({},this.props),restAttributes:this.restAttributes})}}return t.defaultProps=pyn,t})();var fyn=["text"],_yn={text:""};let vyn=(()=>{class t extends so{constructor(e){super(e),this.state={}}get restAttributes(){return ki(this.props,fyn)}render(){return(t=>{var{props:{text:n}}=t;return er(1,"div","dx-scheduler-appointment-title",n,0)})({props:mt({},this.props),restAttributes:this.restAttributes})}}return t.defaultProps=_yn,t})();var yyn=["appointmentTemplate","data","dateText","hideReducedIconTooltip","index","isRecurrent","isReduced","showReducedIconTooltip","text"],byn={text:"",dateText:"",isRecurrent:!1,isReduced:!1,index:0},xyn=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let wyn=(()=>{class t extends Tc{constructor(e){super(e),this.state={},this.refReducedIcon={current:null},this.bindHoverEffect=this.bindHoverEffect.bind(this),this.onReducedIconMouseEnter=this.onReducedIconMouseEnter.bind(this),this.onReducedIconMouseLeave=this.onReducedIconMouseLeave.bind(this)}createEffects(){return[new yo(this.bindHoverEffect,[this.props.showReducedIconTooltip,this.props.data,this.props.hideReducedIconTooltip])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.showReducedIconTooltip,this.props.data,this.props.hideReducedIconTooltip])}bindHoverEffect(){var e,i,r=()=>this.onReducedIconMouseEnter(),o=()=>this.onReducedIconMouseLeave();return null===(e=this.refReducedIcon.current)||void 0===e||e.addEventListener("mouseenter",r),null===(i=this.refReducedIcon.current)||void 0===i||i.addEventListener("mouseleave",o),()=>{var a,s;null===(a=this.refReducedIcon.current)||void 0===a||a.removeEventListener("mouseenter",r),null===(s=this.refReducedIcon.current)||void 0===s||s.removeEventListener("mouseleave",o)}}onReducedIconMouseEnter(){this.props.showReducedIconTooltip({target:this.refReducedIcon.current,endDate:this.props.data.appointmentData.endDate})}onReducedIconMouseLeave(){this.props.hideReducedIconTooltip()}get restAttributes(){return ki(this.props,yyn)}render(){var e=this.props;return(t=>{var{props:{appointmentTemplate:n,data:e,dateText:i,index:r,isRecurrent:o,isReduced:a,text:s},refReducedIcon:l}=t;return er(1,"div","dx-scheduler-appointment-content",n?n({data:e,index:r}):Pl([Wn(2,vyn,{text:s}),Wn(2,gyn,{dateText:i}),o&&er(1,"div","dx-scheduler-appointment-recurrence-icon dx-icon-repeat"),a&&er(1,"div","dx-scheduler-appointment-reduced-icon",null,1,null,null,l)],0),0)})({props:mt({},e,{appointmentTemplate:xyn(e.appointmentTemplate)}),refReducedIcon:this.refReducedIcon,onReducedIconMouseEnter:this.onReducedIconMouseEnter,onReducedIconMouseLeave:this.onReducedIconMouseLeave,restAttributes:this.restAttributes})}}return t.defaultProps=byn,t})();var qc=BU(void 0),Syn=["appointmentTemplate","groups","hideReducedIconTooltip","index","onItemClick","onItemDoubleClick","showReducedIconTooltip","viewModel"],Eyn={index:0},Oyn=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let Tyn=(()=>{class t extends Tc{constructor(e){super(e),this.ref={current:null},this.state={color:void 0},this.updateStylesEffect=this.updateStylesEffect.bind(this),this.bindDoubleClickEffect=this.bindDoubleClickEffect.bind(this),this.onItemClick=this.onItemClick.bind(this),this.onItemDoubleClick=this.onItemDoubleClick.bind(this)}get appointmentsContextValue(){return this.context[qc.id]?this.context[qc.id]:qc.defaultValue}createEffects(){return[new yo(this.updateStylesEffect,[this.props.viewModel,this.appointmentsContextValue,this.props.groups]),new yo(this.bindDoubleClickEffect,[])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.viewModel,this.appointmentsContextValue,this.props.groups])}updateStylesEffect(){var e,{viewModel:i}=this.props,r=null!==(e=i.info.groupIndex)&&void 0!==e?e:0,{appointment:o}=i;R8e({resources:this.appointmentsContextValue.resources,resourceLoaderMap:this.appointmentsContextValue.resourceLoaderMap,resourcesDataAccessors:this.appointmentsContextValue.dataAccessors.resources,loadedResources:this.appointmentsContextValue.loadedResources},{itemData:o,groupIndex:r,groups:this.props.groups}).then(a=>{this.setState(s=>({color:a}))}).catch(()=>"")}bindDoubleClickEffect(){var e,i=()=>this.onItemDoubleClick();return null===(e=this.ref.current)||void 0===e||e.addEventListener("dblclick",i),()=>{var r;null===(r=this.ref.current)||void 0===r||r.removeEventListener("dblclick",i)}}get appointmentStyles(){return(t=>{var{geometry:{height:n,left:e,top:i,width:r}}=t;return AM([{attr:"height",value:"".concat(n||50,"px")},{attr:"width",value:"".concat(r||50,"px")},{attr:"top",value:"".concat(i,"px")},{attr:"left",value:"".concat(e,"px")}])})(this.props.viewModel)}get styles(){return E3e(this.state.color,this.appointmentStyles)}get text(){return this.props.viewModel.appointment.text}get isReduced(){var{appointmentReduced:e}=this.props.viewModel.info;return!!e}get classes(){var{focused:e,info:{allDay:i,appointmentReduced:r,direction:o,isRecurrent:a}}=this.props.viewModel,s="vertical"===o;return fs({"dx-state-focused":!!e,"dx-scheduler-appointment":!0,"dx-scheduler-appointment-horizontal":!s,"dx-scheduler-appointment-vertical":s,"dx-scheduler-appointment-recurrence":a,"dx-scheduler-all-day-appointment":i,"dx-scheduler-appointment-reduced":this.isReduced,"dx-scheduler-appointment-head":"head"===r,"dx-scheduler-appointment-body":"body"===r,"dx-scheduler-appointment-tail":"tail"===r})}get dateText(){return this.props.viewModel.info.dateText}get data(){return{appointmentData:this.props.viewModel.info.appointment,targetedAppointmentData:this.props.viewModel.appointment}}onItemClick(){this.props.onItemClick({data:[this.props.viewModel],target:this.ref.current,index:this.props.index})}onItemDoubleClick(){this.props.onItemDoubleClick({data:[this.props.viewModel],target:this.ref.current,index:this.props.index})}get restAttributes(){return ki(this.props,Syn)}render(){var e=this.props;return(t=>{var{classes:n,data:e,dateText:i,isReduced:r,onItemClick:o,props:{appointmentTemplate:a,hideReducedIconTooltip:s,index:l,showReducedIconTooltip:u,viewModel:{info:{isRecurrent:f}}},ref:S,styles:T,text:R}=t;return Nr(Wn(2,q2,mt({focusStateEnabled:!0,onClick:o,rootElementRef:S,style:yg(T),classes:n,hint:R},{role:"button","data-index":l},{children:Wn(2,wyn,{text:R,isReduced:r,dateText:i,isRecurrent:f,index:l,data:e,showReducedIconTooltip:u,hideReducedIconTooltip:s,appointmentTemplate:a})})))})({props:mt({},e,{appointmentTemplate:Oyn(e.appointmentTemplate)}),color:this.state.color,ref:this.ref,appointmentsContextValue:this.appointmentsContextValue,appointmentStyles:this.appointmentStyles,styles:this.styles,text:this.text,isReduced:this.isReduced,classes:this.classes,dateText:this.dateText,data:this.data,onItemClick:this.onItemClick,onItemDoubleClick:this.onItemDoubleClick,restAttributes:this.restAttributes})}}return t.defaultProps=Eyn,t})();var Iyn=["groups","overflowIndicatorTemplate","viewModel"],Myn={},Ayn=t=>t&&(t.defaultProps?n=>Nr(Wn(2,t,mt({},n))):t);let Fyn=(()=>{class t extends Tc{constructor(e){super(e),this.state={color:void 0},this.updateStylesEffect=this.updateStylesEffect.bind(this)}get appointmentsContextValue(){return this.context[qc.id]?this.context[qc.id]:qc.defaultValue}createEffects(){return[new yo(this.updateStylesEffect,[this.props.groups,this.props.viewModel,this.appointmentsContextValue])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.groups,this.props.viewModel,this.appointmentsContextValue])}updateStylesEffect(){var{groups:e,viewModel:i}=this.props;((t,n,e)=>{var i,r=null!==(i=n.groupIndex)&&void 0!==i?i:0,{appointment:o}=n.items.settings[0];return R8e({resources:t.resources,resourceLoaderMap:t.resourceLoaderMap,resourcesDataAccessors:t.dataAccessors.resources,loadedResources:t.loadedResources},{itemData:o,groupIndex:r,groups:e})})(this.appointmentsContextValue,i,e).then(r=>{this.setState(o=>({color:r}))})}get data(){return{appointmentCount:this.props.viewModel.items.settings.length,isCompact:this.props.viewModel.isCompact}}get text(){var{isCompact:e}=this.props.viewModel,{appointmentCount:i}=this.data;return e?"".concat(i):ye.getFormatter("dxScheduler-moreAppointments")(i)}get appointmentStyles(){return(t=>{var{geometry:{height:n,left:e,top:i,width:r}}=t;return AM([{attr:"left",value:"".concat(e,"px")},{attr:"top",value:"".concat(i,"px")},{attr:"width",value:"".concat(r,"px")},{attr:"height",value:"".concat(n,"px")},{attr:"boxShadow",value:"inset ".concat(r,"px 0 0 0 rgba(0, 0, 0, 0.3)")}])})(this.props.viewModel)}get styles(){return E3e(this.state.color,this.appointmentStyles)}get classes(){return fs({"dx-scheduler-appointment-collector":!0,"dx-scheduler-appointment-collector-compact":this.data.isCompact})}get restAttributes(){return ki(this.props,Iyn)}render(){var e=this.props;return(t=>{var{classes:n,data:e,props:{overflowIndicatorTemplate:i},styles:r,text:o}=t;return Wn(2,ST,{style:yg(r),className:n,type:"default",stylingMode:"contained",children:i?i({data:e}):er(1,"span",null,o,0)})})({props:mt({},e,{overflowIndicatorTemplate:Ayn(e.overflowIndicatorTemplate)}),color:this.state.color,appointmentsContextValue:this.appointmentsContextValue,data:this.data,text:this.text,appointmentStyles:this.appointmentStyles,styles:this.styles,classes:this.classes,restAttributes:this.restAttributes})}}return t.defaultProps=Myn,t})();var Pyn=["isAllDay"],Lyn={isAllDay:!1};let Byn=(()=>{class t extends Kd{constructor(e){super(e),this.state={},this.layoutRef={current:null},this.__getterCache={},this.pointerEventsEffect=this.pointerEventsEffect.bind(this),this.onAppointmentPointerDown=this.onAppointmentPointerDown.bind(this)}get appointmentsContextValue(){return this.context[qc.id]?this.context[qc.id]:qc.defaultValue}createEffects(){return[new yo(this.pointerEventsEffect,[this.appointmentsContextValue]),$d()]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.appointmentsContextValue])}pointerEventsEffect(){var e=Ivt(this.layoutRef.current,i=>this.onAppointmentPointerDown(i));return()=>{e()}}get classes(){var{isAllDay:e}=this.props;return fs({"dx-scheduler-scrollable-appointments":!e,"dx-scheduler-all-day-appointments":e})}get appointments(){return void 0!==this.__getterCache.appointments?this.__getterCache.appointments:this.__getterCache.appointments=(()=>this.props.isAllDay?this.appointmentsContextValue.viewModel.allDay:this.appointmentsContextValue.viewModel.regular)()}get overflowIndicators(){return void 0!==this.__getterCache.overflowIndicators?this.__getterCache.overflowIndicators:this.__getterCache.overflowIndicators=(()=>this.props.isAllDay?this.appointmentsContextValue.viewModel.allDayCompact:this.appointmentsContextValue.viewModel.regularCompact)()}onAppointmentPointerDown(e){var i=e.target.closest(".dx-scheduler-appointment");if(i){var{index:r}=i.dataset,o=r?parseInt(r,10):-1,a=i.classList.contains("dx-scheduler-all-day-appointment"),s=i.classList.contains("dx-scheduler-appointment-collector"),u=Object.entries({allDayCompact:a&&s,allDay:a&&!s,regularCompact:!a&&s,regular:!a&&!s}).filter(f=>f[1])[0][0];this.appointmentsContextValue.updateFocusedAppointment(u,o)}}get restAttributes(){return ki(this.props,Pyn)}componentWillUpdate(e,i,r){super.componentWillUpdate(),(this.props.isAllDay!==e.isAllDay||this.context[qc.id]!==r[qc.id])&&(this.__getterCache.appointments=void 0),(this.props.isAllDay!==e.isAllDay||this.context[qc.id]!==r[qc.id])&&(this.__getterCache.overflowIndicators=void 0)}render(){return(t=>{var{appointments:n,appointmentsContextValue:{appointmentTemplate:e,groups:i,hideReducedIconTooltip:r,onAppointmentClick:o,onAppointmentDoubleClick:a,overflowIndicatorTemplate:s,showReducedIconTooltip:l},classes:u,layoutRef:f,overflowIndicators:S}=t;return er(1,"div",u,[n.map((T,R)=>Wn(2,Tyn,{viewModel:T,appointmentTemplate:e,index:R,groups:i,onItemClick:o,onItemDoubleClick:a,showReducedIconTooltip:l,hideReducedIconTooltip:r},T.key)),S.map((T,R)=>Wn(2,Fyn,{viewModel:T,groups:i,overflowIndicatorTemplate:s,"data-index":R},T.key))],0,null,null,f)})({props:mt({},this.props),layoutRef:this.layoutRef,appointmentsContextValue:this.appointmentsContextValue,classes:this.classes,appointments:this.appointments,overflowIndicators:this.overflowIndicators,onAppointmentPointerDown:this.onAppointmentPointerDown,restAttributes:this.restAttributes})}}return t.defaultProps=Lyn,t})();class f6e extends bm{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:[],props:["isAllDay"]}}get _viewComponent(){return Byn}}On("dxAppointmentLayout",f6e);class Hyn{constructor(n,e){this.rawAppointment=n,this.promise=e}}class zyn{get resourceDeclarations(){return this._resourceDeclarations}set resourceDeclarations(n){this._resourceDeclarations=n,this.isLoaded=!1,this.isLoading=!1,this.resourceMap.clear(),this.appointmentPromiseQueue=[]}constructor(){this._resourceDeclarations=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],this.isLoaded=!1,this.isLoading=!1,this.resourceMap=new Map,this.appointmentPromiseQueue=[]}_pushAllResources(){this.appointmentPromiseQueue.forEach(n=>{var{promise:e,rawAppointment:i}=n,r=[];this.resourceMap.forEach((o,a)=>{var s={label:o.label,values:[]};a in i&&mp(i[a]).forEach(l=>s.values.push(o.map.get(l))),s.values.length&&r.push(s)}),e.resolve(r)}),this.appointmentPromiseQueue=[]}_onPullResource(n,e,i,r,o){var a=new Map;o.forEach(s=>a.set(s[e],s[i])),this.resourceMap.set(n,{label:r,map:a})}_hasResourceDeclarations(n){return 0!==n.length||(this.appointmentPromiseQueue.forEach(e=>{var{promise:i}=e;return i.resolve([])}),this.appointmentPromiseQueue=[],!1)}_tryPullResources(n,e){if(!this.isLoading){this.isLoading=!0;var i=[];n.forEach(r=>{var o=(new et).done(s=>this._onPullResource(Nv(r),IM(r),mQ(r),r.label,s));i.push(o);var a=X8(r.dataSource);a.isLoaded()?o.resolve(a.items()):a.load().done(s=>o.resolve(s)).fail(()=>o.reject())}),Qt.apply(null,i).done(()=>{this.isLoaded=!0,this.isLoading=!1,this._pushAllResources()}).fail(()=>e.reject())}}initializeState(){this.resourceDeclarations=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}createListAsync(n){var e=new et;return this.appointmentPromiseQueue.push(new Hyn(n,e)),this._hasResourceDeclarations(this.resourceDeclarations)&&(this.isLoaded?this._pushAllResources():this._tryPullResources(this.resourceDeclarations,e)),e.promise()}}class Uyn{constructor(n){this.setDataSource(n),this._updatedAppointmentKeys=[]}get keyName(){return this._dataSource.store().key()}_getStoreKey(n){return this._dataSource.store().keyOf(n)}setDataSource(n){this._dataSource=n,this.cleanState(),this._initStoreChangeHandlers()}_initStoreChangeHandlers(){var n=this._dataSource,e=n?.store();e&&(e.on("updating",i=>{var r=e.key();r?this._updatedAppointmentKeys.push({key:r,value:i}):this._updatedAppointment=i}),e.on("push",i=>{var r=n.items(),o=e.key();i.forEach(a=>{if(0!==r.filter(u=>u[o]===a.key).length)this._updatedAppointmentKeys.push({key:o,value:a.key});else{var{data:l}=a;l&&r.push(l)}}),n.load()}))}getUpdatedAppointment(){return this._updatedAppointment}getUpdatedAppointmentKeys(){return this._updatedAppointmentKeys}cleanState(){this._updatedAppointment=null,this._updatedAppointmentKeys=[]}add(n){return this._dataSource.store().insert(n).done(()=>this._dataSource.load())}update(n,e){var i=this._getStoreKey(n),r=new et;return this._dataSource.store().update(i,e).done(o=>this._dataSource.load().done(()=>r.resolve(o)).fail(r.reject)).fail(r.reject),r.promise()}remove(n){var e=this._getStoreKey(n);return this._dataSource.store().remove(e).done(()=>this._dataSource.load())}destroy(){var n,e=null===(n=this._dataSource)||void 0===n?void 0:n.store();e&&(e.off("updating"),e.off("push"))}}const uee=(t,n)=>{var e=bt.trimTime(t),i=bt.trimTime(n);return i.setDate(i.getDate()+1),[e,i]};var m6e=bt.dateToMilliseconds;class v6e{constructor(n){this.options=n,this.dataAccessors=this.options.dataAccessors,this._init()}get strategyName(){return"standard"}get timeZoneCalculator(){return this.options.timeZoneCalculator}get viewStartDayHour(){return this.options.startDayHour}get viewEndDayHour(){return this.options.endDayHour}get timezone(){return this.options.timezone}get firstDayOfWeek(){return this.options.firstDayOfWeek}get showAllDayPanel(){return this.options.showAllDayPanel}get loadedResources(){return this._resolveOption("loadedResources")}get supportAllDayRow(){return this._resolveOption("supportAllDayRow")}get viewType(){return this._resolveOption("viewType")}get viewDirection(){return this._resolveOption("viewDirection")}get dateRange(){return this._resolveOption("dateRange")}get groupCount(){return this._resolveOption("groupCount")}get viewDataProvider(){return this._resolveOption("viewDataProvider")}get allDayPanelMode(){return this._resolveOption("allDayPanelMode")}_resolveOption(n){var e=this.options[n];return"function"==typeof e?e():e}_init(){this.setDataAccessors(this.dataAccessors)}filter(n){var i,e=this.dateRange;return!this.showAllDayPanel&&this.supportAllDayRow&&(i=!1),this.filterLoadedAppointments({startDayHour:this.viewStartDayHour,endDayHour:this.viewEndDayHour,viewStartDayHour:this.viewStartDayHour,viewEndDayHour:this.viewEndDayHour,min:e[0],max:e[1],resources:this.loadedResources,allDay:i,supportMultiDayAppointments:kQ(this.viewType),firstDayOfWeek:this.firstDayOfWeek},n)}hasAllDayAppointments(n,e){var i=n.map(o=>sa(o,this.dataAccessors,this.timeZoneCalculator)),r=!1;return we(i,(o,a)=>{if(fD(a,this.viewStartDayHour,this.viewEndDayHour,this.allDayPanelMode))return r=!0,!1}),r}setDataAccessors(n){this.dataAccessors=n}_createAllDayAppointmentFilter(n){var{viewStartDayHour:e,viewEndDayHour:i}=n;return[[r=>fD(r,e,i,this.allDayPanelMode)]]}_createCombinedFilter(n){var e=new Date(n.min),i=new Date(n.max),{startDayHour:r,endDayHour:o,viewStartDayHour:a,viewEndDayHour:s,resources:l,firstDayOfWeek:u,checkIntersectViewport:f,supportMultiDayAppointments:S}=n,[T,R]=uee(e,i),L=Z(this.dataAccessors.getter.recurrenceRule);return[[z=>{var j;if(null!==(j=z.visible)&&void 0!==j&&!j)return!1;var{startDate:ie,endDate:te,hasRecurrenceRule:re}=z;if(!re&&!(te>=T&&ie<R||bt.sameDate(te,T)&&bt.sameDate(ie,T)))return!1;var he=fD(z,a,s,this.allDayPanelMode),fe=OQ(z),Te=z.allDay,Re=fe||he;if(null!=l&&l.length&&!this._filterAppointmentByResources(z.rawAppointment,l)||he&&!1===n.allDay)return!1;if(re){var He=((t,n,e)=>{var i=t.recurrenceException;if(i){for(var r=i.split(","),o=0;o<r.length;o++)r[o]=dpn(r[o],t.startDate,n,e);return r.join()}return i})(z,this.timeZoneCalculator,this.timezone);if(!this._filterAppointmentByRRule(mt({},z,{recurrenceException:He,allDay:he}),e,i,r,o,u))return!1}return!(!Te&&S&&Re&&te<e&&(!L||L&&!re)||Z(r)&&(!L||!n.isVirtualScrolling)&&!((t,n,e,i,r)=>{var o=bt.dateTimeFromDecimal(e);return t.getHours()>=o.hours&&t.getMinutes()>=o.minutes||n.getHours()===o.hours&&n.getMinutes()>o.minutes||n.getHours()>o.hours||r||i})(ie,te,r,he,fe)||Z(o)&&!(t=>{var Y,{startDate:n,endDate:e,startDayHour:i,endDayHour:r,viewStartDayHour:o,viewEndDayHour:a,allDay:s,severalDays:l,min:u,max:f,checkIntersectViewport:S}=t,T=(24-a+o)*EQ("hour"),R=e.getTime()-n.getTime(),L=(T-R)/EQ("hour"),z=n.getHours(),j=n.getMinutes(),ie=bt.dateTimeFromDecimal(r),te=bt.dateTimeFromDecimal(i),re=n<f&&e>u;return Y=S&&re||z<ie.hours||z===ie.hours&&j<ie.minutes||s&&n<=f||l&&re&&(z<ie.hours||60*e.getHours()+e.getMinutes()>60*te.hours),R<T&&z>ie.hours&&j>ie.minutes&&L<=z-r&&(Y=!1),Y})({startDate:ie,endDate:te,startDayHour:r,endDayHour:o,viewStartDayHour:a,viewEndDayHour:s,allDay:he,severalDays:fe,min:e,max:i,checkIntersectViewport:f})||!Te&&(!Re||S)&&te<e&&L&&!re)}]]}_createAppointmentFilter(n){return this._createCombinedFilter(n)}_filterAppointmentByResources(n,e){for(var i=(s,l)=>{var f,u=this.dataAccessors.resources.getter[s];Yt(u)&&(f=u(n));for(var S=mp(f),T=Dr(e[l].items,L=>{var{id:z}=L;return z}),R=0;R<S.length;R++)if(d8e(T,S[R]))return!0;return!1},r=!1,o=0;o<e.length;o++)if(!(r=i(e[o].name,o)))return!1;return r}_filterAppointmentByRRule(n,e,i,r,o,a){var s=n.recurrenceRule,l=n.recurrenceException,u=n.allDay,f=!0,S=n.startDate,T=n.endDate,R=wf();if(u||((t,n,e,i)=>{var r=t.getHours(),o=n.getHours();return r<=e&&o<=i&&o>=e||o>=i&&r<=i&&r>=e})(S,T,r,o)){var[L,z]=uee(e,i);e=L,i=new Date(z.getTime()-m6e("minute"))}return s&&!R.isValidRecurrenceRule(s)&&(f=T>e&&S<=i),f&&R.isValidRecurrenceRule(s)&&(f=R.hasRecurrence({rule:s,exception:l,start:S,end:T,min:e,max:i,firstDayOfWeek:a,appointmentTimezoneOffset:this.timeZoneCalculator.getOriginStartDateOffsetInMs(S,n.startDateTimeZone,!1)})),f}filterLoadedAppointments(n,e){return this.filterPreparedItems(n,e).map(r=>{var{rawAppointment:o}=r;return o})}filterPreparedItems(n,e){var i=this._createAppointmentFilter(n);return Ha(e).filter(i).toArray()}filterAllDayAppointments(n,e){var i=this._createAllDayAppointmentFilter(n);return Ha(e).filter(i).toArray().map(r=>{var{rawAppointment:o}=r;return o})}}class Gyn extends v6e{get strategyName(){return"virtual"}get resources(){return this.options.resources}filter(n){var e=m6e("hour"),i=Bb(this.viewType),r=i&&"horizontal"===this.viewDirection,o=!this.supportAllDayRow,a=this.showAllDayPanel||o,s=this.viewDataProvider.getLastViewDateByEndDayHour(this.viewEndDayHour),l=[];return this.viewDataProvider.getCompletedGroupsInfo().forEach(f=>{var S=f.groupIndex,T=f.startDate,R=new Date(Math.min(f.endDate,s)),L=i?T.getHours():this.viewStartDayHour,z=i?L+T.getMinutes()/60+(R-T)/e:this.viewEndDayHour,j=this._getPrerenderFilterResources(S),Y=this.viewDataProvider.hasGroupAllDayPanel(S),ie=o||!!a&&Y;l.push({isVirtualScrolling:!0,startDayHour:L,endDayHour:z,viewStartDayHour:this.viewStartDayHour,viewEndDayHour:this.viewEndDayHour,min:T,max:R,supportMultiDayAppointments:kQ(this.viewType),allDay:ie,resources:j,firstDayOfWeek:this.firstDayOfWeek,checkIntersectViewport:r})}),this.filterLoadedAppointments({filterOptions:l,groupCount:this.groupCount},n)}filterPreparedItems(n,e){var{filterOptions:i,groupCount:r}=n,o=[],a=e;return r>0&&(a=a.filter(l=>{for(var{rawAppointment:u}=l,f=0;f<i.length;++f){var{resources:S}=i[f];if(this._filterAppointmentByResources(u,S))return!0}})),i.forEach(l=>{o.length&&o.push("or");var u=this._createAppointmentFilter(l);o.push(u)}),Ha(a).filter(o).toArray()}hasAllDayAppointments(n,e){return this.filterAllDayAppointments({viewStartDayHour:this.viewStartDayHour,viewEndDayHour:this.viewEndDayHour},e).length>0}_getPrerenderFilterResources(n){var e=this.viewDataProvider.getCellsGroup(n);return((t,n,e)=>{if(!e||!e.length)return t;var i={},r=[];return e.forEach(a=>{we(a,(s,l)=>i[s]=l)}),t.filter(a=>{var{name:s}=a;return Z(i[s])}).forEach(a=>r.push(se({},a))),r.forEach(a=>{var{items:s,data:l,name:u}=a,f=Q8(n,[u])[0]||{},S=IM(f),T=[],R=[];e.filter(L=>Z(L[u])).forEach(L=>{we(L,(z,j)=>{if(!T.filter(te=>te.id===j&&te[S]===z).length){var Y=s.filter(te=>te.id===j),ie=l.filter(te=>te[S]===j);T.push(...Y),R.push(...ie)}})}),a.items=T,a.data=R}),r})(this.loadedResources,this.resources,[e])}}class jyn{constructor(n){this.options=n}get dataAccessors(){return this.options.dataAccessors}get dataSourceFilter(){return this.options.dataSourceFilter}get dateSerializationFormat(){return this.options.dateSerializationFormat}get forceIsoDateParsing(){return!Z(this.options.forceIsoDateParsing)||this.options.forceIsoDateParsing}makeDateFilter(n,e){var{endDateExpr:i,recurrenceRuleExpr:r,startDateExpr:o}=this.dataAccessors.expr,a=[[[i,">=",n],[o,"<",e]],"or",[r,"startswith","freq"],"or",[[i,n],[o,n]]];return r||a.splice(1,2),a}combineFilters(n,e){var i=[];return n&&i.push(n),e&&i.push(e),this.serializeRemoteFilter(i)}serializeRemoteFilter(n){if(!Array.isArray(n))return n;var{endDateExpr:e,startDateExpr:i}=this.dataAccessors.expr,r=se([],n);Pn(r[0])&&this.forceIsoDateParsing&&r.length>1&&(r[0]===i||r[0]===e)&&(r[r.length-1]=Qr.serializeDate(new Date(r[r.length-1]),this.dateSerializationFormat));for(var a=0;a<r.length;a+=1)r[a]=this.serializeRemoteFilter(r[a]);return r}getUserFilter(n){if(this.dataSourceFilter&&!Tr(this.dataSourceFilter,n))return this.dataSourceFilter.length>0&&Tr(this.dataSourceFilter[0],n)?this.dataSourceFilter[1]:this.dataSourceFilter}combine(n,e){var[i,r]=uee(n,e),o=this.makeDateFilter(i,r),a=this.getUserFilter(o);return this.combineFilters(o,a)}}var CD;class qyn{constructor(n){this.options=n,this.dataSource=this.options.dataSource,this.dataAccessors=this.options.dataAccessors,this.timeZoneCalculator=this.options.timeZoneCalculator,this.appointmentDataSource=new Uyn(this.dataSource),this.initFilterStrategy()}get keyName(){return this.appointmentDataSource.keyName}get filterStrategyName(){return this.options.getIsVirtualScrolling()?"virtual":"standard"}getFilterStrategy(){return(!this.filterStrategy||this.filterStrategy.strategyName!==this.filterStrategyName)&&this.initFilterStrategy(),this.filterStrategy}initFilterStrategy(){var n={resources:this.options.resources,dataAccessors:this.dataAccessors,startDayHour:this.options.startDayHour,endDayHour:this.options.endDayHour,showAllDayPanel:this.options.showAllDayPanel,timeZoneCalculator:this.options.timeZoneCalculator,loadedResources:this.options.getLoadedResources,supportAllDayRow:this.options.getSupportAllDayRow,viewType:this.options.getViewType,viewDirection:this.options.getViewDirection,dateRange:this.options.getDateRange,groupCount:this.options.getGroupCount,viewDataProvider:this.options.getViewDataProvider,allDayPanelMode:this.options.allDayPanelMode};this.filterStrategy="virtual"===this.filterStrategyName?new Gyn(n):new v6e(n)}setDataSource(n){this.dataSource=n,this.initFilterStrategy(),this.appointmentDataSource.setDataSource(this.dataSource)}updateDataAccessors(n){this.dataAccessors=n,this.initFilterStrategy()}filter(n){return this.getFilterStrategy().filter(n)}filterByDate(n,e,i,r){if(this.dataSource&&i){var a=(t=>new jyn(t).combine(t.min,t.max))({dataSourceFilter:this.dataSource.filter(),dataAccessors:this.dataAccessors,min:n,max:e,dateSerializationFormat:r,forceIsoDateParsing:no().forceIsoDateParsing});this.dataSource.filter(a)}}hasAllDayAppointments(n,e){return this.getFilterStrategy().hasAllDayAppointments(n,e)}filterLoadedAppointments(n,e){return this.getFilterStrategy().filterLoadedAppointments(n,e)}calculateAppointmentEndDate(n,e){return this.getFilterStrategy().calculateAppointmentEndDate(n,e)}cleanState(){this.appointmentDataSource.cleanState()}getUpdatedAppointment(){return this.appointmentDataSource._updatedAppointment}getUpdatedAppointmentKeys(){return this.appointmentDataSource._updatedAppointmentKeys}add(n){return this.appointmentDataSource.add(n)}update(n,e){return this.appointmentDataSource.update(n,e)}remove(n){return this.appointmentDataSource.remove(n)}destroy(){this.appointmentDataSource.destroy()}}!function(t){t.fromSourceToAppointment="toAppointment",t.fromAppointmentToSource="fromAppointment",t.fromSourceToGrid="toGrid",t.fromGridToSource="fromGrid"}(CD||(CD={}));class Qyn{constructor(n){this.options=n}createDate(n,e){var i=new Date(n);switch(e.path){case CD.fromSourceToAppointment:return this.getConvertedDate(i,e.appointmentTimeZone,!0,!1);case CD.fromAppointmentToSource:return this.getConvertedDate(i,e.appointmentTimeZone,!0,!0);case CD.fromSourceToGrid:return this.getConvertedDate(i,e.appointmentTimeZone,!1,!1);case CD.fromGridToSource:return this.getConvertedDate(i,e.appointmentTimeZone,!1,!0);default:throw new Error("not specified pathTimeZoneConversion")}}getOffsets(n,e){var i=-this.getClientOffset(n)/bt.dateToMilliseconds("hour"),r=this.getCommonOffset(n),o=this.getAppointmentOffset(n,e);return{client:i,common:Z(r)?r:i,appointment:"number"!=typeof o?i:o}}getConvertedDateByOffsets(n,e,i,r){var o=r?-1:1,a=new Date(n);return a.setMinutes(a.getMinutes()-o*(60*e)),a.setMinutes(a.getMinutes()+o*(60*i)),new Date(a)}getOriginStartDateOffsetInMs(n,e,i){return 36e5*this.getOffsetInHours(n,e,i)}getOffsetInHours(n,e,i){var{appointment:r,client:o,common:a}=this.getOffsets(n,e);return e&&i?r-o:e&&!i?r-a:!e&&i?a-o:0}getClientOffset(n){return this.options.getClientOffset(n)}getCommonOffset(n){return this.options.tryGetCommonOffset(n)}getAppointmentOffset(n,e){return this.options.tryGetAppointmentOffset(n,e)}getConvertedDate(n,e,i,r){var o=new Date(n.getTime()),a=this.getOffsets(o,e);return this.getConvertedDateByOffsets(n,a.client,i&&e?a.appointment:a.common,r)}}var nCn="".concat("yyyyMMddTHHmmss","Z"),O3="dx-scheduler",lCn="".concat(O3,"-small"),uCn="".concat(O3,"-adaptive"),dCn="".concat(O3,"-readonly"),mCn={day:{workSpace:$vn,renderingStrategy:"vertical"},week:{workSpace:p6e,renderingStrategy:"vertical"},workWeek:{workSpace:dyn,renderingStrategy:"vertical"},month:{workSpace:syn,renderingStrategy:"horizontalMonth"},timelineDay:{workSpace:Nvn,renderingStrategy:"horizontal"},timelineWeek:{workSpace:see,renderingStrategy:"horizontal"},timelineWorkWeek:{workSpace:Gvn,renderingStrategy:"horizontal"},timelineMonth:{workSpace:Hvn,renderingStrategy:"horizontalMonthLine"},agenda:{workSpace:Cvn,renderingStrategy:"agenda"}},jl_ADDING="onAppointmentAdding",jl_ADDED="onAppointmentAdded",jl_DELETED="onAppointmentDeleted",jl_UPDATED="onAppointmentUpdated";class cee extends tr{_getDefaultOptions(){var n=se(super._getDefaultOptions(),{views:["day","week"],currentView:"day",currentDate:bt.trimTime(new Date),min:void 0,max:void 0,dateSerializationFormat:void 0,firstDayOfWeek:void 0,groups:[],resources:[],loadedResources:[],resourceLoaderMap:new Map,dataSource:null,customizeDateNavigatorText:void 0,appointmentTemplate:"item",dropDownAppointmentTemplate:"dropDownAppointment",appointmentCollectorTemplate:"appointmentCollector",dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,startDayHour:0,endDayHour:24,editing:{allowAdding:!0,allowDeleting:!0,allowDragging:!0,allowResizing:!0,allowUpdating:!0,allowTimeZoneEditing:!1},showAllDayPanel:!0,showCurrentTimeIndicator:!0,shadeUntilCurrentTime:!1,indicatorUpdateInterval:3e5,indicatorTime:void 0,recurrenceEditMode:"dialog",cellDuration:30,maxAppointmentsPerCell:"auto",selectedCellData:[],groupByDate:!1,onAppointmentRendered:null,onAppointmentClick:null,onAppointmentDblClick:null,onAppointmentContextMenu:null,onCellClick:null,onCellContextMenu:null,onAppointmentAdding:null,onAppointmentAdded:null,onAppointmentUpdating:null,onAppointmentUpdated:null,onAppointmentDeleting:null,onAppointmentDeleted:null,onAppointmentFormOpening:null,onAppointmentTooltipShowing:null,appointmentTooltipTemplate:"appointmentTooltip",appointmentPopupTemplate:"appointmentPopup",crossScrollingEnabled:!1,useDropDownViewSwitcher:!1,startDateExpr:"startDate",endDateExpr:"endDate",textExpr:"text",descriptionExpr:"description",allDayExpr:"allDay",recurrenceRuleExpr:"recurrenceRule",recurrenceExceptionExpr:"recurrenceException",disabledExpr:"disabled",remoteFiltering:!1,timeZone:"",startDateTimeZoneExpr:"startDateTimeZone",endDateTimeZoneExpr:"endDateTimeZone",noDataText:ye.format("dxCollectionWidget-noDataText"),adaptivityEnabled:!1,allowMultipleCellSelection:!0,scrolling:{mode:"standard"},allDayPanelMode:"all",renovateRender:!0,_draggingMode:"outlook",_appointmentTooltipOffset:{x:0,y:0},_appointmentTooltipButtonsPosition:"bottom",_appointmentTooltipOpenButtonText:ye.format("dxScheduler-openAppointment"),_appointmentCountPerCell:2,_collectorOffset:0,_appointmentOffset:26,toolbar:[{location:"before",defaultElement:"dateNavigator"},{location:"after",defaultElement:"viewSwitcher"}]});return se(!0,n,{integrationOptions:{useDeferUpdateForTemplates:!1}})}get filteredItems(){return this._filteredItems||(this._filteredItems=[]),this._filteredItems}set filteredItems(n){this._filteredItems=n}get preparedItems(){return this._preparedItems||(this._preparedItems=[]),this._preparedItems}set preparedItems(n){this._preparedItems=n}get currentView(){return _3(this.option("currentView"),this.option("views"))}get currentViewType(){return Jn(this.currentView)?this.currentView.type:this.currentView}get timeZoneCalculator(){return this._timeZoneCalculator||(this._timeZoneCalculator=(t=>new Qyn({getClientOffset:n=>qr.getClientTimezoneOffset(n),tryGetCommonOffset:n=>qr.calculateTimezoneByValue(t,n),tryGetAppointmentOffset:(n,e)=>qr.calculateTimezoneByValue(e,n)}))(this.option("timeZone"))),this._timeZoneCalculator}_setDeprecatedOptions(){super._setDeprecatedOptions(),se(this._deprecatedOptions,{dropDownAppointmentTemplate:{since:"19.2",message:"appointmentTooltipTemplate"}})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!pn.current().generic},options:{useDropDownViewSwitcher:!0,editing:{allowDragging:!1,allowResizing:!1}}},{device:function(){return io()},options:{useDropDownViewSwitcher:!0,dateCellTemplate:function(n,e,i){n.text.split(" ").forEach(function(o,a){var s=U("<span>").text(o).addClass("dx-scheduler-header-panel-cell-date");U(i).append(s),a||U(i).append(" ")})},_appointmentTooltipOffset:{x:0,y:11},_appointmentTooltipButtonsPosition:"top",_appointmentTooltipOpenButtonText:null,_appointmentCountPerCell:1,_collectorOffset:20,_appointmentOffset:30}}])}_postponeDataSourceLoading(n){this.postponedOperations.add("_reloadDataSource",this._reloadDataSource.bind(this),n)}_postponeResourceLoading(){var n=this.postponedOperations.add("loadResources",()=>{var i=this._getCurrentViewOption("groups");return _8e(i,this.option("resources"),this.option("resourceLoaderMap"))}),e=new et;return n.done(i=>{this.option("loadedResources",i),e.resolve(i)}),this._postponeDataSourceLoading(n),e.promise()}_optionChanged(n){var e,i,r,o=n.value,a=n.name;switch(n.name){case"customizeDateNavigatorText":this._updateOption("header",a,o);break;case"firstDayOfWeek":this._updateOption("workSpace",a,o),this._updateOption("header",a,o);break;case"currentDate":o=this._dateOption(a),o=bt.trimTime(new Date(o)),this.option("selectedCellData",[]),this._workSpace.option(a,new Date(o)),null===(e=this._header)||void 0===e||e.option(a,new Date(o)),null===(i=this._header)||void 0===i||i.option("startViewDate",this.getStartViewDate()),this._appointments.option("items",[]),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"dataSource":this._initDataSource(),this.appointmentDataProvider.setDataSource(this._dataSource),this._postponeResourceLoading().done(u=>{this._filterAppointmentsByDate(),this._updateOption("workSpace","showAllDayPanel",this.option("showAllDayPanel"))});break;case"min":case"max":o=this._dateOption(a),this._updateOption("header",a,new Date(o)),this._updateOption("workSpace",a,new Date(o));break;case"views":var s;this._getCurrentViewOptions()?this.repaint():null===(s=this._header)||void 0===s||s.option(a,o);break;case"useDropDownViewSwitcher":null===(r=this._header)||void 0===r||r.option(a,o);break;case"currentView":this._validateDayHours(),this._validateCellDuration(),this._appointments.option({items:[],allowDrag:this._allowDragging(),allowResize:this._allowResizing(),itemTemplate:this._getAppointmentTemplate("appointmentTemplate")}),this._postponeResourceLoading().done(u=>{var f;this._refreshWorkSpace(u),null===(f=this._header)||void 0===f||f.option(this._headerConfig()),this._filterAppointmentsByDate(),this._appointments.option("allowAllDayResize","day"!==o)}),this.postponedOperations.callPostponedOperations();break;case"appointmentTemplate":this._appointments.option("itemTemplate",o);break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":this.repaint();break;case"groups":this._postponeResourceLoading().done(u=>{this._refreshWorkSpace(u),this._filterAppointmentsByDate()});break;case"resources":this._dataAccessors.resources=m8e(this.option("resources")),this.agendaResourceProcessor.initializeState(this.option("resources")),this.updateInstances(),this._postponeResourceLoading().done(u=>{this._appointments.option("items",[]),this._refreshWorkSpace(u),this._filterAppointmentsByDate(),this._createAppointmentPopupForm()});break;case"startDayHour":case"endDayHour":this._validateDayHours(),this.updateInstances(),this._appointments.option("items",[]),this._updateOption("workSpace",a,o),this._appointments.repaint(),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case jl_ADDING:case jl_ADDED:case"onAppointmentUpdating":case jl_UPDATED:case"onAppointmentDeleting":case jl_DELETED:case"onAppointmentFormOpening":case"onAppointmentTooltipShowing":this._actions[a]=this._createActionByOption(a);break;case"onAppointmentRendered":this._appointments.option("onItemRendered",this._getAppointmentRenderedAction());break;case"onAppointmentClick":this._appointments.option("onItemClick",this._createActionByOption(a));break;case"onAppointmentDblClick":this._appointments.option(a,this._createActionByOption(a));break;case"onAppointmentContextMenu":this._appointments.option("onItemContextMenu",this._createActionByOption(a));break;case"noDataText":case"allowMultipleCellSelection":case"selectedCellData":case"accessKey":case"onCellClick":case"onCellContextMenu":this._workSpace.option(a,o);break;case"crossScrollingEnabled":this._postponeResourceLoading().done(u=>{this._appointments.option("items",[]),this._refreshWorkSpace(u),this._readyToRenderAppointments&&this._appointments.option("items",this._getAppointmentsToRepaint())});break;case"cellDuration":this._validateCellDuration(),this._updateOption("workSpace",a,o),this._appointments.option("items",[]),this._readyToRenderAppointments&&(this._updateOption("workSpace","hoursInterval",o/60),this._appointments.option("items",this._getAppointmentsToRepaint()));break;case"tabIndex":case"focusStateEnabled":this._updateOption("header",a,o),this._updateOption("workSpace",a,o),this._appointments.option(a,o),super._optionChanged(n);break;case"width":this._updateOption("header",a,o),this.option("crossScrollingEnabled")&&this._updateOption("workSpace","width",o),this._updateOption("workSpace","schedulerWidth",o),super._optionChanged(n),this._dimensionChanged();break;case"height":super._optionChanged(n),this._dimensionChanged(),this._updateOption("workSpace","schedulerHeight",o);break;case"editing":this._initEditing(),this._bringEditingModeToAppointments(this._editing),this.hideAppointmentTooltip(),this._cleanPopup();break;case"showAllDayPanel":this.updateInstances(),this.repaint();break;case"showCurrentTimeIndicator":case"indicatorTime":case"indicatorUpdateInterval":case"shadeUntilCurrentTime":case"groupByDate":this._updateOption("workSpace",a,o),this.repaint();break;case"appointmentDragging":case"appointmentTooltipTemplate":case"appointmentPopupTemplate":case"recurrenceEditMode":case"remoteFiltering":case"timeZone":this.updateInstances(),this.repaint();break;case"dropDownAppointmentTemplate":case"appointmentCollectorTemplate":case"_appointmentTooltipOffset":case"_appointmentTooltipButtonsPosition":case"_appointmentTooltipOpenButtonText":case"_appointmentCountPerCell":case"_collectorOffset":case"_appointmentOffset":this.repaint();break;case"dateSerializationFormat":case"maxAppointmentsPerCell":break;case"startDateExpr":case"endDateExpr":case"startDateTimeZoneExpr":case"endDateTimeZoneExpr":case"textExpr":case"descriptionExpr":case"allDayExpr":case"recurrenceRuleExpr":case"recurrenceExceptionExpr":case"disabledExpr":this._updateExpression(a,o),this.appointmentDataProvider.updateDataAccessors(this._dataAccessors),this._initAppointmentTemplate(),this.repaint();break;case"adaptivityEnabled":this._toggleAdaptiveClass(),this.repaint();break;case"scrolling":this.option("crossScrollingEnabled",this._isHorizontalVirtualScrolling()||this.option("crossScrollingEnabled")),this._updateOption("workSpace",n.fullName,o);break;case"allDayPanelMode":this._updateOption("workSpace",n.fullName,o);break;case"renovateRender":this._updateOption("workSpace",a,o);break;case"_draggingMode":this._workSpace.option("draggingMode",o);break;case"toolbar":this._header?this._header.option("items",o):this.repaint();break;case"loadedResources":case"resourceLoaderMap":break;default:super._optionChanged(n)}}_dateOption(n){var e=this._getCurrentViewOption(n);return Qr.deserializeDate(e)}_getSerializationFormat(n){var e=this._getCurrentViewOption(n);return"number"==typeof e?"number":Pn(e)?Qr.getDateSerializationFormat(e):void 0}_bringEditingModeToAppointments(n){var e={allowDelete:n.allowUpdating&&n.allowDeleting};this._isAgenda()||(e.allowDrag=n.allowDragging,e.allowResize=n.allowResizing,e.allowAllDayResize=n.allowResizing&&this._supportAllDayResizing()),this._appointments.option(e),this.repaint()}_isAgenda(){return"agenda"===this.getLayoutManager().appointmentRenderingStrategyName}_allowDragging(){return this._editing.allowDragging&&!this._isAgenda()}_allowResizing(){return this._editing.allowResizing&&!this._isAgenda()}_allowAllDayResizing(){return this._editing.allowResizing&&this._supportAllDayResizing()}_supportAllDayResizing(){return"day"!==this.currentViewType||this.currentView.intervalCount>1}_isAllDayExpanded(){return this.option("showAllDayPanel")&&this.appointmentDataProvider.hasAllDayAppointments(this.filteredItems,this.preparedItems)}_getTimezoneOffsetByOption(n){return qr.calculateTimezoneByValue(this.option("timeZone"),n)}_filterAppointmentsByDate(){var n=this._workSpace.getDateRange(),e=this.timeZoneCalculator.createDate(n[0],{path:"fromGrid"}),i=this.timeZoneCalculator.createDate(n[1],{path:"fromGrid"});this.appointmentDataProvider.filterByDate(e,i,this.option("remoteFiltering"),this.option("dateSerializationFormat"))}_reloadDataSource(){var n=new et;return this._dataSource?(this._dataSource.load().done(function(){Z8(),this._fireContentReadyAction(n)}.bind(this)).fail(function(){Z8(),n.reject()}),this._dataSource.isLoading()&&u8e({container:this.$element(),position:{of:this.$element()}})):this._fireContentReadyAction(n),n.promise()}_fireContentReadyAction(n){var r,e=super._fireContentReadyAction.bind(this),i=()=>{e(),n?.resolve()};this._workSpaceRecalculation?null===(r=this._workSpaceRecalculation)||void 0===r||r.done(()=>{i()}):i()}_dimensionChanged(){if(this._isVisible()){this._toggleSmallClass();var n=this.getWorkSpace();if(!this._isAgenda()&&this.filteredItems&&n){n.option("allDayExpanded",this._isAllDayExpanded()),n._dimensionChanged();var e=this.getLayoutManager().createAppointmentsMap(this.filteredItems);this._appointments.option("items",e)}this.hideAppointmentTooltip(),this._appointmentPopup.triggerResize(),this._appointmentPopup.updatePopupFullScreenMode()}}_clean(){this._cleanPopup(),super._clean()}_toggleSmallClass(){var n=Mi(this.$element().get(0)).width;this.$element().toggleClass(lCn,n<400)}_toggleAdaptiveClass(){this.$element().toggleClass(uCn,this.option("adaptivityEnabled"))}_visibilityChanged(n){n&&this._dimensionChanged()}_dataSourceOptions(){return{paginate:!1}}_initAllDayPanel(){"hidden"===this.option("allDayPanelMode")&&this.option("showAllDayPanel",!1)}_init(){this._initExpressions({startDate:this.option("startDateExpr"),endDate:this.option("endDateExpr"),startDateTimeZone:this.option("startDateTimeZoneExpr"),endDateTimeZone:this.option("endDateTimeZoneExpr"),allDay:this.option("allDayExpr"),text:this.option("textExpr"),description:this.option("descriptionExpr"),recurrenceRule:this.option("recurrenceRuleExpr"),recurrenceException:this.option("recurrenceExceptionExpr"),disabled:this.option("disabledExpr")}),super._init(),this._initAllDayPanel(),this._initDataSource(),this._customizeDataSourceLoadOptions(),this.$element().addClass(O3),this._initEditing(),this.updateInstances(),this._initActions(),this._compactAppointmentsHelper=new Shn(this),this._asyncTemplatesTimers=[],this._dataSourceLoadedCallback=Zi(),this._subscribes=H3e,this.agendaResourceProcessor=new zyn(this.option("resources"))}createAppointmentDataProvider(){var n;null===(n=this.appointmentDataProvider)||void 0===n||n.destroy(),this.appointmentDataProvider=new qyn({dataSource:this._dataSource,dataAccessors:this._dataAccessors,timeZoneCalculator:this.timeZoneCalculator,dateSerializationFormat:this.option("dateSerializationFormat"),resources:this.option("resources"),startDayHour:this._getCurrentViewOption("startDayHour"),endDayHour:this._getCurrentViewOption("endDayHour"),appointmentDuration:this._getCurrentViewOption("cellDuration"),allDayPanelMode:this._getCurrentViewOption("allDayPanelMode"),showAllDayPanel:this.option("showAllDayPanel"),getLoadedResources:()=>this.option("loadedResources"),getIsVirtualScrolling:()=>this.isVirtualScrolling(),getSupportAllDayRow:()=>this._workSpace.supportAllDayRow(),getViewType:()=>this._workSpace.type,getViewDirection:()=>this._workSpace.viewDirection,getDateRange:()=>this._workSpace.getDateRange(),getGroupCount:()=>this._workSpace._getGroupCount(),getViewDataProvider:()=>this._workSpace.viewDataProvider})}updateInstances(){this._timeZoneCalculator=null,this.getWorkSpace()&&this.createAppointmentDataProvider()}_customizeDataSourceLoadOptions(){var n;null===(n=this._dataSource)||void 0===n||n.on("customizeStoreLoadOptions",e=>{var{storeLoadOptions:i}=e;i.startDate=this.getStartViewDate(),i.endDate=this.getEndViewDate()})}_initTemplates(){this._initAppointmentTemplate(),this._templateManager.addDefaultTemplates({appointmentTooltip:new xh,dropDownAppointment:new xh}),super._initTemplates()}_initAppointmentTemplate(){var{expr:n}=this._dataAccessors,e=r=>Ai("appointmentData.".concat(r)),i=r=>o=>{var a=r(o);return a instanceof Date?a.valueOf():a};this._templateManager.addDefaultTemplates({item:new Ac((r,o,a)=>this.getAppointmentsInstance()._renderAppointmentTemplate(r,o,a),["html","text","startDate","endDate","allDay","description","recurrenceRule","recurrenceException","startDateTimeZone","endDateTimeZone"],this.option("integrationOptions.watchMethod"),{text:e(n.textExpr),startDate:i(e(n.startDateExpr)),endDate:i(e(n.endDateExpr)),startDateTimeZone:e(n.startDateTimeZoneExpr),endDateTimeZone:e(n.endDateTimeZoneExpr),allDay:e(n.allDayExpr),recurrenceRule:e(n.recurrenceRuleExpr)})})}_renderContent(){this._renderContentImpl()}_updatePreparedItems(n){this.preparedItems=((t,n,e,i)=>{var r=[];return t?.forEach(o=>{var a,s=new Date(n.getter.startDate(o)),l=new Date(n.getter.endDate(o));K8e(o,s,l,e,n);var u=sa(o,n,i),f=u.startDate&&u.calculateStartDate("toGrid"),S=u.endDate&&u.calculateEndDate("toGrid"),T=new RegExp("freq","gi"),R=u.recurrenceRule,L=!(null==R||null===(a=R.match(T))||void 0===a||!a.length),z=!Z(o.visible)||!!o.visible;f&&S&&r.push({allDay:!!u.allDay,startDate:f,startDateTimeZone:o.startDateTimeZone,endDate:S,endDateTimeZone:o.endDateTimeZone,recurrenceRule:u.recurrenceRule,recurrenceException:u.recurrenceException,hasRecurrenceRule:L,visible:z,rawAppointment:o})}),r})(n,this._dataAccessors,this._getCurrentViewOption("cellDuration"),this.timeZoneCalculator)}_dataSourceChangedHandler(n){this._readyToRenderAppointments&&this._workSpaceRecalculation.done(function(){this._updatePreparedItems(n),this._renderAppointments(),this.getWorkSpace().onDataSourceChanged(this.filteredItems)}.bind(this))}isVirtualScrolling(){var n,e=this.getWorkSpace();if(e)return e.isVirtualScrolling();var i=this._getCurrentViewOptions();return"virtual"===this.option("scrolling")?.mode||"virtual"===(null==i||null===(n=i.scrolling)||void 0===n?void 0:n.mode)}_filterAppointments(){this.filteredItems=this.appointmentDataProvider.filter(this.preparedItems)}_renderAppointments(){var n=this.getWorkSpace();this._filterAppointments(),n.option("allDayExpanded",this._isAllDayExpanded());var e=[];this._isVisible()&&(e=this._getAppointmentsToRepaint()),this.option("isRenovatedAppointments")?(t=>{var{instance:n,$dateTable:e,viewModel:i}=t,r=(t=>{var n=U(".dx-appointments-container");return 0===n.length&&(n=U("<div>").addClass("dx-appointments-container").appendTo(t)),n})(e);gu.renovation.renderComponent(n,r,f6e,"renovatedAppointments",i)})({instance:this,$dateTable:this.getWorkSpace()._getDateTable(),viewModel:e}):this._appointments.option("items",e),this.appointmentDataProvider.cleanState()}_getAppointmentsToRepaint(){var n=this.getLayoutManager(),e=n.createAppointmentsMap(this.filteredItems);return this.option("isRenovatedAppointments")?{appointments:e,appointmentTemplate:"item"!==this.option("appointmentTemplate")?this.option("appointmentTemplate"):void 0}:n.getRepaintedAppointments(e,this.getAppointmentsInstance().option("items"))}_initExpressions(n){this._dataAccessors=gu.dataAccessors.create(n,this._dataAccessors,no().forceIsoDateParsing,this.option("dateSerializationFormat")),this._dataAccessors.resources=m8e(this.option("resources"))}_updateExpression(n,e){var i={};i[n.replace("Expr","")]=e,this._initExpressions(i)}getResourceDataAccessors(){return this._dataAccessors.resources}_initEditing(){var n=this.option("editing");this._editing={allowAdding:!!n,allowUpdating:!!n,allowDeleting:!!n,allowResizing:!!n,allowDragging:!!n},Jn(n)&&(this._editing=se(this._editing,n)),this._editing.allowDragging=this._editing.allowDragging&&this._editing.allowUpdating,this._editing.allowResizing=this._editing.allowResizing&&this._editing.allowUpdating,this.$element().toggleClass(dCn,this._isReadOnly())}_isReadOnly(){var n=!0,e=this._editing;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n=n&&!e[i]);return n}_dispose(){var n;this._appointmentTooltip&&this._appointmentTooltip.dispose(),null===(n=this._recurrenceDialog)||void 0===n||n.hide("cancel"),this.hideAppointmentPopup(),this.hideAppointmentTooltip(),this._asyncTemplatesTimers.forEach(clearTimeout),this._asyncTemplatesTimers=[],super._dispose()}_initActions(){this._actions={onAppointmentAdding:this._createActionByOption(jl_ADDING),onAppointmentAdded:this._createActionByOption(jl_ADDED),onAppointmentUpdating:this._createActionByOption("onAppointmentUpdating"),onAppointmentUpdated:this._createActionByOption(jl_UPDATED),onAppointmentDeleting:this._createActionByOption("onAppointmentDeleting"),onAppointmentDeleted:this._createActionByOption(jl_DELETED),onAppointmentFormOpening:this._createActionByOption("onAppointmentFormOpening"),onAppointmentTooltipShowing:this._createActionByOption("onAppointmentTooltipShowing")}}_getAppointmentRenderedAction(){return this._createActionByOption("onAppointmentRendered",{excludeValidators:["disabled","readOnly"]})}_renderFocusTarget(){}_initMarkup(){if(super._initMarkup(),this._validateDayHours(),this._validateCellDuration(),this._renderMainContainer(),this._renderHeader(),this._layoutManager=new class Ign{constructor(n){this.instance=n,this.appointmentViewModel=new Ogn}get appointmentRenderingStrategyName(){return(t=>{var{renderingStrategy:n}={day:{renderingStrategy:"vertical"},week:{renderingStrategy:"week"},workWeek:{renderingStrategy:"week"},month:{renderingStrategy:"horizontalMonth"},timelineDay:{renderingStrategy:"horizontal"},timelineWeek:{renderingStrategy:"horizontal"},timelineWorkWeek:{renderingStrategy:"horizontal"},timelineMonth:{renderingStrategy:"horizontalMonthLine"},agenda:{renderingStrategy:"agenda"}}[t];return n})(this.instance.currentViewType)}getCellDimensions(n){if(this.instance._workSpace)return{width:this.instance._workSpace.getCellWidth(),height:this.instance._workSpace.getCellHeight(),allDayHeight:this.instance._workSpace.getAllDayHeight()}}_getRenderingStrategyOptions(){var n=this.instance.getWorkSpace(),{virtualScrollingDispatcher:e}=this.instance.getWorkSpace(),{cellCountInsideLeftVirtualCell:i,cellCountInsideTopVirtualRow:r}=e,o=c0(this.instance.option("loadedResources")),a=n.getDOMElementsMetaData(),s=PM(n.option("showAllDayPanel"),n._isVerticalGroupedWorkSpace(),a),l=n._getRowCount(),{positionHelper:u,viewDataProvider:f}=n,S=f.getVisibleDayDuration(n.option("startDayHour"),n.option("endDayHour"),n.option("hoursInterval")),T=f3e(n.type,n.option("startDayHour"),n.option("endDayHour"),n.option("hoursInterval"));return{resources:this.instance.option("resources"),loadedResources:this.instance.option("loadedResources"),getAppointmentColor:this.instance.createGetAppointmentColor(),dataAccessors:this.instance._dataAccessors,isRenovatedAppointments:this.instance.option("isRenovatedAppointments"),appointmentRenderingStrategyName:this.appointmentRenderingStrategyName,adaptivityEnabled:this.instance.option("adaptivityEnabled"),rtlEnabled:this.instance.option("rtlEnabled"),startDayHour:this.instance._getCurrentViewOption("startDayHour"),endDayHour:this.instance._getCurrentViewOption("endDayHour"),maxAppointmentsPerCell:this.instance._getCurrentViewOption("maxAppointmentsPerCell"),currentDate:this.instance.option("currentDate"),isVirtualScrolling:this.instance.isVirtualScrolling(),leftVirtualCellCount:i,topVirtualCellCount:r,intervalCount:n.option("intervalCount"),hoursInterval:n.option("hoursInterval"),showAllDayPanel:n.option("showAllDayPanel"),isGroupedAllDayPanel:n.isGroupedAllDayPanel(),groups:this.instance._getCurrentViewOption("groups"),groupCount:o,rowCount:l,appointmentCountPerCell:this.instance.option("_appointmentCountPerCell"),appointmentOffset:this.instance.option("_appointmentOffset"),allowResizing:this.instance._allowResizing(),allowAllDayResizing:this.instance._allowAllDayResizing(),startViewDate:n.getStartViewDate(),groupOrientation:n._getRealGroupOrientation(),cellWidth:h3(a),cellHeight:BQ(a),allDayHeight:s,resizableStep:u.getResizableStep(),visibleDayDuration:S,allDayPanelMode:this.instance._getCurrentViewOption("allDayPanelMode"),timeZoneCalculator:this.instance.timeZoneCalculator,timeZone:this.instance.option("timeZone"),firstDayOfWeek:this.instance.getFirstDayOfWeek(),viewStartDayHour:this.instance._getCurrentViewOption("startDayHour"),viewEndDayHour:this.instance._getCurrentViewOption("endDayHour"),viewType:n.type,endViewDate:n.getEndViewDate(),positionHelper:u,isGroupedByDate:n.isGroupedByDate(),cellDuration:T,cellDurationInMinutes:n.option("cellDuration"),viewDataProvider:n.viewDataProvider,supportAllDayRow:n.supportAllDayRow(),dateRange:n.getDateRange(),intervalDuration:n.getIntervalDuration(),allDayIntervalDuration:n.getIntervalDuration(!0),isVerticalGroupOrientation:n.isVerticalOrientation(),DOMMetaData:a,instance:this.instance,agendaDuration:n.option("agendaDuration")}}createAppointmentsMap(n){var e=this._getRenderingStrategyOptions(),{viewModel:i,positionMap:r}=this.appointmentViewModel.generate(n,e);return this._positionMap=r,i}_isDataChanged(n){var e=this.instance.appointmentDataProvider;return e.getUpdatedAppointment()===n||e.getUpdatedAppointmentKeys().some(r=>n[r.key]===r.value)}_isAppointmentShouldAppear(n,e){return n.needRepaint&&e.needRemove}_isSettingChanged(n,e){if(n.length!==e.length)return!0;for(var i=(s,l)=>{var u=s[l];return mt({},u,{columnIndex:u.columnIndex+(u.leftVirtualCellCount||0),rowIndex:u.rowIndex+(u.topVirtualCellCount||0),positionByMap:void 0,topVirtualCellCount:void 0,leftVirtualCellCount:void 0,leftVirtualWidth:void 0,topVirtualHeight:void 0,hMax:u.reduced?u.hMax:void 0,vMax:u.reduced?u.vMax:void 0,info:{}})},r=0;r<n.length;r++){var o=i(n,r),a=i(e,r);if(a&&(a.sortedIndex=o.sortedIndex),!Tr(o,a))return!0}return!1}_getAssociatedSourceAppointment(n,e){for(var i=0;i<e.length;i++){var r=e[i];if(r.itemData===n.itemData)return r}return null}_getDeletedAppointments(n,e){for(var i=[],r=0;r<e.length;r++){var o=e[r];this._getAssociatedSourceAppointment(o,n)||(o.needRemove=!0,i.push(o))}return i}getRepaintedAppointments(n,e){return 0===e.length||"agenda"===this.appointmentRenderingStrategyName?n:(n.forEach(i=>{var r=this._getAssociatedSourceAppointment(i,e);if(r){var o=this._isDataChanged(i.itemData),a=this._isSettingChanged(i.settings,r.settings),s=this._isAppointmentShouldAppear(i,r);i.needRepaint=o||a||s}}),n.concat(this._getDeletedAppointments(n,e)))}getRenderingStrategyInstance(){if(!this.appointmentViewModel.getRenderingStrategy()){var e=this._getRenderingStrategyOptions();this.appointmentViewModel.initRenderingStrategy(e)}return this.appointmentViewModel.getRenderingStrategy()}}(this),this._appointments=this._createComponent("<div>",_pn,this._appointmentsConfig()),this._appointments.option("itemTemplate",this._getAppointmentTemplate("appointmentTemplate")),this._appointmentTooltip=new(this.option("adaptivityEnabled")?Hhn:Phn)(this._getAppointmentTooltipOptions()),this._createAppointmentPopupForm(),this._isDataSourceLoaded()||this._isDataSourceLoading())this._initMarkupCore(this.option("loadedResources")),this._dataSourceChangedHandler(this._dataSource.items()),this._fireContentReadyAction();else{var n=this._getCurrentViewOption("groups");_8e(n,this.option("resources"),this.option("resourceLoaderMap")).done(e=>{this.option("loadedResources",e),this._initMarkupCore(e),this._reloadDataSource()})}}_createAppointmentPopupForm(){var n,e;this._appointmentForm&&(null===(e=this._appointmentForm.form)||void 0===e||e.dispose()),this._appointmentForm=this.createAppointmentForm(),null===(n=this._appointmentPopup)||void 0===n||n.dispose(),this._appointmentPopup=this.createAppointmentPopup(this._appointmentForm)}_renderMainContainer(){this._mainContainer=U("<div>").addClass("dx-scheduler-container"),this.$element().append(this._mainContainer)}createAppointmentForm(){var n={createResourceEditorModel:()=>((t,n)=>t.map(e=>{var i=Nv(e),r=((t,n)=>{for(var e=0;e<n.length;e++){var i=n[e];if(i.name===t)return i.data}return[]})(i,n);return{editorOptions:{dataSource:r.length?r:X8(e.dataSource),displayExpr:mQ(e),valueExpr:IM(e)},dataField:i,editorType:e.allowMultiple?"dxTagBox":"dxSelectBox",label:{text:e.label||i}}}))(this.option("resources"),this.option("loadedResources")),getDataAccessors:()=>this._dataAccessors,createComponent:(e,i,r)=>this._createComponent(e,i,r),getEditingConfig:()=>this._editing,getFirstDayOfWeek:()=>this.option("firstDayOfWeek"),getStartDayHour:()=>this.option("startDayHour"),getCalculatedEndDate:e=>this._workSpace.calculateEndDate(e)};return new phn(n)}createAppointmentPopup(n){return new Xcn({getElement:()=>this.$element(),createComponent:(i,r,o)=>this._createComponent(i,r,o),focus:()=>this.focus(),getResources:()=>this.option("resources"),getEditingConfig:()=>this._editing,getTimeZoneCalculator:()=>this.timeZoneCalculator,getDataAccessors:()=>this._dataAccessors,getAppointmentFormOpening:()=>this._actions.onAppointmentFormOpening,processActionResult:(i,r)=>this._processActionResult(i,r),addAppointment:i=>this.addAppointment(i),updateAppointment:(i,r)=>this.updateAppointment(i,r),updateScrollPosition:(i,r,o)=>{this._workSpace.updateScrollPosition(i,r,o)}},n)}_getAppointmentTooltipOptions(){return{createComponent:this._createComponent.bind(this),container:this.$element(),getScrollableContainer:this.getWorkSpaceScrollableContainer.bind(this),addDefaultTemplates:this._templateManager.addDefaultTemplates.bind(this._templateManager),getAppointmentTemplate:this._getAppointmentTemplate.bind(this),showAppointmentPopup:this.showAppointmentPopup.bind(this),checkAndDeleteAppointment:this.checkAndDeleteAppointment.bind(this),isAppointmentInAllDayPanel:this.isAppointmentInAllDayPanel.bind(this),createFormattedDateText:(n,e,i)=>this.fire("getTextAndFormatDate",n,e,i),getAppointmentDisabled:n=>sa(n,this._dataAccessors,this.timeZoneCalculator).disabled}}checkAndDeleteAppointment(n,e){var i=sa(e,this._dataAccessors,this.timeZoneCalculator),r=this.fireOnAppointmentDeleting(n,i);this._checkRecurringAppointment(n,e,i.startDate,()=>{this.processDeleteAppointment(n,r)},!0)}_getExtraAppointmentTooltipOptions(){return{rtlEnabled:this.option("rtlEnabled"),focusStateEnabled:this.option("focusStateEnabled"),editing:this.option("editing"),offset:this.option("_appointmentTooltipOffset")}}isAppointmentInAllDayPanel(n){var e=this._workSpace;return this.appointmentTakesAllDay(n)&&e.supportAllDayRow()&&e.option("showAllDayPanel")}_initMarkupCore(n){this._readyToRenderAppointments=Rn(),this._workSpace&&this._cleanWorkspace(),this._renderWorkSpace(n),this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplate(()=>{var e;return null===(e=this._workSpaceRecalculation)||void 0===e?void 0:e.resolve()}),this.createAppointmentDataProvider(),this._filterAppointmentsByDate()}_isDataSourceLoaded(){return this._dataSource&&this._dataSource.isLoaded()}_render(){var n;this._toggleSmallClass(),this._toggleAdaptiveClass(),null===(n=this.getWorkSpace())||void 0===n||n.updateHeaderEmptyCellWidth(),super._render()}_renderHeader(){if(0!==this.option("toolbar").length){var n=U("<div>").appendTo(this._mainContainer);this._header=this._createComponent(n,V3e,this._headerConfig())}}_headerConfig(){var n=this._getCurrentViewOptions(),e=this._getViewCountConfig(),i=se({firstDayOfWeek:this.getFirstDayOfWeek(),currentView:this.option("currentView"),isAdaptive:this.option("adaptivityEnabled"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),rtlEnabled:this.option("rtlEnabled"),useDropDownViewSwitcher:this.option("useDropDownViewSwitcher"),customizeDateNavigatorText:this.option("customizeDateNavigatorText"),agendaDuration:n.agendaDuration||7},n);return i.intervalCount=e.intervalCount,i.views=this.option("views"),i.min=new Date(this._dateOption("min")),i.max=new Date(this._dateOption("max")),i.currentDate=bt.trimTime(new Date(this._dateOption("currentDate"))),i.onCurrentViewChange=r=>{this.option("currentView",r)},i.onCurrentDateChange=r=>{this.option("currentDate",r)},i.items=this.option("toolbar"),i.startViewDate=this.getStartViewDate(),i.todayDate=()=>this.timeZoneCalculator.createDate(new Date,{path:"toGrid"}),i}_appointmentsConfig(){var n={getResources:()=>this.option("resources"),getResourceDataAccessors:this.getResourceDataAccessors.bind(this),getAgendaResourceProcessor:()=>this.agendaResourceProcessor,getAppointmentColor:this.createGetAppointmentColor(),getAppointmentDataProvider:()=>this.appointmentDataProvider,dataAccessors:this._dataAccessors,observer:this,onItemRendered:this._getAppointmentRenderedAction(),onItemClick:this._createActionByOption("onAppointmentClick"),onItemContextMenu:this._createActionByOption("onAppointmentContextMenu"),onAppointmentDblClick:this._createActionByOption("onAppointmentDblClick"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),allowDrag:this._allowDragging(),allowDelete:this._editing.allowUpdating&&this._editing.allowDeleting,allowResize:this._allowResizing(),allowAllDayResize:this._allowAllDayResizing(),rtlEnabled:this.option("rtlEnabled"),currentView:this.currentView,groups:this._getCurrentViewOption("groups"),isRenovatedAppointments:this.option("isRenovatedAppointments"),timeZoneCalculator:this.timeZoneCalculator,getResizableStep:()=>this._workSpace?this._workSpace.positionHelper.getResizableStep():0,getDOMElementsMetaData:()=>{var e;return null===(e=this._workSpace)||void 0===e?void 0:e.getDOMElementsMetaData()},getViewDataProvider:()=>{var e;return null===(e=this._workSpace)||void 0===e?void 0:e.viewDataProvider},isVerticalViewDirection:()=>"vertical"===this.getRenderingStrategyInstance().getDirection(),isVerticalGroupedWorkSpace:()=>this._workSpace._isVerticalGroupedWorkSpace(),isDateAndTimeView:()=>Bb(this._workSpace.type),onContentReady:()=>{var e;null===(e=this._workSpace)||void 0===e||e.option("allDayExpanded",this._isAllDayExpanded())}};return n}getCollectorOffset(){return this._workSpace.needApplyCollectorOffset()&&!this.option("adaptivityEnabled")?this.option("_collectorOffset"):0}getAppointmentDurationInMinutes(){return this._getCurrentViewOption("cellDuration")}_validateCellDuration(){60*(this._getCurrentViewOption("endDayHour")-this._getCurrentViewOption("startDayHour"))%this._getCurrentViewOption("cellDuration")!=0&&Di.log("W1015")}_getCurrentViewType(){return this.currentViewType}_renderWorkSpace(n){var e;this._readyToRenderAppointments&&this._toggleSmallClass();var i=U("<div>").appendTo(this._mainContainer),r=this._getViewCountConfig(),o=mCn[this._getCurrentViewType()].workSpace,a=this._workSpaceConfig(n,r);this._workSpace=this._createComponent(i,o,a),this._allowDragging()&&this._workSpace.initDragBehavior(this,this._all),this._workSpace._attachTablesEvents(),this._workSpace.getWorkArea().append(this._appointments.$element()),this._recalculateWorkspace(),r.startDate&&(null===(e=this._header)||void 0===e||e.option("currentDate",this._workSpace._getHeaderDate())),this._appointments.option("_collectorOffset",this.getCollectorOffset())}_getViewCountConfig(){var n=this.option("currentView"),e=this._getViewByName(n);return{intervalCount:e&&e.intervalCount||1,startDate:e&&e.startDate||null}}_getViewByName(n){for(var e=this.option("views"),i=0;i<e.length;i++)if(e[i].name===n||e[i].type===n||e[i]===n)return e[i]}_recalculateWorkspace(){this._workSpaceRecalculation=new et,this._waitAsyncTemplate(()=>{qd(this._workSpace.$element()),this._workSpace._refreshDateTimeIndication()})}_workSpaceConfig(n,e){var i,r=this._getCurrentViewOptions(),o=this.option("scrolling"),a="virtual"===o.mode||"virtual"===(null===(i=r.scrolling)||void 0===i?void 0:i.mode),s=a&&(!Z(o.orientation)||["horizontal","both"].filter(f=>{var S;return o.orientation===f||(null===(S=r.scrolling)||void 0===S?void 0:S.orientation)===f}).length>0),l=this.option("crossScrollingEnabled")||s||kQ(this.currentViewType),u=se({resources:this.option("resources"),loadedResources:this.option("loadedResources"),getFilteredItems:()=>this.filteredItems,getResourceDataAccessors:this.getResourceDataAccessors.bind(this),noDataText:this.option("noDataText"),firstDayOfWeek:this.option("firstDayOfWeek"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),tabIndex:this.option("tabIndex"),accessKey:this.option("accessKey"),focusStateEnabled:this.option("focusStateEnabled"),cellDuration:this.option("cellDuration"),showAllDayPanel:this.option("showAllDayPanel"),showCurrentTimeIndicator:this.option("showCurrentTimeIndicator"),indicatorTime:this.option("indicatorTime"),indicatorUpdateInterval:this.option("indicatorUpdateInterval"),shadeUntilCurrentTime:this.option("shadeUntilCurrentTime"),allDayExpanded:this._appointments.option("items"),crossScrollingEnabled:l,dataCellTemplate:this.option("dataCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),resourceCellTemplate:this.option("resourceCellTemplate"),dateCellTemplate:this.option("dateCellTemplate"),allowMultipleCellSelection:this.option("allowMultipleCellSelection"),selectedCellData:this.option("selectedCellData"),onSelectionChanged:f=>{this.option("selectedCellData",f.selectedCellData)},groupByDate:this._getCurrentViewOption("groupByDate"),scrolling:o,draggingMode:this.option("_draggingMode"),timeZoneCalculator:this.timeZoneCalculator,schedulerHeight:this.option("height"),schedulerWidth:this.option("width"),allDayPanelMode:this.option("allDayPanelMode"),onSelectedCellsClick:this.showAddAppointmentPopup.bind(this),onRenderAppointments:this._renderAppointments.bind(this),onShowAllDayPanel:f=>this.option("showAllDayPanel",f),getHeaderHeight:()=>gu.DOM.getHeaderHeight(this._header),onScrollEnd:()=>this._appointments.updateResizableArea(),renovateRender:this._isRenovatedRender(a),isRenovatedAppointments:this.option("isRenovatedAppointments")},r);return u.observer=this,u.intervalCount=e.intervalCount,u.startDate=e.startDate,u.groups=n,u.onCellClick=this._createActionByOption("onCellClick"),u.onCellContextMenu=this._createActionByOption("onCellContextMenu"),u.currentDate=bt.trimTime(new Date(this._dateOption("currentDate"))),u.hoursInterval=u.cellDuration/60,u.allDayExpanded=!1,u.dataCellTemplate=u.dataCellTemplate?this._getTemplate(u.dataCellTemplate):null,u.timeCellTemplate=u.timeCellTemplate?this._getTemplate(u.timeCellTemplate):null,u.resourceCellTemplate=u.resourceCellTemplate?this._getTemplate(u.resourceCellTemplate):null,u.dateCellTemplate=u.dateCellTemplate?this._getTemplate(u.dateCellTemplate):null,u.getAppointmentDataProvider=()=>this.appointmentDataProvider,u}_isRenovatedRender(n){return this.option("renovateRender")&&Rn()||n}_waitAsyncTemplate(n){if(this._options.silent("templatesRenderAsynchronously")){var e=setTimeout(()=>{n(),clearTimeout(e)});this._asyncTemplatesTimers.push(e)}else n()}_getCurrentViewOptions(){return this.currentView}_getCurrentViewOption(n){return this.currentView&&void 0!==this.currentView[n]?this.currentView[n]:this.option(n)}_getAppointmentTemplate(n){var e=this._getCurrentViewOptions();return e&&e[n]?this._getTemplate(e[n]):this._getTemplateByOption(n)}_updateOption(n,e,i){var r=this._getCurrentViewOptions();(!r||!Z(r[e]))&&this["_"+n].option(e,i)}_refreshWorkSpace(n){this._cleanWorkspace(),delete this._workSpace,this._renderWorkSpace(n),this._readyToRenderAppointments&&(this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplate(()=>this._workSpaceRecalculation.resolve()))}_cleanWorkspace(){this._appointments.$element().detach(),this._workSpace._dispose(),this._workSpace.$element().remove(),this.option("selectedCellData",[])}getWorkSpaceScrollable(){return this._workSpace.getScrollable()}getWorkSpaceScrollableContainer(){return this._workSpace.getScrollableContainer()}getWorkSpace(){return this._workSpace}getHeader(){return this._header}_cleanPopup(){var n;null===(n=this._appointmentPopup)||void 0===n||n.dispose()}_checkRecurringAppointment(n,e,i,r,o,a,s,l){var u=ea_getField(this._dataAccessors,"recurrenceRule",n);if(wf().evalRecurrenceRule(u).isValid&&this._editing.allowUpdating)switch(l||this.option("recurrenceEditMode")){case"series":r();break;case"occurrence":this._excludeAppointmentFromSeries(n,e,i,o,a,s);break;default:s&&(s.cancel=new et),this._showRecurrenceChangeConfirm(o).done(S=>{"editSeries"===S&&r(),"editOccurence"===S&&this._excludeAppointmentFromSeries(n,e,i,o,a,s)}).fail(()=>this._appointments.moveAppointmentBack(s))}else r()}_excludeAppointmentFromSeries(n,e,i,r,o,a){var s=((t,n,e,i)=>{var r=sa(mt({},t),e,i);return r.recurrenceException=((t,n)=>{var e=[];return t.recurrenceException&&e.push(t.recurrenceException),e.push(((t,n,e)=>(e&&t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),Qr.serializeDate(t,nCn)))(n,t.startDate,t.allDay)),e.join()})(r,n),r})(n,i,this._dataAccessors,this._timeZoneCalculator),l=mt({},e);delete l[this._dataAccessors.expr.recurrenceExceptionExpr],delete l[this._dataAccessors.expr.recurrenceRuleExpr],delete l[this.appointmentDataProvider.keyName],!r&&!o&&this.addAppointment(l),o?(this._appointmentPopup.show(l,{isToolbarVisible:!0,action:2,excludeInfo:{sourceAppointment:n,updatedAppointment:s.source()}}),this._editAppointmentData=n):this._updateAppointment(n,s.source(),()=>{this._appointments.moveAppointmentBack(a)},a)}_createRecurrenceException(n,e){var i=[];return n.recurrenceException&&i.push(n.recurrenceException),i.push(this._getSerializedDate(e,n.startDate,n.allDay)),i.join()}_getSerializedDate(n,e,i){return i&&n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),Qr.serializeDate(n,"yyyyMMddTHHmmssZ")}_showRecurrenceChangeConfirm(n){var e=ye.format(n?"dxScheduler-confirmRecurrenceDeleteMessage":"dxScheduler-confirmRecurrenceEditMessage"),i=ye.format(n?"dxScheduler-confirmRecurrenceDeleteSeries":"dxScheduler-confirmRecurrenceEditSeries"),r=ye.format(n?"dxScheduler-confirmRecurrenceDeleteOccurrence":"dxScheduler-confirmRecurrenceEditOccurrence");return this._recurrenceDialog=kY({messageHtml:e,showCloseButton:!0,showTitle:!0,buttons:[{text:i,onClick:function(){return"editSeries"}},{text:r,onClick:function(){return"editOccurence"}}],popupOptions:{onHidden:o=>{o.component.$element().remove()},copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0}}),this._recurrenceDialog.show()}_getUpdatedData(n){var e=he=>he?this.timeZoneCalculator.createDate(he,{path:"fromGrid"}):void 0,i=he=>!isNaN(new Date(he).getTime()),r=this.getTargetCellData(),o=sa(n,this._dataAccessors,this.timeZoneCalculator),a=e(r.startDate),s=e(r.endDate),l=new Date(o.startDate),u=new Date(o.endDate),f=a||l;i(l)||(l=f),i(u)||(u=s);var S=u.getTime()-l.getTime();if(this._workSpace.keepOriginalHours()&&i(o.startDate)&&i(a)){var{trimTime:R}=bt,L=this.timeZoneCalculator.createDate(o.startDate,{path:"toGrid"}),z=L.getTime()-R(L).getTime();f=new Date(R(r.startDate).getTime()+z),f=this.timeZoneCalculator.createDate(f,{path:"fromGrid"})}var j=sa({},this._dataAccessors,this.timeZoneCalculator);void 0!==r.allDay&&(j.allDay=r.allDay),j.startDate=f;var Y=new Date(f.getTime()+S);if(this.appointmentTakesAllDay(n)&&!j.allDay&&this._workSpace.supportAllDayRow()&&(Y=this._workSpace.calculateEndDate(f)),o.allDay&&!this._workSpace.supportAllDayRow()&&!this._workSpace.keepOriginalHours()){var ie=new Date(f);ie.setHours(0),0!==(Y=new Date(ie.getTime()+S)).getHours()&&Y.setHours(this._getCurrentViewOption("endDayHour"))}var te=qr.getTimezoneOffsetChangeInMs(l,u,f,Y);j.endDate=new Date(Y.getTime()-te);var re=j.source();return((t,n,e,i)=>{var r=n.setter;for(var o in i){var a=i[o],s=p8e(t,o)?mp(a):a;r[o](e,s)}})(this.option("resources"),this.getResourceDataAccessors(),re,r.groups),re}getTargetedAppointment(n,e){var i=gu.dataAccessors.getAppointmentSettings(e),r=gu.dataAccessors.getAppointmentInfo(e),o=U(e).data(this._appointments._itemIndexKey()),a=sa(n,this._dataAccessors,this.timeZoneCalculator),s=a.clone();if(this._isAgenda()&&a.isRecurrent){var l=i.agendaSettings;s.startDate=ea_getField(this._dataAccessors,"startDate",l),s.endDate=ea_getField(this._dataAccessors,"endDate",l)}else i&&(s.startDate=r?r.sourceAppointment.startDate:a.startDate,s.endDate=r?r.sourceAppointment.endDate:a.endDate);var u=s.source();return e&&this.setTargetedAppointmentResources(u,e,o),r&&(u.displayStartDate=new Date(r.appointment.startDate),u.displayEndDate=new Date(r.appointment.endDate)),u}subscribe(n,e){this._subscribes[n]=H3e[n]=e}fire(n){var e=this._subscribes[n],i=Array.prototype.slice.call(arguments);if(!Yt(e))throw Di.Error("E1031",n);return e.apply(this,i.slice(1))}getTargetCellData(){return this._workSpace.getDataByDroppableCell()}_updateAppointment(n,e,i,r){var o={newData:e,oldData:se({},n),cancel:!1},a=function(s){if(i&&i.call(this),s&&"Error"===s.name)throw s}.bind(this);return this._actions.onAppointmentUpdating(o),r&&!tO(r.cancel)&&(r.cancel=new et),this._processActionResult(o,function(s){var l=new et;if(s)a(),l.resolve();else{this._expandAllDayPanel(e);try{l=this.appointmentDataProvider.update(n,e).done(()=>{r&&r.cancel.resolve(!1)}).always(u=>this._onDataPromiseCompleted(jl_UPDATED,u)).fail(()=>a())}catch(u){a(u),l.resolve()}}return l.promise()})}_processActionResult(n,e){var i=new et,r=o=>{Qt(ra(o)).always(i.resolve)};return dh(n.cancel)?Qt(ra(n.cancel)).always(o=>{Z(o)||(o="rejected"===n.cancel.state()),r(e.call(this,o))}):r(e.call(this,n.cancel)),i.promise()}_expandAllDayPanel(n){!this._isAllDayExpanded()&&this.appointmentTakesAllDay(n)&&this._workSpace.option("allDayExpanded",!0)}_onDataPromiseCompleted(n,e,i){var r={appointmentData:i||e};e instanceof Error?r.error=e:this._appointmentPopup.visible&&this._appointmentPopup.hide(),this._actions[n](r),this._fireContentReadyAction()}getAppointmentsInstance(){return this._appointments}getLayoutManager(){return this._layoutManager}getRenderingStrategyInstance(){return this.getLayoutManager().getRenderingStrategyInstance()}getActions(){return this._actions}appointmentTakesAllDay(n){var e=sa(n,this._dataAccessors,this.timeZoneCalculator);return fD(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"),this._getCurrentViewOption("allDayPanelMode"))}dayHasAppointment(n,e,i){var r=S=>this.timeZoneCalculator.createDate(S,{path:"toGrid"}),o=sa(e,this._dataAccessors,this.timeZoneCalculator),a=new Date(o.startDate),s=new Date(o.endDate);if(a=r(a),s=r(s),n.getTime()===s.getTime())return a.getTime()===s.getTime();i&&(n=bt.trimTime(n),a=bt.trimTime(a),s=bt.trimTime(s));var l=n.getTime(),u=a.getTime(),f=s.getTime();return u<=l&&l<=f}setTargetedAppointmentResources(n,e,i){var r=this._getCurrentViewOption("groups");if(null!=r&&r.length){var s,l,o=this.getResourceDataAccessors().setter,a=this._workSpace;this._isAgenda()?(s=function(){var u=this.getLayoutManager()._positionMap[i];return cD(u[0].groupIndex,this.getWorkSpace().option("groups"))},l=function(u,f){o[f.name](n,f.id)}):(s=function(){var u=gu.dataAccessors.getAppointmentSettings(e)||{};return a.getCellDataByCoordinates({left:u.left,top:u.top}).groups},l=function(u,f){o[u](n,f)}),we(s.call(this),l)}}getStartViewDate(){var n;return null===(n=this._workSpace)||void 0===n?void 0:n.getStartViewDate()}getEndViewDate(){return this._workSpace.getEndViewDate()}showAddAppointmentPopup(n,e){var i=sa({},this._dataAccessors,this.timeZoneCalculator);i.allDay=n.allDay,i.startDate=this.timeZoneCalculator.createDate(n.startDate,{path:"fromGrid"}),i.endDate=this.timeZoneCalculator.createDate(n.endDate,{path:"fromGrid"});var r=se(i.source(),e);this.showAppointmentPopup(r,!0)}showAppointmentPopup(n,e,i){var r=mt({},i);r&&(delete r.displayStartDate,delete r.displayEndDate);var o=sa(r||n,this._dataAccessors,this.timeZoneCalculator),a=se({},n,r),s=e??pa(n);pa(n)&&(n=this.createPopupAppointment()),s?(delete this._editAppointmentData,this._editing.allowAdding&&this._appointmentPopup.show(n,{isToolbarVisible:!0,action:0})):this._checkRecurringAppointment(n,a,o.startDate,()=>{this._editAppointmentData=n,this._appointmentPopup.show(n,{isToolbarVisible:this._editing.allowUpdating,action:1})},!1,!0)}createPopupAppointment(){var n={},e=bt.dateToMilliseconds,i=new Date(this.option("currentDate")),r=new Date(i.getTime()+this.option("cellDuration")*e("minute"));return ea_setField(this._dataAccessors,"startDate",n,i),ea_setField(this._dataAccessors,"endDate",n,r),n}hideAppointmentPopup(n){var e;null!==(e=this._appointmentPopup)&&void 0!==e&&e.visible&&(n&&this._appointmentPopup.saveChangesAsync(),this._appointmentPopup.hide())}showAppointmentTooltip(n,e,i){if(n){var o={itemData:i||n,groupIndex:gu.dataAccessors.getAppointmentSettings(e)?.groupIndex,groups:this.option("groups")},s=this.createGetAppointmentColor()(o),l=new T8e(n,i,s);this.showAppointmentTooltipCore(e,[l])}}createGetAppointmentColor(){return n=>{var e={resources:this.option("resources"),dataAccessors:this.getResourceDataAccessors(),loadedResources:this.option("loadedResources"),resourceLoaderMap:this.option("resourceLoaderMap")};return f8e(e,n)}}showAppointmentTooltipCore(n,e,i){var r={cancel:!1,appointments:e.map(o=>{var a={appointmentData:o.appointment,currentAppointmentData:mt({},o.targetedAppointment),color:o.color};if(o.settings.info){var{startDate:s,endDate:l}=o.settings.info.appointment;a.currentAppointmentData.displayStartDate=s,a.currentAppointmentData.displayEndDate=l}return a}),targetElement:n};this._createActionByOption("onAppointmentTooltipShowing")(r),this._appointmentTooltip.isAlreadyShown(n)?this.hideAppointmentTooltip():this._processActionResult(r,o=>{!o&&this._appointmentTooltip.show(n,e,mt({},this._getExtraAppointmentTooltipOptions(),i))})}hideAppointmentTooltip(){this._appointmentTooltip&&this._appointmentTooltip.hide()}scrollToTime(n,e,i){Di.log("W0002","dxScheduler","scrollToTime","21.1",'Use the "scrollTo" method instead'),this._workSpace.scrollToTime(n,e,i)}scrollTo(n,e,i){this._workSpace.scrollTo(n,e,i)}_isHorizontalVirtualScrolling(){var n=this.option("scrolling"),{orientation:e,mode:i}=n;return"virtual"===i&&("horizontal"===e||"both"===e)}addAppointment(n){var e=sa(n,this._dataAccessors,this.timeZoneCalculator);e.text=e.text||"";var i=e.source(!0),r={appointmentData:i,cancel:!1};return this._actions[jl_ADDING](r),this._processActionResult(r,o=>o?(new et).resolve():(this._expandAllDayPanel(i),this.appointmentDataProvider.add(i).always(a=>this._onDataPromiseCompleted(jl_ADDED,a))))}updateAppointment(n,e){return this._updateAppointment(n,e)}deleteAppointment(n){var e=this.fireOnAppointmentDeleting(n);this.processDeleteAppointment(n,e)}fireOnAppointmentDeleting(n,e){var i={appointmentData:n,targetedAppointmentData:e,cancel:!1};return this._actions.onAppointmentDeleting(i),i}processDeleteAppointment(n,e){this._processActionResult(e,function(i){i||this.appointmentDataProvider.remove(n).always(r=>this._onDataPromiseCompleted(jl_DELETED,r,n))})}deleteRecurrence(n,e,i){this._checkRecurringAppointment(n,{},e,()=>{this.processDeleteAppointment(n,{cancel:!1})},!0,!1,null,i)}focus(){this._editAppointmentData?this._appointments.focus():this._workSpace.focus()}getFirstDayOfWeek(){return Z(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):Gn.firstDayOfWeekIndex()}_validateDayHours(){var n=this._getCurrentViewOption("startDayHour"),e=this._getCurrentViewOption("endDayHour");TQ(n,e)}_getDragBehavior(){return this._workSpace.dragBehavior}}cee.include(bp),On("dxScheduler",cee);let b6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[U0e,Ag,eve,S_,Ive,bi,tn,mi],U0e,Ag,eve,S_,Ive,tn]}),t})();const vCn=["*"];let yCn=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l){super(e,i,r,o,s,l),this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"pullDown",emit:"onPullDown"},{subscribe:"reachBottom",emit:"onReachBottom"},{subscribe:"scroll",emit:"onScroll"},{subscribe:"updated",emit:"onUpdated"},{emit:"bounceEnabledChange"},{emit:"directionChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"pulledDownTextChange"},{emit:"pullingDownTextChange"},{emit:"reachBottomTextChange"},{emit:"refreshingTextChange"},{emit:"rtlEnabledChange"},{emit:"scrollByContentChange"},{emit:"scrollByThumbChange"},{emit:"showScrollbarChange"},{emit:"useNativeChange"},{emit:"widthChange"}]),a.setHost(this)}get bounceEnabled(){return this._getOption("bounceEnabled")}set bounceEnabled(e){this._setOption("bounceEnabled",e)}get direction(){return this._getOption("direction")}set direction(e){this._setOption("direction",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(e){this._setOption("pulledDownText",e)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(e){this._setOption("pullingDownText",e)}get reachBottomText(){return this._getOption("reachBottomText")}set reachBottomText(e){this._setOption("reachBottomText",e)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(e){this._setOption("refreshingText",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(e){this._setOption("scrollByContent",e)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(e){this._setOption("scrollByThumb",e)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(e){this._setOption("showScrollbar",e)}get useNative(){return this._getOption("useNative")}set useNative(e){this._setOption("useNative",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}_createInstance(e,i){return new Ih(e,i)}ngOnDestroy(){this._destroyWidget()}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-scroll-view"]],inputs:{bounceEnabled:"bounceEnabled",direction:"direction",disabled:"disabled",elementAttr:"elementAttr",height:"height",pulledDownText:"pulledDownText",pullingDownText:"pullingDownText",reachBottomText:"reachBottomText",refreshingText:"refreshingText",rtlEnabled:"rtlEnabled",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",showScrollbar:"showScrollbar",useNative:"useNative",width:"width"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onPullDown:"onPullDown",onReachBottom:"onReachBottom",onScroll:"onScroll",onUpdated:"onUpdated",bounceEnabledChange:"bounceEnabledChange",directionChange:"directionChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",pulledDownTextChange:"pulledDownTextChange",pullingDownTextChange:"pullingDownTextChange",reachBottomTextChange:"reachBottomTextChange",refreshingTextChange:"refreshingTextChange",rtlEnabledChange:"rtlEnabledChange",scrollByContentChange:"scrollByContentChange",scrollByThumbChange:"scrollByThumbChange",showScrollbarChange:"showScrollbarChange",useNativeChange:"useNativeChange",widthChange:"widthChange"},features:[ot([Zt,nn,ue]),qe],ngContentSelectors:vCn,decls:1,vars:0,template:function(e,i){1&e&&(nl(),As(0))},encapsulation:2}),t})(),x6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})();const CCn={provide:Fo,useExisting:At(()=>w6e),multi:!0};let w6e=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"customItemCreating",emit:"onCustomItemCreating"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"customItemCreateEventChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"displayValueChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxLengthChange"},{emit:"minSearchLengthChange"},{emit:"nameChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"selectedItemChange"},{emit:"showClearButtonChange"},{emit:"showDataBeforeSearchChange"},{emit:"showDropDownButtonChange"},{emit:"showSelectionControlsChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(e){this._setOption("acceptCustomValue",e)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get customItemCreateEvent(){return this._getOption("customItemCreateEvent")}set customItemCreateEvent(e){this._setOption("customItemCreateEvent",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get displayValue(){return this._getOption("displayValue")}set displayValue(e){this._setOption("displayValue",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(e){this._setOption("fieldTemplate",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get grouped(){return this._getOption("grouped")}set grouped(e){this._setOption("grouped",e)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(e){this._setOption("groupTemplate",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(e){this._setOption("minSearchLength",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get noDataText(){return this._getOption("noDataText")}set noDataText(e){this._setOption("noDataText",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(e){this._setOption("searchEnabled",e)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(e){this._setOption("searchExpr",e)}get searchMode(){return this._getOption("searchMode")}set searchMode(e){this._setOption("searchMode",e)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(e){this._setOption("searchTimeout",e)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(e){this._setOption("selectedItem",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(e){this._setOption("showDataBeforeSearch",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(e){this._setOption("showSelectionControls",e)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(e){this._setOption("spellcheck",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(e){this._setOption("useItemTextAsTitle",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(e){this._setOption("wrapItemText",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new s9(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("searchExpr",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-select-box"]],contentQueries:function(e,i,r){if(1&e&&(In(r,Ig,4),In(r,So,4)),2&e){let o;yn(o=Cn())&&(i.buttonsChildren=o),yn(o=Cn())&&(i.itemsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",customItemCreateEvent:"customItemCreateEvent",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",displayValue:"displayValue",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",maxLength:"maxLength",minSearchLength:"minSearchLength",name:"name",noDataText:"noDataText",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",selectedItem:"selectedItem",showClearButton:"showClearButton",showDataBeforeSearch:"showDataBeforeSearch",showDropDownButton:"showDropDownButton",showSelectionControls:"showSelectionControls",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useItemTextAsTitle:"useItemTextAsTitle",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCopy:"onCopy",onCustomItemCreating:"onCustomItemCreating",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onItemClick:"onItemClick",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",customItemCreateEventChange:"customItemCreateEventChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",displayValueChange:"displayValueChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxLengthChange:"maxLengthChange",minSearchLengthChange:"minSearchLengthChange",nameChange:"nameChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",selectedItemChange:"selectedItemChange",showClearButtonChange:"showClearButtonChange",showDataBeforeSearchChange:"showDataBeforeSearchChange",showDropDownButtonChange:"showDropDownButtonChange",showSelectionControlsChange:"showSelectionControlsChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},features:[ot([Zt,nn,CCn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),S6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Wa,Us,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,$i,bi,tn,mi],Wa,Us,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,$i,tn]}),t})();const bCn={provide:Fo,useExisting:At(()=>xCn),multi:!0};let xCn=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"keyStepChange"},{emit:"labelChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showRangeChange"},{emit:"stepChange"},{emit:"tabIndexChange"},{emit:"tooltipChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeModeChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get keyStep(){return this._getOption("keyStep")}set keyStep(e){this._setOption("keyStep",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showRange(){return this._getOption("showRange")}set showRange(e){this._setOption("showRange",e)}get step(){return this._getOption("step")}set step(e){this._setOption("step",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get tooltip(){return this._getOption("tooltip")}set tooltip(e){this._setOption("tooltip",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeMode(){return this._getOption("valueChangeMode")}set valueChangeMode(e){this._setOption("valueChangeMode",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new n9e(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-slider"]],hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",keyStep:"keyStep",label:"label",max:"max",min:"min",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showRange:"showRange",step:"step",tabIndex:"tabIndex",tooltip:"tooltip",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeMode:"valueChangeMode",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",keyStepChange:"keyStepChange",labelChange:"labelChange",maxChange:"maxChange",minChange:"minChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showRangeChange:"showRangeChange",stepChange:"stepChange",tabIndexChange:"tabIndexChange",tooltipChange:"tooltipChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeModeChange:"valueChangeModeChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,bCn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),D6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Lo,$r,$o,bi,tn,mi],Lo,$r,$o,tn]}),t})(),E6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Mg,bi,tn,mi],Mg,tn]}),t})();var OCn={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},T3=Math,TCn=T3.abs,ICn=T3.round,k6e=T3.max,M6e=T3.min,hee=isFinite,pee=Number,kCn=String;function A6e(t,n,e,i){return(e===i.first||e===i.last)&&(t=n.firstLastColor),(i.min||[]).indexOf(e)>=0&&(t=n.minColor),(i.max||[]).indexOf(e)>=0&&(t=n.maxColor),t}var I3=NSe.inherit({_rootClassPrefix:"dxsl",_rootClass:"dxsl-sparkline",_themeSection:"sparkline",_defaultSize:{width:250,height:30},_initCore:function(){this.callBase(),this._createSeries()},_initialChanges:["DATA_SOURCE"],_dataSourceChangedHandler:function(){this._requestChange(["UPDATE"])},_updateWidgetElements:function(){this._updateSeries(),this.callBase()},_disposeWidgetElements:function(){this._series&&this._series.dispose(),this._series=this._seriesGroup=this._seriesLabelGroup=null},_cleanWidgetElements:function(){this._seriesGroup.remove(),this._seriesLabelGroup.remove(),this._seriesGroup.clear(),this._seriesLabelGroup.clear(),this._series.removeGraphicElements(),this._series.removePointElements(),this._series.removeBordersGroup()},_drawWidgetElements:function(){this._dataIsLoaded()&&(this._drawSeries(),this._drawn())},_getCorrectCanvas:function(){var t=this._allOptions,n=this._canvas,e=t.pointSize&&Math.ceil(t.pointSize/2)+2,i=t.type;return"bar"!==i&&"winloss"!==i&&(t.showFirstLast||t.showMinMax)?{width:n.width,height:n.height,left:n.left+e,right:n.right+e,top:n.top+e,bottom:n.bottom+e}:n},_prepareOptions:function(){this._allOptions=this.callBase(),this._allOptions.type=Ri(this._allOptions.type),OCn[this._allOptions.type]||(this._allOptions.type="line")},_createHtmlElements:function(){this._seriesGroup=this._renderer.g().attr({class:"dxsl-series"}),this._seriesLabelGroup=this._renderer.g().attr({class:"dxsl-series-labels"})},_createSeries:function(){this._series=new qI({renderer:this._renderer,seriesGroup:this._seriesGroup,labelsGroup:this._seriesLabelGroup,argumentAxis:this._argumentAxis,valueAxis:this._valueAxis,incidentOccurred:this._incidentOccurred},{widgetType:"chart",type:"line"})},_updateSeries:function(){var t=this._series;this._prepareDataSource();var n=this._prepareSeriesOptions();t.updateOptions(n);var e={groups:[{series:[t]}]};e.argumentOptions={type:"bar"===n.type?"discrete":void 0},this._simpleDataSource=M$(this._simpleDataSource,e,this._incidentOccurred,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0})[t.getArgumentField()],n.customizePoint=this._getCustomizeFunction(),t.updateData(this._simpleDataSource),t.createPoints(),this._groupsDataCategories=e.categories},_optionChangesMap:{dataSource:"DATA_SOURCE"},_optionChangesOrder:["DATA_SOURCE"],_change_DATA_SOURCE:function(){this._updateDataSource()},_prepareDataSource:function(){var t=this._allOptions,n=t.argumentField,e=t.valueField,r=function ACn(t,n,e,i){return ma(t,function(r,o){var s,l,a=null;return void 0!==r&&(a={},s=hee(r),a[n]=s?kCn(o):r[n],a[e]=null===(l=s?r:r[e])?i?void 0:l:pee(l),a=void 0!==a[n]&&void 0!==a[e]?a:null),a})}(this._dataSourceItems()||[],n,e,this.option("ignoreEmptyPoints"));"winloss"===t.type?(this._winlossDataSource=r,this._simpleDataSource=function FCn(t,n,e,i){return ma(t,function(r){var o={};return o[n]=r[n],o[e]=TCn(r[e]-i)<1e-4?0:r[e]>i?1:-1,o})}(r,n,e,t.winlossThreshold)):this._simpleDataSource=r},_prepareSeriesOptions:function(){var t=this._allOptions,n="winloss"===t.type?"bar":t.type;return{visible:!0,argumentField:t.argumentField,valueField:t.valueField,color:t.lineColor,width:t.lineWidth,widgetType:"chart",name:"",type:n,opacity:-1!==n.indexOf("area")?this._allOptions.areaOpacity:void 0,point:{size:t.pointSize,symbol:t.pointSymbol,border:{visible:!0,width:2},color:t.pointColor,visible:!1,hoverStyle:{border:{}},selectionStyle:{border:{}}},border:{color:t.lineColor,width:t.lineWidth,visible:"bar"!==n}}},_getCustomizeFunction:function(){var i,t=this._allOptions,e=this._getExtremumPointsIndexes(this._winlossDataSource||this._simpleDataSource);return i="winloss"===t.type||"bar"===t.type?function RCn(t,n,e){return function(){var i=this.index,r="winloss"===n.type;return{color:A6e((r?e[i][n.valueField]:this.value)>=(r?n.winlossThreshold:0)?r?n.winColor:n.barPositiveColor:r?n.lossColor:n.barNegativeColor,n,i,t)}}}(e,t,this._winlossDataSource):function PCn(t,n){return function(){var e=A6e(void 0,n,this.index,t);return e?{visible:!0,border:{color:e}}:{}}}(e,t),i},_getExtremumPointsIndexes:function(t){var n=this._allOptions,e=t.length-1,i={};return this._minMaxIndexes=function MCn(t,n){var u,f,i=(t[0]||{})[n]||0,r=i,o=i,a=[0],s=[0],l=t.length;for(f=1;f<l;f++)(u=t[f][n])<r?(r=u,a=[f]):u===r&&a.push(f),u>o?(o=u,s=[f]):u===o&&s.push(f);return o===r&&(a=s=[]),{minIndexes:a,maxIndexes:s}}(t,n.valueField),n.showFirstLast&&(i.first=0,i.last=e),n.showMinMax&&(i.min=this._minMaxIndexes.minIndexes,i.max=this._minMaxIndexes.maxIndexes),i},_getStick:function(){return{stick:"bar"!==this._series.type}},_updateRange:function(){var u,t=this._series,n=t.type,e="bar"===n,i="winloss"===n,r=t.getRangeData(),o=this._allOptions.minValue,a=Z(o)&&hee(o),s=this._allOptions.maxValue,l=Z(s)&&hee(s),f=.15*(r.val.max-r.val.min);e||i||"area"===n?(0!==r.val.min&&(r.val.min-=f),0!==r.val.max&&(r.val.max+=f)):(r.val.min-=f,r.val.max+=f),(a||l)&&(a&&l?(r.val.minVisible=M6e(o,s),r.val.maxVisible=k6e(o,s)):(r.val.minVisible=a?pee(o):void 0,r.val.maxVisible=l?pee(s):void 0),i&&(r.val.minVisible=a?k6e(r.val.minVisible,-1):void 0,r.val.maxVisible=l?M6e(r.val.maxVisible,1):void 0)),t.getPoints().length>1&&e&&(r.arg.min=r.arg.min-(u=.1*(r.arg.max-r.arg.min)),r.arg.max=r.arg.max+u),r.arg.categories=this._groupsDataCategories,this._ranges=r},_getBarWidth:function(t){var n=this._canvas,r=ICn((n.width-n.left-n.right-4*t)/t);return r<1&&(r=1),r>50&&(r=50),r},_correctPoints:function(){var i,r,t=this._allOptions.type,n=this._series.getPoints(),e=n.length;if("bar"===t||"winloss"===t)for(i=this._getBarWidth(e),r=0;r<e;r++)n[r].correctCoordinates({width:i,offset:0})},_drawSeries:function(){this._simpleDataSource.length>0&&(this._correctPoints(),this._series.draw(),this._seriesGroup.append(this._renderer.root))},_isTooltipEnabled:function(){return!!this._simpleDataSource.length},_getTooltipData:function(){var t=this._allOptions,n=this._winlossDataSource||this._simpleDataSource,e=this._tooltip;if(0===n.length)return{};var i=this._minMaxIndexes,r=t.valueField,o=n[0][r],a=n[n.length-1][r],s=Z(i.minIndexes[0])?n[i.minIndexes[0]][r]:o,l=Z(i.maxIndexes[0])?n[i.maxIndexes[0]][r]:o,u=e.formatValue(o),f=e.formatValue(a),S=e.formatValue(s),T=e.formatValue(l),R={firstValue:u,lastValue:f,minValue:S,maxValue:T,originalFirstValue:o,originalLastValue:a,originalMinValue:s,originalMaxValue:l,valueText:["Start:",u,"End:",f,"Min:",S,"Max:",T]};return"winloss"===t.type&&(R.originalThresholdValue=t.winlossThreshold,R.thresholdValue=e.formatValue(t.winlossThreshold)),R}});ma(["lineColor","lineWidth","areaOpacity","minColor","maxColor","barPositiveColor","barNegativeColor","winColor","lessColor","firstLastColor","pointSymbol","pointColor","pointSize","type","argumentField","valueField","winlossThreshold","showFirstLast","showMinMax","ignoreEmptyPoints","minValue","maxValue"],function(t){I3.prototype._optionChangesMap[t]="OPTIONS"}),On("dxSparkline",I3),I3.addPlugin(_S);let F6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Ta,Ia,$o,Ea,Oa,$r,ja,bi,tn,mi],Ta,Ia,$o,Ea,Oa,$r,ja,tn]}),t})();const P6e=class GCn extends Cd{_getDefaultOptions(){return se(super._getDefaultOptions(),{shading:!1,useInkRipple:!1,callOverlayRenderShading:!1,width:"auto",zIndex:1500,_observeContentResize:!1,container:this.$element(),visualContainer:Fn()})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>io(),options:{useInkRipple:!0}}])}_render(){this.$element().addClass("dx-fa-button"),this._renderIcon(),this._renderLabel(),super._render(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick()}_renderLabel(){this._$label&&this._$label.remove();var n=this.option("label");if(n){var e=U("<div>").addClass("dx-fa-button-label"),i=U("<div>").addClass("dx-fa-button-label-wrapper");this._$label=i.prependTo(this.$content()).append(e.text(n)),this.$content().toggleClass("dx-fa-button-content-reverse",this._isPositionLeft(this.option("parentPosition")))}else this._$label=null}_isPositionLeft(n){var e="";return n&&(wi(n)&&n.at?e=n.at.x?n.at.x:n.at:"string"==typeof n&&(e=n)),"left"===e.split(" ")[0]}_renderButtonIcon(n,e,i){n&&n.remove(),n=U("<div>").addClass(i);var r=Fu(e);return n.append(r).appendTo(this.$content()),n}_renderIcon(){this._$icon=this._renderButtonIcon(this._$icon,this._options.silent("icon"),"dx-fa-button-icon")}_renderWrapper(){this._options.silent("callOverlayRenderShading")&&super._renderWrapper()}_getVisibleActions(n){return(n||this.option("actions")||[]).filter(i=>i.option("visible"))}_getActionComponent(){return 1===this._getVisibleActions().length?this._getVisibleActions()[0]:this.option("actionComponent")||this.option("actions")[0]}_initContentReadyAction(){this._contentReadyAction=this._getActionComponent()._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]},!0)}_fireContentReadyAction(){this._contentReadyAction({actionElement:this.$element()})}_updateZIndexStackPosition(){var n=this.option("zIndex");this._$wrapper.css("zIndex",n),this._$content.css("zIndex",n)}_setClickAction(){var n=kt(Vi,this.NAME),e=this.$element().find(".dx-overlay-content");Se.off(e,n),Se.on(e,n,i=>{var r={event:i,actionElement:this.element(),element:this._getActionComponent().$element()};this._clickAction(r)})}_defaultActionArgs(){return{component:this._getActionComponent()}}_renderClick(){this._clickAction=this._getActionComponent()._createActionByOption("onClick"),this._setClickAction()}_renderInkRipple(){this._inkRipple=_T()}_getInkRippleContainer(){return this._$icon}_toggleActiveState(n,e,i){if(super._toggleActiveState.apply(this,arguments),this._inkRipple){var r={element:this._getInkRippleContainer(),event:i};e?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}}_optionChanged(n){switch(n.name){case"icon":this._renderIcon();break;case"onClick":this._renderClick();break;case"label":this._renderLabel();break;case"visible":this._currentVisible=n.previousValue,n.value?this._show():this._hide();break;case"useInkRipple":this._render();break;default:super._optionChanged(n)}}};var{getSwatchContainer:R6e}=UT,gee="dx-state-invisible",qo=null,VM=t=>{var{icon:n,onClick:e,label:i,visible:r,index:o,onContentReady:a,activeStateEnabled:s,hoverStateEnabled:l,animation:u,id:f,actions:S,actionComponent:T,actionVisible:R,zIndex:L,position:z,hint:j,parentPosition:Y,direction:ie}=t.option();return se({},{icon:n,onClick:e,label:i,visible:r,index:o,onContentReady:a,activeStateEnabled:s,hoverStateEnabled:l,animation:u,id:f,actions:S,actionComponent:T,actionVisible:R,zIndex:L,position:z,hint:j,parentPosition:Y,direction:ie},{onInitialized:null,onDisposing:null})};class qCn extends P6e{_getDefaultOptions(){return se(super._getDefaultOptions(),se({icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,hint:"",label:"",direction:"auto",actions:[],activeStateEnabled:!0,hoverStateEnabled:!0,indent:55,childIndent:40,childOffset:9,callOverlayRenderShading:!0,hideOnOutsideClick:!0},no().floatingActionButtonConfig,{shading:!1}))}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>io(),options:{indent:72,childIndent:56,childOffset:8}}])}_render(){this.$element().addClass("dx-fa-button-main"),super._render(),this._moveToContainer(),this._renderCloseIcon(),this._renderClick()}_renderLabel(){super._renderLabel(),this.$element().toggleClass("dx-fa-button-with-label",!!this._$label)}_renderCloseIcon(){this._$closeIcon=this._renderButtonIcon(this._$closeIcon,this._options.silent("closeIcon"),"dx-fa-button-icon-close"),this._$closeIcon.addClass(gee)}_renderClick(){this._clickAction=1===this._getVisibleActions().length?this._getActionComponent()._createActionByOption("onClick"):this._createAction(this._clickHandler.bind(this)),this._setClickAction()}_getVisibleActions(n){return(n||this.option("actions")).filter(i=>i.option("visible"))}_getCurrentOptions(n){var e=qo._getVisibleActions(n),i=this._getDefaultOptions();return delete i.elementAttr,delete i.closeOnOutsideClick,1===e.length?se(VM(e[0]),{position:this._getPosition()}):se(i,{visible:0!==e.length})}_clickHandler(){var n=this._actionItems.filter(r=>r.option("actionVisible")).sort((r,o)=>r.option("index")-o.option("index"));if(1!==n.length){for(var e=n.length-1,i=0;i<n.length;i++)n[i].option("animation",this._getActionAnimation(n[i],i,e)),n[i].option("position",this._getActionPosition(n,i)),n[i]._$wrapper.css("position",this._$wrapper.css("position")),n[i].toggle();no().floatingActionButtonConfig.shading&&(this._isShadingShown=!this.option("shading"),this.option("shading",this._isShadingShown)),this._$icon.toggleClass(gee),this._$closeIcon.toggleClass(gee)}}_updateZIndexStackPosition(){super._updateZIndexStackPosition(),this._overlayStack().push(this)}_renderActions(){var n=this.option("actions");if(this._actionItems&&this._actionItems.length&&(this._actionItems.forEach(o=>{o.dispose(),o.$element().remove()}),this._actionItems=[]),this._actionItems=[],1!==n.length)for(var e=0;e<n.length;e++){var i=n[e],r=U("<div>").appendTo(R6e(i.$element()));Se.off(r,"click"),Se.on(r,"click",()=>{this._clickHandler()}),i._options.silent("actionComponent",i),i._options.silent("parentPosition",this._getPosition()),i._options.silent("actionVisible",i._options.silent("visible")),this._actionItems.push(this._createComponent(r,P6e,se({},VM(i),{visible:!1})))}}_getActionAnimation(n,e,i){return n._options.silent("animation.show.delay",30*e),n._options.silent("animation.hide.delay",30*(i-e)),n._options.silent("animation")}_getDirectionIndex(n,e){if("auto"===e){var i=Ln(this.$content()),r=this.initialOption("indent")+this.initialOption("childIndent")*n.length-i,o=this.$content().offset().top;return r<o||o>=Ln(this._positionController._$wrapperCoveredElement)-i-o?-1:1}return"down"!==e?-1:1}_getActionPosition(n,e){var i=n[e],r=this.initialOption("childOffset"),o=i._options.silent("label")&&!this._$label?this._isPositionLeft(this._getPosition())?r:-r:0,a=this.initialOption("indent")+this.initialOption("childIndent")*e,s=this._getDirectionIndex(n,this.option("direction"))*a,l=i._options.silent("label")?this._isPositionLeft(this._getPosition())?"left":"right":"center";return{of:this.$content(),at:l,my:l,offset:{x:o,y:s}}}_outsideClickHandler(n){this._isShadingShown&&U(n.target)[0]===this._$wrapper[0]&&(n.preventDefault(),this._clickHandler())}_setPosition(){this.option("visible")&&(this._hide(),this._show())}_getPosition(){return this._getDefaultOptions().position}_getInkRippleContainer(){return this.$content()}_optionChanged(n){switch(n.name){case"actions":this._isVisible()&&(this._renderIcon(),this._renderLabel()),this._renderCloseIcon(),this._renderClick(),this._renderActions();break;case"maxSpeedDialActionCount":this._renderActions();break;case"closeIcon":this._renderCloseIcon();break;case"position":super._optionChanged(n),this._setPosition();break;case"label":this._isVisible()&&this._renderLabel(),this._setPosition();break;case"icon":this._isVisible()&&this._renderIcon();break;default:super._optionChanged(n)}}}function fee(t){t._options.silent("onInitializing",null);var n=!1;if(qo){var i=qo.option("actions");if(i.forEach(r=>{if(r._options.silent("id")===t._options.silent("id"))return n=!0,t}),delete qo._options.position,n)qo.option(1===i.length?se({},VM(i[0]),{actions:i,position:qo._getPosition()}):se(qo._getCurrentOptions(i),{actions:i}));else{if(qo._getVisibleActions(i).length>=qo.option("maxSpeedDialActionCount"))return t.dispose(),void Di.log("W1014");i.push(t),qo.option(se(qo._getCurrentOptions(i),{actions:i}))}}else{var e=U("<div>").appendTo(R6e(t.$element()));qo=t._createComponent(e,qCn,se({},VM(t),{actions:[t]}))}}var{getSwatchContainer:XCn}=UT,JCn=gd.add;On("dxSpeedDialAction",class L6e extends tr{_getDefaultOptions(){return se(super._getDefaultOptions(),{icon:"",onClick:null,label:"",visible:!0,index:0,onContentReady:null,activeStateEnabled:!0,hoverStateEnabled:!0,animation:{show:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:0,opacity:0},to:{scale:1,opacity:1}},hide:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:1,opacity:1},to:{scale:0,opacity:0}}},id:new Ni})}_optionChanged(n){switch(n.name){case"onClick":case"icon":case"label":case"visible":case"index":case"onInitializing":fee(this);break;case"animation":case"id":break;default:super._optionChanged(n)}}_render(){this._toggleVisibility(!1),XCn(this.$element())?fee(this):JCn(()=>fee(this))}_dispose(){(function YCn(t){if(qo){var n=qo.option("actions");n.length!==(n=n.filter(i=>i._options.silent("id")!==t)).length&&(n.length?qo.option(1===n.length?se({},VM(n[0]),{actions:n}):{actions:n}):(qo.dispose(),qo.$element().remove(),qo=null))}})(this._options.silent("id")),super._dispose()}});let B6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})();const ebn={provide:Fo,useExisting:At(()=>tbn),multi:!0};let tbn=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"switchedOffTextChange"},{emit:"switchedOnTextChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get switchedOffText(){return this._getOption("switchedOffText")}set switchedOffText(e){this._setOption("switchedOffText",e)}get switchedOnText(){return this._getOption("switchedOnText")}set switchedOnText(e){this._setOption("switchedOnText",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new lhn(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-switch"]],hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",switchedOffText:"switchedOffText",switchedOnText:"switchedOnText",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",switchedOffTextChange:"switchedOffTextChange",switchedOnTextChange:"switchedOnTextChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,ebn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),N6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})(),V6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})(),H6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})();const nbn={provide:Fo,useExisting:At(()=>ibn),multi:!0};let ibn=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"customItemCreating",emit:"onCustomItemCreating"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"multiTagPreparing",emit:"onMultiTagPreparing"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectAllValueChanged",emit:"onSelectAllValueChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"applyValueModeChange"},{emit:"buttonsChange"},{emit:"customItemCreateEventChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hideSelectedItemsChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxDisplayedTagsChange"},{emit:"maxFilterQueryLengthChange"},{emit:"maxLengthChange"},{emit:"minSearchLengthChange"},{emit:"multilineChange"},{emit:"nameChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"selectAllModeChange"},{emit:"selectAllTextChange"},{emit:"selectedItemsChange"},{emit:"showClearButtonChange"},{emit:"showDataBeforeSearchChange"},{emit:"showDropDownButtonChange"},{emit:"showMultiTagOnlyChange"},{emit:"showSelectionControlsChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"tagTemplateChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(e){this._setOption("acceptCustomValue",e)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(e){this._setOption("applyValueMode",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get customItemCreateEvent(){return this._getOption("customItemCreateEvent")}set customItemCreateEvent(e){this._setOption("customItemCreateEvent",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(e){this._setOption("fieldTemplate",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get grouped(){return this._getOption("grouped")}set grouped(e){this._setOption("grouped",e)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(e){this._setOption("groupTemplate",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hideSelectedItems(){return this._getOption("hideSelectedItems")}set hideSelectedItems(e){this._setOption("hideSelectedItems",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get maxDisplayedTags(){return this._getOption("maxDisplayedTags")}set maxDisplayedTags(e){this._setOption("maxDisplayedTags",e)}get maxFilterQueryLength(){return this._getOption("maxFilterQueryLength")}set maxFilterQueryLength(e){this._setOption("maxFilterQueryLength",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(e){this._setOption("minSearchLength",e)}get multiline(){return this._getOption("multiline")}set multiline(e){this._setOption("multiline",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get noDataText(){return this._getOption("noDataText")}set noDataText(e){this._setOption("noDataText",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(e){this._setOption("searchEnabled",e)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(e){this._setOption("searchExpr",e)}get searchMode(){return this._getOption("searchMode")}set searchMode(e){this._setOption("searchMode",e)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(e){this._setOption("searchTimeout",e)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(e){this._setOption("selectAllMode",e)}get selectAllText(){return this._getOption("selectAllText")}set selectAllText(e){this._setOption("selectAllText",e)}get selectedItems(){return this._getOption("selectedItems")}set selectedItems(e){this._setOption("selectedItems",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(e){this._setOption("showDataBeforeSearch",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get showMultiTagOnly(){return this._getOption("showMultiTagOnly")}set showMultiTagOnly(e){this._setOption("showMultiTagOnly",e)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(e){this._setOption("showSelectionControls",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get tagTemplate(){return this._getOption("tagTemplate")}set tagTemplate(e){this._setOption("tagTemplate",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(e){this._setOption("useItemTextAsTitle",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(e){this._setOption("wrapItemText",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new Uen(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("searchExpr",e),this.setupChanges("selectedItems",e),this.setupChanges("validationErrors",e),this.setupChanges("value",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("selectedItems"),this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-tag-box"]],contentQueries:function(e,i,r){if(1&e&&(In(r,Ig,4),In(r,So,4)),2&e){let o;yn(o=Cn())&&(i.buttonsChildren=o),yn(o=Cn())&&(i.itemsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",applyValueMode:"applyValueMode",buttons:"buttons",customItemCreateEvent:"customItemCreateEvent",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hideSelectedItems:"hideSelectedItems",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",maxDisplayedTags:"maxDisplayedTags",maxFilterQueryLength:"maxFilterQueryLength",maxLength:"maxLength",minSearchLength:"minSearchLength",multiline:"multiline",name:"name",noDataText:"noDataText",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",selectAllMode:"selectAllMode",selectAllText:"selectAllText",selectedItems:"selectedItems",showClearButton:"showClearButton",showDataBeforeSearch:"showDataBeforeSearch",showDropDownButton:"showDropDownButton",showMultiTagOnly:"showMultiTagOnly",showSelectionControls:"showSelectionControls",stylingMode:"stylingMode",tabIndex:"tabIndex",tagTemplate:"tagTemplate",text:"text",useItemTextAsTitle:"useItemTextAsTitle",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCustomItemCreating:"onCustomItemCreating",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onItemClick:"onItemClick",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onMultiTagPreparing:"onMultiTagPreparing",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onSelectAllValueChanged:"onSelectAllValueChanged",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",applyValueModeChange:"applyValueModeChange",buttonsChange:"buttonsChange",customItemCreateEventChange:"customItemCreateEventChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hideSelectedItemsChange:"hideSelectedItemsChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxDisplayedTagsChange:"maxDisplayedTagsChange",maxFilterQueryLengthChange:"maxFilterQueryLengthChange",maxLengthChange:"maxLengthChange",minSearchLengthChange:"minSearchLengthChange",multilineChange:"multilineChange",nameChange:"nameChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",selectAllModeChange:"selectAllModeChange",selectAllTextChange:"selectAllTextChange",selectedItemsChange:"selectedItemsChange",showClearButtonChange:"showClearButtonChange",showDataBeforeSearchChange:"showDataBeforeSearchChange",showDropDownButtonChange:"showDropDownButtonChange",showMultiTagOnlyChange:"showMultiTagOnlyChange",showSelectionControlsChange:"showSelectionControlsChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",tagTemplateChange:"tagTemplateChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},features:[ot([Zt,nn,nbn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),z6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Wa,Us,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,$i,bi,tn,mi],Wa,Us,Pu,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,$i,tn]}),t})();const rbn={provide:Fo,useExisting:At(()=>obn),multi:!0};let obn=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"autoResizeEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxHeightChange"},{emit:"maxLengthChange"},{emit:"minHeightChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get autoResizeEnabled(){return this._getOption("autoResizeEnabled")}set autoResizeEnabled(e){this._setOption("autoResizeEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(e){this._setOption("maxHeight",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get minHeight(){return this._getOption("minHeight")}set minHeight(e){this._setOption("minHeight",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(e){this._setOption("spellcheck",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new thn(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-text-area"]],hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",autoResizeEnabled:"autoResizeEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",label:"label",labelMode:"labelMode",maxHeight:"maxHeight",maxLength:"maxLength",minHeight:"minHeight",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",autoResizeEnabledChange:"autoResizeEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxHeightChange:"maxHeightChange",maxLengthChange:"maxLengthChange",minHeightChange:"minHeightChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,rbn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),U6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})();const abn={provide:Fo,useExisting:At(()=>W6e),multi:!0};let W6e=(()=>{class t extends Ci{constructor(e,i,r,o,a,s,l,u){super(e,i,r,o,l,u),this._watcherHelper=o,this._idh=a,this.touched=f=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maskChange"},{emit:"maskCharChange"},{emit:"maskInvalidMessageChange"},{emit:"maskRulesChange"},{emit:"maxLengthChange"},{emit:"modeChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showMaskModeChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useMaskedValueChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),s.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get mask(){return this._getOption("mask")}set mask(e){this._setOption("mask",e)}get maskChar(){return this._getOption("maskChar")}set maskChar(e){this._setOption("maskChar",e)}get maskInvalidMessage(){return this._getOption("maskInvalidMessage")}set maskInvalidMessage(e){this._setOption("maskInvalidMessage",e)}get maskRules(){return this._getOption("maskRules")}set maskRules(e){this._setOption("maskRules",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get mode(){return this._getOption("mode")}set mode(e){this._setOption("mode",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showMaskMode(){return this._getOption("showMaskMode")}set showMaskMode(e){this._setOption("showMaskMode",e)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(e){this._setOption("spellcheck",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get useMaskedValue(){return this._getOption("useMaskedValue")}set useMaskedValue(e){this._setOption("useMaskedValue",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}_createInstance(e,i){return new Th(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-text-box"]],contentQueries:function(e,i,r){if(1&e&&In(r,Ig,4),2&e){let o;yn(o=Cn())&&(i.buttonsChildren=o)}},hostBindings:function(e,i){1&e&&fn("valueChange",function(o){return i.change(o)})("onBlur",function(o){return i.touched(o)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",label:"label",labelMode:"labelMode",mask:"mask",maskChar:"maskChar",maskInvalidMessage:"maskInvalidMessage",maskRules:"maskRules",maxLength:"maxLength",mode:"mode",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showMaskMode:"showMaskMode",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useMaskedValue:"useMaskedValue",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maskChange:"maskChange",maskCharChange:"maskCharChange",maskInvalidMessageChange:"maskInvalidMessageChange",maskRulesChange:"maskRulesChange",maxLengthChange:"maxLengthChange",modeChange:"modeChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showMaskModeChange:"showMaskModeChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useMaskedValueChange:"useMaskedValueChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[ot([Zt,nn,abn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),G6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Wa,Us,bi,tn,mi],Wa,Us,tn]}),t})();var cbn={horizontal:{itemMainRatio:"widthRatio",itemCrossRatio:"heightRatio",baseItemMainDimension:"baseItemWidth",baseItemCrossDimension:"baseItemHeight",mainDimension:"width",crossDimension:"height",mainPosition:"left",crossPosition:"top"},vertical:{itemMainRatio:"heightRatio",itemCrossRatio:"widthRatio",baseItemMainDimension:"baseItemHeight",baseItemCrossDimension:"baseItemWidth",mainDimension:"height",crossDimension:"width",mainPosition:"top",crossPosition:"left"}},K6e=Fc.inherit({_activeStateUnit:".dx-tile",_getDefaultOptions:function(){return se(this.callBase(),{items:null,direction:"horizontal",hoverStateEnabled:!0,showScrollbar:"never",height:500,baseItemWidth:100,baseItemHeight:100,itemMargin:20,activeStateEnabled:!0,indicateLoading:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pn.real().deviceType&&!pn.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return xg},options:{showScrollbar:"onScroll"}}])},_itemClass:function(){return"dx-tile"},_itemDataKey:function(){return"dxTileData"},_itemContainer:function(){return this._$container},_init:function(){this.callBase(),this.$element().addClass("dx-tileview"),this._initScrollView()},_dataSourceLoadingChangedHandler:function(t){var n=this._scrollView;!n||!n.startLoading||(t&&this.option("indicateLoading")?n.startLoading():n.finishLoading())},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_initScrollView:function(){var{width:t,height:n,direction:e,showScrollbar:i}=this.option();this._scrollView=this._createComponent(this.$element(),Ih,{direction:e,width:t,height:n,scrollByContent:!0,useKeyboard:!1,showScrollbar:i}),this._$container=U(this._scrollView.content()),this._$container.addClass("dx-tileview-wrapper"),this._scrollView.option("onUpdated",this._renderGeometry.bind(this))},_initMarkup:function(){this.callBase(),Zo(function(){this._cellsPerDimension=1,this._renderGeometry(),this._updateScrollView(),this._fireContentReadyAction()}.bind(this))},_updateScrollView:function(){this._scrollView.option("direction",this.option("direction")),this._scrollView.update(),this._indicateLoadingIfAlreadyStarted()},_indicateLoadingIfAlreadyStarted:function(){this._isDataSourceLoading()&&this._dataSourceLoadingChangedHandler(!0)},_renderGeometry:function(){this._config=cbn[this.option("direction")];var r,t=this.option("items")||[],n=this._config,e=this.option("itemMargin"),i=Math.max.apply(Math,Dr(t||[],function(o){return Math.round(o[n.itemCrossRatio]||1)}));r=Rn?("width"===n.crossDimension?wn:Ln)(this.$element()):parseInt(this.$element().get(0).style[n.crossDimension]),this._cellsPerDimension=Math.floor(r/(this.option(n.baseItemCrossDimension)+e)),this._cellsPerDimension=Math.max(this._cellsPerDimension,i),this._cells=[],this._cells.push(new Array(this._cellsPerDimension)),this._arrangeItems(t),this._renderContentSize(n,e)},_renderContentSize:function(t,n){var{mainDimension:e,baseItemMainDimension:i}=t;if(Rn()){var r=this._cells.length*this.option(i)+(this._cells.length+1)*n,o=("width"===e?wn:Ln)(this.$element());("width"===e?oa:xo)(this._$container,Math.max(r,o))}},_arrangeItems:function(t){var n=this._config,e=n.itemMainRatio,i=n.itemCrossRatio,r=n.mainPosition;this._itemsPositions=[],we(t,function(o,a){var s={};s[e]=a[e]||1,s[i]=a[i]||1,s.index=o,s[e]=s[e]<=0?0:Math.round(s[n.itemMainRatio]),s[i]=s[i]<=0?0:Math.round(s[n.itemCrossRatio]);var l=this._getItemPosition(s);-1===l[r]&&(l[r]=this._cells.push(new Array(this._cellsPerDimension))-1),this._occupyCells(s,l),this._arrangeItem(s,l),this._itemsPositions.push(l)}.bind(this))},_getItemPosition:function(t){var n=this._config,e=n.mainPosition,i=n.crossPosition,r={};r[e]=-1,r[i]=0;for(var o=0;o<this._cells.length;o++){for(var a=0;a<this._cellsPerDimension;a++)if(this._itemFit(o,a,t)){r[e]=o,r[i]=a;break}if(r[e]>-1)break}return r},_itemFit:function(t,n,e){var i=!0,r=this._config,o=e[r.itemMainRatio],a=e[r.itemCrossRatio];if(n+a>this._cellsPerDimension)return!1;for(var s=t;s<t+o;s++)for(var l=n;l<n+a;l++)if(this._cells.length-1<s)this._cells.push(new Array(this._cellsPerDimension));else if(void 0!==this._cells[s][l]){i=!1;break}return i},_occupyCells:function(t,n){for(var e=this._config,i=n[e.mainPosition],r=n[e.crossPosition],o=t[e.itemMainRatio],a=t[e.itemCrossRatio],s=i;s<i+o;s++)for(var l=r;l<r+a;l++)this._cells[s][l]=t.index},_arrangeItem:function(t,n){var e=this._config,i=n[e.mainPosition],r=n[e.crossPosition],o=t[e.itemMainRatio],a=t[e.itemCrossRatio],s=this.option(e.baseItemCrossDimension),l=this.option(e.baseItemMainDimension),u=this.option("itemMargin"),f={display:o<=0||a<=0?"none":""},S=o*l+(o-1)*u,T=a*s+(a-1)*u;if(f[e.mainDimension]=S<0?0:S,f[e.crossDimension]=T<0?0:T,f[e.mainPosition]=i*l+(i+1)*u,f[e.crossPosition]=r*s+(r+1)*u,this.option("rtlEnabled")){var R=wn(this._$container),L=this.option("baseItemWidth"),z=n.left;f.left=R-(z*L+(L+u)*t.widthRatio+z*u)}this._itemElements().eq(t.index).css(f)},_moveFocus:function(t){var n="up",e="down",i=this.option("rtlEnabled")?"right":"left",r=this.option("rtlEnabled")?"left":"right",o="pageup",a="pagedown",s="horizontal"===this.option("direction"),l=this._cells,u=U(this.option("focusedElement")).index(),f=this._itemsPositions[u].left,S=this._itemsPositions[u].top,T=(s?l:l[0]).length,R=(s?l[0]:l).length,L=function(Y,ie){return s?l[Y][ie]:l[ie][Y]};switch(t){case o:case n:for(;S>0&&u===L(f,S);)S--;S<0&&(S=0);break;case a:case e:for(;S<R&&u===L(f,S);)S++;S===R&&(S=R-1);break;case r:for(;f<T&&u===L(f,S);)f++;f===T&&(f=T-1);break;case i:for(;f>=0&&u===L(f,S);)f--;f<0&&(f=0);break;default:return void this.callBase.apply(this,arguments)}var z=L(f,S);if(Z(z)){var j=this._itemElements().eq(z);this.option("focusedElement",kn(j)),this._scrollToItem(j)}},_scrollToItem:function(t){if(t.length){var n=this._config,e="width"===n.mainDimension?ii:Zn,i=this.option("itemMargin"),r=t.position()[n.mainPosition],o=e(t),a=r+o,s=this.scrollPosition(),l=e(this.$element());s<=r&&a<=s+l||this._scrollView.scrollTo(s>r?r-i:r+o-l+i)}},_optionChanged:function(t){switch(t.name){case"items":this.callBase(t),this._renderGeometry(),this._updateScrollView();break;case"showScrollbar":this._initScrollView();break;case"disabled":this._scrollView.option("disabled",t.value),this.callBase(t);break;case"baseItemWidth":case"baseItemHeight":case"itemMargin":this._renderGeometry();break;case"width":case"height":this.callBase(t),this._renderGeometry(),this._scrollView.option(t.name,t.value),this._updateScrollView();break;case"direction":this._renderGeometry(),this._updateScrollView();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;default:this.callBase(t)}},scrollPosition:function(){return this._scrollView.scrollOffset()[this._config.mainPosition]}});On("dxTileView",K6e);let $6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})(),q6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,bi,tn,mi],vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,tn]}),t})(),Y6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})(),Z6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Yw,E_,bi,tn,mi],vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Yw,E_,tn]}),t})(),X6e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[kR,MR,Bg,C_,Wa,Fg,Jw,$r,NR,Lo,v_,Ag,TR,VR,zw,$i,s1,Tg,Hw,JR,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,LR,Ww,w_,jw,qw,RR,BR,Kw,e1,$R,Xw,ZR,XR,rL,oL,Mg,S_,sL,lL,r1,a1,Vg,bi,tn,mi],kR,MR,Bg,C_,Wa,Fg,Jw,$r,NR,Lo,v_,Ag,TR,VR,zw,$i,s1,Tg,Hw,JR,vr,Do,go,_o,co,ho,po,fo,mo,vo,Eo,Ga,LR,Ww,w_,jw,qw,RR,BR,Kw,e1,$R,Xw,ZR,XR,rL,oL,Mg,S_,sL,lL,r1,a1,Vg,tn]}),t})();function mee(t){var n=t.border||{};return{fill:t.color,opacity:t.opacity,stroke:n.color,"stroke-width":n.width,"stroke-opacity":n.opacity,hatching:t.hatching}}function J6e(t,n){return{attr:{filter:n},css:_a(t.font)}}function Q6e(){}var gbn=[function fbn(t,n){t.smartAttr(n)},function mbn(t,n){t.outer.attr({stroke:n.stroke,"stroke-width":n["stroke-width"],"stroke-opacity":n["stroke-opacity"]}),t.inner.smartAttr({fill:n.fill,opacity:n.opacity,hatching:n.hatching})}];se(Q6e.prototype,{value:0,isNode:function(){return!!(this.nodes&&this.level<this.ctx.maxLevel)},isActive:function(){var t=this.ctx;return this.level>=t.minLevel&&this.level<=t.maxLevel},updateStyles:function(){var t=Number(this.isNode());this.state=this._buildState(this.ctx.settings[t].state,!t&&this.color&&{fill:this.color})},_buildState:function(t,n){var e=se({},t);return n?se(e,n):e},updateLabelStyle:function(){var t=this.ctx.settings[Number(this.isNode())];this.labelState=t.labelState,this.labelParams=t.labelParams},_getState:function(){return this.state},applyState:function(){gbn[Number(this.isNode())](this.tile,this._getState())}});const bD=Q6e;var eHe,_bn=Math.round,_ee={};function tHe(t){return _ee[Ri(t)]||Yt(t)&&t||eHe}function k3(t,n){_ee[t]=n}var M3={"-1":[2,0],1:[0,2]},nHe=function(t){return t[2]-t[0]<t[3]-t[1]?0:1};function iHe(t,n,e){var i=void 0!==e?e:nHe(t),r=1-i,o=n[i],a=n[r],s=M3[o],l=M3[a];return{staticSide:t[2+i]-t[i],variedSide:t[2+r]-t[r],static1:i+s[0],static2:i+s[1],varied1:r+l[0],varied2:r+l[1],staticDir:o,variedDir:a}}function rHe(t,n,e,i,r){var o,a,L,z,s=[0,0,0,0],l=i.static1,u=i.static2,f=e[l],S=i.staticDir,T=i.staticSide,R=r.sum;for(s[i.varied1]=e[i.varied1],s[i.varied2]=e[i.varied1]+i.variedDir*r.side,o=n,a=n+r.count;o<a;++o)(L=s.slice())[l]=f,z=_bn(T*t[o].value/R)||0,R-=t[o].value,T-=z,L[u]=f+=S*z,t[o].rect=L;e[i.varied1]=s[i.varied2]}var oHe,vee={};function ybn(t){return function(n){return n.isNode()?void 0:t(n)}}function Cbn(t){return function(n){var e=!n.isNode()&&n.parent;return e?e._groupColor=e._groupColor||t(e):void 0}}function yee(t,n){vee[t]=n}function wbn(t){return t.value}function aHe(t){return t.colorCodeField?function Sbn(t){return function(n){return Number(n.data[t])}}(t.colorCodeField):wbn}var Dbn=Math.max,Ebn=Math.round;function Obn(t,n){return n.value-t.value}function Tbn(t){return Dbn(t,1/t)}function Mbn(t,n,e){var i=iHe(e.rect,e.directions,e.staticSideIndex),r=function kbn(t){return(t[2]-t[0])*(t[3]-t[1])}(e.rect),o=r>0?function Ibn(t,n,e){var r,a,s,l,S,i=1/0,o=0,u=t.length,f=e.areaToValue/e.staticSide;for(s=n;s<u;){for(S=e.staticSide/f/(a=o+t[s].value),r=0,l=n;l<=s;++l)r=e.accumulate(r,Tbn(S*t[l].value/a),l-n+1);if(!(r<i))break;i=r,o=a,++s}return{sum:o,count:s-n,side:Ebn(f*o)}}(t,n,{areaToValue:r/e.sum,accumulate:e.accumulate,staticSide:i.staticSide}):{sum:1,side:i.variedSide,count:t.length-n};return rHe(t,n,e.rect,i,o),e.sum-=o.sum,n+o.count}function sHe(t,n,e){var o,i=t.items,r=i.length,a={sum:t.sum,rect:t.rect,directions:t.directions,accumulate:n};for(e&&(a.staticSideIndex=nHe(a.rect)),i.sort(Obn),o=0;o<r;)o=Mbn(i,o,a)}var Abn=Math.max;function Fbn(t,n){return Abn(t,n)}function lHe(t){var e,o,n=t.nodes.slice(),i=n.length,r=0;for(e=0;e<i;++e)(o=n[e]).isNode()?r=Math.max(r,lHe(o)):r+=1;return r}function Lbn(t){var n=t.generateColors();return function(e){return n[e.index]}}function uHe(t){var e,o,n=t.nodes.slice(),i=n.length,r=0;for(e=0;e<i;++e)(o=n[e]).isNode()&&(r+=uHe(o)+1);return r}function Nbn(t,n){var e=function Bbn(t,n){var r,a,e={},i=n.nodes.slice(),o=i.length;for(r=0;r<o;++r)(a=i[r]).isNode()?o=(i=i.concat(a.nodes)).length:e[a.parent._id]||(e[a.parent._id]=t.getNextColor());return e}(t,n);return function(i){return e[i._id]}}k3("squarified",function Pbn(t){return sHe(t,Fbn,!1)}),yee("discrete",function Rbn(t,n,e){var i=n.createPalette(t.palette,{useHighlight:!0,extensionMode:t.paletteExtensionMode,count:t.colorizeGroups?uHe(e):lHe(e)});return(t.colorizeGroups?Nbn:Lbn)(i,e)});var dHe=Math.max,cHe={lefttoprightbottom:[1,1],leftbottomrighttop:[1,-1],righttopleftbottom:[-1,1],rightbottomlefttop:[-1,-1]};function zb(t){return t>0?Math.round(t):0}(function vbn(t){eHe=_ee[t]})("squarified"),function xbn(t){oHe=t}("discrete");var Cee=V_.inherit({_handlers:{beginBuildNodes:Be,buildNode:Be,endBuildNodes:Be,setTrackerData:Be,calculateState:function(t){return mee(t)}},_rootClass:"dxtm-tree-map",_rootClassPrefix:"dxtm",_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font"],_init:function(){var t=this;t._rectOffsets={},t._handlers=Object.create(t._handlers),t._context={suspend:function(){t._applyingChanges||t._suspendChanges()},resume:function(){t._applyingChanges||t._resumeChanges()},change:function(n){t._change(n)},settings:[{},{}],calculateState:t._handlers.calculateState,calculateLabelState:J6e},t._root=t._topNode={nodes:[]},t.callBase.apply(t,arguments)},_initialChanges:["DATA_SOURCE"],_initCore:function(){var t=this._renderer;this._createProxyType(),this._tilesGroup=t.g().linkOn(t.root,"tiles").linkAppend(),this._labelsGroup=t.g().linkOn(t.root,"labels").linkAppend()},_createProxyType:Be,_disposeCore:function(){this._filter&&this._filter.dispose(),this._labelsGroup.linkOff(),this._tilesGroup.linkOff()},_applySize:function(t){this._tilingRect=t.slice(),this._change(["TILING"])},_optionChangesMap:{dataSource:"DATA_SOURCE",valueField:"NODES_CREATE",childrenField:"NODES_CREATE",colorField:"TILES",colorizer:"TILES",labelField:"LABELS",tile:"TILE_SETTINGS",group:"GROUP_SETTINGS",maxDepth:"MAX_DEPTH",layoutAlgorithm:"TILING",layoutDirection:"TILING"},_themeDependentChanges:["TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_changeDataSource:function(){this._isDataExpected=this._isSyncData=!0,this._updateDataSource(),this._isSyncData=!1,this._isDataExpected&&this._suspendChanges()},_dataSourceChangedHandler:function(){this._isDataExpected?(this._isDataExpected=!1,this._change(["NODES_CREATE"]),this._isSyncData||this._resumeChanges()):this._requestChange(["NODES_CREATE"])},_optionChangesOrder:["DATA_SOURCE","TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_change_DATA_SOURCE:function(){this._changeDataSource()},_change_TILE_SETTINGS:function(){this._changeTileSettings()},_change_GROUP_SETTINGS:function(){this._changeGroupSettings()},_change_MAX_DEPTH:function(){this._changeMaxDepth()},_customChangesOrder:["NODES_CREATE","NODES_RESET","TILES","LABELS","TILING","LABELS_LAYOUT"],_change_NODES_CREATE:function(){this._buildNodes()},_change_NODES_RESET:function(){this._resetNodes()},_change_TILES:function(){this._applyTilesAppearance()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_TILING:function(){this._performTiling()},_change_LABELS_LAYOUT:function(){this._performLabelsLayout()},_applyChanges:function(){var t=this;t.callBase.apply(t,arguments),t._isDataExpected||t._drawn(),t._context.forceReset=!1},_buildNodes:function(){var t=this._root=this._topNode=new bD;t._id=0,t.parent={},t.data={},t.level=t.index=-1,t.ctx=this._context,t.label=null,this._nodes=[t],this._handlers.beginBuildNodes();var n=this._processDataSourceItems(this._dataSourceItems()||[]);hHe(t,n.items,0,{itemsField:!n.isPlain&&this._getOption("childrenField",!0)||"items",valueField:this._getOption("valueField",!0)||"value",buildNode:this._handlers.buildNode,ctx:this._context,nodes:this._nodes}),this._onNodesCreated(),this._handlers.endBuildNodes(),this._change(["NODES_RESET"])},_onNodesCreated:Be,_processDataSourceItems:function(t){return{items:t,isPlain:!1}},_changeTileSettings:function(){var t=this._getOption("tile"),n=this._rectOffsets,e=zb(t.border.width),i=e/2,r=1&e?.5:0,o=t.label,a=this._context.settings[0];this._change(["TILES","LABELS"]),a.state=this._handlers.calculateState(t),this._filter=this._filter||this._renderer.shadowFilter("-50%","-50%","200%","200%"),this._filter.attr(o.shadow),this._calculateLabelSettings(a,o,this._filter.id),(n.tileEdge!==i||n.tileInner!==r)&&(n.tileEdge=i,n.tileInner=r,this._change(["TILING"]))},_changeGroupSettings:function(){var a,t=this._getOption("group"),n=t.label,e=this._rectOffsets,i=zb(t.border.width),r=i/2,o=1&i?.5:0,s=zb(t.padding),l=this._context.settings[1];this._change(["TILES","LABELS"]),l.state=this._handlers.calculateState(t),this._calculateLabelSettings(l,n),a=t.headerHeight>=0?zb(t.headerHeight):l.labelParams.height+2*zb(n.paddingTopBottom),this._headerHeight!==a&&(this._headerHeight=a,this._change(["TILING"])),this._groupPadding!==s&&(this._groupPadding=s,this._change(["TILING"])),(e.headerEdge!==r||e.headerInner!==o)&&(e.headerEdge=r,e.headerInner=o,this._change(["TILING"]))},_calculateLabelSettings:function(t,n,e){var i=this._getTextBBox(n.font),r=zb(n.paddingLeftRight),o=zb(n.paddingTopBottom),a=this._getOption("tile.label"),s=this._getOption("group.label");t.labelState=J6e(n,e),t.labelState.visible=!("visible"in n)||!!n.visible,t.labelParams={height:i.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:o,paddingLeftRight:r,tileLabelWordWrap:a.wordWrap,tileLabelOverflow:a.textOverflow,groupLabelOverflow:s.textOverflow}},_changeMaxDepth:function(){var t=this._getOption("maxDepth",!0);t=t>=1?Math.round(t):1/0,this._maxDepth!==t&&(this._maxDepth=t,this._change(["NODES_RESET"]))},_resetNodes:function(){this._tilesGroup.clear(),this._renderer.initHatching(),this._context.forceReset=!0,this._context.minLevel=this._topNode.level+1,this._context.maxLevel=this._context.minLevel+this._maxDepth-1,this._change(["TILES","LABELS","TILING"])},_processNodes:function(t,n){pHe(t,this._topNode,n)},_applyTilesAppearance:function(){var t=function bbn(t,n,e){var i=Ri(t.type||oHe),r=vee[i]&&vee[i](t,n,e);return r?(t.colorizeGroups?Cbn:ybn)(r):Be}(this._getOption("colorizer"),this._themeManager,this._topNode);this._processNodes({renderer:this._renderer,group:this._tilesGroup,setTrackerData:this._handlers.setTrackerData,colorField:this._getOption("colorField",!0)||"color",getColor:t},Hbn)},_applyLabelsAppearance:function(){this._labelsGroup.clear(),this._processNodes({renderer:this._renderer,group:this._labelsGroup,setTrackerData:this._handlers.setTrackerData,labelField:this._getOption("labelField",!0)||"name"},Wbn),this._change(["LABELS_LAYOUT"])},_performTiling:function(){var t={algorithm:tHe(this._getOption("layoutAlgorithm",!0)),directions:cHe[String(this._getOption("layoutDirection",!0)).toLowerCase()]||cHe.lefttoprightbottom,headerHeight:this._headerHeight,groupPadding:this._groupPadding,rectOffsets:this._rectOffsets};this._topNode.innerRect=this._tilingRect,gHe(t,this._topNode),this._processNodes(t,Kbn),this._change(["LABELS_LAYOUT"]),this._onTilingPerformed()},_onTilingPerformed:Be,_performLabelsLayout:function(){this._processNodes(null,$bn)},_getTextBBox:function(t){var n=this._renderer,e=this._textForCalculations||n.text("0",0,0);this._textForCalculations=e,e.css(_a(t)).append(n.root);var i=e.getBBox();return e.remove(),i}});function hHe(t,n,e,i){var a,s,u,S,r=[],o=i.nodes,l=n.length,f=0;for(s=0;s<l;++s){var T;u=n[s],(a=new bD)._id=o.length,a.ctx=i.ctx,a.parent=t,a.level=e,a.index=r.length,a.data=u,i.buildNode(a),o.push(a),r.push(a),null!==(T=S=u[i.itemsField])&&void 0!==T&&T.length&&hHe(a,S,e+1,i),u[i.valueField]>0&&(a.value=Number(u[i.valueField])),f+=a.value}t.nodes=r,t.value=f}function pHe(t,n,e){var r,o,i=n.nodes,a=i.length;for(o=0;o<a;++o)e(t,r=i[o]),r.isNode()&&pHe(t,r,e)}var Vbn=[function zbn(t,n){var e=t.renderer.simpleRect().append(t.group);return t.setTrackerData(n,e),e},function Ubn(t,n){var e=t.renderer.simpleRect().append(t.group),i=t.renderer.simpleRect().append(t.group);return t.setTrackerData(n,i),{outer:e,inner:i}}];function Hbn(t,n){n.color=n.data[t.colorField]||t.getColor(n)||n.parent.color,n.updateStyles(),n.tile=!n.ctx.forceReset&&n.tile||Vbn[Number(n.isNode())](t,n),n.applyState()}function Wbn(t,n){n.updateLabelStyle(),n.labelState.visible&&function Gbn(t,n,e,i){var r=n.data[t.labelField];n.label=r?String(r):null,(r=n.customLabel||n.label)&&(n.text=t.renderer.text(r).attr(e.attr).css(e.css).append(t.group),t.setTrackerData(n,n.text))}(t,n,n.labelState)}var jbn=[0,0,0,0];function gHe(t,n){var a,e=n.nodes,i=[],r=[],o=0,s=i.length=r.length=e.length;for(a=0;a<s;++a)o+=e[a].value,i[a]={value:e[a].value,i:a};for(o>0&&t.algorithm({items:i.slice(),sum:o,rect:n.innerRect.slice(),isRotated:1&e[0].level,directions:t.directions}),a=0;a<s;++a)r[a]=i[a].rect||jbn;n.rects=r}function Kbn(t,n){var r,e=n.parent.rects[n.index],i=t.rectOffsets;n.isNode()?(bee(n.tile.outer,mHe(e,n.parent.innerRect,i.headerEdge,i.headerInner)),e=fHe(e,t.groupPadding),r=Math.min(t.headerHeight,e[3]-e[1]),n.rect=[e[0],e[1],e[2],e[1]+r],bee(n.tile.inner,fHe(n.rect,i.headerEdge)),e[1]+=r,n.innerRect=e,gHe(t,n)):(n.rect=e,bee(n.tile,mHe(e,n.parent.innerRect,i.tileEdge,i.tileInner)))}function fHe(t,n){return[t[0]+n,t[1]+n,t[2]-n,t[3]-n]}function mHe(t,n,e,i){return[t[0]+(t[0]===n[0]?e:+i),t[1]+(t[1]===n[1]?e:+i),t[2]-(t[2]===n[2]?e:-i),t[3]-(t[3]===n[3]?e:-i)]}function bee(t,n){t.attr({x:n[0],y:n[1],width:dHe(n[2]-n[0],0),height:dHe(n[3]-n[1],0)})}function $bn(t,n){n.text&&n.labelState.visible&&function qbn(t,n){var e=t.rect,i=t.text,r=i.getBBox(),o=n.paddingLeftRight,a=n.paddingTopBottom;i.setMaxSize(e[2]-e[0]-2*o,e[3]-e[1]-a,t.isNode()?{textOverflow:n.groupLabelOverflow,wordWrap:"none"}:{textOverflow:n.tileLabelOverflow,wordWrap:n.tileLabelWordWrap,hideOverflowEllipsis:!0}),i.move(n.rtlEnabled?e[2]-o-r.x-r.width:e[0]+o-r.x,e[1]+a-r.y)}(n,n.labelParams)}On("dxTreeMap",Cee);const Ld=Cee;function Ybn(t,n,e){return((e-1)*t+n)/e}Cee.addPlugin(_S),k3("strip",function Zbn(t){return sHe(t,Ybn,!0)}),k3("sliceanddice",function Xbn(t){var n=t.items,e=iHe(t.rect,t.directions,t.isRotated?1:0);rHe(n,0,t.rect,e,{sum:t.sum,count:n.length,side:e.variedSide})});var Jbn=tHe("sliceanddice");k3("rotatedsliceanddice",function Qbn(t){return t.isRotated=!t.isRotated,Jbn.call(this,t)});var exn=Math.min,txn=Math.max;function _He(t){return[Number(t[0])||0,t[1]-t[0]||1]}yee("gradient",function oxn(t,n){var e=n.createGradientPalette(t.palette),i=aHe(t);return"range"in t?function nxn(t,n){return function(e){return t(e,n)}}(r,_He(t.range||[])):function rxn(t,n){var e={};return function(i){var r=i.parent;return t(i,e[r._id]||(e[r._id]=function ixn(t,n){var e,o,i=t.length,r=[];for(e=0;e<i;++e)o=n(t[e]),isFinite(o)&&r.push(o);return _He([exn.apply(null,r),txn.apply(null,r)])}(r.nodes,n)))}}(r,i);function r(o,a){return e.getColor((i(o)-a[0])/a[1])}}),yee("range",function sxn(t,n){var e=t.range||[],i=n.createDiscretePalette(t.palette,e.length-1),r=aHe(t);return function(o){return i.getColor(function axn(t,n){var o,e=0,i=n.length-1,r=-1;if(n[e]<=t&&t<=n[i])if(t===n[i])r=i-1;else{for(;i-e>1;)t<n[o=e+i>>1]?i=o:e=o;r=e}return r}(r(o),e))}});var Wv=Ld.prototype,A3=bD.prototype;function F3(t,n){var e=t.ctx;e.suspend(),e.change(n),e.resume()}function vHe(t,n){var i,e=t.nodes,r=e&&e.length;for(i=0;i<r;++i)n.push(e[i].proxy),vHe(e[i],n)}Wv._eventsMap.onNodesInitialized={name:"nodesInitialized"},Wv._eventsMap.onNodesRendering={name:"nodesRendering"},Wv._createProxyType=function(){var n,t=this;function e(i){i.proxy=this,this._id=i._id,this.level=i.level,this.index=i.index,this.data=i.data}e.prototype={constructor:e,getParent:function(){return n[this._id].parent.proxy||null},getChild:function(i){var r=n[this._id].nodes;return r?r[i].proxy:null},getChildrenCount:function(){var i=n[this._id].nodes;return i?i.length:0},getAllChildren:function(){var r,i=n[this._id].nodes,o=i&&i.length,a=[];for(r=0;r<o;++r)a.push(i[r].proxy);return a},getAllNodes:function(){var i=[];return vHe(n[this._id],i),i},isLeaf:function(){return!n[this._id].isNode()},isActive:function(){return n[this._id].isActive()},value:function(i){var o,r=n[this._id];return void 0!==i?(function lxn(t,n){for(var e=n-t.value;t;)t.value+=e,t=t.parent}(r,i>0?Number(i):0),F3(r,["TILING"]),o=this):o=r.value,o},label:function(i){var o,r=n[this._id];return void 0!==i?(r.customLabel=i?String(i):null,F3(r,["LABELS"]),o=this):o=r.customLabel||r.label,o},customize:function(i){var r=n[this._id];return i&&(r._custom=r._custom||{},se(!0,r._custom,i),r._partialState=r._partialLabelState=null),F3(r,["TILES","LABELS"]),this},resetCustomization:function(){var i=n[this._id];return i._custom=i._partialState=i._partialLabelState=null,F3(i,["TILES","LABELS"]),this}},t._extendProxyType(e.prototype),t._handlers.beginBuildNodes=function(){n=t._nodes,new e(t._root)},t._handlers.buildNode=function(i){new e(i)},t._handlers.endBuildNodes=function(){t._eventTrigger("nodesInitialized",{root:t._root.proxy})}},Wv._extendProxyType=Be;var uxn=Wv._resetNodes;Wv._resetNodes=function(){uxn.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var dxn=A3.updateStyles;A3.updateStyles=function(){dxn.call(this),this._custom&&(this._partialState=!this.ctx.forceReset&&this._partialState||this.ctx.calculateState(this._custom),se(!0,this.state,this._partialState))};var cxn=A3.updateLabelStyle;A3.updateLabelStyle=function(){var t=this._custom;cxn.call(this),t&&t.label&&(this._partialLabelState=!this.ctx.forceReset&&this._partialLabelState||function hxn(t,n){var e=t.ctx.calculateLabelState(n);return"visible"in n&&(e.visible=!!n.visible),e}(this,t.label),this.labelState=se(!0,{},this.labelState,this._partialLabelState))},Wv.getRootNode=function(){return this._root.proxy},Wv.resetNodes=function(){var t=this._context;return t.suspend(),t.change(["NODES_CREATE"]),t.resume(),this};var Ub=bD.prototype,P3=Ld.prototype._handlers,gxn=P3.calculateState,fxn=Ub._buildState;P3.calculateState=function(t){var n={0:gxn(t)};return P3.calculateAdditionalStates(n,t),n},P3.calculateAdditionalStates=Be,Ub.code=0,Ub.statesMap={0:0},Ub.additionalStates=[],Ub._buildState=function(t,n){var e={0:fxn(t[0],n)};return this.additionalStates.length&&function mxn(t,n,e,i){var r,o=i.length;for(r=0;r<o;++r)t[i[r]]=se({},n,e[i[r]])}(e,e[0],t,this.additionalStates),e},Ub._getState=function(){return this.state[this.statesMap[this.code]]},Ub.setState=function(t,n){n?this.code|=t:this.code&=~t,this.ctx.change(["TILES"])};var Gv=Ld.prototype,yHe=bD.prototype;function CHe(t,n,e){var r,i=t.isNode()&&t.nodes,o=i&&i.length;for(t.setState(n,e),r=0;r<o;++r)CHe(i[r],n,e)}Gv._eventsMap.onHoverChanged={name:"hoverChanged"},Bu(Gv._handlers,"calculateAdditionalStates",function(t,n){t[1]=n.hoverStyle?mee(n.hoverStyle):{}}),Ld.addChange({code:"HOVER_ENABLED",handler:function(){var t=wd(this._getOption("hoverEnabled",!0),!0);t||this.clearHover(),this._hoverEnabled=t},isThemeDependent:!0,isOptionChange:!0,option:"hoverEnabled"}),yHe.statesMap[1]=1,yHe.additionalStates.push(1),Bu(Gv,"_extendProxyType",function(t){var n=this;t.setHover=function(){n._hoverNode(this._id)},t.isHovered=function(){return n._hoverIndex===this._id}}),Bu(Gv,"_onNodesCreated",function(){this._hoverIndex=-1}),Bu(Gv,"_changeGroupSettings",function(){this._groupHoverEnabled=wd(this._getOption("group").hoverEnabled,!0),this._groupHoverEnabled||this.clearHover()}),Gv._applyHoverState=function(t,n){CHe(this._nodes[t],1,n),this._eventTrigger("hoverChanged",{node:this._nodes[t].proxy})},Gv._hoverNode=function(t){var n=this._hoverIndex;if(this._hoverEnabled&&n!==t){if(!this._groupHoverEnabled&&t>=0&&this._nodes[t].isNode())return void this.clearHover();this._context.suspend(),this._hoverIndex=-1,n>=0&&this._applyHoverState(n,!1),this._hoverIndex=t,t>=0&&this._applyHoverState(t,!0),this._context.resume()}},Gv.clearHover=function(){this._hoverNode(-1)};var jv=Ld.prototype,xee=bD.prototype;jv._eventsMap.onSelectionChanged={name:"selectionChanged"},Bu(jv._handlers,"calculateAdditionalStates",function(t,n){t[2]=n.selectionStyle?mee(n.selectionStyle):{}}),xee.statesMap[2]=xee.statesMap[3]=2,xee.additionalStates.push(2),Bu(jv,"_onNodesCreated",function(){this._selectionList.length=0}),Bu(jv,"_extendProxyType",function(t){var n=this;t.select=function(e){n._selectNode(this._id,!!e)},t.isSelected=function(){return n._selectionList.includes(this._id)},n._selectionList=[]}),Ld.addChange({code:"SELECTION_MODE",handler:function(){var e,t=Ri(this._getOption("selectionMode",!0)),n=this._selectionList,i="none"===t?0:"multiple"===t?2:1;1===i&&n.length>1?(e=n.pop(),this.clearSelection(),n.push(e)):0===i&&this.clearSelection(),this._selectionMode=i},isThemeDependent:!0,isOptionChange:!0,option:"selectionMode"}),Bu(jv,"_applyTilesAppearance",function(){this._selectionList.length&&function Cxn(t,n){var e,r,i=n.length;for(e=0;e<i;++e)r=t[n[e]],yxn[Number(r.isNode())](r.tile)}(this._nodes,this._selectionList)});var yxn=[function bxn(t){t.toForeground()},function xxn(t){t.outer.toForeground(),t.inner.toForeground()}];jv._applySelectionState=function(t,n){var e=this._nodes[t];e.setState(2,n),this._eventTrigger("selectionChanged",{node:e.proxy})},jv._selectNode=function(t,n){var e,i,r;0!==this._selectionMode&&(this._context.suspend(),i=(e=this._selectionList).indexOf(t),n&&-1===i?(1===this._selectionMode&&e.length&&(r=e.pop(),this._applySelectionState(r,!1)),e.push(t),this._applySelectionState(t,!0)):!n&&i>=0&&(e.splice(i,1),this._applySelectionState(t,!1)),this._context.resume())},jv.clearSelection=function(){var n,t=this._selectionList,e=t.length;if(0!==this._selectionMode){for(this._context.suspend(),n=0;n<e;++n)this._applySelectionState(t[n],!1);t.length=0,this._context.resume()}};var xD=Ld.prototype;function xHe(t,n,e){var i=e.getRootOffset();return t||n&&[(n[0]+n[2])/2+i.left,(n[1]+n[3])/2+i.top]||[-1e3,-1e3]}Bu(xD,"_extendProxyType",function(t){var n=this;t.showTooltip=function(e){n._showTooltip(this._id,e)}}),Bu(xD,"_onNodesCreated",function(){this._tooltipIndex>=0&&this._tooltip.hide(),this._tooltipIndex=-1}),Bu(xD,"_onTilingPerformed",function(){this._tooltipIndex>=0&&this._moveTooltip(this._nodes[this._tooltipIndex])}),xD._showTooltip=function(t,n){var e=this,i=e._tooltip,r=e._nodes[t];if(e._tooltipIndex!==t){var o=s=>{void 0!==s&&(s||i.hide(),e._tooltipIndex=s?t:-1)},a=xHe(n,r.rect,this._renderer);o(i.show({value:r.value,valueText:i.formatValue(r.value),node:r.proxy},{x:a[0],y:a[1],offset:0},{node:r.proxy},void 0,o))}else e._moveTooltip(r,n)},xD._moveTooltip=function(t,n){var e=xHe(n,t.rect,this._renderer);this._tooltip.move(e[0],e[1],0)},xD.hideTooltip=function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},Ld.addPlugin(kC);var Sxn=0,See=Ld.prototype;See._eventsMap.onClick={name:"click"},Bu(See,"_initCore",function(){var t=this,n="__treemap_data_"+Sxn++,e=function(i){return t._nodes[i].proxy};t._tracker=new nM({widget:t,root:t._renderer.root,getNode:function(i){var r=e(i);return wd(t._getOption("interactWithGroup",!0))&&r.isLeaf()&&r.getParent().isActive()?r.getParent():r},getData:function(i){var r=i.target;return("tspan"===r.tagName?r.parentNode:r)[n]},getProxy:e,click:function(i){t._eventTrigger("click",i)}}),t._handlers.setTrackerData=function(i,r){r.data(n,i._id)}}),Bu(See,"_disposeCore",function(){this._tracker.dispose()});var Wb=Ld.prototype;Wb._eventsMap.onDrill={name:"drill"},Bu(Wb,"_extendProxyType",function(t){var n=this;t.drillDown=function(){n._drillToNode(this._id)}}),Bu(Wb,"_onNodesCreated",function(){this._drilldownIndex=-1}),Wb._drillToNode=function(t){var n;this._drilldownIndex!==t&&(n=this._nodes[t]||this._root).nodes&&(this._drilldownIndex=t,this._topNode=n,this._context.suspend(),this._context.change(["MAX_DEPTH","NODES_RESET"]),this._context.resume(),this._eventTrigger("drill",{node:n.proxy}))},Wb.resetDrillDown=function(){return this._drillToNode(-1),this},Wb.drillUp=function(){return this._drillToNode(this._topNode.parent._id||-1),this},Wb.getCurrentNode=function(){return this._topNode.proxy};var Dee=Ld.prototype;function wHe(t,n){var e,i,o,r=t.struct;for(i=0;i<n.length;i++)r[o=(e=n[i])[t.idField]]&&(e.items=r[o].items,r[o]=null,wHe(t,e.items))}Dee._optionChangesMap.idField=Dee._optionChangesMap.parentField="NODES_CREATE",Dee._processDataSourceItems=function(t){var n,i,a,l,u,e={},r=this._getOption("idField",!0),o=this._getOption("parentField",!0),s=[];if(!r||!o||0===t.length)return{items:t,isPlain:!1};for(n=0;n<t.length;n++)(a=(i=t[n])[o])?(e[a]=e[a]||{items:[]},l=e[a].items):l=s,l.push(i);for(u in wHe({struct:e,idField:r},s),e)e[u]&&s.push(e[u]);return{items:s,isPlain:!0}},Ld.addPlugin(j_),Ld.addPlugin(TC),Ld.addPlugin(MC);let SHe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[e_e,aa,w_e,Ea,Jd,Lo,Oa,Oh,ms,Ia,bve,vs,Ta,_s,$o,$r,ja,bi,tn,mi],e_e,aa,w_e,Ea,Jd,Lo,Oa,Oh,ms,Ia,bve,vs,Ta,_s,$o,$r,ja,tn]}),t})(),DHe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,aL,Wa,Us,bi,tn,mi],$i,aL,Wa,Us,tn]}),t})(),EHe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[bi,tn,mi],tn]}),t})(),OHe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[$i,bi,tn,mi],$i,tn]}),t})(),Ixn=(()=>{class t extends nyt{constructor(e,i,r,o,a,s,l,u,f){super(e,i,r,o,u,f),this._watcherHelper=o,this._idh=a,this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"validated",emit:"onValidated"},{emit:"adapterChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"nameChange"},{emit:"validationGroupChange"},{emit:"validationRulesChange"},{emit:"widthChange"}]),this.parentElement=this.getParentElement(s),this._idh.setHost(this),l.setHost(this)}get adapter(){return this._getOption("adapter")}set adapter(e){this._setOption("adapter",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(e){this._setOption("validationGroup",e)}get validationRules(){return this._getOption("validationRules")}set validationRules(e){this._setOption("validationRules",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(e){this.setChildren("validationRules",e)}_createInstance(e,i){return new Tk(this.parentElement?this.parentElement:e,i)}getParentElement(e){if(e)return e.getHost().element.nativeElement}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationRules",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationRules"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),o=null!==this._idh.getChanges(e,i);(r||o)&&super._setOption(e,i)}}return t.\u0275fac=function(e){return new(e||t)($(jn),$(Un),$(Zt),$(nn),$(Sn),$(ue,13),$(ue),$(fi),$(si))},t.\u0275cmp=je({type:t,selectors:[["dx-validator"]],contentQueries:function(e,i,r){if(1&e&&In(r,BT,4),2&e){let o;yn(o=Cn())&&(i.validationRulesChildren=o)}},inputs:{adapter:"adapter",elementAttr:"elementAttr",height:"height",name:"name",validationGroup:"validationGroup",validationRules:"validationRules",width:"width"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValidated:"onValidated",adapterChange:"adapterChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",nameChange:"nameChange",validationGroupChange:"validationGroupChange",validationRulesChange:"validationRulesChange",widthChange:"widthChange"},features:[ot([Zt,nn,ue,Sn]),qe,hi],decls:0,vars:0,template:function(e,i){},encapsulation:2}),t})(),THe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[H0e,v_,bi,tn,mi],H0e,v_,tn]}),t})();var IHe={_initEvents:function(){var n,t=this._eventNames,e=t.length,i=this._events={};for(n=0;n<e;++n)i[t[n]]=Zi()},_disposeEvents:function(){var n,t=this._events;for(n in t)t[n].empty();this._events=null},on:function(t){var e,n=this._events;for(e in t)n[e].add(t[e]);return function(){for(e in t)n[e].remove(t[e])}},_fire:function(t,n){this._events[t].fire(n)}};function kHe(t){var e,n=t.prototype;for(e in IHe)n[e]=IHe[e]}var Eee=Number,wD=Math.min,Gb=Math.max,Yc=Math.abs,L3=Math.round,Oee=Math.log,kxn=Math.pow,Mxn=2/Math.LN2,MHe=1/3600/180/10,FHe=[NaN,NaN];function Iee(t,n){return Yc(t-n)<1e-8}function PHe(t,n){return Iee(t[0],n[0])&&Iee(t[1],n[1])}function B3(t,n,e,i){var r=Eee(t);return isFinite(r)?wD(Gb(r,n),e):i}function kee(t,n,e,i){return[B3(t[0],n[0],e[0],i[0]),B3(t[1],n[1],e[1],i[1])]}function RHe(t){return t instanceof HM&&t||Bd.get(t)||Bd(t)||Bd.get("mercator")}var N3=function(t){this._initEvents(),this._params=t,this._engine=RHe(),this._center=this._engine.center(),this._adjustCenter()};function V3(t,n,e,i){var r=(e+i)/2;return Yc(t-r)>Yc(n-r)?t:n}function H3(t,n,e,i){var r=(e+i)/2;return Yc(t-r)<Yc(n-r)?t:n}function LHe(t,n,e){var{min:i,max:r}=NHe(n,e);t.min=Mee(i),t.max=Mee(r)}N3.prototype={constructor:N3,_minZoom:1,_maxZoom:256,_zoom:1,_center:FHe,_canvas:{},_scale:[],dispose:function(){this._disposeEvents()},setEngine:function(t){var n=RHe(t);this._engine!==n&&(this._engine=n,this._fire("engine"),this._changeCenter(n.center())&&this._triggerCenterChanged(),this._changeZoom(this._minZoom)&&this._triggerZoomChanged(),this._adjustCenter(),this._setupScreen())},setBounds:function(t){void 0!==t&&this.setEngine(this._engine.original().bounds(t))},_setupScreen:function(){var t=this._canvas,n=t.width,e=t.height,i=this._engine,r=i.ar();this._x0=t.left+n/2,this._y0=t.top+e/2;var u,o=[this.project([i.min()[0],0])[0],this.project([0,i.min()[1]])[1]],a=[this.project([i.max()[0],0])[0],this.project([0,i.max()[1]])[1]],s=n/e,l=Yc(a[0]-o[0])/Yc(a[1]-o[1]);u=isNaN(l)||0===l||wD(s,r)<=r*l&&r*l<=Gb(s,r)?1:l>1?l:1/l,r*l>=s?(this._xRadius=n/2/u,this._yRadius=n/2/(r*u)):(this._xRadius=e/2*(r/u),this._yRadius=e/2/u),this._fire("screen")},setSize:function(t){this._canvas=t,this._setupScreen()},getCanvas:function(){return this._canvas},_toScreen:function(t){return[this._x0+this._xRadius*t[0],this._y0+this._yRadius*t[1]]},_fromScreen:function(t){return[(t[0]-this._x0)/this._xRadius,(t[1]-this._y0)/this._yRadius]},_toTransformed:function(t){return[t[0]*this._zoom+this._xCenter,t[1]*this._zoom+this._yCenter]},_toTransformedFast:function(t){return[t[0]*this._zoom,t[1]*this._zoom]},_fromTransformed:function(t){return[(t[0]-this._xCenter)/this._zoom,(t[1]-this._yCenter)/this._zoom]},_adjustCenter:function(){var t=this._engine.project(this._center);this._xCenter=-t[0]*this._zoom||0,this._yCenter=-t[1]*this._zoom||0},project:function(t){return this._engine.project(t)},transform:function(t){return this._toScreen(this._toTransformedFast(t))},isInvertible:function(){return this._engine.isInvertible()},getSquareSize:function(t){return[t[0]*this._zoom*this._xRadius,t[1]*this._zoom*this._yRadius]},getZoom:function(){return this._zoom},_changeZoom:function(t){var i=!Iee(this._zoom,this._zoom=B3(t,this._minZoom,this._maxZoom,this._minZoom));return i&&(this._adjustCenter(),this._fire("zoom")),i},setZoom:function(t){this._engine.isInvertible()&&this._changeZoom(t)&&this._triggerZoomChanged()},getScaledZoom:function(){return L3((this._scale.length-1)*Oee(this._zoom)/Oee(this._maxZoom))},setScaledZoom:function(t){this.setZoom(this._scale[L3(t)])},changeScaledZoom:function(t){this.setZoom(this._scale[Gb(wD(L3(this.getScaledZoom()+t),this._scale.length-1),0)])},getZoomScalePartition:function(){return this._scale.length-1},_setupScaling:function(){var t=Gb(L3(Mxn*Oee(this._maxZoom)),4),n=kxn(this._maxZoom,1/t),e=this._minZoom;this._scale=[e];for(var i=1;i<=t;++i)this._scale.push(e*=n)},setMaxZoom:function(t){this._minZoom=1,this._maxZoom=B3(t,this._minZoom,Eee.MAX_VALUE,256),this._setupScaling(),this._zoom>this._maxZoom&&this.setZoom(this._maxZoom),this._fire("max-zoom")},getCenter:function(){return this._center.slice()},setCenter:function(t){this._engine.isInvertible()&&this._changeCenter(t||[])&&this._triggerCenterChanged()},_changeCenter:function(t){var n=this._engine,r=!PHe(this._center,this._center=kee(t,n.min(),n.max(),n.center()));return r&&(this._adjustCenter(),this._fire("center")),r},_triggerCenterChanged:function(){this._params.centerChanged(this.getCenter())},_triggerZoomChanged:function(){this._params.zoomChanged(this.getZoom())},setCenterByPoint:function(t,n){var e=this._engine.project(t),i=this._fromScreen(n);this.setCenter(this._engine.unproject([-i[0]/this._zoom+e[0],-i[1]/this._zoom+e[1]]))},beginMoveCenter:function(){this._engine.isInvertible()&&(this._moveCenter=this._center)},endMoveCenter:function(){this._moveCenter&&(PHe(this._moveCenter,this._center)||this._triggerCenterChanged(),this._moveCenter=null)},moveCenter:function(t){if(this._moveCenter){var n=this.toScreenPoint(this._center);this._changeCenter(this.fromScreenPoint([n[0]+t[0],n[1]+t[1]]))}},getViewport:function(){var t=this._engine.unproject,n=t(this._fromTransformed([-1,-1])),e=t(this._fromTransformed([-1,1])),i=t(this._fromTransformed([1,-1])),r=t(this._fromTransformed([1,1])),o=NHe([V3(n[0],e[0],i[0],r[0]),V3(n[1],i[1],e[1],r[1])],[V3(i[0],r[0],n[0],e[0]),V3(e[1],r[1],n[1],i[1])]);return[].concat(o.min,o.max)},setViewport:function(t){var n=this._engine,e=t?function Fxn(t,n,e){var i=t([e[0],e[3]]),r=t([e[0],e[1]]),o=t([e[2],e[3]]),a=t([e[2],e[1]]),s=H3(i[0],r[0],o[0],a[0]),l=H3(o[0],a[0],i[0],r[0]),u=H3(i[1],o[1],r[1],a[1]),f=H3(r[1],a[1],i[1],o[1]);return[2/Gb(Yc(s-l),Yc(u-f)),n([(s+l)/2,(u+f)/2])]}(n.project,n.unproject,t):[this._minZoom,n.center()];this.setZoom(e[0]),this.setCenter(e[1])},getTransform:function(){return{translateX:this._xCenter*this._xRadius,translateY:this._yCenter*this._yRadius}},fromScreenPoint:function(t){return this._engine.unproject(this._fromTransformed(this._fromScreen(t)))},toScreenPoint:function(t){return this._toScreen(this._toTransformed(this._engine.project(t)))},_eventNames:["engine","screen","center","zoom","max-zoom"]},kHe(N3);var HM=class{constructor(t){var n=function Pxn(t){return n=>BHe(t(n))}(t.to),e=t.from?function Rxn(t){return n=>t(BHe(n))}(t.from):z3(FHe);this.project=n,this.unproject=e,this.original=z3(this),this.source=function(){return se({},t)},this.isInvertible=z3(!!t.from),this.ar=z3(t.aspectRatio>0?Eee(t.aspectRatio):1),this.center=Mee(e([0,0])),LHe(this,[e([-1,0])[0],e([0,1])[1]],[e([1,0])[0],e([0,-1])[1]])}aspectRatio(t){var n=new HM(se(this.source(),{aspectRatio:t}));return n.original=this.original,n.min=this.min,n.max=this.max,n}bounds(t){t=t||[];var n=this.source(),e=this.min(),i=this.max(),r=kee([t[0],t[1]],e,i,e),o=kee([t[2],t[3]],e,i,i),a=n.to(r),s=n.to(o),l=wD(Yc(s[0]-a[0])>MHe?Yc(s[0]-a[0]):2,Yc(s[1]-a[1])>MHe?Yc(s[1]-a[1]):2);l<2&&se(n,function Lxn(t,n,e,i,r){var o=(e[0]+i[0])/2-r/2,a=(e[1]+i[1])/2-r/2,s=2/r;return{to:function(l){var[u,f]=t(l);return[(u-o)*s-1,(f-a)*s-1]},from:function(l){return n([o+(l[0]+1)/s,a+(l[1]+1)/s])}}}(n.to,n.from,a,s,l));var u=new HM(n);return u.original=this.original,LHe(u,r,o),u}};function BHe(t){return[t[0],-t[1]]}function z3(t){return()=>t}function Mee(t){return()=>t.slice()}function NHe(t,n){return{min:[wD(t[0],n[0]),wD(t[1],n[1])],max:[Gb(t[0],n[0]),Gb(t[1],n[1])]}}var Bd=function(t){return t&&t.to?new HM(t):null},Aee={};Bd.get=function(t){return Aee[t]||null},Bd.add=function(t,n){return n=n instanceof HM&&n||Bd(n),!Aee[t]&&n&&(Aee[t]=n),Bd};var VHe=(t,n)=>t.g().attr({stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(n),HHe=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.g().attr({class:e}).append(n)},zHe=(t,n)=>{var e=n?{display:"block"}:{display:"none"};t.map(i=>i.css(e))},zM=Math,UHe=zM.min,WHe=zM.max,U3=zM.round,GHe=zM.floor,Bxn=zM.sqrt,Nxn=b1(["left","center","right"]),Vxn=b1(["top","bottom"]),jHe="command-reset",Fee="command-move-up",Pee="command-move-right",Ree="command-move-down",Lee="command-move-left",Bee="command-zoom-in",KHe="command-zoom-out",$He="command-zoom-drag",Df="control-bar",jb={bigCircleSize:58,smallCircleSize:28,buttonSize:10,arrowButtonOffset:20,incDecButtonSize:11,incButtonOffset:66,decButtonOffset:227,sliderLineStartOffset:88.5,sliderLineEndOffset:205.5,sliderLength:20,sliderWidth:8,trackerGap:4},f0={};function Nee(t){this._params=t,this._createElements(t.renderer,t.container,t.dataKey),t.layoutControl.addItem(this),this._subscribeToProjection(t.projection),this._subscribeToTracker(t.tracker),this._createCallbacks(t.projection)}function WM(t){delete t._owner,t.update=function(){},t.finish=function(){}}function W3(t,n){this._owner=t,this._command=n}function G3(t,n,e){this._command=n;var i=null,r=0,o=0;switch(this._command){case Fee:o=-10;break;case Pee:r=10;break;case Ree:o=10;break;case Lee:r=-10}this._stop=function(){return clearTimeout(i),t._callbacks.endMove(),this._stop=t=null,this},t._callbacks.beginMove(),function a(){t._callbacks.move([r,o]),i=setTimeout(a,100)}()}function j3(t,n){this._owner=t,this._command=n;var e=null,i=this._command===Bee?1:-1;this._stop=function(){return clearTimeout(e),this._stop=t=null,this},function r(){t._adjustZoom(t._zoomFactor+i),e=setTimeout(r,150)}()}function K3(t,n,e){this._owner=t,this._zoomFactor=t._zoomFactor,this._pos=e.y}f0[jHe]=W3,f0[Fee]=f0[Pee]=f0[Ree]=f0[Lee]=G3,f0[Bee]=f0[KHe]=j3,f0[$He]=K3,Nee.prototype={constructor:Nee,_flags:0,dispose:function(){this._params.layoutControl.removeItem(this),this._root.linkRemove().linkOff(),this._offProjection(),this._offTracker(),this._params=this._root=this._offProjection=this._offTracker=this._callbacks=null},_subscribeToProjection:function(t){var n=this;function e(){n._adjustZoom(t.getScaledZoom())}n._offProjection=t.on({engine:function(){n._update()},zoom:e,"max-zoom":function(){n._zoomPartition=t.getZoomScalePartition(),n._sliderUnitLength=n._sliderLineLength/n._zoomPartition,e()}})},_subscribeToTracker:function(t){var n=this,e=!1;n._offTracker=t.on({start:function(i){(e=i.data.name===Df)&&n._processStart(i.data.index,i)},move:function(i){e&&n._processMove(i.data.index,i)},end:function(){e&&(n._processEnd(),e=!1)}})},_createCallbacks:function(t){this._callbacks={reset:function(n,e){n&&t.setCenter(null),e&&t.setZoom(null)},beginMove:function(){t.beginMoveCenter()},endMove:function(){t.endMoveCenter()},move:function(n){t.moveCenter(n)},zoom:function(n){t.setScaledZoom(n)}}},_createElements:function(t,n,e){this._root=t.g().attr({class:"dxm-control-bar"}).linkOn(n,"control-bar");var i=this._panControl=HHe(t,this._root,"dxm-pan-control"),r=this._zoomBar=HHe(t,this._root,"dxm-zoom-bar"),o=this._trackersPan=VHe(t,this._root),a=this._trackersZoom=VHe(t,this._root);this._createTrackersPan(t,e,o),this._createTrackersZoom(t,e,a),this._createPanControl(t,e,i),this._createZoomBar(t,e,r)},_createPanControl:function(t,n,e){var r=jb.buttonSize/2,o=jb.arrowButtonOffset-r,a=jb.arrowButtonOffset,s={"stroke-linecap":"square",fill:"none"};t.circle(0,0,jb.bigCircleSize/2).append(e),t.circle(0,0,r).attr({fill:"none"}).append(e),t.path([-r,-o,0,-a,r,-o],"line").attr(s).append(e),t.path([o,-r,a,0,o,r],"line").attr(s).append(e),t.path([r,o,0,a,-r,o],"line").attr(s).append(e),t.path([-o,r,-a,0,-o,-r],"line").attr(s).append(e)},_createZoomBar:function(t,n,e){var i=jb,r=i.incDecButtonSize/2;t.circle(0,i.incButtonOffset,i.smallCircleSize/2).append(e),t.path([[-r,i.incButtonOffset,r,i.incButtonOffset],[0,i.incButtonOffset-r,0,i.incButtonOffset+r]],"area").append(e),t.circle(0,i.decButtonOffset,i.smallCircleSize/2).append(e),t.path([-r,i.decButtonOffset,r,i.decButtonOffset],"area").append(e),this._zoomLine=t.path([],"line").append(e),this._zoomDrag=t.rect(GHe(-i.sliderLength/2),GHe(i.sliderLineEndOffset-i.sliderWidth/2),i.sliderLength,i.sliderWidth).append(e),this._sliderLineLength=i.sliderLineEndOffset-i.sliderLineStartOffset},_createTrackersPan:function(t,n,e){var i=jb,r=U3((i.arrowButtonOffset-i.trackerGap)/2),o=i.arrowButtonOffset-r,a=U3(Bxn(i.bigCircleSize*i.bigCircleSize/4-r*r)),s=a-o;t.rect(-r,-r,2*r,2*r).data(n,{index:jHe,name:Df}).append(e),t.rect(-r,-a,2*r,s).data(n,{index:Fee,name:Df}).append(e),t.rect(o,-r,s,2*r).data(n,{index:Pee,name:Df}).append(e),t.rect(-r,o,2*r,s).data(n,{index:Ree,name:Df}).append(e),t.rect(-a,-r,s,2*r).data(n,{index:Lee,name:Df}).append(e)},_createTrackersZoom:function(t,n,e){var i=jb;t.circle(0,i.incButtonOffset,i.smallCircleSize/2).data(n,{index:Bee,name:Df}).append(e),t.circle(0,i.decButtonOffset,i.smallCircleSize/2).data(n,{index:KHe,name:Df}).append(e),t.rect(-2,i.sliderLineStartOffset-2,4,i.sliderLineEndOffset-i.sliderLineStartOffset+4).css({cursor:"default"}).data(n,{index:"command-zoom-drag-line",name:Df}).append(e),this._zoomDragTracker=t.rect(-i.sliderLength/2,i.sliderLineEndOffset-i.sliderWidth/2,i.sliderLength,i.sliderWidth).data(n,{index:$He,name:Df}).append(e)},resize:function(t){this._isActive&&this._root.attr({visibility:null!==t?null:"hidden"})},getLayoutOptions:function(){return this._isActive?this._layoutOptions:null},locate:function(t,n){this._root.attr({translateX:t+this._margin+30.5,translateY:n+this._margin+30.5})},_update:function(){this._isActive=this._isEnabled&&this._flags&&this._params.projection.isInvertible();var t=[this._panControl,this._trackersPan],n=[this._zoomBar,this._trackersZoom];this._isActive?(this._root.linkAppend(),zHe(t,this._isPanVisible),zHe(n,this._isZoomVisible)):this._root.linkRemove(),this._processEnd(),this.updateLayout()},setInteraction:function(t){wd(t.centeringEnabled,!0)?this._flags|=1:this._flags&=-2,wd(t.zoomingEnabled,!0)?this._flags|=2:this._flags&=-3,this._update()},setOptions:function(t){var n={"stroke-width":t.borderWidth,stroke:t.borderColor,fill:t.color,"fill-opacity":t.opacity};this._isEnabled=!!wd(t.enabled,!0),this._margin=t.margin||0,this._layoutOptions={width:2*this._margin+61,height:2*this._margin+274,horizontalAlignment:Nxn(t.horizontalAlignment,"left"),verticalAlignment:Vxn(t.verticalAlignment,"top")},this._isPanVisible=!!wd(t.panVisible,!0),this._isZoomVisible=!!wd(t.zoomVisible,!0),this._panControl.attr(n),this._zoomBar.attr(n),this._update()},_adjustZoom:function(t){var n=jb.sliderLineStartOffset,e=jb.sliderLineEndOffset,i=jb.sliderWidth;this._zoomFactor=WHe(UHe(U3(t),this._zoomPartition),0);var r={translateY:-U3(this._zoomFactor*this._sliderUnitLength)},o=e-i/2+r.translateY;this._zoomLine.attr({points:[[0,n,0,WHe(n,o)],[0,UHe(e,o+i),0,e]]}),this._zoomDrag.attr(r),this._zoomDragTracker.attr(r)},_applyZoom:function(){this._callbacks.zoom(this._zoomFactor)},_processStart:function(t,n){var e;this._isActive&&(this._command=(e=f0[t])&&e.flags&this._flags?new e(this,t,n):null)},_processMove:function(t,n){this._command&&this._command.update(t,n)},_processEnd:function(){this._command&&this._command.finish(),this._command=null}},W3.flags=3,W3.prototype.update=function(t){t!==this._command&&WM(this)},W3.prototype.finish=function(){var t=this._owner._flags;this._owner._callbacks.reset(!!(1&t),!!(2&t)),WM(this)},G3.flags=1,G3.prototype.update=function(t){this._command!==t&&this.finish()},G3.prototype.finish=function(){WM(this._stop())},j3.flags=2,j3.prototype.update=function(t){this._command!==t&&this.finish()},j3.prototype.finish=function(){this._owner._applyZoom(),WM(this._stop())},K3.flags=2,K3.prototype.update=function(t,n){var e=this._owner;e._adjustZoom(this._zoomFactor+e._zoomPartition*(this._pos-n.y)/e._sliderLineLength)},K3.prototype.finish=function(){this._owner._applyZoom(),WM(this)};var jxn=Math.log,Kxn=Math.LN2;function Vee(t){this._projection=t.projection,this._renderer=t.renderer,this._x=this._y=0,this._subscribeToTracker(t.tracker)}Vee.prototype={constructor:Vee,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(t){var n=this,e=!1;n._offTracker=t.on({start:function(i){(e="control-bar"!==i.data.name)&&n._processStart(i)},move:function(i){e&&n._processMove(i)},end:function(){e&&n._processEnd()},zoom:function(i){n._processZoom(i)}})},setInteraction:function(t){this._processEnd(),this._centeringEnabled=t.centeringEnabled,this._zoomingEnabled=t.zoomingEnabled},_processStart:function(t){this._centeringEnabled&&(this._x=t.x,this._y=t.y,this._projection.beginMoveCenter())},_processMove:function(t){this._centeringEnabled&&(this._renderer.root.attr({cursor:"move"}),this._projection.moveCenter([this._x-t.x,this._y-t.y]),this._x=t.x,this._y=t.y)},_processEnd:function(){this._centeringEnabled&&(this._renderer.root.attr({cursor:"default"}),this._projection.endMoveCenter())},_processZoom:function(t){var n,e,i;this._zoomingEnabled&&(t.delta?n=t.delta:t.ratio&&(n=jxn(t.ratio)/Kxn),this._centeringEnabled&&(e=this._renderer.getRootOffset(),i=this._projection.fromScreenPoint(e=[t.x-e.left,t.y-e.top])),this._projection.changeScaledZoom(n),this._centeringEnabled&&this._projection.setCenterByPoint(i,e))}};var jM,i7e,qHe=cw(),Hee=Math,GM=Hee.abs,$xn=Hee.sqrt,YHe=Hee.round,DD=kt,ED="dxVectorMap",Uee="focus-on",n7e="focus-move",Wee="focus-off";function $3(t){var n=this;n._root=t.root,n._createEventHandlers(t.dataKey),n._createProjectionHandlers(t.projection),n._initEvents(),n._focus=new i7e(function(e,i){n._fire(e,i)}),n._attachHandlers()}function r7e(t,n,e,i){return $xn((t-e)*(t-e)+(n-i)*(n-i))}function Hp(t){var n=t.originalEvent.type,e=t.originalEvent.pointerType;return/^touch/.test(n)||/^MSPointer/.test(n)&&4!==e||/^pointer/.test(n)&&"mouse"!==e}function Gee(t,n){for(var r,e=0,i=t.length;e<i;++e)if(t[e]){r=n[e];break}return DD(r||n[e],ED)}function OD(t){var n=t.originalEvent,e=n.touches&&n.touches[0]||{};return{x:e.pageX||n.pageX||t.pageX,y:e.pageY||n.pageY||t.pageY}}function o7e(t){return t.originalEvent.pointerId}function q3(t,n){var e=t.originalEvent;return(e=void 0!==e.pointerId?e.pointerId===n?e:null:e.touches[n])?{x:e.pageX||t.pageX,y:e.pageY||t.pageY}:null}function jee(){this._store={}}!function nwn(){var t=[qHe.pointerEnabled,qHe.msPointerEnabled,VP("ontouchstart")];jM={start:Gee(t,["pointerdown","MSPointerDown","touchstart mousedown","mousedown"]),move:Gee(t,["pointermove","MSPointerMove","touchmove mousemove","mousemove"]),end:Gee(t,["pointerup","MSPointerUp","touchend mouseup","mouseup"]),wheel:DD(p_,ED)}}(),$3.prototype={constructor:$3,dispose:function(){this._detachHandlers(),this._disposeEvents(),this._focus.dispose(),this._root=this._focus=this._docHandlers=this._rootHandlers=null},_eventNames:["start","move","end","zoom","click","hover-on","hover-off",Uee,Wee,n7e],_startClick:function(t,n){if(n){var e=OD(t);this._clickState={x:e.x,y:e.y,threshold:Hp(t)?20:5,time:Date.now()}}},_endClick:function(t,n){var i,r,e=this._clickState;e&&(n&&Date.now()-e.time<=500&&(i=e.threshold,r=OD(t),GM(r.x-e.x)<=i&&GM(r.y-e.y)<=i&&this._fire("click",{data:n,x:r.x,y:r.y,$event:t})),this._clickState=null)},_startDrag:function(t,n){if(n){var e=OD(t),i=this._dragState={x:e.x,y:e.y,data:n};this._fire("start",{x:i.x,y:i.y,data:i.data})}},_moveDrag:function(t,n){var e=this._dragState;if(e){var i=OD(t),r=Hp(t)?10:5;(e.active||GM(i.x-e.x)>r||GM(i.y-e.y)>r)&&(e.x=i.x,e.y=i.y,e.active=!0,e.data=n||{},this._fire("move",{x:e.x,y:e.y,data:e.data}))}},_endDrag:function(){var t=this._dragState;t&&(this._dragState=null,this._fire("end",{x:t.x,y:t.y,data:t.data}))},_wheelZoom:function(t,n){if(n){var e=this._wheelLock,i=Date.now();if(!(i-e.time<=50)){i-e.dirTime>300&&(e.dir=0);var r=function iwn(t,n){if(0===t)return 0;var e=GM(t),i=YHe(t/e);return n.dir&&i!==n.dir?0:(n.dir=i,i*(e=e<.1?0:e<1?1:e>4?4:YHe(e)))}(t.delta/120||0,e);if(0!==r){var o=OD(t);this._fire("zoom",{delta:r,x:o.x,y:o.y}),e.time=e.dirTime=i}}}},_startZoom:function(t,n){if(Hp(t)&&n){var i,r,e=this._zoomState=this._zoomState||{};e.pointer1&&e.pointer2||(void 0===e.pointer1&&(e.pointer1=o7e(t)||0,i=q3(t,e.pointer1),e.x1=e.x1_0=i.x,e.y1=e.y1_0=i.y),void 0===e.pointer2&&(r=o7e(t)||1)!==e.pointer1&&(i=q3(t,r))&&(e.x2=e.x2_0=i.x,e.y2=e.y2_0=i.y,e.pointer2=r,e.ready=!0,this._endDrag()))}},_moveZoom:function(t){var e,n=this._zoomState;!n||!Hp(t)||(void 0!==n.pointer1&&(e=q3(t,n.pointer1))&&(n.x1=e.x,n.y1=e.y),void 0!==n.pointer2&&(e=q3(t,n.pointer2))&&(n.x2=e.x,n.y2=e.y))},_endZoom:function(t){var e,i,n=this._zoomState;!n||!Hp(t)||(n.ready&&(e=r7e(n.x1_0,n.y1_0,n.x2_0,n.y2_0),i=r7e(n.x1,n.y1,n.x2,n.y2),this._fire("zoom",{ratio:i/e,x:(n.x1_0+n.x2_0)/2,y:(n.y1_0+n.y2_0)/2})),this._zoomState=null)},_startHover:function(t,n){this._doHover(t,n,!0)},_moveHover:function(t,n){this._doHover(t,n,!1)},_doHover:function(t,n,e){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelHover():Hp(t)!==e||this._hoverTarget===t.target||this._hoverState&&this._hoverState.data===n||(this._cancelHover(),n&&(this._hoverState={data:n},this._fire("hover-on",{data:n})),this._hoverTarget=t.target)},_cancelHover:function(){var t=this._hoverState;this._hoverState=this._hoverTarget=null,t&&this._fire("hover-off",{data:t.data})},_startFocus:function(t,n){this._doFocus(t,n,!0)},_moveFocus:function(t,n){this._doFocus(t,n,!1)},_doFocus:function(t,n,e){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelFocus():Hp(t)===e&&(this._focus.turnOff(),n&&this._focus.turnOn(n,OD(t)))},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(t){var n=this;function e(i){var r=i.target;return("tspan"===r.tagName?r.parentNode:r)[t]}n._docHandlers={},n._rootHandlers={},n._docHandlers[jM.start]=function(i){var r=Hp(i),o=e(i);r&&!n._isTouchEnabled||(o&&i.preventDefault(),n._startClick(i,o),n._startDrag(i,o),n._startZoom(i,o),n._startHover(i,o),n._startFocus(i,o))},n._docHandlers[jM.move]=function(i){var r=Hp(i),o=e(i);r&&!n._isTouchEnabled||(n._moveDrag(i,o),n._moveZoom(i,o),n._moveHover(i,o),n._moveFocus(i,o))},n._docHandlers[jM.end]=function(i){var r=Hp(i),o=e(i);r&&!n._isTouchEnabled||(n._endClick(i,o),n._endDrag(i,o),n._endZoom(i,o))},n._rootHandlers[jM.wheel]=function(i){if(n._cancelFocus(),n._isWheelEnabled){var r=e(i);r&&(i.preventDefault(),i.stopPropagation(),n._wheelZoom(i,r))}},n._wheelLock={dir:0}},_createProjectionHandlers:function(t){var n=this;function e(){n._cancelFocus()}t.on({center:e,zoom:e})},reset:function(){this._clickState=null,this._endDrag(),this._cancelHover(),this._cancelFocus()},setOptions:function(t){this.reset(),this._detachHandlers(),this._isTouchEnabled=!!wd(t.touchEnabled,!0),this._isWheelEnabled=!!wd(t.wheelEnabled,!0),this._attachHandlers()},_detachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"","-webkit-user-select":""}).off(DD("MSHoldVisual",ED)).off(DD("contextmenu",ED)),Se.off(It.getDocument(),this._docHandlers),this._root.off(this._rootHandlers)},_attachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(DD("MSHoldVisual",ED),function(t){t.preventDefault()}).on(DD("contextmenu",ED),function(t){Hp(t)&&t.preventDefault()}),Se.on(It.getDocument(),this._docHandlers),this._root.on(this._rootHandlers)}},i7e=function(t){var a,s,n=this,e=null,i=null,r=!1,o=null;n.dispose=function(){clearTimeout(o),n.turnOn=n.turnOff=n.cancel=n.dispose=n=t=e=i=o=null},n.turnOn=function(l,u){function f(S){r=!S,S&&(e=i,clearTimeout(o),o=null)}l===i&&r||(r=!1,i=l,e?(a=u.x,s=u.y,i===e?(t(n7e,{data:i,x:a,y:s}),f(!0)):t(Uee,{data:i,x:a,y:s,done:f})):t(Uee,{data:i,x:a=u.x,y:s=u.y,done:f}))},n.turnOff=function(){i=null,e&&!r&&(o=o||setTimeout(function(){o=null,t(Wee,{data:e}),e=null},100))},n.cancel=function(){clearTimeout(o),e&&t(Wee,{data:e}),e=i=o=null}},kHe($3),jee.prototype={constructor:jee,dispose:function(){return this._store=null,this},_get:function(t,n){var e=this._store[t]||(this._store[t]={});return e[n]||(e[n]={callbacks:Zi()})},set:function(t,n,e){var i=this._get(t,n);return i.data=e,i.callbacks.fire(e),this},bind:function(t,n,e){var i=this._get(t,n);return i.callbacks.add(e),i.data&&e(i.data),this},unbind:function(t,n,e){return this._get(t,n).callbacks.remove(e),this}};var a7e=se,rwn=we,own={category:"UNKNOWN",name:"UNKNOWN"},Kee=function(t){var n=this;n._params=t,n._root=t.renderer.g().attr({class:"dxm-legend"}).linkOn(t.container,{name:"legend",after:"legend-base"}).enableLinks().linkAppend(),t.layoutControl.addItem(n),UC.call(n,{renderer:t.renderer,widget:t.widget,group:n._root,backgroundClass:null,itemsGroupClass:null,textField:"text",getFormatObject:function(e){return e}}),n._onDataChanged=function(e){n._updateData(e)}};function $ee(t){this._params=t,this._items=[],t.container.virtualLink("legend-base")}Kee.prototype=a7e(sg(UC.prototype),{constructor:Kee,dispose:function(){var t=this;return t._params.layoutControl.removeItem(t),t._unbindData(),t._root.linkRemove().linkOff(),t._params=t._root=t._onDataChanged=null,UC.prototype.dispose.apply(t,arguments)},resize:function(t){this._params.notifyDirty(),null===t?this.erase():this.draw(t.width,t.height),this._params.notifyReady()},locate:UC.prototype.shift,_updateData:function(t){this._options.defaultColor=t&&t.defaultColor,this.update(t?function awn(t,n,e){var i,a,r=n.length,o=[];for(i=0;i<r;++i)o[i]=a={start:t[i],end:t[i+1],index:i},a[e]=n[i],a.states={normal:{fill:a.color}},a.visible=!0;return o}(t.partition,t.values,this._dataName):[],this._options,this._params.themeManager.theme("legend").title),this.updateLayout()},_unbindData:function(){this._dataCategory&&this._params.dataExchanger.unbind(this._dataCategory,this._dataName,this._onDataChanged)},_bindData:function(t){this._params.dataExchanger.bind(this._dataCategory=t.category,this._dataName=t.name,this._onDataChanged)},setOptions:function(t){this.update(this._data,t,this._params.themeManager.theme("legend").title),this._unbindData();var n=t.source;return this._bindData(n?{category:n.layer,name:n.grouping}:own),this.updateLayout(),this}}),$ee.prototype={constructor:$ee,dispose:function(){rwn(this._items,function(t,n){n.dispose()}),this._params=this._items=null},setOptions:function(t){var i,n=t&&t.length?t:[],e=this._items,r=n.length,o=this._params,a=o.themeManager.theme("legend");for(i=e.length;i<r;++i)e[i]=new Kee(o);for(i=e.length-1;i>=r;--i)e[i].dispose(),e.splice(i,1);for(o.layoutControl.suspend(),i=0;i<r;++i)e[i].setOptions(a7e(!0,{},a,n[i]));o.layoutControl.resume()}};var Y3=Math.round,qee=Math.min,Z3=Math.max,Kv=we,swn={left:0,center:1,right:2},lwn={top:0,bottom:1};function s7e(t,n){var e=!1;return function cwn(t){Kv([0,1,2,3,4,5],function(n,e){var i=t[e],r=t[(e+3)%6];i.items&&(r.items||(i.rect[1]=qee(i.rect[1],r.rect[3]),i.rect[3]=Z3(i.rect[3],r.rect[1])))}),Kv([1,4],function(n,e){var a,s,i=t[e],r=t[e-1],o=t[e+1];i.items?!r.items&&!o.items&&((a=i.rect[0]-r.rect[2])>(s=o.rect[0]-i.rect[2])?a/s>=2?(i.rect[0]-=a,i.right=!0):(i.rect[0]-=s,i.rect[2]+=s):s/a>=2?(i.rect[2]+=s,i.center=null):(i.rect[0]-=a,i.rect[2]+=a)):(r.items&&(r.rect[2]=(i.rect[0]+i.rect[2])/2),o.items&&(o.rect[0]=(i.rect[0]+i.rect[2])/2))})}(t),Kv(t,function(i,r){r.items&&(e=function hwn(t,n){var e=t.rect,i=e[2]-e[0],r=e[3]-e[1],o=0,a=0,s=0,l=e[2],u=e[3],f=e[0],S=e[1],T=[],R=!1;return Kv(t.items,function(L,z){if(z.width>i||z.height>r||(o+z.width>i&&(a+=s,o=s=0),a+z.height>r))return T.push(null),R=!0,n||!1;s=Z3(s,z.height);var j=t.horInversion?e[2]-z.width-o:e[0]+o,Y=t.verInversion?e[3]-z.height-a:e[1]+a;o+=z.width,l=qee(l,j),u=qee(u,Y),f=Z3(f,j+z.width),S=Z3(S,Y+z.height),T.push([j,Y])}),(n||!R)&&(o=0,t.right?o=e[2]-e[0]-f+l:t.center&&(o=Y3((e[2]-e[0]-f+l)/2)),Kv(t.items,function(L,z){var j=T[L];j?z.item.locate(j[0]+o,j[1]):z.item.resize(null)}),t.rect=[l,u,f,S],t.items=null),R}(r,n)||e)}),e}function Yee(t){var n=this;n._items=[],n._suspended=0,n._widget=t,n._updateLayout=function(){n._update()}}Yee.prototype={constructor:Yee,dispose:function(){this._items=this._updateLayout=null},setSize:function(t){this._canvas=t,this._update()},suspend:function(){++this._suspended},resume:function(){0==--this._suspended&&this._update()},addItem:function(t){this._items.push(t),t.updateLayout=this._updateLayout},removeItem:function(t){var n=this._items.indexOf(t);this._items.splice(n,1),t.updateLayout=null},_update:function(){var t;0===this._suspended&&(t=this._canvas,Kv(this._items,function(n,e){e.resize(t)}),this._widget.resolveItemsDeferred(this._items.filter(n=>n.getTemplatesGroups&&n.getTemplatesDef)),function pwn(t,n){var e=function dwn(t,n){var e=(t.right-t.left)/3,i=(t.bottom-t.top)/2,r=t.left,o=Y3(r+e),a=Y3(r+e+e),s=t.right,l=t.top,u=Y3(l+i),f=t.bottom,S=[{rect:[r,l,o,u]},{rect:[o,l,a,u],center:!0},{rect:[a,l,s,u],horInversion:!0},{rect:[r,u,o,f],verInversion:!0},{rect:[o,u,a,f],center:!0,verInversion:!0},{rect:[a,u,s,f],horInversion:!0,verInversion:!0}],T=[[],[],[],[],[],[]];return Kv(n,function(R,L){var z=L.getLayoutOptions();z&&T[function uwn(t){return 3*lwn[t.verticalAlignment]+swn[t.horizontalAlignment]}(z)].push({item:L,width:z.width,height:z.height})}),Kv(S,function(R,L){T[R].length?L.items=T[R]:(L.center?L.rect[0]=L.rect[2]=(L.rect[0]+L.rect[2])/2:L.rect[L.horInversion?0:2]=L.rect[L.horInversion?2:0],L.rect[L.verInversion?1:3]=L.rect[L.verInversion?3:1])}),S}(t,n);s7e(e)&&s7e(e,!0)}({left:t.left,top:t.top,right:t.width+t.left,bottom:t.height+t.top},this._items))}};var zp=Be,Ef=se,KM=we,gwn=Array.prototype.concat,$M="area",TD="line",qM="marker",mwn=[0,1,2,2],Zee={none:null,single:-1,multiple:NaN},YM=Array.isArray,Yh=Number,_wn=String,vwn=Math.abs,ywn=Math.round,m0=Math.min,lc=Math.max,Xee=Math.sqrt;function Jee(t){return t.reduce((n,e)=>e?[m0(n[0],e[0]),m0(n[1],e[1]),lc(n[2],e[2]),lc(n[3],e[3])]:n,t[0])}function u7e(t,n){return(t[n]||{}).name}function Qee(){}function ete(t){this.raw=t}function Q3(t){this.raw=t}function tte(t){return YM(t.features)}function d7e(t){t.text.attr({visibility:t.size[0]/t.spaceSize[0]<1&&t.size[1]/t.spaceSize[1]<1?null:"hidden"})}function c7e(t){t.text.attr({visibility:t.size[0]/t.spaceSize[0]<1||t.size[1]/t.spaceSize[1]<1?null:"hidden"})}function ZM(t,n){return t.attribute(n)}Qee.prototype.count=function(){return 0},ete.prototype={constructor:ete,count:function(){return this.raw.length},item:function(t){return this.raw[t]},geometry:function(t){return{coordinates:t.coordinates}},attributes:function(t){return t.attributes},getBBox:function(t){return 0===arguments.length?void 0:this.raw[t].bbox}},Q3.prototype={constructor:Q3,count:function(){return this.raw.features.length},item:function(t){return this.raw.features[t]},geometry:function(t){return t.geometry},attributes:function(t){return t.properties},getBBox:function(t){return 0===arguments.length?this.raw.bbox:this.raw.features[t].bbox}};var Swn={Point:qM,MultiPoint:TD,LineString:TD,MultiLineString:TD,Polygon:$M,MultiPolygon:$M};function Oo(t,n){return void 0!==t?t:n}var tV,nte,h7e={setup:zp,reset:zp,arrange:zp,updateGrouping:zp,getDefaultColor:zp},ID={},eV={},XM={};function _0(t,n,e,i){t[i].attr(n[i][e])}function p7e(t,n){var i,e=[],r=e.length=n.length;for(i=0;i<r;++i)e[i]=t.project(n[i]);return e}function Twn(t,n){return[p7e(t,n)]}function ite(t,n){var i,e=[],r=e.length=n.length;for(i=0;i<r;++i)e[i]=p7e(t,n[i]);return e}function Mwn(t,n){var i,o,e=[],r=n.length,a=0;for(e.length=2*r,i=0;i<r;++i)o=t.transform(n[i]),e[a++]=o[0],e[a++]=o[1];return e}function g7e(t,n,e){var r,i=[],o=i.length=e.length;for(r=0;r<o;++r)i[r]=Mwn(n,e[r]);t.root.attr({points:i})}function f7e(t,n){var o,e=0,i=n.length-1,r=-1;if(n[e]<=t&&t<=n[i])if(t===n[i])r=i-1;else{for(;i-e>1;)t<n[o=e+i>>1]?i=o:e=o;r=e}return r}function m7e(t,n,e,i){t.params.eventTrigger(i,{target:n.proxy,state:e})}function rte(t,n){var e=Ef({},t,n);return e.label=Ef({},t.label,e.label),e.label.font=Ef({},t.label.font,e.label.font),e}function Bwn(t,n){return t.attribute(n)}ID[$M]={projectLabel:function Uwn(t){var n,i,r,e=t.length,o=0;for(n=0;n<e;++n)(i=Hwn(t[n])).area>o&&(o=i.area,r=i);return r?[r.center,[Xee(r.area),Xee(r.area)]]:[[],[]]},transform:g7e,transformLabel:function Awn(t,n,e){var i=n.transform(e[0]);t.spaceSize=n.getSquareSize(e[1]),t.text.attr({translateX:i[0],translateY:i[1]}),d7e(t)},draw:function(t,n,e){n.root=t.renderer.path([],"area").data(t.dataKey,e)},refresh:zp,getLabelOffset:function(t){return d7e(t),[0,0]},getStyles:function(t){var n=t.color||null,e=t.borderColor||null,i=Oo(t.borderWidth,null),r=Oo(t.opacity,null);return{root:[{class:"dxm-area",stroke:e,"stroke-width":i,fill:n,opacity:r},{class:"dxm-area dxm-area-hovered",stroke:t.hoveredBorderColor||e,"stroke-width":Oo(t.hoveredBorderWidth,i),fill:t.hoveredColor||n,opacity:Oo(t.hoveredOpacity,r)},{class:"dxm-area dxm-area-selected",stroke:t.selectedBorderColor||e,"stroke-width":Oo(t.selectedBorderWidth,i),fill:t.selectedColor||n,opacity:Oo(t.selectedOpacity,r)}]}},setState:function(t,n,e){_0(t,n,e,"root")},hasLabelsGroup:!0,updateGrouping:function(t){tV(t)},getDefaultColor:zp},ID[TD]={projectLabel:function Wwn(t){var n,r,o,e=t.length,i=0;for(n=0;n<e;++n)(r=zwn(t[n]))[2]>i&&(i=r[2],o=r);return o||[[],[]]},transform:g7e,transformLabel:function Fwn(t,n,e){var i=n.transform(e[0]);t.spaceSize=n.getSquareSize(e[1]),t.text.attr({translateX:i[0],translateY:i[1]}),c7e(t)},draw:function(t,n,e){n.root=t.renderer.path([],"line").data(t.dataKey,e)},refresh:zp,getLabelOffset:function(t){return c7e(t),[0,0]},getStyles:function(t){var n=t.color||t.borderColor||null,e=Oo(t.borderWidth,null),i=Oo(t.opacity,null);return{root:[{class:"dxm-line",stroke:n,"stroke-width":e,opacity:i},{class:"dxm-line dxm-line-hovered",stroke:t.hoveredColor||t.hoveredBorderColor||n,"stroke-width":Oo(t.hoveredBorderWidth,e),opacity:Oo(t.hoveredOpacity,i)},{class:"dxm-line dxm-line-selected",stroke:t.selectedColor||t.selectedBorderColor||n,"stroke-width":Oo(t.selectedBorderWidth,e),opacity:Oo(t.selectedOpacity,i)}]}},setState:function(t,n,e){_0(t,n,e,"root")},hasLabelsGroup:!0,updateGrouping:function(t){tV(t)},getDefaultColor:zp},ID[qM]={project:function Own(t,n){return t.project(n)},transform:function kwn(t,n,e){var i=n.transform(e);t.root.attr({translateX:i[0],translateY:i[1]})},draw:function(t,n,e){n.root=t.renderer.g(),this._draw(t,n,e)},refresh:zp,hasLabelsGroup:!1,getLabelOffset:function(t,n){return[ywn((t.size[0]+lc(n.size||0,0))/2)+2,0]},getStyles:function(t){var n={root:[{class:"dxm-marker"},{class:"dxm-marker dxm-marker-hovered"},{class:"dxm-marker dxm-marker-selected"}]};return this._getStyles(n,t),n},setState:function(t,n,e){_0(t,n,e,"root"),this._setState(t,n,e)},updateGrouping:function(t){tV(t),nte(t)},getDefaultColor:function(t,n){return t.params.themeManager.getAccentColor(n)}},eV[$M]=function(t){return{project:(n,e)=>e[0]&&e[0][0]&&e[0][0][0]&&"number"==typeof e[0][0][0][0]?function Iwn(t,n){var i,e=[],r=e.length=n.length;for(i=0;i<r;++i)e[i]=ite(t,n[i]);return gwn.apply([],e)}(n,e):ite(n,e)}},eV[TD]=function(t){var n=t.coordinates;return{project:n[0]&&n[0][0]&&"number"==typeof n[0][0][0]?ite:Twn}},XM[qM]={_default:"dot",dot:{setup:function(t){t.filter=t.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(t){t.filter.dispose(),t.filter=null},_draw:function(t,n,e){n.back=t.renderer.circle().sharp().data(t.dataKey,e).append(n.root),n.dot=t.renderer.circle().sharp().data(t.dataKey,e).append(n.root)},refresh:function(t,n,e,i,r){n.dot.attr({filter:r.shadow?t.filter.id:null})},_getStyles:function(t,n){var e=n.size>0?Yh(n.size):0,i=e,r=e+(n.selectedStep>0?Yh(n.selectedStep):0),o=i+(n.backStep>0?Yh(n.backStep):0),a=r+(n.backStep>0?Yh(n.backStep):0),s=n.color||null,l=n.borderColor||null,u=Oo(n.borderWidth,null),f=Oo(n.opacity,null),S=n.backColor||null,T=Oo(n.backOpacity,null);t.dot=[{r:e/2,stroke:l,"stroke-width":u,fill:s,opacity:f},{r:i/2,stroke:n.hoveredBorderColor||l,"stroke-width":Oo(n.hoveredBorderWidth,u),fill:n.hoveredColor||s,opacity:Oo(n.hoveredOpacity,f)},{r:r/2,stroke:n.selectedBorderColor||l,"stroke-width":Oo(n.selectedBorderWidth,u),fill:n.selectedColor||s,opacity:Oo(n.selectedOpacity,f)}],t.back=[{r:e/2,stroke:"none","stroke-width":0,fill:S,opacity:T},{r:o/2,stroke:"none","stroke-width":0,fill:S,opacity:T},{r:a/2,stroke:"none","stroke-width":0,fill:S,opacity:T}]},_setState:function(t,n,e){_0(t,n,e,"dot"),_0(t,n,e,"back")}},bubble:{_draw:function(t,n,e){n.bubble=t.renderer.circle().sharp().data(t.dataKey,e).append(n.root)},refresh:function(t,n,e,i,r){n.bubble.attr({r:r.size/2})},_getStyles:function(t,n){var e=n.color||null,i=n.borderColor||null,r=Oo(n.borderWidth,null),o=Oo(n.opacity,null);t.bubble=[{stroke:i,"stroke-width":r,fill:e,opacity:o},{stroke:n.hoveredBorderColor||i,"stroke-width":Oo(n.hoveredBorderWidth,r),fill:n.hoveredColor||n.color,opacity:Oo(n.hoveredOpacity,o)},{stroke:n.selectedBorderColor||i,"stroke-width":Oo(n.selectedBorderWidth,r),fill:n.selectedColor||n.color,opacity:Oo(n.selectedOpacity,o)}]},_setState:function(t,n,e){_0(t,n,e,"bubble")},arrange:function(t,n){var i,e=[],r=e.length=n.length,o=t.settings,a=o.dataField,s=o.minSize>0?Yh(o.minSize):0,l=o.maxSize>s?Yh(o.maxSize):s;if(!o.sizeGroups){for(i=0;i<r;++i)e[i]=lc(ZM(n[i].proxy,a)||0,0);var u=m0.apply(null,e),S=lc.apply(null,e)-u||1,T=l-s;for(i=0;i<r;++i)n[i]._settings.size=s+T*(e[i]-u)/S}},updateGrouping:function(t){var n=t.settings.dataField;ID[qM].updateGrouping(t),nte(t,function(e){return ZM(e,n)})}},pie:{_draw:function(t,n,e){n.pie=t.renderer.g().append(n.root),n.border=t.renderer.circle().sharp().data(t.dataKey,e).append(n.root)},refresh:function(t,n,e,i,r){var o=ZM(i,t.settings.dataField)||[],a=r._colors,s=0,l=n.pie,u=t.renderer,f=t.dataKey,S=(r.size>0?Yh(r.size):0)/2,T=90,R=T,L=!1;0===(s=o.reduce(function(z,j){return z+(j||0)},0))&&(L=!0,s=360/o.length),o.forEach(function(z,j){u.arc(0,0,0,S,T=R,R+=L?s:(z||0)/s*360).attr({"stroke-linejoin":"round",fill:a[j]}).data(f,e).append(l)}),n.border.attr({r:S})},_getStyles:function(t,n){var e=Oo(n.opacity,null),i=n.borderColor||null,r=Oo(n.borderWidth,null);t.pie=[{opacity:e},{opacity:Oo(n.hoveredOpacity,e)},{opacity:Oo(n.selectedOpacity,e)}],t.border=[{stroke:i,"stroke-width":r},{stroke:n.hoveredBorderColor||i,"stroke-width":Oo(n.hoveredBorderWidth,r)},{stroke:n.selectedBorderColor||i,"stroke-width":Oo(n.selectedBorderWidth,r)}]},_setState:function(t,n,e){_0(t,n,e,"pie"),_0(t,n,e,"border")},arrange:function(t,n){var e,o,i=n.length,r=t.settings.dataField,a=0;for(e=0;e<i;++e)(o=ZM(n[e].proxy,r))&&o.length>a&&(a=o.length);a>0&&(o=t.params.themeManager.createPalette(t.settings.palette,{useHighlight:!0,extensionMode:"alternate"}).generateColors(a),t.settings._colors=o,t.grouping.color={callback:zp,field:"",partition:[],values:[]},t.params.dataExchanger.set(t.name,"color",{partition:[],values:o}))}},image:{_draw:function(t,n,e){n.image=t.renderer.image(null,null,null,null,null,"center").attr({"pointer-events":"visible"}).data(t.dataKey,e).append(n.root)},refresh:function(t,n,e,i){n.image.attr({href:ZM(i,t.settings.dataField)})},_getStyles:function(t,n){var e=n.size>0?Yh(n.size):0,i=e+(n.hoveredStep>0?Yh(n.hoveredStep):0),r=e+(n.selectedStep>0?Yh(n.selectedStep):0),o=Oo(n.opacity,null);t.image=[{x:-e/2,y:-e/2,width:e,height:e,opacity:o},{x:-i/2,y:-i/2,width:i,height:i,opacity:Oo(n.hoveredOpacity,o)},{x:-r/2,y:-r/2,width:r,height:r,opacity:Oo(n.selectedOpacity,o)}]},_setState:function(t,n,e){_0(t,n,e,"image")}}};var _7e=function(t,n,e,i,r){var o;i&&n&&n.length>1&&(o=r(n.length-1),t.grouping[e]={callback:Yt(i)?i:Bwn,field:i,partition:n,values:o},t.params.dataExchanger.set(t.name,e,{partition:n,values:o,defaultColor:t.settings.color}))};function v7e(t){var n=t.name,e=t.params.dataExchanger;KM(t.grouping,function(i){e.set(n,i,null)}),t.grouping={}}function ote(t,n,e){return e?t|=n:t&=~n,t}function ate(t,n){return!!(t&n)}tV=function(t){_7e(t,t.settings.colorGroups,"color",t.settings.colorGroupingField,function(n){var i,e=t.params.themeManager.createDiscretePalette(t.settings.palette,n),r=[];for(i=0;i<n;++i)r.push(e.getColor(i));return r})},nte=function(t,n){var e=t.settings;_7e(t,e.sizeGroups,"size",n||e.sizeGroupingField,function(i){var r=e.minSize>0?Yh(e.minSize):0,o=e.maxSize>=r?Yh(e.maxSize):0,a=0,s=[];if(i>1)for(a=0;a<i;++a)s.push((r*(i-a-1)+o*a)/(i-1));else 1===i&&s.push((r+o)/2);return s})};var nV,ste=function(t,n,e,i){this._params=t,this._onProjection(),this.proxy=function Nwn(t,n,e){var i={index:e,name:n,getElements:function(){return t.getProxies()},clearSelection:function(r){return t.clearSelection(r),i},getDataSource:function(){return t.getDataSource()},getBounds:()=>t.getBounds()};return i}(this,e,i),this._context={name:e,layer:this.proxy,renderer:t.renderer,projection:t.projection,params:t,dataKey:t.dataKey,str:h7e,hover:!1,selection:null,grouping:{},root:t.renderer.g().attr({class:"dxm-layer"}).linkOn(n,e).linkAppend()},this._container=n,this._options={},this._handles=[],this._data=new Qee,this._dataSourceLoaded=null};function Hwn(t){var n,i,o,e=t.length,r=t[e-1],a=0,s=0,l=0,u=1/0,f=-1/0,S=1/0,T=-1/0;for(n=0;n<e;++n)l+=o=(i=r)[0]*(r=t[n])[1]-r[0]*i[1],a+=(i[0]+r[0])*o,s+=(i[1]+r[1])*o,u=m0(u,r[0]),f=lc(f,r[0]),S=m0(S,r[1]),T=lc(T,r[1]);return{area:vwn(l)/2,center:[2*a/3/l-(u+f)/2,2*s/3/l-(S+T)/2]}}function zwn(t){var n,i,e=t.length,r=t[0]||[],o=0,a=[0],s=r[0],l=r[0],u=r[1],f=r[1];for(n=1;n<e;++n)o+=Xee(((i=r)[0]-(r=t[n])[0])*(i[0]-r[0])+(i[1]-r[1])*(i[1]-r[1])),a[n]=o,s=m0(s,r[0]),l=lc(l,r[0]),u=m0(u,r[1]),f=lc(f,r[1]);i=t[n=f7e(o/2,a)],r=t[n+1];var S=(o/2-a[n])/(a[n+1]-a[n]);return e?[[i[0]*(1-S)+r[0]*S,i[1]*(1-S)+r[1]*S],[l-s,f-u],o]:[]}function lte(t){var n=t.renderer;this._params=t,this._layers=[],this._layerByName={},this._rect=[0,0,0,0],this._clip=n.clipRect(),this._background=n.rect().attr({class:"dxm-background"}).data(t.dataKey,{name:"background"}).append(n.root),this._container=n.g().attr({class:"dxm-layers","clip-path":this._clip.id}).append(n.root).enableLinks(),this._subscribeToTracker(t.tracker,n,t.eventTrigger),this._dataReady=t.dataReady}function ute(t){this._subscribeToTracker(t.tracker,t.tooltip,t.layerCollection)}ste.prototype=Ef({constructor:ste,getDataReadyCallback(){return this._dataSourceLoaded},_onProjection:function(){var t=this;t._removeHandlers=t._params.projection.on({engine:function(){t._project()},screen:function(){t._transform()},center:function(){t._transformCore()},zoom:function(){t._transform()}})},getData(){return this._data},_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceChangedHandler:function(){this._data=function bwn(t){var n;return t&&(tte(t)?n=Q3:1===t.length&&t[0]&&tte(t[0])?(n=Q3,t=t[0]):YM(t)&&(n=ete)),new(n=n||Qee)(t)}(this._dataSource&&this._dataSource.items()),this._update(!0)},_dataSourceOptions:function(){return{paginate:!1}},_getSpecificDataSourceOption:function(){return this._specificDataSourceOption},_normalizeDataSource:function(t){var n=t.store();return"raw"===n._loadMode&&(n._loadMode=void 0),t},_offProjection:function(){this._removeHandlers(),this._removeHandlers=null},dispose:function(){return this._disposeDataSource(),this._destroyHandles(),v7e(this._context),this._context.root.linkRemove().linkOff(),this._context.labelRoot&&this._context.labelRoot.linkRemove().linkOff(),this._context.str.reset(this._context),this._offProjection(),this._params=this._container=this._context=this.proxy=null,this},setOptions:function(t){t=this._options=t||{},this._dataSourceLoaded=new et,"dataSource"in t&&t.dataSource!==this._options_dataSource?(this._options_dataSource=t.dataSource,this._params.notifyDirty(),this._specificDataSourceOption=function xwn(t){return t?tte(t)?[t]:t:[]}(t.dataSource),this._refreshDataSource()):this._data.count()>0&&(this._params.notifyDirty(),this._update(void 0!==t.type&&t.type!==this._context.str.type||void 0!==t.elementType&&t.elementType!==this._context.str.elementType)),this._transformCore()},_update:function(t){var n=this._context;t&&(n.str.reset(n),n.root.clear(),n.labelRoot&&n.labelRoot.clear(),this._params.tracker.reset(),this._destroyHandles(),n.str=function(t,n){var r,e=Ri(t.type),i=Ri(t.elementType),o=Ef({},h7e);return n.count()>0&&(r=n.geometry(n.item(0)),e=ID[e]?e:function Dwn(t){var n=Swn[t.type],e=t.coordinates;return n||(n="number"==typeof e[0]?qM:"number"==typeof e[0][0]?TD:$M),n}(r),Ef(o,ID[e]),o.fullType=o.type=e,eV[e]&&Ef(o,eV[e](r)),XM[e]&&(Ef(o,XM[e][i=XM[e][i]?i:XM[e]._default]),o.elementType=i,o.fullType+=":"+i)),o}(this._options,this._data),n.str.setup(n),this.proxy.type=n.str.type,this.proxy.elementType=n.str.elementType),n.settings=function Lwn(t,n){var o,a,s,e=t.params.themeManager,i=t.str,r=rte(Ef({label:{},color:i.getDefaultColor(t,n.palette)},e.theme("layer:"+i.fullType)),n);if(r.paletteSize>0){for(s=e.createDiscretePalette(r.palette,r.paletteSize),a=0,o=[];a<r.paletteSize;++a)o.push(s.getColor(a));r._colors=o}return r}(n,this._options),n.hasSeparateLabel=!(!n.settings.label.enabled||!n.str.hasLabelsGroup),n.hover=!!wd(n.settings.hoverEnabled,!0),n.selection&&KM(n.selection.state,function(e,i){i&&i.resetSelected()}),n.selection=function Cwn(t){var n=Ri(t);return null!==(n=n in Zee?Zee[n]:Zee.single)&&(n={state:{},single:n}),n}(n.settings.selectionMode),n.hasSeparateLabel?n.labelRoot||(n.labelRoot=n.renderer.g().attr({class:"dxm-layer-labels"}).linkOn(this._container,{name:n.name+"-labels",after:n.name}).linkAppend(),this._transformCore()):n.labelRoot&&(n.labelRoot.linkRemove().linkOff(),n.labelRoot=null),t&&this._createHandles(),v7e(n),n.str.arrange(n,this._handles),n.str.updateGrouping(n),this._updateHandles(),this._params.notifyReady(),this._dataSourceLoaded?(this._dataSourceLoaded.resolve(),this._dataSourceLoaded=null):this._params.dataReady()},getBounds(){return Jee(this._handles.map(t=>{var{proxy:n}=t;return n.coordinates().map(e=>{if(YM(e)){var i=YM(e[0][0])?e.reduce((o,a)=>o.concat(a),[]):e,r=i[0];return i.reduce((o,a)=>[m0(o[0],a[0]),m0(o[1],a[1]),lc(o[2],a[0]),lc(o[3],a[1])],[r[0],r[1],r[0],r[1]])}})}).map(Jee))},_destroyHandles(){this._handles.forEach(t=>t.dispose()),this._context.selection&&(this._context.selection.state={}),this._handles=[]},_createHandles:function(){var e,s,l,t=this._handles=[],n=this._data,i=t.length=n.count(),r=this._context,o=n.geometry,a=n.attributes;for(e=0;e<i;++e)l=n.item(e),t[e]=new nV(r,e,o(l),a(l));for(Yt(this._options.customize)&&function wwn(t,n,e){n.call(e,t)}(this.getProxies(),this._options.customize,this._params.widget),e=0;e<i;++e)(s=t[e]).project(),s.draw(),s.transform();r.selection&&KM(r.selection.state,function(u,f){f&&f.restoreSelected()})},_updateHandles:function(){var n,t=this._handles,e=t.length;for(n=0;n<e;++n)t[n].refresh();if(this._context.settings.label.enabled){for(n=0;n<e;++n)t[n].measureLabel();for(n=0;n<e;++n)t[n].adjustLabel()}},_transformCore:function(){var t=this._params.projection.getTransform();this._context.root.attr(t),this._context.labelRoot&&this._context.labelRoot.attr(t)},_project:function(){var n,t=this._handles,e=t.length;for(n=0;n<e;++n)t[n].project()},_transform:function(){var n,t=this._handles,e=t.length;for(this._transformCore(),n=0;n<e;++n)t[n].transform()},getProxies(){return this._handles.map(t=>t.proxy)},getProxy:function(t){return this._handles[t].proxy},raiseClick:function(t,n){this._params.eventTrigger("click",{target:this._handles[t].proxy,event:n})},hoverItem:function(t,n){this._handles[t].setHovered(n)},selectItem:function(t,n,e){this._handles[t].setSelected(n,e)},clearSelection:function(){var t=this._context.selection;t&&(KM(t.state,function(n,e){e&&e.setSelected(!1)}),t.state={})}},bp),nV=function(t,n,e,i){var r=this.proxy=function Vwn(t,n,e){var i={coordinates:function(){return n},attribute:function(r,o){return arguments.length>1?(e[r]=o,i):arguments.length>0?e[r]:e},selected:function(r,o){return arguments.length>0?(t.setSelected(r,o),i):t.isSelected()},applySettings:function(r){return t.update(r),i}};return i}(this,e.coordinates,Ef({},i));this._ctx=t,this._index=n,this._fig=this._label=null,this._state=0,this._coordinates=e.coordinates,this._settings={label:{}},r.index=n,r.layer=t.layer,this._data={name:t.name,index:n}},nV.prototype={constructor:nV,dispose:function(){return this._ctx=this.proxy=this._settings=this._fig=this._label=this.data=null,this},project:function(){var t=this._ctx;this._projection=t.str.project(t.projection,this._coordinates),t.hasSeparateLabel&&this._label&&this._projectLabel()},_projectLabel:function(){this._labelProjection=this._ctx.str.projectLabel(this._projection)},draw:function(){var t=this._ctx;t.str.draw(t,this._fig={},this._data),this._fig.root.append(t.root)},transform:function(){var t=this._ctx;t.str.transform(this._fig,t.projection,this._projection),t.hasSeparateLabel&&this._label&&this._transformLabel()},_transformLabel:function(){this._ctx.str.transformLabel(this._label,this._ctx.projection,this._labelProjection)},refresh:function(){var t=this._ctx.str,n=function Pwn(t,n,e){var i=rte(t.settings,e);return function Rwn(t,n,e){KM(t,function(i,r){var o=f7e(r.callback(n,r.field),r.partition);o>=0&&(e[i]=r.values[o])})}(t.grouping,n,i),void 0===e.color&&e.paletteIndex>=0&&(i.color=i._colors[e.paletteIndex]),i}(this._ctx,this.proxy,this._settings);this._styles=t.getStyles(n),t.refresh(this._ctx,this._fig,this._data,this.proxy,n),this._refreshLabel(n),this._setState()},_refreshLabel:function(t){var n=this._ctx,e=t.label,i=this._label;n.settings.label.enabled?(i||(i=this._label={root:n.labelRoot||this._fig.root,text:n.renderer.text().attr({class:"dxm-label"}),size:[0,0]},n.hasSeparateLabel&&(this._projectLabel(),this._transformLabel())),i.value=_wn(this.proxy.text||this.proxy.attribute(e.dataField)||""),i.value&&(i.text.attr({text:i.value,x:0,y:0}).css(_a(e.font)).attr({align:"center",stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"]}).data(n.dataKey,this._data).append(i.root),i.settings=t)):i&&(i.text.remove(),this._label=null)},measureLabel:function(){var n,t=this._label;t.value&&(n=t.text.getBBox(),t.size=[n.width,n.height,-n.y-n.height/2])},adjustLabel:function(){var n,t=this._label;t.value&&(n=this._ctx.str.getLabelOffset(t,t.settings),t.settings=null,t.text.attr({x:n[0],y:n[1]+t.size[2]}))},update:function(t){this._settings=rte(this._settings,t),this._fig&&(this.refresh(),this._label&&this._label.value&&(this.measureLabel(),this.adjustLabel()))},_setState:function(){this._ctx.str.setState(this._fig,this._styles,mwn[this._state])},_setForeground:function(){var t=this._fig.root;this._state?t.toForeground():t.toBackground()},setHovered:function(t){var n=ate(this._state,1),e=!!t;return this._ctx.hover&&n!==e&&(this._state=ote(this._state,1,e),this._setState(),this._setForeground(),m7e(this._ctx,this,e,"hoverChanged")),this},setSelected:function(t,n){var o,e=ate(this._state,2),i=!!t,r=this._ctx.selection;r&&e!==i&&(this._state=ote(this._state,2,i),o=r.state[r.single],r.state[r.single]=null,o&&o.setSelected(!1),r.state[r.single||this._index]=t?this:null,this._fig&&(this._setState(),this._setForeground(),n||m7e(this._ctx,this,i,"selectionChanged")))},isSelected:function(){return ate(this._state,2)},resetSelected:function(){this._state=ote(this._state,2,!1)},restoreSelected:function(){this._fig.root.toForeground()}},lte.prototype={constructor:lte,dispose:function(){this._clip.dispose(),this._layers.forEach(t=>t.dispose()),this._offTracker(),this._params=this._offTracker=this._layers=this._layerByName=this._clip=this._background=this._container=null},_subscribeToTracker:function(t,n,e){var i=this;i._offTracker=t.on({click:function(r){var o=n.getRootOffset(),a=i.byName(r.data.name);r.$event.x=r.x-o.left,r.$event.y=r.y-o.top,a?a.raiseClick(r.data.index,r.$event):"background"===r.data.name&&e("click",{event:r.$event})},"hover-on":function(r){var o=i.byName(r.data.name);o&&o.hoverItem(r.data.index,!0)},"hover-off":function(r){var o=i.byName(r.data.name);o&&o.hoverItem(r.data.index,!1)}})},setOptions(t){var i,n=t?YM(t)?t:[t]:[],e=this._layers;if(n.length!==e.length||e.some((f,S)=>{var T=u7e(n,S);return Z(T)&&T!==f.proxy.name})){this._params.tracker.reset(),this._layers.forEach(f=>f.dispose());var o=this._layerByName={};this._layers=e=[];for(var a=0,s=n.length;a<s;++a){var l=u7e(n,a)||"map-layer-"+a,u=e[a]=new ste(this._params,this._container,l,a);o[l]=u}}e.forEach((f,S)=>{f.setOptions(n[S])}),(i=e.map(f=>f.getDataReadyCallback())).length&&Qt.apply(void 0,i).done(this._dataReady)},_updateClip:function(){var t=this._rect,n=this._borderWidth;this._clip.attr({x:t[0]+n,y:t[1]+n,width:lc(t[2]-2*n,0),height:lc(t[3]-2*n,0)})},setBackgroundOptions:function(t){this._background.attr({stroke:t.borderColor,"stroke-width":t.borderWidth,fill:t.color}),this._borderWidth=lc(t.borderWidth,0),this._updateClip()},setRect:function(t){this._rect=t,this._background.attr({x:t[0],y:t[1],width:t[2],height:t[3]}),this._updateClip()},byIndex:function(t){return this._layers[t]},byName:function(t){return this._layerByName[t]},items:function(){return this._layers}},ute.prototype={constructor:ute,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(t,n,e){this._offTracker=t.on({"focus-on":function(i){var r,o;if(n.isEnabled()){var a=s=>{s&&i.done(s)};(o=(r=e.byName(i.data.name))&&r.getProxy(i.data.index))&&a(n.show(o,{x:i.x,y:i.y,offset:12},{target:o},void 0,a))}},"focus-move":function(i){n.move(i.x,i.y,12)},"focus-off":function(){n.hide()}})}};var Gwn=1,Kwn=Math.min,$wn=Math.max,qwn=Math.sin,Ywn=Math.asin,C7e=Math.tan,iV=Math.atan,rV=Math.exp,b7e=Math.log,Zh=Math.PI,x7e=Zh/4,$v=180,qv=Zh/180,Zwn=(2*iV(rV(Zh))-Zh/2)/qv,Xwn=(2.5*iV(rV(.8*Zh))-.625*Zh)/qv;function oV(t,n){return $wn(Kwn(t,+n),-n)}Bd.add("mercator",Bd({aspectRatio:1,to:function(t){return[t[0]/$v,b7e(C7e(x7e+oV(t[1],Zwn)*qv/2))/Zh]},from:function(t){return[t[0]*$v,(2*iV(rV(t[1]*Zh))-Zh/2)/qv]}})),Bd.add("equirectangular",Bd({aspectRatio:2,to:function(t){return[t[0]/$v,t[1]/90]},from:function(t){return[t[0]*$v,90*t[1]]}})),Bd.add("lambert",Bd({aspectRatio:2,to:function(t){return[t[0]/$v,qwn(oV(t[1],90)*qv)]},from:function(t){return[t[0]*$v,Ywn(oV(t[1],1))/qv]}})),Bd.add("miller",Bd({aspectRatio:1,to:function(t){return[t[0]/$v,1.25*b7e(C7e(x7e+oV(t[1],Xwn)*qv*.4))/Zh]},from:function(t){return[t[0]*$v,(2.5*iV(rV(.8*t[1]*Zh))-.625*Zh)/qv]}}));var e1n=/^layers/,t1n=/\.dataSource$/;function w7e(t,n){return n?[Math.min(n[0],n[2],t[0]),Math.min(n[1],n[3],t[3]),Math.max(n[0],n[2],t[2]),Math.max(n[1],n[3],t[1])]:t}var Yv=V_.inherit({_eventsMap:{onClick:{name:"click"},onCenterChanged:{name:"centerChanged"},onZoomFactorChanged:{name:"zoomFactorChanged"},onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_rootClassPrefix:"dxm",_rootClass:"dxm-vector-map",_themeSection:"map",_fontFields:["layer:area.label.font","layer:marker:dot.label.font","layer:marker:bubble.label.font","layer:marker:pie.label.font","layer:marker:image.label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initLayerCollection:function(t){var n=this;n._layerCollection=new lte({renderer:n._renderer,projection:n._projection,themeManager:n._themeManager,tracker:n._tracker,dataKey:t,eventTrigger:n._eventTrigger,dataExchanger:n._dataExchanger,tooltip:n._tooltip,notifyDirty:n._notifyDirty,notifyReady:n._notifyReady,dataReady(){var e;if(n.option("getBoundsFromData")&&!n.option("bounds")&&(n._preventProjectionEvents(),e=n._getBoundsFromData(),n._projection.setBounds(e),n._allowProjectionEvents()),!n.option("projection")&&(e=e||n._getBoundsFromData(),Math.ceil(e[0])<-180||Math.ceil(e[3])<-90||Math.floor(e[2])>180||Math.floor(e[1])>90)){var i=e[2]-e[0],r=e[1]-e[3];n._projection.setEngine({to:o=>[2*(o[0]-e[0])/i-1,2*(o[1]-e[3])/r-1],from:o=>[(o[0]+1)*i/2+e[0],(o[1]+1)*r/2+e[3]]})}}})},_getBoundsFromData(){var t=this._getBoundingBoxFromDataSource();if(!t){var n=Jee(this.getLayers().map(e=>e.getBounds()));n&&(t=n)}return[(t=t||[])[0],t[3],t[2],t[1]]},_initLegendsControl:function(){this._legendsControl=new $ee({renderer:this._renderer,container:this._root,widget:this,layoutControl:this._layoutControl,themeManager:this._themeManager,dataExchanger:this._dataExchanger,notifyDirty:this._notifyDirty,notifyReady:this._notifyReady})},_initControlBar:function(t){this._controlBar=new Nee({renderer:this._renderer,container:this._root,layoutControl:this._layoutControl,projection:this._projection,tracker:this._tracker,dataKey:t})},_initElements:function(){var i,t=this,n=function jwn(){return"vectormap-data-"+Gwn++}(),e=0;t._preventProjectionEvents=function(){i=!0},t._allowProjectionEvents=function(){i=!1},t._notifyDirty=function(){t._resetIsReady(),++e},t._notifyReady=function(){t._allowProjectionEvents(),0==--e&&t._drawn()},t._preventProjectionEvents(),t._dataExchanger=new jee,t._projection=new N3({centerChanged:function(r){i||t._eventTrigger("centerChanged",{center:r})},zoomChanged:function(r){i||t._eventTrigger("zoomFactorChanged",{zoomFactor:r})}}),t._tracker=new $3({root:t._root,projection:t._projection,dataKey:n}),t._gestureHandler=new Vee({projection:t._projection,renderer:t._renderer,tracker:t._tracker}),t._layoutControl=new Yee(t),t._layoutControl.suspend(),t._initLayerCollection(n),t._createHtmlStructure(),t._initControlBar(n),t._initLegendsControl(),t._prepareExtraElements(),t._tooltipViewer=new ute({tracker:t._tracker,tooltip:t._tooltip,layerCollection:t._layerCollection})},_change_RESUME_LAYOUT:function(){this._layoutControl.resume()},_initialChanges:["PROJECTION","RESUME_LAYOUT","LAYOUT_INIT","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER"],_layoutChangesOrder:["RESUME_LAYOUT","LAYERS"],_customChangesOrder:["EXTRA_ELEMENTS"],_initCore:function(){this._root=this._renderer.root.attr({align:"center",cursor:"default"}),this._initElements()},_disposeCore:function(){this._controlBar.dispose(),this._gestureHandler.dispose(),this._tracker.dispose(),this._legendsControl.dispose(),this._layerCollection.dispose(),this._layoutControl.dispose(),this._tooltipViewer.dispose(),this._dataExchanger.dispose(),this._projection.dispose(),this._dataExchanger=this._gestureHandler=this._projection=this._tracker=this._layoutControl=this._root=this._layerCollection=this._controlBar=this._legendsControl=null},_setupInteraction:function(){var t={centeringEnabled:!!wd(this._getOption("panningEnabled",!0),!0),zoomingEnabled:!!wd(this._getOption("zoomingEnabled",!0),!0)};this._gestureHandler.setInteraction(t),this._controlBar.setInteraction(t)},_getDefaultSize:function(){return{width:800,height:400}},_applySize:function(t){var n={left:t[0],top:t[1],width:t[2]-t[0],height:t[3]-t[1],right:0,bottom:0};this._projection.setSize(n),this._layoutControl.setSize(n),this._layerCollection.setRect([n.left,n.top,n.width,n.height]),this._requestChange(["EXTRA_ELEMENTS"])},_optionChanging:function(t,n,e){n&&e&&e1n.test(t)&&(n.dataSource&&e.dataSource&&n!==e?n.dataSource=null:t1n.test(t)&&this.option(t,null))},_applyChanges:function(){this._notifyDirty(),this.callBase.apply(this,arguments),this._notifyReady()},_optionChangesMap:{background:"BACKGROUND",layers:"LAYERS",extraElements:"EXTRA_ELEMENTS",controlBar:"CONTROL_BAR",legends:"LEGENDS",touchEnabled:"TRACKER",wheelEnabled:"TRACKER",panningEnabled:"INTERACTION",zoomingEnabled:"INTERACTION",projection:"PROJECTION",bounds:"BOUNDS",maxZoomFactor:"MAX_ZOOM_FACTOR",zoomFactor:"ZOOM_FACTOR",center:"CENTER"},_optionChangesOrder:["PROJECTION","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER","BACKGROUND","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_change_PROJECTION:function(){this._setProjection()},_change_BOUNDS:function(){this._setBounds()},_change_MAX_ZOOM_FACTOR:function(){this._setMaxZoom()},_change_ZOOM_FACTOR:function(){this._setZoom()},_change_CENTER:function(){this._setCenter()},_change_BACKGROUND:function(){this._setBackgroundOptions()},_change_LAYERS:function(){this._setLayerCollectionOptions()},_change_CONTROL_BAR:function(){this._setControlBarOptions()},_change_EXTRA_ELEMENTS:function(){this._renderExtraElements()},_change_LEGENDS:function(){this._setLegendsOptions()},_change_TRACKER:function(){this._setTrackerOptions()},_change_INTERACTION:function(){this._setupInteraction()},_themeDependentChanges:["BACKGROUND","LAYERS","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_setProjection:function(){this._projection.setEngine(this.option("projection"))},_setBounds:function(){this._projection.setBounds(this.option("bounds"))},_setMaxZoom:function(){this._projection.setMaxZoom(this.option("maxZoomFactor"))},_setZoom:function(){this._projection.setZoom(this.option("zoomFactor"))},_setCenter:function(){this._projection.setCenter(this.option("center"))},_setBackgroundOptions:function(){this._layerCollection.setBackgroundOptions(this._getOption("background"))},_setLayerCollectionOptions:function(){this._layerCollection.setOptions(this.option("layers"))},_getBoundingBoxFromDataSource(){var t=this._layerCollection.items(),n=[1/0,-1/0,-1/0,1/0],e=t&&t.length?t.reduce((i,r)=>{var o=r.getData(),a=o.count();if(a>0){var s=o.getBBox();if(s)i=w7e(i,s);else for(var l=0;l<a;l++)i=w7e(i,o.getBBox(l))}return i},n):void 0;return e===n?void 0:e},_setControlBarOptions:function(){this._controlBar.setOptions(this._getOption("controlBar"))},_setLegendsOptions:function(){this._legendsControl.setOptions(this.option("legends"))},_setTrackerOptions:function(){this._tracker.setOptions({touchEnabled:this._getOption("touchEnabled",!0),wheelEnabled:this._getOption("wheelEnabled",!0)})},getLayers(){return this._layerCollection.items().map(t=>t.proxy)},getLayerByIndex:function(t){var n=this._layerCollection.byIndex(t);return n?n.proxy:null},getLayerByName:function(t){var n=this._layerCollection.byName(t);return n?n.proxy:null},clearSelection:function(t){var e,n=this._layerCollection.items(),i=n.length;for(e=0;e<i;++e)n[e].clearSelection(t);return this},center:function(t){return void 0===t?this._projection.getCenter():(this._projection.setCenter(t),this)},zoomFactor:function(t){return void 0===t?this._projection.getZoom():(this._projection.setZoom(t),this)},viewport:function(t){return void 0===t?this._projection.getViewport():(this._projection.setViewport(t),this)},convertCoordinates:function(t){return this.convertToGeo((t=t&&t.length?t:[arguments[0],arguments[1]])[0],t[1])},convertToGeo:function(t,n){return this._projection.fromScreenPoint([t,n])},convertToXY:function(t,n){return this._projection.toScreenPoint([t,n])}});On("dxVectorMap",Yv),Yv.addPlugin(j_),Yv.addPlugin(TC),Yv.addPlugin(kC),Yv.addPlugin(MC),Yv.addPlugin(dv.core),Yv.addPlugin(dv.vectorMap);let S7e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[m_,Ea,Oa,Pg,ja,wR,b_,r_e,aa,F_e,Lo,P_e,Ta,hve,vs,_s,ms,X_e,Ia,$o,bi,tn,mi],m_,Ea,Oa,Pg,ja,wR,b_,r_e,aa,F_e,Lo,P_e,Ta,hve,vs,_s,ms,X_e,Ia,$o,tn]}),t})(),D7e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[[Fve,lye,FCe,ISe,PSe,WSe,Fme,$Se,nDe,JOe,dTe,cTe,ATe,qTe,u2e,d2e,_2e,tRe,nRe,uRe,hRe,pRe,JRe,QRe,eLe,tLe,dLe,yLe,tBe,zBe,jBe,$Be,qBe,YBe,QBe,a4e,s4e,l4e,u4e,p4e,CNe,bNe,xNe,SNe,DNe,ENe,ONe,XNe,r9e,j9e,K9e,$9e,s8e,b6e,x6e,S6e,D6e,E6e,F6e,B6e,N6e,V6e,H6e,z6e,U6e,G6e,$6e,q6e,Y6e,Z6e,X6e,SHe,DHe,EHe,OHe,THe,S7e,tn],Fve,lye,FCe,ISe,PSe,WSe,Fme,$Se,nDe,JOe,dTe,cTe,ATe,qTe,u2e,d2e,_2e,tRe,nRe,uRe,hRe,pRe,JRe,QRe,eLe,tLe,dLe,yLe,tBe,zBe,jBe,$Be,qBe,YBe,QBe,a4e,s4e,l4e,u4e,p4e,CNe,bNe,xNe,SNe,DNe,ENe,ONe,XNe,r9e,j9e,K9e,$9e,s8e,b6e,x6e,S6e,D6e,E6e,F6e,B6e,N6e,V6e,H6e,z6e,U6e,G6e,$6e,q6e,Y6e,Z6e,X6e,SHe,DHe,EHe,OHe,THe,S7e,tn]}),t})();class E7e{constructor(n,e,i,r,o,a,s){this.url=n,this.data=e,this.createdOn=i,this.mimeType=r,this.tag=o,this.width=a,this.height=s}}const v0=new class r1n extends q0{constructor(){super("ImageDB"),this.version(2).stores({images:"&url"}),this.images.mapToClass(E7e)}};function O7e(t){return v0.images.where("url").equals(t).toArray()}class kD{constructor(n,e){this.sanitizer=n,this.httpClient=e}getImageSrc(n){var e=this;return Rt(function*(){return yield e.getImageURL(n)})()}getImageURL(n){var e=this;return Rt(function*(){let i=yield O7e(n);if(0==i.length)try{let o=yield e.fetchImage(n);return null!=o?(e.saveImageToDatabase(n,o),{data:n,from:"network"}):{data:n,from:"network"}}catch{return{data:n,from:"network"}}const r=e.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(i[0].data));return{data:e.getSafeImageUrl(r),from:"cache"}})()}getSafeImageUrl(n){return`${n.changingThisBreaksApplicationSecurity}`}fetchImage(n){try{return this.httpClient.get(n,{responseType:"blob"}).toPromise()}catch{return G.create(null).toPromise()}}saveImageToDatabase(n,e){return Rt(function*(){0==(yield O7e(n)).length&&function o1n(t){v0.images.put(t)}(new E7e(n,e,new Date,e.type))})()}}kD.\u0275fac=function(n){return new(n||kD)(qt(CF),qt(iu))},kD.\u0275prov=Hn({token:kD,factory:kD.\u0275fac,providedIn:"root"});class Kb{}Kb.\u0275fac=function(n){return new(n||Kb)},Kb.\u0275mod=nt({type:Kb}),Kb.\u0275inj=Je({providers:[bo,fd,hg,ud,Eu,ud,fg,sC,H0,ag,kD],imports:[wXe,ng,D7e]});const s1n=["messageCreateComponent"],l1n=["chatRoomSettingsModal"],u1n=["userAddList"],d1n=["imageViewer"];function c1n(t,n){if(1&t&&(Ot(0,"div")(1,"h1"),xi(2),Pt()()),2&t){const e=yt();pt(2),mr(e.scope.network.getResourceOrKeyName("web_chat_chatHistory_chat_not_found_or_deleted"))}}function h1n(t,n){if(1&t&&(Ot(0,"p"),xi(1),Pt()),2&t){const e=yt(2);pt(1),mr(e.scope.network.getResourceOrKeyName("web_chat_chatHistory_no_chat_opened_message"))}}function p1n(t,n){1&t&&(Ot(0,"div",9),cn(1,h1n,2,1,"ng-template",null,10,Fs),Pt())}const g1n=function(){return[".jpg",".jpeg",".gif",".png"]};function f1n(t,n){if(1&t){const e=Gi();Ot(0,"dx-file-uploader",28),fn("onFilesUploaded",function(r){return Kn(e),$n(yt(2).onFilesUploaded(r))})("onUploaded",function(r){return Kn(e),$n(yt(2).onFileUploaded(r))}),Pt()}if(2&t){const e=yt(2);Tt("visible",!1)("uploadUrl",e.uploadUrl)("chunkSize",5e5)("uploadHeaders",e.headers)("allowedFileExtensions",Fx(7,g1n))("multiple",!1)("labelText",e.scope.network.getResourceOrKeyName("web_chat_upload_label"))}}function m1n(t,n){if(1&t&&(Ot(0,"p"),xi(1),Pt()),2&t){const e=yt(2);pt(1),ca(" ",null==e.chatRoom?null:e.chatRoom.name," ")}}function _1n(t,n){if(1&t){const e=Gi();Ot(0,"p",29),fn("click",function(r){return Kn(e),$n(yt(2).openChatRoomSettings(r))}),xi(1),Pt()}if(2&t){const e=yt(2);pt(1),mr(null==e.chatRoom?null:e.chatRoom.name)}}function v1n(t,n){1&t&&(Ot(0,"div")(1,"div",30),li(2,"app-empty-chat-list"),Pt()())}function y1n(t,n){if(1&t&&(Ot(0,"div",47)(1,"p"),xi(2),Pt()()),2&t){const e=yt().$implicit,i=yt(3);Ur("date-separator-dark",i.isDarkDateBackground(null==e.data?null:e.data.id)),pt(2),mr(i.safeFormatDate(null==e.data?null:e.data.createdOn,"shortDate"))}}function C1n(t,n){if(1&t&&li(0,"img",17),2&t){const e=yt(2).$implicit;Tt("src",yt(3).getAvatarUrlChatRoom(null==e||null==e.data||null==e.data.author?null:e.data.author.avatarGuid),ad)}}function b1n(t,n){if(1&t&&(Ot(0,"div",48)(1,"div",49),cn(2,C1n,1,1,"img",50),Pt()()),2&t){const e=yt().$implicit,i=yt(3);pt(2),Tt("ngIf",!i.isMessageFromLoggedInUser(e.data)&&!i.isGroupedMessage(e.data))}}function x1n(t,n){if(1&t&&li(0,"div",51),2&t){const e=yt().$implicit;Ur("message-container-content-message-arrow-my",yt(3).isMessageFromLoggedInUser(e.data))}}function w1n(t,n){if(1&t&&(Ot(0,"p",52)(1,"b"),xi(2),Pt()()),2&t){const e=yt().$implicit,i=yt(3);pt(2),mr(i.getAuthorName(null==e.data?null:e.data.author))}}function S1n(t,n){if(1&t){const e=Gi();Ot(0,"div",56)(1,"div",57),fn("click",function(){Kn(e);const r=yt(2).$implicit,o=yt(3);return $n(o.setBigImagePopup(o.getAttachmentUrl(null==r.data?null:r.data.chatMessageAttachments[0]).fileUrl))}),Pt()()}if(2&t){const e=yt(2).$implicit,i=yt(3);Ur("message-container-content-message-attachment-image-mobile",i.isMobile),pt(1),V6("background-image: url('",i.getAttachmentUrl(null==e.data?null:e.data.chatMessageAttachments[0]).thumbnailUrl,"');")}}function D1n(t,n){if(1&t){const e=Gi();Ot(0,"div")(1,"dx-button",60),fn("onClick",function(){return Kn(e),$n(yt(6).togglePdfViewer())}),Pt(),Ot(2,"dx-popup",61),fn("visibleChange",function(r){return Kn(e),$n(yt(6).pdfViewerVisible=r)}),li(3,"dxo-position",62)(4,"ng2-pdfjs-viewer",63),Pt()()}if(2&t){const e=yt(3).$implicit,i=yt(3);pt(2),Tt("showTitle",!0)("title",i.scope.network.getResourceOrKeyName("web_chat_pdf_view"))("dragEnabled",!0)("hideOnOutsideClick",!0)("showCloseButton",!0)("visible",i.pdfViewerVisible),pt(2),Tt("pdfSrc",i.getAttachmentUrl(null==e.data?null:e.data.chatMessageAttachments[0]).fileUrl)}}function E1n(t,n){if(1&t&&(Ot(0,"a",58),li(1,"i",59),Ot(2,"p"),xi(3),Pt()(),cn(4,D1n,5,7,"div",0)),2&t){const e=yt(2).$implicit,i=yt(3);let r;Tt("href",i.getAttachmentUrl(null==e||null==e.data?null:e.data.chatMessageAttachments[0]).fileUrl,ad),pt(3),mr(null==e.data?null:e.data.chatMessageAttachments[0].name),pt(1),Tt("ngIf",i.isPDFAttachment(null!==(r=null==e||null==e.data?null:e.data.chatMessageAttachments[0])&&void 0!==r&&r)&&i.isAndroid)}}const T7e=function(t){return{"message-container-content-message-my-text":t}};function O1n(t,n){if(1&t&&(Ot(0,"div"),li(1,"div",53),Nf(2,"linky"),cn(3,S1n,2,5,"div",54),cn(4,E1n,5,3,"ng-template",null,55,Fs),Pt()),2&t){const e=Ms(5),i=yt().$implicit,r=yt(3);pt(1),Tt("innerHtml",r.sanitizer.bypassSecurityTrustHtml(Vf(2,4,i.displayContent)),qp)("ngClass",T0(6,T7e,r.isMessageFromLoggedInUser(i.data))),pt(2),Tt("ngIf",r.isImageAttachment(null==i.data?null:i.data.chatMessageAttachments[0]))("ngIfElse",e)}}function T1n(t,n){if(1&t){const e=Gi();Ot(0,"div",56)(1,"div",57),fn("click",function(){Kn(e);const r=yt(4).$implicit,o=yt(3);return $n(o.setBigImagePopup(o.getAttachmentUrl(null==r.data?null:r.data.replyTo.chatMessageAttachments[0]).fileUrl))}),Pt()()}if(2&t){const e=yt(4).$implicit,i=yt(3);Ur("message-container-content-message-attachment-image-mobile",i.isMobile),pt(1),V6("background-image: url('",i.getAttachmentUrl(null==e.data?null:e.data.replyTo.chatMessageAttachments[0]).thumbnailUrl,"');")}}function I1n(t,n){if(1&t&&(Ot(0,"a",58),li(1,"i",69),Pt()),2&t){const e=yt(4).$implicit;Tt("href",yt(3).getAttachmentUrl(null==e.data?null:e.data.replyTo.chatMessageAttachments[0]).fileUrl,ad)}}function k1n(t,n){if(1&t&&(Ot(0,"div"),cn(1,T1n,2,5,"div",54),cn(2,I1n,2,1,"ng-template",null,55,Fs),Pt()),2&t){const e=Ms(3),i=yt(3).$implicit,r=yt(3);pt(1),Tt("ngIf",r.isImageAttachment(null==i.data?null:i.data.replyTo.chatMessageAttachments[0]))("ngIfElse",e)}}function M1n(t,n){if(1&t&&(li(0,"div",70),Nf(1,"linky")),2&t){const e=yt(3).$implicit;Tt("innerHtml",Vf(1,1,null==e.data?null:e.data.replyTo.displayContent),qp)}}const I7e=function(t){return{"message-container-content-message-my-time":t}};function A1n(t,n){if(1&t&&(Ot(0,"div",65)(1,"b",66),xi(2),Pt(),cn(3,k1n,4,2,"div",20),cn(4,M1n,2,3,"ng-template",null,67,Fs),Ot(6,"p",68),xi(7),Pt()()),2&t){const e=Ms(5),i=yt(2).$implicit,r=yt(3);Ur("message-container-content-message-my-text",r.isMessageFromLoggedInUser(i))("message-container-content-message-my-reply",r.isMessageFromLoggedInUser(i)),pt(2),mr(null==i.data?null:i.data.replyTo.userName),pt(1),Tt("ngIf",null==i.data?null:i.data.replyTo.chatMessageAttachments[0])("ngIfElse",e),pt(3),Tt("ngClass",T0(9,I7e,r.isMessageFromLoggedInUser(i))),pt(1),ca(" ",r.safeFormatDate(null==i.data?null:i.data.replyTo.createdOn,"dd.MM.yyyy hh:mm")," ")}}function F1n(t,n){if(1&t&&(cn(0,A1n,8,11,"div",64),li(1,"div",53),Nf(2,"linky")),2&t){const e=yt().$implicit,i=yt(3);Tt("ngIf",!(null==e.data||!e.data.replyTo)),pt(1),Tt("innerHtml",Vf(2,3,null==e.data?null:e.data.displayContent),qp)("ngClass",T0(5,T7e,i.isMessageFromLoggedInUser(e.data)))}}function P1n(t,n){if(1&t&&(El(0),Ot(1,"div",37),cn(2,y1n,3,3,"div",38),Ot(3,"div",39),cn(4,b1n,3,1,"div",40),Ot(5,"div",41),cn(6,x1n,1,2,"div",42),Ot(7,"div",43),cn(8,w1n,3,1,"p",44),Pt(),cn(9,O1n,6,8,"div",20),cn(10,F1n,3,7,"ng-template",null,45,Fs),Ot(12,"p",46),xi(13),Pt()()()(),Ol()),2&t){const e=n.$implicit,i=Ms(11),r=yt(3);pt(2),Tt("ngIf",r.hasMessageGroupDate(e.data)),pt(1),Ur("message-container-content-grouped",r.isGroupedMessage(e.data))("message-container-content-grouped-first",r.isFirstGroupedMessage(e.data))("message-container-content-my",r.isMessageFromLoggedInUser(e.data))("message-container-content-mobile",r.isMobile)("message-container-content-mobile-my",r.isMobile&&r.isMessageFromLoggedInUser(e.data))("message-container-content-image",null==e.data?null:e.data.chatMessageAttachments[0])("message-container-content-image-my",(null==e.data?null:e.data.chatMessageAttachments[0])&&r.isMessageFromLoggedInUser(e.data))("message-container-content-image-mobile",r.isMobile&&(null==e.data?null:e.data.chatMessageAttachments[0]))("message-container-content-image-mobile-my",r.isMobile&&(null==e.data?null:e.data.chatMessageAttachments[0])&&r.isMessageFromLoggedInUser(e.data)),pt(1),Tt("ngIf",r.isGroupChat()&&!r.isMessageFromLoggedInUser(e.data)),pt(1),Ur("message-container-content-message-dark",r.isDarkMessageBackground(null==e.data?null:e.data.id))("message-container-content-message-my",r.isMessageFromLoggedInUser(e.data)),pt(1),Tt("ngIf",!r.isGroupedMessage(e.data)),pt(2),Tt("ngIf","Private"!==(null==r.chatRoom?null:r.chatRoom.type)&&!r.isMessageFromLoggedInUser(e.data)),pt(1),Tt("ngIf",(null==e.data?null:e.data.chatMessageAttachments)&&(null==e.data?null:e.data.chatMessageAttachments[0]))("ngIfElse",i),pt(3),Tt("ngClass",T0(30,I7e,r.isMessageFromLoggedInUser(e.data))),pt(1),ca(" ",r.safeFormatDate(null==e.data?null:e.data.createdOn,"shortTime")," ")}}function R1n(t,n){if(1&t){const e=Gi();Ot(0,"div")(1,"div",31)(2,"dx-data-grid",32),fn("onRowPrepared",function(r){return Kn(e),$n(yt(2).onMessageListRowPrepared(r))})("onToolbarPreparing",function(r){return Kn(e),$n(yt(2).onMessageListToolbarPreparing(r))})("onContentReady",function(r){return Kn(e),$n(yt(2).onContentReady(r))})("onRowClick",function(r){return Kn(e),$n(yt(2).onRowClick(r))})("onSelectionChanged",function(r){return Kn(e),$n(yt(2).onSelectionChanged(r))}),li(3,"dxi-column",33)(4,"dxo-editing",34)(5,"dxo-scrolling",35)(6,"dxo-selection",36),cn(7,P1n,14,32,"ng-container",8),Pt(),Ot(8,"dx-action-sheet",25),fn("visibleChange",function(r){return Kn(e),$n(yt(2).actionSheetVisible=r)}),Pt()()()}if(2&t){const e=yt(2);Ur("reply-container-height-offset",e.isReplyContainerInDOM()),pt(2),Tt("dataSource",e.dataSource)("showColumnHeaders",!1)("wordWrapEnabled",!0),pt(2),Tt("newRowPosition","last")("allowUpdating",!1)("allowAdding",!0)("allowDeleting",!1),pt(3),Tt("dxTemplateOf","item"),pt(1),Tt("items",e.commands)("usePopover",!0)("showTitle",!1)("visible",e.actionSheetVisible)("target",e.actionSheetTarget)}}function L1n(t,n){if(1&t&&(Ot(0,"div",71),li(1,"app-chat-list-message-editor",72,73),Pt()),2&t){const e=yt(2);pt(1),Tt("chatRoom",e.chatRoom)("isMobile",e.isMobile)("parentThis",e)}}function B1n(t,n){if(1&t){const e=Gi();Ot(0,"div",11)(1,"div",12,13)(3,"div",14)(4,"div",15)(5,"div",16),li(6,"img",17),Pt(),cn(7,f1n,1,8,"dx-file-uploader",18),Pt(),Ot(8,"div",19),cn(9,m1n,2,1,"p",20),cn(10,_1n,2,1,"ng-template",null,21,Fs),Pt()(),Ot(12,"div",22)(13,"dx-button",23),fn("onClick",function(){return Kn(e),$n(yt().scrollToEnd())}),Pt()(),Ot(14,"div",22)(15,"dx-button",24),fn("onClick",function(){return Kn(e),$n(yt().toggleOpenSettings())}),Pt()()(),Ot(16,"div")(17,"dx-action-sheet",25),fn("visibleChange",function(r){return Kn(e),$n(yt().isOpen=r)}),Pt(),cn(18,v1n,3,0,"div",0),Pt(),cn(19,R1n,9,15,"div",26),Pt(),cn(20,L1n,3,3,"div",27)}if(2&t){const e=Ms(2),i=Ms(11),r=yt();Ur("app",r.userClientInfo.isApp),pt(5),Ur("cursor-pointer","Private"!==(null==r.chatRoom?null:r.chatRoom.type)&&(null==r.chatRoom?null:r.chatRoom.userHasAdminPrivileges)),pt(1),Tt("src",r.getGroupImageUrl(null==r.chatRoom?null:r.chatRoom.imageUrl),ad),pt(1),Tt("ngIf","Private"!==(null==r.chatRoom?null:r.chatRoom.type)&&(null==r.chatRoom?null:r.chatRoom.userHasAdminPrivileges)),pt(2),Tt("ngIf","Private"===(null==r.chatRoom?null:r.chatRoom.type)||!(null!=r.chatRoom&&r.chatRoom.userHasAdminPrivileges))("ngIfElse",i),pt(4),Tt("visible",r.showScrollDown),pt(2),Tt("visible",!!r.chatRoom),pt(2),Tt("items",r.chatRoomCommands)("usePopover",!0)("showTitle",!1)("visible",r.isOpen)("target",e),pt(1),Tt("ngIf",0===r.messageCount),pt(1),Tt("ngIf",0!=r.messageCount),pt(1),Tt("ngIf",r.chatRoom&&(!r.chatRoom.readOnly||r.chatRoom.userHasAdminPrivileges))}}function N1n(t,n){if(1&t&&(Ot(0,"div"),li(1,"app-apicodo-image-viewer",74,75),Pt()),2&t){const e=yt();Ur("app",e.userClientInfo.isApp),pt(1),Tt("src",e.bigImagePopupUrl)("config",e.viewerConfig)}}function V1n(t,n){if(1&t){const e=Gi();El(0),Ot(1,"dx-button",87),fn("onClick",function(){Kn(e);const r=yt(2).user,o=yt(2);return $n(r.isAdmin?o.revokeAdminPrivileges(r.chatMemberId):o.promoteToAdmin(r.chatMemberId))}),Pt(),Ot(2,"dx-button",88),fn("onClick",function(){Kn(e);const r=yt(2).user;return $n(yt(2).removeMember(r.chatMemberId))}),Pt(),Ol()}if(2&t){const e=yt(2).user,i=yt(2);pt(1),Tt("icon",e.isAdmin?"arrowdown":"arrowup")("text",i.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_"+(e.isAdmin?"revokeAdminPrivileges":"promoteToAdmin")+"_button")),pt(1),Tt("text",i.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_remove"))}}function H1n(t,n){if(1&t){const e=Gi();Ot(0,"div",89)(1,"dx-button",90),fn("onClick",function(){Kn(e);const r=yt(2).user,o=yt(2);return $n(r.isAdmin?o.revokeAdminPrivileges(r.chatMemberId):o.promoteToAdmin(r.chatMemberId))}),Pt(),Ot(2,"dx-button",91),fn("onClick",function(){Kn(e);const r=yt(2).user;return $n(yt(2).removeMember(r.chatMemberId))}),Pt()()}if(2&t){const e=yt(2).user,i=yt(2);pt(1),Tt("icon",e.isAdmin?"arrowdown":"arrowup")("text",i.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_"+(e.isAdmin?"revokeAdminPrivileges":"promoteToAdmin")+"_button")),pt(1),Tt("text",i.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_remove"))}}function z1n(t,n){if(1&t&&(Ot(0,"div",85),cn(1,V1n,3,3,"ng-container",20),cn(2,H1n,3,3,"ng-template",null,86,Fs),Pt()),2&t){const e=Ms(3),i=yt(3);pt(1),Tt("ngIf",!i.isMobile)("ngIfElse",e)}}function U1n(t,n){if(1&t&&cn(0,z1n,4,2,"div",84),2&t){const e=n.user,i=yt(2);Tt("ngIf",(null==e.chatMemberId?null:e.chatMemberId.toString())!==(null==i.chatRoom||null==i.chatRoom.myMembershipId?null:i.chatRoom.myMembershipId.toString()))}}function W1n(t,n){if(1&t){const e=Gi();El(0),Ot(1,"dx-check-box",92),fn("valueChange",function(r){return Kn(e),$n(yt().user.isAdmin=r)})("onValueChanged",function(r){Kn(e);const o=yt().user;return $n(yt(2).hackPreventSelectionChange(r,o))}),Pt(),Ol()}if(2&t){const e=yt().user,i=yt(2);pt(1),Tt("text",i.scope.network.getResourceOrKeyName("web_groupChat_userSearch_chatRoomAdmin_checkbox_label"))("value",e.isAdmin)}}function G1n(t,n){1&t&&cn(0,W1n,2,2,"ng-container",0),2&t&&Tt("ngIf",n.selected)}const j1n=function(){return["profile.firstName","profile.lastName"]};function K1n(t,n){if(1&t){const e=Gi();Ot(0,"div")(1,"dx-scroll-view",76)(2,"app-group-chat-settings",77),fn("groupChatDataChange",function(r){return Kn(e),$n(yt().groupChatData=r)}),Pt(),Ot(3,"dx-button",78),fn("onClick",function(){return Kn(e),$n(yt().updateChatRoom())}),Pt(),Ot(4,"h3"),xi(5),Pt(),li(6,"app-user-list",79),cn(7,U1n,1,1,"ng-template",null,80,Fs),Ot(9,"h3"),xi(10),Pt(),Ot(11,"dx-button",78),fn("onClick",function(){return Kn(e),$n(yt().addMembers())}),Pt(),Ot(12,"dx-select-box",81),fn("selectedItemChange",function(r){return Kn(e),$n(yt().selectedHistorySince=r)}),Pt(),Ot(13,"app-user-list",82),fn("onSelectionChanged",function(r){return Kn(e),$n(yt().selectedUsersForAddingChanged(r))}),Pt(),cn(14,G1n,1,1,"ng-template",null,83,Fs),Pt()()}if(2&t){const e=Ms(8),i=Ms(15),r=yt();pt(2),Tt("groupChatData",r.groupChatData),pt(1),Tt("text",r.scope.network.getResourceOrKeyName("web_chat_groupSettings_save_button")),pt(2),mr(r.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_currentMemberList_heading")),pt(1),Tt("users",r.currentMembers)("chatRoomId",null==r.chatRoom?null:r.chatRoom.id)("customControls",e)("searchExpr",Fx(15,j1n))("isNetworkWide",r.chatRoom.isNetworkWide),pt(4),mr(r.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_addChatMembers_heading")),pt(1),Tt("text",r.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_addChatMembers_addSelected_button")),pt(1),Tt("dataSource",r.historySinceOptions)("label",r.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_addChatMembers_historySince_selection"))("value",r.selectedHistorySince.valueNum)("selectedItem",r.selectedHistorySince),pt(1),Tt("customControls",i)}}class MD{constructor(n,e,i,r,o,a,s,l,u,f,S,T,R,L,z){this.auth=e,this.chatMessageService=i,this.chatRoomService=r,this.chatRoomCaccheService=o,this.badgeService=a,this.router=s,this.sanitizer=l,this.messagesCache=u,this.chatMembersService=f,this.propertyConverter=S,this.http=T,this.route=R,this.keepAliveService=L,this.locale=z,this.subscriptions=[],this.roomId=null,this.isMobile=!0,this.toggleParent=new qi,this.chatRoom=null,this.currentMembers=[],this.currentMembersFiltered=[],this.currentMembersLoading=!0,this.currentMembersError=!1,this.processingScrollTop=!1,this.initializedChatRoom=!1,this.previousScrollState=JM.NotScrolled,this.currentScrollState=JM.NotScrolled,this.scrollOffset=0,this.scrollHeight=0,this.showScrollDown=!1,this.displayScrollBottom=!1,this.preventScroll=!1,this.authData=null,this.selectionChangedRaised=!1,this.isAndroid=!1,this.pdfViewerVisible=!1,this.isOpen=!1,this.formatDate=Ay,this.isImageAttachment=ule,this.isPDFAttachment=dle,this.bigImagePopupUrl=[],this.messageOptionPositions={at:"at",my:"my"},this.selectedUsersForAdding=[],this.groupChatData={name:"",description:"",isNetworkWide:!1,type:"Members",readOnly:!1,users:[]},this.initTime=new Date,this.windowWidth=720,this.commands=[{text:"Reply",onClick:()=>{this.replySelected()},stylingMode:"contained",disabled:!0},{text:"Edit",onClick:()=>{this.editSelected()},stylingMode:"contained",disabled:!0},{text:"Delete",onClick:()=>{this.deleteSelected()},stylingMode:"contained",type:"danger",icon:"fas fa-trash",disabled:!0}],this.actionSheetVisible=!1,this.actionSheetTarget="",this.chatRoomCommands=[],this.messageCount=0,this.showHideChat=()=>"Private"===this.chatRoom?.type,this.showLeaveChat=()=>"Private"!==this.chatRoom?.type,this.showDeleteGroupChat=()=>(this.chatRoom?.userHasAdminPrivileges&&"Private"!==this.chatRoom?.type)??!1,this.isDarkMessageBackground=Y=>"DARK"===F0(`message-container-content-message-${Y?.toString()}`),this.isDarkDateBackground=Y=>"DARK"===F0(`date-separator-p-${Y?.toString()}`),this.viewerConfig={btnContainerClass:"btn-container",btnClass:"default",btnSubClass:"material-icons",zoomFactor:.1,containerBackgroundColor:"#ccc",wheelZoom:!0,allowFullscreen:!0,allowKeyboardNavigation:!0,btnShow:{zoomIn:!0,zoomOut:!0,rotateClockwise:!0,rotateCounterClockwise:!0,next:!0,prev:!0,reset:!0},btnIcons:{zoomIn:{classes:"fa fa-plus",text:""},zoomOut:{classes:"fa fa-minus",text:""},rotateClockwise:{classes:"fa fa-repeat",text:""},rotateCounterClockwise:{classes:"fa fa-undo",text:""},next:{classes:"fa fa-arrow-right",text:""},prev:{classes:"fa fa-arrow-left",text:""},fullscreen:{classes:"fa fa-arrows-alt",text:""},reset:{classes:"fa fa-undo",text:""}}},this.isGroupChat=()=>"Private"!==this.chatRoom?.type,this.initialRoomId=this.route.snapshot.params.id,this.scope=n.getScope(),this.userClientInfo=n.getUserClientInfo(),this.isAndroid=this.userClientInfo.appPlatform===vy.Android,this.auth.getTokenData().then(Y=>{this.authData=Y,this.headers={Authorization:"Bearer "+this.authData?.token}}),this.initialRoomId&&(this.roomId=this.initialRoomId,this.renewDataSource().then(Y=>{null!=this.roomId&&this.messagesCache.updateStore(new Ni(this.roomId),this.initTime,0)}),this.loadCurrentMembers()),this.uploadUrl=this.scope.globalSettings.configurations.chatServerConfig.fileServerUrl+"FileUpload/chatroomthumbnails";let j=new Date;j.setHours(0),j.setMinutes(0),j.setSeconds(0),j.setMilliseconds(0),this.historySinceOptions=[new cte(new Date,this.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_addChatMembers_historySince_none")),new cte(j,this.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_addChatMembers_historySince_today")),new cte(new Date(0),this.scope.network.getResourceOrKeyName("web_chat_groupSettings_users_addChatMembers_historySince_all"))],this.selectedHistorySince=this.historySinceOptions[0],this.subscriptions.push(this.chatRoomCaccheService.cacheUpdated$.subscribe(Y=>{null==this.chatRoom&&this.renewDataSource()}),this.messagesCache.cacheUpdated$.subscribe(Y=>{Y==this.roomId?.toString()&&(this.preventScroll=!1,this.renewDataSource())}),this.messagesCache.storePush$.subscribe(Y=>{Y==this.roomId?.toString()&&(this.preventScroll=!1,setTimeout(()=>{let ie=this.datagrid?.getScrollable();ie?.scrollTo(ie.scrollHeight())},225))}),this.keepAliveService.isResumed$.subscribe(Y=>{Y&&this.renewDataSource().then(ie=>{null!=this.roomId&&this.messagesCache.updateStore(new Ni(this.roomId),this.initTime,0)})}),this.auth.isAuthenticated$.subscribe(Y=>{Y&&(this.authData=Y,this.headers={Authorization:"Bearer "+this.authData.token})})),this.route.params.toPromise().then(Y=>{Y.id&&(this.roomId=Y.id,this.renewDataSource().then(ie=>{null!=this.roomId&&this.messagesCache.updateStore(new Ni(this.roomId),this.initTime,0)}))})}ngOnInit(){no({floatingActionButtonConfig:{icon:"rowfield"}}),function ZCn(){if(qo){var t=qo._getVisibleActions(),n=1===t.length?t[0].option("icon"):qo._getDefaultOptions().icon,e=1===t.length?t[0].option("label"):qo._getDefaultOptions().label;qo.option({actions:qo.option("actions"),icon:n,closeIcon:qo._getDefaultOptions().closeIcon,position:qo._getPosition(),label:e,maxSpeedDialActionCount:qo._getDefaultOptions().maxSpeedDialActionCount,direction:qo._getDefaultOptions().direction})}}(),this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<Kf,this.actionSheetVisible=!1,this.buildChatroomCommands()}buildChatroomCommands(){this.chatRoomCommands=[],this.chatRoomCommands.push({text:this.scope.network.getResourceOrKeyName(this.chatRoom?.isMuted?"web_chat_chatHistory_settings_unmute":"web_chat_chatHistory_settings_mute"),onClick:()=>{this.toggleMute()},stylingMode:"contained",type:"success",icon:this.chatRoom?.isMuted?"fas fa-bell":"fas fa-bell-slash",disabled:!1}),this.showHideChat()&&this.chatRoomCommands.push({text:this.scope.network.getResourceOrKeyName("web_chat_chatHistory_settings_hide"),onClick:()=>{this.hideChat()},stylingMode:"contained",type:"default",icon:"fas fa-eye-slash",disabled:!1}),this.showLeaveChat()&&this.chatRoomCommands.push({text:this.scope.network.getResourceOrKeyName("web_chat_chatHistory_settings_leave"),onClick:()=>{this.leaveChat()},stylingMode:"contained",type:"default",icon:"fas fa-running",disabled:!1}),this.showDeleteGroupChat()&&this.chatRoomCommands.push({text:this.scope.network.getResourceOrKeyName("web_chat_chatHistory_settings_delete"),onClick:()=>{this.deleteChat()},stylingMode:"contained",type:"danger",icon:"fas fa-trash",disabled:!1})}ngOnDestroy(){null!=this.chatRoom&&this.badgeService.updateLastVisit(this.chatRoom?.myMembershipId),this.subscriptions?.forEach(n=>n.unsubscribe())}onSelectionChanged(n){var e=this;return Rt(function*(){var r;e.selectedMessage=n.selectedRowsData[0],e.selectionChangedRaised=!0,e.commands=[],(e.isImageAttachment(e.selectedMessage?.replyTo?.chatMessageAttachments[0])||e.isImageAttachment(e.selectedMessage?.chatMessageAttachments[0]))&&(e.selectedMessage?.replyTo?.chatMessageAttachments[0]?.blobId&&e.commands.push({text:e.scope.network.getResourceOrKeyName("web_chat_message_view_image"),onClick:(r=Rt(function*(){e.setBigImagePopup((yield e.getAttachmentUrl(e.selectedMessage.replyTo.chatMessageAttachments[0])).fileUrl),e.unselect()}),function(){return r.apply(this,arguments)}),stylingMode:"contained",type:"success",disabled:!1,icon:"fas fa-eye"}),e.selectedMessage?.chatMessageAttachments[0]?.blobId&&e.commands.push({text:e.scope.network.getResourceOrKeyName("web_chat_message_view_image"),onClick:function(){var r=Rt(function*(){e.setBigImagePopup((yield e.getAttachmentUrl(e.selectedMessage?.chatMessageAttachments[0])).fileUrl),e.unselect()});return function(){return r.apply(this,arguments)}}(),stylingMode:"contained",type:"success",disabled:!1,icon:"fas fa-eye"})),e.commands.push({text:e.scope.network.getResourceOrKeyName("web_chat_message_reply"),onClick:()=>{e.replySelected()},stylingMode:"contained",icon:"fas fa-reply",type:"success"}),e.isMessageFromLoggedInUser(e.selectedMessage)&&e.commands.push({text:e.scope.network.getResourceOrKeyName("web_chat_message_edit"),onClick:()=>{e.editSelected()},stylingMode:"contained",type:"success",icon:"fas fa-pen",disabled:!1}),e.selectedMessage&&(e.isMessageFromLoggedInUser(e.selectedMessage)||(e.chatRoom?.userHasAdminPrivileges??!1))&&e.commands.push({text:e.scope.network.getResourceOrKeyName("web_chat_message_delete"),onClick:()=>{e.deleteSelected()},stylingMode:"contained",type:"danger",icon:"fas fa-trash",disabled:!1}),e.actionSheetVisible=!!e.selectedMessage})()}onRowClick(n){if(!this.selectionChangedRaised){var e=n.component,i=e.getSelectedRowKeys();e.deselectRows(i),this.selectedMessage=null,this.actionSheetVisible=!1}this.selectionChangedRaised=!1,this.actionSheetTarget=n.rowElement}unselect(){var n=this.datagrid.getSelectedRowKeys();this.datagrid.deselectRows(n),this.selectedMessage=null,this.actionSheetVisible=!1}scrollToEnd(){this.preventScroll=!1;var n=this.datagrid?.getScrollable();setTimeout(function(){n?.scrollTo(n.scrollHeight())},0)}ngOnChanges(n){}onScroll(n){if(n.reachedTop&&!this.processingScrollTop&&this.initializedChatRoom&&n.component.scrollHeight()>n.component.clientHeight()){this.processingScrollTop=!0;const e=this.scrollOffset;setTimeout(()=>{this.preventScroll&&(e+n.component.clientHeight()>=Math.floor(this.scrollHeight)?n.component.scrollBy(this.scrollHeight):n.component.scrollBy(e),this.scrollHeight=n.component.scrollHeight(),this.processingScrollTop=!1,this.preventScroll=!1)})}this.scrollOffset=n.scrollOffset.top}scrolling(n){}renewDataSourceOdata(){if(null!=this.roomId){var n=this.messagesCache.getOdataStore(new Ni(this.roomId));this.dataSource=new fm({store:n,paginate:!1,reshapeOnPush:!0,onLoadingChanged:e=>{}})}return null==this.chatRoom&&null!=this.roomId?this.chatRoomCaccheService.getArrayStore().then(e=>e.load().then(i=>{this.chatRoom=i.firstOrDefault(r=>r.id.toString()==this.roomId),this.chatRoom&&this.badgeService?.updateLastVisit(this.chatRoom.myMembershipId).then(r=>{},r=>{console.log(r,this)}),"Private"!==this.chatRoom?.type&&(this.groupChatData={name:this.chatRoom?.name??"",description:this.chatRoom?.description??"",isNetworkWide:!1,type:this.chatRoom?.type??"Members",iconImageId:this.chatRoom?.imageUrl,readOnly:this.chatRoom?.readOnly??!1,users:[]})})):"Private"!==this.chatRoom?.type&&(this.groupChatData={name:this.chatRoom?.name??"",description:this.chatRoom?.description??"",isNetworkWide:!1,type:this.chatRoom?.type??"Members",iconImageId:this.chatRoom?.imageUrl,readOnly:this.chatRoom?.readOnly??!1,users:[]}),Promise.resolve(!0)}renewDataSource(){return null!=this.chatRoom&&this.badgeService.updateLastVisit(this.chatRoom?.myMembershipId),null!=this.roomId?this.messagesCache.getArrayStore(new Ni(this.roomId)).then(n=>(null==this.chatRoom&&null!=this.roomId?this.chatRoomCaccheService.getArrayStore().then(e=>e.load().then(i=>{this.messageCount=i.length,this.chatRoom=i.firstOrDefault(r=>r.id.toString()==this.roomId),this.buildChatroomCommands(),this.chatRoom&&this.badgeService?.updateLastVisit(this.chatRoom.myMembershipId).then(r=>{},r=>{console.log(r)}),"Private"!==this.chatRoom?.type&&(this.groupChatData={name:this.chatRoom?.name??"",description:this.chatRoom?.description??"",isNetworkWide:!1,type:this.chatRoom?.type??"Members",iconImageId:this.chatRoom?.imageUrl,readOnly:this.chatRoom?.readOnly??!1,users:[]})})):"Private"!==this.chatRoom?.type&&(this.groupChatData={name:this.chatRoom?.name??"",description:this.chatRoom?.description??"",isNetworkWide:!1,type:this.chatRoom?.type??"Members",iconImageId:this.chatRoom?.imageUrl,readOnly:this.chatRoom?.readOnly??!1,users:[]}),this.store=n,this.buildChatroomCommands(),new fm({store:n,paginate:!0,reshapeOnPush:!0,requireTotalCount:!0,pushAggregationTimeout:500,onLoadingChanged:e=>{this.messageCount=this.dataSource.totalCount()}}))).then(n=>(this.dataSource=n,Promise.resolve(!0))).then(n=>{this.auth.getTokenData().then(e=>{this.authData=e,this.headers={Authorization:"Bearer "+this.authData?.token}})}):Promise.resolve(!1)}onContentReady(n){if(!this.scrollerEvent){var e=n.component.getScrollable();this.scrollerEvent=e.on("scroll",i=>{i.reachedBottom&&(this.showScrollDown=!1),!i.reachedBottom&&!this.showScrollDown&&(this.showScrollDown=!0)})}this.preventScroll||(this.datagrid=n.component,setTimeout(()=>{var i=n.component.getScrollable();i?.scrollTo(i.scrollHeight())},0),setTimeout(()=>{this.preventScroll=!0},350))}onMessageListRowPrepared(n){"header"==n.rowType&&n.rowElement.css("display","none")}onMessageListToolbarPreparing(n){n.toolbarOptions.visible=!1}addMessageToGrid(){this.datagrid.addRow()}onMessageInserting(n){n.data.createdOn=new Date,n.data.chatRoomMemberId=this.chatRoom?.myMembershipId,n.data.id=new Ni;var e=this.onMessageSend(n.data.displayContent);n.data.author=e.author}reply(n,e){e.stopPropagation(),this.messageCreateComponent.setReplyMessage(n),this.hideMessageOptions()}replySelected(){this.messageCreateComponent.setReplyMessage(this.selectedMessage),this.unselect()}edit(n,e){this.messageCreateComponent.setEditMessage(n),this.hideMessageOptions()}editSelected(){this.messageCreateComponent.setEditMessage(this.selectedMessage),this.unselect()}deleteSelected(){MY(this.scope.network.getResourceOrKeyName("web_chat_message_confirm_delete_info"),this.scope.network.getResourceOrKeyName("web_chat_message_confirm_delete")).then(e=>{e&&this.store.remove(this.selectedMessage.id).then(i=>{this.unselect(),this.preventScroll=!1,this.dataSource.reload()}),this.unselect()})}delete(n,e){this.setDisplayStyleOfMessageOptionsContent(n,"none"),e.stopPropagation(),this.chatMessageService.deleteMessage(n).toPromise().then(i=>{this.hideMessageOptions()})}getAvatarUrl(n){let o=this.scope.globalSettings.blobStorageCdnUrl+"/avatar/";return null!=n?o=n.toString():o+="female.png",o}getAvatarUrlChatRoom(n){const r=this.scope.globalSettings.blobStorageCdnUrl+"/avatar";let o=r+"/";return null!=n?o=r+"/"+n?.toString():o+="female.png",o}getAttachmentUrl(n){const e=this.scope.globalSettings.blobStorageCdnUrl+"/avatar/female.png",i=this.scope.globalSettings.configurations.chatServerConfig.blobStoreUrl,r=this.chatRoom?.id+"/"+n.blobId,o=this.chatRoom?.id+"/t/"+n.blobId,a=this.authData?.fileTokens[this.chatRoom?.id.toString()??""];return a?{fileUrl:i+r+a,thumbnailUrl:i+o+a}:{fileUrl:e,thumbnailUrl:e}}getGroupImageUrl(n){const e=this.scope.globalSettings.blobStorageCdnUrl+"/avatar/female.png";if(""===n||null===n||!this.authData?.fileTokens.chatroomthumbnails)return this.getAvatarUrl(null);if("Private"===this.chatRoom?.type)return this.getAvatarUrl(this.chatRoom.imageUrl);const o=this.authData?.fileTokens.chatroomthumbnails;return o?this.scope.globalSettings.configurations.chatServerConfig.blobStoreUrl+"chatroomthumbnails/"+n+o:e}customize_message_text(n){return n}showDate(n,e,i,r){return r-1!==i&&0!==e.length&&n!==e}openChatRoomSettings(n){this.loadCurrentMembers(),this.chatRoomSettingsModal.visible=!0}loadCurrentMembers(){null!=this.chatRoom?.id&&fetch(`${this.scope.apiEndpoint}chatMembers/getForChatRoom(chatRoomId='${this.chatRoom?.id}')`).then(n=>n.json()).then(({value:n})=>{const i=n.map(r=>({...r.profile,isAdmin:r.isAdmin,historySince:r.historySince,chatMemberId:r.id})).sort(this.sortCurrentMembers);this.currentMembers=i,this.currentMembersFiltered=i}).catch(n=>{this.currentMembersError=!0}).finally(()=>this.currentMembersLoading=!1)}sortCurrentMembers(n,e){return n.isAdmin-e.isAdmin}hackPreventSelectionChange(n,e){setTimeout(()=>this.selectedUsersForAdding.push(e))}selectedUsersForAddingChanged(n){this.selectedUsersForAdding=n}promoteToAdmin(n){this.chatMembersService.promoteToAdmin(n).subscribe(()=>this.loadCurrentMembers())}revokeAdminPrivileges(n){this.chatMembersService.revokeAdminPrivileges(n).subscribe(()=>this.loadCurrentMembers())}removeMember(n){this.chatMembersService.delete(n).subscribe(()=>this.loadCurrentMembers())}updateChatRoom(){this.chatRoomService.put(this.chatRoom.id,{name:this.groupChatData.name,description:this.groupChatData.description,readOnly:this.groupChatData.readOnly,type:this.groupChatData.type}).subscribe(n=>{this.chatRoom.name=this.groupChatData.name,this.chatRoom.description=this.groupChatData.description,this.chatRoom.readOnly=this.groupChatData.readOnly,Q9({message:this.scope.network.getResourceOrKeyName("web_chat_groupSettings_save_success_notification"),position:{my:"top right",at:"top right"},maxWidth:"540px"},"success",3e3)})}addMembers(){this.selectedUsersForAdding.forEach(n=>this.chatMembersService.post({chatRoomId:this.chatRoom.id,userGuid:n.guid,isAdmin:n.isAdmin,historySince:this.selectedHistorySince.value}).subscribe(()=>{this.selectedUsersForAdding.splice(this.selectedUsersForAdding.indexOf(n),1),this.loadCurrentMembers()}))}toggleOpenSettings(){this.isOpen=!this.isOpen}hideChat(){this.chatRoom&&this.chatMembersService.hide(this.chatRoom.myMembershipId).toPromise().then(()=>{this.chatRoom=null,this.router.navigate(["chat/"])})}leaveChat(){this.chatRoom&&this.chatMembersService.delete(this.chatRoom.myMembershipId).toPromise().then(()=>{this.chatRoom=null,this.router.navigate(["chat/"])})}toggleMute(){this.chatRoom&&this.chatMembersService.toggleMute(this.chatRoom.myMembershipId).toPromise().then(()=>{this.chatRoom.isMuted=!this.chatRoom.isMuted,this.buildChatroomCommands()})}deleteChat(){this.chatRoom&&MY(this.scope.network.getResourceOrKeyName("web_chat_room_confirm_delete_info"),this.scope.network.getResourceOrKeyName("web_chat_room_confirm_delete")).then(e=>{e&&this.chatRoomService.delete(this.chatRoom.id).toPromise().then(()=>{this.chatRoom=null,this.router.navigate(["chat/"])})})}isMessageFromLoggedInUser(n){return n?.chatRoomMemberId?.toString()===this.chatRoom?.myMembershipId?.toString()}hasMessageGroupDate(n){const e=this.dataSource.items(),i=e.indexOf(n);if(i<1)return!0;const r=e[i-1].createdOn;var o=new Date(n.createdOn)??new Date;try{return!(o instanceof Date)||o.getDate()!=r.getDate()||o.getMonth()!=r.getMonth()||o.getFullYear()!=r.getFullYear()}catch{return!0}}isGroupedMessage(n){const e=this.dataSource.items(),i=e.indexOf(n);return!(i<1)&&this.isMessageDataWithinRange(n,e[i-1])}isFirstGroupedMessage(n){const e=this.dataSource.items(),i=e.indexOf(n);if(i<1)return!1;const r=i+1;return r!==e.length&&this.isMessageDataWithinRange(e[r],n)}isMessageDataWithinRange(n,e){const{createdOn:r}=n,{createdOn:o}=e,{author:{guid:a}}=n,{author:{guid:s}}=e,l=a.toString()===s.toString(),u=Math.floor((+r-+o)/1e3/60);return l&&r>o&&u<5&&u>=0}safeFormatDate(n,e){return n instanceof Date?Ay(n,e):Ay(new Date,e)}toggleMessageOptions(n){this.openMessageOptionsId=n}setDisplayStyleOfMessageOptionsContent(n,e){const i=document.getElementById(n.toString());i&&(i.style.display=e)}getAuthorName(n){return`${n?.firstName} ${n?.lastName}`}linkify(n){if(null===n)return"";let i=n.replace(/(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim,'<a href="$1" target="_blank">$1</a>');return i=i.replace(/(^|[^\/])(www\.[\S]+(\b|$))/gim,'$1<a href="http://$2" target="_blank">$2</a>'),i=i.replace(/(([a-zA-Z0-9_\-\.]+)@[a-zA-Z_]+?(?:\.[a-zA-Z]{2,6}))+/gim,'<a href="mailto:$1">$1</a>'),i}togglePdfViewer(){this.pdfViewerVisible=!this.pdfViewerVisible}isReplyContainerInDOM(){return!!document.getElementById("message-create-container-reply-container")}onFilesUploaded(n){n.component.reset()}onFileUploaded(n){const e=n.request.getResponseHeader("file-guid");if(e){if(!this.chatRoom?.imageUrl)return void this.updateChatImage(e);this.http.delete(`${this.scope.globalSettings.configurations.chatServerConfig.fileServerUrl}FileUpload/delete/chatroomthumbnails/${this.chatRoom?.imageUrl}`,{headers:this.headers}).subscribe(r=>{this.chatRoom.imageUrl="",this.updateChatImage(e)},r=>{console.log(r,this)})}}updateChatImage(n){this.chatRoomService.updateImage(this.chatRoom.id,n).subscribe(e=>{this.chatRoom.imageUrl=n})}onMessageSend(n){const e={guid:this.chatRoom?.myMembershipId??new Ni,gender:0,avatarImageUrl:"",coverImageUrl:"",avatarGuid:null,coverGuid:null,firstName:"",lastName:"",levelName:"",isJournalist:!1,about:"",numberOfSnips:0,numberOfAssets:0,numberOfMedia:0,numberOfFacts:0,numberOfQuestions:0,numberOfComments:0,additionalText:"",additionalTextContent:"",troll:null,freelance:!1};return{id:new Ni,replyTo:null,replyId:void 0,chatRoomMemberId:this.chatRoom?.myMembershipId??new Ni,author:e,displayContent:n,createdOn:new Date,modifiedOn:null,deletedOn:null,chatMessageStatus:"Created",chatMessageType:0,chatMessageAttachments:[]}}addMessage(n){const e=[{type:"insert",data:n,key:"",index:this.dataSource?.items()?.length??0}];this.dataSource.store().push(e)}showMessageOptions(n){return this.openMessageOptionsId==n}hideMessageOptions(){this.openMessageOptionsId=void 0}setBigImagePopup(n){this.bigImagePopupUrl=[n],setTimeout(()=>{this.unselect(),this.imageViewer.reset()},100)}showBigImagePopup(){return this.bigImagePopupUrl.length>0}hideBigImagePopup(){this.bigImagePopupUrl=[]}getMessageOptionsPosition(n,e){const i=this.isMessageFromLoggedInUser(e);switch(n){case this.messageOptionPositions.at:return this.isMobile?i?"left center":"center":i?"left center":"right center";case this.messageOptionPositions.my:return this.isMobile?i?"right center":"center":i?"right center":"left center";default:return"center"}}onResize(){this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<Kf}}MD.\u0275fac=function(n){return new(n||MD)($(bo),$(Eu),$(fg),$(hg),$(Dc),$(ag),$(ds),$(CF),$(dp),$(sC),$(fd),$(iu),$(V0),$(Qf),$(tp))},MD.\u0275cmp=je({type:MD,selectors:[["app-chat-list"]],viewQuery:function(n,e){if(1&n&&(nu(s1n,5),nu(l1n,5),nu(u1n,5),nu(d1n,5)),2&n){let i;yn(i=Cn())&&(e.messageCreateComponent=i.first),yn(i=Cn())&&(e.chatRoomSettingsModal=i.first),yn(i=Cn())&&(e.userAddList=i.first),yn(i=Cn())&&(e.imageViewer=i.first)}},hostBindings:function(n,e){1&n&&fn("resize",function(r){return e.onResize(r)},0,Rf)},features:[hi],decls:10,vars:14,consts:[[4,"ngIf"],["class","no-chat-selected-container",4,"ngIf","ngIfElse"],["chatHistory",""],["width","90vw","height","90vh",3,"showTitle","fullScreen","dragEnabled","hideOnOutsideClick","showCloseButton","visible","onHidden"],["at","center","my","center","of","document"],[3,"app",4,"dxTemplate","dxTemplateOf"],[3,"fullScreen","title","showCloseButton"],["chatRoomSettingsModal",""],[4,"dxTemplate","dxTemplateOf"],[1,"no-chat-selected-container"],["openChat",""],[1,"chat-container"],[1,"chat-user"],["listHeadingRow",""],[1,"chat-user-image"],[1,"chat-user-image-container"],["id","group-chat-icon-upload-control",1,"chat-avatar-container"],[1,"chat-avatar-image",3,"src"],["name","file","dialogTrigger","#group-chat-icon-upload-control","uploadMode","instantly",3,"visible","uploadUrl","chunkSize","uploadHeaders","allowedFileExtensions","multiple","labelText","onFilesUploaded","onUploaded",4,"ngIf"],[1,"chat-user-name"],[4,"ngIf","ngIfElse"],["clickableChatRoomName",""],[1,"chat-user-actions-container"],["icon","fas fa-angle-double-down",3,"visible","onClick"],["icon","fas fa-comment-dots","stylingMode","text",3,"visible","onClick"],["title","Choose action",3,"items","usePopover","showTitle","visible","target","visibleChange"],[3,"reply-container-height-offset",4,"ngIf"],["class","no-padding message-create-component",4,"ngIf"],["name","file","dialogTrigger","#group-chat-icon-upload-control","uploadMode","instantly",3,"visible","uploadUrl","chunkSize","uploadHeaders","allowedFileExtensions","multiple","labelText","onFilesUploaded","onUploaded"],[1,"cursor-pointer",3,"click"],[1,"main-grid-height-wrapper","empty-chat-component"],[1,"main-grid-height-wrapper"],["height","100%","noDataText","",3,"dataSource","showColumnHeaders","wordWrapEnabled","onRowPrepared","onToolbarPreparing","onContentReady","onRowClick","onSelectionChanged"],["dataField","displayContent","cellTemplate","item"],["mode","form",3,"newRowPosition","allowUpdating","allowAdding","allowDeleting"],["mode","virtual"],["mode","single"],[1,"no-padding","message-container"],["class","date-separator",3,"date-separator-dark",4,"ngIf"],[1,"message-container-content"],["class","message-container-content-avatar",4,"ngIf"],[1,"message-container-content-message"],["class","message-container-content-message-arrow",3,"message-container-content-message-arrow-my",4,"ngIf"],[1,"no-padding"],["class","message-container-content-message-author",4,"ngIf"],["chatMessage",""],[1,"message-container-content-message-time",3,"ngClass"],[1,"date-separator"],[1,"message-container-content-avatar"],[1,"chat-avatar-container"],["class","chat-avatar-image",3,"src",4,"ngIf"],[1,"message-container-content-message-arrow"],[1,"message-container-content-message-author"],[1,"message-container-content-message-text",3,"innerHtml","ngClass"],["class","message-container-content-message-attachment-image",3,"message-container-content-message-attachment-image-mobile",4,"ngIf","ngIfElse"],["fileAttachment",""],[1,"message-container-content-message-attachment-image"],[1,"message-container-content-message-attachment-image-frame",3,"click"],["download","","target","_blank",3,"href"],[1,"fas","fa-file","message-container-content-message-attachment-file"],["type","default","icon","fa fa-eye",3,"onClick"],["width","100%","height","100%","container",".chat-container",3,"showTitle","title","dragEnabled","hideOnOutsideClick","showCloseButton","visible","visibleChange"],["at","center","my","center"],["viewerFolder","../Content/pdfview",3,"pdfSrc"],["class","message-container-content-message-text message-container-content-message-text-reply",3,"message-container-content-message-my-text","message-container-content-message-my-reply",4,"ngIf"],[1,"message-container-content-message-text","message-container-content-message-text-reply"],[1,"message-container-content-message-text-reply-author"],["replyMessage",""],[1,"message-container-content-message-time","message-container-content-message-time-reply",3,"ngClass"],[1,"fas","fa-file","message-container-content-message-attachment-file","message-container-content-message-attachment-file-small"],[1,"message-container-content-message-text",3,"innerHtml"],[1,"no-padding","message-create-component"],[3,"chatRoom","isMobile","parentThis"],["messageCreateComponent",""],[3,"src","config"],["imageViewer",""],["width","100%","height","100%"],[3,"groupChatData","groupChatDataChange"],["type","default",3,"text","onClick"],["selectionMode","none",3,"users","chatRoomId","customControls","searchExpr","isNetworkWide"],["currentUserControls",""],["displayExpr","display","valueExpr","valueNum",3,"dataSource","label","value","selectedItem","selectedItemChange"],["selectionMode","all",3,"customControls","onSelectionChanged"],["addChatMemberControls",""],["class","user-controls-wrapper",4,"ngIf"],[1,"user-controls-wrapper"],["currentUserControlsMobileDisplay",""],["type","default",3,"icon","text","onClick"],["type","danger","icon","fas fa-trash-alt",3,"text","onClick"],[1,"current-userControls-mobileDisplay"],["type","default",1,"",3,"icon","text","onClick"],["type","danger","icon","fas fa-trash-alt",1,"",3,"text","onClick"],[1,"checkbox-empty-indeterminate",3,"text","value","valueChange","onValueChanged"]],template:function(n,e){if(1&n&&(cn(0,c1n,3,1,"div",0),cn(1,p1n,3,0,"div",1),cn(2,B1n,21,18,"ng-template",null,2,Fs),Ot(4,"dx-popup",3),fn("onHidden",function(){return e.hideBigImagePopup()}),li(5,"dxo-position",4),cn(6,N1n,3,4,"div",5),Pt(),Ot(7,"dx-popup",6,7),cn(9,K1n,16,16,"div",8),Pt()),2&n){const i=Ms(3);Tt("ngIf",null==e.chatRoom&&null!=e.roomId),pt(1),Tt("ngIf",!e.chatRoom)("ngIfElse",i),pt(3),Tt("showTitle",!0)("fullScreen",e.isMobile)("dragEnabled",!1)("hideOnOutsideClick",!0)("showCloseButton",!0)("visible",e.showBigImagePopup()),pt(2),Tt("dxTemplateOf","content"),pt(1),Tt("fullScreen",e.isMobile)("title",e.scope.network.getResourceOrKeyName("web_chat_groupSettings_edit_modalHeading"))("showCloseButton",!0),pt(2),Tt("dxTemplateOf","content")}},styles:["[_nghost-%COMP%]{--headerHeight: 101px;--chatUserHeaderHeight: 77px;--chatListHeaderHeight: 48px;--messageInputComponentHeight:calc(53px + 1rem);--windowHeight: calc(100vh - var(--headerHeight));--createMessageContainerHeight:6.6rem;--chatContainerHeight: calc(100vh - var(--headerHeight) - var(--messageInputComponentHeight) - 1rem);--attachmentFileIconSize: 5rem;--borderRadius: 5px;--scrollableWindowHeightWithoutHeader: calc(100vh - var(--chatListHeaderHeight) - var(--chatUserHeaderHeight) - var(--createMessageContainerHeight) - 1rem);--scrollableWindowHeight: calc(100vh - var(--headerHeight) - var(--chatUserHeaderHeight) - var(--createMessageContainerHeight) - 1rem);--desktopMessageWhiteSpace: 12rem;--desktopImageWhiteSpace: 35rem;--mobileMessageWhiteSpace: 5rem;--mobileImageWhiteSpace: 5rem}[_nghost-%COMP%]     .chat-container .dx-template-wrapper{white-space:normal}[_nghost-%COMP%]     .chat-container .dx-template-wrapper{border:none;overflow:visible}[_nghost-%COMP%]     .chat-container .dx-datagrid-header-panel{border:none}[_nghost-%COMP%]     .chat-container .dx-datagrid-rowsview .dx-selection>td.dx-cell-focus-disabled{background-color:#e5e5e5}[_nghost-%COMP%]     .chat-container .dx-datagrid .dx-row>td{padding:0 7px}[_nghost-%COMP%]     .chat-container .dx-datagrid .dx-row-lines>td{border:none}[_nghost-%COMP%]     .chat-container .dx-scrollable-container{background-color:#fbfbfb}[_nghost-%COMP%]     .chat-container .dx-button-mode-text.dx-state-focused, [_nghost-%COMP%]     .chat-container .dx-button-mode-text.dx-state-hover, [_nghost-%COMP%]     .chat-container .dx-button-mode-text.dx-state-active{background-color:unset}[_nghost-%COMP%]     .chat-container .fas{font-size:large;color:#6b6b6b}.chat-container[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%]{font-size:large;color:#6b6b6b}.chat-container[_ngcontent-%COMP%]   .message-reply-container[_ngcontent-%COMP%]{border:1px solid darkgray;padding:.5em}.chat-container[_ngcontent-%COMP%]   .main-grid-height-wrapper[_ngcontent-%COMP%]{height:calc(var(--scrollableWindowHeight))}.chat-container[_ngcontent-%COMP%]   .reply-container-height-offset[_ngcontent-%COMP%]   .dx-list[_ngcontent-%COMP%], .chat-container[_ngcontent-%COMP%]   .reply-container-height-offset[_ngcontent-%COMP%]   .main-grid-height-wrapper[_ngcontent-%COMP%]{height:calc(var(--scrollableWindowHeight) - var(--createMessageContainerHeight))}.chat-container[_ngcontent-%COMP%]   .chat-user[_ngcontent-%COMP%]{display:flex;align-items:center;border-bottom:1px solid rgb(229,229,229);padding:1rem 0px;height:var(--chatUserHeaderHeight);background-color:#f6f6f6}.chat-container[_ngcontent-%COMP%]   .chat-user-image[_ngcontent-%COMP%]{min-width:5rem;padding:0;margin:0;margin-left:1rem;display:flex;flex-grow:1;align-items:center}.chat-container[_ngcontent-%COMP%]   .chat-user-image-container[_ngcontent-%COMP%]{display:flex}.chat-container[_ngcontent-%COMP%]   .chat-user-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:5rem;height:5rem;border-radius:50%}.chat-container[_ngcontent-%COMP%]   .chat-user-name[_ngcontent-%COMP%]{align-items:center;margin-left:1rem;overflow-x:hidden}.chat-container[_ngcontent-%COMP%]   .chat-user-name[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:150%;font-weight:700;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.chat-container[_ngcontent-%COMP%]   .chat-user-actions-container[_ngcontent-%COMP%]{text-align:right;margin-right:1rem;display:flex}.chat-container[_ngcontent-%COMP%]   .chat-avatar-container[_ngcontent-%COMP%]{width:5rem;height:5rem;border-radius:50%}.chat-container[_ngcontent-%COMP%]   .chat-avatar-image[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover;border-radius:50%}.chat-container[_ngcontent-%COMP%]   .no-padding[_ngcontent-%COMP%]{padding:0}.chat-container[_ngcontent-%COMP%]   .flex-grow[_ngcontent-%COMP%]{flex-grow:1}.chat-container[_ngcontent-%COMP%]   .no-chat-selected-container[_ngcontent-%COMP%]{min-height:var(--windowHeight);max-height:var(--windowHeight);display:flex;align-items:center;justify-content:center}.chat-container[_ngcontent-%COMP%]   .date-separator[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{background-color:var(--color3-alpha30)}.chat-container[_ngcontent-%COMP%]   .user-controls-wrapper[_ngcontent-%COMP%]   .current-userControls-mobileDisplay[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-top:.5rem}.chat-container[_ngcontent-%COMP%]   .user-controls-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:.5rem}.chat-container[_ngcontent-%COMP%]   .message-container[_ngcontent-%COMP%]{margin:.25rem 1rem}.chat-container[_ngcontent-%COMP%]   .message-container-content[_ngcontent-%COMP%]{display:flex;margin:1rem 0px;margin-right:var(--desktopMessageWhiteSpace)}.chat-container[_ngcontent-%COMP%]   .message-container-content-grouped[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.chat-container[_ngcontent-%COMP%]   .message-container-content-grouped-first[_ngcontent-%COMP%]{margin-bottom:0}.chat-container[_ngcontent-%COMP%]   .message-container-content-my[_ngcontent-%COMP%]{margin-right:unset;margin-left:var(--desktopMessageWhiteSpace)}.chat-container[_ngcontent-%COMP%]   .message-container-content-mobile[_ngcontent-%COMP%]{margin-right:var(--mobileMessageWhiteSpace);margin-left:unset}.chat-container[_ngcontent-%COMP%]   .message-container-content-mobile-my[_ngcontent-%COMP%]{margin-right:unset;margin-left:var(--mobileMessageWhiteSpace);margin-right:1rem}.chat-container[_ngcontent-%COMP%]   .message-container-content-image[_ngcontent-%COMP%]{margin-right:var(--desktopImageWhiteSpace);margin-left:unset}.chat-container[_ngcontent-%COMP%]   .message-container-content-image-my[_ngcontent-%COMP%]{margin-right:unset;margin-left:var(--desktopImageWhiteSpace)}.chat-container[_ngcontent-%COMP%]   .message-container-content-image-mobile[_ngcontent-%COMP%]{margin-right:var(--mobileImageWhiteSpace);margin-left:unset}.chat-container[_ngcontent-%COMP%]   .message-container-content-image-mobile-my[_ngcontent-%COMP%]{margin-right:unset;margin-left:var(--mobileImageWhiteSpace)}.chat-container[_ngcontent-%COMP%]   .message-container-content-avatar[_ngcontent-%COMP%]{margin-right:2rem}.chat-container[_ngcontent-%COMP%]   .message-container-content-avatar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:50%;width:100%;height:100%;min-width:5rem;min-height:5rem;max-width:5rem;max-height:5rem}.chat-container[_ngcontent-%COMP%]   .message-container-content-message[_ngcontent-%COMP%]{padding:2rem;border-radius:var(--borderRadius);background-color:var(--color1-alpha30);width:100%;position:relative}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-arrow[_ngcontent-%COMP%]{border-top:1rem solid transparent;border-bottom:1rem solid transparent;border-right:1rem solid var(--color1-alpha30);position:absolute;left:-1rem;top:1.5rem}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-arrow-my[_ngcontent-%COMP%]{border-top:1rem solid transparent;border-bottom:1rem solid transparent;border-right:none;border-left:1rem solid rgba(210,210,210,.5);position:absolute;left:unset;right:-1rem;top:1.5rem}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-grow[_ngcontent-%COMP%]{flex-grow:1}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-author[_ngcontent-%COMP%]{font-family:var(--fontChat)}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-text[_ngcontent-%COMP%]{overflow:hidden;width:100%;font-family:var(--fontChat)}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-text-reply[_ngcontent-%COMP%]{border-left:.5rem solid rgba(210,210,210,.5);margin:2rem 0;padding-left:1rem;display:grid}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-text-reply[_ngcontent-%COMP%]     p, .chat-container[_ngcontent-%COMP%]   .message-container-content-message-text-reply[_ngcontent-%COMP%]     i, .chat-container[_ngcontent-%COMP%]   .message-container-content-message-text-reply[_ngcontent-%COMP%]     a{overflow:hidden;text-overflow:ellipsis}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-text-reply-author[_ngcontent-%COMP%]{font-family:var(--fontChat);margin-bottom:1rem}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-text[_ngcontent-%COMP%]     *{margin-bottom:0;word-break:break-word}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-time[_ngcontent-%COMP%]{margin-top:1rem;text-align:right;font-size:80%;margin-bottom:0;font-family:var(--fontChat)}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-time-reply[_ngcontent-%COMP%]{text-align:left}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-my[_ngcontent-%COMP%]{background-color:#d2d2d280}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-my-text[_ngcontent-%COMP%]     *{word-break:break-word}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-my-reply[_ngcontent-%COMP%]{border-left-color:var(--color1-alpha30)}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-my-time[_ngcontent-%COMP%]{font-family:var(--fontChat)}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-attachment-file[_ngcontent-%COMP%]{font-size:var(--attachmentFileIconSize);margin:2rem 0;cursor:pointer;width:100%;text-align:center}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-attachment-file-small[_ngcontent-%COMP%]{margin:0}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-attachment-image[_ngcontent-%COMP%], .chat-container[_ngcontent-%COMP%]   .message-container-content-message-attachment-image-mobile[_ngcontent-%COMP%]{width:100%}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-attachment-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:var(--borderRadius);width:100%;object-fit:cover}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-attachment-image-frame[_ngcontent-%COMP%]{border-radius:var(--borderRadius);background-repeat:no-repeat;background-size:cover;background-position:center center;width:100%;position:relative;height:220px}@media screen and (max-width: 601px){.chat-container[_ngcontent-%COMP%]   .message-container-content-message-attachment-image-frame[_ngcontent-%COMP%]{height:265px}}@media screen and (max-width: 376px){.chat-container[_ngcontent-%COMP%]   .message-container-content-message-attachment-image-frame[_ngcontent-%COMP%]{height:150px}}@media screen and (max-height: 600px) and (orientation: landscape){.chat-container[_ngcontent-%COMP%]   .message-container-content-message-attachment-image-frame[_ngcontent-%COMP%]{height:133px}}@media screen and (max-height: 480px) and (orientation: landscape){.chat-container[_ngcontent-%COMP%]   .message-container-content-message-attachment-image-frame[_ngcontent-%COMP%]{height:75px}}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-options[_ngcontent-%COMP%]{position:relative;flex-grow:1;padding:0;text-align:right}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-options[_ngcontent-%COMP%]   i.fa-ellipsis-h[_ngcontent-%COMP%], .chat-container[_ngcontent-%COMP%]   .message-container-content-message-options-my[_ngcontent-%COMP%]   i.fa-ellipsis-h[_ngcontent-%COMP%]{width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;margin-left:auto;margin-right:-.5rem;border-radius:var(--borderRadius)}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-options-content[_ngcontent-%COMP%]{font-family:var(--fontChat)}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-options-content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{padding:.5rem 1rem;text-decoration:none;display:flex;flex-direction:row;align-items:center;cursor:pointer;border-radius:1rem}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-options-content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;margin-left:.5rem;cursor:pointer}.chat-container[_ngcontent-%COMP%]   .message-container-content-message-options-content[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:#d3d3d3}.chat-container[_ngcontent-%COMP%]   .date-separator[_ngcontent-%COMP%]{display:flex;justify-content:center}.chat-container[_ngcontent-%COMP%]   .date-separator[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{padding:1rem;border-radius:var(--borderRadius);margin:1rem 0px}.chat-container[_ngcontent-%COMP%]   #wrapper[_ngcontent-%COMP%]{overflow:hidden;transition:max-height .3s}.chat-container[_ngcontent-%COMP%]   #wrapper.open[_ngcontent-%COMP%]{max-height:100px}.chat-container[_ngcontent-%COMP%]   .settingButtons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:50%;box-shadow:0 8px 16px #0003,0 6px 20px #00000030}.chat-container[_ngcontent-%COMP%]   .settingButtons[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:.3rem}.chat-container[_ngcontent-%COMP%]   .popup-big-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:contain}.chat-container[_ngcontent-%COMP%]   .empty-chat-component[_ngcontent-%COMP%]{display:flex;align-items:center}.message-create-component[_ngcontent-%COMP%]{background-color:#f6f6f6;padding:0}@media (max-width: 991px){[_nghost-%COMP%]{--headerHeight: 0}.chat-container[_ngcontent-%COMP%]   .main-grid-height-wrapper[_ngcontent-%COMP%]{height:calc(var(--scrollableWindowHeightWithoutHeader))}.chat-container[_ngcontent-%COMP%]   .reply-container-height-offset[_ngcontent-%COMP%]   .main-grid-height-wrapper[_ngcontent-%COMP%]{height:calc(var(--scrollableWindowHeightWithoutHeader) - var(--createMessageContainerHeight))}}@media (prefers-color-scheme: dark){.app   [_nghost-%COMP%]     .message-create-component{background-color:#141414}.app   [_nghost-%COMP%]     .chat-container .dx-datagrid{background-color:#000;color:inherit}.app   [_nghost-%COMP%]     .chat-container .dx-datagrid-rowsview .dx-selection>td.dx-cell-focus-disabled{background-color:#333;border-top-color:#444;border-bottom-color:#444}.app   [_nghost-%COMP%]     .chat-container .dx-scrollable-container{background-color:#0a0a0a}.app   [_nghost-%COMP%]     .chat-container .message-create-component, .app   [_nghost-%COMP%]     .chat-container .chat-user{background-color:#141414}.app   [_nghost-%COMP%]     .chat-container .chat-user{border-bottom:unset}.app   [_nghost-%COMP%]     .chat-container .message-container-content-message{background-color:var(--color1-alpha30)}.app   [_nghost-%COMP%]     .chat-container .message-container-content-message-my{background-color:#191919}.app   [_nghost-%COMP%]     .chat-container .message-container-content-message-my-content{background-color:#000;box-shadow:0 .5rem 1rem #0003}.app   [_nghost-%COMP%]     .chat-container .message-container-content-message-my-content a{background-color:#000}.app   [_nghost-%COMP%]     .chat-container .message-container-content-message-my-content a:hover{background-color:#101010}.app   [_nghost-%COMP%]     .chat-container .message-container-content-message-arrow{border-right-color:var(--color1-alpha30)}.app   [_nghost-%COMP%]     .chat-container .message-container-content-message-arrow-my{border-left-color:#191919}}"]});class cte{get valueNum(){return this.value.getTime()}constructor(n,e){this.value=n,this.display=e}}var JM=(()=>(function(t){t[t.NotScrolled=0]="NotScrolled",t[t.Bottom=1]="Bottom",t[t.Scrolled=2]="Scrolled",t[t.Scrolling=3]="Scrolling"}(JM||(JM={})),JM))();class QM{constructor(n,e,i){this.scopeService=n,this.globalUserSettingsService=e,this.http=i,this.isDarkButtonBackground=()=>"DARK"===F0("save-settings-button"),this.chapter=this.scopeService.getScope().currentChapter.id,this.scope=this.scopeService.getScope(),this.globalUserSettingsService.getSettings().then(r=>{this.notification=r.notificationsDisabled,this.readStatus=r.readStatusDisabled},r=>console.log(r)),this.userClientInfo=n.getUserClientInfo()}ngOnInit(){}settingsSave(){this.globalUserSettingsService.saveSettings({notificationsDisabled:this.notification,readStatusDisabled:this.readStatus}).then(n=>{Q9(this.scopeService.getScope().network.getResourceOrKeyName("web_chat_settings_saved"),"success")},n=>{Q9(this.scopeService.getScope().network.getResourceOrKeyName("web_chat_settings_saved_error"),"error")})}}function q1n(t){return void 0===t}function Xh(t){return"boolean"==typeof t}function Ma(t,n){for(var e=t.length-1;e>=0;e--)t[e]===n&&t.splice(e,1)}function $b(t,n){for(var e=t.length-1;e>=0;e--)!0===n(t[e])&&t.splice(e,1)}function eA(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}QM.\u0275fac=function(n){return new(n||QM)($(bo),$(H0),$(iu))},QM.\u0275cmp=je({type:QM,selectors:[["app-my-chat-settings"]],decls:10,vars:8,consts:[[1,"settings"],[1,"settings-title","ph-2","mb-2"],[1,"mh-2"],["id","notification","type","checkbox","name","notification",3,"ngModel","ngModelChange"],["for","notification"],["type","default","id","save-settings-button",1,"mt-2","mb-4",2,"width","100%",3,"text","onClick"]],template:function(n,e){1&n&&(Ot(0,"div",0)(1,"div",1)(2,"h1"),xi(3),Pt()(),Ot(4,"div",2)(5,"form")(6,"input",3),fn("ngModelChange",function(r){return e.notification=r}),Pt(),Ot(7,"label",4),xi(8),Pt(),Ot(9,"dx-button",5),fn("onClick",function(){return e.settingsSave()}),Pt()()()()),2&n&&(Ur("app",e.userClientInfo.isApp),pt(3),mr(e.scope.network.getResourceOrKeyName("web_chat_settings_headline")),pt(3),Tt("ngModel",e.notification),pt(2),mr(e.scope.network.getResourceOrKeyName("web_chat_disable_notifications")),pt(1),Ur("save-settings-button-dark",e.isDarkButtonBackground()),Tt("text",e.scope.network.getResourceOrKeyName("web_common_save")))},dependencies:[ET,Ppe,HO,zO,Cpe,Sw,g2],styles:["[_nghost-%COMP%]{--chatHeaderHeight: 77px;--minHeight: calc(100vh - var(--chatHeaderHeight));display:block}[_nghost-%COMP%]     label, [_nghost-%COMP%]     span, [_nghost-%COMP%]     p, [_nghost-%COMP%]     i, [_nghost-%COMP%]     a{color:#000}.settings[_ngcontent-%COMP%]{min-height:var(--minHeight)}.settings-title[_ngcontent-%COMP%]{height:var(--chatUserHeaderHeight);display:flex;align-items:center;justify-content:space-between;background-color:#f6f6f6}#save-settings-button[_ngcontent-%COMP%]{background-color:var(--color1-alpha30);color:#000!important}.save-settings-button-dark[_ngcontent-%COMP%]{color:#fff!important}input[type=checkbox][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:before{color:var(--color1-alpha30)}@media (max-width: 991px){[_nghost-%COMP%]{--chatHeaderHeight: 48px}}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]     label, .app[_ngcontent-%COMP%]     p, .app[_ngcontent-%COMP%]     i, .app[_ngcontent-%COMP%]     a{color:#fff}.app[_ngcontent-%COMP%]   .settings[_ngcontent-%COMP%]{min-height:var(--minHeight)}.app[_ngcontent-%COMP%]   .settings-title[_ngcontent-%COMP%]{background-color:#141414}}"]});var AD=/[A-Za-z]/,Xu=/[\d]/,Up=/\s/,hte=/['"]/,X1n=/[\x00-\x1F\x7F]/,k7e=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,eSn=k7e+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,M7e=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,A7e=(new RegExp("[".concat(k7e+M7e,"]")),eSn+M7e),qb=new RegExp("[".concat(A7e,"]")),F7e=function(){function t(n){void 0===n&&(n={}),this.tagName="",this.attrs={},this.innerHTML="",this.tagName=n.tagName||"",this.attrs=n.attrs||{},this.innerHTML=n.innerHtml||n.innerHTML||""}return t.prototype.setTagName=function(n){return this.tagName=n,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(n,e){return this.getAttrs()[n]=e,this},t.prototype.getAttr=function(n){return this.getAttrs()[n]},t.prototype.setAttrs=function(n){return Object.assign(this.getAttrs(),n),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(n){return this.setAttr("class",n)},t.prototype.addClass=function(n){for(var o,e=this.getClass(),i=e?e.split(Up):[],r=n.split(Up);o=r.shift();)-1===i.indexOf(o)&&i.push(o);return this.getAttrs().class=i.join(" "),this},t.prototype.removeClass=function(n){for(var o,e=this.getClass(),i=e?e.split(Up):[],r=n.split(Up);i.length&&(o=r.shift());){var a=i.indexOf(o);-1!==a&&i.splice(a,1)}return this.getAttrs().class=i.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(n){return-1!==(" "+this.getClass()+" ").indexOf(" "+n+" ")},t.prototype.setInnerHTML=function(n){return this.innerHTML=n,this},t.prototype.setInnerHtml=function(n){return this.setInnerHTML(n)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var n=this.getTagName(),e=this.buildAttrsStr();return["<",n,e=e?" "+e:"",">",this.getInnerHtml(),"</",n,">"].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var n=this.getAttrs(),e=[];for(var i in n)n.hasOwnProperty(i)&&e.push(i+'="'+n[i]+'"');return e.join(" ")},t}(),rSn=function(){function t(n){void 0===n&&(n={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=n.newWindow||!1,this.truncate=n.truncate||{},this.className=n.className||""}return t.prototype.build=function(n){return new F7e({tagName:"a",attrs:this.createAttrs(n),innerHtml:this.processAnchorText(n.getAnchorText())})},t.prototype.createAttrs=function(n){var e={href:n.getAnchorHref()},i=this.createCssClass(n);return i&&(e.class=i),this.newWindow&&(e.target="_blank",e.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<n.getAnchorText().length&&(e.title=n.getAnchorHref()),e},t.prototype.createCssClass=function(n){var e=this.className;if(e){for(var i=[e],r=n.getCssClassSuffixes(),o=0,a=r.length;o<a;o++)i.push(e+"-"+r[o]);return i.join(" ")}return""},t.prototype.processAnchorText=function(n){return this.doTruncate(n)},t.prototype.doTruncate=function(n){var e=this.truncate;if(!e||!e.length)return n;var i=e.length,r=e.location;return"smart"===r?function tSn(t,n,e){var i,r;null==e?(e="&hellip;",r=3,i=8):(r=e.length,i=e.length);var a=function(ie){var te="";return ie.scheme&&ie.host&&(te+=ie.scheme+"://"),ie.host&&(te+=ie.host),ie.path&&(te+="/"+ie.path),ie.query&&(te+="?"+ie.query),ie.fragment&&(te+="#"+ie.fragment),te},s=function(ie,te){var re=te/2,he=Math.ceil(re),fe=-1*Math.floor(re),Te="";return fe<0&&(Te=ie.substr(fe)),ie.substr(0,he)+e+Te};if(t.length<=n)return t;var te,re,he,l=n-r,u=(te={},(he=(re=t).match(/^([a-z]+):\/\//i))&&(te.scheme=he[1],re=re.substr(he[0].length)),(he=re.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(te.host=he[1],re=re.substr(he[0].length)),(he=re.match(/^\/(.*?)(?=(\?|#|$))/i))&&(te.path=he[1],re=re.substr(he[0].length)),(he=re.match(/^\?(.*?)(?=(#|$))/i))&&(te.query=he[1],re=re.substr(he[0].length)),(he=re.match(/^#(.*?)$/i))&&(te.fragment=he[1]),te);if(u.query){var f=u.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);f&&(u.query=u.query.substr(0,f[1].length),t=a(u))}if(t.length<=n||(u.host&&(u.host=u.host.replace(/^www\./,""),t=a(u)),t.length<=n))return t;var S="";if(u.host&&(S+=u.host),S.length>=l)return u.host.length==n?(u.host.substr(0,n-r)+e).substr(0,l+i):s(S,l).substr(0,l+i);var T="";if(u.path&&(T+="/"+u.path),u.query&&(T+="?"+u.query),T){if((S+T).length>=l)return(S+T).length==n?(S+T).substr(0,n):(S+s(T,l-S.length)).substr(0,l+i);S+=T}if(u.fragment){var L="#"+u.fragment;if((S+L).length>=l)return(S+L).length==n?(S+L).substr(0,n):(S+s(L,l-S.length)).substr(0,l+i);S+=L}if(u.scheme&&u.host){var j=u.scheme+"://";if((S+j).length<l)return(j+S).substr(0,n)}if(S.length<=n)return S;var Y="";return l>0&&(Y=S.substr(-1*Math.floor(l/2))),(S.substr(0,Math.ceil(l/2))+e+Y).substr(0,l+i)}(n,i):"middle"===r?function nSn(t,n,e){if(t.length<=n)return t;var i,r;null==e?(e="&hellip;",i=8,r=3):(i=e.length,r=e.length);var o=n-r,a="";return o>0&&(a=t.substr(-1*Math.floor(o/2))),(t.substr(0,Math.ceil(o/2))+e+a).substr(0,o+i)}(n,i):function iSn(t,n,e){return function Z1n(t,n,e){var i;return t.length>n&&(null==e?(e="&hellip;",i=3):i=e.length,t=t.substring(0,n-i)+e),t}(t,n,e)}(n,i)},t}(),tA=function(){function t(n){this._=null,this.matchedText="",this.offset=0,this.tagBuilder=n.tagBuilder,this.matchedText=n.matchedText,this.offset=n.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(n){this.offset=n},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.type]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t}(),aSn=new RegExp("^(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|verm\xf6gensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|verm\xf6gensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|\u043a\u0430\u0442\u043e\u043b\u0438\u043a|\u0627\u062a\u0635\u0627\u0644\u0627\u062a|\u0627\u0644\u0628\u062d\u0631\u064a\u0646|\u0627\u0644\u062c\u0632\u0627\u0626\u0631|\u0627\u0644\u0639\u0644\u064a\u0627\u0646|\u067e\u0627\u06a9\u0633\u062a\u0627\u0646|\u0643\u0627\u062b\u0648\u0644\u064a\u0643|\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|\u043c\u043e\u0441\u043a\u0432\u0430|\u043e\u043d\u043b\u0430\u0439\u043d|\u0627\u0628\u0648\u0638\u0628\u064a|\u0627\u0631\u0627\u0645\u0643\u0648|\u0627\u0644\u0627\u0631\u062f\u0646|\u0627\u0644\u0645\u063a\u0631\u0628|\u0627\u0645\u0627\u0631\u0627\u062a|\u0641\u0644\u0633\u0637\u064a\u0646|\u0645\u0644\u064a\u0633\u064a\u0627|\u092d\u093e\u0930\u0924\u092e\u094d|\u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8|\u30d5\u30a1\u30c3\u30b7\u30e7\u30f3|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|\u05d9\u05e9\u05e8\u05d0\u05dc|\u0627\u06cc\u0631\u0627\u0646|\u0628\u0627\u0632\u0627\u0631|\u0628\u06be\u0627\u0631\u062a|\u0633\u0648\u062f\u0627\u0646|\u0633\u0648\u0631\u064a\u0629|\u0647\u0645\u0631\u0627\u0647|\u092d\u093e\u0930\u094b\u0924|\u0938\u0902\u0917\u0920\u0928|\u09ac\u09be\u0982\u09b2\u09be|\u0c2d\u0c3e\u0c30\u0c24\u0c4d|\u0d2d\u0d3e\u0d30\u0d24\u0d02|\u5609\u91cc\u5927\u9152\u5e97|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|\u0434\u0435\u0442\u0438|\u0441\u0430\u0439\u0442|\u0628\u0627\u0631\u062a|\u0628\u064a\u062a\u0643|\u0680\u0627\u0631\u062a|\u062a\u0648\u0646\u0633|\u0634\u0628\u0643\u0629|\u0639\u0631\u0627\u0642|\u0639\u0645\u0627\u0646|\u0645\u0648\u0642\u0639|\u092d\u093e\u0930\u0924|\u09ad\u09be\u09b0\u09a4|\u09ad\u09be\u09f0\u09a4|\u0a2d\u0a3e\u0a30\u0a24|\u0aad\u0abe\u0ab0\u0aa4|\u0b2d\u0b3e\u0b30\u0b24|\u0cad\u0cbe\u0cb0\u0ca4|\u0dbd\u0d82\u0d9a\u0dcf|\u30a2\u30de\u30be\u30f3|\u30b0\u30fc\u30b0\u30eb|\u30af\u30e9\u30a6\u30c9|\u30dd\u30a4\u30f3\u30c8|\u7ec4\u7ec7\u673a\u6784|\u96fb\u8a0a\u76c8\u79d1|\u9999\u683c\u91cc\u62c9|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|\u0431\u0435\u043b|\u043a\u043e\u043c|\u049b\u0430\u0437|\u043c\u043a\u0434|\u043c\u043e\u043d|\u043e\u0440\u0433|\u0440\u0443\u0441|\u0441\u0440\u0431|\u0443\u043a\u0440|\u0570\u0561\u0575|\u05e7\u05d5\u05dd|\u0639\u0631\u0628|\u0642\u0637\u0631|\u0643\u0648\u0645|\u0645\u0635\u0631|\u0915\u0949\u092e|\u0928\u0947\u091f|\u0e04\u0e2d\u0e21|\u0e44\u0e17\u0e22|\u0ea5\u0eb2\u0ea7|\u30b9\u30c8\u30a2|\u30bb\u30fc\u30eb|\u307f\u3093\u306a|\u4e2d\u6587\u7f51|\u4e9a\u9a6c\u900a|\u5929\u4e3b\u6559|\u6211\u7231\u4f60|\u65b0\u52a0\u5761|\u6de1\u9a6c\u9521|\u8bfa\u57fa\u4e9a|\u98de\u5229\u6d66|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|\u03b5\u03bb|\u03b5\u03c5|\u0431\u0433|\u0435\u044e|\u0440\u0444|\u10d2\u10d4|\ub2f7\ub137|\ub2f7\ucef4|\uc0bc\uc131|\ud55c\uad6d|\u30b3\u30e0|\u4e16\u754c|\u4e2d\u4fe1|\u4e2d\u56fd|\u4e2d\u570b|\u4f01\u4e1a|\u4f5b\u5c71|\u4fe1\u606f|\u5065\u5eb7|\u516b\u5366|\u516c\u53f8|\u516c\u76ca|\u53f0\u6e7e|\u53f0\u7063|\u5546\u57ce|\u5546\u5e97|\u5546\u6807|\u5609\u91cc|\u5728\u7ebf|\u5927\u62ff|\u5a31\u4e50|\u5bb6\u96fb|\u5e7f\u4e1c|\u5fae\u535a|\u6148\u5584|\u624b\u673a|\u62db\u8058|\u653f\u52a1|\u653f\u5e9c|\u65b0\u95fb|\u65f6\u5c1a|\u66f8\u7c4d|\u673a\u6784|\u6e38\u620f|\u6fb3\u9580|\u70b9\u770b|\u79fb\u52a8|\u7f51\u5740|\u7f51\u5e97|\u7f51\u7ad9|\u7f51\u7edc|\u8054\u901a|\u8c37\u6b4c|\u8d2d\u7269|\u901a\u8ca9|\u96c6\u56e2|\u98df\u54c1|\u9910\u5385|\u9999\u6e2f)$"),sSn=/[\/?#]/,lSn=/[-+&@#/%=~_()|'$*\[\]{}\u2713]/,P7e=/[?!:,.;^]/,R7e=/https?:\/\//i,uSn=new RegExp("^"+R7e.source,"i"),dSn=new RegExp(P7e.source+"$"),cSn=/^(javascript|vbscript):/i,hSn=/^[A-Za-z][-.+A-Za-z0-9]*:(\/\/)?([^:/]*)/,pSn=/^(?:\/\/)?([^/#?:]+)/;function pte(t){return AD.test(t)}function L7e(t){return AD.test(t)||Xu.test(t)||"+"===t||"-"===t||"."===t}function Zv(t){return qb.test(t)}function gte(t){return"_"===t||Zv(t)}function B7e(t){return qb.test(t)||lSn.test(t)||P7e.test(t)}function fte(t){return sSn.test(t)}function N7e(t){return aSn.test(t.toLowerCase())}var mSn=/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,_Sn=/[:/?#]/,ySn=/^(https?:\/\/)?(www\.)?/i,CSn=/^\/\//,bSn=function(t){function n(e){var i=t.call(this,e)||this;return i.type="url",i.url="",i.urlMatchType="scheme",i.protocolRelativeMatch=!1,i.stripPrefix={scheme:!0,www:!0},i.stripTrailingSlash=!0,i.decodePercentEncoding=!0,i.protocolPrepended=!1,i.urlMatchType=e.urlMatchType,i.url=e.url,i.protocolRelativeMatch=e.protocolRelativeMatch,i.stripPrefix=e.stripPrefix,i.stripTrailingSlash=e.stripTrailingSlash,i.decodePercentEncoding=e.decodePercentEncoding,i}return Pv(n,t),n.prototype.getType=function(){return"url"},n.prototype.getUrlMatchType=function(){return this.urlMatchType},n.prototype.getUrl=function(){var e=this.url;return!this.protocolRelativeMatch&&"scheme"!==this.urlMatchType&&!this.protocolPrepended&&(e=this.url="http://"+e,this.protocolPrepended=!0),e},n.prototype.getAnchorHref=function(){return this.getUrl().replace(/&amp;/g,"&")},n.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=function SSn(t){return t.replace(CSn,"")}(e)),this.stripPrefix.scheme&&(e=function xSn(t){return t.replace(uSn,"")}(e)),this.stripPrefix.www&&(e=function wSn(t){return t.replace(ySn,"$1")}(e)),this.stripTrailingSlash&&(e=function DSn(t){return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}(e)),this.decodePercentEncoding&&(e=function ESn(t){var n=t.replace(/%22/gi,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(n)}catch{return n}}(e)),e},n}(tA),OSn=/^mailto:/i,TSn=new RegExp("[".concat(A7e,"!#$%&'*+/=?^_`{|}~-]"));function mte(t){return TSn.test(t)}var MSn=function(t){function n(e){var i=t.call(this,e)||this;return i.type="email",i.email="",i.email=e.email,i}return Pv(n,t),n.prototype.getType=function(){return"email"},n.prototype.getEmail=function(){return this.email},n.prototype.getAnchorHref=function(){return"mailto:"+this.email},n.prototype.getAnchorText=function(){return this.email},n}(tA);function V7e(t){return"_"===t||qb.test(t)}var FSn=["twitter","facebook","instagram","tiktok"],PSn=function(t){function n(e){var i=t.call(this,e)||this;return i.type="hashtag",i.serviceName="twitter",i.hashtag="",i.serviceName=e.serviceName,i.hashtag=e.hashtag,i}return Pv(n,t),n.prototype.getType=function(){return"hashtag"},n.prototype.getServiceName=function(){return this.serviceName},n.prototype.getHashtag=function(){return this.hashtag},n.prototype.getAnchorHref=function(){var e=this.serviceName,i=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+i;case"facebook":return"https://www.facebook.com/hashtag/"+i;case"instagram":return"https://instagram.com/explore/tags/"+i;case"tiktok":return"https://www.tiktok.com/tag/"+i;default:throw eA(e),new Error("Invalid hashtag service: ".concat(e))}},n.prototype.getAnchorText=function(){return"#"+this.hashtag},n.prototype.getCssClassSuffixes=function(){var e=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&e.push(i),e},n}(tA),RSn={twitter:/^@\w{1,15}$/,instagram:/^@[_\w]{1,30}$/,soundcloud:/^@[-a-z0-9_]{3,25}$/,tiktok:/^@[.\w]{1,23}[\w]$/},LSn=/[-\w.]/;function H7e(t){return LSn.test(t)}var NSn=["twitter","instagram","soundcloud","tiktok"],VSn=function(t){function n(e){var i=t.call(this,e)||this;return i.type="mention",i.serviceName="twitter",i.mention="",i.mention=e.mention,i.serviceName=e.serviceName,i}return Pv(n,t),n.prototype.getType=function(){return"mention"},n.prototype.getMention=function(){return this.mention},n.prototype.getServiceName=function(){return this.serviceName},n.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},n.prototype.getAnchorText=function(){return"@"+this.mention},n.prototype.getCssClassSuffixes=function(){var e=t.prototype.getCssClassSuffixes.call(this),i=this.getServiceName();return i&&e.push(i),e},n}(tA),HSn=/[-. ]/,zSn=/[-. ()]/,USn=/[,;]/,jSn=new RegExp("^".concat(/(?:(?:(?:(\+)?\d{1,3}[-. ]?)?\(?\d{3}\)?[-. ]?\d{3}[-. ]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-. ]?(?:\d[-. ]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source,"$"));function z7e(t){return HSn.test(t)}function _te(t){return USn.test(t)}var $Sn=function(t){function n(e){var i=t.call(this,e)||this;return i.type="phone",i.number="",i.plusSign=!1,i.number=e.number,i.plusSign=e.plusSign,i}return Pv(n,t),n.prototype.getType=function(){return"phone"},n.prototype.getPhoneNumber=function(){return this.number},n.prototype.getNumber=function(){return this.getPhoneNumber()},n.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},n.prototype.getAnchorText=function(){return this.matchedText},n}(tA);var YSn=/[\(\{\[]/,U7e=/[\)\}\]]/,W7e={")":"(","}":"{","]":"["};function vte(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"scheme"}}function yte(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"tld"}}function Cte(t,n){return{type:"phone",startIdx:t,state:n,acceptStateReached:!1}}var Of=function t(n){void 0===n&&(n={}),this.idx=void 0!==n.idx?n.idx:-1,this.type=n.type||"tag",this.name=n.name||"",this.isOpening=!!n.isOpening,this.isClosing=!!n.isClosing},nDn=function(){function t(n){void 0===n&&(n={}),this.version=t.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.tagBuilder=null,this.urls=function rDn(t){return null==t&&(t=!0),Xh(t)?{schemeMatches:t,tldMatches:t,ipV4Matches:t}:{schemeMatches:!Xh(t.schemeMatches)||t.schemeMatches,tldMatches:!Xh(t.tldMatches)||t.tldMatches,ipV4Matches:!Xh(t.ipV4Matches)||t.ipV4Matches}}(n.urls),this.email=Xh(n.email)?n.email:this.email,this.phone=Xh(n.phone)?n.phone:this.phone,this.hashtag=n.hashtag||this.hashtag,this.mention=n.mention||this.mention,this.newWindow=Xh(n.newWindow)?n.newWindow:this.newWindow,this.stripPrefix=function oDn(t){return null==t&&(t=!0),Xh(t)?{scheme:t,www:t}:{scheme:!Xh(t.scheme)||t.scheme,www:!Xh(t.www)||t.www}}(n.stripPrefix),this.stripTrailingSlash=Xh(n.stripTrailingSlash)?n.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=Xh(n.decodePercentEncoding)?n.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=n.sanitizeHtml||!1;var e=this.mention;if(!1!==e&&-1===NSn.indexOf(e))throw new Error("invalid `mention` cfg '".concat(e,"' - see docs"));var i=this.hashtag;if(!1!==i&&-1===FSn.indexOf(i))throw new Error("invalid `hashtag` cfg '".concat(i,"' - see docs"));this.truncate=function aDn(t){return"number"==typeof t?{length:t,location:"end"}:function Y1n(t,n){for(var e in n)n.hasOwnProperty(e)&&q1n(t[e])&&(t[e]=n[e]);return t}(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})}(n.truncate),this.className=n.className||this.className,this.replaceFn=n.replaceFn||this.replaceFn,this.context=n.context||this}return t.link=function(n,e){return new t(e).link(n)},t.parse=function(n,e){return new t(e).parse(n)},t.prototype.parse=function(n){var e=this,i=["a","style","script"],r=0,o=[];return function tDn(t,n){for(var e=n.onOpenTag,i=n.onCloseTag,r=n.onText,o=n.onComment,a=n.onDoctype,s=new Of,l=0,u=t.length,f=0,S=0,T=s;l<u;){var R=t.charAt(l);switch(f){case 0:"<"===R&&bn();break;case 1:"!"===(Ve=R)?f=13:"/"===Ve?(f=2,T=new Of(Qo(Qo({},T),{isClosing:!0}))):"<"===Ve?bn():AD.test(Ve)?(f=3,T=new Of(Qo(Qo({},T),{isOpening:!0}))):(f=0,T=s);break;case 2:Y(R);break;case 3:j(R);break;case 4:ie(R);break;case 5:te(R);break;case 6:re(R);break;case 7:he(R);break;case 8:fe(R);break;case 9:Te(R);break;case 10:Re(R);break;case 11:He(R);break;case 12:Ze(R);break;case 13:"--"===t.substr(l,2)?(l+=2,T=new Of(Qo(Qo({},T),{type:"comment"})),f=14):"DOCTYPE"===t.substr(l,7).toUpperCase()?(l+=7,T=new Of(Qo(Qo({},T),{type:"doctype"})),f=20):hn();break;case 14:vt(R);break;case 15:Bt(R);break;case 16:St(R);break;case 17:ct(R);break;case 18:Nt(R);break;case 19:Kt(R);break;case 20:on(R);break;default:eA(f)}l++}var Ve;function j(Ve){Up.test(Ve)?(T=new Of(Qo(Qo({},T),{name:Ie()})),f=4):"<"===Ve?bn():"/"===Ve?(T=new Of(Qo(Qo({},T),{name:Ie()})),f=12):">"===Ve?(T=new Of(Qo(Qo({},T),{name:Ie()})),Qn()):!AD.test(Ve)&&!Xu.test(Ve)&&":"!==Ve&&hn()}function Y(Ve){">"===Ve?hn():AD.test(Ve)?f=3:hn()}function ie(Ve){Up.test(Ve)||("/"===Ve?f=12:">"===Ve?Qn():"<"===Ve?bn():"="===Ve||hte.test(Ve)||X1n.test(Ve)?hn():f=5)}function te(Ve){Up.test(Ve)?f=6:"/"===Ve?f=12:"="===Ve?f=7:">"===Ve?Qn():"<"===Ve?bn():hte.test(Ve)&&hn()}function re(Ve){Up.test(Ve)||("/"===Ve?f=12:"="===Ve?f=7:">"===Ve?Qn():"<"===Ve?bn():hte.test(Ve)?hn():f=5)}function he(Ve){Up.test(Ve)||('"'===Ve?f=8:"'"===Ve?f=9:/[>=`]/.test(Ve)?hn():"<"===Ve?bn():f=10)}function fe(Ve){'"'===Ve&&(f=11)}function Te(Ve){"'"===Ve&&(f=11)}function Re(Ve){Up.test(Ve)?f=4:">"===Ve?Qn():"<"===Ve&&bn()}function He(Ve){Up.test(Ve)?f=4:"/"===Ve?f=12:">"===Ve?Qn():"<"===Ve?bn():(f=4,function We(){l--}())}function Ze(Ve){">"===Ve?(T=new Of(Qo(Qo({},T),{isClosing:!0})),Qn()):f=4}function vt(Ve){"-"===Ve?f=15:">"===Ve?hn():f=16}function Bt(Ve){"-"===Ve?f=18:">"===Ve?hn():f=16}function St(Ve){"-"===Ve&&(f=17)}function ct(Ve){f="-"===Ve?18:16}function Nt(Ve){">"===Ve?Qn():"!"===Ve?f=19:"-"===Ve||(f=16)}function Kt(Ve){"-"===Ve?f=17:">"===Ve?Qn():f=16}function on(Ve){">"===Ve?Qn():"<"===Ve&&bn()}function hn(){f=0,T=s}function bn(){f=1,T=new Of({idx:l})}function Qn(){var Ve=t.slice(S,T.idx);Ve&&r(Ve,S),"comment"===T.type?o(T.idx):"doctype"===T.type?a(T.idx):(T.isOpening&&e(T.name,T.idx),T.isClosing&&i(T.name,T.idx)),hn(),S=l+1}function Ie(){return t.slice(T.idx+(T.isClosing?2:1),l).toLowerCase()}S<l&&function Xn(){var Ve=t.slice(S,l);r(Ve,S),S=l+1}()}(n,{onOpenTag:function(a){i.indexOf(a)>=0&&r++},onText:function(a,s){if(0===r){var u=a.split(/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi),f=s;u.forEach(function(S,T){if(T%2==0){var R=e.parseText(S,f);o.push.apply(o,R)}f+=S.length})}},onCloseTag:function(a){i.indexOf(a)>=0&&(r=Math.max(r-1,0))},onComment:function(a){},onDoctype:function(a){}}),o=this.compactMatches(o),o=this.removeUnwantedMatches(o)},t.prototype.compactMatches=function(n){n.sort(function(l,u){return l.getOffset()-u.getOffset()});for(var e=0;e<n.length-1;){var i=n[e],r=i.getOffset(),o=i.getMatchedText().length,a=r+o;if(e+1<n.length){if(n[e+1].getOffset()===r){var s=n[e+1].getMatchedText().length>o?e:e+1;n.splice(s,1);continue}if(n[e+1].getOffset()<a){n.splice(e+1,1);continue}}e++}return n},t.prototype.removeUnwantedMatches=function(n){return this.hashtag||$b(n,function(e){return"hashtag"===e.getType()}),this.email||$b(n,function(e){return"email"===e.getType()}),this.phone||$b(n,function(e){return"phone"===e.getType()}),this.mention||$b(n,function(e){return"mention"===e.getType()}),this.urls.schemeMatches||$b(n,function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()}),this.urls.tldMatches||$b(n,function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()}),this.urls.ipV4Matches||$b(n,function(e){return"url"===e.getType()&&"ipV4"===e.getUrlMatchType()}),n},t.prototype.parseText=function(n,e){void 0===e&&(e=0),e=e||0;for(var i=function qSn(t,n){for(var e=n.tagBuilder,i=n.stripPrefix,r=n.stripTrailingSlash,o=n.decodePercentEncoding,a=n.hashtagServiceName,s=n.mentionServiceName,l=[],u=t.length,f=[],S=0;S<u;S++){var T=t.charAt(S);if(0===f.length)j(T);else for(var R=f.length-1;R>=0;R--){var L=f[R];switch(L.state){case 11:zt=L,"/"===T?zt.state=12:Ma(f,zt);break;case 12:Te(L,T);break;case 0:Y(L,T);break;case 1:ie(L,T);break;case 2:te(L,T);break;case 3:re(L,T);break;case 4:he(L,T);break;case 5:Re(L,T);break;case 6:He(L,T);break;case 7:Ze(L,T);break;case 13:at(L,T);break;case 14:vt(L,T);break;case 8:Bt(L,T);break;case 9:St(L,T);break;case 10:ct(L,T);break;case 15:Nt(L,T);break;case 16:Kt(L,T);break;case 17:on(L,T);break;case 18:hn(L,T);break;case 19:bn(L,T);break;case 20:Qn(L,T);break;case 21:Xn(L,T);break;case 22:Ie(L,T);break;case 23:We(L,T);break;case 24:Ve(L,T);break;case 25:gt(L,T);break;case 26:Ct(L,T);break;case 27:Dt(L,T);break;case 28:wt(L,T);break;case 29:rn(L,T);break;case 30:mn(L,T);break;case 31:Vn(L,T);break;case 32:vi(L,T);break;case 33:Si(L,T);break;case 34:nr(L,T);break;case 35:lo(L,T);break;case 36:ci(L,T);break;case 37:Yn(L,T);break;case 38:Wi(L,T);break;case 39:Or(L,T);break;case 40:Yr(L,T);break;case 41:Ca(L,T);break;default:eA(L.state)}}}for(var zt,z=f.length-1;z>=0;z--)f.forEach(function(zt){return Mr(zt)});return l;function j(zt){if("#"===zt)f.push(function QSn(t,n){return{type:"hashtag",startIdx:t,state:n,acceptStateReached:!1}}(S,28));else if("@"===zt)f.push(function eDn(t,n){return{type:"mention",startIdx:t,state:n,acceptStateReached:!1}}(S,30));else if("/"===zt)f.push(yte(S,11));else if("+"===zt)f.push(Cte(S,37));else if("("===zt)f.push(Cte(S,32));else{if(Xu.test(zt)&&(f.push(Cte(S,38)),f.push(function XSn(t,n){return{type:"url",startIdx:t,state:n,acceptStateReached:!1,matchType:"ipV4",octetsEncountered:1}}(S,13))),function ISn(t){return qb.test(t)}(zt)){var un="m"===zt.toLowerCase()?15:22;f.push(function JSn(t,n){return{type:"email",startIdx:t,state:n,acceptStateReached:!1}}(S,un))}pte(zt)&&f.push(vte(S,0)),qb.test(zt)&&f.push(yte(S,5))}}function Y(zt,un){":"===un?zt.state=2:"-"===un?zt.state=1:L7e(un)||Ma(f,zt)}function ie(zt,un){"-"===un||("/"===un?(Ma(f,zt),f.push(yte(S,11))):L7e(un)?zt.state=0:Ma(f,zt))}function te(zt,un){"/"===un?zt.state=3:"."===un?Ma(f,zt):Zv(un)?(zt.state=5,pte(un)&&f.push(vte(S,0))):Ma(f,zt)}function re(zt,un){"/"===un?zt.state=4:B7e(un)?(zt.state=10,zt.acceptStateReached=!0):Mr(zt)}function he(zt,un){"/"===un?zt.state=10:Zv(un)?(zt.state=5,zt.acceptStateReached=!0):Ma(f,zt)}function Te(zt,un){Zv(un)?zt.state=5:Ma(f,zt)}function Re(zt,un){"."===un?zt.state=7:"-"===un?zt.state=6:":"===un?zt.state=8:fte(un)?zt.state=10:gte(un)||Mr(zt)}function He(zt,un){"-"===un||("."===un?Mr(zt):Zv(un)?zt.state=5:Mr(zt))}function Ze(zt,un){"."===un?Mr(zt):Zv(un)?(zt.state=5,zt.acceptStateReached=!0):Mr(zt)}function at(zt,un){"."===un?zt.state=14:":"===un?zt.state=8:Xu.test(un)||(fte(un)?zt.state=10:qb.test(un)?Ma(f,zt):Mr(zt))}function vt(zt,un){Xu.test(un)?(zt.octetsEncountered++,4===zt.octetsEncountered&&(zt.acceptStateReached=!0),zt.state=13):Mr(zt)}function Bt(zt,un){Xu.test(un)?zt.state=9:Mr(zt)}function St(zt,un){Xu.test(un)||(fte(un)?zt.state=10:Mr(zt))}function ct(zt,un){B7e(un)||Mr(zt)}function Nt(zt,un){"a"===un.toLowerCase()?zt.state=16:Ie(zt,un)}function Kt(zt,un){"i"===un.toLowerCase()?zt.state=17:Ie(zt,un)}function on(zt,un){"l"===un.toLowerCase()?zt.state=18:Ie(zt,un)}function hn(zt,un){"t"===un.toLowerCase()?zt.state=19:Ie(zt,un)}function bn(zt,un){"o"===un.toLowerCase()?zt.state=20:Ie(zt,un)}function Qn(zt,un){":"===un.toLowerCase()?zt.state=21:Ie(zt,un)}function Xn(zt,un){mte(un)?zt.state=22:Ma(f,zt)}function Ie(zt,un){"."===un?zt.state=23:"@"===un?zt.state=24:mte(un)?zt.state=22:Ma(f,zt)}function We(zt,un){"."===un||"@"===un?Ma(f,zt):mte(un)?zt.state=22:Ma(f,zt)}function Ve(zt,un){Zv(un)?zt.state=25:Ma(f,zt)}function gt(zt,un){"."===un?zt.state=27:"-"===un?zt.state=26:gte(un)||Mr(zt)}function Ct(zt,un){"-"===un||"."===un?Mr(zt):gte(un)?zt.state=25:Mr(zt)}function Dt(zt,un){"."===un||"-"===un?Mr(zt):Zv(un)?(zt.state=25,zt.acceptStateReached=!0):Mr(zt)}function wt(zt,un){V7e(un)?(zt.state=29,zt.acceptStateReached=!0):Ma(f,zt)}function rn(zt,un){V7e(un)||Mr(zt)}function mn(zt,un){H7e(un)?(zt.state=31,zt.acceptStateReached=!0):Ma(f,zt)}function Vn(zt,un){H7e(un)||(qb.test(un)?Ma(f,zt):Mr(zt))}function Yn(zt,un){Xu.test(un)?zt.state=38:(Ma(f,zt),j(un))}function vi(zt,un){Xu.test(un)?zt.state=33:Ma(f,zt),j(un)}function Si(zt,un){Xu.test(un)?zt.state=34:Ma(f,zt)}function nr(zt,un){Xu.test(un)?zt.state=35:Ma(f,zt)}function lo(zt,un){")"===un?zt.state=36:Ma(f,zt)}function ci(zt,un){Xu.test(un)?zt.state=38:z7e(un)?zt.state=39:Ma(f,zt)}function Wi(zt,un){zt.acceptStateReached=!0,_te(un)?zt.state=40:"#"===un?zt.state=41:Xu.test(un)||("("===un?zt.state=32:z7e(un)?zt.state=39:(Mr(zt),pte(un)&&f.push(vte(S,0))))}function Or(zt,un){Xu.test(un)?zt.state=38:"("===un?zt.state=32:(Mr(zt),j(un))}function Yr(zt,un){_te(un)||("#"===un?zt.state=41:Xu.test(un)?zt.state=38:Mr(zt))}function Ca(zt,un){_te(un)?zt.state=40:Xu.test(un)?Ma(f,zt):Mr(zt)}function Mr(zt){if(Ma(f,zt),zt.acceptStateReached){var un=zt.startIdx,Aa=t.slice(zt.startIdx,S);if(Aa=function ZSn(t){for(var n={"(":0,"{":0,"[":0},e=0;e<t.length;e++){var i=t.charAt(e);YSn.test(i)?n[i]++:U7e.test(i)&&n[W7e[i]]--}for(var o,r=t.length-1;r>=0;)if(o=t.charAt(r),U7e.test(o)){var a=W7e[o];if(!(n[a]<0))break;n[a]++,r--}else{if(!dSn.test(o))break;r--}return t.slice(0,r+1)}(Aa),"url"===zt.type){if("@"===t.charAt(zt.startIdx-1))return;var sA=zt.matchType;if("scheme"===sA){var bte=R7e.exec(Aa);if(bte&&(un+=bte.index,Aa=Aa.slice(bte.index)),!function gSn(t){if(cSn.test(t))return!1;var n=t.match(hSn);if(!n)return!1;var i=n[2];return!!n[1]||!(-1===i.indexOf(".")||!AD.test(i))}(Aa))return}else if("tld"===sA){if(!function fSn(t){var n=t.match(pSn);if(!n)return!1;var i=n[0].split(".");return!(i.length<2||!N7e(i[i.length-1]))}(Aa))return}else if("ipV4"===sA){if(!function vSn(t){var n=t.split(_Sn,1)[0];return mSn.test(n)}(Aa))return}else eA(sA);l.push(new bSn({tagBuilder:e,matchedText:Aa,offset:un,urlMatchType:sA,url:Aa,protocolRelativeMatch:"//"===Aa.slice(0,2),stripPrefix:i,stripTrailingSlash:r,decodePercentEncoding:o}))}else if("email"===zt.type)(function kSn(t){return N7e(t.split(".").pop()||"")})(Aa)&&l.push(new MSn({tagBuilder:e,matchedText:Aa,offset:un,email:Aa.replace(OSn,"")}));else if("hashtag"===zt.type)(function ASn(t){return t.length<=140})(Aa)&&l.push(new PSn({tagBuilder:e,matchedText:Aa,offset:un,serviceName:a,hashtag:Aa.slice(1)}));else if("mention"===zt.type)(function BSn(t,n){return RSn[n].test(t)})(Aa,s)&&l.push(new VSn({tagBuilder:e,matchedText:Aa,offset:un,serviceName:s,mention:Aa.slice(1)}));else if("phone"===zt.type){if(function KSn(t){return("+"===t.charAt(0)||zSn.test(t))&&jSn.test(t)}(Aa=Aa.replace(/ +$/g,""))){var COn=Aa.replace(/[^0-9,;#]/g,"");l.push(new $Sn({tagBuilder:e,matchedText:Aa,offset:un,number:COn,plusSign:"+"===Aa.charAt(0)}))}}else eA(zt)}}}(n,{tagBuilder:this.getTagBuilder(),stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding,hashtagServiceName:this.hashtag,mentionServiceName:this.mention||"twitter"}),r=0,o=i.length;r<o;r++)i[r].setOffset(e+i[r].getOffset());return i},t.prototype.link=function(n){if(!n)return"";this.sanitizeHtml&&(n=n.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var e=this.parse(n),i=[],r=0,o=0,a=e.length;o<a;o++){var s=e[o];i.push(n.substring(r,s.getOffset())),i.push(this.createMatchReturnVal(s)),r=s.getOffset()+s.getMatchedText().length}return i.push(n.substring(r)),i.join("")},t.prototype.createMatchReturnVal=function(n){var e;return this.replaceFn&&(e=this.replaceFn.call(this.context,n)),"string"==typeof e?e:!1===e?n.getMatchedText():e instanceof F7e?e.toAnchorString():n.buildTag().toAnchorString()},t.prototype.getTagBuilder=function(){var n=this.tagBuilder;return n||(n=this.tagBuilder=new rSn({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),n},t.version="4.0.0",t}();const sDn=nDn;let aV=(()=>{class t{transform(e,i){return sDn.link(e,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=bs({name:"linky",type:t,pure:!0}),t})(),lDn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({}),t})();function uDn(t,n){1&t&&(Ot(0,"div",5)(1,"span"),li(2,"a",6),Pt(),li(3,"span",7),Ot(4,"span"),li(5,"a",8),Pt()())}function dDn(t,n){if(1&t&&(Ot(0,"div",23),li(1,"img",24),Pt()),2&t){const e=yt(2);pt(1),Tt("src",e.scope.profile.avatarImageUrl+"?preset=profile-avatar",ad)}}function cDn(t,n){1&t&&(Ot(0,"div",25),li(1,"a",8),Pt())}function hDn(t,n){if(1&t&&(li(0,"div",36),Nf(1,"linky")),2&t){const e=yt().$implicit;Ur("chat-room-content-message-last-content-full",!yt(2).showNotificationBadge(e)),Tt("innerHTML",Vf(1,3,null==e||null==e.lastMessage?null:e.lastMessage.displayContent),qp)}}function pDn(t,n){if(1&t&&(Ot(0,"div",40),li(1,"i",41),xi(2),Pt()),2&t){const e=yt(4);pt(2),ca(" ",e.scope.network.getResourceOrKeyName("web_chat_overview_attachment_image")," ")}}function gDn(t,n){if(1&t&&(Ot(0,"div",40),li(1,"i",42),xi(2),Pt()),2&t){const e=yt(4);pt(2),ca(" ",e.scope.network.getResourceOrKeyName("web_chat_overview_attachment_file")," ")}}function fDn(t,n){if(1&t&&(Ot(0,"div",37),cn(1,pDn,3,1,"div",38),cn(2,gDn,3,1,"ng-template",null,39,Fs),Pt()),2&t){const e=Ms(3),i=yt().$implicit,r=yt(2);Ur("chat-room-content-message-last-content-full",!r.showNotificationBadge(i)),pt(1),Tt("ngIf",r.isImageAttachment(null==i||null==i.lastMessage?null:i.lastMessage.chatMessageAttachments[0]))("ngIfElse",e)}}function mDn(t,n){if(1&t&&(Ot(0,"div",43)(1,"span",44),xi(2),Pt()()),2&t){const e=yt().$implicit,i=yt(2);pt(2),ca(" ",i.prepareBadgeCount(e.id.toString())," ")}}const _Dn=function(t){return[t]};function vDn(t,n){if(1&t&&(Ot(0,"div",26)(1,"div",27),li(2,"img",24),Pt(),Ot(3,"div",28)(4,"div",29)(5,"p",30),xi(6),Pt(),Ot(7,"p",31),xi(8),Pt()(),Ot(9,"div",32),cn(10,hDn,2,5,"div",33),cn(11,fDn,4,4,"div",34),cn(12,mDn,3,1,"div",35),Pt()()()),2&t){const e=n.$implicit,i=yt(2);Ur("active-chat",i.initialRoomId===(null==e||null==e.id?null:e.id.valueOf())),Tt("routerLink",T0(9,_Dn,"room/"+(null==e.id?null:e.id.valueOf()))),pt(2),Tt("src",i.getGroupImageUrl(e),ad),pt(4),mr(e.name),pt(2),ca(" ",i.toLastMessageTimeString(null==e.lastMessage?null:e.lastMessage.createdOn)," "),pt(2),Tt("ngIf",!(null!=e&&null!=e.lastMessage&&e.lastMessage.chatMessageAttachments[0])),pt(1),Tt("ngIf",null==e||null==e.lastMessage?null:e.lastMessage.chatMessageAttachments[0]),pt(1),Tt("ngIf",i.showNotificationBadge(e))}}function yDn(t,n){if(1&t){const e=Gi();Ot(0,"div",9)(1,"div",10),cn(2,dDn,2,1,"div",11),cn(3,cDn,2,0,"div",12),Ot(4,"div",13)(5,"div",14),li(6,"i",15)(7,"div",16),Ot(8,"dx-text-box",17),fn("onValueChanged",function(r){return Kn(e),$n(yt().searchUpdate(r))}),Pt()(),li(9,"div",16)(10,"i",18)(11,"div",16)(12,"i",19),Pt()(),Ot(13,"div",20)(14,"dx-list",21),fn("onContentReady",function(r){return Kn(e),$n(yt().onContentReady(r))})("onInitialized",function(r){return Kn(e),$n(yt().saveGridInstance(r))}),cn(15,vDn,13,11,"div",22),Pt()()()}if(2&t){const e=yt();pt(2),Tt("ngIf",!e.isMobile),pt(1),Tt("ngIf",e.isMobile),pt(5),Tt("placeholder",e.scope.network.getResourceOrKeyName("web_chat_overview_search_placeholder")),pt(6),Tt("dataSource",e.chatRoomDataSource)("activeStateEnabled",!1)("focusStateEnabled",!1)("hoverStateEnabled",!1)("selectedItems",e.selectedChat),pt(1),Tt("dxTemplateOf","item")}}function CDn(t,n){1&t&&(Ot(0,"div",45),li(1,"router-outlet"),Pt())}class FD{constructor(n,e,i,r,o,a,s,l){this.scopeService=n,this.badgeService=e,this.router=i,this.route=r,this.auth=o,this.locale=a,this.keepAliveService=s,this.roomsCache=l,this.selectedChat=[],this.showList=!1,this.windowWidth=720,this.isMobile=!0,this.badges={},this.isImageAttachment=ule,this.isPDFAttachment=dle,this.subscriptions=[],this.position=0,this.isDarkActiveBackground=()=>"DARK"===F0("active-chat"),this.showNotificationBadge=u=>0!=this.getBadgeCount(u?.id.toString()),this.auth.getTokenData().then(u=>{this.authData=u}),this.initialRoomId=this.route.firstChild?.snapshot?.params.id,this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<Kf,this.scope=this.scopeService.getScope(),this.badges=this.badgeService.roomBadges,this.badgeService.badgeUpdates$.subscribe(u=>{this.badges=u.badges}),null==this.initialRoomId&&(this.showList="/chat"!==this.router.url),this.roomsCache.getArrayStore().then(u=>{this.store=u,null==this.chatRoomDataSource&&(this.chatRoomDataSource=new fm({store:this.store,reshapeOnPush:!0,paginate:!1,sort:[{selector:"lastMessage.createdOn",desc:!0}]}),this.chatRoomDataSource.paginate(!1),this.initialRoomId&&(this.chatRoomDataSource.paginate(!1),this.chatRoomDataSource.load().then(f=>{let S=f.firstOrDefault(R=>R?.id.toString()==this.initialRoomId);null!=S&&(this.selectedChat=[S]);for(var T=0;T<f.length;T++)f[T]?.id.toString()==this.selectedChat[0]?.id.toString()&&(this.position=T)})))},u=>{console.log("failed promise",u,this)}),this.subscriptions.push(this.keepAliveService.isResumed$.subscribe(u=>{u&&this.roomsCache.isCorrupted().then(f=>{f&&this.roomsCache.rebuildCacheAndGetArrayStore(this).then(S=>{this.store=S,this.chatRoomDataSource=new fm({store:this.store,reshapeOnPush:!0,sort:[{selector:"lastMessage.createdOn",desc:!0}]})})})}),this.roomsCache.cacheUpdated$.subscribe(u=>{this.roomsCache.getArrayStore().then(f=>{this.store=f,this.chatRoomDataSource=new fm({store:this.store,reshapeOnPush:!0,sort:[{selector:"lastMessage.createdOn",desc:!0}]})})})),this.userClientInfo=n.getUserClientInfo()}ngOnInit(){"/chat"!==this.router.url&&(this.showList=!0),this.initialRoomId=this.route.firstChild?.snapshot?.params.id}onContentReady(n){this.selectedChat[0]&&n.component.scrollToItem(this.position)}saveGridInstance(n){this.dxList=n.component}ngOnDestroy(){this.subscriptions.forEach(n=>n.unsubscribe())}searchUpdate(n){const e=n.value?.trim();this.chatRoomDataSource?.filter(e?.length?["name","contains",e]:null),this.chatRoomDataSource?.load()}toLastMessageTimeString(n){if(!n)return"";const e=new Date;if(n.getDate()===e.getDate()&&n.getMonth()===e.getMonth()&&n.getFullYear()===e.getFullYear())return Ay(n,"shortTime");if(e.getTime()-n.getTime()<6048e5&&n.getDay()!==e.getDay())return Ay(n,"EEE");{const i=n.getFullYear()!==e.getFullYear()?"shortDate":"monthAndDay";return Ay(n,i)}}getBadgeCount(n){return this.badges[n]?.count??0}prepareBadgeCount(n){const i=this.getBadgeCount(n);return i>99?"99+":`${i}`}handleSearchPressed(){console.log("search pressed")}goBack(){this.router.navigate(["/"])}toggleChatView(n){if(null!=n&&null==this.selectedChat){let e=this.chatRoomDataSource.items().firstOrDefault(i=>i?.id.toString()==n);this.selectedChat=e,this.showList=!this.showList}else this.showList=!this.showList}onResize(){this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<Kf}getGroupImageUrl(n){if(""===n.imageUrl||null===n.imageUrl)return this.scope.globalSettings.blobStorageCdnUrl+"/avatar/female.png";if("Private"===n.type)return n.imageUrl;const o=this.authData?.fileTokens.chatroomthumbnails;return o?this.scope.globalSettings.configurations.chatServerConfig.blobStoreUrl+"chatroomthumbnails/"+n.imageUrl+o:this.scope.globalSettings.blobStorageCdnUrl+"/avatar/female.png"}}function bDn(t,n){if(1&t&&(Ot(0,"div")(1,"p"),xi(2),Pt()()),2&t){const e=yt();pt(2),mr(e.scope.network.getResourceOrKeyName("web_chat_create_users_loading"))}}function xDn(t,n){1&t&&M6(0)}FD.\u0275fac=function(n){return new(n||FD)($(bo),$(ag),$(ds),$(V0),$(Eu),$(tp),$(Qf),$(Dc))},FD.\u0275cmp=je({type:FD,selectors:[["app-chat-overview"]],viewQuery:function(n,e){if(1&n&&nu(UE,5),2&n){let i;yn(i=Cn())&&(e.outlet=i.first)}},hostBindings:function(n,e){1&n&&fn("resize",function(r){return e.onResize(r)},0,Rf)},decls:5,vars:7,consts:[[1,"container","chat-overview",3,"resize"],[1,"row"],["class","app-small-header chat-list-header col-xs-12",4,"ngIf"],["class","col-md-4",4,"ngIf"],["class","col-md-8 chat-content",4,"ngIf"],[1,"app-small-header","chat-list-header","col-xs-12"],["routerLink","/chat/",1,"fas","fa-angle-left","app-header-icon"],[1,"spacer"],["routerLink","/",1,"fas","fa-home","app-header-icon"],[1,"col-md-4"],[1,"row","app-small-header"],["class","app-small-header-profile-image",4,"ngIf"],["class","app-small-header-back-icon",4,"ngIf"],[1,"app-small-header-actions"],[1,"app-small-header-actions-search"],[1,"fas","fa-search"],[1,"app-small-header-actions-spacer"],["stylingMode","underlined","valueChangeEvent","keyup",1,"app-small-header-actions-search-box",3,"placeholder","onValueChanged"],["routerLink","/chat/add",1,"fas","fa-plus"],["routerLink","/chat/preferences",1,"fas","fa-cog"],[1,"row","list-items"],["pageLoadMode","scrollBottom","selectionMode","single","noDataText","No data",3,"dataSource","activeStateEnabled","focusStateEnabled","hoverStateEnabled","selectedItems","onContentReady","onInitialized"],["class","chat-room",3,"routerLink","active-chat",4,"dxTemplate","dxTemplateOf"],[1,"app-small-header-profile-image"],[1,"profile-image",3,"src"],[1,"app-small-header-back-icon"],[1,"chat-room",3,"routerLink"],[1,"chat-room-icon"],[1,"chat-room-content"],[1,"chat-room-content-chat"],[1,"chat-room-content-chat-name"],[1,"chat-room-content-chat-time","text-right"],[1,"chat-room-content-message-last"],["class","chat-room-content-message-last-content",3,"chat-room-content-message-last-content-full","innerHTML",4,"ngIf"],["class","chat-room-content-message-last-content",3,"chat-room-content-message-last-content-full",4,"ngIf"],["class","chat-room-content-message-last-notification",4,"ngIf"],[1,"chat-room-content-message-last-content",3,"innerHTML"],[1,"chat-room-content-message-last-content"],["class","chat-room-content-message-last-content-attachment",4,"ngIf","ngIfElse"],["fileAttachment",""],[1,"chat-room-content-message-last-content-attachment"],[1,"fas","fa-image"],[1,"fas","fa-file"],[1,"chat-room-content-message-last-notification"],[1,"badge","root-navigation-btn-notificationBadge","chat-room-content-message-last-notification-badge"],[1,"col-md-8","chat-content"]],template:function(n,e){1&n&&(Ot(0,"div",0),fn("resize",function(){return e.onResize()},0,Rf),Ot(1,"div",1),cn(2,uDn,6,0,"div",2),cn(3,yDn,16,9,"div",3),cn(4,CDn,2,0,"div",4),Pt()()),2&n&&(Ur("app",e.userClientInfo.isApp)("chat-overview-mobile",e.isMobile),pt(2),Tt("ngIf",e.isMobile&&e.showList),pt(1),Tt("ngIf",!e.showList||!e.isMobile),pt(1),Tt("ngIf",e.isMobile&&e.showList||!e.isMobile))},dependencies:[Tl,UE,eP,Z2,nJ,W6e,aV],styles:["[_nghost-%COMP%]{--headerHeight: 101px;--windowHeight: calc(100vh - var(--headerHeight));--chatHeaderHeight: 77px;--chatUserHeaderHeight: 77px;--chatListHeaderHeight: 48px;--scrollableListItemsHeightWithoutHeader: calc(100vh - var(--chatHeaderHeight));--scrollableListItemsHeight: calc(var(--windowHeight) - var(--chatHeaderHeight));--scrollableChatContentHeight: calc(100vh - var(--headerHeight));--chatRoomIconMargin: 2rem;--listSeparatorMargin: calc(5rem + (var(--chatRoomIconMargin) * 2))}[_nghost-%COMP%]     .dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item.dx-list-item-selected{background-color:unset}[_nghost-%COMP%]     .list-items>.dx-scrollview-content{background-color:#fff}[_nghost-%COMP%]   .list-items[_ngcontent-%COMP%]     .dx-list-item{overflow:visible;margin-left:var(--listSeparatorMargin);border-color:#e5e5e5}[_nghost-%COMP%]   .list-items[_ngcontent-%COMP%]     .dx-list-item .chat-room{position:relative;left:calc(var(--listSeparatorMargin) * -1)}.chat-overview[_ngcontent-%COMP%]{border-left:rgb(229,229,229) 1px solid;border-right:rgb(229,229,229) 1px solid}.chat-overview-mobile[_ngcontent-%COMP%]{border:none;background-color:#f6f6f6}.chat-overview-default-background[_ngcontent-%COMP%]{background-color:#fff}.app[_ngcontent-%COMP%]   .chat-overview[_ngcontent-%COMP%]{border:none;background-color:#f6f6f6}.chat-overview[_ngcontent-%COMP%]   .app-small-header[_ngcontent-%COMP%]{height:var(--chatHeaderHeight);margin-bottom:0;background-color:#f6f6f6}.chat-overview[_ngcontent-%COMP%]   .app-small-header.chat-list-header[_ngcontent-%COMP%]{height:var(--chatListHeaderHeight)}.profile-image[_ngcontent-%COMP%]{width:5rem;height:5rem;border-radius:100%;object-fit:cover}.app-small-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding:1rem 2rem;align-items:center}.app-small-header[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%]{color:#6b6b6b;cursor:pointer;font-size:1.8rem}.app-small-header-profile-image[_ngcontent-%COMP%], .app-small-header-back-icon[_ngcontent-%COMP%]{margin-right:2rem}.app-small-header[_ngcontent-%COMP%]   .app-small-header-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex:1}.app-small-header[_ngcontent-%COMP%]   .app-small-header-actions-spacer[_ngcontent-%COMP%]{width:1rem}.app-small-header[_ngcontent-%COMP%]   .app-small-header-actions[_ngcontent-%COMP%]   .fas.search[_ngcontent-%COMP%]{color:#b4b4b4}.app-small-header[_ngcontent-%COMP%]   .app-small-header-actions-search[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;width:100%;background-color:#fff;border-radius:1rem;padding:0 1rem}.app-small-header[_ngcontent-%COMP%]   .app-small-header-actions-search-box[_ngcontent-%COMP%]{width:100%;border-bottom:unset}.spacer[_ngcontent-%COMP%]{width:50px;display:inline-block}.chat-avatar-image[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover;border-radius:50%}.list-items[_ngcontent-%COMP%]{height:var(--scrollableListItemsHeight);overflow:hidden}.list-items[_ngcontent-%COMP%]   .chat-room[_ngcontent-%COMP%]{display:flex;flex-direction:row;padding-left:var(--chatRoomIconMargin)}.list-items[_ngcontent-%COMP%]   .chat-room-icon[_ngcontent-%COMP%]{margin-right:var(--chatRoomIconMargin)}.list-items[_ngcontent-%COMP%]   .chat-room-content[_ngcontent-%COMP%]{width:100%;max-height:65px;overflow:hidden}.list-items[_ngcontent-%COMP%]   .chat-room-content-chat[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.list-items[_ngcontent-%COMP%]   .chat-room-content-chat-name[_ngcontent-%COMP%]{font-family:var(--fontChat);font-weight:700;overflow:hidden;text-overflow:ellipsis}.list-items[_ngcontent-%COMP%]   .chat-room-content-chat-time[_ngcontent-%COMP%]{font-family:var(--fontChat)}.list-items[_ngcontent-%COMP%]   .chat-room-content-message-last[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;overflow:hidden;text-overflow:ellipsis}.list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content[_ngcontent-%COMP%]{width:80%}.list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content-attachment[_ngcontent-%COMP%]{display:flex;align-items:center}.list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content-attachment[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%]{padding-right:.5rem}.list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content[_ngcontent-%COMP%]     p, .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content[_ngcontent-%COMP%]     i, .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content[_ngcontent-%COMP%]     a, .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content[_ngcontent-%COMP%]     span{overflow:hidden;text-overflow:ellipsis;color:#000;margin:unset}.list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content[_ngcontent-%COMP%]     br{display:none}.list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content-full[_ngcontent-%COMP%]{width:100%}.list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-notification-badge[_ngcontent-%COMP%]{margin:unset;min-width:unset}.list-items[_ngcontent-%COMP%]   .chat-room-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#000}.list-items[_ngcontent-%COMP%]   .chat-room.active-chat[_ngcontent-%COMP%]{padding-left:calc(var(--chatRoomIconMargin) / 2);border-left:calc(var(--chatRoomIconMargin) / 2) solid var(--color1-alpha30);background-color:#f6f6f6}.list-items[_ngcontent-%COMP%]   .chat-room[_ngcontent-%COMP%]:hover{background-color:#f6f6f6}.chat-content[_ngcontent-%COMP%]{border-left:1px solid rgb(229,229,229);margin-top:0;background-color:#fbfbfb;height:var(--scrollableChatContentHeight);overflow:hidden;overflow-y:auto;padding:unset}.chat-content-default-background[_ngcontent-%COMP%]{background-color:#fff}@media (max-width: 991px){.list-items[_ngcontent-%COMP%]{height:var(--scrollableListItemsHeightWithoutHeader)}[_nghost-%COMP%]{--headerHeight: 0}.chat-content[_ngcontent-%COMP%]{margin-top:50px;border-left:none}}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]   .chat-overview[_ngcontent-%COMP%], .app[_ngcontent-%COMP%]   .chat-content[_ngcontent-%COMP%]{background-color:#141414}.app[_ngcontent-%COMP%]   .chat-overview-default-background[_ngcontent-%COMP%]{background-color:#000}.app[_ngcontent-%COMP%]   .chat-content[_ngcontent-%COMP%]{border-left:none}.app[_ngcontent-%COMP%]   .chat-content-default-background[_ngcontent-%COMP%]{background-color:#000}.app   [_nghost-%COMP%]     .chat-overview{background-color:#141414}.app   [_nghost-%COMP%]     .chat-overview .app-small-header{border-bottom-color:#333;background-color:#141414}.app   [_nghost-%COMP%]     .list-items>.dx-scrollview-content{background-color:#000}.app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]     .dx-list-item{border-color:#1d1d1d}.app[_ngcontent-%COMP%]   .app-small-header[_ngcontent-%COMP%]   .app-small-header-actions-search[_ngcontent-%COMP%]{background-color:var(--black-60)}.app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content[_ngcontent-%COMP%]     p, .app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content[_ngcontent-%COMP%]     i, .app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content[_ngcontent-%COMP%]     a, .app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-content[_ngcontent-%COMP%]     span, .app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-notification[_ngcontent-%COMP%]     p, .app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-notification[_ngcontent-%COMP%]     i, .app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-notification[_ngcontent-%COMP%]     a, .app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]   .chat-room-content-message-last-notification[_ngcontent-%COMP%]     span{color:#fff!important}.app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]   .chat-room-content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#fff!important}.app[_ngcontent-%COMP%]   .list-items[_ngcontent-%COMP%]   .chat-room[_ngcontent-%COMP%]:hover{background-color:#141414}}"]});const wDn=function(t,n){return{user:t,selected:n}};function SDn(t,n){if(1&t&&(El(0),cn(1,xDn,1,0,"ng-container",14),Ol()),2&t){const e=yt().$implicit,i=yt(3);pt(1),Tt("ngTemplateOutlet",i.customControls)("ngTemplateOutletContext",Noe(2,wDn,e,i.isUserSelected(e)))}}function DDn(t,n){if(1&t&&(Ot(0,"div",9)(1,"div")(2,"div",10),li(3,"img",11),Ot(4,"div")(5,"p",12),xi(6),Pt(),cn(7,SDn,2,5,"ng-container",13),Pt()()()()),2&t){const e=n.$implicit,i=yt(3);Ur("user-container-selected",i.isUserSelected(e))("user-container-dark",i.isDarkSelectedBackground(e.guid)),Tt("id","user-container-"+e.guid),pt(3),Tt("src",e.avatarImageUrl+"?preset=profile-avatar",ad),pt(3),Ix("",e.firstName," ",e.lastName,""),pt(1),Tt("ngIf",i.customControls)}}function EDn(t,n){if(1&t){const e=Gi();Ot(0,"div")(1,"dx-list",7),fn("onSelectionChanged",function(r){return Kn(e),$n(yt(2).selectionChanged(r))}),cn(2,DDn,8,9,"div",8),Pt()()}if(2&t){const e=yt(2);pt(1),Ur("unclickableItems","none"===e.selectionMode)("app",e.userClientInfo.isApp),Tt("items",e.users)("activeStateEnabled",!1)("focusStateEnabled",!1)("hoverStateEnabled",!1)("selectionMode",e.selectionMode)("showSelectionControls","single"!==e.selectionMode)("selectAllText",e.scope.network.getResourceOrKeyName("web_userSearch_selectAll_text"))("noDataText",e.scope.network.getResourceOrKeyName("web_userSearch_notFound_text"))("pageLoadingText",e.scope.network.getResourceOrKeyName("web_userSearch_loading_text"))("refreshingText",e.scope.network.getResourceOrKeyName("web_userSearch_refreshing_text")),pt(1),Tt("dxTemplateOf","item")}}function ODn(t,n){if(1&t&&cn(0,EDn,3,15,"div",4),2&t){const e=yt(),i=Ms(9);Tt("ngIf",!e.usersLoading&&e.users.length)("ngIfElse",i)}}function TDn(t,n){if(1&t&&(Ot(0,"p"),xi(1),Pt()),2&t){const e=yt();pt(1),mr(e.scope.network.getResourceOrKeyName("web_chat_create_users_notFound"))}}class PD{set users(n){this._usersFiltered=n}get users(){return this._usersFiltered??this._defaultUsersFiltered}constructor(n,e){this.scopeService=n,this.propertyConverter=e,this._users=[],this._usersFiltered=[],this.usersLoading=!0,this.usersError=!1,this.isNetworkWide=!1,this.chatRoomId=null,this.selectionMode="single",this.searchExpr=["firstName","lastName"],this.onSelectionChanged=new qi,this.selectedUsers=[],this.userSearchValue="",this.previousUserSearchValue="",this.isDarkSelectedBackground=i=>"DARK"===F0(`user-container-${i.toString()}`),this.scope=n.getScope(),this.userClientInfo=n.getUserClientInfo()}ngOnInit(){this.setDefaultDataSource(this.isNetworkWide)}ngOnChanges(n){n.isNetworkWide&&this.setDefaultDataSource(n.isNetworkWide.currentValue)}setDefaultDataSource(n){let e=`${this.scope.apiEndpoint}Users/GetChapterList`;n&&(e=`${this.scope.apiEndpoint}Users/GetNetworkList`),null!=this.chatRoomId?this.loadCurrentMembers():fetch(e).then(i=>i.json()).then(({value:i})=>{const r=i.sort(this.sortUsers);this._users=r,this._usersFiltered=r,this._defaultUsers=r,this._defaultUsersFiltered=r}).catch(i=>{this.usersError=!0}).finally(()=>this.usersLoading=!1)}loadCurrentMembers(){null!=this.chatRoomId&&fetch(`${this.scope.apiEndpoint}chatMembers/getForChatRoom(chatRoomId='${this.chatRoomId}')`).then(n=>n.json()).then(({value:n})=>{const i=n.map(r=>({...r.profile,isAdmin:r.isAdmin,historySince:r.historySince,chatMemberId:r.id})).sort(this.sortCurrentMembers);this._users=i,this._usersFiltered=i}).catch(n=>{this.usersError=!0}).finally(()=>this.usersLoading=!1)}sortCurrentMembers(n,e){return n.isAdmin-e.isAdmin}sortUsers(n,e){return n.lastName.localeCompare(e.lastName)||n.firstName.localeCompare(e.firstName)}selectionChanged(n){const e=this.previousUserSearchValue!==this.userSearchValue;if(e&&(this.previousUserSearchValue=this.userSearchValue),"single"!==this.selectionMode){let i=[...this.selectedUsers];i.sort(this.sortUsers);for(let r of n.addedItems.sort(this.sortUsers))i.every(o=>o.guid.toString()!==r.guid.toString())&&i.push(r),n.component.reorderItem(r,i.indexOf(r));if(!e)for(let r of n.removedItems.sort(this.sortUsers)){i=i.filter(l=>l.guid.toString()!==r.guid.toString());const o=this._usersFiltered,a=o.indexOf(r);let s=0;for(let l of i)o.indexOf(l)<a&&s++;n.component.reorderItem(r,a+i.length-s)}this.selectedUsers=i}this.onSelectionChanged.emit(this.selectedUsers)}isUserSelected(n){return this.selectedUsers.some(e=>e.guid.toString()===n.guid.toString())}getDataSourceFilter(n){return[[["firstName","contains",n[0]?.toLowerCase()],"or",["lastName","contains",n[0]?.toLowerCase()]],"and",[["firstName","contains",n[1]?.toLowerCase()??n[0]?.toLowerCase()],"or",["lastName","contains",n[1]?.toLowerCase()??n[0]?.toLowerCase()]]]}onChangeSearchValue(n){const e=n.target.value?.toLowerCase();if(this.userSearchValue=e,!e)return this._usersFiltered=this._users,void(this._defaultUsersFiltered=this._defaultUsers);const i=this._users.filter(o=>this.filterUsers(o,e)).sort(this.sortUsers);this._usersFiltered=i;const r=this._defaultUsers.filter(o=>this.filterUsers(o,e)).sort(this.sortUsers);this._defaultUsersFiltered=r}filterUsers(n,e){return n.lastName.toLowerCase().includes(e)||n.firstName.toLowerCase().includes(e)}}function IDn(t,n){if(1&t&&(Ot(0,"dxi-item",10),li(1,"dxo-label",8),Pt()),2&t){const e=yt();pt(1),Tt("text",e.scope.network.getResourceOrKeyName("web_chat_create_groupChat_isNetworkWide_label"))("showColon",!1)}}PD.\u0275fac=function(n){return new(n||PD)($(bo),$(fd))},PD.\u0275cmp=je({type:PD,selectors:[["app-user-list"]],inputs:{users:"users",isNetworkWide:"isNetworkWide",chatRoomId:"chatRoomId",selectionMode:"selectionMode",customControls:"customControls",searchExpr:"searchExpr"},outputs:{onSelectionChanged:"onSelectionChanged"},features:[hi],decls:10,vars:6,consts:[[1,"container-wrapper"],[1,"user-list-title-search","mt-8","mb-4","pb-2"],[1,"m-0"],["type","text","id","subscribableChatRoomsFilter","name","subscribableChatRoomsFilter",3,"placeholder","keyup"],[4,"ngIf","ngIfElse"],["userList",""],["noUsersFound",""],["selectAllMode","allPages",1,"userSearchList",3,"items","activeStateEnabled","focusStateEnabled","hoverStateEnabled","selectionMode","showSelectionControls","selectAllText","noDataText","pageLoadingText","refreshingText","onSelectionChanged"],["class","user-container",3,"user-container-selected","id","user-container-dark",4,"dxTemplate","dxTemplateOf"],[1,"user-container",3,"id"],[1,"user-appearance-container"],[1,"avatar",3,"src"],[1,"user-list-displayname"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,e){if(1&n&&(Ot(0,"div",0)(1,"div",1)(2,"h3",2),xi(3),Pt(),Ot(4,"input",3),fn("keyup",function(r){return e.onChangeSearchValue(r)}),Pt()(),cn(5,bDn,3,1,"div",4),cn(6,ODn,1,2,"ng-template",null,5,Fs),cn(8,TDn,2,1,"ng-template",null,6,Fs),Pt()),2&n){const i=Ms(7);Ur("app",e.userClientInfo.isApp),pt(3),mr(e.scope.network.getResourceOrKeyName("web_chat_contacts_title")),pt(1),oE("placeholder",e.scope.network.getResourceOrKeyName("web_userSearch_placeholder")),pt(1),Tt("ngIf",e.usersLoading)("ngIfElse",i)}},dependencies:[Tl,cse,Z2,nJ],styles:["[_nghost-%COMP%]{--chatRoomIconMargin: 2rem;--listSeparatorMargin: calc(5rem + (var(--chatRoomIconMargin) * 2))}[_nghost-%COMP%]     .dx-list-item{overflow:visible;margin-left:var(--listSeparatorMargin);border-color:#e5e5e5}[_nghost-%COMP%]     .dx-list-item .dx-item-content{position:relative;left:calc(var(--listSeparatorMargin) * -1)}[_nghost-%COMP%]     .dx-list-item .dx-list-select-checkbox-container{display:none}[_nghost-%COMP%]     .dx-list .dx-empty-message, [_nghost-%COMP%]     .dx-list-item-content{padding:1rem 0px}[_nghost-%COMP%]     .unclickableItems .dx-list-item{cursor:default}[_nghost-%COMP%]     .dx-list-item-selected{padding:0}[_nghost-%COMP%]     .dx-list-item:last-child{margin-bottom:0}[_nghost-%COMP%]     .dx-checkbox-checked .dx-checkbox-icon{color:var(--color1-alpha30)}[_nghost-%COMP%]     .dx-checkbox.dx-state-focused .dx-checkbox-icon, [_nghost-%COMP%]     .dx-checkbox.dx-state-hover .dx-checkbox-icon{border:1px solid var(--color1-alpha30)}img.avatar[_ngcontent-%COMP%]{width:5rem;height:5rem;border-radius:50%}.container-wrapper[_ngcontent-%COMP%]{margin-top:1rem}.user-list-title-search[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgb(229,229,229)}.user-list-title-search[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.4rem}.user-list-title-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{all:unset;background-color:#f6f6f6;border:1px solid rgb(229,229,229);border-radius:1rem;padding:1rem 2rem}.user-container[_ngcontent-%COMP%]{background-color:#fbfbfb}.user-container-selected[_ngcontent-%COMP%]{border-radius:1rem;background-color:var(--color1-alpha30)!important}.user-container[_ngcontent-%COMP%]   .user-appearance-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding-left:var(--chatRoomIconMargin)}.user-container[_ngcontent-%COMP%]   .user-appearance-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-right:var(--chatRoomIconMargin)}.user-container[_ngcontent-%COMP%]   .user-appearance-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#000;margin:0}.user-container[_ngcontent-%COMP%]   .user-appearance-container[_ngcontent-%COMP%]   .user-list-displayname[_ngcontent-%COMP%]{font-family:var(--fontChat);font-weight:700;text-overflow:ellipsis}.user-container-dark[_ngcontent-%COMP%]   .user-appearance-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#fff}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]     .dx-list-item{border-color:#1d1d1d}.app[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]{background-color:#141414}.app[_ngcontent-%COMP%]   .user-container[_ngcontent-%COMP%]   .user-appearance-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#fff}.app[_ngcontent-%COMP%]   .user-list-title-search[_ngcontent-%COMP%]{border-bottom-color:#1d1d1d}.app[_ngcontent-%COMP%]   .user-list-title-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{background-color:#000;border-color:#1d1d1d}}"]});const kDn=function(t){return{dataSource:t,valueExpr:"value",displayExpr:"display"}};function MDn(t,n){if(1&t&&(Ot(0,"dxi-item",11),li(1,"dxo-label",12),Pt()),2&t){const e=yt();Tt("editorOptions",T0(2,kDn,e.groupChatTypeOptions)),pt(1),Tt("visible",!1)}}class RD{constructor(n){this.scopeService=n,this.groupChatData={name:"",description:"",isNetworkWide:!1,type:"Members",iconImageId:new Ni("00000000-0000-0000-0000-000000000000"),readOnly:!1,users:[]},this.groupChatDataChange=new qi,this.showNetworkSetting=!1,this.scope=n.getScope(),this.groupChatTypeOptions=new fm([{display:this.scope.network.getResourceOrKeyName("web_chat_create_groupChat_type_members_label"),value:"Members"},{display:this.scope.network.getResourceOrKeyName("web_chat_create_groupChat_type_subscription_label"),value:"Subscription"}]),this.userClientInfo=n.getUserClientInfo()}ngOnInit(){}}function ADn(t,n){if(1&t){const e=Gi();Ot(0,"div",10),fn("click",function(){return Kn(e),$n(yt().switchToGroupChatCreationView())}),li(1,"i",11),Pt()}}function FDn(t,n){if(1&t&&(Ot(0,"div")(1,"p"),xi(2),Pt()()),2&t){const e=yt(2);pt(2),mr(e.scope.network.getResourceOrKeyName("web_chat_create_joinSubscription_loading_text"))}}function PDn(t,n){if(1&t){const e=Gi();Ot(0,"div")(1,"div",19),fn("click",function(){const o=Kn(e).$implicit;return $n(yt(4).joinSubscription(o))}),Ot(2,"div",20)(3,"div",21),li(4,"img",22),Ot(5,"p")(6,"b"),xi(7),Pt()()()()()()}if(2&t){const e=n.$implicit,i=yt(4);pt(4),Tt("src",i.getGroupImageUrl(e.imageUrl),ad),pt(3),mr(e.name)}}function RDn(t,n){if(1&t){const e=Gi();Ot(0,"div")(1,"dx-list",17),fn("selectedItemsChange",function(r){return Kn(e),$n(yt(3).selectedGroups=r)}),cn(2,PDn,8,2,"div",18),Pt()()}if(2&t){const e=yt(3);pt(1),Tt("dataSource",e.subscribableChatRoomsFiltered)("activeStateEnabled",!1)("focusStateEnabled",!1)("hoverStateEnabled",!1)("selectedItems",e.selectedGroups)("noDataText",e.scope.network.getResourceOrKeyName("web_chat_create_joinSubscription_notFound_text"))("pageLoadingText",e.scope.network.getResourceOrKeyName("web_chat_create_joinSubscription_loading_text"))("refreshingText",e.scope.network.getResourceOrKeyName("web_chat_create_joinSubscription_refreshing_text")),pt(1),Tt("dxTemplateOf","item")}}function LDn(t,n){if(1&t&&cn(0,RDn,3,9,"div",4),2&t){yt();const e=Ms(9),i=yt();Tt("ngIf",!i.isSubscribableChatRoomsLoading&&i.subscribableChatRoomsFiltered.length)("ngIfElse",e)}}function BDn(t,n){if(1&t&&(Ot(0,"p"),xi(1),Pt()),2&t){const e=yt(2);pt(1),mr(e.scope.network.getResourceOrKeyName("web_chat_create_joinSubscription_notFound_text"))}}function NDn(t,n){if(1&t){const e=Gi();Ot(0,"div")(1,"div",12)(2,"h3",13),xi(3),Pt(),Ot(4,"input",14),fn("keyup",function(r){return Kn(e),$n(yt().onChangeSubscribableChatRoomsFilter(r))}),Pt()(),cn(5,FDn,3,1,"div",4),cn(6,LDn,1,2,"ng-template",null,15,Fs),cn(8,BDn,2,1,"ng-template",null,16,Fs),Pt()}if(2&t){const e=Ms(7),i=yt();pt(3),mr(i.scope.network.getResourceOrKeyName("web_chat_create_joinSubscription_title")),pt(1),oE("placeholder",i.scope.network.getResourceOrKeyName("web_chat_create_joinSubscription_placeholder")),pt(1),Tt("ngIf",i.isSubscribableChatRoomsLoading)("ngIfElse",e)}}RD.\u0275fac=function(n){return new(n||RD)($(bo))},RD.\u0275cmp=je({type:RD,selectors:[["app-group-chat-settings"]],inputs:{groupChatData:"groupChatData",showNetworkSetting:"showNetworkSetting"},outputs:{groupChatDataChange:"groupChatDataChange"},decls:12,vars:10,consts:[["labelMode","floating",3,"formData","formDataChange","onFieldDataChanged"],["itemType","simple","dataField","name","editorType","dxTextBox","cssClass","mb-2"],[3,"text"],["itemType","simple","dataField","description","editorType","dxTextArea","cssClass","mb-2"],["cssClass","group-form-title mb-4 mt-2"],[1,"m-0","mb-2"],["itemType","simple","dataField","isNetworkWide","editorType","dxCheckBox","cssClass","checkBoxLabelRight mb-2",4,"ngIf"],["itemType","simple","dataField","readOnly","editorType","dxCheckBox","cssClass","checkBoxLabelRight mb-2"],["alignment","left","location","right",3,"text","showColon"],["itemType","simple","dataField","type","editorType","dxRadioGroup",3,"editorOptions",4,"ngIf"],["itemType","simple","dataField","isNetworkWide","editorType","dxCheckBox","cssClass","checkBoxLabelRight mb-2"],["itemType","simple","dataField","type","editorType","dxRadioGroup",3,"editorOptions"],[3,"visible"]],template:function(n,e){if(1&n&&(Ot(0,"dx-form",0),fn("formDataChange",function(r){return e.groupChatData=r})("onFieldDataChanged",function(){return e.groupChatDataChange.emit(e.groupChatData)}),Ot(1,"dxi-item",1),li(2,"dxo-label",2),Pt(),Ot(3,"dxi-item",3),li(4,"dxo-label",2),Pt(),Ot(5,"dxi-item",4)(6,"h3",5),xi(7),Pt()(),cn(8,IDn,2,2,"dxi-item",6),Ot(9,"dxi-item",7),li(10,"dxo-label",8),Pt(),cn(11,MDn,2,4,"dxi-item",9),Pt()),2&n){let i;Ur("app",e.userClientInfo.isApp),Tt("formData",e.groupChatData),pt(2),Tt("text",e.scope.network.getResourceOrKeyName("web_chat_create_groupChat_name_label")),pt(2),Tt("text",e.scope.network.getResourceOrKeyName("web_chat_create_groupChat_description_label")),pt(3),mr(e.scope.network.getResourceOrKeyName("web_chat_create_group_preferences")),pt(1),Tt("ngIf",e.showNetworkSetting&&(null==e.scope.network.settings.configurations.chatConfiguration?null:e.scope.network.settings.configurations.chatConfiguration.IsNetworkWide)&&e.scope.profile.isNetworkAdmin),pt(2),Tt("text",e.scope.network.getResourceOrKeyName("web_chat_create_groupChat_readOnly_label"))("showColon",!1),pt(1),Tt("ngIf",e.scope.profile.chapterRoles.includes(null!==(i=null==e.scope.network.settings.configurations.chatConfiguration?null:e.scope.network.settings.configurations.chatConfiguration.MinSubscriptionCreationRole)&&void 0!==i?i:7))}},dependencies:[Tl,So,Mbt,$Qt],styles:["[_nghost-%COMP%]     h1, [_nghost-%COMP%]     h2, [_nghost-%COMP%]     h3, [_nghost-%COMP%]     h4, [_nghost-%COMP%]     h5, [_nghost-%COMP%]     h6, [_nghost-%COMP%]     p, [_nghost-%COMP%]     span, [_nghost-%COMP%]     input{color:#000}[_nghost-%COMP%]     label{margin-bottom:unset}[_nghost-%COMP%]     .dx-layout-manager .dx-field-item:not(.dx-first-row){padding-top:unset}[_nghost-%COMP%]     .dx-layout-manager .dx-label-h-align .dx-field-item-content .dx-checkbox{margin:unset}[_nghost-%COMP%]     .dx-layout-manager .dx-label-h-align.dx-flex-layout:not(.dx-field-item-label-align){align-items:center}[_nghost-%COMP%]     .dx-texteditor.dx-editor-outlined{border-radius:1rem;background-color:#f6f6f6;border:1px solid rgb(229,229,229);padding:1rem 2rem;display:flex;flex-direction:column-reverse}[_nghost-%COMP%]     .dx-texteditor-input{padding:unset}[_nghost-%COMP%]     .dx-template-wrapper{font-size:10px}[_nghost-%COMP%]     .dx-checkbox-checked .dx-checkbox-icon{color:var(--color1-alpha30)}[_nghost-%COMP%]     .dx-checkbox.dx-state-focused .dx-checkbox-icon, [_nghost-%COMP%]     .dx-checkbox.dx-state-hover .dx-checkbox-icon{border:1px solid var(--color1-alpha30)}[_nghost-%COMP%]     .dx-radiobutton-icon-checked .dx-radiobutton-icon-dot{background:var(--color1-alpha30)}[_nghost-%COMP%]     .dx-fileuploader-wrapper, [_nghost-%COMP%]     .dx-fileuploader-input-wrapper{padding:0}[_nghost-%COMP%]     .dx-fileuploader-input-wrapper{border:none!important}[_nghost-%COMP%]     .dx-fileuploader-input-wrapper:before, [_nghost-%COMP%]     .dx-fileuploader-input-wrapper:after{padding:0;margin:0}[_nghost-%COMP%]     dx-file-uploader{margin:1rem 0px}[_nghost-%COMP%]     .group-form-title{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgb(229,229,229)}[_nghost-%COMP%]     .group-form-title h3{font-size:1.4rem}[_nghost-%COMP%]     .group-form-title input{all:unset;background-color:#f6f6f6;border:1px solid rgb(229,229,229);border-radius:1rem;padding:1rem 2rem}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]     .dx-fileuploader-button, .app[_ngcontent-%COMP%]     .dx-fileuploader-button.dx-state-focused, .app[_ngcontent-%COMP%]     .dx-fileuploader-button.dx-state-hovered .dx-fileuploader-button:hover, .app[_ngcontent-%COMP%]     .dx-texteditor.dx-editor-outlined, .app[_ngcontent-%COMP%]     .dx-radiobutton-icon:before, .app[_ngcontent-%COMP%]     .dx-checkbox-icon{background-color:#000;border-color:#1d1d1d}.app[_ngcontent-%COMP%]     .group-form-title h3{color:#fff}}"]});const VDn=function(){return[".jpg",".jpeg",".gif",".png"]};function HDn(t,n){if(1&t){const e=Gi();Ot(0,"div",30)(1,"dx-file-uploader",31),fn("onFilesUploaded",function(r){return Kn(e),$n(yt(2).onFilesUploaded(r))})("onUploaded",function(r){return Kn(e),$n(yt(2).onFileUploaded(r))}),Pt(),Ot(2,"div",32),xi(3),Ot(4,"span"),xi(5,".jpg, .jpeg, .gif, .png."),Pt()()()}if(2&t){const e=yt(2);pt(1),Tt("visible",!0)("uploadUrl",e.uploadUrl)("chunkSize",5e5)("uploadHeaders",e.headers)("allowedFileExtensions",Fx(8,VDn))("multiple",!1)("labelText",e.scope.network.getResourceOrKeyName("web_chat_upload_label")),pt(2),ca("",e.scope.network.getResourceOrKeyName("web_chat_room_allowed_files"),": ")}}function zDn(t,n){if(1&t){const e=Gi();Ot(0,"div")(1,"div")(2,"div",33),li(3,"img",34),Pt()(),Ot(4,"div")(5,"dx-button",35),fn("onClick",function(){return Kn(e),$n(yt(2).deleteGroupCoverImage())}),Pt()()()}if(2&t){const e=yt(2);pt(3),Tt("src",e.getUploadImageUrl(),ad),pt(2),Tt("text",e.scope.network.getResourceOrKeyName("web_chat_remove_uploaded_image"))}}function UDn(t,n){if(1&t){const e=Gi();Ot(0,"div",23)(1,"h3",24),xi(2),Pt()(),Ot(3,"div")(4,"div",25)(5,"app-group-chat-settings",26),fn("groupChatDataChange",function(r){return Kn(e),$n(yt().groupChatData=r)}),Pt(),Ot(6,"div",23)(7,"h3",24),xi(8),Pt()(),cn(9,HDn,6,9,"div",27),cn(10,zDn,6,2,"ng-template",null,28,Fs),Pt(),Ot(12,"dx-button",29),fn("onClick",function(){return Kn(e),$n(yt().createGroupChat())}),Pt()()}if(2&t){const e=Ms(11),i=yt();pt(2),mr(i.scope.network.getResourceOrKeyName("web_chat_create_group_general")),pt(3),Tt("groupChatData",i.groupChatData)("showNetworkSetting",!0),pt(3),mr(i.scope.network.getResourceOrKeyName("web_chat_upload_room_cover_image")),pt(1),Tt("ngIf",!i.groupChatData.iconImageId)("ngIfElse",e),pt(3),Ur("create-group-button-dark",i.isDarkButtonBackground()),Tt("text",i.scope.network.getResourceOrKeyName("web_chat_create_groupChat_submit_button"))("disabled",!i.groupChatData.name.length)}}function WDn(t,n){if(1&t){const e=Gi();Ot(0,"dx-check-box",39),fn("valueChange",function(r){return Kn(e),$n(yt().user.chatRoomAdmin=r)})("onValueChanged",function(r){Kn(e);const o=yt().user;return $n(yt(2).hackPreventSelectionChangeOnCheckBoxClick(r,o))}),Pt()}if(2&t){const e=yt().user;Tt("text",yt(2).scope.network.getResourceOrKeyName("web_groupChat_userSearch_chatRoomAdmin_checkbox_label"))("value",e.chatRoomAdmin)}}function GDn(t,n){if(1&t&&cn(0,WDn,1,2,"dx-check-box",38),2&t){const e=n.selected;Tt("ngIf",yt(2).groupChatViewActive&&e)}}function jDn(t,n){if(1&t){const e=Gi();Ot(0,"div")(1,"div",3)(2,"div")(3,"app-user-list",36),fn("onSelectionChanged",function(r){return Kn(e),$n(yt().onSelectionChanged(r))}),Pt(),cn(4,GDn,1,1,"ng-template",null,37,Fs),Pt()()()}if(2&t){const e=Ms(5),i=yt();pt(3),Tt("selectionMode",i.groupChatViewActive?"all":"multiple")("customControls",e)("isNetworkWide",i.groupChatViewActive&&i.groupChatData.isNetworkWide)}}function KDn(t,n){if(1&t&&(Ot(0,"div")(1,"div",40)(2,"div",41)(3,"div"),li(4,"br"),Ot(5,"p"),xi(6),Pt()()()()()),2&t){const e=yt();Ur("app",e.userClientInfo.isApp),pt(6),mr(e.scope.network.getResourceOrKeyName("web_chat_creating"))}}class nA{constructor(n,e,i,r,o,a,s,l){this.scopeService=n,this.propertyConverter=e,this.chatRoomService=i,this.router=r,this.authenticationService=o,this.http=a,this.chatRelayService=s,this.chatroomCache=l,this.buttonDisabled=!1,this.subscribableChatRooms=[],this.subscribableChatRoomsFiltered=[],this.isSubscribableChatRoomsLoading=!0,this.isSubscribableChatRoomsError=!1,this.uploadUrl="https://localhost:7169/FileUpload/",this.headers={},this.creatingChat=!1,this.groupChatViewActive=!1,this.groupChatData={name:"",description:"",isNetworkWide:!1,type:"Members",readOnly:!1,users:[]},this.selectedUsers=[],this.selectedGroups=[],this.isDarkButtonBackground=()=>"DARK"===F0("create-group-button"),this.scope=n.getScope(),this.uploadUrl=this.scope.globalSettings.configurations.chatServerConfig.fileServerUrl+"FileUpload/chatroomthumbnails",this.authenticationService.getTokenData().then(u=>{this.authData=u}),this.authenticationService.getToken().then(u=>{this.headers={Authorization:"Bearer "+u}}),this.userClientInfo=n.getUserClientInfo(),fetch(`${this.scope.apiEndpoint}ChatRoomsFast/GetSubscribableChatRooms`).then(u=>u.json()).then(({value:u})=>{const f=u.sort(this.sortSubscribableChatRooms);this.subscribableChatRooms=f,this.subscribableChatRoomsFiltered=f}).catch(u=>{this.isSubscribableChatRoomsError=!0}).finally(()=>this.isSubscribableChatRoomsLoading=!1),this.groupChatTypeOptions=new fm([{display:this.scope.network.getResourceOrKeyName("web_chat_create_groupChat_type_members_label"),value:"Members"},{display:this.scope.network.getResourceOrKeyName("web_chat_create_groupChat_type_subscription_label"),value:"Subscription"}])}joinSubscription(n){this.creatingChat=!0,this.chatRoomService.joinSubscription(n.id).toPromise().then(()=>{this.chatRelayService.addToChatroom(n.id.toString()),this.authenticationService.expireToken(this).then(e=>{this.chatroomCache.rebuildCacheAndGetArrayStore(this).then(i=>{this.router.navigate(["/chat"]).then(r=>{this.router.navigate([`/chat/room/${n.id}`]).then(o=>{})})})})})}onSelectionChanged(n){if(this.selectedUsers=n,!this.groupChatViewActive){let e=n[0];e&&(this.creatingChat=!0,this.chatRoomService.createOneToOneChat(e.guid).toPromise().then(i=>{this.chatRelayService.addToChatroom(i.id.toString()),this.authenticationService.expireToken(this).then(r=>{this.chatroomCache.rebuildCacheAndGetArrayStore(this).then(o=>{this.router.navigate(["/chat"]).then(a=>{this.router.navigate([`/chat/room/${i.id}`]).then(s=>{})})})})}))}}createGroupChat(){this.groupChatData.name.length&&(this.creatingChat=!0,this.groupChatData.users=this.selectedUsers.map(n=>({userGuid:n.guid,isAdmin:n.chatRoomAdmin})),this.chatRoomService.createGroupChat(this.groupChatData).toPromise().then(n=>{this.chatRelayService.addToChatroom(n.id.toString()),this.authenticationService.expireToken(this).then(e=>{this.chatroomCache.rebuildCacheAndGetArrayStore(this).then(i=>{this.router.navigate(["/chat"]).then(r=>{this.router.navigate([`/chat/room/${n.id}`]).then(o=>{})})})})}))}hackPreventSelectionChangeOnCheckBoxClick(n,e){setTimeout(()=>this.selectedUsers.push(e))}switchToGroupChatCreationView(){this.groupChatViewActive=!0}onFilesUploaded(n){n.component.reset()}onFileUploaded(n){const e=n.request.getResponseHeader("file-guid");e&&(this.groupChatData.iconImageId=new Ni(e))}getUploadImageUrl(){const i=this.authData?.fileTokens.chatroomthumbnails;return this.scope.globalSettings.configurations.chatServerConfig.blobStoreUrl+"chatroomthumbnails/"+this.groupChatData.iconImageId+i}deleteGroupCoverImage(){this.http.delete(this.scope.globalSettings.configurations.chatServerConfig.fileServerUrl+"FileUpload/delete/chatroomthumbnails/"+this.groupChatData.iconImageId,{headers:this.headers}).toPromise().then(e=>{this.groupChatData.iconImageId=void 0},e=>{console.log(e)})}getGroupImageUrl(n){if(""===n||null===n)return this.scope.globalSettings.blobStorageCdnUrl+"/avatar/female.png";var r=this.authData?.fileTokens.chatroomthumbnails;return this.scope.globalSettings.configurations.chatServerConfig.blobStoreUrl+"chatroomthumbnails/"+n+r}onChangeSubscribableChatRoomsFilter(n){const e=n.target.value;if(!e)return void(this.subscribableChatRoomsFiltered=this.subscribableChatRooms);const i=this.subscribableChatRooms.filter(r=>this.filterSubscribableChatRooms(r,e)).sort(this.sortSubscribableChatRooms);this.subscribableChatRoomsFiltered=i}sortSubscribableChatRooms(n,e){return n.name.localeCompare(e.name)}filterSubscribableChatRooms(n,e){return n.name.toLowerCase().includes(e.toLowerCase())}}nA.\u0275fac=function(n){return new(n||nA)($(bo),$(fd),$(hg),$(ds),$(Eu),$(iu),$(ud),$(Dc))},nA.\u0275cmp=je({type:nA,selectors:[["app-create-chat"]],decls:13,vars:14,consts:[[1,"create-chat"],[1,"create-chat-title","ph-2","mb-2"],["class","create-chat-title-create-group",3,"click",4,"ngIf"],[1,"mh-2"],[4,"ngIf","ngIfElse"],["groupChatForm",""],[4,"ngIf"],["width","275px","height","125px",3,"showTitle","fullScreen","dragEnabled","hideOnOutsideClick","showCloseButton","visible"],["at","center","my","center","of","document"],[3,"app",4,"dxTemplate","dxTemplateOf"],[1,"create-chat-title-create-group",3,"click"],[1,"fas","fa-plus"],[1,"create-chat-search","mb-4","pb-2"],[1,"m-0"],["type","text","id","subscribableChatRoomsFilter","name","subscribableChatRoomsFilter",3,"placeholder","keyup"],["subscribableChatRoomsList",""],["noSubscribableChatRoomsFound",""],["selectionMode","single",3,"dataSource","activeStateEnabled","focusStateEnabled","hoverStateEnabled","selectedItems","noDataText","pageLoadingText","refreshingText","selectedItemsChange"],[4,"dxTemplate","dxTemplateOf"],[3,"click"],[1,"chat"],[1,"chat-avatar-container"],[1,"chat-avatar-image",3,"src"],[1,"group-chat-form-title","mb-4","mt-2"],[1,"m-0","mb-2"],[1,"mb-2"],[3,"groupChatData","showNetworkSetting","groupChatDataChange"],["class","py-10",4,"ngIf","ngIfElse"],["imagePreview",""],["type","default","id","create-group-button",1,"mb-4",2,"width","100%",3,"text","disabled","onClick"],[1,"py-10"],["name","file","accept","image/jpg, image/jpeg, image/gif, image/png","uploadMode","instantly",3,"visible","uploadUrl","chunkSize","uploadHeaders","allowedFileExtensions","multiple","labelText","onFilesUploaded","onUploaded"],[1,"note","mt-2"],[1,"avatar-wrapper"],[1,"avatar",3,"src"],["type","danger","id","delete-uploaded-image","icon","trash",2,"width","100%",3,"text","onClick"],[3,"selectionMode","customControls","isNetworkWide","onSelectionChanged"],["adminCheckBox",""],["class","checkbox-empty-indeterminate",3,"text","value","valueChange","onValueChanged",4,"ngIf"],[1,"checkbox-empty-indeterminate",3,"text","value","valueChange","onValueChanged"],[1,"centered-container"],[1,"centered-content"]],template:function(n,e){if(1&n&&(Ot(0,"div",0)(1,"div",1)(2,"h1"),xi(3),Pt(),cn(4,ADn,2,0,"div",2),Pt(),Ot(5,"div",3),cn(6,NDn,10,4,"div",4),Pt(),cn(7,UDn,13,10,"ng-template",null,5,Fs),cn(9,jDn,6,3,"div",6),Pt(),Ot(10,"dx-popup",7),li(11,"dxo-position",8),cn(12,KDn,7,3,"div",9),Pt()),2&n){const i=Ms(8);let r,o;Ur("app",e.userClientInfo.isApp),pt(3),mr(e.scope.network.getResourceOrKeyName(e.groupChatViewActive?"web_chat_create_group_title":"web_chat_create_title")),pt(1),Tt("ngIf",e.scope.profile.chapterRoles.includes(null!==(r=null==e.scope.network.settings.configurations.chatConfiguration?null:e.scope.network.settings.configurations.chatConfiguration.MinGroupCreationRole)&&void 0!==r?r:0)&&!e.groupChatViewActive),pt(2),Tt("ngIf",!e.groupChatViewActive)("ngIfElse",i),pt(3),Tt("ngIf",null===(o=null==e.scope.network.settings.configurations.chatConfiguration?null:e.scope.network.settings.configurations.chatConfiguration.OneToOneEnabled)||void 0===o||o||null===(o=e.groupChatViewActive)||void 0===o||o),pt(1),Tt("showTitle",!0)("fullScreen",!1)("dragEnabled",!1)("hideOnOutsideClick",!0)("showCloseButton",!0)("visible",e.creatingChat),pt(2),Tt("dxTemplateOf","content")}},dependencies:[Tl,PD,Z2,wG,ET,Bq,tM,nJ,kJ,RD],styles:["[_nghost-%COMP%]{--chatUserHeaderHeight: 77px;--chatRoomIconMargin: 2rem;--listSeparatorMargin: calc(5rem + (var(--chatRoomIconMargin) * 2))}[_nghost-%COMP%]     .dx-list .dx-empty-message, [_nghost-%COMP%]     .dx-list-item-content{padding:1rem 0px}[_nghost-%COMP%]     .dx-list-item-selected{padding:0}[_nghost-%COMP%]     .dx-list-item-selected .user-container{border-radius:1rem;background-color:var(--color1-alpha30)!important}[_nghost-%COMP%]     .dx-list-item:last-child{margin-bottom:0}[_nghost-%COMP%]     .dx-scrollable-container{margin:-1rem}[_nghost-%COMP%]     .dx-list-item{overflow:visible;margin-left:var(--listSeparatorMargin);border-color:#e5e5e5}[_nghost-%COMP%]     .dx-list-item .dx-item-content{position:relative;left:calc(var(--listSeparatorMargin) * -1)}[_nghost-%COMP%]     .dx-button-text{color:inherit!important}[_nghost-%COMP%]     .dx-fileuploader-wrapper, [_nghost-%COMP%]     .dx-fileuploader-input-wrapper{padding:0}[_nghost-%COMP%]     .dx-fileuploader-input-wrapper{border:unset}[_nghost-%COMP%]     .note>span{font-weight:700}.create-chat-title[_ngcontent-%COMP%]{height:var(--chatUserHeaderHeight);display:flex;align-items:center;justify-content:space-between;background-color:#f6f6f6}.create-chat-title-create-group[_ngcontent-%COMP%]   .fas[_ngcontent-%COMP%]{color:#6b6b6b;cursor:pointer;font-size:1.8rem}.create-chat-search[_ngcontent-%COMP%], .create-chat[_ngcontent-%COMP%]   .group-chat-form-title[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgb(229,229,229)}.create-chat-search[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .create-chat[_ngcontent-%COMP%]   .group-chat-form-title[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.4rem}.create-chat-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .create-chat[_ngcontent-%COMP%]   .group-chat-form-title[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{all:unset;background-color:#f6f6f6;border:1px solid rgb(229,229,229);border-radius:1rem;padding:1rem 2rem}.chat[_ngcontent-%COMP%]{width:100%}.chat-avatar-container[_ngcontent-%COMP%]{border-radius:50%;display:flex;flex-direction:row;align-items:center;padding-left:var(--chatRoomIconMargin)}.chat-avatar-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#000;margin:0;overflow:hidden;text-overflow:ellipsis}.chat-avatar-image[_ngcontent-%COMP%]{min-width:5rem;min-height:5rem;max-width:5rem;max-height:5rem;object-fit:cover;border-radius:50%;margin-right:var(--chatRoomIconMargin)}img.avatar[_ngcontent-%COMP%]{width:5rem;height:5rem;border-radius:50%}.avatar-wrapper[_ngcontent-%COMP%]{padding:5px}#create-group-button[_ngcontent-%COMP%], .user-container[_ngcontent-%COMP%]{background-color:var(--color1-alpha30);border-color:var(--color1-alpha30);color:#000}.dx-button-mode-contained[_ngcontent-%COMP%], .dx-button-mode-contained.dx-state-focused[_ngcontent-%COMP%], .dx-button-mode-contained[_ngcontent-%COMP%]:hover{background-color:#f6f6f6;border-color:#e5e5e5;color:#000}.create-group-button-dark[_ngcontent-%COMP%]{color:#fff!important}.note[_ngcontent-%COMP%]{padding:0 0 10px}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]     label, .app[_ngcontent-%COMP%]     span, .app[_ngcontent-%COMP%]     p, .app[_ngcontent-%COMP%]     i, .app[_ngcontent-%COMP%]     a{color:#fff}.app[_ngcontent-%COMP%]     .dx-list-item{border-color:#1d1d1d}.app[_ngcontent-%COMP%]     .dx-button-mode-contained, .app[_ngcontent-%COMP%]     .dx-button-mode-contained.dx-state-focused, .app[_ngcontent-%COMP%]     .dx-button-mode-contained:hover{background-color:#000;border-color:#1d1d1d;color:#fff}.app[_ngcontent-%COMP%]   .chat-avatar-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#fff}.app[_ngcontent-%COMP%]   .create-chat-title[_ngcontent-%COMP%]{background-color:#141414}.app[_ngcontent-%COMP%]   .create-chat-search[_ngcontent-%COMP%]{border-bottom-color:#1d1d1d}.app[_ngcontent-%COMP%]   .create-chat-search[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{background-color:#000;border-color:#1d1d1d}}.centered-container[_ngcontent-%COMP%]{width:100%;height:calc(100vh - var(--headerHeight))}.centered-content[_ngcontent-%COMP%]{position:relative;float:left;top:50%;left:50%;transform:translate(-50%,-50%)}"]});class LD{constructor(n,e){this.scopeService=n,this.router=e,this.message="",this.scope=this.scopeService.getScope(),this.message=this.scope.network.getResourceOrKeyName("web_chat_unselected_chatroom_message")}ngOnInit(){this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<Kf,this.isMobile&&this.router.navigate(["/"]).then(n=>this.router.navigate(["/chat"]))}}LD.\u0275fac=function(n){return new(n||LD)($(bo),$(ds))},LD.\u0275cmp=je({type:LD,selectors:[["app-unselected-chatroom"]],decls:4,vars:3,consts:[[1,"centered-container"],[1,"centered-content"],[3,"innerHtml"]],template:function(n,e){1&n&&(Ot(0,"div",0)(1,"div",1),li(2,"div",2),Nf(3,"linky"),Pt()()),2&n&&(pt(2),Tt("innerHtml",Vf(3,1,e.message),qp))},dependencies:[aV],styles:["[_nghost-%COMP%]{--headerHeight: 101px;--chatUserHeaderHeight: 77px;--messageInputComponentHeight:calc(53px + 1rem);--windowHeight: calc(100vh - var(--headerHeight));--createMessageContainerHeight:6.6rem;--chatContainerHeight: calc(var(--windowHeight) - var(--messageInputComponentHeight) - 1rem);--scrollableWindowHeight: calc(var(--chatContainerHeight) - var(--chatUserHeaderHeight));--attachmentFileIconSize: 5rem;--borderRadius: 1rem}.navbar-spacer[_ngcontent-%COMP%]{height:101px}.centered-container[_ngcontent-%COMP%]{width:100%;height:calc(100vh - var(--headerHeight))}.centered-content[_ngcontent-%COMP%]{position:relative;float:left;top:50%;left:50%;transform:translate(-50%,-50%)}@media (max-width: 991px){.navbar-spacer[_ngcontent-%COMP%]{height:0}}"]});const $Dn=[{path:"",component:FD,data:{reuseComponent:!0}},{path:"chat",component:FD,data:{reuseComponent:!0},children:[{path:"add",component:nA},{path:"room/:id",component:MD},{path:"preferences",component:QM},{path:"**",component:LD}]},{path:"**",component:LD}];class BD{}function qDn(t,n){1&t&&xi(0),2&t&&mr(yt(2).unified)}function YDn(t,n){if(1&t){const e=Gi();Ot(0,"button",2),fn("click",function(r){return Kn(e),$n(yt().handleClick(r))})("mouseenter",function(r){return Kn(e),$n(yt().handleOver(r))})("mouseleave",function(r){return Kn(e),$n(yt().handleLeave(r))}),Ot(1,"span",3),cn(2,qDn,1,1,"ng-template",4),As(3),Pt()()}if(2&t){const e=yt();Ur("emoji-mart-emoji-native",e.isNative)("emoji-mart-emoji-custom",e.custom),es("title",e.title)("aria-label",e.label),pt(1),Tt("ngStyle",e.style),pt(1),Tt("ngIf",e.isNative)}}function ZDn(t,n){1&t&&xi(0),2&t&&mr(yt(2).unified)}function XDn(t,n){if(1&t){const e=Gi();Ot(0,"span",5),fn("click",function(r){return Kn(e),$n(yt().handleClick(r))})("mouseenter",function(r){return Kn(e),$n(yt().handleOver(r))})("mouseleave",function(r){return Kn(e),$n(yt().handleLeave(r))}),Ot(1,"span",3),cn(2,ZDn,1,1,"ng-template",4),As(3,1),Pt()()}if(2&t){const e=yt();Ur("emoji-mart-emoji-native",e.isNative)("emoji-mart-emoji-custom",e.custom),es("title",e.title)("aria-label",e.label),pt(1),Tt("ngStyle",e.style),pt(1),Tt("ngIf",e.isNative)}}BD.\u0275fac=function(n){return new(n||BD)},BD.\u0275mod=nt({type:BD}),BD.\u0275inj=Je({imports:[R7.forRoot($Dn,{onSameUrlNavigation:"reload",enableTracing:!1}),R7]});const G7e=["*","*"],j7e=[{id:"people",name:"Smileys & People",emojis:["1F600","1F603","1F604","1F601","1F606","1F605","1F923","1F602","1F642","1F643","1F609","1F60A","1F607","1F970","1F60D","1F929","1F618","1F617","263A-FE0F","1F61A","1F619","1F972","1F60B","1F61B","1F61C","1F92A","1F61D","1F911","1F917","1F92D","1F92B","1F914","1F910","1F928","1F610","1F611","1F636","1F60F","1F612","1F644","1F62C","1F925","1F60C","1F614","1F62A","1F924","1F634","1F637","1F912","1F915","1F922","1F92E","1F927","1F975","1F976","1F974","1F635","1F92F","1F920","1F973","1F978","1F60E","1F913","1F9D0","1F615","1F61F","1F641","2639-FE0F","1F62E","1F62F","1F632","1F633","1F97A","1F626","1F627","1F628","1F630","1F625","1F622","1F62D","1F631","1F616","1F623","1F61E","1F613","1F629","1F62B","1F971","1F624","1F621","1F620","1F92C","1F608","1F47F","1F480","2620-FE0F","1F4A9","1F921","1F479","1F47A","1F47B","1F47D","1F47E","1F916","1F63A","1F638","1F639","1F63B","1F63C","1F63D","1F640","1F63F","1F63E","1F648","1F44B","1F91A","1F590-FE0F","270B","1F596","1F44C","1F90C","1F90F","270C-FE0F","1F91E","1F91F","1F918","1F919","1F448","1F449","1F446","1F595","1F447","261D-FE0F","1F44D","1F44E","270A","1F44A","1F91B","1F91C","1F44F","1F64C","1F450","1F932","1F91D","1F64F","270D-FE0F","1F485","1F933","1F4AA","1F9BE","1F9BF","1F9B5","1F9B6","1F442","1F9BB","1F443","1F9E0","1FAC0","1FAC1","1F9B7","1F9B4","1F440","1F441-FE0F","1F445","1F444","1F476","1F9D2","1F466","1F467","1F9D1","1F471","1F468","1F9D4","1F468-200D-1F9B0","1F468-200D-1F9B1","1F468-200D-1F9B3","1F468-200D-1F9B2","1F469","1F469-200D-1F9B0","1F9D1-200D-1F9B0","1F469-200D-1F9B1","1F9D1-200D-1F9B1","1F469-200D-1F9B3","1F9D1-200D-1F9B3","1F469-200D-1F9B2","1F9D1-200D-1F9B2","1F471-200D-2640-FE0F","1F471-200D-2642-FE0F","1F9D3","1F474","1F475","1F64D","1F64D-200D-2642-FE0F","1F64D-200D-2640-FE0F","1F64E","1F64E-200D-2642-FE0F","1F64E-200D-2640-FE0F","1F645","1F645-200D-2642-FE0F","1F645-200D-2640-FE0F","1F646","1F646-200D-2642-FE0F","1F646-200D-2640-FE0F","1F481","1F481-200D-2642-FE0F","1F481-200D-2640-FE0F","1F64B","1F64B-200D-2642-FE0F","1F64B-200D-2640-FE0F","1F9CF","1F9CF-200D-2642-FE0F","1F9CF-200D-2640-FE0F","1F647","1F647-200D-2642-FE0F","1F647-200D-2640-FE0F","1F926","1F926-200D-2642-FE0F","1F926-200D-2640-FE0F","1F937","1F937-200D-2642-FE0F","1F937-200D-2640-FE0F","1F9D1-200D-2695-FE0F","1F468-200D-2695-FE0F","1F469-200D-2695-FE0F","1F9D1-200D-1F393","1F468-200D-1F393","1F469-200D-1F393","1F9D1-200D-1F3EB","1F468-200D-1F3EB","1F469-200D-1F3EB","1F9D1-200D-2696-FE0F","1F468-200D-2696-FE0F","1F469-200D-2696-FE0F","1F9D1-200D-1F33E","1F468-200D-1F33E","1F469-200D-1F33E","1F9D1-200D-1F373","1F468-200D-1F373","1F469-200D-1F373","1F9D1-200D-1F527","1F468-200D-1F527","1F469-200D-1F527","1F9D1-200D-1F3ED","1F468-200D-1F3ED","1F469-200D-1F3ED","1F9D1-200D-1F4BC","1F468-200D-1F4BC","1F469-200D-1F4BC","1F9D1-200D-1F52C","1F468-200D-1F52C","1F469-200D-1F52C","1F9D1-200D-1F4BB","1F468-200D-1F4BB","1F469-200D-1F4BB","1F9D1-200D-1F3A4","1F468-200D-1F3A4","1F469-200D-1F3A4","1F9D1-200D-1F3A8","1F468-200D-1F3A8","1F469-200D-1F3A8","1F9D1-200D-2708-FE0F","1F468-200D-2708-FE0F","1F469-200D-2708-FE0F","1F9D1-200D-1F680","1F468-200D-1F680","1F469-200D-1F680","1F9D1-200D-1F692","1F468-200D-1F692","1F469-200D-1F692","1F46E","1F46E-200D-2642-FE0F","1F46E-200D-2640-FE0F","1F575-FE0F","1F575-FE0F-200D-2642-FE0F","1F575-FE0F-200D-2640-FE0F","1F482","1F482-200D-2642-FE0F","1F482-200D-2640-FE0F","1F977","1F477","1F477-200D-2642-FE0F","1F477-200D-2640-FE0F","1F934","1F478","1F473","1F473-200D-2642-FE0F","1F473-200D-2640-FE0F","1F472","1F9D5","1F935","1F935-200D-2642-FE0F","1F935-200D-2640-FE0F","1F470","1F470-200D-2642-FE0F","1F470-200D-2640-FE0F","1F930","1F931","1F469-200D-1F37C","1F468-200D-1F37C","1F9D1-200D-1F37C","1F47C","1F385","1F936","1F9D1-200D-1F384","1F9B8","1F9B8-200D-2642-FE0F","1F9B8-200D-2640-FE0F","1F9B9","1F9B9-200D-2642-FE0F","1F9B9-200D-2640-FE0F","1F9D9","1F9D9-200D-2642-FE0F","1F9D9-200D-2640-FE0F","1F9DA","1F9DA-200D-2642-FE0F","1F9DA-200D-2640-FE0F","1F9DB","1F9DB-200D-2642-FE0F","1F9DB-200D-2640-FE0F","1F9DC","1F9DC-200D-2642-FE0F","1F9DC-200D-2640-FE0F","1F9DD","1F9DD-200D-2642-FE0F","1F9DD-200D-2640-FE0F","1F9DE","1F9DE-200D-2642-FE0F","1F9DE-200D-2640-FE0F","1F9DF","1F9DF-200D-2642-FE0F","1F9DF-200D-2640-FE0F","1F486","1F486-200D-2642-FE0F","1F486-200D-2640-FE0F","1F487","1F487-200D-2642-FE0F","1F487-200D-2640-FE0F","1F6B6","1F6B6-200D-2642-FE0F","1F6B6-200D-2640-FE0F","1F9CD","1F9CD-200D-2642-FE0F","1F9CD-200D-2640-FE0F","1F9CE","1F9CE-200D-2642-FE0F","1F9CE-200D-2640-FE0F","1F9D1-200D-1F9AF","1F468-200D-1F9AF","1F469-200D-1F9AF","1F9D1-200D-1F9BC","1F468-200D-1F9BC","1F469-200D-1F9BC","1F9D1-200D-1F9BD","1F468-200D-1F9BD","1F469-200D-1F9BD","1F3C3","1F3C3-200D-2642-FE0F","1F3C3-200D-2640-FE0F","1F483","1F57A","1F574-FE0F","1F46F","1F46F-200D-2642-FE0F","1F46F-200D-2640-FE0F","1F9D6","1F9D6-200D-2642-FE0F","1F9D6-200D-2640-FE0F","1F9D7","1F9D7-200D-2642-FE0F","1F9D7-200D-2640-FE0F","1F93A","1F3C7","26F7-FE0F","1F3C2","1F3CC-FE0F","1F3CC-FE0F-200D-2642-FE0F","1F3CC-FE0F-200D-2640-FE0F","1F3C4","1F3C4-200D-2642-FE0F","1F3C4-200D-2640-FE0F","1F6A3","1F6A3-200D-2642-FE0F","1F6A3-200D-2640-FE0F","1F3CA","1F3CA-200D-2642-FE0F","1F3CA-200D-2640-FE0F","26F9-FE0F","26F9-FE0F-200D-2642-FE0F","26F9-FE0F-200D-2640-FE0F","1F3CB-FE0F","1F3CB-FE0F-200D-2642-FE0F","1F3CB-FE0F-200D-2640-FE0F","1F6B4","1F6B4-200D-2642-FE0F","1F6B4-200D-2640-FE0F","1F6B5","1F6B5-200D-2642-FE0F","1F6B5-200D-2640-FE0F","1F938","1F938-200D-2642-FE0F","1F938-200D-2640-FE0F","1F93C","1F93C-200D-2642-FE0F","1F93C-200D-2640-FE0F","1F93D","1F93D-200D-2642-FE0F","1F93D-200D-2640-FE0F","1F93E","1F93E-200D-2642-FE0F","1F93E-200D-2640-FE0F","1F939","1F939-200D-2642-FE0F","1F939-200D-2640-FE0F","1F9D8","1F9D8-200D-2642-FE0F","1F9D8-200D-2640-FE0F","1F6C0","1F6CC","1F9D1-200D-1F91D-200D-1F9D1","1F46D","1F46B","1F46C","1F48F","1F469-200D-2764-FE0F-200D-1F48B-200D-1F468","1F468-200D-2764-FE0F-200D-1F48B-200D-1F468","1F469-200D-2764-FE0F-200D-1F48B-200D-1F469","1F491","1F469-200D-2764-FE0F-200D-1F468","1F468-200D-2764-FE0F-200D-1F468","1F469-200D-2764-FE0F-200D-1F469","1F46A","1F468-200D-1F469-200D-1F466","1F468-200D-1F469-200D-1F467","1F468-200D-1F469-200D-1F467-200D-1F466","1F468-200D-1F469-200D-1F466-200D-1F466","1F468-200D-1F469-200D-1F467-200D-1F467","1F468-200D-1F468-200D-1F466","1F468-200D-1F468-200D-1F467","1F468-200D-1F468-200D-1F467-200D-1F466","1F468-200D-1F468-200D-1F466-200D-1F466","1F468-200D-1F468-200D-1F467-200D-1F467","1F469-200D-1F469-200D-1F466","1F469-200D-1F469-200D-1F467","1F469-200D-1F469-200D-1F467-200D-1F466","1F469-200D-1F469-200D-1F466-200D-1F466","1F469-200D-1F469-200D-1F467-200D-1F467","1F468-200D-1F466","1F468-200D-1F466-200D-1F466","1F468-200D-1F467","1F468-200D-1F467-200D-1F466","1F468-200D-1F467-200D-1F467","1F469-200D-1F466","1F469-200D-1F466-200D-1F466","1F469-200D-1F467","1F469-200D-1F467-200D-1F466","1F469-200D-1F467-200D-1F467","1F5E3-FE0F","1F464","1F465","1FAC2","1F463","1F649","1F64A","1F48B","1F48C","1F498","1F49D","1F496","1F497","1F493","1F49E","1F495","1F49F","2763-FE0F","1F494","2764-FE0F","1F9E1","1F49B","1F49A","1F499","1F49C","1F90E","1F5A4","1F90D","1F4AF","1F4A2","1F4A5","1F4AB","1F4A6","1F4A8","1F573-FE0F","1F4A3","1F4AC","1F441-FE0F-200D-1F5E8-FE0F","1F5E8-FE0F","1F5EF-FE0F","1F4AD","1F4A4"]},{id:"nature",name:"Animals & Nature",emojis:["1F435","1F412","1F98D","1F9A7","1F436","1F415","1F9AE","1F415-200D-1F9BA","1F429","1F43A","1F98A","1F99D","1F431","1F408","1F408-200D-2B1B","1F981","1F42F","1F405","1F406","1F434","1F40E","1F984","1F993","1F98C","1F9AC","1F42E","1F402","1F403","1F404","1F437","1F416","1F417","1F43D","1F40F","1F411","1F410","1F42A","1F42B","1F999","1F992","1F418","1F9A3","1F98F","1F99B","1F42D","1F401","1F400","1F439","1F430","1F407","1F43F-FE0F","1F9AB","1F994","1F987","1F43B","1F43B-200D-2744-FE0F","1F428","1F43C","1F9A5","1F9A6","1F9A8","1F998","1F9A1","1F43E","1F983","1F414","1F413","1F423","1F424","1F425","1F426","1F427","1F54A-FE0F","1F985","1F986","1F9A2","1F989","1F9A4","1FAB6","1F9A9","1F99A","1F99C","1F438","1F40A","1F422","1F98E","1F40D","1F432","1F409","1F995","1F996","1F433","1F40B","1F42C","1F9AD","1F41F","1F420","1F421","1F988","1F419","1F41A","1F40C","1F98B","1F41B","1F41C","1F41D","1FAB2","1F41E","1F997","1FAB3","1F577-FE0F","1F578-FE0F","1F982","1F99F","1FAB0","1FAB1","1F9A0","1F490","1F338","1F4AE","1F3F5-FE0F","1F339","1F940","1F33A","1F33B","1F33C","1F337","1F331","1FAB4","1F332","1F333","1F334","1F335","1F33E","1F33F","2618-FE0F","1F340","1F341","1F342","1F343"]},{id:"foods",name:"Food & Drink",emojis:["1F347","1F348","1F349","1F34A","1F34B","1F34C","1F34D","1F96D","1F34E","1F34F","1F350","1F351","1F352","1F353","1FAD0","1F95D","1F345","1FAD2","1F965","1F951","1F346","1F954","1F955","1F33D","1F336-FE0F","1FAD1","1F952","1F96C","1F966","1F9C4","1F9C5","1F344","1F95C","1F330","1F35E","1F950","1F956","1FAD3","1F968","1F96F","1F95E","1F9C7","1F9C0","1F356","1F357","1F969","1F953","1F354","1F35F","1F355","1F32D","1F96A","1F32E","1F32F","1FAD4","1F959","1F9C6","1F95A","1F373","1F958","1F372","1FAD5","1F963","1F957","1F37F","1F9C8","1F9C2","1F96B","1F371","1F358","1F359","1F35A","1F35B","1F35C","1F35D","1F360","1F362","1F363","1F364","1F365","1F96E","1F361","1F95F","1F960","1F961","1F980","1F99E","1F990","1F991","1F9AA","1F366","1F367","1F368","1F369","1F36A","1F382","1F370","1F9C1","1F967","1F36B","1F36C","1F36D","1F36E","1F36F","1F37C","1F95B","2615","1FAD6","1F375","1F376","1F37E","1F377","1F378","1F379","1F37A","1F37B","1F942","1F943","1F964","1F9CB","1F9C3","1F9C9","1F9CA","1F962","1F37D-FE0F","1F374","1F944","1F52A","1F3FA"]},{id:"activity",name:"Activities",emojis:["1F383","1F384","1F386","1F387","1F9E8","2728","1F388","1F389","1F38A","1F38B","1F38D","1F38E","1F38F","1F390","1F391","1F9E7","1F380","1F381","1F397-FE0F","1F39F-FE0F","1F3AB","1F396-FE0F","1F3C6","1F3C5","1F947","1F948","1F949","26BD","26BE","1F94E","1F3C0","1F3D0","1F3C8","1F3C9","1F3BE","1F94F","1F3B3","1F3CF","1F3D1","1F3D2","1F94D","1F3D3","1F3F8","1F94A","1F94B","1F945","26F3","26F8-FE0F","1F3A3","1F93F","1F3BD","1F3BF","1F6F7","1F94C","1F3AF","1FA80","1FA81","1F3B1","1F52E","1FA84","1F9FF","1F3AE","1F579-FE0F","1F3B0","1F3B2","1F9E9","1F9F8","1FA85","1FA86","2660-FE0F","2665-FE0F","2666-FE0F","2663-FE0F","265F-FE0F","1F0CF","1F004","1F3B4","1F3AD","1F5BC-FE0F","1F3A8","1F9F5","1FAA1","1F9F6","1FAA2"]},{id:"places",name:"Travel & Places",emojis:["1F30D","1F30E","1F30F","1F310","1F5FA-FE0F","1F5FE","1F9ED","1F3D4-FE0F","26F0-FE0F","1F30B","1F5FB","1F3D5-FE0F","1F3D6-FE0F","1F3DC-FE0F","1F3DD-FE0F","1F3DE-FE0F","1F3DF-FE0F","1F3DB-FE0F","1F3D7-FE0F","1F9F1","1FAA8","1FAB5","1F6D6","1F3D8-FE0F","1F3DA-FE0F","1F3E0","1F3E1","1F3E2","1F3E3","1F3E4","1F3E5","1F3E6","1F3E8","1F3E9","1F3EA","1F3EB","1F3EC","1F3ED","1F3EF","1F3F0","1F492","1F5FC","1F5FD","26EA","1F54C","1F6D5","1F54D","26E9-FE0F","1F54B","26F2","26FA","1F301","1F303","1F3D9-FE0F","1F304","1F305","1F306","1F307","1F309","2668-FE0F","1F3A0","1F3A1","1F3A2","1F488","1F3AA","1F682","1F683","1F684","1F685","1F686","1F687","1F688","1F689","1F68A","1F69D","1F69E","1F68B","1F68C","1F68D","1F68E","1F690","1F691","1F692","1F693","1F694","1F695","1F696","1F697","1F698","1F699","1F6FB","1F69A","1F69B","1F69C","1F3CE-FE0F","1F3CD-FE0F","1F6F5","1F9BD","1F9BC","1F6FA","1F6B2","1F6F4","1F6F9","1F6FC","1F68F","1F6E3-FE0F","1F6E4-FE0F","1F6E2-FE0F","26FD","1F6A8","1F6A5","1F6A6","1F6D1","1F6A7","2693","26F5","1F6F6","1F6A4","1F6F3-FE0F","26F4-FE0F","1F6E5-FE0F","1F6A2","2708-FE0F","1F6E9-FE0F","1F6EB","1F6EC","1FA82","1F4BA","1F681","1F69F","1F6A0","1F6A1","1F6F0-FE0F","1F680","1F6F8","1F6CE-FE0F","1F9F3","231B","23F3","231A","23F0","23F1-FE0F","23F2-FE0F","1F570-FE0F","1F55B","1F567","1F550","1F55C","1F551","1F55D","1F552","1F55E","1F553","1F55F","1F554","1F560","1F555","1F561","1F556","1F562","1F557","1F563","1F558","1F564","1F559","1F565","1F55A","1F566","1F311","1F312","1F313","1F314","1F315","1F316","1F317","1F318","1F319","1F31A","1F31B","1F31C","1F321-FE0F","2600-FE0F","1F31D","1F31E","1FA90","2B50","1F31F","1F320","1F30C","2601-FE0F","26C5","26C8-FE0F","1F324-FE0F","1F325-FE0F","1F326-FE0F","1F327-FE0F","1F328-FE0F","1F329-FE0F","1F32A-FE0F","1F32B-FE0F","1F32C-FE0F","1F300","1F308","1F302","2602-FE0F","2614","26F1-FE0F","26A1","2744-FE0F","2603-FE0F","26C4","2604-FE0F","1F525","1F4A7","1F30A"]},{id:"objects",name:"Objects",emojis:["1F453","1F576-FE0F","1F97D","1F97C","1F9BA","1F454","1F455","1F456","1F9E3","1F9E4","1F9E5","1F9E6","1F457","1F458","1F97B","1FA71","1FA72","1FA73","1F459","1F45A","1F45B","1F45C","1F45D","1F6CD-FE0F","1F392","1FA74","1F45E","1F45F","1F97E","1F97F","1F460","1F461","1FA70","1F462","1F451","1F452","1F3A9","1F393","1F9E2","1FA96","26D1-FE0F","1F4FF","1F484","1F48D","1F48E","1F507","1F508","1F509","1F50A","1F4E2","1F4E3","1F4EF","1F514","1F515","1F3BC","1F3B5","1F3B6","1F399-FE0F","1F39A-FE0F","1F39B-FE0F","1F3A4","1F3A7","1F4FB","1F3B7","1FA97","1F3B8","1F3B9","1F3BA","1F3BB","1FA95","1F941","1FA98","1F4F1","1F4F2","260E-FE0F","1F4DE","1F4DF","1F4E0","1F50B","1F50C","1F4BB","1F5A5-FE0F","1F5A8-FE0F","2328-FE0F","1F5B1-FE0F","1F5B2-FE0F","1F4BD","1F4BE","1F4BF","1F4C0","1F9EE","1F3A5","1F39E-FE0F","1F4FD-FE0F","1F3AC","1F4FA","1F4F7","1F4F8","1F4F9","1F4FC","1F50D","1F50E","1F56F-FE0F","1F4A1","1F526","1F3EE","1FA94","1F4D4","1F4D5","1F4D6","1F4D7","1F4D8","1F4D9","1F4DA","1F4D3","1F4D2","1F4C3","1F4DC","1F4C4","1F4F0","1F5DE-FE0F","1F4D1","1F516","1F3F7-FE0F","1F4B0","1FA99","1F4B4","1F4B5","1F4B6","1F4B7","1F4B8","1F4B3","1F9FE","1F4B9","2709-FE0F","1F4E7","1F4E8","1F4E9","1F4E4","1F4E5","1F4E6","1F4EB","1F4EA","1F4EC","1F4ED","1F4EE","1F5F3-FE0F","270F-FE0F","2712-FE0F","1F58B-FE0F","1F58A-FE0F","1F58C-FE0F","1F58D-FE0F","1F4DD","1F4BC","1F4C1","1F4C2","1F5C2-FE0F","1F4C5","1F4C6","1F5D2-FE0F","1F5D3-FE0F","1F4C7","1F4C8","1F4C9","1F4CA","1F4CB","1F4CC","1F4CD","1F4CE","1F587-FE0F","1F4CF","1F4D0","2702-FE0F","1F5C3-FE0F","1F5C4-FE0F","1F5D1-FE0F","1F512","1F513","1F50F","1F510","1F511","1F5DD-FE0F","1F528","1FA93","26CF-FE0F","2692-FE0F","1F6E0-FE0F","1F5E1-FE0F","2694-FE0F","1F52B","1FA83","1F3F9","1F6E1-FE0F","1FA9A","1F527","1FA9B","1F529","2699-FE0F","1F5DC-FE0F","2696-FE0F","1F9AF","1F517","26D3-FE0F","1FA9D","1F9F0","1F9F2","1FA9C","2697-FE0F","1F9EA","1F9EB","1F9EC","1F52C","1F52D","1F4E1","1F489","1FA78","1F48A","1FA79","1FA7A","1F6AA","1F6D7","1FA9E","1FA9F","1F6CF-FE0F","1F6CB-FE0F","1FA91","1F6BD","1FAA0","1F6BF","1F6C1","1FAA4","1FA92","1F9F4","1F9F7","1F9F9","1F9FA","1F9FB","1FAA3","1F9FC","1FAA5","1F9FD","1F9EF","1F6D2","1F6AC","26B0-FE0F","1FAA6","26B1-FE0F","1F5FF","1FAA7"]},{id:"symbols",name:"Symbols",emojis:["1F3E7","1F6AE","1F6B0","267F","1F6B9","1F6BA","1F6BB","1F6BC","1F6BE","1F6C2","1F6C3","1F6C4","1F6C5","26A0-FE0F","1F6B8","26D4","1F6AB","1F6B3","1F6AD","1F6AF","1F6B1","1F6B7","1F4F5","1F51E","2622-FE0F","2623-FE0F","2B06-FE0F","2197-FE0F","27A1-FE0F","2198-FE0F","2B07-FE0F","2199-FE0F","2B05-FE0F","2196-FE0F","2195-FE0F","2194-FE0F","21A9-FE0F","21AA-FE0F","2934-FE0F","2935-FE0F","1F503","1F504","1F519","1F51A","1F51B","1F51C","1F51D","1F6D0","269B-FE0F","1F549-FE0F","2721-FE0F","2638-FE0F","262F-FE0F","271D-FE0F","2626-FE0F","262A-FE0F","262E-FE0F","1F54E","1F52F","2648","2649","264A","264B","264C","264D","264E","264F","2650","2651","2652","2653","26CE","1F500","1F501","1F502","25B6-FE0F","23E9","23ED-FE0F","23EF-FE0F","25C0-FE0F","23EA","23EE-FE0F","1F53C","23EB","1F53D","23EC","23F8-FE0F","23F9-FE0F","23FA-FE0F","23CF-FE0F","1F3A6","1F505","1F506","1F4F6","1F4F3","1F4F4","2640-FE0F","2642-FE0F","26A7-FE0F","2716-FE0F","2795","2796","2797","267E-FE0F","203C-FE0F","2049-FE0F","2753","2754","2755","2757","3030-FE0F","1F4B1","1F4B2","2695-FE0F","267B-FE0F","269C-FE0F","1F531","1F4DB","1F530","2B55","2705","2611-FE0F","2714-FE0F","274C","274E","27B0","27BF","303D-FE0F","2733-FE0F","2734-FE0F","2747-FE0F","00A9-FE0F","00AE-FE0F","2122-FE0F","0023-FE0F-20E3","002A-FE0F-20E3","0030-FE0F-20E3","0031-FE0F-20E3","0032-FE0F-20E3","0033-FE0F-20E3","0034-FE0F-20E3","0035-FE0F-20E3","0036-FE0F-20E3","0037-FE0F-20E3","0038-FE0F-20E3","0039-FE0F-20E3","1F51F","1F520","1F521","1F522","1F523","1F524","1F170-FE0F","1F18E","1F171-FE0F","1F191","1F192","1F193","2139-FE0F","1F194","24C2-FE0F","1F195","1F196","1F17E-FE0F","1F197","1F17F-FE0F","1F198","1F199","1F19A","1F201","1F202-FE0F","1F237-FE0F","1F236","1F22F","1F250","1F239","1F21A","1F232","1F251","1F238","1F234","1F233","3297-FE0F","3299-FE0F","1F23A","1F235","1F534","1F7E0","1F7E1","1F7E2","1F535","1F7E3","1F7E4","26AB","26AA","1F7E5","1F7E7","1F7E8","1F7E9","1F7E6","1F7EA","1F7EB","2B1B","2B1C","25FC-FE0F","25FB-FE0F","25FE","25FD","25AA-FE0F","25AB-FE0F","1F536","1F537","1F538","1F539","1F53A","1F53B","1F4A0","1F518","1F533","1F532"]},{id:"flags",name:"Flags",emojis:["1F1E6-1F1E8","1F1E6-1F1E9","1F1E6-1F1EA","1F1E6-1F1EB","1F1E6-1F1EC","1F1E6-1F1EE","1F1E6-1F1F1","1F1E6-1F1F2","1F1E6-1F1F4","1F1E6-1F1F6","1F1E6-1F1F7","1F1E6-1F1F8","1F1E6-1F1F9","1F1E6-1F1FA","1F1E6-1F1FC","1F1E6-1F1FD","1F1E6-1F1FF","1F1E7-1F1E6","1F1E7-1F1E7","1F1E7-1F1E9","1F1E7-1F1EA","1F1E7-1F1EB","1F1E7-1F1EC","1F1E7-1F1ED","1F1E7-1F1EE","1F1E7-1F1EF","1F1E7-1F1F1","1F1E7-1F1F2","1F1E7-1F1F3","1F1E7-1F1F4","1F1E7-1F1F6","1F1E7-1F1F7","1F1E7-1F1F8","1F1E7-1F1F9","1F1E7-1F1FB","1F1E7-1F1FC","1F1E7-1F1FE","1F1E7-1F1FF","1F1E8-1F1E6","1F1E8-1F1E8","1F1E8-1F1E9","1F1E8-1F1EB","1F1E8-1F1EC","1F1E8-1F1ED","1F1E8-1F1EE","1F1E8-1F1F0","1F1E8-1F1F1","1F1E8-1F1F2","1F1E8-1F1F3","1F1E8-1F1F4","1F1E8-1F1F5","1F1E8-1F1F7","1F1E8-1F1FA","1F1E8-1F1FB","1F1E8-1F1FC","1F1E8-1F1FD","1F1E8-1F1FE","1F1E8-1F1FF","1F1E9-1F1EA","1F1E9-1F1EC","1F1E9-1F1EF","1F1E9-1F1F0","1F1E9-1F1F2","1F1E9-1F1F4","1F1E9-1F1FF","1F1EA-1F1E6","1F1EA-1F1E8","1F1EA-1F1EA","1F1EA-1F1EC","1F1EA-1F1ED","1F1EA-1F1F7","1F1EA-1F1F8","1F1EA-1F1F9","1F1EA-1F1FA","1F1EB-1F1EE","1F1EB-1F1EF","1F1EB-1F1F0","1F1EB-1F1F2","1F1EB-1F1F4","1F1EB-1F1F7","1F1EC-1F1E6","1F1EC-1F1E7","1F1EC-1F1E9","1F1EC-1F1EA","1F1EC-1F1EB","1F1EC-1F1EC","1F1EC-1F1ED","1F1EC-1F1EE","1F1EC-1F1F1","1F1EC-1F1F2","1F1EC-1F1F3","1F1EC-1F1F5","1F1EC-1F1F6","1F1EC-1F1F7","1F1EC-1F1F8","1F1EC-1F1F9","1F1EC-1F1FA","1F1EC-1F1FC","1F1EC-1F1FE","1F1ED-1F1F0","1F1ED-1F1F2","1F1ED-1F1F3","1F1ED-1F1F7","1F1ED-1F1F9","1F1ED-1F1FA","1F1EE-1F1E8","1F1EE-1F1E9","1F1EE-1F1EA","1F1EE-1F1F1","1F1EE-1F1F2","1F1EE-1F1F3","1F1EE-1F1F4","1F1EE-1F1F6","1F1EE-1F1F7","1F1EE-1F1F8","1F1EE-1F1F9","1F1EF-1F1EA","1F1EF-1F1F2","1F1EF-1F1F4","1F1EF-1F1F5","1F1F0-1F1EA","1F1F0-1F1EC","1F1F0-1F1ED","1F1F0-1F1EE","1F1F0-1F1F2","1F1F0-1F1F3","1F1F0-1F1F5","1F1F0-1F1F7","1F1F0-1F1FC","1F1F0-1F1FE","1F1F0-1F1FF","1F1F1-1F1E6","1F1F1-1F1E7","1F1F1-1F1E8","1F1F1-1F1EE","1F1F1-1F1F0","1F1F1-1F1F7","1F1F1-1F1F8","1F1F1-1F1F9","1F1F1-1F1FA","1F1F1-1F1FB","1F1F1-1F1FE","1F1F2-1F1E6","1F1F2-1F1E8","1F1F2-1F1E9","1F1F2-1F1EA","1F1F2-1F1EB","1F1F2-1F1EC","1F1F2-1F1ED","1F1F2-1F1F0","1F1F2-1F1F1","1F1F2-1F1F2","1F1F2-1F1F3","1F1F2-1F1F4","1F1F2-1F1F5","1F1F2-1F1F6","1F1F2-1F1F7","1F1F2-1F1F8","1F1F2-1F1F9","1F1F2-1F1FA","1F1F2-1F1FB","1F1F2-1F1FC","1F1F2-1F1FD","1F1F2-1F1FE","1F1F2-1F1FF","1F1F3-1F1E6","1F1F3-1F1E8","1F1F3-1F1EA","1F1F3-1F1EB","1F1F3-1F1EC","1F1F3-1F1EE","1F1F3-1F1F1","1F1F3-1F1F4","1F1F3-1F1F5","1F1F3-1F1F7","1F1F3-1F1FA","1F1F3-1F1FF","1F1F4-1F1F2","1F1F5-1F1E6","1F1F5-1F1EA","1F1F5-1F1EB","1F1F5-1F1EC","1F1F5-1F1ED","1F1F5-1F1F0","1F1F5-1F1F1","1F1F5-1F1F2","1F1F5-1F1F3","1F1F5-1F1F7","1F1F5-1F1F8","1F1F5-1F1F9","1F1F5-1F1FC","1F1F5-1F1FE","1F1F6-1F1E6","1F1F7-1F1EA","1F1F7-1F1F4","1F1F7-1F1F8","1F1F7-1F1FA","1F1F7-1F1FC","1F1F8-1F1E6","1F1F8-1F1E7","1F1F8-1F1E8","1F1F8-1F1E9","1F1F8-1F1EA","1F1F8-1F1EC","1F1F8-1F1ED","1F1F8-1F1EE","1F1F8-1F1EF","1F1F8-1F1F0","1F1F8-1F1F1","1F1F8-1F1F2","1F1F8-1F1F3","1F1F8-1F1F4","1F1F8-1F1F7","1F1F8-1F1F8","1F1F8-1F1F9","1F1F8-1F1FB","1F1F8-1F1FD","1F1F8-1F1FE","1F1F8-1F1FF","1F1F9-1F1E6","1F1F9-1F1E8","1F1F9-1F1E9","1F1F9-1F1EB","1F1F9-1F1EC","1F1F9-1F1ED","1F1F9-1F1EF","1F1F9-1F1F0","1F1F9-1F1F1","1F1F9-1F1F2","1F1F9-1F1F3","1F1F9-1F1F4","1F1F9-1F1F7","1F1F9-1F1F9","1F1F9-1F1FB","1F1F9-1F1FC","1F1F9-1F1FF","1F1FA-1F1E6","1F1FA-1F1EC","1F1FA-1F1F2","1F1FA-1F1F3","1F1FA-1F1F8","1F1FA-1F1FE","1F1FA-1F1FF","1F1FB-1F1E6","1F1FB-1F1E8","1F1FB-1F1EA","1F1FB-1F1EC","1F1FB-1F1EE","1F1FB-1F1F3","1F1FB-1F1FA","1F1FC-1F1EB","1F1FC-1F1F8","1F1FD-1F1F0","1F1FE-1F1EA","1F1FE-1F1F9","1F1FF-1F1E6","1F1FF-1F1F2","1F1FF-1F1FC","1F38C","1F3C1","1F3F3-FE0F","1F3F3-FE0F-200D-1F308","1F3F3-FE0F-200D-26A7-FE0F","1F3F4","1F3F4-200D-2620-FE0F","1F3F4-E0067-E0062-E0065-E006E-E0067-E007F","1F3F4-E0067-E0062-E0073-E0063-E0074-E007F","1F3F4-E0067-E0062-E0077-E006C-E0073-E007F","1F6A9"]}],JDn=[{name:"Grinning Face",unified:"1F600",text:":D",keywords:["grinning_face","face","smile","happy","joy",":D","grin"],sheet:[30,32],shortName:"grinning"},{name:"Smiling Face with Open Mouth",unified:"1F603",text:":)",emoticons:["=)","=-)"],keywords:["grinning_face_with_big_eyes","face","happy","joy","haha",":D",":)","smile","funny"],sheet:[30,35],shortName:"smiley"},{name:"Smiling Face with Open Mouth and Smiling Eyes",unified:"1F604",text:":)",emoticons:["C:","c:",":D",":-D"],keywords:["grinning_face_with_smiling_eyes","face","happy","joy","funny","haha","laugh","like",":D",":)","smile"],sheet:[30,36],shortName:"smile"},{name:"Grinning Face with Smiling Eyes",unified:"1F601",keywords:["beaming_face_with_smiling_eyes","face","happy","smile","joy","kawaii"],sheet:[30,33],shortName:"grin"},{name:"Smiling Face with Open Mouth and Tightly-Closed Eyes",unified:"1F606",emoticons:[":>",":->"],keywords:["grinning_squinting_face","happy","joy","lol","satisfied","haha","face","glad","XD","laugh"],sheet:[30,38],shortNames:["satisfied"],shortName:"laughing"},{name:"Smiling Face with Open Mouth and Cold Sweat",unified:"1F605",keywords:["grinning_face_with_sweat","face","hot","happy","laugh","sweat","smile","relief"],sheet:[30,37],shortName:"sweat_smile"},{name:"Rolling on the Floor Laughing",unified:"1F923",keywords:["rolling_on_the_floor_laughing","face","rolling","floor","laughing","lol","haha","rofl"],sheet:[38,19],shortName:"rolling_on_the_floor_laughing"},{name:"Face with Tears of Joy",unified:"1F602",keywords:["face_with_tears_of_joy","face","cry","tears","weep","happy","happytears","haha"],sheet:[30,34],shortName:"joy"},{name:"Slightly Smiling Face",unified:"1F642",emoticons:[":)","(:",":-)"],keywords:["slightly_smiling_face","face","smile"],sheet:[31,40],shortName:"slightly_smiling_face"},{name:"Upside-Down Face",unified:"1F643",keywords:["upside_down_face","face","flipped","silly","smile"],sheet:[31,41],shortName:"upside_down_face"},{name:"Winking Face",unified:"1F609",text:";)",emoticons:[";)",";-)"],keywords:["winking_face","face","happy","mischievous","secret",";)","smile","eye"],sheet:[30,41],shortName:"wink"},{name:"Smiling Face with Smiling Eyes",unified:"1F60A",text:":)",keywords:["smiling_face_with_smiling_eyes","face","smile","happy","flushed","crush","embarrassed","shy","joy"],sheet:[30,42],shortName:"blush"},{name:"Smiling Face with Halo",unified:"1F607",keywords:["smiling_face_with_halo","face","angel","heaven","halo"],sheet:[30,39],shortName:"innocent"},{name:"Smiling Face with Smiling Eyes and Three Hearts",unified:"1F970",keywords:["smiling_face_with_hearts","face","love","like","affection","valentines","infatuation","crush","hearts","adore"],sheet:[42,13],shortName:"smiling_face_with_3_hearts"},{name:"Smiling Face with Heart-Shaped Eyes",unified:"1F60D",keywords:["smiling_face_with_heart_eyes","face","love","like","affection","valentines","infatuation","crush","heart"],sheet:[30,45],shortName:"heart_eyes"},{name:"Grinning Face with Star Eyes",unified:"1F929",keywords:["star_struck","face","smile","starry","eyes","grinning"],sheet:[38,42],shortNames:["grinning_face_with_star_eyes"],shortName:"star-struck"},{name:"Face Throwing a Kiss",unified:"1F618",emoticons:[":*",":-*"],keywords:["face_blowing_a_kiss","face","love","like","affection","valentines","infatuation","kiss"],sheet:[30,56],shortName:"kissing_heart"},{name:"Kissing Face",unified:"1F617",keywords:["kissing_face","love","like","face","3","valentines","infatuation","kiss"],sheet:[30,55],shortName:"kissing"},{name:"White Smiling Face",unified:"263A-FE0F",keywords:["smiling_face","face","blush","massage","happiness"],sheet:[54,22],shortName:"relaxed"},{name:"Kissing Face with Closed Eyes",unified:"1F61A",keywords:["kissing_face_with_closed_eyes","face","love","like","affection","valentines","infatuation","kiss"],sheet:[31,0],shortName:"kissing_closed_eyes"},{name:"Kissing Face with Smiling Eyes",unified:"1F619",keywords:["kissing_face_with_smiling_eyes","face","affection","valentines","infatuation","kiss"],sheet:[30,57],shortName:"kissing_smiling_eyes"},{name:"Smiling Face with Tear",unified:"1F972",keywords:["smiling face with tear","sad","cry","pretend"],sheet:[42,15],shortName:"smiling_face_with_tear"},{name:"Face Savouring Delicious Food",unified:"1F60B",keywords:["face_savoring_food","happy","joy","tongue","smile","face","silly","yummy","nom","delicious","savouring"],sheet:[30,43],shortName:"yum"},{name:"Face with Stuck-out Tongue",unified:"1F61B",text:":p",emoticons:[":p",":-p",":P",":-P",":b",":-b"],keywords:["face_with_tongue","face","prank","childish","playful","mischievous","smile","tongue"],sheet:[31,1],shortName:"stuck_out_tongue"},{name:"Face with Stuck-out Tongue and Winking Eye",unified:"1F61C",text:";p",emoticons:[";p",";-p",";b",";-b",";P",";-P"],keywords:["winking_face_with_tongue","face","prank","childish","playful","mischievous","smile","wink","tongue"],sheet:[31,2],shortName:"stuck_out_tongue_winking_eye"},{name:"Grinning Face with One Large and One Small Eye",unified:"1F92A",keywords:["zany_face","face","goofy","crazy"],sheet:[38,43],shortNames:["grinning_face_with_one_large_and_one_small_eye"],shortName:"zany_face"},{name:"Face with Stuck-out Tongue and Tightly-Closed Eyes",unified:"1F61D",keywords:["squinting_face_with_tongue","face","prank","playful","mischievous","smile","tongue"],sheet:[31,3],shortName:"stuck_out_tongue_closed_eyes"},{name:"Money-Mouth Face",unified:"1F911",keywords:["money_mouth_face","face","rich","dollar","money"],sheet:[37,24],shortName:"money_mouth_face"},{name:"Hugging Face",unified:"1F917",keywords:["hugging_face","face","smile","hug"],sheet:[37,30],shortName:"hugging_face"},{name:"Smiling Face with Smiling Eyes and Hand Covering Mouth",unified:"1F92D",keywords:["face_with_hand_over_mouth","face","whoops","shock","surprise"],sheet:[38,46],shortNames:["smiling_face_with_smiling_eyes_and_hand_covering_mouth"],shortName:"face_with_hand_over_mouth"},{name:"Face with Finger Covering Closed Lips",unified:"1F92B",keywords:["shushing_face","face","quiet","shhh"],sheet:[38,44],shortNames:["face_with_finger_covering_closed_lips"],shortName:"shushing_face"},{name:"Thinking Face",unified:"1F914",keywords:["thinking_face","face","hmmm","think","consider"],sheet:[37,27],shortName:"thinking_face"},{name:"Zipper-Mouth Face",unified:"1F910",keywords:["zipper_mouth_face","face","sealed","zipper","secret"],sheet:[37,23],shortName:"zipper_mouth_face"},{name:"Face with One Eyebrow Raised",unified:"1F928",keywords:["face_with_raised_eyebrow","face","distrust","scepticism","disapproval","disbelief","surprise"],sheet:[38,41],shortNames:["face_with_one_eyebrow_raised"],shortName:"face_with_raised_eyebrow"},{name:"Neutral Face",unified:"1F610",emoticons:[":|",":-|"],keywords:["neutral_face","indifference","meh",":|","neutral"],sheet:[30,48],shortName:"neutral_face"},{name:"Expressionless Face",unified:"1F611",keywords:["expressionless_face","face","indifferent","-_-","meh","deadpan"],sheet:[30,49],shortName:"expressionless"},{name:"Face Without Mouth",unified:"1F636",keywords:["face_without_mouth","face","hellokitty"],sheet:[31,28],shortName:"no_mouth"},{name:"Smirking Face",unified:"1F60F",keywords:["smirking_face","face","smile","mean","prank","smug","sarcasm"],sheet:[30,47],shortName:"smirk"},{name:"Unamused Face",unified:"1F612",text:":(",keywords:["unamused_face","indifference","bored","straight face","serious","sarcasm","unimpressed","skeptical","dubious","side_eye"],sheet:[30,50],shortName:"unamused"},{name:"Face with Rolling Eyes",unified:"1F644",keywords:["face_with_rolling_eyes","face","eyeroll","frustrated"],sheet:[31,42],shortName:"face_with_rolling_eyes"},{name:"Grimacing Face",unified:"1F62C",keywords:["grimacing_face","face","grimace","teeth"],sheet:[31,18],shortName:"grimacing"},{name:"Lying Face",unified:"1F925",keywords:["lying_face","face","lie","pinocchio"],sheet:[38,21],shortName:"lying_face"},{name:"Relieved Face",unified:"1F60C",keywords:["relieved_face","face","relaxed","phew","massage","happiness"],sheet:[30,44],shortName:"relieved"},{name:"Pensive Face",unified:"1F614",keywords:["pensive_face","face","sad","depressed","upset"],sheet:[30,52],shortName:"pensive"},{name:"Sleepy Face",unified:"1F62A",keywords:["sleepy_face","face","tired","rest","nap"],sheet:[31,16],shortName:"sleepy"},{name:"Drooling Face",unified:"1F924",keywords:["drooling_face","face"],sheet:[38,20],shortName:"drooling_face"},{name:"Sleeping Face",unified:"1F634",keywords:["sleeping_face","face","tired","sleepy","night","zzz"],sheet:[31,26],shortName:"sleeping"},{name:"Face with Medical Mask",unified:"1F637",keywords:["face_with_medical_mask","face","sick","ill","disease"],sheet:[31,29],shortName:"mask"},{name:"Face with Thermometer",unified:"1F912",keywords:["face_with_thermometer","sick","temperature","thermometer","cold","fever"],sheet:[37,25],shortName:"face_with_thermometer"},{name:"Face with Head-Bandage",unified:"1F915",keywords:["face_with_head_bandage","injured","clumsy","bandage","hurt"],sheet:[37,28],shortName:"face_with_head_bandage"},{name:"Nauseated Face",unified:"1F922",keywords:["nauseated_face","face","vomit","gross","green","sick","throw up","ill"],sheet:[38,18],shortName:"nauseated_face"},{name:"Face with Open Mouth Vomiting",unified:"1F92E",keywords:["face_vomiting","face","sick"],sheet:[38,47],shortNames:["face_with_open_mouth_vomiting"],shortName:"face_vomiting"},{name:"Sneezing Face",unified:"1F927",keywords:["sneezing_face","face","gesundheit","sneeze","sick","allergy"],sheet:[38,40],shortName:"sneezing_face"},{name:"Overheated Face",unified:"1F975",keywords:["hot_face","face","feverish","heat","red","sweating"],sheet:[42,18],shortName:"hot_face"},{name:"Freezing Face",unified:"1F976",keywords:["cold_face","face","blue","freezing","frozen","frostbite","icicles"],sheet:[42,19],shortName:"cold_face"},{name:"Face with Uneven Eyes and Wavy Mouth",unified:"1F974",keywords:["woozy_face","face","dizzy","intoxicated","tipsy","wavy"],sheet:[42,17],shortName:"woozy_face"},{name:"Dizzy Face",unified:"1F635",keywords:["dizzy_face","spent","unconscious","xox","dizzy"],sheet:[31,27],shortName:"dizzy_face"},{name:"Shocked Face with Exploding Head",unified:"1F92F",keywords:["exploding_head","face","shocked","mind","blown"],sheet:[38,48],shortNames:["shocked_face_with_exploding_head"],shortName:"exploding_head"},{name:"Face with Cowboy Hat",unified:"1F920",keywords:["cowboy_hat_face","face","cowgirl","hat"],sheet:[38,16],shortName:"face_with_cowboy_hat"},{name:"Face with Party Horn and Party Hat",unified:"1F973",keywords:["partying_face","face","celebration","woohoo"],sheet:[42,16],shortName:"partying_face"},{name:"Disguised Face",unified:"1F978",keywords:["disguised face","pretent","brows","glasses","moustache"],sheet:[42,26],shortName:"disguised_face"},{name:"Smiling Face with Sunglasses",unified:"1F60E",emoticons:["8)"],keywords:["smiling_face_with_sunglasses","face","cool","smile","summer","beach","sunglass"],sheet:[30,46],shortName:"sunglasses"},{name:"Nerd Face",unified:"1F913",keywords:["nerd_face","face","nerdy","geek","dork"],sheet:[37,26],shortName:"nerd_face"},{name:"Face with Monocle",unified:"1F9D0",keywords:["face_with_monocle","face","stuffy","wealthy"],sheet:[45,34],shortName:"face_with_monocle"},{name:"Confused Face",unified:"1F615",emoticons:[":\\",":-\\",":/",":-/"],keywords:["confused_face","face","indifference","huh","weird","hmmm",":/"],sheet:[30,53],shortName:"confused"},{name:"Worried Face",unified:"1F61F",keywords:["worried_face","face","concern","nervous",":("],sheet:[31,5],shortName:"worried"},{name:"Slightly Frowning Face",unified:"1F641",keywords:["slightly_frowning_face","face","frowning","disappointed","sad","upset"],sheet:[31,39],shortName:"slightly_frowning_face"},{name:"Frowning Face",unified:"2639-FE0F",keywords:["frowning_face","face","sad","upset","frown"],sheet:[54,21],shortName:"white_frowning_face"},{name:"Face with Open Mouth",unified:"1F62E",emoticons:[":o",":-o",":O",":-O"],keywords:["face_with_open_mouth","face","surprise","impressed","wow","whoa",":O"],sheet:[31,20],shortName:"open_mouth"},{name:"Hushed Face",unified:"1F62F",keywords:["hushed_face","face","woo","shh"],sheet:[31,21],shortName:"hushed"},{name:"Astonished Face",unified:"1F632",keywords:["astonished_face","face","xox","surprised","poisoned"],sheet:[31,24],shortName:"astonished"},{name:"Flushed Face",unified:"1F633",keywords:["flushed_face","face","blush","shy","flattered"],sheet:[31,25],shortName:"flushed"},{name:"Face with Pleading Eyes",unified:"1F97A",keywords:["pleading_face","face","begging","mercy"],sheet:[42,27],shortName:"pleading_face"},{name:"Frowning Face with Open Mouth",unified:"1F626",keywords:["frowning_face_with_open_mouth","face","aw","what"],sheet:[31,12],shortName:"frowning"},{name:"Anguished Face",unified:"1F627",emoticons:["D:"],keywords:["anguished_face","face","stunned","nervous"],sheet:[31,13],shortName:"anguished"},{name:"Fearful Face",unified:"1F628",keywords:["fearful_face","face","scared","terrified","nervous","oops","huh"],sheet:[31,14],shortName:"fearful"},{name:"Face with Open Mouth and Cold Sweat",unified:"1F630",keywords:["anxious_face_with_sweat","face","nervous","sweat"],sheet:[31,22],shortName:"cold_sweat"},{name:"Disappointed but Relieved Face",unified:"1F625",keywords:["sad_but_relieved_face","face","phew","sweat","nervous"],sheet:[31,11],shortName:"disappointed_relieved"},{name:"Crying Face",unified:"1F622",text:":'(",emoticons:[":'("],keywords:["crying_face","face","tears","sad","depressed","upset",":'("],sheet:[31,8],shortName:"cry"},{name:"Loudly Crying Face",unified:"1F62D",text:":'(",keywords:["loudly_crying_face","face","cry","tears","sad","upset","depressed"],sheet:[31,19],shortName:"sob"},{name:"Face Screaming in Fear",unified:"1F631",keywords:["face_screaming_in_fear","face","munch","scared","omg"],sheet:[31,23],shortName:"scream"},{name:"Confounded Face",unified:"1F616",keywords:["confounded_face","face","confused","sick","unwell","oops",":S"],sheet:[30,54],shortName:"confounded"},{name:"Persevering Face",unified:"1F623",keywords:["persevering_face","face","sick","no","upset","oops"],sheet:[31,9],shortName:"persevere"},{name:"Disappointed Face",unified:"1F61E",text:":(",emoticons:["):",":(",":-("],keywords:["disappointed_face","face","sad","upset","depressed",":("],sheet:[31,4],shortName:"disappointed"},{name:"Face with Cold Sweat",unified:"1F613",keywords:["downcast_face_with_sweat","face","hot","sad","tired","exercise"],sheet:[30,51],shortName:"sweat"},{name:"Weary Face",unified:"1F629",keywords:["weary_face","face","tired","sleepy","sad","frustrated","upset"],sheet:[31,15],shortName:"weary"},{name:"Tired Face",unified:"1F62B",keywords:["tired_face","sick","whine","upset","frustrated"],sheet:[31,17],shortName:"tired_face"},{name:"Yawning Face",unified:"1F971",keywords:["yawning_face","tired","sleepy"],sheet:[42,14],shortName:"yawning_face"},{name:"Face with Look of Triumph",unified:"1F624",keywords:["face_with_steam_from_nose","face","gas","phew","proud","pride"],sheet:[31,10],shortName:"triumph"},{name:"Pouting Face",unified:"1F621",keywords:["pouting_face","angry","mad","hate","despise"],sheet:[31,7],shortName:"rage"},{name:"Angry Face",unified:"1F620",emoticons:[">:(",">:-("],keywords:["angry_face","mad","face","annoyed","frustrated"],sheet:[31,6],shortName:"angry"},{name:"Serious Face with Symbols Covering Mouth",unified:"1F92C",keywords:["face_with_symbols_on_mouth","face","swearing","cursing","cussing","profanity","expletive"],sheet:[38,45],shortNames:["serious_face_with_symbols_covering_mouth"],shortName:"face_with_symbols_on_mouth"},{name:"Smiling Face with Horns",unified:"1F608",keywords:["smiling_face_with_horns","devil","horns"],sheet:[30,40],shortName:"smiling_imp"},{name:"Imp",unified:"1F47F",keywords:["angry_face_with_horns","devil","angry","horns"],sheet:[23,49],shortName:"imp"},{name:"Skull",unified:"1F480",keywords:["skull","dead","skeleton","creepy","death"],sheet:[23,50],shortName:"skull"},{name:"Skull and Crossbones",unified:"2620-FE0F",keywords:["skull_and_crossbones","poison","danger","deadly","scary","death","pirate","evil"],sheet:[54,13],shortName:"skull_and_crossbones"},{name:"Pile of Poo",unified:"1F4A9",keywords:["pile_of_poo","hankey","shitface","fail","turd","shit"],sheet:[25,53],shortNames:["poop","shit"],shortName:"hankey"},{name:"Clown Face",unified:"1F921",keywords:["clown_face","face"],sheet:[38,17],shortName:"clown_face"},{name:"Japanese Ogre",unified:"1F479",keywords:["ogre","monster","red","mask","halloween","scary","creepy","devil","demon","japanese","ogre"],sheet:[23,38],shortName:"japanese_ogre"},{name:"Japanese Goblin",unified:"1F47A",keywords:["goblin","red","evil","mask","monster","scary","creepy","japanese","goblin"],sheet:[23,39],shortName:"japanese_goblin"},{name:"Ghost",unified:"1F47B",keywords:["ghost","halloween","spooky","scary"],sheet:[23,40],shortName:"ghost"},{name:"Extraterrestrial Alien",unified:"1F47D",keywords:["alien","UFO","paul","weird","outer_space"],sheet:[23,47],shortName:"alien"},{name:"Alien Monster",unified:"1F47E",keywords:["alien_monster","game","arcade","play"],sheet:[23,48],shortName:"space_invader"},{name:"Robot Face",unified:"1F916",keywords:["robot","computer","machine","bot"],sheet:[37,29],shortName:"robot_face"},{name:"Smiling Cat Face with Open Mouth",unified:"1F63A",keywords:["grinning_cat","animal","cats","happy","smile"],sheet:[31,32],shortName:"smiley_cat"},{name:"Grinning Cat Face with Smiling Eyes",unified:"1F638",keywords:["grinning_cat_with_smiling_eyes","animal","cats","smile"],sheet:[31,30],shortName:"smile_cat"},{name:"Cat Face with Tears of Joy",unified:"1F639",keywords:["cat_with_tears_of_joy","animal","cats","haha","happy","tears"],sheet:[31,31],shortName:"joy_cat"},{name:"Smiling Cat Face with Heart-Shaped Eyes",unified:"1F63B",keywords:["smiling_cat_with_heart_eyes","animal","love","like","affection","cats","valentines","heart"],sheet:[31,33],shortName:"heart_eyes_cat"},{name:"Cat Face with Wry Smile",unified:"1F63C",keywords:["cat_with_wry_smile","animal","cats","smirk"],sheet:[31,34],shortName:"smirk_cat"},{name:"Kissing Cat Face with Closed Eyes",unified:"1F63D",keywords:["kissing_cat","animal","cats","kiss"],sheet:[31,35],shortName:"kissing_cat"},{name:"Weary Cat Face",unified:"1F640",keywords:["weary_cat","animal","cats","munch","scared","scream"],sheet:[31,38],shortName:"scream_cat"},{name:"Crying Cat Face",unified:"1F63F",keywords:["crying_cat","animal","tears","weep","sad","cats","upset","cry"],sheet:[31,37],shortName:"crying_cat_face"},{name:"Pouting Cat Face",unified:"1F63E",keywords:["pouting_cat","animal","cats"],sheet:[31,36],shortName:"pouting_cat"},{name:"See-No-Evil Monkey",unified:"1F648",keywords:["see_no_evil_monkey","monkey","animal","nature","haha"],sheet:[32,39],shortName:"see_no_evil"},{name:"Hear-No-Evil Monkey",unified:"1F649",keywords:["hear_no_evil_monkey","animal","monkey","nature"],sheet:[32,40],shortName:"hear_no_evil"},{name:"Speak-No-Evil Monkey",unified:"1F64A",keywords:["speak_no_evil_monkey","monkey","animal","nature","omg"],sheet:[32,41],shortName:"speak_no_evil"},{name:"Kiss Mark",unified:"1F48B",keywords:["kiss_mark","face","lips","love","like","affection","valentines"],sheet:[25,23],shortName:"kiss"},{name:"Love Letter",unified:"1F48C",keywords:["love_letter","email","like","affection","envelope","valentines"],sheet:[25,24],shortName:"love_letter"},{name:"Heart with Arrow",unified:"1F498",keywords:["heart_with_arrow","love","like","heart","affection","valentines"],sheet:[25,36],shortName:"cupid"},{name:"Heart with Ribbon",unified:"1F49D",keywords:["heart_with_ribbon","love","valentines"],sheet:[25,41],shortName:"gift_heart"},{name:"Sparkling Heart",unified:"1F496",keywords:["sparkling_heart","love","like","affection","valentines"],sheet:[25,34],shortName:"sparkling_heart"},{name:"Growing Heart",unified:"1F497",keywords:["growing_heart","like","love","affection","valentines","pink"],sheet:[25,35],shortName:"heartpulse"},{name:"Beating Heart",unified:"1F493",keywords:["beating_heart","love","like","affection","valentines","pink","heart"],sheet:[25,31],shortName:"heartbeat"},{name:"Revolving Hearts",unified:"1F49E",keywords:["revolving_hearts","love","like","affection","valentines"],sheet:[25,42],shortName:"revolving_hearts"},{name:"Two Hearts",unified:"1F495",keywords:["two_hearts","love","like","affection","valentines","heart"],sheet:[25,33],shortName:"two_hearts"},{name:"Heart Decoration",unified:"1F49F",keywords:["heart_decoration","purple-square","love","like"],sheet:[25,43],shortName:"heart_decoration"},{name:"Heart Exclamation",unified:"2763-FE0F",keywords:["heart_exclamation","decoration","love"],sheet:[56,31],shortName:"heavy_heart_exclamation_mark_ornament"},{name:"Broken Heart",unified:"1F494",text:"</3",emoticons:["</3"],keywords:["broken_heart","sad","sorry","break","heart","heartbreak"],sheet:[25,32],shortName:"broken_heart"},{name:"Heavy Black Heart",unified:"2764-FE0F",text:"<3",emoticons:["<3"],keywords:["red_heart","love","like","valentines"],sheet:[56,32],shortName:"heart"},{name:"Orange Heart",unified:"1F9E1",keywords:["orange_heart","love","like","affection","valentines"],sheet:[51,44],shortName:"orange_heart"},{name:"Yellow Heart",unified:"1F49B",text:"<3",keywords:["yellow_heart","love","like","affection","valentines"],sheet:[25,39],shortName:"yellow_heart"},{name:"Green Heart",unified:"1F49A",text:"<3",keywords:["green_heart","love","like","affection","valentines"],sheet:[25,38],shortName:"green_heart"},{name:"Blue Heart",unified:"1F499",text:"<3",keywords:["blue_heart","love","like","affection","valentines"],sheet:[25,37],shortName:"blue_heart"},{name:"Purple Heart",unified:"1F49C",text:"<3",keywords:["purple_heart","love","like","affection","valentines"],sheet:[25,40],shortName:"purple_heart"},{name:"Brown Heart",unified:"1F90E",keywords:["brown_heart","coffee"],sheet:[37,16],shortName:"brown_heart"},{name:"Black Heart",unified:"1F5A4",keywords:["black_heart","evil"],sheet:[30,6],shortName:"black_heart"},{name:"White Heart",unified:"1F90D",keywords:["white_heart","pure"],sheet:[37,15],shortName:"white_heart"},{name:"Hundred Points Symbol",unified:"1F4AF",keywords:["hundred_points","score","perfect","numbers","century","exam","quiz","test","pass","hundred"],sheet:[26,6],shortName:"100"},{name:"Anger Symbol",unified:"1F4A2",keywords:["anger_symbol","angry","mad"],sheet:[25,46],shortName:"anger"},{name:"Collision Symbol",unified:"1F4A5",keywords:["collision","bomb","explode","explosion","collision","blown"],sheet:[25,49],shortNames:["collision"],shortName:"boom"},{name:"Dizzy Symbol",unified:"1F4AB",keywords:["dizzy","star","sparkle","shoot","magic"],sheet:[26,2],shortName:"dizzy"},{name:"Splashing Sweat Symbol",unified:"1F4A6",keywords:["sweat_droplets","water","drip","oops"],sheet:[25,50],shortName:"sweat_drops"},{name:"Dash Symbol",unified:"1F4A8",keywords:["dashing_away","wind","air","fast","shoo","fart","smoke","puff"],sheet:[25,52],shortName:"dash"},{name:"Hole",unified:"1F573-FE0F",keywords:["hole","embarrassing"],sheet:[29,6],shortName:"hole"},{name:"Bomb",unified:"1F4A3",keywords:["bomb","boom","explode","explosion","terrorism"],sheet:[25,47],shortName:"bomb"},{name:"Speech Balloon",unified:"1F4AC",keywords:["speech_balloon","bubble","words","message","talk","chatting"],sheet:[26,3],shortName:"speech_balloon"},{name:"Eye in Speech Bubble",unified:"1F441-FE0F-200D-1F5E8-FE0F",keywords:["eye_in_speech_bubble","info"],sheet:[12,28],hidden:["twitter","facebook"],shortName:"eye-in-speech-bubble"},{name:"Left Speech Bubble",unified:"1F5E8-FE0F",keywords:["left_speech_bubble","words","message","talk","chatting"],sheet:[30,23],shortName:"left_speech_bubble"},{name:"Right Anger Bubble",unified:"1F5EF-FE0F",keywords:["right_anger_bubble","caption","speech","thinking","mad"],sheet:[30,24],shortName:"right_anger_bubble"},{name:"Thought Balloon",unified:"1F4AD",keywords:["thought_balloon","bubble","cloud","speech","thinking","dream"],sheet:[26,4],shortName:"thought_balloon"},{name:"Sleeping Symbol",unified:"1F4A4",keywords:["zzz","sleepy","tired","dream"],sheet:[25,48],shortName:"zzz"},{name:"Waving Hand Sign",unified:"1F44B",keywords:["waving_hand","hands","gesture","goodbye","solong","farewell","hello","hi","palm"],sheet:[13,16],skinVariations:[{unified:"1F44B-1F3FB",sheet:[13,17]},{unified:"1F44B-1F3FC",sheet:[13,18]},{unified:"1F44B-1F3FD",sheet:[13,19]},{unified:"1F44B-1F3FE",sheet:[13,20]},{unified:"1F44B-1F3FF",sheet:[13,21]}],shortName:"wave"},{name:"Raised Back of Hand",unified:"1F91A",keywords:["raised_back_of_hand","fingers","raised","backhand"],sheet:[37,43],skinVariations:[{unified:"1F91A-1F3FB",sheet:[37,44]},{unified:"1F91A-1F3FC",sheet:[37,45]},{unified:"1F91A-1F3FD",sheet:[37,46]},{unified:"1F91A-1F3FE",sheet:[37,47]},{unified:"1F91A-1F3FF",sheet:[37,48]}],shortName:"raised_back_of_hand"},{name:"Hand with Fingers Splayed",unified:"1F590-FE0F",keywords:["hand_with_fingers_splayed","hand","fingers","palm"],sheet:[29,46],skinVariations:[{unified:"1F590-1F3FB",sheet:[29,47]},{unified:"1F590-1F3FC",sheet:[29,48]},{unified:"1F590-1F3FD",sheet:[29,49]},{unified:"1F590-1F3FE",sheet:[29,50]},{unified:"1F590-1F3FF",sheet:[29,51]}],shortName:"raised_hand_with_fingers_splayed"},{name:"Raised Hand",unified:"270B",keywords:["raised_hand","fingers","stop","highfive","palm","ban"],sheet:[55,54],skinVariations:[{unified:"270B-1F3FB",sheet:[55,55]},{unified:"270B-1F3FC",sheet:[55,56]},{unified:"270B-1F3FD",sheet:[55,57]},{unified:"270B-1F3FE",sheet:[56,0]},{unified:"270B-1F3FF",sheet:[56,1]}],shortNames:["raised_hand"],shortName:"hand"},{name:"Raised Hand with Part Between Middle and Ring Fingers",unified:"1F596",keywords:["vulcan_salute","hand","fingers","spock","star trek"],sheet:[30,0],skinVariations:[{unified:"1F596-1F3FB",sheet:[30,1]},{unified:"1F596-1F3FC",sheet:[30,2]},{unified:"1F596-1F3FD",sheet:[30,3]},{unified:"1F596-1F3FE",sheet:[30,4]},{unified:"1F596-1F3FF",sheet:[30,5]}],shortName:"spock-hand"},{name:"Ok Hand Sign",unified:"1F44C",keywords:["ok_hand","fingers","limbs","perfect","ok","okay"],sheet:[13,22],skinVariations:[{unified:"1F44C-1F3FB",sheet:[13,23]},{unified:"1F44C-1F3FC",sheet:[13,24]},{unified:"1F44C-1F3FD",sheet:[13,25]},{unified:"1F44C-1F3FE",sheet:[13,26]},{unified:"1F44C-1F3FF",sheet:[13,27]}],shortName:"ok_hand"},{name:"Pinched Fingers",unified:"1F90C",keywords:["pinched fingers","size","tiny","small"],sheet:[37,9],skinVariations:[{unified:"1F90C-1F3FB",sheet:[37,10]},{unified:"1F90C-1F3FC",sheet:[37,11]},{unified:"1F90C-1F3FD",sheet:[37,12]},{unified:"1F90C-1F3FE",sheet:[37,13]},{unified:"1F90C-1F3FF",sheet:[37,14]}],shortName:"pinched_fingers"},{name:"Pinching Hand",unified:"1F90F",keywords:["pinching_hand","tiny","small","size"],sheet:[37,17],skinVariations:[{unified:"1F90F-1F3FB",sheet:[37,18]},{unified:"1F90F-1F3FC",sheet:[37,19]},{unified:"1F90F-1F3FD",sheet:[37,20]},{unified:"1F90F-1F3FE",sheet:[37,21]},{unified:"1F90F-1F3FF",sheet:[37,22]}],shortName:"pinching_hand"},{name:"Victory Hand",unified:"270C-FE0F",keywords:["victory_hand","fingers","ohyeah","hand","peace","victory","two"],sheet:[56,2],skinVariations:[{unified:"270C-1F3FB",sheet:[56,3]},{unified:"270C-1F3FC",sheet:[56,4]},{unified:"270C-1F3FD",sheet:[56,5]},{unified:"270C-1F3FE",sheet:[56,6]},{unified:"270C-1F3FF",sheet:[56,7]}],shortName:"v"},{name:"Hand with Index and Middle Fingers Crossed",unified:"1F91E",keywords:["crossed_fingers","good","lucky"],sheet:[38,4],skinVariations:[{unified:"1F91E-1F3FB",sheet:[38,5]},{unified:"1F91E-1F3FC",sheet:[38,6]},{unified:"1F91E-1F3FD",sheet:[38,7]},{unified:"1F91E-1F3FE",sheet:[38,8]},{unified:"1F91E-1F3FF",sheet:[38,9]}],shortNames:["hand_with_index_and_middle_fingers_crossed"],shortName:"crossed_fingers"},{name:"I Love You Hand Sign",unified:"1F91F",keywords:["love_you_gesture","hand","fingers","gesture"],sheet:[38,10],skinVariations:[{unified:"1F91F-1F3FB",sheet:[38,11]},{unified:"1F91F-1F3FC",sheet:[38,12]},{unified:"1F91F-1F3FD",sheet:[38,13]},{unified:"1F91F-1F3FE",sheet:[38,14]},{unified:"1F91F-1F3FF",sheet:[38,15]}],shortName:"i_love_you_hand_sign"},{name:"Sign of the Horns",unified:"1F918",keywords:["sign_of_the_horns","hand","fingers","evil_eye","sign_of_horns","rock_on"],sheet:[37,31],skinVariations:[{unified:"1F918-1F3FB",sheet:[37,32]},{unified:"1F918-1F3FC",sheet:[37,33]},{unified:"1F918-1F3FD",sheet:[37,34]},{unified:"1F918-1F3FE",sheet:[37,35]},{unified:"1F918-1F3FF",sheet:[37,36]}],shortNames:["sign_of_the_horns"],shortName:"the_horns"},{name:"Call Me Hand",unified:"1F919",keywords:["call_me_hand","hands","gesture"],sheet:[37,37],skinVariations:[{unified:"1F919-1F3FB",sheet:[37,38]},{unified:"1F919-1F3FC",sheet:[37,39]},{unified:"1F919-1F3FD",sheet:[37,40]},{unified:"1F919-1F3FE",sheet:[37,41]},{unified:"1F919-1F3FF",sheet:[37,42]}],shortName:"call_me_hand"},{name:"White Left Pointing Backhand Index",unified:"1F448",keywords:["backhand_index_pointing_left","direction","fingers","hand","left"],sheet:[12,56],skinVariations:[{unified:"1F448-1F3FB",sheet:[12,57]},{unified:"1F448-1F3FC",sheet:[13,0]},{unified:"1F448-1F3FD",sheet:[13,1]},{unified:"1F448-1F3FE",sheet:[13,2]},{unified:"1F448-1F3FF",sheet:[13,3]}],shortName:"point_left"},{name:"White Right Pointing Backhand Index",unified:"1F449",keywords:["backhand_index_pointing_right","fingers","hand","direction","right"],sheet:[13,4],skinVariations:[{unified:"1F449-1F3FB",sheet:[13,5]},{unified:"1F449-1F3FC",sheet:[13,6]},{unified:"1F449-1F3FD",sheet:[13,7]},{unified:"1F449-1F3FE",sheet:[13,8]},{unified:"1F449-1F3FF",sheet:[13,9]}],shortName:"point_right"},{name:"White Up Pointing Backhand Index",unified:"1F446",keywords:["backhand_index_pointing_up","fingers","hand","direction","up"],sheet:[12,44],skinVariations:[{unified:"1F446-1F3FB",sheet:[12,45]},{unified:"1F446-1F3FC",sheet:[12,46]},{unified:"1F446-1F3FD",sheet:[12,47]},{unified:"1F446-1F3FE",sheet:[12,48]},{unified:"1F446-1F3FF",sheet:[12,49]}],shortName:"point_up_2"},{name:"Reversed Hand with Middle Finger Extended",unified:"1F595",keywords:["middle_finger","hand","fingers","rude","middle","flipping"],sheet:[29,52],skinVariations:[{unified:"1F595-1F3FB",sheet:[29,53]},{unified:"1F595-1F3FC",sheet:[29,54]},{unified:"1F595-1F3FD",sheet:[29,55]},{unified:"1F595-1F3FE",sheet:[29,56]},{unified:"1F595-1F3FF",sheet:[29,57]}],shortNames:["reversed_hand_with_middle_finger_extended"],shortName:"middle_finger"},{name:"White Down Pointing Backhand Index",unified:"1F447",keywords:["backhand_index_pointing_down","fingers","hand","direction","down"],sheet:[12,50],skinVariations:[{unified:"1F447-1F3FB",sheet:[12,51]},{unified:"1F447-1F3FC",sheet:[12,52]},{unified:"1F447-1F3FD",sheet:[12,53]},{unified:"1F447-1F3FE",sheet:[12,54]},{unified:"1F447-1F3FF",sheet:[12,55]}],shortName:"point_down"},{name:"White Up Pointing Index",unified:"261D-FE0F",keywords:["index_pointing_up","hand","fingers","direction","up"],sheet:[54,7],skinVariations:[{unified:"261D-1F3FB",sheet:[54,8]},{unified:"261D-1F3FC",sheet:[54,9]},{unified:"261D-1F3FD",sheet:[54,10]},{unified:"261D-1F3FE",sheet:[54,11]},{unified:"261D-1F3FF",sheet:[54,12]}],shortName:"point_up"},{name:"Thumbs Up Sign",unified:"1F44D",keywords:["thumbs_up","thumbsup","yes","awesome","good","agree","accept","cool","hand","like","+1"],sheet:[13,28],skinVariations:[{unified:"1F44D-1F3FB",sheet:[13,29]},{unified:"1F44D-1F3FC",sheet:[13,30]},{unified:"1F44D-1F3FD",sheet:[13,31]},{unified:"1F44D-1F3FE",sheet:[13,32]},{unified:"1F44D-1F3FF",sheet:[13,33]}],shortNames:["thumbsup"],shortName:"+1"},{name:"Thumbs Down Sign",unified:"1F44E",keywords:["thumbs_down","thumbsdown","no","dislike","hand","-1"],sheet:[13,34],skinVariations:[{unified:"1F44E-1F3FB",sheet:[13,35]},{unified:"1F44E-1F3FC",sheet:[13,36]},{unified:"1F44E-1F3FD",sheet:[13,37]},{unified:"1F44E-1F3FE",sheet:[13,38]},{unified:"1F44E-1F3FF",sheet:[13,39]}],shortNames:["thumbsdown"],shortName:"-1"},{name:"Raised Fist",unified:"270A",keywords:["raised_fist","fingers","hand","grasp"],sheet:[55,48],skinVariations:[{unified:"270A-1F3FB",sheet:[55,49]},{unified:"270A-1F3FC",sheet:[55,50]},{unified:"270A-1F3FD",sheet:[55,51]},{unified:"270A-1F3FE",sheet:[55,52]},{unified:"270A-1F3FF",sheet:[55,53]}],shortName:"fist"},{name:"Fisted Hand Sign",unified:"1F44A",keywords:["oncoming_fist","angry","violence","fist","hit","attack","hand"],sheet:[13,10],skinVariations:[{unified:"1F44A-1F3FB",sheet:[13,11]},{unified:"1F44A-1F3FC",sheet:[13,12]},{unified:"1F44A-1F3FD",sheet:[13,13]},{unified:"1F44A-1F3FE",sheet:[13,14]},{unified:"1F44A-1F3FF",sheet:[13,15]}],shortNames:["punch"],shortName:"facepunch"},{name:"Left-Facing Fist",unified:"1F91B",keywords:["left_facing_fist","hand","fistbump"],sheet:[37,49],skinVariations:[{unified:"1F91B-1F3FB",sheet:[37,50]},{unified:"1F91B-1F3FC",sheet:[37,51]},{unified:"1F91B-1F3FD",sheet:[37,52]},{unified:"1F91B-1F3FE",sheet:[37,53]},{unified:"1F91B-1F3FF",sheet:[37,54]}],shortName:"left-facing_fist"},{name:"Right-Facing Fist",unified:"1F91C",keywords:["right_facing_fist","hand","fistbump"],sheet:[37,55],skinVariations:[{unified:"1F91C-1F3FB",sheet:[37,56]},{unified:"1F91C-1F3FC",sheet:[37,57]},{unified:"1F91C-1F3FD",sheet:[38,0]},{unified:"1F91C-1F3FE",sheet:[38,1]},{unified:"1F91C-1F3FF",sheet:[38,2]}],shortName:"right-facing_fist"},{name:"Clapping Hands Sign",unified:"1F44F",keywords:["clapping_hands","hands","praise","applause","congrats","yay"],sheet:[13,40],skinVariations:[{unified:"1F44F-1F3FB",sheet:[13,41]},{unified:"1F44F-1F3FC",sheet:[13,42]},{unified:"1F44F-1F3FD",sheet:[13,43]},{unified:"1F44F-1F3FE",sheet:[13,44]},{unified:"1F44F-1F3FF",sheet:[13,45]}],shortName:"clap"},{name:"Person Raising Both Hands in Celebration",unified:"1F64C",keywords:["raising_hands","gesture","hooray","yea","celebration","hands"],sheet:[33,2],skinVariations:[{unified:"1F64C-1F3FB",sheet:[33,3]},{unified:"1F64C-1F3FC",sheet:[33,4]},{unified:"1F64C-1F3FD",sheet:[33,5]},{unified:"1F64C-1F3FE",sheet:[33,6]},{unified:"1F64C-1F3FF",sheet:[33,7]}],shortName:"raised_hands"},{name:"Open Hands Sign",unified:"1F450",keywords:["open_hands","fingers","butterfly","hands","open"],sheet:[13,46],skinVariations:[{unified:"1F450-1F3FB",sheet:[13,47]},{unified:"1F450-1F3FC",sheet:[13,48]},{unified:"1F450-1F3FD",sheet:[13,49]},{unified:"1F450-1F3FE",sheet:[13,50]},{unified:"1F450-1F3FF",sheet:[13,51]}],shortName:"open_hands"},{name:"Palms Up Together",unified:"1F932",keywords:["palms_up_together","hands","gesture","cupped","prayer"],sheet:[39,3],skinVariations:[{unified:"1F932-1F3FB",sheet:[39,4]},{unified:"1F932-1F3FC",sheet:[39,5]},{unified:"1F932-1F3FD",sheet:[39,6]},{unified:"1F932-1F3FE",sheet:[39,7]},{unified:"1F932-1F3FF",sheet:[39,8]}],shortName:"palms_up_together"},{name:"Handshake",unified:"1F91D",keywords:["handshake","agreement","shake"],sheet:[38,3],shortName:"handshake"},{name:"Person with Folded Hands",unified:"1F64F",keywords:["folded_hands","please","hope","wish","namaste","highfive"],sheet:[33,44],skinVariations:[{unified:"1F64F-1F3FB",sheet:[33,45]},{unified:"1F64F-1F3FC",sheet:[33,46]},{unified:"1F64F-1F3FD",sheet:[33,47]},{unified:"1F64F-1F3FE",sheet:[33,48]},{unified:"1F64F-1F3FF",sheet:[33,49]}],shortName:"pray"},{name:"Writing Hand",unified:"270D-FE0F",keywords:["writing_hand","lower_left_ballpoint_pen","stationery","write","compose"],sheet:[56,8],skinVariations:[{unified:"270D-1F3FB",sheet:[56,9]},{unified:"270D-1F3FC",sheet:[56,10]},{unified:"270D-1F3FD",sheet:[56,11]},{unified:"270D-1F3FE",sheet:[56,12]},{unified:"270D-1F3FF",sheet:[56,13]}],shortName:"writing_hand"},{name:"Nail Polish",unified:"1F485",keywords:["nail_polish","beauty","manicure","finger","fashion","nail"],sheet:[24,36],skinVariations:[{unified:"1F485-1F3FB",sheet:[24,37]},{unified:"1F485-1F3FC",sheet:[24,38]},{unified:"1F485-1F3FD",sheet:[24,39]},{unified:"1F485-1F3FE",sheet:[24,40]},{unified:"1F485-1F3FF",sheet:[24,41]}],shortName:"nail_care"},{name:"Selfie",unified:"1F933",keywords:["selfie","camera","phone"],sheet:[39,9],skinVariations:[{unified:"1F933-1F3FB",sheet:[39,10]},{unified:"1F933-1F3FC",sheet:[39,11]},{unified:"1F933-1F3FD",sheet:[39,12]},{unified:"1F933-1F3FE",sheet:[39,13]},{unified:"1F933-1F3FF",sheet:[39,14]}],shortName:"selfie"},{name:"Flexed Biceps",unified:"1F4AA",keywords:["flexed_biceps","arm","flex","hand","summer","strong","biceps"],sheet:[25,54],skinVariations:[{unified:"1F4AA-1F3FB",sheet:[25,55]},{unified:"1F4AA-1F3FC",sheet:[25,56]},{unified:"1F4AA-1F3FD",sheet:[25,57]},{unified:"1F4AA-1F3FE",sheet:[26,0]},{unified:"1F4AA-1F3FF",sheet:[26,1]}],shortName:"muscle"},{name:"Mechanical Arm",unified:"1F9BE",keywords:["mechanical_arm","accessibility"],sheet:[44,24],shortName:"mechanical_arm"},{name:"Mechanical Leg",unified:"1F9BF",keywords:["mechanical_leg","accessibility"],sheet:[44,25],shortName:"mechanical_leg"},{name:"Leg",unified:"1F9B5",keywords:["leg","kick","limb"],sheet:[43,24],skinVariations:[{unified:"1F9B5-1F3FB",sheet:[43,25]},{unified:"1F9B5-1F3FC",sheet:[43,26]},{unified:"1F9B5-1F3FD",sheet:[43,27]},{unified:"1F9B5-1F3FE",sheet:[43,28]},{unified:"1F9B5-1F3FF",sheet:[43,29]}],shortName:"leg"},{name:"Foot",unified:"1F9B6",keywords:["foot","kick","stomp"],sheet:[43,30],skinVariations:[{unified:"1F9B6-1F3FB",sheet:[43,31]},{unified:"1F9B6-1F3FC",sheet:[43,32]},{unified:"1F9B6-1F3FD",sheet:[43,33]},{unified:"1F9B6-1F3FE",sheet:[43,34]},{unified:"1F9B6-1F3FF",sheet:[43,35]}],shortName:"foot"},{name:"Ear",unified:"1F442",keywords:["ear","face","hear","sound","listen"],sheet:[12,30],skinVariations:[{unified:"1F442-1F3FB",sheet:[12,31]},{unified:"1F442-1F3FC",sheet:[12,32]},{unified:"1F442-1F3FD",sheet:[12,33]},{unified:"1F442-1F3FE",sheet:[12,34]},{unified:"1F442-1F3FF",sheet:[12,35]}],shortName:"ear"},{name:"Ear with Hearing Aid",unified:"1F9BB",keywords:["ear_with_hearing_aid","accessibility"],sheet:[44,16],skinVariations:[{unified:"1F9BB-1F3FB",sheet:[44,17]},{unified:"1F9BB-1F3FC",sheet:[44,18]},{unified:"1F9BB-1F3FD",sheet:[44,19]},{unified:"1F9BB-1F3FE",sheet:[44,20]},{unified:"1F9BB-1F3FF",sheet:[44,21]}],shortName:"ear_with_hearing_aid"},{name:"Nose",unified:"1F443",keywords:["nose","smell","sniff"],sheet:[12,36],skinVariations:[{unified:"1F443-1F3FB",sheet:[12,37]},{unified:"1F443-1F3FC",sheet:[12,38]},{unified:"1F443-1F3FD",sheet:[12,39]},{unified:"1F443-1F3FE",sheet:[12,40]},{unified:"1F443-1F3FF",sheet:[12,41]}],shortName:"nose"},{name:"Brain",unified:"1F9E0",keywords:["brain","smart","intelligent"],sheet:[51,43],shortName:"brain"},{name:"Anatomical Heart",unified:"1FAC0",keywords:["anatomical heart","health","heartbeat"],sheet:[53,6],shortName:"anatomical_heart"},{name:"Lungs",unified:"1FAC1",keywords:["lungs","breathe"],sheet:[53,7],shortName:"lungs"},{name:"Tooth",unified:"1F9B7",keywords:["tooth","teeth","dentist"],sheet:[43,36],shortName:"tooth"},{name:"Bone",unified:"1F9B4",keywords:["bone","skeleton"],sheet:[43,23],shortName:"bone"},{name:"Eyes",unified:"1F440",keywords:["eyes","look","watch","stalk","peek","see"],sheet:[12,27],shortName:"eyes"},{name:"Eye",unified:"1F441-FE0F",keywords:["eye","face","look","see","watch","stare"],sheet:[12,29],shortName:"eye"},{name:"Tongue",unified:"1F445",keywords:["tongue","mouth","playful"],sheet:[12,43],shortName:"tongue"},{name:"Mouth",unified:"1F444",keywords:["mouth","mouth","kiss"],sheet:[12,42],shortName:"lips"},{name:"Baby",unified:"1F476",keywords:["baby","child","boy","girl","toddler"],sheet:[23,8],skinVariations:[{unified:"1F476-1F3FB",sheet:[23,9]},{unified:"1F476-1F3FC",sheet:[23,10]},{unified:"1F476-1F3FD",sheet:[23,11]},{unified:"1F476-1F3FE",sheet:[23,12]},{unified:"1F476-1F3FF",sheet:[23,13]}],shortName:"baby"},{name:"Child",unified:"1F9D2",keywords:["child","gender-neutral","young"],sheet:[48,43],skinVariations:[{unified:"1F9D2-1F3FB",sheet:[48,44]},{unified:"1F9D2-1F3FC",sheet:[48,45]},{unified:"1F9D2-1F3FD",sheet:[48,46]},{unified:"1F9D2-1F3FE",sheet:[48,47]},{unified:"1F9D2-1F3FF",sheet:[48,48]}],shortName:"child"},{name:"Boy",unified:"1F466",keywords:["boy","man","male","guy","teenager"],sheet:[14,15],skinVariations:[{unified:"1F466-1F3FB",sheet:[14,16]},{unified:"1F466-1F3FC",sheet:[14,17]},{unified:"1F466-1F3FD",sheet:[14,18]},{unified:"1F466-1F3FE",sheet:[14,19]},{unified:"1F466-1F3FF",sheet:[14,20]}],shortName:"boy"},{name:"Girl",unified:"1F467",keywords:["girl","female","woman","teenager"],sheet:[14,21],skinVariations:[{unified:"1F467-1F3FB",sheet:[14,22]},{unified:"1F467-1F3FC",sheet:[14,23]},{unified:"1F467-1F3FD",sheet:[14,24]},{unified:"1F467-1F3FE",sheet:[14,25]},{unified:"1F467-1F3FF",sheet:[14,26]}],shortName:"girl"},{name:"Adult",unified:"1F9D1",keywords:["person","gender-neutral","person"],sheet:[48,37],skinVariations:[{unified:"1F9D1-1F3FB",sheet:[48,38]},{unified:"1F9D1-1F3FC",sheet:[48,39]},{unified:"1F9D1-1F3FD",sheet:[48,40]},{unified:"1F9D1-1F3FE",sheet:[48,41]},{unified:"1F9D1-1F3FF",sheet:[48,42]}],shortName:"adult"},{name:"Person with Blond Hair",unified:"1F471",keywords:["person_blond_hair","hairstyle"],sheet:[22,24],skinVariations:[{unified:"1F471-1F3FB",sheet:[22,25]},{unified:"1F471-1F3FC",sheet:[22,26]},{unified:"1F471-1F3FD",sheet:[22,27]},{unified:"1F471-1F3FE",sheet:[22,28]},{unified:"1F471-1F3FF",sheet:[22,29]}],shortName:"person_with_blond_hair",obsoletedBy:"1F471-200D-2642-FE0F"},{name:"Man",unified:"1F468",keywords:["man","mustache","father","dad","guy","classy","sir","moustache"],sheet:[17,14],skinVariations:[{unified:"1F468-1F3FB",sheet:[17,15]},{unified:"1F468-1F3FC",sheet:[17,16]},{unified:"1F468-1F3FD",sheet:[17,17]},{unified:"1F468-1F3FE",sheet:[17,18]},{unified:"1F468-1F3FF",sheet:[17,19]}],shortName:"man"},{name:"Bearded Person",unified:"1F9D4",keywords:["man_beard","person","bewhiskered"],sheet:[48,55],skinVariations:[{unified:"1F9D4-1F3FB",sheet:[48,56]},{unified:"1F9D4-1F3FC",sheet:[48,57]},{unified:"1F9D4-1F3FD",sheet:[49,0]},{unified:"1F9D4-1F3FE",sheet:[49,1]},{unified:"1F9D4-1F3FF",sheet:[49,2]}],shortName:"bearded_person"},{name:"Man: Red Hair",unified:"1F468-200D-1F9B0",keywords:["man_red_hair","hairstyle"],sheet:[16,16],skinVariations:[{unified:"1F468-1F3FB-200D-1F9B0",sheet:[16,17]},{unified:"1F468-1F3FC-200D-1F9B0",sheet:[16,18]},{unified:"1F468-1F3FD-200D-1F9B0",sheet:[16,19]},{unified:"1F468-1F3FE-200D-1F9B0",sheet:[16,20]},{unified:"1F468-1F3FF-200D-1F9B0",sheet:[16,21]}],shortName:"red_haired_man"},{name:"Man: Curly Hair",unified:"1F468-200D-1F9B1",keywords:["man_curly_hair","hairstyle"],sheet:[16,22],skinVariations:[{unified:"1F468-1F3FB-200D-1F9B1",sheet:[16,23]},{unified:"1F468-1F3FC-200D-1F9B1",sheet:[16,24]},{unified:"1F468-1F3FD-200D-1F9B1",sheet:[16,25]},{unified:"1F468-1F3FE-200D-1F9B1",sheet:[16,26]},{unified:"1F468-1F3FF-200D-1F9B1",sheet:[16,27]}],shortName:"curly_haired_man"},{name:"Man: White Hair",unified:"1F468-200D-1F9B3",keywords:["man_white_hair","old","elder"],sheet:[16,34],skinVariations:[{unified:"1F468-1F3FB-200D-1F9B3",sheet:[16,35]},{unified:"1F468-1F3FC-200D-1F9B3",sheet:[16,36]},{unified:"1F468-1F3FD-200D-1F9B3",sheet:[16,37]},{unified:"1F468-1F3FE-200D-1F9B3",sheet:[16,38]},{unified:"1F468-1F3FF-200D-1F9B3",sheet:[16,39]}],shortName:"white_haired_man"},{name:"Man: Bald",unified:"1F468-200D-1F9B2",keywords:["man_bald","hairless"],sheet:[16,28],skinVariations:[{unified:"1F468-1F3FB-200D-1F9B2",sheet:[16,29]},{unified:"1F468-1F3FC-200D-1F9B2",sheet:[16,30]},{unified:"1F468-1F3FD-200D-1F9B2",sheet:[16,31]},{unified:"1F468-1F3FE-200D-1F9B2",sheet:[16,32]},{unified:"1F468-1F3FF-200D-1F9B2",sheet:[16,33]}],shortName:"bald_man"},{name:"Woman",unified:"1F469",keywords:["woman","female","girls","lady"],sheet:[20,4],skinVariations:[{unified:"1F469-1F3FB",sheet:[20,5]},{unified:"1F469-1F3FC",sheet:[20,6]},{unified:"1F469-1F3FD",sheet:[20,7]},{unified:"1F469-1F3FE",sheet:[20,8]},{unified:"1F469-1F3FF",sheet:[20,9]}],shortName:"woman"},{name:"Woman: Red Hair",unified:"1F469-200D-1F9B0",keywords:["woman_red_hair","hairstyle"],sheet:[19,4],skinVariations:[{unified:"1F469-1F3FB-200D-1F9B0",sheet:[19,5]},{unified:"1F469-1F3FC-200D-1F9B0",sheet:[19,6]},{unified:"1F469-1F3FD-200D-1F9B0",sheet:[19,7]},{unified:"1F469-1F3FE-200D-1F9B0",sheet:[19,8]},{unified:"1F469-1F3FF-200D-1F9B0",sheet:[19,9]}],shortName:"red_haired_woman"},{name:"Person: Red Hair",unified:"1F9D1-200D-1F9B0",keywords:["person_red_hair","hairstyle"],sheet:[47,41],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F9B0",sheet:[47,42]},{unified:"1F9D1-1F3FC-200D-1F9B0",sheet:[47,43]},{unified:"1F9D1-1F3FD-200D-1F9B0",sheet:[47,44]},{unified:"1F9D1-1F3FE-200D-1F9B0",sheet:[47,45]},{unified:"1F9D1-1F3FF-200D-1F9B0",sheet:[47,46]}],shortName:"red_haired_person"},{name:"Woman: Curly Hair",unified:"1F469-200D-1F9B1",keywords:["woman_curly_hair","hairstyle"],sheet:[19,10],skinVariations:[{unified:"1F469-1F3FB-200D-1F9B1",sheet:[19,11]},{unified:"1F469-1F3FC-200D-1F9B1",sheet:[19,12]},{unified:"1F469-1F3FD-200D-1F9B1",sheet:[19,13]},{unified:"1F469-1F3FE-200D-1F9B1",sheet:[19,14]},{unified:"1F469-1F3FF-200D-1F9B1",sheet:[19,15]}],shortName:"curly_haired_woman"},{name:"Person: Curly Hair",unified:"1F9D1-200D-1F9B1",keywords:["person_curly_hair","hairstyle"],sheet:[47,47],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F9B1",sheet:[47,48]},{unified:"1F9D1-1F3FC-200D-1F9B1",sheet:[47,49]},{unified:"1F9D1-1F3FD-200D-1F9B1",sheet:[47,50]},{unified:"1F9D1-1F3FE-200D-1F9B1",sheet:[47,51]},{unified:"1F9D1-1F3FF-200D-1F9B1",sheet:[47,52]}],shortName:"curly_haired_person"},{name:"Woman: White Hair",unified:"1F469-200D-1F9B3",keywords:["woman_white_hair","old","elder"],sheet:[19,22],skinVariations:[{unified:"1F469-1F3FB-200D-1F9B3",sheet:[19,23]},{unified:"1F469-1F3FC-200D-1F9B3",sheet:[19,24]},{unified:"1F469-1F3FD-200D-1F9B3",sheet:[19,25]},{unified:"1F469-1F3FE-200D-1F9B3",sheet:[19,26]},{unified:"1F469-1F3FF-200D-1F9B3",sheet:[19,27]}],shortName:"white_haired_woman"},{name:"Person: White Hair",unified:"1F9D1-200D-1F9B3",keywords:["person_white_hair","elder","old"],sheet:[48,1],hidden:["facebook"],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F9B3",sheet:[48,2],hidden:["facebook"]},{unified:"1F9D1-1F3FC-200D-1F9B3",sheet:[48,3],hidden:["facebook"]},{unified:"1F9D1-1F3FD-200D-1F9B3",sheet:[48,4],hidden:["facebook"]},{unified:"1F9D1-1F3FE-200D-1F9B3",sheet:[48,5],hidden:["facebook"]},{unified:"1F9D1-1F3FF-200D-1F9B3",sheet:[48,6],hidden:["facebook"]}],shortName:"white_haired_person"},{name:"Woman: Bald",unified:"1F469-200D-1F9B2",keywords:["woman_bald","hairless"],sheet:[19,16],skinVariations:[{unified:"1F469-1F3FB-200D-1F9B2",sheet:[19,17]},{unified:"1F469-1F3FC-200D-1F9B2",sheet:[19,18]},{unified:"1F469-1F3FD-200D-1F9B2",sheet:[19,19]},{unified:"1F469-1F3FE-200D-1F9B2",sheet:[19,20]},{unified:"1F469-1F3FF-200D-1F9B2",sheet:[19,21]}],shortName:"bald_woman"},{name:"Person: Bald",unified:"1F9D1-200D-1F9B2",keywords:["person_bald","hairless"],sheet:[47,53],hidden:["facebook"],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F9B2",sheet:[47,54],hidden:["facebook"]},{unified:"1F9D1-1F3FC-200D-1F9B2",sheet:[47,55],hidden:["facebook"]},{unified:"1F9D1-1F3FD-200D-1F9B2",sheet:[47,56],hidden:["facebook"]},{unified:"1F9D1-1F3FE-200D-1F9B2",sheet:[47,57],hidden:["facebook"]},{unified:"1F9D1-1F3FF-200D-1F9B2",sheet:[48,0],hidden:["facebook"]}],shortName:"bald_person"},{name:"Woman: Blond Hair",unified:"1F471-200D-2640-FE0F",keywords:["woman_blond_hair","woman","female","girl","blonde","person"],sheet:[22,12],skinVariations:[{unified:"1F471-1F3FB-200D-2640-FE0F",sheet:[22,13]},{unified:"1F471-1F3FC-200D-2640-FE0F",sheet:[22,14]},{unified:"1F471-1F3FD-200D-2640-FE0F",sheet:[22,15]},{unified:"1F471-1F3FE-200D-2640-FE0F",sheet:[22,16]},{unified:"1F471-1F3FF-200D-2640-FE0F",sheet:[22,17]}],shortName:"blond-haired-woman"},{name:"Man: Blond Hair",unified:"1F471-200D-2642-FE0F",obsoletes:"1F471",keywords:["man_blond_hair","man","male","boy","blonde","guy","person"],sheet:[22,18],skinVariations:[{unified:"1F471-1F3FB-200D-2642-FE0F",sheet:[22,19]},{unified:"1F471-1F3FC-200D-2642-FE0F",sheet:[22,20]},{unified:"1F471-1F3FD-200D-2642-FE0F",sheet:[22,21]},{unified:"1F471-1F3FE-200D-2642-FE0F",sheet:[22,22]},{unified:"1F471-1F3FF-200D-2642-FE0F",sheet:[22,23]}],shortName:"blond-haired-man"},{name:"Older Adult",unified:"1F9D3",keywords:["older_person","human","elder","senior","gender-neutral"],sheet:[48,49],skinVariations:[{unified:"1F9D3-1F3FB",sheet:[48,50]},{unified:"1F9D3-1F3FC",sheet:[48,51]},{unified:"1F9D3-1F3FD",sheet:[48,52]},{unified:"1F9D3-1F3FE",sheet:[48,53]},{unified:"1F9D3-1F3FF",sheet:[48,54]}],shortName:"older_adult"},{name:"Older Man",unified:"1F474",keywords:["old_man","human","male","men","old","elder","senior"],sheet:[22,54],skinVariations:[{unified:"1F474-1F3FB",sheet:[22,55]},{unified:"1F474-1F3FC",sheet:[22,56]},{unified:"1F474-1F3FD",sheet:[22,57]},{unified:"1F474-1F3FE",sheet:[23,0]},{unified:"1F474-1F3FF",sheet:[23,1]}],shortName:"older_man"},{name:"Older Woman",unified:"1F475",keywords:["old_woman","human","female","women","lady","old","elder","senior"],sheet:[23,2],skinVariations:[{unified:"1F475-1F3FB",sheet:[23,3]},{unified:"1F475-1F3FC",sheet:[23,4]},{unified:"1F475-1F3FD",sheet:[23,5]},{unified:"1F475-1F3FE",sheet:[23,6]},{unified:"1F475-1F3FF",sheet:[23,7]}],shortName:"older_woman"},{name:"Person Frowning",unified:"1F64D",keywords:["person_frowning","worried"],sheet:[33,20],skinVariations:[{unified:"1F64D-1F3FB",sheet:[33,21]},{unified:"1F64D-1F3FC",sheet:[33,22]},{unified:"1F64D-1F3FD",sheet:[33,23]},{unified:"1F64D-1F3FE",sheet:[33,24]},{unified:"1F64D-1F3FF",sheet:[33,25]}],shortName:"person_frowning",obsoletedBy:"1F64D-200D-2640-FE0F"},{name:"Man Frowning",unified:"1F64D-200D-2642-FE0F",keywords:["man_frowning","male","boy","man","sad","depressed","discouraged","unhappy"],sheet:[33,14],skinVariations:[{unified:"1F64D-1F3FB-200D-2642-FE0F",sheet:[33,15]},{unified:"1F64D-1F3FC-200D-2642-FE0F",sheet:[33,16]},{unified:"1F64D-1F3FD-200D-2642-FE0F",sheet:[33,17]},{unified:"1F64D-1F3FE-200D-2642-FE0F",sheet:[33,18]},{unified:"1F64D-1F3FF-200D-2642-FE0F",sheet:[33,19]}],shortName:"man-frowning"},{name:"Woman Frowning",unified:"1F64D-200D-2640-FE0F",obsoletes:"1F64D",keywords:["woman_frowning","female","girl","woman","sad","depressed","discouraged","unhappy"],sheet:[33,8],skinVariations:[{unified:"1F64D-1F3FB-200D-2640-FE0F",sheet:[33,9]},{unified:"1F64D-1F3FC-200D-2640-FE0F",sheet:[33,10]},{unified:"1F64D-1F3FD-200D-2640-FE0F",sheet:[33,11]},{unified:"1F64D-1F3FE-200D-2640-FE0F",sheet:[33,12]},{unified:"1F64D-1F3FF-200D-2640-FE0F",sheet:[33,13]}],shortName:"woman-frowning"},{name:"Person with Pouting Face",unified:"1F64E",keywords:["person_pouting","upset"],sheet:[33,38],skinVariations:[{unified:"1F64E-1F3FB",sheet:[33,39]},{unified:"1F64E-1F3FC",sheet:[33,40]},{unified:"1F64E-1F3FD",sheet:[33,41]},{unified:"1F64E-1F3FE",sheet:[33,42]},{unified:"1F64E-1F3FF",sheet:[33,43]}],shortName:"person_with_pouting_face",obsoletedBy:"1F64E-200D-2640-FE0F"},{name:"Man Pouting",unified:"1F64E-200D-2642-FE0F",keywords:["man_pouting","male","boy","man"],sheet:[33,32],skinVariations:[{unified:"1F64E-1F3FB-200D-2642-FE0F",sheet:[33,33]},{unified:"1F64E-1F3FC-200D-2642-FE0F",sheet:[33,34]},{unified:"1F64E-1F3FD-200D-2642-FE0F",sheet:[33,35]},{unified:"1F64E-1F3FE-200D-2642-FE0F",sheet:[33,36]},{unified:"1F64E-1F3FF-200D-2642-FE0F",sheet:[33,37]}],shortName:"man-pouting"},{name:"Woman Pouting",unified:"1F64E-200D-2640-FE0F",obsoletes:"1F64E",keywords:["woman_pouting","female","girl","woman"],sheet:[33,26],skinVariations:[{unified:"1F64E-1F3FB-200D-2640-FE0F",sheet:[33,27]},{unified:"1F64E-1F3FC-200D-2640-FE0F",sheet:[33,28]},{unified:"1F64E-1F3FD-200D-2640-FE0F",sheet:[33,29]},{unified:"1F64E-1F3FE-200D-2640-FE0F",sheet:[33,30]},{unified:"1F64E-1F3FF-200D-2640-FE0F",sheet:[33,31]}],shortName:"woman-pouting"},{name:"Face with No Good Gesture",unified:"1F645",keywords:["person_gesturing_no","decline"],sheet:[31,55],skinVariations:[{unified:"1F645-1F3FB",sheet:[31,56]},{unified:"1F645-1F3FC",sheet:[31,57]},{unified:"1F645-1F3FD",sheet:[32,0]},{unified:"1F645-1F3FE",sheet:[32,1]},{unified:"1F645-1F3FF",sheet:[32,2]}],shortName:"no_good",obsoletedBy:"1F645-200D-2640-FE0F"},{name:"Man Gesturing No",unified:"1F645-200D-2642-FE0F",keywords:["man_gesturing_no","male","boy","man","nope"],sheet:[31,49],skinVariations:[{unified:"1F645-1F3FB-200D-2642-FE0F",sheet:[31,50]},{unified:"1F645-1F3FC-200D-2642-FE0F",sheet:[31,51]},{unified:"1F645-1F3FD-200D-2642-FE0F",sheet:[31,52]},{unified:"1F645-1F3FE-200D-2642-FE0F",sheet:[31,53]},{unified:"1F645-1F3FF-200D-2642-FE0F",sheet:[31,54]}],shortName:"man-gesturing-no"},{name:"Woman Gesturing No",unified:"1F645-200D-2640-FE0F",obsoletes:"1F645",keywords:["woman_gesturing_no","female","girl","woman","nope"],sheet:[31,43],skinVariations:[{unified:"1F645-1F3FB-200D-2640-FE0F",sheet:[31,44]},{unified:"1F645-1F3FC-200D-2640-FE0F",sheet:[31,45]},{unified:"1F645-1F3FD-200D-2640-FE0F",sheet:[31,46]},{unified:"1F645-1F3FE-200D-2640-FE0F",sheet:[31,47]},{unified:"1F645-1F3FF-200D-2640-FE0F",sheet:[31,48]}],shortName:"woman-gesturing-no"},{name:"Face with Ok Gesture",unified:"1F646",keywords:["person_gesturing_ok","agree"],sheet:[32,15],skinVariations:[{unified:"1F646-1F3FB",sheet:[32,16]},{unified:"1F646-1F3FC",sheet:[32,17]},{unified:"1F646-1F3FD",sheet:[32,18]},{unified:"1F646-1F3FE",sheet:[32,19]},{unified:"1F646-1F3FF",sheet:[32,20]}],shortName:"ok_woman",obsoletedBy:"1F646-200D-2640-FE0F"},{name:"Man Gesturing Ok",unified:"1F646-200D-2642-FE0F",keywords:["man_gesturing_ok","men","boy","male","blue","human","man"],sheet:[32,9],skinVariations:[{unified:"1F646-1F3FB-200D-2642-FE0F",sheet:[32,10]},{unified:"1F646-1F3FC-200D-2642-FE0F",sheet:[32,11]},{unified:"1F646-1F3FD-200D-2642-FE0F",sheet:[32,12]},{unified:"1F646-1F3FE-200D-2642-FE0F",sheet:[32,13]},{unified:"1F646-1F3FF-200D-2642-FE0F",sheet:[32,14]}],shortName:"man-gesturing-ok"},{name:"Woman Gesturing Ok",unified:"1F646-200D-2640-FE0F",obsoletes:"1F646",keywords:["woman_gesturing_ok","women","girl","female","pink","human","woman"],sheet:[32,3],skinVariations:[{unified:"1F646-1F3FB-200D-2640-FE0F",sheet:[32,4]},{unified:"1F646-1F3FC-200D-2640-FE0F",sheet:[32,5]},{unified:"1F646-1F3FD-200D-2640-FE0F",sheet:[32,6]},{unified:"1F646-1F3FE-200D-2640-FE0F",sheet:[32,7]},{unified:"1F646-1F3FF-200D-2640-FE0F",sheet:[32,8]}],shortName:"woman-gesturing-ok"},{name:"Information Desk Person",unified:"1F481",keywords:["person_tipping_hand","information"],sheet:[24,5],skinVariations:[{unified:"1F481-1F3FB",sheet:[24,6]},{unified:"1F481-1F3FC",sheet:[24,7]},{unified:"1F481-1F3FD",sheet:[24,8]},{unified:"1F481-1F3FE",sheet:[24,9]},{unified:"1F481-1F3FF",sheet:[24,10]}],shortName:"information_desk_person",obsoletedBy:"1F481-200D-2640-FE0F"},{name:"Man Tipping Hand",unified:"1F481-200D-2642-FE0F",keywords:["man_tipping_hand","male","boy","man","human","information"],sheet:[23,57],skinVariations:[{unified:"1F481-1F3FB-200D-2642-FE0F",sheet:[24,0]},{unified:"1F481-1F3FC-200D-2642-FE0F",sheet:[24,1]},{unified:"1F481-1F3FD-200D-2642-FE0F",sheet:[24,2]},{unified:"1F481-1F3FE-200D-2642-FE0F",sheet:[24,3]},{unified:"1F481-1F3FF-200D-2642-FE0F",sheet:[24,4]}],shortName:"man-tipping-hand"},{name:"Woman Tipping Hand",unified:"1F481-200D-2640-FE0F",obsoletes:"1F481",keywords:["woman_tipping_hand","female","girl","woman","human","information"],sheet:[23,51],skinVariations:[{unified:"1F481-1F3FB-200D-2640-FE0F",sheet:[23,52]},{unified:"1F481-1F3FC-200D-2640-FE0F",sheet:[23,53]},{unified:"1F481-1F3FD-200D-2640-FE0F",sheet:[23,54]},{unified:"1F481-1F3FE-200D-2640-FE0F",sheet:[23,55]},{unified:"1F481-1F3FF-200D-2640-FE0F",sheet:[23,56]}],shortName:"woman-tipping-hand"},{name:"Happy Person Raising One Hand",unified:"1F64B",keywords:["person_raising_hand","question"],sheet:[32,54],skinVariations:[{unified:"1F64B-1F3FB",sheet:[32,55]},{unified:"1F64B-1F3FC",sheet:[32,56]},{unified:"1F64B-1F3FD",sheet:[32,57]},{unified:"1F64B-1F3FE",sheet:[33,0]},{unified:"1F64B-1F3FF",sheet:[33,1]}],shortName:"raising_hand",obsoletedBy:"1F64B-200D-2640-FE0F"},{name:"Man Raising Hand",unified:"1F64B-200D-2642-FE0F",keywords:["man_raising_hand","male","boy","man"],sheet:[32,48],skinVariations:[{unified:"1F64B-1F3FB-200D-2642-FE0F",sheet:[32,49]},{unified:"1F64B-1F3FC-200D-2642-FE0F",sheet:[32,50]},{unified:"1F64B-1F3FD-200D-2642-FE0F",sheet:[32,51]},{unified:"1F64B-1F3FE-200D-2642-FE0F",sheet:[32,52]},{unified:"1F64B-1F3FF-200D-2642-FE0F",sheet:[32,53]}],shortName:"man-raising-hand"},{name:"Woman Raising Hand",unified:"1F64B-200D-2640-FE0F",obsoletes:"1F64B",keywords:["woman_raising_hand","female","girl","woman"],sheet:[32,42],skinVariations:[{unified:"1F64B-1F3FB-200D-2640-FE0F",sheet:[32,43]},{unified:"1F64B-1F3FC-200D-2640-FE0F",sheet:[32,44]},{unified:"1F64B-1F3FD-200D-2640-FE0F",sheet:[32,45]},{unified:"1F64B-1F3FE-200D-2640-FE0F",sheet:[32,46]},{unified:"1F64B-1F3FF-200D-2640-FE0F",sheet:[32,47]}],shortName:"woman-raising-hand"},{name:"Deaf Person",unified:"1F9CF",keywords:["deaf_person","accessibility"],sheet:[45,28],skinVariations:[{unified:"1F9CF-1F3FB",sheet:[45,29]},{unified:"1F9CF-1F3FC",sheet:[45,30]},{unified:"1F9CF-1F3FD",sheet:[45,31]},{unified:"1F9CF-1F3FE",sheet:[45,32]},{unified:"1F9CF-1F3FF",sheet:[45,33]}],shortName:"deaf_person"},{name:"Deaf Man",unified:"1F9CF-200D-2642-FE0F",keywords:["deaf_man","accessibility"],sheet:[45,22],skinVariations:[{unified:"1F9CF-1F3FB-200D-2642-FE0F",sheet:[45,23]},{unified:"1F9CF-1F3FC-200D-2642-FE0F",sheet:[45,24]},{unified:"1F9CF-1F3FD-200D-2642-FE0F",sheet:[45,25]},{unified:"1F9CF-1F3FE-200D-2642-FE0F",sheet:[45,26]},{unified:"1F9CF-1F3FF-200D-2642-FE0F",sheet:[45,27]}],shortName:"deaf_man"},{name:"Deaf Woman",unified:"1F9CF-200D-2640-FE0F",keywords:["deaf_woman","accessibility"],sheet:[45,16],skinVariations:[{unified:"1F9CF-1F3FB-200D-2640-FE0F",sheet:[45,17]},{unified:"1F9CF-1F3FC-200D-2640-FE0F",sheet:[45,18]},{unified:"1F9CF-1F3FD-200D-2640-FE0F",sheet:[45,19]},{unified:"1F9CF-1F3FE-200D-2640-FE0F",sheet:[45,20]},{unified:"1F9CF-1F3FF-200D-2640-FE0F",sheet:[45,21]}],shortName:"deaf_woman"},{name:"Person Bowing Deeply",unified:"1F647",keywords:["person_bowing","respectiful"],sheet:[32,33],skinVariations:[{unified:"1F647-1F3FB",sheet:[32,34]},{unified:"1F647-1F3FC",sheet:[32,35]},{unified:"1F647-1F3FD",sheet:[32,36]},{unified:"1F647-1F3FE",sheet:[32,37]},{unified:"1F647-1F3FF",sheet:[32,38]}],shortName:"bow",obsoletedBy:"1F647-200D-2642-FE0F"},{name:"Man Bowing",unified:"1F647-200D-2642-FE0F",obsoletes:"1F647",keywords:["man_bowing","man","male","boy"],sheet:[32,27],skinVariations:[{unified:"1F647-1F3FB-200D-2642-FE0F",sheet:[32,28]},{unified:"1F647-1F3FC-200D-2642-FE0F",sheet:[32,29]},{unified:"1F647-1F3FD-200D-2642-FE0F",sheet:[32,30]},{unified:"1F647-1F3FE-200D-2642-FE0F",sheet:[32,31]},{unified:"1F647-1F3FF-200D-2642-FE0F",sheet:[32,32]}],shortName:"man-bowing"},{name:"Woman Bowing",unified:"1F647-200D-2640-FE0F",keywords:["woman_bowing","woman","female","girl"],sheet:[32,21],skinVariations:[{unified:"1F647-1F3FB-200D-2640-FE0F",sheet:[32,22]},{unified:"1F647-1F3FC-200D-2640-FE0F",sheet:[32,23]},{unified:"1F647-1F3FD-200D-2640-FE0F",sheet:[32,24]},{unified:"1F647-1F3FE-200D-2640-FE0F",sheet:[32,25]},{unified:"1F647-1F3FF-200D-2640-FE0F",sheet:[32,26]}],shortName:"woman-bowing"},{name:"Face Palm",unified:"1F926",keywords:["person_facepalming","disappointed"],sheet:[38,34],skinVariations:[{unified:"1F926-1F3FB",sheet:[38,35]},{unified:"1F926-1F3FC",sheet:[38,36]},{unified:"1F926-1F3FD",sheet:[38,37]},{unified:"1F926-1F3FE",sheet:[38,38]},{unified:"1F926-1F3FF",sheet:[38,39]}],shortName:"face_palm"},{name:"Man Facepalming",unified:"1F926-200D-2642-FE0F",keywords:["man_facepalming","man","male","boy","disbelief"],sheet:[38,28],skinVariations:[{unified:"1F926-1F3FB-200D-2642-FE0F",sheet:[38,29]},{unified:"1F926-1F3FC-200D-2642-FE0F",sheet:[38,30]},{unified:"1F926-1F3FD-200D-2642-FE0F",sheet:[38,31]},{unified:"1F926-1F3FE-200D-2642-FE0F",sheet:[38,32]},{unified:"1F926-1F3FF-200D-2642-FE0F",sheet:[38,33]}],shortName:"man-facepalming"},{name:"Woman Facepalming",unified:"1F926-200D-2640-FE0F",keywords:["woman_facepalming","woman","female","girl","disbelief"],sheet:[38,22],skinVariations:[{unified:"1F926-1F3FB-200D-2640-FE0F",sheet:[38,23]},{unified:"1F926-1F3FC-200D-2640-FE0F",sheet:[38,24]},{unified:"1F926-1F3FD-200D-2640-FE0F",sheet:[38,25]},{unified:"1F926-1F3FE-200D-2640-FE0F",sheet:[38,26]},{unified:"1F926-1F3FF-200D-2640-FE0F",sheet:[38,27]}],shortName:"woman-facepalming"},{name:"Shrug",unified:"1F937",keywords:["person_shrugging","regardless"],sheet:[39,57],skinVariations:[{unified:"1F937-1F3FB",sheet:[40,0]},{unified:"1F937-1F3FC",sheet:[40,1]},{unified:"1F937-1F3FD",sheet:[40,2]},{unified:"1F937-1F3FE",sheet:[40,3]},{unified:"1F937-1F3FF",sheet:[40,4]}],shortName:"shrug"},{name:"Man Shrugging",unified:"1F937-200D-2642-FE0F",keywords:["man_shrugging","man","male","boy","confused","indifferent","doubt"],sheet:[39,51],skinVariations:[{unified:"1F937-1F3FB-200D-2642-FE0F",sheet:[39,52]},{unified:"1F937-1F3FC-200D-2642-FE0F",sheet:[39,53]},{unified:"1F937-1F3FD-200D-2642-FE0F",sheet:[39,54]},{unified:"1F937-1F3FE-200D-2642-FE0F",sheet:[39,55]},{unified:"1F937-1F3FF-200D-2642-FE0F",sheet:[39,56]}],shortName:"man-shrugging"},{name:"Woman Shrugging",unified:"1F937-200D-2640-FE0F",keywords:["woman_shrugging","woman","female","girl","confused","indifferent","doubt"],sheet:[39,45],skinVariations:[{unified:"1F937-1F3FB-200D-2640-FE0F",sheet:[39,46]},{unified:"1F937-1F3FC-200D-2640-FE0F",sheet:[39,47]},{unified:"1F937-1F3FD-200D-2640-FE0F",sheet:[39,48]},{unified:"1F937-1F3FE-200D-2640-FE0F",sheet:[39,49]},{unified:"1F937-1F3FF-200D-2640-FE0F",sheet:[39,50]}],shortName:"woman-shrugging"},{name:"Health Worker",unified:"1F9D1-200D-2695-FE0F",keywords:["health_worker","hospital"],sheet:[48,19],skinVariations:[{unified:"1F9D1-1F3FB-200D-2695-FE0F",sheet:[48,20]},{unified:"1F9D1-1F3FC-200D-2695-FE0F",sheet:[48,21]},{unified:"1F9D1-1F3FD-200D-2695-FE0F",sheet:[48,22]},{unified:"1F9D1-1F3FE-200D-2695-FE0F",sheet:[48,23]},{unified:"1F9D1-1F3FF-200D-2695-FE0F",sheet:[48,24]}],shortName:"health_worker"},{name:"Man Health Worker",unified:"1F468-200D-2695-FE0F",keywords:["man_health_worker","doctor","nurse","therapist","healthcare","man","human"],sheet:[16,52],skinVariations:[{unified:"1F468-1F3FB-200D-2695-FE0F",sheet:[16,53]},{unified:"1F468-1F3FC-200D-2695-FE0F",sheet:[16,54]},{unified:"1F468-1F3FD-200D-2695-FE0F",sheet:[16,55]},{unified:"1F468-1F3FE-200D-2695-FE0F",sheet:[16,56]},{unified:"1F468-1F3FF-200D-2695-FE0F",sheet:[16,57]}],shortName:"male-doctor"},{name:"Woman Health Worker",unified:"1F469-200D-2695-FE0F",keywords:["woman_health_worker","doctor","nurse","therapist","healthcare","woman","human"],sheet:[19,40],skinVariations:[{unified:"1F469-1F3FB-200D-2695-FE0F",sheet:[19,41]},{unified:"1F469-1F3FC-200D-2695-FE0F",sheet:[19,42]},{unified:"1F469-1F3FD-200D-2695-FE0F",sheet:[19,43]},{unified:"1F469-1F3FE-200D-2695-FE0F",sheet:[19,44]},{unified:"1F469-1F3FF-200D-2695-FE0F",sheet:[19,45]}],shortName:"female-doctor"},{name:"Student",unified:"1F9D1-200D-1F393",keywords:["student","learn"],sheet:[46,1],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F393",sheet:[46,2]},{unified:"1F9D1-1F3FC-200D-1F393",sheet:[46,3]},{unified:"1F9D1-1F3FD-200D-1F393",sheet:[46,4]},{unified:"1F9D1-1F3FE-200D-1F393",sheet:[46,5]},{unified:"1F9D1-1F3FF-200D-1F393",sheet:[46,6]}],shortName:"student"},{name:"Man Student",unified:"1F468-200D-1F393",keywords:["man_student","graduate","man","human"],sheet:[14,45],skinVariations:[{unified:"1F468-1F3FB-200D-1F393",sheet:[14,46]},{unified:"1F468-1F3FC-200D-1F393",sheet:[14,47]},{unified:"1F468-1F3FD-200D-1F393",sheet:[14,48]},{unified:"1F468-1F3FE-200D-1F393",sheet:[14,49]},{unified:"1F468-1F3FF-200D-1F393",sheet:[14,50]}],shortName:"male-student"},{name:"Woman Student",unified:"1F469-200D-1F393",keywords:["woman_student","graduate","woman","human"],sheet:[17,38],skinVariations:[{unified:"1F469-1F3FB-200D-1F393",sheet:[17,39]},{unified:"1F469-1F3FC-200D-1F393",sheet:[17,40]},{unified:"1F469-1F3FD-200D-1F393",sheet:[17,41]},{unified:"1F469-1F3FE-200D-1F393",sheet:[17,42]},{unified:"1F469-1F3FF-200D-1F393",sheet:[17,43]}],shortName:"female-student"},{name:"Teacher",unified:"1F9D1-200D-1F3EB",keywords:["teacher","professor"],sheet:[46,19],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F3EB",sheet:[46,20]},{unified:"1F9D1-1F3FC-200D-1F3EB",sheet:[46,21]},{unified:"1F9D1-1F3FD-200D-1F3EB",sheet:[46,22]},{unified:"1F9D1-1F3FE-200D-1F3EB",sheet:[46,23]},{unified:"1F9D1-1F3FF-200D-1F3EB",sheet:[46,24]}],shortName:"teacher"},{name:"Man Teacher",unified:"1F468-200D-1F3EB",keywords:["man_teacher","instructor","professor","man","human"],sheet:[15,5],skinVariations:[{unified:"1F468-1F3FB-200D-1F3EB",sheet:[15,6]},{unified:"1F468-1F3FC-200D-1F3EB",sheet:[15,7]},{unified:"1F468-1F3FD-200D-1F3EB",sheet:[15,8]},{unified:"1F468-1F3FE-200D-1F3EB",sheet:[15,9]},{unified:"1F468-1F3FF-200D-1F3EB",sheet:[15,10]}],shortName:"male-teacher"},{name:"Woman Teacher",unified:"1F469-200D-1F3EB",keywords:["woman_teacher","instructor","professor","woman","human"],sheet:[17,56],skinVariations:[{unified:"1F469-1F3FB-200D-1F3EB",sheet:[17,57]},{unified:"1F469-1F3FC-200D-1F3EB",sheet:[18,0]},{unified:"1F469-1F3FD-200D-1F3EB",sheet:[18,1]},{unified:"1F469-1F3FE-200D-1F3EB",sheet:[18,2]},{unified:"1F469-1F3FF-200D-1F3EB",sheet:[18,3]}],shortName:"female-teacher"},{name:"Judge",unified:"1F9D1-200D-2696-FE0F",keywords:["judge","law"],sheet:[48,25],skinVariations:[{unified:"1F9D1-1F3FB-200D-2696-FE0F",sheet:[48,26]},{unified:"1F9D1-1F3FC-200D-2696-FE0F",sheet:[48,27]},{unified:"1F9D1-1F3FD-200D-2696-FE0F",sheet:[48,28]},{unified:"1F9D1-1F3FE-200D-2696-FE0F",sheet:[48,29]},{unified:"1F9D1-1F3FF-200D-2696-FE0F",sheet:[48,30]}],shortName:"judge"},{name:"Man Judge",unified:"1F468-200D-2696-FE0F",keywords:["man_judge","justice","court","man","human"],sheet:[17,0],skinVariations:[{unified:"1F468-1F3FB-200D-2696-FE0F",sheet:[17,1]},{unified:"1F468-1F3FC-200D-2696-FE0F",sheet:[17,2]},{unified:"1F468-1F3FD-200D-2696-FE0F",sheet:[17,3]},{unified:"1F468-1F3FE-200D-2696-FE0F",sheet:[17,4]},{unified:"1F468-1F3FF-200D-2696-FE0F",sheet:[17,5]}],shortName:"male-judge"},{name:"Woman Judge",unified:"1F469-200D-2696-FE0F",keywords:["woman_judge","justice","court","woman","human"],sheet:[19,46],skinVariations:[{unified:"1F469-1F3FB-200D-2696-FE0F",sheet:[19,47]},{unified:"1F469-1F3FC-200D-2696-FE0F",sheet:[19,48]},{unified:"1F469-1F3FD-200D-2696-FE0F",sheet:[19,49]},{unified:"1F469-1F3FE-200D-2696-FE0F",sheet:[19,50]},{unified:"1F469-1F3FF-200D-2696-FE0F",sheet:[19,51]}],shortName:"female-judge"},{name:"Farmer",unified:"1F9D1-200D-1F33E",keywords:["farmer","crops"],sheet:[45,35],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F33E",sheet:[45,36]},{unified:"1F9D1-1F3FC-200D-1F33E",sheet:[45,37]},{unified:"1F9D1-1F3FD-200D-1F33E",sheet:[45,38]},{unified:"1F9D1-1F3FE-200D-1F33E",sheet:[45,39]},{unified:"1F9D1-1F3FF-200D-1F33E",sheet:[45,40]}],shortName:"farmer"},{name:"Man Farmer",unified:"1F468-200D-1F33E",keywords:["man_farmer","rancher","gardener","man","human"],sheet:[14,27],skinVariations:[{unified:"1F468-1F3FB-200D-1F33E",sheet:[14,28]},{unified:"1F468-1F3FC-200D-1F33E",sheet:[14,29]},{unified:"1F468-1F3FD-200D-1F33E",sheet:[14,30]},{unified:"1F468-1F3FE-200D-1F33E",sheet:[14,31]},{unified:"1F468-1F3FF-200D-1F33E",sheet:[14,32]}],shortName:"male-farmer"},{name:"Woman Farmer",unified:"1F469-200D-1F33E",keywords:["woman_farmer","rancher","gardener","woman","human"],sheet:[17,20],skinVariations:[{unified:"1F469-1F3FB-200D-1F33E",sheet:[17,21]},{unified:"1F469-1F3FC-200D-1F33E",sheet:[17,22]},{unified:"1F469-1F3FD-200D-1F33E",sheet:[17,23]},{unified:"1F469-1F3FE-200D-1F33E",sheet:[17,24]},{unified:"1F469-1F3FF-200D-1F33E",sheet:[17,25]}],shortName:"female-farmer"},{name:"Cook",unified:"1F9D1-200D-1F373",keywords:["cook","food","kitchen","culinary"],sheet:[45,41],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F373",sheet:[45,42]},{unified:"1F9D1-1F3FC-200D-1F373",sheet:[45,43]},{unified:"1F9D1-1F3FD-200D-1F373",sheet:[45,44]},{unified:"1F9D1-1F3FE-200D-1F373",sheet:[45,45]},{unified:"1F9D1-1F3FF-200D-1F373",sheet:[45,46]}],shortName:"cook"},{name:"Man Cook",unified:"1F468-200D-1F373",keywords:["man_cook","chef","man","human"],sheet:[14,33],skinVariations:[{unified:"1F468-1F3FB-200D-1F373",sheet:[14,34]},{unified:"1F468-1F3FC-200D-1F373",sheet:[14,35]},{unified:"1F468-1F3FD-200D-1F373",sheet:[14,36]},{unified:"1F468-1F3FE-200D-1F373",sheet:[14,37]},{unified:"1F468-1F3FF-200D-1F373",sheet:[14,38]}],shortName:"male-cook"},{name:"Woman Cook",unified:"1F469-200D-1F373",keywords:["woman_cook","chef","woman","human"],sheet:[17,26],skinVariations:[{unified:"1F469-1F3FB-200D-1F373",sheet:[17,27]},{unified:"1F469-1F3FC-200D-1F373",sheet:[17,28]},{unified:"1F469-1F3FD-200D-1F373",sheet:[17,29]},{unified:"1F469-1F3FE-200D-1F373",sheet:[17,30]},{unified:"1F469-1F3FF-200D-1F373",sheet:[17,31]}],shortName:"female-cook"},{name:"Mechanic",unified:"1F9D1-200D-1F527",keywords:["mechanic","worker","technician"],sheet:[46,43],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F527",sheet:[46,44]},{unified:"1F9D1-1F3FC-200D-1F527",sheet:[46,45]},{unified:"1F9D1-1F3FD-200D-1F527",sheet:[46,46]},{unified:"1F9D1-1F3FE-200D-1F527",sheet:[46,47]},{unified:"1F9D1-1F3FF-200D-1F527",sheet:[46,48]}],shortName:"mechanic"},{name:"Man Mechanic",unified:"1F468-200D-1F527",keywords:["man_mechanic","plumber","man","human","wrench"],sheet:[15,44],skinVariations:[{unified:"1F468-1F3FB-200D-1F527",sheet:[15,45]},{unified:"1F468-1F3FC-200D-1F527",sheet:[15,46]},{unified:"1F468-1F3FD-200D-1F527",sheet:[15,47]},{unified:"1F468-1F3FE-200D-1F527",sheet:[15,48]},{unified:"1F468-1F3FF-200D-1F527",sheet:[15,49]}],shortName:"male-mechanic"},{name:"Woman Mechanic",unified:"1F469-200D-1F527",keywords:["woman_mechanic","plumber","woman","human","wrench"],sheet:[18,32],skinVariations:[{unified:"1F469-1F3FB-200D-1F527",sheet:[18,33]},{unified:"1F469-1F3FC-200D-1F527",sheet:[18,34]},{unified:"1F469-1F3FD-200D-1F527",sheet:[18,35]},{unified:"1F469-1F3FE-200D-1F527",sheet:[18,36]},{unified:"1F469-1F3FF-200D-1F527",sheet:[18,37]}],shortName:"female-mechanic"},{name:"Factory Worker",unified:"1F9D1-200D-1F3ED",keywords:["factory_worker","labor"],sheet:[46,25],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F3ED",sheet:[46,26]},{unified:"1F9D1-1F3FC-200D-1F3ED",sheet:[46,27]},{unified:"1F9D1-1F3FD-200D-1F3ED",sheet:[46,28]},{unified:"1F9D1-1F3FE-200D-1F3ED",sheet:[46,29]},{unified:"1F9D1-1F3FF-200D-1F3ED",sheet:[46,30]}],shortName:"factory_worker"},{name:"Man Factory Worker",unified:"1F468-200D-1F3ED",keywords:["man_factory_worker","assembly","industrial","man","human"],sheet:[15,11],skinVariations:[{unified:"1F468-1F3FB-200D-1F3ED",sheet:[15,12]},{unified:"1F468-1F3FC-200D-1F3ED",sheet:[15,13]},{unified:"1F468-1F3FD-200D-1F3ED",sheet:[15,14]},{unified:"1F468-1F3FE-200D-1F3ED",sheet:[15,15]},{unified:"1F468-1F3FF-200D-1F3ED",sheet:[15,16]}],shortName:"male-factory-worker"},{name:"Woman Factory Worker",unified:"1F469-200D-1F3ED",keywords:["woman_factory_worker","assembly","industrial","woman","human"],sheet:[18,4],skinVariations:[{unified:"1F469-1F3FB-200D-1F3ED",sheet:[18,5]},{unified:"1F469-1F3FC-200D-1F3ED",sheet:[18,6]},{unified:"1F469-1F3FD-200D-1F3ED",sheet:[18,7]},{unified:"1F469-1F3FE-200D-1F3ED",sheet:[18,8]},{unified:"1F469-1F3FF-200D-1F3ED",sheet:[18,9]}],shortName:"female-factory-worker"},{name:"Office Worker",unified:"1F9D1-200D-1F4BC",keywords:["office_worker","business"],sheet:[46,37],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F4BC",sheet:[46,38]},{unified:"1F9D1-1F3FC-200D-1F4BC",sheet:[46,39]},{unified:"1F9D1-1F3FD-200D-1F4BC",sheet:[46,40]},{unified:"1F9D1-1F3FE-200D-1F4BC",sheet:[46,41]},{unified:"1F9D1-1F3FF-200D-1F4BC",sheet:[46,42]}],shortName:"office_worker"},{name:"Man Office Worker",unified:"1F468-200D-1F4BC",keywords:["man_office_worker","business","manager","man","human"],sheet:[15,38],skinVariations:[{unified:"1F468-1F3FB-200D-1F4BC",sheet:[15,39]},{unified:"1F468-1F3FC-200D-1F4BC",sheet:[15,40]},{unified:"1F468-1F3FD-200D-1F4BC",sheet:[15,41]},{unified:"1F468-1F3FE-200D-1F4BC",sheet:[15,42]},{unified:"1F468-1F3FF-200D-1F4BC",sheet:[15,43]}],shortName:"male-office-worker"},{name:"Woman Office Worker",unified:"1F469-200D-1F4BC",keywords:["woman_office_worker","business","manager","woman","human"],sheet:[18,26],skinVariations:[{unified:"1F469-1F3FB-200D-1F4BC",sheet:[18,27]},{unified:"1F469-1F3FC-200D-1F4BC",sheet:[18,28]},{unified:"1F469-1F3FD-200D-1F4BC",sheet:[18,29]},{unified:"1F469-1F3FE-200D-1F4BC",sheet:[18,30]},{unified:"1F469-1F3FF-200D-1F4BC",sheet:[18,31]}],shortName:"female-office-worker"},{name:"Scientist",unified:"1F9D1-200D-1F52C",keywords:["scientist","chemistry"],sheet:[46,49],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F52C",sheet:[46,50]},{unified:"1F9D1-1F3FC-200D-1F52C",sheet:[46,51]},{unified:"1F9D1-1F3FD-200D-1F52C",sheet:[46,52]},{unified:"1F9D1-1F3FE-200D-1F52C",sheet:[46,53]},{unified:"1F9D1-1F3FF-200D-1F52C",sheet:[46,54]}],shortName:"scientist"},{name:"Man Scientist",unified:"1F468-200D-1F52C",keywords:["man_scientist","biologist","chemist","engineer","physicist","man","human"],sheet:[15,50],skinVariations:[{unified:"1F468-1F3FB-200D-1F52C",sheet:[15,51]},{unified:"1F468-1F3FC-200D-1F52C",sheet:[15,52]},{unified:"1F468-1F3FD-200D-1F52C",sheet:[15,53]},{unified:"1F468-1F3FE-200D-1F52C",sheet:[15,54]},{unified:"1F468-1F3FF-200D-1F52C",sheet:[15,55]}],shortName:"male-scientist"},{name:"Woman Scientist",unified:"1F469-200D-1F52C",keywords:["woman_scientist","biologist","chemist","engineer","physicist","woman","human"],sheet:[18,38],skinVariations:[{unified:"1F469-1F3FB-200D-1F52C",sheet:[18,39]},{unified:"1F469-1F3FC-200D-1F52C",sheet:[18,40]},{unified:"1F469-1F3FD-200D-1F52C",sheet:[18,41]},{unified:"1F469-1F3FE-200D-1F52C",sheet:[18,42]},{unified:"1F469-1F3FF-200D-1F52C",sheet:[18,43]}],shortName:"female-scientist"},{name:"Technologist",unified:"1F9D1-200D-1F4BB",keywords:["technologist","computer"],sheet:[46,31],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F4BB",sheet:[46,32]},{unified:"1F9D1-1F3FC-200D-1F4BB",sheet:[46,33]},{unified:"1F9D1-1F3FD-200D-1F4BB",sheet:[46,34]},{unified:"1F9D1-1F3FE-200D-1F4BB",sheet:[46,35]},{unified:"1F9D1-1F3FF-200D-1F4BB",sheet:[46,36]}],shortName:"technologist"},{name:"Man Technologist",unified:"1F468-200D-1F4BB",keywords:["man_technologist","coder","developer","engineer","programmer","software","man","human","laptop","computer"],sheet:[15,32],skinVariations:[{unified:"1F468-1F3FB-200D-1F4BB",sheet:[15,33]},{unified:"1F468-1F3FC-200D-1F4BB",sheet:[15,34]},{unified:"1F468-1F3FD-200D-1F4BB",sheet:[15,35]},{unified:"1F468-1F3FE-200D-1F4BB",sheet:[15,36]},{unified:"1F468-1F3FF-200D-1F4BB",sheet:[15,37]}],shortName:"male-technologist"},{name:"Woman Technologist",unified:"1F469-200D-1F4BB",keywords:["woman_technologist","coder","developer","engineer","programmer","software","woman","human","laptop","computer"],sheet:[18,20],skinVariations:[{unified:"1F469-1F3FB-200D-1F4BB",sheet:[18,21]},{unified:"1F469-1F3FC-200D-1F4BB",sheet:[18,22]},{unified:"1F469-1F3FD-200D-1F4BB",sheet:[18,23]},{unified:"1F469-1F3FE-200D-1F4BB",sheet:[18,24]},{unified:"1F469-1F3FF-200D-1F4BB",sheet:[18,25]}],shortName:"female-technologist"},{name:"Singer",unified:"1F9D1-200D-1F3A4",keywords:["singer","song","artist","performer"],sheet:[46,7],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F3A4",sheet:[46,8]},{unified:"1F9D1-1F3FC-200D-1F3A4",sheet:[46,9]},{unified:"1F9D1-1F3FD-200D-1F3A4",sheet:[46,10]},{unified:"1F9D1-1F3FE-200D-1F3A4",sheet:[46,11]},{unified:"1F9D1-1F3FF-200D-1F3A4",sheet:[46,12]}],shortName:"singer"},{name:"Man Singer",unified:"1F468-200D-1F3A4",keywords:["man_singer","rockstar","entertainer","man","human"],sheet:[14,51],skinVariations:[{unified:"1F468-1F3FB-200D-1F3A4",sheet:[14,52]},{unified:"1F468-1F3FC-200D-1F3A4",sheet:[14,53]},{unified:"1F468-1F3FD-200D-1F3A4",sheet:[14,54]},{unified:"1F468-1F3FE-200D-1F3A4",sheet:[14,55]},{unified:"1F468-1F3FF-200D-1F3A4",sheet:[14,56]}],shortName:"male-singer"},{name:"Woman Singer",unified:"1F469-200D-1F3A4",keywords:["woman_singer","rockstar","entertainer","woman","human"],sheet:[17,44],skinVariations:[{unified:"1F469-1F3FB-200D-1F3A4",sheet:[17,45]},{unified:"1F469-1F3FC-200D-1F3A4",sheet:[17,46]},{unified:"1F469-1F3FD-200D-1F3A4",sheet:[17,47]},{unified:"1F469-1F3FE-200D-1F3A4",sheet:[17,48]},{unified:"1F469-1F3FF-200D-1F3A4",sheet:[17,49]}],shortName:"female-singer"},{name:"Artist",unified:"1F9D1-200D-1F3A8",keywords:["artist","painting","draw","creativity"],sheet:[46,13],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F3A8",sheet:[46,14]},{unified:"1F9D1-1F3FC-200D-1F3A8",sheet:[46,15]},{unified:"1F9D1-1F3FD-200D-1F3A8",sheet:[46,16]},{unified:"1F9D1-1F3FE-200D-1F3A8",sheet:[46,17]},{unified:"1F9D1-1F3FF-200D-1F3A8",sheet:[46,18]}],shortName:"artist"},{name:"Man Artist",unified:"1F468-200D-1F3A8",keywords:["man_artist","painter","man","human"],sheet:[14,57],skinVariations:[{unified:"1F468-1F3FB-200D-1F3A8",sheet:[15,0]},{unified:"1F468-1F3FC-200D-1F3A8",sheet:[15,1]},{unified:"1F468-1F3FD-200D-1F3A8",sheet:[15,2]},{unified:"1F468-1F3FE-200D-1F3A8",sheet:[15,3]},{unified:"1F468-1F3FF-200D-1F3A8",sheet:[15,4]}],shortName:"male-artist"},{name:"Woman Artist",unified:"1F469-200D-1F3A8",keywords:["woman_artist","painter","woman","human"],sheet:[17,50],skinVariations:[{unified:"1F469-1F3FB-200D-1F3A8",sheet:[17,51]},{unified:"1F469-1F3FC-200D-1F3A8",sheet:[17,52]},{unified:"1F469-1F3FD-200D-1F3A8",sheet:[17,53]},{unified:"1F469-1F3FE-200D-1F3A8",sheet:[17,54]},{unified:"1F469-1F3FF-200D-1F3A8",sheet:[17,55]}],shortName:"female-artist"},{name:"Pilot",unified:"1F9D1-200D-2708-FE0F",keywords:["pilot","fly","plane","airplane"],sheet:[48,31],skinVariations:[{unified:"1F9D1-1F3FB-200D-2708-FE0F",sheet:[48,32]},{unified:"1F9D1-1F3FC-200D-2708-FE0F",sheet:[48,33]},{unified:"1F9D1-1F3FD-200D-2708-FE0F",sheet:[48,34]},{unified:"1F9D1-1F3FE-200D-2708-FE0F",sheet:[48,35]},{unified:"1F9D1-1F3FF-200D-2708-FE0F",sheet:[48,36]}],shortName:"pilot"},{name:"Man Pilot",unified:"1F468-200D-2708-FE0F",keywords:["man_pilot","aviator","plane","man","human"],sheet:[17,6],skinVariations:[{unified:"1F468-1F3FB-200D-2708-FE0F",sheet:[17,7]},{unified:"1F468-1F3FC-200D-2708-FE0F",sheet:[17,8]},{unified:"1F468-1F3FD-200D-2708-FE0F",sheet:[17,9]},{unified:"1F468-1F3FE-200D-2708-FE0F",sheet:[17,10]},{unified:"1F468-1F3FF-200D-2708-FE0F",sheet:[17,11]}],shortName:"male-pilot"},{name:"Woman Pilot",unified:"1F469-200D-2708-FE0F",keywords:["woman_pilot","aviator","plane","woman","human"],sheet:[19,52],skinVariations:[{unified:"1F469-1F3FB-200D-2708-FE0F",sheet:[19,53]},{unified:"1F469-1F3FC-200D-2708-FE0F",sheet:[19,54]},{unified:"1F469-1F3FD-200D-2708-FE0F",sheet:[19,55]},{unified:"1F469-1F3FE-200D-2708-FE0F",sheet:[19,56]},{unified:"1F469-1F3FF-200D-2708-FE0F",sheet:[19,57]}],shortName:"female-pilot"},{name:"Astronaut",unified:"1F9D1-200D-1F680",keywords:["astronaut","outerspace"],sheet:[46,55],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F680",sheet:[46,56]},{unified:"1F9D1-1F3FC-200D-1F680",sheet:[46,57]},{unified:"1F9D1-1F3FD-200D-1F680",sheet:[47,0]},{unified:"1F9D1-1F3FE-200D-1F680",sheet:[47,1]},{unified:"1F9D1-1F3FF-200D-1F680",sheet:[47,2]}],shortName:"astronaut"},{name:"Man Astronaut",unified:"1F468-200D-1F680",keywords:["man_astronaut","space","rocket","man","human"],sheet:[15,56],skinVariations:[{unified:"1F468-1F3FB-200D-1F680",sheet:[15,57]},{unified:"1F468-1F3FC-200D-1F680",sheet:[16,0]},{unified:"1F468-1F3FD-200D-1F680",sheet:[16,1]},{unified:"1F468-1F3FE-200D-1F680",sheet:[16,2]},{unified:"1F468-1F3FF-200D-1F680",sheet:[16,3]}],shortName:"male-astronaut"},{name:"Woman Astronaut",unified:"1F469-200D-1F680",keywords:["woman_astronaut","space","rocket","woman","human"],sheet:[18,44],skinVariations:[{unified:"1F469-1F3FB-200D-1F680",sheet:[18,45]},{unified:"1F469-1F3FC-200D-1F680",sheet:[18,46]},{unified:"1F469-1F3FD-200D-1F680",sheet:[18,47]},{unified:"1F469-1F3FE-200D-1F680",sheet:[18,48]},{unified:"1F469-1F3FF-200D-1F680",sheet:[18,49]}],shortName:"female-astronaut"},{name:"Firefighter",unified:"1F9D1-200D-1F692",keywords:["firefighter","fire"],sheet:[47,3],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F692",sheet:[47,4]},{unified:"1F9D1-1F3FC-200D-1F692",sheet:[47,5]},{unified:"1F9D1-1F3FD-200D-1F692",sheet:[47,6]},{unified:"1F9D1-1F3FE-200D-1F692",sheet:[47,7]},{unified:"1F9D1-1F3FF-200D-1F692",sheet:[47,8]}],shortName:"firefighter"},{name:"Man Firefighter",unified:"1F468-200D-1F692",keywords:["man_firefighter","fireman","man","human"],sheet:[16,4],skinVariations:[{unified:"1F468-1F3FB-200D-1F692",sheet:[16,5]},{unified:"1F468-1F3FC-200D-1F692",sheet:[16,6]},{unified:"1F468-1F3FD-200D-1F692",sheet:[16,7]},{unified:"1F468-1F3FE-200D-1F692",sheet:[16,8]},{unified:"1F468-1F3FF-200D-1F692",sheet:[16,9]}],shortName:"male-firefighter"},{name:"Woman Firefighter",unified:"1F469-200D-1F692",keywords:["woman_firefighter","fireman","woman","human"],sheet:[18,50],skinVariations:[{unified:"1F469-1F3FB-200D-1F692",sheet:[18,51]},{unified:"1F469-1F3FC-200D-1F692",sheet:[18,52]},{unified:"1F469-1F3FD-200D-1F692",sheet:[18,53]},{unified:"1F469-1F3FE-200D-1F692",sheet:[18,54]},{unified:"1F469-1F3FF-200D-1F692",sheet:[18,55]}],shortName:"female-firefighter"},{name:"Police Officer",unified:"1F46E",keywords:["police_officer","cop"],sheet:[21,43],skinVariations:[{unified:"1F46E-1F3FB",sheet:[21,44]},{unified:"1F46E-1F3FC",sheet:[21,45]},{unified:"1F46E-1F3FD",sheet:[21,46]},{unified:"1F46E-1F3FE",sheet:[21,47]},{unified:"1F46E-1F3FF",sheet:[21,48]}],shortName:"cop",obsoletedBy:"1F46E-200D-2642-FE0F"},{name:"Man Police Officer",unified:"1F46E-200D-2642-FE0F",obsoletes:"1F46E",keywords:["man_police_officer","man","police","law","legal","enforcement","arrest","911"],sheet:[21,37],skinVariations:[{unified:"1F46E-1F3FB-200D-2642-FE0F",sheet:[21,38]},{unified:"1F46E-1F3FC-200D-2642-FE0F",sheet:[21,39]},{unified:"1F46E-1F3FD-200D-2642-FE0F",sheet:[21,40]},{unified:"1F46E-1F3FE-200D-2642-FE0F",sheet:[21,41]},{unified:"1F46E-1F3FF-200D-2642-FE0F",sheet:[21,42]}],shortName:"male-police-officer"},{name:"Woman Police Officer",unified:"1F46E-200D-2640-FE0F",keywords:["woman_police_officer","woman","police","law","legal","enforcement","arrest","911","female"],sheet:[21,31],skinVariations:[{unified:"1F46E-1F3FB-200D-2640-FE0F",sheet:[21,32]},{unified:"1F46E-1F3FC-200D-2640-FE0F",sheet:[21,33]},{unified:"1F46E-1F3FD-200D-2640-FE0F",sheet:[21,34]},{unified:"1F46E-1F3FE-200D-2640-FE0F",sheet:[21,35]},{unified:"1F46E-1F3FF-200D-2640-FE0F",sheet:[21,36]}],shortName:"female-police-officer"},{name:"Detective",unified:"1F575-FE0F",keywords:["detective","human","spy","detective"],sheet:[29,25],skinVariations:[{unified:"1F575-1F3FB",sheet:[29,26]},{unified:"1F575-1F3FC",sheet:[29,27]},{unified:"1F575-1F3FD",sheet:[29,28]},{unified:"1F575-1F3FE",sheet:[29,29]},{unified:"1F575-1F3FF",sheet:[29,30]}],shortName:"sleuth_or_spy",obsoletedBy:"1F575-FE0F-200D-2642-FE0F"},{name:"Man Detective",unified:"1F575-FE0F-200D-2642-FE0F",obsoletes:"1F575-FE0F",keywords:["man_detective","crime"],sheet:[29,19],hidden:["facebook"],skinVariations:[{unified:"1F575-1F3FB-200D-2642-FE0F",sheet:[29,20]},{unified:"1F575-1F3FC-200D-2642-FE0F",sheet:[29,21]},{unified:"1F575-1F3FD-200D-2642-FE0F",sheet:[29,22]},{unified:"1F575-1F3FE-200D-2642-FE0F",sheet:[29,23]},{unified:"1F575-1F3FF-200D-2642-FE0F",sheet:[29,24]}],shortName:"male-detective"},{name:"Woman Detective",unified:"1F575-FE0F-200D-2640-FE0F",keywords:["woman_detective","human","spy","detective","female","woman"],sheet:[29,13],hidden:["facebook"],skinVariations:[{unified:"1F575-1F3FB-200D-2640-FE0F",sheet:[29,14]},{unified:"1F575-1F3FC-200D-2640-FE0F",sheet:[29,15]},{unified:"1F575-1F3FD-200D-2640-FE0F",sheet:[29,16]},{unified:"1F575-1F3FE-200D-2640-FE0F",sheet:[29,17]},{unified:"1F575-1F3FF-200D-2640-FE0F",sheet:[29,18]}],shortName:"female-detective"},{name:"Guardsman",unified:"1F482",keywords:["guard","protect"],sheet:[24,23],skinVariations:[{unified:"1F482-1F3FB",sheet:[24,24]},{unified:"1F482-1F3FC",sheet:[24,25]},{unified:"1F482-1F3FD",sheet:[24,26]},{unified:"1F482-1F3FE",sheet:[24,27]},{unified:"1F482-1F3FF",sheet:[24,28]}],shortName:"guardsman",obsoletedBy:"1F482-200D-2642-FE0F"},{name:"Man Guard",unified:"1F482-200D-2642-FE0F",obsoletes:"1F482",keywords:["man_guard","uk","gb","british","male","guy","royal"],sheet:[24,17],skinVariations:[{unified:"1F482-1F3FB-200D-2642-FE0F",sheet:[24,18]},{unified:"1F482-1F3FC-200D-2642-FE0F",sheet:[24,19]},{unified:"1F482-1F3FD-200D-2642-FE0F",sheet:[24,20]},{unified:"1F482-1F3FE-200D-2642-FE0F",sheet:[24,21]},{unified:"1F482-1F3FF-200D-2642-FE0F",sheet:[24,22]}],shortName:"male-guard"},{name:"Woman Guard",unified:"1F482-200D-2640-FE0F",keywords:["woman_guard","uk","gb","british","female","royal","woman"],sheet:[24,11],skinVariations:[{unified:"1F482-1F3FB-200D-2640-FE0F",sheet:[24,12]},{unified:"1F482-1F3FC-200D-2640-FE0F",sheet:[24,13]},{unified:"1F482-1F3FD-200D-2640-FE0F",sheet:[24,14]},{unified:"1F482-1F3FE-200D-2640-FE0F",sheet:[24,15]},{unified:"1F482-1F3FF-200D-2640-FE0F",sheet:[24,16]}],shortName:"female-guard"},{name:"Ninja",unified:"1F977",keywords:["ninja","ninjutsu","skills","japanese"],sheet:[42,20],skinVariations:[{unified:"1F977-1F3FB",sheet:[42,21]},{unified:"1F977-1F3FC",sheet:[42,22]},{unified:"1F977-1F3FD",sheet:[42,23]},{unified:"1F977-1F3FE",sheet:[42,24]},{unified:"1F977-1F3FF",sheet:[42,25]}],shortName:"ninja"},{name:"Construction Worker",unified:"1F477",keywords:["construction_worker","labor","build"],sheet:[23,26],skinVariations:[{unified:"1F477-1F3FB",sheet:[23,27]},{unified:"1F477-1F3FC",sheet:[23,28]},{unified:"1F477-1F3FD",sheet:[23,29]},{unified:"1F477-1F3FE",sheet:[23,30]},{unified:"1F477-1F3FF",sheet:[23,31]}],shortName:"construction_worker",obsoletedBy:"1F477-200D-2642-FE0F"},{name:"Man Construction Worker",unified:"1F477-200D-2642-FE0F",obsoletes:"1F477",keywords:["man_construction_worker","male","human","wip","guy","build","construction","worker","labor"],sheet:[23,20],skinVariations:[{unified:"1F477-1F3FB-200D-2642-FE0F",sheet:[23,21]},{unified:"1F477-1F3FC-200D-2642-FE0F",sheet:[23,22]},{unified:"1F477-1F3FD-200D-2642-FE0F",sheet:[23,23]},{unified:"1F477-1F3FE-200D-2642-FE0F",sheet:[23,24]},{unified:"1F477-1F3FF-200D-2642-FE0F",sheet:[23,25]}],shortName:"male-construction-worker"},{name:"Woman Construction Worker",unified:"1F477-200D-2640-FE0F",keywords:["woman_construction_worker","female","human","wip","build","construction","worker","labor","woman"],sheet:[23,14],skinVariations:[{unified:"1F477-1F3FB-200D-2640-FE0F",sheet:[23,15]},{unified:"1F477-1F3FC-200D-2640-FE0F",sheet:[23,16]},{unified:"1F477-1F3FD-200D-2640-FE0F",sheet:[23,17]},{unified:"1F477-1F3FE-200D-2640-FE0F",sheet:[23,18]},{unified:"1F477-1F3FF-200D-2640-FE0F",sheet:[23,19]}],shortName:"female-construction-worker"},{name:"Prince",unified:"1F934",keywords:["prince","boy","man","male","crown","royal","king"],sheet:[39,15],skinVariations:[{unified:"1F934-1F3FB",sheet:[39,16]},{unified:"1F934-1F3FC",sheet:[39,17]},{unified:"1F934-1F3FD",sheet:[39,18]},{unified:"1F934-1F3FE",sheet:[39,19]},{unified:"1F934-1F3FF",sheet:[39,20]}],shortName:"prince"},{name:"Princess",unified:"1F478",keywords:["princess","girl","woman","female","blond","crown","royal","queen"],sheet:[23,32],skinVariations:[{unified:"1F478-1F3FB",sheet:[23,33]},{unified:"1F478-1F3FC",sheet:[23,34]},{unified:"1F478-1F3FD",sheet:[23,35]},{unified:"1F478-1F3FE",sheet:[23,36]},{unified:"1F478-1F3FF",sheet:[23,37]}],shortName:"princess"},{name:"Man with Turban",unified:"1F473",keywords:["person_wearing_turban","headdress"],sheet:[22,48],skinVariations:[{unified:"1F473-1F3FB",sheet:[22,49]},{unified:"1F473-1F3FC",sheet:[22,50]},{unified:"1F473-1F3FD",sheet:[22,51]},{unified:"1F473-1F3FE",sheet:[22,52]},{unified:"1F473-1F3FF",sheet:[22,53]}],shortName:"man_with_turban",obsoletedBy:"1F473-200D-2642-FE0F"},{name:"Man Wearing Turban",unified:"1F473-200D-2642-FE0F",obsoletes:"1F473",keywords:["man_wearing_turban","male","indian","hinduism","arabs"],sheet:[22,42],skinVariations:[{unified:"1F473-1F3FB-200D-2642-FE0F",sheet:[22,43]},{unified:"1F473-1F3FC-200D-2642-FE0F",sheet:[22,44]},{unified:"1F473-1F3FD-200D-2642-FE0F",sheet:[22,45]},{unified:"1F473-1F3FE-200D-2642-FE0F",sheet:[22,46]},{unified:"1F473-1F3FF-200D-2642-FE0F",sheet:[22,47]}],shortName:"man-wearing-turban"},{name:"Woman Wearing Turban",unified:"1F473-200D-2640-FE0F",keywords:["woman_wearing_turban","female","indian","hinduism","arabs","woman"],sheet:[22,36],skinVariations:[{unified:"1F473-1F3FB-200D-2640-FE0F",sheet:[22,37]},{unified:"1F473-1F3FC-200D-2640-FE0F",sheet:[22,38]},{unified:"1F473-1F3FD-200D-2640-FE0F",sheet:[22,39]},{unified:"1F473-1F3FE-200D-2640-FE0F",sheet:[22,40]},{unified:"1F473-1F3FF-200D-2640-FE0F",sheet:[22,41]}],shortName:"woman-wearing-turban"},{name:"Man with Gua Pi Mao",unified:"1F472",keywords:["man_with_skullcap","male","boy","chinese"],sheet:[22,30],skinVariations:[{unified:"1F472-1F3FB",sheet:[22,31]},{unified:"1F472-1F3FC",sheet:[22,32]},{unified:"1F472-1F3FD",sheet:[22,33]},{unified:"1F472-1F3FE",sheet:[22,34]},{unified:"1F472-1F3FF",sheet:[22,35]}],shortName:"man_with_gua_pi_mao"},{name:"Person with Headscarf",unified:"1F9D5",keywords:["woman_with_headscarf","female","hijab","mantilla","tichel"],sheet:[49,3],skinVariations:[{unified:"1F9D5-1F3FB",sheet:[49,4]},{unified:"1F9D5-1F3FC",sheet:[49,5]},{unified:"1F9D5-1F3FD",sheet:[49,6]},{unified:"1F9D5-1F3FE",sheet:[49,7]},{unified:"1F9D5-1F3FF",sheet:[49,8]}],shortName:"person_with_headscarf"},{name:"Man in Tuxedo",unified:"1F935",keywords:["man_in_tuxedo","couple","marriage","wedding","groom"],sheet:[39,33],skinVariations:[{unified:"1F935-1F3FB",sheet:[39,34]},{unified:"1F935-1F3FC",sheet:[39,35]},{unified:"1F935-1F3FD",sheet:[39,36]},{unified:"1F935-1F3FE",sheet:[39,37]},{unified:"1F935-1F3FF",sheet:[39,38]}],shortName:"person_in_tuxedo"},{name:"Man in Tuxedo",unified:"1F935-200D-2642-FE0F",keywords:["man in tuxedo","formal","fashion"],sheet:[39,27],skinVariations:[{unified:"1F935-1F3FB-200D-2642-FE0F",sheet:[39,28]},{unified:"1F935-1F3FC-200D-2642-FE0F",sheet:[39,29]},{unified:"1F935-1F3FD-200D-2642-FE0F",sheet:[39,30]},{unified:"1F935-1F3FE-200D-2642-FE0F",sheet:[39,31]},{unified:"1F935-1F3FF-200D-2642-FE0F",sheet:[39,32]}],shortName:"man_in_tuxedo"},{name:"Woman in Tuxedo",unified:"1F935-200D-2640-FE0F",keywords:["woman in tuxedo","formal","fashion"],sheet:[39,21],skinVariations:[{unified:"1F935-1F3FB-200D-2640-FE0F",sheet:[39,22]},{unified:"1F935-1F3FC-200D-2640-FE0F",sheet:[39,23]},{unified:"1F935-1F3FD-200D-2640-FE0F",sheet:[39,24]},{unified:"1F935-1F3FE-200D-2640-FE0F",sheet:[39,25]},{unified:"1F935-1F3FF-200D-2640-FE0F",sheet:[39,26]}],shortName:"woman_in_tuxedo"},{name:"Bride with Veil",unified:"1F470",keywords:["bride_with_veil","couple","marriage","wedding","woman","bride"],sheet:[22,6],skinVariations:[{unified:"1F470-1F3FB",sheet:[22,7]},{unified:"1F470-1F3FC",sheet:[22,8]},{unified:"1F470-1F3FD",sheet:[22,9]},{unified:"1F470-1F3FE",sheet:[22,10]},{unified:"1F470-1F3FF",sheet:[22,11]}],shortName:"bride_with_veil"},{name:"Man with Veil",unified:"1F470-200D-2642-FE0F",keywords:["man with veil","wedding","marriage"],sheet:[22,0],skinVariations:[{unified:"1F470-1F3FB-200D-2642-FE0F",sheet:[22,1]},{unified:"1F470-1F3FC-200D-2642-FE0F",sheet:[22,2]},{unified:"1F470-1F3FD-200D-2642-FE0F",sheet:[22,3]},{unified:"1F470-1F3FE-200D-2642-FE0F",sheet:[22,4]},{unified:"1F470-1F3FF-200D-2642-FE0F",sheet:[22,5]}],shortName:"man_with_veil"},{name:"Woman with Veil",unified:"1F470-200D-2640-FE0F",keywords:["woman with veil","wedding","marriage"],sheet:[21,52],skinVariations:[{unified:"1F470-1F3FB-200D-2640-FE0F",sheet:[21,53]},{unified:"1F470-1F3FC-200D-2640-FE0F",sheet:[21,54]},{unified:"1F470-1F3FD-200D-2640-FE0F",sheet:[21,55]},{unified:"1F470-1F3FE-200D-2640-FE0F",sheet:[21,56]},{unified:"1F470-1F3FF-200D-2640-FE0F",sheet:[21,57]}],shortName:"woman_with_veil"},{name:"Pregnant Woman",unified:"1F930",keywords:["pregnant_woman","baby"],sheet:[38,49],skinVariations:[{unified:"1F930-1F3FB",sheet:[38,50]},{unified:"1F930-1F3FC",sheet:[38,51]},{unified:"1F930-1F3FD",sheet:[38,52]},{unified:"1F930-1F3FE",sheet:[38,53]},{unified:"1F930-1F3FF",sheet:[38,54]}],shortName:"pregnant_woman"},{name:"Breast-Feeding",unified:"1F931",keywords:["breast_feeding","nursing","baby"],sheet:[38,55],skinVariations:[{unified:"1F931-1F3FB",sheet:[38,56]},{unified:"1F931-1F3FC",sheet:[38,57]},{unified:"1F931-1F3FD",sheet:[39,0]},{unified:"1F931-1F3FE",sheet:[39,1]},{unified:"1F931-1F3FF",sheet:[39,2]}],shortName:"breast-feeding"},{name:"Woman Feeding Baby",unified:"1F469-200D-1F37C",keywords:["woman feeding baby","birth","food"],sheet:[17,32],skinVariations:[{unified:"1F469-1F3FB-200D-1F37C",sheet:[17,33]},{unified:"1F469-1F3FC-200D-1F37C",sheet:[17,34]},{unified:"1F469-1F3FD-200D-1F37C",sheet:[17,35]},{unified:"1F469-1F3FE-200D-1F37C",sheet:[17,36]},{unified:"1F469-1F3FF-200D-1F37C",sheet:[17,37]}],shortName:"woman_feeding_baby"},{name:"Man Feeding Baby",unified:"1F468-200D-1F37C",keywords:["man feeding baby","birth","food"],sheet:[14,39],skinVariations:[{unified:"1F468-1F3FB-200D-1F37C",sheet:[14,40]},{unified:"1F468-1F3FC-200D-1F37C",sheet:[14,41]},{unified:"1F468-1F3FD-200D-1F37C",sheet:[14,42]},{unified:"1F468-1F3FE-200D-1F37C",sheet:[14,43]},{unified:"1F468-1F3FF-200D-1F37C",sheet:[14,44]}],shortName:"man_feeding_baby"},{name:"Person Feeding Baby",unified:"1F9D1-200D-1F37C",keywords:["person feeding baby","birth","food"],sheet:[45,47],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F37C",sheet:[45,48]},{unified:"1F9D1-1F3FC-200D-1F37C",sheet:[45,49]},{unified:"1F9D1-1F3FD-200D-1F37C",sheet:[45,50]},{unified:"1F9D1-1F3FE-200D-1F37C",sheet:[45,51]},{unified:"1F9D1-1F3FF-200D-1F37C",sheet:[45,52]}],shortName:"person_feeding_baby"},{name:"Baby Angel",unified:"1F47C",keywords:["baby_angel","heaven","wings","halo"],sheet:[23,41],skinVariations:[{unified:"1F47C-1F3FB",sheet:[23,42]},{unified:"1F47C-1F3FC",sheet:[23,43]},{unified:"1F47C-1F3FD",sheet:[23,44]},{unified:"1F47C-1F3FE",sheet:[23,45]},{unified:"1F47C-1F3FF",sheet:[23,46]}],shortName:"angel"},{name:"Father Christmas",unified:"1F385",keywords:["santa_claus","festival","man","male","xmas","father christmas"],sheet:[7,29],skinVariations:[{unified:"1F385-1F3FB",sheet:[7,30]},{unified:"1F385-1F3FC",sheet:[7,31]},{unified:"1F385-1F3FD",sheet:[7,32]},{unified:"1F385-1F3FE",sheet:[7,33]},{unified:"1F385-1F3FF",sheet:[7,34]}],shortName:"santa"},{name:"Mother Christmas",unified:"1F936",keywords:["mrs_claus","woman","female","xmas","mother christmas"],sheet:[39,39],skinVariations:[{unified:"1F936-1F3FB",sheet:[39,40]},{unified:"1F936-1F3FC",sheet:[39,41]},{unified:"1F936-1F3FD",sheet:[39,42]},{unified:"1F936-1F3FE",sheet:[39,43]},{unified:"1F936-1F3FF",sheet:[39,44]}],shortNames:["mother_christmas"],shortName:"mrs_claus"},{name:"Mx Claus",unified:"1F9D1-200D-1F384",keywords:["mx claus","christmas"],sheet:[45,53],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F384",sheet:[45,54]},{unified:"1F9D1-1F3FC-200D-1F384",sheet:[45,55]},{unified:"1F9D1-1F3FD-200D-1F384",sheet:[45,56]},{unified:"1F9D1-1F3FE-200D-1F384",sheet:[45,57]},{unified:"1F9D1-1F3FF-200D-1F384",sheet:[46,0]}],shortName:"mx_claus"},{name:"Superhero",unified:"1F9B8",keywords:["superhero","marvel"],sheet:[43,49],skinVariations:[{unified:"1F9B8-1F3FB",sheet:[43,50]},{unified:"1F9B8-1F3FC",sheet:[43,51]},{unified:"1F9B8-1F3FD",sheet:[43,52]},{unified:"1F9B8-1F3FE",sheet:[43,53]},{unified:"1F9B8-1F3FF",sheet:[43,54]}],shortName:"superhero"},{name:"Man Superhero",unified:"1F9B8-200D-2642-FE0F",keywords:["man_superhero","man","male","good","hero","superpowers"],sheet:[43,43],skinVariations:[{unified:"1F9B8-1F3FB-200D-2642-FE0F",sheet:[43,44]},{unified:"1F9B8-1F3FC-200D-2642-FE0F",sheet:[43,45]},{unified:"1F9B8-1F3FD-200D-2642-FE0F",sheet:[43,46]},{unified:"1F9B8-1F3FE-200D-2642-FE0F",sheet:[43,47]},{unified:"1F9B8-1F3FF-200D-2642-FE0F",sheet:[43,48]}],shortName:"male_superhero"},{name:"Woman Superhero",unified:"1F9B8-200D-2640-FE0F",keywords:["woman_superhero","woman","female","good","heroine","superpowers"],sheet:[43,37],skinVariations:[{unified:"1F9B8-1F3FB-200D-2640-FE0F",sheet:[43,38]},{unified:"1F9B8-1F3FC-200D-2640-FE0F",sheet:[43,39]},{unified:"1F9B8-1F3FD-200D-2640-FE0F",sheet:[43,40]},{unified:"1F9B8-1F3FE-200D-2640-FE0F",sheet:[43,41]},{unified:"1F9B8-1F3FF-200D-2640-FE0F",sheet:[43,42]}],shortName:"female_superhero"},{name:"Supervillain",unified:"1F9B9",keywords:["supervillain","marvel"],sheet:[44,9],skinVariations:[{unified:"1F9B9-1F3FB",sheet:[44,10]},{unified:"1F9B9-1F3FC",sheet:[44,11]},{unified:"1F9B9-1F3FD",sheet:[44,12]},{unified:"1F9B9-1F3FE",sheet:[44,13]},{unified:"1F9B9-1F3FF",sheet:[44,14]}],shortName:"supervillain"},{name:"Man Supervillain",unified:"1F9B9-200D-2642-FE0F",keywords:["man_supervillain","man","male","evil","bad","criminal","hero","superpowers"],sheet:[44,3],skinVariations:[{unified:"1F9B9-1F3FB-200D-2642-FE0F",sheet:[44,4]},{unified:"1F9B9-1F3FC-200D-2642-FE0F",sheet:[44,5]},{unified:"1F9B9-1F3FD-200D-2642-FE0F",sheet:[44,6]},{unified:"1F9B9-1F3FE-200D-2642-FE0F",sheet:[44,7]},{unified:"1F9B9-1F3FF-200D-2642-FE0F",sheet:[44,8]}],shortName:"male_supervillain"},{name:"Woman Supervillain",unified:"1F9B9-200D-2640-FE0F",keywords:["woman_supervillain","woman","female","evil","bad","criminal","heroine","superpowers"],sheet:[43,55],skinVariations:[{unified:"1F9B9-1F3FB-200D-2640-FE0F",sheet:[43,56]},{unified:"1F9B9-1F3FC-200D-2640-FE0F",sheet:[43,57]},{unified:"1F9B9-1F3FD-200D-2640-FE0F",sheet:[44,0]},{unified:"1F9B9-1F3FE-200D-2640-FE0F",sheet:[44,1]},{unified:"1F9B9-1F3FF-200D-2640-FE0F",sheet:[44,2]}],shortName:"female_supervillain"},{name:"Mage",unified:"1F9D9",keywords:["mage","magic"],sheet:[50,17],skinVariations:[{unified:"1F9D9-1F3FB",sheet:[50,18]},{unified:"1F9D9-1F3FC",sheet:[50,19]},{unified:"1F9D9-1F3FD",sheet:[50,20]},{unified:"1F9D9-1F3FE",sheet:[50,21]},{unified:"1F9D9-1F3FF",sheet:[50,22]}],shortName:"mage",obsoletedBy:"1F9D9-200D-2640-FE0F"},{name:"Man Mage",unified:"1F9D9-200D-2642-FE0F",keywords:["man_mage","man","male","mage","sorcerer"],sheet:[50,11],skinVariations:[{unified:"1F9D9-1F3FB-200D-2642-FE0F",sheet:[50,12]},{unified:"1F9D9-1F3FC-200D-2642-FE0F",sheet:[50,13]},{unified:"1F9D9-1F3FD-200D-2642-FE0F",sheet:[50,14]},{unified:"1F9D9-1F3FE-200D-2642-FE0F",sheet:[50,15]},{unified:"1F9D9-1F3FF-200D-2642-FE0F",sheet:[50,16]}],shortName:"male_mage"},{name:"Woman Mage",unified:"1F9D9-200D-2640-FE0F",obsoletes:"1F9D9",keywords:["woman_mage","woman","female","mage","witch"],sheet:[50,5],skinVariations:[{unified:"1F9D9-1F3FB-200D-2640-FE0F",sheet:[50,6]},{unified:"1F9D9-1F3FC-200D-2640-FE0F",sheet:[50,7]},{unified:"1F9D9-1F3FD-200D-2640-FE0F",sheet:[50,8]},{unified:"1F9D9-1F3FE-200D-2640-FE0F",sheet:[50,9]},{unified:"1F9D9-1F3FF-200D-2640-FE0F",sheet:[50,10]}],shortName:"female_mage"},{name:"Fairy",unified:"1F9DA",keywords:["fairy","wings","magical"],sheet:[50,35],skinVariations:[{unified:"1F9DA-1F3FB",sheet:[50,36]},{unified:"1F9DA-1F3FC",sheet:[50,37]},{unified:"1F9DA-1F3FD",sheet:[50,38]},{unified:"1F9DA-1F3FE",sheet:[50,39]},{unified:"1F9DA-1F3FF",sheet:[50,40]}],shortName:"fairy",obsoletedBy:"1F9DA-200D-2640-FE0F"},{name:"Man Fairy",unified:"1F9DA-200D-2642-FE0F",keywords:["man_fairy","man","male"],sheet:[50,29],skinVariations:[{unified:"1F9DA-1F3FB-200D-2642-FE0F",sheet:[50,30]},{unified:"1F9DA-1F3FC-200D-2642-FE0F",sheet:[50,31]},{unified:"1F9DA-1F3FD-200D-2642-FE0F",sheet:[50,32]},{unified:"1F9DA-1F3FE-200D-2642-FE0F",sheet:[50,33]},{unified:"1F9DA-1F3FF-200D-2642-FE0F",sheet:[50,34]}],shortName:"male_fairy"},{name:"Woman Fairy",unified:"1F9DA-200D-2640-FE0F",obsoletes:"1F9DA",keywords:["woman_fairy","woman","female"],sheet:[50,23],skinVariations:[{unified:"1F9DA-1F3FB-200D-2640-FE0F",sheet:[50,24]},{unified:"1F9DA-1F3FC-200D-2640-FE0F",sheet:[50,25]},{unified:"1F9DA-1F3FD-200D-2640-FE0F",sheet:[50,26]},{unified:"1F9DA-1F3FE-200D-2640-FE0F",sheet:[50,27]},{unified:"1F9DA-1F3FF-200D-2640-FE0F",sheet:[50,28]}],shortName:"female_fairy"},{name:"Vampire",unified:"1F9DB",keywords:["vampire","blood","twilight"],sheet:[50,53],skinVariations:[{unified:"1F9DB-1F3FB",sheet:[50,54]},{unified:"1F9DB-1F3FC",sheet:[50,55]},{unified:"1F9DB-1F3FD",sheet:[50,56]},{unified:"1F9DB-1F3FE",sheet:[50,57]},{unified:"1F9DB-1F3FF",sheet:[51,0]}],shortName:"vampire",obsoletedBy:"1F9DB-200D-2640-FE0F"},{name:"Man Vampire",unified:"1F9DB-200D-2642-FE0F",keywords:["man_vampire","man","male","dracula"],sheet:[50,47],skinVariations:[{unified:"1F9DB-1F3FB-200D-2642-FE0F",sheet:[50,48]},{unified:"1F9DB-1F3FC-200D-2642-FE0F",sheet:[50,49]},{unified:"1F9DB-1F3FD-200D-2642-FE0F",sheet:[50,50]},{unified:"1F9DB-1F3FE-200D-2642-FE0F",sheet:[50,51]},{unified:"1F9DB-1F3FF-200D-2642-FE0F",sheet:[50,52]}],shortName:"male_vampire"},{name:"Woman Vampire",unified:"1F9DB-200D-2640-FE0F",obsoletes:"1F9DB",keywords:["woman_vampire","woman","female"],sheet:[50,41],skinVariations:[{unified:"1F9DB-1F3FB-200D-2640-FE0F",sheet:[50,42]},{unified:"1F9DB-1F3FC-200D-2640-FE0F",sheet:[50,43]},{unified:"1F9DB-1F3FD-200D-2640-FE0F",sheet:[50,44]},{unified:"1F9DB-1F3FE-200D-2640-FE0F",sheet:[50,45]},{unified:"1F9DB-1F3FF-200D-2640-FE0F",sheet:[50,46]}],shortName:"female_vampire"},{name:"Merperson",unified:"1F9DC",keywords:["merperson","sea"],sheet:[51,13],skinVariations:[{unified:"1F9DC-1F3FB",sheet:[51,14]},{unified:"1F9DC-1F3FC",sheet:[51,15]},{unified:"1F9DC-1F3FD",sheet:[51,16]},{unified:"1F9DC-1F3FE",sheet:[51,17]},{unified:"1F9DC-1F3FF",sheet:[51,18]}],shortName:"merperson",obsoletedBy:"1F9DC-200D-2642-FE0F"},{name:"Merman",unified:"1F9DC-200D-2642-FE0F",obsoletes:"1F9DC",keywords:["merman","man","male","triton"],sheet:[51,7],skinVariations:[{unified:"1F9DC-1F3FB-200D-2642-FE0F",sheet:[51,8]},{unified:"1F9DC-1F3FC-200D-2642-FE0F",sheet:[51,9]},{unified:"1F9DC-1F3FD-200D-2642-FE0F",sheet:[51,10]},{unified:"1F9DC-1F3FE-200D-2642-FE0F",sheet:[51,11]},{unified:"1F9DC-1F3FF-200D-2642-FE0F",sheet:[51,12]}],shortName:"merman"},{name:"Mermaid",unified:"1F9DC-200D-2640-FE0F",keywords:["mermaid","woman","female","merwoman","ariel"],sheet:[51,1],skinVariations:[{unified:"1F9DC-1F3FB-200D-2640-FE0F",sheet:[51,2]},{unified:"1F9DC-1F3FC-200D-2640-FE0F",sheet:[51,3]},{unified:"1F9DC-1F3FD-200D-2640-FE0F",sheet:[51,4]},{unified:"1F9DC-1F3FE-200D-2640-FE0F",sheet:[51,5]},{unified:"1F9DC-1F3FF-200D-2640-FE0F",sheet:[51,6]}],shortName:"mermaid"},{name:"Elf",unified:"1F9DD",keywords:["elf","magical"],sheet:[51,31],skinVariations:[{unified:"1F9DD-1F3FB",sheet:[51,32]},{unified:"1F9DD-1F3FC",sheet:[51,33]},{unified:"1F9DD-1F3FD",sheet:[51,34]},{unified:"1F9DD-1F3FE",sheet:[51,35]},{unified:"1F9DD-1F3FF",sheet:[51,36]}],shortName:"elf",obsoletedBy:"1F9DD-200D-2642-FE0F"},{name:"Man Elf",unified:"1F9DD-200D-2642-FE0F",obsoletes:"1F9DD",keywords:["man_elf","man","male"],sheet:[51,25],skinVariations:[{unified:"1F9DD-1F3FB-200D-2642-FE0F",sheet:[51,26]},{unified:"1F9DD-1F3FC-200D-2642-FE0F",sheet:[51,27]},{unified:"1F9DD-1F3FD-200D-2642-FE0F",sheet:[51,28]},{unified:"1F9DD-1F3FE-200D-2642-FE0F",sheet:[51,29]},{unified:"1F9DD-1F3FF-200D-2642-FE0F",sheet:[51,30]}],shortName:"male_elf"},{name:"Woman Elf",unified:"1F9DD-200D-2640-FE0F",keywords:["woman_elf","woman","female"],sheet:[51,19],skinVariations:[{unified:"1F9DD-1F3FB-200D-2640-FE0F",sheet:[51,20]},{unified:"1F9DD-1F3FC-200D-2640-FE0F",sheet:[51,21]},{unified:"1F9DD-1F3FD-200D-2640-FE0F",sheet:[51,22]},{unified:"1F9DD-1F3FE-200D-2640-FE0F",sheet:[51,23]},{unified:"1F9DD-1F3FF-200D-2640-FE0F",sheet:[51,24]}],shortName:"female_elf"},{name:"Genie",unified:"1F9DE",keywords:["genie","magical","wishes"],sheet:[51,39],shortName:"genie",obsoletedBy:"1F9DE-200D-2642-FE0F"},{name:"Man Genie",unified:"1F9DE-200D-2642-FE0F",obsoletes:"1F9DE",keywords:["man_genie","man","male"],sheet:[51,38],shortName:"male_genie"},{name:"Woman Genie",unified:"1F9DE-200D-2640-FE0F",keywords:["woman_genie","woman","female"],sheet:[51,37],shortName:"female_genie"},{name:"Zombie",unified:"1F9DF",keywords:["zombie","dead"],sheet:[51,42],shortName:"zombie",obsoletedBy:"1F9DF-200D-2642-FE0F"},{name:"Man Zombie",unified:"1F9DF-200D-2642-FE0F",obsoletes:"1F9DF",keywords:["man_zombie","man","male","dracula","undead","walking dead"],sheet:[51,41],shortName:"male_zombie"},{name:"Woman Zombie",unified:"1F9DF-200D-2640-FE0F",keywords:["woman_zombie","woman","female","undead","walking dead"],sheet:[51,40],shortName:"female_zombie"},{name:"Face Massage",unified:"1F486",keywords:["person_getting_massage","relax"],sheet:[24,54],skinVariations:[{unified:"1F486-1F3FB",sheet:[24,55]},{unified:"1F486-1F3FC",sheet:[24,56]},{unified:"1F486-1F3FD",sheet:[24,57]},{unified:"1F486-1F3FE",sheet:[25,0]},{unified:"1F486-1F3FF",sheet:[25,1]}],shortName:"massage",obsoletedBy:"1F486-200D-2640-FE0F"},{name:"Man Getting Massage",unified:"1F486-200D-2642-FE0F",keywords:["man_getting_massage","male","boy","man","head"],sheet:[24,48],skinVariations:[{unified:"1F486-1F3FB-200D-2642-FE0F",sheet:[24,49]},{unified:"1F486-1F3FC-200D-2642-FE0F",sheet:[24,50]},{unified:"1F486-1F3FD-200D-2642-FE0F",sheet:[24,51]},{unified:"1F486-1F3FE-200D-2642-FE0F",sheet:[24,52]},{unified:"1F486-1F3FF-200D-2642-FE0F",sheet:[24,53]}],shortName:"man-getting-massage"},{name:"Woman Getting Massage",unified:"1F486-200D-2640-FE0F",obsoletes:"1F486",keywords:["woman_getting_massage","female","girl","woman","head"],sheet:[24,42],skinVariations:[{unified:"1F486-1F3FB-200D-2640-FE0F",sheet:[24,43]},{unified:"1F486-1F3FC-200D-2640-FE0F",sheet:[24,44]},{unified:"1F486-1F3FD-200D-2640-FE0F",sheet:[24,45]},{unified:"1F486-1F3FE-200D-2640-FE0F",sheet:[24,46]},{unified:"1F486-1F3FF-200D-2640-FE0F",sheet:[24,47]}],shortName:"woman-getting-massage"},{name:"Haircut",unified:"1F487",keywords:["person_getting_haircut","hairstyle"],sheet:[25,14],skinVariations:[{unified:"1F487-1F3FB",sheet:[25,15]},{unified:"1F487-1F3FC",sheet:[25,16]},{unified:"1F487-1F3FD",sheet:[25,17]},{unified:"1F487-1F3FE",sheet:[25,18]},{unified:"1F487-1F3FF",sheet:[25,19]}],shortName:"haircut",obsoletedBy:"1F487-200D-2640-FE0F"},{name:"Man Getting Haircut",unified:"1F487-200D-2642-FE0F",keywords:["man_getting_haircut","male","boy","man"],sheet:[25,8],skinVariations:[{unified:"1F487-1F3FB-200D-2642-FE0F",sheet:[25,9]},{unified:"1F487-1F3FC-200D-2642-FE0F",sheet:[25,10]},{unified:"1F487-1F3FD-200D-2642-FE0F",sheet:[25,11]},{unified:"1F487-1F3FE-200D-2642-FE0F",sheet:[25,12]},{unified:"1F487-1F3FF-200D-2642-FE0F",sheet:[25,13]}],shortName:"man-getting-haircut"},{name:"Woman Getting Haircut",unified:"1F487-200D-2640-FE0F",obsoletes:"1F487",keywords:["woman_getting_haircut","female","girl","woman"],sheet:[25,2],skinVariations:[{unified:"1F487-1F3FB-200D-2640-FE0F",sheet:[25,3]},{unified:"1F487-1F3FC-200D-2640-FE0F",sheet:[25,4]},{unified:"1F487-1F3FD-200D-2640-FE0F",sheet:[25,5]},{unified:"1F487-1F3FE-200D-2640-FE0F",sheet:[25,6]},{unified:"1F487-1F3FF-200D-2640-FE0F",sheet:[25,7]}],shortName:"woman-getting-haircut"},{name:"Pedestrian",unified:"1F6B6",keywords:["person_walking","move"],sheet:[35,51],skinVariations:[{unified:"1F6B6-1F3FB",sheet:[35,52]},{unified:"1F6B6-1F3FC",sheet:[35,53]},{unified:"1F6B6-1F3FD",sheet:[35,54]},{unified:"1F6B6-1F3FE",sheet:[35,55]},{unified:"1F6B6-1F3FF",sheet:[35,56]}],shortName:"walking",obsoletedBy:"1F6B6-200D-2642-FE0F"},{name:"Man Walking",unified:"1F6B6-200D-2642-FE0F",obsoletes:"1F6B6",keywords:["man_walking","human","feet","steps"],sheet:[35,45],skinVariations:[{unified:"1F6B6-1F3FB-200D-2642-FE0F",sheet:[35,46]},{unified:"1F6B6-1F3FC-200D-2642-FE0F",sheet:[35,47]},{unified:"1F6B6-1F3FD-200D-2642-FE0F",sheet:[35,48]},{unified:"1F6B6-1F3FE-200D-2642-FE0F",sheet:[35,49]},{unified:"1F6B6-1F3FF-200D-2642-FE0F",sheet:[35,50]}],shortName:"man-walking"},{name:"Woman Walking",unified:"1F6B6-200D-2640-FE0F",keywords:["woman_walking","human","feet","steps","woman","female"],sheet:[35,39],skinVariations:[{unified:"1F6B6-1F3FB-200D-2640-FE0F",sheet:[35,40]},{unified:"1F6B6-1F3FC-200D-2640-FE0F",sheet:[35,41]},{unified:"1F6B6-1F3FD-200D-2640-FE0F",sheet:[35,42]},{unified:"1F6B6-1F3FE-200D-2640-FE0F",sheet:[35,43]},{unified:"1F6B6-1F3FF-200D-2640-FE0F",sheet:[35,44]}],shortName:"woman-walking"},{name:"Standing Person",unified:"1F9CD",keywords:["person_standing","still"],sheet:[44,50],skinVariations:[{unified:"1F9CD-1F3FB",sheet:[44,51]},{unified:"1F9CD-1F3FC",sheet:[44,52]},{unified:"1F9CD-1F3FD",sheet:[44,53]},{unified:"1F9CD-1F3FE",sheet:[44,54]},{unified:"1F9CD-1F3FF",sheet:[44,55]}],shortName:"standing_person"},{name:"Man Standing",unified:"1F9CD-200D-2642-FE0F",keywords:["man_standing","still"],sheet:[44,44],skinVariations:[{unified:"1F9CD-1F3FB-200D-2642-FE0F",sheet:[44,45]},{unified:"1F9CD-1F3FC-200D-2642-FE0F",sheet:[44,46]},{unified:"1F9CD-1F3FD-200D-2642-FE0F",sheet:[44,47]},{unified:"1F9CD-1F3FE-200D-2642-FE0F",sheet:[44,48]},{unified:"1F9CD-1F3FF-200D-2642-FE0F",sheet:[44,49]}],shortName:"man_standing"},{name:"Woman Standing",unified:"1F9CD-200D-2640-FE0F",keywords:["woman_standing","still"],sheet:[44,38],skinVariations:[{unified:"1F9CD-1F3FB-200D-2640-FE0F",sheet:[44,39]},{unified:"1F9CD-1F3FC-200D-2640-FE0F",sheet:[44,40]},{unified:"1F9CD-1F3FD-200D-2640-FE0F",sheet:[44,41]},{unified:"1F9CD-1F3FE-200D-2640-FE0F",sheet:[44,42]},{unified:"1F9CD-1F3FF-200D-2640-FE0F",sheet:[44,43]}],shortName:"woman_standing"},{name:"Kneeling Person",unified:"1F9CE",keywords:["person_kneeling","pray","respectful"],sheet:[45,10],skinVariations:[{unified:"1F9CE-1F3FB",sheet:[45,11]},{unified:"1F9CE-1F3FC",sheet:[45,12]},{unified:"1F9CE-1F3FD",sheet:[45,13]},{unified:"1F9CE-1F3FE",sheet:[45,14]},{unified:"1F9CE-1F3FF",sheet:[45,15]}],shortName:"kneeling_person"},{name:"Man Kneeling",unified:"1F9CE-200D-2642-FE0F",keywords:["man_kneeling","pray","respectful"],sheet:[45,4],skinVariations:[{unified:"1F9CE-1F3FB-200D-2642-FE0F",sheet:[45,5]},{unified:"1F9CE-1F3FC-200D-2642-FE0F",sheet:[45,6]},{unified:"1F9CE-1F3FD-200D-2642-FE0F",sheet:[45,7]},{unified:"1F9CE-1F3FE-200D-2642-FE0F",sheet:[45,8]},{unified:"1F9CE-1F3FF-200D-2642-FE0F",sheet:[45,9]}],shortName:"man_kneeling"},{name:"Woman Kneeling",unified:"1F9CE-200D-2640-FE0F",keywords:["woman_kneeling","respectful","pray"],sheet:[44,56],skinVariations:[{unified:"1F9CE-1F3FB-200D-2640-FE0F",sheet:[44,57]},{unified:"1F9CE-1F3FC-200D-2640-FE0F",sheet:[45,0]},{unified:"1F9CE-1F3FD-200D-2640-FE0F",sheet:[45,1]},{unified:"1F9CE-1F3FE-200D-2640-FE0F",sheet:[45,2]},{unified:"1F9CE-1F3FF-200D-2640-FE0F",sheet:[45,3]}],shortName:"woman_kneeling"},{name:"Person with White Cane",unified:"1F9D1-200D-1F9AF",keywords:["person_with_probing_cane","blind"],sheet:[47,35],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F9AF",sheet:[47,36]},{unified:"1F9D1-1F3FC-200D-1F9AF",sheet:[47,37]},{unified:"1F9D1-1F3FD-200D-1F9AF",sheet:[47,38]},{unified:"1F9D1-1F3FE-200D-1F9AF",sheet:[47,39]},{unified:"1F9D1-1F3FF-200D-1F9AF",sheet:[47,40]}],shortName:"person_with_probing_cane"},{name:"Man with White Cane",unified:"1F468-200D-1F9AF",keywords:["man_with_probing_cane","blind"],sheet:[16,10],skinVariations:[{unified:"1F468-1F3FB-200D-1F9AF",sheet:[16,11]},{unified:"1F468-1F3FC-200D-1F9AF",sheet:[16,12]},{unified:"1F468-1F3FD-200D-1F9AF",sheet:[16,13]},{unified:"1F468-1F3FE-200D-1F9AF",sheet:[16,14]},{unified:"1F468-1F3FF-200D-1F9AF",sheet:[16,15]}],shortName:"man_with_probing_cane"},{name:"Woman with White Cane",unified:"1F469-200D-1F9AF",keywords:["woman_with_probing_cane","blind"],sheet:[18,56],skinVariations:[{unified:"1F469-1F3FB-200D-1F9AF",sheet:[18,57]},{unified:"1F469-1F3FC-200D-1F9AF",sheet:[19,0]},{unified:"1F469-1F3FD-200D-1F9AF",sheet:[19,1]},{unified:"1F469-1F3FE-200D-1F9AF",sheet:[19,2]},{unified:"1F469-1F3FF-200D-1F9AF",sheet:[19,3]}],shortName:"woman_with_probing_cane"},{name:"Person in Motorized Wheelchair",unified:"1F9D1-200D-1F9BC",keywords:["person_in_motorized_wheelchair","disability","accessibility"],sheet:[48,7],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F9BC",sheet:[48,8]},{unified:"1F9D1-1F3FC-200D-1F9BC",sheet:[48,9]},{unified:"1F9D1-1F3FD-200D-1F9BC",sheet:[48,10]},{unified:"1F9D1-1F3FE-200D-1F9BC",sheet:[48,11]},{unified:"1F9D1-1F3FF-200D-1F9BC",sheet:[48,12]}],shortName:"person_in_motorized_wheelchair"},{name:"Man in Motorized Wheelchair",unified:"1F468-200D-1F9BC",keywords:["man_in_motorized_wheelchair","disability","accessibility"],sheet:[16,40],skinVariations:[{unified:"1F468-1F3FB-200D-1F9BC",sheet:[16,41]},{unified:"1F468-1F3FC-200D-1F9BC",sheet:[16,42]},{unified:"1F468-1F3FD-200D-1F9BC",sheet:[16,43]},{unified:"1F468-1F3FE-200D-1F9BC",sheet:[16,44]},{unified:"1F468-1F3FF-200D-1F9BC",sheet:[16,45]}],shortName:"man_in_motorized_wheelchair"},{name:"Woman in Motorized Wheelchair",unified:"1F469-200D-1F9BC",keywords:["woman_in_motorized_wheelchair","disability","accessibility"],sheet:[19,28],skinVariations:[{unified:"1F469-1F3FB-200D-1F9BC",sheet:[19,29]},{unified:"1F469-1F3FC-200D-1F9BC",sheet:[19,30]},{unified:"1F469-1F3FD-200D-1F9BC",sheet:[19,31]},{unified:"1F469-1F3FE-200D-1F9BC",sheet:[19,32]},{unified:"1F469-1F3FF-200D-1F9BC",sheet:[19,33]}],shortName:"woman_in_motorized_wheelchair"},{name:"Person in Manual Wheelchair",unified:"1F9D1-200D-1F9BD",keywords:["person_in_manual_wheelchair","disability","accessibility"],sheet:[48,13],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F9BD",sheet:[48,14]},{unified:"1F9D1-1F3FC-200D-1F9BD",sheet:[48,15]},{unified:"1F9D1-1F3FD-200D-1F9BD",sheet:[48,16]},{unified:"1F9D1-1F3FE-200D-1F9BD",sheet:[48,17]},{unified:"1F9D1-1F3FF-200D-1F9BD",sheet:[48,18]}],shortName:"person_in_manual_wheelchair"},{name:"Man in Manual Wheelchair",unified:"1F468-200D-1F9BD",keywords:["man_in_manual_wheelchair","disability","accessibility"],sheet:[16,46],skinVariations:[{unified:"1F468-1F3FB-200D-1F9BD",sheet:[16,47]},{unified:"1F468-1F3FC-200D-1F9BD",sheet:[16,48]},{unified:"1F468-1F3FD-200D-1F9BD",sheet:[16,49]},{unified:"1F468-1F3FE-200D-1F9BD",sheet:[16,50]},{unified:"1F468-1F3FF-200D-1F9BD",sheet:[16,51]}],shortName:"man_in_manual_wheelchair"},{name:"Woman in Manual Wheelchair",unified:"1F469-200D-1F9BD",keywords:["woman_in_manual_wheelchair","disability","accessibility"],sheet:[19,34],skinVariations:[{unified:"1F469-1F3FB-200D-1F9BD",sheet:[19,35]},{unified:"1F469-1F3FC-200D-1F9BD",sheet:[19,36]},{unified:"1F469-1F3FD-200D-1F9BD",sheet:[19,37]},{unified:"1F469-1F3FE-200D-1F9BD",sheet:[19,38]},{unified:"1F469-1F3FF-200D-1F9BD",sheet:[19,39]}],shortName:"woman_in_manual_wheelchair"},{name:"Runner",unified:"1F3C3",keywords:["person_running","move"],sheet:[8,50],skinVariations:[{unified:"1F3C3-1F3FB",sheet:[8,51]},{unified:"1F3C3-1F3FC",sheet:[8,52]},{unified:"1F3C3-1F3FD",sheet:[8,53]},{unified:"1F3C3-1F3FE",sheet:[8,54]},{unified:"1F3C3-1F3FF",sheet:[8,55]}],shortNames:["running"],shortName:"runner",obsoletedBy:"1F3C3-200D-2642-FE0F"},{name:"Man Running",unified:"1F3C3-200D-2642-FE0F",obsoletes:"1F3C3",keywords:["man_running","man","walking","exercise","race","running"],sheet:[8,44],skinVariations:[{unified:"1F3C3-1F3FB-200D-2642-FE0F",sheet:[8,45]},{unified:"1F3C3-1F3FC-200D-2642-FE0F",sheet:[8,46]},{unified:"1F3C3-1F3FD-200D-2642-FE0F",sheet:[8,47]},{unified:"1F3C3-1F3FE-200D-2642-FE0F",sheet:[8,48]},{unified:"1F3C3-1F3FF-200D-2642-FE0F",sheet:[8,49]}],shortName:"man-running"},{name:"Woman Running",unified:"1F3C3-200D-2640-FE0F",keywords:["woman_running","woman","walking","exercise","race","running","female"],sheet:[8,38],skinVariations:[{unified:"1F3C3-1F3FB-200D-2640-FE0F",sheet:[8,39]},{unified:"1F3C3-1F3FC-200D-2640-FE0F",sheet:[8,40]},{unified:"1F3C3-1F3FD-200D-2640-FE0F",sheet:[8,41]},{unified:"1F3C3-1F3FE-200D-2640-FE0F",sheet:[8,42]},{unified:"1F3C3-1F3FF-200D-2640-FE0F",sheet:[8,43]}],shortName:"woman-running"},{name:"Dancer",unified:"1F483",keywords:["woman_dancing","female","girl","woman","fun"],sheet:[24,29],skinVariations:[{unified:"1F483-1F3FB",sheet:[24,30]},{unified:"1F483-1F3FC",sheet:[24,31]},{unified:"1F483-1F3FD",sheet:[24,32]},{unified:"1F483-1F3FE",sheet:[24,33]},{unified:"1F483-1F3FF",sheet:[24,34]}],shortName:"dancer"},{name:"Man Dancing",unified:"1F57A",keywords:["man_dancing","male","boy","fun","dancer"],sheet:[29,35],skinVariations:[{unified:"1F57A-1F3FB",sheet:[29,36]},{unified:"1F57A-1F3FC",sheet:[29,37]},{unified:"1F57A-1F3FD",sheet:[29,38]},{unified:"1F57A-1F3FE",sheet:[29,39]},{unified:"1F57A-1F3FF",sheet:[29,40]}],shortName:"man_dancing"},{name:"Person in Suit Levitating",unified:"1F574-FE0F",keywords:["man_in_suit_levitating","suit","business","levitate","hover","jump"],sheet:[29,7],skinVariations:[{unified:"1F574-1F3FB",sheet:[29,8]},{unified:"1F574-1F3FC",sheet:[29,9]},{unified:"1F574-1F3FD",sheet:[29,10]},{unified:"1F574-1F3FE",sheet:[29,11]},{unified:"1F574-1F3FF",sheet:[29,12]}],shortName:"man_in_business_suit_levitating"},{name:"Woman with Bunny Ears",unified:"1F46F",keywords:["people_with_bunny_ears","perform","costume"],sheet:[21,51],shortName:"dancers",obsoletedBy:"1F46F-200D-2640-FE0F"},{name:"Men with Bunny Ears",unified:"1F46F-200D-2642-FE0F",keywords:["men_with_bunny_ears","male","bunny","men","boys"],sheet:[21,50],shortName:"man-with-bunny-ears-partying"},{name:"Women with Bunny Ears",unified:"1F46F-200D-2640-FE0F",obsoletes:"1F46F",keywords:["women_with_bunny_ears","female","bunny","women","girls"],sheet:[21,49],shortName:"woman-with-bunny-ears-partying"},{name:"Person in Steamy Room",unified:"1F9D6",keywords:["person_in_steamy_room","relax","spa"],sheet:[49,21],skinVariations:[{unified:"1F9D6-1F3FB",sheet:[49,22]},{unified:"1F9D6-1F3FC",sheet:[49,23]},{unified:"1F9D6-1F3FD",sheet:[49,24]},{unified:"1F9D6-1F3FE",sheet:[49,25]},{unified:"1F9D6-1F3FF",sheet:[49,26]}],shortName:"person_in_steamy_room",obsoletedBy:"1F9D6-200D-2642-FE0F"},{name:"Man in Steamy Room",unified:"1F9D6-200D-2642-FE0F",obsoletes:"1F9D6",keywords:["man_in_steamy_room","male","man","spa","steamroom","sauna"],sheet:[49,15],skinVariations:[{unified:"1F9D6-1F3FB-200D-2642-FE0F",sheet:[49,16]},{unified:"1F9D6-1F3FC-200D-2642-FE0F",sheet:[49,17]},{unified:"1F9D6-1F3FD-200D-2642-FE0F",sheet:[49,18]},{unified:"1F9D6-1F3FE-200D-2642-FE0F",sheet:[49,19]},{unified:"1F9D6-1F3FF-200D-2642-FE0F",sheet:[49,20]}],shortName:"man_in_steamy_room"},{name:"Woman in Steamy Room",unified:"1F9D6-200D-2640-FE0F",keywords:["woman_in_steamy_room","female","woman","spa","steamroom","sauna"],sheet:[49,9],skinVariations:[{unified:"1F9D6-1F3FB-200D-2640-FE0F",sheet:[49,10]},{unified:"1F9D6-1F3FC-200D-2640-FE0F",sheet:[49,11]},{unified:"1F9D6-1F3FD-200D-2640-FE0F",sheet:[49,12]},{unified:"1F9D6-1F3FE-200D-2640-FE0F",sheet:[49,13]},{unified:"1F9D6-1F3FF-200D-2640-FE0F",sheet:[49,14]}],shortName:"woman_in_steamy_room"},{name:"Person Climbing",unified:"1F9D7",keywords:["person_climbing","sport"],sheet:[49,39],skinVariations:[{unified:"1F9D7-1F3FB",sheet:[49,40]},{unified:"1F9D7-1F3FC",sheet:[49,41]},{unified:"1F9D7-1F3FD",sheet:[49,42]},{unified:"1F9D7-1F3FE",sheet:[49,43]},{unified:"1F9D7-1F3FF",sheet:[49,44]}],shortName:"person_climbing",obsoletedBy:"1F9D7-200D-2640-FE0F"},{name:"Man Climbing",unified:"1F9D7-200D-2642-FE0F",keywords:["man_climbing","sports","hobby","man","male","rock"],sheet:[49,33],skinVariations:[{unified:"1F9D7-1F3FB-200D-2642-FE0F",sheet:[49,34]},{unified:"1F9D7-1F3FC-200D-2642-FE0F",sheet:[49,35]},{unified:"1F9D7-1F3FD-200D-2642-FE0F",sheet:[49,36]},{unified:"1F9D7-1F3FE-200D-2642-FE0F",sheet:[49,37]},{unified:"1F9D7-1F3FF-200D-2642-FE0F",sheet:[49,38]}],shortName:"man_climbing"},{name:"Woman Climbing",unified:"1F9D7-200D-2640-FE0F",obsoletes:"1F9D7",keywords:["woman_climbing","sports","hobby","woman","female","rock"],sheet:[49,27],skinVariations:[{unified:"1F9D7-1F3FB-200D-2640-FE0F",sheet:[49,28]},{unified:"1F9D7-1F3FC-200D-2640-FE0F",sheet:[49,29]},{unified:"1F9D7-1F3FD-200D-2640-FE0F",sheet:[49,30]},{unified:"1F9D7-1F3FE-200D-2640-FE0F",sheet:[49,31]},{unified:"1F9D7-1F3FF-200D-2640-FE0F",sheet:[49,32]}],shortName:"woman_climbing"},{name:"Fencer",unified:"1F93A",keywords:["person_fencing","sports","fencing","sword"],sheet:[40,41],shortName:"fencer"},{name:"Horse Racing",unified:"1F3C7",keywords:["horse_racing","animal","betting","competition","gambling","luck"],sheet:[9,18],skinVariations:[{unified:"1F3C7-1F3FB",sheet:[9,19]},{unified:"1F3C7-1F3FC",sheet:[9,20]},{unified:"1F3C7-1F3FD",sheet:[9,21]},{unified:"1F3C7-1F3FE",sheet:[9,22]},{unified:"1F3C7-1F3FF",sheet:[9,23]}],shortName:"horse_racing"},{name:"Skier",unified:"26F7-FE0F",keywords:["skier","sports","winter","snow"],sheet:[55,22],shortName:"skier"},{name:"Snowboarder",unified:"1F3C2",keywords:["snowboarder","sports","winter"],sheet:[8,32],skinVariations:[{unified:"1F3C2-1F3FB",sheet:[8,33]},{unified:"1F3C2-1F3FC",sheet:[8,34]},{unified:"1F3C2-1F3FD",sheet:[8,35]},{unified:"1F3C2-1F3FE",sheet:[8,36]},{unified:"1F3C2-1F3FF",sheet:[8,37]}],shortName:"snowboarder"},{name:"Person Golfing",unified:"1F3CC-FE0F",keywords:["person_golfing","sports","business"],sheet:[10,16],skinVariations:[{unified:"1F3CC-1F3FB",sheet:[10,17]},{unified:"1F3CC-1F3FC",sheet:[10,18]},{unified:"1F3CC-1F3FD",sheet:[10,19]},{unified:"1F3CC-1F3FE",sheet:[10,20]},{unified:"1F3CC-1F3FF",sheet:[10,21]}],shortName:"golfer",obsoletedBy:"1F3CC-FE0F-200D-2642-FE0F"},{name:"Man Golfing",unified:"1F3CC-FE0F-200D-2642-FE0F",obsoletes:"1F3CC-FE0F",keywords:["man_golfing","sport"],sheet:[10,10],hidden:["facebook"],skinVariations:[{unified:"1F3CC-1F3FB-200D-2642-FE0F",sheet:[10,11]},{unified:"1F3CC-1F3FC-200D-2642-FE0F",sheet:[10,12]},{unified:"1F3CC-1F3FD-200D-2642-FE0F",sheet:[10,13]},{unified:"1F3CC-1F3FE-200D-2642-FE0F",sheet:[10,14]},{unified:"1F3CC-1F3FF-200D-2642-FE0F",sheet:[10,15]}],shortName:"man-golfing"},{name:"Woman Golfing",unified:"1F3CC-FE0F-200D-2640-FE0F",keywords:["woman_golfing","sports","business","woman","female"],sheet:[10,4],hidden:["facebook"],skinVariations:[{unified:"1F3CC-1F3FB-200D-2640-FE0F",sheet:[10,5]},{unified:"1F3CC-1F3FC-200D-2640-FE0F",sheet:[10,6]},{unified:"1F3CC-1F3FD-200D-2640-FE0F",sheet:[10,7]},{unified:"1F3CC-1F3FE-200D-2640-FE0F",sheet:[10,8]},{unified:"1F3CC-1F3FF-200D-2640-FE0F",sheet:[10,9]}],shortName:"woman-golfing"},{name:"Surfer",unified:"1F3C4",keywords:["person_surfing","sport","sea"],sheet:[9,10],skinVariations:[{unified:"1F3C4-1F3FB",sheet:[9,11]},{unified:"1F3C4-1F3FC",sheet:[9,12]},{unified:"1F3C4-1F3FD",sheet:[9,13]},{unified:"1F3C4-1F3FE",sheet:[9,14]},{unified:"1F3C4-1F3FF",sheet:[9,15]}],shortName:"surfer",obsoletedBy:"1F3C4-200D-2642-FE0F"},{name:"Man Surfing",unified:"1F3C4-200D-2642-FE0F",obsoletes:"1F3C4",keywords:["man_surfing","sports","ocean","sea","summer","beach"],sheet:[9,4],skinVariations:[{unified:"1F3C4-1F3FB-200D-2642-FE0F",sheet:[9,5]},{unified:"1F3C4-1F3FC-200D-2642-FE0F",sheet:[9,6]},{unified:"1F3C4-1F3FD-200D-2642-FE0F",sheet:[9,7]},{unified:"1F3C4-1F3FE-200D-2642-FE0F",sheet:[9,8]},{unified:"1F3C4-1F3FF-200D-2642-FE0F",sheet:[9,9]}],shortName:"man-surfing"},{name:"Woman Surfing",unified:"1F3C4-200D-2640-FE0F",keywords:["woman_surfing","sports","ocean","sea","summer","beach","woman","female"],sheet:[8,56],skinVariations:[{unified:"1F3C4-1F3FB-200D-2640-FE0F",sheet:[8,57]},{unified:"1F3C4-1F3FC-200D-2640-FE0F",sheet:[9,0]},{unified:"1F3C4-1F3FD-200D-2640-FE0F",sheet:[9,1]},{unified:"1F3C4-1F3FE-200D-2640-FE0F",sheet:[9,2]},{unified:"1F3C4-1F3FF-200D-2640-FE0F",sheet:[9,3]}],shortName:"woman-surfing"},{name:"Rowboat",unified:"1F6A3",keywords:["person_rowing_boat","sport","move"],sheet:[34,39],skinVariations:[{unified:"1F6A3-1F3FB",sheet:[34,40]},{unified:"1F6A3-1F3FC",sheet:[34,41]},{unified:"1F6A3-1F3FD",sheet:[34,42]},{unified:"1F6A3-1F3FE",sheet:[34,43]},{unified:"1F6A3-1F3FF",sheet:[34,44]}],shortName:"rowboat",obsoletedBy:"1F6A3-200D-2642-FE0F"},{name:"Man Rowing Boat",unified:"1F6A3-200D-2642-FE0F",obsoletes:"1F6A3",keywords:["man_rowing_boat","sports","hobby","water","ship"],sheet:[34,33],skinVariations:[{unified:"1F6A3-1F3FB-200D-2642-FE0F",sheet:[34,34]},{unified:"1F6A3-1F3FC-200D-2642-FE0F",sheet:[34,35]},{unified:"1F6A3-1F3FD-200D-2642-FE0F",sheet:[34,36]},{unified:"1F6A3-1F3FE-200D-2642-FE0F",sheet:[34,37]},{unified:"1F6A3-1F3FF-200D-2642-FE0F",sheet:[34,38]}],shortName:"man-rowing-boat"},{name:"Woman Rowing Boat",unified:"1F6A3-200D-2640-FE0F",keywords:["woman_rowing_boat","sports","hobby","water","ship","woman","female"],sheet:[34,27],skinVariations:[{unified:"1F6A3-1F3FB-200D-2640-FE0F",sheet:[34,28]},{unified:"1F6A3-1F3FC-200D-2640-FE0F",sheet:[34,29]},{unified:"1F6A3-1F3FD-200D-2640-FE0F",sheet:[34,30]},{unified:"1F6A3-1F3FE-200D-2640-FE0F",sheet:[34,31]},{unified:"1F6A3-1F3FF-200D-2640-FE0F",sheet:[34,32]}],shortName:"woman-rowing-boat"},{name:"Swimmer",unified:"1F3CA",keywords:["person_swimming","sport","pool"],sheet:[9,38],skinVariations:[{unified:"1F3CA-1F3FB",sheet:[9,39]},{unified:"1F3CA-1F3FC",sheet:[9,40]},{unified:"1F3CA-1F3FD",sheet:[9,41]},{unified:"1F3CA-1F3FE",sheet:[9,42]},{unified:"1F3CA-1F3FF",sheet:[9,43]}],shortName:"swimmer",obsoletedBy:"1F3CA-200D-2642-FE0F"},{name:"Man Swimming",unified:"1F3CA-200D-2642-FE0F",obsoletes:"1F3CA",keywords:["man_swimming","sports","exercise","human","athlete","water","summer"],sheet:[9,32],skinVariations:[{unified:"1F3CA-1F3FB-200D-2642-FE0F",sheet:[9,33]},{unified:"1F3CA-1F3FC-200D-2642-FE0F",sheet:[9,34]},{unified:"1F3CA-1F3FD-200D-2642-FE0F",sheet:[9,35]},{unified:"1F3CA-1F3FE-200D-2642-FE0F",sheet:[9,36]},{unified:"1F3CA-1F3FF-200D-2642-FE0F",sheet:[9,37]}],shortName:"man-swimming"},{name:"Woman Swimming",unified:"1F3CA-200D-2640-FE0F",keywords:["woman_swimming","sports","exercise","human","athlete","water","summer","woman","female"],sheet:[9,26],skinVariations:[{unified:"1F3CA-1F3FB-200D-2640-FE0F",sheet:[9,27]},{unified:"1F3CA-1F3FC-200D-2640-FE0F",sheet:[9,28]},{unified:"1F3CA-1F3FD-200D-2640-FE0F",sheet:[9,29]},{unified:"1F3CA-1F3FE-200D-2640-FE0F",sheet:[9,30]},{unified:"1F3CA-1F3FF-200D-2640-FE0F",sheet:[9,31]}],shortName:"woman-swimming"},{name:"Person Bouncing Ball",unified:"26F9-FE0F",keywords:["person_bouncing_ball","sports","human"],sheet:[55,36],skinVariations:[{unified:"26F9-1F3FB",sheet:[55,37]},{unified:"26F9-1F3FC",sheet:[55,38]},{unified:"26F9-1F3FD",sheet:[55,39]},{unified:"26F9-1F3FE",sheet:[55,40]},{unified:"26F9-1F3FF",sheet:[55,41]}],shortName:"person_with_ball",obsoletedBy:"26F9-FE0F-200D-2642-FE0F"},{name:"Man Bouncing Ball",unified:"26F9-FE0F-200D-2642-FE0F",obsoletes:"26F9-FE0F",keywords:["man_bouncing_ball","sport"],sheet:[55,30],hidden:["facebook"],skinVariations:[{unified:"26F9-1F3FB-200D-2642-FE0F",sheet:[55,31]},{unified:"26F9-1F3FC-200D-2642-FE0F",sheet:[55,32]},{unified:"26F9-1F3FD-200D-2642-FE0F",sheet:[55,33]},{unified:"26F9-1F3FE-200D-2642-FE0F",sheet:[55,34]},{unified:"26F9-1F3FF-200D-2642-FE0F",sheet:[55,35]}],shortName:"man-bouncing-ball"},{name:"Woman Bouncing Ball",unified:"26F9-FE0F-200D-2640-FE0F",keywords:["woman_bouncing_ball","sports","human","woman","female"],sheet:[55,24],hidden:["facebook"],skinVariations:[{unified:"26F9-1F3FB-200D-2640-FE0F",sheet:[55,25]},{unified:"26F9-1F3FC-200D-2640-FE0F",sheet:[55,26]},{unified:"26F9-1F3FD-200D-2640-FE0F",sheet:[55,27]},{unified:"26F9-1F3FE-200D-2640-FE0F",sheet:[55,28]},{unified:"26F9-1F3FF-200D-2640-FE0F",sheet:[55,29]}],shortName:"woman-bouncing-ball"},{name:"Person Lifting Weights",unified:"1F3CB-FE0F",keywords:["person_lifting_weights","sports","training","exercise"],sheet:[9,56],skinVariations:[{unified:"1F3CB-1F3FB",sheet:[9,57]},{unified:"1F3CB-1F3FC",sheet:[10,0]},{unified:"1F3CB-1F3FD",sheet:[10,1]},{unified:"1F3CB-1F3FE",sheet:[10,2]},{unified:"1F3CB-1F3FF",sheet:[10,3]}],shortName:"weight_lifter",obsoletedBy:"1F3CB-FE0F-200D-2642-FE0F"},{name:"Man Lifting Weights",unified:"1F3CB-FE0F-200D-2642-FE0F",obsoletes:"1F3CB-FE0F",keywords:["man_lifting_weights","sport"],sheet:[9,50],hidden:["facebook"],skinVariations:[{unified:"1F3CB-1F3FB-200D-2642-FE0F",sheet:[9,51]},{unified:"1F3CB-1F3FC-200D-2642-FE0F",sheet:[9,52]},{unified:"1F3CB-1F3FD-200D-2642-FE0F",sheet:[9,53]},{unified:"1F3CB-1F3FE-200D-2642-FE0F",sheet:[9,54]},{unified:"1F3CB-1F3FF-200D-2642-FE0F",sheet:[9,55]}],shortName:"man-lifting-weights"},{name:"Woman Lifting Weights",unified:"1F3CB-FE0F-200D-2640-FE0F",keywords:["woman_lifting_weights","sports","training","exercise","woman","female"],sheet:[9,44],hidden:["facebook"],skinVariations:[{unified:"1F3CB-1F3FB-200D-2640-FE0F",sheet:[9,45]},{unified:"1F3CB-1F3FC-200D-2640-FE0F",sheet:[9,46]},{unified:"1F3CB-1F3FD-200D-2640-FE0F",sheet:[9,47]},{unified:"1F3CB-1F3FE-200D-2640-FE0F",sheet:[9,48]},{unified:"1F3CB-1F3FF-200D-2640-FE0F",sheet:[9,49]}],shortName:"woman-lifting-weights"},{name:"Bicyclist",unified:"1F6B4",keywords:["person_biking","sport","move"],sheet:[35,15],skinVariations:[{unified:"1F6B4-1F3FB",sheet:[35,16]},{unified:"1F6B4-1F3FC",sheet:[35,17]},{unified:"1F6B4-1F3FD",sheet:[35,18]},{unified:"1F6B4-1F3FE",sheet:[35,19]},{unified:"1F6B4-1F3FF",sheet:[35,20]}],shortName:"bicyclist",obsoletedBy:"1F6B4-200D-2642-FE0F"},{name:"Man Biking",unified:"1F6B4-200D-2642-FE0F",obsoletes:"1F6B4",keywords:["man_biking","sports","bike","exercise","hipster"],sheet:[35,9],skinVariations:[{unified:"1F6B4-1F3FB-200D-2642-FE0F",sheet:[35,10]},{unified:"1F6B4-1F3FC-200D-2642-FE0F",sheet:[35,11]},{unified:"1F6B4-1F3FD-200D-2642-FE0F",sheet:[35,12]},{unified:"1F6B4-1F3FE-200D-2642-FE0F",sheet:[35,13]},{unified:"1F6B4-1F3FF-200D-2642-FE0F",sheet:[35,14]}],shortName:"man-biking"},{name:"Woman Biking",unified:"1F6B4-200D-2640-FE0F",keywords:["woman_biking","sports","bike","exercise","hipster","woman","female"],sheet:[35,3],skinVariations:[{unified:"1F6B4-1F3FB-200D-2640-FE0F",sheet:[35,4]},{unified:"1F6B4-1F3FC-200D-2640-FE0F",sheet:[35,5]},{unified:"1F6B4-1F3FD-200D-2640-FE0F",sheet:[35,6]},{unified:"1F6B4-1F3FE-200D-2640-FE0F",sheet:[35,7]},{unified:"1F6B4-1F3FF-200D-2640-FE0F",sheet:[35,8]}],shortName:"woman-biking"},{name:"Mountain Bicyclist",unified:"1F6B5",keywords:["person_mountain_biking","sport","move"],sheet:[35,33],skinVariations:[{unified:"1F6B5-1F3FB",sheet:[35,34]},{unified:"1F6B5-1F3FC",sheet:[35,35]},{unified:"1F6B5-1F3FD",sheet:[35,36]},{unified:"1F6B5-1F3FE",sheet:[35,37]},{unified:"1F6B5-1F3FF",sheet:[35,38]}],shortName:"mountain_bicyclist",obsoletedBy:"1F6B5-200D-2642-FE0F"},{name:"Man Mountain Biking",unified:"1F6B5-200D-2642-FE0F",obsoletes:"1F6B5",keywords:["man_mountain_biking","transportation","sports","human","race","bike"],sheet:[35,27],skinVariations:[{unified:"1F6B5-1F3FB-200D-2642-FE0F",sheet:[35,28]},{unified:"1F6B5-1F3FC-200D-2642-FE0F",sheet:[35,29]},{unified:"1F6B5-1F3FD-200D-2642-FE0F",sheet:[35,30]},{unified:"1F6B5-1F3FE-200D-2642-FE0F",sheet:[35,31]},{unified:"1F6B5-1F3FF-200D-2642-FE0F",sheet:[35,32]}],shortName:"man-mountain-biking"},{name:"Woman Mountain Biking",unified:"1F6B5-200D-2640-FE0F",keywords:["woman_mountain_biking","transportation","sports","human","race","bike","woman","female"],sheet:[35,21],skinVariations:[{unified:"1F6B5-1F3FB-200D-2640-FE0F",sheet:[35,22]},{unified:"1F6B5-1F3FC-200D-2640-FE0F",sheet:[35,23]},{unified:"1F6B5-1F3FD-200D-2640-FE0F",sheet:[35,24]},{unified:"1F6B5-1F3FE-200D-2640-FE0F",sheet:[35,25]},{unified:"1F6B5-1F3FF-200D-2640-FE0F",sheet:[35,26]}],shortName:"woman-mountain-biking"},{name:"Person Doing Cartwheel",unified:"1F938",keywords:["person_cartwheeling","sport","gymnastic"],sheet:[40,17],skinVariations:[{unified:"1F938-1F3FB",sheet:[40,18]},{unified:"1F938-1F3FC",sheet:[40,19]},{unified:"1F938-1F3FD",sheet:[40,20]},{unified:"1F938-1F3FE",sheet:[40,21]},{unified:"1F938-1F3FF",sheet:[40,22]}],shortName:"person_doing_cartwheel"},{name:"Man Cartwheeling",unified:"1F938-200D-2642-FE0F",keywords:["man_cartwheeling","gymnastics"],sheet:[40,11],skinVariations:[{unified:"1F938-1F3FB-200D-2642-FE0F",sheet:[40,12]},{unified:"1F938-1F3FC-200D-2642-FE0F",sheet:[40,13]},{unified:"1F938-1F3FD-200D-2642-FE0F",sheet:[40,14]},{unified:"1F938-1F3FE-200D-2642-FE0F",sheet:[40,15]},{unified:"1F938-1F3FF-200D-2642-FE0F",sheet:[40,16]}],shortName:"man-cartwheeling"},{name:"Woman Cartwheeling",unified:"1F938-200D-2640-FE0F",keywords:["woman_cartwheeling","gymnastics"],sheet:[40,5],skinVariations:[{unified:"1F938-1F3FB-200D-2640-FE0F",sheet:[40,6]},{unified:"1F938-1F3FC-200D-2640-FE0F",sheet:[40,7]},{unified:"1F938-1F3FD-200D-2640-FE0F",sheet:[40,8]},{unified:"1F938-1F3FE-200D-2640-FE0F",sheet:[40,9]},{unified:"1F938-1F3FF-200D-2640-FE0F",sheet:[40,10]}],shortName:"woman-cartwheeling"},{name:"Wrestlers",unified:"1F93C",keywords:["people_wrestling","sport"],sheet:[40,44],shortName:"wrestlers"},{name:"Men Wrestling",unified:"1F93C-200D-2642-FE0F",keywords:["men_wrestling","sports","wrestlers"],sheet:[40,43],shortName:"man-wrestling"},{name:"Women Wrestling",unified:"1F93C-200D-2640-FE0F",keywords:["women_wrestling","sports","wrestlers"],sheet:[40,42],shortName:"woman-wrestling"},{name:"Water Polo",unified:"1F93D",keywords:["person_playing_water_polo","sport"],sheet:[40,57],skinVariations:[{unified:"1F93D-1F3FB",sheet:[41,0]},{unified:"1F93D-1F3FC",sheet:[41,1]},{unified:"1F93D-1F3FD",sheet:[41,2]},{unified:"1F93D-1F3FE",sheet:[41,3]},{unified:"1F93D-1F3FF",sheet:[41,4]}],shortName:"water_polo"},{name:"Man Playing Water Polo",unified:"1F93D-200D-2642-FE0F",keywords:["man_playing_water_polo","sports","pool"],sheet:[40,51],skinVariations:[{unified:"1F93D-1F3FB-200D-2642-FE0F",sheet:[40,52]},{unified:"1F93D-1F3FC-200D-2642-FE0F",sheet:[40,53]},{unified:"1F93D-1F3FD-200D-2642-FE0F",sheet:[40,54]},{unified:"1F93D-1F3FE-200D-2642-FE0F",sheet:[40,55]},{unified:"1F93D-1F3FF-200D-2642-FE0F",sheet:[40,56]}],shortName:"man-playing-water-polo"},{name:"Woman Playing Water Polo",unified:"1F93D-200D-2640-FE0F",keywords:["woman_playing_water_polo","sports","pool"],sheet:[40,45],skinVariations:[{unified:"1F93D-1F3FB-200D-2640-FE0F",sheet:[40,46]},{unified:"1F93D-1F3FC-200D-2640-FE0F",sheet:[40,47]},{unified:"1F93D-1F3FD-200D-2640-FE0F",sheet:[40,48]},{unified:"1F93D-1F3FE-200D-2640-FE0F",sheet:[40,49]},{unified:"1F93D-1F3FF-200D-2640-FE0F",sheet:[40,50]}],shortName:"woman-playing-water-polo"},{name:"Handball",unified:"1F93E",keywords:["person_playing_handball","sport"],sheet:[41,17],skinVariations:[{unified:"1F93E-1F3FB",sheet:[41,18]},{unified:"1F93E-1F3FC",sheet:[41,19]},{unified:"1F93E-1F3FD",sheet:[41,20]},{unified:"1F93E-1F3FE",sheet:[41,21]},{unified:"1F93E-1F3FF",sheet:[41,22]}],shortName:"handball"},{name:"Man Playing Handball",unified:"1F93E-200D-2642-FE0F",keywords:["man_playing_handball","sports"],sheet:[41,11],skinVariations:[{unified:"1F93E-1F3FB-200D-2642-FE0F",sheet:[41,12]},{unified:"1F93E-1F3FC-200D-2642-FE0F",sheet:[41,13]},{unified:"1F93E-1F3FD-200D-2642-FE0F",sheet:[41,14]},{unified:"1F93E-1F3FE-200D-2642-FE0F",sheet:[41,15]},{unified:"1F93E-1F3FF-200D-2642-FE0F",sheet:[41,16]}],shortName:"man-playing-handball"},{name:"Woman Playing Handball",unified:"1F93E-200D-2640-FE0F",keywords:["woman_playing_handball","sports"],sheet:[41,5],skinVariations:[{unified:"1F93E-1F3FB-200D-2640-FE0F",sheet:[41,6]},{unified:"1F93E-1F3FC-200D-2640-FE0F",sheet:[41,7]},{unified:"1F93E-1F3FD-200D-2640-FE0F",sheet:[41,8]},{unified:"1F93E-1F3FE-200D-2640-FE0F",sheet:[41,9]},{unified:"1F93E-1F3FF-200D-2640-FE0F",sheet:[41,10]}],shortName:"woman-playing-handball"},{name:"Juggling",unified:"1F939",keywords:["person_juggling","performance","balance"],sheet:[40,35],skinVariations:[{unified:"1F939-1F3FB",sheet:[40,36]},{unified:"1F939-1F3FC",sheet:[40,37]},{unified:"1F939-1F3FD",sheet:[40,38]},{unified:"1F939-1F3FE",sheet:[40,39]},{unified:"1F939-1F3FF",sheet:[40,40]}],shortName:"juggling"},{name:"Man Juggling",unified:"1F939-200D-2642-FE0F",keywords:["man_juggling","juggle","balance","skill","multitask"],sheet:[40,29],skinVariations:[{unified:"1F939-1F3FB-200D-2642-FE0F",sheet:[40,30]},{unified:"1F939-1F3FC-200D-2642-FE0F",sheet:[40,31]},{unified:"1F939-1F3FD-200D-2642-FE0F",sheet:[40,32]},{unified:"1F939-1F3FE-200D-2642-FE0F",sheet:[40,33]},{unified:"1F939-1F3FF-200D-2642-FE0F",sheet:[40,34]}],shortName:"man-juggling"},{name:"Woman Juggling",unified:"1F939-200D-2640-FE0F",keywords:["woman_juggling","juggle","balance","skill","multitask"],sheet:[40,23],skinVariations:[{unified:"1F939-1F3FB-200D-2640-FE0F",sheet:[40,24]},{unified:"1F939-1F3FC-200D-2640-FE0F",sheet:[40,25]},{unified:"1F939-1F3FD-200D-2640-FE0F",sheet:[40,26]},{unified:"1F939-1F3FE-200D-2640-FE0F",sheet:[40,27]},{unified:"1F939-1F3FF-200D-2640-FE0F",sheet:[40,28]}],shortName:"woman-juggling"},{name:"Person in Lotus Position",unified:"1F9D8",keywords:["person_in_lotus_position","meditate"],sheet:[49,57],skinVariations:[{unified:"1F9D8-1F3FB",sheet:[50,0]},{unified:"1F9D8-1F3FC",sheet:[50,1]},{unified:"1F9D8-1F3FD",sheet:[50,2]},{unified:"1F9D8-1F3FE",sheet:[50,3]},{unified:"1F9D8-1F3FF",sheet:[50,4]}],shortName:"person_in_lotus_position",obsoletedBy:"1F9D8-200D-2640-FE0F"},{name:"Man in Lotus Position",unified:"1F9D8-200D-2642-FE0F",keywords:["man_in_lotus_position","man","male","meditation","yoga","serenity","zen","mindfulness"],sheet:[49,51],skinVariations:[{unified:"1F9D8-1F3FB-200D-2642-FE0F",sheet:[49,52]},{unified:"1F9D8-1F3FC-200D-2642-FE0F",sheet:[49,53]},{unified:"1F9D8-1F3FD-200D-2642-FE0F",sheet:[49,54]},{unified:"1F9D8-1F3FE-200D-2642-FE0F",sheet:[49,55]},{unified:"1F9D8-1F3FF-200D-2642-FE0F",sheet:[49,56]}],shortName:"man_in_lotus_position"},{name:"Woman in Lotus Position",unified:"1F9D8-200D-2640-FE0F",obsoletes:"1F9D8",keywords:["woman_in_lotus_position","woman","female","meditation","yoga","serenity","zen","mindfulness"],sheet:[49,45],skinVariations:[{unified:"1F9D8-1F3FB-200D-2640-FE0F",sheet:[49,46]},{unified:"1F9D8-1F3FC-200D-2640-FE0F",sheet:[49,47]},{unified:"1F9D8-1F3FD-200D-2640-FE0F",sheet:[49,48]},{unified:"1F9D8-1F3FE-200D-2640-FE0F",sheet:[49,49]},{unified:"1F9D8-1F3FF-200D-2640-FE0F",sheet:[49,50]}],shortName:"woman_in_lotus_position"},{name:"Bath",unified:"1F6C0",keywords:["person_taking_bath","clean","shower","bathroom"],sheet:[36,8],skinVariations:[{unified:"1F6C0-1F3FB",sheet:[36,9]},{unified:"1F6C0-1F3FC",sheet:[36,10]},{unified:"1F6C0-1F3FD",sheet:[36,11]},{unified:"1F6C0-1F3FE",sheet:[36,12]},{unified:"1F6C0-1F3FF",sheet:[36,13]}],shortName:"bath"},{name:"Sleeping Accommodation",unified:"1F6CC",keywords:["person_in_bed","bed","rest"],sheet:[36,20],skinVariations:[{unified:"1F6CC-1F3FB",sheet:[36,21]},{unified:"1F6CC-1F3FC",sheet:[36,22]},{unified:"1F6CC-1F3FD",sheet:[36,23]},{unified:"1F6CC-1F3FE",sheet:[36,24]},{unified:"1F6CC-1F3FF",sheet:[36,25]}],shortName:"sleeping_accommodation"},{name:"People Holding Hands",unified:"1F9D1-200D-1F91D-200D-1F9D1",keywords:["people_holding_hands","friendship"],sheet:[47,9],skinVariations:[{unified:"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FB",sheet:[47,10]},{unified:"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FC",sheet:[47,11],hidden:["facebook"]},{unified:"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FD",sheet:[47,12],hidden:["facebook"]},{unified:"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FE",sheet:[47,13],hidden:["facebook"]},{unified:"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FF",sheet:[47,14],hidden:["facebook"]},{unified:"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FB",sheet:[47,15]},{unified:"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FC",sheet:[47,16]},{unified:"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FD",sheet:[47,17],hidden:["facebook"]},{unified:"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FE",sheet:[47,18],hidden:["facebook"]},{unified:"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FF",sheet:[47,19],hidden:["facebook"]},{unified:"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FB",sheet:[47,20]},{unified:"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FC",sheet:[47,21]},{unified:"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FD",sheet:[47,22]},{unified:"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FE",sheet:[47,23],hidden:["facebook"]},{unified:"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FF",sheet:[47,24],hidden:["facebook"]},{unified:"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FB",sheet:[47,25]},{unified:"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FC",sheet:[47,26]},{unified:"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FD",sheet:[47,27]},{unified:"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FE",sheet:[47,28]},{unified:"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FF",sheet:[47,29],hidden:["facebook"]},{unified:"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FB",sheet:[47,30]},{unified:"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FC",sheet:[47,31]},{unified:"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FD",sheet:[47,32]},{unified:"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FE",sheet:[47,33]},{unified:"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FF",sheet:[47,34]}],shortName:"people_holding_hands"},{name:"Two Women Holding Hands",unified:"1F46D",keywords:["women_holding_hands","pair","friendship","couple","love","like","female","people","human"],sheet:[21,5],skinVariations:[{unified:"1F46D-1F3FB",sheet:[21,6]},{unified:"1F46D-1F3FC",sheet:[21,7]},{unified:"1F46D-1F3FD",sheet:[21,8]},{unified:"1F46D-1F3FE",sheet:[21,9]},{unified:"1F46D-1F3FF",sheet:[21,10]},{unified:"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FC",sheet:[21,11],hidden:["facebook"]},{unified:"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FD",sheet:[21,12],hidden:["facebook"]},{unified:"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FE",sheet:[21,13],hidden:["facebook"]},{unified:"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FF",sheet:[21,14],hidden:["facebook"]},{unified:"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FB",sheet:[21,15]},{unified:"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FD",sheet:[21,16],hidden:["facebook"]},{unified:"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FE",sheet:[21,17],hidden:["facebook"]},{unified:"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FF",sheet:[21,18],hidden:["facebook"]},{unified:"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FB",sheet:[21,19]},{unified:"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FC",sheet:[21,20]},{unified:"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FE",sheet:[21,21],hidden:["facebook"]},{unified:"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FF",sheet:[21,22],hidden:["facebook"]},{unified:"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FB",sheet:[21,23]},{unified:"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FC",sheet:[21,24]},{unified:"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FD",sheet:[21,25]},{unified:"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FF",sheet:[21,26],hidden:["facebook"]},{unified:"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FB",sheet:[21,27]},{unified:"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FC",sheet:[21,28]},{unified:"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FD",sheet:[21,29]},{unified:"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FE",sheet:[21,30]}],shortNames:["women_holding_hands"],shortName:"two_women_holding_hands"},{name:"Man and Woman Holding Hands",unified:"1F46B",keywords:["woman_and_man_holding_hands","pair","people","human","love","date","dating","like","affection","valentines","marriage"],sheet:[20,11],skinVariations:[{unified:"1F46B-1F3FB",sheet:[20,12]},{unified:"1F46B-1F3FC",sheet:[20,13]},{unified:"1F46B-1F3FD",sheet:[20,14]},{unified:"1F46B-1F3FE",sheet:[20,15]},{unified:"1F46B-1F3FF",sheet:[20,16]},{unified:"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FC",sheet:[20,17]},{unified:"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FD",sheet:[20,18]},{unified:"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FE",sheet:[20,19]},{unified:"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FF",sheet:[20,20]},{unified:"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FB",sheet:[20,21]},{unified:"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FD",sheet:[20,22]},{unified:"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FE",sheet:[20,23]},{unified:"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FF",sheet:[20,24]},{unified:"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FB",sheet:[20,25]},{unified:"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FC",sheet:[20,26]},{unified:"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FE",sheet:[20,27]},{unified:"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FF",sheet:[20,28]},{unified:"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FB",sheet:[20,29]},{unified:"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FC",sheet:[20,30]},{unified:"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FD",sheet:[20,31]},{unified:"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FF",sheet:[20,32]},{unified:"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FB",sheet:[20,33]},{unified:"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FC",sheet:[20,34]},{unified:"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FD",sheet:[20,35]},{unified:"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FE",sheet:[20,36]}],shortNames:["woman_and_man_holding_hands","couple"],shortName:"man_and_woman_holding_hands"},{name:"Two Men Holding Hands",unified:"1F46C",keywords:["men_holding_hands","pair","couple","love","like","bromance","friendship","people","human"],sheet:[20,37],skinVariations:[{unified:"1F46C-1F3FB",sheet:[20,38]},{unified:"1F46C-1F3FC",sheet:[20,39]},{unified:"1F46C-1F3FD",sheet:[20,40]},{unified:"1F46C-1F3FE",sheet:[20,41]},{unified:"1F46C-1F3FF",sheet:[20,42]},{unified:"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FC",sheet:[20,43],hidden:["facebook"]},{unified:"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FD",sheet:[20,44],hidden:["facebook"]},{unified:"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FE",sheet:[20,45],hidden:["facebook"]},{unified:"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FF",sheet:[20,46],hidden:["facebook"]},{unified:"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FB",sheet:[20,47]},{unified:"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FD",sheet:[20,48],hidden:["facebook"]},{unified:"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FE",sheet:[20,49],hidden:["facebook"]},{unified:"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FF",sheet:[20,50],hidden:["facebook"]},{unified:"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FB",sheet:[20,51]},{unified:"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FC",sheet:[20,52]},{unified:"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FE",sheet:[20,53],hidden:["facebook"]},{unified:"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FF",sheet:[20,54],hidden:["facebook"]},{unified:"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FB",sheet:[20,55]},{unified:"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FC",sheet:[20,56]},{unified:"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FD",sheet:[20,57]},{unified:"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FF",sheet:[21,0],hidden:["facebook"]},{unified:"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FB",sheet:[21,1]},{unified:"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FC",sheet:[21,2]},{unified:"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FD",sheet:[21,3]},{unified:"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FE",sheet:[21,4]}],shortNames:["men_holding_hands"],shortName:"two_men_holding_hands"},{name:"Kiss",unified:"1F48F",keywords:["kiss","pair","valentines","love","like","dating","marriage"],sheet:[25,27],shortName:"couplekiss",obsoletedBy:"1F469-200D-2764-FE0F-200D-1F48B-200D-1F468"},{name:"Kiss: Woman, Man",unified:"1F469-200D-2764-FE0F-200D-1F48B-200D-1F468",obsoletes:"1F48F",keywords:["kiss_woman_man","love"],sheet:[20,2],shortName:"woman-kiss-man"},{name:"Kiss: Man, Man",unified:"1F468-200D-2764-FE0F-200D-1F48B-200D-1F468",keywords:["kiss_man_man","pair","valentines","love","like","dating","marriage"],sheet:[17,13],shortName:"man-kiss-man"},{name:"Kiss: Woman, Woman",unified:"1F469-200D-2764-FE0F-200D-1F48B-200D-1F469",keywords:["kiss_woman_woman","pair","valentines","love","like","dating","marriage"],sheet:[20,3],shortName:"woman-kiss-woman"},{name:"Couple with Heart",unified:"1F491",keywords:["couple_with_heart","pair","love","like","affection","human","dating","valentines","marriage"],sheet:[25,29],shortName:"couple_with_heart",obsoletedBy:"1F469-200D-2764-FE0F-200D-1F468"},{name:"Couple with Heart: Woman, Man",unified:"1F469-200D-2764-FE0F-200D-1F468",obsoletes:"1F491",keywords:["couple_with_heart_woman_man","love"],sheet:[20,0],shortName:"woman-heart-man"},{name:"Couple with Heart: Man, Man",unified:"1F468-200D-2764-FE0F-200D-1F468",keywords:["couple_with_heart_man_man","pair","love","like","affection","human","dating","valentines","marriage"],sheet:[17,12],shortName:"man-heart-man"},{name:"Couple with Heart: Woman, Woman",unified:"1F469-200D-2764-FE0F-200D-1F469",keywords:["couple_with_heart_woman_woman","pair","love","like","affection","human","dating","valentines","marriage"],sheet:[20,1],shortName:"woman-heart-woman"},{name:"Family",unified:"1F46A",keywords:["family","home","parents","child","mom","dad","father","mother","people","human"],sheet:[20,10],shortName:"family",obsoletedBy:"1F468-200D-1F469-200D-1F466"},{name:"Family: Man, Woman, Boy",unified:"1F468-200D-1F469-200D-1F466",obsoletes:"1F46A",keywords:["family_man_woman_boy","love"],sheet:[15,27],shortName:"man-woman-boy"},{name:"Family: Man, Woman, Girl",unified:"1F468-200D-1F469-200D-1F467",keywords:["family_man_woman_girl","home","parents","people","human","child"],sheet:[15,29],shortName:"man-woman-girl"},{name:"Family: Man, Woman, Girl, Boy",unified:"1F468-200D-1F469-200D-1F467-200D-1F466",keywords:["family_man_woman_girl_boy","home","parents","people","human","children"],sheet:[15,30],shortName:"man-woman-girl-boy"},{name:"Family: Man, Woman, Boy, Boy",unified:"1F468-200D-1F469-200D-1F466-200D-1F466",keywords:["family_man_woman_boy_boy","home","parents","people","human","children"],sheet:[15,28],shortName:"man-woman-boy-boy"},{name:"Family: Man, Woman, Girl, Girl",unified:"1F468-200D-1F469-200D-1F467-200D-1F467",keywords:["family_man_woman_girl_girl","home","parents","people","human","children"],sheet:[15,31],shortName:"man-woman-girl-girl"},{name:"Family: Man, Man, Boy",unified:"1F468-200D-1F468-200D-1F466",keywords:["family_man_man_boy","home","parents","people","human","children"],sheet:[15,22],shortName:"man-man-boy"},{name:"Family: Man, Man, Girl",unified:"1F468-200D-1F468-200D-1F467",keywords:["family_man_man_girl","home","parents","people","human","children"],sheet:[15,24],shortName:"man-man-girl"},{name:"Family: Man, Man, Girl, Boy",unified:"1F468-200D-1F468-200D-1F467-200D-1F466",keywords:["family_man_man_girl_boy","home","parents","people","human","children"],sheet:[15,25],shortName:"man-man-girl-boy"},{name:"Family: Man, Man, Boy, Boy",unified:"1F468-200D-1F468-200D-1F466-200D-1F466",keywords:["family_man_man_boy_boy","home","parents","people","human","children"],sheet:[15,23],shortName:"man-man-boy-boy"},{name:"Family: Man, Man, Girl, Girl",unified:"1F468-200D-1F468-200D-1F467-200D-1F467",keywords:["family_man_man_girl_girl","home","parents","people","human","children"],sheet:[15,26],shortName:"man-man-girl-girl"},{name:"Family: Woman, Woman, Boy",unified:"1F469-200D-1F469-200D-1F466",keywords:["family_woman_woman_boy","home","parents","people","human","children"],sheet:[18,15],shortName:"woman-woman-boy"},{name:"Family: Woman, Woman, Girl",unified:"1F469-200D-1F469-200D-1F467",keywords:["family_woman_woman_girl","home","parents","people","human","children"],sheet:[18,17],shortName:"woman-woman-girl"},{name:"Family: Woman, Woman, Girl, Boy",unified:"1F469-200D-1F469-200D-1F467-200D-1F466",keywords:["family_woman_woman_girl_boy","home","parents","people","human","children"],sheet:[18,18],shortName:"woman-woman-girl-boy"},{name:"Family: Woman, Woman, Boy, Boy",unified:"1F469-200D-1F469-200D-1F466-200D-1F466",keywords:["family_woman_woman_boy_boy","home","parents","people","human","children"],sheet:[18,16],shortName:"woman-woman-boy-boy"},{name:"Family: Woman, Woman, Girl, Girl",unified:"1F469-200D-1F469-200D-1F467-200D-1F467",keywords:["family_woman_woman_girl_girl","home","parents","people","human","children"],sheet:[18,19],shortName:"woman-woman-girl-girl"},{name:"Family: Man, Boy",unified:"1F468-200D-1F466",keywords:["family_man_boy","home","parent","people","human","child"],sheet:[15,18],shortName:"man-boy"},{name:"Family: Man, Boy, Boy",unified:"1F468-200D-1F466-200D-1F466",keywords:["family_man_boy_boy","home","parent","people","human","children"],sheet:[15,17],shortName:"man-boy-boy"},{name:"Family: Man, Girl",unified:"1F468-200D-1F467",keywords:["family_man_girl","home","parent","people","human","child"],sheet:[15,21],shortName:"man-girl"},{name:"Family: Man, Girl, Boy",unified:"1F468-200D-1F467-200D-1F466",keywords:["family_man_girl_boy","home","parent","people","human","children"],sheet:[15,19],shortName:"man-girl-boy"},{name:"Family: Man, Girl, Girl",unified:"1F468-200D-1F467-200D-1F467",keywords:["family_man_girl_girl","home","parent","people","human","children"],sheet:[15,20],shortName:"man-girl-girl"},{name:"Family: Woman, Boy",unified:"1F469-200D-1F466",keywords:["family_woman_boy","home","parent","people","human","child"],sheet:[18,11],shortName:"woman-boy"},{name:"Family: Woman, Boy, Boy",unified:"1F469-200D-1F466-200D-1F466",keywords:["family_woman_boy_boy","home","parent","people","human","children"],sheet:[18,10],shortName:"woman-boy-boy"},{name:"Family: Woman, Girl",unified:"1F469-200D-1F467",keywords:["family_woman_girl","home","parent","people","human","child"],sheet:[18,14],shortName:"woman-girl"},{name:"Family: Woman, Girl, Boy",unified:"1F469-200D-1F467-200D-1F466",keywords:["family_woman_girl_boy","home","parent","people","human","children"],sheet:[18,12],shortName:"woman-girl-boy"},{name:"Family: Woman, Girl, Girl",unified:"1F469-200D-1F467-200D-1F467",keywords:["family_woman_girl_girl","home","parent","people","human","children"],sheet:[18,13],shortName:"woman-girl-girl"},{name:"Speaking Head",unified:"1F5E3-FE0F",keywords:["speaking_head","user","person","human","sing","say","talk"],sheet:[30,22],shortName:"speaking_head_in_silhouette"},{name:"Bust in Silhouette",unified:"1F464",keywords:["bust_in_silhouette","user","person","human"],sheet:[14,13],shortName:"bust_in_silhouette"},{name:"Busts in Silhouette",unified:"1F465",keywords:["busts_in_silhouette","user","person","human","group","team"],sheet:[14,14],shortName:"busts_in_silhouette"},{name:"People Hugging",unified:"1FAC2",keywords:["people hugging","care"],sheet:[53,8],shortName:"people_hugging"},{name:"Footprints",unified:"1F463",keywords:["footprints","feet","tracking","walking","beach"],sheet:[14,12],shortName:"footprints"},{name:"Emoji Modifier Fitzpatrick Type-1-2",unified:"1F3FB",sheet:[11,13],shortName:"skin-tone-2"},{name:"Emoji Modifier Fitzpatrick Type-3",unified:"1F3FC",sheet:[11,14],shortName:"skin-tone-3"},{name:"Emoji Modifier Fitzpatrick Type-4",unified:"1F3FD",sheet:[11,15],shortName:"skin-tone-4"},{name:"Emoji Modifier Fitzpatrick Type-5",unified:"1F3FE",sheet:[11,16],shortName:"skin-tone-5"},{name:"Emoji Modifier Fitzpatrick Type-6",unified:"1F3FF",sheet:[11,17],shortName:"skin-tone-6"},{name:"Monkey Face",unified:"1F435",emoticons:[":o)"],keywords:["monkey_face","animal","nature","circus"],sheet:[12,15],shortName:"monkey_face"},{name:"Monkey",unified:"1F412",keywords:["monkey","animal","nature","banana","circus"],sheet:[11,37],shortName:"monkey"},{name:"Gorilla",unified:"1F98D",keywords:["gorilla","animal","nature","circus"],sheet:[42,46],shortName:"gorilla"},{name:"Orangutan",unified:"1F9A7",keywords:["orangutan","animal"],sheet:[43,14],shortName:"orangutan"},{name:"Dog Face",unified:"1F436",keywords:["dog_face","animal","friend","nature","woof","puppy","pet","faithful"],sheet:[12,16],shortName:"dog"},{name:"Dog",unified:"1F415",keywords:["dog","animal","nature","friend","doge","pet","faithful"],sheet:[11,41],shortName:"dog2"},{name:"Guide Dog",unified:"1F9AE",keywords:["guide_dog","animal","blind"],sheet:[43,21],shortName:"guide_dog"},{name:"Service Dog",unified:"1F415-200D-1F9BA",keywords:["service_dog","blind","animal"],sheet:[11,40],shortName:"service_dog"},{name:"Poodle",unified:"1F429",keywords:["poodle","dog","animal","101","nature","pet"],sheet:[12,3],shortName:"poodle"},{name:"Wolf Face",unified:"1F43A",keywords:["wolf","animal","nature","wild"],sheet:[12,20],shortName:"wolf"},{name:"Fox Face",unified:"1F98A",keywords:["fox","animal","nature","face"],sheet:[42,43],shortName:"fox_face"},{name:"Raccoon",unified:"1F99D",keywords:["raccoon","animal","nature"],sheet:[43,4],shortName:"raccoon"},{name:"Cat Face",unified:"1F431",keywords:["cat_face","animal","meow","nature","pet","kitten"],sheet:[12,11],shortName:"cat"},{name:"Cat",unified:"1F408",keywords:["cat","animal","meow","pet","cats"],sheet:[11,27],shortName:"cat2"},{name:"Black Cat",unified:"1F408-200D-2B1B",keywords:["black cat","superstition","luck"],sheet:[11,26],shortName:"black_cat"},{name:"Lion Face",unified:"1F981",keywords:["lion","animal","nature"],sheet:[42,34],shortName:"lion_face"},{name:"Tiger Face",unified:"1F42F",keywords:["tiger_face","animal","cat","danger","wild","nature","roar"],sheet:[12,9],shortName:"tiger"},{name:"Tiger",unified:"1F405",keywords:["tiger","animal","nature","roar"],sheet:[11,23],shortName:"tiger2"},{name:"Leopard",unified:"1F406",keywords:["leopard","animal","nature"],sheet:[11,24],shortName:"leopard"},{name:"Horse Face",unified:"1F434",keywords:["horse_face","animal","brown","nature"],sheet:[12,14],shortName:"horse"},{name:"Horse",unified:"1F40E",keywords:["horse","animal","gamble","luck"],sheet:[11,33],shortName:"racehorse"},{name:"Unicorn Face",unified:"1F984",keywords:["unicorn","animal","nature","mystical"],sheet:[42,37],shortName:"unicorn_face"},{name:"Zebra Face",unified:"1F993",keywords:["zebra","animal","nature","stripes","safari"],sheet:[42,52],shortName:"zebra_face"},{name:"Deer",unified:"1F98C",keywords:["deer","animal","nature","horns","venison"],sheet:[42,45],shortName:"deer"},{name:"Bison",unified:"1F9AC",keywords:["bison","ox"],sheet:[43,19],shortName:"bison"},{name:"Cow Face",unified:"1F42E",keywords:["cow_face","beef","ox","animal","nature","moo","milk"],sheet:[12,8],shortName:"cow"},{name:"Ox",unified:"1F402",keywords:["ox","animal","cow","beef"],sheet:[11,20],shortName:"ox"},{name:"Water Buffalo",unified:"1F403",keywords:["water_buffalo","animal","nature","ox","cow"],sheet:[11,21],shortName:"water_buffalo"},{name:"Cow",unified:"1F404",keywords:["cow","beef","ox","animal","nature","moo","milk"],sheet:[11,22],shortName:"cow2"},{name:"Pig Face",unified:"1F437",keywords:["pig_face","animal","oink","nature"],sheet:[12,17],shortName:"pig"},{name:"Pig",unified:"1F416",keywords:["pig","animal","nature"],sheet:[11,42],shortName:"pig2"},{name:"Boar",unified:"1F417",keywords:["boar","animal","nature"],sheet:[11,43],shortName:"boar"},{name:"Pig Nose",unified:"1F43D",keywords:["pig_nose","animal","oink"],sheet:[12,24],shortName:"pig_nose"},{name:"Ram",unified:"1F40F",keywords:["ram","animal","sheep","nature"],sheet:[11,34],shortName:"ram"},{name:"Sheep",unified:"1F411",keywords:["ewe","animal","nature","wool","shipit"],sheet:[11,36],shortName:"sheep"},{name:"Goat",unified:"1F410",keywords:["goat","animal","nature"],sheet:[11,35],shortName:"goat"},{name:"Dromedary Camel",unified:"1F42A",keywords:["camel","animal","hot","desert","hump"],sheet:[12,4],shortName:"dromedary_camel"},{name:"Bactrian Camel",unified:"1F42B",keywords:["two_hump_camel","animal","nature","hot","desert","hump"],sheet:[12,5],shortName:"camel"},{name:"Llama",unified:"1F999",keywords:["llama","animal","nature","alpaca"],sheet:[43,0],shortName:"llama"},{name:"Giraffe Face",unified:"1F992",keywords:["giraffe","animal","nature","spots","safari"],sheet:[42,51],shortName:"giraffe_face"},{name:"Elephant",unified:"1F418",keywords:["elephant","animal","nature","nose","th","circus"],sheet:[11,44],shortName:"elephant"},{name:"Mammoth",unified:"1F9A3",keywords:["mammoth","elephant","tusks"],sheet:[43,10],shortName:"mammoth"},{name:"Rhinoceros",unified:"1F98F",keywords:["rhinoceros","animal","nature","horn"],sheet:[42,48],shortName:"rhinoceros"},{name:"Hippopotamus",unified:"1F99B",keywords:["hippopotamus","animal","nature"],sheet:[43,2],shortName:"hippopotamus"},{name:"Mouse Face",unified:"1F42D",keywords:["mouse_face","animal","nature","cheese_wedge","rodent"],sheet:[12,7],shortName:"mouse"},{name:"Mouse",unified:"1F401",keywords:["mouse","animal","nature","rodent"],sheet:[11,19],shortName:"mouse2"},{name:"Rat",unified:"1F400",keywords:["rat","animal","mouse","rodent"],sheet:[11,18],shortName:"rat"},{name:"Hamster Face",unified:"1F439",keywords:["hamster","animal","nature"],sheet:[12,19],shortName:"hamster"},{name:"Rabbit Face",unified:"1F430",keywords:["rabbit_face","animal","nature","pet","spring","magic","bunny"],sheet:[12,10],shortName:"rabbit"},{name:"Rabbit",unified:"1F407",keywords:["rabbit","animal","nature","pet","magic","spring"],sheet:[11,25],shortName:"rabbit2"},{name:"Chipmunk",unified:"1F43F-FE0F",keywords:["chipmunk","animal","nature","rodent","squirrel"],sheet:[12,26],shortName:"chipmunk"},{name:"Beaver",unified:"1F9AB",keywords:["beaver","animal","rodent"],sheet:[43,18],shortName:"beaver"},{name:"Hedgehog",unified:"1F994",keywords:["hedgehog","animal","nature","spiny"],sheet:[42,53],shortName:"hedgehog"},{name:"Bat",unified:"1F987",keywords:["bat","animal","nature","blind","vampire"],sheet:[42,40],shortName:"bat"},{name:"Bear Face",unified:"1F43B",keywords:["bear","animal","nature","wild"],sheet:[12,22],shortName:"bear"},{name:"Polar Bear",unified:"1F43B-200D-2744-FE0F",keywords:["polar bear","animal","arctic"],sheet:[12,21],shortName:"polar_bear"},{name:"Koala",unified:"1F428",keywords:["koala","animal","nature"],sheet:[12,2],shortName:"koala"},{name:"Panda Face",unified:"1F43C",keywords:["panda","animal","nature","panda"],sheet:[12,23],shortName:"panda_face"},{name:"Sloth",unified:"1F9A5",keywords:["sloth","animal"],sheet:[43,12],shortName:"sloth"},{name:"Otter",unified:"1F9A6",keywords:["otter","animal"],sheet:[43,13],shortName:"otter"},{name:"Skunk",unified:"1F9A8",keywords:["skunk","animal"],sheet:[43,15],shortName:"skunk"},{name:"Kangaroo",unified:"1F998",keywords:["kangaroo","animal","nature","australia","joey","hop","marsupial"],sheet:[42,57],shortName:"kangaroo"},{name:"Badger",unified:"1F9A1",keywords:["badger","animal","nature","honey"],sheet:[43,8],shortName:"badger"},{name:"Paw Prints",unified:"1F43E",keywords:["paw_prints","animal","tracking","footprints","dog","cat","pet","feet"],sheet:[12,25],shortNames:["paw_prints"],shortName:"feet"},{name:"Turkey",unified:"1F983",keywords:["turkey","animal","bird"],sheet:[42,36],shortName:"turkey"},{name:"Chicken",unified:"1F414",keywords:["chicken","animal","cluck","nature","bird"],sheet:[11,39],shortName:"chicken"},{name:"Rooster",unified:"1F413",keywords:["rooster","animal","nature","chicken"],sheet:[11,38],shortName:"rooster"},{name:"Hatching Chick",unified:"1F423",keywords:["hatching_chick","animal","chicken","egg","born","baby","bird"],sheet:[11,55],shortName:"hatching_chick"},{name:"Baby Chick",unified:"1F424",keywords:["baby_chick","animal","chicken","bird"],sheet:[11,56],shortName:"baby_chick"},{name:"Front-Facing Baby Chick",unified:"1F425",keywords:["front_facing_baby_chick","animal","chicken","baby","bird"],sheet:[11,57],shortName:"hatched_chick"},{name:"Bird",unified:"1F426",keywords:["bird","animal","nature","fly","tweet","spring"],sheet:[12,0],shortName:"bird"},{name:"Penguin",unified:"1F427",keywords:["penguin","animal","nature"],sheet:[12,1],shortName:"penguin"},{name:"Dove",unified:"1F54A-FE0F",keywords:["dove","animal","bird"],sheet:[28,33],shortName:"dove_of_peace"},{name:"Eagle",unified:"1F985",keywords:["eagle","animal","nature","bird"],sheet:[42,38],shortName:"eagle"},{name:"Duck",unified:"1F986",keywords:["duck","animal","nature","bird","mallard"],sheet:[42,39],shortName:"duck"},{name:"Swan",unified:"1F9A2",keywords:["swan","animal","nature","bird"],sheet:[43,9],shortName:"swan"},{name:"Owl",unified:"1F989",keywords:["owl","animal","nature","bird","hoot"],sheet:[42,42],shortName:"owl"},{name:"Dodo",unified:"1F9A4",keywords:["dodo","animal","bird"],sheet:[43,11],shortName:"dodo"},{name:"Feather",unified:"1FAB6",keywords:["feather","bird","fly"],sheet:[53,5],shortName:"feather"},{name:"Flamingo",unified:"1F9A9",keywords:["flamingo","animal"],sheet:[43,16],shortName:"flamingo"},{name:"Peacock",unified:"1F99A",keywords:["peacock","animal","nature","peahen","bird"],sheet:[43,1],shortName:"peacock"},{name:"Parrot",unified:"1F99C",keywords:["parrot","animal","nature","bird","pirate","talk"],sheet:[43,3],shortName:"parrot"},{name:"Frog Face",unified:"1F438",keywords:["frog","animal","nature","croak","toad"],sheet:[12,18],shortName:"frog"},{name:"Crocodile",unified:"1F40A",keywords:["crocodile","animal","nature","reptile","lizard","alligator"],sheet:[11,29],shortName:"crocodile"},{name:"Turtle",unified:"1F422",keywords:["turtle","animal","slow","nature","tortoise"],sheet:[11,54],shortName:"turtle"},{name:"Lizard",unified:"1F98E",keywords:["lizard","animal","nature","reptile"],sheet:[42,47],shortName:"lizard"},{name:"Snake",unified:"1F40D",keywords:["snake","animal","evil","nature","hiss","python"],sheet:[11,32],shortName:"snake"},{name:"Dragon Face",unified:"1F432",keywords:["dragon_face","animal","myth","nature","chinese","green"],sheet:[12,12],shortName:"dragon_face"},{name:"Dragon",unified:"1F409",keywords:["dragon","animal","myth","nature","chinese","green"],sheet:[11,28],shortName:"dragon"},{name:"Sauropod",unified:"1F995",keywords:["sauropod","animal","nature","dinosaur","brachiosaurus","brontosaurus","diplodocus","extinct"],sheet:[42,54],shortName:"sauropod"},{name:"T-Rex",unified:"1F996",keywords:["t_rex","animal","nature","dinosaur","tyrannosaurus","extinct"],sheet:[42,55],shortName:"t-rex"},{name:"Spouting Whale",unified:"1F433",keywords:["spouting_whale","animal","nature","sea","ocean"],sheet:[12,13],shortName:"whale"},{name:"Whale",unified:"1F40B",keywords:["whale","animal","nature","sea","ocean"],sheet:[11,30],shortName:"whale2"},{name:"Dolphin",unified:"1F42C",keywords:["dolphin","animal","nature","fish","sea","ocean","flipper","fins","beach"],sheet:[12,6],shortNames:["flipper"],shortName:"dolphin"},{name:"Seal",unified:"1F9AD",keywords:["seal","animal","creature","sea"],sheet:[43,20],shortName:"seal"},{name:"Fish",unified:"1F41F",keywords:["fish","animal","food","nature"],sheet:[11,51],shortName:"fish"},{name:"Tropical Fish",unified:"1F420",keywords:["tropical_fish","animal","swim","ocean","beach","nemo"],sheet:[11,52],shortName:"tropical_fish"},{name:"Blowfish",unified:"1F421",keywords:["blowfish","animal","nature","food","sea","ocean"],sheet:[11,53],shortName:"blowfish"},{name:"Shark",unified:"1F988",keywords:["shark","animal","nature","fish","sea","ocean","jaws","fins","beach"],sheet:[42,41],shortName:"shark"},{name:"Octopus",unified:"1F419",keywords:["octopus","animal","creature","ocean","sea","nature","beach"],sheet:[11,45],shortName:"octopus"},{name:"Spiral Shell",unified:"1F41A",keywords:["spiral_shell","nature","sea","beach"],sheet:[11,46],shortName:"shell"},{name:"Snail",unified:"1F40C",keywords:["snail","slow","animal","shell"],sheet:[11,31],shortName:"snail"},{name:"Butterfly",unified:"1F98B",keywords:["butterfly","animal","insect","nature","caterpillar"],sheet:[42,44],shortName:"butterfly"},{name:"Bug",unified:"1F41B",keywords:["bug","animal","insect","nature","worm"],sheet:[11,47],shortName:"bug"},{name:"Ant",unified:"1F41C",keywords:["ant","animal","insect","nature","bug"],sheet:[11,48],shortName:"ant"},{name:"Honeybee",unified:"1F41D",keywords:["honeybee","animal","insect","nature","bug","spring","honey"],sheet:[11,49],shortNames:["honeybee"],shortName:"bee"},{name:"Beetle",unified:"1FAB2",keywords:["beetle","insect"],sheet:[53,1],shortName:"beetle"},{name:"Lady Beetle",unified:"1F41E",keywords:["lady_beetle","animal","insect","nature","ladybug"],sheet:[11,50],shortNames:["lady_beetle"],shortName:"ladybug"},{name:"Cricket",unified:"1F997",keywords:["cricket","animal","cricket","chirp"],sheet:[42,56],shortName:"cricket"},{name:"Cockroach",unified:"1FAB3",keywords:["cockroach","insect","pests"],sheet:[53,2],shortName:"cockroach"},{name:"Spider",unified:"1F577-FE0F",keywords:["spider","animal","arachnid"],sheet:[29,32],shortName:"spider"},{name:"Spider Web",unified:"1F578-FE0F",keywords:["spider_web","animal","insect","arachnid","silk"],sheet:[29,33],shortName:"spider_web"},{name:"Scorpion",unified:"1F982",keywords:["scorpion","animal","arachnid"],sheet:[42,35],shortName:"scorpion"},{name:"Mosquito",unified:"1F99F",keywords:["mosquito","animal","nature","insect","malaria"],sheet:[43,6],shortName:"mosquito"},{name:"Fly",unified:"1FAB0",keywords:["fly","insect"],sheet:[52,57],shortName:"fly"},{name:"Worm",unified:"1FAB1",keywords:["worm","animal"],sheet:[53,0],shortName:"worm"},{name:"Microbe",unified:"1F9A0",keywords:["microbe","amoeba","bacteria","germs"],sheet:[43,7],shortName:"microbe"},{name:"Bouquet",unified:"1F490",keywords:["bouquet","flowers","nature","spring"],sheet:[25,28],shortName:"bouquet"},{name:"Cherry Blossom",unified:"1F338",keywords:["cherry_blossom","nature","plant","spring","flower"],sheet:[6,10],shortName:"cherry_blossom"},{name:"White Flower",unified:"1F4AE",keywords:["white_flower","japanese","spring"],sheet:[26,5],shortName:"white_flower"},{name:"Rosette",unified:"1F3F5-FE0F",keywords:["rosette","flower","decoration","military"],sheet:[11,8],shortName:"rosette"},{name:"Rose",unified:"1F339",keywords:["rose","flowers","valentines","love","spring"],sheet:[6,11],shortName:"rose"},{name:"Wilted Flower",unified:"1F940",keywords:["wilted_flower","plant","nature","flower"],sheet:[41,24],shortName:"wilted_flower"},{name:"Hibiscus",unified:"1F33A",keywords:["hibiscus","plant","vegetable","flowers","beach"],sheet:[6,12],shortName:"hibiscus"},{name:"Sunflower",unified:"1F33B",keywords:["sunflower","nature","plant","fall"],sheet:[6,13],shortName:"sunflower"},{name:"Blossom",unified:"1F33C",keywords:["blossom","nature","flowers","yellow"],sheet:[6,14],shortName:"blossom"},{name:"Tulip",unified:"1F337",keywords:["tulip","flowers","plant","nature","summer","spring"],sheet:[6,9],shortName:"tulip"},{name:"Seedling",unified:"1F331",keywords:["seedling","plant","nature","grass","lawn","spring"],sheet:[6,3],shortName:"seedling"},{name:"Potted Plant",unified:"1FAB4",keywords:["potted plant","greenery","house"],sheet:[53,3],shortName:"potted_plant"},{name:"Evergreen Tree",unified:"1F332",keywords:["evergreen_tree","plant","nature"],sheet:[6,4],shortName:"evergreen_tree"},{name:"Deciduous Tree",unified:"1F333",keywords:["deciduous_tree","plant","nature"],sheet:[6,5],shortName:"deciduous_tree"},{name:"Palm Tree",unified:"1F334",keywords:["palm_tree","plant","vegetable","nature","summer","beach","mojito","tropical"],sheet:[6,6],shortName:"palm_tree"},{name:"Cactus",unified:"1F335",keywords:["cactus","vegetable","plant","nature"],sheet:[6,7],shortName:"cactus"},{name:"Ear of Rice",unified:"1F33E",keywords:["sheaf_of_rice","nature","plant"],sheet:[6,16],shortName:"ear_of_rice"},{name:"Herb",unified:"1F33F",keywords:["herb","vegetable","plant","medicine","weed","grass","lawn"],sheet:[6,17],shortName:"herb"},{name:"Shamrock",unified:"2618-FE0F",keywords:["shamrock","vegetable","plant","nature","irish","clover"],sheet:[54,6],shortName:"shamrock"},{name:"Four Leaf Clover",unified:"1F340",keywords:["four_leaf_clover","vegetable","plant","nature","lucky","irish"],sheet:[6,18],shortName:"four_leaf_clover"},{name:"Maple Leaf",unified:"1F341",keywords:["maple_leaf","nature","plant","vegetable","ca","fall"],sheet:[6,19],shortName:"maple_leaf"},{name:"Fallen Leaf",unified:"1F342",keywords:["fallen_leaf","nature","plant","vegetable","leaves"],sheet:[6,20],shortName:"fallen_leaf"},{name:"Leaf Fluttering in Wind",unified:"1F343",keywords:["leaf_fluttering_in_wind","nature","plant","tree","vegetable","grass","lawn","spring"],sheet:[6,21],shortName:"leaves"},{name:"Grapes",unified:"1F347",keywords:["grapes","fruit","food","wine"],sheet:[6,25],shortName:"grapes"},{name:"Melon",unified:"1F348",keywords:["melon","fruit","nature","food"],sheet:[6,26],shortName:"melon"},{name:"Watermelon",unified:"1F349",keywords:["watermelon","fruit","food","picnic","summer"],sheet:[6,27],shortName:"watermelon"},{name:"Tangerine",unified:"1F34A",keywords:["tangerine","food","fruit","nature","orange"],sheet:[6,28],shortName:"tangerine"},{name:"Lemon",unified:"1F34B",keywords:["lemon","fruit","nature"],sheet:[6,29],shortName:"lemon"},{name:"Banana",unified:"1F34C",keywords:["banana","fruit","food","monkey"],sheet:[6,30],shortName:"banana"},{name:"Pineapple",unified:"1F34D",keywords:["pineapple","fruit","nature","food"],sheet:[6,31],shortName:"pineapple"},{name:"Mango",unified:"1F96D",keywords:["mango","fruit","food","tropical"],sheet:[42,10],shortName:"mango"},{name:"Red Apple",unified:"1F34E",keywords:["red_apple","fruit","mac","school"],sheet:[6,32],shortName:"apple"},{name:"Green Apple",unified:"1F34F",keywords:["green_apple","fruit","nature"],sheet:[6,33],shortName:"green_apple"},{name:"Pear",unified:"1F350",keywords:["pear","fruit","nature","food"],sheet:[6,34],shortName:"pear"},{name:"Peach",unified:"1F351",keywords:["peach","fruit","nature","food"],sheet:[6,35],shortName:"peach"},{name:"Cherries",unified:"1F352",keywords:["cherries","food","fruit"],sheet:[6,36],shortName:"cherries"},{name:"Strawberry",unified:"1F353",keywords:["strawberry","fruit","food","nature"],sheet:[6,37],shortName:"strawberry"},{name:"Blueberries",unified:"1FAD0",keywords:["blueberries","fruit"],sheet:[53,9],shortName:"blueberries"},{name:"Kiwifruit",unified:"1F95D",keywords:["kiwi_fruit","fruit","food"],sheet:[41,52],shortName:"kiwifruit"},{name:"Tomato",unified:"1F345",keywords:["tomato","fruit","vegetable","nature","food"],sheet:[6,23],shortName:"tomato"},{name:"Olive",unified:"1FAD2",keywords:["olive","fruit"],sheet:[53,11],shortName:"olive"},{name:"Coconut",unified:"1F965",keywords:["coconut","fruit","nature","food","palm"],sheet:[42,2],shortName:"coconut"},{name:"Avocado",unified:"1F951",keywords:["avocado","fruit","food"],sheet:[41,40],shortName:"avocado"},{name:"Aubergine",unified:"1F346",keywords:["eggplant","vegetable","nature","food","aubergine"],sheet:[6,24],shortName:"eggplant"},{name:"Potato",unified:"1F954",keywords:["potato","food","tuber","vegatable","starch"],sheet:[41,43],shortName:"potato"},{name:"Carrot",unified:"1F955",keywords:["carrot","vegetable","food","orange"],sheet:[41,44],shortName:"carrot"},{name:"Ear of Maize",unified:"1F33D",keywords:["ear_of_corn","food","vegetable","plant"],sheet:[6,15],shortName:"corn"},{name:"Hot Pepper",unified:"1F336-FE0F",keywords:["hot_pepper","food","spicy","chilli","chili"],sheet:[6,8],shortName:"hot_pepper"},{name:"Bell Pepper",unified:"1FAD1",keywords:["bell pepper","fruit","plant"],sheet:[53,10],shortName:"bell_pepper"},{name:"Cucumber",unified:"1F952",keywords:["cucumber","fruit","food","pickle"],sheet:[41,41],shortName:"cucumber"},{name:"Leafy Green",unified:"1F96C",keywords:["leafy_green","food","vegetable","plant","bok choy","cabbage","kale","lettuce"],sheet:[42,9],shortName:"leafy_green"},{name:"Broccoli",unified:"1F966",keywords:["broccoli","fruit","food","vegetable"],sheet:[42,3],shortName:"broccoli"},{name:"Garlic",unified:"1F9C4",keywords:["garlic","food","spice","cook"],sheet:[44,30],shortName:"garlic"},{name:"Onion",unified:"1F9C5",keywords:["onion","cook","food","spice"],sheet:[44,31],shortName:"onion"},{name:"Mushroom",unified:"1F344",keywords:["mushroom","plant","vegetable"],sheet:[6,22],shortName:"mushroom"},{name:"Peanuts",unified:"1F95C",keywords:["peanuts","food","nut"],sheet:[41,51],shortName:"peanuts"},{name:"Chestnut",unified:"1F330",keywords:["chestnut","food","squirrel"],sheet:[6,2],shortName:"chestnut"},{name:"Bread",unified:"1F35E",keywords:["bread","food","wheat","breakfast","toast"],sheet:[6,48],shortName:"bread"},{name:"Croissant",unified:"1F950",keywords:["croissant","food","bread","french"],sheet:[41,39],shortName:"croissant"},{name:"Baguette Bread",unified:"1F956",keywords:["baguette_bread","food","bread","french"],sheet:[41,45],shortName:"baguette_bread"},{name:"Flatbread",unified:"1FAD3",keywords:["flatbread","flour","food"],sheet:[53,12],shortName:"flatbread"},{name:"Pretzel",unified:"1F968",keywords:["pretzel","food","bread","twisted"],sheet:[42,5],shortName:"pretzel"},{name:"Bagel",unified:"1F96F",keywords:["bagel","food","bread","bakery","schmear"],sheet:[42,12],shortName:"bagel"},{name:"Pancakes",unified:"1F95E",keywords:["pancakes","food","breakfast","flapjacks","hotcakes"],sheet:[41,53],shortName:"pancakes"},{name:"Waffle",unified:"1F9C7",keywords:["waffle","food","breakfast"],sheet:[44,33],shortName:"waffle"},{name:"Cheese Wedge",unified:"1F9C0",keywords:["cheese_wedge","food","chadder"],sheet:[44,26],shortName:"cheese_wedge"},{name:"Meat on Bone",unified:"1F356",keywords:["meat_on_bone","good","food","drumstick"],sheet:[6,40],shortName:"meat_on_bone"},{name:"Poultry Leg",unified:"1F357",keywords:["poultry_leg","food","meat","drumstick","bird","chicken","turkey"],sheet:[6,41],shortName:"poultry_leg"},{name:"Cut of Meat",unified:"1F969",keywords:["cut_of_meat","food","cow","meat","cut","chop","lambchop","porkchop"],sheet:[42,6],shortName:"cut_of_meat"},{name:"Bacon",unified:"1F953",keywords:["bacon","food","breakfast","pork","pig","meat"],sheet:[41,42],shortName:"bacon"},{name:"Hamburger",unified:"1F354",keywords:["hamburger","meat","fast food","beef","cheeseburger","mcdonalds","burger king"],sheet:[6,38],shortName:"hamburger"},{name:"French Fries",unified:"1F35F",keywords:["french_fries","chips","snack","fast food"],sheet:[6,49],shortName:"fries"},{name:"Slice of Pizza",unified:"1F355",keywords:["pizza","food","party"],sheet:[6,39],shortName:"pizza"},{name:"Hot Dog",unified:"1F32D",keywords:["hot_dog","food","frankfurter"],sheet:[5,57],shortName:"hotdog"},{name:"Sandwich",unified:"1F96A",keywords:["sandwich","food","lunch","bread"],sheet:[42,7],shortName:"sandwich"},{name:"Taco",unified:"1F32E",keywords:["taco","food","mexican"],sheet:[6,0],shortName:"taco"},{name:"Burrito",unified:"1F32F",keywords:["burrito","food","mexican"],sheet:[6,1],shortName:"burrito"},{name:"Tamale",unified:"1FAD4",keywords:["tamale","food","masa"],sheet:[53,13],shortName:"tamale"},{name:"Stuffed Flatbread",unified:"1F959",keywords:["stuffed_flatbread","food","flatbread","stuffed","gyro"],sheet:[41,48],shortName:"stuffed_flatbread"},{name:"Falafel",unified:"1F9C6",keywords:["falafel","food"],sheet:[44,32],shortName:"falafel"},{name:"Egg",unified:"1F95A",keywords:["egg","food","chicken","breakfast"],sheet:[41,49],shortName:"egg"},{name:"Cooking",unified:"1F373",keywords:["cooking","food","breakfast","kitchen","egg"],sheet:[7,11],shortNames:["cooking"],shortName:"fried_egg"},{name:"Shallow Pan of Food",unified:"1F958",keywords:["shallow_pan_of_food","food","cooking","casserole","paella"],sheet:[41,47],shortName:"shallow_pan_of_food"},{name:"Pot of Food",unified:"1F372",keywords:["pot_of_food","food","meat","soup"],sheet:[7,10],shortName:"stew"},{name:"Fondue",unified:"1FAD5",keywords:["fondue","cheese","pot","food"],sheet:[53,14],shortName:"fondue"},{name:"Bowl with Spoon",unified:"1F963",keywords:["bowl_with_spoon","food","breakfast","cereal","oatmeal","porridge"],sheet:[42,0],shortName:"bowl_with_spoon"},{name:"Green Salad",unified:"1F957",keywords:["green_salad","food","healthy","lettuce"],sheet:[41,46],shortName:"green_salad"},{name:"Popcorn",unified:"1F37F",keywords:["popcorn","food","movie theater","films","snack"],sheet:[7,23],shortName:"popcorn"},{name:"Butter",unified:"1F9C8",keywords:["butter","food","cook"],sheet:[44,34],shortName:"butter"},{name:"Salt Shaker",unified:"1F9C2",keywords:["salt","condiment","shaker"],sheet:[44,28],shortName:"salt"},{name:"Canned Food",unified:"1F96B",keywords:["canned_food","food","soup"],sheet:[42,8],shortName:"canned_food"},{name:"Bento Box",unified:"1F371",keywords:["bento_box","food","japanese","box"],sheet:[7,9],shortName:"bento"},{name:"Rice Cracker",unified:"1F358",keywords:["rice_cracker","food","japanese"],sheet:[6,42],shortName:"rice_cracker"},{name:"Rice Ball",unified:"1F359",keywords:["rice_ball","food","japanese"],sheet:[6,43],shortName:"rice_ball"},{name:"Cooked Rice",unified:"1F35A",keywords:["cooked_rice","food","china","asian"],sheet:[6,44],shortName:"rice"},{name:"Curry and Rice",unified:"1F35B",keywords:["curry_rice","food","spicy","hot","indian"],sheet:[6,45],shortName:"curry"},{name:"Steaming Bowl",unified:"1F35C",keywords:["steaming_bowl","food","japanese","noodle","chopsticks"],sheet:[6,46],shortName:"ramen"},{name:"Spaghetti",unified:"1F35D",keywords:["spaghetti","food","italian","noodle"],sheet:[6,47],shortName:"spaghetti"},{name:"Roasted Sweet Potato",unified:"1F360",keywords:["roasted_sweet_potato","food","nature"],sheet:[6,50],shortName:"sweet_potato"},{name:"Oden",unified:"1F362",keywords:["oden","food","japanese"],sheet:[6,52],shortName:"oden"},{name:"Sushi",unified:"1F363",keywords:["sushi","food","fish","japanese","rice"],sheet:[6,53],shortName:"sushi"},{name:"Fried Shrimp",unified:"1F364",keywords:["fried_shrimp","food","animal","appetizer","summer"],sheet:[6,54],shortName:"fried_shrimp"},{name:"Fish Cake with Swirl Design",unified:"1F365",keywords:["fish_cake_with_swirl","food","japan","sea","beach","narutomaki","pink","swirl","kamaboko","surimi","ramen"],sheet:[6,55],shortName:"fish_cake"},{name:"Moon Cake",unified:"1F96E",keywords:["moon_cake","food","autumn"],sheet:[42,11],shortName:"moon_cake"},{name:"Dango",unified:"1F361",keywords:["dango","food","dessert","sweet","japanese","barbecue","meat"],sheet:[6,51],shortName:"dango"},{name:"Dumpling",unified:"1F95F",keywords:["dumpling","food","empanada","pierogi","potsticker"],sheet:[41,54],shortName:"dumpling"},{name:"Fortune Cookie",unified:"1F960",keywords:["fortune_cookie","food","prophecy"],sheet:[41,55],shortName:"fortune_cookie"},{name:"Takeout Box",unified:"1F961",keywords:["takeout_box","food","leftovers"],sheet:[41,56],shortName:"takeout_box"},{name:"Crab",unified:"1F980",keywords:["crab","animal","crustacean"],sheet:[42,33],shortName:"crab"},{name:"Lobster",unified:"1F99E",keywords:["lobster","animal","nature","bisque","claws","seafood"],sheet:[43,5],shortName:"lobster"},{name:"Shrimp",unified:"1F990",keywords:["shrimp","animal","ocean","nature","seafood"],sheet:[42,49],shortName:"shrimp"},{name:"Squid",unified:"1F991",keywords:["squid","animal","nature","ocean","sea"],sheet:[42,50],shortName:"squid"},{name:"Oyster",unified:"1F9AA",keywords:["oyster","food"],sheet:[43,17],shortName:"oyster"},{name:"Soft Ice Cream",unified:"1F366",keywords:["soft_ice_cream","food","hot","dessert","summer"],sheet:[6,56],shortName:"icecream"},{name:"Shaved Ice",unified:"1F367",keywords:["shaved_ice","hot","dessert","summer"],sheet:[6,57],shortName:"shaved_ice"},{name:"Ice Cream",unified:"1F368",keywords:["ice_cream","food","hot","dessert"],sheet:[7,0],shortName:"ice_cream"},{name:"Doughnut",unified:"1F369",keywords:["doughnut","food","dessert","snack","sweet","donut"],sheet:[7,1],shortName:"doughnut"},{name:"Cookie",unified:"1F36A",keywords:["cookie","food","snack","oreo","chocolate","sweet","dessert"],sheet:[7,2],shortName:"cookie"},{name:"Birthday Cake",unified:"1F382",keywords:["birthday_cake","food","dessert","cake"],sheet:[7,26],shortName:"birthday"},{name:"Shortcake",unified:"1F370",keywords:["shortcake","food","dessert"],sheet:[7,8],shortName:"cake"},{name:"Cupcake",unified:"1F9C1",keywords:["cupcake","food","dessert","bakery","sweet"],sheet:[44,27],shortName:"cupcake"},{name:"Pie",unified:"1F967",keywords:["pie","food","dessert","pastry"],sheet:[42,4],shortName:"pie"},{name:"Chocolate Bar",unified:"1F36B",keywords:["chocolate_bar","food","snack","dessert","sweet"],sheet:[7,3],shortName:"chocolate_bar"},{name:"Candy",unified:"1F36C",keywords:["candy","snack","dessert","sweet","lolly"],sheet:[7,4],shortName:"candy"},{name:"Lollipop",unified:"1F36D",keywords:["lollipop","food","snack","candy","sweet"],sheet:[7,5],shortName:"lollipop"},{name:"Custard",unified:"1F36E",keywords:["custard","dessert","food"],sheet:[7,6],shortName:"custard"},{name:"Honey Pot",unified:"1F36F",keywords:["honey_pot","bees","sweet","kitchen"],sheet:[7,7],shortName:"honey_pot"},{name:"Baby Bottle",unified:"1F37C",keywords:["baby_bottle","food","container","milk"],sheet:[7,20],shortName:"baby_bottle"},{name:"Glass of Milk",unified:"1F95B",keywords:["glass_of_milk","beverage","drink","cow"],sheet:[41,50],shortName:"glass_of_milk"},{name:"Hot Beverage",unified:"2615",keywords:["hot_beverage","beverage","caffeine","latte","espresso"],sheet:[54,5],shortName:"coffee"},{name:"Teapot",unified:"1FAD6",keywords:["teapot","drink","hot"],sheet:[53,15],shortName:"teapot"},{name:"Teacup Without Handle",unified:"1F375",keywords:["teacup_without_handle","drink","bowl","breakfast","green","british"],sheet:[7,13],shortName:"tea"},{name:"Sake Bottle and Cup",unified:"1F376",keywords:["sake","wine","drink","drunk","beverage","japanese","alcohol","booze"],sheet:[7,14],shortName:"sake"},{name:"Bottle with Popping Cork",unified:"1F37E",keywords:["bottle_with_popping_cork","drink","wine","bottle","celebration"],sheet:[7,22],shortName:"champagne"},{name:"Wine Glass",unified:"1F377",keywords:["wine_glass","drink","beverage","drunk","alcohol","booze"],sheet:[7,15],shortName:"wine_glass"},{name:"Cocktail Glass",unified:"1F378",keywords:["cocktail_glass","drink","drunk","alcohol","beverage","booze","mojito"],sheet:[7,16],shortName:"cocktail"},{name:"Tropical Drink",unified:"1F379",keywords:["tropical_drink","beverage","cocktail","summer","beach","alcohol","booze","mojito"],sheet:[7,17],shortName:"tropical_drink"},{name:"Beer Mug",unified:"1F37A",keywords:["beer_mug","relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],sheet:[7,18],shortName:"beer"},{name:"Clinking Beer Mugs",unified:"1F37B",keywords:["clinking_beer_mugs","relax","beverage","drink","drunk","party","pub","summer","alcohol","booze"],sheet:[7,19],shortName:"beers"},{name:"Clinking Glasses",unified:"1F942",keywords:["clinking_glasses","beverage","drink","party","alcohol","celebrate","cheers","wine","champagne","toast"],sheet:[41,26],shortName:"clinking_glasses"},{name:"Tumbler Glass",unified:"1F943",keywords:["tumbler_glass","drink","beverage","drunk","alcohol","liquor","booze","bourbon","scotch","whisky","glass","shot"],sheet:[41,27],shortName:"tumbler_glass"},{name:"Cup with Straw",unified:"1F964",keywords:["cup_with_straw","drink","soda"],sheet:[42,1],shortName:"cup_with_straw"},{name:"Bubble Tea",unified:"1F9CB",keywords:["bubble tea","taiwan","boba","milk tea","straw"],sheet:[44,37],shortName:"bubble_tea"},{name:"Beverage Box",unified:"1F9C3",keywords:["beverage_box","drink"],sheet:[44,29],shortName:"beverage_box"},{name:"Mate Drink",unified:"1F9C9",keywords:["mate","drink","tea","beverage"],sheet:[44,35],shortName:"mate_drink"},{name:"Ice Cube",unified:"1F9CA",keywords:["ice","water","cold"],sheet:[44,36],shortName:"ice_cube"},{name:"Chopsticks",unified:"1F962",keywords:["chopsticks","food"],sheet:[41,57],shortName:"chopsticks"},{name:"Fork and Knife with Plate",unified:"1F37D-FE0F",keywords:["fork_and_knife_with_plate","food","eat","meal","lunch","dinner","restaurant"],sheet:[7,21],shortName:"knife_fork_plate"},{name:"Fork and Knife",unified:"1F374",keywords:["fork_and_knife","cutlery","kitchen"],sheet:[7,12],shortName:"fork_and_knife"},{name:"Spoon",unified:"1F944",keywords:["spoon","cutlery","kitchen","tableware"],sheet:[41,28],shortName:"spoon"},{name:"Hocho",unified:"1F52A",keywords:["kitchen_knife","knife","blade","cutlery","kitchen","weapon"],sheet:[28,12],shortNames:["knife"],shortName:"hocho"},{name:"Amphora",unified:"1F3FA",keywords:["amphora","vase","jar"],sheet:[11,12],shortName:"amphora"},{name:"Earth Globe Europe-Africa",unified:"1F30D",keywords:["globe_showing_europe_africa","globe","world","international"],sheet:[5,27],shortName:"earth_africa"},{name:"Earth Globe Americas",unified:"1F30E",keywords:["globe_showing_americas","globe","world","USA","international"],sheet:[5,28],shortName:"earth_americas"},{name:"Earth Globe Asia-Australia",unified:"1F30F",keywords:["globe_showing_asia_australia","globe","world","east","international"],sheet:[5,29],shortName:"earth_asia"},{name:"Globe with Meridians",unified:"1F310",keywords:["globe_with_meridians","earth","international","world","internet","interweb","i18n"],sheet:[5,30],shortName:"globe_with_meridians"},{name:"World Map",unified:"1F5FA-FE0F",keywords:["world_map","location","direction"],sheet:[30,26],shortName:"world_map"},{name:"Silhouette of Japan",unified:"1F5FE",keywords:["map_of_japan","nation","country","japanese","asia"],sheet:[30,30],shortName:"japan"},{name:"Compass",unified:"1F9ED",keywords:["compass","magnetic","navigation","orienteering"],sheet:[51,56],shortName:"compass"},{name:"Snow-Capped Mountain",unified:"1F3D4-FE0F",keywords:["snow_capped_mountain","photo","nature","environment","winter","cold"],sheet:[10,29],shortName:"snow_capped_mountain"},{name:"Mountain",unified:"26F0-FE0F",keywords:["mountain","photo","nature","environment"],sheet:[55,16],shortName:"mountain"},{name:"Volcano",unified:"1F30B",keywords:["volcano","photo","nature","disaster"],sheet:[5,25],shortName:"volcano"},{name:"Mount Fuji",unified:"1F5FB",keywords:["mount_fuji","photo","mountain","nature","japanese"],sheet:[30,27],shortName:"mount_fuji"},{name:"Camping",unified:"1F3D5-FE0F",keywords:["camping","photo","outdoors","tent"],sheet:[10,30],shortName:"camping"},{name:"Beach with Umbrella",unified:"1F3D6-FE0F",keywords:["beach_with_umbrella","weather","summer","sunny","sand","mojito"],sheet:[10,31],shortName:"beach_with_umbrella"},{name:"Desert",unified:"1F3DC-FE0F",keywords:["desert","photo","warm","saharah"],sheet:[10,37],shortName:"desert"},{name:"Desert Island",unified:"1F3DD-FE0F",keywords:["desert_island","photo","tropical","mojito"],sheet:[10,38],shortName:"desert_island"},{name:"National Park",unified:"1F3DE-FE0F",keywords:["national_park","photo","environment","nature"],sheet:[10,39],shortName:"national_park"},{name:"Stadium",unified:"1F3DF-FE0F",keywords:["stadium","photo","place","sports","concert","venue"],sheet:[10,40],shortName:"stadium"},{name:"Classical Building",unified:"1F3DB-FE0F",keywords:["classical_building","art","culture","history"],sheet:[10,36],shortName:"classical_building"},{name:"Building Construction",unified:"1F3D7-FE0F",keywords:["building_construction","wip","working","progress"],sheet:[10,32],shortName:"building_construction"},{name:"Brick",unified:"1F9F1",keywords:["brick","bricks"],sheet:[52,2],shortName:"bricks"},{name:"Rock",unified:"1FAA8",keywords:["rock","stone"],sheet:[52,56],shortName:"rock"},{name:"Wood",unified:"1FAB5",keywords:["wood","nature","timber","trunk"],sheet:[53,4],shortName:"wood"},{name:"Hut",unified:"1F6D6",keywords:["hut","house","structure"],sheet:[36,33],shortName:"hut"},{name:"Houses",unified:"1F3D8-FE0F",keywords:["houses","buildings","photo"],sheet:[10,33],shortName:"house_buildings"},{name:"Derelict House",unified:"1F3DA-FE0F",keywords:["derelict_house","abandon","evict","broken","building"],sheet:[10,35],shortName:"derelict_house_building"},{name:"House Building",unified:"1F3E0",keywords:["house","building","home"],sheet:[10,41],shortName:"house"},{name:"House with Garden",unified:"1F3E1",keywords:["house_with_garden","home","plant","nature"],sheet:[10,42],shortName:"house_with_garden"},{name:"Office Building",unified:"1F3E2",keywords:["office_building","building","bureau","work"],sheet:[10,43],shortName:"office"},{name:"Japanese Post Office",unified:"1F3E3",keywords:["japanese_post_office","building","envelope","communication"],sheet:[10,44],shortName:"post_office"},{name:"European Post Office",unified:"1F3E4",keywords:["post_office","building","email"],sheet:[10,45],shortName:"european_post_office"},{name:"Hospital",unified:"1F3E5",keywords:["hospital","building","health","surgery","doctor"],sheet:[10,46],shortName:"hospital"},{name:"Bank",unified:"1F3E6",keywords:["bank","building","money","sales","cash","business","enterprise"],sheet:[10,47],shortName:"bank"},{name:"Hotel",unified:"1F3E8",keywords:["hotel","building","accomodation","checkin"],sheet:[10,49],shortName:"hotel"},{name:"Love Hotel",unified:"1F3E9",keywords:["love_hotel","like","affection","dating"],sheet:[10,50],shortName:"love_hotel"},{name:"Convenience Store",unified:"1F3EA",keywords:["convenience_store","building","shopping","groceries"],sheet:[10,51],shortName:"convenience_store"},{name:"School",unified:"1F3EB",keywords:["school","building","student","education","learn","teach"],sheet:[10,52],shortName:"school"},{name:"Department Store",unified:"1F3EC",keywords:["department_store","building","shopping","mall"],sheet:[10,53],shortName:"department_store"},{name:"Factory",unified:"1F3ED",keywords:["factory","building","industry","pollution","smoke"],sheet:[10,54],shortName:"factory"},{name:"Japanese Castle",unified:"1F3EF",keywords:["japanese_castle","photo","building"],sheet:[10,56],shortName:"japanese_castle"},{name:"European Castle",unified:"1F3F0",keywords:["castle","building","royalty","history"],sheet:[10,57],shortName:"european_castle"},{name:"Wedding",unified:"1F492",keywords:["wedding","love","like","affection","couple","marriage","bride","groom"],sheet:[25,30],shortName:"wedding"},{name:"Tokyo Tower",unified:"1F5FC",keywords:["tokyo_tower","photo","japanese"],sheet:[30,28],shortName:"tokyo_tower"},{name:"Statue of Liberty",unified:"1F5FD",keywords:["statue_of_liberty","american","newyork"],sheet:[30,29],shortName:"statue_of_liberty"},{name:"Church",unified:"26EA",keywords:["church","building","religion","christ"],sheet:[55,15],shortName:"church"},{name:"Mosque",unified:"1F54C",keywords:["mosque","islam","worship","minaret"],sheet:[28,35],shortName:"mosque"},{name:"Hindu Temple",unified:"1F6D5",keywords:["hindu_temple","religion"],sheet:[36,32],shortName:"hindu_temple"},{name:"Synagogue",unified:"1F54D",keywords:["synagogue","judaism","worship","temple","jewish"],sheet:[28,36],shortName:"synagogue"},{name:"Shinto Shrine",unified:"26E9-FE0F",keywords:["shinto_shrine","temple","japan","kyoto"],sheet:[55,14],shortName:"shinto_shrine"},{name:"Kaaba",unified:"1F54B",keywords:["kaaba","mecca","mosque","islam"],sheet:[28,34],shortName:"kaaba"},{name:"Fountain",unified:"26F2",keywords:["fountain","photo","summer","water","fresh"],sheet:[55,18],shortName:"fountain"},{name:"Tent",unified:"26FA",keywords:["tent","photo","camping","outdoors"],sheet:[55,42],shortName:"tent"},{name:"Foggy",unified:"1F301",keywords:["foggy","photo","mountain"],sheet:[5,15],shortName:"foggy"},{name:"Night with Stars",unified:"1F303",keywords:["night_with_stars","evening","city","downtown"],sheet:[5,17],shortName:"night_with_stars"},{name:"Cityscape",unified:"1F3D9-FE0F",keywords:["cityscape","photo","night life","urban"],sheet:[10,34],shortName:"cityscape"},{name:"Sunrise over Mountains",unified:"1F304",keywords:["sunrise_over_mountains","view","vacation","photo"],sheet:[5,18],shortName:"sunrise_over_mountains"},{name:"Sunrise",unified:"1F305",keywords:["sunrise","morning","view","vacation","photo"],sheet:[5,19],shortName:"sunrise"},{name:"Cityscape at Dusk",unified:"1F306",keywords:["cityscape_at_dusk","photo","evening","sky","buildings"],sheet:[5,20],shortName:"city_sunset"},{name:"Sunset over Buildings",unified:"1F307",keywords:["sunset","photo","good morning","dawn"],sheet:[5,21],shortName:"city_sunrise"},{name:"Bridge at Night",unified:"1F309",keywords:["bridge_at_night","photo","sanfrancisco"],sheet:[5,23],shortName:"bridge_at_night"},{name:"Hot Springs",unified:"2668-FE0F",keywords:["hot_springs","bath","warm","relax"],sheet:[54,42],shortName:"hotsprings"},{name:"Carousel Horse",unified:"1F3A0",keywords:["carousel_horse","photo","carnival"],sheet:[7,56],shortName:"carousel_horse"},{name:"Ferris Wheel",unified:"1F3A1",keywords:["ferris_wheel","photo","carnival","londoneye"],sheet:[7,57],shortName:"ferris_wheel"},{name:"Roller Coaster",unified:"1F3A2",keywords:["roller_coaster","carnival","playground","photo","fun"],sheet:[8,0],shortName:"roller_coaster"},{name:"Barber Pole",unified:"1F488",keywords:["barber_pole","hair","salon","style"],sheet:[25,20],shortName:"barber"},{name:"Circus Tent",unified:"1F3AA",keywords:["circus_tent","festival","carnival","party"],sheet:[8,8],shortName:"circus_tent"},{name:"Steam Locomotive",unified:"1F682",keywords:["locomotive","transportation","vehicle","train"],sheet:[33,52],shortName:"steam_locomotive"},{name:"Railway Car",unified:"1F683",keywords:["railway_car","transportation","vehicle"],sheet:[33,53],shortName:"railway_car"},{name:"High-Speed Train",unified:"1F684",keywords:["high_speed_train","transportation","vehicle"],sheet:[33,54],shortName:"bullettrain_side"},{name:"High-Speed Train with Bullet Nose",unified:"1F685",keywords:["bullet_train","transportation","vehicle","speed","fast","public","travel"],sheet:[33,55],shortName:"bullettrain_front"},{name:"Train",unified:"1F686",keywords:["train","transportation","vehicle"],sheet:[33,56],shortName:"train2"},{name:"Metro",unified:"1F687",keywords:["metro","transportation","blue-square","mrt","underground","tube"],sheet:[33,57],shortName:"metro"},{name:"Light Rail",unified:"1F688",keywords:["light_rail","transportation","vehicle"],sheet:[34,0],shortName:"light_rail"},{name:"Station",unified:"1F689",keywords:["station","transportation","vehicle","public"],sheet:[34,1],shortName:"station"},{name:"Tram",unified:"1F68A",keywords:["tram","transportation","vehicle"],sheet:[34,2],shortName:"tram"},{name:"Monorail",unified:"1F69D",keywords:["monorail","transportation","vehicle"],sheet:[34,21],shortName:"monorail"},{name:"Mountain Railway",unified:"1F69E",keywords:["mountain_railway","transportation","vehicle"],sheet:[34,22],shortName:"mountain_railway"},{name:"Tram Car",unified:"1F68B",keywords:["tram_car","transportation","vehicle","carriage","public","travel"],sheet:[34,3],shortName:"train"},{name:"Bus",unified:"1F68C",keywords:["bus","car","vehicle","transportation"],sheet:[34,4],shortName:"bus"},{name:"Oncoming Bus",unified:"1F68D",keywords:["oncoming_bus","vehicle","transportation"],sheet:[34,5],shortName:"oncoming_bus"},{name:"Trolleybus",unified:"1F68E",keywords:["trolleybus","bart","transportation","vehicle"],sheet:[34,6],shortName:"trolleybus"},{name:"Minibus",unified:"1F690",keywords:["minibus","vehicle","car","transportation"],sheet:[34,8],shortName:"minibus"},{name:"Ambulance",unified:"1F691",keywords:["ambulance","health","911","hospital"],sheet:[34,9],shortName:"ambulance"},{name:"Fire Engine",unified:"1F692",keywords:["fire_engine","transportation","cars","vehicle"],sheet:[34,10],shortName:"fire_engine"},{name:"Police Car",unified:"1F693",keywords:["police_car","vehicle","cars","transportation","law","legal","enforcement"],sheet:[34,11],shortName:"police_car"},{name:"Oncoming Police Car",unified:"1F694",keywords:["oncoming_police_car","vehicle","law","legal","enforcement","911"],sheet:[34,12],shortName:"oncoming_police_car"},{name:"Taxi",unified:"1F695",keywords:["taxi","uber","vehicle","cars","transportation"],sheet:[34,13],shortName:"taxi"},{name:"Oncoming Taxi",unified:"1F696",keywords:["oncoming_taxi","vehicle","cars","uber"],sheet:[34,14],shortName:"oncoming_taxi"},{name:"Automobile",unified:"1F697",keywords:["automobile","red","transportation","vehicle"],sheet:[34,15],shortNames:["red_car"],shortName:"car"},{name:"Oncoming Automobile",unified:"1F698",keywords:["oncoming_automobile","car","vehicle","transportation"],sheet:[34,16],shortName:"oncoming_automobile"},{name:"Recreational Vehicle",unified:"1F699",keywords:["sport_utility_vehicle","transportation","vehicle"],sheet:[34,17],shortName:"blue_car"},{name:"Pickup Truck",unified:"1F6FB",keywords:["pickup truck","car","transportation"],sheet:[36,53],shortName:"pickup_truck"},{name:"Delivery Truck",unified:"1F69A",keywords:["delivery_truck","cars","transportation"],sheet:[34,18],shortName:"truck"},{name:"Articulated Lorry",unified:"1F69B",keywords:["articulated_lorry","vehicle","cars","transportation","express"],sheet:[34,19],shortName:"articulated_lorry"},{name:"Tractor",unified:"1F69C",keywords:["tractor","vehicle","car","farming","agriculture"],sheet:[34,20],shortName:"tractor"},{name:"Racing Car",unified:"1F3CE-FE0F",keywords:["racing_car","sports","race","fast","formula","f1"],sheet:[10,23],shortName:"racing_car"},{name:"Motorcycle",unified:"1F3CD-FE0F",keywords:["motorcycle","race","sports","fast"],sheet:[10,22],shortName:"racing_motorcycle"},{name:"Motor Scooter",unified:"1F6F5",keywords:["motor_scooter","vehicle","vespa","sasha"],sheet:[36,47],shortName:"motor_scooter"},{name:"Manual Wheelchair",unified:"1F9BD",keywords:["manual_wheelchair","accessibility"],sheet:[44,23],shortName:"manual_wheelchair"},{name:"Motorized Wheelchair",unified:"1F9BC",keywords:["motorized_wheelchair","accessibility"],sheet:[44,22],shortName:"motorized_wheelchair"},{name:"Auto Rickshaw",unified:"1F6FA",keywords:["auto_rickshaw","move","transportation"],sheet:[36,52],shortName:"auto_rickshaw"},{name:"Bicycle",unified:"1F6B2",keywords:["bicycle","sports","bicycle","exercise","hipster"],sheet:[35,1],shortName:"bike"},{name:"Scooter",unified:"1F6F4",keywords:["kick_scooter","vehicle","kick","razor"],sheet:[36,46],shortName:"scooter"},{name:"Skateboard",unified:"1F6F9",keywords:["skateboard","board"],sheet:[36,51],shortName:"skateboard"},{name:"Roller Skate",unified:"1F6FC",keywords:["roller skate","footwear","sports"],sheet:[36,54],shortName:"roller_skate"},{name:"Bus Stop",unified:"1F68F",keywords:["bus_stop","transportation","wait"],sheet:[34,7],shortName:"busstop"},{name:"Motorway",unified:"1F6E3-FE0F",keywords:["motorway","road","cupertino","interstate","highway"],sheet:[36,38],shortName:"motorway"},{name:"Railway Track",unified:"1F6E4-FE0F",keywords:["railway_track","train","transportation"],sheet:[36,39],shortName:"railway_track"},{name:"Oil Drum",unified:"1F6E2-FE0F",keywords:["oil_drum","barrell"],sheet:[36,37],shortName:"oil_drum"},{name:"Fuel Pump",unified:"26FD",keywords:["fuel_pump","gas station","petroleum"],sheet:[55,43],shortName:"fuelpump"},{name:"Police Cars Revolving Light",unified:"1F6A8",keywords:["police_car_light","police","ambulance","911","emergency","alert","error","pinged","law","legal"],sheet:[34,49],shortName:"rotating_light"},{name:"Horizontal Traffic Light",unified:"1F6A5",keywords:["horizontal_traffic_light","transportation","signal"],sheet:[34,46],shortName:"traffic_light"},{name:"Vertical Traffic Light",unified:"1F6A6",keywords:["vertical_traffic_light","transportation","driving"],sheet:[34,47],shortName:"vertical_traffic_light"},{name:"Octagonal Sign",unified:"1F6D1",keywords:["stop_sign","stop"],sheet:[36,30],shortName:"octagonal_sign"},{name:"Construction Sign",unified:"1F6A7",keywords:["construction","wip","progress","caution","warning"],sheet:[34,48],shortName:"construction"},{name:"Anchor",unified:"2693",keywords:["anchor","ship","ferry","sea","boat"],sheet:[54,47],shortName:"anchor"},{name:"Sailboat",unified:"26F5",keywords:["sailboat","ship","summer","transportation","water","sailing"],sheet:[55,21],shortNames:["sailboat"],shortName:"boat"},{name:"Canoe",unified:"1F6F6",keywords:["canoe","boat","paddle","water","ship"],sheet:[36,48],shortName:"canoe"},{name:"Speedboat",unified:"1F6A4",keywords:["speedboat","ship","transportation","vehicle","summer"],sheet:[34,45],shortName:"speedboat"},{name:"Passenger Ship",unified:"1F6F3-FE0F",keywords:["passenger_ship","yacht","cruise","ferry"],sheet:[36,45],shortName:"passenger_ship"},{name:"Ferry",unified:"26F4-FE0F",keywords:["ferry","boat","ship","yacht"],sheet:[55,20],shortName:"ferry"},{name:"Motor Boat",unified:"1F6E5-FE0F",keywords:["motor_boat","ship"],sheet:[36,40],shortName:"motor_boat"},{name:"Ship",unified:"1F6A2",keywords:["ship","transportation","titanic","deploy"],sheet:[34,26],shortName:"ship"},{name:"Airplane",unified:"2708-FE0F",keywords:["airplane","vehicle","transportation","flight","fly"],sheet:[55,46],shortName:"airplane"},{name:"Small Airplane",unified:"1F6E9-FE0F",keywords:["small_airplane","flight","transportation","fly","vehicle"],sheet:[36,41],shortName:"small_airplane"},{name:"Airplane Departure",unified:"1F6EB",keywords:["airplane_departure","airport","flight","landing"],sheet:[36,42],shortName:"airplane_departure"},{name:"Airplane Arriving",unified:"1F6EC",keywords:["airplane_arrival","airport","flight","boarding"],sheet:[36,43],shortName:"airplane_arriving"},{name:"Parachute",unified:"1FA82",keywords:["parachute","fly","glide"],sheet:[52,27],shortName:"parachute"},{name:"Seat",unified:"1F4BA",keywords:["seat","sit","airplane","transport","bus","flight","fly"],sheet:[26,17],shortName:"seat"},{name:"Helicopter",unified:"1F681",keywords:["helicopter","transportation","vehicle","fly"],sheet:[33,51],shortName:"helicopter"},{name:"Suspension Railway",unified:"1F69F",keywords:["suspension_railway","vehicle","transportation"],sheet:[34,23],shortName:"suspension_railway"},{name:"Mountain Cableway",unified:"1F6A0",keywords:["mountain_cableway","transportation","vehicle","ski"],sheet:[34,24],shortName:"mountain_cableway"},{name:"Aerial Tramway",unified:"1F6A1",keywords:["aerial_tramway","transportation","vehicle","ski"],sheet:[34,25],shortName:"aerial_tramway"},{name:"Satellite",unified:"1F6F0-FE0F",keywords:["satellite","communication","gps","orbit","spaceflight","NASA","ISS"],sheet:[36,44],shortName:"satellite"},{name:"Rocket",unified:"1F680",keywords:["rocket","launch","ship","staffmode","NASA","outer space","outer_space","fly"],sheet:[33,50],shortName:"rocket"},{name:"Flying Saucer",unified:"1F6F8",keywords:["flying_saucer","transportation","vehicle","ufo"],sheet:[36,50],shortName:"flying_saucer"},{name:"Bellhop Bell",unified:"1F6CE-FE0F",keywords:["bellhop_bell","service"],sheet:[36,27],shortName:"bellhop_bell"},{name:"Luggage",unified:"1F9F3",keywords:["luggage","packing","travel"],sheet:[52,4],shortName:"luggage"},{name:"Hourglass",unified:"231B",keywords:["hourglass_done","time","clock","oldschool","limit","exam","quiz","test"],sheet:[53,29],shortName:"hourglass"},{name:"Hourglass with Flowing Sand",unified:"23F3",keywords:["hourglass_not_done","oldschool","time","countdown"],sheet:[53,42],shortName:"hourglass_flowing_sand"},{name:"Watch",unified:"231A",keywords:["watch","time","accessories"],sheet:[53,28],shortName:"watch"},{name:"Alarm Clock",unified:"23F0",keywords:["alarm_clock","time","wake"],sheet:[53,39],shortName:"alarm_clock"},{name:"Stopwatch",unified:"23F1-FE0F",keywords:["stopwatch","time","deadline"],sheet:[53,40],shortName:"stopwatch"},{name:"Timer Clock",unified:"23F2-FE0F",keywords:["timer_clock","alarm"],sheet:[53,41],shortName:"timer_clock"},{name:"Mantelpiece Clock",unified:"1F570-FE0F",keywords:["mantelpiece_clock","time"],sheet:[29,5],shortName:"mantelpiece_clock"},{name:"Clock Face Twelve Oclock",unified:"1F55B",keywords:["twelve_o_clock","time","noon","midnight","midday","late","early","schedule"],sheet:[28,49],shortName:"clock12"},{name:"Clock Face Twelve-Thirty",unified:"1F567",keywords:["twelve_thirty","time","late","early","schedule"],sheet:[29,3],shortName:"clock1230"},{name:"Clock Face One Oclock",unified:"1F550",keywords:["one_o_clock","time","late","early","schedule"],sheet:[28,38],shortName:"clock1"},{name:"Clock Face One-Thirty",unified:"1F55C",keywords:["one_thirty","time","late","early","schedule"],sheet:[28,50],shortName:"clock130"},{name:"Clock Face Two Oclock",unified:"1F551",keywords:["two_o_clock","time","late","early","schedule"],sheet:[28,39],shortName:"clock2"},{name:"Clock Face Two-Thirty",unified:"1F55D",keywords:["two_thirty","time","late","early","schedule"],sheet:[28,51],shortName:"clock230"},{name:"Clock Face Three Oclock",unified:"1F552",keywords:["three_o_clock","time","late","early","schedule"],sheet:[28,40],shortName:"clock3"},{name:"Clock Face Three-Thirty",unified:"1F55E",keywords:["three_thirty","time","late","early","schedule"],sheet:[28,52],shortName:"clock330"},{name:"Clock Face Four Oclock",unified:"1F553",keywords:["four_o_clock","time","late","early","schedule"],sheet:[28,41],shortName:"clock4"},{name:"Clock Face Four-Thirty",unified:"1F55F",keywords:["four_thirty","time","late","early","schedule"],sheet:[28,53],shortName:"clock430"},{name:"Clock Face Five Oclock",unified:"1F554",keywords:["five_o_clock","time","late","early","schedule"],sheet:[28,42],shortName:"clock5"},{name:"Clock Face Five-Thirty",unified:"1F560",keywords:["five_thirty","time","late","early","schedule"],sheet:[28,54],shortName:"clock530"},{name:"Clock Face Six Oclock",unified:"1F555",keywords:["six_o_clock","time","late","early","schedule","dawn","dusk"],sheet:[28,43],shortName:"clock6"},{name:"Clock Face Six-Thirty",unified:"1F561",keywords:["six_thirty","time","late","early","schedule"],sheet:[28,55],shortName:"clock630"},{name:"Clock Face Seven Oclock",unified:"1F556",keywords:["seven_o_clock","time","late","early","schedule"],sheet:[28,44],shortName:"clock7"},{name:"Clock Face Seven-Thirty",unified:"1F562",keywords:["seven_thirty","time","late","early","schedule"],sheet:[28,56],shortName:"clock730"},{name:"Clock Face Eight Oclock",unified:"1F557",keywords:["eight_o_clock","time","late","early","schedule"],sheet:[28,45],shortName:"clock8"},{name:"Clock Face Eight-Thirty",unified:"1F563",keywords:["eight_thirty","time","late","early","schedule"],sheet:[28,57],shortName:"clock830"},{name:"Clock Face Nine Oclock",unified:"1F558",keywords:["nine_o_clock","time","late","early","schedule"],sheet:[28,46],shortName:"clock9"},{name:"Clock Face Nine-Thirty",unified:"1F564",keywords:["nine_thirty","time","late","early","schedule"],sheet:[29,0],shortName:"clock930"},{name:"Clock Face Ten Oclock",unified:"1F559",keywords:["ten_o_clock","time","late","early","schedule"],sheet:[28,47],shortName:"clock10"},{name:"Clock Face Ten-Thirty",unified:"1F565",keywords:["ten_thirty","time","late","early","schedule"],sheet:[29,1],shortName:"clock1030"},{name:"Clock Face Eleven Oclock",unified:"1F55A",keywords:["eleven_o_clock","time","late","early","schedule"],sheet:[28,48],shortName:"clock11"},{name:"Clock Face Eleven-Thirty",unified:"1F566",keywords:["eleven_thirty","time","late","early","schedule"],sheet:[29,2],shortName:"clock1130"},{name:"New Moon Symbol",unified:"1F311",keywords:["new_moon","nature","twilight","planet","space","night","evening","sleep"],sheet:[5,31],shortName:"new_moon"},{name:"Waxing Crescent Moon Symbol",unified:"1F312",keywords:["waxing_crescent_moon","nature","twilight","planet","space","night","evening","sleep"],sheet:[5,32],shortName:"waxing_crescent_moon"},{name:"First Quarter Moon Symbol",unified:"1F313",keywords:["first_quarter_moon","nature","twilight","planet","space","night","evening","sleep"],sheet:[5,33],shortName:"first_quarter_moon"},{name:"Waxing Gibbous Moon Symbol",unified:"1F314",keywords:["waxing_gibbous_moon","nature","night","sky","gray","twilight","planet","space","evening","sleep"],sheet:[5,34],shortNames:["waxing_gibbous_moon"],shortName:"moon"},{name:"Full Moon Symbol",unified:"1F315",keywords:["full_moon","nature","yellow","twilight","planet","space","night","evening","sleep"],sheet:[5,35],shortName:"full_moon"},{name:"Waning Gibbous Moon Symbol",unified:"1F316",keywords:["waning_gibbous_moon","nature","twilight","planet","space","night","evening","sleep","waxing_gibbous_moon"],sheet:[5,36],shortName:"waning_gibbous_moon"},{name:"Last Quarter Moon Symbol",unified:"1F317",keywords:["last_quarter_moon","nature","twilight","planet","space","night","evening","sleep"],sheet:[5,37],shortName:"last_quarter_moon"},{name:"Waning Crescent Moon Symbol",unified:"1F318",keywords:["waning_crescent_moon","nature","twilight","planet","space","night","evening","sleep"],sheet:[5,38],shortName:"waning_crescent_moon"},{name:"Crescent Moon",unified:"1F319",keywords:["crescent_moon","night","sleep","sky","evening","magic"],sheet:[5,39],shortName:"crescent_moon"},{name:"New Moon with Face",unified:"1F31A",keywords:["new_moon_face","nature","twilight","planet","space","night","evening","sleep"],sheet:[5,40],shortName:"new_moon_with_face"},{name:"First Quarter Moon with Face",unified:"1F31B",keywords:["first_quarter_moon_face","nature","twilight","planet","space","night","evening","sleep"],sheet:[5,41],shortName:"first_quarter_moon_with_face"},{name:"Last Quarter Moon with Face",unified:"1F31C",keywords:["last_quarter_moon_face","nature","twilight","planet","space","night","evening","sleep"],sheet:[5,42],shortName:"last_quarter_moon_with_face"},{name:"Thermometer",unified:"1F321-FE0F",keywords:["thermometer","weather","temperature","hot","cold"],sheet:[5,47],shortName:"thermometer"},{name:"Black Sun with Rays",unified:"2600-FE0F",keywords:["sun","weather","nature","brightness","summer","beach","spring"],sheet:[53,55],shortName:"sunny"},{name:"Full Moon with Face",unified:"1F31D",keywords:["full_moon_face","nature","twilight","planet","space","night","evening","sleep"],sheet:[5,43],shortName:"full_moon_with_face"},{name:"Sun with Face",unified:"1F31E",keywords:["sun_with_face","nature","morning","sky"],sheet:[5,44],shortName:"sun_with_face"},{name:"Ringed Planet",unified:"1FA90",keywords:["ringed_planet","outerspace"],sheet:[52,32],shortName:"ringed_planet"},{name:"White Medium Star",unified:"2B50",keywords:["star","night","yellow"],sheet:[56,46],shortName:"star"},{name:"Glowing Star",unified:"1F31F",keywords:["glowing_star","night","sparkle","awesome","good","magic"],sheet:[5,45],shortName:"star2"},{name:"Shooting Star",unified:"1F320",keywords:["shooting_star","night","photo"],sheet:[5,46],shortName:"stars"},{name:"Milky Way",unified:"1F30C",keywords:["milky_way","photo","space","stars"],sheet:[5,26],shortName:"milky_way"},{name:"Cloud",unified:"2601-FE0F",keywords:["cloud","weather","sky"],sheet:[53,56],shortName:"cloud"},{name:"Sun Behind Cloud",unified:"26C5",keywords:["sun_behind_cloud","weather","nature","cloudy","morning","fall","spring"],sheet:[55,7],shortName:"partly_sunny"},{name:"Cloud with Lightning and Rain",unified:"26C8-FE0F",keywords:["cloud_with_lightning_and_rain","weather","lightning"],sheet:[55,8],shortName:"thunder_cloud_and_rain"},{name:"Sun Behind Small Cloud",unified:"1F324-FE0F",keywords:["sun_behind_small_cloud","weather"],sheet:[5,48],shortNames:["sun_small_cloud"],shortName:"mostly_sunny"},{name:"Sun Behind Large Cloud",unified:"1F325-FE0F",keywords:["sun_behind_large_cloud","weather"],sheet:[5,49],shortNames:["sun_behind_cloud"],shortName:"barely_sunny"},{name:"Sun Behind Rain Cloud",unified:"1F326-FE0F",keywords:["sun_behind_rain_cloud","weather"],sheet:[5,50],shortNames:["sun_behind_rain_cloud"],shortName:"partly_sunny_rain"},{name:"Cloud with Rain",unified:"1F327-FE0F",keywords:["cloud_with_rain","weather"],sheet:[5,51],shortName:"rain_cloud"},{name:"Cloud with Snow",unified:"1F328-FE0F",keywords:["cloud_with_snow","weather"],sheet:[5,52],shortName:"snow_cloud"},{name:"Cloud with Lightning",unified:"1F329-FE0F",keywords:["cloud_with_lightning","weather","thunder"],sheet:[5,53],shortNames:["lightning_cloud"],shortName:"lightning"},{name:"Tornado",unified:"1F32A-FE0F",keywords:["tornado","weather","cyclone","twister"],sheet:[5,54],shortNames:["tornado_cloud"],shortName:"tornado"},{name:"Fog",unified:"1F32B-FE0F",keywords:["fog","weather"],sheet:[5,55],shortName:"fog"},{name:"Wind Face",unified:"1F32C-FE0F",keywords:["wind_face","gust","air"],sheet:[5,56],shortName:"wind_blowing_face"},{name:"Cyclone",unified:"1F300",keywords:["cyclone","weather","swirl","blue","cloud","vortex","spiral","whirlpool","spin","tornado","hurricane","typhoon"],sheet:[5,14],shortName:"cyclone"},{name:"Rainbow",unified:"1F308",keywords:["rainbow","nature","happy","unicorn_face","photo","sky","spring"],sheet:[5,22],shortName:"rainbow"},{name:"Closed Umbrella",unified:"1F302",keywords:["closed_umbrella","weather","rain","drizzle"],sheet:[5,16],shortName:"closed_umbrella"},{name:"Umbrella",unified:"2602-FE0F",keywords:["umbrella","weather","spring"],sheet:[53,57],shortName:"umbrella"},{name:"Umbrella with Rain Drops",unified:"2614",keywords:["umbrella_with_rain_drops","rainy","weather","spring"],sheet:[54,4],shortName:"umbrella_with_rain_drops"},{name:"Umbrella on Ground",unified:"26F1-FE0F",keywords:["umbrella_on_ground","weather","summer"],sheet:[55,17],shortName:"umbrella_on_ground"},{name:"High Voltage Sign",unified:"26A1",keywords:["high_voltage","thunder","weather","lightning bolt","fast"],sheet:[54,56],shortName:"zap"},{name:"Snowflake",unified:"2744-FE0F",keywords:["snowflake","winter","season","cold","weather","christmas","xmas"],sheet:[56,23],shortName:"snowflake"},{name:"Snowman",unified:"2603-FE0F",keywords:["snowman","winter","season","cold","weather","christmas","xmas","frozen"],sheet:[54,0],shortName:"snowman"},{name:"Snowman Without Snow",unified:"26C4",keywords:["snowman_without_snow","winter","season","cold","weather","christmas","xmas","frozen","without_snow"],sheet:[55,6],shortName:"snowman_without_snow"},{name:"Comet",unified:"2604-FE0F",keywords:["comet","space"],sheet:[54,1],shortName:"comet"},{name:"Fire",unified:"1F525",keywords:["fire","hot","cook","flame"],sheet:[28,7],shortName:"fire"},{name:"Droplet",unified:"1F4A7",keywords:["droplet","water","drip","faucet","spring"],sheet:[25,51],shortName:"droplet"},{name:"Water Wave",unified:"1F30A",keywords:["water_wave","sea","water","wave","nature","tsunami","disaster"],sheet:[5,24],shortName:"ocean"},{name:"Jack-O-Lantern",unified:"1F383",keywords:["jack_o_lantern","halloween","light","pumpkin","creepy","fall"],sheet:[7,27],shortName:"jack_o_lantern"},{name:"Christmas Tree",unified:"1F384",keywords:["christmas_tree","festival","vacation","december","xmas","celebration"],sheet:[7,28],shortName:"christmas_tree"},{name:"Fireworks",unified:"1F386",keywords:["fireworks","photo","festival","carnival","congratulations"],sheet:[7,35],shortName:"fireworks"},{name:"Firework Sparkler",unified:"1F387",keywords:["sparkler","stars","night","shine"],sheet:[7,36],shortName:"sparkler"},{name:"Firecracker",unified:"1F9E8",keywords:["firecracker","dynamite","boom","explode","explosion","explosive"],sheet:[51,51],shortName:"firecracker"},{name:"Sparkles",unified:"2728",keywords:["sparkles","stars","shine","shiny","cool","awesome","good","magic"],sheet:[56,20],shortName:"sparkles"},{name:"Balloon",unified:"1F388",keywords:["balloon","party","celebration","birthday","circus"],sheet:[7,37],shortName:"balloon"},{name:"Party Popper",unified:"1F389",keywords:["party_popper","party","congratulations","birthday","magic","circus","celebration","tada"],sheet:[7,38],shortName:"tada"},{name:"Confetti Ball",unified:"1F38A",keywords:["confetti_ball","festival","party","birthday","circus"],sheet:[7,39],shortName:"confetti_ball"},{name:"Tanabata Tree",unified:"1F38B",keywords:["tanabata_tree","plant","nature","branch","summer"],sheet:[7,40],shortName:"tanabata_tree"},{name:"Pine Decoration",unified:"1F38D",keywords:["pine_decoration","plant","nature","vegetable","panda","pine_decoration"],sheet:[7,42],shortName:"bamboo"},{name:"Japanese Dolls",unified:"1F38E",keywords:["japanese_dolls","japanese","toy","kimono"],sheet:[7,43],shortName:"dolls"},{name:"Carp Streamer",unified:"1F38F",keywords:["carp_streamer","fish","japanese","koinobori","carp","banner"],sheet:[7,44],shortName:"flags"},{name:"Wind Chime",unified:"1F390",keywords:["wind_chime","nature","ding","spring","bell"],sheet:[7,45],shortName:"wind_chime"},{name:"Moon Viewing Ceremony",unified:"1F391",keywords:["moon_viewing_ceremony","photo","japan","asia","tsukimi"],sheet:[7,46],shortName:"rice_scene"},{name:"Red Gift Envelope",unified:"1F9E7",keywords:["red_envelope","gift"],sheet:[51,50],shortName:"red_envelope"},{name:"Ribbon",unified:"1F380",keywords:["ribbon","decoration","pink","girl","bowtie"],sheet:[7,24],shortName:"ribbon"},{name:"Wrapped Present",unified:"1F381",keywords:["wrapped_gift","present","birthday","christmas","xmas"],sheet:[7,25],shortName:"gift"},{name:"Reminder Ribbon",unified:"1F397-FE0F",keywords:["reminder_ribbon","sports","cause","support","awareness"],sheet:[7,50],shortName:"reminder_ribbon"},{name:"Admission Tickets",unified:"1F39F-FE0F",keywords:["admission_tickets","sports","concert","entrance"],sheet:[7,55],shortName:"admission_tickets"},{name:"Ticket",unified:"1F3AB",keywords:["ticket","event","concert","pass"],sheet:[8,9],shortName:"ticket"},{name:"Military Medal",unified:"1F396-FE0F",keywords:["military_medal","award","winning","army"],sheet:[7,49],shortName:"medal"},{name:"Trophy",unified:"1F3C6",keywords:["trophy","win","award","contest","place","ftw","ceremony"],sheet:[9,17],shortName:"trophy"},{name:"Sports Medal",unified:"1F3C5",keywords:["sports_medal","award","winning"],sheet:[9,16],shortName:"sports_medal"},{name:"First Place Medal",unified:"1F947",keywords:["1st_place_medal","award","winning","first"],sheet:[41,30],shortName:"first_place_medal"},{name:"Second Place Medal",unified:"1F948",keywords:["2nd_place_medal","award","second"],sheet:[41,31],shortName:"second_place_medal"},{name:"Third Place Medal",unified:"1F949",keywords:["3rd_place_medal","award","third"],sheet:[41,32],shortName:"third_place_medal"},{name:"Soccer Ball",unified:"26BD",keywords:["soccer_ball","sports","football"],sheet:[55,4],shortName:"soccer"},{name:"Baseball",unified:"26BE",keywords:["baseball","sports","balls"],sheet:[55,5],shortName:"baseball"},{name:"Softball",unified:"1F94E",keywords:["softball","sports","balls"],sheet:[41,37],shortName:"softball"},{name:"Basketball and Hoop",unified:"1F3C0",keywords:["basketball","sports","balls","NBA"],sheet:[8,30],shortName:"basketball"},{name:"Volleyball",unified:"1F3D0",keywords:["volleyball","sports","balls"],sheet:[10,25],shortName:"volleyball"},{name:"American Football",unified:"1F3C8",keywords:["american_football","sports","balls","NFL"],sheet:[9,24],shortName:"football"},{name:"Rugby Football",unified:"1F3C9",keywords:["rugby_football","sports","team"],sheet:[9,25],shortName:"rugby_football"},{name:"Tennis Racquet and Ball",unified:"1F3BE",keywords:["tennis","sports","balls","green"],sheet:[8,28],shortName:"tennis"},{name:"Flying Disc",unified:"1F94F",keywords:["flying_disc","sports","frisbee","ultimate"],sheet:[41,38],shortName:"flying_disc"},{name:"Bowling",unified:"1F3B3",keywords:["bowling","sports","fun","play"],sheet:[8,17],shortName:"bowling"},{name:"Cricket Bat and Ball",unified:"1F3CF",keywords:["cricket_game","sports"],sheet:[10,24],shortName:"cricket_bat_and_ball"},{name:"Field Hockey Stick and Ball",unified:"1F3D1",keywords:["field_hockey","sports"],sheet:[10,26],shortName:"field_hockey_stick_and_ball"},{name:"Ice Hockey Stick and Puck",unified:"1F3D2",keywords:["ice_hockey","sports"],sheet:[10,27],shortName:"ice_hockey_stick_and_puck"},{name:"Lacrosse Stick and Ball",unified:"1F94D",keywords:["lacrosse","sports","ball","stick"],sheet:[41,36],shortName:"lacrosse"},{name:"Table Tennis Paddle and Ball",unified:"1F3D3",keywords:["ping_pong","sports","pingpong"],sheet:[10,28],shortName:"table_tennis_paddle_and_ball"},{name:"Badminton Racquet and Shuttlecock",unified:"1F3F8",keywords:["badminton","sports"],sheet:[11,10],shortName:"badminton_racquet_and_shuttlecock"},{name:"Boxing Glove",unified:"1F94A",keywords:["boxing_glove","sports","fighting"],sheet:[41,33],shortName:"boxing_glove"},{name:"Martial Arts Uniform",unified:"1F94B",keywords:["martial_arts_uniform","judo","karate","taekwondo"],sheet:[41,34],shortName:"martial_arts_uniform"},{name:"Goal Net",unified:"1F945",keywords:["goal_net","sports"],sheet:[41,29],shortName:"goal_net"},{name:"Flag in Hole",unified:"26F3",keywords:["flag_in_hole","sports","business","flag","hole","summer"],sheet:[55,19],shortName:"golf"},{name:"Ice Skate",unified:"26F8-FE0F",keywords:["ice_skate","sports"],sheet:[55,23],shortName:"ice_skate"},{name:"Fishing Pole and Fish",unified:"1F3A3",keywords:["fishing_pole","food","hobby","summer"],sheet:[8,1],shortName:"fishing_pole_and_fish"},{name:"Diving Mask",unified:"1F93F",keywords:["diving_mask","sport","ocean"],sheet:[41,23],shortName:"diving_mask"},{name:"Running Shirt with Sash",unified:"1F3BD",keywords:["running_shirt","play","pageant"],sheet:[8,27],shortName:"running_shirt_with_sash"},{name:"Ski and Ski Boot",unified:"1F3BF",keywords:["skis","sports","winter","cold","snow"],sheet:[8,29],shortName:"ski"},{name:"Sled",unified:"1F6F7",keywords:["sled","sleigh","luge","toboggan"],sheet:[36,49],shortName:"sled"},{name:"Curling Stone",unified:"1F94C",keywords:["curling_stone","sports"],sheet:[41,35],shortName:"curling_stone"},{name:"Direct Hit",unified:"1F3AF",keywords:["direct_hit","game","play","bar","target","bullseye"],sheet:[8,13],shortName:"dart"},{name:"Yo-Yo",unified:"1FA80",keywords:["yo_yo","toy"],sheet:[52,25],shortName:"yo-yo"},{name:"Kite",unified:"1FA81",keywords:["kite","wind","fly"],sheet:[52,26],shortName:"kite"},{name:"Billiards",unified:"1F3B1",keywords:["pool_8_ball","pool","hobby","game","luck","magic"],sheet:[8,15],shortName:"8ball"},{name:"Crystal Ball",unified:"1F52E",keywords:["crystal_ball","disco","party","magic","circus","fortune_teller"],sheet:[28,16],shortName:"crystal_ball"},{name:"Magic Wand",unified:"1FA84",keywords:["magic wand","supernature","power"],sheet:[52,29],shortName:"magic_wand"},{name:"Nazar Amulet",unified:"1F9FF",keywords:["nazar_amulet","bead","charm"],sheet:[52,16],shortName:"nazar_amulet"},{name:"Video Game",unified:"1F3AE",keywords:["video_game","play","console","PS4","controller"],sheet:[8,12],shortName:"video_game"},{name:"Joystick",unified:"1F579-FE0F",keywords:["joystick","game","play"],sheet:[29,34],shortName:"joystick"},{name:"Slot Machine",unified:"1F3B0",keywords:["slot_machine","bet","gamble","vegas","fruit machine","luck","casino"],sheet:[8,14],shortName:"slot_machine"},{name:"Game Die",unified:"1F3B2",keywords:["game_die","dice","random","tabletop","play","luck"],sheet:[8,16],shortName:"game_die"},{name:"Jigsaw Puzzle Piece",unified:"1F9E9",keywords:["puzzle_piece","interlocking","puzzle","piece"],sheet:[51,52],shortName:"jigsaw"},{name:"Teddy Bear",unified:"1F9F8",keywords:["teddy_bear","plush","stuffed"],sheet:[52,9],shortName:"teddy_bear"},{name:"Pinata",unified:"1FA85",keywords:["pinata","mexico","candy","celebration"],sheet:[52,30],shortName:"pinata"},{name:"Nesting Dolls",unified:"1FA86",keywords:["nesting dolls","matryoshka","toy"],sheet:[52,31],shortName:"nesting_dolls"},{name:"Black Spade Suit",unified:"2660-FE0F",keywords:["spade_suit","poker","cards","suits","magic"],sheet:[54,38],shortName:"spades"},{name:"Black Heart Suit",unified:"2665-FE0F",keywords:["heart_suit","poker","cards","magic","suits"],sheet:[54,40],shortName:"hearts"},{name:"Black Diamond Suit",unified:"2666-FE0F",keywords:["diamond_suit","poker","cards","magic","suits"],sheet:[54,41],shortName:"diamonds"},{name:"Black Club Suit",unified:"2663-FE0F",keywords:["club_suit","poker","cards","magic","suits"],sheet:[54,39],shortName:"clubs"},{name:"Chess Pawn",unified:"265F-FE0F",keywords:["chess_pawn","expendable"],sheet:[54,37],shortName:"chess_pawn"},{name:"Playing Card Black Joker",unified:"1F0CF",keywords:["joker","poker","cards","game","play","magic"],sheet:[0,15],shortName:"black_joker"},{name:"Mahjong Tile Red Dragon",unified:"1F004",keywords:["mahjong_red_dragon","game","play","chinese","kanji"],sheet:[0,14],shortName:"mahjong"},{name:"Flower Playing Cards",unified:"1F3B4",keywords:["flower_playing_cards","game","sunset","red"],sheet:[8,18],shortName:"flower_playing_cards"},{name:"Performing Arts",unified:"1F3AD",keywords:["performing_arts","acting","theater","drama"],sheet:[8,11],shortName:"performing_arts"},{name:"Framed Picture",unified:"1F5BC-FE0F",keywords:["framed_picture","photography"],sheet:[30,11],shortName:"frame_with_picture"},{name:"Artist Palette",unified:"1F3A8",keywords:["artist_palette","design","paint","draw","colors"],sheet:[8,6],shortName:"art"},{name:"Spool of Thread",unified:"1F9F5",keywords:["thread","needle","sewing","spool","string"],sheet:[52,6],shortName:"thread"},{name:"Sewing Needle",unified:"1FAA1",keywords:["sewing needle","stitches"],sheet:[52,49],shortName:"sewing_needle"},{name:"Ball of Yarn",unified:"1F9F6",keywords:["yarn","ball","crochet","knit"],sheet:[52,7],shortName:"yarn"},{name:"Knot",unified:"1FAA2",keywords:["knot","rope","scout"],sheet:[52,50],shortName:"knot"},{name:"Eyeglasses",unified:"1F453",keywords:["glasses","fashion","accessories","eyesight","nerdy","dork","geek"],sheet:[13,54],shortName:"eyeglasses"},{name:"Sunglasses",unified:"1F576-FE0F",keywords:["sunglasses","face","cool","accessories"],sheet:[29,31],shortName:"dark_sunglasses"},{name:"Goggles",unified:"1F97D",keywords:["goggles","eyes","protection","safety"],sheet:[42,30],shortName:"goggles"},{name:"Lab Coat",unified:"1F97C",keywords:["lab_coat","doctor","experiment","scientist","chemist"],sheet:[42,29],shortName:"lab_coat"},{name:"Safety Vest",unified:"1F9BA",keywords:["safety_vest","protection"],sheet:[44,15],shortName:"safety_vest"},{name:"Necktie",unified:"1F454",keywords:["necktie","shirt","suitup","formal","fashion","cloth","business"],sheet:[13,55],shortName:"necktie"},{name:"T-Shirt",unified:"1F455",keywords:["t_shirt","fashion","cloth","casual","shirt","tee"],sheet:[13,56],shortNames:["tshirt"],shortName:"shirt"},{name:"Jeans",unified:"1F456",keywords:["jeans","fashion","shopping"],sheet:[13,57],shortName:"jeans"},{name:"Scarf",unified:"1F9E3",keywords:["scarf","neck","winter","clothes"],sheet:[51,46],shortName:"scarf"},{name:"Gloves",unified:"1F9E4",keywords:["gloves","hands","winter","clothes"],sheet:[51,47],shortName:"gloves"},{name:"Coat",unified:"1F9E5",keywords:["coat","jacket"],sheet:[51,48],shortName:"coat"},{name:"Socks",unified:"1F9E6",keywords:["socks","stockings","clothes"],sheet:[51,49],shortName:"socks"},{name:"Dress",unified:"1F457",keywords:["dress","clothes","fashion","shopping"],sheet:[14,0],shortName:"dress"},{name:"Kimono",unified:"1F458",keywords:["kimono","dress","fashion","women","female","japanese"],sheet:[14,1],shortName:"kimono"},{name:"Sari",unified:"1F97B",keywords:["sari","dress"],sheet:[42,28],shortName:"sari"},{name:"One-Piece Swimsuit",unified:"1FA71",keywords:["one_piece_swimsuit","fashion"],sheet:[52,18],shortName:"one-piece_swimsuit"},{name:"Briefs",unified:"1FA72",keywords:["briefs","clothing"],sheet:[52,19],shortName:"briefs"},{name:"Shorts",unified:"1FA73",keywords:["shorts","clothing"],sheet:[52,20],shortName:"shorts"},{name:"Bikini",unified:"1F459",keywords:["bikini","swimming","female","woman","girl","fashion","beach","summer"],sheet:[14,2],shortName:"bikini"},{name:"Womans Clothes",unified:"1F45A",keywords:["woman_s_clothes","fashion","shopping_bags","female"],sheet:[14,3],shortName:"womans_clothes"},{name:"Purse",unified:"1F45B",keywords:["purse","fashion","accessories","money","sales","shopping"],sheet:[14,4],shortName:"purse"},{name:"Handbag",unified:"1F45C",keywords:["handbag","fashion","accessory","accessories","shopping"],sheet:[14,5],shortName:"handbag"},{name:"Pouch",unified:"1F45D",keywords:["clutch_bag","bag","accessories","shopping"],sheet:[14,6],shortName:"pouch"},{name:"Shopping Bags",unified:"1F6CD-FE0F",keywords:["shopping_bags","mall","buy","purchase"],sheet:[36,26],shortName:"shopping_bags"},{name:"School Satchel",unified:"1F392",keywords:["backpack","student","education","bag","backpack"],sheet:[7,47],shortName:"school_satchel"},{name:"Thong Sandal",unified:"1FA74",keywords:["thong sandal","footwear","summer"],sheet:[52,21],shortName:"thong_sandal"},{name:"Mans Shoe",unified:"1F45E",keywords:["man_s_shoe","fashion","male"],sheet:[14,7],shortNames:["shoe"],shortName:"mans_shoe"},{name:"Athletic Shoe",unified:"1F45F",keywords:["running_shoe","shoes","sports","sneakers"],sheet:[14,8],shortName:"athletic_shoe"},{name:"Hiking Boot",unified:"1F97E",keywords:["hiking_boot","backpacking","camping","hiking"],sheet:[42,31],shortName:"hiking_boot"},{name:"Flat Shoe",unified:"1F97F",keywords:["flat_shoe","ballet","slip-on","slipper"],sheet:[42,32],shortName:"womans_flat_shoe"},{name:"High-Heeled Shoe",unified:"1F460",keywords:["high_heeled_shoe","fashion","shoes","female","pumps","stiletto"],sheet:[14,9],shortName:"high_heel"},{name:"Womans Sandal",unified:"1F461",keywords:["woman_s_sandal","shoes","fashion","flip flops"],sheet:[14,10],shortName:"sandal"},{name:"Ballet Shoes",unified:"1FA70",keywords:["ballet_shoes","dance"],sheet:[52,17],shortName:"ballet_shoes"},{name:"Womans Boots",unified:"1F462",keywords:["woman_s_boot","shoes","fashion"],sheet:[14,11],shortName:"boot"},{name:"Crown",unified:"1F451",keywords:["crown","king","kod","leader","royalty","lord"],sheet:[13,52],shortName:"crown"},{name:"Womans Hat",unified:"1F452",keywords:["woman_s_hat","fashion","accessories","female","lady","spring"],sheet:[13,53],shortName:"womans_hat"},{name:"Top Hat",unified:"1F3A9",keywords:["top_hat","magic","gentleman","classy","circus"],sheet:[8,7],shortName:"tophat"},{name:"Graduation Cap",unified:"1F393",keywords:["graduation_cap","school","college","degree","university","graduation","cap","hat","legal","learn","education"],sheet:[7,48],shortName:"mortar_board"},{name:"Billed Cap",unified:"1F9E2",keywords:["billed_cap","cap","baseball"],sheet:[51,45],shortName:"billed_cap"},{name:"Military Helmet",unified:"1FA96",keywords:["military helmet","army","protection"],sheet:[52,38],shortName:"military_helmet"},{name:"Rescue Worker\u2019s Helmet",unified:"26D1-FE0F",keywords:["rescue_worker_s_helmet","construction","build"],sheet:[55,11],shortName:"helmet_with_white_cross"},{name:"Prayer Beads",unified:"1F4FF",keywords:["prayer_beads","dhikr","religious"],sheet:[27,27],shortName:"prayer_beads"},{name:"Lipstick",unified:"1F484",keywords:["lipstick","female","girl","fashion","woman"],sheet:[24,35],shortName:"lipstick"},{name:"Ring",unified:"1F48D",keywords:["ring","wedding","propose","marriage","valentines","diamond","fashion","jewelry","gem","engagement"],sheet:[25,25],shortName:"ring"},{name:"Gem Stone",unified:"1F48E",keywords:["gem_stone","blue","ruby","diamond","jewelry"],sheet:[25,26],shortName:"gem"},{name:"Speaker with Cancellation Stroke",unified:"1F507",keywords:["muted_speaker","sound","volume","silence","quiet"],sheet:[27,35],shortName:"mute"},{name:"Speaker",unified:"1F508",keywords:["speaker_low_volume","sound","volume","silence","broadcast"],sheet:[27,36],shortName:"speaker"},{name:"Speaker with One Sound Wave",unified:"1F509",keywords:["speaker_medium_volume","volume","speaker","broadcast"],sheet:[27,37],shortName:"sound"},{name:"Speaker with Three Sound Waves",unified:"1F50A",keywords:["speaker_high_volume","volume","noise","noisy","speaker","broadcast"],sheet:[27,38],shortName:"loud_sound"},{name:"Public Address Loudspeaker",unified:"1F4E2",keywords:["loudspeaker","volume","sound"],sheet:[26,57],shortName:"loudspeaker"},{name:"Cheering Megaphone",unified:"1F4E3",keywords:["megaphone","sound","speaker","volume"],sheet:[27,0],shortName:"mega"},{name:"Postal Horn",unified:"1F4EF",keywords:["postal_horn","instrument","music"],sheet:[27,12],shortName:"postal_horn"},{name:"Bell",unified:"1F514",keywords:["bell","sound","notification","christmas","xmas","chime"],sheet:[27,48],shortName:"bell"},{name:"Bell with Cancellation Stroke",unified:"1F515",keywords:["bell_with_slash","sound","volume","mute","quiet","silent"],sheet:[27,49],shortName:"no_bell"},{name:"Musical Score",unified:"1F3BC",keywords:["musical_score","treble","clef","compose"],sheet:[8,26],shortName:"musical_score"},{name:"Musical Note",unified:"1F3B5",keywords:["musical_note","score","tone","sound"],sheet:[8,19],shortName:"musical_note"},{name:"Multiple Musical Notes",unified:"1F3B6",keywords:["musical_notes","music","score"],sheet:[8,20],shortName:"notes"},{name:"Studio Microphone",unified:"1F399-FE0F",keywords:["studio_microphone","sing","recording","artist","talkshow"],sheet:[7,51],shortName:"studio_microphone"},{name:"Level Slider",unified:"1F39A-FE0F",keywords:["level_slider","scale"],sheet:[7,52],shortName:"level_slider"},{name:"Control Knobs",unified:"1F39B-FE0F",keywords:["control_knobs","dial"],sheet:[7,53],shortName:"control_knobs"},{name:"Microphone",unified:"1F3A4",keywords:["microphone","sound","music","PA","sing","talkshow"],sheet:[8,2],shortName:"microphone"},{name:"Headphone",unified:"1F3A7",keywords:["headphone","music","score","gadgets"],sheet:[8,5],shortName:"headphones"},{name:"Radio",unified:"1F4FB",keywords:["radio","communication","music","podcast","program"],sheet:[27,24],shortName:"radio"},{name:"Saxophone",unified:"1F3B7",keywords:["saxophone","music","instrument","jazz","blues"],sheet:[8,21],shortName:"saxophone"},{name:"Accordion",unified:"1FA97",keywords:["accordion","music"],sheet:[52,39],shortName:"accordion"},{name:"Guitar",unified:"1F3B8",keywords:["guitar","music","instrument"],sheet:[8,22],shortName:"guitar"},{name:"Musical Keyboard",unified:"1F3B9",keywords:["musical_keyboard","piano","instrument","compose"],sheet:[8,23],shortName:"musical_keyboard"},{name:"Trumpet",unified:"1F3BA",keywords:["trumpet","music","brass"],sheet:[8,24],shortName:"trumpet"},{name:"Violin",unified:"1F3BB",keywords:["violin","music","instrument","orchestra","symphony"],sheet:[8,25],shortName:"violin"},{name:"Banjo",unified:"1FA95",keywords:["banjo","music","instructment"],sheet:[52,37],shortName:"banjo"},{name:"Drum with Drumsticks",unified:"1F941",keywords:["drum","music","instrument","drumsticks","snare"],sheet:[41,25],shortName:"drum_with_drumsticks"},{name:"Long Drum",unified:"1FA98",keywords:["long drum","music"],sheet:[52,40],shortName:"long_drum"},{name:"Mobile Phone",unified:"1F4F1",keywords:["mobile_phone","technology","apple","gadgets","dial"],sheet:[27,14],shortName:"iphone"},{name:"Mobile Phone with Rightwards Arrow at Left",unified:"1F4F2",keywords:["mobile_phone_with_arrow","iphone","incoming"],sheet:[27,15],shortName:"calling"},{name:"Black Telephone",unified:"260E-FE0F",keywords:["telephone","technology","communication","dial","telephone"],sheet:[54,2],shortNames:["telephone"],shortName:"phone"},{name:"Telephone Receiver",unified:"1F4DE",keywords:["telephone_receiver","technology","communication","dial"],sheet:[26,53],shortName:"telephone_receiver"},{name:"Pager",unified:"1F4DF",keywords:["pager","bbcall","oldschool","90s"],sheet:[26,54],shortName:"pager"},{name:"Fax Machine",unified:"1F4E0",keywords:["fax_machine","communication","technology"],sheet:[26,55],shortName:"fax"},{name:"Battery",unified:"1F50B",keywords:["battery","power","energy","sustain"],sheet:[27,39],shortName:"battery"},{name:"Electric Plug",unified:"1F50C",keywords:["electric_plug","charger","power"],sheet:[27,40],shortName:"electric_plug"},{name:"Personal Computer",unified:"1F4BB",keywords:["laptop","technology","laptop","screen","display","monitor"],sheet:[26,18],shortName:"computer"},{name:"Desktop Computer",unified:"1F5A5-FE0F",keywords:["desktop_computer","technology","computing","screen"],sheet:[30,7],shortName:"desktop_computer"},{name:"Printer",unified:"1F5A8-FE0F",keywords:["printer","paper","ink"],sheet:[30,8],shortName:"printer"},{name:"Keyboard",unified:"2328-FE0F",keywords:["keyboard","technology","computer","type","input","text"],sheet:[53,30],shortName:"keyboard"},{name:"Computer Mouse",unified:"1F5B1-FE0F",keywords:["computer_mouse","click"],sheet:[30,9],shortName:"three_button_mouse"},{name:"Trackball",unified:"1F5B2-FE0F",keywords:["trackball","technology","trackpad"],sheet:[30,10],shortName:"trackball"},{name:"Minidisc",unified:"1F4BD",keywords:["computer_disk","technology","record","data","disk","90s"],sheet:[26,20],shortName:"minidisc"},{name:"Floppy Disk",unified:"1F4BE",keywords:["floppy_disk","oldschool","technology","save","90s","80s"],sheet:[26,21],shortName:"floppy_disk"},{name:"Optical Disc",unified:"1F4BF",keywords:["optical_disk","technology","dvd","disk","disc","90s"],sheet:[26,22],shortName:"cd"},{name:"Dvd",unified:"1F4C0",keywords:["dvd","cd","disk","disc"],sheet:[26,23],shortName:"dvd"},{name:"Abacus",unified:"1F9EE",keywords:["abacus","calculation"],sheet:[51,57],shortName:"abacus"},{name:"Movie Camera",unified:"1F3A5",keywords:["movie_camera","film","record"],sheet:[8,3],shortName:"movie_camera"},{name:"Film Frames",unified:"1F39E-FE0F",keywords:["film_frames","movie"],sheet:[7,54],shortName:"film_frames"},{name:"Film Projector",unified:"1F4FD-FE0F",keywords:["film_projector","video","tape","record","movie"],sheet:[27,26],shortName:"film_projector"},{name:"Clapper Board",unified:"1F3AC",keywords:["clapper_board","movie","film","record"],sheet:[8,10],shortName:"clapper"},{name:"Television",unified:"1F4FA",keywords:["television","technology","program","oldschool","show","television"],sheet:[27,23],shortName:"tv"},{name:"Camera",unified:"1F4F7",keywords:["camera","gadgets","photography"],sheet:[27,20],shortName:"camera"},{name:"Camera with Flash",unified:"1F4F8",keywords:["camera_with_flash","photography","gadgets"],sheet:[27,21],shortName:"camera_with_flash"},{name:"Video Camera",unified:"1F4F9",keywords:["video_camera","film","record"],sheet:[27,22],shortName:"video_camera"},{name:"Videocassette",unified:"1F4FC",keywords:["videocassette","record","video","oldschool","90s","80s"],sheet:[27,25],shortName:"vhs"},{name:"Left-Pointing Magnifying Glass",unified:"1F50D",keywords:["magnifying_glass_tilted_left","search","zoom","find","detective"],sheet:[27,41],shortName:"mag"},{name:"Right-Pointing Magnifying Glass",unified:"1F50E",keywords:["magnifying_glass_tilted_right","search","zoom","find","detective"],sheet:[27,42],shortName:"mag_right"},{name:"Candle",unified:"1F56F-FE0F",keywords:["candle","fire","wax"],sheet:[29,4],shortName:"candle"},{name:"Electric Light Bulb",unified:"1F4A1",keywords:["light_bulb","light","electricity","idea"],sheet:[25,45],shortName:"bulb"},{name:"Electric Torch",unified:"1F526",keywords:["flashlight","dark","camping","sight","night"],sheet:[28,8],shortName:"flashlight"},{name:"Izakaya Lantern",unified:"1F3EE",keywords:["red_paper_lantern","light","paper","halloween","spooky"],sheet:[10,55],shortNames:["lantern"],shortName:"izakaya_lantern"},{name:"Diya Lamp",unified:"1FA94",keywords:["diya_lamp","lighting"],sheet:[52,36],shortName:"diya_lamp"},{name:"Notebook with Decorative Cover",unified:"1F4D4",keywords:["notebook_with_decorative_cover","classroom","notes","record","paper","study"],sheet:[26,43],shortName:"notebook_with_decorative_cover"},{name:"Closed Book",unified:"1F4D5",keywords:["closed_book","read","library","knowledge","textbook","learn"],sheet:[26,44],shortName:"closed_book"},{name:"Open Book",unified:"1F4D6",keywords:["open_book","book","read","library","knowledge","literature","learn","study"],sheet:[26,45],shortNames:["open_book"],shortName:"book"},{name:"Green Book",unified:"1F4D7",keywords:["green_book","read","library","knowledge","study"],sheet:[26,46],shortName:"green_book"},{name:"Blue Book",unified:"1F4D8",keywords:["blue_book","read","library","knowledge","learn","study"],sheet:[26,47],shortName:"blue_book"},{name:"Orange Book",unified:"1F4D9",keywords:["orange_book","read","library","knowledge","textbook","study"],sheet:[26,48],shortName:"orange_book"},{name:"Books",unified:"1F4DA",keywords:["books","literature","library","study"],sheet:[26,49],shortName:"books"},{name:"Notebook",unified:"1F4D3",keywords:["notebook","stationery","record","notes","paper","study"],sheet:[26,42],shortName:"notebook"},{name:"Ledger",unified:"1F4D2",keywords:["ledger","notes","paper"],sheet:[26,41],shortName:"ledger"},{name:"Page with Curl",unified:"1F4C3",keywords:["page_with_curl","documents","office","paper"],sheet:[26,26],shortName:"page_with_curl"},{name:"Scroll",unified:"1F4DC",keywords:["scroll","documents","ancient","history","paper"],sheet:[26,51],shortName:"scroll"},{name:"Page Facing Up",unified:"1F4C4",keywords:["page_facing_up","documents","office","paper","information"],sheet:[26,27],shortName:"page_facing_up"},{name:"Newspaper",unified:"1F4F0",keywords:["newspaper","press","headline"],sheet:[27,13],shortName:"newspaper"},{name:"Rolled-Up Newspaper",unified:"1F5DE-FE0F",keywords:["rolled_up_newspaper","press","headline"],sheet:[30,20],shortName:"rolled_up_newspaper"},{name:"Bookmark Tabs",unified:"1F4D1",keywords:["bookmark_tabs","favorite","save","order","tidy"],sheet:[26,40],shortName:"bookmark_tabs"},{name:"Bookmark",unified:"1F516",keywords:["bookmark","favorite","label","save"],sheet:[27,50],shortName:"bookmark"},{name:"Label",unified:"1F3F7-FE0F",keywords:["label","sale","tag"],sheet:[11,9],shortName:"label"},{name:"Money Bag",unified:"1F4B0",keywords:["money_bag","dollar","payment","coins","sale"],sheet:[26,7],shortName:"moneybag"},{name:"Coin",unified:"1FA99",keywords:["coin","money","currency"],sheet:[52,41],shortName:"coin"},{name:"Banknote with Yen Sign",unified:"1F4B4",keywords:["yen_banknote","money","sales","japanese","dollar","currency"],sheet:[26,11],shortName:"yen"},{name:"Banknote with Dollar Sign",unified:"1F4B5",keywords:["dollar_banknote","money","sales","bill","currency"],sheet:[26,12],shortName:"dollar"},{name:"Banknote with Euro Sign",unified:"1F4B6",keywords:["euro_banknote","money","sales","dollar","currency"],sheet:[26,13],shortName:"euro"},{name:"Banknote with Pound Sign",unified:"1F4B7",keywords:["pound_banknote","british","sterling","money","sales","bills","uk","england","currency"],sheet:[26,14],shortName:"pound"},{name:"Money with Wings",unified:"1F4B8",keywords:["money_with_wings","dollar","bills","payment","sale"],sheet:[26,15],shortName:"money_with_wings"},{name:"Credit Card",unified:"1F4B3",keywords:["credit_card","money","sales","dollar","bill","payment","shopping"],sheet:[26,10],shortName:"credit_card"},{name:"Receipt",unified:"1F9FE",keywords:["receipt","accounting","expenses"],sheet:[52,15],shortName:"receipt"},{name:"Chart with Upwards Trend and Yen Sign",unified:"1F4B9",keywords:["chart_increasing_with_yen","green-square","graph","presentation","stats"],sheet:[26,16],shortName:"chart"},{name:"Envelope",unified:"2709-FE0F",keywords:["envelope","letter","postal","inbox","communication"],sheet:[55,47],shortNames:["envelope"],shortName:"email"},{name:"E-Mail Symbol",unified:"1F4E7",keywords:["e_mail","communication","inbox"],sheet:[27,4],shortName:"e-mail"},{name:"Incoming Envelope",unified:"1F4E8",keywords:["incoming_envelope","email","inbox"],sheet:[27,5],shortName:"incoming_envelope"},{name:"Envelope with Downwards Arrow Above",unified:"1F4E9",keywords:["envelope_with_arrow","email","communication"],sheet:[27,6],shortName:"envelope_with_arrow"},{name:"Outbox Tray",unified:"1F4E4",keywords:["outbox_tray","inbox","email"],sheet:[27,1],shortName:"outbox_tray"},{name:"Inbox Tray",unified:"1F4E5",keywords:["inbox_tray","email","documents"],sheet:[27,2],shortName:"inbox_tray"},{name:"Package",unified:"1F4E6",keywords:["package","mail","gift","cardboard","box","moving"],sheet:[27,3],shortName:"package"},{name:"Closed Mailbox with Raised Flag",unified:"1F4EB",keywords:["closed_mailbox_with_raised_flag","email","inbox","communication"],sheet:[27,8],shortName:"mailbox"},{name:"Closed Mailbox with Lowered Flag",unified:"1F4EA",keywords:["closed_mailbox_with_lowered_flag","email","communication","inbox"],sheet:[27,7],shortName:"mailbox_closed"},{name:"Open Mailbox with Raised Flag",unified:"1F4EC",keywords:["open_mailbox_with_raised_flag","email","inbox","communication"],sheet:[27,9],shortName:"mailbox_with_mail"},{name:"Open Mailbox with Lowered Flag",unified:"1F4ED",keywords:["open_mailbox_with_lowered_flag","email","inbox"],sheet:[27,10],shortName:"mailbox_with_no_mail"},{name:"Postbox",unified:"1F4EE",keywords:["postbox","email","letter","envelope"],sheet:[27,11],shortName:"postbox"},{name:"Ballot Box with Ballot",unified:"1F5F3-FE0F",keywords:["ballot_box_with_ballot","election","vote"],sheet:[30,25],shortName:"ballot_box_with_ballot"},{name:"Pencil",unified:"270F-FE0F",keywords:["pencil","stationery","write","paper","writing","school","study"],sheet:[56,14],shortName:"pencil2"},{name:"Black Nib",unified:"2712-FE0F",keywords:["black_nib","pen","stationery","writing","write"],sheet:[56,15],shortName:"black_nib"},{name:"Fountain Pen",unified:"1F58B-FE0F",keywords:["fountain_pen","stationery","writing","write"],sheet:[29,43],shortName:"lower_left_fountain_pen"},{name:"Pen",unified:"1F58A-FE0F",keywords:["pen","stationery","writing","write"],sheet:[29,42],shortName:"lower_left_ballpoint_pen"},{name:"Paintbrush",unified:"1F58C-FE0F",keywords:["paintbrush","drawing","creativity","art"],sheet:[29,44],shortName:"lower_left_paintbrush"},{name:"Crayon",unified:"1F58D-FE0F",keywords:["crayon","drawing","creativity"],sheet:[29,45],shortName:"lower_left_crayon"},{name:"Memo",unified:"1F4DD",keywords:["memo","write","documents","stationery","pencil","paper","writing","legal","exam","quiz","test","study","compose"],sheet:[26,52],shortNames:["pencil"],shortName:"memo"},{name:"Briefcase",unified:"1F4BC",keywords:["briefcase","business","documents","work","law","legal","job","career"],sheet:[26,19],shortName:"briefcase"},{name:"File Folder",unified:"1F4C1",keywords:["file_folder","documents","business","office"],sheet:[26,24],shortName:"file_folder"},{name:"Open File Folder",unified:"1F4C2",keywords:["open_file_folder","documents","load"],sheet:[26,25],shortName:"open_file_folder"},{name:"Card Index Dividers",unified:"1F5C2-FE0F",keywords:["card_index_dividers","organizing","business","stationery"],sheet:[30,12],shortName:"card_index_dividers"},{name:"Calendar",unified:"1F4C5",keywords:["calendar","calendar","schedule"],sheet:[26,28],shortName:"date"},{name:"Tear-off Calendar",unified:"1F4C6",keywords:["tear_off_calendar","schedule","date","planning"],sheet:[26,29],shortName:"calendar"},{name:"Spiral Notepad",unified:"1F5D2-FE0F",keywords:["spiral_notepad","memo","stationery"],sheet:[30,16],shortName:"spiral_note_pad"},{name:"Spiral Calendar",unified:"1F5D3-FE0F",keywords:["spiral_calendar","date","schedule","planning"],sheet:[30,17],shortName:"spiral_calendar_pad"},{name:"Card Index",unified:"1F4C7",keywords:["card_index","business","stationery"],sheet:[26,30],shortName:"card_index"},{name:"Chart with Upwards Trend",unified:"1F4C8",keywords:["chart_increasing","graph","presentation","stats","recovery","business","economics","money","sales","good","success"],sheet:[26,31],shortName:"chart_with_upwards_trend"},{name:"Chart with Downwards Trend",unified:"1F4C9",keywords:["chart_decreasing","graph","presentation","stats","recession","business","economics","money","sales","bad","failure"],sheet:[26,32],shortName:"chart_with_downwards_trend"},{name:"Bar Chart",unified:"1F4CA",keywords:["bar_chart","graph","presentation","stats"],sheet:[26,33],shortName:"bar_chart"},{name:"Clipboard",unified:"1F4CB",keywords:["clipboard","stationery","documents"],sheet:[26,34],shortName:"clipboard"},{name:"Pushpin",unified:"1F4CC",keywords:["pushpin","stationery","mark","here"],sheet:[26,35],shortName:"pushpin"},{name:"Round Pushpin",unified:"1F4CD",keywords:["round_pushpin","stationery","location","map","here"],sheet:[26,36],shortName:"round_pushpin"},{name:"Paperclip",unified:"1F4CE",keywords:["paperclip","documents","stationery"],sheet:[26,37],shortName:"paperclip"},{name:"Linked Paperclips",unified:"1F587-FE0F",keywords:["linked_paperclips","documents","stationery"],sheet:[29,41],shortName:"linked_paperclips"},{name:"Straight Ruler",unified:"1F4CF",keywords:["straight_ruler","stationery","calculate","length","math","school","drawing","architect","sketch"],sheet:[26,38],shortName:"straight_ruler"},{name:"Triangular Ruler",unified:"1F4D0",keywords:["triangular_ruler","stationery","math","architect","sketch"],sheet:[26,39],shortName:"triangular_ruler"},{name:"Black Scissors",unified:"2702-FE0F",keywords:["scissors","stationery","cut"],sheet:[55,44],shortName:"scissors"},{name:"Card File Box",unified:"1F5C3-FE0F",keywords:["card_file_box","business","stationery"],sheet:[30,13],shortName:"card_file_box"},{name:"File Cabinet",unified:"1F5C4-FE0F",keywords:["file_cabinet","filing","organizing"],sheet:[30,14],shortName:"file_cabinet"},{name:"Wastebasket",unified:"1F5D1-FE0F",keywords:["wastebasket","bin","trash","rubbish","garbage","toss"],sheet:[30,15],shortName:"wastebasket"},{name:"Lock",unified:"1F512",keywords:["locked","security","password","padlock"],sheet:[27,46],shortName:"lock"},{name:"Open Lock",unified:"1F513",keywords:["unlocked","privacy","security"],sheet:[27,47],shortName:"unlock"},{name:"Lock with Ink Pen",unified:"1F50F",keywords:["locked_with_pen","security","secret"],sheet:[27,43],shortName:"lock_with_ink_pen"},{name:"Closed Lock with Key",unified:"1F510",keywords:["locked_with_key","security","privacy"],sheet:[27,44],shortName:"closed_lock_with_key"},{name:"Key",unified:"1F511",keywords:["key","lock","door","password"],sheet:[27,45],shortName:"key"},{name:"Old Key",unified:"1F5DD-FE0F",keywords:["old_key","lock","door","password"],sheet:[30,19],shortName:"old_key"},{name:"Hammer",unified:"1F528",keywords:["hammer","tools","build","create"],sheet:[28,10],shortName:"hammer"},{name:"Axe",unified:"1FA93",keywords:["axe","tool","chop","cut"],sheet:[52,35],shortName:"axe"},{name:"Pick",unified:"26CF-FE0F",keywords:["pick","tools","dig"],sheet:[55,10],shortName:"pick"},{name:"Hammer and Pick",unified:"2692-FE0F",keywords:["hammer_and_pick","tools","build","create"],sheet:[54,46],shortName:"hammer_and_pick"},{name:"Hammer and Wrench",unified:"1F6E0-FE0F",keywords:["hammer_and_wrench","tools","build","create"],sheet:[36,35],shortName:"hammer_and_wrench"},{name:"Dagger",unified:"1F5E1-FE0F",keywords:["dagger","weapon"],sheet:[30,21],shortName:"dagger_knife"},{name:"Crossed Swords",unified:"2694-FE0F",keywords:["crossed_swords","weapon"],sheet:[54,48],shortName:"crossed_swords"},{name:"Pistol",unified:"1F52B",keywords:["pistol","violence","weapon","pistol","revolver"],sheet:[28,13],shortName:"gun"},{name:"Boomerang",unified:"1FA83",keywords:["boomerang","weapon"],sheet:[52,28],shortName:"boomerang"},{name:"Bow and Arrow",unified:"1F3F9",keywords:["bow_and_arrow","sports"],sheet:[11,11],shortName:"bow_and_arrow"},{name:"Shield",unified:"1F6E1-FE0F",keywords:["shield","protection","security"],sheet:[36,36],shortName:"shield"},{name:"Carpentry Saw",unified:"1FA9A",keywords:["carpentry saw","cut","chop"],sheet:[52,42],shortName:"carpentry_saw"},{name:"Wrench",unified:"1F527",keywords:["wrench","tools","diy","ikea","fix","maintainer"],sheet:[28,9],shortName:"wrench"},{name:"Screwdriver",unified:"1FA9B",keywords:["screwdriver","tools"],sheet:[52,43],shortName:"screwdriver"},{name:"Nut and Bolt",unified:"1F529",keywords:["nut_and_bolt","handy","tools","fix"],sheet:[28,11],shortName:"nut_and_bolt"},{name:"Gear",unified:"2699-FE0F",keywords:["gear","cog"],sheet:[54,52],shortName:"gear"},{name:"Clamp",unified:"1F5DC-FE0F",keywords:["clamp","tool"],sheet:[30,18],shortName:"compression"},{name:"Balance Scale",unified:"2696-FE0F",keywords:["balance_scale","law","fairness","weight"],sheet:[54,50],shortName:"scales"},{name:"Probing Cane",unified:"1F9AF",keywords:["probing_cane","accessibility"],sheet:[43,22],shortName:"probing_cane"},{name:"Link Symbol",unified:"1F517",keywords:["link","rings","url"],sheet:[27,51],shortName:"link"},{name:"Chains",unified:"26D3-FE0F",keywords:["chains","lock","arrest"],sheet:[55,12],shortName:"chains"},{name:"Hook",unified:"1FA9D",keywords:["hook","tools"],sheet:[52,45],shortName:"hook"},{name:"Toolbox",unified:"1F9F0",keywords:["toolbox","tools","diy","fix","maintainer","mechanic"],sheet:[52,1],shortName:"toolbox"},{name:"Magnet",unified:"1F9F2",keywords:["magnet","attraction","magnetic"],sheet:[52,3],shortName:"magnet"},{name:"Ladder",unified:"1FA9C",keywords:["ladder","tools"],sheet:[52,44],shortName:"ladder"},{name:"Alembic",unified:"2697-FE0F",keywords:["alembic","distilling","science","experiment","chemistry"],sheet:[54,51],shortName:"alembic"},{name:"Test Tube",unified:"1F9EA",keywords:["test_tube","chemistry","experiment","lab","science"],sheet:[51,53],shortName:"test_tube"},{name:"Petri Dish",unified:"1F9EB",keywords:["petri_dish","bacteria","biology","culture","lab"],sheet:[51,54],shortName:"petri_dish"},{name:"Dna Double Helix",unified:"1F9EC",keywords:["dna","biologist","genetics","life"],sheet:[51,55],shortName:"dna"},{name:"Microscope",unified:"1F52C",keywords:["microscope","laboratory","experiment","zoomin","science","study"],sheet:[28,14],shortName:"microscope"},{name:"Telescope",unified:"1F52D",keywords:["telescope","stars","space","zoom","science","astronomy"],sheet:[28,15],shortName:"telescope"},{name:"Satellite Antenna",unified:"1F4E1",keywords:["satellite_antenna","communication","future","radio","space"],sheet:[26,56],shortName:"satellite_antenna"},{name:"Syringe",unified:"1F489",keywords:["syringe","health","hospital","drugs","blood","medicine","needle","doctor","nurse"],sheet:[25,21],shortName:"syringe"},{name:"Drop of Blood",unified:"1FA78",keywords:["drop_of_blood","period","hurt","harm","wound"],sheet:[52,22],shortName:"drop_of_blood"},{name:"Pill",unified:"1F48A",keywords:["pill","health","medicine","doctor","pharmacy","drug"],sheet:[25,22],shortName:"pill"},{name:"Adhesive Bandage",unified:"1FA79",keywords:["adhesive_bandage","heal"],sheet:[52,23],shortName:"adhesive_bandage"},{name:"Stethoscope",unified:"1FA7A",keywords:["stethoscope","health"],sheet:[52,24],shortName:"stethoscope"},{name:"Door",unified:"1F6AA",keywords:["door","house","entry","exit"],sheet:[34,51],shortName:"door"},{name:"Elevator",unified:"1F6D7",keywords:["elevator","lift"],sheet:[36,34],shortName:"elevator"},{name:"Mirror",unified:"1FA9E",keywords:["mirror","reflection"],sheet:[52,46],shortName:"mirror"},{name:"Window",unified:"1FA9F",keywords:["window","scenery"],sheet:[52,47],shortName:"window"},{name:"Bed",unified:"1F6CF-FE0F",keywords:["bed","sleep","rest"],sheet:[36,28],shortName:"bed"},{name:"Couch and Lamp",unified:"1F6CB-FE0F",keywords:["couch_and_lamp","read","chill"],sheet:[36,19],shortName:"couch_and_lamp"},{name:"Chair",unified:"1FA91",keywords:["chair","sit","furniture"],sheet:[52,33],shortName:"chair"},{name:"Toilet",unified:"1F6BD",keywords:["toilet","restroom","wc","washroom","bathroom","potty"],sheet:[36,5],shortName:"toilet"},{name:"Plunger",unified:"1FAA0",keywords:["plunger","toilet"],sheet:[52,48],shortName:"plunger"},{name:"Shower",unified:"1F6BF",keywords:["shower","clean","water","bathroom"],sheet:[36,7],shortName:"shower"},{name:"Bathtub",unified:"1F6C1",keywords:["bathtub","clean","shower","bathroom"],sheet:[36,14],shortName:"bathtub"},{name:"Mouse Trap",unified:"1FAA4",keywords:["mouse trap","cheese"],sheet:[52,52],shortName:"mouse_trap"},{name:"Razor",unified:"1FA92",keywords:["razor","cut"],sheet:[52,34],shortName:"razor"},{name:"Lotion Bottle",unified:"1F9F4",keywords:["lotion_bottle","moisturizer","sunscreen"],sheet:[52,5],shortName:"lotion_bottle"},{name:"Safety Pin",unified:"1F9F7",keywords:["safety_pin","diaper"],sheet:[52,8],shortName:"safety_pin"},{name:"Broom",unified:"1F9F9",keywords:["broom","cleaning","sweeping","witch"],sheet:[52,10],shortName:"broom"},{name:"Basket",unified:"1F9FA",keywords:["basket","laundry"],sheet:[52,11],shortName:"basket"},{name:"Roll of Paper",unified:"1F9FB",keywords:["roll_of_paper","roll"],sheet:[52,12],shortName:"roll_of_paper"},{name:"Bucket",unified:"1FAA3",keywords:["bucket","water","container"],sheet:[52,51],shortName:"bucket"},{name:"Bar of Soap",unified:"1F9FC",keywords:["soap","bar","bathing","cleaning","lather"],sheet:[52,13],shortName:"soap"},{name:"Toothbrush",unified:"1FAA5",keywords:["toothbrush","hygiene","dental"],sheet:[52,53],shortName:"toothbrush"},{name:"Sponge",unified:"1F9FD",keywords:["sponge","absorbing","cleaning","porous"],sheet:[52,14],shortName:"sponge"},{name:"Fire Extinguisher",unified:"1F9EF",keywords:["fire_extinguisher","quench"],sheet:[52,0],shortName:"fire_extinguisher"},{name:"Shopping Trolley",unified:"1F6D2",keywords:["shopping_cart","trolley"],sheet:[36,31],shortName:"shopping_trolley"},{name:"Smoking Symbol",unified:"1F6AC",keywords:["cigarette","kills","tobacco","cigarette","joint","smoke"],sheet:[34,53],shortName:"smoking"},{name:"Coffin",unified:"26B0-FE0F",keywords:["coffin","vampire","dead","die","death","rip","graveyard","cemetery","casket","funeral","box"],sheet:[55,2],shortName:"coffin"},{name:"Headstone",unified:"1FAA6",keywords:["headstone","death","rip","grave"],sheet:[52,54],shortName:"headstone"},{name:"Funeral Urn",unified:"26B1-FE0F",keywords:["funeral_urn","dead","die","death","rip","ashes"],sheet:[55,3],shortName:"funeral_urn"},{name:"Moyai",unified:"1F5FF",keywords:["moai","rock","easter island","moai"],sheet:[30,31],shortName:"moyai"},{name:"Placard",unified:"1FAA7",keywords:["placard","announcement"],sheet:[52,55],shortName:"placard"},{name:"Automated Teller Machine",unified:"1F3E7",keywords:["atm_sign","money","sales","cash","blue-square","payment","bank"],sheet:[10,48],shortName:"atm"},{name:"Put Litter in Its Place Symbol",unified:"1F6AE",keywords:["litter_in_bin_sign","blue-square","sign","human","info"],sheet:[34,55],shortName:"put_litter_in_its_place"},{name:"Potable Water Symbol",unified:"1F6B0",keywords:["potable_water","blue-square","liquid","restroom","cleaning","faucet"],sheet:[34,57],shortName:"potable_water"},{name:"Wheelchair Symbol",unified:"267F",keywords:["wheelchair_symbol","blue-square","disabled","accessibility"],sheet:[54,45],shortName:"wheelchair"},{name:"Mens Symbol",unified:"1F6B9",keywords:["men_s_room","toilet","restroom","wc","blue-square","gender","male"],sheet:[36,1],shortName:"mens"},{name:"Womens Symbol",unified:"1F6BA",keywords:["women_s_room","purple-square","woman","female","toilet","loo","restroom","gender"],sheet:[36,2],shortName:"womens"},{name:"Restroom",unified:"1F6BB",keywords:["restroom","blue-square","toilet","refresh","wc","gender"],sheet:[36,3],shortName:"restroom"},{name:"Baby Symbol",unified:"1F6BC",keywords:["baby_symbol","orange-square","child"],sheet:[36,4],shortName:"baby_symbol"},{name:"Water Closet",unified:"1F6BE",keywords:["water_closet","toilet","restroom","blue-square"],sheet:[36,6],shortName:"wc"},{name:"Passport Control",unified:"1F6C2",keywords:["passport_control","custom","blue-square"],sheet:[36,15],shortName:"passport_control"},{name:"Customs",unified:"1F6C3",keywords:["customs","passport","border","blue-square"],sheet:[36,16],shortName:"customs"},{name:"Baggage Claim",unified:"1F6C4",keywords:["baggage_claim","blue-square","airport","transport"],sheet:[36,17],shortName:"baggage_claim"},{name:"Left Luggage",unified:"1F6C5",keywords:["left_luggage","blue-square","travel"],sheet:[36,18],shortName:"left_luggage"},{name:"Warning Sign",unified:"26A0-FE0F",keywords:["warning","exclamation","wip","alert","error","problem","issue"],sheet:[54,55],shortName:"warning"},{name:"Children Crossing",unified:"1F6B8",keywords:["children_crossing","school","warning","danger","sign","driving","yellow-diamond"],sheet:[36,0],shortName:"children_crossing"},{name:"No Entry",unified:"26D4",keywords:["no_entry","limit","security","privacy","bad","denied","stop","circle"],sheet:[55,13],shortName:"no_entry"},{name:"No Entry Sign",unified:"1F6AB",keywords:["prohibited","forbid","stop","limit","denied","disallow","circle"],sheet:[34,52],shortName:"no_entry_sign"},{name:"No Bicycles",unified:"1F6B3",keywords:["no_bicycles","cyclist","prohibited","circle"],sheet:[35,2],shortName:"no_bicycles"},{name:"No Smoking Symbol",unified:"1F6AD",keywords:["no_smoking","cigarette","blue-square","smell","smoke"],sheet:[34,54],shortName:"no_smoking"},{name:"Do Not Litter Symbol",unified:"1F6AF",keywords:["no_littering","trash","bin","garbage","circle"],sheet:[34,56],shortName:"do_not_litter"},{name:"Non-Potable Water Symbol",unified:"1F6B1",keywords:["non_potable_water","drink","faucet","tap","circle"],sheet:[35,0],shortName:"non-potable_water"},{name:"No Pedestrians",unified:"1F6B7",keywords:["no_pedestrians","rules","crossing","walking","circle"],sheet:[35,57],shortName:"no_pedestrians"},{name:"No Mobile Phones",unified:"1F4F5",keywords:["no_mobile_phones","iphone","mute","circle"],sheet:[27,18],shortName:"no_mobile_phones"},{name:"No One Under Eighteen Symbol",unified:"1F51E",keywords:["no_one_under_eighteen","18","drink","pub","night","minor","circle"],sheet:[28,0],shortName:"underage"},{name:"Radioactive",unified:"2622-FE0F",keywords:["radioactive","nuclear","danger"],sheet:[54,14],shortName:"radioactive_sign"},{name:"Biohazard",unified:"2623-FE0F",keywords:["biohazard","danger"],sheet:[54,15],shortName:"biohazard_sign"},{name:"Upwards Black Arrow",unified:"2B06-FE0F",keywords:["up_arrow","blue-square","continue","top","direction"],sheet:[56,42],shortName:"arrow_up"},{name:"North East Arrow",unified:"2197-FE0F",keywords:["up_right_arrow","blue-square","point","direction","diagonal","northeast"],sheet:[53,23],shortName:"arrow_upper_right"},{name:"Black Rightwards Arrow",unified:"27A1-FE0F",keywords:["right_arrow","blue-square","next"],sheet:[56,36],shortName:"arrow_right"},{name:"South East Arrow",unified:"2198-FE0F",keywords:["down_right_arrow","blue-square","direction","diagonal","southeast"],sheet:[53,24],shortName:"arrow_lower_right"},{name:"Downwards Black Arrow",unified:"2B07-FE0F",keywords:["down_arrow","blue-square","direction","bottom"],sheet:[56,43],shortName:"arrow_down"},{name:"South West Arrow",unified:"2199-FE0F",keywords:["down_left_arrow","blue-square","direction","diagonal","southwest"],sheet:[53,25],shortName:"arrow_lower_left"},{name:"Leftwards Black Arrow",unified:"2B05-FE0F",keywords:["left_arrow","blue-square","previous","back"],sheet:[56,41],shortName:"arrow_left"},{name:"North West Arrow",unified:"2196-FE0F",keywords:["up_left_arrow","blue-square","point","direction","diagonal","northwest"],sheet:[53,22],shortName:"arrow_upper_left"},{name:"Up Down Arrow",unified:"2195-FE0F",keywords:["up_down_arrow","blue-square","direction","way","vertical"],sheet:[53,21],shortName:"arrow_up_down"},{name:"Left Right Arrow",unified:"2194-FE0F",keywords:["left_right_arrow","shape","direction","horizontal","sideways"],sheet:[53,20],shortName:"left_right_arrow"},{name:"Leftwards Arrow with Hook",unified:"21A9-FE0F",keywords:["right_arrow_curving_left","back","return","blue-square","undo","enter"],sheet:[53,26],shortName:"leftwards_arrow_with_hook"},{name:"Rightwards Arrow with Hook",unified:"21AA-FE0F",keywords:["left_arrow_curving_right","blue-square","return","rotate","direction"],sheet:[53,27],shortName:"arrow_right_hook"},{name:"Arrow Pointing Rightwards Then Curving Upwards",unified:"2934-FE0F",keywords:["right_arrow_curving_up","blue-square","direction","top"],sheet:[56,39],shortName:"arrow_heading_up"},{name:"Arrow Pointing Rightwards Then Curving Downwards",unified:"2935-FE0F",keywords:["right_arrow_curving_down","blue-square","direction","bottom"],sheet:[56,40],shortName:"arrow_heading_down"},{name:"Clockwise Downwards and Upwards Open Circle Arrows",unified:"1F503",keywords:["clockwise_vertical_arrows","sync","cycle","round","repeat"],sheet:[27,31],shortName:"arrows_clockwise"},{name:"Anticlockwise Downwards and Upwards Open Circle Arrows",unified:"1F504",keywords:["counterclockwise_arrows_button","blue-square","sync","cycle"],sheet:[27,32],shortName:"arrows_counterclockwise"},{name:"Back with Leftwards Arrow Above",unified:"1F519",keywords:["back_arrow","arrow","words","return"],sheet:[27,53],shortName:"back"},{name:"End with Leftwards Arrow Above",unified:"1F51A",keywords:["end_arrow","words","arrow"],sheet:[27,54],shortName:"end"},{name:"On with Exclamation Mark with Left Right Arrow Above",unified:"1F51B",keywords:["on_arrow","arrow","words"],sheet:[27,55],shortName:"on"},{name:"Soon with Rightwards Arrow Above",unified:"1F51C",keywords:["soon_arrow","arrow","words"],sheet:[27,56],shortName:"soon"},{name:"Top with Upwards Arrow Above",unified:"1F51D",keywords:["top_arrow","words","blue-square"],sheet:[27,57],shortName:"top"},{name:"Place of Worship",unified:"1F6D0",keywords:["place_of_worship","religion","church","temple","prayer"],sheet:[36,29],shortName:"place_of_worship"},{name:"Atom Symbol",unified:"269B-FE0F",keywords:["atom_symbol","science","physics","chemistry"],sheet:[54,53],shortName:"atom_symbol"},{name:"Om",unified:"1F549-FE0F",keywords:["om","hinduism","buddhism","sikhism","jainism"],sheet:[28,32],shortName:"om_symbol"},{name:"Star of David",unified:"2721-FE0F",keywords:["star_of_david","judaism"],sheet:[56,19],shortName:"star_of_david"},{name:"Wheel of Dharma",unified:"2638-FE0F",keywords:["wheel_of_dharma","hinduism","buddhism","sikhism","jainism"],sheet:[54,20],shortName:"wheel_of_dharma"},{name:"Yin Yang",unified:"262F-FE0F",keywords:["yin_yang","balance"],sheet:[54,19],shortName:"yin_yang"},{name:"Latin Cross",unified:"271D-FE0F",keywords:["latin_cross","christianity"],sheet:[56,18],shortName:"latin_cross"},{name:"Orthodox Cross",unified:"2626-FE0F",keywords:["orthodox_cross","suppedaneum","religion"],sheet:[54,16],shortName:"orthodox_cross"},{name:"Star and Crescent",unified:"262A-FE0F",keywords:["star_and_crescent","islam"],sheet:[54,17],shortName:"star_and_crescent"},{name:"Peace Symbol",unified:"262E-FE0F",keywords:["peace_symbol","hippie"],sheet:[54,18],shortName:"peace_symbol"},{name:"Menorah with Nine Branches",unified:"1F54E",keywords:["menorah","hanukkah","candles","jewish"],sheet:[28,37],shortName:"menorah_with_nine_branches"},{name:"Six Pointed Star with Middle Dot",unified:"1F52F",keywords:["dotted_six_pointed_star","purple-square","religion","jewish","hexagram"],sheet:[28,17],shortName:"six_pointed_star"},{name:"Aries",unified:"2648",keywords:["aries","sign","purple-square","zodiac","astrology"],sheet:[54,25],shortName:"aries"},{name:"Taurus",unified:"2649",keywords:["taurus","purple-square","sign","zodiac","astrology"],sheet:[54,26],shortName:"taurus"},{name:"Gemini",unified:"264A",keywords:["gemini","sign","zodiac","purple-square","astrology"],sheet:[54,27],shortName:"gemini"},{name:"Cancer",unified:"264B",keywords:["cancer","sign","zodiac","purple-square","astrology"],sheet:[54,28],shortName:"cancer"},{name:"Leo",unified:"264C",keywords:["leo","sign","purple-square","zodiac","astrology"],sheet:[54,29],shortName:"leo"},{name:"Virgo",unified:"264D",keywords:["virgo","sign","zodiac","purple-square","astrology"],sheet:[54,30],shortName:"virgo"},{name:"Libra",unified:"264E",keywords:["libra","sign","purple-square","zodiac","astrology"],sheet:[54,31],shortName:"libra"},{name:"Scorpius",unified:"264F",keywords:["scorpio","sign","zodiac","purple-square","astrology","scorpio"],sheet:[54,32],shortName:"scorpius"},{name:"Sagittarius",unified:"2650",keywords:["sagittarius","sign","zodiac","purple-square","astrology"],sheet:[54,33],shortName:"sagittarius"},{name:"Capricorn",unified:"2651",keywords:["capricorn","sign","zodiac","purple-square","astrology"],sheet:[54,34],shortName:"capricorn"},{name:"Aquarius",unified:"2652",keywords:["aquarius","sign","purple-square","zodiac","astrology"],sheet:[54,35],shortName:"aquarius"},{name:"Pisces",unified:"2653",keywords:["pisces","purple-square","sign","zodiac","astrology"],sheet:[54,36],shortName:"pisces"},{name:"Ophiuchus",unified:"26CE",keywords:["ophiuchus","sign","purple-square","constellation","astrology"],sheet:[55,9],shortName:"ophiuchus"},{name:"Twisted Rightwards Arrows",unified:"1F500",keywords:["shuffle_tracks_button","blue-square","shuffle","music","random"],sheet:[27,28],shortName:"twisted_rightwards_arrows"},{name:"Clockwise Rightwards and Leftwards Open Circle Arrows",unified:"1F501",keywords:["repeat_button","loop","record"],sheet:[27,29],shortName:"repeat"},{name:"Clockwise Rightwards and Leftwards Open Circle Arrows with Circled One Overlay",unified:"1F502",keywords:["repeat_single_button","blue-square","loop"],sheet:[27,30],shortName:"repeat_one"},{name:"Black Right-Pointing Triangle",unified:"25B6-FE0F",keywords:["play_button","blue-square","right","direction","play"],sheet:[53,49],shortName:"arrow_forward"},{name:"Black Right-Pointing Double Triangle",unified:"23E9",keywords:["fast_forward_button","blue-square","play","speed","continue"],sheet:[53,32],shortName:"fast_forward"},{name:"Next Track Button",unified:"23ED-FE0F",keywords:["next_track_button","forward","next","blue-square"],sheet:[53,36],shortName:"black_right_pointing_double_triangle_with_vertical_bar"},{name:"Play or Pause Button",unified:"23EF-FE0F",keywords:["play_or_pause_button","blue-square","play","pause"],sheet:[53,38],shortName:"black_right_pointing_triangle_with_double_vertical_bar"},{name:"Black Left-Pointing Triangle",unified:"25C0-FE0F",keywords:["reverse_button","blue-square","left","direction"],sheet:[53,50],shortName:"arrow_backward"},{name:"Black Left-Pointing Double Triangle",unified:"23EA",keywords:["fast_reverse_button","play","blue-square"],sheet:[53,33],shortName:"rewind"},{name:"Last Track Button",unified:"23EE-FE0F",keywords:["last_track_button","backward"],sheet:[53,37],shortName:"black_left_pointing_double_triangle_with_vertical_bar"},{name:"Up-Pointing Small Red Triangle",unified:"1F53C",keywords:["upwards_button","blue-square","triangle","direction","point","forward","top"],sheet:[28,30],shortName:"arrow_up_small"},{name:"Black Up-Pointing Double Triangle",unified:"23EB",keywords:["fast_up_button","blue-square","direction","top"],sheet:[53,34],shortName:"arrow_double_up"},{name:"Down-Pointing Small Red Triangle",unified:"1F53D",keywords:["downwards_button","blue-square","direction","bottom"],sheet:[28,31],shortName:"arrow_down_small"},{name:"Black Down-Pointing Double Triangle",unified:"23EC",keywords:["fast_down_button","blue-square","direction","bottom"],sheet:[53,35],shortName:"arrow_double_down"},{name:"Pause Button",unified:"23F8-FE0F",keywords:["pause_button","pause","blue-square"],sheet:[53,43],shortName:"double_vertical_bar"},{name:"Stop Button",unified:"23F9-FE0F",keywords:["stop_button","blue-square"],sheet:[53,44],shortName:"black_square_for_stop"},{name:"Record Button",unified:"23FA-FE0F",keywords:["record_button","blue-square"],sheet:[53,45],shortName:"black_circle_for_record"},{name:"Eject Button",unified:"23CF-FE0F",keywords:["eject_button","blue-square"],sheet:[53,31],shortName:"eject"},{name:"Cinema",unified:"1F3A6",keywords:["cinema","blue-square","record","film","movie","curtain","stage","theater"],sheet:[8,4],shortName:"cinema"},{name:"Low Brightness Symbol",unified:"1F505",keywords:["dim_button","sun","afternoon","warm","summer"],sheet:[27,33],shortName:"low_brightness"},{name:"High Brightness Symbol",unified:"1F506",keywords:["bright_button","sun","light"],sheet:[27,34],shortName:"high_brightness"},{name:"Antenna with Bars",unified:"1F4F6",keywords:["antenna_bars","blue-square","reception","phone","internet","connection","wifi","bluetooth","bars"],sheet:[27,19],shortName:"signal_strength"},{name:"Vibration Mode",unified:"1F4F3",keywords:["vibration_mode","orange-square","phone"],sheet:[27,16],shortName:"vibration_mode"},{name:"Mobile Phone off",unified:"1F4F4",keywords:["mobile_phone_off","mute","orange-square","silence","quiet"],sheet:[27,17],shortName:"mobile_phone_off"},{name:"Female Sign",unified:"2640-FE0F",keywords:["female_sign","woman","women","lady","girl"],sheet:[54,23],hidden:["apple"],shortName:"female_sign"},{name:"Male Sign",unified:"2642-FE0F",keywords:["male_sign","man","boy","men"],sheet:[54,24],hidden:["apple"],shortName:"male_sign"},{name:"Transgender Symbol",unified:"26A7-FE0F",keywords:["transgender symbol","lgbtq"],sheet:[54,57],shortName:"transgender_symbol"},{name:"Heavy Multiplication X",unified:"2716-FE0F",keywords:["multiplication_sign","math","calculation"],sheet:[56,17],shortName:"heavy_multiplication_x"},{name:"Heavy Plus Sign",unified:"2795",keywords:["plus_sign","math","calculation","addition","more","increase"],sheet:[56,33],shortName:"heavy_plus_sign"},{name:"Heavy Minus Sign",unified:"2796",keywords:["minus_sign","math","calculation","subtract","less"],sheet:[56,34],shortName:"heavy_minus_sign"},{name:"Heavy Division Sign",unified:"2797",keywords:["division_sign","divide","math","calculation"],sheet:[56,35],shortName:"heavy_division_sign"},{name:"Infinity",unified:"267E-FE0F",keywords:["infinity","forever"],sheet:[54,44],shortName:"infinity"},{name:"Double Exclamation Mark",unified:"203C-FE0F",keywords:["double_exclamation_mark","exclamation","surprise"],sheet:[53,16],shortName:"bangbang"},{name:"Exclamation Question Mark",unified:"2049-FE0F",keywords:["exclamation_question_mark","wat","punctuation","surprise"],sheet:[53,17],shortName:"interrobang"},{name:"Black Question Mark Ornament",unified:"2753",keywords:["question_mark","doubt","confused"],sheet:[56,27],shortName:"question"},{name:"White Question Mark Ornament",unified:"2754",keywords:["white_question_mark","doubts","gray","huh","confused"],sheet:[56,28],shortName:"grey_question"},{name:"White Exclamation Mark Ornament",unified:"2755",keywords:["white_exclamation_mark","surprise","punctuation","gray","wow","warning"],sheet:[56,29],shortName:"grey_exclamation"},{name:"Heavy Exclamation Mark Symbol",unified:"2757",keywords:["exclamation_mark","heavy_exclamation_mark","danger","surprise","punctuation","wow","warning"],sheet:[56,30],shortNames:["heavy_exclamation_mark"],shortName:"exclamation"},{name:"Wavy Dash",unified:"3030-FE0F",keywords:["wavy_dash","draw","line","moustache","mustache","squiggle","scribble"],sheet:[56,48],shortName:"wavy_dash"},{name:"Currency Exchange",unified:"1F4B1",keywords:["currency_exchange","money","sales","dollar","travel"],sheet:[26,8],shortName:"currency_exchange"},{name:"Heavy Dollar Sign",unified:"1F4B2",keywords:["heavy_dollar_sign","money","sales","payment","currency","buck"],sheet:[26,9],shortName:"heavy_dollar_sign"},{name:"Medical Symbol",unified:"2695-FE0F",keywords:["medical_symbol","health","hospital"],sheet:[54,49],hidden:["apple"],shortNames:["staff_of_aesculapius"],shortName:"medical_symbol"},{name:"Black Universal Recycling Symbol",unified:"267B-FE0F",keywords:["recycling_symbol","arrow","environment","garbage","trash"],sheet:[54,43],shortName:"recycle"},{name:"Fleur-De-Lis",unified:"269C-FE0F",keywords:["fleur_de_lis","decorative","scout"],sheet:[54,54],shortName:"fleur_de_lis"},{name:"Trident Emblem",unified:"1F531",keywords:["trident_emblem","weapon","spear"],sheet:[28,19],shortName:"trident"},{name:"Name Badge",unified:"1F4DB",keywords:["name_badge","fire","forbid"],sheet:[26,50],shortName:"name_badge"},{name:"Japanese Symbol for Beginner",unified:"1F530",keywords:["japanese_symbol_for_beginner","badge","shield"],sheet:[28,18],shortName:"beginner"},{name:"Heavy Large Circle",unified:"2B55",keywords:["hollow_red_circle","circle","round"],sheet:[56,47],shortName:"o"},{name:"White Heavy Check Mark",unified:"2705",keywords:["check_mark_button","green-square","ok","agree","vote","election","answer","tick"],sheet:[55,45],shortName:"white_check_mark"},{name:"Ballot Box with Check",unified:"2611-FE0F",keywords:["check_box_with_check","ok","agree","confirm","black-square","vote","election","yes","tick"],sheet:[54,3],shortName:"ballot_box_with_check"},{name:"Heavy Check Mark",unified:"2714-FE0F",keywords:["check_mark","ok","nike","answer","yes","tick"],sheet:[56,16],shortName:"heavy_check_mark"},{name:"Cross Mark",unified:"274C",keywords:["cross_mark","no","delete","remove","cancel","red"],sheet:[56,25],shortName:"x"},{name:"Negative Squared Cross Mark",unified:"274E",keywords:["cross_mark_button","x","green-square","no","deny"],sheet:[56,26],shortName:"negative_squared_cross_mark"},{name:"Curly Loop",unified:"27B0",keywords:["curly_loop","scribble","draw","shape","squiggle"],sheet:[56,37],shortName:"curly_loop"},{name:"Double Curly Loop",unified:"27BF",keywords:["double_curly_loop","tape","cassette"],sheet:[56,38],shortName:"loop"},{name:"Part Alternation Mark",unified:"303D-FE0F",keywords:["part_alternation_mark","graph","presentation","stats","business","economics","bad"],sheet:[56,49],shortName:"part_alternation_mark"},{name:"Eight Spoked Asterisk",unified:"2733-FE0F",keywords:["eight_spoked_asterisk","star","sparkle","green-square"],sheet:[56,21],shortName:"eight_spoked_asterisk"},{name:"Eight Pointed Black Star",unified:"2734-FE0F",keywords:["eight_pointed_star","orange-square","shape","polygon"],sheet:[56,22],shortName:"eight_pointed_black_star"},{name:"Sparkle",unified:"2747-FE0F",keywords:["sparkle","stars","green-square","awesome","good","fireworks"],sheet:[56,24],shortName:"sparkle"},{name:"Copyright Sign",unified:"00A9-FE0F",keywords:["copyright","ip","license","circle","law","legal"],sheet:[0,12],hidden:["facebook"],shortName:"copyright"},{name:"Registered Sign",unified:"00AE-FE0F",keywords:["registered","alphabet","circle"],sheet:[0,13],hidden:["facebook"],shortName:"registered"},{name:"Trade Mark Sign",unified:"2122-FE0F",keywords:["trade_mark","trademark","brand","law","legal"],sheet:[53,18],shortName:"tm"},{name:"Hash Key",unified:"0023-FE0F-20E3",keywords:["keycap_","symbol","blue-square","twitter"],sheet:[0,0],hidden:["facebook"],shortName:"hash"},{name:"Keycap: *",unified:"002A-FE0F-20E3",keywords:["keycap_","star","keycap"],sheet:[0,1],hidden:["facebook"],shortName:"keycap_star"},{name:"Keycap 0",unified:"0030-FE0F-20E3",keywords:["keycap_0","0","numbers","blue-square","null"],sheet:[0,2],hidden:["facebook"],shortName:"zero"},{name:"Keycap 1",unified:"0031-FE0F-20E3",keywords:["keycap_1","blue-square","numbers","1"],sheet:[0,3],hidden:["facebook"],shortName:"one"},{name:"Keycap 2",unified:"0032-FE0F-20E3",keywords:["keycap_2","numbers","2","prime","blue-square"],sheet:[0,4],hidden:["facebook"],shortName:"two"},{name:"Keycap 3",unified:"0033-FE0F-20E3",keywords:["keycap_3","3","numbers","prime","blue-square"],sheet:[0,5],hidden:["facebook"],shortName:"three"},{name:"Keycap 4",unified:"0034-FE0F-20E3",keywords:["keycap_4","4","numbers","blue-square"],sheet:[0,6],hidden:["facebook"],shortName:"four"},{name:"Keycap 5",unified:"0035-FE0F-20E3",keywords:["keycap_5","5","numbers","blue-square","prime"],sheet:[0,7],hidden:["facebook"],shortName:"five"},{name:"Keycap 6",unified:"0036-FE0F-20E3",keywords:["keycap_6","6","numbers","blue-square"],sheet:[0,8],hidden:["facebook"],shortName:"six"},{name:"Keycap 7",unified:"0037-FE0F-20E3",keywords:["keycap_7","7","numbers","blue-square","prime"],sheet:[0,9],hidden:["facebook"],shortName:"seven"},{name:"Keycap 8",unified:"0038-FE0F-20E3",keywords:["keycap_8","8","blue-square","numbers"],sheet:[0,10],hidden:["facebook"],shortName:"eight"},{name:"Keycap 9",unified:"0039-FE0F-20E3",keywords:["keycap_9","blue-square","numbers","9"],sheet:[0,11],hidden:["facebook"],shortName:"nine"},{name:"Keycap Ten",unified:"1F51F",keywords:["keycap_10","numbers","10","blue-square"],sheet:[28,1],shortName:"keycap_ten"},{name:"Input Symbol for Latin Capital Letters",unified:"1F520",keywords:["input_latin_uppercase","alphabet","words","blue-square"],sheet:[28,2],shortName:"capital_abcd"},{name:"Input Symbol for Latin Small Letters",unified:"1F521",keywords:["input_latin_lowercase","blue-square","alphabet"],sheet:[28,3],shortName:"abcd"},{name:"Input Symbol for Numbers",unified:"1F522",keywords:["input_numbers","numbers","blue-square"],sheet:[28,4],shortName:"1234"},{name:"Input Symbol for Symbols",unified:"1F523",keywords:["input_symbols","blue-square","music","note","ampersand","percent","glyphs","characters"],sheet:[28,5],shortName:"symbols"},{name:"Input Symbol for Latin Letters",unified:"1F524",keywords:["input_latin_letters","blue-square","alphabet"],sheet:[28,6],shortName:"abc"},{name:"Negative Squared Latin Capital Letter a",unified:"1F170-FE0F",keywords:["a_button","red-square","alphabet","letter"],sheet:[0,16],shortName:"a"},{name:"Negative Squared Ab",unified:"1F18E",keywords:["ab_button","red-square","alphabet"],sheet:[0,20],shortName:"ab"},{name:"Negative Squared Latin Capital Letter B",unified:"1F171-FE0F",keywords:["b_button","red-square","alphabet","letter"],sheet:[0,17],shortName:"b"},{name:"Squared Cl",unified:"1F191",keywords:["cl_button","alphabet","words","red-square"],sheet:[0,21],shortName:"cl"},{name:"Squared Cool",unified:"1F192",keywords:["cool_button","words","blue-square"],sheet:[0,22],shortName:"cool"},{name:"Squared Free",unified:"1F193",keywords:["free_button","blue-square","words"],sheet:[0,23],shortName:"free"},{name:"Information Source",unified:"2139-FE0F",keywords:["information","blue-square","alphabet","letter"],sheet:[53,19],shortName:"information_source"},{name:"Squared Id",unified:"1F194",keywords:["id_button","purple-square","words"],sheet:[0,24],shortName:"id"},{name:"Circled Latin Capital Letter M",unified:"24C2-FE0F",keywords:["circled_m","alphabet","blue-circle","letter"],sheet:[53,46],shortName:"m"},{name:"Squared New",unified:"1F195",keywords:["new_button","blue-square","words","start"],sheet:[0,25],shortName:"new"},{name:"Squared Ng",unified:"1F196",keywords:["ng_button","blue-square","words","shape","icon"],sheet:[0,26],shortName:"ng"},{name:"Negative Squared Latin Capital Letter O",unified:"1F17E-FE0F",keywords:["o_button","alphabet","red-square","letter"],sheet:[0,18],shortName:"o2"},{name:"Squared Ok",unified:"1F197",keywords:["ok_button","good","agree","yes","blue-square"],sheet:[0,27],shortName:"ok"},{name:"Negative Squared Latin Capital Letter P",unified:"1F17F-FE0F",keywords:["p_button","cars","blue-square","alphabet","letter"],sheet:[0,19],shortName:"parking"},{name:"Squared Sos",unified:"1F198",keywords:["sos_button","help","red-square","words","emergency","911"],sheet:[0,28],shortName:"sos"},{name:"Squared Up with Exclamation Mark",unified:"1F199",keywords:["up_button","blue-square","above","high"],sheet:[0,29],shortName:"up"},{name:"Squared Vs",unified:"1F19A",keywords:["vs_button","words","orange-square"],sheet:[0,30],shortName:"vs"},{name:"Squared Katakana Koko",unified:"1F201",keywords:["japanese_here_button","blue-square","here","katakana","japanese","destination"],sheet:[4,57],shortName:"koko"},{name:"Squared Katakana Sa",unified:"1F202-FE0F",keywords:["japanese_service_charge_button","japanese","blue-square","katakana"],sheet:[5,0],shortName:"sa"},{name:"Squared Cjk Unified Ideograph-6708",unified:"1F237-FE0F",keywords:["japanese_monthly_amount_button","chinese","month","moon","japanese","orange-square","kanji"],sheet:[5,8],shortName:"u6708"},{name:"Squared Cjk Unified Ideograph-6709",unified:"1F236",keywords:["japanese_not_free_of_charge_button","orange-square","chinese","have","kanji"],sheet:[5,7],shortName:"u6709"},{name:"Squared Cjk Unified Ideograph-6307",unified:"1F22F",keywords:["japanese_reserved_button","chinese","point","green-square","kanji"],sheet:[5,2],shortName:"u6307"},{name:"Circled Ideograph Advantage",unified:"1F250",keywords:["japanese_bargain_button","chinese","kanji","obtain","get","circle"],sheet:[5,12],shortName:"ideograph_advantage"},{name:"Squared Cjk Unified Ideograph-5272",unified:"1F239",keywords:["japanese_discount_button","cut","divide","chinese","kanji","pink-square"],sheet:[5,10],shortName:"u5272"},{name:"Squared Cjk Unified Ideograph-7121",unified:"1F21A",keywords:["japanese_free_of_charge_button","nothing","chinese","kanji","japanese","orange-square"],sheet:[5,1],shortName:"u7121"},{name:"Squared Cjk Unified Ideograph-7981",unified:"1F232",keywords:["japanese_prohibited_button","kanji","japanese","chinese","forbidden","limit","restricted","red-square"],sheet:[5,3],shortName:"u7981"},{name:"Circled Ideograph Accept",unified:"1F251",keywords:["japanese_acceptable_button","ok","good","chinese","kanji","agree","yes","orange-circle"],sheet:[5,13],shortName:"accept"},{name:"Squared Cjk Unified Ideograph-7533",unified:"1F238",keywords:["japanese_application_button","chinese","japanese","kanji","orange-square"],sheet:[5,9],shortName:"u7533"},{name:"Squared Cjk Unified Ideograph-5408",unified:"1F234",keywords:["japanese_passing_grade_button","japanese","chinese","join","kanji","red-square"],sheet:[5,5],shortName:"u5408"},{name:"Squared Cjk Unified Ideograph-7a7a",unified:"1F233",keywords:["japanese_vacancy_button","kanji","japanese","chinese","empty","sky","blue-square"],sheet:[5,4],shortName:"u7a7a"},{name:"Circled Ideograph Congratulation",unified:"3297-FE0F",keywords:["japanese_congratulations_button","chinese","kanji","japanese","red-circle"],sheet:[56,50],shortName:"congratulations"},{name:"Circled Ideograph Secret",unified:"3299-FE0F",keywords:["japanese_secret_button","privacy","chinese","sshh","kanji","red-circle"],sheet:[56,51],shortName:"secret"},{name:"Squared Cjk Unified Ideograph-55b6",unified:"1F23A",keywords:["japanese_open_for_business_button","japanese","opening hours","orange-square"],sheet:[5,11],shortName:"u55b6"},{name:"Squared Cjk Unified Ideograph-6e80",unified:"1F235",keywords:["japanese_no_vacancy_button","full","chinese","japanese","red-square","kanji"],sheet:[5,6],shortName:"u6e80"},{name:"Large Red Circle",unified:"1F534",keywords:["red_circle","shape","error","danger"],sheet:[28,22],shortName:"red_circle"},{name:"Large Orange Circle",unified:"1F7E0",keywords:["orange_circle","round"],sheet:[36,55],shortName:"large_orange_circle"},{name:"Large Yellow Circle",unified:"1F7E1",keywords:["yellow_circle","round"],sheet:[36,56],shortName:"large_yellow_circle"},{name:"Large Green Circle",unified:"1F7E2",keywords:["green_circle","round"],sheet:[36,57],shortName:"large_green_circle"},{name:"Large Blue Circle",unified:"1F535",keywords:["blue_circle","shape","icon","button"],sheet:[28,23],shortName:"large_blue_circle"},{name:"Large Purple Circle",unified:"1F7E3",keywords:["purple_circle","round"],sheet:[37,0],shortName:"large_purple_circle"},{name:"Large Brown Circle",unified:"1F7E4",keywords:["brown_circle","round"],sheet:[37,1],shortName:"large_brown_circle"},{name:"Medium Black Circle",unified:"26AB",keywords:["black_circle","shape","button","round"],sheet:[55,1],shortName:"black_circle"},{name:"Medium White Circle",unified:"26AA",keywords:["white_circle","shape","round"],sheet:[55,0],shortName:"white_circle"},{name:"Large Red Square",unified:"1F7E5",keywords:["red_square"],sheet:[37,2],shortName:"large_red_square"},{name:"Large Orange Square",unified:"1F7E7",keywords:["orange_square"],sheet:[37,4],shortName:"large_orange_square"},{name:"Large Yellow Square",unified:"1F7E8",keywords:["yellow_square"],sheet:[37,5],shortName:"large_yellow_square"},{name:"Large Green Square",unified:"1F7E9",keywords:["green_square"],sheet:[37,6],shortName:"large_green_square"},{name:"Large Blue Square",unified:"1F7E6",keywords:["blue_square"],sheet:[37,3],shortName:"large_blue_square"},{name:"Large Purple Square",unified:"1F7EA",keywords:["purple_square"],sheet:[37,7],shortName:"large_purple_square"},{name:"Large Brown Square",unified:"1F7EB",keywords:["brown_square"],sheet:[37,8],shortName:"large_brown_square"},{name:"Black Large Square",unified:"2B1B",keywords:["black_large_square","shape","icon","button"],sheet:[56,44],shortName:"black_large_square"},{name:"White Large Square",unified:"2B1C",keywords:["white_large_square","shape","icon","stone","button"],sheet:[56,45],shortName:"white_large_square"},{name:"Black Medium Square",unified:"25FC-FE0F",keywords:["black_medium_square","shape","button","icon"],sheet:[53,52],shortName:"black_medium_square"},{name:"White Medium Square",unified:"25FB-FE0F",keywords:["white_medium_square","shape","stone","icon"],sheet:[53,51],shortName:"white_medium_square"},{name:"Black Medium Small Square",unified:"25FE",keywords:["black_medium_small_square","icon","shape","button"],sheet:[53,54],shortName:"black_medium_small_square"},{name:"White Medium Small Square",unified:"25FD",keywords:["white_medium_small_square","shape","stone","icon","button"],sheet:[53,53],shortName:"white_medium_small_square"},{name:"Black Small Square",unified:"25AA-FE0F",keywords:["black_small_square","shape","icon"],sheet:[53,47],shortName:"black_small_square"},{name:"White Small Square",unified:"25AB-FE0F",keywords:["white_small_square","shape","icon"],sheet:[53,48],shortName:"white_small_square"},{name:"Large Orange Diamond",unified:"1F536",keywords:["large_orange_diamond","shape","jewel","gem"],sheet:[28,24],shortName:"large_orange_diamond"},{name:"Large Blue Diamond",unified:"1F537",keywords:["large_blue_diamond","shape","jewel","gem"],sheet:[28,25],shortName:"large_blue_diamond"},{name:"Small Orange Diamond",unified:"1F538",keywords:["small_orange_diamond","shape","jewel","gem"],sheet:[28,26],shortName:"small_orange_diamond"},{name:"Small Blue Diamond",unified:"1F539",keywords:["small_blue_diamond","shape","jewel","gem"],sheet:[28,27],shortName:"small_blue_diamond"},{name:"Up-Pointing Red Triangle",unified:"1F53A",keywords:["red_triangle_pointed_up","shape","direction","up","top"],sheet:[28,28],shortName:"small_red_triangle"},{name:"Down-Pointing Red Triangle",unified:"1F53B",keywords:["red_triangle_pointed_down","shape","direction","bottom"],sheet:[28,29],shortName:"small_red_triangle_down"},{name:"Diamond Shape with a Dot Inside",unified:"1F4A0",keywords:["diamond_with_a_dot","jewel","blue","gem","crystal","fancy"],sheet:[25,44],shortName:"diamond_shape_with_a_dot_inside"},{name:"Radio Button",unified:"1F518",keywords:["radio_button","input","old","music","circle"],sheet:[27,52],shortName:"radio_button"},{name:"White Square Button",unified:"1F533",keywords:["white_square_button","shape","input"],sheet:[28,21],shortName:"white_square_button"},{name:"Black Square Button",unified:"1F532",keywords:["black_square_button","shape","input","frame"],sheet:[28,20],shortName:"black_square_button"},{name:"Chequered Flag",unified:"1F3C1",keywords:["chequered_flag","contest","finishline","race","gokart"],sheet:[8,31],shortName:"checkered_flag"},{name:"Triangular Flag on Post",unified:"1F6A9",keywords:["triangular_flag","mark","milestone","place"],sheet:[34,50],shortName:"triangular_flag_on_post"},{name:"Crossed Flags",unified:"1F38C",keywords:["crossed_flags","japanese","nation","country","border"],sheet:[7,41],shortName:"crossed_flags"},{name:"Waving Black Flag",unified:"1F3F4",keywords:["black_flag","pirate"],sheet:[11,7],shortName:"waving_black_flag"},{name:"White Flag",unified:"1F3F3-FE0F",keywords:["white_flag","losing","loser","lost","surrender","give up","fail"],sheet:[11,2],shortName:"waving_white_flag"},{name:"Rainbow Flag",unified:"1F3F3-FE0F-200D-1F308",keywords:["rainbow_flag","flag","rainbow","pride","gay","lgbt","glbt","queer","homosexual","lesbian","bisexual","transgender"],sheet:[11,0],shortName:"rainbow-flag"},{name:"Transgender Flag",unified:"1F3F3-FE0F-200D-26A7-FE0F",keywords:["transgender flag","lgbtq"],sheet:[11,1],hidden:["facebook"],shortName:"transgender_flag"},{name:"Pirate Flag",unified:"1F3F4-200D-2620-FE0F",keywords:["pirate_flag","skull","crossbones","flag","banner"],sheet:[11,3],shortName:"pirate_flag"},{name:"Ascension Island Flag",unified:"1F1E6-1F1E8",keywords:["flag_ascension_island"],sheet:[0,31],shortName:"flag-ac"},{name:"Andorra Flag",unified:"1F1E6-1F1E9",keywords:["flag_andorra","ad","flag","nation","country","banner"],sheet:[0,32],shortName:"flag-ad"},{name:"United Arab Emirates Flag",unified:"1F1E6-1F1EA",keywords:["flag_united_arab_emirates","united","arab","emirates","flag","nation","country","banner"],sheet:[0,33],shortName:"flag-ae"},{name:"Afghanistan Flag",unified:"1F1E6-1F1EB",keywords:["flag_afghanistan","af","flag","nation","country","banner"],sheet:[0,34],shortName:"flag-af"},{name:"Antigua & Barbuda Flag",unified:"1F1E6-1F1EC",keywords:["flag_antigua_barbuda","antigua","barbuda","flag","nation","country","banner"],sheet:[0,35],shortName:"flag-ag"},{name:"Anguilla Flag",unified:"1F1E6-1F1EE",keywords:["flag_anguilla","ai","flag","nation","country","banner"],sheet:[0,36],shortName:"flag-ai"},{name:"Albania Flag",unified:"1F1E6-1F1F1",keywords:["flag_albania","al","flag","nation","country","banner"],sheet:[0,37],shortName:"flag-al"},{name:"Armenia Flag",unified:"1F1E6-1F1F2",keywords:["flag_armenia","am","flag","nation","country","banner"],sheet:[0,38],shortName:"flag-am"},{name:"Angola Flag",unified:"1F1E6-1F1F4",keywords:["flag_angola","ao","flag","nation","country","banner"],sheet:[0,39],shortName:"flag-ao"},{name:"Antarctica Flag",unified:"1F1E6-1F1F6",keywords:["flag_antarctica","aq","flag","nation","country","banner"],sheet:[0,40],shortName:"flag-aq"},{name:"Argentina Flag",unified:"1F1E6-1F1F7",keywords:["flag_argentina","ar","flag","nation","country","banner"],sheet:[0,41],shortName:"flag-ar"},{name:"American Samoa Flag",unified:"1F1E6-1F1F8",keywords:["flag_american_samoa","american","ws","flag","nation","country","banner"],sheet:[0,42],shortName:"flag-as"},{name:"Austria Flag",unified:"1F1E6-1F1F9",keywords:["flag_austria","at","flag","nation","country","banner"],sheet:[0,43],shortName:"flag-at"},{name:"Australia Flag",unified:"1F1E6-1F1FA",keywords:["flag_australia","au","flag","nation","country","banner"],sheet:[0,44],shortName:"flag-au"},{name:"Aruba Flag",unified:"1F1E6-1F1FC",keywords:["flag_aruba","aw","flag","nation","country","banner"],sheet:[0,45],shortName:"flag-aw"},{name:"\xc5land Islands Flag",unified:"1F1E6-1F1FD",keywords:["flag_aland_islands","\xc5land","islands","flag","nation","country","banner"],sheet:[0,46],shortName:"flag-ax"},{name:"Azerbaijan Flag",unified:"1F1E6-1F1FF",keywords:["flag_azerbaijan","az","flag","nation","country","banner"],sheet:[0,47],shortName:"flag-az"},{name:"Bosnia & Herzegovina Flag",unified:"1F1E7-1F1E6",keywords:["flag_bosnia_herzegovina","bosnia","herzegovina","flag","nation","country","banner"],sheet:[0,48],shortName:"flag-ba"},{name:"Barbados Flag",unified:"1F1E7-1F1E7",keywords:["flag_barbados","bb","flag","nation","country","banner"],sheet:[0,49],shortName:"flag-bb"},{name:"Bangladesh Flag",unified:"1F1E7-1F1E9",keywords:["flag_bangladesh","bd","flag","nation","country","banner"],sheet:[0,50],shortName:"flag-bd"},{name:"Belgium Flag",unified:"1F1E7-1F1EA",keywords:["flag_belgium","be","flag","nation","country","banner"],sheet:[0,51],shortName:"flag-be"},{name:"Burkina Faso Flag",unified:"1F1E7-1F1EB",keywords:["flag_burkina_faso","burkina","faso","flag","nation","country","banner"],sheet:[0,52],shortName:"flag-bf"},{name:"Bulgaria Flag",unified:"1F1E7-1F1EC",keywords:["flag_bulgaria","bg","flag","nation","country","banner"],sheet:[0,53],shortName:"flag-bg"},{name:"Bahrain Flag",unified:"1F1E7-1F1ED",keywords:["flag_bahrain","bh","flag","nation","country","banner"],sheet:[0,54],shortName:"flag-bh"},{name:"Burundi Flag",unified:"1F1E7-1F1EE",keywords:["flag_burundi","bi","flag","nation","country","banner"],sheet:[0,55],shortName:"flag-bi"},{name:"Benin Flag",unified:"1F1E7-1F1EF",keywords:["flag_benin","bj","flag","nation","country","banner"],sheet:[0,56],shortName:"flag-bj"},{name:"St. Barth\xe9lemy Flag",unified:"1F1E7-1F1F1",keywords:["flag_st_barthelemy","saint","barth\xe9lemy","flag","nation","country","banner"],sheet:[0,57],shortName:"flag-bl"},{name:"Bermuda Flag",unified:"1F1E7-1F1F2",keywords:["flag_bermuda","bm","flag","nation","country","banner"],sheet:[1,0],shortName:"flag-bm"},{name:"Brunei Flag",unified:"1F1E7-1F1F3",keywords:["flag_brunei","bn","darussalam","flag","nation","country","banner"],sheet:[1,1],shortName:"flag-bn"},{name:"Bolivia Flag",unified:"1F1E7-1F1F4",keywords:["flag_bolivia","bo","flag","nation","country","banner"],sheet:[1,2],shortName:"flag-bo"},{name:"Caribbean Netherlands Flag",unified:"1F1E7-1F1F6",keywords:["flag_caribbean_netherlands","bonaire","flag","nation","country","banner"],sheet:[1,3],shortName:"flag-bq"},{name:"Brazil Flag",unified:"1F1E7-1F1F7",keywords:["flag_brazil","br","flag","nation","country","banner"],sheet:[1,4],shortName:"flag-br"},{name:"Bahamas Flag",unified:"1F1E7-1F1F8",keywords:["flag_bahamas","bs","flag","nation","country","banner"],sheet:[1,5],shortName:"flag-bs"},{name:"Bhutan Flag",unified:"1F1E7-1F1F9",keywords:["flag_bhutan","bt","flag","nation","country","banner"],sheet:[1,6],shortName:"flag-bt"},{name:"Bouvet Island Flag",unified:"1F1E7-1F1FB",keywords:["flag_bouvet_island","norway"],sheet:[1,7],shortName:"flag-bv"},{name:"Botswana Flag",unified:"1F1E7-1F1FC",keywords:["flag_botswana","bw","flag","nation","country","banner"],sheet:[1,8],shortName:"flag-bw"},{name:"Belarus Flag",unified:"1F1E7-1F1FE",keywords:["flag_belarus","by","flag","nation","country","banner"],sheet:[1,9],shortName:"flag-by"},{name:"Belize Flag",unified:"1F1E7-1F1FF",keywords:["flag_belize","bz","flag","nation","country","banner"],sheet:[1,10],shortName:"flag-bz"},{name:"Canada Flag",unified:"1F1E8-1F1E6",keywords:["flag_canada","ca","flag","nation","country","banner"],sheet:[1,11],shortName:"flag-ca"},{name:"Cocos (keeling) Islands Flag",unified:"1F1E8-1F1E8",keywords:["flag_cocos_islands","cocos","keeling","islands","flag","nation","country","banner"],sheet:[1,12],shortName:"flag-cc"},{name:"Congo - Kinshasa Flag",unified:"1F1E8-1F1E9",keywords:["flag_congo_kinshasa","congo","democratic","republic","flag","nation","country","banner"],sheet:[1,13],shortName:"flag-cd"},{name:"Central African Republic Flag",unified:"1F1E8-1F1EB",keywords:["flag_central_african_republic","central","african","republic","flag","nation","country","banner"],sheet:[1,14],shortName:"flag-cf"},{name:"Congo - Brazzaville Flag",unified:"1F1E8-1F1EC",keywords:["flag_congo_brazzaville","congo","flag","nation","country","banner"],sheet:[1,15],shortName:"flag-cg"},{name:"Switzerland Flag",unified:"1F1E8-1F1ED",keywords:["flag_switzerland","ch","flag","nation","country","banner"],sheet:[1,16],shortName:"flag-ch"},{name:"C\xf4te D\u2019ivoire Flag",unified:"1F1E8-1F1EE",keywords:["flag_cote_d_ivoire","ivory","coast","flag","nation","country","banner"],sheet:[1,17],shortName:"flag-ci"},{name:"Cook Islands Flag",unified:"1F1E8-1F1F0",keywords:["flag_cook_islands","cook","islands","flag","nation","country","banner"],sheet:[1,18],shortName:"flag-ck"},{name:"Chile Flag",unified:"1F1E8-1F1F1",keywords:["flag_chile","flag","nation","country","banner"],sheet:[1,19],shortName:"flag-cl"},{name:"Cameroon Flag",unified:"1F1E8-1F1F2",keywords:["flag_cameroon","cm","flag","nation","country","banner"],sheet:[1,20],shortName:"flag-cm"},{name:"China Flag",unified:"1F1E8-1F1F3",keywords:["flag_china","china","chinese","prc","flag","country","nation","banner"],sheet:[1,21],shortNames:["flag-cn"],shortName:"cn"},{name:"Colombia Flag",unified:"1F1E8-1F1F4",keywords:["flag_colombia","co","flag","nation","country","banner"],sheet:[1,22],shortName:"flag-co"},{name:"Clipperton Island Flag",unified:"1F1E8-1F1F5",keywords:["flag_clipperton_island"],sheet:[1,23],shortName:"flag-cp"},{name:"Costa Rica Flag",unified:"1F1E8-1F1F7",keywords:["flag_costa_rica","costa","rica","flag","nation","country","banner"],sheet:[1,24],shortName:"flag-cr"},{name:"Cuba Flag",unified:"1F1E8-1F1FA",keywords:["flag_cuba","cu","flag","nation","country","banner"],sheet:[1,25],shortName:"flag-cu"},{name:"Cape Verde Flag",unified:"1F1E8-1F1FB",keywords:["flag_cape_verde","cabo","verde","flag","nation","country","banner"],sheet:[1,26],shortName:"flag-cv"},{name:"Cura\xe7ao Flag",unified:"1F1E8-1F1FC",keywords:["flag_curacao","cura\xe7ao","flag","nation","country","banner"],sheet:[1,27],shortName:"flag-cw"},{name:"Christmas Island Flag",unified:"1F1E8-1F1FD",keywords:["flag_christmas_island","christmas","island","flag","nation","country","banner"],sheet:[1,28],shortName:"flag-cx"},{name:"Cyprus Flag",unified:"1F1E8-1F1FE",keywords:["flag_cyprus","cy","flag","nation","country","banner"],sheet:[1,29],shortName:"flag-cy"},{name:"Czechia Flag",unified:"1F1E8-1F1FF",keywords:["flag_czechia","cz","flag","nation","country","banner"],sheet:[1,30],shortName:"flag-cz"},{name:"Germany Flag",unified:"1F1E9-1F1EA",keywords:["flag_germany","german","nation","flag","country","banner"],sheet:[1,31],shortNames:["flag-de"],shortName:"de"},{name:"Diego Garcia Flag",unified:"1F1E9-1F1EC",keywords:["flag_diego_garcia"],sheet:[1,32],shortName:"flag-dg"},{name:"Djibouti Flag",unified:"1F1E9-1F1EF",keywords:["flag_djibouti","dj","flag","nation","country","banner"],sheet:[1,33],shortName:"flag-dj"},{name:"Denmark Flag",unified:"1F1E9-1F1F0",keywords:["flag_denmark","dk","flag","nation","country","banner"],sheet:[1,34],shortName:"flag-dk"},{name:"Dominica Flag",unified:"1F1E9-1F1F2",keywords:["flag_dominica","dm","flag","nation","country","banner"],sheet:[1,35],shortName:"flag-dm"},{name:"Dominican Republic Flag",unified:"1F1E9-1F1F4",keywords:["flag_dominican_republic","dominican","republic","flag","nation","country","banner"],sheet:[1,36],shortName:"flag-do"},{name:"Algeria Flag",unified:"1F1E9-1F1FF",keywords:["flag_algeria","dz","flag","nation","country","banner"],sheet:[1,37],shortName:"flag-dz"},{name:"Ceuta & Melilla Flag",unified:"1F1EA-1F1E6",keywords:["flag_ceuta_melilla"],sheet:[1,38],shortName:"flag-ea"},{name:"Ecuador Flag",unified:"1F1EA-1F1E8",keywords:["flag_ecuador","ec","flag","nation","country","banner"],sheet:[1,39],shortName:"flag-ec"},{name:"Estonia Flag",unified:"1F1EA-1F1EA",keywords:["flag_estonia","ee","flag","nation","country","banner"],sheet:[1,40],shortName:"flag-ee"},{name:"Egypt Flag",unified:"1F1EA-1F1EC",keywords:["flag_egypt","eg","flag","nation","country","banner"],sheet:[1,41],shortName:"flag-eg"},{name:"Western Sahara Flag",unified:"1F1EA-1F1ED",keywords:["flag_western_sahara","western","sahara","flag","nation","country","banner"],sheet:[1,42],shortName:"flag-eh"},{name:"Eritrea Flag",unified:"1F1EA-1F1F7",keywords:["flag_eritrea","er","flag","nation","country","banner"],sheet:[1,43],shortName:"flag-er"},{name:"Spain Flag",unified:"1F1EA-1F1F8",keywords:["flag_spain","spain","flag","nation","country","banner"],sheet:[1,44],shortNames:["flag-es"],shortName:"es"},{name:"Ethiopia Flag",unified:"1F1EA-1F1F9",keywords:["flag_ethiopia","et","flag","nation","country","banner"],sheet:[1,45],shortName:"flag-et"},{name:"European Union Flag",unified:"1F1EA-1F1FA",keywords:["flag_european_union","european","union","flag","banner"],sheet:[1,46],shortName:"flag-eu"},{name:"Finland Flag",unified:"1F1EB-1F1EE",keywords:["flag_finland","fi","flag","nation","country","banner"],sheet:[1,47],shortName:"flag-fi"},{name:"Fiji Flag",unified:"1F1EB-1F1EF",keywords:["flag_fiji","fj","flag","nation","country","banner"],sheet:[1,48],shortName:"flag-fj"},{name:"Falkland Islands Flag",unified:"1F1EB-1F1F0",keywords:["flag_falkland_islands","falkland","islands","malvinas","flag","nation","country","banner"],sheet:[1,49],shortName:"flag-fk"},{name:"Micronesia Flag",unified:"1F1EB-1F1F2",keywords:["flag_micronesia","micronesia","federated","states","flag","nation","country","banner"],sheet:[1,50],shortName:"flag-fm"},{name:"Faroe Islands Flag",unified:"1F1EB-1F1F4",keywords:["flag_faroe_islands","faroe","islands","flag","nation","country","banner"],sheet:[1,51],shortName:"flag-fo"},{name:"France Flag",unified:"1F1EB-1F1F7",keywords:["flag_france","banner","flag","nation","france","french","country"],sheet:[1,52],shortNames:["flag-fr"],shortName:"fr"},{name:"Gabon Flag",unified:"1F1EC-1F1E6",keywords:["flag_gabon","ga","flag","nation","country","banner"],sheet:[1,53],shortName:"flag-ga"},{name:"United Kingdom Flag",unified:"1F1EC-1F1E7",keywords:["flag_united_kingdom","united","kingdom","great","britain","northern","ireland","flag","nation","country","banner","british","UK","english","england","union jack"],sheet:[1,54],shortNames:["uk","flag-gb"],shortName:"gb"},{name:"Grenada Flag",unified:"1F1EC-1F1E9",keywords:["flag_grenada","gd","flag","nation","country","banner"],sheet:[1,55],shortName:"flag-gd"},{name:"Georgia Flag",unified:"1F1EC-1F1EA",keywords:["flag_georgia","ge","flag","nation","country","banner"],sheet:[1,56],shortName:"flag-ge"},{name:"French Guiana Flag",unified:"1F1EC-1F1EB",keywords:["flag_french_guiana","french","guiana","flag","nation","country","banner"],sheet:[1,57],shortName:"flag-gf"},{name:"Guernsey Flag",unified:"1F1EC-1F1EC",keywords:["flag_guernsey","gg","flag","nation","country","banner"],sheet:[2,0],shortName:"flag-gg"},{name:"Ghana Flag",unified:"1F1EC-1F1ED",keywords:["flag_ghana","gh","flag","nation","country","banner"],sheet:[2,1],shortName:"flag-gh"},{name:"Gibraltar Flag",unified:"1F1EC-1F1EE",keywords:["flag_gibraltar","gi","flag","nation","country","banner"],sheet:[2,2],shortName:"flag-gi"},{name:"Greenland Flag",unified:"1F1EC-1F1F1",keywords:["flag_greenland","gl","flag","nation","country","banner"],sheet:[2,3],shortName:"flag-gl"},{name:"Gambia Flag",unified:"1F1EC-1F1F2",keywords:["flag_gambia","gm","flag","nation","country","banner"],sheet:[2,4],shortName:"flag-gm"},{name:"Guinea Flag",unified:"1F1EC-1F1F3",keywords:["flag_guinea","gn","flag","nation","country","banner"],sheet:[2,5],shortName:"flag-gn"},{name:"Guadeloupe Flag",unified:"1F1EC-1F1F5",keywords:["flag_guadeloupe","gp","flag","nation","country","banner"],sheet:[2,6],shortName:"flag-gp"},{name:"Equatorial Guinea Flag",unified:"1F1EC-1F1F6",keywords:["flag_equatorial_guinea","equatorial","gn","flag","nation","country","banner"],sheet:[2,7],shortName:"flag-gq"},{name:"Greece Flag",unified:"1F1EC-1F1F7",keywords:["flag_greece","gr","flag","nation","country","banner"],sheet:[2,8],shortName:"flag-gr"},{name:"South Georgia & South Sandwich Islands Flag",unified:"1F1EC-1F1F8",keywords:["flag_south_georgia_south_sandwich_islands","south","georgia","sandwich","islands","flag","nation","country","banner"],sheet:[2,9],shortName:"flag-gs"},{name:"Guatemala Flag",unified:"1F1EC-1F1F9",keywords:["flag_guatemala","gt","flag","nation","country","banner"],sheet:[2,10],shortName:"flag-gt"},{name:"Guam Flag",unified:"1F1EC-1F1FA",keywords:["flag_guam","gu","flag","nation","country","banner"],sheet:[2,11],shortName:"flag-gu"},{name:"Guinea-Bissau Flag",unified:"1F1EC-1F1FC",keywords:["flag_guinea_bissau","gw","bissau","flag","nation","country","banner"],sheet:[2,12],shortName:"flag-gw"},{name:"Guyana Flag",unified:"1F1EC-1F1FE",keywords:["flag_guyana","gy","flag","nation","country","banner"],sheet:[2,13],shortName:"flag-gy"},{name:"Hong Kong Sar China Flag",unified:"1F1ED-1F1F0",keywords:["flag_hong_kong_sar_china","hong","kong","flag","nation","country","banner"],sheet:[2,14],shortName:"flag-hk"},{name:"Heard & Mcdonald Islands Flag",unified:"1F1ED-1F1F2",keywords:["flag_heard_mcdonald_islands"],sheet:[2,15],shortName:"flag-hm"},{name:"Honduras Flag",unified:"1F1ED-1F1F3",keywords:["flag_honduras","hn","flag","nation","country","banner"],sheet:[2,16],shortName:"flag-hn"},{name:"Croatia Flag",unified:"1F1ED-1F1F7",keywords:["flag_croatia","hr","flag","nation","country","banner"],sheet:[2,17],shortName:"flag-hr"},{name:"Haiti Flag",unified:"1F1ED-1F1F9",keywords:["flag_haiti","ht","flag","nation","country","banner"],sheet:[2,18],shortName:"flag-ht"},{name:"Hungary Flag",unified:"1F1ED-1F1FA",keywords:["flag_hungary","hu","flag","nation","country","banner"],sheet:[2,19],shortName:"flag-hu"},{name:"Canary Islands Flag",unified:"1F1EE-1F1E8",keywords:["flag_canary_islands","canary","islands","flag","nation","country","banner"],sheet:[2,20],shortName:"flag-ic"},{name:"Indonesia Flag",unified:"1F1EE-1F1E9",keywords:["flag_indonesia","flag","nation","country","banner"],sheet:[2,21],shortName:"flag-id"},{name:"Ireland Flag",unified:"1F1EE-1F1EA",keywords:["flag_ireland","ie","flag","nation","country","banner"],sheet:[2,22],shortName:"flag-ie"},{name:"Israel Flag",unified:"1F1EE-1F1F1",keywords:["flag_israel","il","flag","nation","country","banner"],sheet:[2,23],shortName:"flag-il"},{name:"Isle of Man Flag",unified:"1F1EE-1F1F2",keywords:["flag_isle_of_man","isle","man","flag","nation","country","banner"],sheet:[2,24],shortName:"flag-im"},{name:"India Flag",unified:"1F1EE-1F1F3",keywords:["flag_india","in","flag","nation","country","banner"],sheet:[2,25],shortName:"flag-in"},{name:"British Indian Ocean Territory Flag",unified:"1F1EE-1F1F4",keywords:["flag_british_indian_ocean_territory","british","indian","ocean","territory","flag","nation","country","banner"],sheet:[2,26],shortName:"flag-io"},{name:"Iraq Flag",unified:"1F1EE-1F1F6",keywords:["flag_iraq","iq","flag","nation","country","banner"],sheet:[2,27],shortName:"flag-iq"},{name:"Iran Flag",unified:"1F1EE-1F1F7",keywords:["flag_iran","iran","islamic","republic","flag","nation","country","banner"],sheet:[2,28],shortName:"flag-ir"},{name:"Iceland Flag",unified:"1F1EE-1F1F8",keywords:["flag_iceland","is","flag","nation","country","banner"],sheet:[2,29],shortName:"flag-is"},{name:"Italy Flag",unified:"1F1EE-1F1F9",keywords:["flag_italy","italy","flag","nation","country","banner"],sheet:[2,30],shortNames:["flag-it"],shortName:"it"},{name:"Jersey Flag",unified:"1F1EF-1F1EA",keywords:["flag_jersey","je","flag","nation","country","banner"],sheet:[2,31],shortName:"flag-je"},{name:"Jamaica Flag",unified:"1F1EF-1F1F2",keywords:["flag_jamaica","jm","flag","nation","country","banner"],sheet:[2,32],shortName:"flag-jm"},{name:"Jordan Flag",unified:"1F1EF-1F1F4",keywords:["flag_jordan","jo","flag","nation","country","banner"],sheet:[2,33],shortName:"flag-jo"},{name:"Japan Flag",unified:"1F1EF-1F1F5",keywords:["flag_japan","japanese","nation","flag","country","banner"],sheet:[2,34],shortNames:["flag-jp"],shortName:"jp"},{name:"Kenya Flag",unified:"1F1F0-1F1EA",keywords:["flag_kenya","ke","flag","nation","country","banner"],sheet:[2,35],shortName:"flag-ke"},{name:"Kyrgyzstan Flag",unified:"1F1F0-1F1EC",keywords:["flag_kyrgyzstan","kg","flag","nation","country","banner"],sheet:[2,36],shortName:"flag-kg"},{name:"Cambodia Flag",unified:"1F1F0-1F1ED",keywords:["flag_cambodia","kh","flag","nation","country","banner"],sheet:[2,37],shortName:"flag-kh"},{name:"Kiribati Flag",unified:"1F1F0-1F1EE",keywords:["flag_kiribati","ki","flag","nation","country","banner"],sheet:[2,38],shortName:"flag-ki"},{name:"Comoros Flag",unified:"1F1F0-1F1F2",keywords:["flag_comoros","km","flag","nation","country","banner"],sheet:[2,39],shortName:"flag-km"},{name:"St. Kitts & Nevis Flag",unified:"1F1F0-1F1F3",keywords:["flag_st_kitts_nevis","saint","kitts","nevis","flag","nation","country","banner"],sheet:[2,40],shortName:"flag-kn"},{name:"North Korea Flag",unified:"1F1F0-1F1F5",keywords:["flag_north_korea","north","korea","nation","flag","country","banner"],sheet:[2,41],shortName:"flag-kp"},{name:"South Korea Flag",unified:"1F1F0-1F1F7",keywords:["flag_south_korea","south","korea","nation","flag","country","banner"],sheet:[2,42],shortNames:["flag-kr"],shortName:"kr"},{name:"Kuwait Flag",unified:"1F1F0-1F1FC",keywords:["flag_kuwait","kw","flag","nation","country","banner"],sheet:[2,43],shortName:"flag-kw"},{name:"Cayman Islands Flag",unified:"1F1F0-1F1FE",keywords:["flag_cayman_islands","cayman","islands","flag","nation","country","banner"],sheet:[2,44],shortName:"flag-ky"},{name:"Kazakhstan Flag",unified:"1F1F0-1F1FF",keywords:["flag_kazakhstan","kz","flag","nation","country","banner"],sheet:[2,45],shortName:"flag-kz"},{name:"Laos Flag",unified:"1F1F1-1F1E6",keywords:["flag_laos","lao","democratic","republic","flag","nation","country","banner"],sheet:[2,46],shortName:"flag-la"},{name:"Lebanon Flag",unified:"1F1F1-1F1E7",keywords:["flag_lebanon","lb","flag","nation","country","banner"],sheet:[2,47],shortName:"flag-lb"},{name:"St. Lucia Flag",unified:"1F1F1-1F1E8",keywords:["flag_st_lucia","saint","lucia","flag","nation","country","banner"],sheet:[2,48],shortName:"flag-lc"},{name:"Liechtenstein Flag",unified:"1F1F1-1F1EE",keywords:["flag_liechtenstein","li","flag","nation","country","banner"],sheet:[2,49],shortName:"flag-li"},{name:"Sri Lanka Flag",unified:"1F1F1-1F1F0",keywords:["flag_sri_lanka","sri","lanka","flag","nation","country","banner"],sheet:[2,50],shortName:"flag-lk"},{name:"Liberia Flag",unified:"1F1F1-1F1F7",keywords:["flag_liberia","lr","flag","nation","country","banner"],sheet:[2,51],shortName:"flag-lr"},{name:"Lesotho Flag",unified:"1F1F1-1F1F8",keywords:["flag_lesotho","ls","flag","nation","country","banner"],sheet:[2,52],shortName:"flag-ls"},{name:"Lithuania Flag",unified:"1F1F1-1F1F9",keywords:["flag_lithuania","lt","flag","nation","country","banner"],sheet:[2,53],shortName:"flag-lt"},{name:"Luxembourg Flag",unified:"1F1F1-1F1FA",keywords:["flag_luxembourg","lu","flag","nation","country","banner"],sheet:[2,54],shortName:"flag-lu"},{name:"Latvia Flag",unified:"1F1F1-1F1FB",keywords:["flag_latvia","lv","flag","nation","country","banner"],sheet:[2,55],shortName:"flag-lv"},{name:"Libya Flag",unified:"1F1F1-1F1FE",keywords:["flag_libya","ly","flag","nation","country","banner"],sheet:[2,56],shortName:"flag-ly"},{name:"Morocco Flag",unified:"1F1F2-1F1E6",keywords:["flag_morocco","ma","flag","nation","country","banner"],sheet:[2,57],shortName:"flag-ma"},{name:"Monaco Flag",unified:"1F1F2-1F1E8",keywords:["flag_monaco","mc","flag","nation","country","banner"],sheet:[3,0],shortName:"flag-mc"},{name:"Moldova Flag",unified:"1F1F2-1F1E9",keywords:["flag_moldova","moldova","republic","flag","nation","country","banner"],sheet:[3,1],shortName:"flag-md"},{name:"Montenegro Flag",unified:"1F1F2-1F1EA",keywords:["flag_montenegro","me","flag","nation","country","banner"],sheet:[3,2],shortName:"flag-me"},{name:"St. Martin Flag",unified:"1F1F2-1F1EB",keywords:["flag_st_martin"],sheet:[3,3],shortName:"flag-mf"},{name:"Madagascar Flag",unified:"1F1F2-1F1EC",keywords:["flag_madagascar","mg","flag","nation","country","banner"],sheet:[3,4],shortName:"flag-mg"},{name:"Marshall Islands Flag",unified:"1F1F2-1F1ED",keywords:["flag_marshall_islands","marshall","islands","flag","nation","country","banner"],sheet:[3,5],shortName:"flag-mh"},{name:"North Macedonia Flag",unified:"1F1F2-1F1F0",keywords:["flag_north_macedonia","macedonia","flag","nation","country","banner"],sheet:[3,6],shortName:"flag-mk"},{name:"Mali Flag",unified:"1F1F2-1F1F1",keywords:["flag_mali","ml","flag","nation","country","banner"],sheet:[3,7],shortName:"flag-ml"},{name:"Myanmar (burma) Flag",unified:"1F1F2-1F1F2",keywords:["flag_myanmar","mm","flag","nation","country","banner"],sheet:[3,8],shortName:"flag-mm"},{name:"Mongolia Flag",unified:"1F1F2-1F1F3",keywords:["flag_mongolia","mn","flag","nation","country","banner"],sheet:[3,9],shortName:"flag-mn"},{name:"Macao Sar China Flag",unified:"1F1F2-1F1F4",keywords:["flag_macao_sar_china","macao","flag","nation","country","banner"],sheet:[3,10],shortName:"flag-mo"},{name:"Northern Mariana Islands Flag",unified:"1F1F2-1F1F5",keywords:["flag_northern_mariana_islands","northern","mariana","islands","flag","nation","country","banner"],sheet:[3,11],shortName:"flag-mp"},{name:"Martinique Flag",unified:"1F1F2-1F1F6",keywords:["flag_martinique","mq","flag","nation","country","banner"],sheet:[3,12],shortName:"flag-mq"},{name:"Mauritania Flag",unified:"1F1F2-1F1F7",keywords:["flag_mauritania","mr","flag","nation","country","banner"],sheet:[3,13],shortName:"flag-mr"},{name:"Montserrat Flag",unified:"1F1F2-1F1F8",keywords:["flag_montserrat","ms","flag","nation","country","banner"],sheet:[3,14],shortName:"flag-ms"},{name:"Malta Flag",unified:"1F1F2-1F1F9",keywords:["flag_malta","mt","flag","nation","country","banner"],sheet:[3,15],shortName:"flag-mt"},{name:"Mauritius Flag",unified:"1F1F2-1F1FA",keywords:["flag_mauritius","mu","flag","nation","country","banner"],sheet:[3,16],shortName:"flag-mu"},{name:"Maldives Flag",unified:"1F1F2-1F1FB",keywords:["flag_maldives","mv","flag","nation","country","banner"],sheet:[3,17],shortName:"flag-mv"},{name:"Malawi Flag",unified:"1F1F2-1F1FC",keywords:["flag_malawi","mw","flag","nation","country","banner"],sheet:[3,18],shortName:"flag-mw"},{name:"Mexico Flag",unified:"1F1F2-1F1FD",keywords:["flag_mexico","mx","flag","nation","country","banner"],sheet:[3,19],shortName:"flag-mx"},{name:"Malaysia Flag",unified:"1F1F2-1F1FE",keywords:["flag_malaysia","my","flag","nation","country","banner"],sheet:[3,20],shortName:"flag-my"},{name:"Mozambique Flag",unified:"1F1F2-1F1FF",keywords:["flag_mozambique","mz","flag","nation","country","banner"],sheet:[3,21],shortName:"flag-mz"},{name:"Namibia Flag",unified:"1F1F3-1F1E6",keywords:["flag_namibia","na","flag","nation","country","banner"],sheet:[3,22],shortName:"flag-na"},{name:"New Caledonia Flag",unified:"1F1F3-1F1E8",keywords:["flag_new_caledonia","new","caledonia","flag","nation","country","banner"],sheet:[3,23],shortName:"flag-nc"},{name:"Niger Flag",unified:"1F1F3-1F1EA",keywords:["flag_niger","ne","flag","nation","country","banner"],sheet:[3,24],shortName:"flag-ne"},{name:"Norfolk Island Flag",unified:"1F1F3-1F1EB",keywords:["flag_norfolk_island","norfolk","island","flag","nation","country","banner"],sheet:[3,25],shortName:"flag-nf"},{name:"Nigeria Flag",unified:"1F1F3-1F1EC",keywords:["flag_nigeria","flag","nation","country","banner"],sheet:[3,26],shortName:"flag-ng"},{name:"Nicaragua Flag",unified:"1F1F3-1F1EE",keywords:["flag_nicaragua","ni","flag","nation","country","banner"],sheet:[3,27],shortName:"flag-ni"},{name:"Netherlands Flag",unified:"1F1F3-1F1F1",keywords:["flag_netherlands","nl","flag","nation","country","banner"],sheet:[3,28],shortName:"flag-nl"},{name:"Norway Flag",unified:"1F1F3-1F1F4",keywords:["flag_norway","no","flag","nation","country","banner"],sheet:[3,29],shortName:"flag-no"},{name:"Nepal Flag",unified:"1F1F3-1F1F5",keywords:["flag_nepal","np","flag","nation","country","banner"],sheet:[3,30],shortName:"flag-np"},{name:"Nauru Flag",unified:"1F1F3-1F1F7",keywords:["flag_nauru","nr","flag","nation","country","banner"],sheet:[3,31],shortName:"flag-nr"},{name:"Niue Flag",unified:"1F1F3-1F1FA",keywords:["flag_niue","nu","flag","nation","country","banner"],sheet:[3,32],shortName:"flag-nu"},{name:"New Zealand Flag",unified:"1F1F3-1F1FF",keywords:["flag_new_zealand","new","zealand","flag","nation","country","banner"],sheet:[3,33],shortName:"flag-nz"},{name:"Oman Flag",unified:"1F1F4-1F1F2",keywords:["flag_oman","om_symbol","flag","nation","country","banner"],sheet:[3,34],shortName:"flag-om"},{name:"Panama Flag",unified:"1F1F5-1F1E6",keywords:["flag_panama","pa","flag","nation","country","banner"],sheet:[3,35],shortName:"flag-pa"},{name:"Peru Flag",unified:"1F1F5-1F1EA",keywords:["flag_peru","pe","flag","nation","country","banner"],sheet:[3,36],shortName:"flag-pe"},{name:"French Polynesia Flag",unified:"1F1F5-1F1EB",keywords:["flag_french_polynesia","french","polynesia","flag","nation","country","banner"],sheet:[3,37],shortName:"flag-pf"},{name:"Papua New Guinea Flag",unified:"1F1F5-1F1EC",keywords:["flag_papua_new_guinea","papua","new","guinea","flag","nation","country","banner"],sheet:[3,38],shortName:"flag-pg"},{name:"Philippines Flag",unified:"1F1F5-1F1ED",keywords:["flag_philippines","ph","flag","nation","country","banner"],sheet:[3,39],shortName:"flag-ph"},{name:"Pakistan Flag",unified:"1F1F5-1F1F0",keywords:["flag_pakistan","pk","flag","nation","country","banner"],sheet:[3,40],shortName:"flag-pk"},{name:"Poland Flag",unified:"1F1F5-1F1F1",keywords:["flag_poland","pl","flag","nation","country","banner"],sheet:[3,41],shortName:"flag-pl"},{name:"St. Pierre & Miquelon Flag",unified:"1F1F5-1F1F2",keywords:["flag_st_pierre_miquelon","saint","pierre","miquelon","flag","nation","country","banner"],sheet:[3,42],shortName:"flag-pm"},{name:"Pitcairn Islands Flag",unified:"1F1F5-1F1F3",keywords:["flag_pitcairn_islands","pitcairn","flag","nation","country","banner"],sheet:[3,43],shortName:"flag-pn"},{name:"Puerto Rico Flag",unified:"1F1F5-1F1F7",keywords:["flag_puerto_rico","puerto","rico","flag","nation","country","banner"],sheet:[3,44],shortName:"flag-pr"},{name:"Palestinian Territories Flag",unified:"1F1F5-1F1F8",keywords:["flag_palestinian_territories","palestine","palestinian","territories","flag","nation","country","banner"],sheet:[3,45],shortName:"flag-ps"},{name:"Portugal Flag",unified:"1F1F5-1F1F9",keywords:["flag_portugal","pt","flag","nation","country","banner"],sheet:[3,46],shortName:"flag-pt"},{name:"Palau Flag",unified:"1F1F5-1F1FC",keywords:["flag_palau","pw","flag","nation","country","banner"],sheet:[3,47],shortName:"flag-pw"},{name:"Paraguay Flag",unified:"1F1F5-1F1FE",keywords:["flag_paraguay","py","flag","nation","country","banner"],sheet:[3,48],shortName:"flag-py"},{name:"Qatar Flag",unified:"1F1F6-1F1E6",keywords:["flag_qatar","qa","flag","nation","country","banner"],sheet:[3,49],shortName:"flag-qa"},{name:"R\xe9union Flag",unified:"1F1F7-1F1EA",keywords:["flag_reunion","r\xe9union","flag","nation","country","banner"],sheet:[3,50],shortName:"flag-re"},{name:"Romania Flag",unified:"1F1F7-1F1F4",keywords:["flag_romania","ro","flag","nation","country","banner"],sheet:[3,51],shortName:"flag-ro"},{name:"Serbia Flag",unified:"1F1F7-1F1F8",keywords:["flag_serbia","rs","flag","nation","country","banner"],sheet:[3,52],shortName:"flag-rs"},{name:"Russia Flag",unified:"1F1F7-1F1FA",keywords:["flag_russia","russian","federation","flag","nation","country","banner"],sheet:[3,53],shortNames:["flag-ru"],shortName:"ru"},{name:"Rwanda Flag",unified:"1F1F7-1F1FC",keywords:["flag_rwanda","rw","flag","nation","country","banner"],sheet:[3,54],shortName:"flag-rw"},{name:"Saudi Arabia Flag",unified:"1F1F8-1F1E6",keywords:["flag_saudi_arabia","flag","nation","country","banner"],sheet:[3,55],shortName:"flag-sa"},{name:"Solomon Islands Flag",unified:"1F1F8-1F1E7",keywords:["flag_solomon_islands","solomon","islands","flag","nation","country","banner"],sheet:[3,56],shortName:"flag-sb"},{name:"Seychelles Flag",unified:"1F1F8-1F1E8",keywords:["flag_seychelles","sc","flag","nation","country","banner"],sheet:[3,57],shortName:"flag-sc"},{name:"Sudan Flag",unified:"1F1F8-1F1E9",keywords:["flag_sudan","sd","flag","nation","country","banner"],sheet:[4,0],shortName:"flag-sd"},{name:"Sweden Flag",unified:"1F1F8-1F1EA",keywords:["flag_sweden","se","flag","nation","country","banner"],sheet:[4,1],shortName:"flag-se"},{name:"Singapore Flag",unified:"1F1F8-1F1EC",keywords:["flag_singapore","sg","flag","nation","country","banner"],sheet:[4,2],shortName:"flag-sg"},{name:"St. Helena Flag",unified:"1F1F8-1F1ED",keywords:["flag_st_helena","saint","helena","ascension","tristan","cunha","flag","nation","country","banner"],sheet:[4,3],shortName:"flag-sh"},{name:"Slovenia Flag",unified:"1F1F8-1F1EE",keywords:["flag_slovenia","si","flag","nation","country","banner"],sheet:[4,4],shortName:"flag-si"},{name:"Svalbard & Jan Mayen Flag",unified:"1F1F8-1F1EF",keywords:["flag_svalbard_jan_mayen"],sheet:[4,5],shortName:"flag-sj"},{name:"Slovakia Flag",unified:"1F1F8-1F1F0",keywords:["flag_slovakia","sk","flag","nation","country","banner"],sheet:[4,6],shortName:"flag-sk"},{name:"Sierra Leone Flag",unified:"1F1F8-1F1F1",keywords:["flag_sierra_leone","sierra","leone","flag","nation","country","banner"],sheet:[4,7],shortName:"flag-sl"},{name:"San Marino Flag",unified:"1F1F8-1F1F2",keywords:["flag_san_marino","san","marino","flag","nation","country","banner"],sheet:[4,8],shortName:"flag-sm"},{name:"Senegal Flag",unified:"1F1F8-1F1F3",keywords:["flag_senegal","sn","flag","nation","country","banner"],sheet:[4,9],shortName:"flag-sn"},{name:"Somalia Flag",unified:"1F1F8-1F1F4",keywords:["flag_somalia","so","flag","nation","country","banner"],sheet:[4,10],shortName:"flag-so"},{name:"Suriname Flag",unified:"1F1F8-1F1F7",keywords:["flag_suriname","sr","flag","nation","country","banner"],sheet:[4,11],shortName:"flag-sr"},{name:"South Sudan Flag",unified:"1F1F8-1F1F8",keywords:["flag_south_sudan","south","sd","flag","nation","country","banner"],sheet:[4,12],shortName:"flag-ss"},{name:"S\xe3o Tom\xe9 & Pr\xedncipe Flag",unified:"1F1F8-1F1F9",keywords:["flag_sao_tome_principe","sao","tome","principe","flag","nation","country","banner"],sheet:[4,13],shortName:"flag-st"},{name:"El Salvador Flag",unified:"1F1F8-1F1FB",keywords:["flag_el_salvador","el","salvador","flag","nation","country","banner"],sheet:[4,14],shortName:"flag-sv"},{name:"Sint Maarten Flag",unified:"1F1F8-1F1FD",keywords:["flag_sint_maarten","sint","maarten","dutch","flag","nation","country","banner"],sheet:[4,15],shortName:"flag-sx"},{name:"Syria Flag",unified:"1F1F8-1F1FE",keywords:["flag_syria","syrian","arab","republic","flag","nation","country","banner"],sheet:[4,16],shortName:"flag-sy"},{name:"Eswatini Flag",unified:"1F1F8-1F1FF",keywords:["flag_eswatini","sz","flag","nation","country","banner"],sheet:[4,17],shortName:"flag-sz"},{name:"Tristan Da Cunha Flag",unified:"1F1F9-1F1E6",keywords:["flag_tristan_da_cunha"],sheet:[4,18],shortName:"flag-ta"},{name:"Turks & Caicos Islands Flag",unified:"1F1F9-1F1E8",keywords:["flag_turks_caicos_islands","turks","caicos","islands","flag","nation","country","banner"],sheet:[4,19],shortName:"flag-tc"},{name:"Chad Flag",unified:"1F1F9-1F1E9",keywords:["flag_chad","td","flag","nation","country","banner"],sheet:[4,20],shortName:"flag-td"},{name:"French Southern Territories Flag",unified:"1F1F9-1F1EB",keywords:["flag_french_southern_territories","french","southern","territories","flag","nation","country","banner"],sheet:[4,21],shortName:"flag-tf"},{name:"Togo Flag",unified:"1F1F9-1F1EC",keywords:["flag_togo","tg","flag","nation","country","banner"],sheet:[4,22],shortName:"flag-tg"},{name:"Thailand Flag",unified:"1F1F9-1F1ED",keywords:["flag_thailand","th","flag","nation","country","banner"],sheet:[4,23],shortName:"flag-th"},{name:"Tajikistan Flag",unified:"1F1F9-1F1EF",keywords:["flag_tajikistan","tj","flag","nation","country","banner"],sheet:[4,24],shortName:"flag-tj"},{name:"Tokelau Flag",unified:"1F1F9-1F1F0",keywords:["flag_tokelau","tk","flag","nation","country","banner"],sheet:[4,25],shortName:"flag-tk"},{name:"Timor-Leste Flag",unified:"1F1F9-1F1F1",keywords:["flag_timor_leste","timor","leste","flag","nation","country","banner"],sheet:[4,26],shortName:"flag-tl"},{name:"Turkmenistan Flag",unified:"1F1F9-1F1F2",keywords:["flag_turkmenistan","flag","nation","country","banner"],sheet:[4,27],shortName:"flag-tm"},{name:"Tunisia Flag",unified:"1F1F9-1F1F3",keywords:["flag_tunisia","tn","flag","nation","country","banner"],sheet:[4,28],shortName:"flag-tn"},{name:"Tonga Flag",unified:"1F1F9-1F1F4",keywords:["flag_tonga","to","flag","nation","country","banner"],sheet:[4,29],shortName:"flag-to"},{name:"Turkey Flag",unified:"1F1F9-1F1F7",keywords:["flag_turkey","turkey","flag","nation","country","banner"],sheet:[4,30],shortName:"flag-tr"},{name:"Trinidad & Tobago Flag",unified:"1F1F9-1F1F9",keywords:["flag_trinidad_tobago","trinidad","tobago","flag","nation","country","banner"],sheet:[4,31],shortName:"flag-tt"},{name:"Tuvalu Flag",unified:"1F1F9-1F1FB",keywords:["flag_tuvalu","flag","nation","country","banner"],sheet:[4,32],shortName:"flag-tv"},{name:"Taiwan Flag",unified:"1F1F9-1F1FC",keywords:["flag_taiwan","tw","flag","nation","country","banner"],sheet:[4,33],shortName:"flag-tw"},{name:"Tanzania Flag",unified:"1F1F9-1F1FF",keywords:["flag_tanzania","tanzania","united","republic","flag","nation","country","banner"],sheet:[4,34],shortName:"flag-tz"},{name:"Ukraine Flag",unified:"1F1FA-1F1E6",keywords:["flag_ukraine","ua","flag","nation","country","banner"],sheet:[4,35],shortName:"flag-ua"},{name:"Uganda Flag",unified:"1F1FA-1F1EC",keywords:["flag_uganda","ug","flag","nation","country","banner"],sheet:[4,36],shortName:"flag-ug"},{name:"U.s. Outlying Islands Flag",unified:"1F1FA-1F1F2",keywords:["flag_u_s_outlying_islands"],sheet:[4,37],shortName:"flag-um"},{name:"United Nations Flag",unified:"1F1FA-1F1F3",keywords:["flag_united_nations","un","flag","banner"],sheet:[4,38],shortName:"flag-un"},{name:"United States Flag",unified:"1F1FA-1F1F8",keywords:["flag_united_states","united","states","america","flag","nation","country","banner"],sheet:[4,39],shortNames:["flag-us"],shortName:"us"},{name:"Uruguay Flag",unified:"1F1FA-1F1FE",keywords:["flag_uruguay","uy","flag","nation","country","banner"],sheet:[4,40],shortName:"flag-uy"},{name:"Uzbekistan Flag",unified:"1F1FA-1F1FF",keywords:["flag_uzbekistan","uz","flag","nation","country","banner"],sheet:[4,41],shortName:"flag-uz"},{name:"Vatican City Flag",unified:"1F1FB-1F1E6",keywords:["flag_vatican_city","vatican","city","flag","nation","country","banner"],sheet:[4,42],shortName:"flag-va"},{name:"St. Vincent & Grenadines Flag",unified:"1F1FB-1F1E8",keywords:["flag_st_vincent_grenadines","saint","vincent","grenadines","flag","nation","country","banner"],sheet:[4,43],shortName:"flag-vc"},{name:"Venezuela Flag",unified:"1F1FB-1F1EA",keywords:["flag_venezuela","ve","bolivarian","republic","flag","nation","country","banner"],sheet:[4,44],shortName:"flag-ve"},{name:"British Virgin Islands Flag",unified:"1F1FB-1F1EC",keywords:["flag_british_virgin_islands","british","virgin","islands","bvi","flag","nation","country","banner"],sheet:[4,45],shortName:"flag-vg"},{name:"U.s. Virgin Islands Flag",unified:"1F1FB-1F1EE",keywords:["flag_u_s_virgin_islands","virgin","islands","us","flag","nation","country","banner"],sheet:[4,46],shortName:"flag-vi"},{name:"Vietnam Flag",unified:"1F1FB-1F1F3",keywords:["flag_vietnam","viet","nam","flag","nation","country","banner"],sheet:[4,47],shortName:"flag-vn"},{name:"Vanuatu Flag",unified:"1F1FB-1F1FA",keywords:["flag_vanuatu","vu","flag","nation","country","banner"],sheet:[4,48],shortName:"flag-vu"},{name:"Wallis & Futuna Flag",unified:"1F1FC-1F1EB",keywords:["flag_wallis_futuna","wallis","futuna","flag","nation","country","banner"],sheet:[4,49],shortName:"flag-wf"},{name:"Samoa Flag",unified:"1F1FC-1F1F8",keywords:["flag_samoa","ws","flag","nation","country","banner"],sheet:[4,50],shortName:"flag-ws"},{name:"Kosovo Flag",unified:"1F1FD-1F1F0",keywords:["flag_kosovo","xk","flag","nation","country","banner"],sheet:[4,51],shortName:"flag-xk"},{name:"Yemen Flag",unified:"1F1FE-1F1EA",keywords:["flag_yemen","ye","flag","nation","country","banner"],sheet:[4,52],shortName:"flag-ye"},{name:"Mayotte Flag",unified:"1F1FE-1F1F9",keywords:["flag_mayotte","yt","flag","nation","country","banner"],sheet:[4,53],shortName:"flag-yt"},{name:"South Africa Flag",unified:"1F1FF-1F1E6",keywords:["flag_south_africa","south","africa","flag","nation","country","banner"],sheet:[4,54],shortName:"flag-za"},{name:"Zambia Flag",unified:"1F1FF-1F1F2",keywords:["flag_zambia","zm","flag","nation","country","banner"],sheet:[4,55],shortName:"flag-zm"},{name:"Zimbabwe Flag",unified:"1F1FF-1F1FC",keywords:["flag_zimbabwe","zw","flag","nation","country","banner"],sheet:[4,56],shortName:"flag-zw"},{name:"England Flag",unified:"1F3F4-E0067-E0062-E0065-E006E-E0067-E007F",keywords:["flag_england","flag","english"],sheet:[11,4],shortName:"flag-england"},{name:"Scotland Flag",unified:"1F3F4-E0067-E0062-E0073-E0063-E0074-E007F",keywords:["flag_scotland","flag","scottish"],sheet:[11,5],shortName:"flag-scotland"},{name:"Wales Flag",unified:"1F3F4-E0067-E0062-E0077-E006C-E0073-E007F",keywords:["flag_wales","flag","welsh"],sheet:[11,6],shortName:"flag-wales"}],QDn=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,eEn=["1F3FA","1F3FB","1F3FC","1F3FD","1F3FE","1F3FF"],K7e=(t,n)=>`https://unpkg.com/emoji-datasource-${t}@6.0.1/img/${t}/sheets-256/${n}.png`;let sV=(()=>{class t{constructor(){this.uncompressed=!1,this.names={},this.emojis=[],this.uncompressed||(this.uncompress(JDn),this.uncompressed=!0)}uncompress(e){this.emojis=e.map(i=>{const r={...i};if(r.shortNames||(r.shortNames=[]),r.shortNames.unshift(r.shortName),r.id=r.shortName,r.native=this.unifiedToNative(r.unified),r.skinVariations||(r.skinVariations=[]),r.keywords||(r.keywords=[]),r.emoticons||(r.emoticons=[]),r.hidden||(r.hidden=[]),r.text||(r.text=""),r.obsoletes){const o=e.find(a=>a.unified===r.obsoletes);o&&(r.keywords=o.keywords?[...r.keywords,...o.keywords,o.shortName]:[...r.keywords,o.shortName])}this.names[r.unified]=r;for(const o of r.shortNames)this.names[o]=r;return r})}getData(e,i,r){let o;if("string"==typeof e){const s=e.match(QDn);if(s&&(e=s[1],s[2]&&(i=parseInt(s[2],10))),!this.names.hasOwnProperty(e))return null;o=this.names[e]}else e.id?o=this.names[e.id]:e.unified&&(o=this.names[e.unified.toUpperCase()]);if(o||(o=e,o.custom=!0),o.skinVariations&&o.skinVariations.length&&i&&i>1&&r){o={...o};const s=eEn[i-1],l=o.skinVariations.find(u=>u.unified.includes(s));(!l.hidden||!l.hidden.includes(r))&&(o.skinTone=i,o={...o,...l}),o.native=this.unifiedToNative(o.unified)}return o.set=r||"",o}unifiedToNative(e){const i=e.split("-").map(r=>parseInt(`0x${r}`,16));return String.fromCodePoint(...i)}emojiSpriteStyles(e,i="apple",r=24,o=64,a=57,s=K7e,l=58,u){const f=!!u;return{width:`${r}px`,height:`${r}px`,display:"inline-block","background-image":`url(${u=u||s(i,o)})`,"background-size":f?"100% 100%":`${100*l}% ${100*a}%`,"background-position":f?void 0:this.getSpritePosition(e,l)}}getSpritePosition(e,i){const[r,o]=e,a=100/(i-1);return`${a*r}% ${a*o}%`}sanitize(e){if(null===e)return null;let r=`:${e.id||e.shortNames[0]}:`;return e.skinTone&&(r+=`:skin-tone-${e.skinTone}:`),e.colons=r,{...e}}getSanitizedData(e,i,r){return this.sanitize(this.getData(e,i,r))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$7e=(()=>{class t{constructor(e){this.emojiService=e,this.skin=1,this.set="apple",this.sheetSize=64,this.isNative=!1,this.forceSize=!1,this.tooltip=!1,this.size=24,this.emoji="",this.hideObsolete=!1,this.emojiOver=new qi,this.emojiLeave=new qi,this.emojiClick=new qi,this.title=void 0,this.label="",this.custom=!1,this.isVisible=!0,this.backgroundImageFn=K7e}ngOnChanges(){if(!this.emoji)return this.isVisible=!1;const e=this.getData();if(!e)return this.isVisible=!1;if(this.unified=e.native||null,e.custom&&(this.custom=e.custom),!e.unified&&!e.custom)return this.isVisible=!1;if(this.tooltip&&(this.title=e.shortNames[0]),e.obsoletedBy&&this.hideObsolete)return this.isVisible=!1;if(this.label=[e.native].concat(e.shortNames).filter(Boolean).join(", "),this.isNative&&e.unified&&e.native)this.style={fontSize:`${this.size}px`},this.forceSize&&(this.style.display="inline-block",this.style.width=`${this.size}px`,this.style.height=`${this.size}px`,this.style["word-break"]="keep-all");else if(e.custom)this.style={width:`${this.size}px`,height:`${this.size}px`,display:"inline-block"},this.style=e.spriteUrl&&this.sheetRows&&this.sheetColumns?{...this.style,backgroundImage:`url(${e.spriteUrl})`,backgroundSize:`${100*this.sheetColumns}% ${100*this.sheetRows}%`,backgroundPosition:this.emojiService.getSpritePosition(e.sheet,this.sheetColumns)}:{...this.style,backgroundImage:`url(${e.imageUrl})`,backgroundSize:"contain"};else if(e.hidden.length&&e.hidden.includes(this.set)){if(!this.fallback)return this.isVisible=!1;this.style={fontSize:`${this.size}px`},this.unified=this.fallback(e,this)}else this.style=this.emojiService.emojiSpriteStyles(e.sheet,this.set,this.size,this.sheetSize,this.sheetRows,this.backgroundImageFn,this.sheetColumns,this.imageUrlFn?.(this.getData()));return this.isVisible=!0}getData(){return this.emojiService.getData(this.emoji,this.skin,this.set)}getSanitizedData(){return this.emojiService.getSanitizedData(this.emoji,this.skin,this.set)}handleClick(e){const i=this.getSanitizedData();this.emojiClick.emit({emoji:i,$event:e})}handleOver(e){const i=this.getSanitizedData();this.emojiOver.emit({emoji:i,$event:e})}handleLeave(e){const i=this.getSanitizedData();this.emojiLeave.emit({emoji:i,$event:e})}}return t.\u0275fac=function(e){return new(e||t)($(sV))},t.\u0275cmp=je({type:t,selectors:[["ngx-emoji"]],inputs:{skin:"skin",set:"set",sheetSize:"sheetSize",isNative:"isNative",forceSize:"forceSize",tooltip:"tooltip",size:"size",emoji:"emoji",fallback:"fallback",hideObsolete:"hideObsolete",sheetRows:"sheetRows",sheetColumns:"sheetColumns",useButton:"useButton",backgroundImageFn:"backgroundImageFn",imageUrlFn:"imageUrlFn"},outputs:{emojiOver:"emojiOver",emojiLeave:"emojiLeave",emojiClick:"emojiClick"},features:[hi],ngContentSelectors:G7e,decls:2,vars:2,consts:[["type","button","class","emoji-mart-emoji",3,"emoji-mart-emoji-native","emoji-mart-emoji-custom","click","mouseenter","mouseleave",4,"ngIf"],["class","emoji-mart-emoji",3,"emoji-mart-emoji-native","emoji-mart-emoji-custom","click","mouseenter","mouseleave",4,"ngIf"],["type","button",1,"emoji-mart-emoji",3,"click","mouseenter","mouseleave"],[3,"ngStyle"],[3,"ngIf"],[1,"emoji-mart-emoji",3,"click","mouseenter","mouseleave"]],template:function(e,i){1&e&&(nl(G7e),cn(0,YDn,4,8,"button",0),cn(1,XDn,4,8,"span",1)),2&e&&(Tt("ngIf",i.useButton&&i.isVisible),pt(1),Tt("ngIf",!i.useButton&&i.isVisible))},dependencies:[Tl,xE],encapsulation:2,changeDetection:0}),t})(),tEn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[ng]}),t})();function nEn(t,n){if(1&t){const e=Gi();Ot(0,"span",3),fn("click",function(r){Kn(e);const o=yt().index;return $n(yt().handleClick(r,o))}),Ot(1,"div"),vV(),Ot(2,"svg",4),li(3,"path"),Pt()(),function jte(){!function Tze(){Fr.lFrame.currentNamespace=null}()}(),li(4,"span",5),Pt()}if(2&t){const e=yt().$implicit,i=yt();Tx("color",e.name===i.selected?i.color:null),Ur("emoji-mart-anchor-selected",e.name===i.selected),es("title",i.i18n.categories[e.id]),pt(3),es("d",i.icons[e.id]),pt(1),Tx("background-color",i.color)}}function iEn(t,n){1&t&&cn(0,nEn,5,8,"span",2),2&t&&Tt("ngIf",!1!==n.$implicit.anchor)}const rEn=["container"],oEn=["label"];function aEn(t,n){if(1&t){const e=Gi();Ot(0,"ngx-emoji",9),fn("emojiOver",function(r){return Kn(e),$n(yt(3).emojiOver.emit(r))})("emojiLeave",function(r){return Kn(e),$n(yt(3).emojiLeave.emit(r))})("emojiClick",function(r){return Kn(e),$n(yt(3).emojiClick.emit(r))}),Pt()}if(2&t){const e=n.$implicit,i=yt(3);Tt("emoji",e)("size",i.emojiSize)("skin",i.emojiSkin)("isNative",i.emojiIsNative)("set",i.emojiSet)("sheetSize",i.emojiSheetSize)("forceSize",i.emojiForceSize)("tooltip",i.emojiTooltip)("backgroundImageFn",i.emojiBackgroundImageFn)("imageUrlFn",i.emojiImageUrlFn)("hideObsolete",i.hideObsolete)("useButton",i.emojiUseButton)}}function sEn(t,n){if(1&t&&(Ot(0,"div"),cn(1,aEn,1,12,"ngx-emoji",8),Pt()),2&t){const e=n.ngIf,i=yt(2);pt(1),Tt("ngForOf",e)("ngForTrackBy",i.trackById)}}function lEn(t,n){if(1&t&&(Ot(0,"div"),cn(1,sEn,2,2,"div",6),Nf(2,"async"),Pt()),2&t){const e=yt();pt(1),Tt("ngIf",Vf(2,1,e.filteredEmojis$))}}function uEn(t,n){if(1&t&&(Ot(0,"div")(1,"div"),li(2,"ngx-emoji",10),Pt(),Ot(3,"div",11),xi(4),Pt()()),2&t){const e=yt();pt(2),Tt("emoji",e.notFoundEmoji)("size",38)("skin",e.emojiSkin)("isNative",e.emojiIsNative)("set",e.emojiSet)("sheetSize",e.emojiSheetSize)("forceSize",e.emojiForceSize)("tooltip",e.emojiTooltip)("backgroundImageFn",e.emojiBackgroundImageFn)("useButton",e.emojiUseButton),pt(2),ca(" ",e.i18n.notfound," ")}}function dEn(t,n){if(1&t){const e=Gi();Ot(0,"ngx-emoji",9),fn("emojiOver",function(r){return Kn(e),$n(yt(2).emojiOver.emit(r))})("emojiLeave",function(r){return Kn(e),$n(yt(2).emojiLeave.emit(r))})("emojiClick",function(r){return Kn(e),$n(yt(2).emojiClick.emit(r))}),Pt()}if(2&t){const e=n.$implicit,i=yt(2);Tt("emoji",e)("size",i.emojiSize)("skin",i.emojiSkin)("isNative",i.emojiIsNative)("set",i.emojiSet)("sheetSize",i.emojiSheetSize)("forceSize",i.emojiForceSize)("tooltip",i.emojiTooltip)("backgroundImageFn",i.emojiBackgroundImageFn)("imageUrlFn",i.emojiImageUrlFn)("hideObsolete",i.hideObsolete)("useButton",i.emojiUseButton)}}function cEn(t,n){if(1&t&&cn(0,dEn,1,12,"ngx-emoji",8),2&t){const e=yt();Tt("ngForOf",e.emojisToDisplay)("ngForTrackBy",e.trackById)}}function hEn(t,n){if(1&t){const e=Gi();Ot(0,"span",2)(1,"span",3),fn("click",function(){const o=Kn(e).$implicit;return $n(yt().handleClick(o))})("keyup.enter",function(){const o=Kn(e).$implicit;return $n(yt().handleClick(o))})("keyup.space",function(){const o=Kn(e).$implicit;return $n(yt().handleClick(o))}),Pt()()}if(2&t){const e=n.$implicit,i=yt();Ur("selected",e===i.skin),pt(1),N6("emoji-mart-skin emoji-mart-skin-tone-",e,""),Tt("tabIndex",i.tabIndex(e)),es("aria-hidden",!i.isVisible(e))("aria-pressed",i.pressed(e))("aria-haspopup",!!i.isSelected(e))("aria-expanded",i.expanded(e))("aria-label",i.i18n.skintones[e])("title",i.i18n.skintones[e])}}function pEn(t,n){if(1&t&&(Ot(0,"span",11),xi(1),Pt()),2&t){const e=n.$implicit;pt(1),ca(" :",e,": ")}}function gEn(t,n){if(1&t&&(Ot(0,"span",15),xi(1),Pt()),2&t){const e=n.$implicit;pt(1),ca(" ",e," ")}}function fEn(t,n){if(1&t&&(Ot(0,"div",8)(1,"div",2),li(2,"ngx-emoji",9),Pt(),Ot(3,"div",4)(4,"div",10),xi(5),Pt(),Ot(6,"div",11),cn(7,pEn,2,1,"span",12),Pt(),Ot(8,"div",13),cn(9,gEn,2,1,"span",14),Pt()()()),2&t){const e=yt();pt(2),Tt("emoji",e.emoji)("size",38)("isNative",e.emojiIsNative)("skin",e.emojiSkin)("size",e.emojiSize)("set",e.emojiSet)("sheetSize",e.emojiSheetSize)("backgroundImageFn",e.emojiBackgroundImageFn)("imageUrlFn",e.emojiImageUrlFn),pt(3),mr(e.emojiData.name),pt(2),Tt("ngForOf",e.emojiData.shortNames),pt(2),Tt("ngForOf",e.listedEmoticons)}}function mEn(t,n){if(1&t&&li(0,"ngx-emoji",16),2&t){const e=yt();Tt("isNative",e.emojiIsNative)("skin",e.emojiSkin)("set",e.emojiSet)("emoji",e.idleEmoji)("backgroundImageFn",e.emojiBackgroundImageFn)("size",38)("imageUrlFn",e.emojiImageUrlFn)}}const _En=["inputRef"],vEn=["scrollRef"];function yEn(t,n){if(1&t){const e=Gi();Ot(0,"emoji-search",8),fn("searchResults",function(r){return Kn(e),$n(yt().handleSearch(r))})("enterKey",function(r){return Kn(e),$n(yt().handleEnterKey(r))}),Pt()}if(2&t){const e=yt();Tt("i18n",e.i18n)("include",e.include)("exclude",e.exclude)("custom",e.custom)("autoFocus",e.autoFocus)("icons",e.searchIcons)("emojisToShowFilter",e.emojisToShowFilter)}}function CEn(t,n){if(1&t){const e=Gi();Ot(0,"emoji-category",9),fn("emojiOver",function(r){return Kn(e),$n(yt().handleEmojiOver(r))})("emojiLeave",function(){return Kn(e),$n(yt().handleEmojiLeave())})("emojiClick",function(r){return Kn(e),$n(yt().handleEmojiClick(r))}),Pt()}if(2&t){const e=n.$implicit,i=yt();Tt("id",e.id)("name",e.name)("emojis",e.emojis)("perLine",i.perLine)("totalFrequentLines",i.totalFrequentLines)("hasStickyPosition",i.isNative)("i18n",i.i18n)("hideObsolete",i.hideObsolete)("notFoundEmoji",i.notFoundEmoji)("custom",e.id===i.RECENT_CATEGORY.id?i.CUSTOM_CATEGORY.emojis:void 0)("recent",e.id===i.RECENT_CATEGORY.id?i.recent:void 0)("virtualize",i.virtualize)("virtualizeOffset",i.virtualizeOffset)("emojiIsNative",i.isNative)("emojiSkin",i.skin)("emojiSize",i.emojiSize)("emojiSet",i.set)("emojiSheetSize",i.sheetSize)("emojiForceSize",i.isNative)("emojiTooltip",i.emojiTooltip)("emojiBackgroundImageFn",i.backgroundImageFn)("emojiImageUrlFn",i.imageUrlFn)("emojiUseButton",i.useButton)}}function bEn(t,n){if(1&t){const e=Gi();Ot(0,"div",1)(1,"emoji-preview",10),fn("skinChange",function(r){return Kn(e),$n(yt().handleSkinChange(r))}),Pt()()}if(2&t){const e=yt();pt(1),Tt("emoji",e.previewEmoji)("idleEmoji",e.emoji)("emojiIsNative",e.isNative)("emojiSize",38)("emojiSkin",e.skin)("emojiSet",e.set)("i18n",e.i18n)("emojiSheetSize",e.sheetSize)("emojiBackgroundImageFn",e.backgroundImageFn)("emojiImageUrlFn",e.imageUrlFn),es("title",e.title)}}let xEn=(()=>{class t{constructor(){this.categories=[],this.icons={},this.anchorClick=new qi}trackByFn(e,i){return i.id}handleClick(e,i){this.anchorClick.emit({category:this.categories[i],index:i})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["emoji-mart-anchors"]],inputs:{categories:"categories",color:"color",selected:"selected",i18n:"i18n",icons:"icons"},outputs:{anchorClick:"anchorClick"},decls:2,vars:2,consts:[[1,"emoji-mart-anchors"],["ngFor","",3,"ngForOf","ngForTrackBy"],["class","emoji-mart-anchor",3,"emoji-mart-anchor-selected","color","click",4,"ngIf"],[1,"emoji-mart-anchor",3,"click"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 24","width","24","height","24"],[1,"emoji-mart-anchor-bar"]],template:function(e,i){1&e&&(Ot(0,"div",0),cn(1,iEn,1,1,"ng-template",1),Pt()),2&e&&(pt(1),Tt("ngForOf",i.categories)("ngForTrackBy",i.trackByFn))},dependencies:[Wf,Tl],encapsulation:2,changeDetection:0}),t})(),q7e=(()=>{class t{constructor(e){this.platformId=e,this.NAMESPACE="emoji-mart",this.frequently=null,this.defaults={},this.initialized=!1,this.DEFAULTS=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","poop"]}init(){this.frequently=JSON.parse(Gf(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.frequently`)||"null"),this.initialized=!0}add(e){this.initialized||this.init(),this.frequently||(this.frequently=this.defaults),this.frequently[e.id]||(this.frequently[e.id]=0),this.frequently[e.id]+=1,Gf(this.platformId)&&(localStorage.setItem(`${this.NAMESPACE}.last`,e.id),localStorage.setItem(`${this.NAMESPACE}.frequently`,JSON.stringify(this.frequently)))}get(e,i){if(this.initialized||this.init(),null===this.frequently){this.defaults={};const u=[];for(let f=0;f<e;f++)this.defaults[this.DEFAULTS[f]]=e-f,u.push(this.DEFAULTS[f]);return u}const r=e*i,s=Object.keys(this.frequently).sort((u,f)=>this.frequently[u]-this.frequently[f]).reverse().slice(0,r),l=Gf(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.last`);return l&&!s.includes(l)&&(s.pop(),s.push(l)),s}}return t.\u0275fac=function(e){return new(e||t)(qt(si))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Y7e=(()=>{class t{constructor(e,i,r){this.ref=e,this.emojiService=i,this.frequently=r,this.emojis=null,this.hasStickyPosition=!0,this.name="",this.perLine=9,this.totalFrequentLines=4,this.recent=[],this.custom=[],this.hideObsolete=!0,this.virtualize=!1,this.virtualizeOffset=0,this.emojiOver=new qi,this.emojiLeave=new qi,this.emojiClick=new qi,this.containerStyles={},this.emojisToDisplay=[],this.filteredEmojisSubject=new le,this.filteredEmojis$=this.filteredEmojisSubject.asObservable(),this.labelStyles={},this.labelSpanStyles={},this.margin=0,this.minMargin=0,this.maxMargin=0,this.top=0,this.rows=0}ngOnInit(){this.updateRecentEmojis(),this.emojisToDisplay=this.filterEmojis(),this.noEmojiToDisplay&&(this.containerStyles={display:"none"}),this.hasStickyPosition||(this.labelStyles={height:28})}ngOnChanges(e){e.emojis?.currentValue?.length!==e.emojis?.previousValue?.length&&(this.emojisToDisplay=this.filterEmojis(),this.ngAfterViewInit())}ngAfterViewInit(){if(!this.virtualize)return;const{width:e}=this.container.nativeElement.getBoundingClientRect(),i=Math.floor(e/(this.emojiSize+12));this.rows=Math.ceil(this.emojisToDisplay.length/i),this.containerStyles={...this.containerStyles,minHeight:this.rows*(this.emojiSize+12)+28+"px"},this.ref?.detectChanges(),this.handleScroll(this.container.nativeElement.parentNode.parentNode.scrollTop)}get noEmojiToDisplay(){return 0===this.emojisToDisplay.length}memoizeSize(){const e=this.container.nativeElement.parentNode.parentNode,{top:i,height:r}=this.container.nativeElement.getBoundingClientRect(),o=e.getBoundingClientRect().top,a=this.label.nativeElement.getBoundingClientRect().height;this.top=i-o+e.scrollTop,this.maxMargin=0===r?0:r-a}handleScroll(e){let i=e-this.top;if(i=i<this.minMargin?this.minMargin:i,i=i>this.maxMargin?this.maxMargin:i,this.virtualize){const{top:r,height:o}=this.container.nativeElement.getBoundingClientRect(),a=this.container.nativeElement.parentNode.parentNode.clientHeight;this.filteredEmojisSubject.next(a+(a+this.virtualizeOffset)>=r&&-o-(a+this.virtualizeOffset)<=r?this.emojisToDisplay:[])}return i===this.margin?(this.ref.detectChanges(),!1):(this.hasStickyPosition||(this.label.nativeElement.style.top=`${i}px`),this.margin=i,this.ref.detectChanges(),!0)}updateRecentEmojis(){if("Recent"!==this.name)return;let e=this.recent||this.frequently.get(this.perLine,this.totalFrequentLines);(!e||!e.length)&&(e=this.frequently.get(this.perLine,this.totalFrequentLines)),e.length&&(this.emojis=e.map(i=>this.custom.filter(o=>o.id===i)[0]||i).filter(i=>!!this.emojiService.getData(i)))}updateDisplay(e){this.containerStyles.display=e,this.updateRecentEmojis(),this.ref.detectChanges()}trackById(e,i){return i}filterEmojis(){const e=[];for(const i of this.emojis||[]){if(!i)continue;const r=this.emojiService.getData(i);!r||r.obsoletedBy&&this.hideObsolete||!r.unified&&!r.custom||e.push(i)}return e}}return t.\u0275fac=function(e){return new(e||t)($(tg),$(sV),$(q7e))},t.\u0275cmp=je({type:t,selectors:[["emoji-category"]],viewQuery:function(e,i){if(1&e&&(nu(rEn,7),nu(oEn,7)),2&e){let r;yn(r=Cn())&&(i.container=r.first),yn(r=Cn())&&(i.label=r.first)}},inputs:{emojis:"emojis",hasStickyPosition:"hasStickyPosition",name:"name",perLine:"perLine",totalFrequentLines:"totalFrequentLines",recent:"recent",custom:"custom",i18n:"i18n",id:"id",hideObsolete:"hideObsolete",notFoundEmoji:"notFoundEmoji",virtualize:"virtualize",virtualizeOffset:"virtualizeOffset",emojiIsNative:"emojiIsNative",emojiSkin:"emojiSkin",emojiSize:"emojiSize",emojiSet:"emojiSet",emojiSheetSize:"emojiSheetSize",emojiForceSize:"emojiForceSize",emojiTooltip:"emojiTooltip",emojiBackgroundImageFn:"emojiBackgroundImageFn",emojiImageUrlFn:"emojiImageUrlFn",emojiUseButton:"emojiUseButton"},outputs:{emojiOver:"emojiOver",emojiLeave:"emojiLeave",emojiClick:"emojiClick"},features:[hi],decls:10,vars:11,consts:[[1,"emoji-mart-category",3,"ngStyle"],["container",""],[1,"emoji-mart-category-label",3,"ngStyle"],["aria-hidden","true",3,"ngStyle"],["label",""],[4,"ngIf","ngIfElse"],[4,"ngIf"],["normalRenderTemplate",""],[3,"emoji","size","skin","isNative","set","sheetSize","forceSize","tooltip","backgroundImageFn","imageUrlFn","hideObsolete","useButton","emojiOver","emojiLeave","emojiClick",4,"ngFor","ngForOf","ngForTrackBy"],[3,"emoji","size","skin","isNative","set","sheetSize","forceSize","tooltip","backgroundImageFn","imageUrlFn","hideObsolete","useButton","emojiOver","emojiLeave","emojiClick"],[3,"emoji","size","skin","isNative","set","sheetSize","forceSize","tooltip","backgroundImageFn","useButton"],[1,"emoji-mart-no-results-label"]],template:function(e,i){if(1&e&&(Ot(0,"section",0,1)(2,"div",2)(3,"span",3,4),xi(5),Pt()(),cn(6,lEn,3,3,"div",5),cn(7,uEn,5,11,"div",6),Pt(),cn(8,cEn,1,2,"ng-template",null,7,Fs)),2&e){const r=Ms(9);Ur("emoji-mart-no-results",i.noEmojiToDisplay),Tt("ngStyle",i.containerStyles),es("aria-label",i.i18n.categories[i.id]),pt(2),Tt("ngStyle",i.labelStyles),es("data-name",i.name),pt(1),Tt("ngStyle",i.labelSpanStyles),pt(2),ca(" ",i.i18n.categories[i.id]," "),pt(1),Tt("ngIf",i.virtualize)("ngIfElse",r),pt(1),Tt("ngIf",i.noEmojiToDisplay)}},dependencies:[Wf,Tl,xE,$7e,hse],encapsulation:2,changeDetection:0}),t})();function Z7e(t){return t.reduce((n,e)=>(n.includes(e)||n.push(e),n),[])}function wEn(t,n){const e=Z7e(t),i=Z7e(n);return e.filter(r=>i.indexOf(r)>=0)}let DEn=(()=>{class t{constructor(e){this.emojiService=e,this.originalPool={},this.index={},this.emojisList={},this.emoticonsList={},this.emojiSearch={};for(const i of this.emojiService.emojis){const{shortNames:r,emoticons:o}=i,a=r[0];for(const s of o)this.emoticonsList[s]||(this.emoticonsList[s]=a);this.emojisList[a]=this.emojiService.getSanitizedData(a),this.originalPool[a]=i}}addCustomToPool(e,i){for(const r of e){const o=r.id||r.shortNames[0];o&&!i[o]&&(i[o]=this.emojiService.getData(r),this.emojisList[o]=this.emojiService.getSanitizedData(r))}}search(e,i,r=75,o=[],a=[],s=[]){this.addCustomToPool(s,this.originalPool);let l,u=this.originalPool;if(e.length){if("-"===e||"-1"===e)return[this.emojisList[-1]];if("+"===e||"+1"===e)return[this.emojisList["+1"]];let f=e.toLowerCase().split(/[\s|,|\-|_]+/),S=[];if(f.length>2&&(f=[f[0],f[1]]),o.length||a.length){u={};for(const T of j7e||[]){const R=!o||!o.length||o.indexOf(T.id)>-1,L=!(!a||!a.length)&&a.indexOf(T.id)>-1;if(R&&!L)for(const z of T.emojis||[]){const j=this.emojiService.getData(z);u[j?.id??""]=j}}if(s.length){const T=!o||!o.length||o.indexOf("custom")>-1,R=!(!a||!a.length)&&a.indexOf("custom")>-1;T&&!R&&this.addCustomToPool(s,u)}}S=f.map(T=>{let R=u,L=this.index,z=0;for(let j=0;j<T.length;j++){const Y=T[j];if(z++,L[Y]||(L[Y]={}),L=L[Y],!L.results){const ie={};L.results=[],L.pool={};for(const te of Object.keys(R)){const re=R[te];this.emojiSearch[te]||(this.emojiSearch[te]=this.buildSearch(re.short_names,re.name,re.id,re.keywords,re.emoticons));const he=this.emojiSearch[te],fe=T.substr(0,z),Te=he.indexOf(fe);if(-1!==Te){let Re=Te+1;fe===te&&(Re=0),L.results.push(this.emojisList[te]),L.pool[te]=re,ie[te]=Re}}L.results.sort((te,re)=>ie[te.id]-ie[re.id])}R=L.pool}return L.results}).filter(T=>T),l=S.length>1?wEn.apply(null,S):S.length?S[0]:[]}return l&&(i&&(l=l.filter(f=>!(!f||!f.id)&&i(this.emojiService.names[f.id]))),l&&l.length>r&&(l=l.slice(0,r))),l||null}buildSearch(e,i,r,o,a){const s=[],l=(u,f)=>{if(!u)return;const S=Array.isArray(u)?u:[u];for(const T of S){const R=f?T.split(/[-|_|\s]+/):[T];for(let L of R)L=L.toLowerCase(),s.includes(L)||s.push(L)}};return l(e,!0),l(i,!0),l(r,!0),l(o,!0),l(a,!1),s.join(",")}}return t.\u0275fac=function(e){return new(e||t)(qt(sV))},t.\u0275prov=Hn({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),EEn=(()=>{class t{constructor(){this.changeSkin=new qi,this.opened=!1,this.skinTones=[1,2,3,4,5,6]}toggleOpen(){this.opened=!this.opened}isSelected(e){return e===this.skin}isVisible(e){return this.opened||this.isSelected(e)}pressed(e){return this.opened?!!this.isSelected(e):""}tabIndex(e){return this.isVisible(e)?"0":""}expanded(e){return this.isSelected(e)?this.opened:""}handleClick(e){this.opened?(this.opened=!1,e!==this.skin&&this.changeSkin.emit(e)):this.opened=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["emoji-skins"]],inputs:{skin:"skin",i18n:"i18n"},outputs:{changeSkin:"changeSkin"},decls:2,vars:3,consts:[[1,"emoji-mart-skin-swatches"],["class","emoji-mart-skin-swatch",3,"selected",4,"ngFor","ngForOf"],[1,"emoji-mart-skin-swatch"],["role","button",3,"tabIndex","click","keyup.enter","keyup.space"]],template:function(e,i){1&e&&(Ot(0,"section",0),cn(1,hEn,2,12,"span",1),Pt()),2&e&&(Ur("opened",i.opened),pt(1),Tt("ngForOf",i.skinTones))},dependencies:[Wf],encapsulation:2,changeDetection:0}),t})(),X7e=(()=>{class t{constructor(e,i){this.ref=e,this.emojiService=i,this.skinChange=new qi,this.emojiData={}}ngOnChanges(){if(!this.emoji)return;this.emojiData=this.emojiService.getData(this.emoji,this.emojiSkin,this.emojiSet);const e=[],i=[];(this.emojiData.emoticons||[]).forEach(o=>{e.indexOf(o.toLowerCase())>=0||(e.push(o.toLowerCase()),i.push(o))}),this.listedEmoticons=i,this.ref?.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)($(tg),$(sV))},t.\u0275cmp=je({type:t,selectors:[["emoji-preview"]],inputs:{title:"title",emoji:"emoji",idleEmoji:"idleEmoji",i18n:"i18n",emojiIsNative:"emojiIsNative",emojiSkin:"emojiSkin",emojiSize:"emojiSize",emojiSet:"emojiSet",emojiSheetSize:"emojiSheetSize",emojiBackgroundImageFn:"emojiBackgroundImageFn",emojiImageUrlFn:"emojiImageUrlFn"},outputs:{skinChange:"skinChange"},features:[hi],decls:9,vars:6,consts:[["class","emoji-mart-preview",4,"ngIf"],[1,"emoji-mart-preview",3,"hidden"],[1,"emoji-mart-preview-emoji"],[3,"isNative","skin","set","emoji","backgroundImageFn","size","imageUrlFn",4,"ngIf"],[1,"emoji-mart-preview-data"],[1,"emoji-mart-title-label"],[1,"emoji-mart-preview-skins"],[3,"skin","i18n","changeSkin"],[1,"emoji-mart-preview"],[3,"emoji","size","isNative","skin","set","sheetSize","backgroundImageFn","imageUrlFn"],[1,"emoji-mart-preview-name"],[1,"emoji-mart-preview-shortname"],["class","emoji-mart-preview-shortname",4,"ngFor","ngForOf"],[1,"emoji-mart-preview-emoticons"],["class","emoji-mart-preview-emoticon",4,"ngFor","ngForOf"],[1,"emoji-mart-preview-emoticon"],[3,"isNative","skin","set","emoji","backgroundImageFn","size","imageUrlFn"]],template:function(e,i){1&e&&(cn(0,fEn,10,12,"div",0),Ot(1,"div",1)(2,"div",2),cn(3,mEn,1,7,"ngx-emoji",3),Pt(),Ot(4,"div",4)(5,"span",5),xi(6),Pt()(),Ot(7,"div",6)(8,"emoji-skins",7),fn("changeSkin",function(o){return i.skinChange.emit(o)}),Pt()()()),2&e&&(Tt("ngIf",i.emoji&&i.emojiData),pt(1),Tt("hidden",i.emoji),pt(2),Tt("ngIf",i.idleEmoji&&i.idleEmoji.length),pt(3),mr(i.title),pt(2),Tt("skin",i.emojiSkin)("i18n",i.i18n))},dependencies:[Wf,Tl,$7e,EEn],encapsulation:2,changeDetection:0}),t})(),OEn=0,J7e=(()=>{class t{constructor(e){this.emojiSearch=e,this.maxResults=75,this.autoFocus=!1,this.include=[],this.exclude=[],this.custom=[],this.searchResults=new qi,this.enterKey=new qi,this.isSearching=!1,this.query="",this.inputId="emoji-mart-search-"+ ++OEn}ngOnInit(){this.icon=this.icons.search}ngAfterViewInit(){this.autoFocus&&this.inputRef.nativeElement.focus()}clear(){this.query="",this.handleSearch(""),this.inputRef.nativeElement.focus()}handleEnterKey(e){this.query&&(this.enterKey.emit(e),e.preventDefault())}handleSearch(e){""===e?(this.icon=this.icons.search,this.isSearching=!1):(this.icon=this.icons.delete,this.isSearching=!0);const i=this.emojiSearch.search(this.query,this.emojisToShowFilter,this.maxResults,this.include,this.exclude,this.custom);this.searchResults.emit(i)}handleChange(){this.handleSearch(this.query)}}return t.\u0275fac=function(e){return new(e||t)($(DEn))},t.\u0275cmp=je({type:t,selectors:[["emoji-search"]],viewQuery:function(e,i){if(1&e&&nu(_En,7),2&e){let r;yn(r=Cn())&&(i.inputRef=r.first)}},inputs:{maxResults:"maxResults",autoFocus:"autoFocus",i18n:"i18n",include:"include",exclude:"exclude",custom:"custom",icons:"icons",emojisToShowFilter:"emojisToShowFilter"},outputs:{searchResults:"searchResults",enterKey:"enterKey"},decls:8,vars:9,consts:[[1,"emoji-mart-search"],["type","search",3,"id","placeholder","autofocus","ngModel","keyup.enter","ngModelChange"],["inputRef",""],[1,"emoji-mart-sr-only",3,"htmlFor"],["type","button",1,"emoji-mart-search-icon",3,"disabled","click","keyup.enter"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 20 20","width","13","height","13","opacity","0.5"]],template:function(e,i){1&e&&(Ot(0,"div",0)(1,"input",1,2),fn("keyup.enter",function(o){return i.handleEnterKey(o)})("ngModelChange",function(o){return i.query=o})("ngModelChange",function(){return i.handleChange()}),Pt(),Ot(3,"label",3),xi(4),Pt(),Ot(5,"button",4),fn("click",function(){return i.clear()})("keyup.enter",function(){return i.clear()}),vV(),Ot(6,"svg",5),li(7,"path"),Pt()()()),2&e&&(pt(1),Tt("id",i.inputId)("placeholder",i.i18n.search)("autofocus",i.autoFocus)("ngModel",i.query),pt(2),Tt("htmlFor",i.inputId),pt(1),ca(" ",i.i18n.search," "),pt(1),Tt("disabled",!i.isSearching),es("aria-label",i.i18n.clear),pt(2),es("d",i.icon))},dependencies:[i2,zO,Sw],encapsulation:2}),t})();const Q7e={activity:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m10 11h-5c.3-2.5 1.3-4.8 2-6.1a10 10 0 0 1 3 6.1m-9 0V2a10 10 0 0 1 4.4 1.6A18 18 0 0 0 15 11h-2zm-2 0H9a18 18 0 0 0-2.4-7.4A10 10 0 0 1 11 2.1V11zm0 2v9a10 10 0 0 1-4.4-1.6A18 18 0 0 0 9 13h2zm4 0a18 18 0 0 0 2.4 7.4 10 10 0 0 1-4.4 1.5V13h2zM5 4.9c.7 1.3 1.7 3.6 2 6.1H2a10 10 0 0 1 3-6.1M2 13h5c-.3 2.5-1.3 4.8-2 6.1A10 10 0 0 1 2 13m17 6.1c-.7-1.3-1.7-3.6-2-6.1h5a10 10 0 0 1-3 6.1",custom:"M10 1h3v21h-3zm10.186 4l1.5 2.598L3.5 18.098 2 15.5zM2 7.598L3.5 5l18.186 10.5-1.5 2.598z",flags:"M0 0l6 24h2L2 0zm21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.6 3h7.8l2 8H8.6l-2-8zm8.8 10l-2.9 1.9-.4-1.9h3.3zm3.6 0l-1.5-6h2l2 8H16l3-2z",foods:"M17 5c-1.8 0-2.9.4-3.7 1 .5-1.3 1.8-3 4.7-3a1 1 0 0 0 0-2c-3 0-4.6 1.3-5.5 2.5l-.2.2c-.6-1.9-1.5-3.7-3-3.7C8.5 0 7.7.3 7 1c-2 1.5-1.7 2.9-.5 4C3.6 5.2 0 7.4 0 13c0 4.6 5 11 9 11 2 0 2.4-.5 3-1 .6.5 1 1 3 1 4 0 9-6.4 9-11 0-6-4-8-7-8M8.2 2.5c.7-.5 1-.5 1-.5.4.2 1 1.4 1.4 3-1.6-.6-2.8-1.3-3-1.8l.6-.7M15 22c-1 0-1.2-.1-1.6-.4l-.1-.2a2 2 0 0 0-2.6 0l-.1.2c-.4.3-.5.4-1.6.4-2.8 0-7-5.4-7-9 0-6 4.5-6 5-6 2 0 2.5.4 3.4 1.2l.3.3a2 2 0 0 0 2.6 0l.3-.3c1-.8 1.5-1.2 3.4-1.2.5 0 5 .1 5 6 0 3.6-4.2 9-7 9",nature:"M15.5 8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m-7 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m10.43-8h-.02c-.97 0-2.14.79-3.02 1.5A13.88 13.88 0 0 0 12 .99c-1.28 0-2.62.13-3.87.51C7.24.8 6.07 0 5.09 0h-.02C3.35 0 .07 2.67 0 7.03c-.04 2.47.28 4.23 1.04 5 .26.27.88.69 1.3.9.19 3.17.92 5.23 2.53 6.37.9.64 2.19.95 3.2 1.1-.03.2-.07.4-.07.6 0 1.77 2.35 3 4 3s4-1.23 4-3c0-.2-.04-.4-.07-.59 2.57-.38 5.43-1.87 5.92-7.58.4-.22.89-.57 1.1-.8.77-.76 1.09-2.52 1.05-5C23.93 2.67 20.65 0 18.93 0M3.23 9.13c-.24.29-.84 1.16-.9 1.24A9.67 9.67 0 0 1 2 7.08c.05-3.28 2.48-4.97 3.1-5.03.25.02.72.27 1.26.65A7.95 7.95 0 0 0 4 7.82c-.14.55-.4.86-.79 1.31M12 22c-.9 0-1.95-.7-2-1 0-.65.47-1.24 1-1.6v.6a1 1 0 1 0 2 0v-.6c.52.36 1 .95 1 1.6-.05.3-1.1 1-2 1m3-3.48v.02a4.75 4.75 0 0 0-1.26-1.02c1.09-.52 2.24-1.33 2.24-2.22 0-1.84-1.78-2.2-3.98-2.2s-3.98.36-3.98 2.2c0 .89 1.15 1.7 2.24 2.22A4.8 4.8 0 0 0 9 18.54v-.03a6.1 6.1 0 0 1-2.97-.84c-1.3-.92-1.84-3.04-1.86-6.48l.03-.04c.5-.82 1.49-1.45 1.8-3.1C6 6 7.36 4.42 8.36 3.53c1.01-.35 2.2-.53 3.59-.53 1.45 0 2.68.2 3.73.57 1 .9 2.32 2.46 2.32 4.48.31 1.65 1.3 2.27 1.8 3.1l.1.18c-.06 5.97-1.95 7.01-4.9 7.19m6.63-8.2l-.11-.2a7.59 7.59 0 0 0-.74-.98 3.02 3.02 0 0 1-.79-1.32 7.93 7.93 0 0 0-2.35-5.12c.53-.38 1-.63 1.26-.65.64.07 3.05 1.77 3.1 5.03.02 1.81-.35 3.22-.37 3.24",objects:"M12 0a9 9 0 0 0-5 16.5V21s2 3 5 3 5-3 5-3v-4.5A9 9 0 0 0 12 0zm0 2a7 7 0 1 1 0 14 7 7 0 0 1 0-14zM9 17.5a9 9 0 0 0 6 0v.8a7 7 0 0 1-3 .7 7 7 0 0 1-3-.7v-.8zm.2 3a8.9 8.9 0 0 0 2.8.5c1 0 1.9-.2 2.8-.5-.6.7-1.6 1.5-2.8 1.5-1.1 0-2.1-.8-2.8-1.5zm5.5-8.1c-.8 0-1.1-.8-1.5-1.8-.5-1-.7-1.5-1.2-1.5s-.8.5-1.3 1.5c-.4 1-.8 1.8-1.6 1.8h-.3c-.5-.2-.8-.7-1.3-1.8l-.2-1A3 3 0 0 0 7 9a1 1 0 0 1 0-2c1.7 0 2 1.4 2.2 2.1.5-1 1.3-2 2.8-2 1.5 0 2.3 1.1 2.7 2.1.2-.8.6-2.2 2.3-2.2a1 1 0 1 1 0 2c-.2 0-.3.5-.3.7a6.5 6.5 0 0 1-.3 1c-.5 1-.8 1.7-1.7 1.7",people:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20M8 7a2 2 0 1 0 0 4 2 2 0 0 0 0-4m8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4m-.8 8c-.7 1.2-1.8 2-3.3 2-1.5 0-2.7-.8-3.4-2H15m3-2H6a6 6 0 1 0 12 0",places:"M6.5 12a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 3c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5m11-3a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 3c-.3 0-.5-.2-.5-.5s.2-.5.5-.5.5.2.5.5-.2.5-.5.5m5-5.5l-1-.4-.1-.1h.6c.6 0 1-.4 1-1 0-1-.9-2-2-2h-.6l-.8-1.7A3 3 0 0 0 16.8 2H7.2a3 3 0 0 0-2.8 2.3L3.6 6H3a2 2 0 0 0-2 2c0 .6.4 1 1 1h.6v.1l-1 .4a2 2 0 0 0-1.4 2l.7 7.6a1 1 0 0 0 1 .9H3v1c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2v-1h6v1c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2v-1h1.1a1 1 0 0 0 1-.9l.7-7.5a2 2 0 0 0-1.3-2.1M6.3 4.9c.1-.5.5-.9 1-.9h9.5c.4 0 .8.4 1 .9L19.2 9H4.7l1.6-4.1zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.2-3H2.8l-.7-6.6.9-.4h18l.9.4-.7 6.6z",recent:"M13 4h-2v7H9v2h2v2h2v-2h4v-2h-4zm-1-4a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20",symbols:"M0 0h11v2H0zm4 11h3V6h4V4H0v2h4zm11.5 6a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5m0-2.99a.5.5 0 0 1 0 .99c-.28 0-.5-.22-.5-.5s.22-.49.5-.49m6 5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5m0 2.99a.5.5 0 0 1-.5-.5.5.5 0 0 1 1 .01.5.5 0 0 1-.5.49m.5-9l-9 9 1.51 1.5 9-9zm-5-2c2.2 0 4-1.12 4-2.5V2s.98-.16 1.5.95C23 4.05 23 6 23 6s1-1.12 1-3.13C24-.02 21 0 21 0h-2v6.35A5.85 5.85 0 0 0 17 6c-2.2 0-4 1.12-4 2.5s1.8 2.5 4 2.5m-6.7 9.48L8.82 18.9a47.54 47.54 0 0 1-1.44 1.13c-.3-.3-.99-1.02-2.04-2.19.9-.83 1.47-1.46 1.72-1.89s.38-.87.38-1.33c0-.6-.27-1.18-.82-1.76-.54-.58-1.33-.87-2.35-.87-1 0-1.79.29-2.34.87-.56.6-.83 1.18-.83 1.79 0 .81.42 1.75 1.25 2.8a6.57 6.57 0 0 0-1.8 1.79 3.46 3.46 0 0 0-.51 1.83c0 .86.3 1.56.92 2.1a3.5 3.5 0 0 0 2.42.83c1.17 0 2.44-.38 3.81-1.14L8.23 24h2.82l-2.09-2.38 1.34-1.14zM3.56 14.1a1.02 1.02 0 0 1 .73-.28c.31 0 .56.08.75.25a.85.85 0 0 1 .28.66c0 .52-.42 1.11-1.26 1.78-.53-.65-.8-1.23-.8-1.74a.9.9 0 0 1 .3-.67m.18 7.9c-.43 0-.78-.12-1.06-.35-.28-.23-.41-.49-.41-.76 0-.6.5-1.3 1.52-2.09a31.23 31.23 0 0 0 2.25 2.44c-.92.5-1.69.76-2.3.76"},eze={search:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z",delete:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"},tze={search:"Search",emojilist:"List of emoji",notfound:"No Emoji Found",clear:"Clear",categories:{search:"Search Results",recent:"Frequently Used",people:"Smileys & People",nature:"Animals & Nature",foods:"Food & Drink",activity:"Activity",places:"Travel & Places",objects:"Objects",symbols:"Symbols",flags:"Flags",custom:"Custom"},skintones:{1:"Default Skin Tone",2:"Light Skin Tone",3:"Medium-Light Skin Tone",4:"Medium Skin Tone",5:"Medium-Dark Skin Tone",6:"Dark Skin Tone"}};let TEn=(()=>{class t{constructor(e,i,r,o,a){this.ngZone=e,this.renderer=i,this.ref=r,this.frequently=o,this.platformId=a,this.perLine=9,this.totalFrequentLines=4,this.i18n={},this.style={},this.title="Emoji Mart\u2122",this.emoji="department_store",this.darkMode=!("function"!=typeof matchMedia||!matchMedia("(prefers-color-scheme: dark)").matches),this.color="#ae65c5",this.hideObsolete=!0,this.categories=[],this.activeCategories=[],this.set="apple",this.skin=1,this.isNative=!1,this.emojiSize=24,this.sheetSize=64,this.showPreview=!0,this.emojiTooltip=!1,this.autoFocus=!1,this.custom=[],this.hideRecent=!0,this.notFoundEmoji="sleuth_or_spy",this.categoriesIcons=Q7e,this.searchIcons=eze,this.useButton=!1,this.enableFrequentEmojiSort=!1,this.enableSearch=!0,this.showSingleCategory=!1,this.virtualize=!1,this.virtualizeOffset=0,this.emojiClick=new qi,this.emojiSelect=new qi,this.skinChange=new qi,this.scrollHeight=0,this.clientHeight=0,this.clientWidth=0,this.firstRender=!0,this.animationFrameRequestId=null,this.NAMESPACE="emoji-mart",this.measureScrollbar=0,this.RECENT_CATEGORY={id:"recent",name:"Recent",emojis:null},this.SEARCH_CATEGORY={id:"search",name:"Search",emojis:null,anchor:!1},this.CUSTOM_CATEGORY={id:"custom",name:"Custom",emojis:[]},this.backgroundImageFn=(s,l)=>`https://unpkg.com/emoji-datasource-${this.set}@6.0.1/img/${this.set}/sheets-256/${this.sheetSize}.png`}ngOnInit(){this.measureScrollbar=function SEn(){if(typeof document>"u")return 0;const t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),n}(),this.i18n={...tze,...this.i18n},this.i18n.categories={...tze.categories,...this.i18n.categories},this.skin=JSON.parse(Gf(this.platformId)&&localStorage.getItem(`${this.NAMESPACE}.skin`)||"null")||this.skin;const e=[...j7e];this.custom.length>0&&(this.CUSTOM_CATEGORY.emojis=this.custom.map(s=>({...s,id:s.shortNames[0],custom:!0})),e.push(this.CUSTOM_CATEGORY)),void 0!==this.include&&e.sort((s,l)=>this.include.indexOf(s.id)>this.include.indexOf(l.id)?1:-1);for(const s of e){const l=!this.include||!this.include.length||this.include.indexOf(s.id)>-1,u=!(!this.exclude||!this.exclude.length)&&this.exclude.indexOf(s.id)>-1;if(l&&!u){if(this.emojisToShowFilter){const f=[],{emojis:S}=s;for(let T=0;T<S.length;T++){const R=S[T];this.emojisToShowFilter(R)&&f.push(R)}f.length&&this.categories.push({emojis:f,name:s.name,id:s.id})}else this.categories.push(s);this.categoriesIcons={...Q7e,...this.categoriesIcons},this.searchIcons={...eze,...this.searchIcons}}}const i=!this.include||!this.include.length||this.include.indexOf(this.RECENT_CATEGORY.id)>-1,r=!(!this.exclude||!this.exclude.length)&&this.exclude.indexOf(this.RECENT_CATEGORY.id)>-1;i&&!r&&(this.hideRecent=!1,this.categories.unshift(this.RECENT_CATEGORY)),this.categories[0]&&(this.categories[0].first=!0),this.categories.unshift(this.SEARCH_CATEGORY),this.selected=this.categories.filter(s=>s.first)[0].name;const o=Math.min(this.categories.length,3);this.setActiveCategories(this.activeCategories=this.categories.slice(0,o));const a=this.categories[o-1].emojis.slice();this.categories[o-1].emojis=a.slice(0,60),setTimeout(()=>{this.categories[o-1].emojis=a,this.setActiveCategories(this.categories),this.ref.detectChanges(),Gf(this.platformId)&&this.ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this.updateCategoriesSize()})})}),this.ngZone.runOutsideAngular(()=>{this.scrollListener=this.renderer.listen(this.scrollRef.nativeElement,"scroll",()=>{this.handleScroll()})})}ngOnDestroy(){this.scrollListener?.(),this.cancelAnimationFrame()}setActiveCategories(e){this.activeCategories=this.showSingleCategory?e.filter(i=>i.name===this.selected||i===this.SEARCH_CATEGORY):e}updateCategoriesSize(){if(this.categoryRefs.forEach(e=>e.memoizeSize()),this.scrollRef){const e=this.scrollRef.nativeElement;this.scrollHeight=e.scrollHeight,this.clientHeight=e.clientHeight,this.clientWidth=e.clientWidth}}handleAnchorClick(e){if(this.updateCategoriesSize(),this.selected=e.category.name,this.setActiveCategories(this.categories),this.SEARCH_CATEGORY.emojis)return this.handleSearch(null),this.searchRef?.clear(),void this.handleAnchorClick(e);const i=this.categoryRefs.find(r=>r.id===e.category.id);if(i){let{top:r}=i;e.category.first?r=0:r+=1,this.scrollRef.nativeElement.scrollTop=r}this.nextScroll=e.category.name;for(const r of this.categories)this.categoryRefs.find(({id:a})=>a===r.id)?.handleScroll(this.scrollRef.nativeElement.scrollTop)}categoryTrack(e,i){return i.id}handleScroll(e=!1){if(this.nextScroll)return this.selected=this.nextScroll,this.nextScroll=void 0,void this.ref.detectChanges();if(!this.scrollRef||this.showSingleCategory)return;let i;if(this.SEARCH_CATEGORY.emojis)i=this.SEARCH_CATEGORY;else{const r=this.scrollRef.nativeElement;if(0===r.scrollTop)i=this.categories.find(o=>!0===o.first);else if(r.scrollHeight-r.scrollTop===this.clientHeight)i=this.categories[this.categories.length-1];else for(const o of this.categories)this.categoryRefs.find(({id:l})=>l===o.id)?.handleScroll(r.scrollTop)&&(i=o);this.scrollTop=r.scrollTop}!e&&i&&i.name!==this.selected?(this.selected=i.name,this.ref.detectChanges()):e&&this.ref.detectChanges()}handleSearch(e){this.SEARCH_CATEGORY.emojis=e;for(const i of this.categoryRefs.toArray())"Search"===i.name?(i.emojis=e,i.updateDisplay(e?"block":"none")):i.updateDisplay(e?"none":"block");this.scrollRef.nativeElement.scrollTop=0,this.handleScroll()}handleEnterKey(e,i){if(!i&&null!==this.SEARCH_CATEGORY.emojis&&this.SEARCH_CATEGORY.emojis.length){if(!(i=this.SEARCH_CATEGORY.emojis[0]))return;this.emojiSelect.emit({$event:e,emoji:i})}!this.hideRecent&&!this.recent&&i&&this.frequently.add(i);const r=this.categoryRefs.toArray()[1];r&&this.enableFrequentEmojiSort&&(r.updateRecentEmojis(),r.ref.markForCheck())}handleEmojiOver(e){if(!this.showPreview||!this.previewRef)return;const i=this.CUSTOM_CATEGORY.emojis.find(r=>r.id===e.emoji.id);i&&(e.emoji={...i}),this.previewEmoji=e.emoji,this.cancelAnimationFrame(),this.ref?.detectChanges()}handleEmojiLeave(){!this.showPreview||!this.previewRef||this.ngZone.runOutsideAngular(()=>{this.animationFrameRequestId=requestAnimationFrame(()=>{this.previewEmoji=null,this.ref.detectChanges()})})}handleEmojiClick(e){this.emojiClick.emit(e),this.emojiSelect.emit(e),this.handleEnterKey(e.$event,e.emoji)}handleSkinChange(e){this.skin=e,localStorage.setItem(`${this.NAMESPACE}.skin`,String(e)),this.skinChange.emit(e)}getWidth(){return this.style&&this.style.width?this.style.width:this.perLine*(this.emojiSize+12)+12+2+this.measureScrollbar+"px"}cancelAnimationFrame(){null!==this.animationFrameRequestId&&(cancelAnimationFrame(this.animationFrameRequestId),this.animationFrameRequestId=null)}}return t.\u0275fac=function(e){return new(e||t)($(Un),$(bu),$(tg),$(q7e),$(si))},t.\u0275cmp=je({type:t,selectors:[["emoji-mart"]],viewQuery:function(e,i){if(1&e&&(nu(vEn,7),nu(X7e,5),nu(J7e,5),nu(Y7e,5)),2&e){let r;yn(r=Cn())&&(i.scrollRef=r.first),yn(r=Cn())&&(i.previewRef=r.first),yn(r=Cn())&&(i.searchRef=r.first),yn(r=Cn())&&(i.categoryRefs=r)}},inputs:{perLine:"perLine",totalFrequentLines:"totalFrequentLines",i18n:"i18n",style:"style",title:"title",emoji:"emoji",darkMode:"darkMode",color:"color",hideObsolete:"hideObsolete",categories:"categories",activeCategories:"activeCategories",set:"set",skin:"skin",isNative:"isNative",emojiSize:"emojiSize",sheetSize:"sheetSize",emojisToShowFilter:"emojisToShowFilter",showPreview:"showPreview",emojiTooltip:"emojiTooltip",autoFocus:"autoFocus",custom:"custom",hideRecent:"hideRecent",imageUrlFn:"imageUrlFn",include:"include",exclude:"exclude",notFoundEmoji:"notFoundEmoji",categoriesIcons:"categoriesIcons",searchIcons:"searchIcons",useButton:"useButton",enableFrequentEmojiSort:"enableFrequentEmojiSort",enableSearch:"enableSearch",showSingleCategory:"showSingleCategory",virtualize:"virtualize",virtualizeOffset:"virtualizeOffset",recent:"recent",backgroundImageFn:"backgroundImageFn"},outputs:{emojiClick:"emojiClick",emojiSelect:"emojiSelect",skinChange:"skinChange"},decls:8,vars:16,consts:[[3,"ngStyle"],[1,"emoji-mart-bar"],[3,"categories","color","selected","i18n","icons","anchorClick"],[3,"i18n","include","exclude","custom","autoFocus","icons","emojisToShowFilter","searchResults","enterKey",4,"ngIf"],[1,"emoji-mart-scroll"],["scrollRef",""],[3,"id","name","emojis","perLine","totalFrequentLines","hasStickyPosition","i18n","hideObsolete","notFoundEmoji","custom","recent","virtualize","virtualizeOffset","emojiIsNative","emojiSkin","emojiSize","emojiSet","emojiSheetSize","emojiForceSize","emojiTooltip","emojiBackgroundImageFn","emojiImageUrlFn","emojiUseButton","emojiOver","emojiLeave","emojiClick",4,"ngFor","ngForOf","ngForTrackBy"],["class","emoji-mart-bar",4,"ngIf"],[3,"i18n","include","exclude","custom","autoFocus","icons","emojisToShowFilter","searchResults","enterKey"],[3,"id","name","emojis","perLine","totalFrequentLines","hasStickyPosition","i18n","hideObsolete","notFoundEmoji","custom","recent","virtualize","virtualizeOffset","emojiIsNative","emojiSkin","emojiSize","emojiSet","emojiSheetSize","emojiForceSize","emojiTooltip","emojiBackgroundImageFn","emojiImageUrlFn","emojiUseButton","emojiOver","emojiLeave","emojiClick"],[3,"emoji","idleEmoji","emojiIsNative","emojiSize","emojiSkin","emojiSet","i18n","emojiSheetSize","emojiBackgroundImageFn","emojiImageUrlFn","skinChange"]],template:function(e,i){1&e&&(Ot(0,"section",0)(1,"div",1)(2,"emoji-mart-anchors",2),fn("anchorClick",function(o){return i.handleAnchorClick(o)}),Pt()(),cn(3,yEn,1,7,"emoji-search",3),Ot(4,"section",4,5),cn(6,CEn,1,23,"emoji-category",6),Pt(),cn(7,bEn,2,11,"div",7),Pt()),2&e&&(N6("emoji-mart ",i.darkMode?"emoji-mart-dark":"",""),Tx("width",i.getWidth()),Tt("ngStyle",i.style),pt(2),Tt("categories",i.categories)("color",i.color)("selected",i.selected)("i18n",i.i18n)("icons",i.categoriesIcons),pt(1),Tt("ngIf",i.enableSearch),pt(1),es("aria-label",i.i18n.emojilist),pt(2),Tt("ngForOf",i.activeCategories)("ngForTrackBy",i.categoryTrack),pt(1),Tt("ngIf",i.showPreview))},dependencies:[Wf,Tl,xE,xEn,Y7e,J7e,X7e],encapsulation:2,changeDetection:0}),t})(),IEn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[ng,gU,tEn]}),t})();const kEn=["iframe"];let MEn=(()=>{class t{constructor(){this.onBeforePrint=new qi,this.onAfterPrint=new qi,this.onDocumentLoad=new qi,this.onPageChange=new qi,this.externalWindow=!1,this.showSpinner=!0,this.openFile=!0,this.download=!0,this.viewBookmark=!0,this.print=!0,this.fullScreen=!0,this.find=!0,this.useOnlyCssZoom=!1,this.errorOverride=!1,this.errorAppend=!0,this.diagnosticLogs=!0}set page(e){this._page=e,this.PDFViewerApplication?this.PDFViewerApplication.page=this._page:this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to set page# after full load. Ignore this warning if you are not setting page# using '.' notation. (E.g. pdfViewer.page = 5;)")}get page(){if(this.PDFViewerApplication)return this.PDFViewerApplication.page;this.diagnosticLogs&&console.warn("Document is not loaded yet!!!. Try to retrieve page# after full load.")}set pdfSrc(e){this._src=e}get pdfSrc(){return this._src}get PDFViewerApplicationOptions(){let e=null;return this.externalWindow?this.viewerTab&&(e=this.viewerTab.PDFViewerApplicationOptions):this.iframe.nativeElement.contentWindow&&(e=this.iframe.nativeElement.contentWindow.PDFViewerApplicationOptions),e}get PDFViewerApplication(){let e=null;return this.externalWindow?this.viewerTab&&(e=this.viewerTab.PDFViewerApplication):this.iframe.nativeElement.contentWindow&&(e=this.iframe.nativeElement.contentWindow.PDFViewerApplication),e}receiveMessage(e){if(e.data&&e.data.viewerId&&e.data.event){let r=e.data.event,o=e.data.param;this.viewerId==e.data.viewerId&&(this.onBeforePrint&&"beforePrint"==r?this.onBeforePrint.emit():this.onAfterPrint&&"afterPrint"==r?this.onAfterPrint.emit():this.onDocumentLoad&&"pagesLoaded"==r?this.onDocumentLoad.emit(o):this.onPageChange&&"pageChange"==r&&this.onPageChange.emit(o))}}ngOnInit(){window.addEventListener("message",this.receiveMessage.bind(this),!1),this.externalWindow||this.loadPdf()}refresh(){this.loadPdf()}loadPdf(){if(!this._src)return;if(this.externalWindow&&(typeof this.viewerTab>"u"||this.viewerTab.closed)){if(this.viewerTab=window.open("","_blank",this.externalWindowOptions||""),null==this.viewerTab)return void(this.diagnosticLogs&&console.error("ng2-pdfjs-viewer: For 'externalWindow = true'. i.e opening in new tab to work, pop-ups should be enabled."));this.showSpinner&&this.viewerTab.document.write('\n          <style>\n          .loader {\n            position: fixed;\n            left: 40%;\n            top: 40%;\n            border: 16px solid #f3f3f3;\n            border-radius: 50%;\n            border-top: 16px solid #3498db;\n            width: 120px;\n            height: 120px;\n            animation: spin 2s linear infinite;\n          }\n          @keyframes spin {\n            0% {\n              transform: rotate(0deg);\n            }\n            100% {\n              transform: rotate(360deg);\n            }\n          }\n          </style>\n          <div class="loader"></div>\n        ')}let e,i;if(this._src instanceof Blob)e=encodeURIComponent(URL.createObjectURL(this._src));else if(this._src instanceof Uint8Array){let r=new Blob([this._src],{type:"application/pdf"});e=encodeURIComponent(URL.createObjectURL(r))}else e=this._src;i=this.viewerFolder?`${this.viewerFolder}/web/viewer.html`:"assets/pdfjs/web/viewer.html",i+=`?file=${e}`,typeof this.viewerId<"u"&&(i+=`&viewerId=${this.viewerId}`),typeof this.onBeforePrint<"u"&&(i+="&beforePrint=true"),typeof this.onAfterPrint<"u"&&(i+="&afterPrint=true"),typeof this.onDocumentLoad<"u"&&(i+="&pagesLoaded=true"),typeof this.onPageChange<"u"&&(i+="&pageChange=true"),this.downloadFileName&&(this.downloadFileName.endsWith(".pdf")||(this.downloadFileName+=".pdf"),i+=`&fileName=${this.downloadFileName}`),typeof this.openFile<"u"&&(i+=`&openFile=${this.openFile}`),typeof this.download<"u"&&(i+=`&download=${this.download}`),this.startDownload&&(i+=`&startDownload=${this.startDownload}`),typeof this.viewBookmark<"u"&&(i+=`&viewBookmark=${this.viewBookmark}`),typeof this.print<"u"&&(i+=`&print=${this.print}`),this.startPrint&&(i+=`&startPrint=${this.startPrint}`),typeof this.fullScreen<"u"&&(i+=`&fullScreen=${this.fullScreen}`),typeof this.find<"u"&&(i+=`&find=${this.find}`),this.lastPage&&(i+=`&lastpage=${this.lastPage}`),this.rotatecw&&(i+=`&rotatecw=${this.rotatecw}`),this.rotateccw&&(i+=`&rotateccw=${this.rotateccw}`),this.cursor&&(i+=`&cursor=${this.cursor}`),this.scroll&&(i+=`&scroll=${this.scroll}`),this.spread&&(i+=`&spread=${this.spread}`),this.locale&&(i+=`&locale=${this.locale}`),this.useOnlyCssZoom&&(i+=`&useOnlyCssZoom=${this.useOnlyCssZoom}`),(this._page||this.zoom||this.nameddest||this.pagemode)&&(i+="#"),this._page&&(i+=`&page=${this._page}`),this.zoom&&(i+=`&zoom=${this.zoom}`),this.nameddest&&(i+=`&nameddest=${this.nameddest}`),this.pagemode&&(i+=`&pagemode=${this.pagemode}`),(this.errorOverride||this.errorAppend)&&(i+=`&errorMessage=${this.errorMessage}`,this.errorOverride&&(i+=`&errorOverride=${this.errorOverride}`),this.errorAppend&&(i+=`&errorAppend=${this.errorAppend}`)),this.externalWindow?this.viewerTab.location.href=i:this.iframe.nativeElement.src=i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=je({type:t,selectors:[["ng2-pdfjs-viewer"]],viewQuery:function(e,i){if(1&e&&nu(kEn,7),2&e){let r;yn(r=Cn())&&(i.iframe=r.first)}},inputs:{viewerId:"viewerId",viewerFolder:"viewerFolder",externalWindow:"externalWindow",showSpinner:"showSpinner",downloadFileName:"downloadFileName",openFile:"openFile",download:"download",startDownload:"startDownload",viewBookmark:"viewBookmark",print:"print",startPrint:"startPrint",fullScreen:"fullScreen",find:"find",zoom:"zoom",nameddest:"nameddest",pagemode:"pagemode",lastPage:"lastPage",rotatecw:"rotatecw",rotateccw:"rotateccw",cursor:"cursor",scroll:"scroll",spread:"spread",locale:"locale",useOnlyCssZoom:"useOnlyCssZoom",errorOverride:"errorOverride",errorAppend:"errorAppend",errorMessage:"errorMessage",diagnosticLogs:"diagnosticLogs",externalWindowOptions:"externalWindowOptions",page:"page",pdfSrc:"pdfSrc"},outputs:{onBeforePrint:"onBeforePrint",onAfterPrint:"onAfterPrint",onDocumentLoad:"onDocumentLoad",onPageChange:"onPageChange"},decls:2,vars:1,consts:[["title","ng2-pdfjs-viewer","width","100%","height","100%",3,"hidden"],["iframe",""]],template:function(e,i){1&e&&li(0,"iframe",0,1),2&e&&Tt("hidden",i.externalWindow||!i.externalWindow&&!i.pdfSrc)},encapsulation:2}),t})(),AEn=(()=>{class t{static forRoot(){return{ngModule:t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=nt({type:t}),t.\u0275inj=Je({imports:[ng]}),t})();function FEn(t,n){if(1&t&&(Ot(0,"span"),xi(1),Pt()),2&t){const e=yt(2);pt(1),Ix(" ",e.chatMessageReference.author.firstName," ",e.chatMessageReference.author.lastName," ")}}function PEn(t,n){if(1&t){const e=Gi();Ot(0,"div",21),li(1,"div",22),Ot(2,"div",23)(3,"div")(4,"strong",24),xi(5),Pt(),cn(6,FEn,2,2,"span",25),Ot(7,"a",26),fn("click",function(){return Kn(e),$n(yt().dismissMessageReference())}),li(8,"i",27),Pt()(),li(9,"div",28),Pt(),li(10,"div",29),Pt()}if(2&t){const e=yt();pt(5),Ix(" ",e.scope.network.getResourceOrKeyName("edit"===e.state?"web_chat_edit_header":"web_chat_reply_header")," "," "," "),pt(1),Tt("ngIf","reply"===e.state),pt(3),Tt("innerHTML",e.chatMessageReference.displayContent,qp)}}function REn(t,n){if(1&t){const e=Gi();Ot(0,"div",5)(1,"dx-button",30),fn("onClick",function(){return Kn(e),$n(yt().toggleEmojiPicker())}),Pt()()}}function LEn(t,n){1&t&&li(0,"div",7)}function BEn(t,n){if(1&t&&(Ot(0,"div",31),xi(1),Pt()),2&t){const e=yt();pt(1),ca(" ",e.scope.network.getResourceOrKeyName("web_chat_emoji_hint")," ")}}class iA{get state(){return this._state}get chatMessageReference(){return this._chatMessageReference}saveMessage(){if(this.parentThis&&(this.parentThis.preventScroll=!1),this.validation?.validate()?.isValid&&this.validateTextArea(this.valueForEditableTextArea)){const r=()=>{this.valueForEditableTextArea="",this.dismissMessageReference(),this.validation?.reset(),this.isSendingMessage=!1};if("edit"===this._state)this.chatMessageService.updateMessage(this._chatMessageReference.id,this.valueForEditableTextArea).subscribe(r);else if(this.parentThis?.store){var i=this.onMessageSend(this.valueForEditableTextArea);i.replyTo="reply"===this._state?{createdOn:this.chatMessageReference.createdOn,id:this.chatMessageReference.id,chatMessageAttachments:this.chatMessageReference.chatMessageAttachments,displayContent:this.chatMessageReference.displayContent,userId:this.chatMessageReference.author.guid,userName:this.chatMessageReference.author.firstName+" "+this.chatMessageReference.author.lastName}:null,i.replyId="reply"===this._state?this.chatMessageReference.id:void 0,this.messageCacheService.getArrayStore(this.chatRoom.id).then(o=>{o.insert(i).then(a=>{this.parentThis?.dataSource?.reload(),this.resetComponent()})})}}else this.isSendingMessage=!1}validateTextArea(n){return!!n&&!!n.trim().replace("<p>","").replace("</p>","").trim()}capitalize(n){return n.charAt(0).toUpperCase()+n.slice(1)}setEditMessage(n){this._state="edit",this._chatMessageReference=n,this.valueForEditableTextArea=n.displayContent,this.editor.instance().focus()}setReplyMessage(n){this._state="reply",this._chatMessageReference=n,this.editor.instance().focus()}onFilesUploaded(n){this.fileUploader.instance.reset(),this.uploadVisible=!1}onFileUploaded(n){let e=new Ni,i=n.request.getResponseHeader("file-guid");if(i){let r={};r.chatRoomId=this.chatRoom?.id,r.displayContent="",this.valueForEditableTextArea&&(r.displayContent=this.valueForEditableTextArea);let o={id:new Ni(i),blobId:new Ni(i),name:n.file.name,mimeType:n.file.type};r.chatMessageAttachments=[o],this.chatMessageService.postAttachmentMessage(e,r.chatRoomId,r.displayContent,o).toPromise().then(a=>{this.valueForEditableTextArea="",this.validation?.reset()},a=>{console.log(a)})}}toggleEmojiPicker(){this.popupVisible=!this.popupVisible}dismissMessageReference(){"edit"===this._state&&(this.valueForEditableTextArea=""),this._state="create",this._chatMessageReference=null,this.parentThis?.unselect()}addEmoji(n){let e=!1;this.valueForEditableTextArea?(this.valueForEditableTextArea.endsWith("</p>")&&(this.valueForEditableTextArea=this.valueForEditableTextArea.slice(0,this.valueForEditableTextArea.length-4),e=!0),this.valueForEditableTextArea=this.valueForEditableTextArea+n.emoji.native,e&&(this.valueForEditableTextArea+="</p>")):this.valueForEditableTextArea=n.emoji.native??n.emoji.shortName}resetComponent(){this.uploadUrl=this.scope.globalSettings.configurations.chatServerConfig.fileServerUrl+"FileUpload/"+this.chatRoom?.id.toString(),this.valueForEditableTextArea="",this.validation?.reset(),this.dismissMessageReference()}validatorInitialized(n){this.validation=n.component}onMessageSend(n){const e={guid:this.chatRoom?.myMembershipId??new Ni,gender:0,avatarImageUrl:"",coverImageUrl:"",avatarGuid:null,coverGuid:null,firstName:"",lastName:"",levelName:"",isJournalist:!1,about:"",numberOfSnips:0,numberOfAssets:0,numberOfMedia:0,numberOfFacts:0,numberOfQuestions:0,numberOfComments:0,additionalText:"",additionalTextContent:"",troll:null,freelance:!1};return{id:new Ni,replyTo:null,replyId:void 0,chatRoomMemberId:this.chatRoom?.myMembershipId??new Ni,author:e,displayContent:n,createdOn:new Date,modifiedOn:null,deletedOn:null,chatMessageStatus:"Created",chatMessageType:0,chatMessageAttachments:[]}}constructor(n,e,i,r,o){this.scopeService=n,this.chatMessageService=e,this.messageCacheService=i,this.http=r,this.authenticationService=o,this.valueForEditableTextArea="",this.headers={},this.chatRoom=null,this.isMobile=!0,this.parentThis=void 0,this.maxLength=2048,this._state="create",this.windowWidth=720,this._chatMessageReference=null,this.isSendingMessage=!1,this.popupVisible=!1,this.uploadVisible=!1,this.emojiPickerHeight="400px",this.uploadUrl="https://localhost:7169/FileUpload/",this.addAttachment=()=>{this.uploadVisible=!this.uploadVisible},this.onEditorInitialized=a=>{this.editor=a.component;let s=this.editor.instance().getQuillInstance();s.uploader.options.handler=null,s.uploader.options.onDrop=null,this.editor.instance().registerKeyHandler("enter",l=>{l?.originalEvent?.ctrlKey&&this.saveMessage()})},this.scope=this.scopeService.getScope(),this.validation=null,this.i18n={search:this.scope.network.getResourceOrKeyName("web_chat_emoji_Search"),emojilist:this.scope.network.getResourceOrKeyName("web_chat_emoji_list"),notfound:this.scope.network.getResourceOrKeyName("web_chat_emoji_not_found"),clear:this.scope.network.getResourceOrKeyName("web_chat_emoji_Clear"),categories:{search:this.scope.network.getResourceOrKeyName("web_chat_emoji_Search_Results"),recent:this.scope.network.getResourceOrKeyName("web_chat_emoji_Frequently_Used"),people:this.scope.network.getResourceOrKeyName("web_chat_emoji_Smileys_People"),nature:this.scope.network.getResourceOrKeyName("web_chat_emoji_Animals_Nature"),foods:this.scope.network.getResourceOrKeyName("web_chat_emoji_Food_Drink"),activity:this.scope.network.getResourceOrKeyName("web_chat_emoji_Activity"),places:this.scope.network.getResourceOrKeyName("web_chat_emoji_Travel_Places"),objects:this.scope.network.getResourceOrKeyName("web_chat_emoji_Objects"),symbols:this.scope.network.getResourceOrKeyName("web_chat_emoji_Symbols"),flags:this.scope.network.getResourceOrKeyName("web_chat_emoji_Flags"),custom:this.scope.network.getResourceOrKeyName("web_chat_emoji_Custom")},skintones:{1:this.scope.network.getResourceOrKeyName("web_chat_emoji_Default_Skin_Tone"),2:this.scope.network.getResourceOrKeyName("web_chat_emoji_Light_Skin_Tone"),3:this.scope.network.getResourceOrKeyName("web_chat_emoji_Medium-Light_Skin_Tone"),4:this.scope.network.getResourceOrKeyName("web_chat_emoji_Medium_Skin_Tone"),5:this.scope.network.getResourceOrKeyName("web_chat_emoji_Medium-Dark_Skin_Tone"),6:this.scope.network.getResourceOrKeyName("web_chat_emoji_Dark_Skin_Tone")}},this.authenticationService.getToken().then(a=>{this.headers={Authorization:"Bearer "+a}})}ngOnInit(){this.uploadUrl=this.scope.globalSettings.configurations.chatServerConfig.fileServerUrl+"FileUpload/"+this.chatRoom?.id.toString(),this.valueForEditableTextArea="",this.validation?.reset(),this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<Kf,this.headers={Authorization:"Bearer "+this.authenticationService.getToken()},this.isMobile&&(this.emojiPickerHeight="440px")}onResize(){this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<Kf}}iA.\u0275fac=function(n){return new(n||iA)($(bo),$(fg),$(dp),$(iu),$(Eu))},iA.\u0275cmp=je({type:iA,selectors:[["app-chat-list-message-editor"]],viewQuery:function(n,e){if(1&n&&nu(tM,7),2&n){let i;yn(i=Cn())&&(e.fileUploader=i.first)}},hostBindings:function(n,e){1&n&&fn("resize",function(r){return e.onResize(r)},0,Rf)},inputs:{chatRoom:"chatRoom",isMobile:"isMobile",parentThis:"parentThis"},decls:25,vars:29,consts:[["id","textEditorRow",1,"message-create-container"],["class","col-xs-12 no-padding message-create-container-reply-container","id","message-create-container-reply-container",4,"ngIf"],[1,"col-xs-12","no-padding","message-create-container-content"],["class","message-create-container-content-icon-button no-padding",4,"ngIf"],["class","spacer",4,"ngIf"],[1,"message-create-container-content-icon-button","no-padding"],["icon","fa fa-paperclip",3,"onClick"],[1,"spacer"],["id","textEditor",3,"value","valueChange","onContentReady"],[3,"onInitialized"],["type","required"],["type","stringLength","message","scope.network.getResourceOrKeyName('web_chat_input_max_length')",3,"max"],[3,"enabled"],["icon","fas fa-paper-plane",3,"disabled","onClick"],["width","400px","container",".chat-content",3,"height","showTitle","title","dragEnabled","hideOnOutsideClick","showCloseButton","visible","visibleChange"],["at","top","my","center","of","#textEditorRow","offset","0 -220"],["theme","light",3,"showPreview","i18n","emojiClick"],["class","message-create-emoji-mart-hint",4,"ngIf"],["width","400px","height","200px","container",".chat-content",3,"showTitle","title","dragEnabled","hideOnOutsideClick","showCloseButton","visible","visibleChange"],["name","file","uploadMode","instantly",3,"visible","uploadUrl","chunkSize","uploadHeaders","multiple","labelText","uploadUrlChange","onFilesUploaded","onUploaded"],["fileUploader",""],["id","message-create-container-reply-container",1,"col-xs-12","no-padding","message-create-container-reply-container"],[1,"message-create-container-reply-container-content-spacer-left"],[1,"message-create-container-reply-container-content"],[1,"message-create-container-reply-container-content-header"],[4,"ngIf"],[1,"float-right","message-create-container-reply-container-content-dismiss-icon",3,"click"],[1,"fas","fa-times"],[1,"message-create-container-reply-container-content-message-content",3,"innerHTML"],[1,"message-create-container-reply-container-content-spacer-right"],["icon","fa fa-smile-o","t","",3,"onClick"],[1,"message-create-emoji-mart-hint"]],template:function(n,e){1&n&&(Ot(0,"div",0),cn(1,PEn,11,4,"div",1),Ot(2,"div",2),cn(3,REn,2,0,"div",3),cn(4,LEn,1,0,"div",4),Ot(5,"div",5)(6,"dx-button",6),fn("onClick",function(){return e.addAttachment()}),Pt()(),li(7,"div",7),Ot(8,"dx-html-editor",8),fn("valueChange",function(r){return e.valueForEditableTextArea=r})("onContentReady",function(r){return e.onEditorInitialized(r)}),Ot(9,"dx-validator",9),fn("onInitialized",function(r){return e.validatorInitialized(r)}),li(10,"dxi-validation-rule",10)(11,"dxi-validation-rule",11),Pt(),li(12,"dxo-media-resizing",12),Pt(),li(13,"div",7),Ot(14,"div",5)(15,"dx-button",13),fn("onClick",function(){return e.saveMessage()}),Pt()()()(),Ot(16,"dx-popup",14),fn("visibleChange",function(r){return e.popupVisible=r}),li(17,"dxo-position",15),Ot(18,"div")(19,"emoji-mart",16),fn("emojiClick",function(r){return e.addEmoji(r)}),Pt(),cn(20,BEn,2,1,"div",17),Pt()(),Ot(21,"dx-popup",18),fn("visibleChange",function(r){return e.uploadVisible=r}),li(22,"dxo-position",15),Ot(23,"dx-file-uploader",19,20),fn("uploadUrlChange",function(r){return e.uploadUrl=r})("onFilesUploaded",function(r){return e.onFilesUploaded(r)})("onUploaded",function(r){return e.onFileUploaded(r)}),Pt()()),2&n&&(pt(1),Tt("ngIf",e.chatMessageReference),pt(2),Tt("ngIf",!e.isMobile),pt(1),Tt("ngIf",!e.isMobile),pt(4),Tt("value",e.valueForEditableTextArea),pt(3),Tt("max",4096),pt(1),Tt("enabled",!0),pt(3),Tt("disabled",e.isSendingMessage),pt(1),Tt("height",e.emojiPickerHeight)("showTitle",!1)("title",e.scope.network.getResourceOrKeyName("web_chat_emojis_title"))("dragEnabled",!0)("hideOnOutsideClick",!0)("showCloseButton",!0)("visible",e.popupVisible),pt(3),Tt("showPreview",!1)("i18n",e.i18n),pt(1),Tt("ngIf",e.isMobile),pt(1),Tt("showTitle",!1)("title",e.scope.network.getResourceOrKeyName("web_chat_upload_title"))("dragEnabled",!0)("hideOnOutsideClick",!0)("showCloseButton",!0)("visible",e.uploadVisible),pt(2),Tt("visible",!0)("uploadUrl",e.uploadUrl)("chunkSize",5e5)("uploadHeaders",e.headers)("multiple",!1)("labelText",e.isMobile?"":e.scope.network.getResourceOrKeyName("web_chat_upload_label")))},dependencies:[Tl,wG,ET,BT,tM,HBe,Bbt,kJ,Ixn,TEn],styles:["[_nghost-%COMP%]{--minHeight: 53px;--windowWidth: calc((100vw / 12 * 8) - (2 * 15px));--iconButtonSize: var(--minHeight);--spacerWidth: 1rem;--leftItemsWidth: calc((2 * var(--iconButtonSize)) + (2 * var(--spacerWidth)));--leftItemsWidthMobile: calc((1 * var(--iconButtonSize)) + (1 * var(--spacerWidth)));--rightItemsWidth: calc((1 * var(--iconButtonSize)) + (1 * var(--spacerWidth)));--someCalculatedWidth: calc(var(--leftItemsWidthMobile) + var(--rightItemsWidth));--dxHtmlEditorWidth: calc(var(--windowWidth) - var(--someCalculatedWidth));--borderRadius: 1rem}[_nghost-%COMP%]     .emoji-mart-search input{font-size:16px;display:block;width:90%!important;padding:5px 25px 6px 10px;border-radius:var(--borderRadius);border:1px solid #d9d9d9;outline:0}.message-create-container-reply-container[_ngcontent-%COMP%]{display:flex;margin:1rem 0px;height:4.6rem}.message-create-container-reply-container-content[_ngcontent-%COMP%]{border-left:.5rem solid var(--color1-alpha30);border-radius:var(--borderRadius);width:var(--dxHtmlEditorWidth);overflow:hidden;padding:.5em}.message-create-container-reply-container-content-message-content[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.message-create-container-reply-container-content-message-content   [_nghost-%COMP%]     p{margin:0}.message-create-container-reply-container-content-dismiss-icon[_ngcontent-%COMP%]{color:#000}.message-create-container-reply-container-content-spacer-left[_ngcontent-%COMP%]{width:var(--leftItemsWidth)}.message-create-container-reply-container-content-spacer-right[_ngcontent-%COMP%]{width:var(--rightItemsWidth)}.message-create-container-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;min-height:var(--minHeight);margin:1rem 0}.message-create-container-content[_ngcontent-%COMP%]   dx-html-editor[_ngcontent-%COMP%]{width:var(--dxHtmlEditorWidth);min-height:var(--minHeight);max-height:10rem;border-radius:var(--borderRadius);background-color:#fff}.message-create-container-content   dx-html-editor   [_nghost-%COMP%]     .dx-htmleditor-content{align-self:center}.message-create-container-content   dx-html-editor   [_nghost-%COMP%]     .dx-htmleditor.dx-htmleditor-outlined{border-radius:var(--borderRadius)}.message-create-container-content-icon-button[_ngcontent-%COMP%]{width:var(--iconButtonSize);height:var(--iconButtonSize)}.message-create-container-content-icon-button[_ngcontent-%COMP%]   dx-button[_ngcontent-%COMP%]{height:var(--iconButtonSize);width:var(--iconButtonSize);border-width:0;border-radius:var(--borderRadius);background-color:transparent}.message-create-container-content-icon-button[_ngcontent-%COMP%]   dx-button[_ngcontent-%COMP%]   .dx-button-content[_ngcontent-%COMP%]{display:flex;justify-content:center}.message-create-container-content-icon-button[_ngcontent-%COMP%]   dx-button[_ngcontent-%COMP%]   .dx-button-content[_ngcontent-%COMP%]     i{color:var(--color1-alpha30)}.message-create-emoji-mart-hint[_ngcontent-%COMP%]{font-size:smaller;padding:5px 0}.spacer[_ngcontent-%COMP%]{width:var(--spacerWidth);height:var(--minHeight)}.no-padding[_ngcontent-%COMP%]{padding:0}@media (max-width: 991px){[_nghost-%COMP%]{--dxHtmlEditorWidth: calc(100vw - var(--someCalculatedWidth))}}@media (prefers-color-scheme: dark){.app   [_nghost-%COMP%]     .message-create-container-reply-container-content-dismiss-icon{color:#fff}.app   [_nghost-%COMP%]     .message-create-container-content dx-html-editor{background-color:#232323;border-color:#232323}}"]});class NEn{constructor(n,e){this.name=n,this.imageIndex=e}}class rA{constructor(n){this.el=n}ngOnChanges(n){if(!n.fullscreenState.isFirstChange())if(this.fullscreenState){const e=this.el.nativeElement,i=e.requestFullscreen||e.webkitRequestFullScreen||e.mozRequestFullScreen||e.msRequestFullScreen;i?i.call(e):console.log("FullScreen Request Method Not Supported on this browser.")}else{const e=document,i=e.cancelFullscreen||e.webkitExitFullscreen||e.webkitCancelFullScreen||e.mozCancelFullScreen||e.msExitFullScreen;i?i.call(e):console.log("FullScreen Cancel Request Method Not Supported on this browser.")}}ngOnInit(){}}function VEn(t,n){1&t&&(Ot(0,"div",7),li(1,"div",8),Pt())}function HEn(t,n){if(1&t){const e=Gi();Ot(0,"button",11),fn("click",function(){return Kn(e),$n(yt(2).rotateCounterClockwise())}),li(1,"span"),Pt()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(null==e.config.btnIcons||null==e.config.btnIcons.rotateCounterClockwise?null:e.config.btnIcons.rotateCounterClockwise.classes)}}function zEn(t,n){if(1&t){const e=Gi();Ot(0,"a",12),fn("click",function(){return Kn(e),$n(yt(2).rotateCounterClockwise())}),Ot(1,"span"),xi(2),Pt()()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(e.config.btnSubClass),pt(1),mr(null==e.config.btnIcons||null==e.config.btnIcons.rotateCounterClockwise?null:e.config.btnIcons.rotateCounterClockwise.text)}}function UEn(t,n){if(1&t&&(El(0),cn(1,HEn,2,4,"button",9),cn(2,zEn,3,5,"a",10),Ol()),2&t){const e=yt();pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.rotateCounterClockwise?null:e.config.btnIcons.rotateCounterClockwise.classes),pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.rotateCounterClockwise?null:e.config.btnIcons.rotateCounterClockwise.text)}}function WEn(t,n){if(1&t){const e=Gi();Ot(0,"button",11),fn("click",function(){return Kn(e),$n(yt(2).rotateClockwise())}),li(1,"span"),Pt()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(null==e.config.btnIcons||null==e.config.btnIcons.rotateClockwise?null:e.config.btnIcons.rotateClockwise.classes)}}function GEn(t,n){if(1&t){const e=Gi();Ot(0,"a",12),fn("click",function(){return Kn(e),$n(yt(2).rotateClockwise())}),Ot(1,"span"),xi(2),Pt()()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(e.config.btnSubClass),pt(1),mr(null==e.config.btnIcons||null==e.config.btnIcons.rotateClockwise?null:e.config.btnIcons.rotateClockwise.text)}}function jEn(t,n){if(1&t&&(El(0),cn(1,WEn,2,4,"button",9),cn(2,GEn,3,5,"a",10),Ol()),2&t){const e=yt();pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.rotateClockwise?null:e.config.btnIcons.rotateClockwise.classes),pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.rotateClockwise?null:e.config.btnIcons.rotateClockwise.text)}}function KEn(t,n){if(1&t){const e=Gi();Ot(0,"button",11),fn("click",function(){return Kn(e),$n(yt(2).zoomOut())}),li(1,"span"),Pt()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(null==e.config.btnIcons||null==e.config.btnIcons.zoomOut?null:e.config.btnIcons.zoomOut.classes)}}function $En(t,n){if(1&t){const e=Gi();Ot(0,"a",12),fn("click",function(){return Kn(e),$n(yt(2).zoomOut())}),Ot(1,"span"),xi(2),Pt()()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(e.config.btnSubClass),pt(1),mr(null==e.config.btnIcons||null==e.config.btnIcons.zoomOut?null:e.config.btnIcons.zoomOut.text)}}function qEn(t,n){if(1&t&&(El(0),cn(1,KEn,2,4,"button",9),cn(2,$En,3,5,"a",10),Ol()),2&t){const e=yt();pt(1),Tt("ngIf",null==e.config||null==e.config.btnIcons||null==e.config.btnIcons.zoomOut?null:e.config.btnIcons.zoomOut.classes),pt(1),Tt("ngIf",null==e.config||null==e.config.btnIcons||null==e.config.btnIcons.zoomOut?null:e.config.btnIcons.zoomOut.text)}}function YEn(t,n){if(1&t){const e=Gi();Ot(0,"button",11),fn("click",function(){return Kn(e),$n(yt(2).zoomIn())}),li(1,"span"),Pt()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(null==e.config.btnIcons||null==e.config.btnIcons.zoomIn?null:e.config.btnIcons.zoomIn.classes)}}function ZEn(t,n){if(1&t){const e=Gi();Ot(0,"a",12),fn("click",function(){return Kn(e),$n(yt(2).zoomIn())}),Ot(1,"span"),xi(2),Pt()()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(e.config.btnSubClass),pt(1),mr(null==e.config.btnIcons||null==e.config.btnIcons.zoomIn?null:e.config.btnIcons.zoomIn.text)}}function XEn(t,n){if(1&t&&(El(0),cn(1,YEn,2,4,"button",9),cn(2,ZEn,3,5,"a",10),Ol()),2&t){const e=yt();pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.zoomIn?null:e.config.btnIcons.zoomIn.classes),pt(1),Tt("ngIf",null==e.config||null==e.config.btnIcons||null==e.config.btnIcons.zoomIn?null:e.config.btnIcons.zoomIn.text)}}function JEn(t,n){if(1&t){const e=Gi();Ot(0,"button",11),fn("click",function(){return Kn(e),$n(yt(2).toggleFullscreen())}),li(1,"span"),Pt()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(null==e.config.btnIcons||null==e.config.btnIcons.fullscreen?null:e.config.btnIcons.fullscreen.classes)}}function QEn(t,n){if(1&t){const e=Gi();Ot(0,"a",12),fn("click",function(){return Kn(e),$n(yt(2).toggleFullscreen())}),Ot(1,"span"),xi(2),Pt()()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(e.config.btnSubClass),pt(1),mr(null==e.config.btnIcons||null==e.config.btnIcons.fullscreen?null:e.config.btnIcons.fullscreen.text)}}function eOn(t,n){if(1&t&&(El(0),cn(1,JEn,2,4,"button",9),cn(2,QEn,3,5,"a",10),Ol()),2&t){const e=yt();pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.fullscreen?null:e.config.btnIcons.fullscreen.classes),pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.fullscreen?null:e.config.btnIcons.fullscreen.text)}}function tOn(t,n){if(1&t){const e=Gi();Ot(0,"button",11),fn("click",function(){return Kn(e),$n(yt(2).reset())}),li(1,"span"),Pt()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(null==e.config.btnIcons||null==e.config.btnIcons.reset?null:e.config.btnIcons.reset.classes)}}function nOn(t,n){if(1&t){const e=Gi();Ot(0,"a",12),fn("click",function(){return Kn(e),$n(yt(2).reset())}),Ot(1,"span"),xi(2),Pt()()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(e.config.btnSubClass),pt(1),mr(null==e.config.btnIcons||null==e.config.btnIcons.reset?null:e.config.btnIcons.reset.text)}}function iOn(t,n){if(1&t&&(El(0),cn(1,tOn,2,4,"button",9),cn(2,nOn,3,5,"a",10),Ol()),2&t){const e=yt();pt(1),Tt("ngIf",null==e.config||null==e.config.btnIcons||null==e.config.btnIcons.reset?null:e.config.btnIcons.reset.classes),pt(1),Tt("ngIf",null==e.config||null==e.config.btnIcons||null==e.config.btnIcons.reset?null:e.config.btnIcons.reset.text)}}function rOn(t,n){if(1&t&&li(0,"span"),2&t){const e=yt(2).$implicit;eo(null==e||null==e.icon?null:e.icon.classes)}}function oOn(t,n){if(1&t){const e=Gi();Ot(0,"button",11),fn("click",function(){Kn(e);const r=yt().$implicit,o=yt();return $n(o.fireCustomEvent(r.name,o.index))}),cn(1,rOn,1,2,"span",13),Pt()}if(2&t){const e=yt().$implicit;eo(yt().config.btnClass),pt(1),Tt("ngIf",null==e||null==e.icon?null:e.icon.classes)}}function aOn(t,n){if(1&t){const e=Gi();Ot(0,"a",12),fn("click",function(){Kn(e);const r=yt(2).$implicit,o=yt();return $n(o.fireCustomEvent(r.name,o.index))}),Ot(1,"span"),xi(2),Pt()()}if(2&t){const e=yt(2).$implicit,i=yt();eo(i.config.btnClass),pt(1),eo(i.config.btnSubClass),pt(1),mr(e.icon.text)}}function sOn(t,n){if(1&t&&(El(0),cn(1,aOn,3,5,"a",10),Ol()),2&t){const e=yt().$implicit;pt(1),Tt("ngIf",null==e.icon?null:e.icon.text)}}function lOn(t,n){if(1&t&&(El(0),cn(1,oOn,2,3,"button",9),cn(2,sOn,2,1,"ng-container",4),Ol()),2&t){const e=n.$implicit;pt(1),Tt("ngIf",null==e||null==e.icon?null:e.icon.classes),pt(1),Tt("ngIf",null==e||null==e.icon?null:e.icon.text)}}function uOn(t,n){if(1&t&&li(0,"span"),2&t){const e=yt(3);eo(null==e.config.btnIcons||null==e.config.btnIcons.prev?null:e.config.btnIcons.prev.classes)}}function dOn(t,n){if(1&t){const e=Gi();Ot(0,"button",16),fn("click",function(r){return Kn(e),$n(yt(2).prevImage(r))}),cn(1,uOn,1,2,"span",13),Pt()}if(2&t){const e=yt(2);eo(e.config.btnClass),Tt("disabled",0===e.index),pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.prev?null:e.config.btnIcons.prev.classes)}}function cOn(t,n){if(1&t){const e=Gi();Ot(0,"a",12),fn("click",function(r){return Kn(e),$n(yt(2).prevImage(r))}),Ot(1,"span"),xi(2),Pt()()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(e.config.btnSubClass),pt(1),mr(null==e.config.btnIcons||null==e.config.btnIcons.prev?null:e.config.btnIcons.prev.text)}}function hOn(t,n){if(1&t&&li(0,"span"),2&t){const e=yt(3);eo(null==e.config.btnIcons||null==e.config.btnIcons.next?null:e.config.btnIcons.next.classes)}}function pOn(t,n){if(1&t){const e=Gi();Ot(0,"button",16),fn("click",function(r){return Kn(e),$n(yt(2).nextImage(r))}),cn(1,hOn,1,2,"span",13),Pt()}if(2&t){const e=yt(2);eo(e.config.btnClass),Tt("disabled",e.index===e.src.length-1),pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.next?null:e.config.btnIcons.next.classes)}}function gOn(t,n){if(1&t){const e=Gi();Ot(0,"a",12),fn("click",function(r){return Kn(e),$n(yt(2).nextImage(r))}),Ot(1,"span"),xi(2),Pt()()}if(2&t){const e=yt(2);eo(e.config.btnClass),pt(1),eo(e.config.btnSubClass),pt(1),mr(null==e.config.btnIcons||null==e.config.btnIcons.next?null:e.config.btnIcons.next.text)}}function fOn(t,n){if(1&t&&(Ot(0,"div",14),cn(1,dOn,2,4,"button",15),cn(2,cOn,3,5,"a",10),cn(3,pOn,2,4,"button",15),cn(4,gOn,3,5,"a",10),Pt()),2&t){const e=yt();pt(1),Tt("ngIf",null==e.config.btnShow?null:e.config.btnShow.next),pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.prev?null:e.config.btnIcons.prev.text),pt(1),Tt("ngIf",null==e.config.btnShow?null:e.config.btnShow.next),pt(1),Tt("ngIf",null==e.config.btnIcons||null==e.config.btnIcons.next?null:e.config.btnIcons.next.text)}}rA.\u0275fac=function(n){return new(n||rA)($(jn))},rA.\u0275dir=sr({type:rA,selectors:[["","appScreenfull",""]],inputs:{fullscreenState:["appScreenfull","fullscreenState"]},features:[hi]});const nze={btnContainerClass:"btn-container",btnClass:"default",btnSubClass:"material-icons",zoomFactor:.1,containerBackgroundColor:"#ccc",wheelZoom:!1,allowFullscreen:!0,allowKeyboardNavigation:!0,btnShow:{zoomIn:!0,zoomOut:!0,rotateClockwise:!0,rotateCounterClockwise:!0,next:!0,prev:!0,reset:!0},btnIcons:{zoomIn:{classes:"fa fa-plus",text:"zoom_in"},zoomOut:{classes:"fa fa-minus",text:"zoom_out"},rotateClockwise:{classes:"fa fa-repeat",text:"rotate_right"},rotateCounterClockwise:{classes:"fa fa-undo",text:"rotate_left"},next:{classes:"fa fa-arrow-right",text:"arrow_right"},prev:{classes:"fa fa-arrow-left",text:"arrow_left"},fullscreen:{classes:"fa fa-arrows-alt",text:"fullscreen"},reset:{classes:"fa fa-undo",text:"restore"}}};class oA{constructor(n,e){this.moduleConfig=n,this.sanitizer=e,this.screenHeightOccupied=0,this.index=0,this.indexChange=new qi,this.configChange=new qi,this.customImageEvent=new qi,this.styleHeight="100%",this.style={transform:"",msTransform:"",oTransform:"",webkitTransform:""},this.fullscreen=!1,this.loading=!0,this.scale=1,this.rotation=0,this.translateX=0,this.translateY=0,this.prevX=0,this.prevY=0,this.hovered=!1,this.config=nze;const i=this.mergeConfig(nze,this.moduleConfig);this.config=this.mergeConfig(i,this.config)}ngOnChanges(n){n.screenHeightOccupied&&(this.styleHeight="calc(100% - "+this.screenHeightOccupied+"px)")}ngOnInit(){this.triggerConfigBinding()}nextImage(n){this.canNavigate(n)&&this.index<this.src.length-1&&(this.loading=!0,this.index++,this.triggerIndexBinding(),this.reset())}prevImage(n){this.canNavigate(n)&&this.index>0&&(this.loading=!0,this.index--,this.triggerIndexBinding(),this.reset())}zoomIn(){this.scale*=1+this.config.zoomFactor,this.updateStyle()}zoomOut(){this.scale>this.config.zoomFactor&&(this.scale/=1+this.config.zoomFactor),this.updateStyle()}scrollZoom(n){return!this.config.wheelZoom||(n.deltaY>0?this.zoomOut():this.zoomIn(),!1)}rotateClockwise(){this.rotation+=90,this.updateStyle()}rotateCounterClockwise(){this.rotation-=90,this.updateStyle()}onLoad(n){this.loading=!1}onLoadStart(n){this.loading=!0}imageNotFound(n){}onDragOver(n){this.translateX+=n.clientX-this.prevX,this.translateY+=n.clientY-this.prevY,this.prevX=n.clientX,this.prevY=n.clientY,this.updateStyle()}onDragStart(n){n.dataTransfer&&n.dataTransfer.setDragImage&&n.dataTransfer.setDragImage(n.target.nextElementSibling,0,0),this.prevX=n.clientX,this.prevY=n.clientY}onTouchMove(n){n.targetTouches?.length>0&&(this.translateX+=n.targetTouches[0].clientX-this.prevX,this.translateY+=n.targetTouches[0].clientY-this.prevY,this.prevX=n.targetTouches[0].clientX,this.prevY=n.targetTouches[0].clientY,this.updateStyle())}onTouchStart(n){n.targetTouches?.length>0&&(this.prevX=n.targetTouches[0].clientX,this.prevY=n.targetTouches[0].clientY)}onPinchOut(n){this.zoomInSlow()}onPinchIn(n){this.zoomOutSlow()}zoomInSlow(){this.scale*=1+this.config.zoomFactor/10,this.updateStyle()}zoomOutSlow(){this.scale>this.config.zoomFactor&&(this.scale/=1+this.config.zoomFactor/10),this.updateStyle()}toggleFullscreen(){this.fullscreen=!this.fullscreen,this.fullscreen||this.reset()}triggerIndexBinding(){this.indexChange.emit(this.index)}triggerConfigBinding(){this.configChange.next(this.config)}fireCustomEvent(n,e){this.customImageEvent.emit(new NEn(n,e))}reset(){this.scale=1,this.rotation=0,this.translateX=0,this.translateY=0,this.updateStyle()}onMouseOver(){this.hovered=!0}onMouseLeave(){this.hovered=!1}canNavigate(n){return null==n||this.config.allowKeyboardNavigation&&this.hovered}updateStyle(){this.style.transform=`translate(${this.translateX}px, ${this.translateY}px) rotate(${this.rotation}deg) scale(${this.scale})`,this.style.msTransform=this.style.transform,this.style.webkitTransform=this.style.transform,this.style.oTransform=this.style.transform}mergeConfig(n,e){let i={...n};return e&&(i={...n,...e},e.btnIcons&&(i.btnIcons={...n.btnIcons,...e.btnIcons})),i}}oA.\u0275fac=function(n){return new(n||oA)($("config",8),$(CF))},oA.\u0275cmp=je({type:oA,selectors:[["app-apicodo-image-viewer"]],hostBindings:function(n,e){1&n&&fn("keyup.ArrowRight",function(r){return e.nextImage(r)},0,Rf)("keyup.ArrowLeft",function(r){return e.prevImage(r)},!1,Rf)("mouseover",function(){return e.onMouseOver()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{src:"src",screenHeightOccupied:"screenHeightOccupied",index:"index",config:"config"},outputs:{indexChange:"indexChange",configChange:"configChange",customImageEvent:"customImageEvent"},features:[hi],decls:13,vars:18,consts:[[1,"img-container",3,"appScreenfull","wheel","pinchin","pinchout","touchmove","dragover"],["alt","Image not found...",3,"src","ngStyle","dragstart","touchstart","load","error","loadstart"],["class","spinner-container",4,"ngIf"],[1,"btn-container"],[4,"ngIf"],[4,"ngFor","ngForOf"],["class","nav-button-container",4,"ngIf"],[1,"spinner-container"],[1,"spinner"],["type","button",3,"class","click",4,"ngIf"],[3,"class","click",4,"ngIf"],["type","button",3,"click"],[3,"click"],[3,"class",4,"ngIf"],[1,"nav-button-container"],["type","button",3,"class","disabled","click",4,"ngIf"],["type","button",3,"disabled","click"]],template:function(n,e){1&n&&(Ot(0,"div",0),fn("wheel",function(r){return e.scrollZoom(r)})("pinchin",function(r){return e.onPinchIn(r)})("pinchout",function(r){return e.onPinchOut(r)})("touchmove",function(r){return e.onTouchMove(r)})("dragover",function(r){return e.onDragOver(r)}),Ot(1,"img",1),fn("dragstart",function(r){return e.onDragStart(r)})("touchstart",function(r){return e.onTouchStart(r)})("load",function(){return e.onLoad(e.src[e.index])})("error",function(){return e.imageNotFound(e.src[e.index])})("loadstart",function(){return e.onLoadStart(e.src[e.index])}),Pt(),li(2,"div"),cn(3,VEn,2,0,"div",2),Ot(4,"div",3),cn(5,UEn,3,2,"ng-container",4),cn(6,jEn,3,2,"ng-container",4),cn(7,qEn,3,2,"ng-container",4),cn(8,XEn,3,2,"ng-container",4),cn(9,eOn,3,2,"ng-container",4),cn(10,iOn,3,2,"ng-container",4),cn(11,lOn,3,2,"ng-container",5),Pt(),cn(12,fOn,5,4,"div",6),Pt()),2&n&&(Tx("height",e.styleHeight)("background-color",e.config.containerBackgroundColor),Tt("appScreenfull",e.fullscreen),pt(1),Tt("src",e.src[e.index],ad)("ngStyle",e.style),pt(2),Tt("ngIf",e.loading),pt(1),eo(e.config.btnContainerClass),pt(1),Tt("ngIf",null==e.config.btnShow?null:e.config.btnShow.rotateCounterClockwise),pt(1),Tt("ngIf",null==e.config.btnShow?null:e.config.btnShow.rotateClockwise),pt(1),Tt("ngIf",null==e.config||null==e.config.btnShow?null:e.config.btnShow.zoomOut),pt(1),Tt("ngIf",null==e.config.btnShow?null:e.config.btnShow.zoomIn),pt(1),Tt("ngIf",e.config.allowFullscreen),pt(1),Tt("ngIf",null==e.config||null==e.config.btnShow?null:e.config.btnShow.reset),pt(1),Tt("ngForOf",e.config.customBtns),pt(1),Tt("ngIf",e.src.length>1))},dependencies:[Wf,Tl,xE,rA],styles:[".img-container[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center;overflow:hidden}.img-container[_ngcontent-%COMP%]   .btn-container[_ngcontent-%COMP%]{position:absolute;z-index:98;text-align:right;bottom:0;right:0;width:100%}.img-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.img-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .img-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{z-index:99;position:relative}.img-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:not(:disabled), .img-container[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:not(:disabled){cursor:pointer}button.default[_ngcontent-%COMP%], a.default[_ngcontent-%COMP%]{height:40px;width:40px;border:1px solid #555;border-radius:50%;background-color:#fff;opacity:.7;transition:opacity .2s}button.default[_ngcontent-%COMP%]:hover, a.default[_ngcontent-%COMP%]:hover{opacity:1}button.default[_ngcontent-%COMP%]:disabled, a.default[_ngcontent-%COMP%]:disabled{opacity:.25}.nav-button-container[_ngcontent-%COMP%] > button[_ngcontent-%COMP%], .nav-button-container[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{position:relative;right:0;margin:0 10px}.nav-button-container[_ngcontent-%COMP%]{text-align:center;position:absolute;z-index:98;bottom:50px;left:0;right:0}.spinner-container[_ngcontent-%COMP%]{position:absolute;inset:0;width:60px;height:60px;margin:auto;padding:10px;background-color:#0006;border-radius:25%}.spinner[_ngcontent-%COMP%]{border-width:7px;border-style:solid;border-color:#ccc;border-bottom-color:#222;border-radius:50%;height:100%;width:100%;box-sizing:border-box;animation:_ngcontent-%COMP%_rotation 2s linear infinite}@keyframes _ngcontent-%COMP%_rotation{0%{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(359deg)}}"]});class aA{constructor(n){this.scopeService=n,this.headline="",this.message="",this.scope=this.scopeService.getScope(),this.headline=this.scope.network.getResourceOrKeyName("web_chat_new_created_chatroom_headline"),this.message=this.scope.network.getResourceOrKeyName("web_chat_new_created_chatroom_message"),this.userClientInfo=n.getUserClientInfo()}ngOnInit(){}}aA.\u0275fac=function(n){return new(n||aA)($(bo))},aA.\u0275cmp=je({type:aA,selectors:[["app-empty-chat-list"]],decls:7,vars:8,consts:[[1,"empty-chat-container"],[1,"empty-chat-container-image-container"],["src","/content/images/chat-bubbles.png",1,"col-xs-12","empty-chat-container-image-container-chat-bubbles"],[1,"col-xs-12","empty-chat-container-headline",3,"innerHtml"],[1,"col-xs-12","empty-chat-container-message",3,"innerHtml"]],template:function(n,e){1&n&&(Ot(0,"div",0)(1,"div",1),li(2,"img",2),Pt(),li(3,"p",3),Nf(4,"linky"),li(5,"p",4),Nf(6,"linky"),Pt()),2&n&&(Ur("app",e.userClientInfo.isApp),pt(3),Tt("innerHtml",Vf(4,4,e.headline),qp),pt(2),Tt("innerHtml",Vf(6,6,e.message),qp))},dependencies:[aV],styles:[".empty-chat-container-image-container[_ngcontent-%COMP%]{display:flex;margin-bottom:5rem;justify-content:center}.empty-chat-container-image-container-chat-bubbles[_ngcontent-%COMP%]{width:auto;height:10rem;filter:invert(.3)}.empty-chat-container-headline[_ngcontent-%COMP%]{font-size:large;text-align:center;margin-bottom:1rem}.empty-chat-container-message[_ngcontent-%COMP%]{text-align:center}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]   .empty-chat-container-image-container-chat-bubbles[_ngcontent-%COMP%]{filter:invert(.6)}}"]});class ND{}ND.\u0275fac=function(n){return new(n||ND)},ND.\u0275mod=nt({type:ND}),ND.\u0275inj=Je({imports:[ng,Kb,BD,D7e,R7,IEn,gU,lDn,AEn]}),function Jl(t,n,e){const i=t.\u0275cmp;i.directiveDefs=()=>("function"==typeof n?n():n).map(xl),i.pipeDefs=()=>("function"==typeof e?e():e).map(Ql)}(MD,[AH,Tl,PD,Z2,Vwt,wG,ET,Bq,Q$t,NT,vbt,Zbt,Jbt,tM,kJ,yCn,w6e,MEn,RD,iA,oA,aA],[aV]);var mOn=D(524);class Yb extends Hse{constructor(){super(...arguments),this.overrides={swipe:{direction:mOn.DIRECTION_ALL},pinch:{enable:!0},pan:{enable:!0}}}}Yb.\u0275fac=function(){let t;return function(e){return(t||(t=Oi(Yb)))(e||Yb)}}(),Yb.\u0275prov=Hn({token:Yb,factory:Yb.\u0275fac});class Wp{constructor(n){this.upgrade=n}ngDoBootstrap(n){if(Wp.isBootstrapped)return;const e=this.upgrade;document.onreadystatechange=function(){"interactive"===document.readyState&&(e.bootstrap(document.getElementsByTagName("html")[0],["app"],{strictDi:!0}),Ase().bootstrapModule(Wp))},Wp.isBootstrapped=!0,zde(syt),zde(lyt)}}Wp.isBootstrapped=!1,Wp.\u0275fac=function(n){return new(n||Wp)(qt(ale))},Wp.\u0275mod=nt({type:Wp}),Wp.\u0275inj=Je({providers:[{provide:yF,useClass:Yb},{provide:M7,useClass:class _On extends M7{constructor(){super(...arguments),this.storedRoutes=new Map}shouldDetach(n){return!1}store(n,e){this.storedRoutes.set(n.routeConfig?.path??"/",e)}shouldAttach(n){return!!n.routeConfig&&!!this.storedRoutes.get(n.routeConfig.path)}retrieve(n){return this.storedRoutes.get(n.routeConfig?.path??"/")??null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}}],imports:[nZe,ale,ND,Kb,ng,fZe,Pw,Rw,Ume.forRoot({defaultLanguage:"en"}),Om.forRoot(),Dg.forRoot({isLoggingEnabled:!1,initLang:Zd.ignore,appName:"Test case",canonicalLinks:{imprint:{withLang:Zd.ignore},pp:{withLang:Zd.en,exceptLangs:Zd.de}},pathTitlesKeys:{start:"header.title"},htmlLangs:{"job-description":Zd.de,gra:Zd.de,imprint:Zd.ignore,pp:{"*":Zd.en,[Zd.de]:Zd.de}}})]}),function ayt(){app.directive("appChatHome",_y({component:n_})),app.directive("chatBubble",_y({component:QE})),app.directive("userVitals",_y({component:VO})),app.directive("chatOneToOneActionButtonComponent",_y({component:OT})),app.directive("appSmartBanner",_y({component:TE})),app.directive("cookieExternalMediaInfo",_y({component:ME,inputs:["type","isAssetListItem"]})),app.directive("cookieConsentBanner",_y({component:$O})),app.config(["$stateProvider",function(t){t.state("app.chat",{url:"chat*path",template:"<app-chat-home></app-chat-home>",controller:function(){}})}])}(),Ase().bootstrapModule(Wp).catch(t=>console.error(t))}},fu=>{fu(fu.s=824)}]);
